summaryrefslogtreecommitdiff
path: root/include/ruby/win32.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/ruby/win32.h')
-rw-r--r--include/ruby/win32.h210
1 files changed, 113 insertions, 97 deletions
diff --git a/include/ruby/win32.h b/include/ruby/win32.h
index b29470b0c4..ae11a61481 100644
--- a/include/ruby/win32.h
+++ b/include/ruby/win32.h
@@ -19,11 +19,6 @@ RUBY_SYMBOL_EXPORT_BEGIN
*/
/*
- * Definitions for NT port of Perl
- */
-
-
-/*
* Ok now we can include the normal include files.
*/
@@ -35,14 +30,10 @@ extern "C++" { /* template without extern "C++" */
#if !defined(_WIN64) && !defined(WIN32)
#define WIN32
#endif
-#if defined(_MSC_VER) && _MSC_VER <= 1200
-#include <windows.h>
-#endif
#include <winsock2.h>
#include <ws2tcpip.h>
-#if !defined(_MSC_VER) || _MSC_VER >= 1400
+#include <mswsock.h>
#include <iphlpapi.h>
-#endif
#if defined(__cplusplus) && defined(_MSC_VER)
}
#endif
@@ -63,13 +54,7 @@ extern "C++" { /* template without extern "C++" */
#include <direct.h>
#include <process.h>
#include <time.h>
-#if defined(__cplusplus) && defined(_MSC_VER) && _MSC_VER == 1200
-extern "C++" { /* template without extern "C++" */
-#endif
#include <math.h>
-#if defined(__cplusplus) && defined(_MSC_VER) && _MSC_VER == 1200
-}
-#endif
#include <signal.h>
#include <sys/stat.h>
#include <sys/types.h>
@@ -130,46 +115,74 @@ typedef unsigned int uintptr_t;
#define O_SHARE_DELETE 0x20000000 /* for rb_w32_open(), rb_w32_wopen() */
typedef int clockid_t;
-#define CLOCK_REALTIME 0
-#define CLOCK_MONOTONIC 1
+
+/*
+ * Since we use our versions in win32/win32.c, not to depend on yet
+ * another DLL, prefix our versions not to conflict with inline
+ * versions provided in time.h.
+ */
+#define clock_gettime rb_w32_clock_gettime
+#define clock_getres rb_w32_clock_getres
+
+#ifndef CLOCK_REALTIME
+# define CLOCK_REALTIME 0
+#endif
+#ifndef CLOCK_MONOTONIC
+# define CLOCK_MONOTONIC 1
+#endif
+#ifndef CLOCK_PROCESS_CPUTIME_ID
+# define CLOCK_PROCESS_CPUTIME_ID 2
+#endif
+#ifndef CLOCK_THREAD_CPUTIME_ID
+# define CLOCK_THREAD_CPUTIME_ID 3
+#endif
+#ifndef CLOCK_REALTIME_COARSE
+# define CLOCK_REALTIME_COARSE 4
+#endif
#undef utime
#undef lseek
#undef stat
#undef fstat
#ifdef RUBY_EXPORT
-#define utime(_p, _t) rb_w32_utime(_p, _t)
+#define utime(_p, _t) rb_w32_uutime(_p, _t)
#undef HAVE_UTIMES
#define HAVE_UTIMES 1
-#define utimes(_p, _t) rb_w32_utimes(_p, _t)
+#define utimes(_p, _t) rb_w32_uutimes(_p, _t)
#undef HAVE_UTIMENSAT
#define HAVE_UTIMENSAT 1
#define AT_FDCWD -100
-#define utimensat(_d, _p, _t, _f) rb_w32_utimensat(_d, _p, _t, _f)
+#define utimensat(_d, _p, _t, _f) rb_w32_uutimensat(_d, _p, _t, _f)
#define lseek(_f, _o, _w) rb_w32_lseek(_f, _o, _w)
#define pipe(p) rb_w32_pipe(p)
-#define open rb_w32_open
+#define open rb_w32_uopen
#define close(h) rb_w32_close(h)
#define fclose(f) rb_w32_fclose(f)
-#define read(f, b, s) rb_w32_read(f, b, s)
-#define write(f, b, s) rb_w32_write(f, b, s)
+#define read(f, b, s) rb_w32_read(f, b, s)
+#define write(f, b, s) rb_w32_write(f, b, s)
+#define pread(f, b, s, o) rb_w32_pread(f, b, s, o)
+#define pwrite(f, b, s, o) rb_w32_pwrite(f, b, s, o)
#define getpid() rb_w32_getpid()
+#undef HAVE_GETPPID
+#define HAVE_GETPPID 1
#define getppid() rb_w32_getppid()
#define sleep(x) rb_w32_Sleep((x)*1000)
#define Sleep(msec) (void)rb_w32_Sleep(msec)
+#undef HAVE_EXECV
+#define HAVE_EXECV 1
#undef execv
-#define execv(path,argv) rb_w32_aspawn(P_OVERLAY,path,argv)
+#define execv(path,argv) rb_w32_uaspawn(P_OVERLAY,path,argv)
#undef isatty
#define isatty(h) rb_w32_isatty(h)
#undef mkdir
-#define mkdir(p, m) rb_w32_mkdir(p, m)
+#define mkdir(p, m) rb_w32_umkdir(p, m)
#undef rmdir
-#define rmdir(p) rb_w32_rmdir(p)
+#define rmdir(p) rb_w32_urmdir(p)
#undef unlink
-#define unlink(p) rb_w32_unlink(p)
+#define unlink(p) rb_w32_uunlink(p)
#endif /* RUBY_EXPORT */
/* same with stati64 except the size of st_ino and nanosecond timestamps */
@@ -191,8 +204,6 @@ struct stati128 {
long st_ctimensec;
};
-#if SIZEOF_OFF_T == 8
-#define off_t __int64
#define stat stati128
#undef SIZEOF_STRUCT_STAT_ST_INO
#define SIZEOF_STRUCT_STAT_ST_INO sizeof(unsigned __int64)
@@ -201,15 +212,9 @@ struct stati128 {
#define HAVE_STRUCT_STAT_ST_MTIMENSEC
#define HAVE_STRUCT_STAT_ST_CTIMENSEC
#define fstat(fd,st) rb_w32_fstati128(fd,st)
-#define stati128(path, st) rb_w32_stati128(path,st)
-#else
-#define stat(path,st) rb_w32_stat(path,st)
-#define fstat(fd,st) rb_w32_fstat(fd,st)
-extern int rb_w32_stat(const char *, struct stat *);
-extern int rb_w32_fstat(int, struct stat *);
-#endif
-#define lstat(path,st) rb_w32_lstati128(path,st)
-#define access(path,mode) rb_w32_access(path,mode)
+#define stati128(path, st) rb_w32_ustati128(path,st)
+#define lstat(path,st) rb_w32_ulstati128(path,st)
+#define access(path,mode) rb_w32_uaccess(path,mode)
#define strcasecmp _stricmp
#define strncasecmp _strnicmp
@@ -257,8 +262,6 @@ struct ifaddrs {
#endif
extern void rb_w32_sysinit(int *, char ***);
-extern DWORD rb_w32_osid(void);
-extern rb_pid_t rb_w32_pipe_exec(const char *, const char *, int, int *, int *);
extern int flock(int fd, int oper);
extern int rb_w32_io_cancelable_p(int);
extern int rb_w32_is_socket(int);
@@ -294,56 +297,47 @@ extern struct servent *WSAAPI rb_w32_getservbyport(int, const char *);
extern int socketpair(int, int, int, int *);
extern int getifaddrs(struct ifaddrs **);
extern void freeifaddrs(struct ifaddrs *);
-extern char * rb_w32_getcwd(char *, int);
+extern char * rb_w32_ugetcwd(char *, int);
extern char * rb_w32_ugetenv(const char *);
-extern char * rb_w32_getenv(const char *);
-extern int rb_w32_rename(const char *, const char *);
extern int rb_w32_urename(const char *, const char *);
extern char **rb_w32_get_environ(void);
extern void rb_w32_free_environ(char **);
extern int rb_w32_map_errno(DWORD);
extern const char *WSAAPI rb_w32_inet_ntop(int,const void *,char *,size_t);
extern int WSAAPI rb_w32_inet_pton(int,const char *,void *);
-extern DWORD rb_w32_osver(void);
-extern int chown(const char *, int, int);
+RBIMPL_ATTR_DEPRECATED(("as Windows 9x is not supported already"))
+static inline DWORD rb_w32_osid(void) {return VER_PLATFORM_WIN32_NT;}
+RBIMPL_ATTR_DEPRECATED(("by Windows Version Helper APIs"))
+extern DWORD rb_w32_osver(void);
+
extern int rb_w32_uchown(const char *, int, int);
-extern int link(const char *, const char *);
extern int rb_w32_ulink(const char *, const char *);
-extern ssize_t readlink(const char *, char *, size_t);
extern ssize_t rb_w32_ureadlink(const char *, char *, size_t);
-extern ssize_t rb_w32_wreadlink(const WCHAR *, WCHAR *, size_t);
-extern int symlink(const char *src, const char *link);
extern int rb_w32_usymlink(const char *src, const char *link);
extern int gettimeofday(struct timeval *, struct timezone *);
extern int clock_gettime(clockid_t, struct timespec *);
extern int clock_getres(clockid_t, struct timespec *);
-extern rb_pid_t waitpid (rb_pid_t, int *, int);
-extern rb_pid_t rb_w32_spawn(int, const char *, const char*);
-extern rb_pid_t rb_w32_aspawn(int, const char *, char *const *);
-extern rb_pid_t rb_w32_aspawn_flags(int, const char *, char *const *, DWORD);
+extern rb_pid_t waitpid(rb_pid_t, int *, int);
+extern rb_pid_t wait(int *);
extern rb_pid_t rb_w32_uspawn(int, const char *, const char*);
extern rb_pid_t rb_w32_uaspawn(int, const char *, char *const *);
extern rb_pid_t rb_w32_uaspawn_flags(int, const char *, char *const *, DWORD);
-extern int kill(int, int);
+#undef HAVE_KILL
+#define HAVE_KILL 1
+extern int kill(rb_pid_t, int);
extern int fcntl(int, int, ...);
extern int rb_w32_set_nonblock(int);
extern rb_pid_t rb_w32_getpid(void);
extern rb_pid_t rb_w32_getppid(void);
extern int rb_w32_isatty(int);
extern int rb_w32_uchdir(const char *);
-extern int rb_w32_mkdir(const char *, int);
extern int rb_w32_umkdir(const char *, int);
-extern int rb_w32_rmdir(const char *);
extern int rb_w32_urmdir(const char *);
-extern int rb_w32_unlink(const char *);
extern int rb_w32_uunlink(const char *);
extern int rb_w32_uchmod(const char *, int);
-extern int rb_w32_stati128(const char *, struct stati128 *);
extern int rb_w32_ustati128(const char *, struct stati128 *);
-extern int rb_w32_lstati128(const char *, struct stati128 *);
extern int rb_w32_ulstati128(const char *, struct stati128 *);
-extern int rb_w32_access(const char *, int);
extern int rb_w32_uaccess(const char *, int);
extern char rb_w32_fd_is_text(int);
extern int rb_w32_fstati128(int, struct stati128 *);
@@ -351,7 +345,7 @@ extern int rb_w32_dup2(int, int);
#include <float.h>
-#if defined _MSC_VER && _MSC_VER >= 1800 && defined INFINITY
+#if defined _MSC_VER && defined INFINITY
#pragma warning(push)
#pragma warning(disable:4756)
static inline float
@@ -365,14 +359,6 @@ rb_infinity_float(void)
#endif
#if !defined __MINGW32__ || defined __NO_ISOCEXT
-#ifndef isnan
-#define isnan(x) _isnan(x)
-#endif
-static inline int
-finite(double x)
-{
- return _finite(x);
-}
#ifndef copysign
#define copysign(a, b) _copysign(a, b)
#endif
@@ -381,8 +367,6 @@ scalb(double a, long b)
{
return _scalb(a, b);
}
-#else
-__declspec(dllimport) extern int finite(double);
#endif
#if !defined S_IFIFO && defined _S_IFIFO
@@ -420,6 +404,7 @@ __declspec(dllimport) extern int finite(double);
#endif
#define S_IFLNK 0xa000
+#define S_IFSOCK 0xc000
/*
* define this so we can do inplace editing
@@ -427,9 +412,9 @@ __declspec(dllimport) extern int finite(double);
#define SUFFIX
-extern int rb_w32_ftruncate(int fd, off_t length);
-extern int rb_w32_truncate(const char *path, off_t length);
-extern int rb_w32_utruncate(const char *path, off_t length);
+extern int rb_w32_ftruncate(int fd, rb_off_t length);
+extern int rb_w32_truncate(const char *path, rb_off_t length);
+extern int rb_w32_utruncate(const char *path, rb_off_t length);
#undef HAVE_FTRUNCATE
#define HAVE_FTRUNCATE 1
@@ -441,16 +426,7 @@ extern int rb_w32_utruncate(const char *path, off_t length);
#undef HAVE_TRUNCATE
#define HAVE_TRUNCATE 1
-#if defined HAVE_TRUNCATE64
-#define truncate truncate64
-#else
-#define truncate rb_w32_truncate
-#endif
-
-#if defined(_MSC_VER) && _MSC_VER >= 1400 && _MSC_VER < 1800
-#define strtoll _strtoi64
-#define strtoull _strtoui64
-#endif
+#define truncate rb_w32_utruncate
/*
* stubs
@@ -683,6 +659,8 @@ extern char *rb_w32_strerror(int);
#undef setsockopt
#define setsockopt(s, v, n, o, l) rb_w32_setsockopt(s, v, n, o, l)
+#undef HAVE_SHUTDOWN
+#define HAVE_SHUTDOWN 1
#undef shutdown
#define shutdown(s, h) rb_w32_shutdown(s, h)
@@ -714,13 +692,13 @@ extern char *rb_w32_strerror(int);
#define get_osfhandle(h) rb_w32_get_osfhandle(h)
#undef getcwd
-#define getcwd(b, s) rb_w32_getcwd(b, s)
+#define getcwd(b, s) rb_w32_ugetcwd(b, s)
#undef getenv
-#define getenv(n) rb_w32_getenv(n)
+#define getenv(n) rb_w32_ugetenv(n)
#undef rename
-#define rename(o, n) rb_w32_rename(o, n)
+#define rename(o, n) rb_w32_urename(o, n)
#undef times
#define times(t) rb_w32_times(t)
@@ -730,10 +708,10 @@ extern char *rb_w32_strerror(int);
#endif
struct tms {
- long tms_utime;
- long tms_stime;
- long tms_cutime;
- long tms_cstime;
+ long tms_utime;
+ long tms_stime;
+ long tms_cutime;
+ long tms_cstime;
};
int rb_w32_times(struct tms *);
@@ -743,7 +721,6 @@ struct tm *localtime_r(const time_t *, struct tm *);
/* thread stuff */
int rb_w32_sleep(unsigned long msec);
-int rb_w32_open(const char *, int, ...);
int rb_w32_uopen(const char *, int, ...);
int rb_w32_wopen(const WCHAR *, int, ...);
int rb_w32_close(int);
@@ -751,12 +728,11 @@ int rb_w32_fclose(FILE*);
int rb_w32_pipe(int[2]);
ssize_t rb_w32_read(int, void *, size_t);
ssize_t rb_w32_write(int, const void *, size_t);
-off_t rb_w32_lseek(int, off_t, int);
-int rb_w32_utime(const char *, const struct utimbuf *);
+ssize_t rb_w32_pread(int, void *, size_t, rb_off_t offset);
+ssize_t rb_w32_pwrite(int, const void *, size_t, rb_off_t offset);
+rb_off_t rb_w32_lseek(int, rb_off_t, int);
int rb_w32_uutime(const char *, const struct utimbuf *);
-int rb_w32_utimes(const char *, const struct timeval *);
int rb_w32_uutimes(const char *, const struct timeval *);
-int rb_w32_utimensat(int /* must be AT_FDCWD */, const char *, const struct timespec *, int /* must be 0 */);
int rb_w32_uutimensat(int /* must be AT_FDCWD */, const char *, const struct timespec *, int /* must be 0 */);
long rb_w32_write_console(uintptr_t, int); /* use uintptr_t instead of VALUE because it's not defined yet here */
int WINAPI rb_w32_Sleep(unsigned long msec);
@@ -767,6 +743,27 @@ int rb_w32_unwrap_io_handle(int);
WCHAR *rb_w32_mbstr_to_wstr(UINT, const char *, int, long *);
char *rb_w32_wstr_to_mbstr(UINT, const WCHAR *, int, long *);
+DEPRECATED_BY(rb_w32_ugetcwd, char *rb_w32_getcwd(char *, int));
+DEPRECATED_BY(rb_w32_ugetenv, char *rb_w32_getenv(const char *));
+DEPRECATED_BY(rb_w32_urename, int rb_w32_rename(const char *, const char *));
+DEPRECATED_BY(rb_w32_uopen, int rb_w32_open(const char *, int, ...));
+DEPRECATED_BY(rb_w32_uchown, int chown(const char *, int, int));
+DEPRECATED_BY(rb_w32_ulink, int link(const char *, const char *));
+DEPRECATED_BY(rb_w32_ureadlink, ssize_t readlink(const char *, char *, size_t));
+DEPRECATED_BY(rb_w32_usymlink, int symlink(const char *src, const char *link));
+DEPRECATED_BY(rb_w32_umkdir, int rb_w32_mkdir(const char *, int));
+DEPRECATED_BY(rb_w32_urmdir, int rb_w32_rmdir(const char *));
+DEPRECATED_BY(rb_w32_uunlink, int rb_w32_unlink(const char *));
+DEPRECATED_BY(rb_w32_uutime, int rb_w32_utime(const char *, const struct utimbuf *));
+DEPRECATED_BY(rb_w32_uutimes, int rb_w32_utimes(const char *, const struct timeval *));
+DEPRECATED_BY(rb_w32_uutimensat, int rb_w32_utimensat(int, const char *, const struct timespec *, int));
+DEPRECATED_BY(rb_w32_ustati128, int rb_w32_stati128(const char *, struct stati128 *));
+DEPRECATED_BY(rb_w32_ulstati128, int rb_w32_lstati128(const char *, struct stati128 *));
+DEPRECATED_BY(rb_w32_uaccess, int rb_w32_access(const char *, int));
+DEPRECATED_BY(rb_w32_uspawn, rb_pid_t rb_w32_spawn(int, const char *, const char*));
+DEPRECATED_BY(rb_w32_uaspawn, rb_pid_t rb_w32_aspawn(int, const char *, char *const *));
+DEPRECATED_BY(rb_w32_uaspawn_flags, rb_pid_t rb_w32_aspawn_flags(int, const char *, char *const *, DWORD));
+
/*
== ***CAUTION***
Since this function is very dangerous, ((*NEVER*))
@@ -815,6 +812,25 @@ double rb_w32_pow(double x, double y);
#define pow rb_w32_pow
#endif
+// mmap tiny emulation
+#define MAP_FAILED ((void *)-1)
+
+#define PROT_READ 0x01
+#define PROT_WRITE 0x02
+#define PROT_EXEC 0x04
+
+#define MAP_PRIVATE 0x0002
+#define MAP_ANON 0x1000
+#define MAP_ANONYMOUS MAP_ANON
+
+extern void *rb_w32_mmap(void *, size_t, int, int, int, rb_off_t);
+extern int rb_w32_munmap(void *, size_t);
+extern int rb_w32_mprotect(void *, size_t, int);
+
+#define mmap(a, l, p, f, d, o) rb_w32_mmap(a, l, p, f, d, o)
+#define munmap(a, l) rb_w32_munmap(a, l)
+#define mprotect(a, l, prot) rb_w32_mprotect(a, l, prot)
+
#if defined(__cplusplus)
#if 0
{ /* satisfy cc-mode */
281614e0678e6'>benchmark/bm_vm2_regexp.rb2
-rw-r--r--benchmark/bm_vm2_send.rb2
-rw-r--r--benchmark/bm_vm2_super.rb2
-rw-r--r--benchmark/bm_vm2_unif1.rb2
-rw-r--r--benchmark/bm_vm2_zsuper.rb2
-rw-r--r--benchmark/bm_vm3_clearmethodcache.rb8
-rw-r--r--benchmark/bm_vm_thread_alive_check1.rb6
-rw-r--r--benchmark/bm_vm_thread_create_join.rb (renamed from benchmark/bm_vm3_thread_create_join.rb)0
-rw-r--r--benchmark/bm_vm_thread_mutex1.rb21
-rw-r--r--benchmark/bm_vm_thread_mutex2.rb21
-rw-r--r--benchmark/bm_vm_thread_mutex3.rb (renamed from benchmark/bm_vm3_thread_mutex.rb)4
-rw-r--r--benchmark/bm_vm_thread_pass.rb15
-rw-r--r--benchmark/bm_vm_thread_pass_flood.rb8
-rw-r--r--benchmark/bm_vm_thread_pipe.rb17
-rw-r--r--benchmark/driver.rb27
-rw-r--r--benchmark/other-lang/eval.rb4
-rw-r--r--benchmark/report.rb6
-rw-r--r--benchmark/run.rb6
-rw-r--r--benchmark/runc.rb4
-rw-r--r--bignum.c1171
-rwxr-xr-xbin/erb12
-rwxr-xr-xbin/gem9
-rwxr-xr-xbin/irb2
-rwxr-xr-xbin/rake7
-rwxr-xr-xbin/rdoc32
-rwxr-xr-xbin/ri7
-rwxr-xr-xbin/testrb20
-rw-r--r--blockinlining.c464
-rwxr-xr-x[-rw-r--r--]bootstraptest/runner.rb190
-rw-r--r--bootstraptest/test_autoload.rb34
-rw-r--r--bootstraptest/test_block.rb26
-rw-r--r--bootstraptest/test_class.rb7
-rw-r--r--bootstraptest/test_eval.rb28
-rw-r--r--bootstraptest/test_exception.rb28
-rw-r--r--bootstraptest/test_flow.rb49
-rw-r--r--bootstraptest/test_fork.rb47
-rw-r--r--bootstraptest/test_gc.rb34
-rw-r--r--bootstraptest/test_io.rb42
-rw-r--r--bootstraptest/test_jump.rb55
-rw-r--r--bootstraptest/test_literal.rb8
-rw-r--r--bootstraptest/test_method.rb39
-rw-r--r--bootstraptest/test_objectspace.rb12
-rw-r--r--bootstraptest/test_proc.rb63
-rw-r--r--bootstraptest/test_syntax.rb84
-rw-r--r--bootstraptest/test_thread.rb79
-rw-r--r--class.c797
-rw-r--r--common.mk506
-rw-r--r--compar.c16
-rw-r--r--compile.c863
-rw-r--r--complex.c819
-rw-r--r--configure.in1967
-rw-r--r--constant.h34
-rw-r--r--cont.c643
-rw-r--r--cygwin/GNUmakefile.in42
-rw-r--r--debug.c24
-rw-r--r--debug.h17
-rw-r--r--defs/default_gems7
-rw-r--r--defs/known_errors.def23
-rw-r--r--dir.c373
-rw-r--r--dln.c511
-rw-r--r--dln.h9
-rw-r--r--dln_find.c320
-rw-r--r--dmydln.c9
-rw-r--r--dmyversion.c2
-rw-r--r--doc/ChangeLog-1.8.05
-rw-r--r--doc/ChangeLog-1.9.380621
-rw-r--r--doc/ChangeLog-YARV2
-rw-r--r--doc/NEWS-1.8.717
-rw-r--r--doc/NEWS-1.9.12
-rw-r--r--doc/NEWS-1.9.2499
-rw-r--r--doc/etc.rd (renamed from ext/etc/etc.txt)29
-rw-r--r--doc/etc.rd.ja (renamed from ext/etc/etc.txt.ja)25
-rw-r--r--doc/images/boottime-classes.pngbin0 -> 28677 bytes-rw-r--r--doc/irb/irb.rd2
-rw-r--r--doc/irb/irb.rd.ja2
-rw-r--r--doc/pty/README (renamed from ext/pty/README)19
-rw-r--r--doc/pty/README.expect (renamed from ext/pty/README.expect)0
-rw-r--r--doc/pty/README.expect.ja (renamed from ext/pty/README.expect.ja)0
-rw-r--r--doc/pty/README.ja (renamed from ext/pty/README.ja)49
-rw-r--r--doc/rake/CHANGES440
-rw-r--r--doc/rake/README196
-rw-r--r--doc/rake/command_line_usage.rdoc102
-rw-r--r--doc/rake/example/Rakefile138
-rw-r--r--doc/rake/example/Rakefile235
-rw-r--r--doc/rake/example/a.c6
-rw-r--r--doc/rake/example/b.c6
-rw-r--r--doc/rake/example/main.c11
-rw-r--r--doc/rake/glossary.rdoc51
-rw-r--r--doc/rake/jamis.rb591
-rw-r--r--doc/rake/proto_rake.rdoc127
-rw-r--r--doc/rake/rakefile.rdoc534
-rw-r--r--doc/rake/rational.rdoc151
-rw-r--r--doc/rake/release_notes/rake-0.8.7.rdoc55
-rw-r--r--doc/re.rdoc582
-rw-r--r--doc/rubygems/ChangeLog5689
-rw-r--r--doc/rubygems/History.txt852
-rw-r--r--doc/rubygems/LICENSE.txt53
-rw-r--r--doc/rubygems/README41
-rw-r--r--enc/Makefile.in19
-rw-r--r--enc/big5.c167
-rw-r--r--enc/cp949.c6
-rw-r--r--enc/depend49
-rw-r--r--enc/emacs_mule.c8
-rw-r--r--enc/encdb.c6
-rw-r--r--enc/euc_jp.c36
-rw-r--r--enc/euc_kr.c4
-rw-r--r--enc/euc_tw.c19
-rw-r--r--enc/gb18030.c13
-rw-r--r--enc/gbk.c6
-rw-r--r--enc/iso_2022_jp.h20
-rw-r--r--enc/iso_8859_1.c4
-rw-r--r--enc/iso_8859_2.c6
-rw-r--r--enc/iso_8859_5.c2
-rw-r--r--enc/koi8_r.c2
-rw-r--r--enc/koi8_u.c2
-rwxr-xr-x[-rw-r--r--]enc/make_encmake.rb2
-rw-r--r--enc/prelude.rb2
-rw-r--r--enc/shift_jis.c48
-rw-r--r--enc/trans/EMOJI/EMOJI_ISO-2022-JP-KDDI%UCS.src658
-rw-r--r--enc/trans/EMOJI/EMOJI_SHIFT_JIS-DOCOMO%UCS.src293
-rw-r--r--enc/trans/EMOJI/EMOJI_SHIFT_JIS-KDDI%UCS.src658
-rw-r--r--enc/trans/EMOJI/EMOJI_SHIFT_JIS-KDDI-UNDOC%UCS.src658
-rw-r--r--enc/trans/EMOJI/EMOJI_SHIFT_JIS-SOFTBANK%UCS.src496
-rw-r--r--enc/trans/EMOJI/UCS%EMOJI_ISO-2022-JP-KDDI-UNDOC.src658
-rw-r--r--enc/trans/EMOJI/UCS%EMOJI_ISO-2022-JP-KDDI.src658
-rw-r--r--enc/trans/EMOJI/UCS%EMOJI_SHIFT_JIS-DOCOMO.src293
-rw-r--r--enc/trans/EMOJI/UCS%EMOJI_SHIFT_JIS-KDDI-UNDOC.src658
-rw-r--r--enc/trans/EMOJI/UCS%EMOJI_SHIFT_JIS-KDDI.src658
-rw-r--r--enc/trans/EMOJI/UCS%EMOJI_SHIFT_JIS-SOFTBANK.src496
-rw-r--r--enc/trans/big5-hkscs-tbl.rb37302
-rw-r--r--enc/trans/big5-uao-tbl.rb (renamed from enc/trans/big5-tbl.rb)32139
-rw-r--r--enc/trans/big5.trans25
-rw-r--r--enc/trans/chinese.trans10
-rw-r--r--enc/trans/emoji-exchange-tbl.rb8407
-rw-r--r--enc/trans/emoji.trans37
-rw-r--r--enc/trans/emoji_iso2022_kddi.trans217
-rw-r--r--enc/trans/emoji_sjis_docomo.trans33
-rw-r--r--enc/trans/emoji_sjis_kddi.trans34
-rw-r--r--enc/trans/emoji_sjis_softbank.trans33
-rw-r--r--enc/trans/escape.trans6
-rw-r--r--enc/trans/gb18030-tbl.rb32
-rw-r--r--enc/trans/gb18030.trans110
-rw-r--r--enc/trans/gbk-tbl.rb1
-rw-r--r--enc/trans/ibm737-tbl.rb130
-rw-r--r--enc/trans/iso2022.trans148
-rw-r--r--enc/trans/newline.trans26
-rw-r--r--enc/trans/single_byte.trans4
-rw-r--r--enc/trans/ucm/glibc-BIG5-2.3.3.ucm14087
-rw-r--r--enc/trans/ucm/glibc-BIG5HKSCS-2.3.3.ucm18332
-rw-r--r--enc/trans/ucm/windows-950-2000.ucm20379
-rw-r--r--enc/trans/ucm/windows-950_hkscs-2001.ucm23446
-rw-r--r--enc/trans/utf8_mac.trans23
-rw-r--r--enc/trans/utf_16_32.trans188
-rw-r--r--enc/unicode.c8818
-rw-r--r--enc/unicode/name2ctype.h23866
-rw-r--r--enc/unicode/name2ctype.h.blt23866
-rw-r--r--enc/unicode/name2ctype.kwd22543
-rw-r--r--enc/unicode/name2ctype.src22543
-rw-r--r--enc/utf_16_32.h4
-rw-r--r--enc/utf_16be.c7
-rw-r--r--enc/utf_16le.c10
-rw-r--r--enc/utf_32be.c2
-rw-r--r--enc/utf_32le.c2
-rw-r--r--enc/utf_8.c20
-rw-r--r--enc/x_emoji.h26
-rw-r--r--encoding.c491
-rw-r--r--enum.c1293
-rw-r--r--enumerator.c904
-rw-r--r--error.c730
-rw-r--r--eval.c334
-rw-r--r--eval_error.c22
-rw-r--r--eval_intern.h24
-rw-r--r--eval_jump.c63
-rw-r--r--ext/-test-/add_suffix/bug.c32
-rw-r--r--ext/-test-/add_suffix/depend1
-rw-r--r--ext/-test-/add_suffix/extconf.rb4
-rw-r--r--ext/-test-/array/resize/extconf.rb1
-rw-r--r--ext/-test-/array/resize/resize.c14
-rw-r--r--ext/-test-/bug-3571/bug.c23
-rw-r--r--ext/-test-/bug-3571/extconf.rb1
-rw-r--r--ext/-test-/bug-3662/bug.c16
-rw-r--r--ext/-test-/bug-3662/extconf.rb1
-rw-r--r--ext/-test-/funcall/extconf.rb2
-rw-r--r--ext/-test-/funcall/passing_block.c30
-rw-r--r--ext/-test-/load/dot.dot/dot.dot.c1
-rw-r--r--ext/-test-/load/dot.dot/extconf.rb1
-rw-r--r--ext/-test-/old_thread_select/depend2
-rw-r--r--ext/-test-/old_thread_select/extconf.rb1
-rw-r--r--ext/-test-/old_thread_select/old_thread_select.c75
-rw-r--r--ext/-test-/st/numhash/extconf.rb1
-rw-r--r--ext/-test-/st/numhash/numhash.c69
-rw-r--r--ext/-test-/string/cstr.c20
-rw-r--r--ext/-test-/string/ellipsize.c13
-rw-r--r--ext/-test-/string/enc_associate.c14
-rw-r--r--ext/-test-/string/extconf.rb6
-rw-r--r--ext/-test-/string/init.c11
-rw-r--r--ext/-test-/string/modify.c22
-rw-r--r--ext/-test-/string/set_len.c14
-rw-r--r--ext/-test-/wait_for_single_fd/depend2
-rw-r--r--ext/-test-/wait_for_single_fd/extconf.rb1
-rw-r--r--ext/-test-/wait_for_single_fd/wait_for_single_fd.c30
-rw-r--r--ext/-test-/win32/dln/dlntest.c17
-rw-r--r--ext/-test-/win32/dln/extconf.rb34
-rw-r--r--ext/-test-/win32/dln/libdlntest.c4
-rw-r--r--ext/-test-/win32/dln/libdlntest.def2
-rw-r--r--ext/.cvsignore2
-rw-r--r--ext/.document70
-rw-r--r--ext/bigdecimal/.cvsignore4
-rw-r--r--ext/bigdecimal/README2
-rw-r--r--ext/bigdecimal/bigdecimal.c3173
-rw-r--r--ext/bigdecimal/bigdecimal.def2
-rw-r--r--ext/bigdecimal/bigdecimal.gemspec30
-rw-r--r--ext/bigdecimal/bigdecimal.h166
-rw-r--r--ext/bigdecimal/bigdecimal_en.html112
-rw-r--r--ext/bigdecimal/bigdecimal_ja.html12
-rw-r--r--ext/bigdecimal/extconf.rb8
-rw-r--r--ext/bigdecimal/lib/bigdecimal/jacobian.rb28
-rw-r--r--ext/bigdecimal/lib/bigdecimal/ludcmp.rb42
-rw-r--r--ext/bigdecimal/lib/bigdecimal/math.rb91
-rw-r--r--ext/bigdecimal/lib/bigdecimal/newton.rb7
-rw-r--r--ext/bigdecimal/lib/bigdecimal/util.rb122
-rw-r--r--ext/coverage/coverage.c30
-rw-r--r--ext/coverage/extconf.rb1
-rw-r--r--ext/curses/.cvsignore4
-rw-r--r--ext/curses/curses.c2133
-rw-r--r--ext/curses/view2.rb228
-rw-r--r--ext/date/date_core.c9774
-rw-r--r--ext/date/date_parse.c2425
-rw-r--r--ext/date/date_strftime.c1155
-rw-r--r--ext/date/date_strptime.c698
-rw-r--r--ext/date/date_tmx.h56
-rw-r--r--ext/date/depend2
-rw-r--r--ext/date/extconf.rb2
-rw-r--r--ext/date/lib/date.rb61
-rw-r--r--ext/date/lib/date/format.rb1
-rw-r--r--ext/dbm/.cvsignore4
-rw-r--r--ext/dbm/dbm.c338
-rw-r--r--ext/dbm/extconf.rb273
-rw-r--r--ext/digest/.cvsignore4
-rw-r--r--ext/digest/bubblebabble/.cvsignore4
-rw-r--r--ext/digest/bubblebabble/bubblebabble.c4
-rw-r--r--ext/digest/digest.c92
-rw-r--r--ext/digest/lib/digest.rb46
-rw-r--r--ext/digest/lib/digest/hmac.rb94
-rw-r--r--ext/digest/md5/.cvsignore4
-rw-r--r--ext/digest/md5/extconf.rb4
-rw-r--r--ext/digest/rmd160/.cvsignore4
-rw-r--r--ext/digest/rmd160/extconf.rb4
-rw-r--r--ext/digest/rmd160/rmd160.h2
-rw-r--r--ext/digest/sha1/.cvsignore4
-rw-r--r--ext/digest/sha1/extconf.rb4
-rw-r--r--ext/digest/sha1/sha1.h4
-rw-r--r--ext/digest/sha1/sha1init.c4
-rw-r--r--ext/digest/sha2/.cvsignore4
-rw-r--r--ext/digest/sha2/depend1
-rw-r--r--ext/digest/sha2/extconf.rb22
-rw-r--r--ext/digest/sha2/lib/sha2.rb50
-rw-r--r--ext/digest/sha2/sha2.c283
-rw-r--r--ext/digest/sha2/sha2.h170
-rw-r--r--ext/digest/sha2/sha2init.c4
-rw-r--r--ext/digest/sha2/sha2ossl.c11
-rw-r--r--ext/digest/sha2/sha2ossl.h17
-rw-r--r--ext/dl/.cvsignore10
-rw-r--r--ext/dl/callback/mkcallback.rb10
-rw-r--r--ext/dl/cfunc.c310
-rw-r--r--ext/dl/cptr.c352
-rw-r--r--ext/dl/dl.c261
-rw-r--r--ext/dl/dl.h62
-rw-r--r--ext/dl/extconf.rb2
-rw-r--r--ext/dl/handle.c228
-rw-r--r--ext/dl/lib/dl.rb12
-rw-r--r--ext/dl/lib/dl/callback.rb101
-rw-r--r--ext/dl/lib/dl/cparser.rb6
-rw-r--r--ext/dl/lib/dl/func.rb114
-rw-r--r--ext/dl/lib/dl/import.rb39
-rw-r--r--ext/dl/lib/dl/pack.rb2
-rw-r--r--ext/dl/lib/dl/struct.rb1
-rw-r--r--ext/dl/lib/dl/types.rb41
-rw-r--r--ext/dl/lib/dl/value.rb6
-rw-r--r--ext/dl/win32/lib/win32/registry.rb482
-rw-r--r--ext/dl/win32/lib/win32/resolv.rb2
-rw-r--r--ext/etc/.cvsignore3
-rw-r--r--ext/etc/depend2
-rw-r--r--ext/etc/etc.c100
-rw-r--r--ext/etc/extconf.rb4
-rwxr-xr-x[-rw-r--r--]ext/extmk.rb166
-rw-r--r--ext/fcntl/.cvsignore4
-rw-r--r--ext/fcntl/fcntl.c8
-rw-r--r--ext/fiddle/closure.c307
-rw-r--r--ext/fiddle/closure.h8
-rw-r--r--ext/fiddle/conversions.c139
-rw-r--r--ext/fiddle/conversions.h44
-rw-r--r--ext/fiddle/extconf.rb24
-rw-r--r--ext/fiddle/fiddle.c87
-rw-r--r--ext/fiddle/fiddle.h103
-rw-r--r--ext/fiddle/function.c217
-rw-r--r--ext/fiddle/function.h8
-rw-r--r--ext/fiddle/lib/fiddle.rb34
-rw-r--r--ext/fiddle/lib/fiddle/closure.rb48
-rw-r--r--ext/fiddle/lib/fiddle/function.rb6
-rw-r--r--ext/gdbm/.cvsignore4
-rw-r--r--ext/gdbm/gdbm.c50
-rw-r--r--ext/iconv/.cvsignore6
-rw-r--r--ext/iconv/charset_alias.rb7
-rw-r--r--ext/iconv/extconf.rb1
-rw-r--r--ext/iconv/iconv.c99
-rw-r--r--ext/iconv/mkwrapper.rb8
-rw-r--r--ext/io/console/console.c762
-rw-r--r--ext/io/console/extconf.rb20
-rw-r--r--ext/io/console/io-console.gemspec15
-rw-r--r--ext/io/console/lib/console/size.rb20
-rw-r--r--ext/io/nonblock/extconf.rb8
-rw-r--r--ext/io/nonblock/nonblock.c114
-rw-r--r--ext/io/wait/.cvsignore3
-rw-r--r--ext/io/wait/lib/nonblock.rb23
-rw-r--r--ext/io/wait/wait.c36
-rw-r--r--ext/json/ext/generator/extconf.rb9
-rw-r--r--ext/json/ext/generator/generator.c919
-rw-r--r--ext/json/ext/generator/unicode.c182
-rw-r--r--ext/json/ext/generator/unicode.h53
-rw-r--r--ext/json/ext/parser/extconf.rb9
-rw-r--r--ext/json/ext/parser/parser.rl662
-rw-r--r--ext/json/ext/parser/unicode.c154
-rw-r--r--ext/json/ext/parser/unicode.h58
-rw-r--r--ext/json/generator/depend1
-rw-r--r--ext/json/generator/extconf.rb10
-rw-r--r--ext/json/generator/generator.c1459
-rw-r--r--ext/json/generator/generator.h200
-rw-r--r--[-rwxr-xr-x]ext/json/lib/json.rb307
-rw-r--r--ext/json/lib/json/Array.xpm21
-rw-r--r--ext/json/lib/json/FalseClass.xpm21
-rw-r--r--ext/json/lib/json/Hash.xpm21
-rw-r--r--ext/json/lib/json/Key.xpm73
-rw-r--r--ext/json/lib/json/NilClass.xpm21
-rw-r--r--ext/json/lib/json/Numeric.xpm28
-rw-r--r--ext/json/lib/json/String.xpm96
-rw-r--r--ext/json/lib/json/TrueClass.xpm21
-rw-r--r--ext/json/lib/json/add/complex.rb22
-rw-r--r--ext/json/lib/json/add/core.rb170
-rw-r--r--ext/json/lib/json/add/rails.rb58
-rw-r--r--ext/json/lib/json/add/rational.rb22
-rw-r--r--[-rwxr-xr-x]ext/json/lib/json/common.rb243
-rwxr-xr-xext/json/lib/json/editor.rb1371
-rw-r--r--ext/json/lib/json/ext.rb4
-rw-r--r--ext/json/lib/json/json.xpm1499
-rw-r--r--ext/json/lib/json/version.rb3
-rw-r--r--ext/json/parser/depend1
-rw-r--r--ext/json/parser/extconf.rb10
-rw-r--r--ext/json/parser/parser.c (renamed from ext/json/ext/parser/parser.c)1173
-rw-r--r--ext/json/parser/parser.h82
-rw-r--r--ext/json/parser/parser.rl916
-rw-r--r--ext/json/parser/prereq.mk9
-rw-r--r--ext/nkf/.cvsignore4
-rw-r--r--ext/nkf/lib/kconv.rb10
-rw-r--r--ext/nkf/nkf-utf8/config.h2
-rw-r--r--ext/nkf/nkf-utf8/nkf.c236
-rw-r--r--ext/nkf/nkf-utf8/nkf.h4
-rw-r--r--ext/nkf/nkf.c10
-rw-r--r--ext/objspace/depend3
-rw-r--r--ext/objspace/extconf.rb2
-rw-r--r--ext/objspace/objspace.c650
-rw-r--r--ext/openssl/.cvsignore5
-rw-r--r--ext/openssl/extconf.rb43
-rw-r--r--ext/openssl/lib/openssl.rb1
-rw-r--r--ext/openssl/lib/openssl/bn.rb40
-rw-r--r--ext/openssl/lib/openssl/buffering.rb244
-rw-r--r--ext/openssl/lib/openssl/cipher.rb40
-rw-r--r--ext/openssl/lib/openssl/config.rb313
-rw-r--r--ext/openssl/lib/openssl/digest.rb51
-rw-r--r--ext/openssl/lib/openssl/ssl-internal.rb2
-rw-r--r--ext/openssl/lib/openssl/ssl.rb1
-rw-r--r--ext/openssl/lib/openssl/x509-internal.rb9
-rw-r--r--ext/openssl/lib/openssl/x509.rb1
-rw-r--r--ext/openssl/openssl_missing.c25
-rw-r--r--ext/openssl/openssl_missing.h37
-rw-r--r--ext/openssl/ossl.c501
-rw-r--r--ext/openssl/ossl.h39
-rw-r--r--ext/openssl/ossl_asn1.c1095
-rw-r--r--ext/openssl/ossl_asn1.h4
-rw-r--r--ext/openssl/ossl_bio.c5
-rw-r--r--ext/openssl/ossl_bn.c50
-rw-r--r--ext/openssl/ossl_cipher.c314
-rw-r--r--ext/openssl/ossl_config.c429
-rw-r--r--ext/openssl/ossl_digest.c219
-rw-r--r--ext/openssl/ossl_engine.c40
-rw-r--r--ext/openssl/ossl_hmac.c46
-rw-r--r--ext/openssl/ossl_ns_spki.c38
-rw-r--r--ext/openssl/ossl_ocsp.c79
-rw-r--r--ext/openssl/ossl_pkcs12.c18
-rw-r--r--ext/openssl/ossl_pkcs5.c9
-rw-r--r--ext/openssl/ossl_pkcs7.c113
-rw-r--r--ext/openssl/ossl_pkey.c180
-rw-r--r--ext/openssl/ossl_pkey.h16
-rw-r--r--ext/openssl/ossl_pkey_dh.c164
-rw-r--r--ext/openssl/ossl_pkey_dsa.c155
-rw-r--r--ext/openssl/ossl_pkey_ec.c181
-rw-r--r--ext/openssl/ossl_pkey_rsa.c217
-rw-r--r--ext/openssl/ossl_rand.c24
-rw-r--r--ext/openssl/ossl_ssl.c495
-rw-r--r--ext/openssl/ossl_ssl.h10
-rw-r--r--ext/openssl/ossl_ssl_session.c115
-rw-r--r--ext/openssl/ossl_x509attr.c29
-rw-r--r--ext/openssl/ossl_x509cert.c228
-rw-r--r--ext/openssl/ossl_x509crl.c74
-rw-r--r--ext/openssl/ossl_x509ext.c68
-rw-r--r--ext/openssl/ossl_x509name.c82
-rw-r--r--ext/openssl/ossl_x509req.c70
-rw-r--r--ext/openssl/ossl_x509revoked.c38
-rw-r--r--ext/openssl/ossl_x509store.c79
-rw-r--r--ext/openssl/ruby_missing.h10
-rw-r--r--ext/pathname/extconf.rb2
-rw-r--r--ext/pathname/lib/pathname.rb527
-rw-r--r--ext/pathname/pathname.c1240
-rw-r--r--ext/psych/emitter.c517
-rw-r--r--ext/psych/emitter.h8
-rw-r--r--ext/psych/extconf.rb16
-rw-r--r--ext/psych/lib/psych.rb331
-rw-r--r--ext/psych/lib/psych/coder.rb94
-rw-r--r--ext/psych/lib/psych/core_ext.rb42
-rw-r--r--ext/psych/lib/psych/deprecated.rb83
-rw-r--r--ext/psych/lib/psych/handler.rb221
-rw-r--r--ext/psych/lib/psych/handlers/document_stream.rb22
-rw-r--r--ext/psych/lib/psych/json/ruby_events.rb19
-rw-r--r--ext/psych/lib/psych/json/stream.rb15
-rw-r--r--ext/psych/lib/psych/json/tree_builder.rb12
-rw-r--r--ext/psych/lib/psych/json/yaml_events.rb29
-rw-r--r--ext/psych/lib/psych/nodes.rb77
-rw-r--r--ext/psych/lib/psych/nodes/alias.rb18
-rw-r--r--ext/psych/lib/psych/nodes/document.rb60
-rw-r--r--ext/psych/lib/psych/nodes/mapping.rb56
-rw-r--r--ext/psych/lib/psych/nodes/node.rb53
-rw-r--r--ext/psych/lib/psych/nodes/scalar.rb67
-rw-r--r--ext/psych/lib/psych/nodes/sequence.rb81
-rw-r--r--ext/psych/lib/psych/nodes/stream.rb37
-rw-r--r--ext/psych/lib/psych/omap.rb4
-rw-r--r--ext/psych/lib/psych/parser.rb51
-rw-r--r--ext/psych/lib/psych/scalar_scanner.rb128
-rw-r--r--ext/psych/lib/psych/set.rb4
-rw-r--r--ext/psych/lib/psych/stream.rb36
-rw-r--r--ext/psych/lib/psych/streaming.rb22
-rw-r--r--ext/psych/lib/psych/syntax_error.rb19
-rw-r--r--ext/psych/lib/psych/tree_builder.rb96
-rw-r--r--ext/psych/lib/psych/visitors.rb6
-rw-r--r--ext/psych/lib/psych/visitors/depth_first.rb26
-rw-r--r--ext/psych/lib/psych/visitors/emitter.rb44
-rw-r--r--ext/psych/lib/psych/visitors/json_tree.rb21
-rw-r--r--ext/psych/lib/psych/visitors/to_ruby.rb317
-rw-r--r--ext/psych/lib/psych/visitors/visitor.rb19
-rw-r--r--ext/psych/lib/psych/visitors/yaml_tree.rb452
-rw-r--r--ext/psych/parser.c579
-rw-r--r--ext/psych/parser.h6
-rw-r--r--ext/psych/psych.c34
-rw-r--r--ext/psych/psych.h20
-rw-r--r--ext/psych/to_ruby.c41
-rw-r--r--ext/psych/to_ruby.h8
-rw-r--r--ext/psych/yaml_tree.c24
-rw-r--r--ext/psych/yaml_tree.h8
-rw-r--r--ext/pty/.cvsignore4
-rw-r--r--ext/pty/lib/expect.rb19
-rw-r--r--ext/pty/pty.c188
-rw-r--r--ext/purelib.rb10
-rw-r--r--ext/racc/cparse/.cvsignore4
-rw-r--r--ext/racc/cparse/cparse.c27
-rw-r--r--ext/readline/.cvsignore4
-rw-r--r--ext/readline/README.ja87
-rw-r--r--ext/readline/extconf.rb28
-rw-r--r--ext/readline/readline.c456
-rw-r--r--ext/ripper/.cvsignore8
-rw-r--r--ext/ripper/README2
-rw-r--r--ext/ripper/depend20
-rw-r--r--ext/ripper/eventids2.c1
-rw-r--r--ext/ripper/lib/ripper/sexp.rb25
-rw-r--r--ext/sdbm/.cvsignore4
-rw-r--r--ext/sdbm/_sdbm.c68
-rw-r--r--ext/sdbm/depend4
-rw-r--r--ext/sdbm/extconf.rb1
-rw-r--r--ext/sdbm/init.c30
-rw-r--r--ext/sdbm/sdbm.h8
-rw-r--r--ext/socket/.cvsignore5
-rw-r--r--ext/socket/.document16
-rw-r--r--ext/socket/addrinfo.h50
-rw-r--r--ext/socket/ancdata.c165
-rw-r--r--ext/socket/basicsocket.c110
-rw-r--r--ext/socket/constants.c5
-rw-r--r--ext/socket/depend2
-rw-r--r--ext/socket/extconf.rb217
-rw-r--r--ext/socket/getaddrinfo.c45
-rw-r--r--ext/socket/getnameinfo.c20
-rw-r--r--ext/socket/init.c160
-rw-r--r--ext/socket/ipsocket.c106
-rw-r--r--ext/socket/lib/socket.rb141
-rw-r--r--ext/socket/mkconstants.rb734
-rw-r--r--ext/socket/option.c269
-rw-r--r--ext/socket/raddrinfo.c201
-rw-r--r--ext/socket/rubysocket.h64
-rw-r--r--ext/socket/socket.c553
-rw-r--r--ext/socket/sockssocket.c23
-rw-r--r--ext/socket/tcpserver.c59
-rw-r--r--ext/socket/tcpsocket.c23
-rw-r--r--ext/socket/udpsocket.c31
-rw-r--r--ext/socket/unixserver.c30
-rw-r--r--ext/socket/unixsocket.c78
-rw-r--r--ext/stringio/.cvsignore4
-rw-r--r--ext/stringio/README2
-rw-r--r--ext/stringio/depend2
-rw-r--r--ext/stringio/stringio.c270
-rw-r--r--ext/strscan/.cvsignore4
-rw-r--r--ext/strscan/strscan.c53
-rw-r--r--ext/syck/.cvsignore4
-rw-r--r--ext/syck/bytecode.c24
-rw-r--r--ext/syck/emitter.c48
-rw-r--r--ext/syck/gram.c76
-rw-r--r--ext/syck/handler.c10
-rw-r--r--ext/syck/implicit.c14
-rw-r--r--ext/syck/lib/syck.rb447
-rw-r--r--ext/syck/lib/syck/baseemitter.rb (renamed from lib/yaml/baseemitter.rb)16
-rw-r--r--ext/syck/lib/syck/basenode.rb (renamed from lib/yaml/basenode.rb)14
-rw-r--r--ext/syck/lib/syck/constants.rb (renamed from lib/yaml/constants.rb)2
-rw-r--r--ext/syck/lib/syck/encoding.rb (renamed from lib/yaml/encoding.rb)8
-rw-r--r--ext/syck/lib/syck/error.rb (renamed from lib/yaml/error.rb)2
-rw-r--r--ext/syck/lib/syck/loader.rb (renamed from lib/yaml/loader.rb)2
-rw-r--r--ext/syck/lib/syck/rubytypes.rb (renamed from lib/yaml/rubytypes.rb)33
-rw-r--r--ext/syck/lib/syck/stream.rb (renamed from lib/yaml/stream.rb)5
-rw-r--r--ext/syck/lib/syck/stringio.rb (renamed from lib/yaml/stringio.rb)14
-rw-r--r--ext/syck/lib/syck/syck.rb16
-rw-r--r--ext/syck/lib/syck/tag.rb (renamed from lib/yaml/tag.rb)22
-rw-r--r--ext/syck/lib/syck/types.rb (renamed from lib/yaml/types.rb)18
-rw-r--r--ext/syck/lib/syck/yamlnode.rb (renamed from lib/yaml/yamlnode.rb)6
-rw-r--r--ext/syck/lib/syck/ypath.rb (renamed from lib/yaml/ypath.rb)6
-rw-r--r--ext/syck/lib/yaml/syck.rb14
-rw-r--r--ext/syck/node.c18
-rw-r--r--ext/syck/rubyext.c132
-rw-r--r--ext/syck/syck.c14
-rw-r--r--ext/syck/syck.h13
-rw-r--r--ext/syck/token.c106
-rw-r--r--ext/syck/yaml2byte.c20
-rw-r--r--ext/syck/yamlbyte.h21
-rw-r--r--ext/syslog/.cvsignore4
-rw-r--r--ext/syslog/syslog.c194
-rw-r--r--ext/syslog/syslog.txt4
-rw-r--r--ext/tk/.cvsignore3
-rw-r--r--ext/tk/ChangeLog.tkextlib50
-rw-r--r--ext/tk/MANUAL_tcltklib.eng310
-rw-r--r--ext/tk/MANUAL_tcltklib.eucj37
-rw-r--r--ext/tk/README.1st14
-rw-r--r--ext/tk/README.ActiveTcl35
-rw-r--r--ext/tk/README.fork14
-rw-r--r--ext/tk/README.macosx-aqua20
-rw-r--r--ext/tk/README.tcltklib119
-rw-r--r--ext/tk/config_list.in41
-rw-r--r--ext/tk/extconf.rb1994
-rw-r--r--ext/tk/lib/README4
-rw-r--r--ext/tk/lib/multi-tk.rb523
-rw-r--r--ext/tk/lib/remote-tk.rb22
-rw-r--r--ext/tk/lib/tk.rb379
-rw-r--r--ext/tk/lib/tk/autoload.rb398
-rw-r--r--ext/tk/lib/tk/bindtag.rb2
-rw-r--r--ext/tk/lib/tk/busy.rb118
-rw-r--r--ext/tk/lib/tk/button.rb5
-rw-r--r--ext/tk/lib/tk/canvas.rb68
-rw-r--r--ext/tk/lib/tk/canvastag.rb29
-rw-r--r--ext/tk/lib/tk/checkbutton.rb8
-rw-r--r--ext/tk/lib/tk/composite.rb42
-rw-r--r--ext/tk/lib/tk/entry.rb5
-rw-r--r--ext/tk/lib/tk/event.rb22
-rw-r--r--ext/tk/lib/tk/font.rb15
-rw-r--r--ext/tk/lib/tk/fontchooser.rb176
-rw-r--r--ext/tk/lib/tk/frame.rb5
-rw-r--r--ext/tk/lib/tk/grid.rb20
-rw-r--r--ext/tk/lib/tk/image.rb132
-rw-r--r--ext/tk/lib/tk/itemconfig.rb7
-rw-r--r--ext/tk/lib/tk/label.rb5
-rw-r--r--ext/tk/lib/tk/labelframe.rb6
-rw-r--r--ext/tk/lib/tk/listbox.rb6
-rw-r--r--ext/tk/lib/tk/macpkg.rb4
-rw-r--r--ext/tk/lib/tk/menu.rb59
-rw-r--r--ext/tk/lib/tk/menubar.rb24
-rw-r--r--ext/tk/lib/tk/menuspec.rb207
-rw-r--r--ext/tk/lib/tk/message.rb6
-rw-r--r--ext/tk/lib/tk/msgcat.rb2
-rw-r--r--ext/tk/lib/tk/namespace.rb2
-rw-r--r--ext/tk/lib/tk/optiondb.rb2
-rw-r--r--ext/tk/lib/tk/panedwindow.rb8
-rw-r--r--ext/tk/lib/tk/radiobutton.rb8
-rw-r--r--ext/tk/lib/tk/root.rb2
-rw-r--r--ext/tk/lib/tk/scale.rb5
-rw-r--r--ext/tk/lib/tk/scrollbar.rb14
-rw-r--r--ext/tk/lib/tk/spinbox.rb33
-rw-r--r--ext/tk/lib/tk/text.rb16
-rw-r--r--ext/tk/lib/tk/textmark.rb2
-rw-r--r--ext/tk/lib/tk/texttag.rb5
-rw-r--r--ext/tk/lib/tk/timer.rb6
-rw-r--r--ext/tk/lib/tk/toplevel.rb6
-rw-r--r--ext/tk/lib/tk/ttk_selector.rb34
-rw-r--r--ext/tk/lib/tk/variable.rb52
-rw-r--r--ext/tk/lib/tk/virtevent.rb4
-rw-r--r--ext/tk/lib/tk/winpkg.rb7
-rw-r--r--ext/tk/lib/tkextlib/SUPPORT_STATUS78
-rw-r--r--ext/tk/lib/tkextlib/blt.rb2
-rw-r--r--ext/tk/lib/tkextlib/blt/barchart.rb4
-rw-r--r--ext/tk/lib/tkextlib/blt/bitmap.rb2
-rw-r--r--ext/tk/lib/tkextlib/blt/busy.rb1
-rw-r--r--ext/tk/lib/tkextlib/blt/component.rb89
-rw-r--r--ext/tk/lib/tkextlib/blt/container.rb2
-rw-r--r--ext/tk/lib/tkextlib/blt/dragdrop.rb3
-rw-r--r--ext/tk/lib/tkextlib/blt/graph.rb4
-rw-r--r--ext/tk/lib/tkextlib/blt/htext.rb3
-rw-r--r--ext/tk/lib/tkextlib/blt/stripchart.rb4
-rw-r--r--ext/tk/lib/tkextlib/blt/table.rb15
-rw-r--r--ext/tk/lib/tkextlib/blt/tabnotebook.rb2
-rw-r--r--ext/tk/lib/tkextlib/blt/tabset.rb8
-rw-r--r--ext/tk/lib/tkextlib/blt/ted.rb5
-rw-r--r--ext/tk/lib/tkextlib/blt/tile.rb4
-rw-r--r--ext/tk/lib/tkextlib/blt/tree.rb4
-rw-r--r--ext/tk/lib/tkextlib/blt/treeview.rb25
-rw-r--r--ext/tk/lib/tkextlib/blt/unix_dnd.rb8
-rw-r--r--ext/tk/lib/tkextlib/blt/watch.rb2
-rw-r--r--ext/tk/lib/tkextlib/bwidget.rb2
-rw-r--r--ext/tk/lib/tkextlib/bwidget/arrowbutton.rb2
-rw-r--r--ext/tk/lib/tkextlib/bwidget/button.rb2
-rw-r--r--ext/tk/lib/tkextlib/bwidget/buttonbox.rb2
-rw-r--r--ext/tk/lib/tkextlib/bwidget/combobox.rb13
-rw-r--r--ext/tk/lib/tkextlib/bwidget/dialog.rb16
-rw-r--r--ext/tk/lib/tkextlib/bwidget/entry.rb2
-rw-r--r--ext/tk/lib/tkextlib/bwidget/label.rb2
-rw-r--r--ext/tk/lib/tkextlib/bwidget/labelentry.rb2
-rw-r--r--ext/tk/lib/tkextlib/bwidget/labelframe.rb2
-rw-r--r--ext/tk/lib/tkextlib/bwidget/listbox.rb7
-rw-r--r--ext/tk/lib/tkextlib/bwidget/mainframe.rb6
-rw-r--r--ext/tk/lib/tkextlib/bwidget/messagedlg.rb2
-rw-r--r--ext/tk/lib/tkextlib/bwidget/notebook.rb2
-rw-r--r--ext/tk/lib/tkextlib/bwidget/pagesmanager.rb2
-rw-r--r--ext/tk/lib/tkextlib/bwidget/panedwindow.rb7
-rw-r--r--ext/tk/lib/tkextlib/bwidget/panelframe.rb14
-rw-r--r--ext/tk/lib/tkextlib/bwidget/passwddlg.rb2
-rw-r--r--ext/tk/lib/tkextlib/bwidget/progressbar.rb2
-rw-r--r--ext/tk/lib/tkextlib/bwidget/progressdlg.rb2
-rw-r--r--ext/tk/lib/tkextlib/bwidget/scrollableframe.rb2
-rw-r--r--ext/tk/lib/tkextlib/bwidget/scrolledwindow.rb12
-rw-r--r--ext/tk/lib/tkextlib/bwidget/scrollview.rb2
-rw-r--r--ext/tk/lib/tkextlib/bwidget/selectcolor.rb2
-rw-r--r--ext/tk/lib/tkextlib/bwidget/selectfont.rb7
-rw-r--r--ext/tk/lib/tkextlib/bwidget/separator.rb2
-rw-r--r--ext/tk/lib/tkextlib/bwidget/spinbox.rb2
-rw-r--r--ext/tk/lib/tkextlib/bwidget/statusbar.rb18
-rw-r--r--ext/tk/lib/tkextlib/bwidget/titleframe.rb2
-rw-r--r--ext/tk/lib/tkextlib/bwidget/tree.rb55
-rw-r--r--ext/tk/lib/tkextlib/itcl/incr_tcl.rb4
-rw-r--r--ext/tk/lib/tkextlib/itk/incr_tk.rb6
-rw-r--r--ext/tk/lib/tkextlib/iwidgets/buttonbox.rb5
-rw-r--r--ext/tk/lib/tkextlib/iwidgets/calendar.rb2
-rw-r--r--ext/tk/lib/tkextlib/iwidgets/canvasprintbox.rb2
-rw-r--r--ext/tk/lib/tkextlib/iwidgets/canvasprintdialog.rb2
-rw-r--r--ext/tk/lib/tkextlib/iwidgets/checkbox.rb5
-rw-r--r--ext/tk/lib/tkextlib/iwidgets/combobox.rb2
-rw-r--r--ext/tk/lib/tkextlib/iwidgets/dateentry.rb2
-rw-r--r--ext/tk/lib/tkextlib/iwidgets/datefield.rb2
-rw-r--r--ext/tk/lib/tkextlib/iwidgets/dialog.rb2
-rw-r--r--ext/tk/lib/tkextlib/iwidgets/dialogshell.rb5
-rw-r--r--ext/tk/lib/tkextlib/iwidgets/disjointlistbox.rb2
-rw-r--r--ext/tk/lib/tkextlib/iwidgets/entryfield.rb2
-rw-r--r--ext/tk/lib/tkextlib/iwidgets/extbutton.rb2
-rw-r--r--ext/tk/lib/tkextlib/iwidgets/extfileselectionbox.rb2
-rw-r--r--ext/tk/lib/tkextlib/iwidgets/extfileselectiondialog.rb2
-rw-r--r--ext/tk/lib/tkextlib/iwidgets/feedback.rb2
-rw-r--r--ext/tk/lib/tkextlib/iwidgets/fileselectionbox.rb2
-rw-r--r--ext/tk/lib/tkextlib/iwidgets/fileselectiondialog.rb2
-rw-r--r--ext/tk/lib/tkextlib/iwidgets/finddialog.rb2
-rw-r--r--ext/tk/lib/tkextlib/iwidgets/hierarchy.rb2
-rw-r--r--ext/tk/lib/tkextlib/iwidgets/hyperhelp.rb2
-rw-r--r--ext/tk/lib/tkextlib/iwidgets/labeledframe.rb2
-rw-r--r--ext/tk/lib/tkextlib/iwidgets/labeledwidget.rb2
-rw-r--r--ext/tk/lib/tkextlib/iwidgets/mainwindow.rb2
-rw-r--r--ext/tk/lib/tkextlib/iwidgets/menubar.rb5
-rw-r--r--ext/tk/lib/tkextlib/iwidgets/messagebox.rb5
-rw-r--r--ext/tk/lib/tkextlib/iwidgets/messagedialog.rb2
-rw-r--r--ext/tk/lib/tkextlib/iwidgets/notebook.rb5
-rw-r--r--ext/tk/lib/tkextlib/iwidgets/optionmenu.rb2
-rw-r--r--ext/tk/lib/tkextlib/iwidgets/panedwindow.rb5
-rw-r--r--ext/tk/lib/tkextlib/iwidgets/promptdialog.rb2
-rw-r--r--ext/tk/lib/tkextlib/iwidgets/pushbutton.rb2
-rw-r--r--ext/tk/lib/tkextlib/iwidgets/radiobox.rb5
-rw-r--r--ext/tk/lib/tkextlib/iwidgets/scopedobject.rb2
-rw-r--r--ext/tk/lib/tkextlib/iwidgets/scrolledcanvas.rb2
-rw-r--r--ext/tk/lib/tkextlib/iwidgets/scrolledframe.rb2
-rw-r--r--ext/tk/lib/tkextlib/iwidgets/scrolledhtml.rb2
-rw-r--r--ext/tk/lib/tkextlib/iwidgets/scrolledlistbox.rb2
-rw-r--r--ext/tk/lib/tkextlib/iwidgets/scrolledtext.rb6
-rw-r--r--ext/tk/lib/tkextlib/iwidgets/scrolledwidget.rb2
-rw-r--r--ext/tk/lib/tkextlib/iwidgets/selectionbox.rb2
-rw-r--r--ext/tk/lib/tkextlib/iwidgets/selectiondialog.rb2
-rw-r--r--ext/tk/lib/tkextlib/iwidgets/shell.rb2
-rw-r--r--ext/tk/lib/tkextlib/iwidgets/spindate.rb2
-rw-r--r--ext/tk/lib/tkextlib/iwidgets/spinint.rb2
-rw-r--r--ext/tk/lib/tkextlib/iwidgets/spinner.rb2
-rw-r--r--ext/tk/lib/tkextlib/iwidgets/spintime.rb2
-rw-r--r--ext/tk/lib/tkextlib/iwidgets/tabnotebook.rb5
-rw-r--r--ext/tk/lib/tkextlib/iwidgets/tabset.rb5
-rw-r--r--ext/tk/lib/tkextlib/iwidgets/timeentry.rb2
-rw-r--r--ext/tk/lib/tkextlib/iwidgets/timefield.rb2
-rw-r--r--ext/tk/lib/tkextlib/iwidgets/toolbar.rb2
-rw-r--r--ext/tk/lib/tkextlib/iwidgets/watch.rb2
-rw-r--r--ext/tk/lib/tkextlib/tcllib.rb29
-rw-r--r--ext/tk/lib/tkextlib/tcllib/README14
-rw-r--r--ext/tk/lib/tkextlib/tcllib/calendar.rb55
-rw-r--r--ext/tk/lib/tkextlib/tcllib/canvas_sqmap.rb36
-rw-r--r--ext/tk/lib/tkextlib/tcllib/canvas_zoom.rb21
-rw-r--r--ext/tk/lib/tkextlib/tcllib/chatwidget.rb151
-rw-r--r--ext/tk/lib/tkextlib/tcllib/crosshair.rb117
-rw-r--r--ext/tk/lib/tkextlib/tcllib/ctext.rb2
-rw-r--r--ext/tk/lib/tkextlib/tcllib/dateentry.rb62
-rw-r--r--ext/tk/lib/tkextlib/tcllib/diagrams.rb224
-rw-r--r--ext/tk/lib/tkextlib/tcllib/getstring.rb2
-rw-r--r--ext/tk/lib/tkextlib/tcllib/ico.rb32
-rw-r--r--ext/tk/lib/tkextlib/tcllib/ip_entry.rb11
-rw-r--r--ext/tk/lib/tkextlib/tcllib/khim.rb68
-rw-r--r--ext/tk/lib/tkextlib/tcllib/menuentry.rb47
-rw-r--r--ext/tk/lib/tkextlib/tcllib/ntext.rb146
-rw-r--r--ext/tk/lib/tkextlib/tcllib/panelframe.rb8
-rw-r--r--ext/tk/lib/tkextlib/tcllib/plotchart.rb620
-rw-r--r--ext/tk/lib/tkextlib/tcllib/scrolledwindow.rb57
-rw-r--r--ext/tk/lib/tkextlib/tcllib/statusbar.rb79
-rw-r--r--ext/tk/lib/tkextlib/tcllib/swaplist.rb2
-rw-r--r--ext/tk/lib/tkextlib/tcllib/tablelist.rb7
-rw-r--r--ext/tk/lib/tkextlib/tcllib/tablelist_core.rb308
-rw-r--r--ext/tk/lib/tkextlib/tcllib/tablelist_tile.rb20
-rw-r--r--ext/tk/lib/tkextlib/tcllib/toolbar.rb175
-rw-r--r--ext/tk/lib/tkextlib/tcllib/tooltip.rb11
-rw-r--r--ext/tk/lib/tkextlib/tcllib/widget.rb34
-rw-r--r--ext/tk/lib/tkextlib/tile.rb36
-rw-r--r--ext/tk/lib/tkextlib/tile/dialog.rb6
-rw-r--r--ext/tk/lib/tkextlib/tile/sizegrip.rb11
-rw-r--r--ext/tk/lib/tkextlib/tile/style.rb20
-rw-r--r--ext/tk/lib/tkextlib/tile/tbutton.rb9
-rw-r--r--ext/tk/lib/tkextlib/tile/tcheckbutton.rb12
-rw-r--r--ext/tk/lib/tkextlib/tile/tcombobox.rb9
-rw-r--r--ext/tk/lib/tkextlib/tile/tentry.rb9
-rw-r--r--ext/tk/lib/tkextlib/tile/tframe.rb9
-rw-r--r--ext/tk/lib/tkextlib/tile/tlabel.rb9
-rw-r--r--ext/tk/lib/tkextlib/tile/tlabelframe.rb12
-rw-r--r--ext/tk/lib/tkextlib/tile/tmenubutton.rb12
-rw-r--r--ext/tk/lib/tkextlib/tile/tnotebook.rb18
-rw-r--r--ext/tk/lib/tkextlib/tile/tpaned.rb26
-rw-r--r--ext/tk/lib/tkextlib/tile/tprogressbar.rb9
-rw-r--r--ext/tk/lib/tkextlib/tile/tradiobutton.rb12
-rw-r--r--ext/tk/lib/tkextlib/tile/treeview.rb79
-rw-r--r--ext/tk/lib/tkextlib/tile/tscale.rb13
-rw-r--r--ext/tk/lib/tkextlib/tile/tscrollbar.rb21
-rw-r--r--ext/tk/lib/tkextlib/tile/tseparator.rb9
-rw-r--r--ext/tk/lib/tkextlib/tile/tspinbox.rb107
-rw-r--r--ext/tk/lib/tkextlib/tile/tsquare.rb2
-rw-r--r--ext/tk/lib/tkextlib/tkHTML/htmlwidget.rb4
-rw-r--r--ext/tk/lib/tkextlib/tkimg/README2
-rw-r--r--ext/tk/lib/tkextlib/tktable/tktable.rb15
-rw-r--r--ext/tk/lib/tkextlib/treectrl/tktreectrl.rb87
-rw-r--r--ext/tk/lib/tkextlib/version.rb2
-rw-r--r--ext/tk/lib/tkextlib/vu/bargraph.rb2
-rw-r--r--ext/tk/lib/tkextlib/vu/dial.rb6
-rw-r--r--ext/tk/lib/tkextlib/vu/pie.rb8
-rw-r--r--ext/tk/old-README.tcltklib.eucj8
-rw-r--r--ext/tk/old-extconf.rb440
-rw-r--r--ext/tk/sample/demos-en/ChangeLog.prev2
-rw-r--r--ext/tk/sample/demos-en/README28
-rw-r--r--ext/tk/sample/demos-en/README.1st8
-rw-r--r--ext/tk/sample/demos-en/README.tkencoding4
-rw-r--r--ext/tk/sample/demos-en/browse122
-rw-r--r--ext/tk/sample/demos-en/browse222
-rw-r--r--ext/tk/sample/demos-en/doc.org/license.terms2
-rw-r--r--ext/tk/sample/demos-en/doc.org/license.terms.tk802
-rw-r--r--ext/tk/sample/demos-en/ixset28
-rw-r--r--ext/tk/sample/demos-en/ixset254
-rw-r--r--ext/tk/sample/demos-en/rmt68
-rw-r--r--ext/tk/sample/demos-en/rolodex6
-rw-r--r--ext/tk/sample/demos-en/square12
-rw-r--r--ext/tk/sample/demos-en/tcolor18
-rw-r--r--ext/tk/sample/demos-en/timer2
-rw-r--r--ext/tk/sample/demos-en/widget141
-rw-r--r--ext/tk/sample/demos-jp/README14
-rw-r--r--ext/tk/sample/demos-jp/browse122
-rw-r--r--ext/tk/sample/demos-jp/browse222
-rw-r--r--ext/tk/sample/demos-jp/doc.org/license.terms2
-rw-r--r--ext/tk/sample/demos-jp/doc.org/license.terms.tk802
-rw-r--r--ext/tk/sample/demos-jp/ixset30
-rw-r--r--ext/tk/sample/demos-jp/ixset256
-rw-r--r--ext/tk/sample/demos-jp/rmt68
-rw-r--r--ext/tk/sample/demos-jp/rolodex6
-rw-r--r--ext/tk/sample/demos-jp/rolodex-j4
-rw-r--r--ext/tk/sample/demos-jp/square12
-rw-r--r--ext/tk/sample/demos-jp/tcolor18
-rw-r--r--ext/tk/sample/demos-jp/timer2
-rw-r--r--ext/tk/sample/demos-jp/widget214
-rw-r--r--ext/tk/sample/editable_listbox.rb131
-rw-r--r--ext/tk/sample/irbtkw.rbw10
-rw-r--r--ext/tk/sample/menubar3.rb72
-rw-r--r--ext/tk/sample/msgs_rb/README4
-rw-r--r--ext/tk/sample/msgs_rb/es.msg2
-rw-r--r--ext/tk/sample/msgs_rb/ru.msg4
-rw-r--r--ext/tk/sample/msgs_rb2/README2
-rw-r--r--ext/tk/sample/msgs_tk/README2
-rw-r--r--ext/tk/sample/msgs_tk/el.msg2
-rw-r--r--ext/tk/sample/msgs_tk/es.msg2
-rw-r--r--ext/tk/sample/msgs_tk/license.terms2
-rw-r--r--ext/tk/sample/msgs_tk/ru.msg4
-rw-r--r--ext/tk/sample/multi-ip_sample.rb3
-rw-r--r--ext/tk/sample/safe-tk.rb23
-rw-r--r--ext/tk/sample/scrollframe.rb20
-rw-r--r--ext/tk/sample/tkalignbox.rb44
-rw-r--r--ext/tk/sample/tkballoonhelp.rb108
-rw-r--r--ext/tk/sample/tkcombobox.rb121
-rw-r--r--ext/tk/sample/tkextlib/blt/readme.txt2
-rw-r--r--ext/tk/sample/tkextlib/tile/readme.txt4
-rw-r--r--ext/tk/sample/tkextlib/tile/repeater.tcl10
-rw-r--r--ext/tk/sample/tkextlib/tile/themes/blue/blue.tcl8
-rw-r--r--ext/tk/sample/tkextlib/tile/themes/keramik/keramik.tcl28
-rw-r--r--ext/tk/sample/tkextlib/tile/themes/keramik/pkgIndex.tcl2
-rw-r--r--ext/tk/sample/tkextlib/tile/themes/kroc/kroc.tcl38
-rw-r--r--ext/tk/sample/tkextlib/tile/themes/kroc/pkgIndex.tcl2
-rw-r--r--ext/tk/sample/tkextlib/tile/themes/plastik/pkgIndex.tcl2
-rw-r--r--ext/tk/sample/tkextlib/tile/toolbutton.tcl34
-rw-r--r--ext/tk/sample/tkextlib/tkHTML/README6
-rw-r--r--ext/tk/sample/tkextlib/tkHTML/page2/index.html48
-rw-r--r--ext/tk/sample/tkextlib/tkHTML/page3/index.html38
-rw-r--r--ext/tk/sample/tkextlib/tkimg/license_terms_of_Img_extension4
-rw-r--r--ext/tk/sample/tkextlib/tkimg/readme.txt2
-rw-r--r--ext/tk/sample/tkextlib/treectrl/readme.txt2
-rw-r--r--ext/tk/sample/tktextframe.rb251
-rw-r--r--ext/tk/stubs.c89
-rw-r--r--ext/tk/tcltklib.c1949
-rw-r--r--ext/tk/tkutil/.cvsignore3
-rw-r--r--ext/tk/tkutil/extconf.rb4
-rw-r--r--ext/tk/tkutil/tkutil.c192
-rw-r--r--ext/win32ole/.cvsignore4
-rw-r--r--ext/win32ole/depend2
-rw-r--r--ext/win32ole/extconf.rb23
-rw-r--r--ext/win32ole/lib/win32ole.rb22
-rw-r--r--ext/win32ole/win32ole.c1384
-rw-r--r--ext/zlib/.cvsignore4
-rw-r--r--ext/zlib/doc/zlib.rd917
-rw-r--r--ext/zlib/extconf.rb3
-rw-r--r--ext/zlib/zlib.c972
-rw-r--r--file.c1448
-rw-r--r--gc.c1904
-rw-r--r--gc.h51
-rw-r--r--gem_prelude.rb355
-rw-r--r--golf_prelude.rb8
-rw-r--r--hash.c881
-rw-r--r--id.c3
-rw-r--r--id.h163
-rw-r--r--include/ruby.h2
-rw-r--r--include/ruby/backward/classext.h18
-rw-r--r--include/ruby/defines.h78
-rw-r--r--include/ruby/encoding.h79
-rw-r--r--include/ruby/intern.h224
-rw-r--r--include/ruby/io.h125
-rw-r--r--include/ruby/missing.h93
-rw-r--r--include/ruby/oniguruma.h33
-rw-r--r--include/ruby/re.h17
-rw-r--r--include/ruby/regex.h8
-rw-r--r--include/ruby/ruby.h463
-rw-r--r--include/ruby/st.h59
-rw-r--r--include/ruby/subst.h20
-rw-r--r--include/ruby/util.h29
-rw-r--r--include/ruby/version.h17
-rw-r--r--include/ruby/vm.h46
-rw-r--r--include/ruby/win32.h301
-rw-r--r--inits.c1
-rw-r--r--insns.def345
-rw-r--r--internal.h232
-rw-r--r--io.c4446
-rw-r--r--iseq.c316
-rw-r--r--iseq.h78
-rw-r--r--lib/.document107
-rw-r--r--lib/README27
-rw-r--r--lib/abbrev.rb27
-rw-r--r--lib/base64.rb2
-rw-r--r--lib/benchmark.rb194
-rw-r--r--lib/cgi.rb39
-rw-r--r--lib/cgi/.document1
-rw-r--r--lib/cgi/cookie.rb73
-rw-r--r--lib/cgi/core.rb314
-rw-r--r--lib/cgi/html.rb4
-rw-r--r--lib/cgi/session.rb26
-rw-r--r--lib/cgi/util.rb33
-rw-r--r--lib/cmath.rb349
-rw-r--r--lib/complex.rb4
-rw-r--r--lib/csv.rb402
-rw-r--r--lib/date.rb1834
-rw-r--r--lib/date/format.rb1313
-rw-r--r--lib/debug.rb1474
-rw-r--r--lib/delegate.rb353
-rw-r--r--lib/drb/acl.rb152
-rw-r--r--lib/drb/drb.rb350
-rw-r--r--lib/drb/eq.rb2
-rw-r--r--lib/drb/extserv.rb2
-rw-r--r--lib/drb/extservm.rb16
-rw-r--r--lib/drb/invokemethod.rb8
-rw-r--r--lib/drb/ssl.rb160
-rw-r--r--lib/drb/timeridconv.rb80
-rw-r--r--lib/drb/unix.rb44
-rw-r--r--lib/e2mmap.rb66
-rw-r--r--lib/erb.rb380
-rw-r--r--lib/fileutils.rb198
-rw-r--r--lib/find.rb42
-rw-r--r--lib/forwardable.rb65
-rw-r--r--lib/getoptlong.rb219
-rw-r--r--lib/gserver.rb82
-rw-r--r--lib/ipaddr.rb122
-rw-r--r--lib/irb.rb306
-rw-r--r--lib/irb/cmd/chws.rb2
-rw-r--r--lib/irb/cmd/fork.rb4
-rw-r--r--lib/irb/cmd/help.rb17
-rw-r--r--lib/irb/cmd/load.rb2
-rw-r--r--lib/irb/cmd/nop.rb2
-rw-r--r--lib/irb/cmd/pushws.rb2
-rw-r--r--lib/irb/cmd/subirb.rb2
-rw-r--r--lib/irb/completion.rb76
-rw-r--r--lib/irb/context.rb54
-rw-r--r--lib/irb/ext/change-ws.rb2
-rw-r--r--lib/irb/ext/history.rb2
-rw-r--r--lib/irb/ext/loader.rb2
-rw-r--r--lib/irb/ext/math-mode.rb2
-rw-r--r--lib/irb/ext/multi-irb.rb22
-rw-r--r--lib/irb/ext/save-history.rb46
-rw-r--r--lib/irb/ext/tracer.rb2
-rw-r--r--lib/irb/ext/use-loader.rb2
-rw-r--r--lib/irb/ext/workspaces.rb2
-rw-r--r--lib/irb/extend-command.rb24
-rw-r--r--lib/irb/help.rb2
-rw-r--r--lib/irb/init.rb27
-rw-r--r--lib/irb/input-method.rb2
-rw-r--r--lib/irb/inspector.rb109
-rw-r--r--lib/irb/lc/error.rb2
-rw-r--r--lib/irb/lc/help-message16
-rw-r--r--lib/irb/lc/ja/error.rb2
-rw-r--r--lib/irb/lc/ja/help-message16
-rw-r--r--lib/irb/locale.rb93
-rw-r--r--lib/irb/notifier.rb10
-rw-r--r--lib/irb/output-method.rb4
-rw-r--r--lib/irb/ruby-lex.rb59
-rw-r--r--lib/irb/ruby-token.rb7
-rw-r--r--lib/irb/slex.rb4
-rw-r--r--lib/irb/version.rb6
-rw-r--r--lib/irb/workspace.rb4
-rw-r--r--lib/irb/ws-for-case-2.rb4
-rw-r--r--lib/irb/xmp.rb2
-rw-r--r--lib/logger.rb243
-rw-r--r--lib/mathn.rb228
-rw-r--r--lib/matrix.rb1397
-rw-r--r--lib/matrix/eigenvalue_decomposition.rb886
-rw-r--r--lib/matrix/lup_decomposition.rb218
-rw-r--r--lib/minitest/README.txt269
-rw-r--r--lib/minitest/autorun.rb19
-rw-r--r--lib/minitest/benchmark.rb372
-rw-r--r--lib/minitest/mock.rb97
-rw-r--r--lib/minitest/pride.rb99
-rw-r--r--lib/minitest/spec.rb542
-rw-r--r--lib/minitest/unit.rb946
-rw-r--r--lib/mkmf.rb530
-rw-r--r--lib/monitor.rb211
-rw-r--r--lib/mutex_m.rb42
-rw-r--r--lib/net/ftp.rb478
-rw-r--r--lib/net/http.rb1383
-rw-r--r--lib/net/https.rb126
-rw-r--r--lib/net/imap.rb402
-rw-r--r--lib/net/pop.rb29
-rw-r--r--lib/net/protocol.rb12
-rw-r--r--lib/net/smtp.rb81
-rw-r--r--lib/net/telnet.rb19
-rw-r--r--lib/observer.rb73
-rw-r--r--lib/open-uri.rb140
-rw-r--r--lib/open3.rb26
-rw-r--r--lib/optparse.rb151
-rw-r--r--lib/ostruct.rb131
-rw-r--r--lib/pathname.rb1108
-rw-r--r--lib/pp.rb41
-rw-r--r--lib/prettyprint.rb20
-rw-r--r--lib/prime.rb222
-rw-r--r--lib/pstore.rb33
-rw-r--r--lib/racc/parser.rb44
-rw-r--r--[-rwxr-xr-x]lib/rake.rb2472
-rw-r--r--lib/rake/alt_system.rb109
-rw-r--r--lib/rake/application.rb595
-rw-r--r--lib/rake/classic_namespace.rb3
-rw-r--r--lib/rake/clean.rb1
-rw-r--r--lib/rake/cloneable.rb25
-rw-r--r--lib/rake/contrib/compositepublisher.rb21
-rw-r--r--lib/rake/contrib/ftptools.rb150
-rw-r--r--lib/rake/contrib/publisher.rb73
-rw-r--r--lib/rake/contrib/rubyforgepublisher.rb16
-rw-r--r--lib/rake/contrib/sshpublisher.rb50
-rw-r--r--lib/rake/contrib/sys.rb191
-rw-r--r--lib/rake/default_loader.rb10
-rw-r--r--lib/rake/dsl_definition.rb176
-rw-r--r--lib/rake/early_time.rb18
-rw-r--r--lib/rake/ext/core.rb27
-rw-r--r--lib/rake/ext/module.rb39
-rw-r--r--lib/rake/ext/string.rb167
-rw-r--r--lib/rake/ext/time.rb14
-rw-r--r--lib/rake/file_creation_task.rb24
-rw-r--r--lib/rake/file_list.rb403
-rw-r--r--lib/rake/file_task.rb47
-rw-r--r--lib/rake/file_utils.rb114
-rw-r--r--lib/rake/file_utils_ext.rb145
-rw-r--r--lib/rake/gempackagetask.rb98
-rw-r--r--lib/rake/invocation_chain.rb51
-rw-r--r--lib/rake/invocation_exception_mixin.rb16
-rw-r--r--lib/rake/lib/project.rake21
-rw-r--r--lib/rake/loaders/makefile.rb8
-rw-r--r--lib/rake/multi_task.rb16
-rw-r--r--lib/rake/name_space.rb25
-rw-r--r--lib/rake/packagetask.rb7
-rw-r--r--lib/rake/pathmap.rb1
-rw-r--r--lib/rake/pseudo_status.rb24
-rw-r--r--lib/rake/rake_module.rb29
-rw-r--r--lib/rake/rake_test_loader.rb21
-rw-r--r--lib/rake/rdoctask.rb387
-rwxr-xr-xlib/rake/ruby182_test_unit_fix.rb25
-rw-r--r--lib/rake/rule_recursion_overflow_error.rb20
-rw-r--r--lib/rake/runtest.rb8
-rw-r--r--lib/rake/task.rb327
-rw-r--r--lib/rake/task_argument_error.rb7
-rw-r--r--lib/rake/task_arguments.rb78
-rw-r--r--lib/rake/task_manager.rb307
-rw-r--r--lib/rake/tasklib.rb1
-rw-r--r--lib/rake/testtask.rb78
-rw-r--r--lib/rake/version.rb8
-rw-r--r--lib/rake/win32.rb43
-rw-r--r--lib/rational.rb8
-rw-r--r--lib/rbconfig/.document1
-rw-r--r--lib/rbconfig/datadir.rb22
-rw-r--r--lib/rbconfig/obsolete.rb5
-rw-r--r--lib/rdoc.rb374
-rw-r--r--lib/rdoc/README232
-rw-r--r--lib/rdoc/alias.rb113
-rw-r--r--lib/rdoc/anon_class.rb12
-rw-r--r--lib/rdoc/any_method.rb207
-rw-r--r--lib/rdoc/attr.rb136
-rw-r--r--lib/rdoc/class_module.rb582
-rw-r--r--lib/rdoc/code_object.rb307
-rw-r--r--lib/rdoc/code_objects.rb1074
-rw-r--r--lib/rdoc/constant.rb86
-rw-r--r--lib/rdoc/context.rb1191
-rw-r--r--lib/rdoc/cross_reference.rb173
-rw-r--r--lib/rdoc/diagram.rb340
-rw-r--r--lib/rdoc/dot.rb249
-rw-r--r--lib/rdoc/encoding.rb92
-rw-r--r--lib/rdoc/erbio.rb37
-rw-r--r--lib/rdoc/generator.rb1112
-rw-r--r--lib/rdoc/generator/chm.rb113
-rw-r--r--lib/rdoc/generator/chm/chm.rb100
-rw-r--r--lib/rdoc/generator/darkfish.rb390
-rw-r--r--lib/rdoc/generator/html.rb445
-rw-r--r--lib/rdoc/generator/html/common.rb24
-rw-r--r--lib/rdoc/generator/html/frameless.rb92
-rw-r--r--lib/rdoc/generator/html/hefss.rb150
-rw-r--r--lib/rdoc/generator/html/html.rb769
-rw-r--r--lib/rdoc/generator/html/kilmer.rb151
-rw-r--r--lib/rdoc/generator/html/kilmerfactory.rb427
-rw-r--r--lib/rdoc/generator/html/one_page_html.rb122
-rw-r--r--lib/rdoc/generator/markup.rb208
-rw-r--r--lib/rdoc/generator/ri.rb228
-rw-r--r--lib/rdoc/generator/template/darkfish/.document (renamed from install-sh)0
-rw-r--r--lib/rdoc/generator/template/darkfish/classpage.rhtml321
-rw-r--r--lib/rdoc/generator/template/darkfish/filepage.rhtml124
-rw-r--r--lib/rdoc/generator/template/darkfish/images/brick.pngbin0 -> 452 bytes-rw-r--r--lib/rdoc/generator/template/darkfish/images/brick_link.pngbin0 -> 764 bytes-rw-r--r--lib/rdoc/generator/template/darkfish/images/bug.pngbin0 -> 774 bytes-rw-r--r--lib/rdoc/generator/template/darkfish/images/bullet_black.pngbin0 -> 211 bytes-rw-r--r--lib/rdoc/generator/template/darkfish/images/bullet_toggle_minus.pngbin0 -> 207 bytes-rw-r--r--lib/rdoc/generator/template/darkfish/images/bullet_toggle_plus.pngbin0 -> 209 bytes-rw-r--r--lib/rdoc/generator/template/darkfish/images/date.pngbin0 -> 626 bytes-rw-r--r--lib/rdoc/generator/template/darkfish/images/find.pngbin0 -> 659 bytes-rw-r--r--lib/rdoc/generator/template/darkfish/images/loadingAnimation.gifbin0 -> 5886 bytes-rw-r--r--lib/rdoc/generator/template/darkfish/images/macFFBgHack.pngbin0 -> 207 bytes-rw-r--r--lib/rdoc/generator/template/darkfish/images/package.pngbin0 -> 853 bytes-rw-r--r--lib/rdoc/generator/template/darkfish/images/page_green.pngbin0 -> 621 bytes-rw-r--r--lib/rdoc/generator/template/darkfish/images/page_white_text.pngbin0 -> 342 bytes-rw-r--r--lib/rdoc/generator/template/darkfish/images/page_white_width.pngbin0 -> 309 bytes-rw-r--r--lib/rdoc/generator/template/darkfish/images/plugin.pngbin0 -> 591 bytes-rw-r--r--lib/rdoc/generator/template/darkfish/images/ruby.pngbin0 -> 592 bytes-rw-r--r--lib/rdoc/generator/template/darkfish/images/tag_green.pngbin0 -> 613 bytes-rw-r--r--lib/rdoc/generator/template/darkfish/images/wrench.pngbin0 -> 610 bytes-rw-r--r--lib/rdoc/generator/template/darkfish/images/wrench_orange.pngbin0 -> 584 bytes-rw-r--r--lib/rdoc/generator/template/darkfish/images/zoom.pngbin0 -> 692 bytes-rw-r--r--lib/rdoc/generator/template/darkfish/index.rhtml64
-rw-r--r--lib/rdoc/generator/template/darkfish/js/darkfish.js116
-rw-r--r--lib/rdoc/generator/template/darkfish/js/jquery.js32
-rw-r--r--lib/rdoc/generator/template/darkfish/js/quicksearch.js114
-rw-r--r--lib/rdoc/generator/template/darkfish/js/thickbox-compressed.js10
-rw-r--r--lib/rdoc/generator/template/darkfish/rdoc.css763
-rw-r--r--lib/rdoc/generator/texinfo.rb81
-rw-r--r--lib/rdoc/generator/texinfo/class.texinfo.erb44
-rw-r--r--lib/rdoc/generator/texinfo/file.texinfo.erb6
-rw-r--r--lib/rdoc/generator/texinfo/method.texinfo.erb6
-rw-r--r--lib/rdoc/generator/texinfo/texinfo.erb28
-rw-r--r--lib/rdoc/generator/xml.rb117
-rw-r--r--lib/rdoc/generator/xml/rdf.rb113
-rw-r--r--lib/rdoc/generator/xml/xml.rb123
-rw-r--r--lib/rdoc/ghost_method.rb8
-rw-r--r--lib/rdoc/include.rb100
-rw-r--r--lib/rdoc/known_classes.rb8
-rw-r--r--lib/rdoc/markup.rb826
-rw-r--r--lib/rdoc/markup/attribute_manager.rb164
-rw-r--r--lib/rdoc/markup/blank_line.rb27
-rw-r--r--lib/rdoc/markup/document.rb127
-rw-r--r--lib/rdoc/markup/formatter.rb159
-rw-r--r--lib/rdoc/markup/formatter_test_case.rb699
-rw-r--r--lib/rdoc/markup/fragments.rb337
-rw-r--r--lib/rdoc/markup/heading.rb20
-rw-r--r--lib/rdoc/markup/indented_paragraph.rb33
-rw-r--r--lib/rdoc/markup/inline.rb59
-rw-r--r--lib/rdoc/markup/lines.rb152
-rw-r--r--lib/rdoc/markup/list.rb81
-rw-r--r--lib/rdoc/markup/list_item.rb86
-rw-r--r--lib/rdoc/markup/paragraph.rb14
-rw-r--r--lib/rdoc/markup/parser.rb497
-rw-r--r--lib/rdoc/markup/pre_process.rb227
-rw-r--r--lib/rdoc/markup/preprocess.rb75
-rw-r--r--lib/rdoc/markup/raw.rb69
-rw-r--r--lib/rdoc/markup/rule.rb20
-rw-r--r--lib/rdoc/markup/text_formatter_test_case.rb116
-rw-r--r--lib/rdoc/markup/to_ansi.rb84
-rw-r--r--lib/rdoc/markup/to_bs.rb80
-rw-r--r--lib/rdoc/markup/to_flow.rb185
-rw-r--r--lib/rdoc/markup/to_html.rb453
-rw-r--r--lib/rdoc/markup/to_html_crossref.rb202
-rw-r--r--lib/rdoc/markup/to_latex.rb328
-rw-r--r--lib/rdoc/markup/to_rdoc.rb301
-rw-r--r--lib/rdoc/markup/to_test.rb54
-rw-r--r--lib/rdoc/markup/to_texinfo.rb69
-rw-r--r--lib/rdoc/markup/to_tt_only.rb114
-rw-r--r--lib/rdoc/markup/verbatim.rb45
-rw-r--r--lib/rdoc/meta_method.rb8
-rw-r--r--lib/rdoc/method_attr.rb355
-rw-r--r--lib/rdoc/normal_class.rb71
-rw-r--r--lib/rdoc/normal_module.rb66
-rw-r--r--lib/rdoc/options.rb770
-rw-r--r--lib/rdoc/parser.rb130
-rw-r--r--lib/rdoc/parser/c.rb938
-rw-r--r--lib/rdoc/parser/f95.rb1835
-rw-r--r--lib/rdoc/parser/perl.rb165
-rw-r--r--lib/rdoc/parser/ruby.rb2661
-rw-r--r--lib/rdoc/parser/ruby_tools.rb162
-rw-r--r--lib/rdoc/parser/simple.rb33
-rw-r--r--lib/rdoc/rdoc.rb629
-rw-r--r--lib/rdoc/require.rb53
-rw-r--r--lib/rdoc/ri.rb10
-rw-r--r--lib/rdoc/ri/cache.rb187
-rw-r--r--lib/rdoc/ri/descriptions.rb156
-rw-r--r--lib/rdoc/ri/display.rb392
-rw-r--r--lib/rdoc/ri/driver.rb1273
-rw-r--r--lib/rdoc/ri/formatter.rb615
-rw-r--r--lib/rdoc/ri/paths.rb132
-rw-r--r--lib/rdoc/ri/reader.rb106
-rw-r--r--lib/rdoc/ri/store.rb358
-rw-r--r--lib/rdoc/ri/util.rb79
-rw-r--r--lib/rdoc/ri/writer.rb68
-rw-r--r--lib/rdoc/ruby_lex.rb1297
-rw-r--r--lib/rdoc/ruby_token.rb416
-rw-r--r--lib/rdoc/rubygems_hook.rb220
-rw-r--r--lib/rdoc/single_class.rb23
-rw-r--r--lib/rdoc/stats.rb437
-rw-r--r--lib/rdoc/stats/normal.rb48
-rw-r--r--lib/rdoc/stats/quiet.rb59
-rw-r--r--lib/rdoc/stats/verbose.rb45
-rw-r--r--lib/rdoc/task.rb326
-rw-r--r--lib/rdoc/template.rb64
-rw-r--r--lib/rdoc/text.rb302
-rw-r--r--lib/rdoc/token_stream.rb (renamed from lib/rdoc/tokenstream.rb)39
-rw-r--r--lib/rdoc/top_level.rb474
-rw-r--r--lib/resolv-replace.rb19
-rw-r--r--lib/resolv.rb207
-rw-r--r--lib/rexml/attribute.rb2
-rw-r--r--lib/rexml/cdata.rb2
-rw-r--r--lib/rexml/child.rb4
-rw-r--r--lib/rexml/comment.rb12
-rw-r--r--lib/rexml/doctype.rb11
-rw-r--r--lib/rexml/document.rb25
-rw-r--r--lib/rexml/element.rb39
-rw-r--r--lib/rexml/encoding.rb107
-rw-r--r--lib/rexml/encodings/CP-1252.rb103
-rw-r--r--lib/rexml/encodings/EUC-JP.rb35
-rw-r--r--lib/rexml/encodings/ICONV.rb22
-rw-r--r--lib/rexml/encodings/ISO-8859-1.rb7
-rw-r--r--lib/rexml/encodings/ISO-8859-15.rb72
-rw-r--r--lib/rexml/encodings/SHIFT-JIS.rb37
-rw-r--r--lib/rexml/encodings/SHIFT_JIS.rb1
-rw-r--r--lib/rexml/encodings/UNILE.rb34
-rw-r--r--lib/rexml/encodings/US-ASCII.rb30
-rw-r--r--lib/rexml/encodings/UTF-16.rb35
-rw-r--r--lib/rexml/encodings/UTF-8.rb18
-rw-r--r--lib/rexml/entity.rb2
-rw-r--r--lib/rexml/formatters/default.rb6
-rw-r--r--lib/rexml/formatters/pretty.rb14
-rw-r--r--lib/rexml/formatters/transitive.rb1
-rw-r--r--lib/rexml/functions.rb8
-rw-r--r--lib/rexml/light/node.rb13
-rw-r--r--lib/rexml/node.rb12
-rw-r--r--lib/rexml/output.rb2
-rw-r--r--lib/rexml/parent.rb1
-rw-r--r--lib/rexml/parseexception.rb2
-rw-r--r--lib/rexml/parsers/baseparser.rb46
-rw-r--r--lib/rexml/parsers/lightparser.rb8
-rw-r--r--lib/rexml/parsers/sax2parser.rb10
-rw-r--r--lib/rexml/parsers/ultralightparser.rb8
-rw-r--r--lib/rexml/parsers/xpathparser.rb7
-rw-r--r--lib/rexml/quickpath.rb36
-rw-r--r--lib/rexml/rexml.rb2
-rw-r--r--lib/rexml/source.rb45
-rw-r--r--lib/rexml/text.rb20
-rw-r--r--lib/rexml/validation/validation.rb2
-rw-r--r--lib/rexml/xmltokens.rb4
-rw-r--r--lib/rexml/xpath.rb13
-rw-r--r--lib/rexml/xpath_parser.rb15
-rw-r--r--lib/rinda/.document3
-rw-r--r--lib/rinda/ring.rb64
-rw-r--r--lib/rss.rb80
-rw-r--r--lib/rss/atom.rb10
-rw-r--r--lib/rss/maker/0.9.rb4
-rw-r--r--lib/rss/maker/1.0.rb2
-rw-r--r--lib/rss/maker/base.rb59
-rw-r--r--lib/rss/maker/dublincore.rb3
-rw-r--r--lib/rss/maker/image.rb4
-rw-r--r--lib/rss/parser.rb2
-rw-r--r--lib/rss/rss.rb39
-rw-r--r--lib/rubygems.rb1063
-rw-r--r--lib/rubygems/builder.rb131
-rw-r--r--lib/rubygems/command.rb760
-rw-r--r--lib/rubygems/command_manager.rb276
-rw-r--r--lib/rubygems/commands/build_command.rb34
-rw-r--r--lib/rubygems/commands/cert_command.rb10
-rw-r--r--lib/rubygems/commands/check_command.rb28
-rw-r--r--lib/rubygems/commands/cleanup_command.rb55
-rw-r--r--lib/rubygems/commands/contents_command.rb65
-rw-r--r--lib/rubygems/commands/dependency_command.rb94
-rw-r--r--lib/rubygems/commands/environment_command.rb14
-rw-r--r--lib/rubygems/commands/fetch_command.rb32
-rw-r--r--lib/rubygems/commands/generate_index_command.rb103
-rw-r--r--lib/rubygems/commands/help_command.rb5
-rw-r--r--lib/rubygems/commands/install_command.rb119
-rw-r--r--lib/rubygems/commands/lock_command.rb10
-rw-r--r--lib/rubygems/commands/mirror_command.rb111
-rw-r--r--lib/rubygems/commands/outdated_command.rb13
-rw-r--r--lib/rubygems/commands/owner_command.rb76
-rw-r--r--lib/rubygems/commands/pristine_command.rb59
-rw-r--r--lib/rubygems/commands/push_command.rb60
-rw-r--r--lib/rubygems/commands/query_command.rb124
-rw-r--r--lib/rubygems/commands/rdoc_command.rb145
-rw-r--r--lib/rubygems/commands/search_command.rb56
-rw-r--r--lib/rubygems/commands/server_command.rb46
-rw-r--r--lib/rubygems/commands/setup_command.rb358
-rw-r--r--lib/rubygems/commands/sources_command.rb60
-rw-r--r--lib/rubygems/commands/specification_command.rb90
-rw-r--r--lib/rubygems/commands/stale_command.rb3
-rw-r--r--lib/rubygems/commands/uninstall_command.rb143
-rw-r--r--lib/rubygems/commands/unpack_command.rb131
-rw-r--r--lib/rubygems/commands/update_command.rb191
-rw-r--r--lib/rubygems/commands/which_command.rb29
-rw-r--r--lib/rubygems/config_file.rb187
-rw-r--r--[-rwxr-xr-x]lib/rubygems/custom_require.rb49
-rw-r--r--lib/rubygems/defaults.rb68
-rw-r--r--lib/rubygems/dependency.rb257
-rw-r--r--lib/rubygems/dependency_installer.rb190
-rw-r--r--lib/rubygems/dependency_list.rb155
-rw-r--r--lib/rubygems/deprecate.rb70
-rwxr-xr-xlib/rubygems/digest/md5.rb13
-rwxr-xr-xlib/rubygems/digest/sha1.rb11
-rwxr-xr-xlib/rubygems/digest/sha2.rb11
-rw-r--r--lib/rubygems/doc_manager.rb97
-rw-r--r--lib/rubygems/errors.rb35
-rw-r--r--lib/rubygems/exceptions.rb13
-rw-r--r--lib/rubygems/ext/builder.rb6
-rw-r--r--lib/rubygems/ext/configure_builder.rb1
-rw-r--r--lib/rubygems/ext/ext_conf_builder.rb3
-rw-r--r--lib/rubygems/ext/rake_builder.rb18
-rw-r--r--lib/rubygems/format.rb121
-rw-r--r--lib/rubygems/gem_openssl.rb23
-rw-r--r--lib/rubygems/gem_path_searcher.rb120
-rw-r--r--lib/rubygems/gem_runner.rb106
-rw-r--r--lib/rubygems/gemcutter_utilities.rb82
-rw-r--r--lib/rubygems/indexer.rb546
-rw-r--r--lib/rubygems/indexer/abstract_index_builder.rb88
-rw-r--r--lib/rubygems/indexer/latest_index_builder.rb35
-rw-r--r--lib/rubygems/indexer/marshal_index_builder.rb17
-rw-r--r--lib/rubygems/indexer/master_index_builder.rb54
-rw-r--r--lib/rubygems/indexer/quick_index_builder.rb50
-rw-r--r--lib/rubygems/install_update_options.rb35
-rw-r--r--lib/rubygems/installer.rb455
-rw-r--r--lib/rubygems/installer_test_case.rb144
-rw-r--r--lib/rubygems/local_remote_options.rb32
-rw-r--r--lib/rubygems/mock_gem_ui.rb (renamed from test/rubygems/mockgemui.rb)32
-rw-r--r--lib/rubygems/old_format.rb243
-rw-r--r--lib/rubygems/package.rb58
-rw-r--r--lib/rubygems/package/f_sync_dir.rb9
-rw-r--r--lib/rubygems/package/tar_header.rb35
-rw-r--r--lib/rubygems/package/tar_input.rb68
-rw-r--r--lib/rubygems/package/tar_output.rb13
-rw-r--r--lib/rubygems/package/tar_reader.rb28
-rw-r--r--lib/rubygems/package/tar_reader/entry.rb50
-rw-r--r--lib/rubygems/package/tar_test_case.rb (renamed from test/rubygems/gem_package_tar_test_case.rb)23
-rw-r--r--lib/rubygems/package/tar_writer.rb75
-rw-r--r--lib/rubygems/package_task.rb126
-rw-r--r--lib/rubygems/path_support.rb70
-rw-r--r--lib/rubygems/platform.rb38
-rw-r--r--lib/rubygems/psych_additions.rb18
-rw-r--r--lib/rubygems/psych_tree.rb54
-rw-r--r--lib/rubygems/remote_fetcher.rb285
-rw-r--r--lib/rubygems/require_paths_builder.rb27
-rw-r--r--lib/rubygems/requirement.rb223
-rw-r--r--lib/rubygems/rubygems_version.rb6
-rw-r--r--lib/rubygems/security.rb252
-rw-r--r--lib/rubygems/server.rb461
-rw-r--r--lib/rubygems/source_index.rb483
-rw-r--r--lib/rubygems/source_info_cache.rb393
-rw-r--r--lib/rubygems/source_info_cache_entry.rb56
-rw-r--r--lib/rubygems/spec_fetcher.rb230
-rw-r--r--lib/rubygems/specification.rb2787
-rw-r--r--lib/rubygems/ssl_certs/ca-bundle.pem3366
-rw-r--r--lib/rubygems/syck_hack.rb145
-rw-r--r--lib/rubygems/test_case.rb870
-rw-r--r--lib/rubygems/test_utilities.rb79
-rw-r--r--lib/rubygems/text.rb65
-rw-r--r--lib/rubygems/timer.rb25
-rw-r--r--lib/rubygems/uninstaller.rb189
-rw-r--r--lib/rubygems/user_interaction.rb688
-rw-r--r--lib/rubygems/validator.rb164
-rw-r--r--lib/rubygems/version.rb342
-rw-r--r--lib/rubygems/version_option.rb17
-rw-r--r--lib/scanf.rb752
-rw-r--r--lib/securerandom.rb36
-rwxr-xr-x[-rw-r--r--]lib/set.rb392
-rw-r--r--lib/shell.rb68
-rw-r--r--lib/shell/builtin-command.rb40
-rw-r--r--lib/shell/command-processor.rb452
-rw-r--r--lib/shell/error.rb6
-rw-r--r--lib/shell/filter.rb48
-rw-r--r--lib/shell/process-controller.rb332
-rw-r--r--lib/shell/system-command.rb120
-rw-r--r--lib/shell/version.rb6
-rw-r--r--lib/shellwords.rb35
-rw-r--r--lib/singleton.rb309
-rw-r--r--lib/sync.rb196
-rw-r--r--lib/tempfile.rb385
-rw-r--r--lib/test/unit.rb650
-rw-r--r--lib/test/unit/assertions.rb201
-rw-r--r--lib/test/unit/parallel.rb157
-rw-r--r--lib/test/unit/testcase.rb13
-rw-r--r--lib/thread.rb62
-rw-r--r--lib/thwait.rb72
-rw-r--r--lib/time.rb60
-rw-r--r--lib/timeout.rb100
-rw-r--r--lib/tmpdir.rb116
-rw-r--r--lib/tracer.rb216
-rw-r--r--lib/un.rb122
-rw-r--r--lib/uri.rb90
-rw-r--r--lib/uri/.document7
-rw-r--r--lib/uri/common.rb466
-rw-r--r--lib/uri/ftp.rb67
-rw-r--r--lib/uri/generic.rb613
-rw-r--r--lib/uri/http.rb14
-rw-r--r--lib/uri/https.rb4
-rw-r--r--lib/uri/ldap.rb72
-rw-r--r--lib/uri/ldaps.rb8
-rw-r--r--lib/uri/mailto.rb32
-rw-r--r--lib/weakref.rb52
-rw-r--r--lib/webrick.rb202
-rw-r--r--lib/webrick/accesslog.rb94
-rw-r--r--lib/webrick/cgi.rb2
-rw-r--r--lib/webrick/compat.rb20
-rw-r--r--lib/webrick/config.rb23
-rw-r--r--lib/webrick/htmlutils.rb5
-rw-r--r--lib/webrick/httpauth.rb56
-rw-r--r--lib/webrick/httpauth/authenticator.rb39
-rw-r--r--lib/webrick/httpauth/basicauth.rb43
-rw-r--r--lib/webrick/httpauth/digestauth.rb60
-rw-r--r--lib/webrick/httpauth/htdigest.rb39
-rw-r--r--lib/webrick/httpauth/htgroup.rb32
-rw-r--r--lib/webrick/httpauth/htpasswd.rb40
-rw-r--r--lib/webrick/httpauth/userdb.rb29
-rw-r--r--lib/webrick/httpproxy.rb17
-rw-r--r--lib/webrick/httprequest.rb97
-rw-r--r--lib/webrick/httpresponse.rb81
-rw-r--r--lib/webrick/https.rb5
-rw-r--r--lib/webrick/httpserver.rb47
-rw-r--r--lib/webrick/httpservlet/abstract.rb90
-rw-r--r--lib/webrick/httpservlet/cgi_runner.rb3
-rw-r--r--lib/webrick/httpservlet/cgihandler.rb8
-rw-r--r--lib/webrick/httpservlet/erbhandler.rb39
-rw-r--r--lib/webrick/httpservlet/filehandler.rb45
-rw-r--r--lib/webrick/httpstatus.rb90
-rw-r--r--lib/webrick/httputils.rb6
-rw-r--r--lib/webrick/httpversion.rb2
-rw-r--r--lib/webrick/log.rb54
-rw-r--r--lib/webrick/server.rb8
-rw-r--r--lib/webrick/ssl.rb5
-rw-r--r--lib/webrick/utils.rb68
-rw-r--r--lib/webrick/version.rb2
-rw-r--r--lib/xmlrpc/.document1
-rw-r--r--lib/xmlrpc/README.rdoc46
-rw-r--r--lib/xmlrpc/client.rb12
-rw-r--r--lib/xmlrpc/create.rb7
-rw-r--r--lib/xmlrpc/httpserver.rb2
-rw-r--r--lib/xmlrpc/parser.rb9
-rw-r--r--lib/xmlrpc/server.rb16
-rw-r--r--lib/xmlrpc/utils.rb4
-rw-r--r--lib/yaml.rb470
-rw-r--r--lib/yaml/dbm.rb127
-rw-r--r--lib/yaml/store.rb47
-rw-r--r--lib/yaml/syck.rb19
-rw-r--r--load.c250
-rw-r--r--main.c3
-rw-r--r--man/erb.139
-rw-r--r--man/irb.122
-rw-r--r--man/rake.126
-rw-r--r--man/ri.130
-rw-r--r--man/ruby.156
-rw-r--r--marshal.c738
-rw-r--r--math.c224
-rw-r--r--method.h105
-rw-r--r--misc/README4
-rw-r--r--misc/inf-ruby.el46
-rw-r--r--misc/rb_optparse.bash20
-rwxr-xr-xmisc/rb_optparse.zsh38
-rw-r--r--misc/rdoc-mode.el130
-rw-r--r--misc/ruby-electric.el17
-rw-r--r--misc/ruby-mode.el220
-rw-r--r--misc/ruby-style.el12
-rw-r--r--missing/alloca.c4
-rw-r--r--missing/cbrt.c1
-rw-r--r--missing/close.c72
-rw-r--r--missing/crypt.c79
-rw-r--r--missing/erf.c1
-rw-r--r--missing/ffs.c49
-rw-r--r--missing/finite.c2
-rw-r--r--missing/flock.c4
-rw-r--r--missing/hypot.c1
-rw-r--r--missing/isinf.c2
-rw-r--r--missing/isnan.c2
-rw-r--r--missing/langinfo.c7
-rw-r--r--missing/lgamma_r.c12
-rw-r--r--missing/memcmp.c1
-rw-r--r--missing/memmove.c1
-rw-r--r--missing/os2.c4
-rw-r--r--missing/setproctitle.c160
-rw-r--r--missing/signbit.c19
-rw-r--r--missing/strchr.c4
-rw-r--r--missing/strerror.c2
-rw-r--r--missing/strlcat.c1
-rw-r--r--missing/strlcpy.c1
-rw-r--r--missing/strstr.c4
-rw-r--r--missing/strtol.c1
-rw-r--r--missing/x86_64-chkstk.s10
-rw-r--r--node.c921
-rw-r--r--node.h81
-rw-r--r--numeric.c1119
-rw-r--r--object.c840
-rw-r--r--pack.c1365
-rw-r--r--parse.y1888
-rw-r--r--prelude.rb30
-rw-r--r--proc.c887
-rw-r--r--process.c1184
-rw-r--r--random.c1122
-rw-r--r--range.c257
-rw-r--r--rational.c1155
-rw-r--r--re.c515
-rw-r--r--regcomp.c376
-rw-r--r--regenc.c54
-rw-r--r--regenc.h16
-rw-r--r--regerror.c76
-rw-r--r--regexec.c132
-rw-r--r--regint.h50
-rw-r--r--regparse.c397
-rw-r--r--regparse.h13
-rw-r--r--ruby.c400
-rw-r--r--safe.c22
-rw-r--r--sample/README6
-rw-r--r--sample/biorhythm.rb22
-rw-r--r--sample/coverage.rb2
-rw-r--r--sample/drb/darray.rb2
-rw-r--r--sample/drb/darrayc.rb4
-rw-r--r--sample/drb/dbiff.rb4
-rw-r--r--sample/drb/dchatc.rb4
-rw-r--r--sample/drb/dchats.rb2
-rw-r--r--sample/drb/dhasen.rb4
-rw-r--r--sample/drb/dhasenc.rb2
-rw-r--r--sample/drb/dlogc.rb2
-rw-r--r--sample/drb/dlogd.rb2
-rw-r--r--sample/drb/dqin.rb2
-rw-r--r--sample/drb/dqout.rb2
-rw-r--r--sample/drb/dqueue.rb2
-rw-r--r--sample/drb/drbc.rb2
-rw-r--r--sample/drb/drbch.rb2
-rw-r--r--sample/drb/drbm.rb6
-rw-r--r--sample/drb/drbmc.rb2
-rw-r--r--sample/drb/drbs-acl.rb6
-rw-r--r--sample/drb/drbs.rb4
-rw-r--r--sample/drb/extserv_test.rb12
-rw-r--r--sample/drb/holderc.rb2
-rw-r--r--sample/drb/holders.rb6
-rw-r--r--sample/drb/http0.rb6
-rw-r--r--sample/drb/http0serv.rb12
-rw-r--r--sample/drb/name.rb16
-rw-r--r--sample/drb/namec.rb2
-rw-r--r--sample/drb/old_tuplespace.rb6
-rw-r--r--sample/drb/ring_echo.rb2
-rw-r--r--sample/drb/simpletuple.rb6
-rw-r--r--sample/drb/speedc.rb2
-rw-r--r--sample/drb/speeds.rb4
-rw-r--r--sample/dualstack-httpd.rb2
-rw-r--r--sample/from.rb2
-rw-r--r--sample/fullpath.rb2
-rw-r--r--sample/list.rb1
-rw-r--r--sample/list2.rb2
-rw-r--r--sample/list3.rb2
-rw-r--r--sample/mkproto.rb6
-rw-r--r--sample/occur2.rb11
-rw-r--r--sample/openssl/certstore.rb2
-rw-r--r--sample/openssl/smime_write.rb2
-rwxr-xr-x[-rw-r--r--]sample/optparse/opttest.rb2
-rw-r--r--sample/pty/expect_sample.rb (renamed from ext/pty/expect_sample.rb)0
-rw-r--r--sample/pty/script.rb (renamed from ext/pty/script.rb)0
-rw-r--r--sample/pty/shl.rb (renamed from ext/pty/shl.rb)0
-rwxr-xr-xsample/rss/re_read.rb4
-rw-r--r--sample/svr.rb4
-rw-r--r--sample/test.rb49
-rw-r--r--sample/timeout.rb42
-rw-r--r--sample/trojan.rb2
-rw-r--r--sample/tsvr.rb2
-rw-r--r--sample/webrick/httpproxy.rb7
-rw-r--r--signal.c250
-rw-r--r--sparc.c30
-rw-r--r--spec/README13
-rw-r--r--spec/default.mspec5
-rw-r--r--sprintf.c101
-rw-r--r--st.c558
-rw-r--r--strftime.c331
-rw-r--r--string.c2191
-rw-r--r--struct.c246
-rw-r--r--symbian/README.SYMBIAN123
-rw-r--r--symbian/configure.bat16
-rw-r--r--symbian/missing-pips.c41
-rw-r--r--symbian/pre-build9
-rw-r--r--symbian/setup54
-rw-r--r--template/Doxyfile.tmpl257
-rw-r--r--template/encdb.h.tmpl6
-rwxr-xr-x[-rw-r--r--]template/fake.rb.in36
-rw-r--r--template/id.h.tmpl18
-rw-r--r--template/insns_info.inc.tmpl20
-rw-r--r--template/known_errors.inc.tmpl4
-rw-r--r--template/ruby.pc.in37
-rw-r--r--test/-ext-/array/test_resize.rb29
-rw-r--r--test/-ext-/funcall/test_passing_block.rb22
-rw-r--r--test/-ext-/load/test_dot_dot.rb10
-rw-r--r--test/-ext-/old_thread_select/test_old_thread_select.rb99
-rw-r--r--test/-ext-/st/test_numhash.rb21
-rw-r--r--test/-ext-/string/test_cstr.rb17
-rw-r--r--test/-ext-/string/test_ellipsize.rb46
-rw-r--r--test/-ext-/string/test_enc_associate.rb12
-rw-r--r--test/-ext-/string/test_modify_expand.rb29
-rw-r--r--test/-ext-/string/test_set_len.rb25
-rw-r--r--test/-ext-/test_add_suffix.rb47
-rw-r--r--test/-ext-/test_bug-3571.rb21
-rw-r--r--test/-ext-/test_bug-3662.rb10
-rw-r--r--test/-ext-/wait_for_single_fd/test_wait_for_single_fd.rb42
-rw-r--r--test/-ext-/win32/test_dln.rb13
-rw-r--r--test/benchmark/test_benchmark.rb163
-rw-r--r--test/bigdecimal/test_bigdecimal.rb682
-rw-r--r--test/bigdecimal/test_bigdecimal_util.rb43
-rw-r--r--test/bigdecimal/test_bigmath.rb63
-rw-r--r--test/bigdecimal/testbase.rb27
-rw-r--r--test/cgi/test_cgi_cookie.rb17
-rw-r--r--test/cgi/test_cgi_core.rb4
-rw-r--r--test/cgi/test_cgi_header.rb12
-rw-r--r--test/cgi/test_cgi_multipart.rb41
-rw-r--r--test/cgi/test_cgi_session.rb12
-rw-r--r--test/cgi/test_cgi_util.rb38
-rw-r--r--test/coverage/test_coverage.rb64
-rw-r--r--test/csv/base.rb8
-rwxr-xr-x[-rw-r--r--]test/csv/test_csv_parsing.rb37
-rwxr-xr-x[-rw-r--r--]test/csv/test_csv_writing.rb6
-rwxr-xr-x[-rw-r--r--]test/csv/test_data_converters.rb24
-rwxr-xr-x[-rw-r--r--]test/csv/test_encodings.rb111
-rwxr-xr-x[-rw-r--r--]test/csv/test_features.rb8
-rwxr-xr-x[-rw-r--r--]test/csv/test_headers.rb7
-rwxr-xr-x[-rw-r--r--]test/csv/test_interface.rb46
-rwxr-xr-x[-rw-r--r--]test/csv/test_row.rb7
-rwxr-xr-x[-rw-r--r--]test/csv/test_serialization.rb17
-rwxr-xr-x[-rw-r--r--]test/csv/test_table.rb28
-rw-r--r--test/date/test_date.rb4
-rw-r--r--test/date/test_date_attr.rb3
-rw-r--r--test/date/test_date_base.rb55
-rw-r--r--test/date/test_date_new.rb11
-rw-r--r--test/date/test_date_parse.rb190
-rw-r--r--test/date/test_date_strftime.rb23
-rw-r--r--test/date/test_date_strptime.rb19
-rw-r--r--test/date/test_switch_hitter.rb577
-rw-r--r--test/dbm/test_dbm.rb45
-rwxr-xr-x[-rw-r--r--]test/digest/test_digest.rb40
-rw-r--r--test/digest/test_digest_extend.rb157
-rw-r--r--test/digest/test_digest_hmac.rb3
-rw-r--r--test/dl/test_base.rb53
-rw-r--r--test/dl/test_callback.rb69
-rw-r--r--test/dl/test_cfunc.rb80
-rw-r--r--test/dl/test_cparser.rb13
-rw-r--r--test/dl/test_cptr.rb222
-rw-r--r--test/dl/test_dl2.rb116
-rw-r--r--test/dl/test_func.rb63
-rw-r--r--test/dl/test_handle.rb184
-rw-r--r--test/dl/test_import.rb14
-rw-r--r--test/dl/test_win32.rb2
-rw-r--r--test/drb/drbtest.rb17
-rw-r--r--test/drb/test_drb.rb20
-rw-r--r--test/drb/test_drbssl.rb2
-rw-r--r--test/drb/test_drbunix.rb2
-rw-r--r--test/drb/ut_eq.rb30
-rw-r--r--test/erb/test_erb_m17n.rb36
-rw-r--r--test/etc/test_etc.rb10
-rw-r--r--test/fiddle/helper.rb111
-rw-r--r--test/fiddle/test_closure.rb84
-rw-r--r--test/fiddle/test_fiddle.rb32
-rw-r--r--test/fiddle/test_function.rb69
-rw-r--r--test/fileutils/clobber.rb91
-rw-r--r--test/fileutils/fileasserts.rb35
-rw-r--r--test/fileutils/test_dryrun.rb6
-rw-r--r--test/fileutils/test_fileutils.rb229
-rw-r--r--test/fileutils/test_nowrite.rb77
-rw-r--r--test/gdbm/test_gdbm.rb53
-rw-r--r--test/iconv/test_basic.rb5
-rw-r--r--test/iconv/test_option.rb2
-rw-r--r--test/iconv/test_partial.rb2
-rw-r--r--test/iconv/utils.rb3
-rw-r--r--test/io/console/test_io_console.rb243
-rw-r--r--test/io/nonblock/test_flush.rb14
-rw-r--r--test/io/wait/test_io_wait.rb72
-rw-r--r--test/irb/test_completion.rb22
-rw-r--r--test/irb/test_option.rb12
-rw-r--r--test/json/setup_variant.rb11
-rwxr-xr-xtest/json/test_json.rb290
-rwxr-xr-xtest/json/test_json_addition.rb38
-rw-r--r--test/json/test_json_encoding.rb65
-rwxr-xr-xtest/json/test_json_fixtures.rb16
-rwxr-xr-x[-rw-r--r--]test/json/test_json_generate.rb156
-rw-r--r--test/json/test_json_rails.rb114
-rw-r--r--test/json/test_json_string_matching.rb40
-rwxr-xr-xtest/json/test_json_unicode.rb28
-rw-r--r--test/logger/test_logger.rb173
-rw-r--r--test/matrix/test_matrix.rb377
-rw-r--r--test/matrix/test_vector.rb85
-rw-r--r--test/minitest/test_mini_mock.rb83
-rw-r--r--test/minitest/test_mini_spec.rb169
-rw-r--r--test/minitest/test_minitest_benchmark.rb119
-rw-r--r--test/minitest/test_minitest_mock.rb154
-rw-r--r--test/minitest/test_minitest_spec.rb397
-rw-r--r--test/minitest/test_minitest_unit.rb (renamed from test/minitest/test_mini_test.rb)991
-rw-r--r--test/misc/test_ruby_mode.rb142
-rw-r--r--test/mkmf/base.rb129
-rw-r--r--test/mkmf/test_convertible.rb32
-rw-r--r--test/mkmf/test_find_executable.rb50
-rw-r--r--test/mkmf/test_flags.rb35
-rw-r--r--test/mkmf/test_signedness.rb27
-rw-r--r--test/mkmf/test_sizeof.rb45
-rw-r--r--test/monitor/test_monitor.rb31
-rw-r--r--test/net/http/test_buffered_io.rb17
-rw-r--r--test/net/http/test_http.rb329
-rw-r--r--test/net/http/test_httpresponse.rb40
-rw-r--r--test/net/http/test_https.rb38
-rw-r--r--test/net/http/utils.rb24
-rw-r--r--test/net/imap/cacert.pem86
-rw-r--r--test/net/imap/server.crt69
-rw-r--r--test/net/imap/test_imap.rb338
-rw-r--r--test/net/imap/test_imap_response_parser.rb119
-rw-r--r--test/net/smtp/test_response.rb99
-rw-r--r--test/net/smtp/test_smtp.rb16
-rw-r--r--test/net/smtp/test_ssl_socket.rb91
-rw-r--r--test/nkf/test_kconv.rb7
-rw-r--r--test/nkf/test_nkf.rb2
-rw-r--r--test/objspace/test_objspace.rb55
-rw-r--r--test/open-uri/test_open-uri.rb730
-rw-r--r--test/open-uri/test_ssl.rb314
-rw-r--r--test/openssl/test_asn1.rb404
-rw-r--r--test/openssl/test_bn.rb23
-rw-r--r--test/openssl/test_buffering.rb88
-rw-r--r--test/openssl/test_cipher.rb20
-rw-r--r--test/openssl/test_config.rb288
-rw-r--r--test/openssl/test_digest.rb42
-rw-r--r--test/openssl/test_ec.rb113
-rw-r--r--test/openssl/test_engine.rb15
-rw-r--r--test/openssl/test_hmac.rb28
-rw-r--r--test/openssl/test_ns_spki.rb11
-rw-r--r--test/openssl/test_ocsp.rb47
-rw-r--r--test/openssl/test_pair.rb17
-rw-r--r--test/openssl/test_pkcs12.rb209
-rw-r--r--test/openssl/test_pkcs7.rb22
-rw-r--r--test/openssl/test_pkey_dh.rb72
-rw-r--r--test/openssl/test_pkey_dsa.rb224
-rw-r--r--test/openssl/test_pkey_ec.rb182
-rw-r--r--test/openssl/test_pkey_rsa.rb207
-rw-r--r--test/openssl/test_ssl.rb398
-rw-r--r--test/openssl/test_ssl_session.rb327
-rw-r--r--test/openssl/test_x509cert.rb79
-rw-r--r--test/openssl/test_x509crl.rb23
-rw-r--r--test/openssl/test_x509ext.rb7
-rw-r--r--test/openssl/test_x509name.rb114
-rw-r--r--test/openssl/test_x509req.rb42
-rw-r--r--test/openssl/test_x509store.rb47
-rw-r--r--test/openssl/utils.rb182
-rw-r--r--test/optparse/test_bash_completion.rb42
-rw-r--r--test/optparse/test_getopts.rb5
-rw-r--r--test/optparse/test_noarg.rb2
-rw-r--r--test/optparse/test_optarg.rb4
-rw-r--r--test/optparse/test_optparse.rb17
-rw-r--r--test/optparse/test_placearg.rb5
-rw-r--r--test/optparse/test_reqarg.rb4
-rw-r--r--test/optparse/test_summary.rb6
-rw-r--r--test/optparse/test_zsh_completion.rb22
-rw-r--r--test/ostruct/test_ostruct.rb25
-rw-r--r--test/pathname/test_pathname.rb725
-rw-r--r--test/profile_test_all.rb52
-rw-r--r--test/psych/helper.rb63
-rw-r--r--test/psych/json/test_stream.rb109
-rw-r--r--test/psych/nodes/test_enumerable.rb43
-rw-r--r--test/psych/test_alias_and_anchor.rb26
-rw-r--r--test/psych/test_array.rb47
-rw-r--r--test/psych/test_boolean.rb36
-rw-r--r--test/psych/test_class.rb36
-rw-r--r--test/psych/test_coder.rb184
-rw-r--r--test/psych/test_date_time.rb17
-rw-r--r--test/psych/test_deprecated.rb210
-rw-r--r--test/psych/test_document.rb46
-rw-r--r--test/psych/test_emitter.rb94
-rw-r--r--test/psych/test_encoding.rb268
-rw-r--r--test/psych/test_engine_manager.rb57
-rw-r--r--test/psych/test_exception.rb130
-rw-r--r--test/psych/test_hash.rb44
-rw-r--r--test/psych/test_json_tree.rb65
-rw-r--r--test/psych/test_merge_keys.rb81
-rw-r--r--test/psych/test_nil.rb18
-rw-r--r--test/psych/test_null.rb19
-rw-r--r--test/psych/test_numeric.rb25
-rw-r--r--test/psych/test_object.rb44
-rw-r--r--test/psych/test_object_references.rb67
-rw-r--r--test/psych/test_omap.rb68
-rw-r--r--test/psych/test_parser.rb332
-rw-r--r--test/psych/test_psych.rb168
-rw-r--r--test/psych/test_scalar.rb11
-rw-r--r--test/psych/test_scalar_scanner.rb91
-rw-r--r--test/psych/test_serialize_subclasses.rb38
-rw-r--r--test/psych/test_set.rb49
-rw-r--r--test/psych/test_stream.rb93
-rw-r--r--test/psych/test_string.rb88
-rw-r--r--test/psych/test_struct.rb51
-rw-r--r--test/psych/test_symbol.rb17
-rw-r--r--test/psych/test_tainted.rb130
-rw-r--r--test/psych/test_to_yaml_properties.rb63
-rw-r--r--test/psych/test_tree_builder.rb79
-rw-r--r--test/psych/test_yaml.rb1269
-rw-r--r--test/psych/visitors/test_depth_first.rb49
-rw-r--r--test/psych/visitors/test_emitter.rb144
-rw-r--r--test/psych/visitors/test_to_ruby.rb325
-rw-r--r--test/psych/visitors/test_yaml_tree.rb155
-rw-r--r--test/rake/file_creation.rb34
-rw-r--r--test/rake/helper.rb492
-rw-r--r--test/rake/test_rake.rb40
-rw-r--r--test/rake/test_rake_application.rb489
-rw-r--r--test/rake/test_rake_application_options.rb335
-rw-r--r--test/rake/test_rake_clean.rb14
-rw-r--r--test/rake/test_rake_definitions.rb80
-rw-r--r--test/rake/test_rake_directory_task.rb46
-rw-r--r--test/rake/test_rake_dsl.rb77
-rw-r--r--test/rake/test_rake_early_time.rb31
-rw-r--r--test/rake/test_rake_extension.rb59
-rw-r--r--test/rake/test_rake_file_creation_task.rb56
-rw-r--r--test/rake/test_rake_file_list.rb628
-rw-r--r--test/rake/test_rake_file_list_path_map.rb8
-rw-r--r--test/rake/test_rake_file_task.rb102
-rw-r--r--test/rake/test_rake_file_utils.rb305
-rw-r--r--test/rake/test_rake_ftp_file.rb59
-rw-r--r--test/rake/test_rake_functional.rb450
-rw-r--r--test/rake/test_rake_invocation_chain.rb52
-rw-r--r--test/rake/test_rake_makefile_loader.rb44
-rw-r--r--test/rake/test_rake_multi_task.rb51
-rw-r--r--test/rake/test_rake_name_space.rb43
-rw-r--r--test/rake/test_rake_package_task.rb79
-rw-r--r--test/rake/test_rake_path_map.rb157
-rw-r--r--test/rake/test_rake_path_map_explode.rb34
-rw-r--r--test/rake/test_rake_path_map_partial.rb18
-rw-r--r--test/rake/test_rake_pseudo_status.rb21
-rw-r--r--test/rake/test_rake_rake_test_loader.rb21
-rw-r--r--test/rake/test_rake_rdoc_task.rb83
-rw-r--r--test/rake/test_rake_require.rb40
-rw-r--r--test/rake/test_rake_rules.rb327
-rw-r--r--test/rake/test_rake_task.rb267
-rw-r--r--test/rake/test_rake_task_argument_parsing.rb103
-rw-r--r--test/rake/test_rake_task_arguments.rb88
-rw-r--r--test/rake/test_rake_task_lib.rb9
-rw-r--r--test/rake/test_rake_task_manager.rb157
-rw-r--r--test/rake/test_rake_task_manager_argument_resolution.rb36
-rw-r--r--test/rake/test_rake_task_with_arguments.rb173
-rw-r--r--test/rake/test_rake_test_task.rb120
-rw-r--r--test/rake/test_rake_top_level_functions.rb111
-rw-r--r--test/rake/test_rake_win32.rb72
-rw-r--r--test/rake/test_sys.rb20
-rw-r--r--test/rdoc/README1
-rw-r--r--test/rdoc/hidden.zip.txt1
-rw-r--r--test/rdoc/rdoc_markup_to_html_crossref_reference.rb31
-rw-r--r--test/rdoc/test.ja.large.rdoc3
-rw-r--r--test/rdoc/test.ja.rdoc10
-rw-r--r--test/rdoc/test.ja.txt8
-rw-r--r--test/rdoc/test.txt1
-rw-r--r--test/rdoc/test_attribute_manager.rb86
-rw-r--r--test/rdoc/test_rdoc_alias.rb13
-rw-r--r--test/rdoc/test_rdoc_any_method.rb263
-rw-r--r--test/rdoc/test_rdoc_attr.rb123
-rw-r--r--test/rdoc/test_rdoc_class_module.rb718
-rw-r--r--test/rdoc/test_rdoc_code_object.rb290
-rw-r--r--test/rdoc/test_rdoc_constant.rb15
-rw-r--r--test/rdoc/test_rdoc_context.rb695
-rw-r--r--test/rdoc/test_rdoc_context_section.rb54
-rw-r--r--test/rdoc/test_rdoc_cross_reference.rb154
-rw-r--r--test/rdoc/test_rdoc_encoding.rb191
-rw-r--r--test/rdoc/test_rdoc_generator_darkfish.rb125
-rw-r--r--test/rdoc/test_rdoc_generator_ri.rb87
-rw-r--r--test/rdoc/test_rdoc_include.rb96
-rw-r--r--test/rdoc/test_rdoc_info_formatting.rb179
-rw-r--r--test/rdoc/test_rdoc_info_sections.rb139
-rw-r--r--test/rdoc/test_rdoc_markup.rb634
-rw-r--r--test/rdoc/test_rdoc_markup_attribute_manager.rb46
-rw-r--r--test/rdoc/test_rdoc_markup_document.rb152
-rw-r--r--test/rdoc/test_rdoc_markup_formatter.rb57
-rw-r--r--test/rdoc/test_rdoc_markup_indented_paragraph.rb40
-rw-r--r--test/rdoc/test_rdoc_markup_paragraph.rb21
-rw-r--r--test/rdoc/test_rdoc_markup_parser.rb1486
-rw-r--r--test/rdoc/test_rdoc_markup_pre_process.rb410
-rw-r--r--test/rdoc/test_rdoc_markup_raw.rb27
-rw-r--r--test/rdoc/test_rdoc_markup_to_ansi.rb332
-rw-r--r--test/rdoc/test_rdoc_markup_to_bs.rb345
-rw-r--r--test/rdoc/test_rdoc_markup_to_html.rb364
-rw-r--r--test/rdoc/test_rdoc_markup_to_html_crossref.rb359
-rw-r--r--test/rdoc/test_rdoc_markup_to_rdoc.rb341
-rw-r--r--test/rdoc/test_rdoc_markup_to_tt_only.rb229
-rw-r--r--test/rdoc/test_rdoc_method_attr.rb122
-rw-r--r--test/rdoc/test_rdoc_normal_class.rb23
-rw-r--r--test/rdoc/test_rdoc_normal_module.rb37
-rw-r--r--test/rdoc/test_rdoc_options.rb392
-rw-r--r--test/rdoc/test_rdoc_parser.rb80
-rw-r--r--test/rdoc/test_rdoc_parser_c.rb1233
-rw-r--r--test/rdoc/test_rdoc_parser_perl.rb74
-rw-r--r--test/rdoc/test_rdoc_parser_ruby.rb2010
-rw-r--r--test/rdoc/test_rdoc_parser_simple.rb99
-rw-r--r--test/rdoc/test_rdoc_rdoc.rb209
-rw-r--r--test/rdoc/test_rdoc_require.rb25
-rw-r--r--test/rdoc/test_rdoc_ri_attribute_formatter.rb44
-rw-r--r--test/rdoc/test_rdoc_ri_default_display.rb301
-rw-r--r--test/rdoc/test_rdoc_ri_driver.rb1043
-rw-r--r--test/rdoc/test_rdoc_ri_formatter.rb320
-rw-r--r--test/rdoc/test_rdoc_ri_overstrike_formatter.rb71
-rw-r--r--test/rdoc/test_rdoc_ri_paths.rb43
-rw-r--r--test/rdoc/test_rdoc_ri_store.rb473
-rw-r--r--test/rdoc/test_rdoc_ruby_lex.rb23
-rw-r--r--test/rdoc/test_rdoc_rubygems_hook.rb201
-rw-r--r--test/rdoc/test_rdoc_single_class.rb12
-rw-r--r--test/rdoc/test_rdoc_stats.rb543
-rw-r--r--test/rdoc/test_rdoc_task.rb111
-rw-r--r--test/rdoc/test_rdoc_text.rb397
-rw-r--r--test/rdoc/test_rdoc_top_level.rb240
-rw-r--r--test/rdoc/xref_data.rb76
-rw-r--r--test/rdoc/xref_test_case.rb71
-rw-r--r--test/readline/test_readline.rb216
-rw-r--r--test/resolv/test_addr.rb16
-rw-r--r--test/resolv/test_dns.rb121
-rw-r--r--test/rexml/data/LostineRiver.kml.gzbin0 -> 50154 bytes-rw-r--r--test/rexml/data/ProductionSupport.xml29
-rw-r--r--test/rexml/data/axis.xml25
-rw-r--r--test/rexml/data/bad.xml5
-rw-r--r--test/rexml/data/basic.xml11
-rw-r--r--test/rexml/data/basicupdate.xml47
-rw-r--r--test/rexml/data/broken.rss20
-rw-r--r--test/rexml/data/contents.xml70
-rw-r--r--test/rexml/data/dash.xml12
-rw-r--r--test/rexml/data/defaultNamespace.xml6
-rw-r--r--test/rexml/data/doctype_test.xml34
-rw-r--r--test/rexml/data/documentation.xml542
-rw-r--r--test/rexml/data/euc.xml296
-rw-r--r--test/rexml/data/evaluate.xml28
-rw-r--r--test/rexml/data/fibo.xml29
-rw-r--r--test/rexml/data/foo.xml10
-rw-r--r--test/rexml/data/google.2.xml156
-rw-r--r--test/rexml/data/id.xml21
-rw-r--r--test/rexml/data/iso8859-1.xml4
-rw-r--r--test/rexml/data/jaxen24.xml2
-rw-r--r--test/rexml/data/jaxen3.xml15
-rw-r--r--test/rexml/data/lang.xml11
-rw-r--r--test/rexml/data/lang0.xml18
-rw-r--r--test/rexml/data/message.xml27
-rw-r--r--test/rexml/data/moreover.xml244
-rw-r--r--test/rexml/data/much_ado.xml6850
-rw-r--r--test/rexml/data/namespaces.xml18
-rw-r--r--test/rexml/data/nitf.xml67
-rw-r--r--test/rexml/data/numbers.xml18
-rw-r--r--test/rexml/data/ofbiz-issues-full-177.xml13971
-rw-r--r--test/rexml/data/pi.xml13
-rw-r--r--test/rexml/data/pi2.xml6
-rw-r--r--test/rexml/data/project.xml1
-rw-r--r--test/rexml/data/simple.xml2
-rw-r--r--test/rexml/data/stream_accents.xml4
-rw-r--r--test/rexml/data/t63-1.xmlbin0 -> 161690 bytes-rw-r--r--test/rexml/data/t63-2.svg2828
-rw-r--r--test/rexml/data/t75.xml31
-rw-r--r--test/rexml/data/test/tests.xml683
-rw-r--r--test/rexml/data/test/tests.xsl369
-rw-r--r--test/rexml/data/testNamespaces.xml22
-rw-r--r--test/rexml/data/testsrc.xml64
-rw-r--r--test/rexml/data/text.xml10
-rw-r--r--test/rexml/data/ticket_110_utf16.xmlbin0 -> 207464 bytes-rw-r--r--test/rexml/data/ticket_61.xml4
-rw-r--r--test/rexml/data/ticket_68.xml590
-rw-r--r--test/rexml/data/tutorial.xml678
-rw-r--r--test/rexml/data/underscore.xml6
-rw-r--r--test/rexml/data/web.xml42
-rw-r--r--test/rexml/data/web2.xml7
-rw-r--r--test/rexml/data/working.rss202
-rw-r--r--test/rexml/data/xmlfile-bug.xml15
-rw-r--r--test/rexml/data/xp.tst27
-rw-r--r--test/rexml/data/yahoo.xml80
-rw-r--r--test/rexml/listener.rb50
-rw-r--r--test/rexml/rexml_test_utils.rb5
-rw-r--r--test/rexml/test_attributes.rb198
-rw-r--r--test/rexml/test_attributes_mixin.rb32
-rw-r--r--test/rexml/test_changing_encoding.rb44
-rw-r--r--test/rexml/test_contrib.rb581
-rw-r--r--test/rexml/test_core.rb1462
-rw-r--r--test/rexml/test_doctype.rb107
-rw-r--r--test/rexml/test_document.rb43
-rw-r--r--test/rexml/test_elements.rb116
-rw-r--r--test/rexml/test_encoding.rb92
-rw-r--r--test/rexml/test_encoding_2.rb59
-rw-r--r--test/rexml/test_entity.rb149
-rw-r--r--test/rexml/test_functions.rb223
-rw-r--r--test/rexml/test_functions_number.rb32
-rw-r--r--test/rexml/test_jaxen.rb126
-rw-r--r--test/rexml/test_light.rb104
-rw-r--r--test/rexml/test_lightparser.rb12
-rw-r--r--test/rexml/test_listener.rb129
-rw-r--r--test/rexml/test_martin_fowler.rb37
-rw-r--r--test/rexml/test_namespace.rb38
-rw-r--r--test/rexml/test_notationdecl_mixin.rb58
-rw-r--r--test/rexml/test_notationdecl_parsetest.rb23
-rw-r--r--test/rexml/test_order.rb102
-rw-r--r--test/rexml/test_preceding_sibling.rb38
-rw-r--r--test/rexml/test_pullparser.rb100
-rw-r--r--test/rexml/test_rexml_issuezilla.rb14
-rw-r--r--test/rexml/test_sax.rb279
-rw-r--r--test/rexml/test_stream.rb104
-rw-r--r--test/rexml/test_ticket_80.rb56
-rw-r--r--test/rexml/test_validation_rng.rb790
-rw-r--r--test/rexml/test_xml_declaration_parent_child.rb33
-rw-r--r--test/rexml/test_xpath.rb1079
-rw-r--r--test/rexml/test_xpath_attribute_query.rb89
-rw-r--r--test/rexml/test_xpath_msw.rb38
-rw-r--r--test/rexml/test_xpath_pred.rb80
-rw-r--r--test/rexml/test_xpathtext.rb72
-rw-r--r--test/rinda/test_rinda.rb102
-rw-r--r--test/ripper/dummyparser.rb489
-rw-r--r--test/ripper/test_files.rb22
-rw-r--r--test/ripper/test_filter.rb83
-rw-r--r--test/ripper/test_parser_events.rb946
-rw-r--r--test/ripper/test_ripper.rb49
-rw-r--r--test/ripper/test_scanner_events.rb70
-rw-r--r--test/rss/test_1.0.rb5
-rw-r--r--test/rss/test_2.0.rb5
-rw-r--r--test/rss/test_atom.rb10
-rw-r--r--test/rss/test_maker_0.9.rb17
-rw-r--r--test/rss/test_maker_2.0.rb40
-rw-r--r--test/rss/test_version.rb2
-rw-r--r--test/rss/test_xml-stylesheet.rb4
-rw-r--r--test/ruby/enc/test_emoji.rb442
-rw-r--r--test/ruby/enc/test_gb18030.rb53
-rw-r--r--test/ruby/enc/test_shift_jis.rb2
-rw-r--r--test/ruby/enc/test_utf16.rb2
-rw-r--r--test/ruby/envutil.rb246
-rw-r--r--test/ruby/marshaltestlib.rb11
-rw-r--r--test/ruby/memory_status.rb96
-rw-r--r--test/ruby/test_alias.rb43
-rw-r--r--test/ruby/test_argf.rb192
-rw-r--r--test/ruby/test_array.rb510
-rw-r--r--test/ruby/test_assignment.rb8
-rw-r--r--test/ruby/test_autoload.rb56
-rw-r--r--test/ruby/test_basicinstructions.rb96
-rw-r--r--test/ruby/test_beginendblock.rb59
-rw-r--r--test/ruby/test_bignum.rb48
-rw-r--r--test/ruby/test_case.rb57
-rw-r--r--test/ruby/test_class.rb118
-rw-r--r--test/ruby/test_comparable.rb38
-rw-r--r--test/ruby/test_complex.rb107
-rw-r--r--test/ruby/test_complex2.rb2
-rw-r--r--test/ruby/test_complexrational.rb4
-rw-r--r--test/ruby/test_continuation.rb43
-rw-r--r--test/ruby/test_defined.rb64
-rw-r--r--test/ruby/test_dir.rb44
-rw-r--r--test/ruby/test_dir_m17n.rb239
-rw-r--r--test/ruby/test_econv.rb40
-rw-r--r--test/ruby/test_encoding.rb53
-rw-r--r--test/ruby/test_enum.rb120
-rw-r--r--test/ruby/test_enumerator.rb245
-rw-r--r--test/ruby/test_env.rb59
-rw-r--r--test/ruby/test_eval.rb22
-rw-r--r--test/ruby/test_exception.rb110
-rw-r--r--test/ruby/test_fiber.rb63
-rw-r--r--test/ruby/test_file.rb36
-rw-r--r--test/ruby/test_file_exhaustive.rb66
-rw-r--r--test/ruby/test_fixnum.rb14
-rw-r--r--test/ruby/test_float.rb123
-rw-r--r--test/ruby/test_fnmatch.rb2
-rw-r--r--test/ruby/test_gc.rb46
-rw-r--r--test/ruby/test_hash.rb69
-rw-r--r--test/ruby/test_integer.rb36
-rw-r--r--test/ruby/test_integer_comb.rb6
-rw-r--r--test/ruby/test_io.rb873
-rw-r--r--test/ruby/test_io_m17n.rb1304
-rw-r--r--test/ruby/test_iterator.rb8
-rw-r--r--test/ruby/test_lambda.rb11
-rw-r--r--test/ruby/test_literal.rb56
-rw-r--r--test/ruby/test_m17n.rb276
-rw-r--r--test/ruby/test_m17n_comb.rb33
-rw-r--r--test/ruby/test_marshal.rb296
-rw-r--r--test/ruby/test_math.rb63
-rw-r--r--test/ruby/test_method.rb153
-rw-r--r--test/ruby/test_module.rb533
-rw-r--r--test/ruby/test_notimp.rb4
-rw-r--r--test/ruby/test_numeric.rb18
-rw-r--r--test/ruby/test_object.rb277
-rw-r--r--test/ruby/test_objectspace.rb1
-rw-r--r--test/ruby/test_optimization.rb23
-rw-r--r--test/ruby/test_pack.rb152
-rw-r--r--test/ruby/test_parse.rb24
-rw-r--r--test/ruby/test_path.rb32
-rw-r--r--test/ruby/test_primitive.rb26
-rw-r--r--test/ruby/test_proc.rb85
-rw-r--r--test/ruby/test_process.rb363
-rw-r--r--test/ruby/test_rand.rb455
-rw-r--r--test/ruby/test_range.rb97
-rw-r--r--test/ruby/test_rational.rb137
-rw-r--r--test/ruby/test_regexp.rb123
-rw-r--r--test/ruby/test_require.rb122
-rw-r--r--test/ruby/test_rubyoptions.rb288
-rw-r--r--test/ruby/test_settracefunc.rb223
-rw-r--r--test/ruby/test_signal.rb75
-rw-r--r--test/ruby/test_sleep.rb4
-rw-r--r--test/ruby/test_sprintf.rb54
-rw-r--r--test/ruby/test_sprintf_comb.rb2
-rw-r--r--test/ruby/test_string.rb233
-rw-r--r--test/ruby/test_stringchar.rb19
-rw-r--r--test/ruby/test_struct.rb39
-rw-r--r--test/ruby/test_super.rb53
-rw-r--r--test/ruby/test_symbol.rb30
-rw-r--r--test/ruby/test_syntax.rb81
-rw-r--r--test/ruby/test_system.rb89
-rw-r--r--test/ruby/test_thread.rb226
-rw-r--r--test/ruby/test_time.rb236
-rw-r--r--test/ruby/test_time_tz.rb338
-rw-r--r--test/ruby/test_trace.rb12
-rw-r--r--test/ruby/test_transcode.rb185
-rw-r--r--test/ruby/test_undef.rb37
-rw-r--r--test/ruby/test_unicode_escape.rb14
-rw-r--r--test/ruby/test_variable.rb13
-rw-r--r--test/ruby/test_yield.rb32
-rw-r--r--test/rubygems/ca_cert.pem45
-rw-r--r--test/rubygems/data/null-type.gemspec.rzbin0 -> 553 bytes-rw-r--r--test/rubygems/fake_certlib/openssl.rb2
-rw-r--r--test/rubygems/fix_openssl_warnings.rb12
-rw-r--r--test/rubygems/foo/discover.rb0
-rw-r--r--test/rubygems/functional.rb99
-rw-r--r--test/rubygems/gem_installer_test_case.rb86
-rw-r--r--test/rubygems/gemutilities.rb492
-rw-r--r--test/rubygems/insure_session.rb8
-rw-r--r--test/rubygems/plugin/exception/rubygems_plugin.rb2
-rw-r--r--test/rubygems/plugin/load/rubygems_plugin.rb3
-rw-r--r--test/rubygems/plugin/standarderror/rubygems_plugin.rb2
-rw-r--r--test/rubygems/rubygems/commands/crash_command.rb5
-rw-r--r--test/rubygems/rubygems_plugin.rb21
-rw-r--r--test/rubygems/sff/discover.rb0
-rw-r--r--test/rubygems/simple_gem.rb32
-rw-r--r--test/rubygems/ssl_cert.pem19
-rw-r--r--test/rubygems/ssl_key.pem15
-rw-r--r--test/rubygems/test_config.rb19
-rw-r--r--test/rubygems/test_gem.rb1040
-rw-r--r--test/rubygems/test_gem_builder.rb31
-rw-r--r--test/rubygems/test_gem_command.rb29
-rw-r--r--test/rubygems/test_gem_command_manager.rb63
-rw-r--r--test/rubygems/test_gem_commands_build_command.rb60
-rw-r--r--test/rubygems/test_gem_commands_cert_command.rb14
-rw-r--r--test/rubygems/test_gem_commands_check_command.rb10
-rw-r--r--test/rubygems/test_gem_commands_cleanup_command.rb89
-rw-r--r--test/rubygems/test_gem_commands_contents_command.rb94
-rw-r--r--test/rubygems/test_gem_commands_dependency_command.rb88
-rw-r--r--test/rubygems/test_gem_commands_environment_command.rb21
-rw-r--r--test/rubygems/test_gem_commands_fetch_command.rb74
-rw-r--r--test/rubygems/test_gem_commands_generate_index_command.rb121
-rw-r--r--test/rubygems/test_gem_commands_help_command.rb58
-rw-r--r--test/rubygems/test_gem_commands_install_command.rb227
-rw-r--r--test/rubygems/test_gem_commands_list_command.rb9
-rw-r--r--test/rubygems/test_gem_commands_lock_command.rb6
-rw-r--r--test/rubygems/test_gem_commands_mirror_command.rb60
-rw-r--r--test/rubygems/test_gem_commands_outdated_command.rb30
-rw-r--r--test/rubygems/test_gem_commands_owner_command.rb147
-rw-r--r--test/rubygems/test_gem_commands_pristine_command.rb139
-rw-r--r--test/rubygems/test_gem_commands_push_command.rb107
-rw-r--r--test/rubygems/test_gem_commands_query_command.rb241
-rw-r--r--test/rubygems/test_gem_commands_server_command.rb41
-rw-r--r--test/rubygems/test_gem_commands_sources_command.rb110
-rw-r--r--test/rubygems/test_gem_commands_specification_command.rb167
-rw-r--r--test/rubygems/test_gem_commands_stale_command.rb18
-rw-r--r--test/rubygems/test_gem_commands_uninstall_command.rb116
-rw-r--r--test/rubygems/test_gem_commands_unpack_command.rb138
-rw-r--r--test/rubygems/test_gem_commands_update_command.rb270
-rw-r--r--test/rubygems/test_gem_commands_which_command.rb83
-rw-r--r--test/rubygems/test_gem_config_file.rb56
-rw-r--r--test/rubygems/test_gem_dependency.rb216
-rw-r--r--test/rubygems/test_gem_dependency_installer.rb449
-rw-r--r--test/rubygems/test_gem_dependency_list.rb129
-rwxr-xr-xtest/rubygems/test_gem_digest.rb46
-rw-r--r--test/rubygems/test_gem_doc_manager.rb25
-rw-r--r--test/rubygems/test_gem_ext_configure_builder.rb30
-rw-r--r--test/rubygems/test_gem_ext_ext_conf_builder.rb79
-rw-r--r--test/rubygems/test_gem_ext_rake_builder.rb19
-rw-r--r--test/rubygems/test_gem_format.rb57
-rw-r--r--test/rubygems/test_gem_gem_path_searcher.rb79
-rw-r--r--test/rubygems/test_gem_gem_runner.rb14
-rw-r--r--test/rubygems/test_gem_gemcutter_utilities.rb151
-rw-r--r--test/rubygems/test_gem_indexer.rb490
-rw-r--r--test/rubygems/test_gem_install_update_options.rb33
-rw-r--r--test/rubygems/test_gem_installer.rb720
-rw-r--r--test/rubygems/test_gem_local_remote_options.rb26
-rw-r--r--test/rubygems/test_gem_package_tar_header.rb17
-rw-r--r--test/rubygems/test_gem_package_tar_input.rb38
-rw-r--r--test/rubygems/test_gem_package_tar_output.rb19
-rw-r--r--test/rubygems/test_gem_package_tar_reader.rb11
-rw-r--r--test/rubygems/test_gem_package_tar_reader_entry.rb21
-rw-r--r--test/rubygems/test_gem_package_tar_writer.rb11
-rw-r--r--test/rubygems/test_gem_package_task.rb59
-rw-r--r--test/rubygems/test_gem_path_support.rb93
-rw-r--r--test/rubygems/test_gem_platform.rb49
-rw-r--r--test/rubygems/test_gem_remote_fetcher.rb398
-rw-r--r--test/rubygems/test_gem_requirement.rb369
-rw-r--r--test/rubygems/test_gem_security.rb100
-rw-r--r--test/rubygems/test_gem_server.rb208
-rw-r--r--test/rubygems/test_gem_silent_ui.rb111
-rw-r--r--test/rubygems/test_gem_source_index.rb938
-rw-r--r--test/rubygems/test_gem_source_info_cache.rb447
-rw-r--r--test/rubygems/test_gem_source_info_cache_entry.rb78
-rw-r--r--test/rubygems/test_gem_spec_fetcher.rb208
-rw-r--r--test/rubygems/test_gem_specification.rb1189
-rw-r--r--test/rubygems/test_gem_stream_ui.rb138
-rw-r--r--test/rubygems/test_gem_text.rb58
-rw-r--r--test/rubygems/test_gem_uninstaller.rb178
-rw-r--r--test/rubygems/test_gem_validator.rb12
-rw-r--r--test/rubygems/test_gem_version.rb301
-rw-r--r--test/rubygems/test_gem_version_option.rb17
-rw-r--r--test/rubygems/test_kernel.rb34
-rw-r--r--test/runner.rb28
-rw-r--r--test/scanf/test_scanf.rb31
-rw-r--r--test/scanf/test_scanfio.rb7
-rw-r--r--test/sdbm/test_sdbm.rb1
-rw-r--r--test/socket/test_addrinfo.rb51
-rw-r--r--test/socket/test_nonblock.rb38
-rw-r--r--test/socket/test_socket.rb77
-rw-r--r--test/socket/test_unix.rb38
-rw-r--r--test/stringio/test_stringio.rb91
-rw-r--r--test/strscan/test_stringscanner.rb25
-rw-r--r--test/syck/test_array.rb18
-rw-r--r--test/syck/test_boolean.rb37
-rw-r--r--test/syck/test_class.rb27
-rw-r--r--test/syck/test_engine_manager.rb3
-rw-r--r--test/syck/test_exception.rb46
-rw-r--r--test/syck/test_hash.rb29
-rw-r--r--test/syck/test_null.rb20
-rw-r--r--test/syck/test_omap.rb56
-rw-r--r--test/syck/test_set.rb31
-rw-r--r--test/syck/test_string.rb45
-rw-r--r--test/syck/test_struct.rb42
-rw-r--r--test/syck/test_symbol.rb22
-rw-r--r--test/syck/test_time.rb24
-rw-r--r--test/syck/test_yaml.rb (renamed from test/yaml/test_yaml.rb)157
-rw-r--r--test/syck/test_yaml_properties.rb64
-rw-r--r--test/syck/test_yamlstore.rb79
-rw-r--r--test/test_cmath.rb16
-rw-r--r--test/test_delegate.rb97
-rw-r--r--test/test_find.rb226
-rw-r--r--test/test_ipaddr.rb3
-rw-r--r--test/test_mathn.rb10
-rw-r--r--test/test_mutex_m.rb26
-rw-r--r--test/test_open3.rb9
-rw-r--r--test/test_pp.rb14
-rw-r--r--test/test_prettyprint.rb4
-rw-r--r--test/test_prime.rb51
-rw-r--r--test/test_pstore.rb55
-rw-r--r--test/test_pty.rb91
-rw-r--r--test/test_securerandom.rb175
-rw-r--r--test/test_set.rb3
-rw-r--r--test/test_shellwords.rb17
-rw-r--r--test/test_singleton.rb92
-rw-r--r--test/test_syslog.rb41
-rw-r--r--test/test_tempfile.rb281
-rw-r--r--test/test_time.rb20
-rw-r--r--test/test_timeout.rb6
-rw-r--r--test/test_tracer.rb63
-rw-r--r--test/testunit/test4test_hideskip.rb7
-rw-r--r--test/testunit/test_assertion.rb8
-rw-r--r--test/testunit/test_hideskip.rb20
-rw-r--r--test/testunit/test_parallel.rb181
-rw-r--r--test/testunit/test_rake_integration.rb35
-rw-r--r--test/testunit/tests_for_parallel/ptest_first.rb7
-rw-r--r--test/testunit/tests_for_parallel/ptest_forth.rb16
-rw-r--r--test/testunit/tests_for_parallel/ptest_second.rb11
-rw-r--r--test/testunit/tests_for_parallel/ptest_third.rb10
-rw-r--r--test/testunit/tests_for_parallel/runner.rb10
-rw-r--r--test/thread/test_queue.rb38
-rw-r--r--test/uri/test_common.rb69
-rw-r--r--test/uri/test_generic.rb22
-rw-r--r--test/uri/test_http.rb1
-rw-r--r--test/uri/test_ldap.rb6
-rw-r--r--test/webrick/test_cgi.rb36
-rw-r--r--test/webrick/test_cookie.rb27
-rw-r--r--test/webrick/test_filehandler.rb90
-rw-r--r--test/webrick/test_httpauth.rb87
-rw-r--r--test/webrick/test_httpproxy.rb25
-rw-r--r--test/webrick/test_httprequest.rb64
-rw-r--r--test/webrick/test_httpserver.rb47
-rw-r--r--test/webrick/test_server.rb11
-rw-r--r--test/webrick/utils.rb9
-rw-r--r--test/win32ole/test_err_in_callback.rb16
-rw-r--r--test/win32ole/test_folderitem2_invokeverb.rb50
-rw-r--r--test/win32ole/test_thread.rb20
-rw-r--r--test/win32ole/test_win32ole.rb60
-rw-r--r--test/win32ole/test_win32ole_method.rb7
-rw-r--r--test/win32ole/test_win32ole_param.rb17
-rw-r--r--test/win32ole/test_win32ole_typelib.rb6
-rw-r--r--test/win32ole/test_win32ole_variant.rb61
-rw-r--r--test/with_different_ofs.rb17
-rw-r--r--test/xmlrpc/htpasswd2
-rw-r--r--test/xmlrpc/test_cookie.rb2
-rw-r--r--test/xmlrpc/test_marshal.rb17
-rw-r--r--test/xmlrpc/test_parser.rb6
-rw-r--r--test/xmlrpc/test_webrick_server.rb47
-rw-r--r--test/xmlrpc/webrick_testing.rb11
-rw-r--r--test/yaml/test_yamlstore.rb74
-rw-r--r--test/zlib/test_zlib.rb407
-rw-r--r--thread.c1875
-rw-r--r--thread_pthread.c915
-rw-r--r--thread_pthread.h31
-rw-r--r--thread_win32.c434
-rw-r--r--thread_win32.h9
-rw-r--r--time.c2682
-rw-r--r--timev.h4
-rwxr-xr-x[-rw-r--r--]tool/asm_parse.rb6
-rwxr-xr-xtool/change_maker.rb30
-rwxr-xr-x[-rw-r--r--]tool/compile_prelude.rb220
-rwxr-xr-x[-rw-r--r--]tool/config.guess (renamed from config.guess)245
-rwxr-xr-x[-rw-r--r--]tool/config.sub (renamed from config.sub)91
-rw-r--r--tool/enc-emoji-citrus-gen.rb131
-rw-r--r--tool/enc-emoji4unicode.rb133
-rwxr-xr-xtool/enc-unicode.rb319
-rwxr-xr-x[-rw-r--r--]tool/eval.rb8
-rwxr-xr-x[-rw-r--r--]tool/file2lastrev.rb169
-rwxr-xr-x[-rw-r--r--]tool/generic_erb.rb0
-rw-r--r--tool/install-sh17
-rwxr-xr-x[-rw-r--r--]tool/instruction.rb60
-rw-r--r--tool/jisx0208.rb84
-rwxr-xr-xtool/make-snapshot45
-rwxr-xr-xtool/mdoc2man.rb6
-rwxr-xr-xtool/merger.rb208
-rwxr-xr-xtool/mkconfig.rb (renamed from mkconfig.rb)94
-rwxr-xr-xtool/node_name.rb8
-rwxr-xr-x[-rw-r--r--]tool/parse.rb0
-rwxr-xr-xtool/rbinstall.rb (renamed from instruby.rb)254
-rwxr-xr-xtool/rmdirs2
-rwxr-xr-xtool/rubytest.rb (renamed from rubytest.rb)2
-rwxr-xr-xtool/runruby.rb (renamed from runruby.rb)10
-rwxr-xr-x[-rw-r--r--]tool/strip-rdoc.rb6
-rw-r--r--tool/test/test_jisx0208.rb40
-rwxr-xr-x[-rw-r--r--]tool/transcode-tblgen.rb827
-rwxr-xr-xtool/update-deps139
-rwxr-xr-x[-rw-r--r--]tool/vtlh.rb0
-rw-r--r--transcode.c621
-rw-r--r--transcode_data.h17
-rw-r--r--util.c420
-rw-r--r--variable.c680
-rw-r--r--version.c69
-rw-r--r--version.h18
-rw-r--r--vm.c650
-rw-r--r--vm_core.h328
-rw-r--r--vm_dump.c311
-rw-r--r--vm_eval.c727
-rw-r--r--vm_exec.c2
-rw-r--r--vm_exec.h8
-rw-r--r--vm_insnhelper.c659
-rw-r--r--vm_insnhelper.h61
-rw-r--r--vm_method.c891
-rw-r--r--vsnprintf.c (renamed from missing/vsnprintf.c)226
-rw-r--r--win32/Makefile.sub386
-rw-r--r--win32/README.win3224
-rwxr-xr-xwin32/configure.bat87
-rw-r--r--win32/dir.h1
-rwxr-xr-xwin32/mkexports.rb17
-rwxr-xr-xwin32/resource.rb4
-rwxr-xr-xwin32/rm.bat1
-rw-r--r--win32/rmall.bat6
-rw-r--r--win32/setup.mak45
-rw-r--r--win32/stub.c42
-rw-r--r--win32/win32.c1717
2372 files changed, 592056 insertions, 166318 deletions
diff --git a/.cvsignore b/.cvsignore
deleted file mode 100644
index 76c9bc0b78..0000000000
--- a/.cvsignore
+++ /dev/null
@@ -1,52 +0,0 @@
-*.bak
-*.orig
-*.rej
-*.sav
-*~
-.*.list
-.*.time
-.ccmalloc
-.ppack
-.ext
-.git
-.svn
-.pc
-COPYING.LIB
-ChangeLog.pre-alpha
-ChangeLog.pre1_1
-ChangeLog-1.8.0
-Makefile
-README.fat-patch
-README.v6
-README.atheos
-archive
-autom4te*.cache
-automake
-beos
-config.cache
-config.h
-config.h.in
-config.log
-config.status
-configure
-libruby.so.*
-miniruby
-newdate.rb
-newver.rb
-parse.c
-patches
-patches-master
-pitest.rb
-ppack
-preview
-rbconfig.rb
-rename2.h
-repack
-riscos
-rubicon
-ruby
-ruby-man.rd.gz
-tmp
-web
-y.output
-y.tab.c
diff --git a/.document b/.document
index 230c50e387..8a05d61beb 100644
--- a/.document
+++ b/.document
@@ -6,6 +6,9 @@
# Process all the C source files
*.c
+# prelude
+prelude.rb
+
# the lib/ directory (which has its own .document file)
lib
@@ -14,3 +17,6 @@ lib
# and some of the ext/ directory (which has its own .document file)
ext
+
+# rdoc files
+doc/*.rdoc
diff --git a/.gdbinit b/.gdbinit
index 779d3085c2..2a38da8892 100644
--- a/.gdbinit
+++ b/.gdbinit
@@ -1,63 +1,134 @@
define rp
- if (VALUE)$arg0 & RUBY_FIXNUM_FLAG
- printf "FIXNUM: %ld\n", (long)$arg0 >> 1
+ if ruby_dummy_gdb_enums.special_consts
+ end
+ if (VALUE)($arg0) & RUBY_FIXNUM_FLAG
+ printf "FIXNUM: %ld\n", (long)($arg0) >> 1
else
- if ((VALUE)$arg0 & ~(~(VALUE)0<<RUBY_SPECIAL_SHIFT)) == RUBY_SYMBOL_FLAG
- printf "SYMBOL(%ld)\n", $arg0 >> RUBY_SPECIAL_SHIFT
+ if ((VALUE)($arg0) & ~(~(VALUE)0<<RUBY_SPECIAL_SHIFT)) == RUBY_SYMBOL_FLAG
+ set $id = (($arg0) >> RUBY_SPECIAL_SHIFT)
+ if $id == '!' || $id == '+' || $id == '-' || $id == '*' || $id == '/' || $id == '%' || $id == '<' || $id == '>' || $id == '`'
+ printf "SYMBOL(:%c)\n", $id
+ else
+ if $id == idDot2
+ echo SYMBOL(:..)\n
+ else
+ if $id == idDot3
+ echo SYMBOL(:...)\n
+ else
+ if $id == idUPlus
+ echo SYMBOL(:+@)\n
+ else
+ if $id == idUMinus
+ echo SYMBOL(:-@)\n
+ else
+ if $id == idPow
+ echo SYMBOL(:**)\n
+ else
+ if $id == idCmp
+ echo SYMBOL(:<=>)\n
+ else
+ if $id == idLTLT
+ echo SYMBOL(:<<)\n
+ else
+ if $id == idLE
+ echo SYMBOL(:<=)\n
+ else
+ if $id == idGE
+ echo SYMBOL(:>=)\n
+ else
+ if $id == idEq
+ echo SYMBOL(:==)\n
+ else
+ if $id == idEqq
+ echo SYMBOL(:===)\n
+ else
+ if $id == idNeq
+ echo SYMBOL(:!=)\n
+ else
+ if $id == idEqTilde
+ echo SYMBOL(:=~)\n
+ else
+ if $id == idNeqTilde
+ echo SYMBOL(:!~)\n
+ else
+ if $id == idAREF
+ echo SYMBOL(:[])\n
+ else
+ if $id == idASET
+ echo SYMBOL(:[]=)\n
+ else
+ printf "SYMBOL(%ld)\n", $id
+ end
+ end
+ end
+ end
+ end
+ end
+ end
+ end
+ end
+ end
+ end
+ end
+ end
+ end
+ end
+ end
+ end
else
- if $arg0 == RUBY_Qfalse
+ if ($arg0) == RUBY_Qfalse
echo false\n
else
- if $arg0 == RUBY_Qtrue
+ if ($arg0) == RUBY_Qtrue
echo true\n
else
- if $arg0 == RUBY_Qnil
+ if ($arg0) == RUBY_Qnil
echo nil\n
else
- if $arg0 == RUBY_Qundef
+ if ($arg0) == RUBY_Qundef
echo undef\n
else
- if (VALUE)$arg0 & RUBY_IMMEDIATE_MASK
+ if (VALUE)($arg0) & RUBY_IMMEDIATE_MASK
echo immediate\n
else
- set $flags = ((struct RBasic*)$arg0)->flags
+ set $flags = ((struct RBasic*)($arg0))->flags
if ($flags & RUBY_T_MASK) == RUBY_T_NONE
printf "T_NONE: "
- print (struct RBasic *)$arg0
+ print (struct RBasic *)($arg0)
else
if ($flags & RUBY_T_MASK) == RUBY_T_NIL
printf "T_NIL: "
- print (struct RBasic *)$arg0
+ print (struct RBasic *)($arg0)
else
if ($flags & RUBY_T_MASK) == RUBY_T_OBJECT
printf "T_OBJECT: "
- print (struct RObject *)$arg0
+ print (struct RObject *)($arg0)
else
if ($flags & RUBY_T_MASK) == RUBY_T_CLASS
- printf "T_CLASS: "
- print (struct RClass *)$arg0
+ printf "T_CLASS%s: ", ($flags & RUBY_FL_SINGLETON) ? "*" : ""
+ print (struct RClass *)($arg0)
else
if ($flags & RUBY_T_MASK) == RUBY_T_ICLASS
printf "T_ICLASS: "
- print (struct RClass *)$arg0
+ print (struct RClass *)($arg0)
else
if ($flags & RUBY_T_MASK) == RUBY_T_MODULE
printf "T_MODULE: "
- print (struct RClass *)$arg0
+ print (struct RClass *)($arg0)
else
if ($flags & RUBY_T_MASK) == RUBY_T_FLOAT
- printf "T_FLOAT: %.16g ", (((struct RFloat*)$arg0)->float_value)
- print (struct RFloat *)$arg0
+ printf "T_FLOAT: %.16g ", (((struct RFloat*)($arg0))->float_value)
+ print (struct RFloat *)($arg0)
else
if ($flags & RUBY_T_MASK) == RUBY_T_STRING
printf "T_STRING: "
set print address off
output (char *)(($flags & RUBY_FL_USER1) ? \
- ((struct RString*)$arg0)->as.heap.ptr : \
- ((struct RString*)$arg0)->as.ary)
+ ((struct RString*)($arg0))->as.heap.ptr : \
+ ((struct RString*)($arg0))->as.ary)
set print address on
printf " bytesize:%ld ", ($flags & RUBY_FL_USER1) ? \
- ((struct RString*)$arg0)->as.heap.len : \
+ ((struct RString*)($arg0))->as.heap.len : \
(($flags & (RUBY_FL_USER2|RUBY_FL_USER3|RUBY_FL_USER4|RUBY_FL_USER5|RUBY_FL_USER6)) >> RUBY_FL_USHIFT+2)
if !($flags & RUBY_FL_USER1)
printf "(embed) "
@@ -83,10 +154,10 @@ define rp
end
end
end
- print (struct RString *)$arg0
+ print (struct RString *)($arg0)
else
if ($flags & RUBY_T_MASK) == RUBY_T_REGEXP
- set $regsrc = ((struct RRegexp*)$arg0)->src
+ set $regsrc = ((struct RRegexp*)($arg0))->src
set $rsflags = ((struct RBasic*)$regsrc)->flags
printf "T_REGEXP: "
set print address off
@@ -107,7 +178,7 @@ define rp
printf "(fixed) "
end
printf "encoding:%d ", ($flags & RUBY_ENCODING_MASK) >> RUBY_ENCODING_SHIFT
- print (struct RRegexp *)$arg0
+ print (struct RRegexp *)($arg0)
else
if ($flags & RUBY_T_MASK) == RUBY_T_ARRAY
if ($flags & RUBY_FL_USER1)
@@ -117,112 +188,118 @@ define rp
if ($len == 0)
printf "{(empty)} "
else
- output/x *((VALUE*)((struct RArray*)$arg0)->as.ary) @ $len
+ output/x *((VALUE*)((struct RArray*)($arg0))->as.ary) @ $len
printf " "
end
else
- set $len = ((struct RArray*)$arg0)->as.heap.len
+ set $len = ((struct RArray*)($arg0))->as.heap.len
printf "T_ARRAY: len=%ld ", $len
if ($flags & RUBY_FL_USER2)
printf "(shared) shared="
- output/x ((struct RArray*)$arg0)->as.heap.aux.shared
+ output/x ((struct RArray*)($arg0))->as.heap.aux.shared
printf " "
else
- printf "(ownership) capa=%ld ", ((struct RArray*)$arg0)->as.heap.aux.capa
+ printf "(ownership) capa=%ld ", ((struct RArray*)($arg0))->as.heap.aux.capa
end
if ($len == 0)
printf "{(empty)} "
else
- output/x *((VALUE*)((struct RArray*)$arg0)->as.heap.ptr) @ $len
+ output/x *((VALUE*)((struct RArray*)($arg0))->as.heap.ptr) @ $len
printf " "
end
end
- print (struct RArray *)$arg0
+ print (struct RArray *)($arg0)
else
if ($flags & RUBY_T_MASK) == RUBY_T_FIXNUM
printf "T_FIXNUM: "
- print (struct RBasic *)$arg0
+ print (struct RBasic *)($arg0)
else
if ($flags & RUBY_T_MASK) == RUBY_T_HASH
printf "T_HASH: ",
- if ((struct RHash *)$arg0)->ntbl
- printf "len=%ld ", ((struct RHash *)$arg0)->ntbl->num_entries
+ if ((struct RHash *)($arg0))->ntbl
+ printf "len=%ld ", ((struct RHash *)($arg0))->ntbl->num_entries
end
- print (struct RHash *)$arg0
+ print (struct RHash *)($arg0)
else
if ($flags & RUBY_T_MASK) == RUBY_T_STRUCT
printf "T_STRUCT: len=%ld ", \
(($flags & (RUBY_FL_USER1|RUBY_FL_USER2)) ? \
($flags & (RUBY_FL_USER1|RUBY_FL_USER2)) >> (RUBY_FL_USHIFT+1) : \
- ((struct RStruct *)$arg0)->as.heap.len)
- print (struct RStruct *)$arg0
+ ((struct RStruct *)($arg0))->as.heap.len)
+ print (struct RStruct *)($arg0)
x/xw (($flags & (RUBY_FL_USER1|RUBY_FL_USER2)) ? \
- ((struct RStruct *)$arg0)->as.ary : \
- ((struct RStruct *)$arg0)->as.heap.ptr)
+ ((struct RStruct *)($arg0))->as.ary : \
+ ((struct RStruct *)($arg0))->as.heap.ptr)
else
if ($flags & RUBY_T_MASK) == RUBY_T_BIGNUM
printf "T_BIGNUM: sign=%d len=%ld ", \
(($flags & RUBY_FL_USER1) != 0), \
(($flags & RUBY_FL_USER2) ? \
($flags & (RUBY_FL_USER5|RUBY_FL_USER4|RUBY_FL_USER3)) >> (RUBY_FL_USHIFT+3) : \
- ((struct RBignum*)$arg0)->as.heap.len)
+ ((struct RBignum*)($arg0))->as.heap.len)
if $flags & RUBY_FL_USER2
printf "(embed) "
end
- print (struct RBignum *)$arg0
+ print (struct RBignum *)($arg0)
x/xw (($flags & RUBY_FL_USER2) ? \
- ((struct RBignum*)$arg0)->as.ary : \
- ((struct RBignum*)$arg0)->as.heap.digits)
+ ((struct RBignum*)($arg0))->as.ary : \
+ ((struct RBignum*)($arg0))->as.heap.digits)
else
if ($flags & RUBY_T_MASK) == RUBY_T_RATIONAL
printf "T_RATIONAL: "
- print (struct RRational *)$arg0
+ print (struct RRational *)($arg0)
else
if ($flags & RUBY_T_MASK) == RUBY_T_COMPLEX
printf "T_COMPLEX: "
- print (struct RComplex *)$arg0
+ print (struct RComplex *)($arg0)
else
if ($flags & RUBY_T_MASK) == RUBY_T_FILE
printf "T_FILE: "
- print (struct RFile *)$arg0
- output *((struct RFile *)$arg0)->fptr
+ print (struct RFile *)($arg0)
+ output *((struct RFile *)($arg0))->fptr
printf "\n"
else
if ($flags & RUBY_T_MASK) == RUBY_T_TRUE
printf "T_TRUE: "
- print (struct RBasic *)$arg0
+ print (struct RBasic *)($arg0)
else
if ($flags & RUBY_T_MASK) == RUBY_T_FALSE
printf "T_FALSE: "
- print (struct RBasic *)$arg0
+ print (struct RBasic *)($arg0)
else
if ($flags & RUBY_T_MASK) == RUBY_T_DATA
- printf "T_DATA: "
- print (struct RData *)$arg0
+ if ((struct RTypedData *)($arg0))->typed_flag == 1
+ printf "T_DATA(%s): ", ((struct RTypedData *)($arg0))->type->wrap_struct_name
+ print (struct RTypedData *)($arg0)
+ else
+ printf "T_DATA: "
+ print (struct RData *)($arg0)
+ end
else
if ($flags & RUBY_T_MASK) == RUBY_T_MATCH
printf "T_MATCH: "
- print (struct RMatch *)$arg0
+ print (struct RMatch *)($arg0)
else
if ($flags & RUBY_T_MASK) == RUBY_T_SYMBOL
printf "T_SYMBOL: "
- print (struct RBasic *)$arg0
+ print (struct RBasic *)($arg0)
else
if ($flags & RUBY_T_MASK) == RUBY_T_UNDEF
printf "T_UNDEF: "
- print (struct RBasic *)$arg0
+ print (struct RBasic *)($arg0)
else
if ($flags & RUBY_T_MASK) == RUBY_T_NODE
printf "T_NODE("
output (enum node_type)(($flags&RUBY_NODE_TYPEMASK)>>RUBY_NODE_TYPESHIFT)
printf "): "
- print *(NODE *)$arg0
+ print *(NODE *)($arg0)
+ else
if ($flags & RUBY_T_MASK) == RUBY_T_ZOMBIE
printf "T_ZOMBIE: "
- print (struct RData *)$arg0
+ print (struct RData *)($arg0)
else
printf "unknown: "
- print (struct RBasic *)$arg0
+ print (struct RBasic *)($arg0)
end
end
end
@@ -261,21 +338,21 @@ document rp
end
define nd_type
- print (enum node_type)((((NODE*)$arg0)->flags&RUBY_NODE_TYPEMASK)>>RUBY_NODE_TYPESHIFT)
+ print (enum node_type)((((NODE*)($arg0))->flags&RUBY_NODE_TYPEMASK)>>RUBY_NODE_TYPESHIFT)
end
document nd_type
Print a Ruby' node type.
end
define nd_file
- print ((NODE*)$arg0)->nd_file
+ print ((NODE*)($arg0))->nd_file
end
document nd_file
Print the source file name of a node.
end
define nd_line
- print ((unsigned int)((((NODE*)$arg0)->flags>>RUBY_NODE_LSHIFT)&RUBY_NODE_LMASK))
+ print ((unsigned int)((((NODE*)($arg0))->flags>>RUBY_NODE_LSHIFT)&RUBY_NODE_LMASK))
end
document nd_line
Print the source line number of a node.
@@ -285,271 +362,331 @@ end
define nd_head
printf "u1.node: "
- rp $arg0.u1.node
+ rp ($arg0).u1.node
end
define nd_alen
printf "u2.argc: "
- p $arg0.u2.argc
+ p ($arg0).u2.argc
end
define nd_next
printf "u3.node: "
- rp $arg0.u3.node
+ rp ($arg0).u3.node
end
define nd_cond
printf "u1.node: "
- rp $arg0.u1.node
+ rp ($arg0).u1.node
end
define nd_body
printf "u2.node: "
- rp $arg0.u2.node
+ rp ($arg0).u2.node
end
define nd_else
printf "u3.node: "
- rp $arg0.u3.node
+ rp ($arg0).u3.node
end
define nd_orig
printf "u3.value: "
- rp $arg0.u3.value
+ rp ($arg0).u3.value
end
define nd_resq
printf "u2.node: "
- rp $arg0.u2.node
+ rp ($arg0).u2.node
end
define nd_ensr
printf "u3.node: "
- rp $arg0.u3.node
+ rp ($arg0).u3.node
end
define nd_1st
printf "u1.node: "
- rp $arg0.u1.node
+ rp ($arg0).u1.node
end
define nd_2nd
printf "u2.node: "
- rp $arg0.u2.node
+ rp ($arg0).u2.node
end
define nd_stts
printf "u1.node: "
- rp $arg0.u1.node
+ rp ($arg0).u1.node
end
define nd_entry
printf "u3.entry: "
- p $arg0.u3.entry
+ p ($arg0).u3.entry
end
define nd_vid
printf "u1.id: "
- p $arg0.u1.id
+ p ($arg0).u1.id
end
define nd_cflag
printf "u2.id: "
- p $arg0.u2.id
+ p ($arg0).u2.id
end
define nd_cval
printf "u3.value: "
- rp $arg0.u3.value
+ rp ($arg0).u3.value
end
define nd_cnt
printf "u3.cnt: "
- p $arg0.u3.cnt
+ p ($arg0).u3.cnt
end
define nd_tbl
printf "u1.tbl: "
- p $arg0.u1.tbl
+ p ($arg0).u1.tbl
end
define nd_var
printf "u1.node: "
- rp $arg0.u1.node
+ rp ($arg0).u1.node
end
define nd_ibdy
printf "u2.node: "
- rp $arg0.u2.node
+ rp ($arg0).u2.node
end
define nd_iter
printf "u3.node: "
- rp $arg0.u3.node
+ rp ($arg0).u3.node
end
define nd_value
printf "u2.node: "
- rp $arg0.u2.node
+ rp ($arg0).u2.node
end
define nd_aid
printf "u3.id: "
- p $arg0.u3.id
+ p ($arg0).u3.id
end
define nd_lit
printf "u1.value: "
- rp $arg0.u1.value
+ rp ($arg0).u1.value
end
define nd_frml
printf "u1.node: "
- rp $arg0.u1.node
+ rp ($arg0).u1.node
end
define nd_rest
printf "u2.argc: "
- p $arg0.u2.argc
+ p ($arg0).u2.argc
end
define nd_opt
printf "u1.node: "
- rp $arg0.u1.node
+ rp ($arg0).u1.node
end
define nd_recv
printf "u1.node: "
- rp $arg0.u1.node
+ rp ($arg0).u1.node
end
define nd_mid
printf "u2.id: "
- p $arg0.u2.id
+ p ($arg0).u2.id
end
define nd_args
printf "u3.node: "
- rp $arg0.u3.node
+ rp ($arg0).u3.node
end
define nd_noex
printf "u1.id: "
- p $arg0.u1.id
+ p ($arg0).u1.id
end
define nd_defn
printf "u3.node: "
- rp $arg0.u3.node
+ rp ($arg0).u3.node
end
define nd_old
printf "u1.id: "
- p $arg0.u1.id
+ p ($arg0).u1.id
end
define nd_new
printf "u2.id: "
- p $arg0.u2.id
+ p ($arg0).u2.id
end
define nd_cfnc
printf "u1.cfunc: "
- p $arg0.u1.cfunc
+ p ($arg0).u1.cfunc
end
define nd_argc
printf "u2.argc: "
- p $arg0.u2.argc
+ p ($arg0).u2.argc
end
define nd_cname
printf "u1.id: "
- p $arg0.u1.id
+ p ($arg0).u1.id
end
define nd_super
printf "u3.node: "
- rp $arg0.u3.node
+ rp ($arg0).u3.node
end
define nd_modl
printf "u1.id: "
- p $arg0.u1.id
+ p ($arg0).u1.id
end
define nd_clss
printf "u1.value: "
- rp $arg0.u1.value
+ rp ($arg0).u1.value
end
define nd_beg
printf "u1.node: "
- rp $arg0.u1.node
+ rp ($arg0).u1.node
end
define nd_end
printf "u2.node: "
- rp $arg0.u2.node
+ rp ($arg0).u2.node
end
define nd_state
printf "u3.state: "
- p $arg0.u3.state
+ p ($arg0).u3.state
end
define nd_rval
printf "u2.value: "
- rp $arg0.u2.value
+ rp ($arg0).u2.value
end
define nd_nth
printf "u2.argc: "
- p $arg0.u2.argc
+ p ($arg0).u2.argc
end
define nd_tag
printf "u1.id: "
- p $arg0.u1.id
+ p ($arg0).u1.id
end
define nd_tval
printf "u2.value: "
- rp $arg0.u2.value
+ rp ($arg0).u2.value
end
define rb_p
call rb_p($arg0)
end
+define rb_numtable_entry
+ set $rb_numtable_tbl = $arg0
+ set $rb_numtable_id = (st_data_t)$arg1
+ set $rb_numtable_key = 0
+ set $rb_numtable_rec = 0
+ if $rb_numtable_tbl->entries_packed
+ set $rb_numtable_p = $rb_numtable_tbl->bins
+ while $rb_numtable_p && $rb_numtable_p < $rb_numtable_tbl->bins+$rb_numtable_tbl->num_entries
+ if (st_data_t)$rb_numtable_p[0] == $rb_numtable_id
+ set $rb_numtable_key = (st_data_t)$rb_numtable_p[0]
+ set $rb_numtable_rec = (st_data_t)$rb_numtable_p[1]
+ set $rb_numtable_p = 0
+ else
+ set $rb_numtable_p = $rb_numtable_p + 2
+ end
+ end
+ else
+ set $rb_numtable_p = $rb_numtable_tbl->bins[$rb_numtable_id % $rb_numtable_tbl->num_bins]
+ while $rb_numtable_p
+ if $rb_numtable_p->key == $rb_numtable_id
+ set $rb_numtable_key = $rb_numtable_p->key
+ set $rb_numtable_rec = $rb_numtable_p->record
+ set $rb_numtable_p = 0
+ else
+ set $rb_numtable_p = $rb_numtable_p->next
+ end
+ end
+ end
+end
+
define rb_id2name
- call rb_id2name($arg0)
+ rb_numtable_entry global_symbols.id_str (ID)$arg0
+ if $rb_numtable_rec
+ rp $rb_numtable_rec
+ else
+ echo undef\n
+ end
+end
+document rb_id2name
+ Print the name of id
+end
+
+define rb_method_entry
+ set $rb_method_entry_klass = (struct RClass *)$arg0
+ set $rb_method_entry_id = (ID)$arg1
+ set $rb_method_entry_me = (rb_method_entry_t *)0
+ while !$rb_method_entry_me && $rb_method_entry_klass
+ rb_numtable_entry $rb_method_entry_klass->m_tbl $rb_method_entry_id
+ set $rb_method_entry_me = (rb_method_entry_t *)$rb_numtable_rec
+ if !$rb_method_entry_me
+ set $rb_method_entry_klass = (struct RClass *)$rb_method_entry_klass->ptr->super
+ end
+ end
+ if $rb_method_entry_me
+ print *$rb_method_entry_klass
+ print *$rb_method_entry_me
+ else
+ echo method not found\n
+ end
+end
+document rb_method_entry
+ Search method entry by class and id
end
define rb_classname
call classname($arg0)
rb_p $
- print *(struct RClass*)$arg0
+ print *(struct RClass*)($arg0)
end
define rb_backtrace
@@ -557,27 +694,64 @@ define rb_backtrace
end
define iseq
- if $arg0->type == ISEQ_ELEMENT_NONE
+ if dummy_gdb_enums.special_consts
+ end
+ if ($arg0)->type == ISEQ_ELEMENT_NONE
echo [none]\n
end
- if $arg0->type == ISEQ_ELEMENT_LABEL
- print *(LABEL*)$arg0
+ if ($arg0)->type == ISEQ_ELEMENT_LABEL
+ print *(LABEL*)($arg0)
end
- if $arg0->type == ISEQ_ELEMENT_INSN
- print *(INSN*)$arg0
- if ((INSN*)$arg0)->insn_id != YARVINSN_jump
+ if ($arg0)->type == ISEQ_ELEMENT_INSN
+ print *(INSN*)($arg0)
+ if ((INSN*)($arg0))->insn_id != YARVINSN_jump
set $i = 0
- set $operand_size = ((INSN*)$arg0)->operand_size
- set $operands = ((INSN*)$arg0)->operands
+ set $operand_size = ((INSN*)($arg0))->operand_size
+ set $operands = ((INSN*)($arg0))->operands
while $i < $operand_size
rp $operands[$i++]
end
end
end
- if $arg0->type == ISEQ_ELEMENT_ADJUST
- print *(ADJUST*)$arg0
+ if ($arg0)->type == ISEQ_ELEMENT_ADJUST
+ print *(ADJUST*)($arg0)
end
end
-if dummy_gdb_enums.special_consts
+define rb_ps
+ rb_ps_vm ruby_current_vm
+end
+document rb_ps
+Dump all threads and their callstacks
+end
+
+define rb_ps_vm
+ print $ps_vm = (rb_vm_t*)$arg0
+ set $ps_threads = (st_table*)$ps_vm->living_threads
+ if $ps_threads->entries_packed
+ set $ps_threads_i = 0
+ while $ps_threads_i < $ps_threads->num_entries
+ set $ps_threads_key = (st_data_t)$ps_threads->bins[$ps_threads_i * 2]
+ set $ps_threads_val = (st_data_t)$ps_threads->bins[$ps_threads_i * 2 + 1]
+ rb_ps_thread $ps_threads_key $ps_threads_val
+ set $ps_threads_i = $ps_threads_i + 1
+ end
+ else
+ set $ps_threads_ptr = (st_table_entry*)$ps_threads->head
+ while $ps_threads_ptr
+ set $ps_threads_key = (st_data_t)$ps_threads_ptr->key
+ set $ps_threads_val = (st_data_t)$ps_threads_ptr->record
+ rb_ps_thread $ps_threads_key $ps_threads_val
+ set $ps_threads_ptr = (st_table_entry*)$ps_threads_ptr->fore
+ end
+ end
+end
+document rb_ps_vm
+Dump all threads in a (rb_vm_t*) and their callstacks
+end
+
+define rb_ps_thread
+ set $ps_thread = (struct RTypedData*)$arg0
+ set $ps_thread_id = $arg1
+ print $ps_thread_th = (rb_thread_t*)$ps_thread->data
end
diff --git a/.gitignore b/.gitignore
index 80ca128593..57557c9c2e 100644
--- a/.gitignore
+++ b/.gitignore
@@ -1,11 +1,15 @@
+*-*-*.def
+*.a
*.bak
+*.dSYM
*.dylib
*.inc
+*.log
+*.o
*.orig
*.rej
*.sav
*.swp
-*_prelude.c
*~
.*-*
.*.list
@@ -13,65 +17,115 @@
.DS_Store
.ccmalloc
.ext
-.git
.pc
.ppack
.svn
-COPYING.LIB
-ChangeLog-1.8.0
-ChangeLog.pre-alpha
-ChangeLog.pre1_1
-Doxyfile
-GNUmakefile
Makefile
-README.atheos
-README.fat-patch
-README.v6
-TAGS
-archive
-autom4te*.cache
-automake
-beos
-config.cache
-config.h
-config.h.in
-config.log
-config.status
-config.status.lineno
-configure
-enc.mk
-enc/trans/*.c
-encdb.h
-ext/win32ole/.document
-largefile.h
-lex.c
-libruby*.*
-miniprelude.c
-miniruby
-newdate.rb
-newline.c
-newver.rb
-parse.c
-parse.h
-patches
-patches-master
-pitest.rb
-ppack
-prelude.c
-preview
-rbconfig.rb
-rename2.h
-repack
-revision.h
-riscos
-rubicon
-ruby
-ruby-man.rd.gz
-test.rb
-tmp
-transdb.h
-uncommon.mk
-web
+extconf.h
y.output
y.tab.c
-yasmdata.rb
+
+# /
+/*.pc
+/*_prelude.c
+/COPYING.LIB
+/ChangeLog-1.8.0
+/ChangeLog.pre-alpha
+/ChangeLog.pre1_1
+/Doxyfile
+/GNUmakefile
+/README.atheos
+/README.fat-patch
+/README.v6
+/TAGS
+/archive
+/autom4te*.cache
+/automake
+/beos
+/breakpoints.gdb
+/config.cache
+/config.h
+/config.h.in
+/config.status
+/config.status.lineno
+/configure
+/doc/capi
+/enc.mk
+/enc/trans/*.c
+/encdb.h
+/exts.mk
+/goruby
+/id.h
+/largefile.h
+/lex.c
+/libruby*.*
+/miniprelude.c
+/miniruby
+/newdate.rb
+/newline.c
+/newver.rb
+/parse.c
+/parse.h
+/patches
+/patches-master
+/pitest.rb
+/ppack
+/prelude.c
+/preview
+/rbconfig.rb
+/rename2.h
+/repack
+/revision.h
+/riscos
+/rubicon
+/ruby
+/ruby-man.rd.gz
+/test.rb
+/tmp
+/transdb.h
+/uncommon.mk
+/web
+/yasmdata.rb
+
+# /benchmark/
+/benchmark/bmx_*.rb
+
+# /enc/trans/
+/enc/trans/*.c
+
+# /ext/
+/ext/extinit.c
+
+# /ext/dl/
+/ext/dl/*.func
+
+# /ext/dl/callback/
+/ext/dl/callback/*.func
+/ext/dl/callback/callback-*.c
+/ext/dl/callback/callback.c
+
+# /ext/iconv/
+/ext/iconv/config.charset
+/ext/iconv/iconv.rb
+
+# /ext/ripper/
+/ext/ripper/eventids1.c
+/ext/ripper/eventids2table.c
+/ext/ripper/ripper.*
+/ext/ripper/ids1
+/ext/ripper/ids2
+
+# /ext/socket/
+/ext/socket/constants.h
+/ext/socket/constdefs.h
+/ext/socket/constdefs.c
+
+# /ext/tk/
+/ext/tk/config_list
+
+# /spec/
+/spec/mspec
+/spec/rubyspec
+
+# /win32/
+/win32/*.ico
diff --git a/.indent.pro b/.indent.pro
new file mode 100644
index 0000000000..6a207a0554
--- /dev/null
+++ b/.indent.pro
@@ -0,0 +1,21 @@
+-bap
+-nbbb
+-nbc
+-br
+-nbs
+-ncdb
+-ce
+-cli0.5
+-ndj
+-ei
+-nfc1
+-i4
+-l120
+-lp
+-npcs
+-psl
+-sc
+-sob
+
+-TID
+-TVALUE
diff --git a/.travis.yml b/.travis.yml
new file mode 100644
index 0000000000..286342c1cc
--- /dev/null
+++ b/.travis.yml
@@ -0,0 +1,8 @@
+# no installation...
+before_script: autoconf
+script: "./configure && make all test"
+
+branches:
+ only:
+ - trunk
+ - ruby_1_9_3
diff --git a/BSDL b/BSDL
new file mode 100644
index 0000000000..82725534fa
--- /dev/null
+++ b/BSDL
@@ -0,0 +1,22 @@
+Copyright (C) 1993-2010 Yukihiro Matsumoto. All rights reserved.
+
+Redistribution and use in source and binary forms, with or without
+modification, are permitted provided that the following conditions
+are met:
+1. Redistributions of source code must retain the above copyright
+notice, this list of conditions and the following disclaimer.
+2. Redistributions in binary form must reproduce the above copyright
+notice, this list of conditions and the following disclaimer in the
+documentation and/or other materials provided with the distribution.
+
+THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
+ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
+FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+SUCH DAMAGE.
diff --git a/COPYING b/COPYING
index 9043404a83..a1f19ff99d 100644
--- a/COPYING
+++ b/COPYING
@@ -1,6 +1,6 @@
Ruby is copyrighted free software by Yukihiro Matsumoto <matz@netlab.jp>.
-You can redistribute it and/or modify it under either the terms of the GPL
-version 2 (see the file GPL), or the conditions below:
+You can redistribute it and/or modify it under either the terms of the
+2-clause BSDL (see the file BSDL), or the conditions below:
1. You may make and give away verbatim copies of the source form of the
software without restriction, provided that you duplicate all of the
diff --git a/COPYING.ja b/COPYING.ja
index aa2a163848..5b5b91c149 100644
--- a/COPYING.ja
+++ b/COPYING.ja
@@ -1,6 +1,6 @@
-$BK\%W%m%0%i%`$O%U%j!<%=%U%H%&%'%"$G$9!%(BGPL (the GNU General
-Public License)$B%P!<%8%g%s(B2$B$^$?$O0J2<$K<($9>r7o$GK\%W%m%0%i%`(B
-$B$r:FG[I[$G$-$^$9!%(BGPL$B$K$D$$$F$O(BGPL$B%U%!%$%k$r;2>H$7$F2<$5$$!%(B
+$BK\%W%m%0%i%`$O%U%j!<%=%U%H%&%'%"$G$9!%(B2-clause BSDL
+$B$^$?$O0J2<$K<($9>r7o$GK\%W%m%0%i%`$r:FG[I[$G$-$^$9(B
+2-clause BSDL$B$K$D$$$F$O(BBSDL$B%U%!%$%k$r;2>H$7$F2<$5$$!%(B
1. $BJ#@=$O@)8B$J$/<+M3$G$9!%(B
diff --git a/ChangeLog b/ChangeLog
index 6a4b3814ed..fb7448fcf8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,65664 +1,15419 @@
-Wed May 20 17:58:52 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Fri Apr 20 12:30:06 2012 Eric Hodel <drbrain@segment7.net>
- * enum.c (zip_ary): should use long.
-
-Wed May 20 06:25:29 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * encoding.c (rb_enc_fast_mbclen): faster mbclen for strings known
- to be valid.
-
- * string.c (enc_strlen): coderange specified version of
- rb_enc_strlen(). use rb_enc_fast_mbclen() if coderange is 7bit
- or valid.
-
- * string.c (str_gsub): use rb_enc_fast_mbclen().
-
- * string.c (rb_str_reverse, rb_str_split_m, rb_str_each_char,
- scan_once): ditto.
-
-Wed May 20 06:20:05 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/tempfile.rb (Tempfile#unlink): close first for Windows. a
- patch from Florian Frank. [ruby-core:23505]
-
-Wed May 20 00:13:38 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * encoding.c (rb_enc_codepoint_len): combine rb_enc_codepoint()
- and rb_enc_codelen() in one function to reduce calls.
-
- * encoding.c (rb_enc_codepoint): compatibility function.
-
- * sprintf.c (rb_str_format): use rb_enc_codepoint_len().
-
- * string.c (rb_str_inspect, rb_str_upcase_bang,
- rb_str_downcase_bang, rb_str_capitalize_bang,
- rb_str_swapcase_bang, trnext, tr_trans, rb_str_delete_bang,
- rb_str_squeeze_bang, rb_str_count, rb_str_split_m,
- rb_str_each_line, rb_str_each_codepoint, rb_str_lstrip_bang,
- sym_printable): ditto.
-
- * transcode.c (make_econv_exception): use rb_enc_mbc_to_codepoint()
-
-Wed May 20 00:05:52 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * vm_method.c (rb_attr): should preserve encoding info.
- [ruby-dev:38498]
-
-Tue May 19 22:54:35 2009 Yusuke Endoh <mame@tsg.ne.jp>
-
- * time.c (time_minus): always return a Float. [ruby-dev:38446]
-
- * time.c (time_to_r): new method. [ruby-dev:38461]
-
-Tue May 19 13:59:35 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * class.c (clone_method): add cast to remove warning from
- rb_gc_write_barrier().
-
-Tue May 19 13:54:15 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * struct.c (struct_ivar_get): new function to avoid repeated
- rb_intern() calls.
-
- * struct.c (rb_struct_iv_get): use struct_ivar_get()
-
- * struct.c (num_members): ditto.
-
- * struct.c (rb_struct_s_members): ditto.
-
- * class.c (rb_singleton_class): cache symbol to reduce calls to
- rb_intern().
-
-Tue May 19 07:52:05 2009 Tanaka Akira <akr@fsij.org>
-
- * test/test_time.rb: make tests timezone independent.
- reported by zunda. [ruby-dev:38492]
-
-Mon May 18 21:40:11 2009 Tanaka Akira <akr@fsij.org>
-
- * lib/pathname.rb (Pathname#sub): suppress a warning. [ruby-dev:38488]
-
-Sun May 17 23:23:14 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/mkmf.rb (SRC_EXT): should be flat.
- http://twitter.com/_tad_/status/1825862632
-
-Sun May 17 23:05:05 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ruby.c (ruby_init_loadpath_safe): VARIABLE_LIBPATH is always
- defined, see its value instead.
-
-Sun May 17 18:59:45 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * node.h (nd_line): NODE_LMASK is not needed.
-
- * node.h (NOEX_SAFE): made int.
-
-Sun May 17 14:23:08 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * compile.c (rb_parse_in_eval): returns true in true eval, not in
- main. [ruby-dev:38382]
-
- * parse.y (program): inherits dvars in eval or main.
-
-Sun May 17 14:02:56 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ruby.c (ruby_script): sets also VM toplevel program name.
-
- * ruby.c (process_options): no longer needs additional frame.
-
- * vm.c (rb_vm_get_sourceline): should not access out of bound.
-
-Sun May 17 09:47:48 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ruby.c (cmdline_options_init): initialize encodings.
-
- * ruby.c (add_modules, require_libraries, process_sflag):
-
- * ruby.c (process_sflag): not process twice.
-
- * ruby.c (moreswitches): get rid of possible overflow.
-
-Sun May 17 09:31:05 2009 Masaki Suketa <masaki.suketa@nifty.ne.jp>
-
- * ext/win32ole/win32ole.c (foletypelib_name): should return
- encoded name corresponding to WIN32OLE.codepage.
-
-Sun May 17 09:02:56 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ruby.c (ruby_init_loadpath_safe): support for cygwin 1.7. see
- [ruby-core:23241].
- gets rid of possible buffer overflow with realpath().
-
- * ruby.c (set_arg0): get rids of overrun.
-
-Sat May 16 18:38:32 2009 Kouhei Sutou <kou@cozmixng.org>
-
- * lib/rss/parser.rb: add nil check.
-
-Sat May 16 18:36:01 2009 Kouhei Sutou <kou@cozmixng.org>
-
- * test/rss/test_maker_atom_feed.rb: suppress warnings.
-
-Sat May 16 18:33:15 2009 Kouhei Sutou <kou@cozmixng.org>
-
- * NEWS: add RSS::Maker.supported?(version).
-
-Sat May 16 18:26:42 2009 Kouhei Sutou <kou@cozmixng.org>
-
- * lib/rss/parser.rb, test/test_parser_1.0.rb: fix foaf:Image
- element causes parse error even if ignore_unknown_element mode.
-
-Sat May 16 18:14:19 2009 Kouhei Sutou <kou@cozmixng.org>
-
- * lib/rss/maker.rb, lib/rss/maker/0.9.rb,
- test/test_maker_*.rb: add RSS::Maker.supported?
-
-Sat May 16 18:12:39 2009 Kouhei Sutou <kou@cozmixng.org>
-
- * lib/rss/content/*, lib/rss/dublincore/*: fix circular require.
- * test/test_maker_atom_feed.rb,
- test/test_maker_atom_entry.rb: suppress warnings.
-
-Sat May 16 18:07:17 2009 Kouhei Sutou <kou@cozmixng.org>
-
- * lib/rss/maker/feed.rb, test/test_maker_atom_feed.rb:
- remove needless codes.
-
-Sat May 16 18:05:07 2009 Kouhei Sutou <kou@cozmixng.org>
-
- * lib/rss/maker/entry.rb: fix a typo.
-
-Sat May 16 18:02:57 2009 Kouhei Sutou <kou@cozmixng.org>
-
- * lib/rss/maker/feed.rb, test/test_maker_atom_entry.rb,
- test/test_maker_atom_feed.rb: fix duplicated dc:date.
- Reported by Kazuhiro NISHIYAMA. Thanks!!! [ruby-list:46014]
-
-Sat May 16 18:02:16 2009 Kouhei Sutou <kou@cozmixng.org>
-
- * lib/rss/maker/base.rb, lib/rss/maker/1.0.rb, lib/rss/maker/feed.rb,
- test/rss/test_maker_1.0.rb, test/rss/test_maker_atom_feed.rb:
- RSS 1.0 and Atom feed maker treat maker.channel.language as
- maker.channel.dc_language.
-
-Sat May 16 17:57:39 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/dl/lib/dl/callback.rb (DL#remove_callback_internal): ignore
- unbound function. [ruby-dev:38474]
-
-Sat May 16 17:51:11 2009 Kouhei Sutou <kou@cozmixng.org>
-
- * sample/rss/rss_recent.rb, sample/rss/list_description.rb: use
- UTF-8.
-
-Sat May 16 17:47:55 2009 Kouhei Sutou <kou@cozmixng.org>
-
- * lib/rss/rss.rb, test/rss/test_version.rb (RSS::VERSION):
- 0.2.5 -> 0.2.6.
-
-Sat May 16 17:26:04 2009 Narihiro Nakamura <authorNari@gmail.com>
-
- * iseq.c (rb_iseq_clone): use longlife object and insert write barrier.
-
- * vm_insnhelper.c (vm_cref_push): ditto.
-
- * vm_insnhelper.h (COPY_CREF): insert write barrier.
-
-Sat May 16 13:49:24 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * variable.c (rb_autoload_load): gets rid of false warning.
- [ruby-core:23466]
-
-Sat May 16 10:59:54 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * sample/drb/dhasenc.rb: add magic comment for encoding.
-
- * sample/mine.rb: ditto.
-
- * ext/tk/sample/tcltklib/sample1.rb: ditto.
-
-Sat May 16 09:49:05 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * parse.y (magic_comment_encoding): ignores unused emacs-style
- encoding comment, as like Vim styles. [ruby-core:23470]
-
-Sat May 16 09:30:14 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * defs/keywords (reserved_word): made inline function static.
- [ruby-core:23210]
-
- * parse.y (rb_reserved_word): ordinary function for ripper.
-
-Sat May 16 09:19:16 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * parse.y (magic_comment_encoding): use rb_compile_warning() to
- show the currently parsing file name. [ruby-core:23469]
-
-Sat May 16 09:03:29 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * configure.in (ruby_version): now version.h includes
- include/ruby/version.h, so need to tell to cpp to see
- $(srcdir)/include. [ruby-core:23468]
-
-Fri May 15 17:35:33 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * array.c (rb_ary_shift, rb_ary_shift_m): clears unused elements.
- [ruby-dev:38448]
-
-Fri May 15 15:15:12 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * variable.c (rb_autoload_load): checks if iv_tbl is valid.
- [ruby-dev:38456]
-
-Fri May 15 11:17:48 2009 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * win32/setup.mak (-version-): now version.h includes
- include/ruby/version.h, so need to tell to cpp to check
- $(srcdir)/include.
- reported by KIMURA Koichi at http://www.kt.rim.or.jp/%7ekbk/zakkicho/09/zakkicho0905b.html#D20090514-6
-
-Thu May 14 16:13:32 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/etc/etc.c (etc_getpwuid): use rb_uid_t. [ruby-dev:38443]
-
- * ext/stringio/stringio.c (strio_ungetbyte): encoding should no
- be effective.
-
-Thu May 14 10:17:45 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * sample/test.rb (valid_syntax?): defaults to us-ascii.
-
-Wed May 13 22:34:31 2009 Narihiro Nakamura <authorNari@gmail.com>
-
- * gc.c: add longlife garbage collection. [ruby-dev:38423]
- (NORMAL_HEAPS_USED): new macro.
- (LONGLIFE_ALLOCATE_HEAPS_MIN): ditto.
- (add_longlife_heaps_slot): new function.
- (rb_newobj_from_longlife_heap): ditto.
- (rb_newobj_longlife): ditto.
- (rb_node_newnode_longlife): ditto.
- (rb_gc_write_barrier): ditto.
- (remembered_set_recycle): ditto.
- (rb_gc_mark_remembered_set): ditto.
- (clear_mark_longlife_heaps): ditto.
- (gc_sweep_for_longlife): ditto.
- (assign_heap_slot): new argumnent to longlife heaps slot.
- (add_freelist): ditto.
- (gc_sweep): avoid lonlife heap slot. set longlife_collection
- flag at add heap.
- (rb_gc_force_recycle): avoid mark object and remembered_set
- object.
- (garbage_collect): add longlife collection.
- (rb_gc_start): invoke longlife collection.
- (gc_profile_record_get): for longlife collction profile.
- (gc_profile_result): ditto.
-
- * include/ruby/intern.h (rb_gc_write_barrier): declared.
-
- * include/ruby/ruby.h (FL_REMEMBERED_SET): renamed from FL_RESERVED.
-
- * debug.c (FL_REMEMBERED_SET): ditto.
-
- * insns.def (setinlinecache): insert write barrier.
-
- * vm_insnhelper.c (vm_method_search): ditto.
-
- * set_relation (set_relation): use longlife object.
-
- * vm.c (vm_define_method): ditto.
-
- * vm_core.h (NEW_INLINE_CACHE_ENTRY): ditto.
-
- * vm_method.c (rb_add_method): ditto.
-
- * class.c (rb_add_method): ditto.
-
- * node.h (NEW_NODE_LONGLIFE): new macro.
- (rb_node_newnode_longlife): declared.
-
-Wed May 13 15:23:18 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * include/ruby/version.h: extracted the extensions interface and
- the never-changable info.
-
-Wed May 13 03:20:47 2009 Tanaka Akira <akr@fsij.org>
-
- * time.c (time_init_1): unused variable removed.
-
-Tue May 12 21:03:02 2009 Tanaka Akira <akr@fsij.org>
-
- * time.c: support fixed UTC offset. [ruby-dev:38326]
- (leap_year_v_p): new macro.
- (TIME_FIXOFF_P): new macro.
- (TIME_SET_FIXOFF): new macro.
- (time_init_0): renamed from time_init.
- (time_set_utc_offset): new function.
- (vtm_add_offset): new function.
- (utc_offset_arg): new function.
- (time_init_1): new function.
- (time_init): call time_init_0 or time_init_1 according argc.
- (validate_utc_offset): new function.
- (time_localtime_m): new function.
- (time_fixoff): new function.
- (time_getlocaltime): take optional UTC offset argument.
- (time_get_tm): support fixed UTC offset time.
- (Init_Time): make Time#{initialize,localtime,getlocal} varargs.
-
- * strftime.c (rb_strftime): vtm->zone can be NULL now.
-
-Tue May 12 18:23:40 2009 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * yarvtest: removed because it's outdated.
-
-Mon May 11 21:46:20 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * parse.y: add semicolons to some grammar rules not terminated
- with them. a patch from Dave B in [ruby-core:23422].
-
-Mon May 11 20:08:33 2009 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
-
- * io.c (Init_IO): add constant File::NOATIME. [ruby-core:23194]
-
-Mon May 11 13:08:30 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * mkconfig.rb (rubylibdir): use rubylibprefix. [ruby-dev:38426]
-
-Mon May 11 08:37:04 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * ext/bigdecimal/bigdecimal.c (BigDecimal_coerce): support
- coercing into Rational. [ruby-core:23415]
-
-Mon May 11 04:39:45 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/net/smtp.rb (Net::SMTP#check_auth_args): should not change
- number of methods for the sake of compatibility.
-
-Sun May 10 11:36:11 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/dl/cfunc.c (rb_dlcfunc_instance_p): new function to check if
- the argument is an instance of DL::CFunc.
-
- * ext/dl/cptr.c (rb_dlptr_initialize, rb_dlptr_s_malloc): checks
- if DL::CFunc. [ruby-dev:38403].
-
- * ext/dl/lib/dl/cparser.rb (DL::CParser#parse_signature): strips
- spaces. based on a patch from Takashi Tamura in [ruby-dev:38398].
-
- * ext/dl/lib/dl/value.rb (DL::ValueUtil#wrap_arg): block must be
- given if arg is not bound. [ruby-dev:38404]
-
- * ext/dl/cfunc.c (rb_dlcfunc_instance_p): new function to check if
- the argument is an instance of DL::CFunc.
-
-Sat May 9 19:57:00 2009 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
-
- * test/ruby/test_float.rb (TestFloat#test_sleep_with_Float): add a
- test. see [ruby-core:23282]
-
-Sat May 9 19:23:46 2009 Tadayoshi Funaba <tadf@dotrb.org>
-
- * lib/date.rb: use subsec instead of nsec.
-
-Sat May 9 12:19:49 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * hash.c: 3rd arguemnt of rb_hash_foreach() is VALUE.
-
- * hash.c (rb_any_hash, recursive_hash): use VALUE for hash.
-
-Sat May 9 11:14:50 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * vm_eval.c (rb_f_catch): gets rid of issue with gcc 4.4. a patch
- from Alexey Froloff in [ruby-core:23398]. [ruby-core:22924]
-
-Fri May 8 19:38:54 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/mkmf.rb (try_link0): removes waste dSYM directories lef
- when debug and universal-binary are enabled.
-
- * lib/mkmf.rb (check_sizeof): fixed wrong recuring result for
- intrinsic types.
-
-Fri May 8 10:14:08 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * Makefile.in, configure.in, win32/Makefile.sub (RUBY_BASE_NAME):
- program base name. [ruby-dev:38241]
-
- * configure.in (--with-soname): base name of shared library.
- [ruby-dev:38290]
-
-Fri May 8 10:07:02 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * array.c (rb_ary_flatten_bang): clears temporary array.
-
-Fri May 8 02:30:14 2009 Akinori MUSHA <knu@iDaemons.org>
-
- * lib/set.rb (SortedSet#add): Do not require each newly added
- element to be Comparable but to respond to <=>. [ruby-dev:38371]
-
-Thu May 7 21:42:51 2009 Yusuke Endoh <mame@tsg.ne.jp>
-
- * test/ruby/test_rubyoptions.rb (test_indentation_check): add a test
- for indentation check. [ruby-dev:38382]
-
-Thu May 7 16:40:09 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * array.c (rb_ary_flatten_bang): returns nil if nothing changed.
- a patch from Marc-Andre Lafortune in [ruby-core:23382].
-
-Thu May 7 14:26:14 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * array.c (rb_ary_sample): negative sample number is invalid.
- [ruby-core:23374]
-
-Thu May 7 14:16:24 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * string.c, include/ruby/encoding.h: fixed types.
-
- * include/ruby/encoding.h (rb_enc_nth): long is used for index.
-
-Thu May 7 14:01:55 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * range.c (r_le): fixed types.
-
- * range.c (range_eql): fixed rdoc.
-
-Thu May 7 13:10:25 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * io.c (pipe_open): should be rb_pid_t.
-
-Wed May 6 16:50:20 2009 Tanaka Akira <akr@fsij.org>
-
- * math.c (math_gamma): use a table for positive small integers.
-
-Wed May 6 09:27:04 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * README.ja: code for THINK_C does not exist already. [Bug #1435]
-
-Wed May 6 05:33:59 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * configure.in (CFLAGS, CXXFLAGS): strips extra spaces.
-
-Tue May 5 11:29:07 2009 NARUSE, Yui <naruse@ruby-lang.org>
-
- * tool/ifchange: Fix: arguments which begin with minus sign may
- parsed as options. Because of older systems, don't use --
- but use parentheses.
-
-Tue May 5 10:42:28 2009 NARUSE, Yui <naruse@ruby-lang.org>
-
- * ext/json: Update to JSON 1.1.4.
-
-Tue May 5 07:22:37 2009 NARUSE, Yui <naruse@ruby-lang.org>
-
- * transcode.c: NOMAP is now multibyte direct map.
-
- * transcode.c: remove ASIS.
-
- * transcode_data.h: ditto.
-
- * tool/transcode-tb (ActionMap#generate_info): remove :asis.
-
- * tool/transcode-tb (ActionMap#generate_info): add :nomap0.
-
- * enc/trans/utf8_mac.trans: replace :asis by :nomap0.
-
-Sat May 2 22:53:02 2009 Akinori MUSHA <knu@iDaemons.org>
-
- * lib/set.rb (SortedSet): Fix document. [Bug #1429]
-
-Sat May 2 10:34:29 2009 NARUSE, Yui <naruse@ruby-lang.org>
-
- * enc/trans/utf8_mac-tbl.rb: don't use Unicode escape.
-
- * enc/trans/utf8_mac.trans: follow above.
-
-Sat May 2 09:19:40 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * array.c (Init_Array): made #to_s an alias to #inspect to reduce
- the result of recursive array. a patch from ujihisa at
- [ruby-dev:38362]
-
-Fri May 1 16:50:05 2009 Akinori MUSHA <knu@iDaemons.org>
-
- * lib/set.rb (Set#merge): Only directly use the passed objects
- @hash instance variable when self and the passed object are
- instances of the same class. [Bug #118]
-
-Fri May 1 16:44:11 2009 Akinori MUSHA <knu@iDaemons.org>
-
- * lib/set.rb (SortedSet#add): Do not let an uncomparable object
- in. [Bug #118]
-
-Fri May 1 13:18:01 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * eval_intern.h (_longjmp): never return. see [ruby-core:23241]
-
-Fri May 1 01:31:19 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/extmk.rb: use RbConfig instead of Config.
-
- * instruby.rb: ditto.
-
- * lib/rubygems.rb: ditto.
-
- * test/rubygems/test_config.rb: ditto.
-
-Thu Apr 30 21:23:30 2009 Tanaka Akira <akr@fsij.org>
-
- * runruby.rb: use RbConfig::CONFIG instead of Config::CONFIG.
-
- * spec/default.mspec: ditto.
-
- * yarvtest/yarvtest.rb: ditto.
-
- * instruby.rb: ditto.
-
- * benchmark/report.rb: ditto.
-
- * benchmark/runc.rb: ditto.
-
- * tool/eval.rb: ditto.
-
- * test/rubygems/test_gem.rb: ditto.
-
- * test/rubygems/test_config.rb: ditto.
-
- * test/rubygems/test_gem_platform.rb: ditto.
-
-Thu Apr 30 18:18:13 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/net/http.rb: documentation typo fixed. [ruby-core:23335]
-
-Thu Apr 30 15:27:49 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * enc/trans/utf8_mac.trans: get rid of a 1.9 feature for cross
- compile.
-
-Thu Apr 30 11:35:30 2009 NARUSE, Yui <naruse@ruby-lang.org>
-
- * encoding.c (rb_filesystem_encoding): Change filesystem_encoding of
- Mac OS X to UTF-8.
-
-Wed Apr 29 21:23:40 2009 NARUSE, Yui <naruse@ruby-lang.org>
-
- * enc/iso_2022_jp.h: add CP50221.
-
- * enc/trans/iso2022.trans: add converter for CP50221.
-
-Wed Apr 29 15:22:26 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * file.c (rb_file_join): recursive array has no meaning as path
- name. [ruby-core:23329]
-
-Tue Apr 28 19:09:45 2009 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
-
- * test/test_timeout.rb (TestTimeout#test_timeout): add a test.
-
-Tue Apr 28 07:13:48 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/pp.rb (Struct#pretty_print): coerce to a string since
- anonymous class has name no longer. [ruby-dev:38349]
-
-Mon Apr 27 16:47:12 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * configure.in (ruby_version): uses sed instead of grep if the
- result is need, to get rid of GREP_OPTIONS. [ruby-dev:38336]
-
-Mon Apr 27 01:25:11 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/readline/readline.c (readline_getc): use rl_getc_function if
- possible, to get rid of hang up at EOF without a newline.
-
-Sun Apr 26 23:19:32 2009 NARUSE, Yui <naruse@ruby-lang.org>
-
- * enc/trans/utf8_mac.trans: Add converter for UTF8-MAC.
-
- * enc/trans/utf8_mac-tbl.rb: ditto.
-
- * test/ruby/test_econv.rb: tests for above.
-
-Sun Apr 26 22:17:02 2009 NARUSE, Yui <naruse@ruby-lang.org>
-
- * tool/transcode-tb (ActionMap#each_firstbyte):
- if :asis collides other mappings, use another.
-
- * tool/transcode-tb (ActionMap#generate_info):
- add :asis for ASIS.
-
-Sun Apr 26 21:59:43 2009 NARUSE, Yui <naruse@ruby-lang.org>
-
- * transcode.c (ASIS): added for multi byte direct map.
-
- * transcode.c (transcode_restartable0): ditto.
-
-Sun Apr 26 20:33:12 2009 NARUSE, Yui <naruse@ruby-lang.org>
-
- * tool/transcode-tb (ActionMap#generate_node):
- Use ActionMap#gennode instead of generate_node
- because of initialization.
-
-Sun Apr 26 20:21:39 2009 NARUSE, Yui <naruse@ruby-lang.org>
-
- * .gitignore: added.
-
-Sun Apr 26 20:17:24 2009 Tanaka Akira <akr@fsij.org>
-
- * lib/rake.rb: use RbConfig::CONFIG instead of Config::CONFIG.
-
- * lib/rbconfig/datadir.rb: ditto.
-
-Sun Apr 26 19:30:29 2009 Tanaka Akira <akr@fsij.org>
-
- * time.c (time_arg): unused variable removed.
-
-Sun Apr 26 18:35:32 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * io.c (io_reopen): keeps pathv for prep_stdio. [ruby-dev:38131]
-
-Sun Apr 26 15:13:09 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/optparse.rb (OptionParser#parse_in_order): do not make an
- option from non-option argument. [ruby-dev:38333]
-
-Sat Apr 25 19:11:13 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * configure.in (ac_cv_func_daemon): use daemon(3) only on *BSD.
-
- * process.c (proc_daemon): double fork to ensure not having ctty.
- [ruby-core:23305]
-
-Sat Apr 25 16:19:48 2009 Tanaka Akira <akr@fsij.org>
-
- * time.c (month_arg): extracted from time_arg.
- (validate_vtm): ditto.
-
-Sat Apr 25 16:03:21 2009 Tanaka Akira <akr@fsij.org>
-
- * time.c (TIME_COPY_GMT): new macro.
- (time_s_at): use TIME_COPY_GMT.
- (time_succ): ditto.
-
-Sat Apr 25 15:54:04 2009 Tanaka Akira <akr@fsij.org>
-
- * time.c (time_mload): use TIME_SET_UTC.
-
-Sat Apr 25 15:47:54 2009 Tanaka Akira <akr@fsij.org>
-
- * time.c (time_get_tm): take time_object instead of gmt.
-
-Sat Apr 25 15:39:44 2009 Tanaka Akira <akr@fsij.org>
-
- * time.c (time_succ): refactored to avoid gmt variable.
- (strftimev): use TIME_UTC_P.
- (time_strftime): ditto.
-
-Sat Apr 25 15:21:33 2009 Tanaka Akira <akr@fsij.org>
-
- * time.c (TIME_UTC_P): new macro.
- (TIME_SET_UTC): ditto.
- (TIME_LOCALTIME_P): ditto.
- (TIME_SET_LOCALTIME): ditto.
- (time_utc_p): use the above macro.
- (time_localtime): ditto.
- (time_localtime): ditto.
- (time_gmtime): ditto.
- (time_to_s): ditto.
- (time_add): ditto.
- (time_sec): ditto.
- (time_min): ditto.
- (time_hour): ditto.
- (time_mday): ditto.
- (time_mon): ditto.
- (time_year): ditto.
- (time_wday): ditto.
- (wday_p): ditto.
- (time_yday): ditto.
- (time_isdst): ditto.
- (time_zone): ditto.
- (time_utc_offset): ditto.
- (time_to_a): ditto.
- (strftimev): ditto.
- (time_strftime): ditto.
- (time_mdump): ditto.
-
-Thu Apr 23 01:30:37 2009 Akinori MUSHA <knu@iDaemons.org>
-
- * ext/zlib/zlib.c (Zlib::GzipFile#path): New method.
-
-Wed Apr 22 20:25:24 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * time.c (time_timespec): check out-of-range. [ruby-core:23282]
- [Bug #1396]
-
-Wed Apr 22 19:33:13 2009 Tanaka Akira <akr@fsij.org>
-
- * lib/time.rb (Time.parse): use year completion in Date._parse.
-
-Wed Apr 22 11:12:15 2009 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * time.c (GMTIME, LOCALTIME): should set result if not have *_r().
-
- * time.c (localtime_with_gmtoff): now always needed tmbuf.
-
-Wed Apr 22 10:38:47 2009 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * dir.c (glob_helper): C99(gcc)-ism.
-
- * time.c (find_time_t): GUESS macro needs the variable named ``result''
- always.
-
-Wed Apr 22 09:27:31 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * time.c (localtime_with_gmtoff): fixed cross function jump.
-
-Wed Apr 22 03:06:56 2009 Tanaka Akira <akr@fsij.org>
-
- * lib/time.rb (Time#rfc2822): pad leading zeros for year.
- (Time#httpdate): ditto.
- (Time#xmlschema): ditto.
-
-Wed Apr 22 02:10:48 2009 Tanaka Akira <akr@fsij.org>
-
- * lib/time.rb (Time#xmlschema): use subsec instead of nsec.
-
-Wed Apr 22 01:27:38 2009 Tanaka Akira <akr@fsij.org>
-
- * time.c (time_arg): use the year argument as-is. [ruby-dev:38194]
-
- * lib/time.rb (Time.parse): interpret small year 0..99 as 1950..2049.
-
-Wed Apr 22 00:32:16 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * time.c (find_time_t): constified.
-
-Wed Apr 22 00:11:19 2009 Tanaka Akira <akr@fsij.org>
-
- * time.c (leap_year_v_p): removed.
-
-Tue Apr 21 23:52:45 2009 Tanaka Akira <akr@fsij.org>
-
- * time.c: remove time_t restriction from Time class.
-
- * timev.h: new file to define struct vtm.
-
- * strftime.c: format struct vtm instead of struct tm.
-
- * ext/syck/rubyext.c (mktime_do): don't use time_t;
-
- [ruby-dev:38191]
-
-Tue Apr 21 09:25:41 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * dir.c (dir_path, dir_each, glob_helper): use readdir_r() if
- available.
-
-Tue Apr 21 09:20:21 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/mkmf.rb (init_mkmf): needs default library path even if
- cross compiling.
-
-Tue Apr 21 07:07:45 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * array.c (rb_ary_push): bypass rb_ary_store().
-
-Tue Apr 21 01:25:16 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * bignum.c (bigsub_int): subtraction without making internal
- bignum values.
-
- * bignum.c (bigadd_int): ditto for addition.
-
- * bignum.c (bigtrunc): declare inline.
-
- * bignum.c (rb_quad_pack): fix condition.
-
-Tue Apr 21 01:13:42 2009 Alexander Zavorine <alexandre.zavorine@nokia.com>
-
- * symbian/setup (config.h): added TIMET2NUM and NUM2TIMET to match the change in time.c
-
-Mon Apr 20 20:29:04 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * string.c (rb_str_split_m): faster processing on 7bit strings.
-
- * string.c (ascii_isspace): faster isspace() for 7bit strings.
-
-Sun Apr 19 14:43:18 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * eval.c (ruby_cleanup): the order of local variables on stack is
- undefined. should use outermost VALUE for ruby_init_stack.
-
- * gc.c (ruby_get_stack_grow_direction, Init_stack): allows volatile
- pointer.
-
- * thread_*.c (ruby_init_stack): ditto.
-
-Sun Apr 19 13:17:25 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * gem_prelude.rb (Gem::QuickLoader#push_gem_version_on_load_path):
- check for requirement if the gem is installed. a patch from
- Kyosuke MOROHASHI at [ruby-dev:38020].
-
-Sun Apr 19 01:39:17 2009 Tanaka Akira <akr@fsij.org>
-
- * process.c (proc_seteuid_m): defined to use rb_f_notimplement if not
- implemented.
- (proc_setegid_m): ditto.
-
-Sun Apr 19 01:03:56 2009 Tanaka Akira <akr@fsij.org>
-
- * process.c (proc_setuid): use rb_f_notimplement if not implemented.
- (proc_setgid): ditto.
-
-Sat Apr 18 23:07:18 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/readline/readline.c: use rb_f_notimplement for methods not
- implemented.
-
- * ext/openssl/ossl_engine.c: ditto.
-
- * ext/openssl/ossl_config.c: ditto.
-
- * ext/openssl/ossl_cipher.c: ditto.
-
- * ext/openssl/ossl_pkcs5.c: ditto.
-
- * ext/openssl/ossl_x509ext.c: ditto.
-
- * ext/socket/socket.c: ditto.
-
- * ext/socket/basicsocket.c: ditto.
-
- * ext/socket/ancdata.c: ditto.
-
- * ext/socket/unixsocket.c: ditto.
-
- * ext/iconv/iconv.c: ditto.
-
-Sat Apr 18 21:07:34 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/curses/curses.c: use rb_f_notimplement for methods not
- implemented.
-
-Fri Apr 17 01:51:17 2009 Tanaka Akira <akr@fsij.org>
-
- * node.h (rb_notimplement_body_p): declared.
-
- * vm_method.c (Init_eval_method): suppress a warning.
-
- * io.c (rb_io_fsync): use rb_f_notimplement if not implemented.
- (rb_io_close_on_exec_p): ditto.
- (rb_io_set_close_on_exec): ditto.
- (rb_io_fcntl): ditto.
- (rb_f_syscall): ditto.
-
- * dir.c (dir_tell): ditto.
- (dir_seek): ditto.
- (dir_s_chroot): ditto.
-
- * process.c (proc_getpgrp): ditto.
- (proc_setpgrp): ditto.
- (proc_getpgid): ditto.
- (proc_setpgid): ditto.
- (proc_setsid): ditto.
- (proc_getpriority): ditto.
- (proc_setpriority): ditto.
- (proc_getrlimit): ditto.
- (proc_setrlimit): ditto.
- (p_sys_setuid): ditto.
- (p_sys_setruid): ditto.
- (p_sys_seteuid): ditto.
- (p_sys_setreuid): ditto.
- (p_sys_setresuid): ditto.
- (p_sys_setgid): ditto.
- (p_sys_setrgid): ditto.
- (p_sys_setegid): ditto.
- (p_sys_setregid): ditto.
- (p_sys_setreuid): ditto.
- (p_sys_setresgid): ditto.
- (p_sys_issetugid): ditto.
- (proc_getgroups): ditto.
- (proc_setgroups): ditto.
- (proc_initgroups): ditto.
- (proc_daemon): ditto.
- (rb_proc_times): ditto.
-
- * file.c (rb_file_s_lchown): ditto.
- (rb_file_s_link): ditto.
- (rb_file_s_symlink): ditto.
- (rb_file_s_readlink): ditto.
- (rb_file_s_truncate): ditto.
- (rb_file_truncate): ditto.
-
-Fri Apr 17 00:53:47 2009 Yusuke Endoh <mame@tsg.ne.jp>
-
- * lib/cgi/core.rb (read_multipart): When path is not defined,
- define local_path as a method always returning nil instead of
- aliasing. This is because StringIO#path no longer exists.
-
-Fri Apr 17 00:45:09 2009 Yusuke Endoh <mame@tsg.ne.jp>
-
- * dir.c (bracket): fix escape handling for range character in bracket
- of fnmatch pattern. e.g., '[a\-c]' should not match 'b'.
-
-Thu Apr 16 23:09:03 2009 Tanaka Akira <akr@fsij.org>
-
- * class.c (rb_define_method_id): use rb_define_notimplement_method_id
- if rb_f_notimplement is given.
- (rb_define_protected_method): ditto.
- (rb_define_private_method): ditto.
- (rb_define_method): use rb_define_method_id.
-
- * include/ruby/intern.h (rb_f_notimplement): declared.
- (rb_define_notimplement_method_id): declared.
-
- * proc.c (method_inspect): show not-implemented.
-
- * vm_method.c (notimplement_body): new variable.
- (rb_notimplement_body_p): new function.
- (rb_method_boundp): return false if not implemented.
- (rb_f_notimplement): new function.
- (rb_define_notimplement_method_id): new function.
-
- * process.c (rb_f_fork): use rb_f_notimplement if not implemented.
-
- * file.c (rb_file_s_lchmod): use rb_f_notimplement if not implemented.
-
-Wed Apr 15 20:24:49 2009 Yusuke Endoh <mame@tsg.ne.jp>
-
- * array.c (rb_ary_flatten): flatten(0) works as Array#dup.
- [ruby-core:23168]
-
- * test/ruby/test_array.rb: add a test for above.
-
-Wed Apr 15 11:53:35 2009 NARUSE, Yui <naruse@ruby-lang.org>
-
- * dir.c (fnmatch_helper): use rb_enc_precise_mbclen and
- fail if bytes are invalid. [ruby-dev:38307]
-
-Tue Apr 14 18:11:26 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * dir.c (bracket): if same in bytes, path is matching.
- [ruby-dev:38305]
-
-Mon Apr 13 17:21:40 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * sprintf.c (rb_str_format): scan coderange incrementally.
-
-Mon Apr 13 11:35:55 2009 NARUSE, Yui <naruse@ruby-lang.org>
-
- * sprintf.c (rb_str_format): optimize previous commit.
- [ruby-list:45954]
-
-Mon Apr 13 10:58:54 2009 NARUSE, Yui <naruse@ruby-lang.org>
-
- * sprintf.c (rb_str_format): check encoding compatibility only on
- real parts.
-
-Sun Apr 12 19:54:56 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * dir.c (bracket, fnmatch_helper): compare bytewise first, to get
- rid of invalid byte sequence. [ruby-dev:38303]
-
-Sat Apr 11 08:45:57 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * configure.in (Makefile): phony ruby target needs empty command.
-
-Fri Apr 10 11:32:14 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * common.mk (up): updates timestamp file.
-
-Fri Apr 10 04:54:01 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * configure.in (Makefile): info-program needs common.mk.
-
-Fri Apr 10 03:46:44 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * configure.in (RUBY_INSTALL_NAME): use --program-transform-name.
-
- * instruby.rb, mkconfig.rb: deal with --program-transform-name
- better. now supports s, y commands and single addressing.
-
-Thu Apr 9 23:59:11 2009 Tanaka Akira <akr@fsij.org>
-
- * configure.in: don't override the rule for ruby.
-
-Wed Apr 8 21:58:12 2009 Yusuke Endoh <mame@tsg.ne.jp>
-
- * string.c (rb_str_dump): buffer length plus one byte for null
- terminator. [ruby-dev:38294]
-
- * test/ruby/test_m17n.rb (test_str_dump): add a test for above.
-
-Wed Apr 8 20:08:16 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * string.c (rb_str_rstrip_bang): should not sign-expand non-ascii.
- [ruby-core:23158]
-
-Wed Apr 8 17:29:29 2009 NARUSE, Yui <naruse@ruby-lang.org>
-
- * string.c (rb_str_chop_bang): reset coderange. [ruby-core:23155]
-
-Wed Apr 8 14:00:04 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/mkmf.rb (what_type?): fixed typo, and refined for member of
- aggregation types.
-
- * lib/mkmf.rb (Logging.postpone): copy postponed output always.
-
-Wed Apr 8 09:45:58 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * configure.in (LIBRUBY_SO): removed redundant additional version
- numbers.
-
-Tue Apr 7 13:35:22 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * common.mk (info): shows configured names.
-
- * configure.in (Makefile): works even if RUBY_INSTALL_NAME
- contains macro.
-
- * configure.in (LIBRUBY_DLDFLAGS): compatibility version is
- ruby_version.
-
- * configure.in (RUBY_REPLACE_TYPE): defines type modifier prefix
- for printf.
-
-Tue Apr 7 02:27:49 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * configure.in (RUBY_DEFINT): should pass includes to
- AC_CHECK_SIZEOF and RUBY_CHECK_SIZEOF.
-
- * configure.in (CFLAGS, CXXFLAGS): need ARCH_FLAG for universal
- binary.
-
-Tue Apr 7 01:08:21 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * numeric.c (flo_to_s): reduce fragments if no precision lost.
- c.f. [ruby-core:23075]
-
-Mon Apr 6 23:16:08 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * configure.in (CFLAGS, CXXFLAGS): override with $cflags and
- $cxxflags if not given. [ruby-core:23130]
-
-Mon Apr 6 19:26:18 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * file.c (utime_failed): refined the error message for EINVAL on
- DOSISH platforms, where it may fail depending on filesystems.
- see [ruby-dev:38277].
-
-Mon Apr 6 16:38:50 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * file.c (sys_fail2, rb_file_s_readlink, BUFCHECK, rmext),
- (rb_file_s_basename): get rid of overflow.
-
-Mon Apr 6 15:11:56 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * numeric.c (int_chr): checks overflow.
-
-Mon Apr 6 10:49:47 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * test/stringio/test_stringio.rb (test_path): StringIO#path is no
- longer defined. [ruby-dev:38254]
-
-Mon Apr 6 10:47:13 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/stringio/stringio.c (strio_path): removed. [ruby-dev:38254]
-
-Sun Apr 5 18:02:54 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * include/ruby/intern.h (rb_fd_resize): does nothing on Win32.
-
-Sat Apr 4 17:05:15 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * include/ruby/intern.h (RB_NUM_COERCE_FUNCS_NEED_OPID): macro to
- check compatibility. [ruby-dev:38162]
-
-Sat Apr 4 07:38:52 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * mkconfig.rb (sitearch): default to arch.
-
-Fri Apr 3 14:02:42 2009 Akinori MUSHA <knu@iDaemons.org>
-
- * lib/irb/completion.rb (IRB::InputCompletor::Operators): Add
- overloadable negative operators.
-
- * lib/irb/ruby-lex.rb (RubyLex#lex_init): Support overloadable
- negative operators.
-
- * lib/irb/ruby-lex.rb (RubyLex#identify_identifier): Minus signs
- need to be escaped in regexp character class.
-
- * misc/ruby-mode.el (ruby-font-lock-keywords, ruby-parse-partial):
- Support overloadable negative operators.
-
-Fri Apr 3 12:45:55 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/extmk.rb: quotes arguments with spaces always.
-
-Thu Apr 2 14:50:06 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/getoptlong.rb: remove unused rdoc/usage from example.
- [ruby-core:23098]
-
-Thu Apr 2 07:42:27 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * win32/Makefile.sub (config.h): updated.
-
-Wed Apr 1 20:37:49 2009 Tanaka Akira <akr@fsij.org>
-
- * configure.in (rb_cv_fork_with_pthread): fail if the child process
- fail.
-
-Wed Apr 1 19:46:46 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/mkmf.rb (create_makefile): support for parallel make. a
- patch from Takuto Matsuu at [ruby-dev:38220].
-
-Wed Apr 1 19:39:25 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * configure.in (LIBRUBY_LDSHARED): use $(CC) instead of cc.
- a patch from Wataru Kimura at [ruby-dev:38225].
-
-Wed Apr 1 18:53:51 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * vm_dump.c (rb_vm_bugreport): should not #include inside a
- function, since headers may have declarations.
- c.f. [ruby-core:23095]
-
-Wed Apr 1 18:44:53 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * mkconfig.rb: ignores version numbers in config.status. replaces
- all $$s in program_transform_name.
-
-Wed Apr 1 15:12:21 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * Makefile.in (.c.i): use CPP instead of CC, since gcc -E can'
- work with multiple -arch options.
-
-Wed Apr 1 13:46:20 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * thread.c (rb_thread_fd_select): new function to call select
- using rb_fdset_t.
-
- * io.c (select_internal): use rb_thread_fd_select instead of
- rb_thread_select. based on the patch from Kengo Matsuyama.
- [ruby-dev:38221]
-
-Wed Apr 1 13:16:19 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * process.c (rb_f_sleep): RDoc disambiguation. [ruby-talk:332632]
-
-Tue Mar 31 15:17:37 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * configure.in: fixed the help strings for the header and library
- dir switches, and updated to use AS_HELP_STRING. patches from
- Richard Brown, c.f. [ruby-core:23067].
-
-Mon Mar 31 08:18:57 2009 James Edward Gray II <jeg2@ruby-lang.org>
-
- * test/csv/test_interface.rb, test/csv/test_serialization.rb:
- Trying more fixes some failing tests on Windows.
-
-Mon Mar 30 19:04:25 2009 Tanaka Akira <akr@fsij.org>
-
- * .gdbinit (rp): show negative fixnum correctly.
-
-Mon Mar 30 12:12:46 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * vm_eval.c (eval_string_with_cref): replaces the message if
- frozen. [ruby-dev:38208]
-
-Mon Mar 30 01:00:20 2009 James Edward Gray II <jeg2@ruby-lang.org>
-
- * test/csv/test_interface.rb: Trying a fix for some failing tests
- on Windows.
-
-Sun Mar 29 08:59:26 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/pathname.rb (Pathname#relative_path_from): compares path
- components according to system default case-sensitiveness.
- [ruby-core:22829]
-
-Sat Mar 28 11:10:32 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * common.mk (ruby.imp): all symbols in static library need to be
- exported, so that encoding-extensions can be loaded. based on a
- patch from Yutaka Kanemoto <kinpoco AT gmail.com> a
- [ruby-talk:332282].
-
-Sat Mar 28 08:49:47 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * sprintf.c (rb_str_format): checks if named argument given twice.
-
- * sprintf.c (GETNAMEARG): remembers named arg is used, to get rid
- of too many arguments warning.
-
-Sat Mar 28 03:16:59 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/mkmf.rb (link_command, cc_command, cpp_command): should no
- override extout defined in extmk.rb.
-
-Fri Mar 27 12:56:44 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/mkmf.rb (what_type?): checks more restrictively, and
- supports universal binary.
-
-Fri Mar 27 01:33:37 2009 Tanaka Akira <akr@fsij.org>
-
- * time.c (time_cmp): negate the result of reverse comparison.
-
-Fri Mar 27 01:19:50 2009 Tanaka Akira <akr@fsij.org>
-
- * bignum.c (rb_cmpint): FIX2INT may fail on LP64 platforms.
-
-Thu Mar 26 12:22:06 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/yaml/rubytypes.rb (String#is_binary_data?): TAB would be
- usually considered to be included in text data.
-
- * lib/rdoc/parser.rb (RDoc::Parser.binary?): blksize may be nil
- and is irrelevant to whether a file is binary. copied from
- above since TAB and newlines would be usually considered to be
- included in text data.
-
-Thu Mar 26 11:33:13 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/rdoc/ri/paths.rb (RDoc::RI::Paths): considers
- --program-prefix and --program-suffix. reapplied r19923.
-
-Wed Mar 25 07:45:12 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * configure.in (target_alias): replaces cpu with universal too.
-
- * configure.in (target): replaces cpu with arch by --with-arch.
-
- * mkconfig.rb (TOPDIR): chops arch in config instead of
- RUBY_PLATFORM which varies on universal_binary.
-
- * mkconfig.rb (MAJOR, MINOR, TEENY): reads from version.h always.
-
-Tue Mar 24 19:23:44 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * configure.in (RUBY_CHECK_SIZEOF): need to include $4.
-
-Tue Mar 24 17:08:52 2009 Akinori MUSHA <knu@iDaemons.org>
-
- * io.c (rb_io_inspect): Cannot access fptr->fd if fptr is NULL.
- This fixes a coredump caused by: ruby -e "class X < IO; def
- initialize; end; end; p X.new.inspect"
-
-Mon Mar 23 22:01:00 2009 Tanaka Akira <akr@fsij.org>
-
- * time.c (time_timespec): use NUM2TIMET.
- (time_s_at): ditto.
-
-Mon Mar 23 21:52:26 2009 Akinori MUSHA <knu@iDaemons.org>
-
- * process.c (Init_process): Better patch for eliminating an
- "unused variable".
-
-Mon Mar 23 21:41:14 2009 Akinori MUSHA <knu@iDaemons.org>
-
- * ext/dbm/dbm.c (fdbm_initialize): Make the file variable
- volatile, because FilePathValue() currently does not protect the
- given variable from GC. (Probably it should)
-
- * ext/sdbm/init.c (fsdbm_initialize): Ditto.
-
-Mon Mar 23 19:22:14 2009 Akinori MUSHA <knu@iDaemons.org>
-
- * file.c (rb_file_s_lstat): Back out.
-
-Mon Mar 23 18:54:57 2009 Akinori MUSHA <knu@iDaemons.org>
-
- * file.c (rb_file_s_stat, rb_file_s_lstat): Remove repeated type
- checks.
-
-Mon Mar 23 14:57:48 2009 Narihiro Nakamura <authorNari@gmail.com>
-
- * gc.c (init_heap): set default to heap slots length
- if HEAP_OBJ_LIMIT is larger than HEAP_MIN_SLOTS. [Bug #1310]
- (set_heaps_increment): increment next_heaps_length if
- next_heaps_length and heaps_used are same.
-
-Mon Mar 23 14:32:23 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * win32/win32.c (rb_w32_spawn): use original command if not found.
-
-Mon Mar 23 06:51:16 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * enc/depend (link_so): replaces $(TARGET) with basename of the
- target. [ruby-talk:330286]
-
-Sun Mar 22 14:51:55 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * win32/win32.c (rb_w32_spawn, rb_w32_aspawn): use NULL as
- application name for batch files.
-
-Sat Mar 21 15:54:41 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/openssl/ossl_ssl.c (write_would_block): defined.
- (read_would_block): defined.
- (ossl_start_ssl): add nonblock argument.
- (ossl_ssl_connect): follow ossl_start_ssl change.
- (ossl_ssl_connect_nonblock): new method.
- (ossl_ssl_accept): follow ossl_start_ssl change.
- (ossl_ssl_accept_nonblock): new method.
- (ossl_ssl_read_internal): use write_would_block and
- read_would_block.
- (ossl_ssl_write_internal): ditto.
-
-Sat Mar 21 08:19:52 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * process.c (rb_exec): prints error message only on platforms
- neither close-on-exec nor spawnv is supported.
-
-Sat Mar 21 08:17:41 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * win32/win32.c (rb_w32_spawn, rb_w32_aspawn): omit program name
- if actual program path is found. [ruby-core:22960]
-
-Sat Mar 21 07:25:56 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * io.c (pipe_open): should pass program name even if multiple
- arguments are given. fix for TestProcess::test_argv0.
-
-Sat Mar 21 02:37:07 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/openssl/lib/openssl/buffering.rb
- (OpenSSL::Buffering#write_nonblock): new method.
-
- * ext/openssl/ossl_ssl.c (ossl_ssl_write_nonblock): new method.
- (ossl_ssl_write_internal): defined.
- (ossl_ssl_write): use ossl_ssl_write_internal.
-
-Fri Mar 20 18:25:25 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * win32/win32.c (errmap): added ERROR_MOD_NOT_FOUND.
-
-Fri Mar 20 09:22:59 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * configure.in (libprefix): must not append "lib" after $(libdir),
- when load_relative is not used on darwin. a patch from Kenta
- Murata at [ruby-dev:38182].
-
-Thu Mar 19 20:29:40 2009 Tanaka Akira <akr@fsij.org>
-
- * io.c (rb_mWaitReadable): defined.
- (rb_mWaitWritable): defined.
- (io_getpartial): extend IO::WaitReadable on EWOULDBLOCK and EAGAIN.
- (rb_io_write_nonblock): extend IO::WaitWritable on EWOULDBLOCK and
- EAGAIN.
-
- * error.c (make_errno_exc): extracted from rb_sys_fail.
- (rb_mod_sys_fail): new function.
-
- * include/ruby/ruby.h (rb_mod_sys_fail): declared.
- (rb_mWaitReadable): declared.
- (rb_mWaitWritable): declared.
-
- * ext/socket/init.c (rsock_s_recvfrom_nonblock): extend
- IO::WaitReadable on EWOULDBLOCK and EAGAIN.
- (rsock_s_accept_nonblock): extend IO::WaitReadable on EWOULDBLOCK,
- EAGAIN, ECONNABORTED and EPROTO.
-
- * ext/socket/socket.c (sock_connect_nonblock): extend IO::WaitWritable
- on EINPROGRESS.
-
- * ext/socket/ancdata.c (bsock_sendmsg_internal): extend
- IO::WaitWritable on EWOULDBLOCK and EAGAIN.
- (bsock_recvmsg_internal): extend IO::WaitReadable on EWOULDBLOCK and
- EAGAIN.
-
- * ext/openssl/ossl_ssl.c (ossl_ssl_read_internal): raise SSLError
- extended by IO::WaitReadable/IO::WaitWritable on
- SSL_ERROR_WANT_READ/SSL_ERROR_WANT_WRITE.
-
- * ext/openssl/ossl.c (ossl_make_error): extracted from ossl_raise.
- (ossl_exc_new): new function.
-
- * ext/openssl/ossl.h (ossl_exc_new): declared.
-
- * lib/net/protocol.rb (rbuf_fill): rescue IO::WaitReadable and
- IO::WaitWritable.
-
- [ruby-core:22539], [ruby-dev:38140]
-
-Thu Mar 19 18:49:49 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * configure.in (RUBY_CHECK_SIZEOF): allows qualified name.
-
- * configure.in (RUBY_REPLACE_TYPE): checks more strictly.
-
- * configure.in (struct stat.st_size, struct stat.st_blocks),
- (struct stat.st_ino): check for size.
-
- * lib/mkmf.rb (check_sizeof): allows qualified name.
-
- * file.c (rb_stat_ino, rb_stat_blocks): check by size.
-
-Wed Mar 18 16:59:48 2009 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
-
- * test/test_syslog.rb (TestSyslog#test_open): check
- param after block again. because detect not to call block.
-
-Wed Mar 18 16:54:04 2009 TAKANO Mitsuhiro (takano32) <tak@no32.tk>
-
- * ext/socket/ancdata.c: not use pktinfo.ipi_spec_dst if not defined
- * ext/socket/extconf.rb: define HAVE_IPI_SPEC_DST
-
-Wed Mar 18 16:38:11 2009 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
-
- * test/test_syslog.rb (TestSyslog#test_open): check
- block parameter in block. [ruby-dev:38180]
-
-Wed Mar 18 12:48:01 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * error.c (report_bug): rb_bug can be caused by extension
- libraries.
-
-Wed Mar 18 02:41:33 2009 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
-
- * lib/drb/drb.rb (open_server_inaddr_any): fixed multiple network
- families problem. a patch from Charl Matthee at [ruby-core:21033].
-
-Tue Mar 17 21:42:54 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * tool/make-snapshot (package): creates .revision.time and passes
- CHDIR to create prerequisite files.
-
-Tue Mar 17 18:00:55 2009 Akinori MUSHA <knu@iDaemons.org>
-
- * enumerator.c (Enumerator#{each_,}{with_index,with_object}): Fix
- a bug where any parameter but the first one is dropped even if
- multiple values are yielded with. [Bug #1198]
-
-Tue Mar 17 14:25:16 2009 Tanaka Akira <akr@fsij.org>
-
- * lib/pathname.rb (Pathname#sub): set $~ in block.binding.
- [ruby-dev:38173]
-
-Tue Mar 17 13:48:08 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * win32/Makefile.sub (config.h): added RUBY_COREDLL.
-
- * ext/dl/handle.c (rb_dlhandle_initialize): returns msvcrt if libc
- or RUBY_COREDLL is given. [ruby-core:22828]
-
-Tue Mar 17 10:29:22 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * dir.c, dln.c, parse.y, re.c, ruby.c, sprintf.c, strftime.c,
- string.c, util.c, variable.c: use strlcpy, memcpy and snprintf
- instead of strcpy, strncpy and sprintf.
-
-Mon Mar 16 17:15:16 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * test/dl/test_win32.rb (Win32API): enclosed by DL::TestWin32.
- [ruby-core:22827]
-
-Mon Mar 16 16:37:22 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/tk/tcltklib.c (eventloop_sleep, lib_eventloop_core),
- (lib_watchdog_core): tv_usec is not time_t.
-
-Mon Mar 16 12:30:07 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * common.mk (REVISION_H): keeps timestamp of revision.h.
- [ruby-core:22900]
-
- * tool/ifchange, win32/ifchange.bat: extended --timestamp option.
-
-Mon Mar 16 09:28:58 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * Makefile.in, common.mk, win32/Makefile.sub: added preprocessing rules.
-
-Sun Mar 15 12:34:17 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * test/minitest/test_mini_test.rb: fixed tests depending on the
- detail of floating point representation.
-
-Sun Mar 15 12:01:36 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/rubygems/installer.rb (Gem::Installer#shebang): fix for env
- shebang.
-
-Sun Mar 15 11:15:18 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * include/ruby/ruby.h ({RSTRING,RBIGNUM}_EMBED_LEN_MAX): made int.
-
- * include/ruby/ruby.h (OBJ_{TAINTED,UNTRUSTED,FROZEN}): return int.
-
- * include/ruby/encoding.h (ENC_CODERANGE): ditto.
-
-Sun Mar 15 11:11:44 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * string.c (rb_hash_uint, rb_hash_start, rb_hash_end): use VALUE
- rather than unsigned int.
-
-Sun Mar 15 11:00:14 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ruby.c (load_file_internal): stop the timer thread before exec.
-
-Sun Mar 15 09:17:26 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * common.mk (.y.c): use SRC_FILE which contains slashes instead of
- backslashes. [ruby-core:22891]
-
-Sun Mar 15 08:26:16 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * common.mk (srcs-ext): creates ext/dl/callback/callback.c also.
-
-Sun Mar 15 03:29:51 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * process.c (SAVED_GROUP_ID, p_gid_switch): should be rb_gid_t.
-
-Sun Mar 15 02:53:13 2009 Tanaka Akira <akr@fsij.org>
-
- * string.c (rb_str_subpat): accept capture name.
- (rb_str_aref): follow above change.
- (rb_str_aref_m): pass the 2nd argument to rb_str_subpat.
- (rb_str_subpat_set): accept capture name.
- (rb_str_aset): follow above change.
- (rb_str_partition): ditto.
- (rb_str_aset_m): pass the 2nd argument to rb_str_subpat_set.
-
- * include/ruby/intern.h (rb_reg_backref_number): declared.
-
- * re.c (rb_reg_backref_number): defined.
-
- [ruby-core:21057]
-
-Sun Mar 15 02:09:31 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * proc.c (bmcall): should not uninitialized variable. a patch from
- pegacorn at [ruby-dev:38169].
-
-Sat Mar 14 18:25:18 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * util.c (ruby_scan_oct, ruby_scan_hex): use size_t.
-
-Sat Mar 14 18:18:08 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * proc.c (rb_proc_call, rb_node_arity, bmcall, curry): checks
- overflow.
-
- * proc.c (rb_proc_parameters): unnamed_parameters() expects in
- not VALUE.
-
-Sat Mar 14 17:54:19 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * util.c (ruby_each_words): assume no string exceeds INT_MAX.
-
-Sat Mar 14 15:59:04 2009 Tanaka Akira <akr@fsij.org>
-
- * process.c (rb_spawn_internal): use int variable for status.
-
-Sat Mar 14 14:45:51 2009 Tanaka Akira <akr@fsij.org>
-
- * process.c (rb_f_system): use rb_pid_t for pid.
- (rb_spawn_internal): local variable renamed.
-
-Sat Mar 14 14:16:02 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * util.c (ruby_strdup, Balloc, rv_alloc): use size_t.
-
-Sat Mar 14 13:53:11 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * util.c (ruby_qsort): the result of cmp must be signed, so ge
- rid of reuse of a variable.
-
-Sat Mar 14 10:56:13 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * dln.c (init_funcname_len, dln_find_exe_r, dln_find_file_r): use
- size_t.
-
- * file.c (rb_stat_inspect, file_expand_path): ditto.
-
- * util.c (ruby_qsort): ditto.
-
-Sat Mar 14 10:39:13 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/mkmf.rb (CXX_EXT): checks for case-sensitive filesystem with
- FNM_SYSCASE rather than build_os.
-
-Fri Mar 13 23:03:40 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/init.c (wait_connectable0): remove unreachable code.
-
-Fri Mar 13 23:00:02 2009 Tanaka Akira <akr@fsij.org>
-
- * configure.in (RUBY_CHECK_SIZEOF): pass [include] to AC_CHECK_SIZEOF.
-
-Fri Mar 13 20:58:11 2009 Tanaka Akira <akr@fsij.org>
-
- * dln.c (dln_find_1): compare fspace in size_t world.
-
-Fri Mar 13 18:58:04 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * configure.in (CFLAGS, CXXFLAGS): moved after warnflags.
-
-Fri Mar 13 18:10:06 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * vm_eval.c (rb_throw_obj): inverted call flow. [ruby-core:22872]
-
-Fri Mar 13 17:04:09 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * include/ruby/ruby.h (bool): not define to get rid of conflict
- against curses.
-
-Fri Mar 13 16:45:33 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/openssl/openssl_missing.h (i2d_of_void): cast for callbacks.
- [ruby-core:22860]
-
- * ext/openssl/ossl_engine.c (ossl_engine_s_by_id): suppress a
- warning.
-
- * ext/openssl/ossl_ssl.c (ossl_sslctx_flush_sessions): time_t may
- be larger than long.
-
- * ext/openssl/ossl_ssl_session.c (ossl_ssl_session_get_time),
- (ossl_ssl_session_get_timeout): use TIMET2NUM() to convert
- time_t.
-
-Fri Mar 13 15:10:43 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/openssl/ossl_x509ext.c (ossl_x509ext_set_value): should use
- OPENSSL_free instead of free. a patch from Charlie Savage at
- [ruby-core:22858].
-
-Fri Mar 13 21:11:51 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * ext/sdbm/_sdbm.c: should include "ruby/defines.h" as well for
- prototypes of compatibility functions on Win32 platform.
- [ruby-core:22870]
-
-Fri Mar 13 10:42:19 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * configure.in (AC_HEADER_STDBOOL): added.
-
- * include/ruby/ruby.h (NUM2INT, rb_special_const_p): returns true
- and false instead of Qtrue and Qfalse for platforms where VALUE
- is bigger than int.
-
- * gc.c (gc_stress_set), ext/openssl/ossl_asn1.c (decode_bool): go
- rid of variables named `bool'.
-
-Fri Mar 13 10:16:36 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * configure.in (struct stat.st_size): may be huge.
-
-Fri Mar 13 09:30:12 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * bignum.c (bigfixize): zero length Bignum is 0.
-
-Fri Mar 13 09:17:12 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/fileutils.rb (FileUtils#fu_get_gid): stringify group
- argument before making regexp match. [ruby-dev:38155]
-
-Fri Mar 13 08:06:48 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * util.c (rv_strdup): macro to duplicate nul-terminated string.
- [ruby-core:22852]
-
-Thu Mar 12 22:41:41 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/openssl: suppress warnings.
-
- * ext/openssl/ossl.h (OSSL_Debug): don't use gcc extension for
- variadic macro.
-
-Thu Mar 12 22:29:36 2009 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * win32/Makefile.sub (WARNFLAGS): warning 4996 is only in VC++8 or
- later.
-
-Thu Mar 12 22:14:01 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/openssl/ossl_ssl.c (ossl_ssl_def_const): use INT2NUM because
- OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG doesn't fit into Fixnum.
-
-Thu Mar 12 18:16:12 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * array.c, bignum.c, dln.c, error.c, gc.c, io.c, marshal.c,
- numeric.c, pack.c, strftime.c, string.c, thread.c, transcode.c,
- transcode_data.h, util.c, variable.c, vm_dump.c,
- include/ruby/encoding.h, missing/crypt.c, missing/vsnprintf.c:
- suppress VC type warnings. [ruby-core:22726]
-
- * marshal.c (div0), numeric.c (infinite_value): new functions to
- get rid of VC division by 0 warnings.
-
- * st.c: use st_index_t for indexes instead of int.
-
- * vm.c (rb_vm_get_sourceline), vm_insnhelper.c (vm_throw): use
- rb_num_t.
-
-Thu Mar 12 09:30:54 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * configure.in (RUBY_CHECK_SIZEOF): if same size type is found, no
- more calculation is needed.
-
- * configure.in (RUBY_DEFINT): falls back to RUBY_CHECK_SIZEOF if
- size is not immediate.
-
-Thu Mar 12 09:24:24 2009 Tanaka Akira <akr@fsij.org>
-
- * transcode_data.h: suppress warnings of overflow.
-
-Thu Mar 12 09:15:14 2009 Tanaka Akira <akr@fsij.org>
-
- * include/ruby/encoding.h: suppress warnings of overflow.
-
-Thu Mar 12 05:49:05 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * configure.in (warnflags): added some default flags,
- pointer-arith, write-strings and shorten-64-to-32, but suppress
- unused-parameter and missing-field-initializers, if possible.
-
- * configure.in (RUBY_CHECK_HUGE): checks whether a value range is
- larger than long.
-
- * file.c (rb_stat_blocks): struct stat.st_blocks may be larger
- than long.
-
- * io.c (copy_stream_fallback_body): off_t may be larger than long.
-
- * iseq.c (rb_iseq_disasm): RSTRING_LEN() returns long.
-
- * process.c (rb_f_sleep): time() needs time_t.
-
- * random.c (fill_random_seed): enclosed conditionally used
- variables.
-
- * thread_pthread.c (ruby_init_stack): range of rlim_cur may be
- larger than int.
-
- * missing/vsnprintf.c (BSD_vfprintf): commented out code which has
- no effect at all.
-
-Thu Mar 12 02:10:57 2009 Tanaka Akira <akr@fsij.org>
-
- * configure.in: strip spaces from ruby_version.
- Sun C 5.9 SunOS_i386 Build47_dlight 2007/05/22 generates
- `ruby_version= 1 "." 9 "." 1'.
-
-Thu Mar 12 01:18:09 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * dir.c (dir_seek): use long for seekdir().
-
-Thu Mar 12 01:08:27 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * tool/ytab.sed: replaces backslashes with slash for nmake.
-
-Wed Mar 11 21:23:06 2009 Tanaka Akira <akr@fsij.org>
-
- * time.c (time_mload): don't clear tm_mday.
-
-Wed Mar 11 20:13:38 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/dl/handle.c (rb_dlhandle_sym): RTLD_NEXT is not for symbol
- name. [ruby-dev:38150]
-
-Wed Mar 11 17:26:38 2009 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * ext/dl/win32/lib/Win32API.rb: call by :stdcall as default.
- [ruby-core:22826]
-
-Wed Mar 11 13:27:14 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * parse.y (stack_type): uses VALUE which is able to be stored
- parser stack.
-
-Wed Mar 11 13:22:41 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * win32/win32.c (init_env): set TMPDIR if none of TMPDIR, TMP,
- TEMP is set.
-
- * win32/win32.c (rb_w32_telldir, rb_w32_seekdir): should use long,
- as defined by SUSv3.
-
-Wed Mar 11 13:03:12 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/dl/handle.c (rb_dlhandle_sym): fixed heap corruption.
- [ruby-core:22822]
-
-Wed Mar 11 06:12:47 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ruby.c (ruby_init_loadpath_safe): expands libpath and removes
- last /lib.
-
-Wed Mar 11 04:47:47 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * time.c (time_to_i, time_hash): time_t may be bigger than long
- and int.
-
- * time.c (time_timeval, rb_time_timeval, obj2nsec, time_strftime),
- (time_mdump, time_mload): suppress warnings.
-
- * win32/Makefile.sub (config.h): added TIMET2NUM and NUM2TIMET.
-
-Wed Mar 11 04:29:52 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * win32/win32.c: suppress warnings. based on a patch from Charlie
- Savage at [ruby-core:22804].
-
-Wed Mar 11 04:22:12 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * signal.c (sig_trap): suppress warnings.
-
-Tue Mar 10 20:07:45 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * win32/Makefile.sub (WARNFLAGS): uses -wd4996 instead of
- CRTDEFFLAGS. cf. [ruby-core:22725]
-
-Tue Mar 10 19:58:52 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * include/ruby/win32.h (strcasecmp, strncasecmp): use _ prefixed
- versions to suppress warnings.
-
- * ext/dl/callback/mkcallback.rb (DLTYPE[FLOAT]): cast to suppress
- warnings. [ruby-core:22792]
-
- * array.c, bignum.c, gc.c, numeric.c, string.c, util.c, insns.def,
- missing/crypt.c, missing/vsnprintf.c, : suppress warnings.
- [ruby-core:22792]
-
-Tue Mar 10 13:45:54 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * win32/Makefile.sub (LDFLAGS): moved -link to TRY_LINK, LINK_SO
- and so on. based on a patch by Charlie Savage at
- [ruby-core:22794]
-
- * win32/Makefile.sub (config.h): passes LDFLAGS to rbconfig.rb so
- that extconf.rb could refer it. [ruby-core:22725]
-
-Tue Mar 10 11:36:32 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * iseq.c (prepare_iseq_build): too few arguments to function
- rb_ary_tmp_new().
-
-Tue Mar 10 10:53:59 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * iseq.c (rb_iseq_compile_with_option): argument may be converted.
-
-Tue Mar 10 04:56:44 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * configure.in (MINIRUBY): keep macro into Makefile.
-
- * configure.in (RUBY_CHECK_SIZEOF): fix for fallback.
-
- * configure.in (MANGLED_PATH): defines for RUBYLIB_PREFIX.
-
- * ruby.c (ruby_init_loadpath_safe): uses string as buffer.
-
- * symbian/setup (config_h): defines MANGLED_PATH.
-
-Tue Mar 10 03:48:27 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/dl/callback/depend: fix for parallel build.
-
- * ext/dl/callback/extconf.rb: callback.h is no longer created.
-
- * ext/dl/callback/mkcallback.rb: creates main source first.
-
- * ext/dl/callback/extconf.rb ($distcleanfiles): added callback.c.
-
-Tue Mar 10 00:06:21 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * configure.in (load_relative): new option to enable load path
- relative to libruby_so.
-
- * ruby.c (ruby_init_loadpath_safe): added the case using dladdr().
-
-Mon Mar 9 16:49:13 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/rake: updated to rake code to rake-0.8.4 source code base.
-
-Mon Mar 9 16:03:37 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/rubygems/installer.rb (Gem::Installer#initialize): env may
- not be under /usr/bin.
-
- * lib/rubygems/installer.rb (Gem::Installer#shebang): uses /bin/sh
- if shebang has any options, since env shebang trick does no
- work with options.
-
-Mon Mar 9 15:19:55 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * instruby.rb (manpages): use basename to compare and for Tempfile.
-
-Mon Mar 9 14:55:27 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * instruby.rb (default gems): installs default gemspecs.
-
-Mon Mar 9 14:48:08 2009 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * win32/Makefile.sub (OPTFLAGS): simplified. see [ruby-core:22725]
-
-Mon Mar 9 14:33:57 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * instruby.rb: prints names of the directories where files are
- installed to.
-
-Mon Mar 9 02:25:54 2009 Yusuke Endoh <mame@tsg.ne.jp>
-
- * test/ruby/test_proc.rb: add some tests.
-
-Mon Mar 9 01:38:00 2009 Yusuke Endoh <mame@tsg.ne.jp>
-
- * test/ruby/test_enum.rb: add some tests.
-
-Mon Mar 9 01:12:37 2009 Yusuke Endoh <mame@tsg.ne.jp>
-
- * test/ruby/test_object.rb: add a test for Object#method_missing.
-
-Mon Mar 9 01:11:17 2009 Yusuke Endoh <mame@tsg.ne.jp>
-
- * test/ruby/test_file_exhaustive.rb: add tests for File#size and
- File.absolute_path.
-
-Sun Mar 8 23:02:50 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * win32/Makefile.sub (LDFLAGS): always prepends -link.
-
-Sun Mar 8 11:39:57 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * configure.in (RUBY_CHECK_SIZEOF): dirty hack to compute multiple
- sizeof, for apple's universal binary.
-
-Sat Mar 7 22:06:03 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * configure.in (universal_binary): checks if sizes are same on all
- architectures.
-
-Sat Mar 7 18:45:56 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * configure.in: checks if cd really succeeded.
-
-Sat Mar 7 14:24:47 2009 Tanaka Akira <akr@fsij.org>
-
- * configure.in: don't use CONFIG_SHELL for testing shell feature in
- Makefile.
-
-Sat Mar 7 14:07:31 2009 Tanaka Akira <akr@fsij.org>
-
- * configure.in: fix the location of cdcmd.
-
-Sat Mar 7 13:52:01 2009 Tanaka Akira <akr@fsij.org>
-
- * configure.in: the shell which runs configure may be different from
- the shell for make. configure likes bash but Makefile specifies
- SHELL=/bin/sh.
-
-Sat Mar 7 12:31:30 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * test/erb/test_erb.rb: reverted space sensitive test results.
-
- * test/rdoc/test_rdoc_parser_c.rb: ditto.
-
- * test/rdoc/test_rdoc_ri_default_display.rb: ditto.
-
-Fri Mar 6 23:35:59 2009 Tanaka Akira <akr@fsij.org>
-
- * lib/securerandom.rb (SecureRandom.urlsafe_base64): add optional
- argument to add padding.
-
-Fri Mar 6 19:25:40 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * configure.in (RUBY_LIB_VERSION_STYLE): sets full or minor style
- not to show RUBY_VERSION_MAJOR and so on.
-
- * version.h (RUBY_LIB_VERSION): makes from RUBY_LIB_VERSION_STYLE.
-
- * configure.in, Makefile.in, win32/Makefile.sub (CHDIR): cd using
- physical directory.
-
- * Makefile.in (update-mspec): split from update-rubyspec.
-
- * win32/Makefile.sub (update-{rubyspec,mspec}): added.
-
-Fri Mar 6 14:28:36 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * Makefile.in, win32/Makefile.sub (INSNS): moved variable
- definition before rule.
-
-Fri Mar 6 13:47:10 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/rake/loaders/makefile.rb (Rake::MakefileLoader#load): deals with
- escaped spaces. incorporated from rake 0.8.4.
-
- * lib/rake/testtask.rb (Rake::TestTask#define): passes each libs
- as each arguments with expanded. incorporated from rake 0.8.4.
-
-Thu Mar 5 18:36:38 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * numeric.c (flo_to_s): keeps enough precision for round trip.
- [ruby-core:22325]
-
-Thu Mar 5 17:42:06 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * array.c (rb_ary_fill): doc for Array#fill misses indication
- about negative value for the start argument. [ruby-core:22497]
-
-Thu Mar 5 16:56:14 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/tmpdir.rb (Dir.tmpdir): not use USERPROFILE, and ignores
- non-existent directory.
-
-Thu Mar 5 14:52:46 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * win32/win32.c (rb_w32_sysinit): initializes version info first.
-
- * win32/win32.c (rb_w32_osid): always define for binary compatibility.
-
-Thu Mar 5 11:52:16 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * win32/Makefile.sub (make_insns_rules): rule to make rules for insns.
-
-Thu Mar 5 11:27:16 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * win32/Makefile.sub (miniruby.exe): workaround for a failure of
- mt.exe on Windows 7 beta. [ruby-talk:330284]
-
-Thu Mar 5 10:32:17 2009 NARUSE, Yui <naruse@ruby-lang.org>
-
- * test/dl/test_base.rb: Add dragonfly to libc and libm switch.
-
-Thu Mar 5 10:29:10 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * string.c (str_eql): extracted from rb_str_equal and rb_str_eql.
-
- * string.c (rb_str_chomp_bang): keeps 7bit coderange.
-
-Thu Mar 5 10:10:40 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * include/ruby/encoding.h (enc_initialized_p): ENC_UNINITIALIZED
- is not defined already.
-
- * include/ruby/encoding.h (ENC_FROM_ENCINDEX): removed because
- depending on a static variable.
-
-Thu Mar 5 04:42:52 2009 Yusuke Endoh <mame@tsg.ne.jp>
-
- * test/ruby/test_array.rb: fix wrong test, and add a test for
- sort_by!.
-
-Thu Mar 5 04:32:38 2009 Yusuke Endoh <mame@tsg.ne.jp>
-
- * test/ruby/test_array.rb: add some tests for coverage.
-
-Thu Mar 5 00:06:37 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * win32/README.win32 (Requirement): added unicows.lib and dll.
-
-Wed Mar 4 23:29:56 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * configure.in, win32/configure.bat (--enable-win95): new option
- to enable/disable win95 support.
-
-Wed Mar 4 21:21:51 2009 Yusuke Endoh <mame@tsg.ne.jp>
-
- * lib/thread.rb (SizedQueue#push): fix limit condition.
- [ruby-dev:38135]
-
-Wed Mar 4 20:27:10 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * configure.in (mingw): checks if unicows.lib is available.
-
- * include/ruby/win32.h (WIN95): moved to config.h
-
- * win32/Makefile.sub (LIBS): links unicows.lib if available.
-
- * win32/Makefile.sub (config.h): defines WIN95 only if unicows.lib
- is available.
-
- * win32/setup.mak (-unicows-): checks if unicows.lib is available.
-
-Tue Mar 3 17:10:09 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/extmk.rb (extmake): removes object files no longer used and
- files to be removed by old distclean.
-
-Tue Mar 3 16:51:51 2009 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * ext/dl/win32/lib/win32/resolv.rb: get rid of warning.
-
- * ext/dl/lib/dl/func.rb: ditto.
-
-Tue Mar 3 16:25:43 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/extmk.rb (extmake), lib/mkmf.rb (create_makefile): $objs and
- $srcs are always Array or nil now.
-
-Tue Mar 3 15:54:11 2009 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * ext/dl/win32/lib/win32/{registry,resolv}.rb: use dl/import instead
- of Win32API.
-
-Tue Mar 3 15:53:20 2009 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * ext/dl/lib/dl/func.rb (DL::Function.name): delegate to @cfunc.
-
-Tue Mar 3 15:40:38 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/dl/dl.c (rb_dl_init_callbacks): autoloads callbacks.
-
- * ext/dl/callback: split from dl.
-
- * ext/dl/lib/dl/cparser.rb (DL::CParser::parse_signature): fixed
- variable name.
-
- * ext/dl/lib/dl/pack.rb (DL::PackInfo): reduced redundant
- initialization.
-
- * ext/dl/lib/dl/stack.rb (DL::Stack): ditto.
-
- * ext/dl/lib/dl/value.rb (DL::ValueUtil#wrap_arg): NULL for nil.
-
- * test/dl: moved from ext/dl/test.
-
-Tue Mar 3 14:57:28 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * common.mk (main): passes $(MAKE) to mkmain_cmd
-
- * ext/extmk.rb (command_output): uses arguments to invoke make.
-
-Tue Mar 3 01:56:03 2009 Tanaka Akira <akr@fsij.org>
-
- * lib/securerandom.rb (SecureRandom.urlsafe_base64): delete padding.
-
-Mon Mar 2 21:39:08 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/sockport.h (SS_LEN): defined unconditionally.
-
-Mon Mar 2 21:26:42 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/ancdata.c (anc_inspect_socket_creds): suppress warnings.
-
-Mon Mar 2 21:13:42 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/ancdata.c (rsock_discard_cmsg_resource): defined
- unconditionally.
-
-Mon Mar 2 21:06:40 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/raddrinfo.c (addrinfo_mload): don't use "sun" variable
- for Solaris.
-
-Mon Mar 2 21:01:36 2009 Tanaka Akira <akr@fsij.org>
-
- * file.c: include fcntl.h for O_RDONLY on Solaris.
-
-Mon Mar 2 19:43:02 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/uri/common.rb (URI::Parser#escape): escaped string is ascii
- only.
-
- * lib/uri/common.rb (URI::Parser#unescape): converts bytewise.
- [ruby-dev:38005], [ruby-dev:38110]
-
-Mon Mar 2 16:40:11 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * README.EXT, README.EXT.ja (Macros): added HAVE_RUBY_*_H.
-
-Mon Mar 2 12:22:12 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * win32/win32.c (init_env): keeps wide chars as wide chars.
-
-Mon Mar 2 11:01:45 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/dl/dl.h (dlerror): fixed on Windows.
-
- * ext/dl/handle.c (rb_dlhandle_initialize): returns handle to
- libruby if nil is given on Windows as dlopen.
-
- * ext/dl/handle.c (rb_dlhandle_sym): get rid of buffer overrun,
- and try ASCII WINAPI versions too.
-
-Mon Mar 2 10:29:17 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * eval.c (rb_longjmp), include/ruby/intern.h (ruby_cleanup): fixed
- prototypes.
-
-Mon Mar 2 00:56:45 2009 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
-
- * lib/drb/observer.rb: The module observable uses now a hash to
- store listeners. merged a patch from Alessandro Di Maria in
- [ruby-core:22560].
-
-Sun Mar 1 22:59:41 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/raddrinfo.c: suppress warnings.
-
- * ext/socket/socket.c: ditto.
-
- * ext/socket/unixsocket.c: ditto.
-
-Sun Mar 1 20:57:41 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/ (rsock_getfamily): renamed from rb_sock_getfamily.
-
-Sun Mar 1 19:52:46 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/dl/win32/lib/Win32API.rb (initialize): passes res
- arguments to DL.
-
-Sun Mar 1 19:38:59 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/zlib/zlib.c (zstream_run): suppress a warning. a patch from
- Charlie Savage at [ruby-core:22607].
-
-Sun Mar 1 19:36:18 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * util.c (ruby_dtoa): allocates one more byte to get rid of buffer
- overrun. a patch from Charlie Savage at [ruby-core:22604].
-
-Sun Mar 1 19:10:59 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * common.mk (.y.c): removed extra backslash. [ruby-core:22602]
-
-Sun Mar 1 19:02:03 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/dl/cfunc.c (rb_dlcfunc_call): fix for stdcall and missing
- argument numbers. [ruby-core:22601]
-
- * ext/dl/dl.h (DLSTACK_PROTO0_): added.
-
- * ext/dl/mkcallback.rb (gencallback, gen_callback_file),
- (rb_dl_init_callbacks): omit stdcall functions unless supported.
-
- * lib/rubygems/config_file.rb (SHGetFolderPath): stdcall.
-
-Sun Mar 1 17:27:14 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/bigdecimal/bigdecimal.c (gfDebug): uncommented out.
- [ruby-core:22600]
-
-Sun Mar 1 16:15:31 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * process.c (rb_waitpid): use wait_each() on no waitpid platforms.
- [ruby-dev:38054]
-
-Sun Mar 1 16:01:01 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * process.c (proc_daemon): stops and restarts timer thread because
- daemon(3) implies fork(2). [ruby-dev:38055]
-
-Sun Mar 1 15:45:49 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/ (rsock_make_hostent): renamed from sock_make_hostent.
- (rsock_addrinfo): renamed from sock_addrinfo.
- (rsock_getaddrinfo): renamed from sock_getaddrinfo.
- (rsock_socket): renamed from ruby_socket.
- (rsock_sock_s_socketpair): renamed from sock_s_socketpair.
- (rsock_connect): renamed from ruby_connect.
-
- * ext/socket/socket.c (sock_listen): make it static.
-
-Sun Mar 1 15:29:31 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket: add rsock_ prefix.
-
-Sat Feb 28 21:52:37 2009 Tanaka Akira <akr@fsij.org>
-
- * vm_eval.c (rb_iterate): use volatile to suppress warnings.
-
- * eval.c (ruby_cleanup): ditto.
-
-Sat Feb 28 20:09:40 2009 Tanaka Akira <akr@fsij.org>
-
- * eval_error.c (error_print): use volatile to suppress warnings.
-
- * vm_eval.c (eval_string_with_cref): ditto.
-
- * thread.c (rb_exec_recursive): ditto.
-
- * eval_jump.c (rb_exec_end_proc): ditto.
-
- * eval.c (ruby_exec_node): ditto.
- (rb_longjmp): ditto.
-
-Sat Feb 28 18:28:58 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/ancdata.c (ancillary_unix_rights): check message type.
-
-Sat Feb 28 16:18:39 2009 Tanaka Akira <akr@fsij.org>
-
- * lib/net/http.rb: suppress warnings of non-existing instance variable
- access for SSL.
-
-Sat Feb 28 14:50:47 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/lib/socket.rb (BasicSocket#connect_address): returns ::1
- if the address is IPv4-mapped IPv6 address for 0.0.0.0 for MacOS X.
-
-Sat Feb 28 00:18:40 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/raddrinfo.c: suppress strict-aliasing warning with
- gcc version 4.4.0 20090219 (Red Hat 4.4.0-0.21) on Fedora 11 Alpha.
-
- * ext/socket/socket.c: ditto.
-
- * ext/socket/unixsocket.c: ditto.
-
- * ext/socket/sockport.h (SS_LEN): defined.
- (SET_SS_LEN): ditto.
-
-Fri Feb 27 22:30:18 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/ancdata.c (bsock_recvmsg_internal): close FDs passed by
- SCM_RIGHTS unless :scm_rights=>true is given.
- (discard_cmsg): extracted from rsock_discard_cmsg_resource.
-
-Fri Feb 27 22:14:22 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/openssl/lib/openssl/buffering.rb: define Buffering module under
- OpenSSL. [ruby-dev:37906]
-
-Fri Feb 27 22:09:24 2009 Tanaka Akira <akr@fsij.org>
-
- * lib/test/unit/assertions.rb: don't define assert_not_* if already
- overridden.
-
-Fri Feb 27 22:02:34 2009 Tanaka Akira <akr@fsij.org>
-
- * util.c: fix SEGV by test_time.rb with
- gcc version 4.4.0 20090219 (Red Hat 4.4.0-0.21) on Fedora 11 Alpha.
-
-Fri Feb 27 18:30:51 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * compile.c (cdhash_type, iseq_set_sequence): should not call
- methods of the argument of case, to keep the semantics of
- case/when. [ruby-dev:38079]
-
-Fri Feb 27 18:01:20 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * gc.c (ruby_get_stack_grow_direction): no needs to use thread
- here, and not initialized yet. [ruby-core:22439]
-
-Fri Feb 27 17:45:25 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * file.c (file_load_ok): checks if regular file, except for the
- platform disallows to open directories, e.g. dosish.
- [ruby-dev:38097], [Bug #1221]
-
-Fri Feb 27 14:39:40 2009 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * numeric.c (flo_eq, flo_gt, flo_ge, flo_lt, flo_le, flo_eql): revert
- isnan() checks for VC++6.
-
- * insns.def (opt_lt, opt_gt): ditto.
-
-Fri Feb 27 14:23:09 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/ostruct.rb (modifiable): check if really frozen.
- [ruby-core:22559]
-
-Thu Feb 26 23:14:46 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/lib/socket.rb (BasicSocket#connect_address): new method.
-
-Thu Feb 26 19:29:10 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * hash.c (hash_foreach_iter): fix for prototype.
-
-Thu Feb 26 18:36:09 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * common.mk (INSNS, newline.c, miniprelude.c, prelude.c),
- (node_name.inc, known_errors.inc): unified from Makefile.in and
- win32/Makefile.sub.
-
-Thu Feb 26 13:30:34 2009 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * util.c (valid_filename): use our own implementation of open(),
- close() and unlink().
-
-Thu Feb 26 13:23:20 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * iseq.c (cdhash_each): resurrects internal literals.
-
-Thu Feb 26 10:56:48 2009 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * include/ruby/win32.h (rb_w32_wopen): prototype forgotten.
-
- * io.c (rb_sysopen_internal): shouldn't replace undefined chars in this
- case.
-
-Thu Feb 26 01:34:38 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/mkconstants.rb: more MSG_* constants.
-
-Thu Feb 26 00:21:21 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/option.c (sockopt_level): extracted from sockopt_level_m.
- (sockopt_optname): extracted from sockopt_optname_m.
- (sockopt_data): apply StringValue.
- (sockopt_s_linger): new method.
- (sockopt_linger): new method.
- (inspect_linger): show onoff value if it is neither 0 nor 1.
-
-Wed Feb 25 23:23:03 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/ancdata.c (ancillary_unix_rights): raise
- NotImplementedError if no fd passing feature.
- (ancillary_timestamp): raise NotImplementedError if no timestamp
- feature.
-
-Wed Feb 25 23:18:53 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/ancdata.c (ancillary_s_unix_rights): new method.
-
-Wed Feb 25 23:01:26 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/unixsocket.c (unix_recv_io): prevent FD leak when 2 fd is
- sent on LP64 platform.
-
- * ext/socket/rubysocket.h (rsock_discard_cmsg_resource): declared.
-
- * ext/socket/ancdata.c (rsock_discard_cmsg_resource): renamed from
- discard_cmsg_resource. export it.
-
-Wed Feb 25 17:31:32 2009 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * io.c (sysopen_func, rb_sysopen_internal, rb_sysopen): open file
- by UTF-16'ed filename on Windows.
-
- * io.c (rb_file_open_generic, rb_io_s_sysopen, rb_io_reopen,
- argf_next_argv): follow above change.
-
- * io.c (rb_scan_open_args): no longer need to convert filepath here on
- Windows.
-
- * win32/wio32.c (rb_w32_wopen): new function to open file by UTF-16'ed
- filename.
-
- * win32/win32.c (rb_w32_open): call rb_w32_open().
-
-Wed Feb 25 15:05:35 2009 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * win32/Makefile.sub (config.status): use un.rb as cp instead of
- cmd.exe's copy command.
-
- * lib/mkmf.rb (create_makefile): no longer need to convert path
- separator when copying file.
-
-Wed Feb 25 12:27:59 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * string.c (rb_str_force_encoding): should clear coderange at changing
- encoding. [ruby-core:22437]
-
-Wed Feb 25 12:06:09 2009 <nobu@ruby-lang.org>
-
- * io.c (rb_io_getline_1): enables limit even if rs is given.
- [ruby-core:22434]
-
-Wed Feb 25 02:28:51 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * string.c (rb_str_chomp_bang): coderange may change.
- [ruby-core:22414]
-
-Wed Feb 25 02:17:30 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * string.c (rb_str_delete_bang): should recalculate coderange.
- [ruby-talk:329267]
-
-Wed Feb 25 00:41:21 2009 Akinori MUSHA <knu@iDaemons.org>
-
- * class.c (rb_scan_args): Allow specifying the number of trailing
- mandatory arguments right after the number of optional arguments
- only if the number of leading mandatory arguments is not omitted.
-
- * ext/socket/tcpserver.c (tcp_svr_init): Make use of it.
-
-Wed Feb 25 00:28:25 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * file.c (rb_file_size): new method added. [ruby-core:22088]
-
-Wed Feb 25 00:15:15 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * ext/curses/curses.c (curses_colors): new method added. a patch
- from Alexander Beisig in [ruby-core:22331].
-
- * ext/curses/curses.c (curses_color_pairs): ditto.
-
-Wed Feb 25 00:05:13 2009 Akinori MUSHA <knu@iDaemons.org>
-
- * class.c (rb_scan_args): Revamp rb_scan_args() to compute the
- number of required and optional arguments precisely to prepare
- for a more informative error message.
-
-Tue Feb 24 23:58:52 2009 Akinori MUSHA <knu@iDaemons.org>
-
- * array.c (rb_ary_index, rb_ary_rindex): Emit a warning that a
- given block is unused when an argument is specified.
-
-Tue Feb 24 22:00:37 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/socket.c (sockaddr_obj): convert fe80:1::1 to fe80::1%1.
-
-Tue Feb 24 19:56:11 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/ancdata.c (ancillary_timestamp): support SCM_BINTIME.
-
-Tue Feb 24 19:45:15 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/ancdata.c (ancillary_timestamp): new method.
-
-Tue Feb 24 19:01:05 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * common.mk (main): split from exts and makes main program after
- building exts with miniruby, to get rid of overwriting running
- program. [ruby-core:22339]
-
- * Makefile.in, win32/Makefile.sub (RUNCMD, MKMAIN_CMD): macros to
- run script file.
-
- * ext/extmk.rb (parse_args): added --command-output option which
- creates script file to make main program.
-
-Tue Feb 24 17:58:07 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * common.mk (ripper.c): exec can't work on Windows.
-
- * ext/ripper/depend (.SUFFIXES): nmake doesn't have .y by default.
-
- * Makefile.in (id.h): overwrites unconditionally.
-
-Tue Feb 24 13:13:49 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * missing/vsnprintf.c (BSD_vfprintf): ptrdiff_t may be larger than
- long.
-
-Tue Feb 24 11:21:50 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * signal.c (rb_disable_interrupt, rb_enable_interrupt): see
- USE_TRAP_MASK.
-
-Tue Feb 24 10:49:37 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * process.c (rb_waitpid): last argument was missing.
-
- * process.c (waitall_each): fixed typo. a patch from shinichiro.h
- <shinichiro.hamaji AT gmail.com> at [ruby-dev:38054].
-
-Tue Feb 24 01:53:40 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * numeric.c (flo_eq): remove unnecessary NaN check using isnan().
- comparison regarding NaN is false anyway.
-
- * numeric.c (flo_gt, flo_ge, flo_lt, flo_le, flo_eql): ditto.
-
-Tue Feb 24 01:22:19 2009 Yusuke Endoh <mame@tsg.ne.jp>
-
- * bootstraptest/test_thread.rb: fix for environment where fork is not
- available.
-
-Tue Feb 24 01:19:38 2009 Yusuke Endoh <mame@tsg.ne.jp>
-
- * thread.c (thread_cleanup_func): unlock all locked mutexes even when
- forking. [ruby-core:22269]
-
-Tue Feb 24 00:54:16 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * insns.def (opt_minus): inline float operation.
-
- * insns.def (opt_lt, opt_gt): ditto.
-
-Tue Feb 24 00:24:13 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * range.c (range_each): check #succ only when it is really
- needed. small performance improvement.
-
- * math.c (Need_Float): call rb_to_float() only when it is really
- needed. small performance improvement.
-
-Tue Feb 24 00:19:33 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/pathname.rb (Pathname#foreachline): removed wrongly
- resurrected method. [ruby-dev:38065]
-
-Mon Feb 23 20:39:21 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/ancdata.c (inspect_timespec_as_abstime): new function to
- show struct timespec.
- (ancillary_inspect): use it for SCM_TIMESTAMPNS on GNU/Linux.
-
-Mon Feb 23 20:30:06 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/ancdata.c (inspect_bintime_as_abstime): new function to
- show struct bintime.
- (ancillary_inspect): use it for SCM_BINTIME on FreeBSD.
-
- * ext/socket/mkconstants.rb: define SCM_BINTIME.
-
-Mon Feb 23 20:18:49 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/ancdata.c (inspect_timeval_as_abstime): use time_t
- variable to avoid a warning on environments which use long as
- tv_sec as NetBSD.
-
-Mon Feb 23 15:53:30 2009 Akinori MUSHA <knu@iDaemons.org>
-
- * array.c (rb_ary_index, rb_ary_rindex): We know that argc is not
- zero when we reach here.
-
- * array.c (rb_ary_initialize, rb_ary_index): Shrink a double
- space. (NFC)
-
-Mon Feb 23 14:47:04 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/fileutils.rb (mv): added description for the case of
- different partitions. [ruby-talk:329072]
-
-Mon Feb 23 10:19:41 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * include/ruby/ruby.h (USE_SYMBOL_AS_METHOD_NAME): Module#methods,
- #singleton_methods and so on return Symbols. [ruby-talk:328775]
-
-Mon Feb 23 10:15:35 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * README.EXT, README.EXT.ja: added macros for the Compatibilities.
-
-Mon Feb 23 03:19:37 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/mkconstants.rb: define SO_TIMESTAMPNS and SCM_TIMESTAMPNS
- if available.
-
-Mon Feb 23 02:54:31 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/ancdata.c (ancillary_inspect): use SCM_TIMESTAMP instead
- of SO_TIMESTAMP. SCM_TIMESTAMP != SO_TIMESTAMP on MacOS X.
-
-Mon Feb 23 02:44:42 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/ancdata.c (inspect_timeval_as_abstime): new function.
- (ancillary_inspect): use it for SO_TIMESTAMP.
-
-Mon Feb 23 02:26:44 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/option.c (inspect_timeval_as_interval): renamed from
- inspect_timeval.
-
-Mon Feb 23 02:10:09 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/option.c (inspect_timeval): fix the size test.
-
-Sun Feb 22 22:42:20 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * string.c (tr_trans): should recalculate coderange.
- [ruby-core:22326] (reopened at [ruby-core:22328])
-
-Sun Feb 22 20:09:29 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/option.c (inspect_linger): message refined.
-
-Sun Feb 22 19:28:08 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/init.c (s_recvfrom): use rb_io_wait_readable after
- recvfrom.
-
-Sun Feb 22 18:40:04 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/option.c (inspect_errno): new function.
- (sockopt_inspect): use inspect_errno for SO_ERROR.
-
-Sun Feb 22 15:11:51 2009 Tanaka Akira <akr@fsij.org>
-
- * re.c (Init_Regexp): define Regexp::FIXEDENCODING. [ruby-dev:38066]
-
-Sun Feb 22 14:33:06 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * string.c (tr_trans): should not be affected by the encoding of
- replacement unless actually modified. [ruby-talk:328967]
- [ruby-core:22326]
-
-Sun Feb 22 13:38:44 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/socket/init.c (s_recvfrom_nonblock): handles EAGAIN too.
-
- * ext/socket/init.c (s_accept_nonblock): ditto, and EPROTO depends
- on platforms.
-
-Sun Feb 22 13:03:12 2009 Yuki Sonoda (Yugui) <yugui@yugui.jp>
-
- * eval.c (ruby_options): the evaluator now expects iseq instead of tree.
-
- * ruby.c (ruby_process_options): ditto.
-
-Sun Feb 22 13:03:14 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * Makefile.in (configure): unset PWD to use symlink to building
- directory.
-
- * Makefile.in (up): cd doesn't need LC_TIME, VCS needs.
-
-Sun Feb 22 10:43:57 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * vm_eval.c (method_missing): should not pop cfp if missing method
- is method_missing. [ruby-core:22298]
-
- * vm_eval.c (rb_raise_method_missing): new function to directly
- raise NoMethodError.
-
- * vm_insnhelper.c (vm_call_method): fixed the case method_missing
- is missing.
-
-Sun Feb 22 02:15:40 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/ancdata.c (bsock_recvmsg_internal): handle EMSGSIZE as
- well.
-
-Sun Feb 22 02:03:46 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/ancdata.c (bsock_recvmsg_internal): check max length
- overflow.
-
-Sun Feb 22 01:52:30 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/ancdata.c (bsock_recvmsg_internal): don't call
- discard_cmsg_resource when EMFILE.
-
-Sun Feb 22 01:48:51 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/ancdata.c (bsock_recvmsg_internal): gc when SCM_RIGHTS
- hit the file descriptor limit.
-
-Sun Feb 22 00:51:58 2009 Tanaka Akira <akr@fsij.org>
-
- * io.c (io_getpartial): error message describes what should be
- waited after nonblocking error.
- (rb_io_write_nonblock): ditto.
-
- * ext/socket/init.c (s_recvfrom_nonblock): ditto.
- (s_accept_nonblock): ditto.
-
- * ext/socket/socket.c (sock_connect_nonblock): ditto.
-
- * ext/socket/ancdata.c (bsock_sendmsg_internal): ditto.
- (bsock_recvmsg_internal): ditto.
-
-Sun Feb 22 00:31:42 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/ancdata.c (bsock_recvmsg_internal): check recvmsg error
- earlier.
-
-Fri Feb 20 23:28:11 2009 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * util.c (rv_alloc, freedtoa): use our normal xmalloc()/xfree() because
- couldn't free the returned pointer from ruby_dtoa().
-
- * missing/vsnprintf.c (cvt): receive buffer and use/return it instead
- of returning the pointer returned from BSD__dtoa().
-
- * missing/vsnprintf.c (BSD_vfprintf): pass buf to cvt() as the buffer.
- [ruby-core:22184]
-
-Thu Feb 19 22:59:09 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/ancdata.c (make_io_for_unix_rights): cmsg_len may be
- bigger than msg_controllen on 4.4BSD at least.
- freeze unix_rights array.
-
-Thu Feb 19 22:17:38 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/ancdata.c (bsock_recvmsg_internal): fix exception.
-
-Thu Feb 19 21:13:03 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/ancdata.c (ancillary_unix_rights): method renamed.
-
-Thu Feb 19 15:47:11 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * template/fake.rb.in: extracted from Makefile.in.
-
- * configure.in (fake.rb): prefixed with $(arch)-.
-
-Thu Feb 19 15:39:50 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/openssl/ossl_ocsp.c (ossl_ocspbres_verify): OCSP_basic_verify
- returns positive value on success, not non-zero. [ruby-core:21762]
-
-Thu Feb 19 15:17:00 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/tmpdir.rb (@@systmpdir): File.expand_path also joins paths.
-
-Thu Feb 19 15:14:25 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/etc/etc.c (etc_each_group): defines only when Etc::Group is
- available.
-
-Thu Feb 19 15:11:40 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * eval_intern.h (translit_char): moved from ruby.c.
-
- * load.c (load_ext): transliterates file separators and back if
- needed.
-
- * symbian/setup (DLN_NEEDS_ALT_SEPARATOR): defined.
-
-Thu Feb 19 14:48:12 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * configure.in, */Makefile.sub (LOAD_RELATIVE): moved from ruby.c
-
-Thu Feb 19 14:39:53 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * configure.in (darwin): uses -unexported_symbol option of ld instead
- of objcopy
-
- * configure.in (darwin): makes dylib instead of so.
-
-Thu Feb 19 14:22:02 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/mkmf.rb (create_makefile): added phony targets.
-
- * lib/mkmf.rb (create_makefile): creates target directories before
- copying. [ruby-core:21958]
-
- * lib/mkmf.rb (create_makefile): removes directories in the depth
- order.
-
-Thu Feb 19 13:56:00 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * file.c (rb_home_dir): checks if HAVE_PWD_H. [ruby-dev:38049]
-
-Thu Feb 19 08:45:48 2009 TAKANO Mitsuhiro (takano32) <tak@no32.tk>
-
- * ext/socket/rubysocket.h: add "#include <sys/stat.h>"
-
-Thu Feb 19 03:42:48 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/ancdata.c (ancillary_rights): new method.
- (make_io_for_rights): new function to allocate
- IOs for FDs in SCM_RIGHTS message.
- (bsock_recvmsg_internal): use make_io_for_rights. So the FDs can be
- closed by GC.
-
-Thu Feb 19 03:28:59 2009 Akinori MUSHA <knu@iDaemons.org>
-
- * README.EXT, README.EXT.ja: Improve the document about
- rb_scan_args() even more.
-
-Thu Feb 19 03:12:51 2009 Yusuke Endoh <mame@tsg.ne.jp>
-
- * test/ruby/test_file_exhaustive.rb: skip some tests if euid == 0.
- a patch from Lucas Nussbaum in [ruby-core:22209].
-
-Thu Feb 19 03:00:49 2009 Akinori MUSHA <knu@iDaemons.org>
-
- * README.EXT, README.EXT.ja: Improve the document about
- rb_scan_args().
-
-Wed Feb 18 22:47:01 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/ancdata.c (discard_cmsg_resource): new function to close
- file descriptors in control message.
- (bsock_recvmsg_internal): call discard_cmsg_resource before retrying
- recvmsg.
-
-Wed Feb 18 21:47:37 2009 Tanaka Akira <akr@fsij.org>
+ * lib/rubygems/ssl_certs/AddTrustExternalCARoot.pem: Removed to avoid
+ conflict with ca-bundle.pem
+ * lib/rubygems/ssl_certs/VerisignClass3PublicPrimaryCertificationAuthority-G2.pem:
+ ditto.
+ * lib/rubygems/ssl_certs/Entrust_net-Secure-Server-Certification-Authority.pem:
+ ditto.
- * ext/socket/ancdata.c (bsock_recvmsg_internal): prevent misalignment.
+Fri Apr 20 08:30:55 2012 Eric Hodel <drbrain@segment7.net>
-Wed Feb 18 21:34:30 2009 Tanaka Akira <akr@fsij.org>
+ * lib/rubygems: Update to RubyGems 1.8.23 which contains security
+ fixes:
- * ext/socket/ancdata.c (bsock_sendmsg_internal): prevent misalignment.
+ RubyGems now disallows redirection from HTTPS to HTTP.
-Wed Feb 18 21:09:43 2009 Tanaka Akira <akr@fsij.org>
+ RubyGems now verifies SSL connections.
- * ext/socket/ancdata.c (bsock_recvmsg_internal): reduce code on
- environments which have no control message.
+ See https://github.com/rubygems/rubygems/blob/1.8/History.txt for
+ changes since 1.8.22.
+ * test/rubygems: ditto.
-Wed Feb 18 20:27:16 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Fri Apr 20 07:39:50 2012 Eric Hodel <drbrain@segment7.net>
- * configure.in (OBJCOPY): set ac_cv_prog_ac_ct_OBJCOPY to do nothing
- on cygwin and mingw because symbols are exported by def file.
+ * lib/rubygems: Update to RubyGems 1.8.22 plus r33517 and r35337 which
+ were ported to the rubygems git repository.
-Wed Feb 18 15:35:36 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ See https://github.com/rubygems/rubygems/blob/1.8/History.txt for
+ changes since 1.8.11.
- * file.c (rb_file_chown): use chown unless HAVE_FCHOWN.
+ * test/rubygems: ditto.
- * io.c (pipe_open): sarg is always used unless HAVE_FORK.
+ * lib/rubygems/version.rb: Fixed init_with warning by calling into
+ yaml_initialize (for syck) from psych's init_with
-Wed Feb 18 15:23:34 2009 Akinori MUSHA <knu@iDaemons.org>
+Thu Apr 19 12:55:31 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * bootstraptest/runner.rb: Use RUBY_DESCRIPTION if defined.
+ * ext/-test-/win32/dln/extconf.rb: need import library for ordinal
+ entry even on mingw. [ruby-core:44441][Bug #6320]
-Wed Feb 18 14:33:35 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Wed Apr 18 23:08:58 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * array.c (rb_ary_resurrect), string.c (rb_str_resurrect): new
- functions based on [ruby-dev:37983]
+ * configure.in (DOT, DOXYGEN): use AC_CHECK_PROGS instead of
+ AC_CHECK_PROG which needs the third argument. [ruby-core:44433]
+ [Bug #6316]
- * insns.def (putstring, duparray): use rb_{ary,str}_resurrect().
+ * configure.in (PKG_CONFIG): fix condition to skip older version
+ of pkg-config. continue in backticks does not affect outside.
- * iseq.c (iseq_data_to_ary): needs to result TS_VALUE.
+Tue Apr 17 21:35:47 2012 Kouhei Sutou <kou@cozmixng.org>
-Wed Feb 18 12:35:31 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * lib/rexml/parsers/baseparser.rb, test/rexml/test_namespace.rb:
+ fix the default xml namespace URI validation.
+ [ruby-dev:45169] [Bug #5956]
+ Reported by Miho Hiramatsu. Thanks!!!
- * file.c (rb_file_s_extname): fix for spaces before extension.
- [ruby-dev:38044]
+Mon Apr 17 14:27:22 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Wed Feb 18 12:00:58 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * dln.c (rb_w32_check_imported): skip ordinal entries. based on a
+ patch by phasis68 (Heesob Park) at [ruby-core:44381].
+ [ruby-core:44371][Bug #6303]
- * file.c (file_expand_path): suppress a warning. named magic
- numbers.
+Sun Apr 15 14:57:00 2012 Tanaka Akira <akr@fsij.org>
-Wed Feb 18 10:29:12 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * test/test_pty.rb (test_pty_check_default): call PTY.check until
+ "cat" command is finished.
- * thread.c (thread_start_func_2): do not delete main thread from
- living_threads. [ruby-core:19385], [ruby-core:22158]
+Sun Apr 15 14:54:16 2012 NAKAMURA Usaku <usa@ruby-lang.org>
-Wed Feb 18 01:05:05 2009 Tanaka Akira <akr@fsij.org>
+ * test/ruby/test_process.rb (TestProcess#windows?): new method.
- * ext/openssl: avoid cyclic require.
+ * test/ruby/test_process.rb (TestProcess#*): use above method.
- * ext/openssl/lib/openssl/ssl-internal.rb: renamed from ssl.rb
+ * test/ruby/test_process.rb (TestProcess#test_execopts_redirect):
+ windows doesn't support FD_CLOEXEC.
- * ext/openssl/lib/openssl/x509-internal.rb: renamed from x509.rb.
+Sun Apr 15 06:40:28 2012 Hiroshi Shirosaki <h.shirosaki@gmail.com>
- * lib/net/imap.rb: require openssl, instead of openssl/ssl.
+ * include/ruby/win32.h (rb_w32_aspawn_flags): add the declaration of
+ new function.
- * lib/net/pop.rb: require openssl, instead of openssl/ssl.
+ * process.c (enum): add EXEC_OPTION_PGROUP and move the position
+ above for the usage in proc_spawn_n().
- [ruby-dev:38018]
+ * process.c (proc_spawn_n): add an argument to pass new option
+ `new_pgroup`. The option specifies CREATE_NEW_PROCESS_GROUP flag to
+ CreateProcessW(). This flag is necessary for the usage of
+ Process.kill on the subprocess on Windows.
-Wed Feb 18 00:55:47 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * process.c (rb_exec_arg_addopt): ditto.
- * ext/etc/etc.c (Etc::Passwd.each, Etc::Group.each): new methods.
- [ruby-dev:37999]
+ * process.c (rb_spawn_process): ditto.
-Tue Feb 17 23:25:01 2009 Tanaka Akira <akr@fsij.org>
+ * process.c (documentation for rb_f_spawn): add documentation for new
+ option `new_pgroup` of spawn.
- * ext/socket/ancdata.c (bsock_sendmsg_internal): make the padding
- removing only on NetBSD.
+ * test/ruby/test_process.rb (TestProcess#test_execopts_new_pgroup):
+ add tests for option `new_pgroup`.
-Tue Feb 17 19:39:04 2009 Tanaka Akira <akr@fsij.org>
+ * test/ruby/test_thread.rb
+ (TestThreadGroup#test_thread_timer_and_interrupt):
+ add option `new_pgroup: true` to spawn on Windows. It's needed for
+ Process.kill on a subprocess.
- * ext/socket/ancdata.c (bsock_sendmsg_internal): should not remove the
- last padding of control messages, basically.
+ * win32/win32.c (CreateChild): add an argument to pass
+ dwCreationFlags of CreateProcessW().
-Tue Feb 17 12:50:57 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * win32/win32.c (rb_w32_spawn): ditto.
- * string.c (rb_str_shared_replace): no need for
- str_make_independent.
+ * win32/win32.c (rb_w32_aspawn_flags): add new function to pass
+ dwCreationFlags.
-Tue Feb 17 05:41:08 2009 Koichi Sasada <ko1@atdot.net>
+ * win32/win32.c (rb_w32_aspawn): refactor to move the content to
+ rb_w32_aspawn_flags().
+ [ruby-core:43245][Bug #6131]
- * compile.c: fix to add "ensure" codes across "while" clause
- before "return" expression. [ruby-dev:37967]
+Sun Apr 15 06:40:28 2012 Hiroshi Shirosaki <h.shirosaki@gmail.com>
- * bootstraptest/test_flow.rb: add a test.
+ * test/ruby/test_thread.rb
+ (TestThreadGroup#test_thread_timer_and_interrupt): skip on Windows.
+ Process.kill cannot kill a subprocess if CREATE_NEW_PROCESS_GROUP
+ flag is not specified in a call to CreateProcessW().
-Tue Feb 17 01:53:35 2009 Tanaka Akira <akr@fsij.org>
+ * win32/win32.c (CreateChild): revert the usage of
+ CREATE_NEW_PROCESS_GROUP flag for compatibility.
+ [ruby-core:43245][Bug #6131]
- * ext/socket/mkconstants.rb: generate rb_define_const directly for
- rdoc.
+Sun Apr 15 04:35:48 2012 Hiroshi Shirosaki <h.shirosaki@gmail.com>
- * ext/.document: add socket/constdefs.c.
+ * io.c (rb_io_eof): use eof() instead of io_fillbuf(). It's because
+ io_unread() doesn't work properly when reading CRLF with read(length)
+ and mode 'r'.
+ [ruby-core:44189][Bug #6271]
- * ext/socket/constants.c (sock_define_const): removed.
- (sock_define_uconst): ditto.
- (rb_mSockConst): new static variable.
+ * test/ruby/test_io_m17n.rb (TestIO_M17N#test_read_crlf_and_eof):
+ test for above.
-Mon Feb 16 23:14:51 2009 Tanaka Akira <akr@fsij.org>
+Sun Apr 15 03:00:54 2012 NAKAMURA Usaku <usa@ruby-lang.org>
- * ext/socket/ancdata.c (bsock_sendmsg_internal) [OpenBSD]: don't remove
- the last padding to prevent sendmsg failure in test_udp_server in
- test/socket/test_socket.rb on OpenBSD 4.4.
+ * io.c (io_unread): fixed memory leak. report by nagachika via IRC.
-Mon Feb 16 21:59:32 2009 Alexander Zavorine <alexandre.zavorine@nokia.com>
+Sun Apr 15 03:00:54 2012 Hiroshi Shirosaki <h.shirosaki@gmail.com>
- * symbian/setup: Update Symbian config to match recent changes in missing/alloca.c
+ * io.c (static int io_fflush): add the definition.
+ Use it in set_binary_mode_with_seek_cur().
-Mon Feb 16 17:04:14 2009 Akinori MUSHA <knu@iDaemons.org>
+ * io.c (set_binary_mode_with_seek_cur): refactoring to split the
+ content into io_unread(). Fix the possibility of buffer overflow.
- * class.c (rb_scan_args), README.EXT, README.EXT.ja: Add support
- for specifying the number of the trailing mandatory arguments.
- Update the documents accordingly. [ruby-dev:37995]
+ * io.c (io_unread): add new implementation for Windows. Previous one
+ caused invalid cursor position using IO#pos with OS text mode. New
+ one fixes the bug.
-Mon Feb 16 16:46:14 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * test/ruby/test_io_m17n.rb
+ (TestIO_M17N#test_pos_dont_move_cursor_position): add a test for
+ above bug.
+ [ruby-core:43497] [Bug #6179]
- * debug.c (set_debug_option): added rtc_error option.
+Sun Apr 15 03:00:54 2012 NAKAMURA Usaku <usa@ruby-lang.org>
- * win32/Makefile.sub (CRTDEFFLAGS): separated from DEFS.
+ * test/ruby/test_io.rb (TestIO#test_pos_with_getc): updated.
+ see [ruby-core:43550]
- * win32/win32.c (rtc_error_handler): ignores RTC errors unless
- rtc_error debug option is given.
+Sun Apr 15 03:00:54 2012 NAKAMURA Usaku <usa@ruby-lang.org>
- * win32/win32.c (rb_w32_sysinit): suppress useless CRT assertions.
- [ruby-core:22116]
+ * test/ruby/test_io.rb (TestIO#test_pos_with_getc): added.
+ see [Bug #6179][ruby-core:43518]
-Sun Feb 15 21:43:44 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Wed Apr 11 16:22:16 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * lib/ostruct.rb (OpenStruct#new_ostruct_member): checks if frozen.
- [ruby-talk:328195], [ruby-core:22142]
+ * ext/-test-/add_suffix/bug.c (ruby_add_suffix): no static
+ declaration. [ruby-core:44277][Bug #6279]
-Sun Feb 15 21:22:48 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Sun Apr 8 06:53:55 2012 NARUSE, Yui <naruse@ruby-lang.org>
- * lib/test/unit/assertions.rb (Test::Unit::Assertions): aliases
- assert_not_ methods.
+ * io.c (io_unread): cast as long the value for extra_max.
+ [ruby-core:44137] [Bug #6257]
-Sun Feb 15 16:57:35 2009 Tanaka Akira <akr@fsij.org>
+Sat Apr 7 10:28:40 2012 Aaron Patterson <aaron@tenderlovemaking.com>
- * lib/securerandom.rb (SecureRandom.urlsafe_base64): new method.
+ * ext/psych/lib/psych.rb: bumping up psych version to match release.
+ * ext/psych/psych.gemspec: ditto
-Sun Feb 15 14:58:07 2009 Tanaka Akira <akr@fsij.org>
+Sat Apr 7 02:07:00 2012 Aaron Patterson <aaron@tenderlovemaking.com>
- * hash.c (hash_i): use Murmurhash.
+ * ext/psych/parser.c: fall back to any encoding if the external
+ encoding is wrong. [ruby-core:44163]
+ * test/psych/test_encoding.rb: fix test
-Sun Feb 15 11:45:29 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Wed Apr 4 18:29:15 2012 NAKAMURA Usaku <usa@ruby-lang.org>
- * variable.c (rb_define_hooked_variable): suppress false assertion
- with VC9. [ruby-core:22115]
+ * test/ruby/test_sleep.rb (TestSleep#test_sleep_5sec): syntax error.
-Sun Feb 15 08:35:33 2009 Tanaka Akira <akr@fsij.org>
+ * test/ruby/test_sleep.rb (TestSleep#test_sleep_5sec): call uname
+ only on linux because it's a workaround for linux only.
- * test/test_pp.rb: extract from lib/pp.rb.
+Wed Apr 4 11:32:09 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * test/test_prettyprint.rb: extract from lib/prettyprint.rb.
+ * ext/-test-/add_suffix/bug.c: make all functions in util.c static
+ to get rid of multiple definitions. reported at
+ https://trac.macports.org/ticket/33814
- * test/test_tsort.rb: extract from lib/tsort.rb.
+Tue Apr 3 18:34:33 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Sun Feb 15 06:34:22 2009 Tanaka Akira <akr@fsij.org>
+ * process.c (setreuid, setregid): suppress warnings.
+ [ruby-core:43374][Bug #6169]
- * lib/time.rb (Time.parse): raise ArgumentError if Date._parse don't
- extract date information. [ruby-core:20912]
+Sat Mar 31 12:11:21 2012 Martin Bosslet <Martin.Bosslet@googlemail.com>
-Sun Feb 15 04:48:08 2009 Yusuke Endoh <mame@tsg.ne.jp>
+ * ext/openssl/ossl_x509cert.c: Fix doc typo.
- * string.c (rb_hash_uint32, rb_hash_uint, rb_hash_start, rb_hash_end),
- include/ruby/intern.h: add Murmurhash API. [ruby-dev:37784]
+Fri Mar 30 14:17:17 2012 Martin Bosslet <Martin.Bosslet@googlemail.com>
- * complex.c (nucomp_hash), array.c (rb_ary_hash), time.c (time_hash),
- string.c (rb_str_hash), object.c (rb_obj_hash), range.c
- (range_hash), struct.c (rb_struct_hash), hash.c (rb_any_hash),
- rational.c (nurat_hash): use Murmurhash. [ruby-dev:37784]
+ * ext/openssl/ossl_pkcs7.c: fix crash when parsing garbage data.
+ * test/openssl/test_pkcs7.rb: assert correct behavior for it.
+ Thanks to Matt Venables for reporting the issue.
+ [ruby-core:43250][Bug #6134]
-Sun Feb 15 03:50:21 2009 Yusuke Endoh <mame@tsg.ne.jp>
+Fri Mar 30 14:17:17 2012 Martin Bosslet <Martin.Bosslet@googlemail.com>
- * hash.c (rb_hash): always return a fixnum value because a return
- value of rb_hash may be used as a hash value itself and bignums have
- no unique VALUE.
+ * test/openssl/test_x509cert.rb: exclude test that fails when issuing
+ a certificate with RSA signature and DSS1 digest for earlier
+ OpenSSL versions when used in conjunction with OpenSSL 1.0.1.
+ Thanks, Vit Ondruch, for reporting the issue.
+ [ruby-core:42949][Bug #6089]
- * test/ruby/test_hash.rb: add a test for above.
+Fri Mar 30 14:15:40 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Sun Feb 15 00:45:41 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * string.c (str_new_empty): should copy also the encoding as an
+ empty substring. [ruby-dev:45441][Bug #6206]
- * array.c (rb_ary_uniq_bang, rb_ary_uniq): unique by the result of
- given block. [ruby-dev:37998]
+Fri Mar 30 14:14:36 2012 Tadayoshi Funaba <tadf@dotrb.org>
-Sun Feb 15 00:39:44 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * ext/date/date_core.c (datetime_s_now): [ruby-core:43256].
- * array.c (ary_resize_capa): should not overwrite outside embedded
- array.
+Fri Mar 30 14:12:53 2012 Marc-Andre Lafortune <ruby-core@marc-andre.ca>
-Sat Feb 14 20:18:19 2009 Tanaka Akira <akr@fsij.org>
+ * numeric.c: fix flodivmod for cornercases [Bug #6044]
+ add ruby_float_mod
- * test/test_time.rb: extracted from lib/time.rb.
+ * insns.def (opt_mod): use ruby_float_mod
-Sat Feb 14 19:20:15 2009 Tanaka Akira <akr@fsij.org>
+ * internal.h: declare ruby_float_mod
- * lib/pathname.rb: obsolete methods removed.
- [ruby-core:21564]
+ * test/ruby/test_float.rb: tests for above
-Sat Feb 14 15:46:01 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * test/ruby/envutil.rb: create helper assert_is_minus_zero
- * lib/pathname.rb (Pathname#binread): added. [ruby-dev:37952]
+Wed Mar 28 08:44:24 2012 Aaron Patterson <aaron@tenderlovemaking.com>
-Sat Feb 14 13:14:18 2009 TAKANO Mitsuhiro (takano32) <tak@no32.tk>
+ * ext/psych/lib/psych.rb: updating version to match gem
+ * ext/psych/psych.gemspec: ditto
+ * ext/psych/lib/psych/visitors/to_ruby.rb: fixing deprecation warning
- * iseq.c: remove nil parameter from Proc#parameters
- after rest appeared.
+Mon Jul 18 13:36:47 2011 Aaron Patterson <aaron@tenderlovemaking.com>
-Sat Feb 14 07:23:52 2009 NARUSE, Yui <naruse@ruby-lang.org>
+ * ext/psych/lib/psych.rb: define a new BadAlias error class.
- * string.c (rb_external_str_new_with_enc): change evaluation order
- for speed.
+ * ext/psych/lib/psych/visitors/to_ruby.rb: raise an exception when
+ deserializing an alias that does not exist.
-Sat Feb 14 02:20:04 2009 Tanaka Akira <akr@fsij.org>
+ * test/psych/test_merge_keys.rb: corresponding test.
- * ext/socket/sockport.h (SET_SA_LEN): cast to void for suppressing a
- warning.
+Fri Mar 9 06:29:22 2012 Aaron Patterson <aaron@tenderlovemaking.com>
-Fri Feb 13 23:37:10 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * ext/psych/lib/psych.rb (load, parse): stop parsing or loading after
+ the first document has been parsed.
- * ext/dl/win32/lib/Win32API.rb (Win32API#initialize): DL.dlopen
- raises DLError.
+ * test/psych/test_stream.rb: pertinent tests.
-Fri Feb 13 21:13:19 2009 Tanaka Akira <akr@fsij.org>
+Fri Mar 9 06:17:05 2012 Aaron Patterson <aaron@tenderlovemaking.com>
- * ext/socket/socket.c (Init_socket): define TCPServer#listen and
- UNIXServer#listen here for rdoc.
+ * ext/psych/lib/psych.rb (parse_stream, load_stream): if a block is
+ given, documents will be yielded to the block as they are parsed.
+ [ruby-core:42404] [Bug #5978]
-Fri Feb 13 20:59:48 2009 Tanaka Akira <akr@fsij.org>
+ * ext/psych/lib/psych/handlers/document_stream.rb: add a handler that
+ yields documents as they are parsed
- * ext/socket/ancdata.c (extract_ipv6_pktinfo): set sa_len for 4.4BSD.
+ * test/psych/test_stream.rb: corresponding tests.
-Fri Feb 13 15:34:18 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Tue Mar 6 02:31:20 2012 Aaron Patterson <aaron@tenderlovemaking.com>
- * iseq.c (simple_default_value): removed. default values of optional
- parameters are not available still now. [ruby-dev:37980]
+ * ext/psych/lib/psych/core_ext.rb: only extend Kernel if IRB is loaded
+ in order to stop method pollution.
-Fri Feb 13 15:11:11 2009 Koichi Sasada <ko1@atdot.net>
+Tue Feb 28 10:28:51 2012 Aaron Patterson <aaron@tenderlovemaking.com>
- * vm_eval.c (eval_string_with_cref): use rb_vm_get_ruby_level_next_cfp()
- instead of vm_get_ruby_level_caller_cfp(). checking a upper frame
- is not enough. [ruby-dev:37984]
+ * ext/psych/lib/psych.rb: default open YAML files with utf8 external
+ encoding. [ruby-core:42967]
+ * test/psych/test_tainted.rb: ditto
- * proc.c, vm_core.h: declare rb_vm_get_ruby_level_next_cfp()
- on vm_core.h.
+Fri Feb 24 13:54:33 2012 Aaron Patterson <aaron@tenderlovemaking.com>
-Fri Feb 13 15:01:40 2009 Koichi Sasada <ko1@atdot.net>
+ * ext/psych/parser.c: prevent a memory leak by protecting calls to
+ handler callbacks.
+ * test/psych/test_parser.rb: test to demonstrate leak.
- * cont.c (rb_fiber_alive_p): fix to return true instead of 0.
- [ruby-dev:37991]
+Fri Feb 24 08:08:38 2012 Aaron Patterson <aaron@tenderlovemaking.com>
- * test/ruby/test_fiber.rb: add a test for Fiber#alive?
+ * ext/psych/parser.c: set parser encoding based on the YAML input
+ rather than user configuration.
+ * test/psych/test_encoding.rb: corresponding tests.
+ * test/psych/test_parser.rb: ditto
+ * test/psych/test_tainted.rb: ditto
-Fri Feb 13 09:43:19 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Fri Feb 10 03:41:31 2012 Aaron Patterson <aaron@tenderlovemaking.com>
- * configure.in (ac_cv_func_flock): using flock defined in
- win32/win32.c on mingw.
+ * ext/psych/parser.c: removed external encoding setter, allow parser
+ to be reused.
+ * ext/psych/lib/psych/parser.rb: added external encoding setter.
+ * test/psych/test_parser.rb: test parser reuse
-Fri Feb 13 01:45:17 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Wed Jan 18 12:49:15 2012 Aaron Patterson <aaron@tenderlovemaking.com>
- * compile.c (iseq_set_sequence, compile_dstr_fragments),
- (iseq_compile_each): hides other internal objects.
+ * ext/psych/lib/psych/visitors/to_ruby.rb: Added support for loading
+ subclasses of String with ivars
+ * ext/psych/lib/psych/visitors/yaml_tree.rb: Added support for dumping
+ subclasses of String with ivars
+ * test/psych/test_string.rb: corresponding tests
- * compile.c (iseq_compile_each): just freeze xstr.
+Wed Jan 18 10:39:47 2012 Aaron Patterson <aaron@tenderlovemaking.com>
-Fri Feb 13 00:48:42 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * ext/psych/lib/psych/visitors/to_ruby.rb: Added ability to load array
+ subclasses with ivars.
+ * ext/psych/lib/psych/visitors/yaml_tree.rb: Added ability to dump
+ array subclasses with ivars.
+ * test/psych/test_array.rb: corresponding tests
- * insns.def (defineclass): try to autoload const to be overridden.
+Wed Dec 21 02:25:36 2011 Aaron Patterson <aaron@tenderlovemaking.com>
-Thu Feb 12 23:22:29 2009 Tanaka Akira <akr@fsij.org>
+ * ext/psych/emitter.c: fixing clang warnings. Thanks Joey!
- * test/socket/test_socket.rb (test_udp_server): filter out unreachable
- addresses. [ruby-dev:37970]
+Sun Dec 18 12:42:48 2011 Aaron Patterson <aaron@tenderlovemaking.com>
-Thu Feb 12 22:51:18 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * ext/psych/lib/psych/visitors/to_ruby.rb: BigDecimals can be restored
+ from YAML.
+ * ext/psych/lib/psych/visitors/yaml_tree.rb: BigDecimals can be dumped
+ to YAML.
+ * test/psych/test_numeric.rb: tests for BigDecimal serialization
- * compile.c (hide_obj): OBJ_FREEZE() is not an expression. a patch
- from nagachika <nagachika00 AT gmail.com> at [ruby-dev:37977].
+Sun Dec 18 12:03:13 2011 Aaron Patterson <aaron@tenderlovemaking.com>
- * compile.c (insn_set_sc_state): fixed typo.
+ * ext/psych/lib/psych/scalar_scanner.rb: Strings that look like dates
+ should be treated as strings and not dates.
-Thu Feb 12 12:36:35 2009 Tanaka Akira <akr@fsij.org>
+ * test/psych/test_scalar_scanner.rb: corresponding tests.
- * ext/socket/basicsocket.c (bsock_getpeereid): implemented for Solaris
- using getpeerucred.
+Wed Dec 7 08:04:31 2011 Aaron Patterson <aaron@tenderlovemaking.com>
- * ext/socket/extconf.rb: check ucred.h and getpeerucred.
+ * ext/psych/lib/psych.rb (module Psych): parse and load methods take
+ an optional file name that is used when raising Psych::SyntaxError
+ exceptions
+ * ext/psych/lib/psych/syntax_error.rb (module Psych): allow nil file
+ names and handle nil file names in the exception message
+ * test/psych/test_exception.rb (module Psych): Tests for changes.
- * ext/socket/rubysocket.h: include ucred.h if available.
+Wed Nov 30 09:09:37 2011 Aaron Patterson <aaron@tenderlovemaking.com>
-Thu Feb 12 19:42:33 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * ext/psych/parser.c (parse): parse method can take an option file
+ name for use in exception messages.
+ * test/psych/test_parser.rb: corresponding tests.
- * compile.c (compile_array_, defined_expr, iseq_compile_each): hide
- and freeze internal literal objects, to prevent from modifying.
- [ruby-dev:37959]
+Tue Nov 22 04:46:22 2011 Aaron Patterson <aaron@tenderlovemaking.com>
- * iseq.c (insn_operand_intern): copy internal literal objects.
+ * ext/psych/lib/psych.rb: remove autoload from psych
+ * ext/psych/lib/psych/json.rb: ditto
- * insns.def (putstring, duparray): ditto.
+Wed Nov 9 04:52:16 2011 Aaron Patterson <aaron@tenderlovemaking.com>
- * string.c (rb_str_replace): exported.
+ * ext/psych/lib/psych/tree_builder.rb: dump complex numbers,
+ rationals, etc with reference ids.
+ * ext/psych/lib/psych/visitors/yaml_tree.rb: ditto
+ * ext/psych/lib/psych/visitors/to_ruby.rb: loading complex numbers,
+ rationals, etc with reference ids.
+ * test/psych/test_object_references.rb: corresponding tests
-Thu Feb 12 17:17:51 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Mon Nov 7 20:31:52 2011 Aaron Patterson <aaron@tenderlovemaking.com>
- * ext/stringio/stringio.c (strio_ungetc): calculates new position
- before reallocation. [Bug#1099]
+ * ext/psych/lib/psych/scalar_scanner.rb: make sure strings that look
+ like base 60 numbers are serialized as quoted strings.
+ * test/psych/test_string.rb: test for change.
-Thu Feb 12 16:50:27 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Thu Oct 27 08:47:38 2011 Martin Bosslet <Martin.Bosslet@googlemail.com>
- * configure.in: a patch to build on GNU/kOpenSolaris from Rober
- Millan at [ruby-core:21888].
+ * ext/psych/parser.c: remove unused variable.
-Thu Feb 12 15:28:04 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+Wed Oct 5 02:50:27 2011 Aaron Patterson <aaron@tenderlovemaking.com>
- * iseq.c (simple_default_value): allow plain strings as default
+ * ext/psych/lib/psych/syntax_error.rb: Add file, line, offset, and
+ message attributes during parse failure.
+ * ext/psych/parser.c: Update parser to raise exception with correct
values.
+ * test/psych/test_exception.rb: corresponding tests.
-Wed Feb 11 18:09:41 2009 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * gc.c (define_final, undefine_final): shouldn't add/remove finalizer
- of frozen objects.
-
- * gc.c (undefine_final): should remove FL_FINALIZE flag.
- [ruby-dev:37964] (also see [ruby-dev:37959])
-
-Wed Feb 11 17:37:41 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/lib/socket.rb (Socket.udp_server_sockets): call the block
- if given. close the sockets when the block exits.
- (Socket.udp_server_loop): use udp_server_sockets in block form.
-
-Wed Feb 11 17:34:16 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/lib/socket.rb (Socket.tcp_server_sockets): call the block
- if given. close the sockets when the block exits.
- (Socket.tcp_server_loop): use tcp_server_sockets in block form.
-
-Wed Feb 11 17:01:52 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/lib/socket.rb (Socket.unix_server_loop): use
- unix_server_socket with a block.
-
-Wed Feb 11 16:54:26 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/lib/socket.rb (Socket.unix_server_socket): close the
- socket when the block exits.
-
-Wed Feb 11 16:50:59 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/lib/socket.rb (Socket.unix_server_socket): call the block
- if given. remove the socket file when the block exits.
-
-Wed Feb 11 16:44:20 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/ancdata.c (ancillary_s_ip_pktinfo): make 3rd argument
- optional.
-
-Wed Feb 11 15:47:10 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * array.c (ary_make_shared): returns shared root array itself, and
- frozen array can be shared.
-
-Wed Feb 11 14:46:16 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * insns.def (setspecial, putstring): fixed typos in rdoc.
-
- * insns.def (toregexp): uses rb_ary_tmp_new(), and clears it after
- used.
-
-Wed Feb 11 14:08:23 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/ancdata.c (anc_inspect_socket_rights): return 1 on
- success. 0 on failure.
- (anc_inspect_passcred_credentials): ditto.
- (anc_inspect_socket_creds): ditto.
- (anc_inspect_socket_creds): ditto.
- (anc_inspect_socket_creds): ditto.
- (anc_inspect_ip_recvdstaddr): ditto.
- (anc_inspect_ip_pktinfo): ditto.
- (anc_inspect_ipv6_pktinfo): ditto.
- (ancillary_inspect): check family.
-
-Wed Feb 11 12:55:07 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/ancdata.c (anc_inspect_ip_pktinfo): make result bit
- succinct.
- (Init_ancdata): fix number of arguments.
-
-Wed Feb 11 11:47:41 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/ipsocket.c (Init_ipsocket): undef getpeereid at IPSocket.
-
-Wed Feb 11 10:16:34 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/extconf.rb: check getpeereid.
-
- * ext/socket/basicsocket.c (bsock_getpeereid): new method.
-
-Wed Feb 11 09:58:59 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/lib/socket.rb (Socket::UDPSource#inspect): fix variable
- name.
-
-Wed Feb 11 00:38:16 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/socket.c (sock_gethostname): use HOST_NAME_MAX.
-
- * ext/socket/raddrinfo.c (make_ipaddr): local variable renamed.
-
-Tue Feb 10 23:44:53 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/init.c (struct recvfrom_arg): use struct
- sockaddr_storage.
- (recvfrom_blocking): follow struct recvfrom_arg change.
- (s_recvfrom): ditto.
- (s_recvfrom_nonblock): use struct sockaddr_storage.
-
- * ext/socket/socket.c (sock_accept): use struct sockaddr_storage.
- (sock_accept_nonblock): ditto.
- (sock_sysaccept): ditto.
-
- * ext/socket/ancdata.c (bsock_recvmsg_internal): use struct
- sockaddr_storage.
-
-Tue Feb 10 23:30:32 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/basicsocket.c (bsock_getpeername): use struct
- sockaddr_storage.
- (bsock_local_address): ditto.
- (bsock_remote_address): ditto.
-
-Tue Feb 10 21:26:33 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/lib/socket.rb (Socket.udp_server_sockets): new method.
- (Socket.udp_server_loop_on): new method.
- (Socket.udp_server_loop): new method
- (Socket.ip_sockets_port0): extracted from tcp_server_sockets_port0.
- (Socket::UDPSource): new class.
-
-Tue Feb 10 21:14:43 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/socket.c (sockaddr_obj): fill pfamily.
-
-Tue Feb 10 21:09:23 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/option.c (sockopt_s_bool): new method.
- (sockopt_bool): new method.
-
-Tue Feb 10 20:58:47 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/option.c (sockopt_family_m): renamed from sockopt_family.
- (sockopt_level_m): renamed from sockopt_level.
- (sockopt_optname_m): renamed from sockopt_optname.
- (inspect_local_peercred): follow the renaming.
- (Init_sockopt): ditto.
-
-Tue Feb 10 20:56:07 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/ancdata.c (anc_inspect_socket_creds): refactored to avoid
- a rb_str_cat2 call.
-
-Tue Feb 10 04:34:38 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * configure.in (when): makes parentheses balanced.
-
-Tue Feb 10 01:28:49 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/ancdata.c (ip_cmsg_type_to_sym): renamed from
- cmsg_type_to_sym.
-
-Tue Feb 10 01:22:56 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/option.c (sockopt_inspect): refactored.
-
-Tue Feb 10 01:02:16 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/mkconstants.rb: generate intern_family_noprefix.
-
- * ext/socket/option.c (sockopt_inspect): use intern_family_noprefix
- not to show AF_ prefix.
-
- * ext/socket/ancdata.c (ancillary_inspect): ditto.
-
-Mon Feb 9 23:21:29 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/constants.c (level_arg): use unknown_level_to_int for
- non internet protocol.
- (optname_arg): use only so_optname_to_int for non internet protocol.
- (cmsg_type_arg): use only scm_optname_to_int for non internet
- protocol.
-
- * ext/socket/mkconstants.rb: generate unknown_level_to_int.
- rename iplevel_to_int to ip_level_to_int.
-
-Mon Feb 9 23:04:27 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/mkconstants.rb: rename level_to_int to iplevel_to_int.
- rename intern_level to intern_iplevel.
-
- * ext/socket/constants.c: follow the renaming.
-
- * ext/socket/option.c: ditto.
-
- * ext/socket/ancdata.c: ditto.
-
-Mon Feb 9 22:52:13 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/rubysocket.h (level_arg): add family argument.
- (optname_arg): ditto.
- (cmsg_type_arg): ditto.
- (rb_sock_getfamily): declared.
-
- * ext/socket/constants.c (level_arg): add family argument.
- (optname_arg): ditto.
- (cmsg_type_arg): ditto.
-
- * ext/socket/init.c (rb_sock_getfamily): defined.
-
- * ext/socket/option.c (sockopt_initialize): give family for level_arg
- and optname_arg.
- (sockopt_s_int): ditto.
-
- * ext/socket/basicsocket.c (bsock_setsockopt): ditto.
- (bsock_getsockopt): ditto.
-
- * ext/socket/ancdata.c (ancillary_initialize): ditto.
- (ancillary_s_int): ditto.
- (ancillary_cmsg_is_p): ditto.
- (bsock_sendmsg_internal): ditto.
- (bsock_recvmsg_internal): use rb_sock_getfamily.
-
-Mon Feb 9 21:48:59 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/ancdata.c (ancillary_inspect): show address family.
-
-Mon Feb 9 20:19:36 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/basicsocket.c (bsock_getsockname): use sockaddr_storage.
-
-Mon Feb 9 20:11:55 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/win32ole/win32ole.c (load_conv_function51932): fixed for the
- case IMultiLanguage is not available. [ruby-dev:37950]
-
-Mon Feb 9 20:04:35 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/option.c (inspect_int): return 1/0 on success/failure.
- (inspect_uint): ditto.
- (inspect_linger): ditto.
- (inspect_socktype): ditto.
- (inspect_timeval): ditto.
- (inspect_peercred): ditto.
- (inspect_local_peercred): ditto.
- (sockopt_inspect): refactored.
-
-Mon Feb 9 20:00:26 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/mkconstants.rb: more constants for Solaris.
-
-Mon Feb 9 19:59:18 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/basicsocket.c (bsock_getsockopt): refine address family
- examination.
-
-Mon Feb 9 19:52:32 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/option.c (sockopt_initialize): argument conversion
- reordered.
-
-Mon Feb 9 19:46:22 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/ancdata.c (ancillary_initialize): add family argument.
- (ancdata_new): ditto.
- (ancillary_s_int): ditto.
- (ancillary_family): new function.
- (ancillary_family_m): new method.
- (ancillary_s_ip_pktinfo): follow ancdata_new change.
- (ancillary_s_ipv6_pktinfo): ditto.
- (bsock_recvmsg_internal): examine the socket address family.
-
-Mon Feb 9 11:31:09 2009 NARUSE, Yui <naruse@ruby-lang.org>
-
- * io.c (io_encoding_set): ignore second argument when external and
- internal are same. [ruby-dev:37939]
-
-Mon Feb 9 09:05:12 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/option.c (inspect_local_peercred): check version.
- (sockopt_inspect): suppress warning.
-
-Mon Feb 9 02:04:03 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/option.c (inspect_peercred): struct ucred contains
- effective uid/gid.
-
-Mon Feb 9 00:44:45 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/option.c (sockopt_inspect): add ifdef guard for
- LOCAL_PEERCRED.
-
-Mon Feb 9 00:37:06 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/option.c (inspect_local_peercred): cr_uid is a effective
- uid, not a real uid.
-
-Mon Feb 9 00:30:56 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/extconf.rb: check sys/param.h and sys/ucred.h.
-
- * ext/socket/rubysocket.h: include sys/param.h and sys/ucred.h.
-
- * ext/socket/option.c (inspect_local_peercred): new function to show
- LOCAL_PEERCRED socket option on FreeBSD.
- (sockopt_inspect): show as LOCAL_* socket option if AF_UNIX and level
- is 0.
-
-Mon Feb 9 00:01:47 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/rubysocket.h (sockopt_new): add family argument.
-
- * ext/socket/option.c (sockopt_initialize): add vfamily argument.
- (sockopt_new): add family argument and record it in the object.
- (sockopt_family): new method.
- (sockopt_s_int): add vfamily argument.
- (sockopt_inspect): show family.
-
- * ext/socket/basicsocket.c (bsock_getsockopt): check address family
- using getsockname.
-
-Sun Feb 8 23:37:17 2009 Yusuke Endoh <mame@tsg.ne.jp>
-
- * enumerator.c (enumerator_with_index): receives one argument which
- represents a start offset. [ruby-dev:37921]
-
-Sun Feb 8 23:28:05 2009 Yusuke Endoh <mame@tsg.ne.jp>
-
- * include/ruby/st.h, st.c: order entries by a linked list instead of
- a loop to fix iteration miss when hash is modified during iteration.
- [ruby-dev:37910]
-
-Sun Feb 8 23:22:35 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/option.c (inspect_peercred): new function to show
- SO_PEERCRED socket option on GNU/Linux.
-
-Sun Feb 8 22:44:20 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * include/ruby/backward/rubysig.h (rb_thread_blocking_region_begin),
- (rb_thread_blocking_region_end): marked as deprecated.
-
- * include/ruby/backward/rubysig.h (TRAP_BEG): fix for C++. a
- patch from Aman Gupta at [ruby-core:21934]
-
-Sun Feb 8 21:47:50 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/extconf.rb: check struct cmsgcred.
-
- * ext/socket/ancdata.c (anc_inspect_passcred_credentials): add
- "(ucred)".
- (anc_inspect_socket_creds): show struct cmsgcred too, for FreeBSD.
-
-Sun Feb 8 21:05:35 2009 Tanaka Akira <akr@fsij.org>
-
- * lib/drb/extservm.rb (DRb::ExtServManager#invoke_service_command):
- detach spawned process. [ruby-dev:37936]
-
-Sun Feb 8 20:30:29 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/extconf.rb: check struct sockcred.
-
- * ext/socket/ancdata.c (anc_inspect_socket_creds): new function to
- show SCM_CREDS on NetBSD.
+Wed Oct 5 01:52:16 2011 Aaron Patterson <aaron@tenderlovemaking.com>
-Sun Feb 8 19:05:24 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * ext/psych/parser.c (parse): Use context_mark for indicating error
+ line and column.
- * include/ruby/backward/rubysig.h: extern "C" was missing.
- [ruby-core:21929]
+Wed Oct 5 01:22:08 2011 Aaron Patterson <aaron@tenderlovemaking.com>
-Sun Feb 8 18:46:15 2009 Tanaka Akira <akr@fsij.org>
+ * ext/psych/lib/psych/scalar_scanner.rb: use normal begin / rescue
+ since postfix rescue cannot receive the exception class. Thanks
+ nagachika!
- * ext/socket/ancdata.c (anc_inspect_passcred_credentials): new
- function to show SCM_CREDENTIALS on GNU/Linux.
+Tue Mar 27 22:22:50 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Sun Feb 8 18:34:43 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * configure.in (RUBY_STACK_GROW_DIRECTION): substitute CPU name as
+ shell variable name. based on the patch by The Written Word Inc. at
+ [ruby-core:40421]. [Bug #5488]
- * io.c (rb_io_s_binread): ensures file path. [ruby-dev:37940]
+Mon Mar 26 09:57:12 2012 NARUSE, Yui <naruse@ruby-lang.org>
-Sun Feb 8 13:52:02 2009 Tanaka Akira <akr@fsij.org>
+ * parse.y (parser_nextc): set encoding for the buffer of ripper.
- * ext/socket/raddrinfo.c (init_unix_addrinfo): add socktype argument.
- (addrinfo_initialize): follow init_unix_addrinfo change.
- (addrinfo_s_unix): add optional argument: socktype
+Sun Mar 18 13:23:28 2012 NARUSE, Yui <naruse@ruby-lang.org>
-Sun Feb 8 13:09:32 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * encoding.c (rb_enc_compatible): return ASCII-8BIT even if 2nd string
+ is ascii only string. [ruby-core:42354] [Bug #5968]
- * configure.in (RUBY_APPEND_OPTION, RUBY_APPEND_OPTIONS),
- (RUBY_PREPEND_OPTION, RUBY_PREPEND_OPTIONS): add option(s)
- without duplication.
+Tue Mar 6 18:55:37 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * configure.in (RUBY_DEFINE_IF): changed parameter order, now
- condition comes first.
+ * lib/test/unit/assertions.rb (assert_send, assert_not_send):
+ parenthesize non-empty arguments.
- * configure.in (universal_binary): checks architecture macros, and
- improved thin load paths.
+Tue Mar 6 18:55:37 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Sun Feb 8 09:41:47 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * lib/test/unit/assertions.rb (assert_send): make arguments in
+ the default message clearer.
- * runruby.rb: gets extout and arch from rbconfig.rb.
+Tue Mar 6 12:48:08 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Sat Feb 7 21:26:15 2009 Tanaka Akira <akr@fsij.org>
+ * ext/io/console/console.c (set_rawmode): clear ECHOE and ECHOK
+ bits too.
- * test/socket/test_addrinfo.rb (test_family_addrinfo): don't use
- www.ruby-lang.org.
- http://d.hatena.ne.jp/nagachika/20090204/working_for_0f0e
+ * ext/io/console/console.c (echo_p): ignore ECHOE and ECHOK bits.
+ [ruby-dev:45309] [Bug #6116]
-Sat Feb 7 18:02:48 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * ext/io/console/console.c (console_raw): fix rdoc.
- * configure.in (--with-arch): added new option to support
- universal binary. replaced --enable-fat-binary option which
- didn't work actually.
+ * ext/io/console/console.c (console_set_echo): mentioned about
+ platform dependency.
- * configure.in (RUBY_FUNC_ATTRIBUTE): added conditional test.
+Tue Mar 6 12:40:08 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * configure.in (ac_cv_type_getgroups): declared because getgroups()
- fills rest of the buffer with garbage on Rosetta.
+ * ext/io/console/console.c (console_raw, console_set_raw)
+ (console_getch): optional parameters. [EXPERIMENTAL]
- * configure.in (alloca): defines only for powerpc, but always
- create empty object to suppress ld warning.
+Tue Mar 6 12:39:27 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * configure.in (LIBRUBY_DLDFLAGS): set compatibility version with
- TEENY.
+ * ext/io/console/console.c (console_cooked, console_set_cooked):
+ new methods to reset cooked mode. [EXPERIMENTAL]
- * configure.in (CFLAGS, LDFLAGS): separates ARCH_FLAG.
+Tue Mar 6 12:31:47 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * configure.in (arch): renamed to "universal" from "fat".
+ * ext/io/console/console.c (io_getch): default delegating method
+ for StringIO. https://github.com/nobu/io-console/issues/4
- * Makefile.in (ARCH_FLAG): added.
+ * ext/stringio/stringio.c: moved some methods to hidden modules.
- * include/ruby/defines.h (WORDS_BIGENDIAN): uses
- AC_APPLE_UNIVERSAL_BUILD.
+Tue Mar 6 12:29:34 2012 Eric Hodel <drbrain@segment7.net>
- * missing/alloca.c (alloca): defines only if C_ALLOCA is defined.
+ * io.c (Init_IO): Mention io/console methods. [Ruby 1.9 - Bug #5602]
+ * ext/io/console/console.c: Mention that io/console must be required
+ similar to lib/time.rb
-Sat Feb 7 12:31:03 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Tue Mar 6 11:42:52 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * runruby.rb: added --precommand and --show options.
+ * ext/syck/lib/syck/rubytypes.rb (Exception.yaml_new): fix bug
+ that causes YAML serialization problem for Exception.
+ Exception#initialize doesn't use visible instance variable for
+ the exception message, so call the method with the message.
+ patched by Jingwen Owen Ou <jingweno AT gmail.com>.
+ http://github.com/ruby/ruby/pull/41
- * runruby.rb: added --cpu option.
+Fri Mar 2 22:09:03 2012 Hiroshi Nakamura <nahi@ruby-lang.org>
- * runruby.rb: skips version check in rbconfig.rb.
+ * .travis.yml: Backport TravisCI configuration from trunk.
-Sat Feb 7 11:44:06 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Thu Mar 1 18:39:44 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * lib/mkmf.rb (have_header): needs dependent headers if trying to
- compile.
+ * file.c (rb_file_join): honor input encodings than ASCII-8BIT.
+ [ruby-core:40338] [Bug #5483]
- * ext/socket/extconf.rb: net/if.h depends on other headers.
+Tue Feb 28 11:56:52 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Sat Feb 7 04:02:37 2009 Tanaka Akira <akr@fsij.org>
+ * configure.in (debugflags): check if -ggdb is accepted.
+ [ruby-core:42875][Bug #6080]
- * dir.c (dir_read): don't disable rdoc.
+Mon Feb 27 17:25:40 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Fri Feb 6 23:28:33 2009 Tanaka Akira <akr@fsij.org>
+ * ext/bigdecimal/bigdecimal.c (GetVpValueWithPrec): since methods
+ can be overridden, so should not make an assumption on the type
+ of results. [ruby-core:42969][Bug #6093]
- * io.c (io_fread): use rb_io_wait_readable for retry
- avoid Errno::EINTR on ruby -e 'trap(:CHLD) {}; spawn("sleep 1"); STDIN.read'
+Mon Feb 27 02:28:17 2012 NARUSE, Yui <naruse@ruby-lang.org>
-Fri Feb 6 22:36:11 2009 Alexander Zavorine <alexandre.zavorine@nokia.com>
-
- * thread_pthread.c (native_thread_create) [__SYMBIAN32__]: reduced pthread stack size.
-
- * thread_pthread.c (thread_timer) [__SYMBIAN32__]: compiled out unsupported yet signal-related functionality.
-
- * io.c (pipe_open) [__SYMBIAN32__]: fixed compile time error.
-
-Fri Feb 6 22:11:46 2009 Alexander Zavorine <alexandre.zavorine@nokia.com>
-
- * include/ruby/defines.h [__SYMBIAN32__]: included <sys/select.h> for fd_set definition
-
-Fri Feb 6 21:58:24 2009 Alexander Zavorine <alexandre.zavorine@nokia.com>
-
- * symbian/missing-pips.c: added a stub for missing PIPS function execl.
-
- * process.c (rb_proc_exec) [__SYMBIAN32__]: removed conditional around execl function call.
-
-Fri Feb 6 20:37:42 2009 Tanaka Akira <akr@fsij.org>
-
- * signal.c (register_sigaltstack): ignore sigaltstack error.
- It fails on OpenBSD 4.4 when pthread library is linked.
-
-Fri Feb 6 18:18:07 2009 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * win32/win32.c (rb_w32_readdir_with_enc): fallback to OS's conversion
- when ASCII-8BIT is passed.
-
-Fri Feb 6 17:19:23 2009 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * win32/{dir.h, win32.c} (rb_w32_readdir_with_enc): new function to
- read entry with specified enc.
-
- * win32/win32.c (readdir_internal): extract from rb_w32_opendir().
-
- * win32/win32.c (opendir_internal): extract from rb_w32_readdir().
-
- * dir.c (dir_read, dir_each): use new READDIR macro instead of readdir()
- to pass enc for special version of readdir, such as above.
-
-Fri Feb 6 12:11:24 2009 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * ruby.c (process_options): set initial default_external before -r.
-
-Fri Feb 6 12:03:47 2009 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * ruby.c (process_options): -K and -E in shebang should be reflect to
- default_external. [ruby-dev:37920]
-
-Fri Feb 6 07:52:57 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/pty/pty.c (chfunc): type fixed.
-
-Fri Feb 6 02:51:59 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * string.c (rb_str_each_codepoint): update RDoc for
- String#codepoints. a patch from Radoslaw Bulat in
- [ruby-core:21835]
-
-Fri Feb 6 01:09:13 2009 Yusuke Endoh <mame@tsg.ne.jp>
-
- * cont.c (cont_mark, cont_capture, cont_restore_1): use #else instead
- of #elif. a patch from NISHIMATSU Takeshi <t_nissie at yahoo.co.jp>
- in [ruby-list:45856].
-
-Thu Feb 5 20:28:27 2009 Tanaka Akira <akr@fsij.org>
-
- * include/ruby/intern.h (rb_run_exec_options_err): renamed from
- rb_run_exec_options.
- (rb_exec_err): renamed from rb_exec.
- (rb_fork_err): renamed from rb_fork.
- (rb_spawn_err): renamed from rb_spawn.
- (rb_run_exec_options): declared with 1.9.1 compatible signature.
- (rb_exec): ditto.
- (rb_fork): ditto.
- (rb_spawn): ditto.
-
- * process.c (rb_run_exec_options_err): renamed from
- rb_run_exec_options.
- (rb_exec_err): renamed from rb_exec.
- (rb_fork_err): renamed from rb_fork.
- (rb_spawn_err): renamed from rb_spawn.
- (rb_run_exec_options): defined.
- (rb_exec): ditto.
- (rb_fork): ditto.
- (rb_spawn): ditto.
-
- * io.c: follow above change.
-
- * ext/pty/pty.c: follow above change.
-
- [ruby-dev:37893]
-
-Thu Feb 5 19:58:40 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket: AddrInfo is renamed to Addrinfo. [ruby-dev:37876]
-
-Thu Feb 5 16:18:13 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * configure.in (RUBY_SITE_LIB_PATH, RUBY_VENDOR_LIB_PATH): fix for
- NetBSD.
-
-Thu Feb 5 16:04:29 2009 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * win32/Makefile.sub (config.h): follow recent changes about paths.
-
-Thu Feb 5 14:26:16 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * configure.in (MAJOR, MINOR, TEENY): uses RUBY_VERSION_*.
-
- * mkconfig.rb (prefix): uses ruby_version in config.status.
-
-Thu Feb 5 12:24:18 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * array.c (rb_ary_uniq): gets rid of copying.
-
-Thu Feb 5 12:01:53 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * array.c (ary_add_hash): split from ary_make_hash().
-
- * array.c (ary_make_hash): hide a Hash used internally.
-
- * array.c (ary_recycle_hash): clears internally used hash. this
- name came from [ruby-dev:37908].
-
- * array.c (rb_ary_diff, rb_ary_and, rb_ary_or, rb_ary_uniq_bang):
- recycle hashes.
-
-Thu Feb 5 11:21:35 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * configure.in (RUBY_LIB_VERSION): added for library version, to
- split from core version. [ruby-dev:37748]
-
- * configure.in (RUBY_LIB_PATH, etc): moved actual version
- dependent stuff to version.c.
-
- * ruby.c (ruby_init_loadpath_safe): ditto.
-
- * version.c (ruby_initial_load_paths): moved initial load path
- version depending on version from ruby.c.
-
- * version.h (RUBY_VERSION_{MAJOR,MINOR,TEENY}): now mean library
- and API version, and reverted to 1.9.1. [ruby-dev:37889]
-
-Thu Feb 5 07:39:33 2009 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
-
- * ext/readline/readline.c (Init_readline): remove_history(0) may be
- NULL. [ruby-dev:37891]
-
-Thu Feb 5 03:55:22 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * time.c (LOCALTIME): should call tzset() before localtime_r().
- [ruby-dev:37896]
-
-Thu Feb 5 02:12:35 2009 Alexander Zavorine <alexandre.zavorine@nokia.com>
-
- * symbian/configure.bat: Updated Symbian configuration procedure to
- avoid creating files outside build directory
-
- * symbian/pre-build: ditto
-
- * symbian/setup: ditto
-
- * symbian/rubyu.def: removed
-
-Thu Feb 5 01:44:02 2009 Tanaka Akira <akr@fsij.org>
-
- * transcode.c (make_econv_exception): refine error message for
- undefined conversion. [ruby-core:21828]
-
-Thu Feb 5 01:18:25 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/socket.c (sock_s_socketpair): make 3rd argument optional.
-
- * ext/socket/unixsocket.c (unix_s_socketpair): follow the above
- change.
-
- * ext/socket/rubysocket.h (sock_s_socketpair): ditto.
-
-Thu Feb 5 00:09:39 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/raddrinfo.c (addrinfo_ipv6_to_ipv4): new method.
-
-Wed Feb 4 21:59:31 2009 Tanaka Akira <akr@fsij.org>
-
- * transcode.c (make_econv_exception): show U+XXXX form for undefined
- conversion error from UTF-8.
-
-Wed Feb 4 21:57:37 2009 Tanaka Akira <akr@fsij.org>
-
- * string.c (rb_str_dump): use MBCLEN_CHARFOUND_P properly.
-
-Wed Feb 4 21:55:38 2009 Tanaka Akira <akr@fsij.org>
-
- * bootstraptest/runner.rb: refine success message.
-
-Wed Feb 4 19:10:42 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * Makefile.in (id.h): updates from parse.h.
-
-Wed Feb 4 11:45:06 2009 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * win32/mkexports.rb: shouldn't export DllMain.
- reported at http://pc11.2ch.net/test/read.cgi/tech/1233686068/21
-
-Wed Feb 4 10:12:05 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * missing/vsnprintf.c (BSD_vfprintf): should support 't' format
- modifier to handle PRIdPTRDIFF. thanks for the info from
- Kazuhiro NISHIYAMA. [ruby-core:21807]
-
-Wed Feb 4 01:28:46 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/extconf.rb: fix struct in_pktinfo and struct in6_pktinfo
- detection.
-
-Wed Feb 4 00:32:59 2009 Yusuke Endoh <mame@tsg.ne.jp>
-
- * test/etc/test_etc.rb(test_getpwnam, test_getgrgid, test_getgrnam):
- support an environment that has duplicative entries. a patch from
- Tomoyuki Chikanaga <chikanag at nippon-control-system.co.jp> in
- [ruby-dev:37882].
-
-Wed Feb 4 00:17:52 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/lib/socket.rb (Socket.tcp_server_sockets_port0): skip
- socket creation error.
-
-Tue Feb 3 23:37:08 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ruby.c (load_file_internal): resets EOF flag after parse.
-
-Tue Feb 3 23:13:34 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * vm.c (vm_backtrace): always returns non-nil array if lev is
- negative. [ruby-core:21795]
-
-Tue Feb 3 21:19:06 2009 TAKAO Kouji <kouji@takao7.net>
-
- * ext/readline/extconf.rb: checked rl_set_screen_size and
- rl_get_screen_size.
-
- * ext/readline/readline.c (readline_s_set_screen_size): added
- Readline.set_screen_size.
-
- * ext/readline/readline.c (readline_s_get_screen_size): added
- Readline.get_screen_size.
-
-Tue Feb 3 21:07:19 2009 TAKAO Kouji <kouji@takao7.net>
-
- * ext/readline/readline.c (readline_s_set_completion_proc): set
- default if proc is nil. fix #1095
-
-Tue Feb 3 16:36:06 2009 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
-
- * array.c (rb_ary_sort_by_bang): RDoc update.
-
- * NEWS: add Array#sort_by!.
-
-Tue Feb 3 16:23:16 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/lib/socket.rb (Socket.tcp_server_sockets_port0): new
- private function for allocating same port both IPv4 and IPv6.
- (Socket.tcp_server_sockets): use tcp_server_sockets_port0 for port 0.
-
-Tue Feb 3 14:12:10 2009 Shugo Maeda <shugo@ruby-lang.org>
-
- * lib/net/imap.rb: validate data before sending to a server.
- [ruby-core:20320]
-
-Tue Feb 3 12:35:41 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * re.c (match_array): replace match_check().
-
- * re.c (match_values_at): ditto.
-
-Tue Feb 3 12:09:08 2009 Shugo Maeda <shugo@ruby-lang.org>
-
- * lib/net/imap.rb (hmac_md5): should use String#ord to get ascii
- code from the one-character string.
-
-Tue Feb 3 11:25:41 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * load.c (load_lock): warn for circular require. [ruby-core:20794],
- [ruby-core:20797]
-
-Tue Feb 3 08:35:12 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/lib/socket.rb (Socket.tcp_server_sockets): extracted from
- Socket.tcp_server_loop.
- (Socket.accept_loop): ditto.
- (Socket.unix_server_socket): extracted from Socket.unix_server_loop.
- (Socket.unix_server_loop): use Socket.accept_loop.
-
-Tue Feb 3 08:21:05 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * test/ruby/test_readpartial.rb (make_pipe): readpartial does not
- work in text mode.
-
-Tue Feb 3 08:18:26 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * cygwin/GNUmakefile.in (RUBYDEF): uses mkexports.rb on cygwin too.
-
- * win32/mkexports.rb (Exports::Cygwin): added.
-
-Tue Feb 3 08:10:23 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * common.mk (Doxyfile): moved from Makefile.in.
-
- * template/Doxyfile.tmpl: split from Doxyfile.in.
-
-Tue Feb 3 08:01:38 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * win32/win32.c (rb_w32_write): use of cast expressions as lvalues
- is deprecated.
-
-Tue Feb 3 07:57:58 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/socket/extconf.rb (in_pktinfo, in6_pktinfo),
- ext/socket/ancdata.c: defined in w32api/ws2tcpip.h on cygwin but
- cannot compile for some reason.
-
-Tue Feb 3 07:02:11 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * missing/langinfo.c (nl_langinfo_codeset): accepts iso-8859
- fragment. [ruby-core:21757]
-
-Tue Feb 3 07:01:21 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * mkconfig.rb (patchlevel): config.status may not contain
- PATCHLEVEL even if other version numbers exist.
-
-Mon Feb 2 23:43:00 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/raddrinfo.c (Init_addrinfo): add AddrInfo#to_s as an
- alias of AddrInfo#to_sockaddr.
-
- * ext/socket/option.c (Init_sockopt): add Socket::Option#to_s as an
- alias of Socket::Option#data.
-
- [ruby-dev:37873]
-
-Mon Feb 2 21:04:13 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * array.c (rb_ary_sort_by_bang): RDoc update. [ruby-core:21742]
-
-Mon Feb 2 20:49:24 2009 Akinori MUSHA <knu@iDaemons.org>
-
- * enumerator.c: Introduce id_each to save rb_intern() and SYM2ID()
- calls.
-
-Mon Feb 2 19:55:51 2009 Tanaka Akira <akr@fsij.org>
-
- * test/socket/test_addrinfo.rb: use AddrInfo.getaddrinfo to generate
- IPv6 address. AddrInfo.ip generates IPv4 address for IPv4 mapped
- IPv6 address if --with-lookup-order-hack=INET.
- [ruby-dev:37868]
-
-Mon Feb 2 19:17:16 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * doc/NEWS-1.9.1: typo fixed: collect_all -> collect.
- [ruby-core:21706]
-
-Mon Feb 2 17:23:14 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * cygwin/GNUmakefile.in (dir.o, win32.o): depend on win32/dir.h.
-
-Mon Feb 2 17:13:46 2009 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * mkconfig.rb: patchlevel is sometimes minus.
-
- * win32/resource.rb: ditto.
-
-Mon Feb 2 17:11:23 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/ancdata.c (cmsg_type_to_sym): add #ifdef for no IPv6
- environment.
-
-Mon Feb 2 17:05:55 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * file.c (rb_find_file_ext): should not be infected from other
- load paths.
-
-Mon Feb 2 16:33:06 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * dir.c (dir_s_home): new method. [ruby-core:21454]
-
-Mon Feb 2 16:06:10 2009 Tanaka Akira <akr@fsij.org>
-
- * version.h: bump up to 1.9.2 patchlevel -1.
- yugui recommend "-1" strongly.
-
- * lib/rubygems/version.rb: accept negative patchlevel.
-
-Mon Feb 2 14:53:35 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/socket.c (sock_initialize): make 3rd argument, protocol,
- optional.
-
-Mon Feb 2 14:47:53 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * array.c (rb_ary_sort_by_bang): new method. requested in
- [ruby-core:21709]
-
-Mon Feb 2 14:22:56 2009 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * ext/socket/constants.c (cmsg_type_arg): INET6 check.
-
-Mon Feb 2 14:18:20 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/option.c: use INET6 instead of IPV6.
-
-Mon Feb 2 12:47:47 2009 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * ext/socket/{options,raddrinfo}.c: use INET6 instead of AF_INET6 for
- VC++6.
-
-Mon Feb 2 12:41:52 2009 Shugo Maeda <shugo@ruby-lang.org>
-
- * complex.c (f_signbit): regard NaN as a positive value.
- [ruby-dev:37861].
-
-Mon Feb 2 12:39:00 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * sample/test.rb (valid_syntax?), test/ruby/test_system.rb
- (TestSystem::valid_syntax?): use catch and throw instead of
- return inside BEGIN block.
-
-Mon Feb 2 11:45:10 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/rubysocket.h (cmsg_type_arg): declared.
- (Init_ancdata): ditto.
-
- * ext/socket/init.c (Init_socket_init): call Init_ancdata.
-
- * ext/socket/constants.c (cmsg_type_arg): defined.
-
- * ext/socket/depend: add dependency for ancdata.o.
-
- * ext/socket/mkconstants.rb: generate scm_optname_to_int.
- more constants.
-
- * ext/socket/extconf.rb: add ancdata.o.
-
- * ext/socket/ancdata.c: new file. new method
- BasicSocket#{sendmsg,sendmsg_nonblock,recvmsg,recvmsg_nonblock}
-
-Mon Feb 2 10:57:27 2009 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * win32/win32.c, win32/dir.h (open_dir_handle, rb_w32_opendir,
- move_to_next_entry, rb_w32_readdir, check_valid_dir): change backend
- API from A to W.
-
-Mon Feb 2 10:48:38 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/basicsocket.c (bsock_setsockopt): accept Socket::Option
- object.
- (bsock_getsockopt): return Socket::Option object.
-
- * ext/socket/option.c: new file.
-
- * ext/socket/rubysocket.h (rb_cSockOpt): declared.
- (sockopt_new): ditto.
- (Init_sockopt): ditto.
-
- * ext/socket/init.c (Init_socket_init): call Init_sockopt.
-
- * ext/socket/depend: add dependency for option.o
-
- * ext/socket/mkconstants.rb: generate intern_level, intern_so_optname,
- intern_ip_optname, intern_ipv6_optname, intern_tcp_optname,
- intern_udp_optname and intern_scm_optname.
-
- * ext/socket/extconf.rb: add option.o.
-
-Mon Feb 2 09:49:39 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * vm.c (vm_backtrace_each): progname is not available at
- initializing phase.
-
-Mon Feb 2 08:12:50 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/xmlrpc/server.rb (Server#serve): gets rid of hardcoded
- platform names.
-
- * lib/resolv.rb (Resolv::Hosts::DefaultFileName),
- (Resolv::DNS::Config.default_config_hash): tries win32/resolv on
- mswin64 too.
-
- * lib/rubygems/specification.rb (Gem::Specification#ruby_code):
- added mswin64.
-
- * lib/drb/extservm.rb (DRb::ExtServManager#invoke_service_command):
- spawn is better to start a process in background.
-
- * ext/extmk.rb: uses FNM_SYSCASE.
-
- * instruby.rb: installs win32.h on mswin64 platform.
- [ruby-core:21722]
-
-Mon Feb 2 07:36:13 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * vm.c (vm_backtrace_each): now takes an iterator function.
-
- * vm_core.h (rb_make_backtrace, rb_backtrace_each): added
- prototypes.
-
- * vm_dump.c (rb_vm_bugreport), vm_eval.c (rb_backtrace): gets rid
- of allocating objects. [ruby-core:21619]
-
- * vm_eval.c (rb_backtrace_each): new function which iterates over
- each backtrace info.
-
-Mon Feb 2 06:51:36 2009 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * encoding.c (rb_filesystem_encoding): Windows' filesystem encoding is
- sometimes ANSI code page and sometimes OEM code page. we should check
- whether code page is used.
-
-Sun Feb 1 21:27:55 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/raddrinfo.c (addrinfo_ipv4_private_p): new method.
- (addrinfo_ipv4_loopback_p): ditto.
- (addrinfo_ipv4_multicast_p): ditto.
-
-Sun Feb 1 16:10:06 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/optparse.rb (Switch#summarize): strips an equal sign from
- short option, and fills right sides in shorter lines.
- [ruby-talk:326414]
-
-Sun Feb 1 05:19:43 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * variable.c (rb_const_get_0), vm_insnhelper.c (vm_get_ev_const):
- avoids infinite self recursion autoload. [ruby-core:21696]
-
-Sat Jan 31 22:50:38 2009 Tanaka Akira <akr@fsij.org>
-
- * lib/test/unit/assertions.rb (assert_equal): show class in failure
- message if meaningful.
-
-Sat Jan 31 22:38:46 2009 Tanaka Akira <akr@fsij.org>
-
- * lib/resolv.rb (Resolv::DNS#each_address): don't query IPv6 address
- if the host has no global IPv6 address.
-
-Sat Jan 31 22:29:05 2009 Tanaka Akira <akr@fsij.org>
-
- * include/ruby/ruby.h (STR2CSTR): removed.
- (rb_str2cstr): removed.
-
- * object.c (rb_str2cstr): removed.
-
-Sat Jan 31 20:07:59 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/raddrinfo.c (addrinfo_ipv6_unspecified_p): new method.
- (addrinfo_ipv6_loopback_p): ditto.
- (addrinfo_ipv6_multicast_p): ditto.
- (addrinfo_ipv6_linklocal_p): ditto.
- (addrinfo_ipv6_sitelocal_p): ditto.
- (addrinfo_ipv6_v4mapped_p): ditto.
- (addrinfo_ipv6_v4compat_p): ditto.
- (addrinfo_ipv6_mc_nodelocal_p): ditto.
- (addrinfo_ipv6_mc_linklocal_p): ditto.
- (addrinfo_ipv6_mc_sitelocal_p): ditto.
- (addrinfo_ipv6_mc_orglocal_p): ditto.
- (addrinfo_ipv6_mc_global_p): ditto.
-
-Sat Jan 31 19:09:30 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * load.c (rb_require_safe): raises when the path to be loaded is
- tainted. [ruby-dev:37843]
-
-Sat Jan 31 18:08:59 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * configure.in (optflags): defaulted to -O3 to get rid of slug of
- gcc 4.3.
-
-Sat Jan 31 18:03:41 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/optparse.rb (List#accept, parse_in_order): n option is no
- longer needed.
-
-Sat Jan 31 14:12:43 2009 Tanaka Akira <akr@fsij.org>
-
- * lib/pathname.rb (Pathname#each_child): new method.
-
-Sat Jan 31 00:07:49 2009 Tanaka Akira <akr@fsij.org>
-
- * lib/test/unit/assertions.rb
- (Test::Unit::Assertions#assert_nothing_raised): suppress warning.
- [ruby-core:21312]
-
-Fri Jan 30 21:49:32 2009 Tanaka Akira <akr@fsij.org>
-
- * lib/pathname.rb (Pathname#realdirpath): new method based on the
- patch in [ruby-dev:36560] by Akinori MUSHA.
- [ruby-dev:36290]
-
-Fri Jan 30 18:04:23 2009 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * win32/win32.c (rb_w32_write): limit write size to 32KB if the file
- seems to be console. [ruby-core:21613]
-
-Fri Jan 30 16:12:32 2009 TAKAO Kouji <kouji@takao7.net>
-
- * ext/curses/curses.c (Init_curses): Curses#crmode and
- Curses#nocrmode changes to the module function.
- fix #916
-
-Fri Jan 30 14:31:14 2009 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * tool/make-snapshot (prereq): remove enc.mk from tarball because
- BSD make checks $(srcdir)/enc.mk and try to run $(builddir)/enc.mk.
-
-Fri Jan 30 14:11:48 2009 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * enc/depend: extract compile rules to each target for nmake.
-
-Fri Jan 30 12:59:49 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * cygwin/GNUmakefile.in (RUBYDEF): depends on makefiles.
-
- * cygwin/GNUmakefile.in (RUBYDEF): adds DATA to non-function symbols
- which is not marked as T.
-
-Fri Jan 30 11:03:31 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/test/unit/assertions.rb (assert_respond_to): gets rid of
- overcounting. [ruby-dev:37703]
-
-Fri Jan 30 02:55:56 2009 Tanaka Akira <akr@fsij.org>
-
- * transcode.c (rb_econv_init_by_convpath_i): make it static.
-
-Thu Jan 29 16:22:41 2009 Shugo Maeda <shugo@ruby-lang.org>
-
- * load.c (rb_feature_provided): should not calculate len by pointer
- subtraction because feature may be a expanded path.
- [ruby-core:21267]
-
-Thu Jan 29 14:12:15 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * configure.in (BASERUBY): erases RUBYOPT at the test.
-
- * configure.in (OBJCOPY): not used on Windows.
-
-Thu Jan 29 13:16:11 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/securerandom.rb (SecureRandom.uuid): uses unpacked array
- instead of string, because String#[] returns one length string.
-
-Thu Jan 29 12:29:51 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/rake.rb (FileUtils#rake_system): no longer needs workaround
- on Windows. [ruby-core:21339]
-
- * lib/rake/win32.rb (Rake::Win32#rake_system): ditto.
-
- * lib/rake/win32.rb (Rake::Win32#win32_system_dir): no longer
- needs environment variables other than APPDATA now.
-
- * lib/rake.rb (Rake::Application#standard_system_dir): uses
- platform specific definition on Windows system.
-
-Thu Jan 29 12:18:54 2009 Technorama Ltd. <oss-ruby@technorama.net>
-
- * lib/securerandom.rb: new method SecureRandom#uuid
-
-Thu Jan 29 11:22:19 2009 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * ext/socket/raddrinfo.c (inspect_sockaddr): if defined AF_INET6,
- perhaps can inspect IPv6 addresses if not defined INET6.
-
- * ext/socket/socket.c (socket_s_ip_address_list): support Windows XP
- or later. (Win2k or earlier is still not supported)
-
-Thu Jan 29 00:24:48 2009 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * ext/zlib/zlib.c (zstream_run): previous change didn't resolve the
- problem.
-
-Wed Jan 28 22:51:12 2009 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * ext/zlib/zlib.c (zstream_run): desperately guard the variable.
- [ruby-core:20576]
-
-Wed Jan 28 15:24:11 2009 TAKANO Mitsuhiro (takano32) <tak@no32.tk>
-
- * math.c: SEGV is caused by implicit rb_to_float declaration
- test_complexrational.rb: [BUG] in IA-64 architecture
-
-Tue Jan 27 20:02:07 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/init.c (socks_connect_blocking): moved from
- sockssocket.c. [ruby-dev:37834]
-
- * sockssocket.c (socks_init): don't omit "int" type.
-
-Tue Jan 27 14:41:33 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * cygwin/GNUmakefile.in (RUBYDEF): needs DATA marks to export
- non-function symbols. [ruby-core:21582]
-
- * win32/mkexports.rb (Exports::Mingw#each_export): ditto.
-
-Tue Jan 27 12:59:55 2009 NARUSE, Yui <naruse@ruby-lang.org>
-
- * ext/ripper/depend: use VPATH.
- If a platform doesn't support VPATH, Ruby doesn't support it:
- for example MSYS. [ruby-core:21570]
-
-Tue Jan 27 12:21:17 2009 NARUSE, Yui <naruse@ruby-lang.org>
-
- * ext/ripper/depend: lex.c's correct path is ../../lex.c.
-
-Tue Jan 27 11:09:45 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/mkmf.rb (try_header): checks the header depending on
- platform.
-
- * lib/mkmf.rb (have_header, find_header): use try_header.
-
- * win32/Makefile.sub (try_header): uses try_compile to get rid of
- slow -E option of VC.
-
-Tue Jan 27 11:03:52 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * common.mk (distclean-enc, realclean-enc): do not call clean of
- enc.mk twice or more.
-
- * enc/depend (cleanobjs): added deffile.
-
- * lib/mkmf.rb (create_makefile): removes deffile at clean instead
- of distclean.
-
- * win32/Makefile.sub (miniruby, LIBRUBY_SO): removes lib and exp
- files.
-
- * win32/Makefile.sub (clean, distclean): have moved to common.mk.
-
- * win32/rmdirs.bat: omits `not empty' message.
-
-Tue Jan 27 10:15:33 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * transcode.c (struct rb_transcoding): added ary member for debug.
-
-Tue Jan 27 10:10:14 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * Doxyfile.in (FILE_VERSION_FILTER, INPUT_FILTER): should not use
- ./miniruby directly for cross compiling.
-
-Tue Jan 27 04:02:53 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * ext/ripper/depend: fixed dependency path to lex.c.
- [ruby-core:21570]
-
-Tue Jan 27 03:43:34 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * hash.c (rb_any_hash): fixed performance issues with nil, true,
- false as hash keys. a patch from Matthias Waechter.
- [ruby-core:21568]
-
-Tue Jan 27 03:23:43 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/mkmf.rb (create_makefile): should point correct path to
- ruby.h and defines.h. [ruby-core:21569]
-
-Mon Jan 26 16:00:40 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * array.c (rb_ary_aset): fixed arguments evaluation order.
-
-Mon Jan 26 15:49:42 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/pathname.rb (chop_basename, prepend_prefix): use o option.
-
-Sun Jan 25 16:35:44 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/socket.c (socket_s_ip_address_list): renamed from
- socket_s_list_ip_address. [ruby-dev:37806]
-
-Sun Jan 25 12:17:21 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * cygwin/GNUmakefile.in (RUBYDEF): needs read-only section too.
-
-Sun Jan 25 12:02:56 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * win32/Makefile.sub (clean-ext): condition of EXTS was inverted.
-
-Sun Jan 25 11:50:20 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/mkmf.rb (create_makefile): fixed the variables order because
- converter proc refers the separator.
-
-Sun Jan 25 11:25:10 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * Makefile.in, win32/Makefile.sub (RMDIRS): remove directory and
- parents.
-
- * Makefile.in, win32/Makefile.sub (distclean-rdoc): added to remove
- temporary rdoc.
-
- * Makefile.in, win32/Makefile.sub (clean-ext): skips non-existent
- directories.
-
- * common.mk (clean, distclean): cleans rdoc.
-
- * common.mk (clean-extout): removes extout directory.
-
- * configure.in (RMDIRS, RMALL): added to clean extout.
-
- * lib/fileutils.rb (FileUtils#rmdir): added :parents option.
-
- * lib/mkmf.rb (create_makefile): cleans installed files at clean
- instead of distclean.
-
- * lib/mkmf.rb (create_makefile): added clean-so and clean-rb.
-
- * lib/mkmf.rb (def init_mkmf): added DISTCLEANDIRS.
-
- * lib/un.rb (rmdir): added -p option.
-
- * tool/rmdirs, win32/rmdirs.bat: removes directory and the parents.
-
- * win32/rm.bat: added -r option.
-
-Sun Jan 25 09:09:29 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * dir.c (join_path): use strlcat() to force link.
-
- * dir.c (glob_helper): no strcpy() is needed since len is known.
-
-Sun Jan 25 06:44:58 2009 Technorama Ltd. <oss-ruby@technorama.net>
-
- * ext/openssl/ossl_ssl.c: Server Name Indication support.
- new methods SSLContext#server_name_cb=, SSLSocket#hostname=.
-
- * test/openssl/test_ssl.rb: Tests for above.
-
-Sat Jan 24 08:22:35 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/mkmf.rb (configuration): tools under the top source
- directory are not installed, so unusable outside extmk.rb.
-
-Fri Jan 23 17:24:31 2009 WATANABE Hirofumi <eban@ruby-lang.org>
-
- * golf_prelude.rb (Enumerator#inspect): avoid warning.
-
-Fri Jan 23 15:12:52 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/mkmf.rb (mkintpath): new function which converts native path
- to format acceptable in Makefile.
-
- * lib/mkmf.rb (configuration): leaves PATH_SEPARATOR unchanged.
-
- * lib/mkmf.rb (configuration): converts srcdir, topdir and hdrdir.
- a patch by Alexey Borzenkov <snaury AT gmail.com> at
- [ruby-core:21448].
-
- * lib/mkmf.rb (try_func): got rid of c-mode confusion.
-
-Fri Jan 23 13:26:45 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * signal.c (trap_handler): also accepts symbols. [ruby-dev:37823]
-
-Thu Jan 22 18:14:04 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/mkmf.rb (create_makefile): removes installed files under
- extout at distclean.
-
-Thu Jan 22 17:12:37 2009 Takeyuki FUJIOKA <xibbar@ruby-lang.org>
-
- * lib/cgi/core.rb (CGI.parse): generate only key on params hash
- if request have only key uri parameters.
- (ex. index.cgi?aaa&bbb=1 # params=>{:aaa=>[],:bbb=>["1"]})
-
- * test/cgi/test_cgi_core.rb: fix test for key only params.
-
-Thu Jan 22 16:29:50 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/rubygems/installer.rb (Gem::Installer#initialize): fixed
- typos.
-
- * test/rubygems/test_gem.rb (test_self_dir): removed false
- assertions.
-
- * test/rubygems/test_gem.rb (test_self_set_paths): checks if paths
- are included.
-
- * test/rubygems/test_gem_commands_install_command.rb
- (test_execute_remote): checks diagnostic message too.
-
- * test/rubygems/test_gem_installer.rb (load): uses Gem.ruby.
-
- * test/rubygems/gemutilities.rb (Gem.ruby): initializes from the
- environment variable to run without installation.
-
- * test/rubygems/gemutilities.rb (RubyGemTestCase#util_build_gem):
- creates cache directory.
-
-Thu Jan 22 16:12:51 2009 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * revert previous revision. it's already out-of-date.
-
-Thu Jan 22 15:54:02 2009 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * include/ruby/win32.h, win32/win32.c (rb_w32_is_valid_fd): new function
- to validate fd.
-
- * io.c (rb_io_initialize): check fd with above function.
-
-Thu Jan 22 14:53:29 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * test/ruby/test_process.rb (MANDATORY_ENVS): needs RUBYLIB to run
- tests without install.
-
-Thu Jan 22 12:19:29 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * gc.c (define_final): cannot define finalizer for immediate
- values. [ruby-core:21500]
-
- * gc.c (define_final): freezes or hides internal values.
-
-Thu Jan 22 11:33:08 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * thread.c (rb_time_timeval): made a real prototype. a patch from
- Marcus Rueckert <darix AT opensu.se> at [ruby-core:21492].
-
-Wed Jan 21 21:43:50 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * io.c (rb_io_ungetbyte, rb_io_ungetc): allows nil to reset EOF
- flag with ungetting nothing.
-
- * ruby.c (load_file_internal): rests EOF flag to make possible to
- load from stdin after reading data.
-
-Wed Jan 21 17:17:18 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * array.c (ary_double_capa): a new function to expand array more
- aggressively. [ruby-core:21460]
-
- * array.c (rb_ary_store): use ary_double_capa().
+ * regparse.c (add_code_range_to_buf0): wrong condition of duplicated
+ warnings.
- * array.c (rb_ary_unshift_m): ditto.
+Sun Feb 26 12:26:26 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * array.c (rb_ary_splice): ditto.
+ * compile.c (iseq_compile_each): call on special object instead of
+ self. since stabby lambda is a syntax, so it should not be
+ affected by the context. [ruby-core:42349][Bug #5966]
-Wed Jan 21 15:32:15 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * insns.def (send): no special deal for FCALL. self should be put
+ on TOS instead.
- * io.c (rb_io_ungetbyte, rb_io_ungetc): clears EOF flag.
+Sat Feb 25 23:47:49 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Wed Jan 21 14:41:48 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+ * file.c (utime_internal): fix a variable missed to replace.
+ [ruby-core:42864] [Bug #6077]
- * array.c (take_items): to_ary() raises ArgumentError if cannot to
- convert to Array. [ruby-dev:37797]
+Sat Feb 25 21:29:09 2012 URABE Shyouhei <shyouhei@ruby-lang.org>
-Wed Jan 21 14:32:02 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * test/ruby/test_literal.rb (TestRubyLiteral#test_special_const):
+ test for https://bugs.php.net/bug.php?id=61095
- * parse.y (debug_lines): calls rb_intern() once.
+Sat Feb 25 21:29:09 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Wed Jan 21 13:58:17 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * dir.c, file.c, io.c (rb_sys_fail_path): use rb_sys_fail_str.
- * include/ruby/io.h (FMODE_EOF): EOF flag on TTY.
+ * error.c: new functions to deal exceptions with string instances.
- * io.c (io_set_eof): sets EOF flag for TTY.
+ * dir.c, file.c, io.c: use rb_sys_fail_path.
- * io.c (io_seek): clears EOF flag.
+Sat Feb 25 21:18:12 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * io.c (io_fillbuf): returns EOF if already met EOF. [ruby-dev:37798]
+ * dir.c (dir_inspect), io.c (rb_io_inspect): keep encoding of path.
+ [Bug #6072]
- * io.c (io_fillbuf, io_fread, io_getpartial): sets EOF.
+Sat Feb 25 21:18:12 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Wed Jan 21 08:22:04 2009 Ryan Davis <ryand-ruby@zenspider.com>
+ * dir.c (dir_initialize): keep path in original encoding.
- * lib/minitest/*.rb: Imported minitest 1.3.1 r4532.
- * test/minitest/*.rb: ditto.
+ * error.c (syserr_initialize): prefer the encoding of message over
+ locale. [ruby-dev:45279][Bug #6071]
-Tue Jan 20 20:16:21 2009 Tanaka Akira <akr@fsij.org>
+Sat Feb 25 17:10:51 2012 NARUSE, Yui <naruse@ruby-lang.org>
- * ext/socket/socket.c (socket_s_list_ip_address): new method.
- (sockaddr_obj): new function.
+ * lib/fileutils.rb: use chomp(?/) instead of sub to optimize and avoid
+ to regexping invalid string.
- * ext/socket/rubysocket.h: include ifaddrs.h, sys/ioctl.h,
- sys/sockio.h, net/if.h if available.
- (addrinfo_new): declared.
+Sat Feb 25 16:39:13 2012 NARUSE, Yui <naruse@ruby-lang.org>
- * ext/socket/raddrinfo.c (addrinfo_new): exported.
+ * complex.c (nucomp_marshal_load): raise error on invalid data.
+ reported by John Firebaugh [ruby-core:42860] [Bug #6076]
- * ext/socket/extconf.rb: check ifaddrs.h, sys/ioctl.h, sys/sockio.h,
- net/if.h and getifaddrs.
+Fri Feb 24 23:49:05 2012 Marc-Andre Lafortune <ruby-core@marc-andre.ca>
-Tue Jan 20 20:05:21 2009 Tanaka Akira <akr@fsij.org>
+ * lib/ostruct.rb (delete_field): Bug fix so previous value is
+ returned. Patch by Nick Recobra [Bug #6063]
- * ext/socket/rubysocket.h (pseudo_AF_FTIP): moved from mkconstants.rb.
+Fri Feb 24 08:53:28 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * ext/socket/mkconstants.rb: prepend header if -H is not given.
+ * parse.y (parser_tokadd_string, parser_yylex): insert a backslash
+ if the next character is non-ascii. [ruby-dev:45278] [Bug #6069]
-Tue Jan 20 17:50:00 2009 NARUSE, Yui <naruse@ruby-lang.org>
+Thu Feb 23 14:44:36 2012 NARUSE, Yui <naruse@ruby-lang.org>
- * ext/nkf/nkf-utf8/nkf.c (nkf_buf): use nkf_char.
+ * lib/uri/common.rb (URI::Parser#initialize_regexp):
+ use \A \z instead of ^ $. [Bug #5843]
-Tue Jan 20 16:17:12 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Thu Feb 23 08:08:23 2012 NAKAMURA Usaku <usa@ruby-lang.org>
- * cont.c (ruby_Init_{Continuation_body,Fiber_as_Coroutine}): prefixed
- with ruby_ to export.
+ * win32/win32.c (rb_w32_uchmod): typo. [Bug#5671] [ruby-dev:44898]
- * ext/continuation/continuation.c, ext/fiber/fiber.c: ditto.
+ * test/ruby/test_file.rb (TestFile#test_chmod_m17n): test of above bug.
-Tue Jan 20 15:32:29 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Wed Feb 22 23:27:52 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * Makefile.in (miniruby): renames and then removes, to get rid of
- EPERM on cygwin and mingw.
+ * test/iconv/test_option.rb: enabled. [ruby-core:42802][Bug #6061]
- * Makefile.in ($(LIBRUBY_SO)): use wildcard option of objcopy.
+Wed Feb 22 22:04:15 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * configure.in (DLDFLAGS): do not export all symbols.
-
- * cygwin/GNUmakefile.in (RUBYDEF): rejects symbols prefixed with
- Init_.
+ * io.c (rb_io_s_foreach): argument check before making Enumerator.
+ [ruby-dev:31525]
- * win32/mkexports.rb (Exports::Mingw): includes all symbols as
- well as mswin32, except for prefixed with Init_.
+Wed Feb 22 22:04:15 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Tue Jan 20 13:03:50 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * io.c (rb_io_s_foreach): return enumerator including kerword
+ arguments. [ruby-dev:45267][Bug #6054]
- * string.c (hash): fixed the tail bytes handling in the aligned
- access case.
+Wed Feb 22 21:42:16 2012 NARUSE, Yui <naruse@ruby-lang.org>
-Tue Jan 20 09:26:05 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+ * configure.in: remove workaround replacement from gcc to gcc-4.2.
+ [Backport #6043]
- * ext/nkf/nkf-utf8/nkf.c (nkf_buf_push): maybe a bug.
+Wed Feb 22 08:11:06 2012 Narihiro Nakamura <authornari@gmail.com>
- * ext/nkf/nkf-utf8/nkf.c (options): no need to support help option.
+ * gc.c : remove gc_clear_mark_on_sweep_slots() and use
+ rest_sweep() instead of it, because some dead objects might be
+ marked in next the mark phase by false pointers.
+ [ruby-core:42672]
-Tue Jan 20 06:48:56 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Sun Feb 19 12:27:24 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * array.c (take_items), enum.c (enum_zip): tries to convert to
- array first. [ruby-core:21442]
+ * configure.in: ignore all warnings from an arbitrary
+ header in /usr/local/include.
-Tue Jan 20 03:50:37 2009 NARUSE, Yui <naruse@ruby-lang.org>
+Fri Feb 17 12:51:25 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * ext/nkf/nkf-utf8/nkf.c: Update nkf to 2.0.9.
- revert -s meaning as Shift_JIS, etc.
+ * lib/mkmf.rb (create_header): log the content of header.
-Tue Jan 20 03:42:32 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Fri Feb 17 12:26:15 2012 CHIKANAGA Tomoyuki <nagachika00@gmail.com>
- * string.c (hash): fixed typo. [ruby-dev:37791]
+ * test/readline/test_readline.rb (test_completion_proc_empty_result):
+ ensure clearance of Readline's line_buffer after the test.
-Tue Jan 20 01:15:27 2009 Tanaka Akira <akr@fsij.org>
+Fri Feb 17 11:46:39 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * ext/socket/mkconstants.rb (SOMAXCONN): defined.
+ * test/readline/test_readline.rb (test_line_buffer__point): use
+ lambda not to exit entire method by "return". or "next" for
+ proc. [ruby-dev:45042] [Bug #5802]
-Mon Jan 19 22:31:35 2009 Tanaka Akira <akr@fsij.org>
+Fri Feb 17 10:15:54 2012 Tanaka Akira <akr@fsij.org>
- * ext/socket/mkconstants.rb: use erb for generating code.
+ * ext/dbm/extconf.rb: check _DB_H_ macro unavailable except
+ Berkeley DB library.
-Mon Jan 19 17:33:47 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Fri Feb 17 10:14:47 2012 Tanaka Akira <akr@fsij.org>
- * string.c (hash): defaulted to MurmurHash 2.0.
+ * test/dbm/test_dbm.rb: fix skip condition for libgdbm 1.8.0 or prior.
+ reported by Bohuslav Kabrda.
+ [ruby-core:42685] [ruby-trunk - Bug #6036]
-Mon Jan 19 17:29:34 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Fri Feb 17 09:53:46 2012 NARUSE, Yui <naruse@ruby-lang.org>
- * include/ruby/defines.h (RUBY_ALIAS_FUNCTION_TYPE): added.
+ * tool/transcode-tblgen.rb (import_ucm): don't use \h because the
+ script should work with ruby 1.8.
-Mon Jan 19 17:24:05 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * tool/enc-unicode.rb: ditto.
- * vm_dump.c (vm_stack_dump_each): used only if debug mode.
+Thu Feb 16 17:54:14 2012 NARUSE, Yui <naruse@ruby-lang.org>
-Mon Jan 19 16:32:35 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * ext/dbm/extconf.rb: merge trunk's ext/dbm/extconf.rb and
+ related functions of lib/mkmf.rb. [Backport #6021]
- * string.c (hash): added MurmurHash 2.0.
+Thu Feb 16 09:25:52 2012 NARUSE, Yui <naruse@ruby-lang.org>
-Mon Jan 19 14:31:59 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * configure.in (enable_pthread): use -pthread on OpenBSD without
+ explicit option. patched by Jeremy Evans. [ruby-core:38572]
- * thread.c (rb_thread_execute_interrupts): needs
- rb_signal_buff_size to be declared.
+Thu Feb 16 07:34:34 2012 CHIKANAGA Tomoyuki <nagachika00@gmail.com>
-Mon Jan 19 13:34:25 2009 Koichi Sasada <ko1@atdot.net>
+ * cont.c (rb_fiber_reset_root_local_storage): add a new function to
+ restore rb_thread_t::local_storage.
- * ruby.c (require_libraries): reset th->parse_in_eval while
- loading libraries. fixes [ruby-dev:37780]
+ * cont.c (rb_obj_is_fiber): add a new function to tell finalizer to
+ prevent fibers from destroy.
-Mon Jan 19 11:46:39 2009 Koichi Sasada <ko1@atdot.net>
+ * gc.c (rb_objspace_call_finalizer): don't sweep fibers at finalizing
+ objspace.
- * vm_eval.c, eval.c (rb_f_block_given_p): move definition of
- "iterator?" and "block_given?" to make static.
+ * internal.h (rb_fiber_reset_root_local_storage, rb_obj_is_fiber):
+ add prototypes.
- * vm.c (vm_get_ruby_level_caller_cfp): make it static.
+ * vm.c (ruby_vm_destruct): reset main thread's local_storage before
+ free main thread. rb_thread_t::local_storage is replaced by fiber's
+ local storage when forked from fiber, and it should be already freed
+ when the fiber was destroyed. [ruby-core:41456] [Bug #5700]
- * eval_intern.h, vm_insnhelper.c: move decl. of
- vm_get_ruby_level_caller_cfp()
- from eval_intern.h to vm_insnhelper.c.
+ * test/ruby/test_fiber.rb (test_fork_from_fiber): add test for fork
+ from fiber.
-Mon Jan 19 11:27:39 2009 Koichi Sasada <ko1@atdot.net>
+Thu Feb 16 06:30:37 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * vm.c: add a prefix "rb_" to exposed functions
- vm_get_ruby_level_next_cfp(), rb_vm_make_env_object(),
- vm_stack_to_heap(), vm_make_proc(), vm_invoke_proc(),
- vm_get_sourceline(), vm_cref(), vm_localjump_error(),
- vm_make_jump_tag_but_local_jump(), vm_jump_tag_but_local_jump().
- This changes may affect only core because most of renamed functions
- require a pointer of not-exposed struct such as rb_thread_t or NODE.
- In short, they are core functions.
+ * ext/fiddle/closure.c (callback): deal with unsinged integers.
+ [ruby-core:42458][Bug #5991][Bug #6022]
- * cont.c, eval.c, eval_intern.h, load.c, proc.c, thread.c,
- vm_core.h, vm_dump.c, vm_eval.c, vm_exec.c, vm_insnhelper.c:
+ * ext/fiddle/conversions.c (value_to_generic, generic_to_value):
ditto.
-Mon Jan 19 11:22:51 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/socket/rubysocket.h (rb_cUNIXSocket, rb_cUNIXServer),
- (unixpath, unixaddr): UNIX domain sockets depend on sys/un.h.
-
-Mon Jan 19 11:02:30 2009 Koichi Sasada <ko1@atdot.net>
-
- * vm_dump.c: add a prefix "rb_vmdebug_" to
- vm_stack_dump_raw(), vm_stack_dump_raw_current(),
- vm_env_dump_raw(), vm_proc_dump_raw(), vm_stack_dump_th(),
- vm_debug_print_register(), vm_thread_dump_regs(),
- vm_debug_print_pre(), vm_debug_print_post(),
- vm_thread_dump_state().
- This change also may affect core (in fact, user of
- above functions may be only ko1).
-
- * vm_core.h: ditto.
-
- * vm_exec.h (SDR2): remove duplicate definition.
-
-Mon Jan 19 11:00:44 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/socket/raddrinfo.c (addrinfo_ip_port): use AF_INET6 only when
- defined, as well as addrinfo_ipv6_p().
-
-Mon Jan 19 10:43:38 2009 Koichi Sasada <ko1@atdot.net>
-
- * gc.c (garbage_collect_with_gvl): suppress warnings.
-
-Mon Jan 19 10:34:32 2009 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * ext/socket/depend: workaround for nmake. files in depend without
- paths should converted by RULE_SUBST, but mkmf.rb cannot recognize
- macros currently.
-
-Mon Jan 19 09:53:43 2009 Koichi Sasada <ko1@atdot.net>
-
- * iseq.c:
- rename ruby_iseq_disasm_insn() -> rb_iseq_disasm_insn().
- rename ruby_iseq_disasm() -> rb_iseq_disasm().
-
- * compile.c:
- rename ruby_iseq_compile() -> rb_iseq_compile_node().
- rename ruby_iseq_translate_threaded_code() ->
- rb_iseq_translate_threaded_code().
- rename ruby_insns_name_array() -> rb_insns_name_array().
- rename ruby_iseq_build_from_ary() -> rb_iseq_build_from_ary().
-
- * iseq.c, compile.c: remove ruby_insn_make_insn_table() and make
- static function insn_make_insn_table().
-
- * iseq.h, ruby.c, vm.c, vm_core.h, vm_eval.c, vm_dump.c,
- blockinlining.c: ditto.
- Rename strange "ruby_" prefix to "rb_" prefix.
- This changes may affect only core because renamed functions
- require a pointer of rb_iseq_t which is not exposed.
-
-Mon Jan 19 09:21:04 2009 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * ext/socket/mkconstants.rb: define macros with default value in
- constdefs.h if not exist them.
-
- * ext/socket/raddrinfo.c (addrinfo_mdump, addrinfo_mload): support
- UNIX socket only on platforms which support it.
-
-Mon Jan 19 08:56:53 2009 Koichi Sasada <ko1@atdot.net>
-
- * eval.c, vm_eval.c (rb_f_local_variables): move definition from eval.c
- to vm_eval.c because vm_collect_local_variables_in_heap() should
- be static function.
-
- * vm.c (vm_collect_local_variables_in_heap): make it static.
-
-Mon Jan 19 04:06:10 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * iseq.c (rb_iseq_load): renamed from ruby_iseq_load, since it is
- for C extensions or the ruby core. [ruby-core:21407]
-
-Mon Jan 19 03:06:22 2009 NARUSE, Yui <naruse@ruby-lang.org>
-
- * transcode.c (str_transcode0): fix: :xml option doesn't
- work on str.encode([options]) form without default_internal.
-
-Sun Jan 18 16:56:46 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/raddrinfo.c (addrinfo_inspect_sockaddr): new
- method AddrInfo#inspect_sockaddr.
- (inspect_sockaddr): extracted from addrinfo_inspect.
- (addrinfo_inspect): use inspect_sockaddr.
- (Init_addrinfo): define the new method.
-
-Sun Jan 18 16:46:37 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/raddrinfo.c (addrinfo_ip_address): new method
- AddrInfo#ip_address.
- (addrinfo_ip_port): new method AddrInfo#ip_port.
- (Init_addrinfo): define the methods above.
-
-Sun Jan 18 14:29:52 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/unixsocket.c: redundant #ifdef removed.
-
-Sun Jan 18 03:33:23 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/raddrinfo.c (addrinfo_mdump): don't use symbol.
- (addrinfo_mload): ditto.
-
-Sun Jan 18 03:05:20 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/raddrinfo.c (addrinfo_mdump): new method.
- (addrinfo_mload): new method.
- (Init_addrinfo): define the method above.
-
- * ext/socket/constants.c (constant_arg): str_to_int's first argument
- constified.
-
- * ext/socket/mkconstants.rb (gen_name_to_int_decl): generated
- function's first argument constified.
- (gen_name_to_int_func_in_guard): ditto.
- (ipproto_to_int): generated.
-
- * ext/socket/rubysocket.h (IS_IP_FAMILY): moved from raddrinfo.c.
-
-Sun Jan 18 01:37:50 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/socket.c (sock_s_getnameinfo): accept AddrInfo object.
-
- * ext/socket/raddrinfo.c (rb_check_sockaddr_string_type): defined.
-
- * ext/socket/rubysocket.h (rb_check_sockaddr_string_type): declared.
-
-Sat Jan 17 22:01:15 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/lib/socket.rb: new file.
-
-Sat Jan 17 19:33:48 2009 Yuki Sonoda (Yugui) <yugui@yugui.jp>
-
- * configure.in (VCSUP): fixed the cases for git-svn or git.
-
- * win32/Makefile.sub (VCSUP): ditto.
-
- * Makefile.in (up): `cd' is necessary for git and git-svn.
-
-Sat Jan 17 19:16:16 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/mkconstants.rb: generate a header file for generated
- functions.
-
- * ext/socket/rubysocket.h: include constdefs.h. don't declare
- generated functions.
-
- * ext/socket/constants.c: include constdefs.c instead of constants.h.
-
- * ext/socket/depend: dependency updated.
-
-Sat Jan 17 17:58:22 2009 Yuki Sonoda (Yugui) <yugui@yugui.jp>
-
- * lib/irb/xmp.rb: multilingualizes XMP::StringInputMethod.
- [ruby-core:21383].
-
-Sat Jan 17 15:01:22 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/raddrinfo.c (make_inspectname): add a res argument to
- suppress numeric inspectname.
- (init_addrinfo_getaddrinfo): call make_inspectname here.
- (addrinfo_firstonly_new): follow make_inspectname change.
- (addrinfo_list_new): ditto.
- (addrinfo_initialize): follow init_addrinfo_getaddrinfo change.
-
-Sat Jan 17 14:52:27 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/mkconstants.rb: don't cause an error for duplicate names.
-
-Sat Jan 17 12:46:17 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket: split files for each class.
-
- * ext/socket/rubysocket.h: common header.
-
- * ext/socket/basicsocket.c: new file for BasicSocket.
-
- * ext/socket/ipsocket.c: new file for IPSocket.
-
- * ext/socket/tcpsocket.c: new file for TCPSocket.
-
- * ext/socket/tcpserver.c: new file for TCPServer.
-
- * ext/socket/sockssocket.c: new file for SOCKSSocket.
-
- * ext/socket/udpsocket.c: new file for UDPSocket.
-
- * ext/socket/unixsocket.c: new file for UNIXSocket.
-
- * ext/socket/unixserver.c: new file for UNIXServer.
-
- * ext/socket/socket.c: now for Socket.
-
- * ext/socket/raddrinfo.c: new file for AddrInfo and name resolution.
-
- * ext/socket/constants.c: new file for constants.
-
- * ext/socket/init.c: new file for utilities.
-
- * ext/socket/mkconstants.rb: export *_to_int.
-
- * ext/socket/extconf.rb: add new object files.
-
- * ext/socket/depend: add dependencies for new files.
-
- * ext/.document: add new files.
-
-Sat Jan 17 11:12:37 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * cont.c (cont_restore_0): padding size doesn't need to be large
- if alloca is used. suppress warnings.
-
-Sat Jan 17 11:12:21 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * vm_dump.c (vm_stack_dump_each): initialized at declarations.
-
- * vm_dump.c (rb_vm_bugreport): constified to suppress a warning.
-
-Fri Jan 16 22:30:27 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/socket.c: move addrinfo code.
-
-Fri Jan 16 18:51:11 2009 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * win32/Makefile.sub (up): tell nmake that need to run command via
- shell.
-
-Fri Jan 16 18:43:30 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * tool/make-snapshot (package): includes all rules and expand
- configured values from the environment to create *.inc, sets RM
- for ripper.c, and needs chdir if absolute path is given with
- -exported option.
-
-Fri Jan 16 18:26:47 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * include/ruby/ruby.h (VALUE): use unsigned long or long long
- instead of uintptr_t, since many %lx and so on are still used.
-
-Fri Jan 16 17:33:59 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * configure.in (Makefile): set VCS and VCSUP to support `git svn'
- and git.
-
- * Makefile.in, win32/Makefile.sub (up): split from common.mk.
-
-Fri Jan 16 12:24:39 2009 Koichi Sasada <ko1@atdot.net>
-
- * thread.c (thread_start_func_2): call ruby_cleanup() if thread is
- main thread. [ruby-dev:37624]
-
-Fri Jan 16 12:27:50 2009 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * win32/Makefile.sub ($(INSNS), node_name.inc, known_errors.inc,
- miniprelude.c, newline.c): if dependencies is newer than targets or
- targets don't exist, try to create targets with BASERUBY. no need to
- detect errors there because the absence of BASERUBY is not abnormal.
- after the try, if the targets still don't exist, copy them from
- $(srcdir).
-
-Fri Jan 16 12:15:07 2009 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * include/ruby/ruby.h (PRI_PTRDIFF_PREFIX): must define as string.
- if not, cause compile error in using PRI?VALUE.
-
- * win32/Makefile.sub (config.h): add SIZEOF_INTPTR_T and
- SIZEOF_UINTPTR_T for SIZEOF_VALUE.
-
-Fri Jan 16 11:51:20 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * symbian/pre-build (COMSPEC): should not overridden.
-
-Fri Jan 16 11:47:56 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * parse.y (rb_parse_in_main): fixed typo.
-
-Fri Jan 16 11:41:23 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * configure.in (RUBY_REPLACE_TYPE): does not define rb_ prefixed
- name if no default type is given.
-
- * configure.in (RUBY_DEFINT): checks size.
+ * ext/fiddle/closure.c (callback): same as r34506.
- * include/ruby/ruby.h (PRI_PTRDIFF_PREFIX, PRI_SIZE_PREFIX):
- assumes usable if PRIdPTR is defined.
+Wed Feb 15 10:35:43 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Fri Jan 16 02:25:46 2009 Yusuke Endoh <mame@tsg.ne.jp>
+ * include/ruby/ruby.h (FIXNUM_P): simple flag should be int.
- * thread.c (rb_thread_execute_interrupts): if signal is already
- buffered, main thread should wait until timer thread delivers it.
+Wed Feb 15 10:33:41 2012 Eric Hodel <drbrain@segment7.net>
- * thread.c (timer_thread_function): should defer delivery of a signal
- if main thread does not yet trap a previous one. [ruby-dev:37676]
+ * vm_eval.c (check_funcall): Call respond_to? with matching arity for
+ legacy single-argument implementations. [ruby-trunk - Bug #6000]
-Fri Jan 16 02:05:55 2009 Tanaka Akira <akr@fsij.org>
+Wed Feb 15 10:25:22 2012 Naohisa Goto <ngotogenome@gmail.com>
- * ext/socket/socket.c (addrinfo_s_ip): new method AddrInfo.ip.
+ * vm_eval.c (check_funcall): set array elements one-by-one to fix
+ compile error with Fujitsu C Compiler 5.6 on Solaris 10 on Sparc.
-Fri Jan 16 01:42:50 2009 Koichi Sasada <ko1@atdot.net>
+Wed Feb 15 10:25:22 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * thread.c (call_trace_proc): as Matz said ([ruby-core:21183]),
- should skip rb_str_new2() if rb_sourcefile() returns NULL.
- rb_sourcefile() returns NULL if frame is toplevel of Fiber.
- [ruby-core:21161] [Bug #985]
+ * test/ruby/test_object.rb: tests that respond_to? returns false.
-Fri Jan 16 01:09:37 2009 Koichi Sasada <ko1@atdot.net>
+Wed Feb 15 10:25:22 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * ruby.c (process_options): decrement parse_in_eval to recognize
- parsing main or normal eval script.
+ * vm_eval.c (check_funcall): try respond_to? first if redefined.
+ [Bug #5158]
- * compile.c (rb_parse_in_main): return 1 if parsing main script.
- (if parse_in_eval is negative value, it means main script)
+Wed Feb 15 07:15:50 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * parse.y (yycompile0): check rb_parse_in_main() to accumulate
- script text. Bug #848 [ruby-core:20450]
+ * compile.c (defined_expr): guard the whole expression.
+ [ruby-dev:45021][Bug#5786]
-Fri Jan 16 00:57:34 2009 Koichi Sasada <ko1@atdot.net>
+Wed Feb 15 05:08:25 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * lib/debug.rb: as wanabe-san pointed out,
- set_trace_func should be completely final task in debug.rb.
- Bug #847 [ruby-core:20449]
+ * ext/dl/cptr.c (rb_dlptr_s_to_ptr): use rb_check_funcall.
-Fri Jan 16 00:27:03 2009 Koichi Sasada <ko1@atdot.net>
+ * ext/dl/cfunc.c (dlcfunc_mark), ext/dl/cptr.c (dlptr_mark):
+ workaround to mark wrapped object. this is not a true fix,
+ because [Bug #4929] is caused by the interface design of DL.
- * vm.c (rb_vm_inc_const_missing_count, ruby_vm_const_missing_count):
- added.
+Wed Feb 15 05:04:47 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * vm_insnhelper.h: ditto.
+ * ext/dl/cptr.c (rb_dlptr_aref, rb_dlptr_aset): check NULL pointer
+ dereference.
- * variable.c (rb_const_get_0), insns.def: Constants should not be
- cached if const_missing is called. [ruby-core:21059] [Bug #967]
+ * test/rinda/test_rinda.rb: decrease the code that depends on timing.
+ [Bug #372] [Bug #4160]
- * bootstraptest/test_class.rb: add a test.
+Wed Feb 15 05:03:41 2012 CHIKANAGA Tomoyuki <nagachika00@gmail.com>
-Fri Jan 16 00:25:09 2009 Koichi Sasada <ko1@atdot.net>
+ * test/rinda/test_rinda.rb (test_remote_array_and_hash):
+ add local variables to protect objects from GC. [ruby-dev:44253]
+ [Bug #5104]
- * common.mk: btest-ruby should receive option with OPTS.
+Wed Feb 15 05:02:43 2012 Masaki Suketa <masaki.suketa@nifty.ne.jp>
-Fri Jan 16 00:21:10 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+ * test/win32ole/test_err_in_callback.rb (test_err_in_callback):
+ skip test if ADODB.connection is not available.
- * win32/Makefile.sub ($(INSNS), node_name.inc, known_errors.inc,
- miniprelude.c, newline.c): shouldn't copy when $(srcdir) != ".", too.
- (this is a workaround. we need more strict check.)
+Wed Feb 15 04:49:23 2012 Yusuke Endoh <mame@tsg.ne.jp>
- * win32/Makefile.sub ($(INSNS)): shouldn't remove BASERUBY.
+ * parse.y (debug_lines, coverage): set file path encoding for coverage
+ result. [ruby-dev:44950]
-Fri Jan 16 00:19:55 2009 Koichi Sasada <ko1@atdot.net>
+Tue Feb 14 16:57:11 2012 NAKAMURA Usaku <usa@ruby-lang.org>
- * gc.c (gc_with_gvl): suppress warnings.
+ * lib/rake/file_list.rb (Rake::FileList#egrep): there is no need to
+ open files in binary mode.
+ see more details in https://github.com/jimweirich/rake/issues/74
-Thu Jan 15 20:44:30 2009 Tanaka Akira <akr@fsij.org>
+Tue Feb 14 16:52:17 2012 NAKAMURA Usaku <usa@ruby-lang.org>
- * tool/file2lastrev.rb: RUBY_REVISION must be an integer.
-
-Thu Jan 15 15:55:31 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * encoding.c (enc_set_default_encoding): should not treat US-ASCII
- special here. a patch from Yui NARUSE in [ruby-dev:37769].
- [ruby-dev:37699]
-
-Thu Jan 15 14:27:27 2009 Martin Duerst <duerst@it.aoyama.ac.jp>
-
- * LEGAL: Added information for missing/langinfo.c
-
-Thu Jan 15 14:17:57 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * parse.y (stmt): explicit error for "Object::Far += foo 1" just
- as "Object::Far += 1".
-
- * parse.y (command): moved return/break/next from command_call for
- better error message.
-
- * parse.y (call_args): void value check added.
-
-Thu Jan 15 13:10:58 2009 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * win32/Makefile.sub (COMPILERFLAG): for enc/trans/gb18030.c.
-
-Thu Jan 15 13:10:09 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * configure.in, win32/Makefile.sub (MISSING): added langinfo on mingw
- and mswin.
-
- * encoding.c (rb_locale_charmap): use environments on mingw and mswin.
-
- * missing/langinfo.c (nl_langinfo_codeset): MS-Windows Japanese
- environment uses Windows-31J derived from Shift_JIS, not EUC-JP.
-
-Thu Jan 15 12:10:39 2009 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * win32/Makefile.sub ($(INSNS), node_name.inc, known_errors.inc,
- miniprelude.c, newline.c): copy only when $(srcdir) != pwd.
-
-Thu Jan 15 11:40:44 2009 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * io.c (pipe_open): revert a part of previous commit. it may be a
- mistake.
-
-Thu Jan 15 10:45:52 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * symbian/README.SYMBIAN: symbian support added. great appreciate
- to <alexandre.zavorine at symbian.com>.
-
-Thu Jan 15 00:06:12 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * enc/trans/gb18030.trans: get rid of a 1.9 feature for cross
- compile. [ruby-core:21345]
-
-Wed Jan 14 23:57:28 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * encoding.c (rb_locale_charmap): fallback to codepage if no
- locale is found. [ruby-core:21110]
-
- * missing/langinfo.c (nl_langinfo_codeset): returns NULL if no
- locale is found.
-
-Wed Jan 14 22:38:30 2009 Tanaka Akira <akr@fsij.org>
-
- * gc.c (negative_size_allocation_error_with_gvl): abolish a warning.
- (negative_size_allocation_error): ditto.
-
- * ext/openssl/ossl.c (ossl_raise): ditto.
-
-Wed Jan 14 20:05:05 2009 Martin Duerst <duerst@it.aoyama.ac.jp>
-
- * enc/trans/gb18030.trans, gb18030-tbl.rb:
- new Chinese GB18030 transcoding (from Yoshihiro Kambayashi)
-
- * test/ruby/test_transcode.rb: added tests for the above
- (from Yoshihiro Kambayashi)
-
- * transcode_data.h, transcode.c, tool/transcode_tblgen.rb:
- added support for GB18030-specific 4-byte sequences
- (with Yoshihiro Kambayashi)
-
-Wed Jan 14 16:16:19 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * ext/curses/extconf.rb: check ncursesw earlier than ncurses to
- support UTF-8 strings. non UTF-8 strings should be converted
- explicitly. [ruby-core:21094]
-
-Wed Jan 14 14:42:30 2009 TAKANO Mitsuhiro (takano32) <tak@no32.tk>
-
- * cont.c: fix prototype declare of register_stack_extend
-
-Wed Jan 14 13:19:21 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * win32/win32.c (rb_w32_aspawn): should not escape with caret
- unless using cmd.exe.
-
-Wed Jan 14 13:09:00 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/socket/extconf.rb (gai_strerror): checks if available and if
- returns const pointer.
-
- * ext/socket/getaddrinfo.c (gai_strerror): defines only if non
- available. [ruby-core:21328]
-
-Wed Jan 14 12:39:16 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * io.c (rb_io_wait_readable, rb_io_wait_writable): need rb_fd_ptr.
-
- * io.c (appendline): reformed.
-
- * io.c (rb_io_s_pipe): reduced nest of rb_ensure of main block.
-
-Tue Jan 13 22:56:57 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/addrinfo.h (AI_NUMERICSERV): defined.
- (AI_MASK): add AI_NUMERICSERV.
-
- * ext/socket/getaddrinfo.c (getaddrinfo): support AI_NUMERICSERV.
-
-Tue Jan 13 21:45:53 2009 Yuki Sonoda (Yugui) <yugui@yugui.jp>
-
- * lib/ostruct.rb (OpenStruct#inspect): fixed the recursion check.
- Patch by Kornelius Kalnbach. [ruby-core:20992].
-
- * test/ostruct/test_ostruct.rb: test for inspect.
- Patch by Kornelius Kalnbach. [ruby-core:20992].
-
-Tue Jan 13 21:44:30 2009 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * io.c (io_reopen, rb_io_init_copy): should register fptr to pipe_list
- when copying pipe fptr.
-
-Tue Jan 13 21:38:07 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/socket.c (rb_getaddrinfo): use getaddrinfo with GVL if
- getaddrinfo.c/getnameinfo.c is used. They are not thread safe
- because gethostbyname/gethostbyaddr is used.
- (rb_getnameinfo): ditto.
-
- * extconf.rb: define GETADDRINFO_EMU if getaddrinfo.c/getnameinfo.c is
- used.
-
-Tue Jan 13 21:28:14 2009 Yuki Sonoda (Yugui) <yugui@yugui.jp>
-
- * object.c (rb_obj_not_match): rdoc.
- Patch by Kornelius Kalnbach. [ruby-core:20991]
-
-Tue Jan 13 18:21:44 2009 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * io.c (rb_io_close_read): call rb_io_fptr_cleanup() instead of
- fptr_finalize() because the fptr has special finalizer if it is a
- pipe. [ruby-dev:37757] (3)
-
-Tue Jan 13 18:19:49 2009 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * io.c (rb_io_initialize): workaround for Windows. [ruby-dev:37686]
- (also see [ruby-dev:37721])
-
-Tue Jan 13 17:29:02 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * enc/trans/make_transdb.rb (converters): should not depend on the
- hash order for cross compile.
-
-Tue Jan 13 16:39:11 2009 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * include/ruby/intern.h, thread.c, win32/Makefile.sub (rb_fdset_t,
- rb_fd_init, rb_fd_term, rb_fd_zero, rb_fd_set, rb_fd_clr, rb_fd_isset,
- rb_fd_select, rb_fd_ptr, rb_fd_max, HAVE_RB_FD_INIT): new type,
- functions, and macros for Windows.
-
- * win32/win32.c (extract_fd, rb_w32_select): use rb_fdset_t to expand
- fd_array if needed. [ruby-core:19946]
-
- * win32/win32.c (copy_fd): new function for rb_w32_select().
-
-Tue Jan 13 12:31:54 2009 Yuki Sonoda (Yugui) <yugui@yugui.jp>
-
- * tool/file2lastrev.rb (get_revisions): fixes problem with
- svn on cygwin. [ruby-dev:37702].
- Patch by Kouhei Sutou.
-
-Tue Jan 13 11:58:04 2009 Yuki Sonoda (Yugui) <yugui@yugui.jp>
-
- * lib/irb/input-method.rb: IRB did not prompt for MSwin32.
- [ruby-dev:37686].
- Patch by arton <artonx AT yahoo.co.jp>.
-
-Tue Jan 13 12:10:42 2009 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * ext/socket/{getaddrinfo,getnameinfo}.c: need to include ws2tcpip.h
+ * lib/rdoc/encoding.rb (RDoc::Encoding.read_file): fixup newline chars
on Windows.
+ see https://github.com/rdoc/rdoc/issues/87
-Tue Jan 13 09:49:49 2009 Martin Duerst <duerst@it.aoyama.ac.jp>
-
- * ext/socket/socket.c: removed warning about unused variable 'rai'.
-
-Tue Jan 13 03:07:28 2009 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * instruby.rb: require "tool/mdoc2man.rb" before chdir if needed.
-
-Tue Jan 13 02:54:54 2009 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * ext/socket/extconf.rb: use headers instead of "netdb.h" in checking
- getnameinfo() and getaddrinfo() because Windows doesn't have it.
- [ruby-dev:37757] (1)
-
- * ext/socket/sockport.h (SA_LEN): use sockaddr_in6 when defined AF_INET6
- if INET6 is not defined. winsock2's getaddrinfo() returns
- sockaddr_in6 if ipv6 is available.
-
-Tue Jan 13 02:21:43 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * win32/win32.c (internal_cmd_match): extracted from
- is_internal_cmd.
-
- * win32/win32.c (argv_size, join_argv): escapes redirection, pipe
- and caret punctuations with carets.
-
- * win32/win32.c (rb_w32_aspawn): ditto, and redirections and pipe
- have no meanings.
-
-Tue Jan 13 02:07:38 2009 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/lib/tk.rb: use Encoding.find("locale") instead of
- Encoding.locale_charmap
-
-Tue Jan 13 00:57:56 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/socket.c (sock_s_unpack_sockaddr_in): check too short
- sockaddr.
- (sock_s_unpack_sockaddr_un): ditto.
-
-Mon Jan 12 23:55:19 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/socket.c (addrinfo_ip_unpack): new method
- AddrInfo#ip_unpack.
- (addrinfo_unix_path): new method AddrInfo#unix_path.
- (Init_socket): define above methods.
-
-Mon Jan 12 23:31:42 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/socket.c (IS_IP_FAMILY): defined.
- (addrinfo_ip_p): use it.
-
-Mon Jan 12 17:23:05 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/test/unit/assertions.rb (assert_nothing_raised): removes the
- current trace to get rid of an issue of MiniTest::Unit#location.
-
-Mon Jan 12 16:49:20 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * instruby.rb (install): erased a garbage.
-
-Mon Jan 12 16:45:28 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * win32/win32.c (open_dir_handle): extracted from rb_w32_opendir.
-
- * win32/win32.c (winnt_stat): gets rid of strange behavior of
- GetFileAttributes(). [ruby-core:21269]
-
-Mon Jan 12 12:43:55 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * instruby.rb (parse_args, install): added --strip option.
-
- * instruby.rb (install_recursive): skips the directory if matched
- to a no_install pattern ending with a file separator.
-
-Mon Jan 12 12:33:56 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/mkconstants.rb: don't use bytesize because 1.9 dependent.
- [ruby-core:21266]
-
-Mon Jan 12 11:59:19 2009 Koichi Sasada <ko1@atdot.net>
-
- * gc.c (ruby_xmalloc, ruby_xrealloc, ruby_xfree):
- enable to use them without GVL.
- if GC is invoked, acquire GVL during GC.
- if NoMemoryError is raised, acquire GVL and raise it.
-
-Mon Jan 12 10:39:19 2009 Koichi Sasada <ko1@atdot.net>
-
- * thread.c: fix comment (terminology: Global VM Lock).
-
- * thread.c (blocking_region_begin, blocking_region_end):
- save and clear th->blocking_region_buffer.
-
- * thread.c (rb_thread_call_with_gvl): check if it has GVL.
-
- * thread.c (ruby_thread_has_gvl_p): added.
-
- * vm_core.h: add decls.
-
-Mon Jan 12 10:21:11 2009 Koichi Sasada <ko1@atdot.net>
-
- * eval.c: remove unused decl.
-
-Sun Jan 11 16:53:14 2009 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
-
- * lib/erb.rb (PercentScanner): remove PercentScanner. fixed % after
- %> bug. [ruby-dev:37751] [Bug #997]
-
- * test/erb/test_erb.rb: ditto
-
-Sun Jan 11 09:53:01 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/socket/mkconstants.rb (c_str): get rid of a 1.9 feature for
- cross compile. [ruby-core:21243]
-
-Sun Jan 11 09:47:30 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * hash.c (rb_hash_s_create): set nil as the value if assoc length
- is not enough. [ruby-core:21249]
-
-Sat Jan 10 21:17:28 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/mkconstants.rb: don't generate unintended newlines.
-
-Sat Jan 10 20:50:02 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/mkconstants.rb: refactored to nest properly in statically
- and dynamically.
-
-Sat Jan 10 20:26:17 2009 Tanaka Akira <akr@fsij.org>
-
- * version.h: make version string succinct:
- "ruby 1.9.1p5000 (2009-01-10 trunk 21414) [i686-linux]".
-
-Sat Jan 10 19:05:13 2009 Koichi Sasada <ko1@atdot.net>
-
- * cont.c (cont_restore_1): should not be inlined.
-
-Fri Jan 9 21:52:47 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/socket.c (sock_define_const): use INT2NUM.
-
-Fri Jan 9 15:40:07 2009 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * ext/socket/mkconstants.rb: define macro if default_value is passed.
-
-Fri Jan 9 13:20:08 2009 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/lib/tk.rb: rescue abnormal Encoding.locale_charmap value.
-
-Fri Jan 9 12:29:46 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * common.mk (test-sample), rubytest.rb: use runruby.rb
-
-Fri Jan 9 10:40:52 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * test/ruby/test_process.rb (TestProcess::MANDATORY_ENVS): some
- platforms need environments for shared objects.
-
-Thu Jan 8 23:19:38 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/socket.c (bsock_shutdown): accept symbol/string as how.
- (shutdown_how_arg): new function.
-
- * ext/socket/mkconstants.rb: generate shutdown_how_to_int.
-
-Thu Jan 8 23:16:37 2009 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * instruby.rb: easy code contains fewer bugs.
-
-Thu Jan 8 22:59:30 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/mkconstants.rb (gen_name_to_int_func): generate
- name_to_int functions, not only body.
-
-Thu Jan 8 22:44:10 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/socket.c: don't use AI_NUMERICSERV for platforms which
- not define it as old Windows.
- [ruby-dev:37736]
-
-Thu Jan 8 17:32:51 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * instruby.rb: should not depend on a library which does not exist
- in 1.8.
-
-Thu Jan 8 07:52:55 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/socket.c (init_unix_addrinfo): don't return a value.
-
-Thu Jan 8 07:30:52 2009 Tanaka Akira <akr@fsij.org>
-
- * lib/open-uri.rb (OpenURI.redirectable?): reverted https redirection.
-
-Thu Jan 8 00:31:58 2009 Tanaka Akira <akr@fsij.org>
-
- * lib/test/unit/assertions.rb (assert_no_match): don't count up as two
- assertions.
-
-Thu Jan 8 00:26:35 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/socket.c (addrinfo_getnameinfo): use NI_DGRAM if socktype
- is SOCK_DGRAM.
-
-Thu Jan 8 00:16:22 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/socket.c (host_str): add flags_ptr argument to specify
- AI_NUMERICHOST if host is numeric form.
- (port_str): add flags_ptr argument to specify AI_NUMERICSERV if port
- is numeric form.
-
-Wed Jan 7 22:24:12 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/socket.c (rb_cAddrInfo): new class AddrInfo.
- (s_recvfrom): return AddrInfo as address.
- (s_recvfrom_nonblock): ditto.
- (sock_accept): ditto.
- (sock_accept_nonblock): ditto.
- (sock_sysaccept): ditto.
- (bsock_send): accept AddrInfo as address argument.
- (sock_connect): ditto.
- (sock_connect_nonblock): ditto.
- (sock_bind): ditto.
- (sock_s_unpack_sockaddr_in): ditto.
- (sock_s_unpack_sockaddr_un): ditto.
- (bsock_local_address): new method BasicSocket#local_address.
- (bsock_remote_address): new method BasicSocket#remote_address.
- (addrinfo_initialize): new method AddrInfo#initialize.
- (addrinfo_inspect): new method AddrInfo#inspect.
- (addrinfo_afamily): new method AddrInfo#afamily.
- (addrinfo_pfamily): new method AddrInfo#pfamily.
- (addrinfo_socktype): new method AddrInfo#socktype.
- (addrinfo_protocol): new method AddrInfo#protocol.
- (addrinfo_to_sockaddr): new method AddrInfo#to_sockaddr.
- (addrinfo_canonname): new method AddrInfo#canonname.
- (addrinfo_ip_p): new method AddrInfo#ip?.
- (addrinfo_ipv4_p): new method AddrInfo#ipv4?.
- (addrinfo_ipv6_p): new method AddrInfo#ipv6?.
- (addrinfo_unix_p): new method AddrInfo#unix?.
- (addrinfo_getnameinfo): new method AddrInfo#getnameinfo.
- (addrinfo_s_getaddrinfo): new method AddrInfo.getaddrinfo.
- (addrinfo_s_tcp): new method AddrInfo.tcp.
- (addrinfo_s_udp): new method AddrInfo.udp.
- (addrinfo_s_unix): new method AddrInfo.unix.
- (Init_socket): define new class and methods.
- (sock_getaddrinfo): apply socktype hack regardless of ai_flags.
- (addrinfo_new): defined.
- (get_afamily): ditto.
- (fd_socket_addrinfo): ditto.
- (io_socket_addrinfo): ditto.
- (SockAddrStringValue): ditto.
- (SockAddrStringValuePtr): ditto.
- (sockaddr_string_value): ditto.
- (sockaddr_string_value_ptr): ditto.
- (rb_addrinfo_t): ditto.
- (addrinfo_mark): ditto.
- (addrinfo_free): ditto.
- (addrinfo_s_allocate): ditto.
- (IS_ADDRINFO): ditto.
- (check_addrinfo): ditto.
- (get_addrinfo): ditto.
- (alloc_addrinfo): ditto.
- (init_addrinfo): ditto.
- (addrinfo_new): ditto.
- (call_getaddrinfo): ditto.
- (init_addrinfo_getaddrinfo): ditto.
- (make_inspectname): ditto.
- (addrinfo_firstonly_new): ditto.
- (addrinfo_list_new): ditto.
- (init_unix_addrinfo): ditto.
- (ai_get_afamily): ditto.
-
- * ext/socket/mkconstants.rb: generate intern_protocol_family,
- intern_socktype and intern_ipproto.
-
- [ruby-dev:37692]
-
-Wed Jan 7 22:13:03 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * instruby.rb (man, gem): fixed errors.
-
-Wed Jan 7 17:14:40 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * instruby.rb: use installed libraries. [ruby-core:21006]
-
- * instruby.rb (gem), lib/rubygems/defaults.rb (Gem.default_dir):
- use version invariant configuration.
-
-Tue Jan 6 19:09:51 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * cont.c (cont_restore_0): streamlined to ensure O(1) time. based on
- a patch by Brent Roman <brent AT mbari.org>.
-
-Tue Jan 6 00:34:25 2009 Tanaka Akira <akr@fsij.org>
-
- * io.c (rb_close_before_exec): more heuristics to detect maximum fd.
-
-Mon Jan 5 17:59:43 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * configure.in (cygwin): needs properly implemented nl_langinfo().
- [ruby-core:21110]
-
- * missing/langinfo.c: added as suggested at [ruby-core:21015], from
- http://www.cl.cam.ac.uk/~mgk25/ucs/langinfo.c.
-
- * missing/langinfo.c (nl_langinfo_0): fixed typos for SJIS.
-
-Mon Jan 5 17:38:40 2009 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * encoding.c (rb_locale_charmap): use GetConsoleCP() instead of
- GetACP() because external encoding should be console's one.
-
- * encoding.c (rb_filesystem_encoding): use GetOEMCP() instead of
- GetACP() because VFAT/FAT32 uses OEM CP.
-
-Mon Jan 5 16:26:48 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * encoding.c (rb_filesystem_encoding): use ANSI codepage for file
- system on cygwin.
-
- * encoding.c (rb_locale_charmap): reverted. [ruby-core:21110]
-
-Mon Jan 5 16:15:00 2009 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
-
- * ext/curses/curses.c (free_window): use xfree instead of free.
- [ruby-dev:37200]
-
-Mon Jan 5 15:49:45 2009 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
-
- * ext/gdbm/gdbm.c (rb_gdbm_fetch): remove needless cast.
-
-Mon Jan 5 12:52:08 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * win32/win32.c (init_env): use user profile folder than personal
- folder.
-
-Mon Jan 5 08:41:13 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * file.c (rb_file_s_stat): need type check for non string values.
- [ruby-dev:37673] fix: #964
-
- * file.c (rb_file_s_size, rb_file_s_atime, rb_file_s_mtime,
- rb_file_s_ctime, rb_f_test): ditto.
-
-Mon Jan 5 08:17:56 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * range.c (range_step): should not add up errors on loops.
- [ruby-dev:37691]
-
-Mon Jan 5 07:58:37 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * random.c (rb_f_srand): update RDoc. [ruby-core:21113]
-
-Mon Jan 5 06:39:56 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * range.c (range_max): max value from ... not defined for non
- Integer Numeric end values. [ruby-dev:37690] fix: #974
-
-Sun Jan 4 22:37:19 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/socket.c (rb_getaddrinfo): defined for address lookup without GVL.
- (struct getaddrinfo_arg): defined.
- (nogvl_getaddrinfo): defined.
- (rb_getnameinfo): defined for name lookup without GVL.
- (getnameinfo_arg): defined.
- (nogvl_getnameinfo): defined.
-
-Sun Jan 4 18:10:10 2009 Martin Duerst <duerst@it.aoyama.ac.jp>
-
- * enc/trans/gbk.trans, gbk-tbl.rb:
- new Chinese GBK transcoding (from Yoshihiro Kambayashi)
-
- * test/ruby/test_transcode.rb: added tests for the above
- (from Yoshihiro Kambayashi)
-
-Sun Jan 4 17:55:55 2009 Martin Duerst <duerst@it.aoyama.ac.jp>
-
- * test/ruby/test_transcode.rb: added tests for GB2312
- (from Yoshihiro Kambayashi)
-
- * enc/trans/chinese.trans: set valid byte patterns for
- GB2312 and GB12345
-
-Sun Jan 4 17:39:39 2009 Martin Duerst <duerst@it.aoyama.ac.jp>
-
- * enc/trans/big5.trans, big5-tbl.rb:
- new Chinese Big5 transcoding (from Yoshihiro Kambayashi)
-
- * test/ruby/test_transcode.rb: added tests for the above
- (from Yoshihiro Kambayashi)
-
-Sun Jan 4 17:07:45 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/rubygems.rb (Gem.set_home, Gem.set_paths): should not create
- directories stealthily. [ruby-core:20990]
-
- * lib/rubygems.rb (Gem.find_home): expand_path deals with platform
- dependent environments.
-
- * lib/rdoc/ri/paths.rb (RDoc::HOMEDIR): ditto.
-
- * instruby.rb (gem): creates gem directories at installation.
-
-Sun Jan 4 15:41:37 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * encoding.c (rb_filesystem_encoding, rb_locale_charmap): uses
- codepage on cygwin. [ruby-core:20994]
-
-Sun Jan 4 11:58:43 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * numeric.c (ruby_float_step): extracted from num_step().
-
- * range.c (range_step): uses ruby_float_step() for float range.
- [ruby-dev:37691]
-
-Sun Jan 4 11:11:31 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/extmk.rb (extmake): does not use both of makefile.rb and
- extconf.rb at the same time.
-
- * lib/mkmf.rb (DLLIB): depends on Makefile. [ruby-core:21096]
-
-Sun Jan 4 09:27:41 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/socket/socket.c (constant_arg): constified.
-
- * ext/socket/socket.c (optname_arg): cygwin does not have
- IPPROTO_IPV6.
-
- * ext/socket/mkconstants.rb (ipv6_optname_to_int): ditto.
-
-Sun Jan 4 04:33:14 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/socket.c: redundant #ifdef removed.
-
-Sun Jan 4 03:30:18 2009 Tanaka Akira <akr@fsij.org>
-
- * io.c (maygvl_copy_stream_wait_read): renamed to add prefix to
- express GVL state.
- (nogvl_copy_stream_wait_write): ditto.
- (nogvl_copy_stream_sendfile): ditto.
- (maygvl_copy_stream_read): ditto.
- (nogvl_copy_stream_write): ditto.
- (nogvl_copy_stream_read_write): ditto.
- (nogvl_copy_stream_func): ditto.
-
-Sun Jan 4 00:30:50 2009 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
-
- * lib/erb.rb: merged r20850, r17881, r16811, r16763, r16748, r15829,
- r15794 and r15698 from ruby_1_8.
-
- * test/erb/test_erb.rb: ditto.
-
-Sat Jan 3 22:24:36 2009 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * common.mk, Makefile.in, win32/Makefile.sub (INSNS): move the macro
- definition from common.mk to {Makefile.in,win32/Makefile.sub}.
- [ruby-dev:37678]
-
-Sat Jan 3 15:30:09 2009 NARUSE, Yui <naruse@ruby-lang.org>
-
- * enc/trans/chinese.trans: added for transcoding EUC-CN and GB12345.
-
- * enc/trans/GB/: ditto.
-
-Sat Jan 3 15:26:30 2009 NARUSE, Yui <naruse@ruby-lang.org>
-
- * enc/trans/euc-cn.c: renamed from gb2312.c because GB2312 is
- the name of a CSS. it's encoding name is "EUC-CN".
-
-Sat Jan 3 03:00:42 2009 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * common.mk, Makefile.in, win32/Makefile.sub ($(INSNS), node_name.inc,
- known_errors.inc, miniprelude.c, newline.c): move rules from common.mk
- to {Makefile.in,win32/Makefile.sub} for nmake.
- [ruby-core:20993]
-
-Fri Jan 2 23:51:41 2009 Yusuke Endoh <mame@tsg.ne.jp>
-
- * test/ruby/test_sleep.rb (test_sleep_5sec): stop gc.
-
-Fri Jan 2 23:36:10 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/socket.c: don't apply socktype hack [ruby-core:184] for
- sock_s_getaddrinfo.
- (sock_getaddrinfo): add socktype_hack argument.
- (sock_addrinfo): call sock_getaddrinfo with socktype_hack.
- (sock_s_getaddrinfo): call sock_getaddrinfo without socktype_hack.
- [ruby-dev:37674]
-
-Fri Jan 2 23:33:38 2009 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * include/ruby/missing.h, sprintf.c: get rid of a warning of VC++.
-
-Fri Jan 2 22:25:46 2009 Yusuke Endoh <mame@tsg.ne.jp>
-
- * process.c: use sigaction instead of sigset. [ruby-core:21021]
-
-Fri Jan 2 22:22:04 2009 Yusuke Endoh <mame@tsg.ne.jp>
-
- * bootstraptest/test_proc.rb: suppress error message.
-
-Fri Jan 2 22:20:46 2009 Yusuke Endoh <mame@tsg.ne.jp>
-
- * test/ruby/test_process.rb (test_wait_and_sigchild): remove debug
- output.
-
-Fri Jan 2 17:45:19 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/mkconstants.rb: rename family_to_str to intern_family.
- it returns ID now.
-
- * ext/socket/socket.c (ipaddr): use intern_family.
-
-Fri Jan 2 17:20:31 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/mkconstants.rb: use ID in the values of
- family_to_str_hash. family_to_str returns a VALUE.
-
- * ext/socket/socket.c (ipaddr): follow family_to_str change.
-
-Fri Jan 2 17:01:51 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/mkconstants.rb: refactored to gather stringizer
- description.
-
-Fri Jan 2 15:30:57 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/mkconstants.rb: make common prefix optional.
-
-Fri Jan 2 14:59:52 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/mkconstants.rb: use hash for family_to_str to avoid
- linear search. lenp argument removed.
-
- * ext/socket/socket.c (ipaddr): call family_to_str without lenp
- argument.
-
-Fri Jan 2 14:33:12 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/mkconstants.rb (gen_int_to_name): don't compare constants
- in preprocessor because the constants may be enum.
-
-Fri Jan 2 14:11:07 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/mkconstants.rb (gen_int_to_name): add lenp argument.
-
- * ext/socket/socket.c (ipaddr): follow argument change.
-
-Fri Jan 2 10:20:24 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/singleton.rb: fix documentation. [ruby-core:21038]
-
-Fri Jan 2 06:43:58 2009 NARUSE, Yui <naruse@ruby-lang.org>
-
- * signal.c (rb_signal_buff_size): defined for check whether signal
- is in the buffer or not.
-
- * thread_pthread.c (thread_timer): don't exit the loop when signal
- is in the buffer. [ruby-dev:37637]
-
-Fri Jan 2 04:40:00 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/mkconstants.rb: check duplicates.
-
-Fri Jan 2 02:39:08 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/socket.c (optname_arg): defined.
- (bsock_setsockopt): use optname_arg.
- (bsock_getsockopt): ditto.
-
- * ext/socket/mkconstants.rb: generate so_optname_to_int,
- ip_optname_to_int, ipv6_optname_to_int, tcp_optname_to_int and
- udp_optname_to_int.
- more constants.
-
-Fri Jan 2 02:08:36 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/socket.c (constant_arg): extracted from family_arg.
- (family_arg): use constant_arg.
- (socktype_arg): ditto.
- (level_arg): ditto.
-
-Fri Jan 2 01:15:11 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/socket.c (level_arg): defined.
- (bsock_setsockopt): use level_arg.
- (bsock_getsockopt): ditto.
-
- * ext/socket/mkconstants.rb: generate level_to_int.
-
-Fri Jan 2 00:58:40 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/socket.c (family_arg): accept symbols as well.
- (socktype_arg): ditto.
-
-Fri Jan 2 00:49:44 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/socket.c (sock_s_getaddrinfo): use socktype_arg.
-
-Fri Jan 2 00:12:27 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/socket.c (family_arg): extracted from
- setup_domain_and_type.
- (socktype_arg): ditto.
- (udp_init): use family_arg.
- (sock_s_gethostbyaddr): ditto.
- (sock_s_getaddrinfo): ditto.
- (sock_s_getnameinfo): ditto.
-
-Thu Jan 1 22:27:55 2009 Yuki Sonoda (Yugui) <yugui@yugui.jp>
-
- * spec/default.mspec: fix for builddir != srcdir
-
- * Makefile.in: ditto.
-
-Thu Jan 1 21:26:05 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/socket.c (sock_s_getnameinfo): use family_to_int.
-
-Thu Jan 1 21:08:34 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/mkconstants.rb: check all alias possibility.
-
-Thu Jan 1 20:59:55 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/mkconstants.rb: more possible aliases.
-
-Thu Jan 1 20:54:02 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/mkconstants.rb: AF_ISO and AF_OSI may be aliased.
-
-Thu Jan 1 20:50:09 2009 URABE Shyouhei <shyouhei@ruby-lang.org>
-
- * process.c (before_exec): it makes no sense for a conditional
- expression to return a void value.
-
-Thu Jan 1 20:47:09 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/socket.c (sock_s_getaddrinfo): use family_to_int.
-
-Thu Jan 1 20:17:47 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/socket.c: include constants.h at top.
-
-Thu Jan 1 19:53:33 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/mkconstants.rb: add valp argument for family_to_int and
- socktype_to_int.
-
- * ext/socket/socket.c (setup_domain_and_type): use valp argument.
-
-Thu Jan 1 19:36:57 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/mkconstants.rb: generate family_to_str.
-
- * ext/socket/socket.c (ipaddr): use family_to_str.
-
-Thu Jan 1 17:37:12 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/mkconstants.rb: generate socktype_to_int.
-
- * ext/socket/socket.c (setup_domain_and_type): use socktype_to_int.
-
-Thu Jan 1 17:26:47 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/socket.c (setup_domain_and_type): initialize ptr.
-
-Thu Jan 1 17:01:50 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/mkconstants.rb: refine family_to_int.
-
-Thu Jan 1 16:48:07 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/mkconstants.rb: generate family_to_int().
-
- * ext/socket/socket.c (setup_domain_and_type): use family_to_int.
-
-Thu Jan 1 15:08:46 2009 Yuki Sonoda (Yugui) <yugui@yugui.jp>
-
- * tool/file2lastrev.rb: supports git repositories which are cloned
- from a git-svn gateway.
- Patch by Hongli Lai. [ruby-core:21020]
-
-Thu Jan 1 16:08:11 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/mkconstants.rb: generate init_constants function.
-
- * ext/socket/socket.c (Init_socket): call init_constants.
-
-Thu Jan 1 16:03:04 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/mkconstants.rb (Socket::AF_INET6): moved from socket.c.
- (Socket::PF_INET6): ditto.
-
-Thu Jan 1 15:27:07 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/mkconstants.rb: use erb.
-
-Thu Jan 1 15:07:56 2009 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/mkconstants.rb: add -o option.
-
- * ext/socket/depend: use mkconstants.rb with -o option.
-
-Thu Jan 1 07:42:36 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/singleton.rb: fix indentation of RDoc text. [ruby-core:21029]
-
-Thu Jan 1 07:16:44 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * Makefile.in (distclean-ext, realclean-ext): use EXTS as default.
-
- * win32/Makefile.sub (distclean-ext, realclean-ext): try to remove ext
- directory.
-
-Thu Jan 1 06:56:28 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * tool/file2lastrev.rb: unset PWD.
-
-Wed Dec 31 23:37:17 2008 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/socket.c (sock_s_socketpair): yield if a block is given.
- (io_call_close): defined.
- (io_close): defined.
- (pair_yield): defined.
-
-Wed Dec 31 19:35:57 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
-
- * spec/README: follows the change of directory structure in rubyspec.
-
- * spec/default.mspec: ditto. Also follows change of mspec command.
-
- * Makefile.in: ditto.
-
-Wed Dec 31 17:16:46 2008 Tanaka Akira <akr@fsij.org>
-
- * ext/openssl/ossl_ssl.c (ossl_ssl_read_internal): show openssl error
- code in EWOULDBLOCK error.
-
-Wed Dec 31 15:45:18 2008 Tanaka Akira <akr@fsij.org>
-
- * io.c (copy_stream_body): don't check to_io because
- Zlib::GzipWriter#to_io returns the underlying IO.
-
-Wed Dec 31 14:52:33 2008 Tanaka Akira <akr@fsij.org>
-
- * ext/openssl/ossl_digest.c (GetDigestPtr): use StringValueCStr
- instead of STR2CSTR.
-
- * ext/openssl/ossl_pkey_ec.c (ossl_ec_key_initialize): ditto.
- (ossl_ec_group_initialize): ditto.
-
-Wed Dec 31 14:12:35 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * object.c (rb_to_float): replaced by to_flo definition from
- math.c [ruby-dev:37668]
-
- * math.c (Need_Float): use rb_to_float().
-
-Wed Dec 31 13:49:06 2008 Tanaka Akira <akr@fsij.org>
-
- * ext/openssl/lib/openssl/buffering.rb (Buffering#read_nonblock):
- implemented.
-
- * ext/openssl/ossl_ssl.c (rb_sys_fail_path): removed.
- (fcntl.h): don't include.
- (ossl_ssl_read_internal): defined.
- (ossl_ssl_read): use ossl_ssl_read_internal.
- (ossl_ssl_read_nonblock): use ossl_ssl_read_internal.
- (Init_ossl_ssl): define sysread_nonblock, instead of read_nonblock.
-
-Wed Dec 31 00:27:54 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * object.c (rb_to_float): prohibit conversion from nil to float.
- [ruby-dev:37663]
-
- * pack.c (pack_pack): replace all rb_Float() to rb_to_float().
- [ruby-dev:37663]
-
-Tue Dec 30 21:17:00 2008 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/mkconstants.rb: use sock_define_uconst for INADDR_*
- constants because Socket::INADDR_LOOPBACK should be 0x7f000001
- instead of -0xffffff.
-
- * ext/socket/socket.c (sock_define_uconst): defined.
-
-Tue Dec 30 18:23:10 2008 Ryan Davis <ryand-ruby@zenspider.com>
-
- * lib/minitest/*.rb: Imported minitest 1.3.1 r4506.
- * test/minitest/*.rb: ditto.
-
-Tue Dec 30 17:59:59 2008 Martin Duerst <duerst@it.aoyama.ac.jp>
-
- * transcode.c: Minor fixes and tweaks in documentation.
-
-Tue Dec 30 17:03:51 2008 Koichi Sasada <ko1@atdot.net>
-
- * ext/dl/test/test_import.rb: fix a prototype decl.
- pointed out by Takehiro Kubo [ruby-core:20971].
-
-Tue Dec 30 16:56:09 2008 Koichi Sasada <ko1@atdot.net>
-
- * thread.c (rb_thread_blocking_region): add a comment.
-
- * thread.c (rb_thread_call_without_gvl): added as a alias of
- rb_thread_blocking_region().
-
- * thread.c (rb_thread_call_with_gvl): added.
-
- * vm_core.h (rb_thread_t#blocking_region_buffer): added for
- rb_thread_call_with_gvl().
-
-Mon Dec 29 23:41:42 2008 Koichi Sasada <ko1@atdot.net>
-
- * ext/dl/test/test_base.rb: add libc search logic.
- this patch is written by Takehiro Kubo.
- [ruby-core:20963] [Bug #932]
-
- * ext/dl/dl.h: Add ",..." as the last argument.
- this patch is written by Takehiro Kubo.
- Bug #633 [ruby-core:19289]
-
- * ext/dl/lib/dl/stack.rb: add add_padding() to calculate
- alignment. this patch is written by Takehiro Kubo.
- Bug #633 [ruby-core:19289]
-
- * ext/dl/test/test_func.rb: atof()'s return value is double.
- this patch is written by Takehiro Kubo.
- Bug #633 [ruby-core:19289]
-
- * ext/dl/test/test_import.rb:
- - atof()'s return value is double.
- - The types of qsort's second and third argument are size_t.
- - fprintf()'s return value is int.
- this patch is written by Takehiro Kubo.
- Bug #633 [ruby-core:19289]
-
-Mon Dec 29 22:37:17 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
-
- * process.c (rb_waitpid): retries waitpid when EINTR.
- [ruby-core:19744].
-
-Mon Dec 29 23:18:52 2008 Tadayoshi Funaba <tadf@dotrb.org>
-
- * bignum.c (rb_cstr_to_inum): changed an error message.
-
- * complex.c (string_to_c_strict): ditto.
-
- * rational.c (string_to_r_strict): ditto.
-
-Mon Dec 29 22:37:57 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * pack.c (pack_pack): template f should not accept non float
- values. [ruby-dev:37656]
-
- * object.c (rb_to_float): new function to type check floats.
-
-Mon Dec 29 22:27:11 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * random.c (rb_f_rand): type check simplified. strings are no
- longer allowed for argument. [ruby-dev:37655]
-
- * test/ruby/test_rand.rb (TestRand::o.to_int): need override
- to_int.
-
-Mon Dec 29 21:22:31 2008 Tadayoshi Funaba <tadf@dotrb.org>
-
- * numeric.c: Infinity.numerator returns self. [experimental]
-
- * numeric.c: Infinity.denominator returns 1. [experimental]
-
-Mon Dec 29 20:57:14 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
-
- * man/ri.1: new manpage.
-
-Mon Dec 29 20:45:25 2008 Tadayoshi Funaba <tadf@dotrb.org>
-
- * rational.c: floor, ceil, truncate and round accept an extra
- argument like Float#round. [experimental]
-
-Mon Dec 29 18:24:49 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
-
- * Makefile.in (distclean-local): removes Doxyfile and
- run.gdb at distclean'ing.
-
-Mon Dec 29 17:53:24 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
-
- * bin/erb: accepts options in more flexible styles.
-
-Mon Dec 29 17:25:17 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
-
- * lib/erb.rb (ERB): m17n of ERB. adds rdoc.
- fixes #712. c.f. [ruby-dev:37516].
-
- * lib/erb.rb (ERB::Compiler#compile): recognizes magic comments.
- returns a pair of compiled script and its script encoding.
-
- * lib/erb.rb (ERB#set_eoutvar): make generated scripts return a
- string in correct encoding.
-
- * lib/erb.rb (ERB#def_method): use Kernel#eval for encoding-awareness
- of the evaluated string.
-
- * bin/erb.rb (ERB::Main.run): adds -E and -U options.
- String is no longer Enumerable.
-
- * man/erb.1: new manpage.
-
- * test/erb/test_erb_m17n.rb: new test case for m17n features.
-
-Mon Dec 29 18:02:45 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * ext/io/wait/wait.c (io_nread): returns number of bytes available
- for read. response to feature request #936 in [ruby-core:20917].
-
-Mon Dec 29 17:52:16 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * ext/io/wait/wait.c (io_ready_p): updated to follow RDoc.
-
-Mon Dec 29 16:52:15 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * ext/socket/socket.c (s_recvfrom_nonblock): revert r21162.
-
-Mon Dec 29 16:16:20 2008 Koichi Sasada <ko1@atdot.net>
-
- * vm.c (vm_set_eval_stack, vm_set_main_stack, vm_set_top_stack):
- check stack overflow. [ruby-dev:37646]
-
-Sun Dec 28 18:36:33 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
-
- * test/rubygems/test_gem_command.rb
- (test_add_option_overlapping_common_and_local_options):
- follows r21066.
-
-Mon Dec 29 14:50:19 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
-
- * Makefile.in (ext-clean): ext-clean always fails.
-
- * ext/dl/ripper/extconf.rb: adds y.output into the clean list.
-
-Mon Dec 29 11:58:39 2008 Koichi Sasada <ko1@atdot.net>
-
- * thread.c (rb_mutex_trylock): return false if Mutex owned
- by current thread. [ruby-core:20943]
-
- * thread.c (rb_mutex_lock): check dead lock (recursive lock) here.
-
- * test/ruby/test_thread.rb: add a test.
-
-Mon Dec 29 10:58:54 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * file.c (rb_get_path): move encoding conversion of file path
- from rb_scan_open_args.
-
- * io.c (rb_scan_open_args): ditto.
-
-Mon Dec 29 07:15:16 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * cont.c: small RDoc fix mentioned from <radek.bulat at gmail.com>
- in [ruby-core:20921].
-
-Mon Dec 29 03:43:25 2008 Koichi Sasada <ko1@atdot.net>
-
- * ruby.c (process_options): set th->base_block only while
- it is needed. [ruby-dev:37634] [Bug #939]
-
- * ruby.c (require_libraries): clear th->base_block before
- require libraries.
-
-Sun Dec 28 21:33:52 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * test/ext/dl/test_base.rb: add BSD's case.
-
-Sun Dec 28 21:09:12 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
-
- * ext/dl/lib/dl/import.rb (DL::Importer#sizeof): follows
- a feature change in 1.9.
-
-Sun Dec 28 21:03:07 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
-
- * ext/dl/lib/dl/import.rb (DL::Importer#extern): adds filename and
- line number to module_eval'ing for readability of backtrace.
- (DL::Importer#bind): ditto.
-
- * ext/dl/lib/dl/struct.rb (DL::CStructBuilder#create): ditto.
-
-Sun Dec 28 19:11:03 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * win32/Makefile.sub (config.h): do not use snprintf/vsnprintf in
- msvcrt.
-
- * sprintf.c: not force to override snprintf/vsnprintf.
- [ruby-core:20824]
-
-Sun Dec 28 17:21:36 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * test/rubygems/test_ext_configure_builder.rb (test_self_build_fail):
- Extends pattern for FreeBSD's error message.
-
-Sun Dec 28 17:10:13 2008 TAKANO Mitsuhiro (takano32) <tak@no32.tk>
-
- * ext/dl/test/test_dl2.rb: modify strncpy, strcpy, qsort, types.
- Patch by Takehiro Kubo.
- Bug #633 [ruby-core:19289]
- * ext/dl/test/test_base.rb: /lib/libc.so is x86_64 binary in x86_64 architecture.
-
-Sun Dec 28 12:53:10 2008 TAKANO Mitsuhiro (takano32) <tak@no32.tk>
-
- * ext/dl/test/test_base.rb: use libc.dylib when the platform is darwin.
-
-Sun Dec 28 12:24:14 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * thread.c (mutex_free, mutex_unlock): add qualifiers.
-
-Sun Dec 28 10:28:04 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * thread.c (mutex_free): GC thread (main thread) has failed to unlock
- a mutex that is locked by another thread, which makes the mutex
- dangling in keeping_mutexes and causes [BUG] or stuck finally.
- Now unlocking is performed as locking thread.
-
- * thread.c (mutex_unlock, rb_mutex_unlock, rb_mutex_unlock_all):
- mutex_unlock receives a thread.
-
-Sun Dec 28 05:44:44 2008 Ryan Davis <ryand-ruby@zenspider.com>
-
- * lib/minitest/*.rb: Imported minitest 1.3.1 r4505.
- * test/minitest/*.rb: ditto.
-
-Sun Dec 28 00:43:33 2008 Tanaka Akira <akr@fsij.org>
-
- * runruby.rb: refactored to modify ENV as once.
-
-Sat Dec 27 22:41:02 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * test/rdoc/test_rdoc_info_formatting.rb (setup, teardown): uses
- mktmpdir and removes it after the test.
-
- * test/cgi/test_cgi_session.rb (setup, teardown): ditto.
-
-Sat Dec 27 21:46:10 2008 TAKANO Mitsuhiro (takano32) <tak@no32.tk>
-
- * ext/dl/test/test_base.rb: use lib64 when the architecture is x86_64.
-
-Sat Dec 27 20:26:59 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * win32/win32.c (rb_w32_argv_size): if an argument is empty, it's size
- is 2, not 0, because it will be converted to "".
-
-Sat Dec 27 19:40:56 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * process.c (after_exec): needs to reset before restart timer
- thread.
-
- * thread.c (thread_start_func_2): stops timer thread if forked in
- the new thread. [ruby-core:19385]
-
- * thread.c (rb_thread_atfork, rb_thread_atfork_before_exec): DRY.
-
-Sat Dec 27 18:25:09 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * vm_eval.c (rb_f_loop): return enumerator if no block given.
- [ruby-list:45747]
-
-Sat Dec 27 17:08:43 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * .gdbinit (dummy_gdb_enums.special_consts): forces to load debug
- info on Mac OS X.
-
- * .gdbinit (rp): added T_ZOMBIE.
-
-Sat Dec 27 16:18:02 2008 Koichi Sasada <ko1@atdot.net>
-
- * eval.c (rb_frame_callee, rb_frame_caller): rb_frame_callee()
- should return method id on current frame.
- add rb_frame_caller() to get method id on parent frame.
- Bug #884 [ruby-dev:37446]
-
- * eval.c (rb_f_method_name): use rb_frame_caller()
- instead of rb_frame_callee().
-
-Sat Dec 27 15:28:12 2008 Tanaka Akira <akr@fsij.org>
-
- * transcode.c (make_econv_exception): show source and destination
- encoding. [ruby-dev:37285]
-
-Sat Dec 27 15:23:38 2008 Koichi Sasada <ko1@atdot.net>
-
- * vm_insnhelper.c (vm_yield_with_cfunc): rename parameter name
- "blockptr" to "blockargptr".
-
-Sat Dec 27 15:15:56 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
-
- * common.mk (revision.h): ignores failure of file2lastrev.
-
-Sat Dec 27 15:02:38 2008 Koichi Sasada <ko1@atdot.net>
-
- * ruby.c (process_options): fix to untouch th->mild_compile_error.
- [ruby-dev:37621], [ruby-dev:37620]
-
-Sat Dec 27 14:48:26 2008 Koichi Sasada <ko1@atdot.net>
-
- * iseq.h, iseq.c (rb_iseq_new_main): add a type ISEQ_TYPE_MAIN.
- [ruby-dev:37619]
-
- * compile.c (rb_dvar_defined, ruby_iseq_compile): ditto.
-
- * iseq.c (iseq_data_to_ary, iseq_load): ditto.
-
- * compile.c (iseq_compile_each): fix to check ip->compile_data.
-
-Sat Dec 27 14:29:33 2008 Tanaka Akira <akr@fsij.org>
-
- * lib/open-uri.rb (OpenURI.redirectable?): permit https redirection.
- patch from Roman Shterenzon. [ruby-core:20485]
-
-Sat Dec 27 13:36:55 2008 Koichi Sasada <ko1@atdot.net>
-
- * eval.c (get_errinfo): return th->errinfo value
- if normal errinfo place (dynamic local variable) is not found.
- fixes Bug #732 [ruby-dev:37046].
-
- * bootstraptest/test_proc.rb: add a test.
-
-Sat Dec 27 13:10:43 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
-
- * man/irb.1: adds -v, -h, -E and -U.
-
-Sat Dec 27 11:41:45 2008 Koichi Sasada <ko1@atdot.net>
-
- * vm_insnhelper.c (vm_call_method, vm_call_cfunc): use original id instead of
- calling id when NODE_CFUNC or NODE_BMETHOD.
- fixes Bug #632 [ruby-core:19282].
-
- * vm_eval.c (vm_call0, vm_call_super): ditto.
-
- * vm_method.c (rb_add_method, rb_alias): store original id
- in nd_file field of NODE_METHOD.
-
- * test/stringio/test_stringio.rb: add a test.
-
-Sat Dec 27 09:48:54 2008 Koichi Sasada <ko1@atdot.net>
-
- * vm.c (Init_VM): create and define TOPLEVEL_BINDING at first.
-
- * vm.c (vm_set_main_stack, rb_iseq_eval_main): added.
-
- * parse.y (rb_parser_compile_file): fix to check parse_in_eval flag.
-
- * eval.c (ruby_exec_node): use rb_iseq_eval_main()
- instead of rb_iseq_eval().
-
- * iseq.c (rb_iseq_new_main), vm_core.h: added.
- main script (specified by -e or script name) should be run
- under TOPLEVEL_BINDING using Kernel#eval. Above changes
- simulate Kernel#eval behaviour. [ruby-dev:37240]
-
- * compile.c (make_name_for_block): skip iseq except block type.
- this fix is needed for [ruby-dev:37240], and also fixes
- [ruby-dev:35392].
-
-Sat Dec 27 09:14:17 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
-
- * cont.c: rdoc for Fiber. patch by Muhammad Ali.
- [ruby-core:20894]
-
-Sat Dec 27 05:38:59 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * process.c (after_fork): ignores a termination request in the
- parent process. [ruby-dev:37447]
-
-Sat Dec 27 01:52:39 2008 James Edward Gray II <jeg2@ruby-lang.org>
-
- * lib/csv.rb: Using a more robust transcoding scheme to produce
- ASCII compatible inspect() messages. [ruby-dev:37591]
-
-Fri Dec 26 18:04:10 2008 Tanaka Akira <akr@fsij.org>
-
- * io.c (fptr_finalize): don't allocate objects if noraise.
- (finish_writeconv): add noalloc argument to be able to avoid
- object allocation.
- (finish_writeconv_arg): introduced again.
- (finish_writeconv_sync): follow the above change.
-
-Fri Dec 26 17:04:14 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
-
- * lib/irb/input-method.rb (IRB::StdioInputMethod#initialize):
- removed a 'p' for debugging.
-
-Fri Dec 26 15:50:45 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/optparse.rb (OptionParser::List#summarize): gives priority
- to latter switches. [ruby-dev:36692]
-
- * lib/optparse.rb (OptionParser#summarize): do not append
- unnecessary line terminator.
-
-Fri Dec 26 14:01:38 2008 Tanaka Akira <akr@fsij.org>
-
- * io.c (fptr_finalize): close the IO object even if finish_writeconv or
- flush is failed.
- (finish_writeconv): don't raise. return errno or exception.
- (finish_writeconv_arg): removed.
- (finish_writeconv_sync): follow finish_writeconv change.
-
- * transcode.c (rb_econv_make_exception): new function.
-
- * include/ruby/encoding.h (rb_econv_make_exception): declared.
-
-Thu Dec 25 20:57:01 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * transcode.c (str_transcode0): set encoding when String#encode was
- given explicit but the same destination and source encoding.
-
-Thu Dec 25 20:01:50 2008 Tanaka Akira <akr@fsij.org>
-
- * io.c (rb_io_s_pipe): unused variable removed.
-
-Thu Dec 25 19:35:51 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * transcode.c (sym_ignore): remove useless symbol.
-
-Thu Dec 25 18:36:04 2008 Tanaka Akira <akr@fsij.org>
-
- * io.c (pipe_close): removed.
- (pipe_yield): defined.
- (rb_io_s_pipe): use pipe_yield.
-
-Thu Dec 25 17:49:45 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * transcode.c (decorate_convpath): show type of escaping for
- xml_attr_quote or some conversions.
-
-Thu Dec 25 17:06:13 2008 Tanaka Akira <akr@fsij.org>
-
- * io.c (rb_io_initialize): check fd validity. [ruby-dev:36646]
-
-Thu Dec 25 16:23:31 2008 Tanaka Akira <akr@fsij.org>
-
- * io.c (flush_before_seek): check io_fflush result.
- (rb_io_check_readable): ditto.
- (rb_io_flush): ditto.
- (rb_io_fsync): ditto.
- (remain_size): ditto.
- (rb_io_write_nonblock): ditto.
- (finish_writeconv): ditto.
- (fptr_finalize): ditto.
- (io_reopen): ditto.
- (rb_io_reopen): ditto.
- (copy_stream_body): ditto.
-
-Thu Dec 25 15:54:00 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * io.c (io_fflush): flush write buffer without write lock in
- finalizers. [ruby-dev:37572]
-
- * io.c (rb_io_fptr_finalize): clear write lock before finalizing.
-
-Thu Dec 25 15:07:22 2008 Tanaka Akira <akr@fsij.org>
-
- * io.c (fptr_finalize): close the IO object even if close(2) is failed.
-
-Thu Dec 25 14:51:43 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * lib/rdoc/parser.rb (RDoc::Parser.binary?): should read in binary mode.
-
-Thu Dec 25 14:32:23 2008 Koichi Sasada <ko1@atdot.net>
-
- * vm_insnhelper.c (vm_method_search): fix control flow bug.
- (commited at r20981)
-
-Thu Dec 25 13:28:20 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * io.c (rb_io_flush): fsync() after buffer is flushed on win32.
- [ruby-core:20043]
-
-Thu Dec 25 13:13:00 2008 Koichi Sasada <ko1@atdot.net>
-
- * vm_insnhelper.c (vm_method_search): return rb_cObject if there is no
- super class. [ruby-dev:37587]
-
- * bootstraptest/test_method.rb: add tests for above.
-
-Thu Dec 25 12:49:12 2008 Koichi Sasada <ko1@atdot.net>
-
- * proc.c (proc_new): should use proc_dup() if block has Proc.
-
- * vm.c (vm_make_proc_from_block): should use rb_cProc for block.
-
- * vm.c (vm_make_proc): add an assertion.
-
- * bootstraptest/test_proc.rb: add a test.
-
-Thu Dec 25 12:44:27 2008 Koichi Sasada <ko1@atdot.net>
-
- * vm_insnhelper.c (vm_yield_with_cfunc): check block has Proc.
-
-Thu Dec 25 05:53:01 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * template/id.h.tmpl, id.h (ruby_method_ids): not depend on if
- token are defined as macros. [ruby-dev:37553]
-
- * template/id.h.tmpl, id.h (ruby_method_ids_check): enclosed in a
- struct.
-
-Thu Dec 25 01:52:34 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * thread.c (thread_start_func_2): sets native thread key.
-
-Thu Dec 25 01:09:23 2008 TAKAO Kouji <kouji@takao7.net>
-
- * test/readline/test_readline_history.rb: check the encoding that
- is in the Readline::HISTORY.
-
-Thu Dec 25 00:59:06 2008 TAKAO Kouji <kouji@takao7.net>
-
- * test/readline/test_readline_history.rb: did not check the
- encoding that is in the Readline::HISTORY. I will fix it.
-
-Wed Dec 24 22:36:06 2008 Koichi Sasada <ko1@atdot.net>
-
- * error.c, vm_dump.c: change message by rb_bug().
-
-Wed Dec 24 21:57:39 2008 Koichi Sasada <ko1@atdot.net>
-
- * compile.c (iseq_peephole_optimize): fix typo.
-
-Sun Dec 21 13:38:04 2008 Koichi Sasada <ko1@atdot.net>
-
- * vm.c (invoke_block_from_c): fix to point right cfp.
-
- * vm.c (vm_make_proc, vm_make_proc_from_block), vm_core.h:
- remove unused parameter cfp.
-
- * vm_insnhelper.c, proc.c (proc_new): ditto.
-
-Wed Dec 24 20:59:12 2008 Koichi Sasada <ko1@atdot.net>
-
- * error.c (exc_equal): == method should not raise Exception.
- [ruby-dev:37519]
-
- * sample/test.rb: fix test.
-
-Wed Dec 24 20:33:45 2008 Koichi Sasada <ko1@atdot.net>
-
- * vm_insnhelper.c (vm_call_method): use class of method defined
- instead of receiver's class on bmethod. fixes [ruby-core:20786]
-
- * bootstraptest/test_method.rb: add a test for above.
-
- * vm_insnhelper.c (vm_setup_method): remove unused parameter klass.
-
- * vm_insnhelper.h (CALL_METHOD): ditto.
-
- * insns.def, vm_eval.c: ditto.
-
-Wed Dec 24 20:15:50 2008 Koichi Sasada <ko1@atdot.net>
-
- * tool/file2lastrev.rb (get_revisions): fix to ignore end of line.
-
-Wed Dec 24 13:33:38 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * configure.in (HAVE_LONG_LONG, HAVE_OFF_T): revised for autoconf
- 2.62 or later.
-
-Wed Dec 24 06:29:32 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * configure.in (OBJDUMP, OBJCOPY): autoconf list is not comma
- separated.
-
- * configure.in (AC_HEADER_STDC, AC_CHECK_HEADERS, AC_CHECK_FUNCS):
- removed duplicated checks.
-
-Wed Dec 24 03:21:21 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * misc/ruby-mode.el: added comment to mention newer version
- bundled with Emacs 23 or later. a patch from Phil Hagelberg
- <phil at hagelb.org> in [ruby-core:20838].
-
-Tue Dec 23 23:49:37 2008 Tanaka Akira <akr@fsij.org>
-
- * io.c (rb_io_init_copy): call io_seek only if io_tell succeeds.
-
-Tue Dec 23 22:57:48 2008 Tanaka Akira <akr@fsij.org>
-
- * process.c (rb_fork): don't propagate an error message if error
- buffer not given.
-
-Tue Dec 23 21:55:05 2008 Tanaka Akira <akr@fsij.org>
-
- * process.c (rb_fork): propagate an error message from child to parent.
- (rb_f_exec): show details of error in child process on
- exception.
- (save_redirect_fd): add error message arguments.
- (run_exec_dup2): ditto.
- (run_exec_close): ditto.
- (run_exec_open): ditto.
- (run_exec_dup2_child): ditto.
- (run_exec_pgroup): ditto.
- (run_exec_rlimit): ditto.
- (rb_run_exec_options): ditto.
- (rb_exec): ditto.
- (rb_exec_atfork): ditto.
- (rb_spawn_internal): ditto.
- (rb_spawn): ditto.
- (rb_f_system): follow arguments change.
- (proc_daemon): ditto.
- (rb_f_spawn): show details of error in child process on exception.
-
- * io.c (popen_exec): add error message arguments.
- (pipe_open): show details of error in child process on exception.
-
- * include/ruby/intern.h (rb_run_exec_options): add error message
- arguments.
- (rb_exec): ditto.
- (rb_fork): ditto.
- (rb_spawn): ditto.
-
- * ext/pty/pty.c (chfunc): add error message arguments.
-
-Tue Dec 23 20:28:28 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
-
- * io.c: rdoc for File::open and 1.9 feature in file modes.
-
- * transcode.c: rdoc for String#encode
-
-Tue Dec 23 19:51:24 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * win32/win32.c (rb_w32_spawn): deals with quoted commands.
-
-Tue Dec 23 18:44:21 2008 Tanaka Akira <akr@fsij.org>
-
- * strftime.c (rb_strftime): use locale insensitive functions for tr_TR
- locale.
-
-Tue Dec 23 17:38:03 2008 Tanaka Akira <akr@fsij.org>
-
- * lib/test/unit/assertions.rb (assert_equal): show small differences
- for Regexp and Float.
-
-Tue Dec 23 16:49:48 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * win32/win32.c (rb_w32_spawn): support normal commands with arguments.
-
-Tue Dec 23 16:22:41 2008 Tanaka Akira <akr@fsij.org>
-
- * io.c (rb_io_inspect): show fd number if there is no pathname.
-
-Tue Dec 23 15:48:55 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * tool/file2lastrev.rb: shouldn't use single quote in shell's command
- line if you want to support Windows.
-
-Tue Dec 23 15:46:43 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
-
- * lib/mathn.rb: Math.sqrt(NaN) should be NaN. [ruby-dev:37537]
-
-Tue Dec 23 15:46:47 2008 Eric Hodel <drbrain@segment7.net>
- * gem_prelude.rb: Match full RubyGems behavior when a gem can't be
- found.
-
-Tue Dec 23 15:36:58 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
-
- * tool/file2lastrev.rb: detects vcs directory properly on building
- outside of srcdir. [ruby-dev:37555] [ruby-dev:37561]
-
-Tue Dec 23 15:30:02 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * io.c (pipe_open): need to initialize args.
-
-Tue Dec 23 14:18:14 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * include/ruby/st.h: need to include defines.h because LONG_LONG is
- defined there.
-
-Tue Dec 23 13:52:05 2008 Eric Hodel <drbrain@segment7.net>
-
- * lib/rdoc/parser/c.rb: Don't coalesce adjacent comment blocks.
- [bug#901]
-
-Tue Dec 23 12:00:00 2008 Tanaka Akira <akr@fsij.org>
-
- * io.c (pipe_close): fix coding style. [ruby-dev:37554]
-
-Tue Dec 23 08:10:05 2008 Eric Hodel <drbrain@segment7.net>
-
- * lib/rubygems/installer.rb: Fix documentation. [bug#827]
-
-Tue Dec 23 08:04:58 2008 Eric Hodel <drbrain@segment7.net>
-
- * gem_prelude.rb: Don't remove methods twice. [bug#555]
-
-Tue Dec 23 00:16:48 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * sprintf.c (rb_str_format): fix buffer overflow.
-
-Mon Dec 22 19:31:19 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
-
- * common.mk (revision.h): uses tool/file2lastrev.rb to support
- git-svn.
-
- * version.h: changed version string as
- `ruby 1.9.1 (2008-12-22 patchlevel-5000 trunk 20912)
- [i386-darwin9.6.0]'.
-
-Mon Dec 22 16:32:21 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * pack.c (pack_pack): encoding of packed string only from 'm',
- 'M', and 'u' should be US-ASCII. [ruby-dev:37284]
-
- * pack.c (pack_pack): encoding of packed string only from 'U'
- should be UTF-8. also upgrade US-ASCII strings to UTF-8.
-
-Mon Dec 22 15:56:49 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
-
- * Doxyfile.in: new file. Template of a configuration file.
- Introduces C-level API reference generation with Doxygen.
-
- * tool/file2lastrev.rb: wrapper script that abstracts subversion
- and git-svn.
-
- * tool/strip-rdoc.rb: filter for preventing doxygen from processing
- rdoc comments.
-
- * configure.in: (Doxyfile): Doxyfile is generated together with
- Makefile.
- (PACKAGE): configuration $(PACKAGE) is necessary for $(docdir).
-
- * instruby.rb: adds a new install target 'capi'
-
- * common.mk (capi): new target that generates C API documents with
- Doxygen.
- (install-capi): new target.
- (pre-install-capi): ditto.
- (do-install-capi): ditto.
- (post-install-capi): ditto.
-
-Mon Dec 22 21:31:11 2008 Tanaka Akira <akr@fsij.org>
-
- * numeric.c (int_ord): Integer#ord implemented.
-
-Mon Dec 22 21:26:12 2008 Tanaka Akira <akr@fsij.org>
-
- * io.c (rb_io_s_pipe): IO.pipe can take a block.
- (pipe_close): new function.
-
-Mon Dec 22 21:08:54 2008 Tanaka Akira <akr@fsij.org>
-
- * lib/test/unit/assertions.rb (assert_nothing_raised): increment
- assertion count. [ruby-dev:37480]
-
-Mon Dec 22 19:10:44 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * thread_win32.c (Init_native_thread): need to call
- ruby_thread_set_native() here.
-
-Mon Dec 22 18:00:36 2008 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/tcltklib.c: fix wrong flag value.
-
-Mon Dec 22 15:15:58 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/net/protocol.rb (Net::BufferedIO#rbuf_fill): avoid calling
- read_nonblock in rescue. use retry instead.
-
-Mon Dec 22 14:35:59 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * string.c (rb_external_str_new_with_enc): set ASCII-8BIT if
- encoding is US-ASCII and string contains 8bit characters.
-
-Mon Dec 22 12:26:18 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * cygwin/GNUmakefile.in (rubydll.def), win32/mkexports.rb
- (Exports#exports): added VERSION.
-
-Mon Dec 22 12:25:09 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * missing/vsnprintf.c (BSD_vfprintf): fix for test_sprintf_comb.rb, by
- wanabe in [ruby-dev:36935].
-
-Mon Dec 22 12:05:14 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * configure.in (mingw): no longer uses snprintf and vsnprintf of
- msvcrt. [Bug#6]
-
- * win32/win32.c (rb_w32_vsnprintf, rb_w32_snprintf): removed.
-
- * win32/Makefile.sub (config.h): vsnprintf exists in VC7 or later.
-
- * win32/mkexports.rb (Exports#initialize): aliases
- rb_w32_vsnprintf and rb_w32_snprintf for binary compatibility.
-
- * sprintf.c (rb_str_format): uses snprintf instead of sprintf.
-
- * numeric.c (flo_to_s, rb_num2long, rb_num2ll): ditto.
-
-Mon Dec 22 10:59:31 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * string.c (rb_str_upto): should return enumerator if called
- without block. [ruby-dev:37526]
-
-Mon Dec 22 09:54:43 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * parse.y (gettable_gen): the encoding of __FILE__ should be
- rb_filesystem_encoding(). [ruby-list:45733]
-
- * parse.y (gettable_gen): __FILE__ should be ASCII-8BIT when
- filesystem encoding is US-ASCII and __FILE__ contains non 7bit
- characters.
-
-Mon Dec 22 02:54:56 2008 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/lib/tk.rb: temporary patch for trouble on TkAqua (> Tk8.4.9).
-
- * ext/tk/sample/demos-jp/widget: set encoding to a demo-code string to
- avoid garbled text on the Code Window.
-
-Sun Dec 21 14:55:18 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/optparse.rb (SPLAT_PROC): splat values by hand.
-
-Sun Dec 21 13:50:37 2008 TAKAO Kouji <kouji@takao7.net>
-
- * test/readline/test_readline.rb
- (TestReadline#test_some_characters_methods): checked encoding.
-
-Sun Dec 21 12:23:16 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/optparse.rb (SPLAT_PROC): fix for regexp. [ruby-dev:37514]
-
-Sun Dec 21 10:43:10 2008 TAKANO Mitsuhiro (takano32) <tak@no32.tk>
-
- * sample/test.rb: rescue exception.
-
-Sat Dec 20 18:28:26 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * dln.c (dln_find_1): supplements an extension for executable
- files on DOSish platforms.
-
- * io.c (pipe_open): use rb_w32_aspawn() for array form.
-
- * win32/win32.c (rb_w32_pipe_exec): no longer used.
-
- * win32/win32.c (rb_w32_spawn, rb_w32_aspawn): deals with batch
- files and commands with extensions. [ruby-core:20695]
-
- * win32/win32.c (has_redirection): supports environment variables
- references.
-
-Sat Dec 20 15:34:36 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/rake.rb (Rake::FileList#egrep): change open mode to "rb",
- i.e. default to binary. [ruby-dev:37385]
-
- * lib/rake.rb (Rake::FileList#egrep): allow specifying reading
- encoding, e.g. FileList['*.rb'].egrep(/require/, encoding:
- "ascii-8bit")
-
- * lib/rake.rb (Rake::MultiTask): invoke_prerequisites should be
- private. a patch from okkez in [ruby-dev:37399]
-
-Sat Dec 20 10:59:16 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
-
- * lib/irb/locale.rb (IRB::Locale#initialize)
- initializes instance variables to suppress warnings.
- typo fix to ignore LoadError: [ruby-dev:37508]
-
-Fri Dec 19 17:01:35 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * io.c (rb_io_extract_encoding_option): "internal_encoding: nil"
- to specify no-transcoding. and other corner case fixed.
- [ruby-dev:37496]
-
- * hash.c (rb_hash_lookup2): new function to look-up hash with
- default value.
-
-Fri Dec 19 15:51:48 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ruby.c (process_options): get rid of warning on DOSISH.
-
-Fri Dec 19 07:45:37 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * error.c (exc_equal): duck typing equal to make it transitive.
- [ruby-dev:34808]
-
-Thu Dec 18 19:31:54 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
-
- * lib/irb/init.rb (IRB.opt_parse): (M17N) adds -U and -E as command
- line options. [ruby-dev:37161]. Fixes #711.
- improved long options.
-
- * lib/irb/init.rb (IRB.set_encoding): new subroutine for IRB.opt_parse
-
- * lib/irb/input-method.rb (IRB::StdioInputMethod): (M17N) regards
- scripts that user types as encoded in the external_encoding.
-
- * lib/irb/input-method.rb (IRB::ReadlineInputMethod): ditto.
-
- * lib/irb/input-method.rb (IRB::FileInputMethod): (M17N) respects
- magic comment.
-
- * lib/irb/help.rb (IRB.print_usage): (M17N) respects magic comment
- in the resource file.
-
- * lib/irb/lc/help-message: adds -U and -E.
-
- * lib/irb/lc/ja/help-message: ditto. re-encoded from ISO-2022-JP into UTF-8.
-
- * lib/irb/lc/ja/encoding_aliases.rb: new file. provides Japanese specific
- character encoding name table for backward compatibility.
-
- * lib/irb/lc/ja/error.rb: re-encoded from ISO-2022-JP into UTF-8.
- magic comment.
-
- * lib/irb/locale.rb: integrated with Ruby 1.9's M17N support.
-
- * lib/irb/magic-file.rb: new file. utility to handle files with magic
- comment and opens in the correct encoding.
-
- * lib/irb/ruby-lex.rb (RubyLex#each_top_level_statement): recovers
- character encoding for a statement after it lexed so that irb can
- eval the statement in correct encoding.
-
- * lib/irb/src_encoding.rb: new file. utility.
-
-Thu Dec 18 21:12:28 2008 Takeyuki FUJIOKA <xibbar@ruby-lang.org>
-
- * lib/cgi/session.rb: fix bug for ignore session_id option.
- report from [ruby-core:18635], [Bug #572]
-
- * lib/cgi/core.rb: use Encoding#find when encoding set.
-
- * test/cgi/test_cgi_session.rb: test for session_id specified.
-
-Thu Dec 18 17:00:56 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * hash.c (rb_hash_aset): string key copying only happen if key is
- an exact instance of String, not a subclass. based on a patch
- from Mike Gold <mike.gold.4433 at gmail.com> in [ruby-talk:322667].
- [incompatible] [ruby-talk:322417]
-
-Thu Dec 18 16:48:12 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/optparse/version.rb: remove variable shadowing to stop
- warning. [ruby-core:20612]
-
- * lib/irb/completion.rb, lib/net/imap.rb, lib/prime.rb,
- lib/rinda/ring.rb, lib/racc/parser.rb,
- lib/shell/command-processor.rb, lib/yaml/yamlnode.rb: ditto.
-
- * lib/racc/parser.rb: remove space before parentheses.
-
- * lib/shell/command-processor.rb, lib/shell/process-controller.rb:
- use parentheses around arguments.
-
- * lib/irb/ext/change-ws.rb, lib/rexml/validation/relaxng.rb,
- lib/yaml/baseemitter.rb: indentation fix.
-
- * lib/matrix.rb: small cosmetic change.
-
-Thu Dec 18 08:15:04 2008 James Edward Gray II <jeg2@ruby-lang.org>
-
- * lib/xmlrpc/server.rb: Restricting method inspection to show only
- non-inherited public methods. [ruby-core:20603]
-
- * lib/xmlrpc/server.rb: Fixing method inspection so it doesn't
- trigger XMLRPC::FaultException when used. [ruby-core:20604]
-
-Wed Dec 17 19:39:44 2008 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/socket.c (unix_recv_io): relax msg_controllen error
- check for x86_64-openbsd4.4.
-
-Wed Dec 17 19:37:30 2008 Tanaka Akira <akr@fsij.org>
-
- * ext/pty/extconf.rb: check util.h for OpenBSD.
-
- * ext/pty/pty.c: include util.h if available. fix variable name.
-
-Wed Dec 17 19:23:28 2008 Keiju Ishitsuka <keiju@ruby-lang.org>
-
- * lib/matrix.rb: shut up warning. [ruby-dev:37481] [Bug #899]
-
-Wed Dec 17 15:44:28 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * array.c (rb_ary_pop_m): use enum ary_take_pos_flags.
-
- * array.c (rb_ary_push_m): add modification check before actual
- operation. [ruby-dev:37440]
-
-Wed Dec 17 15:35:39 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
-
- * configure.in (OBJDUMP, OBJCOPY):
- *BSD's ports and MacPorts prefix GNU binutils with 'g'.
-
-Wed Dec 17 11:39:39 2008 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
-
- * test/bigdecimal/test_bigdecimal.rb (TestBigDecimal#test_hash):
- shut up warning. see [ruby-dev:37437]
-
-Wed Dec 17 11:01:35 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * string.c (rb_str_hash): gets rid of collisions between different
- encoding strings. [ruby-core:20526]
-
-Wed Dec 17 09:50:19 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
-
- * test/ruby/test_metaclass.rb: removed codes for my debugging.
- sorry. [ruby-dev:37470]
-
-Tue Dec 16 22:55:11 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * bin/testrb: set $0.
-
-Tue Dec 16 22:42:16 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * lib/test/unit.rb (Test::Unit.setup_argv): sorry, fixed wrong commit.
-
-Tue Dec 16 22:15:17 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/minitest/unit.rb (MiniTest::Assertions#assert_instance_of):
- should assert by instance_of?, not ===. [ruby-dev:37458]
-
- * lib/minitest/unit.rb (MiniTest::Assertions#assert_instance_of):
- typo fixed.
-
-Tue Dec 16 21:59:29 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * lib/test/unit.rb (Test::Unit.setup_argv): ALT_SEPARATOR support.
-
-Tue Dec 16 21:59:02 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * ext/bigdecimal/bigdecimal.c (VpToString): reverted modification
- (that caused a bug) in r20359. [ruby-dev:37370]
-
- * ext/bigdecimal/bigdecimal.c (BigDecimal_limit): comment update.
- [ruby-dev:37465]
-
-Tue Dec 16 20:34:44 2008 Tanaka Akira <akr@fsij.org>
-
- * ext/pty/pty.c (getDevice): add nomesg argument.
- (get_device_once): add nomesg argument. chmod slave tty to 0600
- if nomesg. more error tests.
- (no_mesg): new function.
- (pty_open): make slave tty's mode 0600.
-
-Tue Dec 16 20:24:20 2008 Tadayoshi Funaba <tadf@dotrb.org>
-
- * lib/date/format.rb (_parse): m17n compliant.
-
-Tue Dec 16 19:48:18 2008 Tanaka Akira <akr@fsij.org>
-
- * ext/pty/extconf.rb: check posix_openpt.
-
- * ext/pty/pty.c (get_device_once): use posix_openpt if available.
-
-Tue Dec 16 19:43:53 2008 Tanaka Akira <akr@fsij.org>
-
- * re.c: use strlcpy for error messages.
-
-Tue Dec 16 16:41:51 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * parse.y (stmt): returns dispatched result.
-
- * parse.y (primary): also in ripper, saves in_def before restoring.
-
-Tue Dec 16 12:30:56 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * configure.in (ac_cv_header_ucontext_h): do not use ucontext.h on Mac
- OS X 10.5 or later. merged from MacPorts.
-
- * configure.in (ac_cv_func_daemon): daemon(3) is deprecated on Mac OS
- X 10.5 or later.
-
-Tue Dec 16 11:37:07 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * ruby.c (set_arg0): use strlcpy() instead of strncpy().
-
- * load.c (rb_feature_p): ditto.
-
- * dln.c (dln_load): ditto.
-
-Tue Dec 16 09:14:28 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * parse.y (block_call): block should not be given to yield.
- [ruby-core:20583]
-
-Mon Dec 15 23:48:39 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * thread.c (sleep_timeval): cast tv_usec to long to shut up
- warnings on OSX. [ruby-dev:37449]
-
-Mon Dec 15 23:34:04 2008 Tanaka Akira <akr@fsij.org>
-
- * ext/pty/pty.c (pty_open): set FMODE_SYNC and FMODE_DUPLEX.
-
-Mon Dec 15 23:29:49 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * ruby.c (process_options): revive global sub, gsub, chop, chomp
- only when auto looping options (-p/-n) is specified.
- [ruby-core:20570]
+ * test/rdoc/test_rdoc_markup_pre_process.rb
+ (TestRDocMarkupPreProcess#test_include_file,
+ TestRDocMarkupPreProcess#test_include_file_encoding_incompatible):
+ follow above change.
-Mon Dec 15 22:48:11 2008 Tanaka Akira <akr@fsij.org>
+Tue Feb 14 16:34:11 2012 Shota Fukumori <sorah@tubusu.net>
- * ext/pty/pty.c (pty_open): new method PTY.open.
+ * test/rubygems/test_gem_commands_help_command.rb: Add one
+ `require` because if run test-all with test/unit parallel
+ running, sometimes this test fails by some constants not found.
+ The error reason is some worker doesn't require the file needed by
+ this test. This issue is related to [ruby-core:36168].
-Mon Dec 15 21:24:01 2008 Tanaka Akira <akr@fsij.org>
+Tue Feb 14 15:58:31 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * ext/pty/pty.c (get_device_once): use DEVICELEN instead of
- sizeof SlaveName.
+ * gc.c (initial_params): pack in a struct.
-Mon Dec 15 21:01:46 2008 Tanaka Akira <akr@fsij.org>
+ * gc.c (rb_gc_set_params): set parameters always.
+ [ruby-dev:44648] [Bug #5467]
- * ext/pty/pty.c (chfunc): make it static.
+Tue Feb 14 15:44:42 2012 NAKAMURA Usaku <usa@ruby-lang.org>
-Mon Dec 15 20:59:10 2008 Tanaka Akira <akr@fsij.org>
+ * test/irb/test_completion.rb: skip if cannot load irb/completion
+ (maybe readline does not exist).
- * ext/pty/pty.c (child_info): add slavename.
- (chfunc): use slavename.
- (establishShell): set slavename.
+Tue Feb 14 15:07:23 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Mon Dec 15 20:16:46 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+ * lib/test/unit/assertions.rb (build_message): skip escaped
+ question marks.
- * common.mk (EXTMK_ARGS): shouldn't use ``\"'' because cmd.exe eat
- ''\'' in such quotes.
+Mon Feb 13 12:06:29 2012 Loren Segal <lsegal@soen.ca>
-Mon Dec 15 19:07:31 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+ * io.c (Init_IO): use directive hack to make ARGF documentable
+ in other tools. [ruby-core:42515][Bug #6007]
- * win32/Makefile.sub (config.h): define CANONICALIZATION_FOR_MATHN
- to follow r20683.
+Sun Feb 12 16:57:56 2012 Akinori MUSHA <knu@iDaemons.org>
-Mon Dec 15 18:12:34 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * misc/rdoc-mode.el (rdoc-imenu-create-index): Add imenu support
+ to rdoc-mode.
- * lib/rake/packagetask.rb (Rake::PackageTask): small document
- update from okkez in [ruby-dev:37443]
+ * misc/rdoc-mode.el (rdoc-mode): Fix regexp patterns containing
+ "\s " where CR/LF is not supposed to match.
-Mon Dec 15 16:28:32 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Sun Feb 12 16:56:23 2012 Akinori MUSHA <knu@iDaemons.org>
- * vm_insnhelper.c (vm_callee_setup_arg_complex): uses cfp from
- blockptr instead of the current cfp. [ruby-core:20544]
+ * misc/rdoc-mode.el (rdoc-mode): Add provide so that requiring
+ this library succeeds.
-Mon Dec 15 14:56:59 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+Sun Feb 12 16:53:18 2012 Akinori MUSHA <knu@iDaemons.org>
- * test/ruby/test_metaclass.rb: new test case for metaclass hierarchy.
+ * lib/tempfile.rb (Tempfile#unlink, Tempfile::Remover#call): Just
+ call File.unlink and ignore ENOENT because existence check
+ before unlinking does not help in terms of race condition.
- * class.c (make_metametaclass): new function. extracted from
- rb_make_metaclass.
+ * lib/tempfile.rb (Tempfile#unlink, Tempfile::Remover#call): My
+ comment about thread safeness is obsolete.
- * class.c (rb_make_metaclass): uses make_metametaclass when called for a
- metaclass.
+Sun Feb 12 16:50:28 2012 Akinori MUSHA <knu@iDaemons.org>
- * class.c (rb_singleton_class): creates a meta^(n+2)-class in
- addition to a meta^(n+1)-class when called for a meta^(n)-class.
- This is because the returned meta^(n+1) class must acts as an instance of
- Class, metaclass of Class, ..., meta^(n+1)-class of Class,
- Module, metaclass of Module, ..., meta^(n+1)-class of Module,
- Object, metaclass of Object, ..., meta^(n+2)-class of Object,
- BasicObject, metaclass of BasicObject, ..., meta^(n+2)-class of
- and BasicObject even when Class, Module, Object or BasicObject has
- not have its meta^(i)-class yet.
+ * lib/shellwords.rb: Fix rdoc markups.
-Mon Dec 15 15:13:22 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Sun Feb 12 16:50:28 2012 Akinori MUSHA <knu@iDaemons.org>
- * id.h, template/id.h.tmpl (ruby_method_ids): sees YYTOKENTYPE too.
- [ruby-dev:37436]
+ * lib/shellwords.rb (Shellwords#shellsplit): Fix a bug where
+ consecutive backslashes in double quotes are all removed except
+ the one at the tail.
-Mon Dec 15 15:02:24 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Sun Feb 12 16:38:13 2012 Akinori MUSHA <knu@iDaemons.org>
- * common.mk (EXTMK_ARGS): needs MINIRUBY for cross-compile.
- [ruby-core:20131]
+ * lib/shellwords.rb (Shellwords#shellescape): Drop the //n flag
+ that only causes warnings with no real effect. [Bug #5637]
-Mon Dec 15 14:39:37 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Sun Feb 12 16:34:55 2012 Akinori MUSHA <knu@iDaemons.org>
- * vm_eval.c (vm_call0): NODE_ZSUPER supported. [ruby-core:20480]
-
- * vm_eval.c (vm_call_super): uses method_missing().
-
- * vm_eval.c (method_missing): get rid of too large alloca.
-
- * vm_eval.c (rb_call0, method_missing): uses idMethodMissing.
-
- * vm_method.c (rb_add_method, remove_method, rb_undef): uses
- id__send__.
-
- * vm_method.c (Init_eval_method): removed IDs which are defined as
- immediate values.
-
-Mon Dec 15 11:35:27 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * vm.c (vm_backtrace): defaults to script name for C functions.
-
-Mon Dec 15 11:32:18 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ruby.c (rubylib_mangled_path, rubylib_mangled_path2): cannot use
- locale encoding before load path is initialized
-
- * ruby.c (ruby_init_loadpath_safe): ditto.
-
- * ruby.c (process_options): loads encdb so that encodings can be
- loaded, then associates script name and load paths with the
- locale encoding.
-
-Mon Dec 15 10:00:36 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * common.mk (btest-ruby): use RUNRUBY instead of MINIRUBY to load the
- shared library. [Bug #849]
-
-Sun Dec 14 22:31:19 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * bignum.c (bigmul1_karatsuba): remove temporal bignum.
-
- * bignum.c (bigsqr): call bigmul0(x, x) because it is faster than the
- original bigsqr at this point.
-
- * bignum.c (rb_big_pow): a value returned from bigsqr is already
- truncated.
-
-Sun Dec 14 21:13:02 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * bignum.c (bigmul1_karatsuba): fix comment and refactoring.
-
-Sun Dec 14 14:53:41 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * bignum.c (bigmul1_balance, bigmul1_karatsuba): remove all
- rb_gc_force_recycle which causes memory leak.
-
-Sun Dec 14 14:26:11 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
-
- * spec/README: directory structure changed
-
-Sun Dec 14 09:14:37 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
-
- * reverts r20713.
-
-Sun Dec 14 12:51:48 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * bignum.c (rb_big_mul): faster multiplication by Karatsuba method and
- twice faster square than normal multiplication. [ruby-dev:37392]
-
- * random.c (rb_rand_internal): used by Bignum#*.
-
- * test/ruby/test_bignum.rb: add some tests for above.
-Sun Dec 14 01:35:48 2008 Tanaka Akira <akr@fsij.org>
-
- * process.c (forked_child): new variable.
- (before_exec): don't call rb_thread_stop_timer_thread if
- forked_child.
- (after_exec): reset forked_child after rb_thread_start_timer_thread.
- (rb_fork): set forked_child just after fork in child.
-
- * ext/pty/pty.c (chfunc): extracted from establishShell.
- (establishShell): use rb_fork.
-
- [ruby-dev:37418]
-
-Sat Dec 13 22:17:30 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
-
- * common.mk (help): describes more targets.
- based on a patch by Michael Klishin. [ruby-core:20523].
-
-Sat Dec 13 18:34:43 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * string.c (sym_printable): wrong condition for string iteration.
-
-Sat Dec 13 16:04:48 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
-
- * encoding.c (default_external): endless recursion during
- loading a locale encoding on some locale.
- fixed by Nobuyoshi Nakada.
-
-Sat Dec 13 15:55:37 2008 TAKAO Kouji <kouji@takao7.net>
-
- * ruby.c (process_options): fixed default_internal is nil.
- (closes #862)
-
-Sat Dec 13 15:52:27 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * string.c (sym_equal): remove documentation error "Otherwise,
- compares them as strings". [ruby-dev:37398]
-
- * string.c (sym_inspect): quote if symbol contains non-printable
- characters. [ruby-dev:37398]
-
-Sat Dec 13 14:24:38 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
-
- * test/ruby/enc/test_utf16.rb: feature changed in r20626.
- follows it.
-
-Sat Dec 13 13:41:44 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
-
- * test/ruby/test_m17n_comb.rb: feature changed in r20626.
- follows it.
-
-Sat Dec 13 13:03:20 2008 Tadayoshi Funaba <tadf@dotrb.org>
-
- * complex.c: use rb_usascii_str_new2 instead of rb_str_new2.
-
- * rational.c: ditto.
-
-Sat Dec 13 12:48:57 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
-
- * test/ruby/test_m17n.rb: feature changed in r20626.
- follows it.
-
-Sat Dec 13 12:38:16 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
-
- * lib/minitest/test.rb (MinTest::Unit#location):
- skips user-defined assertions as MiniTest's.
- e.g. for test/ruby/test_m17n.rb.
-
-Sat Dec 13 09:17:33 2008 Ryan Davis <ryand-ruby@zenspider.com>
-
- * lib/minitest/*.rb: Imported minitest 1.3.1 r4503.
- * test/minitest/test_mini_test.rb: ditto.
- * lib/miniunit/autorun.rb: added (as part of r4503).
-
-Sat Dec 13 08:35:14 2008 Tadayoshi Funaba <tadf@dotrb.org>
-
- * complex.c (nucomp_canonicalization): renamed.
-
- * ext/math/complex.c: followed the above change.
-
- * rational.c (nurat_canonicalization): renamed.
-
- * ext/math/rational.c: followed the above change.
-
- * configure.in: defines a new macro.
-
-Sat Dec 13 01:10:03 2008 TAKAO Kouji <kouji@takao7.net>
-
- * ext/readline/readline.c
- (readline_s_get_completion_append_character): uses locale
- encoding but not ASCII-8BIT.
-
-Fri Dec 12 22:12:46 2008 Tadayoshi Funaba <tadf@dotrb.org>
-
- * complex.c, rational.c: do not use RUBY_VERSION_CODE.
-
-Fri Dec 12 21:41:36 2008 TAKAO Kouji <kouji@takao7.net>
-
- * ext/readline/readline.c: r20662 reverted.
-
-Fri Dec 12 19:29:07 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
-
- * encoding.c (rb_enc_set_default_external): default_internal can be
- nil, but default_external cannot.
-
- * encoding.c (rb_set_default_internal): adds rdoc.
-
- * encoding.c (enc_find): ditto.
-
-Fri Dec 12 19:24:47 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
-
- * common.mk (run, runruby, parse, gdb, gdb-ruby): you can also run
- other scripts than $(srcdir)/test.rb.
-
-Fri Dec 12 19:13:43 2008 TAKAO Kouji <kouji@takao7.net>
-
- * ext/readline/readline.c (readline_readline): changed the message
- of IOError to 'closed stdin' from 'stdin closed' if stdin was
- closed.
-
-Fri Dec 12 19:00:49 2008 TAKAO Kouji <kouji@takao7.net>
-
- * ext/readline/readline.c: used the ExportStringValue macro
- instead of the OutputStringValue macro. removed the
- OutputStringValue macro.
-
-Fri Dec 12 16:23:18 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * parse.y (yycompile0): ruby_eval_tree_begin is always 0 when
- ruby_eval_tree is 0.
-
-Fri Dec 12 14:09:55 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
-
- * encoding.c (enc_get_default_encoding): removed.
- Generalizing rb_default_{external,internal}_encoding seems to be
- difficult.
- default_external cannot be NULL even before detected. [ruby-dev:37390]
-
- * encoding.c (rb_default_external_encoding): has its own
- implementation again.
-
- * encoding.c (rb_default_internal_encoding): ditto.
-
- * gem_prelude.rb: added notice.
-
- * ruby.c (rubylib_mangled_path, rubylib_mangled_path2): uses locale
- encoding but not ASCII-8BIT.
-
- * ruby.c (process_options): refers less to default_external.
-
-Fri Dec 12 11:00:52 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * load.c (rb_feature_p): load path must be expanded.
- [ruby-dev:37388]
-
-Fri Dec 12 10:28:08 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * configure.in (rb_version): greps only the line that defines version.
-
- * version.h (RUBY_VERSION_CODE, RUBY_RELEASE_CODE): removed.
-
-Fri Dec 12 10:20:55 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * complex.c, rational.c: do not use RUBY_VERSION_CODE.
-
-Fri Dec 12 10:19:21 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * string.c (rb_string_value_ptr, rb_to_id): do not use a side
- effect expression in RSTRING_PTR.
-
- * string.c (rb_str_split_m): simplified the argument of
- RSTRING_LEN.
-
-Thu Dec 11 23:48:00 2008 Tadayoshi Funaba <tadf@dotrb.org>
-
- * lib/cmath.rb (sqrt): should pass nan to the original method.
-
-Thu Dec 11 21:04:04 2008 Kouhei Sutou <kou@cozmixng.org>
-
- * lib/rss/maker.rb, lib/rss/maker/0.9.rb, lib/rss/maker/base.rb:
- RSS::Maker.[] returns a maker class corresponds to passed version.
-
- * test/rss/test_maker_*.rb: add tests for RSS::Maker.[].
-
-Thu Dec 11 20:05:17 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * encoding.c (rb_enc_aliases_enc_i): skips default internal.
-
-Thu Dec 11 19:31:45 2008 Tanaka Akira <akr@fsij.org>
-
- * lib/test/unit/assertions.rb: extracted from lib/test/unit.rb.
- lib/test/unit/testcase.rb: ditto.
- at asakusa.rb. [ruby-core:20014]
-
-Thu Dec 11 19:23:09 2008 Tanaka Akira <akr@fsij.org>
-
- * test/ruby/test_io.rb (test_dup_many): extracted from test_dup.
- test in ruby subprocess. at asakusa.rb. [ruby-dev:35648]
-
-Thu Dec 11 19:16:30 2008 Tanaka Akira <akr@fsij.org>
-
- * lib/pathname.rb (Pathname#=~): undefed. at asakusa.rb.
- [ruby-core:19690]
-
-Thu Dec 11 13:09:01 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * re.c (reg_enc_error): raise EncodingCompatibilityError for
- encoding incompatibility. [ruby-core:18600]
-
- * re.c (rb_reg_prepare_enc): more consistent error message.
- [ruby-core:18611]
-
-Thu Dec 11 13:36:18 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * encoding.c (enc_set_default_encoding): allowed to set default
- encoding.
-
- * encoding.c (rb_locale_encoding): removed Encoding::LOCALE.
-
- * encoding.c (rb_enc_set_default_external): ditto.
-
- * encoding.c (rb_enc_set_default_internal): ditto.
-
- * encoding.c (rb_enc_set_default_internal): defines internal
- encoding as nil.
-
-Thu Dec 11 11:11:03 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * include/ruby/st.h (size_t): needs stddef.h or stdlib.h.
- [ruby-core:20339]
-
-Thu Dec 11 10:25:25 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * test/ruby/test_bignum.rb (TestBignum#test_convert): remove
- platform dependent call of Process.wait. coverage should be
- accomplished by other method. [ruby-dev:36062]
-
-Thu Dec 11 10:18:35 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/rexml/document.rb (REXML::Document#write): require
- rexml/formatters/transitive if transitive flag is on. a patch
- from akira yamada in [ruby-dev:36230]. fix #553
-
- * lib/rexml/element.rb (REXML::Element#write): ditto.
-
- * lib/rexml/formatters/transitive.rb (REXML::Formatters::Transitive#write_element):
- add hack for IE. [ruby-dev:36230]
-
-Thu Dec 11 02:37:22 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * math.c (domain_check): should not raise EDOM exception for NaN
- value if operand is also NaN. affects acos, asin, acosh, atanh,
- log, log2, log10, sqrt, gamma, lgamma. [ruby-dev:37357]
-
-Thu Dec 11 02:23:51 2008 Tanaka Akira <akr@fsij.org>
-
- * lib/open3.rb (Open3.pipeline_start): return an array of threads if a
- block is not given.
-
-Thu Dec 11 01:48:00 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * ext/bigdecimal/bigdecimal.c (BigDecimal_round): should be round
- to integer. [ruby-dev:37355]
-
- * ext/bigdecimal/bigdecimal.c (BigDecimal_divmod): division should
- be integer. [incompatible] [ruby-dev:37355]
-
-Thu Dec 11 01:21:58 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * thread.c (rb_mutex_unlock): shut up warning. a patch from
- Kazuhiro NISHIYAMA in [ruby-dev:37345]. fix #846
-
-Wed Dec 10 23:58:56 2008 Tadayoshi Funaba <tadf@dotrb.org>
-
- * complex.c: avoided warnings on cpp. [ruby-dev:37344]
-
- * rational.c: ditto.
-
-Wed Dec 10 21:32:02 2008 Kouhei Sutou <kou@cozmixng.org>
-
- * lib/rss/maker.rb (RSS::Maker.[]): add.
- Suggested by Akinori MUSHA. Thanks!!! [ruby-dev:37210]
-
-Wed Dec 10 12:56:32 2008 Akinori MUSHA <knu@iDaemons.org>
-
- * enumerator.c (enumerator_rewind): If the enclosed object
- responds to a "rewind" method, call it; cf. [ruby-dev:37268]
-
-Wed Dec 10 12:46:52 2008 Akinori MUSHA <knu@iDaemons.org>
-
- * enumerator.c (enumerator_next): Fix a typo: s/rewinded/rewound/.
-
- * lib/prime.rb (Prime::OldCompatibility#each): Ditto.
-
-Wed Dec 10 11:25:53 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * re.c (rb_reg_initialize): raise RegexpError when encoding
- is dummy encoding. [ruby-dev:37091]
-
-Wed Dec 10 01:28:16 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * common.mk (win32.obj): depend on headers.
-
-Tue Dec 9 18:35:35 2008 Martin Duerst <duerst@it.aoyama.ac.jp>
-
- * enc/trans/single_byte.trans, cp850-tbl.rb, cp852-tbl.rb,
- cp855-tbl.rb, koi8-r-tbl.rb, koi8-u-tbl.rb, tis-620-tbl.rb:
- new single-byte transcodings (from Yoshihiro Kambayashi)
-
- * test/ruby/test_transcode.rb: added tests for the above
- (from Yoshihiro Kambayashi), small cosmetic fixes
-
-Tue Dec 9 13:33:53 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * compile.c (iseq_compile_each), gc.c (assign_heap_slot),
- (gc_mark_children), parse.y (vtable_alloc, vtable_free, vtable_add),
- proc.c (proc_to_s), thread.c (terminate_i, rb_thread_terminate_all),
- (thread_start_func_2, blocking_region_begin, blocking_region_end),
- (rb_thread_kill), thread_pthread.c (native_thread_create),
- (ubf_pthread_cond_signal), vm.c (check_env, thread_free), vm_dump.c
- (vm_env_dump_raw, vm_stack_dump_each, vm_thread_dump_state),
- (vm_call0): use void pointer for %p.
-
- * cont.c (fiber_status), template/insns.inc.tmpl (ruby_vminsn_type),
- vm_insnhelper.h (BOP): ISO C forbids comma at end of enumerator
- list.
-
- * vm_insnhelper.c (check_cfunc): use function pointer.
-
-Tue Dec 9 13:23:55 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * ext/curses/curses.c (curses_use_default_colors): add new
- method. a patch from Giancarlo F Bellido
- <support at coaxialhost.com> in [ruby-core:20434].
-
- * ext/curses/curses.c (curses_tabsize_set): ditto.
-
- * ext/curses/curses.c (curses_tabsize_get): ditto.
-
-Tue Dec 9 12:08:47 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * .gdbinit (rp): fixed typo for T_STRUCT.
-
-Tue Dec 9 11:50:46 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
-
- * pack.c (pack_pack): fixed [ruby-dev:37295].
- Array#pack always has returned an US-ASCII string when
- the given format ended with 'u', 'M' or 'm'.
-
-Tue Dec 9 03:21:37 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * mkconfig.rb: fix for continued lines. based on a patch from
- Marcus Rueckert <darix AT opensu.se> at [ruby-core:20420].
-
-Tue Dec 9 00:54:01 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * tool/make-snapshot (package): enc.mk in snapshot is dummy and should
- not deal with objects. [ruby-core:20422]
-
-Tue Dec 9 00:17:50 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * enc/depend (clean-srcs): split out from clean.
-
-Mon Dec 8 23:34:18 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
-
- * pack.c (pack_pack): fixed odd act of 'm*', 'M*', and 'P*'.
- just ignores '*' in these cases.
- [ruby-dev:37289]
-
-Mon Dec 8 18:31:41 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * pack.c (pack_pack): fixed length for odd length string.
- [ruby-dev:37283]
-
-Mon Dec 8 11:28:14 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ruby.c (proc_options): added version, copyright, usage, yydebug,
- syntax to --dump option.
-
-Mon Dec 8 11:15:45 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ruby.c (proc_options): source-encoding option.
-
-Mon Dec 8 10:32:33 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ruby.c (set_option_encoding_once): dry.
-
- * ruby.c (proc_options): checks extra argument for -E/--encoding.
-
-Sun Dec 7 23:47:37 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * configure.in (LIBPATHFLAG): use numbered specifier if RPATHFLAG
- is set. [ruby-talk:322136]
-
-Sun Dec 7 23:17:33 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * Makefile.in (LIBRUBY_SO): localizes non-public symbols.
-
- * configure.in (OBJDUMP, OBJCOPY): for dealing with binary files.
-
-Sun Dec 7 17:44:06 2008 Tanaka Akira <akr@fsij.org>
-
- * lib/open3.rb (Open3.capture3): renamed from Open3.poutput3.
- (Open3.capture2): renamed from Open3.poutput2.
- (Open3.capture2e): renamed from Open3.poutput2e.
-
-Sun Dec 7 11:48:04 2008 Tanaka Akira <akr@fsij.org>
-
- * lib/open3.rb (Open3.poutput3): :binmode option implemented.
- (Open3.poutput2): ditto.
- (Open3.poutput2e): ditto.
-
-Sat Dec 6 18:33:16 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * tool/make-snapshot (package): added RM and CP. [ruby-dev:37288]
-
-Sat Dec 6 17:51:35 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
-
- * pack.c (pack_pack): 'u0' is not special differently from 'm0'.
-
-Sat Dec 6 14:35:06 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * pack.c (pack_pack): set US-ASCII and CODERANGE_7BIT
- when quoted-printable ('M') and base64 ('m').
- [ruby-dev:37284]
-
- * pack.c (pack_unpack): ditto.
-
-Fri Dec 5 22:56:24 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * eval.c (rb_make_exception): single argument to raise may be
- string compatible object.
-
-Fri Dec 5 21:45:45 2008 Tadayoshi Funaba <tadf@dotrb.org>
-
- * rational.c (nurat_{to_s,inspect}): performance improvement.
-
-Fri Dec 5 21:42:44 2008 Tadayoshi Funaba <tadf@dotrb.org>
-
- * complex.c: inspect should not depend on to_s.
-
-Fri Dec 5 21:18:31 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * ext/bigdecimal/bigdecimal.c (BigDecimal_truncate): return
- integer if no optional argument given. [incompatible]
-
- * ext/bigdecimal/bigdecimal.c (BigDecimal_floor): ditto.
-
- * ext/bigdecimal/bigdecimal.c (BigDecimal_ceil): ditto.
-
-Fri Dec 5 19:06:04 2008 Tanaka Akira <akr@fsij.org>
-
- * lib/open3.rb (Open3.pipeline_start): new method.
- (Open3.pipeline): ditto.
-
-Fri Dec 5 18:55:25 2008 Tanaka Akira <akr@fsij.org>
-
- * process.c (run_exec_dup2): !save is false if Qnil.
-
-Fri Dec 5 18:07:32 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * win32/win32.c (rb_w32_read, rb_w32_write, rb_w32_isatty): check
- whether fd is valid.
-
-Fri Dec 5 13:05:45 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * iseq.c (rb_iseq_parameters): proc arguments are always optional.
-
- * proc.c (get_proc_iseq, rb_proc_parameters): ditto.
-
-Fri Dec 5 12:38:48 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * compile.c (iseq_set_sequence): uses rb_compile_warning() for
- warning at compilation time.
-
-Fri Dec 5 12:35:46 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * compile.c (ruby_iseq_compile, ruby_iseq_translate_threaded_code),
- (ruby_insns_name_array, ruby_iseq_build_from_ary): prefixed with
- ruby_.
-
- * iseq.c (ruby_iseq_load, ruby_insn_make_insn_table): ditto.
-
-Fri Dec 5 10:01:43 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * string.c (rb_str_cmp_m): fixed rdoc. pointed out by <Thomas
- C. Mitchell AT gmail.com> at [ruby-talk:321967]
-
-Fri Dec 5 07:58:30 2008 Tanaka Akira <akr@fsij.org>
-
- * io.c (io_binwrite): arg.offset should be updated after retry.
-
-Fri Dec 5 03:29:17 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * load.c (rb_get_load_path): returns the load path without
- touching.
-
- * load.c (rb_feature_provided): new function to return the loading
- path in addition to rb_provided().
-
- * load.c (search_required): sets path if loading.
-
- * variable.c (autoload_provided): load paths are expanded to check
- if loading.
-
- * variable.c (autoload_node): keeps autoload mark while loading.
- [ruby-core:20235]
-
- * variable.c (rb_const_get_0): loops while autoload mark is set.
-
-Fri Dec 5 01:37:02 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * win32/win32.c (rb_w32_read): ERROR_BROKEN_PIPE is not a real error
- at this point.
-
- * io.c (pipe_open): use rb_w32_spawn() instead of rb_w32_pipe_exec()
- to use our own redirection scheme.
-
-Fri Dec 5 01:35:08 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * string.c (sym_to_proc): use hidden object.
-
-Fri Dec 5 01:19:21 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * pack.c (pack_pack): propagate taint status from format string to
- result string.
-
-Fri Dec 5 00:34:10 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * process.c (run_exec_dup2): need to sort by reverted order when
- restoring fds.
-
-Fri Dec 5 00:17:18 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * string.c (sym_to_proc): caches Symbol procs, based on a patch from
- Shumpei Akai <admin AT flexfrank.net>. [ruby-dev:37265]
-
-Thu Dec 4 23:29:34 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * win32/win32.c (waitpid): fix bug of checking child slot.
-
- * win32/win32.c (FindChildSlotByHandle): new.
-
-Thu Dec 4 23:24:05 2008 Tanaka Akira <akr@fsij.org>
-
- * lib/open3.rb (Open3.poutput3): new method.
- (Open3.poutput2): ditto.
- (Open3.poutput2e): ditto.
-
-Thu Dec 4 23:02:13 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
-
- * spec/default.mspec: follows changes in rubyspec project.
- inherits configurations from ruby.1.9.mspec.
-
-Thu Dec 4 22:13:55 2008 Tadayoshi Funaba <tadf@dotrb.org>
-
- * test/ruby/test_complex.rb: added some tests.
-
- * test/ruby/test_rational.rb: ditto.
-
-Thu Dec 4 19:56:20 2008 Tanaka Akira <akr@fsij.org>
-
- * lib/open3.rb (Open3.popen3): simplified.
- (Open3.popen_run): extracted from Open3.popen3.
- (Open3.popen2): new method.
- (Open3.popen2e): new method.
- (Open3.pipeline_rw): new method.
- (Open3.pipeline_r): new method.
- (Open3.pipeline_w): new method.
- (Open3.pipeline_run): new private method.
-
-Thu Dec 4 19:16:28 2008 Tanaka Akira <akr@fsij.org>
-
- * process.c (check_exec_fds): resolve cascaded child fd reference.
-
-Thu Dec 4 16:58:12 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/rubygems/validator.rb (Gem#remove_leading_dot_dir): make
- this method private. a patch from okkez in [ruby-dev:37245]
-
-Thu Dec 4 16:19:18 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * ext/openssl/ossl_ssl.c (ossl_ssl_read_nonblock):
- OpenSSL::SSL::SSLSocket should implement read_nonblock. a patch
- from Aaron Patterson in [ruby-core:20277]. fix: #814 [ruby-core:20241]
-
-Thu Dec 4 16:16:09 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/gserver.rb: fixed type in sample code. a report from Oleg
- Puchinin.
-
-Thu Dec 4 14:54:32 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/rubygems/local_remote_options.rb (Gem#add_update_sources_option):
- little documentation fix. a patch from okkez. [ruby-dev:37271]
-
-Thu Dec 4 13:56:31 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * ext/curses/curses.c (window_getch): avoid ISPRINT() macro which
- has an issue with OpenSolaris. [ruby-core:20189]
-
- * ext/curses/curses.c (curses_getch): no ISPRINT(). [ruby-core:20294]
-
- * signal.c (ruby_signal): EINVAL from sigaction(2) is not a bug.
-
-Thu Dec 4 11:40:56 2008 Akinori MUSHA <knu@iDaemons.org>
-
- * enumerator.c (inspect_enumerator): Implement #inspect.
- [ruby-dev:37248]-[ruby-dev:37263]
-
-Thu Dec 4 11:38:40 2008 Akinori MUSHA <knu@iDaemons.org>
-
- * vm_method.c (rb_obj_respond_to): Remove a duplicated rdoc
- comment and fix a markup error.
-
-Thu Dec 4 06:04:16 2008 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/lib/tk/menu.rb: TkOptionMenubutton.new fails to treat
- 'parent' and 'variable' options on a Hash argument.
-
-Thu Dec 4 05:06:47 2008 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/lib/tk.rb: bug fix. use ::RubyVM instead of ::VM
- [ruby-list:45676]
-
- * ext/tk/tcltklib.c: update RELEASE_DATE
-
-Thu Dec 4 01:37:47 2008 Tadayoshi Funaba <tadf@dotrb.org>
-
- * complex.c (nurat_{to_s,inspect}): provides better representation
- for in-finite imag part.
-
-Thu Dec 4 01:22:41 2008 Tadayoshi Funaba <tadf@dotrb.org>
-
- * complex.c (f_signbit): NaN may be signed value.
-
-Wed Dec 3 23:59:32 2008 Tanaka Akira <akr@fsij.org>
-
- * process.c (EXEC_OPTION_DUP2_CHILD): defined.
- (check_exec_redirect_fd): check :in, :out and :err.
- (check_exec_redirect): check [:child, fd].
- (check_exec_fds): validate EXEC_OPTION_DUP2_CHILD array.
- (run_exec_dup2_child): new function.
- (rb_run_exec_options): call run_exec_dup2_child.
-
-Wed Dec 3 22:54:39 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * parse.y (expr): keyword_not can continue across newline.
- [ruby-core:20252]
-
-Wed Dec 3 22:40:59 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * iseq.c (simple_default_value): returns simplest assignment only.
- [ruby-core:20237]
-
-Wed Dec 3 21:30:06 2008 Tanaka Akira <akr@fsij.org>
-
- * process.c (check_exec_redirect): accept :in, :out, :err as redirect
- target.
-
-Wed Dec 3 21:18:27 2008 Tadayoshi Funaba <tadf@dotrb.org>
-
- * test/ruby/test_rational.rb: revert.
-
-Wed Dec 3 14:48:52 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/tk/tcltklib.c (ip_ruby_cmd, ip_invoke_with_position): must
- not access internal union directly. [ruby-list:45670]
-
-Wed Dec 3 12:24:08 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * io.c (rb_io_getc, rb_io_readchar): documentation correction from
- Emiel van de Laar. [ruby-core:20212]
-
- * ext/stringio/stringio.c (strio_readchar): ditto.
-
-Wed Dec 3 09:26:29 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/rexml/xpath.rb (REXML::XPath.first): apply documentation
- patch from Ken Bloom in [ruby-core:20213].
-
- * lib/rexml/xpath.rb (REXML::XPath.each): ditto.
-
-Wed Dec 3 02:56:34 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * test/ruby/test_rational.rb: add a test.
-
-Wed Dec 3 02:53:24 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * test/ruby/test_range.rb: add a test.
-
-Wed Dec 3 02:26:07 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * test/ruby/test_string.rb: add some tests.
-
-Wed Dec 3 02:04:21 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * ext/pty/pty.c (Init_pty): fix typo.
-
-Tue Dec 2 19:22:13 2008 Tanaka Akira <akr@fsij.org>
-
- * lib/open3.rb (Open3.popen3): merge hash options if given.
-
-Tue Dec 2 15:31:42 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/net/protocol.rb (Net::BufferedIO#rbuf_fill): use
- read_nonblock instead of sysread wrapped by timeout to boost
- performance. a patch from Aaron Patterson in [ruby-core:20191].
- fix #806
-
-Mon Dec 1 23:23:52 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
-
- * set 1.9.1-p5000 into version number. [ruby-dev:36998]
-
-Mon Dec 1 15:48:47 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * signal.c (register_sigaltstack): no need to define on non-sigaltstack
- platform.
-
-Mon Dec 1 12:00:45 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * cont.c (rb_fiber_start): calls with exact argument number.
- [ruby-core:20088]
-
-Sun Nov 30 21:41:10 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
-
- * man/rake.1: new manual page
-
-Sun Nov 30 18:01:50 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
-
- * test/ruby/test_regexp.rb (TestRegexp#test_parse_curly_brace):
- now accepts quantifier on anchors again by r20391.
-
-Sat Nov 29 23:56:44 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
-
- * man/irb.1 (EXAMPLES): new section
-
-Sat Nov 29 19:19:32 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * regparse.c (is_invalid_quantifier_target): Perl and old Ruby
- accepts quantifier on anchors. [ruby-core:20161]
-
-Sat Nov 29 18:28:57 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * ext/socket/socket.c (sock_getaddrinfo): should have updated for
- Mac OS X. a patch from Shumpei Akai in [ruby-dev:37234]
-
-Sat Nov 29 00:18:30 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * cont.c (fiber_alloc): separate allocation and initialization.
- allow subclass to override #initialize. [ruby-core:20086]
-
-Fri Nov 28 18:31:21 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * ext/socket/socket.c (sock_s_getaddrinfo): refactored to remove
- code duplication regarding getaddrinfo.
-
-Fri Nov 28 17:52:26 2008 Keiju Ishitsuka <keiju@ruby-lang.org>
-
- * lib/forwardable.rb: should be usable def_single_delegator for
- Class and Module.
-
-Fri Nov 28 13:19:34 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * iseq.c (simple_default_value): extracts simplest default
- argument value.
-
- * iseq.c (rb_iseq_parameters): returns parameter list.
-
- * proc.c (get_proc_iseq, get_method_iseq): handles ifunc and
- bmethod.
-
- * proc.c (rb_proc_parameters, rb_method_parameters): added
- Proc#parameters and Method#parameters. [ruby-core:19759]
-
-Fri Nov 28 02:18:47 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * ext/bigdecimal/bigdecimal.c (BigDecimal_DoDivmod): bigdecimal
- division (including modulo) should raise ZeroDivisionError as
- integer division. [incompatible]
-
-Fri Nov 28 00:12:00 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * numeric.c (flodivmod): floating point division should raise
- ZeroDivisionError as integer division. [incompatible]
-
-Thu Nov 27 23:54:37 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * gc.c (gc_mark): still needs to check stack depth during GC.
-
- * gc.c (stack_check): ditto.
-
-Thu Nov 27 21:41:29 2008 Tadayoshi Funaba <tadf@dotrb.org>
-
- * strftime.c (rb_strftime): should add padding for %%.
-
-Thu Nov 27 16:32:53 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * signal.c (register_sigaltstack): stores alt stack for debug
- purpose.
-
-Thu Nov 27 16:12:33 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * signal.c (ruby_sigaction_t): added.
-
-Thu Nov 27 15:59:16 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * gc.c (ruby_stack_check): no check if using sigaltstack.
-
- * signal.c (ALT_STACK_SIZE): default minimum size is insufficient
- for method calls.
-
- * signal.c (sigsegv): handles stack overflow if possible.
-
- * thread.c (ruby_thread_stack_overflow): helper function to raise
- sysstack_error.
-
- * thread_pthread.c (ruby_stack_overflowed_p): checks for stack
- overflow.
-
-Thu Nov 27 10:40:52 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * ext/bigdecimal/bigdecimal.c (BigDecimal_div2): should return
- Integer for #div operation.
-
- * ext/bigdecimal/bigdecimal.c (BigDecimal_div2): should raise
- ZeroDivisionError if divisor is zero. [ruby-dev:37207]
-
-Wed Nov 26 23:15:47 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * strftime.c (STRFTIME): use rb_strftime() recursively, instead of
- platform's strftime().
-
-Wed Nov 26 22:46:23 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * ext/bigdecimal/bigdecimal.c (VpException): bigdecimal zero
- division should raise FloatDomainError if mode
- VP_EXCEPTION_ZERODIVIDE is set. [ruby-dev:37204]
-
- * ext/bigdecimal/bigdecimal.c (BigDecimal_mode): should handle
- VP_EXCEPTION_ZERODIVIDE.
-
-Wed Nov 26 15:16:07 2008 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
-
- * ext/gdbm/gdbm.c (rb_gdbm_nextkey): fix memory leak.
-
-Wed Nov 26 03:17:48 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * ext/bigdecimal/bigdecimal.c (BigDecimal_to_r): raise exception
- for nan/inf conversion. [ruby-dev:37187] fix #793
-
- * ext/bigdecimal/bigdecimal.c (BigDecimal_to_i): ditto.
-
-Wed Nov 26 03:00:59 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * ext/bigdecimal/bigdecimal.c (VpAlloc): avoid ALLOCA_N() to avoid
- segmentation fault caused by (insanely) long decimal values.
- [ruby-dev:37189] fix #794
-
- * ext/bigdecimal/bigdecimal.c (BigDecimal_dump, BigDecimal_to_i,
- BigDecimal_to_f, BigDecimal_to_s, BigDecimal_split,
- BigDecimal_inspect): ditto.
-
- * ext/bigdecimal/bigdecimal.c (VpToString): small performance
- improvement.
-
-Wed Nov 26 00:26:30 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * strftime.c (STRFTIME): should add padding for %[xXrR] etc.
- [ruby-dev:37185] fix: #792
-
-Tue Nov 25 16:26:12 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * array.c (rb_ary_times): taint (and untrust) status should be
- inherited by "ary * 0". [ruby-dev:37024]
-
-Tue Nov 25 15:54:07 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * strftime.c (rb_strftime): should not swallow incomplete
- formatter, e.g. "%E". [ruby-dev:37170] fix: #787
-
- * strftime.c (rb_strftime): clear flags before processing unknown
- formatter, e.g. "%i". [ruby-dev:37180]
-
-Tue Nov 25 10:35:29 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * strftime.c (rb_strftime): "%^P" should convert to upper case.
- [ruby-dev:37180]
-
-Tue Nov 25 07:51:18 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * strftime.c (FMT): use "%0d" formatter for zero padding, not "%.d".
- [ruby-dev:37168] fix: #768
-
- * strftime.c (rb_strftime): %s to use zero padding by default.
- [ruby-dev:37180]
-
-Tue Nov 25 03:37:42 2008 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/lib/tkextlib/blt/tabset.rb,
- ext/tk/lib/tkextlib/blt/tabnotebook.rb:
- fix many bugs. Now, those work properly.
-
-Tue Nov 25 03:26:04 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * numeric.c (num_step): treat infinite step specially.
- [ruby-dev:37157] fix: #781.
-
-Tue Nov 25 01:23:25 2008 Tadayoshi Funaba <tadf@dotrb.org>
-
- * lib/date/format.rb (strftime): ignores '_' flag for %[LN].
-
-Tue Nov 25 00:08:22 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * process.c (rb_fork): stops the timer thread during fork.
- [ruby-dev:37117]
-
- * thread.c (rb_thread_start_timer_thread): timer thread needs
- system_working to be set.
-
-Mon Nov 24 23:27:28 2008 Shugo Maeda <shugo@ruby-lang.org>
-
- * strftime.c (rb_strftime): The # flag should work with %a, %A, %b,
- %B, and %h. [ruby-dev:37162]
-
- * test/ruby/test_time.rb (test_strftime): ditto.
-
-Mon Nov 24 23:16:32 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * signal.c (register_sigaltstack): should not add external
- variable (with some cosmetic changes). [ruby-dev:37158]
-
-Mon Nov 24 22:57:25 2008 Shugo Maeda <shugo@ruby-lang.org>
-
- * strftime.c (rb_strftime): A width specifier for %t and %n should
- work. [ruby-dev:37160]
-
- * test/ruby/test_time.rb (test_strftime): ditto.
-
-Mon Nov 24 22:07:07 2008 Shugo Maeda <shugo@ruby-lang.org>
-
- * strftime.c (rb_strftime): The precision of %0N should be 9.
- [ruby-dev:37156]
-
- * test/ruby/test_time.rb (test_strftime): ditto.
-
-Mon Nov 24 21:38:23 2008 Shugo Maeda <shugo@ruby-lang.org>
-
- * strftime.c (rb_strftime): The default precision should be 1, not
- 0. [ruby-dev:37155]
-
- * test/ruby/test_time.rb (test_strftime): ditto.
-
-Mon Nov 24 19:53:47 2008 Tadayoshi Funaba <tadf@dotrb.org>
-
- * lib/date.rb (inspect): changed again.
-
-Mon Nov 24 18:35:00 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/time.rb: r20251 reverted. The patched behavior do not round
- trip. [ruby-core:19988]
-
-Sun Nov 23 16:04:05 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
-
- * signal.c (default_handler, Init_signal): compile error if
- USE_SIGALTSTACK is not defined.
-
-Sun Nov 23 00:04:14 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
-
- * signal.c (ALT_STACK_SIZE): 4KB is not enough on Mac OS X.
- Uses SIGSTKSZ.
-
-Sat Nov 22 21:29:54 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
-
- * test/ruby/test_method.rb (test_default_accessibility): test case for
- [ruby-dev:37124].
-
-Sat Nov 22 18:24:24 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * file.c (rb_file_world_writable_p): should return nil for non
- world-writable files.
-
-Sat Nov 22 10:31:25 2008 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/lib/tkextlib/blt.rb, ext/tk/lib/tkextlib/blt/vector.rb:
- fix NameError bug.
-
-Sat Nov 22 03:41:22 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * ext/pty/pty.c (get_device_once): abandon asynchronous exception
- that might cause serious problem if a program terminated early.
- asynchronous exception is a very bad thing anyway. use
- Process.waitpid(pid) or PTY.check(pid) to poll program
- termination. if PTY.check is called with optional second
- argument being true, it raises an exception same as one from
- previous behavior. [incompatible] fix: [ruby-core:19583]
-
-Fri Nov 21 22:24:31 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * ext/curses/curses.c (curses_escdelay_set): support ESCDELAY. a
- patch from Giancarlo F Bellido <support at coaxialhost.com> in
- [ruby-core:19961].
-
-Fri Nov 21 22:17:15 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * ruby.c (usage): -W description updated. [ruby-core:19858]
-
-Fri Nov 21 21:50:54 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * signal.c (register_sigaltstack): use alternative stack for
- SIGSEGV to avoid uncaught stack overflow. based on a patch from
- Hiro Yoshioka <hyoshiok at miraclelinux.com> in [ruby-dev:37134].
- [ruby-dev:36993]
-
-Fri Nov 21 16:06:54 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * vm.c (thread_free): th->vm may be NULL when pthread_create
- failed for ENOMEM. [ruby-dev:37095]
-
-Thu Nov 20 07:33:15 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/logger.rb (Logger): should handle the case that cvs/svn do
- not expand $Id keyword. [ruby-core:19991]
-
-Thu Nov 20 07:27:36 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/minitest/unit.rb (MiniTest::Assertions#capture_io): adjust
- indentation to shut up warning. [ruby-core:19993]
-
-Wed Nov 19 17:48:05 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * ext/syck/rubyext.c (rb_syck_mktime): return DateTime for a value
- out of range of Time. [ruby-core:19919]
-
-Wed Nov 19 14:14:38 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * node.h (NOEX_MODFUNC): should be include NOEX_PRIVATE.
- [ruby-dev:37124]
-
-Wed Nov 19 03:01:04 2008 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
-
- * test/rinda/test_rinda.rb: fixed fails occasionally [ruby-dev:37119].
- thanks, shinichiro.h.
-
-Wed Nov 19 02:39:31 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * error.c (Init_syserr): moved function definition itself from
- template/known_errors.inc.tmpl.
-
-Wed Nov 19 01:10:52 2008 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
-
- * lib/drb/drb.rb (DRbConn::alive?): fixed NoMethodError problem
- from NaHi [ruby-dev:37110].
-
-Wed Nov 19 01:05:26 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * cont.c (cont_mark, cont_capture, cont_restore_1): speed up
- continuation by copying only valid YARV stack. [ruby-dev:37106]
-
-Wed Nov 19 00:03:13 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/time.rb: according to RFC2822, -0000 means local time, +0000
- means UTC. a patch from Chun Wang. [ruby-core:19578]
-
-Tue Nov 18 23:02:23 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * proc.c (proc_eq): equivalence check should not done by pointer
- comparison, but should be based on iseq contents. [ruby-dev:37101]
-
-Tue Nov 18 20:30:08 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/net/ftp.rb (Net::FTP#open_socket): SOCKSsocket is obsolete.
- a patch from Alan Johnson <alan.wayne.johnson at gmail.com> in
- [ruby-core:19982].
-
-Tue Nov 18 16:18:23 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/logger.rb (ProgName): fixed for svn, based on a patch from
- Nobuhiro IMAI at [ruby-dev:37108].
-
-Tue Nov 18 15:56:55 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/webrick/httprequest.rb (WEBrick::HTTPRequest#read_request_line):
- use possessive match for path retrieval to avoid huge recursion
- for insanely long path.
-
-Tue Nov 18 15:50:11 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * re.c (rb_reg_desc): re might be NULL.
-
- * regerror.c (onig_error_code_to_format): message updated.
-
-Tue Nov 18 09:42:11 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/optparse.rb (OptionParser::make_switch): makes default
- conversion to splat. [ruby-list:45645]
-
-Mon Nov 17 18:05:16 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * enc/depend (LIBS): fixed for disable-shared. [ruby-dev:37103]
-
-Mon Nov 17 11:12:24 2008 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
-
- * bin/erb: remove -K option.
-
-Mon Nov 17 02:19:03 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * configure.in (LIBRUBYARG_STATIC): fixed for --enable-rpath.
-
-Sat Nov 15 22:46:32 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * re.c (rb_reg_regsub): returns -1 unless ascii as well as
- rb_enc_ascget(). [ruby-dev:37097]
-
-Sat Nov 15 22:23:45 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * configure.in (LDSHARED): do not suppress debug info if higher debug
- level is given, on cygwin and mingw.
-
-Fri Nov 14 20:27:46 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * README.EXT, README.EXT.ja, vm_exec.c, vm_insnhelper.c: update
- filenames.
-
-Thu Nov 13 11:31:13 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * thread.c (rb_barrier_wait): gets rid of recursive deadlock.
-
-Thu Nov 13 06:08:44 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * thread.c (rb_barrier_{new,wait,release,destroy}): use Mutex so that
- circular requires fail with deadlock. [ruby-core:19821]
-
-Wed Nov 12 07:16:01 2008 David Flanagan <david@think32>
-
- * ruby.c (set_internal_encoding_once): fix typo in error string
-
-Wed Nov 12 03:30:59 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * include/ruby/intern.h (rb_{external,locale}_str_new_cstr): optimized
- versions for literal strings.
-
-Wed Nov 12 03:28:41 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * load.c (rb_require_safe): destroys barrier after successfully
- loaded, to get rid of loading same library again. [ruby-core:19798]
-
- * thread.c (rb_barrier_wait): can not wait destroyed barrier.
-
- * thread.c (rb_barrier_destroy): destroys barrier so that no longer
- waited.
-
-Tue Nov 11 23:02:27 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
-
- * man/ruby.1 (RUBYOPT): wrote which option can appear.
- (--yydebug): wrote "do not use".
- (--dump): wrote "do not use".
-
-Tue Nov 11 21:22:28 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/uri/generic.rb (URI::Generic#check_path): REL_PATH should a
- symbol. [ruby-core:19805]
-
-Tue Nov 11 20:49:29 2008 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
-
- * configure.in: fix SEGV on Mac OS X 10.5.3 with pthread.
- a patch from Wataru Kimura in Bug #193 [ruby-core:17333].
-
-Tue Nov 11 20:39:27 2008 Tadayoshi Funaba <tadf@dotrb.org>
-
- * lib/date.rb (inspect): reverted the previous change.
-
-Tue Nov 11 17:35:25 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * win32/win32.c (rb_w32_accept): secure fd before accept because if
- error causes in securing, cannot restore the state of accepted
- socket.
- fixed [ruby-core:19728]
-
-Tue Nov 11 14:40:40 2008 Martin Duerst <duerst@it.aoyama.ac.jp>
-
- * test/ruby/test_transcode.rb: unnecessary setup method
- (setup_really_needed?) removed
-
-Tue Nov 11 14:25:25 2008 Martin Duerst <duerst@it.aoyama.ac.jp>
-
- * enc/trans/single_byte.trans, macgreek-tbl.rb, macroman-tbl.rb,
- macromania-tbl.rb, macturkish-tbl.rb, macukraine-tbl.rb,
- ibm437-tbl.rb, ibm852-tbl.rb, ibm855-tbl.rb, ibm857-tbl.rb,
- ibm860-tbl.rb, ibm861-tbl.rb, ibm862-tbl.rb, ibm863-tbl.rb,
- ibm865-tbl.rb, ibm866-tbl.rb, ibm869-tbl.rb, ibm775-tbl.rb:
- new single-byte transcodings (from Yoshihiro Kambayashi)
-
- * test/ruby/test_transcode.rb: added tests for the above
- (from Yoshihiro Kambayashi)
-
-Tue Nov 11 13:20:23 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * ext/bigdecimal/bigdecimal.c (BigDecimal_to_r): moved from
- bigdecimal/util, converted into C. [ruby-dev:36805]
-
-Tue Nov 11 07:55:57 2008 Tadayoshi Funaba <tadf@dotrb.org>
-
- * lib/date.rb (inspect): changed the format.
-
-Mon Nov 10 17:34:50 2008 Akinori MUSHA <knu@iDaemons.org>
-
- * test/sdbm/test_sdbm.rb (TestSDBM#test_index): Reflect the method
- name change from #index to #key and remove a duplicated test
- method.
-
-Mon Nov 10 10:50:43 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/delegate.rb (Delegator.delegating_block): should not refer
- DelegateClass specific @delegate_dc_obj. a patch from Erik
- Hollensbe in [ruby-core:19671].
-
-Mon Nov 10 09:54:21 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * win32/win32.c (ifs_open_socket): should retry without proto_buffer
- if cannot find the suitable protocol. a patch from Heesob Park.
- fixed [ruby-core:19713]
-
-Sun Nov 9 13:04:52 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * struct.c (rb_struct_initialize_m): avoid unnecessary array
- allocation.
-
-Sun Nov 9 04:10:19 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * vm_dump.c (control_frame_dump): suppresses finished method name.
-
-Sun Nov 9 00:30:52 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * thread_pthread.c (thread_timer): checks working flags again.
-
-Sun Nov 9 00:02:01 2008 Takeyuki FUJIOKA <xibbar@ruby-lang.org>
-
- * lib/cgi/session/pstore.rb: fix indentation.
-
-Sat Nov 8 23:47:45 2008 Takeyuki FUJIOKA <xibbar@ruby-lang.org>
-
- * lib/cgi/session.rb (FileStore): use marshalized data.
-
- * test/cgi/session_dir: add a session directory in test.
-
- * test/cgi/test_cgi_session.rb: add a test.
-
-Sat Nov 8 21:57:03 2008 Takeyuki FUJIOKA <xibbar@ruby-lang.org>
-
- * lib/cgi/session.rb: remove debug code.
-
-Sat Nov 8 21:33:53 2008 Takeyuki FUJIOKA <xibbar@ruby-lang.org>
-
- * lib/cgi/session.rb: fix indentation.
-
-Sat Nov 8 18:11:14 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/webrick/httpproxy.rb (WEBrick::HTTPProxyServer#do_CONNECT):
- use #bytesize instead of #size. a patch submitted from
- raspberry lemon in [ruby-core:18571].
-
- * lib/webrick/httpauth/digestauth.rb, lib/webrick/httpproxy.rb,
- lib/webrick/httprequest.rb, lib/webrick/httpservlet/cgi_runner.rb,
- lib/webrick/httpservlet/abstract.rb, lib/webrick/httpresponse.rb,
- lib/webrick/httpservlet/cgihandler.rb, lib/webrick/utils.rb: ditto.
-
-Sat Nov 8 17:31:41 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * ext/stringio/stringio.c (strio_ungetc): ungetc position should
- not be changed from 1.8. [ruby-core:19632]
-
-Sat Nov 8 17:15:08 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/optparse.rb (OptionParser#make_switch): 1.9 Symbols respond
- to :match. a patch from keith cascio, <keith at ucla.edu>.
- [ruby-core:19730]
-
-Sat Nov 8 12:10:15 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * ext/gdbm/gdbm.c (fgdbm_index): make #index warn like Hash.
- [ruby-dev:37039]
-
- * ext/sdbm/init.c (Init_sdbm): typo fixed. [ruby-dev:37039]
-
-Sat Nov 8 07:07:48 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * configure.in: detect stdio buffer pointers for uClibc. a patch
- from Brian Candler <B.Candler at pobox.com> in [ruby-core:12020].
- [ruby-core:19713]
-
-Sat Nov 8 06:51:42 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * ext/dbm/dbm.c (fdbm_index): make #index warn like Hash.
-
- * ext/dbm/dbm.c (fdbm_key): new method.
-
- * ext/sdbm/init.c: ditto.
-
-Sat Nov 8 06:20:42 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * ext/curses/curses.c: curses encoding should obey locale.
-
- * ext/curses/curses.c (curses_getch): 1.9 getch should return one
- character string for single byte string. wchar_t support may
- follow in the future.
-
-Sat Nov 8 05:46:50 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * include/ruby/io.h (rb_io_t): added write_lock to serialize.
- [ruby-core:19668]
-
- * gc.c (gc_mark_children): mark write_lock.
-
- * gc.c (rb_gc_call_finalizer_at_exit): Mutex also needs to be
- deferred.
-
- * io.c (io_fflush, io_binwrite, fptr_finalize): serializes writing.
-
-Sat Nov 8 05:31:25 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * safe.c (safe_setter): add warning for $SAFE=3.
-
-Sat Nov 8 01:48:07 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * thread_pthread.c (rb_thread_create_timer_thread): do not wait never
- coming signal if failed to create timer thread.
-
- * thread_pthread.c (native_cond_timedwait): returns error code.
-
- * thread_pthread.c (thread_timer): typo fixed.
-
-Sat Nov 8 01:14:16 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * thread_pthread.c (thread_timer, rb_thread_create_timer_thread):
- handshakes properly.
-
-Fri Nov 7 22:51:49 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * inits.c (rb_call_inits): do not repeat.
-
-Fri Nov 7 22:46:57 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * thread_pthread.c (thread_timer): initializes mutex each time.
-
-Fri Nov 7 21:23:02 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * thread_win32.c (thread_start_func_1): use already gotten stack info.
-
-Fri Nov 7 12:26:00 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/irb.rb (IRB::Irb#eval_input): remove extra @context.prompt_i.
- [ruby-core:19718]
-
-Fri Nov 7 11:55:30 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * nkf.c: update to r1.188. fixes for 16bit environment.
-
-Fri Nov 7 07:43:27 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * thread.c (thread_timer): pthread_cond_timedwait returns ETIMEDOUT
- when timed out.
-
-Fri Nov 7 07:32:55 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/yaml/rubytypes.rb: support Rational and Complex as 1.8
- does. a patch from Hiroshi Moriyama in [ruby-dev:36899].
-
-Fri Nov 7 07:12:06 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * thread_pthread.c (thread_timer): uses pthread_cond_timedwait always
- instead of pthread_kill.
-
-Fri Nov 7 06:58:59 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * string.c (Init_String): remove Symbol#===. [ruby-dev:37026]
-
-Fri Nov 7 04:02:22 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * thread.c (thread_timer): uses timedwait on cygwin.
-
-Fri Nov 7 02:00:12 2008 Shugo Maeda <shugo@ruby-lang.org>
-
- * lib/rexml/entity.rb (unnormalized): do not call
- document.record_entity_expansion if document is nil.
- see <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=502535>.
- Thanks, Naohisa Goto.
-
- * test/rexml/test_document.rb: ditto.
-
-Fri Nov 7 01:24:20 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * tool/make-snapshot: binary encoding spec is no longer needed in 1.9.
-
-Thu Nov 6 22:21:23 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * thread.c (rb_thread_stop_timer_thread): terminates timer thread
- immediately.
-
-Thu Nov 6 21:21:46 2008 Masaki Suketa <masaki.suketa@nifty.ne.jp>
-
- * ext/win32ole/win32ole.c (fole_s_connect, fole_initialize,
- folevariant_initialize): check argument type of WIN32OLE.connect,
- WIN32OLE.new, WIN32OLE_VARIANT.new.
-
- * test/win32ole/test_win32ole.rb (test_s_new_exc, test_s_connect_exc):
- ditto.
-
- * test/win32ole/test_win32ole_variant.rb (test_s_new_exc): ditto.
-
- * test/win32ole/test_win32ole_method.rb: add assertion of
- WIN32OLE_METHOD.new.
-
-Tue Nov 4 13:08:01 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * lib/test/unit.rb (Test::Unit.setup_argv): now can specify ``-xname''
- instead of ``-x name''.
-
-Tue Nov 4 08:00:00 2008 TAKANO Mitsuhiro (takano32) <tak@no32.tk>
-
- * test/zlib/test_zlib.rb(test_readchar): compare in same type.
-
-Tue Nov 4 03:28:31 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * array.c (rb_ary_join): do not repeat self in a recursive array.
- [ruby-dev:37019]
-
-Tue Nov 4 01:56:46 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * include/ruby/intern.h (rb_mutex_synchronize): fixed prototype.
-
- * thread.c (rb_mutex_synchronize): fixed function name.
-
-Mon Nov 3 16:32:54 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * missing.h: needs RUBY_EXTERN instead of extern for mswin.
-
-Mon Nov 3 13:01:13 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
-
- * array.c (rb_ary_take_first_or_last): renamed rb_ary_partial more
- appropriately.
- (ary_take_pos_flags): new enum. makes the fourth argument of
- rb_ary_take_first_or_last more descriptive.
- (rb_ary_partial): renamed rb_ary_partial0 more appropriately.
- takes a new parameter klass for what class to instantiate.
-
-Mon Nov 3 13:00:26 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
-
- * range.c (rb_range_beg_len): rb_raise takes C values as arguments.
- [BUG] ranges turned into other value in a message of RangeError.
-
-Mon Nov 3 00:36:44 2008 Masaki Suketa <masaki.suketa@nifty.ne.jp>
-
- * test/win32ole/test_win32ole_event.rb: rename test class.
-
- * test/win32ole/test_win32ole_variant_outarg.rb: add in order
- to use ADO instead of Internet Explorer.
- remove test/win32ole/test_win32ole_variant_with_ie.rb.
-
- * test/win32ole/orig_data.csv: ditto.
-
-Sun Nov 2 23:08:08 2008 Masaki Suketa <masaki.suketa@nifty.ne.jp>
-
- * test/win32ole/test_err_in_callback.rb: add teardown.
-
-Sun Nov 2 22:12:41 2008 Masaki Suketa <masaki.suketa@nifty.ne.jp>
-
- * ext/win32ole/win32ole.c (ole_event_free): invoke IConnectionPoint::Unadvise
- before invoking IConnectionPoint::Release.
-
- * test/win32ole/test_win32ole_event.rb, test/win32ole/err_in_callback.rb,
- test/win32ole/test_err_in_callback.rb: Use ActiveX Data Object
- Library instead of InternetExplorer.
-
-Sun Nov 2 22:06:55 2008 Masaki Suketa <masaki.suketa@nifty.ne.jp>
-
- * win32/Makefile.sub: add RUNRUBYOPT. [ruby-dev:37009]
-
-Sun Nov 2 16:41:52 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/zlib/zlib.c (Init_zlib): defines readbyte instead redefining
- readchar.
-
-Sat Nov 1 07:09:40 2008 Eric Hodel <drbrain@segment7.net>
-
- * gem_prelude.rb: Don't require rubygems/defaults.rb.
-
-Fri Oct 31 21:58:50 2008 Kouhei Sutou <kou@cozmixng.org>
-
- * lib/rss/converter.rb (RSS::Converter): use String#encode.
-
-Fri Oct 31 21:28:14 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * lib/webrick/httpauth/digestauth.rb
- (WEBrick::HTTPAuth::DigestAuth#initialize): fix typo.
-
-Fri Oct 31 18:51:42 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
-
- * test/ruby/test_array.rb (test_array_subclass): test for r20076.
-
-Fri Oct 31 18:42:19 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
-
- * array.c (ary_partial0): recovers the mistakenly changed feature at r19723.
- Array#[m,n] had returned an Array even for an instance of a
- subclass.
-
-Fri Oct 31 18:05:05 2008 Martin Duerst <duerst@it.aoyama.ac.jp>
-
- * enc/trans/single_byte.trans, maccroatioan-tbl.rb,
- maccyrillic-tbl.rb, maciceland-tbl.rb: new single-byte
- transcodings (from Yoshihiro Kambayashi)
-
- * test/ruby/test_transcode.rb: added tests for the above
- (from Yoshihiro Kambayashi)
-
-Fri Oct 31 12:51:25 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * dir.c (dir_globs): need taint check. reported by steve
- <oksteev at gmail.com>
-
-Fri Oct 31 12:42:45 2008 wanabe <s.wanabe@gmail.com>
-
- * array.c (rb_ary_decrement_share): fix to work recycling
- shared-array without the following. [ruby-dev:36991]
-
- * array.c (ary_make_substitution): don't recycle substitution array.
-
-Fri Oct 31 12:27:52 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
-
- * spec/default.mspec: supports that the build directory != srcdir.
-
-Fri Oct 31 11:35:38 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * encoding.c (rb_enc_set_default_internal): no alias "internal" if
- default internal is not set. [ruby-dev:37000]
-
-Fri Oct 31 08:16:14 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ruby.c (process_options): delays setting safe level.
- [ruby-dev:36997]
-
-Thu Oct 30 21:32:15 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * array.c (rb_ary_permutation): hide temporal array.
-
-Thu Oct 30 14:45:45 2008 Martin Duerst <duerst@it.aoyama.ac.jp>
-
- * enc/trans/single_byte.trans: refactoring to make it easier
- to add more transcodings (with Yoshihiro Kambayashi)
-
- * enc/trans/iso-8859-1-tbl.rb: new file to avoid having to
- treat ISO-8859-1 as special
-
-Thu Oct 30 14:10:46 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * pack.c (pack_pack): templates a, A, Z should propagate encoding
- of original strings. templates b, B, h, H brings ASCII-8BIT to
- the result.
-
-Thu Oct 30 10:34:20 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ruby.c (moreswitches): splits option string and passes arguments.
-
- * ruby.c (proc_options): checks if allowed in RUBYOPT.
-
- * ruby.c (process_options): allows long style options in RUBYOPT.
-
- * ruby.c (load_file_internal): ditto in shebang. [ruby-dev:36979]
-
-Thu Oct 30 09:31:45 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * encoding.c (rb_locale_encoding): makes an alias for locale.
- [ruby-dev:36976]
-
- * encoding.c (rb_enc_set_default_external): ditto for external.
-
- * encoding.c (rb_enc_set_default_internal): ditto for internal.
-
-Thu Oct 30 03:30:25 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * ruby.c (load_file_internal): should not set script encoding to
- ASCII-8BIT.
-
- * ruby.c (load_file_internal): do not auto convert scripts even
- when default_internal is set. [ruby-core:19579]
-
-Thu Oct 30 02:20:33 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * array.c (rb_ary_sort_bang): remove SEGV when replacing array with
- embedded one during sort. [ruby-dev:36983]
-
- * test/ruby/test_array.rb (test_sort!): add tests for above.
-
-Thu Oct 30 01:44:23 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * test/ruby/test_array.rb: add some tests.
-
-Thu Oct 30 01:32:15 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * array.c (rb_ary_splice): remove redundant check.
-
-Thu Oct 30 01:24:55 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * string.c (rb_str_cmp): fix condition which always returned true
- because ENCODING_GET returns unsigned long.
-
-Thu Oct 30 01:10:32 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * test/ruby/test_array.rb (test_permutation): add a test that replaces
- array during permutation.
-
-Wed Oct 29 23:31:34 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * string.c (rb_str_check_dummy_enc): new function to check dummy
- encoding.
-
- * string.c (rb_str_upcase_bang): case conversion functions should
- not be applicable to strings in dummy encoding. [ruby-dev:36985]
-
-Wed Oct 29 23:57:29 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * array.c (rb_ary_sort_bang): replacing array during sort broke
- invariant of array. [ruby-dev:36983]
-
-Wed Oct 29 21:06:46 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * io.c (rb_io_rewind): should reset fptr->readconv if it's
- available.
-
- * io.c (more_char): clear readconv at EOF.
-
- * test/ruby/test_file.rb: should not read after EOF. use rewind
- instead.
-
-Wed Oct 29 20:45:08 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * test/webrick/utils.rb (start_server): provide a reference to log of
- webrick.
-
- * test/webrick/test_httpproxy.rb, test/webrick/test_httpauth.rb,
- test/webrick/test_cgi.rb, test/webrick/test_httpserver.rb,
- test/webrick/test_server.rb, test/webrick/test_filehandler.rb: use
- webrick log as an assertion message.
-
-Wed Oct 29 16:41:17 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * pack.c (pack_pack): set encoding from packing string and UTF-8 for
- "U". [ruby-core:19590]
-
-Wed Oct 29 15:50:00 2008 TAKANO Mitsuhiro (takano32) <tak@no32.tk>
-
- * complex.c (imp1, imp2): should declare type.
- [BUG] at IA-64
-
-Wed Oct 29 14:36:50 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * common.mk (revision.h): have to be updated daily or by non-trivial
- commits.
-
-Wed Oct 29 13:18:02 2008 Akinori MUSHA <knu@iDaemons.org>
-
- * README, README.ja: Update the portability section.
-
-Wed Oct 29 13:02:17 2008 Akinori MUSHA <knu@iDaemons.org>
-
- * configure.in (rb_cv_lib_xpg4_needed): Drop legacy FreeBSD
- support regarding libxpg4. Those old versions of FreeBSD
- shipped with the library don't have a working pthread library
- anyway.
-
-Wed Oct 29 11:50:57 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * configure.in (dln-a-out): cannot make shared library nor work with
- ELF. [ruby-core:19571]
-
-Wed Oct 29 11:00:25 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * win32/win32.c (rb_w32_open): shouldn't seek here.
-
- * win32/win32.c (rb_w32_write): write to the end of the file when
- FAPPEND is specified.
-
-Wed Oct 29 09:30:04 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ruby.c (load_file_internal): cache common interned IDs.
-
-Wed Oct 29 00:43:39 2008 Tadayoshi Funaba <tadf@dotrb.org>
-
- * complex.c: uses macro in declarations.
-
-Wed Oct 29 00:26:00 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * win32/win32.c (rb_w32_open): need to seek to the end of the file when
- O_APPEND is specified.
-
-Wed Oct 29 00:08:05 2008 Tadayoshi Funaba <tadf@dotrb.org>
-
- * math.c (rb_math_{atan2,cos,cosh,hypot,log,sin,sinh,sqrt}): added.
-
- * complex.c: follows the above change.
-
-Tue Oct 28 23:29:06 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * ext/nkf/nkf-utf8/nkf.c (kanji_convert): output unicode chars.
- [ruby-dev:36957]
-
- * ext/nkf/nkf-utf8/nkf.c (numchar_getc): increase buffer size.
- reported and patched at [ruby-dev:36957] by mame.
-
-Tue Oct 28 23:03:46 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
-
- * test/ruby/test_proc.rb: filled all patterns for testing
- vm_yield_setup_args.
-
-Tue Oct 28 23:05:35 2008 Tadayoshi Funaba <tadf@dotrb.org>
-
- * complex.c: continues to support canonicalization *unofficially*
- for an odd library mathn for the time being (only 1.9.x).
- since grand mathn must be very very special library for us.
-
- * rational.c: ditto.
-
- * ext/mathn/*/*: follow the above changes.
-
-Tue Oct 28 21:31:55 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * parse.y (parser_yylex): check EOF explicitly.
-
-Tue Oct 28 20:59:12 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * io.c (extract_binmode): new function to extract binmode/textmode
- options from hash.
-
- * io.c (rb_io_extract_modeenc): use above function.
-
- * io.c (rb_io_s_pipe): recognize binmode/textmode options.
-
-Tue Oct 28 20:15:49 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * io.c (make_readconv): now can specify the size of cbuf.
-
- * io.c (read_all, appendline, io_getc, rb_io_ungetc): follow above
- change.
-
-Tue Oct 28 19:00:51 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * win32/win32.c (rb_w32_pipe_exec): internal fds should be always
- binmode.
-
-Tue Oct 28 17:21:18 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
-
- * tool/make-snapshot.rb: merged from ruby_1_9_1.
-
-Tue Oct 28 16:56:31 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
-
- * gem_prelude.rb: merged from ruby_1_9_1 branch.
- considers --program-suffix and prefix configure options.
-
- * lib/rubygems/defaults.rb: ditto.
-
- * test/rubygems/test_gem.rb (@default_dir_re): ditto.
-
-Tue Oct 28 16:13:36 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * tool/make-snapshot: use String#bytesize.
-
-Tue Oct 28 09:51:48 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * bootstraptest/test_thread.rb: ignore some exceptions.
- [ruby-dev:36951]
-
-Tue Oct 28 09:19:40 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * win32/Makefile.sub (RUNRUBY): now ruby requires something from
- gem_prelude, so need to set library path.
-
-Mon Oct 27 22:29:11 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
-
- * vm_insnhelper.c (vm_yield_setup_args): supports optional parameters.
- Fixed [ruby-core:19503].
-
- * vm_insnhelper.c (vm_yield_setup_block_args): a new function. extracted
- from vm_yield_setup_args.
-
- * vm_insnhelper.c (vm_yield_setup_block_args_complex): ditto.
-
- * test/ruby/test_proc.rb: added tests for arguments on a Proc from
- Kernel#proc called.
-
-Mon Oct 27 20:03:05 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * ext/mathn/complex/complex.c: no need to define rb_cComplex because
- it's already defined at $(srcdir)/complex.c.
-
- * ext/mathn/rational/rational.c: no need to define rb_cRational because
- it's already defined at $(srcdir)/rational.c.
-
-Mon Oct 27 15:58:25 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ruby.c (load_file): preserves $.. [ruby-dev:36937]
-
- * io.c (argf_init): initial value of $. should be 0.
- see [ruby-dev:36937].
-
-Mon Oct 27 15:38:38 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
-
- * test/minitest/test_mini_test.rb
- (test_assert_raises_triggered_different): the test failed when a
- file path in the backtrace contains something except [\w\/\.],
- e.g. hyphen, Japanese characters or backslash.
-
- * test/minitest/test_mini_test.rb
- (test_assert_raises_triggered_subclass): ditto.
-
-Mon Oct 27 15:32:08 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
-
- * test/minitest/test_mini_test.rb: fixed that r19958 made
- test-all fail when the ruby was built at $(srcdir).
-
-Mon Oct 27 12:04:58 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
-
- * test/ruby/envutil.rb: reverted the changeset 19948 because it
- concealed unexpected behaviours of ruby.
-
- * test/ruby/test_io.rb: ditto.
-
-Mon Oct 27 12:02:53 2008 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
-
- * ext/nkf/nkf.c (rb_nkf_convert): should specify type of variable.
-
-Mon Oct 27 11:34:56 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
-
- * test/minitest/test_mini_test.rb (test_filter_backtrace):
- fixed failure on Ruby built at out of $(srcdir).
-
- * test/minitest/test_mini_test.rb (test_Filter_backtrace_unit_starts):
- ditto.
-
-Mon Oct 27 10:02:47 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * io.c (read_all): the 3rd argument maybe Qnil.
-
-Mon Oct 27 01:29:55 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * test/nkf/test_nkf.rb: add a test for [ruby-dev:36909].
-
-Mon Oct 27 01:05:48 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * ext/nkf/nkf.c (rb_nkf_convert): avoid GC.
- reported in [ruby-dev:36909] and patched [ruby-dev:36941] by mame.
-
-Sun Oct 26 21:28:42 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * test/json/test_json.rb: remove dependency on permutation gem.
-
-Sun Oct 26 19:18:36 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * thread.c (blocking_region_{begin,end}): declared as inline.
-
- * util.c (freedtoa): used only when MULTIPLE_THREADS is not defined.
-
- * win32/win32.c (rb_w32_pipe): serial is DWORD.
-
- * ext/etc/etc.c (sGroup): getgrent may not be available.
-
-Sun Oct 26 18:11:40 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/io/wait/{extconf.rb,wait.c}: needs sys/ioctl.h for fcntl on
- cygwin.
-
-Sun Oct 26 18:18:39 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * gem_prelude.rb: disables debug and verbose flags to suppress failure
- messages. interpolation does not occur inside single quotes.
-
-Sun Oct 26 18:42:21 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * test/ruby/envutil.rb (assert_in_out_err): disables builtin rubygems
- to get rid of the interference.
-
- * test/ruby/test_io.rb (ruby): ditto.
-
-Sun Oct 26 13:30:28 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * io.c (read_all): use the given buffer to read when needs readconv.
- based on the patch by wanabe <s.wanabe AT gmail.com> at
- [ruby-dev:36931].
-
-Sun Oct 26 07:57:35 2008 Eric Hodel <drbrain@segment7.net>
-
- * lib/rubygems*: Update to RubyGems 1.3.1 r1909.
-
-Sun Oct 26 07:35:56 2008 Ryan Davis <ryand-ruby@zenspider.com>
-
- * lib/minitest/unit.rb: Imported minitest 1.3.0 r4429.
- * test/minitest/*: ditto.
-
-Sun Oct 26 02:16:29 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
-
- * configure.in ($MANTYPE): followed ruby.1, which had moved.
-
- * instruby.rb (:man): ditto.
-
- * mdoc2man.rb: fixed for the case Xr with 2 arguments.
-
-Sun Oct 26 01:42:45 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
-
- * man/irb.1: new manual page.
-
-Sun Oct 26 00:11:48 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
-
- * man/ruby.1: moved into man/. added some descriptions.
-
- * man/goruby.1: new file.
-
- * instruby.rb (:man): followed ruby.1.
-
-Sat Oct 25 20:05:22 2008 Narihiro Nakamura <authorNari@gmail.com>
-
- * gc.c (gc_profile_result): bug fix. The millisecond is 1/1000.
-
-Sat Oct 25 11:12:40 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
-
- * ruby.c (usage): updated the description of -E option.
-
-Sat Oct 25 09:54:10 2008 James Edward Gray II <jeg2@ruby-lang.org>
-
- * lib/csv.rb: Fixed a bug in read_to_char() that would slurp
- whole files if the encoding was invalid. It will now read
- up to 10 bytes ahead to find a valid character boundary or
- give up. [ruby-core:19465]
-
- * test/csv/test_features.rb, test/csv/test_table.rb, test/csv/test_row.rb:
- Loosened some tests to check for a compatible? Encoding instead
- of an exact Encoding. [ruby-core:19470]
-
-Sat Oct 25 07:42:49 2008 Eric Hodel <drbrain@segment7.net>
-
- * lib/rdoc*: Update to RDoc 2.2.2 r192.
-
-Sat Oct 25 04:00:31 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * enc/us_ascii.c (us_ascii_mbc_enc_len): made static. a patch by
- Tadashi Saito <shiba AT mail2.accsnet.ne.jp> at [ruby-dev:36916]
-
- * signal.c (signal_buff): made static. a patch by Tadashi Saito
- <shiba AT mail2.accsnet.ne.jp> at [ruby-dev:36915]
-
- * util.c (freedtoa): made static to get rid of name clash. a patch by
- Tadashi Saito <shiba AT mail2.accsnet.ne.jp> at [ruby-dev:36913]
-
- * util.c (ruby_dtoa): added prefix, ditto.
-
-Sat Oct 25 03:43:25 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * parse.y (lambda): need to adjust lpar_beg for both of the parser and
- ripper.
-
-Sat Oct 25 01:29:34 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * ext/mathn/rational/rational.c: undef duplicated macro definition
- first to shut up the warning.
-
- * ext/mathn/rational/rational.c (rb_rational_new_mathn): specify
- omitted return value.
-
-Sat Oct 25 00:14:41 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * array.c (rb_ary_sample): fixed sizes and randomness.
-
-Fri Oct 24 23:04:42 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
-
- * configure.in (sitedir): considers --program-prefix and
- --program-suffix.
- (vendordir): ditto.
- (rubyhdrdir): ditto.
-
- * mkconfig.rb (CONFIG["rubylibdir"]): ditto.
-
- * win32/Makefile.sub: ditto.
-
- * instruby.rb (:rdoc): ditto.
-
- * lib/rdoc/ri/paths.rb (RDoc::RI::Paths): ditto.
-
-Fri Oct 24 22:59:27 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * test/ruby/test_array.rb (test_sample): add tests for size of
- returned array and randomness.
-
-Fri Oct 24 21:50:21 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * id.h, template/id.h.tmpl (enum ruby_method_ids): reordered.
-
-Fri Oct 24 21:19:45 2008 Keiju Ishitsuka <keiju@ruby-lang.org>
-
- * ext/mathn/rational.c: change several global functions.
-
-Fri Oct 24 21:05:38 2008 Takeyuki FUJIOKA <xibbar@ruby-lang.org>
-
- * lib/cgi/html.rb: allow symbolized key.
-
- * test/cgi/test_cgi_tag_helper.rb: add a test.
-
-Fri Oct 24 20:54:53 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * common.mk (exts): renamed to get rid of the existent directory.
-
-Fri Oct 24 20:45:41 2008 Keiju Ishitsuka <keiju@ruby-lang.org>
-
- * ext/mathn/rational.c: change several global functions to static
- function.
-
-Fri Oct 24 19:57:19 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * string.c (rb_str_dump): should have removed commented out
- unnecessary code. [ruby-cvs:27131]
-
-Fri Oct 24 19:16:36 2008 URABE Shyouhei <shyouhei@ruby-lang.org>
-
- * id.h (enum ruby_method_ids): ISO C forbids comma at end of
- enumerator list.
-
-Fri Oct 24 18:29:00 2008 Keiju Ishitsuka <keiju@ruby-lang.org>
-
- * lib/mathn.rb: moved into ext/mathn/rational/rational.c and
- ext/mathn/complex/complex.c.
- * ext/mathn: new mathn ext-libraries.
-
-Fri Oct 24 18:21:31 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * test/ruby/test_array.rb (TestArray#test_join): should restore
- global variable after the test. [ruby-dev:36896]
-
- * test/ruby/test_hash.rb (TestHash#test_to_s): ditto.
-
-Fri Oct 24 17:43:26 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * parse.y (lambda): need to adjust lpar_beg for ripper as well.
- [ruby-dev:36702]
-
-Fri Oct 24 16:13:12 2008 Takeyuki FUJIOKA <xibbar@ruby-lang.org>
-
- * lib/cgi/core.rb (read_multipart): change field value as String
- from StringIO or Tempfile when multipart parse except file field.
- add files method that can get uploaded files. [ruby-dev:36547]
-
- * test/cgi/test_cgi_multipart.rb: fix the test for core.rb.
-
-Fri Oct 24 14:22:48 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * common.mk (ext): split out the target for extension library.
-
- * common.mk (encs): depends on enc and trans.
-
-Fri Oct 24 10:23:24 2008 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
+ * tool/merger.rb (#default_merge_branch): Add support for
+ Subversion 1.7 which adopted a whole new working directory
+ structure.
- * test/ruby/test_signal.rb (TestSignal#test_exit_action): Thread
- may terminate before sysread. [ruby-dev:36835]
+Sun Feb 12 09:38:46 2012 Yukihiro Matsumoto <matz@ruby-lang.org>
-Thu Oct 23 22:06:23 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+ * vm_method.c (rb_add_method): should not call method_added hook
+ for undef operation. [Bug #5015]
- * distruby.rb: removed. "make dist" uses tool/make-snapshot for the 1.9
- series. distruby.rb has been no longer used.
+Sun Feb 12 09:29:28 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Thu Oct 23 17:30:29 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * regint.h (PLATFORM_UNALIGNED_WORD_ACCESS): Power PC does not
+ allow unaligned word access.
- * class.c (rb_class_instance_methods): rdoc fixed. [ruby-core:19458]
+ * st.c (UNALIGNED_WORD_ACCESS): x86_64 allows unaligned word
+ access as well as i386.
-Thu Oct 23 16:19:33 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+Sat Feb 11 08:06:12 2012 Tanaka Akira <akr@fsij.org>
- * lib/irb/init.rb (IRB.load_modules): catch LoadError explicitly.
- a patch from Daniel Berger <Daniel.Berger at qwest.com> in
- [ruby-core:19451]. fix [ruby-core:19450]
+ * test/openssl/test_ssl.rb (test_multibyte_read_write): start server
+ for each length to avoid race condition.
-Thu Oct 23 16:16:17 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Sat Feb 11 06:13:07 2012 NARUSE, Yui <naruse@ruby-lang.org>
- * ext/socket/socket.c (sock_s_getservbyport): check if the port range.
- [ruby-core:19460]
+ * dir.c (fnmatch): The * needs to be escaped to avoid formatting in
+ fnmatch comment.
+ patched by @dalton. https://github.com/ruby/ruby/pull/91
-Thu Oct 23 14:08:07 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Sat Feb 11 03:38:48 2012 Hiroshi Shirosaki <h.shirosaki@gmail.com>
- * ext/socket/socket.c (sock_s_getservbyname): unuse unnecessary
- object.
+ * io.c (rb_sys_fail_path): move the definition.
+ Move above for using it in set_binary_mode_with_seek_cur().
- * ext/socket/socket.c (sock_s_getservbyport): the port should be
- converted before the proto so that the #to_int of the former cannot
- alter the latter.
+ * io.c (set_binary_mode_with_seek_cur): fix improper seek cursor.
+ Seeking file cursor with setting binary mode has possibility to
+ cause infinite loop. Fixed the bug and refined error handling.
+ Introduced at r34043.
-Thu Oct 23 10:55:08 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+ And cleanups as below.
+ Remove unnecessary parentheses of `fptr`.
+ Use return value of setmode().
- * string.c (rb_str_dump): use \u{ff} escape for UTF-8 encoding
- string.
+ * test/ruby/test_io_m17n.rb
+ (TestIO_M17N#test_seek_with_setting_binmode): add a test for abobe.
+ [ruby-core:41671] [Bug #5714]
-Thu Oct 23 09:26:22 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+Sat Feb 11 03:38:48 2012 NAKAMURA Usaku <usa@ruby-lang.org>
- * ext/socket/socket.c (sock_s_getservbyport): cast to get rid of
- warning.
+ * test/ruby/test_io_m17n.rb
+ (TestIO_M17N#test_{read_with_binmode_and_get[cs]}): only for Windows.
-Thu Oct 23 08:06:03 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+Sat Feb 11 03:38:48 2012 NAKAMURA Usaku <usa@ruby-lang.org>
- * ext/socket/socket.c (sock_s_getservbyport): port should be
- network byte order. a patch from Dave Thomas in [ruby-core:19454].
+ * win32/win32.c, include/ruby/win32.h (rb_w32_fd_is_text): new function.
-Thu Oct 23 01:26:25 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * win32/win32.c (init_stdhandle): set default mode of stdin as binmode.
- * string.c (rb_str_conv_enc_opts): new function to convert with
- specifying ecflags and ecopts.
+ * io.c (set_binary_mode_with_seek_cur): new function to replace
+ SET_BINARY_MODE_WITH_SEEK_CUR macro. now returns previous mode of the
+ fd and take care of LF in rbuf.
- * ext/zlib/zlib.c (gzfile_newstr): specify ecflags and ecopts for
- conversion using above function.
+ * io.c (do_writeconv): set text mode when needed.
- * ext/zlib/zlib.c (gzfile_newstr): use own rb_econv_t for dummy
- encoding to handling stateful encoding (e.g. iso-2022-jp).
- [ruby-dev:36857]
+ * io.c (io_read): need to change the mode of the IO to binmode
+ temporally when the length for IO#read, because IO#read with length
+ must behave so.
- * ext/zlib/zlib.c (gzfile_getc): ditto.
+ * test/ruby/test_io_m17n.rb (TestIO_M17N#test_{read_with_length,
+ read_with_length_binmode,get[cs]_and_read_with_binmode,
+ read_with_binmode_and_get[cs],read_write_with_binmode}): tests for
+ above changes.
-Thu Oct 23 01:24:49 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ all patches are written by Hiroshi Shirosaki. [ruby-core:41496]
+ [Feature #5714]
- * lib/mkmf.rb (create_tmpsrc): get rid of side effects.
+Sat Feb 11 03:37:56 2012 NAKAMURA Usaku <usa@ruby-lang.org>
-Thu Oct 23 00:10:01 2008 Koichi Sasada <ko1@atdot.net>
+ * test/rexml/test_order.rb (OrderTester#test_more_ordering): use
+ GZip::GzReader.open instead of GZip::GzReader.new with File.new.
+ fixed a test error on Windows introduced at r33946.
- * cont.c: separate data structure between rb_fiber_t and
- rb_context_t (rb_fiber_t includes rb_context_t).
- rb_fiber_t has double linked list of fibers in same threads.
+Sat Feb 11 03:37:34 2012 NAKAMURA Usaku <usa@ruby-lang.org>
-Wed Oct 22 17:25:17 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * ext/zlib/zlib.c (rb_gzreader_initialize): revert a part of r33937.
+ 1st, to change the mode of an IO is very sensitive problem, so
+ fixed test errors on Windows introduced at r33953.
+ the maintainer of this library should judge it.
+ 2nd, usually Zlib::GzReader.new is not called directly. #initialize
+ is called via .open, and in the method the I/O is opened in binary
+ mode, so there is no problem without changing the mode in #initialize.
- * io.c (pipe_open): remove unnecessary flush before fork.
- a patch from Kazuhiro NISHIYAMA <zn at mbf.nifty.com>
- in [ruby-dev:36840].
+ fixed test errors on Windows introduced at r33947.
+Sat Feb 11 03:23:58 2012 Luis Lavena <luislavena@gmail.com>
-Wed Oct 22 16:27:57 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * ext/zlib/zlib.c (rb_gzreader_initialize): use binary mode by default
+ under Windows. Patch by Hiroshi Shirosaki. [ruby-core:40706]
+ [Feature #5562]
- * vm_insnhelper.c (vm_yield_setup_args): should not drop arguments
- corresponding to default parameters.
+ * include/ruby/encoding.h (void rb_econv_binmode): define NEWLINE
+ decorator.
-Wed Oct 22 14:59:30 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * io.c (rb_cloexec_fcntl_dupfd): Introduce NEED_READCONV and
+ NEED_WRITECONV to replace universal newline decorator by CRLF only
+ when required to improve file reading and writing under Windows.
+ Patch by Hiroshi Shirosaki. [ruby-core:40706] [Feature #5562]
+ * io.c (do_writeconv): adjust binary mode if required.
+ * io.c (read_all, appendline, swallow, rb_io_getline_1): ditto.
+ * io.c (io_getc, rb_io_each_codepoint, rb_io_ungetc): ditto.
+ * io.c (rb_io_binmode, rb_io_ascii8bit_binmode): ditto.
+ * io.c (rb_io_extract_modeenc, rb_sysopen): ditto.
+ * io.c (pipe_open, prep_stdio, io_encoding_set): ditto.
+ * io.c (rb_io_s_pipe, copy_stream_body): ditto.
- * parse.y (f_larglist): should not allow semicolon separated local
- variable declarations if formal argument list is not surrounded
- by parentheses, mostly because semicolon outside of parentheses
- appears to terminate the expression.
+ * test/ruby/test_io_m17n.rb (EOT): add test for pipe and stdin in
+ binary mode.
-Wed Oct 22 14:52:17 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * win32/win32.c (init_stdhandle): remove O_BINARY from stdhandle
+ initialization.
+ * win32/win32.c (rb_w32_write): use FTEXT mode accordingly.
- * string.c (rb_external_str_new_with_enc): no implicit strlen call.
- [ruby-dev:36854]
+Sat Feb 11 03:20:22 2012 NAKAMURA Usaku <usa@ruby-lang.org>
- * string.c (rb_external_str_new_cstr): new function to create
- string from external NUL terminated C string.
+ * io.c (argf_next_argv): wrong timing of setting ecflags.
+ fixed the failure of TestArgf#test_textmode introduced at r33662.
- * string.c (rb_locale_str_new_cstr): ditto.
+Sat Feb 11 03:19:45 2012 NAKAMURA Usaku <usa@ruby-lang.org>
- * ext/readline/readline.c: now use rb_locale_str_new_cstr().
+ * test/ruby/test_io_m17n.rb
+ (TestIO_M17N#test_default_stdout_stderr_mode): new test for
+ r33627-33629. see [backport #5565]
+Sat Feb 11 03:20:22 2012 NAKAMURA Usaku <usa@ruby-lang.org>
- * test/sdbm/test_sdbm.rb (TestSDBM#test_delete_with_block):
- deleted key to the block may be a copy of specified key.
+ * include/ruby/encoding.h (ECONV_NEWLINE_DECORATOR_READ_MASK,
+ ECONV_NEWLINE_DECORATOR_WRITE_MASK): new macro.
- * test/dbm/test_dbm.rb (TestDBM#test_delete_with_block): ditto.
+ * io.c (rb_io_extract_modeenc, pipe_open, prep_stdio, argf_next_argv):
+ set TEXTMODE_NEWLINE_DECORATOR_ON_WRITE for textmode on creating IO
+ if the flag is available.
-Wed Oct 22 13:16:47 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * io.c (make_writeconv): drop decorators for reading.
- * re.c (unescape_escaped_nonascii): back out the last change on
- the function. [ruby-dev:36818]
+ * io.c (make_readconv): drop decorators for writing.
-Wed Oct 22 07:09:19 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * io.c (do_writeconv): existing writeconv is not the condition to raise
+ ArgumentError. should check textmode or not.
- * ext/zlib/zlib.c (rb_gzreader_ungetc): should be able to unget
- Fixnum.
+ * test/ruby/test_io_m17n.rb
+ (TestIO_M17N#test_{cr,lf,crlf}_decorator_on_stdout): test above
+ changes.
- * ext/stringio/stringio.c (strio_ungetc): should convert unget
- string.
- * ext/stringio/stringio.c (strio_ungetbyte): new method.
+Sat Feb 11 03:19:45 2012 NAKAMURA Usaku <usa@ruby-lang.org>
-Wed Oct 22 05:46:25 2008 Koichi Sasada <ko1@atdot.net>
+ * test/ruby/test_io_m17n.rb (TestIO_M17N#test_{default_mode_on_dosish,
+ default_mode_on_unix,text_mode,binary_mode}): sorry for wrong test
+ committed in r33144. I'd misunderstood the spec of ruby's universal
+ newline.
- * include/ruby/vm.h: write a comment.
+Sat Feb 11 03:17:41 2012 NAKAMURA Usaku <usa@ruby-lang.org>
- * common.mk: remove vm.h from any rules.
- vm.h is not needed on this version.
+ * test/ruby/test_io_m17n.rb (TestIO_M17N#test_{default_mode_on_dosish,
+ default_mode_on_unix,text_mode,binary_mode}): tests for [Bug #5164].
- * vm_core.h: ditto.
+Sat Feb 11 03:13:27 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Wed Oct 22 05:39:39 2008 Koichi Sasada <ko1@atdot.net>
+ * transcode.c: enabled econv newline option.
- * parse.y (arg_concat_gen): concat target node should be NODE_ARRAY.
- [ruby-core:19413]
+Sat Feb 11 02:39:09 2012 CHIKANAGA Tomoyuki <nagachika00@gmail.com>
- * bootstraptest/test_method.rb: add tests.
+ * variable.c (set_const_visibility): clear inine-cache when constant's
+ visibility is modified. [ruby-dev:44929]
-Wed Oct 22 00:29:13 2008 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
+ * test/ruby/test_module.rb (test_private_constants_clear_inlinecache):
+ add test for it.
- * test/rinda/test_rinda.rb (test_core_03_notify): Fixed test failures
- [ruby-dev:36837].
+Sat Feb 11 02:39:09 2012 Yusuke Endoh <mame@tsg.ne.jp>
-Wed Oct 22 00:22:06 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * variable.c (set_const_visibility): print a warning when no argument
+ is passwd to Module#private_constant. [ruby-list:48558]
- * string.c (rb_external_str_new_with_enc): wrong condition to
- calculate strlen().
+ * vm_method.c (set_method_visibility): ditto for
+ Module#private_class_method.
- * ext/readline/readline.c: add encoding support.
+Sat Feb 11 02:39:09 2012 Yusuke Endoh <mame@tsg.ne.jp>
-Tue Oct 21 23:12:24 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * variable.c (set_const_visibility): Module#private_constant has
+ changed the visibility of only the first argument. Now it changes
+ all of them. [ruby-list:48558]
- * ext/stringio/stringio.c (strio_write): should convert writing
- string to the encoding of the buffer.
+ * test/ruby/test_module.rb: add a test for above.
- * hash.c (rb_any_hash): typo fixed.
+Sat Feb 11 02:39:09 2012 CHIKANAGA Tomoyuki <nagachika00@gmail.com>
- * ext/zlib/zlib.c (rb_gzwriter_write): oops, IO string conversion
- need to be done by to_s.
+ * variable.c (set_const_visibility): clear inine-cache when constant's
+ visibility is modified. [ruby-dev:44929]
-Tue Oct 21 22:38:58 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * test/ruby/test_module.rb (test_private_constants_clear_inlinecache):
+ add test for it.
- * io.c (open_key_args): should adjust argc, argv in struct
- foreach_arg.
+Sat Feb 11 02:39:09 2012 Yusuke Endoh <mame@tsg.ne.jp>
-Tue Oct 21 21:52:00 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * variable.c (set_const_visibility): print a warning when no argument
+ is passwd to Module#private_constant. [ruby-list:48558]
- * ext/zlib/zlib.c (rb_gzwriter_write): conversion should be done
- using to_str, not to_s.
+ * vm_method.c (set_method_visibility): ditto for
+ Module#private_class_method.
- * ext/zlib/zlib.c (rb_gzwriter_write): need proper conversion
- according to gz encoding.
+Sat Feb 11 02:39:09 2012 Yusuke Endoh <mame@tsg.ne.jp>
- * ext/zlib/zlib.c (rb_gzreader_ungetc): convert string encoding
- before unget.
+ * variable.c (set_const_visibility): Module#private_constant has
+ changed the visibility of only the first argument. Now it changes
+ all of them. [ruby-list:48558]
-Tue Oct 21 21:33:36 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * test/ruby/test_module.rb: add a test for above.
- * lib/test/unit.rb (assert_nothing_raised): raise with backtrace.
+Sat Feb 11 02:26:51 2012 Martin Bosslet <Martin.Bosslet@googlemail.com>
-Tue Oct 21 20:12:19 2008 Tanaka Akira <akr@fsij.org>
+ * lib/openssl/buffering.rb: Force multi-byte strings to be treated as
+ binary data.
+ * test/openssl/test_ssl.rb: Add test for it.
- * lib/test/unit.rb (assert_nothing_raised): set backtrace.
+ Thanks to Niklas Baumstark for reporting the issue!
-Tue Oct 21 18:17:42 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+ [Ruby 1.9 - Bug #5233] [ruby-core:39120]
- * ext/zlib/zlib.c: remove obsolete prototype macros.
+Fri Feb 10 17:25:28 2012 Tanaka Akira <akr@fsij.org>
- * ext/zlib/zlib.c (struct gzfile): add encoding field to gzfile
- structure.
+ * lib/set.rb (SortedSet.setup): remove old_init after initialize
+ method is redefined. The remove before redefinition makes the
+ warning prevention fragile. [ruby-dev:44892]
- * ext/zlib/zlib.c (rb_gzreader_getc): now works on characters.
+Fri Feb 10 17:02:12 2012 okkez <okkez000@gmail.com>
- * ext/zlib/zlib.c (rb_gzreader_getbyte): new method to retrieve
- single byte.
+ * thread_pthread.c (rb_thread_create_timer_thread): fix memory
+ leak. [ruby-dev:44904] [Bug #5688]
- * ext/zlib/zlib.c (rb_gzreader_readbyte): ditto.
+Fri Feb 10 05:22:32 2012 NARUSE, Yui <naruse@ruby-lang.org>
- * ext/zlib/zlib.c (rb_gzreader_each_byte): renamed from each_char
+ * cont.c (fiber_setcontext): Use longjmp() instead of swapcontext() on
+ FreeBSD 9. [ruby-dev:41316] [Bug #3295] [Bug #5526]
- * ext/zlib/zlib.c (rb_gzreader_ungetc): allow unget strings.
+Fri Feb 10 05:13:12 2012 Ayumu AIZAWA <ayumu.aizawa@gmail.com>
- * ext/zlib/zlib.c (rb_gzreader_ungetbyte): renamed from ungetc.
+ * object.c: Added examples for Object#is_a? and
+ Object#instance_of? patcheed from Manoj Kumar.
+ [Bug #5880] [ruby-core:42057]
-Tue Oct 21 13:28:42 2008 Shugo Maeda <shugo@ruby-lang.org>
+Fri Feb 10 05:11:43 2012 NARUSE, Yui <naruse@ruby-lang.org>
- * io.c, include/ruby/intern.h (rb_io_ascii8bit_binmode): externed.
+ * io.c (argf_next_argv): reset ARGF.next_p on ARGV.replace.
+ r34409 breaks replacing ARGV.
+ [ruby-dev:45160] [Bug #5952]
- * ext/socket/socket.c (init_sock): use rb_io_ascii8bit_binmode()
- instead of rb_io_binmode().
+Fri Feb 10 05:11:43 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Tue Oct 21 13:17:39 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+ * io.c (argf_close): skip stdin, which should be readable again.
+ [ruby-dev:45160] [Bug #5952]
- * mdoc2man.rb: moved into tools/.
+ * io.c (argf_readlines): reinitialize after all read to be
+ readable again.
- * instruby.rb: followed the change of mdoc2man.
+Fri Feb 9 01:36:19 2012 Martin Bosslet <Martin.Bosslet@googlemail.com>
-Tue Oct 21 11:34:04 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * backport r34482 from trunk
- * ext/iconv/iconv.c (strip_glibc_option, map_charset): check if
- encoding is a string. based on the patch by Hiroshi Moriyama at
- [ruby-dev:36811].
+ * ext/openssl/ossl_ssl.c: Add SSL constants and allow to unset SSL
+ option to prevent BEAST attack. See [Bug #5353].
- * test/iconv/test_basic.rb (test_invalid_arguments): added tests.
+ In OpenSSL, OP_DONT_INSERT_EMPTY_FRAGMENTS is used to prevent
+ TLS-CBC-IV vulunerability described at
+ http://www.openssl.org/~bodo/tls-cbc.txt
+ It's known issue of TLSv1/SSLv3 but it attracts lots of attention
+ these days as BEAST attack. (CVE-2011-3389)
-Tue Oct 21 10:40:37 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ Until now ossl sets OP_ALL at SSLContext allocation and call
+ SSL_CTX_set_options at connection. SSL_CTX_set_options updates the
+ value by using |= so bits set by OP_ALL cannot be unset afterwards.
+ This commit changes to call SSL_CTX_set_options only 1 time for each
+ SSLContext. It sets the specified value if SSLContext#options= are
+ called and sets OP_ALL if not.
- * io.c (rb_file_open_internal): should initialize fmode before using.
+ To help users to unset bits in OP_ALL, this commit also adds several
+ constant to SSL such as
+ OpenSSL::SSL::OP_DONT_INSERT_EMPTY_FRAGMENTS. These constants were
+ not exposed in Ruby because there's no way to unset bits in OP_ALL
+ before.
-Tue Oct 21 08:56:37 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ Following is an example to enable 0/n split for BEAST prevention.
- * regparse.c (parse_char_class): CCV_SB is only for single
- byte. [ruby-dev:36786]
+ ctx.options = OP_ALL & ~OP_DONT_INSERT_EMPTY_FRAGMENTS
-Tue Oct 21 01:49:55 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * test/openssl/test_ssl.rb: Test above option exists.
- * io.c (rb_io_extract_modeenc): plain rb/wb should set ASCII-8BIT
- to the external_encoding.
+Thu Feb 9 17:08:20 2012 CHIKANAGA Tomoyuki <nagachika00@gmail.com>
- * io.c (rb_file_open_internal): ditto.
+ * cont.c (cont_mark): mark original Thread object from saved_thread.
+ [ruby-dev:44567] [Bug #5386]
- * io.c (NEED_WRITECONV): no conversion when the external_encoding
- is ASCII-8BIT.
+Thu Feb 9 17:05:07 2012 NARUSE, Yui <naruse@ruby-lang.org>
- * io.c (do_writeconv): skip ASCII-8BIT.
+ * cont.c (HAVE_GETCONTEXT): see getcontext(3) because DragonFly BSD
+ x64 port doesn't have it.
-Tue Oct 21 00:51:59 2008 Tanaka Akira <akr@fsij.org>
+Thu Feb 9 16:19:04 2012 NAKAMURA Usaku <usa@ruby-lang.org>
- * io.c (rb_io_ascii8bit_binmode): renamed from rb_io_binmode.
- (rb_io_binmode): don't change encoding conversion.
- (rb_io_binmode_m): call rb_io_ascii8bit_binmode.
+ * test/ruby/memory_status.rb (Memory::Win32): 64bit support.
-Mon Oct 20 21:19:00 2008 Takeyuki FUJIOKA <xibbar@ruby-lang.org>
+Thu Feb 9 16:19:04 2012 NAKAMURA Usaku <usa@ruby-lang.org>
- * lib/cgi/core.rb (read_multipart): file's encoding is ascii-8bit
- from file field of multipart form.
+ * ext/dl/lib/value.rb (DL::ValueUtil.{unsigned_value,signed_value}):
+ currenly pack/unpack does not accept "q!" and "Q!".
-Mon Oct 20 20:16:25 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+Thu Feb 9 16:19:04 2012 NAKAMURA Usaku <usa@ruby-lang.org>
- * ext/zlib/zlib.c (Init_zlib): add getbyte as an alias to getc.
- [ruby-dev:36801]
+ * ext/fiddle/conversions.c (value_to_generic): src is not guranteed as
+ a Bignum if the type is LONG_LONG. it may be a Fixnum if the value
+ is small.
-Mon Oct 20 17:31:17 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+Thu Feb 9 16:19:04 2012 NAKAMURA Usaku <usa@ruby-lang.org>
- * error.c (exc_equal): should not compare recursively.
- [ruby-dev:36796]
+ * ext/dl/lib/types.rb: Win64 support.
-Mon Oct 20 16:48:43 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+Thu Feb 9 11:11:15 2012 Hiroshi Shirosaki <h.shirosaki@gmail.com>
- * include/ruby/ruby.h (ExportStringValue): new macro to convert
- string in internal encoding to external to export.
+ * ext/dbm/dbm.c (Init_dbm): fix a build error on mswin32.
+ use `extern __declspec(dllimport)` for dll link with VC.
+ [ruby-core:41996] [Bug #5869]
- * string.c (rb_str_export): new function to do conversion to
- external encoding.
+Thu Feb 9 11:11:15 2012 Tanaka Akira <akr@fsij.org>
- * ext/sdbm/init.c: encoding conversion support.
+ * ext/dbm/dbm.c: use db_version() instead of DB_VERSION_STRING to
+ detect runtime Berkeley DB version.
+ use dpversion instead of _QDBM_VERSION to detect runtime QDBM
+ version.
+ [ruby-dev:44948]
- * ext/dbm/dbm.c: ditto.
+Thu Feb 9 11:11:15 2012 Tanaka Akira <akr@fsij.org>
-Mon Oct 20 15:42:02 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * ext/dbm/extconf.rb: detect gdbm_version in libgdbm.
- * string.c (rb_locale_str_new): new function to convert string
- from locale to internal encoding.
+ * ext/dbm/dbm.c: make DBM::VERSION more informative for gdbm, qdbm and
+ Berkeley DB 1.x. [ruby-dev:44944]
-Mon Oct 20 09:47:13 2008 Tanaka Akira <akr@fsij.org>
+Thu Feb 9 07:32:40 2012 NARUSE, Yui <naruse@ruby-lang.org>
- * test/runner.rb: search srcdir/test/arg at first to find test/ruby
- directory when "ruby" is specified.
+ * numeric.c (rb_enc_uint_char): raise RangeError when added codepoint
+ is invalid. [Feature #5855] [Bug #5863] [Bug #5864]
-Mon Oct 20 08:20:01 2008 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+ * string.c (rb_str_concat): ditto.
- * ext/tk/lib/tk.rb: support Encoding.default_internal.
+ * string.c (rb_str_concat): set encoding as ASCII-8BIT when the string
+ is US-ASCII and the argument is an integer greater than 127.
- * ext/tk/tcltklib.c: ditto.
+ * regenc.c (onigenc_mb2_code_to_mbclen): rearrange error code.
- * ext/tk/extconf.rb: improve the strategy for searching Tcl/Tk headers.
+ * enc/euc_jp.c (code_to_mbclen): ditto.
-Mon Oct 20 00:57:04 2008 Tanaka Akira <akr@fsij.org>
+ * enc/shift_jis.c (code_to_mbclen): ditto.
- * lib/test/unit.rb (Test::Unit.setup_argv): call given block for
- filtering files.
+Thu Feb 9 07:28:43 2012 NARUSE, Yui <naruse@ruby-lang.org>
- * test/runner.rb: search srcdir/test/arg, srcdir/arg.
+ * test/pathname/test_pathname.rb: not read but binread.
+ patched by Benoit Daloze, [ruby-core:42440] [Bug #5984]
- * bin/testrb: show usage if no files given.
+Wed Feb 8 22:29:59 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Sun Oct 19 21:19:16 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * string.c (rb_str_modify_expand): fix memory leak.
- * common.mk (srcs): removed ID_H_TARGET.
+Wed Feb 8 10:58:45 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * tool/generic_erb.rb: always overwrites if no if-change option.
- sends the result to stdout if no output option.
+ * ext/readline/readline.c (readline_attempted_completion_function):
+ respect encodings. [Bug #5941]
- * template/id.h.tmpl: shows which token differs.
+Wed Feb 8 10:56:00 2012 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
-Sun Oct 19 18:15:15 2008 Martin Duerst <duerst@it.aoyama.ac.jp>
+ * ext/readline/readline.c (readline_attempted_completion_function):
+ fix compile error.
- * enc/trans/single_byte.trans: adding WINDOWS-wwww encodings
- (wwww = 874/1250/1251/1253/1254/1255/1256/1257)
- (contributed by Yoshihiro Kambayashi)
+Wed Feb 8 10:56:00 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * enc/trans/windows-wwww-tbl.rb: 8 new files
- (contributed by Yoshihiro Kambayashi)
+ * ext/readline/readline.c (readline_attempted_completion_function):
+ empty completion result does not mean memory error.
- * test/ruby/test_transcode.rb: added test_windows_wwww
- (contributed by Yoshihiro Kambayashi)
+Wed Feb 8 10:54:49 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Sun Oct 19 07:37:13 2008 Tadayoshi Funaba <tadf@dotrb.org>
+ * ext/readline/readline.c (readline_readline): check if outstream
+ is closed to get rid of a bug of readline 6. [ruby-dev:45043]
+ [Bug #5803]
- * lib/cmath.rb (log2,cbrt,frexp,ldexp,hypot,erf,erfc,gamma,lgamma):
- should be also provided as module function. [ruby-dev:36787]
+Wed Feb 8 10:52:51 2012 NARUSE, Yui <naruse@ruby-lang.org>
-Sun Oct 19 07:25:08 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+ * ext/readline/readline.c (Init_readline): like r18313, libedit's
+ replace_history_entry may use offset instead of which.
+ so introduce history_replace_offset_func and initialize it.
- * keywords, lex.c.src, opt_insn_unif.def, opt_operand.def: moved rarely changed
- input files for code generators into defs/ directory.
+ * ext/readline/readline.c (hist_set): use history_replace_offset_func.
- * Makefile.in (lex.c): followed keywords and lex.c.src.
+Wed Feb 8 10:52:36 2012 NARUSE, Yui <naruse@ruby-lang.org>
- * common.mk (parser.o): followed keywords.
- (INSNS): followed opt_*.def
+ * ext/readline/readline.c (Init_readline): fix wrong condition.
- * tools/instruction.rb: followed opt_*.def.
+Wed Feb 8 10:50:11 2012 Naohisa Goto <ngotogenome@gmail.com>
-Sun Oct 19 12:28:01 2008 James Edward Gray II <jeg2@ruby-lang.org>
+ * test/ruby/test_rubyoptions.rb (test_script_from_stdin): slave pty
+ should be manipulated because master pty may not be a tty on some
+ environment (e.g. Solaris). [Bug:#5222] [ruby-dev:44420]
- * test/csv/*: Renamed tc_* files to test_* to fit in within Ruby's
- testing process.
+Wed Feb 8 10:38:36 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Sun Oct 19 00:15:03 2008 Tanaka Akira <akr@fsij.org>
+ * Makefile.in (CFLAGS): append ARCH_FLAG.
- * lib/test/unit.rb (assert_nothing_thrown): don't intern.
+ * configure.in (ARCH_FLAG): exclude from CFLAGS.
-Sat Oct 18 14:40:32 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+Wed Feb 08 09:19:00 2012 Martin Bosslet <Martin.Bosslet@googlemail.com>
- * numeric.c (num_sadded): remove newly defined singleton method
- that should not exist after exception handling. [ruby-dev:36569]
+ * ext/openssl/ossl_cipher.c: Add warning about key as IV.
-Sat Oct 18 14:27:49 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+Wed Feb 8 10:37:31 2012 Martin Bosslet <Martin.Bosslet@googlemail.com>
- * parse.y (opt_block_arg): allow trailing comma after usual
- arguments. not after block argument.
+ * ext/openssl/ossl_cipher.c: Update and complete documentation.
-Sat Oct 18 13:30:53 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+Wed Feb 08 09:57:33 2012 Martin Bosslet <Martin.Bosslet@googlemail.com>
- * string.c (rb_external_str_new): a new function to convert from
- external encoding to internal encoding. if something went
- wrong, it returns a string with the external encoding.
+ * ext/openssl/ossl_asn1.c: Call INT2NUM only once for GeneralString.
+ Thanks to Mantas Mikulenas for noticing and providing a patch!
+ [ruby-core:42358] [Bug #5972]
- * string.c (rb_external_str_new_with_enc): same as above besides
- you can specify the source encoding.
+Wed Feb 8 10:34:59 2012 TAKAO Kouji <kouji@takao7.net>
- * ruby.c (ruby_set_argv): use rb_external_str_new()
+ * ext/readline/readline.c (readline_attempted_completion_function):
+ in Readline module with GNU Readline 6 case, Readline module
+ resets completion_append_character to " ", after it executes
+ completion. So, Readline module stores
+ completion_append_character, and Readline module always sets it
+ after Readline module executes completion. [ruby-dev:43456]
+ [Feature #4635]
- * ruby.c (set_arg0, ruby_script): ditto.
+Wed Feb 8 09:47:52 2012 Tanaka Akira <akr@fsij.org>
-Sat Oct 18 04:08:18 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * test/ruby/test_sleep.rb (test_sleep_5sec): 0.1sec tolerance is too
+ small for busy environment.
- * lib/tempfile.rb (Tempfile#initialize): now Tempfile.new takes
- keyword arguments to open(). [ruby-dev:36756]
+Wed Feb 8 09:45:23 2012 Tanaka Akira <akr@fsij.org>
-Sat Oct 18 17:10:10 2008 Martin Duerst <duerst@it.aoyama.ac.jp>
+ * test/dbm/test_dbm.rb: split tests for read only database.
- * tool/transcode-tblgen.rb: added set_valid_byte_pattern
- to reduce coupling between table generation script and
- specific encodings.
+ * test/gdbm/test_gdbm.rb: ditto.
- * enc/trans/single_byte.trans: using set_valid_byte_pattern
+Wed Feb 8 09:43:48 2012 CHIKANAGA Tomoyuki <nagachika00@gmail.com>
-Sat Oct 18 16:39:39 2008 Martin Duerst <duerst@it.aoyama.ac.jp>
+ * error.c (name_err_mesg_to_str): clear rb_thread_t::errinfo when
+ ignore exception under rb_protect(). [ruby-core:41612] [Bug #5755]
- * transcode.c: in transcode_search_path, eliminated a warning
- on cygwin about pathlen potentially not being initialized
+ * test/ruby/test_exception.rb (test_exception_in_name_error_to_str):
+ add a corresponding test.
-Sat Oct 18 13:40:27 2008 Tanaka Akira <akr@fsij.org>
+Wed Feb 8 09:36:42 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * lib/test/unit.rb (assert_nothing_thrown): implemented.
+ * encoding.c (require_enc): reject only loading from untrusted
+ load paths. [ruby-dev:44541] [Bug #5279]
-Sat Oct 18 01:33:22 2008 WATANABE Hirofumi <eban@ruby-lang.org>
+ * transcode.c (load_transcoder_entry): ditto.
- * common.mk: use added options for generic_erb.rb.
+Wed Feb 8 09:36:42 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Sat Oct 18 00:47:51 2008 wanabe <s.wanabe@gmail.com>
+ * encoding.c (load_encoding): predefined encoding names are safe.
+ [ruby-dev:44469] [Bug #5279]
- * array.c: don't recycle shared-array while sort!.
+ * transcode.c (load_transcoder_entry): ditto.
-Fri Oct 17 22:04:38 2008 wanabe <s.wanabe@gmail.com>
+Tue Feb 7 14:29:16 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * array.c: recycle shared-array when it isn't referenced.
+ * st.c (st_foreach): should not yield same pair when checking
+ after unpacking.
-Fri Oct 17 20:29:26 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+Tue Feb 7 14:03:45 2012 CHIKANAGA Tomoyuki <nagachika00@gmail.com>
- * re.c (rb_reg_initialize_m): specify ARG_ENCODING_NONE instead of
- ARG_ENCODING_FIXED for Regexp.new("", nil, "n"). [ruby-dev:36761]
+ * lib/tempfile.rb (Tempfile#_close): clear @tempfile and @data[1] even
+ when exception is raised at @tempfile.close. [ruby-dev:45113]
- * test/ruby/test_regexp.rb (TestRegexp#test_initialize): test
- updated.
+ * lib/tempfile.rb (Tempfile#unlink): fix a typo.
-Fri Oct 17 19:46:20 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Tue Feb 7 14:02:32 2012 CHIKANAGA Tomoyuki <nagachika00@gmail.com>
- * tool/ifchange, win32/ifchange.bat: --timestamp option added.
+ * test/ruby/test_io.rb (test_autoclose_true_closed_by_finalizer,
+ test_autoclose_true_closed_by_finalizer): skip if IO objects are
+ not recycled yet. [ruby-dev:45098] [Bug #5850]
- * tool/generic_erb.rb: --timestamp, --output and --if-change options
- added.
+Tue Feb 7 13:59:26 2012 CHIKANAGA Tomoyuki <nagachika00@gmail.com>
-Fri Oct 17 18:33:12 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+ * gc.c (run_finalizer): clear rb_thread_t::errinfo when ignore
+ an exception under rb_protect(). [ruby-dev:45113]
- * array.c (ary_resize_capa): renamed RESIZE_CAPA.
+Mon Feb 6 15:34:47 2012 Tanaka Akira <akr@fsij.org>
-Fri Oct 17 18:16:51 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * ruby.c (fill_standard_fds): use fstat() instead of fcntl(F_GETFD)
+ for MinGW. reported by Luis Lavena. [ruby-core:40526] [Bug #5516]
- * test/bigdecimal/test_bigdecimal.rb (TestBigDecimal#test_sqrt_bigdecimal):
- test updated. a patch from TAKANO Mitsuhiro <takano32 at jus.or.jp> in
- [ruby-dev:36736].
+Mon Feb 6 15:34:47 2012 Tanaka Akira <akr@fsij.org>
-Fri Oct 17 18:14:57 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * ruby.c (fill_standard_fds): new function to open closed standard
+ file descriptors.
+ (ruby_sysinit): call fill_standard_fds.
- * configure.in (uncommon.mk): ignores failures at loading.
+Mon Feb 6 15:19:17 2012 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * test/rubygems/gemutilities.rb (RubyGemTestCase#build_rake_in):
- get rid of interference with other tests.
+ * io.c (rb_io_fsync,rb_io_fdatasync): release GVL during fsync().
+ fsync() and fdatasync() may take a long time on slow disks and/or
+ if there is much dirty data.
+ Patch by Eric Wong. [Feature #5665] [ruby-core:41247]
-Fri Oct 17 18:06:39 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+Mon Feb 6 15:01:55 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * transcode.c (str_transcode0): String#encode without argument now
- behave as if :undef => :replace, :invalid => :replace specified.
+ * vm_eval.c (vm_call0): should pass block to enumerators. patched
+ by Kazuki Tsujimoto. [ruby-dev:44961][Bug #5731]
- * transcode.c (rb_econv_prepare_opts): should preserve options in
- any case.
+ * vm_eval.c (method_missing), vm_insnhelper.c (vm_call_method):
+ ditto. patched by satoshi shiba.
-Fri Oct 17 11:48:18 2008 Shugo Maeda <shugo@ruby-lang.org>
+Mon Feb 6 21:52:20 2012 Yuki Sonoda (Yugui) <yugui@yugui.jp>
- * ext/socket/socket.c (init_sock): sockets should be binmode.
+ * common.mk (INSTRUBY_ARGS): added --mantype to apply mdoc2man.rb
+ to man pages. Fixes #5598.
+ (do-install-nodoc, do-install-local, do-install-man,
+ dont-install-nodoc, dont-install-local, dont-install-man):
+ No longer needs --mantype.
- * test/socket/test_tcp.rb (test_encoding): ditto.
+ Reported by Rainer Orth <ro AT cebitec.uni-bielefeld.de>,
+ patch by George Koehler <xkernigh AT netscape.net>.
-Fri Oct 17 10:26:13 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+Mon Feb 6 21:21:46 2012 NAKAMURA Usaku <usa@ruby-lang.org>
- * tool/insns2vm.rb: remove -Kn option in shebang line because it's
- inconsistent with -Ks commandline option in common.mk.
+ * test/unit/assertions.rb (MINI_DIR): quick dirty hack to get rid of
+ warnings when using assert/assert_respond_to.
-Fri Oct 17 01:26:09 2008 Tanaka Akira <akr@fsij.org>
+Mon Feb 6 20:38:19 2012 NARUSE, Yui <naruse@ruby-lang.org>
- * transcode.c (transcode_restartable0): in_pos and out_pos never be
- NULL, now.
+ * file.c (file_expand_path): reset coderange after expanding path.
-Fri Oct 17 00:39:19 2008 Yusuke Endoh <mame@tsg.ne.jp>
+Mon Feb 6 20:32:17 2012 Tadayoshi Funaba <tadf@dotrb.org>
- * lib/test/unit.rb: sort the order of executing tests.
+ * ext/date/date_strptime.c: moved detector of leftover.
-Fri Oct 17 00:24:15 2008 Tanaka Akira <akr@fsij.org>
+Mon Feb 6 20:32:17 2012 Tadayoshi Funaba <tadf@dotrb.org>
- * io.c (rb_io_binmode): reset encoding conversion.
+ * ext/date/date_parse.c: [ruby-core:42173].
-Fri Oct 17 00:16:08 2008 Yusuke Endoh <mame@tsg.ne.jp>
+Mon Feb 6 20:31:35 2012 Tadayoshi Funaba <tadf@dotrb.org>
- * io.c (rb_getc, rb_io_fread, rb_io_fwrite, rb_read_pending):
- remove deprecated functions which do not work. [ruby-dev:36697]
+ * ext/date/date_core.c: uses to_integer instead.
+ * test/date/test_switch_hitter.rb: added a test.
-Thu Oct 16 23:48:34 2008 Tanaka Akira <akr@fsij.org>
+Mon Feb 6 20:31:35 2012 NARUSE, Yui <naruse@ruby-lang.org>
- * common.mk (TESTS): removed to re-enable test for minitest.
+ * ext/date/date_core.c (wholenum): fix the type of the return value.
-Thu Oct 16 23:37:11 2008 Yusuke Endoh <mame@tsg.ne.jp>
+Mon Feb 6 20:31:35 2012 Tadayoshi Funaba <tadf@dotrb.org>
- * compile.c (iseq_set_sequence): fix memory leak.
+ * ext/date/date_core.c: [ruby-dev:45008].
-Thu Oct 16 23:27:27 2008 Tanaka Akira <akr@fsij.org>
+Mon Feb 6 16:38:56 2012 NAKAMURA Usaku <usa@ruby-lang.org>
- * lib/test/unit.rb (assert_equal): avoid incompatible character
- encodings error.
+ * win32/win32.c (unixtime_to_filetime): should check the return value
+ of localtime(). reported by snowjail at gmail.com.
+ [ruby-dev:44838] [Bug #5596]
-Thu Oct 16 23:23:27 2008 Tanaka Akira <akr@fsij.org>
+Mon Feb 6 16:36:25 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * lib/test/unit.rb (assert_equal): failure message changed.
+ * io.c (rb_update_max_fd): fstat(2) can fail with other than
+ EBADF. [ruby-dev:44837] [Bug #5593]. Cf.
+ http://pubs.opengroup.org/onlinepubs/9699919799/functions/fstat.html
-Thu Oct 16 22:52:54 2008 Tanaka Akira <akr@fsij.org>
+Mon Feb 6 16:31:16 2012 NAKAMURA Usaku <usa@ruby-lang.org>
- * lib/test/unit: removed test/unit.
+ * io.c (io_fwrite): call rb_w32_write_console() only if FMODE_TTY is
+ set. this is the one of the reason of IO writing slowness of Windows
+ in 1.9.3 or later.
- * lib/test/unit.rb: new compatibility layer using minitest.
+Mon Feb 6 16:21:57 2012 NARUSE, Yui <naruse@ruby-lang.org>
- * bin/testrb: use above.
+ * file.c (file_expand_path): reset coderange after expanding path.
- * test/runner.rb: ditto.
+Mon Feb 6 00:06:39 2012 NARUSE, Yui <naruse@ruby-lang.org>
-Thu Oct 16 14:34:16 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * ext/json/parser/parser.rl (json_string_unescape): workaround fix
+ for over optimization of GCC 4.7. [ruby-core:42085] [Bug #5888]
+ http://gcc.gnu.org/bugzilla/show_bug.cgi?id=51862
- * common.mk, enc/depend (enc, trans): targets for sources.
+Fri Feb 3 16:16:10 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Thu Oct 16 14:30:30 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * test/ruby/envutil.rb (EnvUtil.invoke_ruby): yield also child pid
+ in block form.
- * instruby.rb (lib): installs all files other than README etc.
+Fri Feb 3 16:16:10 2012 Hiroshi Shirosaki <h.shirosaki@gmail.com>
-Thu Oct 16 09:48:03 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * test/ruby/test_thread.rb
+ (TestThreadGroup#test_thread_timer_and_interrupt): skip exit status
+ assertion because we cannot get signal status on Windows.
- * re.c (rb_reg_initialize_m): changed the message to clarify the
- third option argument is now ignored. [ruby-dev:36753]
+ * win32/win32.c (CreateChild): create process group to receive the
+ signal by GenerateConsoleCtrlEvent().
-Thu Oct 16 08:14:39 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * win32/win32.c (kill): use CTRL_BREAK_EVENT instead of CTRL_C_EVENT
+ if a process group is specified. CTRL_C_EVENT signal cannot be
+ generated for process groups for the specification.
+ [ruby-dev:45149] [Bug #5812]
- * ruby.c (proc_options): no warning when default_external already
- set by -E.
+Fri Feb 3 16:16:10 2012 CHIKANAGA Tomoyuki <nagachika00@gmail.com>
- * test/ruby/test_rubyoptions.rb (TestRubyOptions#test_rubyopt):
- put -K after -E to set script encoding.
+ * test/ruby/envutil.rb (invoke_ruby): remove :timeout option before
+ pass it to Kernel#spawn.
-Thu Oct 16 06:20:36 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+Fri Feb 3 10:10:02 2012 CHIKANAGA Tomoyuki <nagachika00@gmail.com>
- * test/ruby/test_transcode.rb (TestTranscode#test_errors):
- String#encode now works without any argument. [ruby-dev:36740]
+ * thread_pthread.c (ping_signal_thread_list): remove return value.
+ * thread_pthread.c (check_signal_thread_list): add a new function to
+ check if signal thread list is empty.
+ * thread_pthread.c (thread_timer): check signal thread list after
+ timer_thread_function(). main thread might be added into signal thread
+ list during timer_thread_function().
-Wed Oct 15 23:48:22 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+Fri Feb 3 10:10:02 2012 NARUSE, Yui <naruse@ruby-lang.org>
- * .gdbinit (rp): REGEXP handling fixed.
+ * thread_pthread.c (ubf_select): call rb_thread_wakeup_timer_thread()
+ only when it is not timer_thread. [Bug #5757] [ruby-dev:44985]
+ patched by Tomoyuki Chikanaga.
- * string.c (rb_str_rindex_m): need not to call rb_enc_check on
- regexp.
+Wed Feb 1 09:50:10 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * re.c (unescape_escaped_nonascii): try ASCII-8BIT encoding for
- broken strings.
+ * doc/re.rdoc (Repetition): fix typo. reported by Ori Avtalion
+ and patched by Zachary Scott. [Bug #5947]
-Wed Oct 15 23:11:10 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+Tue Jan 24 11:38:05 2012 NARUSE, Yui <naruse@ruby-lang.org>
- * lib/delegate.rb (DelegateClass): restored 1.8 behavior for
- DelegateClass as well. [ruby-dev:36739]
+ * lib/uri/common.rb (URI.encode_www_form_component): initialize on
+ requiring to support JRuby, which runs parallel multithreads.
+ [ruby-core:42222] [Bug #5925]
-Wed Oct 15 22:19:14 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+ * lib/uri/common.rb (URI.decode_www_form_component): initialize on
- * array.c (RESIZE_CAPA): check whether len is longer than capacity.
+Sat Jan 28 05:53:34 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * array.c (rb_ary_compact_bang): resize ary before changing capacity.
- fixed [ruby-dev:36704]
+ * lib/irb/completion.rb (IRB::InputCompletor::CompletionProc):
+ ignore non-string name modules. [ruby-core:42244][Bug #5938]
-Wed Oct 15 16:57:30 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+Mon Jan 23 18:18:58 2012 NARUSE, Yui <naruse@ruby-lang.org>
- * version.h (RUBY_DESCRIPTION): remove unnecessary space.
+ * encoding.c (rb_enc_compatible): fix segv on symbols.
+ [ruby-core:42204] [Bug #5921]
-Tue Oct 14 23:18:15 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+Tue Jan 17 17:18:41 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * lib/delegate.rb (Delegator): simplified and restored 1.8
- behavior. [ruby-dev:35986]
+ * configure.in (SPT_TYPE): enable as SPT_REUSEARGV on Darwin.
-Tue Oct 14 21:50:40 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * missing/setproctitle.c (ruby_init_setproctitle): changed prefix.
- * common.mk (TESTS): skips minitest by default, since it interferes
- with test/unit.
+Mon Jan 16 16:41:53 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Tue Oct 14 21:36:29 2008 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+ * lib/optparse.rb (Regexp): fix incorrect options when casting to
+ a Regexp, and suppress encoding option warnings.
+ https://github.com/ruby/ruby/pull/82
- * ext/win32ole/win32ole.c (load_conv_function51932): check
- having IMultiLanguage2 or IMultiLanguage. [ruby-dev:36716]
+Fri Jan 13 15:22:43 2012 Tanaka Akira <akr@fsij.org>
- * ext/win32ole/extconf.rb: ditto.
+ * time.c (TIME_COPY_GMT): copy vtm.utc_offset and vtm.zone too.
+ patch by Tomoyuki Chikanaga.
+ [ruby-dev:44827] [Bug #5586]
-Tue Oct 14 20:45:29 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Thu Jan 12 13:52:13 2012 NARUSE, Yui <naruse@ruby-lang.org>
- * io.c (Init_IO): $FILENAME and $* must be read-only. [ruby-dev:36698]
+ * cont.c (cont_restore_0): prevent optimizing out `sp'. sp is used for
+ reserving a memory space with ALLOCA_N for restoring machine stack
+ stored in cont->machine_stack, but clang optimized out it (and
+ maybe #5851 is also caused by this).
+ This affected TestContinuation#test_check_localvars.
- * variable.c (*_getter, *_setter, *_marker): made public.
+ * cont.c (cont_restore_1): revert workaround introduced in r32201.
- * include/ruby/ruby.h (rb_gvar_*_{getter,setter,marker}): declared.
+Thu Jan 12 01:40:33 2012 NAKAMURA Usaku <usa@ruby-lang.org>
-Tue Oct 14 20:32:09 2008 Tanaka Akira <akr@fsij.org>
+ * test/ruby/test_io.rb (TestIO#test_autoclose): Tempfile.new doesn't
+ accept the block argument.
- * enc/trans/single_byte.trans (transcode_tblgen_singlebyte): renamed
- from transcode_tblgen_windows.
- (transcode_tblgen_iso8859): use transcode_tblgen_singlebyte.
+Sat Jan 7 22:46:36 2012 Kouhei Sutou <kou@cozmixng.org>
-Tue Oct 14 19:32:14 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * lib/rexml/parsers/baseparser.rb: use private instead of _xxx
+ method name. This is Ruby code not Python code.
+ refs #5696
- * ruby.c (process_options): -U should be allowed in RUBYOPT
- environment variable. [ruby-dev:36720]
+Tue Jan 03 23:57:37 2012 Ayumu AIZAWA <ayumu.aizawa@gmail.com>
-Tue Oct 14 14:11:17 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * lib/rexml/parsers/baseparser.rb: rexml BaseParser uses
+ instance_eval unnecessarily on listener add.
+ patch from Charles Nutter. [Bug #5696] [ruby-core:41437]
- * ruby.c (proc_options): -U can be followed by other options.
+Tue Jan 03 19:13:05 2012 Ayumu AIZAWA <ayumu.aizawa@gmail.com>
-Tue Oct 14 13:30:30 2008 Martin Duerst <duerst@it.aoyama.ac.jp>
+ * test/rexml/test_sax.rb: add require 'rexml/document'.
+ [Backport #5834] [ruby-dev:45079]
- * enc/trans/single_byte.trans: added windows-1252
+Tue Jan 3 19:05:42 2012 Naohisa Goto <ngotogenome@gmail.com>
- * enc/trans/windows-1252-tbl.rb: new file
- (contributed by Yoshihiro Kambayashi)
+ * include/ruby/defines.h (FLUSH_REGISTER_WINDOWS): move sparc asm code
+ to a separete file sparc.c for preventing inlining optimization.
+ Patched by Jurij Smakov. [Bug #5244] [ruby-core:40685]
+ * sparc.c (rb_sparc_flush_register_windows): ditto.
+ * configure.in: ditto.
- * tool/transcode-tblgen.rb: listed windows-1252 as '1byte'
+Mon Jan 2 23:52:20 2012 TAKAO Kouji <kouji@takao7.net>
- * test/ruby/test_transcode.rb: added test_windows_1252
- (contributed by Yoshihiro Kambayashi)
+ * ext/readline/readline.c (Init_readline): libedit check
+ rl_getc_function only when rl_initialize() is called, and
+ using_history() call rl_initialize(). This assignment should be
+ placed before using_history(). [ruby-core:40641] [Bug #5539]
-Tue Oct 14 12:22:32 2008 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
+Mon Jan 2 23:47:58 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * test/ruby/test_variable.rb (TestVariable#test_variable): add
- a test of [ruby-dev:36698].
+ * tool/rbinstall.rb (install_recursive, bin-comm): split mere
+ string not path name. [ruby-core:40462] [Bug #5492]
-Tue Oct 14 11:14:29 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+Mon Jan 2 23:41:57 2012 Tajima Akil <artonx@yahoo.co.jp>
- * transcode.c (str_transcode0): should not raise error when
- default_internal is not set. [ruby-core:19309]
+ * win32/Makefile.sub (CONFIG_H): have stdint.h if VC2010.
+ [Bug #5243]
-Tue Oct 14 11:14:26 2008 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
+Mon Jan 2 21:40:45 2012 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * lib/net/pop.rb: check for invalid APOP timestamp. (CVE-2007-1558)
- [ruby-dev:36631]
+ * tool/merger.rb (#version_up): version.h date should be Japanese
+ locale date.
- * test/net/pop/test_pop.rb: ditto.
+Mon Jan 2 21:36:56 2012 Luis Lavena <luislavena@gmail.com>
-Tue Oct 14 09:39:32 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * configure.in: check -fno-omit-frame-pointer acceptance and usage
+ under MinGW. [ruby-core:39957] [Bug #5407]
- * ruby.c (set_internal_encoding_once): check double contradicted
- specification of the encoding from command line.
+Mon Jan 2 20:05:10 2012 NARUSE, Yui <naruse@ruby-lang.org>
- * ruby.c (set_external_encoding_once): ditto.
+ * include/ruby/ruby.h (SIZE_MAX): define SIZE_MAX if not defined.
+ patched by The Written Word Inc. [ruby-core:40422] [Bug #5489]
-Tue Oct 14 08:28:31 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+Mon Jan 2 20:00:01 2012 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * parse.y (parser_yylex): allow reserved word to be keyword argument.
+ * ext/pty/pty.c (pty_check): should return nil until the child
+ terminates or stops. [ruby-dev:44600] [Bug #2642]
-Mon Oct 13 19:07:52 2008 NARUSE, Yui <naruse@ruby-lang.org>
+Mon Jan 2 19:27:18 2012 Yusuke Endoh <mame@tsg.ne.jp>
- * parse.y (token_info_pop): show source filename. [ruby-dev:36710]
+ * thread.c (update_coverage): skip coverage count up if the current
+ line is out of the way. rb_sourceline() is unreliable when source
+ code is big. [ruby-dev:44413]
-Mon Oct 13 08:59:08 2008 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+ * test/coverage/test_coverage.rb: add a test for above.
- * ext/win32ole/win32ole.c (load_conv_function51932): support
- CP51932 on cygwin and mingw32. thanks to arton.
+Mon Jan 2 19:08:54 2012 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * test/win32ole/test_win32ole.rb (test_cp51932): ditto.
+ * thread_pthread.c (gvl_yield): don't prevent concurrent sched_yield().
+ [Bug #5130] [ruby-core:38647]
-Mon Oct 13 07:54:00 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+Mon Jan 2 18:54:52 2012 NAKAMURA Usaku <usa@ruby-lang.org>
- * ruby.c (proc_options): add -U command line option to specify
- utf-8 as default_internal.
+ * win32/configure.bat: disable delayed expansion of enironment variable.
+ [Bug #5517] [ruby-core:40531]
-Mon Oct 13 07:42:57 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+Wed Dec 28 11:22:45 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * transcode.c (str_transcode0): String#encode() with no encoding
- specified transcode the string into Encoding.default_internal.
- inspired by [ruby-core:19298].
+ * lib/fileutils.rb (FileUtils::Entry_#entries): use utility method
+ instead of typoed regexp. [ruby-core:41829] [Bug #5817]
-Sun Oct 12 18:00:18 2008 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+Thu Dec 15 10:44:54 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * ext/win32ole/win32ole.c (set_ole_codepage, ole_cp2encoding,
- ole_wc2mb, ole_vstr2wc, ole_mb2wc): support CP51932 (only mswin32).
+ * array.c (rb_ary_reject_bang, rb_ary_delete_if): update rdoc.
+ documentation from Thomas Leitner <t_leitner AT gmx.at> in
+ [ruby-core:41616]. [Bug #5752]
- * test/win32ole/test_win32ole.rb: ditto.
+Wed Dec 14 15:28:31 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Sun Oct 12 12:03:38 2008 Koichi Sasada <ko1@atdot.net>
+ * transcode.c (str_encode): about the extension of :fallback
+ option since 1.9.3.
- * vm.c, vm_insnhelper.h (ruby_vm_redefined_flag): apply optimization
- patch proposed by Paul Brannan. [ruby-core:19171]
+Tue Oct 4 06:43:47 2011 Aaron Patterson <aaron@tenderlovemaking.com>
-Sun Oct 12 09:46:36 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * ext/psych/lib/psych.rb: update psych version.
+ * ext/psych/psych.gemspec: generate new gemspec for new version.
- * strftime.c (rb_strftime): suppressed warnings on cygwin.
+Tue Oct 4 06:29:55 2011 Aaron Patterson <aaron@tenderlovemaking.com>
-Sat Oct 11 19:49:35 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * ext/psych/lib/psych.rb: calling `yaml` rather than `to_yaml`.
+ * ext/psych/lib/psych/nodes/node.rb: Rename `to_yaml` to just `yaml`
+ in order to avoid YAML::ENGINE switching from replacing this method.
+ * test/psych/helper.rb: fix tests for method name change.
+ * test/psych/test_document.rb: ditto
+ * test/psych/visitors/test_emitter.rb: ditto
- * parse.y (parser_prepare): use utf-8 encoding directly.
+Tue Oct 4 06:20:19 2011 Aaron Patterson <aaron@tenderlovemaking.com>
-Sat Oct 11 10:20:17 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * ext/psych/lib/psych/scalar_scanner.rb: Match values against the
+ floating point spec defined in YAML to avoid erronious parses.
+ * test/psych/test_numeric.rb: corresponding test.
- * lib/mkmf.rb (CLEANINGS): uses escaped form tabs to preventing the
- confusion. [ruby-talk:317345]
+Tue Oct 4 05:59:24 2011 Aaron Patterson <aaron@tenderlovemaking.com>
-Sat Oct 11 08:51:13 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * ext/psych/lib/psych/visitors/to_ruby.rb: ToRuby visitor can be
+ constructed with a ScalarScanner.
+ * ext/psych/lib/psych/visitors/yaml_tree.rb: ScalarScanner can be
+ passed to the YAMLTree visitor.
- * lib/rake.rb (Rake::Application#standard_exception_handling): removed
- unnecessary SystemExit, and exits with false instead of system
- dependent value. [ruby-talk:317330]
+Tue Oct 4 05:47:23 2011 Aaron Patterson <aaron@tenderlovemaking.com>
-Sat Oct 11 03:54:05 2008 Koichi Sasada <ko1@atdot.net>
+ * ext/psych/lib/psych/visitors/to_ruby.rb: Define Regexp::NOENCODING
+ for 1.9.2 backwards compatibility.
+ * ext/psych/lib/psych/visitors/yaml_tree.rb: Fix Date string
+ generation for 1.9.2 backwards compatibility.
- * parse.y: optimize 'for' statement when one variable given.
+Fri Sep 2 04:05:25 2011 Aaron Patterson <aaron@tenderlovemaking.com>
- * benchmark/bm_loop_for.rb: added.
+ * ext/psych/lib/psych/visitors/yaml_tree.rb: emit strings tagged as
+ ascii-8bit as binary in YAML.
+ * test/psych/test_string.rb: corresponding test.
- * benchmark/bm_loop_times.rb: modified.
+Wed Dec 7 19:04:22 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Sat Oct 11 12:09:05 2008 James Edward Gray II <jeg2@ruby-lang.org>
+ * configure.in (rpath): fix typo in the help string. a patch from
+ Yuji Yamano <yyamano AT kt.rim.or.jp> in [ruby-list:48568].
- * lib/csv/csv.rb: Added support for Encoding::default_internal.
- * lib/csv/csv.rb: Switched to new Hash syntax.
+Wed Nov 30 18:22:10 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Fri Oct 10 22:16:55 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * complex.c (nucomp_rationalize): fix function. [ruby-core:40667]
+ [Bug #5546]
- * parse.y (comment_at_top): needed for ripper too.
+Thu Nov 17 10:36:46 2011 Aaron Patterson <aaron@tenderlovemaking.com>
-Fri Oct 10 22:07:05 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * ext/psych/lib/psych.rb (load_file): make sure opened yaml files are
+ also closed. [ruby-core:41088]
- * include/ruby.h: updated macros for headers. [ruby-core:19275]
+Wed Nov 30 02:58:46 2011 Marc-Andre Lafortune <ruby-core@marc-andre.ca>
-Fri Oct 10 19:21:50 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * numeric.c (dbl2ival): Fix Float#divmod and #round for 32 bit
+ platform. part 1 of [bug #5276]
- * parse.y (magic_comment_encoding): warns when ignored.
+Wed Nov 30 02:58:46 2011 Marc-Andre Lafortune <ruby-core@marc-andre.ca>
- * parse.y (parser_magic_comment): replaces '-' with '_'.
+ * numeric.c (flo_round): Fix criteria for 32 bits platform
+ part 2 of [bug #5276]
- * parse.y (parser_yylex): allows magic comments indented and the
- second line or later.
+Wed Nov 30 02:37:32 2011 Marc-Andre Lafortune <ruby-core@marc-andre.ca>
-Fri Oct 10 17:26:50 2008 NARUSE, Yui <naruse@ruby-lang.org>
+ * numeric.c (flo_round): Make Float#round round big values [bug
+ #5272]
- * ext/json/ext/parser/parser.c (JSON_parse_string):
- associate encoding.
+Wed Nov 30 02:37:32 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Fri Oct 10 10:18:21 2008 Ryan Davis <ryand-ruby@zenspider.com>
+ * numeric.c (flo_round): substitute machine dependent magic number.
- * lib/test/*: reverted back to test/unit.
- * test/test/*: ditto
- * lib/minitest/*: Imported minitest 1.3.0 r4333.
+Wed Nov 30 02:28:22 2011 Marc-Andre Lafortune <ruby-core@marc-andre.ca>
-Fri Oct 10 03:41:31 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * numeric.c (int_round): Integer#round always returns an Integer [Bug
+ #5271]
- * sprintf.c (rb_str_format): check if codepoint for %c is valid.
- [ruby-dev:36691]
+Fri Nov 4 01:56:30 2011 NAKAMURA Usaku <usa@ruby-lang.org>
-Fri Oct 10 01:55:48 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * io.c (make_writeconv): unversal_newline converter is for reading.
+ so, if the io is text mode and has ECONV_UNIVERSAL_NEWLINE_DECORATOR
+ flag, use crlf_newline converter for writing.
+ this change fixes the problem about the luck of CR up Kernel.p and
+ Kernel.puts to stdout/stderr on Windows.
- * encoding.c (enc_names): minor improvement.
+Mon Nov 7 23:39:23 2011 Tajima Akio <artonx@yahoo.co.jp>
-Fri Oct 10 00:21:39 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * io.c (io_fflush): remove fsync().
+ * io.c (rb_io_flush, rb_io_rewind): fsync() here.
+ These pathces are backports of trunk r33651 for [Bug #5585]
- * lib/optparse.rb (ParseError.filter_backtrace): removes internal
- backtrace.
+Mon Oct 10 22:33:12 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
-Fri Oct 10 00:11:16 2008 Yusuke Endoh <mame@tsg.ne.jp>
+ * test/-ext-/old_thread_select/test_old_thread_select.rb:
+ select() with timeout may return early in old Linux kernels
+ with 250 Hz tickrate and no dynticks, so skip everything older
+ than 2.6.32 (which has long term support).
+ And, Make the timing assertions consistently use assert_operator with
+ timing difference in error message
+ Patch by Eric Wong. [Bug #5335] [ruby-core:39618]
- * transcode.c (rb_econv_add_converter): remove unnecessary NULL check.
+Tue Oct 4 16:17:50 2011 NARUSE, Yui <naruse@ruby-lang.org>
-Thu Oct 9 23:53:23 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * lib/time.rb (Time.strptime): use Time.at if d[:seconds] is set.
+ Reported by Christopher Eberz. [ruby-core:39903] Bug #5399
- * misc/ruby-style.el (ruby-style-c-mode): buffer may not have file
- name.
+Tue Oct 4 11:44:10 2011 NARUSE, Yui <naruse@ruby-lang.org>
-Thu Oct 9 23:30:47 2008 Yusuke Endoh <mame@tsg.ne.jp>
+ * gc.c (rb_gc_set_params): ruby_verbose can be Qnil, so use RTEST.
- * process.c (run_exec_dup2): fix resource leak.
+Mon Oct 3 23:56:39 2011 CHIKANAGA Tomoyuki <nagachika00@gmail.com>
-Thu Oct 9 23:19:02 2008 Yusuke Endoh <mame@tsg.ne.jp>
+ * gc.c (rb_gc_set_params): output GC parameter change messages only
+ if -w/-v options are specified. these messages are output to stderr,
+ not to stdout. [ruby-core:39795] [Bug #5380]
- * process.c (rb_run_exec_options): fix resource leak.
+ * test/ruby/test_gc.rb (test_gc_parameter): add test for it.
-Thu Oct 9 22:13:58 2008 Yusuke Endoh <mame@tsg.ne.jp>
+Wed Sep 28 09:14:16 2011 Nobuyoshi Nakada <>
- * test/ruby/test_module.rb (test_remove_class_variable): add a test
- for Class#remove_class_variable.
+ * configure.in (pthread_np.h): needs pthread.h to be included
+ previously on OpenBSD. a patch by George Koehler <xkernigh AT
+ netscape.net> at [ruby-core:39752]. [Bug #5376]
- * test/ruby/test_object.rb (test_remove_instance_variable): add a test
- for Object#remove_instance_variable.
+Tue Sep 13 15:02:48 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Thu Oct 9 22:04:38 2008 Yusuke Endoh <mame@tsg.ne.jp>
+ * lib/pstore.rb (PStore): always open in binary mode even if
+ default encodings are set. [Bug #5311] [ruby-core:39503]
- * variable.c (rb_mod_remove_cvar): fix r19711.
+Sat Oct 8 07:31:42 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Thu Oct 9 21:17:50 2008 Yusuke Endoh <mame@tsg.ne.jp>
+ * array.c (ary_join_1): should not copy the encoding of non-string
+ element after string element. [ruby-core:39776] [Bug #5379]
- * ext/syck/syck.c (syck_lookup_sym): remove reading uninitialized
- variable.
+Sat Oct 8 06:51:46 2011 Eric Hodel <drbrain@segment7.net>
-Thu Oct 9 16:34:15 2008 NARUSE, Yui <naruse@ruby-lang.org>
+ * lib/rubygems: Update to RubyGems 1.8.11. Move Deprecate into the
+ Gem namespace.
- * ext/json/ext/generator/extconf.rb: fix target.
+Sat Oct 8 06:37:08 2011 CHIKANAGA Tomoyuki <nagachika00@gmail.com>
- * ext/json/ext/parser/extconf.rb: ditto.
+ * gc.c (rb_gc_set_params): output GC parameter change messages only
+ if -w/-v options are specified. these messages are output to stderr,
+ not to stdout. [ruby-core:39795] [Bug #5380]
-Thu Oct 9 14:37:59 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+ * test/ruby/test_gc.rb (test_gc_parameter): add test for it.
- * include/ruby/ruby.h: embeds the elements of an array into its
- struct RArray for # of elements <= 3.
+Sat Oct 8 06:26:24 2011 CHIKANAGA Tomoyuki <nagachika00@gmail.com>
- * array.c: ditto.
+ * gc.c (add_heap_slots, init_heap): reset heaps_inc zero when
+ heap slots are expanded by environment variable RUBY_HEAP_MIN_SLOTS.
+ [ruby-core:39777] [Bug #5380]
- * gc.c (gc_mark_children): following the change of struct RArray.
+ * test/ruby/test_gc.rb (test_gc_parameter): add test for it.
- * ext/tk/tcltklib.c (ip_ruby_cmp): ditto.
+ * test/ruby/envutil.rb (assert_normal_exit): add :child_env option to
+ enable pass environemnt variables to child process.
- * parse.y (coverage): ditto.
+Sat Oct 8 05:45:28 2011 Eric Hodel <drbrain@segment7.net>
- * proc.c (curry): ditto.
+ * proc.c (proc_call): Update documentation to match argument handling
+ of proc/Proc.new/lambda/->()
- * .gdbinit: ditto.
+Sat Oct 8 05:38:29 2011 Eric Hodel <drbrain@segment7.net>
-Thu Oct 9 11:29:33 2008 NARUSE, Yui <naruse@ruby-lang.org>
+ * proc.c (proc_call): Fix documentation of Proc#call vs Proc#===.
+ [Ruby 1.9 - Bug #5349]
- * encoding.c (Init_Encoding): new instance method Encoding#names,
- returns its name and alias names.
+Tue Sep 27 13:05:39 2011 Martin Bosslet <Martin.Bosslet@googlemail.com>
- * encoding.c (enc_names): defined for Encoding#names.
+ * ext/openssl/ossl_asn1.c: fix int_ossl_asn1_decode0_cons when being
+ fed arbitrary string values.
+ Clearly distinguish between the cases "universal, infinite and
+ not a SEQUENCE or SET" and "universal SEQUENCE or SET, possibly
+ infinite". Raise error for universal tags that are not infinite.
+ * test/openssl/test_asn1.rb: add a test for this.
- * encoding.c (enc_names_i): defined for enc_names.
+ Thanks to Hiroshi Yoshida for reporting this bug.
+ [Bug #5363] [ruby-dev:44542]
-Thu Oct 9 08:47:38 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+Sat Sep 17 23:34:10 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * thread.c (rb_thread_wait_fd_rw): should not block by select if
- there's only one thread living. fixed [ruby-dev:36646].
+ * parse.y (parser_data_type): inherit the core type in ripper so
+ that checks in core would work. [ruby-core:39591] [Bug #5331]
-Wed Oct 8 20:59:52 2008 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+Fri Sep 23 14:15:01 2011 Martin Bosslet <Martin.Bosslet@googlemail.com>
- * ext/win32ole/win32ole.c (ole_init_cp): initialize WIN32OLE.codepage
- according to Encoding.default_internal and
- Encoding.default_external.
+ * ext/openssl/ossl_asn1.c
+ ext/openssl/ossl_pkey.c: Remove unused variables.
-Wed Oct 8 17:02:21 2008 NARUSE, Yui <naruse@ruby-lang.org>
+Fri Sep 23 06:54:44 2011 Martin Bosslet <Martin.Bosslet@googlemail.com>
- * ext/json/lib/json/pure/generator.rb (utf8_to_json):
- process each unpacked Unicode character.
+ * backport r33315 from trunk.
-Wed Oct 8 15:00:22 2008 NARUSE, Yui <naruse@ruby-lang.org>
+ * test/openssl/test_ssl_session.rb: execute test_session_exts_read
+ only for OpenSSL versions >= 0.9.8k. Thanks, Eric Wong, for
+ reporting this.
+ [Bug #4961] [ruby-core:37726]
- * ext/json/lib/json/pure/parser.rb
- (JSON::Pure::Parser#parse_string): force_encoding("UTF-8").
+Fri Sep 23 12:18:52 2011 Martin Bosslet <Martin.Bosslet@googlemail.com>
-Wed Oct 8 11:56:15 2008 NARUSE, Yui <naruse@ruby-lang.org>
+ * backport r33311 from trunk.
- * lib/test/unit/assertions.rb: assert_nothing_thrown,
- assert_raise, assert_not_equal, assert_no_match, assert_not_nil,
- assert_not_same are coming back as alias.
+ * test/openssl/test_ssl_session.rb: ensure server calls callbacks in
+ test_ctx_server_session_cb. Thanks to Eric Wong for the patch.
+ [Bug #5336] [ruby-core:39619]
-Wed Oct 8 11:18:12 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Thu Sep 22 19:45:22 2011 CHIKANAGA Tomoyuki <nagachika00@gmail.com>
- * variable.c (autoload_delete, autoload_file): should not delete
- autoload table, since it may be shared with duplicated modules.
- [ruby-core:19181]
+ * thread_pthread.c (ubf_select): activate timer thread when interrupt
+ blocking thread.
+ A patch created by Koichi Sasada. [ruby-core:39634] [Bug #5343]
+ to cover race condition, timer thread periodically send SIGVTARLM to
+ threads in signal thread list. so you should activate timer thread
+ when interrupt a thread.
-Wed Oct 8 02:38:28 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+Wed Sep 21 16:57:03 2011 NAKAMURA Usaku <usa@ruby-lang.org>
- * encoding.c (rb_default_internal_encoding): merged a patch from
- Michael Selig <michael.selig at fs.com.au> in [ruby-core:18985].
+ * test/io/wait/test_io_wait.rb (TestIOWait#setup): of course, the
+ behavior of mingw is just same with mswin.
- * io.c (rb_io_ext_int_to_encs): ditto.
+Sat Sep 17 22:21:26 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * ruby.c (proc_options): support default internal encoding in -E
- option.
+ * vm.c (rb_vm_make_env_object, rb_vm_get_sourceline): export as a
+ workaround for ruby-debug19 for the time being.
+ [ruby-core:38972] [Bug #5193]
-Wed Oct 8 00:03:39 2008 Tadayoshi Funaba <tadf@dotrb.org>
+Fri Sep 16 01:08:19 2011 NAKAMURA Usaku <usa@ruby-lang.org>
- * lib/date.rb (today,now): should produce own instances.
- [ruby-talk:317020]
+ * NEWS: cosmetic changes.
-Tue Oct 7 16:43:51 2008 NARUSE, Yui <naruse@ruby-lang.org>
+Wed Sep 14 12:39:00 2011 Kenta Murata <mrkn@mrkn.jp>
- * ext/json/lib/json/pure/generator.rb (utf8_to_json):
- force_encoding before gsub.
+ * configure.in: do not use gcc-4.2 as the default compiler.
-Tue Oct 7 16:35:41 2008 NARUSE, Yui <naruse@ruby-lang.org>
+ * NEWS: describe the issue about Xcode.
- * ext/json/lib/json/pure/generator.rb (utf8_to_json):
- downcase the result of Unicode escape.
+Wed Sep 14 11:46:30 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
-Mon Oct 6 16:44:52 2008 Takeyuki FUJIOKA <xibbar@ruby-lang.org>
+ * thread.c (rb_fd_rcopy): added an argument guard.
+ Patch by NAKAMURA Usaku. [Bug #5306] [ruby-core:39435]
- * lib/cgi/core.rb (CGI::QueryExtension::initialize_query): fix the
- condition.
+Tue Sep 13 09:28:58 2011 Koichi Sasada <ko1@atdot.net>
- * test/cgi/test_cgi_core.rb: bug fix encoding.
- thanks to TAKANO Mitsuhiro <takano32 at jus.or.jp> .
+ * NEWS: wrote about rb_reserved_fd_p() and objspace.
- * test/cgi/test_cgi_multipart.rb: temporary comment in.
+Mon Sep 12 20:47:52 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Mon Oct 6 15:22:08 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * thread.c (rb_thread_select): fix a typo to initialize efds
+ properly. [Bug #5299] [ruby-core:39380]
- * gc.c (gc_mark_children): ignores T_ZOMBIE.
+Mon Sep 12 20:41:20 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
-Mon Oct 6 12:45:20 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * thread.c (rb_thread_select): fix to ignore an argument
+ modification of rb_thread_fd_select().
+ based on a patch by Eric Wong. [Bug #5306] [ruby-core:39435]
+ * thread.c (rb_fd_rcopy): New. for reverse fd copy.
- * test/ruby/test_module.rb (TestModule#_wrap_assertion): add
- definition. is this really needed?
+ * test/-ext-/old_thread_select/test_old_thread_select.rb
+ (test_old_select_false_positive): test for bug5306.
- * test/ruby/test_module.rb (TestModule#test_mod_constants): should
- not depend on global Module constants.
+ * ext/-test-/old_thread_select/old_thread_select.c (fdset2array):
+ New. convert fdsets to array.
+ * ext/-test-/old_thread_select/old_thread_select.c (old_thread_select):
+ return 'read', 'write', 'except' argument of rb_thread_select()
+ to ruby script.
-Mon Oct 6 12:38:36 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+Tue Sep 6 13:15:44 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * lib/test/unit/assertions.rb (Test::Assertions#assert_nothing_raised):
- should take optional message argument.
+ * encoding.c (load_encoding): predefined encoding names are safe.
+ [ruby-dev:44469] [Bug #5279]
-Mon Oct 6 12:18:23 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * transcode.c (load_transcoder_entry): ditto.
- * string.c (rb_str_comparable): string comparison should be
- transitive. [ruby-dev:36484]
+Fri Sep 9 16:02:04 2011 NARUSE, Yui <naruse@ruby-lang.org>
- * test/ruby/test_m17n_comb.rb (TestM17NComb#test_str_eq): test
- updated.
+ * insns.def (concatstrings): don't use initial ASCII-8BIT string.
+ [ruby-core:38635] [Bug #5126]
-Mon Oct 6 09:00:58 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+Thu Sep 8 21:17:36 2011 NARUSE, Yui <naruse@ruby-lang.org>
- * test/bigdecimal/test_bigdecimal.rb (test_sqrt_bigdecimal): test
- updated. a patch from TAKANO Mitsuhiro <takano32 at jus.or.jp>
- in [ruby-dev:36669].
+ * ext/nkf/nkf-utf8/nkf.c: import nkf 2.1.2 (be9c280)
+ Bump version number/release date only.
-Sun Oct 5 23:34:28 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Wed Sep 7 23:42:45 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * lib/mkmf.rb ($config_h): now always defines for old libraries.
+ * io.c (argf_next_argv): open in default text mode.
+ [ruby-core:39234] [Bug #5268]
-Sun Oct 5 23:06:55 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Mon Sep 5 15:06:55 2011 NARUSE, Yui <naruse@ruby-lang.org>
- * vm_method.c (rb_mod_modfunc): method undefined in included module
- may not have nd_body. [ruby-core:18738]
+ * test/rubygems/test_gem_security.rb
+ (test_class_build_self_signed_cert): reset opt[:trust_dir] to apply
+ temporary Gem.user_home.
-Sun Oct 5 21:28:58 2008 Tadayoshi Funaba <tadf@dotrb.org>
+Sun Sep 4 00:56:58 2011 Kazuki Tsujimoto <kazuki@callcc.net>
- * lib/rational.rb: resolved conflicts of aliases.
+ * backport r33177 from trunk.
- * lib/mathn.rb: avoided some warnings.
+ * test/ruby/test_fiber.rb (TestFiber#test_no_valid_cfp):
+ add a test. Unlike TestThread#test_no_valid_cfp,
+ this test succeeds even if win32ole is required (see r33153).
-Sun Oct 5 18:51:50 2008 Tanaka Akira <akr@fsij.org>
+Fri Sep 2 21:11:16 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * lib/open-uri.rb: remove debug code introduced by previous change.
+ * io.c (validate_enc_binmode, prep_stdio): default to text mode on
+ dosish platforms. [ruby-core:38822] [Bug #5164]
-Sun Oct 5 17:49:35 2008 NARUSE, Yui <naruse@ruby-lang.org>
+ * transcode.c (rb_econv_prepare_options): keep default ecflags
+ unchanged if no options.
- * lib/open-uri.rb (OpenURI.open_uri): set encoding to strio.
+Fri Sep 2 14:36:47 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Sun Oct 5 17:39:21 2008 NARUSE, Yui <naruse@ruby-lang.org>
+ * vm_insnhelper.c (vm_search_const_defined_class): search
+ ancestors only when global scope. [ruby-core:39227] [Bug #5264]
- * ext/stringio/stringio.c (strio_set_encoding): defined for
- StringIO#set_encoding.
+Fri Sep 2 09:58:08 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Sun Oct 5 11:24:42 2008 NARUSE, Yui <naruse@ruby-lang.org>
+ * parse.y (parser_tokadd_string, parser_yylex): ignore a backslash
+ which prefixes an non-ascii character, which has no escape
+ syntax. [ruby-core:39222] [Ruby 1.9 - Bug #5262]
- * eval.c: come back definition of environ.
+Thu Sep 1 17:31:22 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Sun Oct 5 09:19:49 2008 NARUSE, Yui <naruse@ruby-lang.org>
+ * insns.def (defineclass), vm_insnhelper.c (vm_get_cvar_base): see
+ also inherited constants for classes without superclass and
+ modules. [ruby-core:37698] [Bug #3423]
- * ext/nkf/nkf-utf8/utf8tbl.c: update table.
+Thu Sep 1 14:11:16 2011 NAKAMURA Usaku <usa@ruby-lang.org>
-Sat Oct 4 22:50:14 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+ * test/ruby/test_thread.rb (TestThread#test_no_valid_cfp): skip when
+ win32ole is required. in such case, win32ole redefines
+ Thread#initialize, and the block argument becomes to be not the top
+ of the thread, then this testcase always fails.
- * dln.c: Ruby no longer supports VMS.
+Wed Aug 31 16:02:45 2011 NARUSE, Yui <naruse@ruby-lang.org>
- * error.c: ditto.
+ * ext/json: Merge json gem v1.5.4 (3dab4c5a6a97fac03dac).
- * eval.c: ditto.
+Wed Aug 31 13:19:31 2011 Marc-Andre Lafortune <ruby-core@marc-andre.ca>
- * eval_intern.h: ditto.
+ * numeric.c (flo_round): Avoid overflow by optimizing for trivial
+ cases
+ [Bug #5227]
- * include/ruby/defines.h: ditto.
+Wed Aug 31 06:45:32 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * include/ruby/ruby.h: ditto.
+ * configure.in: fix r32835. $withval can't be used outer AC_ARG_WITH().
- * io.c: ditto.
+Wed Aug 31 05:29:03 2011 NAKAMURA Usaku <usa@ruby-lang.org>
- * process.c: ditto.
+ * win32/win32.c (rb_w32_select_with_thread): and my typo. we all must
+ be more careful.
- * ruby.c: ditto.
+Wed Aug 31 05:28:45 2011 NAKAMURA Usaku <usa@ruby-lang.org>
- * vms/config.h: removed.
+ * thread.c (rb_thread_select): critical typo in r33117.
- * vms/vms.h: ditto.
+Wed Aug 31 05:28:26 2011 NAKAMURA Usaku <usa@ruby-lang.org>
- * vms/vmsruby_private.c: ditto.
+ * test/-ext-/old_thread_select/test_old_thread_select.rb
+ (TestOldThreadSelect#test_old_select_read_timeout): if the machine
+ is fast enough, the time used by code around IO.select may be smaller
+ than Time implement threshold.
- * vms/vmsruby_private.h: ditto.
+Wed Aug 31 05:27:59 2011 NAKAMURA Usaku <usa@ruby-lang.org>
-Sat Oct 4 22:44:23 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+ * ext/-test-/old_thread_select/old_thread_select.c (old_thread_select):
+ typo.
- * dln.c: Ruby no longer supports Windows CE.
+ * test/-ext-/old_thread_select/test_old_thread_select.rb
+ (TestOldThreadSelect#test_old_select_signal_safe): use SIGINT instead
+ of SIGUSR1 because the former is general and the latter is platform
+ dependent.
- * eval.c: ditto.
+Wed Aug 31 05:26:30 2011 NAKAMURA Usaku <usa@ruby-lang.org>
- * include/ruby/defines.h: ditto.
+ * win32/win32.c, include/ruby/intern.h (rb_w32_fd_copy): implement
+ for rb_thread_select() in thread.c. the use of rb_fd_copy() is
+ introduced in r33117.
+ [Bug #5229] [ruby-core:39102]
- * include/ruby/win32.h: ditto.
+ * thread.c (rb_thread_select): must call rb_fd_init() before using
+ rb_fdset_t. see the implementations of rb_fd_init()s if you want to
+ know the reason.
- * ruby.c: ditto.
+Tue Aug 30 11:25:21 2011 NARUSE, Yui <naruse@ruby-lang.org>
- * strftime.c: ditto.
+ * ext/json: Merge json gem 1.5.4+ (2149f4185c598fb97db1).
+ [Bug #5173] [ruby-core:38866]
- * win32/Makefile.sub: ditto.
+Tue Aug 30 09:53:59 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * win32/win32.c: ditto.
+ * cont.c (fiber_entry): fix stack allocation failure on Debian
+ GNU/kFreeBSD.
+ Patch by Lucas Nussbaum <lucas at lucas-nussbaum dot net>.
+ [Bug #5241] [ruby-core:39147]
- * ext/tk/extconf.rb: ditto.
+Tue Aug 30 09:52:29 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * lib/fileutils.rb: ditto.
+ * backport r33117 from trunk.
- * test/fileutils/test_fileutils.rb: ditto.
+ * thread.c (rb_thread_select): rewrite by using
+ rb_thread_fd_select(). old one is EINTR unsafe.
+ Patch by Eric Wong. [Bug #5229] [ruby-core:39102]
- * wince/*: removed.
+ * test/-ext-/old_thread_select/test_old_thread_select.rb:
+ a testcase for rb_thread_select().
+ * ext/-test-/old_thread_select/old_thread_select.c: ditto.
+ * ext/-test-/old_thread_select/depend: ditto.
+ * ext/-test-/old_thread_select/extconf.rb: ditto.
-Sat Oct 4 22:35:06 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+Tue Aug 30 09:16:17 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * dln.c: Ruby no longer supports MacOS 9 or before.
+ * configure.in: fix a build failure on GNU Hurd.
+ Patch by Samuel Thibault <sthibault at debian dot org>. Thank you!
+ [Bug #5250] [ruby-core:39185]
- * eval.c: ditto.
+Sun Aug 28 15:38:17 2011 CHIKANAGA Tomoyuki <nagachika00@gmail.com>
- * eval_intern.h: ditto.
+ * backport r33106 from trunk.
- * ext/extmk.rb: ditto.
+ * ext/date/date_parse.c (date_zone_to_diff): keep a temporary string
+ stored in variable while the contents buffer is beeing used.
- * ext/tk/sample/tkextlib/treectrl/demo.rb: ditto.
+ * ext/date/date_parse.c (date_zone_to_diff): get rid of out of bounds
+ memory read. [ruby-dev:44409] [Bug #5213]
- * ext/tk/stubs.c: ditto.
+Sun Aug 28 05:29:50 2011 Ryan Davis <ryand-ruby@zenspider.com>
- * file.c: ditto.
+ * backport r33102 from trunk.
- * hash.c: ditto.
+ * lib/minitest/*: Imported minitest 2.5.1 (r6596)
+ * test/minitest/*: ditto
- * include/ruby/defines.h: ditto.
+Sat Aug 27 20:54:54 2011 Kazuki Tsujimoto <kazuki@callcc.net>
- * ruby.c: ditto.
+ * backport r33099 from trunk.
- * signal.c: ditto.
+ * vm.c (rb_vm_rewrite_dfp_in_errinfo): change return type
+ to suppress a warning.
* vm_core.h: ditto.
-Sat Oct 4 22:30:28 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
-
- * dln.c: Ruby no longer supports MS-DOS.
+Sat Aug 27 19:03:44 2011 Kazuki Tsujimoto <kazuki@callcc.net>
- * ext/sdbm/_sdbm.c: ditto.
+ * backport r33096 from trunk.
- * ext/sdbm/sdbm.h: ditto.
+ * proc.c (proc_new): force to rewrite errinfo when calling Proc.new in ensure.
+ [Bug #5234] [ruby-core:39125]
- * gc.c: ditto.
+ * vm.c (rb_vm_rewrite_dfp_in_errinfo): new function.
- * hash.c: ditto.
-
- * include/ruby/defines.h: ditto.
-
- * include/ruby/util.h: ditto.
-
- * io.c: ditto.
-
- * process.c: ditto.
-
- * ruby.c: ditto.
-
- * strftime.c: ditto.
-
- * util.c: ditto.
-
-Sat Oct 4 22:14:15 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
-
- * djgpp/GNUmakefile.in: removed. Ruby no longer supports djgpp.
-
- * djgpp/README.djgpp: ditto.
-
- * djgpp/config.hin: ditto.
-
- * djgpp/config.sed: ditto.
-
- * djgpp/configure.bat: ditto.
-
- * djgpp/mkver.sed: ditto.
-
- * ext/Setup.dj: ditto.
-
- * dln.c: removed djgpp supports.
-
- * file.c: ditto.
-
- * gc.c: ditto.
-
- * io.c: ditto.
-
- * process.c: ditto.
-
- * ruby.c: ditto.
-
- * signal.c: ditto.
-
- * util.c: ditto.
+ * vm.c (vm_make_env_each): changed accordingly.
* vm_core.h: ditto.
- * lib/fileutils.rb: ditto.
-
- * lib/mkmf.rb: ditto.
-
- * ext/socket/socket.c: ditto.
-
- * test/fileutils/test_fileutils.rb: ditto.
-
- * test/ruby/test_env.rb: ditto.
-
- * test/ruby/test_path.rb: ditto.
-
-Sat Oct 4 21:59:39 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
-
- * x68/_dtos18.c: removed. Ruby no longer supports human68k.
-
- * x68/_round.c: ditto.
-
- * x68/fconvert.c: ditto.
-
- * x68/select.c: ditto.
-
- * ext/Setup.x68: ditto.
-
- * missing/x68.c: ditto.
-
- * dln.c (dln_find_exe_r): removed human68k supports.
- (dln_find_1): ditto.
-
- * lib/mkmf.rb: ditto.
-
- * ext/extmk.rb (Init_ext): ditto.
-
- * ext/socket/socket.c (init_sock): ditto.
-
- * gc.c (GC_MALLOC_LIMIT): ditto.
- (rb_setjmp, rb_jmpbuf): ditto.
- (mark_current_machine_context): ditto.
-
- * include/ruby/defines.h (PATH_ENV): ditto.
-
- * io.c: ditto.
-
- * process.c: ditto.
-
- * ruby.c: ditto.
-
- * test/ruby/test_env.rb: ditto.
-
- * test/ruby/test_path.rb: ditto.
-
- * LEGAL
-
-Sat Oct 4 19:02:36 2008 Tadayoshi Funaba <tadf@dotrb.org>
-
- * lib/date/format.rb: no need to require the "lib/rational.rb".
-
-Sat Oct 4 19:02:59 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * ext/nkf/nkf.c (rb_nkf_enc_get): don't replicate encoding.
- [ruby-dev:36575]
-
-Sat Oct 4 18:47:22 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * ext/stringio/stringio.c (strio_external_encoding): defined.
-
- * ext/stringio/stringio.c (strio_internal_encoding): defined.
-
- * ext/stringio/stringio.c (Init_stringio): define above.
-
-Sat Oct 4 15:52:17 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
-
- * test/mini/test_mini_test.rb: recovered.
- It had been temporarily removed at r19645.
-
- * test/mini/test_mini_mock.rb: ditto.
-
- * test/mini/test_mini_spec.rb: ditto.
-
- * lib/test/**/*: replaced by miniunit.
- miniunit had been temporarily reverted at r19643 but
- now recovered.
-
-Sat Oct 4 15:33:26 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
-
- * common.mk (gdb-ruby): new target. it runs ruby under controlled by
- gdb.
-
- * common.mk (dist): accepts RELNAME variable as the second argument of
- make-snapshot.rb.
-
-Sat Oct 4 12:17:46 2008 Keiju Ishitsuka <keiju@ruby-lang.org>
-
- * lib/irb/irb/ext/save-history.rb: change load_history using File.expand_path. see [ruby-dev:36660]. Thanks Kouhei Sutou.
- * lib/irb/irb/context.rb: convert string Symbol of instance variable names in IRB:Context#inspect.
-
-Fri Oct 3 22:43:04 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
-
- * ext/dl/extconf.rb ($distcleanfiles): added callback-?.c into
- the distclean list.
-
-Fri Oct 3 19:33:21 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * ext/json/lib/json/pure.rb (module JSON): remove Iconv dependency.
-
- * ext/json/lib/json/pure/generator.rb (utf8_to_json): process as
- binary and remove Iconv dependency.
-
- * ext/json/lib/json/pure/parser.rb (parse_string): ditto.
-
-Fri Oct 3 14:04:05 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * win32/{configure.bat,setup.mak,Makefile.sub): add --program-prefix
- configure option support.
-
-Thu Oct 2 21:22:43 2008 Takeyuki FUJIOKA <xibbar@ruby-lang.org>
-
- * lib/cgi/core.rb (CGI::QueryExtension): delete MorphingBody
- and replace like as 1.8's in multipart reading.
- see [ruby-dev:36443],
- reference from CGIAlt http://cgialt.rubyforge.org/
-
- * test/cgi/test_cgi_multipart.rb : fixed multipart test.
-
-Thu Oct 2 20:46:17 2008 Tanaka Akira <akr@fsij.org>
-
- * string.c (rb_str_sub_bang): fix coderange.
-
-Wed Oct 1 22:54:09 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * lib/rexml/parsers/lightparser.rb, lib/debug.rb: remove unused when
- clauses.
-
-Wed Oct 1 22:43:59 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * lib/xmlrpc, lib/rexml, test/ruby/test_array.rb,
- test/ruby/test_unicode_escape.rb, test/scanf/test_scanf.rb,
- test/rss/rss-assertions.rb: fix indentation to remove warning.
-
-Wed Oct 1 21:36:35 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * gc.c (rb_gc_call_finalizer_at_exit): finalize deferred IO and Data.
-
- * gc.c (rb_gc_call_finalizer_at_exit): defers IO finalization.
- [ruby-dev:36646]
-
-Wed Oct 1 19:11:48 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * marshal.c (marshal_dump): fixed for check_dump_arg.
-
- * marshal.c (marshal_dump): initializes dump_arg before any funcall.
- [ruby-dev:36648]
-
-Wed Oct 1 00:54:32 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * string.c (rb_str_split_m): should use rb_str_subseq() which use
- offset and length by bytes. [ruby-dev:36641]
-
-Wed Oct 1 00:29:48 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * test/ruby/test_settracefunc.rb (test_call, test_class): line number
- was changed at r19592.
-
-Wed Oct 1 00:20:38 2008 Tanaka Akira <akr@fsij.org>
-
- * process.c (check_exec_redirect): don't depend on rb_stdout and
- rb_stderr.
-
-Tue Sep 30 23:06:58 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
-
- * test/mini/test_mini_test.rb: removed.
- Temporarily removed the tests for miniunit because of
- they depend on the miniunit version of test/unit,
- where test/unit was temporarily reverted to the state
- before importing miniunit.
-
- * test/mini/test_mini_mock.rb: ditto.
-
- * test/mini/test_mini_spec.rb: ditto.
-
-Tue Sep 30 23:04:30 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
-
- * lib/test/**/*: recovered.
- Temporarily reverts the changes of lib/test/unit/* in
- r19502 and r19501, in order to release 1.9.0-5.
-
-Tue Sep 30 23:00:05 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
-
- * lib/test/unit.rb: removed.
- Temporarily reverts the changes of lib/test/unit/* in
- r19543, r19534 and r19503, in order to release 1.9.0-5.
-
- * lib/test/unit/assertions.rb: ditto.
-
- * lib/test/unit/deprecate.rb: ditto.
-
- * lib/test/unit/error.rb: ditto.
-
- * lib/test/unit/testcase.rb: ditto.
-
-Tue Sep 30 20:17:26 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * io.c (rb_io_extract_modeenc): should honor value of the
- textmode: and binmode: options.
-
-Tue Sep 30 17:04:59 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * test/bigdecimal/test_bigdecimal.rb (test_sqrt_bigdecimal): wrong
- precision specification. a patch from TAKANO Mitsuhiro
- <takano32 at jus.or.jp> in [ruby-dev:36634].
-
-Tue Sep 30 16:53:55 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * parse.y (stmt): returns non zero. [ruby-dev:36633]
-
-Tue Sep 30 16:52:38 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * sprintf.c (rb_str_format): add %<name>s style named argument
- support. a patch from Yusuke Endoh <mame at tsg.ne.jp>
- in [ruby-dev:35851].
-
- * sprintf.c (rb_str_format): add gettext style named format
- (%{name}) support. inspired by [ruby-dev:35852].
-
- * sprintf.c (GETNAMEARG): should raise KeyError exception when no
- named argument found.
-
- * hash.c (rb_hash_fetch): export fetch function.
-
-Tue Sep 30 13:19:01 2008 Eric Hodel <drbrain@segment7.net>
-
- * test/rubygems/test_gem_installer.rb: remove extra call to setup to
- fix ENV['HOME'] pollution.
-
-Tue Sep 30 13:04:11 2008 Ryan Davis <ryand-ruby@zenspider.com>
-
- * lib/mini/test.rb: Updated to 1.3.0 r4257.
- * test/mini/*: added from r4257.
-
-Tue Sep 30 07:46:07 2008 Eric Hodel <drbrain@segment7.net>
-
- * test/rdoc/test_rdoc_markup_attribute_manager.rb: Test with clean
- SPECIALS.
- * test/rubygems/gemutilities.rb: Restore ENV['HOME'] after test.
- * test/runner.rb: Pass -n argument down to miniunit.
-
-Tue Sep 30 01:02:55 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * parse.y (token_info_push, token_info_pop): do nothing for evaled
- source.
-
-Tue Sep 30 00:47:43 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/nkf/nkf-utf8/nkf.c: constified.
-
-Mon Sep 29 23:32:25 2008 Tanaka Akira <akr@fsij.org>
-
- * string.c (rb_str_subseq): don't use rb_str_drop_bytes for short
- string.
-
-Mon Sep 29 22:54:29 2008 Tadayoshi Funaba <tadf@dotrb.org>
-
- * lib/mathn.rb: added String#to_[rc]. moved def_canon.
-
-Mon Sep 29 20:41:19 2008 Tanaka Akira <akr@fsij.org>
-
- * string.c (rb_str_subseq): use rb_str_drop_bytes if possible.
-
-Mon Sep 29 20:22:20 2008 Tadayoshi Funaba <tadf@dotrb.org>
-
- * test/date/*.rb: imported additional tests and some adjustments.
-
-Mon Sep 29 20:13:05 2008 Masaki Suketa <masaki.suketa@nifty.ne.jp>
-
- * ext/win32ole/win32ole.c (fev_initialize): initialization
- handler instance variable.
-
- * test/win32ole/test_win32ole_typelib.rb (test_s_typelibs):
- fix the warning of shadowing outer local variable.
-
-Mon Sep 29 19:59:00 2008 Masaki Suketa <masaki.suketa@nifty.ne.jp>
-
- * ext/win32ole/win32ole.c (rescue_callback): use rb_write_error
- instead of fprintf.
-
-Mon Sep 29 01:51:54 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * test/rdoc/test_rdoc_info_formatting.rb (teardown): delete tmpdir for
- test.
-
-Mon Sep 29 00:30:20 2008 Takeyuki Fujioka <xibbar@ruby-lang.org>
-
- * lib/cgi/html.rb (CGI::HtmlExtension::{radio_group, checkbox_group}):
- can specify the false as checked or selected value.
- [ruby-core:18306], [ruby-core:18307]
-
- * test/cgi/test_cgi_tag_helper.rb: add a test.
-
-Sun Sep 28 23:08:38 2008 Takeyuki Fujioka <xibbar@ruby-lang.org>
-
- * lib/cgi/html.rb (CGI::HtmlExtension::popup_menu):
- fix the calls #bytesize on array parameters. [ruby-core:18919]
-
-Sun Sep 28 22:44:26 2008 Takeyuki Fujioka <xibbar@ruby-lang.org>
-
- * lib/cgi/core.rb (CGI::parse): ignore illegal query params.
- [ruby-dev:36618]
-
-Sun Sep 28 22:05:07 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * compile.c (iseq_set_sequence): check duplicated when clause.
- [ruby-dev:36616]
-
-Sun Sep 28 19:04:03 2008 Tadayoshi Funaba <tadf@dotrb.org>
-
- * test/date/*.rb: imported a date test suite ruby 1.9 limited ed.
-
-Sun Sep 28 18:40:49 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/mini/test.rb (MINI_DIR): loaded path is expanded.
-
- * lib/mini/test.rb (assert_match): get rid of confusion of
- ruby-mode.el.
-
-Sun Sep 28 12:36:09 2008 Koichi Sasada <ko1@atdot.net>
-
- * vm_exec.c (vm_exec_core): add an UNLIKELY() hint.
-
- * vm_insnhelper.h (BASIC_OP_UNREDEFINED_P): add a LIKELY() hint.
-
-Sun Sep 28 12:04:18 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * string.c (str_new): sets empty string to coderange 7bit.
- [ruby-core:18993]
-
-Sun Sep 28 09:39:48 2008 Tadayoshi Funaba <tadf@dotrb.org>
-
- * lib/mathn.rb ({Fixnum,Bignum,Float}#**): may produce complex
- value.
-
-Sun Sep 28 09:05:53 2008 James Edward Gray II <jeg2@ruby-lang.org>
-
- * lib/csv/csv.rb: Worked around some minor encoding changes in Ruby
- pointed out by Nobu.
-
-Sun Sep 28 08:37:12 2008 Tadayoshi Funaba <tadf@dotrb.org>
-
- * lib/mathn.rb: a hack to provide canonicalization. This must be
- temporary, but this seems to be not bad for the time being.
-
-Sat Sep 27 06:22:18 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/rake.rb (Module#rake_extension, String#ext, String#pathmap): use
- built-in methods.
-
- * lib/rake.rb (String#pathmap): fixed typo in rdoc.
-
-Sat Sep 27 04:28:41 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * file.c (rmext): preceding dots are not a part of extension.
-
- * file.c (rb_file_s_extname): ditto.
-
-Sat Sep 27 03:15:51 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * vm.c (vm_jump_tag_but_local_jump): exc is not used if val is nil.
-
-Sat Sep 27 03:12:40 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/socket/socket.c (host_str): numeric address should be unsigned.
- [ruby-core:18971]
-
-Fri Sep 26 22:46:58 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * parse.y (primary, brace_block): fix for line number.
-
- * proc.c (rb_proc_location, rb_method_location): new methods
- {Proc,Method,UnboundMethod}#source_location. [ruby-core:18452]
-
-Fri Sep 26 21:36:33 2008 Koichi Sasada <ko1@atdot.net>
-
- * vm_core.h (RUBY_VM_CHECK_INTS_TH): add an UNLIKELY hint.
-
-Fri Sep 26 19:33:36 2008 Tanaka Akira <akr@fsij.org>
-
- * include/ruby/encoding.h (rb_str_encode): renamed from
- rb_str_transcode. [ruby-dev:36593]
- (rb_econv_has_convpath_p): renamed from rb_transcode_convertible.
-
- * transcode.c: follow the renaming.
-
- * io.c: ditto.
-
-Fri Sep 26 19:01:47 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * test/bigdecimal/test_bigdecimal.rb (test_inspect): fixed CPU bit
- size dependent test. pointed out by TAKANO Mitsuhiro <takano32 AT
- jus.or.jp>.
-
-Fri Sep 26 18:57:33 2008 Akinori MUSHA <knu@iDaemons.org>
-
- * test/pathname/test_pathname.rb: Fix use of deprecated methods.
-
-Fri Sep 26 18:39:59 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * common.mk (dist): nothing is needed to run BASERUBY.
-
- * tool/make-snapshot: new option -archname.
-
-Fri Sep 26 18:24:28 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * misc/ruby-mode.el: safe customizable variables.
-
-Fri Sep 26 17:37:18 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
-
- * include/ruby/ruby.h (rb_mPrecision): removed.
- Precision module was temporarily removed at r19430.
-
-Fri Sep 26 17:25:10 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
-
- * common.mk (dist): Changed its dependencies and action.
-
-Fri Sep 26 17:07:04 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
-
- * error.c (Init_syserr): moved to the template.
- (errno_missing): removed. fixed [ruby-dev:35958].
-
- * defs/known_errors.def: added. extracted from Init_syserr.
-
- * templates/known_errors.inc.tmpl: added. Template for Init_syserr.
- c.f. [ruby-dev:35958].
-
- * tools/generic_erb.rb: added. general purpose mapper which maps
- data+template into source code.
-
- * common.mk (error.$(OBJEXT), incs, known_errors.inc):
- Fixed dependencies.
-
-Fri Sep 26 17:02:04 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * thread.c (thlist_signal): clears the woken thread if nothing woke.
-
- * thread.c (rb_barrier_wait): achieves the lock if no thread was
- waiting yet.
-
-Fri Sep 26 12:04:07 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * ext/curses/curses.c: should include <ruby/io.h>.
-
- * ext/io/wait/wait.c: ditto.
-
- * ext/openssl/ossl.h: ditto.
-
-Fri Sep 26 11:34:08 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * variable.c (rb_define_hooked_variable): cast to get rid of compiler
- warnings.
-
-Fri Sep 26 11:05:41 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * transcode.c, include/ruby/encoding.c (rb_transcode_convertible):
- new function. checking the existence of converter.
-
-Fri Sep 26 10:35:50 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * variable.c (global_variable, struct trace_var): made function
- members more strict.
-
-Fri Sep 26 09:55:06 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * include/ruby{io,sig}.h: moved to include/ruby/backward.
-
-Fri Sep 26 09:47:15 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * include/rubysig.h: old macros for backward compatibility.
-
- * thread.c (BLOCKING_REGION): rewritten using helper functions.
-
-Fri Sep 26 03:03:32 2008 Tanaka Akira <akr@fsij.org>
-
- * vm_eval.c (Init_vm_eval): define module_eval, class_eval and eval
- here for rdoc.
-
-Fri Sep 26 00:40:30 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * range.c (range_inspect): fix SEGV for cyclic range object.
- [ruby-core:18835]
-
-Thu Sep 25 23:59:56 2008 Tanaka Akira <akr@fsij.org>
-
- * common.mk: dependency updated.
-
-Thu Sep 25 21:46:48 2008 Tanaka Akira <akr@fsij.org>
-
- * transcode.c (rb_eUndefinedConversionError): renamed from
- rb_eConversionUndefinedError.
- (rb_eConverterNotFoundError): renamed from rb_eNoConverterError.
-
-Thu Sep 25 21:23:08 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * pack.c (pack_pack, pack_unpack): 'm0' format (base64) complies with
- RFC 4648. It adds no line feed when encoding, and raise ArgumentError
- if the encoded string contains non-alphabet (including CR and LF).
-
- * lib/base64.rb: added. This provides encoding/decoding method for
- Base64 in standard RFC 2045, Base64 in standard RFC 4648 and ``Base 64
- Encoding with URL and Filename SafeAlphabet'' in RFC 4648.
-
- * test_pack.c, test/base64/test_base64.rb: add tests for above.
-
-Thu Sep 25 21:00:32 2008 Koichi Sasada <ko1@atdot.net>
-
- * common.mk: fix btest-* rules [ruby-dev:36528].
- and remove obsolete rules.
-
-Thu Sep 25 20:27:54 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
-
- * class.c (rb_make_metaclass): [BUG] Fixed a bus error
- on the case for metaclass of a class which includes a
- module.
-
-Thu Sep 25 19:34:33 2008 Eric Hodel <drbrain@segment7.net>
-
- * test/rubygems/*: Update some new tests to use build_rake_in.
- * test/rubygems/gemutilities.rb: Fix broken merge of rake detection.
-
-Thu Sep 25 19:13:12 2008 Eric Hodel <drbrain@segment7.net>
-
- * lib/rubygems*: Update to RubyGems 1.3.0 r1891.
-
-Thu Sep 25 18:40:42 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
-
- * class.c (rb_make_metaclass): Made class of class of class
- from Class into its own eigenclass. Now meta^(n)-class
- hierarchy regresses infinitely, again.
- (This feature was decided on developer-meeting-20080922.)
-
-Thu Sep 25 16:01:07 2008 Jim Weirich <jim@tardis.local>
-
- * lib/rake.rb: Update rake source to version 0.8.3. This
- version includes some fixes for running Rake on windows.
- (1) better APPDATA/HOMExxx/USERPROFILE integration for
- system rakefiles, (2) Better handling of the :ruby command
- when installed in directory containing spaces.
-
-Thu Sep 25 11:22:51 2008 Eric Hodel <drbrain@segment7.net>
-
- * lib/rdoc*: Update to RDoc 2.2.1 r185.
-
-Thu Sep 25 02:08:47 2008 Tanaka Akira <akr@fsij.org>
-
- * io.c (rb_io_mode_enc): make it static.
-
-Thu Sep 25 01:22:39 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/mini/test.rb (Mini::Assertions#assert_raise): fixed typo.
-
-Wed Sep 24 23:39:00 2008 Takeyuki Fujioka <xibbar@ruby-lang.org>
-
- * test/cgi/test_cgi_multipart.rb : revert last change.
- ( deprecated is assert_raises. )
- * test/cgi/test_cgi_core.rb : ditto.
- * test/cgi/test_cgi_header.rb : ditto.
-
-Wed Sep 24 23:12:49 2008 Takeyuki Fujioka <xibbar@ruby-lang.org>
-
- * lib/cgi/core.rb (CGI::new, CGI::{accept_charset,accept_charset=}) :
- accept parameters either in a hash,
- string as a block. add the encoding validation process.
- * test/cgi/test_cgi_core.rb : test for query encoding check.
-
-Wed Sep 24 22:58:18 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * string.c (rb_str_rstrip_bang): raise exception when the encoding of
- the string is dummy.
-
- * string.c (rb_str_rstrip_bang): remove nul characters even if the
- encoding of the string is not single byte optimizable.
- fixed [ruby-core:18844], reported by Michael Selig.
-
-Wed Sep 24 19:01:45 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * string.c (rb_str_rstrip_bang): workaround for VC++8 x64.
-
-Wed Sep 24 17:44:44 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * complex.c (Init_Complex), rational.c (Init_Rational): undefines
- default #allocate methods which call the allocator.
-
-Wed Sep 24 17:02:14 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * complex.c (Init_Complex), rational.c (Init_Rational): ID_ALLOCATOR
- differs from :allocate, and invisible in ruby level.
-
-Wed Sep 24 15:58:52 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * string.c (rb_str_rstrip_bang): removing mixed spaces and nuls at
- the end of strings. [ruby-dev:36497]
-
-Wed Sep 24 15:13:04 2008 Takeyuki Fujioka <xibbar@ruby-lang.org>
-
- * test/cgi/test_cgi_multipart.rb : test for miniunit.
- * test/cgi/test_cgi_core.rb : ditto.
- * test/cgi/test_cgi_header.rb : ditto.
-
-Wed Sep 24 14:38:29 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * lib/tmpdir.rb: setup buffer with nul characters instead of spaces.
- fixed [ruby-dev:36493]
-
-Wed Sep 24 11:18:33 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * io.c (rb_io_s_binread): offset argument was wrongly passed to
- internal IO#read call. [ruby-core:18810]
-
-Wed Sep 24 07:38:23 2008 URABE Shyouhei <shyouhei@ruby-lang.org>
-
- * vm_core.h: ruby/ruby.h should be included at the very first
- place in an entire compilation unit, as it includes
- ruby/config.h
-
-Wed Sep 24 06:41:24 2008 Ryan Davis <ryand-ruby@zenspider.com>
-
- * lib/test/*: removed test/unit.
- * lib/test/*: added miniunit.
- * lib/mini/*: ditto.
-
-Wed Sep 24 04:45:35 2008 Koichi Sasada <ko1@atdot.net>
-
- * include/ruby/node.h, node.h: move node.h from include path.
- This change stop to install node.h because of saving ABI
- (node.h will be changed. Extensions should not depends on
- this file).
-
- * blockinlining.c, class.c, compile.c, debug.h, enum.c,
- gc.c, iseq.c, parse.y, ruby.c, signal.c, variable.c,
- vm.c, vm_core.h, vm_dump.c: ditto.
-
- * ext/ripper/depend: ditto.
-
-Wed Sep 24 04:09:13 2008 Koichi Sasada <ko1@atdot.net>
-
- * vm_core.h: remove unused frame values.
-
-Wed Sep 24 04:07:07 2008 Koichi Sasada <ko1@atdot.net>
-
- * signal.c (signal_exec): execute rb_eval_cmd() directly.
-
-Wed Sep 24 03:08:58 2008 Eric Hodel <drbrain@segment7.net>
-
- * lib/uri/mailto.rb: fix indentation.
- * lib/uri/generic.rb: ditto.
- * lib/yaml.rb: ditto.
- * lib/uri/cgi/core.rb: fix indentation and ambiguous argument warning.
-
-Tue Sep 23 23:39:25 2008 James Edward Gray II <jeg2@ruby-lang.org>
-
- * lib/csv/csv.rb: Improved the idea of whitespace and word characters used
- in substitutions during header conversion as suggested by Michael Selig.
-
-Tue Sep 23 21:50:53 2008 Tanaka Akira <akr@fsij.org>
-
- * io.c (io_binwrite): allocate wbuf if nosync.
-
-Tue Sep 23 21:45:02 2008 Tanaka Akira <akr@fsij.org>
-
- * io.c (copy_stream_body): use io_binwrite instead of io_fwrite.
-
-Tue Sep 23 21:31:16 2008 Tadayoshi Funaba <tadf@dotrb.org>
-
- * test/ruby/test_rational2.rb: updated.
-
- * test/ruby/test_complex2.rb: added.
-
- * test/ruby/test_complexrational.rb: added.
-
-Tue Sep 23 21:26:32 2008 Tanaka Akira <akr@fsij.org>
-
- * string.c (rb_str_casecmp): make the ordering consistent with
- String#<=>.
-
-Tue Sep 23 20:52:25 2008 Tanaka Akira <akr@fsij.org>
-
- * io.c (io_binwrite): add nosync argument.
- (do_writeconv): extracted from io_fwrite.
- (io_fwrite): add nosync argument. use do_writeconv.
- (io_write): add nosync argument.
- (io_write_m): new function for IO#write.
- (rb_p): don't append record separator.
-
-Tue Sep 23 20:24:41 2008 Koichi Sasada <ko1@atdot.net>
-
- * signal.c (signal_exec): fix to use rb_proc_call().
-
-Tue Sep 23 20:06:46 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/rexml/formatters/pretty.rb (REXML::Formatters::Pretty#wrap):
- abandon wrapping if the line contains no space. [ruby-dev:36045]
-
-Tue Sep 23 19:38:03 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * win32/win32.c (subtract): check tv_sec. reported by ko1.
-
-Tue Sep 23 19:21:03 2008 Tadayoshi Funaba <tadf@dotrb.org>
-
- * complex.c (nucomp_s_canonicalize_internal): does no apply
- canonicalization rule anymore.
-
- * rational.c (nurat_s_canonicalize_internal(_no_reduce)?): ditto.
-
- * complex.c: removed class method new! and new.
-
- * rational.c: ditto.
-
-Tue Sep 23 19:20:59 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * io.c (rb_io_s_binread): a new method to read binary chunk from a
- file. [ruby-core:18674]
-
- * io.c (open_key_args): wrong permission specified for read-open.
-
-Tue Sep 23 18:24:34 2008 Tanaka Akira <akr@fsij.org>
-
- * hash.c (rb_obj_is_proc): declaration moved for rdoc.
-
-Tue Sep 23 18:07:55 2008 Koichi Sasada <ko1@atdot.net>
-
- * common.mk (io.o): remove dependency for vm_core.h.
-
-Tue Sep 23 17:56:44 2008 Koichi Sasada <ko1@atdot.net>
-
- * thread.c (rb_thread_blocking_region): fix typo in a document.
-
-Tue Sep 23 17:50:35 2008 Koichi Sasada <ko1@atdot.net>
-
- * thread.c (rb_thread_blocking_region): write a document.
-
-Tue Sep 23 17:14:31 2008 Koichi Sasada <ko1@atdot.net>
-
- * thread.c, include/ruby/intern.h (rb_thread_interrupted): added.
-
- * io.c: use VALUE of thead instead of rb_tread_t to check interrupts.
-
-Tue Sep 23 17:05:14 2008 Koichi Sasada <ko1@atdot.net>
-
- * class.c, vm_core.h: move decl of rb_iseq_clone() to class.c.
-
-Tue Sep 23 17:02:47 2008 Tanaka Akira <akr@fsij.org>
-
- * debug.h (ruby_set_debug_option): declared.
-
- * main.c: include debug.h.
-
- * common.mk (main.$(OBJEXT)): dependency updated.
-
-Tue Sep 23 16:59:45 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * hash.c (ENVMATCH, ENVNMATCH): reduced same code.
-
-Tue Sep 23 16:55:11 2008 Koichi Sasada <ko1@atdot.net>
-
- * ruby.h: fix comment and rename macro HAVE_RUBY_MVM_H to
- HAVE_RUBY_VM_H.
-
-Tue Sep 23 16:41:31 2008 Koichi Sasada <ko1@atdot.net>
-
- * include/ruby/node.h, vm_core.h: move definition of
- RUBY_VM_METHOD_NODE to node.h.
-
- * class.c, common.mk: remove useless inclusion.
-
- * compile.h, iseq.h, vm_core.h: rename compile.h to iseq.h.
- move some definitions from vm_core.h to iseq.h.
-
- * compile.c, iseq.c, vm.c: ditto.
-
- * eval.c, compile.c: move some functions for parser
- from eval.c to compile.c.
-
- * eval_intern.h, vm_core.h: move va_init_list() macro to
- vm_core.h.
-
- * iseq.c (rb_iseq_new_top, rb_iseq_first_lineno): added.
-
- * load.c, ruby.c: use rb_iseq_new_top() instead of
- rb_iseq_new() with ISEQ_TYPE_TOP constant directly.
-
- * proc.c: use rb_iseq_first_lineno() instead of accessing
- iseq structure.
-
-Tue Sep 23 16:17:54 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * ext/ripper/eventids2.c (token_to_eventid): supper __ENCODING__
- keyword. [ruby-dev:36478]
-
-Tue Sep 23 15:30:53 2008 Koichi Sasada <ko1@atdot.net>
-
- * common.mk, hash.c: remove unused inclusion.
-
-Tue Sep 23 09:52:07 2008 Koichi Sasada <ko1@atdot.net>
-
- * eval_safe.c, safe.c: rename eval_safe.c to safe.c.
-
- * common.mk, eval.c, safe.c, inits.c: separate safe.c from eval.c and
- make Init_safe().
-
-Tue Sep 23 09:20:00 2008 Koichi Sasada <ko1@atdot.net>
-
- * common.mk: clean up
- - remove blockinlining.$(OBJEXT) to built
- - make ENCODING_H_INCLDUES variable (include/ruby/encoding.h)
- - make VM_CORE_H_INCLUDES variable (vm_core.h)
- - simplify rules.
- - make depends rule to output depend status using gcc -MM.
-
- * include/ruby/mvm.h, include/ruby/vm.h: rename mvm.h to vm.h.
-
- * include/ruby.h: ditto.
-
- * load.c: add inclusion explicitly.
-
- * enumerator.c, object.c, parse.y, thread.c, vm_dump.c:
- remove useless inclusion.
-
- * eval_intern.h: cleanup inclusion.
-
- * vm_core.h: rb_thread_t should be defined in this file.
-
- * vm_evalbody.c, vm_exec.c: rename vm_evalbody.c to vm_exec.c.
-
- * vm.h, vm_exec.h: rename vm.h to vm_exec.h.
-
- * insnhelper.h, vm_insnhelper.h: rename insnhelper.h to vm_insnhelper.h.
-
- * vm.c, vm_insnhelper.c, vm_insnhelper.h:
- - rename vm_eval() to vm_exec_core().
- - rename vm_eval_body() to vm_exec().
- - cleanup include order.
-
- * vm_method.c: fix comment.
-
-Tue Sep 23 09:01:15 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * lib/pathname.rb (each_filename): return Enumerator if no block
- given.
-
- * test/pathname/test_pathname.rb: add a test for above.
-
-Tue Sep 23 08:25:56 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * hash.c (env_aset): allow nil value to remove an entry.
- [ruby-dev:36465]
-
- * test/ruby/test_env.rb (TestEnv#test_aset): test updated.
-
-Tue Sep 23 08:07:07 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * misc/ruby-mode.el (ruby-keyword-end-re): emacs21 support. a
- patch from Hiroshi Moriyama <hiroshi at kvd.biglobe.ne.jp> in
- [ruby-dev:36471].
-
- * misc/ruby-mode.el (ruby-in-ppss-context-p): ditto.
-
- * misc/ruby-mode.el (ruby-here-doc-end-syntax):
-
-Tue Sep 23 02:07:52 2008 TAKAO Kouji <kouji@takao7.net>
-
- * test/readline/test_readline_history.rb
- (Readline::TestHistory#test_each): checked return value.
-
-Tue Sep 23 02:05:34 2008 TAKAO Kouji <kouji@takao7.net>
-
- * ext/readline/readline.c (Init_readline): used remove_history to
- check offset of history if unsupported clear_history.
-
-Mon Sep 22 17:39:25 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/tempfile.rb (Tempfile#open): should return a value from the
- block (if given). [ruby-core:18394]
-
-Mon Sep 22 11:17:51 2008 URABE Shyouhei <shyouhei@ruby-lang.org>
-
- * include/ruby/encoding.h (enum): ISO C forbids comma at end of
- enumerator list
-
-Mon Sep 22 10:15:24 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * LEGAL: updated file names removed and added. [ruby-dev:36426]
-
-Mon Sep 22 02:39:05 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * encoding.c (get_default_external): add description.
-
-Sun Sep 21 21:52:41 2008 Tadayoshi Funaba <tadf@dotrb.org>
-
- * math.c (math_log): should check argc.
-
-Sun Sep 21 21:20:24 2008 Tadayoshi Funaba <tadf@dotrb.org>
-
- * complex.c: added two macros.
-
- * rational.c: ditto.
+ * bootstraptest/test_flow.rb: add tests for above.
-Sun Sep 21 18:06:38 2008 Tadayoshi Funaba <tadf@dotrb.org>
+Sat Aug 27 08:59:12 2011 Eric Hodel <drbrain@segment7.net>
- * complex.c (nucomp_s_convert): checks argc.
+ * NEWS: Update version of rake to 0.9.2.2.
- * rational.c (nurat_s_convert): ditto.
+Sat Aug 27 08:44:58 2011 Eric Hodel <drbrain@segment7.net>
-Sun Sep 21 10:19:04 2008 Tadayoshi Funaba <tadf@dotrb.org>
+ * backport r33087 from trunk
- * complex.c (nucomp_s_canonicalize_internal): checks exactness of
- imag only.
+ * lib/rdoc: Import RDoc 3.9.4. Typo and grammar fixes by Luke Gruber.
+ [Ruby 1.9 - Bug #5203]
- * rational.c (nurat_s_convert): accepts non real value
- (Rational(a,b) as a/b).
+Sat Aug 27 07:53:34 2011 Eric Hodel <drbrain@segment7.net>
- * complex.c (nucomp_s_convert): refined.
+ * backport r33087 from trunk.
-Sun Sep 21 09:37:57 2008 James Edward Gray II <jeg2@ruby-lang.org>
+ * lib/open-uri.rb: Fix indentation of OpenURI::OpenRead#open. Use ++
+ instead of `' for method arguments in open-uri.rb
- * lib/csv/csv.rb: Reworked CSV's parser and generator to be m17n. Data
- is now parsed in the Encoding it is in without need for translation.
- * lib/csv/csv.rb: Improved inspect() messages for better IRb support.
- * lib/csv/csv.rb: Fixed header writing bug reported by Dov Murik.
- * lib/csv/csv.rb: Use custom separators in parsing header Strings as
- suggested by Shmulik Regev.
- * lib/csv/csv.rb: Added a :write_headers option for outputting headers.
- * lib/csv/csv.rb: Handle open() calls in binary mode whenever we can to
- workaround a Windows issue where line-ending translation can cause an
- off-by-one error in seeking back to a non-zero starting position after
- auto-discovery for :row_sep as suggested by Robert Battle.
- * lib/csv/csv.rb: Improved the parser to fail faster when fed some forms
- of invalid CSV that can be detected without reading ahead.
- * lib/csv/csv.rb: Added a :field_size_limit option to control CSV's
- lookahead and prevent the parser from biting off more data than
- it can chew.
- * lib/csv/csv.rb: Added readers for CSV attributes: col_sep(), row_sep(),
- quote_char(), field_size_limit(), converters(), unconverted_fields?(),
- headers(), return_headers?(), write_headers?(), header_converters(),
- skip_blanks?(), and force_quotes?().
- * lib/csv/csv.rb: Cleaned up code syntax to be more inline with
- Ruby 1.9 than 1.8.
+Sat Aug 27 07:22:07 2011 Eric Hodel <drbrain@segment7.net>
-Sun Sep 21 07:43:16 2008 Tadayoshi Funaba <tadf@dotrb.org>
+ * backport r33086 from trunk.
- * complex.c: an instance method image has been removed and
- uses "imag" instead of "image".
+ * ext/pathname/lib/pathname.rb: Fix typos and grammar mistakes. Patch
+ by Luke Gruber. [#5203]
+ * ext/pty/lib/expect.rb: ditto
+ * lib/mathn.rb: ditto
+ * lib/net/http.rb: ditto
+ * lib/open-uri.rb: ditto
+ * lib/ostruct.rb: ditto
+ * lib/tempfile.rb: ditto
+ * lib/thread.rb: ditto
+ * lib/weakref.rb: ditto
+ * sample/webrick/httpproxy.rb: ditto
- * complex.c: two instance method re and im are removed.
+Fri Aug 26 10:10:37 2011 Eric Hodel <drbrain@segment7.net>
- * rational.c: follows the above changes.
+ * backport r33074 from trunk.
- * include/ruby/ruby.h: ditto.
+ * lib/rubygems: Update to RubyGems 1.8.10. Fixes security issue in
+ creating ruby-format gemspecs. Fixes Gem.dir not being at the front
+ of Gem.path to fix uninstall and cleanup commands. Fixes gem
+ uninstall stopping on the first missing gem.
- * gc.c: ditto.
+Wed Aug 24 09:49:10 2011 Koichi Sasada <ko1@atdot.net>
- * lib/cmath.rb: ditto.
+ * backport r33045 from trunk.
- * lib/mathn.rb: ditto.
+ * insns.def (defined): fix to checking class variable.
+ A patch by Magnus Holm <judofyr@gmail.com>. Thanks!
- * lib/complex.rb: ditto. and provides some obsolete methods.
+Fri Aug 26 08:21:10 2011 Aaron Patterson <aaron@tenderlovemaking.com>
-Sun Sep 21 02:48:45 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * ext/json/ext/parser/parse.c: use ruby_xfree().
-
- * ext/json/ext/parser/parse.rl: ditto.
-
- * ext/json/ext/parser/unicode.c: ditto.
-
-Sun Sep 21 02:40:20 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * ext/json: import JSON v 1.1.3.
-
-Sat Sep 20 11:43:08 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * lib/optparse.rb (summarize): separator "" should output new line.
-
-Sat Sep 20 08:07:34 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * parse.y: strings which contain only US-ASCII don't force to have
- US-ASCII encoding. [ruby-dev:36400]
-
-Sat Sep 20 07:59:31 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * re.c (rb_reg_desc): Regexps of ASCII Compatible encoding may
- contain non-ASCII characters. So in that case its encoding
- must keep original encoding.
-
-Sat Sep 20 07:44:56 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * common.mk: prec.c is removed.
-
-Fri Sep 19 22:37:25 2008 Tadayoshi Funaba <tadf@dotrb.org>
-
- * complex.c: uses f_(in)?exact_p macro.
-
- * rational.c: ditto.
-
- * bignum.c (rb_big_pow): bignum**bignum - should calculate without
- rational.
-
- * lib/complex.rb: should override Math module at most once.
-
- * lib/mathn.rb: requires 'cmath' directly.
-
-Fri Sep 19 20:48:06 2008 Yuki Sonoda <yugui@yugui.jp>
-
- * prec.c: removed. Precision will be redesigned and be back again.
- c.f. [ruby-dev:36352].
-
- * common.mk (COMMON_OBJS): removed prec.o.
-
- * inits.c (rb_call_inits): removed Init_Precision.
-
- * numeric.c (Init_Numeric): removed inclusion of Precision.
- removed #induced_from from each class.
-
- * rational.c: ditto.
-
- * ext/bigdecimal/bigdecimal.c: ditto.
-
- * lib/rdoc/known_classes.rb: removed the entry for Precision.
-
- * test/ruby/test_prec.rb: removed.
-
- * test/ruby/test_integer.rb: removed tests for Precision.
-
- * test/ruby/test_fixnum.rb: ditto.
-
- * test/ruby/test_float.rb: ditto.
-
- * test/ruby/test_rational.rb: ditto.
-
- * test/ruby/test_complex.rb: ditto.
-
- * test/bigdecimal/test_bigdecimal.rb: ditto.
-
-Fri Sep 19 19:43:40 2008 Yuki Sonoda <yugui@yugui.jp>
-
- * common.mk : Reverts the changeset 18994.
- Uses the official repository of rubyspec again.
-
-Fri Sep 19 17:41:56 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * configure.in: applied OS/2 support patch from Brendan Oakley
- <gentux2 at gmail.com> in [ruby-core:18707].
-
-Fri Sep 19 09:29:26 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * dln.c: newer BeOS support. a patch from Pete Goodeve
- <pete.goodeve at computer.org> in [ruby-core:18712].
-
-Fri Sep 19 03:41:25 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * ext/nkf/nkf-utf8/nkf.c: fix memory violation. mentioned by mame [ruby-dev:36373]
-
-Fri Sep 19 01:07:36 2008 Tanaka Akira <akr@fsij.org>
-
- * regexec.c (string_cmp_ic): add text_end argument.
- (slow_search): call enclen with real string end.
- (map_search): add text_end argument.
-
-Thu Sep 18 22:54:39 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * ext/openssl/ossl_pkey_ec.c (ossl_ec_key_to_string): comment out
- fragments of unused code.
-
-Thu Sep 18 22:35:03 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * ext/bigdecimal/bigdecimal.c (VpCtoV): 1E1000...000 is interpreted as
- Infinity. [ruby-dev:36159]
-
- * ext/bigdecimal/bigdecimal.c (VpPower): Infinity ** 1 returns
- Infinity instead of NaN. [ruby-dev:36159]
-
- * test/bigdecimal/test_bigdecimal.rb: add tests for above.
-
-Thu Sep 18 22:20:08 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * error.c (Init_Exception): introduce EncodingError which is a
- superclass for all encoding related exception classes,
- e.g. Encoding::CompatibilityError. [ruby-dev:36371]
-
- * transcode.c (Init_transcode): ditto.
-
-Thu Sep 18 21:57:32 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * string.c (rb_str_comparable): make ascii8bit string to be
- compatible with any other encoding.
-
- * string.c (rb_str_cmp): use rb_str_comparable() instead of
- rb_enc_compatible() since <=> is a comparison anyway.
-
-Thu Sep 18 21:37:14 2008 Tanaka Akira <akr@fsij.org>
-
- * grapheme cluster implementation reverted. [ruby-dev:36375]
-
-Thu Sep 18 20:50:36 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/rake.rb (Rake::Application#standard_exception_handling):
- replaced magic numbers for exit status.
-
-Thu Sep 18 20:37:59 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/optparse.rb (OptionParser::ParseError#set_backtrace): omits
- OptionParser internal backtraces unless debug flag is set.
-
-Thu Sep 18 20:02:48 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * lib/uri/common.rb (unescape): skip '%' to make String#hex work
- correctly.
-
-Thu Sep 18 19:51:11 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * bignum.c (big2str_karatsuba): free internal buffer eagerly.
- a patch from TOYOFUKU Chikanobu <nobu_toyofuku at nifty.com>
- in [ruby-dev:36217].
-
- * bignum.c (rb_big2str0): ditto.
-
-Thu Sep 18 19:43:04 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * st.c (new_size): raise RuntimeError when st_table is too big.
- [ruby-dev:36354]
-
-Thu Sep 18 18:23:23 2008 Tanaka Akira <akr@fsij.org>
-
- * transcode.c (enc_arg): must take pointer argument to avoid GC
- problem. StringValueCStr modifies the argument and it should be
- preserved while the string StringValueCStr returns is used.
- Since the string is used by caller, the modified argument should be
- hold by caller. Actually
- GC.stress = true
- def (o=Object.new).to_str()
- "universal"+"_newline"
- end
- "\u3042".encode(o, "")
- causes curious warning:
- rb_define_const: invalid name `' for constant
-
-Thu Sep 18 17:32:44 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * test/ruby/test_variable.rb: add a test for above.
- * transcode.c: add "Error" suffix for Encoding exception classes.
- a patch from Tadashi Saito <shiba at mail2.accsnet.ne.jp> in
- [ruby-dev:36346].
+Thu Aug 25 09:43:16 2011 Eric Hodel <drbrain@segment7.net>
- * encoding.c (Init_Encoding): rename EncodingCompatibilityError to
- Encoding::CompatibilityError. [ruby-dev:36366]
+ * backport r33066 from trunk.
-Thu Sep 18 17:18:35 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * ext/openssl/lib/openssl/bn.rb: Hide copyright info from RDoc.
+ * ext/openssl/lib/openssl/digest.rb: ditto
+ * ext/openssl/lib/openssl/cipher.rb: ditto
- * transcode.c (enc_arg): revert last change. too early exception
- raising.
+Thu Aug 25 09:25:48 2011 Eric Hodel <drbrain@segment7.net>
- * transcode.c (enc_arg): need not to take pointer argument.
+ * backport r33065 from trunk.
-Sun Sep 18 02:22:15 2008 Yusuke Endoh <mame@tsg.ne.jp>
+ * ext/openssl/ossl_digest.c: Document OpenSSL::Digest::digest and add
+ an example to OpenSSL::Digest. Patch by Sylvain Daubert.
+ [Ruby 1.9 - Bug #5166]
+ * ext/openssl/lib/openssl/digest.rb (module OpenSSL): ditto
- * test/bigdecimal/test_bigdecimal.rb: add tests to achieve over 90%
- test coverage of bigdecimal.
+Thu Aug 25 08:19:43 2011 Koichi Sasada <ko1@atdot.net>
-Wed Sep 17 21:50:14 2008 Tanaka Akira <akr@fsij.org>
+ * vm.c (vm_make_env_each): work around to solve Bug #2729.
+ fixes: Bug #2729
+ a patch from Kazuki Tsujimoto <kazuki@callcc.net>
+ This problem is caused by changing dfp (dynamic env pointer)
+ from saved dfp. Saved dfp is pointed env in VM stack. However,
+ the dfp can be moved because VM copies env from VM stack to
+ the heap. At this copying, dfp was also changed. To solve this
+ problem, I'll try to change throw mechanism (not save target dfp,
+ but save target cfp).
- * string.c (rb_str_casecmp): don't use rb_enc_codepoint.
+ * bootstraptest/test_flow.rb: add a test for above.
-Wed Sep 17 19:55:33 2008 Tadayoshi Funaba <tadf@dotrb.org>
+Thu Aug 25 08:04:08 2011 Marc-Andre Lafortune <ruby-core@marc-andre.ca>
- * complex.c (nucomp_s_convert): accepts complex
- value (Complex(a,b) as a+bi).
+ * numeric.c (int_round): Fix Integer#round [ruby-core:39096]
-Wed Sep 17 19:16:47 2008 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
+Thu Aug 25 06:51:08 2011 Aaron Patterson <aaron@tenderlovemaking.com>
- * test/ruby/test_io.rb (TestIO#test_dup): avoid infinite loop.
- [ruby-dev:36326]
+ * ext/psych/lib/psych.rb: Fixing psych version number.
- * test/ruby/test_io.rb (TestIO#test_dup): remove needless open.
- [ruby-dev:35957]
+Thu Aug 25 06:11:35 2011 Aaron Patterson <aaron@tenderlovemaking.com>
-Wed Sep 17 17:44:59 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * ext/psych/lib/psych/nodes/node.rb: default `to_yaml` encoding to be
+ UTF-8.
+ * test/psych/test_encoding.rb: test yaml dump encoding.
- * io.c (rb_io_extract_modeenc): process option mode: and perm: as
- well.
+Wed Aug 24 08:53:06 2011 Eric Hodel <drbrain@segment7.net>
- * io.c (open_key_args): move mode: and perm: related code to
- rb_io_extract_modeenc().
+ * backport r33043 from trunk.
-Wed Sep 17 13:42:59 2008 Takeyuki Fujioka <xibbar@ruby-lang.org>
+ * lib/rdoc: Update to RDoc 3.9.3. Fixes RDoc with `ruby -Ku`. Allows
+ HTTPS image paths to be turned into <img> tags. Prevents special
+ markup inside <tt> from being processed.
- * lib/cgi/html.rb (checkbox_group,radio_group): bug fix
- use size instead of bytesize.
+Wed Aug 24 07:57:43 2011 Eric Hodel <drbrain@segment7.net>
- * test/cgi/test_cgi_tag_helper.rb: test for checkbox_group,radio_group.
+ * backport r33040 from trunk.
-Wed Sep 17 06:58:31 2008 Tadayoshi Funaba <tadf@dotrb.org>
+ * lib/rubygems: Update to RubyGems 1.8.9. Fixes uninstalling multiple
+ gems and gem cleanup.
- * numeric.c: provides predicate real? instead of scalar?.
+Wed Aug 24 06:45:20 2011 Ryan Davis <ryand-ruby@zenspider.com>
- * complex.c: follows the above change.
+ * backport r33036 from trunk.
- * lib/cmath.rb: ditto.
+ * lib/minitest/*: Imported minitest 2.5.0 (r6557)
+ * test/minitest/*: ditto
-Wed Sep 17 01:56:27 2008 Tanaka Akira <akr@fsij.org>
+Tue Aug 23 15:23:56 2011 Eric Hodel <drbrain@segment7.net>
- * test/ruby/test_io_m17n.rb: use __FILE__ instead of /dev/null.
- [ruby-dev:36327]
+ * backport r33027 from trunk.
-Wed Sep 17 01:33:11 2008 Tanaka Akira <akr@fsij.org>
+ * load.c (rb_f_require): Improve documentation of Kernel#require.
+ [Ruby 1.9 - Bug #5210]
- * include/ruby/oniguruma.h (OnigEncodingTypeST): add precise_ret
- argument for mbc_to_code.
- (ONIGENC_MBC_TO_CODE): provide NULL for precise_ret.
- (ONIGENC_MBC_PRECISE_CODEPOINT): defined.
+Tue Aug 23 15:11:48 2011 Hiroshi Nakamura <nahi@ruby-lang.org>
- * include/ruby/encoding.h (rb_enc_mbc_precise_codepoint): defined.
+ * backport r33023 from trunk.
- * regenc.h (onigenc_single_byte_mbc_to_code): precise_ret argument
- added.
- (onigenc_mbn_mbc_to_code): ditto.
+ * ext/zlib/zlib.c (gzfile_read_header): Ensure that each section of
+ gzip header is readable to avoid SEGV.
- * regenc.c (onigenc_single_byte_mbc_to_code): precise_ret argument
- added.
- (onigenc_mbn_mbc_to_code): ditto.
+ * test/zlib/test_zlib.rb (test_corrupted_header): Test it.
- * string.c (count_utf8_lead_bytes_with_word): removed.
- (str_utf8_nth): removed.
- (str_utf8_offset): removed.
- (str_strlen): UTF-8 codepoint oriented optimization removed.
- (rb_str_substr): ditto.
- (enc_succ_char): use rb_enc_mbc_precise_codepoint.
- (enc_pred_char): ditto.
- (rb_str_succ): ditto.
+Mon Aug 22 23:43:33 2011 CHIKANAGA Tomoyuki <nagachika00@gmail.com>
- * encoding.c (rb_enc_ascget): check length with
- rb_enc_mbc_precise_codepoint.
- (rb_enc_codepoint): use rb_enc_mbc_precise_codepoint.
+ * backport r33021 from trunk.
- * regexec.c (string_cmp_ic): add text_end argument.
- (match_at): check end of character after exact string matches.
+ * sprintf.c (rb_str_format): add RB_GC_GUARD to prevent temporary
+ strings from GC.
- * enc/utf_8.c (grapheme_table): defined for extended grapheme cluster
- boundary.
- (grapheme_cmp): defined.
- (get_grapheme_properties): defined.
- (grapheme_boundary_p): defined.
- (MAX_BYTES_LENGTH): defined.
- (comb_char_enc_len): defined.
- (mbc_to_code0): extracted from mbc_to_code.
- (mbc_to_code): use mbc_to_code0.
- (left_adjust_combchar_head): defined.
- (utf_8): use a extended grapheme cluster as a unit.
+Sun Aug 21 17:58:38 2011 Kazuki Tsujimoto <kazuki@callcc.net>
- * enc/unicode.c (onigenc_unicode_mbc_case_fold): use
- ONIGENC_MBC_PRECISE_CODEPOINT to extract codepoints.
- (onigenc_unicode_get_case_fold_codes_by_str): ditto.
+ * backport r33019 from trunk.
- * enc/euc_jp.c (mbc_to_code): follow mbc_to_code field change.
- use onigenc_mbn_mbc_to_code.
+ * iseq.c (iseq_s_disasm): remove variable which is no longer used
+ since r33013.
- * enc/shift_jis.c (mbc_to_code): ditto.
+Sun Aug 21 14:20:58 2011 Naohisa Goto <ngotogenome@gmail.com>
- * enc/emacs_mule.c (mbc_to_code): ditto.
+ * configure.in: use LD_LIBRARY_PATH_64 on 64-bit Solaris.
- * enc/gbk.c (gbk_mbc_to_code): follow mbc_to_code field and
- onigenc_mbn_mbc_to_code change.
+Sun Aug 21 11:13:54 2011 Naohisa Goto <ngotogenome@gmail.com>
- * enc/cp949.c (cp949_mbc_to_code): ditto.
+ * backport r32895 from trunk.
- * enc/big5.c (big5_mbc_to_code): ditto.
+ * ext/fiddle/conversions.c (generic_to_value): ffi_arg and ffi_sarg
+ should be used to handle shorter return value. fix [Bug #3861]
+ [ruby-core:32504]
- * enc/euc_tw.c (euctw_mbc_to_code): ditto.
+ * ext/fiddle/closure.c (callback): ditto
- * enc/euc_kr.c (euckr_mbc_to_code): ditto.
+ * ext/fiddle/conversions.h (fiddle_generic): ditto
- * enc/gb18030.c (gb18030_mbc_to_code): ditto.
+ * ext/fiddle/conversions.c (value_to_generic): char, short and int
+ are strictly distinguished on big-endian CPU, e.g. sparc64.
- * enc/utf_32be.c (utf32be_mbc_to_code): follow mbc_to_code field
- change.
+Sat Aug 20 13:28:32 2011 Kazuki Tsujimoto <kazuki@callcc.net>
- * enc/utf_16be.c (utf16be_mbc_to_code): ditto.
+ * backport r33013 from trunk.
- * enc/utf_32le.c (utf32le_mbc_to_code): ditto.
+ * iseq.c (iseq_s_disasm): fix a bug that may cause SEGV.
- * enc/utf_16le.c (utf16le_mbc_to_code): ditto.
+ * test/ruby/test_method.rb (test_body): add a test for the above change.
-Wed Sep 17 01:17:12 2008 NARUSE, Yui <naruse@ruby-lang.org>
+Sat Aug 20 10:43:24 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * transcode.c (enc_arg): raise exception when unknown encoding is
- given.
+ * ext/stringio/stringio.c (strio_read): return new string if nil
+ is explicitly given as a buffer ([Bug #5207]), otherwise set the
+ encoding. also removed dead code.
-Tue Sep 16 22:23:24 2008 Takeyuki Fujioka <xibbar@ruby-lang.org>
+Fri Aug 19 14:25:51 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * lib/cgi/core.rb (CGI#header): performance improvement.
- From CGIAlt http://cgialt.rubyforge.org/
+ * process.c (proc_spawn_v, proc_spawn): should not wait the
+ spawned process.
- * test/cgi/test_cgi_header.rb: exception class fixed.
+ * process.c (proc_spawn_v): fix missing argument, and try with
+ /bin/sh only if failed with ENOEXEC.
-Tue Sep 16 22:21:33 2008 NARUSE, Yui <naruse@ruby-lang.org>
+Fri Aug 19 14:12:57 2011 Shugo Maeda <shugo@ruby-lang.org>
- * string.c (rb_str_concat): fix rdoc. (codepoint is integer)
+ * backport r33007 from trunk.
- * string.c (rb_str_each_codepoint): use UINT2NUM.
+ * lib/net/imap.rb (idle): raises a Net::IMAP::Error when the
+ connection is closed. based on the patch by Hugo Barauna.
+ [Bug #5190] [ruby-core:38930]
-Tue Sep 16 21:48:55 2008 NARUSE, Yui <naruse@ruby-lang.org>
+Fri Aug 19 11:28:58 2011 Shugo Maeda <shugo@ruby-lang.org>
- * re.c (rb_reg_desc): Regexp#inspect should be US-ASCII.
+ * backport r33001 from trunk.
-Tue Sep 16 21:33:22 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * lib/net/imap.rb (msg_att): accepts extra space before ')'.
+ based on the patch by art lussos. [Bug #5163] [ruby-core:38820]
- * string.c (rb_str_crypt): orthodox crypt() sees only first two bytes
- of salt.
+Wed Aug 17 15:27:00 2011 Kenta Murata <mrkn@mrkn.jp>
-Tue Sep 16 19:18:40 2008 Tadayoshi Funaba <tadf@dotrb.org>
+ * backport r32996 from trunk.
- * complex.c (nucomp_marshal_{dump,load}): preserve instance
- variables.
+ * ext/bigdecimal/bigdecimal.c (cannot_be_coerced_into_BigDecimal):
+ add a new function for raising error when an object cannot coerce
+ into BigDecimal. [Bug #5172]
- * rational.c (nurat_marshal_{dump,load}): ditto.
+ * ext/bigdecimal/bigdecimal.c (BigDecimalValueWithPrec): use
+ cannot_be_coerced_into_BigDecimal function.
-Tue Sep 16 18:28:52 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * ext/bigdecimal/bigdecimal.c (BigMath_s_exp): ditto.
- * io.c (rb_io_gets_m): rdoc updated. limit counts in bytes.
- [ruby-core:18617]
+ * ext/bigdecimal/bigdecimal.c (BigMath_s_log): ditto.
- * io.c (rb_io_readlines, rb_f_gets): ditto.
+ * test/bigdecimal/test_bigdecimal.rb: test for the avobe changes.
- * io.c (rb_io_readbyte): rdoc updated. [ruby-core:18617]
+ * test/bigdecimal/testbase.rb (under_gc_stress): add a new utility
+ method to run tests under the condition of GC.stress = true.
-Tue Sep 16 11:55:16 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+Wed Aug 17 10:16:00 2011 Kenta Murata <mrkn@mrkn.jp>
- * string.c (rb_str_each_codepoint): add new methods, #codepoints
- and #each_codepoint. a patch from Michael Selig
- <michael.selig at fs.com.au> in [ruby-core:18532].
+ * backport r32994 from trunk.
-Tue Sep 16 11:24:44 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * rational.c (nurat_coerce): Rational#coerce should converts itself
+ into Complex if the argument is a Complex with non-zero imaginary
+ part. [Bug #5020] [ruby-dev:44088]
- * ext/socket/mkconstants.rb: add new constants. a patch from
- IWAMURO Motonori <deenheart+ruby at gmail.com> in [ruby-dev:36309].
+ * test/ruby/test_rational.rb (test_coerce): test for the above change.
-Tue Sep 16 09:20:42 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+Wed Aug 17 06:33:19 2011 Martin Bosslet <Martin.Bosslet@googlemail.com>
- * test/ruby/test_io.rb (TestIO#test_dup): exception should be
- raised from IO#dup.
+ * backport r32992 from trunk.
-Tue Sep 16 08:35:29 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * ext/openssl/ossl_x509cert.c: Add class documentation for
+ OpenSSL::X509::Certificate.
- * test/ruby/test_io.rb (TestIO#test_dup): this test might fail if
- there are any garbage IO objects.
+Wed Aug 17 05:02:25 2011 Martin Bosslet <Martin.Bosslet@googlemail.com>
-Tue Sep 16 02:02:56 2008 NARUSE, Yui <naruse@ruby-lang.org>
+ * backport r32987 from trunk.
- * string.c (rb_str_buf_cat_ascii): codepoint is unsigned int.
+ * ext/openssl/ossl_pkey.c: corrected docs, OpenSSL::PKey::DH does
+ *not* support #sign/verify.
- * string.c (rb_str_concat): ditto.
+Tue Aug 16 18:56:54 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * string.c (str_cat_char): ditto.
+ * vm.c (ruby_threadptr_data_type): rename to hide.
+ [ruby-core:38972]
- * string.c (prefix_escape): ditto.
+Tue Aug 16 18:52:08 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Tue Sep 16 01:47:07 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * win32/mkexports.rb (Exports::Mswin#each_export): exclude Init_
+ and _threadptr_ functions, as well as mingw.
- * string.c (single_byte_optimizable): make function inline. based
- on a patch from Michael Selig <michael.selig at fs.com.au> in
- [ruby-core:18532].
+Tue Aug 16 09:38:37 2011 Eric Hodel <drbrain@segment7.net>
- * string.c (str_modify_keep_cr): new function act as
- rb_str_modify(), but don't clear coderange
+ * backport r32981 and r32982 from trunk.
- * string.c (rb_str_casecmp): specialized for single byte strings.
+ * ext/dl: Add documentation. Patch by Vincent Batts.
+ [Ruby 1.9 - Bug #5192]
- * string.c (rb_str_splice): preserve coderange.
+ * ext/.document (fiddle): Remove duplicate entry
- * string.c (rb_str_slice_bang, rb_str_reverse_bang,
- rb_str_upcase_bang, rb_str_downcase_bang, tr_trans,
- rb_str_capitalize_bang, rb_str_swapcase_bang,
- rb_str_delete_bang, rb_str_chop_bang, rb_str_chomp_bang,
- rb_str_lstrip_bang, rb_str_rstrip_bang): ditto.
+ * ext/fiddle: Complete documentation of Fiddle. Patch by Vincent
+ Batts. [#5192]
- * string.c (rb_str_clear): preset coderange.
+Tue Aug 16 08:00:15 2011 Eric Hodel <drbrain@segment7.net>
- * string.c (rb_str_split_m): specialized for splitting with a
- string.
+ * backport r32977 from trunk
-Tue Sep 16 00:57:56 2008 Tanaka Akira <akr@fsij.org>
+ * ext/socket: Make Socket documentation appear. Add documentation for
+ Socket, TCPServer, SOCKSSocket. Patch by Sylvain Daubert.
+ [Ruby 1.9 - Feature #5182]
- * re.c (rb_reg_quote): use rb_enc_mbcput to generate ASCII
- incompatible characters properly.
+Mon Aug 15 10:16:55 2011 Martin Bosslet <Martin.Bosslet@googlemail.com>
+ * backport r32973 from trunk.
-Tue Sep 16 00:51:59 2008 NARUSE, Yui <naruse@ruby-lang.org>
+ * ext/openssl/ossl_ssl.c: Support disabling OpenSSL compression.
- * encoding.c (Encoding#base_encoding): removed. [ruby-dev:36270]
+ * test/openssl/test_ssl.rb: Add a test for it.
+ Thanks to Eric Wong for the patch.
+ [Ruby 1.9 - Feature #5183] [ruby-core:38911]
-Tue Sep 16 00:40:56 2008 Tanaka Akira <akr@fsij.org>
+Sat Aug 13 22:17:27 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * transcode_data.h (STR1_LENGTH): defined.
- (makeSTR1LEN): defined.
+ * tool/mkconfig.rb: do not make the entries related to sitedir and
+ verdordir if disabled by --without options. [ruby-core:38922]
+ [Bug #5187]
- * tool/transcode-tblgen.rb: use makeSTR1LEN. generate STR1 for 4 to
- 259 bytes.
+Sat Aug 13 17:06:57 2011 Tadayoshi Funaba <tadf@dotrb.org>
- * transcode.c (rb_transcoding): new field: output_index.
- (transcode_restartable0): use STR1_LENGTH.
+ * ext/date/date_core.c: [ruby-core:38861]
-Mon Sep 15 23:52:45 2008 Koichi Sasada <ko1@atdot.net>
+Sat Aug 13 16:59:51 2011 Tadayoshi Funaba <tadf@dotrb.org>
- * gc.c, include/ruby/ruby.h: rename rb_register_mark_object()
- to rb_gc_register_mark_object().
+ * test/date/test_*.rb: added tests.
- * eval.c, vm.c: initialize vm->mark_object_ary at
- Init_top_self().
+Sat Aug 13 09:36:19 2011 CHIKANAGA Tomoyuki <nagachika00@gmail.com>
- * bignum.c, complex.c, encoding.c, ext/win32ole/win32ole.c,
- io.c, load.c, marshal.c, rational.c, ruby.c, vm.c:
- use rb_gc_register_mark_object() instead of
- rb_global_variable() or rb_gc_register_address().
+ * ext/date/date_parse.c (parse_ddd_cb): fix r32896. RB_GC_GUARD
+ insertion position was mistaken. [ruby-dev:44337] [Bug #5152]
-Mon Sep 15 23:37:15 2008 Tanaka Akira <akr@fsij.org>
+Sat Aug 13 09:26:24 2011 Aaron Patterson <aaron@tenderlovemaking.com>
- * transcode.c (econv_opts): don't use to_sym.
+ * ext/psych/lib/psych/core_ext.rb: Make Kernel#y private.
+ [ruby-core:38913]
-Mon Sep 15 23:28:28 2008 Tanaka Akira <akr@fsij.org>
+ * test/psych/test_yaml.rb: corresponding test.
- * encoding.c (rb_enc_get_index): don't return -1.
+Sat Aug 13 09:15:16 2011 Tadayoshi Funaba <tadf@dotrb.org>
- * io.c (rb_scan_open_args): call FilePathValue before encoding
- conversion.
+ * ext/date/date_core.c (date_strftime_alloc): followed the change
+ of r32885.
-Mon Sep 15 22:11:07 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * NEWS: followed the above change.
- * string.c (rb_str_squeeze_bang): specialized for 7bit characters in
- ASCII compatible strings.
+Sat Aug 13 08:49:05 2011 Tadayoshi Funaba <tadf@dotrb.org>
- * string.c (rb_str_count): ditto.
+ * ext/date/date_core.c: [ruby-core:38855].
- * string.c (tr_trans): preserve 7bit/valid coderange flag.
+Sat Aug 13 03:41:37 2011 Eric Hodel <drbrain@segment7.net>
- * string.c (rb_str_squeeze_bang): preserve previous coderange value.
+ * backport r32953 from trunk.
- * string.c (rb_str_lstrip_bang): ditto.
+ * lib/uri/common.rb: Fix documentation of URI::Parser.new. Patch by
+ Steve Klabnik. [Ruby 1.9 - Bug #5177]
- * string.c (rb_str_rstrip_bang): ditto.
+Sat Aug 13 02:19:57 2011 Eric Hodel <drbrain@segment7.net>
- * encoding.c (rb_default_external_encoding): preserve
- default_external_encoding in a static variable.
+ * backport r32950 from trunk.
- * string.c (single_byte_optimizable): check coderange first, to
- reduce number of calling rb_enc_from_index().
+ * ext/digest/digest.c: Add documentation for the Digest module. Patch
+ by Sylvain Daubert. [Ruby 1.9 - Bug #5167]
-Mon Sep 15 20:57:00 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+Fri Aug 5 13:32:43 2011 Shugo Maeda <shugo@ruby-lang.org>
- * lib/matrix.rb (Matrix#eql?): fixed [ruby-dev:36298].
- Reported by an anonymous user.
+ * backport r32856 from trunk.
- * lib/matrix.rb (Vector#eql?): ditto.
+ * lib/xmlrpc/client.rb, lib/xmlrpc/server.rb: should use
+ String#bytesize instead of String#size.
- * (Matrix#compare_by_row_vectors): takes comparison
- strategy as an optional parameter.
+Fri Aug 12 13:53:03 2011 Narihiro Nakamura <narihiro@netlab.jp>
- * (Vector#compare_by): ditto.
+ * backport r32894 from trunk.
-Mon Sep 15 14:34:32 2008 NARUSE, Yui <naruse@ruby-lang.org>
+ * gc.c (gc_lazy_sweep): if sweep target slots are not found, we
+ try heap_increment() because it might be able to expand the
+ heap. [Bug #5127] [ruby-dev:44285]
- * encoding.c (RUBY_MAX_CHAR_LEN): defined.
+ * gc.c (gc_clear_mark_on_sweep_slots): if a sweeping was
+ interrupted, we expand the heap if at all possible.
- * encoding.c (str_cat_char): use RUBY_MAX_CHAR_LEN.
+Fri Aug 12 12:28:17 2011 Eric Hodel <drbrain@segment7.net>
-Mon Sep 15 13:53:33 2008 NARUSE, Yui <naruse@ruby-lang.org>
+ * lib/rake: Update to Rake 0.9.2.2. Prevent pollution of toplevel
+ namespace by Commands. Remove unused variable and debugging
+ statement in tests.
- * encoding.c (rb_enc_compatible): accept other than strings and
- regexps. [ruby-core:18595]
+Fri Aug 12 09:00:24 2011 Eric Hodel <drbrain@segment7.net>
- * encoding.c (rb_enc_get_index): works files and encodings.
+ * backport r32941 from trunk
-Mon Sep 15 13:17:21 2008 Tadayoshi Funaba <tadf@dotrb.org>
+ * lib/rubygems: Import RubyGems 1.8.8. Fixes encoding of YAML gemspec
+ from gems. Github Issue #149
- * complex.c (nucomp_eql_p): new.
+Fri Aug 12 03:24:35 2011 Eric Hodel <drbrain@segment7.net>
- * complex.c (nucomp_hash): should use hash values of the elements.
+ * backport r32935 from trunk
- * rational.c (nurat_hash): ditto.
+ * lib/rdoc: Import RDoc 3.9.2. Fixes TIDYLINK for HTML output.
- * hash.c (rb_any_cmp): removed an unused variable.
+Tue Aug 2 22:04:46 2011 NARUSE, Yui <naruse@ruby-lang.org>
-Mon Sep 15 11:11:04 2008 Tanaka Akira <akr@fsij.org>
+ * backport r32815 from trunk.
- * transcode_data.h (rb_transcoder): resetsize_func and resetstate_func
- also returns ssize_t.
+ * gc.c (init_heap): allocate sigaltstack after heaps are allocated.
+ [ruby-dev:44315] [Bug #5139]
- * enc/trans/iso2022.trans: follow the type change.
+ * vm.c (thread_free): use free because objspace is not ready.
-Mon Sep 15 10:28:10 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+ * vm.c (th_init): use malloc because objspace is not ready.
- * test/matrix/test_matrix.rb (setup): typo.
- (test_equality): misdefinition of the expected working.
- Reported by an anonymous user.
- (test_hash): added.
+Thu Aug 11 19:04:38 2011 Hiroshi Nakamura <nahi@ruby-lang.org>
- * test/matrix/test_vector.rb: ditto.
+ * backport r32931 from trunk.
-Mon Sep 15 03:33:10 2008 Tanaka Akira <akr@fsij.org>
+ * variable.c (autoload_delete): An autoload entry is still in a
+ RCLASS_IV_TBL, not in a RCLASS_CONST_TBL, so take back the table
+ changed in r29600. And an autoload entry keeps not a
+ rb_const_entry_t but a NODE so remove rb_const_entry_t thing added
+ in r29602.
- * transcode_data.h: return output functions ssize_t.
+Thu Aug 11 15:07:36 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * transcode.c (transcode_restartable0): don't need to cast the result
- of output functions.
+ * lib/mkmf.rb (link_command): use LIBRUBYARG in rbconfig for
+ unbundled extensions. [ruby-core:38802] [Bug #5147]
- * enc/trans/newline.trans: follow the type change.
+ * lib/mkmf.rb (init_mkmf): revert r32902. [ruby-core:38903]
- * enc/trans/escape.trans: ditto.
+Wed Aug 10 19:30:00 2011 Kenta Murata <mrkn@mrkn.jp>
- * enc/trans/utf_16_32.trans: ditto.
+ * backport r32903 from trunk.
- * enc/trans/iso2022.trans: ditto.
+ * complex.c (nucomp_rationalize): calls rationalize of real part if
+ imaginary part is exactly zero. The patch is made by Marc-Andre
+ Lafortune. fixes [Bug #5178] [ruby-core:38885]
- * enc/trans/japanese.trans: ditto.
+ * test/ruby/test_complex.rb (test_rationalize): add a test for the
+ above change.
-Mon Sep 15 03:04:29 2008 Tanaka Akira <akr@fsij.org>
+ * complex.c (nucomp_to_r): fix RDoc comment. The patch is made by
+ Marc-Andre Lafortune.
- * transcode_data.h: output function takes output buffer size.
+Wed Aug 10 14:11:07 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * transcode.c: give output buffer size for output functions.
+ * lib/mkmf.rb (init_mkmf): set $LIBRUBYARG regardless of shared
+ option. [ruby-core:38802] [Bug #5147]
- * enc/trans/newline.trans: follow the type change.
+Wed Aug 10 02:57:01 2011 NARUSE, Yui <naruse@ruby-lang.org>
- * enc/trans/escape.trans: ditto.
+ * lib/net/http.rb: come back autoload. OpenSSL constant is used
+ some places, so it leads mistakes like HTTP.start.
- * enc/trans/utf_16_32.trans: ditto.
+Tue Aug 9 22:57:45 2011 CHIKANAGA Tomoyuki <nagachika00@gmail.com>
- * enc/trans/iso2022.trans: ditto.
+ * ext/date/date_parse.c (date_zone_to_diff): add RB_GC_GUARD.
+ [ruby-dev:44337] [Bug #5152]
- * enc/trans/japanese.trans: ditto.
+ * ext/date/data_parse.c (parse_ddd_cb): ditto.
-Mon Sep 15 02:37:19 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Tue Aug 9 12:20:33 2011 Naohisa Goto <ngotogenome@gmail.com>
- * transcode.c (str_encode): returns duplicated string if nothing
- changed. [ruby-core:18578]
+ * test/fiddle/helper.rb (libc_so, libm_so): Solaris support added.
+ [ruby-core:38853] [Bug #5168]
-Sun Sep 14 22:09:01 2008 Takeyuki Fujioka <xibbar@ruby-lang.org>
+ * test/dl/test_base.rb (libc_so, libm_so): on Solaris, remove libc
+ and libm version numbers for detecting default libc and libm.
- * lib/cgi/core.rb (CGI::parse): performance improvement
+Tue Aug 9 10:49:52 2011 Igor Zubkov <igor.zubkov@gmail.com>
-Sun Sep 14 18:33:32 2008 Tadayoshi Funaba <tadf@dotrb.org>
+ * array.c: Fix typo. https://github.com/ruby/ruby/pull/36
- * complex.c: trivial changes.
+Mon Aug 8 00:10:45 2011 Akinori MUSHA <knu@iDaemons.org>
-Sun Sep 14 16:15:22 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+ * test/test_syslog.rb (TestSyslog#test_log): Do not be too
+ specific about the log line format. Fixes #5081.
- * lib/matrix.rb (Vector#eql?): typo of the method name as "eqn?".
- (Vector#eqn?): removed. Defined by mistake.
- Fixes [ruby-dev:36294]. Reported by weda <weda AT
- issp.u-tokyo.ac.jp> and an anonymous user.
+Sun Aug 7 23:39:44 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * test/matrix/test_matrix.rb: added.
+ * time.c (rb_strftime_alloc): raise ERANGE if width is too large.
+ Patch by Nobuyoshi Nakada. [Bug #4457] [ruby-dev:43285]
- * test/matrix/test_vector.rb: added.
+ * test/ruby/test_time.rb (class TestTime): add a test for the
+ above change.
-Sun Sep 14 16:07:04 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Sun Aug 7 14:15:10 2011 Kazuki Tsujimoto <kazuki@callcc.net>
- * ruby.c (process_options): associates the locale encoding with $0 as
- well as ARGV.
+ * backport r32876 from trunk.
-Sun Sep 14 13:48:03 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+ * ext/objspace/objspace.c: fix typos in a document.
- * object.c (Init_Object): added metameta-class initialization for
- BasicObject, Object, and Module.
- The metameta-classes of them are now the metaclass of Class, as the
- metameta-class of Class is.
+Sun Aug 7 04:42:36 2011 Eric Hodel <drbrain@segment7.net>
- * object.c (boot_defmetametaclass): added.
+ * marshal.c (w_object): Fix exception message when _dump_data
+ is not defined on a T_DATA object.
-Sun Sep 14 10:10:43 2008 Tadayoshi Funaba <tadf@dotrb.org>
+Sat Aug 6 06:14:20 2011 Eric Hodel <drbrain@segment7.net>
- * complex.c (f_{add,mul,sub}): omitted some shortcuts for preserving
- signed zero anyway.
+ * lib/rdoc: Update to 3.9.1. Fixes === lines in verbatim sections.
+ Fixes :nodoc: on class aliases. Fixes :stopdoc: creating references
+ to Object. Fixes spacing when class comments are merged in ri.
+ Fixes `ri []` crash. Fixes bug report URL when rdoc crashes. Adds
+ :doc: and :nodoc: to allow hiding of implementation details in ruby.
+ Makes `rdoc` and `ri` gem-aware.
- * complex.c (nucomp_negate): new.
+Sat Aug 6 03:19:45 2011 Eric Hodel <drbrain@segment7.net>
-Sun Sep 14 04:15:16 2008 Tanaka Akira <akr@fsij.org>
+ * lib/rubygems: Import RubyGems 1.8.7:
+ Added missing require for `gem uninstall --format-executable`.
- * include/ruby/oniguruma.h (OnigEncodingTypeST): add end argument for
- left_adjust_char_head.
- (ONIGENC_LEFT_ADJUST_CHAR_HEAD): add end argument.
- (onigenc_get_left_adjust_char_head): ditto.
+ The correct name of the executable being uninstalled is now displayed
+ with --format-executable.
- * include/ruby/encoding.h (rb_enc_left_char_head): add end argument.
+ Fixed `gem unpack uninstalled_gem` default version picker.
- * regenc.h (onigenc_single_byte_left_adjust_char_head): ditto.
+ RubyGems no longer claims a nonexistent gem can be uninstalled.
- * regenc.c (onigenc_get_right_adjust_char_head): follow the interface
- change.
- (onigenc_get_right_adjust_char_head_with_prev): ditto.
- (onigenc_get_prev_char_head): ditto.
- (onigenc_step_back): ditto.
- (onigenc_get_left_adjust_char_head): ditto.
- (onigenc_single_byte_code_to_mbc): ditto.
+ `gem which` no longer claims directories are requirable files.
- * re.c: ditto.
+ `gem cleanup` continues cleaning up gems if one can't be uninstalled
+ due to permissions. Issue #82.
- * string.c: ditto.
+ Gem repository directories are no longer created world-writable.
+ Patch by Sakuro OZAWA. [Ruby 1.9 - Bug #4930]
- * io.c: ditto.
+Fri Aug 5 23:08:39 2011 Naohisa Goto <ngotogenome@gmail.com>
- * regexec.c: ditto.
+ * backport r32845 from trunk.
- * enc/euc_jp.c: ditto.
+ * configure.in: when Solaris cc, use $(CC) to link shared libs.
- * enc/cp949.c: ditto.
+Fri Aug 5 22:16:20 2011 Naohisa Goto <ngotogenome@gmail.com>
- * enc/shift_jis.c: ditto.
+ * numeric.c (rb_infinity, rb_nan): use WORDS_BIGENDIAN to get endian.
+ fix [Bug #5160] [ruby-dev:44356]
- * enc/gbk.c: ditto.
+Fri Aug 5 15:57:10 2011 Naohisa Goto <ngotogenome@gmail.com>
- * enc/big5.c: ditto.
+ * complex.c (f_signbit): fix compile error in gcc4 on Solaris with
+ CFLAGS="-std=gnu99". [ruby-dev:44355] fix [Bug #5159]
- * enc/euc_tw.c: ditto.
+ * math.c: ditto.
- * enc/euc_kr.c: ditto.
+Thu Aug 5 10:09:00 2011 Kenta Murata <mrkn@mrkn.jp>
- * enc/emacs_mule.c: ditto.
+ * backport r32846 from trunk.
- * enc/gb18030.c: ditto.
+ * thread_pthread.c (native_cond_signal): retry to call pthread_cond_signal
+ and pthread_cond_broadcast if they return EAGAIN in
+ native_cond_signal and native_cond_broadcast, respectively.
+ It is for the pthread implementation of Mac OS X 10.7 (Lion).
+ fixes #5155. [ruby-dev:44342].
- * enc/utf_8.c: ditto.
+ * thread_pthread.c (native_cond_broadcast): ditto.
- * enc/utf_16le.c: ditto.
+ * thread_pthread.c (struct cached_thread_entry): stop using
+ pthread_cond_t and its functions directly.
- * enc/utf_16be.c: ditto.
+ * thread_pthread.c (register_cached_thread_and_wait): ditto.
- * enc/utf_32le.c: ditto.
+ * thread_pthread.c (use_cached_thread): ditto.
- * enc/utf_32be.c: ditto.
+Fri Aug 5 07:35:00 2011 Luis Lavena <luislavena@gmail.com>
-Sun Sep 14 03:43:27 2008 Tanaka Akira <akr@fsij.org>
+ * lib/rubygems/installer.rb (class Gem): Correct path check on Windows
+ Possible fix for [Ruby 1.9 - Bug #5111]
- * include/ruby/oniguruma.h (ONIGENC_STEP_BACK): add end argument.
- (onigenc_step_back): ditto.
+ * test/rubygems/test_gem_installer.rb (load Gem): ditto
+ Backported from trunk r32804
- * regenc.c (onigenc_step_back): add end argument.
+Fri Aug 5 07:00:31 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * regexec.c: follow the interface change.
+ * test/io/console/test_io_console.rb (test_noctty): daemon() on
+ Fedora Rawhide seems not to detach the controlling terminal,
+ when the argument noclose is non-zero. ref: [Bug #5135]
-Sun Sep 14 03:20:03 2008 Tanaka Akira <akr@fsij.org>
+Wed Aug 4 02:35:00 2011 Kenta Murata <mrkn@mrkn.jp>
- * include/ruby/oniguruma.h (onigenc_get_prev_char_head): add end
- argument.
+ * configure.in: use build_os variable for checking C and C++ compilers
+ matching.
- * include/ruby/encoding.h (rb_enc_prev_char): ditto.
+ * configure.in: use clang++ if clang is used.
- * regenc.c (onigenc_get_prev_char_head): add end argument.
+Thu Aug 4 02:21:10 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * regparse.c: follow the interface change.
+ * lib/mkmf.rb (link_command): use static library only for bundled
+ extensions. [Bug #5147]
- * regexec.c: ditto.
+Wed Aug 3 00:11:08 2011 Tanaka Akira <akr@fsij.org>
- * string.c: ditto.
+ * lib/prettyprint.rb: update document. [ruby-core:36776]
- * parse.y: ditto.
-Sun Sep 14 02:04:28 2008 Tanaka Akira <akr@fsij.org>
+Tue Aug 2 20:10:16 2011 Shota Fukumori <sorah@tubusu.net>
- * include/ruby/oniguruma.h
- (onigenc_get_right_adjust_char_head_with_prev): add end argument.
+ * test/testunit/test_parallel.rb: pass "--ruby" option to
+ test/testunit/tests_for_parallel/runner.rb. [Bug #5132] [ruby-dev:44303]
+ Backported from trunk r32812.
- * regenc.c (onigenc_get_right_adjust_char_head_with_prev): use end
- argument.
+Tue Aug 2 12:03:16 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * regexec.c (forward_search_range): follow the interface change.
+ * hash.c (recursive_hash): hash value of emptied hash should be
+ equal to an empty hash. [ruby-core:38650]
-Sun Sep 14 01:38:26 2008 Tanaka Akira <akr@fsij.org>
+Tue Aug 2 11:42:15 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * include/ruby/oniguruma.h (onigenc_get_right_adjust_char_head): add
- end argument.
+ * parse.y (rb_enc_symname2_p): :! is valid symbol. [Bug #5136]
- * include/ruby/encoding.h (rb_enc_right_char_head): add end argument.
+Tue Aug 2 03:26:02 2011 NAKAMURA Usaku <usa@ruby-lang.org>
- * regenc.c (onigenc_get_right_adjust_char_head): use end argument.
+ * test/rake/test_rake_directory_task.rb (TestRakeDirectoryTask#
+ test_directory_win32): fixed wrong test.
+ backported r32670 from trunk.
- * re.c (rb_reg_adjust_startpos): follow the interface change.
+Mon Aug 1 15:45:23 2011 Eric Hodel <drbrain@segment7.net>
- * string.c (rb_str_index): ditto.
+ * test/rake/test_rake_functional.rb: Don't assume the binary name of
+ ruby is "ruby". [Ruby 1.9 - Bug #5114]
+ * test/rake/helper.rb: ditto
- * regexec.c (backward_search_range): ditto.
- (onig_search): ditto.
+Mon Aug 1 05:21:42 2011 TAKANO Mitsuhiro (takano32) <tak@no32.tk>
-Sun Sep 14 00:43:28 2008 Tanaka Akira <akr@fsij.org>
+ * cont.c (cont_save_thread): fix missing semicolon.
- * ext/ripper/depend (ripper.o): it depends on ruby headers.
+Sun Jul 31 22:57:16 2011 Yuki Sonoda (Yugui) <yugui@yugui.jp>
-Sat Sep 13 19:27:01 2008 Tanaka Akira <akr@fsij.org>
+ * enc/Makefile.in (ECHO1): Same as the recent fix in common.mk.
+ ":" in a make variable replacement cause a syntax error with
+ /usr/ccs/bin/make on Solaris. Uses $(NULLCMD) instead.
- * io.c (io_encoding_set): don't need argc argument.
- (rb_io_s_pipe): update io_encoding_set call.
- (rb_io_set_encoding): ditto.
+Sun Jul 31 22:44:08 2011 Kazuki Tsujimoto <kazuki@callcc.net>
-Sat Sep 13 18:46:41 2008 Tanaka Akira <akr@fsij.org>
+ * configure.in: fix typos.
- * transcode.c (rb_transcoding): align state field.
+Sun Jul 31 21:19:51 2011 Yuki Sonoda (Yugui) <yugui@yugui.jp>
-Sat Sep 13 18:21:09 2008 Tanaka Akira <akr@fsij.org>
+ * lib/mkmf.rb (configuration:ECHO1): Same as the recent fix in
+ common.mk.
+ ":" in a make variable replacement cause a syntax error with
+ /usr/ccs/bin/make on Solaris. Uses $(NULLCMD) instead.
- * transcode.c (DECORATOR_P): renamed from SUPPLEMENTAL_CONVERSION.
+Sun Jul 31 21:16:02 2011 Yuki Sonoda (Yugui) <yugui@yugui.jp>
-Sat Sep 13 18:05:37 2008 Tanaka Akira <akr@fsij.org>
+ * complex.c (f_signbit): gcc4 on Solaris DOES have signbit but does
+ not have it on header.
- * io.c (make_writeconv): use rb_enc_name.
- (make_readconv): ditto.
+ * math.c: ditto.
- * transcode.c (rb_econv_open_opts): ditto.
- (econv_args): ditto.
- (decorate_convpath): ditto.
- (econv_set_replacement): ditto.
+Sun Jul 31 21:09:04 2011 Yuki Sonoda (Yugui) <yugui@yugui.jp>
-Sat Sep 13 11:15:38 2008 Shugo Maeda <shugo@ruby-lang.org>
+ * common.mk (node_name.inc): Use $(Q) for consistency.
- * lib/rexml/document.rb: fixed typo.
+ * Makefile.in (INSNS): ditto.
-Sat Sep 13 10:53:13 2008 Tadayoshi Funaba <tadf@dotrb.org>
+Sun Jul 31 20:39:12 2011 Yuki Sonoda (Yugui) <yugui@yugui.jp>
- * complex.c: refined.
+ * common.mk (ECHO1): nmake does not allow parenthesis in make variable
+ replacement.
- * rational.c: ditto.
+Sun Jul 31 20:21:36 2011 "Yuki Sonoda (Yugui)" <yugui@yugui.jp>
-Sat Sep 13 03:44:52 2008 Tanaka Akira <akr@fsij.org>
+ * common.mk (ECHO1): ":" in a make variable replacement cause a syntax
+ error with /usr/ccs/bin/make on Solaris. Uses $(NULLCMD) instead.
- * transcode.c (rb_econv_prepare_opts): raise ArgumentError if
- a broken string is specified as a replacement.
+ * configure.in (NULLCMD): new check.
-Sat Sep 13 03:31:05 2008 Tanaka Akira <akr@fsij.org>
+ * Makefile.in (NULLCMD): Reflects checking in configure.
- * iseq.c (iseq_s_compile_file): use rb_file_open_str.
+ * win32/Makefile.sub (NULLCMD): new assignment.
- * io.c (rb_file_open_generic): call validate_enc_binmode.
- (rb_file_open_str): call FilePathValue.
+Sun Jul 31 11:31:07 2011 Kazuki Tsujimoto <kazuki@callcc.net>
-Sat Sep 13 02:58:05 2008 Tanaka Akira <akr@fsij.org>
+ * backport r32768 from trunk.
- * io.c (validate_enc_binmode): extracted from rb_io_extract_modeenc.
- (rb_io_extract_modeenc): use validate_enc_binmode.
- (io_encoding_set): call validate_enc_binmode.
+ * vm.c: check if cfp is valid. [Bug #5083] [ruby-dev:44208]
-Sat Sep 13 02:50:34 2008 Tanaka Akira <akr@fsij.org>
+Sat Jul 31 01:23:45 2011 Kenta Murata <mrkn@mrkn.jp>
- * transcode.c (rb_econv_prepare_opts): initialize *opt and return 0
- if opthash is nil.
+ * backport r32762 from trunk.
-Sat Sep 13 02:29:19 2008 Tanaka Akira <akr@fsij.org>
+ * test/bigdecimal/test_bigdecimal.rb (test_version): removed.
- * enc/trans/escape.trans: transcoder name renamed to use underscore.
+Sat Jul 30 23:51:44 2011 Tadayoshi Funaba <tadf@dotrb.org>
- * transcode.c: follow the renaming.
+ * lib/cmath.rb (cbrt): should return a real number if possible.
-Sat Sep 13 02:12:17 2008 Tanaka Akira <akr@fsij.org>
+Sat Jul 30 23:48:04 2011 Tadayoshi Funaba <tadf@dotrb.org>
- * transcode.c (rb_econv_init_by_convpath_i): new function.
- (rb_econv_init_by_convpath): new function.
- (econv_init): use rb_econv_init_by_convpath.
+ * ext/date/date_core.c: an issue that is same as [ruby-dev:44071].
-Sat Sep 13 01:11:14 2008 Tanaka Akira <akr@fsij.org>
+ * ext/date/date_strftime.c: identical to [ruby-dev:44112].
- * transcode.c (econv_args): take snamev_p and dnamev_p to prevent
- possible GC problem.
+Sat Jul 30 23:19:09 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Sat Sep 13 00:38:54 2008 Tanaka Akira <akr@fsij.org>
+ * defs/default_gems: separate from tool/rbinstall.rb.
- * transcode.c (enc_arg): take arg as VALUE * to prevent possible GC
- problem.
+Sat Jul 30 23:14:44 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Fri Sep 12 23:19:41 2008 Tanaka Akira <akr@fsij.org>
+ * io.c (rb_io_each_byte): rbuf can be refreshed during yield.
+ [Bug #5119]
- * transcode.c (rb_econv_add_transcoder_at): fix loop condition.
+Sat Jul 30 22:35:50 2011 Naohisa Goto <ngotogenome@gmail.com>
-Fri Sep 12 22:39:46 2008 Tanaka Akira <akr@fsij.org>
+ * strftime.c (NEEDS): avoid SEGV due to integer overflow in
+ sparc-solaris2.10 and i686-linux. fix [Bug #4456] [ruby-dev:43284]
- * transcode.c (decorator_names): extracted from rb_econv_open.
- (rb_econv_open): use decorator_names.
- (econv_args): extracted from econv_init.
- (econv_init): use econv_args.
- (decorate_convpath): new function.
- (search_convpath_i): new function.
- (econv_s_search_convpath): new method.
- (Init_transcode): new method defined.
+Sat Jul 30 14:27:00 2011 Kenta Murata <mrkn@mrkn.jp>
-Fri Sep 12 21:55:43 2008 Tanaka Akira <akr@fsij.org>
+ * backport r32754 from trunk.
- * transcode.c (rb_econv_t): new field: num_allocated.
- (rb_econv_alloc): extracted from
- rb_econv_open_by_transcoder_entries.
- (rb_econv_add_transcoder_at): extracted from rb_econv_decorate_at
- and generalized
- (rb_econv_open_by_transcoder_entries): use rb_econv_alloc and
- rb_econv_add_transcoder_at.
- (rb_econv_add_converter): extracted from rb_econv_decorate_at.
- (rb_econv_decorate_at): use rb_econv_add_converter.
+ * ext/bigdecimal/bigdecimal.c (BigDecimal_version): version 1.1.0.
+ * ext/bigdecimal/bigdecimal.gemspec: turn into a default gem.
-Fri Sep 12 21:22:09 2008 Tanaka Akira <akr@fsij.org>
+ * tool/rbinstall.rb: ditto.
- * transcode.c (rb_econv_t): new field: started.
- (rb_econv_open_by_transcoder_entries): initialize started field.
- (rb_econv_convert): set started field.
- (rb_econv_insert_output): ditto.
- (rb_econv_decorate_at): check started field instead of num_finished.
+Sat Jul 30 13:52:00 2011 Kenta Murata <mrkn@mrkn.jp>
-Fri Sep 12 20:28:59 2008 Tanaka Akira <akr@fsij.org>
+ * ext/bigdecimal/lib/bigdecimal/util.rb (Rational#to_d):
+ revive zero and implicit precision support as a deprecated feature.
- * regenc.c (onigenc_single_byte_code_to_mbc): follow OnigEncoding
+ * test/bigdecimal/test_bigdecimal_util.rb: modify a test for the above
change.
-Fri Sep 12 20:00:22 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * regparse.c (parse_exp): fix resource leak.
-
-Fri Sep 12 01:21:22 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * ext/syck/node.c (syck_replace_str2): fix wrong check to free ptr.
-
-Thu Sep 11 20:18:24 2008 Masaki Suketa <masaki.suketa@nifty.ne.jp>
-
- * test/win32ole/test_err_in_callback.rb (teardown): get rid
- of infinite loop.
-
-Thu Sep 11 19:12:56 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * include/ruby/oniguruma.h (OnigCodePoint): unsigned long to unsigned int.
-
- * include/ruby/encoding.h (rb_enc_codepoint): ditto.
-
- * encoding.c (rb_enc_codepoint): signed int to unsigned int.
-
- * encoding.c (rb_enc_ascget): ditto.
-
- * string.c (rb_str_casecmp): ditto.
-
- * string.c (enc_succ_alnum_char): ditto.
-
- * string.c (rb_str_inspect): ditto.
-
- * string.c (rb_str_upcase_bang): ditto.
-
- * string.c (rb_str_downcase_bang): ditto.
-
- * string.c (rb_str_capitalize_bang): ditto.
-
- * string.c (rb_str_swapcase_bang): ditto.
-
- * string.c (struct tr): ditto.
-
- * string.c (trnext): ditto.
-
- * string.c (tr_trans): ditto.
-
- * string.c (tr_setup_table): ditto.
-
- * string.c (tr_find): ditto.
-
- * string.c (rb_str_delete_bang): ditto.
-
- * string.c (rb_str_squeeze_bang): ditto.
-
- * string.c (rb_str_count): ditto.
-
- * string.c (rb_str_split_m): ditto.
-
- * string.c (rb_str_each_line): ditto.
-
- * string.c (rb_str_lstrip_bang): ditto.
-
- * string.c (rb_str_rstrip_bang): ditto.
-
- * string.c (rb_str_intern): ditto.
-
- * dir.c (char_casecmp): ditto.
-
- * sprintf.c (rb_str_format): ditto.
-
- * enc/emacs_mule.c (mbc_to_code): to be 32bit clean.
-
- * enc/emacs_mule.c (code_to_mbc): ditto.
-
- * enc/gb18030.c (mbc_to_code): ditto.
-
- * enc/gb18030.c (code_to_mbc): ditto.
-
-Thu Sep 11 19:09:25 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * ext/iconv/iconv.c: add attention for machine independent.
-
-Thu Sep 11 15:23:26 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * bignum.c (bigdivrem): adjust length for division and remainder.
- a patch from TOYOFUKU Chikanobu <nobu_toyofuku at nifty.com> in
- [ruby-dev:36231].
-
-Thu Sep 11 02:59:47 2008 Tanaka Akira <akr@fsij.org>
-
- * io.c (io_binwrite): extracted from io_fwrite.
-
-Thu Sep 11 02:25:34 2008 Tanaka Akira <akr@fsij.org>
-
- * transcode.c (make_encoding): new function.
- (make_encobj): new function.
- (econv_s_asciicompat_encoding): use make_encoding.
- (rb_econv_open_exc): use SUPPLEMENTAL_CONVERSION.
- (econv_convpath): use encoding object in the result.
-
-Thu Sep 11 02:14:38 2008 Tanaka Akira <akr@fsij.org>
-
- * transcode.c (econv_convpath): new method.
-
-Wed Sep 10 23:00:43 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * tool/compile_prelude.rb: print "<internal:prelude>" instead of
- "prelude.rb" on stack trace. [ruby-dev:36129]
-
-Wed Sep 10 21:19:58 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * bignum.c (big2str_karatsuba): remove unnecessary fixnum code. a
- patch from TOYOFUKU Chikanobu <nobu_toyofuku at nifty.com> in
- [ruby-dev:36217].
-
-Wed Sep 10 21:09:32 2008 Masaki Suketa <masaki.suketa@nifty.ne.jp>
-
- * test/win32ole/test_err_in_callback.rb: InternetExplorer should
- be closed.
-
- * test/win32ole/err_in_callback.rb: ditto.
-
-Wed Sep 10 18:25:19 2008 akira yamada <akira@rice.p.arika.org>
-
- * lib/uri/common.rb (URI::Parser): new class.
-
- * lib/uri/mailto.rb, lib/uri/generic.rb: follow the above change.
-
- * test/uri/test_parser.rb: added tests for URI::Parser.
-
-Wed Sep 10 10:35:32 2008 Takeyuki Fujioka <xibbar@ruby-lang.org>
-
- * lib/cgi/cookie.rb (CGI::Cookie#to_s): performance improvement
- from http://jp.rubyist.net/magazine/?0023-Cgirb.
-
-Wed Sep 10 10:12:29 2008 akira yamada <akira@arika.org>
-
- * lib/sync.rb (Sync_m#sync_exclusive): fixed
- typo. [ruby-dev:36233] [RubyForge#11680]
-
-Wed Sep 10 01:57:23 2008 Tanaka Akira <akr@fsij.org>
-
- * tool/transcode-tblgen.rb (StrSet#hash): cache hash value.
- (ActionMap#hash): ditto.
-
-Wed Sep 10 01:26:01 2008 Tanaka Akira <akr@fsij.org>
-
- * include/ruby/encoding.h (econv_after_output): renamed from
- econv_output_followed_by_input.
- (ECONV_AFTER_OUTPUT): renamed from ECONV_OUTPUT_FOLLOWED_BY_INPUT.
-
- * transcode.c: follow the renaming.
-
- * io.c: ditto.
-
-Wed Sep 10 01:16:07 2008 Tanaka Akira <akr@fsij.org>
-
- * transcode.c (get_replacement_character): don't return ASCII
- incompatible replacements.
- (make_replacement): don't convert the result of
- get_replacement_character.
-
-Wed Sep 10 01:05:00 2008 Tanaka Akira <akr@fsij.org>
-
- * enc/trans/newline.trans (rb_universal_newline): swap src_encoding
- and dst_encoding.
-
- * transcode.c (rb_econv_decorate_at): call get_transcoder_entry only
- once.
- (rb_econv_binmode): follow universal_newline change.
-
-Wed Sep 10 00:01:36 2008 Tanaka Akira <akr@fsij.org>
-
- * include/ruby/io.h (rb_io_t): rename field: writeconv_stateless to
- writeconv_asciicompat.
-
- * io.c: follow the renaming.
-
- * gc.c: ditto.
-
-Tue Sep 9 23:55:26 2008 Tanaka Akira <akr@fsij.org>
-
- * io.c (io_fwrite): raise an error if ASCII incompatible string
- written for text mode IO without encoding conversion.
- (rb_io_extract_modeenc): binmode requirement changed.
-
-Tue Sep 9 21:59:48 2008 Takeyuki Fujioka <xibbar@ruby-lang.org>
-
- * lib/cgi*: split cgi.rb into four files. [ruby-dev:36041]
-
-Tue Sep 9 21:17:00 2008 Tanaka Akira <akr@fsij.org>
-
- * include/ruby/encoding.h (ECONV_DECORATOR_MASK): merge
- ECONV_ENCODER_MASK and ECONV_DECORATOR_MASK.
- (ECONV_UNIVERSAL_NEWLINE_DECORATOR): renamed from
- ECONV_UNIVERSAL_NEWLINE_DECODER.
- (ECONV_CRLF_NEWLINE_DECORATOR): renamed from
- ECONV_CRLF_NEWLINE_ENCODER.
- (ECONV_CR_NEWLINE_DECORATOR): renamed from ECONV_CR_NEWLINE_ENCODER.
- (ECONV_XML_TEXT_DECORATOR): renamed from ECONV_XML_TEXT_ENCODER.
- (ECONV_XML_ATTR_CONTENT_DECORATOR): renamed from
- ECONV_XML_ATTR_CONTENT_ENCODER.
- (ECONV_STATEFUL_DECORATOR_MASK): renamed from
- ECONV_STATEFUL_ENCODER_MASK.
- (ECONV_XML_ATTR_QUOTE_DECORATOR): renamed from
- ECONV_XML_ATTR_CONTENT_DECORATOR.
-
- * io.c: follow the renaming.
-
- * transcode.c: ditto.
-
-Tue Sep 9 20:55:55 2008 Tanaka Akira <akr@fsij.org>
-
- * transcode.c (rb_econv_open0): make it static.
- (rb_econv_open): place decorators at last.
-
-Tue Sep 9 20:40:15 2008 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
-
- * test/openssl/test_ssl.rb (OpenSSL#test_client_session):
- Debian's openssl 0.9.8g-13 failed at assert(ssl.session_reused?),
- when use default SSLContext. [ruby-dev:36167]
-
-Tue Sep 9 20:34:26 2008 Tanaka Akira <akr@fsij.org>
-
- * transcode.c (rb_econv_t): last_trans_index removed.
- (rb_econv_open_by_transcoder_entries): follow the type change.
- (rb_econv_open0): ditto.
- (rb_econv_decorate_at): ditto.
- (rb_econv_binmode): ditto.
- (rb_econv_insert_output): simplified because there are no decorators
- at last.
-
-Tue Sep 9 20:21:54 2008 Tanaka Akira <akr@fsij.org>
-
- * transcode.c (rb_econv_open): reverse the order of decoders.
-
-Tue Sep 9 20:18:26 2008 Tanaka Akira <akr@fsij.org>
-
- * transcode.c (rb_econv_open0): num_encoders and num_decoders removed.
-
-Tue Sep 9 03:59:13 2008 Tanaka Akira <akr@fsij.org>
-
- * io.c (make_writeconv): useless branch removed.
-
-Tue Sep 9 02:18:20 2008 Tanaka Akira <akr@fsij.org>
-
- * include/ruby/encoding.h (rb_econv_decorate_at_first): declared.
- (rb_econv_decorate_at_last): declared.
-
- * transcode.c (rb_econv_open_by_transcoder_entries): initialize
- replacement_enc. allocate outbuf for the last transcoder.
- (rb_econv_open0): extracted from rb_econv_open.
- (rb_econv_open): use rb_econv_open0 and decorate the result using
- rb_econv_decorate_at_first and rb_econv_decorate_at_last.
- (rb_econv_decorate_at): new function.
- (rb_econv_decorate_at_first): ditto.
- (rb_econv_decorate_at_last): ditto.
- (rb_econv_binmode): fix iteration end condition.
- (econv_init): don't set source_encoding_name and
- destination_encoding_name because they are set in rb_econv_open0.
-
-Tue Sep 9 01:10:54 2008 Tanaka Akira <akr@fsij.org>
-
- * transcode.c (rb_econv_open): make ec a local variable.
-
-Tue Sep 9 00:20:10 2008 Tanaka Akira <akr@fsij.org>
-
- * transcode.c (rb_econv_asciicompat_encoding): check decoder.
-
-Tue Sep 9 00:00:47 2008 Tanaka Akira <akr@fsij.org>
-
- * transcode.c (rb_econv_t): last_error.partial_input removed.
-
-Mon Sep 8 23:24:54 2008 Tanaka Akira <akr@fsij.org>
-
- * include/ruby/encoding.h (rb_econv_asciicompat_encoding): renamed
- from rb_econv_stateless_encoding to apply stateless ASCII
- incompatible encodings such as UTF-16BE.
-
- * io.c (make_writeconv): use rb_econv_asciicompat_encoding.
-
- * transcode_data.h (rb_transcoder_asciicompat_type_t): renamed from
- rb_transcoder_stateful_type_t.
- (rb_transcoder): use rb_transcoder_asciicompat_type_t.
-
- * transcode.c: follow the type change.
- (asciicompat_encoding_i): renamed from stateless_encoding_i.
- (rb_econv_asciicompat_encoding): renamed from
- rb_econv_stateless_encoding.
- (econv_s_asciicompat_encoding): method renamed.
-
- * tool/transcode-tblgen.rb: follow the type change.
-
- * enc/trans/utf_16_32.trans: follow the type change.
- rb_from_UTF_16BE to UTF-8 is asciicompat_decoder.
- rb_from_UTF_16LE to UTF-8 is asciicompat_decoder.
- rb_from_UTF_32BE to UTF-8 is asciicompat_decoder.
- rb_from_UTF_32LE to UTF-8 is asciicompat_decoder.
- UTF-8 to rb_to_UTF_16BE is asciicompat_encoder.
- UTF-8 to rb_to_UTF_16LE is asciicompat_encoder.
- UTF-8 to rb_to_UTF_32BE is asciicompat_encoder.
- UTF-8 to rb_to_UTF_32LE is asciicompat_encoder.
-
- * enc/trans/newline.trans: follow the type change. universal newline
- decoder is asciicompat_converter.
-
- * enc/trans/escape.trans: follow the type change.
-
- * enc/trans/iso2022.trans: ditto.
-
- * enc/trans/japanese.trans: ditto.
-
-Mon Sep 8 23:05:42 2008 Tanaka Akira <akr@fsij.org>
-
- * transcode.c (rb_econv_insert_output): "readagain" part should be
- after replacement.
-
-Mon Sep 8 22:30:03 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * dir.c (dir_initialize): rename option name of Dir.open
- from :external_encoding to :encoding.
-
-Mon Sep 8 22:16:20 2008 Takeyuki FUJIOKA <xibbar@ruby-lang.org>
-
- * lib/cgi.rb : obsolete regex "n" option. [ruby-dev:36130]
-
-Mon Sep 8 18:13:20 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * win32/win32.c (getppid): typo. [ruby-dev:36202]
-
- * process.c (get_ppid): mention the return value on Windows.
-
-Mon Sep 8 18:15:59 2008 Tanaka Akira <akr@fsij.org>
-
- * tool/transcode-tblgen.rb (ArrayCode): less string substitutions.
-
-Mon Sep 8 18:13:13 2008 Tanaka Akira <akr@fsij.org>
-
- * vm.c (rb_mRubyVMFrozenCore): registered for GC.
-
- * re.c (rb_reg_preprocess_dregexp): fix GC problem on MacOS X with
- powerpc-apple-darwin8-gcc-4.0.1 (GCC) 4.0.1 (Apple Computer, Inc.
- build 5367).
-
-Mon Sep 8 18:09:07 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * win32/Makefile.sub (config.h): define SIZE_MAX for VC++6/7.
-
-Mon Sep 8 17:46:09 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * win32/win32.c (filetime_to_unixtime): remove unused variable.
- [ruby-dev:36191]
-
-Mon Sep 8 13:47:39 2008 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
-
- * test/ruby/test_io.rb (TestIO#test_dup): add open in block.
- see [ruby-dev:35957].
-
-Mon Sep 8 07:09:42 2008 Tadayoshi Funaba <tadf@dotrb.org>
-
- * complex.c: some adjustments.
-
- * rational.c: ditto.
-
-Mon Sep 8 06:50:29 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * configure.in (XLDFLAGS): added --enable-auto-import for cygwin and
- mingw.
-
-Mon Sep 8 02:04:25 2008 Tanaka Akira <akr@fsij.org>
-
- * include/ruby/encoding.h (rb_econv_set_replacement): renamed from
- rb_econv_set_replacemenet.
-
- * transcode.c: follow the renaming.
-
-Mon Sep 8 01:10:41 2008 Tanaka Akira <akr@fsij.org>
-
- * tool/transcode-tblgen.rb (transcode_tblgen): log message refined.
-
-Mon Sep 8 00:58:04 2008 Tadayoshi Funaba <tadf@dotrb.org>
-
- * rational.c: removed unused code.
-
-Mon Sep 8 00:04:09 2008 Tanaka Akira <akr@fsij.org>
-
- * enc/trans/iso2022.trans: upcase to iso-2022-jp.
-
- * enc/emacs_mule.c: ditto.
-
-Sun Sep 7 23:46:36 2008 Tanaka Akira <akr@fsij.org>
-
- * enc/trans/iso2022.trans: stateless-iso-2022-jp is defined to avoid
- undefined conversion error between iso-2022-jp and the corresponding
- stateless encoding.
-
- * enc/emacs_mule.c: replicate emacs-mule as stateless-iso-2022-jp.
-
-Sun Sep 7 20:03:01 2008 Tanaka Akira <akr@fsij.org>
-
- * enc/trans/escape.trans (hexstr): renamed from str1.
-
-Sun Sep 7 19:45:31 2008 Tanaka Akira <akr@fsij.org>
-
- * enc/trans/escape.trans: use transcode_tblgen.
-
- * tool/transcode-tblgen.rb: generate an empty line after str1.
-
-Sun Sep 7 19:16:38 2008 Tanaka Akira <akr@fsij.org>
-
- * tool/transcode-tblgen.rb (ActionMap#str_name): new method to
- generate a name base on string content.
- (ActionMap#gen_str): extracted from generate_info and use str_name.
-
-Sun Sep 7 18:28:05 2008 Tanaka Akira <akr@fsij.org>
-
- * tool/transcode-tblgen.rb (ActionMap#generate_info): use a memo to
- avoid duplication for STR1.
-
-Sun Sep 7 18:10:28 2008 Tanaka Akira <akr@fsij.org>
-
- * transcode_data.h (STR1): defined for a string up to 255 bytes.
- (STR1_BYTEINDEX): defined.
- (makeSTR1): defined.
-
- * tool/transcode-tblgen.rb: generate STR1.
-
- * transcode.c (transcode_restartable0): interpret STR1.
-
- * enc/trans/escape.trans (fun_so_escape_xml_chref): removed. STR1 is
- used instead.
-
-Sun Sep 7 17:54:45 2008 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
-
- * configure.in: Mac OS X's crypt(2) is broken with invalid salt.
- [ruby-dev:35899]
- * string.c (rb_str_crypt): ditto.
-
-Sun Sep 7 17:29:49 2008 Tanaka Akira <akr@fsij.org>
-
- * tool/transcode-tblgen.rb: o4 is usable only if the first byte is
- f0-f7.
-
-Sun Sep 7 12:44:26 2008 Tanaka Akira <akr@fsij.org>
-
- * io.c (make_writeconv): choose ASCII compatible encoding as
- intermediate encoding if stateful encoder exists.
-
-Sun Sep 7 12:09:29 2008 Tanaka Akira <akr@fsij.org>
-
- * include/ruby/encoding.h (ECONV_XML_ATTR_CONTENT_ENCODER): defined.
- (ECONV_STATEFUL_ENCODER_MASK): defined.
- (ECONV_XML_ATTR_QUOTE_ENCODER): defined.
- (ECONV_XML_ATTR_ENCODER): removed.
-
- * enc/trans/escape.trans (rb_escape_xml_attr_content): defined.
- (rb_escape_xml_attr_quote): defined.
- (rb_escape_xml_attr): removed.
-
- * io.c (NEED_WRITECONV): writeconv is required if supplemental
- converter is used.
- (make_writeconv): apply stateful encoder in writeconv.
-
- * transcode.c: follow the constant change.
-
-Sun Sep 7 07:24:09 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * misc/*.el: merged the following patches from Nathan Weizenbaum
- <nex342 at gmail.com>. [ruby-core:18424]
-
- * misc/ruby-mode.el: improve here-doc performance.
-
- * misc/ruby-mode.el: don't crash the whole mode if the Subversion
- $ keyword isn't interpolated.
-
- * misc/ruby-mode.el: don't highlight keywords when they're the
- beginning of non-keyword symbols.
-
- * misc/ruby-mode.el, misc/ruby-electric.el: use regexp-opt where
- possible for more efficient regexps.
-
- * misc/*.el: untabify, for internal consistency and consistency
- with standard Emacs elisp files.
-
- * misc/ruby-mode.el: fix a variable-name error.
-
- * misc/emacs-mode.el: don't set case-fold-search globally to nil;
- instead just set it when we need it.
-
-Sun Sep 7 06:31:51 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * file.c (file_expand_path): applied a patch from Nobuhiro Tachino
- in [ruby-dev:35948]. fix #491
-
-Sun Sep 7 03:37:05 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * parse.y (f_block_optarg): allow default for block parameters as
- long as the value is primary. a patch from Eric Mahurin
- <eric.mahurin at gmail.com> in [ruby-core:16880].
-
-Sun Sep 7 01:07:10 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * parse.y (yylex): "1.upto 2 {|i| p i }" should be syntax error.
- [ruby-dev:36008]
-
- * test/ruby/test_parse.rb (TestParse): update a test not to use
- recently fixed inconsistent syntax.
-
-Sun Sep 7 00:37:25 2008 Tanaka Akira <akr@fsij.org>
-
- * include/ruby/encoding.h (ECONV_ERROR_HANDLER_MASK): defined.
- (ECONV_DECODER_MASK): defined.
- (ECONV_ENCODER_MASK): defined.
-
- * io.c (make_writeconv): restrict ecflags for writeconv with
- ECONV_ERROR_HANDLER_MASK.
-
-Sat Sep 6 23:03:41 2008 Tanaka Akira <akr@fsij.org>
-
- * include/ruby/encoding.h (ECONV_XML_TEXT_ENCODER): renamed from
- ECONV_HTML_TEXT_ENCODER.
- (ECONV_XML_ATTR_ENCODER): renamed from ECONV_HTML_ATTR_ENCODER.
-
- * enc/trans/escape.trans: follow the renaming.
-
- * transcode.c: ditto.
-
-Sat Sep 6 21:35:52 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * ext/socket/mkconstants.rb: add some IPV6 constants. [ruby-dev:36175]
-
-Sat Sep 6 20:10:48 2008 Tanaka Akira <akr@fsij.org>
-
- * transcode.c (econv_description): show ECONV_HTML_TEXT_ENCODER and
- ECONV_HTML_ATTR_ENCODER.
-
-Sat Sep 6 20:06:09 2008 Tanaka Akira <akr@fsij.org>
-
- * transcode.c (rb_econv_binmode): check actual transcoders.
-
-Sat Sep 6 19:54:25 2008 Tanaka Akira <akr@fsij.org>
-
- * transcode.c (rb_econv_open): fix last_tc.
-
-Sat Sep 6 19:36:34 2008 Tanaka Akira <akr@fsij.org>
-
- * io.c (rb_io_binmode): clear newline flags in writeconv_pre_ecflags.
-
-Sat Sep 6 18:47:40 2008 Tanaka Akira <akr@fsij.org>
-
- * transcode.c (str_transcode0): check ECONV_HTML_TEXT_ENCODER and
- ECONV_HTML_ATTR_ENCODER.
-
-Sat Sep 6 18:38:47 2008 Tanaka Akira <akr@fsij.org>
-
- * transcode.c (allocate_converted_string): fix overflow condition.
-
-Sat Sep 6 15:06:21 2008 Tanaka Akira <akr@fsij.org>
-
- * transcode.c (sym_html): new variable.
- (sym_text): ditto.
- (sym_attr): ditto.
- (econv_opts): check :html=>:text and :html=>:attr.
- (Init_transcode): initialize the above variables.
-
-Sat Sep 6 14:46:12 2008 Tanaka Akira <akr@fsij.org>
-
- * include/ruby/encoding.h (ECONV_HTML_TEXT_ENCODER): new constant.
- (ECONV_HTML_ATTR_ENCODER): ditto.
-
- * transcode.c (rb_econv_open): check ECONV_HTML_TEXT_ENCODER and
- ECONV_HTML_ATTR_ENCODER.
- (Init_transcode): Encoding::Converter::HTML_TEXT_ENCODER and
- Encoding::Converter::HTML_ATTR_ENCODER defined.
-
-Sat Sep 6 14:15:25 2008 Tanaka Akira <akr@fsij.org>
-
- * transcode.c (struct trans_open_t): defined to pass num_additional.
- (trans_open_i): use struct trans_open_t.
- (rb_econv_open): ditto.
-
-Sat Sep 6 13:43:20 2008 Tanaka Akira <akr@fsij.org>
-
- * enc/trans/escape.trans (fun_so_escape_html_attr): fix return type.
-
-Sat Sep 6 12:43:55 2008 Tanaka Akira <akr@fsij.org>
-
- * transcode.c (rb_econv_open): needless branch removed.
-
-Sat Sep 6 12:38:34 2008 Tanaka Akira <akr@fsij.org>
-
- * transcode.c (rb_econv_open): test condition simplified.
-
-Sat Sep 6 12:25:31 2008 Tanaka Akira <akr@fsij.org>
-
- * transcode.c (stateless_encoding_i): ignore supplemental conversions.
- Encoding::Converter.stateless_encoding("html-attr-escaped") should be
- nil.
-
-Sat Sep 6 12:19:36 2008 Tanaka Akira <akr@fsij.org>
-
- * enc/trans/escape.trans (escape_html_attr_init): new function.
- (fun_so_escape_html_attr): new function.
- (escape_html_attr_finish): new function.
- (rb_escape_html_attr): use them to quote the converted result.
-
-Sat Sep 6 07:54:36 2008 Tadayoshi Funaba <tadf@dotrb.org>
-
- * complex.c: uses f_real_p macro.
-
-Sat Sep 6 07:27:00 2008 Tanaka Akira <akr@fsij.org>
-
- * transcode.c (rb_econv_open): fail for ASCII incompatible with
- newline conversion.
-
-Sat Sep 6 07:24:49 2008 Tanaka Akira <akr@fsij.org>
-
- * io.c (rb_io_extract_modeenc): raise an error for ASCII incompatible
- encoding without binmode.
-
-Sat Sep 6 07:12:42 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * bignum.c (bigdivrem1): optimization by skipping zeros at the
- tail of digits. a patch from TOYOFUKU Chikanobu
- <nobu_toyofuku at nifty.com> in [ruby-dev:36169].
-
-Sat Sep 6 06:28:46 2008 Tanaka Akira <akr@fsij.org>
-
- * enc/trans/escape.trans: new file.
-
-Sat Sep 6 06:23:27 2008 Tanaka Akira <akr@fsij.org>
-
- * tool/transcode-tblgen.rb (StrSet.parse): accept upper case
- hexadecimal digits.
-
-Sat Sep 6 05:37:08 2008 Tanaka Akira <akr@fsij.org>
-
- * transcode.c (output_hex_charref): upcase hexadecimal digits.
-
-Sat Sep 6 05:22:29 2008 Tanaka Akira <akr@fsij.org>
-
- * include/ruby/encoding.h (ECONV_UNDEF_HEX_CHARREF): defined.
-
- * transcode.c (output_hex_charref): new function.
- (rb_econv_convert): call output_hex_charref if
- ECONV_UNDEF_HEX_CHARREF.
- (Init_transcode): Encoding::Converter::UNDEF_HEX_CHARREF added.
-
-Sat Sep 6 03:52:47 2008 Tanaka Akira <akr@fsij.org>
-
- * transcode.c (rb_econv_convert): use ECONV_INVALID_MASK and
- ECONV_UNDEF_MASK.
-
-Sat Sep 6 06:05:09 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * include/ruby/ruby.h (DBL2NUM): renamed from DOUBLE2NUM.
- a patch from Tadashi Saito <shiba at mail2.accsnet.ne.jp>
- in [ruby-dev:36102].
-
-Sat Sep 6 04:44:06 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * proc.c (Init_Proc): add '===' operator to use procs in when
- clause of the case statement. inspired by <http://www.aimred.com/news/developers/2008/08/14/unlocking_the_power_of_case_equality_proc/>.
-
-Sat Sep 6 03:18:17 2008 Tanaka Akira <akr@fsij.org>
-
- * transcode.c (allocate_converted_string): add arguments for a buffer
- allocated by caller.
- (rb_econv_insert_output): provide caller allocated buffer to
- allocate_converted_string.
-
-Sat Sep 6 02:58:53 2008 Tanaka Akira <akr@fsij.org>
-
- * transcode.c (str_transcode_enc_args): local variables renamed.
- (str_transcode0): ditto.
-
-Sat Sep 6 02:23:18 2008 Tanaka Akira <akr@fsij.org>
-
- * transcode.c (econv_s_stateless_encoding): new method.
-
-Sat Sep 6 02:01:59 2008 Tanaka Akira <akr@fsij.org>
-
- * transcode.c (enc_arg): extracted from str_transcode_enc_args.
- (str_transcode_enc_args): use enc_arg.
-
-Fri Sep 5 20:27:17 2008 Tanaka Akira <akr@fsij.org>
-
- * include/ruby/io.h (rb_io_modestr_fmode): renamed from
- rb_io_mode_flags.
- (rb_io_modestr_oflags): renamed from rb_io_mode_modenum.
- (rb_io_oflags_fmode): renamed from rb_io_modenum_flags.
- (rb_io_mode_flags): defined as a macro.
- (rb_io_modenum_flags): ditto.
-
- * io.c: follow the renaming with consistency.
-
- * process.c (check_exec_redirect): call rb_io_modestr_oflags.
-
- * ext/pty/depend: pty.o depends on io.h.
-
-Fri Sep 5 20:12:23 2008 Tanaka Akira <akr@fsij.org>
-
- * enc/trans/newline.trans (universal_newline_finish): new function.
-
-Fri Sep 5 20:07:37 2008 Tanaka Akira <akr@fsij.org>
-
- * include/ruby/io.h (rb_io_mode_modenum): moved from
- include/ruby/intern.h.
-
-Fri Sep 5 19:59:26 2008 Tanaka Akira <akr@fsij.org>
-
- * io.c (MODENUM_MAX): removed.
-
-Fri Sep 5 18:37:52 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * io.c (copy_stream_fallback_body): use read method unless readpartial
- is available. [ruby-dev:36124]
-
-Fri Sep 5 18:16:31 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/iconv/iconv.c (iconv_create): strips glibc style option before
- charset mapping. retries without options if they seemed causing
- error, and warns. [ruby-dev:36147]
-
-Fri Sep 5 03:09:48 2008 Koichi Sasada <ko1@atdot.net>
-
- * iseq.c (iseq_data_to_ary): make it static.
-
- * thread.c (thgroup_enclose): ditto.
-
-Fri Sep 5 02:56:37 2008 Koichi Sasada <ko1@atdot.net>
-
- * vm.c (thread_recycle_stack_slot, thread_recycle_stack_count):
- make it static.
-
-Fri Sep 5 02:40:38 2008 Koichi Sasada <ko1@atdot.net>
-
- * thread.c (rb_thread_critical): removed.
-
-Fri Sep 5 01:22:23 2008 Tanaka Akira <akr@fsij.org>
-
- * io.c (argf_mark): mark p->encs.ecopts.
-
-Fri Sep 5 00:45:07 2008 Tanaka Akira <akr@fsij.org>
-
- * transcode_data.h (rb_transcoder): rename fields:
- from_encoding -> src_encoding, to_encoding -> dst_encoding.
-
- * transcode.c: follow the renaming.
-
-Fri Sep 5 00:22:34 2008 Tanaka Akira <akr@fsij.org>
-
- * transcode.c: variables renamed for consistency.
-
-Fri Sep 5 00:05:27 2008 Tanaka Akira <akr@fsij.org>
-
- * pack.c (encodes): make buff fixed length to avoid SEGV by
- ruby -e '["a"*10000000].pack("m1000000000")'
-
-Thu Sep 4 23:47:05 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * ext/bigdecimal/bigdecimal.c (BigDecimal_mode): set exception mode
- correctly. In spite of BigDecimal.mode(BigDecimal::EXCEPTION_ALL,
- true), BigDecimal.new("NaN") did not raise an exception previously.
-
-Thu Sep 4 23:42:42 2008 Tanaka Akira <akr@fsij.org>
-
- * include/ruby/intern.h (rb_file_open_str): declared.
-
- * io.c (rb_file_open_str): defined.
-
- * ext/zlib/zlib.c (gzfile_s_open): use rb_file_open_str instead of
- rb_file_open.
-
-Thu Sep 4 23:18:55 2008 Tanaka Akira <akr@fsij.org>
-
- * enc/trans/newline.trans: record newline types met in universal
- newline decoder.
-
-Thu Sep 4 23:05:54 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
-
- * lib/prime.rb (Prime::OldCompatibility#each): added compatibility to
- Ruby 1.8.7.
- (Prime#each): added more rdocs.
- (Prime#each): remembers the last value of the given block.
-
-Thu Sep 4 21:53:58 2008 Tanaka Akira <akr@fsij.org>
-
- * transcode.c (econv_init): accept an integer as 3rd argument as well.
-
-Thu Sep 4 21:46:21 2008 Tanaka Akira <akr@fsij.org>
-
- * transcode.c (sym_partial_input): new variable.
- (econv_primitive_convert): accept a hash as 5th argument as well.
-
-Thu Sep 4 21:04:27 2008 Tanaka Akira <akr@fsij.org>
-
- * transcode.c (sym_universal_newline_decoder): new variable.
- (sym_crlf_newline_encoder): ditto.
- (sym_cr_newline_encoder): ditto.
- (econv_opts): check newline converter options.
- (econv_init): make 3rd argument hash/nil only.
-
-Thu Sep 4 21:03:28 2008 Koichi Sasada <ko1@atdot.net>
-
- * vm_dump.c: rename some debug functions.
-
-Thu Sep 4 20:57:54 2008 Koichi Sasada <ko1@atdot.net>
-
- * thread.c (rb_thread_check_trap_pending): added for compatibility.
-
- * ext/tk/tcltklib.c, ext/tk/tkutil/tkutil.c: remove ruby/signal.h
- dependency.
-
-Thu Sep 4 20:30:24 2008 Tanaka Akira <akr@fsij.org>
-
- * transcode_data.h (PType): defined unconditionally.
-
- * transcode.c (PType): don't define here.
-
-Thu Sep 4 20:19:36 2008 Tanaka Akira <akr@fsij.org>
-
- * io.c: variables renamed for consistency.
-
-Thu Sep 4 19:40:50 2008 Narihiro Nakamura <authorNari@gmail.com>
-
- * gc.c (gc_profile_record_get): to static function.
- (gc_profile_result): ditto.
- (gc_profile_report): ditto.
-
-Thu Sep 4 19:20:24 2008 Tanaka Akira <akr@fsij.org>
-
- * include/ruby/io.h (rb_io_enc_t): rename flags to ecflags.
- (rb_io_t): rename writeconv_pre_flags to writeconv_pre_ecflags.
- (MakeOpenFile): follow the renaming.
-
- * io.c: follow the renaming.
-
-Thu Sep 4 19:10:27 2008 Tanaka Akira <akr@fsij.org>
-
- * include/ruby/encoding.h (ECONV_INVALID_IGNORE): removed because
- it tend to cause security problem. If the behaviour is really
- required, ECONV_INVALID_REPLACE with empty string can be used.
- For example, CVE-2006-2313, CVE-2008-1036, [ruby-core:15645],
- http://unicode.org/reports/tr36/
- (ECONV_UNDEF_IGNORE): ditto.
-
- * transcode.c (rb_econv_convert): follow the above change.
- (econv_opts): ditto.
- (Init_transcode): ditto.
-
-Thu Sep 4 13:22:02 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * vm_core.h (struct rb_vm_struct): replaced signal staff with trap
- staff.
-
- * signal.c (signal_buff): per process resource now.
-
- * signal.c (trap_list): moved to VM.
-
- * signal.c (rb_get_next_signal): reverted.
-
- * signal.c (rb_trap_exit): trap_pending_list was no longer used.
-
- * thread.c (timer_thread_function): delivers buffered per-process
- signals to each VMs.
-
- * vm.c (rb_vm_mark): marks trap_list.
-
-Thu Sep 4 13:01:11 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * io.c (struct sysopen_struct, rb_sysopen_internal, rb_sysopen):
- constified.
-
- * io.c: expanded ARGF members macros.
-
-Thu Sep 4 10:43:47 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * tool/transcode-tblgen.rb (citrus_decode_mapsrc): support older 1.8.
-
-Thu Sep 4 10:33:43 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * io.c (argf_next_argv, argf_set_encoding): copy struct wise.
-
-Thu Sep 4 09:46:18 2008 Tanaka Akira <akr@fsij.org>
-
- * io.c (rb_scan_open_args): follow rb_str_transcode change.
-
-Thu Sep 4 08:59:29 2008 Tanaka Akira <akr@fsij.org>
-
- * file.c (rb_find_file): fix GC problem on Debian GNU/Linux (IA64)
- with gcc (GCC) 4.1.2 20061115 (prerelease) (Debian 4.1.1-21).
- There is no register/memory to contain load_path. A register (r35)
- contains &RARRAY_PTR(load_path), (char*)load_path + 32.
-
-Thu Sep 4 03:10:05 2008 Tanaka Akira <akr@fsij.org>
-
- * include/ruby/io.h (rb_io_t): new fields: encs.ecopts and
- writeconv_pre_ecopts.
- (MakeOpenFile): initialize them.
-
- * include/ruby/encoding.h (rb_str_transcode): take ecopts argument.
- (rb_econv_flags): removed.
- (rb_econv_prepare_opts): declared.
- (rb_econv_open_opts): declared.
-
- * io.c (make_writeconv): use rb_econv_open_opts.
- (make_readconv): ditto.
- (io_fwrite): follow rb_str_transcode change.
- (rb_io_extract_modeenc): use rb_econv_prepare_opts.
- (rb_file_open_generic): initialize encs.ecopts.
- (rb_file_open_internal): ditto.
- (rb_io_reopen): ditto.
- (argf_ecopts): defined.
- (argf_next_argv): set encs.ecopts.
- (io_encoding_set): use rb_econv_prepare_opts.
- (argf_set_encoding): set argf_ecopts.
-
- * gc.c (gc_mark_children): mark encs.ecopts and writeconv_pre_ecopts
- in T_FILE.
-
- * transcode.c (transcode_loop): take ecopts argument. use
- rb_econv_open_opts.
- (rb_econv_flags): removed.
- (rb_econv_prepare_opts): defined.
- (rb_econv_open_opts): defined.
- (str_transcode0): take ecopts.
- (str_transcode): use rb_econv_prepare_opts.
- (rb_str_transcode): take ecopts.
- (econv_init): accept hash argument.
- (econv_insert_output): follow rb_str_transcode change.
-
-Thu Sep 4 01:30:26 2008 Tanaka Akira <akr@fsij.org>
-
- * include/ruby/encoding.h (rb_econv_set_replacemenet): declared.
-
- * transcode.c (rb_econv_t): new fields: replacement_str,
- replacement_len, replacement_enc and replacement_allocated.
- (get_replacement_character): make len as size_t.
- (rb_econv_open_by_transcoder_entries): initialize the new fields.
- (rb_econv_close): deallocate replacement_str if it allocated.
- (make_replacement): new function.
- (output_replacement_character): use make_replacement.
- (rb_econv_set_replacemenet): defined.
- (econv_get_replacement): new method.
- (econv_set_replacement): new method.
-
-Thu Sep 4 01:12:03 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * win32/win32.c (filetime_to_timeval): new function, split from
- gettimeofday().
-
- * win32/win32.c (gettimeofday): use above function.
-
- * win32/win32.c (filetime_to_unixtime): ditto. [ruby-dev:36135]
-
-Thu Sep 4 01:00:57 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * transcode.c (transcode_restartable0): avoid VC++6's bug.
-
-Thu Sep 4 00:26:27 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * io.c (make_writeconv): follow akr's previous commit.
-
-Thu Sep 4 00:09:05 2008 Tanaka Akira <akr@fsij.org>
-
- * include/ruby/encoding.h (rb_econv_option_t): removed. Since
- rb_econv_option_t has only one field, int flags, rb_econv_option_t is
- replaced by int.
-
- * include/ruby/io.h: follow the above change.
-
- * io.c: ditto.
-
- * transcode.c: ditto.
-
-Thu Sep 4 00:04:59 2008 Koichi Sasada <ko1@atdot.net>
-
- * win32/win32.c: fix ruby/signal.h depending codes.
-
-Thu Sep 4 00:01:45 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * test/etc/test_etc.rb (test_getpwuid, test_getgrgid): use
- Process.euid and egid instead of Etc.getlogin to identify current
- user which may be different from a login one (e.g., su command).
-
-Wed Sep 3 23:52:47 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * test/etc/test_etc.rb: check only typical use of
- setpwent/getpwent/endpwent and setgrent/getgrent/endgrent.
-
-Wed Sep 3 23:33:09 2008 Tanaka Akira <akr@fsij.org>
-
- * transcode.c (rb_transcoding): moved from transcode_data.h.
- (TRANSCODING_READBUF): ditto.
- (TRANSCODING_WRITEBUF): ditto.
- (TRANSCODING_STATE_EMBED_MAX): ditto.
- (TRANSCODING_STATE): ditto.
-
-Wed Sep 3 23:03:37 2008 Tanaka Akira <akr@fsij.org>
-
- * transcode_data.h (rb_transcoding): remove stateful field.
- add state field.
- (TRANSCODING_STATE): defined.
- (rb_transcoder): add fields: state_size, state_init_func,
- state_fini_func.
- change rb_transcoding* argument to void*.
-
- * transcode.c (transcode_restartable0): use TRANSCODING_STATE for
- first arguments of transcoder functions.
- (rb_transcoding_open_by_transcoder): initialize state field.
- (rb_transcoding_close): finalize state field.
-
- * tool/transcode-tblgen.rb: provide state size/init/fini.
-
- * enc/trans/newline.trans (universal_newline_init): defined.
- (fun_so_universal_newline): take void* as a state pointer.
- (rb_universal_newline): provide state size/init/fini.
- (rb_crlf_newline): ditto.
- (rb_cr_newline): ditto.
-
- * enc/trans/iso2022.trans (iso2022jp_init): defined.
- (fun_si_iso2022jp_to_eucjp): take void* as a state pointer.
- (fun_so_iso2022jp_to_eucjp): ditto.
- (fun_so_eucjp_to_iso2022jp): ditto.
- (iso2022jp_reset_sequence_size): ditto.
- (finish_eucjp_to_iso2022jp): ditto.
- (rb_ISO_2022_JP_to_EUC_JP): provide state size/init/fini.
- (rb_EUC_JP_to_ISO_2022_JP): ditto.
-
- * enc/trans/utf_16_32.trans (fun_so_from_utf_16be): take void* as a
- state pointer.
- (fun_so_to_utf_16be): ditto.
- (fun_so_from_utf_16le): ditto.
- (fun_so_to_utf_16le): ditto.
- (fun_so_from_utf_32be): ditto.
- (fun_so_to_utf_32be): ditto.
- (fun_so_from_utf_32le): ditto.
- (fun_so_to_utf_32le): ditto.
- (rb_from_UTF_16BE): provide state size/init/fini.
- (rb_to_UTF_16BE): ditto.
- (rb_from_UTF_16LE): ditto.
- (rb_to_UTF_16LE): ditto.
- (rb_from_UTF_32BE): ditto.
- (rb_to_UTF_32BE): ditto.
- (rb_from_UTF_32LE): ditto.
- (rb_to_UTF_32LE): ditto.
-
- * enc/trans/japanese.trans (fun_so_eucjp2sjis): take void* as a state
- pointer.
- (fun_so_sjis2eucjp): ditto.
- (rb_eucjp2sjis): provide state size/init/fini.
- (rb_sjis2eucjp): provide state size/init/fini.
-
-Wed Sep 3 22:31:11 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
-
- * lib/mathn.rb (Integer): moved into prime.rb.
- (Prime): ditto.
-
- * lib/prime.rb (Integer): moved from mathn.rb.
- (Integer.each_prime): added.
- (Integer#prime?): added.
- (Prime): moved from mathn.rb.
- Its implementation was rewritten. see [ruby-dev:35863].
- And patched by Keiju ISHITSUKA <keiju@ishitsuka.com>,
- see [ruby-dev:36128].
- (Prime.new): obsolete.
- (Prime.instance): added.
- (Prime.each): added.
- (Prime.int_from_prime_division): added.
- (Prime.prime_division): added.
- (Prime.prime?): added.
- Patch by TOYOFUKU Chikanobu
- <nobu_toyofuku at nifty.com> in [ruby-dev:36067].
- (Prime.cache): removed.
- (Prime.primes): removed.
- (Prime.primes_so_far): removed.
- (Prime#int_from_prime_division): added.
- (Prime#prime_division): added.
- (Prime#prime?): added.
- (Prime#primes): removed.
- (Prime#primes_so_far): removed.
- (Prime::PseudoPrmeGenerator): added.
- (Prime::EratosthenesGenerator): added.
- (Prime::TrialDivisionGenerator): added.
- (Prime::Generator23): added.
- (Prime::TrialDivision): added.
- Extracted from the previous implementation of Prime
- by Keiju ISHITSUKA.
- (Prime::EratosthenesSieve): added.
-
- * lib/.document (prime.rb): added
-
- * lib/README (prime.rb): added
-
- * test/test_prime.rb: added.
-
-Wed Sep 3 21:49:00 2008 David A. Black <dblack@rubypal.com>
-
- * lib/scanf.rb: fixed bug involving matching literal '['
-
- * test/scanf/test_scanf.rb: added test for scanf.rb fix
-
-Wed Sep 3 21:31:59 2008 Tanaka Akira <akr@fsij.org>
-
- * transcode_data.h (WORDINDEX_SHIFT_BITS): defined.
- (WORDINDEX2INFO): defined.
- (INFO2WORDINDEX): defined.
-
- * tool/transcode-tblgen.rb: use WORDINDEX2INFO.
-
- * transcode.c: use INFO2WORDINDEX.
-
-Wed Sep 3 21:19:51 2008 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
-
- * golf_prelude.rb: suppress warnings when goruby -v.
-
-Wed Sep 3 21:07:30 2008 Tanaka Akira <akr@fsij.org>
-
- * transcode.c (BL_MIN_BYTE): defined.
- (BL_MAX_BYTE): defined.
- (BL_OFFSET): defined.
- (BL_ACTION): defined.
- (transcode_restartable0): use BL_MIN_BYTE, BL_MAX_BYTE and
- BL_ACTION.
-
-Wed Sep 3 20:58:30 2008 Tanaka Akira <akr@fsij.org>
-
- * transcode.c (BYTE_ADDR): defined.
- (WORD_ADDR): ditto.
- (BL_BASE): use BYTE_ADDR and WORD_ADDR.
- (BL_INFO): use WORD_ADDR.
-
-Wed Sep 3 20:47:31 2008 Tanaka Akira <akr@fsij.org>
-
- * transcode_data.h (rb_transcoder): new field: byte_array_length and
- word_array_length.
-
- * tool/transcode-tblgen.rb (transcode_generated_code): generate
- byte_array_length and word_array_length.
-
-Wed Sep 3 20:34:10 2008 Tanaka Akira <akr@fsij.org>
-
- * tool/transcode-tblgen.rb (ArrayCode): new class.
- (ActionMap#gen_array_code): moved to ArrayCode.
- (ActionMap#numelt_array_code): ditto.
- (ActionMap#array_code_insert_at_last): ditto.
- (TRANSCODE_GENERATED_BYTES_CODE): use ArrayCode.
- (TRANSCODE_GENERATED_WORDS_CODE): ditto.
-
-Wed Sep 3 20:08:35 2008 Tanaka Akira <akr@fsij.org>
-
- * enc/trans/japanese.trans: new file.
-
-Wed Sep 3 20:04:33 2008 Tanaka Akira <akr@fsij.org>
-
- * tool/transcode-tblgen.rb (ActionMap#gen_array_code): extracted from
- generate_lookup_node.
- (ActionMap#numelt_array_code): ditto.
- (ActionMap#array_code_insert_at_last): ditto.
-
-Wed Sep 3 20:01:01 2008 Tanaka Akira <akr@fsij.org>
-
- * parse.y (parser_encoding_name): defined.
- (parser_tokadd_mbchar): show encoding in the message of
- "invalid multibyte char" error.
-
-Wed Sep 3 19:28:04 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * vm_insnhelper.c (vm_method_missing): C99.
-
-Wed Sep 3 19:18:12 2008 Koichi Sasada <ko1@atdot.net>
-
- * test/ruby/test_thread.rb: fix test.
- [ruby-dev:35960]
-
-Wed Sep 3 17:48:32 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * enc/trans/make_transdb.rb: check $(srcdir)/enc/trans before
- enc/trans.
-
- * enc/trans/make_transdb.rb: keep names_t.
-
-Wed Sep 3 16:54:46 2008 Koichi Sasada <ko1@atdot.net>
-
- * include/ruby/signal.h: removed.
-
- * common.mk, class.c, eval.c, eval_intern.h, file.c, gc.c, hash.c,
- io.c, process.c, signal.c: vm_core.h: ditto.
- Some unused external global variables are also removed.
- (rb_prohibit_interrupt, rb_trap_immediate, rb_trap_pending,
- rb_thread_critical)
-
- * ext/openssl/ossl_ssl.c, ext/openssl/ossl_x509store.c,
- ext/readline/readline.c, ext/socket/depend,
- ext/socket/socket.c: ditto.
-
-Wed Sep 3 00:23:25 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * vm_insnhelper.c (vm_method_missing): copy arguments to allocated
- memory from machine stack. [ruby-dev:36064]
-
-Tue Sep 2 22:20:26 2008 Tanaka Akira <akr@fsij.org>
-
- * transcode_data.h (base_element): removed.
- (BYTE_LOOKUP): removed.
- (BYTE_LOOKUP_BASE): don't cast.
- (BYTE_LOOKUP_INFO): ditto.
- (PType): unsigned int, instead of uintptr_t.
- (rb_transcoding): change type of next_field, conv_tree_start and
- word_array.
-
- * tool/transcode-tblgen.rb: generate word_array as array of unsigned
- int.
-
- * transcode.c (transcode_restartable0): follow the above type change.
-
-Tue Sep 2 21:22:22 2008 Tanaka Akira <akr@fsij.org>
-
- * tool/transcode-tblgen.rb: add prefix for byte_array and word_array.
-
-Tue Sep 2 20:57:14 2008 Tanaka Akira <akr@fsij.org>
-
- * enc/trans/make_transdb.rb: check foo.c only if foo.trans exists.
-
-Tue Sep 2 19:19:55 2008 Tanaka Akira <akr@fsij.org>
-
- * enc/trans/make_transdb.rb: error message improved.
-
-Tue Sep 2 14:05:50 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * enc/trans/utf_16_32.trans (from_UTF_8): rename from to_UTF_16BE
- because it was not collect.
-
-Tue Sep 2 14:00:54 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
-
- * enc/emacs_mule.c (svn:executable): dropped executable bit.
-
- * enc/make_encdb.rb (svn:executable): ditto.
-
-Tue Sep 2 12:58:58 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * win32/Makefile.sub (COMPILERFLAG): new compiler flag to compile
- enc/trans/japanese*.c.
-
-Tue Sep 2 12:37:10 2008 Tanaka Akira <akr@fsij.org>
-
- * enc/trans/japanese_euc.trans: splitted from japanese.trans to avoid
- compiler limitation. reported by usa.
-
- * enc/trans/japanese_sjis.trans: ditto.
-
-Tue Sep 2 12:31:24 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * win32/Makefile.sub (miniruby): new target.
-
-Tue Sep 2 11:47:36 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * marshal.c (struct load_arg): data is now st_table.
-
- * marshal.c (mark_load_arg): marks data and compat_tbl.
-
- * marshal.c (r_object0): no need to check if reentered.
-
- * marshal.c (marshal_load): make the wrapper with mark_load_arg.
-
-Tue Sep 2 10:49:18 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * win32/win32.c (gettimeofday): easier calculation. use the definition
- of the Gregorian calendar.
-
-Tue Sep 2 10:33:12 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
-
- * common.mk (distclean-golf): moved golf_prelude.c here from
- distclean-local.
- (GOLFPRELUDE): added.
- (distclean-local): moved golf_prelude.c into distclean-golf.
-
-Tue Sep 2 10:09:17 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * win32/win32.c (gettimeofday): calc tv_sec and tv_usec from system
- time by myself. [ruby-dev:36084]
-
-Tue Sep 2 04:00:37 2008 Tanaka Akira <akr@fsij.org>
-
- * transcode_data.h (o3): prevent sign extension on 64bit environment.
- (o4): ditto.
-
-Tue Sep 2 03:26:24 2008 Tanaka Akira <akr@fsij.org>
-
- * tool/transcode-tblgen.rb: comment removed in generated code.
-
-Tue Sep 2 03:16:42 2008 Tanaka Akira <akr@fsij.org>
-
- * tool/transcode-tblgen.rb: define TRANSCODE_TABLE_INFO in generated
- code. use it in rb_transcoder.
-
- * enc/trans/newline.trans: use TRANSCODE_TABLE_INFO.
-
- * enc/trans/iso2022.trans: ditto.
-
- * enc/trans/utf_16_32.trans: ditto.
-
-Tue Sep 2 03:04:33 2008 Tanaka Akira <akr@fsij.org>
-
- * tool/transcode-tblgen.rb: record infos and BYTE_LOOKUPs as index of
- word_array to avoid relocation.
-
- * transcode.c (transcode_restartable0): add word_array to get infos
- and BYTE_LOOKUPs.
-
- * transcode_data.h (BYTE_LOOKUP_INFO): change return type to
- uintptr_t.
-
-Tue Sep 2 02:48:30 2008 Tanaka Akira <akr@fsij.org>
-
- * tool/transcode-tblgen.rb: don't need to cast offsets array.
-
-Tue Sep 2 02:36:20 2008 Tanaka Akira <akr@fsij.org>
-
- * tool/transcode-tblgen.rb: record offsets array as index of
- byte_array to avoid relocation.
-
- * transcode.c (transcode_restartable0): add byte_array to get offsets
- array.
-
- * transcode_data.h (BYTE_LOOKUP_BASE): change return type to
- uintptr_t.
- (rb_transcoder): add fields: byte_array, word_array and word_size.
-
- * enc/trans/newline.trans: follow rb_transcoder change.
-
- * enc/trans/iso2022.trans: ditto.
-
- * enc/trans/utf_16_32.trans: ditto.
-
-Tue Sep 2 02:05:14 2008 Tanaka Akira <akr@fsij.org>
-
- * tool/transcode-tblgen.rb: make infos arrays and BYTE_LOOKUPs into
- single array.
-
-Tue Sep 2 01:47:44 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
-
- * common.mk (clean-golf): added.
- (distclean-golf): added.
- (realclean-golf): added.
- (clean): added clean-golf.
- (distclean): added distclean-golf.
- (realclean): added realclean-golf.
-
-Tue Sep 2 01:31:45 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
-
- * common.mk (realclean-local): added newline.c.
-
-Tue Sep 2 01:19:15 2008 Tanaka Akira <akr@fsij.org>
-
- * transcode_data.h (BYTE_LOOKUP): change to uintptr_t array.
- (BYTE_LOOKUP_BASE): follow the type change.
- (BYTE_LOOKUP_INFO): ditto.
- (PType): ditto.
- (rb_transcoding): ditto.
-
- * tool/transcode-tblgen.rb: follow the type change.
-
- * transcode.c: ditto.
-
- * enc/trans/newline.trans: ditto.
-
- * enc/trans/iso2022.trans: ditto.
-
- * enc/trans/utf_16_32.trans: ditto.
-
-Mon Sep 1 23:32:46 2008 Tanaka Akira <akr@fsij.org>
-
- * transcode_data.h (BYTE_LOOKUP_BASE): abstract accessor for
- BYTE_LOOKUP.
- (BYTE_LOOKUP_INFO): ditto.
-
- * transcode.c (transcode_restartable0): use BYTE_LOOKUP_BASE and
- BYTE_LOOKUP_INFO.
-
-Mon Sep 1 23:14:25 2008 Tanaka Akira <akr@fsij.org>
-
- * tool/transcode-tblgen.rb: gather infos arrays and BYTE_LOOKUPs.
-
-Mon Sep 1 22:42:54 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
-
- * lib/mkmf.rb (distclean): added RM_RF conftest.dSYM.
- Fixes distclean-ext problem on Mac OS X.
- (RM_RF): added.
-
-Mon Sep 1 22:37:06 2008 Shugo Maeda <shugo@ruby-lang.org>
-
- * lib/rexml/document.rb: limit entity expansion. Thanks, Luka
- Treiber, Mitja Kolsek, and Michael Koziarski.
-
- * lib/rexml/entity.rb: ditto.
-
- * test/rexml/test_document.rb: ditto.
-
-Mon Sep 1 22:20:22 2008 Tanaka Akira <akr@fsij.org>
-
- * tool/transcode-tblgen.rb: make offsets arrays into single array.
-
-Mon Sep 1 21:46:18 2008 Tanaka Akira <akr@fsij.org>
-
- * tool/transcode-tblgen.rb: gather offsets arrays at top.
-
-Mon Sep 1 21:09:04 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
-
- * ./: removed rubyspec from svn:ignore subversion property.
- rubyspec directory is no longer used.
-
- * spec: added mspec and rubyspec to svn:ignore.
-
-Mon Sep 1 19:37:19 2008 Tanaka Akira <akr@fsij.org>
-
- * tool/transcode-tblgen.rb: ValidEncoding['eucJP-ms'] defined.
- "\xA2\xAF".encode("utf-8", "eucJP-ms") should raise
- Encoding::ConversionUndefined, not Encoding::InvalidByteSequence.
-
-Mon Sep 1 18:27:51 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * win32/win32.c (gettimeofday): shouldn't use mktime(3) because it's
- buggy about handling summer time.
- reported by Yoshikawa <yoshixool AT gmail.com> at [ruby-dev:36071]
-
-Mon Sep 1 17:07:23 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * enc/euc_jp.c (euc-jp-ms): euc-jp-ms is not an alias of EUC-JP
- but eucJP-ms.
-
- * enc/trans/japanese.trans (eucJP-ms): eucJP-ms is the correct
- name of the encoding in Ruby. [ruby-dev:36070]
-
-Mon Sep 1 16:48:50 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/digest/md5/md5init.c (md5), ext/digest/rmd160/rmd160init.c
- (rmd160) ext/digest/sha1/sha1init.c (sha1),
- ext/digest/sha2/sha2init.c (sha256, sha384, sha512): constified.
-
-Mon Sep 1 15:15:40 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * enc/trans/japanese.trans: fix mapping priority.
- IBM extended is prior than NEC selected IBM.
-
-Mon Sep 1 14:44:22 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * tool/transcode-tblgen.rb (transcode_compile_tree): use the first
- mapping when some mappings are given for a character.
- [ruby-dev:36068]
-
- * tool/transcode-tblgen.rb: expandtab.
-
-Mon Sep 1 14:40:18 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
-
- * README.EXT (Appendix A): fixed the name of class
- Enumerator. Enumerable::Enumerator was renamed just
- Enumerator at revision 18564.
-
- * README.EXT (Appendix A): ditto.
-
-Mon Sep 1 14:37:58 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * tool/transcode-tblgen.rb: set ERB source filename for error message.
-
-Mon Sep 1 14:37:02 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * enc/depend: transdb.c may not present.
-
-Mon Sep 1 14:25:26 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * enc/trans/japanese.trans: fix Ruby 1.8 compatibility.
-
- * enc/trans/japanese.trans: fix mapping priority. [ruby-dev:36068]
-
-Mon Sep 1 14:24:14 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * test/ruby/test_transcode.rb (test_windows_31j): added.
-
-Mon Sep 1 14:00:04 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
-
- * README.EXT (Data-types): fixed for current status.
- (Manipulating Ruby data): mentioned some more functions.
- (Class/module definition): ditto.
- (Global variables shared between C and Ruby):
- fixed prototypes for the getter/setter's of global variables.
- (Appendix A): mentioned some more files.
-
- * README.EXT.ja: ditto.
-
-Mon Sep 1 11:31:49 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/fileutils.rb (copy_stream, fu_copy_stream0, copy_file): use
- IO.copy_stream to get rid of extraneous conversion.
-
-Mon Sep 1 02:55:15 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * strftime.c (rb_strftime): calc timezone offset by myself if system
- doesn't provide timezone info.
-
-Mon Sep 1 02:48:28 2008 Tanaka Akira <akr@fsij.org>
-
- * tool/transcode-tblgen.rb: change "illegal" to "invalid".
-
-Mon Sep 1 02:31:16 2008 Tanaka Akira <akr@fsij.org>
-
- * tool/transcode-tblgen.rb (transcode_generated_code): defined for
- generating table at once.
- (transcode_tblgen): returns an empty string.
- (transcode_generate_node): ditto.
-
- * enc/trans/newline.trans: use transcode_generated_code.
-
- * enc/trans/iso2022.trans: ditto.
-
- * enc/trans/single_byte.trans: ditto.
-
- * enc/trans/utf_16_32.trans: ditto.
-
- * enc/trans/japanese.trans: ditto.
-
- * enc/trans/korean.trans: ditto.
-
-Mon Sep 1 02:10:03 2008 Tanaka Akira <akr@fsij.org>
-
- * tool/transcode-tblgen.rb (citrus_decode_mapsrc): print logging
- message on STDERR.
-
-Mon Sep 1 01:24:09 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * enc/trans/eucjp-tbl.rb: replace by previous Citrus maps.
-
- * enc/trans/sjis-tbl.rb: ditto.
-
-Mon Sep 1 01:18:26 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * tool/transcode-tblgen.rb: add table generator from Citrus maps.
-
- * enc/trans/japanese.trans: use Citrus maps.
-
- * enc/trans/CP: add maps from Citrus.
-
- * enc/trans/JIS: ditto.
-
- * test/ruby/test_transcode.rb: Shift_JIS and EUC-JP doesn't support
- IBM extended characters.
-
-Mon Sep 1 00:19:45 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
-
- * common.mk (docs): removed a useless make target.
- tool/makedoc.rb was removed at revision 13919.
-
-Sun Aug 31 20:49:42 2008 Tadayoshi Funaba <tadf@dotrb.org>
-
- * complex.c (numeric_abs2): new.
-
-Sun Aug 31 18:22:04 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/mkmf.rb (have_devel?): checks if the compiler works.
-
-Sun Aug 31 18:02:41 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
-
- * Temporarily uses git://github.com/yugui/rubyspec.git
- until specs for 1.9 is merged into
- git://github.com/rubyspec/rubyspec.git.
-
-Sun Aug 31 18:06:49 2008 Tanaka Akira <akr@fsij.org>
-
- * transcode.c (transcode.c): set source_encoding and
- destination_encoding as encoding object.
- (ecerr_source_encoding): new method.
- (ecerr_destination_encoding): ditto.
-
-Sun Aug 31 17:58:59 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/mkmf.rb (Logging.log_open): opens in binary mode to get rid of
- extra CR.
-
- * lib/mkmf.rb (try_func, try_var, have_struct_member),
- (scalar_ptr_type?, scalar_type?): use MAIN_DOES_NOTHING.
-
- * lib/mkmf.rb (MAIN_DOES_NOTHING): defaults to ordinary main.
-
- * win32/Makefile.sub (config): for MAIN_DOES_NOTHING for wince.
-
-Sun Aug 31 17:30:35 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
-
- * spec/README (How to run): added.
-
-Sun Aug 31 17:28:25 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
-
- * spec/default.mspec (config): added.
-
- * spec/default.mspec (target): replaced the built ruby
- to runruby.rb.
- Improved $LOAD_PATH on running specs.
-
- * spec/default.mspec (flags): ditto.
-
-Sun Aug 31 17:16:07 2008 Tanaka Akira <akr@fsij.org>
-
- * transcode.c (make_econv_exception): rename instance variable names
- for storing encoding names.
- (ecerr_source_encoding_name): method renamed.
- (ecerr_destination_encoding_name): ditto.
-
-Sun Aug 31 16:57:36 2008 Tanaka Akira <akr@fsij.org>
-
- * transcode.c (econv_putback): associate encoding to the result.
-
-Sun Aug 31 16:43:56 2008 Koichi Sasada <ko1@atdot.net>
-
- * include/ruby/intern.h: rename RB_UBF_DFL to
- RUBY_UBF_IO and RUBY_UBF_PROCESS.
- Because there is no default (universal) unblocking function.
-
- * ext/socket/socket.c, file.c, io.c, process.c, thread.c: ditto.
-
-Sun Aug 31 16:42:23 2008 Tanaka Akira <akr@fsij.org>
-
- * transcode.c (econv_insert_output): raise ArgumentError on failure.
-
-Sun Aug 31 16:39:17 2008 Koichi Sasada <ko1@atdot.net>
-
- * bootstraptest/test_thread.rb: add a test.
-
-Sun Aug 31 16:34:41 2008 Tanaka Akira <akr@fsij.org>
-
- * enc/trans/single_byte.trans (us_ascii_map): don't define 8bit bytes.
-
-Sun Aug 31 14:27:27 2008 Tanaka Akira <akr@fsij.org>
-
- * transcode.c (econv_last_error): new method.
-
-Sun Aug 31 14:17:34 2008 Tanaka Akira <akr@fsij.org>
-
- * transcode.c (econv_primitive_convert): make two arguments,
- destination_byteoffset and destination_bytesize, optional.
-
-Sun Aug 31 14:12:06 2008 Tanaka Akira <akr@fsij.org>
-
- * transcode.c (make_econv_exception): error message simplified.
-
-Sun Aug 31 13:47:59 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/coverage/coverage.c (rb_mCoverage): removed unneeded static variable.
-
- * ext/socket/socket.c (unix_recv_io): ditto.
-
- * ext/socket/socket.c (mConst): ditto.
-
-Sun Aug 31 13:45:41 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/openssl/ossl_ocsp.c (ossl_ocspres_initialize): fix for
- initialization of r18168.
-
-Sun Aug 31 13:42:39 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/ripper/eventids2.c (ripper_init_eventids2): use rb_intern_const.
-
- * ext/ripper/tools/generate.rb (generate_eventids1): ditto.
-
- * ext/ripper/tools/generate.rb (generate_eventids2_table): ditto.
-
-Sun Aug 31 12:56:00 2008 Tanaka Akira <akr@fsij.org>
-
- * ext/dl/mkcallback.rb (rb_dl_init_callbacks): fix indent.
-
-Sun Aug 31 11:39:21 2008 Tanaka Akira <akr@fsij.org>
-
- * ext/strscan/strscan.c (strscan_do_scan): fix usecnt decrement.
-
-Sun Aug 31 04:38:47 2008 Tanaka Akira <akr@fsij.org>
-
- * transcode.c (econv_putback): make max argument optional.
-
-Sun Aug 31 04:35:21 2008 Tanaka Akira <akr@fsij.org>
-
- * transcode.c (rb_econv_putback): putback from last byte.
-
-Sun Aug 31 04:27:04 2008 Tanaka Akira <akr@fsij.org>
-
- * transcode.c (econv_putback): renamed from econv_primitive_putback.
-
-Sun Aug 31 04:22:51 2008 Tanaka Akira <akr@fsij.org>
-
- * transcode.c (econv_insert_output): renamed from
- econv_primitive_insert_output.
-
-Sun Aug 31 04:20:46 2008 Tanaka Akira <akr@fsij.org>
-
- * test/ruby/test_econv.rb: follow econv_primitive_errinfo change.
-
-Sun Aug 31 03:44:24 2008 Tanaka Akira <akr@fsij.org>
-
- * transcode.c (econv_primitive_errinfo): 5th element (partial_input)
- removed from result.
-
-Sun Aug 31 01:53:31 2008 Tanaka Akira <akr@fsij.org>
-
- * ext/dl/mkcallback.rb: split callback.h to callback-[0-9].c to reduce
- memory consumption on compilation. [ruby-dev:31898]
-
- * ext/dl/depend: add dependency for callback-[0-9].[co].
-
-Sun Aug 31 01:27:46 2008 Tanaka Akira <akr@fsij.org>
-
- * ext/dl/mkcallback.rb (foreach_proc_entry): extracted.
- (gencallback): ditto.
- (gen_push_proc_ary): ditto.
- (gen_push_addr_ary): ditto.
-
-Sat Aug 30 23:51:01 2008 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
-
- * test/rinda/test_tuplebag.rb (test_has_expires_eh): fix failures
- [ruby-dev:35937].
-
-Sat Aug 30 23:38:00 2008 Tanaka Akira <akr@fsij.org>
-
- * ext/dl/test/test_import.rb: fix character code.
-
- * ext/dl/test/test_func.rb: ditto.
-
-Sat Aug 30 22:23:31 2008 Tadayoshi Funaba <tadf@dotrb.org>
-
- * rational.c: added a static variable for nurat_to_f.
-
-Sat Aug 30 20:05:41 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * win32/win32.c (rb_w32_open, rb_w32_read, rb_w32_write): fallback to
- MSVCRT if text mode is specified. this case will not be used from
- ruby itself.
-
-Sat Aug 30 19:49:38 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * win32/win32.c (rb_w32_read): EOF is not error.
- ref [ruby-dev:36050]
-
-Sat Aug 30 18:17:40 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * parse.y (struct token_info): constified.
-
- * parse.y (token_info_get_column, token_info_has_nonspaces),
- (token_info_push, token_info_pop): constified.
-
-Sat Aug 30 15:43:03 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * ext/openssl/ossl_config.c (Init_ossl_config): memory leak fixed.
- a patch <shinichiro.hamaji at gmail.com> in [ruby-dev:35880].
-
- * ext/openssl/ossl_x509ext.c (ossl_x509ext_set_value): ditto.
-
- * ext/strscan/strscan.c (strscan_do_scan): ditto.
-
-Sat Aug 30 14:58:32 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/openssl/ossl_x509ext.c (ossl_x509ext_initialize): fix for
- initialization of r18168.
-
-Sat Aug 30 14:47:30 2008 Tanaka Akira <akr@fsij.org>
-
- * ext/dl/mkcallback.rb: fix continuation line detection.
-
-Sat Aug 30 14:39:51 2008 Tanaka Akira <akr@fsij.org>
-
- * ext/dl/mkcallback.rb (rb_dl_init_callbacks): avoid GC problem which
- is caused by 'GC.stress=true; require "dl"'.
-
-Sat Aug 30 11:54:17 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * parse.y (token_info_push): -w warns indentation level mismatch.
- based on a patch from Yukina Yamano presented at RubyKaigi'07.
- See <http://jp.rubyist.net/RubyKaigi2007/Log0609-LT06.html> and
- <http://www.logic-junction.com/products/rubyend.html> (Japanese).
-
-Sat Aug 30 10:46:44 2008 Koichi Sasada <ko1@atdot.net>
-
- * ext/iconv/iconv.c: remove include pragma for "ruby/intern.h".
-
-Sat Aug 30 10:43:03 2008 Koichi Sasada <ko1@atdot.net>
-
- * parse.y: remove include pragma for "ruby/intern.h".
-
-Sat Aug 30 10:41:57 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/rake.rb (Rake::Application#help): fix for OPTIONAL_ARGUMENT and
- multiple short options. [ruby-dev:36051]
-
-Sat Aug 30 08:59:25 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * include/ruby/intern.h (rb_file_s_absolute_path),
- (rb_file_absolute_path): prototyped.
-
-Sat Aug 30 08:09:36 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * encoding.c (enc_compatible_p): use TYPE not BUILTIN_TYPE.
- [ruby-dev:36048]
-
-Sat Aug 30 07:48:48 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * encoding.c (enc_compatible_p): add SPECIAL_CONST_P check.
- [ruby-dev:36048]
-
- * test/ruby/test_m17n.rb (test_compatible): fix test.
-
-Sat Aug 30 02:48:11 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * object.c (rb_obj_freeze): update rdoc to mention RuntimeError
- (not TypeError any longer) would be raised. [ruby-dev:35982]
-
-Sat Aug 30 01:55:30 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * bignum.c (bigdivmod): remove redundant code. a patch from
- TOYOFUKU Chikanobu <nobu_toyofuku at nifty.com> in [ruby-dev:36044].
-
-Sat Aug 30 01:37:20 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/cgi.rb (CGI#initialize): remove unused constants. a patch
- from Takeyuki Fujioka in [ruby-dev:36046].
-
-Fri Aug 29 22:29:41 2008 Tadayoshi Funaba <tadf@dotrb.org>
-
- * complex.c ({nucomp,numeric}_rect): new.
-
- * complex.c: added some aliases
- (::rectangular, ::rect, #rectangular, #rect, #phase,
- #magnitude).
-
- * complex.c (string_to_c_internal): should not strip any null
- bytes.
-
- * rational.c (string_to_r_internal): ditto.
-
- * rational.c (i_gcd): reverted to nurat 0.0.2's one.
-
- * numeric.c: added an alias (#magnitude).
-
- * bignum.c: ditto.
-
- * test/ruby/test_complex.rb: added assertions.
-
- * test/ruby/test_rational.rb: ditto.
-
-Fri Aug 29 19:46:02 2008 Koichi Sasada <ko1@atdot.net>
-
- * gc.c, include/ruby/ruby.h: rename T_DEFERRED to T_ZOMBIE.
-
-Fri Aug 29 18:22:27 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * encoding.c (enc_compatible_p): raise TypeError when argument is not
- String nor Regexp.
-
-Fri Aug 29 18:20:56 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * string.c (rb_str_index_m): only regexp uses byte offset.
-
- * string.c (rb_str_rindex_m): ditto.
-
-Fri Aug 29 16:48:34 2008 Koichi Sasada <ko1@atdot.net>
-
- * vm_insnhelper.c (vm_call_method): copy arguments to allocated
- memory from machine stack. [ruby-dev:36028]
-
- * KNOWNBUGS.rb, bootstraptest/test_method.rb: move fixed test.
-
-Fri Aug 29 12:19:12 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/openssl/ossl_x509attr.c (ossl_x509attr_initialize): fix for
- initialization of r18168.
-
- * ext/openssl/ossl_ocsp.c (ossl_ocspreq_initialize): ditto.
-
- * ext/openssl/ossl_x509name.c (ossl_x509name_initialize): ditto.
-
-Fri Aug 29 11:04:03 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * encoding.c (rb_enc_compatible): ASCII compatible string and US-ASCII
- regexp is compatible. [ruby-dev:36033]
-
- * string.c (rb_str_index_m): second argument is position of character.
- by usa. [ruby-dev:36033]
-
- * string.c (rb_str_rindex_m): ditto.
-
-Fri Aug 29 04:47:49 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * win32/win32.c (rb_w32_read, rb_w32_write): more accurate handling
- of wait result.
-
-Fri Aug 29 02:59:35 2008 Tanaka Akira <akr@fsij.org>
-
- * transcode.c (econv_finish): new method.
-
-Fri Aug 29 02:45:29 2008 Tanaka Akira <akr@fsij.org>
-
- * transcode.c (econv_convert): new method.
-
-Fri Aug 29 02:38:14 2008 Tanaka Akira <akr@fsij.org>
-
- * transcode.c (econv_primitive_convert): accept nil as
- destination_bytesize for unlimited destination size.
-
-Fri Aug 29 02:11:46 2008 Tanaka Akira <akr@fsij.org>
-
- * transcode.c (econv_primitive_convert): accept nil as input for empty
- input.
-
-Fri Aug 29 02:03:56 2008 Shugo Maeda <shugo@ruby-lang.org>
-
- * strftime.c (rb_strftime): supported %s and %P.
-
- * time.c (time_strftime): ditto.
-
- * test/ruby/test_time.rb (test_strftime): ditto.
-
-Fri Aug 29 01:57:58 2008 Tanaka Akira <akr@fsij.org>
-
- * transcode.c (sym_invalid_byte_sequence): new variable.
- (sym_undefined_conversion): ditto.
- (sym_destination_buffer_full): ditto.
- (sym_source_buffer_empty): ditto.
- (sym_finished): ditto.
- (sym_output_followed_by_input): ditto.
- (sym_incomplete_input): ditto.
- (econv_result_to_symbol): use above variables.
- (Init_transcode): initialize above variables.
-
-Fri Aug 29 00:53:40 2008 Shugo Maeda <shugo@ruby-lang.org>
-
- * strftime.c (rb_strftime): fixed a bug of padding.
-
- * test/ruby/test_time.rb: ditto.
-
-Fri Aug 29 00:19:54 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * win32/win32.c (set_pioinfo_extra): use MSVCRT's open() and close().
-
-Fri Aug 29 00:03:13 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * file.c (file_expand_path): check invalid access.
-
-Thu Aug 28 23:55:50 2008 Shugo Maeda <shugo@ruby-lang.org>
-
- * strftime.c (rb_strftime): Time.mktime(2000).strftime("%-S") should
- return "0", not "".
-
- * test/ruby/test_time.rb: ditto.
-
-Thu Aug 28 23:55:22 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * test/ruby/test_time.rb: suppress warning during test.
-
-Thu Aug 28 23:50:47 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * test/ruby/test_time.rb (test_strftime): make test for %a independent
- from local timezone. [ruby-dev:35992]
-
-Thu Aug 28 23:39:49 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * string.c (rb_str_shared_replace): remove corrupt noembed string
- which causes SEGV. [ruby-dev:35989]
-
-Thu Aug 28 23:36:15 2008 Tanaka Akira <akr@fsij.org>
-
- * common.mk: dependency updated.
-
-Thu Aug 28 23:28:57 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * KNOWNBUGS.rb: add a test. see [ruby-dev:36028]
-
-Thu Aug 28 21:43:05 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * win32/win32.c, include/ruby/win32.h (rb_w32_open): overlapped file
- I/O support.
-
- * win32/win32.c, include/ruby/win32.h (rb_w32_pipe): overlapped pipe
- I/O support.
-
- * win32/win32.c (rb_w32_read, rb_w32_write): overlapped I/O support to
- enable canceling I/O.
-
- * thread_win32.c (ubf_handle): remove workaround.
-
-Thu Aug 28 20:22:49 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * vm_insnhelper.c (vm_yield_setup_args): object with to_ary should
- behave like array. a patch from Yusuke Endoh <mame at tsg.ne.jp>
- in [ruby-dev:35988]. [ruby-dev:35977]
-
- * object.c (convert_type): call less rb_intern() less frequently
- by using cache structure.
-
- * vm_method.c (rb_method_node): fail earlier if no method found.
-
-Thu Aug 28 19:04:50 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * bootstraptest/test_io.rb: no need to create real file.
-
-Thu Aug 28 09:26:53 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * test/cgi/test_cgi_multipart.rb: add test for multipart.
- Patch by Takeyuki Fujioka. [ruby-dev:36014]
- From CGIAlt http://cgialt.rubyforge.org/
-
-Thu Aug 28 09:22:01 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * test/cgi/test_cgi_modruby.rb: add test for mod_ruby adaptor.
- Patch by Takeyuki Fujioka. [ruby-dev:36013]
- From CGIAlt http://cgialt.rubyforge.org/
-
-Thu Aug 28 09:17:10 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * test/cgi/test_cgi_header.rb: add test for CGI::Header.
- Patch by Takeyuki Fujioka. [ruby-dev:36010] [ruby-dev:36011]
- From CGIAlt http://cgialt.rubyforge.org/
-
-Thu Aug 28 02:16:49 2008 Tanaka Akira <akr@fsij.org>
-
- * include/ruby/io.h (rb_io_t): refcnt field removed.
- (MakeOpenFile): refcnt initialization removed.
-
- * io.c (rb_io_fptr_finalize): don't check refcnt.
- (rb_io_close_read): don't use refcnt.
-
-Thu Aug 28 00:07:59 2008 Tanaka Akira <akr@fsij.org>
-
- * io.c (rb_io_initialize): don't accept IO object. [ruby-dev:35895]
-
-Wed Aug 27 23:28:51 2008 Masaki Suketa <masaki.suketa@nifty.ne.jp>
-
- * ext/win32ole/win32ole.c (ole_invoke): WIN32OLE#[] and WIN32OLE#[]=
- accepts number argument.
-
- * test/win32ole/test_win32ole.rb: ditto.
-
-Wed Aug 27 14:45:34 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * test/cgi/test_cgi_core.rb: add core test.
- Patch by Takeyuki Fujioka. [ruby-dev:36001] [ruby-dev:36002]
- From CGIAlt http://cgialt.rubyforge.org/
-
-Wed Aug 27 10:34:42 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * lib/cgi.rb (CGI::Cookie): remove delegate.
- Patch by Takeyuki Fujioka. [ruby-dev:35995]
-
- * test/cgi/test_cgi_cookie.rb: added for above.
- Patch by Takeyuki Fujioka. [ruby-dev:35996]
- From CGIAlt http://cgialt.rubyforge.org/
-
-Wed Aug 27 01:13:54 2008 Tanaka Akira <akr@fsij.org>
-
- * transcode.c (transcode_loop): simplified.
-
-Wed Aug 27 01:03:23 2008 Tanaka Akira <akr@fsij.org>
-
- * include/ruby/encoding.h (rb_econv_result_t): enumeration constant:
- econv_incomplete_input.
-
- * io.c (finish_writeconv): check econv_incomplete_input.
-
- * transcode.c (transcode_restartable0): return econv_incomplete_input
- for unexpected end of source buffer.
- (trans_sweep): check econv_incomplete_input.
- (rb_trans_conv): ditto.
- (rb_econv_convert0): ditto.
- (rb_econv_convert): ditto.
- (transcode_loop): ditto.
- (make_econv_exception): change message for econv_incomplete_input.
- (econv_result_to_symbol): return :incomplete_input for
- econv_incomplete_input.
- (ecerr_incomplete_input): new method.
-
-Wed Aug 27 00:05:55 2008 Tanaka Akira <akr@fsij.org>
-
- * include/ruby/io.h (rb_io_t): rename crbuf to cbuf.
-
- * io.c: follow the renaming.
-
-Tue Aug 26 23:52:24 2008 Tanaka Akira <akr@fsij.org>
-
- * include/ruby/encoding.h (rb_econv_elem_t): move to transcode.c
- (rb_econv_t): defined as an incomplete type.
-
- * transcode.c (rb_econv_elem_t): moved from encoding.h.
- (rb_econv_t): complete type defined.
-
-Tue Aug 26 22:44:12 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * time.c (time_asctime): workaround for MSVCRT's bug.
- based on a patch from wanabe <s.wanabe AT gmail.com> at
- [ruby-dev:35831] and a suggestion by KIMURA Koichi
- <kbk AT kt.rim.or.jp> at [ruby-dev:35832]
- fixed [ruby-dev:35555]
-
-Tue Aug 26 21:53:56 2008 Tanaka Akira <akr@fsij.org>
-
- * transcode.c (rb_econv_open): disable newline conversion for ASCII
- incompatible encodings.
- (str_transcode0): don't need disable newline conversion here.
-
-Tue Aug 26 21:44:39 2008 Tanaka Akira <akr@fsij.org>
-
- * transcode.c (rb_econv_binmode): binmode is effective only once.
-
-Tue Aug 26 19:43:59 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * file.c (rb_file_s_expand_path): new class method for class File.
-
- * file.c (file_expand_path): add absolute_path handling (no ~user
- expansion). [ruby-core:18319]
-
-Tue Aug 26 19:27:54 2008 Akinori MUSHA <knu@iDaemons.org>
-
- * test/ruby/test_enum.rb (TestEnumerable#test_each_with_object):
- Add a test for Enumerable#each_with_object.
-
-Tue Aug 26 19:25:44 2008 Akinori MUSHA <knu@iDaemons.org>
-
- * test/ruby/test_enumerator.rb (TestEnumerator#test_with_object):
- Add (back) the test for Enumerator#with_object.
-
-Tue Aug 26 16:16:43 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * test/cgi/test_cgi_tag_helper.rb: add more tests for html3.
- Patch by Takeyuki Fujioka. [ruby-dev:35975]
- From CGIAlt http://cgialt.rubyforge.org/
-
-Tue Aug 26 14:43:10 2008 Akinori MUSHA <knu@iDaemons.org>
-
- * enumerator.c: Activate Enumerator#with_object and add
- Enumerable#each_with_object. [experimental]
-
-Tue Aug 26 14:38:32 2008 Akinori MUSHA <knu@iDaemons.org>
-
- * enumerator.c (enumerator_initialize),
- test/ruby/test_enumerator.rb: Add an ability to generate an
- enumerator from a block. [experimental] [ruby-dev:35903]
-
-Tue Aug 26 13:25:25 2008 Martin Duerst <duerst@it.aoyama.ac.jp>
-
- * test/ruby/test_transcode.rb: added test_euc_jp
- (contributed by Yoshihiro Kambayashi)
-
-Tue Aug 26 11:54:15 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * test/cgi/test_cgi_tag_helper.rb: added by Takeyuki Fujioka.
- [ruby-dev:35971]
-
-Tue Aug 26 11:33:30 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * lib/cgi.rb (nOE_element_def): fix error when cascade methods which
- don't have arguments. Patch by Takeyuki Fujioka. [ruby-dev:35964]
-
- * lib/cgi.rb (blockquote): String#collect (this depends on
- String#each) is no longer exists.
- Patch by Takeyuki Fujioka. [ruby-dev:35946]
-
- * lib/cgi.rb (blockquote): ditto.
-
-Tue Aug 26 03:06:48 2008 Tanaka Akira <akr@fsij.org>
-
- * io.c (make_writeconv): copy invalid/undef flags.
-
-Tue Aug 26 02:47:08 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
-
- * common.mk (dist): tool/make-snapshot is executable.
-
- * tool/make-snapshot (package): supported release numbers 1.9.0-x.
-
-Tue Aug 26 02:43:50 2008 Tanaka Akira <akr@fsij.org>
-
- * include/ruby/io.h (rb_io_t): new field: writeconv_pre_opts.
-
- * io.c (make_writeconv): initialize writeconv_pre_opts.
- (io_fwrite): use writeconv_pre_opts.
-
-Tue Aug 26 01:48:31 2008 Tanaka Akira <akr@fsij.org>
-
- * io.c: test _WIN32 for CRLF platform. (cygwin defines O_BINARY.)
-
-Tue Aug 26 01:29:26 2008 Tanaka Akira <akr@fsij.org>
-
- * io.c: force CRLF handling if RUBY_TEST_CRLF_ENVIRONMENT is defined.
- This is only for testing.
-
-Tue Aug 26 01:26:31 2008 Tanaka Akira <akr@fsij.org>
-
- * transcode.c (str_transcode0): disable newline conversion for ASCII
- incompatible encoding.
-
-Tue Aug 26 00:55:46 2008 Tanaka Akira <akr@fsij.org>
-
- * transcode.c (str_transcode0): don't short cut for newline conversion.
-
-Tue Aug 26 00:36:01 2008 Tanaka Akira <akr@fsij.org>
-
- * io.c (io_fwrite): add TEXTMODE_NEWLINE_ENCODER to option for
- rb_str_transcode.
-
-Tue Aug 26 00:24:23 2008 Tanaka Akira <akr@fsij.org>
-
- * transcode.c (make_econv_exception): show readagain part for invalid
- byte sequence exception. store the part as an instance variable.
- (ecerr_readagain_bytes): new method to access the readagain part.
-
-Tue Aug 26 00:02:49 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * ext/bigdecimal/bigdecimal.c (VpMult): fix double free.
-
-Mon Aug 25 23:59:36 2008 Tanaka Akira <akr@fsij.org>
-
- * transcode.c (rb_econv_open): make last_tc NULL if there are only
- additional transcoders.
- (econv_description): extracted from rb_econv_open_exc.
- (rb_econv_open_exc): use econv_description.
- (econv_inspect): use econv_description.
-
-Mon Aug 25 23:56:42 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * win32.c (init_stdhandle): set binmode.
-
-Mon Aug 25 23:38:17 2008 Tadayoshi Funaba <tadf@dotrb.org>
-
- * lib/date/format.rb(strftime): %[LN] can print with given
- arbitrary precision.
-
- * lib/date/format.rb(strftime): optional flags and filed width
- should also affect %[nt].
-
-Mon Aug 25 23:01:17 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * compile.c (defined_expr): default defined? should return
- "expression" without evaluating the expression. [ruby-dev:35967]
-
-Mon Aug 25 22:46:01 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * test/ruby/test_thread.rb (test_status_and_stop_p): reduce the risk
- of race condition.
-
-Mon Aug 25 22:39:57 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * lib/irb/extend-command.rb (def_extend_command): check number of
- arguments. [ruby-dev:35074]
-
- * lib/irb/ext/multi-irb.rb (search): check if a corresponding job is
- found. [ruby-dev:35074]
-
-Mon Aug 25 22:29:13 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * test/ruby/test_io.rb (test_dup): fix typo. see [ruby-dev:35958]
-
-Mon Aug 25 22:02:35 2008 Tanaka Akira <akr@fsij.org>
-
- * transcode.c (rb_econv_open_by_transcoder_entries): initialize
- last_error. num_trans may be zero.
- (rb_econv_convert0): num_trans may be zero.
- (rb_econv_putbackable): ditto.
- (rb_econv_putback): ditto.
- (rb_econv_convert): input_ptr and output_ptr may be NULL.
-
-Mon Aug 25 19:05:27 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * compile.c (defined_expr): should handle NODE_{AND,OR} as
- "expression". [ruby-dev:35951]
-
-Mon Aug 25 17:36:26 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * include/ruby/intern.h (rb_io_ungetbyte): added prototype.
-
- * io.c (rb_io_gets): use rb_io_getline_1 for unget buffer.
-
- * ruby.c (load_file): use rb_io_ungetbyte.
-
- * transcode.c (rb_econv_substr_append): fix for buffer overrun.
-
- * win32/enc-setup.mak (BUILTIN_TRANSOBJS): added.
-
-Mon Aug 25 14:22:21 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
-
- * parse.y (YYSTYPE): struct RVarmap has been no longer
- defined.
- see also r11717 by matz.
-
-Mon Aug 25 10:42:18 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * transcode.c (rb_econv_open_exc): constified.
-
-Mon Aug 25 07:10:21 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * enc/emacs_mule.c: fix ctype.
-
-Mon Aug 25 00:52:31 2008 Tanaka Akira <akr@fsij.org>
-
- * configure.in (BUILTIN_TRANSSRCS): defined.
- (BUILTIN_TRANSOBJS): defined.
-
- * enc/Makefile.in (BUILTIN_TRANSES): defined.
-
- * enc/make_encmake.rb (BUILTIN_TRANSES): defined.
-
- * enc/depend: don't generate rules for builtin transcoders.
-
- * common.mk (COMMONOBJS): add BUILTIN_TRANSOBJS.
- (enc.mk): pass BUILTIN_TRANSOBJS.
- (newline.c): new rule.
- (newline.$(OBJEXT)): new rule.
- (srcs): newline.c added.
-
- * Makefile.in (BUILTIN_TRANSSRCS): defined.
- (BUILTIN_TRANSOBJS): defined.
-
- * transcode.c (Init_transcode): call Init_newline.
-
-Mon Aug 25 00:11:02 2008 Tanaka Akira <akr@fsij.org>
-
- * transcode.c (declare_transcoder): arguments order changed.
- (rb_declare_transcoder): call declare_transcoder just once.
-
-Sun Aug 24 19:48:46 2008 Tanaka Akira <akr@fsij.org>
-
- * include/ruby/encoding.h (rb_econv_t): use rb_econv_option_t.
-
- * transcode.c: follow the rb_econv_t change.
-
-Sun Aug 24 19:40:13 2008 Tanaka Akira <akr@fsij.org>
-
- * io.c (rb_io_init_copy): copy encs.
-
-Sun Aug 24 19:17:31 2008 Tanaka Akira <akr@fsij.org>
-
- * io.c (rb_io_open): add an argument: vperm.
- (open_key_args): call rb_io_open with perm.
-
-Sun Aug 24 19:11:07 2008 Tanaka Akira <akr@fsij.org>
-
- * io.c (sym_invalid): removed.
- (sym_undef): removed.
- (sym_ignore): removed.
- (sym_replace): removed.
-
-Sun Aug 24 19:07:17 2008 Tanaka Akira <akr@fsij.org>
-
- * io.c (rb_io_reopen): initialize fptr->encs.opts.
-
-Sun Aug 24 18:37:42 2008 Tanaka Akira <akr@fsij.org>
-
- * io.c (rb_io_s_pipe): accept optional hash.
- (rb_io_set_encoding): ditto.
- (rb_io_extract_modeenc): use rb_econv_opts to initialize
- ecopts.
- (rb_file_open_generic): ditto.
- (rb_file_open_internal): ditto.
- (io_encoding_set): new argument: opt.
- (argf_set_encoding): copy fptr->encs.opts to argf_ecopts.
-
- * transcode.c (rb_econv_opts): accept Qnil for initialization.
-
-Sun Aug 24 18:10:08 2008 Tanaka Akira <akr@fsij.org>
-
- * include/ruby/io.h (rb_io_enc_t): add opts field.
- (FMODE_INVALID_MASK): removed.
- (FMODE_INVALID_IGNORE): ditto.
- (FMODE_INVALID_REPLACE): ditto.
- (FMODE_UNDEF_MASK): ditto.
- (FMODE_UNDEF_IGNORE): ditto.
- (FMODE_UNDEF_REPLACE): ditto.
- (MakeOpenFile): initialize the opts field.
-
- * io.c (make_writeconv): use the opts field.
- (io_fwrite): ditto.
- (make_readconv): ditto.
- (argf_ecopts): new macro.
- (rb_io_extract_modeenc): fill the opts field.
- (argf_next_argv): ditto.
- (rb_file_open_generic): initialize the opts field.
- (rb_file_open_internal): ditto.
- (io_encoding_set): ditto.
- (argf_set_encoding): ditto.
-
-Sun Aug 24 18:02:14 2008 Tanaka Akira <akr@fsij.org>
-
- * io.c (struct argf): use struct rb_io_enc_t.
- (argf_enc): follow the struct argf change.
- (argf_enc2): ditto.
-
-Sun Aug 24 17:36:21 2008 Tanaka Akira <akr@fsij.org>
-
- * include/ruby/encoding.h (rb_str_transcode): make 3rd argument
- rb_econv_option_t*.
-
- * transcode.c (transcode_loop): take rb_econv_option_t* as a argument.
- (str_transcode0): ditto.
- (str_transcode): make rb_econv_option_t and call str_transcode0 with
- it.
- (rb_str_transcode): take rb_econv_option_t*.
-
- * io.c (io_fwrite): follow the rb_str_transcode change.
-
-Sun Aug 24 16:47:32 2008 Tanaka Akira <akr@fsij.org>
-
- * include/ruby/io.h (rb_io_t): make enc and enc2 as struct
- rb_io_enc_t;
-
- * io.c: follow the structure change.
- (convconfig_t): defined by rb_io_enc_t.
-
-Sun Aug 24 16:19:25 2008 Tanaka Akira <akr@fsij.org>
-
- * include/ruby/encoding.h (rb_econv_opts): declared.
-
- * transcode.c (rb_econv_opts): defined.
-
- * io.c (rb_io_extract_modeenc): use rb_econv_opts.
-
-Sun Aug 24 16:06:30 2008 Tanaka Akira <akr@fsij.org>
-
- * include/ruby/encoding.h (rb_econv_option_t): defined.
- (rb_econv_open): 3rd arg changed.
- (rb_econv_open_exc): ditto.
-
- * io.c (make_writeconv): use rb_econv_option_t.
- (make_readconv): ditto.
- (rb_econv_open): take rb_econv_option_t for options.
- (rb_econv_open_exc): ditto.
- (transcode_loop): use rb_econv_option_t.
- (econv_init): use rb_econv_option_t.
-
-Sun Aug 24 15:43:41 2008 Tanaka Akira <akr@fsij.org>
-
- * transcode.c (rb_econv_substr_append): associate dst with destination
- encoding when dst is created.
-
-Sun Aug 24 15:21:28 2008 Tanaka Akira <akr@fsij.org>
-
- * include/ruby/encoding.h (rb_str_transcode): add ecflags argument.
-
- * transcode.c (econv_opts): extracted from str_transcode.
- (str_transcode_enc_args): extracted from str_transcode.
- (str_transcode0): extracted from str_transcode.
- (str_transcode): use econv_opts, str_transcode_enc_args,
- str_transcode0.
- (rb_str_transcode): call str_transcode0.
- (econv_primitive_insert_output): give the additional argument for
- rb_str_transcode.
-
- * io.c (make_writeconv): use invalid/undef flags.
- (io_fwrite): ditto.
- (rb_scan_open_args): give the additional argument for
- rb_str_transcode.
-
-Sun Aug 24 13:27:42 2008 Tanaka Akira <akr@fsij.org>
-
- * transcode.c (str_transcode): check last hash only if 0 < argc.
-
-Sun Aug 24 12:22:15 2008 Tanaka Akira <akr@fsij.org>
-
- * include/ruby/encoding.h (rb_econv_substr_append): renamed from
- rb_econv_string.
- (rb_econv_str_convert): declared.
- (rb_econv_substr_convert): declared.
- (rb_econv_str_append): declared.
-
- * io.c (io_fwrite): use rb_econv_str_convert instead of
- rb_econv_string.
-
- * transcode.c (rb_econv_substr_append): renamed from rb_econv_string.
- (rb_econv_str_append): new function.
- (rb_econv_substr_convert): ditto.
- (rb_econv_str_convert): ditto.
-
-Sun Aug 24 12:15:12 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * lib/net/http.rb (Net::HTTP#urlencode): str[0] returns char in 1.9.
- Patch by Junegunn Choi [ruby-core:18368]
-
-Sun Aug 24 12:02:39 2008 Tanaka Akira <akr@fsij.org>
-
- * transcode.c (rb_econv_open): return NULL on error.
-
-Sun Aug 24 11:40:38 2008 Tanaka Akira <akr@fsij.org>
-
- * include/ruby/encoding.h (rb_econv_open_exc): declared.
-
- * transcode.c (rb_eNoConverter): new exception.
- (rb_econv_open_exc): new function.
- (transcode_loop): use rb_econv_open_exc.
-
- * io.c (make_writeconv): use rb_econv_open_exc.
- (make_readconv): ditto.
-
-Sun Aug 24 11:26:54 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * lib/cgi.rb (CGI::unescapeHTML): consider ISO-8859-1.
- [ruby-dev:35936]
-
-Sun Aug 24 10:55:00 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * enc/emacs_mule.c: support Emacs/Mule internal encoding.
-
-Sun Aug 24 08:03:31 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * strftime.c (daylight, timezone): not provided as dllexport on cygwin,
- right now.
-
-Sun Aug 24 06:39:05 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * lib/cgi.rb (CGI::unescapeHTML): more encoding sensible unescaping.
- [ruby-dev:35936]
-
-Sun Aug 24 04:23:19 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * encoding.c (enc_compatible_p): raise TypeError when argument is Encoding.
-
-Sat Aug 23 23:25:47 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * lib/cgi.rb (CGI#out): remove auto encoding conversion and set
- LANGUAGE. [ruby-dev:35922]
-
-Sat Aug 23 20:01:29 2008 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
-
- * test/ruby/test_process.rb (TestProcess#test_rlimit_value):
- add Errno::EINVAL. [ruby-dev:35900]
-
-Sat Aug 23 18:29:29 2008 Tanaka Akira <akr@fsij.org>
-
- * io.c (rb_scan_open_args): use pop_last_hash.
-
-Sat Aug 23 16:59:42 2008 Tanaka Akira <akr@fsij.org>
-
- * include/ruby/io.h (FMODE_INVALID_MASK): defined.
- (FMODE_INVALID_IGNORE): defined.
- (FMODE_INVALID_REPLACE): defined.
- (FMODE_UNDEF_MASK): defined.
- (FMODE_UNDEF_IGNORE): defined.
- (FMODE_UNDEF_REPLACE): defined.
-
- * io.c (sym_invalid): defined.
- (sym_undef): defined.
- (sym_ignore): defined.
- (sym_replace): defined.
- (make_readconv): specify ECONV_INVALID_* and ECONV_UNDEF_* if
- FMODE_INVALID_* and FMODE_UNDEF_* is set.
- (rb_io_extract_modeenc): check {:invalid, :undef} => {:replace,
- :ignore} for FMODE_INVALID_* and FMODE_UNDEF_*.
-
-Sat Aug 23 17:06:57 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * strftime.c (rb_strftime): support more flags.
-
-Sat Aug 23 15:14:10 2008 Koichi Sasada <ko1@atdot.net>
-
- * vm_opts.h: enable "OPT_TRACE_INSTRUCTION" on default.
-
-Sat Aug 23 14:59:32 2008 Tanaka Akira <akr@fsij.org>
-
- * include/ruby/encoding.h (ECONV_INVALID_MASK): defined.
- (ECONV_INVALID_IGNORE): defined.
- (ECONV_INVALID_REPLACE): defined.
- (ECONV_UNDEF_MASK): defined.
- (ECONV_UNDEF_IGNORE): defined.
- (ECONV_UNDEF_REPLACE): defined.
-
- * transcode.c (INVALID_IGNORE): removed.
- (INVALID_REPLACE): removed.
- (UNDEF_IGNORE): removed.
- (UNDEF_REPLACE): removed.
- (rb_econv_convert0): renamed from rb_econv_convert.
- (rb_econv_convert): defined to call rb_econv_convert0 with
- replace/ignore behavior moved from transcode_loop.
- (transcode_loop): replace/ignore behavior removed.
-
-Sat Aug 23 11:23:05 2008 Tanaka Akira <akr@fsij.org>
-
- * io.c (rb_io_extract_modeenc): check :textmode and :binmode in option
- hash.
-
-Sat Aug 23 10:48:56 2008 Tanaka Akira <akr@fsij.org>
-
- * ext/pty/pty.c (pty_getpty): follow rb_io_t's path -> pathv change.
-
-Sat Aug 23 10:42:52 2008 Tanaka Akira <akr@fsij.org>
-
- * io.c (check_pipe_command): extracted from rb_f_open and rb_io_open.
- (rb_f_open): use check_pipe_command.
- (rb_io_open): ditto.
-
-Sat Aug 23 10:13:00 2008 Tanaka Akira <akr@fsij.org>
-
- * io.c (read_all): fptr->enc2 is 0 if no conversion.
- (rb_io_getline_fast): ditto.
- (io_getc): ditto.
-
-Sat Aug 23 09:45:35 2008 Tanaka Akira <akr@fsij.org>
-
- * include/ruby/io.h (rb_io_t): remove path field and add pathv field.
- (MakeOpenFile): initialize pathv as Qnil.
-
- * gc.c: mark pathv field in T_FILE.
-
- * io.c: follow the rb_io_t field change.
-
- * file.c: ditto.
-
- * ext/socket/socket.c: ditto.
-
-Sat Aug 23 01:42:22 2008 Tanaka Akira <akr@fsij.org>
-
- * include/ruby/io.h (FMODE_TEXTMODE): defined.
-
- * include/ruby/encoding.h (rb_econv_t): new field: flags.
- (rb_econv_binmode): declared.
-
- * io.c (io_unread): text mode hack removed.
- (NEED_NEWLINE_DECODER): defined.
- (NEED_NEWLINE_ENCODER): defined.
- (NEED_READCONV): defined.
- (NEED_WRITECONV): defined.
- (TEXTMODE_NEWLINE_ENCODER): defined for windows.
- (make_writeconv): setup converter with TEXTMODE_NEWLINE_ENCODER for
- text mode.
- (io_fwrite): use NEED_WRITECONV. character code conversion is
- disabled if fptr->writeconv_stateless is nil.
- (make_readconv): setup converter with
- ECONV_UNIVERSAL_NEWLINE_DECODER for text mode.
- (read_all): use NEED_READCONV.
- (appendline): use NEED_READCONV.
- (rb_io_getline_1): use NEED_READCONV.
- (io_getc): use NEED_READCONV.
- (rb_io_ungetc): use NEED_READCONV.
- (rb_io_binmode): OS-level text mode test removed. call
- rb_econv_binmode.
- (rb_io_binmode_m): call rb_io_binmode_m with write_io as well.
- (rb_io_flags_mode): return mode string including "t".
- (rb_io_mode_flags): detect "t" for text mode.
- (rb_sysopen): always specify O_BINARY.
-
- * transcode.c (rb_econv_open_by_transcoder_entries): initialize flags.
- (rb_econv_open): if source and destination encoding is
- both empty string, open newline converter. last_tc will be NULL in
- this case.
- (rb_econv_encoding_to_insert_output): last_tc may be NULL now.
- (rb_econv_string): ditto.
- (output_replacement_character): ditto.
- (transcode_loop): ditto.
- (econv_init): ditto.
- (econv_inspect): ditto.
- (rb_econv_binmode): new function.
-
-Fri Aug 22 21:18:40 2008 Tadayoshi Funaba <tadf@dotrb.org>
-
- * complex.c (nucomp_div): now behaves as quo.
-
- * complex.c (nucomp_s_generic_p): has been removed.
-
- * complex.c (nucomp_to_s): adopts new form.
-
- * complex.c (nucomp_inspect): ditto.
-
- * complex.c (string_to_c_internal): ditto and supports polar form.
-
- * complex.c (rb_complex_polar): new.
-
- * rational.c (nurat_to_s): do not canonicalize.
-
- * rational.c (nurat_inspect): adopts new form.
-
- * rational.c (string_to_r_internal): ditto.
-
- * include/ruby/intern.h: added a declaration.
-
- * lib/complex.rb: added an obsolete class method.
-
- * lib/cmath.rb: use scalar? instead of generic?.
-
-Fri Aug 22 20:06:46 2008 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
-
- * lib/webrick/server.rb (WEBrick::GenericServer#shutdown):
- rescue Errno::ENOTCONN and close. [ruby-dev:35896]
-
- * test/openssl/test_ssl.rb (OpenSSL#start_server): ditto.
- [ruby-dev:35897]
-
- * lib/net/imap.rb (Net::IMAP#disconnect): ditto. [ruby-dev:35898]
-
-Fri Aug 22 19:58:27 2008 Tadayoshi Funaba <tadf@dotrb.org>
-
- * lib/date.rb: no need to require the "lib/rational.rb" any more.
-
-Fri Aug 22 15:47:38 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * lib/cgi.rb: use bytesize instead of size/length.
-
-Fri Aug 22 14:28:05 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * strftime.c (rb_strftime): supported flags and precision for most
- conversions. [ruby-dev:35906]
-
-Fri Aug 22 14:04:04 2008 Martin Duerst <duerst@it.aoyama.ac.jp>
-
- * test/ruby/test_transcode.rb: test_shift_jis:
- fixed comment strings (see r18291)
-
-Fri Aug 22 12:41:47 2008 Tanaka Akira <akr@fsij.org>
-
- * io.c (rb_io_pid): use PIDT2NUM.
-
-Fri Aug 22 11:36:31 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * dir.c (dir_enc_str_new): set US-ASCII to the path
- when the path is 7bit string and encoding is ASCII compatible.
-
- * dir.c (push_glob): set file system encoding when argument encoding
- is US-ASCII.
-
-Fri Aug 22 11:30:38 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * dir.c (dir_enc_str_new): renamed from dir_enc_str.
-
- * dir.c (dir_read): use dir_enc_str_new.
-
- * dir.c (dir_each): ditto.
-
- * dir.c (push_pattern): ditto.
-
-Fri Aug 22 11:29:10 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * common.mk: remove config.h dependency.
-
-Fri Aug 22 10:52:39 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * configure.in (gmtime_r): check if reentrant versions are available.
-
- * time.c (IF_HAVE_GMTIME_R, ASCTIME, GMTIME, LOCALTIME): use reentrant
- versions if available.
-
-Fri Aug 22 05:29:17 2008 Tanaka Akira <akr@fsij.org>
-
- * include/ruby/ruby.h (INT2NUM): just use a simple macro on LP64.
- (UINT2NUM): ditto.
-
-Fri Aug 22 05:10:07 2008 Tanaka Akira <akr@fsij.org>
-
- * io.c (rb_file_open_generic): take filename as a VALUE.
- (rb_file_open_internal): ditto.
- (rb_io_open): ditto.
- (rb_file_open): pass filename as a VALUE to rb_file_open_internal.
- (rb_open_file): pass filename as a VALUE to rb_file_open_generic.
- (open_key_args): pass filename as a VALUE to rb_io_open.
-
-Fri Aug 22 04:33:56 2008 Tanaka Akira <akr@fsij.org>
-
- * include/ruby/ruby.h: fix previous change for LP64.
-
-Fri Aug 22 03:19:41 2008 Tanaka Akira <akr@fsij.org>
-
- * include/ruby/ruby.h (NUM2LONG): make it inline function to evaluate
- the argument only once.
- `t = Object.new; def t.*(x) p x; 0 end; p Time.at(0, t)' did print x
- twice.
- (NUM2INT): ditto.
- (NUM2LL): ditto.
- (INT2NUM): make it inline function.
- (LONG2NUM): ditto.
- (UINT2NUM): ditto.
- (ULONG2NUM): ditto.
-
-Fri Aug 22 03:03:22 2008 Tanaka Akira <akr@fsij.org>
-
- * io.c (rb_io_s_sysopen): mode can be a Bignum.
-
-Fri Aug 22 02:57:03 2008 Tanaka Akira <akr@fsij.org>
-
- * io.c (rb_io_extract_modeenc): notify coerced to caller.
- (rb_io_initialize): mode may be a Bignum.
-
-Fri Aug 22 02:42:35 2008 Tanaka Akira <akr@fsij.org>
-
- * io.c (rb_io_extract_modeenc): use rb_check_to_integer to test
- integer.
-
-Fri Aug 22 02:25:04 2008 Tanaka Akira <akr@fsij.org>
-
- * iseq.c (iseq_inspect): don't raise on uninitialized object.
- show real class name.
-
-Fri Aug 22 02:08:58 2008 Tanaka Akira <akr@fsij.org>
-
- * io.c (rb_io_initialize): accept hash argument.
-
-Thu Aug 21 23:51:51 2008 Shugo Maeda <shugo@ruby-lang.org>
-
- * strftime.c (rb_strftime): supported %F and %<precision>N.
- reverted config.h to ruby.h for Windows.
-
- * test/ruby/test_time.rb (TestTime::test_strftime): added tests
- for %F and %N.
-
- * time.c: documented %F and %N.
-
-Thu Aug 21 20:23:26 2008 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
-
- * test/ruby/test_m17n_comb.rb (TestM17NComb#test_str_crypt): add
- key and salt to error message.
-
-Thu Aug 21 19:20:25 2008 Tanaka Akira <akr@fsij.org>
-
- * file.c (rb_stat_inspect): don't raise if self is not initialized.
-
-Thu Aug 21 19:17:02 2008 Tanaka Akira <akr@fsij.org>
-
- * process.c (pst_pid): use rb_attr_get to avoid warning on
- Process::Status.allocate.pid.
- (pst_inspect): don't raise if self is not initialized.
-
-Thu Aug 21 19:05:40 2008 Tanaka Akira <akr@fsij.org>
-
- * io.c (io_extract_encoding_option): if internal encoding is not
- specified, enc is external encoding.
-
-Thu Aug 21 14:22:50 2008 Shugo Maeda <shugo@ruby-lang.org>
-
- * strftime.c: include ruby/config.h instead of ruby/ruby.h.
-
- * common.mk: removed the old rule for missing/strftime.c.
-
-Thu Aug 21 09:29:01 2008 Shugo Maeda <shugo@ruby-lang.org>
-
- * strftime.c (rb_strftime): return "UTC" instead of "GMT".
-
- * test/ruby/test_time.rb (test_strftime): ditto.
-
-Thu Aug 21 07:59:04 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * test/iconv/test_option.rb (test_ignore_option): skip if iconv
- doesn't have transliterate.
-
- * test/iconv/test_option.rb (test_translit_option): ditto.
-
-Thu Aug 21 06:12:56 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/scanf.rb (Scanf::FormatSpecifier#initialize): %i should accept
- single digit decimal. [ruby-core:18355]
-
-Thu Aug 21 06:02:52 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * range.c (range_initialize_copy): Range is now a Struct.
- [ruby-core:18353]
-
- * struct.c (rb_struct_init_copy): made public.
-
-Thu Aug 21 03:09:34 2008 Tanaka Akira <akr@fsij.org>
-
- * io.c (io_extract_encoding_option): enc2 is external encoding if
- external encoding and internal encoding is given.
- (pipe_open): add flags and convconfig argument to initialize
- fptr->{mode,enc,enc2}.
- (pipe_open_v): pass flags and convconfig from caller to pipe_open.
- (pipe_open_s): ditto.
- (pop_last_hash): new function.
- (rb_io_s_popen): use last hash as option to specify code conversion.
- (rb_io_open): specify flags and convconfig arguments for
- pipe_open_s.
- (rb_f_backquote): ditto.
-
-Thu Aug 21 02:27:03 2008 Tanaka Akira <akr@fsij.org>
-
- * io.c (prep_io): local variable renamed.
- (rb_io_fdopen): ditto.
- (prep_stdio): ditto.
-
-Thu Aug 21 01:58:59 2008 Shugo Maeda <shugo@ruby-lang.org>
-
- * configure.in: always check timezone().
-
- * strftime.c (rb_strftime): prefer timezone/altzone rather than
- gettimeofday(). The second argument to gettimeofday() is ignored
- on Solaris.
-
-Thu Aug 21 02:03:08 2008 Tanaka Akira <akr@fsij.org>
-
- * io.c (open_key_args): simplified.
-
-Thu Aug 21 01:57:03 2008 Tanaka Akira <akr@fsij.org>
-
- * io.c (open_key_args): IO.foreach(path, rs, limit) didn't work.
-
-Thu Aug 21 01:31:34 2008 Tanaka Akira <akr@fsij.org>
-
- * io.c (rb_file_sysopen_internal): unused function removed.
- (rb_file_sysopen): ditto.
-
-Thu Aug 21 01:09:26 2008 Tanaka Akira <akr@fsij.org>
-
- * io.c: use mode_t for the 3rd argument, permission, of open(2).
-
-Thu Aug 21 00:51:42 2008 Shugo Maeda <shugo@ruby-lang.org>
-
- * configure.in: removed strftime from AC_REPLACE_FUNCS().
-
- * include/ruby/missing.h: removed prototype for strftime().
-
- * missing/strftime.c: removed.
-
- * time.c (time_to_s): use rb_strftime() instead of strftime(3).
- (time_zone): ditto.
-
-Thu Aug 21 00:49:50 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * strftime.c: win32 support.
-
-Thu Aug 21 00:20:05 2008 Shugo Maeda <shugo@ruby-lang.org>
-
- * strftime.c: new file.
-
- * common.mk (COMMONOBJS): added strftime.$(OBJEXT).
-
- * time.c (time_strftime): do not use strftime(3). supported
- %L(millisecond) and %N(nanosecond).
-
- * test/ruby/test_time.rb: added tests for %L and %N.
-
-Wed Aug 20 23:53:42 2008 Tanaka Akira <akr@fsij.org>
-
- * io.c (io_set_encoding): removed.
- (rb_io_open): set up encoding using new argument opt.
- (open_key_args): call rb_io_open with opt. don't call
- io_set_encoding.
-
-Wed Aug 20 22:30:33 2008 Tanaka Akira <akr@fsij.org>
-
- * io.c (rb_file_open_internal): use rb_io_flags_modenum.
- (rb_io_reopen): use rb_io_flags_modenum and rb_io_modenum_mode.
- (rb_io_stdio_file): ditto.
-
-Wed Aug 20 22:28:15 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * proc.c (proc_new): use the given class.
-
- * vm.c (vm_make_proc): added an argument for the class.
-
-Wed Aug 20 22:24:48 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * enum.c (enum_take): get rid of extraneous iteration.
-
-Wed Aug 20 20:32:49 2008 Tanaka Akira <akr@fsij.org>
-
- * io.c (rb_io_open_with_args): use rb_open_file instead of rb_io_open.
-
-Wed Aug 20 20:16:17 2008 Tanaka Akira <akr@fsij.org>
-
- * io.c (rb_scan_open_args): extracted from rb_open_file.
-
-Wed Aug 20 19:22:32 2008 Tanaka Akira <akr@fsij.org>
-
- * io.c (convconfig_t): new type.
- (rb_io_extract_modeenc): new function.
- (rb_file_open_generic): new function.
- (rb_file_open_internal): use rb_file_open_generic.
- (rb_file_sysopen_internal): use rb_file_open_generic.
- (rb_open_file): use rb_io_extract_modeenc and rb_file_open_generic.
- (rb_io_open): call rb_file_open_internal instead of rb_file_open.
-
-Wed Aug 20 19:15:35 2008 Tanaka Akira <akr@fsij.org>
-
- * io.c (Init_IO): new constants: File::DSYNC, File::RSYNC and
- File::NOFOLLOW.
-
-Wed Aug 20 18:41:11 2008 Tanaka Akira <akr@fsij.org>
-
- * io.c (rb_open_file): don't lookup :mode and :perm in opt. it is
- useless because vmode and perm is overwritten by rb_scan_args
- anyway.
-
-Wed Aug 20 18:37:20 2008 Tanaka Akira <akr@fsij.org>
-
- * io.c (open_key_args): meaningless MEMCPY removed.
-
-Wed Aug 20 18:30:58 2008 Tanaka Akira <akr@fsij.org>
-
- * io.c (prep_io) [cygwin]: use FMODE_BINMODE instead of O_BINARY.
-
-Wed Aug 20 16:39:59 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * array.c (rb_ary_sample): performance improvement for huge array.
-
-Wed Aug 20 12:28:31 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * array.c (rb_ary_sample): get rid of infinite loop. #455
-
-Wed Aug 20 06:09:31 2008 Tanaka Akira <akr@fsij.org>
-
- * include/ruby/io.h (FMODE_TRUNC): value changed because 0x100 is used
- as FMODE_NOREVLOOKUP in socket.c
-
-Wed Aug 20 05:19:40 2008 Tanaka Akira <akr@fsij.org>
-
- * io.c (parse_mode_enc): extracted from mode_enc.
- (io_extract_encoding_option): extracted from io_set_encoding.
-
-Wed Aug 20 04:17:26 2008 Tanaka Akira <akr@fsij.org>
-
- * io.c (rb_io_flags_modenum): make it static.
-
-Wed Aug 20 03:36:45 2008 Tanaka Akira <akr@fsij.org>
-
- * include/ruby/io.h (FMODE_TRUNC): new constant.
-
- * io.c (rb_io_mode_flags): set FMODE_TRUNC for "w".
- (rb_io_modenum_flags): set FMODE_TRUNC for O_TRUNC.
- (rb_io_flags_modenum): new function.
- (rb_io_mode_modenum): just use rb_io_mode_flags and
- rb_io_flags_modenum.
-
-Wed Aug 20 02:36:21 2008 Tanaka Akira <akr@fsij.org>
-
- * io.c (fopen): macro for vms removed. fopen is not used now.
-
-Wed Aug 20 02:27:42 2008 Tanaka Akira <akr@fsij.org>
-
- * transcode.c (rb_econv_open): fix memory leak.
- (rb_econv_close): ditto.
- fixed by shinichiro.h. [ruby-dev:35880]
-
-Tue Aug 19 21:50:43 2008 Tanaka Akira <akr@fsij.org>
-
- * include/ruby/io.h (rb_fopen): declaration removed.
-
- * io.c (rb_fopen): unused function removed.
-
-Tue Aug 19 21:14:22 2008 Tanaka Akira <akr@fsij.org>
-
- * include/ruby/io.h (FMODE_READWRITE): define as
- FMODE_READABLE|FMODE_WRITABLE.
-
-Tue Aug 19 21:13:08 2008 Tanaka Akira <akr@fsij.org>
-
- * io.c (rb_io_flags_mode): use hexadecimal in error message.
- (rb_io_modenum_mode): ditto.
- (rb_io_initialize): ditto.
-
-Tue Aug 19 18:23:40 2008 Tanaka Akira <akr@fsij.org>
-
- * io.c (rb_io_flags_mode): add a prefix 0 to octal in error message.
- (rb_io_modenum_mode): ditto.
-
-Tue Aug 19 18:05:45 2008 Tanaka Akira <akr@fsij.org>
-
- * include/ruby/io.h (FMODE_*): sorted and describe the values in
- hexadecimal.
-
-Tue Aug 19 17:32:30 2008 Tanaka Akira <akr@fsij.org>
-
- * ext/openssl/ossl_x509name.c (ossl_x509name_initialize): store the
- result of d2i_X509_NAME into DATA_PTR(self).
-
-Tue Aug 19 04:54:39 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/rake.rb (FileUtils#ruby): takes care of space containing path.
- [ ruby-Bugs-21591 ]
-
-Tue Aug 19 01:32:37 2008 Tanaka Akira <akr@fsij.org>
-
- * io.c (rb_open_file): encoding in mode string was ignored if perm is
- specified.
-
-Tue Aug 19 01:02:19 2008 Tanaka Akira <akr@fsij.org>
-
- * io.c (rb_open_file): don't access argv[-1] by
- File.allocate.instance_eval { initialize }.
-
-Tue Aug 19 00:56:01 2008 Tanaka Akira <akr@fsij.org>
-
- * re.c (rb_reg_inspect): don't raise for uninitialized Regexp.
-
-Tue Aug 19 00:34:24 2008 Tanaka Akira <akr@fsij.org>
-
- * io.c (rb_io_check_readable): side effect for STDIN removed.
- (rb_io_external_encoding): ditto.
-
-Mon Aug 18 23:27:07 2008 Tanaka Akira <akr@fsij.org>
-
- * io.c (io_ungetbyte): renamed from io_ungetc.
- (rb_io_ungetbyte): new method.
- (rb_io_ungetc): push back into character buffer if enc2 is set.
-
-Mon Aug 18 22:41:46 2008 Tanaka Akira <akr@fsij.org>
-
- * io.c (id_encode): removed.
-
-Mon Aug 18 22:30:07 2008 Tanaka Akira <akr@fsij.org>
-
- * io.c (make_writeconv): if enc and enc2 is set, convert
- string.encoding to enc2.
-
- * include/ruby/io.h: comment changed.
-
-Mon Aug 18 21:02:08 2008 Tanaka Akira <akr@fsij.org>
-
- * include/ruby/io.h (rb_io_t): new fields: writeconv,
- writeconv_stateless and writeconv_initialized.
- (MakeOpenFile): initialize them.
-
- * include/ruby/encoding.h (rb_econv_stateless_encoding): declared.
- (rb_econv_string): declared.
-
- * io.c (make_writeconv): new function.
- (io_fwrite): use econv.
- (make_readconv): fix error message.
- (finish_writeconv): new function.
- (fptr_finalize): call finish_writeconv.
- (clear_writeconv): new function.
- (clear_codeconv): new function to call both clear_readconv and
- clear_writeconv.
- (rb_io_fptr_finalize): call clear_codeconv instead of
- clear_readconv.
- (mode_enc): ditto.
- (io_set_encoding): ditto.
- (argf_next_argv): ditto.
- (io_encoding_set): ditto.
-
- * gc.c (gc_mark_children): mark writeconv_stateless in T_FILE.
-
- * transcode.c (stateless_encoding_i): new function.
- (rb_econv_stateless_encoding): ditto.
- (rb_econv_string): ditto.
-
-Mon Aug 18 17:23:38 2008 Tanaka Akira <akr@fsij.org>
-
- * io.c (clear_readconv): extracted from rb_io_fptr_finalize.
- (mode_enc): call clear_readconv.
- (io_set_encoding): ditto.
- (argf_next_argv): ditto.
- (io_encoding_set): ditto.
-
-Mon Aug 18 16:54:06 2008 Tanaka Akira <akr@fsij.org>
-
- * io.c (mode_enc): modify enc and enc2 consistently.
- (io_set_encoding): ditto.
- (io_encoding_set): ditto.
-
-Mon Aug 18 13:21:38 2008 Tanaka Akira <akr@fsij.org>
-
- * transcode.c (transcode_search_path): prevent infinite loop by
- searching a path for self conversion.
-
-Mon Aug 18 12:45:24 2008 Tanaka Akira <akr@fsij.org>
-
- * io.c (io_enc_str): code conversion removed.
- (io_enc_str_converted): removed because it is identical to
- io_enc_str now.
-
-Mon Aug 18 12:12:29 2008 Tanaka Akira <akr@fsij.org>
-
- * io.c (io_shift_crbuf): add strp argument to append into existing
- string.
- (read_all): use econv if enc2 is set.
- (io_getc): follow the io_shift_crbuf change.
-
-Mon Aug 18 10:35:25 2008 Tanaka Akira <akr@fsij.org>
-
- * io.c (io_enc_str_converted): new function.
- (make_readconv): extracted from io_getc.
- (more_char): ditto.
- (appendline): use econv via make_readconv and more_char for code
- conversion.
- (prepare_getline_args): don't convert record separator.
- (rb_io_getline_1): don't use rb_io_getline_fast if enc2 is set.
- (io_getc): use make_readconv and more_char.
-
-Mon Aug 18 08:27:44 2008 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
-
- * common.mk: fix error in uncommon.mk.
-
-Mon Aug 18 06:10:08 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * common.mk: config.h depends config.status.
-
-Mon Aug 18 03:59:43 2008 Tanaka Akira <akr@fsij.org>
-
- * io.c (appendline): appendline cannot check character boundary.
- (rb_io_getline_1): relax limit until character boundary.
-
-Mon Aug 18 02:25:11 2008 GOTOU Yuuzou <gotoyuzo@notwork.org>
-
- * lib/webrick/cgi.rb (WEBrick::CGI::Socket#eof?): added lacked method.
-
-Sun Aug 17 21:50:22 2008 Tanaka Akira <akr@fsij.org>
-
- * io.c (prepare_getline_args): io.gets(10,nil) should cause TypeError.
-
-Sun Aug 17 15:58:39 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/mkmf.rb: not check config.h.
-
- * lib/mkmf.rb (init_mkmf): add include/ruby/backward to $INCFLAGS.
-
- * include/ruby/backward/{st,util}.h: added for backward compatibility.
- [ruby-dev:35811]
-
-Sun Aug 17 13:40:04 2008 Tanaka Akira <akr@fsij.org>
-
- * transcode.c (econv_primitive_putback): new method.
-
-Sun Aug 17 13:23:53 2008 Tanaka Akira <akr@fsij.org>
-
- * include/ruby/encoding.h (rb_econv_putbackable): declared.
- (rb_econv_putback): ditto.
-
- * transcode.c (rb_econv_putbackable): implemented.
- (rb_econv_putback): ditto.
-
- * io.c (io_getc): put back bytes if possible.
-
-Sun Aug 17 12:00:18 2008 Tanaka Akira <akr@fsij.org>
-
- * transcode.c (make_econv_exception): add several instance variables
- to exception object.
- (ecerr_source_encoding): new method:
- Encoding::ConversionUndefined#source_encoding and
- Encoding::InvalidByteSequence#source_encoding.
- (ecerr_destination_encoding): new method:
- Encoding::ConversionUndefined#destination_encoding and
- Encoding::InvalidByteSequence#destination_encoding.
- (econverr_error_char): new method:
- Encoding::ConversionUndefined#error_char.
- (econverr_error_bytes): new method:
- Encoding::ConversionUndefined#error_bytes.
-
-Sun Aug 17 11:43:18 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * random.c (struct MT): packed Mersenne Twister staffs.
-
- * random.c (struct RandSeed): packed random seed staffs.
-
-Sun Aug 17 08:38:26 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * test/iconv/test_option.rb (test_ignore_option): skip if iconv
- doesn't have transliterate.
-
- * test/iconv/test_option.rb (test_translit_option): ditto.
-
-Sun Aug 17 01:29:46 2008 Tanaka Akira <akr@fsij.org>
-
- * include/ruby/io.h (rb_io_t): new fields: readconv, crbuf, crbuf_off,
- crbuf_len, crbuf_capa.
- (MakeOpenFile): initialize them.
-
- * io.c (io_shift_crbuf): new function.
- (io_getc): use econv.
- (rb_io_fptr_finalize): finalize readconv and crbuf.
-
-Sun Aug 17 00:02:07 2008 Tanaka Akira <akr@fsij.org>
-
- * include/ruby/encoding.h (rb_econv_check_error): declared.
-
- * transcode.c (make_econv_exception): new function.
- (transcode_loop): use make_econv_exception.
- (rb_econv_check_error): defined.
-
-Sat Aug 16 15:23:16 2008 Tanaka Akira <akr@fsij.org>
-
- * include/ruby/encoding.h (rb_econv_elem_t): fields removed: from and
- to.
- (rb_econv_t): new fields: source_encoding_name and
- destination_encoding_name.
-
- * transcode.c (rb_econv_open_by_transcoder_entries): initialize the
- new fields.
- (rb_econv_open): set up the new fields.
- (econv_inspect): use the new fields.
-
-Sat Aug 16 14:22:04 2008 Tanaka Akira <akr@fsij.org>
-
- * include/ruby/encoding.h (rb_econv_t): add fields: in_buf_start,
- in_data_start, in_data_end, in_buf_end and last_trans_index.
- (rb_econv_output): removed.
- (rb_econv_insert_output): declared.
- (rb_econv_encoding_to_insert_output): declared.
-
- * enc/trans/newline.trans (rb_universal_newline): stateful_type
- changed.
-
- * transcode.c (transcode_restartable0): initialize inchar_start,
- tc->recognized_len and next_table at beginning of the loop.
- (rb_econv_open_by_transcoder_entries): initialize new fields.
- (rb_econv_open): setup last_trans_index.
- (trans_sweep): last out_buf_start can be non-NULL now.
- (rb_econv_convert): check last out_buf_start and in_buf_start at
- first.
- (rb_econv_output_with_destination_encoding): removed.
- (econv_just_convert): removed.
- (rb_econv_output): removed.
- (econv_primitive_output): method removed.
- (rb_econv_encoding_to_insert_output): new function.
- (allocate_converted_string): new function.
- (rb_econv_insert_output): new function.
- (econv_primitive_insert_output): new method.
- (output_replacement_character): use rb_econv_insert_output. unused
- arguments removed.
-
-Sat Aug 16 09:20:18 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * include/ruby/ruby.h (rb_intern_const): tiny optimization.
-
- * include/ruby/ruby.h (SSIZET2NUM, NUM2SSIZET, SSIZE_MAX, SSIZE_MIN):
- macros for ssize_t.
-
-Sat Aug 16 08:11:04 2008 Tanaka Akira <akr@fsij.org>
-
- * transcode_data.h (rb_transcoder_stateful_type_t): defined.
- (rb_transcoder): add field: stateful_type.
-
- * tool/transcode-tblgen.rb: generate stateful_type field as
- stateless_converter.
-
- * enc/trans/iso2022.trans: follow rb_transcoder change.
-
- * enc/trans/newline.trans: ditto.
-
- * enc/trans/utf_16_32.trans: ditto.
-
-Fri Aug 15 23:07:48 2008 Tanaka Akira <akr@fsij.org>
+ * NEWS: describes the above change.
- * transcode.c (econv_just_convert): extracted from rb_econv_output.
- (rb_econv_output): use econv_just_convert.
- (econv_primitive_output): new method.
+Sat Jul 30 10:58:10 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
-Fri Aug 15 19:57:01 2008 Tanaka Akira <akr@fsij.org>
+ * vm.c (th_init): preallocate alternative stack.
+ NoMemoryError is better than rb_bug, of course.
+ Patch by Eric Wong. [ruby-core:38572][ruby-core:38594].
- * include/ruby/encoding.h (rb_econv_output): add str_encoding
- argument.
-
- * transcode.c (get_replacement_character): add repl_enc_ptr argument.
- (rb_econv_output_with_destination_encoding): renamed from
- rb_econv_output and make it static.
- (rb_econv_output): convert str and call
- rb_econv_output_with_destination_encoding.
- (output_replacement_character): follow above interface change.
-
-Fri Aug 15 19:33:57 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * string.c (rb_str_drop_bytes): use memmove.
-
-Fri Aug 15 18:33:22 2008 Tanaka Akira <akr@fsij.org>
-
- * include/ruby/encoding.h (rb_econv_t): add error_tc in last_error.
-
- * transcode.c (rb_econv_convert): fill error_tc.
-
-Fri Aug 15 18:10:49 2008 Tanaka Akira <akr@fsij.org>
-
- * include/ruby/encoding.h (rb_econv_t): new field: last_error.
-
- * transcode.c (rb_trans_conv): new argument: result_position_ptr.
- (rb_econv_convert): fill last_error.
- (econv_result_to_symbol): extracted from econv_primitive_convert.
- (econv_primitive_errinfo): new method.
-
-Fri Aug 15 17:39:05 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * common.mk (parse.{c,h}): creates in the dependency order.
-
-Fri Aug 15 16:59:30 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * vm_core.h (exec_event_hooks): skips RubyVM::FrozenCore.
-
- * vm.c (Init_VM): get rid of SEGV in a trace proc.
-
-Fri Aug 15 09:33:48 2008 Tanaka Akira <akr@fsij.org>
-
- * transcode.c (conv_init): check empty name.
-
-Fri Aug 15 09:03:54 2008 Tanaka Akira <akr@fsij.org>
-
- * transcode.c (econv_init): don't create dummy encoding if
- rb_econv_open is failed.
- (make_dummy_encoding): new function extracted from make_encoding.
- (make_encoding): removed.
-
-Fri Aug 15 01:07:16 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * common.mk ({$(srcdir)}.y.c): escape backslash.
-
-Fri Aug 15 01:05:39 2008 Tanaka Akira <akr@fsij.org>
-
- * transcode.c (econv_primitive_convert): set destination_buffer
- encoding.
-
-Fri Aug 15 00:52:40 2008 Tanaka Akira <akr@fsij.org>
-
- * include/ruby/encoding.h (rb_econv_output): declared.
-
- * transcode_data.h (rb_transcoder): add resetsize_func field.
-
- * enc/trans/iso2022.trans (iso2022jp_reset_sequence_size): defined.
- (rb_EUC_JP_to_ISO_2022_JP): provide resetsize_func.
-
- * tool/transcode-tblgen.rb: set NULL for resetsize_func.
-
- * transcode.c (rb_econv_output): new function for inserting output.
- (output_replacement_character): use rb_econv_output.
- (transcode_loop): check return value of
- output_replacement_character.
-
-Thu Aug 14 23:47:21 2008 Tanaka Akira <akr@fsij.org>
-
- * include/ruby/encoding.h (ECONV_UNIVERSAL_NEWLINE_DECODER): defined.
- (ECONV_CRLF_NEWLINE_ENCODER): ditto.
- (ECONV_CR_NEWLINE_ENCODER): ditto.
- (ECONV_PARTIAL_INPUT): ditto.
- (ECONV_OUTPUT_FOLLOWED_BY_INPUT): ditto.
-
- * transcode.c: use ECONV_* defined as above.
-
-Thu Aug 14 23:35:21 2008 Tanaka Akira <akr@fsij.org>
-
- * transcode.c: local variable renamed.
-
-Thu Aug 14 23:22:24 2008 Tanaka Akira <akr@fsij.org>
-
- * include/ruby/encoding.h (rb_econv_result_t): moved from
- transcode_data.h.
- (rb_econv_elem_t): ditto.
- (rb_econv_t): ditto. source_encoding and destination_encoding field
- is added.
- (rb_econv_open): declared.
- (rb_econv_convert): ditto.
- (rb_econv_close): ditto.
-
- * transcode.c (rb_econv_open_by_transcoder_entries): initialize
- source_encoding and destination_encoding field as NULL.
- (rb_econv_open): make it external linkage.
- (rb_econv_close): ditto.
- (rb_econv_convert): ditto. renamed from rb_econv_conv.
- (make_encoding): new function.
- (econv_init): use make_encoding and store rb_encoding* in
- rb_econv_t.
- (econv_source_encoding): new method
- Encoding::Converter#source_encoding.
- (econv_destination_encoding): new method
- Encoding::Converter#destination_encoding.
-
-Thu Aug 14 22:44:32 2008 Tanaka Akira <akr@fsij.org>
-
- * transcode_data.h (rb_econv_result_t): change enumeration
- constant's prefix: transcode_ to econv_.
-
- * transcode.c: follow the constant prefix change.
-
-Thu Aug 14 21:34:41 2008 Tanaka Akira <akr@fsij.org>
-
- * transcode.c (econv_init): accept Encoding object as source_encoding
- and destination_encoding.
-
-Thu Aug 14 21:10:00 2008 Tanaka Akira <akr@fsij.org>
-
- * encoding.c (rb_filesystem_encoding): use default external encoding
- for Unix.
-
- * dir.c (dir_initialize): don't cache fs_encoding.
-
-Thu Aug 14 20:58:57 2008 Tanaka Akira <akr@fsij.org>
-
- * transcode.c (rb_econv_open_by_transcoder_entries): renamed from
- rb_trans_open_by_transcoder_entries.
-
-Thu Aug 14 20:56:28 2008 Tanaka Akira <akr@fsij.org>
-
- * transcode.c (econv_max_output): removed.
-
-Thu Aug 14 20:52:55 2008 Tanaka Akira <akr@fsij.org>
-
- * tool/transcode-tblgen.rb: check unexpected actions.
-
-Thu Aug 14 20:25:52 2008 Tanaka Akira <akr@fsij.org>
-
- * transcode_data.h (transcode_invalid_byte_sequence): renamed from
- transcode_invalid_input.
- (transcode_destination_buffer_full): renamed from transcode_obuf_full.
- (transcode_source_buffer_empty): renamed from transcode_ibuf_empty.
- (rb_econv_result_t): renamed from rb_trans_result_t.
- (rb_econv_elem_t): renamed from rb_trans_elem_t.
- (rb_econv_t): renamed from rb_trans_t.
-
- * transcode.c (UNIVERSAL_NEWLINE_DECODER): renamed from
- UNIVERSAL_NEWLINE.
- (CRLF_NEWLINE_ENCODER): renamed from CRLF_NEWLINE.
- (CR_NEWLINE_ENCODER): renamed from CR_NEWLINE.
- (rb_econv_open): renamed from rb_trans_open.
- (rb_econv_close): renamed from rb_trans_close.
-
-Thu Aug 14 19:41:42 2008 Tanaka Akira <akr@fsij.org>
-
- * transcode.c (load_transcoder): unused function removed.
- (rb_transcoding_open): ditto.
-
-Thu Aug 14 17:57:05 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * include/ruby/encoding.h (rb_enc_ispunct): added.
-
- * common.mk (COMMONOBJS), inits.c (rb_call_inits): id.c is now
- included from parse.c.
-
- * id.c (Init_id), id.h (ruby_method_ids): added IDs used by VM.
-
- * parse.y (global_symbols): added rooms for VM IDs.
-
- * parse.y (rb_intern3, rb_id2str): single punctuation symbol is now
- same as char code.
-
-Thu Aug 14 17:46:21 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * parse.y (union tmpyystype): no longer needed, since YYSTYPE is
- defined in parse.h now.
-
-Thu Aug 14 17:27:07 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * version.c (Init_version): add RUBY_ENGINE constant.
-
-Thu Aug 14 15:34:10 2008 Tanaka Akira <akr@fsij.org>
-
- * transcode.c (rb_econv_conv): new function. it doesn't consume
- input too much, even for multilevel conversion.
- (transcode_loop): use rb_econv_conv.
- (econv_primitive_convert): ditto.
-
-Thu Aug 14 15:27:42 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * include/ruby/defines.h (RUBY_ALIAS_FUNCTION): fallback definition.
-
-Thu Aug 14 15:08:17 2008 Tanaka Akira <akr@fsij.org>
-
- * transcode_data.h (rb_trans_result_t): new enumeration constant:
- transcode_output_followed_by_input.
-
- * transcode.c (OUTPUT_FOLLOWED_BY_INPUT): new flag.
- (transcode_restartable0): suspend when output followed by input if
- OUTPUT_FOLLOWED_BY_INPUT is specified.
- (trans_sweep): check OUTPUT_FOLLOWED_BY_INPUT.
- (rb_trans_conv): support OUTPUT_FOLLOWED_BY_INPUT.
- (econv_primitive_convert): return :output_followed_by_input for
- transcode_output_followed_by_input.
-
-Thu Aug 14 14:57:46 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * gc.c (getrusage_time): should return the value.
-
- * thread.c (rb_thread_priority_set): get rid of C99 feature.
-
- * transcode.c (transcode_search_path): ditto.
-
- * vm.c (REWIND_CFP): get rid of statement expressions.
-
-Thu Aug 14 14:13:39 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * vm.c (Init_VM): hide FrozenCore.
-
-Thu Aug 14 12:20:36 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * signal.c (rb_register_sigaltstack): ditto.
- * transcode.c (load_transcoder): suppress warning.
+ * vm_core.h: moved ALT_STACK_SIZE definition from signal.c.
- * missing/vsnprintf.c (BSD_vfprintf): ditto.
+ * vm.c (thread_free): use xfree() instead of free().
-Thu Aug 14 12:01:39 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Sat Jul 30 07:20:49 2011 Tanaka Akira <akr@fsij.org>
- * configure.in (gnumake): check for GNU make.
-
- * Makefile.in (uncommon.mk): includes filtered common.mk.
-
- * common.mk (parse.h): workaround for nmake.
-
-Thu Aug 14 06:09:12 2008 Koichi Sasada <ko1@atdot.net>
-
- * thread.c (rb_thread_execute_interrupts): switch event
- should be occur only once.
-
-Thu Aug 14 05:36:36 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * common.mk: parse.h depends on parse.c.
-
- * common.mk: hash.o depends on $(ID_H_INCLUDES).
-
-Thu Aug 14 02:45:16 2008 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
-
- * test/ruby/test_file_exhaustive.rb (TestFileExhaustive#setup):
- set group of tmpdir. [ruby-dev:35633]
-
-Thu Aug 14 15:50:30 2008 Giuseppe Bilotta <giuseppe.bilotta@gmail.com>
-
- * hash.c (set_default): fix rdoc. #441
-
-Thu Aug 14 02:23:31 2008 Tanaka Akira <akr@fsij.org>
-
- * transcode.c (econv_primitive_convert): add output_byteoffset
- argument.
-
-Thu Aug 14 00:43:53 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * configure.in (rb_cv_gcc_function_alias): checks alias attribute.
-
- * string.c (alias_func): replaced with RUBY_ALIAS_FUNCTION.
-
-Wed Aug 13 23:42:49 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * common.mk (parse.h): fake rule.
-
-Wed Aug 13 23:15:58 2008 Shugo Maeda <shugo@ruby-lang.org>
-
- * test/ruby/test_thread.rb (test_list): call Thread.pass to run t1.
- fixed [ruby-core:18264].
-
-Wed Aug 13 23:05:51 2008 TAKAO Kouji <kouji@takao7.net>
-
- * string.c (alias_func): changed to 'weak, alias' from 'alias' for
- Mac OSX. (closes #429)
-
-Wed Aug 13 19:40:12 2008 Koichi Sasada <ko1@atdot.net>
-
- * gc.c: count only freed object as freelist size.
-
-Wed Aug 13 18:34:22 2008 Shugo Maeda <shugo@ruby-lang.org>
-
- * marshal.c (marshal_load): set arg.untrust properly.
-
-Wed Aug 13 17:47:09 2008 Tanaka Akira <akr@fsij.org>
-
- * transcode.c (econv_inspect): new method.
-
-Wed Aug 13 17:35:58 2008 Tanaka Akira <akr@fsij.org>
-
- * transcode.c (transcode_restartable0): several local variables
+ * ext/socket/lib/socket.rb (udp_server_sockets): unused variable
removed.
+ patch by Jeremy Evans. [ruby-core:38600]
-Wed Aug 13 17:35:23 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * hash.c (rb_hash_set_default_proc): add new method. a patch from
- Giuseppe Bilotta. #419
-
-Wed Aug 13 17:31:12 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * vm_insnhelper.c (caller_setup_args): should ensure if the value
- from to_proc is a real Proc.
-
-Wed Aug 13 17:28:29 2008 Akinori MUSHA <knu@iDaemons.org>
-
- * common.mk: regint.h no longer includes vm_core.h.
-
-Wed Aug 13 17:26:44 2008 Tanaka Akira <akr@fsij.org>
-
- * transcode_data.h (rb_transcoding): add fields: writebuf_off,
- writebuf_len and writebuf.
- (TRANSCODING_WRITEBUF): new macro.
-
- * transcode.c (transcode_restartable0): output until output buffer is
- really full.
- (rb_transcoding_open_by_transcoder): initialize writebuf_len,
- writebuf_off and writebuf.
- (rb_transcoding_close): finalize writebuf.
-
-Wed Aug 13 17:18:37 2008 Koichi Sasada <ko1@atdot.net>
-
- * thread.c (rb_thread_check_ints): added. please note that
- this function may cause ruby's thread switching.
-
- * include/ruby/intern.h: ditto.
-
- * regint.h: use rb_thread_check_ints() instead of
- RUBY_CHECK_INTS() directly.
-
-Wed Aug 13 17:01:36 2008 Akinori MUSHA <knu@iDaemons.org>
-
- * golf_prelude.rb, lib/set.rb (TC_Set#test_each),
- test/readline/test_readline_history.rb (Readline#test_each__enumerator),
- test/ruby/test_array.rb (TestArray#test_collect),
- test/ruby/test_enumerator.rb (TestEnumerator#test_initialize):
- Enumerable::Enumerator is now called Enumerator.
-
- * lib/rinda/tuplespace.rb (Rinda::TupleBag#initialize): Use
- enum_for instead of hardcoding Enumerable::Enumerator.
-
-Wed Aug 13 16:40:57 2008 Koichi Sasada <ko1@atdot.net>
-
- * thread.c, vm_core.h: add manual priority support
- using time slice. if you enable USE_NATIVE_THREAD_PRIORITY
- macro, this mechanism is ignored. [ruby-dev:33124]
-
- * thread_pthread.c, thread_win32.c: ditto.
-
- * test/ruby/test_thread.rb: fix test parameter.
-
-Wed Aug 13 16:02:14 2008 Shugo Maeda <shugo@ruby-lang.org>
-
- * object.c (rb_obj_untrusted): new method Object#untrusted?.
- (rb_obj_untrust): new method Object#untrust.
- (rb_obj_trust): new method Object#trust.
-
- * array.c, debug.c, time.c, include/ruby/ruby.h, re.c, variable.c,
- string.c, io.c, dir.c, vm_method.c, struct.c, class.c, hash.c,
- ruby.c, marshal.c: fixes for Object#untrusted?.
-
- * test/ruby/test_module.rb, test/ruby/test_array.rb,
- test/ruby/test_object.rb, test/ruby/test_string.rb,
- test/ruby/test_marshal.rb, test/ruby/test_hash.rb: added tests for
- Object#untrusted?.
-
-Wed Aug 13 16:13:58 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * test/ruby/test_m17n.rb: follow EncodingCompatibilityError.
-
- * test/ruby/test_mixed_unicode_escapes.rb: ditto.
-
- * test/ruby/enc/test_utf16.rb: ditto.
-
-Wed Aug 13 16:05:50 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * time.c (time_cmp): retry with right hand operand if its not a
- time object. [ruby-dev:35011]
-
-Wed Aug 13 15:51:22 2008 Akinori MUSHA <knu@iDaemons.org>
-
- * string.c: Apply a temporary fix to fix build on OS X. A real
- fix will follow later.
-
-Wed Aug 13 15:25:09 2008 Akinori MUSHA <knu@iDaemons.org>
-
- * enumerator.c (Init_Enumerator): Rename Enumerable::Enumerator to
- just Enumerator.
-
-Wed Aug 13 15:13:57 2008 Akinori MUSHA <knu@iDaemons.org>
-
- * common.mk (prelude.c, golf_prelude.c): Using $(COMPILE_PRELUDE)
- requires $(RBCONFIG).
-
-Wed Aug 13 15:08:04 2008 Tanaka Akira <akr@fsij.org>
-
- * transcode.c (econv_init): make flags argument optional.
- (econv_primitive_convert): ditto.
-
-Wed Aug 13 14:55:27 2008 Akinori MUSHA <knu@iDaemons.org>
-
- * common.mk (realclean-local): Remove parse.h as well.
-
- * common.mk: Add missing dependencies regarding vm_core.h, id.h,
- parse.c (parse.h), etc..
-
-Wed Aug 13 14:45:37 2008 Tanaka Akira <akr@fsij.org>
-
- * enc/trans/newline.trans (rb_crlf_newline): new transcoder.
- (rb_cr_newline): new transcoder.
-
- * transcode.c (trans_open_i): one more extra room for input newline
- converter.
- (rb_trans_open): crlf newline and cr newline implemented.
- (Init_transcode): Encoding::Converter::CRLF_NEWLINE and
- Encoding::Converter::CR_NEWLINE defined.
-
-Wed Aug 13 14:22:16 2008 Tanaka Akira <akr@fsij.org>
-
- * enc/trans/newline.trans: new file.
-
- * transcode_data.h (rb_trans_t): add last_tc field.
-
- * transcode.c (UNIVERSAL_NEWLINE): defined.
- (CRLF_NEWLINE): defined.
- (CR_NEWLINE): defined.
- (rb_trans_open_by_transcoder_entries): initialize last_tc.
- (trans_open_i): allocate one more room for output newline converter.
- (rb_trans_open): universal newline implemented.
- (more_output_buffer): take max_output argument instead ts.
- (output_replacement_character): take tc argument instead of ts.
- (transcode_loop): use last_tc field.
- (econv_init): add flags argument for rb_trans_open.
- (Init_transcode): Encoding::Converter::UNIVERSAL_NEWLINE defined.
-
-Wed Aug 13 14:00:19 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * common.mk (parse.c): generates parse.h together.
-
- * id.c, id.h: use constants for parser tokens.
-
-Wed Aug 13 13:47:05 2008 Koichi Sasada <ko1@atdot.net>
-
- * vm.c: rewind cfp to show proper backtrace.
- [ruby-dev:35820]
-
-Wed Aug 13 13:09:09 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * tool/make-snapshot: fix for clean up.
-
-Wed Aug 13 11:45:51 2008 Akinori MUSHA <knu@iDaemons.org>
-
- * vm_core.h: Declare rb_iseq_clone, which is used in class.c.
-
-Wed Aug 13 11:39:19 2008 Tanaka Akira <akr@fsij.org>
-
- * transcode.c (transcode_search_path): return the length of converter
- path.
- (load_transcoder_entry): renamed from load_transcoder.
- (load_transcoder): new function for loading transcoder by encoding
- names.
- (rb_transcoding_open_by_transcoder): extracted from
- rb_transcoding_open.
- (rb_transcoding_open): use load_transcoder and
- rb_transcoding_open_by_transcoder.
- (rb_trans_open_by_transcoder_entries): new function.
- (trans_open_i): construct entries array.
- (rb_trans_open): use rb_trans_open_by_transcoder_entries.
-
-Wed Aug 13 10:45:29 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * tool/make-snapshot: try to find exported directory.
-
-Wed Aug 13 10:16:35 2008 TAKAO Kouji <kouji@takao7.net>
-
- * doc/NEWS: Mention the Readline.vi_editing_mode?,
- Readline.emacs_editing_mode?, Readline::HISTORY[] and
- Readline::HISTORY.clear change.
-
-Wed Aug 13 08:03:02 2008 Tanaka Akira <akr@fsij.org>
-
- * transcode.c (econv_primitive_convert): add output_size argument.
-
-Wed Aug 13 07:41:03 2008 Tanaka Akira <akr@fsij.org>
-
- * transcode.c (rb_trans_conv): report last transcode_obuf_full.
- (econv_max_output): new method Encoding::Converter#max_output.
-
-Wed Aug 13 02:46:01 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * error.c (rb_eEncCompatError): add Exception.
-
- * include/ruby/ruby.h: ditto.
-
- * encoding.c (rb_enc_check): use rb_eEncCompatError.
-
- * string.c (rb_enc_cr_str_buf_cat): ditto.
-
- * string.c (rb_str_sub_bang): ditto.
-
- * string.c (rb_str_hex): ditto.
-
- * string.c (rb_str_oct): ditto.
-
-Wed Aug 13 02:36:47 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * transcode.c (str_transcode): fix error message.
-
-Tue Aug 12 23:42:31 2008 Tanaka Akira <akr@fsij.org>
-
- * transcode.c (rb_cEncodingConverter): new class Encoding::Converter.
- (econv_free): new function.
- (econv_s_allocate): ditto.
- (econv_init): ditto.
- (check_econv): ditto.
- (econv_primitive_convert): new method.
- (Init_transcode): define Encoding::Converter.
-
-Tue Aug 12 23:16:09 2008 Tanaka Akira <akr@fsij.org>
-
- * string.c (rb_str_splice_0): call rb_str_drop_bytes, not rb_str_drop.
-
-Tue Aug 12 19:11:05 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * tool/make-snapshot: fix for enc.mk.
-
-Tue Aug 12 19:08:42 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * string.c (rb_str_drop_bytes): new function to drop first bytes.
-
-Tue Aug 12 18:58:48 2008 Koichi Sasada <ko1@atdot.net>
-
- * vm.c, vm_insnhelper.c (vm_define_method): move
- function place.
-
-Tue Aug 12 18:56:52 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * string.c: more descriptive aliases of rb_str_new[2-5].
- [ruby-dev:35615]
-
-Tue Aug 12 18:51:29 2008 TAKAO Kouji <kouji@takao7.net>
-
- * gc.c (getrusage_time): Returned effective value on Windows.
-
-Tue Aug 12 18:51:11 2008 Tanaka Akira <akr@fsij.org>
-
- * transcode.c (rb_trans_open): free ts before raise.
-
-Tue Aug 12 18:46:36 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * ext/bigdecimal/bigdecimal.c (BigDecimalCmp): should not ignore
- <=> comparison. [ruby-dev:35732]
-
-Tue Aug 12 18:43:10 2008 Tanaka Akira <akr@fsij.org>
-
- * enc/trans/make_transdb.rb: *.erb.c is not used anymore.
-
-Tue Aug 12 18:32:33 2008 Tanaka Akira <akr@fsij.org>
-
- * transcode_data.h (rb_trans_elem_t): new field: from and to.
-
- * transcode.c (trans_open_i): just record from and to.
- (rb_trans_open): load transcodings.
-
-Tue Aug 12 18:32:03 2008 Akinori MUSHA <knu@iDaemons.org>
-
- * ext/syslog/syslog.c (mSyslog_open): Use of Check_SafeStr() is
- deprecated.
- (mSyslogConstants_LOG_MASK, mSyslogConstants_LOG_UPTO): Use
- NUM2INT() instead of FIX2INT() when the type of an given object
- is not determined.
-
-Tue Aug 12 18:14:00 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * tool/transcode-tblgen.rb (#transcode_tblgen): slight message
- improvement.
-
-Tue Aug 12 17:16:58 2008 Tanaka Akira <akr@fsij.org>
-
- * transcode.c (trans_open_i): check the result of rb_transcoding_open.
-
-Tue Aug 12 16:23:32 2008 Narihiro Nakamura <authorNari@gmail.com>
-
- * gc.c (gc_profile_result): use rb_str_catf.
-
-Tue Aug 12 16:13:45 2008 Tanaka Akira <akr@fsij.org>
-
- * transcode_data.h (TRANSCODE_ERROR): removed.
-
- * tool/transcode-tblgen.rb: 8bit byte of ASCII-8BIT is a valid
- (but unique to ASCII-8BIT) character.
-
- * transcode.c (rb_eConversionUndefined): new error.
- (rb_eInvalidByteSequence): ditto.
-
-Tue Aug 12 16:08:51 2008 Minero Aoki <aamine@loveruby.net>
-
- * lib/net/pop.rb: POP3Command should export @socket since POP
- calls #socket.
-
-Tue Aug 12 16:06:28 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * sprintf.c, util.c (quorem, nrv_alloc, dtoa): enabled floating point
- support.
-
-Tue Aug 12 15:52:45 2008 Narihiro Nakamura <authorNari@gmail.com>
-
- * gc.c (gc_profile_result): use sprintf.
-
-Tue Aug 12 15:37:40 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * string.c (rb_str_intern): should check symbol table overflow.
-
-Tue Aug 12 15:31:04 2008 Minero Aoki <aamine@loveruby.net>
-
- * lib/net/http.rb (send_request_with_body): Content-Length should
- be byte length of string. (closes #203)
-
-Tue Aug 12 15:17:06 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * enc/depend: (transvpath_prefix): prefix has no extension, so replace
- %s with "".
-
-Tue Aug 12 15:03:43 2008 TAKAO Kouji <kouji@takao7.net>
-
- * test/readline/test_readline.rb (TestReadline#test_safe_level_4):
- tested Readline.vi_editing_mode? and Readline.emacs_editing_mode?.
-
-Tue Aug 12 14:25:09 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * enc/Makefile.in (.SUFFIXES): renamed to .trans.
-
- * enc/make_encmake.rb: added --encs and --no-encs options.
-
- * enc/depend (TRANSVPATH): fix for nmake.
-
-Tue Aug 12 14:19:53 2008 Minero Aoki <aamine@loveruby.net>
-
- * lib/net/https.rb: suppress syntax warning.
-
-Tue Aug 12 14:15:51 2008 Minero Aoki <aamine@loveruby.net>
-
- * lib/net/http.rb (Net::HTTP#initialize): initialize net/https
- variables to suppress syntax warning.
-
-Tue Aug 12 14:15:13 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/dl/cptr.c (rb_dlptr_s_to_ptr): fixed shadowing variable.
-
-Tue Aug 12 10:25:14 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * array.c (rb_ary_delete): Array#delete to return deleted element.
-
-Tue Aug 12 10:18:01 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * test/win32ole/test_err_in_callback.rb: do not require 'mkmf'
- unless WIN32OLE is defined.
-
-Tue Aug 12 07:41:13 2008 Tanaka Akira <akr@fsij.org>
-
- * transcode_data.h (rb_transcoder): add resetstate_func field for
- resetting a state of stateful encoding.
-
- * enc/trans/iso2022.trans (rb_EUC_JP_to_ISO_2022_JP): specify
- finish_eucjp_to_iso2022jp for resetstate_func.
-
- * tool/transcode-tblgen.rb: specify NULL for resetstate_func.
-
- * transcode.c (output_replacement_character): call resetstate_func
- before appending the replacement character.
-
-Tue Aug 12 07:19:24 2008 Tanaka Akira <akr@fsij.org>
-
- * transcode.c (get_replacement_character): extracted from
- output_replacement_character.
-
-Tue Aug 12 07:00:02 2008 Tanaka Akira <akr@fsij.org>
-
- * transcode_data.h (rb_transcoder): typedef at first.
-
-Tue Aug 12 06:48:35 2008 Tanaka Akira <akr@fsij.org>
-
- * transcode.c (rb_trans_conv): find second last error.
-
-Tue Aug 12 00:43:44 2008 Tanaka Akira <akr@fsij.org>
-
- * transcode_data.h (rb_trans_result_t): new type.
- (rb_trans_elem_t): new type.
- (rb_trans_t): new type.
-
- * transcode.c (transcode_dispatch_cb): removed.
- (transcode_dispatch): removed.
- (rb_transcoding_result_t): moved to rb_trans_result_t in
- transcode_data.h.
- (transcode_restartable0): goto follow_info when FUNsi.
- (rb_transcoding_open): use get_transcoder_entry.
- (rb_trans_open): new function.
- (rb_trans_conv): ditto.
- (rb_trans_close): ditto.
- (trans_open_i): ditto.
- (trans_sweep): ditto.
- (more_output_buffer): take rb_trans_t instead of rb_transcoding as
- an argument.
- (transcode_loop): take from_encoding and to_encoding instead of tr
- as arguments. use rb_trans_open/rb_trans_conv/rb_trans_close.
- (str_transcode): don't use transcode_dispatch.
-
-Mon Aug 11 20:37:05 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * iseq.c (rb_iseq_clone): should preserve cref_stack link.
-
-Mon Aug 11 20:27:12 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * ext/dl/cfunc.c (rb_dlcfunc_call): add taint check.
-
- * ext/dl/dl.c (rb_dl_malloc): add rb_secure(2).
-
- * ext/dl/dl.c (rb_dl_realloc): ditto.
-
- * ext/dl/dl.c (rb_dl_free): ditto.
-
- * ext/dl/dl.c (rb_dl_ptr2value): ditto.
-
-Mon Aug 11 20:11:21 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * gc.c (getrusage_time): works only if RUSAGE_SELF is defined right
- now.
-
- * gc.c (gc_profile_result): C99.
-
-Mon Aug 11 18:57:38 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * array.c (rb_ary_sample): rename #choice to #sample. in
- addition, sample takes optional argument, a la #first.
-
-Mon Aug 11 18:28:02 2008 Narihiro Nakamura <authorNari@gmail.com>
-
- * gc.c: added GC::Profiler.
-
-Mon Aug 11 17:26:16 2008 TAKAO Kouji <kouji@takao7.net>
-
- * ext/readline/README.ja: added API document for
- Readline.vi_editing_mode? and Readline.emacs_editing_mode?.
-
- * ext/readline/extconf.rb: checked rl_editing_mode variable in
- Readline library.
-
- * ext/readline/readline.c (readline_s_emacs_editing_mode_p): added
- Readline.emacs_editing_mode? method.
- (readline_s_vi_editing_mode_p): added Readline.vi_editing_mode?
- method.
- (Init_readline): ditto.
-
-Mon Aug 11 16:56:40 2008 TAKAO Kouji <kouji@takao7.net>
-
- * test/readline/test_readline.rb: added test for Readline's class
- methods.
-
-Mon Aug 11 16:39:23 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * class.c (clone_method): should copy cbase in cref as well.
- [ruby-dev:35116]
-
- * iseq.c (iseq_mark): mark original iseq object.
-
- * iseq.c (iseq_free): do not free internal data if they have
- original iseq to belong.
-
- * iseq.c (rb_iseq_clone): a new function to clone iseq value.
-
-Mon Aug 11 16:34:48 2008 Tanaka Akira <akr@fsij.org>
-
- * enc/trans/iso2022.trans: renamed from iso2022.erb.c.
-
- * enc/trans/single_byte.trans: ditto.
-
- * enc/trans/utf_16_32.trans: ditto.
-
- * enc/trans/korean.trans: ditto.
-
- * enc/trans/japanese.trans: ditto.
-
- * enc/depend: follow the renaming.
-
- * tool/build-transcode: ditto.
-
-Mon Aug 11 15:09:23 2008 Tanaka Akira <akr@fsij.org>
-
- * configure.in (rb_cv_broken_glibc_ia64_erfc): renamed from
- rb_broken_glibc_ia64_erfc.
- [ruby-core:18228]
-
-Mon Aug 11 10:04:34 2008 Tanaka Akira <akr@fsij.org>
-
- * transcode_data.h (rb_transcoding): rename fields.
- readlen -> recognized_len.
- feedlen -> readagain_len.
-
- * transcode.c: follow the field renaming.
-
-Sun Aug 10 22:34:55 2008 Tanaka Akira <akr@fsij.org>
-
- * transcode.c (transcode_restartable0): invalid handling simplified.
- (transcode_restartable): use PARTIAL_INPUT for converting buffered
- input.
-
-Sun Aug 10 22:24:24 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * encoding.c: include util.h. [ruby-dev:35715]
-
- * common.mk: ditto.
-
-Sun Aug 10 20:59:54 2008 Tanaka Akira <akr@fsij.org>
-
- * transcode_data.h (rb_transcoding): new field: flags.
-
- * transcode.c (load_transcoder): extracted from transcode_dispatch_cb.
- (rb_transcoding_result_t): renamed from transcode_result_t.
- (rb_transcoding_open): new function.
- (rb_transcoding_convert): ditto.
- (rb_transcoding_close): ditto.
- (transcode_loop): use rb_transcoding_open, rb_transcoding_convert
- and rb_transcoding_close.
- (str_transcode): don't need rb_transcoding.
-
-Sun Aug 10 18:09:16 2008 Tanaka Akira <akr@fsij.org>
-
- * tool/transcode-tblgen.rb: record checksum of
- transcode-tblgen.rb itself.
-
-Sun Aug 10 12:34:41 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * config.guess ({powerpc-apple,i586-pc}-haiku): re-applied r18403.
- [ruby-core:18110]
-
- * config.{guess,sub}: updated to automake-1.10.1.
-
-Sun Aug 10 11:45:15 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * enc/Makefile.in (make-workdir): use MAKEDIRS.
-
- * enc/depend: makes target directory before compile/link.
-
- * tool/transcode-tblgen.rb: creates target directory.
-
-Sun Aug 10 11:30:48 2008 Tanaka Akira <akr@fsij.org>
-
- * transcode.c: rename my_transcoding to tc and my_transcoder to tr.
-
-Sun Aug 10 11:15:55 2008 Tanaka Akira <akr@fsij.org>
-
- * transcode_data.h (rb_transcoding): add feedlen field.
-
- * transcode.c (transcode_restartable0): renamed from
- transcode_restartable.
- save input buffer into feed buffer if next character is started the
- point before input buffer. for example, "\x00\xd8\x01" then "\x02"
- in UTF-16LE. \x02 causes invalid and next character is started from
- \x01.
- (transcode_restartable): new function to call
- transcode_restartable0. if feed buffer is not empty, convert it at
- first.
-
-Sun Aug 10 11:02:58 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * common.mk (extconf): use MAKEDIRS.
-
-Sun Aug 10 09:35:12 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/irb.rb (IRB::Irb#inspect): instance_variables returns symbols
- instead of strings now. [ruby-dev:34930]
-
-Sun Aug 10 09:22:14 2008 Tanaka Akira <akr@fsij.org>
-
- * transcode.c (transcode_char_start): refactored to remove readlen
- argument.
- (transcode_restartable): refactored to remove readlen variable.
-
-Sun Aug 10 08:56:14 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * gc.c (STACK_LEVEL_MAX, ruby_stack_length): returns size_t.
- [ruby-core:18207]
-
- * configure.in (rb_cv_missing__dtos18, rb_cv_missing_fconvert),
- ext/digest/md5/md5.c, ext/openssl/ossl.c (main),
- ext/socket/extconf.rb (ipv6, wide-getaddrinfo): main should be int.
-
- * main.c (main), win32/winmain.c, wince/wincemain.c (WinMain): envp is
- no longer used so long time. based on a patch from Peter Bowen at
- [ruby-core:18208]
-
-Sat Aug 9 22:05:29 2008 Tanaka Akira <akr@fsij.org>
-
- * transcode.c (transcode_loop): take destination and resize function
- as parameters.
- (more_output_buffer): ditto.
- (str_transcoding_resize): argument changed from rb_transcoding* to
- VALUE.
- (str_transcode): call transcode_loop with destination string and its
- resize function.
-
- * transcode_data.h (rb_transcoding): move ruby_string_dest and
- flush_func to transcode_loop parameters.
-
-Sat Aug 9 21:29:45 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * common.mk: encs depend on transdb.h
-
-Sat Aug 9 21:10:51 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * configure.in (rb_cv_rshift_sign, rb_cv_binary_elf): get rid of
- AC_TRY_RUN.
-
-Sat Aug 9 16:33:21 2008 Tanaka Akira <akr@fsij.org>
-
- * transcode_data.h (rb_transcoding): new fields: next_info and next_byte.
-
- * transcode.c (transcode_restartable): save/restore next_info and
- next_byte.
- sync readlen and in_p when invalid.
-
-Sat Aug 9 15:10:15 2008 Tanaka Akira <akr@fsij.org>
-
- * transcode.c (transcode_restartable): my_transcoder argument removed.
- (transcode_loop): my_transcoder argument removed.
-
-Sat Aug 9 14:39:34 2008 Tanaka Akira <akr@fsij.org>
-
- * transcode_data.h (rb_transcoding): add fields for restartable
- transcoding.
- (rb_transcoder): add max_input field.
- from_unit_length field is renamed to input_unit_length.
-
- * tool/transcode-tblgen.rb: generate max_input field.
-
- * enc/trans/iso2022.erb.c: follow rb_transcoder change.
-
- * enc/trans/utf_16_32.erb.c: ditto.
-
- * transcode.c (PARTIAL_INPUT): new constant.
- (transcode_char_start): new function.
- (transcode_result_t): new type.
- (transcode_restartable): new function.
- (more_output_buffer): new function.
- (transcode_loop): use transcode_restartable.
-
-Sat Aug 9 13:35:08 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * stable/ext/socket/socket.c (NI_MAXHOST, NI_MAXSERV): fixed invalid
- preprocessor directives. a patch from Peter Bowen at
- [ruby-core:18211].
-
-Sat Aug 9 06:37:21 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * enc/make_encdb.rb, enc/trans/make_transdb.rb: skip nonexistent
- directory. [ruby-dev:35802]
-
-Sat Aug 9 01:07:51 2008 Tanaka Akira <akr@fsij.org>
-
- * enc/trans/utf_16_32.erb.c (fun_so_from_utf_32le): implemented.
- (fun_so_to_utf_32le): implemented.
- [ruby-dev:35777]
-
-Sat Aug 9 00:42:33 2008 Tanaka Akira <akr@fsij.org>
-
- * transcode_data.h (rb_transcoder): from_unit_length field added.
- from_utf8 field removed.
-
- * tool/transcode-tblgen.rb: generate offsets range.
- follow rb_transcoder change.
-
- * transcode.c (transcode_loop): don't use from_utf8.
- make invalid region from_unit_length wise.
-
- * enc/trans/iso2022.erb.c: follow rb_transcoder and
- transcode_generate_node change.
-
- * enc/trans/utf_16_32.erb.c: follow rb_transcoder and
- transcode_generate_node change.
- explicit :invalid map removed.
-
-Fri Aug 8 23:29:44 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * enc/depend (TRANSCSRCS): needs rule_subst to apply.
-
- * io.c (shutdown): not define if defined already.
-
-Fri Aug 8 22:47:26 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * vm_insnhelper.c (opt_eq_func): large function to make inline.
-
- * bcc32/Makefile.sub (config.h): cannot compile a big inline function.
-
-Fri Aug 8 21:09:10 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * common.mk (enk.mk): give not RUBY but MINIRUBY.
-
-Fri Aug 8 17:03:17 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * configure.in (shutdown, sched_yield, pthread_attr_setinheritsched):
- check for Haiku.
-
- * eval_intern.h, io.c, thread_pthread.c: use autoconfisticated results.
-
-Fri Aug 8 16:52:55 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * common.mk (enc.mk): mkmf.rb requires rbconfig.rb.
-
- * common.mk (srcs-enc): renamed from transcodes.
-
- * enc/Makefile.in (make-workdir): creates object directories.
-
- * common.mk (encdb.h): see both $(srcdir)/enc and enc.
-
- * enc/make_encdb.rb: ditto.
-
- * enc/trans/make_transdb.rb: fix for the case no transdirs are given.
-
- * enc/trans/make_transdb.rb: converts only one transcoders for each
- basename.
-
-Fri Aug 8 10:53:52 2008 Tanaka Akira <akr@fsij.org>
-
- * lib/resolv.rb: randomize source port and transaction id.
- CVE-2008-1447.
-
- * lib/resolv-replace.rb (UDPSocket#bind): don't resolv host if host is
- "".
-
-Fri Aug 8 04:20:14 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * common.mk: see both $(srcdir)/enc/trans and enc/trans.
-
- * enc/trans/make_transdb.rb: ditto.
-
-Fri Aug 8 00:05:02 2008 TAKAO Kouji <kouji@takao7.net>
-
- * ext/.document: added readline/readline.c.
-
- * ext/readline/readline.c: changed Copyright. added RDoc.
-
- * ext/readline/README.ja: fixed typo.
-
- * ext/readline/README: contents was moved RDoc.
-
-Thu Aug 7 23:43:11 2008 Tanaka Akira <akr@fsij.org>
-
- * transcode_data.h (rb_transcoding): new field "stateful".
- (rb_transcoder): preprocessor and postprocessor field removed.
- change arguments of func_ii, func_si, func_io and func_so.
- new field "finish_func".
-
- * tool/transcode-tblgen.rb: make FUNii, FUNsi and FUNio
- generatable.
-
- * transcode.c (transcoder_lib_table): removed.
- (transcoder_table): change structure.
- (transcoder_key): removed because the above structure change.
- (make_transcoder_entry): new function.
- (get_transcoder_entry): ditto.
- (rb_register_transcoder): follow the structure change.
- (declare_transcoder): ditto.
- (transcode_search_path): new function for breadth first search to
- find a list of converters.
- (transcode_search_path_i): new function.
- (transcode_dispatch_cb): ditto.
- (transcode_dispatch): use transcode_search_path.
- (transcode_loop): follow the argument change.
- (str_transcode): preprocessor and postprocessor stuff removed.
-
- * enc/trans/iso2022.erb.c: new file. ISO-2022-JP conversion
- re-implemented.
-
- * enc/trans/japanese.erb.c: ISO-2022-JP stuff removed.
-
- * enc/trans/utf_16_32.erb.c: follow argument change of FUNso.
-
- [ruby-dev:35798]
-
-Thu Aug 7 22:55:44 2008 TAKAO Kouji <kouji@takao7.net>
-
- * ext/readline/README.ja: updated API document for Readline module.
-
-Thu Aug 7 20:52:08 2008 Shugo Maeda <shugo@ruby-lang.org>
-
- * lib/net/ftp.rb (login): raise FTPReplyError if passwd or acct
- is not supplied. fixed [ruby-core:18058].
-
-Thu Aug 7 18:01:44 2008 Akinori MUSHA <knu@iDaemons.org>
-
- * misc/ruby-mode.el (ruby-imenu-create-index-in-block): Fix the
- regexp to only pick definition lines properly. `module_function'
- is not a definition of a module named `_function'.
-
-Thu Aug 7 17:47:55 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * enc/depend: add transdb.c.
-
-Thu Aug 7 16:28:51 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * Makefile.in, common.mk, {bcc,win}32/Makefile.sub (clean-ext): do not
- use miniruby.
-
-Thu Aug 7 14:17:32 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * enc/depend: removed needless explicit commands.
-
- * lib/mkmf.rb, {bcc32,win32}/Makefile.sub (CLEANLIBS, CLEANOBJS):
- moved clean targets to platform makefiles.
-
-Thu Aug 7 13:12:30 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * ext/socket/getaddrinfo.c (gai_strerror): ignore only on Haiku.
- a patch from <zn at mbf.nifty.com>, [ruby-dev:35796].
-
-Thu Aug 7 06:31:12 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * test/ruby/process.rb (test_popen_fork): skip a test which is
- freeze in FreeBSD.
-
-Thu Aug 7 06:05:48 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * config.guess: add powerpc-apple-haiku, i586-pc-haiku.
- see [ruby-core:18110]
-
-Thu Aug 7 05:51:05 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * eval_intern.h: Add support to Haiku. see [ruby-core:18110]
-
- * include/ruby/defines.h: ditto.
-
- * configure.in: ditto.
-
- * thread_pthread.c: ditto.
-
- * io.c: ditto.
-
- * lib/mkmf.rb: ditto.
-
- * ext/socket/getaddrinfo.c: ditto.
-
- * ext/socket/extconf.rb: ditto.
-
- * ext/socket/socket.c: ditto.
-
- * ext/socket/addrinfo.h: ditto.
-
- * ext/socket/getnameinfo.c: ditto.
-
-Thu Aug 7 05:43:32 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * common.mk: mkdir enc/trans before build tables.
-
-Thu Aug 7 05:18:30 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * enc/depend: enc/*.c is source but enc/trans/*.c is generated.
-
-Thu Aug 7 05:14:12 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * regenc.c (code_to_mbc): raise RangeError Integer#chr
- when more than 255 is given with single byte encoding.
- [ruby-dev:35789]
-
-Thu Aug 7 05:06:03 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * gc.c (run_final): runs finalizers with the object terminated.
-
- * gc.c (rb_gc_call_finalizer_at_exit): keeps finalized objects from
- linking to freelist.
-
-Thu Aug 7 04:43:14 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * enc/depend: for build in other than srcdir.
-
-Wed Aug 6 22:40:48 2008 Tanaka Akira <akr@fsij.org>
-
- * tool/transcode-tblgen.rb (transcode_generate_node): code
- argument removed.
-
-Wed Aug 6 21:25:45 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * gc.c (chain_finalized_object): deletes finalizers to be invoked from
- finalizer_table.
-
- * gc.c (rb_gc_call_finalizer_at_exit): warns when could not invoke
- finalizers.
-
-Wed Aug 6 20:56:43 2008 Tanaka Akira <akr@fsij.org>
-
- * enc/depend: transcode table generation depends on
- tool/transcode-tblgen.rb.
-
-Wed Aug 6 20:48:27 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * gc.c (rb_gc_call_finalizer_at_exit): self-referencing finalizers
- cannot be invoked. [ruby-dev:35681]
-
-Wed Aug 6 20:44:41 2008 Tanaka Akira <akr@fsij.org>
-
- * tool/transcode-tblgen.rb: distinguish UNDEF and INVALID.
- [ruby-dev:35709]
-
- * transcode.c (transcode_loop): don't need rb_enc_mbclen now.
-
-Wed Aug 6 14:40:11 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * common.mk (transdb.h): requires transcoders.
-
- * enc/depend (srcs): target for transcoders.
-
-Wed Aug 6 14:04:08 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * enc/depend: replace not only $(<:...) but also $<.
-
-Wed Aug 6 13:54:30 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * win32/Makefile.sub (config.status): export BASERUBY.
-
- * enc/depend: avoid GNU make'ism.
-
-Wed Aug 6 07:59:02 2008 Tanaka Akira <akr@fsij.org>
-
- * tool/transcode-tblgen.rb (ActionMap#eql?): use == to compare @map.
-
-Wed Aug 6 07:45:26 2008 Tanaka Akira <akr@fsij.org>
-
- * tool/transcode-tblgen.rb: show generating tables in verbose mode.
- (transcode_generate_node): call ActionMap#generate_node with showing
- table name.
-
- * enc/trans/utf_16_32.erb.c: use transcode_generate_node.
-
-Wed Aug 6 06:55:20 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * thread.c (thread_start_func_2): propagates fatal error and system
- exit to the main thread.
-
-Wed Aug 6 05:31:54 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * encoding.c (rb_to_encoding_index, rb_to_encoding): check if the name
- is ascii compatible as well as Encoding.find.
-
- * transcode.c (str_encode): no need to duplicate first.
-
-Wed Aug 6 05:08:30 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * array.c (rb_ary_sort_bang): reset to real class.
-
- * file.c (rb_find_file_ext, rb_find_file): ditto.
-
- * io.c (io_reopen): ditto.
-
-Wed Aug 6 03:56:39 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * common.mk (transcodes), tool/build-transcode: generates transcode
- sources.
-
- * enc/trans/{japanese,korean,single_byte,utf_16_32}.c: to be
- autogenerated now.
-
- * enc/depend: added rules for .c from .erb.c.
-
-Tue Aug 5 20:46:20 2008 Tanaka Akira <akr@fsij.org>
-
- * tool/build-transcode: new file.
-
- * tool/transcode-tblgen.rb: new file.
-
- * enc/trans/make_transdb.rb: exclude *.erb.c.
-
- * enc/depend: exclude *.erb.c.
-
- * enc/trans/utf_16_32.erb.c: new file.
-
- * enc/trans/single_byte.erb.c: new file.
-
- * enc/trans/japanese.erb.c: new file.
-
- * enc/trans/korean.erb.c: new file.
-
- * enc/trans/iso-8859-2-tbl.rb: new file.
-
- * enc/trans/iso-8859-3-tbl.rb: new file.
-
- * enc/trans/iso-8859-4-tbl.rb: new file.
-
- * enc/trans/iso-8859-5-tbl.rb: new file.
-
- * enc/trans/iso-8859-6-tbl.rb: new file.
-
- * enc/trans/iso-8859-7-tbl.rb: new file.
-
- * enc/trans/iso-8859-8-tbl.rb: new file.
-
- * enc/trans/iso-8859-9-tbl.rb: new file.
-
- * enc/trans/iso-8859-10-tbl.rb: new file.
-
- * enc/trans/iso-8859-11-tbl.rb: new file.
-
- * enc/trans/iso-8859-13-tbl.rb: new file.
-
- * enc/trans/iso-8859-14-tbl.rb: new file.
-
- * enc/trans/iso-8859-15-tbl.rb: new file.
-
- * enc/trans/eucjp-tbl.rb: new file.
-
- * enc/trans/sjis-tbl.rb: new file.
-
- * enc/trans/euckr-tbl.rb: new file.
-
- * enc/trans/utf_16_32.c: regenerated.
-
- * enc/trans/single_byte.c: regenerated.
-
- * enc/trans/japanese.c: regenerated.
-
- * enc/trans/korean.c: regenerated.
-
- [ruby-dev:35730]
-
-Tue Aug 5 18:02:53 2008 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
-
- * test/io/nonblock/test_flush.rb (TestIONonblock#test_flush):
- rescue some exceptions. [ruby-dev:35638]
-
-Tue Aug 5 16:40:06 2008 Shugo Maeda <shugo@ruby-lang.org>
-
- * lib/net/ftp.rb (chdir): handle 5xx errors correctly.
- fixed [ruby-core:18057].
-
-Tue Aug 5 16:38:59 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * include/ruby/win32.h, bcc32/Makefile.sub (config.h): bcc 5.8 has
- stdint.h.
-
-Tue Aug 5 16:13:05 2008 Shugo Maeda <shugo@ruby-lang.org>
-
- * lib/net/imap.rb (disconnect): do not refer to SSL::SSLSocket for
- environments without OpenSSL. fixed [ruby-dev:35755].
-
-Tue Aug 5 14:19:22 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * file.c (rb_stat_mode): generalized st_mode mask.
-
-Tue Aug 5 12:43:47 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * io.c (retry_sendfile, retry_read): ENOSYS and EWOULDBLOCK are not
- defined on every platforms.
-
-Tue Aug 5 12:34:49 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * transcode_data.h (TRANSCODE_ERROR): common transcode failure
- exception, would be changed later.
-
- * enc/trans/japanese.c (UNSUPPORTED_MODE): unsupported mode transition
- exception.
-
-Tue Aug 5 03:29:52 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * array.c (rb_ary_sort_bang): respect overridden <=> for String and
- Fixnum. [ruby-core:17708]
-
- * include/ruby/node.h (NOEX_BASIC): basic definition method flag.
-
- * include/ruby/intern.h, vm_method.c (rb_method_basic_definition_p):
- new function to check if the method is not redefined after the
- initialization.
-
- * vm_method.c (rb_obj_respond_to): use rb_method_basic_definition_p.
-
-Mon Aug 4 20:39:06 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
-
- * Makefile.in (update-rubyspec): renamed the rubyspec directory
- "spec". Changed directory structure.
-
- * Makefile.in (test-rubyspec): ditto.
-
- * spec/README: described the structure of "spec" directory.
-
- * spec/default.mspec: configured for Matz's Ruby Implementation.
-
-Mon Aug 4 19:21:43 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * array.c (rb_ary_tmp_new): added.
-
- * vm_eval.c (vm_call_super): fixed typo, and get rid of too large
- alloca. [ruby-core:17922]
-
-Mon Aug 4 16:48:50 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * parse.y (deferred_nodes, compstmt, arg, fixup_nodes, range_op): fix
- up fixnum range literal in conditional as automagical line number
- comparison. [ruby-core:12124], [ruby-dev:35731]
-
-Mon Aug 4 14:41:25 2008 URABE Shyouhei <shyouhei@ruby-lang.org>
-
- * lib/net/smtp.rb (Net::SMTP::rcptto): fix a typo. a patch from
- Masao Takaku <masao at nii.ac.jp>
- fix [ruby-dev:35489].
-
-Mon Aug 4 14:08:55 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * marshal.c (dump_ensure), process.c (run_exec_dup2),
- string.c (rb_str_replace), transcode.c (transcode_dispatch): fixed
- memory leaks. based on patches from shinichiro.h <shinichiro.hamaji
- AT gmail.com> at [ruby-dev:35751].
-
-Sun Aug 3 19:32:52 2008 Masaki Suketa <masaki.suketa@nifty.ne.jp>
-
- * ext/win32ole/win32ole.c (hash2named_arg): refactoring.
-
- * ext/win32ole/win32ole.c (ole_invoke, fole_respond_to, ev_on_event,
- fev_off_event): accepts Symbol argument.
-
- * test/win32ole/test_win32ole.rb: ditto.
-
- * test/win32ole/test_win32ole_event.rb: ditto.
-
-Sun Aug 3 10:41:54 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * string.c (rb_str_shared_replace): fixed memory leak. a patch from
- shinichiro.h <shinichiro.hamaji AT gmail.com> at [ruby-dev:35742]
-
-Sat Aug 2 22:55:41 2008 Masaki Suketa <masaki.suketa@nifty.ne.jp>
-
- * test/win32ole/test_err_in_callback.rb: remove temporary files.
- some refactoring.
-
-Sat Aug 2 15:51:50 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * parse.y (yylex): 8 and 9 in octal integer should cause compile
- error. [ruby-dev:35729]
-
-Sat Aug 2 01:06:10 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * enc/trans/japanese.c: add U+FF5E to EUC-JP.
- [ruby-dev:35720] [ruby-dev:35722]
-
-Fri Aug 1 23:49:44 2008 TAKAO Kouji <kouji@takao7.net>
-
- * ext/readline/extconf.rb: checked to have clear_history in
- readline library.
- * ext/readline/readline.c (hist_get, hist_each, Init_readline):
- The offset specified for the argument of history_get() might be
- different in GNU Readline and libedit. If use libedit, it was
- corrected that the computational method of the offset specified
- for the argument of history_get() when the Readline module was
- initialized was decided.
- (hist_get, hist_set): If use libedit, accesses first an input
- content in history when specifies the negative offset for the
- argument of history_get() or replace_history_entry(). Then
- checks the offset is negative in ruby.
- (rb_remove_history): When compiling, it corrects it to warning
- when libedit is used.
- (hist_clear, Init_readline): added Readline::HISTORY.clear
- method. [ruby-dev:35551]
- * test/readline/test_readline_history.rb: added unit test for
- Readline::HISTORY.
-
-Fri Aug 1 23:26:45 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * transcode.c (transcode_loop): undefined character is replaced with
- only one character. [ruby-dev:35709]
-
-Fri Aug 1 23:26:22 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
-
- Merged r16430(akr), r16431(akr), r16433(akr), r16469(nobu), and
- r17874(akr) from ruby_1_8.
-
- * Makefile.in (update-rubyspec): added
-
- * Makefile.in (test-rubyspec): added
-
-Fri Aug 1 23:16:03 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * enc/trans/japanese.c: add support for CP51932,
-
-Fri Aug 1 22:59:40 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * enc/trans/japanese.c: add U+FF0C,
-
-Fri Aug 1 21:49:41 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * test/sdbm/test_sdbm.rb: add some tests.
-
-Fri Aug 1 21:36:00 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * gc.c (allocate_heaps, assign_heap_slot, rb_newobj_from_heap):
- reset during_gc before raising NoMemoryError.
-
-Fri Aug 1 21:29:56 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * vm.c (Init_BareVM): check failure of malloc().
-
-Fri Aug 1 20:55:27 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * enc/trans/japanese.c (to_SHIFT_JIS_EF_BF_offsets): add U+FFF3,
- U+FFF4, U+FFF5.
-
- * enc/trans/japanese.c (to_SHIFT_JIS_EF_BF_infos): ditto.
-
- * enc/trans/japanese.c (to_EUC_JP_EF_BF_infos): added.
-
- * enc/trans/japanese.c (to_EUC_JP_EF_BF): added.
-
- * enc/trans/japanese.c (to_EUC_JP_EF_infos): change size.
- [ruby-dev:35714]
-
-Fri Aug 1 18:27:15 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
-
- * parse.y (parser_yylex): removed an useless conditional, and magic
- comment are ignored unless at the first of line.
-
- * test/ruby/test_m17n.rb (test_magic_comment_vim): added.
-
- * test/ruby/test_m17n.rb (test_magic_comment_at_various_positions):
- added.
-
-Fri Aug 1 14:54:42 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * win32/win32.c (rb_w32_seekdir): no need to rewind to seek forward.
-
-Fri Aug 1 05:31:08 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * transcode.c (output_replacement_character):
- rename from _get_replacement_character.
-
- * transcode.c (output_replacement_character):
- fix replacement on UTF-32{BE,LE}. [ruby-dev:35705]
-
- * transcode.c (transcode_loop): ditto.
-
- * test/ruby/test_transcode.rb (test_invalid_replace):
- add for above.
-
-Fri Aug 1 01:01:49 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * proc.c (rb_proc_call_with_block): reduce comparison.
-
-Thu Jul 31 22:17:35 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * ext/bigdecimal/bigdecimal.c (VpMult): prevent memory leak.
-
-Thu Jul 31 20:05:56 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * test/ruby/test_transcode.rb (test_unicode_public_review_issue_121):
- fix option1 and 3.
-
-Thu Jul 31 19:54:57 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * transcode.c (get_replacement_character): use U+FFFD as replacement
- character when convert to Unicode.
-
- * test/ruby/test_transcode.rb (test_unicode_public_review_issue_121):
- rename from test_public_review_issue_121.
-
- * test/ruby/test_transcode.rb (test_unicode_public_review_issue_121):
- enable option2.
-
-Thu Jul 31 17:00:10 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * transcode.c (get_replacement_character): fix: invalid byte sequence
- is always replaced "\x00?".
-
-Thu Jul 31 16:37:03 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * test/rubygems/test_gem_ext_configure_builder.rb
- (test_self_build_fail): remove extra newline. [ruby-dev:35704]
-
-Thu Jul 31 15:11:11 2008 Martin Duerst <duerst@it.aoyama.ac.jp>
-
- * test/ruby/test_transcode.rb: added test_shift_jis
- (contributed by Yoshihiro Kambayashi) and
- test_public_review_issue_121
- (see http://www.unicode.org/review/pr-121.html)
-
-Thu Jul 31 13:18:30 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * include/ruby/ruby.h (struct RString): size of ary must be
- RSTRING_EMBED_LEN_MAX + 1.
-
-Thu Jul 31 12:23:53 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * pack.c (pack_unpack): upper half of hexdigits has never been used.
-
-Thu Jul 31 11:31:29 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/syck/syck.h (ASSERT): fix typo at r18176.
-
- * ext/syck/rubyext.c (rb_syck_compile): expression in ASSERT() has no
- effect unless debug mode.
-
-Thu Jul 31 10:51:39 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * iseq.c (ruby_iseq_disasm_insn): suppress warnings on platforms which
- int size differs from pointer size.
-
- * ext/openssl/ossl_asn1.c (ossl_asn1_get_asn1type): ditto
-
- * ext/syck/rubyext.c (rb_syck_err_handler),
- (syck_default_error_handler): ditto.
-
-Thu Jul 31 02:21:39 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * ext/syck/rubyext.c (rb_syck_compile): remove meaningless branch
- that misleads into thinking that the variable sav may be
- uninitialized.
-
-Thu Jul 31 01:25:43 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * thread.c (rb_mutex_unlock_all): mutex is no longer a ruby object.
-
-Thu Jul 31 01:18:07 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * parse.y (magic_comment_encoding): remove meaningless null check.
-
-Thu Jul 31 01:09:28 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * ext/bigdecimal/bigdecimal.c (VpIsRoundMode): fix tautology
- condition.
-
-Thu Jul 31 00:58:33 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * pack.c (pack_unpack): reduced static variables.
-
-Thu Jul 31 00:10:20 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * proc.c (rb_proc_call_with_block): prevent null reference.
-
-Wed Jul 30 22:19:13 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * parse.y (vtable_free): remove meaningless null check.
-
-Wed Jul 30 22:08:25 2008 Tanaka Akira <akr@fsij.org>
-
- * dir.c (struct dir_data): change path field char * to VALUE.
- (mark_dir): new function for mark path field.
- (free_dir): follow the path field change.
- (dir_s_alloc): ditto.
- (dir_initialize): ditto.
- (dir_s_open): ditto.
- (dir_inspect): ditto.
- (dir_path): return (duplicate of) the path field to preserve
- encoding. [ruby-dev:35685]
-
-Wed Jul 30 22:06:56 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * string.c (sym_inspect): remove dead code.
-
-Wed Jul 30 21:32:52 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * ChangeLog: fix wrong method name and add reference.
-
-Wed Jul 30 21:30:08 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * regparse.c (name_add): fix memory leak.
+Fri Jul 29 23:56:32 2011 Tanaka Akira <akr@fsij.org>
-Wed Jul 30 21:08:06 2008 Yusuke Endoh <mame@tsg.ne.jp>
+ * lib/securerandom.rb: call OpenSSL::Random.seed at the
+ SecureRandom.random_bytes call.
+ based on the patch by Masahiro Tomita. [ruby-dev:44270]
- * ext/syck/syck.c (syck_free_parser): fix memory leak by
- YAML::Syck.compile.
+Fri Jul 29 20:48:39 2011 Tanaka Akira <akr@fsij.org>
- * regparse.c (parse_exp): fix memory leak at Regexp.new("x{1,1}").
+ * ext/socket/mkconstants.rb: fix typos.
-Wed Jul 30 17:48:15 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Fri Jul 29 20:28:56 2011 Tanaka Akira <akr@fsij.org>
- * win32/win32.c (rb_w32_select): recalc the rest of timeout for each
- iterations. [ruby-core:18015]
+ * ext/socket/mkconstants.rb: use whitespaces as a separator.
-Tue Jul 29 23:37:37 2008 Yusuke Endoh <mame@tsg.ne.jp>
+Fri Jul 29 18:59:07 2011 Tanaka Akira <akr@fsij.org>
- * io.c (io_ungetc): raise NotImplementedError when ungetc is called
- against dummy encoding IO. [ruby-dev:35686]
+ * ext/socket/mkconstants.rb: add documents for constants.
+ patch by Eric Hodel. [ruby-core:37853] [Bug #4989]
- * io.c (rb_io_getline_1): ditto when gets with delimiter is called.
+Mon Jul 25 23:51:01 2011 Yusuke Endoh <mame@tsg.ne.jp>
- * io.c (io_getc): ditto when getc is called.
+ * backport r32671 from trunk.
- * test/ruby/test_io_m17n.rb (test_terminator_stateful_conversion,
- test_getc_stateful_conversion, test_ungetc_stateful_conversion):
- these tests should raise NotImplementedError.
+ * proc.c: pre-allocate the unlinked_method_entry_list_entry struct to
+ avoid memory allocation during GC. based on a patch from Eric Wong.
+ [ruby-core:38498]
-Tue Jul 29 22:55:34 2008 Yusuke Endoh <mame@tsg.ne.jp>
+Mon Jul 25 22:36:11 2011 Yusuke Endoh <mame@tsg.ne.jp>
- * test/ruby/test_io.rb (pipe): run reader thread and writer thread.
+ * backport r32669 from trunk.
-Tue Jul 29 21:38:08 2008 Yusuke Endoh <mame@tsg.ne.jp>
+ * proc.c (struct METHOD), gc.c (gc_marks), vm_method.c
+ (rb_gc_mark_unlinked_live_method_entries): fix SEGV bug.
+ rb_method_entry_t was free'd even when the method is still on the
+ stack if it is BMETHOD (i.e., Method#call). This is because
+ rb_method_entry_t is embedded in struct METHOD. This commit
+ separates them and marks the live method entries.
+ See [ruby-core:38449] in detail. fix [Bug #5047] [ruby-core:38171]
- * ext/bigdecimal/bigdecimal.c (Init_bigdecimal): fix typo.
+Thu Jul 28 23:36:28 2011 CHIKANAGA Tomoyuki <nagachika00@gmail.com>
-Tue Jul 29 21:35:59 2008 Yusuke Endoh <mame@tsg.ne.jp>
+ * ext/fiddle/closure.c (callback): use rb_ary_tmp_new() instead of
+ xmalloc() to allocate an array for arguments of callback procedure,
+ to prevent arguments from being swept by GC. [ruby-core:38546]
+ [Bug #4929]
- * test/etc/test_etc.rb (test_passwd): age field may be string under
- some environments.
+Thu Jul 28 22:51:27 2011 Hiroshi Nakamura <nahi@ruby-lang.org>
-Tue Jul 29 17:54:35 2008 NARUSE, Yui <naruse@ruby-lang.org>
+ * backport r32723 from trunk.
- * dir.c (char_casecmp): fix: return 0 if either of characters is NUL.
+ * ext/openssl/ossl_cipher.c (ossl_cipher_initialize): Avoid possible
+ SEGV from AES encryption/decryption. Processing data by
+ Cipher#update without initializing key (meaningless usage of Cipher
+ object since we don't offer a way to export a key) could cause SEGV.
-Tue Jul 29 13:17:03 2008 NARUSE, Yui <naruse@ruby-lang.org>
+ In OpenSSL, the EVP which has EVP_CIPH_RAND_KEY flag (such as DES3)
+ allows uninitialized key, but other EVPs (such as AES) does not
+ allow it. Calling EVP_CipherUpdate() without initializing key causes
+ SEGV so we set the data filled with "\0" as the key by default. See
+ #2768.
- * test/etc/test_etc.rb (test_getpwuid): fix for users whose uid is
- shared.
+ * test/openssl/test_cipher.rb: test it.
-Tue Jul 29 05:37:53 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Thu Jul 28 04:53:31 2011 Eric Hodel <drbrain@segment7.net>
- * file.c (rb_find_file_ext, rb_find_file): explicit relative path
- which starts with "./" or "../" should be searched from cwd
- instead of load path. [ruby-dev:35673]
-
-Tue Jul 29 02:39:46 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * math.c (math_atanh): raise EDOM on FreeBSD when atanh(1).
-
- * math.c (math_log): ditto.
-
- * math.c (math_log2): ditto.
-
- * math.c (math_log10): ditto.
-
- * test/ruby/test_math.rb: test for above.
-
-Tue Jul 29 01:41:15 2008 Tanaka Akira <akr@fsij.org>
-
- * dir.c (struct dir_data): intenc field removed.
- (dir_s_alloc): intenc initialization removed.
- (dir_initialize): :internal_encoding option removed. dirname code
- conversion removed.
- (dir_enc_str): code conversion removed.
- [ruby-dev:35661]
-
-Mon Jul 28 21:32:17 2008 Kouhei Sutou <kou@cozmixng.org>
-
- * test/rss/: use PNG instead of zlib as binary data.
-
-Mon Jul 28 21:24:33 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * thread_win32.[ch] (cond_every_entry, rb_thread_cond_struct): reverted
- r18239 because r18245 made the changes unnecessary.
-
- * thread.c (rb_mutex_struct): define after including thread_{pthread,
- win32}.c.
-
-Mon Jul 28 21:00:10 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * test/ruby/test_require.rb (test_require_too_long_filename):
- Kernel#require does not use dln_find_file_r (at r18242).
-
-Mon Jul 28 20:17:03 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * vm_core.h: move the definition of struct rb_mutex_struct.
-
- * thread.c: ditto.
-
-Mon Jul 28 18:58:46 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * thread.c (mutex_unlock): fix typo.
-
-Mon Jul 28 18:15:45 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * file.c (rb_find_file_ext, rb_find_file): not to split load path with
- path separator. [ruby-Bugs-21356]
-
-Mon Jul 28 18:14:03 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * win32/win32.c (overlapped_socket_io, fcntl, rb_w32_close): must not
- pass a pointer to int which is smaller than st_data_t on mswin64.
-
-Mon Jul 28 16:49:47 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * win32/win32.c (CreateChild, overlapped_socket_io): suppress
- warnings.
-
-Mon Jul 28 16:06:36 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * win32/win32.c (MAXPATHLEN): define before use.
-
-Mon Jul 28 16:01:12 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * thread_win32.[ch] (cond_every_entry, rb_thread_cond_struct): moved
- the definitions from .c to .h because rb_thread_cond_struct is used
- in vm_core.h.
-
-Mon Jul 28 14:29:54 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * dln.c (load_lib): use dln_find_file_r instead of dln_find_file.
-
-Mon Jul 28 00:18:47 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * vm_core.h, thread.c: It is now prohibited to use Data_Get_Struct in
- *_free against an object that is going to be free'ed. So, change type
- of thread_t#keeping_mutexes from VALUE to mutex_t.
-
- * vm.c: remove mark to keeping_mutexes.
-
-Sun Jul 27 23:32:42 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * test/openssl/test_ssl.rb (server_loop): rescue Errno::EINVAL and
- Errno::ECONNABORTED.
-
-Sun Jul 27 22:11:57 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * bootstraptests/method.rb: increase RLIMIT_STACK size to 4M+8Kbytes
- because FreeBSD fails this less than that.
-
-Sun Jul 27 21:45:59 2008 Koichi Sasada <ko1@atdot.net>
-
- * gc.c (gc_mark_children, obj_free): T_DEFERRED should not be appear.
-
- * gc.c (gc_sweep, finalize_list): fix to decrement heap_slot#limit
- after executing finalizer.
-
-Sun Jul 27 14:48:37 2008 Koichi Sasada <ko1@atdot.net>
-
- * include/ruby/ruby.h: add a type T_DEFERRED.
-
- * gc.c: fix deferred finalizer system. finalize processes of
- T_DATA and T_FILE are executed after gc process.
- And fix to use BUILTIN_TYPE() instead of seeing flag.
-
- * thread.c, vm_core.h: add RUBY_VM_SET_FINALIZER_INTERRUPT()
- and check interrupt_flag at rb_thread_execute_interrupts().
-
- * thread.c (mutex_mark): fix to mark next_mutex.
-
- * vm.c (rb_thread_mark): fix to mark keeping_mutexes.
-
-Sun Jul 27 09:15:28 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * dln.h (dln_find_exe, dln_find_file): deprecated, use reentrant
- versions instead.
-
-Sun Jul 27 09:02:32 2008 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
-
- * lib/rinda/tuplespace.rb: merged from 1.8.
-
- * test/rinda/test_rinda.rb: merged from 1.8.
-
-Sat Jul 26 22:45:18 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
-
- * sample/exyacc.rb: fixed NoMethodError(Kernel#sub!).
- replaced use of special variables with explicit IO
- operations.
-
-Sat Jul 26 21:17:18 2008 Masaki Suketa <masaki.suketa@nifty.ne.jp>
-
- * ext/win32ole/win32ole.c (Init_win32ole): add
- WIN32OLE_EVENT#handler=, WIN32OLE_EVENT#handler
-
- * test/win32ole/test_win32ole_event.rb: ditto.
-
-Sat Jul 26 07:44:14 2008 Masaki Suketa <masaki.suketa@nifty.ne.jp>
-
- * ext/win32ole/win32ole.c (add_event_call_back): remove unused
- variable.
-
-Fri Jul 25 23:48:10 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * gc.c (gc_sweep, obj_free, run_final): defer finalizers of IO and
- Data. [ruby-dev:35578]
-
-Fri Jul 25 23:35:18 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/webrick/httputils.rb (WEBrick::HTTPUtils#split_header_value):
- reduce backtrack. based on a fix by Christian Neukirchen
- <chneukirchen AT gmail.com>.
-
-Fri Jul 25 21:55:38 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * test/ruby/enc/test_koi8.rb: move from test/ruby/test_koi8.rb.
-
-Fri Jul 25 21:09:32 2008 Masaki Suketa <masaki.suketa@nifty.ne.jp>
-
- * ext/win32ole/win32ole.c (ole_invoke, add_event_callback,
- rescue_callback): refactoring.
-
-Fri Jul 25 20:52:44 2008 Masaki Suketa <masaki.suketa@nifty.ne.jp>
-
- * test/win32ole/err_in_callback.rb: add test of raising
- exception in WIN32OLE_EVENT callback.
-
- * test/win32ole/test_err_in_callback.rb: ditto.
-
-Fri Jul 25 20:43:57 2008 Masaki Suketa <masaki.suketa@nifty.ne.jp>
-
- * ext/win32ole/win32ole.c (Init_win32ole): add
- WIN32OLE_EVENT#off_event.
-
- * test/win32ole/test_win32ole_event.rb: ditto.
-
- * test/win32ole/test_win32ole_event.rb: some refactoring.
-
-Fri Jul 25 19:50:49 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * regint.c (xmalloc, xrealloc, xfree): not to use ruby managed memory.
-
-Fri Jul 25 15:52:40 2008 Koichi Sasada <ko1@atdot.net>
-
- * vm.c (vm_invoke_proc): skip setting safe_level if
- it from bmethod. This change makes test/ruby/test_proc.rb pass.
-
-Fri Jul 25 10:00:00 2008 Martin Duerst <duerst@it.aoyama.ac.jp>
-
- * test/ruby/test_transcode.rb: refactoring/cleanup of
- test_iso_2022_jp(_1)
-
-Fri Jul 25 04:12:57 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * ext/nkf/nkf.c (rb_nkf_convert): output of mime encode is US-ASCII.
- [ruby-list:45257]
-
-Fri Jul 25 02:43:11 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * sample/coverage.rb: move from lib/coverage.rb because this remains in
- an early phase of development.
-
-Fri Jul 25 00:10:23 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * file.c (rb_find_file_ext, rb_find_file): converts Windows style path
- to Cygwin path. [ruby-dev:35647]
-
-Thu Jul 24 16:30:21 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * win32/win32.c (exit_handler): use st_free_table() to free socklist.
-
- * win32/win32.c (rb_w32_pipe_exec, rb_w32_accept, rb_w32_socket,
- rb_w32_socketpair): should check and release fd and sockets/handles
- if an error occurs in rb_w32_open_osfhandle().
-
-Thu Jul 24 16:05:02 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * win32/win32.c (overlapped_socket_io): avoid warnings.
-
- * thread_win32.c (ubf_handle): refactoring.
-
-Thu Jul 24 07:01:13 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/win32ole/win32ole.c: got rid of improper casts.
-
-Wed Jul 23 23:19:15 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * test/socket/test_tcp.rb (test_recvfrom): replace an irrelevant test
- for old behavior.
-
-Wed Jul 23 21:38:16 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * test/ruby/test_marshal.rb: suppress warning during test.
-
-Wed Jul 23 21:35:53 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * test/ruby/test_dir.rb: suppress warning during test.
-
-Wed Jul 23 18:27:46 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/tk/{stubs,tcltklib}.c, ext/tk/tkutil/tkutil.c: fix warnings
- about constness and signedness.
-
-Wed Jul 23 17:04:22 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/openssl/openssl_missing.h (d2i_of_void): define for older
- versions. [ruby-dev:35637]
-
-Wed Jul 23 13:53:36 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/curses/extconf.rb: use try_static_assert.
-
-Wed Jul 23 10:06:19 2008 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
-
- * test/zlib/test_zlib.rb (TestZlibDeflate#test_params): suppress a
- finalizer warning.
-
-Wed Jul 23 06:25:42 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/syck: suppress warnings more.
-
-Wed Jul 23 03:19:31 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/nkf/nkf-utf8/nkf.c (struct input_code.name, input_codename):
- constified.
-
-Wed Jul 23 03:02:08 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/syck: suppress warnings.
-
-Wed Jul 23 00:34:20 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/openssl: suppress warnings.
-
-Tue Jul 22 23:01:34 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * ext/syck/rubyext.c, ext/syck/yaml2byte.c, ext/syck/emitter.c,
- ext/syck/syck.c, ext/syck/handler.c, ext/syck/syck.h: suppress GCC
- warning.
-
-Tue Jul 22 20:42:24 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * ext/bigdecimal/bigdecimal.c (BigDecimalCmp): BigDecimal#<=> should
- return nil if an argument can't be coerced into BigDecimal.
-
- * ext/bigdecimal/bigdecimal.h, ext/bigdecimal/bigdecimal.c
- (VpIsNegDoubleZero, VpItoV): comment out unused functions.
-
-Tue Jul 22 20:33:54 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * test/rdoc/test_rdoc_parser_ruby.rb (teardown): close tempfile.
-
-Tue Jul 22 19:38:38 2008 Martin Duerst <duerst@it.aoyama.ac.jp>
-
- * test/ruby/test_transcode.rb: added two comments
-
-Tue Jul 22 18:08:34 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * README.EXT, README.EXT.ja: mention about FIX2LONG and NUM2LONG.
- see [ruby-dev:35197]
-
-Tue Jul 22 17:53:32 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * compile.c (insn_data_to_s_detail), file.c (rb_stat_inspect),
- iseq.c (ruby_iseq_disasm_insn, ruby_iseq_disasm),
- process.c (pst_message), re.c (match_inspect): use rb_str_catf.
-
- * dir.c (dir_inspect), iseq.c (iseq_inspect, insn_operand_intern): use
- rb_sprintf.
-
- * error.c (rb_name_error, rb_raise, rb_loaderror, rb_fatal): use
- rb_vsprintf.
-
-Tue Jul 22 17:20:25 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * win32/win32.c (init_func): new function to get API's address which
- is often used and not supported on all Windows.
-
- * win32/win32.c (overlapped_socket_io): shouldn't use overlapped I/O if
- CancelIo() is not supported.
-
-Tue Jul 22 16:47:57 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * include/ruby/intern.h, sprintf.c (rb_str_catf, rb_str_vcatf): new
- functions. [ruby-dev:35597]
-
- * string.c (rb_str_capacity): new function to return the capacity.
-
-Tue Jul 22 16:08:58 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * ext/socket/socket.c (connect_blocking, socks_connect_blocking,
- ruby_connect): cast.
+ * lib/delegate.rb: Move file-level documentation to the appropriate
+ classes.
-Tue Jul 22 11:05:08 2008 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
+Thu Jul 28 00:33:47 2011 NARUSE, Yui <naruse@ruby-lang.org>
- * test/ruby/test_dir.rb: use realpath of tmpdir. [ruby-dev:35481]
+ * test/fileutils/test_fileutils.rb: add OpenBSD case.
+ patched by Jeremy Evans [ruby-core:38530] see #5097
* test/ruby/test_process.rb: ditto.
-Tue Jul 22 09:51:32 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * misc/ruby-mode.el: fix here-doc strings with inner quotes. patches
- by Nathan Weizenbaum <nex342 AT gmail.com> from [ruby-core:17615]
- through [ruby-core:17910].
-
-Tue Jul 22 04:26:16 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * include/ruby/intern.h (rb_str_buf_new2): optimization for literals.
-
- * string.c (str_buf_cat): returns VALUE.
-
-Tue Jul 22 03:34:01 2008 Eric Hodel <drbrain@segment7.net>
-
- * lib/rdoc*: Update to RDoc 2.1.0 r112.
-
-Tue Jul 22 02:51:46 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * include/ruby/intern.h (rb_str_buf_cat2, rb_str_cat2): optimization
- for literals.
-
-Tue Jul 22 02:50:47 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * README.EXT, README.EXT.ja (1.5 Manipulating Ruby data): fix the
- prototype of rb_vsprintf, and added rb_str_cat2. [ruby-dev:35622]
-
-Mon Jul 21 17:15:38 2008 Tanaka Akira <akr@fsij.org>
-
- * encoding.c (rb_filesystem_encoding): use locale encoding on Unix.
- [ruby-dev:35617]
-
-Mon Jul 21 15:29:32 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * missing/vsnprintf.c (struct __sbuf, FILE): use size_t.
-
- * sprintf.c (ruby__sfvwrite): ditto.
-
-Mon Jul 21 13:55:37 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * README.EXT, README.EXT.ja (1.5 Manipulating Ruby data): mentioned
- rb_sprintf and rb_vsprintf. [ruby-dev:35611]
-
-Mon Jul 21 10:25:52 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Wed Jul 27 17:59:46 2011 NARUSE, Yui <naruse@ruby-lang.org>
- * io.c (prepare_getline_args): check if rs is a string when non-nil
- lim is given. [ruby-dev:35610]
+ * include/ruby/missing.h: define __syscall if the platform has
+ __syscall in the library but doesn't define it in headers
+ for example Mac OS X.
-Mon Jul 21 04:55:20 2008 Tanaka Akira <akr@fsij.org>
+Wed Jul 27 15:39:14 2011 Eric Hodel <drbrain@segment7.net>
- * dir.c (dir_initialize): use rb_convert_type instead of
- rb_check_convert_type to prevent SEGV by Dir.new(".", true).
- (dir_initialize): use FilePathValue before rb_enc_get(dirname) to
- prevent SEGV by Dir.new(0).
+ * object.c: Add usage documentation for BasicObject. Based on patch
+ by Thomas Sawyer. [Ruby 1.9 - Bug #5067]
-Mon Jul 21 04:42:15 2008 Tanaka Akira <akr@fsij.org>
+Wed Jul 27 12:24:17 2011 Eric Hodel <drbrain@segment7.net>
- * re.c (rb_reg_s_union): useless rb_enc_get call removed to prevent
- SEGV by Regexp.union("", nil).
+ * lib/rubygems/uninstaller.rb: Add missing require and update
+ messaging to avoid confusion with uninstall --format-executable.
+ [Ruby 1.9 - Bug #4062]
-Sun Jul 20 22:50:11 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Wed Jul 27 10:47:57 2011 Eric Hodel <drbrain@segment7.net>
- * compile.c (iseq_compile_each): NODE_POSTEXE should set each end
- procs only once. [ruby-dev:35596]
+ * lib/rubygems: Update to RubyGems 1.8.6.1.
-Sun Jul 20 16:00:37 2008 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+Wed Jul 27 10:04:06 2011 Martin Bosslet <Martin.Bosslet@googlemail.com>
- * ext/win32ole/win32ole.c (EVENTSINK_Invoke): use rb_protect
- instead of rb_rescue2. [ruby-dev:35595]
+ * backport r32690 from trunk.
-Sun Jul 20 01:23:24 2008 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+ * test/openssl/test_pkcs12.rb: Add test and intermediate certificates.
+ [ Ruby 1.9 - Feature #3793 ] [ruby-core:32088]
- * ext/win32ole/win32ole.c (EVENTSINK_Invoke): little refactoring.
+Sat Jul 27 01:26:00 2011 Kenta Murata <mrkn@mrkn.jp>
- * ext/win32ole/win32ole.c (EVENTSINK_GetIDsOfNames): return
- ITypeInfo::GetIDsOfNames().
+ * NEWS: add changes of bigdecimal and bigdecimal/util.
-Sat Jul 19 09:31:35 2008 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+Wed Jul 27 01:13:00 2011 Kenta Murata <mrkn@mrkn.jp>
- * ext/win32ole/win32ole.c (EVENTSINK_Invoke): little refactoring.
+ * ext/bigdecimal/lib/bigdecimal/util.rb (Rational#to_d):
+ zero or negative precision is error. fixes #5098.
+ [ruby-dev:44210]
- * ext/win32ole/win32ole.c: add document of inspect methods.
+ * ext/bigdecimal/lib/bigdecimal/util.rb (Float#to_d): modified for
+ specifying precision. fixes #5098. [ruby-dev:44210]
-Sat Jul 19 06:08:43 2008 Eric Hodel <drbrain@segment7.net>
+ * ext/bigdecimal/lib/bigdecimal/util.rb (Integer#to_d): added
+ for symmetry to BigDecimal() function with an Integer.
+ fixes #5098. [ruby-dev:44210]
- * lib/rdoc*: Import RDoc r104. Various make test-all fixes.
+ * ext/bigdecimal/lib/bigdecimal/util.rb (BigDecimal#to_d): added
+ for adapting other Numeric subclasses. [ruby-dev:44245]
-Sat Jul 19 00:27:58 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * numeric.c (check_uint, rb_num2uint, rb_fix2uint): fixed wrong check
- about 64bit positive value.
-
-Fri Jul 18 23:23:37 2008 Masaki Suketa <masaki.suketa@nifty.ne.jp>
-
- * ext/win32ole/win32ole.c (EVENTSINK_Invoke): avoid cfp consistency
- error when exception raised in event callback.
-
-Fri Jul 18 14:52:14 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * win32/win32.c (socklist): table for registering socket options
- (currently only O_NONBLOCK).
-
- * win32/win32.c (StartSockets, exit_handler): alloc/free socklist.
-
- * win32/win32.c (is_socket): use socklist.
-
- * win32/win32.c (rb_w32_accept, rb_w32_socket, rb_w32_socketpair):
- register new socket to socklist.
-
- * win32/win32.c (rb_w32_close): remove closing socket from socklist.
-
- * win32/win32.c (fcntl): register socket options.
-
- * win32/win32.c (overlapped_socket_io): send to/recv from socket with
- overlapped operation if the socket is not nonblocking mode.
- [experimental]
-
- * win32/win32.c (rb_w32_send, rb_w32_sendto, rb_w32_recv,
- rb_w32_recvfrom): use overlapped_socket_io().
-
- * win32/win32.c (open_ifs_socket): set overlapped mode. this is the
- default mode of winsock's socket(), so lacking it is an old bug.
-
-Fri Jul 18 09:44:30 2008 Eric Hodel <drbrain@segment7.net>
-
- * lib/rdoc/*: Import RDoc r101.
-
-Thu Jul 17 23:45:55 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * test/rdoc/test_rdoc_c_parser.rb (teardown): close tempfile.
-
-Thu Jul 17 21:08:49 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * test/ruby/test_process.rb (test_getpriority, test_setpriority): use
- PRIO_PROCESS instead of PRIO_USER.
-
-Thu Jul 17 20:41:42 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * pack.c (pack_unpack): fix v and V with big endian.
- [1].pack("V").unpack("V") was [4294967296].
-
-Thu Jul 17 20:35:03 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * pack.c (pack_pack): fix i! with big endian. [1].pack("i!") was
- "\0\0\0\0".
-
-Thu Jul 17 16:48:40 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * ext/socket/socket.c (ruby_connect): select() for connect() has
- mean only when the socket is non-blocking.
-
-Thu Jul 17 10:55:24 2008 Eric Hodel <drbrain@segment7.net>
-
- * mkconfig.rb: Simplify expression for RDoc.
-
-Thu Jul 17 10:21:15 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * numeric.c (check_uint, rb_num2uint, rb_fix2uint): strict check.
- fixed [ruby-dev:33683]
-
-Thu Jul 17 04:19:33 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * thread.c (thread_start_func_2): wake up joining threads.
-
- * thread.c (sleep_forever, sleep_timeval): return when interrupted.
- [ruby-dev:35542]
-
- * thread.c (timer_thread_function): restore main thread status.
- [ruby-core:17270]
-
-Thu Jul 17 01:27:38 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * io.c (appendline): remove invalid access.
-
-Wed Jul 16 18:04:34 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * signal.c (signal_exec, trap_handler): trap accepts a string as
- command. [ruby-dev:35533]
-
-Wed Jul 16 00:04:30 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * test/ruby/envutil.rb (Test::Unit::Assertions#assert_in_out_err): new
- method.
-
- * test/ruby/test_argf.rb: use assert_in_out_err instead of
- EnvUtil.rubyexec.
-
- * test/ruby/test_module.rb: ditto.
-
- * test/ruby/test_require.rb: ditto.
-
- * test/ruby/test_objectspace.rb: ditto.
-
- * test/ruby/test_object.rb: ditto.
-
- * test/ruby/test_string.rb: ditto.
-
- * test/ruby/test_method.rb: ditto.
-
- * test/ruby/test_variable.rb: ditto.
-
- * test/ruby/test_io.rb: ditto.
-
- * test/ruby/test_rubyoptions.rb: ditto.
-
- * test/ruby/test_exception.rb: ditto.
-
- * test/ruby/test_class.rb: ditto.
-
- * test/ruby/test_thread.rb: ditto.
-
-Tue Jul 15 22:34:03 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * win32/Makefile.sub (ruby_version): follow changes in configure.in.
-
-Tue Jul 15 21:58:20 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/tk/{,tkutil/}extconf.rb: ruby/ruby.h no longer needs to be
- checked.
-
- * ext/tk/{tcltklib.c,tkutil/tkutil.c}: check macros for each headers.
-
-Tue Jul 15 21:45:41 2008 Akinori MUSHA <knu@iDaemons.org>
-
- * ext/tk/extconf.rb, ext/tk/tcltklib.c, ext/tk/tkutil/tkutil.c: Do
- not test ruby/ruby.h, which makes OS X's gcc pick the wrong
- header file from Ruby.framework.
-
-Tue Jul 15 21:31:26 2008 Akinori MUSHA <knu@iDaemons.org>
-
- * configure.in (--with-ruby-version): Add a new option to specify
- the ruby version string for version specific directories.
- [ruby-dev:35490]
-
- * mkconfig.rb: Definition of ruby_version is now determined by the
- configure script.
-
-Tue Jul 15 18:14:20 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * ext/socket/socket.c (ruby_connect, s_accept): check before readable/
- writable by select() instead of wrapping in blocking region.
-
- * ext/socket/socket.c (bsock_send, s_recvfrom, udp_send, unix_send_io,
- unix_recv_io): should check readable/writable before calling blocking
- functions.
- see [ruby-dev:35446]
-
-Tue Jul 15 18:12:02 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * thread_win32.c (ubf_handle): cancel blocking IO if it can (only
- Vista). see [ruby-dev:35446]
-
- * win32/win32.c (errmap): add ERROR_OPERATION_ABORTED as EINTR.
-
-Mon Jul 14 20:35:21 2008 Masaki Suketa <masaki.suketa@nifty.ne.jp>
-
- * test/win32ole/test_win32ole_event.rb (teardown): fix typo.
-
-Mon Jul 14 18:47:30 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * transcode.c (transcode_loop): constified.
-
- * transcode.c (str_transcode): rb_str_set_len() sets a delimiter.
-
- * transcode_data.h (rb_transcoder): constified preprocessor and
- postprocessor input.
-
- * enc/trans/japanese.c: ditto.
-
-Sun Jul 13 05:37:50 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * include/ruby/ruby.h (PRI_PTRDIFF_PREFIX, PRI_SIZE_PREFIX): typo.
-
- * {bcc32,win32}/Makefile.sub: (SIZEOF_SIZE_T, SIZEOF_PTRDIFF_T): added.
-
-Sat Jul 12 23:54:55 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * win32/Makefile.sub (LIBRUBY_DLDFLAGS): import library which created
- with DLL is broken. save import library which created by lib.exe and
- install it.
- fixed the problem mentioned at the postscript of [ruby-dev:35448]
-
-Sat Jul 12 23:24:21 2008 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/socket.c: use PRIuSIZE.
-
-Sat Jul 12 22:41:39 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * include/ruby/ruby.h (PRI_PTRDIFF_PREFIX, PRI_SIZE_PREFIX): fixed typo.
-
-Sat Jul 12 22:30:43 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * include/ruby/intern.h (HAVE_RUBY_RUBY_H): defines macros so that
- extconf.rb do not need to check if headers exist under separated
- directory. [ruby-dev:35437]
-
- * include/{ruby,rubyio,rubysig}.h, include/ruby/intern.h: use
- "ruby/..." instead of <ruby/...>.
-
-Sat Jul 12 22:17:26 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * configure.in (sizeof ptrdiff_t): check for size of ptrdiff_t.
-
- * include/ruby/ruby.h (PRI?PTRDIFF, PRI?SIZE): printf conversion
- specifiers for ptrdiff_t and size_t/ssize_t.
-
- * insns.def (leave), marshal.c (long_toobig), transcode.c
- (str_transcode), vm_dump.c (control_frame_dump, stack_dump_each),
- (debug_print_register, debug_print_pre): t and z length modifiers
- are C99.
-
-Sat Jul 12 16:02:31 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/xmlrpc/client.rb (XMLRPC::Client#do_rpc): requires
- webrick/cookie. [ ruby-Bugs-21139 ]
-
-Sat Jul 12 09:25:07 2008 Masaki Suketa <masaki.suketa@nifty.ne.jp>
-
- * test/win32ole/test_win32ole_event.rb: add test
- for WIN32OLE_EVENT#on_event_with_outargs
+ * test/bigdecimal/test_bigdecimal_util.rb: add tests for the above
+ changes.
- * test/win32ole/test_win32ole_event.rb(teardown): calling
- WIN32OLE_EVENT.message_loop
+Wed Jul 27 00:54:38 2011 Kenta Murata <mrkn@mrkn.jp>
-Sat Jul 12 01:54:13 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+ * bigdecimal/bigdecimal.c (VpDup) a new function for duplicating
+ a BigDecimal.
- * win32/win32.c (rb_w32_select): shouldn't pass non-socket handle to
- original select().
+ * bigdecimal/bigdecimal.c (BigDecimal_new): support generating a new
+ BigDecimal from another BigDecimal using BigDecimal global function
+ or constructor. [ruby-dev:44245]
-Fri Jul 11 23:05:40 2008 Yusuke Endoh <mame@tsg.ne.jp>
+Mon Jul 25 22:24:09 2011 Hiroshi Nakamura <nahi@ruby-lang.org>
- * test/zlib/test_zlib.rb: add a test for Zlib::Deflate#params.
+ * backport r32666 from trunk.
-Fri Jul 11 22:58:28 2008 Yusuke Endoh <mame@tsg.ne.jp>
+ * lib/xmlrpc/client.rb: Fix possible HTTP header formatting failure by
+ 'Basic' header. Long username caused the base64 String truncation in
+ HTTP header which is not allowed. See #5046.
- * ext/zlib/zlib.c (rb_deflate_params): flush before deflateParams.
- [ruby-core:17675]
+ * test/xmlrpc/test_webrick_server.rb: test it.
-Fri Jul 11 22:09:01 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+Mon Jul 25 15:36:07 2011 Hiroshi Nakamura <nahi@ruby-lang.org>
- * win32/setup.rb, win32/Makefile.sub (PLATFORM): use $(PLATFORM)
- instead of $(OS) because ENV["OS"] is used in test-all (drb).
+ * ext/openssl/lib/openssl/{x509.rb,ssl.rb}: Add deprecation warning
+ for openssl/{x509,ssl} usage. Users should require "openssl" instead
+ of "openssl/ssl" and "openssl/x509". Start of transition period
+ introduced by [ruby-dev:38018].
-Fri Jul 11 20:51:36 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Mon Jul 25 13:50:33 2011 Hiroshi Nakamura <nahi@ruby-lang.org>
- * io.c (rb_io_wait_readable, rb_io_wait_writable): check if the file
- descriptor is closed.
+ * backport r32662 from trunk.
- * thread.c (rb_thread_wait_fd_rw): ditto.
+ * ext/openssl/lib/openssl/x509.rb: Cosmetic change: move definition
+ introduced in r30152 to x509-internal.rb.
-Fri Jul 11 16:16:43 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+Mon Jul 25 13:35:20 2011 Hiroshi Nakamura <nahi@ruby-lang.org>
- * win32/win32.c (rb_w32_accept, rb_w32_socket, rb_w32_socketpair):
- prohibit inheritance of sockets, too. [experimental]
+ * backport r32658 from trunk.
-Fri Jul 11 14:39:49 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+ * ext/openssl/ossl_ssl.c (ossl_ssl_shutdown): Avoid randomly generated
+ SSLError from SSLSocket just after invoking SSLSocket#close.
+ OpenSSL's SSL_shutdown could try to send alert packet and it might
+ set SSLerr(global error stack) as the result. It causes the next
+ SSL read/write operation to fail by unrelated reason.
- * win32/win32.c (CreateChild): the measures for Vista is no longer
- unnecessary.
+ By design, we're ignoring any error at SSL_shutdown() so we clear
+ global error stack after SSL_shutdown is called. See #5039.
-Fri Jul 11 06:16:26 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Sun Jul 24 20:29:53 2011 Tanaka Akira <akr@fsij.org>
- * common.mk (process.o): depends on util.h.
+ * ext/socket/extconf.rb: refine the recvmsg test.
-Fri Jul 11 05:07:46 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+Sun Jul 24 20:02:31 2011 Tanaka Akira <akr@fsij.org>
- * include/ruby/win32.h (pipe): prohibit inheritance.
- fixed: [ruby-dev:35421]
+ * ext/socket/extconf.rb: fix the recvmsg test.
-Fri Jul 11 00:56:46 2008 Koichi Sasada <ko1@atdot.net>
+Sun Jul 24 08:42:51 2011 Tanaka Akira <akr@fsij.org>
- * thread.c (thread_create_core): fix GC problem.
- [ruby-core:17669]
+ * ext/socket/extconf.rb: test recvmsg allocates file descriptors for
+ fd passing even with MSG_PEEK.
-Thu Jul 10 22:06:00 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * ext/socket/ancdata.c: use the above test result.
- * lib/pstore.rb (PStore#transaction): return the result from the
- block. [ruby-core:17718]
+Sun Jul 24 01:24:31 2011 Eric Hodel <drbrain@segment7.net>
-Thu Jul 10 21:15:49 2008 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+ * lib/rubygems/specification.rb: Restore behavior of
+ Gem::Specification#loaded. [Ruby 1.9 - Bug #5032]
- * test/win32ole/test_win32ole_typelib.rb: add some illegal argument
- test.
+Sun Jul 24 01:14:49 2011 NARUSE, Yui <naruse@ruby-lang.org>
- * test/win32ole/test_win32ole_type.rb: ditto.
+ * test/rake/test_rake_functional.rb (setup): Use __FILE__ for the base
+ directory. Current directory is not the top source directory when
+ the building process runs on other than there.
- * test/win32ole/test_win32ole_event.rb: ditto.
+ * test/rake/test_rake_rake_test_loader.rb: ditto.
- * test/win32ole/test_win32ole_param.rb: ditto.
+ * test/rake/test_rake_task_argument_parsing.rb
+ (test_terminal_width_using_hardcoded_80): hardcoded 80 is used
+ when app.unix? is false.
- * test/win32ole/test_win32ole_method.rb: ditto.
+Sun Jul 24 00:42:00 2011 Kenta Murata <mrkn@mrkn.jp>
-Thu Jul 10 19:38:35 2008 wanabe <s.wanabe@gmail.com>
+ * configure.in: change the default compiler to gcc-4.2 if target os
+ is OS X 10.7 (Lion).
- * test/ruby/envutil.rb (assert_normal_exit): r17993 revert.
+Sat Jul 23 17:06:25 2011 Tanaka Akira <akr@fsij.org>
-Thu Jul 10 18:29:41 2008 wanabe <s.wanabe@gmail.com>
+ * io.c (rb_update_max_fd): validate fd.
- * test/ruby/envutil.rb (assert_normal_exit): finish writing script
- before spawn("ruby") to avoid blocking in win32.
+ * ext/socket/rubysocket.h (rsock_discard_cmsg_resource): add
+ msg_peek_p argument for the declaration.
-Thu Jul 10 17:20:50 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+ * ext/socket/ancdata.c (discard_cmsg): add msg_peek_p argument.
+ assume FreeBSD, NetBSD and MacOS X doesn't generate passed fd
+ when MSG_PEEK.
+ (rsock_discard_cmsg_resource): add msg_peek_p argument.
+ (bsock_recvmsg_internal): call rsock_discard_cmsg_resource with
+ msg_peek_p argument.
- * win32/win32.c (insert): follow recent changes of globbing.
+ * ext/socket/unixsocket.c (unix_recv_io): call
+ rsock_discard_cmsg_resource with msg_peek_p argument.
-Thu Jul 10 14:09:05 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Sat Jul 23 14:38:28 2011 Eric Hodel <drbrain@segment7.net>
- * ext/coverage/coverage.c (rb_coverage_start): return nil.
+ * test/rake*: Remove dependencies on flexmock and session gems.
+ [Ruby 1.9 - Bug #4987]
-Thu Jul 10 12:41:56 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Fri Jul 22 21:46:54 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * thread.c (rb_thread_wait_for): fixed variable name.
+ * vm_insnhelper.c (vm_call_cfunc): added volatile for a workaround
+ of cfp consistency error problem on OS X 10.7 (Lion). It's
+ suspected llvm optimization bug.
+ [Bug #5076] [ruby-dev:44185]
-Thu Jul 10 12:09:58 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Fri Jul 22 21:50:16 2011 NARUSE, Yui <naruse@ruby-lang.org>
- * vm_core.h (rb_thread_t), vm.c (rb_thread_mark), process.c
- (rb_last_status_get, rb_last_status_set, rb_last_status_clear):
- moved last_status from rb_vm_t. [ruby-dev:35414]
+ * lib/uri/generic.rb (WFKV_): unroll the loop of regexp.
- * vm.c (th_init2): initialize last_status with nil.
+ * lib/uri/generic.rb (URI.decode_www_form_component): ditto.
-Thu Jul 10 12:09:21 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Fri Jul 22 21:49:48 2011 NARUSE, Yui <naruse@ruby-lang.org>
- * thread.c (rb_thread_wait_for): wait until timed out only when
- sleeping with timeout.
+ * enum.c (enum_inject): remove empty line to notify rdoc
+ Enumerable#reduce is alias. patched by milki@github.
+ https://github.com/ruby/ruby/pull/26
-Wed Jul 9 22:41:16 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Fri Jul 22 21:49:28 2011 NARUSE, Yui <naruse@ruby-lang.org>
- * thread.c (sleep_timeval): wait until timed out. [ruby-core:17270]
+ * lib/webrick/httprequest.rb (WEBrick::HTTPRequest#each):
+ Allow HTTP/0.9 request which doesn't has any header or body.
+ patched by Felix Jodoin. [ruby-core:38040] [Bug #5022]
-Wed Jul 9 20:58:16 2008 Tanaka Akira <akr@fsij.org>
+Fri Jul 22 21:45:21 2011 NARUSE, Yui <naruse@ruby-lang.org>
- * array.c (rb_ary_fill): don't raise even if length is negative.
- [ruby-core:17483], [ruby-core:17661]
+ * ext/dl/handle.c (dlhandle_sym): clear previous error with dlerror()
+ before calling dlsym(). [ruby-dev:44091] [Bug #5021]
-Wed Jul 9 20:18:50 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Fri Jul 22 19:05:47 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * configure.in (rb_cv_va_args_macro): check for __VA_ARGS__.
+ * parse.y (rb_enc_symname2_p): get rid of potential out-of-bound
+ access.
- * thread.c (thread_debug): show source name and line if possible.
+Fri Jul 22 13:55:59 2011 Eric Hodel <drbrain@segment7.net>
- * thread_{pthread,win32}.c (rb_thread_create_timer_thread): needs more
- stack for debug.
+ * lib/net/http.rb: Net::HTTP#finish is used to manually close
+ connections. [Ruby 1.9 - Bug #5045]
-Wed Jul 9 11:13:39 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Fri Jul 22 13:51:29 2011 Eric Hodel <drbrain@segment7.net>
- * lib/profiler.rb (Profiler__#print_profile): sort in the descending
- order of cumulative time.
+ * ext/readline/readline.c: Add examples for Readline.completion_proc=.
+ [Ruby 1.9 - Bug #5057]
-Wed Jul 9 11:11:18 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Fri Jul 22 13:20:33 2011 Eric Hodel <drbrain@segment7.net>
- * dir.c (struct glob_args, rb_glob_caller, rb_glob2, push_pattern),
- (glob_brace): make consistent prototypes.
+ * tool/rbinstall.rb (default gems): Install executables into the fake
+ gem dir for Gem.bin_path. [Ruby 1.9 - Bug #4485]
- * dir.c (push_glob): set enc in the caller of rb_glob_caller as well
- as rb_glob2.
+Fri Jul 22 13:03:12 2011 Martin Bosslet <Martin.Bosslet@googlemail.com>
-Wed Jul 9 09:12:11 2008 NARUSE, Yui <naruse@ruby-lang.org>
+ * backport r32609 from trunk.
- * ext/nkf/nkf-utf8/nkf.c (options): use input_endian.
+ * ext/openssl/ossl_hmac.c: Revert checking return type of
+ HMAC_Init_ex as it is not compatible with OpenSSL < 1.0.0.
-Wed Jul 9 01:38:37 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Fri Jul 22 11:22:20 2011 Martin Bosslet <Martin.Bosslet@googlemail.com>
- * string.c (rb_str_succ): alphabets or numerics mutually enclosing
- non-alphanumeric characters can carry up. e.g., "1.999".succ should
- be "2.000".
+ * backport r32606 from trunk.
-Wed Jul 9 00:12:31 2008 Yusuke Endoh <mame@tsg.ne.jp>
+ * ext/openssl/ossl_digest.c: Check return value of EVP_DigestInit_ex.
+ * ext/openssl/ossl_hmac.c: Check return value of HMAC_Init_ex.
+ Thanks, Jared Jennings, for the patch.
+ [ Ruby 1.9 - Bug #4944 ] [ruby-core:37670]
- * thread.c (rb_set_coverages, rb_reset_coverages): enable and disable
- coverage measurement.
+Fri Jul 22 09:17:43 2011 Martin Bosslet <Martin.Bosslet@googlemail.com>
- * thread.c (rb_get_coverages): rename and move from vm.c.
+ * backport r32604 from trunk.
- * vm.c (rb_vm_get_coverages): ditto.
+ * ext/openssl/ossl_engine.c: Avoid double free of ENGINE reference.
+ * test/openssl/test_engine.rb: Add a test for it.
+ Thanks to Ippei Obayashi for providing the patch.
+ [ Ruby 1.9 - Bug #5062 ] [ruby-dev:44173]
- * iseq.c (prepare_iseq_build): ditto.
+Fri Jul 22 06:39:34 2011 Marc-Andre Lafortune <ruby-core@marc-andre.ca>
- * thread.c (clear_coverage): ditto.
+ * lib/csv.rb: Do not modify CSV.generate's argument [ruby-core:38356]
- * parse.y (coverage): ditto.
+Thu Jul 21 20:02:11 2011 Yusuke Endoh <mame@tsg.ne.jp>
- * ext/coverage/coverage.c: use above functions, add new method
- Coverage.start and fix rdoc .
+ * thread.c (set_trace_func, thread_set_trace_func_m): reset tracing
+ state when set_trace_func hook is removed. This is workaround patch
+ to force to reset tracing state that is broken by continuation call.
+ a patch from James M. Lawrence. [Feature #4347] [ruby-core:34998]
-Tue Jul 8 23:02:35 2008 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+ * test/ruby/test_continuation.rb (class TestContinuation): add a test
+ for above. a patch from James M. Lawrence.
- * ext/win32ole/win32ole.c (find_default_source): bug fix when
- OLE object does not have default source interface.
+Thu Jul 21 20:59:59 2011 Tanaka Akira <akr@fsij.org>
- * test/win32ole/test_win32ole_event.rb: ditto.
+ * ext/socket/ancdata.c (discard_cmsg): workaround for MacOS X Lion.
-Tue Jul 8 22:56:23 2008 Yusuke Endoh <mame@tsg.ne.jp>
- * thread.c (rb_enable_coverages): hide coverage array by setting 0 to
- klass during measurement.
+Thu Jul 21 07:07:57 2011 Tanaka Akira <akr@fsij.org>
- * parse.y (coverage, yycompile0): ditto.
+ * backport r32579, r32581, r32587 by akr and r32588 by kazu.
- * iseq.c (prepare_iseq_build): use rb_hash_lookup instead of
- rb_hash_aref.
+ r32579:
- * thread.c (rb_coverage_result): restore klass of coverage array
- and return it.
+ * io.c (rb_update_max_fd): new function.
- * thread.c (update_coverage): check whether its klass is 0.
+ * internal.h (rb_update_max_fd): declare rb_update_max_fd.
-Tue Jul 8 22:28:25 2008 Koichi Sasada <ko1@atdot.net>
+ * thread_pthread.c (rb_thread_create_timer_thread): update max fd when
+ timer thread pipe is created.
- * lib/debug.rb, lib/profile.rb: fix to use RubyVM.
+ r32581:
- * lib/rdoc/parsers/parse_c.rb: ditto.
+ * io.c (UPDATE_MAXFD): removed.
-Tue Jul 8 21:45:22 2008 Yusuke Endoh <mame@tsg.ne.jp>
+ r32587:
- * vm.c (rb_vm_mark): mark the last element of special_exceptions.
+ * include/ruby/intern.h (rb_update_max_fd): declaration moved from
+ internal.h.
-Tue Jul 8 19:55:40 2008 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+ * file.c: ditto.
- * ext/win32ole/win32ole.c (find_default_source): try to
- find COCLASS when WIN32OLE object is not COCLASS.
+ * io.c: call rb_update_max_fd for each new fds.
- * test/win32ole/test_win32ole_event.rb: ditto
+ * process.c: ditto.
-Tue Jul 8 13:38:22 2008 Koichi Sasada <ko1@atdot.net>
+ * random.c: ditto.
- * compile.h: fix to skip inserting a trace insn.
+ * ruby.c: ditto.
-Tue Jul 8 11:41:17 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+ * ext/io/console/console.c: ditto.
- * dir.c: shouldn't use ruby object in globbing, because glob service
- routines are called before initializing ruby on some platforms (ex.
- windows).
+ * ext/openssl/ossl_bio.c: ditto.
-Tue Jul 8 10:08:40 2008 NARUSE, Yui <naruse@ruby-lang.org>
+ * ext/pty/pty.c: ditto.
- * dir.c (Next): use rb_enc_mbclen. [ruby-dev:35390]
+ * ext/socket/init.c: ditto.
-Tue Jul 8 07:59:40 2008 NARUSE, Yui <naruse@ruby-lang.org>
+ * ext/socket/socket.c: ditto.
- * dir.c (Next): use rb_enc_precise_mbclen.
+ * ext/socket/ancdata.c: ditto.
-Tue Jul 8 02:27:23 2008 NARUSE, Yui <naruse@ruby-lang.org>
+ * ext/socket/unixsocket.c: ditto.
- * dir.c: preserve encoding of strings in glob and fnmatch.
+ r32588:
- * include/ruby/ruby.h: related changes.
+ * io.c (rb_update_max_fd): remove parentheses. they are not in
+ macro.
-Tue Jul 8 00:22:58 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Sun Jul 17 08:07:31 2011 Martin Bosslet <Martin.Bosslet@googlemail.com>
- * string.c (rb_str_succ): limit carrying in an alphanumeric region if
- exists. [ruby-dev:35094]
+ * backport r32563 from trunk
-Mon Jul 7 20:39:28 2008 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+ * test/openssl/test_ssl_session.rb: add PEM SSL session without TLS
+ extensions. Use this as the default for the tests to ensure
+ compatibility with OpenSSL 0.9.7.
+ [ Ruby 1.9 - Bug #4961 ] [ruby-core:37726]
- * ext/win32ole/win32ole.c(Init_win32ole): add
- WIN32OLE_TYPE#source_ole_types, WIN32OLE_TYPE#default_ole_types,
- WIN32OLE_TYPE#default_event_sources.
+Sat Jul 16 17:29:20 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * test/win32ole/test_win32ole_type.rb: ditto.
+ * configure.in (RUBY_UNIVERSAL_ARCH): restore arch flag.
+ Bug #4977
-Mon Jul 7 19:45:22 2008 NARUSE, Yui <naruse@ruby-lang.org>
+Sat Jul 16 11:18:26 2011 NAKAMURA Usaku <usa@ruby-lang.org>
- * test/ruby/test_dir.rb (test_chroot_nodir): add Errno::EPERM.
+ * win32/setup.mak: support to build x64-mswin64 on Windows7 (and Vista,
+ perhaps).
+ backported r32521 from trunk
-Mon Jul 7 17:12:20 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Sat Jul 16 06:31:23 2011 Marc-Andre Lafortune <ruby-core@marc-andre.ca>
- * lib/ipaddr.rb (IPAddr#initialize): get rid of ArgumentError in
- IPAddr#to_range. a patch from okkez <okkez000 AT gmail.com> in
- [ruby-dev:35091].
+ * lib/uri/common.rb (module): Remove optional parser argument to
+ Kernel#URI
+ [ruby-core:38061]
-Mon Jul 7 01:24:43 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * lib/uri/generic.rb (module): ditto
- * file.c (rb_file_s_extname): fix for file name with spaces.
- [ruby-talk:307404]
+Sat Jul 16 01:15:53 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
-Mon Jul 7 00:59:37 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * time.c (time_dup): used rb_obj_class() instead of CLASS_OF().
+ The patch is made by Kazuki Tsujimoto. [Bug #5012] [ruby-dev:44071]
- * thread_pthread.c (ruby_init_stack): prior STACK_END_ADDRESS if
- found. [ruby-core:17624]
+ * test/ruby/test_time.rb (TestTime#test_getlocal_dont_share_eigenclass):
+ added a new test for eigenclass of time object.
-Sun Jul 6 23:48:06 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Fri Jul 15 19:11:00 2011 Kenta Murata <mrkn@mrkn.jp>
- * ext/socket/socket.c (bsock_send, s_recvfrom, ruby_connect, s_accept),
- (udp_send, unix_send_io, unix_recv_io): blocking region support.
+ * bignum.c (bigsub_int): add RB_GC_GUARD. This patch is made by
+ Makoto Kishimoto. fixes #4223 [ruby-dev:42907]
-Sun Jul 6 18:34:35 2008 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+ * bignum.c (bigadd_int): ditto.
- * test/win32ole/test_win32ole_type.rb (test_initialize): add
- more assertions.
+Fri Jul 15 09:59:12 2011 Hiroshi Nakamura <nahi@ruby-lang.org>
-Sun Jul 6 10:12:21 2008 Kouhei Sutou <kou@cozmixng.org>
+ * backport r32546 from trunk.
- * lib/test/unit/collector/objectspace.rb
- (Test::Unit::Collector::ObjectSpace::NAME): fix a typo.
+ * ext/digest/sha2/sha2.c (SHA256_Update, SHA512_Update): avoid Bus
+ Error caused by unalignment access on Sparc-Solaris (and possibly on
+ other similar environment.) This patch just do memcpy always instead
+ of checking architecture. I see no perf drop on my 64bit env. For
+ more details, see #4320.
-Sun Jul 6 00:56:51 2008 Tanaka Akira <akr@fsij.org>
+ * test/digest/test_digest.rb: add test for unalignment access.
- * ext/socket/socket.c (host_str): fix type mismatch in rb_raise
- format and argument.
- (port_str): ditto.
- (unix_recv_io): ditto.
- (sock_s_unpack_sockaddr_un): ditto.
-Sat Jul 5 23:42:23 2008 Tanaka Akira <akr@fsij.org>
+Thu Jul 14 12:40:07 2011 Hiroshi Nakamura <nahi@ruby-lang.org>
- * include/ruby/ruby.h (NUM2INT): cast to int.
- (FIX2INT): ditto.
- (NUM2UINT): cast to unsigned int.
- (FIX2UINT): ditto.
+ * backport r32537 from trunk.
-Sat Jul 5 23:10:41 2008 Tanaka Akira <akr@fsij.org>
+ * ext/openssl/ossl.c (ossl_verify_cb): trap the exception from
+ verify callback of SSLContext and X509Store and make the
+ verification fail normally. Raising exception directly from callback
+ causes orphan resources in OpenSSL stack. Patched by Ippei Obayashi.
+ See #4445.
- * io.c (rb_pipe): new function for handling EMFILE and ENFILE
- error of pipe().
- (UPDATE_MAXFD_PIPE): removed.
- (pipe_open): use rb_pipe.
- (rb_io_s_pipe): ditto.
+ * test/openssl/test_ssl.rb
+ (test_exception_in_verify_callback_is_ignored): test it.
- * process.c (pipe_nocrash): use rb_pipe.
+Wed Jul 13 08:20:08 2011 Shota Fukumori <sorah@tubusu.net>
- * include/ruby/intern.h (rb_pipe): declared.
+ * lib/test/unit.rb(Test::Unit::Options#process_args): Fix bug.
+ Fix process_args didn't return `@option` after r30939. Backported
+ r32526 from trunk.
-Sat Jul 5 22:22:27 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Mon Jul 11 23:50:39 2011 Yutaka Kanemoto <kanemoto@ruby-lang.org>
- * thread.c (thread_initialize): NUM2INT() returns int.
+ * time.c: can't compile time.c on AIX due to missing declaration for
+ ffs(). It is declared in strings.h on AIX. backported r32518 from
+ trunk.
- * thread.c (timer_thread_function), thread_pthread.c (thread_timer),
- thread_win32.c (timer_thread_func), thread_{pthread,win32}.c
- (rb_thread_create_timer_thread): passing VM.
+Mon Jul 11 23:47:00 2011 Yutaka Kanemoto <kanemoto@ruby-lang.org>
-Sat Jul 5 20:53:18 2008 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+ * thread_pthread.c (get_stack): need to adjust stack addr for
+ [Bug #1813] on AIX. backported r32511 from trunk.
- * test/win32ole/test_word.rb: check word installed.
+Mon Jul 11 15:17:03 2011 NAKAMURA Usaku <usa@ruby-lang.org>
-Sat Jul 5 16:12:54 2008 Narihiro Nakamura <authorNari@gmail.com>
+ * numeric.c (rb_num2ull): use FIX2LONG instead of FIX2ULONG. see
+ rb_num2ulong(). fixed the problem of ObjectSpace._id2ref of IL32LLP64
+ platforms, introduced at r32433.
+ backported r32512 from trunk.
- * gc.c: revert. before lazy sweep.
+Sun Jul 10 23:58:55 2011 Yuki Sonoda (Yugui) <yugui@yugui.jp>
-Sat Jul 5 09:55:44 2008 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+ * version.h: 1.9.3 is no longer trunk.
- * ext/win32ole/win32ole.c: add WIN32OLE#ole_respond_to?
+Sun Jul 10 23:24:29 2011 Yuki Sonoda (Yugui) <yugui@yugui.jp>
- * test/win32ole/test_win32ole.rb: ditto.
+ * class.c (rb_mix_module): reverted r31873.
+ (check_mix_method_i, do_mix_method_i) reverted r31917.
-Sat Jul 5 08:48:05 2008 Tanaka Akira <akr@fsij.org>
+ * test/ruby/test_module.rb (TestModule#test_mix_const): reverted
+ r31918.
- * re.c (unescape_nonascii): add has_property argument not to
- raise error by /\p{Hiragana}\u{3042}/ in EUC-JP script.
- (rb_reg_preprocess): use has_property argument to make regexp
- encoding fixed.
+Sun Jul 10 22:50:00 2011 Kenta Murata <mrkn@mrkn.jp>
-Sat Jul 5 08:29:47 2008 Tanaka Akira <akr@fsij.org>
+ * ext/bigdecimal/bigdecimal.c (rmpd_power_by_big_decimal): fix
+ precision treatment errors.
- * re.c (unescape_nonascii): make regexp fixed_encoding if \p is used.
- fixed [ruby-core:17279].
+ * test/bigdecimal/test_bigdecimal.rb: add tests for the above change.
+ fix precision treatment errors.
-Fri Jul 4 23:12:53 2008 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+ * ext/bigdecimal/bigdecimal.c (BigDecimal_power): precision argument
+ should be optional for its compatibility.
- * ext/win32ole/win32ole.c (d2time): fix the bug of VT_DATE
- to String conversion when negative value.
+Sun Jul 10 22:38:09 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * test/win32ole/test_win32ole_variant.rb: ditto.
+ * parse.y (var_ref): distinguish vcall from local variable
+ references. based on a patch by Michael Edgar michael.j.edgar
+ AT dartmouth.edu. Bug #5002
-Fri Jul 4 22:15:29 2008 Tanaka Akira <akr@fsij.org>
+Sun Jul 10 21:51:29 2011 Koichi Sasada <ko1@atdot.net>
- * lib/test/unit/testcase.rb: collect descendants of
- Test::Unit::TestCase using inherited.
+ * internal.h: add comments (cautions).
- * lib/test/unit/autorunner.rb: don't use ObjectSpace.each_object.
+Sun Jul 10 20:59:38 2011 Shota Fukumori <sorah@tubusu.net>
- * lib/test/unit/collector/dir.rb: ditto.
+ * lib/test/unit.rb: Add new class variable `@@testfile_prefix`.
+ This is for changing test name prefix. (For testing)
- * lib/test/unit/collector/objectspace.rb: ditto.
+ * test/testunit/tests_for_parallel/ptest_first.rb: Renamed from
+ test_first.rb
- [ruby-core:17126]
+ * test/testunit/tests_for_parallel/ptest_second.rb: Renamed from
+ test_second.rb
-Fri Jul 4 20:43:53 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * test/testunit/tests_for_parallel/ptest_third.rb: Renamed from
+ test_third.rb
- * include/ruby/oniguruma.h (OnigEncoding): removed auxiliary_data.
+ * test/testunit/tests_for_parallel/ptest_forth.rb: Renamed from
+ test_forth.rb
- * include/ruby/encoding.h (ENC_DUMMY_P): moved dummy encoding flag to
- rb_encoding from Encoding instance.
+ * test/testunit/tests_for_parallel/runner.rb: Remove misc.rb
- * encoding.c (rb_encoding_list): list of Encoding instances.
+ * test/testunit/tests_for_parallel/ptest_first.rb: ditto.
- * encoding.c (struct rb_encoding_entry): moved base encoding from
- instance variable.
+ * test/testunit/tests_for_parallel/ptest_second.rb: ditto.
-Fri Jul 4 17:51:07 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+ * test/testunit/tests_for_parallel/ptest_third.rb: ditto.
- * numeric.c (check_uint, rb_num2uint, rb_fix2uint): proper check.
+ * test/testunit/tests_for_parallel/ptest_forth.rb: ditto.
-Fri Jul 4 14:17:22 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * test/testunit/tests_for_parallel/misc.rb: Removed because no longer
+ needed.
- * lib/net/ftp.rb (Net::FTP#sendport): use divmod. [ruby-core:17557]
+ * test/testunit/test_parallel.rb: Fix assertions for above.
-Fri Jul 4 11:08:37 2008 Narihiro Nakamura <authorNari@gmail.com>
+Sun Jul 10 16:57:08 2011 Koichi Sasada <ko1@atdot.net>
- * gc.c (garbage_collect_force): sweep is completely ended.
+ * vm_insnhelper.c (vm_throw): check a class frame.
+ Fixes Bug #4648.
+ The patch is contributed by Kazuki Tsujimoto.
- * gc.c (os_obj_of): invoke garbage_collect_force() when freelist none.
+ * bootstraptest/test_proc.rb: add tests for above.
-Fri Jul 4 05:01:26 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+Sun Jul 10 17:28:01 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * numeric.c (rb_num2uint, rb_fix2uint): typo.
+ * thread_pthread.c (mutex_debug): use exit(EXIT_FAILURE) instad of
+ exit(1).
+ * thread_pthread.c (add_signal_thread_list): ditto.
+ * thread.c (rb_thread_call_with_gvl): ditto.
+ * util.c (Bug): ditto.
-Fri Jul 4 02:21:06 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+Sun Jul 10 15:58:12 2011 NARUSE, Yui <naruse@ruby-lang.org>
- * numeric.c (check_uint, rb_num2uint, rb_fix2uint): also needs checking
- negative value. see [ruby-dev:33683]
+ * ext/json: Merge json gem 1.5.4+ (f7f78896607b6f6226cd).
+ [Bug #4700]
-Thu Jul 3 23:26:36 2008 Yusuke Endoh <mame@tsg.ne.jp>
+Sun Jul 10 16:41:32 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * include/ruby/intern.h: remove prototypes about coverage.
+ * vm_core.h (typedef struct rb_vm_struct): create a new
+ 'inhibit_thread_creation' field.
+ * thread.c (rb_thread_terminate_all): set inhibit_thread_creation.
+ * thread.c (thread_s_new): don't permit to create new thread
+ if the VM is under destruction. Otherwise evil finalizer code
+ can make SEGV. [Bug #4992][ruby-core:37858]
- * iseq.c (prepare_iseq_build): add prototype.
+ * bootstraptest/test_objectspace.rb: new test for this fix.
- * parse.y (coverage): ditto.
+Sun Jul 10 16:06:16 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * thread.c (clear_coverage): ditto.
+ * signal.c (sigsegv): use abort() instead of exit() when nested
+ SEGV was happen. Because unnested SEGV use abort().
+ [Bug #5013][ruby-dev:44078]
- * thread.c (update_coverage): use rb_sourceline.
+Sun Jul 10 15:30:00 2011 Kenta Murata <mrkn@mrkn.jp>
- * thread.c (rb_get_coverages): rename and move to vm.c.
+ * load.c (rb_f_autoload): prevent to autoload for singleton
+ classes. fixes [Bug #4886] [ruby-dev:43816]
- * vm.c (rb_vm_get_coverages): ditto.
+ * bootstraptest/test_autoload.rb: add tests for the above change.
- * ext/coverage/coverage.c: add rdoc.
+Sun Jul 10 15:09:17 2011 Shota Fukumori <sorah@tubusu.net>
-Thu Jul 3 21:51:21 2008 Yusuke Endoh <mame@tsg.ne.jp>
+ * lib/test/unit/assertions.rb: Import documentation patch by Justin
+ Collins. [ruby-core:37225] [Feature #4903]
- * ext/coverage/coverage.c, ext/coverage/extconf.rb: eliminate
- COVERAGE__ and introduce coverage.so instead. How to measure
- coverage: (1) require "coverage.so", (2) require or load Ruby source
- file, and (3) Coverage.result will return the same hash as COVERAGE__.
- [ruby-dev:35324]
+Sun Jul 10 14:57:36 2011 Tadayoshi Funaba <tadf@dotrb.org>
- * thread.c (rb_enable_coverages): start coverage measurement by using
- rb_add_event_hook.
+ * ext/date/date_core.c: canonicalizes nth and sf.
- * thread.c (rb_get_coverages): returns current results of coverage
- measurement.
+Sun Jul 10 14:13:50 2011 Koichi Sasada <ko1@atdot.net>
- * include/ruby/intern.h: add prototype for above two functions.
+ * internal.h (rb_thread_call_with_gvl, rb_thread_call_without_gvl):
+ make them visible as experimental C APIs. fixes Feature #4328.
- * vm_core.h, vm.c: add field of coverages to rb_vm_t.
+Sun Jul 10 12:18:00 2011 Kenta Murata <mrkn@mrkn.jp>
- * insns.def (trace): remove special handling for COVERAGE__.
+ * ext/bigdecimal/bigdecimal.c (BigDecimal_power): support non-integral
+ exponent. fixes [Bug #3271]
- * iseq.c (prepare_iseq_build): switch COVERAGE__ to
- rb_get_coverages().
+ * ext/bigdecimal/bigdecimal.c (rmpd_power_by_big_decimal): ditto.
- * parse.y (coverage): ditto.
+ * ext/bigdecimal/bigdecimal.c (BigDecimal_power_op): add a function to
+ only use for "**" operator.
- * thread.c (clear_coverage): ditto.
+ * test/bigdecimal/test_bigdecimal.rb: add a bunch of tests for the
+ above changes.
- * lib/coverage.rb: use coverage.so instead of COVERAGE__.
+ * ext/bigdecimal/bigdecimal.c (is_integer): add an utility function.
-Thu Jul 3 21:20:45 2008 Yusuke Endoh <mame@tsg.ne.jp>
+ * ext/bigdecimal/bigdecimal.c (is_negative): ditto.
- * thread.c (thread_initialize): NUM2INT returns long.
+ * ext/bigdecimal/bigdecimal.c (is_positive): ditto.
-Thu Jul 3 21:06:16 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * ext/bigdecimal/bigdecimal.c (is_zero): ditto.
- * eval.c (Init_eval): typo fixed in r17833.
+ * ext/bigdecimal/bigdecimal.c (is_one): ditto.
-Thu Jul 3 19:44:44 2008 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+ * ext/bigdecimal/bigdecimal.c (is_even): ditto.
- * ext/win32ole/win32ole.c (Init_win32ole): remove duplicate line.
+Sun Jul 10 12:08:39 2011 Yusuke Endoh <mame@tsg.ne.jp>
-Thu Jul 3 16:08:36 2008 Tanaka Akira <akr@fsij.org>
+ * compile.c (when_vals): when a string literal is written on when
+ clause, skip string creation to make it faster. [ruby-dev:44068]
+ [Feature #5000]
- * configure.in (erfc): erfc of glibc comes with Debian GNU/Linux Etch
- on IA64 is broken. erfc(10000.0) aborts.
- use missing/erf.c instead.
- http://sources.redhat.com/ml/libc-hacker/2005-08/msg00008.html
+Sun Jul 10 11:35:29 2011 Yusuke Endoh <mame@tsg.ne.jp>
-Thu Jul 3 12:49:39 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * parse.y (reduce_nodes_gen): NODE_RETURN in rescue body must not be
+ reduced when there is an else clause. This caused bizarre behavior
+ in [Bug #4473] [ruby-core:35629] [ruby-core:37884].
- * lib/net/smtp.rb (Net::SMTP::start): use 'localhost' instead of
- 'localhost.localdomain'. [ruby-dev:35333]
+Sun Jul 10 09:46:14 2011 Masaya Tarui <tarui@ruby-lnag.org>
- * lib/net/smtp.rb (Net::SMTP::SMTP.start): ditto.
+ * range.c (range_max): fix behavior with excluded end value.
+ [Bug #4591]
-Thu Jul 3 07:06:02 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Sun Jul 10 09:13:18 2011 Eric Hodel <drbrain@segment7.net>
- * Makefile.in (SET_LC_MESSAGES): LC_MESSAGES must be C.
+ * NEWS: Fix RubyGems version. [Ruby 1.9 - Bug #5004]
-Thu Jul 3 07:02:55 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Sat Jul 9 20:01:59 2011 Tadayoshi Funaba <tadf@dotrb.org>
- * eval.c (Init_eval), gc.c (Init_GC), proc.c (Init_Proc): freeze
- messages of preallocated special exceptions also.
+ * internal.h: rb_rational_reciprocal is defined in rational.c.
-Thu Jul 3 04:39:30 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Sat Jul 9 19:48:31 2011 Tadayoshi Funaba <tadf@dotrb.org>
- * gc.c (rb_during_gc): VALUE cache is irrelevant.
+ * internal.h: added declarations.
+ * complex.c: followed the above change.
-Thu Jul 3 01:44:01 2008 Yusuke Endoh <mame@tsg.ne.jp>
+Sat Jul 9 17:24:41 2011 Tadayoshi Funaba <tadf@dotrb.org>
- * regint.h (GET_ALIGNMENT_PAD_SIZE, ALIGNMENT_RIGHT): cast pointer to
- uintptr_t instead of unsigned int.
+ * NEWS: bigdecimal is not a builtin.
-Thu Jul 3 01:23:13 2008 Yusuke Endoh <mame@tsg.ne.jp>
+Sat Jul 9 17:17:53 2011 Tadayoshi Funaba <tadf@dotrb.org>
- * sprintf.c: include ieeefp.h to refer to isinf.
+ * ext/date/date_core.c: some improvements for performance.
- * ext/bigdecimal/bigdecimal.c: ditto.
+Sat Jul 9 16:56:01 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * ext/json/ext/generator/generator.c: ditto.
+ * atomic.h (ATOMIC_OR): _InterlockedOr is unavailable in VC6.
- * rational.c: ditto.
+ * numeric.c (ULLONG_MAX): fallback definition.
-Thu Jul 3 01:01:57 2008 Yusuke Endoh <mame@tsg.ne.jp>
+Sat Jul 9 15:59:19 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * missing/tgamma.c (tgamma): remove unused variable.
+ * win32/win32.c (rb_w32_{read,write}): should be signed.
+ Bug #5001
-Thu Jul 3 00:18:00 2008 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+Sat Jul 9 14:02:20 2011 Takeyuki FUJIOKA <xibbar@ruby-lang.org>
- * ext/win32ole/win32ole.c: avoid creating Ruby object during
- GC. thanks to arton <artonx AT yahoo.co.jp>. [ruby-dev:35313]
+ * lib/cgi/core.rb: fix multipart form parsing bug. [Bug #3866]
- * test/win32ole/test_win32ole_event.rb: ditto.
+Sat Jul 9 11:41:03 2011 Marc-Andre Lafortune <ruby-core@marc-andre.ca>
-Thu Jul 3 00:09:31 2008 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+ * lib/matrix.rb: Add Vector#normalize [ruby-dev:43829]
- * gc.c: add rb_during_gc(). based on a patch from arton <artonx AT
- yahoo.co.jp> at [ruby-dev:35313].
+Sat Jul 9 09:25:06 2011 Eric Hodel <drbrain@segment7.net>
- * include/ruby/intern.h: ditto.
+ * enumerator.c: Remove "enumeration sequenced by".
+ [Ruby 1.9 - Bug #4757]
-Wed Jul 2 09:49:10 2008 Narihiro Nakamura <authorNari@gmail.com>
+Sat Jul 9 09:14:56 2011 Eric Hodel <drbrain@segment7.net>
- * gc.c (gc_lazy_sweep): use lazy sweep algorithm for response
- performance gain.
+ * io.c: Note that methods other than IO#gets may increase IO#lineno.
+ [Ruby 1.9 - Bug #4902]
- * gc.c (garbage_collect_force): mark and lazysweep invoke, after
- erasing all mark.
+Sat Jul 9 08:39:39 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * gc.c (GC_NOT_LAZY_SWEEP): not lazy sweep flag. for debug.
+ * common.mk (RUN_OPT): disable gems.
-Wed Jul 2 03:42:44 2008 Yusuke Endoh <mame@tsg.ne.jp>
+Sat Jul 9 08:37:05 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * test/ruby/test_settracefunc.rb: fix expected traces for
- RubyVM::FrozenCore's event and r17744.
+ * io.c (rb_io_close): close(2) on a fd which is being read by
+ another thread causes deadlock on Mac OS X 10.5
-Wed Jul 2 03:10:41 2008 Koichi Sasada <ko1@atdot.net>
+Fri Jul 8 21:20:39 2011 NARUSE, Yui <naruse@ruby-lang.org>
- * compile.h, insns.def: reduce insn operand of "trace".
+ * addr2line.c: use USE_ELF instead of __ELF__ because Solaris
+ doesn't define it. USE_ELF is already provided by configure.
+ patched by Naohisa Goto. [ruby-dev:44066] [Bug #4998]
- * include/ruby/ruby.h: add RUBY_EVENT_COVERAGE event.
+ * addr2line.h: ditto.
-Wed Jul 2 02:02:34 2008 Koichi Sasada <ko1@atdot.net>
+ * vm_dump.c: ditto.
- * proc.c, vm.c: fix to refer to next ruby level cfp to make binding.
+Fri Jul 8 16:40:38 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Wed Jul 2 01:58:19 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+ * ext/json/parser/parser.rl (convert_encoding): should not modify
+ the argument.
- * insns.def (trace): C99ism.
+ * ext/json/parser/parser.rl (convert_encoding): no needs to use
+ force_encoding.
-Wed Jul 2 01:53:40 2008 Yusuke Endoh <mame@tsg.ne.jp>
+Fri Jul 8 15:53:31 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * Add coverage measurement constant COVERAGE__. This constant is not
- for casual use. Usage: (1) assign {} to COVERAGE__, (2) require or
- load Ruby source file, and (3) COVERAGE__["sourcefilepath"] will
- return an array whose elements represent number of executions per
- line of source code.
+ * error.c (rb_bug): get rid of segfault after all threads
+ disposed.
- * vm_core.h: add field of coverage array to iseq.
+Fri Jul 8 15:01:06 2011 NAKAMURA Usaku <usa@ruby-lang.org>
- * iseq.c (prepare_iseq_build): ditto.
+ * ext/openssl/ossl.h: include openssl/e_os2.h before checking the
+ definition of OPENSSL_SYS_WIN32.
- * insns.def (trace): update coverage array.
+Fri Jul 8 14:40:39 2011 NAKAMURA Usaku <usa@ruby-lang.org>
- * parse.y (coverage): create and initialize coverage array.
+ * win32/win32.c (wunlink): reverted a part of r32426. it was mistakenly
+ mixed.
- * compile.h (ADD_TRACE): add trace instruction to update coverage
- array.
+Fri Jul 8 14:29:47 2011 Narihiro Nakamura <authornari@gmail.com>
- * thread.c (clear_coverage): delete coverage array when forking.
- Otherwise, double count of coverage may occur.
+ * configure.in: can't subtract void *.
- * lib/coverage.rb: sample coverage measurement tool.
+Fri Jul 8 14:33:26 2011 NAKAMURA Usaku <usa@ruby-lang.org>
- * error.c: distinguish explicitly between parse_in_eval and
- mild_compile_error.
+ * win32/Makefile.sub (config.h): define GC_MARK_STACKFRAME_WORD.
+ fixed build problem of r32438. the value (30) is temporary value.
+ maybe it's enough by 20~24 according to my observation.
- * load.c: ditto.
+Fri Jul 8 13:47:39 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * vm_eval.c: ditto.
+ * thread.c (rb_mutex_unlock_all): folded into
+ rb_threadptr_unlock_all_locking_mutexes.
+ * thread.c (rb_threadptr_unlock_all_locking_mutexes) ditto.
-Tue Jul 1 21:32:43 2008 Yusuke Endoh <mame@tsg.ne.jp>
+Fri Jul 8 13:36:02 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * lib/test/unit/ui/console/testrunner.rb: prevent destructive
- modification to $0.
+ * thread.c (thread_unlock_all_locking_mutexes): rename to
+ rb_threadptr_unlock_all_locking_mutexes and remove static.
+ * vm_core.h: add rb_threadptr_unlock_all_locking_mutexes declaration.
+ * thread.c (thread_start_func_2): adjust the above rename.
- * test/rubygems/gemutilities.rb (build_rake_in): move from
- test_gem_ext_rake_builder.rb.
+ * eval.c (ruby_cleanup): call rb_threadptr_unlock_all_locking_mutexes
+ again after finalizer. [Bug #4988] [ruby-dev:44049]
- * test/rubygems/test_gem_ext_rake_builder.rb: ditto.
+Fri Jul 8 13:06:09 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * test/rubygems/test_gem_installer.rb: override Gem.ruby and
- ENV["rake"].
+ * cont.c (FIBER_MACHINE_STACK_ALLOCATION_SIZE): Fiber stack size
+ don't need to keep multiple number of sizeof(VALUE).
- * test/rubygems/test_gem_uninstaller.rb: ditto.
+Fri Jul 8 11:39:12 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * common.mk (sudo-precheck): true command is not standard on
+ Windows.
-Tue Jul 1 21:13:17 2008 Koichi Sasada <ko1@atdot.net>
+Fri Jul 8 10:39:52 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * compile.c, vm.c, insns.def: call FrozenCore.set_postexe method
- instead to use "postexe" insn.
+ * thread_pthread.c (gvl_destroy): fix cond_t leak.
- * id.c, id.h: add a prepared id for above.
+Fri Jul 8 09:17:59 2011 Eric Hodel <drbrain@segment7.net>
-Tue Jul 1 21:09:58 2008 URABE Shyouhei <shyouhei@ruby-lang.org>
+ * gc.c: Improve documentation
- * lib/mkmf.rb (create_tmpsrc): we need to include COMMON_HEADERS,
- namely inclusion of ruby.h, because _GNU_SOURCE is now defined
- there (if any) and socket.so requires it on Linux systems.
+Thu Jul 7 23:35:31 2011 Narihiro Nakamura <authornari@gmail.com>
-Tue Jul 1 20:55:07 2008 URABE Shyouhei <shyouhei@ruby-lang.org>
+ * gc.c: change water_mark value that may call
+ gc_mark(lev <= GC_LEVEL_MAX) in gc_mark().
+ In ruby_stack_check(), water_mark is a value that may call some
+ C function. Fixes Bug #3781
- * eval.c (rb_interrupt): trick to suppress GCC warning.
+ * configure.in: define GC_MARK_STACKFRAME_WORD that approximate
+ size of gc_mark() and gc_mark_children() stackframes.
- * sprintf.c (rb_str_format): ditto.
+Thu Jul 7 17:55:05 2011 NAKAMURA Usaku <usa@ruby-lang.org>
-Tue Jul 1 20:44:36 2008 Koichi Sasada <ko1@atdot.net>
+ * test/testunit/test_parallel.rb (TestParallelWorker#teardown): wait
+ the child process even if the communication pipe is broken.
- * tool/instruction.rb: RubyVM is not module.
+Thu Jul 7 15:44:42 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Tue Jul 1 19:31:24 2008 URABE Shyouhei <shyouhei@ruby-lang.org>
+ * encoding.c (rb_enc_set_index, rb_enc_associate_index): should
+ check if frozen.
- * ext/digest/digest.c (rb_digest_instance_inspect): constified.
+ * parse.y (rb_intern3), ruby.c (process_options, ruby_script):
+ defer freezing after associating encodings.
- * variable.c (rb_path2class): field precision should have type int.
+Thu Jul 7 15:16:51 2011 NARUSE, Yui <naruse@ruby-lang.org>
-Tue Jul 1 19:01:00 2008 NARUSE, Yui <naruse@ruby-lang.org>
+ * numeric.c (rb_num2ull): use own switch sentence.
+ Current implementation can't convert 18446744073709551615.
- * enc/shift_jis.c (code_is_ctype): HALF WIDTH KATAKANA is
- a character.
+Thu Jul 7 06:56:15 2011 NARUSE, Yui <naruse@ruby-lang.org>
-Tue Jul 1 17:56:34 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * cont.c (FIBER_STACK_FLAGS): workaround fix for r32420 on FreeBSD.
- * missing/vsnprintf.c (BSD__uqtoa): constified.
+Thu Jul 7 06:46:12 2011 Eric Hodel <drbrain@segment7.net>
-Tue Jul 1 17:50:44 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+ * benchmark/driver.rb: Add difference column to report that averages
+ across all runs of a benchmark. [Ruby 1.9 - Feature #4982]
- * enc/make_encdb.h: always add ';' at the end of line.
+Thu Jul 7 06:19:38 2011 Eric Hodel <drbrain@segment7.net>
-Tue Jul 1 17:44:30 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * lib/rubygems.rb: Reduce requires to improve `make benchmark`.
+ [#4962]
+ * lib/rubygems/specification.rb: Delay initialization of rubygems
+ until require is called.
- * iseq.c (COMPILE_OPTION_FALSE), time.c (timegm_noleapsecond),
- thread.c (eKillSignal, eTerminateSignal),
- missing/vsnprintf.c (BSD_vfprintf): constified.
+Thu Jul 7 04:31:26 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Tue Jul 1 17:37:43 2008 URABE Shyouhei <shyouhei@ruby-lang.org>
+ * parse.y (arg): rescue_mod is in inverse order from other
+ modifiers. patched by michael.j.edgar AT dartmouth.edu at
+ [ruby-core:36248]. fixed #4716.
- * enc/ascii.c: ISO C does not allow extra ';' outside of a
- function
+Thu Jul 7 00:40:16 2011 NAKAMURA Usaku <usa@ruby-lang.org>
- * enc/us_ascii.c: ditto.
+ * win32/win32.c (kill): check that the process exited or not before
+ terminating it. [Bug #4943]
- * enc/utf_8.c: ditto.
+Wed Jul 6 23:13:19 2011 Yukihiro Matsumoto <matz@ruby-lang.org>
- * enc/big5.c: ditto.
+ * parse.y (opt_call_args): allow trailing comma after assoc
+ argument e.g. 'foo(bar:1,)'. fixed #3456
- * enc/euc_jp.c: ditto.
+Wed Jul 6 22:11:12 2011 Shota Fukumori <sorah@tubusu.net>
- * enc/euc_kr.c: ditto.
+ * test/cgi/test_cgi_header.rb(test_cgi_header_nph): Validate date in
+ "Date:" header
- * enc/euc_tw.c: ditto.
+Wed Jul 6 21:29:33 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * enc/gb2312.c: ditto.
+ * cont.c (fiber_machine_stack_alloc): cleanup pointer arithmetic.
+ "size/sizeof(VALUE)" is ugly and easy confusing.
+ * cont.c (fiber_initialize_machine_stack_context): ditto.
- * enc/gbk.c: ditto.
+Wed Jul 6 21:24:53 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * enc/iso_8859_1.c: ditto.
+ * cont.c (fiber_machine_stack_alloc): fix mprotect misuse. A stack
+ guard page should have PROT_NONE.
+ * cont.c (fiber_initialize_machine_stack_context):
+ th->machine_stack_maxsize shouldn't be included guard pages size.
+ [Bug #4983][ruby-dev:44043]
- * enc/iso_8859_2.c: ditto.
+Wed Jul 6 21:23:38 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * enc/iso_8859_3.c: ditto.
+ * cont.c (fiber_machine_stack_alloc): use MAP_STACK if it's provided.
- * enc/iso_8859_4.c: ditto.
+Wed Jul 6 21:22:16 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * enc/iso_8859_5.c: ditto.
+ * cont.c (fiber_machine_stack_alloc): use MAP_FAILED instead of -1.
- * enc/iso_8859_6.c: ditto.
+Wed Jul 6 21:21:05 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * enc/iso_8859_7.c: ditto.
+ * cont.c (fiber_machine_stack_alloc): remove unnecessary cast.
- * enc/iso_8859_8.c: ditto.
+Wed Jul 6 18:10:13 2011 Shota Fukumori <sorah@tubusu.net>
- * enc/iso_8859_9.c: ditto.
+ * test/cgi/test_cgi_header.rb(test_cgi_header_nph): Adding space after
+ comma.
- * enc/iso_8859_10.c: ditto.
+ * test/cgi/test_cgi_header.rb(test_cgi_header_nph): Remove variable
+ `now`. Suppress warning.
- * enc/iso_8859_11.c: ditto.
+Wed Jul 6 12:18:09 2011 Shota Fukumori <sorah@tubusu.net>
- * enc/iso_8859_13.c: ditto.
+ * test/cgi/test_cgi_header.rb(test_cgi_header_nph): Fix bug depends to
+ time. The test fails if time past 1 second in line 136-145
- * enc/iso_8859_14.c: ditto.
+Tue Jul 5 15:28:04 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * enc/iso_8859_15.c: ditto.
+ * parse.y (parser_here_document): should dispatch heredoc_end
+ scanner event on an empty here document. fixed Bug#4543.
- * enc/iso_8859_16.c: ditto.
+Tue Jul 5 13:49:26 2011 Yusuke Endoh <mame@tsg.ne.jp>
- * enc/koi8_r.c: ditto.
+ * addr2line.c: fix r32407 to check HAVE_ALLOCA_H.
- * enc/shift_jis.c: ditto.
+Tue Jul 5 14:05:43 2011 NARUSE, Yui <naruse@ruby-lang.org>
- * enc/utf_16be.c: ditto.
+ * lib/webrick/httpauth/digestauth.rb (_authenticate):
+ Literal texts in HTTP ABNF is case-insensitive (RFC2616 2.1),
+ and a sample implementation in RFC2617 also ignores the case
+ of algorithms. So now this ignores those cases.
+ [ruby-dev:43965] [Feature #4936]
- * enc/utf_32be.c: ditto.
+ * lib/webrick/httpauth/digestauth.rb (initialize):
+ Because of above, opera_hack is useless and removed.
- * enc/utf_32le.c: ditto.
+Tue Jul 5 01:30:01 2011 Yusuke Endoh <mame@tsg.ne.jp>
- * enc/windows_1251.c: ditto.
+ * thread_pthread.c (native_sleep): cut the waiting time up to
+ 100,000,000 because Solaris cond_timedwait() return EINVAL if an
+ argument is greater than current_time + 100,000,000. This is
+ considered as a kind of spurious wakeup. The caller to native_sleep
+ should care about spurious wakeup.
- * process.c (run_exec_rlimit): ISO C90 forbids mixed declarations
- and code
+Tue Jul 5 01:24:26 2011 Yusuke Endoh <mame@tsg.ne.jp>
- * include/ruby/ruby.h (enum ruby_special_consts): ISO C forbids
- comma at end of enumerator list
+ * cont.c: disable FIBER_USE_NATIVE on Solaris because resuming any
+ Fiber caused SEGV. I haven't follow up the issue deeply, but it
+ works when disabling the feature.
- * include/ruby/ruby.h (enum ruby_value_type): ditto.
+Tue Jul 5 01:22:46 2011 Yusuke Endoh <mame@tsg.ne.jp>
- * eval_intern.h (enum): ditto.
+ * addr2line.c: include <alloca.h> to fix a build issue on Solaris.
- * vm_core.h (enum rb_thread_status): ditto.
+Tue Jul 5 00:49:05 2011 CHIKANAGA Tomoyuki <nagachika00@gmail.com>
- * parse.y (enum lex_state_e): ditto.
+ * ext/coverage/coverage.c: resurrect r32071 + add GC guard for
+ rb_coverages. [ruby-core:37352] [Bug #4927]
+ [ruby-core:36539] [Feature #4796]
- * parse.y (enum string_type): ditto.
+ * test/coverage/test_coverage.rb resurrect r32071.
- * process.c (enum): ditto.
+Mon Jul 4 22:24:46 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * ruby.c (enum dump_flag_bits): ditto.
+ * thread_pthread.c (get_stack): For NetBSD/FreeBSD, use
+ pthread_attr_getstack() if possible. and, remove an assumption
+ of stack growing direction.
- * ruby.c (enum disable_flag_bits): ditto.
+Mon Jul 4 20:42:31 2011 Yusuke Endoh <mame@tsg.ne.jp>
- * enc/gb18030.c (enum): ditto.
+ * ext/coverage/coverage.c: revert r32071. The commit caused SEGV on
+ some minor nonfree OS. I have no means of debugging the bug. My
+ personal opinion is that such OS should be unsupported unless there
+ is an active maintainer. [ruby-core:37352]
-Tue Jul 1 17:21:42 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * test/coverage/test_coverage.rb: ditto.
- * regexec.c (stack_double): use MatchStackLimitSize atomically.
+Mon Jul 4 07:14:12 2011 NARUSE, Yui <naruse@ruby-lang.org>
- * regparse.c (onig_free_shared_cclass_table): OnigTypeCClassTable
- needs atomicity
+ * thread_pthread.c (get_stack): the return address of get_stack
+ must be the highest address of the current thread's stack.
- * regsyntax.c: constified all predefined OnigSyntaxTypes.
+Mon Jul 4 06:37:22 2011 Koichi Sasada <ko1@atdot.net>
-Tue Jul 1 16:57:44 2008 URABE Shyouhei <shyouhei@ruby-lang.org>
+ * include/ruby/intern.h, thread_pthread.c (rb_reserved_fd_p,
+ RB_RESERVED_FD_P): added. This C API is to limit to access
+ fds which are used by RubyVM internal. In this version of
+ CRuby, return 1 if fd is communication pipe.
+ If your application needs to close all file descriptors to
+ present resource leak, skip internal fds using this C API.
+ We also define a macro RB_RESERVED_FD_P(fd). So you can write
+ #ifndef RB_RESERVED_FD_P
+ #define RB_RESERVED_FD_P(fd) 0
+ #endif
+ for Ruby 1.9.2 or previous version to write compatible extensions.
+ See [ruby-core:37727]
- * include/ruby/st.h (struct st_table): type of bit-field
- 'num_entries' is a GCC extension
+ * thread_win32.c (rb_reserved_fd_p): added (return 0 for any fds).
- * include/ruby/ruby.h (rb_intern): prefix __extension__ for
- braced-groups within expressions.
+ * io.c (rb_io_initialize): raise ArgumentError if given fd is reserved by Ruby.
- * include/ruby/intern.h (rb_usascii_str_new2): ditto.
+Sun Jul 3 23:43:56 2011 Yuki Sonoda (Yugui) <yugui@yugui.jp>
- * include/ruby/intern.h (rb_tainted_str_new2): ditto.
+ * ext/extmk.rb (extmake): suppresses outputs from extconf.rb.
+ (extmake) warns a failure in extconf.rb.
- * include/ruby/intern.h (rb_str_new2): ditto.
+Sun Jul 3 13:44:51 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Tue Jul 1 15:01:13 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * array.c (ary_reject_bang): should not remove elements which are
+ not yielded. [Bug #2545]
- * lib/rubygems/ext/builder.rb (Gem::Ext::Builder.make),
- (Gem::Ext::Builder.run): EXIT_SUCCESS may be 0 or may not.
+Sun Jul 3 06:10:26 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * test/rubygems/test_gem_ext_rake_builder.rb (build_rake_in): override
- Gem.ruby and ENV["rake"].
+ * thread_pthread.c (get_stack): pthread_attr_getstack() doesn't
+ return stack start address, but stack base address. Thus,
+ we need to add stack size for getting stack start address.
+ And, we don't have to decrease guard size twice.
+ * thread_pthread.c (thread_start_func_1): don't use inaccurate
+ stack start guess if native_thread_init_stack() can be used.
+ [Bug #1813] [ruby-core:24540]
- * runruby.rb: bin/rake does not exist in archdir where architecture
- depend script (i.e. rbconfig.rb) exists.
+Sun Jul 3 04:50:08 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
-Tue Jul 1 13:19:44 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * thread_pthread.c (get_stack): add to a care of guard page on Mac
+ OS X. [Bug #1813] [ruby-core:24540]
+ * signal.c (ruby_signal): SIGBUS use alternative stack too.
+ * signal.c (sigbus): On Mac, thread stack overflow makes SIGBUS
+ instead of SIGSEGV. thus, added stackoverflow check.
+ * signal.c (default_handler): get rid of compilation warning.
+ * signal.c (Init_signal): ditto.
- * array.c (rb_ary_fill): check if beg is too big.
+Sat Jul 02 08:59:20 2011 Martin Bosslet <Martin.Bosslet@googlemail.com>
-Tue Jul 1 12:01:16 2008 Koichi Sasada <ko1@atdot.net>
+ * test/openssl/test_ocsp.rb
+ * test/openssl/test_x509_cert.rb: Perform SHA-256 tests only if
+ supported by the available OpenSSL version. Versions < 0.9.8 don't
+ support it. [ruby-core:37724]
- * compile.c, insns.def, vm.c, vm_core.h: remove some insns
- (undef, alias, definemethod).
- Call RubyVM::FrozenCore's singleton method instead.
- Add "putiseq" and "putspecialobject" instructions.
+Sat Jul 2 07:17:45 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * id.c, id.h: add ids for above.
+ * array.c (rb_ary_reject_bang, rb_ary_delete_if): rejected
+ elements should be removed. fixed [Bug #2545]
- * tool/parse.rb: "VM" no longer exists. Use RubyVM instead.
+Sat Jul 2 01:57:00 2011 Kenta Murata <mrkn@mrkn.jp>
-Tue Jul 1 03:28:16 2008 Eric Hodel <drbrain@segment7.net>
+ * NEWS: remove a description of Kernel#respond_to? because it has
+ been reverted at revision 28564.
- * test/rubygems/test_ext_configure_builder.rb: Apply locale-free
- patch by Yusuke ENDOH. [ruby-core:17444].
+Sat Jul 2 00:58:00 2011 Kenta Murata <mrkn@mrkn.jp>
- * runruby.rb: Set ENV['rake']. Patch by Yusuke ENDOH
- [ruby-core:17442].
+ * NEWS: describe a change of multiplication of Bignum.
-Tue Jul 1 01:07:17 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Fri Jul 1 18:52:31 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * lib/cgi.rb (CGI::QueryExtension.read_multipart): blanks inside
- double quotes are allowed. [ruby-list:45140]
+ * benchmark/bm_app_erb.rb: increase loop count. too short
+ measurement time makes less accuracy.
+ * benchmark/bm_app_factorial.rb: ditto.
+ * benchmark/bm_app_mandelbrot.rb: ditto.
+ * benchmark/bm_app_strconcat.rb: ditto.
-Tue Jul 1 00:59:43 2008 Tanaka Akira <akr@fsij.org>
+ * benchmark/bm_io_file_create.rb: ditto.
+ * benchmark/bm_io_file_read.rb: ditto.
+ * benchmark/bm_io_file_write.rb: ditto.
- * numeric.c (num_coerce): call rb_Float(x) first. don't depend on
- evaluation order of function arguments.
+ * benchmark/bm_so_concatenate.rb: ditto.
+ * benchmark/bm_so_lists.rb: ditto.
+ * benchmark/bm_so_matrix.rb: ditto.
+ * benchmark/bm_so_random.rb: ditto.
+ * benchmark/bm_so_sieve.rb: ditto.
-Tue Jul 1 00:49:11 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * benchmark/bm_vm_thread_mutex1.rb: ditto.
+ * benchmark/bm_vm_thread_mutex2.rb: ditto.
+ * benchmark/bm_vm_thread_mutex3.rb: ditto.
- * gc.c (rb_newobj): abort GC phase before rb_bug.
+ * benchmark/bm_vm1_block.rb: cleanup.
+ * benchmark/bm_vm1_const.rb: cleanup.
+ * benchmark/bm_vm1_ensure.rb: cleanup.
+ * benchmark/bm_vm1_ivar.rb: cleanup.
+ * benchmark/bm_vm1_length.rb: cleanup.
+ * benchmark/bm_vm1_neq.rb: cleanup.
+ * benchmark/bm_vm1_not.rb: cleanup.
+ * benchmark/bm_vm1_rescue.rb: cleanup.
+ * benchmark/bm_vm1_simplereturn.rb: cleanup.
+ * benchmark/bm_vm1_swap.rb: cleanup.
-Mon Jun 30 23:15:07 2008 Yusuke Endoh <mame@tsg.ne.jp>
+ * benchmark/bm_vm2_array.rb: cleanup.
+ * benchmark/bm_vm2_case.rb: cleanup.
+ * benchmark/bm_vm2_defined_method.rb: cleanup.
+ * benchmark/bm_vm2_eval.rb: cleanup.
+ * benchmark/bm_vm2_method.rb: cleanup.
+ * benchmark/bm_vm2_mutex.rb: cleanup.
+ * benchmark/bm_vm2_poly_method.rb: cleanup.
+ * benchmark/bm_vm2_poly_method_ov.rb: cleanup.
+ * benchmark/bm_vm2_proc.rb: cleanup.
+ * benchmark/bm_vm2_regexp.rb: cleanup.
+ * benchmark/bm_vm2_send.rb: cleanup.
+ * benchmark/bm_vm2_super.rb: cleanup.
+ * benchmark/bm_vm2_unif1.rb: cleanup.
+ * benchmark/bm_vm2_zsuper.rb: cleanup.
- * test/openssl/test_ssl.rb (start_server): shutdown TCPServer before
- close.
+ * benchmark/bm_vm_thread_alive_check1.rb: cleanup.
-Mon Jun 30 23:01:50 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Fri Jul 1 15:23:00 2011 Marc-Andre Lafortune <ruby-core@marc-andre.ca>
- * common.mk (RUBY_H_INCLUDES): common headers which are included with
- ruby.h together.
+ * lib/matrix: Add LUP decomposition
-Mon Jun 30 22:57:50 2008 Yusuke Endoh <mame@tsg.ne.jp>
+Fri Jul 1 15:21:14 2011 Marc-Andre Lafortune <ruby-core@marc-andre.ca>
- * test/ruby/test_settracefunc.rb (test_raise): reveal an exception
- hided by rescue modifier.
+ * lib/matrix.rb: Allow non integer exponents for Matrix#**
-Mon Jun 30 22:49:32 2008 Yusuke Endoh <mame@tsg.ne.jp>
+Fri Jul 1 15:13:25 2011 Marc-Andre Lafortune <ruby-core@marc-andre.ca>
- * test/ruby/test_array.rb (test_aset): access with too big index
- raises not ArgumentError but IndexError now.
+ * lib/matrix: Add Eigenvalue Decomposition
-Mon Jun 30 22:30:37 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Fri Jul 1 15:10:22 2011 Marc-Andre Lafortune <ruby-core@marc-andre.ca>
- * lib/test/unit/collector/dir.rb (recursive_collect): r15662 reverted.
+ * lib/matrix: Add Matrix#round
-Mon Jun 30 22:27:39 2008 Yusuke Endoh <mame@tsg.ne.jp>
+Fri Jul 1 11:41:12 2011 NARUSE, Yui <naruse@ruby-lang.org>
- * ext/stringio/stringio.c (strio_getline): fix for nil and "" as
- separator. [ruby-dev:34591]
+ * string.c (tr_trans): free heap ptr when the str is not embedded.
+ patched by Eric Wong. [Bug #4956] [ruby-core:37708]
-Mon Jun 30 22:21:30 2008 Yusuke Endoh <mame@tsg.ne.jp>
+Fri Jul 1 11:07:43 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * io.c (argf_each_line): pass args to each_line. [ruby-dev:34958]
+ * thread.c (do_select): fix memory leak.
+ Patch by Eric Wong. Thank you! [Bug #4953] [ruby-core:37702]
-Mon Jun 30 22:12:46 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Fri Jul 1 08:21:28 2011 Koichi Sasada <ko1@atdot.net>
- * gc.c (chain_finalized_object): should not delete from finalizer
- table until run.
+ * vm_insnhelper.c (vm_getivar): check vm state version
+ to invalidate inline cache (ivar index).
+ fixes Bug #4926.
- * gc.c (rb_gc_call_finalizer_at_exit): deferred_final_list may be
- empty first.
+ * vm_insnhelper.c (vm_setivar): ditto.
-Mon Jun 30 18:57:05 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Fri Jul 1 08:03:15 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * gc.c (gc_finalize_deferred): allow object allocation in finalizers.
+ * error.c, thread_pthread.c (WRITE_CONST): suppress warnings
+ `ignoring return value'.
- * gc.c (rb_gc_call_finalizer_at_exit): ditto.
+Fri Jul 1 06:41:36 2011 Koichi Sasada <ko1@atdot.net>
-Mon Jun 30 14:41:36 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+ * thread.c (rb_threadptr_check_signal): only wake up main thread.
- * gc.c (rb_newobj): prohibit call of rb_newobj() during gc when
- USE_VALUE_CACHE is not defined (normal case).
+ * thread.c (rb_threadptr_execute_interrupts_common): check signal
+ delivery if it is main thread.
+ fixes [ruby-dev:44005] [Ruby 1.9 - Bug #4950]
-Mon Jun 30 10:28:33 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * bootstraptest/test_fork.rb: add a test for above.
- * ext/syslog/syslog.c (syslog_write): syslog operations should be
- protected from $SAFE level 4. a patch from Keita Yamaguchi
- <keita.yamaguchi at gmail.com>.
+ * signal.c (rb_get_next_signal): skip if signal_buff is empty.
+ (check signal_buff.size first)
- * ext/syslog/syslog.c (mSyslog_close): ditto.
+ * vm_core.h: remove unused variable rb_thread_t::exec_signal.
- * ext/syslog/syslog.c (mSyslog_set_mask): ditto.
+ * thread.c (rb_thread_check_trap_pending): check
+ rb_signal_buff_size() because rb_thread_t::exec_signal
+ is no longer available.
-Mon Jun 30 03:01:35 2008 Yusuke Endoh <mame@tsg.ne.jp>
+Fri Jul 1 03:28:25 2011 Yukihiro Matsumoto <matz@ruby-lang.org>
- * test/net/http/test_http.rb (_test_request__file): specify encoding
+ * class.c (Init_class_hierarchy): should name BasicObject
explicitly.
- * test/net/http/utils.rb: ditto.
-
-Mon Jun 30 02:31:07 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * encoding.c (rb_utf8_encindex): defined.
-
- * include/ruby/encoding.h (rb_utf8_encindex): ditto.
-
-Mon Jun 30 02:14:34 2008 Koichi Sasada <ko1@atdot.net>
-
- * vm.c, vm_core.h,vm_core.h, vm_dump.c, iseq.c: rename class name
- VM -> RubyVM, and rename rb_cVM -> rb_cRubyVM.
- "VM" is too short name for class.
-
- * test/ruby/test_method.rb, test/ruby/test_settracefunc.rb: ditto.
-
- * include/ruby/ruby.h: rb_cRubyVM, rb_cEnv, rb_cISeq should not be
- exposed.
-
-Mon Jun 30 02:10:32 2008 Koichi Sasada <ko1@atdot.net>
-
- * process.c (Init_process): fix to avoid a warning.
-
-Mon Jun 30 01:52:05 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * test/ruby/test_parse.rb: remove tests for open_args.
-
-Sun Jun 29 23:01:54 2008 Tanaka Akira <akr@fsij.org>
-
- * string.c (rb_str_format_m): make tmp volatile to avoid possible GC
- problem.
-
-Sun Jun 29 18:01:30 2008 Kouhei Sutou <kou@cozmixng.org>
-
- * lib/rss/parser.rb, lib/rss/utils.rb: merge documents from ruby_1_8.
-
-Sun Jun 29 17:44:23 2008 Kouhei Sutou <kou@cozmixng.org>
-
- * lib/rss/parser.rb (RSS::ListenerMixin#known_class): define to
- work with ruby 1.8.x too.
-
-Sun Jun 29 17:41:42 2008 Kouhei Sutou <kou@cozmixng.org>
-
- * lib/rss/maker/base.rb (RSS::Maker::RSSBase#to_feed): raise
- exception not return nil if RSS::Maker.make can't get required
- information.
-
- * test/rss/rss-assertions.rb: follow the above change.
-
-Sun Jun 29 17:37:23 2008 Kouhei Sutou <kou@cozmixng.org>
-
- * lib/rss/maker/base.rb (RSS::Maker::RSSBase#make): require block.
-
- * test/rss/test_maker_{0.9,1.0,2.0}.rb: follow the above change.
-
-Sun Jun 29 17:33:34 2008 Kouhei Sutou <kou@cozmixng.org>
-
- * lib/rss/maker/base.rb, lib/rss/maker/itunes.rb: don't use
- instance_eval to initialize variables. (speed up)
-
-Sun Jun 29 17:31:15 2008 Kouhei Sutou <kou@cozmixng.org>
-
- * lib/rss/rss.rb, test/rss/test_version.rb (RSS::VERSION):
- 0.2.4 -> 0.2.5.
-
-Sun Jun 29 11:36:20 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * dir.rb: fix resource leak.
-
-Sun Jun 29 09:43:10 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/tmpdir.rb (@@systmpdir): prior LOCAL_APPDATA if possible, and
- should be clean. based on a patch from arton <artonx AT
- yahoo.co.jp> at [ruby-dev:35269]
-
-Sun Jun 29 07:53:08 2008 Masaki Suketa <masaki.suketa@nifty.ne.jp>
-
- * ext/win32ole/win32ole.c (date2time_str): fix the overflow in
- some situation. [ruby-bugs-20793]
-
-Sat Jun 28 21:25:08 2008 Tanaka Akira <akr@fsij.org>
-
- * include/ruby/ruby.h (struct RRegexp): new field usecnt. replace
- str and len by src.
-
- * gc.c (gc_mark_children): mark src field of regexp.
- (obj_free): don't free str field.
-
- * re.c (REG_BUSY): removed.
- (rb_reg_initialize): prohibit re-initialize regexp.
- (rb_reg_search): use usecnt to prevent freeing regexp currently
- using. this prevents SEGV by:
- r = /\A((a.)*(a.)*)*b/
- r =~ "ab" + "\xc2\xa1".force_encoding("euc-jp")
- t = Thread.new { r =~ "ab"*8 + "\xc2\xa1".force_encoding("utf-8")}
- sleep 0.2
- r =~ "ab"*8 + "\xc2\xa1".force_encoding("euc-jp")
-
-Sat Jun 28 21:15:43 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * include/ruby/intern.h (rb_str_new2, rb_tainted_str_new2,
- rb_usascii_str_new2): use inline versions only for constant
- literals.
-
-Sat Jun 28 13:12:06 2008 Tanaka Akira <akr@fsij.org>
-
- * test/rubygems/test_gem.rb (test_self_path_APPLE_GEM_HOME): don't use
- fixed /tmp/apple_gem_home directory.
-
-Sat Jun 28 08:40:18 2008 Masaki Suketa <masaki.suketa@nifty.ne.jp>
-
- * ext/win32ole/win32ole.c: check String encoding when
- converting String to VT_BSTR in OLE.
-
- * test/win32ole/test_win32ole.rb: ditto.
-
-Sat Jun 28 01:08:42 2008 Tanaka Akira <akr@fsij.org>
-
- * time.c (time_timespec): fix rounding negative float.
-
-Fri Jun 27 21:38:57 2008 Tanaka Akira <akr@fsij.org>
-
- * struct.c: __size__ removed. use the length of __members__ instead.
- (num_members): new function.
-
-Fri Jun 27 21:19:08 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * test/inlinetest.rb (InlineTest.in_progname): workaround for frozen
- $0. [ruby-dev:35261]
-
- * lib/test/unit/ui/console/testrunner.rb (TestRunner#finished): ditto.
-
-Fri Jun 27 17:45:17 2008 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
-
- * lib/erb.rb: adjust line number for magic comment.
-
- * test/erb/test_erb.rb: add tests for def_method.
-
-Fri Jun 27 14:29:07 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * parse.y (primary): empty not should call '!' on nil.
- cf [ruby-dev:35227]
-
-Fri Jun 27 14:25:52 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * vm.c (vm_eval_body): if thrown exception is frozen, reraise it to
- create a new instance.
-
-Fri Jun 27 13:29:26 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * include/ruby/intern.h (rb_str_new2, rb_tainted_str_new2,
- rb_usascii_str_new2): use with-length versions with strlen to
- optimize strlen, if optimized.
-
-Fri Jun 27 12:28:57 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/un.rb (mkmf): new command to create makefile.
-
-Fri Jun 27 11:06:05 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/un.rb (wait_writable): added help message.
-
-Fri Jun 27 06:52:54 2008 Koichi Sasada <ko1@atdot.net>
-
- * configure.in: need a ",".
-
- * process.c (rb_fork): check CANNOT_FORK_WITH_PTHREAD macro.
-
-Fri Jun 27 06:50:56 2008 Koichi Sasada <ko1@atdot.net>
-
- * vm_eval.c (vm_call_super): fix to call method_missing.
- [ruby-core:15719], [ruby-core:17340]
-
-Fri Jun 27 00:00:14 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ruby.c (set_arg0, ruby_prog_init): freeze $0. a patch from Keita
- Yamaguchi <keita.yamaguchi at gmail.com>.
-
-Thu Jun 26 23:58:29 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * string.c (rb_str_index_m, rb_str_rindex_m, rb_str_include): fix
- rdoc.
-
-Thu Jun 26 17:43:41 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * variable.c (rb_f_trace_var): should not be allowed at safe level 4.
- a patch from Keita Yamaguchi <keita.yamaguchi at gmail.com>.
-
-Thu Jun 26 11:04:30 2008 Eric Hodel <drbrain@segment7.net>
-
- * lib/rubygems: Update to RubyGems 1.2.0 r1824. Incorporates patch by
- Yusuke ENDOH [ruby-core:17353].
-
-Thu Jun 26 00:48:31 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * parse.y (primary): not operand might be empty. [ruby-dev:35227]
-
-Wed Jun 25 21:54:34 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * parse.y (primary): make functional-style not operator to act
- like function. see <http://d.hatena.ne.jp/ku-ma-me/20080624/p1>.
-
-Wed Jun 25 15:28:50 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * array.c (rb_ary_fill): not depend on unspecified behavior at integer
- overflow. reported by Vincenzo Iozzo <snagg AT openssl.it>.
-
-Wed Jun 25 13:42:44 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * lib/erb.rb (ERB::Compiler:Buffer#new): push magic comment first.
-
- * lib/erb.rb (ERB::Compiler#compile): fix for broken input.
-
-Wed Jun 25 12:10:01 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * lib/erb.rb (ERB::Compiler#compile): magic comment needs LF.
-
-Wed Jun 25 09:31:11 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * lib/erb.rb (ERB::Compiler#compile): output magic comment.
-
-Tue Jun 24 22:14:36 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * vm_eval.c (eval_string_with_cref): preserve parse_in_eval even if
- exception raised.
-
-Tue Jun 24 22:09:18 2008 Masaki Suketa <masaki.suketa@nifty.ne.jp>
-
- * ext/win32ole/win32ole.c(ole_invoke): fix memory leak.
- [ruby-bugs-20792]
-
-Tue Jun 24 17:20:39 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * configure.in (rb_cv_fork_with_pthread): check after check for
- pthread library, and define the macro when checked only.
-
-Tue Jun 24 17:04:39 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * ext/io/wait/extconf.rb: check sys/socket.h for cygwin.
-
-Tue Jun 24 16:51:51 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * io.c (io_reopen): remove cygwin handling because it seems to be for
- C's stdio.
- fixed [ruby-dev:35183]
-
-Tue Jun 24 11:12:33 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * include/ruby/win32.h, win32/win32.c (rb_w32_getppid): now support
- getppid() on win32 (but only Win2k or later).
-
- * process.c (get_ppid): remove win32 special logic.
-
-Tue Jun 24 09:40:47 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * ext/socket/socket.c (init_sock): socket is binmode on platforms
- which support binmode.
-
-Tue Jun 24 00:21:53 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * compile.c (iseq_build_from_ary): initialize arg_opts, a patch from
- Adam Strzelecki <ono at java.pl> in [ruby-core:17220].
-
-Tue Jun 24 00:10:53 2008 wanabe <s.wanabe@gmail.com>
-
- * compile.c (iseq_build_from_ary): fix expression to obtain
- iseq->local_size and iseq->local_table_size. [ruby-dev:35205]
-
-Mon Jun 23 11:31:41 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/mathn.rb (Rational::power2): removed incomplete method.
- see [ruby-dev:35195]. [ruby-core:17293]
-
-Sun Jun 22 14:16:28 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/readline/extconf.rb (have_readline_func): readline on Mac OS X
- needs headers to detect some functions.
-
-Sun Jun 22 09:51:14 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * object.c (rb_class_superclass): rdoc improvement, a patch from
- Gaston Ramos <ramos.gaston AT gmail.com> in [ruby-core:17371].
-
-Sun Jun 22 09:22:32 2008 URABE Shyouhei <shyouhei@ruby-lang.org>
-
- * README.EXT: translated README.EXT.ja
-
-Sun Jun 22 00:42:02 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * win32/win32.c (rb_w32_osid, rb_w32_osver, CreateChild): XP is
- is different from Vista about pipe handle inheritance.
- fixed [ruby-core:17367], reported by Lars Christensen <larsch at
- belunktum.dk>
-
-Sun Jun 22 00:38:45 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * README.EXT.ja: add note about mark and free.
-
-Sun Jun 22 00:01:36 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * io.c (rb_io_binmode_p, argf_binmode_p, Init_IO): new method
- IO#binmode? and ARGF.binmode? [ruby-dev:35148]
-
-Sat Jun 21 17:33:50 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * win32/win32.c (rb_w32_spawn): no longer support P_WAIT.
-
-Sat Jun 21 16:46:09 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * thread_win32.c (native_sleep): must block reentrance when accessing
- th->unblock.
- fixed [ruby-core:17341], reported by Bill Kelly <billk at cts.com>
-
-Sat Jun 21 16:29:02 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * parse.y (call_args2, open_args): removed.
-
- * parse.y (parser_yylex): unified warnings at space between method
- name and argument parenthesis. [ruby-dev:33943]
-
-Sat Jun 21 16:21:07 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * numeric.c (flo_round): get rid of overflow.
-
-Sat Jun 21 15:57:15 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/rdoc/parsers/parse_rb.rb (RDoc#collect_first_comment): skip
- magic comment.
-
-Sat Jun 21 15:54:55 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * configure.in: check if fork works with pthread.
-
-Sat Jun 21 15:31:09 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * tool/make-snapshot: ported to ruby.
-
- * tool/make-snapshot: fixed digests.
-
-Sat Jun 21 04:36:59 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * ext/bigdecimal/lib/bigdecimal/jacobian.rb (Jacobian::dfdxi):
- typo fixed (raize -> raise). [ruby-list:45101]
-
- * enumerator.c (enum_each_cons): typo in RDoc fixed.
-
-Sat Jun 21 00:45:34 2008 URABE Shyouhei <shyouhei@ruby-lang.org>
-
- * tool/make-snapshot: do not use sha256sum; use BASERUBY instead
-
- * common.mk (dist): use tool/make-snapshot instead
-
-Fri Jun 20 16:34:14 2008 Tanaka Akira <akr@fsij.org>
-
- * process.c (Init_process): Process::Status#to_int removed.
- (PST2INT): defined.
- (pst_to_s): use PST2INT.
- (pst_inspect): ditto.
- (pst_equal): ditto.
- (pst_bitand): ditto.
- (pst_rshift): ditto.
- (pst_wifstopped): ditto.
- (pst_wstopsig): ditto.
- (pst_wifsignaled): ditto.
- (pst_wtermsig): ditto.
- (pst_wifexited): ditto.
- (pst_wexitstatus): ditto.
- (pst_success_p): ditto.
- (pst_wcoredump): ditto.
- (rb_f_system): ditto.
-
-Fri Jun 20 15:40:02 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * array.c (rb_ary_store, rb_ary_splice): not depend on unspecified
- behavior at integer overflow.
-
- * string.c (str_buf_cat): ditto.
-
-Fri Jun 20 12:39:55 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * process.c (rb_detach_process): store detached process ID in the
- thread local storage. moved from lib/open3.rb.
-
-Fri Jun 20 11:57:46 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * string.c (rb_str_sub_bang): should preserve replacement points
- since they may be altered in the yielded block.
-
-Fri Jun 20 11:07:56 2008 Tanaka Akira <akr@fsij.org>
-
- * string.c (rb_memhash): randomize hash to avoid algorithmic
- complexity attacks.
- (rb_str_hash): use rb_memhash.
-
- * include/ruby/intern.h (rb_reset_random_seed): declared.
-
- * thread.c (rb_thread_atfork): call rb_reset_random_seed.
-
- * inits.c (rb_call_inits): call Init_RandomSeed at first.
-
- * random.c (seed_initialized): defined.
- (fill_random_seed): extracted from random_seed.
- (make_seed_value): extracted from random_seed.
- (rb_f_rand): initialize random seed at first.
- (initial_seed): defined.
- (Init_RandomSeed): defined.
- (Init_RandomSeed2): defined.
- (rb_reset_random_seed): defined.
- (Init_Random): call Init_RandomSeed2.
-
-Wed Jun 18 21:52:38 2008 URABE Shyouhei <shyouhei@ruby-lang.org>
-
- * array.c (ary_new, rb_ary_initialize, rb_ary_store,
- rb_ary_splice, rb_ary_times): integer overflows should be
- checked. based on patches from Drew Yao <ayao at apple.com>
- fixed CVE-2008-2726
-
- * string.c (rb_enc_cr_str_buf_cat): fixed unsafe use of alloca,
- which led memory corruption. based on a patch from Drew Yao
- <ayao at apple.com> fixed CVE-2008-2726
-
-Fri Jun 20 03:26:00 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * process.c (rb_f_fork): NetBSD 4.0 or later can fork.
-
-Fri Jun 20 03:19:39 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * test/testunit/collector/test_dir.rb: r15825 made it unnecessary to
- change String to Symbol.
-
- * test/testunit/collector/test_objectspace.rb: ditto.
-
-Fri Jun 20 03:14:31 2008 Eric Hodel <drbrain@segment7.net>
-
- * lib/rubygems*, test/rubygems/*: Update to RubyGems 1.1.1 r1784 (pre
- 1.2).
-
-Fri Jun 20 03:01:59 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * thread.c: try to remove false positive of deadlock detection (second
- trial).
-
-Fri Jun 20 02:16:43 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/mathn.rb (Rational::power2): typo fixed. [ruby-core:17293]
-
-Fri Jun 20 02:11:01 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * string.c (str_gsub): should preserve last successful match
- data. [ruby-dev:35182]
-
-Fri Jun 20 01:07:28 2008 Koichi Sasada <ko1@atdot.net>
-
- * KNOWNBUGS.rb, bootstraptest/pending.rb: move a bug (?) to pending.
-
-Fri Jun 20 00:40:08 2008 Koichi Sasada <ko1@atdot.net>
-
- * proc.c (proc_new): fix to return Proc object if block is already
- in heap. [ruby-core:15711]
-
- * bootstraptest/test_proc.rb: add a test.
-
-Fri Jun 20 00:18:04 2008 Koichi Sasada <ko1@atdot.net>
-
- * thread_win32.c (native_sleep): fix to decrement sleeper count.
-
-Thu Jun 19 23:48:45 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * test/net/http/test_http.rb: compare encodings of two strings before
- comparing themself, which suppress too big error output.
-
-Thu Jun 19 23:46:35 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * ext/json/ext/parser/parser.rl, ext/json/ext/parser/parser.c: JSON
- text SHALL be encoded in Unicode.
-
-Thu Jun 19 23:17:56 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * thread.c, thread_win32.c, vm_core.h: try to remove false positive of
- deadlock detection.
-
-Thu Jun 19 21:38:08 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/extmk.rb (extmake): check if compile before showing message.
-
-Thu Jun 19 21:35:32 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * tool/make-snapshot: supported multiple snapshots.
-
-Thu Jun 19 20:37:00 2008 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
-
- * lib/net/pop.rb (Net::POP3#set_all_uids): speed
- up. a patch from <m-sumi AT techfirm.co.jp> [ruby-list:45047]
-
-Thu Jun 19 17:44:15 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * ext/etc/etc.c (Init_etc): define constant aliases Etc::Passwd
- and Etc::Group. [ruby-dev:35150]
-
-Thu Jun 19 17:37:21 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * string.c (str_alloc): specify 'inline' modifier.
-
- * string.c (str_alloc): remove cSymbol hack that no longer
- necessary.
-
- * string.c (scan_once): avoid retrieving encoding info unless
- necessary.
-
-Thu Jun 19 17:19:14 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * string.c (rb_str_scan): String#scan should preserve last
- successful match data. [ruby-dev:35106]
-
-Thu Jun 19 16:49:36 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * missing/acosh.c (atanh): should set ERANGE to errno if parameter
- is the boundary case. fixed [ruby-dev:35155]
-
-Thu Jun 19 16:06:01 2008 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/lib/tkextlib/tile/treeview.rb: cannot configure tags.
-
-Thu Jun 19 11:48:33 2008 Koichi Sasada <ko1@atdot.net>
-
- * test/ruby/test_enumerator.rb: fix to skip "with_memo" test.
-
-Thu Jun 19 11:40:55 2008 Koichi Sasada <ko1@atdot.net>
-
- * vm_insnhelper.c (vm_throw): fix "return" process from "lambda".
-
- * bootstraptest/test_proc.rb: add a test.
-
- * bootstraptest/pending.rb: add a pending bug.
-
-Thu Jun 19 00:33:40 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * test/etc/test_etc.rb: avoid infinite loop. [ruby-dev:35158]
-
-Wed Jun 18 23:07:19 2008 URABE Shyouhei <shyouhei@ruby-lang.org>
-
- * gc.c (rb_newobj): prohibit call of rb_newobj() during gc.
- a patch from Sylvain Joyeux in [ruby-core:12099].
-
-Wed Jun 18 21:08:14 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ruby.c (verbose_setter, opt_W_getter): fixed prototypes.
-
-Wed Jun 18 19:20:00 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * ruby.c (opt_W_getter): use ruby_verbose directly instead of parameter
- because ruby_verbose is not a real variable, so the address of
- parameter is not collect.
-
-Wed Jun 18 18:31:03 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * win32/win32.c (errmap): add some pipe errors.
-
- * win32/win32.c (rb_w32_write): set errno when CRT's errno is EINVAL
- for pipe errors.
-
-Wed Jun 18 18:09:08 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * win32/win32.c (poll_child_status): set EINVAL to errno when
- GetExitCodeProcess() fails with ERROR_INVALID_HANDLE.
-
-Wed Jun 18 15:01:18 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * io.c (rb_open_file): fs_encoding and fname_encoding is
- rb_encoding *.
- fixed [ruby-dev:35151]
-
-Wed Jun 18 14:30:06 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * io.c (rb_open_file): not rb_enc_get_index but rb_enc_get.
-
-Wed Jun 18 13:49:58 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * include/ruby/win32.h (pipe): now pipe is textmode. although this
- change is experimental, it will be spec if no compatibility problem
- is reported.
-
-Wed Jun 18 12:05:30 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * marshal.c (w_object, marshal_dump, r_object0, marshal_load): search
- public methods only. [ruby-core:17283]
-
- * object.c (convert_type): ditto.
-
- * lib/singleton.rb (Singleton#_dump): conversion method should be
- public.
-
-Wed Jun 18 10:18:11 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/etc/etc.c (etc_passwd, etc_group): fixed rdoc. a patch from
- okkez <okkez000 AT gmail.com> in [ruby-dev:35141].
-
-Wed Jun 18 08:58:16 2008 Eric Hodel <drbrain@segment7.net>
-
- * lib/rubygems/*: Fix errors for 1.9.
-
- * gem_prelude.rb: Only remove methods from gem_prelude.rb when
- loading real RubyGems.
-
-Wed Jun 18 07:03:30 2008 Eric Hodel <drbrain@egment7.net>
-
- * lib/rubygems/*: Update to RubyGems r1778 (pre 1.2).
-
-Wed Jun 18 04:27:58 2008 Koichi Sasada <ko1@atdot.net>
-
- * KNOWNBUGS.rb, bootstraptest/pending.rb: move pending bug.
-
-Wed Jun 18 04:24:20 2008 Koichi Sasada <ko1@atdot.net>
-
- * vm.c, vm_insnhelper.c: fix escape process with "break" and "return"
- syntax in "lambda". [ ruby-Bugs-19304 ], [ruby-core:17164]
-
- * KNOWNBUGS.rb, bootstraptest/test_proc.rb: add/move solved test.
-
-Wed Jun 18 01:51:10 2008 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/lib/multi-tk.rb: cannot access class variable from
- singleton method.
-
-Wed Jun 18 00:03:33 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * dir.c (Init_Dir): dir_foreach() takes variable argument.
-
-Tue Jun 17 23:04:24 2008 James Edward Gray II <jeg2@ruby-lang.org>
-
- * lib/net/telnet.rb: Fixing Telnet#wairfor() which was broken by
- changes to the Kernel::Integer() method. [ruby-core:17272]
-
-Tue Jun 17 23:02:18 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ruby.c (opt_W_getter): made a hooked variable.
-
-Tue Jun 17 22:04:47 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * enc/euc_jp.c (property_name_to_ctype): core dumped when sizeof(int)
- differs from sizeof(long). [ruby-dev:35131]
-
- * enc/shift_jis.c (property_name_to_ctype): ditto.
-
- * enc/unicode.c (onigenc_unicode_property_name_to_ctype): ditto.
-
-Tue Jun 17 20:32:37 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * common.mk (miniruby$(EXEEXT)): $(PREP) isn't always same as
- miniruby, and tests, debug, etc have no meaning when
- cross-compiling.
-
-Tue Jun 17 18:39:11 2008 Ryan Davis <ryand-ruby@zenspider.com>
-
- * common.mk: fixed dependencies on miniruby.
-
-Tue Jun 17 18:11:01 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * include/ruby/win32.h (pipe): expand pipe buffer size.
-
-Tue Jun 17 17:07:35 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * win32/win32.c (CreateChild): no need to inherit handles here because
- spawn'ed child cannot detect that STDIN is closed.
-
-Tue Jun 17 06:32:55 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * dir.c (dir_data): add intenc and extenc.
-
- * dir.c (dir_s_alloc): ditto.
-
- * dir.c (dir_initialize): now accept internal_encoding and
- external_encoding.
-
- * dir.c (dir_s_open): changed for dir_initialize.
-
- * dir.c (dir_open_dir): ditto.
-
- * dir.c (dir_foreach): changed for dir_open_dir.
-
- * dir.c (dir_entries): changed for dir_open_dir.
-
- * dir.c (dir_enc_str): defined.
-
- * dir.c (dir_path): use dir_enc_str.
-
- * dir.c (dir_read): ditto.
-
- * dir.c (dir_each): ditto.
-
-Tue Jun 17 06:28:57 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * io.c (io_set_encoding): defined.
-
- * io.c (rb_open_file): convert path on Windows and Mac OS X.
-
- * io.c (open_key_args): use io_set_encoding and now accept
- internal_encoding and external_encoding.
-
-Tue Jun 17 06:26:28 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * encoding.c (rb_filesystem_encoding): defined.
-
- * include/ruby/encoding.h (rb_filesystem_encoding): added.
-
-Tue Jun 17 06:24:28 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * ext/syck/rubyext.c: add encoding header.
-
-Tue Jun 17 01:52:50 2008 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/tcltklib.c: SEGV when exit.
-
- * ext/tk/lib/tk.rb: add a check for safety to Tk.exit.
-
- * ext/tk/sample/irbtkw.rbw: freezes when receives SIGINT.
-
-Mon Jun 16 21:58:38 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/stringio/stringio.c (strio_each, strio_readlines): IO#each and
- IO#readlines do not affect $_. [ruby-core:17277]
-
-Mon Jun 16 18:52:47 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/thwait.rb (ThreadsWait): Exception2MessageMapper no longer has
- extend_to method. [ruby-core:17267]
-
-Mon Jun 16 14:46:25 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/e2mmap.rb (E2MM.def_e2message): typo.
-
-Mon Jun 16 09:43:27 2008 Akinori MUSHA <knu@iDaemons.org>
-
- * enumerator.c (enumerator_with_object, Init_Enumerator):
- Temporarily back out with_memo, for which we need a better name.
-
-Mon Jun 16 07:14:48 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/stringio/stringio.c (strio_readline, strio_each)
- (strio_readlines): set lastline. [ruby-core:17257]
-
-Mon Jun 16 01:49:39 2008 Koichi Sasada <ko1@atdot.net>
-
- * eval.c (rb_f_block_given_p): fix to skip class frame.
- [ruby-core:14813]
-
- * KNOWNBUGS.rb, bootstraptest/test_method.rb: move solved test.
-
-Mon Jun 16 01:48:08 2008 Koichi Sasada <ko1@atdot.net>
-
- * vm_dump.c (vm_stack_dump_raw): disable verbose debug output.
-
-Mon Jun 16 01:33:08 2008 Koichi Sasada <ko1@atdot.net>
-
- * vm_core.h, thread.c: rename global_interpreter_lock to
- global_vm_lock.
-
-Sun Jun 15 18:40:35 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * ext/syck/rubyext.c (yaml_org_handler): associate encoding.
-
- * ext/syck/rubyext.c (syck_genericresolver_node_import): ditto.
-
-Sun Jun 15 18:17:03 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * vm_core.h (rb_vm_t), vm.c (rb_vm_mark): moved preallocated special
- exceptions.
-
- * eval.c (Init_eval), gc.c (Init_GC), proc.c (Init_Proc): freeze
- preallocated special exceptions.
-
- * eval.c (rb_longjmp): duplicate the thrown exception to set backtrace
- if it was frozen.
-
- * gc.c (rb_memerror): raise nomem_error without backtrace if failed to
- make backtrace.
-
-Sat Jun 14 22:52:35 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/stringio/stringio.c (strio_sysread): should not raise at empty
- read. a patch from Arthur Schreiber at [ruby-core:17245].
-
-Sat Jun 14 16:55:46 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * file.c (file_expand_path): no need to expand root path which has no
- short file name. [ruby-dev:35095]
-
-Sat Jun 14 11:59:17 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * gc.h (STACK_UPPER): moved from gc.c
-
- * thread.c, thread_{pthread,win32}.c (ruby_init_stack,
- ruby_thread_init_stack): moved stack initialization from gc.c.
-
-Sat Jun 14 11:57:53 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * gc.h (STACK_UPPER): moved from gc.c
-
- * thread.c, thread_{pthread,win32}.c (ruby_init_stack,
- ruby_thread_init_stack): moved stack initialization from gc.c.
-
-Sat Jun 14 07:52:53 2008 Tanaka Akira <akr@fsij.org>
-
- * gc.c (ruby_initial_gc_stress): defined.
- (ruby_initial_gc_stress_ptr): defined.
-
- * debug.c (set_debug_option): use ruby_initial_gc_stress_ptr for
- gc_stress option.
-
-Sat Jun 14 00:09:19 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * gc.c (ruby_gc_stress): moved to rb_objspace_t.
-
- * gc.c (gc_stress_get, gc_stress_set): VM local attribute.
-
- * signal.c (sigsegv): ditto.
-
-Fri Jun 13 21:55:48 2008 Tadayoshi Funaba <tadf@dotrb.org>
-
- * rational.c (nurat_equal_p): Rational(0,x) and 0 are equivalent,
- anyway.
-
-Fri Jun 13 21:26:39 2008 Tadayoshi Funaba <tadf@dotrb.org>
-
- * complex.c (string_to_c, nucomp_s_convert): preserve the current
- backref.
-
- * rational.c (string_to_r, nurat_s_convert): ditto.
-
- * include/ruby/intern.h (rb_match_busy): added a declaration.
-
-Fri Jun 13 18:08:10 2008 Tanaka Akira <akr@fsij.org>
-
- * lib/time.rb (Time.xmlschema): don't accept decimal dot without
- fractional digits. fractional digits handling simplified.
-
-Fri Jun 13 17:20:40 2008 wanabe <s.wanabe@gmail.com>
-
- * complex.c (string_to_c_internal): save and restore backref.
- fixed [ruby-dev:34991]
-
-Fri Jun 13 17:06:20 2008 wanabe <s.wanabe@gmail.com>
-
- * rational.c (string_to_r_internal): save and restore backref.
- fixed [ruby-dev:34990]
-
-Fri Jun 13 14:41:26 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * README.EXT.ja: update about Fixnum. reported in
- <http://www.tmtm.org/ja/tdiary/?date=20080611#p01>
-
- * README.EXT.ja: describe about StringValueCStr().
-
- * README.EXT: ditto.
-
-Fri Jun 13 14:24:37 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * gc.c (rb_memerror): exit with EXIT_FAILURE instead of magic number.
-
- * gc.c (ruby_stack_check): STACK_LENGTH should be less than
- STACK_LEVEL_MAX.
-
-Fri Jun 13 12:55:37 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * enum.c (sort_by_i): use NODE_DOT2 instead of NODE_MEMO to avoid
- extra calls to is_pointer_to_heap() in GC.
-
- * enum.c (enum_zip): ditto.
-
-Fri Jun 13 00:41:58 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * test/ruby/test_thread.rb: add a test.
-
-Thu Jun 12 23:30:11 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * thread.c (mutex_unlock): fix cond_notified consistency.
-
-Thu Jun 12 22:19:45 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * thread_win32.c (native_sleep): fixed previous commit.
-
-Thu Jun 12 21:59:17 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * thread.c, vm_core.h, vm.c, thread_pthread.c, thread_win32.c: add
- deadlock detection. [ruby-dev:35044]
-
- * bootstraptest/test_thread.rb: add tests for above.
-
-Thu Jun 12 21:39:55 2008 Tadayoshi Funaba <tadf@dotrb.org>
-
- * complex.c: refactoring.
-
- * rational.c: ditto.
-
-Thu Jun 12 17:11:24 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * regint.h: undefine USE_CAPTURE_HISTORY which is mentioned as
- unsupported in the Onigiruma document.
-
-Thu Jun 12 13:36:54 2008 Tanaka Akira <akr@fsij.org>
-
- * include/ruby/ruby.h (rb_intern): use rb_intern2 with strlen for
- constant symbols to optimize strlen.
-
-Thu Jun 12 08:47:51 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * io.c (read_all): should use io_read_encoding(), not
- io_input_encoding().
-
- * io.c (rb_io_getline_1): reduce calling of io_read_encoding().
-
- * string.c (rb_str_scan): need not to restore $~ value, so avoid
- pinning match object.
-
-Thu Jun 12 02:49:40 2008 Yusuke Endoh <mame@tsg.ne.jp>
+ * variable.c (rb_const_defined_0): should not check for
+ superclasses as const_get.
- * ext/stringio/stringio.c (strio_init): rewind when reopened.
+Fri Jul 1 03:24:03 2011 Tadayoshi Funaba <tadf@dotrb.org>
-Thu Jun 12 02:43:27 2008 Yusuke Endoh <mame@tsg.ne.jp>
+ * ext/date/date_core.c: mathn is still alive (should die soon).
- * array.c (rb_ary_zip): ANSI style.
+Thu Jun 30 23:50:00 2011 Kenta Murata <mrkn@mrkn.jp>
-Thu Jun 12 02:25:54 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * misc/ruby-mode.el (ruby-indent-beg-re): Fix broken regular
+ expression. Fixes #4546
- * io.c (rb_io_reopen): clear read buffer.
+Thu Jun 30 23:43:30 2011 Martin Bosslet <Martin.Bosslet@googlemail.com>
-Thu Jun 12 00:56:20 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * ext/openssl/ossl.c/.h: Added ossl_x509_name_sk2ary.
+ * ext/openssl/ossl.c: Replaced ossl_x509_ary2k by generic macro to
+ simplify future conversions.
+ * ext/openssl/ossl_ssl.c: Implement SSLSocket#client_ca.
+ * test/openssl/test_ssl.rb: Add test for SSLSocket#client_ca.
+ Thanks to Ippei Obayashi for providing the patch!
+ [ Ruby 1.9 - Feature #4481 ] [ruby-core:35461]
- * ext/tk: check proper conditions. [ruby-dev:35047]
+Thu Jun 30 22:38:58 2011 Koichi Sasada <ko1@atdot.net>
-Wed Jun 11 23:33:13 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * benchmark/bm_vm2_defined_method.rb: added to measure performance of
+ bmethod (method defined by define_method()).
- * io.c (io_fread): bypass buffered read if reading buffer is empty.
+Thu Jun 30 22:17:04 2011 Koichi Sasada <ko1@atdot.net>
- * io.c (remain_size): do not add extra one byte.
+ * vm_insnhelper.c (vm_call_bmethod): fix to hook call/return event
+ for methods defined by define_method(). fixes Bug #4613.
-Wed Jun 11 12:15:17 2008 Tanaka Akira <akr@fsij.org>
+ * thread.c (call_trace_proc): Fix to skip if class is not given (0).
+ Note that ID and Class object are passed for call/return event
+ if the called method was defined by define_method().
+ If you are author of tracer/profiler/debugger, this may be an
+ important change. You should check passed class as zero or
+ non-zero instead of checking the event type.
- * bootstraptest/runner.rb (assert_normal_exit): hide stderr output
- when success.
+ * test/ruby/test_settracefunc.rb: add a test for above.
-Wed Jun 11 09:26:43 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+Thu Jun 30 21:18:35 2011 Yutaka Kanemoto <kanemoto@ruby-lang.org>
- * common.mk (encs): need to pass miniruby path for windows.
+ * configure.in: Add warnflags for XL/C on AIX during configure
+ to avoid [Bug #3971]. See [ruby-core:32859]
-Wed Jun 11 05:53:20 2008 Koichi Sasada <ko1@atdot.net>
+Thu Jun 30 21:16:04 2011 Tadayoshi Funaba <tadf@dotrb.org>
- * vm.c, eval_intern.h (PASS_PASSED_BLOCK):
- set a VM_FRAME_FLAG_PASSED flag to skip this frame when
- searching ruby-level-cfp.
+ * ext/date/date_core.c (m_ajd): refers a constant.
- * eval.c, eval_intern.h, proc.c: fix to check cfp. if there is
- no valid ruby-level-cfp, cause RuntimeError exception.
- [ruby-dev:34128]
+Thu Jun 30 20:54:25 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * vm_core.h, vm_evalbody.c, vm.c, vm_dump.c, vm_insnhelper.c,
- insns.def: rename FRAME_MAGIC_* to VM_FRAME_MAGIC_*.
+ * ext/io/console/io-console.gemspec: spin-off gem for 1.9.2.
- * KNOWNBUGS.rb, bootstraptest/test*.rb: move solved bugs.
+Thu Jun 30 20:36:23 2011 Tadayoshi Funaba <tadf@dotrb.org>
-Wed Jun 11 05:55:31 2008 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+ * ext/date/date_core.c: trivial changes.
- * ext/tk/tcltklib.c: SEGV when tcltk-stubs is enabled.
+Thu Jun 30 20:12:36 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * ext/tk/tcltklib.c: avoid error on a shared object.
+ * test/ruby/test_module.rb: tests for [Bug #3422] and [Bug #3423].
- * ext/tk/extconf.rb: support --with-tcltkversion
+Thu Jun 30 20:03:39 2011 Tadayoshi Funaba <tadf@dotrb.org>
- * ext/tk/README.tcltklib: add document about --with-tcltkversion
+ * ext/date/date_core.c: modified doc.
- * ext/tk/lib/tk.rb, ext/tk/lib/multi-tk.rb, ext/tk/lib/remote-tk.rb:
- not work on $SAFE==4
+Thu Jun 30 19:09:19 2011 Koichi Sasada <ko1@atdot.net>
- * ext/tk/lib/multi-tk.rb: Object#methods returns Symbols on Ruby1.9.
+ * thread_pthread.c (thread_timer): ignore unknown errno.
+ (we observed that select(2) was canceled by errno=514 on
+ boron == Linux/Xen environment)
- * ext/tk/lib/tk/timer.rb: add TkTimer#at_end(proc) to register the
- procedure which called at end of the timer.
+Thu Jun 30 17:33:25 2011 Koichi Sasada <ko1@atdot.net>
- * ext/tk/lib/tk.rb, ext/tk/lib/tk/itemfont.rb, ext/tk/lib/font.rb:
- support __IGNORE_UNKNOWN_CONFIGURE_OPTION__ about font options.
+ * ext/objspace/objspace.c (ObjectSpace.count_tdata_objects):
+ Fix rdoc. Fixes Bug #3892.
- * ext/tk/lib/*: treat __IGNORE_UNKNOWN_CONFIGURE_OPTION__
+ * ext/objspace/objspace.c (ObjectSpace.count_tdata_objects):
+ Change key type if the klass of a object is zero (internal object).
+ Read rdoc for details.
- * ext/tk/lib/tkextlib/iwidgets/scrolledcanvas.rb,
- ext/tk/lib/tkextlib/iwidgets/scrolledlistbox.rb,
- ext/tk/lib/tkextlib/iwidgets/scrolledtext.rb: bug fix.
+ * internal.h: export rb_objspace_data_type_name().
- * ext/tk/lib/tk/text.rb: typo. call a wrong method.
+Thu Jun 30 17:25:08 2011 Koichi Sasada <ko1@atdot.net>
- * ext/tk/lib/tk/itemconfig.rb: ditto.
+ * thread_pthread.c (ping_signal_thread_list, thread_timer):
+ fix to keep polling state if there are any ping-tasks.
- * ext/tk/lib/tk.rb, ext/tk/lib/tk/itemconfig.rb,
- ext/tk/lib/tk/canvas.rb: support alias names of option keys.
+Thu Jun 30 12:25:34 2011 Koichi Sasada <ko1@atdot.net>
- * ext/tk/lib/tk/grid.rb: lack of module-method definitions.
+ * thread_pthread.c (rb_thread_create_timer_thread): allocate
+ machine stack for the timer thread at least 12KB. FreeBSD 8.2
+ AMD64 causes machine stack overflow (SIGSEGV) only with
+ PTHREAD_STACK_MIN (maybe defined as 2KB).
- * ext/tk/lib/tk/pack.rb, ext/tk/lib/tk/grid.rb: increase supported
- parameter patterns of configure method.
+Thu Jun 30 09:36:37 2011 Eric Hodel <drbrain@segment7.net>
- * ext/tk/lib/tk.rb: add TkWindow#grid_anchor, grid_column, grid_row.
-
- * ext/tk/lib/tk/wm.rb: methods of Tk::Wm_for_General module cannot
- pass the given block to methods of Tk::Wm module.
-
- * ext/tk/lib/tk/wm.rb: Wm#overrideredirect overwrites argument to
- an invalid value.
-
- * ext/tk/lib/tk.rb: fix memory (object) leak bug.
-
- * ext/tk/tcltklib.c, ext/tk/tkutil/tkutil.c: fix memory leak.
-
- * ext/tk/sample/demos-jp/aniwave.rb, ext/tk/sample/demos-en/aniwave.rb:
- bug fix.
-
- * ext/tk/lib/tkextlib/blt/component.rb,
- ext/tk/lib/tkextlib/tile/tentry.rb,
- ext/tk/lib/tkextlib/tile/treeview.rb: ditto.
-
- * ext/tk/lib/tkextlib/tile/tpaned.rb: improve TPaned#add.
-
- * ext/tk/sample/demos-jp/widget, ext/tk/sample/demos-en/widget,
- ext/tk/sample/demos-jp/style.rb, ext/tk/sample/demos-en/style.rb,
- ext/tk/sample/demos-jp/bind.rb, ext/tk/sample/demos-en/bind.rb:
- bug fix.
-
- * ext/tk/sample/ttk_wrapper.rb: ditto.
-
- * ext/tk/sample/ttk_wrapper.rb: support "if __FILE__ == $0" idiom.
-
- * ext/tk/sample/tktextio.rb: add binding for 'Ctrl-u' at console mode.
-
- * ext/tk/lib/tkextlib/tile.rb, ext/tk/lib/tkextlib/tile/style.rb,
- ext/tk/sample/ttk_wrapper.rb: improve treating and control themes.
- add Tk::Tile.themes and Tk::Tile.set_theme(theme).
-
- * ext/tk/lib/tkextlib/tile.rb: lack of autoload definitions.
-
- * ext/tk/lib/tkextlib/tile/tnotebook.rb: cannot use kanji (not UTF-8)
- characters for headings.
-
- * ext/tk/lib/tkextlib/tkDND/shape.rb: wrong package name.
-
- * ext/tk/tkutil/tkutil.c: improve handling callback-subst-keys.
- Now, support longnam-keys (e.g. '%CTT' on tkdnd-2.0; however, still
- not support tkdnd-2.0 on tkextlib), and symbols of parameters (e.g.
- :widget=>'%W', :keycode=>'%k', '%x'=>:x, '%X'=>:root_x, and so on;
- those are attributes of event object). It means that Ruby/Tk accepts
- not only "widget.bind(ev, '%W', '%k', ...){|w, k, ...| ... }", but
- also "widget.bind(ev, :widget, :keycode, ...){|w, k, ...| ... }".
- It is potentially incompatible, when user passes symbols to the
- arguments of the callback block (the block receives the symbols as
- strings). I think that is very rare case (probably, used by Ruby/Tk
- experts only). When causes such trouble, please give strings instead
- of such symbol parameters (e.g. call Symbol#to_s method).
-
- * ext/tk/lib/tk/event.rb, ext/tk/lib/tk/validation.rb,
- ext/tk/lib/tkextlib/blt/treeview.rb,
- ext/tk/lib/tkextlib/winico/winico.rb: ditto.
-
- * ext/tk/tkutil/tkutil.c: strings are available on subst_tables on
- TkUtil::CallbackSubst class (it is useful on Ruby 1.9).
-
- * ext/tk/lib/tk/spinbox.rb, ext/tk/lib/tkextlib/iwidgets/hierarchy.rb,
- ext/tk/lib/tkextlib/iwidgets/spinner.rb,
- ext/tk/lib/tkextlib/iwidgets/entryfield.rb,
- ext/tk/lib/tkextlib/iwidgets/calendar.rb,
- ext/tk/lib/tkextlib/blt/dragdrop.rb,
- ext/tk/lib/tkextlib/tkDND/tkdnd.rb,
- ext/tk/lib/tkextlib/treectrl/tktreectrl.rb,
- ext/tk/lib/tkextlib/tktable/tktable.rb: disable code piece became
- unnecessary by reason of the changes of ext/tk/tkutil/tkutil.c.
-
- * ext/tk/lib/tk.rb, ext/tk/lib/multi-tk.rb: change strategy to define
- the constant WITH_ENCODING.
-
- * ext/tk/lib/tk.rb: fix bug on Tk::Encoding.tk_encoding_names.
-
-Wed Jun 11 03:40:37 2008 Akinori MUSHA <knu@iDaemons.org>
-
- * lib/find.rb (Find#find): Return an enumerator if no block is
- given.
-
-Wed Jun 11 01:28:12 2008 Koichi Sasada <ko1@atdot.net>
-
- * include/ruby/intern.h, proc.c: revert rb_proc_call() and
- create rb_proc_call_with_block() instead.
-
- * include/ruby/ruby.h, eval_jump.c, thread.c, vm_insnhelper.c:
- rb_blockptr should not be exposed.
-
-Tue Jun 10 21:07:19 2008 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
-
- * test/ruby/test_float.rb: add tests. [ruby-dev:35009]
-
-Tue Jun 10 20:55:57 2008 Tadayoshi Funaba <tadf@dotrb.org>
-
- * complex.c (nucomp_s_convert): need not to initialize optional
- argument for rb_scan_args().
-
-Tue Jun 10 20:13:56 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/extmk.rb: negate default of --without-ext if --with-ext is
- given.
-
- * ext/extmk.rb: negate default of --without-ext.
-
-Tue Jun 10 17:43:35 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * array.c (rb_ary_shuffle_bang): update RDoc. [ruby-dev:35034]
-
-Tue Jun 10 17:30:19 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * include/ruby/intern.h (rb_obj_instance_exec, rb_mod_module_exec):
- added prototypes.
-
-Tue Jun 10 17:00:29 2008 wanabe <s.wanabe@gmail.com>
-
- * util.c (ruby_strtod): ruby_strtod don't allow a trailing
- decimal point like "7.". [ruby-dev:34835] [ruby-dev:35009]
-
-Tue Jun 10 13:48:38 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * rational.c (nurat_s_convert): need not to initialize optional
- argument for rb_scan_args().
-
-Tue Jun 10 12:58:07 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/io/wait/wait.c (FIONREAD_POSSIBLE_P): suppress warnings.
-
-Tue Jun 10 12:43:19 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * include/ruby/ruby.h (CONST_ID_CACHE): fixed statement expression.
-
-Tue Jun 10 11:25:15 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ruby.c (rb_argv0): revised for ext/tk.
-
- * include/ruby/encoding.h: not to use varargs.h since requiring C89.
-
-Tue Jun 10 00:50:51 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * include/ruby/ruby.h, vm_core.h: add a type rb_blockptr.
-
- * vm_insnhelper.c (vm_yield_with_cfunc): vm_yield_with_cfunc receives
- blockptr and passes it to iterating block.
-
- * proc.c (rb_proc_call), include/ruby/intern.h: rb_proc_call receives
- blockptr. "rb_proc_call(self, args, blockptr)" in C corresponds to
- "self.call(*args, &block)" in Ruby.
-
- * proc.c (proc_call): pass blockptr to block that is written in C.
-
- * proc.c (curry): receive blockptr and pass it to original proc.
- [ruby-core:15551]
-
- * vm.c (invoke_block_from_c): fix for change of vm_yield_with_cfunc.
-
- * thread.c (call_trace_proc), eval_jump.c (rb_call_end_proc): fix for
- change of rb_proc_call.
-
-Tue Jun 10 00:10:49 2008 Tanaka Akira <akr@fsij.org>
-
- * common.mk (test-knownbug): give $(OPTS) for bootstraptest/runner.rb.
-
-Mon Jun 9 23:10:50 2008 Tanaka Akira <akr@fsij.org>
-
- * eval.c (Init_stack): don't declare. it is a macro now.
-
-Mon Jun 9 22:46:47 2008 wanabe <s.wanabe@gmail.com>
-
- * compile.c : treat []&&= in virtually the same way as []||=.
- [ruby-dev:34679]
-
-Mon Jun 9 21:17:26 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * enc/depend (clean): remove build directories.
-
- * test_knownbug.rb -> KNOWNBUGS.rb: renamed.
-
- * common.mk: apply above change.
-
-Mon Jun 9 21:14:26 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/mkmf.rb (configuration): set flags.
-
-Mon Jun 9 21:09:02 2008 Koichi Sasada <ko1@atdot.net>
-
- * bootstraptest/test_knownbug.rb -> ./test_knownbug.rb: moved.
-
- * common.mk: add a rule "test-knownbug".
-
-Mon Jun 9 21:00:32 2008 Tadayoshi Funaba <tadf@dotrb.org>
-
- * complex.c (nucomp_s_convert): can accept Complex('i').
- [ruby-dev:34991]
-
-Mon Jun 9 18:25:30 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * include/ruby/ruby.h (CONST_ID): constant ID cache for non-gcc.
-
- * *.c: no cache in init functions.
-
-Mon Jun 9 17:56:30 2008 Akinori MUSHA <knu@iDaemons.org>
-
- * lib/set.rb (Set#delete_if): Call to_a.
- (SortedSet#delete_if, TC_SortedSet#test_sortedset): Use super to
- yield elements in sorted order; [ruby-core:17144] by Arthur
- Schreiber.
- (SortedSet#each, SortedSet#each, TC_Set#test_each)
- (TC_SortedSet#test_sortedset): Return self; [ruby-dev:35002] by
- Arthur Schreiber.
-
-Mon Jun 9 17:47:09 2008 Tanaka Akira <akr@fsij.org>
-
- * io.c (fptr_finalize): close IO object if fd is already closed.
- (rb_p): call rb_io_write just once.
-
-Mon Jun 9 15:37:38 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * ruby.c (require_libraries): req_list may be NULL. [ruby-dev:35008]
-
-Mon Jun 9 14:18:01 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * vm_core.h (struct rb_vm_struct): moved src_encoding_index,
- ruby_debug, ruby_verbose, and rb_progname.
-
- * ruby.c (rb_argv0): no longer used.
-
- * ruby.c (struct cmdline_options): moved setids and req_list, and the
- latter is now an array, to prevent memory leak.
-
- * ruby.c (cmdline_options_init): added.
-
- * ruby.c (add_modules, require_libraries, init_ids, forbid_setid): use
- struct cmdline_options.
-
- * vm.c (vm_init2): initialize src_encoding_index.
-
- * vm.c: getters/setters for ruby_{debug,verbose}.
-
-Mon Jun 9 09:54:13 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * include/ruby/intern.h (Init_stack): make to call ruby_init_stack.
-
-Mon Jun 9 08:12:40 2008 wanabe <s.wanabe@gmail.com>
-
- * vm_insnhelper.c, vm.c, proc.c : revert r17021. [ruby-dev:34997]
-
-Mon Jun 9 03:12:23 2008 Koichi Sasada <ko1@atdot.net>
-
- * bootstraptest/pending.rb: move/remove solved issues.
-
- * bootstraptest/test_class.rb: ditto.
-
-Mon Jun 9 02:32:58 2008 Akinori MUSHA <knu@iDaemons.org>
-
- * ext/zlib/zlib.c (rb_deflate_init_copy): Copy buffers as well.
- [ruby-list:45018]
-
-Sun Jun 8 22:22:20 2008 wanabe <s.wanabe@gmail.com>
-
- * vm_insnhelper.c, vm.c, proc.c (proc_call): allow call method with
- block that both is written in C. [ruby-dev:34273] [ruby-core:15551]
-
- * proc.c (curry): use proc_call instead of rb_proc_call.
- [ruby-dev:34273] [ruby-core:15551]
-
-Sun Jun 8 21:50:27 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * test/zlib/test_zlib.rb: add tests to achieve over 90% test coverage
- of zlib.
-
-Sun Jun 8 20:12:47 2008 wanabe <s.wanabe@gmail.com>
-
- * vm_insnhelper.c (vm_throw): regard break as return in lambda.
- [ruby-dev:34646]
-
-Sun Jun 8 19:17:59 2008 Koichi Sasada <ko1@atdot.net>
-
- * gc.c: add a build option "CALC_EXACT_MALLOC_SIZE".
- This option enables to calculate exact size of current
- allocated size by malloc(). You can access these information
- with GC.malloc_allocated_size and GC.malloc_allocations.
- This option consume additional memory as a header of each memory
- object. This option also helps to find out xmalloc()/xfree()
- consistency. If you get trouble with this option, some extension
- using "free()" instead of "xfree()".
- This options is disabled by default.
-
-Sun Jun 8 18:15:38 2008 Koichi Sasada <ko1@atdot.net>
-
- * array.c, bignum.c, cont.c, dir.c, dln.c, encoding.c, enumerator.c,
- enumerator.c (enumerator_allocate), eval_jump.c, file.c, hash.c,
- io.c, load.c, pack.c, proc.c, random.c, re.c, ruby.c, st.c,
- string.c, thread.c, thread_pthread.c, time.c, util.c, variable.c,
- vm.c, gc.c:
- allocated memory objects by xmalloc (ruby_xmalloc) should be
- freed by xfree (ruby_xfree).
-
- * ext/curses/curses.c, ext/dbm/dbm.c, ext/digest/digest.c,
- ext/gdbm/gdbm.c, ext/json/ext/parser/parser.c,
- ext/json/ext/parser/unicode.c, ext/openssl/ossl_cipher.c,
- ext/openssl/ossl_hmac.c, ext/openssl/ossl_pkey_ec.c,
- ext/sdbm/init.c, ext/strscan/strscan.c, ext/zlib/zlib.c:
- ditto.
-
-Sun Jun 8 01:15:11 2008 Tanaka Akira <akr@fsij.org>
-
- * hash.c (hash_i): make Hash#hash order insensitive.
- (rb_hash_dup): use DUPSETUP.
-
-Sat Jun 7 23:47:35 2008 Akinori MUSHA <knu@iDaemons.org>
-
- * ext/zlib/zlib.c (rb_deflate_initialize, Init_zlib): Fix up
- initialize_copy; [ruby-list:45016].
-
-Sat Jun 7 22:15:02 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * configure.in (VENDOR_DIR): use LIBDIR instead of PREFIX as well as
- SITE_DIR. a patch from Richard Brown <rbrown AT exherbo.org> in
- [ruby-core:17129].
-
-Sat Jun 7 21:37:58 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * io.c (rb_f_open), re.c (rb_reg_search), transcode.c (str_transcode):
- suppress warnings.
-
- * util.c (quorem, rv_alloc, nrv_alloc): only used in dtoa().
-
-Sat Jun 7 16:06:14 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * configure.in (CFLAGS, CXXFLAGS): append default flags.
-
-Sat Jun 7 01:23:59 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * io.c (rb_open_file, rb_io_s_sysopen): fmode should be unsigned int.
- fixed [ruby-dev:34979]
-
-Fri Jun 6 23:46:19 2008 Koichi Sasada <ko1@atdot.net>
-
- * vm_insnhelper.c (vm_callee_setup_arg): check simple flag before
- calling setup_arg function(). this change reduce function call.
-
-Fri Jun 6 21:51:46 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * win32/Makefile.sub (COMMON_HEADERS): include ws2tcpip.h.
-
- * ext/socket/addrinfo.h (addrinfo, getaddrinfo, getnameinfo,
- freehostent, freeaddrinfo): undef before define because these are
- macros in some versions of Windows SDK.
-
- merged from ruby_1_8.
-
-Fri Jun 6 18:25:43 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * test/iconv/utils.rb (default_test): override not to croak.
-
-Fri Jun 6 16:41:45 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * include/ruby/win32.h: include ws2tcpip.h. fixed [ruby-Bugs-20528]
-
-Fri Jun 6 15:05:02 2008 Tanaka Akira <akr@fsij.org>
-
- * gc.c (count_objects): clear hash after counting objects.
-
-Fri Jun 6 12:43:41 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * test/ruby/test_dir.rb (TestDir::test_glob): glob file names not sorted.
-
-Fri Jun 6 00:05:33 2008 Tanaka Akira <akr@fsij.org>
-
- * lib/time.rb (Time.xmlschema): don't use float. fix
- http://rubyforge.org/tracker/index.php?func=detail&group_id=426&atid=1698&aid=20504
-
-Thu Jun 5 23:56:18 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * test/ruby/test_gc.rb: add tests to achieve over 90% test coverage of
- gc.c.
-
- * test/ruby/test_objectspace.rb: ditto.
-
- * test/ruby/test_marshal.rb: ditto.
-
-Thu Jun 5 23:40:08 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * gc.c (rb_objspace_alloc): this function is needed only when
- ENABLE_VM_OBJSPACE macro is defined.
-
- * vm.c: ditto.
-
-Thu Jun 5 23:31:21 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * test/stringio/test_stringio.rb: add tests to achieve over 95% test
- coverage of stringio.
-
- * test/strscan/test_stringscanner.rb: ditto for strscan.
-
-Thu Jun 5 23:25:34 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * eval.c (ruby_finalize_0): clear trace_func after executing END
- procs.
-
- * thread.c: fix typo.
-
-Thu Jun 5 22:50:50 2008 Tanaka Akira <akr@fsij.org>
-
- * gc.c (os_obj_of): heaps may be modified in yield.
-
-Thu Jun 5 21:46:50 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * st.c (st_reverse_foreach): comment out unused function.
-
- * util.c (dtoa): ditto.
-
-Thu Jun 5 20:30:46 2008 Akinori MUSHA <knu@iDaemons.org>
-
- * ext/openssl/ossl_ssl_session.c (ossl_ssl_session_initialize):
- Add a null check for ssl; submitted by akira yamada
- in [ruby-dev:34950].
-
- * ext/openssl/ossl_ssl.c (Init_ossl_ssl): Define OP_NO_TICKET if
- SSL_OP_NO_TICKET is present; submitted by akira yamada
- in [ruby-dev:34944].
-
- * test/openssl/test_ssl.rb (OpenSSL#test_server_session): Add a
- workaround for the case where OpenSSL is configured with
- --enable-tlsext; submitted by akira yamada in [ruby-dev:34944].
-
-Thu Jun 5 20:24:15 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * thread.c (thread_set_trace_func_m): fix check for proc argument.
-
-Thu Jun 5 20:17:29 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * lib/rexml/document.rb (REXML::Document:write): leaky modification
- trans -> transitive. [ruby-dev:32040], r13686
-
- * lib/rexml/text.rb (Text.check): fix check for illegal character.
-
-Thu Jun 5 14:03:44 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/iconv/iconv.c (iconv_create): find encoding without options.
-
-Thu Jun 5 07:48:32 2008 Koichi Sasada <ko1@atdot.net>
-
- * string.c (hash): should be "static".
-
-Thu Jun 5 01:47:18 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * test/ruby/test_transcode.rb: add tests for iso-2022-jp.
-
-Thu Jun 5 01:27:42 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * test/ruby/test_process.rb: add tests.
-
-Wed Jun 4 23:10:08 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * ext/zlib/zlib.c (rb_gzfile_set_mtime): fix typo.
-
-Wed Jun 4 18:53:39 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * object.c (rb_obj_alloc): RDoc updated. a patch from Gaston
- Ramos <ramos.gaston at gmail.com> in [ruby-core:17073].
-
-Wed Jun 4 18:36:11 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/rdoc.rb: massive spelling correction patch from Evan Farrar
- <evanfarrar at gmail.com> in [ruby-doc:1382] applied.
-
-Wed Jun 4 17:52:18 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/iconv/iconv.c (iconv_iconv): fix for length argument and now
- allows range. [ruby-core:17092]
-
-Wed Jun 4 15:45:41 2008 Akinori MUSHA <knu@iDaemons.org>
-
- * enumerator.c (enumerator_with_index, enumerator_with_memo): Fix
- grammo in rdoc.
-
-Wed Jun 4 13:06:58 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * configure.in (CFLAGS, CXXFLAGS): include additional flags to
- CFLAGS and CXXFLAGS while configuration.
-
-Tue Jun 3 23:06:35 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * ext/strscan/strscan.c (strscan_scan_full, strscan_search_full): fix
- document.
-
-Tue Jun 3 22:37:26 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * ext/strscan/strscan.c (strscan_exist_p): fix document.
-
-Tue Jun 3 22:33:29 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * test/ruby/test_dir.rb: add tests to achieve over 90% test coverage
- of dir.c.
-
- * test/ruby/test_encoding.rb: add tests for dummy?, name_list and
- aliases.
-
- * test/ruby/test_marshal.rb: add some tests.
-
-Tue Jun 3 22:25:51 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * test/etc/test_etc.rb: new tests for etc.
-
-Tue Jun 3 19:35:02 2008 Akinori MUSHA <knu@iDaemons.org>
-
- * enumerator.c (enumerator_with_memo): New method: with_memo().
-
-Tue Jun 3 20:04:03 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * win32/Makefile.sub (miniruby$(EXEEXT)): miniruby cannot be
- written by miniruby itself.
-
-Tue Jun 3 19:33:22 2008 Akinori MUSHA <knu@iDaemons.org>
-
- * enumerator.c (enumerator_init_copy): Take care of
- initialize_copy as well as initialize.
-
-Tue Jun 3 16:06:09 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * file.c (file_expand_path): fix for non-existent files and SFN of
- symlinks. [ruby-talk:303736]
-
-Tue Jun 3 15:12:01 2008 Akinori MUSHA <knu@iDaemons.org>
-
- * lib/set.rb (Set#classify): Back out the `group_by' alias.
- Better think twice.
-
-Tue Jun 3 15:00:22 2008 Akinori MUSHA <knu@iDaemons.org>
-
- * lib/set.rb (Set#collect, Set#select): Back out. I thought it
- was consistent but turned out to be wrong.
-
-Tue Jun 3 13:41:08 2008 Akinori MUSHA <knu@iDaemons.org>
-
- * lib/set.rb (Set#collect, Set#select): Override Enumerable
- methods and make them return a set. [ruby-core:17055]
- (Set#delete_if, Set#collect!, Set#reject!, Set#classify)
- (Set#divide, Set#delete_if): Return an enumerator if no block is
- given.
- (Set#classify): Define an alias `group_by' to override that of
- Enumerable.
-
-Tue Jun 3 13:35:40 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * process.c (run_exec_pgroup): C99 ism.
-
-Tue Jun 3 12:51:57 2008 Akinori MUSHA <knu@iDaemons.org>
-
- * enumerator.c (enumerator_allocate, enumerator_ptr): Properly
- detect if the object is initialized and raise error when
- appropriate.
- (enumerator_initialize): Fix a typo in rdoc. [ruby-core:17052]
-
-Tue Jun 3 01:21:51 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * test/ruby/test_method.rb: add a test.
-
-Tue Jun 3 00:26:48 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * marshal.c (w_object): add a check for modification of array during
- its dump.
-
-Mon Jun 2 22:27:57 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * enc/iso_8859_5.c: Large omicron should lowercase to small omicron.
-
- * test/ruby/test_big5.rb, test/ruby/test_cp949.rb,
- test/ruby/test_euc_jp.rb, test/ruby/test_euc_kr.rb,
- test/ruby/test_euc_tw.rb, test/ruby/test_gb18030.rb,
- test/ruby/test_gbk.rb, test/ruby/test_iso_8859.rb,
- test/ruby/test_koi8.rb, test/ruby/test_shift_jis.rb,
- test/ruby/test_windows_1251.rb: new tests for encoding.
-
- * test/ruby/test_utf16.rb, test/ruby/test_utf32.rb,
- test/ruby/test_regexp.rb: add tests.
-
-Mon Jun 2 21:56:47 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * test/ruby/test_file.rb: add tests for uninitialized object.
-
- * test/ruby/test_class.rb: ditto.
-
- * test/ruby/test_thread.rb: ditto.
-
-Mon Jun 2 21:44:15 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * re.c: fix SEGV by Regexp.allocate.names, Match.allocate.names, etc.
-
- * test/ruby/test_regexp.rb: add tests for above.
-
- * io.c: fix SEGV by IO.allocate.print, etc.
-
- * test/ruby/test_io.rb: add tests for above.
-
-Mon Jun 2 19:17:47 2008 Tanaka Akira <akr@fsij.org>
-
- * test/ruby/test_argf.rb (teardown): remove renamed temporary files.
-
-Mon Jun 2 18:51:15 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/un.rb (wait_writable): wait until target files can be
- written actually.
-
- * win32/Makefile.sub (LDSHARED_0, LINK_SO): get rid of failure of
- mt.exe.
-
-Mon Jun 2 16:26:17 2008 Akinori MUSHA <knu@iDaemons.org>
-
- * lib/delegate.rb (Delegator::MethodDelegation#respond_to):
- respond_to? should now take optional second argument; submitted
- by Jeremy Kemper <jeremy at bitsweat.net> in [ruby-core:17045].
-
-Mon Jun 2 16:14:18 2008 Akinori MUSHA <knu@iDaemons.org>
-
- * lib/erb.rb (ERB::Compiler::TrimScanner#scan_line): Oops. This
- change did not apply to trunk. Backed out.
-
-Mon Jun 2 16:08:24 2008 Akinori MUSHA <knu@iDaemons.org>
-
- * lib/erb.rb (ERB::Compiler::TrimScanner#scan_line): Fix a bug
- where tokens are not yielded one by one.
-
- * test/erb/test_erb.rb (TestERBCore#_test_01)
- (TestERBCore#test_02_safe_04): The expected value should come
- first for assert_equal().
-
-Mon Jun 2 13:06:38 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * mkconfig.rb: hide build path from rbconfig.rb.
-
-Mon Jun 2 08:46:52 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * util.c (ruby_strtod, dtoa): initialize more variables for error
- handling.
-
-Mon Jun 2 04:55:05 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * suppress warnings on cygwin, mingw and mswin.
-
-Mon Jun 2 04:35:32 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * enc/gb18030.c (gb18030_code_to_mbc): add 0x80000000
- for 4bytes character.
-
-Mon Jun 2 03:52:04 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ruby.c (set_arg0): reverted used variable definition.
-
-Mon Jun 2 03:23:25 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * enc/gb18030.c (gb18030_mbc_to_code): mask by 0x7FFFFFFF
- because OnigCodePoint will be used as 32bit signed int.
- Masking by 0x7FFFFFFF is ok on GB18030;
- Minimum 4bytes character is 0x81308130.
-
-Sun Jun 1 22:29:35 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * rational.c (string_to_r_internal): use rb_isdigit.
-
- * marshal.c (long_toobig): use %zd.
-
- * ruby.c (set_arg0): move unused variable definition.
-
-Sun Jun 1 12:18:12 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * insns.def (DEFINE_INSN): subtract of pointers is ptrdiff_t.
- this is not int on 64bit system.
-
- * vm_dump.c (control_frame_dump): ditto.
-
- * vm_dump.c (stack_dump_each): ditto.
-
- * vm_dump.c (debug_print_register): ditto.
-
- * vm_dump.c (debug_print_pre): ditto.
-
- * transcode.c (str_transcode): ditto.
-
-Sun Jun 1 10:32:18 2008 Tanaka Akira <akr@fsij.org>
-
- * test/ruby/envutil.rb (assert_normal_exit): show coredump status.
-
-Sat May 31 23:33:34 2008 Akinori MUSHA <knu@iDaemons.org>
-
- * README, README.ja: Add a note about default C flags.
-
-Sat May 31 23:02:00 2008 Tanaka Akira <akr@fsij.org>
-
- * gc.c (count_objects): clear given hash.
-
-Sat May 31 20:28:10 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * test/ruby/test_regexp.rb: add tests.
-
-Sat May 31 19:11:39 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * enc/utf_16{be,le}.c (utf16{be,le}_code_to_mbc):
- fix codepoint to bytes.
-
-Sat May 31 18:28:17 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * suppress warnings with -Wwrite-string.
-
-Sat May 31 18:26:33 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * array.c (rb_ary_delete_if): should return enumerator if no block
- is given. [ruby-dev:34901]
-
-Sat May 31 15:58:08 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * Makefile.in, configure.in (warnflags): defaulted to -Wall
- -Wno-parentheses with gcc. [ruby-dev:34810]
-
-Sat May 31 15:17:36 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * include/ruby/mvm.h: new header file for MVM, and moved rb_vm_t and
- rb_thread_t from vm_core.h.
-
-Sat May 31 12:02:23 2008 Tanaka Akira <akr@fsij.org>
-
- * test/ruby/envutil.rb (assert_normal_exit): show pid when fail.
-
-Fri May 30 23:55:56 2008 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
-
- * test/ruby/test_rubyoptions.rb: add a test of RUBY_DESCRIPTION.
-
-Fri May 30 22:47:17 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * test/ruby/test_regexp.rb: add tests.
-
-Fri May 30 22:40:53 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * test/ruby/test_signal.rb: add tests to achieve over 80% test
- coverage of signal.c.
-
-Fri May 30 22:28:03 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * signal.c (esignal_signo): fix SignalException#signo which returned
- nil absolutely.
-
- * signal.c (esignal_init): always prepend "SIG" to a string that is
- returned by SignalException#signm.
-
-Fri May 30 22:17:39 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * test/ruby/test_argf.rb: rename a conflicting method name.
-
- * test/ruby/test_string.rb: ditto.
-
- * test/ruby/test_io.rb: ditto.
-
-Fri May 30 22:14:37 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * compile.c (defined_expr): fix SEGV by defined?([1]).
-
-Fri May 30 12:18:43 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * common.mk (prelude.c): simply depends on PREP. [ruby-dev:34877]
-
- * enc/make_encdb.rb, enc/trans/make_transdb.rb: ditto.
-
-Fri May 30 10:55:42 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * vm_core.h (struct rb_unblock_callback), thread.c
- (set_unblock_function), thread_{pthread,win32}.c (native_sleep):
- extracted from struct rb_thread_struct.
-
- * thread.c (reset_unblock_function): not check interrupts at leaving
- blocking region. [ruby-dev:34874]
-
-Fri May 30 06:09:31 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * enc/utf_8.c: add UTF8-MAC (UTF-8-MAC).
-
-Fri May 30 04:17:13 2008 Akinori MUSHA <knu@iDaemons.org>
-
- * enum.c (enum_count, count_all_i, Init_Enumerable),
- array.c (rb_ary_count): If no argument or block is given, count
- the number of all elements.
-
-Fri May 30 03:12:18 2008 Akinori MUSHA <knu@iDaemons.org>
-
- * ext/openssl/ossl_bn.c (ossl_bn_s_rand, ossl_bn_s_pseudo_rand):
- Int should be enough here.
-
-Fri May 30 02:35:00 2008 Akinori MUSHA <knu@iDaemons.org>
-
- * ext/openssl/ossl_bn.c (ossl_bn_s_rand, ossl_bn_s_pseudo_rand),
- ext/openssl/ossl_pkey_dh.c (ossl_dh_s_generate)
- (ossl_dh_initialize),
- ext/openssl/ossl_pkey_dsa.c (ossl_dsa_s_generate),
- ext/openssl/ossl_rand.c (ossl_rand_bytes)
- (ossl_rand_pseudo_bytes, ossl_rand_egd_bytes),
- ext/openssl/ossl_x509store.c (ossl_x509stctx_set_error): Do not
- use FIX2INT() without checking the value type. Use NUM2INT()
- instead; found by akr in [ruby-dev:34890].
-
-Fri May 30 02:08:20 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * signal.c (esignal_init): handle a non-integer argument correctly,
- allowing SignalException.new(:INT).
-
-Fri May 30 00:59:47 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * test/ruby/test_regexp.rb: add tests.
-
-Thu May 29 22:51:05 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * test/ruby/test_require.rb: add a test for load with wrap flag, to
- achieve 100% test coverage of eval_jump.c.
-
-Thu May 29 22:47:53 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * test/ruby/test_argf.rb: new tests for ARGF, to achieve over 85% test
- coverage of file.c.
-
- * test/ruby/test_io.rb: add tests.
-
-Thu May 29 22:41:48 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * io.c (argf_readchar): raise EOFError, synchronizing IO#readchar.
-
-Thu May 29 22:29:39 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * io.c (argf_external_encoding, argf_internal_encoding): fix SEGV by
- ARGF.external_encoding.
-
-Thu May 29 17:52:31 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/zlib/extconf.rb: search zlib1, and regard mswin32 later than VC6
- as WIN32. [ruby-core:16984]
-
-Wed May 28 18:05:28 2008 Akinori MUSHA <knu@iDaemons.org>
-
- * array.c (rb_ary_nitems, Init_Array): Axe Array#nitems().
- cf. [ruby-dev:34676]-[ruby-dev:34713]
-
-Wed May 28 17:50:32 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * win32/mkexports.rb (Exports#objdump, Exports#each_line): extracted.
-
-Wed May 28 17:41:43 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * Makefile.in (MKPREP): appended $(RBCONFIG).
-
- * common.mk (enc.mk, prelude.c): not depend on $(RBCONFIG) on mswin32
- to get of compiling twice each time.
-
- * win32/Makefile.sub (prelude.c): not depend on $(PREP).
-
-Wed May 28 17:37:07 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * win32/mkexports.rb (Exports::Mswin#each_export): speed up.
-
-Wed May 28 16:41:59 2008 Akinori MUSHA <knu@iDaemons.org>
-
- * array.c (rb_ary_slice_bang): Call rb_ary_modify_check() at the
- beginning. [rubyspec]
-
-Wed May 28 16:12:44 2008 Akinori MUSHA <knu@iDaemons.org>
-
- * lib/webrick/httpservlet/cgihandler.rb (WEBrick::HTTPServlet::CGIHandler#do_GET):
- Set the HTTP status code to 302 if a Location header field is
- present and the status code is not valid as a client
- redirection. cf. RFC 3875 6.2.3, 6.2.4.
-
-Wed May 28 15:53:52 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * enc/trans/japanese.c (to_SHIFT_JIS_EF_infos): typo.
-
-Wed May 28 15:18:16 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/singleton.rb (SingletonClassMethods): _load should be public.
-
-Wed May 28 13:30:43 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * enc/trans/japanese.c: add workaround for Unicode to CP932.
- U+2015->0x815C, U+2225->0x8161, U+FF0D->0x817C, U+FF3C->0x815F,
- U+FF5E->0x8160, U+FFE0->0x8191, U+FFE1->0x8192, U+FFE2->0x81CA
-
-Wed May 28 12:52:41 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * marshal.c (w_object, marshal_dump, r_object0, marshal_load): search
- private methods too. [ruby-dev:34671]
-
- * object.c (convert_type): ditto.
-
-Wed May 28 08:42:51 2008 Tanaka Akira <akr@fsij.org>
-
- * numeric.c: "%" is required before PRI?VALUE.
-
-Tue May 27 22:10:44 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * eval_error.c (error_handle): SystemExit and SignalException throws
- TAG_RAISE but not TAG_FATAL.
-
- * thread.c (rb_thread_execute_interrupts): delay interrupts during
- raising exceptions. [ruby-dev:34855]
-
-Tue May 27 20:18:30 2008 Akinori MUSHA <knu@iDaemons.org>
-
- * array.c (rb_ary_slice_bang): Return an empty array instead of
- nil when pos is valid and len is adjusted from a valid value to
- zero; caught by RubySpec.
-
-Tue May 27 19:12:37 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * Makefile.in (MKPREP), common.mk, win32/Makefile.sub (prelude.c): get
- rid of depending PREP with nmake.
-
- * common.mk (encs): depends on libruby.
-
-Tue May 27 19:00:22 2008 Akinori MUSHA <knu@iDaemons.org>
-
- * ext/stringio/stringio.c (strio_each_char, Init_stringio): Add
- StringIO#{each_char,chars}.
- (Init_stringio): Fix StringIO#bytes.
-
-Tue May 27 17:54:35 2008 Akinori MUSHA <knu@iDaemons.org>
-
- * ext/stringio/stringio.c (strio_each_byte): Return self instead
- of nil as the rdoc says.
-
-Tue May 27 15:36:27 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * numeric.c (check_int): use PRIxVALUE format specifier.
-
- * numeric.c (check_uint, rb_num2fix, int_chr): ditto.
-
- * numeric.c (num_fdiv): fallback to_f should always return float
- result. should not use #quo that may return rational.
-
- * numeric.c (num_div): should raise ZeroDivisionError.
-
- * numeric.c (fix_divide): ditto.
-
- * test/ruby/test_numeric.rb (TestNumeric::test_divmod): avoid
- ZeroDivisionError in tests.
-
-Tue May 27 13:14:53 2008 Akinori MUSHA <knu@iDaemons.org>
-
- * enum.c (enum_to_a): Pass arguments through to #each().
- (enum_sort): Follow the enum_to_a signature change.
- (enum_reverse_each): Add #reverse_each().
-
-Tue May 27 13:12:37 2008 Akinori MUSHA <knu@iDaemons.org>
-
- * io.c (Init_IO): Define ARGF.{lines,bytes,chars}.
-
-Tue May 27 12:06:37 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * file.c (BUFCHECK): wrong condition. [ruby-core:16921]
-
- * file.c (file_expand_buf): shouldn't use buflen for length of string.
-
-Mon May 26 18:24:48 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * file.c (BUFCHECK): no resize if enough room.
-
- * file.c (file_expand_path): use BUFCHECK.
-
-Mon May 26 17:48:42 2008 Akinori MUSHA <knu@iDaemons.org>
-
- * enumerator.c (struct enumerator, enumerator_init)
- (enumerator_init_copy, enumerator_each): Eliminate iter.
- (enumerator_ptr): Do not hardcode the class name.
- (enumerator_with_index): Delay variable initialization after
- RETURN_ENUMERATOR().
-
-Mon May 26 17:23:49 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * file.c (file_expand_path): add more space for '/'.
-
- * file.c (file_expand_path): should reset address of p after calling
- rb_str_resize(). [ruby-dev:34800]
-
-Mon May 26 16:49:55 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * misc/ruby-mode.el (ruby-mode): use run-hooks if run-mode-hook is
- not available. a patch from Kazuhiro NISHIYAMA <zn at mbf.nifty.com>
- in [ruby-dev:34853].
-
-Mon May 26 16:41:35 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * file.c (ntfs_tail): filename which starts with '.' is valid.
-
- * file.c (file_expand_path): cygwin symlink support.
-
-Mon May 26 07:15:52 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * vm_dump.c (rb_vm_bugreport): rb_make_backtrace has no arguments.
-
-Mon May 26 01:17:54 2008 Tanaka Akira <akr@fsij.org>
-
- * test/ruby/envutil.rb (assert_normal_exit): signal description
- refined.
-
-Mon May 26 00:52:52 2008 Akinori MUSHA <knu@iDaemons.org>
-
- * hash.c (env_each_key, env_each_value, env_reject_bang)
- (rb_env_clear, env_replace): Omit duplicated secure level check.
-
-Mon May 26 00:37:16 2008 Akinori MUSHA <knu@iDaemons.org>
-
- * hash.c (env_each_value): Do not call env_values() twice.
-
-Sun May 25 17:54:36 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * compile.c (iseq_compile): set local_table for
- ISEQ_TYPE_DEFINED_GUARD.
-
-Sun May 25 17:52:25 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * compile.c (iseq_build_body): remove side effect from
- VM::InstructionSequence.load.
-
-Sun May 25 04:30:45 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * test/ruby/test_modules.rb (remove_json_mixins): change judgment
- condition.
-
-Sun May 25 03:54:39 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * test/ruby/test_modules.rb (test_ancestors, test_included_modules):
- ignore json mixins.
-
-Sun May 25 02:37:25 2008 Koichi Sasada <ko1@atdot.net>
-
- * eval_method.c: renamed from vm_method.c. "vm_method.c" is included
- by "vm.c".
-
- * vm_eval.c: added. Some codes are moved from "eval.c"
-
- * common.mk: fix for above changes.
-
- * compile.c: make a vm_eval(0)
-
- * eval.c, eval_error.c, eval_intern.h, eval_jump.c, proc.c, vm.c,
- id.c, id.h, vm_core.h, vm_dump.c, vm_evalbody.c, vm_insnhelper.c,
- blockinlining.c: fix for above changes. and do some refactoring.
- this changes improve rb_yield() performance.
-
-Sat May 24 22:32:49 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * util.c (ruby_strtod): clear errno at the top of our own
- implementation of strtod(3). [ruby-dev:34834] [ruby-dev:34839]
-
-Sat May 24 15:26:16 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * compile.c (iseq_set_exception_table, NODE_WHILE, NODE_NEXT): remove
- special handling that decrements sp in CATCH_TYPE_NEXT for NODE_WHILE.
-
- * vm.c (vm_eval_body), vm_insnhelper.c (vm_throw): remove unused code.
-
-Sat May 24 08:13:34 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * transcode.c (rb_str_transcode): argc is 1, and argv is &to.
-
-Fri May 23 17:55:11 2008 Akinori MUSHA <knu@iDaemons.org>
-
- * array.c (rb_ary_slice_bang): Be consistent with Array#slice()
- and String#slice!(). Just return nil when a negative length or
- out of boundary index is given instead of raising an exception
- via internal functions.
-
-Fri May 23 16:44:34 2008 Akinori MUSHA <knu@iDaemons.org>
-
- * enumerator.c (Init_Enumerator): Override
- Enumerable::Enumerator#each_with_index with #with_index.
-
-Fri May 23 12:23:05 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * vm_core.h (rb_num_t): moved form vm.h.
-
- * tool/instruction.rb (RubyVM::Instruction#sp_increase_c_expr),
- tool/instruction.rb (RubyVM::VmBodyGenerator#make_header_operands):
- omit unused variables.
-
-Fri May 23 08:47:02 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * error.c (exc_equal): == operator should be transitional.
- [ruby-dev:34808]
-
- * error.c (syserr_eqq): === should be able to handle delegated
- objects as well.
-
-Fri May 23 06:15:20 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * iseq.c (rb_iseq_compile_with_option): get rid of segv.
-
-Fri May 23 02:29:14 2008 Koichi Sasada <ko1@atdot.net>
-
- * insns.def (opt_gt|ge|lt|le): use values directly to compare.
-
-Fri May 23 01:15:09 2008 Koichi Sasada <ko1@atdot.net>
-
- * eval.c, eval_intern.h, include/ruby/intern.h, include/ruby/ruby.h,
- vm.c, vm_core.h, vm_insnhelper.c: remove pointless "const".
-
-Thu May 22 23:45:17 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * compile.c (get_destination_insn, get_next_insn, get_prev_insn):
- peephole optimization should not ignore ISEQ_ELEMENT_ADJUST.
-
-Thu May 22 20:20:54 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * marshal.c (check_dump_arg, check_load_arg): check if reentered.
- [ruby-dev:34802]
-
-Thu May 22 20:14:28 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * iseq.c (iseq_load, iseq_data_to_ary): support
- ISEQ_TYPE_DEFINED_GUARD.
-
-Thu May 22 19:01:29 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * vm.c (vm_get_ruby_level_cfp): moved from eval_intern.h.
-
- * vm.c (sdr, nsdr): define methods only if VMDEBUG is defined.
-
-Thu May 22 17:18:35 2008 Tanaka Akira <akr@fsij.org>
-
- * array.c (rb_ary_compact_bang): fix reallocation size.
-
-Thu May 22 15:20:20 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * eval_intern.h, vm_core.h, include/ruby/intern.h, include/ruby/ruby.h,
- vm.c: need to add const to prototypes, of course.
-
-Thu May 22 13:24:43 2008 Koichi Sasada <ko1@atdot.net>
-
- * eval.c, vm.c, vm_core.h, vm_insnhelper.c: specify "const".
-
- * vm_opts.h: add a OPT_TOKEN_THREADED_CODE macro.
-
-Thu May 22 12:51:41 2008 Tanaka Akira <akr@fsij.org>
-
- * insns.def (newhash): fix a variable definition: "const k".
-
-Thu May 22 12:40:54 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * array.c (flatten): check if reentered. [ruby-dev:34798]
-
-Thu May 22 11:39:59 2008 Tanaka Akira <akr@fsij.org>
-
- * test/ruby/envutil.rb (assert_normal_exit): capture stdout and stderr
- of the child process.
-
-Thu May 22 08:28:49 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * array.c (flatten): free memo hash table before raising exception.
- [ruby-dev:34789]
-
-Thu May 22 06:30:10 2008 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * array.c (flatten): fix memory leak.
-
-Thu May 22 06:21:34 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * ext/nkf/nkf-utf8/nkf.c (nkf_str_caseeql): added.
-
- * ext/nkf/nkf-utf8/nkf.c (nkf_enc_find_index): use nkf_str_caseeql.
-
-Thu May 22 05:45:30 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * proc.c (proc_dup): should copy safe_level from src proc
- properly. a patch from Keita Yamaguchi
- <keita.yamaguchi at gmail.com>
-
-Thu May 22 02:46:08 2008 Shugo Maeda <shugo@ruby-lang.org>
-
- * lib/net/imap.rb: do not use Thread#raise. [ruby-dev:34739]
-
-Thu May 22 00:30:06 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * test/ruby/test_require.rb: new tests for library requiring, to
- achieve over 90% test coverage of dln.c.
-
- * test/ruby/test_class.rb: add tests to achieve over 90% test coverage
- of class.c.
-
- * test/ruby/test_module.rb: ditto.
-
-Thu May 22 00:15:44 2008 Koichi Sasada <ko1@atdot.net>
-
- * insns.def, vm_insnhelper.c: specify "const".
-
-Wed May 21 23:20:21 2008 Koichi Sasada <ko1@atdot.net>
-
- * bootstraptest/test_eval.rb: fix syntax.
-
-Wed May 21 17:46:17 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * ext/nkf/nkf-utf8/nkf.c (nkf_enc_find_index):
- use strcasecmp. [ruby-dev:34787]
-
-Wed May 21 16:48:22 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * array.c (rb_ary_compact_bang): avoid forceful realloc.
-
-Wed May 21 07:42:28 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * string.c (rb_usascii_str_new): use rb_str_new.
-
- * string.c (rb_enc_str_new): ditto.
-
- * string.c (rb_usascii_str_new2): use rb_str_new2.
-
-Wed May 21 07:22:01 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * encoding.c, include/ruby/encoding.h
- (rb_enc_associate, rb_enc_associate_index):
- returns obj. [ruby-dev:34778]
-
-Wed May 21 04:20:20 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * encoding.c (rb_ascii8bit_encoding): use ENCINDEX_ASCII.
-
- * encoding.c, include/ruby/encoding.h (rb_ascii8bit_encindex):
- added.
-
- * encoding.c (rb_locale_encoding): use rb_usascii_encoding().
-
-Wed May 21 01:45:58 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * test/ruby/test_file_exhaustive.rb (setup): workaround for Windows
- Vista.
-
- * test/ruby/envutil.rb (rubyexec): now Open3.open3 is supported on
- Windows.
-
- * test/ruby/test_process.rb: use ``||'' instead of ``;'' because
- cmd.exe not support it.
-
-Wed May 21 01:28:47 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * transcode.c, include/ruby/encoding.h (rb_str_transcode):
- C API of encoding conversion for Ruby object.
- VALUE rb_str_transcode(VALUE str, VALUE to).
-
- * transcode.c (str_encode, str_encode_bang):
- rename from rb_tr_transcode or rb_str_transcode_bang.
-
-Tue May 20 23:26:05 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * test/ruby/test_array.rb: fix tests for 64bit CPU.
-
-Tue May 20 20:59:56 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * ext/nkf/nkf-utf8/nkf.c (rb_nkf_convert) (nkf_enc_without_bom):
- reverted. nkf-utf8/nkf.c should be independent of ruby.
-
- * ext/nkf/nkf.c (options):
- moved from nkf-utf8/nkf.c.
- override nkf's original settings for Unicode BOM.
-
-Tue May 20 13:20:51 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/nkf/nkf.c (rb_nkf_convert), ext/nkf/nkf-utf8/nkf.c
- (nkf_enc_without_bom): BOM is not a part of encodings.
-
- * ext/nkf/nkf.c (Init_nkf), ext/nkf/nkf-utf8/nkf.c (options):
- UTF-{16,32} without endian have no sense.
-
-Tue May 20 12:13:50 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ruby.c (proc_options, process_options): --dump option.
-
-Tue May 20 11:36:06 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * include/ruby/ruby.h (PRI[diouxX]VALUE): printf format for VALUE.
-
- * gc.c (assign_heap_slot): suppress a warning.
-
-Tue May 20 03:42:43 2008 Koichi Sasada <ko1@atdot.net>
-
- * eval.c, vm_insnhelper.c: fix cref in instance_eval
- and cvar_base search protocol.
-
- * bootstraptest/test_knownbug.rb, test_eval.rb: move solved test
- and add new tests.
-
- * test/ruby/test_eval.rb: fix tests for spec.
-
-Tue May 20 01:43:44 2008 Koichi Sasada <ko1@atdot.net>
-
- * bootstraptest/test_knownbug.rb: fix a test.
- "block_given?" returns true if "yield" can be used.
-
-Tue May 20 01:07:19 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * parse.y (assignable_gen): when "self = 1" was evaluated, unnecessary
- error message was output, which might cause null pointer access.
-
-Tue May 20 08:38:56 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * string.c (rb_enc_strlen_cr): need to set ENC_CODERANGE_7BIT if
- search_nonascii() fails. [ruby-dev:34751]
-
- * string.c (rb_str_reverse): preserve coderange info if the
- receiver is 7bit string.
-
- * string.c (rb_str_reverse_bang): ditto.
-
- * string.c (rb_str_reverse_bang): should have called
- single_byte_optimizable before rb_str_modify() that clears
- coderange info.
-
- * string.c (tr_trans): handle single bytes more eagerly.
-
-Mon May 19 23:32:12 2008 Koichi Sasada <ko1@atdot.net>
-
- * vm.c (invoke_block_from_c): fix call flow.
-
-Mon May 19 23:19:35 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * regexec.c (slow_search): check the case when the length is 1.
- The behavior of memcmp is undefined if the third argument is 0.
-
-Mon May 19 21:07:48 2008 Koichi Sasada <ko1@atdot.net>
-
- * thread_pthread.c (native_thread_apply_priority):
- fix argument range check. [ruby-dev:33124]
-
-Mon May 19 18:22:35 2008 Akinori MUSHA <knu@iDaemons.org>
-
- * ext/openssl/ossl_pkcs5.c (ossl_pkcs5_pbkdf2_hmac): Fix the type
- of md; pointed out by Takahiro Kambe <taca at back-street.net>
- in [ruby-dev:34748].
-
-Mon May 19 17:23:55 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * regparse.c (PINC): use optimized enclen() instead of
- ONIGENC_MBC_ENC_LEN().
-
- * regparse.c (PFETCH): ditto.
-
- * regparse.c (PFETCH): small optimization.
-
- * regexec.c (slow_search): single byte encoding optimization.
-
- * regenc.h (enclen): avoid calling function when encoding's
- min_len == max_len.
-
- * re.c (rb_reg_regsub): rb_enc_ascget() optimization for single
- byte encoding.
-
- * re.c (rb_reg_search): avoid allocating new re_registers if we
- already have MatchData.
-
- * re.c (match_init_copy): avoid unnecessary onig_region_free()
- before onig_region_copy.
-
- * encoding.c (rb_enc_get_index): remove implicit enc_capable check
- each time.
-
- * encoding.c (rb_enc_set_index): ditto.
-
- * encoding.c (enc_compatible_p): small refactoring.
-
- * include/ruby/encoding.h (rb_enc_dummy_p): inline
- rb_enc_dummy_p() and export related code.
-
-Mon May 19 14:32:03 2008 Koichi Sasada <ko1@atdot.net>
-
- * version.h: fix strange change by version.h update tool.
-
-Mon May 19 14:18:13 2008 Koichi Sasada <ko1@atdot.net>
-
- * bootstraptest/test_knownbug.rb: move solved tests.
-
- * bootstraptest/test_eval.rb, test_literal.rb, test_syntax.rb,
- test_thread.rb: ditto.
-
- * test/ruby/test_m17n.rb, test_proc.rb, test_sprintf.rb,
- test_string.rb, test/ruby/test_struct.rb: ditto.
-
-Mon May 19 13:23:03 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * process.c (rb_spawn_internal): set last_status when status == -1
- because there is no path to set it on win32. this patch is derived
- from [ruby-core:16787], submitted by Luis Lavena <luislavena at
- gmail.com>
-
-Mon May 19 11:32:47 2008 Koichi Sasada <ko1@atdot.net>
-
- * vm.c, insns.def, eval.c, vm_insnhelper.c: fix CREF handling.
- VM value stack frame of block contains cref information.
- (dfp[-1] points CREF)
-
- * compile.c, eval_intern.h, eval_method.c, load.c, proc.c,
- vm_dump.h, vm_core.h: ditto.
-
- * include/ruby/ruby.h, gc.c: remove T_VALUES because of above
- changes.
-
- * bootstraptest/test_eval.rb, test_knownbug.rb: move solved test.
-
-Sun May 18 22:26:51 2008 GOTOU Yuuzou <gotoyuzo@notwork.org>
-
- * lib/webrick/httpservlet/filehandler.rb: should normalize path
- name in path_info to prevent script disclosure vulnerability on
- DOSISH filesystems. (fix: CVE-2008-1891)
- Note: NTFS/FAT filesystem should not be published by the platforms
- other than Windows. Pathname interpretation (including short
- filename) is less than perfect.
-
- * lib/webrick/httpservlet/abstract.rb
- (WEBrick::HTTPServlet::AbstractServlet#redirect_to_directory_uri):
- should escape the value of Location: header.
-
- * lib/webrick/httpservlet/cgi_runner.rb: accept interpreter
- command line arguments.
-
-Sun May 18 02:54:46 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * pack.c (pack_pack): check errno to detect error of ruby_strtoul.
-
- * pack.c (pack_unpack): ditto.
-
- * test/ruby/test_pack.rb: add a test for above.
-
-Sat May 17 23:53:57 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * file.c (file_expand_path): fix for short file name on Cygwin.
-
-Sat May 17 18:03:52 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
-
- * vm.c (Init_VM): removed the definition of Thread#initialize,
- which is overwritten in Init_Thread and is never used.
-
-Sat May 17 14:01:50 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * array.c (rb_ary_sort_bang): should not free shared pointer, and set
- shared. [ruby-dev:34732]
-
-Sat May 17 12:34:54 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
-
- * thread_pthread.c (Init_native_thread): Kernel#.sleep used never to
- sleep on Mac OS X. Reported by arton <artonx AT yahoo.co.jp>.
+ * lib/weakref.rb: Attach documentation to WeakRef and add missing
+ documentation
- * thread_pthread.c (native_sleep): added error checks.
+Thu Jun 30 09:30:14 2011 Eric Hodel <drbrain@segment7.net>
-Sat May 17 11:29:11 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * lib/yaml.rb: Document toplevel YAML and YAML::ENGINE to describe
+ Psych vs Syck engines.
- * file.c (rb_file_s_extname): first dot is not an extension name.
+Thu Jun 30 09:21:52 2011 Eric Hodel <drbrain@segment7.net>
-Sat May 17 03:21:29 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * lib/cmath.rb: Hide handle_no_method_error from RDoc.
+ * error.c: Document or hide undocumented error classes.
- * array.c (rb_ary_sort_bang): stop memory leak. [ruby-dev:34726]
+Thu Jun 30 07:49:04 2011 Eric Hodel <drbrain@segment7.net>
- * re.c (rb_reg_search): need to free allocated buffer in re_register.
+ * hash.c: Document ENV
- * regexec.c (onig_region_new): more pedantic malloc check.
+Thu Jun 30 06:37:43 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * regexec.c (onig_region_resize): ditto.
+ * ruby.c (ruby_init_loadpath_safe): ensure RUBYLIB_PREFIX stored
+ before RUBYLIB, even if MANGLED_PATH is enabled. fixed #1679.
+ MANGLED_PATH is disabled by the default and will be removed
+ completely in the future.
- * regexec.c (STATE_CHECK_BUFF_INIT): ditto.
+Thu Jun 30 06:32:21 2011 Eric Hodel <drbrain@segment7.net>
- * regexec.c (onig_region_copy): use onig_region_resize.
+ * lib/drb/drb.rb: Hide deprecated toplevel DRb constants.
-Fri May 16 12:48:33 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+Thu Jun 30 06:17:02 2011 NARUSE, Yui <naruse@ruby-lang.org>
- * math.c (to_flo): rb_Float() accepts even strings for input.
+ * lib/cmath.rb (CMath.log): second argument: b can be nil.
- * complex.c (nucomp_to_f): fix wrong message.
+Thu Jun 30 06:23:28 2011 Eric Hodel <drbrain@segment7.net>
- * complex.c (nucomp_to_r): ditto.
+ * thread.c (ruby_thread_s_pass): Fix typo.
- * object.c (rb_Float): do not check NaN for error. NaN is a part
- of valid float values.
+Thu Jun 30 06:16:53 2011 Eric Hodel <drbrain@segment7.net>
-Thu May 15 23:36:09 2008 Yusuke Endoh <mame@tsg.ne.jp>
+ * lib/rdoc: Update to RDoc 3.8 which contains fixes for documentation
+ in trunk.
- * test/ruby/test_string.rb: add tests to achieve over 90% test
- coverage of string.c.
+Thu Jun 30 02:53:26 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * test/ruby/test_m17n.rb: ditto.
+ * thread.c (rb_threadptr_execute_interrupts_common): remove
+ meaningless native_thread_yield(). It never close a race.
- * test/ruby/test_symbol.rb: ditto.
+Thu Jun 30 02:41:47 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * test/ruby/test_pack.rb: ditto.
+ * thread.c (rb_thread_schedule_limits): minor optimization.
+ eliminate machine context saving when running time is enough small.
-Thu May 15 23:01:06 2008 Yusuke Endoh <mame@tsg.ne.jp>
+Thu Jun 30 02:28:11 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * string.c (tr_find): String#delete returned wrong result when multiple
- utf-8 arguments are passed.
+ * thread.c (rb_thread_schedule_rec): move interrupt_flag check to
+ rb_thread_schedule().
+ And also rename to rb_thread_schedule_limits() and remove
+ sched_depth argument. It's no longer called recursive.
+ * thread.c (rb_thread_schedule): add to check interrupt_flag as
+ above explained.
- * test/ruby/test_m17n.rb (test_delete): add a test for above.
+ * thread.c (rb_threadptr_execute_interrupts_rec): rename to
+ rb_threadptr_execute_interrupts_common() and remove sched_depth
+ argument. It's no longer called recursive.
-Thu May 15 22:37:56 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+ * thread.c (rb_thread_sleep): adapt the renaming.
+ * thread.c (rb_threadptr_execute_interrupts): ditto.
+ * thread.c (rb_thread_execute_interrupts): ditto.
- * parse.y (ripper_warningS): now used.
+Thu Jun 30 01:31:33 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
-Thu May 15 15:33:59 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * thread.c (thread_s_pass): change RDoc description and remove
+ a sample code. The actual implementation never behave as explained by
+ an example. It's a documentation bug.
- * file.c (file_expand_path): support for alternative data stream
- and ignored trailing garbage of NTFS.
+Thu Jun 30 00:54:33 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * file.c (rb_file_s_basename): ditto.
+ * thread.c (rb_thread_stop): change RDoc sample code. The old
+ example is buggy and may cause deadlock. The patch is
+ suggested by Heesob Park <phasis@gmail.com>. Thank you!
+ [Bug #3606][ruby-core:31454]
- * file.c (rb_file_s_extname): ditto.
+Thu Jun 30 00:49:53 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
-Thu May 15 13:43:36 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * thread.c (rb_thread_wakeup): change RDoc sample code. The old
+ example is buggy and may not display anything by a race.
+ The patch is suggested by Heesob Park <phasis@gmail.com>.
+ Thank you! [Bug #3606][ruby-core:31454]
- * object.c (rb_cstr_to_dbl): no need for forceful warning when
- converting to float. overflow is a nature of float values.
+Thu Jun 30 00:43:33 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * parse.y (parser_yylex): ditto.
+ * thread.c (rb_thread_run): change RDoc. The old example is buggy
+ and may cause deadlock. The patch is suggested by Heesob Park
+ <phasis@gmail.com>. Thank you! [Bug #3606][ruby-core:31454]
-Thu May 15 13:23:20 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+Thu Jun 30 00:30:15 2011 Keiju Ishitsuka <keiju@ishitsuka.com>
- * re.c (rb_reg_prepare_enc): error condition was updated for non
- ASCII compatible strings.
+ * lib/cmath.rb: make same exception for Math. fix [Bug #3137].
-Thu May 15 12:19:42 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+Thu Jun 30 00:03:20 2011 Keiju Ishitsuka <keiju@ishitsuka.com>
- * ext/openssl/openssl_missing.c (HMAC_CTX_copy): adopted
- prototype change in openssl bundled with newer OpenBSD.
- a patch from Takahiro Kambe <taca at back-street.net> in
- [ruby-dev:34691].
+ * lib/irb/completion.rb: complement correctly string literal. fix
+ [Bug #1145].
-Wed May 14 22:09:25 2008 Yusuke Endoh <mame@tsg.ne.jp>
+Wed Jun 29 23:42:51 2011 Tadayoshi Funaba <tadf@dotrb.org>
- * ChangeLog: fix typo.
+ * ext/date/date_core.c: avoided using timev.
+ * ext/date/date_strftime.c: ditto.
+ * ext/date/date_tmx.h: ditto.
-Wed May 14 21:49:14 2008 Yusuke Endoh <mame@tsg.ne.jp>
+Wed Jun 29 23:17:57 2011 WATANABE Hirofumi <eban@ruby-lang.org>
- * test/ruby/test_object.rb: new tests to achieve over 90% test
- coverage of object.c, eval.c and eval_method.c.
+ * ext/openssl/ossl.h (OPENSSL_SYS_WIN32): support for mingw(msys).
- * test/ruby/test_module.rb: ditto.
+Wed Jun 29 23:09:14 2011 WATANABE Hirofumi <eban@ruby-lang.org>
- * test/ruby/test_trace.rb: ditto.
+ * ext/tk/extconf.rb (intptr_t, uintptr_t): support for the latest ActiveTcl with mingw.
- * test/ruby/test_integer.rb: ditto.
+Wed Jun 29 22:49:10 2011 Keiju Ishitsuka <keiju@ishitsuka.com>
- * test/ruby/test_float.rb: ditto.
+ * lib/irb/cmd/help.rb: support RDoc 3.7. fix [Bug #3760].
- * test/ruby/test_method.rb: ditto.
+Wed Jun 29 22:04:14 2011 CHIKANAGA Tomoyuki <nagachika00@gmail.com>
- * test/ruby/test_variable.rb: ditto.
+ * lib/tracer.rb: Tracer.on only if required by -r command-line option.
+ and consider --disable-gems option.
+ * test/test_tracer.rb: add tests for it.
- * test/ruby/test_eval.rb: ditto.
+Wed Jun 29 13:55:36 2011 Yukihiro Matsumoto <matz@ruby-lang.org>
- * test/ruby/test_exception.rb: ditto.
+ * variable.c (rb_const_get_0): should not look for superclasses if
+ the second optional argument is given for #const_get().
+ fix [Bug #3422] [Bug #3423]
- * test/ruby/test_class.rb: ditto.
+Wed Jun 29 12:07:27 2011 Eric Hodel <drbrain@segment7.net>
-Wed May 14 12:46:37 2008 Koichi Sasada <ko1@atdot.net>
+ * math.c: Attach documentation for Math.
+ * object.c: Document NIL, TRUE, FALSE.
+ * io.c: Improve grammar in ARGF comment. Document STDIN/OUT/ERR.
+ Document ARGF global constant.
+ * lib/rake: Hide deprecated toplevel constants from RDoc (import from
+ rake trunk).
+ * lib/thwait.rb: Document ThWait.
+ * lib/mathn.rb: Hide Math redefinition from RDoc
+ * lib/sync.rb: Add a basic comment for Sync_m, Synchronizer_m, Sync,
+ Synchronizer.
+ * parse.y: Document SCRIPT_LINES__.
+ * hash.c: Document ENV class and global constant.
+ * vm.c: Document TOPLEVEL_BINDING.
+ * version.c: Document RUBY_* constants.
+ * ruby.c: Document DATA and ARGV.
- * iseq.c (insn_operand_intern): remove Qundef related code.
+Wed Jun 29 10:13:12 2011 Marc-Andre Lafortune <ruby-core@marc-andre.ca>
-Wed May 14 12:42:36 2008 Akinori MUSHA <knu@iDaemons.org>
+ * lib/matrix.rb: Matrix.zero can build rectangular matrices.
+ Vector#r should be called #magnitude
- * array.c (rb_ary_count): Override Enumerable#count for better
- performance.
+Wed Jun 29 10:11:08 2011 Marc-Andre Lafortune <ruby-core@marc-andre.ca>
-Wed May 14 11:29:06 2008 Koichi Sasada <ko1@atdot.net>
+ * lib/matrix.rb: Add Matrix#diagonal?, hermitian?, normal?,
+ orthogonal?
+ permutation?, symmetric?, {lower|upper}triangular?, unitary?, zero?
- * insns.def: add a "putcbase" instruction.
+Wed Jun 29 10:09:35 2011 Marc-Andre Lafortune <ruby-core@marc-andre.ca>
- * compile.c, insns.def: fix to use putcbase instruction for
- class search. Qundef should not be used.
+ * lib/matrix.rb: Specialize Matrix#find_index to return [row, col]
+ and accept the same optional argument as #each
-Wed May 14 07:49:35 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+Wed Jun 29 10:07:32 2011 Marc-Andre Lafortune <ruby-core@marc-andre.ca>
- * eval.c (rb_call0): defer calling of rb_frame_self() until it
- become really necessary.
+ * lib/matrix.rb: Matrix#each{_with_index} can iterate over a subset
+ of the Matrix
- * eval.c (rb_call): ditto.
+Wed Jun 29 06:21:02 2011 Koichi Sasada <ko1@atdot.net>
-Wed May 14 00:55:56 2008 Yusuke Endoh <mame@tsg.ne.jp>
+ * thread_pthread.c (native_stop_timer_thread): skip to close
+ communication pipe to avoid timing bug (process termination timing).
+ The communication pipe will closed by OS.
- * test/ruby/test_io_m17n.rb: remove a duplicative method.
+Wed Jun 29 06:09:54 2011 Koichi Sasada <ko1@atdot.net>
- * test/ruby/test_utf16.rb: rename a conflicting method name.
+ * error.c (rb_async_bug_errno): async-safe bug report function.
+ In timer thread, signal handler should use it.
+ The patch is contributed by Eric Wong <normalperson@yhbt.net>.
+ Refs: [ruby-core:37644] and [ruby-core:37647]
- * test/ruby/test_array.rb: ditto.
+ * thread_pthread.c: use rb_async_bug_errno().
+ And replace all fprintf() to write().
- * test/ruby/test_file_exhaustive.rb: ditto.
+ * internal.h (rb_async_bug_errno): add decl. of above func.
- * test/ruby/test_hash.rb: ditto.
+Tue Jun 28 23:46:08 2011 Keiju Ishitsuka <keiju@ishitsuka.com>
- * test/ruby/test_env.rb: ditto.
+ * lib/tracer.rb: count only non-internal libraries in stack trace,
+ ignoring custom_require.
- * test/ruby/test_fixnum.rb: ditto.
+Tue Jun 28 21:44:58 2011 Keiju Ishitsuka <keiju@ishitsuka.com>
- * test/ruby/test_rational.rb: ditto.
+ * lib/irb/ruby-lex.rb: recognize '\char' in ruby statement.
-Wed May 14 00:45:58 2008 Yusuke Endoh <mame@tsg.ne.jp>
+Tue Jun 28 20:39:29 2011 Hiroshi Nakamura <nahi@ruby-lang.org>
- * eval_method.c (rb_add_method): fix check for warning when
- Object#initialize is redefined. (same as 1.8)
+ * lib/debug.rb (var_list): Command 'var *' did not work on 1.9(!).
+ global_variables, local_variables, and instance_variables returns
+ Symbols from 1.9 and need to stringify before evaling it.
+ See #4931.
-Tue May 13 23:32:44 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Tue Jun 28 19:23:01 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * enum.c (enum_yield): use rb_yield_values2.
+ * signal.c: Now, USE_TRAP_SIGMASK depend on HAVE_PTHREAD_SIGMASK.
+ The code have already depended on pthread_sigmask since r27464.
- * enum.c (DEFINE_ENUMFUNCS): macro to define enumerator and yielding
- functions.
+Tue Jun 28 15:09:21 2011 NARUSE, Yui <naruse@ruby-lang.org>
- * enum.c (enum_all_func, enum_any_func, enum_one_func,
- enum_none_func): reduced duplicate code.
+ * lib/benchmark.rb: merge eregon/benchmark.
+ https://github.com/eregon/ruby/tree/benchmark
+ patched by Benoit Daloze. [ruby-core:37593] [Bug #4940]
-Tue May 13 15:09:38 2008 Akinori MUSHA <knu@iDaemons.org>
+ * lib/benchmark (Benchmark#bmbm): bmbm should be consistent with bm
+ for the return value.
- * enumerator.c: Update rdoc.
- (enumerator_initialize): Discourage the use.
- (enum_each_slice, enum_each_cons, enumerator_each)
- (enumerator_with_index): Add a note about a call without a block.
+ * test/benchmark: remove preemptive test instead of skipping
+ I removed the preemptive test I wrote for Feature #4197.
+ I'll add it back when the implementation will be able to satisfy it.
-Tue May 13 08:25:31 2008 Tanaka Akira <akr@fsij.org>
+ * lib/benchmark (Benchmark#bmbm): remove useless explicit call,
+ #format is an alias of #to_s test/benchmark: add a test for
+ format of long time.
- * io.c (rb_f_gets): re-enable rdoc.
- (rb_f_readline): ditto.
- (rb_f_readlines): ditto.
+ * lib/benchmark: fix label width: always add 1 to ensure there is a
+ space delimiter even with times over 100s
+ When I asked for Feature #4197, I wanted to make delimiting spaces
+ consistent for #bm and #bmbm.
+ But with times over 100s, the output contains no space between the
+ label and the first time (user).
+ Now both ensure there is always a space, even if that means 3 spaces
+ with times under 10s (because it is formatted as %10.6f)
-Tue May 13 07:56:36 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * test/benchmark: let labels be a constant
+ lib/benchmark (Benchmark#realtime): avoid creating an unused Proc
+ lib/benchmark (Benchmark#benchmark): use ensure clause to restore
+ STDOUT.sync, as in #bmbm
- * string.c (rb_str_cat): fixed buffer overrun reported by
- Christopher Thompson <cthompson at nexopia.com> in [ruby-core:16746]
+Tue Jun 28 13:41:51 2011 NAKAMURA Usaku <usa@ruby-lang.org>
-Mon May 12 23:37:57 2008 Yusuke Endoh <mame@tsg.ne.jp>
+ * thread_win32.c (native_stop_timer_thread): fixed commit miss of
+ r32244. grep sources before changing the signature of a function.
- * vm.c (collect_local_variables_in_env): remove unnecessary check
- which causes: x=1;proc{local_variables}.call #=> []
+Tue Jun 28 11:49:14 2011 Koichi Sasada <ko1@atdot.net>
- * test/ruby/test_variable.rb: add a test for above.
+ * thread_pthread.c (consume_communication_pipe):
+ Make "buff" as static. (Maybe) "buff" can be shared between
+ any caller (any threads) because no one use the read values.
+ "buff" (1024 byte) on stack may cause stack overflow on
+ several environment (we found a crash on FreeBSD).
+ And remove const value "buff_size", and define CCP_READ_BUFF_SIZE
+ macro.
-Mon May 12 23:05:24 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+Tue Jun 28 11:45:30 2011 Eric Hodel <drbrain@segment7.net>
- * process.c, include/ruby/intern.h (rb_run_exec_options): externed.
+ * lib/rake: Update rake to fix some bugs and hide deprecated features
+ from RDoc.
+ * lib/rake/version.rb: Bump version to 0.9.2.1 to distinguish it from
+ the released version.
+ * NEWS: ditto
- * process.c (save_redirect_fd, save_env_i, save_env, run_exec_dup2,
- run_exec_open, run_exec_pgroup, run_exec_rlimit, rb_run_exec_options):
- save parent's process environments.
+Tue Jun 28 11:17:28 2011 Eric Hodel <drbrain@segment7.net>
- * process.c (rb_spawn_internal): remove calling run_exec_options()
- because cannot restore after spawn.
+ * lib/rdoc: Update to RDoc 3.7 (final)
+ * NEWS: ditto
- * io.c (pipe_open): ditto.
+Tue Jun 28 10:18:42 2011 NARUSE, Yui <naruse@ruby-lang.org>
- * test/ruby/test_process.rb (test_execopts_env): upcase environment
- variable name for case insensitive platforms.
+ * process.c (rb_daemon): fix wrong #endif position.
- * win32/win32.c (init_env): set USER environment variable only when
- USERNAME is available.
+Tue Jun 28 07:50:32 2011 Eric Hodel <drbrain@segment7.net>
-Mon May 12 22:23:01 2008 Tanaka Akira <akr@fsij.org>
+ * object.c (Init_Object): Teach RDoc what Init_class_hierarchy does to
+ hook up ri for BasicObject, Object, Module and Class.
- * lib/date.rb (once): use Object#object_id instead of Symbol#to_i.
+Tue Jun 28 05:03:32 2011 Hiroshi Nakamura <nahi@ruby-lang.org>
-Mon May 12 21:34:46 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+ * thread.c (rb_thread_local_aref): RDoc fix. Thread#[] example
+ had a race. See #4480.
- * test/ruby/envutil.rb (rubybin): return expanded rubyexe instead of
- expanded ruby if available.
+Tue Jun 28 01:22:00 2011 Kenta Murata <mrkn@mrkn.jp>
-Mon May 12 20:19:55 2008 Akinori MUSHA <knu@iDaemons.org>
+ * ext/bigdecimal/bigdecimal.c (BigMath_s_log): move BigMath.log from
+ bigdecimal/math.rb.
- * enum.c (grep_i): Be aware of multiple values;
- fix [ruby-dev:34653].
- (grep_iter_i): Ditto.
- (count_i): Ditto.
- (find_i): Ditto.
- (find_index_i): Ditto.
- (find_all_i): Ditto.
- (reject_i): Ditto.
- (inject_i): Ditto.
- (inject_op_i): Ditto.
- (partition_i): Ditto.
- (group_by_i): Ditto.
- (first_i): Ditto.
- (sort_by_i): Ditto.
- (all_i): Ditto.
- (all_iter_i): Ditto.
- (any_i): Ditto.
- (any_iter_i): Ditto.
- (one_i): Ditto.
- (one_iter_i): Ditto.
- (none_i): Ditto.
- (none_iter_i): Ditto.
- (min_i): Ditto.
- (min_ii): Ditto.
- (max_i): Ditto.
- (max_ii): Ditto.
- (minmax_i): Ditto.
- (minmax_ii): Ditto.
- (min_by_i): Ditto.
- (max_by_i): Ditto.
- (minmax_by_i): Ditto.
- (member_i): Ditto.
- (take_i): Ditto.
- (take_while_i): Ditto.
- (drop_i): Ditto.
- (drop_while_i): Ditto.
- (cycle_i): Ditto.
+ * ext/bigdecimal/lib/bigdecimal/math.rb: ditto.
- * enum.c (each_with_index): Update rdoc. each_with_index() takes
- arguments that are passed through to each(), and a hash preserves
- key order.
+ * test/bigdecimal/test_bigdecimal.rb: move test for BigMath.log from
+ test/bigdecimal/test_bigmath.rb.
-Mon May 12 19:05:24 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+ * test/bigdecimal/test_bigmath.rb: ditto.
- * process.c (rb_spawn_internal): remove calling run_exec_options()
- because cannot restore after spawn. we'll fix this later.
+Tue Jun 28 01:19:52 2011 Keiju Ishitsuka <keiju@ishitsuka.com>
-Mon May 12 18:16:44 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+ * lib/irb/ruby-lex.rb: fix [Bug #4232].
- * process.c (rb_spawn_internal): need to call run_exec_options() before
- spawn if the platform doesn't have fork. [ruby-dev:34647]
+Tue Jun 28 00:14:13 2011 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
-Mon May 12 15:20:02 2008 Tanaka Akira <akr@fsij.org>
+ * lib/drb/drb.rb: fix [Bug #4409]. add DRbServer#here?.
- * gc.c (ruby_vm_xmalloc): increase malloc_increase only if malloc
- succeeds. failed malloc size can be huge. it may increase
- malloc_limit too big which cause less GC and memory full.
- (ruby_vm_xrealloc): ditto.
- (rb_objspace): make params.limit and params.increase size_t.
-
-Mon May 12 15:04:58 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * test/drb/test_drb.rb: ditto.
- * re.c (rb_reg_prepare_re): made non static with small refactoring.
+ * test/drb/drbtest.rb: ditto.
- * ext/strscan/strscan.c (strscan_do_scan): should adjust encoding
- before regex searching.
+ * test/drb/ut_eq.rb: ditto.
-Mon May 12 13:57:19 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+Tue Jun 28 00:08:43 2011 Keiju Ishitsuka <keiju@ishitsuka.com>
- * eval.c (is_defined): add NODE_OP_ASGN_{OR,AND}. "defined?(a||=1)"
- should not operate assignment. [ruby-dev:34645]
+ * lib/irb/workspace.rb: fix BUG#4793.
-Mon May 12 13:29:26 2008 Tanaka Akira <akr@fsij.org>
+Mon Jun 27 22:06:12 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * bignum.c (bigzero_p): check from MSB to LSB. [ruby-dev:34649]
+ * thread_pthread.c (consume_communication_pipe): don't use C99
+ style variable length array.
-Mon May 12 12:32:10 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Mon Jun 27 22:04:27 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * common.mk (RUBYOPT): affected BASERUBY too. [ruby-talk:301514]
+ * thread_pthread.c (consume_communication_pipe): change return
+ type to void. caller doesn't use it.
-Mon May 12 12:27:55 2008 Tanaka Akira <akr@fsij.org>
+Mon Jun 27 21:29:50 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * gc.c (assign_heap_slot): fix condition for number of objects in
- a heap.
+ * thread_pthread.h (rb_global_vm_lock_struct): add volatile to
+ gvl->waiting. now thread_timer() access it w/o lock.
-Mon May 12 12:24:48 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+Mon Jun 27 21:16:11 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * string.c (sym_to_i): really removed. [ruby-dev:34641]
+ * thread_pthread.c: s/__gvl_acquire/gvl_acquire_common/ and
+ s/__gvl_release/gvl_release_common/.
-Mon May 12 11:15:55 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+Mon Jun 27 11:41:47 2011 NARUSE, Yui <naruse@ruby-lang.org>
- * gc.c (assign_heap_slot): put the binary search routine in order.
+ * thread_pthread.c (rb_thread_create_timer_thread):
+ the type of return value of write(2) is ssize_t.
-Mon May 12 10:52:51 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Mon Jun 27 09:57:02 2011 Koichi Sasada <ko1@atdot.net>
- * ruby.c (ruby_init_gems), gem_prelude.rb: check if Gem is defined
- instead of Gem::Enable.
+ * thread_pthread.c (rb_thread_create_timer_thread):
+ Fixes missing initialization of oflags.
- * gem_prelude.rb (load_full_rubygems_library, const_missing): prevent
- infinite recursion. [ruby-dev:34539]
+Mon Jun 27 09:07:42 2011 Koichi Sasada <ko1@atdot.net>
-Sun May 11 23:19:39 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * thread_pthread.c: Stop polling in the timer thread when there are
+ no waiting thread. If there are 2 or more runnable threads,
+ the timer thread does polling. Avoid polling makes power save
+ for several computers (0.2W per a Ruby process, when I measured).
+ If outside-event such as signal or Thread#kill was occurred
+ when the timer thread does not do polling, then wake-up
+ the timer thread using communication-pipe (the timer thread
+ waits this communication-pipe with select(2)).
+ The discussion about this modification can be found from the post
+ [ruby-core:33456] and other related posts.
+ Note that Eric Wong and KOSAKI Motohiro give us the huge
+ contributions for this modification. Thanks.
- * enum.c (all_iter_i, any_iter_i): reduced duplicated code.
+ * thread_pthread.c (rb_thread_wakeup_timer_thread): add a function.
+ This function wakes up the timer thread using communication-pipe.
-Sun May 11 22:54:02 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * thread.c (rb_thread_stop_timer_thread): add a parameter which
+ specify closing communication-pipe or not.
- * bootstraptest/runner.rb (main): leave -I options for purelib.rb
- untouched.
+ * thread.c (rb_thread_terminate_all): do not stop timer thread here
+ (ruby_cleanup() terminate timer thread).
- * bootstraptest/runner.rb (main): handle relative path -r options.
+ * signal.c: wake up timer thread using
+ rb_thread_wakeup_timer_thread() from signal handler.
-Sun May 11 19:04:06 2008 Yusuke Endoh <mame@tsg.ne.jp>
+ * eval.c (ruby_cleanup): use rb_thread_stop_timer_thread(1).
- * test/ruby/test_thread.rb: kill and join temporal threads that are
- created in each test.
+ * process.c: use rb_thread_stop_timer_thread(0)
+ (reuse communication-pipe).
-Sun May 11 17:58:45 2008 Tanaka Akira <akr@fsij.org>
+ * thread_win32.c (rb_thread_wakeup_timer_thread): add a dummy
+ function.
- * test/ruby/test_process.rb (TestProcess#with_stdin): defined.
- (TestProcess#test_argv0_noarg): don't use redirect_fds.
- [ruby-dev:34647]
+ * vm_core.h: add and fix decl. of functions.
-Sun May 11 17:57:36 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Mon Jun 27 08:01:19 2011 Tadayoshi Funaba <tadf@dotrb.org>
- * configure.in (MINIRUBY): should not include extension library path.
+ * ext/date/date_parse.c: should use ALLOCA_N.
-Sun May 11 14:40:36 2008 Tanaka Akira <akr@fsij.org>
+Mon Jun 27 01:34:18 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * include/ruby/ruby.h (SIZET2NUM): new macro.
- (NUM2SIZET): new macro.
+ * test/etc/test_etc.rb (TestEtc#test_get{pw,gr}nam): skip entries
+ start with + sign, which means NIS. these are returned in the
+ case that passwd and group entries in /etc/nsswitch.conf are set
+ to use "nis" explicitly on Debian. fixed #3683
- * gc.c (struct rb_objspace): use size_t for increment, length and
- used for 64bit.
- (allocate_heaps): ditto.
- (assign_heap_slot): ditto.
- (set_heaps_increment): ditto.
- (gc_mark_all): ditto.
- (is_pointer_to_heap): ditto.
- (free_unused_heaps): ditto.
- (gc_sweep): ditto.
- (os_obj_of): ditto.
- (rb_gc_call_finalizer_at_exit): ditto.
- (count_objects): ditto.
+Mon Jun 27 00:44:53 2011 NARUSE, Yui <naruse@ruby-lang.org>
-Sun May 11 13:14:09 2008 Tanaka Akira <akr@fsij.org>
+ * parse.y (rb_parser_end_seen_p): fix documentation about return
+ value. patched by Sho Hashimoto. [Bug #4511]
- * thread.c (thread_cleanup_func_before_exec): extracted from
- thread_cleanup_func not to touch pthread data.
- pthread_cond_destroy in forked process may cause deadlock on
- Debian GNU/Linux Etch on x86, x86-64 and IA64.
- this doesn't cause resource leak because the process will exec soon.
- (terminate_atfork_before_exec_i): defined.
- (rb_thread_atfork_before_exec): defined.
+Mon Jun 27 00:40:47 2011 NARUSE, Yui <naruse@ruby-lang.org>
- * include/ruby/intern.h (rb_thread_atfork_before_exec): declared.
+ * hash.c (rb_hash_reject): add documentation that Hash#reject
+ without block returns enumerator.
+ patched by Michael Edgar [Bug #4847] [ruby-core:36800]
- * process.c (rb_exec_atfork): call rb_thread_atfork_before_exec
- instead of rb_thread_atfork.
+Sun Jun 26 23:49:21 2011 Tadayoshi Funaba <tadf@dotrb.org>
- * io.c (popen_exec): call rb_thread_atfork_before_exec instead of
- rb_thread_atfork.
+ * test/date/test_switch_hitter.rb: added a test.
-Sat May 10 22:14:03 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+ Sun Jun 26 22:21:23 2011 Tadayoshi Funaba <tadf@dotrb.org>
- * string.c (tr_trans): single '^' does not mean negation.
- [ruby-dev:34632]
+ * ext/date/date_core.c: refactoring.
- * string.c (tr_trans): should check src size, not str size.
- [ruby-dev:34637]
+Sun Jun 26 18:03:30 2011 URABE Shyouhei <shyouhei@ruby-lang.org>
- * string.c (tr_trans): should not turn on modify flag if no
- modification happens. [ruby-dev:34631]
+ * parse.y: comma at the end of line is no longer allowed.
+ A patch from Yukihiro Matsumoto <matz AT ruby-lang.org>.
+ (fixed #3456).
-Sat May 10 18:11:18 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+Sun Jun 26 13:35:35 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * string.c (rb_str_each_line): zero length record separator should
- split a string into paragraphs. [ruby-dev:34586]
+ * vm_dump.c (rb_vm_bugreport): change CrashReporter suggestion messages
+ on Mac. It should be placed after "-- C level backtrace" line.
+ Suggested by Endoh-san.
- * string.c (rb_str_each_line): RDoc updated.
+ <before>
+ -- See Crash Report log file under ~/Library/Logs/CrashReporter or ---------
+ -- /Library/Logs/CrashReporter, for the more detail of ---------------------
+ -- C level backtrace information -------------------------------------------
-Sat May 10 11:36:20 2008 Tanaka Akira <akr@fsij.org>
+ <after>
+ -- C level backtrace information -------------------------------------------
- * vm.c (env_mark): mark env->block.self. prevent SEGV when GC occur
- in prepare_iseq_build with gcc version 3.4.6 [FreeBSD] 20060305 on
- FreeBSD/amd64.
+ See Crash Report log file under ~/Library/Logs/CrashReporter or
+ /Library/Logs/CrashReporter, for the more detail of.
-Fri May 9 19:16:00 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+Sun Jun 26 10:08:28 2011 Martin Bosslet <Martin.Bosslet@googlemail.com>
- * thread.c (timeofday): use monotonic clock. based on a patch
- from zimbatm <zimbatm at oree.ch> in [ruby-core:16627].
+ * ext/openssl/extconf.rb
+ * ext/openssl/ossl_missing.h/.c: add ASN1_put_eoc if missing.
-Fri May 9 07:47:07 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * ext/openssl/ossl_asn1.c: introduce ossl_asn1_object_size and
+ ossl_asn1_put_object to wrap functionality depending on OpenSSL
+ version in use.
+ Fixes [ Ruby 1.9 - Bug #4916 ] reported by Hiroshi Nakamura.
+ [ruby-core:37286]
- * cont.c (cont_restore_0): dynamic stack direction code should be
- consistent with static one. [ruby-talk:301152]
+Sun Jun 26 01:00:15 2011 Tadayoshi Funaba <tadf@dotrb.org>
-Fri May 9 00:03:50 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * ext/date/date_core.c (date_strftime_internal): removed meaningless braces.
+ * ext/date/date_core.c (gengo): the value should be int.
- * parse.y (arg): operator assignment "a += b rescue c" should be
- parsed as "a += (b rescue c)" just like normal assignment.
- [ruby-talk:301000]
+Sat Jun 25 23:45:30 2011 CHIKANAGA Tomoyuki <nagachika00@gmail.com>
-Thu May 8 18:14:00 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * vm_insnhelper.c (vm_search_superclass): avoid control frame
+ stack overrun. currently super() in Proc created in a method
+ defined by Module#define_method raise NoMethodError. [Bug #4881]
+ * test/ruby/test_method.rb t_super_in_proc_from_define_method):
+ add test for it.
- * bignum.c (rb_big_and): bit-wise operation should not take float
- values. [ruby-dev:34612]
+Sat Jun 25 23:23:14 2011 CHIKANAGA Tomoyuki <nagachika00@gmail.com>
- * bignum.c (rb_big_or): ditto.
+ * thread.c (sleep_forever): now Kernel#sleep don't wakeup by
+ signal handler execution. [Bug #4072]
- * bignum.c (rb_big_xor): ditto.
+Sat Jun 25 23:14:47 2011 CHIKANAGA Tomoyuki <nagachika00@gmail.com>
-Thu May 8 17:44:13 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * thread.c (rb_threadptr_check_signal): remove unnecessary th->status
+ backup. fix race condition which may results unexpected main thread's
+ status transition. see #4072
- * common.mk, ext/extmk.rb, lib/mkmf.rb: use absolute path for RUBYOPT.
+Fri Jun 24 19:57:30 2011 Hiroshi Nakamura <nahi@ruby-lang.org>
- * file.c (rb_find_file_ext): guard load_path from GC.
- gcc version 4.1.2 20061115 (prerelease) (Debian 4.1.1-21) optimizes
- load_path by holding only RARRAY_LEN(load_path) and
- RARRAY_PTR(load_path) in registers on IA64 GNU/Linux Etch.
+ * lib/webrick/httprequest.rb (setup_forwarded_info): Parsing request
+ header failed when the request is from 2 or more Apache reverse
+ proxies. It's said that all X-Forwarded-* headers will contain more
+ than one (comma-separated) value if the original request already
+ contained one of these headers. Since we could use these values as
+ Host header, we choose the initial(first) value. See #4922.
-Thu May 8 16:41:20 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * test/webrick/test_httprequest.rb (test_forwarded): Test it.
- * configure.in (MINIRUBY), common.mk (RUBYOPT): add purelib.rb.
- [ruby-core:16642]
+Fri Jun 24 17:06:33 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Thu May 8 16:00:41 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * process.c (proc_daemon): should not start timer thread
+ twice. fixed Bug#4920.
- * parse.y (parser_yylex): ! and ? at the bottom are no longer part
- of valid symbol names. [ruby-dev:34590]
+Fri Jun 24 15:54:14 2011 Hiroshi Nakamura <nahi@ruby-lang.org>
-Thu May 8 15:36:11 2008 Tanaka Akira <akr@fsij.org>
+ * ext/openssl/ossl_ssl.c (ossl_ssl_shutdown): Try to shutdown SSL
+ connection more gracefully. Call SSL_shutdown() max 4 times until it
+ returns 1 (success). Bi-directional SSL close has several states but
+ SSL_shutdown() kicks only 1 transition per call. Max 4 is from
+ mod_ssl.c of Apache httpd that says 'max 2x pending + 2x data = 4'.
+ See #4237.
- * thread.c (rb_gc_save_machine_context): call FLUSH_REGISTER_WINDOWS
- to mark the register stack from GC on another thread.
+Fri Jun 24 07:24:37 2011 Eric Hodel <drbrain@segment7.net>
-Thu May 8 15:14:34 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * lib/rake/version.rb: Fixed VERSION to work with tool/rbinstall.rb
+ * bin/rake: Import bin/rake from 0.9.2
+ * tool/rbinstall.rb (install): Rake::VERSION is now in
+ lib/rake/version.rb. Fixes `make install`
- * array.c (rb_ary_sort_bang): freeze temporary array.
+Fri Jun 24 07:11:37 2011 Eric Hodel <drbrain@segment7.net>
-Thu May 8 13:19:18 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * lib/rake: Import Rake 0.9.2
- * vm.c (rb_thread_mark): mark stat_insn_usage only when ptr is not
- null.
+Fri Jun 24 00:44:15 2011 Tadayoshi Funaba <tadf@dotrb.org>
-Thu May 8 10:44:04 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * ext/date/date_core.c (c_valid_{julian,gregorian}_p): fixed the range of month.
- * array.c (sort_reentered): reentered check may be called from
- Array#sort.
+Fri Jun 24 00:14:23 2011 Tadayoshi Funaba <tadf@dotrb.org>
-Thu May 8 09:51:52 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * ext/date/date_core.c: trivial changes on text.
- * array.c (sort_1, sort_2): check for reentered and if elements are
- accessible. [ruby-core:16679]
+Thu Jun 23 22:46:57 2011 Hiroshi Nakamura <nahi@ruby-lang.org>
-Thu May 8 06:43:52 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * ext/openssl/ossl_x509name.c: Add X509::Name#hash_old as a wrapper
+ for X509_NAME_hash_old in OpenSSL 1.0.0. See #4805
- * dln.c (dln_find_exe_r, dln_find_file_r): reentrant versions.
+ * test/openssl/test_x509name.rb (test_hash): Make test pass with
+ OpenSSL 1.0.0.
- * file.c (rb_find_file_ext, rb_find_file), process.c (proc_exec_v),
- (rb_proc_exec, proc_spawn_v, proc_spawn), ruby.c (process_options):
- use reentrant versions.
+ * NEWS: Add it.
-Thu May 8 06:27:33 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Thu Jun 23 19:30:53 2011 Hiroshi Nakamura <nahi@ruby-lang.org>
- * thread.c (rb_thread_key_p): thread local storage stores ID.
+ * ext/openssl/ossl_ssl_session.c (ossl_ssl_session_set_time): Check
+ argument type with NUM2LONG if the arg is not a Time object.
+ See #4919.
-Thu May 8 01:10:03 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * ext/openssl/ossl_ssl_session.c (ossl_ssl_session_set_timeout): Check
+ type with NUM2LONG. Time as an arg is not allowed. See #4919.
- * string.c (tr_trans): should squeeze properly. [ruby-dev:34587]
+ * test/openssl/test_ssl_session.rb (test_session_time,
+ test_session_timeout): Test it.
- * string.c (tr_trans): had a bug in treating multi-byte character
- replacement.
+Wed Jun 23 13:30:30 2011 Shota Fukumori <sorah@tubusu.net>
- * string.c (rb_str_delete_bang): need not to do anything for empty
- strings.
+ * signal.c(ruby_atomic_exchange): Fix definition style.
- * test/ruby/test_m17n_comb.rb (TestM17NComb::test_str_delete): add
- test for empty receiver.
+Wed Jun 22 22:34:05 2011 Hiroshi Nakamura <nahi@ruby-lang.org>
-Wed May 7 20:19:18 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+ * ext/openssl/ossl_ssl.c (ossl_sslctx_session_new_cb): Return 0 to
+ OpenSSL from the callback for SSL_CTX_sess_set_get_cb().
+ Returning 0 means to OpenSSL that the session is still valid
+ (since we created Ruby Session object) and was not freed by us with
+ SSL_SESSION_free(). Call SSLContext#remove_session(sess) in
+ session_get_cb block if you don't want OpenSSL to cache the session
+ internally.
+ This potential issue was pointed by Ippei Obayashi. See #4416.
- * ruby.c (process_options, ruby_set_argv): set encoding of rb_argv
- after Init_prelude() because cannot load encoding extensions before
+ * test/openssl/test_ssl_session.rb (test_ctx_server_session_cb): Test
it.
-Wed May 7 20:00:21 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * numeric.c (bit_coerce): float should not be a valid operand of
- bitwise operations. [ruby-dev:34583]
-
-Wed May 7 19:35:29 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * thread.c (rb_thread_key_p): should always convert symbol to ID.
- [ruby-dev:34588]
-
-Wed May 7 19:30:34 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * numeric.c (fix_divide): float division should floor() before
- rounding into integer. [ruby-dev:34584]
-
-Wed May 7 18:02:01 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * string.c (sym_to_i): remove obsolete method. preparation for
- symbol GC.
-
- * numeric.c (fix_to_sym): ditto.
-
- * numeric.c (fix_id2name): ditto.
-
-Wed May 7 17:43:22 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * io.c (io_puts_ary): check recursion first. [ruby-dev:34580]
-
-Wed May 7 17:41:14 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * vm.c (vm_eval_body): initialize retval. [ruby-dev:34576]
-
-Wed May 7 13:02:56 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * bignum.c (rb_big_fdiv): flo.fdiv(NaN) should result NaN.
-
- * numeric.c (num_quo): renamed and moved from bignum.c.
- [ruby-dev:34582]
-
- * bignum.c (rb_big_fdiv): update RDoc description
-
- * rational.c (nurat_s_new_m): small refactoring.
-
- * bignum.c (rb_big2dbl): no need for forceful warning when
- converting to float. overflow is a nature of float values.
-
-Wed May 7 00:54:25 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * ext/zlib/zlib.c (gzreader_gets): may cause infinite loop.
- a patch from Kouya <kouyataifu4 at gmail.com> in
- [ruby-reference-manual:762].
-
-Tue May 6 02:08:18 2008 Tanaka Akira <akr@fsij.org>
-
- * test/io/nonblock/test_flush.rb: don't set Thread.abort_on_exception.
-
- * test/net/imap/test_imap.rb: ensure disconnecting imap to terminate
- receiver thread.
-
-Tue May 6 00:29:21 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * iseq.c (insn_operand_intern): should handle Qundef embedded in
- operand. [ruby-core:16656]
-
-Tue May 6 00:00:02 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * compile.c (iseq_compile_each): should call compile_cpath() for
- modules as well. [ruby-dev:34585]
-
- * insns.def (defineclass): add undef handling.
-
-Mon May 5 23:49:40 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * insns.def (defineclass): was using wrong variable. [ruby-dev:34592]
-
-Mon May 5 20:07:59 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * io.c (io_fflush): IO#flush problem within threads. a patch from
- <s.wanabe at gmail.com> in [ruby-dev:34595].
-
-Mon May 5 19:58:44 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * compile.c (defined_expr): protect some expression from
- segmentation fault. a patch from wanabe <s.wanabe at gmail.com>
- in [ruby-dev:34593].
-
-Mon May 5 19:49:59 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * struct.c (rb_struct_s_def): Struct.new(0) should not SEGV.
- based on the patch from wanabe <s.wanabe at gmail.com> in
- [ruby-dev:34594].
-
- * struct.c (make_struct): call to_str on name object.
-
-Mon May 5 17:17:40 2008 Tanaka Akira <akr@fsij.org>
-
- * eval.c (ruby_cleanup): wrap ruby_finalize_0 by SAVE_ROOT_JMPBUF to
- avoid SEGV by at_exit { Fiber.new{}.resume } on IA64.
-
-Mon May 5 12:12:11 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * array.c (rb_ary_slice_bang): should adjust length before making
- sub-array.
-
-Mon May 5 11:36:14 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * array.c (rb_ary_dup): should dupe corresponding information.
- [ruby-dev:34581]
-
-Mon May 5 11:13:50 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * compile.c (compile_cpath): use Qundef to denote cbase lookup.
-
- * insns.def (defineclass): Qundef is passed for cbase.
-
- * insns.def (setconstant): ditto.
-
- * vm_insnhelper.c (vm_check_if_namespace): use rb_inspect()
- instead of rb_obj_as_string() for better description.
-
-Mon May 5 02:10:23 2008 Tanaka Akira <akr@fsij.org>
-
- * gc.c (set_heaps_increment): fix memory allocation strategy by
- determining heaps_inc from heaps_used, not objects_delta.
- (struct rb_objspace): delta removed. change increment, length and
- used to long for LP64.
- (objects_delta): removed.
- (allocate_heaps): add next_heaps_length argument.
- (init_heap): renamed from add_heap.
- (garbage_collect): use heaps_increment in dont_gc.
-
-Sun May 4 21:09:32 2008 Tanaka Akira <akr@fsij.org>
-
- * lib/getoptlong.rb: use $stderr instead of $deferr.
-
-Sun May 4 16:04:28 2008 Tanaka Akira <akr@fsij.org>
-
- * time.c (obj2nsec): fix string argument.
-
-Sun May 4 14:29:14 2008 Tanaka Akira <akr@fsij.org>
-
- * eval.c (rb_obj_respond_to): check the result of respond_to? method
- by RTEST.
-
-Sun May 4 12:57:58 2008 Tanaka Akira <akr@fsij.org>
-
- * string.c (rb_str_each_line): return original string.
-
-Sat May 3 20:57:06 2008 Tanaka Akira <akr@fsij.org>
-
- * test/ruby/envutil.rb (Test::Unit::Assertions#assert_normal_exit):
- new method.
+Wed Jun 22 22:21:17 2011 Martin Bosslet <Martin.Bosslet@googlemail.com>
-Sat May 3 18:10:54 2008 Tanaka Akira <akr@fsij.org>
+ * ext/openssl/ossl_ssl_session.c: Respect T_BIGNUM time values. Patch by
+ Tomoyuki Chikanaga.
+ [ Ruby 1.9 - Bug #4919 ] [ruby-dev:43869]
- * time.c (time_timespec): raise TypeError for nil and other objects
- which has no divmod method.
+Wed Jun 22 21:29:25 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
-Fri May 2 23:59:26 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * ext/socket/depend (SOCK_HEADERS): use $(top_srcdir) instead of
+ $(topdir). sorry!
- * io.c (internal_read_func, internal_write_func): split from
- internal_io_func.
+Wed Jun 22 19:47:03 2011 NARUSE, Yui <naruse@ruby-lang.org>
-Fri May 2 23:55:15 2008 Tanaka Akira <akr@fsij.org>
+ * cont.c (cont_capture): add volatile.
+ On clang -O, it is needed to avoid the optimization.
+ With this and llvm/clang's recent fix, clang 3.0 can
+ build ruby-trunk with -O option.
- * variable.c (rb_define_hooked_variable): guard *var from GC to
- prevent collecting argf under RUBY_DEBUG=gc_stress.
+ * cont.c (cont_capture): use for-loop.
-Fri May 2 17:29:59 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * array.c (rb_ary_each): add volatile and use it.
- * range.c (range_step): call to_int if step is not a numeric
- value. [ruby-dev:34575]
+ * vm_insnhelper.c (vm_call_cfunc): ditto.
-Fri May 2 16:10:57 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+Wed Jun 22 18:20:46 2011 Hiroshi Nakamura <nahi@ruby-lang.org>
- * range.c (range_step): do not forcefully convert steps into
- integers. [ruby-dev:34571]
+ * ext/openssl/ossl_ssl.c (ossl_sslctx_session_remove_cb):
+ OpenSSL::SSL::SSLContext#session_remove_cb was broken. It wrongly
+ tried to call the session_*new*_cb callback.
-Fri May 2 14:52:33 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * test/openssl/test_ssl_session.rb (class OpenSSL): Test it.
- * misc/ruby-mode.el: move fontifying code from hook. a patch from
- Phil Hagelberg <phil at hagelb.org> in [ruby-core:16636].
+Wed Jun 22 17:37:49 2011 Martin Bosslet <Martin.Bosslet@googlemail.com>
-Fri May 2 14:10:17 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * ext/openssl/ossl.h: Introduced OSSL_BIO_reset macro for PEM/DER
+ fallback scenarios.
- * range.c (range_step): step may be bignum.
-
-Fri May 2 13:52:36 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * re.c (Init_Regexp): remove MatchData#select. [ruby-dev:34563]
-
-Thu May 1 23:59:59 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * bignum.c (rb_big_divide), numeric.c (fix_divide): check for result
- domain. [ruby-dev:34559]
-
-Thu May 1 23:57:06 2008 James Edward Gray II <jeg2@ruby-lang.org>
-
- * lib/net/telnet.rb: This patch from Brian Candler adds a FailEOF mode which
- can be activated to have net/telnet raise EOFError exceptions when the
- remote connection is closed. The default behavior remains unchanged though.
-
-Thu May 1 23:43:21 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * range.c (range_step): check if step can be converted to an integer.
- [ruby-dev:34558]
-
- * range.c (range_step): allow float step bigger than zero but less
- than one. [ruby-dev:34557]
-
-Thu May 1 23:20:12 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * bignum.c (rb_big_divide): return an integer for idiv.
- [ruby-dev:34553]
-
-Thu May 1 20:47:30 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * hash.c (rb_hash_s_create): should access converted hash value.
- [ruby-dev:34555]
-
-Thu May 1 20:31:09 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * test/ruby/test_parse.rb (TestParse::test_void_expr_stmts_value):
- shut up warning.
-
- * rational.c (nurat_to_f): no need for forceful warning when
- converting to float. overflow is a nature of float values.
-
-Thu May 1 16:10:21 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * hash.c (env_delete_if): return enumerator if no block given.
- [ruby-dev:34554]
-
-Wed Apr 30 21:36:40 2008 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
-
- * lib/erb.rb (url_encode): [ruby-dev:34497] ERB::Util#url_encode
- bug fix. Reported by rubikitch.
-
- * test/erb/test_erb.rb: ditto
-
-Wed Apr 30 20:11:36 2008 James Edward Gray II <jeg2@ruby-lang.org>
-
- * lib/net/telnet.rb: Fixing a bug where line endings would not be properly
- escaped when the two character ending was broken up into separate TCP
- packets. Issue reported and patched by Brian Candler.
-
-Wed Apr 30 18:03:01 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * load.c (rb_load_path), vm_core.h (rb_vm_t): moved to VM.
-
- * load.c (rb_get_load_path): returns absolute load path.
-
- * load.c (load_path_getter): $LOAD_PATH getter.
-
- * file.c (rb_find_file_ext, rb_find_file), ruby.c (push_include,
- ruby_init_loadpath): use the accessor.
-
- * vm.c (rb_vm_mark): mark load_path.
-
-Wed Apr 30 17:47:21 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * re.c (rb_reg_search): use local variable. a patch from wanabe
- <s.wanabe AT gmail.com> in [ruby-dev:34537]. [ruby-dev:34492]
-
-Wed Apr 30 16:10:18 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * eval_intern.h: specify the values of the enumeration constants
- explicitly. [ruby-dev:34489]
-
-Wed Apr 30 12:32:39 2008 Tanaka Akira <akr@fsij.org>
-
- * process.c (check_exec_redirect_fd): prohibit duplex IO.
- (check_exec_fds): record maxhint even if close_others is not
- specified.
- (rb_exec_arg_fixup): renamed from rb_exec_arg_fix.
-
-Mon Apr 28 20:24:27 2008 Tadayoshi Funaba <tadf@dotrb.org>
-
- * rational.c (nurat_marshal_load): checks the given
- denominator. [ruby-dev:34536]
-
-Mon Apr 28 14:21:18 2008 Tanaka Akira <akr@fsij.org>
-
- * include/ruby/ruby.h (POSFIXABLE): use FIXNUM_MAX+1 instead of
- FIXNUM_MAX to make it possible to convert to double accurately on
- environments with 64bit VALUE and 64bit double.
- It assumes FLT_RADIX is 2.
- fix RubyForge bug #14102.
-
-Mon Apr 28 12:48:57 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * process.c (rb_exec_arg_addopt, rb_exec_arg_addopt): now can specify
- close_exec on having no fork environment (but still meaningless).
-
-Mon Apr 28 11:11:29 2008 Tanaka Akira <akr@fsij.org>
-
- * process.c (run_exec_options): don't call FIX2INT for nil.
-
-Mon Apr 28 11:11:38 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * proc.c (method_name): should return symbols instead of strings.
- [ruby-dev:34531]
-
-Mon Apr 28 09:02:43 2008 Tanaka Akira <akr@fsij.org>
-
- * include/ruby/intern.h (rb_exec_arg_init): declared.
- (rb_exec_arg_addopt): declared.
- (rb_exec_arg_fix): declared.
- (rb_exec_initarg): removed.
- (rb_exec_getargs): removed.
- (rb_exec_initarg2): removed.
-
- * io.c (struct popen_arg): make execarg as a pointer.
- (popen_exec): follow popen_arg change.
- (pipe_open): add eargp argument. extract argc and argv from eargp.
- use rb_exec_arg_addopt to add redirect options.
- (pipe_open_v): set up struct rb_exec_arg.
- (pipe_open_s): set up struct rb_exec_arg.
-
- * process.c (rb_exec_arg_addopt): new function extracted from
- check_exec_options_i.
- (check_exec_options_i): use rb_exec_arg_addopt.
- (rb_check_exec_options): opthash is always a hash now.
- (rb_exec_getargs): make it static.
- (rb_exec_fillarg): renamed from rb_exec_initarg2. don't set up
- redirect_fds.
- (rb_exec_arg_init): new function.
- (rb_exec_arg_fix): new function.
- (rb_f_exec): use rb_exec_arg_init and rb_exec_arg_fix. use
- rb_exec_arg_addopt to set close_others option.
- (run_exec_options): make close_others by default.
- (rb_spawn_internal): use rb_exec_arg_init and rb_exec_arg_fix. use
- rb_exec_arg_addopt to set close_others option.
-
-Sun Apr 27 18:59:04 2008 Tadayoshi Funaba <tadf@dotrb.org>
-
- * rational.c (nurat_expt): use f_rational_new2. [ruby-dev:34524]
-
-Sun Apr 27 15:23:40 2008 Koichi Sasada <ko1@atdot.net>
-
- * gc.c (gc_count): add a GC.count method. This method returns
- a GC invoking count.
-
-Sun Apr 27 12:20:33 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * vm_core.h (rb_vm_t), gc.c (rb_objspace, rb_newobj), vm.c
- (Init_BareVM): per-VM object space support, which is disabled now.
-
- * gc.c (rb_objspace_alloc), vm.c (Init_BareVM): should not use ruby
- malloc here.
-
- * gc.c (garbage_collect, etc): performance improvement by passing the
- reference instead of referring the global variable in each functions.
-
-Sun Apr 27 08:06:15 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * ruby.c (ruby_set_argv): ARGV should be locale encoding.
- [ruby-list:44861]
-
-Sun Apr 27 01:46:29 2008 Tanaka Akira <akr@fsij.org>
-
- * lib/open3.rb (Open3.popen3w): removed.
- (Open3.popen3): notice wait_thr.
-
-Sun Apr 27 01:13:05 2008 Eric Hodel <drbrain@segment7.net>
-
- * lib/rdoc, test/rdoc: Update to RDoc 2.0.0 r56.
-
-Sat Apr 26 21:30:40 2008 Tanaka Akira <akr@fsij.org>
-
- * include/ruby/intern.h (rb_hash_dup): declared.
-
- * hash.c (rb_hash_dup): new function.
-
- * process.c (rb_spawn_internal): don't modify option hash.
-
-Sat Apr 26 18:36:31 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * io.c, signal.c, thread.c, thread_win32.c, include/ruby/intern.h:
- suppress warnings.
-
-Sat Apr 26 17:42:30 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * error.c (builtin_types), gc.c (count_objects): added Complex and
- Rational.
-
-Sat Apr 26 17:35:19 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * error.c (rb_eNOERROR): renamed.
-
-Sat Apr 26 17:30:11 2008 Koichi Sasada <ko1@atdot.net>
-
- * include/ruby/ruby.h, gc.c: remove T_BLOCK.
-
- * include/ruby/ruby.h: re-number T_xxx.
-
-Sat Apr 26 17:31:09 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * process.c (rb_cProcessTms, rb_cProcessStatus): renamed.
-
- * error.c (builtin_types), signal.c (siglist), st.c (primes),
- struct.c (ref_func), time.c (months): constified.
-
-Sat Apr 26 13:00:41 2008 Tanaka Akira <akr@fsij.org>
-
- * lib/open3.rb: double fork is replaced by spawn with Process.detach.
- (Open3.popen3w): new method to access the thread returned by
- Process.detach.
-
-Sat Apr 26 00:47:43 2008 Tanaka Akira <akr@fsij.org>
-
- * process.c (rb_spawn_internal): new function to specify
- default_close_others.
- (rb_spawn): specify default_close_others true.
- (rb_f_system): call rb_spawn_internal with default_close_others as
- false.
-
-Sat Apr 26 12:26:41 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * range.c (range_each): use INT2FIX() for fixnum values.
-
-Fri Apr 25 17:56:25 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * gc.c (free_unused_heaps): preserve last used heap segment to
- reduce malloc() call.
-
-Fri Apr 25 17:54:10 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * gc.c (HEAP_SIZE): use smaller heap segment (2K) for more chance
- to be freed. based on patch from authorNari <authornari at gmail.com>.
-
- * gc.c (rb_newobj_from_heap): eventually allocate heap segments.
-
-Fri Apr 25 15:35:36 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * process.c (rb_spawn): rb_exec_initarg() returns new argc and argv in
- earg.
-
-Fri Apr 25 12:37:54 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * array.c (flatten): returns an instance of same class.
- [ruby-core:16554]
-
-Fri Apr 25 10:52:27 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * include/ruby/win32.h: define mode_t for umask.
-
- * process.c (check_exec_options_i, check_exec_fds, run_exec_options):
- support "close_others" only when fork(2) is available.
-
-Fri Apr 25 00:16:11 2008 Tanaka Akira <akr@fsij.org>
-
- * process.c: include sys/stat.h for umask.
-
-Thu Apr 24 23:25:17 2008 Tanaka Akira <akr@fsij.org>
-
- * include/ruby/intern.h (rb_env_clear): declared.
- (rb_io_mode_modenum): declared.
- (rb_close_before_exec): declared.
- (struct rb_exec_arg): add options and redirect_fds field.
- (rb_check_argv): removed.
- (rb_exec_initarg): declared.
- (rb_exec_getargs): declared.
- (rb_exec_initarg2): declared.
- (rb_fork): add third argument: fds.
-
- * io.c (max_file_descriptor): new static variable to record maximum
- file descriptor ruby used.
- (UPDATE_MAXFD): new macro.
- (UPDATE_MAXFD_PIPE): new macro.
- (rb_io_mode_modenum): externed.
- (rb_sysopen): update max_file_descriptor.
- (rb_close_before_exec): new function.
- (popen_exec): redirection removed because it is done by extended
- spawn mechanism.
- (pipe_open): generate a hash for spawn options to specify
- redirections.
- (pipe_open_v): use rb_exec_getargs.
- (pipe_open_s): use rb_exec_getargs.
- (rb_io_initialize): update max_file_descriptor.
-
- * process.c (hide_obj): new function.
- (check_exec_redirect_fd): new function.
- (check_exec_redirect): new function.
- (check_exec_options_i): new function.
- (check_exec_fds): new function.
- (rb_check_exec_options): new function.
- (check_exec_env_i): new function.
- (rb_check_exec_env): new function.
- (rb_exec_getargs): new function.
- (rb_exec_initarg2): new function.
- (rb_exec_initarg): new function.
- (rb_f_exec): use rb_exec_initarg.
- (intcmp): new function.
- (run_exec_dup2): new function.
- (run_exec_close): new function.
- (run_exec_open): new function.
- (run_exec_pgroup): new function.
- (run_exec_rlimit): new function.
- (run_exec_options): new function.
- (rb_exec): call run_exec_options.
- (move_fds_to_avoid_crash): new function.
- (pipe_nocrash): new function.
- (rb_fork): use pipe_nocrash to avoid file descriptor conflicts.
- (rb_spawn): use rb_exec_initarg.
- (rlimit_resource_name2int): extracted from rlimit_resource_type.
- (rlimit_type_by_hname): new function.
- (rlimit_type_by_lname): new function.
- (rlimit_resource_type): use rlimit_type_by_hname.
- (proc_daemon): add fds argument for rb_fork.
-
- * hash.c (rb_env_clear): renamed from env_clear and externed.
-
- [ruby-dev:34086]
-
-Thu Apr 24 23:00:58 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * test/ruby/test_thread.rb: fix typos.
-
- * test/ruby/envutil.rb (rubyexec): move Open3.popen3 call into timeout
- block.
-
-Thu Apr 24 22:34:52 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * test/ruby/test_comparable.rb: new tests for Comparable, to achieve
- 100% test coverage of compar.c.
-
-Thu Apr 24 17:19:01 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * ruby.c (process_options): set safe_level before loading script.
- [ruby-dev:34421]
-
-Thu Apr 24 14:15:11 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * dln.c (dln_find_1): prior files with extensions to files sans
- extensions. [ruby-core:16517]
-
-Thu Apr 24 00:26:06 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * lib/rdoc/ri/descriptions.rb: fixed wrong class nestings.
-
-Thu Apr 24 00:20:01 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * test/ruby/test_settracefunc.rb: add a test for set_trace_func.
-
- * test/ruby/envutil.rb: move "rubyexec" method from test_rubyoptions.rb.
-
- * test/ruby/test_rubyoptions.rb: use rubyexec in envutil.rb.
-
- * test/ruby/test_thread.rb: add tests to achieve over 90% test coverage
- of thread.c.
-
-Wed Apr 23 15:28:52 2008 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
-
- * test/gdbm/test_gdbm.rb (TestGDBM#test_s_open_no_create): failed
- notice moved from comment to assertion message. [ruby-dev:29127]
-
-Wed Apr 23 11:49:54 2008 Akinori MUSHA <knu@iDaemons.org>
-
- * lib/set.rb (Set#each, SortedSet#each, TC_Set#test_each): Return
- an enumerator if no block is given.
-
-Wed Apr 23 00:36:03 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * test/openssl/test_ssl.rb (start_server): add timeout to server.join.
-
-Wed Apr 23 00:18:45 2008 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
-
- * test/ruby/test_symbol.rb (TestSymbol#test_to_proc): Improve
- tests of Symbol#to_proc.
-
-Tue Apr 22 22:40:57 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/drb/drb.rb (DRb::DRbServer::check_insecure_method): should
- check method names by symbols, not by strings. a patch from
- Kazuhiro NISHIYAMA <zn at mbf.nifty.com> in [ruby-dev:34487].
-
-Tue Apr 22 22:15:54 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * misc/ruby-style.el (ruby-style-{case,label}-indent): up list from
- indentation point.
-
-Tue Apr 22 21:09:05 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * ext/nkf/nkf-utf8/nkf.c (score_table_A0, score_table_F0):
- type of content is unsigned char.
-
- * ext/nkf/nkf-utf8/nkf.c (push_broken_buf): 'c' is nkf_char.
-
- * ext/nkf/nkf-utf8/nkf.c (push_broken_buf): enc is 0 or pointer.
-
- * ext/nkf//nkf.c (options): type of option is unsigned char.
-
-Tue Apr 22 20:51:58 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * ext/nkf/nkf-utf8/nkf.c (z_conv): characters must be nkf_char.
-
-Tue Apr 22 19:23:05 2008 Akinori MUSHA <knu@iDaemons.org>
-
- * enumerator.c (enumerator_initialize): Remove an undocumented
- feature (passing a block to the constructor) that's broken.
- This is not what I intended.
-
-Tue Apr 22 17:54:05 2008 URABE Shyouhei <shyouhei@ruby-lang.org>
-
- * vm_core.h (exec_event_hooks): ``inline'' is a type modifier, not
- a type itself.
-
-Tue Apr 22 16:24:27 2008 URABE Shyouhei <shyouhei@ruby-lang.org>
-
- * string.c (rb_enc_cr_str_buf_cat): do not use C++ comments.
-
-Tue Apr 22 16:23:53 2008 URABE Shyouhei <shyouhei@ruby-lang.org>
-
- * configure.in: use AC_USE_SYSTEM_EXTENSIONS.
-
-Tue Apr 22 16:23:16 2008 URABE Shyouhei <shyouhei@ruby-lang.org>
-
- * vm_evalbody.c (DECL_SC_REG): use __asm__ instead.
-
-Tue Apr 22 16:18:30 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * vm_evalbody.c (DECL_SC_REG): typo fixed.
-
-Tue Apr 22 15:25:04 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * configure.in (struct timespec): needs time.h according to POSIX.
-
-Tue Apr 22 13:19:48 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * thread.c (rb_thread_stop_timer_thread): should clear
- timer_thread_id after stopping it.
-
-Tue Apr 22 13:12:58 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * thread.c (thread_join): remove the current thread from the join list
- of the target thread.
-
-Tue Apr 22 12:03:50 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * vm_insnhelper.c (vm_get_ev_const): search from the base klass if it
- is given.
-
-Tue Apr 22 09:58:13 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * ext/win32ole/win32ole.c: avoid warnings.
-
-Tue Apr 22 09:56:51 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * file.c (eaccess): workaround for recent msvcrt's behavior.
- [ruby-core:16460]
-
-Mon Apr 21 19:08:32 2008 Tanaka Akira <akr@fsij.org>
-
- * io.c (copy_stream_body): call rb_io_check_readable and
- rb_io_check_writable.
-
-Mon Apr 21 17:45:27 2008 Akinori MUSHA <knu@iDaemons.org>
-
- * ext/dbm/dbm.c (fdbm_each_value, fdbm_each_key, fdbm_each_pair):
- GDBM#{each,each_pair,each_key,each_value}: Return an enumerator
- if no block is given.
-
- * ext/gdbm/gdbm.c (fgdbm_each_value, fgdbm_each_key,
- fgdbm_each_pair): GDBM#{each,each_pair,each_key,each_value}:
- Return an enumerator if no block is given.
-
- * ext/openssl/ossl_config.c (ossl_config_each):
- OpenSSL::Config#each: Return an enumerator if no block is given.
-
- * ext/readline/readline.c (hist_each): Readline::HISTORY#each:
- Return an enumerator if no block is given.
-
- * ext/sdbm/init.c (fsdbm_each_value, fsdbm_each_key,
- fsdbm_each_pair): SDBM#{each,each_pair,each_key,each_value}:
- Return an enumerator if no block is given.
-
- * ext/stringio/stringio.c (strio_each_byte, strio_each):
- StringIO#{each,each_line,each_byte}: Return an enumerator if no
- block is given.
-
- * ext/stringio/stringio.c (Init_stringio): Add #lines and #bytes,
- which are aliases to #each_line and #each_byte, respectively.
-
- * ext/win32ole/win32ole.c (fole_each): WIN32OLE#each: Return an
- enumerator if no block is given.
-
- * ext/zlib/zlib.c (rb_gzreader_each_byte, rb_gzreader_each):
- Zlib::GzipReader#{each,each_line,each_byte}: Return an
- enumerator if no block is given.
-
- * ext/zlib/zlib.c (Init_zlib): Add Zlib::GzipReader#lines and
- #bytes, which are aliases to #each_line and #each_byte,
- respectively.
-
-Mon Apr 21 17:01:44 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * iseq.c (rb_iseq_compile_with_option): check if src is a string.
- [ruby-core:16453]
-
-Mon Apr 21 16:06:47 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * enumerator.c (enumerator_init): preserve the method name in ID.
-
- * enumerator.c (enumerator_each): need not to call rb_to_id().
-
- * enumerator.c (enumerator_with_index): ditto.
-
-Mon Apr 21 11:00:27 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * compile.c (defined_expr): capture exception during defined?
- evaluation. a patch from wanabe <s.wanabe at gmail.com> in
- [ruby-dev:34461]. [ruby-core:16010]
-
-Mon Apr 21 10:06:26 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * time.c: should include <errno.h> to refer to errno.
-
-Mon Apr 21 09:58:04 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * time.c (rb_strftime): check errno to detect strftime(3)'s error.
- this is workaround for recent version of MSVCRT.
- [ruby-dev:34456]
-
-Mon Apr 21 08:54:30 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * gc.c (ruby_xmalloc): use size_t for malloc argument instead of long.
-
-Sun Apr 20 21:00:21 2008 Akinori MUSHA <knu@iDaemons.org>
-
- * enumerator.c, include/ruby/ruby.h: Export rb_cEnumerator.
-
-Sun Apr 20 20:47:50 2008 Akinori MUSHA <knu@iDaemons.org>
-
- * enumerator.c: Resolve the method every time an enumeration
- method is run, not once when the enumerator is initialized as it
- was before, so that method_missing() and method (re)definition
- afterwards are both in effect; pointed out in: [ruby-core:16441]
-
-Sun Apr 20 15:11:00 2008 Tanaka Akira <akr@fsij.org>
-
- * io.c (copy_stream_rbuf_to_dst): removed.
- (copy_stream_fallback_body): don't bypass write method.
- (copy_stream_body): simplified.
-
-Sun Apr 20 15:01:25 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * vm_core.h (struct iseq_compile_data): moved label_no from
- new_label_body().
-
- * compile.c (iseq_set_exception_table): allocates catch_table only
- when entries exist.
-
- * compile.c (struct iseq_link_element, struct iseq_insn_data): made
- enum for debuggers.
-
-Sun Apr 20 14:44:45 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * compile.c (iseq_compile_each): fix for splat in when and rescue.
- a patch from wanabe <s.wanabe AT gmail.com> in [ruby-dev:34429].
- [ruby-core:14537]
-
-Sun Apr 20 13:55:37 2008 Tanaka Akira <akr@fsij.org>
-
- * io.c (copy_stream_fallback): write directly (bypassing write method)
- if possible.
-
-Sun Apr 20 12:49:03 2008 Tanaka Akira <akr@fsij.org>
-
- * io.c (copy_stream_fallback): read directly (bypassing readpartial
- method) if possible.
-
-Sun Apr 20 04:45:13 2008 Tanaka Akira <akr@fsij.org>
-
- * io.c (copy_stream_body): use readpartial and write method for
- non-IOs such as StringIO and ARGF.
-
-Fri Apr 18 20:57:33 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * test/ruby/test_array.rb: add tests to achieve over 95% test coverage
- of array.c.
-
-Fri Apr 18 17:37:48 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * gc.c (rb_gc_mark_locations): get rid of underflow.
-
- * gc.c (mark_current_machine_context): check if the main thread stack
- position may shrink under the initialized position. [ruby-core:16436]
-
-Thu Apr 17 22:20:52 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * enc/trans/utf_16_32.c (fun_so_to_utf_16be, fun_so_to_utf_16le): add
- parentheses to remove warnings of gcc.
-
- * io.c (rb_io_getc): remove unused variables.
-
- * compile.c (NODE_NEXT, NODE_REDO): remove unused labels.
-
- * ext/nkf/nkf.c (rb_nkf_convert): remove unused variables.
-
- * ext/syck/rubyext.c (syck_resolver_initialize,
- syck_resolver_detect_implicit, syck_emitter_emit): remove unused
- variables.
-
-Thu Apr 17 20:12:47 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * test/ruby/test_rubyoptions.rb (test_search): enable some assertions.
-
- * test/ruby/test_rubyoptions.rb: flunk message in win32.
-
-Thu Apr 17 16:07:12 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * test/ruby/test_rubyoptions.rb (ruby): run in C locale.
-
- * test/ruby/test_rubyoptions.rb (test_encoding): --encoding does not
- affect source code.
-
-Thu Apr 17 00:45:41 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * test/ruby/test_process.rb (test_rlimit_nofile): reset RLIMIT_NOFILE
- before exit (for gcov).
-
- * test/ruby/test_rubyoptions.rb: new tests for option of ruby
- interpreter, to achieve over 95% test coverage of ruby.c.
-
-Wed Apr 16 02:40:44 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ruby.c (process_options): preludes and parser need to run in safe
- level 0. [ruby-dev:34407]
-
-Wed Apr 16 02:26:27 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ruby.c (process_options): dln_find_file returns the pointer to a
- static buffer, so should copy it. [ruby-dev:34409]
-
-Tue Apr 15 23:08:46 2008 Kouhei Sutou <kou@cozmixng.org>
-
- * lib/xmlrpc/client.rb: fix cookie handling. [ruby-dev:34403]
-
- * test/xmlrpc/test_cookie.rb: add a test for the above fix.
-
-Tue Apr 15 19:20:14 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * io.c: #undef rb_argv moved before #define.
-
-Tue Apr 15 18:02:17 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * include/ruby/intern.h (rb_argv): replaced with rb_get_argv().
- [ruby-Bugs-19514]
-
-Tue Apr 15 17:10:59 2008 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
-
- * lib/net/http.rb, lib/net/smtp.rb, lib/net/pop.rb: update
- URLs of Japanese documents.
-
-Tue Apr 15 16:45:14 2008 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
-
- * test/ruby/test_symbol.rb (TestSymbol#test_to_proc): add tests.
-
-Tue Apr 15 15:38:02 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * misc/ruby-mode.el (ruby-encoding-map): added shift-jis for older
- versions.
-
- * misc/ruby-mode.el (ruby-mode-set-encoding):
- coding-system-to-mime-charset is not a standard function.
- [carbon-emacs:795]
- fix for the case that magic comment exists but coding system is
- absent.
-
- * misc/ruby-mode.el (ruby-mode): use write-contents-functions or
- write-contents-hooks for older versions.
-
-Tue Apr 15 07:21:21 2008 Tadayoshi Funaba <tadf@dotrb.org>
-
- * complex.c (nucomp_div): [ruby-dev:34357]
-
- * complex.c (nucomp_abs): use hypot.
-
- * complex.c (nucomp_quo): do not force conversion.
-
- * test/ruby/test_complex.rb: omitted some meaningless tests.
-
-Mon Apr 14 23:25:50 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * test/ruby/test_objectspace.rb: add a test for
- ObjectSpace.count_objects.
-
-Mon Apr 14 22:44:24 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * file.c (SET_EXTERNAL_ENCODING): avoid call rb_enc_check() on
- half-baked result string.
-
- * re.c (rb_reg_search): make search reentrant. [ruby-dev:34223]
-
- * test/ruby/test_parse.rb (TestParse::test_global_variable):
- should preserve $& variable.
-
-Mon Apr 14 17:23:27 2008 Akinori MUSHA <knu@iDaemons.org>
-
- * hash.c (rb_hash_delete_if, rb_hash_reject_bang, env_delete_if,
- env_reject_bang): Return an enumerator if no block is given.
-
-Mon Apr 14 14:33:59 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * compile.c, compile.h (compile_debug): made runtime option.
-
- * debug.c (ruby_debug_print_indent): returns if debug_level exceeds
- the threshold.
-
- * debug.c (ruby_debug_printf): printf to stderr.
-
- * iseq.c (make_compile_option, make_compile_option_value): added
- debug_level option.
-
- * vm_core.h (rb_compile_option_t): added debug_level.
-
- * vm_core.h (struct iseq_compile_data): added node_level.
-
-Mon Apr 14 12:52:25 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * gc.c (Init_stack): use ruby_init_stack. [ruby-dev:34350]
-
- * gc.c (rb_objspace_t): packed globals. [ruby-dev:34348]
-
- * gc.c (finalizers): removed. [ruby-dev:34349]
-
-Mon Apr 14 11:30:07 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * array.c (ary_new): new integer overflow check condition.
- suggested by TOYOFUKU Chikanobu <nobu_toyofuku at nifty.com> in
- [ruby-dev:34156].
-
- * array.c (rb_ary_initialize): ditto.
-
-Mon Apr 14 00:51:40 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * test/ruby/test_parse.rb: add tests to achieve over 95% test coverage
- of parse.y.
-
-Sun Apr 13 23:53:58 2008 Akinori MUSHA <knu@iDaemons.org>
-
- * enum.c (enum_cycle): Make Enumerable#cycle do a finite loop when
- the number of cycles is specified.
-
- * array.c (rb_ary_cycle): Ditto for Array#cycle.
-
-Sun Apr 13 18:52:27 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * thread_pthread.c (lock_func): should not check interrupts in
- blocking region. [ruby-dev:34378]
-
-Sat Apr 12 12:41:49 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * eval.c (ruby_exec_node, ruby_run_node), ruby.c (process_options):
- use iseq instead of NODE.
-
- * gc.c (source_filenames): removed.
-
- * include/ruby/intern.h, parse.y (yycompile, parser_mark, parser_free,
- ripper_initialize): rb_source_filename() is no longer used.
-
- * compile.c, compile.h (ERROR_ARGS), parse.y (node_newnode, fixpos,
- parser_warn, e_option_supplied, warn_unless_e_option, range_op,
- cond0): nd_file is no longer used.
-
-Sat Apr 12 12:17:31 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * prelude.rb (require_relative): move require_relative from
- lib/require_relative.rb. [ruby-core:16356]
-
- * lib/require_relative.rb: removed.
-
-Sat Apr 12 05:55:57 2008 Eric Hodel <drbrain@segment7.net>
-
- * lib/rubygems*, test/rubygems*: Update to RubyGems 1.1.1 r1701.
-
-Sat Apr 12 03:13:38 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * file.c (file_expand_path): set external encoding.
-
- * file.c (rb_file_s_basename, rb_file_s_dirname, rb_file_s_extname):
- copy encoding.
-
-Fri Apr 11 17:35:06 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * enum.c (count_i): modified to shut warning up.
-
-Fri Apr 11 17:25:09 2008 Akinori MUSHA <knu@iDaemons.org>
-
- * enum.c (count_i, count_iter_i, enum_count, enum_find_index):
- Reduce code.
-
-Fri Apr 11 17:06:01 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * enum.c (find_index_i): modified to shut warning up.
-
- * enum.c (find_index_iter_i): ditto.
-
-Fri Apr 11 16:44:43 2008 Akinori MUSHA <knu@iDaemons.org>
-
- * enum.c (enum_find_index): Add support for find_index(obj);
- [ruby-dev:34313].
-
- * array.c (rb_ary_index): Define find_index as an alias to index.
-
-Fri Apr 11 16:42:33 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/yaml/store.rb (YAML::load): modified to support empty
- database.
-
-Fri Apr 11 08:05:12 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * marshal.c (w_object): add volatile to avoid potential GC bug. a
- patch from Tomoyuki Chikanaga <chikanag at nippon-control-system.co.jp>
- in [ruby-dev:34312].
-
-Thu Apr 10 23:08:52 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/pstore.rb (PStore::dump, PStore::load): allow subclass
- overriding. [ruby-dev:34305]
-
- * lib/yaml/store.rb (YAML::Store::marshal_dump_supports_canonical_option?):
- add a method to support faster PStore.
-
-Thu Apr 10 20:36:45 2008 Akinori MUSHA <knu@iDaemons.org>
-
- * misc/rdebug.el, misc/README: Remove rdebug.el as per request
- from the maintainer and mention the ruby-debug project at
- RubyForge in README; bug#19043.
-
-Thu Apr 10 19:41:00 2008 Akinori MUSHA <knu@iDaemons.org>
-
- * eval.c (rb_f_loop): Mention StopIteration in the document.
-
-Thu Apr 10 19:23:55 2008 Akinori MUSHA <knu@iDaemons.org>
-
- * array.c (rb_ary_pop_m, rb_ary_shift_m): Update documents for
- #pop() and #shift().
-
- * array.c (rb_ary_slice_bang): Update document. Assigning
- array[*args]= nil no longer removes elements.
-
-Thu Apr 10 16:58:44 2008 Tanaka Akira <akr@fsij.org>
-
- * marshal.c (w_object): TYPE_USERDEF assigns id for ivars first.
- [ruby-dev:34159] by nagachika.
-
-Thu Apr 10 15:03:47 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/generator.rb: removed obsolete library. [ruby-core:16233]
-
- * test/test_generator.rb: removed as well. [ruby-dev:34306]
-
- * lib/pstore.rb: replaced by Hongli Lai's faster version.
-
-Thu Apr 10 10:27:24 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * thread_pthread.c (native_sleep): sleep_cond is initialized at
- creation. [ruby-Patches-19361].
-
-Wed Apr 9 14:43:26 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * thread.c (lock_func): optimized and checks for interrupt_flag.
- based on a patch from Sylvain Joyeux in [ruby-Patches-19361] and
- [ruby-Patches-19362].
-
-Wed Apr 9 12:12:01 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * test/ruby/test_thread.rb: new tests from Sylvain Joyeux in
- [ruby-Patches-19361].
-
-Tue Apr 8 21:36:40 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * thread.c (rb_mutex_sleep): ensures to re-acquire at waking up.
- [ruby-Patches-19361]
-
-Tue Apr 8 11:00:14 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/complex.rb: remove Math first before overwriting by CMath.
-
-Tue Apr 8 10:34:10 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * load.c (rb_require_safe): should check fname path after $SAFE is
- properly set. [ruby-dev:34268]
-
- * re.c (rb_reg_quote): should always copy the quoting string.
- [ruby-core:16235]
-
-Tue Apr 8 10:30:29 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * common.mk (prelude.c): depends on enc/prelude.rb.
-
- * enc/prelude.rb: fixed initial library names.
-
-Tue Apr 8 03:39:26 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * load.c (rb_provided): check expanded path for relative path
- features, loading or loaded features are already expanded in 1.9.
-
- * variable.c (rb_autoload_load): no needs to check if provided before
- rb_require_safe. [ruby-dev:34266]
-
-Mon Apr 7 22:41:21 2008 Tadayoshi Funaba <tadf@dotrb.org>
-
- * numeric.c: cancelled recent changes (except to remove rdiv).
-
- * bignum.c: ditto.
-
- * bignum.c: added rb_big_idiv.
-
-Mon Apr 7 15:51:31 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * encoding.c (enc_init_db): moved to enc/encdb.c.
-
- * transcode.c (init_transcoder_table): moved to enc/trans/transdb.c.
-
- * enc/depend (enc/encdb.o enc/trans/transdb.o): depend on
- corresponding headers.
-
- * common.mk (COMMONOBJS): moved transcode.o from OBJS
-
-Mon Apr 7 12:26:32 2008 Koichi Sasada <ko1@atdot.net>
-
- * bootstraptest/test_knownbug.rb: add a known-bug.
-
-Mon Apr 7 12:15:24 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * range.c (range_each_func): should not leave a variable
- uninitialized, which could cause SEGV.
-
- * range.c (range_step): removed duplicated and unreachable code.
-
-Mon Apr 7 02:12:27 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * string.c (rb_str_intern): need not to check if tainted.
- [ruby-dev:34219]
-
-Sun Apr 6 09:45:00 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * dir.c (dir_tell): check if closed. [ruby-core:16223]
-
-Sat Apr 5 23:17:20 2008 Tadayoshi Funaba <tadf@dotrb.org>
-
- * lib/cmath.rb: new.
-
- * lib/complex.rb: depends lib/cmath.rb.
-
- * lib/rational.rb: added rdiv.
-
- * complex.c: removed some math functions.
-
-Sat Apr 5 05:50:57 2008 Eric Hodel <drbrain@segment7.net>
-
- * lib/rdoc/parsers/parse_rb.rb: Fix uninitialized variable warnings.
-
- * lib/rdoc/generator/html.rb: ditto.
-
- * lib/rdoc/options.rb: Fix shadowed variable warning.
-
- * lib/webrick/httprequest.rb: Fix redefined method warning.
-
-Sat Apr 5 02:13:52 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * bignum.c (rb_cmpint): moved from compar.c, to check bignum
- zero.
-
-Fri Apr 4 23:24:06 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * re.c (rb_memsearch_qs): wrong boundary condition.
-
- * re.c (rb_memsearch_qs_utf8): ditto.
-
-Fri Apr 4 14:11:36 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * re.c (rb_memsearch_qs): wrong boundary condition. a patch from
- wanabe <s.wanabe AT gmail.com> in [ruby-dev:34248].
-
-Fri Apr 4 05:57:11 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/net/pop.rb (Net::POP3::do_finish): clear @n_mails and
- @n_bytes as well. [ruby-core:16144]
-
-Fri Apr 4 01:59:30 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * range.c (range_step): add step for each iteration if begin and
- end are numeric. [ruby-core:15990]
-
-Fri Apr 4 00:42:26 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * bignum.c (Init_Bignum): rdiv method removed. [ruby-dev:34242]
-
- * complex.c (nucomp_quo): ditto.
-
- * numeric.c (num_rdiv): ditto.
-
- * rational.c (nurat_div): ditto.
-
- * complex.c (nucomp_fdiv): fdiv implementation restored.
-
- * numeric.c (num_quo): RDoc updated.
-
-Thu Apr 3 21:51:45 2008 Tadayoshi Funaba <tadf@dotrb.org>
-
- * complex.c (nucomp_int_check): function for DRY real check.
-
- * complex.c (nucomp_{add,sub,mul,div,expt}): use rb_num_coerce_bin().
-
-Thu Apr 3 19:59:42 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * insns.def (defineclass): check if cbase is a class or a module.
- [ruby-core:16118]
-
-Thu Apr 3 14:42:11 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * common.mk (INSNS): add insns_info.inc.
-
- * common.mk (INSNS): make incs separately for nmake.
-
-Thu Apr 3 13:20:38 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * common.mk (endb.h, transdb.h, prelude.c): depend on $(PREP) and
- check if really changed. [ruby-core:16102]
-
- * Makefile.in, common.mk, configure.in, {win32,bcc32}/Makefile.sub
- (MINIOBJS, ARCHMINIOBJS): separated.
-
-Thu Apr 3 09:00:45 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * compile.c (iseq_set_sequence, iseq_insns_unification,
- insn_data_to_s_detail): constified.
-
- * iseq.c (insn_operand_intern, ruby_iseq_disasm_insn): ditto.
-
- * template/{insns_info,opt_sc,optunifs}.inc.tmpl: ditto.
-
- * tool/instruction.rb (OptUnifsIncGenerator): ditto.
-
-Thu Apr 3 08:46:09 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * range.c (range_include): add RDoc to describe that comparison
- for numeric is done according magnitude of values.
- [ruby-core:15907]
-
-Wed Apr 2 22:29:35 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * rational.c (nurat_int_check): function for DRY integer check.
-
- * numeric.c (num_rdiv): should always return rational number.
-
- * rational.c (nurat_add, nurat_sub, nurat_mul, nurat_fdiv,
- nurat_cmp): use rb_num_coerce_bin().
-
- * rational.c (nurat_division): does / and rdiv.
-
- * .gdbinit (rp): no longer use rb_p().
-
-Wed Apr 2 06:52:31 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * .gdbinit (rp): supports rational and complex numbers. it's
- cheating since it uses rb_p().
-
-Wed Apr 2 06:24:06 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * include/ruby/node.h: add new constants for rb_call()'s scope.
-
- * eval.c (iterate_method): use CALL_* scope constant to specify
- proper scope value.
-
- * eval.c (rb_each, rb_apply, rb_funcall, rb_funcall2, rb_funcall3):
- ditto.
-
-Tue Apr 1 21:19:41 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * rational.c: need to include <float.h> just once.
-
-Tue Apr 1 16:40:21 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * bignum.c (big2dbl): more precise conversion at edge cases.
- [ruby-dev:34195]
-
-Tue Apr 1 14:43:38 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * configure.in: get rid of empty expansion.
-
- * configure.in: _setjmp is available but _longjmp is not on mingw.
-
-Tue Apr 1 09:41:22 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * {bcc,win}32/Makefile (config.h): need to define RUBY_SETJMP, etc.
-
-Tue Apr 1 07:31:58 2008 Eric Hodel <drbrain@segment7.net>
-
- * lib/rubygems* test/rubygems*: Import RubyGems 1.1.0.
-
-Tue Apr 1 03:20:40 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * configure.in (RUBY_SETJMP, RUBY_LONGJMP, RUBY_JMP_BUF): prefers
- _setjmp over setjmp and sigsetjmp. [ruby-core:16023]
- __builtin_setjmp cannot handle a variable.
-
- * configure.in (--with-setjmp-type): new option to override the
- default rule in the above.
-
- * eval_intern.h (ruby_setjmp, ruby_longjmp), gc.c (rb_setjmp),
- vm_core.h (rb_jmpbuf_t): use RUBY_SETJMP, RUBY_LONGJMP and
- RUBY_JMP_BUF.
-
-Tue Apr 1 01:55:52 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/resolv.rb (Resolv::Config.default_config_hash): requires
- win32/resolv to use Win32::Resolv. [ruby-dev:34138]
-
-Tue Apr 1 01:40:58 2008 Tadayoshi Funaba <tadf@dotrb.org>
-
- * complex.c: adopted the ruby's style.
-
- * rational.c: ditto.
-
-Tue Apr 1 00:17:35 2008 Tadayoshi Funaba <tadf@dotrb.org>
-
- * rational.c: revert.
-
-Mon Mar 31 18:57:36 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * {bcc,win}32/Makefile.sub (config.h): define ssize_t.
-
- * io.c (copy_stream_body): some platform don't have O_NOCTTY.
-
-Mon Mar 31 18:42:41 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * configure.in: check for ssize_t. [ruby-dev:34184]
-
-Mon Mar 31 14:45:00 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * numeric.c (num_quo): should convert its operand to Rational.
-
- * rational.c (string_to_r_strict): should raise TypeError.
-
- * bignum.c (Init_Bignum): should not redefine Bignum#div.
- Numeric#div will do. [ruby-dev:34066]
-
-Mon Mar 31 04:05:15 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * io.c (io_getc): set coderange while getting characters.
-
-Sun Mar 30 23:16:49 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * proc.c (proc_dup): should copy is_lambda attribute as well.
- [ruby-talk:296244]
-
-Sun Mar 30 15:33:29 2008 Tanaka Akira <akr@fsij.org>
-
- * io.c: IO.copy_stream implemented. [ruby-dev:33843]
-
- * thread.c (rb_fd_select): new function.
-
- * configure.in (sys/sendfile.h): check the header file.
- (sendfile): check the function.
- (pread): check the function.
-
-Sat Mar 29 14:18:41 2008 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/*: full update Ruby/Tk to support Ruby(1.9|1.8) and Tc/Tk8.5.
-
- * ext/tk/lib/tkextlib/tile.rb: [incompatible] remove TileWidgets'
- instate/state/identify method to avoid the conflict with standard
- widget options. Those methods are renamed to ttk_instate/ttk_state/
- ttk_identify (tile_instate/tile_state/tile_identify are available
- too). Although I don't recommend, if you really need old methods,
- please define "Tk::USE_OBSOLETE_TILE_STATE_METHOD = true" before
- "require 'tkextlib/tile'".
-
- * ext/tk/lib/tkextlib/tile.rb: "Tk::Tile::__Import_Tile_Widgets__!"
- is obsolete. It outputs warning. To control default widget set,
- use "Tk.default_widget_set = :Ttk".
-
- * ext/tk/lib/tk.rb: __IGNORE_UNKNOWN_CONFIGURE_OPTION__ method and
- __set_IGNORE_UNKNOWN_CONFIGURE_OPTION__!(mode) method are defined
- as module methods of TkConfigMethod. It may help users to wrap old
- Ruby/Tk scripts (use standard widgets) to force to use Ttk widgets.
- Ttk widgets don't have some options of standard widgets which are
- control the view of widgets. When set ignore-mode true, configure
- method tries to ignore such unknown options with no exception.
- Of course, it may raise other troubles on the GUI design.
- So, those are a little danger methods.
-
- * ext/tk/lib/tk/itemconfig.rb: __IGNORE_UNKNOWN_CONFIGURE_OPTION__
- method and __set_IGNORE_UNKNOWN_CONFIGURE_OPTION__!(mode) method
- are defined as module methods of TkItemConfigMethod as the same
- purpose as TkConfigMethod's ones.
-
- * ext/tk/sample/ttk_wrapper.rb: A new example. This is a tool for
- wrapping old Ruby/Tk scripts (which use standard widgets) to use
- Ttk (Tile) widgets as default.
-
- * ext/tk/sample/tkextlib/tile/demo.rb: use ttk_instate/ttk_state
- method instead of instate/state method.
-
- * ext/tk/lib/tk/root, ext/tk/lib/tk/namespace.rb,
- ext/tk/lib/tk/text.rb, ext/tk/lib/tkextlib/*: some 'instance_eval's
- are replaced to "instance_exec(self)".
-
- * ext/tk/lib/tk/event.rb: bug fix on KEY_TBL and PROC_TBL (?x is not
- a character code on Ruby1.9).
-
- * ext/tk/lib/tk/variable.rb: support new style of operation argument
- on Tcl/Tk's 'trace' command for variables.
-
- * ext/tk/sample/demos-jp/widget, ext/tk/sample/demos-en/widget: bug fix
-
- * ext/tk/sample/demos-jp/textpeer.rb,
- ext/tk/sample/demos-en/textpeer.rb: new widget demo.
-
- * ext/tk/tcltklib.c: decrease SEGV troubles (probably)
-
- * ext/tk/lib/tk.rb: remove Thread.critical access if Ruby1.9
-
- * ext/tk/lib/tk/multi-tk.rb: support Ruby1.9 (probably)
-
- * ext/tk/lib/tkextlib/tile.rb: add method to define Tcl/Tk command
- to make Tcl/Tk theme sources (based on different version of Tile
- extension) available.
- (Tk::Tile::__define_LoadImages_proc_for_compatibility__)
-
- * ext/tk/lib/tk.rb, ext/tk/lib/tk/wm.rb: support dockable frames
- (Tcl/Tk8.5 feature). 'wm' command can treat many kinds of widgets
- as toplevel widgets.
-
- * ext/tk/lib/tkextlib/tile/style.rb: ditto.
- (Tk::Tile::Style.__define_wrapper_proc_for_compatibility__)
-
- * ext/tk/lib/tk/font.rb: add actual_hash and metrics_hash to get
- properties as a hash. metrics_hash method returns a boolean value
- for 'fixed' option. But metrics method returns numeric value
- (0 or 1) for 'fixed' option, because of backward compatibility.
-
- * ext/tk/lib/tk/timer.rb: sometimes fail to set callback procedure.
-
- * ext/tk/lib/tk.rb: add Tk.sleep and Tk.wakeup method. Tk.sleep
- doesn't block the eventloop. It will be better to use the method
- in event callbacks.
-
- * ext/tk/sample/tksleep_sample.rb: sample script about Tk.sleep.
-
-Thu Mar 27 20:44:22 2008 Tadayoshi Funaba <tadf@dotrb.org>
-
- * complex.c (f_lcm): removed.
-
- * rational.c (rb_lcm, rb_gcdlcm): added.
-
- * lib/complex.rb (gcd, lcm, gcdlcm): removed.
-
- * lib/rational.rb (gcd, lcm, gcdlcm): ditto.
-
-Wed Mar 26 18:11:26 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * variable.c (rb_mod_constants): rdoc updated. a patch from
- Florian Gilcher <flo AT andersground.net> in [ruby-core:16009].
-
-Wed Mar 26 00:55:28 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * test/ruby/test_rand.rb: add tests to achieve over 95% test coverage
- of random.c.
-
-Wed Mar 26 00:28:55 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * test/ruby/test_rational.rb: add tests to achieve over 90% test
- coverage of rational.c.
-
- * test/ruby/test_complex.rb: ditto for complex.c.
-
-Tue Mar 25 19:34:05 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * bootstraptest/test_knownbug.rb: add tests. [ruby-dev:34128]
-
-Tue Mar 25 19:09:04 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * array.c (ary_new): fix size check. [ruby-dev:34123]
-
- * array.c (rb_ary_take, rb_ary_drop): check negative size and use
- NUM2LONG instead of FIX2LONG. [ruby-dev:34123]
-
- * enum.c (enum_take, enum_drop): check negative size.
-
- * test/ruby/test_array.rb: add tests for above.
-
-Tue Mar 25 16:32:56 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ruby.c (proc_options): checks if the word is empty.
-
- * ruby.c (process_options): typo fixed. [ruby-dev:34122]
-
-Tue Mar 25 15:26:30 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * compile.c (defined_expr): false short-circuit destination label may
- be needed. [ruby-talk:295296]
-
- * compile.c (iseq_compile_each): put nil if false short-circuit is
- created.
-
- * compile.c (compile_massign_opt): no need to use alloca.
-
-Mon Mar 24 19:23:52 2008 Akinori MUSHA <knu@iDaemons.org>
-
- * parse.y (debug_lines): Always prepare a new array for each
- file's SCRIPT_LINES__ storage, instead of appending source lines
- every time a file is re-loaded; submitted by Rocky Bernstein in
- #18517.
-
-Mon Mar 24 10:25:54 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * configure.in: sitearch should use target_cpu. [ruby-core:15986]
-
-Sun Mar 23 02:51:57 2008 Tanaka Akira <akr@fsij.org>
-
- * process.c (rlimit_resource_value): use NUM2RLIM.
-
-Sun Mar 23 02:28:01 2008 Tadayoshi Funaba <tadf@dotrb.org>
-
- * complex.c: fixed. [ruby-dev:34109]
-
- * rational.c: ditto.
-
-Fri Mar 21 21:32:25 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * io.c (rb_f_gets, rb_f_readline, rb_f_readlines): delegates to ARGF
- as well as puts and putc. [ruby-dev:34100]
-
-Fri Mar 21 21:26:52 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/resolv.rb (Resolv::Hosts): should not use win32/resolv on cygwin.
- [ruby-dev:29945], [ruby-dev:34095]
-
- * lib/win32/registry.rb (Win32::Registry.expand_environ): try upcased
- name too for cygwin. [ruby-dev:29945]
-
- * lib/win32/resolv.rb (Win32::Resolv.get_hosts_path): use expand_path.
-
-Fri Mar 21 21:10:00 2008 Akinori MUSHA <knu@iDaemons.org>
-
- * lib/ipaddr.rb: Say that I am the current maintainer.
-
- * lib/set.rb: Ditto.
-
- * lib/shellwords.rb: Ditto.
-
- * ext/syslog/syslog.txt: Ditto.
-
-Fri Mar 21 09:24:28 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * instruby.rb (open_for_install): write block result and rewrite only
- if changed from existing file.
-
-Fri Mar 21 08:29:33 2008 Tadayoshi Funaba <tadf@dotrb.org>
-
- * rational.c (nurat_to_f): rearrangement.
-
-Fri Mar 21 06:44:59 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * rational.c (nurat_to_f): C99.
-
-Fri Mar 21 01:40:27 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * complex.c (nucomp_sub, nucomp_expt): call corresponding functions.
-
-Fri Mar 21 01:21:43 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * missing/tgamma.c: include config.h before math.h. [ruby-dev:34075]
-
-Thu Mar 20 21:46:33 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * io.c (argf_getline): use receiver.
-
-Thu Mar 20 21:20:19 2008 Tadayoshi Funaba <tadf@dotrb.org>
-
- * rational.c: some improvements (include Shin-ichiro HARA's
- effort).
-
- * complex.c: some improvements.
-
- * test/ruby/test_rational2.rb: new.
-
-Thu Mar 20 00:21:12 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * io.c (argf_initialize_copy): get rid of segfault.
-
- * io.c (argf_tell, argf_seek_m, argf_set_pos, argf_rewind,
- argf_fileno, argf_to_io, argf_eofl, argf_getc, argf_getbyte,
- argf_readchar, argf_readbyte, argf_each_line): use receiver.
-
-Wed Mar 19 23:52:41 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * io.c (rb_io_putc, rb_io_puts): output directly if the receiver is
- rb_stdout to get rid of infinite recursion. [ruby-dev:34059]
-
-Wed Mar 19 22:27:41 2008 Tadayoshi Funaba <tadf@dotrb.org>
-
- * rational.c: added rb_gcd.
-
- * complex.c: use rb_gcd.
-
-Wed Mar 19 18:37:00 2008 Tadayoshi Funaba <tadf@dotrb.org>
-
- * complex.c: revert.
-
- * rational.c: revert.
-
-Wed Mar 19 17:31:20 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * eval_intern.h (TH_EXEC_TAG): need not to FLUSH_REGISTER_WINDOWS.
- [ruby-core:15871], [ruby-dev:34088]
-
-Wed Mar 19 14:53:03 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * complex.c (nucomp_to_s, nucomp_inspect): get rid of making
- unnecessary intermediate objects.
-
- * complex.c (make_patterns, string_to_c): do not treat successive
- underscores as a part of numeric like as literals. [ruby-dev:34085]
-
- * rational.c (make_patterns, string_to_r): ditto.
-
-Wed Mar 19 14:36:40 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * bignum.c (rb_cstr_to_inum): treat successive underscores as
- nondigit. [ruby-dev:34089]
-
-Wed Mar 19 14:08:47 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * encoding.c (enc_check_encoding): should not load autoloaded encoding
- directly, instead use rb_enc_find_index() which deal with alias and
- replica. [ruby-core:15957]
-
-Wed Mar 19 11:49:47 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * regint.h (include): include ruby.h instead of defines.h and config.h.
-
-Wed Mar 19 10:17:12 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * regint.h (CHECK_INTERRUPT_IN_MATCH_AT): add interrupt check
- during match. [ruby-talk:295002]
-
-Tue Mar 18 16:24:53 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * parse.y (literal_concat_gen): bail out at different encoding.
-
-Tue Mar 18 04:00:27 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * re.c (rb_memsearch_ss): simple shift search.
-
- * re.c (rb_memsearch_qs): quick search.
-
- * re.c (rb_memsearch_qs_utf8): quick search for UTF-8 string.
-
- * re.c (rb_memsearch_qs_utf8_hash): hash functions for above.
-
- * re.c (rb_memsearch): use above functions.
-
- * string.c (rb_str_index): give enc to rb_memsearch.
-
- * include/ruby/intern.h (rb_memsearch): move to encoding.h.
-
- * include/ruby/encoding.h (rb_memsearch): move from intern.h.
-
- * common.mk (PREP): add dependency.
-
-Mon Mar 17 22:23:54 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * array.c (rb_ary_take, rb_ary_take_while, rb_ary_drop,
- rb_ary_drop_while): new methods. [ruby-dev:34067]
-
- * test/ruby/test_array.rb: add tests for above.
-
-Mon Mar 17 17:11:13 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * misc/ruby-mode.el (ruby-mode): should use `run-mode-hooks' instead
- of calling `run-hooks' directly to run the mode hook. patch from
- Chiyuan Zhang <pluskid AT gmail.com> in [ruby-core:15915]
-
-Mon Mar 17 16:41:08 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * configure.in: unset GREP_OPTIONS. [ruby-core:15918]
-
-Sun Mar 16 18:07:07 2008 Martin Duerst <duerst@it.aoyama.ac.jp>
-
- * enc/trans/utf_16_32.c: bug fix (some invalid UTF-8 sequences
- were legal)
-
- * test/ruby/test_transcode.rb: test for above bug
-
-Sun Mar 16 17:28:07 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * common.mk (LIBRUBY_SO): add dependency to $(BUILTIN_ENCOBJS).
-
-Sun Mar 16 08:51:41 2008 Tadayoshi Funaba <tadf@dotrb.org>
-
- * include/ruby/intern.h: added some declarations.
-
- * include/ruby/ruby.h: ditto.
-
- * common.mk: added some entries.
-
- * configure.in: added a check for signbit.
-
- * lib/complex.rb: nearly all of core definitions have been removed.
-
- * lib/rational.rb: ditto.
-
- * lib/mathn.rb: some trivial adjustments.
-
- * complex.c: new.
-
- * rational.c: ditto.
-
- * numeric.c (flo_{quo,rdiv}, fix_fdiv): added.
-
- * numeric.c ({num,int}_{numerator,denominator}): ditto.
-
- * bignum.c (rb_big_fdiv): ditto.
-
- * numeric.c (fix_{quo,pow}): now may yield rational number.
-
- * bignum.c (rb_big_{quo,pow}): ditto.
-
- * numeric.c (rb_{int,flo}_induced_from): now can accept rational.
-
- * gc.c (gc_mark_children, obj_free): now detects complex and rational.
-
- * inits.c (rb_call_inits): now calls Init_{Complex,Rational}.
-
- * test/ruby/test_complex.rb: new.
-
- * test/ruby/test_rational.rb: ditto.
-
-Sat Mar 15 17:48:48 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * encoding.c (rb_enc_associate_index): pass unnecessary enc_capable().
-
- * string.c (rb_str_cmp): reduce invocation of rb_enc_compatible().
-
-Fri Mar 14 17:04:43 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * include/ruby/ruby.h (inttypes.h): includes always if available.
-
- * string.c, ext/digest/defs.h: moved inttypes.h to ruby.h.
-
-Fri Mar 14 16:59:23 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * configure.in (RUBY_LIB_PREFIX): fix for prefix.
-
-Fri Mar 14 16:35:11 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/cgi.rb (CGI::Cookie::initialize): performance patch from
- Makoto Kuwata <kwa@kuwata-lab.com> in [ruby-dev:34048].
-
-Fri Mar 14 15:49:05 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * configure.in (RUBY_LIB_PREFIX): use libdir.
-
-Fri Mar 14 14:24:15 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/digest/defs.h: inttypes.h is still needed.
-
-Fri Mar 14 11:34:12 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * {bcc,win}32/Makefile.sub: follow below changes.
-
-Fri Mar 14 11:24:30 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * misc/ruby-mode.el (ruby-encoding-map, ruby-use-encoding-map): added
- to customize.
-
-Fri Mar 14 10:37:15 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * configure.in (int8_t, uint8_t, int16_t, uint16_t int32_t,
- uint32_t int64_t, uint64_t, int128_t, uint128_t,
- intptr_t, uintptr_t): check if defined.
-
- * win32/Makefile.sub: follow configure.in.
-
- * ext/digest/defs.h: remove checks for uint8_t, uint32_t and uint64_t.
-
-Fri Mar 14 10:12:29 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * configure.in (RUBY_CHECK_VARTYPE): should not indent preprocessor
- directives.
-
-Fri Mar 14 10:03:59 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * string.c (UNALIGNED_WORD_ACCESS): IA64 cannot access unaligned word.
-
-Thu Mar 13 21:00:50 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * array.c (rb_ary_slice_bang): should not use rb_ary_subseq()
- which shares internal pointer. splice modifies the receiver
- right after subseq. [ruby-dev:34005]
-
- * bootstraptest/test_struct.rb: some test moved from test to shut
- warning up.
-
-Thu Mar 13 19:42:43 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * {bcc,win}32/Makefile.sub (config.h): define uint32_t.
-
-Thu Mar 13 14:14:19 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * trunk/configure.in (AC_CHECK_HEADERS): stdint.h is not needed to
- check.
-
- * trunk/configure.in (rb_cv_type_uint32_t): unquoted. [ruby-dev:34030]
-
- * trunk/string.c (hash): use inttypes.h instead of stdint.h.
-
-Thu Mar 13 10:42:46 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * numeric.c (fix_divmod): should return integer division. [ruby-dev:34006]
-
- * enum.c (zip_ary): wrong boundary condition.
-
- * test/ruby/test_numeric.rb (TestNumeric::test_num2long): bit-and
- should not raise RangeError.
-
-Thu Mar 13 03:12:48 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * ext/openssl/ossl_pkey_dsa.c
+ * ext/openssl/ossl_x509req.c
+ * ext/openssl/ossl_pkey_rsa.c
+ * ext/openssl/ossl_pkey_ec.c
+ * ext/openssl/ossl_ssl_session.c
+ * ext/openssl/ossl_x509crl.c
+ * ext/openssl/ossl_pkey.c
+ * ext/openssl/ossl_pkey_dh.c
+ * ext/openssl/ossl_x509cert.c
+ * ext/openssl/ossl_pkcs7.c: Use OSSL_BIO_reset.
- * lib/irb/cmd/help.rb: should be updated for new ri structure.
- [ruby-core:15825]
+ * ext/openssl/ossl_ssl.c
+ * ext/openssl/ossl_cipher.c
+ * ext/openssl/ossl_pkey_ec.c
+ * ext/openssl/ossl_pkcs12.c
+ * ext/openssl/ossl_ssl_session.c: Replace rb_raise occurrences by
+ ossl_raise. This automatically flushes OpenSSL's error queue.
- * lib/rdoc/ri/driver.rb (RDoc::initialize): allow options to be optional.
+ * ext/openssl/ossl_pkcs7.c: Raise error if DER fallback for parsing
+ fails.
- * lib/rdoc/ri/driver.rb (RDoc::class_cache): map_dirs may be
+ * test/openssl/test_pkey_ec.rb
+ * test/openssl/test_pkey_dsa.rb
+ * test/openssl/test_pkey_rsa.rb: Add assertions that OpenSSL.errors is
empty.
- * lib/rdoc/ri/driver.rb (RDoc::get_info_for): revive get_info_for
- method. maybe broken.
-
- * lib/rdoc/ri/util.rb (RDoc::initialize): should not use RiError
- no more.
+ * test/openssl/test_pkey_rsa.rb: Remove initial OpenSSL.errors call in
+ test_new.
+ [ Ruby 1.9 - Bug #4885 ] [ruby-core:37134]
-Thu Mar 13 01:45:25 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Wed Jun 22 15:01:24 2011 Martin Bosslet <Martin.Bosslet@googlemail.com>
- * configure.in (stdint.h): check if presence.
+ * ext/openssl/ossl_ssl.c: Use SSL_MODE_RELEASE_BUFFERS if available.
+ Thanks, Eric Wong, for providing the patch.
+ [ Ruby 1.9 - Feature #4672 ] [ruby-core:36127]
- * configure.in (uint32_t): check if defined.
+Wed Jun 22 14:47:53 2011 Martin Bosslet <Martin.Bosslet@googlemail.com>
- * string.c (hash): fix for portability. [ruby-dev:34020]
+ * test/openssl/test_buffering.rb
+ * test/openssl/test_pkcs12.rb: Inherit from Test::Unit::TestCase
+ instead of MiniTest::Unit::TestCase. [ruby-core:37275]
-Wed Mar 12 17:33:34 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Wed Jun 22 12:41:03 2011 Hiroshi Nakamura <nahi@ruby-lang.org>
- * object.c (rb_cstr_to_dbl): fix for a mere underscore.
+ * ext/openssl/ossl_ssl_session.c (ossl_ssl_session_to_der):
+ OpenSSL::SSL::Session#to_der was broken. Fix buffer handling.
-Wed Mar 12 14:47:07 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * test/openssl/test_ssl_session.rb (test_session): Test it.
- * eval_intern.h (rb_thread_raised_set): use generic flags.
+Wed Jun 22 12:38:52 2011 Hiroshi Nakamura <nahi@ruby-lang.org>
- * eval.c (rb_longjmp): clear all raised flags.
+ * test/openssl/test_ssl_session.rb: Split out SSL::Session related
+ tests from test_ssl.rb
- * eval.c (stack_check): leave clearing flag to rb_longjmp.
+Wed Jun 22 03:20:52 2011 Aaron Patterson <aaron@tenderlovemaking.com>
- * gc.c (rb_memerror): use thread raised flag instead of static flag.
+ * ext/psych/lib/psych/visitors/to_ruby.rb: Fix cyclic references of
+ objects. Thanks to CvX for reporting the bug and a test case.
+ * test/psych/test_object.rb: test for cyclic object references.
-Tue Mar 11 23:38:39 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+Wed Jun 22 02:39:54 2011 Hiroshi Nakamura <nahi@ruby-lang.org>
- * array.c (rb_ary_combination): argument check before creating
- Enumerator.
+ * lib/net/http.rb (Net::HTTP.post_form): Do not ignore query part of
+ the given URI to post. See #655.
- * array.c (rb_ary_permutation): ditto.
+ * test/net/http/test_http.rb, test/net/http/utils.rb: Test it.
- * enum.c (enum_zip): optimize if all arguments are arrays.
+Wed Jun 22 01:28:13 2011 Hiroshi Nakamura <nahi@ruby-lang.org>
-Tue Mar 11 19:48:09 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * test/openssl/test_x509store.rb (test_set_errors): Redhat is
+ distributing a patched version of OpenSSL that allows multiple CRL
+ for a key (multi-crl.patch.) Make test pass on such env. See #4122,
+ #4554.
- * numeric.c (fix_coerce): try conversion before type check.
- [ruby-core:15838]
+Tue Jun 21 21:50:37 2011 Hiroshi Nakamura <nahi@ruby-lang.org>
-Tue Mar 11 12:39:53 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * lib/webrick/httpresponse.rb (HTTPResponse#setup_header): Close
+ HTTP/1.1 connection when returning an IO object as response body
+ without setting HTTPResponse#chunked to true. See #855 no.1.
- * common.mk (clean-local): WINMAINOBJ is Windows specific.
+ * test/webrick/test_httpserver.rb: Test it.
-Tue Mar 11 10:19:10 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+Tue Jun 21 21:27:34 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * string.c (hash): replaced by MurmurHash described in
- <http://murmurhash.googlepages.com/>.
-
-Tue Mar 11 09:52:49 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * string.c (rb_str_comparable): empty strings in any encoding are
- compatible each other.
-
-Tue Mar 11 00:46:29 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * ruby.c (usage): remove some unimportant lines to fit -h message
- in a page. [ruby-dev:34018]
-
-Mon Mar 10 17:11:00 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * eval.c (rb_f_local_variables): local_variables should return an
- array of symbols. [ruby-dev:34008]
-
- * vm.c (collect_local_variables_in_env): ditto.
-
-Mon Mar 10 15:53:48 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * version.c (MKSTR): make US-ASCII. [ruby-dev:34010]
-
-Mon Mar 10 02:08:21 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * string.c (rb_str_index): if t == s + pos, the character beginning
- from s + pos is valid.
-
-Sun Mar 9 13:51:21 2008 Eric Hodel <drbrain@segment7.net>
-
- * lib/rdoc/generator.rb: Restore missing line to #params. Patch by
- Lincoln Stoll <lstoll at lstoll.net>
-
-Sun Mar 9 09:52:00 2008 Eric Hodel <drbrain@segment7.net>
-
- * lib/rdoc/code_objects.rb: Remove debugging Kernel#p. Patch by
- Lincoln Stoll <lstoll at lstoll.net>
- * lib/rdoc/generator/html.rb: Fully qualify AllReferences. Patch by
- Lincoln Stoll <lstoll at lstoll.net>
- * lib/rdoc/ri/writer.rb: Fix 1.8 backwards compatibility.
-
-Sat Mar 8 18:50:57 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * file.c (isdirsep): backslash is valid path separator on cygwin too.
-
-Sat Mar 8 06:53:48 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * string.c (search_nonascii): Use VALUE instead of unsigned long
- because VALUE can be the fastest unsigned integer type.
- On LLP64 unsigned long isn't the fastest.
- * string.c (str_strlen): ditto.
- * string.c (str_utf8_nth): ditto.
- * string.c (count_utf8_lead_bytes_with_ulong): ditto.
-
- * string.c (count_utf8_lead_bytes_with_word): renamed.
-
-Fri Mar 7 21:27:43 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * bignum.c: fix indent.
-
-Fri Mar 7 21:12:19 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * bignum.c (power_cache_init, power_cache_get_power0, Init_Bignum):
- delayed initializing power cache per base. [ruby-dev:34003]
-
-Fri Mar 7 20:30:05 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * cont.c (cont_restore_0): fixed typo. [ruby-core:15821]
-
-Fri Mar 7 19:56:10 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/mkmf.rb: rdoc added. [ruby-Patches-9762]
-
-Thu Mar 6 17:26:53 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * sprintf.c (rb_str_format): space flag is in effect for Inf/NaN too.
- [ruby-dev:34002]
-
-Thu Mar 6 15:44:20 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * sprintf.c (rb_str_format): casting double to long is undefined
- if the integer part of double is out of the range of long.
-
-Thu Mar 6 15:11:40 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * sprintf.c (rb_str_format): ignore 0 flag for NaN and Inf.
- [ruby-dev:33994]
-
-Thu Mar 6 15:05:25 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * {bcc32,win32}/Makefile.sub (RUNRUBY): use $(PROGRAM) instead of
- ruby$(EXEEXT).
- suggested by KIMURA Koichi <kimura.koichi at canon.co.jp>.
- [ruby-dev:34000]
-
-Thu Mar 6 14:46:08 2008 Tanaka Akira <akr@fsij.org>
-
- * missing/lgamma_r.c (loggamma): return 0 for 1 and 2.
-
- * test/ruby/test_math.rb: accept errors by functions under missing/.
-
-Thu Mar 6 14:29:44 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * transcode.c (rb_str_transcode_bang): set coderange.
-
- * transcode.c (rb_str_transcode): use rb_str_transcode_bang.
-
-Thu Mar 6 14:00:10 2008 Tanaka Akira <akr@fsij.org>
-
- * include/ruby/missing.h (cbrt): add declaration.
-
-Thu Mar 6 11:14:14 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * misc/ruby-mode.el (ruby-add-log-current-method): use ruby style
- method name format.
-
-Thu Mar 6 11:12:29 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * sprintf.c (rb_str_format): no need of loop.
-
-Thu Mar 6 08:30:42 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * object.c (rb_mod_freeze): call rb_class_name() directly.
- [ruby-core:15802]
-
-Thu Mar 6 04:32:06 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * string.c (count_utf8_lead_bytes_with_ulong): fix shift size.
- [ruby-dev:33993]
-
- * string.c (str_utf8_nth) fix wrong counting.
-
-Thu Mar 6 00:34:00 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * sprintf.c (rb_str_format): size_t returned from strlen() can be
- unsigned.
-
-Thu Mar 6 00:31:39 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * struct.c (make_struct): preserve encoding of struct name.
-
-Wed Mar 5 22:49:20 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * string.c (is_utf8_lead_byte, count_utf8_lead_bytes_with_ulong):
- defined for UTF-8 optimization.
-
- * string.c (str_strlen): use is_utf8_lead_byte and
- count_utf8_lead_bytes_with_ulong.
-
- * string.c (str_utf8_nth) ditto.
-
-Wed Mar 5 17:53:01 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * file.c (rb_file_flock): returns false on EAGAIN if non-blocking.
- [ruby-core:15795]
-
-Wed Mar 5 17:43:43 2008 Martin Duerst <duerst@it.aoyama.ac.jp>
-
- * transcode.c (transcode_loop): Adjusted detection of invalid
- (ill-formed) UTF-8 sequences. Fixing potential security issue, see
- http://www.unicode.org/versions/Unicode5.1.0/#Notable_Changes.
-
- * test/ruby/test_transcode.rb: Added two tests for above fix.
-
-Wed Mar 5 14:00:49 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * numeric.c (fix_to_s): avoid rb_scan_args() when no argument
- given.
- * bignum.c (rb_big_to_s): ditto.
- * enum.c (enum_first): ditto.
- * eval_jump.c (rb_f_catch): ditto.
- * io.c (rb_obj_display): ditto.
- * class.c (rb_obj_singleton_methods): ditto.
- * object.c (rb_class_initialize): ditto.
- * random.c (rb_f_srand): ditto.
- * range.c (range_step): ditto.
- * re.c (rb_reg_s_last_match): ditto.
- * string.c (rb_str_to_i): ditto.
- * string.c (rb_str_each_line): ditto.
- * string.c (rb_str_chomp_bang): ditto.
- * string.c (rb_str_sum): ditto.
-
- * string.c (str_modifiable): declare inline.
- * string.c (str_independent): ditto.
-
-Wed Mar 5 11:50:32 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/debug.rb: require 'continuation' to implement "restart"
- command. [ruby-dev:33992]
-
- * lib/debug.rb (Context::debug_command): remove local variable
- shadowing to shut up warnings. [ruby-dev:33992]
-
- * lib/debug.rb (Context::display_list): ditto.
-
- * lib/debug.rb (Context::resume): ditto.
-
- * lib/debug.rb (Context::get_thread): no longer use #index for Hash.
-
-Tue Mar 4 21:35:59 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/irb.rb (IRB::Irb::eval_input): SyntaxError should not be
- considered as IRB bug. [ruby-dev:33991]
-
- * lib/irb/workspace.rb (IRB::WorkSpace::filter_backtrace): should
- filter 'irb.rb' as well for context mode 2 and 3.
-
-Tue Mar 4 19:10:43 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * hash.c (rb_hash_aset): should not copy key string when
- compare_by_identity is set. [ruby-dev:33604]
-
- * hash.c (hash_equal): two hash tables are different when internal
- comparison table differ. [ruby-dev:33989]
-
-Tue Mar 4 16:29:06 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * parse.y (parser_yylex): disallow non digits '0o' expression.
-
-Tue Mar 4 14:35:12 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * io.c (open_key_args): use rb_io_open_with_args instead of rb_f_open.
- [ruby-core:15763]
-
-Tue Mar 4 13:41:46 2008 Tanaka Akira <akr@fsij.org>
-
- * gc.c (add_heap): fix previous change. [ruby-dev:33988]
-
-Tue Mar 4 10:21:03 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * gc.c (add_heap): use binary search to find the place to insert the
- new heap slot. [ruby-dev:33983]
-
-Tue Mar 4 05:30:31 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * io.c (open_key_args): use rb_io_open instead of rb_f_open.
- [ruby-core:15746]
-
-Mon Mar 3 23:28:37 2008 GOTOU Yuuzou <gotoyuzo@notwork.org>
-
- * lib/webrick/httpservlet/filehandler.rb: should normalize path
- separators in path_info to prevent directory traversal
- attacks on DOSISH platforms.
- reported by Digital Security Research Group [DSECRG-08-026].
-
- * lib/webrick/httpservlet/filehandler.rb: pathnames which have
- not to be published should be checked case-insensitively.
-
-Mon Mar 3 17:25:45 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * gc.c (add_heap): sort heaps array in ascending order to use
- binary search.
-
- * gc.c (is_pointer_to_heap): use binary search to identify object
- in heaps. works better when number of heap segments grow big.
-
-Mon Mar 3 17:15:09 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * re.c (rb_reg_regsub): remove too strict encoding check.
- [ruby-dev:33966]
-
-Mon Mar 3 16:14:24 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * hash.c (rb_any_hash): shrinks all results in Fixnum range.
- [ruby-core:15713]
-
-Sun Mar 2 23:03:59 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * io.c (rb_io_ungetc): reduce redundant call.
-
-Sun Mar 2 10:13:12 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ruby.c (load_file): parse shebang in us-ascii. a patch from
- sheepman <sheepman AT sheepman.sakura.ne.jp> in [ruby-dev:33955]
-
-Sun Mar 2 00:08:10 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * object.c (rb_cstr_to_dbl): check for successive underscores.
- [ruby-dev:33952]
-
-Sat Mar 1 17:59:01 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * io.c (struct argf): packed ARGF stuffs.
-
- * ruby.c (proc_options): use ruby_set_inplace_mode().
-
-Sat Mar 1 17:51:34 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/test/unit/collector/dir.rb (recursive_collect): do not always
- include all test_*.rb.
-
-Sat Mar 1 14:14:17 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * development snapshot 1.9.0-1 released.
-
-Sat Mar 1 13:46:26 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * tool/make-snapshot: make prereq uses MINIRUBY.
-
- * tool/make-snapshot: allow packaging like 1.9.0-1 by second
- command-line argument.
-
-Sat Mar 1 13:11:03 2008 Tanaka Akira <akr@fsij.org>
-
- * test/ruby/allpairs.rb: new file for all pairs method.
-
- * test/ruby/test_m17n_comb.rb: use allpairs.rb to reduce test cases.
-
- * test/ruby/test_sprintf_comb.rb: ditto.
-
-Sat Mar 1 12:34:21 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * string.c (sym_inspect): use rb_str_inspect() instead of
- rb_str_dump(). [ruby-dev:33946]
-
-Sat Mar 1 12:15:42 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * eval_method.c (rb_get_method_body): ent->method may be freed by
- GC. [ruby-dev:31819]
-
- * thread.c (remove_event_hook): should not access freed memory.
- [ruby-dev:31820]
-
-Sat Mar 1 10:31:19 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * io.c (read_all, rb_io_getline_fast): encoding is io_input_encoding.
-
-Sat Mar 1 10:09:40 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * string.c (tr_setup_table, rb_str_split_m, rb_str_chomp_bang):
- simplified with rb_enc_ascget(). [ruby-dev:33944]
-
-Sat Mar 1 10:01:30 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * string.c (rb_str_coderange_scan_restartable): should not return
- offset in the middle of a character.
-
- * string.c (rb_str_coderange_scan_restartable): should not return
- invalid cr value.
-
-Sat Mar 1 09:36:08 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * sprintf.c (rb_str_format): "%#.0o" should keep prefix where
- "%#.0x" should not.
-
-Sat Mar 1 02:35:08 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * bignum.c (big2str_find_n1): check integer overflow.
-
-Sat Mar 1 00:29:07 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * encoding.c (rb_enc_dummy_p): bootstrap encodings can not be dummy.
-
- * encoding.c (rb_enc_ascget): no needs to call rb_enc_precise_mbclen()
- twice.
-
-Fri Feb 29 23:14:38 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * test/ruby/test_m17n_comb.rb (TestM17NComb::test_str_chomp): test
- updated.
-
-Fri Feb 29 20:58:09 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * test/ruby/test_iterator.rb (TestIterator::test_enumerator):
- adjust test for zip behavior reversion.
-
-Fri Feb 29 20:25:07 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * string.c (rb_str_chomp_bang): now works on UTF-16.
-
- * string.c (tr_setup_table): negation should work on non ASCII
- compatible strings as well.
-
- * string.c (rb_str_split_m): awk split should work on non ASCII
- compatible strings as well.
-
-Fri Feb 29 18:08:43 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * time.c (time_strftime): format should be ascii compatible.
-
- * parse.y (rb_intern3): non ASCII compatible symbols.
-
- * re.c (rb_reg_regsub): add encoding check.
-
- * string.c (rb_str_chomp_bang): ditto.
-
- * test/ruby/test_utf16.rb (TestUTF16::test_chomp): raises exception.
-
-Fri Feb 29 15:16:31 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * string.c (rb_str_rpartition): calculation was done in byte indexing.
-
- * test/ruby/test_m17n_comb.rb (TestM17NComb::test_str_start_with):
- allow start_with? matching on broken strings.
-
-Fri Feb 29 15:12:43 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * parse.y (opt_block_param): command can start just after block param
- definition. [ruby-list:44479]
-
-Fri Feb 29 03:22:19 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * test/ruby/test_time.rb (test_readers): fix typo.
- (test_strftime): "UTC" is also ok for time.gmtime.strftime("%Z").
-
-Fri Feb 29 02:50:07 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * string.c (str_new): remove encoding assumption of empty string.
-
- * hash.c ( rb_f_getenv, env_fetch, env_inspect): result of ENV should
- be always ASCII-8BIT.
-
- * object.c (nil_to_s): nil.to_s should be US-ASCII.
-
-Fri Feb 29 02:24:22 2008 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/lib/tk.rb: forgot to update RELEASE_DATE
-
- * ext/tk/lib/tk.rb, ext/tk/lib/tk/text.rb,
- ext/tk/lib/tkextlib/iwidgets/scrolledtext.rb: remove adhoc check
- of Ruby's features (use existence of some classes instead of
- comparing with RUBY_VERSION)
-
- * ext/tk/lib/tk/root.rb, ext/tk/lib/tk/autoload.rb: make TkRoot
- (Tk::Root) unswitchable
-
- * ext/tk/lib/multi-tk.rb: partial bug fix (still not work!!)
-
-Thu Feb 28 23:37:12 2008 Tanaka Akira <akr@fsij.org>
-
- * lib/open-uri.rb (OpenURI::Meta#meta_setup_encoding): use ASCII-8BIT
- for charset unspecified non-text data.
-
-Thu Feb 28 22:19:14 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * encoding.c (enc_capable): IMMEDIATE_P doesn't include Qnil and Qfalse.
- use SPECIAL_CONST_P.
-
-Thu Feb 28 19:45:52 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * encoding.c (enc_find): check type of argument and convert to String
- if it is StringValue. [ruby-cvs:22866]
-
-Thu Feb 28 18:07:52 2008 Tanaka Akira <akr@fsij.org>
-
- * lib/open-uri.rb (OpenURI::Meta#meta_setup_encoding): setup encoding
- by charset.
- (OpenURI::Meta#meta_add_field): call meta_setup_encoding when
- content-type.
-
-Thu Feb 28 15:29:12 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * io.c (rb_io_getline_fast): scan coderange.
-
-Thu Feb 28 14:36:46 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * string.c (rb_enc_str_copy): removed.
-
-Thu Feb 28 13:51:59 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * eval.c (stack_check): made flag per threads.
-
- * thread.c (rb_thread_set_raised, rb_thread_reset_raised): prefixed.
-
-Thu Feb 28 11:43:56 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * file.c (rb_file_flock): immediately returns on EAGAIN if
- non-blocking. [ruby-core:15672]
-
-Thu Feb 28 11:23:50 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * io.c (rb_io_getline_1): get rid of segfault. [ruby-dev:33938]
-
-Thu Feb 28 11:19:51 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * string.c (rb_str_reverse_bang): removed unused variables.
-
- * include/ruby/encoding.h (rb_str_coderange_scan_restartable): added
- prototype.
-
- * string.c (rb_str_coderange_scan_restartable, rb_str_times): removed
- unused variables.
-
- * string.c (rb_str_reverse_bang): ditto
-
- * string.c (rb_enc_str_copy): unused now. may be used in future?
-
-Thu Feb 28 03:03:32 2008 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/lib/tk.rb, ext/tk/lib/*: make default widget set
- switchable between Tk (standard Tcl/Tk widget set) and
- Ttk (Tile). Initial default widget set is Tk. Now, toplevel
- widget classes are removed and defined as aliases.
- For example, "TkButton" is an alias of the "Tk::Button" class.
- Those aliases are replaced when switching default widget set.
- "Tk.default_widget_set=" is the method for switching default
- widget set. "Tk.default_widget_set = :Ttk" defines Ttk (Tile)
- widget set as default. It means that "TkButton" denotes
- "Tk::Tile::Button" class. And then, "TkButton.new" creates
- a Tk::Tile::Button widget. Of course, you can back to use
- standard Tk widgets as the default widget set by calling
- "Tk.default_widget_set = :Tk", whenever you want. Based on
- the feature, you can use Ttk widget styling engine on your
- old Ruby/Tk application without modifying its source, if you
- don't use widget options unsupported on Ttk widgets (At first,
- call "Tk.default_widget_set = :Ttk", and next load and run
- your application).
- This is one step for supporting Tcl/Tk8.5 features.
-
-Wed Feb 27 22:55:42 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * string.c (rb_str_coderange_scan_restartable): coderange scanning
- for partial read.
-
- * io.c (read_all): set coderange when not convert encoding.
-
-Wed Feb 27 03:55:58 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/extmk.rb, enc/make_encmake.rb: load current mkmf.rb even if
- cross-compiling.
-
- * ext/extmk.rb, enc/make_encmake.rb, lib/mkmf.rb: need to be 1.8
- compatible for cross-compiling.
-
-Tue Feb 26 16:53:13 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * misc/ruby-mode.el (ruby-calculate-indent): should distinguish
- comment and # in strings. [ruby-dev:33874]
-
-Tue Feb 26 16:41:27 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * array.c (combi_len, rb_ary_product): check for overflow.
- [ruby-Bugs-18355]
-
-Tue Feb 26 16:38:10 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * array.c (recursive_cmp): compare minimal length parts.
-
-Tue Feb 26 16:06:00 2008 Technorama Ltd. <oss-ruby@technorama.net>
-
- * ext/openssl/ossl_{ec,dh,dsa,rsa}.c: Remove useless warnings.
-
- * ext/openssl/ossl_asn1.c: Simplify code.
-
- * ext/openssl/ossl_ssl_session.c Fix compiler warnings.
- Undefine #id if SSL_SESSION_get_id is not supported.
-
-Tue Feb 26 15:50:10 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * parse.y (value_expr_gen): removed inappropriate warning.
- [ruby-core:15660]
-
-Tue Feb 26 15:43:42 2008 Tanaka Akira <akr@fsij.org>
-
- * parse.y (tokadd_escape): refactored. [ruby-core:15657]
-
-Tue Feb 26 15:30:36 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * array.c (rb_ary_eql, rb_ary_cmp): get rid of stack overflow with
- self-recursive constructs. [ruby-Bugs-18356]
-
-Tue Feb 26 01:16:01 2008 Tanaka Akira <akr@fsij.org>
-
- * include/ruby/ruby.h (ROBJECT_NUMIV): renamed from ROBJECT_LEN.
- (ROBJECT_IVPTR): renamed from ROBJECT_PTR.
-
- * variable.c: follow the above renaming.
-
- * object.c: ditto.
-
- * gc.c: ditto.
-
- * marshal.c: ditto.
-
-Mon Feb 25 17:30:29 2008 Technorama Ltd. <oss-ruby@technorama.net>
-
- * ext/openssl/digest.c ext/openssl/lib/openssl/digest.rb:
- Commit patch #9280 from Akinori MUSHA.
- Simplify the OpenSSL::Digest class and make use of the
- existing Digest framework.
- Enhance performance.
-
-Mon Feb 25 15:33:29 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * bignum.c (big2str_karatsuba): initialize cache if not initialized.
-
- * bignum.c (Init_Bignum): delayed initializing cache.
- [ruby-dev:33930]
-
-Mon Feb 25 13:40:03 2008 Tanaka Akira <akr@fsij.org>
-
- * process.c (Init_process): share bignum objects for RLIM_INFINITY,
- RLIM_SAVED_MAX and RLIM_SAVED_CUR if they are equal.
-
-Mon Feb 25 10:41:41 2008 Martin Duerst <duerst@it.aoyama.ac.jp>
-
- * encoding.c (Encoding#dummy): minor grammatical fixes
- in rdoc documentation.
-
-Mon Feb 25 00:01:03 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * cygwin/GNUmakefile.in (clean-local): should be double-colon.
-
-Sun Feb 24 23:39:59 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * common.mk, {bcc,win}32/Makefile.sub (clean-local): remove
- intermediate files.
-
- * cygwin/GNUmakefile.in (clean-local): remove def file.
-
-Sun Feb 24 06:49:12 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * debug.c (ruby_set_debug_option): separated ruby_each_words().
-
- * util.c (ruby_each_words): extracted from ruby_set_debug_option().
-
- * ruby.c (enable_option, disable_option): allow all for all known
- features.
-
- * ruby.c (proc_options): generalized enable/disable options.
-
- * ruby.c (ruby_init_gems): take enabled flag. [ruby-core:14840]
-
- * ruby.c (process_options): added --disable-rubyopt flag.
-
- * include/ruby/util.h (ruby_each_words): prototype.
-
-Sun Feb 24 05:25:26 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ruby.c (proc_options): check if argument for -E exists.
-
-Sun Feb 24 05:09:43 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * misc/ruby-style.el (ruby-style-label-indent): fix for labels inside
- blocks in switch.
-
-Sun Feb 24 03:52:58 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * util.c (valid_filename): use O_EXCL to get rid of clobbering
- existing files in race conditions.
-
-Sat Feb 23 21:36:13 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * ext/win32ole/win32ole.c (ole_init_cp): should return value.
-
-Sat Feb 23 20:16:05 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * string.c (str_sublen): removed.
-
- * string.c (rb_str_reverse, rb_str_reverse_bang): use
- single_byte_optimizable.
-
-Sat Feb 23 19:25:18 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * string.c (rb_enc_cr_str_copy_for_substr): renamed from
- rb_enc_cr_str_copy.
-
- * string.c: use rb_enc_cr_str_copy_for_substr and keep coderange.
-
-Sat Feb 23 18:50:17 2008 Masaki Suketa <masaki.suketa@nifty.ne.jp>
-
- * ext/win32ole/win32ole.c (ole_encoding2cp): remove US-ASCII
- mapping.
-
-Sat Feb 23 01:09:47 2008 Tanaka Akira <akr@fsij.org>
-
- * process.c (rlimit_resource_type): new function.
- (rlimit_resource_value): new function.
- (proc_getrlimit): use rlimit_resource_type to accept
- symbol and string as resource type.
- (proc_setrlimit): use rlimit_resource_type and rlimit_resource_value
- to accept symbol and string as resource type and values.
-
-Fri Feb 22 21:12:42 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * string.c (rb_enc_cr_str_copy): check string's coderange is 7bit or
- valid.
-
-Fri Feb 22 19:50:19 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * bignum.c (BIGZEROP): fix for longer Bignum zeros. [ruby-Bugs-17454]
-
-Fri Feb 22 15:47:36 2008 Tanaka Akira <akr@fsij.org>
-
- * encoding.c (rb_enc_mbclen): return minlen instead of 1 when
- a character is not found properly.
-
- * string.c (rb_enc_strlen): round up string length with fixed
- multibyte encoding such as UTF-32.
- (rb_enc_strlen_cr): ditto.
- (rb_str_substr): fix substring with fixed multibyte encoding.
- (rb_str_justify): check number of characters.
-
-Fri Feb 22 12:11:12 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * string.c (rb_str_inspect): string of ascii incompatible encoding
- should be escaped and returned as US-ASCII encoding.
-
-Fri Feb 22 11:16:55 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * string.c (rb_str_substr): copy encoding although empty string.
-
-Fri Feb 22 04:48:22 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * string.c (rb_str_times): empty string's coderange is CODERANGE_7BIT.
-
- * string.c (rb_str_substr): ditto.
-
- * encoding.c (rb_enc_compatible): empty string is compatible with not
- only nonasciicompatible strings. [ruby-dev:33895]
-
-Thu Feb 21 17:15:15 2008 Martin Duerst <duerst@it.aoyama.ac.jp>
-
- * transcode.c: Added basic support for passing options to String#encode
- via a hash. Currently only one option, with one value, is supported:
- invalid: :ignore (dropping invalid byte sequences instead of
- producing an error). Option naming is not yet stable!
-
- * test/ruby/test_transcode.rb: Added a single test for invalid: :ignore
- option. Not more tests because most data does not yet distinguish
- between INVALID and UNKNOWN.
-
-Thu Feb 21 16:35:26 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * array.c (rb_ary_unshift_m): expands enough for argc. [ruby-dev:33880]
-
-Thu Feb 21 14:49:40 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * io.c (argf_set_encoding): uses current_file after check if next
- input is available.
-
-Thu Feb 21 14:13:38 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * io.c (rb_f_putc): invoke stdout method so that redefining putc
- may take effect. [ruby-talk:291844]
-
- * io.c (rb_f_puts): ditto.
-
-Thu Feb 21 11:10:49 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * string.c: replace rb_enc_copy by rb_enc_cr_str_copy or
- rb_enc_cr_str_exact_copy.
-
-Thu Feb 21 10:35:04 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * include/ruby/encoding.h (rb_enc_asciicompat): dummy encoding is not
- ascii compatible. [ruby-dev:33878]
-
-Thu Feb 21 00:01:34 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * configure.in (RPATHFLAG): -R option of HP-UX ld is not for runtime
- load path. [ruby-list:44600]
-
-Wed Feb 20 23:55:19 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * win32/win32.c (rb_w32_map_errno): exported.
-
-Wed Feb 20 23:28:43 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * ext/readline/extconf.rb (rl_event_hook): workaround for native
- windows.
-
-Wed Feb 20 19:42:03 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * encoding.c (rb_enc_associate_index): doesn't clear coderange
- when new encoding equals to old one.
-
-Wed Feb 20 19:15:38 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * string.c (rb_enc_str_copy): added for wrapper for rb_enc_copy.
- this also copy coderange when ptr and len is equal.
-
- * string.c (rb_enc_cr_str_copy): added for wrapper for rb_enc_copy.
- this always copy coderange.
-
- * string.c (str_replace_shared): use rb_enc_str_copy.
-
- * string.c (str_new3): don't rb_enc_copy because encoding is copied
- at str_replace_shared.
-
-Wed Feb 20 13:08:52 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * instruby.rb (parse_args): added --dir-mode, --script-mode and
- --cmd-type options. [ruby-dev:33816]
-
- * instruby.rb (parse_args): added bin-arch and bin-comm to install
- type, for compiled files and script files.
-
- * instruby.rb (parse_args): deal with make style command line macros,
- and count as long style options if prefixed with INSTALL_.
-
- * instruby.rb (makedirs): use $dir_mode. [ruby-dev:33805]
-
- * instruby.rb (open_for_install): set file mode, which is now
- permission mode instead of access mode.
-
- * instruby.rb (bin-comm): installs scripts with replacing shebang
- lines.
-
-Wed Feb 20 10:04:22 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * io.c (open_key_args): set arg->io even if no options passed.
- [ruby-dev:33072]
-
-Tue Feb 19 21:11:49 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * string.c (rb_enc_strlen_cr): get length with coderange scan.
-
- * string.c (str_strlen): use rb_enc_strlen_cr. [ruby-dev:33849]
-
-Tue Feb 19 20:49:49 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * eval.c (rb_raise_jump): moved adjustment for control frame.
-
-Tue Feb 19 18:34:32 2008 Tanaka Akira <akr@fsij.org>
-
- * gc.c (STACK_LENGTH) [SPARC] : 0x80 offset removed. [ruby-dev:33857]
-
-Tue Feb 19 14:27:32 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/readline/readline.c (readline_event): prevent polling. based on
- a patch from error errorsson in [ruby-Bugs-17675].
-
-Tue Feb 19 11:14:13 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * eval.c (ruby_exec_node): no thread starts inside iseq compilation.
-
- * eval.c (rb_f_raise): skip current control frame. [ruby-core:15589]
-
- * insns.def (opt_div): raise as the ordinary method. [ruby-core:15589]
-
-Mon Feb 18 15:16:30 2008 Tanaka Akira <akr@fsij.org>
-
- * string.c (rb_str_each_line): fix newline size.
-
-Mon Feb 18 13:06:37 2008 Tanaka Akira <akr@fsij.org>
-
- * lib/irb/locale.rb (IRB::Locale#lc2kconv): check ja_JP.EUC-JP as well.
-
-Mon Feb 18 11:51:19 2008 Tanaka Akira <akr@fsij.org>
-
- * re.c (re_warn): defined to restore warnings for /[a-c-e]/, etc.
-
-Mon Feb 18 10:17:42 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/pty/lib/expect.rb (IO#expect): check if peer is closed.
- [ruby-Bugs-17940]
-
-Mon Feb 18 00:33:03 2008 Tanaka Akira <akr@fsij.org>
-
- * re.c (rb_reg_regsub): don't repeat repl twice with
- "X".sub!(/./, sprintf("\\%c", 255)).
-
-Sun Feb 17 23:06:55 2008 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
-
- * lib/cgi.rb (CGI::escapeHTML): use gsub with Hash. [ruby-dev:33828]
-
-Sun Feb 17 21:38:21 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * encoding.c (ENC_CODERANGE_AND): fix broken case. [ruby-dev:33826]
-
- * string.c (rb_str_times): fix broken case. [ruby-dev:33826]
-
-Sun Feb 17 20:45:10 2008 Tanaka Akira <akr@fsij.org>
-
- * re.c (rb_reg_prepare_re): add enable_warning parameter.
- (rb_reg_adjust_startpos): disable warning by rb_reg_prepare_re.
- (rb_reg_search): follow rb_reg_prepare_re parameter change.
-
-Sun Feb 17 20:12:41 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * test/ruby/test_regexp.rb: add tests to achieve over 90% test
- coverage of re.c.
-
-Sun Feb 17 15:25:08 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * encoding.c (ENC_CODERANGE_AND): added.
-
- * string.c (rb_str_plus, rb_str_times): keep coderange.
-
- * parse.y (STR_NEW0) use rb_usascii_str_new.
-
-Sun Feb 17 14:07:24 2008 Tanaka Akira <akr@fsij.org>
-
- * string.c (str_strlen): rb_enc_strlen doesn't fail.
-
-Sun Feb 17 13:03:48 2008 Tanaka Akira <akr@fsij.org>
-
- * string.c (str_sublen): use rb_enc_strlen.
-
-Sun Feb 17 12:17:52 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * enc/{euc_jp.c,gbk.c,iso_8859_1.c,iso_8859_11.c,iso_8859_13.c,
- iso_8859_2.c,iso_8859_6.c,iso_8859_7.c,iso_8859_8.c,iso_8859_9.c,
- shift_jis.c,windows_1251.c}: add document about encodings.
-
- * enc/cp949.c: divided into new file.
-
-Sun Feb 17 10:59:04 2008 Tanaka Akira <akr@fsij.org>
-
- * re.c (rb_reg_quote): return US-ASCII string consistently.
-
-Sun Feb 17 09:17:08 2008 Tanaka Akira <akr@fsij.org>
-
- * string.c (rb_str_times): reduce loop overhead.
-
-Sun Feb 17 03:37:01 2008 Tanaka Akira <akr@fsij.org>
-
- * include/ruby/re.h (struct rmatch_offset): new struct for character
- offsets.
- (struct rmatch): new struct.
- (struct RMatch): reference struct rmatch.
- (RMATCH_REGS): new macro.
-
- * re.c (match_alloc): initialize struct rmatch.
- (pair_byte_cmp): new function.
- (update_char_offset): update character offsets.
- (match_init_copy): copy regexp and character offsets.
- (match_sublen): removed.
- (match_offset): use update_char_offset.
- (match_begin): ditto.
- (match_end): ditto.
- (rb_reg_search): make character offset updated flag false.
- (match_size): use RMATCH_REGS.
- (match_backref_number): ditto.
- (rb_reg_nth_defined): ditto.
- (rb_reg_nth_match): ditto.
- (rb_reg_match_pre): ditto.
- (rb_reg_match_post): ditto.
- (rb_reg_match_last): ditto.
- (match_array): ditto.
- (match_aref): ditto.
- (match_values_at): ditto.
- (match_inspect): ditto.
-
- * string.c (rb_str_subpat_set): use RMATCH_REGS.
- (rb_str_sub_bang): ditto.
- (str_gsub): ditto.
- (rb_str_split_m): ditto.
- (scan_once): ditto.
-
- * gc.c (obj_free): free character offsets.
-
-Sun Feb 17 03:13:40 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * win32/resource.rb: made version infos confirm to OS spec.
-
- * {bcc32,win32}/Makefile.sub (*.rc): add dependency.
-
-Sat Feb 16 20:49:34 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * string.c (rb_str_substr): optimized for UTF-8.
-
-Sat Feb 16 18:13:53 2008 Tanaka Akira <akr@fsij.org>
-
- * encoding.c (rb_enc_compatible): check encoding incapable arguments.
-
-Sat Feb 16 20:12:47 2008 Tanaka Akira <akr@fsij.org>
-
- * re.c (match_inspect): avoid SEGV with MatchData.allocate.inspect.
-
-Sat Feb 16 19:04:17 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * string.c (str_strlen): revert r15507. [ruby-dev:33810]
-
-Sat Feb 16 18:25:14 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * string.c (str_strlen): little more optimization.
- (rb_enc_nth): remove needless variable 'c'.
-
-Sat Feb 16 18:00:13 2008 Tanaka Akira <akr@fsij.org>
-
- * encoding.c (rb_enc_compatible): empty strings are always compatible.
-
- * string.c (rb_enc_cr_str_buf_cat): ditto.
-
-Sat Feb 16 16:14:35 2008 Tanaka Akira <akr@fsij.org>
-
- * string.c (rb_enc_strlen): UTF-8 character count moved to str_strlen.
- (str_strlen): UTF-8 character count is only applicable for valid
- UTF-8 string. [ruby-dev:33807]
-
-Sat Feb 16 13:16:49 2008 Tanaka Akira <akr@fsij.org>
-
- * string.c (rb_str_sub_bang): stringize replacing hash values.
- (str_gsub): ditto.
-
-Sat Feb 16 13:01:33 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * string.c (rb_enc_strlen): add search_nonascii like character
- counter for UTF-8.
-
-Sat Feb 16 11:53:35 2008 Tanaka Akira <akr@fsij.org>
-
- * encoding.c (rb_enc_strlen): moved to string.c.
-
- * string.c (rb_enc_strlen): use search_nonascii.
- (str_strlen): don't use search_nonascii.
-
-Sat Feb 16 11:45:31 2008 Tanaka Akira <akr@fsij.org>
-
- * lib/require_relative.rb: check require_relative call in eval.
-
-Sat Feb 16 08:00:01 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * ruby.c (process_options): set default_external before loading
- libraries. [ruby-dev:33801]
-
-Sat Feb 16 05:49:54 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * enc/iso_8859_{4,13}.c: Windows-1257 is replica of ISO-8859-13.
-
- * string.c (single_byte_optimizable): rb_enc_mbminlen must be 1
- when rb_enc_mbmaxlen is 1.
-
-Sat Feb 16 03:43:18 2008 Tanaka Akira <akr@fsij.org>
-
- * encoding.c (rb_enc_nth): moved to string.c.
-
- * string.c (rb_enc_nth): moved from string.c. use search_nonascii
- for ASCII compatible string.
- (str_nth): wrong optimization removed to fix
- "a".force_encoding("EUC-JP").slice!(0,10) returns
- "a\x00\x00\x00\x00\x00\x00\x00\x00\x00"
-
-Sat Feb 16 00:21:49 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * range.c (rb_range_beg_len): check if responds to "begin" and "end"
- methods for non-Range object.
-
-Fri Feb 15 20:29:42 2008 Masaki Suketa <masaki.suketa@nifty.ne.jp>
-
- * ext/win32ole/win32ole.c (ole_init_cp): initialize WIN32OLE.codepage
- according to Encoding.default_external.
-
- * test/win32ole/test_win32ole.rb: ditto.
-
-Fri Feb 15 19:31:23 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * include/ruby/node.h (NODE_FL_NEWLINE): renamed from NODE_NEWLINE
- to denote its a flag. [ruby-core:15529]
-
-Fri Feb 15 18:23:54 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * string.c (rb_str_sub_bang, str_gsub): allows hash for replacement.
-
-Fri Feb 15 17:12:41 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * string.c (str_strlen): use search_nonascii() for performance.
-
- * string.c (str_nth): ditto.
-
-Fri Feb 15 16:22:49 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * io.c (open_key_args): allow specifying both :mode and :encoding.
-
-Fri Feb 15 15:34:47 2008 Tanaka Akira <akr@fsij.org>
-
- * string.c (rb_str_getbyte): new method.
- (rb_str_setbyte): new method.
-
-Fri Feb 15 15:29:03 2008 Tanaka Akira <akr@fsij.org>
-
- * lib/require_relative.rb: new file.
-
-Fri Feb 15 15:23:12 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/iconv/iconv.c (iconv_convert): check upper bound. a patch from
- Daniel Luz at [ruby-Bugs-17910].
-
-Fri Feb 15 10:35:54 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * re.c (rb_reg_quote): set US-ASCII for ASCII-only string.
- [ruby-dev:33785]
-
-Fri Feb 15 10:27:47 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * {win,bcc}32/Makefile.sub (config.h): added HAVE_FTRUNCATE.
- [ruby-dev:33786]
-
-Fri Feb 15 09:44:11 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * parse.y (reg_compile_gen): reg_fragment_setenc might not raise an
- exception before rb_reg_compile.
-
-Fri Feb 15 07:37:40 2008 Eric Hodel <drbrain@segment7.net>
-
- * lib/rdoc/ri/paths.rb: Preserve compatibility with 1.8.
-
-Fri Feb 15 02:42:25 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * configure.in (ftruncate): check if available.
-
- * file.c (rb_file_truncate): check if ftruncate instead of truncate.
-
-Fri Feb 15 02:40:54 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * configure.in (sigsetmask): check when signal semantics is not POSIX.
-
- * signal.c (USE_TRAP_MASK): set true if sigprocmask or sigsetmask is
- available.
-
-Thu Feb 14 23:56:38 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * eval_error.c (error_print): append a newline to rest lines.
-
- * parse.y (reg_compile_gen): appends error message from
- rb_reg_compile() to one from reg_fragment_setenc().
-
-Thu Feb 14 21:00:14 2008 Tanaka Akira <akr@fsij.org>
-
- * io.c (io_reopen): check STDIN, STDOUT and STDERR mode according to
- stdio streams.
-
-Thu Feb 14 16:07:40 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * test/ruby/test_math.rb: actual-expected argument ordering for
- test_math.rb fixed. a patch from Tadashi Saito
- <shiba AT mail2.accsnet.ne.jp> in [ruby-dev:33770].
-
-Thu Feb 14 16:02:51 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * file.c (rb_file_s_utime): inhibits with secure level 2 or higher.
-
-Thu Feb 14 12:30:02 2008 Tanaka Akira <akr@fsij.org>
-
- * re.c (rb_reg_preprocess_dregexp): use non-preprocessed regexp source
- for result.
-
-Thu Feb 14 01:43:16 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/timeout.rb (Timeout::timeout): made sensitive to location on the
- stack. [ruby-core:15458]
-
-Thu Feb 14 00:49:53 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * common.mk (INSTRUBY_ARGS): pass mode to install. [ruby-dev:33766]
-
- * instruby.rb (parse_args): added --data-mode and --prog-mode options.
-
-Thu Feb 14 00:02:19 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * eval.c (eval): allow to eval in a binding that has a singleton method.
- [ruby-dev:33763]
-
- * test/ruby/test_proc.rb: add tests to achieve over 70% test coverage
- of proc.c.
-
- * test/ruby/test_method.rb: ditto.
-
-Wed Feb 13 22:46:36 2008 Tanaka Akira <akr@fsij.org>
-
- * lib/pathname.rb (Pathname#sub_ext): new method. [ruby-list:44608]
-
-Wed Feb 13 21:50:32 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * proc.c (proc_curry): new method. [ruby-dev:33676]
-
- * test/ruby/test_proc.rb: add tests for above.
-
-Wed Feb 13 20:48:50 2008 Tanaka Akira <akr@fsij.org>
-
- * include/ruby/ruby.h (RObject): add iv_index_tbl for shortcut of
- RCLASS_IV_INDEX_TBL(rb_obj_class(obj)).
- (ROBJECT_IV_INDEX_TBL): defined.
-
- * object.c (init_copy): initialize iv_index_tbl in struct RObject.
-
- * variable.c (ivar_get): use ROBJECT_IV_INDEX_TBL.
- (rb_ivar_defined): ditto.
- (obj_ivar_each): ditto.
- (rb_obj_remove_instance_variable): ditto.
- (rb_ivar_set): update iv_index_tbl in struct RObject.
-
-Wed Feb 13 16:21:48 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * lib/uri/generic.rb: revert r15442. 2nd argument of String#sub parse
- escapes. [ruby-dev:33726]
-
- * bootstraptest/test_method.rb, enc/depend, instruby.rb, lib/mkmf.rb,
- mkconfig.rb: revert r15443. ditto.
-
-Wed Feb 13 11:20:26 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * enc/depend: fix typo.
-
- * lib/mkmf.rb: revert r15443. "\\1#{sep}\\2" is wrong if sep is ended
- with "\\".
-
-Wed Feb 13 08:57:21 2008 Eric Hodel <drbrain@segment7.net>
-
- * lib/rdoc/markup/inline.rb: Allow inline markup to have a leading
- '#' or '\', or trailing punctuation. i.e. *#freeze?*, *\foo?*.
-
-Wed Feb 13 07:21:23 2008 Eric Hodel <drbrain@segment7.net>
-
- * lib/rdoc/to_html_hyperlink.rb: Moved linking to to_html.rb, move
- crossref to to_html_crossref.rb
-
-Wed Feb 13 04:15:44 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * parse.y (arg_concat_gen, arg_append_gen): optimize for array push.
-
- * parse.y (arg_concat_gen): optimize for array concat.
-
- * parse.y (arg_add_gen): removed since identical to arg_append_gen.
-
-Tue Feb 12 21:04:51 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * parse.y (exc_list): should use mrhs if non array.
-
-Tue Feb 12 20:32:50 2008 Tadayoshi Funaba <tadf@dotrb.org>
-
- * lib/rational.rb (floor, ceil, truncate, round): do not use
- definitions of Numeric.
-
- * lib/rational.rb (to_i): should returns truncated self.
-
- * lib/complex.rb (numerator): requires
- Integer#{numerator,denominator}.
-
- * lib/complex.rb (quo): do not use definition of Numeric.
-
- * lib/complex.rb (>, >=, <, <=, between?, div, divmod, modulo,
- floor, ceil, truncate, round): undef'ed.
-
- * lib/mathn.rb (Rational#inspect): removed.
-
-Tue Feb 12 16:48:10 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * parse.y (args, mrhs): flattens literal array splats.
-
- * parse.y (exc_list): splat literal array.
-
-Tue Feb 12 15:27:19 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * bootstraptest/runner.rb, bootstraptest/test_method.rb, enc/depend,
- instruby.rb, lib/mkmf.rb, lib/test/unit/util/procwrapper.rb,
- mkconfig.rb, sample/test.rb, template/vm.inc.tmpl,
- test/ruby/test_stringchar.rb: fixes around String#gsub.
-
-
-Tue Feb 12 15:11:47 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * ext/json/lib/json/pure/generator.rb,
- ext/json/lib/json/pure/parser.rb, ext/openssl/lib/openssl/x509.rb,
- ext/win32ole/sample/olegen.rb, lib/date/format.rb, lib/irb/context.rb,
- lib/irb/workspace.rb, lib/net/http.rb, lib/net/imap.rb,
- lib/rdoc/generator.rb, lib/rdoc/markup/to_html.rb,
- lib/rdoc/markup/to_latex.rb, lib/rdoc/parsers/parse_c.rb,
- lib/rdoc/ri/formatter.rb, lib/rexml/parsers/baseparser.rb,
- lib/rexml/quickpath.rb, lib/rexml/text.rb, lib/rss/parser.rb,
- lib/uri/common.rb, lib/uri/generic.rb, lib/webrick/httpresponse.rb,
- lib/webrick/httpservlet/filehandler.rb, lib/yaml/baseemitter.rb,
- lib/yaml/encoding.rb: performance tuning around String#gsub.
-
-Tue Feb 12 12:16:45 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * string.c (rb_str_hash_cmp): lighter version of rb_str_cmp() for
- hash comparison function.
-
- * hash.c (rb_any_cmp): use rb_str_hash_cmp().
-
- * string.c (rb_str_casecmp): should return nil for incompatible
- comparison.
-
-Tue Feb 12 12:13:25 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * instruby.rb: specify file mode to install. a patch from
- pegacorn <subscriber.jp AT gmail.com> in [ruby-dev:33699].
-
-Tue Feb 12 11:38:57 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * numeric.c (rb_num_coerce_bin): add ID argument to specify
- caller's method name. [ruby-dev:33663]
-
- * numeric.c (rb_num_coerce_cmp): ditto.
-
- * numeric.c (rb_num_coerce_relop): ditto.
-
- * ext/bigdecimal/bigdecimal.c (DoSomeOne): add function name argument.
-
-Tue Feb 12 10:25:02 2008 Eric Hodel <drbrain@segment7.net>
-
- * lib/rdoc/rdoc.rb: Wrap parse_files' read in version check for
- backwards compatibility.
-
-Tue Feb 12 10:15:14 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * ruby.c (load_file): enc must effect source encoding.
- [ruby-core:15496]
-
-Tue Feb 12 10:16:47 2008 Eric Hodel <drbrain@segment7.net>
-
- * lib/rdoc/ri/paths.rb: Restore require rubygems check.
-
-Tue Feb 12 02:42:27 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * range.c (range_include): specialize single character string
- case (e.g. (?a ..?z).include(?x)) for performance.
- [ruby-core:15481]
-
- * string.c (rb_str_upto): specialize single character case.
-
- * string.c (rb_str_hash): omit coderange scan for performance.
-
- * object.c (rb_check_to_integer): check Fixnum first.
-
- * object.c (rb_to_integer): ditto.
-
- * string.c (rb_str_equal): inline memcmp to avoid unnecessary
- rb_str_comparable().
-
- * parse.y (rb_intern2): use US-ASCII encoding.
-
- * parse.y (rb_intern_str): ditto.
-
-Mon Feb 11 17:21:18 2008 Kouhei Sutou <kou@cozmixng.org>
-
- * lib/rss/rss.rb (RSS::VERSION), test/rss/test_version.rb:
- 0.2.3 -> 0.2.4.
-
- * lib/rss/maker.rb, lib/rss/maker/, test/rss/test_maker_2.0.rb:
- fixed a bug that RSS::Maker.make("0.9")'s item doesn't make some
- elements if description is missed.
- Reported by Michael Auzenne. Thanks!!!
-
- * lib/rss/maker/0.9.rb, test/rss/test_maker_0.9.rb:
- RSS::Maker.make("0.9") generates RSS 0.92 not RSS 0.91.
-
-Mon Feb 11 10:43:31 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * ruby.c (load_file): the encoding of DATA follows the source
- file encoding. [ruby-dev:33693]
-
-Mon Feb 11 06:50:42 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * test/ruby/test_pack.rb: fix tests for 64bit CPU.
-
- * test/ruby/test_bignum.rb: ditto.
-
- * test/ruby/test_file_exhaustive.rb: ditto.
-
- * test/ruby/test_integer.rb: ditto.
-
- * test/ruby/test_time.rb: ditto.
-
- * test/ruby/test_numeric.rb: ditto.
-
- * test/ruby/test_fixnum.rb: ditto.
-
-Mon Feb 11 00:18:57 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * lib/benchmark.rb (Job::Benchmark#item): fix typo.
-
-Sun Feb 10 21:58:32 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * common.mk (encdb, transdb): depend on $(PREP).
-
-Sun Feb 10 16:58:20 2008 Eric Hodel <drbrain@segment7.net>
-
- * lib/rubygems*, test/rubygems*, gem_prelude.rb: Import RubyGems
- r1601. [ruby-core:15381]
-
-Sun Feb 10 15:07:23 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * {bcc32,win32,wince}/Makefile.sub (MISSING): added cbrt.obj.
-
-Sun Feb 10 12:58:33 2008 Eric Hodel <drbrain@segment7.net>
-
- * lib/rdoc/code_objects.rb: Make some attributes accessible for reuse.
- * lib/rdoc/generator/html.rb: Pull out ContextUser classes and related
- methods for reuse.
- * lib/rdoc/generator.rb: Move ContextUser classes to
- RDoc::Generator::Context for reuse.
- * lib/rdoc/rdoc.rb: Make RDoc::RDoc initialization a little easier.
- * lib/rdoc/options.rb: Make RDoc::Options easier to use without
- parsing an ARGV.
- * lib/rdoc/markup/to_*.rb: Subclass RDoc::Markup::Formatter.
- * lib/rdoc/markup/formatter.rb: Add RDoc::Markup::Formatter to make
- RDoc markup conversion easier.
- * lib/rdoc/markup/fragments.rb: Make RDoc::Markup::ListItem easier to
- test.
- * lib/rdoc/markup/to_html_hyperlink.rb: Pulled out of the HTML
- generator for easier reusability.
- * lib/rdoc/markup.rb: Fix bug with labeled lists containing bullet
- lists.
- * lib/rdoc/generators/html/html.rb: Fix Constant display.
-
-Sat Feb 9 23:44:29 2008 Tanaka Akira <akr@fsij.org>
-
- * missing/tgamma.c (tgamma): use lgamma_r if available.
-
-Sat Feb 9 23:22:52 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/bigdecimal/extconf.rb: simplified the condition.
-
-Sat Feb 9 21:20:28 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * test/ruby/test_math.rb: add tests for Math.gamma, Math.lgamma and
- Math.cbrt, and use assert_in_delta instead of assert.
-
-Sat Feb 9 18:34:45 2008 Tanaka Akira <akr@fsij.org>
-
- * math.c (math_cbrt): new method Math.cbrt.
-
- * configure.in (cbrt): check for replacement functions.
-
- * missing/cbrt.c: new file.
-
-Sat Feb 9 17:51:24 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/bigdecimal/bigdecimal.c (BigDecimal_to_f): use strtod() for more
- precision. [ruby-talk:290296]
-
- * ext/bigdecimal/bigdecimal.c (BASE_FIG): made constant.
-
- * ext/bigdecimal/extconf.rb: ditto. [ruby-dev:33658]
-
-Sat Feb 9 12:06:45 2008 Tanaka Akira <akr@fsij.org>
-
- * missing/tgamma.c (tgamma): add error check.
-
-Sat Feb 9 11:47:03 2008 Tanaka Akira <akr@fsij.org>
-
- * math.c (math_gamma): add error check.
- (math_lgamma): ditto.
-
-Sat Feb 9 11:09:26 2008 Tanaka Akira <akr@fsij.org>
-
- * missing/lgamma_r.c (lgamma_r): return HUGE_VAL for non-positive
- integers.
-
-Sat Feb 9 10:03:07 2008 Tanaka Akira <akr@fsij.org>
-
- * string.c (rb_str_new4): copy encoding from orig, instead of shared
- one.
-
-Sat Feb 9 01:01:38 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * file.c (lchmod_internal): fix warning cast from pointer to integer of
- different size.
-
-Sat Feb 9 00:44:52 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/irb.rb (IRB::Irb::eval_input): rescues Interrupt and other than
- SystemExit and SignalException. [ruby-core:15359]
-
-Fri Feb 8 23:51:36 2008 Tanaka Akira <akr@fsij.org>
-
- * missing/lgamma_r.c (lgamma_r): use smaller argument for sin function.
-
-Fri Feb 8 22:10:36 2008 Tanaka Akira <akr@fsij.org>
-
- * lib/open-uri.rb (OpenURI.open_http): rescue URI::InvalidURIError by
- URI.parse for location URI.
-
-Fri Feb 8 19:22:13 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/iconv/iconv.c (rb_str_derive): uses rb_str_subseq() for byte
- length. [ruby-dev:33653]
-
- * ext/iconv/iconv.c (iconv_convert): added toidx argument to set
- encoding of successfully converted string. [ruby-dev:33221]
-
-Fri Feb 8 15:09:21 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/mkmf.rb (xsystem): expand macros like as make.
-
-Fri Feb 8 09:27:57 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * lib/rdoc/ri/driver.rb (read_yaml): remove SM* for compatibility.
-
-Fri Feb 8 00:07:24 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * test/ruby/test_hash.rb: follow the change of Hash#flatten.
-
- * test/ruby/test_time.rb: add tests to achieve over 70% test coverage
- of time.c.
-
- * test/ruby/test_prec.rb: ditto over 90% for prec.c.
-
-Thu Feb 7 19:11:39 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * string.c (rb_str_dup): reverted unneeded change. [ruby-dev:33634]
-
- * string.c (rb_str_replace): makes frozen shared string before
- sharing.
-
-Thu Feb 7 16:33:51 2008 Tanaka Akira <akr@fsij.org>
-
- * io.c (io_reopen): don't change access mode for stdin, stdout and
- stderr. [ruby-core:15360]
-
-Thu Feb 7 16:33:48 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * string.c (str_replace_shared): replaces string with sharing.
-
- * string.c (rb_str_new4, rb_str_associate, rb_str_associated): allows
- associated strings shared.
-
- * string.c (rb_str_dup, rb_str_substr, rb_str_replace): shares memory.
- [ruby-core:15400]
-
-Thu Feb 7 15:42:42 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * string.c (rb_str_end_with): compares with the suffix.
-
-Thu Feb 7 15:03:15 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * enc/trans/korean.c: add support for CP949 by Park Ji-In.
- [ruby-dev:33626]
-
-Thu Feb 7 11:11:02 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * missing/lgamma_r.c (lgamma_r): some compilers don't permit dividing
- by literal 0.0. use const variable instead.
-
- * {bcc32,win32,wince}/Makefile.sub (MISSING): add lgamma_r.obj and
- tgamma.obj.
-
-Thu Feb 7 10:39:21 2008 Tanaka Akira <akr@fsij.org>
-
- * math.c (math_gamma): new method Math.gamma.
- (math_lgamma): new method Math.lgamma.
-
- * include/ruby/missing.h (tgamma): declared unless HAVE_TGAMMA.
- (lgamma_r): declared unless HAVE_LGAMMA_R.
-
- * configure.in (tgamma): check for replacement functions.
- (lgamma_r): ditto.
-
- * missing/tgamma.c: new file. based on gamma.c from
- "C-gengo niyoru saishin algorithm jiten" (New Algorithm handbook
- in C language) (Gijyutsu hyouron sha, Tokyo, 1991)
- by Haruhiko Okumura.
-
- * missing/lgamma_r.c: ditto.
-
- * LEGAL (missing/tgamma.c): describe as public domain.
- (missing/lgamma_r.c): ditto.
-
-Thu Feb 7 09:05:57 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * ext/nkf/nkf-utf8/nkf.c (nkf_enc_from_index): BINARY does not
- have in-bound encoding index.
-
-Thu Feb 7 04:26:28 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * enc/trans/korean.c: add EUC-KR conversion support by Park Ji-In.
- [ruby-dev:33621]
-
-Wed Feb 6 01:47:39 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * hash.c (rb_hash_flatten): do not flatten recursively by default.
- [ruby-dev:33603]
-
-Wed Feb 6 00:50:19 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * insns.def (adjuststack): never use INC_SP with minus value because
- some compilers cannot deal it correctly. use DEC_SP instead.
-
-Wed Feb 6 00:48:41 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * test/ruby/test_hash.rb: add tests to achieve over 90% test coverage
- of hash.c.
-
- * test/ruby/test_env.rb: ditto.
-
-Wed Feb 6 00:24:49 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * hash.c (env_rassoc): remove access to free'd environment on mswin32.
-
-Tue Feb 5 21:57:34 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * vm.c (rb_call_super): pass a passed block when super is called via
- rb_call_super. [ruby-dev:33598]
-
-Tue Feb 5 11:14:11 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/mkmf.rb (INSTALL_DIRS, install_dirs): added BINDIR.
-
- * lib/mkmf.rb (install_files): rejects files matching to
- $NONINSTALLFILES.
-
- * lib/mkmf.rb (init_mkmf): defaults $NONINSTALLFILES to backup and
- temporary files.
-
-Mon Feb 4 21:52:06 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/delegate.rb (DelegateClass): use define_method instead of
- module_eval to improve performance. [ruby-dev:33586]
-
-Mon Feb 4 16:44:24 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * configure.in (darwin): NSIG is not defined if _XOPEN_SOURCE > 500L.
- [ruby-dev:33584]
-
-Mon Feb 4 14:51:19 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * parse.y (rb_enc_symname2_p): support "!", "!=" and "!~".
- [ruby-dev:33592]
-
-Mon Feb 4 13:58:42 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * lib/delegate.rb (Delegator.preserved, DelegateClass.methods): extend
- shouldn't be delegated. [ruby-dev:32987], etc.
-
-Mon Feb 4 08:59:31 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/cgi.rb (CGI::QueryExtension::[]): no more transition
- extend(CGI::Value). a patch from <tommy AT tmtm.org> in
- [ruby-dev:33583].
-
-Sun Feb 3 21:13:13 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * test/ruby/test_numeric.rb: forgot to add this (at r15360).
-
- * test/ruby/test_file_exhaustive.rb: add tests to achieve over 80% test
- coverage of file.c.
-
-Sat Feb 2 20:06:42 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/benchmark.rb (Benchmark::realtime): make Benchmark#realtime
- a bit faster. a patch from Alexander Dymo <dymo AT ukrpost.ua> in
- [ruby-core:15337].
-
-Sat Feb 2 17:40:21 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * time.c (time_cmp): Time.<=> no longer supports comparison with
- numeric. [ruby-core:15332]
-
-Sat Feb 2 09:53:39 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * configure.in (darwin): disabled fat-binary support which confuses
- configure much, since ``universal'' implies hidden cross-compiling.
- TODO: ruby and libruby.bundle might be possible to bound with `lipo'
- after builds for each archs. Anyway, config.h and rbconfig.rb must
- be separated definitely at least.
-
-Sat Feb 2 09:28:36 2008 Tanaka Akira <akr@fsij.org>
-
- * random.c (limited_big_rand): fix buffer overflow when SIZEOF_BDIGITS
- is 2. fixed by Kenta Murata. [ruby-dev:33565]
-
-Fri Feb 1 21:42:37 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * configure.in (darwin): _XOPEN_SOURCE is necessary to make ucontext_t
- consistent with the library implementation of MacOS X 10.5.
- [ruby-dev:33461]
-
- * configure.in (darwin): ucontext on PowerPC MacOS X 10.5 is broken.
-
-Fri Feb 1 11:44:22 2008 Tanaka Akira <akr@fsij.org>
-
- * tool/compile_prelude.rb (C_ESC): use octal escape to avoid
- "\x09for (;;) ..." to be interpret the first character 0x9f.
-
-Thu Jan 31 23:06:42 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * test/ruby/test_bignum.rb: suppress warnings during test.
-
- * test/ruby/test_enum.rb: ditto.
-
- * test/ruby/test_integer.rb: add tests to achieve over 90% test
- coverage of numeric.c.
-
- * test/ruby/test_float.rb: ditto.
-
- * test/ruby/test_fixnum.rb: ditto.
-
- * test/ruby/test_numeric.rb: ditto.
-
- * test/ruby/test_pack.rb: add tests to achieve over 90% test coverage
- of pack.c.
-
-Thu Jan 31 17:30:42 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * marshal.c (r_object0): no need to call r_entry for immediate values.
-
-Thu Jan 31 15:46:30 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * lib/rdoc/ri/formatter.rb (output): add accessor.
-
- * lib/rdoc/ri/display.rb (page): replace @formatter.output instead of
- $stdout.
-
-Thu Jan 31 15:06:50 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * marshal.c (r_object0): call r_entry/r_leave to call proc when
- TYPE_FIXNUM, TYPE_NIL, TYPE_TRUE, TYPE_FALSE, TYPE_SYMBOL.
-
-Thu Jan 31 14:03:38 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * lib/rdoc/ri/display.rb (display_method_list, display_class_list):
- use @formatter.raw_print_line instead of puts.
-
- * lib/rdoc/ri/driver.rb (select_methods): new method to collect all
- instance/class methods which match with passed pattern.
-
- * lib/rdoc/ri/driver.rb (run): use class_cache's result directly
- instead of select_classes' because it's removed now.
-
- * lib/rdoc/ri/driver.rb (run): search methods when passed name is not
- class name. [ruby-core:15309]
-
-Thu Jan 31 08:31:19 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * common.mk (ext/extmk.rb, instruby.rb): inlined $(MAKE) so that can
- be executed even with -n.
-
-Thu Jan 31 06:24:22 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * io.c (rb_io_close_read): replaces fptr with the tied writer if
- duplex.
-
- * io.c (rb_io_close_write): unties the tied IO for writing if duplex.
- [ruby-dev:33532]
-
-Thu Jan 31 02:22:04 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * io.c (open_key_args): allow encoding key to take two encoding
- names. a patch from <rubikitch AT ruby-lang.org>. [ruby-dev:33540]
-
-Thu Jan 31 02:15:49 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * parse.y (dsym): allow empty symbols. [ruby-core:15248]
-
-Thu Jan 31 00:01:51 2008 Tanaka Akira <akr@fsij.org>
-
- * io.c (select_internal): fix SEGV by `select [STDIN],nil,[STDIN]'.
- fixed by Petr Chromec.
- http://rubyforge.org/tracker/index.php?func=detail&aid=17275&group_id=426&atid=1698
-
-Wed Jan 30 17:32:49 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * enc/*.c: add GB12345, UCS-{2,4}{BE,LE}.
-
-Wed Jan 30 14:32:18 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * lib/rdoc/ri/driver.rb (cache_file_for): shouldn't use `:' in filename.
-
-Wed Jan 30 14:27:19 2008 Tanaka Akira <akr@fsij.org>
-
- * string.c (rb_str_succ): use wrapped character as a carry for
- ASCII incompatible encoding.
-
-Wed Jan 30 12:26:59 2008 Tanaka Akira <akr@fsij.org>
-
- * enc/utf_16be.c (UTF16_IS_SURROGATE_FIRST): avoid branch.
- (UTF16_IS_SURROGATE_SECOND): ditto.
- (UTF16_IS_SURROGATE): defined.
- (utf16be_mbc_enc_len): validation implemented.
-
- * enc/utf_16le.c (UTF16_IS_SURROGATE_FIRST): avoid branch.
- (UTF16_IS_SURROGATE_SECOND): ditto.
- (UTF16_IS_SURROGATE): defined.
- (utf16le_mbc_enc_len): validation implemented.
-
-Wed Jan 30 12:06:43 2008 Tadayoshi Funaba <tadf@dotrb.org>
-
- * bignum.c (rb_cstr_to_inum): '0_2' is a valid representation.
-
-Wed Jan 30 11:57:50 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * bootstraptest/runner.rb: fix -I../../hoge case.
-
-Wed Jan 30 01:25:16 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * test/ruby/test_range.rb: add tests to achieve over 90% test coverage
- of range.c.
-
-Wed Jan 30 00:09:37 2008 Tanaka Akira <akr@fsij.org>
-
- * enc/euc_tw.c (euctw_mbc_enc_len): validation implemented.
-
-Tue Jan 29 22:58:11 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * test/ruby/test_enumerator.rb: add tests to achieve over 90% test
- coverage of enumerator.c.
-
- * test/ruby/test_enum.rb: add for enum.c.
-
-Tue Jan 29 22:29:48 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * enumerator.c: fix documents.
-
-Tue Jan 29 22:27:11 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * range.c: fix SEGV by ("a" .. "z").step(2 ** 30) { }.
-
-Tue Jan 29 21:59:16 2008 Tanaka Akira <akr@fsij.org>
-
- * enc/euc_tw.c (euctw_islead): 0x8e is a leading byte.
-
-Tue Jan 29 21:55:35 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * bignum.c: move object allocation out of blocking_region.
- [ruby-dev:33139]
-
-Tue Jan 29 20:37:36 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * enc/trans/make_transdb.rb: add for make transdb.h.
-
- * dmytranscode.c: add for miniruby.
-
- * enc/gbk.c (gbk_left_adjust_char_head, gbk_is_allowed_reverse_match):
- fix odd regexp match. [ruby-dev:33502]
-
-Tue Jan 29 20:17:06 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * {bcc32,win32}/Makefile.sub (MINIOBJS): add dmytranscode.$(OBJEXT).
-
-Tue Jan 29 19:39:40 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * configure.in, common.mk: fix rule for dmytranscode.o.
-
-Tue Jan 29 19:03:16 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * enc/trans/japanese.c (rb_to_Windows_31J): to 'Windows-31J'.
-
- * common.mk: add rules for transdb.h.
-
- * transcode.c (init_transcoder_table): use transdb.h.
-
-Tue Jan 29 18:05:48 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * encoding.c (encdb_{replicate,alias,dummy,declare}): define only if
- NO_ENCDB_H is not defined.
-
-Tue Jan 29 17:54:11 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * enc/gbk.c (EncLen_gbk): too short. [ruby-dev:33497]
-
-Tue Jan 29 17:25:22 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * dmyencoding.c, encoding.c (enc_init_db, NO_ENCDB_H):
- miniruby doesn't use encdb.
-
- * common.mk: encdb.h use miniruby.
-
-Tue Jan 29 17:37:36 2008 Tanaka Akira <akr@fsij.org>
-
- * enc/gb18030.c (gb18030_mbc_enc_len): validation implemented.
-
-Tue Jan 29 17:01:07 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * tool/ifchange: remove $temp when unchanged.
-
-Tue Jan 29 16:59:01 2008 Tanaka Akira <akr@fsij.org>
-
- * insns.def (toregexp): generate a regexp from strings instead of one
- string.
-
- * re.c (rb_reg_new_ary): defined for toregexp. it concatenates
- strings after each string is preprocessed.
-
- * compile.c (compile_dstr_fragments): split from compile_dstr.
- (compile_dstr): call compile_dstr_fragments.
- (compile_dregx): defined for dynamic regexp.
- (iseq_compile_each): use compile_dregx for dynamic regexp.
-
- [ruby-dev:33400]
-
-Tue Jan 29 16:25:26 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * common.mk, ext/extmk.rb: always make encdb.h.
-
-Tue Jan 29 12:53:39 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * enc/gbk.c: add GBK, CP936 and CP949.
-
- * enc/euc_kr.c: remove CP949.
-
- * enc/euc_cn.c: remove CP936 and rename to gb2312.c
-
- * enc/gb2312.c: GB2312 is preferred MIME name.
-
-Tue Jan 29 03:01:29 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * parse.y (reg_fragment_setenc_gen): US-ASCII script special code.
-
- * parse.y (reg_fragment_check_len, reg_compile_gen): no need such
- trick.
- [ruby-dev:33399]
-
- * test/ruby/test_m17n.rb (test_regexp_usacii_literal): add tests.
-
-Tue Jan 29 01:38:02 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * common.mk ($(srcdir)/revision.h): no need to show ifchange execution
- because ifchange echos updated or unchanged.
-
-Tue Jan 29 01:26:23 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * common.mk (up): use last changed revision.
-
- * common.mk (up): force to update revision.h.
-
-Tue Jan 29 00:12:17 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * bignum.c (rb_big2str0): should be US-ASCII.
-
-Tue Jan 29 00:10:00 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * misc/ruby-mode.el (ruby-mode-set-encoding): updates magic comment.
-
-Mon Jan 28 23:47:52 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * parse.y (rb_id2str, ripper_initialize, Init_ripper):
- use rb_usascii_str_new2. [ruby-dev:33449]
-
-Mon Jan 28 19:37:08 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * ext/win32ole/win32ole.c (ole_cp2encoding): new function.
-
- * ext/win32ole/win32ole.c (ole_wc2vstr, ole_variant2val, fole_missing):
- set encoding to result.
-
- * ext/win32ole/win32ole.c (fole_s_set_code_page, Init_win32ole): set
- default encoding.
- [ruby-dev:33433]
-
-Mon Jan 28 11:17:28 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * string.c, parse.y, re.c: use rb_ascii8bit_encoding.
-
-Mon Jan 28 17:54:15 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * enc/utf_7.h: add dummy encoding UTF-7 and its alias CP65000.
-
-Mon Jan 28 17:41:19 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * enc/utf_8.c: add alias CP65001.
-
-Mon Jan 28 15:33:23 2008 Tanaka Akira <akr@fsij.org>
-
- * enc/big5.c (big5_mbc_enc_len): validation implemented.
-
-Mon Jan 28 13:02:02 2008 Tanaka Akira <akr@fsij.org>
-
- * enc/euc_kr.c (euckr_mbc_enc_len): validation implemented.
-
-Mon Jan 28 11:24:49 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * parse.y (parser_str_new): encoding of UTF-8 literal string in
- US-ASCII script is UTF-8. [ruby-dev:33406]
-
-Mon Jan 28 10:25:59 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * test/ruby/test_m17n.rb (test_magic_comment): add test.
-
-Mon Jan 28 09:34:54 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * common.mk (help): use double quotes for nmake.
-
-Mon Jan 28 00:39:09 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * parse.y (parser_set_encode): check if encoding is ASCII compatible.
-
-Mon Jan 28 01:21:15 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * io.c (rb_open_file): should check NUL in path.
- <http://www.rubyist.net/~matz/20080125.html#c01>.
-
- * io.c (rb_io_s_popen): ditto.
-
- * io.c (rb_io_reopen): ditto.
-
- * io.c (next_argv): ditto.
-
-Sun Jan 27 23:33:35 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * sprintf.c (rb_str_format): fix for left justify flag.
-
- * sprintf.c (rb_str_format): zero-precision zero bug revised.
- [ruby-dev:33419]
-
-Sun Jan 27 23:20:54 2008 Tanaka Akira <akr@fsij.org>
-
- * include/ruby/oniguruma.h: precise mbclen API redesigned to avoid
- inline functions.
- (onigenc_mbclen_charfound): removed.
- (onigenc_mbclen_needmore): removed.
- (onigenc_mbclen_recover): removed.
- (ONIGENC_MBCLEN_CHARFOUND): removed.
- (ONIGENC_MBCLEN_CHARFOUND_P): defined.
- (ONIGENC_MBCLEN_CHARFOUND_LEN): defined.
- (ONIGENC_MBCLEN_INVALID): removed.
- (ONIGENC_MBCLEN_INVALID_P): defined.
- (ONIGENC_MBCLEN_NEEDMORE): removed.
- (ONIGENC_MBCLEN_NEEDMORE_P): defined.
- (ONIGENC_MBCLEN_NEEDMORE_LEN): defined.
- (ONIGENC_MBC_ENC_LEN): use onigenc_mbclen_approximate.
-
- * regenc.c (onigenc_mbclen_approximate): defined.
-
- * include/ruby/encoding.h (MBCLEN_CHARFOUND): removed.
- (MBCLEN_INVALID): removed.
- (MBCLEN_NEEDMORE): removed.
- (MBCLEN_CHARFOUND_P): defined.
- (MBCLEN_INVALID_P): defined.
- (MBCLEN_NEEDMORE_P): defined.
- (MBCLEN_CHARFOUND_LEN): defined.
- (MBCLEN_NEEDMORE_LEN): defined.
-
- * encoding.c: use new API.
-
- * re.c: ditto.
-
- * string.c: ditto.
-
- * parse.y: ditto.
-
-Sun Jan 27 22:55:27 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * parse.y (value_expr_gen): reverted r12880. [ruby-dev:33388]
-
-Sun Jan 27 22:33:39 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * sprintf.c (rb_str_format): fix for octal with precision.
- [ruby-dev:33411]
-
-Sun Jan 27 22:31:45 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * misc/ruby-mode.el (ruby-mode-set-encoding): automatically insert
- encoding magic comment.
-
- * misc/ruby-mode.el (ruby-mode): set ruby-mode-set-encoding to buffer
- local before-save-hook.
-
-Sun Jan 27 19:51:15 2008 Tanaka Akira <akr@fsij.org>
-
- * string.c (rb_str_inspect): avoid exception by
- "\#\xa1".force_encoding("euc-jp").inspect.
-
-Sun Jan 27 19:07:33 2008 Tanaka Akira <akr@fsij.org>
-
- * string.c (rb_str_succ): warning suppressed.
-
-Sun Jan 27 18:18:13 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * common.mk (help): show major targets.
-
-Sun Jan 27 17:54:48 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * ext/nkf/nkf.c: raise error when no output encoding is given.
-
-Sun Jan 27 17:20:10 2008 Tanaka Akira <akr@fsij.org>
-
- * string.c (rb_str_succ): don't increment/decrement codepoint.
-
-Sun Jan 27 16:03:42 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * lib/irb/ruby-lex.rb (RubyLex#buf_input): use chars.to_a.
-
-Sun Jan 27 16:27:22 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * ext/nkf/nkf-utf8: update nkf.
-
-Sun Jan 27 16:25:27 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * re.c (rb_reg_source): set encoding as regexp encoding.
-
-Sun Jan 27 05:56:39 2008 Tanaka Akira <akr@fsij.org>
-
- * re.c (rb_reg_preprocess): force fixed encoding when ASCII
- incompatible source string.
-
-Sat Jan 26 23:46:33 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * sprintf.c (rb_str_format): zero-precision zero should be empty.
- [ruby-dev:33363]
-
- * sprintf.c (rb_str_format): not prepend octal prefix to negative or
- zero value. [ruby-dev:33363], [ruby-dev:33367]
-
-Sat Jan 26 23:42:15 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * parse.y (assignable_gen, keyword_to_name): __ENCODING__ was missing.
-
-Sat Jan 26 19:08:45 2008 Tanaka Akira <akr@fsij.org>
-
- * marshal.c (w_object): dump string encoding in USERDEF.
- [ruby-dev:33401]
-
-Sat Jan 26 17:42:23 2008 Koichi Sasada <ko1@atdot.net>
-
- * compile.c (iseq_compile_each): validate argument expr of "next"
- statement.
-
- * bootstraptest/test_syntax.rb: add a test.
-
-Sat Jan 26 17:22:46 2008 Koichi Sasada <ko1@atdot.net>
-
- * compile.c, compile.h: fix to calculate correct stack depth
- at each instruction.
-
-Sat Jan 26 09:41:02 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * lib/rexml/doctype.rb, test/rss/test_maker_itunes.rb: replace
- multi-byte string.
-
- * test/json/{test_json.rb, test_json_unicode.rb}:
- add magic comment.
-
-Sat Jan 26 09:30:26 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * include/ruby/encoding.h (rb_usascii_encindex): added prototype.
-
- * include/ruby/intern.h (rb_usascii_str_new, rb_usascii_str_new2):
- ditto.
-
-Sat Jan 26 09:17:13 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * string.c (rb_str_new): set US-ASCII and ENC_CODERANGE_7BIT when
- empty string (len == 0).
-
-Sat Jan 26 03:41:53 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * parse.y (parser_initialize): set default script encoding as US-ASCII.
-
- * ruby.c (load_file): ditto.
-
- * ruby.c (process_options): set script encoding of -e from locale
- except when -K is specified.
-
- * ruby.c (load_file): set script encoding of stdin from locale except
- when -K is specified. [ruby-dev:33375]
-
-Sat Jan 26 02:51:06 2008 Koichi Sasada <ko1@atdot.net>
-
- * compile.c, compile.h: fix stack pointer issues.
- calculate correct stack depth at compile time.
-
- * insns.def (emptstack): remove it and add a new insn "adjuststack".
-
- * bootstraptest/test_knownbug.rb: move/remove fixed test.
-
- * bootstraptest/test_syntax.rb: ditto.
-
-Sat Jan 26 00:17:18 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * string.c (rb_str_usascii_new{,2}: defined.
- (rb_str_new): set US-ASCII and ENC_CODERANGE_7BIT when empty
- string.
-
- * encoding.c (rb_usascii_encoding, rb_usascii_encindex): defined.
- (rb_enc_inspect, enc_name, rb_locale_charmap, rb_enc_name_list_i):
- use rb_str_ascii_new.
-
- * array.c (recursive_join, inspect_ary): ditto.
-
- * object.c (nil_to_s, nil_inspect, true_to_s, false_to_s,
- rb_mod_to_s): ditto.
-
- * hash.c (inspect_hash, rb_hash_inspect, rb_f_getenv, env_fetch,
- env_clear, env_to_s, env_inspect): ditto.
-
- * numeric.c (flo_to_s, int_chr, rb_fix2str): ditto.
-
- * bignum.c (rb_big2str): ditto.
-
- * file.c (rb_file_ftype, rb_file_s_dirname, rb_file_s_extname,
- file_inspect_join, Init_file): ditto.
-
- * test/ruby/test_ruby_m17n.rb: add checks for encoding of string.
-
-Sat Jan 26 01:35:46 2008 Tanaka Akira <akr@fsij.org>
-
- * marshal.c (r_byte): use getbyte instead of getc.
- (marshal_load): ditto.
- [ruby-dev:33264]
-
-Sat Jan 26 00:43:40 2008 Tanaka Akira <akr@fsij.org>
-
- * io.c (rb_io_getline_fast): don't care ASCII incompatible encoding.
- (prepare_getline_args): generate a newline according to IO encoding
- when necessary.
- (rb_io_getline_1): call rb_io_getline_fast only for ASCII
- compatible encoding.
-
-Fri Jan 25 21:49:36 2008 Tanaka Akira <akr@fsij.org>
-
- * string.c (rb_str_buf_cat_ascii): use rb_enc_cr_str_buf_cat.
-
-Fri Jan 25 19:38:45 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * common.mk (version.$(OBJEXT)): depends on $(srcdir)/revision.h.
-
- * common.mk (revision.h): extracts revision number with ``svn info''.
-
- * common.mk (up): target to update from the repository.
-
- * Makefile.in, {win,bcc}32/Makefile.sub (IFCHANGE): tool to update a
- file if changed.
-
- * tool/ifchange: for unixen.
-
- * win32/ifchange.bat: some fix
-
-Fri Jan 25 17:12:13 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ruby.c (load_file): set default to ASCII-8BIT explicitly if -K
- option is not given.
-
-Fri Jan 25 16:31:47 2008 Tanaka Akira <akr@fsij.org>
-
- * include/ruby/intern.h (rb_str_buf_cat_ascii): declared.
-
- * string.c (rb_str_buf_cat_ascii): defined.
-
- * re.c (rb_reg_s_union): use rb_str_buf_cat_ascii to support ASCII
- incompatible encoding.
-
-Fri Jan 25 16:11:16 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ruby.c (process_options, load_file, rb_load_file): propagates script
- encoding by -K to libraries. [ruby-dev:33156]
-
-Fri Jan 25 15:56:48 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ruby.c (cmdline_arguments): split argc and argv from cmdline_options.
-
- * ruby.c (process_options): not set encoding of -e option from -E
- option if they are not compatible.
-
-Fri Jan 25 13:15:23 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * ruby.c (proc_options, process_options, load_file): shouldn't effect
- --encoding to script encoding. [ruby-dev:33169]
-
-Fri Jan 25 10:31:58 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * */*.bat: set svn:mime-type to text/batch.
-
-Thu Jan 24 23:23:06 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * enum.c (enum_one, enum_take_while, enum_drop_while): fix documents.
-
-Thu Jan 24 21:46:24 2008 Tanaka Akira <akr@fsij.org>
-
- * parse.y (reg_fragment_setenc_gen): associate ASCII-8BIT only if
- str has only ASCII characters.
-
-Thu Jan 24 20:46:17 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * test/ruby/test_m17n.rb: follow to the following changes.
-
-Thu Jan 24 20:21:07 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * parser.y (parser_str_new): automatically update string literal's
- encoding from US-ASCII to ASCII-8BIT when script encoding is US-ASCII
- and the string includes non-ascii bytes. [ruby-dev:33348]
-
- * parser.y (reg_fragment_check_gen, reg_compile_gen): automatically
- update regexp literal's encoding from US-ASCII to ASCII-8BIT when
- script encoding is US-ASCII, the regexp has no kcode option and the
- regexp includes non-ascii bytes. [ruby-dev:33353]
-
-Thu Jan 24 19:36:22 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/uri/generic.rb (URI::Generic::inspect): use Kernel#to_s instead
- object_id with printf. [ruby-dev:33347]
-
-Thu Jan 24 19:29:20 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * sprintf.c (remove_sign_bits): returns pointer to the first char to
- be used, instead of copying.
-
- * sprintf.c (rb_str_format): negative indicator dots should come
- before sign digits always. [ruby-dev:33224]
-
-Thu Jan 24 18:19:42 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * include/ruby/encoding.h (rb_enc_is_newline): parenthesized arguments.
-
-Thu Jan 24 18:14:14 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * re.c (rb_reg_fixed_encoding_p): no need to treat ASCII-8BIT specially.
-
-Thu Jan 24 16:53:06 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * re.c (rb_reg_initialize): 7bit clean regexp should be US-ASCII.
- [ruby-dev:33346]
-
-Thu Jan 24 16:31:04 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * io.c (rb_io_getline_fast): the end point of left_char_head()
- must be the last character. [ruby-cvs:22445]
-
-Thu Jan 24 16:24:25 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * parse.y (reg_fragment_setenc_gen): recognize regexp with option n as
- as ASCII-8BIT instead of US-ASCII. [ruby-dev:33339]
-
-Thu Jan 24 15:44:42 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * array.c (collect_bang_i): use rb_ary_store() to avoid potential
- memory corruption. a patch from Yusuke Endoh <mame@tsg.ne.jp>
- in [ruby-dev:33328].
-
- * array.c (ITERATE): remove unnecessary macro.
-
- * array.c (sort_1): remove ary_sort_check(). in-place sort keep
- original elements even when it's modified.
-
- * array.c (sort_2): ditto.
-
-Thu Jan 24 15:09:40 2008 Tanaka Akira <akr@fsij.org>
-
- * time.c (make_time_t): revert round trip test. [ruby-dev:33058]
-
-Thu Jan 24 11:14:56 2008 Tanaka Akira <akr@fsij.org>
-
- * string.c (rb_enc_cr_str_buf_cat): ASCII incompatible encoding is
- not compatible with any other encoding.
-
-Thu Jan 24 07:34:34 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * parse.y (STR_NEW0): set encoding as US-ASCII.
-
-Thu Jan 24 03:47:41 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * lib/rexml/text.rb, lib/rubygems/open-uri.rb, lib/open-uri.rb,
- test/logger/test_logger.rb, test/ruby/test_regexp.rb:
- fix tests. [ruby-dev:33336]
-
-Thu Jan 24 03:23:44 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * string.c (rb_str_each_line): use memchr(3) for faster newline
- search.
-
- * io.c (appendline): remove unused arguments
-
- * io.c (rb_io_getline_fast): make much simpler (and faster).
-
-Thu Jan 24 02:13:07 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * insns.def (expandarray): fix stack inc. [ruby-dev:32892]
-
- * bootstraptest/test_knownbug.rb, test_massign.rb: move a fixed test.
-
-Thu Jan 24 01:00:34 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * encoding.{c, h} (rb_usascii_encoding): added.
-
- * parse.y (parser_str_new, rb_intern3): ascii only string literal is
- US-ASCII.
-
- * ruby.c (proc_optionc): -Kn means ASCII-8BIT.
-
-Wed Jan 23 23:54:40 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * sprintf.c: fix comment. [ruby-dev:33275]
-
- * math.c: fix comment. [ruby-dev:33276]
-
-Wed Jan 23 22:47:34 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * test/ruby/test_struct.rb: add tests to achieve over 90% test
- coverage of struct.c.
-
- * test/ruby/test_sprintf.rb: ditto for sprintf.c.
-
- * test/ruby/test_math.rb: ditto for math.c.
-
-Wed Jan 23 22:14:28 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * enc/trans/japanese.c (rb_from_Windows_31J, rb_to_Windows_31J):
- provisional workaround for Windows-31J. [ruby-dev:33320]
-
-Wed Jan 23 15:25:04 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * time.c (time_strftime): copy encoding from format. [ruby-dev:33303]
-
-Wed Jan 23 15:04:11 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * string.c (str_make_independent): should set length.
-
- * string.c (rb_str_associate): hide associated array from ObjectSpace.
-
- * string.c (rb_str_associated): return associated array with freezing
- instead of false. [ruby-dev:33282]
-
- * string.c (rb_str_freeze): freeze associated array together.
-
-Wed Jan 23 13:39:48 2008 Tanaka Akira <akr@fsij.org>
-
- * re.c (rb_reg_prepare_re): fix SEGV by
- /a/ =~ "aa".force_encoding("utf-16be").
-
-Wed Jan 23 11:53:26 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * string.c (str_mod_check, str_nth, str_offset): constified.
-
- * string.c (rb_str_dump): dump in ASCII-8BIT always.
-
-Wed Jan 23 10:18:10 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * eval_method.c (rb_export_method): set ruby_vm_redefined_flag for
- visibility change as well. reported by K.Kosako in
- http://d.hatena.ne.jp/kkos/20080122#1201012720.
-
-Tue Jan 22 22:26:23 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * test/ruby/test_bignum.rb: change some tests because rational
- redefines Bignum#quo and Bignum#**.
-
-Tue Jan 22 20:58:15 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * lib/mkmf.rb (create_makefile): need to output sodir rule.
-
-Tue Jan 22 19:37:16 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * lib/mkmf.rb (create_makefile): lib files shouldn't depend on install
- dir because if the dir is newer than lib files, lib files will be
- always copied.
-
-Tue Jan 22 17:52:52 2008 Martin Duerst <duerst@it.aoyama.ac.jp>
-
- * enc/trans/utf_16_32.c: Streamline parentheses, add more
- 'static' qualifiers.
-
-Tue Jan 22 12:57:07 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * configure.in (MINIRUBY): remove -I$(EXTOUT)/$(arch) from
- MINIRUBY since miniruby might not be able to load DLL.
-
- * test/ruby/test_m17n.rb: move tests from bootstrap test.
-
- * encoding.c (enc_find): should check name if ASCII compatible.
-
- * string.c (rb_str_end_with): should check character boundary.
-
- * encoding.c (rb_enc_compatible): encoding must be ASCII
- compatible before checking ENC_CODERANGE_7BIT.
-
- * encoding.c (rb_enc_compatible): wrong compatibility condition.
- [ruby-dev:33273]
-
-Tue Jan 22 09:26:47 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * string.c (rb_str_each_char): iterates over a shadow.
- [ruby-dev:33243]
-
-Tue Jan 22 08:59:52 2008 Eric Hodel <drbrain@segment7.net>
-
- * lib/rdoc/ri/formatter.rb: Indent labeled lists like note lists.
-
- * test/rdoc/test_rdoc_ri_overstrike_formatter.rb: Added.
-
- * test/rdoc/test_rdoc_ri_formatter.rb: Added tests.
-
-Tue Jan 22 04:40:28 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * parse.y (rb_intern3): do not call rb_enc_mbclen() if *m is
- ASCII. [ruby-talk:287225]
-
- * string.c (rb_str_each_line): use rb_enc_is_newline() to gain
- performance if the record separator ($/) is not modified.
-
-Tue Jan 22 01:15:51 2008 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
-
- * ChangeLog: format-time-string under C locale. [ruby-dev:33261]
-
-Tue Jan 22 00:45:12 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * test/ruby/test_bignum.rb: add tests for bignum.c.
-
-Tue Jan 22 00:30:08 2008 Yusuke Endoh <mame@tsg.ne.jp>
-
- * bignum.c (big_shift): fix a bug that caused infinite loop when
- left shifting.
-
-Mon Jan 21 20:09:38 2008 Tadayoshi Funaba <tadf@dotrb.org>
-
- * lib/date.rb (marshal_load): initialize the cache.
-
-Mon Jan 21 19:42:42 2008 Martin Duerst <duerst@it.aoyama.ac.jp>
-
- * transcode.c, enc/trans/utf_16_32.c, test/ruby/test_transcode.rb:
- added UTF-32BE and UTF-32LE conversions.
-
-Mon Jan 21 14:36:14 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * transcode.c (str_transcode): initialize transcoder in
- rb_transcoding. [ruby-dev:33234]
-
- * transcode_data.h (rb_transcoding): transcoder constified.
-
-Mon Jan 21 12:50:02 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * eval.c, gc.c (setjmp): sigsetjmp is a macro on cygwin.
-
-Mon Jan 21 12:35:00 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * transcode.c (transcode_loop, str_transcoding_resize): use unsigned
- char. [ruby-dev:33232]
-
- * transcode_data.h (rb_transcoding, rb_transcoder): removed callback
- parameters.
-
- * enc/trans/japanese.c: ditto.
-
- * enc/trans/utf_16_32.c: parenthesized bit-or operands.
-
-Mon Jan 21 11:59:00 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * string.c (rb_str_each_char): move forward. [ruby-dev:33231]
-
-Mon Jan 21 06:40:03 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * transcode.c (transcode_dispatch): constified return value.
-
- * transcode_data.h (rb_transcoding): include pointer to rb_transcoder
- and auxiliary data.
-
- * transcode_data.h (rb_transcoder): all callback functions should have
- their own parameters.
-
- * enc/trans/{japanese,single_byte}.c: constified.
-
-Mon Jan 21 03:45:49 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * string.c (rb_str_each_char): advance offset before get next char
- length. [ruby-dev:33211]
-
-Sun Jan 20 20:00:20 2008 Martin Duerst <duerst@it.aoyama.ac.jp>
-
- * transcode.c, enc/trans/utf_16_32.c, test/ruby/test_transcode.rb:
- added UTF-16LE conversions.
-
- * fixed changelog for last commit
-
-Sun Jan 20 17:54:00 2008 Martin Duerst <duerst@it.aoyama.ac.jp>
-
- * added changelog for last commit
-
-Sun Jan 20 15:08:08 2008 Martin Duerst <duerst@it.aoyama.ac.jp>
-
- * enc/trans/utf_16_32.c: new file, currently implementing
- UTF-16BE conversions only.
-
- * test/ruby/test_transcode.rb: Added tests for UTF-16BE;
- made check_both_ways() use force_encoding differently.
-
- * transcode_data.h, transcode.c: Support for more conversion
- functions.
-
-Sun Jan 20 13:06:01 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * string.c (rb_str_each_char): performance improvement, and stop if
- shortened in the block. [ruby-dev:33189]
-
-Sun Jan 20 09:12:26 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * common.mk: use -Ks when read insns.def. [ruby-dev#33185]
-
- * parse.y: fix -e and stdin strings aren't set encoding.
-
-Sun Jan 20 05:12:44 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * enc/make_encdb.rb: fix duplication check.
-
-Sun Jan 20 05:03:46 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * ascii.c: remove definition of replica KOI8-U.
-
-Sun Jan 20 00:33:59 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * enc/koi8_u.c: added.
-
- * regenc.c, enc/utf_8.c, enc/unicode.c, enc/gb18030.c: add ARG_UNUSED.
-
-Sat Jan 19 22:41:39 2008 Tanaka Akira <akr@fsij.org>
-
- * string.c (coderange_scan): don't call mbclen functions for ASCII
- characters with ASCII compatible encoding.
-
-Sat Jan 19 21:00:34 2008 Tanaka Akira <akr@fsij.org>
-
- * lib/rdoc/template.rb (RDoc): defined to avoid uninitialized constant
- error by `./ruby test/rubygems/test_gem_server.rb'.
-
-Sat Jan 19 20:41:29 2008 Tanaka Akira <akr@fsij.org>
-
- * encoding.c (enc_new): don't free rb_encoding to avoid SEGV by
- `miniruby -e exit' on x86_64 GNU/Linux.
-
-Sat Jan 19 18:40:19 2008 Tadayoshi Funaba <tadf@dotrb.org>
-
- * lib/date.rb (once): use an instance variable which points a hash
- as cache. [experimental]
-
-Sat Jan 19 17:21:29 2008 Tadayoshi Funaba <tadf@dotrb.org>
-
- * lib/date.rb, lib/date/format.rb: parse's hints as an
- experimental function has been removed.
-
-Sat Jan 19 11:21:53 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * configure.in (sigsetjmp): check if available.
-
- * eval.c, gc.c (setjmp): do not use _setjmp if sigsetjmp is available.
-
-Sat Jan 19 11:10:11 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * configure.in: Remove wrong assumptions about Cygwin. a patch from
- Corinna Vinschen in [ruby-Bugs-17018].
-
-Sat Jan 19 09:23:14 2008 Masaki Suketa <masaki.suketa@nifty.ne.jp>
-
- * ext/win32ole/win32ole.c (ole_set_safe_array): should not use
- recursive calling.
-
- * test/win32ole/test_win32ole_variant.rb: ditto.
-
-Sat Jan 19 08:58:47 2008 Eric Hodel <drbrain@segment7.net>
-
- * lib/rdoc/markup: Remove ListBase and Line constants.
-
- * lib/rdoc/ri: Allow output IO to be specified.
-
- * test/rdoc/parser/test_parse_c.rb: Move up one level, fixed.
-
- * test/rdoc/parser/test_rdoc_markup_attribute_manager.rb: Renamed to
- match new class name, updated to match new classes.
-
- * test/rdoc/test_rdoc_ri_formatter.rb: Start of RI formatting tests.
-
- * test/rdoc/test_rdoc_ri_attribute_manager.rb: Start of
- RDoc::RI::AttributeManager tests.
-
- * test/rdoc/test_simple_markup.rb: Moved to match new class name.
-
-Sat Jan 19 08:35:36 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * parse.y (parser_prepare): get encoding from the first line.
- [ruby-dev:33168]
-
- * ruby.c (load_file): set encoding to input with set_encoding.
-
-Sat Jan 19 03:46:42 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * thread.c (thread_create_core): prohibit thread creation in the
- frozen thread group. a patch in [ruby-dev:33176] from sheepman
- <sheepman AT sheepman.sakura.ne.jp>.
-
- * thread.c (thread_create_core): should inherit ThreadGroup from
- the current thread.
-
-Sat Jan 19 00:37:19 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * sprintf.c (rb_str_format): set result encoding for wider width.
-
-Sat Jan 19 00:13:19 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * thread_win32.c (w32_wait_events): shouldn't invoke interrupt handle
- by timer_thread.
-
-Fri Jan 18 23:49:41 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * thread.c (thread_create_core): set thread group before creating
- thread.
-
-Fri Jan 18 20:19:51 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * parse.y (ripper_initialize): too early to set parser->enc.
-
-Fri Jan 18 20:03:05 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * win32/setup.mak (BASERUBY): nmake cannot execute ruby correctly
- if the path of ruby.exe is quoted.
-
- * win32/setup.mak ($(ARCH)): if a macro is appended by $(APPEND),
- a space will be inserted on the top of the line.
-
-Fri Jan 18 17:56:09 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * eval_intern.h, insnhelper.h, thread_pthread.h, vm_core.h, vm_opts.h:
- prefixed include guards with RUBY.
-
- * id.h: added include guard.
-
- * regenc.h, regint.h, regparse.h: prefixed include guards with
- ONIGURUMA.
-
-Fri Jan 18 15:57:05 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * thread.c (thread_cleanup_func): ignore errors from destroying mutex
- of dead thread. [ruby-core:15069]
-
- * thread_pthread.c, thread_win32.c (native_thread_destroy): ditto.
-
-Fri Jan 18 15:56:04 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * encoding.c (rb_enc_name_list_i, rb_enc_aliases_enc_i): freeze
- element strings to be returned.
-
-Fri Jan 18 14:36:34 2008 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
-
- * test/ruby/test_m17n.rb (test_str_dump): added test for
- String#dump. [ruby-dev:33142]
-
-Fri Jan 18 12:25:13 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * encoding.c (load_encoding): check if successfully loaded.
-
- * encoding.c (rb_enc_find_index): use original encoding name to
- replicate loaded encoding instead alias.
-
-Fri Jan 18 09:43:02 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * re.c (rb_char_to_option_kcode): Regexp switch `s' should mean
- Windows-31J, as wells as `-Ks'.
-
-Fri Jan 18 09:22:07 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * parse.y (parser_initialize): explicitly call rb_ascii8bit_encoding().
-
- * parse.y (parser_prepare): lex_input may not be have encoding (e.g. IO).
-
- * parse.y (rb_parser_compile_string): set encoding from input string.
-
- * encoding.c (rb_enc_find_index): use ASCII-8BIT if loading known
- encoding failed.
-
- * parse.y (ripper_initialize): move parser->enc initialization.
-
- * encoding.c (rb_enc_aliases_enc_i): exclude non alias names from
- Encoding.aliases.
-
- * encoding.c (rb_enc_find_index): use original encoding name to
- load DLL.
-
-Fri Jan 18 07:06:25 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * io.c (Init_IO): stdin/stdout may not be duplex.
-
-Fri Jan 18 04:27:57 2008 Eric Hodel <drbrain@segment7.net>
-
- * sample/rdoc/markup/rdoc2latex.rb: Fix for new namespacing.
-
- * lib/rdoc/markup/to_latex.rb: Fix namespacing.
-
-Fri Jan 18 02:02:28 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * bootstraptest/runner.rb (assert_valid_syntax): added.
+ * internal.h: move rb_thread_io_blocking_region() declaration
+ from intern.h to internal.h. It's still experimental API and
+ need more discussion. [ruby-dev:43698]
+ * include/ruby/intern.h: ditto.
- * bootstraptest/test_knownbug.rb: added test for [ruby-list:44479]
+ * ext/socket/rubysocket.h: include internal.h.
+ * ext/socket/depend: add internal.h dependency.
+ * ext/socket/extconf.rb: add $INCFLAGS to topdir.
-Fri Jan 18 01:48:06 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Tue Jun 21 20:38:47 2011 Tadayoshi Funaba <tadf@dotrb.org>
- * vm_insnhelper.c (vm_call_method): check argument number to
- attr_reader. [ruby-core:15120]
+ * ext/date/date_core.c (datetime_s_*): canonicalize 24 o'clock.
-Fri Jan 18 00:49:31 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Tue Jun 21 19:46:23 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * io.c (rb_io_check_readable): flush tied write IO too.
+ * test/ruby/test_thread.rb (TestThread#test_priority): enable
+ this test again. Current GVL respect thread priority rather
+ than past.
- * io.c (Init_IO): tie stdin with stdout. [ruby-core:15107]
+Tue Jun 21 13:25:35 2011 TAKAO Kouji <kouji@takao7.net>
-Fri Jan 18 00:23:31 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * ext/readline/readline.c (readline_getc): applied a patch in
+ #3827 by by Akio Tajima <artonx AT yahoo.co.jp>. (see #3827)
- * encoding.c (enc_free): removed since rb_encoding may be used while
- cleanup.
+Tue Jun 21 13:16:31 2011 TAKAO Kouji <kouji@takao7.net>
-Fri Jan 18 00:17:19 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * ext/readline/extconf.rb: fixed bug, specify --disable-libedit
+ then disable libedit, does not specify then check readline and
+ libedit if failed checking readline. (fixes #3375)
- * enc/euc_cn.c: split from enc/euc_kr.c.
+Mon Jun 20 22:52:07 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
-Fri Jan 18 00:03:54 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * process.c (before_exec): use sig_do_nothing instead of SIG_DFL
+ for avoiding a race.
+ * process.c (sig_do_nothing): new function.
- * ext/stringio/stringio.c (strio_init): use default external encoding
- if nothing is given. a patch from sheepman <sheepman AT
- sheepman.sakura.ne.jp> in [ruby-dev:33159].
+Mon Jun 20 21:31:03 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
-Thu Jan 17 23:56:20 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * thread_pthread.c (thread_timer): rename timeout_10ms to
+ time_quantum. it's no longer 10ms.
- * common.mk (encdb.h): give output file name to make_encdb.rb.
+Mon Jun 20 18:46:02 2011 Hiroshi Nakamura <nahi@ruby-lang.org>
- * encoding.c (enc_table): simplified.
+ * ext/openssl/ossl_cipher.c, ext/openssl/lib/openssl/cipher.rb:
+ Documentation fix by Ippei Obayashi. See #4419.
- * encoding.c (enc_register_at): lazy loading. [ruby-dev:33013]
+Mon Jun 20 15:41:33 2011 Hiroshi Nakamura <nahi@ruby-lang.org>
- * regenc.h (ENC_DUMMY): added.
+ * lib/webrick/cookie.rb (WEBrick::Cookie.parse): Revert r31228.
+ r31228 was for allowing the 'Cookie:' header which did not have no
+ SP after ';' for separating cookie-pairs but RFC6265 requires single
+ SP after ';' there. We allow multiple SPs here for compatibility
+ with older WEBrick version.
- * enc/make_encdb.rb: now emits macros only.
+ * test/webrick/test_cookie.rb: Test it.
- * enc/iso_2022_jp.h: split from encoding.c.
+Sun Jun 19 13:31:26 2011 Shota Fukumori <sorah@tubusu.net>
-Thu Jan 17 21:48:21 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * NEWS: Introduce --hide-skip on test/unit.
- * re.c (rb_char_to_option_kcode): fixed typo.
+Sun Jun 19 10:05:16 2011 Shota Fukumori <sorah@tubusu.net>
-Thu Jan 17 21:01:25 2008 Tadayoshi Funaba <tadf@dotrb.org>
+ * lib/test/unit/parallel.rb: Override Test::Unit::TestCase#on_parallel_worker?
+ only when $0 == __FILE__.
- * lib/date.rb (Date::Infinity#<=>): didn't work. A patch from
- Dirkjan Bussink <d.bussink AT gmail.com> [ruby-core:15098].
- This is a bug obviously. However it didn't affect the library's
- functions.
+ * lib/test/unit/parallel.rb: Run Test::Unit::Worker.run only when
+ $0 == __FILE__.
- * lib/date.rb, lib/date/format.rb: some trivial changes.
+Sat Jun 18 23:59:24 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Thu Jan 17 13:07:18 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * io.c (fill_cbuf): finish reading at EOF, and the readconv has
+ been cleared by another thread while io_fillbuf() is waiting at
+ select(). a patch in [ruby-core:37197] by Hiroshi Shirosaki
+ <h.shirosaki AT gmail.com>. fixed #3840
- * string.c (rb_str_dump): preserve the encoding of source string
- if it is ASCII compatible. otherwise, add '.force_encoding()'
- for ugly work around. maybe we should implement some other way
- to keep non ASCII encoding in dumped string. [ruby-dev:33142]
+Sat Jun 18 21:36:29 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
-Thu Jan 17 10:30:32 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * thread_pthread.c: remove GVL_DEBUG
- * io.c (io_fwrite): always flush IO on tty, even without newlines.
- [ruby-core:15107]
+Sat Jun 18 21:32:02 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
-Wed Jan 16 22:45:27 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * vm.c, vm_core.h (rb_vm_stack_to_heap): remove const.
+ It makes compilations warnings.
- * encoding.c (enc_register_at): make own copy. [ruby-dev:33136]
+Sat Jun 18 18:54:15 2011 Koichi Sasada <ko1@atdot.net>
-Wed Jan 16 18:03:10 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * vm.c, vm_core.h (rb_vm_stack_to_heap): fix "const" place.
- * io.c (pipe_open, rb_io_s_popen): clear temporary object to release
- and prevent from GC.
+Sat Jun 18 17:23:38 2011 Tanaka Akira <akr@fsij.org>
-Wed Jan 16 17:55:07 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+ * eval.c, hash.c, load.c, proc.c, range.c, thread.c, time.c: don't
+ declare internal functions.
- * numeric.c (fix_quo): typo. a patch from Shin-ichiro HARA
- <sinara AT blade.nagaokaut.ac.jp> in [ruby-dev:33130]
+ * internal.h, vm_core.h: declare internal functions.
-Wed Jan 16 17:36:26 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+ * array.c: include internal.h.
- * test/test_delegate.rb: add new test file for delegate.rb.
+ * common.mk: update dependency for array.o.
-Wed Jan 16 16:14:00 2008 Akinori MUSHA <knu@iDaemons.org>
+Sat Jun 18 13:39:33 2011 Tanaka Akira <akr@fsij.org>
- * ruby.1: Fix grammar.
+ * internal.h: declarations declared in include/ruby/*.h removed.
-Wed Jan 16 15:26:31 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Sat Jun 18 12:42:17 2011 Tanaka Akira <akr@fsij.org>
- * file.c (sys_fail2): get rid of unlimited alloca.
+ * method.h, internal.h iseq.h: declare internal functions.
- * io.c (mode_enc, pipe_open, rb_io_s_popen): ditto.
+ * compile.c, eval.c, iseq.c, object.c, parse.y, proc.c, process.c,
+ thread.c, vm.c, vm_eval.c, vm_insnhelper.c, vm_method.c: don't
+ declare internal functions.
- * load.c (rb_feature_p): ditto.
+ Note that rb_method_entry_eq() is defined in vm_method.c but
+ there was a declaration in proc.c with different const-ness.
+ Now it is declared in method.h with same const-ness to the
+ definition.
- * object.c (rb_cstr_to_dbl): ditto.
+ * object.c (rb_mod_module_exec): don't declare functions declared in
+ include/ruby/intern.h.
- * io.c (mode_enc): fixed uninitialized variable.
+Sat Jun 18 12:05:08 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Wed Jan 16 12:51:30 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * include/ruby/backward/classext.h: for evil gems. fixed #4803
- * include/ruby/intern.h (rb_str_tmp_new, rb_str_shared_replace):
- prototype moved.
+Sat Jun 18 11:12:13 2011 Tanaka Akira <akr@fsij.org>
-Tue Jan 15 23:52:51 2008 NARUSE, Yui <naruse@ruby-lang.org>
+ * common.mk: update dependencies.
- * enc/*: add ARG_UNUSED.
+Sat Jun 18 11:09:03 2011 Tanaka Akira <akr@fsij.org>
- * enc/koi8_u.c: added.
+ * io.c: suppress warnings.
-Tue Jan 15 23:00:08 2008 NARUSE, Yui <naruse@ruby-lang.org>
+Sat Jun 18 10:22:39 2011 Tanaka Akira <akr@fsij.org>
- * enc/utf_{16,32}{be,le}.c: remove some ARG_UNUSED. replace struct
- OnigEncodingST by OnigEncoding.
+ * internal.h: declare more internal functions.
-Tue Jan 15 22:30:43 2008 NARUSE, Yui <naruse@ruby-lang.org>
+ * iseq.h (rb_method_get_iseq): declared.
- * encoding.c (ENC_REGISTER): use &OnigEncoding*.
- (ENCINDEX_UTF_8): renamed from ENCINDEX_UTF8.
- (rb_enc_init): use ENC_REGISTER.
+ * compile.c, eval.c, eval_error.c, iseq.c, parse.y, proc.c, range.c,
+ ruby.c, time.c, util.c, vm.c: don't declare internal functions.
- * include/ruby/oniguruma.h (OnigEncodingUTF8, ONIG_ENCODING_UTF8):
+ * eval.c, parse.y, thread_pthread.c: non-existing function declarations
removed.
- * enc/*.c: remove use of &encoding_*; use enc argument instead.
-
-Tue Jan 15 18:44:46 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * enc/utf_8.c: remove use of ONIG_ENCODING_UTF8 altogether; use
- enc argument instead.
-
-Tue Jan 15 18:05:26 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * enc/utf_8.c (ONIG_ENCODING_UTF8): reverted.
-
-Tue Jan 15 18:01:55 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * win32/Makefile.sub (MKFILES): add dependencies.
-
-Tue Jan 15 18:00:16 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * enc/utf_8.c (OnigEncodingDefine): encoding name should be kept
- unchanged.
-
-Tue Jan 15 17:53:05 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * enc/utf_8.c: renamed as IANA name.
-
- * enc/Makefile.in: ditto.
-
-Tue Jan 15 16:59:31 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ruby.c (proc_options): encoding libraries cannot be loaded until
- load path is set.
-
-Tue Jan 15 15:09:28 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * win32/setup.mak: strip out empty lines from CPP output.
-
-Tue Jan 15 14:57:38 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * {win,bcc}32/setup.mak (-basic-vars-): expand BASERUBY to full path
- to get rid of ./ruby.exe.
-
- * win32/enc-setup.mak: workaround for Borland make.
-
-Tue Jan 15 14:44:53 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * encoding.c (rb_locale_charmap): use ASCII-8BIT in miniruby.
-
-Tue Jan 15 13:54:41 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * {bcc32,win32}/Makefile.sub (RUNRUBY): need to set archdir when
- invoking ruby.
-
-Tue Jan 15 13:43:18 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * common.mk (us_ascii.o): add dependencies. [ruby-dev:33111]
-
-Tue Jan 15 03:41:42 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * eval.c (eval): check if backtrace is empty. [ruby-core:15040]
-
-Tue Jan 15 01:28:47 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * common.mk: simplified dummy objects dependencies.
-
-Tue Jan 15 01:19:00 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * common.mk (OBJS): moved encoding.o from COMMONOBJS.
-
- * common.mk (dmyencoding.o): added. [ruby-dev:33099]
-
- * configure.in, {win,bcc}32/Makefile.sub (MINIOBJS): added
- dmyencoding.o.
-
- * dmyencoding.c (rb_locale_charmap): returns nil for miniruby.
-
-Tue Jan 15 00:05:50 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * io.c (appendline): specifying limit should not generate broken
- byte sequence. strings should be rounded. [ruby-dev:33088]
-
-Mon Jan 14 23:33:02 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * ext/nkf/lib/kconv.rb (Kconv.tolocale): argument is str.
-
-Mon Jan 14 23:31:05 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * configure.in (setup): add -I$(EXTOUT)/$(arch) to MINIRUBY.
-
- * bootstraptest/runner.rb (main): expand -I directory path.
-
-Mon Jan 14 23:28:10 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * win32/enc-setup.mak (BUILTIN_ENCOBJS): depends on enc/Makefile.in.
-
-Mon Jan 14 22:48:16 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * re.c (rb_char_to_option_kcode): use rb_enc_find_index() instead
- of using fixed index value.
-
- * enc/Makefile.in (encsrcdir): make US-ASCII built-in.
-
-Mon Jan 14 22:25:02 2008 WATANABE Hirofumi <eban@ruby-lang.org>
-
- * golf_prelude.rb: Shorter method name completion. Same method
- used for const missing. do_while and do_until added. Enumerator
- gains all of Array's abilities. Ex:
- '123'.m{|i|i*2} #=> "112233"
- '123'.pe #=> '123'.perm*' ' #=> "123 132 213 231 312 321"
- base on a patch from Darren Smith <darrenks AT ml1.net>.
-
-Mon Jan 14 21:10:02 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * enc/us_ascii.c: wrong alias name: ANSI_X3.4-1986.
-
- * rubytest.rb: add -I#{srcdir} to load encoding DLL.
-
-Mon Jan 14 18:53:58 2008 Koichi Sasada <ko1@atdot.net>
-
- * thread.c: clear thread structure.
- (TODO: survey that child process should clear mutex or not).
-
- * bootstraptest/test_knownbug.rb, test_thread.rb: move a fixed test.
-
-Mon Jan 14 18:43:38 2008 Koichi Sasada <ko1@atdot.net>
-
- * bootstraptest/runner.rb: add "flunk" method.
-
- * bootstraptest/test_knownbug.rb: fix to use flunk.
-
-Mon Jan 14 18:10:59 2008 Koichi Sasada <ko1@atdot.net>
-
- * vm.h: remove dangerous assembler sentence.
-
-Mon Jan 14 18:06:37 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * encoding.c (rb_locale_encoding): return US-ASCII when charmap is
- nil.
-
-Mon Jan 14 16:12:58 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/shellwords.rb: scape should be an alias to shellescape. a
- patch from Masahiro Kawato <m-kawato AT mwb.biglobe.ne.jp> in
- [ruby-dev:33060].
-
-Mon Jan 14 16:09:16 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * ruby.1: a patch to describe --encoding. a patch from Yugui
- <yugui AT yugui.sakura.ne.jp> in [ruby-dev:33079].
-
- * ruby.c: ditto.
-
-Mon Jan 14 13:49:26 2008 Tanaka Akira <akr@fsij.org>
-
- * re.c (rb_reg_prepare_re): initialize error message buffer.
- (rb_reg_search): ditto.
- (rb_reg_check_preprocess): ditto.
- (rb_reg_new_str): ditto.
- (rb_enc_reg_new): ditto.
- (rb_reg_compile): ditto.
- (rb_reg_initialize_m): ditto.
- (rb_reg_s_union_m): ditto.
-
-Mon Jan 14 12:33:07 2008 Eric Hodel <drbrain@segment7.net>
-
- * lib/rdoc/markup*: Renamespace from SM::SimpleMarkup to
- RDoc::Markup.
-
-Mon Jan 14 10:45:45 2008 Martin Duerst <duerst@it.aoyama.ac.jp>
-
- * enc/ascii.c: Exchanged order of arguments for one ENC_ALIAS
-
-Mon Jan 14 09:19:07 2008 Tadayoshi Funaba <tadf@dotrb.org>
-
- * lib/time.rb: do not reference Time directly from the inside of
- definitions. [ruby-dev:33059]
-
-Mon Jan 14 05:44:44 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * enc/*.c: add replicas and aliases.
-
- * enc/make_encdb.h: add duplicate and undefined check.
-
-Mon Jan 14 02:03:05 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * include/ruby/oniguruma.h: remove ONIG_ENCODING_* and OnigEncoding*
- which are not builtin.
-
- * regenc.{c,h} (onigenc_mb2_code_to_mbclen, onigenc_mb4_code_to_mbclen):
- fix prototype.
-
- * enc/big5.c, enc/euc_kr.c, enc/euc_tw.c, enc/gb18030.c,
- enc/koi8_r.c, enc/windows_1251.c: imported from Oniguruma.
-
-Sun Jan 13 22:47:28 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * enc/make_encdb.h: sort encoding names by original name.
-
- * encoding.c, enc/*.c: define replicas and aliases.
-
-Sun Jan 13 20:24:03 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * encoding.c: add documents.
-
-Sun Jan 13 18:41:48 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * encoding.c (Init_Encoding): moved initialization from encdb.h.
-
- * enc/make_encdb.rb (enc_name_list): constified.
-
- * enc/make_encdb.rb (enc_init_db): moved some functions to encoding.c.
-
-Sun Jan 13 13:53:00 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ruby.c (load_file): local variable was not initialized when -x flag
- is given.
-
- * ruby.c (load_file): script files should not be affected by locale.
- [ruby-dev:33054]
-
-Sun Jan 13 12:01:32 2008 Eric Hodel <drbrain@segment7.net>
-
- * lib/rdoc/generators*: Reorganize RDoc generators.
-
-Sun Jan 13 11:41:11 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * encoding.c (ENCINDEX_EUC_JP, ENCINDEX_SJIS): removed.
- (rb_enc_init): EUC-JP and Shift_JIS are not builtin now.
-
- * enc/Makefile.in: ditto.
-
- * common.mk: ditto.
-
- * ruby.c (proc_options): ditto.
-
- * enc/shift_jis.c, enc/euc_jp.c: fixes for remove from builtin.
-
-Sun Jan 13 10:21:40 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * encoding.c (enc_table): packed all enc_table stuff.
-
-Sun Jan 13 09:58:17 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * encoding.c (rb_enc_init): revert removing SJIS.
-
- * enc/sjis.c: move to enc/shift_jis.c, to make encoding name equal to
- filename for convenience of loading lib.
-
- * enc/shift_jis.c: moved from enc/sjis.c.
-
- * common.mk: follows enc/shift_jis.c.
-
- * enc/Makefile.in: ditto.
-
-Sun Jan 13 09:22:33 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * common.mk (incs): includes encdb.h.
-
-Sun Jan 13 09:17:29 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * {bcc,win}32/Makefile.sub (MV): use move instead of ren. [ruby-Bugs-17019]
-
-Sun Jan 13 01:52:31 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * enc/make_encdb.rb: should work on Ruby 1.8. [ruby-dev:33069]
-
- * common.mk (encdb.h): pass enc dir from outside to make_encdb.rb.
-
-Sun Jan 13 00:01:07 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * enc/make_encdb.rb: added. search enc/*.c and make encoding database.
-
- * regenc.h (ENC_REPLICATE, ENC_ALIAS): added for defining replica
- encoding and encoding alias.
-
- * encoding.c (rb_enc_init): move alias definitions to enc/*.c.
- (rb_enc_find_index): search original of replica and alias when no
- encoding library.
- (rb_enc_name_list, rb_enc_aliases_enc_i, rb_enc_aliases_str_i,
- rb_enc_aliases, Encoding.name_list, Encoding.aliases): added.
- (Init_Encoding): init encdb.
-
- * enc/ascii.c, enc/us_ascii.c, enc/euc_jp.c, enc/sjis.c:
- add replica encoding and encoding alias definition.
-
- * common.mk (dist-clean-local): add rule for remove encdb.h.
-
-Sat Jan 12 18:27:41 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * eval.c (rb_define_alloc_func, rb_undef_alloc_func): should
- define/undef on a singleton class. [ruby-core:09959]
-
-Sat Jan 12 12:44:36 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * ext/nkf/nkf.c: rdoc update.
-
-Sat Jan 12 12:01:49 2008 Tadayoshi Funaba <tadf@dotrb.org>
-
- * lib/date.rb, lib/date/format.rb: tuning for performance.
-
-Sat Jan 12 11:29:45 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * bootstraptest/test_proc.rb: fixed wrong expected result. pointed
- out by Kornelius "murphy" Kalnbach <murphy AT rubychan.de> in
- [ruby-core:15022].
-
-Sat Jan 12 04:38:38 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * ruby.c (process_options): -e'script' is locale encoding by default.
- (load_file): ruby script from stdin is locale encoding by default.
-
-Sat Jan 12 04:31:59 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * ext/nkf/nkf-utf8/nkf.c: fix bug: -m was -m0.
-
-Fri Jan 11 23:22:31 2008 Tanaka Akira <akr@fsij.org>
-
- * string.c (string.c): call rb_str_buf_append to update encoding of
- str1, even if str2 is empty.
-
-Fri Jan 11 20:20:16 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * proc.c (proc_mark): needs to mark the receiver too. a patch from
- Chris Heath <chris AT heathens.co.nz> in [ruby-core:14983].
- [ruby-core:14885]
-
-Fri Jan 11 18:28:49 2008 Eric Hodel <drbrain@segment7.net>
-
- * lib/rdoc/usage.rb: Removed.
-
- * lib/getoptlong.rb: Update example to not use lib/rdoc/usage.rb.
-
-Fri Jan 11 18:17:10 2008 Eric Hodel <drbrain@segment7.net>
-
- * lib/rdoc/ri/driver.rb (read_yaml): Follow namespace change
- [ruby-core:14964].
-
-Fri Jan 11 16:55:21 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * string.c (rb_str_append): performance improvement.
-
-Fri Jan 11 12:35:56 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * configure.in: moved broken syscall checks from process.c etc.
-
- * defines.h (WORDS_BIGENDIAN): honor __BIG_ENDIAN__ than the result of
- configure.
-
- * lib/rdoc/options.rb (check_diagram): more precise check, darwin
- is not Windows but mingw is on it.
-
-Fri Jan 11 09:59:05 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * ext/nkf/nkf-utf8/nkf.c: update to r1.163.
-
- * ext/nkf/nkf.c: ASCII's canonical name is US-ASCII.
-
- * ext/nkf/lib/kconv.rb (Kconv.isjis): force_encoding('BINARY').
-
-Fri Jan 11 09:23:31 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * encoding.c (set_base_encoding): must use rb_enc_dummy_p.
-
-Fri Jan 11 06:13:14 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * encoding.c (rb_to_encoding_index, rb_to_encoding): disallow nil.
- [ruby-dev:33003]
-
-Fri Jan 11 01:08:01 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * thread.c (rb_mutex_unlock): proper error message for unlocking
- mutex that is not locked. a patch from Yusuke ENDOH
- <mame at tsg.ne.jp> in [ruby-dev:33010].
-
-Thu Jan 10 18:00:41 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * prelude.rb (Mutex::synchronize): capture exception from unlock.
- [ruby-dev:32935]
-
-Thu Jan 10 10:15:03 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * io.c (io_encoding_set): IO.pipe("euc-jp", nil) should work as
- IO.pipe("euc-jp", nil). [ruby-dev:33000]
-
- * io.c (io_encoding_set): handle nil for v1.
-
-Thu Jan 10 02:41:22 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * io.c (rb_io_binmode): should not alter encoding. [ruby-dev:32918]
-
- * io.c (io_read_encoding): need not to return ASCII-8BIT for
- binary IO.
-
-Wed Jan 9 22:04:17 2008 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
-
- * lib/mathn.rb (Prime#each): returns an enumerator if no block
- given. [ruby-dev:32815]
-
-Wed Jan 9 22:03:26 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * encoding.c (rb_enc_replicate): replica of dummy is a dummy.
-
-Wed Jan 9 20:55:38 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/e2mmap.rb (Exception2MessageMapper::Raise): define fail.
- [ruby-dev:32854]
-
-Wed Jan 9 20:35:42 2008 GOTOU Yuuzou <gotoyuzo@notwork.org>
-
- * lib/webrick/httprequest.rb: support X-Forwarded-* header fields.
- WEBrick::HTTPRequest#{host,port,request_uri} is derived having
- regards to X-Forwarded-Proto and X-Forwarded-Host.
-
- * lib/webrick/httprequest.rb
- (WEBrick::HTTPRequest#server_name?): new method.
- (WEBrick::HTTPRequest#remote_ip?): new method.
- (WEBrick::HTTPRequest#ssl?): new method.
-
-Wed Jan 9 18:24:39 2008 WATANABE Hirofumi <eban@ruby-lang.org>
-
- * golf_prelude.rb (Array#to_s): alias to join.
-
- * golf_prelude.rb (FalseClass#to_s): return "".
-
-Wed Jan 9 16:59:54 2008 Tanaka Akira <akr@fsij.org>
-
- * string.c (rb_enc_cr_str_buf_cat): fix self appending.
-
-Wed Jan 9 15:54:24 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ruby.c (process_options): give priority command line encoding option
- to RUBYOPT, and enable -E option in RUBYOPT.
-
- * ruby.c (load_file): deal with encoding option in shebang line if
- nothing in command line and RUBYOPT.
-
-Wed Jan 9 14:55:36 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * parse.y (yycompile0): remove setting parser->enc because it is set
- in parser_prepare() by previous change of parser_prepare().
-
-Wed Jan 9 14:52:18 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * string.c (rb_enc_cr_str_buf_cat, rb_str_buf_append): deal with self
- appending.
-
-Wed Jan 9 14:44:57 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+Sat Jun 18 08:12:54 2011 Tanaka Akira <akr@fsij.org>
- * parse.y (parser_prepare): set parser->enc from lex_input for ripper.
+ * common.mk: dependencies updated.
-Wed Jan 9 13:45:52 2008 GOTOU Yuuzou <gotoyuzo@notwork.org>
+ * tool/update-deps: new file to assist update dependencies in
+ common.mk.
- * lib/webrick/server.rb (WEBrick::HTTPServer#start):
- :DoNotReverseLookup option had not been performed.
+Sat Jun 18 07:27:27 2011 Tanaka Akira <akr@fsij.org>
-Wed Jan 9 13:03:34 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * internal.h: declare internal functions here.
- * string.c (rb_enc_cr_str_buf_cat): do not recalculate coderange
- value if it's given from outside.
+ * node.h: declare NODE dependent internal functions here.
-Wed Jan 9 08:42:01 2008 James Edward Gray II <jeg2@ruby-lang.org>
+ * iseq.h: declare rb_iseq_t dependent internal functions here.
- * enum.c: Updating the documentation of Enumerable#zip to reflect
- the recent changes Matz made to the method.
+ * vm_core.h: declare rb_thread_t dependent internal functions here.
-Wed Jan 9 01:35:10 2008 NARUSE, Yui <naruse@ruby-lang.org>
+ * bignum.c, class.c, compile.c, complex.c, cont.c, dir.c, encoding.c,
+ enumerator.c, error.c, eval.c, file.c, gc.c, hash.c, inits.c, io.c,
+ iseq.c, load.c, marshal.c, math.c, numeric.c, object.c, parse.y,
+ proc.c, process.c, range.c, rational.c, re.c, ruby.c, string.c,
+ thread.c, time.c, transcode.c, variable.c, vm.c,
+ tool/compile_prelude.rb: don't declare internal functions declared
+ in above headers. include above headers if required.
- * enc/Makefile.in (BUILTIN_ENCS): UTF-{16,32}{BE,LE} are not builtin.
+ Note that rb_thread_mark() was declared as
+ void rb_thread_mark(rb_thread_t *th) in cont.c but defined as
+ void rb_thread_mark(void *ptr) in vm.c. Now it is declared as
+ the later in internal.h.
-Tue Jan 8 23:55:15 2008 NARUSE, Yui <naruse@ruby-lang.org>
+Sat Jun 18 02:36:00 2011 Kenta Murata <mrkn@mrkn.jp>
- * encoding.c (rb_enc_init): UTF-{16,32}{BE,LE} are not builtin.
-
-Tue Jan 8 22:33:03 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * encoding.c, Makefile.in, include/ruby/oniguruma.h,
- enc/Makefile.in: fix rules for UTF-{16,32}{BE,LE}.
-
-Tue Jan 8 20:02:08 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * win{32,ce}/Makefile.sub: merged.
-
-Tue Jan 8 19:48:15 2008 Eric Hodel <drbrain@segment7.net>
-
- * lib/rdoc/ri/driver.rb: Speed up Marshal.load. Fix bug with nested
- classes' methods.
-
-Tue Jan 8 19:17:29 2008 Eric Hodel <drbrain@segment7.net>
-
- * lib/rdoc/*: Clean up namespacing of RI's classes.
-
-Tue Jan 8 18:05:35 2008 Eric Hodel <drbrain@segment7.net>
-
- * bin/ri, lib/rdoc/ri/*: Replace with Ryan Davis' cached ri.
-
-Tue Jan 8 17:32:07 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * enum.c (enum_zip): honor length of the receiver, not the
- shortest length. [ruby-core:14738]
-
- * enum.c (enum_zip): returns array not enumerator for no block
- form. [ruby-core:14738]
-
- * enumerator.c (next_ii): do not ignore multiple values yielded.
-
- * array.c (rb_ary_zip): faster version without creating generators.
-
-Tue Jan 8 15:47:43 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * enc/utf{16,32}_{be,le}.c: use &OnigEncodingName(*) instead of
- ONIG_ENCODING_*.
-
-Tue Jan 8 15:40:31 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * regenc.c (onigenc_strlen_null, onigenc_str_bytelen_null): suppressed
- warnings.
-
- * regenc.h, enc/unicode.c (onigenc_unicode_ctype_code_range): added
- encoding argument.
-
- * enc/utf{16,32}_{be,le}.c: added init functions.
-
- * enc/utf{16,32}_{be,le}.c: imported from Oniguruma 5.9.1.
-
-Tue Jan 8 15:03:10 2008 Tanaka Akira <akr@fsij.org>
-
- * string.c (str_gsub): avoid appending empty pre-match substr.
-
-Tue Jan 8 13:05:57 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * compile.c (iseq_build_from_ary), iseq.c (iseq_load): fix for format change.
-
-Tue Jan 8 07:56:11 2008 Tanaka Akira <akr@fsij.org>
-
- * string.c (rb_str_buf_append): fix append itself.
-
-Tue Jan 8 01:13:50 2008 Tanaka Akira <akr@fsij.org>
-
- * string.c (STR_ENC_GET): defined. same as rb_enc_get without
- enc_capable.
- (coderange_scan): ASCII-8BIT test refined.
- (rb_enc_cr_str_buf_cat): new internal function to accumulate
- strings with encoding.
- (rb_enc_str_buf_cat): use rb_enc_cr_str_buf_cat.
- (rb_str_buf_append): ditto
- (str_gsub): use rb_str_buf_append.
- (rb_str_hash): use ENCODING_GET.
- (rb_str_comparable): ditto.
- (rb_str_cmp): compare encoding index, not rb_encoding address.
-
-Mon Jan 7 20:37:55 2008 GOTOU Yuuzou <gotoyuzo@notwork.org>
-
- * lib/webrick/httpservlet/cgihandler.rb: external encoding of
- tempfiles is set to "ASCII-8BIT".
-
-Mon Jan 7 19:39:50 2008 Eric Hodel <drbrain@segment7.net>
-
- * lib/rdoc/template.rb: Use ERB instead of custom template language.
-
- * lib/rdoc/generators/template/html/old_html.rb: Remove.
-
- * lib/rdoc/generators/template/*: Convert to ERB.
-
-Mon Jan 7 19:11:30 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * string.c (Init_String): sym_match arity spec was wrong. a patch
- from Hiroyuki Iwatsuki <don at na.rim.or.jp> in [ruby-dev:32957].
-
-Mon Jan 7 18:10:33 2008 Tanaka Akira <akr@fsij.org>
-
- * string.c (str_gsub): move rb_enc_get(str) to out of loop.
-
-Mon Jan 7 15:52:10 2008 Tanaka Akira <akr@fsij.org>
-
- * include/ruby/oniguruma.h (OnigEncodingType): new member
- ruby_encoding_index to avoid linear search in rb_enc_to_index.
-
- * include/ruby/encoding.h (rb_enc_to_index): macro defined to use
- ruby_encoding_index.
-
- * encoding.c (rb_enc_to_index): removed.
- (enc_register_at): initialize ruby_encoding_index member.
-
-Mon Jan 7 16:10:35 2008 Eric Hodel <drbrain@segment7.net>
-
- * lib/rdoc/tokenstream.rb: Namespace under RDoc.
-
-Mon Jan 7 16:06:09 2008 Eric Hodel <drbrain@segment7.net>
-
- * lib/rdoc/dot.rb: Namespace under RDoc.
-
- * lib/rdoc/diagram.rb: Clean up formatting.
-
-Mon Jan 7 15:51:35 2008 Eric Hodel <drbrain@segment7.net>
-
- * lib/rdoc/options.rb: Convert to OptionParser, clean up -h output,
- namespace under RDoc.
- * lib/rdoc/*: Namespace RDoc::Options.
-
-Mon Jan 7 15:42:46 2008 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * common.mk, Makefile.in, */Makefile.sub (distclean-local): move
- removing rule of ext/ripper/y.output from common.mk to Makefiles
- that depend on platforms.
-
-Mon Jan 7 13:54:57 2008 Tanaka Akira <akr@fsij.org>
-
- * re.c (rb_reg_preprocess): fix fixed_enc condition.
-
-Mon Jan 7 11:51:49 2008 Eric Hodel <drbrain@segment7.net>
-
- * lib/rdoc/generators/ri_generator.rb: Merge documentation from the
- same class on output. Fixes bug where documentation could
- disappear.
-
- * lib/rdoc/options.rb: Fix typo.
-
- * lib/rdoc/generators/*: Clean up some namespacing and make RDoc
- consistent.
-
-Mon Jan 7 11:44:45 2008 Tanaka Akira <akr@fsij.org>
-
- * encoding.c (rb_enc_internal_get_index): extracted from
- rb_enc_get_index.
- (rb_enc_internal_set_index): extracted from rb_enc_associate_index
-
- * include/ruby/encoding.h (ENCODING_SET): work over ENCODING_INLINE_MAX.
- (ENCODING_GET): ditto.
- (ENCODING_IS_ASCII8BIT): defined.
- (ENCODING_CODERANGE_SET): defined.
-
- * re.c (rb_reg_fixed_encoding_p): use ENCODING_IS_ASCII8BIT.
-
- * string.c (rb_enc_str_buf_cat): use ENCODING_IS_ASCII8BIT.
-
- * parse.y (reg_fragment_setenc_gen): use ENCODING_IS_ASCII8BIT.
-
- * marshal.c (has_ivars): use ENCODING_IS_ASCII8BIT.
-
-Mon Jan 7 02:14:07 2008 Tanaka Akira <akr@fsij.org>
-
- * string.c (coderange_scan): avoid rb_enc_to_index.
- (rb_enc_str_buf_cat): ditto.
- (str_cat_char): use rb_enc_str_buf_cat.
- (rb_str_inspect): ditto.
-
-Mon Jan 7 01:36:49 2008 Tanaka Akira <akr@fsij.org>
-
- * string.c (coderange_scan): optimize ASCII-8BIT string.
- (rb_enc_str_buf_cat): don't call coderange_scan if possible.
-
-Mon Jan 7 01:05:45 2008 Tanaka Akira <akr@fsij.org>
-
- * lib/erb.rb (ERB::Revision): cut off locale dependent string in Date
- keyword.
-
-Mon Jan 7 00:48:02 2008 Tanaka Akira <akr@fsij.org>
-
- * Date keyword removed to avoid inclusion of locale dependent
- string. [ruby-dev:32940]
-
-Sun Jan 6 21:14:12 2008 Tanaka Akira <akr@fsij.org>
-
- * re.c (rb_reg_initialize_str): forbid raw non ASCII character
- for ASCII-8BIT regexp in non ASCII-8BIT script.
-
-Sun Jan 6 18:19:12 2008 Tanaka Akira <akr@fsij.org>
-
- * include/ruby/encoding.h (rb_enc_str_buf_cat): declared.
-
- * string.c (coderange_scan): extracted from rb_enc_str_coderange.
- (rb_enc_str_coderange): use coderange_scan.
- (rb_str_shared_replace): copy encoding and coderange.
- (rb_enc_str_buf_cat): new function for linear complexity string
- accumulation with encoding.
- (rb_str_sub_bang): don't conflict substituted part and replacement.
- (str_gsub): use rb_enc_str_buf_cat.
- (rb_str_clear): clear coderange.
-
- * re.c (rb_reg_regsub): use rb_enc_str_buf_cat.
-
-Sun Jan 6 17:55:44 2008 Technorama Ltd. <oss-ruby@technorama.net>
-
- * lib/securerandom.rb: Add Win32 support.
-
-Sun Jan 6 09:32:58 2008 Tadayoshi Funaba <tadf@dotrb.org>
-
- * lib/date.rb, lib/date/format.rb: introduced some constants
- (for internal use) and aliases (minute and second).
-
- * sample/cal.rb: trivial adjustments.
-
-Sun Jan 6 01:38:07 2008 Tanaka Akira <akr@fsij.org>
-
- * re.c (rb_reg_initialize_str): /\x80/n is not an error even if script
- encoding is EUC-JP.
-
-Sun Jan 6 00:48:12 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * lib/resolv.rb (Resolv::DNS#each_address): get A record and then AAAA
- record. [ruby-dev:32925]
-
-Sat Jan 5 21:48:03 2008 Tanaka Akira <akr@fsij.org>
-
- * vm_insnhelper.c (vm_callee_setup_arg): it is not inlinable because
- alloca is used.
-
-Sat Jan 5 16:50:48 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * string.c (rb_str_resize): copy if old data is not empty
- [ruby-core:14785]
-
-Sat Jan 5 13:04:24 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ruby.c (proc_options): no need for intermediate object.
-
-Sat Jan 5 11:48:19 2008 Tanaka Akira <akr@fsij.org>
-
- * encoding.c (Init_Encoding): alias csWindows31J to Windows-31J.
- IE6 accepts csWindows31J but Windows-31J.
-
-Sat Jan 5 02:21:10 2008 Tanaka Akira <akr@fsij.org>
-
- * include/ruby/ruby.h (rb_intern): memorize interned ID for constant
- string, using gcc's __builtin_constant_p and statement expression.
-
-Sat Jan 5 02:14:45 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * string.c (trnext): should enable backslash escape.
-
-Sat Jan 5 01:50:32 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * eval.c (Init_eval): move instance_eval and instance_exec to
- BasicObject. [ruby-core:14747]
-
- * lib/delegate.rb: should preserve new methods in BasicObject.
-
-Sat Jan 5 01:46:29 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * ruby.c (proc_options): update according to the last API revert.
-
-Sat Jan 5 01:30:30 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * include/ruby/intern.h, re.c (rb_reg_new): keep interface same as
- 1.8. [ruby-core:14583]
-
- * include/ruby/intern.h, re.c (rb_reg_new_str): renamed, and defines
- HAVE_RB_REG_NEW_STR macro to tell if it is available.
-
- * include/ruby/encoding.h (rb_enc_reg_new): added.
-
- * insns.def (toregexp), marshal.c (r_object0): use rb_reg_new_str().
-
- * re.c (rb_reg_regcomp, rb_reg_s_union): ditto.
-
-Fri Jan 4 23:08:48 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * time.c (time_arg): use converted object. [ruby-core:14759]
-
-Fri Jan 4 16:24:58 2008 Tanaka Akira <akr@fsij.org>
-
- * ext/digest/lib/digest/hmac.rb (Digest::HMAC#initialize): use
- String#bytesize to avoid test errors on EUC-JP environment.
-
-Fri Jan 4 14:00:50 2008 Tanaka Akira <akr@fsij.org>
-
- * re.c (rb_reg_prepare_re): check string encoding. Oniguruma doesn't
- support invalid encoding.
-
-Fri Jan 4 10:22:25 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * re.c (rb_reg_search): avoid inner loop for reverse search.
-
- * regexec.c: unset USE_MATCH_RANGE_MUST_BE_INSIDE_OF_SPECIFIED_RANGE
- which is turned on since oniguruma 5.9.1.
-
-Fri Jan 4 02:53:31 2008 Tanaka Akira <akr@fsij.org>
-
- * enc/euc_jp.c: remove eucjp_ prefix. breakpoint can be specified as
- euc_jp.c:mbc_enc_len. avoid needless conflict by merge.
-
- * enc/sjis.c: remove sjis_ prefix.
-
- * enc/utf8.c: remove utf8_ prefix.
-
- * enc/iso_8859_1.c: remove iso_8859_1_ prefix.
-
- * enc/iso_8859_2.c: remove iso_8859_2_ prefix.
-
- * enc/iso_8859_3.c: remove iso_8859_3_ prefix.
-
- * enc/iso_8859_4.c: remove iso_8859_4_ prefix.
-
- * enc/iso_8859_5.c: remove iso_8859_5_ prefix.
-
- * enc/iso_8859_6.c: remove iso_8859_6_ prefix.
-
- * enc/iso_8859_7.c: remove iso_8859_7_ prefix.
-
- * enc/iso_8859_8.c: remove iso_8859_8_ prefix.
-
- * enc/iso_8859_9.c: remove iso_8859_9_ prefix.
-
- * enc/iso_8859_10.c: remove iso_8859_10_ prefix.
-
- * enc/iso_8859_11.c: remove iso_8859_11_ prefix.
-
- * enc/iso_8859_13.c: remove iso_8859_13_ prefix.
-
- * enc/iso_8859_14.c: remove iso_8859_14_ prefix.
-
- * enc/iso_8859_15.c: remove iso_8859_15_ prefix.
-
- * enc/iso_8859_16.c: remove iso_8859_16_ prefix.
-
-Fri Jan 4 02:47:06 2008 Tanaka Akira <akr@fsij.org>
-
- * re.c (rb_reg_search): iterate onig_match for reverse mode.
-
-Fri Jan 4 01:20:21 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * win32.h: only VC6 needs extern "C++" for math.h. [ruby-talk:285660]
-
-Fri Jan 4 00:54:43 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * include/ruby/oniguruma.h: Oniguruma 5.9.1 merged.
-
-Fri Jan 4 00:20:47 2008 Tanaka Akira <akr@fsij.org>
-
- * io.c (io_ungetc): move data in buffer if it is required to store the
+ * ext/bigdecimal/bigdecimal.c (VpNewRbClass): fix type of the 2nd
argument.
-Thu Jan 3 21:56:07 2008 Tanaka Akira <akr@fsij.org>
-
- * include/ruby/ruby.h (st_strcasecmp): declared for STRCASECMP.
- (st_strncasecmp): declared for STRNCASECMP.
-
-Thu Jan 3 20:24:48 2008 Koichi Sasada <ko1@atdot.net>
-
- * eval_jump.c (rb_f_catch): Restore cfp if caught thrown object.
-
-Thu Jan 3 19:45:57 2008 Koichi Sasada <ko1@atdot.net>
-
- * bootstraptest/test_eval.rb, test_knownbug.rb: move a fixed test.
-
-Thu Jan 3 18:39:12 2008 Tanaka Akira <akr@fsij.org>
-
- * encoding.c: (rb_tolower, rb_toupper): body was exchanged.
-
-Thu Jan 3 17:54:01 2008 Tanaka Akira <akr@fsij.org>
-
- * regenc.h (onigenc_ascii_is_code_ctype): put back.
-
-Thu Jan 3 17:33:09 2008 Tanaka Akira <akr@fsij.org>
-
- * encoding.c (rb_isalnum): defined.
- (rb_isalpha): ditto.
- (rb_isblank): ditto.
- (rb_iscntrl): ditto.
- (rb_isdigit): ditto.
- (rb_isgraph): ditto.
- (rb_islower): ditto.
- (rb_isprint): ditto.
- (rb_ispunct): ditto.
- (rb_isspace): ditto.
- (rb_isupper): ditto.
- (rb_isxdigit): ditto.
- (rb_tolower): ditto.
- (rb_toupper): ditto.
-
- * include/ruby/ruby.h: don't include include/ruby/encoding.h.
- (rb_isascii): defined.
- (rb_isalnum): declared.
- (rb_isalpha): ditto.
- (rb_isblank): ditto.
- (rb_iscntrl): ditto.
- (rb_isdigit): ditto.
- (rb_isgraph): ditto.
- (rb_islower): ditto.
- (rb_isprint): ditto.
- (rb_ispunct): ditto.
- (rb_isspace): ditto.
- (rb_isupper): ditto.
- (rb_isxdigit): ditto.
- (rb_tolower): ditto.
- (rb_toupper): ditto.
- (ISASCII): simplified.
- (ISPRINT): ditto.
- (ISSPACE): ditto.
- (ISUPPER): ditto.
- (ISLOWER): ditto.
- (ISALNUM): ditto.
- (ISALPHA): ditto.
- (ISDIGIT): ditto.
- (ISXDIGIT): ditto.
- (TOUPPER): ditto.
- (TOLOWER): ditto.
-
- * include/ruby/encoding.h (rb_isascii): removed.
- (rb_isalnum): ditto.
- (rb_isalpha): ditto.
- (rb_isblank): ditto.
- (rb_iscntrl): ditto.
- (rb_isdigit): ditto.
- (rb_isgraph): ditto.
- (rb_islower): ditto.
- (rb_isprint): ditto.
- (rb_ispunct): ditto.
- (rb_isspace): ditto.
- (rb_isupper): ditto.
- (rb_isxdigit): ditto.
- (rb_tolower): ditto.
- (rb_toupper): ditto.
-
- * common.mk: dependency updated.
-
-Thu Jan 3 15:10:26 2008 Tanaka Akira <akr@fsij.org>
-
- * include/ruby/encoding.h (rb_isascii): simplified.
- (rb_isalnum): call onigenc_ascii_is_code_ctype without indirect call.
- (rb_isalpha): ditto.
- (rb_isblank): ditto.
- (rb_iscntrl): ditto.
- (rb_isdigit): ditto.
- (rb_isgraph): ditto.
- (rb_islower): ditto.
- (rb_isprint): ditto.
- (rb_ispunct): ditto.
- (rb_isspace): ditto.
- (rb_isupper): ditto.
- (rb_isxdigit): ditto.
-
- * include/ruby/oniguruma.h (onigenc_ascii_is_code_ctype): declaration
- moved from regenc.h.
-
-Thu Jan 3 14:37:17 2008 Tanaka Akira <akr@fsij.org>
-
- * parse.y (parser_magic_comment): use STRNCASECMP.
- (set_file_encoding): ditto.
-
-Thu Jan 3 11:44:37 2008 Tanaka Akira <akr@fsij.org>
-
- * time.c: don't mention an obsolete library, ParseDate.
-
-Thu Jan 3 11:28:58 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * io.c (fptr_finalize): clear errno first. [ruby-talk:284492]
-
-Thu Jan 3 05:02:36 2008 Tanaka Akira <akr@fsij.org>
-
- * enc/us_ascii.c: add us_ascii_ prefix for functions to ease
- setting breakpoint when debugging.
-
- * enc/euc_jp.c: add eucjp_ prefix.
-
- * enc/sjis.c: add sjis_ prefix.
-
- * enc/iso_8859_1.c: add iso_8859_1_ prefix.
-
- * enc/iso_8859_2.c: add iso_8859_2_ prefix.
-
- * enc/iso_8859_3.c: add iso_8859_3_ prefix.
-
- * enc/iso_8859_4.c: add iso_8859_4_ prefix.
-
- * enc/iso_8859_5.c: add iso_8859_5_ prefix.
-
- * enc/iso_8859_6.c: add iso_8859_6_ prefix.
-
- * enc/iso_8859_7.c: add iso_8859_7_ prefix.
-
-Thu Jan 3 02:44:34 2008 Tanaka Akira <akr@fsij.org>
-
- * bignum.c (conv_digit): use ISDIGIT, ISLOWER and ISUPPER.
-
-Wed Jan 2 23:50:15 2008 Tanaka Akira <akr@fsij.org>
-
- * util.c (ruby_strtoul): "0x", "+" and "-" is not a valid integer.
- end of integer should be just after "0", the beginning, the
- beginning respectively.
-
-Wed Jan 2 15:23:15 2008 Tanaka Akira <akr@fsij.org>
-
- * util.c (ruby_strtoul): locale independent strtoul is implemented to
- avoid "i".to_i(36) cause 0 under tr_TR locale on Debian GNU/Linux
- 4.0 (Etch).
- This is newly implemented, not a copy of missing/strtoul.c.
-
- * include/ruby/ruby.h (ruby_strtoul): declared.
- (STRTOUL): defined to use ruby_strtoul.
-
- * bignum.c, pack.c, ext/socket/socket.c: use STRTOUL.
-
- * configure.in (strtoul): don't check.
-
- * missing/strtoul.c: removed.
-
- * include/ruby/missing.h (strtoul): removed.
-
- * common.mk (strtoul.o): removed.
-
- * LEGAL (missing/strtoul.c): removed.
-
-Wed Jan 2 14:41:08 2008 Tanaka Akira <akr@fsij.org>
-
- * common.mk (strcasecmp.o): removed.
- (strncasecmp.o): removed.
-
- * include/ruby/missing.h (strcasecmp): removed.
- (strncasecmp): removed.
-
-Wed Jan 2 11:34:57 2008 Tanaka Akira <akr@fsij.org>
-
- * missing/strcasecmp.c: removed. Ruby don't use locale dependent
- strcasecmp.
-
- * missing/strncasecmp.c: ditto.
-
- * configure.in: don't check strcasecmp and strncasecmp.
-
- * LEGAL: missing/strcasecmp.c and missing/strncasecmp.c removed.
-
-Wed Jan 2 10:13:54 2008 Tadayoshi Funaba <tadf@dotrb.org>
-
- * sample/time.rb: use Process.times instead of Time.times.
-
-Wed Jan 2 09:09:53 2008 Tadayoshi Funaba <tadf@dotrb.org>
-
- * sample/goodfriday.rb: examples for date are enough. retired.
-
-Wed Jan 2 08:58:54 2008 Tadayoshi Funaba <tadf@dotrb.org>
-
- * sample/cal.rb: just updated with the newest version.
-
-Wed Jan 2 01:19:31 2008 Tanaka Akira <akr@fsij.org>
-
- * enc/depend: dependency updated.
-
-Wed Jan 2 00:14:41 2008 NARUSE, Yui <naruse@ruby-lang.org>
-
- * ext/nkf/nkf-utf8/{nkf.c, utf8tbl.c}: Update nkf.
-
- * ext/nkf/nkf.c: fix documents.
-
- * ext/nkf/lib/kconv.rb: fix documents.
- (Kconv.is*): use valid_encoding?.
- (Kconv.isjis): defined.
-
-Tue Jan 1 23:17:03 2008 Tanaka Akira <akr@fsij.org>
-
- * common.mk: dependency updated.
-
-Tue Jan 1 21:11:33 2008 Tanaka Akira <akr@fsij.org>
-
- * include/ruby/encoding.h (rb_isascii): defined.
- (rb_isalnum): ditto.
- (rb_isalpha): ditto.
- (rb_isblank): ditto.
- (rb_iscntrl): ditto.
- (rb_isdigit): ditto.
- (rb_isgraph): ditto.
- (rb_islower): ditto.
- (rb_isprint): ditto.
- (rb_ispunct): ditto.
- (rb_isspace): ditto.
- (rb_isupper): ditto.
- (rb_isxdigit): ditto.
- (rb_tolower): ditto.
- (rb_toupper): ditto.
-
- * include/ruby/st.h (st_strcasecmp): declared.
- (st_strncasecmp): ditto.
-
- * st.c (type_strcasehash): use st_strcasecmp instead of strcasecmp.
- (st_strcasecmp): defined.
- (st_strncasecmp): ditto.
-
- * include/ruby/ruby.h: include include/ruby/encoding.h.
- (ISASCII): use rb_isascii.
- (ISPRINT): use rb_isprint.
- (ISSPACE): use rb_isspace.
- (ISUPPER): use rb_isupper.
- (ISLOWER): use rb_islower.
- (ISALNUM): use rb_isalnum.
- (ISALPHA): use rb_isalpha.
- (ISDIGIT): use rb_isdigit.
- (ISXDIGIT): use rb_isxdigit.
- (TOUPPER): defined.
- (TOLOWER): ditto.
- (STRCASECMP): ditto.
- (STRNCASECMP): ditto.
-
- * dir.c, encoding.c, file.c, hash.c, process.c, ruby.c, time.c,
- transcode.c, ext/readline/readline.c: use locale insensitive
- functions. [ruby-core:14662]
-
-Tue Jan 1 17:50:47 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * io.c (rb_io_mode_enc): encoding spec is not allowed in binary mode.
- [ruby-dev:32913]
-
-Tue Jan 1 14:41:56 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/rexml: 1.9 patch from Sam Ruby mentioned in his blog:
- <http://intertwingly.net/blog/2007/12/31/Porting-REXML-to-Ruby-1-9>
- [ruby-core:14639]
-
-Tue Jan 1 14:15:04 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * string.c (rb_str_substr): offset movement bug. a patch from
- Vincent Isambart <vincent.isambart at gmail.com> in
- [ruby-core:14647]. [ruby-core:14644]
-
-Tue Jan 1 01:29:04 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * encoding.c (rb_to_encoding): raises for non-nil, non-encoding,
- non-string object. [ruby-core:14634]
-
-Tue Jan 1 01:04:06 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ruby.c (process_options): rejects dummy encoding.
-
-Mon Dec 31 23:53:55 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ruby.c (proc_options, process_options): delays finding encoding
- until load_path is set.
-
-Mon Dec 31 23:27:17 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * string.c (rb_str_resize): embeds if ptr is null. [ruby-dev:32819]
-
-Mon Dec 31 23:17:22 2007 GOTOU Yuuzou <gotoyuzo@notwork.org>
-
- * lib/webrick/httpproxy.rb (WEBrick::HTTPProxyServer#proxy_service):
- call do_XXX which correspond with request method.
- (WEBrick::HTTPProxyServer#do_CONNECT,do_GET,do_POST,do_HEAD): added.
-
- * test/webrick/test_httpproxy.rb: add test for WEBrick::HTTPProxyServer.
-
-Mon Dec 31 22:53:29 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * thread_pthread.c (native_sleep): timespec tv_sec may overflow on
- some platform. a patch from zunda <zunda616e AT yahoo.co.jp> in
- [ruby-dev:32904].
-
-Mon Dec 31 19:35:20 2007 Tanaka Akira <akr@fsij.org>
-
- * string.c (IS_7BIT): removed.
- (single_byte_optimizable): new function to test optimizationability
- using single byte string.
- (str_strlen): use single_byte_optimizable instead of
- is_ascii_string.
- (str_nth): rename argument: asc -> singlebyte.
- (str_offset): ditto.
- (rb_str_substr): use single_byte_optimizable instead of IS_7BIT.
- (rb_str_index): ditto.
- (rb_str_rindex): ditto.
- (rb_str_splice): ditto.
- (rb_str_justify): ditto.
-
-Mon Dec 31 07:39:31 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * main.c, goruby.c (RUBY_MAIN_INIT): removed.
-
- * goruby.c (goruby_run_node): run after ruby_init_loadpath() so that
- require works, and protect the call.
-
-Mon Dec 31 06:50:38 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * common.mk: not use -I$(srcdir)/lib with $(MINIRUBY) for cross
- compiling.
-
- * configure.in, {win,bcc}32/Makefile.sub (MINIRUBY): -I$(srcdir)/lib
- moved.
-
-Mon Dec 31 06:08:34 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * include/ruby/encoding.h (rb_enc_sprintf, rb_enc_vsprintf): prototyped.
-
- * sprintf.c (rb_enc_sprintf, rb_enc_vsprintf): new functions to format
- arguments with encoding.
-
-Sun Dec 30 23:48:00 2007 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * golf_prelude.rb (String#/): define / as split, as association of
- Array#*.
-
-Sun Dec 30 23:19:06 2007 WATANABE Hirofumi <eban@ruby-lang.org>
-
- * golf_prelude.rb (@@golf_hash): for performance improvement.
-
-Sun Dec 30 22:44:50 2007 Tadayoshi Funaba <tadf@dotrb.org>
-
- * lib/date.rb (_valid_time?): I'm not sure to recommend such an
- expression. but anyway it is acceptable now. [ruby-core:14580]
-
-Sun Dec 30 21:54:26 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * parse.y (program, yycompile0): too early to drop lex_lastline in
- rules.
-
-Sun Dec 30 19:23:23 2007 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * bootstraptest/test_knownbug.rb: support DOSISH.
-
-Sun Dec 30 17:43:54 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * encoding.c (Init_Encoding): registered rb_encoding differs from
- ONIG_ENCODINGs.
-
-Sun Dec 30 13:56:15 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * parse.y (program): clear input strings after all process.
-
- * parse.y (parser_nextc, parser_yylex): should not drop lex_lastline
- while lex_p is valid. [ruby-dev:32896]
-
-Sun Dec 30 10:54:49 2007 NARUSE, Yui <naruse@ruby-lang.org>
-
- * configure.in: rm largefile.h.
-
- * common.mk: clean golf, conf*, preludes, and so on.
-
- * enc/depend: silent and ignore error for rm.
-
- * enc/Makefile.in: should define prefix and exec_prefix.
-
-Sun Dec 30 06:31:11 2007 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * encoding.c (Init_encoding): register Windows-31J and its alias.
- [ruby-dev:32843]
-
- * ruby.c (proc_options): -Ks options means Windows-31J, not Shift_JIS.
-
-Sun Dec 30 06:27:38 2007 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * lib/mkmf.rb (depend_rules): need to convert `/' to `\' for windows
- native commands.
-
-Sun Dec 30 01:43:56 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * enc/Makefile.in (DLDFLAGS): like as extensions. [ruby-core:14567]
-
-Sat Dec 29 23:48:13 2007 Tanaka Akira <akr@fsij.org>
-
- * io.c (io_fflush): don't retry when wbuf modified by other threads.
-
-Sat Dec 29 22:44:30 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * re.c (rb_reg_regsub): returns the given string itself if nothing
- changed.
-
- * string.c (rb_str_sub_bang): keeps code-range as possible.
-
- * string.c (str_gsub): adjusts code-range. [ruby-core:14566]
-
-Sat Dec 29 21:54:37 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * common.mk (clean, distclean, realclean): should include clean-enc
- and others. [ruby-dev:32887]
-
-Sat Dec 29 13:29:29 2007 Tanaka Akira <akr@fsij.org>
-
- * bootstraptest/test_knownbug.rb: add a test reported by
- Kazuhiro NISHIYAMA. [ruby-dev:32819].
- add a test reported by Frederick Cheung. [ruby-core:14556].
-
- * test/ruby/test_m17n.rb (test_gsub): add a test reported by
- Sam Ruby. [ruby-core:14566]
-
-Sat Dec 29 04:46:58 2007 GOTOU Yuuzou <gotoyuzo@notwork.org>
-
- * lib/test/unit/assertions.rb (Test::Unit::Assertions#assert_throws):
- throw won't raise NameError nor ThreadError but ArgumentError on 1.9.
- (Test::Unit::Assertions#assert_not_throws): ditto.
-
- * test/testunit/test_assertions.rb: add assertions for throwing some
- objects other than Symbol.
-
-Sat Dec 29 03:10:12 2007 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * io.c (io_unread): fix typo.
-
-Sat Dec 29 02:18:45 2007 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * io.c (io_unread): adhoc workaround for non-binary mode of some DOSish
- platforms. this is not perfect and safety, but works with most cases.
-
-Fri Dec 28 23:53:18 2007 Tanaka Akira <akr@fsij.org>
-
- * ext/strscan/strscan.c (str_new): new function for allocate an string
- with encoding propagation.
- (extract_range): use str_new.
- (extract_beg_len): ditto.
- (strscan_peek): ditto.
- (strscan_rest): ditto.
-
-Fri Dec 28 20:18:42 2007 WATANABE Hirofumi <eban@ruby-lang.org>
-
- * golf_prelude.rb (Object.say): derived from Perl 5.10.
-
-Fri Dec 28 19:39:34 2007 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * encoding.c (rb_locale_encoding): should check return value from
- rb_locale_charmap().
-
- * ruby.c (locale_encoding): removed.
-
- * ruby.c (process_options): use rb_locale_encoding() instead of
- locale_encoding().
-
- * ext/readline/readline.c (readline_readline): use locale encoding
- instead of input IO's encoding. [ruby-dev:32872]
-
-Fri Dec 28 19:29:07 2007 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * ext/readline/readline.c (readline_readline, readline_s_set_input):
- use mReadline directly because self is not always same.
-
-Fri Dec 28 19:11:28 2007 Tanaka Akira <akr@fsij.org>
-
- * encoding.c (rb_locale_encoding): defined.
-
- * include/ruby/encoding.h (rb_locale_encoding): declared.
-
-Fri Dec 28 18:45:29 2007 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * ext/readline/readline.c (readline_readline): set encoding to result.
-
- * ext/readline/readline.c (readline_s_set_input, Init_readline): save
- input IO to hidden instance variable.
-
-Fri Dec 28 01:55:04 2007 Martin Duerst <duerst@it.aoyama.ac.jp>
-
- * transcode.c (transcode_dispatch): reverted some of the changes
- in r14746.
-
- * transcode.c, enc/trans/single_byte.c: Added conversions to/from
- US-ASCII and ASCII-8BIT (using data tables).
-
- * enc/trans/single_byte.c: Some spacing/ordering changes due to
- automatic data file generation.
-
- * transcode_data.h, transcode.c: Preliminary code for using
- micro-conversion functions.
-
- * test/ruby/test_transcode.rb: Added some tests for US-ASCII and
- ASCII-8BIT conversions.
-
-Fri Dec 28 17:33:44 2007 Tanaka Akira <akr@fsij.org>
-
- * time.c (make_time_t): verify mktime and timegm result.
-
-Fri Dec 28 16:36:33 2007 NARUSE, Yui <naruse@airemix.com>
-
- * lib/resolv.rb (Resolv::DNS#each_address): now returns IPv6 address.
-
-Fri Dec 28 16:10:00 2007 Eric Hodel <drbrain@segment7.net>
-
- * lib/rdoc/dot/dot.rb: Move to lib/rdoc/dot.rb. Fix namespacing.
-
- * lib/rdoc/diagram.rb: Update for 1.9.
-
-Fri Dec 28 15:38:29 2007 Eric Hodel <drbrain@segment7.net>
-
- * lib/rdoc/markup/sample/: Move to sample/rdoc/markup directory.
-
-Fri Dec 28 15:15:12 2007 Akinori MUSHA <knu@iDaemons.org>
-
- * lib/irb/completion.rb: Remove garbage ("X=1").
-
-Fri Dec 28 15:12:05 2007 Eric Hodel <drbrain@segment7.net>
-
- * lib/rdoc, test/rdoc: Move RDoc tests out of lib/.
-
-Fri Dec 28 15:10:47 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * encoding.c (set_base_encoding, enc_base_encoding): renamed
- based_encoding as base_encoding.
-
-Fri Dec 28 13:57:49 2007 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * golf_prelude.rb (Integer#each): use alias simply.
-
-Fri Dec 28 13:45:21 2007 Akinori MUSHA <knu@iDaemons.org>
-
- * golf_prelude.rb (Object.const_missing): No need to delegate to
- superclass. Just raise a NameError when none matches.
-
-Fri Dec 28 13:18:47 2007 Kouhei Sutou <kou@cozmixng.org>
-
- * lib/rss/rss.rb, test/rss/test_version.rb: 0.2.2 -> 0.2.3.
-
- * lib/rss/parser.rb, test/rss/test_parser.rb: supported "-" in tag name.
- Reported by Ray Chen. Thanks.
-
-Fri Dec 28 13:07:31 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * gc.c (os_obj_of): returns an enumerator if no block given. based on
- a patch from Yugui <yugui AT yugui.sakura.ne.jp>. [ruby-dev:32828]
-
-Fri Dec 28 11:46:04 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * tool/ytab.sed: skip yydestruct hack unless yymsg exists, for bison
- 1.8 series. [ruby-dev:32825]
-
-Fri Dec 28 11:39:02 2007 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * golf_prelude.rb (Object.quine): need to join because SCRIPT_LINES__[]
- returns an array of lines.
-
-Fri Dec 28 11:16:53 2007 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * golf_prelude.rb (Object.quine): get the script itself.
-
-Fri Dec 28 10:06:54 2007 Akinori MUSHA <knu@iDaemons.org>
-
- * golf_prelude.rb (Object.const_missing): Auto-complete constants.
-
-Fri Dec 28 01:55:04 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * transcode.c (transcode_dispatch): allows transcoding from/to
- ASCII-8BIT.
-
-Fri Dec 28 01:47:25 2007 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * golf_prelude.rb (Integer): Integer is now enumerable on goruby.
-
-Fri Dec 28 01:27:47 2007 Tanaka Akira <akr@fsij.org>
-
- * lib/rdoc/rdoc.rb (parse_files): don't depend on the default external
- encoding.
-
-Fri Dec 28 00:01:57 2007 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * common.mk (golf_prelude.c): use MINIRUBY instead of BASERUBY because
- tool/compile_prelude.rb requires rbconfig.rb.
-
-Thu Dec 27 23:56:01 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * mkconfig.rb: should not use the libraries under the source directory
- at cross compiling.
-
-Thu Dec 27 23:43:35 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * cygwin/GNUmakefile.in (EXTOBJS): uses ruby.rc always for other than
- rubyw.exe.
-
-Thu Dec 27 22:31:37 2007 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * lib/rubygems/commands/update_command.rb (do_rubygems_update): use
- portable and safely ENV operation. reported in
- <http://slashdot.jp/developers/comments.pl?sid=384937&cid=1273085>.
-
-Thu Dec 27 21:47:04 2007 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * mkconfig.rb (prefix): archdir is "1.9.0", not "1.9". reported in
- <http://slashdot.jp/developers/comments.pl?sid=384937&cid=1273085>.
-
-Thu Dec 27 17:57:30 2007 Tanaka Akira <akr@fsij.org>
-
- * parse.y, transcode_data.h, transcode.c, lib/weakref.rb,
- lib/irb/ruby-lex.rb, lib/irb/lc/error.rb, enc/trans/japanese.c:
- change "illegal" to "invalid" in a context which doesn't against
- a law.
-
-Thu Dec 27 16:37:06 2007 Tanaka Akira <akr@fsij.org>
-
- * re.c (rb_reg_s_union): show encodings in error message.
-
-Thu Dec 27 15:25:16 2007 Tanaka Akira <akr@fsij.org>
-
- * encoding.c (rb_enc_codelen): show codepoint in error message.
-
- * include/ruby/encoding.h (rb_enc_codelen): comment it returns
- positive integer.
-
- * string.c (rb_str_concat): rb_enc_codelen doesn't return 0.
-
-Thu Dec 27 15:18:44 2007 Tanaka Akira <akr@fsij.org>
-
- * encoding.c (rb_enc_codelen): error message refined.
-
-Thu Dec 27 15:11:27 2007 Tanaka Akira <akr@fsij.org>
-
- * encoding.c (rb_enc_check): show encodings in error message.
-
-Thu Dec 27 15:02:52 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * string.c (rb_str_casecmp): fixed using a wrong variable.
- [ruby-list:44402]
-
-Thu Dec 27 14:34:38 2007 Tanaka Akira <akr@fsij.org>
-
- * io.c (io_fflush): checks wbuf modification by other threads.
- not perfect. it need locks.
-
-Thu Dec 27 10:44:03 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * ext/socket/socket.c: a patch to support IRIX from Andrew
- Thompson <andrew@hijacked.us> in [ruby-core:14447].
-
-Thu Dec 27 02:25:45 2007 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * lib/mkmf.rb (create_tmpsrc): retry to create file if Errno::EACCES
- occurs. this is a workaround for mswin32.
-
-Wed Dec 26 22:47:31 2007 NARUSE, Yui <naruse@ruby-lang.org>
-
- * lib/resolv.rb (Resolv::DNS::Name.==): fix for other is array of
- Resolv::DNS::Label::Str.
-
- * lib/resolv.rb (Resolv::DNS::MessageEncoder#put_label): String#string
- is not defined, so replace to_s.
-
- * lib/resolv.rb (Resolv::IPv6#to_name): ip6.int is obsoleted by
- ip6.arpa.
-
-
-Wed Dec 26 21:27:02 2007 Tadayoshi Funaba <tadf@dotrb.org>
-
- * lib/date/format.rb (_xmlschema): some improvements.
-
- * lib/date/format.rb (_parse): a new hint compfunc. [experimental]
-
-Wed Dec 26 17:31:08 2007 Tanaka Akira <akr@fsij.org>
-
- * io.c (io_fflush): check closed fptr after rb_write_internal to avoid
- SEGV on MacOS X.
-
-Wed Dec 26 16:10:17 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * string.c (Init_String): defines chars method.
-
-Wed Dec 26 14:38:43 2007 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * instruby.rb: install goruby if exists.
-
-Wed Dec 26 13:55:02 2007 James Edward Gray II <jeg2@ruby-lang.org>
-
- * lib/csv.rb: Cleaned up some code with Ruby 1.9 idioms.
-
-Wed Dec 26 13:29:35 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * array.c (tmpbuf): use rb_str_tmp_new().
-
-Wed Dec 26 00:57:53 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/json/ext/generator/generator.c (Init_generator): requires
- json/common.rb for GeneratorError, when static linked. a patch from
- Kenta Murata <muraken AT gmail.com> in [ruby-dev:32789].
-
-Tue Dec 25 23:33:55 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * development version 1.9.0 released.
-
-Tue Dec 25 23:25:29 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/rexml/node.rb (REXML::Node::indent): should initialize rv
- variable. a patch from Tadayoshi Funaba <tadf AT dotrb.org> in
- [ruby-dev:32783].
-
-Tue Dec 25 23:16:01 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ruby.c (proc_options): encoding option in shebang and RUBYOPT did not
- work, do not store alloca()ed string in a parent scope struct.
-
-Tue Dec 25 22:56:52 2007 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * win32/Makefile.sub (config.status): keep this file.
-
-Tue Dec 25 22:55:42 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * configure.in (TIMEZONE_VOID): typo.
-
-Tue Dec 25 22:45:10 2007 Koichi Sasada <ko1@atdot.net>
-
- * insns2vm.rb: add encoding option to shebang.
-
-Tue Dec 25 22:13:51 2007 Koichi Sasada <ko1@atdot.net>
-
- * bootstraptest/pending.rb: add pending issue.
-
-Tue Dec 25 22:12:40 2007 Koichi Sasada <ko1@atdot.net>
-
- * thread.c: remove Thread.critical(=).
-
-Tue Dec 25 21:44:50 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * tool/make-snapshot: add version number.
-
-Tue Dec 25 21:32:54 2007 Koichi Sasada <ko1@atdot.net>
-
- * compile.c (iseq_compile_each): fix stack consistency error
- (break is compiled to throw instead of jump insn).
- these problems are reported by Yusuke ENDOH <mame AT tsg.ne.jp>
-
- * bootstraptest/test_knownbug.rb, test_syntax.rb: move fixed test.
-
-Tue Dec 25 21:32:44 2007 Tanaka Akira <akr@fsij.org>
-
- * parse.y (struct parser_params): make parser_ruby_sourcefile common
- field. it is used by node_newnode.
- new field parser_ruby_sourcefile_string for ripper.
- (parser_initialize): initialize parser_ruby_sourcefile in ripper.
- (ripper_initialize): initialize parser_ruby_sourcefile_string.
-
-Tue Dec 25 21:26:09 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * common.mk (parse.c): depends on tool/ytab.sed.
-
- * tool/ytab.sed: hack for bison 2.1.
-
-Tue Dec 25 20:24:58 2007 Technorama Ltd. <oss-ruby@technorama.net>
-
- * ext/openssl/ossl_ssl.c: Only show a warning if the default
- DH callback is actually used.
-
- * ext/openssl/ossl_rand.c: New method: random_add().
-
-Tue Dec 25 20:24:48 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * tool/make-snapshot: argument check, and cleanup exported directory.
-
-Tue Dec 25 20:07:13 2007 WATANABE Hirofumi <eban@ruby-lang.org>
-
- * tool/make-snapshot: more portable.
-
-Tue Dec 25 19:01:04 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * encoding.h (rb_enc_mbc_to_codepoint): wrapper for
- ONIGENC_MBC_TO_CODE().
-
- * string.c (rb_str_succ): deal with invalid sequence as binary.
-
-Tue Dec 25 18:40:46 2007 Koichi Sasada <ko1@atdot.net>
-
- * iseq.c: all methods need $SAFE < 1.
-
- vm.c: comment out debug functions.
-
-Tue Dec 25 18:37:42 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * io.c (appendline): move RS comparison to rb_io_getline_1().
-
-Tue Dec 25 18:27:51 2007 Tanaka Akira <akr@fsij.org>
-
- * string.c (rb_str_each_line): don't call rb_enc_codepoint with empty
- string.
-
-Tue Dec 25 18:06:04 2007 Tanaka Akira <akr@fsij.org>
-
- * string.c (rb_str_inspect): don't call rb_enc_codepoint with empty
- string. fix '#'.inspect.
-
- * encoding.c (rb_enc_codepoint): raise on empty string.
-
-Tue Dec 25 17:48:28 2007 Shugo Maeda <shugo@ruby-lang.org>
-
- * vm.c (rb_frame_method_id_and_class): new function to get the
- method id and class of the current frame.
-
-Tue Dec 25 17:32:04 2007 Akinori MUSHA <knu@iDaemons.org>
-
- * lib/mkmf.rb (create_makefile): Add a missing dependency on the
- target directory for each .rb file. This will hopefully fix
- parallel make (-jN). Tested on FreeBSD.
-
-Tue Dec 25 16:51:07 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * enc/trans/japanese.c (rb_{from,to}_{SHIFT_JIS,EUC_JP}): inversed
- from_encoding and to_encoding.
-
-Tue Dec 25 16:41:57 2007 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * golf_prelude.rb (h): add new method for all golfers.
-
-Tue Dec 25 16:37:12 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * enc/trans/japanese.c (rb_to_EUC_JP): fixed typo.
-
-Tue Dec 25 16:34:58 2007 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * ext/dl/depend: add dependencies. [ruby-dev:32760]
-
-Tue Dec 25 16:26:48 2007 Koichi Sasada <ko1@atdot.net>
-
- * include/ruby/ruby.h, thread.c: rename is_ruby_native_thread() to
- ruby_native_thread_p().
-
- * ext/tk/tcltklib.c: apply it.
-
-Tue Dec 25 16:15:15 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * common.mk (clean-enc): clean encoding objects.
-
-Tue Dec 25 16:04:28 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * common.mk, goruby.c, golf_prelude.rb: for golfers.
-
- * main.c (main): hook for embedding applications.
-
- * tool/compile_prelude.rb: can change initialize function name.
-
-Tue Dec 25 15:59:51 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * encoding.c (rb_enc_register): do not use based_encoding to check if
- dummy encoding.
-
-Tue Dec 25 15:55:14 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * string.c (rb_str_succ): fix for string with non-alphanumeric chars.
-
-Tue Dec 25 15:42:49 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * io.c (rb_io_external_encoding): should return nil for
- pass-through write IO. [ruby-dev:32740]
-
-Tue Dec 25 15:24:57 2007 Tanaka Akira <akr@fsij.org>
-
- * io.c (appendline): initialize rslen to 1 if rsptr is 0.
- rslen is the length of the delimiter.
- if only delim is given, it should be 1.
- [ruby-dev:32746]
-
-Tue Dec 25 15:21:33 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * transcode.c (transcode_dispatch): fix for multistep transcode.
-
-Tue Dec 25 15:07:51 2007 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * enc/trans/single_byte.c (Init_single_byte): renamed.
-
-Tue Dec 25 15:00:33 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * enum.c (enum_yield): when multiple values yielded from #each
- pack them into an array. [ruby-dev:32708]
-
- * enum.c: all method but all?, any?, one? and none? passed packed
- multiple values to the block.
-
- * enum.c (collect_all): should pack all values. [ruby-core:14410]
-
-Tue Dec 25 14:57:00 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * common.mk (COMMONOBJS): transcode_data_*.c moved under enc/trans.
-
- * transcode_data.h (rb_transcoding, rb_transcoder): prefixed.
-
- * transcode.c (rb_register_transcoder, rb_declare_transcoder): split
- declaration and registration. [ruby-dev:32704]
-
- * transcode.c (transcode_dispatch): autoload pre-declared transcoder.
-
- * transcode.c (str_transcode): use rb_define_dummy_encoding().
-
- * transcode.c (Init_transcode): initialize transcoder tables.
-
- * enc/trans/single_byte.c, enc/trans/japanese.c: moved from top.
-
-Tue Dec 25 14:20:13 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/mkmf.rb (map_dir): should generate path including $top_srcdir.
-
-Tue Dec 25 14:09:16 2007 James Edward Gray II <jeg2@ruby-lang.org>
-
- * lib/csv.rb: Fixed test failures caused by changes to Ruby.
-
- * test/csv/tc_serialization, test/csv/tc_csv_parsing, test/csv/tc_features:
- Fixed test failures caused by changes to Ruby.
-
-Tue Dec 25 14:11:57 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * io.c (io_encoding_set): missing return type.
-
-Tue Dec 25 14:03:48 2007 NARUSE, Yui <naruse@ruby-lang.org>
-
- * test/rinda/test_rinda.rb (MockClock#{_forward, forward, sleep}):
- Change default value of n as @reso from nil. If default value is
- nil, n.+ is not defined.
-
-Tue Dec 25 13:54:01 2007 Tanaka Akira <akr@fsij.org>
-
- * test/ruby/test_io_m17n.rb (test_pipe): fixed.
- [ruby-dev:32743]
-
-Tue Dec 25 13:44:51 2007 Koichi Sasada <ko1@atdot.net>
-
- * thread.c (rb_thread_wait_fd_rw): should check EBADF on select().
-
-Tue Dec 25 13:30:03 2007 Koichi Sasada <ko1@atdot.net>
-
- * thread_pthread.c, thread_pthread.h, thread_win32.c,
- thread_win32.c: make some functions static functions.
- a patch from Tadashi Saito <shiba AT mail2.accsnet.ne.jp>
- in [ruby-core:14407]
-
-Tue Dec 25 13:23:13 2007 Tanaka Akira <akr@fsij.org>
-
- * test/ruby/test_io_m17n.rb (test_write_noenc): don't mix text and
- binary mode. [ruby-dev:32743]
-
-Tue Dec 25 13:13:09 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * README.EXT.ja, dir.c, eval.c, eval_intern.h, lex.c.src,
- lex.c.blt, keywords, load.c, thread.c: more ANSI'ize.
- a patch from Tadashi Saito <shiba AT mail2.accsnet.ne.jp>
- in [ruby-dev:32725]
-
-Tue Dec 25 13:07:56 2007 Koichi Sasada <ko1@atdot.net>
-
- * vm_core.h, thread.c, cont.c: add RUBY_VM_SET_INTERRUPT(),
- RUBY_VM_SET_TIMER_INTERRUPT(), RUBY_VM_INTERRUPTED().
-
- * thread.c, thread_pthread.c, thread_win32.c: fix to ignore time slice
- event until sleep.
-
- * bootstraptest/test_thread.rb: add a test for time limited join test.
-
-Tue Dec 25 12:42:59 2007 Koichi Sasada <ko1@atdot.net>
-
- * vm.c (Init_VM): remove unused code.
- [ruby-dev:32732]
-
-Tue Dec 25 12:32:32 2007 Martin Duerst <duerst@it.aoyama.ac.jp>
-
- * transcode.c: Moving a static counter from inside register_transcoder()
- and register_functional_transcoder() to outside the functions, renaming
- from n to next_transcoder_position. Fixes 3) in [ruby-dev:32715].
-
-Tue Dec 25 12:22:17 2007 NARUSE, Yui <naruse@ruby-lang.org>
-
- * sample/from.rb: follow Ruby 1.9 libraries.
-
-Tue Dec 25 12:21:56 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * proc.c (method_inspect): preserve encoding of the method name.
-
-Tue Dec 25 12:07:52 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * configure.in (BASERUBY): delayed error until BASERUBY is used.
-
-Tue Dec 25 11:48:35 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * sample/README: removed obsoleted files: dbmtest.rb,
- getopts.test, mrshtest.rb, regx.rb.
-
-Tue Dec 25 11:45:34 2007 James Edward Gray II <jeg2@ruby-lang.org>
-
- * lib/csv.rb: Import the FasterCSV source as the new CSV class.
-
- * test/csv/*: Added all applicable tests from FasterCSV.
-
-Tue Dec 25 11:33:52 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * error.c (report_bug): uses ruby_description.
-
-Tue Dec 25 11:20:38 2007 Koichi Sasada <ko1@atdot.net>
-
- * compile.c (iseq_compile_each): fix stack consistency error.
- a patch from Yusuke ENDOH <mame AT tsg.ne.jp> [ruby-dev:32720]
-
- * bootstraptest/test_syntax.rb: add 2 tests for above.
-
-Tue Dec 25 11:14:20 2007 Koichi Sasada <ko1@atdot.net>
-
- * iseq.c, vm_core.h: comment out unused fields.
-
-Tue Dec 25 11:02:10 2007 Koichi Sasada <ko1@atdot.net>
-
- * vm.c: check frame is FINAL when creating env.
- [ruby-core:14395]
-
- * bootstraptest/test_block.rb: add a test for above.
-
-Tue Dec 25 09:12:13 2007 Eric Hodel <drbrain@segment7.net>
-
- * lib/rdoc/: Enable RDoc debugging only with $DEBUG_RDOC.
-
-Tue Dec 25 08:37:43 2007 James Edward Gray II <jeg2@ruby-lang.org>
-
- * lib/csv.rb, test/csv/test_csv.rb: Removed in preparation for
- FasterCSV code import.
-
-Tue Dec 25 08:27:43 2007 Eric Hodel <drbrain@segment7.net>
-
- * lib/rubygems.rb: Fix test failures.
-
- * test/rubygems/test_gem.rb: Fix test failure.
-
-Tue Dec 25 06:23:40 2007 Koichi Sasada <ko1@atdot.net>
-
- * bootstraptest/test_knownbug.rb, test_literal.rb: move fixed test.
-
-Tue Dec 25 06:19:04 2007 GOTOU Yuuzou <gotoyuzo@notwork.org>
-
- * sample/biorhythm.rb: follow Ruby 1.9 libraries.
-
-Tue Dec 25 06:15:01 2007 Koichi Sasada <ko1@atdot.net>
-
- * vm.c: add dummy toplevel frame.
-
-Tue Dec 25 05:44:56 2007 Eric Hodel <drbrain@segment7.net>
-
- * lib/net/http.rb: Fix uninitialized variable warning.
- [ruby-talk:284582]
-
- * lib/irb/output-method.rb: Remove unused #foo method.
- [ruby-talk:284582]
-
-Tue Dec 25 05:24:12 2007 Koichi Sasada <ko1@atdot.net>
-
- * compile.c (iseq_compile): clear local table if node == 0.
- a patch from Yusuke ENDOH <mame AT tsg.ne.jp> [ruby-dev:32530]
-
- * vm.c: clear VM stack.
-
-Tue Dec 25 04:23:32 2007 Tanaka Akira <akr@fsij.org>
-
- * parse.y (rb_id2str): fill klass of returned string as rb_cString.
- some strings are allocated before rb_cString is created.
- This prevents a "called on terminated object" error by
- ObjectSpace.each_object(Module) {|m| p m.name }.
-
-Tue Dec 25 03:51:55 2007 Koichi Sasada <ko1@atdot.net>
-
- * compile.c (iseq_compile_each): fix stack consistency bug.
- a patch from Yusuke ENDOH <mame AT tsg.ne.jp>
-
-Tue Dec 25 03:19:47 2007 WATANABE Hirofumi <eban@ruby-lang.org>
-
- * tool/make-snapshot: must create configure and lex.c.
-
-Tue Dec 25 03:16:05 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * io.c (rb_io_s_pipe): now takes up to two arguments. allow its
- external/internal encoding by Encoding objects.
-
- * io.c (rb_io_set_encoding): new method to set encoding of the IO.
-
- * io.c (argf_set_encoding): ditto.
-
-Tue Dec 25 03:08:53 2007 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * pack.c (pack_pack): use NUM2LONG instead of NUM2INT.
-
- * numeric.c (fix_lshift, fix_aref): use SIZEOF_LONG instead of
- SIZEOF_VALUE.
-
- * bignum.c (big2ulong, rb_big_aref): ditto.
-
-Tue Dec 25 02:55:26 2007 GOTOU Yuuzou <gotoyuzo@notwork.org>
-
- * lib/rexml/element.rb (REXML::Elements#each): yield in each
- should be called with one parameter. [ruby-dev:32708]
-
-Tue Dec 25 02:15:39 2007 Koichi Sasada <ko1@atdot.net>
-
- * compile.c (iseq_compile_each): add a "pop" insn after break
- to fix stack consistency error. [ruby-core:14385]
-
- * bootstraptest/test_syntax.rb: add tests for above.
-
- * bootstraptest/test_knownbug.rb: remove fixed bug.
-
-Tue Dec 25 01:54:36 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * id.c (Init_id): remove several unused symbols. [ruby-core:14362]
-
- * compile.c (iseq_specialized_instruction): do not use
- VM_CALL_SEND_BANG flag any longer.
-
-Tue Dec 25 01:42:41 2007 Tanaka Akira <akr@fsij.org>
-
- * lib/rdoc/rdoc.rb (parse_files): interpret coding cookie.
-
-Tue Dec 25 01:38:04 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * proc.c (method_name): preserve Symbol's encoding.
-
- * numeric.c (fix_id2name): ditto.
-
-Tue Dec 25 01:19:18 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * include/ruby/encoding.h (rb_enc_left_char_head): new utility macro.
-
- * include/ruby/encoding.h (rb_enc_right_char_head): ditto.
-
- * io.c (appendline): does multibyte RS search in the function.
-
- * io.c (prepare_getline_args): RS may be nil.
-
- * io.c (rb_io_getc): should process character based on external
- encoding, when transcoding required.
-
-Tue Dec 25 01:07:57 2007 Tanaka Akira <akr@fsij.org>
-
- * lib/irb/output-method.rb: translate a comment to English to
- avoid mix of EUC-JP comment and UTF-8 Date keyword.
- svn substitute Date keyword with UTF-8 weekday on UTF-8 locale.
-
-Tue Dec 25 00:27:28 2007 GOTOU Yuuzou <gotoyuzo@notwork.org>
-
- * lib/webrick/httpservley/cgihandler.rb
- (WEBrick::HTTPServlet::CGIHandler#do_GET): m17nized.
-
-Mon Dec 24 23:55:29 2007 Tanaka Akira <akr@fsij.org>
-
- * lib/cgi.rb (CGI::escape): m17nized.
- (CGI::unescape): ditto.
- (CGI::escapeHTML): ditto.
- (CGI::unescapeHTML): ditto.
-
-Mon Dec 24 23:32:24 2007 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * transcode_data_japanese.c (select_iso_2022_mode): '\e' is not valid.
-
-Mon Dec 24 23:13:09 2007 GOTOU Yuuzou <gotoyuzo@notwork.org>
-
- * lib/rdoc/diagram.rb (RDoc::Diagram#initialize): use fileuitls
- instead of ftools.
-
-Mon Dec 24 23:04:57 2007 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
-
- * lib/ftools.rb: removed obsoleted lib. use fileutils instead (by eban).
-
- * lib/rdoc/rdoc.rb, lib/rdoc/generators/*, lib/rake.rb: let it use
- fileutils instead of ftools.
-
- * lib/shell/command-processor.rb: removed unused references to ftools.
-
- * lib/parsedate.rb: removed. see [ruby-core:12535], [ruby-dev:31969].
-
- * lib/README: updated.
-
-Mon Dec 24 23:01:04 2007 Tanaka Akira <akr@fsij.org>
-
- * lib/open-uri.rb (OpenURI::Buffer): use Meta ===. [ruby-core:14295]
-
-Mon Dec 24 22:46:42 2007 NARUSE, Yui <naruse@ruby-lang.org>
-
- * transcode.c: register_functional_transcoder() added.
- (init_transcoder_table(: register ISO-2022-JP.
- (str_transcode): add preprocessor and postprocessor.
-
- * transcode_data_japanese.c: add ISO-2022-JP support.
-
- * transcode_data.h: moved transcoder and transcoding definition from
- transcode.c.
-
-Mon Dec 24 20:29:28 2007 Koichi Sasada <ko1@atdot.net>
-
- * test/io/nonblock/test_flush.rb: fix test for 1.9.
-
-Mon Dec 24 20:23:44 2007 Koichi Sasada <ko1@atdot.net>
-
- * test/rinda/test_rinda.rb: revert last commit because this test seems
- to have timing problem to halt all tests.
-
-Mon Dec 24 20:18:52 2007 Koichi Sasada <ko1@atdot.net>
-
- * test/rinda/test_rinda.rb: enable rinda test.
-
-Mon Dec 24 20:16:54 2007 Koichi Sasada <ko1@atdot.net>
-
- * instruby.rb: fix rdoc install dir.
-
-Mon Dec 24 18:37:32 2007 Tanaka Akira <akr@fsij.org>
-
- * re.c (rb_reg_prepare_re): show regexp encoding in the error message.
-
-Mon Dec 24 18:23:32 2007 Tanaka Akira <akr@fsij.org>
-
- * eval.c (rb_exc_raise): ANSI style.
- (rb_exc_fatal): ditto.
- (rb_raise_jump): ditto.
- (rb_jump_tag): ditto.
- (rb_block_given_p): ditto.
-
- * variable.c (original_module): ditto.
-
-Mon Dec 24 18:05:09 2007 Koichi Sasada <ko1@atdot.net>
-
- * iseq.c (Init_ISeq): disable ISeq.load() because there is no verifier.
-
- * iseq.c, proc.c: add ISeq.disasm(method).
-
-Mon Dec 24 18:06:03 2007 Tanaka Akira <akr@fsij.org>
-
- * eval_method.c (Init_eval_method): extracted from Init_eval
- for rdoc to find rb_mod_remove_method, rb_mod_undef_method and
- rb_mod_alias_method.
-
- * eval.c (Init_eval): call Init_eval_method.
-
-Mon Dec 24 17:59:29 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * load.c (load_lock): reverted.
-
- * thread.c (rb_barrier_wait): check for recursive wait.
-
-Mon Dec 24 17:50:54 2007 Tanaka Akira <akr@fsij.org>
-
- * eval.c (function_call_may_return_twice_jmp_buf): removed.
- (function_call_may_return_twice_false): removed.
- [ruby-core:14335]
-
-Mon Dec 24 17:40:57 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * common.mk (node_name.inc, miniprelude.c, prelude.c): nmake cannot
- handle target vpath in other than implicit rules.
-
-Mon Dec 24 17:20:34 2007 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
-
- * lib/{mailread.rb,getopts.rb,parsearg.rb}: removed.
- see [ruby-core:12535], [ruby-dev:31969].
-
-Mon Dec 24 17:12:57 2007 Tanaka Akira <akr@fsij.org>
-
- * include/ruby/intern.h, random.c, array.c:
- change exported name.
- genrand_int32 -> rb_genrand_int32.
- genrand_real -> rb_genrand_real.
- [ruby-core:14335]
-
-Mon Dec 24 17:06:37 2007 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
-
- * {lib,test}/{soap,wsdl,xsd}: removed soap4r along to the discussion
- at ruby-core and ruby-dev. see [ruby-core:12535], [ruby-dev:31969].
-
-Mon Dec 24 17:06:14 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * load.c (rb_feature_p): returns loading path name too.
-
- * load.c (search_required): returns path too if feature is being
- loaded. [ruby-dev:32048] [TODO: refactoring]
-
-Mon Dec 24 16:29:12 2007 GOTOU Yuuzou <gotoyuzo@notwork.org>
-
- * sample/openssl: reviewed and remove dependency on getopts.rb.
-
-Mon Dec 24 16:18:57 2007 Koichi Sasada <ko1@atdot.net>
-
- * mkconfig.rb: add teeny to CONFIG['ruby_version'].
-
-Mon Dec 24 15:55:50 2007 Koichi Sasada <ko1@atdot.net>
-
- * tool/compile.rb, getrev.rb, runruby.rb: remove unused tools.
-
-Mon Dec 24 15:42:04 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * configure.in, cygwin/GNUmakefile.in, */Makefile.sub,
- djgpp/config.hin.: version dependent directory names now contain
- teeny.
-
-Mon Dec 24 15:29:13 2007 Tanaka Akira <akr@fsij.org>
-
- * tool/serb.rb: removed.
-
-Mon Dec 24 13:55:35 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * proc.c (rb_proc_new), vm.c (invoke_block): removed u3.state magic.
- [ruby-core:14310]
-
- * test/ruby/test_symbol.rb (test_to_proc): a test from Frederick
- Cheung <frederick.cheung AT gmail.com>.
-
-Mon Dec 24 13:43:36 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * thread.c (rb_thread_atfork): should not leave living_threads
- referring freed table while allocating new table.
-
-Mon Dec 24 12:49:54 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * Makefile.in, configure.in, lib/mkmf.rb, */Makefile.sub: specify
- compiled output file name explicitly.
-
- * enc/Makefile.in, enc/depend: now makes compiler to put generated
- files under directories corresponding to the each source.
- enc/trans supported.
-
- * enc/make_encmake.rb: evaluates depend file before Makefile.in so
- that the former can influence to CONFIG.
-
-Mon Dec 24 12:35:03 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * win{32,ce}/Makefile.sub (MFLAGS): defaulted to -l.
-
-Mon Dec 24 12:08:10 2007 Eric Hodel <drbrain@segment7.net>
-
- * /, ext/: Add svn:ignore for OS X Xcode 3's conftest.dSYM
- directories.
-
-Mon Dec 24 11:56:31 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * common.mk: should not pass MAKEFLAGS to recursive make.
- + normal make: MFLAGS are set and command line options and macros
- are all passed silently.
- + GNU make: ditto, and all options and macros in MAKEFLAGS are in
- effect.
- + nmake: MFLAGS is not set and MAKEFLAGS has only options without
- hyphen, no macros exist in any variables.
- + Borland make: ditto, and command line macros cannot override
- macros in makefile, so passing them is vain.
-
- * {bcc32,win{32,ce}}/Makefile.sub (SET_MAKE): set MFLAGS which is not
- set by default, to get rid of chaotic situation of MFLAGS/MAKEFLAGS.
-
-Mon Dec 24 11:32:44 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * string.c (rb_str_comparable): fixed to keep transitivity.
- [ruby-dev:32693]
-
-Mon Dec 24 11:20:31 2007 Eric Hodel <drbrain@segment7.net>
-
- * lib/rdoc/ri/ri_options.rb: Fix display of GEMDIRS, make command
- examples match ri's name.
-
- * lib/rdoc/ri/ri_paths.rb: Only allow latest ri dirs in ri output.
-
-Mon Dec 24 10:49:04 2007 Eric Hodel <drbrain@segment7.net>
-
- * lib/uri/mailto.rb, lib/uri/common.rb: Fix Regexp warnings. Patch
- #16524 from Kornelius Kalnbach, [ruby-core:14302].
-
-Mon Dec 24 10:37:38 2007 Eric Hodel <drbrain@segment7.net>
-
- * gem_prelude.rb: Remove methods from Gem, not QuickLoader, to fix
- warnings.
-
-Mon Dec 24 09:45:45 2007 Martin Duerst <duerst@it.aoyama.ac.jp>
-
- * transcode.c, transcode_data_one_byte.c, transcode_data_japanese.c:
- added rb_ prefix to external data symbols.
-
-Mon Dec 24 05:32:22 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * enum.c (enum_inject): updated documentation. a patch from Keita
- Yamaguchi <keita.yamaguchi AT gmail.com> in [ruby-dev:32686].
-
- * README.EXT: updated. a patch from Tadashi Saito
- <shiba AT mail2.accsnet.ne.jp> in [ruby-core:14328].
-
- * array.c (rb_ary_at): updated documentation. a patch from Tadashi
- Saito <shiba AT mail2.accsnet.ne.jp> in [ruby-core:14330].
-
-Mon Dec 24 05:13:04 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * string.c (tr_trans): should associate new encoding if modified.
-
-Mon Dec 24 04:04:12 2007 GOTOU Yuuzou <gotoyuzo@notwork.org>
-
- * test/net/http/test_https.rb: should rescue LoadError.
-
-Mon Dec 24 03:57:28 2007 Koichi Sasada <ko1@atdot.net>
-
- * cont.c, vm.h: fix to support sparc machine.
- a patch from Yusuke ENDOH <mame AT tsg.ne.jp>
-
-Mon Dec 24 03:35:19 2007 Koichi Sasada <ko1@atdot.net>
-
- * common.mk: remove additional "-".
-
-Mon Dec 24 02:59:32 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * io.c (rb_io_check_readable): should not fill fptr->enc always.
- read-write IO (e.g. socket) does not work. [ruby-dev:32685]
-
- * io.c (io_read_encoding): retrieve reading encoding.
-
- * io.c (prepare_getline_args): convert RS to external encoding.
-
- * string.c (str_new_shared): was setting embedding flag of wrong
- string object. [ruby-dev:32685]
-
- * io.c (io_enc_str): should preserve default_external encoding.
-
- * io.c (appendline): should do multibyte aware RS search.
-
-Mon Dec 24 02:06:35 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * io.c (rb_f_open): documentation update.
-
- * io.c (rb_io_s_pipe): ditto.
-
- * io.c (io_fwrite): wrong encoding destination.
-
- * io.c (rb_io_external_encoding): should return the encoding of
- the file reading.
-
- * io.c (rb_io_internal_encoding): should return the encoding of
- read string.
-
-Mon Dec 24 01:46:43 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * io.c (rb_io_s_pipe): allow specifying read-side encoding.
-
- * io.c (io_enc_str): wrong encoding destination.
-
-Mon Dec 24 01:03:17 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * string.c (rb_str_comparable): comparison including broken
- coderange strings do not consider encoding.
-
-Mon Dec 24 00:57:15 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * io.c (open_key_args): IO direct methods (foreach, readlines,
- read) now takes keyword argument: encoding, mode, open_args.
-
-Mon Dec 24 00:52:15 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * io.c (rb_io_s_read): encoding argument reverted.
-
- * io.c (mode_enc): independent function to share code.
-
- * io.c (rb_io_internal_encoding): new method.
-
-Mon Dec 24 00:47:05 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * test/ruby/test_beginendblock.rb (TestBeginEndBlock::test_endblockwarn):
- rename endblockwarn.rb to endblockwarn_rb to avoid unnecessary
- warning in make test.
-
-Sun Dec 23 23:03:13 2007 Tanaka Akira <akr@fsij.org>
-
- * encoding.c (rb_enc_codepoint): implemented to raise invalid
- encoding.
-
- * include/ruby/encoding.h (rb_enc_codepoint): macro is replaced as a
- declaration.
-
-Sun Dec 23 19:45:22 2007 Tanaka Akira <akr@fsij.org>
-
- * lib/time.rb (Time.httpdate): fix 2 digits year for 20xx.
- reported by Tadayoshi Funaba. [ruby-dev:32687]
-
-Sun Dec 23 19:33:42 2007 Eric Hodel <drbrain@segment7.net>
-
- * lib/open-uri.rb: Fix method redefined warning. [ruby-core:14304]
-
-Sun Dec 23 18:31:49 2007 NARUSE, Yui <naruse@ruby-lang.org>
-
- * ext/nkf/nkf.c (rb_nkf_enc_get): use rb_define_dummy_encoding.
-
- * ext/nkf/nkf.c (Init_nkf): use rb_nkf_enc_get("ASCII").
-
- * ext/nkf/nkf-utf8/nkf.c: Update 1.161.
-
- * ext/nkf/nkf-utf9/config.h: default output encoding is now UTF-8.
-
- * ext/nkf/lib/kconv.rb (Kconv.kconv): replace Encoding#name by
- Encoding#to_s.
-
-Sun Dec 23 18:02:52 2007 Eric Hodel <drbrain@segment7.net>
-
- * lib/rubygems/gem_open_uri.rb: Fix version check.
-
-Sun Dec 23 17:24:48 2007 Tanaka Akira <akr@fsij.org>
-
- * encoding.c (rb_enc_init): add eucJP as an alias of EUC-JP.
-
-Sun Dec 23 17:00:23 2007 Tanaka Akira <akr@fsij.org>
-
- * lib/time.rb (Time.httpdate): use Time.utc for
- "day-of-week, dd-mon-yy HH::MM:SS GMT" format.
-
-Sun Dec 23 16:12:40 2007 Eric Hodel <drbrain@segment7.net>
-
- * lib/rdoc: Fix 1.9 warnings.
-
-Sun Dec 23 15:28:37 2007 Eric Hodel <drbrain@segment7.net>
-
- * lib/rubygems, test/rubygems: Fix new 1.9 warnings.
-
-Sun Dec 23 14:43:10 2007 Eric Hodel <drbrain@segment7.net>
-
- * gem_prelude.rb: Use require to load rubygems.rb so the correct path
- is in $LOADED_FEATURES on RubyGems upgrade.
-
-Sun Dec 23 11:26:43 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * string.c (sym_call): use exact argument array interface.
- [ruby-core:14279]
-
-Sun Dec 23 11:01:35 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * io.c (rb_io_binmode_m): removed C99ism.
-
-Sun Dec 23 10:23:23 2007 Martin Duerst <duerst@it.aoyama.ac.jp>
-
- * transcode_data_one_byte.c: Better (and more honest) optimization.
-
- * transcode_data_japanese.c: First optimization step.
-
-Sun Dec 23 09:07:02 2007 Tanaka Akira <akr@fsij.org>
-
- * include/ruby/encoding.h, encoding.c, re.c, io.c, parse.y, numeric.c,
- ruby.c, transcode.c, ext/nkf/nkf.c: rename rb_ascii_encoding to
- rb_ascii8bit_encoding. rb_ascii_encoding is ambiguous with
- ASCII-8BIT and US-ASCII.
-
-Sun Dec 23 03:35:52 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * version.h: use patchlevel if revision is not set.
-
- * {bcc32,win{32,ce}}/setup.mak (-version-): skip including revision.h.
-
- * common.mk (srcs): new target to generated sources.
-
- * common.mk (encs, ext/ripper/ripper.c): MAKEFLAGS needs -.
-
- * enc/depend, enc/make_encmake.rb: use erb.
-
-Sun Dec 23 01:56:18 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * io.c (rb_io_mode_enc): do not set encoding unless explicitly
- specified.
-
- * io.c (rb_io_check_readable): fill fptr->enc by default_external
- if it's empty.
-
- * io.c (io_enc_str): fptr->enc is always set for reading IO (by
- rb_io_check_readable(fptr)).
-
-Sun Dec 23 01:18:06 2007 David Flanagan <david@davidflanagan.com>
-
- * io.c, io.h: temporary patch to partially implement
- transcode-on-read and transcode-on-write
-
-Sun Dec 23 00:48:05 2007 Shugo Maeda <shugo@ruby-lang.org>
-
- * test/net/imap/test_imap.rb: added tests for SSL.
-
-Sat Dec 22 21:10:53 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * ext/syck/rubyext.c (syck_genericresolver_node_import): should
- not set instance variable "@kind" before initializing it.
- [ruby-dev:32677]
-
-Sat Dec 22 19:52:23 2007 Koichi Sasada <ko1@atdot.net>
-
- * bootstraptest/test_objectspace.rb: fix condition.
-
-Sat Dec 22 19:17:10 2007 Koichi Sasada <ko1@atdot.net>
-
- * ext/probeprofiler/: removed.
-
-Sat Dec 22 19:14:38 2007 Koichi Sasada <ko1@atdot.net>
-
- * process.c (rb_f_fork): Unsupport Kernel.fork() on NetBSD.
-
-Sat Dec 22 18:20:13 2007 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * common.mk (version.o): add dependency. [ruby-dev:32680]
-
-Sat Dec 22 17:45:11 2007 NARUSE, Yui <naruse@ruby-lang.org>
-
- * ext/nkf/nkf.c (Init_nkf): use rb_ascii_encoding() for
- rb_nkf_enc_get("US-ASCII").
- * if use rb_nkf_enc_get("US-ASCII"), ruby will crash - this is bug?
-
-Sat Dec 22 17:39:03 2007 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * lib/mkmf.rb ($extmk): fixed broken condition.
-
-Sat Dec 22 17:35:59 2007 NARUSE, Yui <naruse@ruby-lang.org>
-
- * ext/nkf/nkf-utf8.c: Update nkf.c rev:1.157.
-
- * ext/nkf/nkf.c (rb_nkf_enc_get): replicate proper based encoding.
-
- * ext/nkf/kconv.c (Kconv#kconv, to*): use self.encoding as from_enc
- when from_enc isn't given.
-
-Sat Dec 22 17:06:50 2007 GOTOU Yuuzou <gotoyuzo@notwork.org>
-
- * ext/openssl/lib/net/ssl.rb (OpenSSL::SSL::SSLContext.build): removed.
-
- * ext/openssl/lib/net/ssl.rb (OpenSSL::SSL::SSLContext#set_params):
- new method to set suitable SSL parameters.
-
- * lib/net/pop.rb, lib/net/http.rb, lib/net/imap.rb,
- test/openssl/test_ssl.rb: follow above change.
-
- * test/net/http/test_https.rb: refine error case.
-
-Sat Dec 22 16:58:49 2007 Shugo Maeda <shugo@ruby-lang.org>
-
- * lib/net/imap.rb (encode_utf7): accept UTF-8 strings.
-
- * lib/net/imap.rb (decode_utf7): return UTF-8 strings.
-
-Sat Dec 22 15:56:36 2007 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * transcode_data_japanese: typo.
-
-Sat Dec 22 15:54:54 2007 Martin Duerst <duerst@it.aoyama.ac.jp>
-
- * ChangeLog: Information for last patch got lost, fixed
-
- * test/ruby/test_transcode.rb: Added simple tests for
- EUC-JP and Shift_JIS and tests for ASCII-only range
-
-Sat Dec 22 15:45:45 2007 Martin Duerst <duerst@it.aoyama.ac.jp>
-
- * transcode_data_one_byte: slightly optimized
-
- * transcode_data_japanese: new data file for EUC-JP and SHIFT_JIS
- (not yet optimized; tests to follow; data from
- http://nkf.sourceforge.jp/ucm/{SJIS|eucJP}-nkf.ucm)
-
- * common.mk, transcode.c: Adjusted for transcode_data_japanese
-
-Sat Dec 22 15:30:13 2007 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * */Makefile.sub (MFLAGS): define unless defined.
-
-Sat Dec 22 15:17:40 2007 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * lib/mkmf.rb ($extmk): set true only when under ext/ or tool/.
-
-Sat Dec 22 15:14:48 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * common.mk (encs, ext/ripper/ripper.c): needs MFLAGS.
-
- * configure.in (STRINGIZE): stringizing macro.
-
- * include/ruby/defines.h (STRINGIZE): fallback.
-
- * tool/make-snapshot: new file.
-
- * version.c (ruby_description, ruby_copyright): string constants for
- -v option.
-
-Sat Dec 22 15:03:37 2007 Shugo Maeda <shugo@ruby-lang.org>
-
- * lib/net/imap.rb (initialize): fixed documentation.
-
-Sat Dec 22 15:01:16 2007 Shugo Maeda <shugo@ruby-lang.org>
-
- * lib/net/pop.rb (enable_ssl): use OpenSSL::SSL::SSLContext.build
- instead of SSLContext.new (default verify mode is now
- OpenSSL::SSL::VERIFY_PEER).
-
-Sat Dec 22 14:45:21 2007 Tadayoshi Funaba <tadf@dotrb.org>
-
- * lib/date.rb: shouldn't freeze nil. [ruby-dev:32677]
-
-Sat Dec 22 14:27:27 2007 Tanaka Akira <akr@fsij.org>
-
- * regenc.c (onigenc_ascii_is_code_ctype): moved from enc/ascii.c.
-
- * regenc.h (onigenc_ascii_is_code_ctype): declared.
-
- * enc/ascii.c: use onigenc_ascii_is_code_ctype.
-
- * enc/us_ascii.c: new file for US-ASCII.
-
-Sat Dec 22 14:30:34 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * parse.y (reg_named_capture_assign_iter): allows non-ascii names and
- get rid of reserved word IDs.
-
-Sat Dec 22 14:18:45 2007 Koichi Sasada <ko1@atdot.net>
-
- * test/ruby/test_float.rb, test_sprintf.rb: fix test place.
-
-Sat Dec 22 14:17:02 2007 Koichi Sasada <ko1@atdot.net>
-
- * bootstraptest/test_objectspace.rb: skip frozen string.
-
-Sat Dec 22 14:02:58 2007 Koichi Sasada <ko1@atdot.net>
-
- * array.c (rb_ary_permutation): add volatile to avoid GC problem.
-
-Sat Dec 22 11:47:42 2007 Koichi Sasada <ko1@atdot.net>
-
- * eval.c (rb_obj_instance_eval): use class of immediate objects.
-
- * test/ruby/test_eval.rb: fix a test.
-
-Sat Dec 22 11:37:06 2007 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * encoding.c (rb_locale_charmap): win32 support.
-
-Sat Dec 22 11:31:14 2007 Eric Hodel <drbrain@segment7.net>
-
- * gem_prelude.rb: Place bin dir before lib dir so gem bin stubs work.
-
-Sat Dec 22 11:05:44 2007 Jim Weirich <jim@tardis.local>
-
- * lib/rake.rb (Rake): Added Rake and related libraries to the
- source code base.
-
-Sat Dec 22 10:30:45 2007 Koichi Sasada <ko1@atdot.net>
-
- * tool/insns2vm.rb: moved from lib/vm/instruction.rb.
-
-Sat Dec 22 10:25:44 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * parse.y (reg_named_capture_assign_iter): captured name should
- not be reserved word. a patch from Keita Yamaguchi
- <keita.yamaguchi AT gmail.com> in [ruby-dev:32675].
-
- * parse.y (reg_named_capture_assign_iter): just ignore the
- captures that do not have valid local variable name.
-
-Sat Dec 22 10:19:08 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * eval.c (rb_f_method_name): now __method__ and __callee__ are
- aliases. [ruby-core:14244]
-
-Sat Dec 22 08:29:56 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * string.c (rb_str_buf_append): improvement for non-broken coded
- strings.
-
-Sat Dec 22 06:30:04 2007 Koichi Sasada <ko1@atdot.net>
-
- * bootstraptest/test_fork.rb: skip if fork is not unsupported.
-
- * bootstraptest/test_io.rb: skip if require failed.
-
-Sat Dec 22 06:09:12 2007 David Flanagan <david@davidflanagan.com>
-
- * io.c: fix typo in rdoc comment
-
-Sat Dec 22 05:09:43 2007 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * parse.y (parser_str_new, rb_intern3): rb_default_encoding() renamed.
-
- * ext/nkf/nkf.c (rb_nkf_putchar): ditto.
-
-Sat Dec 22 03:54:18 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * encoding.c (rb_ascii_encoding): renamed from previous
- rb_default_encoding().
-
-Sat Dec 22 02:49:02 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * parse.y (command): block from cmd_brace_block was ignored.
- [ruby-dev:32644]
-
- * re.c (rb_reg_prepare_re): stop ENCODING_NONE warning if the
- encoding of the str is ASCII-8BIT.
-
-Sat Dec 22 01:52:11 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * io.c (io_ungetc): avoid buffer relocation, which might cause
- serious problem under concurrent situation.
-
-Sat Dec 22 01:35:41 2007 Tanaka Akira <akr@fsij.org>
-
- * re.c (ARG_ENCODING_NONE): defined for /.../n option.
- (REG_ENCODING_NONE): ditto.
- (rb_char_to_option_kcode): return ARG_ENCODING_NONE for n.
- (rb_reg_prepare_re): warn /ascii/n =~ "non-ascii".
- (rb_reg_initialize): set REG_ENCODING_NONE from ARG_ENCODING_NONE.
-
-Sat Dec 22 01:23:10 2007 Shugo Maeda <shugo@ruby-lang.org>
-
- * test/json/test_json_addition.rb (test_core): do not use Time.now
- because JSON can't hold nsec.
-
-Sat Dec 22 01:10:30 2007 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * ext/tk/sample/tkextlib/vu/canvSticker2.rb,
- ext/tk/sample/demos-{en,jp}/bind.rb: fix typo. [ruby-dev:32668]
-
-Sat Dec 22 00:56:43 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * sample/test.rb (valid_syntax): force_encoding input script.
-
-Fri Dec 21 23:48:38 2007 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * lib/mkmf.rb (depend_rules): suffixes list broken. fixed.
-
-Fri Dec 21 20:18:15 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * bignum.c (rb_big_mul0): remove unused variable.
-
- * bignum.c (bigdivrem): ditto.
-
-Fri Dec 21 20:13:51 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * include/ruby/ruby.h (rb_catch_obj, rb_throw_obj): prototyped.
-
- * include/ruby/intern.h (rb_fiber_alive_p): prototyped.
-
-Fri Dec 21 20:09:18 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * string.c (rb_str_succ): retry increasing until valid char is found.
-
-Fri Dec 21 20:00:02 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * encoding.c (rb_enc_replicate): now creates first class encoding.
-
- * encoding.c (rb_define_dummy_encoding): always based on the default
- encoding.
-
- * encoding.c (rb_enc_dummy_p): check if dummy.
-
- * encoding.c (enc_inspect): shows if dummy.
-
- * encoding.c (Init_Encoding): added dummy? method
-
- * include/ruby/encoding.h (ENCODING_INLINE_MAX): increased.
-
-Fri Dec 21 18:40:54 2007 Koichi Sasada <ko1@atdot.net>
-
- * io.c: write() should be in blocking region.
-
- * bootstraptest/test_io.rb, test_knownbug.rb: move a fixed test.
-
-Fri Dec 21 17:56:30 2007 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/tcltklib.c: provisional support on Ruby-VM.
-
- * ext/tk/MANUAL_tcltklib.eng, ext/tk/MANUAL_tcltklib.eucj:
- modify document about new functions.
-
- * ext/tk/lib/tk.rb, ext/tk/lib/tk/labelframe.rb,
- ext/tk/lib/tk/frame.rb, ext/tk/lib/tk/toplevel.rb,
- ext/tk/lib/tk/scrollbar.rb, ext/tk/lib/tk/message.rb,
- ext/tk/lib/tk/listbox.rb, ext/tk/lib/tk/text.rb,
- ext/tk/lib/tk/scale.rb, ext/tk/lib/tk/entry.rb,
- ext/tk/lib/tk/ttk_selector.rb, ext/tk/lib/tk/menu.rb,
- ext/tk/lib/tk/label.rb, ext/tk/lib/tk/spinbox.rb,
- ext/tk/lib/tk/textmark.rb, ext/tk/lib/tk/winpkg.rb,
- ext/tk/lib/tk/checkbutton.rb, ext/tk/lib/tk/panedwindow.rb,
- ext/tk/lib/tk/texttag.rb, ext/tk/lib/tk/root.rb,
- ext/tk/lib/tk/textimage.rb, ext/tk/lib/tk/radiobutton.rb,
- ext/tk/lib/tk/package.rb, ext/tk/lib/tk/macpkg.rb,
- ext/tk/lib/tk/composite.rb, ext/tk/lib/tk/autoload.rb,
- ext/tk/lib/tk/canvas.rb, ext/tk/lib/tk/button.rb,
- ext/tk/lib/tk/textwindow.rb,
- ext/tk/lib/tkextlib/iwidgets/scrolledtext.rb,
- ext/tk/lib/tkextlib/tile/style.rb,
- ext/tk/lib/tkextlib/tile/tscrollbar.rb,
- ext/tk/lib/tkextlib/tile/tpaned.rb, ext/tk/lib/tkextlib/tile.rb,
- ext/tk/extconf.rb: support Tcl/Tk8.5 (partial, not complete).
-
- * ext/tk/sample/demos-jp/widget,
- ext/tk/sample/demos-jp/pendulum.rb,
- ext/tk/sample/demos-jp/bind.rb,
- ext/tk/sample/tkextlib/vu/canvSticker2.rb,
- ext/tk/sample/demos-en/pendulum.rb,
- ext/tk/sample/demos-en/bind.rb: remove $KCODE and minor bug fix.
-
-Fri Dec 21 17:49:06 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * transcode.c (rb_str_transcode_bang): returns self if no conversion.
- [ruby-dev:32662]
-
-Fri Dec 21 17:44:47 2007 Eric Hodel <drbrain@segment7.net>
-
- * lib/rubygems*: Update to RubyGems 1.0.1, r1581
-
-Fri Dec 21 17:32:49 2007 Koichi Sasada <ko1@atdot.net>
-
- * bootstraptest/pending.rb: renamed from featurebug.rb.
- This file contains bugs which is known but will not be
- fixed in days.
-
-Fri Dec 21 17:31:22 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * debug.c (dummy_gdb_enums.various): added ENCODING and CODERANGE
- constants.
-
- * .gdbinit: use enum constants.
-
-Fri Dec 21 17:28:17 2007 Koichi Sasada <ko1@atdot.net>
-
- * bootstraptest/featurebug.rb: added.
-
- * bootstraptest/test_knownbug.rb: move a feature bug.
-
-Fri Dec 21 17:25:22 2007 Koichi Sasada <ko1@atdot.net>
-
- * thread.c (rb_thread_atfork): fix to mark thread object.
- [ruby-dev:32404]
-
- * bootstraptest/test_knownbug.rb, test_fork.rb: move a fixed test.
-
-Fri Dec 21 17:07:13 2007 Koichi Sasada <ko1@atdot.net>
-
- * gc.h: extern variable should not be initialized.
-
- * thread_pthread.c: add a parameter.
-
-Fri Dec 21 16:50:43 2007 Tanaka Akira <akr@fsij.org>
-
- * encoding.c (Init_Encoding): use enc_name as to_s.
- (enc_inspect): renamed from enc_to_s. add "#" at beginning.
-
-Fri Dec 21 16:37:43 2007 NARUSE, Yui <naruse@ruby-lang.org>
-
- * ext/nkf/nkf-utf8/config.h (MIME_DECODE_DEFAULT, X0201_DEFAULT):
- defined as FALSE. nkf and kconv don't decode MIME encoded string
- and don't convert JIS X 0201 Katakana.
-
- * test/nkf/test_kconv.rb: fix tests.
-
-Fri Dec 21 16:33:28 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * enumerator.c (enumerator_iter_i): adjusted for rb_block_call_func.
-
- * include/ruby/ruby.h (rb_block_call_func): function to be called back
- as block.
-
-Fri Dec 21 16:25:25 2007 Martin Duerst <duerst@it.aoyama.ac.jp>
-
- * common.mk, transcode_data_iso_8859.c: renamed to
- transcode_data_one_byte.c.
-
-Fri Dec 21 16:10:30 2007 Shigeo Kobayashi <shigeo@tinyforest.jp>
-
- * ext/bigdecimal/bigdecimal.c (VpMidRound): Round method bug
- pointed by Ryan Platte fixed(Patch to the patch from "NATORI
- Shin"). [ruby-talk:273360]
-
-Fri Dec 21 16:06:13 2007 Tanaka Akira <akr@fsij.org>
-
- * re.c (append_utf8): use rb_utf8_encoding() instead of
- rb_enc_find("utf-8").
-
-Fri Dec 21 15:59:46 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * encoding.c (rb_enc_init): use enc_register_at() directly.
-
- * encoding.c (rb_utf8_encoding): returns utf-8 encoding.
-
- * include/ruby/encoding.h (rb_utf8_encoding): prototyped.
-
- * parse.y (UTF8_ENC): uses rb_utf8_encoding().
-
-Fri Dec 21 15:31:59 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * io.c (rb_io_s_read): allow specifying encoding explicitly.
-
- * io.c (rb_io_binmode): specifies encoding to ASCII-8BIT (binary).
-
- * io.c (rb_io_s_read): IO should be in binary mode when offset is
- specified.
-
- * encoding.c (rb_to_encoding): returns default encoding if no
- corresponding encoding found.
-
-Fri Dec 21 15:24:22 2007 Shugo Maeda <shugo@ruby-lang.org>
-
- * lib/net/imap.rb (initialize): accept service name. changed
- the default value of the old style +verify+ argument to true.
-
-Fri Dec 21 15:15:44 2007 Tanaka Akira <akr@fsij.org>
-
- * gc.c (rb_garbage_collect): new function for debugging.
-
-Fri Dec 21 15:16:00 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * encoding.c (rb_to_encoding_index): should return error instead of
- exception even if type is incorrect.
-
-Fri Dec 21 14:58:27 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * enumerator.c (enumerator_init_copy): prohibit cloning of
- generators since Fibers cannot be copied.
-
- * enumerator.c (enumerator_init_copy): typo fixed.
-
-Fri Dec 21 14:46:07 2007 Tanaka Akira <akr@fsij.org>
-
- * io.c (Init_IO): define IO::BINARY even if O_BINARY is not exist.
-
-Fri Dec 21 14:01:14 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * test/ruby/test_system.rb (TestSystem::valid_syntax): apply
- ASCII-8BIT encoding explicitly.
-
- * re.c (rb_reg_prepare_re): add encoding name in the message.
-
-Fri Dec 21 13:54:05 2007 Tanaka Akira <akr@fsij.org>
-
- * re.c: change "character encodings differ" error messages.
-
-Fri Dec 21 13:46:58 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * encoding.c (rb_enc_register): set encoding constant.
-
- * encoding.c (rb_enc_find_index): replace non-alphanumeric chars with
- underscores, so that initialize function can be called.
-
- * encoding.c (rb_enc_find_index): extension libraries have lower case
- names conventionally.
-
- * ruby.c (proc_options, process_options): finds encoding after
- load_path is initialized.
-
-Fri Dec 21 13:10:57 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * io.c (rb_io_external_encoding): new method.
-
- * encoding.c (rb_enc_from_encoding): returns Qnil for NULL
- encoding.
-
- * io.c (rb_io_external_encoding): should fill delayed
- initialization for STDIN.
-
-Fri Dec 21 13:09:11 2007 Tanaka Akira <akr@fsij.org>
-
- * encoding.c (rb_locale_charmap): return nil if no locale information.
-
-Fri Dec 21 12:55:39 2007 Tanaka Akira <akr@fsij.org>
-
- * lib/runit, lib/rubyunit.rb, test/testunit/runit: removed.
-
-Fri Dec 21 12:45:49 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * string.c (rb_str_chomp_bang): avoid unnecessary loop using
- ONIGENC_LEFT_ADJUST_CHAR_HEAD().
-
-Fri Dec 21 12:32:08 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * file.c (Init_File): File.exists? revived.
-
- * dir.c (Init_Dir): Dir.exists? again.
-
-Fri Dec 21 12:26:36 2007 Koichi Sasada <ko1@atdot.net>
-
- * compile.c: remove "illegal".
-
-Fri Dec 21 12:22:20 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * keywords, parse.y (__ENCODING__): represent script encoding.
-
-Fri Dec 21 12:16:50 2007 Tanaka Akira <akr@fsij.org>
-
- * string.c (rb_str_is_ascii_only_p): new method ascii_only?.
-
-Fri Dec 21 12:11:57 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * io.c (rb_io_mode_enc): set default external encoding if no
- encoding specified explicitly.
-
-Fri Dec 21 12:00:34 2007 Tanaka Akira <akr@fsij.org>
-
- * configure.in: check langinfo.h and locale.h.
-
- * encoding.c: use langinfo.h only if available.
-
- * main.c: use locale.h only if available.
-
-Fri Dec 21 11:47:56 2007 Tanaka Akira <akr@fsij.org>
-
- * encoding.c: include locale.h
- (rb_locale_charmap): new method Encoding.locale_charmap for
- nl_langinfo(CODESET).
-
- * include/ruby/encoding.h (rb_locale_charmap): declared.
-
- * main.c (main): call setlocale with LC_CTYPE.
-
- * ruby.c (locale_encoding): use rb_locale_charmap.
-
-Fri Dec 21 11:35:10 2007 Koichi Sasada <ko1@atdot.net>
-
- * vm.c, vm_dump.c: fix typo. Reported by Yuki Mitsui.
-
-Fri Dec 21 11:28:00 2007 Tanaka Akira <akr@fsij.org>
-
- * regerror.c, string.c, io.c, lib/getoptlong.rb, lib/net/imap.rb,
- compile.c, sprintf.c, parse.y, ext/win32ole/win32ole.c,
- ext/tk/sample/demos-en/entry3.rb, ext/tk/lib/tcltk.rb,
- ext/openssl/ossl_bn.c, numeric.c, vm.c,
- benchmark/bm_so_meteor_contest.rb, bignum.c, ruby.c: don't "illegal"
- for non law violation context.
-
-Fri Dec 21 11:23:24 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * common.mk (enc.mk): depends on $(RBCONFIG) instead of rbconfig.rb.
-
- * encoding.c (Init_Encoding): ISO-8859-1 is no longer a replica.
-
- * regenc.h (OnigEncodingDefine): names of extension and encoding can
- differ.
-
- * enc/Makefile.in: always shared.
-
- * enc/depend (deffile): should not upcase.
-
- * enc/{ascii,euc_jp,sjis,utf8,iso_8859_{1..16}}.c: fix for Init.
-
-Fri Dec 21 09:26:48 2007 Tanaka Akira <akr@fsij.org>
-
- * tool/compile_prelude.rb: use erb.
-
-Fri Dec 21 08:07:35 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * enumerator.c (enumerator_next): should call next_init() if fiber
- is dead already. [ruby-dev:32459]
-
-Fri Dec 21 01:21:49 2007 GOTOU Yuuzou <gotoyuzo@notwork.org>
-
- * ext/openssl/lib/openssl/ssl.rb (OpenSSL::SSL::SSLContext.build):
- enable CRL checking by default.
-
-Fri Dec 21 01:20:56 2007 GOTOU Yuuzou <gotoyuzo@notwork.org>
-
- * lib/net/http.rb (Net::HTTP#connect): use
- OpenSSL::SSL::SSLContext.build instead of SSLContext.new (default
- verify mode is now OpenSSL::SSL::VERIFY_PEER).
-
- * lib/net/https.rb: SSL parameters are defined by attr_accessor.
-
- * test/net/http/test_https.rb: add test for HTTPS features.
-
-Fri Dec 21 01:11:37 2007 GOTOU Yuuzou <gotoyuzo@notwork.org>
-
- * io.c (select_internal): should return original value.
-
-Fri Dec 21 00:26:39 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * string.c (tr_trans): wrong encoding check for tree strings.
-
- * test/ruby/test_m17n.rb (TestM17N::test_tr_s): "invalid mbstring
- sequence" is not an error to be tested.
-
- * test/ruby/test_m17n.rb (TestM17N::test_tr): ditto.
-
-Thu Dec 20 19:29:07 2007 Shugo Maeda <shugo@ruby-lang.org>
-
- * lib/net/imap.rb (initialize): the second argument is an option
- hash now. use SSLContext.build to specify SSL parameters.
-
-Thu Dec 20 19:11:56 2007 Koichi Sasada <ko1@atdot.net>
-
- * thread_pthread.c (native_thread_apply_priority): check
- _POSIX_PRIORITY_SCHEDULING for OpenBSD.
-
-Thu Dec 20 18:33:54 2007 Koichi Sasada <ko1@atdot.net>
-
- * configure.in: add libthr for FreeBSD.
-
-Thu Dec 20 18:17:14 2007 Koichi Sasada <ko1@atdot.net>
-
- * common.mk, *.ci: renamed to *.c.
-
- * eval_load.c: renamed to load.c.
-
-Thu Dec 20 17:36:01 2007 Eric Hodel <drbrain@segment7.net>
-
- * lib/rubygems*: Import RubyGems 1.0.0, r1575.
-
-Thu Dec 20 17:18:38 2007 Koichi Sasada <ko1@atdot.net>
-
- * proc.c: support Proc#binding.
-
- * sample/test.rb: add a test.
-
-Thu Dec 20 17:15:15 2007 Martin Duerst <duerst@it.aoyama.ac.jp>
-
- * pack.c: Slight change to documentation ('character' ->
- 'byte (C char)'). [ruby-core:13126], see also [ruby-core:13998].
-
-Thu Dec 20 17:07:54 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * common.mk (enc.mk): depends on rbconfig.rb.
-
- * regenc.h (OnigEncodingDefine): external encoding definition macro.
-
- * enc/Makefile.in: fix for linking.
-
- * enc/depend, enc/make_encmake.rb: fix for Windows.
-
- * enc/{ascii,euc_jp,sjis,utf8,iso_8859_{1..16}}.c: renamed.
-
-Thu Dec 20 16:42:55 2007 Koichi Sasada <ko1@atdot.net>
-
- * iseq.c (find_line_no): return 0 if not found.
-
-Thu Dec 20 16:04:17 2007 Koichi Sasada <ko1@atdot.net>
-
- * insnhelper.ci, vm.c, vm_core.h: change interface of
- vm_invoke_block() to specify block ptr. [ruby-talk:266422]
-
- * cont.c, eval_jump.ci, insns.def, proc.c, signal.c, thread.c:
- apply above change.
-
- * bootstraptest/test_knownbug.rb: move fixed bug.
-
- * bootstraptest/test_block.rb: ditto. and add a test.
-
-Thu Dec 20 15:47:13 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * enc/iso_8859_{1..16}.c: renamed.
-
-Thu Dec 20 09:59:27 2007 Koichi Sasada <ko1@atdot.net>
-
- * insnhelper.ci (vm_expandarray): fix sp increase place.
- a patch from Yusuke ENDOH <mame AT tsg.ne.jp> in [ruby-dev:32581].
-
- * bootstraptest/test_massign.rb: add a test for above.
-
- * bootstraptest/test_syntax.rb: fix last committed test.
-
-Thu Dec 20 09:47:58 2007 Koichi Sasada <ko1@atdot.net>
-
- * bootstraptest/test_syntax.rb: add a test.
-
-Thu Dec 20 09:40:51 2007 Koichi Sasada <ko1@atdot.net>
-
- * compile.c (iseq_compile_each/NODE_RETURN): fix stack consistency.
-
-Thu Dec 20 09:42:11 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * bignum.c (big2str_orig): access beyond memory region cause crash
- on interrupt. a patch from Yusuke ENDOH <mame AT tsg.ne.jp> in
- [ruby-dev:32651]. [ruby-dev:32641]
-
-Thu Dec 20 09:06:54 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * string.c (rb_str_index): wrong starting position.
-
-Thu Dec 20 06:34:27 2007 Koichi Sasada <ko1@atdot.net>
-
- * compile.c (iseq_compile_each): add pop after throw as return.
-
- * bootstraptest/test_knownbug.rb, test_syntax.rb: move resolved test.
-
- * vm_core.h, iseq.c, compile.h: add debug output code.
-
-Thu Dec 20 04:57:18 2007 Koichi Sasada <ko1@atdot.net>
-
- * compile.c (iseq_compile_each): remove unused retry entry.
-
-Thu Dec 20 04:15:41 2007 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * */Makefile.sub (DEFS, RM): output to config.status.
-
-Thu Dec 20 02:59:05 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * common.mk (encs): create encoding directory.
-
-Thu Dec 20 02:50:28 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * enc/iso8859_{1..16}.c: adjust for ruby.
-
-Thu Dec 20 02:28:29 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * enc/iso8859_{1..16}.c: imported from Onigiruma 5.9.0.
-
-Thu Dec 20 02:23:22 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * enc/Makefile.in (RM): added.
-
- * enc/depend (encs): sort in alpha-numeric order.
-
- * enc/depend (clean, distclean): added.
-
-Thu Dec 20 01:10:52 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * compile.c (iseq_compile_each): should handle upper level eval iseq
- from break/next, and COMPILE_ERROR() breaks only one block.
- [ruby-dev:31372]
-
-Thu Dec 20 00:07:36 2007 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
-
- * test/drb/drbtest.rb (test_07_public_private_protected_missing):
- followed current Ruby specification.
-
-Wed Dec 19 23:57:37 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * dir.c (dir_inspect, dir_path, dir_tell): check for frozen and closed
- is not needed. [ruby-dev:32640]
-
-Wed Dec 19 22:59:52 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * string.c (str_sublen): adjust position if position is not at the
- head of a character.
-
- * string.c (rb_str_chomp_bang): check if match start at the head
- of a character.
-
- * string.c (rb_str_chomp_bang): wrong adjust condition.
-
- * string.c (rb_str_rindex): comparison length should be based on
- bytes, not characters.
-
- * string.c (rb_str_rindex_m): too much adjustment.
-
- * re.c (reg_match_pos): pos adjustment should be based on
- characters.
-
- * test/ruby/test_m17n.rb (TestM17N::test_str_insert): test updated
- to check negative offset behavior.
-
- * string.c (rb_str_each_line): should consider rslen.
-
- * string.c (rb_str_buf_append): should propagate encoding.
-
- * string.c (rb_str_each_line): ditto.
-
- * test/ruby/test_m17n.rb (TestM17N::test_str_each_line): should
- check encoding as well.
-
- * test/ruby/test_m17n.rb (TestM17N::test_str_each_line): empty
- array can not propagate encoding; should not check.
-
-Wed Dec 19 21:42:18 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * re.c (rb_reg_regsub): should set checked encoding.
-
- * string.c (rb_str_sub_bang): applied r14212 too.
-
-Wed Dec 19 20:40:01 2007 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * bignum.c (bigmul1): C99ism.
-
- * bignum.c (bigdivrem1): need dummy return value.
-
-Wed Dec 19 19:18:06 2007 NARUSE, Yui <naruse@ruby-lang.org>
-
- * ext/nkf/nkf-utf8/nkf.c: Updated.
-
- * ext/nkf/nkf.c (rb_nkf_enc_get): added.
- (find encoding or replicate default encoding)
-
- * ext/nkf/nkf.c (NKF::<ENCODING>): redefine encoding constant.
-
- * ext/nkf/lib/kconv.rb (Kconv::<ENCODING>): redefined as Encoding.
-
- * ext/nkf/lib/kconv.rb: refactoring.
-
-Wed Dec 19 19:11:08 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * bignum.c (rb_big_mul0): blocking check for bigger numbers.
- a patch from Yusuke ENDOH <mame AT tsg.ne.jp> in [ruby-dev:32632].
-
- * bignum.c (bigdivrem): ditto.
-
-Wed Dec 19 17:34:50 2007 Koichi Sasada <ko1@atdot.net>
-
- * compile.c (iseq_compile_each): remove "retry" in block.
- ("iter{retry}" cause syntax error)
- Currently, "begin; ...; rescue; iter{retry}; end" cause
- syntax error too.
-
- * bootstraptest/test_jump.rb: ditto.
-
- * lib/drb/invokemethod.rb: ditto.
-
- * sample/drb/darrayc.rb: ditto.
-
- * sample/test.rb: ditto.
-
- * test/drb/drbtest.rb: ditto.
-
- * test/ruby/test_iterator.rb: ditto.
-
- * sample/test.rb: add a 'test' directory on the SYSTEM test.
-
-Wed Dec 19 17:12:59 2007 Koichi Sasada <ko1@atdot.net>
-
- * bootstraptest/test_knownbug.rb, test_block.rb:
- move fixed bug.
-
- * bootstraptest/test_m17n.rb: added.
-
-Wed Dec 19 16:59:55 2007 Koichi Sasada <ko1@atdot.net>
-
- * eval.c (errinfo_place): skip if error is Fixnum. [ruby-dev:32608]
-
- * bootstraptest/test_exception.rb, test_known_bug.rb: move fixed bug.
-
-Wed Dec 19 16:31:58 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * parse.y (reg_named_capture_assign_iter): remove C99 dependency.
-
- * parse.y (reg_named_capture_assign_iter): get rid of creating
- unnecessary ID.
-
- * parse.y (rb_enc_symname2_p): check for non-nul-terminated string.
-
-Wed Dec 19 15:37:06 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * insnhelper.ci (vm_yield_with_cfunc): call cfunc with
- (argv[0], data, argc, argv) to pass all arguments.
-
- * enumerator.c (enumerator_each_i): adapted to new calling
- convention.
-
-Wed Dec 19 15:13:20 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * string.c (rb_str_justify): should propagate encoding from pad
- string too.
-
-Wed Dec 19 13:57:43 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * configure.in (TIMEZONE_VOID): check whether timezone requires zero
- arguments. [ruby-dev:32631]
-
-Wed Dec 19 13:22:14 2007 NARUSE, Yui <naruse@ruby-lang.org>
-
- * ext/nkf/nkf.c (NKF::_ENCODING): removed.
-
- * ext/nkf/nkf.c (rb_nkf_kconv): renamed to rb_nkf_convert.
-
- * ext/nkf/nkf.c (rb_nkf_convert): set encoding.
-
- * ext/nkf/nkf.c (rb_nkf_guess1): removed.
-
- * ext/nkf/nkf.c (rb_nkf_guess2): renamed to rb_nkf_guess.
-
- * ext/nkf/nkf.c (rb_nkf_guess):
- guess method now returns encoding object.
-
- * ext/nkf/nkf-utf8/nkf.c: Update to nkf 2.0.8 2007-12-19.
-
-Wed Dec 19 10:52:29 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * bignum.c (rb_cstr_to_inum): an underscore succeeding after octal
- prefix is allowed. [ruby-core:14139]
-
-Wed Dec 19 00:09:19 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * bignum.c (rb_cstr_to_inum): wrong radix check. a patch from
- Yusuke ENDOH <mame AT tsg.ne.jp> in [ruby-dev:32628].
-
- * bignum.c (big2str_find_n1): ditto.
-
-Tue Dec 18 23:53:53 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * compile.c (iseq_compile_each): fix for segfault. [ruby-dev:31372]
-
-Tue Dec 18 23:44:32 2007 GOTOU Yuuzou <gotoyuzo@notwork.org>
-
- * test/net/http/utils.rb: split TestNetHTTPUtils module from
- test/net/http/test_http.rb. and start HTTP server in each test case.
-
-Tue Dec 18 23:27:51 2007 GOTOU Yuuzou <gotoyuzo@notwork.org>
-
- * lib/webrick/server.rb (WEBrick::GenericServer#accept_client):
- should rescue Errno::EINVAL from TCPServer#accept. this exception
- might occur if the server socket is not in ready to listen.
-
- * lib/webrick/server.rb (WEBrick::GenericServer#accept_client):
- don't call TCPServer#close if the :ShutdownSocketWithoutClose is set.
-
- * lib/webrick/config.rb (WEBrick::Config::General): add new parameter
- :ShutdownSocketWithoutClose.
-
-Tue Dec 18 22:51:47 2007 GOTOU Yuuzou <gotoyuzo@notwork.org>
-
- * ext/openssl/lib/openssl/ssl.rb (OpenSSL::SSL::SSLServer#shutdown):
- new method which calls TCPSocket#shutdown of the underlying socket.
-
-Tue Dec 18 22:11:50 2007 GOTOU Yuuzou <gotoyuzo@notwork.org>
-
- * lib/rss/parser.rb, lib/rss/atom.rb, lib/rss/rss.rb,
- test/rss/rss-assertions.rb, test/rss/test_atom.rb: use
- pack/unpack("m") instead of base64 library.
-
- * lib/webrick/httpproxy.rb: use delete("\n") instead of chomp/chop
- because the result of pack("m") might be multi-line.
-
-Tue Dec 18 22:12:35 2007 Koichi Sasada <ko1@atdot.net>
-
- * insnhelper.ci, vm.c: rewrite sp manipulation around method/block
- invocation. [ruby-dev:32547]
-
-Tue Dec 18 22:11:23 2007 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * ext/dl/win32/lib/win32/sspi.rb: use pack/unpack("m") instead of
- base64 library which was already removed.
-
-Tue Dec 18 21:09:23 2007 Koichi Sasada <ko1@atdot.net>
-
- * vm.c (invoke_block): merge 2 stack overflow checks.
-
-Tue Dec 18 20:58:35 2007 Koichi Sasada <ko1@atdot.net>
-
- * compile.c, insnhelper.ci, insns.def, object.c, vm.c, vm.h:
- optimize !@, != method invocation.
-
- * id.c, id.h: ditto.
-
- * bootstraptest/test_syntax.rb: add tests for above.
-
-Tue Dec 18 18:10:05 2007 Koichi Sasada <ko1@atdot.net>
-
- * bootstraptest/test_knownbug.rb: add issues.
-
-Tue Dec 18 20:22:44 2007 Tanaka Akira <akr@fsij.org>
-
- * parse.y (arg tMATCH arg): call reg_named_capture_assign_gen if regexp
- literal is used.
- (reg_named_capture_assign_gen): assign the result of named capture
- into local variables.
- [ruby-dev:32588]
-
- * re.c: document the assignment by named captures.
-
-Tue Dec 18 18:09:15 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * string.c (rb_str_splice): propagate encoding.
-
- * string.c (rb_str_subpat_set): ditto.
-
-Tue Dec 18 17:27:12 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * object.c (rb_obj_freeze): preserve frozen state of immediate
- values in internal hash table, a la generic_ivar.
-
- * object.c (rb_obj_frozen_p): check immediate values too.
-
- * variable.c (generic_ivar_set): add frozen check fro immediate
- values.
-
-Tue Dec 18 17:04:25 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * transcode.c (rb_str_transcode_bang, rb_str_transcode): set new
- encoding even if no conversion is done because of 7bit only.
- [ruby-dev:32591]
-
-Tue Dec 18 15:43:59 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * common.mk (encs, ext/ripper/ripper.c): other options must come
- before MAKEFLAGS in GNU make.
-
-Tue Dec 18 15:19:55 2007 Eric Hodel <drbrain@segment7.net>
-
- * lib/rdoc/parsers/parse_rb.rb: Don't call private fail anymore.
-
-Tue Dec 18 15:17:26 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * common.mk (encs, ext/ripper/ripper.c): pass MAKEFLAGS.
-
-Tue Dec 18 14:45:25 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * parse.y (op_tbl): remove duplication to avoid symbol aliases.
-
-Tue Dec 18 14:39:05 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * string.c (str_nth): need not to raise out-of-range exception.
-
- * test/ruby/test_m17n.rb (TestM17N::test_str_aref_len): removed
- debug print.
-
-Tue Dec 18 14:05:23 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * enc/depend: get rid of target expanded as empty for nmake.
-
-Tue Dec 18 07:56:57 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * proc.c (rb_obj_public_method): Object#public_method to retrieve
- public method object.
-
- * proc.c (rb_mod_public_instance_method): Module#public_instance_method
- to retrieve public instance method from class / module.
-
- * proc.c (mnew): visibility check added.
-
- * eval_error.ci (rb_print_undef): add rb_ prefix.
-
- * eval_error.ci (rb_print_undef): add visibility in the error
- message.
-
-Tue Dec 18 05:54:26 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/Env.rb, lib/base64.rb, lib/importenv.rb, lib/eregex.rb: removed.
-
- * lib/ping.rb, lib/readbytes.rb: removed
-
-Tue Dec 18 02:30:56 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * configure.in (BUILTIN_ENCS): removed.
-
- * common.mk (enc.mk): pass BUILTIN_ENCS from command line.
-
- * enc/depend: ditto.
-
- * enc/make_encmake.rb: ditto.
-
-Tue Dec 18 01:46:48 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * sprintf.c (rb_str_format): need to clear output buffer to avoid
- broken encoding compatibility check.
-
-Tue Dec 18 01:40:20 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/mkmf.rb (depend_rules): inserts ruby to only headers.
-
-Tue Dec 18 01:21:19 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * parse.y (parser_encode_length): chomp eol style modifiers.
-
- * parse.y (parser_magic_comment): ditto.
-
- * parse.y (set_file_encoding): ditto.
-
-Tue Dec 18 01:15:44 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * common.mk (encs): added dependencies.
-
- * enc/Makefile.in, enc/depend, enc/make_encmake.rb: moved serb code.
-
- * lib/mkmf.rb (depend_rules): now takes content string, not file name.
-
- * win32/enc-setup.mak: overrides default target.
-
-Tue Dec 18 00:26:12 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * re.c (rb_reg_initialize): raise error if non-Unicode fixed
- encoding option is specified for regexp literals with \u{}
- escapes.
-
- * string.c (rb_str_squeeze_bang): should squeeze multibyte
- characters as well.
-
-Mon Dec 17 21:41:25 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * win32/enc-setup.mak: extracts BUILTIN_ENCOBJS.
-
- * tool/compile_prelude.rb: needs srcdir.
-
-Mon Dec 17 21:24:04 2007 GOTOU Yuuzou <gotoyuzo@notwork.org>
-
- * common.mk (miniprelude.c): add -I$(srcdir).
-
-Mon Dec 17 20:53:27 2007 GOTOU Yuuzou <gotoyuzo@notwork.org>
-
- * ext/openssl/ossl_ssl.c (ossl_sslctx_set_ssl_version):
- new method OpenSSL::SSL::SSLContext#ssl_version to wrap
- SSL_CTX_set_ssl_version.
-
- * ext/openssl/ossl_ssl.c (ossl_ssl_get_verify_result):
- new method OpenSSL::SSL::SSLSocket#verify_result to wrap
- SSL_get_verify_result.
-
- * ext/openssl/lib/openssl/ssl.rb (OpenSSL::SSL::SSLContext.build):
- new method to build OpenSSL::SSL::SSLContext with Hash parameters.
- this method provides safety default parameters than SSLContext.new.
-
- * ext/openssl/lib/openssl/ssl.rb (OpenSSL::SSL.verify_certificate_identity):
- new module function: pull out identity verification process
- from OpenSSL::SSL::SSLSocket#post_connection_check.
-
-Mon Dec 17 18:42:23 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * string.c (scan_once): need no encoding compatibility check.
- it's done inside of re_reg_search().
-
- * string.c (rb_str_split_m): ditto.
-
- * re.c (rb_reg_regsub): ditto.
-
-Mon Dec 17 17:50:30 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * string.c (rb_str_index): check if substring is broken.
-
- * string.c (rb_str_rindex): ditto.
-
- * string.c (rb_str_succ): should carry over.
-
-Mon Dec 17 17:47:26 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * common.mk (encs): new target to compile external encodings.
-
- * enc/Makefile.in: became a serb template.
-
- * enc/make_encmake.rb: creates enc.mk from enc/Makefile.in using serb.
-
- * lib/mkmf.rb (relative_from): moved from ext/extmk.rb.
-
- * lib/mkmf.rb ($extmk): true if under to top source directory, not
- only ext.
-
- * lib/mkmf.rb (depend_rules): extracted from create_makefile.
-
- * tool/serb.rb (serb): splitted from tool/compile_prelude.rb.
-
-Mon Dec 17 17:32:55 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * configure.in (MAKEFILES): removed enc/Makefile.
-
- * configure.in (EXTERNAL_ENCOBJS, ENCSOS): removed.
-
- * enc/Makefile.in (BUILTIN_ENCS): includes .c suffix.
-
- * enc/depend: splitted from Makefile.in.
-
- * {bcc32,win32,wince}/setup.mak (-encs-): extracts BUILTIN_ENCOBJS.
-
-Mon Dec 17 17:07:53 2007 Tanaka Akira <akr@fsij.org>
-
- * string.c (rb_enc_str_asciionly_p): use rb_enc_str_coderange.
-
-Mon Dec 17 16:39:25 2007 Tanaka Akira <akr@fsij.org>
-
- * string.c (rb_enc_str_coderange): set ENC_CODERANGE_BROKEN using
- rb_enc_precise_mbclen.
- (rb_str_valid_encoding_p): just check coderange is
- ENC_CODERANGE_BROKEN or not.
-
-Mon Dec 17 16:04:16 2007 GOTOU Yuuzou <gotoyuzo@notwork.org>
-
- * ext/openssl/lib/openssl/buffering.rb (Buffering#gets): added second
- optional argument to specify maximum length limit.
-
-Mon Dec 17 16:02:30 2007 GOTOU Yuuzou <gotoyuzo@notwork.org>
-
- * lib/webrick/httprequest.rb, lib/webrick/cgi.rb: Request-Line or
- header fields should be read with maximum length. [ruby-talk:231745]
-
-Mon Dec 17 14:03:39 2007 Tanaka Akira <akr@fsij.org>
-
- * include/ruby/encoding.h (ENC_CODERANGE_VALID): rename from
- ENC_CODERANGE_8BIT.
-
- * string.c (rb_enc_str_coderange): follow the renaming.
-
-Mon Dec 17 13:56:53 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * string.c (tr_find): wrong condition fixed.
-
- * sprintf.c (rb_str_format): check encoding based on result, not
- the format string.
-
- * string.c (rb_str_upto): add encoding check.
-
-Mon Dec 17 12:21:25 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * Makefile.in (RUNRUBY): added RUNRUBYOPT.
-
-Mon Dec 17 11:38:59 2007 Tanaka Akira <akr@fsij.org>
-
- * thread_win32.ci (native_thread_create): initialize
- th->machine_stack_maxsize as rb_gc_stack_maxsize.
-
-Sun Dec 16 17:07:35 2007 Martin Duerst <duerst@it.aoyama.ac.jp>
-
- * transcode.c (transcode_loop): removed special case (-1)
- for undefined conversions.
-
- * transcode_data_iso_8859.c: Changed from character constants
- ('\xC2') to integer constants (0xC2) for shorter files and
- better readability; eliminated duplicated tables; changed
- from -1 offset to actual UNDEF entry (not yet distinguishing
- UNDEF and ILLEGAL correctly).
-
- * test/ruby/test_transcode.rb: added a test for UNDEF conversion.
-
-Sun Dec 16 14:51:59 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * configure.in (MAKEFILES): should be enc/Makefile, not GNUmakefile.
- [ruby-dev:32609]
-
- * configure.in (BUILTIN_ENCS): removed escapes for OpenBSD.
-
-Sat Dec 15 23:58:46 2007 Tanaka Akira <akr@fsij.org>
-
- * test/openssl/test_pair.rb (SSLPair#ssl_pair): join the thread, even
- on an error.
-
-Sat Dec 15 23:50:31 2007 Tanaka Akira <akr@fsij.org>
-
- * test/xmlrpc/webrick_testing.rb: join webrick server thread.
-
-Sat Dec 15 22:27:39 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * configure.in (BUILTIN_ENCS): splitted command line instead of
- semicolons for Solaris.
-
-Sat Dec 15 21:38:24 2007 Tanaka Akira <akr@fsij.org>
-
- * lib/timeout.rb: join the background thread to make sure it is dead.
-
-Sat Dec 15 20:20:48 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * configure.in (enc/Makefile): add external encoding objects list.
+ * ext/bigdecimal/bigdecimal.h: ditto.
- * common.mk (BUILTIN_ENCOBJS): renamed from ENCOBJS.
+Sat Jun 18 02:30:00 2011 Kenta Murata <mrkn@mrkn.jp>
- * configure.in (BUILTIN_ENCS): [] needs to be enclosed because of m4.
+ * ext/bigdecimal/bigdecimal.c (BigMath_s_exp): move BigMath.exp from
+ bigdecimal/math.rb.
- * Makefile.in (BUILTIN_ENCOBJS): substituted by autoconf.
+ * ext/bigdecimal/lib/bigdecimal/math.rb: ditto.
- * enc/Makefile.in: new file to compile external encoding sources.
+ * test/bigdecimal/test_bigdecimal.rb: move test for BigMath.exp from
+ test/bigdecimal/test_bigmath.rb.
- * encoding.c (rb_enc_find_index): auto-load external encoding objects
- as "ext/ENCODING_NAME". [ruby-dev:32606]
+ * test/bigdecimal/test_bigmath.rb: ditto.
-Sat Dec 15 13:04:30 2007 Tanaka Akira <akr@fsij.org>
+Sat Jun 18 00:20:54 2011 Tadayoshi Funaba <tadf@dotrb.org>
- * vm_core.h (rb_thread_t): new member machine_stack_maxsize and
- machine_register_stack_maxsize.
+ * ext/date/date_core.c: do not define wnum[01].
- * gc.c (rb_gc_stack_maxsize): new global variable for the thread size
- of the main thread.
- (STACK_LEVEL_MAX): use machine_stack_maxsize of current thread.
- (ruby_stack_check): check IA64 register stack.
- (ruby_set_stack_size): set rb_gc_stack_maxsize.
- (Init_stack): set rb_gc_stack_maxsize.
+Fri Jun 17 18:57:36 2011 NARUSE, Yui <naruse@ruby-lang.org>
- * thread_pthread.ci (native_thread_create): initialize
- th->machine_stack_maxsize and th->machine_register_stack_maxsize.
+ * compile.c (iseq_compile_each): fix return value of obj[a,*b]=c.
- * vm.c (Init_BareVM): initialize th->machine_stack_maxsize and
- th->machine_register_stack_maxsize.
+Fri Jun 17 13:09:45 2011 Eric Hodel <drbrain@segment7.net>
- * thread_win32.ci (native_thread_create): initialize
- th->machine_stack_maxsize. not tested. just a guess at all.
+ * ext/curses/curses.c: Clean up documentation.
- [ruby-dev:32604]
+Fri Jun 17 09:25:14 2011 Eric Hodel <drbrain@segment7.net>
-Sat Dec 15 12:58:00 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * ext/curses/curses.c: Document curses constants. Patch by Vincent
+ Batts. [Ruby 1.9 - Bug #4880]
- * encoding.c (rb_enc_register, rb_enc_replicate, rb_enc_alias): check
- if already registered.
+Fri Jun 17 09:11:05 2011 Eric Hodel <drbrain@segment7.net>
-Sat Dec 15 01:57:06 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * object.c: Document Module#method_added and #method_removed.
+ Patch by Bryce Kerley. [Ruby 1.9 - Feature #4867]
- * lib/rdoc/options.rb (Options::parse): do not access $KCODE any
- longer. [ruby-core:14079]
+Fri Jun 17 08:50:16 2011 Eric Hodel <drbrain@segment7.net>
- * lib/irb/init.rb (IRB::IRB.parse_opts): ditto.
+ * io.c: Improve documentation of IO and File open and new.
+ Patch by Roger Pack. [Ruby 1.9 - Bug #4790]
- * lib/cgi.rb (CGI::CGI): ditto.
+Fri Jun 17 07:53:50 2011 Eric Hodel <drbrain@segment7.net>
-Fri Dec 14 18:18:31 2007 Tanaka Akira <akr@fsij.org>
+ * lib/csv.rb: Document #raw_encoding. Patch by David Czarnecki.
+ [Ruby 1.9 - Bug #4874]
- * thread_pthread.ci (native_thread_create): twice the stack size.
- 512KB is not enough to complete test-all on Debian GNU/Linux on
- IA64.
+Fri Jun 17 07:46:50 2011 Eric Hodel <drbrain@segment7.net>
-Fri Dec 14 16:10:50 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * lib/benchmark.rb: Document Benchmark::Tms#memberwise. Patch by
+ David Czarnecki. [Ruby 1.9 - Bug #4873]
- * io.c (rb_f_p): RDoc update. a patch from murphy <murphy AT rubychan.de>.
- [ruby-core:14010]
+Fri Jun 17 07:38:31 2011 Eric Hodel <drbrain@segment7.net>
-Fri Dec 14 16:06:18 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * lib/prettyprint.rb: Improve documentation. Patch by Ysiad
+ Ferreiras. [#4834]
- * string.c (rb_str_cmp): encoding aware comparison.
+Fri Jun 17 07:23:03 2011 Eric Hodel <drbrain@segment7.net>
- * string.c (rb_str_casecmp): ditto.
+ * array.c (rb_ary_drop): Improve documentation. Patch by Caley Woods.
+ [Ruby 1.9 - Bug #4858]
-Fri Dec 14 15:25:30 2007 Martin Duerst <duerst@it.aoyama.ac.jp>
+Fri Jun 17 06:11:31 2011 Eric Hodel <drbrain@segment7.net>
- * transcode.c (encoding_equal): new function.
+ * lib/webrick/log.rb: Improve documentation of BasicLog and Log.
+ Patch by Olivier Brisse. [Ruby 1.9 - Bug #4833]
+ * lib/webrick/httpstatus.rb: Improve documentation of
+ WEBrick::HTTPStatus. Patch by Olivier Brisse.
+ [Ruby 1.9 - Bug #4833]
- * transcode.c (str_transcode, transcode_dispatch): added two-step
- conversion logic via UTF-8.
+Fri Jun 17 04:48:22 2011 Koichi Sasada <ko1@atdot.net>
- * transcode.c: some minor formatting fixes
+ * thread_pthread.c, thread_pthread.h: remove unused variables.
+ (native_thread_data_t::gvl_cond, native_thread_data_t::gvl_next)
- * transcode_data.h, transcode_data_iso_8859.c: Shortened
- extremely frequently used macros to shorten file length.
+Thu Jun 16 14:32:31 2011 NARUSE, Yui <naruse@ruby-lang.org>
- * test/ruby/test_transcode.rb: Fixed name of test class;
- added setup method to ensure all necessary encodings exist;
- split tests into more test methods; added tests; fixed ordering
- of arguments in assert_equal to have expected result first.
+ * time.c (rb_time_new): prevent overflow by "* 1000".
-Fri Dec 14 13:47:54 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Fri Jun 17 03:07:36 2011 Koichi Sasada <ko1@atdot.net>
- * common.mk (ruby.imp): fix for circular dependency. a patch from
- Yutaka Kanemoto <kinpoco AT gmail.com> in [ruby-dev:32590].
+ * benchmark/bm_vm4_thread_create_join.rb,
+ benchmark/bm_vm4_thread_mutex[1-3].rb: renamed to
+ bm_thread_* (fix last rename).
- * regint.h, st.c, ext/json/ext/generator/generator.c: suppress
- warnings on AIX.
+Fri Jun 17 02:26:47 2011 Koichi Sasada <ko1@atdot.net>
-Fri Dec 14 12:36:35 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * thread_pthread.c (native_thread_create): fix debug message.
+ (add last newline)
- * configure.in (RUBY_CHECK_VARTYPE): check if a variable is defined
- and its type.
+Thu Jun 16 23:40:49 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * configure.in (timezone, altzone): check for recent cygwin.
-
- * missing/strftime.c (strftime): fix for timezone. [ruby-dev:32536]
-
- * lib/mkmf.rb (try_var): should fail for functions.
-
- * ext/readline/extconf.rb: should use have_func for functions instead
- of have_var.
-
-Fri Dec 14 10:25:56 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/e2mmap.rb (Exception2MessageMapper::E2MM.Raise): $! no
- longer modifiable in 1.9.
-
-Fri Dec 14 08:17:24 2007 Tanaka Akira <akr@fsij.org>
-
- * eval.c (rb_protect): restore root_jmpbuf even if proc exits by
- break such as dbm.delete_if { break }.
-
-Fri Dec 14 02:55:41 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * string.c (str_nth): direct jump if string is 7bit only. great
- performance boost for worst case.
-
- * string.c (str_strlen): direct size if string is 7bit only.
-
-Fri Dec 14 02:29:32 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * encoding.c (rb_enc_compatible): 1st argument (typically the
- receiver) would have higher priority in encoding detection.
-
-Fri Dec 14 02:05:42 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * io.c (rb_io_synchronized): should check if initialized.
- [ruby-dev:32585]
-
-Fri Dec 14 00:54:40 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * re.c (rb_reg_initialize): embedded string may override encoding
- of the regular expression.
-
- * re.c (rb_reg_initialize): fix encoding of regular expression if
- embedded string has its own encoding specified.
-
-Thu Dec 13 22:16:46 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * encoding.c (rb_enc_compatible): encoding should never fall back
- to ASCII-8BIT unless both encodings are ASCII-8BIT.
-
-Thu Dec 13 20:31:28 2007 Tanaka Akira <akr@fsij.org>
-
- * string.c (rb_str_shared_replace): make str noembed after free.
-
-Thu Dec 13 20:09:09 2007 Tanaka Akira <akr@fsij.org>
-
- * eval.c (rb_protect): restore root_jmpbuf to avoid SEGV by
- 'IO.pipe; [].each.next' with gcc version 3.3.5 (Debian 1:3.3.5-13)
- on IA64.
-
-Thu Dec 13 17:51:54 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * string.c (rb_str_split_m): need not to check encoding if regexp
- is empty.
-
- * string.c (rb_str_justify): associate encoding of original to the
- result.
-
- * string.c (rb_str_chomp_bang): need to check encoding of record
- separator.
-
- * string.c (str_gsub): should copy encoding to the result.
-
- * sprintf.c (rb_str_format): ditto.
-
- * string.c (rb_str_succ): should not enter infinite loop for
- non-ASCII, non-alphanumeric character at the bottom.
-
-Thu Dec 13 17:03:29 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * encoding.c (rb_enc_compatible): should swap encoding indexes too.
-
-Thu Dec 13 16:41:37 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * encoding.c (rb_enc_compatible): should not judge compatibility
- based on rb_enc_asciicompat().
-
-Thu Dec 13 13:09:03 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * include/ruby/io.h (MakeOpenFile): fptr->enc should be
- initialized to zero. [ruby-dev:32569]
-
-Thu Dec 13 08:56:01 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * io.c (rb_io_getc): use default external encoding if fptr->enc is
- not set. [ruby-dev:32565]
-
- * lib/rubygems/package.rb (Gem::TarReader::Entry::rewind): typo fixed.
- [ruby-dev:32565]
-
-Thu Dec 13 08:24:16 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * io.c (read_all): should associate default external encoding.
-
- * io.c (io_read): should NOT associate default external encoding.
-
-Wed Dec 12 23:22:58 2007 Tanaka Akira <akr@fsij.org>
-
- * re.c, regerror.c, string.c, parse.y, ruby.c, file.c:
- use capital letter for \xHH notation. [ruby-dev:32511]
-
-Wed Dec 12 22:21:34 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * io.c (rb_io_mode_enc): allow specifying external encoding in
- open mode, e.g. open(path, "r:utf-8").
-
-Wed Dec 12 21:26:03 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * eval_method.ci (rb_alias): no need to skip aliasing when new
- equals to old. [ruby-core:13990]
-
-Wed Dec 12 16:34:53 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * io.c (rb_io_check_readable): set default external encoding to
- STDIN.
-
- * io.c (io_enc_str): associate encoding to output string.
-
-Wed Dec 12 12:44:39 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * parse.y (expr): 'not' and '!' should act as conditional
- expression. [ruby-dev:32548]
-
-Wed Dec 12 12:11:42 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * re.c (rb_reg_regsub): should copy encoding.
-
- * string.c (rb_str_sub_bang, str_gsub): should check and copy encoding
- to be replaced.
-
-Tue Dec 11 23:04:17 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * pack.c (pack_pack): RDoc update. a patch from Gary Wright
- <radar2002 AT gmail.com>. [ruby-core:13998]
-
- * pack.c (pack_unpack): ditto.
-
-Tue Dec 11 16:37:47 2007 Tanaka Akira <akr@fsij.org>
-
- * encoding.c (rb_enc_ascget): renamed from rb_enc_get_ascii.
-
- * include/ruby/encoding.h: follow the renaming.
-
- * re.c: ditto.
-
-Tue Dec 11 16:19:26 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * Makefile.in, */Makefile.sub (CP, MV): added.
-
- * common.mk (.y.c): not discard the old target until successfully
- created.
-
-Tue Dec 11 15:20:39 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * object.c (Init_Object): singleton_method_{added,removed,undefined}
- hooks should be defined for BasicObject. [ruby-dev:32531]
-
- * eval.c (Init_eval): method_missing should be defined for all
- objects; moved to BasicObject.
-
-Tue Dec 11 14:27:50 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * transcode.c (transcode_loop): get rid of SEGV at sequence can not be
- converted.
-
- * transcode.c (rb_str_transcode_bang): copy encoding. [ruby-dev:32532]
-
- * test/ruby/test_transcode.rb: added tests from Martin Duerst <duerst
- AT it.aoyama.ac.jp>. [ruby-dev:32532]
-
-Tue Dec 11 12:05:51 2007 Tanaka Akira <akr@fsij.org>
-
- * encoding.c (rb_enc_get_ascii): add an argument to provide the
- length of the returned character.
-
- * include/ruby/encoding.h (rb_enc_get_ascii): add the argument.
-
- * re.c (rb_reg_expr_str): modify rb_enc_get_ascii call.
- (rb_reg_quote): ditto.
- (rb_reg_regsub): ditto.
-
-Tue Dec 11 09:40:21 2007 Tanaka Akira <akr@fsij.org>
-
- * include/ruby/oniguruma.h (ONIGENC_CONSTRUCT_MBCLEN_NEEDMORE):
- parenthesize an argument.
-
-Tue Dec 11 02:23:32 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * eval.c (rb_method_missing): RDoc update patch from Hugh Sasse
- <hgs AT dmu.ac.uk>. [ruby-core:12932]
-
-Tue Dec 11 01:51:34 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/net/http.rb (Net::HTTP::get): now supports gzip
- content-encoding. a patch from Hugh Sasse <hgs AT dmu.ac.uk>.
- [ruby-core:13451]
-
-Tue Dec 11 01:21:21 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * parse.y (shadowing_lvar_gen): no duplicate error for "_".
-
-Mon Dec 10 22:08:47 2007 Akinori MUSHA <knu@iDaemons.org>
-
- * array.c (rb_ary_slice_bang): If an invalid range is given, do
- not raise an exception but return nil just like slice() does.
-
-Mon Dec 10 21:47:53 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * transcode.c (str_transcode): allow non-registered encodings.
- [ruby-dev:32520]
-
-Mon Dec 10 21:00:30 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * array.c (rb_ary_slice_bang): should return nil if position out
- of range. a patch from Akinori MUSHA <knu AT iDaemons.org>.
- [ruby-dev:32518]
-
-Mon Dec 10 19:02:52 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * re.c (rb_reg_match): should calculate offset by converted
- operand. [ruby-cvs:21416]
-
-Mon Dec 10 18:28:06 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/uri/common.rb (URI::REGEXP::PATTERN): typo in REG_NAME
- regular expression. a patch from Ueda Satoshi
- <s-ueda AT livedoor.jp>. [ruby-dev:32514]
-
-Mon Dec 10 17:46:04 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * string.c (rb_str_tmp_new): creates hidden temporary buffer.
-
- * transcode.c (transcoding): added a pointer to function to flush.
-
- * transcode.c (transcode_loop): do not use string internal.
- [ruby-dev:32512]
-
- * transcode.c (str_transcode): allow Encoding objects.
-
- * transcode_data.h (BYTE_LOOKUP): use actual struct name.
-
-Mon Dec 10 16:52:17 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * string.c (rb_str_insert): should not add length in bytes to index in
- chars.
-
-Mon Dec 10 14:33:50 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * eval.c (rb_f_public_send): rename invoke_method to public_send.
- it now invokes public method only no matter how it's called.
-
-Mon Dec 10 14:00:43 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * transcode.c: new file to provide encoding conversion features.
- code contributed by Martin Duerst.
-
-Mon Dec 10 13:50:33 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * re.c (rb_reg_search): return byte offset. [ruby-dev:32452]
-
- * re.c (rb_reg_match, rb_reg_match2, rb_reg_match_m): convert byte
- offset to char index.
-
- * string.c (rb_str_index): return byte offset. [ruby-dev:32472]
-
- * string.c (rb_str_split_m): calculate in byte offset.
-
-Mon Dec 10 09:56:29 2007 Koichi Sasada <ko1@atdot.net>
-
- * benchmark/bm_vm1_neq.rb, bm_vm1_not.rb: added.
-
-Mon Dec 10 07:48:14 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * parse.y (parser_yylex): wrong token was generated. [ruby-dev:32498]
-
- * object.c (rb_obj_not_match): wrong test.
-
-Mon Dec 10 06:44:47 2007 Tanaka Akira <akr@fsij.org>
-
- * re.c (rb_reg_expr_str): use \xHH instead of \OOO.
-
- * regerror.c (to_ascii): ditto.
- (onig_snprintf_with_pattern): ditto.
- (onig_snprintf_with_pattern): ditto.
-
- * string.c (rb_str_inspect): ditto.
- (rb_str_dump): ditto.
-
- * parse.y (parser_yylex): ditto.
-
- * ruby.c (proc_options): ditto.
-
- * file.c (rb_f_test): ditto.
-
- [ruby-dev:32495]
-
-Mon Dec 10 06:41:00 2007 Tanaka Akira <akr@fsij.org>
-
- * re.c (rb_reg_names): new method Regexp#names.
- (rb_reg_named_captures): new method Regexp#named_captures
- (match_regexp): new method MatchData#regexp.
- (match_names): new method MatchData#names.
-
- * lib/pp.rb (MatchData#pretty_print): show names of named captures.
-
- [ruby-dev:32493]
-
-Mon Dec 10 01:35:06 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * parse.y (expr): redefinable not (!) operator.
-
- * parse.y (arg): ditto.
-
- * object.c (rb_obj_not): new method "!".
-
- * object.c (rb_obj_not_equal): new method "!=".
-
- * object.c (rb_obj_not_match): new method "!~".
-
-Sun Dec 9 22:31:36 2007 Tanaka Akira <akr@fsij.org>
-
- * re.c (rb_reg_s_last_match): accept named capture's name.
-
-Sun Dec 9 15:57:53 2007 Tanaka Akira <akr@fsij.org>
-
- * re.c (match_backref_number): new function for converting a backref
- name/number to an integer.
- (match_offset): use match_backref_number.
- (match_begin): ditto.
- (match_end): ditto.
- (name_to_backref_number): raise IndexError instead of RuntimeError.
- (match_inspect): show capture index.
-
-Sun Dec 9 14:59:15 2007 Koichi Sasada <ko1@atdot.net>
-
- * eval_intern.h (CHECK_STACK_OVERFLOW): reserve frame size.
- [ruby-dev:32485]
-
-Sun Dec 9 14:38:25 2007 Koichi Sasada <ko1@atdot.net>
-
- * vm.c (rb_thread_mark): use rb_gc_mark_maybe() for
- VM stack specified by mark_stack_len. [ruby-dev:32462]
-
- * insnhelper.ci: clear vm stack extended by opt value.
-
-Sun Dec 9 14:08:47 2007 Tanaka Akira <akr@fsij.org>
-
- * include/ruby/ruby.h (FilePathStringValue): defined. similar to
- FilePathValue but no taint check.
-
- * file.c (rb_get_path_no_checksafe): implementation of
- FilePathStringValue.
- (rb_file_s_basename): use FilePathStringValue.
- (rb_file_s_dirname): ditto.
- (rb_file_s_extname): ditto.
- (rb_file_s_split): ditto.
- (rb_file_join): ditto.
-
- * dir.c (file_s_fnmatch): ditto.
-
-Sun Dec 9 12:49:34 2007 Tanaka Akira <akr@fsij.org>
-
- * re.c (append_utf8): check unicode range.
-
-Sun Dec 9 12:39:01 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/cgi.rb (read_multipart): exclude blanks from header values.
- [ruby-list:44327]
-
-Sun Dec 9 12:18:19 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * file.c (rb_get_path): use the original object if to_path method is
- not defined. [ruby-dev:32473]
-
- * io.c (rb_f_open): call to_open on non-string objects, instead of
- to_str. [ruby-dev:32473]
-
-Sun Dec 9 12:12:23 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * string.c (tr_find): returns true if no characters to be removed is
- specified.
-
-Sun Dec 9 12:03:16 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * parse.y (parser_magic_comment): delimits with a semicolon.
-
-Sun Dec 9 11:29:23 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * string.c (tr_trans): get rid of segfaults when has multibytes but
- source sets have no multibytes.
-
-Sun Dec 9 04:01:28 2007 Tanaka Akira <akr@fsij.org>
-
- * encoding.c (rb_enc_mbclen): return 1 if underlying implementation
- returns a length longer than e-p.
- (rb_enc_precise_mbclen): return needmore if underlying
- implementation returns a length longer than e-p.
-
-Sat Dec 8 17:59:40 2007 Tanaka Akira <akr@fsij.org>
-
- * signal.c (posix_signal): return value.
-
-Sat Dec 8 17:22:16 2007 GOTOU Yuuzou <gotoyuzo@notwork.org>
-
- * test/openssl/test_pkcs7.rb: Remove redundant module namespace.
-
-Sat Dec 8 17:07:10 2007 Tanaka Akira <akr@fsij.org>
-
- * ruby.c (proc_options): make rb_raise format as a string literal to
- avoid warning.
-
-Sat Dec 8 16:18:16 2007 Tanaka Akira <akr@fsij.org>
-
- * re.c (rb_reg_check_preprocess): new function for validating regexp
- fragment.
-
- * parse.y (regexp): invoke reg_fragment_check.
- (reg_fragment_check): defined.
- (reg_fragment_check_gen): defined.
-
-Sat Dec 8 11:06:29 2007 Tanaka Akira <akr@fsij.org>
-
- * encoding.c (rb_enc_mbclen): make it never fail.
- (rb_enc_nth): don't check the return value of rb_enc_mbclen.
- (rb_enc_strlen): ditto.
- (rb_enc_precise_mbclen): return needmore(1) if e <= p.
- (rb_enc_get_ascii): new function for extracting ASCII character.
-
- * include/ruby/encoding.h (rb_enc_get_ascii): declared.
-
- * include/ruby/regex.h (ismbchar): removed.
-
- * re.c (rb_reg_expr_str): use rb_enc_get_ascii.
- (unescape_escaped_nonascii): use rb_enc_precise_mbclen to determine
- the termination of escaped non-ASCII character.
- (unescape_nonascii): use rb_enc_precise_mbclen.
- (rb_reg_quote): use rb_enc_get_ascii.
- (rb_reg_regsub): use rb_enc_get_ascii.
-
- * string.c (rb_str_reverse) don't check the return value of
- rb_enc_mbclen.
- (rb_str_split_m): don't call rb_enc_mbclen with e <= p.
-
- * parse.y (is_identchar): use ISASCII.
- (parser_ismbchar): removed.
- (parser_precise_mbclen): new macro.
- (parser_isascii): new macro.
- (parser_tokadd_mbchar): use parser_precise_mbclen to check invalid
- character precisely.
- (parser_tokadd_string): use parser_isascii.
- (parser_yylex): ditto.
- (is_special_global_name): don't call is_identchar with e <= p.
- (rb_enc_symname_p): ditto.
-
- [ruby-dev:32455]
-
- * ext/tk/sample/tkextlib/vu/canvSticker2.rb: remove coding cookie
- because the encoding is not UTF-8. [ruby-dev:32475]
-
-Fri Dec 7 20:21:35 2007 GOTOU Yuuzou <gotoyuzo@notwork.org>
-
- * ext/openssl/lib/net/ftptls.rb, ext/openssl/lib/net/telnets.rb:
- half-finished libraries are discontinued.
-
-Fri Dec 7 15:44:40 2007 Tanaka Akira <akr@fsij.org>
-
- * lib/pp.rb: use Hash for recursion check as inspect.
-
-Fri Dec 7 15:04:01 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * array.c (flatten): some performance improvements, based on a patch
- from Yusuke ENDOH <mame AT tsg.ne.jp> in [ruby-core:13877].
- [ruby-core:13851]
-
- * thread.c (rb_exec_recursive): use Hash instead of Array for
- performance improvement. [ruby-core:13898]
-
- * thread.c (recursive_pop): use object ID.
-
-Thu Dec 6 19:52:50 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * parse.y (arg): typo fixed ("!" -> "|") in the ripper code.
-
-Thu Dec 6 19:48:41 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * parse.y (arg): tUPLUS no longer works as identity operation any
- more. inspired by [ruby-talk:265532].
-
-Thu Dec 6 18:22:11 2007 Tanaka Akira <akr@fsij.org>
-
- * encoding.c (rb_enc_precise_mbclen): new function for mbclen with
- validation.
-
- * include/ruby/encoding.h (rb_enc_precise_mbclen): declared.
- (MBCLEN_CHARFOUND): new macro.
- (MBCLEN_INVALID): new macro.
- (MBCLEN_NEEDMORE): new macro.
-
- * include/ruby/oniguruma.h (OnigEncodingTypeST): replace mbc_enc_len
- by precise_mbc_enc_len.
- (ONIGENC_PRECISE_MBC_ENC_LEN): new macro.
- (ONIGENC_CONSTRUCT_MBCLEN_CHARFOUND): new macro.
- (ONIGENC_CONSTRUCT_MBCLEN_INVALID): new macro.
- (ONIGENC_CONSTRUCT_MBCLEN_NEEDMORE): new macro.
- (ONIGENC_MBCLEN_CHARFOUND): new macro.
- (ONIGENC_MBCLEN_INVALID): new macro.
- (ONIGENC_MBCLEN_NEEDMORE): new macro.
- (ONIGENC_MBC_ENC_LEN): use ONIGENC_PRECISE_MBC_ENC_LEN.
-
- * enc/euc_jp.c: validation implemented.
-
- * enc/sjis.c: ditto.
-
- * enc/utf8.c: ditto.
-
- * string.c (rb_str_inspect): use rb_enc_precise_mbclen for invalid
- encoding.
- (rb_str_valid_encoding_p): new method String#valid_encoding?.
-
- * io.c (rb_io_getc): use rb_enc_precise_mbclen.
-
- [ruby-dev:32438]
-
-Thu Dec 6 01:37:23 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * regparse.c (i_apply_case_fold): fix for negative character class. a
- patch from Yusuke ENDOH <mame AT tsg.ne.jp> in [ruby-core:13884].
-
-Thu Dec 6 01:00:38 2007 NARUSE, Yui <naruse@ruby-lang.org>
-
- * ext/iconv/iconv.c (iconv_s_list): support NetBSD/Citrus iconv.
-
-Wed Dec 5 16:18:50 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * proc.c (rb_proc_s_new): call initialize. [ruby-core:13824]
-
- * proc.c (rb_proc_location): return file name and line number where
- the proc is defined.
-
- * thread.c (thread_s_new): call initialize. [ruby-core:13835]
-
- * thread.c (thread_initialize): split initialize method.
-
-Wed Dec 5 15:25:55 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * parse.y (rb_intern3): fix to changing encoding to default, and
- uncommented r13835, which is rare but not impossible.
-
-Wed Dec 5 15:15:21 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * range.c (step_i, range_step): support non-fixnum steps.
- [ruby-talk:282100]
-
-Wed Dec 5 14:25:11 2007 Koichi Sasada <ko1@atdot.net>
-
- * compile.c (iseq_compile_each): fix typo.
-
-Wed Dec 5 13:41:25 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * parse.y (yycompile): get rid of tracing while parsing.
- [ruby-dev:31351]
-
- * thread.c (ruby_suppress_tracing): added a new parameter, which
- directs to call func always.
-
-Tue Dec 4 19:56:42 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/iconv/iconv.c (iconv_convert): should not set encoding unless
- the target encoding is supported. [ruby-dev:32451]
-
-Tue Dec 4 17:34:17 2007 NARUSE, Yui <naruse@ruby-lang.org>
-
- * ext/nkf/lib/kconv.rb (tojis, tosjis, toeuc, toutf8):
- set encoding. [ruby-dev:32447]
-
-Tue Dec 4 17:07:25 2007 NARUSE, Yui <naruse@ruby-lang.org>
-
- * lib/json.rb, lib/json/*: moved to ext/json/lib.
-
-Tue Dec 4 16:34:46 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/iconv/iconv.c (iconv_create): achieve target encoding.
-
- * ext/iconv/iconv.c (iconv_convert, iconv_finish, iconv_iconv,
- iconv_conv): set result string encoding. [ruby-dev:32446]
-
- * ext/iconv/iconv.c (iconv_initialize, iconv_s_open): set encoding to
- Iconv instance.
-
-Tue Dec 4 14:34:35 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ruby.c (process_options): reverted c flag.
-
-Tue Dec 4 11:23:50 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * bignum.c (rb_cstr_to_inum): trailing spaces may exist at squeezing
- preceding 0s. [ruby-core:13873]
-
-Mon Dec 3 11:51:53 2007 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * ext/Win32API/*: removed or moved to ext/dl/win32.
-
- * ext/dl/win32/*: new. [ruby-dev:32387]
-
-Sun Dec 2 22:08:01 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * parse.y (parser_tokadd_mbchar): fix for ASCII chars. [ruby-dev:32432]
-
- * parse.y (parser_parse_string, parser_here_document): prevent false
- error messages.
-
-Sun Dec 2 20:43:22 2007 Tanaka Akira <akr@fsij.org>
-
- * re.c (unescape_escaped_nonascii): fix mbclen argument.
-
-Sun Dec 2 15:47:57 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * parse.y (parser_tokadd_mbchar): check insufficient multibyte char.
- [ruby-dev:32429]
-
-Sun Dec 2 15:42:16 2007 Kouhei Sutou <kou@cozmixng.org>
-
- * lib/rss/rss.rb, test/rss/test_version.rb: 0.2.1 -> 0.2.2.
-
- * lib/rss/maker/itunes.rb: fixed new_itunes_category.
- * lib/rss/maker/taxonomy.rb: new_taxo_topic -> new_topic because
- of consistency.
-
- * test/rss/test_maker_itunes.rb, test/rss/test_itunes.rb: removed
- needless UTF-8 characters.
-
-Sun Dec 2 15:18:37 2007 Koichi Sasada <ko1@atdot.net>
-
- * insnhelper.ci (vm_callee_setup_arg): fix error message.
- [ruby-dev:32430]
-
-Sun Dec 2 09:12:48 2007 Tanaka Akira <akr@fsij.org>
-
- * parse.y (regexp): fix /#{}\xa1\xa2/e to be EUC-JP.
- (reg_fragment_setenc_gen): extracted from reg_compile_gen.
-
-Sun Dec 2 01:39:51 2007 Tanaka Akira <akr@fsij.org>
-
- * include/ruby/intern.h (rb_uv_to_utf8): declared.
-
- * re.c (rb_reg_preprocess): new function for dynamic regexp with
- \u{} such as Regexp.new("\\u{6666}").
- (rb_reg_prepare_re): preprocess regexp for recompiling.
- (read_escaped_byte): new function.
- (unescape_escaped_nonascii): new function.
- (append_utf8): new function.
- (unescape_unicode_list): new function.
- (unescape_unicode_bmp): new function.
- (unescape_nonascii): new function.
- (rb_reg_initialize): preprocess regexp.
-
- * pack.c (rb_uv_to_utf8): renamed from uv_to_utf8.
-
- * parse.y (STR_NEW3): take func instead of has8 and hasmb.
- (parser_str_new): use default coderange mechanism except for regexp.
- (parser_tokadd_utf8): copy regexp source as-is.
- (parser_read_escape): UTF-8 stuff removed.
- (parser_tokadd_escape): has8bit and hasmb removed.
- (parser_tokadd_string): fix 8-bit single byte character with \u.
- (parser_parse_string): has8bit and hasmb removed.
- (parser_here_document): has8bit and hasmb removed.
- (parser_yylex): call parser_tokadd_utf8 instead of read_escape for
- UTF-8 character.
-
-Wed Dec 2 01:00:07 2007 James Edward Gray II <jeg2@ruby-lang.org>
-
- * lib/xmlrpc/server.rb (XMLRPC::Server#server): Improve signal handling so
- pressing control-c in the controlling terminal or sending SIGTERM stops
- the XML-RPC server.
-
-Sat Dec 1 23:04:42 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * encoding.c: rename primary_encoding -> default_external (encoding).
-
-Sat Dec 1 19:52:57 2007 Tadayoshi Funaba <tadf@dotrb.org>
-
- * lib/date.rb (Time#to_datetime): use nsec instead of usec.
-
- * lib/date.rb (DateTime#to_time): second minute as an argument to
- Time::utc contains fractional part in rational; hence Time
- object may keep resolution at most nanosecond.
-
-Sat Dec 1 14:36:05 2007 Koichi Sasada <ko1@atdot.net>
-
- * bootstraptest/test_knownbug.rb: move fixed bugs.
-
- * test/ruby/test_sprintf.rb: ditto.
-
- * test/yaml/test_yaml.rb: ditto.
-
-Sat Dec 1 13:24:47 2007 Koichi Sasada <ko1@atdot.net>
-
- * insnhelper.ci (vm_yield_with_cfunc): fix to passing argc on third
- parameter of IFUNC. [ruby-dev:32329]
-
- * enumerator.c: fix to pass exact number of argument.
-
- * eval.c (rb_yield_values2): added.
-
- * include/ruby/ruby.h: ditto.
-
- * bootstraptest/test_knownbug.rb: move a fixed test.
-
- * bootstraptest/test_block.rb: ditto.
-
-Sat Dec 1 10:45:56 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * io.c (rb_f_open): use to_open for every non-string object. path
- object may use method_missing.
-
-Sat Dec 1 09:44:32 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * insns.def (concatarray, splatarray): use to_a instead of
- to_splat.
-
- * insnhelper.ci (caller_setup_args): ditto.
-
-Sat Dec 1 03:34:32 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * parse.y (newline_node): always remove NODE_BEGIN.
-
-Fri Nov 30 23:48:07 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * signal.c (ruby_signal): use SA_SIGINFO if available.
- [ ruby-Patches-6418 ]
-
-Fri Nov 30 22:52:54 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * signal.c (trap_signm): SIGVTALRM no longer used for green
- thread. [ruby-talk:281318]
-
- * signal.c (ruby_sig_finalize): do not install SIG_DFL handler if
- previous handler is sighandler().
-
-Fri Nov 30 21:02:15 2007 NARUSE, Yui <naruse@ruby-lang.org>
-
- * lib/json.rb, lib/json/add/{core.rb, rails.rb},
- test/json/test_json_rails.rb: additional files of JSON 1.1.2.
- [ruby-dev:32405]
-
-Fri Nov 30 19:33:38 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * ext/syck/rubyext.c (rb_syck_mktime): avoid segmentation fault.
- [ruby-core:13735]
-
-Fri Nov 30 19:05:55 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * enum.c (enum_count): precise argument number check.
-
- * enum.c (enum_count): return Enumerator if no block given.
-
-Fri Nov 30 16:42:50 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * enum.c (enum_take_while): returns Enumerator if no block given.
-
- * enum.c (enum_drop_while): ditto.
-
-Thu Nov 29 16:59:10 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * parse.y (stmt): remove unnecessary NODE_BEGIN. [ruby-core:13814]
-
-Thu Nov 29 06:45:48 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * hash.c (rb_hash_eql): recursive comparison should be based on
- eql? [ruby-core:13803]
-
-Wed Nov 28 18:08:00 2007 NARUSE, Yui <naruse@ruby-lang.org>
-
- * ext/json, lib/json, test/json: Update to JSON 1.1.2.
- (RubyForge#15447)
-
- * math.c: fix typo.
-
-Wed Nov 28 16:29:35 2007 Koichi Sasada <ko1@atdot.net>
-
- * insnhelper.ci (vm_invoke_block): should splat args.
- [ruby-dev:32392]
-
- * test/ruby/test_yield.rb: add tests for above.
-
-Wed Nov 28 14:43:14 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/extmk.rb (extract_makefile): use dldflags instead of DLDFLAGS to
- get rid of mixing $LDFLAGS and $ARCH_FLAG.
-
- * lib/mkmf.rb (configuration): ditto.
-
- * lib/mkmf.rb (create_makefile): support for extensions which has no
- shared object.
-
-Wed Nov 28 02:42:10 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * bignum.c (big2str_find_n1): removed extraneous element.
- [ruby-dev:32351], [ruby-dev:32365]
-
- * bignum.c (big2str_find_n1): returns necessary digits now.
-
- * sprintf.c (remove_sign_bits): extends sign bit first.
-
-Tue Nov 27 15:53:43 2007 Koichi Sasada <ko1@atdot.net>
-
- * compile.c (iseq_compile_each): "when *[],1" dumps core.
- a patch from Yusuke ENDOH <mame AT tsg.ne.jp>. [ruby-dev:32350]
-
- * bootstraptest/test_syntax.rb: add a test for above.
-
-Tue Nov 27 15:40:05 2007 Koichi Sasada <ko1@atdot.net>
-
- * compile.c (iseq_compile_each): "a[*b] += 1" dumps core.
- a patch from Yusuke ENDOH <mame AT tsg.ne.jp>. [ruby-dev:32354]
-
- * bootstraptest/test_syntax.rb: add a test for above.
-
-Tue Nov 27 12:47:23 2007 Koichi Sasada <ko1@atdot.net>
-
- * compile.c, insns.def: change return value of "defined?"
- for $&, $1, ... . If such variables are defined,
- return "global-variable".
-
- * test/ruby/test_defined.rb: add tests.
-
- * bootstraptest/test_syntax.rb: fix a test.
-
-Tue Nov 27 11:54:46 2007 Koichi Sasada <ko1@atdot.net>
-
- * insns.def: fix typo.
-
-Tue Nov 27 11:23:20 2007 Koichi Sasada <ko1@atdot.net>
-
- * test_beginendblock.rb: add loop to wait signal.
- [ruby-dev:32332]
-
-Tue Nov 27 11:14:57 2007 Tanaka Akira <akr@fsij.org>
-
- * include/ruby/encoding.h, encoding.c, re.c, string.c, parse.y:
- rename ENC_CODERANGE_SINGLE to ENC_CODERANGE_7BIT.
- rename ENC_CODERANGE_MULTI to ENC_CODERANGE_8BIT.
- Because single byte 8bit character, such as Shift_JIS 1byte katakana,
- is represented by ENC_CODERANGE_MULTI even if it is not multi byte.
-
-Tue Nov 27 10:45:45 2007 Koichi Sasada <ko1@atdot.net>
-
- * eval.c (rb_method_missing): fix stack trace.
-
- * bootstraptest/test_knownbug.rb: move solved tests.
-
- * bootstraptest/test_method.rb, test/ruby/test_regexp.rb: ditto.
-
-Tue Nov 27 09:57:42 2007 Koichi Sasada <ko1@atdot.net>
-
- * insns.def, compile.c: fix to allow dsym for alias/undef.
- [ruby-dev:32355]
-
- * bootstraptest/test_method.rb: add tests for above.
-
-Mon Nov 26 23:18:46 2007 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
-
- * lib/drb/extserv.rb (initialize, stop_service): synchronize with
- ExtServManager.
-
- * test/drb/test_drb.rb (TestDRbEval): ignored.
-
-Mon Nov 26 17:32:16 2007 Tanaka Akira <akr@fsij.org>
-
- * re.c (Init_Regexp): new method Regexp#fixed_encoding?
- [ruby-dev:32361]
-
-Mon Nov 26 13:28:14 2007 Keiju Ishitsuka <keiju@ruby-lang.org>
-
- * lib/complex.rb: be able to create Complex(0, -0.0). [ruby-list:44268]
-
-Mon Nov 26 11:24:04 2007 Tanaka Akira <akr@fsij.org>
-
- * re.c (rb_reg_fixed_encoding_p): extracted from rb_reg_prepare_re and
- rb_reg_s_union.
- (rb_reg_s_union): refactored.
-
-Mon Nov 26 10:44:20 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * io.c (rb_read_internal, rb_sysopen_internal): remove C99 dependency.
-
-Sun Nov 25 22:21:35 2007 Tanaka Akira <akr@fsij.org>
-
- * include/ruby/encoding.h (rb_enc_str_asciionly_p): declared.
- (rb_enc_str_asciicompat_p): defined.
-
- * re.c (rb_reg_initialize_str): use rb_enc_str_asciionly_p.
- (rb_reg_quote): return ascii-8bit string if the argument is
- ascii-only to generate encoding generic regexp if possible.
- (rb_reg_s_union): fix encoding handling. [ruby-dev:32094]
-
- * string.c (rb_enc_str_asciionly_p): defined.
-
-Sun Nov 25 12:12:03 2007 Eric Hodel <drbrain@segment7.net>
-
- * gem_prelude.rb: Import fast-loading gem_prelude.rb from RubyGems.
-
- * lib/rubygems*: Import RubyGems r1516.
-
-Sat Nov 24 23:25:52 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * test/ruby/test_eval.rb (TestEval::test_instance_eval_cvar):
- updated not to modify class variable of Object class.
-
-Fri Nov 23 17:34:24 2007 Koichi Sasada <ko1@atdot.net>
-
- * io.c: add rb_read_internal() as blocking function.
-
-Fri Nov 23 17:33:39 2007 Koichi Sasada <ko1@atdot.net>
+ * thread.c (rb_thread_schedule_rec): fix {UN,}LIKELY macro misuse.
+ * gc.c (rb_newobj): ditto.
+ * vm_insnhelper.c (vm_method_search): ditto.
- * vm.c: fix comment.
+Thu Jun 16 20:06:15 2011 Shota Fukumori <sorah@tubusu.net>
-Fri Nov 23 17:26:11 2007 Koichi Sasada <ko1@atdot.net>
+ * test/testunit/test_parallel.rb: Fix Regexp for test.
- * bootstraptest/test_knownbug.rb: move solved tests.
+ * test/testunit/tests_for_parallel/test_third.rb: Use
+ Test::Unit::TestCase#on_parallel_worker? for detecting worker.
- * bootstraptest/test_io.rb, test_marshal.rb, test_objectspace.rb:
+ * lib/test/unit/testcase.rb(Test::Unit::TestCase#on_parallel_worker?):
+ New Method Test::Unit::TestCase#on_parallel_worker? returns true
+ when a testcase is running on parallel worker.
+ * lib/test/unit/parallel.rb(Test::Unit::TestCase#on_parallel_worker?):
ditto.
- * test/ruby/test_integer.rb, test_regexp.rb: ditto.
-
-Fri Nov 23 15:59:04 2007 Tanaka Akira <akr@fsij.org>
-
- * struct.c (rb_struct_alloc_noinit): new function.
- (rb_struct_define_without_accessor): add allocator to the arguments.
-
- * range.c (range_alloc): re-introduced using rb_struct_alloc_noinit.
-
-Fri Nov 23 15:27:43 2007 Tanaka Akira <akr@fsij.org>
-
- * re.c (REG_CASESTATE): unused macro removed.
- (rb_reg_prepare_re): check encoding difference.
- (rb_reg_initialize): check 8bit byte.
-
- * parse.y (parser_tokadd_escape): fix has8bit.
-
- [ruby-dev:32113]
-
-Fri Nov 23 15:16:48 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * variable.c (rb_f_global_variables): variable names should not
- duplicate. [ruby-dev:32344]
-
-Fri Nov 23 13:34:08 2007 Tanaka Akira <akr@fsij.org>
-
- * struct.c (rb_struct_define_without_accessor): new function.
-
- * range.c (range_alloc): removed.
- (Init_Range): use rb_struct_define_without_accessor.
-
- based on [ruby-dev:32327].
-
-Fri Nov 23 11:01:54 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * re.c (match_begin): should return offset by character.
- [ruby-dev:32331]
-
- * re.c (match_end): ditto.
-
- * re.c (rb_reg_search): ditto.
-
-Fri Nov 23 10:44:24 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * compile.c (defined_expr): defined(method(x)) dumped core. a
- patch from Yusuke ENDOH <mame AT tsg.ne.jp>. [ruby-dev:32335]
-
-Wed Nov 21 18:03:49 2007 Koichi Sasada <ko1@atdot.net>
-
- * vm.c: fix to recycle thread data (VM stack).
-
- * thread.c: ditto.
-
- * benchmark/bm_vm3_thread_create_join.rb: add loop count.
-
-Wed Nov 21 18:02:10 2007 Koichi Sasada <ko1@atdot.net>
-
- * benchmark/driver.rb: add path to trunk/lib if driver runner is
- in build directory.
-
-Wed Nov 21 16:39:21 2007 Tanaka Akira <akr@fsij.org>
-
- * test/fileutils/fileasserts.rb (assert_equal_timestamp): new assert
- to test tv_sec only for filestamp resolution portability.
- (assert_same_entry): use assert_same_entry for mtime comparison.
-
-Wed Nov 21 14:55:13 2007 Koichi Sasada <ko1@atdot.net>
-
- * array.c (rb_ary_permutation): add gc guard codes.
-
-Wed Nov 21 11:16:37 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * insnhelper.ci (vm_search_normal_superclass): rename function.
-
- * insnhelper.ci (vm_search_superclass): ditto.
-
- * proc.c (struct METHOD): rename rklass -> rclass.
-
-Wed Nov 21 03:12:50 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * process.c (rb_f_system): returns nil on execution failure.
- [ruby-core:13715]
-
-Wed Nov 21 01:04:12 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * object.c (nil_plus): remove unused function. [ruby-core:13737]
-
-Tue Nov 20 21:46:46 2007 Tanaka Akira <akr@fsij.org>
-
- * time.c (time_mload): ignore invalid digits in submicro.
-
-Tue Nov 20 20:33:32 2007 Koichi Sasada <ko1@atdot.net>
-
- * include/ruby/ruby.h: rename RFloat#double_value -> float_value.
-
- * numeric.c, parse.y: ditto.
-
-Tue Nov 20 19:36:21 2007 Koichi Sasada <ko1@atdot.net>
-
- * gc.h, vm_core.h: decl of rb_gc_save_machine_context()
- should be at vm_core.h.
-
- * include/ruby/ruby.h, intern.h: remove type rb_thread_t.
-
- * include/ruby/intern.h: change rb_unblock_function_t,
- rb_unblock_function_t.
-
- * file.c, process.c: apply above changes.
-
- * thread.c, thread_pthread.ci, thread_win32.ci: ditto.
-
- * io.c: support blocking open (2). [ruby-core:13614]
-
-Tue Nov 20 17:10:11 2007 Tanaka Akira <akr@fsij.org>
-
- * io.c (rb_io_close_on_exec_p): new method IO#close_on_exec?.
- (rb_io_set_close_on_exec): new method IO#close_on_exec=.
- [ruby-dev:32323]
-
-Tue Nov 20 16:24:31 2007 Tanaka Akira <akr@fsij.org>
-
- * gc.c (gc_mark_children): obj->as.file.fptr may be 0 for T_FILE.
-
-Tue Nov 20 15:09:00 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * parse.y (parser_read_escape): has8bit flag may be set with control
- escape. [ruby-core:13722]
-
- * parse.y (parser_prepare): set begging after BOM if exists.
- [ruby-core:13718]
-
-Tue Nov 20 14:55:37 2007 Eric Hodel <drbrain@segment7.net>
-
- * lib/rubygems*: Update to RubyGems 0.9.5.
-
-Tue Nov 20 13:00:44 2007 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * include/ruby/win32.h win32/win32.c (rb_w32_pipe_exec): use dual fd
- instead of socketpair when mode is RDWR.
-
- * io.c (pipe_open): pass &write_fd to rb_w32_pipe_exec().
-
- * io.c (popen_redirect): define only when HAVE_FORK.
-
-Tue Nov 20 12:12:04 2007 Tanaka Akira <akr@fsij.org>
-
- * include/ruby/io.h (rb_io_t): add tied_io_for_writing member.
-
- * io.c: use tied_io_for_writing for duplex popen.
-
- * gc.c: mark tied_io_for_writing.
-
- * common.mk: gc.o depends io.h.
-
- [ruby-dev:32205]
-
-Tue Nov 20 11:59:33 2007 Tanaka Akira <akr@fsij.org>
-
- * test/drb/test_drb.rb: rename TestRubyYield to TestDRbRubyYield to
- avoid name crash with test/ruby/test_yield.rb.
- TestRuby18Yield is renamed to TestDRbRuby18Yield too.
-
-Tue Nov 20 03:24:42 2007 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
-
- * lib/drb/extservm.rb: merged from ruby_1_8 branch.
-
- * lib/drb/acl.rb: ditto.
-
- * lib/drb/ssl.rb: ditto.
-
- * lib/drb/unix.rb: ditto.
-
- * lib/drb/drb.rb: ditto.
-
- * lib/drb/observer.rb: ditto.
-
- * lib/drb/invokemethod.rb: ditto.
-
- * test/drb/test_drbssl.rb: ditto.
-
- * test/drb/test_drb.rb: ditto.
-
- * test/drb/drbtest.rb: ditto.
-
- * test/drb/test_drbunix.rb: ditto.
-
-Tue Nov 20 00:52:46 2007 Tanaka Akira <akr@fsij.org>
-
- * test/fileutils/fileasserts.rb (assert_equal_time): show nsec if
- assertion fails but time.to_s equals.
- (assert_same_entry): use assert_equal_time.
-
- * test/fileutils/test_fileutils.rb (test_install): use
- assert_equal_time.
-
-Mon Nov 19 18:46:49 2007 Tanaka Akira <akr@fsij.org>
-
- * file.c (utime_internal): fallback utimensat to utimes.
-
-Mon Nov 19 17:51:27 2007 Tanaka Akira <akr@fsij.org>
-
- * configure.in: check struct timespec, clock_gettime, utimensat,
- struct stat.st_atim,
- struct stat.st_atimespec,
- struct stat.st_atimensec,
- struct stat.st_mtim,
- struct stat.st_mtimespec,
- struct stat.st_mtimensec,
- struct stat.st_ctim,
- struct stat.st_ctimespec,
- struct stat.st_ctimensec.
-
- * include/ruby/missing.h: provide struct timespec if not available.
-
- * time.c: support nanosecond-resolution using struct timespec.
- (time_nsec): new method: Time#nsec and Time#tv_nsec.
-
- * include/ruby/intern.h: provide rb_time_nano_new.
-
- * file.c (utime_internal): use utimensat if available.
- (rb_file_s_utime): refactored.
- (rb_f_test): use stat_atime, stat_mtime, stat_ctime.
- (rb_stat_cmp): check tv_nsec.
- (stat_atimespec): new function.
- (stat_atime): ditto.
- (stat_mtimespec): ditto.
- (stat_mtime): ditto.
- (stat_ctimespec): ditto.
- (stat_ctime): ditto.
- (rb_stat_atime): use stat_atime.
- (rb_file_s_atime): ditto.
- (rb_file_atime): ditto.
- (rb_stat_mtime): use stat_mtime.
- (rb_file_s_mtime): ditto.
- (rb_file_mtime): ditto.
- (rb_file_ctime): use stat_ctime.
- (rb_file_s_ctime): ditto.
- (rb_stat_ctime): ditto.
-
- * variable.c (rb_copy_generic_ivar): clear clone's instance variables
- if obj has no instance variable.
-
- * marshal.c (w_object): dump instance variables of generated string
- for TYPE_USERDEF, even if original object has instance variables.
-
- * lib/time.rb (Time#xmlschema): use nsec instead of usec.
-
- [ruby-dev:32306]
-
-Mon Nov 19 17:48:30 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * object.c (rb_class_superclass): should not raise exception for
- BasicObject. [ruby-Bugs-15668]
-
-Mon Nov 19 16:04:08 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * array.c (rb_ary_permutation): gives all permutations of elements
- if no argument given. a patch from Yusuke ENDOH <mame AT tsg.ne.jp>.
- [ruby-dev:32309]
-
-Mon Nov 19 02:44:07 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * compile.c (iseq_compile_each): alias and undef accept dsyms as well
- as literals. [ruby-dev:32308]
-
-Mon Nov 19 02:31:36 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * eval_method.ci (rb_add_method): no redefinition warning for undef.
-
-Mon Nov 19 01:53:11 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * parse.y (parser_read_escape): disallow control and meta modifiers
- for non-ASCII characters. [ruby-core:13685]
-
-Sun Nov 18 20:47:41 2007 Tanaka Akira <akr@fsij.org>
-
- * marshal.c (mark_dump_arg): it may be called after dump_ensure.
-
-Sun Nov 18 18:27:47 2007 Tanaka Akira <akr@fsij.org>
-
- * time.c (time_minus): fix Time.at(2**60+1) - Time.at(2**60).
-
-Sun Nov 18 17:28:49 2007 Tanaka Akira <akr@fsij.org>
-
- * time.c (time_arg): show actual year in 2-3 digits year warning.
- (time_mdump): show actual year in "year too big to marshal" error.
-
-Sun Nov 18 14:03:44 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * eval_method.ci (rb_alias): do not call hook functions until
- initialization finishes. [ruby-talk:279538]
-
-Sun Nov 18 09:09:48 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/mkmf.rb (String#tr_cpp): make preprocessor identifiers.
-
-Sun Nov 18 05:19:46 2007 Tanaka Akira <akr@fsij.org>
-
- * lib/mkmf.rb (have_struct_member): define HAVE_type_member.
-
-Sat Nov 17 23:51:29 2007 Masaki Suketa <masaki.suketa@nifty.ne.jp>
-
- * ext/win32ole/win32ole.c (ole_invoke): bug fix. [ruby-talk:279100]
-
-Sat Nov 17 23:21:15 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * parse.y (parser_yylex): should clear parser->tokp as well.
- [ruby-dev:32250]
-
- * parse.y: remove NEED_ASSOC that break test_parser_events.
+Thu Jun 16 19:27:12 2011 Hiroshi Nakamura <nahi@ruby-lang.org>
- * parse.y (parser_yylex): should not decrement line numbers at the
- end of file.
+ * test/test_securerandom.rb: Add testcase. This testcase does NOT aim
+ to test cryptographically strongness and randomness. It includes
+ the test for PID recycle issue of OpenSSL described in #4579 but
+ it's disabled by default.
- * file.c (rb_find_file_ext): search .rb files first through in the
- loadpath.
+Thu Jun 16 17:55:07 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
-Fri Nov 16 23:31:18 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * test/ruby/test_io.rb (TestIO#test_copy_stream_socket): fix
+ test hanging up issue. Patch by CHIKANAGA Tomoyuki.
- * bignum.c (rb_big_odd_p): new method added. a patch from Tadashi
- Saito <shiba AT mail2.accsnet.ne.jp>. [ruby-dev:32305]
+Thu Jun 16 15:17:39 2011 Eric Hodel <drbrain@segment7.net>
- * bignum.c (rb_big_even_p): ditto.
+ * variable.c (const_missing): Add simple example of const_missing.
+ Patch by Anuj Dutta. [Ruby 1.9 - Bug #4794]
-Fri Nov 16 17:41:34 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Thu Jun 16 15:09:29 2011 Eric Hodel <drbrain@segment7.net>
- * ext/iconv/iconv.c (Document-class): moved the simplest example to
- the top.
+ * lib/monitor.rb: Improve documentation. Patch by Sandor Szucs.
+ [Ruby 1.9 - Bug #4823]
- * ext/iconv/iconv.c (iconv_s_iconv): Document-method: needs class
- prefix for class method. [ruby-core:13542]
+Thu Jun 16 14:54:09 2011 Eric Hodel <drbrain@segment7.net>
- * ext/iconv/iconv.c (iconv_iconv): also instance method needs to be
- qualified.
+ * lib/webrick/utils.rb: Document WEBrick::Utils. Patch by Olivier
+ Brisse. [Ruby 1.9 - Bug #4819]
-Fri Nov 16 16:26:57 2007 Shugo Maeda <shugo@ruby-lang.org>
+Thu Jun 16 14:26:46 2011 Eric Hodel <drbrain@segment7.net>
- * include/ruby/ruby.h: added some declarations for event hooks.
+ * lib/webrick/httpservlet/erbhandler.rb: Allow the ERB document to
+ alter the content-type of the response. [Ruby 1.9 - Bug #4685]
- * lib/profile.rb: set VM::InstructionSequence.compile_option.
+Thu Jun 16 14:15:47 2011 Eric Hodel <drbrain@segment7.net>
-Fri Nov 16 11:16:41 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * lib/timeout.rb: Clarify timeout duration types. Patch by Alf Mikula.
+ [Ruby 1.9 - Bug #4791]
+ * lib/net/http.rb: ditto
- * lib/yaml/rubytypes.rb (String#is_binary_data?): use Integer#fdiv.
+Thu Jun 16 13:25:25 2011 Eric Hodel <drbrain@segment7.net>
-Fri Nov 16 03:36:01 2007 why the lucky stiff <why@ruby-lang.org>
+ * lib/rdoc*: Import RDoc 3.7 release candidate
- * ext/syck/rubyext.c: Node#value defined twice.
+Thu Jun 16 11:35:09 2011 Shugo Maeda <shugo@ruby-lang.org>
- * lib/yaml/: several method redefinitions causing warnings.
+ * lib/net/imap.rb (search_response): parses SEARCH responses from
+ the Yahoo IMAP server correctly. patched by Mark Nadig. [Bug #4509]
-Fri Nov 16 03:01:00 2007 why the lucky stiff <why@ruby-lang.org>
+Thu Jun 16 09:12:38 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * lib/yaml/types.rb: Likewise, pass self to YAML::quick_emit.
+ * fix for build on solaris 10.
-Fri Nov 16 02:51:59 2007 why the lucky stiff <why@ruby-lang.org>
+Thu Jun 16 09:08:39 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * lib/yaml.rb (quick_emit): use combination of object_id and hash to
- identify repeated object references, since GC will reuse memory of
- objects during output of YAML. [ruby-Bugs-8548] [ruby-Bugs-3698]
+ * test/io/console/test_io_console.rb (TestIO_Console#test_sync):
+ fix for daemon process.
-Thu Nov 15 19:49:03 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+Thu Jun 16 07:58:01 2011 Shota Fukumori <sorah@tubusu.net>
- * ext/curses/extconf.rb: check macro if cannot find func.
- [ruby-list:44224]
+ * test/testunit/test_parallel.rb(test_ignore_tzero): Test for r32109.
-Thu Nov 15 18:04:06 2007 Tanaka Akira <akr@fsij.org>
+ * test/testunit/tests_for_parallel/test_third.rb: Use another way to
+ detect that test is running on worker. This fixes sometimes
+ TestParallel failing.
- * tool/compile_prelude.rb: fix TMP_RUBY_PREFIX for relative load path
- environment.
+Thu Jun 16 07:20:06 2011 Shota Fukumori <sorah@tubusu.net>
-Thu Nov 15 17:28:21 2007 Tanaka Akira <akr@fsij.org>
+ * lib/test/unit.rb(Test::Unit::Runner#_run_parallel): Ignore -j0
+ because it makes blocking forever by IO.select.
- * tool/compile_prelude.rb: absolute path may not start with a slash.
- pointed by usa.
+Thu Jun 16 03:08:11 2011 NAKAMURA Usaku <usa@ruby-lang.org>
-Thu Nov 15 17:07:54 2007 Tanaka Akira <akr@fsij.org>
+ * test/testunit/test_parallel.rb (TestParallel::TestParallelWorker#
+ setup): now can run on Windows, probably.
- * tool/compile_prelude.rb: fix first substitution.
- use constant for prefix.
- pointed by Richard Kilmer.
-
-Thu Nov 15 14:29:56 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * common.mk (prereq): added auto generated sources. [ruby-dev:32280]
-
-Thu Nov 15 12:31:13 2007 Tanaka Akira <akr@fsij.org>
-
- * tool/compile_prelude.rb: use constant for prefix.
-
-Thu Nov 15 12:24:39 2007 Tanaka Akira <akr@fsij.org>
-
- * tool/compile_prelude.rb: use simple template system for source
- code generation.
-
-Thu Nov 15 12:19:14 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/cgi/session.rb (CGI::Session::FileStore::restore): use
- lockfile for exclusive locks. a patch from <tommy AT tmtm.org>.
- [ruby-dev:32296]
-
-Thu Nov 15 12:14:53 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * tool/compile_prelude.rb (c_esc): need to escape closing brace.
-
-Thu Nov 15 11:52:16 2007 Tanaka Akira <akr@fsij.org>
-
- * tool/compile_prelude.rb: adjust RbConfig::CONFIG paths relative
- to the installation path.
-
-Thu Nov 15 11:25:20 2007 Tanaka Akira <akr@fsij.org>
-
- * ruby.c (usage): fix typo on --disable-gems option.
- pointed by Richard Kilmer.
-
-Wed Nov 14 16:16:17 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * test/net/http/test_https_proxy.rb
- (HTTPSProxyTest::test_https_proxy_authentication): initialize
- local variable 't' first. [ruby-dev:32253]
-
-Wed Nov 14 15:39:24 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * test/socket/test_socket.rb: update not to use 1.8 assignment to
- external local variable in the block parameters. [ruby-dev:32251]
-
- * test/strscan/test_stringscanner.rb: avoid $KCODE, and use
- String#force_encoding(). [ruby-dev:32251]
-
-Wed Nov 14 14:04:42 2007 Tanaka Akira <akr@fsij.org>
-
- * common.mk, Makefile.in: rename prelude.c to miniprelude.c.
- rename ext_prelude.c to prelude.c
-
- * win32/Makefile.sub: ditto.
-
- * bcc32/Makefile.sub: ditto.
-
-Wed Nov 14 07:09:48 2007 Koichi Sasada <ko1@atdot.net>
-
- * blockinlining.c, compile.c, compile.h, debug.c, debug.h,
- id.c, insnhelper.h, insns.def, thread.c, thread_pthread.ci,
- thread_pthread.h, thread_win32.ci, thread_win32.h, vm.h,
- vm_dump.c, vm_evalbody.ci, vm_opts.h: fix comments and
- copyright year.
-
-Wed Nov 14 07:07:51 2007 Koichi Sasada <ko1@atdot.net>
-
- * tool/makedocs.rb, template/insnstbl.html: removed.
-
-Wed Nov 14 02:50:43 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * common.mk (parse.c): dependency also needs vpath.
-
- * common.mk (node_name.inc, prelude.c): VPATH in nmake does not
- work for targets of explicit rules.
-
-Wed Nov 14 02:11:38 2007 Tanaka Akira <akr@fsij.org>
-
- * missing/isinf.c (isinf): don't define if the macro is defined.
-
- * configure.in: no need to set ac_cv_func_isinf=yes on non-gcc
- solaris.
-
-Wed Nov 14 01:34:42 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * numeric.c (round): fallback definition.
-
- * numeric.c (flo_divmod, flo_round): use round() always.
- [ruby-dev:32269]
-
-Wed Nov 14 00:33:49 2007 Koichi Sasada <ko1@atdot.net>
-
- * include/ruby/ruby.h: introduce 2 macros:
- RFLOAT_VALUE(v), DOUBLE2NUM(dbl).
- Rename RFloat#value -> RFloat#double_value.
- Do not touch RFloat#double_value directly.
-
- * bignum.c, insns.def, marshal.c, math.c, numeric.c, object.c,
- pack.c, parse.y, process.c, random.c, sprintf.c, string.c,
- time.c: apply above changes.
-
- * ext/dl/mkcallback.rb, ext/json/ext/generator/generator.c:
+ * test/testunit/test_parallel.rb (TestParallel::TestParallel#setup):
ditto.
-Wed Nov 14 00:15:37 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * tool/ytab.sed: get rid of GNU sed feature. a patch from Laurent
- Sansonetti <laurent.sansonetti AT gmail.com> in [ruby-core:13470].
-
-Tue Nov 13 21:41:39 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * common.mk (parse.c), ext/ripper/depend (ripper.c): process after
- bison with sed. [ruby-dev:32204]
-
- * ruby.c (proc_options): use yydebug in cmdline_options.
-
- * ruby.c (process_options): set yydebug flag of parser.
-
- * parse.y (yydebug): moved into struct parser_params.
-
- * parse.y (rb_parser_get_yydebug, rb_parser_set_yydebug): parser
- generic methods.
-
- * */Makefile.sub (parse.c): moved to common.mk.
-
- * tool/ytab.sed: comment out yydebug definition, and substitute
- yyerror with parser_yyerror.
-
-Tue Nov 13 16:33:07 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * numeric.c (flodivmod): work around for infinity.
-
- * numeric.c (flo_divmod): work around for platforms have no round().
- [ruby-dev:32247]
-
-Tue Nov 13 15:26:33 2007 Tanaka Akira <akr@fsij.org>
-
- * lex.c.blt: moved from lex.c.
-
- * lex.c.src: copied from keywords. This is the source of lex.c.blt.
-
- * Makefile.in (lex.c): use lex.c.blt if keywords is same as lex.c.src.
-
- * win32/Makefile.sub (lex.c): re-introduce copy rule.
-
- * bcc32/Makefile.sub (lex.c): ditto.
-
- * wince/Makefile.sub (lex.c): ditto.
-
-Tue Nov 13 15:21:52 2007 Koichi Sasada <ko1@atdot.net>
-
- * compile.c (iseq_specialized_instruction): check argc.
-
-Tue Nov 13 14:44:32 2007 why the lucky stiff <why@ruby-lang.org>
-
- * test/yaml/test_yaml.rb: fixed the failing YAML Struct test
- at ko1's request.
-
-Tue Nov 13 02:57:04 2007 URABE Shyouhei <shyouhei@ice.uec.ac.jp>
-
- * numeric.c (flo_divmod): round to the nearest integer.
- [ ruby-Bugs-14540 ]
-
-Tue Nov 13 00:36:16 2007 Shugo Maeda <shugo@ruby-lang.org>
-
- * test/ruby/test_settracefunc.rb: fixed tests for set_trace_func.
-
-Mon Nov 12 19:47:29 2007 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * thread.c (call_trace_proc): should return value.
-
-Mon Nov 12 19:45:18 2007 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * {bcc,win}32/Makefile.sub (miniruby): use $(COMMONOBJS) and $(DMYEXT)
- instead of $(LIBRUBY_A).
-
-Mon Nov 12 18:32:53 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * {bcc,win}32/Makefile.sub (MINIOBJS): added prelude.$(OBJEXT).
-
-Mon Nov 12 17:13:23 2007 Tanaka Akira <akr@fsij.org>
-
- * Makefile.in, common.mk: add prelude.o to MINIOBJS.
-
-Mon Nov 12 16:52:29 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/mkmf.rb (create_makefile): rdoc about srcprefix. a patch from
- Daniel Berger <djberg96 AT gmail.com> in [ruby-core:13378].
-
-Mon Nov 12 16:48:09 2007 Tanaka Akira <akr@fsij.org>
-
- * Makefile.in, common.mk: add ext_prelude.o to OBJS.
-
-Mon Nov 12 13:57:39 2007 Tanaka Akira <akr@fsij.org>
-
- * configure.in (MINIDLNOBJS): removed.
- (MINIOBJS): set to dln.o if dmydln.o is not used.
-
- * Makefile.in (miniruby): use MINIOBJS instead of MINIDLNOBJS.
-
-Mon Nov 12 13:53:06 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * misc/ruby-mode.el (ruby-parse-partial): handle stringified
- symbols properly using ruby-forward-string.
-
-Mon Nov 12 12:17:59 2007 Tanaka Akira <akr@fsij.org>
-
- * configure.in (MINIDLNOBJS): defined.
-
- * Makefile.in (miniruby): use MINIDLNOBJS and COMMONOBJS instead of
- MINIOBJS and OBJS to avoid linking both dmydln.o and dln.o.
-
-Sun Nov 11 20:32:45 2007 Tanaka Akira <akr@fsij.org>
-
- * {win32,wince,bcc32}/Makefile.sub: delete lex.c rule.
-
-Sun Nov 11 19:40:52 2007 Tanaka Akira <akr@fsij.org>
-
- * Makefile.in (lex.c): simplified.
-
-Sun Nov 11 18:31:48 2007 Tanaka Akira <akr@fsij.org>
-
- * Makefile.in (lex.c): touch lex.c if gperf failed but lex.c exists.
- Although this may cause non-updated lex.c,
- svn co may generate keywords newer than lex.c especially on
- a file system which can record fractional mtime such as XFS.
-
-Sun Nov 11 17:32:46 2007 Shugo Maeda <shugo@ruby-lang.org>
-
- * insnhelper.ci (vm_call_method): pass mn->nd_clss to
- vm_call_cfunc() instead of klass.
-
- * vm.c (rb_thread_method_id_and_klass): traverse parent_iseq.
-
- * thread.c (call_trace_proc): use rb_thread_method_id_and_klass().
-
-Sun Nov 11 16:54:25 2007 Tanaka Akira <akr@fsij.org>
-
- * lex.c: renamed from lex.c.blt.
-
- * Makefile.in (lex.c): use find command to check mtime.
-
-Sun Nov 11 05:34:13 2007 Eric Hodel <drbrain@segment7.net>
-
- * bin/gem: Add forgotten gem command.
-
-Sat Nov 10 23:50:31 2007 Tanaka Akira <akr@fsij.org>
-
- * string.c (tr_trans): cast to unsigned char after dereference
- a pointer to a char to avoid SEGV with "\377".tr("a", "b").
- on FreeBSD/amd64.
-
-Sat Nov 10 23:08:53 2007 Tanaka Akira <akr@fsij.org>
-
- * configure.in, common.mk, Makefile.in: don't generate
- libminiruby-static.a.
-
-Sat Nov 10 19:46:54 2007 Tanaka Akira <akr@fsij.org>
-
- * configure.in, common.mk, Makefile.in: generate libminiruby-static.a
- which contains prelude.o for miniruby.
-
-Sat Nov 10 18:10:07 2007 Tanaka Akira <akr@fsij.org>
-
- * gem_prelude.rb: new file for gem libraries. currently empty.
-
- * common.mk: generate ext_prelude.c by prelude.rb and gem_prelude.rb.
- ruby (not miniruby) is linked with ext_prelude.o instead of
- prelude.o.
-
- * inits.c (rb_call_inits): don't call Init_prelude.
-
- * ruby.c: support --disable-gems option.
- (ruby_init_gems): new function to define Gem::Enable and
- invoke Init_prelude.
- (process_options): call ruby_init_gems just after
- ruby_init_loadpath.
-
- * tool/compile_prelude.rb: support multiple files.
-
-Sat Nov 10 17:27:55 2007 Shugo Maeda <shugo@ruby-lang.org>
-
- * thread.c (call_trace_proc): don't call ID2SYM() for ID_ALLOCATOR
- to avoid SEGV.
-
-Sat Nov 10 16:37:07 2007 Eric Hodel <drbrain@segment7.net>
-
- * lib/rubygems: Import RubyGems revision 1493.
-
- * lib/rubygems.rb: ditto.
-
- * lib/ubygems.rb: ditto.
-
- * lib/rbconfig/datadir.rb: ditto.
-
- * test/rubygems: ditto.
-
-Sat Nov 10 16:34:21 2007 Eric Hodel <drbrain@segment7.net>
-
- * lib/soap/property.rb: Don't override Enumerable#inject for 1.9.
-
-Sat Nov 10 14:43:30 2007 David Flanagan <davidflanagan@ruby-lang.org>
-
- * parse.y: use ASCII encoding for string literals that are
- 7-bit clean, fixing regression from my previous patch
-
-Sat Nov 10 13:18:54 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * {bcc32,win32}/Makefile.sub: vendor_ruby support.
-
-Fri Nov 9 23:33:16 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * parse.y (parser_nextc): added single line read forward buffer.
-
- * parse.y (parser_yylex): adjust line number for fluent interface.
-
-Fri Nov 9 22:04:21 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * vm.h (FRAME_MAGIC_MASK_BITS): bits of FRAME_MAGIC_MASK.
-
- * insnhelper.ci (vm_call_cfunc, vm_cfunc_flags): use shift operations.
-
-Fri Nov 9 21:46:28 2007 Koichi Sasada <ko1@atdot.net>
-
- * eval.c (eval): should be volatile value for GC.
-
-Fri Nov 9 17:48:22 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ruby.c (locale_encoding): guesstimate encoding from environment
- variables. [ruby-core:13315]
-
- * ruby.c (process_options): set primary encoding from environment.
-
-Fri Nov 9 16:51:42 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * io.c (rb_io_each_byte): should update rbuf_off and rbuf_len for
- each iteration. [ruby-dev:31659][ruby-dev:32192]
-
- * variable.c (rb_cvar_set): cvar assignment obey same rule to cvar
- reference. [ruby-dev:32192]
-
-Fri Nov 9 15:52:00 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * encoding.c (enc_check_encoding, rb_set_primary_encoding): ENCODING
- is no longer in FL_USERS flags.
-
-Fri Nov 9 15:20:13 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * string.c (rb_str_squeeze_bang): initialize squeezing table if no
- arguments given.
-
-Fri Nov 9 13:57:50 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * enum.c (each_with_index_i): use rb_yield_values() for
- compatibility with Enumerator#with_index(). a patch from Yusuke
- ENDOH <mame AT tsg.ne.jp>. [ruby-dev:32195]
-
-Fri Nov 9 13:45:05 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * test/ruby/test_iterator.rb (TestIterator::IterTest::each):
- #each_pair is now alias to #each. [ruby-dev:32192]
-
- * test/ruby/test_iterator.rb (TestIterator::test_assoc_yield):
- ditto
-
-Fri Nov 9 12:56:36 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * eval_load.c (loaded_feature_path): check with type of given feature.
-
-Fri Nov 9 12:43:02 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * test/ruby/test_basicinstructions.rb: updated for new class
- behavior. [ruby-dev:32192]
-
- * encoding.c (enc_name): Encoding should not rely on ENCODING in
- the FL_USERS flags.
-
- * encoding.c (rb_enc_from_encoding): do not call rb_enc_associate
- for encoding itself.
-
- * encoding.c (enc_register_at): ditto.
-
- * marshal.c (r_ivar): do not set real instance variable for
- encoding data associated.
-
-Fri Nov 9 10:43:55 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * eval.c (send_internal): use self in the previous frame to check for
- protected methods. [ruby-core:13254]
-
- * insnhelper.ci (vm_call_method): send! method has gone.
-
-Fri Nov 9 10:38:13 2007 Koichi Sasada <ko1@atdot.net>
-
- * marshal.c (w_object): should be SPECIAL_CONST_P() instead of
- IMMEDIATE_P().
-
-Fri Nov 9 10:29:21 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * eval.c (rb_invoke_method): check if invoked in function style.
- [ruby-core:13245]
-
- * insnhelper.ci (vm_call_cfunc, vm_cfunc_flags): stores and returns VM
- calling flags.
-
- * vm.c (rb_vm_cfunc_funcall_p): returns if the current method is
- invoked in function style.
-
-Fri Nov 9 10:10:21 2007 Koichi Sasada <ko1@atdot.net>
-
- * cont.c: add rb_context_t#type.
-
-Fri Nov 9 10:05:54 2007 Koichi Sasada <ko1@atdot.net>
-
- * ruby.c (set_arg0): fix breaking environ bugs.
-
-Fri Nov 9 07:26:04 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * random.c: update MT URL.[ruby-core:13305].
-
-Thu Nov 8 17:09:55 2007 David Flanagan <davidflanagan@ruby-lang.org>
-
- * object.c: improve docs for Object.tap
-
- * ChangeLog: fix bogus dates on my previous entries
-
-Thu Nov 8 15:13:56 2007 David Flanagan <davidflanagan@ruby-lang.org>
-
- * parse.y: fix segfault with \x escapes in regexps
- delete unused #if 0 code regions from previous patch
-
-Thu Nov 8 12:12:10 2007 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * parse.y (parser_read_escape): remove C99/gcc-ism.
-
-Thu Nov 8 07:54:22 2007 David Flanagan <davidflanagan@ruby-lang.org>
-
- * parse.y: patch, based on Nobu's, work to support \u escapes
- also modifications for better coderange detection
-
- * test/ruby/test_unicode_escapes.rb: test cases
-
- * test/ruby/test_mixed_unicode_escapes.rb: mixed encoding test cases
-
-Thu Nov 8 07:14:37 2007 David Flanagan <davidflanagan@ruby-lang.org>
-
- * parse.y (rb_intern3): commented out broken code that prevented
- correct interning of multi-byte symbols. Without this patch
- :x==:x is false when x is a multi-byte character.
-
-Thu Nov 8 07:04:31 2007 David Flanagan <davidflanagan@ruby-lang.org>
-
- * string.c (tr_setup_table, tr_trans): fix test failures
- in test/ruby/test_string.rb
-
-Wed Nov 7 15:07:51 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * enum.c (enum_each_with_index): make different arrays at each
- iteration. [ruby-dev:32181]
-
-Wed Nov 7 05:17:24 2007 David Flanagan <davidflanagan@ruby-lang.org>
-
- * eval.c: fix typo in invoke_method documentation
-
-Wed Nov 7 03:52:26 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * array.c (rb_ary_product): core dumped with non array arguments.
- a patch from Yusuke ENDOH <mame AT tsg.ne.jp>. [ruby-dev:32180]
-
-Wed Nov 7 03:32:38 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/rexml/encodings/SHIFT-JIS.rb (REXML::Encoding): place -x for
- nkf conversion. a patch from <moonwolf AT moonwolf.com>.
- [ruby-dev:32183]
-
-Wed Nov 7 02:59:49 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * array.c (rb_ary_each_index): should return meaningful value.
-
-Tue Nov 6 16:37:47 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * eval_load.c (loaded_feature_path): need to expand relative paths.
-
- * eval_load.c (rb_feature_p): check if the feature is loading with
- load path. [ruby-dev:31932]
-
- * eval_load.c (load_lock): check the result of barrier waiting.
-
- * thread.c (rb_barrier_wait): check if owned by the current thread.
-
- * thread.c (rb_barrier_release): ditto.
-
-Mon Nov 5 08:01:22 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * eval.c (Init_eval): move #send to Kernel module from BasicObject.
-
-Mon Nov 5 05:17:04 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/optparse.rb (OptionParser::Switch::summarize): fix for long form
- option with very long argument. a patch from Kobayashi Noritada
- <nori1 AT dolphin.c.u-tokyo.ac.jp> in [ruby-list:44179].
-
-Mon Nov 5 01:20:33 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * parse.y (call_args): remove "parenthesize argument(s) for future
- version" warning. when I added this warning, I had a plan to
- reimplement the parser that is simpler than the current one.
- since we abandoned the plan, warning no longer required.
-
-Mon Nov 5 01:02:56 2007 Minero Aoki <aamine@loveruby.net>
-
- * lib/net/http.rb (HTTPHeader#initialize): provide default
- User-Agent to fix 500 error on some corrupted HTTP servers.
- [ruby-core:13135]
-
-Mon Nov 5 00:32:32 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * eval.c (rb_f_send): allow send/__send__ to call methods of all
- visibility again. we no longer provide __send, __send!.
-
- * eval.c (rb_invoke_method): new method to honor private
- visibility. if it's invoked in a function call style, it calls
- private methods as well (previous 1.9 send behavior).
-
-Mon Nov 5 00:24:24 2007 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * win32/Makefile.sub: vendor_ruby support.
-
- * configure.in (RUBY_LIB): duplicated.
-
-Mon Nov 5 00:01:33 2007 Tanaka Akira <akr@fsij.org>
-
- * re.c (rb_reg_quote): quote \v as well.
-
-Sun Nov 4 23:51:59 2007 Tanaka Akira <akr@fsij.org>
-
- * re.c (rb_reg_initialize_m): use StringValuePtr instead of
- StringValueCStr because \0 exists when Regexp.new("\0").
-
-Sun Nov 4 08:11:19 2007 Tanaka Akira <akr@fsij.org>
-
- * gc.c (count_objects): count TOTAL.
-
-Sun Nov 4 03:58:32 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * string.c (tr_setup_table): use C array for characters that fit
- in a byte to gain performance.
-
- * string.c (rb_str_delete_bang): ditto.
-
- * string.c (rb_str_squeeze_bang): ditto.
-
- * string.c (rb_str_count): ditto.
-
- * string.c (tr_trans): ditto.
-
-Sun Nov 4 00:06:40 2007 Tanaka Akira <akr@fsij.org>
-
- * gc.c (count_objects): ObjectSpace.count_objects implemented.
- [ruby-core:12301]
-
-Sat Nov 3 22:49:37 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * hash.c (rb_hash_each_pair): make Hash#each to be alias to
- Hash#each_pair for compatibility and clarity.
-
- * hash.c (env_each_pair): ditto.
-
-Sat Nov 3 22:41:05 2007 Tanaka Akira <akr@fsij.org>
-
- * configure.in: --with-vendor-hdrdir implemented.
-
- * lib/mkmf.rb: check --vendor argument.
-
- * README.EXT: explain --vendor option for extconf.rb
-
- * README.EXT.ja: ditto.
-
-Sat Nov 3 20:30:48 2007 Tanaka Akira <akr@fsij.org>
-
- * configure.in: --with-vendordir implemented.
-
- * mkconfig.rb: add config to vendorlibdir and vendorarchdir.
-
- * instruby.rb: make vendor library directories.
-
- * ruby.c: insert vendor library directories into load path.
-
-Fri Nov 2 20:55:49 2007 Kouhei Sutou <kou@cozmixng.org>
-
- * lib/rss/content.rb, lib/rss/content/, lib/rss/maker/content.rb,
- test/rss/test_content.rb, test/rss/test_maker_content.rb,
- test/rss/rss-testcase.rb (RSS::TestCase): supported
- content:encoded with RSS 2.0.
- Suggested by Sam Lown. Thanks.
-
-Fri Nov 2 20:47:04 2007 Kouhei Sutou <kou@cozmixng.org>
-
- * lib/rss/rss.rb, test/rss/test_version.rb: 0.2.0 -> 0.2.1.
-
-Thu Nov 1 21:56:45 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * error.c (Init_Exception): make NameError to be subclass of
- StandardError again.
-
- * error.c (Init_Exception): make SecurityError to be subclass of
- Exception, since it's too important to be handled implicitly.
-
-Thu Nov 1 14:51:39 2007 David Flanagan <davidflanagan@ruby-lang.org>
- * enum.c (take_while_i, drop_while_i) add RTEST to handle nil return
-
-Thu Nov 1 02:12:50 2007 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * common.mk (prereq): update the path of prelude.c.
-
- * common.mk (prelude.c): rollback a part of r13675, because it is not
- documented and causes build error.
-
-Thu Nov 1 01:52:23 2007 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * enum.c (enum_drop): fix typo.
-
-Thu Nov 1 01:51:01 2007 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * vm_core.h (ruby_current_thread): RUBY_EXTERN'ed for probeprofiler.
-
-Thu Nov 1 00:46:30 2007 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * win32/configure.bat, setup.mak: now can recognize OS even if
- the ``--target'' option of configure is omitted.
-
- * win32/README.win32: update the descriptions about compiler.
-
-Wed Oct 31 03:13:41 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * enum.c (enum_take_while): separate with-block form.
-
- * enum.c (drop_while_i): ditto.
-
- * enum.c (enum_butfirst): abandon butfirst method. reverted.
-
-Tue Oct 30 10:03:43 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * enum.c (enum_butfirst): add a new method to iterates over
- elements but first n. RDoc need to be updated.
-
- * enumerator.c (Init_Enumerator): remove unnecessary symbol
- initialization.
-
-Mon Oct 29 18:42:17 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * parse.y (bvar): block-local variable can shadow outer variable.
- [ruby-core:13036]
-
-Mon Oct 29 17:58:16 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * string.c (rb_str_substr): performance improvement. [ruby-dev:31806]
-
-Mon Oct 29 17:20:13 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * encoding.c (rb_enc_replicate): new function to replicate encoding.
-
- * encoding.c (enc_based_encoding): Encoding#base_encoding returns
- based encoding of replica.
-
-Mon Oct 29 17:18:36 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * encoding.c (rb_enc_compatible): ASCII encoding is compatible with
- ASCII-compatible encoding, even for non-string objects.
-
-Sun Oct 28 21:50:02 2007 Tanaka Akira <akr@fsij.org>
-
- * lib/open-uri.rb: :redirect option implemented to disable redirects.
- (OpenURI::HTTPRedirect): new exception class for redirection.
-
-Fri Oct 26 17:38:13 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * numeric.c (int_chr): take an optional encoding parameter.
- [ruby-core:12816]
-
-Fri Oct 26 17:14:14 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * numeric.c (fix_pow): returns 1.0 for 0**0.0.
-
- * numeric.c (fix_pow): returns infinity for 0**-1. [ruby-dev:32084]
-
-Fri Oct 26 15:00:52 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * misc/ruby-style.el (ruby-style-{case,label}-indent): adjust for
- labels inside switch block.
-
-Fri Oct 26 05:48:57 2007 David Flanagan <davidflanagan@ruby-lang.org>
- * array.c: raise IndexError for negative length in rb_ary_fill
-
-Wed Oct 25 07:12:03 2007 James Edward Gray II <jeg2@ruby-lang.org>
-
- * lib/net/telnet.rb (Net::Telnet#login): Allowing "passphrase" in
- addition to "password" for Telnet login prompts. [ruby-Bugs-10746]
-
-Wed Oct 25 06:34:11 2007 James Edward Gray II <jeg2@ruby-lang.org>
-
- * lib/net/telnet.rb (Net::Telnet#login): Making the password prompt
- pattern case insensitive. [ruby-Bugs-10746]
-
-Fri Oct 26 04:21:36 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/net/pop.rb (Net::POP3::do_start): type fixed. a patch from
- Dan Zwell <dzwell AT zwell.net> in [ruby-core:12941].
-
-Fri Oct 26 01:48:28 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * array.c (rb_ary_assoc): check and convert inner arrays (assocs)
- using #to_ary.
-
- * hash.c (rb_hash_s_create): check and convert argument hash
- using #to_hash.
-
- * hash.c (rb_hash_s_create): Hash#[] now takes assocs as source of
- hash conversion.
-
-Thu Oct 25 16:46:05 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * parse.y (parser_yylex): dot at the head of the line denote line
- continuation from previous one to support fluent interface.
- [experimental]
-
- * misc/ruby-mode.el (ruby-calculate-indent): support fluent dot.
-
-Thu Oct 25 14:19:33 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * io.c (rb_io_tell, rb_io_seek): check errno too. [ruby-dev:32093]
-
-Thu Oct 25 13:59:53 2007 David Flanagan <davidflanagan@ruby-lang.org>
-
- * parse.y (parser_tokspace): increment tokidx
- fixes test failure at [test/ruby/test_stringchar.rb:72]
-
-Thu Oct 25 09:49:49 2007 akira yamada <akira@ruby-lang.org>
-
- * lib/uri.rb, lib/uri/ldaps.rb: added LDAPS
- scheme. [ruby-dev:31896]
-
-Wed Oct 25 06:23:14 2007 James Edward Gray II <jeg2@ruby-lang.org>
-
- * lib/xmlrpc/parser.rb (XMLRPC::Convert::dateTime): Fixing a bug that
- caused time zone conversion to fail for some ISO 8601 date formats.
- [ruby-Bugs-12677]
-
-Wed Oct 25 04:59:28 2007 James Edward Gray II <jeg2@ruby-lang.org>
-
- * lib/xmlrpc/client.rb (XMLRPC::Client#do_rpc): Explicitly start
- the HTTP connection to support keepalive requests. [ruby-Bugs-9353]
-
-Wed Oct 25 04:46:53 2007 James Edward Gray II <jeg2@ruby-lang.org>
-
- * lib/xmlrpc/client.rb (XMLRPC::Client#do_rpc): Improving the error
- message for Content-Type check failures. [ruby-core:12163]
-
-Wed Oct 25 03:45:08 2007 James Edward Gray II <jeg2@ruby-lang.org>
-
- * lib/xmlrpc/utils.rb (XMLRPC::ParseContentType#parse_content_type):
- Making Content-Type checks case insensitive. [ruby-Bugs-3367]
-
-Wed Oct 24 17:09:39 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * parse.y (parser_tokspace): make space in token buffer.
-
- * parse.y (parser_yylex): fix encoding of single character literal.
-
-Tue Oct 23 13:44:14 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * parse.y (call_args2): nd_head of NODE_BLOCK_PASS should be a list.
- [ruby-core:12850]
-
-Tue Oct 23 10:42:51 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ruby.c (process_options): encoding set by command line option takes
- priority over the encoding in the source, as the primary encoding.
-
-Mon Oct 22 19:24:33 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * ruby.c (proc_options): allow space after -E (encoding) option.
-
-Mon Oct 22 11:03:09 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * encoding.c (enc_check_encoding): returns index now.
-
- * encoding.c (rb_enc_compatible): check if two objects have compatible
- encodings.
-
- * encoding.c (enc_compatible_p): added Encoding.compatible?.
-
- * include/ruby/encoding.h (rb_enc_compatible): prototype.
-
-Sun Oct 21 18:29:17 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * encoding.c (rb_enc_default, rb_enc_primary): return pointers to
- rb_encoding of default and primary respectively. [ruby-core:12795]
-
- * encoding.c (set_primary_encoding): removed primary_encoding setter.
-
-Sat Oct 20 13:17:01 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * enum.c (enum_cycle): hide temporary array from ObjectSpace.
- [ruby-core:12762]
-
-Sat Oct 20 11:49:20 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * file.c (rb_get_path): returns frozen string.
-
- * file.c (rb_file_s_chown, rb_file_s_lchown): use uid_t and gid_t.
-
-Fri Oct 19 20:08:14 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * encoding.c (rb_id_encoding): returns ID "encoding".
-
- * marshal.c (w_encoding): dump encoding name.
-
- * marshal.c (r_ivar): load encoding.
-
-Fri Oct 19 16:41:00 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * parse.y (parser_regx_options, reg_compile_gen): relaxened encoding
- matching rule.
-
- * re.c (rb_reg_initialize): always set encoding of Regexp.
-
- * re.c (rb_reg_initialize_str): fix encoding for non 7bit-clean
- strings.
-
- * re.c (rb_reg_initialize_m): use ascii encoding for 'n' option.
-
-Fri Oct 19 11:09:56 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ruby.c (process_options): set primary encoding from the parser
- always. [ruby-core:12758]
-
- * ruby.c (load_file): should not discard the parser parameter.
-
-Fri Oct 19 10:55:42 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * range.c (range_last): removed unused variables.
-
-Thu Oct 18 17:08:57 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * enum.c (enum_find_index): update RDoc. a patch from David Flanagan
- <david AT davidflanagan.com> in [ruby-core:12710].
-
- * enum.c (enum_take, enum_drop): ditto.
-
- * enum.c (enum_cycle): should not cause infinite loop for empty
- arrays. [ruby-core:12710]
-
- * range.c (Init_Range): typo fixed.
-
-Thu Oct 18 16:39:34 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/rexml/source.rb (REXML::SourceFactory::SourceFactory): more
- duck typed. better performance on JRuby.
- http://headius.blogspot.com/2007/10/another-performance-discovery-rexml.html
-
-Thu Oct 18 09:33:25 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * range.c (range_first): takes first n element if argument is
- given. [ruby-core:12697]
-
- * range.c (range_last): returns last n elements if argument is
- given.
-
- * array.c (rb_ary_subseq, rb_ary_last): export.
-
-Wed Oct 17 17:39:31 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ruby.c (proc_options): fixed reversed condition. [ruby-core:12722]
-
-Wed Oct 17 13:54:28 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * re.c (rb_reg_s_union): the last check was not complete.
-
-Wed Oct 17 11:30:55 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * encoding.c (rb_enc_from_encoding, rb_enc_register): associate index
- to self.
-
- * encoding.c (enc_capable): Encoding objects are encoding capable.
-
- * re.c (rb_reg_s_union): check if encoding matching by exact encoding
- objects.
-
-Wed Oct 17 06:18:06 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * encoding.c (rb_enc_alias, rb_enc_find_index): changed
- enc_table_alias to a name-to-index hash.
-
- * encoding.c (rb_enc_init): use upper case names for aliases to use as
- constant names.
-
- * encoding.c (enc_find): allow symbols.
-
- * encoding.c (Init_Encoding): define encoding constants.
-
- * st.c (strcasehash): fix wrong code range condition.
-
-Wed Oct 17 05:07:18 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * encoding.c (rb_primary_encoding): added Encoding.primary_encoding.
-
- * parse.y (rb_parser_encoding): added.
-
- * ruby.c (proc_options): added -E and --encoding options.
-
- * ruby.c (process_options): set primary encoding from command line
- option if set, or source encoding.
-
- * include/ruby/encoding.h (rb_enc_from_encoding,
- rb_get_primary_encoding, rb_set_primary_encoding): prototypes.
-
- * include/ruby/node.h (rb_parser_encoding): prototype.
-
-Wed Oct 17 03:37:07 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * re.c (rb_reg_desc): set encoding.
-
- * re.c (rb_reg_s_union): check encodings.
-
- * enc/utf8.c (utf8_code_to_mbclen): 0xfe and 0xff are valid Unicode to
- be encoded to 2bytes in UTF-8. [ruby-core:12700]
-
-Wed Oct 17 02:50:49 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * string.c (rb_str_ord): use encoding.
-
-Wed Oct 17 01:57:06 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * re.c (rb_reg_initialize_m): allow binary encoding option.
- [ruby-dev:32083]
-
-Tue Oct 16 19:48:01 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * re.c (rb_reg_s_union): check for encoding of original object.
-
-Tue Oct 16 18:28:51 2007 Tanaka Akira <akr@fsij.org>
-
- * debug.c: use enum for constants for gdb if possible.
-
-Tue Oct 16 18:20:10 2007 Tanaka Akira <akr@fsij.org>
-
- * ruby.c, debug.c: move debug enum and constants to debug.c.
-
-Tue Oct 16 18:16:15 2007 Tanaka Akira <akr@fsij.org>
-
- * ruby.c (RUBY_ENCODING_SHIFT): added as enum.
-
- * .gdbinit (rp): show encoding and coderange for strings.
-
-Tue Oct 16 14:48:38 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * parse.y (parser_regx_options): check if regexp encoding option
- matches to current encoding.
-
- * re.c (char_to_option, rb_char_to_option_kcode): 'n' is not kcode
- option now.
-
- * re.c (rb_reg_to_s, rb_reg_error_desc): copy encoding rather than
- append as an option.
-
- * re.c (make_regexp, rb_reg_prepare_re): use encoding of Regexp and
- String instead of kcode.
-
- * re.c (rb_reg_initialize): set fixed option if none is set.
-
- * re.c (rb_reg_regcomp): ditto.
-
- * re.c (rb_reg_equal): check if encodings are equal.
-
- * re.c (rb_reg_initialize_m): encoding option is obsolete.
-
- * re.c (rb_kcode, rb_get_kcode, rb_set_kcode): removed.
-
- * re.c (Init_Regexp): removed Regexp#kcode method.
-
- * ruby.c (proc_options): allow long encoding name.
-
-Tue Oct 16 14:03:09 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * re.c (rb_reg_s_union): encoding of all regexp objects should
- match. [ruby-dev:32076]
-
-Tue Oct 16 13:49:41 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * encoding.c (enc_to_s): rename function.
-
-Tue Oct 16 13:25:46 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * string.c (rb_str_new4): should copy encoding. a patch from NARUSE,
- Yui <naruse AT airemix.com>. [ruby-dev:32076]
-
-Tue Oct 16 01:31:23 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * enum.c (enum_inject): RDoc update. a patch from David Flanagan
- <david AT davidflanagan.com> in [ruby-core:12710].
-
-Tue Oct 16 01:25:40 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * encoding.c (Init_Encoding): define #to_s to show encoding name
- in to_s representation as well as #inspect.
-
-Mon Oct 15 13:24:08 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * numeric.c (flo_round): should be number but not rounding factor.
- [ruby-dev:32060]
-
-Mon Oct 15 11:45:12 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * marshal.c (r_bytes0): refined length check. [ruby-dev:32059]
-
-Mon Oct 15 10:24:19 2007 Tanaka Akira <akr@fsij.org>
-
- * process.c (pst_to_s): returns a string such as "pid 10220 exit 1"
- instead of "256". [ruby-dev:32053]
- (pst_inspect): change format
- "#<Process::Status: pid=10220,exited(1)>" to
- "#<Process::Status: pid 10220 exit 1>".
-
-Mon Oct 15 09:58:07 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * marshal.c (r_bytes0): check if source has enough data.
- [ruby-dev:32054]
-
-Mon Oct 15 01:15:09 2007 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/socket.c (s_accept_nonblock): make accepted fd
- nonblocking. [ruby-talk:274079]
-
-Sun Oct 14 17:31:48 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * encoding.c (rb_obj_encoding): rdoc update. a patch from David
- Flanagan <david AT davidflanagan.com>. [ruby-core:12664]
-
- * encoding.c (enc_dump, enc_load): marshaling feature. a patch from
- David Flanagan. [ruby-core:12665]
-
- * encoding.c (Init_Encoding): undefine allocator of Encoding.
- [ruby-core:12665], [ruby-core:12666]
-
- * test/ruby/test_encoding.rb: tests for Encoding from David Flanagan
- [ruby-core:12665]
-
-Sun Oct 14 11:09:09 2007 Tanaka Akira <akr@fsij.org>
-
- * lib/pp.rb (PP::PPMethods#pp_hash): don't sort keys because hash is
- ordered.
- (ENV.pretty_print): call pp_hash with sorted hash.
-
-Sun Oct 14 04:08:34 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * configure.in (AC_SYS_LARGEFILE): keep results also in command
- options, to vail out of mismatch. [ruby-list:44114]
-
- * mkconfig.rb, lib/mkmf.rb (configuration): add DEFS.
-
-Sun Oct 14 03:55:52 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * win32/mkexports.rb: deal with __fastcall name decorations.
- [ruby-list:44111]
-
-Sun Oct 14 02:20:40 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * encoding.c (rb_cEncoding): new Encoding class.
-
- * encoding.c (rb_to_encoding, rb_to_encoding_index): helper functions.
-
- * encoding.c (rb_obj_encoding): return Encoding object now.
-
- * gc.c (garbage_collect): mark Encoding objects.
-
- * inits.c (rb_call_inits): call Init_Encoding.
-
- * string.c (rb_str_force_encoding): accept Encoding object as well as
- encoding name.
-
- * include/ruby/encoding.h (rb_to_encoding_index, rb_to_encoding):
- prototypes.
-
-Sun Oct 14 01:03:30 2007 Tanaka Akira <akr@fsij.org>
-
- * lib/open-uri.rb (OpenURI.open_http): fix :ssl_ca_cert option.
-
-Sat Oct 13 21:23:21 2007 Masaki Suketa <masaki.suketa@nifty.ne.jp>
-
- * ext/win32ole/win32ole.c (foletype_s_ole_classes,
- foletype_s_typelibs): refactoring.
-
- * test/win32ole/test_win32ole_type.rb: add some test.
-
- * ext/win32ole/win32ole.c (Init_win32ole): change method name
- WIN32OLE_TYPELIB.ole_types from WIN32OLE_TYPELIB.ole_classes.
-
- * test/win32ole/test_win32ole_typelib.rb: ditto.
-
- * test/win32ole/test_folderitem2_invokeverb.rb: check create
- shortcut string more strictly (This test is invoked in Japanese
- Windows environment).
-
-Sat Oct 13 09:11:58 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * parse.y (set_file_encoding): case-insensitive search, a patch from
- David Flanagan <david AT davidflanagan.com> [ruby-core:12629]
-
-Sat Oct 13 09:02:16 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * {bcc,win}32/mkexports.rb: explicit data. [ruby-list:44108]
-
-Sat Oct 13 00:17:49 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/rexml/document.rb (REXML::Document::write): leaky
- modification trans -> transitive. [ruby-dev:32040]
-
-Sat Oct 13 00:00:33 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * parse.y: encoding specifier should work if the line matches
- /coding[:=] ?/, a la Python PEP-263, so that VIM comments like
- "# vim: set fileencoding=<encoding name>" should be recognized.
-
-Fri Oct 12 15:04:54 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * parse.y (magic_comments): add "encoding" as same as "coding".
-
- * parse.y (set_file_encoding): special file encoding handling.
-
- * parse.y (parser_yylex): ditto.
-
-Fri Oct 12 12:44:11 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * array.c (rb_ary_combination): fixed memory corruption due to too
- small memory allocation
-
- * array.c (rb_ary_product): accessing out of memory bounds.
- condition fixed.
-
-Fri Oct 12 11:22:15 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * re.c (match_values_at): make #select to be alias to #values_at
- to adapt RDoc description. [ruby-core:12588]
-
-Thu Oct 11 21:10:17 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * include/ruby/node.h (NOEX_LOCAL): remove unused local visibility.
-
- * class.c (ins_methods_push): ditto.
-
- * class.c (rb_class_local_methods): method removed.
-
-Thu Oct 11 14:29:31 2007 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * */Makefile.sub (COMMON_MACROS): workaround for old SDK's bug.
- [ruby-core:12584]
-
-Thu Oct 11 06:35:43 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * Makefile.in, */Makefile.sub (VPATH): add enc directory.
-
- * common.mk (ENCOBJS): encoding objects.
-
- * enc: directory for encodings.
-
-Thu Oct 11 00:04:37 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * include/ruby/oniguruma.h (OnigEncodingTypeST): add OnigEncoding
- parameter to every function members.
-
- * include/ruby/oniguruma.h (OnigEncodingTypeST): add auxiliary
- data member to provide user defined data for an encoding.
-
-Wed Oct 10 23:32:15 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * re.c (rb_reg_s_quote): no longer takes optional second argument
- that has never been documented.
-
-Wed Oct 10 15:39:04 2007 Tanaka Akira <akr@fsij.org>
-
- * encoding.c (rb_enc_init): don't alias iso-8859-1 to ascii.
-
- * ascii.c (OnigEncodingASCII): change the name US-ASCII to ASCII-8BIT.
-
-Wed Oct 10 14:31:05 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * string.c (rb_enc_str_coderange): fixed check for non-ascii.
-
-Tue Oct 9 21:35:28 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * array.c (rb_ary_permutation, rb_ary_combination): missing type
- names.
-
- * array.c (rb_ary_permutation): used buffer should be t1.
-
- * array.c (rb_ary_permutation): use frozen shared hidden array.
- [ruby-dev:31985]
-
-Tue Oct 9 16:58:10 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * array.c: remove to_a completely.
-
- * array.c (tmpbuf): keep DRY to clear klass of temporary objects.
-
-Tue Oct 9 16:33:32 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * array.c (rb_ary_permutation, rb_ary_combination, rb_ary_product):
- hide internal buffer objects. [ruby-dev:31982]
-
-Tue Oct 9 16:00:32 2007 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * parse.y (parser_read_escape, parser_tokadd_escape): check code range.
- [ruby-dev:31980]
-
-Tue Oct 9 15:40:24 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * parse.y (STR_NEW3): check for if single byte sequence.
-
-Mon Oct 8 20:06:29 2007 GOTOU Yuuzou <gotoyuzo@notwork.org>
-
- * lib/net/imap.rb, lib/net/smtp.rb, lib/net/pop.rb: hostname should
- be verified against server's identity as presented in the server's
- certificate. [ruby-dev:31960]
-
- * ext/openssl/lib/net/telnets.rb, ext/openssl/lib/net/ftptls.rb: ditto.
-
-Sun Oct 7 22:37:47 2007 Kouhei Sutou <kou@cozmixng.org>
-
- * test/rss/test_taxonomy.rb, test/rss/test_parser_1.0.rb,
- test/rss/test_image.rb, test/rss/rss-testcase.rb: ensured
- declaring XML namespaces.
-
-Sun Oct 7 22:00:01 2007 Tanaka Akira <akr@fsij.org>
-
- * include/ruby/node.h: make node flags as VALUE type.
- enum ruby_node_flags removed.
-
- * ruby.c: define RUBY_NODE_* as const for gdb.
-
-Sun Oct 7 18:57:12 2007 Tanaka Akira <akr@fsij.org>
-
- * include/ruby/ruby.h: enum ruby_value_flags removed. [ruby-dev:31959]
-
- * ruby.c: define RUBY_FL_* as const VALUE for gdb.
-
-Sun Oct 7 17:50:14 2007 GOTOU Yuuzou <gotoyuzo@notwork.org>
-
- * lib/net/http.rb: remove enable_post_connection_check flag.
-
- * lib/open-uri.rb: ditto.
-
-Sun Oct 7 15:48:40 2007 Koichi Sasada <ko1@atdot.net>
-
- * insns.def (opt_eq): fix to use rb_str_equal().
-
-Sat Oct 6 23:14:54 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * string.c (rb_str_to_i): update RDoc since base can be any value
- between 2 and 36. [ruby-talk:272879]
-
-Sat Oct 6 16:24:02 2007 Koichi Sasada <ko1@atdot.net>
-
- * cont.c (cont_free): check Fiber or Continuation.
-
- * bootstraptest/test_knownbug.rb: remove a fixed test.
-
-Sat Oct 6 14:56:02 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * encoding.c (rb_enc_register): returns new index or -1 if failed.
-
- * encoding.c (rb_enc_alias): check if original name is registered.
-
- * encoding.c (rb_enc_init): register in same order as kcode options in
- re.c. added new aliases.
-
- * string.c (rb_str_force_encoding): check if valid encoding name.
-
-Sat Oct 6 14:32:30 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * insns.def (opt_eq): get rid of gcc bug.
-
-Sat Oct 6 02:34:18 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * include/ruby/defines.h: no longer provide DEFAULT_KCODE.
-
-Fri Oct 5 21:24:59 2007 Tanaka Akira <akr@fsij.org>
-
- * re.c (rb_reg_s_union_m): Regexp.union accepts single argument which
- is an array of patterns. [ruby-list:44084]
-
-Fri Oct 5 16:42:27 2007 Tanaka Akira <akr@fsij.org>
-
- * bootstraptest/runner.rb (assert_not_match): new method.
-
-Fri Oct 5 16:15:52 2007 Akinori MUSHA <knu@iDaemons.org>
-
- * configure.in: Turn on --enable-pthread by default for FreeBSD
- 5.2.1-RELEASE and later, and remove pthread support for older
- versions which has never worked perfectly.
-
-Fri Oct 5 16:11:50 2007 Akinori MUSHA <knu@iDaemons.org>
-
- * time.c (time_to_s): Fix documentation. Time format changed.
-
-Fri Oct 5 04:02:39 2007 Akinori MUSHA <knu@iDaemons.org>
-
- * lib/ipaddr.rb (in_addr, in6_addr, addr_mask): Make some minor
- code optimization.
-
-Fri Oct 5 03:25:51 2007 Akinori MUSHA <knu@iDaemons.org>
-
- * lib/ipaddr.rb (<=>): Implement IPAddr#<=> and make IPAddr
- comparable.
-
- * lib/ipaddr.rb (succ): Implement IPAddr#succ. You can now create
- a range between two IPAddr's, which (Range) object is
- enumerable.
-
- * lib/ipaddr.rb (to_range): A new method to create a Range object
- for the (network) address.
-
-Fri Oct 5 03:14:45 2007 Akinori MUSHA <knu@iDaemons.org>
-
- * lib/ipaddr.rb (coerce_other): Support type coercion and make &,
- |, == and include? accept a string or an integer instead of an
- IPAddr object as the argument.
-
- * lib/ipaddr.rb (initialize): Give better error messages.
-
- * lib/ipaddr.rb: Improve documentation.
-
-Thu Oct 4 20:45:53 2007 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * process.c (Init_process): win32 has our own WNOHANG definition, so
- remove unnecessary #ifdef guard.
-
-Thu Oct 4 20:17:19 2007 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * array.c (rb_ary_permutation, rb_ary_product): support non C99
- compilers.
-
-Thu Oct 4 17:33:18 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * re.c (kcode_setter): Perl-ish global variable `$=' no longer
- effective.
-
- * io.c (Init_IO): remove obsolete variables: $defout, $deferr.
-
- * re.c (Init_Regexp): remove obsolete const alias: MatchingData.
-
- * time.c (Init_Time): remove obsolete Time::times.
-
- * re.c (ignorecase_setter): change warning message.
-
- * re.c (ignorecase_getter): now gives warning.
-
- * string.c (rb_str_cmp_m): update RDoc document.
-
- * re.c (kcode_setter): restore erroneously removed setter.
-
-Thu Oct 4 16:28:33 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * encoding.c (rb_obj_encoding): returns encoding of the given object.
-
- * parse.y (reg_compile_gen): copy encoding from source string if
- non-empty.
-
- * re.c (Init_Regexp): new method Regexp#encoding.
-
- * string.c (str_encoding): moved to encoding.c
-
-Thu Oct 4 15:49:33 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * array.c (rb_ary_permutation): remove C99 dependency.
- [ruby-dev:31934]
-
- * array.c (rb_ary_product): ditto.
-
-Wed Oct 3 23:37:17 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * ext/nkf/nkf.c, bin/ri, bin/irb: fixed typos in doc and comments.
- a patch from Eugene Ossintsev <eugoss AT gmail.com>.
- [ruby-core:12375]
-
-Wed Oct 3 17:56:22 2007 Koichi Sasada <ko1@atdot.net>
-
- * benchmark/driver.rb: enable specify label to executable.
- (-e "ruby1::/path/to/ruby1; ruby2::/path/to/ruby2; ...")
-
-Wed Oct 3 16:58:48 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * parse.y (parser_str_new, parser_yylex, rb_intern3): set code-range
- bits.
-
- * parse.y (parser_tokadd_string): check code-range.
-
- * parse.y (parser_parse_string, parser_here_document): ditto.
-
- * parse.y (parser_set_encode): check if valid encoding.
-
-Wed Oct 3 15:43:15 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * variable.c (rb_cvar_set): check whether class variable is
- defined in superclasses. root classes have higher priority.
- removes lower class variable entry from IV_TBL (if it's defined
- in classes, not modules).
-
- * variable.c (rb_cvar_get): ditto.
-
-Wed Oct 3 10:06:53 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ruby.c (ruby_process_options): push frame with program name.
- [ruby-core:12351]
-
-Tue Oct 2 20:16:55 2007 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * win32/win32.c (init_env): refactoring. remove unused code.
-
-Tue Oct 2 12:30:40 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * array.c (rb_ary_product): generalized product, now takes
- arbitrary number of arrays. a patch from David Flanagan
- <david AT davidflanagan.com>. [ruby-core:12346]
-
-Tue Oct 2 08:25:50 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * array.c (rb_ary_permutation): implementation contributed from
- David Flanagan. [ruby-core:12344]
-
- * array.c (rb_ary_combination): RDoc update to clarify. a patch
- from David Flanagan. [ruby-core:12344]
-
- * array.c (rb_ary_permutation): small dirty hack by Matz to avoid
- arrays on stack.
-
-Tue Oct 2 07:01:05 2007 Koichi Sasada <ko1@atdot.net>
-
- * proc.c (proc_dup): proc->block.proc should be self.
-
- * bootstraptest/test_knownbug.rb, test_method.rb:
- move a fixed test.
-
-Mon Oct 1 16:17:44 2007 Tanaka Akira <akr@fsij.org>
-
- * bootstraptest/test_method.rb: use assert_normal_exit to test
- [ruby-dev:31818].
-
-Mon Oct 1 15:57:49 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * gc.c (id2ref): skip ICLASS.
-
-Mon Oct 1 15:29:35 2007 Tanaka Akira <akr@fsij.org>
-
- * bootstraptest/runner.rb (assert_normal_exit): use `` instead of
- system.
-
-Mon Oct 1 15:17:48 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * gc.c (id2ref): T_VALUES is less than T_BLOCK. [ruby-dev:31911]
-
-Mon Oct 1 10:58:42 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ruby.c (require_libraries): use require method instead of calling
- rb_require directly. [ruby-dev:31322]
-
-Mon Oct 1 10:52:30 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * eval.c (ruby_options), ruby.c (proc_options, process_options): not
- call exit(2) directly. [ruby-dev:31912]
-
- * eval.c (ruby_run_node): deal with direct exit code.
-
-Sun Sep 30 17:12:53 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * string.c (rb_str_append): always set encoding, and coderange
- cache bits.
-
- * include/ruby/encoding.h (ENC_CODERANGE_SET): fixed a bug not to
- set cache bits.
-
-Sun Sep 30 11:52:11 2007 Tanaka Akira <akr@fsij.org>
-
- * bootstraptest/runner.rb (pretty): don't show beginning empty line.
-
-Sun Sep 30 11:32:34 2007 Tanaka Akira <akr@fsij.org>
-
- * numeric.c: use #ifdef for test LONG_LONG_VALUE.
-
-Sun Sep 30 04:30:55 2007 Tanaka Akira <akr@fsij.org>
-
- * bignum.c: use SIZEOF_LONG instead of SIZEOF_ULONG which is not
- defined.
-
-Sun Sep 30 04:03:43 2007 Tanaka Akira <akr@fsij.org>
-
- * re.c (Init_Regexp): test DEFAULT_KCODE in C code because
- KCODE_EUC, etc. are enum.
-
-Sun Sep 30 00:55:40 2007 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * variable.c (obj_ivar_each): get rid of warning.
-
-Sat Sep 29 17:45:22 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * main.c (main): use platform-independent per-process initialization.
- [ruby-dev:31900]
-
- * ruby.c (ruby_sysinit): new function for per-process initialization.
-
- * include/ruby/ruby.h (RUBY_GLOBAL_SETUP): toplevel setup declaration.
-
- * include/ruby/win32.h, win32/mkexports.rb: alias NtInitialize
- ruby_sysinit.
-
- * win32/win32.c (rb_w32_sysinit): renamed from NtInitialize.
-
-Sat Sep 29 17:31:04 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * array.c (rb_ary_combination): new method to give all combination
- of elements from an array. [ruby-list:42671]
-
- * array.c (rb_ary_product): a new method to get all combinations
- of elements from two arrays. can be extended to combinations of
- n-arrays, e.g. a.product(b,c,d). anyone volunteer?
-
- * array.c (rb_ary_permutation): empty function body to calculate
- permutations of array elements. need volunteer.
-
-Sat Sep 29 17:14:44 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * marshal.c (r_leave): move proc invocation from r_entry() to
- avoid potential crash.
-
-Sat Sep 29 12:28:08 2007 Tanaka Akira <akr@fsij.org>
-
- * bootstraptest/runner.rb (assert_normal_exit): new method.
-
- * bootstraptest/test_knownbug.rb: add test for Marshal.load.
-
-Sat Sep 29 10:12:20 2007 Tanaka Akira <akr@fsij.org>
-
- * variable.c (rb_ivar_set): fix class instance variable.
-
- * object.c (rb_class_real): cl argument may be 0.
-
-Sat Sep 29 09:12:02 2007 Tanaka Akira <akr@fsij.org>
-
- * object.c (rb_class_real): use BUILTIN_TYPE instead of TYPE.
- access flags directly instead of FL_TEST.
- they are enough because cl argument is a class.
-
-Sat Sep 29 08:57:15 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * include/ruby/win32.h (strcasecmp): needed for type_strcasehash.
-
-Sat Sep 29 06:47:29 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ruby.c (struct cmdline_options): static variables packed.
-
-Sat Sep 29 05:29:30 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * io.c (rb_io_fdopen): create IO object from fd.
-
- * parse.y (yycompile): use encoding of the source as default.
-
- * ruby.c (proc_options, load_file): ditto.
-
-Sat Sep 29 04:27:08 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * encoding.c (rb_enc_alias): allow encodings multiple aliases.
-
- * encoding.c (rb_enc_find_index): search the encoding which has the
- given name and return its index if found, or -1.
-
- * st.c (type_strcasehash): case-insensitive string hash type.
-
- * string.c (rb_str_force_encoding): force encoding of self. this name
- comes from [ruby-dev:31894] by Martin Duerst. [ruby-dev:31744]
-
- * include/ruby/encoding.h (rb_enc_find_index, rb_enc_associate_index):
- prototyped.
-
- * include/ruby/encoding.h (rb_enc_isctype): direct interface to ctype.
-
- * include/ruby/st.h (st_init_strcasetable): prototyped.
-
-Sat Sep 29 03:53:26 2007 Koichi Sasada <ko1@atdot.net>
-
- * cont.c: Thread local storage should be fiber local.
-
- * bootstraptest/test_knownbug.rb, test/ruby/test_fiber.rb:
- move a fixed test.
-
-Fri Sep 28 23:15:31 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * insnhelper.ci (vm_call_method): allow send! to call protected
- methods as well. [ruby-core:12280]
-
-Fri Sep 28 22:33:47 2007 Koichi Sasada <ko1@atdot.net>
-
- * benchmark/bm_so_fasta.rb: added.
-
- * benchmark/bm_so_k_nucleotide.rb: added.
-
- * benchmark/bm_so_reverse_complement.rb: added.
-
- * benchmark/make_fasta_output.rb: added.
-
- * benchmark/prepare_so_k_nucleotide.rb: added.
-
- * benchmark/prepare_so_reverse_complement.rb: added.
-
-Fri Sep 28 19:14:51 2007 Koichi Sasada <ko1@atdot.net>
-
- * benchmark/driver.rb: fix notations.
-
- * benchmark/bm_loop_whileloop.rb: ditto.
-
- * benchmark/bm_loop_whileloop2.rb: ditto.
-
- * benchmark/bm_app_uri.rb: added.
-
- * benchmark/bm_vm1_ivar_set.rb: ditto.
-
- * benchmark/bm_so_binary_trees.rb: added from Computer Language
- Benchmarks Game (http://shootout.alioth.debian.org/).
-
- * benchmark/bm_so_fannkuch.rb: ditto.
-
- * benchmark/bm_so_mandelbrot.rb: ditto.
-
- * benchmark/bm_so_meteor_contest.rb: ditto.
-
- * benchmark/bm_so_nbody.rb: ditto.
-
- * benchmark/bm_so_nsieve.rb: ditto.
-
- * benchmark/bm_so_nsieve_bits.rb: ditto.
-
- * benchmark/bm_so_partial_sums.rb: ditto.
-
- * benchmark/bm_so_pidigits.rb: ditto.
-
- * benchmark/bm_so_spectralnorm.rb: ditto.
-
-Fri Sep 28 16:22:52 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * vm_core.h (rb_vm_struct): fix typo: bufferd -> buffered.
-
-Fri Sep 28 15:47:48 2007 Koichi Sasada <ko1@atdot.net>
-
- * benchmark/driver.rb: fix to output benchmark results
- to file "bmlog-#{Time.now.strftime('%Y%m%d-%H%M%S')}.#{$$}".
-
- * benchmark/bm_io_file_create.rb: remove useless codes.
-
- * benchmark/bm_vm2_eval.rb: added.
-
-Fri Sep 28 15:05:24 2007 Tanaka Akira <akr@fsij.org>
-
- * include/ruby/intern.h: export rb_ivar_foreach.
-
- * include/ruby/ruby.h: modify struct RObject and RClass for optimizing
- T_OBJECT space. [ruby-dev:31853]
- (ROBJECT_LEN, ROBJECT_PTR)
- (RCLASS_IV_TBL, RCLASS_M_TBL, RCLASS_SUPER, RCLASS_IV_INDEX_TBL)
- (RMODULE_IV_TBL, RMODULE_M_TBL, RMODULE_SUPER): abstract accessor
- defined.
-
- * variable.c: support the modified RObject and RClass.
-
- * object.c: ditto.
-
- * class.c: ditto.
-
- * gc.c: ditto.
-
- * marshal.c: ditto.
-
- * eval_method.ci: use the abstract accessor.
-
- * insns.def: ditto.
-
- * proc.c: ditto.
-
- * struct.c: ditto.
-
- * eval.c: ditto.
-
- * error.c: ditto.
-
- * vm.c: ditto.
-
- * insnhelper.ci: ditto.
-
- * ext/digest/digest.c: ditto.
-
-Fri Sep 28 13:20:10 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * io.c (rb_io_getline_fast, rb_io_getline_1): set encoding to the
- result string, as well as getc.
-
-Fri Sep 28 12:51:42 2007 Koichi Sasada <ko1@atdot.net>
-
- * benchmark/bm_app_erb.rb: added.
-
- * benchmark/bm_io_file_(create|read|write).rb: added.
-
-Fri Sep 28 12:49:05 2007 Koichi Sasada <ko1@atdot.net>
-
- * benchmark/driver.rb: fix file selection algorithm.
-
-Fri Sep 28 02:05:42 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * string.c (rb_str_comparable): need not to check asciicompat here.
-
- * encoding.c (rb_enc_check): ditto.
-
- * string.c (rb_enc_str_coderange): tuned a bit; no broken check.
-
- * encoding.c (rb_enc_check): new encoding comparison criteria.
-
-Thu Sep 27 17:36:28 2007 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * win32/REAMDE.win32: follow recent changes.
-
-Thu Sep 27 16:01:53 2007 Koichi Sasada <ko1@atdot.net>
-
- * benchmark/driver.rb: fix to output some helpful messages.
-
-Thu Sep 27 15:44:51 2007 Koichi Sasada <ko1@atdot.net>
-
- * benchmark/driver.rb: added.
-
- * common.mk: fix to use above driver.
-
- * benchmark/prepare_so_count_words.rb: added.
-
- * benchmark/bm_so_count_words.rb: fix benchmark process.
-
-Thu Sep 27 15:42:34 2007 Koichi Sasada <ko1@atdot.net>
-
- * ext/fiber/fiber.c: modify prototype declaration.
- [ruby-core:12247]
-
-Thu Sep 27 09:42:50 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * parse.y (strings, xstring, regexp, dsym): empty strings have
- US-ASCII encoding.
-
-Thu Sep 27 07:39:13 2007 Tanaka Akira <akr@fsij.org>
-
- * bootstraptest/runner.rb (assert_finish): new method.
-
- * bootstraptest/test_knownbug.rb: add test for [ruby-dev:31866] using
- assert_finish.
-
-Thu Sep 27 04:46:31 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * encoding.c (rb_enc_associate_index): deal with ASCII compatible
- flags.
-
- * encoding.c (rb_enc_check): allow ASCII compatible strings.
-
- * parse.y (rb_intern_str): use ASCII encoding for ASCII string.
-
- * string.c (rb_enc_str_coderange): check for code-range.
-
- * string.c (rb_str_modify): clear code-range flags.
-
- * string.c (rb_str_hash, rb_str_eql): ASCII compatible strings are
- comparable.
-
- * include/ruby/encoding.h: added code-range flags.
-
-Thu Sep 27 04:40:47 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * gc.c (rb_mark_set): new function to mark keys.
-
- * marshal.c (struct dump_arg, struct load_arg): added wrappers to mark
- data and compat_tbl entries. [ruby-dev:31870]
-
-Thu Sep 27 03:17:41 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * process.c (rb_waitpid): no needs to poll. [ruby-dev:31871]
-
-Wed Sep 26 20:11:46 2007 Koichi Sasada <ko1@atdot.net>
-
- * bootstraptest/test_knownbug.rb: remove a fixed test.
-
-Wed Sep 26 20:00:12 2007 Koichi Sasada <ko1@atdot.net>
-
- * bootstraptest/test_knownbug.rb: move fixed tests.
-
- * bootstraptest/test_method.rb: ditto.
-
- * test/ruby/test_io.rb: ditto.
-
-Wed Sep 26 19:36:26 2007 Koichi Sasada <ko1@atdot.net>
-
- * eval.c (eval): fix to check stack overflow.
- [ruby-dev:31850]
-
- * eval_intern.h, vm.h: move CHECK_STACK_OVERFLOW() macro.
-
-Wed Sep 26 19:27:11 2007 Koichi Sasada <ko1@atdot.net>
-
- * insnhelper.ci (vm_throw): fix to move increment point.
- [ruby-dev:31840]
-
-Wed Sep 26 19:23:56 2007 Koichi Sasada <ko1@atdot.net>
-
- * cont.c: Fiber as SemiCoroutine on default. [ruby-core:12146]
-
- * ext/fiber/fiber.c: enable Fiber#transfer.
-
-Wed Sep 26 18:38:41 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * encoding.c (rb_enc_check): check for ASCII-compatibilities.
-
- * parse.y (parser_tokadd_string, parser_parse_string,
- parser_here_document, parser_yylex): set encoding to US-ASCII.
-
- * parse.y (rb_enc_symname_p): check if valid with encoding.
-
- * parse.y (rb_intern3): let symbols have encoding.
-
- * string.c (rb_str_hash): add encoding index.
-
- * string.c (rb_str_comparable, rb_str_equal, rb_str_eql): check if
- compatible encoding.
-
- * string.c (sym_inspect): made encoding aware.
-
- * insns.def (opt_eq): compare with encoding.
-
- * include/ruby/encoding.h (rb_enc_asciicompat): check if ASCII
- compatible.
-
- * include/ruby/encoding.h (rb_enc_get_index): added prototype.
-
- * include/ruby/intern.h (rb_str_comparable, rb_str_equal): ditto.
-
-Wed Sep 26 15:01:16 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * eval_method.ci (rb_get_alloc_func): cast to suppress a warning.
-
- * eval_method.ci (remove_method): local variable to be initialized.
-
-Wed Sep 26 08:36:31 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * Makefile.in (ext/extinit.o): use $(OUTFLAG) as well as other
- objects. [ruby-Bugs-14228]
-
-Wed Sep 26 05:12:17 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * parse.y (parser_yyerror): limit error message length.
- [ruby-dev:31848]
-
-Tue Sep 25 15:11:32 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * io.c (io_ungetc): reallocate internal buffer if pushing data
- excess capacity. [ruby-dev:31650]
-
-Tue Sep 25 13:43:03 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * eval_method.ci (remove_method): should not remove undef place
- holder. [ruby-dev:31816], [ruby-dev:31817]
-
-Tue Sep 25 09:51:31 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * eval.c (rb_longjmp): source file information may be NULL.
- [ruby-dev:31849]
-
- * eval.c (ruby_finalize_0): clear trace_func before finalization.
-
-Mon Sep 24 22:36:13 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * array.c (rb_ary_equal): should handle recursive array.
-
- * hash.c (hash_equal): should handle recursive hash.
-
-Mon Sep 24 22:14:13 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/weakref.rb (WeakRef): remove debug print. [ruby-dev:31799]
-
- * hash.c (hash_i): avoid too frequent hash conflict where key and
- value are same. a patch from Yusuke ENDOH <mame AT tsg.ne.jp>.
- [ruby-dev:31802]
-
-Mon Sep 24 17:56:21 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Thu Jun 16 03:00:26 2011 NAKAMURA Usaku <usa@ruby-lang.org>
- * ext/strscan/strscan.c (strscan_initialize, strscan_getch): use the
- encoding of the target string instead of setting to StringScanner
- instance. [ruby-dev:31831]
+ * thread.c (do_select): Windows: no need to poll if select(2) is
+ cancelable.
-Mon Sep 24 16:52:11 2007 Urabe Shyouhei <shyouhei@ruby-lang.org>
+ * thread_win32.c (native_fd_select): new function to make select(2)
+ cancelable.
- * lib/net/http.rb: fix typo.
+ * thread_win32.c (rb_w32_check_interrupt): new function for checking
+ interrupt.
-Mon Sep 24 06:49:15 2007 GOTOU Yuuzou <gotoyuzo@notwork.org>
+ * win32/win32.c (rb_w32_select_with_thread): new function. cancelable
+ select(2).
- * lib/net/http.rb: an SSL verification (the server hostname should
- be matched with its certificate's commonName) is added.
- this verification can be skipped by
- "Net::HTTP#enable_post_connection_check=(false)".
- suggested by Chris Clark <cclark at isecpartners.com>
+ * win32/win32.c (rb_w32_select): use above function internally.
- * lib/net/open-uri.rb: use Net::HTTP#enable_post_connection_check to
- perform SSL post connection check.
+Wed Jun 15 23:30:45 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * ext/openssl/lib/openssl/ssl.c
- (OpenSSL::SSL::SSLSocket#post_connection_check): refine error message.
+ * gc.c: fix a regression by r31690 on AIX because AIX malloc
+ return NULL if it's passed 0. But some caller don't expect it.
+ patch by Yutaka Kanemoto. [ruby-dev:43779]
+ (vm_malloc_prepare): return calculated size.
+ (vm_xmalloc): use above result.
+ (vm_xcalloc): ditto.
-Sun Sep 23 09:05:05 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Wed Jun 15 23:11:35 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * gc.c (os_obj_of, os_each_obj): hide objects to be finalized.
- [ruby-dev:31810]
+ * thread.c: remove BLOCKING_REGION_CORE() macro. It's no longer used
+ since r32022.
-Sun Sep 23 08:58:01 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Wed Jun 15 21:00:47 2011 Martin Bosslet <Martin.Bosslet@googlemail.com>
- * eval_method.ci (rb_attr): should not use alloca for unknown size
- input. [ruby-dev:31818]
+ * test/openssl/test_config.rb: execute based on the existence of the
+ OpenSSL module.
- * parse.y (rb_intern_str): prevent str from optimization.
+Wed Jun 15 12:35:11 2011 Tanaka Akira <akr@fsij.org>
-Sun Sep 23 06:16:04 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * test/ruby/test_io.rb (test_copy_stream_socket): wait a child process
+ before SIGUSR1 handler is removed.
- * eval_method.ci (remove_method): check for undefined method.
- [ruby-dev:31816]
+ * test/pathname/test_pathname.rb (define_assertion): use line number
+ for test method names.
-Sun Sep 23 05:42:35 2007 URABE Shyouhei <shyouhei@ruby-lang.org>
+Wed Jun 15 10:37:43 2011 NARUSE, Yui <naruse@ruby-lang.org>
- * lib/rdoc/options.rb (Options::check_diagram): dot -V output
- changed. [ ruby-Bugs-11978 ], Thanks Florian Frank.
+ * file.c (rb_stat_rdev): use DEVT2NUM.
-Sat Sep 22 06:02:11 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * file.c (rb_stat_rdev_major): ditto.
- * lib/optparse.rb (OptionParser::List::summarize): use each_line if
- defined rather than each. [ruby-Patches-14096]
+ * file.c (rb_stat_rdev_minor): ditto.
-Sat Sep 22 05:19:49 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Wed Jun 15 05:12:59 2011 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
- * ext/stringio/stringio.c (strio_init): separate from strio_initialize
- to share with strio_reopen properly. [ruby-Bugs-13919]
-
-Fri Sep 21 14:51:40 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * gc.c (gc_mark_rest): copy just used part.
-
- * gc.c (gc_mark_children): mark u1 and u2 of NODE_ARGSCAT.
-
- * gc.c (os_obj_of): hide T_VALUES too. [ruby-dev:31804]
-
- * gc.c (run_final): freeze temporary argument array.
-
-Fri Sep 21 04:58:39 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * misc/ruby-style.el (ruby-style-label-indent): fix for function top
- level labels.
-
-Fri Sep 21 02:11:22 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * re.c (rb_reg_match_m): evaluate a block if match. it would make
- condition statement much shorter, if no else clause is needed.
-
- * string.c (rb_str_match_m): ditto.
-
-Fri Sep 21 02:02:34 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * hash.c (hash_equal): should call rb_eql when argument eql is set.
-
-Thu Sep 20 17:28:00 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * io.c (popen_exec), process.c (rb_spawn): stop other threads before
- exec. [ruby-core:08262]
-
-Tue Sep 18 22:08:42 2007 Keiju Ishitsuka <keiju@ruby-lang.org>
-
- * lib/matrix.rb: fix a coerce bug of Vector. [ruby-core: 12190]
-
-Mon Sep 17 21:06:03 2007 Minero Aoki <aamine@loveruby.net>
-
- * lib/net/http.rb (HTTP::GenericRequest#initialize): check path is
- not nil. [ruby-dev:31149]
-
-Mon Sep 17 21:00:51 2007 Minero Aoki <aamine@loveruby.net>
-
- * parse.y (ripper): rename event: arglist_* -> args_*.
-
- * parse.y (ripper): rename event: restparam -> rest_param.
-
- * parse.y (ripper): rename event: constpath_* -> const_path_*.
-
- * parse.y (ripper): rename event: topconst_* -> top_const_*.
-
- * parse.y (ripper): rename event: iter_block -> method_add_block.
-
- * parse.y (ripper): support block local parameter declaration.
-
- * parse.y (ripper): introduce new macro params_new.
-
- * ext/ripper/lib/ripper/sexp.rb: should not dispose event
- arguments whose name ends with "_new" but arity != 0.
-
-Sat Sep 15 23:36:31 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * parse.y (struct parser_params): common members in the parser and
- ripper must be placed at each same location.
-
-Sat Sep 15 18:25:15 2007 Kouhei Sutou <kou@cozmixng.org>
-
- * string.c (rb_str_rstrip_bang): fixed too much rstrip. [ruby-dev:31786]
-
-Sat Sep 15 17:32:10 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * parse.y (parser_initialize): set default encoding. [ruby-dev:31787]
-
- * ruby.c (load_file): make new parse instance after processing shebang
- line options.
-
-Sat Sep 15 17:04:08 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * encoding.c (rb_enc_associate_index, rb_enc_get_index): check if
- object is encoding capable. [ruby-dev:31780]
-
- * string.c (rb_str_subpat_set): check for if the argument is a String.
-
-Sat Sep 15 13:31:21 2007 Kouhei Sutou <kou@cozmixng.org>
-
- * lib/rss.rb, lib/rss/, test/rss/:
- - 0.1.9 -> 0.2.0.
- - supported Slash module.
-
-Fri Sep 14 22:20:01 2007 Masaki Suketa <masaki.suketa@nifty.ne.jp>
-
- * ext/win32ole/win32ole.c (fev_unadvise): no needs to reset
- event handlers.
-
-Fri Sep 14 17:28:32 2007 Koichi Sasada <ko1@atdot.net>
-
- * test/ruby/test_io.rb: tests which cause SEGV should not be
- added.
-
- * bootstraptest/test_knownbug.rb: add above test to known bug.
-
-Fri Sep 14 16:24:04 2007 Koichi Sasada <ko1@atdot.net>
-
- * insnhelper.ci (vm_expandarray): assignment should be placed
- after creating new array.
-
-Fri Sep 14 16:17:30 2007 Koichi Sasada <ko1@atdot.net>
-
- * bootstraptest/runner.rb: add a stress test (-s).
-
-Fri Sep 14 16:14:28 2007 Koichi Sasada <ko1@atdot.net>
-
- * vm.h, eval_intern.h: move some macros to eval_intern.h.
-
- * eval_jump.ci (rb_f_throw): fix to use NEW_THROW_OBJECT().
-
- * eval.c (rb_f_loop): remove additional macro.
-
-Fri Sep 14 16:12:10 2007 Koichi Sasada <ko1@atdot.net>
-
- * insnhelper.ci (vm_expandarray): should be volatile value for GC.
-
-Thu Sep 13 15:42:03 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * compile.c (iseq_compile_each): inline cache entries are overwritten
- in iseq_build_body().
-
-Thu Sep 13 14:00:15 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * parse.y (brace_block): should use compstmt. patch submitted by
- Kirill A. Shutemov <k.shutemov AT gmail.com> [ruby-core:12154].
-
-Thu Sep 13 13:47:08 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * parse.y (rb_id2str): fixed typo.
-
-Wed Sep 12 23:12:22 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * ruby.c (proc_options): -W should be allowed in RUBYOPT
- environment variable. [ruby-core:12118]
-
-Wed Sep 12 15:19:04 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * io.c (rb_io_s_sysopen): should not use alloca for unknown size
- input. [ruby-dev:31775]
-
- * parse.y (rb_id2str): ditto.
-
- * marshal.c (w_float): use snprintf instead of sprintf.
-
-Tue Sep 11 17:28:00 2007 Akinori MUSHA <knu@iDaemons.org>
-
- * lib/tempfile.rb (Tempfile::make_tmpname): Allow to specify a
- suffix for a temporary file name.
-
- * lib/tempfile.rb (Tempfile::make_tmpname): Make temporary file
- names less predictable by including a random string.
- [inspired by: akr]
-
-Tue Sep 11 17:25:59 2007 Akinori MUSHA <knu@iDaemons.org>
-
- * lib/shellwords.rb: Add shellescape() and shelljoin().
-
- * lib/shellwords.rb: Rename shellwords() to shellsplit() and make
- the former an alias to the latter.
-
- * lib/shellwords.rb: Add escape(), split(), join() as class
- methods, which are aliases to their respective long names
- prefixed with `shell'.
-
- * lib/shellwords.rb: Add String#shellescape(), String#shellsplit()
- and Array#shelljoin() for convenience.
-
-Mon Sep 10 15:48:31 2007 Tanaka Akira <akr@fsij.org>
-
- * range.c: represent initialized state using EXCL instead of FL_USER3.
-
- * range.c (range_dumper): make uninitialized range dumpable.
- (range_loader): make uninitialized range loadable.
-
-Mon Sep 10 13:44:37 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * array.c (rb_ary_cycle): avoid infinite loop for empty array.
- based on a patch from David Flanagan. [ruby-core:12085]
-
-Mon Sep 10 01:21:23 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * marshal.c (r_object0): struct allocation first to check if a
- class is a struct. compatibility check should come next.
-
-Mon Sep 10 01:05:25 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * range.c (range_step): fixed integer overflow. [ruby-dev:31763]
-
-Sun Sep 9 08:57:27 2007 Tadayoshi Funaba <tadf@dotrb.org>
-
- * lib/date/format.rb (_strptime): now also attaches an element
- which denotes leftover substring if exists.
-
-Sun Sep 9 01:59:08 2007 Tanaka Akira <akr@fsij.org>
-
- * marshal.c (r_object0): check T_STRUCT type for structs.
-
-Sun Sep 9 01:17:05 2007 Tanaka Akira <akr@fsij.org>
-
- * marshal.c (r_object0): don't call user-defined initialize for
- T_STRUCT objects.
-
- * include/ruby/intern.h (rb_struct_initialize): declared.
-
- * struct.c (rb_struct_initialize): export.
-
-Sat Sep 8 23:55:56 2007 Tanaka Akira <akr@fsij.org>
-
- * eval_method.ci (rb_get_alloc_func): new function to get allocation
- function.
-
- * include/ruby/intern.h (rb_alloc_func_t): declared.
- (rb_define_alloc_func): declared.
- (rb_marshal_define_compat): declared.
-
- * range.c: use T_STRUCT for Range.
-
- * inits.c: move Init_marshal() prior to Init_Range() because
- Init_Range calls rb_marshal_define_compat which needs
- marshal's compat_allocator_tbl initialized.
-
- * marshal.c: support marshal format compatibility layer designed for
- marshaling T_STRUCT Range using T_OBJECT format.
- (rb_marshal_define_compat): defined.
-
- [ruby-dev:31710]
-
-Sat Sep 8 10:05:14 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * struct.c (rb_struct_s_members): check if __members__ is an
- array to prevent segmentation fault. [ruby-dev:31759]
-
-Sat Sep 8 09:33:09 2007 Tadayoshi Funaba <tadf@dotrb.org>
-
- * lib/date/format.rb (str[fp]time): now check specifications more
- strictly.
-
-Sat Sep 8 02:56:31 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * test/ruby/test_fiber.rb (TestFiber::test_throw): uncaught throw
- now raise ArgumentError exception.
-
-Sat Sep 8 02:45:33 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * struct.c (rb_struct_s_members): should raise TypeError instead
- of call rb_bug(). [ruby-dev:31709]
-
- * marshal.c (r_object0): no nil check require any more.
-
-Sat Sep 8 01:46:36 2007 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * regenc.c, regenc.h (onigenc_single_byte_mbc_enc_len): should take
- two arguments. [ruby-dev:31754]
-
-Fri Sep 7 00:58:16 2007 Koichi Sasada <ko1@atdot.net>
-
- * common.mk: fix typo.
-
-Fri Sep 7 00:28:25 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * io.c (rb_io_getc): forgot to commit rb_enc_mbclen() fix.
-
- * ext/stringio/stringio.c (strio_getc): rb_enc_mbclen() fix.
-
- * ext/stringio/stringio.c (strio_ungetc): ditto.
-
-Thu Sep 6 22:57:01 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/fileutils.rb (FileUtils::Entry_::copy): prevent self copy of
- directories.
-
- * lib/fileutils.rb (FileUtils::fu_each_src_dest0): use try_convert.
-
- * lib/fileutils.rb (FileUtils::fu_update_option): ditto.
-
-Thu Sep 6 21:36:33 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * include/ruby/oniguruma.h (OnigEncodingTypeST): add end parameter
- to mbc_enc_len.
-
- * euc_jp.c (mbc_enc_len), sjis.c (mbc_enc_len),
- utf8.c (utf8_mbc_enc_len): ditto.
-
- * encoding.c (rb_enc_mbclen): add end parameter.
-
-Thu Sep 6 21:31:49 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * array.c (rb_ary_cycle): typo in rdoc. a patch from Yugui
- <yugui@yugui.sakura.ne.jp>. [ruby-dev:31748]
-
-Thu Sep 6 12:42:10 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * string.c (rb_str_succ, rb_str_chop_bang, rb_str_chop): m17n support.
- [ruby-dev:31734]
-
-Wed Sep 5 22:02:27 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * array.c (rb_ary_subseq): need integer overflow check.
- [ruby-dev:31736]
-
- * array.c (rb_ary_splice): ditto. [ruby-dev:31737]
-
- * array.c (rb_ary_fill): ditto. [ruby-dev:31738]
-
- * string.c (rb_str_splice): integer overflow for length.
- [ruby-dev:31739]
-
-Tue Sep 4 20:43:44 2007 Masaki Suketa <masaki.suketa@nifty.ne.jp>
-
- * ext/win32ole/win32ole.c: add WIN32OLE_EVENT#unadvise.
-
- * test/win32ole/test_win32ole_event.rb: ditto.
-
-Mon Sep 3 15:37:09 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * common.mk (vm.o): depends on st.h too.
-
-Sun Sep 2 23:38:29 2007 Tanaka Akira <akr@fsij.org>
-
- * include/ruby/st.h (struct st_table): make num_entries bitfield
- instead of num_bins for speed. num_entries has less access.
-
-Sun Sep 2 00:37:57 2007 Tadayoshi Funaba <tadf@dotrb.org>
-
- * lib/date/format.rb (_parse): improved parsing of ordinal dates.
-
- * lib/date/format.rb (_parse): use named character classes in some
- regular expressions.
-
-Sat Sep 1 23:44:26 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * eval_jump.ci (rb_f_throw): wrap tag and TAG_THROW in a NODE_MEMO
- node to make throw instruction to work well.
-
-Sat Sep 1 20:56:07 2007 Tanaka Akira <akr@fsij.org>
-
- * include/ruby/ruby.h (struct RBignum): embed digits in RBignum for
- small bignums.
-
- * bignum.c: RBignum embedded digits implemented.
-
- * include/ruby/intern.h: declare rb_big_resize.
-
- * gc.c: don't free embedded digits.
-
- * numeric.c: replace direct bignum field accessor by abstract field
- accessor such as RBIGNUM(val)->sign to RBIGNUM_SIGN(val).
-
- * sprintf.c: ditto.
-
- * compar.c: ditto.
-
- * marshal.c: ditto.
-
- * random.c: ditto.
-
- * .gdbinit: support embedded small bignums.
-
- [ruby-dev:31689]
-
-Sat Sep 1 19:59:43 2007 Masaki Suketa <masaki.suketa@nifty.ne.jp>
-
- * ext/win32ole/win32ole.c (ole_event_free): IConnectionPoint should be
- released.
-
- * ext/win32ole/win32ole.c (EVENTSINK_Destructor): ITypeInfo should be
- released.
-
- * ext/win32ole/win32ole.c (fev_initialize): refactoring.
-
-Sat Sep 1 16:26:09 2007 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * test/socket/test_tcp.rb (test_recvfrom): same as mswin32 on mswin64.
-
-Sat Sep 1 14:24:23 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * st.c (st_numcmp, st_numhash): use st_data_t instead of long, because
- the former may be larger than the latter.
-
- * include/ruby/st.h (CHAR_BIT): get rid of magic number.
-
- * include/ruby/st.h (rb_index_t): use st_data_t for the platforms it
- is larger than int.
-
-Sat Sep 1 10:43:30 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * eval_jump.ci (rb_f_catch): generate new tag object if no argument is
- given. backported from MatzRuby. [ruby-dev:31609]
-
- * eval_jump.ci (rb_catch): call #catch without arguments if tag
- string is NULL.
-
- * eval_jump.ci (rb_f_throw): allow throwing non-symbol object.
-
- * eval_jump.ci (rb_catch_obj): new function to wait throw with arbitrary
- object.
-
- * eval_jump.ci (rb_throw_obj): new function to throw arbitrary object.
-
- * variable.c (check_autoload_table): prevent multiple calls from
- RSTRING_PTR().
-
-Fri Aug 31 07:12:24 2007 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * numeric.c (SQRT_LONG_MAX): use SIZEOF_LONG instead of SIZEOF_VALUE
- because SIZEOF_VALUE > SIZEOF_LONG on some platforms.
-
-Fri Aug 31 04:18:03 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * parse.y (f_norm_arg, f_arg_item): not croak already erred names.
- [ruby-dev:31687]
-
- * parse.y (assignable_gen): ignore already erred names.
-
- * parse.y (shadowing_lvar_gen): always make new block local variable
- when shadowing outer local variable. [ruby-dev:31507]
-
-Thu Aug 30 19:40:33 2007 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * regenc.h: check RUBY_EXTERN before including config.h and defines.h
-
- * common.mk: update header dependency.
-
-Thu Aug 30 14:06:50 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * proc.c (rb_obj_define_method): reverted. [ruby-talk:266637]
-
-Thu Aug 30 13:49:25 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/mkmf.rb: initialize $top_srcdir always. [ruby-dev:31682]
-
- * lib/mkmf.rb (try_const, have_const): check for a const is defined.
- [ruby-core:04422]
-
-Thu Aug 30 08:00:12 2007 Tanaka Akira <akr@fsij.org>
-
- * include/ruby/intern.h: declare rb_hash_tbl.
-
- * include/ruby/ruby.h (RHash): delay st_table allocation.
- rename tbl field to ntbl to detect direct reference to the st_table
- as a compile error.
- (RHASH_TBL): abstract accessor defined.
- (RHASH_ITER_LEV): ditto.
- (RHASH_IFNONE): ditto.
- (RHASH_SIZE): ditto.
- (RHASH_EMPTY_P): ditto.
- (hash_alloc0, hash_alloc): unified because hash_alloc doesn't
- allocate st_table now.
-
- * hash.c: delay st_table allocation.
-
- * gc.c: replace tbl by ntbl.
-
- * array.c: replace direct field accessor by abstract field accessor
- such as RHASH(hash)->tbl to RHASH_TBL(hash).
-
- * marshal.c: ditto.
-
- * insns.def: ditto.
-
- * ext/iconv/iconv.c: ditto.
-
- * ext/json/ext/generator/generator.c: ditto.
-
- * ext/json/ext/parser/parser.c: ditto.
-
- * ext/json/ext/parser/parser.rl: ditto.
-
- * ext/syck/rubyext.c: ditto.
-
- * ext/tk/tkutil/tkutil.c: ditto.
-
- [ruby-dev:31678]
-
-Wed Aug 29 18:36:06 2007 Tanaka Akira <akr@fsij.org>
-
- * lib/open-uri.rb: add :ftp_active_mode option. [ruby-dev:31677]
-
-Wed Aug 29 14:55:28 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * string.c (str_gsub): should not use mbclen2() which has broken API.
-
- * re.c: remove rb_reg_mbclen2().
-
-Wed Aug 29 12:48:17 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * parse.y (aref_args): args may not be a list. [ruby-dev:31592]
-
-Wed Aug 29 11:30:10 2007 Tanaka Akira <akr@fsij.org>
-
- * include/ruby/st.h (struct st_table): add entries_packed 1-bit
- bitfield. decrease num_bins 1-bit.
-
- * st.c: pack numhash which have 5 or less entries in bins.
- (st_init_table_with_size): setup entries_packed flag.
- (st_clear): support packed mode.
- (st_lookup): ditto.
- (st_insert): ditto.
- (st_add_direct): ditto.
- (st_copy): ditto.
- (st_delete): ditto.
- (st_foreach): ditto.
- (st_reverse_foreach): ditto.
- (unpack_entries): new function for converting to unpacked mode.
-
- [ruby-list:43954]
-
-Wed Aug 29 10:46:37 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * include/ruby/defines.h (flush_register_windows): call "ta 0x03"
- even on Linux/Sparc. [ruby-dev:31674]
-
-Tue Aug 28 19:16:00 2007 Masaki Suketa <masaki.suketa@nifty.ne.jp>
-
- * ext/win32ole/win32ole.c (ole_type_progid): progid getted by
- ProgIDFromCLSID should be freed by CoTaskMemFree. Thanks, arton.
-
- * test/win32ole/test_win32ole.rb (test_raise_message): set negative
- compareMode value to raise WIN32OLERuntimeError.
-
- * test/win32ole/test_win32ole_type.rb (test_implemented_ole_types):
- support some environment which returns IShellDispatch5 instead
- of IShellDispatch.
-
-Tue Aug 28 15:42:09 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * string.c (rb_str_subseq): retrieve substring based on byte offset.
-
- * string.c (rb_str_rindex_m): was confusing character offset and
- byte offset.
-
-Tue Aug 28 14:23:31 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * string.c (rb_str_splice_0): should check to modify. [ruby-dev:31665]
-
-Tue Aug 28 14:21:46 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * parse.y (parser_prepare): set parser encode too when BOM exists.
-
-Tue Aug 28 00:51:22 2007 Koichi Sasada <ko1@atdot.net>
-
- * thread.c: fix Mutex to be interruptable lock.
-
- * thread_win32.ci, thread_win32.h, thread_pthread.ci, thread_pthread.h:
- prepare native_cond_*() which are based on pthread_cond_*() spec.
-
- * prelude.rb: fix Mutex#synchronize method.
-
- * vm_core.h, include/ruby/intern.h: change unblock function interface
- (to pass some user data).
-
- * file.c, process.c: ditto.
-
- * benchmark/bm_vm2_mutex.rb: add a benchmark for mutex.
-
- * benchmark/bm_vm3_thread_mutex.rb: add a benchmark for mutex
- with contention.
-
- * benchmark/run.rb: fix to remove ENV['RUBYLIB'] for matzruby.
-
- * test/ruby/test_thread.rb: add a test.
-
- * common.mk: fix benchmark options.
-
-Mon Aug 27 23:14:02 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * string.c (rb_str_rstrip_bang): wrong strip point. [ruby-dev:31652]
-
- * string.c (rb_str_each_line): should swallow sequence of newlines
- if rs (optional argument) is an empty string. [ruby-dev:31652]
-
-Mon Aug 27 22:39:08 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * encoding.c (rb_enc_codelen): raises invalid sequence exception
- if ONIGENC_CODE_TO_MBCLEN() returns zero. [ruby-dev:31661]
-
- * encoding.c (rb_enc_mbclen): check invalid sequence.
-
-Mon Aug 27 20:27:59 2007 Masaki Suketa <masaki.suketa@nifty.ne.jp>
-
- * ext/win32ole/win32ole.c (ole_type_progid): fix the bug.
- [ruby-dev:31576]
-
- * test/win32ole/test_win32ole_type.rb (test_initialize):
- remove duplicate assertions.
-
-Mon Aug 27 19:10:50 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * ext/etc/etc.c (etc_getlogin): update documentation to note
- security issue. [ruby-Bugs-11821]
-
-Mon Aug 27 15:56:48 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * string.c (sym_encoding): return the encoding of a Symbol.
-
-Mon Aug 27 15:33:10 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * util.c (IEEE_BIG_ENDIAN): use configured value. [ruby-dev:31623]
-
- * util.c (Llong): set to LONG_LONG if available.
-
-Mon Aug 27 13:11:56 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * string.c (tr_trans): wrong condition for mbmaxlen==1 strings.
- [ruby-dev:31652]
-
-Mon Aug 27 00:41:13 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * io.c (rb_io_each_byte): caused infinite loop. [ruby-dev:31652]
-
- * io.c (rb_io_getc): should return nil at EOF, not EOFError.
-
- * lib/delegate.rb (SimpleDelegator::__setobj__): use raise
- argument to specify backtrace.
-
- * test/ruby/test_fnmatch.rb (TestFnmatch::bracket_test):
- String#include? no longer works for Fixnum. use #chr.
- [ruby-dev:31652]
-
-Sun Aug 26 12:27:14 2007 Koichi Sasada <ko1@atdot.net>
-
- * cont.c: fix to remove Fiber.new until fiber.so is not loaded.
-
- * test/ruby/test_continuation.rb: fix to use resume.
-
-Sun Aug 26 06:51:46 2007 Masaki Suketa <masaki.suketa@nifty.ne.jp>
-
- * ext/win32ole/win32ole.c (ole_wc2mb, reg_enum_key): allocate
- buffer should be NULL terminated.
-
-Sun Aug 26 06:04:13 2007 Koichi Sasada <ko1@atdot.net>
-
- * insnhelper.ci (vm_setup_method): reorder code for branch prediction.
-
-Sun Aug 26 05:54:49 2007 Koichi Sasada <ko1@atdot.net>
-
- * insnhelper.ci (vm_call_method): fix to relaxant safe level check
- ($SAFE > 2). [ruby-core:11998]
-
- * bootstraptest/test_method.rb: add tests for above.
-
-Sun Aug 26 05:52:08 2007 Koichi Sasada <ko1@atdot.net>
-
- * test/ruby/test_fiber.rb: fix to require 'continuation'.
-
-Sat Aug 25 23:52:14 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * enumerator.c (enumerator_next): message changed.
-
-Sat Aug 25 23:22:14 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * include/ruby/encoding.h: remove unused rb_enc_ismbchar().
-
-Sat Aug 25 22:50:14 2007 Masaki Suketa <masaki.suketa@nifty.ne.jp>
-
- * ext/win32ole/win32ole.c (ole_event_free, EVENTSINK_Destructor,
- fev_initialize): remove the connection ole_event_free and
- EVENTSINK_Destructor.
-
-Sat Aug 25 17:52:06 2007 Koichi Sasada <ko1@atdot.net>
-
- * string.c, include/ruby/intern.h: export rb_str_length().
-
- * insns.def: use rb_str_length() in opt_length.
-
-Sat Aug 25 17:48:51 2007 Koichi Sasada <ko1@atdot.net>
-
- * cont.c: rename FIBER_STACK_SIZE to FIBER_VM_STACK_SIZE.
-
-Sat Aug 25 17:05:05 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * io.c (swallow): removed condition using an unset variable.
-
- * parse.y, re.c: re-applied revision 13092.
-
- * string.c (rb_str_splice): return from void function.
-
- * include/ruby/encoding.h (rb_enc_str_new): prototype added.
-
-Sat Aug 25 11:45:37 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * encoding.c: provide basic features for M17N.
-
- * parse.y: encoding aware parsing.
-
- * parse.y (pragma_encoding): encoding specification pragma.
-
- * parse.y (rb_intern3): encoding specified symbols.
-
- * string.c (rb_str_length): length based on characters.
- for older behavior, bytesize method added.
-
- * string.c (rb_str_index_m): index based on characters. rindex as
- well.
-
- * string.c (succ_char): encoding aware succeeding string.
-
- * string.c (rb_str_reverse): reverse based on characters.
-
- * string.c (rb_str_inspect): encoding aware string description.
-
- * string.c (rb_str_upcase_bang): encoding aware case conversion.
- downcase, capitalize, swapcase as well.
-
- * string.c (rb_str_tr_bang): tr based on characters. delete,
- squeeze, tr_s, count as well.
-
- * string.c (rb_str_split_m): split based on characters.
-
- * string.c (rb_str_each_line): encoding aware each_line.
-
- * string.c (rb_str_each_char): added. iteration based on
- characters.
-
- * string.c (rb_str_strip_bang): encoding aware whitespace
- stripping. lstrip, rstrip as well.
-
- * string.c (rb_str_justify): encoding aware justifying (ljust,
- rjust, center).
-
- * string.c (str_encoding): get encoding attribute from a string.
-
- * re.c (rb_reg_initialize): encoding aware regular expression
-
- * sprintf.c (rb_str_format): formatting (i.e. length count) based
- on characters.
-
- * io.c (rb_io_getc): getc to return one-character string.
- for older behavior, getbyte method added.
-
- * ext/stringio/stringio.c (strio_getc): ditto.
-
- * io.c (rb_io_ungetc): allow pushing arbitrary string at the
- current reading point.
-
- * ext/stringio/stringio.c (strio_ungetc): ditto.
-
- * ext/strscan/strscan.c: encoding support.
-
-Sat Aug 25 10:59:19 2007 Koichi Sasada <ko1@atdot.net>
-
- * cont.c: separate Continuation and Fiber from core.
-
- * ext/continuation/*, ext/fiber/*: ditto.
-
- * include/ruby/ruby.h: remove rb_cFiber.
-
- * include/ruby/intern.h: add the rb_fiber_new() declaration.
-
- * enumerator.c (next_init): fix to use rb_fiber_new().
-
- * test/ruby/test_enumerator.rb: remove next? tests.
-
- * test/ruby/test_continuation.rb: add a require 'continuation'.
-
- * test/ruby/test_fiber.rb: add a require 'fiber'.
-
-Sat Aug 25 10:20:28 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * common.mk (prelude.o): depends on vm_core.h now.
-
- * common.mk (prelude.c): depends on tool/compile_prelude.rb too.
-
- * common.mk (prereq): updates all auto-generated sources.
-
- * tool/compile_prelude.rb: separated dynamic and static portions.
-
-Sat Aug 25 10:05:17 2007 Koichi Sasada <ko1@atdot.net>
-
- * prelude.rb: add Thread.exclusive. This class method
- is different from 1.8's. Thread.exclusive only does
- synchronize with VM global mutex.
-
-Sat Aug 25 09:39:50 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * array.c (rb_ary_s_try_convert): more document description.
-
- * re.c (rb_reg_s_try_convert): typo fixed.
-
-Sat Aug 25 08:54:12 2007 Koichi Sasada <ko1@atdot.net>
-
- * id.h, id.c: remove idFuncall.
-
- * compile.c (iseq_specialized_instruction): ditto.
-
-Sat Aug 25 08:47:28 2007 Koichi Sasada <ko1@atdot.net>
-
- * tool/compile_prelude.rb: fix to include "vm_core.h".
-
-Sat Aug 25 03:49:14 2007 Tanaka Akira <akr@fsij.org>
-
- * test/ruby/sentence.rb (Sentence): include Enumerable.
- (Sentence#each): defined.
-
- * test/ruby/test_assignment.rb: use Sentence#expand.
-
-Sat Aug 25 03:08:57 2007 Koichi Sasada <ko1@atdot.net>
-
- * prelude.rb: fix Mutex#synchronize definition.
-
-Sat Aug 25 02:08:45 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * array.c (rb_ary_s_try_convert): a new class method to convert
- object or nil if it's not target-type. this mechanism is used
- to convert types in the C implemented methods.
-
- * hash.c (rb_hash_s_try_convert): ditto.
-
- * io.c (rb_io_s_try_convert): ditto.
-
- * re.c (rb_reg_s_try_convert): ditto.
-
- * string.c (rb_str_s_try_convert): ditto.
-
-Sat Aug 25 00:49:44 2007 Koichi Sasada <ko1@atdot.net>
-
- * benchmark/bm_loop_generator.rb: added.
-
-Sat Aug 25 00:22:31 2007 Koichi Sasada <ko1@atdot.net>
-
- * prelude.rb: added. run this script on startup.
-
- * tool/compile_prelude.rb: compile prelude.rb to C string.
- (prelude.rb -> prelude.c)
-
- * common.mk: fix to build with prelude.c.
-
- * inits.c (rb_call_inits): ditto.
-
- * thread.c (Init_Thread): move definition of Mutex#synchronize
- to prelude.rb.
-
-Sat Aug 25 00:08:43 2007 Koichi Sasada <ko1@atdot.net>
-
- * compile.c (compile_massign_opt): fix to skip massign optimization
- with global variables.
-
- * bootstraptest/test_massign.rb: add some tests for above.
-
-Fri Aug 24 18:42:03 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * test/ruby/test_dir.rb (TestDir::setup): ?c now makes a string.
-
- * lib/test/unit/autorunner.rb (Test::Unit::AutoRunner::initialize):
- initialize @workdir to stop warning.
-
-Fri Aug 24 18:30:50 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/drb/drb.rb (DRb::DRbServer::InvokeMethod::perform_without_block):
- replace funcall by send!. other files in the distribution as well.
-
-Fri Aug 24 17:06:56 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * eval.c (rb_f_send_bang): abandon the name funcall for private
- aware method call.
-
-Fri Aug 24 15:27:12 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * enumerator.c (enumerator_next): stop pre-fetching.
-
- * enumerator.c (Init_Enumerator): remove next? method.
-
-Fri Aug 24 15:14:57 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * eval.c (rb_f_loop): now handles StopIteration exception.
-
-Thu Aug 23 20:31:31 2007 Koichi Sasada <ko1@atdot.net>
-
- * compile.c: optimize simple massign.
-
-Thu Aug 23 20:02:25 2007 Masaki Suketa <masaki.suketa@nifty.ne.jp>
-
- * ext/win32ole/win32ole.c (reg_get_value): use RegQueryValueEx instead
- of RegQueryValueEx.
-
- * ext/win32ole/win32ole.c (typelib_file_from_clsid): fix the bug
- that the function always returns Qnil.
-
- * test/win32ole/test_win32ole_type.rb (test_initialize): add some test.
-
-Thu Aug 23 17:25:05 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * configure.in (group_member): check if presents.
-
- * configure.in (XCFLAGS): add _GNU_SOURCE on linux.
-
- * file.c (group_member): use system routine if available.
-
- * process.c: moved _GNU_SOURCE macro to Makefile.
-
-Thu Aug 23 16:59:40 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * compile.c (compile_massign), insnhelper.ci (vm_throw): not use C99
- comment.
-
- * cont.c (rb_cont_call, fiber_switch, rb_fiber_resume, rb_fiber_yield):
- suppress warnings.
-
- * cont.c (rb_fiber_start): change on non-volatile variable between
- setjmp and longjmp may not has an effect.
-
- * enumerator.c (sym_call): initialize first.
-
- * enumerator.c (enum_iter): typedefed.
-
- * enumerator.c (next_i): suppress a warning.
-
-Thu Aug 23 16:04:11 2007 Koichi Sasada <ko1@atdot.net>
-
- * compile.c, insns.def, parse.y: fix massign order. This change
- causes performance problem. Try vm1_swap benchmark.
- [ruby-dev:31522]
-
- * insns.def, insnhelper.ci: move process body of expandarray insn to
- vm_expandarray().
-
- * bootstraptest/test_knownbug.rb, bootstraptest/test_massign.rb:
- move a solved test.
-
-Thu Aug 23 15:51:19 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * parse.y (f_norm_arg): ripper has no shadowing check.
-
- * parse.y (f_block_arg): dispatch blkarg_mark.
-
-Thu Aug 23 15:48:26 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * compile.c (make_masgn_lhs, iseq_compile_each): fixed indent.
-
- * compile.c (iseq_translate_threaded_code),
- vm_evalbody.ci (get_insns_address_table),
- template/vmtc.inc.tmpl (insns_address_table): constified.
-
- * vm_evalbody.ci (vm_eval),
- template/insns_info.inc.tmpl (insn_stack_increase, insn_ret_num):
- suppress warnings.
-
-Thu Aug 23 13:19:43 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * parse.y (f_norm_arg): check also nested arguments. [ruby-dev:31502]
-
-Thu Aug 23 00:06:48 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * util.c: updated for ANSI C only. applied a patch from
- <snakagawa AT infoteria.co.jp>. [ruby-dev:31591]
-
-Thu Aug 23 00:04:45 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * missing/strtod.c: removed. [ruby-dev:31588]
-
- * LEGAL: updated.
-
-Wed Aug 22 15:59:44 2007 Koichi Sasada <ko1@atdot.net>
-
- * bootstraptest/test_knownbug.rb:
- fix typo of filename (test_knownbug.rb).
-
-Wed Aug 22 14:04:53 2007 Koichi Sasada <ko1@atdot.net>
-
- * bootstraptest/test_knownbug.rb: added. This file will contain
- test cases which point out known bug. If bug is fixed, tests
- should move to the suitable place.
-
- * bootstraptest/test_massign.rb: move a test which show known bug
- to test_knownbug.rb.
-
-Wed Aug 22 13:02:26 2007 Tanaka Akira <akr@fsij.org>
-
- * bootstraptest/runner.rb (in_temporary_working_directory):
- don't remove the directory specified by --dir.
-
-Wed Aug 22 05:51:23 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * util.c (ruby_strtod): replaced by the implementation by David
- M. Gay inspired by William D. Clinger's paper "How to Read Floating
- Point Numbers Accurately" [Proc. ACM SIGPLAN '90, pp. 92-101].
- a patch from Satoshi Nakagawa <snakagawa AT infoteria.co.jp>.
- [ruby-dev:31582]
-
- * test/ruby/test_float.rb (TestFloat::test_float): add test for
- precision.
-
-Wed Aug 22 03:51:07 2007 Koichi Sasada <ko1@atdot.net>
-
- * cont.c: add Fiber#resume and Fiber.yield.
- and Fiber::Core class to realize Coroutine.
-
- * include/ruby/intern.h: declare rb_fiber_yield(), rb_fiber_resume().
-
- * enumerator.c: use above api.
-
- * test/ruby/test_fiber.rb: fix and add tests for above changes.
-
-Tue Aug 21 21:09:48 2007 Tanaka Akira <akr@fsij.org>
-
- * lib/tmpdir.rb (Dir.mktmpdir): make directory suffix specifiable.
- suggested by knu. [ruby-dev:31568]
-
-Tue Aug 21 15:00:23 2007 Koichi Sasada <ko1@atdot.net>
-
- * st.c (st_clear): reset num_entries too.
-
-Tue Aug 21 13:57:04 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * hash.c (st_foreach_func, rb_foreach_func): typedefed.
-
- * hash.c (rb_hash_clear): use st_clear() unless iterating.
-
- * st.c (struct st_table_entry): add new members, fore and back, to
- iterate in inserted order.
+ * ext/tk/tcltklib.c (lib_eventloop_core): revert the last change (it's
+ the part for ruby_1_8), and use rb_thread_check_ints() when RUBY_VM
+ is defined.
- * include/ruby/st.h (struct st_table): ditto.
+Wed Jun 15 04:42:47 2011 Koichi Sasada <ko1@atdot.net>
-Tue Aug 21 04:09:06 2007 Koichi Sasada <ko1@atdot.net>
+ * benchmark/bm_vm3_thread_*.rb: renamed bm_vm3_thread_*.rb to
+ benchmark/bm_vm_thread_*.rb.
- * benchmark/bm_vm2_case.rb: add a new benchmark.
- YARV optimize case/when syntax. If every conditions
- are literal (such as Symbol, Fixnum, String), dispatch
- calc order will be O(1).
+Wed Jun 15 04:28:39 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
-Tue Aug 21 04:08:07 2007 Koichi Sasada <ko1@atdot.net>
+ * benchmark/bm_vm4_thread_pass.rb: rename bm_vm4* to
+ bm_vm_thread_*. suggested by ko1.
+ * benchmark/bm_vm4_pipe.rb: ditto.
+ * benchmark/bm_vm4_alive_check1.rb: ditto.
+ * benchmark/bm_vm4_pass_flood.rb: ditto.
- * test/ruby/test_enumerator.rb: fix last commit.
+Wed Jun 15 03:52:50 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
-Tue Aug 21 03:59:32 2007 Koichi Sasada <ko1@atdot.net>
+ * benchmark/bm_vm4_pass_flood.rb: new benchmark for GVL fairness.
+ * benchmark/bm_vm4_alive_check1.rb: ditto.
- * test_enumerator.rb (enum_test): fix to return sorted
- array (for Hash test).
+Wed Jun 15 01:27:53 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
-Tue Aug 21 03:55:20 2007 Koichi Sasada <ko1@atdot.net>
+ * thread_pthread.c (gvl_yield): fix live lock issue on 1-2 cpus
+ system. It's additional fix for r32021.
+ * thread_pthread.c (gvl_init): add switch_wait_cond.
+ * thread_pthread.h (typedef struct rb_global_vm_lock_struct): ditto.
- * enumerator.c (next_i): fix to return with Fiber#yield at
- the end of each block. [ruby-dev:31470]
+Tue Jun 14 23:16:22 2011 Tanaka Akira <akr@fsij.org>
- * enumerator.c (enumerator_next_p): call init_next if not
- initialized. [ruby-dev:31514]
+ * bootstraptest/runner.rb (show_progress): refine verbose mode.
+ (exec_test): ditto.
- * test/ruby/test_enumerator.rb: add tests for Enumerator.
+Tue Jun 14 23:02:36 2011 Tanaka Akira <akr@fsij.org>
-Mon Aug 20 23:28:39 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * bootstraptest/runner.rb (show_progress): extracted from assert_check.
+ (assert_check): use show_progress.
+ (assert_normal_exit): ditto.
+ (assert_finish): ditto.
+ (flunk): ditto.
- * string.c (Init_String): remove Symbol.intern and Symbol#dump.
- [ruby-dev:31525]
+Tue Jun 14 22:51:42 2011 Tadayoshi Funaba <tadf@dotrb.org>
- * dir.c (dir_foreach): return Enumerator if no block given.
- [ruby-dev:31525]
+ * test/date/test_*.rb: added tests.
- * io.c (rb_io_s_foreach): argument count check before making
- Enumerator. [ruby-dev:31525]
+Tue Jun 14 22:09:58 2011 Tadayoshi Funaba <tadf@dotrb.org>
-Mon Aug 20 23:17:14 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * ext/date/date_core.c: renamed some functions.
+ * ext/date/date_core.c: modified doc.
- * vm_core.h (struct rb_thread_struct): removed first_func_arg and
- reuse first_args instead.
+Tue Jun 14 21:26:01 2011 CHIKANAGA Tomoyuki <nagachika00@gmail.com>
-Sun Aug 19 13:31:40 2007 Tanaka Akira <akr@fsij.org>
+ * cont.c (cont_save_thread): add new utility function.
+ rb_context_t::saved_thread.machine_stack_start and
+ machine_stack_end should be cleared immediately after a snapshot of
+ current thread is stored to saved_thread. [ruby-dev:43680] [Bug #4855]
+ this change aims to get rid of unnecessary GC mark at machine stack.
- * gc.c: use VALGRIND_MAKE_MEM_UNDEFINED to detect use of collected
- objects if valgrind is available. It cannot detect first 2 words
- because they are used as the free list.
+Tue Jun 14 19:50:49 2011 Tanaka Akira <akr@fsij.org>
-Sun Aug 19 13:13:52 2007 Koichi Sasada <ko1@atdot.net>
+ * test/ruby/test_autoload.rb: remove temporary directory.
- * compile.c (iseq_compile_each/NODE_RESBODY): fix to add
- additional nop to prevent tailcall optimization.
+Tue Jun 14 11:05:03 2011 Narihiro Nakamura <narihiro@netlab.jp>
- * vm_opts.h: clean up comments.
+ * gc.c (rb_gc_set_params): call initial_expand_heap if
+ initial_heap_min_slots is set.
-Sun Aug 19 12:58:39 2007 Koichi Sasada <ko1@atdot.net>
+Tue Jun 14 11:02:08 2011 Narihiro Nakamura <narihiro@netlab.jp>
- * insnhelper.ci (vm_call_bmethod): fix to propagate information
- that this proc is "from Method". [ruby-dev:31490]
+ * gc.c: use size_t.
- * proc.c (method_proc, rb_mod_define_method): ditto.
+Tue Jun 14 01:10:38 2011 Yusuke Endoh <mame@tsg.ne.jp>
- * vm.c (vm_invoke_proc_core): removed.
+ * test/coverage/test_coverage.rb: add a test for restart. a patch
+ from Xavier Shay. [ruby-core:36745]
- * vm_core.h: ditto.
+Tue Jun 14 01:05:10 2011 Yusuke Endoh <mame@tsg.ne.jp>
-Sun Aug 19 12:36:11 2007 Tanaka Akira <akr@fsij.org>
+ * ext/coverage/coverage.c: make it restartable. [ruby-core:36539]
- * test/ruby/sentence.rb: new method Sentence().
+Mon Jun 13 23:55:40 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
-Sun Aug 19 12:32:39 2007 Koichi Sasada <ko1@atdot.net>
+ * thread.c (rb_thread_schedule_rec): call gvl_yield() unconditionally.
+ * thread_pthread.c: remove HAVE_GVL_YIELD macro.
+ * thread_win32.c (gvl_yield): new. this fallback logic was moved from
+ rb_thread_schedule_rec().
- * insnhelper.ci (vm_callee_setup_arg): fix to mark enough VM stack.
- [ruby-dev:31492]
+Mon Jun 13 23:50:25 2011 NAKAMURA Usaku <usa@ruby-lang.org>
-Sat Aug 18 19:02:34 2007 Tanaka Akira <akr@fsij.org>
+ * ext/io/console/console.c (console_dev): typo.
- * test/ruby/test_yield.rb (TestYieldGen): relax array size check
- in nested parameters.
- [ruby-dev:31485]
+Mon Jun 13 23:38:23 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Sat Aug 18 17:44:42 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * parse.y (parser_parse_string): flush delayed token. based on a
+ patch by Masaya Tarui in [ruby-dev:43762]. Bug #4544
- * ext/tk/tcltklib.c (Init_tcltklib): use rb_set_end_proc().
+ * parse.y (yylex): revert r24557. delayed token at the end of
+ string should be flushed already by the above change.
-Sat Aug 18 17:40:11 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Mon Jun 13 23:33:31 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * thread.c (is_ruby_native_thread): check properly. [ruby-dev:31166]
+ * ext/io/console/console.c (console_dev): console should be
+ unbuffered.
-Sat Aug 18 16:44:15 2007 Koichi Sasada <ko1@atdot.net>
+ * ext/io/console/console.c (console_dev): take care of no-ctty
+ case.
- * insnhelper.ci (vm_call_bmethod),
- vm.c (vm_invoke_proc_core): fix to do not restore
- $SAFE when proc invoked by bmethod.
+Mon Jun 13 23:06:12 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
+ * thread_pthread.c: rewrite GVL completely. This fix improve some
+ benchmark dramatically (e.g. vm3_thread_mutex result changed
+ form 120.601sec to 3.426sec).
+ * thread_win32.c: ditto.
+ * thread_pthread.h: ditto.
* vm_core.h: ditto.
+ * thread.c: ditto.
-Sat Aug 18 16:44:49 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * eval_error.ci (ruby_error_print): call error_print.
-
- * eval_jump.ci, process.c (rb_exit, rb_f_exit, rb_f_abort): moved.
-
-Sat Aug 18 15:59:52 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * process.c (detach_process_watcher): should not pass the pointer
- to an auto variable to the thread to be created. pointed and
- fix by KUBO Takehiro <kubo at jiubao.org> [ruby-dev:30618]
-
-Sat Aug 18 15:52:50 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * insnhelper.ci (vm_send_optimize): use MEMMOVE to shift values inside
- an array.
-
-Sat Aug 18 15:45:34 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * insnhelper.ci (vm_yield_setup_args): rsize and psize should not be
- negative.
-
-Sat Aug 18 14:35:00 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * insnhelper.ci (vm_callee_setup_arg, vm_send_optimize,
- vm_yield_setup_args): bulk copy for arguments.
-
-Sat Aug 18 13:55:58 2007 Koichi Sasada <ko1@atdot.net>
-
- * compile.c (iseq_compile_each): fix to allow self.x=
- if x= is private.
-
- * bootstraptest/test_method.rb: add a test for above.
-
-Sat Aug 18 14:05:34 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * parse.y (reg_compile_gen): obtain error info from errinfo.
-
- * re.c (rb_reg_error_desc): make RegexpError for initialization error.
-
- * re.c (rb_reg_compile): return nil and set errinfo if error.
-
-Sat Aug 18 13:23:01 2007 Koichi Sasada <ko1@atdot.net>
-
- * eval.c: $! should not be writable.
-
- * eval.c (rb_rubylevel_errinfo): added. rb_errinfo() returns
- rb_thread_t#errinfo. rb_rubylevel_errinfo() returns $! value.
-
-Sat Aug 18 13:14:40 2007 Koichi Sasada <ko1@atdot.net>
-
- * insnhelper.ci (vm_callee_setup_arg): fix to check arguments
- correctly. [ruby-dev:31472]
-
-Sat Aug 18 13:13:06 2007 Koichi Sasada <ko1@atdot.net>
-
- * bootstraptest/test_exception.rb: add escape character ("\") for
- editors.
-
-Sat Aug 18 12:42:50 2007 Tanaka Akira <akr@fsij.org>
-
- * test/ruby/test_yield.rb (TestYieldGen): add test for yielding to
- lambda using lambda parameter passing emulator.
-
-Sat Aug 18 12:24:30 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * sample/test.rb, test/ruby/test_system.rb(valid_syntax?): keep
- comment lines first.
-
-Sat Aug 18 11:44:59 2007 Koichi Sasada <ko1@atdot.net>
-
- * compile.c (iseq_set_arguments), insnhelper.ci
- (vm_callee_setup_arg, vm_yield_setup_args):
- fix to cause raise on "lambda{|a|}.call(1, 2)".
- [ruby-dev:31464]
-
- * bootstraptest/test_block.rb: add tests for above.
-
-Sat Aug 18 01:12:01 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * eval.c (frame_func_id): return proper method ID.
-
-Fri Aug 17 22:43:11 2007 Koichi Sasada <ko1@atdot.net>
-
- * compile.c (iseq_compile_each): massign should return rvalue(s).
-
-Fri Aug 17 22:10:19 2007 Koichi Sasada <ko1@atdot.net>
-
- * test/ruby/test_basicinstructions.rb: fix old tests.
- class variables should be inherited.
-
-Fri Aug 17 21:20:44 2007 Koichi Sasada <ko1@atdot.net>
-
- * eval.c (rb_call), eval_method.ci (rb_add_method, rb_alias),
- insnhelper.ci (vm_call_method): fix to save safelevel for
- method node.
-
- * include/ruby/node.h: ditto.
-
- * bootstraptest/test_method.rb: add a test for above.
-
-Fri Aug 17 16:02:50 2007 Koichi Sasada <ko1@atdot.net>
-
- * thread.c (rb_thread_terminate_all): fix to ignore
- exceptions.
-
- * thread.c (thread_start_func_2): fix
- abort_on_exception process. [ruby-dev:31394]
-
-Fri Aug 17 14:38:36 2007 Tanaka Akira <akr@fsij.org>
-
- * bootstraptest/runner.rb (in_temporary_working_directory): use
- Dir.mktmpdir to create and remove temporary directory.
- (Dir.mktmpdir): define if not available.
- [ruby-dev:31431]
-
-Fri Aug 17 03:07:37 2007 Koichi Sasada <ko1@atdot.net>
-
- * compile.c (iseq_compile_each): fix throw insn option of next.
-
-Fri Aug 17 01:25:23 2007 Koichi Sasada <ko1@atdot.net>
-
- * compile.c (iseq_set_arguments), insnhelper.ci
- (vm_callee_setup_arg, vm_yield_setup_args): fix
- block parameter problems. [ruby-dev:31437], [ruby-dev:31440]
-
- * bootstraptest/test_block.rb: add a test of [ruby-dev:31440].
-
-Fri Aug 17 01:24:12 2007 Koichi Sasada <ko1@atdot.net>
-
- * iseq.c (ruby_iseq_disasm): fix to show arg_simple value.
-
-Fri Aug 17 01:21:29 2007 Koichi Sasada <ko1@atdot.net>
-
- * insns.def (throw): insert a RUBY_VM_CHECK_INTS(). [ruby-dev:31361]
-
-Thu Aug 16 20:40:50 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * bignum.c (bigtrunc): RBIGNUM(x)->len may be zero. out of bound
- access. [ruby-dev:31404]
-
- * sprintf.c (rb_str_format): small float should not call
- rb_dbl2big().
-
-Thu Aug 16 22:10:06 2007 Koichi Sasada <ko1@atdot.net>
-
- * compile.c (iseq_compile_each): fix next/redo stack consistency.
- [ruby-dev:31373]
-
- * bootstraptest/test_syntax.rb: add tests for above.
-
- * sample/test.rb: fix to use __FILE__ instead of $0 to know basedir.
-
-Thu Aug 16 21:14:06 2007 WATANABE Hirofumi <eban@ruby-lang.org>
-
- * configure.in (BASERUBY): need AC_SUBST. [ruby-dev:31438]
-
-Thu Aug 16 19:18:26 2007 Tanaka Akira <akr@fsij.org>
-
- * test/ruby/sentence.rb: Sentence class implemented
- based on sentgen.rb
-
- * test/ruby/sentgen.rb: removed.
-
- * test/ruby/test_assignment.rb: use sentence.rb.
-
- * test/ruby/test_yield.rb: block parameter passing emulator
- implemented.
-
-Thu Aug 16 16:48:47 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * configure.in (BASERUBY): check if base ruby is runnable first.
- [ruby-core:11900]
-
-Thu Aug 16 16:46:07 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * configure.in (aix): enable shared by default.
-
- * configure.in (aix): for 64bit-mode AIX. [ruby-dev:31401]
- + use CC for LDSHARED if non-gcc,
- + moved -G option from *LDFLAGS to LDSHARED,
- + set -brtl only in XLDFLAGS.
-
-Thu Aug 16 13:06:08 2007 Tanaka Akira <akr@fsij.org>
-
- * bignum.c (big_lshift): make shift offset long type.
- (big_rshift): ditto.
- (rb_big_lshift): ditto.
- (big_rshift): ditto.
- [ruby-dev:31434]
-
-Thu Aug 16 06:29:08 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * io.c (argf_readpartial): argf_forward needs argc and argv.
-
-Thu Aug 16 02:47:39 2007 Koichi Sasada <ko1@atdot.net>
-
- * cont.c (rb_fiber_m_yield): added. use this function
- for Fiber#yield instead of rb_fiber_yield.
-
-Thu Aug 16 00:36:52 2007 Tanaka Akira <akr@fsij.org>
-
- * lib/tmpdir.rb (Dir.mktmpdir): new method. [ruby-dev:31416]
-
-Wed Aug 15 18:57:30 2007 Koichi Sasada <ko1@atdot.net>
-
- * gc.c (os_live_obj): fix to skip T_VALUES.
-
- * sample/test.rb: add an ObjectSpace test.
-
-Wed Aug 15 16:49:04 2007 Koichi Sasada <ko1@atdot.net>
-
- * inits.c (rb_call_inits): change initializing order.
- [ruby-dev:31420]
-
-Wed Aug 15 16:44:15 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * io.c (ARGF_FORWARD): wrongly compares with current_file with
- rb_stdout. should be rb_stdin. [ruby-cvs:20177]
-
-Wed Aug 15 14:59:21 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * io.c (rb_io_initialize, argf_each_line, argf_each_byte): suppress
- warnings.
-
-Wed Aug 15 14:22:05 2007 Koichi Sasada <ko1@atdot.net>
-
- * parse.y: remove "//" type comment.
-
-Wed Aug 15 13:42:15 2007 Koichi Sasada <ko1@atdot.net>
-
- * parse.y: fix rules around f_margs. "make test" passes all tests.
-
- * bootstraptest/test_block.rb: add some tests for above.
-
-Wed Aug 15 13:50:10 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * hash.c (rb_hash_delete_key): delete the entry without calling block.
-
- * hash.c (rb_hash_shift): should consider iter_lev too.
-
- * hash.c (delete_if_i): use rb_hash_delete_key() so that the block
- isn't called twice. [ruby-core:11556]
-
-Wed Aug 15 13:39:25 2007 Koichi Sasada <ko1@atdot.net>
-
- * process.c (proc_geteuid): fix strange conversion. [ruby-dev:31417]
-
-Wed Aug 15 01:05:55 2007 Tanaka Akira <akr@fsij.org>
-
- * bootstraptest/runner.rb (assert_check): don't call newtest.
- (assert_equal): call newtest.
- (assert_match): ditto.
-
-Tue Aug 14 21:43:39 2007 Tanaka Akira <akr@fsij.org>
-
- * bootstraptest/runner.rb (assert_check): new method.
- (assert_match): new method.
- (assert_equal): use assert_check.
- (pretty): give failure description as an argument.
-
- * bootstraptest/test_exception.rb: use assert_match to describe the
- test for [ruby-dev:31407]. [ruby-dev:31412]
-
-Tue Aug 14 19:53:15 2007 Koichi Sasada <ko1@atdot.net>
-
- * proc.c (Init_Proc), eval.c (Init_eval), eval_intern.h: move
- init place of exception_error.
-
- * inits.c: ditto.
-
- * eval.c (Init_eval): set exception_error#throwed_state as TAG_FATAL.
- [ruby-dev:31407]
-
- * bootstraptest/test_exception.rb: add a test for above.
-
-Tue Aug 14 19:51:20 2007 Koichi Sasada <ko1@atdot.net>
-
- * common.mk: change test order (test -> btest).
-
-Tue Aug 14 00:04:27 2007 Kouhei Sutou <kou@cozmixng.org>
-
- * lib/rss/rss.rb: 0.1.8 -> 0.1.9.
-
- * test/rss/test_version.rb: followed the above change.
-
- * lib/rss/parser.rb: fixed a bug that handles unintended elements.
- Thanks to Takuo Yonezawa. [ruby-list:43841]
-
-Mon Aug 13 17:23:10 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * eval.c (rb_clear_trace_func, rb_thread_stop_timer_thread):
- declarations for forward references.
-
- * eval.c (rb_longjmp, eval): use local variable.
-
- * eval.c (rb_longjmp): string object not to be optimized.
-
-Mon Aug 13 13:21:58 2007 Tanaka Akira <akr@fsij.org>
-
- * lib/open-uri.rb: make ftp passive mode to avoid NAT problem.
- [ruby-dev:31377]
-
-Mon Aug 13 09:18:05 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * ext/stringio/stringio.c (strio_getc): should returns
- one-character string.
-
- * ext/stringio/stringio.c: remove unnecessary prototypes.
-
- * ext/stringio/stringio.c (strio_getbyte): new method.
-
- * ext/stringio/stringio.c (strio_readbyte): new method.
-
- * ext/stringio/stringio.c (strio_ungetc): should take a string as
- an input.
-
-Mon Aug 13 08:19:43 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * io.c (argf_close): always close via method.
-
- * io.c (Init_IO): remove obsolete Kernel#getc.
-
-Mon Aug 13 05:03:53 2007 Koichi Sasada <ko1@atdot.net>
-
- * thread.c (rb_thread_raise): check if target thread is
- thrown by another thread or not. [ruby-dev:31371]
-
- * bootstraptest/test_thread.rb: add a test for above.
-
-Mon Aug 13 04:35:30 2007 Koichi Sasada <ko1@atdot.net>
-
- * compile.c (iseq_peephole_optimize): fix peephole optimization
- bug. [ruby-dev:31360]
-
- * bootstraptest/test_syntax.rb: add a test for above.
-
-Mon Aug 13 04:02:29 2007 Koichi Sasada <ko1@atdot.net>
-
- * vm_dump.c (debug_print_pre): fix to show control frame count.
-
- * insns.def (opt_call_c_function): fix operand type.
-
- * lib/vm/instruction.rb: ditto.
-
- * insnhelper.ci (vm_push_frame, vm_pop_frame): fix to show
- control stack status on if VMDEBUG == 2.
-
- * vm.h: add a comment about VMDEBUG.
-
- * iseq.c (find_prev_line_no): fix to skip bug report if
- line is not found.
-
- * lib/vm/instruction.rb: fix to use build_string() on
- source code generators.
-
-Mon Aug 13 03:57:32 2007 Koichi Sasada <ko1@atdot.net>
-
- * template/yasmdata.rb.tmpl: fix type and name.
-
-Sat Aug 11 23:27:37 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * io.c (argf_each_line): should use #each_line, not #each.
-
- * io.c (argf_each_line): simplified.
-
- * io.c (argf_getline): should handle non T_FILE object in ARGV.
-
- * io.c (argf_each_byte): each_byte should yield bytes not
- one-character strings. [ruby-dev:31374]
-
-Sat Aug 11 07:24:55 2007 Tadayoshi Funaba <tadf@dotrb.org>
-
- * lib/date/format.rb: reverted some wrongly erased "o" options
- (pointed out by nobu).
-
-Sat Aug 11 00:01:12 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * thread.c (thread_start_func_2): not re-raise to main thread if it is
- joining the current thread.
-
-Fri Aug 10 23:54:46 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * thread.c (thread_create_core): inherit the priority of creating
- thread. submitted at [ruby-core:11873] by David Flanagan <david AT
- davidflanagan.com>. [ruby-core:11876]
-
-Fri Aug 10 05:12:19 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * thread.c (thread_start_func_2): let abort_on_exception work.
- [ruby-core:11873]
-
-Fri Aug 10 04:47:09 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * parse.y (internal_id_gen): internal ID must be bigger than
- tLAST_TOKEN.
-
-Thu Aug 9 16:04:55 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * parse.y (stmt): check if rhs has value before assignment instead
- inside node_assign_gen(). [ruby-dev:31293]
-
- * parse.y (call_bin_op_gen, call_uni_op_gen): split call_op_gen.
-
-Thu Aug 9 14:01:36 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * parse.y (f_marg_list): renamed from f_marg_head.
-
- * parse.y (f_margs): allow multiple mandatory arguments after a splat.
- [ruby-dev:31153]
-
-Thu Aug 9 02:02:02 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * enum.c (enum_cycle): typo fixed. a patch from Kazuhiro
- NISHIYAMA <zn AT mbf.nifty.com>. [ruby-dev:31362]
-
-Wed Aug 8 19:17:40 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * ext/dl/cptr.c (rb_dlptr_s_to_ptr): no longer check
- HAVE_RB_IO_STDIO_FILE.
-
-Wed Aug 8 15:52:01 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * enumerator.c (enumerator_next_p): should check correctly even when
- e.next has not been called before.
-
- * enumerator.c (enumerator_next): raise StopIteration (name taken
- from Python) instead of IndexError.
-
- * enum.c (enum_zip): catch StopIteration exception.
-
- * enumerator.c (enumerator_with_index): return Enumerator if no
- block is given.
-
- * test/ruby/test_iterator.rb (TestIterator::test_enumerator): add
- test for enumerators.
-
-Wed Aug 8 11:48:37 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * bignum.c (rb_big2str0): should not use RTEST for non-VALUE.
-
-Wed Aug 8 11:25:25 2007 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * bignum.c (rb_big2str0): should preserve sign mark.
-
-Wed Aug 8 11:02:43 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * common.mk (btest-miniruby, test-sample): split the test target
- so that -k option works.
-
-Tue Aug 7 14:58:39 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/pty/pty.c (establishShell): handshaking before close slave
- device. [ruby-talk:263410]
-
- * ext/pty/pty.c (MasterDevice, SlaveDevice, deviceNo): constified.
-
- * ext/pty/pty.c (SlaveName): removed static buffer.
-
- * ext/pty/expect_sample.rb: support for autologin.
-
-Tue Aug 7 13:58:03 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * include/ruby/ruby.h (ruby_special_consts): added RUBY_SPECIAL_SHIFT.
-
- * .gdbinit: some improvements.
-
-Tue Aug 7 13:28:32 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * common.mk (node_name.inc): use $? instead of $< for nmake.
- [ruby-dev:31356]
-
-Tue Aug 7 12:45:13 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * configure.in (ac_cv_func_isinf): set yes also on OpenSolaris.
- [ruby-Bugs-12859]
-
-Tue Aug 7 12:31:51 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * io.c (pipe_open): fix for win32 platforms.
-
-Tue Aug 7 02:58:33 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * bignum.c (rb_big2str0): make Bignum#to_s even faster. a patch
- from Kenta Murata <muraken AT gmail.com>. [ruby-dev:31354]
-
-Tue Aug 7 01:42:05 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * enum.c (enum_zip): zip no longer converts arguments into
- arrays, uses enumerators.
-
-Tue Aug 7 01:27:47 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * cont.c (rb_fiber_yield): change argument ordering. export.
-
- * cont.c (rb_fiber_current): export
-
- * include/ruby/intern.h: export several functions from cont.c.
-
- * enumerator.c (enumerator_next): new method to implement external
- iterator (generator) using fiber.
-
- * enumerator.c (enumerator_next_p): new method to check whether
- any element is left in the generator sequence.
-
- * enumerator.c (enumerator_rewind): a new method to rewind the
- generator sequence.
-
-Tue Aug 7 01:15:24 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * enum.c (enum_cycle): new method to cycle enumerable forever.
-
-Tue Aug 7 00:05:38 2007 Keiju Ishitsuka <keiju@ruby-lang.org>
-
- * irb/ruby-lex.rb: support for '\c'. [ruby-talk:263508]
-
-Mon Aug 6 20:29:22 2007 Koichi Sasada <ko1@atdot.net>
-
- * insnhelper.ci, insns.def: move some statements to functions.
-
- * vm.c, vm.h, vm_evalbody.ci: fix include/typedef places.
-
-Mon Aug 6 18:41:12 2007 Koichi Sasada <ko1@atdot.net>
-
- * lib/vm/instruction.rb (make_header_analysys): fix last commit.
-
-Mon Aug 6 18:33:22 2007 Koichi Sasada <ko1@atdot.net>
-
- * lib/vm/instruction.rb (make_header_analysys): add to separate
- header addition process.
-
-Mon Aug 6 17:36:29 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/rexml/encodings/{ISO-8859-15,CP-1252}.rb: fixed invalid syntax.
-
-Mon Aug 6 16:57:08 2007 Koichi Sasada <ko1@atdot.net>
-
- * sample/test.rb: fix to output file name if it contains
- invalid syntax.
-
-Mon Aug 6 16:41:22 2007 Koichi Sasada <ko1@atdot.net>
-
- * parse.y (value_expr_gen): fix to cause "void value expression"
- when jump expression such as "next" are shown on value_expr().
- [ruby-dev:31119]
-
- * bootstraptest/test_syntax.rb: fix to above change.
-
-Mon Aug 6 14:36:30 2007 Koichi Sasada <ko1@atdot.net>
-
- * parse.y: fix a f_marg rule. [ruby-dev:31160]
-
-Mon Aug 6 14:29:30 2007 Koichi Sasada <ko1@atdot.net>
-
- * bootstraptest/runner.rb (assert_equal): add additional
- message parameter.
-
-Mon Aug 6 13:34:09 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * common.mk (INSNS): not chdir to srcdir.
-
- * common.mk (node_name.inc): auto-generate node name list.
-
- * iseq.c (ruby_node_name): ditto.
-
- * iseq.c (iseq_s_compile_option_get, Init_ISeq): added a new
- method VM::InstructionSequence::compile_option.
-
- * lib/vm/instruction.rb (RubyVM::SourceCodeGenerator): --destdir
- option.
-
- * tool/node_name.rb: to auto-generate node name list.
-
-Sun Aug 5 11:51:39 2007 Kouhei Sutou <kou@cozmixng.org>
-
- * lib/rss, sample/rss, test/rss:
- - 0.1.7 -> 0.1.8.
- - supported <itunes:XXX>.
- - reverted backward incompatibility API changes introduced 0.1.7.
-
-Sun Aug 5 04:56:25 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * io.c (pipe_open_v, pipe_open_s): separate array and string
- cases. [ruby-dev:31344]
-
-Fri Aug 3 11:05:54 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/extmk.rb (extmake): save all CONFIG values.
-
- * ext/extmk.rb (extmake): remove mkmf.log at clean, and extconf.h at
- distclean, respectively.
-
- * ext/extmk.rb: remove rdoc at clean, and installed list file at
- distclean, respectively.
-
-Fri Aug 3 07:09:05 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/mkmf.rb: more verbose message. [ruby-Bugs-12766]
-
- * lib/mkmf.rb (have_type): suppress a warning with -Wall.
-
- * lib/mkmf.rb (find_type): new method.
-
-Fri Aug 3 00:00:20 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * bignum.c (big2str_table): base cannot be 0 or 1.
-
-Thu Aug 2 23:42:57 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * parse.y (reg_compile_gen): set error if failed to compile regexp
- literal. [ruby-dev:31336]
-
- * re.c (option_to_str, arg_kcode, opt_kcode): options conversion
- between int and string.
-
- * re.c (rb_reg_compile): should not use regexp which could not get
- initialized. [ruby-dev:31333]
- return error message to let the parser know it.
-
- * re.c (rb_reg_compile): append regexp options to error message.
- [ruby-dev:31334]
-
-Thu Aug 2 22:05:32 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * bignum.c (rb_big2str0): faster Bignum#to_s using Karatsuba
- algorithm. a patch from Yusuke ENDOH <mame AT tsg.ne.jp>
- in [ruby-dev:31312], slightly modified by Kenta Murata
- <muraken AT gmail.com> in [ruby-dev:31339].
-
-Thu Aug 2 13:46:39 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * sprintf.c (rb_f_sprintf): should not check positional number as
- width. [ruby-core:11838]
-
-Wed Aug 1 12:40:05 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * generic.rb (URI::Generic::merge_path): behave as RFC 3986.
- [ruby-talk:252052]
-
-Tue Jul 31 23:38:09 2007 Tadayoshi Funaba <tadf@dotrb.org>
-
- * lib/date/format.rb (_parse): now interprets slashed numerical
- dates as a big endian (except dd/mm/yyyy). [experimental]
-
-Mon Jul 30 11:16:40 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * bignum.c (rb_big_aref): check for Bignum index range.
- [ruby-dev:31271]
-
-Sat Jul 28 09:35:41 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * ext/digest/lib/digest.rb (Digest::self.const_missing): avoid
- infinite recursive const_missing call. [ruby-talk:262193]
-
-Thu Jul 26 20:40:25 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * range.c (range_eqq): call_super() in === does not work well
- since Enumerable#=== has different behavior. [ruby-dev:31296]
-
-Thu Jul 26 13:57:45 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * dln.c (load_1, dln_find_1): constified.
-
- * dln.c (conv_to_posix_path): removed.
-
- * ruby.c (usage): constified.
-
- * ruby.c (rubylib_mangled_path, rubylib_mangled_path2): return
- VALUE instead of a pointer to static buffer.
-
- * ruby.c (push_include_cygwin): fixed buffer overflow.
- [ruby-dev:31297]
-
- * ruby.c (ruby_init_loadpath): not convert built-in paths.
-
-Tue Jul 24 10:37:04 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * io.c (rb_f_p): return nil if no argument. [ruby-dev:31285]
-
-Tue Jul 24 01:05:07 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * regint.h (USE_MATCH_RANGE_IS_COMPLETE_RANGE): undef to achieve old
- rindex behavior. [ruby-dev:31265]
-
-Mon Jul 23 18:37:14 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * include/ruby/oniguruma.h: upgrade to Oniguruma 5.9.0. fixes
- some memory violation. [ruby-dev:31070]
-
-Sun Jul 22 20:09:49 2007 Tadayoshi Funaba <tadf@dotrb.org>
-
- * lib/date/format.rb (Date._parse): now accepts some new
- hints. [experimental]
-
- * lib/parsedate.rb: followed the changes on
- lib/date/format.rb. [experimental]
-
-Sun Jul 22 16:06:56 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * thread.c (is_ruby_native_thread): made an int function as
- well as version 1.8.
-
- * include/ruby/ruby.h (is_ruby_native_thread): moved prototype
- from intern.h as well as version 1.8.
-
-Sun Jul 22 14:33:46 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * file.c (rb_file_s_rename): deleted code to get rid of a bug of
- old Cygwin.
-
- * file.c (rb_file_truncate): added prototype of GetLastError()
- on cygwin. [ruby-dev:31239]
-
- * include/ruby/intern.h (is_ruby_native_thread): prototype.
-
- * missing/strftime.c (strftime): fix printf format and actual
- arguments.
-
- * ext/Win32API/Win32API.c (Win32API_initialize): ditto.
-
- * ext/tk/tcltklib.c (ip_finalize): ditto.
-
- * ext/win32ole/win32ole.c (lcid_installed): ditto.
-
- * ext/socket/getnameinfo.c: include stdio.h always.
-
-Sat Jul 21 21:39:12 2007 Tadayoshi Funaba <tadf@dotrb.org>
-
- * lib/date.rb, lib/date/format.rb (Date._parse): now can take some
- hints (its aim must be mainly determination of endianness of
- date). [experimental]
-
- * lib/date.rb, lib/date/format.rb (Date._parse): now completes
- truncated year as default action. [experimental]
-
- * lib/date.rb, lib/date/format.rb: added ::iso8601, ::rfc3339,
- ::xmlschema, ::rfc2822, ::httpdate, ::jisx0301, #xmlschema,
- #httpdate. [experimental]
-
-Sat Jul 21 17:48:26 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * common.mk: inverted rules order.
-
- * thread_win32.ci (w32_create_thread): bcc does not have
- _beginthreadex().
-
- * lib/mkmf.rb (create_makefile): make OBJS depend on RUBY_EXTCONF_H
- only if extconf.h is created.
-
- * bcc32/Makefile.sub: headers have moved.
-
- * bcc32/{Makefile.sub,configure.bat,setup.mak: configure_args
- support.
-
- * bcc32/setup.mak: check runtime version.
-
- * win32/win32.c (rb_w32_open_osfhandle): prototype has changed
- in bcc 5.82.
-
- * {win32,wince,bcc32}/setup.mak (-version-): no RUBY_EXTERN magic.
-
- * win32/resource.rb: include patchlevel number.
-
-Sat Jul 21 12:06:48 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/mkmf.rb (init_mkmf): should remove mkmf.log too.
-
-Sat Jul 21 01:45:03 2007 Tadayoshi Funaba <tadf@dotrb.org>
-
- * lib/date/format.rb (Date._parse): completes calendar week based year.
-
- * lib/date/format.rb (Date._parse): detects year of ordinal date in
- extended format.
-
-Fri Jul 20 16:30:31 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * compile.c (iseq_set_sequence): raise SyntaxError instead of rb_bug
- since this function can be called from VM::InstructionSequence.load.
-
- * compile.c (insn_set_sc_state, iseq_set_sequence_stackcaching): ditto.
-
-Fri Jul 20 16:11:33 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * compile.c, compile.h (DECL_ANCHOR, INIT_ANCHOR): split not to
- initialize aggregations with dynamic values. [ruby-talk:259306]
-
- * eval.c (rb_protect): not to initialize aggregations with dynamic
- values. [ruby-talk:259306]
-
- * gc.c (mark_current_machine_context): ditto.
-
- * thread.c (thgroup_list, call_trace_func): ditto.
-
- * vm.c (vm_init_redefined_flag): ditto.
-
-Fri Jul 20 15:22:51 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/openssl/ossl_config.c (ossl_config_set_section): do not
- initialize aggregations with dynamic values. [ruby-talk:259306]
-
-Fri Jul 20 10:39:28 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * parse.y (stmt, mlhs_node, lhs, arg, var_ref): return dummy
- NODE_BEGIN after errors. [ruby-dev:31100], [ruby-dev:31118]
-
- * parse.y (remove_begin): keep empty NODE_BEGIN, instead of null.
- [ruby-dev:31252], [ruby-dev:31263]
-
-Fri Jul 20 09:50:40 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * bootstraptest/runner.rb (get_result_string): check $?.coredump?
- first.
-
- * bootstraptest/runner.rb (cleanup_coredump, check_coredump): see
- stackdump file too.
-
-Thu Jul 19 20:39:30 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * parse.y (value_expr_gen): warn for empty expression ().
- [ruby-dev:31252]
-
-Thu Jul 19 19:24:14 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * eval_error.ci (get_backtrace): check the result more.
- [ruby-dev:31261] [ruby-bugs-12398]
-
-Thu Jul 19 14:38:45 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * bignum.c (rb_big_lshift, rb_big_rshift): separated functions
- to get rid of infinite recursion. fixed calculation in edge
- cases. [ruby-dev:31244]
-
- * numeric.c (rb_fix_lshift, rb_fix_rshift): ditto.
-
-Wed Jul 18 16:57:41 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * bignum.c (rb_big_pow): refine overflow check. [ruby-dev:31242]
-
-Wed Jul 18 09:19:07 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * parse.y (rb_parser_append_print, rb_parser_while_loop): moved check
- for node to the head.
-
- * ruby.c (proc_options): do nothing for -p/-n options if tree is null.
- submitted by Yusuke ENDOH <mame AT tsg.ne.jp> at [ruby-dev:31243].
-
-Wed Jul 18 08:47:09 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * time.c (time_succ): Time#succ should return a time object in the
- same timezone mode to the original. [ruby-talk:260256]
-
-Mon Jul 16 23:07:51 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/base64.rb (Base64::b64encode): should not specify /o option
- for regular expression. [ruby-dev:31221]
-
-Mon Jul 16 22:57:53 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * sprintf.c (rb_str_format): make %u behave like %d for negative
- values, since decimal format does not work with preceding dots.
- [ruby-core:11575]
-
-Mon Jul 16 18:29:33 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * string.c (rb_str_rindex_m): accept string-like object convertible
- with #to_str method, as well as rb_str_index_m. [ruby-core:11692]
-
-Mon Jul 16 07:17:28 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * insns.def (getspecial): lfp_svar_get() requires int for special
- global variables.
-
-Mon Jul 16 05:45:53 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * sprintf.c (rb_f_sprintf): more checks for format argument.
- [ruby-core:11569], [ruby-core:11570], [ruby-core:11571],
- [ruby-core:11573]
-
-Mon Jul 16 00:26:10 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * bignum.c (rb_big_pow): removed invariant variable. [ruby-dev:31236]
-
-Sun Jul 15 22:24:37 2007 pegacorn <subscriber.jp AT gmail.com>
-
- * ext/dl/cfunc.c (rb_dlcfunc_call): adjust format. [ruby-dev:31222]
-
- * ext/digest/digest.c (rb_digest_instance_update,
- rb_digest_instance_finish, rb_digest_instance_reset,
- rb_digest_instance_block_length): %s in rb_raise() expects char*.
- [ruby-dev:31222]
-
- * ext/openssl/ossl.h: include ossl_pkcs5.h. [ruby-dev:31231]
-
- * ext/openssl/ossl_pkcs5.h: new file for PKCS5. [ruby-dev:31231]
-
- * ext/openssl/ossl_x509name.c (ossl_x509name_to_s): use ossl_raise()
- instead of rb_raise(). [ruby-dev:31222]
-
- * ext/sdbm/_sdbm.c: DOSISH platforms need io.h. [ruby-dev:31232]
-
- * ext/syck/syck.h: include stdlib.h for malloc() and free().
- [ruby-dev:31232]
-
- * ext/syck/syck.h (syck_parser_set_input_type): prototype added.
- [ruby-dev:31231]
-
- * win32/win32.c: include mbstring.h for _mbspbrk(). [ruby-dev:31232]
-
- * include/ruby/win32.h (rb_w32_getcwd): prototype added.
- [ruby-dev:31232]
-
-Sun Jul 15 21:07:43 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * bignum.c (bigtrunc): do not empty Bignum. [ruby-dev:31229]
-
-Sun Jul 15 19:05:28 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * bignum.c (rb_cstr_to_inum): check leading non-digits.
- [ruby-core:11691]
-
-Sun Jul 15 04:42:20 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * bignum.c (get2comp): do nothing for empty Bignum. [ruby-dev:31225]
-
-Sat Jul 14 22:49:30 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * numeric.c (fix_pow): integer power calculation: 0**n => 0,
- 1**n => 1, -1**n => 1 (n: even) / -1 (n: odd).
-
- * test/ruby/test_fixnum.rb (TestFixnum::test_pow): update test
- suite. pow(-3, 2^64) gives NaN when pow(3, 2^64) gives Inf.
-
-Sat Jul 14 18:46:35 2007 Tanaka Akira <akr@fsij.org>
-
- * configure.in: add --with-valgrind.
-
- * gc.h (SET_MACHINE_STACK_END): new macro to replace
- rb_gc_set_stack_end. it find out accurate stack boundary by
- asm using gcc on x86.
-
- * thread.c (rb_gc_set_stack_end): don't define if asm-version
- SET_MACHINE_STACK_END is available.
-
- * gc.c (mark_current_machine_context): extracted from garbage_collect.
- it use SET_MACHINE_STACK_END to not scan out of stack area.
- it notify conservative GC information to valgrind if
- --with-valgrind.
-
-Sat Jul 14 14:04:06 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * enum.c (sort_by_cmp): check if reentered. [ruby-dev:24291]
-
-Sat Jul 14 11:08:28 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * ext/json/ext/generator/generator.c (check_max_nesting): wrong
- format specifier. a patch from pegacorn <subscriber.jp AT gmail.com>.
- [ruby-dev:31217]
-
-Sat Jul 14 02:27:43 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * numeric.c (int_pow): overflow detection using FIT_SQRT_LONG().
- [ruby-dev:31215]
-
-Sat Jul 14 02:05:53 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * insns.def (opt_div): LONG2FIX() may not work for corner cases,
- use LONG2NUM() instead. [ruby-dev:31210]
-
-Sat Jul 14 00:34:01 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * numeric.c (int_round): should not return false, but self.
- [ruby-dev:31212]
-
-Fri Jul 13 18:31:27 2007 Koichi Sasada <ko1@atdot.net>
-
- * include/ruby/intern.h: remove unused function declarations.
-
- * include/ruby/ruby.h: ditto.
-
-Fri Jul 13 17:32:37 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * vm.c (vm_free): clear free'ed living_threads field.
- [ruby-dev:31163]
-
- * insns.def (opt_succ): use cast to shut a warning up.
-
-Fri Jul 13 16:10:00 2007 Tanaka Akira <akr@fsij.org>
-
- * lib/open-uri.rb (URI::Generic#find_proxy): use ENV.to_hash to access
- http_proxy environment variable to avoid case insensitive
- environment search.
-
-Fri Jul 13 15:02:15 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * win32/win32.c (CreateChild): enclose command line except for
- command.com which can not handle quotes. [ruby-talk:258939]
-
-Fri Jul 13 11:33:09 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * range.c (range_max, range_min): return nil for empty set as well as
- 1.8 and Enumerable. [ruby-dev:31198]
-
-Fri Jul 13 11:28:37 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * parse.y (bvar): semicolon was lost for ripper description.
- [ruby-dev:31140]
-
-Fri Jul 13 11:25:10 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * parse.y (program, stmt, primary): reduced duplicated code.
-
- * parse.y (dsym): convert also literals containing NUL to
- symbol.
-
- * parse.y (debug_lines): use rb_hash_lookup() to get rid of
- call of Hash#default.
-
- * parse.y (ripper_warningS): unused in ripper right now.
-
-Fri Jul 13 10:33:29 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * array.c (rb_ary_flatten_bang): check argument if valid
- integer. [ruby-dev:31197]
-
-Fri Jul 13 10:10:46 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/mkmf.rb (link_command, cc_command, cpp_command): do not expand
- ::CONFIG which is an alias of MAKEFILE_CONFIG.
-
-Thu Jul 12 21:38:02 2007 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * insns.def (opt_succ): use LONG_MAX as maximum Fixnum VALUE.
- [ruby-dev:31199]
-
-Thu Jul 12 18:42:18 2007 Tanaka Akira <akr@fsij.org>
-
- * range.c (range_max): use FIX2LONG instead of FIX2INT to avoid
- RangeError by ((-0x80000001)...(-0x80000001)).max on LP64.
-
- * insns.def (opt_plus): use FIX2LONG instead of FIX2INT to avoid
- RangeError by 0x3fffffffffffffff+1 on LP64.
-
- * insns.def (opt_succ): don't use 0x80000000 which assumes 32bit VALUE.
- use FIX2LONG instead of FIX2INT.
- [ruby-dev:31190]
-
-Thu Jul 12 17:03:15 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * struct.c (rb_struct_init_copy): disallow changing the size.
- [ruby-dev:31168]
-
-Thu Jul 12 12:58:21 2007 Koichi Sasada <ko1@atdot.net>
-
- * blockinlining.c: remove "yarv" prefix.
-
- * array.c, numeric.c: ditto.
-
- * insnhelper.ci, insns.def, vm_evalbody.ci: ditto.
-
- * yarvcore.c: removed.
-
- * yarvcore.h: renamed to core.h.
-
- * cont.c, debug.c, error.c, process.c, signal.c : ditto.
-
- * ext/probeprofiler/probeprofiler.c: ditto.
-
- * id.c, id.h: added.
-
- * inits.c: ditto.
-
- * compile.c: rename internal functions.
-
- * compile.h: fix debug flag.
-
- * eval.c, object.c, vm.c: remove ruby_top_self.
- use rb_vm_top_self() instead.
-
- * eval_intern.h, eval_load: ditto.
-
- * gc.c: rename yarv_machine_stack_mark() to
- rb_gc_mark_machine_stack().
-
- * insnhelper.h: remove unused macros.
-
- * iseq.c: add iseq_compile() to create iseq object
- from source string.
-
- * proc.c: rename a internal function.
-
- * template/insns.inc.tmpl: remove YARV prefix.
-
- * thread.c: use rb_iseq_eval() and rb_str_new2().
-
- * vm.c (rb_iseq_eval): added.
-
- * vm.c: move some functions from yarvcore.c.
-
- * vm_dump.c: fix to remove compiler warning.
-
-Thu Jul 12 12:24:29 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * insns.def (opt_succ): fixed typo. [ruby-dev:31189]
-
-Thu Jul 12 10:30:46 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * thread.c (thread_start_func_2): moved prototye from thread_*.ci.
-
- * thread_pthread.ci (thread_start_func_2): not use a directive
- inside a macro argument. [ruby-talk:258763]
-
- * thread.c (thread_join): pthread_t may not be pointer.
-
- * thread_pthread.ci (ubf_select_each): ditto.
-
-Thu Jul 12 05:32:28 2007 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * include/ruby/ruby.h (FIX2ULONG): drop sign bit for LLP64 platform.
-
-Tue Jul 10 19:34:45 2007 Koichi Sasada <ko1@atdot.net>
-
- * hash.c (rb_hash_lookup): added. this function is similar to
- rb_hash_aref(), but doesn't call Hash#default when no entry
- exists.
-
- * include/ruby/intern.h: ditto.
-
- * insnhelper.ci (lfp_svar_get): use rb_hash_lookup().
-
-Tue Jul 10 19:16:28 2007 Koichi Sasada <ko1@atdot.net>
-
- * eval.c, insnhelper.ci, vm.c: change cref index (-1 -> 2).
-
-Tue Jul 10 18:49:56 2007 Koichi Sasada <ko1@atdot.net>
-
- * eval.c (exec_under): add proper casts.
-
-Tue Jul 10 16:58:16 2007 Koichi Sasada <ko1@atdot.net>
-
- * vm.c, insnhelper.ci: fix svar interface.
-
- * compile.c (iseq_compile_each), yarvcore.h: fix to use new
- svar interface for flip flop.
-
- * eval.c: ditto.
-
- * insns.def: ditto.
-
- * include/ruby/intern.h: remove "rb_svar()" declaration.
-
-Tue Jul 10 16:52:01 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * compile.c (rb_iseq_compile): formatted if/else to switch statement.
-
-Tue Jul 10 15:57:53 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * bootstraptest/test_flip.rb: new test for flip-flop operator.
-
-Tue Jul 10 14:50:01 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * bcc32/{Makefile.sub,setup.mak}: remove surplus slash from srcdir.
-
-Mon Jul 9 02:17:36 2007 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * cont.c (cont_restore_1): workaround for x64-mswin64's SEH.
-
-Sun Jul 8 02:08:53 2007 NARUSE, Yui <naruse@ruby-lang.org>
-
- * lib/json.rb, lib/json/, ext/json/: import JSON 1.1.1
-
-Sat Jul 7 21:59:29 2007 Tanaka Akira <akr@fsij.org>
-
- * lib/pp.rb (PP::PPMethods#pp_hash): sort condition changed:
- all keys have a same class which is kind of Comparable.
-
-Sat Jul 7 17:12:37 2007 Koichi Sasada <ko1@atdot.net>
-
- * compile.c: use rb_bug() instead of rb_compile_error().
-
-Sat Jul 7 16:12:48 2007 Koichi Sasada <ko1@atdot.net>
-
- * parse.y: fix node construction (around f_margs).
- [ruby-dev:31143]
-
- * bootstraptest/test_block.rb: add a test for above.
-
- * insnhelper.ci: fix indent.
-
-Sat Jul 7 15:36:50 2007 Tanaka Akira <akr@fsij.org>
-
- * lib/pp.rb (PP::PPMethods#pp_hash): sort if
- all keys are strings, symbols or integers.
-
-Sat Jul 7 15:30:05 2007 Koichi Sasada <ko1@atdot.net>
-
- * insnhelper.ci (vm_yield_setup_args), vm.c, insns.def:
- fix to pass nil as block parameter to yielded block.
- [ruby-dev:31147]
-
- * bootstraptest/test_block.rb: add a test for above.
-
-Fri Jul 6 19:55:10 2007 Keiju Ishitsuka <keiju@ruby-lang.org>
-
- * lib/irb.rb: typo. Thanks, Giles Bowkett.
-
- * lib/irb/completion.rb: support Ruby1.9 changing return value
- String to Symbol for Object#methods, etc. [ruby-dev:31148].
-
-Fri Jul 6 18:20:50 2007 Koichi Sasada <ko1@atdot.net>
-
- * bootstraptest/runner.rb: fix load path.
-
- * common.mk: fix "test" rule to run with "btest".
-
- * rubytest.rb, sample/test.rb: fix to show tests progress.
-
-Fri Jul 6 15:37:48 2007 Koichi Sasada <ko1@atdot.net>
-
- * test/ruby/test_iterator.rb: fix test to 1.9 spec.
-
-Fri Jul 6 15:21:25 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * eval.c (rb_interrupt): suppress a gcc's officious warning.
-
-Fri Jul 6 14:57:12 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * parse.y (keyword_to_name): constified.
-
- * ext/ripper/eventids2.c (token_to_eventid): ditto.
-
-Fri Jul 6 14:50:40 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * bootstraptest/runner.rb: added --quiet option.
-
-Fri Jul 6 14:35:25 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * parse.y (f_marg): wrap f_norm_arg assignment node with NODE_LIST.
- [ruby-dev:31141]
-
-Fri Jul 6 12:15:01 2007 Tanaka Akira <akr@fsij.org>
-
- * test/ruby/sentgen.rb: new file.
-
- * test/ruby/test_assignment.rb: tests implemented using assignment
- generator and emulator.
-
-Fri Jul 6 03:06:58 2007 Koichi Sasada <ko1@atdot.net>
-
- * insns.def: remove unused code.
-
- * compile.c (compile_massign): fix to invoke to_splat on
- splat rhs (example: *a = *nil). [ruby-dev:31136]
-
- * bootstraptest/test_massign.rb: add tests for above.
-
- * compile.c (iseq_compile_each): disable excess optimization.
- [ruby-dev:31126]
-
-Fri Jul 6 02:08:25 2007 Koichi Sasada <ko1@atdot.net>
-
- * insns.def: fix to invoke nil.to_splat on NODE_ARGSCAT.
- [ruby-dev:31138].
-
- * bootstraptest/test_literal.rb: add tests for above.
-
-Thu Jul 5 19:45:55 2007 Koichi Sasada <ko1@atdot.net>
-
- * yarvcore.h: rename rb_control_frame_t#magic to flag.
-
- * vm.h: add VM_FRAME_TYPE() and VM_FRAME_FLAG().
-
- * cont.c, insnhelper.ci, insns.def, vm.c, vm_dump.c,
- vm_evalbody.ci, yarvcore.c: apply above changes.
-
-Thu Jul 5 19:16:14 2007 Koichi Sasada <ko1@atdot.net>
-
- * test/ruby/test_basicinstructions.rb: remove an assertion using
- unsupported hash literal (such as {1, 2}).
-
- * test/ruby/test_hash.rb: ditto.
-
-Thu Jul 5 19:12:22 2007 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * ruby.c: Qfalse is VALUE, not pointer.
-
-Thu Jul 5 18:42:01 2007 Koichi Sasada <ko1@atdot.net>
-
- * compile.c (iseq_compile_each): add break catch point.
-
- * insns.def (throw): support correct "break" and "return".
- this commit achieve that "make test" passes all tests.
-
- * vm.c: ditto.
-
-Thu Jul 5 18:44:12 2007 Tanaka Akira <akr@fsij.org>
-
- * parse.y (mlhs_basic): use mlhs_post after tSTAR.
- [ruby-dev:31109]
-
-Thu Jul 5 18:27:58 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * include/ruby/{intern,ruby}.h, compile.[ch], error.c, eval.c,
- eval_load.c, gc.c, iseq.c, main.c, parse.y, re.c, ruby.c,
- yarvcore.[ch] (ruby_eval_tree, ruby_sourcefile, ruby_sourceline,
- ruby_nerrs): purge global variables.
-
- * ruby.c (proc_options): moved do_print and do_loop options
- handling from ruby_process_options().
-
-Thu Jul 5 16:37:34 2007 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * numeric.c (int_pow): fix previous nubu's commit.
-
- * test/ruby/test_fixnum.rb: new test.
-
-Thu Jul 5 15:56:06 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * numeric.c (int_pow): even number multiplication never be negative.
-
-Thu Jul 5 10:42:07 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * include/ruby/{node,ruby}.h, ruby.c: added enum constants for gdb
- support. [ruby-dev:31066]
-
- * .gdbinit: some improvements.
-
-Thu Jul 5 10:13:08 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * parse.y (global_symbols.last_id): reduce unused ID numbers.
-
- * include/ruby/st.h, st.c (st_init_table, st_init_table_with_size):
- constified.
-
-Wed Jul 4 23:36:27 2007 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
-
- * lib/webrick/httpauth/authenticator.rb
- (WEBrick::HTTPAuth::Authenticator#check_scheme): auth-scheme must be
- treated as a case-insensitive token according to RFC 2617 section 1.2.
-
-Wed Jul 4 18:30:04 2007 Tanaka Akira <akr@fsij.org>
-
- * parse.y (mlhs_inner): new rule. [ruby-dev:31132]
-
-Wed Jul 4 05:11:57 2007 Koichi Sasada <ko1@atdot.net>
-
- * iseq.c (set_relation): added.
-
-Wed Jul 4 04:58:30 2007 Koichi Sasada <ko1@atdot.net>
-
- * insnhelper.ci (caller_setup_args): fix to show correct class
- on an error message (ex: m(&1)). [ruby-dev:31101]
-
-Wed Jul 4 04:30:32 2007 Koichi Sasada <ko1@atdot.net>
-
- * compile.c (compile_array, iseq_compile_each): fix about array
- generation in void context. [ruby-dev:31102]
-
- * bootstraptest/test_literal.rb: add a test for above.
-
-Wed Jul 4 04:07:00 2007 Koichi Sasada <ko1@atdot.net>
-
- * compile.c (compile_array): ignore NODE_ZARRAY.
- [ruby-dev:31110]
-
- * bootstraptest/test_method.rb: add a test for above.
-
-Wed Jul 4 04:04:02 2007 Koichi Sasada <ko1@atdot.net>
-
- * compile.h: fix debug print level.
-
-Wed Jul 4 03:52:55 2007 Koichi Sasada <ko1@atdot.net>
-
- * compile.c (iseq_compile_each): support v[&b]= type method call.
- [ruby-dev:31094]
-
- * bootstraptest/test_method.rb: add a test for above.
-
-Wed Jul 4 03:43:29 2007 Koichi Sasada <ko1@atdot.net>
-
- * compile.c (compile_massign): fix massign compilation
- (example: a, *v, (*x) = ...). [ruby-dev:31107]
-
- * bootstraptest/test_massign.rb: add tests for above.
-
-Tue Jul 3 23:12:29 2007 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * include/ruby/onigiruma.h (ONIG_EXTERN): use RUBY_EXTERN if defined.
-
- * regenc.h: include ruby/defines.h.
-
- * regint.h: x64-mswin64 support.
-
-Tue Jul 3 13:47:44 2007 Koichi Sasada <ko1@atdot.net>
-
- * cont.c (cont_save_machine_stack): clear saved_thread.machine_stack*.
-
-Mon Jul 2 21:45:53 2007 Koichi Sasada <ko1@atdot.net>
-
- * compile.c: rename iseq_translate_direct_threaded_code()
- to iseq_translate_threaded_code().
-
- * eval_intern.h, yarvcore.h: mv EXEC_EVENT_HOOK() and
- exec_event_hooks() to yarvcore.h.
-
- * insnhelper.ci, vm.c: mv yarv_finish_insn_seq to vm.c.
-
- * insns.def (opt_call_c_function): fix to use RESTORE_REGS().
-
- * iseq.c (rb_iseq_build_for_ruby2cext): fix to allocate iseq.
-
-Mon Jul 2 11:59:34 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * insns.def (defineclass): suppress a warning.
-
- * insns.def (opt_call_c_function): should raise the thrown exception
- instead of returning it.
-
-Mon Jul 2 08:53:47 2007 Koichi Sasada <ko1@atdot.net>
-
- * eval_intern.h, yarvcore.h: move declaration of sysstack_error
- to yarvcore.h.
-
- * iseq.c: fix symbol name (:toplevel -> :top).
-
- * lib/vm/instruction.rb, template/vm.inc.tmpl: replaceable
- current file name.
-
-Mon Jul 2 05:29:07 2007 Koichi Sasada <ko1@atdot.net>
-
- * compile.c, iseq.c: fix iseq some of load/store process.
-
-Mon Jul 2 03:09:36 2007 Koichi Sasada <ko1@atdot.net>
-
- * yarvcore.h, compile.c, insnhelper.ci, iseq.c, vm.c:
- rename structure names and field names.
-
- * insnhelper.h, insns.def: add GET_CONST_INLINE_CACHE().
-
- * iseq.c: add rb_iseq_build_for_ruby2cext().
-
- * yarvcore.h, vm.h: move declaration of rb_insn_func_t
- to yarvcore.h.
-
-Sun Jul 1 03:25:53 2007 Koichi Sasada <ko1@atdot.net>
-
- * insnhelper.h, vm.h: some refactoring.
- remove useless comments, etc.
-
-Sun Jul 1 03:02:29 2007 Koichi Sasada <ko1@atdot.net>
-
- * yarvcore.h: some refactoring on rb_iseq_t.
- rename some variable names, add comments, etc.
-
- * compile.c, iseq.c, proc.c, vm.c: ditto.
-
-Sun Jul 1 02:57:57 2007 Koichi Sasada <ko1@atdot.net>
-
- * vm.h: rename insn_func_type to rb_insn_func_type.
-
- * vm_evalbody.ci: ditto.
-
- * insns.def: add opt_call_native_compiled instruction
- instead of opt_call_native_compiled.
-
-Sat Jun 30 00:17:00 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * parse.y (parser_yylex): return non-valid token for an invalid
- instance/class variable name. a patch from Yusuke ENDOH
- <mame AT tsg.ne.jp>. [ruby-dev:31095]
-
-Fri Jun 29 23:38:06 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * parse.y (stmts): fix for ripper.
-
-Fri Jun 29 21:55:48 2007 Koichi Sasada <ko1@atdot.net>
-
- * parse.y: fix to show line number of blank block.
- [ruby-dev:31093]
-
-Fri Jun 29 20:51:04 2007 Tanaka Akira <akr@fsij.org>
-
- * lib/cgi/session.rb (create_new_id): don't cut off md5.hexdigest to
- follow Ruby 1.8.
-
-Fri Jun 29 17:10:14 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * debug.h: constified.
-
- * debug.c (ruby_set_debug_option): separated from main.c.
-
- * gc.c (ruby_gc_stress), signal.c (ruby_enable_coredump): prefixed.
-
-Fri Jun 29 16:39:06 2007 Koichi Sasada <ko1@atdot.net>
-
- * proc.c (proc_new): fix to return a proc object
- which block is contained ([ruby-dev:31056]).
-
-Fri Jun 29 15:43:59 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * numeric.c (fix_pow): get rid of division by zero. reported by
- Yusuke ENDOH <mame AT tsg.ne.jp> [ruby-dev:31040]
-
- * numeric.c (int_round): do nothing when rounding by zeroth digit.
- check underflow. [ruby-dev:31043]
-
-Fri Jun 29 15:32:00 2007 Koichi Sasada <ko1@atdot.net>
-
- * configure.in: add fastcall attribute check.
-
-Fri Jun 29 14:51:24 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * parse.y (assoc_list): remove expanded hash literal (no splat).
-
- * lib/webrick/httpstatus.rb (WEBrick::HTTPStatus::EOFError): adapt
- to new syntax.
-
-Fri Jun 29 14:48:18 2007 Koichi Sasada <ko1@atdot.net>
-
- * tool/insns2vm.rb, lib/vm/instruction.rb: move process body
- to lib/vm/instruction.rb.
-
- * common.mk: fix aotc rule.
- experimental. bin/ruby2cext is not added yet.
-
-Fri Jun 29 11:23:09 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * parse.y (dsym): return non-null NODE even if yyerror(). based on a
- patch from Yusuke ENDOH <mame AT tsg.ne.jp>. [ruby-dev:31085]
-
-Thu Jun 28 23:29:30 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * parse.y (assoc_list): odd number check only for NODE_ARRAY.
- [ruby-dev:31082]
-
-Thu Jun 28 22:24:33 2007 Koichi Sasada <ko1@atdot.net>
-
- * win32/Makefile.sub: define FUNC_FASTCALL macro.
-
- * vm.h: fix to use FUNC_FASTCALL macro.
- TODO: add FUNC_FASTCALL macro by configure.
-
-Thu Jun 28 19:38:53 2007 Koichi Sasada <ko1@atdot.net>
-
- * compile.c: fix to remove -Wall warnings on gcc.
-
- * compile.c (make_name_with_str): removed. use rb_sprintf() instead.
-
-Thu Jun 28 18:53:01 2007 Tanaka Akira <akr@fsij.org>
-
- * bignum.c (rb_big_hash): fix hash area.
-
-Thu Jun 28 15:00:06 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/stringio/stringio.c (strio_getline): local variable to be
- initialized. [ruby-dev:31077]
-
-Thu Jun 28 11:30:39 2007 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * gc.c (rb_obj_id): use SIGNED_VALUE instead of long.
-
-Thu Jun 28 05:01:56 2007 Koichi Sasada <ko1@atdot.net>
-
- * common.mk (run.gdb): fix to load $(srcdir)/.gdbinit
-
- * vm.c (rb_vm_set_finish_env): add a cast.
-
- * vm.h: support __fastcall for MSVC.
-
-Thu Jun 28 02:12:08 2007 Koichi Sasada <ko1@atdot.net>
-
- * bootstraptest/runner.rb: fix to untouch $:.
-
-Thu Jun 28 02:03:07 2007 Koichi Sasada <ko1@atdot.net>
-
- * compile.c (setup_args): change parameter type.
-
-Thu Jun 28 02:03:39 2007 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * parse.y (rb_intern2): unconstify cast.
-
-Thu Jun 28 01:44:31 2007 Tanaka Akira <akr@fsij.org>
-
- * parse.y (rb_intern2): don't allocate a string object at first.
- [ruby-dev:31064]
-
-Thu Jun 28 01:24:02 2007 Koichi Sasada <ko1@atdot.net>
-
- * bootstraptest/runner.rb: fix to show file name.
-
- * bootstraptest/test_*.rb: add bootstrap tests.
-
-Thu Jun 28 01:22:15 2007 Koichi Sasada <ko1@atdot.net>
-
- * include/ruby/node.h, parse.y, gc.c, iseq.c: remove NODE_CREF.
-
-Thu Jun 28 01:19:43 2007 Koichi Sasada <ko1@atdot.net>
-
- * compile.c (iseq_compile_each): fix popped backref and others.
- ([ruby-dev:31068]).
-
- * compile.c (iseq_compile_each): remove needless statements.
-
-Wed Jun 27 23:51:33 2007 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * win32/win32.c: remove unused functions.
-
-Wed Jun 27 20:46:05 2007 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * include/ruby/win32.h, win32/Makefile.sub, win32/configure.bat,
- win32/mkexports.rb, win32/setup.mak, win32/win32.c: import
- x64-mswin64 port.
-
-Wed Jun 27 20:31:07 2007 Koichi Sasada <ko1@atdot.net>
-
- * compile.c (iseq_translate_direct_threaded_code): fix prototype
- function name.
-
- * vm.h: add correct cast.
-
-Wed Jun 27 17:08:42 2007 Koichi Sasada <ko1@atdot.net>
-
- * vm_evalbody.ci: support OPT_CALL_THREADED_CODE.
-
- * insns.def, vm.c, vm.h: ditto.
-
- * vm.h: add VM_CFP_CNT() and VM_SP_CNT().
-
-Wed Jun 27 04:23:47 2007 Koichi Sasada <ko1@atdot.net>
-
- * compile.c (iseq_compile_each): fix type error.
-
-Wed Jun 27 03:26:15 2007 Koichi Sasada <ko1@atdot.net>
-
- * compile.c (compile_massign), insns.def (expandarray): support
- postarg with massign (a, *b, c = ...).
-
- * bootstraptest/test_massign.rb: add tests for above.
-
- * compile.h: fix debug macro names.
-
-Wed Jun 27 00:18:41 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * string.c (rb_str_clear): need to check STR_EMBED_P() before
- free()ing memory. a patch from Yusuke ENDOH <mame AT tsg.ne.jp>.
- [ruby-dev:31062]
-
-Tue Jun 26 16:39:01 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * process.c (proc_getgroups): use GIDT2NUM for rb_gid_t.
-
-Tue Jun 26 16:28:24 2007 Koichi Sasada <ko1@atdot.net>
-
- * thread.c (rb_thread_wait_fd_rw): terminate fdset.
-
-Tue Jun 26 16:26:58 2007 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * regint.h: IL32LLP64 support.
-
-Tue Jun 26 16:22:45 2007 Koichi Sasada <ko1@atdot.net>
-
- * iseq.c (ruby_node_name): update node names.
-
-Tue Jun 26 15:21:20 2007 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * include/ruby/ruby.h: IL32LLP64 support.
-
- * bignum.c (bigfixize, rb_cstr_to_inum): ditto.
-
- * insns.def (opt_plus, opt_minus, opt_mult): ditto.
-
-Tue Jun 26 15:04:06 2007 Koichi Sasada <ko1@atdot.net>
-
- * cont.c (rb_fiber_s_new): revert initializing VM stack.
-
- * yarvcore.c (th_init2): ditto.
-
- * vm.c, vm.h: fix to stop using Qundef on VM stack. According to
- this change, VM stack should not include Qundef value.
-
- * insns.def (putundef): removed.
-
- * compile.c (iseq_compile_each): ditto.
-
- * eval.c (eval): fix spacing.
-
-Tue Jun 26 04:03:50 2007 Koichi Sasada <ko1@atdot.net>
-
- * insnhelper.ci (vm_yield_with_cfunc), proc.c: fix Method#to_proc
- to return lambda Proc ([ruby-dev:31021], [ruby-dev:31037]).
-
-Tue Jun 26 03:46:08 2007 Koichi Sasada <ko1@atdot.net>
-
- * cont.c (rb_fiber_s_new): fix to clear rb_thread_t#tag.
- [ruby-dev:30995]
-
-Tue Jun 26 03:38:31 2007 Koichi Sasada <ko1@atdot.net>
-
- * cont.c (rb_fiber_s_new), yarvcore.c (th_init2): fix to clear
- VM stack ([ruby-dev:31046]).
-
-Tue Jun 26 03:15:27 2007 Koichi Sasada <ko1@atdot.net>
-
- * compile.c: rename setup_arg() to setup_args().
- fix to use setup_args() at processing NODE_YIELD.
-
-Tue Jun 26 02:50:24 2007 Koichi Sasada <ko1@atdot.net>
-
- * compile.c (setup_arg): support kind of "m(*ary, x)" method call.
- ([ruby-dev:31048]).
-
-Tue Jun 26 00:28:44 2007 Koichi Sasada <ko1@atdot.net>
-
- * insnhelper.ci, vm.c: complete block parameter support.
- post arguments, optional arguments, block argument.
-
- * compile.c, parse.y: fix {|a|} parameter.
-
- * insnshelper.ci, insns.def: revert caller_setup_args() option
- (need_block_check) parameter.
-
-Mon Jun 25 20:18:44 2007 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * gc.c (RVALUE): in RVALUE and RBasic, flags must be the same type.
-
-Mon Jun 25 18:02:55 2007 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * ext/pty/extconf.rb: skip wince and win64.
-
-Mon Jun 25 17:59:32 2007 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * include/ruby/node.h (NODE_LMASK, nd_line): shouldn't use int and/or
- long carelessly.
-
-Mon Jun 25 11:36:35 2007 Koichi Sasada <ko1@atdot.net>
-
- * gc.h: add RUBY_ prefix to debug macros.
-
- * cont.c, proc.c, yarvcore.c,
-
- * gc.c: define ruby_gc_debug_indent variable to debug mark/free.
-
- * vm.c, insnhelper.ci: rename some functions to vm_* or rb_vm_*.
- move some functions, definitions, declarations to suitable files.
-
- * eval.c, yarvcore.h, eval_error.ci, insnhelper.ci: ditto.
-
-Mon Jun 25 09:45:46 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * eval_error.ci, eval_jump.ci, eval_method.ci, eval_safe.ci: c-mode.
-
-Mon Jun 25 05:27:54 2007 Koichi Sasada <ko1@atdot.net>
-
- * eval.c: remove ruby_current_node and change eval() prototype.
- fix to use rb_sourcefile/line() instead of ruby_sourcefile/line.
-
- * error.c, eval_error.ci, eval_load.c, eval_safe.ci, gc.c,
- include/ruby/intern.h, parse.y, process.c, ruby.c: ditto.
-
- * vm.c: fix spaces.
-
-Mon Jun 25 04:20:14 2007 Koichi Sasada <ko1@atdot.net>
-
- * eval_*.h: rename to eval_*.ci.
-
- * common.mk: ditto.
-
- * eval_error.ci: remove ruby_set_current_source().
-
- * error.c, eval.c, ruby.c: ditto.
-
- * eval_safe.c, proc.c: remove unused macros.
-
-Mon Jun 25 03:37:20 2007 Koichi Sasada <ko1@atdot.net>
-
- * insnhelper.ci (caller_setup_args): add need_block_check option.
-
- * insns.def: ditto.
-
- * yarvcore.h: add GetCoreDataFromValue().
-
-Mon Jun 25 02:14:30 2007 Koichi Sasada <ko1@atdot.net>
-
- * call_cfunc.ci: removed.
-
- * insnhelper.ci: added. this function includes all functions that
- vm insns need.
-
- * common.mk: ditto.
-
- * insnhelper.h, vm.h, vm.c: move some declaration.
-
- * gc.h: remove GC_CHECK() macro because GC.stress is more useful.
-
- * compile.c, iseq.c, vm_dump: ditto.
-
- * gc.h, thread.c: move a prototype declaration.
-
- * debug.c, debug.h: rename some functions.
-
- * compile.h: ditto.
-
-Mon Jun 25 00:45:02 2007 Koichi Sasada <ko1@atdot.net>
-
- * insns.def (invokesuper): fix error message.
-
-Mon Jun 25 00:14:13 2007 Koichi Sasada <ko1@atdot.net>
-
- * vm.c: some refactoring.
- * rename th_* to vm_*.
- * remove unused variables functions.
- * add prototypes.
-
- * blockinlining.c, compile.c, cont.c, eval.c, eval_intern.h,
- eval_jump.h, eval_load.c, inits.c, insns.def, iseq.c, parse.y,
- proc.c, process.c, signal.c, thread.c, vm.c, vm_dump.c,
- vm_evalbody.ci, yarvcore.c, yarvcore.h: ditto.
-
-Sun Jun 24 22:32:00 2007 Koichi Sasada <ko1@atdot.net>
-
- * eval_method.h (rb_add_method): fix to check 0.
-
-Sun Jun 24 22:00:17 2007 Koichi Sasada <ko1@atdot.net>
-
- * insn_send.ci: removed.
-
- * common.mk: ditto.
-
- * vm.c (vm_call_bmethod), isnsn.def: added. fix to use this
- function instead of using goto.
-
- * vm.c (vm_call_bmethod): renamed from th_invoke_bmethod().
-
- * vm.c (vm_method_missing): renamed from eval_method_missing().
-
- * vm_evalbody.ci: remove tmp_* variables.
-
- * insnhelper.h: add some macros.
-
- * insns.def: forbid zsuper from method defined by define_method().
-
- * test/ruby/test_super.rb: ditto.
-
-Sun Jun 24 20:01:08 2007 Koichi Sasada <ko1@atdot.net>
-
- * vm_macro.def: removed.
-
- * insn_send.ci: added. this file includes send instruction body.
-
- * common.mk: ditto.
-
- * insns.def: ditto.
-
- * tool/insns2vm.rb: ditto.
-
- * vm.c: ditto.
-
-Sun Jun 24 19:30:37 2007 Koichi Sasada <ko1@atdot.net>
-
- * insnhelper.h (RESTORE_REGS): add do/while(0) around macro.
-
- * vm.c, vm_macro.def: remove macro_eval_invoke_func() and
- add vm_setup_method(). use it instead.
-
-Sun Jun 24 19:02:33 2007 Koichi Sasada <ko1@atdot.net>
-
- * vm.c, vm_macro.def : remove macro_eval_invoke_cfunc() and
- add vm_call_cfunc().
-
-Sun Jun 24 17:54:13 2007 Koichi Sasada <ko1@atdot.net>
-
- * insns.def, vm.c: add/fix stack overflow check.
-
-Sun Jun 24 17:28:52 2007 Koichi Sasada <ko1@atdot.net>
-
- * insnhelper.h: change CHECK_STACK_OVERFLOW() to throw exception.
-
- * vm.c (caller_setup_arg), vm_macro.def: remove
- macro_eval_setup_send_arguments and add caller_setup_arg().
-
- * insns.def: ditto.
-
- * bootstraptest/test_method.rb: add splat arg tests.
-
-Sun Jun 24 16:35:46 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * proc.c (proc_to_s): used a variable before initialized.
-
-Sun Jun 24 16:05:45 2007 Koichi Sasada <ko1@atdot.net>
-
- * vm.c (callee_setup_arg): added. support correct post arg.
-
- * vm_macro.def (macro_eval_invoke_func): fix to use
- callee_setup_arg.
-
- * compile.c (set_arguments): adjust for above changes.
-
- * compile.c (iseq_compile_each): ditto.
-
- * iseq.c (ruby_iseq_disasm): ditto.
-
- * yarvcore.h: add rb_iseq_t#post_arg_start and arg_size.
-
- * bootstraptest/test_method.rb: add post arg tests.
-
-Sun Jun 24 16:10:43 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * proc.c (proc_to_s): suppress warning, and reduced duplicated code.
-
-Sun Jun 24 15:33:47 2007 Koichi Sasada <ko1@atdot.net>
-
- * bootstraptest/runner.rb: set default directory to
- '/tmp/bootstraptest.tmpwd' and add --dir option.
- fix to output driver and target information.
-
- * common.mk: fix to run btest on BASERUBY and
- add OPTS to pass option ("make btest OPTS=...").
-
-Sun Jun 24 03:05:00 2007 Tanaka Akira <akr@fsij.org>
-
- * enum.c (enum_minmax): fix SEGV by [].minmax.
-
-Sat Jun 23 17:18:19 2007 Tanaka Akira <akr@fsij.org>
-
- * re.c (match_inspect): MatchData#inspect implemented.
-
-Sat Jun 23 15:00:16 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * enum.c (enum_minmax): new method to get the minimum and maximum
- values from the enumerable at once.
-
- * enum.c (enum_minmax_by): ditto.
-
-Sat Jun 23 01:25:40 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * hash.c (rb_hash_assoc): new method.
-
- * hash.c (rb_hash_rassoc): ditto.
-
- * hash.c (rb_hash_flatten): ditto.
-
-Fri Jun 22 23:55:59 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * string.c (rb_str_upto): add optional argument to specify
- exclusiveness.
-
- * range.c (range_step): use String#upto with optional argument.
-
- * range.c (range_each): ditto.
-
-Fri Jun 22 19:55:51 2007 Tanaka Akira <akr@fsij.org>
-
- * proc.c (proc_to_s): revert the change from %p to %lx at YARV
- merge time.
-
-Fri Jun 22 19:33:49 2007 Tanaka Akira <akr@fsij.org>
-
- * proc.c (proc_to_s): show is_lambda.
-
-Thu Jun 21 20:36:12 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * hash.c (rb_hash_sort): remove hash specific implementation.
-
-Thu Jun 21 20:28:05 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * hash.c (rb_hash_select): returns new hash, not assoc array.
- [ruby-core:11504]
-
- * hash.c (env_select): ditto.
-
-Thu Jun 21 23:08:19 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * parse.y (rb_intern2): ID_JUNK test based on len, not by NUL.
-
-Thu Jun 21 19:42:07 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * yarvcore.c (rb_thread_mark): mark also thrown_errinfo.
-
-Thu Jun 21 17:13:44 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * parse.y (rb_intern2): name may not be NUL-terminated.
-
-Wed Jun 20 08:27:57 2007 Tanaka Akira <akr@fsij.org>
-
- * eval_error.h (error_print): show full stacktrace on
- non-SystemStackError.
-
-Wed Jun 20 04:45:39 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * parse.y (rb_intern2): use rb_intern2 to intern without trailing
- equal sign.
+Mon Jun 13 23:11:52 2011 Tanaka Akira <akr@fsij.org>
- * parse.y (rb_intern2, ripper_id2sym): fixed indent.
+ * test/socket/test_unix.rb: don't use Thread.abort_on_exception.
-Tue Jun 19 10:55:05 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Mon Jun 13 23:05:01 2011 Tanaka Akira <akr@fsij.org>
- * eval_load.c (load_ext, rb_require_safe): pass VALUE instead of
- pointer. [ruby-Bugs-11659]
+ * ext/socket/unixsocket.c (unix_send_io): race condition fixed.
+ (unix_recv_io): ditto.
+ fixed by Eric Wong. [ruby-core:35574]
-Mon Jun 18 08:47:54 2007 Technorama Ltd. <oss-ruby@technorama.net>
+ * test/socket/test_unix.rb: test added for above problem.
- * ext/openssl/{extconf.rb,ossl_ssl_session.c}:
- Fix ruby-Bugs-11513.
+Mon Jun 13 21:41:05 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * ext/openssl/ossl_pkey_ec.c
- New methods EC::Point.[eql,make_affine!,invert!,on_curve?,infinity?]
- By default output the same key form as the openssl command.
+ * thread_win32.c (native_cond_signal): remove unnecessary rb_bug().
+ It's additional fix for r32021. [Bug #4696]
- * ext/openssl/ossl_rand.c
- New method Random.status?
+Mon Jun 13 20:50:49 2011 Martin Bosslet <Martin.Bosslet@googlemail.com>
* test/openssl/test_ec.rb
- New tests.
-
-Mon Jun 18 17:04:07 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * eval_load.c (rb_require_safe, ruby_init_ext): load with ruby level
- cfp. [ruby-core:10779]
-
- * eval_intern.h, vm.c (rb_vm_call_cfunc): new function to call a
- function with ruby level cfp.
-
-Mon Jun 18 16:57:24 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * parse.y (yycompile): disable trace while creating ruby_debug_lines.
- [ruby-talk:253586]
-
- * thread.c (ruby_suppress_tracing): new function to call a function
- with suppressing trace.
-
- * lib/debug.rb, lib/tracer.rb: for YARV.
-
-Mon Jun 18 13:54:36 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * eval.c (ruby_cleanup): return EXIT_FAILURE if any exceptions occurred
- in at_exit blocks. [ruby-core:11263]
-
-Mon Jun 18 02:49:16 2007 Koichi Sasada <ko1@atdot.net>
-
- * vm.c (env_mark): fix to mark block.proc.
-
- * vm.c (th_make_proc_from_block): set created proc to block->proc.
-
-Mon Jun 18 02:48:12 2007 Koichi Sasada <ko1@atdot.net>
-
- * vm_dump.c (vm_stack_dump_raw): hide VM stack trace.
-
-Mon Jun 18 02:43:53 2007 Koichi Sasada <ko1@atdot.net>
-
- * signal.c (sigsegv): clear gc_stress flag on SEGV.
-
-Mon Jun 18 01:14:10 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * variable.c (rb_path2class): get rid of dangling pointer caused by
- optimized out value.
-
- * variable.c (rb_global_entry, rb_f_untrace_var, rb_alias_variable,
- rb_generic_ivar_table, generic_ivar_get, generic_ivar_set,
- generic_ivar_defined, generic_ivar_remove, rb_mark_generic_ivar,
- rb_free_generic_ivar, rb_copy_generic_ivar,
- rb_obj_instance_variables): suppress warnings.
-
-Sun Jun 17 11:11:07 2007 Tanaka Akira <akr@fsij.org>
-
- * eval.c (rb_method_missing): avoid a warning "too many arguments
- for format string" on "./ruby -ve 'def m() super end; m'".
-
-Sat Jun 16 22:24:17 2007 Tanaka Akira <akr@fsij.org>
-
- * gc.c (garbage_collect): re-introduce ruby_current_node marking code.
- [ruby-dev:31005]
-
-Sat Jun 16 21:37:43 2007 Tanaka Akira <akr@fsij.org>
-
- * gc.c (gc_sweep): re-introduce heap extension strategy change.
- [ruby-dev:31005]
-
-Fri Jun 15 22:59:37 2007 Tanaka Akira <akr@fsij.org>
-
- * .gdbinit: new file to ease debugging using gdb.
-
-Fri Jun 15 22:33:55 2007 Tanaka Akira <akr@fsij.org>
-
- * signal.c (default_handler): func argument removed.
- (trap_handler): support SYSTEM_DEFAULT. call default_handler
- internally.
- (sig_trap): don't call default_handler.
- [ruby-dev:30999]
-
-Fri Jun 15 22:33:29 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * common.mk (realclean): separate local and ext.
-
- * ext/extmk.rb: not remove unrelated directories.
-
-Fri Jun 15 20:50:02 2007 Tanaka Akira <akr@fsij.org>
-
- * keywords: enclose C code in declaration section by %{ and %} to
- avoid extra semicolon after #ifdef RIPPER.
- pointed by eban.
-
-Fri Jun 15 18:56:52 2007 Tanaka Akira <akr@fsij.org>
-
- * signal.c (trap_handler): trap("SIGSEGV", "DEFAULT") may cause wrong
- trap error because SIG_DFL may be zero.
-
-Fri Jun 15 15:55:55 2007 Koichi Sasada <ko1@atdot.net>
-
- * insns.def (setconstant, toregexp): fix to mark object correctly.
-
-Fri Jun 15 13:24:18 2007 Koichi Sasada <ko1@atdot.net>
-
- * hash.c: exchange semantics of Hash#each and Hash#each_pair.
- pointed out by [ruby-dev:30997].
-
- * test/ruby/test_iterator.rb: ditto.
-
- * test/ruby/test_yield.rb: ditto.
-
-Fri Jun 15 12:38:29 2007 Koichi Sasada <ko1@atdot.net>
-
- * test/ruby/test_iterator.rb: remove debug code (GC.stress=true).
-
-Fri Jun 15 12:25:33 2007 Koichi Sasada <ko1@atdot.net>
-
- * vm.c (th_yield_setup_args): |v| should work as |v,|.
- ex) def m;yield 1, 2; end; m{|v| p v} #=> 1
-
- * parse.y: apply above change for "for" statement.
-
- * test/ruby/test_assignment.rb: ditto
-
- * test/ruby/test_basicinstructions.rb: ditto.
-
- * test/ruby/test_iterator.rb: ditto.
-
- * test/ruby/test_yield.rb: ditto.
-
- * compile.c (iseq_compile_each): fix debug.
-
-Fri Jun 15 12:22:10 2007 Koichi Sasada <ko1@atdot.net>
-
- * eval.c (ruby_finalize_1): rb_thread_t#errinfo should be clear with
- Qnil.
-
-Fri Jun 15 12:20:11 2007 Koichi Sasada <ko1@atdot.net>
-
- * cont.c (rb_cont_call): forbid cross fiber continuation call.
-
- * test/ruby/test_fiber.rb: ditto.
-
-Fri Jun 15 12:14:07 2007 Koichi Sasada <ko1@atdot.net>
-
- * sample/test.rb: fix to show line information whether test succeeds.
-
-Thu Jun 14 17:16:05 2007 Tanaka Akira <akr@fsij.org>
-
- * eval_load.c (Init_load): delay allocating an array for rb_load_path
- to avoid GC problem in very early stage.
- (RUBY_GC_STRESS causes GC in such stage.)
-
- * variable.c (rb_gc_mark_global_tbl): rb_global_tbl may be 0 in
- very early stage.
-
- * thread.c (thread_cleanup_func) [IA64]: clear register stack position.
- (thread_start_func_2) [IA64]: record the beginning of register
- stack using extra argument.
- (rb_gc_save_machine_context) [IA64]: record the end of register
- stack.
-
- * gc.c [IA64] (SET_STACK_END): record the end of register stack.
- (garbage_collect) [IA64]: use recorded register stack area for
- GC marking.
- (yarv_machine_stack_mark) [IA64]: GC mark from the register stack
- area.
-
- * yarvcore.c [IA64] (rb_gc_register_stack_start): defined.
- (Init_VM): store th->self on stack to fix GC problem.
- (Init_yarv) [IA64]: initialize the beginning of register stack.
-
- * yarvcore.h (struct rb_thread_struct) [IA64]: new members for
- register stack area.
-
- * thread_pthread.ci (thread_start_func_1) [IA64]: call
- thread_start_func_2 with the end of register stack.
-
- * cont.c (struct rb_context_struct) [IA64]: new members for register
- stack area.
- (cont_mark) [IA64]: GC mark from register stack area.
- (cont_free) [IA64]: free saved register stack.
- (cont_save_machine_stack) [IA64]: record the position and contents
- of the register stack.
- (cont_capture): store cont->self on stack to fix GC problem.
- (cont_restore_1) [IA64]: restore the register stack.
- [IA64] (register_stack_extend): new function.
- (cont_restore_0) [IA64]: call register_stack_extend instead of
- cont_restore_1.
-
- [ruby-dev:30982]
-
-Thu Jun 14 17:09:48 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/rdoc/parsers/parse_c.rb (RDoc::C_Parser): handle more
- extensions. [ruby-dev:30972]
-
-Thu Jun 14 14:40:42 2007 Tanaka Akira <akr@fsij.org>
-
- * lib/securerandom.rb: document updated.
- suggested by NaHi. [ruby-dev:30966]
-
-Wed Jun 13 22:42:06 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * gc.c (garbage_collect): update IA64 register stack code.
- [ruby-dev:30971]
-
-Wed Jun 13 06:05:12 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * configure.in (darwin): prohibit loading extension libraries to
- miniruby.
-
-Tue Jun 12 21:50:51 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * parse.y (call_args): no allow splat after assocs. takes
- consistency over compatibility.
-
- * parse.y (call_args2): ditto
-
-Tue Jun 12 14:53:51 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/mkmf.rb (Logging.quiet, Logging.message): added quiet flag and
- use it. [ruby-core:10909]
-
- * lib/mkmf.rb (find_header): use header names in the message.
-
-Sun Jun 10 18:37:13 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/probeprofiler/probeprofiler.c: clean warnings.
-
-Sun Jun 10 18:32:24 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * missing/isinf.c, missing/dup2.c, missing/strtod.c, missing/x68.c,
- missing/alloca.c: use "ruby/config.h".
-
-Sun Jun 10 17:49:20 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * instruby.rb (install_recursive): should check parent directories of
- the destination. [ruby-dev:30947]
-
-Sun Jun 10 16:59:39 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * parse.y (do_block, brace_block): fix line numbers. [ruby-dev:30831]
-
-Sun Jun 10 16:57:20 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * instruby.rb (install_recursive): add :glob option rather than
- using FNM_DOTMACH.
-
- * instruby.rb (ext-comm): make header directory first.
-
-Sun Jun 10 16:10:58 2007 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * test/ruby/test_beginendblock.rb: typo.
-
-Sun Jun 10 16:07:10 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * instruby.rb (install_recursive): skip .svn directories.
-
-Sun Jun 10 15:44:43 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * win32/Makefile.sub (config.status): rubyhdrdir was missing.
-
-Sun Jun 10 15:26:36 2007 Tanaka Akira <akr@fsij.org>
-
- * Makefile.in: use --output-file for gperf to not leave lex.c.tmp.
-
-Sun Jun 10 15:11:07 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * Makefile.in, win32/Makefile.sub (XCFLAGS): -I. is needed for *.inc.
-
- * ext/extmk.rb: prepend also topdir to mflags at last.
-
-Sun Jun 10 13:47:36 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * test/ruby/test_beginendblock.rb (test_should_propagate_signaled):
- get rid of invoking shell. [ruby-dev:30942]
-
-Sun Jun 10 12:56:46 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * include/ruby: moved public headers.
-
- * instruby.rb (install_recursive): skip backup files.
-
- * instruby.rb (ext-comm): install only current platform headers.
-
-Sun Jun 10 10:42:04 2007 Tanaka Akira <akr@fsij.org>
-
- * lib/securerandom.rb: renamed from lib/secrand.rb.
- suggested by NaHi. [ruby-dev:30934]
-
-Sat Jun 9 06:40:05 2007 Tanaka Akira <akr@fsij.org>
-
- * lib/secrand.rb: rename SecRand() to SecRand.random_number.
- suggested by NaHi. [ruby-dev:30934]
-
-Fri Jun 8 16:34:20 2007 Tanaka Akira <akr@fsij.org>
-
- * ext/zlib/zlib.c (gzfile_s_open): use FilePathValue to support
- to_path.
-
-Fri Jun 8 16:11:00 2007 Koichi Sasada <ko1@atdot.net>
-
- * eval_jump.h: th->errinfo should clear with nil.
-
-Fri Jun 8 14:53:28 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * parse.y (call_args): allow splat argument after unpacked
- assocs like 1.8 does.
-
- * parse.y (call_args): ditto.
-
-Fri Jun 8 14:26:18 2007 Tanaka Akira <akr@fsij.org>
-
- * lib/secrand.rb: new file for secure random interface.
-
- * lib/cgi/session.rb: use secrand for generating cookies.
-
-Fri Jun 8 12:44:37 2007 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * {win32,wince}/Makefile.sub: add lex.c rule.
-
-Fri Jun 8 11:54:18 2007 Tanaka Akira <akr@fsij.org>
-
- * lex.c.blt: moved from lex.c.
-
- * Makefile.in: use lex.c.blt if gperf is not available.
- [ruby-list:8212], [ruby-list:8214], [ruby-list:24667],
- [ruby-talk:120857], [ruby-dev:28102]
-
-Thu Jun 7 21:38:39 2007 Koichi Sasada <ko1@atdot.net>
-
- * thread.c (rb_thread_execute_interrupts): invoke ensure when
- main thread exits.
-
-Thu Jun 7 19:02:48 2007 Tanaka Akira <akr@fsij.org>
-
- * lib/pp.rb: call original "method" method instead of redefined one.
-
-Thu Jun 7 17:20:57 2007 Koichi Sasada <ko1@atdot.net>
-
- * iseq.c (prepare_iseq_build): freeze filename and name string.
-
- * variable.c: freeze class name string.
-
-Thu Jun 7 12:48:33 2007 Koichi Sasada <ko1@atdot.net>
-
- * cont.c (cont_restore_1): fix to check root fiber [ruby-dev:30911].
-
- * test/ruby/test_fiber.rb: add a test.
-
-Thu Jun 7 07:24:36 2007 NARUSE, Yui <naruse@ruby-lang.org>
-
- * lib/json/common.rb: Ponder offering parse! method.
-
- * lib/json/editor.rb: be a bit more robust while loading data.
-
- * ext/json/ext/{generator,parser}/extconf.rb:
- add a have_header directive for st.h
-
- * test/json: fix some tests.
-
-Thu Jun 7 03:29:18 2007 Koichi Sasada <ko1@atdot.net>
-
- * test_fiber.rb: add a test (Continuation and Fiber).
-
-Thu Jun 7 03:17:24 2007 Koichi Sasada <ko1@atdot.net>
-
- * cont.c (cont_new): add debug message.
-
- * cont.c (cont_restore_1): copy stack information from fiber.
-
- * cont.c (rb_fiber_s_new): fix to mark created fiber.
-
- * test/ruby/test_fiber.rb: add some tests around Thread and Fiber.
-
- * yarvcore.c (thread_free): fix to skip freeing stack if root fiber
- is available.
-
-Thu Jun 7 01:03:20 2007 Koichi Sasada <ko1@atdot.net>
-
- * eval_intern.h, eval.c (ruby_init): remove POP_TAG_INIT().
-
- * cont.c (rb_fiber_start): remove zero-clearing tag.
-
-Wed Jun 6 20:23:46 2007 Koichi Sasada <ko1@atdot.net>
-
- * insns.def (invokeblock): fix of splat argument.
- (splat same as normal method dispatch)
-
-Wed Jun 6 16:27:25 2007 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * insns.def: fixed indentation.
-
-Wed Jun 6 10:58:23 2007 Koichi Sasada <ko1@atdot.net>
-
- * eval.c (rb_yield): fix to check Qundef.
-
-Wed Jun 6 10:57:45 2007 Koichi Sasada <ko1@atdot.net>
-
- * test/ruby/test_continuation.rb: add a test for last commit.
-
-Wed Jun 6 10:55:42 2007 Koichi Sasada <ko1@atdot.net>
-
- * cont.c (rb_cont_call): forbid calling dead fiber with
- Continuation#call.
-
-Wed Jun 6 10:50:01 2007 Koichi Sasada <ko1@atdot.net>
-
- * compile.c (iseq_compile_each): fix around yield arguments
- (with NODE_ARGSCAT).
-
-Wed Jun 6 02:50:53 2007 Koichi Sasada <ko1@atdot.net>
-
- * cont.c (rb_fiber_start): clear th->tag and check error to fix
- [ruby-dev:30888] and [ruby-dev:30889].
-
- * eval_intern.h: fix rb_fiber_start() prototype.
-
- * test/ruby/test_fiber.rb: add tests for above.
-
-Wed Jun 6 02:40:20 2007 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * insnhelper.h, insns.def (DEC_SP): shouldn't use unary minus operator
- in pointer operation. some compilers (such as VC++8 x64) cannot deal
- it with expected way.
-
-Wed Jun 6 02:19:48 2007 Koichi Sasada <ko1@atdot.net>
-
- * parse.y (new_yield), compile.c (iseq_compile_each): fix
- passing parameter.
-
- * eval.c, eval_jump.h: simplify rb_yield*.
-
- * proc.c (proc_mark): fix to mark proc->block.proc.
-
- * proc.c (Init_Proc): add Proc#lambda?
-
- * test/ruby/test_lambda.rb: add some tests.
-
- * vm.c (invoke_block): fix to check lambda block or not.
-
- * vm.c (th_yield_setup_args): fix to check arguments size
- when lambda block.
-
-Tue Jun 5 16:30:38 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * io.c (rb_f_p): returns arguments to intervene. [ruby-dev:29736]
-
-Tue Jun 5 14:07:55 2007 Koichi Sasada <ko1@atdot.net>
-
- * insns.def (invokeblock): check block is created by lambda
- or Proc.new.
-
- * vm.c (block_proc_is_lambda): added.
-
-Tue Jun 5 14:47:52 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/pp.rb (PP::PPMethods::seplist): revert last change to work
- around wrapper bug. [ruby-dev:30840]
-
-Tue Jun 5 14:11:15 2007 NARUSE, Yui <naruse@ruby-lang.org>
-
- * ext/nkf/nkf-utf8/nkf.c (kanji_convert): Fix guess fallback.
-
-Tue Jun 5 13:32:04 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * compile.c, dir.c, eval.c, eval_jump.h, eval_method.h, numeric.c,
- pack.c, parse.y, re.c, thread.c, vm.c, vm_dump.c, call_cfunc.ci,
- thread_pthread.ci, thread_win32.ci: fixed indentation.
-
- * call_cfunc.ci: protoized.
-
- * thread_win32.ci: fixed typo.
-
-Tue Jun 5 13:17:11 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * call_cfunc.ci, compile.c, dir.c, eval.c, eval_jump.h, numeric.c,
- pack.c, re.c, thread.c, thread_win32.ci, vm.c, vm_dump.c: fixed
- indentation.
-
-Mon Jun 4 21:15:45 2007 NARUSE, Yui <naruse@ruby-lang.org>
-
- * lib/json.rb, lib/json, ext/json, test/json:
- import JSON library.
-
- * ext/nkf: import nkf.c rev:1.124
- Support CP10001.
-
-Mon Jun 4 20:52:58 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * numeric.c (int_round): should not just truncate.
-
-Sat Jun 2 16:48:55 2007 Koichi Sasada <ko1@atdot.net>
-
- * cont.c (Fiber#pass): rename to Fiber#yield. Block parameter
- of fiber body receive first yield values.
- e.g.: Fiber.new{|x| p x}.yield(:ok) #=> :ok
-
- * cont.c: rename rb_context_t#retval to rb_context_t#value.
-
- * test/ruby/test_fiber.rb: ditto.
-
-Sat Jun 2 16:45:21 2007 Koichi Sasada <ko1@atdot.net>
-
- * proc.c (Init_Proc): remove a line break.
-
-Sat Jun 2 01:27:27 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * numeric.c (int_round): small optimization to handle bignums.
-
-Fri Jun 1 13:02:35 2007 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * insnhelper.h (INC_SP): shouldn't cast ``x'' to unsigned type because
- it might be a negative value.
-
- * insnhelper.h, insns.def: shouldn't use unary minus operator in index
- operator. some compilers (such as VC++8 x64) cannot deal it with
- expected way.
-
-Fri Jun 1 11:33:40 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * numeric.c (num_round): should convert self to Float.
- [ruby-dev:30860]
-
-Fri Jun 1 02:01:13 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * numeric.c (flo_round): now takes optional argument to specify
- number of digits, like round() in Python/PHP.
-
- * numeric.c (num_round): ditto.
-
-Fri Jun 1 01:58:33 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * enum.c (each_with_index_i): should work well with continuation.
- a patch from sheepman <sheepman AT sheepman.sakura.ne.jp>.
- [ruby-dev:30846]
-
-Thu May 31 17:27:53 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/benchmark.rb (Benchmark::Job::item): avoid modifying the
- argument unintentionally. [ruby-talk:253676]
-
-Wed May 30 14:43:00 2007 Koichi Sasada <ko1@atdot.net>
-
- * cont.c (cont_capture): store all local variables in heap
- ([ruby-dev:30832]).
-
- * vm.c (th_stack_to_heap): added.
-
- * test/ruby/test_continuation.rb: add a test for above.
-
- * eval_intern.h (th_get_ruby_level_cfp): fix to clean code.
-
-Wed May 30 13:32:34 2007 Shugo Maeda <shugo@ruby-lang.org>
-
- * lib/net/imap.rb (ResponseParser#next_token): fixed
- error message.
-
- * lib/net/imap.rb (ResponseParser#parse_error): fixed
- the condition not to refer to @token.symbol unexpectedly.
- Thanks, Dick Monahan.
-
-Wed May 30 13:24:33 2007 Shugo Maeda <shugo@ruby-lang.org>
-
- * lib/net/ftp.rb (Net::FTP#transfercmd): skip 2XX
- responses for some FTP servers.
-
-Wed May 30 04:18:37 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * eval.c (rb_eval_cmd): just return if no exceptions.
- [ruby-dev:30820]
-
-Wed May 30 02:14:25 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * signal.c (interrupt_init): needs to pass nil for Interrupt.
- [ruby-core:11038]
-
- * signal.c (trap): fixed segfaults. [ruby-dev:30830]
-
-Wed May 30 00:50:48 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * gc.c (rb_source_filename, obj_free): suppress warnings.
-
- * gc.c (garbage_collect, yarv_machine_stack_mark): fixed typo.
- http://bugs.debian.org/426267
-
-Wed May 30 00:24:09 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * parse.y (open_args, arg_ambiguous, parser_warning): should not use
- rb_warning in the parser.
-
-Tue May 29 12:31:33 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * win32/win32.c (rb_w32_opendir): removed duplicated code.
-
-Tue May 29 10:55:24 2007 Koichi Sasada <ko1@atdot.net>
-
- * cont.c: fix bug around Continuation and Fiber.
-
- * test/ruby/test_continuation.rb: add tests for Continuation.
-
-Tue May 29 10:54:34 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * win32/win32.c (rb_w32_opendir, rb_w32_readdir): eliminate magic
- numbers.
-
-Mon May 28 10:27:14 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * cont.c: fixed a function name.
-
-Mon May 28 03:56:44 2007 Koichi Sasada <ko1@atdot.net>
-
- * cont.c: support Fiber. Check test/ruby/test_fiber.rb for detail.
- Fiber is known as "Micro Thread", "Coroutine", and other terms.
- At this time, only Fiber#pass is supported to change context.
- I want to know more suitable method name/API for Fiber (... do you
- know more suitable class name instead of Fiber?) as "suspend/resume",
- "call", "yield", "start/kick/stop/restart", ....
-
- * eval.c, eval_intern.h, thread.c, yarvcore.c, yarvcore.h: ditto.
-
-Sat May 26 00:38:21 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * eval.c (ruby_exec_internal): do nothing if no code.
-
- * compile.c (rb_iseq_compile): check node if NULL before check
- nd_type. [ruby-talk:252956]
-
-Sat May 26 00:05:22 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * test/ruby/test_beginendblock.rb (test_should_propagate_signaled):
- skip tests for exitstatus and termsig on the platforms where
- signals not supported.
-
-Fri May 25 16:04:47 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * yarvcore.c (Init_VM): wrap already initialized structs to use
- it directly.
-
-Fri May 25 11:09:47 2007 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * regint.h (include): on some platform, defines.h redefines
- SIZE_OF_LONG_LONG so shouldn't re-include config.h after included
- defines.h.
-
- * regint.h (vsnprintf): ruby on windows already have vsnprintf macro.
-
-Thu May 24 12:07:27 2007 Koichi Sasada <ko1@atdot.net>
-
- * cont.c: check across trap violation.
-
- * eval.c, yarvcore.h: ditto.
-
-Thu May 24 11:46:55 2007 Koichi Sasada <ko1@atdot.net>
-
- * gc.c, yarvcore.c: fix to mark VM structure on startup.
-
- * yarvcore.h: disable USE_CACHED_VALUE.
-
-Thu May 24 01:54:53 2007 Koichi Sasada <ko1@atdot.net>
-
- * cont.c: support callcc which everyone love.
- incomplete. please give me bug reports.
-
- * common.mk, inits.c, thread.c: ditto.
-
- * yarvcore.c: export thread_mark().
-
- * yarvcore.h: disable value cache option.
-
- * eval_intern.h: set th_get_ruby_level_cfp to inline.
-
-Wed May 23 15:39:02 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * common.mk: add a rule for regsyntax.c.
+ test/openssl/test_pkey_ec.rb: merge both files into test_pkey_ec.rb.
+ Removed redundant group instantiation from PKey tests.
+ * test/openssl/utils.rb: only create TEST_PKEY_EC_P256V1 if EC is
+ defined.
-Wed May 23 10:31:53 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+Mon Jun 13 20:28:24 2011 Martin Bosslet <Martin.Bosslet@googlemail.com>
- * oniguruma.h: updated to Oniguruma 5.7.0.
+ * test/openssl/digest.rb: remove MDC2 from test, it is not available
+ by default in an OpenSSL installation.
- * regsyntax.c, unicode.c: new files along with Oniguruma 5.x.
+Mon Jun 13 20:18:55 2011 Koichi Sasada <ko1@atdot.net>
-Wed May 23 06:51:46 2007 URABE Shyouhei <shyouhei@ruby-lang.org>
+ * vm_core.h, vm_insnhelper.h: move decl. of
+ ruby_vm_global_state_version and related macros
+ from vm_core.h to vm_insnhelper.h.
- * lib/cgi.rb (CGI#[]): get rid of exceptions being raised.
- [ruby-dev:30740], Thanks Kentaro KAWAMOTO.
+ * vm.c (vm_clear_all_cache): added. This function is called
+ when ruby_vm_global_state_version overflows.
+ TODO: vm_clear_all_inline_method_cache() is only place holder.
+ We need to implement it ASAP.
-Wed May 23 05:49:49 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * vm_method.c (vm_clear_global_method_cache): added.
- * ext/extmk.rb, ext/purelib.rb, lib/mkmf.rb, runruby.rb: clear default
- load path to get rid of load pre-installed extensions/libraries.
- [ruby-core:11017]
+Mon Jun 13 19:46:21 2011 Keiju Ishitsuka <keiju@ishitsuka.com>
-Tue May 22 16:37:36 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * lib/cmath.rb: add new method Object#real?. fix #3137
- * ruby.c (set_arg0): support RSTRING_LEN on HP-UX. a patch from
- WATANABE Tetsuya <Tetsuya.WATANABE AT nifty.com>. [ruby-dev:30806]
+Mon Jun 13 18:52:00 2011 Kenta Murata <mrkn@mrkn.jp>
-Mon May 21 13:40:00 2007 Koichi Sasada <ko1@atdot.net>
+ * ext/bigdecimal/bigdecimal.c (is_kind_of_BigDecimal): new function to
+ examine the whether the object is kind of BigDecimal.
- * compile.c, vm_macro.def: support tail call optimization
- (on default, this feature is not enabled).
+Mon Jun 13 18:49:00 2011 Kenta Murata <mrkn@mrkn.jp>
- * iseq.c, compile.c, vm_opts.h: add "tailcall_optimization"
- option.
+ * ext/bigdecimal/bigdecimal.c (BigDecimalCmp): use GetVpValueWithPrec
+ for Float and Rational arguments.
- * sample/test.rb (test_ok): fix to adjust tailcall stack layout.
+ * test/bigdecimal/test_bigdecimal.rb (test_new, test_cmp, test_power):
+ add and modify tests for the above change.
- * insns.def, vm.c, compile.c, yarvcore.c, yarvcore.h:
- add opt_gt, opt_le instructions.
+ * ext/bigdecimal/bigdecimal.c (BigDecimalCmp): modify coding style to
+ match ruby's standard.
-Mon May 21 03:34:06 2007 Minero Aoki <aamine@loveruby.net>
+Mon Jun 13 18:33:04 2011 Tanaka Akira <akr@fsij.org>
- * lib/net/smtp.rb: CRAM-MD5 authentication did not work.
- [ruby-dev:30770]
+ * lib/securerandom.rb (SecureRandom.random_bytes): modify PRNG state
+ to prevent random number sequence repetition at forked child
+ process which has same pid.
+ reported by Eric Wong. [ruby-core:35765]
-Sat May 19 10:26:01 2007 Tadayoshi Funaba <tadf@dotrb.org>
+Mon Jun 13 17:02:34 2011 NARUSE, Yui <naruse@ruby-lang.org>
- * lib/date/format.rb (Date._parse): detects some OFX dates
- (Of course not fully).
+ * lib/net/http.rb (Net::HTTP#use_ssl?): require 'openssl' only when
+ https is needed. fixes r31933.
-Sat May 19 03:08:05 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Mon Jun 13 14:35:00 2011 Kenta Murata <mrkn@mrkn.jp>
- * enum.c (enum_inject): minor improvement. [ruby-dev:30792]
+ * lib/cmath.rb (CMath.cbrt): returns the principal value of the cube
+ root of the argument. fix #3676
- * enum.c (one_i): no needs to iterate once the result became false.
+ * test/test_cmath.rb (test_cbrt_returns_principal_value_of_cube_root):
+ test for the above change.
- * enum.c (enum_one): fix for an example.
+Mon Jun 13 14:17:00 2011 Kenta Murata <mrkn@mrkn.jp>
- * enum.c (one_iter_i, none_iter_i): DRY.;
+ * lib/test/unit.rb (Test::Unit::GlobOption#non_options): fix typo.
-Sat May 19 01:07:42 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+Mon Jun 13 13:04:20 2011 Martin Bosslet <Martin.Bosslet@googlemail.com>
- * enum.c (enum_inject): it is now can work without block. you
- have to specify two argument method name as the first argument.
+ * ext/openssl/ossl_digest.c: fix error for digests that have no oid
+ (e.g. DSS1).
+ * test/openssl/test_digest.c: add tests for this.
- * enum.c (Init_Enumerable): reduce is new alias to inject.
+Mon Jun 13 12:51:51 2011 NARUSE, Yui <naruse@ruby-lang.org>
-Sat May 19 01:05:33 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * lib/yaml.rb: load psych only when syck is not loaded.
- * file.c (Init_File): method definition mismatch.
+Mon Jun 13 12:23:39 2011 NARUSE, Yui <naruse@ruby-lang.org>
-Fri May 18 16:44:04 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+Mon Jun 13 12:23:39 2011 NARUSE, Yui <naruse@ruby-lang.org>
- * file.c (Init_File): add to_path method to File objects.
+ * ext/psych/lib/psych/deprecated.rb (Object#to_yaml_properties):
+ undef to_yaml_properties before redefine it.
-Fri May 18 11:12:39 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * ext/syck/lib/syck/rubytypes.rb: ditto.
- * ruby.c (DllMain, ruby_init_loadpath): use DLL instance handle given
- to DllMain instead of VirtualQuery so that loadpath becomes relative
- from the DLL on WinCE too.
+Mon Jun 13 11:30:10 2011 Martin Bosslet <Martin.Bosslet@googlemail.com>
-Thu May 17 17:03:11 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * ext/openssl/ossl_digest.c: allow Digests to be created by sn, ln or
+ oid.
+ * test/openssl/test_digest.rb: add tests for this.
+ [Ruby 1.9 - Feature #4412] [ruby-core:35319]
- * misc/ruby-style.el (ruby-style-label-indent): for yacc rules.
+Mon Jun 13 10:54:03 2011 Martin Bosslet <Martin.Bosslet@googlemail.com>
-Thu May 17 13:30:27 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * ext/openssl/pkey_dh.c: corrected documentation.
+ * test/openssl/utils.rb: add test key for DH.
+ * test/openssl/test_pkey_dh.rb: add tests.
- * parse.y (f_arg): remove typo from ripper description.
+Mon Jun 13 10:13:08 2011 Martin Bosslet <Martin.Bosslet@googlemail.com>
-Thu May 17 13:23:38 2007 Koichi Sasada <ko1@atdot.net>
+ * ext/openssl/pkey_dh.c: clarify difference between DH#public_key and
+ DH#pub_key in documentation.
- * parse.y, compile.c (set_arguments): fix to support in-paren
- parameter (ex: def foo((a, b))).
+Mon Jun 13 05:50:43 2011 Martin Bosslet <Martin.Bosslet@googlemail.com>
-Thu May 17 13:01:52 2007 Koichi Sasada <ko1@atdot.net>
+ * NEWS: introduce PKey.read.
- * iseq.c (ruby_iseq_disasm): fix to show post arg info.
+Mon Jun 13 05:17:29 2011 Martin Bosslet <Martin.Bosslet@googlemail.com>
-Thu May 17 12:56:52 2007 Koichi Sasada <ko1@atdot.net>
+ * ext/openssl/ossl_pkey.c: added PKey.read module function that allows
+ reading arbitrary public/private keys from DER-/PEM-encoded File or
+ string instances.
+ * ext/openssl/ossl_pkey_dh.c: improved documentation.
+ * test/openssl/utils.rb: added EC test key.
+ * test/openssl/test_pkey_rsa.rb
+ test/openssl/test_pkey_dsa.rb: Test PKey.read. Reuse keys from
+ OpenSSL::TestUtils.
+ * test/openssl/test_pkey_ec.rb: Created test file for EC tests.
+ Test PKey.read.
+ [Ruby 1.9 - Feature #4424] [ruby-core:35330]
- * debug.c (ruby_debug_node): fix to show node line.
+Mon Jun 13 04:42:24 2011 Koichi Sasada <ko1@atdot.net>
-Wed May 16 21:48:44 2007 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+ * ext/objspace/objspace.c (total_i): fix to skip no ruby objects.
- * lib/logger.rb (Logger::Application): remove meaningless logdev
- attribute and added logger attribute instead. [ruby-core:11143]
- also added Logger#formatter rdoc comment.
+Mon Jun 13 03:07:38 2011 NARUSE, Yui <naruse@ruby-lang.org>
-Tue May 15 16:40:07 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * test/benchmark/test_benchmark.rb (capture_output):
+ replace '-' as space. On NetBSD, subtract between two Process.times
+ after and before the short process may return negative value like:
+ t0=Process.times; yield; t1=Process.times; p t1.utime-t0.utime
- * test/ruby/test_beginendblock.rb (test_endblockwarn): now parser
- warnings emit source names and line numbers.
+Mon Jun 13 02:40:23 2011 Martin Bosslet <Martin.Bosslet@googlemail.com>
-Tue May 15 15:01:38 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+ * test/openssl/test_pkey_dsa.rb: Test for DSA#syssign/sysverify.
- * win32/win32.c (init_stdhandle): stderr should be without buffering,
- but mswin32 use buffering when stderr is not connected to tty.
+Mon Jun 13 01:59:19 2011 Martin Bosslet <Martin.Bosslet@googlemail.com>
-Mon May 14 02:12:07 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * ext/openssl/ossl_pkey_dh.c: completed documentation.
+ * ext/openssl/ossl_pkey_dsa.c: corrected examples. Improved parameter
+ sections.
- * array.c (rb_ary_zip): a.zip(b,c) should return an array, not
- enumerator.
+Mon Jun 13 00:25:10 2011 Martin Bosslet <Martin.Bosslet@googlemail.com>
- * array.c (rb_ary_zip): a.zip(b,c) should return array with size
- truncated to the size of its shortest argument array.
- [incompatible]
+ * ext/openssl/ossl_pkey_dsa.c: completed documentation.
-Mon May 14 01:54:15 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+Sun Jun 12 23:36:46 2011 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
- * array.c (rb_ary_choice): should return nil when the array is
- empty.
+ * lib/drb/drb.rb (kill_sub_thread): remove the method. [ruby-core:34185]
-Sat May 12 18:26:36 2007 Minero Aoki <aamine@loveruby.net>
+Sun Jun 12 21:01:56 2011 Tadayoshi Funaba <tadf@dotrb.org>
- * lib/net/http.rb (tokens): forgot to add strip. [ruby-core:11120]
+ * ext/date/date_core.c (d_lite_marshal_load): should give converted value.
- * test/net/http/test_http.rb: test Net::HTTP.post_form.
+Sun Jun 12 20:36:30 2011 Tadayoshi Funaba <tadf@dotrb.org>
-Fri May 11 15:27:09 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * ext/date/date_core.c: edited doc.
- * iseq.c (iseq_data_to_ary): internal IDs must not be exposed.
- [ruby-core:11073]
+Sun Jun 12 18:12:07 2011 Koichi Sasada <ko1@atdot.net>
- * parse.y (internal_id_gen): now returns scope local ID instead of
- global one.
+ * benchmark/bm_vm3_clearmethodcache.rb: added.
-Thu May 10 15:15:53 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+Sun Jun 12 17:40:29 2011 Koichi Sasada <ko1@atdot.net>
- * test/ruby/test_super.rb: add tests.
+ * vm_method.c (rb_clear_cache*): update only vm state version.
-Thu May 10 15:14:05 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+ * vm_method.c (rb_method_entry_get_without_cache, rb_method_entry):
+ Fill method cache entry with vm state version, and
+ check current vm state version for method (cache) look up.
+ This modification speed-up invalidating of global method cache table.
+ [Ruby 1.9 - Feature #3905] [ruby-core:36908]
- * ext/iconv/iconv.c (iconv_s_conv): rdoc fix.
+Sun Jun 12 16:19:48 2011 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-Thu May 10 15:09:23 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * ext/tk/extconf.rb: fail on Mac OS X. [Bug #4853][ruby-dev:43655]
- * parse.y (POINTER_P): pointer may be larger than long.
+Sun Jun 12 15:56:08 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * parse.y (vtable_size, vtable_included, vtable_tblcpy,
- vtable_to_tbl): constified.
+ * thread.c: remove th->transition_for_lock. It's thread unsafe.
+ [Bug #4723][ruby-dev:43563]
-Thu May 10 10:13:14 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Sun Jun 12 15:47:35 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * thread.c (rb_thread_priority): rdoc fix; the initial value is
- inherited from the creating thread. [ruby-core:10607]
+ * thread.c: introduce spurious wakeup safe deadlock check.
+ [Bug #4696][ruby-dev:43554]
-Wed May 9 12:28:57 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Sun Jun 12 13:33:52 2011 Koichi Sasada <ko1@atdot.net>
- * bignum.c (Init_Bignum), numeric.c (Init_Numeric): added fdiv as
- aliases of quo. [ruby-dev:30771]
+ * benchmark/bm_vm3_thread_mutex.rb: remove it.
-Tue May 8 23:39:09 2007 Tadayoshi Funaba <tadf@dotrb.org>
+ * benchmark/bm_vm3_thread_mutex[1-3].rb: added 3 benchmarks.
+ 1: one thread with one mutex (no contention).
+ 2: two threads with one mutex (contention).
+ 3: 1000 threads with one mutex (huge number of contention)
+ Above removed benchmark was type 3.
+ Therefore, this commit adds type 1 and 2 benchmark.
- * lib/date/format.rb (Date._parse): revised treatment of
- hyphened/separatorless dates.
+Sun Jun 12 11:16:59 2011 Tanaka Akira <akr@fsij.org>
- * lib/date/format.rb: some trivial adjustments.
+ * io.c: use select() appropriately for sendfile().
+ Fixed by Eric Wong. [ruby-core:36150]
+ (maygvl_copy_stream_wait_readwrite): removed.
+ (nogvl_copy_stream_sendfile): use nogvl_copy_stream_wait_write and
+ maygvl_copy_stream_wait_read instead of
+ maygvl_copy_stream_wait_readwrite.
-Tue May 8 20:23:07 2007 Tadayoshi Funaba <tadf@dotrb.org>
+Sun Jun 12 09:32:13 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * lib/date/format.rb: reverted.
+ * atomic.h (ATOMIC_OR): _InterlockedOr is not available on mingw.h
+ * gc.c (rb_gc_set_params): VM_OBJSPACE is disabled on mingw.
-Tue May 8 19:32:18 2007 Keiju Ishitsuka <keiju@ruby-lang.org>
+Sun Jun 12 01:07:09 2011 Tadayoshi Funaba <tadf@dotrb.org>
- * lib/rational.rb: fix high-precision Rationals cannot be
- converted to Floats. [ruby-Bugs:10502], [ruby-core:11069],
- [ruby-dev:30743]
+ * ext/date/date_core.c: edited doc.
-Mon May 7 10:59:55 2007 Kouhei Sutou <kou@cozmixng.org>
+Sat Jun 11 23:18:00 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * lib/rss/image.rb, test/rss/test_image.rb: fixed Image module
- namespace URI. reported by Dmitry Borodaenko. Thanks.
+ * vm_core.h (RUBY_VM_SET_TIMER_INTERRUPT, RUBY_VM_SET_INTERRUPT,
+ RUBY_VM_SET_FINALIZER_INTERRUPT): use atomic ops for preventing
+ interrupt_flag bit lost. [Bug #4770][ruby-dev:43467]
+ * thread.c (rb_threadptr_execute_interrupts_rec): ditto.
+ * vm_core.h (typedef struct rb_thread_struct): change type of
+ interrupt_flag to rb_atomic_t.
+ * atomic.h: move atomic ops definition from signal.c.
+ * signal.c: remove atomic ops definition.
+ * common.mk (gc, signal, thread, cont): add to dependency to atomic.h.
-Sun May 6 18:44:11 2007 Minero Aoki <aamine@loveruby.net>
+Sat Jun 11 23:23:52 2011 Tadayoshi Funaba <tadf@dotrb.org>
- * lib/net/http.rb (Net::HTTP.post_form): allow an Array of String
- for pairs argument. [ruby-Bugs:10340]
+ * ext/date/date_core.c: edited doc.
- * lib/net/http.rb (Net::HTTP#set_form_data): ditto.
+Sat Jun 11 23:02:36 2011 Hiroshi Nakamura <nahi@ruby-lang.org>
-Sun May 6 17:54:36 2007 Minero Aoki <aamine@loveruby.net>
+ * ext/openssl/lib/openssl/buffering.rb (module OpenSSL):
+ Buffering#each_byte should return String in accordance with IO in
+ 1.9.
- * lib/net/http.rb: Connection header field might include both of
- "keep-alive" token and "close" token. [ruby-core:10818]
+ * test/openssl/test_buffering.rb (class OpenSSL): add tests for getc
+ and each_byte.
-Sat May 5 16:26:33 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Sat Jun 11 22:41:37 2011 Tadayoshi Funaba <tadf@dotrb.org>
- * lib/date/format.rb (Format::Bag#method_missing): get rid of
- modifying original argument. [ruby-core:11090]
+ * time.c: a correction of doc for strftime (%v).
-Thu May 3 22:20:08 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Sat Jun 11 22:30:53 2011 Tadayoshi Funaba <tadf@dotrb.org>
- * configure.in, defines.h, eval_load.c (rb_feature_p, rb_provided,
- search_required, rb_require_safe), ext/extmk.rb: Fix
- a bug where a statically linked extension cannot be autoloaded.
- [ruby-dev:30023] / [ruby-dev:30239]
+ * ext/date/date_core.c: replaced doc for strftime based on Time's one.
- * thread.c: added an internal class, Barrier.
+Sat Jun 11 22:07:56 2011 Tadayoshi Funaba <tadf@dotrb.org>
- * thread.c: copied rdocs from fastthread.
+ * ext/date/date_core.c (datetime_s_{iso8601,rfc3339,xmlschema,rfc2822,httpdate}):
+ do not take argument comp.
- * yarvcore.h (struct rb_vm_struct): moved loading_table from global.
+Sat Jun 11 21:58:31 2011 Tadayoshi Funaba <tadf@dotrb.org>
-Thu May 3 18:10:12 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * ext/date/date_core.c: added examples.
- * vm_evalbody.ci, insns.def, vm.c, tool/insns2vm.rb (rb_num_t):
- renamed to get rid of name clash. [ruby-dev:30504]
+Sat Jun 11 19:40:45 2011 Narihiro Nakamura <authornari@gmail.com>
- * yarvcore.c (ruby_thread_init): ditto.
+ * gc.c: expand heap if initial_heap_min_slots is bigger than
+ HEAP_MIN_SLOTS.
-Wed May 2 18:52:58 2007 Koichi Sasada <ko1@atdot.net>
+Sat Jun 11 19:42:50 2011 WATANABE Hirofumi <eban@ruby-lang.org>
- * vm.c, yarvcore.h, yarvcore.c, insns.def: fix to mark VM stack
- in correct range.
+ * ChangeLog (vim): set shiftwidth to 2.
-Wed May 2 17:13:26 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Sat Jun 11 19:27:06 2011 Hiroshi Nakamura <nahi@ruby-lang.org>
- * bignum.c (rb_big_quo): now calculate in integer. [ruby-dev:30753]
+ * ext/openssl/ossl_x509req.c: raise RequestError instead of
+ CertificateError when Request#to_der gets an error from OpenSSL.
+ Patch from Ippei Obayashi, see #4420. I cannot write a test for
+ this... Request does not allow to create broken bytes...
-Wed May 2 15:14:56 2007 Koichi Sasada <ko1@atdot.net>
+Sat Jun 11 19:34:51 2011 Tadayoshi Funaba <tadf@dotrb.org>
- * eval_method.h: add redefine checks ([ruby-dev:30751]).
+ * ext/date/date_core.c (Date::(ABBR_)?(MONTH|DAY)NAMES): should be usascii.
-Wed May 2 11:22:52 2007 Koichi Sasada <ko1@atdot.net>
+Sat Jun 11 19:24:33 2011 Tadayoshi Funaba <tadf@dotrb.org>
- * compile.c: use Qtrue instead of 2.
+ * ext/date/date_core.c: rewrote doc.
- * vm.c, insns.def: support "lambda" calling convention.
+Sat Jun 11 19:04:15 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Wed May 2 06:46:43 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * lib/test/unit.rb (Test::Unit::GlobOption#non_options): should run
+ with 1.8.
- * error.c, parse.y, ruby.h (rb_compile_warn, rb_compile_warning): warn
- for compilation. the parser should no longer use rb_warn() and
- rb_warning(). [ruby-dev:30121]
+Sat Jun 11 18:05:57 2011 WATANABE Hirofumi <eban@ruby-lang.org>
-Wed May 2 05:45:21 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * bootstraptest/runner.rb: should initialize $stress to avoid warnings.
- * parse.y (assoc): result of assoc_new needs to be an assoc.
+Sat Jun 11 18:02:09 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Wed May 2 05:40:43 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * io.c (io_getc): should be 7bit if ascii. fixes #4557
- * bignum.c (rb_big_pow): improvement by calculating from MSB and using
- factorization. <http://yowaken.dip.jp/tdiary/20070426.html#p01>
+Sat Jun 11 16:52:16 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Tue May 1 18:45:45 2007 Koichi Sasada <ko1@atdot.net>
+ * numeric.c (rb_enc_uint_chr): fix message format. Bug#4869
- * sample/test.rb: import matzruby's sample/test.rb.
+Sat Jun 11 16:28:25 2011 Kouhei Sutou <kou@cozmixng.org>
-Tue May 1 17:46:05 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * lib/rexml/formatters/pretty.rb
+ (REXML::Formatters::Pretty#write_text),
+ test/rexml/test_core.rb
+ (Tester#test_pretty_format_long_text_finite): don't ignore
+ 'width' parameter in pretty formatter. fixes #4498
+ Reported by Michael Frasca. Thanks!!!
- * array.c (rb_ary_choice): a new method to choose an element
- randomly from an array.
+Sat Jun 11 16:11:36 2011 Kouhei Sutou <kou@cozmixng.org>
- * array.c (rb_ary_choice): fixed mistake from RDoc.
+ * test/rexml/test_core.rb
+ (Tester#test_pretty_format_long_text_finite): remove needless
+ assert_nothing_raised.
-Tue May 1 13:59:18 2007 Koichi Sasada <ko1@atdot.net>
+Sat Jun 11 16:04:03 2011 Kouhei Sutou <kou@cozmixng.org>
- * proc.c (proc_arity): fix an arity bug ([ruby-core:11060]).
+ * lib/rexml/parsers/xpathparser.rb
+ (REXML::Parsers::XPathParser#parse),
+ test/rexml/test_elements.rb
+ (ElementsTester#test_each_with_frozen_condition):
+ don't modify original XPath. fixes #4161
+ Reported by Pavel Shved. Thanks!!!
-Tue May 1 13:12:49 2007 Koichi Sasada <ko1@atdot.net>
+Sat Jun 11 15:53:27 2011 Kouhei Sutou <kou@cozmixng.org>
- * yarvcore.h, compile.c (set_arguments): support post arguments.
+ * test/rexml/test_elements.rb (ElementsTester): remove needless
+ prefix from test name.
- * test/ruby/test_method.rb: add tests for above.
+Sat Jun 11 15:36:36 2011 Martin Duerst <duerst@it.aoyama.ac.jp>
+ * common.mk: fixed a grammatical error
- * test/ruby/test_proc.rb: ditto.
+Sat Jun 11 14:20:16 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * proc.c: fix an arity bug ([ruby-core:11029]).
+ * vm.c (thread_memsize): don't ignore size of th->local_storage.
- * vm.c, vm.h, insns.def, vm_dump.h: fix bmethod process.
+Sat Jun 11 10:32:46 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * vm.c: support block argument on block parameter.
+ * lib/mkmf.rb: should quote arch_hdrdir and libpath for the case
+ installed prefix contains spaces.
-Fri Apr 27 17:05:41 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Sat Jun 11 10:20:52 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * numeric.c (int_pow): bugfix of overflow detection.
+ * thread_pthread.c (native_cond_timeout): wrap conditionally used
+ label.
- * numeric.c (int_pow): rb_big_pow() may return other than Bignum.
+ * thread_pthread.c (native_sleep): remove unused variable.
-Fri Apr 27 01:51:50 2007 Koichi Sasada <ko1@atdot.net>
+Sat Jun 11 10:15:50 2011 Tanaka Akira <akr@fsij.org>
- * compile.c: support multiple splat (e.g, [a, *b, *c, e, *f]).
+ * thread.c (rb_thread_execute_interrupts): use GetThreadPtr to extract
+ rb_thread_t from VALUE.
+ reported by Motohiro KOSAKI. [ruby-dev:43700]
-Fri Apr 27 00:03:48 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Sat Jun 11 10:00:49 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * bignum.c (rb_big_pow): truncate all zero BDIGITs. [ruby-dev:30733]
+ * ruby.c (ruby_process_options): add missing return type.
-Thu Apr 26 17:31:00 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Fri Jun 10 23:18:09 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * bignum.c (rb_big_pow): reduce multiplying for even number.
+ * ext/tk/tcltklib.c (lib_eventloop_core): replace CHECK_INTS with
+ rb_thread_check_ints(). Because current code can't be compiled.
- * numeric.c (int_pow): calculate power in Fixnum as possible.
- [ruby-dev:30726]
+Fri Jun 10 16:38:13 2011 NARUSE, Yui <naruse@ruby-lang.org>
-Thu Apr 26 17:18:51 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * encoding.c (rb_locale_charmap): When ruby process is run as Windows
+ Service the console codepage is not set, GetConsoleCP returns 0.
+ So on such environment, use GetACP().
+ http://blogs.msdn.com/b/michkap/archive/2005/02/08/369197.aspx
+ patched by Rafal Bigaj [ruby-core:36832] [Bug #4854]
- * parse.y: fixes for ripper.
+Fri Jun 10 14:34:24 2011 Koichi Sasada <ko1@atdot.net>
- * parse.y (primary): reduced duplicated code.
+ * common.mk: restore TESTRUN_SCRIPT to "$(srcdir)/test.rb".
+ TESTRUN_SCRIPT is used by "make run", "make gdb" and so on.
- * parse.y (f_arg_item): should not override by meaningless value.
+Fri Jun 10 13:01:24 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * parse.y (f_arg, assocs): should not use $$ before assigned.
+ * test/ruby/test_module.rb (TestModule#remove_rake_mixins): remove all
+ module related to Rake.
- * parse.y (assoc_list): dispatch assoclist_from_args for assocs as
- well as args.
+Fri Jun 10 09:52:38 2011 Eric Hodel <drbrain@segment7.net>
- * parse.y (assoc): return assoc if dispatched result is $1.
+ * encoding.c: Mention that Encoding.compatible? can work with more
+ than just Strings.
-Thu Apr 26 13:54:51 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Fri Jun 10 02:25:53 2011 Aaron Patterson <aaron@tenderlovemaking.com>
- * misc/ruby-style.el: new file. C/C++ style for ruby source code.
+ * ext/psych/lib/psych.rb: updating version to match released gem.
-Wed Apr 25 19:49:16 2007 Tanaka Akira <akr@fsij.org>
+Fri Jun 10 01:06:29 2011 Tadayoshi Funaba <tadf@dotrb.org>
- * ext/socket/socket.c (unix_send_io, unix_recv_io): use CMSG_DATA to
- align file descriptor appropriately.
+ * ext/bigdecimal (BigDecimal_to_i): Integer#** may return flonum.
-Wed Apr 25 15:23:29 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+Fri Jun 10 00:35:12 2011 Tadayoshi Funaba <tadf@dotrb.org>
- * win32/win32.c (NtInitialize, exit_handler): add initializing and
- cleanup of critical section object for select.
+ * complex.c (string_to_c_internal): uses rb_reg_nth_match;
+ * rational.c (string_to_r_internal): ditto.
- * win32/win32.c (do_select): block reentrance.
+Fri Jun 10 00:25:03 2011 CHIKANAGA Tomoyuki <nagachika00@gmail.com>
- * win32/win32.c (rb_w32_select): 0 sec polling of socket. this is
- workaround because winsock cannot do select at same socket at the
- same time by two or more threads.
+ * gc.c: remove an unused declaration.
-Wed Apr 25 14:10:47 2007 Koichi Sasada <ko1@atdot.net>
+Fri Jun 10 00:24:04 2011 Tadayoshi Funaba <tadf@dotrb.org>
- * ext/probeprofiler/probeprofiler.c: fix function name and
- return value.
+ * rational.c (string_to_r): Rational#** may return flonum.
-Wed Apr 25 12:42:40 2007 Koichi Sasada <ko1@atdot.net>
+Thu Jun 9 23:57:53 2011 Tanaka Akira <akr@fsij.org>
- * yarvcore.h: remove rb_control_frame_t#callee_id.
+ * io.c: fix IO.copy_stream interrupt handling.
+ based on the patch by Eric Wong. [ruby-core:36156]
- * vm_macro.def: ditto.
+ * vm_core.h (rb_thread_call_with_gvl): don't declare here.
- * eval_intern.h (exec_event_hooks): fix to check event flags
+ * thread.c: include internal.h.
+ (rb_thread_execute_interrupts): new function.
- * eval_intern.h (EXEC_EVENT_HOOK): fix to re-check event flags.
+ * internal.h (rb_thread_execute_interrupts): declared.
+ (rb_thread_call_with_gvl): declared.
- * ext/probeprofiler : added. this profiler is sampling based
- profiler.
+Thu Jun 9 23:34:01 2011 CHIKANAGA Tomoyuki <nagachika00@gmail.com>
- * vm.c: add rb_thread_current_status() API for probeprofiler.
+ * gc.c (rb_objspace_call_finalizer): use rb_typeddata_is_kind_of() for
+ type check to get rid of a double free when main Thread has singleton
+ class. [ruby-core:36741] [Bug #4828]
+ * thread.c (rb_obj_is_mutex): add a new utility function.
+ * vm.c (rb_obj_is_thread): ditto.
- * thread.c (rb_thread_execute_interrupts): add comments.
+Thu Jun 9 22:53:49 2011 CHIKANAGA Tomoyuki <nagachika00@gmail.com>
-Wed Apr 25 10:36:03 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * test/ruby/test_thread.rb (TestThread#test_kill_thread_subclass):
+ add test for Thread.kill with Thread subclass instance.
- * eval_intern.h (PUSH_TAG): no argument now.
+Thu Jun 9 22:31:47 2011 CHIKANAGA Tomoyuki <nagachika00@gmail.com>
- * eval.c, eval_error.h, eval_jump.h, eval_load.c, proc.c, thread.c:
- ditto.
+ * test/ruby/test_thread.rb (TestThread#test_kill_wrong_argument):
+ test for [ruby-core:35086].
+ partially forward porting r31402 from ruby_1_9_2 branch.
- * thread.c (alloc_event_hook, rb_thread_remove_event_hook): should
- return value.
+Thu Jun 9 18:36:00 2011 Kenta Murata <mrkn@mrkn.jp>
-Tue Apr 24 09:33:57 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * string.c: Fix the ambiguous description of the behavior of
+ rb_str_aref_m with a range. It returns nil when the beginning of
+ the range is greater than the end of the string rather than the range.
- * dir.c (do_stat, do_lstat, do_opendir): should not warn ENOTDIR.
- [ruby-talk:248288]
+Thu Jun 9 10:57:03 2011 Aaron Patterson <aaron@tenderlovemaking.com>
-Mon Apr 23 22:14:42 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * ext/psych/lib/psych/visitors/to_ruby.rb: Hash subclasses can be read
+ from YAML files.
+ * ext/psych/lib/psych/visitors/yaml_tree.rb: Hash subclasses can be
+ dumped to YAML files.
+ * test/psych/test_hash.rb: corresponding test.
- * ext/extmk.rb ($ruby): add extout directory to include path.
- [ruby-core:11003]
+Thu Jun 9 09:18:51 2011 Aaron Patterson <aaron@tenderlovemaking.com>
- * lib/mkmf.rb (libpathflag): not to append RPATHFLAG to current
- directory.
+ * ext/psych/lib/psych/visitors/to_ruby.rb: Ruby modules can be loaded
+ from YAML files.
+ * ext/psych/lib/psych/visitors/yaml_tree.rb: Ruby modules can be
+ dumped to YAML files.
+ * test/psych/test_class.rb: corresponding test.
- * lib/mkmf.rb (init_mkmf): add current directory to default
- library path with highest priority. [ruby-core:10960]
+Thu Jun 9 09:05:04 2011 Aaron Patterson <aaron@tenderlovemaking.com>
- * lib/mkmf.rb (LINK_SO): LIBPATH to be placed before DLDFLAGS.
+ * ext/psych/lib/psych/visitors/to_ruby.rb: Ruby classes can be loaded
+ from YAML files.
+ * ext/psych/lib/psych/visitors/yaml_tree.rb: Ruby classes can be
+ dumped to YAML files.
+ * test/psych/test_class.rb: corresponding test.
-Fri Apr 20 16:05:22 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Wed Jun 8 21:38:57 2011 CHIKANAGA Tomoyuki <nagachika00@gmail.com>
- * configure.in (LIBPATHFLAG, RPATHFLAG): no needs to be quoted,
- it is done by libpathflag in mkmf.rb.
+ * cont.c (root_fiber_alloc): set root fiber's status RUNNING.
+ in cont_mark() only RUNNING fiber's machine stack is marked.
+ root fiber's status should be RUNNING at the beginning regardless of
+ FIBER_USE_NATIVE. [ruby-core:36735] fixes #4827
-Fri Apr 20 12:27:04 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Tue Jun 7 20:50:11 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * lib/optparse.rb: fix to override conv proc.
+ * doc/irb/irb.rd: fix typo. patch by Nobuhiro IMAI.
+ [Bug #4843] [ruby-dev:43639]
+ * doc/irb/irb.rd.ja: ditto.
+ * doc/ChangeLog-YARV: ditto.
-Fri Apr 20 12:21:28 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Tue Jun 7 18:52:55 2011 NAKAMURA Usaku <usa@ruby-lang.org>
- * eval.c (ruby_cleanup): fixed access to out of bound, and inverted
- the order of errinfos.
+ * lib/rubygems/user_interaction.rb (Gem::StreamUI#tty?): IO#tty? of
+ Windows has been fixed at r29969.
-Fri Apr 20 10:33:23 2007 Koichi Sasada <ko1@atdot.net>
+ * test/rubygems/test_gem_stream_ui.rb: now can run tests.
- * eval_intern.h: add prototypes of rb_sourceline() and
- rb_sourcefile().
+Tue Jun 7 18:36:41 2011 NAKAMURA Usaku <usa@ruby-lang.org>
-Fri Apr 20 02:37:48 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * test/rubygems/test_gem.rb (TestGem#{test_self_user_home_userprofile,
+ test_self_user_home_user_drive_and_path}): should simply ignore
+ meaningless tests instead of skipping them.
- * eval.c (ruby_cleanup): re-send signal. [ruby-dev:30516]
+Tue Jun 7 18:15:00 2011 NAKAMURA Usaku <usa@ruby-lang.org>
- * eval_error.h (error_handle): no message when exiting by signal.
+ * test/ruby/test_rubyoptions.rb (TestRubyOptions#test_set_program_name):
+ should show some messages when skipping tests.
- * intern.h (rb_thread_signal_raise, ruby_default_signal): prototypes.
+Tue Jun 7 13:59:47 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * signal.c (esignal_init): takes a signal number and an optional
- signal name.
+ * ext/date/date_core.c (date_s_today, datetime_s_now): check the
+ result of localtime_r().
- * signal.c (interrupt_init): pass SIGINT always.
+Tue Jun 7 13:36:51 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * signal.c (ruby_default_signal): invoke system default signal
- handler.
+ * ext/tk/extconf.rb: use $defs not $CPPFLAGS to get rid of
+ command line escape issues on Windows. fixed #4835.
- * signal.c (rb_f_kill): use NUM2PIDT instead of NUM2INT.
+Tue Jun 7 03:18:45 2011 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
- * signal.c (rb_signal_exec, trap): handle SIGTERM. [ruby-dev:30505]
+ * test/ruby/test_io.rb (TestIO#test_s_{,bin}write): do not create a
+ file under /tmp. [Bug #4846]
- * thread.c (rb_thread_signal_raise): now takes signal number instead
- of signal name.
+Mon Jun 6 22:51:43 2011 CHIKANAGA Tomoyuki <nagachika00@gmail.com>
- * thread.c (rb_thread_signal_exit): since rb_make_exception() calls
- #exception method, rb_class_new_instance() is not needed here.
+ * cont.c: use #if FIBER_USE_NATIVE instead of #ifdef.
+ you can suppress use of setcontext for Fiber with compile option
+ -DFIBER_USE_NATIVE=0
- * yarvcore.h (struct rb_vm_struct), eval_jump.h (terminate_process):
- exit_code is no longer stored in VM.
+Mon Jun 6 21:59:23 2011 Tadayoshi Funaba <tadf@dotrb.org>
-Thu Apr 19 18:37:49 2007 Koichi Sasada <ko1@atdot.net>
+ * test/date/test_switch_hitter.rb: added a test.
- * eval.c, node.h, thread.c, yarvcore.[ch], eval_intern.h:
- support set_trace_func (incomplete. id and klass
- don't be passed). And support Thread#set_trace_func
- which hook only specified thread and Thread#add_trace_func
- which add new trace func instead of replace old one.
- C level API was modified. See thread.c (logic) and
- yarvcore.h (data structures).
+Mon Jun 6 21:37:45 2011 Tadayoshi Funaba <tadf@dotrb.org>
- * vm.c, vm_macro.def: add hook points.
+ * ext/date/date_core.c: added notes.
- * compile.c, insns.def: fix "trace" instruction.
+Mon Jun 6 21:02:12 2011 Tadayoshi Funaba <tadf@dotrb.org>
- * iseq.c, vm_macro.h: add compile option "trace_instruction".
+ * ext/date/date_core.c: flattened format to strftimev.
+ * ext/date/date_core.c (date_strftime_internal): taints run.
- * test/ruby/test_settracefunc.rb: hook "c-return" of set_trace_func.
+Mon Jun 6 15:10:17 2011 NAKAMURA Usaku <usa@ruby-lang.org>
-Thu Apr 19 20:57:50 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * include/ruby/{defines,missing}.h (rb_infinity, rb_nan): move from
+ defines.h to missing.h. (couldn't use RUBY_EXTERN there.)
- * parse.y (symbol): symbols should be followed by EXPR_ENDARG.
+Mon Jun 6 14:35:48 2011 NAKAMURA Usaku <usa@ruby-lang.org>
- * parse.y (dsym): ditto.
+ * test/rdoc/test_rdoc_markup_pre_process.rb (TestRDocMarkupPreProcess#
+ {test_include_file,test_include_file_encoding_incompatible}): no
+ need to write such workaround. don't hide the bug of ruby. (and the
+ bug is already fixed.)
- * parse.y (parser_yylex): strings should be followed by
- EXPR_ENDARG.
+Mon Jun 6 14:11:11 2011 NAKAMURA Usaku <usa@ruby-lang.org>
- * parse.y (parser_yylex): ditto for numbers.
+ * ext/date/date_core.c (valid_jd_sub): need to convert from VALUE to
+ double.
- * parse.y (parser_yylex): EXPR_ENDARG after ']' and '}'.
+ * ext/date/date_core.c (offset_to_sec): get rid of a compiler warning.
-Thu Apr 19 17:46:36 2007 Koichi Sasada <ko1@atdot.net>
+Mon Jun 6 14:09:08 2011 NAKAMURA Usaku <usa@ruby-lang.org>
- * lib/optparse.rb: fix to override conv proc.
+ * include/ruby/defines.h (rb_infinity, rb_nan): export for Windows.
-Wed Apr 18 10:41:21 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Mon Jun 6 10:54:45 2011 Shota Fukumori <sorah@tubusu.net>
- * util.c (ruby_strtod): exponent is radix 10. [ruby-talk:248272]
+ * lib/test/unit.rb(Test::Unit::Runner#puke):
+ Add overriding from MiniTest::Unit#puke. This reverts minitest's fix
+ that skip messages are hidden when not verbose mode (-v option).
+ To hide skip messages, use --hide-skip option instead.
-Wed Apr 18 02:50:50 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Mon Jun 6 10:52:13 2011 NARUSE, Yui <naruse@ruby-lang.org>
- * yarvcore.c (th_init2): push initial blockptr value for
- rb_block_given_p() outside ruby_exec(). [ruby-core:10923]
+ * lib/net/http.rb: don't use autoload.
-Wed Apr 18 02:30:24 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Mon Jun 6 09:39:43 2011 Aaron Patterson <aaron@tenderlovemaking.com>
- * configure.in (LDFLAGS): prepend -L. instead appending it to
- XLDFLAGS. [ruby-core:10933]
+ * ext/psych/parser.c (parse): release event objects to plug memory
+ leak. Thanks Mark J. Titorenko!
- * configure.in (Makefile): remove $U for automake from MISSING.
- [ruby-talk:248171]
+Sun Jun 5 23:26:15 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
-Mon Apr 16 22:56:01 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * eval.c: remove rb_thread_stop_timer_thread function declaration.
+ Instead, include vm_core.h.
+ * process.c: ditto.
- * ext/pty/expect_sample.rb: avoid symbolic link representation for
- expect. a patch from Kazuhiro NISHIYAMA <zn at mbf.nifty.com>.
- [ruby-dev:30714]
+Sun Jun 5 21:38:51 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
-Mon Apr 16 22:51:11 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * thread_pthread.c (thread_timer): add to care a spurious wakeup.
+ When native_cond_timedwait() return 0 by spurious wakeup, we
+ don't have to neither 1) call timer_thread_function and 2)
+ exit the timer thread.
- * sample: replace TRUE, FALSE with true, false respectively.
- a patch from Kazuhiro NISHIYAMA <zn at mbf.nifty.com>.
- [ruby-dev:30713]
+Sun Jun 5 17:50:01 2011 Tadayoshi Funaba <tadf@dotrb.org>
-Mon Apr 16 17:08:02 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * ext/date/date_core.c (m_real_cwyear): new. derived from m_cwyear.
+ * ext/date/date_strftime.c: trivial changes.
- * lib/optparse.rb (make_switch): do not clobber converter if pattern
- has no convert method. reported by sheepman in [ruby-dev:30709].
+Sun Jun 5 17:22:01 2011 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-Mon Apr 16 16:49:32 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * ext/tk/config_list.in: add new options for tcltklib.
- * ext/stringio/stringio.c (strio_seek): consistent behavior with
- IO#seek. patch by sheepman in [ruby-dev:30710].
+Sun Jun 5 10:06:50 2011 Tadayoshi Funaba <tadf@dotrb.org>
-Mon Apr 16 16:34:08 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * ext/date/date_tmx.h: now does not place decoded data. allows to
+ access indirectly via functions on demand.
+ * ext/date/date_strftime.c: ditto.
+ * ext/date/date_core.c: ditto.
+ * ext/date/date_core.c ({d|dt}_lite_to_s): use strftime.
- * parse.y (parser_yylex): should set command_start after block
- starting "do"s and braces. [ruby-core:10916]
+Sun Jun 5 06:22:02 2011 Tadayoshi Funaba <tadf@dotrb.org>
-Mon Apr 16 10:51:37 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * NEWS: wrote about changes of date.
- * enum.c (enum_each_with_index): each_with_index to forward
- arguments to each. [ruby-core:10921]
+Sat Jun 4 16:59:26 2011 Tadayoshi Funaba <tadf@dotrb.org>
-Mon Apr 16 10:43:10 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * ext/date/date_core.c (d_lite_inspect): changed the format.
+ * ext/date/date_core.c: refactoring and fixing some bugs.
- * time.c (time_arg): should allow to specify 24:00.
- [ruby-core:10915]
+Sat Jun 4 04:04:41 2011 NARUSE, Yui <naruse@ruby-lang.org>
-Sun Apr 15 09:12:54 2007 Tadayoshi Funaba <tadf@dotrb.org>
+ * test/rubygems/test_gem_commands_which_command.rb:
+ "missing" exists on ruby's top source directory. [Bug #4815]
- * lib/date/format.rb: added some zone names.
+Fri Jun 3 21:48:12 2011 NARUSE, Yui <naruse@ruby-lang.org>
- * lib/date/format.rb (_parse): now interprets doted numerical
- dates as a big endian (except dd.mm.yyyy).
+ * lib/rubygems/test_case.rb: Refix for test-all in separate directory.
+ r31147 + r31151.
-Thu Apr 12 17:13:22 2007 Koichi Sasada <ko1@atdot.net>
+Fri Jun 3 20:58:47 2011 NAKAMURA Usaku <usa@ruby-lang.org>
- * thread.c (mutex_try_lock): check and set owner thread.
+ * ext/date/date_core.c (d_lite_plus): get rid of compiler warnings.
- * thread_pthread.ci: fix to show error code in error message.
+Fri Jun 3 20:56:40 2011 NAKAMURA Usaku <usa@ruby-lang.org>
-Thu Apr 12 17:11:54 2007 Koichi Sasada <ko1@atdot.net>
+ * include/ruby/missing.h, numeric.c (round): moved prototype of round()
+ from numeric.c to missing.h. (note: round() is C99 feature, so ruby
+ provides it if not exist in C runtime.)
- * eval.c (rb_rescue2): restore cfp ([ruby-dev:30582]).
+Fri Jun 3 20:42:04 2011 Shota Fukumori <sorah@tubusu.net>
-Thu Apr 12 16:06:48 2007 Koichi Sasada <ko1@atdot.net>
+ * lib/test/unit/parallel.rb: Keep $stdin, $stdout before run testcase
+ and restore after run. Because some test break $stdin, $stdout.
+ Fixes [Bug #4433] [ruby-core:35353]
- * eval.c (rb_protect): restore cfp ([ruby-dev:30671]).
+Fri Jun 3 19:58:14 2011 NAKAMURA Usaku <usa@ruby-lang.org>
-Thu Apr 12 16:04:31 2007 Koichi Sasada <ko1@atdot.net>
+ * io.c (io_fflush): windows -- call fsync() only when the FD is tied to
+ file, because if the FD is pipe, it blocks.
- * compile.c (iseq_compile_each): check node->nd_state == 1, not !0.
+Fri Jun 3 09:27:31 2011 NARUSE, Yui <naruse@ruby-lang.org>
-Wed Apr 11 16:35:16 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+ * lib/net/http.rb (URI::HTTP#request_uri): return nil when the uri
+ is path-rootless form. Bug #4759
- * win32/win32.[ch] (rb_w32_enter_critical, rb_w32_leave_critical): no
- need to reject reentrance. removed.
+Thu Jun 2 23:51:03 2011 James Edward Gray II <jeg2@ruby-lang.org>
- * rubysig.h (RUBY_CRITICAL): follow above changes.
+ * lib/csv.rb: Improve the line ending detection algorithm
+ patch by Alexey).
- * rubysig.h (TRAP_BEG, TRAP_END): no need to save errno.
+Thu Jun 2 20:05:57 2011 NAKAMURA Usaku <usa@ruby-lang.org>
-Tue Apr 10 17:02:17 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+ * io.c (rb_io_s_write, rb_io_s_binwrite): return!!!
- * win32/win32.c (rb_w32_fclose, rb_w32_close): need to save errno
- before calling original fclose()/close().
+Thu Jun 2 16:29:34 2011 Shota Fukumori <sorah@tubusu.net>
-Tue Apr 10 16:14:22 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+ * io.c: Add File.write, File.binwrite. [Feature #1081] [ruby-core:21701]
- * thread_win32.ci (w32_wait_events): check whether interrupt_event is
- valid handle or not.
+ * test/ruby/test_io.rb: Test for File.write, File.binwrite.
- * thread_win32.ci (native_thread_destroy): clear interrupt_event when
- close it.
+ * NEWS: News for above.
-Tue Apr 10 15:53:17 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+Thu Jun 2 12:33:09 2011 NAKAMURA Usaku <usa@ruby-lang.org>
- * thread_pthread.ci (native_thread_create): initialize sleep_cond.
- fixed: [ruby-dev:30675]
+ * io.c (io_fflush, rb_io_flush): need to fsync() when ruby calls
+ internal flush. [ruby-core:36670] [Bug #4813]
-Mon Apr 9 18:48:57 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+Thu Jun 2 07:56:24 2011 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
- * thread.c (do_select): ubf_select() is not necessary. interrupt is
- checked in the loop.
+ * ext/tk/tcltklib.c: reduce CPU power required by an eventloop.
-Mon Apr 9 18:27:26 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+Tue May 31 21:28:33 2011 Tanaka Akira <akr@fsij.org>
- * thread.c (do_select): use ubf_select() as UBF on windows.
+ * test/ruby/test_signal.rb (TestSignal#test_signal_requiring):
+ redirect stderr to null device.
- * win32/win32.c (do_select): shouldn't call catch_interrupt() here.
- fixed: [ruby-dev:30674], reported by wanabe.
+Thu Jun 2 00:45:26 2011 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-Mon Apr 9 09:24:32 2007 Shugo Maeda <shugo@ruby-lang.org>
+ * ext/tk/extconf.rb: fix for uninitialized global variables.
+ [Ruby 1.9 - Bug #4811]
- * lib/net/imap.rb (disconnect): call shutdown for
- SSLSocket. Thanks, Technorama Ltd.
+Wed Jun 1 21:57:08 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
-Sun Apr 8 13:28:17 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * thread_pthread.c (native_sleep): fix 1000times calculation error.
+ this is a regression since r31457. [Bug #4808] [ruby-dev:43606]
- * compile.c (defined_expr): test arguments of NODE_CALL and so
- on as well as NODE_ATTRASGN. [ruby-core:10886]
+Wed Jun 1 17:19:16 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
-Fri Apr 6 10:56:29 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+ * thread_pthread.c: remove unused macro.
- * ext/openssl/ossl_pkey_ec.c (ossl_ec_key_get_group): get rid of
- warning. we are aware of it.
+Wed Jun 1 15:42:18 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Fri Apr 6 04:00:24 2007 Technorama Ltd. <oss-ruby@technorama.net>
+ * parse.y (peek_n): new macro to see next nth char.
- * ext/openssl/ossl_{bn,x509{attr,cert,name,store}}.c:
- Add documentation.
+Wed Jun 1 15:40:46 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Thu Apr 5 17:59:19 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * tool/rbinstall.rb (gem): fix for rubygems change.
- * compile.c (defined_expr): support for assignment.
- [ruby-core:10867]
+Wed Jun 1 14:07:57 2011 Ryan Davis <ryand-ruby@zenspider.com>
- * compile.h (ADD_CATCH_ENTRY): removed temporary variable.
+ * lib/minitest/*: Imported minitest 2.2.2 (r6281)
+ * test/minitest/*: ditto
-Thu Apr 5 15:13:34 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+Wed Jun 1 12:35:50 2011 Ryan Davis <ryand-ruby@zenspider.com>
- * ext/openssl/ossl_ssl_session.c (ossl_ssl_session_alloc): should
- return value.
+ * lib/rubygems*: Import rubygems 1.8.5 (released @ 137c80f)
+ * test/rubygems: Ditto
-Thu Apr 5 14:58:49 2007 Technorama Ltd. <oss-ruby@technorama.net>
+Wed Jun 1 12:34:00 2011 Kenta Murata <mrkn@mrkn.jp>
- * ext/openssl/ossl_pkcs5.c: New module.
+ * NEWS: add new features of bigdecimal.
- * ext/openssl/ossl_{cipher,digest,pkcs7,pkcs12}.c:
- Remove redundant module namespace.
+Wed Jun 1 09:41:14 2011 Eric Hodel <drbrain@segment7.net>
- * ext/openssl/lib/openssl/{cipher,digest}.rb
- Add backwards compatible classes for rearranged classes.
+ * lib/cgi/util.rb: Improve documentation. Patch by Kuba Fietkiewicz.
+ [Ruby 1.9 - Bug #4775]
+ * lib/cgi/core.rb: ditto
- * ext/openssl/ossl_{pkcs7,pkcs12}.c: Add documentation.
+Wed Jun 1 09:26:05 2011 Eric Hodel <drbrain@segment7.net>
-Thu Apr 5 00:42:48 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * lib/mathn.rb: Improve documentation and attach it to Numeric.
+ Modified from patch by Anil V. [Ruby 1.9 - Bug #4762]
- * error.c (rb_notimplement), io.c (pipe_open): removed definite
- articles and UNIX manual section from messages. [ruby-dev:30690]
+Wed Jun 1 09:21:30 2011 Eric Hodel <drbrain@segment7.net>
-Wed Apr 4 17:09:17 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * lib/prime.rb: Indent examples enough to appear as code sections.
+ Note that Prime is Enumerable. [#4762]
- * io.c (pipe_open): refined the message of NotImplementedError.
- [ruby-dev:30685]
+Wed Jun 1 07:34:57 2011 Eric Hodel <drbrain@segment7.net>
-Wed Apr 4 12:29:02 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+ * hash.c (key_i): Change rdoc from "the first occurrence" to "an
+ occurrence" since first occurrence is not a specification of
+ Hash#key. [Ruby 1.9 - Bug #4760]
- * error.c (rb_notimplement): should show the name of this func,
- not callee.
+Wed Jun 1 07:26:19 2011 Eric Hodel <drbrain@segment7.net>
-Wed Apr 4 10:18:04 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * ext/pty/pty.c (pty_check): Restore "not reached" comment.
+ [Ruby 1.9 - Bug #4756]
- * io.c (popen_exec): should not close close-on-exec FDs.
- [ruby-dev:30679]
+Wed Jun 1 07:21:40 2011 Eric Hodel <drbrain@segment7.net>
- * io.c (pipe_open): raise NotImplementedError for command "-" on
- platforms where fork(2) is not available. [ruby-dev:30681]
+ * ext/zlib/zlib.c: Fix document-method declarations for set_sync and
+ set_comment. [Ruby 1.9 - Bug #4695]
-Tue Apr 4 04:17:18 2007 Technorama Ltd. <oss-ruby@technorama.net>
+Wed Jun 1 06:43:13 2011 Masaya Tarui <tarui@ruby-lang.org>
- * ext/openssl/ossl_ssl.c: Add documentation.
+ * load.c (loaded_feature_path): cut nonsense loop execution to fix
+ performance bug.
-Tue Apr 3 16:22:24 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Wed Jun 1 01:16:02 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * ext/openssl/extconf.rb: check for functions added in 1.9.
+ * class.c (rb_mix_module): implement Module#mix.
- * ext/openssl/ruby_missing.h: check per features instead by
- checking version code. [ruby-core:10845]
+Wed Jun 1 01:15:12 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Tue Apr 3 16:02:44 2007 Technorama Ltd. <oss-ruby@technorama.net>
+ * io.c (io_encoding_set): should honor already set ecflags since it
+ might be set by mode option. fixed #4804
- * ext/openssl/ossl_bn.c: More documentation.
+Wed Jun 1 00:34:04 2011 CHIKANAGA Tomoyuki <nagachika00@gmail.com>
- * ext/openssl/lib/ossl_{pkey,pkey_ec}.[ch]: Add elliptic curves.
+ * ext/bigdecimal/bigdecimal.c (GetVpValueWithPrec): remove unused
+ variable.
-Tue Apr 3 15:50:41 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+Wed Jun 1 00:32:00 2011 Kenta Murata <mrkn@mrkn.jp>
- * ext/socket/socket.c (s_recv, s_recvfrom): some systems (such as
- windows) doesn't set fromlen if the socket is connection-oriented.
- reported by Bram Whillock in [ruby-core:10512] [ruby-Bugs#9061]
+ * ext/bigdecimal/bigdecimal.c (GetVpValueWithPrec): support instantiation from
+ a Float through Rational.
-Tue Apr 3 09:36:55 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+ * ext/bigdecimal/bigdecimal.c (BigDecimal_new): ditto.
- * ext/openssl/ruby_missing.h: need to include version.h to check
- RUBY_VERSION_CODE.
+ * test/bigdecimal/test_bigdecimal.rb (test_global_new_float): add a test for
+ the above changes.
-Mon Apr 3 07:10:12 2007 Technorama Ltd. <oss-ruby@technorama.net>
+ * test/bigdecimal/test_bigdecimal.rb (test_new_with_float): ditto.
- * ext/openssl/ossl_{ssl.[ch],ssl_session.c},
- ext/openssl/lib/openssl/lib/openssl/ssl.rb:
- New SSL::Session class. Add session cb's, getter/setters,
- config, and statistics methods.
+Wed Jun 1 00:07:00 2011 Kenta Murata <mrkn@mrkn.jp>
-Mon Apr 3 04:00:23 2007 Technorama Ltd. <oss-ruby@technorama.net>
+ * ext/bigdecimal/bigdecimal.c (BigDecimal_coerce): support coerce with a
+ Rational. The precision used for instantiate a BigDecimal from the
+ given Rational is obtained from the receiver BigDecimal.
- * ext/openssl/{ossl.[ch],ossl_pkey.c} Add documentation.
+ * test/bigdecimal/test_bigdecimal.rb (test_coerce): add a test for the
+ above change.
- * ext/openssl/ossl_hmac.c Add reset method.
+Tue May 31 23:49:08 2011 Tadayoshi Funaba <tadf@dotrb.org>
- * ext/openssl/ossl_cipher.c (Cipher#update) Take additional
- buffer argument.
+ * ext/date/date_core.c (offset_to_sec): fixed invalid validation.
- * ext/openssl/{ossl_bio.c,ossl_ssl.c,ruby_missing.h}
- compatibility with 1.8.
+Tue May 31 23:43:00 2011 Kenta Murata <mrkn@mrkn.jp>
-Mon Apr 2 21:55:12 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * ext/bigdecimal/bigdecimal.c (GetVpValueWithPrec): replace the algorithm for
+ coercing from a Rational to stop requiring "bigdecimal/util.rb".
+ [ruby-core:34318]
- * insns.def (throw), thread.c, yarvcore.h (throwed_errinfo): fixed
- typo.
+ * ext/bigdecimal/bigdecimal.c (GetVpValue): refactoring.
-Fri Mar 30 11:46:51 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+ * ext/bigdecimal/bigdecimal.c (BigDecimal_new): support instantiation from a
+ Rational.
- * win32/win32.c (rb_w32_cmdvector): fixed buffer size. reported by
- wanabe [ruby-dev:30672]
+ * test/bigdecimal/test_bigdecimal.rb (test_global_new_with_rational): add a
+ test for the above change.
- * win32/win32.c (init_env, insert, rb_w32_get_environ): use strdup
- instead of malloc + strlcpy. suggested by nobu [ruby-dev:30673]
+ * test/bigdecimal/test_bigdecimal.rb (test_new_with_rational): ditto.
-Fri Mar 30 02:29:04 2007 Technorama <oss-ruby@technorama.net>
+Tue May 31 22:44:00 2011 Kenta Murata <mrkn@mrkn.jp>
- * ext/openssl/ossl_{bn,cipher,digest,hmac,rand,pkey_{dh,dsa,rsa}}.c:
- Add Documentation for various methods.
+ * ext/bigdecimal/bigdecimal.c (BigDecimal_new): support instantiation a
+ BigDecimal object from an Integer.
- * ext/openssl/lib/openssl/cipher.rb: Ditto
+ * test/bigdecimal/test_bigdecimal.rb (test_new_with_integer):
+ add for testing the above change.
- * ext/openssl/ossl_bn.c: add lshift! and rshift! methods.
+ * ext/bigdecimal/bigdecimal.c (BigDecimal_global_new): replace its body
+ with a BigDecimal_new call.
- * ext/openssl/ossl_digest.c: GetDigestPtr() also accept a string.
+ * test/bigdecimal/test_bigdecimal.rb (test_global_new_with_integer):
+ add for testing the above change.
-Fri Mar 23 11:28:24 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+Tue May 31 22:24:39 2011 Tadayoshi Funaba <tadf@dotrb.org>
- * win32/win32.c (init_env, insert, cmdglob, rb_w32_cmdvector,
- rb_w32_opendir, rb_w32_readdir, rb_w32_strerror, rb_w32_stati64,
- rb_w32_get_environ): use strlcpy() and strlcat().
+ * ext/date/date_core.c: use simple/complex mode instead of light/right mode.
+ * test/date/*.rb: followed the above changes.
- * win32/win32.c (rb_w32_opendir): use realloc() instead of xrealloc().
+Tue May 31 21:28:33 2011 Tanaka Akira <akr@fsij.org>
- * win32/win32.c (rb_w32_closedir): check NULL before free pointers.
+ * test/ruby/test_signal.rb (TestSignal#test_signal_requiring):
+ initialize SIGINT handler.
-Fri Mar 23 00:24:52 2007 Keiju Ishitsuka <keiju@ruby-lang.org>
+Tue May 31 17:03:24 2011 Hiroshi Nakamura <nahi@ruby-lang.org>
- * lib/shell: commit miss(support for ruby 1.9(YARV) thread model).
+ * lib/net/http.rb, lib/net/protocol.rb: Allow to configure to wait
+ server returning '100 continue' response before sending HTTP request
+ body. See NEWS for more detail. See #3622.
+ Original patch is made by Eric Hodel <drbrain@segment7.net>.
-Thu Mar 22 13:32:17 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+ * test/net/http/test_http.rb: test it.
- * win32/Makefile.sub (LIBS): remove an unnecessary library.
+ * NEWS: Add new feature.
-Thu Mar 22 10:27:58 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+Tue May 31 14:17:49 2011 NAKAMURA Usaku <usa@ruby-lang.org>
- * test/ruby/test_bignum.rb (test_to_s): add tests for Bignum#to_s.
+ * io.c (rb_io_s_pipe): potential bug. the mode of read IO is set as
+ DEFAULT_TEXTMODE in call of io_set_encoding(), and of write IO is
+ also set as it in call of io_new_instance() via rb_protect().
+ so, if DEFAULT_TEXTMODE is not 0, we should check the result of
+ extract_binmode() and avoid crush of default IO mode and the result.
-Wed Mar 21 20:38:06 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+Tue May 31 13:00:17 2011 Yuki Sonoda (Yugui) <yugui@yugui.jp>
- * marshal.c (w_short, w_long, w_object): get rid of VC++ warnings.
+ * strftime.c (rb_strftime_with_timespec): improved style consistency.
+ constified some variables.
-Wed Mar 21 20:05:07 2007 Koichi Sasada <ko1@atdot.net>
+ * test/test_time.rb (TestTime#test_huge_precision): test for #4456.
- * compile.c, parse.y, eval.c, intern.h, iseq.c, lex.c, node.h,
- proc.c, vm.c, vm_macro.def, vm_macro.def, yarvcore.c, yarvcore.h,
- debug.c, debug.h: merge half-baked-1.9 changes. The biggest change
- is to change node structure around NODE_SCOPE, NODE_ARGS. Every
- scope (method/class/block) has own NODE_SCOPE node and NODE_ARGS
- represents more details of arguments information. I'll write a
- document about detail of node structure.
+Tue May 31 12:53:10 2011 NAKAMURA Usaku <usa@ruby-lang.org>
-Wed Mar 21 17:04:30 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * test/io/wait/test_io_wait.rb (TestIOWait#{test_nread,test_ready?,
+ test_wait}: give system some time to process the written data.
- * bignum.c (rb_big2str0): round up for the most significant digit.
- [ruby-core:10686]
+Tue May 31 12:40:49 2011 NAKAMURA Usaku <usa@ruby-lang.org>
-Tue Mar 21 08:20:00 2007 Nathaniel Talbott <ntalbott@ruby-lang.org>
+ * test/ruby/test_io.rb (TestIO#test_open_mode): MUST release resources
+ explicitly. fix problem of r31671
- * test/testunit/collector/test_dir.rb: Fixed test/unit tests that
- were breaking due to Module#public_instance_methods now
- returning a Symbol instead of a String.
+Tue May 31 10:49:55 2011 NARUSE, Yui <naruse@ruby-lang.org>
- * test/testunit/collector/test_objectspace.rb: Ditto.
+ * vm_exec.c: remove conditions for clang
+ because clang version 3.0 (trunk 132165) doesn't need them.
-Tue Mar 20 22:54:50 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+Mon May 30 22:19:33 2011 Tanaka Akira <akr@fsij.org>
- * marshal.c (w_extended): erroneous check condition when dump
- method is defined. [ruby-core:10646]
+ * test/ruby/test_signal.rb (TestSignal#test_signal_requiring): don't
+ close stderr.
-Tue Mar 20 21:36:47 2007 Keiju Ishitsuka <keiju@ruby-lang.org>
+Mon May 30 20:22:00 2011 NAKAMURA Usaku <usa@ruby-lang.org>
- * lib/shell.rb, lib/shell: support for ruby 1.9(YARV) thread model.
+ * test/ruby/test_signal.rb (TestSignal#test_signal_requiring): small
+ but critical typo of r31642. sorry...
+ [Bug #4798] [ruby-core:36550]
-Tue Mar 20 16:36:08 2007 URABE Shyouhei <shyouhei@ruby-lang.org>
+Mon May 30 15:44:16 2011 NARUSE, Yui <naruse@ruby-lang.org>
- * distruby.rb: Add zip generation.
+ * insns.def (opt_mult): as r31805, volatile it.
+ Without this, clang -O fails calculation.
-Tue Mar 20 16:20:49 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * numeric.c (fix_mul): ditto.
- * eval.c (rb_f_callee_name): add __method__ and __callee__ again.
- __callee__ need to rework to adopt YARV. [ruby-core:10671]
+ * rational.c (f_imul): ditto.
-Tue Mar 20 11:09:00 2007 Akinori MUSHA <knu@iDaemons.org>
+Mon May 30 10:26:51 2011 NARUSE, Yui <naruse@ruby-lang.org>
- * lib/set.rb: Revise rdoc.
+ * numeric.c (int_pow): make sure to assign the result of x * z.
+ If xz is optimized out, the value won't overflow.
- * lib/set.rb (Set#freeze, Set#taint, Set#untaint): Implement
- Set#freeze, Set#taint, and Set#untaint; requested by: Dan
- Hutchings <dan AT moltoagitato.com> in [ruby-bugs:PR#9359].
+Sun May 29 23:17:29 2011 NARUSE, Yui <naruse@ruby-lang.org>
-Tue Mar 20 09:13:10 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * re.c (rb_reg_match): fix rdoc of Regexp#=~.
+ patched by Tsuyoshi Sawada. [Bug #4781]
- * process.c (rb_fork): flush stdouts always before fork(2).
- fixed: [ruby-dev:30612]
+Sun May 29 23:10:42 2011 NARUSE, Yui <naruse@ruby-lang.org>
-Tue Mar 20 01:38:48 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * lib/webrick/https.rb (WEBrick::HTTPRequest#parse_uri):
+ keep parse_uri as private. patched by okkez. [Bug #4773]
- * thread.c (thread_start_func_2): store the result of first_func
- as well as first_proc.
+Sun May 29 17:53:03 2011 CHIKANAGA Tomoyuki <nagachika00@gmail.com>
- * thread.c (thread_create_core): block is not used if first_func
- is given.
+ * numeric.c: add #include "internal.h" for rb_big_uminus() prototype.
-Mon Mar 19 16:58:52 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+Sun May 29 15:09:05 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * missing/{strlcat,strlcpy}.c, missing.h: new functions.
+ * numeric.c (flo_round): fix for negative value.
- * LEGAL: add copyright notice about above files.
+Sun May 29 02:16:53 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * configure.in: check whether strlcat and strlcpy are exist or not.
+ * test/net/http/utils.rb (TestNetHTTPUtils#teardown): add nil check.
- * {bcc32,win32,wince}/Makefile.sub: use above files.
+Sun May 29 00:22:40 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
-Mon Mar 19 14:12:25 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * process.c (before_exec, after_exec): change from macro to function.
- * lib/matrix.rb (Matrix::inverse_from): adding partial pivoting to
- the Gauss-Jordan algorithm, making it stable. a patch from
- Peter Vanbroekhoven. [ruby-core:10641]
+Sat May 28 19:30:17 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
-Mon Mar 19 12:13:36 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * process.c (before_exec, after_exec): change SIGPIPE handler to SIG_DFL
+ before calling execve(). Because r31760 reintroduced an issue that
+ system() may hang up (i.e. [ruby-dev:12261]).
+ * process.c (save_sigpipe, restore_sigpipe): new.
- * regparse.c, etc.: K&R to ANSI code cleanup patch from Stefan
- Huehner <stefan at huehner.org>. [ruby-core:10543]
+Sat May 28 16:08:16 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
-Mon Mar 19 11:27:13 2007 Minero Aoki <aamine@loveruby.net>
+ * signal.c (Init_signal, default_handler): change default SIGPIPE handler
+ from empty function to SIG_IGN. [ruby-dev:43215]
+ * signal.c (sigpipe): removed.
- * lib/net/protocol.rb (rbuf_read): extend buffer size for speed.
+Sat May 28 03:04:27 2011 NARUSE, Yui <naruse@ruby-lang.org>
-Sun Mar 18 08:31:51 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+ * io.c (fill_cbuf): return MORE_CHAR_SUSPENDED when cbuf is not empty.
- * win32/dir.h, win32/win32.c (rb_w32_opendir, rb_w32_readdir,
- rb_w32_closedir): get rid of possible buffer-overflows.
+Sat May 28 02:22:48 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
-Sat Mar 17 19:10:39 2007 Kouhei Sutou <kou@cozmixng.org>
+ * string.c (rb_str_bytesize): rb_str_bytesize() should use LONG2NUM().
+ Patch by Nikolai Weibull. [Bug #4789] [ruby-core:36511]
- * lib/rss, test/rss:
- - supported Atom.
- - bumped version 0.1.6 to 0.1.7.
- * sample/rss/convert.rb: added new sample.
+Sat May 28 02:06:26 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
-Fri Mar 16 22:32:20 2007 Minero Aoki <aamine@loveruby.net>
+ * io.c (fill_cbuf): Fix test-all crash.
- * lib/net/pop.rb: change default verification mode from
- VERIFY_PEER to VERIFY_NONE because most POPS server does not have
- true certification.
+Sat May 28 00:58:40 2011 Marc-Andre Lafortune <ruby-core@marc-andre.ca>
-Fri Mar 16 22:19:24 2007 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+ * lib/ostruct.rb (method_missing): Handle [] and []= correctly.
+ Based on a patch by Caius Durling, bug #4179 [ruby-core:33792]
- * ext/win32ole/win32ole.c: add WIN32OLE#ole_activex_initialize,
- a little bit supporting ActiveX control. [ruby-talk:241188]
+Fri May 27 23:56:54 2011 Kouhei Sutou <kou@cozmixng.org>
-Fri Mar 16 22:16:58 2007 Minero Aoki <aamine@loveruby.net>
+ * test/rexml/test_core.rb (Tester::test_text_frozen): split frozen
+ string test. refs #4783
- * lib/net/http.rb: merge Ruby-SSPI patch contributed by Justin
- Bailey.
+Fri May 27 22:46:23 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * ext/Win32API/lib/win32/sspi.rb: new file.
+ * tool/rbinstall.rb (gem): install gemspec of json. fixed #4784
-Wed Mar 14 12:30:00 2007 Shigeo Kobayashi <shigeo@tinyforest.jp>
+Fri May 27 22:45:10 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * ext/bigdecimal/bigdecimal.c: BigDecimal("-.31") is now
- treated as ("-0.31") not as ("0.31").
+ * io.c (validate_enc_binmode): do not clear textmode flag if
+ default. fixed #4732
-Tue Mar 13 19:04:30 2007 Keiju Ishitsuka <keiju@ruby-lang.org>
+ * io.c (fill_cbuf): finish reading at EOF.
- * lib/sync.rb: support for ruby 1.9(YARV) thread model.
+Fri May 27 11:31:51 2011 misfo <tedwardo2@gmail.com>
-Tue Mar 13 09:25:10 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * lib/rexml/text.rb (REXML::Text#initialize): prevent an error
+ when passing a frozen string to REXML::Text.new
- * common.mk (clear-installed-list): separated from install-prereq.
+ dup the string passed in instead of cloning so that it's frozen
+ state is ignored
-Tue Mar 13 07:23:20 2007 Shugo Maeda <shugo@ruby-lang.org>
+Fri May 27 08:47:26 2011 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
- * lib/monitor.rb (mon_try_enter): call @mon_muetx.try_lock.
- Thanks, Keiju ISHITSUKA. [ruby-dev:30507]
+ * thread.c (ppoll): typo bug fix.
-Tue Mar 13 02:42:58 2007 Akinori MUSHA <knu@iDaemons.org>
+Fri May 27 08:35:04 2011 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
- * lib/cgi.rb (CGI::header): IIS >= 5.0 does not need the nph
- assumption any more; submitted by MIYASAKA Masaru <alkaid AT
- coral.ocn.ne.jp> in [ruby-dev:30537].
+ * ext/tk/lib/tk.rb: hang-up at exit before calling Tk.mainloop.
-Mon Mar 12 10:53:28 2007 Akinori MUSHA <knu@iDaemons.org>
+ * ext/tk/lib/tk/extconf.rb: cannot make on MinGW [Ruby 1.9 - Bug #4141].
- * ext/openssl/ossl_asn1.c (Init_ossl_asn1): Let rdoc know about
- externally defined modules; submitted by Technorama
- Ltd. <oss-ruby AT technorama.net> in [ruby-bugs:PR#4704].
+Thu May 27 00:34:07 2011 James Edward Gray II <jeg2@ruby-lang.org>
- * ext/openssl/ossl_bn.c (Init_ossl_bn): Ditto.
+ * lib/csv.rb: Enhance each() to support Enumerator.
- * ext/openssl/ossl_cipher.c (Init_ossl_cipher): Ditto.
+Thu May 26 10:32:11 2011 James Edward Gray II <jeg2@ruby-lang.org>
- * ext/openssl/ossl_digest.c (Init_ossl_digest): Ditto.
+ * lib/csv.rb: Documentation improvements from Ysiad Ferreiras.
+ [Ruby 1.9 - Bug #4785]
- * ext/openssl/ossl_hmac.c (Init_ossl_hmac): Ditto.
+Thu May 26 15:42:02 2011 Cezary Baginski <cezary.baginski@gmail.com>
- * ext/openssl/ossl_pkey.c (Init_ossl_pkey): Ditto.
+ * lib/xmlrpc/parser.rb (FaultException): fix to_s and inspect
- * ext/openssl/ossl_pkey_dh.c (Init_ossl_dh): Ditto.
+ * test/xmlrpc/parser.rb: test for the above
- * ext/openssl/ossl_pkey_dsa.c (Init_ossl_dsa): Ditto.
+Wed May 25 11:54:31 2011 Eric Hodel <drbrain@segment7.net>
- * ext/openssl/ossl_pkey_rsa.c (Init_ossl_rsa): Ditto.
+ * ext/curses/curses.c: Remove color constants block.
+ [Ruby 1.9 - Bug #4748]
- * ext/openssl/ossl_rand.c (Init_ossl_rand): Ditto.
+Wed May 25 09:56:45 2011 Eric Hodel <drbrain@segment7.net>
- * ext/openssl/ossl_ssl.c (Init_ossl_ssl): Ditto.
+ * ext/curses/curses.c: Add missing documentation for button state, MIN
+ and MAX comments. Add Curses. to TABSIZE= and ESCDELAY= methods.
+ [Ruby 1.9 - Bug #4747]
-Sun Mar 11 18:42:01 2007 Akinori MUSHA <knu@iDaemons.org>
+Wed May 25 09:35:31 2011 Eric Hodel <drbrain@segment7.net>
- * misc/ruby-mode.el (ruby-block-end-re): Support for the
- experimental ';;' terminator had been dropped.
+ * lib/benchmark.rb: Restore nodoc for Benchmark::Job and
+ Benchmark::Report. [Ruby 1.9 - Bug #4726]
-Sun Mar 11 05:45:46 2007 Akinori MUSHA <knu@iDaemons.org>
+Wed May 25 09:29:38 2011 Eric Hodel <drbrain@segment7.net>
- * misc/README, misc/rdebug.el: Add rdebug.el, Emacs ruby-debug
- interface based on rubydb3x.el; submitted by Martin Nordholts
- <enselic AT gmail.com> in [ruby-bugs:PR#9023].
+ * lib/net/pop.rb: Hide implementation details from RDoc.
+ [Ruby 1.9 - Bug #4711]
-Sat Mar 10 07:20:28 2007 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+Wed May 25 09:26:29 2011 Eric Hodel <drbrain@segment7.net>
- * ext/win32ole/win32ole.c: add WIN32OLE_TYPELIB#library_name,
- WIN32OLE_TYPELIB#visible?.
+ * lib/net/ftp.rb: Add :nodoc: for private methods.
+ [Ruby 1.9 - Bug #4710]
- * test/win32ole/test_win32ole_typelib.rb: ditto.
+Wed May 25 09:19:17 2011 Eric Hodel <drbrain@segment7.net>
-Thu Mar 8 09:17:59 2007 Minero Aoki <aamine@loveruby.net>
+ * ext/zlib/zlib.c: Fix Document-method declarations. Improve
+ Zlib::GzipFile's method catalog. [Ruby 1.9 - Bug #4695]
- * compile.c: iseq_compile -> rb_iseq_compile.
+Wed May 25 08:22:12 2011 Eric Hodel <drbrain@segment7.net>
- * iseq.c: ditto.
+ * lib/erb.rb: Hide documentation for implementation details of ERB.
+ [Ruby 1.9 - Bug #4694]
- * intern.h: provide function prototype of Init_jump.
+Wed May 25 07:58:14 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * eval_jump.h (Init_jump): declare function type.
+ * lib/tempfile.rb (Tempfile.{mkdir,rmdir}): revert for backward
+ compatibility.
- * thread.c: platform-dependent functions should be surrounded by #ifdef.
+Wed May 25 07:13:12 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * iseq.c (iseq_data_to_ary): remove unused variable.
+ * spec/README: update the description.
- * compile.c (set_arguments): ditto.
+Wed May 25 07:12:16 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * thread.c (set_unblock_function): ditto.
+ * lib/tempfile.rb (Tempfile.{lock,unlock}_tempfile): refactor.
- * thread_pthread.ci: reduce printf warning.
+Tue May 24 17:30:36 2011 NARUSE, Yui <naruse@ruby-lang.org>
- * vm_dump.c: ditto.
+ * spec/README: fix typo.
+ patched by bowsersenior. https://github.com/ruby/ruby/pull/24
-Tue Mar 6 16:35:04 2007 Keiju Ishitsuka <keiju@ruby-lang.org>
+Tue May 24 07:06:34 2011 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
- * lib/shell/process-controller.rb: fix thread synchronization problem for [ruby-dev:30477].
+ * ext/tk/lib/tk.rb: fail to start Tk.mainloop (exit immediately) on
+ some environment (reported on [ruby-talk:381444]).
-Tue Mar 6 11:53:25 2007 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+ * ext/tk/lib/tk/canvas.rb: support creating a canvas item object from
+ an item ID number.
- * ext/tk/sample/irbtkw.rbw: fails to exit process.
+ * ext/tk/lib/tk/image.rb: import documents which are pull-requested.
+ [Ruby 1.9 - Feature #4595]
-Tue Mar 6 10:23:09 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * ext/tk/lib/tk/extconf.rb: search directories for 64bit library (e.g.
+ /usr/lib64), add some new configure options (see README.tcltklib),
+ and bug fix.
- * runruby.rb: added --pure (turned on by default) and --debugger
+ * ext/tk/lib/tk/README.tcltklib: modify docs for some new configure
options.
-Mon Mar 5 09:19:33 2007 Minero Aoki <aamine@loveruby.net>
-
- * lib/timeout.rb (Timeout.timeout): should return the block value
- always.
-
- * lib/timeout.rb (Timeout.timeout): should yield sec argument
- always.
-
- * lib/timeout.rb (Timeout.timeout): fix document.
-
-Mon Mar 5 09:16:40 2007 Minero Aoki <aamine@loveruby.net>
-
- * lib/net/smtp.rb: support automatic STARTTLS.
-
- * lib/net/smtp.rb: check server advertisement.
-
- * lib/net/smtp.rb: introduce new class SMTP::Response.
-
- * lib/net/smtp.rb (getok): should not use sprintf.
+Tue May 24 04:01:46 2011 Aaron Patterson <aaron@tenderlovemaking.com>
- * lib/net/smtp.rb (get_response): ditto.
+ * lib/yaml.rb: switch default YAML engine to Psych, old syck engine
+ may be enabled via YAML::ENGINE.yamler = "syck". [ruby-core:36374]
- * lib/net/protocol.rb: reduce syntax warning on 1.9.
+Mon May 23 09:45:26 2011 Hiroshi Nakamura <nahi@ruby-lang.org>
-Mon Mar 5 07:13:28 2007 Minero Aoki <aamine@loveruby.net>
+ * include/ruby/defines.h (CASEFOLD_FILESYSTEM): Revert r30508. Forgot to
+ include this file in the commit r31692. __APPLE__ is not
+ CASEFOLD_FILESYSTEM again, from this time.
- * lib/net/smtp.rb: reconstruct SMTPS/STARTTLS interface. New
- interface is incompatible from current 1.9 interface at all.
+Mon May 23 10:01:02 2011 Martin Bosslet <Martin.Bosslet@googlemail.com>
- * lib/net/smtp.rb: All SSL-related class methods are removed; use
- instance methods instead.
+ * ext/openssl/ossl_asn1.c: Do not parse zero-tagged values as EOC. Do
+ not let current length become negative for infinite length constructed
+ values. Support constructed values of length zero. Added tests.
- * lib/net/smtp.rb: rename methods: *ssl -> *tls (with alias
- "ssl").
+Mon May 23 09:19:53 2011 Eric Hodel <drbrain@segment7.net>
- * lib/net/smtp.rb: rename methods: *tls -> *starttls.
+ * lib/net/smtp.rb: Document Net::SMTP::Response. Patch by J.R. Garcia.
+ [Ruby 1.9 - Bug #4768]
-Mon Mar 5 01:36:41 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Mon May 23 09:03:52 2011 Shota Fukumori <sorah@tubusu.net>
- * parse.y (parser_yylex), win32/win32.c (rb_w32_utime): fixed
- indentation broken at YARV merger.
+ * lib/test/unit/parallel.rb: Never Ignore SIGINT. When received
+ Interrupt, immediately puts result and exit. [ruby-dev:43571]
-Sun Mar 4 23:41:14 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * lib/test/unit.rb: When received Interrupt, wait results from workers
+ and collect them. [ruby-dev:43571]
- * file.c (rb_stat_uid, rb_stat_gid, eaccess): use rb_uid_t and
- rb_gid_t instead of int.
+Mon May 23 09:08:07 2011 Eric Hodel <drbrain@segment7.net>
- * file.c (rb_stat_s_utime): fixed a commit miss for the platforms
- where utimes() does not exist.
+ * lib/mathn.rb: Improve documentation. Patch by Sandor Szucs.
+ [Ruby 1.9 - Bug #4767]
- * lib/fileutils.rb (touch): ditto.
+Mon May 23 08:45:55 2011 Eric Hodel <drbrain@segment7.net>
-Sun Mar 4 14:46:56 2007 WATANABE Hirofumi <eban@ruby-lang.org>
+ * lib/ostruct.rb: Improve documentation. Patch by Franklin Webber.
+ [Ruby 1.9 - Bug #4761]
- * util.c (push_element): should return a int value.
+Mon May 23 08:35:24 2011 Eric Hodel <drbrain@segment7.net>
-Sun Mar 4 01:01:25 2007 Akinori MUSHA <knu@iDaemons.org>
+ * hash.c: Improve documentation of Hash#key. Patch by Utkarsh
+ Kukreti. [Ruby 1.9 - Bug #4760]
- * lib/set.rb (Set#^, Set#&): Correct documentation. Those methods
- return sets, not arrays; noted by Oliver Frank Wittich <nietz AT
- mangabrain.de>.
+Mon May 23 08:32:59 2011 Eric Hodel <drbrain@segment7.net>
-Sat Mar 3 22:54:33 2007 Minero Aoki <aamine@loveruby.net>
+ * enumerator.c: Improve documentation. Patch by Dave Copeland.
+ [Ruby 1.9 - Bug #4757]
- * lib/fileutils.rb (touch): last #touch change causes error when
- :mtime option was not given.
+Mon May 23 07:19:45 2011 Martin Bosslet <Martin.Bosslet@googlemail.com>
-Sat Mar 3 22:51:29 2007 Minero Aoki <aamine@loveruby.net>
+ * NEWS (openssl): Infinite length support. Different behavior of
+ Constructive and Primitive constructors.
- * lib/fileutils.rb (mv): could not move directory between
- different file systems. [ruby-dev:30411]
+Mon May 23 06:58:33 2011 Martin Bosslet <Martin.Bosslet@googlemail.com>
-Sat Mar 3 22:37:02 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * ext/openssl/ossl_asn1.c: Forbid Constructives whose value is not an
+ Array to prevent segfault. Added test.
- * file.c (rb_file_s_utime): allow nil to set the current time.
+Mon May 23 06:33:17 2011 Martin Bosslet <Martin.Bosslet@googlemail.com>
- * lib/fileutils.rb (touch): ditto, and added :mtime and :nocreate
- options. fixed: [ruby-talk:219037]
+ * ext/openssl/ossl_asn1.c: Forbid Constructive without infinite
+ length. This also prevents a segfault. Added test and improved
+ documentation.
-Sat Mar 3 15:52:26 2007 Akinori MUSHA <knu@iDaemons.org>
+Mon May 23 05:58:14 2011 Martin Bosslet <Martin.Bosslet@googlemail.com>
- * object.c (instance_variable_get): Restore rdoc markups lost in
- the last commit.
+ * ext/openssl/ossl_asn1.c: Fix decoding of infinite length values.
+ Simplified ossl_asn1_decode0 by splitting it into three separate
+ functions. Add tests.
+ [Ruby 1.9 - Bug #4374][ruby-core:35123]
-Fri Mar 2 21:17:14 2007 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+Mon May 23 04:03:46 2011 Martin Bosslet <Martin.Bosslet@googlemail.com>
- * ext/win32ole/win32ole.c (get_ptr_of_variant, ole_set_safe_array,
- ole_val2ptr_variant, ole_val2olevariantdata, ole_variant2val,
- ): fix some bugs of WIN32OLE_VARIANT.new when variant type is
- VT_ARRAY|VT_BSTR or VT_BYREF.
+ * ext/openssl/ossl_asn1.c (ossl_asn1_initialize): Allow creation of
+ Constructives with an explicit tag_class parameter without
+ automatically setting tagging to :EXPLICIT. Fixes a bug when encoding
+ infinite length primitive values.
- * ext/win32ole/win32ole.c (folevariant_s_array, folevariant_initialize):
- WIN32OLE_VARIANT#[], WIN32OLE_VARIANT#[]=, WIN32OLE_VARIANT#value=
- is defined as instance method of WIN32OLE_VARIANT.
+Mon May 23 04:03:46 2011 Martin Bosslet <Martin.Bosslet@googlemail.com>
- * test/win32ole/test_win32ole_variant.rb: add some test for
- VT_ARRAY, VT_BYREF variant type.
+ * ext/openssl/ossl_asn1.c (ossl_asn1_cons_to_der): Add an additional
+ EOC for infinite length Constructives that are supposed to be encoded
+ with explicit tagging. Also tabify method correctly.
-Fri Mar 2 07:58:24 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+Mon May 23 03:44:39 2011 Martin Bosslet <Martin.Bosslet@googlemail.com>
- * object.c (rb_obj_ivar_set): RDoc updated according to a
- suggestion from Brian Candler <B.Candler AT pobox.com>.
- [ruby-core:10469]
+ * ext/openssl/ossl_asn1.c (ossl_asn1data_to_der): Remove redundant
+ flag tmp_cons.
-Thu Mar 1 21:38:07 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Mon May 23 00:35:00 2001 Kenta Murata <mrkn@mrkn.jp>
- * parse.y (stmt, arg): should not omit lhs of OP_ASGN1 even if
- empty. [ruby-dev:30455]
+ * bignum.c (dump_bignum, bigmul1_balance, big_split, biglsh_bang),
+ (bigrsh_bang, big_split3, bigmul1_toom3, bigmul0): implement Toom3 (Toom-Cook)
+ multiplication.
-Thu Mar 1 02:55:25 2007 Akinori MUSHA <knu@iDaemons.org>
+ * include/ruby/defines.h: add format prefixes for BDIGIT and BDIGIT_DBL.
- * ext/digest/digest.c (get_digest_base_metadata): Allow inheriting
- Digest::Base subclasses, which was unintentionally made
- impossible while restructuring Digest classes.
+Sun May 22 23:24:02 2011 Martin Bosslet <Martin.Bosslet@googlemail.com>
-Thu Mar 1 02:05:17 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * ext/openssl/ossl_asn1.c: Instead of rb_intern use static symbols to
+ improve performance.
- * mkconfig.rb (patchlevel): read from version.h.
+Sun May 22 21:56:51 2011 Martin Bosslet <Martin.Bosslet@googlemail.com>
-Wed Feb 28 21:15:00 2007 WATANABE Hirofumi <eban@ruby-lang.org>
+ * ext/openssl/ossl_asn1.c: Use OpenSSL constants V_ASN1_xxx instead of
+ hardcoded numbers for initializing class_tag_map.
- * configure.in (ac_cv_func_fcntl): fcntl support for MinGW.
+Sun May 22 21:29:29 2011 Hiroshi Nakamura <nahi@ruby-lang.org>
- * missing/flock.c: workaround for MinGW.
+ * include/ruby/defines.h (CASEFOLD_FILESYSTEM): Revert r30508. See #4255.
+ Now __APPLE__ is not CASEFOLD_FILESYSTEM again.
-Wed Feb 28 20:51:32 2007 URABE Shyouhei <shyouhei@ruby-lang.org>
+ * load.c (loaded_feature_path, rb_feature_p, load_lock): Revert r30508.
+ See #4255. Make $LOADED_FEATURES scanning case-sensitive again.
- * pack.c (pack_unpack): properly ignore non-base64 octets such as
- UTF-8 encoded BOMs; submitted by SOUMA Yutaka <holon@radastery.jp>
- to fix [ruby-core:10437]
+Sun May 22 18:59:27 2011 Hiroshi Nakamura <nahi@ruby-lang.org>
-Wed Feb 28 18:31:51 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+ * ext/openssl/ossl_asn1.c(ossl_asn1_default_tag): avoid using RCLASS_SUPER
+ to make it compilable. Plus, tabify and change variable definition style.
- * ext/openssl/extconf.rb: no need to check unistd.h and sys/time.h.
- they are already checked at configure.
- reported by KOBAYASHI Yasuhiro [ruby-list:43225]
+Sun May 22 18:26:43 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Wed Feb 28 18:23:43 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+ * gc.c (vm_xcalloc): use calloc provided by platforms.
+ fixes #4754
- * lib/mkmf.rb ($DEFLIBPATH): default library paths ($(topdir), etc)
- should be the first elements of library paths list.
- reported by KOBAYASHI Yasuhiro [ruby-list:43225]
+Sun May 22 11:44:53 2011 Eric Hodel <drbrain@segment7.net>
-Wed Feb 28 10:33:58 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * ext/pty/pty.c: Improve documentation. Patch by David Copeland.
+ [Ruby 1.9 - Bug #4756]
- * Makefile.in, configure.in, */Makefile.sub (THREAD_MODEL): system
- specific thread model.
+Sun May 22 11:26:39 2011 Eric Hodel <drbrain@segment7.net>
- * compile.h, regint.h, vm.h, array.c: removed unnecessary #include.
+ * lib/timeout.rb: Improve documentation. Patch by David Copeland.
+ [Ruby 1.9 - Bug #4755]
-Wed Feb 28 04:03:03 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+Sun May 22 11:21:41 2011 Eric Hodel <drbrain@segment7.net>
- * enum.c (take_i): small cosmetic / documentation patch from
- Tadashi Saito <shiba AT mail2.accsnet.ne.jp>. [ruby-dev:30446]
+ * lib/ipaddr.rb: Improve documentation. Patch by Sandor Szucs.
+ [Ruby 1.9 - Bug #4753]
-Wed Feb 28 01:20:18 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+Sun May 22 11:14:40 2011 Eric Hodel <drbrain@segment7.net>
- * test/{dbm,gdbm}/test_{dbm,gdbm}.rb: shouldn't use host_os. use
- target_os instead. reported by KOBAYASHI Yasuhiro [ruby-list:43225]
+ * lib/forwardable.rb: Document def_delegator. Patch by Sandor Szucs.
+ [Ruby 1.9 - Bug #4752]
-Wed Feb 28 00:08:11 2007 URABE Shyouhei <shyouhei@ice.uec.ac.jp>
+Sun May 22 11:11:41 2011 Eric Hodel <drbrain@segment7.net>
- * mkconfig.rb (RbConfig): add CONFIG['PATCHLEVEL']
+ * lib/fileutils.rb: Document block behavior of FileUtils.cd. Patch by
+ Bil Kleb. [Ruby 1.9 - Bug #4751]
- * common.mk: new target dist
+Sun May 22 11:07:47 2011 Eric Hodel <drbrain@segment7.net>
- * distruby.rb: new file
+ * ext/curses/curses.c: Complete documentation. Patch by Vincent
+ Batts. [Ruby 1.9 - Bug #4748]
-Tue Feb 27 22:18:45 2007 WATANABE Hirofumi <eban@ruby-lang.org>
+Sun May 22 09:29:43 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * configure.in (--enable-auto-image-base): avoid the necessity to
- rebase the shared libs as much as possible;
- submitted by Corinna Vinschen <spam at vinschen.de> in
- [ruby-talk:240964].
+ * test/ruby/test_rubyoptions.rb (TestRubyOptions#test_set_program_name):
+ use spawn. it prevent that other tests inherit renamed $0.
-Tue Feb 27 21:36:47 2007 WATANABE Hirofumi <eban@ruby-lang.org>
+Sun May 22 08:57:13 2011 Martin Bosslet <Martin.Bosslet@googlemail.com>
- * util.c (__crt0_glob_function): use ruby_glob() instead of rb_globi().
+ * ext/openssl/ossl_asn1.c: Default tag lookup in constant time via hash
+ instead of previous linear algorithm.
+ [Ruby 1.9 - Feature #4309][ruby-core:34813]
-Tue Feb 27 21:33:04 2007 WATANABE Hirofumi <eban@ruby-lang.org>
+Sun May 22 07:54:16 2011 Martin Bosslet <Martin.Bosslet@googlemail.com>
- * configure.in (ac_cv_func_setrlimit): workaround for djgpp.
+ * ext/openssl/ossl_digest.c: Explain DSS and DSS1 in documentation.
-Tue Feb 27 20:35:28 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+Sun May 22 07:10:25 2011 Martin Bosslet <Martin.Bosslet@googlemail.com>
- * common.mk (error.c, process.c): depend on yarvcore.h and rubysig.h.
+ * test/openssl/test_pkey_dsa.rb: Add tests for sign/verify.
-Tue Feb 27 19:26:31 2007 Akinori MUSHA <knu@iDaemons.org>
+Sun May 22 06:07:17 2011 Martin Bosslet <Martin.Bosslet@googlemail.com>
- * ext/nkf/nkf.c (rb_str_resize, rb_nkf_kconv, rb_nkf_guess1,
- rb_nkf_guess2): Silence warnings regarding char * vs. unsigned
- char * mismatch; submitted by Lyle Johnson
- <lyle.johnson@gmail.com> in [ruby-core:10416].
+ * test/openssl/test_x509cert.rb: Merge DSA-related tests from ruby_1_8
+ branch.
-Tue Feb 27 19:15:01 2007 Akinori MUSHA <knu@iDaemons.org>
+Sun May 22 04:11:12 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * lib/base64.rb (Base64::b64encode): Fix documentation; submitted
- by David Symonds <dsymonds@gmail.com> in [ruby-core:10432].
+ * thread.c (Init_Thread): add a code comment why the meaningless
+ line is necessary.
-Tue Feb 27 18:59:42 2007 Akinori MUSHA <knu@iDaemons.org>
+Sun May 22 01:35:12 2011 Tadayoshi Funaba <tadf@dotrb.org>
- * ext/bigdecimal/bigdecimal.c (BigDecimal_load): Silence warnings
- regarding char * vs. unsigned char * mismatch; submitted by Lyle
- Johnson <lyle.johnson@gmail.com> in [ruby-core:10416].
+ * ext/date/date_core.c: modified documentation.
- * ext/digest/sha1/sha1ossl.c (SHA1_Finish): Ditto.
+Sat May 21 22:46:26 2011 Tadayoshi Funaba <tadf@dotrb.org>
- * ext/digest/rmd160/rmd160ossl.c (RMD160_Finish): Ditto.
+ * ext/date/date_strftime(date_strftime_with_tmx): "%v" means "%e-%b-%Y".
- * ext/digest/digest.c (rb_digest_base_finish,
- rb_digest_base_update): Ditto.
+Sat May 21 22:14:35 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
-Tue Feb 27 18:12:05 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * io.c (rb_io_extract_modeenc): accept combination hash and
+ File::Constants. (eg. File.open('yo', :mode => File::WRONLY))
+ [Feature #4742][ruby-core:36338]
+ * test/ruby/test_io.rb (TestIO#test_open_mode): new test.
- * enum.c (enum_take): new method. [ruby-dev:30407]
+Sat May 21 21:44:14 2011 Tadayoshi Funaba <tadf@dotrb.org>
- * enum.c (enum_drop): ditto.
+ * test/date/test_switch_hitter.rb: new.
-Tue Feb 27 07:47:24 2007 Koichi Sasada <ko1@atdot.net>
+Sat May 21 21:18:29 2011 Tadayoshi Funaba <tadf@dotrb.org>
- * yarvcore.h, vm.h: rename th_invoke_yield() to th_yield().
+ * ext/date/date_{core,parse}.c: moved nearly all core code from ext/date/lib.
+ * ext/date/lib/{date,date/format}.rb: removed nearly all code.
- * blockinlining.c: ditto.
+Sat May 21 02:58:46 2011 Eric Hodel <drbrain@segment7.net>
- * eval.c: ditto.
+ * ext/.document: Add curses to documented extensions.
+ * ext/curses/curses.c: Improve documentation. Patch by Vincent Batts.
+ [Ruby 1.9 - Bug #4747]
- * vm.c, insns.def: rename th_invoke_yield_cfunc()
- to th_yield_with_cfunc().
+Sat May 21 02:51:01 2011 Eric Hodel <drbrain@segment7.net>
- * yarvcore.h, yarvcore.c: rename theYarvVM to ruby_current_vm and
- yarvCurrentThread to ruby_current_thread. remove yarvVMArray.
+ * ext/bigdecimal/lib/bigdecimal/util.rb: Improve documentation. Patch
+ by Pete Higgins. [Ruby 1.9 - Bug #4746]
-Tue Feb 27 00:45:23 2007 Minero Aoki <aamine@loveruby.net>
+Sat May 21 02:44:10 2011 Eric Hodel <drbrain@segment7.net>
- * test/ruby/test_optimization.rb: restore method before calling
- assert_equal.
+ * ext/bigdecimal/lib/bigdecimal/jacobian.rb: Document isEqual. Patch
+ by Kuba Fietkiewicz. [Ruby 1.9 - Bug #4744]
-Mon Feb 26 00:58:39 2007 Koichi Sasada <ko1@atdot.net>
+Sat May 21 02:22:34 2011 Eric Hodel <drbrain@segment7.net>
- * yarvcore.h: add rb_thread_t#top_wrapper, top_self.
+ * ext/date/lib/date/format.rb: Document date formats. Patch by
+ Clinton Nixon. [Ruby 1.9 - Bug #4743]
- * eval_load.c (rb_load): support eval in wrapper module
- (load(file, true)).
+Fri May 20 05:15:19 2011 Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
- * eval.c: ditto.
+ * gc.c: Fix build on m68k by 'error: too few arguments to
+ function 'mark_locations_array''.
- * eval_jump.h: ditto.
+Fri May 20 04:23:42 2011 Eric Hodel <drbrain@segment7.net>
- * iseq.c: ditto.
+ * lib/scanf.rb: Improve documentation. Patch by Gabe McArthur.
+ [Ruby 1.9 - Bug #4735]
- * vm.c: ditto.
+Fri May 20 00:58:01 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * yarvcore.c: ditto.
+ * enc/trans/ibm737-tbl.rb: greek code page. fixes #4738
- * insns.def: add a empty line.
+Thu May 19 14:44:05 2011 NAKAMURA Usaku <usa@ruby-lang.org>
-Mon Feb 26 00:54:36 2007 Koichi Sasada <ko1@atdot.net>
+ * test/ruby/test_signal.rb (test_signal_requiring): skip on Windows.
+ we can send SIGINT only to pid 0 and the process itself.
- * common.mk: change "gdb" rule. You can debug miniruby with
- $(srcdir)/test.rb on gdb by this rule (type "make gdb").
- If you write break points to "breakpoints.gdb" on $srcdir,
- gdb runs with this file.
+Thu May 19 09:07:08 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Sun Feb 25 11:46:58 2007 Koichi Sasada <ko1@atdot.net>
+ * lib: revert r31635-r31638 and untabify with expand(1).
- * win32/Makefile.sub: enable -Zi (debug) option.
+Thu May 19 07:47:26 2011 Martin Bosslet <Martin.Bosslet@googlemail.com>
-Sun Feb 25 11:38:40 2007 Koichi Sasada <ko1@atdot.net>
+ * test/openssl/test_pkey_rsa.rb: Add tests for sign/verify.
- * ruby.h: define RUBY_VM macro and remove NATIVETHREAD* macros.
+Thu May 19 07:19:16 2011 Martin Bosslet <Martin.Bosslet@googlemail.com>
- * intern.h: ditto.
+ * ext/openssl/ossl_pkey.c: Add documentation.
- * signal.c (posix_signal): remove unused function
- posix_nativethread_signal().
+Thu May 19 07:06:56 2011 Eric Hodel <drbrain@segment7.net>
-Sun Feb 25 11:31:13 2007 Koichi Sasada <ko1@atdot.net>
+ * lib/benchmark.rb: Fix indentation.
+ * lib/net/imap.rb: Fix indentation of regular expressions.
- * thread.c (rb_thread_run): fix to ANSI style.
+Thu May 19 06:36:11 2011 Eric Hodel <drbrain@segment7.net>
-Sun Feb 25 11:09:16 2007 Minero Aoki <aamine@loveruby.net>
+ * lib/net/imap.rb: Fix indentation of EOF for heredoc.
+ * lib/debug.rb (Commands): Fix indentation of EOHELP for heredoc.
- * bootstraptest/runner.rb: show source code in error message.
+Thu May 19 06:30:38 2011 Eric Hodel <drbrain@segment7.net>
-Sun Feb 25 09:39:50 2007 Koichi Sasada <ko1@atdot.net>
+ * lib/mkmf.rb: Fix indentation of EOM for heredoc.
- * yarvcore.h:
- rename:
- rb_iseq_t#file_name -> filename
- rb_iseq_t#local_tbl -> local_table
- add:
- rb_iseq_t#local_table_size
+Thu May 19 06:16:41 2011 Eric Hodel <drbrain@segment7.net>
- * compile.c: separate local_table_size and local_size
- (local variable size)
+ * lib: Convert tabs to spaces for ruby files per
+ http://redmine.ruby-lang.org/projects/ruby/wiki/DeveloperHowto#coding-style
+ Patch by Steve Klabnik [Ruby 1.9 - Bug #4730]
+ Patch by Jason Dew [Ruby 1.9 - Feature #4718]
- * blockinlining.c: apply above rename.
+Thu May 19 06:06:07 2011 Eric Hodel <drbrain@segment7.net>
- * compile.h: ditto.
+ * lib/cgi/util.rb: Improve documentation. Patch by Clinton Nixon.
+ [Ruby 1.9 - Bug #4733]
+ * lib/cgi/core.rb: ditto
+ * lib/cgi/cookie.rb: ditto
- * eval.c: ditto.
+Thu May 19 06:02:21 2011 Eric Hodel <drbrain@segment7.net>
- * iseq.c: ditto.
+ * lib/tempfile.rb: Document Dir.mkdir and Dir.rmdir. Patch by Clinton
+ Nixon. [Ruby 1.9 - Bug #4728]
- * proc.c: ditto.
-
- * vm.c: ditto.
-
- * vm_dump.c: ditto.
-
-Sun Feb 25 10:27:17 2007 Minero Aoki <aamine@loveruby.net>
-
- * bootstraptest/runner.rb: add lib/ to load path.
-
-Sat Feb 25 10:16:50 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * rubyio.h (HAVE_RB_IO_T): macro to tell if rb_io_t is defined.
-
-Sat Feb 24 19:39:16 2007 Minero Aoki <aamine@loveruby.net>
-
- * common.mk: new target "btest", to run bootstraptests.
-
-Sat Feb 24 19:30:40 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * file.c, gc.c, io.c, ruby.h, rubyio.h, win32/win32.h (rb_io_t):
- renamed from OpenFile.
-
- * ext/dl/cptr.c, ext/io/wait/wait.c, ext/openssl/ossl.h,
- ext/openssl/ossl_bio.c, ext/openssl/ossl_ssl.c, ext/pty/pty.c,
- ext/readline/readline.c, ext/socket/socket.c: ditto.
-
-Sat Feb 24 19:28:23 2007 Minero Aoki <aamine@loveruby.net>
-
- * bootstraptest/runner.rb: new option -v,--verbose.
-
-Sat Feb 24 18:55:50 2007 Minero Aoki <aamine@loveruby.net>
-
- * yarvtest/test_method.rb: removed (merged to bootstraptest).
-
- * yarvtest/test_class.rb: ditto.
-
-Sat Feb 24 18:44:39 2007 Minero Aoki <aamine@loveruby.net>
-
- * bootstraptest/test_class.rb: new file.
-
- * bootstraptest/test_method.rb: add tests.
+Thu May 19 05:57:52 2011 Eric Hodel <drbrain@segment7.net>
-Sat Feb 24 18:44:30 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * encoding.c: Improve documentation for Encoding#default_external and
+ Encoding#default_internal.
- * intern.h (rb_thread_blocking_region): add prototype.
+Wed May 18 22:45:26 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * file.c (rb_thread_flock, rb_file_flock): use UBF feature.
+ * ext/io/console/lib/console/size.rb (IO#console_size): new
+ method. (EXPERIMENTAL)
- * process.c (rb_waitpid_blocking, rb_waitpid): use UBF feature.
+Wed May 18 22:41:51 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * thread.c (rb_thread_debug): added runtime debugging flag.
+ * internal.h: add for internal use only.
- * thread.c (BLOCKING_REGION): restore previous UBF.
+Wed May 18 22:36:43 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * thread.c (rb_thread_blocking_region): default UBF to interrupt
- in system dependent way by RB_UBF_DFL.
- + ubf_select() on posix system
- + ubf_handle() on Win32
- + none on cygwin
+ * eval.c (setup_exception): internal exception should be hidden
- * thread_win32.ci (rb_w32_wait_events_blocking): blocking version.
+Wed May 18 20:25:04 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * win32/win32.c (waitpid): use rb_w32_wait_events_blocking().
+ * lib/timeout.rb (Timeout#timeout): don't leak "execution expired"
+ exception. [Bug #4283] [ruby-core:34534].
-Sat Feb 24 17:45:48 2007 Minero Aoki <aamine@loveruby.net>
+Wed May 18 06:09:24 2011 Eric Hodel <drbrain@segment7.net>
- * parse.y (f_arg, opt_f_block_arg): ripper should export VALUE.
+ * lib/cmath.rb: Add some examples and improve documentation. Patch by
+ Sandor Szucs. [Ruby 1.9 - Bug #4727]
-Sat Feb 24 16:52:55 2007 Minero Aoki <aamine@loveruby.net>
+Wed May 18 05:40:31 2011 Eric Hodel <drbrain@segment7.net>
- * bootstraptest/runner.rb: fix syntax error.
+ * lib/benchmark.rb: Remove nodoc from Benchmark::Job and
+ Benchmark::Report. Patch by Sandor Szucs. [Ruby 1.9 - Bug #4726]
-Sat Feb 24 16:51:09 2007 Minero Aoki <aamine@loveruby.net>
-
- * bootstraptest/runner.rb: new option --help.
-
-Sat Feb 24 16:47:33 2007 Minero Aoki <aamine@loveruby.net>
-
- * bootstraptest: new test suite.
-
- * bootstraptest/runner.rb: new file.
-
- * bootstraptest/test_literal.rb: new file.
-
- * bootstraptest/test_method.rb: new file.
-
-Sat Feb 24 16:29:15 2007 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * win32/win32.c (StartSocket): remove unnecessary code.
-
-Sat Feb 24 16:04:30 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * parse.y (struct local_vars): remove unused nofree member from
- struct.
-
- * parse.y (parser_free): ditto.
-
-Sat Feb 24 15:57:19 2007 Shugo Maeda <shugo@ruby-lang.org>
-
- * lib/thread.rb (ConditionVariable#broadcast): use Mutex
- instead of Thread.exclusive.
-
- * lib/monitor.rb (MonitorMixin#mon_exit): unset @mon_owner
- before calling Mutex#unlock.
-
-Sat Feb 24 15:51:45 2007 Minero Aoki <aamine@loveruby.net>
-
- * parse.y (program): remove useless assignment to reduce warning.
-
-Sat Feb 24 15:41:51 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * parse.y (lambda): remove unused clause from the rule to stop
- warning.
+Wed May 18 05:29:26 2011 Eric Hodel <drbrain@segment7.net>
-Sat Feb 24 15:41:22 2007 Shugo Maeda <shugo@ruby-lang.org>
+ * lib/webrick/compat.rb: Improve documentation. Patch by Sandor
+ Szucs. [Ruby 1.9 - Bug #4725]
- * lib/thread.rb: do not redefine Mutex#synchronize.
+Wed May 18 05:10:35 2011 Eric Hodel <drbrain@segment7.net>
-Sat Feb 24 15:14:02 2007 Shugo Maeda <shugo@ruby-lang.org>
+ * lib/tracer.rb: Improve documentation. Patch by Richard Ramsden.
+ [Ruby 1.9 - Feature #4720]
- * lib/monitor.rb: rewritten using Mutex/ConditionVariable.
+Wed May 18 04:53:41 2011 Eric Hodel <drbrain@segment7.net>
-Sat Feb 24 13:25:32 2007 Koichi Sasada <ko1@atdot.net>
+ * lib/cmath.rb: Improve documentation. Patch by Jason Dew.
+ [Ruby 1.9 - Feature #4717]
- * lib/soap/mapping/factory.rb: catch up with spec changes (return
- Symbols instead of Strings).
+Wed May 18 04:50:24 2011 Eric Hodel <drbrain@segment7.net>
- * lib/soap/mapping/mapping.rb: ditto.
+ * lib/net/ftp.rb: Improve documentation. Patch by Vincent Batts.
+ [Ruby 1.9 - Bug #4710]
-Sat Feb 24 10:49:55 2007 Koichi Sasada <ko1@atdot.net>
+Wed May 18 03:14:49 2011 Eric Hodel <drbrain@segment7.net>
- * parse.y, node.h, compile.c: change node tree structure. a purpose
- of this change is to unify argument structure of method and block.
- this change prohibits duplicate block parameter name.
- new argument information:
- NODE_ARGS [m: int, o: NODE_OPT_ARG, ->]
- NODE_ARGS_AUX [r: ID, b: ID, ->]
- NODE_ARGS_AUX [Pst: id, Plen: int, init: NODE*]
- optarg information:
- NODE_OPT_ARGS [idx, expr, ->]
+ * test/test_singleton.rb: Add tests from lib/singleton.rb. Patch by
+ Pete Higgins. [Ruby 1.9 - Bug #4715]
- * vm_macro.def: ditto.
+Wed May 18 03:03:07 2011 Eric Hodel <drbrain@segment7.net>
- * gc.c: ditto.
+ * lib/singleton.rb: Improve documentation. Patch by Pete Higgins.
+ [Ruby 1.9 - Bug #4709]
- * iseq.c: ditto.
+Tue May 17 21:24:04 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * compile.h: fix debug function name.
+ * thread.c (rb_mutex_lock): remove remove_signal_thread_list() call.
+ It's meaningless because lock_interrupt doesn't call
+ add_signal_thread_list().
- * test/ripper/test_scanner_events.rb: |_,_,foo| -> |_1,_2,foo|
+Tue May 17 20:20:49 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * test/ruby/test_lambda.rb: disable test temporarily.
+ * vm_core.h (rb_thread_struct): add volatile to
+ transition_for_lock because it is not protected by lock.
-Sat Feb 24 10:46:28 2007 Koichi Sasada <ko1@atdot.net>
+Tue May 17 20:08:53 2011 NAKAMURA Usaku <usa@ruby-lang.org>
- * test/testunit/test_testcase.rb: catch up with current instance
- variable spec.
+ * LEGAL (missing/{elf,tgamma,lgamma_r}.c): they've been replaced by
+ public domain implementations.
-Sat Feb 24 10:32:59 2007 Koichi Sasada <ko1@atdot.net>
+ * LEGAL (vsnprintf.c): it has moved to srcdir from missing/.
- * common.mk: change vm_macro.def rule.
+ * LEGAL (missing/crypt.c): list its original license.
-Sat Feb 24 10:38:05 2007 Minero Aoki <aamine@loveruby.net>
+Tue May 17 19:54:26 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * ext/racc/cparse/cparse.c (cparse_params_mark): remove useless
- rb_gc_mark. Thanks Tomoyuki Chikanaga. [ruby-dev:30405]
+ * LEGAL (configure): add missing/setproctitle.c
-Sat Feb 24 07:31:35 2007 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+Tue May 17 19:35:01 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
+ Fix FreeBSD test failure.
- * ext/win32ole/win32ole.c: add WIN32OLE_VARIANT.array,
- WIN32OLE_VARIANT#value=, refactoring.
+ * test/ruby/test_rubyoptions.rb (TestRubyOptions#test_set_program_name):
+ use ps -o command instead of ps -o cmd. FreeBSD doesn't support
+ -o cmd option.
- * test/win32ole/test_win32ole_variant.rb: add some test for
- WIN32OLE_VARIANT.array, WIN32OLE_VARIANT#value=.
+Tue May 17 08:04:26 2011 Martin Bosslet <Martin.Bosslet@googlemail.com>
-Fri Feb 23 18:37:55 2007 Minero Aoki <aamine@loveruby.net>
+ * ext/openssl/ossl_digest.c: Add documentation.
- * test/ruby/test_yield.rb: new test.
+Tue May 17 07:14:58 2011 Eric Hodel <drbrain@segment7.net>
- * yarvtest/test_yield.rb: removed (moved to test_yield.rb).
+ * lib/net/http.rb: Improve documentation of proxy configuration
+ methods. Patch by Alf Mikula. [Ruby 1.9 - Bug #4714]
-Fri Feb 23 18:27:17 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+Tue May 17 07:09:01 2011 Eric Hodel <drbrain@segment7.net>
- * thread.c (rb_thread_polling): check interrupts here.
+ * lib/net/pop.rb: Improve documentation. Patch by Vincent Batts.
+ [Ruby 1.9 - Bug #4711]
+ * lib/net/telnet.rb: ditto
- * thread_win32.ci (w32_wait_events): rename from w32_wait_event(), and
- now receive multiple event handles.
+Tue May 17 07:00:41 2011 Eric Hodel <drbrain@segment7.net>
- * win32/win32.c (wait_events, rb_w32_main_context): removed.
+ * lib/net/http.rb: Fix nodoc for Net::HTTP::version_1_1?. Patch by
+ Alf Mikula. [Ruby 1.9 - Bug #4713]
- * thread_win32.ci (rb_w32_wait_events): new function.
+Tue May 17 06:56:26 2011 Eric Hodel <drbrain@segment7.net>
- * thread_win32.ci, win32/win32.c (rb_w32_sleep, rb_w32_Sleep): move
- from win32/win32.c to thread_win32.ci, and use w32_wait_events().
+ * lib/optparse.rb: Add link to make_switch to improve documentation.
+ Patch by David Copeland. [Ruby 1.9 - Bug #4708]
-Fri Feb 23 18:13:22 2007 Minero Aoki <aamine@loveruby.net>
+Tue May 17 06:50:40 2011 Eric Hodel <drbrain@segment7.net>
- * test/ruby/test_optimization.rb: new test (merges test_opts.rb).
+ * lib/observer.rb: Improve documentation. Patch by David Copeland.
+ [Ruby 1.9 - Bug #4707]
- * yarvtest/test_opts.rb: removed.
+Tue May 17 06:42:53 2011 Eric Hodel <drbrain@segment7.net>
-Fri Feb 23 16:59:39 2007 Minero Aoki <aamine@loveruby.net>
+ * lib/logger.rb: Improve documentation. Patch by David Copeland.
+ [Ruby 1.9 - Bug #4706]
- * test/ruby/test_assignment.rb: merge yarvtest/test_massign.
+Tue May 17 06:28:14 2011 Eric Hodel <drbrain@segment7.net>
- * yarvtest/test_massign.rb: removed (merged to
- test_assignment.rb).
+ * lib/gserver.rb: Improve documentation. Patch by David Copeland.
+ [Ruby 1.9 - Bug #4705]
-Fri Feb 23 15:58:20 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+Tue May 17 06:21:15 2011 Eric Hodel <drbrain@segment7.net>
- * signal.c (sighandler): need to re-install sighandler on some
- platforms.
+ * lib/cgi.rb: Add toplevel documentation to class CGI
+ * lib/cgi/session.rb: Add overview documentation to CGI::Cookie
+ * lib/cgi/html.rb: Don't add CGI::TagMaker documentation to CGI.
+ Patch by David Copeland. [Ruby 1.9 - Bug #4704]
+ * lib/cgi/core.rb: Clean up CGI documentation. Patch by David
+ Copeland. [Ruby 1.9 - Bug #4704]
+ * lib/cgi/cookie.rb: Clean up CGI::Cookie documentation. Patch by
+ David Copeland. [Ruby 1.9 - Bug #4704]
-Fri Feb 23 15:05:57 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+Tue May 17 05:52:30 2011 Eric Hodel <drbrain@segment7.net>
- * win32/win32.c (set_pioinfo_extra): simplified.
+ * ext/digest: Improve documentation of Digest, Digest::HMAC and
+ Digest::SHA2. Patch by Pete Higgins. [Ruby 1.9 - Bug #4702]
-Fri Feb 23 14:23:20 2007 Minero Aoki <aamine@loveruby.net>
+Tue May 17 03:51:42 2011 Eric Hodel <drbrain@segment7.net>
- * test/ruby/test_literal.rb: new test.
+ * lib/abbrev.rb: Hide copyright and revision information from RDoc.
+ Inspired by patch from David Copeland, bug #4703.
-Fri Feb 23 12:40:12 2007 James Edward Gray II <james@grayproductions.net>
+Tue May 17 03:33:21 2011 Eric Hodel <drbrain@segment7.net>
- * lib/xmlrpc/client.rb (XMLRPC::Client::do_rpc): Make the
- Content-Length parameter optional for responses in
- xmlrpc/client.rb; suggested by Daniel Berger
- <Daniel.Berger@qwest.com> and approved by the maintainer.
+ * lib/timeout.rb (module Timeout): Hide internal constants. Patch by
+ Pete Higgins. [Ruby 1.9 - Bug #4701]
- * lib/xmlrpc/create.rb (XMLRPC::Create::conv2value): Add DateTime
- support to xmlrpc; approved by the maintainer.
+Mon May 16 11:21:09 2011 NAKAMURA Usaku <usa@ruby-lang.org>
-Fri Feb 23 12:24:46 2007 Minero Aoki <aamine@loveruby.net>
+ * configure.in, win32/Makefile.sub (RUBY_SO_NAME): add CPU as prefix
+ of RUBY_SO_NAME on x64/ia64 mswin/mingw.
+ [Feature #4602]
- * parse.y (lambda): add ripper event. This fixes bus error on
- "make test-all".
+Mon May 16 08:00:05 2011 Eric Hodel <drbrain@segment7.net>
- * ext/ripper/extconf.rb: do not stop build.
-
-Fri Feb 23 12:16:05 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * parse.y: remove dyna_check_gen() prototype.
-
-Fri Feb 23 11:41:21 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * parse.y, compile.c, gc.c, insns.def, intern.h, iseq.c, node.h,
- object.c, string.c, variable.c, vm_macro.def: revert private
- instance variable feature, which is postponed until next major
- release.
-
- * marshal.c: TYPE_SYMBOL2 removed; MARSHAL_MINOR reverted back to
- 8th version.
-
-Fri Feb 23 10:53:21 2007 Shugo Maeda <shugo@ruby-lang.org>
-
- * thread_pthread.ci (native_mutex_lock): do not call
- pthread_mutex_trylock().
-
-Fri Feb 23 10:31:16 2007 Minero Aoki <aamine@loveruby.net>
-
- * dln.c: use dlopen on Mac OS X 10.3 or later.
-
-Fri Feb 23 10:03:49 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * string.c (rb_str_ord): need not to check string length; ord
- returns a codepoint for the first character in the string.
-
-Wed Feb 21 22:29:45 2007 Akinori MUSHA <knu@iDaemons.org>
-
- * numeric.c (fix_equal): A bit more optimization.
-
-Wed Feb 21 17:40:37 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * numeric.c (fix_equal): remove FIX2LONG() to optimize. suggested
- in http://t-a-w.blogspot.com/2007/02/making-ruby-faster.html.
- [ruby-talk:240223]
-
- * numeric.c (fix_cmp): ditto.
-
-Wed Feb 21 09:14:04 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * eval_load.c (rb_require_safe): should restore safe level.
-
-Tue Feb 20 21:19:29 2007 Masaki Suketa <masaki.suketa@nifty.ne.jp>
-
- * ext/win32ole/win32ole.c (installed_code_page_proc,
- ole_variant2val): small refactoring.
-
-Tue Feb 20 15:11:42 2007 Koichi Sasada <ko1@atdot.net>
-
- * eval.c, vm.c, yarvcore.h: move definition of rb_call_super() to
- vm.c from eval.c. change th_call_super() to static function.
-
-Tue Feb 20 15:08:25 2007 Koichi Sasada <ko1@atdot.net>
-
- * test/io/nonblock/test_flush.rb: YARV doesn't raise any errors if
- another thread close IO object which current thread is blocking with.
-
-Tue Feb 20 15:03:29 2007 Koichi Sasada <ko1@atdot.net>
-
- * thread.c (do_select, rb_thread_wait_fd_rw): raise sys error if
- errno is not 0 and EBADF.
-
-Mon Feb 19 22:15:31 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * configure.in (RUBY_REPLACE_TYPE): cache convertible type info.
-
- * intern.h (rb_detach_process): use rb_pid_t instead of pid_t.
-
- * ruby.h (PIDT2NUM, NUM2PIDT, UIDT2NUM, NUM2UIDT, GIDT2NUM, NUM2GIDT):
- defaulted to conversion using long.
-
-Mon Feb 19 17:14:28 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * ext/socket/socket.c (unix_peeraddr): wrong syscall name in error
- message for #peeraddr. a patch from Sam Roberts
- <sroberts at uniserve.com>. [ruby-core:10366]
-
-Sun Feb 18 22:56:07 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/etc/etc.c (etc_getgrgid): missed to replace a macro.
-
-Sun Feb 18 19:33:00 2007 Tadayoshi Funaba <tadf@dotrb.org>
-
- * lib/date/format.rb: updated based on date2 4.0.3.
-
-Sun Feb 18 13:11:51 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * configure.in (pid_t, uid_t, gid_t): check if defined.
-
- * intern.h, process.c, rubyio.h, ext/etc/etc.c, ext/pty/pty.c: use
- rb_{pid,uid,gid}_t instead of plain int. [ruby-dev:30376]
-
- * ext/etc/extconf.rb (PIDT2NUM, NUM2PIDT, UIDT2NUM, NUM2UIDT, GIDT2NUM,
- NUM2GIDT): moved to configure.in.
-
-Fri Feb 16 21:34:33 2007 Koichi Sasada <ko1@atdot.net>
-
- * object.c (rb_obj_ivar_set/get/defined): fix to check :@_v/C id.
-
- * test/testunit/test_testcase.rb: fix to use instance_variable_get()
- to access @_result.
-
-Fri Feb 16 20:59:10 2007 Koichi Sasada <ko1@atdot.net>
-
- * intern.h: add a prototype of rb_sym_to_s().
-
-Fri Feb 16 19:24:22 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * math.c (math_log): update document to mention second optional
- argument for logarithm base.
-
-Fri Feb 16 19:19:21 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * parse.y (mrhs): need to append by arg_append().
- [ruby-talk:239385]
-
-Fri Feb 16 11:18:21 2007 Eric Hodel <drbrain@segment7.net>
-
- * lib/.document: Apply patch for irb, e2mmap and README by Hugh Sasse
- <hgs at dmu.ac.uk> from [ruby-core:10135]
-
- * lib/prettyprint.rb: Suppress RDoc for PrettyPrint test suite.
-
-Thu Feb 15 20:48:36 2007 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * win32/win32.c (set_pioinfo_extra): new function for VC++8 SP1
- workaround. [ruby-core:10259]
-
- * win32/win32.c (NtInitialize): call above function.
-
-Thu Feb 15 16:25:54 2007 Akinori MUSHA <knu@iDaemons.org>
-
- * lib/uri/generic.rb (URI::Generic::userinfo): Considering how
- `scheme://user:@...', `scheme://:password@...' and
- `scheme://:@...' are parsed, an empty user name or password
- should be allowed and represented as it is.
-
-Thu Feb 15 01:52:53 2007 Koichi Sasada <ko1@atdot.net>
-
- * vm.(c|h), yarvcore.(c|h) (yarvGlobalStateVersion): rename to
- ruby_vm_global_state_version.
-
-Thu Feb 15 01:50:26 2007 Koichi Sasada <ko1@atdot.net>
-
- * test/fileutils/test_fileutils.rb (check_singleton): fix to use
- symbol instead of string.
-
- * test/io/nonblock/test_flush.rb: enable tests.
-
- * test/xmlrpc/test_webrick_server.rb: ditto.
-
-Thu Feb 15 01:43:45 2007 Koichi Sasada <ko1@atdot.net>
-
- * lib/delegate.rb: catch up with class local variable (@_v) spec.
-
- * lib/singleton.rb: ditto.
-
-Wed Feb 14 22:52:43 2007 Masaki Suketa <masaki.suketa@nifty.ne.jp>
-
- * ext/win32ole/win32ole.c (ole_variant2val): VC++6 does not
- support VT_I8, VT_UI8.
-
-Wed Feb 14 22:10:21 2007 Koichi Sasada <ko1@atdot.net>
-
- * configure.in: change stack limit to 2MB from 32MB.
-
- * win32/Makefile.sub: ditto.
-
-Wed Feb 14 21:39:36 2007 Akinori MUSHA <knu@iDaemons.org>
-
- * ext/digest/lib/digest.rb (Digest::self.const_missing): Drop
- autoloads for sha2 classes in favor of handling in
- const_missing(), to work around a problem exposed on OS X.
-
-Wed Feb 14 21:19:47 2007 Koichi Sasada <ko1@atdot.net>
-
- * thread_pthread.ci (native_thread_create): adjust 4KB (page size)
- alignment.
-
-Wed Feb 14 21:12:36 2007 Koichi Sasada <ko1@atdot.net>
-
- * thread_pthread.ci (CHECK_ERR): call rb_bug()
- instead of printf() and exit().
-
-Wed Feb 14 16:48:56 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/date/format.rb (Date::Format::Bag::method_missing): need not
- to use instance variables corresponding each method; use Hash
- instead.
-
-Wed Feb 14 13:12:06 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * re.c (reg_operand): allow symbols to be operands for regular
- expression matches.
-
- * string.c (Init_String): allow Symbol#===.
-
- * lib/date/format.rb (Date::Format::Bag::to_hash): string
- added prefixes.
-
-Wed Feb 14 12:58:38 2007 Koichi Sasada <ko1@atdot.net>
-
- * thread.c (do_select): fix to iterate select().
- on cygwin/mswin32, iterate in unblocking region.
-
- * thread.c (rb_thread_select): don't iterate on this function.
- (iterate in do_select).
-
-Wed Feb 14 11:39:18 2007 Koichi Sasada <ko1@atdot.net>
-
- * thread.c (set_unblock_function): fix function interface.
-
-Wed Feb 14 11:12:02 2007 Koichi Sasada <ko1@atdot.net>
-
- * eval_load.c, yarvcore.h: use rb_vm_t#loaded_features instead of
- rb_features (global variable).
-
- * yarvcore.c: mark rb_vm_t#loaded_features.
-
-Wed Feb 14 08:46:25 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * compile.c (defined_expr): no longer distinguish ordinary local
- variables and in-block local variables in defined? value.
-
-Wed Feb 14 03:14:42 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/uri/generic.rb (URI::Generic::userinfo): should support
- empty password. [ruby-core:10290]
-
- * lib/uri/generic.rb (URI::Generic::set_password): password can be
- cleared by nil. [ruby-core:10290]
-
-Wed Feb 14 03:10:33 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * parse.y (struct local_vars): no need to warn out-of-scope
- variables; remove dnames member from struct.
-
-Wed Feb 14 03:04:10 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * parse.y: RVarmap no longer used as yytype; removed.
-
- * parse.y (dyna_push_gen): no longer need return value.
-
- * parse.y (dyna_pop_gen): no longer need argument.
-
- * parse.y (local_push_gen): initialize nofree.
-
-Wed Feb 14 00:30:07 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * ext/socket/socket.c (init_unixsock): path may contain NUL for
- abstract unix sockets. [ruby-core:10288]
-
-Tue Feb 13 02:21:12 2007 Sam Roberts <sroberts@uniserve.com>
-
- * io.c (rb_f_syscall): Fix buffer overflow with syscall
- arguments. [ruby-bugs:PR#8541]
-
-Mon Feb 12 13:57:30 2007 Masaki Suketa <masaki.suketa@nifty.ne.jp>
-
- * ext/win32ole/win32ole.c (ole_variant2val): support VT_I8, VT_UI8.
-
-Mon Feb 12 11:48:52 2007 Kouhei Sutou <kou@cozmixng.org>
-
- * lib/rss/dublincore.rb, lib/rss/maker/dublincore.rb: dc_rightses
- -> dc_rights_list. dc_rightses still exists for backward
- compatibility. [ruby-core:8350]
-
- * test/rss/test_maker_dc.rb: added tests for dc_rights_list.
-
-Sun Feb 11 22:40:17 2007 Masaki Suketa <masaki.suketa@nifty.ne.jp>
-
- * ext/win32ole/win32ole.c (ole_ptrtype2val): ole_type, ole_type_detail
- should not return "VARIANT,VARIANT".
-
-Sun Feb 11 22:11:05 2007 Kouhei Sutou <kou@cozmixng.org>
-
- * lib/rss/xml-stylesheet.rb (RSS::XMLStyleSheet#initialize):
- kept backward compatibility.
-
-Sun Feb 11 22:10:08 2007 Kouhei Sutou <kou@cozmixng.org>
-
- * lib/rss/parser.rb (RSS::ListenerMixin#start_else_element): used
- const_defined? instead of constants.include?.
-
-Sun Feb 11 18:47:14 2007 Masaki Suketa <masaki.suketa@nifty.ne.jp>
-
- * ext/win32ole/win32ole.c (ole_val2olevariantdata):
- WIN32OLE_VARIANT#new accepts nil when variant type is VT_ARRAY.
-
- * test/win32ole/test_win32ole_variant.rb: ditto.
-
- * ext/win32ole/win32ole.c: small refactoring.
-
-Sun Feb 11 07:42:25 2007 Akinori MUSHA <knu@iDaemons.org>
-
- * lib/cgi.rb (CGI::QueryExtension::read_multipart): Properly parse
- a quoted-string in a Content-Disposition value.
-
-Sat Feb 10 20:21:29 2007 Masaki Suketa <masaki.suketa@nifty.ne.jp>
-
- * ext/win32ole/win32ole.c: add WIN32OLE#ole_query_interface.
- thanks to Mikael Pahmp.
-
- * test/win32ole/test_win32ole.rb: ditto.
-
-Sat Feb 10 17:46:52 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * common.mk: targets which depend on yarvcore.h now depend on
- rubysig.h too.
-
- * yarvcore.h (rb_vm_t): use rb_atomic_t instead of int.
-
-Sat Feb 10 00:13:11 2007 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/lib/tk.rb: fix typo (TkConfigMethod::__confinfo_cmd,
- __conv_keyonly_opts).
-
-Fri Feb 9 12:33:40 2007 Koichi Sasada <ko1@atdot.net>
-
- * thread_win32.ci (w32_show_error_message): renamed to w32_error.
- this function do rb_bug().
-
- * thread_win32.ci (w32_set_event, w32_reset_event, w32_close_handle,
- w32_resume_thread): added. fix to use these functions instead calling
- win32api directly.
-
- * thread_win32.ci (w32_create_thread): create suspend thread
- (caller must call w32_resume_thread()).
-
-Fri Feb 9 11:03:40 2007 Koichi Sasada <ko1@atdot.net>
-
- * test/ruby/test_readpartial.rb: tests are working on mswin32/cygwin.
-
-Fri Feb 9 05:08:17 2007 Koichi Sasada <ko1@atdot.net>
-
- * thread.c, thread_pthread.ci, thread_win32.ci (thread_start_func_1):
- move cleanup function to thread_start_func_2().
-
- * thread.c, thread_pthread.ci, thread_win32.ci:
- add more destruct functions.
- (native_thread_destroy() and native_mutex_destroy())
-
- * thread_pthread.ci, thread_pthread.h: make native_mutex_* functions
- (check error, etc), it's not macro any more.
-
- * thread_win32.ci (thread_start_func_1): store some values before
- running thread (to release these after running thread).
-
- * thread_win32.ci (native_thread_create): fix spaces.
-
-Thu Feb 8 22:44:04 2007 Masaki Suketa <masaki.suketa@nifty.ne.jp>
-
- * ext/win32ole/win32ole.c (ole_set_safe_array, ole_variant2val,
- ole_val_ary2variant_ary): fix WIN32OLE_VARIANT.new bug when
- 1st argument is empty array, and when 2nd argument is
- VT_ARRAY|VT_BYREF.
-
- * test/win32ole/test_win32ole_variant.rb: ditto.
-
-Thu Feb 8 22:39:09 2007 Koichi Sasada <ko1@atdot.net>
-
- * yarvtest/yarvtest.rb: check target command names.
-
-Thu Feb 8 22:31:45 2007 Koichi Sasada <ko1@atdot.net>
-
- * test/ruby/test_clone.rb: fix to current spec
- (Module should not be occur many times in ancestors).
-
-Thu Feb 8 22:26:14 2007 Koichi Sasada <ko1@atdot.net>
-
- * test/ruby/test_string.rb: ("foo" == :foo) and ("foo" === :foo)
- should be false.
-
- * ChangeLog: fix last messages.
-
-Thu Feb 8 22:24:06 2007 Koichi Sasada <ko1@atdot.net>
-
- * test/ruby/test_module.rb: fix to use Symbol instead of String.
-
- * test/ruby/test_module.rb: remove space before argument parentheses.
-
-Thu Feb 8 22:02:14 2007 Koichi Sasada <ko1@atdot.net>
-
- * test/ruby/marshaltestlib.rb: eval(sym) -> eval(sym.to_s)
-
-Thu Feb 8 21:35:16 2007 Masaki Suketa <masaki.suketa@nifty.ne.jp>
-
- * test/win32ole/test_propertyputref.rb (setup): fix typo.
-
- * test/win32ole/test_win32ole_event.rb: should not use
- InternetExplorer.gohome to test.
-
-Thu Feb 8 21:02:07 2007 Koichi Sasada <ko1@atdot.net>
-
- * thread.c (GVL_UNLOCK_RANGE): rename to BLOCKING_REGION().
-
- * thread.c (rb_thread_run_parallel): rename to
- rb_thread_blocking_region().
-
-Thu Feb 8 15:48:44 2007 Koichi Sasada <ko1@atdot.net>
-
- * yarvcore.h, thread.c: fix to use pthread on cygwin.
-
- * yarvcore.h, thread.c: move GVL_UNLOCK_BEGIN() and GVL_UNLOCK_END()
- from yarvcore.h to thread.c.
-
- * thread.c: change GVL_UNLOCK_RANGE() arguments
- (adding ubf as 2nd argument).
-
- * thread.c: fix to use polling in select on cygwin and mswin32.
-
- * thread.c, thread_pthread.ci, thread_win32.ci, yarvcore.h:
- rename:
- * rb_thread_t#interrupt_function -> unblock_function
- * rb_interrupt_function_t -> rb_unblock_function
- * some interrupt function name -> ubf_*
- * yarv_* -> *
-
-Thu Feb 8 16:08:02 2007 Koichi Sasada <ko1@atdot.net>
-
- * common.mk: fix to use RUNRUBY instead of BASERUBY if possible.
-
- * common.mk ($(INSNS) rule): remove $(PROGRAM) first.
-
-Thu Feb 8 15:43:05 2007 Koichi Sasada <ko1@atdot.net>
-
- * process.c: fix to use rb_status_line_set/get/clear().
-
- * eval_intern.h: fix line break.
-
-Thu Feb 8 15:00:14 2007 Koichi Sasada <ko1@atdot.net>
-
- * blockinlining.c, error.c, eval.c, eval_error.h, eval_intern.h,
- eval_jump.h, eval_load.c, eval_safe.h, gc.c, proc.c, signal.c,
- thread.c, thread_pthread.ci, thread_win32.ci, vm.c, vm.h,
- vm_dump.c, vm_evalbody.ci, yarvcore.c, yarvcore.h:
- fix typo (rb_thead_t -> rb_thread_t).
-
- * eval_intern.h: remove unused definitions.
-
- * common.mk: fix around vm_opts.h path
- and remove harmful argument passed to insns2vm.rb.
-
-Thu Feb 8 03:11:47 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/cgi.rb (CGI::unescapeHTML): invalid decoding for single
- unescaped ampersand. a patch from Tietew
- <tietew+ruby-dev at tietew.net> in [ruby-dev:30292].
- fixed: [ruby-dev:30289]
-
-Wed Feb 7 23:25:31 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * eval.c (specific_eval): suppress warning.
-
- * thread_win32.h: undefine _WIN32 on cygwin. [ruby-dev:30303]
-
-Wed Feb 7 22:41:34 2007 Koichi Sasada <ko1@atdot.net>
-
- * eval_intern.h: remove UNSUPPORTED() macro.
-
- * thread.c: fix to define Continuation methods
- (they only do rb_notimplement()).
-
-Wed Feb 7 22:33:58 2007 Koichi Sasada <ko1@atdot.net>
-
- * eval_intern.h, yarvcore.h: remove unused macro definition.
-
-Wed Feb 7 22:30:28 2007 Koichi Sasada <ko1@atdot.net>
-
- * eval.c: fixed to use ANSI function style.
-
-Wed Feb 7 09:35:32 2007 Koichi Sasada <ko1@atdot.net>
-
- * this commit is a result of refactoring. only renaming functions,
- moving definitions place, add/remove prototypes, deleting
- unused variables and removing yarv.h.
- This commit doesn't change any behavior of ruby/vm.
-
- * yarv.h, common.mk: remove yarv.h (contents are moved to yarvcore.h).
-
- * error.c, eval_intern.h: include yarvcore.h instead yarv.h
-
- * rename some functions:
- * debug.[ch]: debug_*() -> ruby_debug_*()
- * iseq.c: iseq_*() -> rb_iseq_*(), ruby_iseq_disasm()
- * iseq.c: node_name() -> ruby_node_name()
- * vm.c: yarv_check_redefinition_opt_method() ->
- rb_vm_check_redefinition_opt_method()
-
- * some refactoring with checking -Wall.
-
- * array.c: remove rb_ary_ptr() (unused) and remove unused
- local variables.
-
- * object.c: add a prototype of rb_mod_module_exec().
-
- * eval_intern.h (ruby_cref): set it inline.
-
- * eval_load.c (rb_load), yarvcore.c: yarv_load() -> rb_load_internal().
-
- * parse.y: add a prototype of rb_parse_in_eval() (in eval.c).
-
- * process.c: add a prototype of rb_thread_stop_timer_thread() (in thread.c).
-
- * thread.c: remove raw_gets() function (unused) and fix some format
- mismatch (format mismatches have remained yet. this is todo).
-
- * thread.c (rb_thread_wait_fd_rw): fix typo on label name.
-
- * thread_pthread.ci: comment out codes with USE_THREAD_CACHE.
-
- * vm.c (rb_svar, rb_backref_get, rb_backref_get,
- rb_lastline_get, rb_lastline_set) : moved from yarvcore.c.
-
- * vm.c (yarv_init_redefined_flag): add a prototype and rename
- yarv_opt_method_table to vm_opt_method_table.
-
- * vm.c (rb_thread_eval): moved from yarvcore.c.
-
- * yarvcore.c: remove unused global variables and fix to use nsdr().
-
-Wed Feb 7 03:39:32 2007 Koichi Sasada <ko1@atdot.net>
-
- * blockinlining.c, compile.c, compile.h, error.c, eval.c,
- eval_intern.h, eval_jump.h, eval_load.c, eval_method.h,
- eval_safe.h, gc.c, insnhelper.h, insns.def, iseq.c, proc.c,
- process.c, signal.c, thread.c, thread_pthread.ci, thread_win32.ci,
- vm.c, vm.h, vm_dump.c, vm_evalbody.ci, vm_macro.def,
- yarv.h, yarvcore.h, yarvcore.c: change type and macro names:
- * yarv_*_t -> rb_*_t
- * yarv_*_struct -> rb_*_struct
- * yarv_tag -> rb_vm_tag
- * YARV_* -> RUBY_VM_*
-
- * proc.c, vm.c: move functions about env object creation
- from proc.c to vm.c.
-
- * proc.c, yarvcore.c: fix rb_cVM initialization place.
-
- * inits.c: change Init_ISeq() order (after Init_VM).
-
- * ruby.h, proc.c: change declaration place of rb_cEnv
- from proc.c to ruby.c.
-
-Tue Feb 6 22:06:45 2007 NARUSE, Yui <naruse@ruby-lang.org>
-
- * ext/nkf/nkf-utf8/{nkf.c,utf8tbl.c}:
- imported nkf 2007-01-28.
- * Fixed: can't decode MIME encode JIS string.
- * Fixed: Fullwidth-halfwidth conversion.
- * Support DoCoMo's and Softbank's EMOJI
- * Support CP932, CP5022x, eucJP-ms UDC
- * Support UTF-32 encoding
- * Support beyond BMP
- [ruby-dev:29700] [ruby-dev:29922] [ruby-dev:30144]
-
-Tue Feb 6 20:36:19 2007 Kouhei Sutou <kou@cozmixng.org>
-
- * lib/rss/rss.rb, lib/rss/parser.rb: followed current Ruby
- specification. [ruby-dev:30274]
-
-Tue Feb 6 20:29:44 2007 Kouhei Sutou <kou@cozmixng.org>
-
- * lib/rss/rss.rb, lib/rss/parser.rb: removed needless code for
- backward compatibility.
-
-Tue Feb 6 18:43:17 2007 Shugo Maeda <shugo@ruby-lang.org>
-
- * lib/net/ftp.rb: moved fixes for EPIPE to the correct
- place. [ruby-core:10204]
-
-Tue Feb 6 16:38:08 2007 Koichi Sasada <ko1@atdot.net>
-
- * vm_opts.h: set properties:
- svn:keywords: Author Date Id Revision
- svn:eol-style: native
-
-Tue Feb 6 15:55:46 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * variable.c (ivar_i): need to support class local instance
- variables.
-
-Tue Feb 6 15:44:11 2007 Koichi Sasada <ko1@atdot.net>
-
- * compile.c (iseq_compile_each): fix setting is_local flag.
-
- * yarvtest/test_class.rb: add a test for class local instance variable.
-
-Tue Feb 6 14:15:34 2007 Koichi Sasada <ko1@atdot.net>
-
- * compile.c, insns.def: remove (get|set)instancevariable2 and add a
- operand is_local to (get|set)instancevariable.
-
- * yarvtest/test_class.rb: add a test for class local instance variable.
-
- * parse.y (rb_decompose_ivar2): remove unused variable oid.
-
- * tool/insns2vm.rb: remove needless require.
-
-Tue Feb 6 11:18:41 2007 Shugo Maeda <shugo@ruby-lang.org>
-
- * lib/net/ftp.rb: check the control connection on EPIPE.
- Thanks, Simon Williams. [ruby-core:9547]
-
-Tue Feb 6 11:03:27 2007 Koichi Sasada <ko1@atdot.net>
+ * lib/rdoc.rb: Update to RDoc 3.6.1, allows OpenSSL::Digest to be
+ found.
- * complement last commit.
+Mon May 16 05:49:54 2011 Eric Hodel <drbrain@segment7.net>
- * common.mk (*.inc): use VPATH.
+ * lib/drb/acl.rb: Add documentation.
- * vm_opts.h: renamed from vm_opts.h.base.
+Mon May 16 05:13:20 2011 Martin Bosslet <Martin.Bosslet@googlemail.com>
-Tue Feb 6 10:02:41 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * ext/openssl/ossl_asn1.c: Add documentation.
- * tool/insns2vm.rb: use vm_opts.h in VPATH.
+Mon May 16 00:32:05 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
-Tue Feb 6 03:47:58 2007 Koichi Sasada <ko1@atdot.net>
+ * test/ruby/test_signal.rb (TestSignal#test_signal_process_group):
+ skip if the platform doesn't have :pgroup capability. (i.e. skip
+ if mswin32)
- * proc.c: support Binding#eval.
+Sun May 15 23:53:31 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * yarvtest/test_eval.rb: add a test for above change.
+ * include/ruby/intern.h: resurrect old rb_fd_copy().
+ * thread.c (rb_fd_copy): ditto.
-Tue Feb 6 03:13:33 2007 Koichi Sasada <ko1@atdot.net>
+Sun May 15 23:45:11 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * proc.c: refactoring (remove K&R style, move Binding stuffs from
- Init_Proc() to Init_Binding()).
+ * include/ruby/intern.h: remove rb_fd_copy() to rb_fd_dup() and
+ rb_w32_fdcopy() to rb_w32_fd_dup().
+ * win32/win32.c: ditto.
+ * thread.c: ditto.
-Tue Feb 6 01:07:14 2007 Koichi Sasada <ko1@atdot.net>
+Sun May 15 22:26:39 2011 CHIKANAGA Tomoyuki <nagachika00@gmail.com>
- * intern.h: prepare rb_last_status_get() and rb_last_status_set().
- Use these functions instead of rb_last_status ([ruby-dev:30264]).
+ * signal.c (rb_f_kill): accept '-SIGXXX' style signal with Symbol or
+ implicit convertion with #to_str. [ruby-dev:43169] fixes #4362
+ * test/ruby/test_signal.rb (test_signal_process_group): add a test
+ for send signal to process group.
- * process.c: define above functions.
+Sun May 15 21:22:35 2011 CHIKANAGA Tomoyuki <nagachika00@gmail.com>
- * ext/pty/pty.c: use above functions.
+ * cont.c (cont_init): clear macihne_stack_start/end of saved thread to
+ prevent mark machine stack of GC'ed Thread. root Fiber is not
+ initialized by fiber_init().
+ based on a patch by Serge Balyuk [ruby-core:35891] fixes #4612
+ * test/ruby/test_fiber.rb (test_gc_root_fiber): add test for it.
- * io.c (pipe_finalize): ditto.
+Sun May 15 21:04:29 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * process.c: ditto.
+ * transcode.c (econv_init): revert r31353. [ruby-dev:43512]
-Mon Feb 5 21:26:56 2007 Koichi Sasada <ko1@atdot.net>
+Sun May 15 03:39:35 2011 Eric Hodel <drbrain@segment7.net>
- * ruby.h: add a prototype of rb_id2str().
+ * ext/zlib/zlib.c: Improve documentation. Patch by Vincent Batts.
+ [Ruby 1.9 - Bug #4695]
-Mon Feb 5 21:06:50 2007 Koichi Sasada <ko1@atdot.net>
+Sun May 15 03:23:46 2011 Eric Hodel <drbrain@segment7.net>
- * eval_thread.c, common.mk: remove eval_thread.c.
+ * lib/erb.rb: Document ERB::Compiler. Patch by Simon Chiang.
+ [Ruby 1.9 - Bug #4694]
- * yarvcore.c: rename cYarvThread to rb_cThread.
+Sun May 15 00:58:47 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
+ fix mswin32 build error.
- * gc.c: remove YARV_* prefix.
+ * missing/setproctitle.c: add #ifdef HAVE_UNISTD_H.
+ * win32/Makefile.sub (MISSING): add setproctitle.obj
- * gc.h: add an include guard and prototype of rb_gc_set_stack_end().
+Sat May 14 22:45:28 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * inits.c: fix to ANSI prototype style and reorder Init_*().
+ * missing/setproctitle.c: add to include "ruby/util.h".
- * io.c (pipe_finalize): TODO: comment out last_status.
+Sat May 14 19:52:22 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * process.c, yarvcore.h: fix to use yarv_vm_t#last_status instead of
- rb_last_status and make last_status_get() to access $?.
+ * test/ruby/test_rubyoptions.rb (TestRubyOptions#test_set_program_name):
+ add for $0 test.
- * yarvcore.c (vm_mark): mark yarv_vm_t#last_status.
+Sat May 14 19:50:46 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * ruby.h: add declarations of rb_cISeq and rb_cVM.
+ * missing/setproctitle.c (compat_init_setproctitle): use
+ ruby_strdup() instead of strdup().
- * thread.c: move eval_thread.c codes to thread.c and remove yarv_*
- function prefix.
+Sat May 14 19:37:31 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * thread.c (thread_start_func_2): use yarv_thread_t#first_func if
- it is not null.
+ * include/ruby/missing.h: add setproctitle() declaration.
+ * missing/setproctitle.c: added.
+ * configure.in: add check for missing/setproctitle.c.
- * vm.c: fix copyright year.
+ * ruby.c (ruby_process_options): add to call compat_init_setproctitle().
+ * ruby.c (set_arg0): remove all platform specific code. it's
+ moved to missing/setproctitle.c.
+ * ruby.c (origarg): remove len field. It's no longer used.
+ * ruby.c (get_arglen): removed.
- * yarvcore.c (Init_vm): rename to Init_VM().
+ This patch makes a lot of cleanup set_arg0 related code and fixes
+ [Feature #4689].
-Mon Feb 5 04:09:48 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+Sat May 14 17:42:21 2011 CHIKANAGA Tomoyuki <nagachika00@gmail.com>
- * eval.c (rb_frame_callee): check if prev_cfp can be accessible.
- a patch from Yoshinori Sano <yoshinori.sano at gmail.com> in
- [ruby-dev:30252]. solves [ruby-dev:30200] and [ruby-core:9856].
+ * process.c (rb_proc_times): improve documentation.
+ [ruby-core:35785] fixes #4581, reported by Andrew Grimm.
-Sun Feb 4 20:34:41 2007 Kouhei Sutou <kou@cozmixng.org>
+Sat May 14 12:12:54 2011 Martin Bosslet <Martin.Bosslet@googlemail.com>
- * test/rss/rss-assertions.rb: removed needless code for backward
+ * test/openssl/test_pkey_dsa.rb: Add basic tests and tests that
+ ensure new public key PEM encoding behavior and ensure backward
compatibility.
+ [Ruby 1.9 - Bug #4422] [ruby-core:35328]
+ * test/openssl/test_pkey_rsa.rb: Remove line with 'puts'.
-Sun Feb 4 02:22:59 2007 Akinori MUSHA <knu@iDaemons.org>
-
- * lib/cgi.rb (CGI::QueryExtension::read_multipart): Remove a debug
- print.
-
-Sat Feb 3 23:51:58 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * parse.y (rb_compose_ivar2): function to create a new ivar2
- symbol from a symbol and a class. back-ported from matzruby.
-
- * parse.y (rb_decompose_ivar2): reverse function of
- rb_compose_ivar2().
-
- * marshal.c (w_symbol): support class local instance variables.
-
- * marshal.c (r_object0): ditto.
-
- * compile.c (defined_expr): ditto.
-
- * compile.c (iseq_compile_each): ditto.
-
- * insns.def: add two new instructions: getinstancevariable2 and
- setinstancevariable2.
-
-Sat Feb 3 23:21:13 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * insns.def (setclassvariable): remove unnecessary operand.
-
- * compile.c (iseq_compile_each): ditto.
-
- * common.mk (insns_info.inc): add dependency for insns_info.inc.
-
-Sat Feb 3 14:32:58 2007 Masaki Suketa <masaki.suketa@nifty.ne.jp>
-
- * ext/win32ole/win32ole.c (ole_val2olevariantdata, ole_val2variant):
- fix the bug of WIN32OLE_VARIANT.new when variant type is
- VT_ARRAY.
-
- * ext/win32ole/sample/excel1.rb: rewrite using WIN32OLE_VARIANT.
-
- * test/win32ole/test_win32ole.rb: add some test.
-
- * test/win32ole/test_win32ole_variant.rb: ditto.
-
-Sat Feb 3 03:35:20 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * Makefile.in, */Makefile.sub, common.mk (vmasm): generalized.
-
- * common.mk (runruby, benchmark, benchmark-each, tbench): use
- PROGRAM for the file to be built.
-
- * proc.c (yarv_proc_alloc): needs return.
-
- * call_cfunc.ci, compile.c, compile.h, debug.h, eval.c,
- eval_error.h, eval_jump.h, eval_load.c, eval_thread.c, gc.c,
- insnhelper.h, insns.def, iseq.c, main.c, numeric.c, parse.y,
- range.c, ruby.h, signal.c, thread.c, thread_win32.ci, vm.c,
- vm.h, vm_dump.c, vm_evalbody.ci, yarvcore.c, yarvcore.h:
- fixed indents and non-C90 comments.
-
- * regenc.h: revert to before YARV.
-
- * lib/mkmf.rb (create_makefile): make object files depend on
- extconf.h even if depend file exists.
-
-Fri Feb 2 23:39:42 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * common.mk (bin): add more dependency. a patch from Tadashi
- Saito <shiba at mail2.accsnet.ne.jp>. [ruby-dev:30245]
-
-Fri Feb 2 18:44:31 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * insns.def (setclassvariable): remove warn argument.
-
-Fri Feb 2 18:36:40 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * common.mk (compile.$(OBJEXT)): add config.h to vm.c and
- compile.c.
-
-Fri Feb 2 18:27:54 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * eval.c: remove duplicated global variables rb_cProc and
- rb_cBinding. [ruby-dev:30242]
-
-Fri Feb 2 00:13:44 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * ruby.h (SYMBOL_P): make Symbol immediate again for performance.
-
- * string.c: redesign symbol methods.
-
-Thu Feb 1 23:25:21 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * parse.y (rb_id2str): store Strings for operator symbols.
- [ruby-dev:30235]
-
-Thu Feb 1 21:04:39 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * parse.y (assignable_gen): no need to generate NODE_CVDECL.
-
- * compile.c (iseq_compile_each): no NODE_CVDECL.
-
-Thu Feb 1 20:53:32 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * vm.c (eval_get_cvar_base): destination for class variable access
- is now strictly innermost surrounding class or module. warned
- if accessed from toplevel.
-
- * variable.c (rb_cvar_get): new class variable look-up scheme:
- 1) look up in the class. 2) if the class is singleton attached
- to a class (i.e. metaclass) then start look up in the attached
- class and its ancestors. 3) otherwise, look-up in ancestors of
- the class.
-
- * eval.c (cvar_cbase): destination for class variable access is
- the class/module that holds the method, or cbase outside of
- methods.
-
-Thu Feb 1 20:31:41 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * variable.c (rb_cvar_set): remove warn argument.
-
-Wed Jan 31 14:52:09 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * test/ruby/test_iterator.rb (TestIterator::test_block_given_within_iterator):
- add new test. [ruby-core:10125]
-
-Tue Jan 30 17:01:21 2007 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * string.c (rb_str_sub_bang): calling rb_str_modify() should be just
- before actually modifying the string.
- fixed: [ruby-dev:30211] (originally reported by zunda)
-
-Tue Jan 30 13:24:06 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * numeric.c (int_pred): add Integer#pred corresponding
- Integer#succ. [RCR#5]
-
-Tue Jan 30 12:05:35 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * mkconfig.rb: autoconf 2.61 support. [ruby-core:10016]
-
-Mon Jan 29 23:52:32 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * tool/compile.rb: replace YARVCore by VM class.
-
-Mon Jan 29 17:52:44 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/date/format.rb (Date::Format::Bag::method_missing): add
- prefix to avoid making t class-local instance variable.
-
-Mon Jan 29 21:32:37 2007 Masaki Suketa <masaki.suketa@nifty.ne.jp>
-
- * ext/win32ole/win32ole.c: add WIN32OLE.locale=, WIN32OLE.locale,
- WIN32OLE_VARIANT#vartype.
-
- * test/win32ole/test_win32ole.rb: add test for WIN32OLE.locale=,
- WIN32OLE.locale.
-
- * test/win32ole/test_win32ole_variant.rb: add test for
- WIN32OLE_VARIANT#vartype.
-
-Mon Jan 29 14:14:35 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * tool/parse.rb: replace YARVCore by VM class.
- http://d.hatena.ne.jp/ysano2005/20070128
-
-Sun Jan 28 08:41:49 2007 Masaki Suketa <masaki.suketa@nifty.ne.jp>
-
- * ext/win32ole/win32ole.c: refactoring.
-
-Sat Jan 27 18:36:33 2007 Masaki Suketa <masaki.suketa@nifty.ne.jp>
-
- * ext/win32ole/win32ole.c (ole_val2olevariantdata): bug fix.
- WIN32OLE_VARIANT.new check that 1st argument should T_ARRAY
- when variant type is VT_ARRAY.
-
- * test/win32ole/test_win32ole_variant.rb: add some test.
-
-Fri Jan 26 23:55:56 2007 Masaki Suketa <masaki.suketa@nifty.ne.jp>
-
- * ext/win32ole/win32ole.c: bug fix of WIN32OLE_VARIANT when variant
- type is VT_BYREF|VT_VARIANT.
-
- * test/win32ole/test_win32ole_variant_with_ie.rb: ditto.
-
-Fri Jan 26 12:03:39 2007 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/lib/tk.rb (TkConfigMethod#__confinfo_cmd,
- __conv_keyonly_optkeys): make them private [ruby-dev:30074].
-
- * ext/tk/lib/tk/txtwin_abst.rb: fix typo [ruby-dev:30073].
-
- * ext/tk/lib/tk/canvas.rb (TkCanvas#scan_dragto): lack of an argument.
-
- * ext/tk/lib/tk/canvas.rb: clarify the including module name
- [ruby-dev:30080].
-
- * ext/tk/lib/tk/scrollable.rb: change primary name of modules
- [ruby-dev:30080].
-
-Fri Jan 26 07:48:57 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * enumerator.c (enumerator_init_copy): need to copy internal
- structure on clone and dup. [ruby-dev:30192]
-
-Wed Jan 24 20:34:51 2007 Kouhei Sutou <kou@cozmixng.org>
-
- * test/ruby/test_iterator.rb: removed a needless workaround.
-
-Wed Jan 24 18:05:39 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * misc/ruby-mode.el (ruby-font-lock-syntactic-keywords): fix
- regexp font-lock bug. [ruby-talk:235758]
-
-Tue Jan 23 18:26:12 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/cgi.rb (CGI::QueryExtension::read_multipart): use == instead
- of ===. [ruby-dev:30176]
-
-Tue Jan 23 15:39:25 2007 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * Makefile.in, common.mk, configure.in, */{Makefile.sub, configure.bat,
- setup.mak}: add --with-baseruby configure option.
-
-Mon Jan 22 14:57:25 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * ext/socket/socket.c: fix errors in socket sample code.
- [ruby-core:09992]
-
-Sat Jan 20 21:05:18 2007 Masaki Suketa <masaki.suketa@nifty.ne.jp>
-
- * ext/win32ole/win32ole.c (fole_s_set_code_page): WIN32OLE.codepage=
- accepts installed codepage.
-
- * test/win32ole/test_win32ole.rb (test_s_codepage_changed): ditto.
-
-Sat Jan 20 11:18:49 2007 Masaki Suketa <masaki.suketa@nifty.ne.jp>
-
- * ext/win32ole/win32ole.c (ole_invoke, ole_invoke2, ole_propertyput):
- modify WIN32OLERuntimeError message.
-
- * test/win32ole/test_win32ole.rb: ditto.
-
-Sat Jan 20 06:45:21 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * eval_proc.c (method_receiver): add new method to get the bound
- receiver of the method object. [ruby-talk:234949]
-
- * eval_proc.c (method_name): new method to get the name of a
- method.
-
- * eval_proc.c (method_owner): a new method to get the class or
- module that defines the method.
-
-Fri Jan 19 17:12:23 2007 Masaki Suketa <masaki.suketa@nifty.ne.jp>
-
- * ext/win32ole/win32ole.c (Init_win32ole): add WIN32OLE_VARIANT::Empty,
- WIN32OLE_VARIANT::Null, WIN32OLE_VARIANT::Nothing.
-
- * test/win32ole/test_win32ole_variant.rb: ditto.
-
- * test/win32ole/test_nil2vtempty.rb(test_openSchema): ditto.
-
-Fri Jan 19 06:53:38 2007 Masaki Suketa <masaki.suketa@nifty.ne.jp>
-
- * ext/win32ole/win32ole.c (olevariant_free): fix memory leak.
-
- * ext/win32ole/win32ole.c (ole_val2olevariantdata):
- WIN32OLE_VARIANT.new accepts nil as first argument for some VARIANT
- TYPE.
-
- * test/win32ole/test_win32ole_variant.rb: ditto.
-
-Wed Jan 17 17:31:28 2007 Koichi Sasada <ko1@atdot.net>
-
- * some refactoring around yarvcore and proc.
-
- * eval_proc.c: renamed to proc.c.
-
- * common.mk: ditto.
-
- * yarvcore.h, yarvcore.c: rename or remove some global variables
- removed: mYarvCore, mYarvInsns
- renamed: cYarvISeq -> rb_cISeq,
- cYarvProc -> rb_cProc, cYarvBinding -> rb_cBinding
- ::YarvCore module is removed and ::YarvCore::VM class becomes ::VM.
- And change/remove some functions which added with YARV.
-
- * compile.c: ditto.
-
- * eval.c: ditto.
-
- * iseq.c: ditto.
-
- * vm.c: ditto.
-
- * inits.c: rename Init_yarvcore to Init_vm.
-
- * yarvcore.c, proc.c: move some functions and initialization
- from yarvcore.c to proc.c.
-
- * intern.h, proc.c: add global function rb_binding_new(void).
-
-Tue Jan 16 17:49:29 2007 Koichi Sasada <ko1@atdot.net>
-
- * vm.c (eval_search_super_klass): rename to search_super_klass() and
- use it by th_call_super().
-
- * insns.def: ditto.
-
-Tue Jan 16 17:48:11 2007 Koichi Sasada <ko1@atdot.net>
-
- * common.mk: fix ruby script path.
-
-Tue Jan 16 17:39:44 2007 Koichi Sasada <ko1@atdot.net>
-
- * vm.c (invoke_block): fix to specify self.
-
-Tue Jan 16 12:12:27 2007 Koichi Sasada <ko1@atdot.net>
-
- * env.h: removed
-
-Tue Jan 16 12:00:06 2007 Koichi Sasada <ko1@atdot.net>
-
- * eval_proc.c (rb_proc_new): added.
-
- * string.c (sym_to_proc): supported.
-
- * vm.c (invoke_block, th_invoke_yield, th_invoke_proc): fix to support
- rb_proc_new.
-
- * yarvcore.c: add a test code.
-
-Sat Jan 13 23:24:59 2007 Masaki Suketa <masaki.suketa@nifty.ne.jp>
-
- * ext/win32ole/win32ole.c (ole_free, ole_type_free,
- olemethod_free, olevariable_free, oleparam_free,
- ole_event_free): fix memory leak. [ruby-core:09846]
-
-Wed Jan 10 00:10:23 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * array.c (rb_ary_replace): use ptr and len of orig instead of
- shared. fixed: [ruby-dev:30116]
-
-Tue Jan 9 17:48:38 2007 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * file.c (rb_find_file): should not call fpath_check() with NULL.
- fixed: [ruby-core:09867]
-
-Tue Jan 9 12:29:20 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/etc/etc.c (etc_getpwuid, etc_getgrgid): fix to correctly
- convert uid/gid from VALUE.
-
- * ext/etc/etc.c (etc_getpwuid): ditto.
-
-Tue Jan 9 03:54:38 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * string.c (rb_str_upto): String#upto from empty string makes
- infinite loop. [ruby-core:09864]
-
- * string.c (rb_str_upto): use RSTRING_LEN().
-
-Sun Jan 7 18:36:05 2007 Koichi Sasada <ko1@atdot.net>
-
- * thread.c (rb_thread_stop_timer_thread(), rb_thread_reset_timer_thread(),
- rb_thread_start_timer_thread()): added.
-
- * thread_pthread.ci: add a native_thread_join() and move
- rb_thread_reset_timer_thread() definition to thread.c.
-
- * thread_win32.ci: ditto
-
- * process.c: fix before_exec(), after_exec() to stop timer thread
- (and restart timer thread if exec failed). and fix to reset
- timer thread information when forked child process starts
- (to fix [ruby-core:09822]).
-
-Sun Jan 7 18:28:17 2007 Koichi Sasada <ko1@atdot.net>
-
- * common.mk: add a "compare" rule and fix MATZRUBY variable
-
-Sun Jan 7 17:47:16 2007 Masaki Suketa <masaki.suketa@nifty.ne.jp>
-
- * test/win32ole/test_win32ole.rb: add test for WIN32OLE#[],
- WIN32OLE#[]=.
-
- * ext/win32ole/win32ole.c: update comment for rdoc of
- WIN32OLE#[] and WIN32OLE#[]=.
-
-Sun Jan 7 12:13:26 2007 Eric Hodel <drbrain@segment7.net>
-
- * lib/rdoc/parsers/parse_c.rb (RDoc::C_Parser#find_class_comment):
- Look for class and module comments above rb_define_class and
- rb_define_module. Patch by Daniel Berger <djberg96 at gmail.com>
-
-Sun Jan 7 10:32:12 2007 Eric Hodel <drbrain@segment7.net>
-
- * lib/rdoc/parsers/parse_c.rb (RDoc::C_Parser#handle_constants):
- Properly handle escaping of : in comments.
- * test/rdoc/parsers/test_parse_c.rb:
- Test RDoc::C_Parser#do_classes and Rdoc::C_Parser#find_class_comment.
-
-Sun Jan 7 09:31:18 2007 Tadayoshi Funaba <tadf@dotrb.org>
-
- * lib/date/format.rb: updated based on date2 4.0.1.
-
-Sat Jan 6 18:46:34 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * io.c (rb_io_getline_fast, rb_io_getline): increase lineno
- when met the delimiter or EOF. fixed: [ruby-dev:30081]
-
- * io.c (prepare_getline_args, rb_io_getline_1): split
- preparation of arguments and reading. [ruby-dev:30085]
-
-Sat Jan 6 13:48:36 2007 Koichi Sasada <ko1@atdot.net>
-
- * insns.def (send): fix to optimize send() with Symbol.
-
- * yarvtest/test_method.rb: add another test.
-
-Sat Jan 6 13:43:55 2007 Koichi Sasada <ko1@atdot.net>
-
- * common.mk: add PHONY dependency to some rules
-
-Sat Jan 6 11:50:33 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * io.c (argf_read): fix wrong replacement. [ruby-dev:30070]
-
-Sat Jan 6 09:10:52 2007 Koichi Sasada <ko1@atdot.net>
-
- * insns.def: support direct method dispatch with "send" or "funcall".
- This means that "obj.send :m" skips "BasicObject#send" invocation
- (method frame creation, etc) and "obj.m" invokes directly.
- If you make backtrace, there are no entries of "send" method.
-
- * compile.c (iseq_specialized_instruction): fix to support above
-
- * eval.c: ditto (remove "static" from rb_f_send and rb_f_funcall
-
- * yarvcore.c: ditto (add a external IDs for compiler)
-
- * yarvcore.h: ditto (add a VM_CALL_SEND_BIT macro)
-
- * yarvtest/test_method.rb: add tests for above changes
-
- * eval.c: remove unused "Kernel#send" declaration
-
-Sat Jan 6 08:29:17 2007 Masaki Suketa <masaki.suketa@nifty.ne.jp>
-
- * ext/win32ole/win32ole.c (Init_win32ole): add
- WIN32OLE::VARIANT::VT_EMPTY, WIN32OLE::VARIANT::VT_NULL
-
- * test/win32ole/test_win32ole_variant_m.rb (test_variant): ditto.
-
-Sat Jan 6 03:49:22 2007 Koichi Sasada <ko1@atdot.net>
-
- * benchmark/run.rb: change option format
-
- * common.mk: ditto
-
-Fri Jan 5 22:21:08 2007 Koichi Sasada <ko1@atdot.net>
-
- * benchmark/bm_app_pentomino.rb: use Array#dup instead of
- Array#clone
-
- * benchmark/bmx_temp.rb: removed
-
- * benchmark/run.rb: use run.rb instead of run_rite.rb
-
- * common.mk: ditto
-
- * benchmark/run_rite.rb: removed
-
- * common.mk: use $(srcdir)/test.rb to run a test program
- with "make run"
-
- * benchmark/bmx_temp.rb: removed and
- set svn:ignore (bmx_*.rb) to benchmark/
-
- * test.rb: set svn:ignore
-
-Fri Jan 5 21:03:08 2007 Koichi Sasada <ko1@atdot.net>
-
- * yarvtest/yarvtest.rb: fix to compare results
-
-Fri Jan 5 20:52:56 2007 Koichi Sasada <ko1@atdot.net>
-
- * compile.c, compile.h: add ADD_CALL_RECEIVER() macro.
-
- * insns.def (send): use GET_SELF() direct if FCALL.
-
- * eval.c (rb_f_send): check method dispatch type to permit
- invoking private method when dispatch type is FCALL/VCALL
-
- * insns.def (opt_ltlt): remove useless statement.
-
- * vm.h: remove unused macros.
-
-Fri Jan 5 20:50:31 2007 Koichi Sasada <ko1@atdot.net>
-
- * benchmark/run_rite.rb: fix to use readlines instead of
- read(...).lines (because 1.8 doesn't have String#lines).
-
-Fri Jan 5 20:28:19 2007 Koichi Sasada <ko1@atdot.net>
-
- * thread_win32.ci (rb_thread_reset_timer_thread):
- added ([ruby-dev:30086]).
-
-Fri Jan 5 20:20:36 2007 Koichi Sasada <ko1@atdot.net>
-
- * common.mk: add .SUFFIXES rule
-
-Fri Jan 5 15:58:15 2007 Koichi Sasada <ko1@atdot.net>
-
- * eval_method.h (rb_alias): fix to check search result
-
-Fri Jan 5 13:59:53 2007 Koichi Sasada <ko1@atdot.net>
-
- * eval_method.h (rb_add_method): fix to check old_node
-
-Fri Jan 5 12:03:07 2007 Koichi Sasada <ko1@atdot.net>
-
- * compile.c (iseq_compile_each, set_block_local_tbl):
- support NODE_LAMBDA (partly).
-
- * sample/test.rb: restore test of NODE_LAMBDA
-
- * test/ruby/test_lambda.rb: ditto
-
-Fri Jan 5 12:31:23 2007 GOTOU Yuuzou <gotoyuzo@notwork.org>
-
- * thread_pthread.ci (native_sleep): fix tv_nsec overflow.
-
-Thu Jan 4 20:01:29 2007 Koichi Sasada <ko1@atdot.net>
-
- * common.mk: rename yarv-test-[all/each] to compare-test[/-each].
- purpose of "compare-test" rule is to compare ruby (trunk) and
- matzruby (branches/matzruby) binary in miniruby level. MATZRUBY
- parameter means an path to miniruby of matzruby binary. to do this
- comparison test, you should build matzruby branch.
-
- * yarvtest/yarvtest.rb: fix to use command line option as
- command names to be compared.
-
- * yarvtest/runner.rb: remove a debug output.
-
-Thu Jan 4 19:12:27 2007 Koichi Sasada <ko1@atdot.net>
-
- * common.mk: fix to use test.rb script in build directory.
- ($(srcdir)/test.rb -> test.rb)
-
-Thu Jan 4 17:28:05 2007 GOTOU Yuuzou <gotoyuzo@notwork.org>
-
- * lib/webrick/utils.rb (WEBrick::Utils::TimeoutHandler#initialize):
- Arrays could not be modified in its each block. [ruby-dev:30063]
-
-Thu Jan 4 16:57:14 2007 Koichi Sasada <ko1@atdot.net>
-
- * yarv_version.h: removed.
-
- * common.mk: remove yarv_version.h from rules
-
- * yarvcore.h (Init_yarvcore): remove useless constants
-
-Thu Jan 4 17:00:06 2007 GOTOU Yuuzou <gotoyuzo@notwork.org>
-
- * ext/openssl/ossl_asn1.c (Init_ossl_asn1):
- OpenSSL::ASN1::ASN1Data#value,#tag,#tag_class and
- OpenSSL::ASN1::BitString#unused_bits should be public.
-
-Thu Jan 4 13:45:10 2007 Koichi Sasada <ko1@atdot.net>
-
- * thread_pthread.ci: fix last changes around PTHREAD_STACK_MIN.
-
-Thu Jan 4 13:42:47 2007 Koichi Sasada <ko1@atdot.net>
-
- * common.mk: restore changes.
-
-Thu Jan 4 10:33:54 2007 Koichi Sasada <ko1@atdot.net>
-
- * thread_pthread.ci: fix to skip using PTHREAD_STACK_MIN.
- [ruby-dev:30063]
-
-Thu Jan 4 10:30:11 2007 Koichi Sasada <ko1@atdot.net>
-
- * benchmark/run_rite.rb (bm): fix to use lines.
-
-Wed Jan 3 18:49:15 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * io.c (rb_io_getline): lineno update condition was wrong.
- [ruby-dev:30065]
-
- * io.c (rb_io_getline_fast): ditto.
-
-Wed Jan 3 11:36:51 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * io.c (ruby_dup): start GC on ENOMEM as well.
-
-Tue Jan 2 10:29:54 2007 Eric Hodel <drbrain@segment7.net>
-
- * ext/zlib/zlib.c: fix to compile on YARV
- ruby_errinfo -> rb_errinfo()
-
-Mon Jan 1 08:07:06 2007 Koichi Sasada <ko1@atdot.net>
-
- * ext/tk/tcltklib.c: fix to compile on YARV
- ruby_errinfo -> rb_errinfo(),
- ruby_safe_level -> rb_safe_level().
-
-Mon Jan 1 07:57:17 2007 Koichi Sasada <ko1@atdot.net>
-
- * test/drb/test_drbssl.rb: fix to skip drb tests.
-
-Mon Jan 1 06:13:11 2007 Eric Hodel <drbrain@segment7.net>
-
- * lib/rdoc/parsers/c_parser.rb: Make Rdoc accessible. Update constant
- value information.
-
- * ext/bigdecimal/bigdecimal.c: Update constant comments to provide
- values for RDoc.
-
-Mon Jan 1 06:05:55 2007 Eric Hodel <drbrain@segment7.net>
-
- * lib/rdoc/parsers/parse_c.rb (RDoc::C_Parser#handle_constants):
- Allow RDoc comment to give friendly value for rb_define_const. Patch
- by Daniel Berger <djberg96 at gmail.com>, [ruby-patches-7499].
- * lib/rdoc/parsers/parse_c.rb (RDoc::C_Parser#handle_constants): Fix
- whitespace handling in constant comments.
-
-Mon Jan 1 00:00:00 2007 Koichi Sasada <ko1@atdot.net>
-
- * Merge YARV
-
-Sun Dec 31 16:22:48 2006 Eric Hodel <drbrain@segment7.net>
-
- * array.c: Fix Array#reject.
-
-Sun Dec 31 00:46:25 2006 Tadayoshi Funaba <tadf@dotrb.org>
-
- * lib/date2.rb: removed.
-
-Sun Dec 31 00:15:13 2006 Tadayoshi Funaba <tadf@dotrb.org>
-
- * lib/date.rb, lib/date/format.rb: updated based on date2 4.0.
-
-Sat Dec 30 04:38:23 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * enum.c (enum_each_with_index): reuse array for yield parameters.
-
- * enum.c (enum_min, enum_max): ditto.
-
-Sat Dec 30 04:25:29 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * enum.c (enum_inject): reuse array for yield parameters.
-
-Sat Dec 30 02:54:22 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * ext/stringio/stringio.c (strio_gets): accepts limit argument.
-
- * ext/stringio/stringio.c (strio_readline, strio_each,
- strio_readlines): ditto.
-
-Sat Dec 30 02:22:32 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * ext/stringio/stringio.c (strio_getline): add limit capability.
-
- * io.c (rb_io_gets_m): accepts limit argument. [ruby-talk:231563]
-
- * io.c (rb_io_readline, rb_io_readlines, rb_io_each_line, argf_getline):
- ditto.
-
- * io.c (appendline): add limit capability.
-
- * io.c (rb_io_getline_fast, rb_io_getline): ditto.
-
- * io.c (rb_io_getline): small refactoring for DRY.
-
- * io.c (rb_io_s_foreach, rb_io_s_readlines): small refactoring.
-
-Thu Dec 28 15:27:38 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/cgi.rb (CGI::Cookie::initialize): use Array() again.
- [ruby-core:09781]
-
-Wed Dec 27 20:52:32 2006 Masaki Suketa <masaki.suketa@nifty.ne.jp>
-
- * ext/win32ole/win32ole.c: remove WIN32OLE::PROPERTY class.
-
- * ext/win32ole/tests/testWIN32OLE.rb: ditto.
-
-Wed Dec 27 10:04:11 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * object.c (rb_Array): returns 1-element array if the argument
- does not have to_ary nor to_a.
-
-Tue Dec 26 21:02:14 2006 Masaki Suketa <masaki.suketa@nifty.ne.jp>
-
- * test/win32ole/test_folderitem2_invokeverb.rb: The argument
- of Shell.NameSpace should not be file path.
-
-Tue Dec 26 06:13:08 2006 Minero Aoki <aamine@loveruby.net>
-
- * ext/bigdecimal/bigdecimal.c: remove useless method
- BigDecimal#!=. [ruby-dev:30050]
-
-Thu Dec 21 15:37:17 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * string.c (rb_str_slice_bang): rdoc description bug fixed.
- [ruby-core:09754]
-
-Wed Dec 20 12:54:31 2006 Koichi Sasada <ko1@atdot.net>
-
- * Convert CVS repository to Subversion repository.
-
-Mon Dec 18 08:36:29 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/cgi.rb (CGI::Cookie::initialize): Array(string) no longer
- works. [ruby-core:09738]
-
-Fri Dec 15 00:19:53 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * win32/Makefile.sub (COMPILE_RULES): latter rule has higher priority.
-
- * lib/mkmf.rb (create_makefile): remove static library before update,
- to get rid of sludge of Borland tlib.exe.
-
-Thu Dec 14 18:29:13 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * ext/readline/readline.c: NetBSD editline does not have
- rl_username_completion_function() and rl_completion_matches().
- a patch from Takahiro Kambe <taca at back-street.net>.
- [ruby-dev:30008]
-
-Thu Dec 14 18:20:43 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/irb/locale.rb (IRB::Locale::puts): typo fixed. a patch from
- NAKAMURA Usaku <usa@ruby-lang.org>. [ruby-dev:30012]
-
-Tue Dec 12 23:33:53 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/optparse.rb (Switch#parse_arg, Switch#conv_arg): splat failures.
-
-Mon Dec 11 11:51:10 2006 Akinori MUSHA <knu@iDaemons.org>
-
- * ext/digest/sha2/lib/sha2.rb: Moved one level up from under
- the superfluous subdirectory digest/.
-
-Mon Dec 11 11:46:18 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * variable.c (rb_define_const): typo fixed.
-
-Mon Dec 11 09:36:29 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * string.c (rb_str_aset): index double decode problem.
- [ruby-core:09695]
-
-Sat Dec 9 21:39:24 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * eval.c (ruby_cleanup): keep the exception till after END blocks.
- [ruby-core:09675]
-
-Sat Dec 9 11:22:00 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/irb/locale.rb (IRB::Locale::search_file): use File.exist?
- instead of File.exists?. a patch from Yutaka Kanemoto
- <kinpoco at gmail.com> in [ruby-dev:30000].
-
-Fri Dec 8 18:11:18 2006 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * lib/optparse.rb: cannot put :nodoc: before method definition.
- put after it.
-
-Fri Dec 8 17:00:13 2006 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * bin/rdoc: use File.exist? instead of File.exists?.
-
-Thu Dec 7 23:50:21 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * object.c (Init_Object): new method Dir.exist?(path).
- [ruby-core:09663]
-
- * file.c (Init_File): remove File.exists?; use File.exist?
- instead.
-
- * file.c: rename functions to test_* to rb_file_*_p.
-
-Thu Dec 7 09:29:02 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/weakref.rb (WeakRef::__setobj__): should support
- marshaling. [ruby-talk:228508]
-
-Wed Dec 6 23:58:36 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * Makefile.in, common.mk (NULLCMD): moved for platforms that empty
- command does not run. fixed: [ruby-dev:29994]
-
- * win32/win32.c (init_stdhandle): redirect unopened IOs to NUL.
- [ruby-core:09572]
-
-Tue Dec 5 19:01:42 2006 WATANABE Hirofumi <eban@ruby-lang.org>
-
- * configure.in (SITE_DIR): fixed to empty RUBY_SITE_LIB in config.h on
- NetBSD. fixed: [ruby-dev:29358]
-
-Tue Dec 5 18:38:21 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/matrix.rb (Matrix::rank): use quo method to avoid integer
- division problem. [ruby-core:09644]
-
- * lib/matrix.rb (Matrix::rank_e): ditto.
-
-Tue Dec 5 00:59:05 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * misc/ruby-mode.el (ruby-parse-partial): need to parse "/=" as
- self assignment operator, not regex. [ruby-talk:227324]
-
-Tue Dec 5 00:19:14 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * intern.h, object.c, variable.c (rb_mod_constants): added an optional
- flag to search ancestors, which is defaulted to true, as well as
- const_defined? and const_get. [ruby-dev:29989]
-
-Mon Dec 4 23:49:28 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * instruby.rb (install_recursive): get rid of warning.
-
- * lib/optparse.rb (CompletingHash#match): get rid of splat failure.
-
-Mon Dec 4 19:16:39 2006 Akinori MUSHA <knu@iDaemons.org>
-
- * ext/digest/lib/digest/hmac.rb: Do alias << update.
-
-Mon Dec 4 10:48:03 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * ruby.h (OFFT2NUM): use LONG2NUM() if sizeof(long) equals to
- sizeof(off_t).
-
-Mon Dec 4 08:32:25 2006 Shugo Maeda <shugo@ruby-lang.org>
-
- * lib/cgi.rb (CGI::QueryExtension::read_multipart): should quote
- boundary. JVN#84798830
-
-Sun Dec 3 16:16:53 2006 Akinori MUSHA <knu@iDaemons.org>
-
- * ext/digest/lib/digest/hmac.rb: Fix problems with update
- timing. [Reported by: oss-ruby@technorama.net]
-
-Sat Dec 2 07:33:53 2006 GOTOU Yuuzou <gotoyuzo@notwork.org>
-
- * lib/webrick/httputils.rb (WEBrick::HTTPUtils::FormData::<<):
- HTTPUtils::parse_header() takes a string. [ruby-dev:29931]
-
- * lib/webrick/httputils.rb (WEBrick::HTTPUtils::parse_header):
- String does no longer have each method.
-
- * lib/webrick/httputils.rb (WEBrick::HTTPUtils::parse_form_data):
- ditto.
-
-Sat Dec 2 07:09:04 2006 GOTOU Yuuzou <gotoyuzo@notwork.org>
-
- * ext/openssl/ossl_ocsp.c: OpenSSL::OCSP::OSCPError should be
- subclass of OpenSSL::OpenSSLError. [ruby-dev:29980]
-
-Fri Dec 1 16:31:53 2006 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/tcltklib.c: shouldn't run the killed thread at callback.
- [ruby-talk: 227408]
-
-Tue Nov 28 17:25:11 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * array.c (ary_iter_check): should check modification (size
- change) during iteration.
-
- * array.c (rb_ary_initialize, rb_ary_shift, rb_ary_unshift,
- rb_ary_splice, rb_ary_reverse, rb_ary_sort, rb_ary_delete,
- rb_ary_delete_at, rb_ary_reject_bang, rb_ary_replace,
- rb_ary_clear, rb_ary_fill, rb_ary_uniq_bang, rb_ary_compact,
- rb_ary_shuffle): add iteration check.
-
-Mon Nov 27 09:00:15 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * string.c (rb_str_ord): typo fixed. reported from Kornelius
- Kalnbach <murphy@rubychan.de>. [ruby-core:09621]
-
-Sun Nov 26 16:36:46 2006 URABE Shyouhei <shyouhei@ruby-lang.org>
-
- * version.h: addition of RUBY_PATCHLEVEL.
- * version.c: ditto.
-
-Wed Nov 22 16:00:49 2006 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/extconf.rb: support --with-X11/--without-X11 option.
-
- * ext/tk/README.tcltklib: add description about --with-X11-* option
- [ruby-talk:225166] and --with-X11/--without-X11 option.
-
- * ext/tk/tkutil/extconf.rb: able to be called manually
- [ruby-talk:225950].
-
-Sat Nov 18 23:39:20 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * object.c (rb_obj_tap): a new method. [ruby-talk:224013]
-
-Wed Nov 15 23:22:54 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * file.c (test_grpowned, rb_stat_grpowned): should honor
- supplementary group IDs. [ruby-core:09546]
-
-Tue Nov 7 18:35:18 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * eval.c (formal_assign): need to pack rest arg information in
- argc.
-
-Tue Nov 7 18:05:01 2006 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/lib/tk/itemconfig.rb: minor bug fix.
-
-Tue Nov 7 17:52:08 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * class.c (rb_include_module): revert duplicate inclusion of
- modules. [ruby-dev:29793]
-
-Tue Nov 7 17:18:11 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * eval.c (method_missing): update old argument adjustment.
-
-Tue Nov 7 16:41:21 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * eval.c (when_check): need to splat for NODE_ARGSCAT as well.
- [ruby-dev:29860]
-
-Mon Nov 6 22:23:52 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * string.c (Init_String): remove duplicated definition of
- Symbol#to_s.
-
-Mon Nov 6 18:54:13 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * eval.c (svalue_to_avalue): need to splat but no error.
-
- * eval.c: new macros - YIELD_CALL, YIELD_VALUES.
-
- * eval.c (rb_yield_values): specify YIELD_VALUES.
-
- * eval.c (rb_yield_0): use new macros.
-
- * eval.c (proc_invoke): slightly modified to separate YIELD_CALL
- and YIELD_VALUES from YIELD_ARY_ARGS.
-
- * object.c (Init_Object): add nil.to_splat => [].
-
-Mon Nov 6 15:41:55 2006 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/lib/tk/itemconfig.rb: ext/tk/lib/tk/itemconfig.rb: bug
- fix on 'itemconfiginfo' method, and modify to make it easy to
- override 'itemconfiginfo' method.
-
- * ext/tk/lib/tkextlib/tile/treeview.rb: support Tile 0.7.8.
-
- * ext/tk/lib/tkextlib/version.rb: [new] add Tk::Tkextlib_RELEASE_DATE
- to get the information from scripts.
-
- * ext/tk/lib/tk.rb: load 'tkextlib/version.rb', and update RELEASE_DATE
-
- * ext/tk/lib/tkextlib/SUPPORT_STATUS: update.
-
- * ext/tk/sample/editable_listbox.rb: [new] the listbox with editable
- items. It's one of the example about usage of Place geometry manager.
-
- * ext/tk/sample/tktextio.rb: improve the functions of TkTextIO class.
- Those are required by 'irbtkw.rbw'.
-
- * ext/tk/sample/irbtkw.rbw: [new] IRB on Ruby/Tk. It doesn't need any
- real console. IRB works on a text widget without I/O blocking. That
- is, thread switching on IRB will work properly, even if on Windows.
-
-Mon Nov 6 00:42:05 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * parse.y (arg_dup_check): vid may be nameless internal id.
-
-Sun Nov 5 19:52:19 2006 Tadayoshi Funaba <tadf@dotrb.org>
-
- * lib/date.rb: updated based on date2 3.9.7.
-
-Sat Nov 4 13:09:31 2006 Shugo Maeda <shugo@ruby-lang.org>
-
- * lib/net/imap.rb: accept NOMODSEQ. [ruby-core:9002]
-
-Fri Nov 3 00:16:37 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * ext/socket/socket.c (ruby_getnameinfo__aix): AF_INET6 workaround
- for AIX. a patch from Yutaka Kanemoto <kinpoco AT gmail.com>.
- [ruby-dev:29744]
-
-Thu Nov 2 14:19:44 2006 Akinori MUSHA <knu@iDaemons.org>
-
- * lib/set.rb (Set#^): Fix XOR operation against a container that
- holds duplicate values. [ruby-core:9372]
-
-Thu Nov 2 10:00:06 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * string.c: class Symbol is no longer subclass of String. also
- covers [ruby-core:09366]
-
-Thu Nov 2 08:21:07 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/xmlrpc/create.rb (XMLRPC::Create::conv2value): Symbol should
- come earlier than String.
-
- * lib/soap/mapping/rubytypeFactory.rb (RubytypeFactory::obj2soap):
- ditto.
-
- * lib/set.rb (TC_Set::test_s_new): strings are no longer
- Enumerable
-
- * lib/soap/property.rb (Property::load): ditto.
-
- * lib/webrick/httputils.rb (WEBrick::HTTPUtils::parse_header): ditto.
-
- * lib/soap/mimemessage.rb (MIMEMessage::Headers::parse): ditto.
-
-Thu Nov 2 09:08:04 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * array.c: revert lfree shift/unshift boost patch to avoid unknown
- memory error.
-
-Wed Nov 1 23:24:42 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * ruby.h (struct RArray): revert embedding ptr in RVALUE.
-
- * array.c: ditto.
-
-Wed Nov 1 23:01:55 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * string.c (hash): use Bob Jenkins' hash algorithm.
-
-Wed Nov 1 02:22:31 2006 Akinori MUSHA <knu@iDaemons.org>
-
- * ext/digest/lib/digest/hmac.rb (Digest::HMAC::update): Minor
- optimization.
-
- * ext/digest/digest.c (rb_digest_instance_equal): Allow comparing
- a digest instance with another of a different class.
-
-Wed Nov 1 01:05:13 2006 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * eval.c (rb_call0): fixed bug of zsuper with both of opt and rest.
- fixed: [ruby-list:42928]
-
-Tue Oct 31 17:03:21 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * time.c (time_dup): duplicate the class of original time.
- [ruby-core:09357]
-
- * lib/time.rb (Time::make_time, Time::rfc2822, Time::httpdate):
- should respect subclasses. [ruby-core:09357]
-
-Tue Oct 31 16:25:22 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * array.c (ary_shared_first): should address offset after
- ary_shared_array(). [ruby-core:09358]
-
-Mon Oct 30 23:40:52 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * Makefile.in (miniruby): add XLDFLAGS.
-
- * configure.in (aix): use -bE option for miniruby. [ruby-dev:29698]
-
- * dir.c (glob_helper): get rid of possible memory leak.
-
- * win32/win32.c (cmdglob, rb_w32_cmdvector, rb_w32_opendir,
- rb_w32_get_environ): not to use GC before initialization.
-
-Mon Oct 30 19:28:02 2006 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * bignum.c (rb_big2str0): use better approximation.
-
-Mon Oct 30 18:35:33 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * bignum.c (rb_big2str0): wrong allocation length. a patch from
- U.Nakamura <usa at garbagecollect.jp> [ruby-dev:29710]
-
-Mon Oct 30 12:34:02 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * eval.c (rb_eval): fix commit miss. [ruby-dev:29707]
-
-Mon Oct 30 11:15:40 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * sprintf.c (rb_str_format): should preserve leading zero
- information for negative %b and %x. [ruby-talk:221347]
-
-Sun Oct 29 19:51:31 2006 K.Kosako <sndgk393 AT ybb.ne.jp>
-
- * regexec.c: invalid offset value was used in STATE_CHECK_BUFF_INIT().
-
-Sat Oct 28 20:13:18 2006 K.Kosako <sndgk393 AT ybb.ne.jp>
-
- * oniguruma.h: Version 4.4.5
-
- * regint.h: ditto.
-
- * regerror.c: ditto.
-
- * regexec.c: ditto.
-
- * regcomp.c ditto.
-
- * regparse.c ditto.
-
-Sat Oct 28 07:56:13 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * marshal.c (r_object0): missing break. [ruby-core:09345]
-
-Fri Oct 27 17:30:31 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * enumerator.c (enum_each_cons): move RETURN_ENUMERATOR() after
- argument check.
-
-Thu Oct 26 21:05:48 2006 GOTOU Yuuzou <gotoyuzo@notwork.org>
-
- * ext/openssl/ossl_pkcs7.c (ossl_pkcs7_verify): should clear error.
- (fix http://bugs.debian.org/394336)
-
- * ext/openssl/ossl_ns_spki.c (ossl_spki_initialize): ditto.
-
-Thu Oct 26 15:23:47 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * enumerator.c: remove by_slice and by_cons.
-
-Thu Oct 26 15:12:12 2006 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * ext/digest/digest.c (Init_digest): typo.
-
-Wed Oct 25 17:16:05 2006 Akinori MUSHA <knu@iDaemons.org>
-
- * test/digest/test_digest_hmac.rb: added.
-
-Wed Oct 25 16:34:31 2006 Akinori MUSHA <knu@iDaemons.org>
-
- * ext/digest/test.sh: make this script work again.
-
-Wed Oct 25 07:59:42 2006 Tadayoshi Funaba <tadf@dotrb.org>
-
- * lib/date/format.rb: updated based on date2 3.9.6.
- [ruby-core:09323]
-
-Wed Oct 25 00:58:19 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * win32/mkexports.rb, win32/resource.rb: use unique variable names.
-
-Tue Oct 24 19:18:53 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * enumerator.c (enumerator_by_slice): new method added.
-
- * enumerator.c (enumerator_by_cons): ditto.
-
-Tue Oct 24 18:56:13 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * enumerator.c (enum_each_slice, enum_each_cons): returns
- Enumerable::Enumerator if no block is given. [ruby-dev:29246]
-
- * enumerator.c: remove methods: enum_with_index, enum_slice,
- enum_cons. [ruby-dev:29246]
-
-Tue Oct 24 18:51:27 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * enum.c (enum_zip): add RETURN_ENUMERATOR() to zip method.
-
-Mon Oct 23 04:30:04 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * marshal.c (r_object0): use return value from proc given as the
- second argument to Marshal#load() to allow value replacement in
- the restoring data.
-
-Sun Oct 22 14:48:31 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * signal.c (Init_signal): avoid duplicated installation of SIGCHLD
- handler.
-
-Sun Oct 22 16:47:56 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * string.c (rb_str_substr): should be infected with only original
- string, but not the shared string. fixed: [ruby-core:09152]
-
- * string.c (rb_str_new4): keep shared string untainted when original
- string is tainted. fixed: [ruby-dev:29672]
-
-Sun Oct 22 07:55:11 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * string.c (rb_str_upcase, rb_str_downcase, rb_str_downcase,
- rb_str_upcase_bang, rb_str_downcase_bang, rb_str_swapcase_bang):
- add RDoc description that case conversion to be effective only
- in ASCII region.
-
-Sun Oct 22 05:20:34 2006 URABE Shyouhei <shyouhei@ice.uec.ac.jp>
-
- * configure.in: alloca is broken; use C_ALLOCA instead.
- [ruby-dev:29416]
-
-Sat Oct 21 17:50:40 2006 Akinori MUSHA <knu@iDaemons.org>
-
- * ext/digest/lib/digest.rb: Follow the framework updates.
-
-Fri Oct 20 22:00:43 2006 Akinori MUSHA <knu@iDaemons.org>
-
- * ext/digest/lib/digest/hmac.rb: Complete half-boiled updates.
-
- * ext/digest/sha2/lib/digest/sha2.rb: Fix #initialize_clone().
-
-Fri Oct 20 20:28:37 2006 Akinori MUSHA <knu@iDaemons.org>
-
- * ext/digest: Prefix C constants with RUBY_ and C type names with
- rb_ to avoid name clash in writing extensions.
-
- * ext/digest: Introduce Digest::Class and Digest::Instance for
- ease of implementing subclasses and add-ons, inspired by
- gotoyuzo.
-
- * ext/digest: The Digest::Instance module now requires and assumes
- that any instance be resettable and clonable, and add some
- convenient instance methods such as "new()", for creating a new
- copy, parameter taking "digest()" and "hexdigest()", for instant
- calculation. These methods make digest instances work just like
- digest classes.
-
- * ext/digest/sha2/lib/digest/sha2.rb:
- Add the Digest::SHA2 class to wrap up SHA2 variants: SHA256,
- SHA384 and SHA512, hoping this module would make a decent
- example of a digest subclass written in Ruby.
-
- * ext/digest/lib/digest.rb: Adjust autoload entries for SHA2
- classes.
-
- * ext/digest/lib/digest/hmac.rb: Follow the framework updates.
-
-Fri Oct 20 10:47:43 2006 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * lib/mkmf.rb: fixed the bug of handling COMMON_MACROS.
-
-Fri Oct 20 08:42:38 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * common.mk (NULLCMD): dummy command.
-
- * bcc32/Makefile.sub (post-install-*): Borland make cannot ignore
- command-less double-colon rules. [ruby-dev:29676]
-
-Fri Oct 20 00:37:07 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * bcc32/Makefile.sub ($(LIBRUBY_SO)): execute pre-link hook.
-
- * ext/extmk.rb: workaround for Borland make.
-
-Wed Oct 18 23:02:40 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * array.c (rb_ary_shift): shorten copy size. fixed: [ruby-list:42907]
-
- * signal.c (Init_signal): handle SIGTERM. fixed: [ruby-list:42895]
-
- * win32/win32.c (rb_w32_utime): allow NULL to set the current time.
- [ruby-talk:219248]
-
-Wed Oct 18 13:25:50 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * string.c (rb_str_each_line): String#lines now works when a block
- is given. in other words, lines become an alias to each_line.
- [ruby-core:09218]
-
- * string.c (rb_str_each_byte): ditto for bytes in place of lines.
-
-Wed Oct 18 00:55:33 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * parse.y (parser_yylex): use particular enums. [ruby-core:09221]
-
-Tue Oct 17 22:03:08 2006 Minero Aoki <aamine@loveruby.net>
-
- * lib/erb.rb: String#each was removed, use #each_line instead.
-
-Tue Oct 17 12:27:32 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * array.c (ary_shared_array): should set NOEMBED flag for a copied
- array.
-
-Tue Oct 17 08:04:31 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * string.c (rb_str_lines): now takes optional argument for the
- line separator.
-
- * io.c (rb_io_lines, rb_io_bytes): new methods.
-
-Mon Oct 16 23:33:18 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * array.c (rb_ary_unshift_m): a bug in lfree shift length
- calculation.
-
-Mon Oct 16 08:30:43 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * mkconfig.rb: *OBJS are not needed for extension libraries.
-
- * {bcc32,wince,win32}/Makefile.sub (config.status): fixed typo,
- missing comma.
-
-Mon Oct 16 00:44:26 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * pack.c (pack_unpack): execute block if given with unpacked value
- instead of creating an array. an idea from Tim Bray.
-
-Sun Oct 15 01:03:08 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/test/unit/collector/dir.rb (Collector::Dir#collect): append base
- directory but not prepend.
-
- * lib/test/unit/collector/dir.rb (Collector::Dir#collect_file): do not
- join with dot. fixed: [ruby-core:09179]
-
-Sat Oct 14 23:39:50 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * parse.y (singleton): no need to re-create NODE_SELF() again.
- [ruby-core:09177]
-
-Sat Oct 14 23:25:31 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * parse.y (parser_warning, parser_warn): some error message may
- contain format specifiers. a patch from Akinori MUSHA <knu at
- iDaemons.org>. [ruby-dev:29657]
-
- * regparse.c (onig_rb_warning, onig_rb_warn): ditto.
-
- * ext/bigdecimal/bigdecimal.c (VpException): ditto.
-
- * ext/dl/handle.c (rb_dlhandle_initialize): ditto.
-
- * ext/gdbm/gdbm.c (rb_gdbm_fatal): ditto.
-
-Sat Oct 14 08:15:42 2006 Akinori MUSHA <knu@iDaemons.org>
-
- * ext/digest/digest.c, ext/digest/digest.h,
- ext/digest/md5/md5init.c, ext/digest/rmd160/rmd160init.c,
- ext/digest/sha1/sha1init.c, ext/digest/sha2/sha2init.c:
- Introduce API versioning.
-
- * ext/digest/digest.c, ext/digest/digest.h,
- ext/digest/md5/md5init.c, ext/digest/rmd160/rmd160init.c,
- ext/digest/sha1/sha1init.c, ext/digest/sha2/sha2init.c: Remove
- the constants DIGEST_LENGTH and BLOCK_LENGTH and turn them into
- instance methods digest_length() and block_length(). Class
- methods with the same names are also provided, which take extra
- parameters for a digest method.
-
- * ext/digest/lib/digest/hmac.rb: Completely redesign the somewhat
- bizarre API, now that Digest classes can take hashing
- parameters.
-
-Sat Oct 14 05:54:05 2006 Akinori MUSHA <knu@iDaemons.org>
-
- * ext/digest/digest.c: Improve RDoc documentation further more.
-
-Sat Oct 14 04:33:33 2006 Akinori MUSHA <knu@iDaemons.org>
-
- * ext/digest/digest.c: Improve RDoc documentation.
-
- * ext/digest/digest.c (Init_digest, rb_digest_base_s_digest,
- rb_digest_base_s_hexdigest): Make Digest::Base::digest() and
- Digest::Base::hexdigest() take extra arguments, which are passed
- through to the constructor in an internal call.
-
- * ext/digest/bubblebabble/bubblebabble.c
- (rb_digest_base_s_bubblebabble): Ditto for
- Digest::Base::bubblebabble().
-
-Sat Oct 14 00:55:08 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * bcc32/Makefile.sub (post-install-ext): no longer needed.
-
- * bcc32/configure.bat: get rid of a quirk of Borland make, which
- sets empty macro in command line to "1".
-
-Fri Oct 13 22:49:02 2006 Tadayoshi Funaba <tadf@dotrb.org>
-
- * lib/date.rb: updated based on date2 3.9.5.
-
-Fri Oct 13 21:00:01 2006 Akinori MUSHA <knu@iDaemons.org>
-
- * ext/digest/lib/digest.rb (Digest): Try to auto-load non-standard
- digest modules when a specified digest class is missing.
-
- * ext/digest/lib/digest.rb: Define Digest(name) for ease of
- dynamically selecting a hashing algorithm.
-
-Fri Oct 13 20:53:37 2006 Akinori MUSHA <knu@iDaemons.org>
-
- * ext/digest/digest.c (Init_digest): Digest::Base.new() does no
- longer take an initial string to feed. This change allows
- subclasses to take hashing parameters. A statement such as
- ``md = Digest::MD5.new(s)'' can be easily rewritten as
- ``md = Digest::MD5.new << s'' or
- ``md = Digest::MD5.new.update(s)''.
-
-Fri Oct 13 20:51:55 2006 Akinori MUSHA <knu@iDaemons.org>
-
- * ext/digest/digest.c, ext/digest/md5/md5init.c,
- ext/digest/rmd160/rmd160init.c, ext/digest/sha1/sha1init.c,
- ext/digest/sha2/sha2init.c: Add RDoc documentation.
-
- * ext/digest/digest.txt, ext/digest/digest.txt.ja: Removed in
- favor of embedded RDoc documentation.
-
-Fri Oct 13 20:38:12 2006 Akinori MUSHA <knu@iDaemons.org>
-
- * ext/digest/bubblebabble, ext/digest/digest.c: Rip BubbleBabble
- support out of the base class and have a separate module named
- digest/bubblebabble.
-
-Fri Oct 13 19:53:59 2006 Akinori MUSHA <knu@iDaemons.org>
-
- * ext/digest/digest.c (rb_digest_base_equal): Again, should call
- digest() of a subclass instead of the one defined in the base
- class.
-
-Fri Oct 13 18:19:31 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * object.c: Class#inherited RDoc added. a patch from Daniel
- Berger <djberg96 at gmail.com> [ruby-core:08942]
-
-Fri Oct 13 02:42:00 2006 Akinori MUSHA <knu@iDaemons.org>
-
- * ext/digest/digest.c (rb_digest_base_equal): Should call digest()
- of a subclass instead of the one defined in the base class.
-
-Fri Oct 13 02:30:12 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/test/unit/collector/dir.rb (Collector::Dir#collect): prepend
- base directory to load path.
-
- * lib/test/unit/collector/dir.rb (Collector::Dir#collect_file): should
- use the given File-like interface, but not File directly.
-
- * test/testunit/collector/test_dir.rb (TestDir::FileSystem): implement
- File-like methods correctly.
-
-Fri Oct 13 01:48:42 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/date.rb (Date::self.complete_hash): need to check if g is
- nil before dereference. [ruby-core:09116]
-
-Fri Oct 13 01:05:58 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * string.c (rb_str_partition): RDoc update. a patch from
- Mauricio Fernandez <mfp at acm.org>. [ruby-core:09160]
-
- * hash.c (rb_hash_compare_by_id): ditto.
-
-Fri Oct 13 00:34:26 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * object.c (rb_mod_cvar_defined): wrong id check. a patch from
- Mauricio Fernandez <mfp at acm.org>. [ruby-core:09158]
-
- * object.c (rb_mod_cvar_get): typo fixed. [ruby-core:09168]
-
- * object.c (rb_mod_cvar_set): ditto.
-
-Thu Oct 12 22:58:11 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * hash.c (rb_hash_compare_by_id): somehow we lost renaming from
- Hash#identical. [ruby-core:09163]
-
-Thu Oct 12 18:25:40 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * ext/tk/tkutil/tkutil.c (cbsubst_table_setup): need to handle new
- character literal (1 char string).
-
- * lib/mkmf.rb: shut up some warnings from tk's extconf.rb.
-
-Thu Oct 12 02:15:24 2006 Akinori MUSHA <knu@iDaemons.org>
-
- * ext/digest/lib/digest/hmac.rb: Make use of String#bytes.
-
-Thu Oct 12 02:12:31 2006 Akinori MUSHA <knu@iDaemons.org>
-
- * ext/digest/digest.c (get_digest_base_metadata): Use an instance
- variable of a class object instead of a class variable for
- metadata. This change is only crucial for ruby 1.8 because
- class variables are inherited to subclasses prior to 1.9, but
- applying it also to 1.9 will assure compatibilities.
-
- * ext/digest/md5/md5init.c (Init_md5): Ditto.
-
- * ext/digest/rmd160/rmd160init.c (Init_rmd160): Ditto.
-
- * ext/digest/sha1/sha1init.c (Init_sha1): Ditto.
-
- * ext/digest/sha2/sha2init.c (Init_sha2): Ditto.
-
-Wed Oct 11 21:36:47 2006 Akinori MUSHA <knu@iDaemons.org>
-
- * ext/digest/digest.c (rb_digest_base_alloc,
- rb_digest_base_equal): Simplify the equality check and just
- compare resulted digests since state-level equality should
- not be so significant.
-
- * ext/digest/digest.h: Ditto.
-
- * ext/digest/*/*.[ch]: Ditto.
-
-Wed Oct 11 17:11:03 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * eval.c (rb_obj_define_method): add half boiled RDoc document.
-
-Wed Oct 11 16:57:46 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * array.c (rb_ary_replace): should shift lfree pointer before
- calling xfree.
-
-Wed Oct 11 15:07:42 2006 Akinori MUSHA <knu@iDaemons.org>
-
- * ext/digest/lib/digest/hmac.rb: Add digest/hmac, which implements
- HMAC keyed-hashing algorithm.
-
-Wed Oct 11 15:03:55 2006 Akinori MUSHA <knu@iDaemons.org>
-
- * ext/digest/digest.c (rb_digest_base_reset): Do not make
- recursive calls, but call initialize() when reset() is not
- defined in a subclass.
-
-Wed Oct 11 14:56:10 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * ext/digest/sha1/sha1ossl.h: libssl 0.9.8c-3 defines no
- SHA_BLOCK_LENGTH.
-
-Wed Oct 11 14:03:31 2006 Akinori MUSHA <knu@iDaemons.org>
-
- * ext/digest/digest.c (rb_digest_base_reset, Init_digest): Add
- Digest::Base#reset.
-
- * ext/digest/digest.h: Update the header comment.
-
- * ext/digest/md5/md5ossl.h, ext/digest/md5/md5init.c (Init_md5):
- Define DIGEST_LENGTH and BLOCK_LENGTH.
-
- * ext/digest/rmd160/rmd160init.c (Init_rmd160): Ditto.
-
- * ext/digest/sha1/sha1init.c (Init_sha1): Ditto.
-
- * ext/digest/sha2/sha2init.c (Init_sha2): Ditto.
-
- * ext/digest/depend, ext/digest/extconf.rb: Use $INSTALLFILES
- rather than adding make targets. [Pointed out by: nobu]
-
-Tue Oct 10 16:39:08 2006 Akinori MUSHA <knu@iDaemons.org>
-
- * ext/digest/digest.c (hexdigest_str_new, bubblebabble_str_new):
- Perform StringValue() checks properly.
-
-Tue Oct 10 13:21:21 2006 Akinori MUSHA <knu@iDaemons.org>
-
- * ext/digest/sha1/depend, ext/digest/sha2/depend: Remove obsolete
- dependencies.
-
-Mon Oct 9 23:46:29 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/parsedate.rb: documentation patch from Konrad Meyer
- <konrad.meyer@gmail.com>. [ruby-doc:1238]
-
- * lib/open3.rb, lib/ping.rb: ditto.
-
-Mon Oct 9 23:40:58 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/extmk.rb, lib/fileutils.rb, lib/mkmf.rb, lib/optparse.rb,
- lib/shellwords.rb: get rid of shadowing outer local variable.
-
-Mon Oct 9 22:56:12 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/rexml/encoding.rb (REXML::Encoding::check_encoding): spaces
- are allowed around equal sign. [ruby-core:09032]
-
- * lib/rexml/parsers/baseparser.rb (REXML::Parsers::BaseParser): ditto.
-
-Mon Oct 9 01:56:34 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * eval.c (rb_obj_define_method): add new method
- Kernel#define_singleton_method. [ruby-list:42851]
-
-Sat Oct 7 23:53:08 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * string.c (rb_str_scan): small documentation fix.
- [ruby-core:09007]
-
-Sat Oct 7 23:44:33 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * bignum.c (rb_big_rshift): a bug in right shift of negative
- bignums. [ruby-core:09020]
-
-Sat Oct 7 23:33:02 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * eval.c (formal_assign): packed post splat arguments may conflict
- with normal arguments. [ruby-core:09021]
-
- * eval.c (rb_call0): ditto.
-
-Sat Oct 7 11:53:04 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * object.c (rb_mod_initialize): since module_eval no longer passes
- self, use module_exec instead. fixed: [ruby-dev:29637]
-
-Sat Oct 7 00:27:58 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * class.c (rb_include_module): remove unnecessary check.
- [ruby-talk:218402]
-
-Fri Oct 6 15:19:59 2006 Akinori MUSHA <knu@iDaemons.org>
-
- * ext/digest/depend: Fix header installation when the build
- directory is different from srcdir. [Pointed out by: eban]
-
-Fri Oct 6 09:56:31 2006 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * {bcc32,win32,wince}/Makefile.sub (config.status): shouldn't use
- copy command instead of install. use -run install.
-
-Fri Oct 6 06:53:46 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * eval.c (rb_yield_0): small refactoring.
-
- * parse.y (bparam_item): fixed bugs in handling parenthesized LHS.
-
-Fri Oct 6 04:47:07 2006 Akinori MUSHA <knu@iDaemons.org>
-
- * ext/digest/depend: Install digest.h.
-
-Fri Oct 6 04:27:40 2006 Akinori MUSHA <knu@iDaemons.org>
-
- * ext/digest/lib/md5.rb, ext/digest/lib/sha1.rb: Remove those
- compatibility stub libraries.
-
- * sample/openssl/c_rehash.rb: Use digest/md5 instead of obsolete md5.
-
-Fri Oct 6 04:09:51 2006 Akinori MUSHA <knu@iDaemons.org>
-
- * ext/digest/digest.c: Make hexdigest() always call digest() internally.
-
- * ext/digest/digest.c: Add bubblebabble().
-
-Fri Oct 6 02:38:42 2006 Akinori MUSHA <knu@iDaemons.org>
-
- * ext/digest/digest.c: Allow subclassing in Ruby.
-
-Fri Oct 6 02:06:10 2006 Akinori MUSHA <knu@iDaemons.org>
-
- * ext/digest/digest.c (hexdigest_str_new): Add a string size check.
-
-Thu Oct 5 19:28:35 2006 Akinori MUSHA <knu@iDaemons.org>
-
- * ext/digest/digest.[ch]: Since the argument order of
- hash_final_func_t was inconsistent with others, change it and
- rename to hash_finish_func_t to avoid confusion.
-
- * ext/digest/digest.[ch]: Remove and eliminate the use of
- hash_end_func_t. Implement hexdigest conversion in the base
- class.
-
- * ext/digest/md5/md5.c, ext/digest/md5/md5.h,
- ext/digest/md5/md5init.c, ext/digest/md5/md5ossl.c,
- ext/digest/md5/md5ossl.h: Remove MD5_End() and change
- MD5_Final() to MD5_Finish().
-
- * ext/digest/rmd160/depend, ext/digest/rmd160/extconf.rb,
- ext/digest/rmd160/rmd160.c, ext/digest/rmd160/rmd160.h,
- ext/digest/rmd160/rmd160hl.c, ext/digest/rmd160/rmd160init.c,
- ext/digest/rmd160/rmd160ossl.c, ext/digest/rmd160/rmd160ossl.h:
- Remove unused functions RMD160_End(), RMD160_File(),
- RMD160_Data() and change RMD160_Final() to RMD160_Finish().
-
- * ext/digest/sha1/extconf.rb, ext/digest/sha1/sha1.c,
- ext/digest/sha1/sha1.h, ext/digest/sha1/sha1hl.c,
- ext/digest/sha1/sha1init.c, ext/digest/sha1/sha1ossl.c,
- ext/digest/sha1/sha1ossl.h: Likewise.
-
- * ext/digest/sha2/extconf.rb, ext/digest/sha2/sha2.c,
- ext/digest/sha2/sha2.h, ext/digest/sha2/sha2hl.c,
- ext/digest/sha2/sha2init.c: Likewise.
-
-Wed Oct 4 18:47:25 2006 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/lib/tkextlib/*: bugfix and update
- (see ext/tk/ChangeLog.tkextlib).
-
-Wed Oct 4 17:25:14 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * eval.c (rb_call): check protected visibility based on real self,
- not ruby_frame->self. [ruby-talk:217822]
-
-Wed Oct 4 15:46:32 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * parse.y (block_param): should interpret single parenthesized
- left hand side expression.
-
-Wed Oct 4 08:52:30 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * test/optparse/test_getopts.rb: changed the class name of test case
- to get rid of conflict with test_optparse.rb.
-
-Tue Oct 3 21:04:29 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * parse.y (dyna_in_block): inline using macro.
-
- * parse.y (mlhs): simplifies the rule a bit.
-
- * parse.y (block_param): restrict block parameters to be local
- variables only.
-
- * test/ruby/test_iterator.rb (TestIterator::test_nested_iterator):
- update test suite to conform the last change.
-
-Tue Oct 3 02:31:13 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * eval.c (splat_value): use "to_splat" instead of "to_ary" to
- prepare splat values as an array.
-
- * array.c (Init_Array): define to_splat.
-
- * range.c (range_to_splat): new method.
-
- * enumerator.c (enumerator_to_splat): ditto.
-
-Tue Oct 3 01:36:47 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * string.c (rb_str_lines): returns an Enumerator instead of an
- array of lines.
-
- * string.c (rb_str_bytes): a new method.
-
-Mon Oct 2 23:47:55 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/test/unit/autorunner.rb (Test::Unit::AutoRunner::COLLECTORS):
- base directory should be lower precedence. fixed: [ruby-dev:29622]
-
- * lib/test/unit/autorunner.rb (Test::Unit::AutoRunner#options): typo.
-
- * lib/test/unit/collector/dir.rb (Test::Unit::Collector::Dir#collect_file):
- load expanded path. fixed: [ruby-dev:29621]
-
-Mon Oct 2 15:47:55 2006 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * instruby.rb: batfile should be CRLF'ed.
-
-Mon Oct 2 01:24:26 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * common.mk (test-all): separate directory where running test cases
- from source tree.
-
- * lib/test/unit/autorunner.rb (options): added --basedir, --workdir
- and --load-path options.
-
- * lib/test/unit/collector/dir.rb (recursive_collect, collect_file):
- base directory support.
-
-Sun Oct 1 23:56:52 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * Makefile.in, common.mk, ext/extmk.rb, win{32,ce}/Makefile.in: keep
- LIBRUBY_SO unless need to be removed.
-
-Sun Oct 1 23:12:19 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/optparse.rb (OptionParser#make_switch): pass arguments directly.
-
-Sat Sep 30 15:11:26 2006 Tadayoshi Funaba <tadf@dotrb.org>
-
- * lib/date.rb, lib/date/format.rb: updated based on date2 3.9.4.
-
-Fri Sep 29 13:18:24 2006 Akinori MUSHA <knu@iDaemons.org>
-
- * ext/digest/lib/digest.rb (Digest): Require digest.so and fix the
- breakage. Point out by NAKAMURA Usaku in [ruby-dev:29619].
-
-Fri Sep 29 12:11:04 2006 WATANABE Hirofumi <eban@ruby-lang.org>
-
- * jcode.rb (succ!): call original succ! if $KCODE == 'n'.
- fixed: [ruby-talk:216845]
-
-Fri Sep 29 11:43:40 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/mkmf.rb (try_func): revert fallback checking undeclared function.
- fixed: [ruby-core:08949]
-
-Fri Sep 29 09:56:56 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/extmk.rb: extout is needed for also clean.
- fixed: [ruby-core:08944]
+Sat May 14 12:06:49 2011 Eric Hodel <drbrain@segment7.net>
- * lib/optparse.rb (OptionParser::Switch#conv_arg): unsplat by
- Proc#call if no conversion is given.
+ * lib/rdoc/context.rb (class RDoc): Fix infinite loop caused by
+ re-encountering BasicObject.
-Thu Sep 28 23:59:31 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Sat May 14 10:32:36 2011 Martin Bosslet <Martin.Bosslet@googlemail.com>
- * node.h (struct thread): declare win32_exception_list on cygwin and
- win32 regardless if it is implemented. Provisional fix for
- [ruby-core:08917].
+ * test/openssl/test_pkey_rsa.rb: Add tests that ensure new public key
+ encoding behavior and also ensure backward compatibility.
+ [Ruby 1.9 - Bug #4421] [ruby-core:35327]
-Thu Sep 28 20:49:20 2006 NAKAMURA Usaku <usa@ruby-lang.org>
+Sat May 14 09:50:10 2011 Eric Hodel <drbrain@segment7.net>
- * lib/tmpdir.rb: use return value of getdir.call for length.
+ * lib/yaml/dbm.rb: Add documentation. Patch by Justin Collins.
+ [Ruby 1.9 - Bug #4693]
+ * lib/yaml/store.rb: ditto
-Wed Sep 27 22:08:16 2006 Akinori MUSHA <knu@iDaemons.org>
+Sat May 14 09:31:43 2011 Eric Hodel <drbrain@segment7.net>
- * ext/digest/md5/md5init.c (Init_md5): Now that we have digest.rb,
- require "digest" rather than "digest.so".
+ * lib/rdoc.rb: Updated to RDoc 3.6
- * ext/digest/rmd160/rmd160init.c (Init_rmd160): Ditto.
+Sat May 14 07:30:29 2011 Aaron Patterson <aaron@tenderlovemaking.com>
- * ext/digest/sha1/sha1init.c (Init_sha1): Ditto.
+ * ext/psych/lib/psych.rb: released a new gem, so increasing version.
- * ext/digest/sha2/sha2init.c (Init_sha2): Ditto.
+Sat May 14 05:08:32 2011 Martin Bosslet <Martin.Bosslet@googlemail.com>
-Wed Sep 27 21:21:08 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * string.c (rb_str_startwith): rename startwith? to start_with?,
- endwith? to endwith?, respectively. [ruby-talk:216685]
-
-Wed Sep 27 13:29:01 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/cgi.rb (CGI::TagMaker::nOE_element_def): replace to_s by
- join. some other methods as well. [ruby-dev:29613]
-
-Wed Sep 27 01:04:49 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/mkmf.rb (try_func): check function pointer first and macro next.
-
- * lib/mkmf.rb (have_type): simplified with typedef and sizeof.
-
-Wed Sep 27 00:08:12 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * array.c (rb_ary_shift): shift/unshift performance boost patch,
- based on the patch from Eric Mahurin <eric_mahurin at yahoo.com>.
- [ruby-core:05861]
-
- * array.c (rb_ary_unshift_m): ditto.
-
- * array.c (ary_make_shared): ditto.
-
- * array.c (RESIZE_CAPA): ditto.
-
- * array.c (rb_ary_free): new function to free memory. code moved
- from gc.c.
-
- * string.c (rb_str_free): ditto.
-
-Tue Sep 26 23:57:03 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/optparse.rb (OptionParser#getopts): use strings as key.
- fixed: [ruby-dev:29614]
-
-Tue Sep 26 15:29:55 2006 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * {win32,wince}/Makefile.sub (CPP): check predefined value.
-
-Tue Sep 26 07:55:16 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * array.c (rb_ary_shift): should not move memory region if array
- body is shared. a patch from Kent Sibilev <ksruby at gmail.com>.
- [ruby-core:08922]
-
-Mon Sep 25 23:10:46 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * dir.c (rb_push_glob): need not to check by FilePathValue().
- [ruby-dev:29599]
-
- * dir.c (dir_globs): ditto.
-
-Mon Sep 25 22:26:26 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * file.c (rb_path_end): skip root directory. fixed: [ruby-core:08913]
-
- * lib/mkmf.rb (rm_f): get rid of NUL.
-
- * lib/mkmf.rb (init_mkmf): set default $LDFLAGS. Patch by Michal
- Suchanek <hramrach at centrum.cz>. [ruby-talk:216256]
-
-Mon Sep 25 15:06:18 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * sample/test.rb: "print nil" now prints empty string.
-
- * test/ruby/test_system.rb (TestSystem::test_system): ditto.
-
-Mon Sep 25 11:26:25 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * hash.c (recursive_hash): remove unused local variable.
-
- * parse.y (parser_yylex): ditto.
-
- * parse.y (rb_gc_mark_symbols): fix unmatched prototype .
-
- * file.c (rb_get_path): check NUL byte in the path string.
-
-Mon Sep 25 08:14:43 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * array.c (rb_ary_shift): should clear shifting top element.
- [ruby-talk:216055]
-
- * array.c (rb_ary_shift): avoid creating shared object if array
- size is small.
-
-Mon Sep 25 08:11:35 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * random.c (rb_f_rand): RDoc typo fix. a patch from Frederick
- Cheung <fred at 82ask.com>. [ruby-talk:216047]
-
-Sun Sep 24 21:19:24 2006 Guy Decoux <ts@moulon.inra.fr>
-
- * gc.c (gc_mark_children): NODE_POSTEXE holds Ruby VALUE.
- [ruby-core:08912]
-
-Sun Sep 24 22:28:20 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * runruby.rb: extension library scripts moved into common directory.
-
-Sun Sep 24 12:10:04 2006 Tadayoshi Funaba <tadf@dotrb.org>
-
- * lib/date.rb, lib/date/format.rb: updated based on date2 3.9.3.
-
-Sun Sep 24 06:55:36 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * io.c (rb_io_print): no special handling for nil as well as puts.
- fixed: [ruby-dev:29586]
-
-Sun Sep 24 06:25:53 2006 why the lucky stiff <why@ruby-lang.org>
-
- * eval.c (rb_thread_save_context, rb_thread_restore_context):
- sandbox hook to save and restore sandbox state.
-
- * eval.c (thread_no_ensure): added THREAD_NO_ENSURE thread flag.
-
- * eval.c (rb_thread_kill_bang): Thread#kill! uses the above flag
- to circumvent ensure, in order to prevent endless loops.
- contributed by MenTaLguY. [ruby-core:08768]
-
- * eval.c (rb_thread_kill): fix Thread#kill docs, which returns
- the thread object in all cases.
-
- * node.h: expose the rb_jmpbuf_t and rb_thread_t structs, along
- with the thread flags. used by the sandbox extension.
-
- * ruby.h: extern rb_eThreadError, so sandbox can swap it.
-
-Sat Sep 23 21:34:15 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/cgi.rb (CGI::QueryExtension::read_multipart): CGI content
- may be empty. a patch from Jamis Buck <jamis at 37signals.com>.
-
-Sat Sep 23 20:54:28 2006 K.Kosako <sndgk393 AT ybb.ne.jp>
-
- * oniguruma.h: Version 4.4.4
-
- * regexec.c: ditto.
-
- * regcomp.c ditto.
-
-Sat Sep 23 08:35:53 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/rdoc/ri/ri_options.rb: prevent NameError. [ruby-dev:29597]
-
-Sat Sep 23 01:02:57 2006 Tadayoshi Funaba <tadf@dotrb.org>
-
- * lib/date.rb, lib/date/format.rb: updated based on date2 3.9.2.
-
-Fri Sep 22 18:07:17 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * string.c (rb_str_partition): no need to call rb_call_super(),
- since String is no longer includes Enumerable.
-
-Fri Sep 22 17:33:29 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * hash.c (rb_hash_eql): new method to be used by Hash.
-
- * hash.c (rb_hash_hash): ditto.
-
-Fri Sep 22 06:53:22 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * bignum.c (rb_big_hash): use rb_memhash().
-
- * numeric.c (flo_hash): simplified. klass need not to affect
- resulting hash value.
-
-Fri Sep 22 02:06:26 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * .cvsignore: ignore timestamp files and installed list file.
-
-Fri Sep 22 01:36:34 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * instruby.rb: include FileUtils unconditionally.
-
-Fri Sep 22 00:36:05 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * numeric.c (Init_Numeric): fix_odd_p and fix_even_p are for Fixnum.
- patch from Ondrej Bilka <neleai at seznam.cz>. [ruby-core:08904]
-
-Thu Sep 21 22:56:20 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * common.mk (no-install): not install rdoc actually.
-
- * common.mk (install-doc, no-install-doc): use instruby.rb.
-
- * instruby.rb: rdoc installation.
-
- * ext/extmk.rb: expand ruby executable names.
-
-Thu Sep 21 20:19:22 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * string.c (str_new3): embed shorter strings more eagerly.
-
-Thu Sep 21 17:44:49 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * string.c (rb_str_startwith): a new method to check if a string
- starts with given prefix.
-
- * string.c (rb_str_endwith): the opposite of String#startwith?.
-
-Thu Sep 21 16:29:02 2006 WATANABE Hirofumi <eban@ruby-lang.org>
-
- * rubytest.rb: use each_line instead of each.
-
-Thu Sep 21 15:06:24 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * numeric.c (int_odd_p): a new method to check even or odd.
- [RCR#337]
-
- * numeric.c (int_even_p): ditto.
-
-Thu Sep 21 13:55:07 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * ext/etc/etc.c (etc_getpwuid): uid integer should be wrapped in
- uid_t value. [ruby-core:08897]
-
- * ext/etc/etc.c (etc_getpwuid): uid_t may be bigger than plain
- 'int' type.
-
-Thu Sep 21 10:07:09 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * string.c (rb_str_partition): RDoc typo fixed. [ruby-core:08898]
-
- * string.c (rb_str_rpartition): fixed separation seek bug.
-
-Thu Sep 21 09:38:12 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * string.c (rb_str_lines): new method to split a string into lines.
-
- * string.c (Init_String): Strings are no longer Enumerable. use
- each_line or lines method explicitly.
-
- * string.c (Init_String): remove each method. use each_lines.
-
-Wed Sep 20 23:17:41 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * common.mk (pre-install-doc): create data directory before install.
-
- * lib/mkmf.rb (dir_re): fixed typo.
-
- * lib/mkmf.rb (install_dirs): remove extra slash.
-
-Wed Sep 20 22:41:45 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * numeric.c (fix_mul): typo again. patch from Tadashi Saito
- <shiba at mail2.accsnet.ne.jp>. fixed: [ruby-core:08893]
-
-Wed Sep 20 19:32:06 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * string.c (rb_str_partition): a new method to separate the string
- by a separator. taken from Python 2.5.
-
- * string.c (rb_str_rpartition): ditto.
-
-Wed Sep 20 09:49:40 2006 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * {bcc32,win32,wince}/Makefile.sub (INSTALLED_LIST): need to define
- this macro to install.
-
-Wed Sep 20 09:43:10 2006 Shugo Maeda <shugo@ruby-lang.org>
-
- * lib/net/imap.rb: allow extra spaces in responses.
- Thanks, Tom Soderlund.
-
-Wed Sep 20 09:25:39 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * ext/gdbm/gdbm.c: add RDoc documentation. a patch from Peter
- Adolphs <futzilogik at users dot sourceforge dot net>.
- [ruby-doc:1223]
-
-Tue Sep 19 00:42:15 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * object.c (rb_obj_ivar_defined, rb_mod_cvar_defined): new methods,
- Kernel#instance_variable_defined? and Module#class_variable_defined?.
- [ruby-dev:29587]
-
- * lib/date/format.rb (Date::Bag#method_missing): use new method,
- instance_variable_defined? to check if an instance variable is
- defined. fixed: [ruby-dev:29554]
- -- This didn't fix anything.
-
-Tue Sep 19 00:07:17 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * string.c (sym_eql): fail early to gain performance.
-
- * string.c (sym_hash): cache hash value in aux.shared if possible.
-
- * gc.c (rb_obj_id): no need to treat symbols specially.
-
- * lib/fileutils.rb (FileUtils::FileUtils): singleton_methods() no
- longer return an array of strings, but of symbols.
-
- * lib/delegate.rb (DelegateClass): ditto.
-
-Mon Sep 18 15:29:21 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * dir.c (dir_s_glob): restore GC protection volatile variable.
- [ruby-dev:29588]
-
- * re.c (rb_reg_regcomp): ditto.
-
-Mon Sep 18 12:16:48 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * numeric.c (fix_mul): get rid of shift overflow.
-
-Mon Sep 18 10:47:49 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * dir.c (dir_s_glob): remove unused variable.
+ * ext/openssl/ossl_digest.c
+ * ext/openssl/ossl_pkey.c
+ * ext/openssl/ossl_pkey.h
+ * test/openssl/pkey/test_pkey_rsa.rb
+ Reverted premature commit. Sorry for the noise!
- * math.c (math_log): ditto.
+Sat May 14 05:02:58 2011 Eric Hodel <drbrain@segment7.net>
- * re.c (rb_reg_regcomp): ditto.
+ * lib/uri.rb: Add toplevel documentation. Patch by Vincent Batts.
+ [Ruby 1.9 - Bug #4690]
- * eval.c (break_jump): ditto.
+Sat May 14 04:19:06 2011 Martin Bosslet <Martin.Bosslet@googlemail.com>
- * eval.c (rb_thread_yield_0): remove unused function.
+ * NEWS: Describe altered behaviour for RSA and DSA public key
+ encoding. [Ruby 1.9 - Bug #4421, Bug #4422]
+ [ruby-core:35327,35328]
-Sun Sep 17 23:44:58 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Sat May 14 02:57:52 2011 Eric Hodel <drbrain@segment7.net>
- * lib/rdoc/rdoc.rb (RDoc::RDoc#document): scan only files modified
- after the previous generation.
+ * lib/ipaddr.rb (unless Socket): Document valid*? methods. Patch by
+ Sebastian Martinez. [Ruby 1.9 - Feature #4687]
-Sun Sep 17 17:42:13 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Sat May 14 02:54:04 2011 Eric Hodel <drbrain@segment7.net>
- * common.mk (install-doc): reverted.
+ * lib/rexml/functions.rb: Add some documentation for REXML::Functions.
+ Patch by Sebastian Martinez. [Ruby 1.9 - Feature #4688]
- * instruby.rb: stores file name list without destdir prefix.
+Sat May 14 02:51:42 2011 Eric Hodel <drbrain@segment7.net>
- * lib/rdoc/generators/ri_generator.rb: do not chdir twice.
+ * lib/resolv.rb: Hide private method and state-tracking constants from
+ RDoc. Patch by Mark Turner. [Ruby 1.9 - Feature #4691]
-Sun Sep 17 10:42:10 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Fri May 13 19:23:21 2011 URABE Shyouhei <shyouhei@ruby-lang.org>
- * numeric.c (fix_mul): fixed typo. fixed: [ruby-core:08885]
+ * numeric.c (flo_coerce): Add #flo_coerce documentation.
+ Patch by Sebastian Martinez.
+ https://github.com/ruby/ruby/pull/21
-Sat Sep 16 19:47:16 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+Fri May 13 18:42:22 2011 URABE Shyouhei <shyouhei@ruby-lang.org>
- * README.EXT: should mention new macros: RSTRING_PTR, RSTRING_LEN,
- RARRAY_PTR, RARRAY_LEN.
+ * README.EXT: fix typo. Patch by William Blackerby.
+ https://github.com/ruby/ruby/pull/19
* README.EXT.ja: ditto.
-Sat Sep 16 16:39:23 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * Makefile.in, common.in, instruby.rb, ext/extmk.rb, lib/mkmf.rb:
- use instruby.rb to install extensions instead of ext/extmk.rb.
-
- * instruby.rb: store installed list into the file.
-
- * ext/dbm/extconf.rb: allow multiple candidates for dbm-type.
-
- * ext/io/wait/extconf.rb: suspicious checking_for.
-
- * ext/pty/pty.c (establishShell): parent pid is not used.
-
- * ext/pty/pty.c (freeDevice): not used.
-
- * lib/mkmf.rb (checking_for): improved the messages.
-
-Sat Sep 16 11:03:49 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * array.c (ary_shared_first): should create embedded copies
- instead of sharing memory region for smaller arrays.
-
-Sat Sep 16 09:37:39 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * struct.c (inspect_struct): do not display a class name for
- anonymous struct. The member fields are sufficient.
-
-Fri Sep 15 20:22:15 2006 NARUSE, Yui <naruse@ruby-lang.org>
-
- * ext/nkf/nkf-8/nkf.c: imported nkf 2.0.8 rev.110.
- * Fix: check_bom cuts \xfe\xff\xXX\xXX of UTF-32LE.
- * Add support --ic=UTF-32.
- * Fix: can't guess UTF-16 and UTF-32.
- * Fix: can't decode beyond BMP of UTF-16LE.
-
- * ext/nkf/nkf.c (guess): Support UTF-32.
-
- * ext/nkf/lib/kconv.rb (kconv): Support UTF-32.
-
- * ext/nkf/lib/kconv.rb (to_utf32): new method.
-
-Fri Sep 15 05:23:24 2006 NARUSE, Yui <naruse@ruby-lang.org>
-
- * ext/nkf/nkf-8/nkf.c: imported nkf 2.0.8 2006-09-15.
- Add support for U+10000 - U+10FFFF
- Add support UTF-32
-
-Fri Sep 15 00:03:07 2006 Tanaka Akira <akr@fsij.org>
-
- * ext/digest/lib/digest.rb (Digest::Base.file): open a file in binary
- mode. suggested by Kazuhiro NISHIYAMA. [ruby-dev:29579]
-
-Thu Sep 14 17:21:07 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * numeric.c (fix_mul): avoid bignum multiplication as far as
- possible. a patch from Ondrej Bilka <neleai at seznam.cz>.
- [ruby-core:08825]
-
-Thu Sep 14 16:34:55 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * string.c (rb_str_intern): allow zero length symbols.
- [ruby-core:08861]
-
-Thu Sep 14 16:11:15 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * string.c (rb_str_intern): raise SecurityError only when $SAFE
- level is greater than zero. [ruby-core:08862]
-
- * parse.y (rb_interned_p): new function to check if a string is
- already interned.
-
- * string.c (str_to_id): use rb_str_intern().
-
-Thu Sep 14 14:37:45 2006 Tanaka Akira <akr@fsij.org>
-
- * ext/digest/lib/digest.rb (Digest::Base.file): new method.
- [ruby-dev:29572]
-
-Thu Sep 14 08:30:02 2006 Tanaka Akira <akr@fsij.org>
-
- * ext/digest/digest.c (rb_digest_base_inspect): new method.
- [ruby-dev:29573]
-
-Thu Sep 14 01:13:56 2006 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * gc.c (ruby_init_stack): decrease "stack level too deep" in Windows.
- [ruby-dev:29569]
-
-Thu Sep 14 01:02:25 2006 Tanaka Akira <akr@fsij.org>
-
- * ext/digest/lib/digest.rb: new file.
- [ruby-dev:28689]
-
-Wed Sep 13 18:43:05 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * README.EXT: English adjustment. [ruby-core:08851] and
- [ruby-core:08852]
-
-Wed Sep 13 18:25:18 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * misc/ruby-mode.el (ruby-parse-partial): better here-doc support.
- a patch from Marshall T. Vandegrift <llasram at gmail.com>.
- [ruby-core:08804]
-
-Wed Sep 13 16:43:36 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * string.c (rb_str_intern): prohibit interning tainted string.
-
-Wed Sep 13 01:14:02 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/optparse.rb (OptionParser#getopts): works with pre-registered
- options. [ruby-core:08826]
-
-Tue Sep 12 03:58:39 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * hash.c (rb_hash_compare_by_identity): rename Hash#identical to
- Hash#compare_by_identity.
-
-Mon Sep 11 16:52:37 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * hash.c (rb_hash_identical): a new method to make a hash to
- compare keys by their identity.
-
- * hash.c (rb_hash_identical_p): new method to tell if a hash is
- identical or not.
-
- * st.c (st_numcmp, st_numhash): export hash type functions.
-
-Mon Sep 11 11:42:21 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/rexml/source.rb (REXML::Source::encoding): should not
- convert the body twice. [ruby-core:08828]
-
- * lib/rexml/encoding.rb (REXML::Encoding::encoding):
- Encoding#encoding= to return boolean value to tell if the body
- is really converted or not.
-
- * lib/rexml/encoding.rb (REXML::Encoding::encoding): Specific
- conversion library (e.g. rexml/encodings/UTF-16.rb) to have
- higher preceding.
-
- * lib/rexml/encodings/UTF-16.rb (REXML::Encoding::decode_utf16):
- UTF-16#decode_utf16 should work strings without BOM.
-
-Mon Sep 11 07:39:44 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * string.c (sym_equal): "sym == str" should compare them as
- strings. [ruby-dev:29554]
-
-Sun Sep 10 22:59:43 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * instruby.rb (parse_args): remove splat.
-
-Sun Sep 10 20:25:30 2006 Tadayoshi Funaba <tadf@dotrb.org>
-
- * lib/date.rb, lib/date/format.rb: updated based on date2 3.9.1.
-
-Sun Sep 10 09:41:29 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * file.c: ISPRINT() needs ctype.h
-
-Sun Sep 10 09:19:47 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/optparse.rb: splat parsed arguments.
-
-Tue Jan 10 09:18:03 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * eval.c (rb_require_safe): prevent extension from loading twice.
- fixed: [ruby-dev:29523]
-
-Sat Sep 9 23:55:28 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * file.c (rb_f_test): test(0) should not have any special
- meaning. [ruby-dev:29425]
-
- * file.c (rb_f_test): properer error message.
-
-Sat Sep 9 14:08:38 2006 Eric Hodel <drbrain@segment7.net>
-
- * lib/test/unit/testcase.rb (Test::Unit::TestCase#run): Rescue
- Exception in Test::Unit::TestCase#run. [ruby-core:08783]
-
-Sat Sep 9 04:55:59 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/pstore.rb: open all in binary mode, and get rid of the quirk of
- msvcrt. fixed: [ruby-dev:29518]
-
-Sat Sep 9 04:47:45 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * Makefile.in, win32/Makefile.sub (MINIRUBY): append MINIRUBYOPT.
-
- * mkconfig.rb, ext/extmk.rb, lib/mkmf.rb, win32/mkexports.rb: suppress
- warnings with $VERBOSE.
-
- * win32/resource.rb: only file which has more than one icon is DLL.
-
-Fri Sep 8 16:53:30 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * string.c (str_alloc): should allocate a String object, even when
- asked to allocate a Symbol object. [ruby-dev:29529]
-
-Fri Sep 8 16:36:27 2006 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * ext/extmk.rb (extmake): follow Array#to_s.
-
- * lib/mkmf.rb (create_makefile): ditto.
-
- * win32/resource.rb: ditto.
-
-Fri Sep 8 10:00:12 2006 GOTOU Yuuzou <gotoyuzo@notwork.org>
-
- * lib/webrick/cookie.rb (WEBrick::Cookie.parse_set_cookies): new
- method to parse multiple cookies per Set-Cookie header.
- Thanks to Aaron Patterson <aaron_patterson at speakeasy.net>.
- [ruby-core:08802]
-
-Fri Sep 8 08:59:30 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * win32/Makefile.sub, win32/configure.bat win32/setup.mak: program
- name transform.
-
-Fri Sep 8 08:25:39 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/optparse.rb: suppress `assigning void value' warning.
-
-Fri Sep 8 01:16:34 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * array.c (Init_Array): #to_s to be an alias to #inspect.
- [ruby-dev:29520]
-
- * hash.c (Init_Hash): ditto.
-
- * lib/mkmf.rb (create_makefile): replace "print array" by
- "print *array".
-
- * mkconfig.rb: ditto.
-
-Thu Sep 7 21:02:56 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * object.c (nil_to_s): returns the empty string again.
- [ruby-dev:29520]
-
-Thu Sep 7 23:27:05 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * file.c (path_check_0, fpath_check): disable path check on cygwin.
- [ruby-talk:213074]
-
-Thu Sep 7 02:03:45 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * time.c (time_to_s): adopt new date format using digits
- e.g. "2006-09-07 02:03:45 +9000".
-
-Thu Sep 7 01:54:22 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * string.c (sym_equal): override. check equivalence.
-
-Wed Sep 6 13:25:04 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * parse.y (symbols_i): need to initialize early-created symbols.
- [ruby-dev:29496]
-
-Wed Sep 6 12:05:19 2006 NARUSE, Yui <naruse@ruby-lang.org>
-
- * ext/nkf/lib/kconv.rb (Kconv::toeuc): remove -m0 [ruby-dev:29505]
-
-Tue Sep 5 22:06:43 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/tk/tcltklib.c: use rb_ary_new3() since RARRAY_LEN() is not l-value.
-
- * ext/tk/tkutil/tkutil.c: use RARRAY_PTR() and RARRAY_LEN() and etc.
- fixed: [ruby-dev:29473]
-
-Tue Sep 5 06:47:22 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * time.c (time_to_s): variable declaration after an execution
- statement.
-
-Tue Sep 5 05:49:41 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * file.c (path_check_0): check if sticky bit is set on parent
- directories for executable path. fixed: [ruby-dev:29415]
-
-Tue Sep 5 05:03:46 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * numeric.c (fix_plus): addition in Fixnum will never overflow
- long. a patch from Ondrej Bilka <neleai at seznam.cz>.
- [ruby-core:08794]
-
- * numeric.c (fix_minus): ditto.
-
- * bignum.c (rb_big_pow): eagerly truncate resulting bignum.
- [ruby-core:08794]
-
-Mon Sep 4 23:15:34 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * time.c (time_to_s): make it conform to RFC2822 date format.
- [ruby-dev:29467]
-
-Mon Sep 4 21:43:57 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/dbm/extconf.rb: create makefile according to the result of check
- for dbm header. fixed: [ruby-dev:29445]
-
-Mon Sep 4 21:39:42 2006 Tadayoshi Funaba <tadf@dotrb.org>
-
- * lib/date.rb, lib/date/format.rb: updated based on date2 3.9.
-
-Mon Sep 4 21:14:20 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * time.c (time_strftime): include nul character. fixed: [ruby-dev:29422]
-
-Mon Sep 4 16:39:11 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/cgi.rb (CGI::out): specify -x option for nkf.
-
- * lib/cgi.rb (CGI::out): should not convert utf-8 implicitly using
- NKF. it is too Japanese centric.
-
-Mon Sep 4 14:23:10 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * ext/dbm/extconf.rb (db_check): remove debug print.
-
-Mon Sep 4 06:46:08 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * parse.y (rb_id2sym): intern if id is attrset_id.
- [ruby-dev:29420] [ruby-dev:29447]
-
-Mon Sep 4 01:25:16 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * eval.c (rb_f_local_variables): list symbols.
-
- * struct.c (rb_struct_s_members_m): ditto.
-
- * variable.c (ivar_i): ditto.
-
- * variable.c (gvar_i): ditto.
-
- * variable.c (cv_i): ditto.
-
-Sun Sep 3 20:47:02 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ruby.h (SYMBOL_P): Qnil and Qfalse are not Symbol.
-
-Sun Sep 3 15:32:44 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/mkmf.rb: get rid of nil.to_s.
-
-Sun Sep 3 06:24:38 2006 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/socket.c (ruby_connect): sockerrlen should be socklen_t.
-
-Sun Sep 3 04:40:42 2006 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/extconf.rb: check arpa/inet.h for ntohs.
-
- * ext/socket/socket.c: include arpa/inet.h if available.
-
-Sat Sep 2 23:59:58 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * string.c (Init_String): undef Symbol#new.
-
- * struct.c (rb_struct_s_def): wrong symbol detection.
-
-Sat Sep 2 23:59:37 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * string.c (str_to_id): a bug caused by premature optimization.
-
-Sat Sep 2 23:53:28 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * object.c (Init_Object): move symbol related code to string.c
-
- * string.c (Init_String): Symbol as subclass of String.
-
- * parse.y (rb_intern2): handle symbol as strings.
-
- * string.c (str_new): substring of symbols are mere strings, not
- symbols.
-
-Sat Sep 2 23:37:29 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * ruby.h (struct RArray): embed small arrays.
- (RARRAY_LEN): defined for accessing array members.
- (RARRAY_PTR): ditto.
-
- * array.c: use RARRAY_LEN and RARRAY_PTR.
-
-Sat Sep 2 13:23:01 2006 Tanaka Akira <akr@fsij.org>
-
- * common.mk (ia64.o): use the compiler driver to assemble ia64.s
- to use appropriate ABI.
-
-Sat Sep 2 12:06:35 2006 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
-
- * lib/soap/generator.rb (SOAP::SOAPGenerator#encode_tag): do not dump
- XML attribute which value is nil. value "" and nil both were dumped
- as 'attr="value"'. [ruby-dev:29395]
-
-Sat Sep 2 12:00:32 2006 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
-
- * lib/csv.rb (CSV::IOReader#initialize): use String#[](pos, len)
- instead of String#[](idx) to check utf BOM. follows String#[](idx)
- behavior change of 1.9.
-
-Sat Sep 2 11:47:58 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * eval.c (rb_eval): should handle when in else clause. a patch
- from Eric Hodel <drbrain at segment7.net>. [ruby-core:08662]
-
- * parse.y (primary): wrap with NODE_CASE. [ruby-core:08663]
-
-Fri Sep 1 22:07:04 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * ruby.h (RSTRING_EMBED_LEN_MASK): uses 5 bits to support 64bit
- environment. [ruby-dev:29369]
-
-Fri Sep 1 22:02:08 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * string.c (rb_str_resize): should copy embedded string to
- malloc'ed buffer. a patch from <nobu at ruby-lang.org> in
- [ruby-dev:29369]. fixed: [ruby-dev:29368]
-
- * string.c (rb_str_ord): use %ld specifier since STRING_LEN() is a
- long. [ruby-dev:29369]
-
-Fri Sep 1 21:41:12 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * ext/socket/socket.c (socks_init): typo fixed. a patch from Sven
- Klemm <sven at c3d2.de>. [ruby-core:08770]
-
-Fri Sep 1 14:22:42 2006 WATANABE Hirofumi <eban@ruby-lang.org>
-
- * array.c (rb_ary_shuffle): RDoc fixed.
-
-Fri Sep 1 13:52:57 2006 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/lib/tk/font.rb: TkFont#current_configinfo() doesn't work
- on Tcl/Tk8.x.
-
-Fri Sep 1 09:32:55 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/irb/ruby-lex.rb (RubyLex::getc): should not push nil into
- reading buffer (@readed). reported in
- <http://jarp.does.notwork.org/diary/200608c.html#200608311>.
-
-Thu Aug 31 23:59:03 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/mkmf.rb (configuration): follow nil.to_s.
-
-Thu Aug 31 20:50:46 2006 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * lib/mkmf.rb (create_makefile): follow nil.to_s.
-
- * win32/resource.rb: ditto.
-
-Thu Aug 31 20:21:47 2006 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * eval.c (search_required): use RSTRING_PTR and RSTRING_STR.
-
- * file.c (test_identical, rb_file_s_truncate): ditto.
-
- * io.c (pipe_open, rb_io_reopen): ditto.
-
- * object.c (nil_plus): ditto.
-
- * process.c (proc_spawn_n, rb_spawn): ditto.
-
- * util.c (ruby_add_suffix): ditto.
-
- * ext/Win32API/Win32API.c (Win32API_initialize): ditto.
-
- * ext/dl/cptr.c (rb_dlptr_s_to_ptr): ditto.
-
- * ext/openssl/ossl_x509ext.c (ossl_x509extfactory_create_ext): ditto.
-
- * ext/tk/stubs.c, ext/tk/tcltklib.c, ext/tk/tkutil/tkutil.c: ditto.
-
- * ext/win32ole/win32ole.c (ole_val2olevariantdata): ditto.
-
-Thu Aug 31 18:23:00 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * ruby.h (struct RString): embed small strings.
- (RSTRING_LEN): defined for accessing string members.
- (RSTRING_PTR): ditto.
-
- * string.c: use RSTRING_LEN and RSTRING_PTR.
-
-Thu Aug 31 17:16:19 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * array.c (rb_ary_shuffle_bang): new method.
-
- * array.c (rb_ary_shuffle): ditto.
-
- * random.c (genrand_real): ditto.
-
- * random.c (genrand_int32): export the function.
-
- * random.c (Init_Random): initialize random seed at the
- beginning.
-
-Thu Aug 31 13:12:06 2006 why the lucky stiff <why@ruby-lang.org>
-
- * eval.c (ruby_init): rename top_cref to ruby_top_cref and export,
- along with ruby_cref, for use by the sandbox. [ruby-core:08762]
-
- * node.h: ditto.
-
-Wed Aug 30 12:01:57 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * numeric.c (flo_hash): improve collision.
-
- * string.c (rb_memhash): new generic function to calculate hash value
- for memory chunk.
-
-Tue Aug 29 19:10:10 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * hash.c (rb_hash_s_create): fixed memory leak, based on the patch
- by Kent Sibilev <ksruby at gmail.com>. fixed: [ruby-talk:211233]
-
-Mon Aug 28 11:29:46 2006 Eric Hodel <drbrain@segment7.net>
-
- * eval.c, parse.y: Revert.
- * ext/.document: Add digest.c.
- * ext/digest/digest.c: Make RDoc show up.
- * ext/io/wait.c: Fix call-seq in RDoc.
-
-Mon Aug 28 08:03:20 2006 Eric Hodel <drbrain@segment7.net>
-
- * ext/.document: Add C files with RDoc.
- * ext/digest/digest.c: Convert to RDoc.
- * ext/io/wait.c: ditto.
- * lib/rdoc/parsers/parse_rb.rb: Fix typo. Submitted by
- <calamitas at gmail.com>. [ruby-core:08724]
-
-Mon Aug 28 07:21:47 2006 Eric Hodel <drbrain@segment7.net>
-
- * file.c (File#size?): Fix documentation submitted by Rick Ohnemus.
- ruby-Bugs-5529. [ruby-core:08725]
-
-Sun Aug 27 21:41:23 2006 K.Kosako <sndgk393 AT ybb.ne.jp>
-
- * oniguruma.h: Version 4.4.0
-
- * regint.h: ditto.
-
- * regparse.h: ditto.
-
- * regexec.c: ditto.
-
- * regcomp.c ditto.
-
- * regparse.c: ditto.
-
-Sat Aug 26 08:03:03 2006 Tadayoshi Funaba <tadf@dotrb.org>
-
- * lib/date.rb, lib/date/format.rb: updated based on date2 3.8.2.
-
-Fri Aug 25 21:15:22 2006 K.Kosako <sndgk393 AT ybb.ne.jp>
-
- * common.mk: add regint.h and oniguruma.h to dependence.
-
- * ext/strscan/depend: ditto.
-
-Fri Aug 25 20:35:57 2006 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * test/wsdl/document/echo.rb: removed.
-
- * test/wsdl/document/test_rpc.rb: remove echo.rb after test.
- [ruby-dev:29337]
-
-Fri Aug 25 17:02:06 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * gc.c (gc_sweep): typo fixed.
-
-Fri Aug 25 16:05:50 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * object.c (sym_call): check if the receiver is given.
-
-Fri Aug 25 01:10:11 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * object.c (rb_Integer): Integer(nil) should raise TypeError.
- [ruby-talk:210205]
-
- * object.c (nil_to_s): no longer returns empty string but "nil".
- [ruby-talk:210205]
-
- * lib/mkmf.rb: avoid COMMON_HEADERS being nil.
-
-Wed Aug 23 00:25:14 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/rexml/source.rb (REXML::IOSource#initialize): encoding have to
- be set with the accessor. fixed: [ruby-list:42737]
-
-Tue Aug 22 19:21:00 2006 Minero Aoki <aamine@loveruby.net>
-
- * lib/net/smtp.rb: parameter `to_addrs' might be an Array,
- .flatten is required. [ruby-dev:29316]
-
-Tue Aug 22 18:47:51 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/rdoc/parsers/parse_c.rb (RDoc::C_Parser::handle_method):
- rdoc documents C module methods as instance methods. a patch in
- [ruby-core:08536].
-
-Tue Aug 22 12:35:57 2006 NARUSE, Yui <naruse@ruby-lang.org>
-
- * ext/nkf/lib/kconv.rb (Kconv::RegexpEucjp): fix regexp for
- euc-jp [ruby-dev:29344]
-
-Sun Aug 20 11:46:52 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * numeric.c (num_step): also return an enumerator object if no block
- is given.
-
-Sat Aug 19 16:47:51 2006 Masaki Suketa <masaki.suketa@nifty.ne.jp>
-
- * ext/win32ole/win32ole.c (hash2named_arg): accept hash argument
- of symbol key.
-
- * test/win32ole/test_win32ole.rb
- ditto.
-
-Sat Aug 19 11:28:08 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * file.c (rb_file_s_rename): use errno if set properly.
- fixed: [ruby-dev:29293]
-
-Fri Aug 18 01:05:57 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/cgi.rb (CGI::out): specify -m0 to disable MIME decode. a
- patch from Fujioka <fuj at rabbix.jp>. [ruby-dev:29284]
-
-Thu Aug 17 19:15:16 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * file.c (rb_stat_[rRwWxX]): check for super user.
- fixed: [ruby-core:08616]
-
-Thu Aug 17 14:47:06 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/mkmf.rb: added rdoc by Daniel Berger. [ruby-core:08177]
-
-Wed Aug 16 17:46:59 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * marshal.c (r_byte): IO#getc returns one byte string now.
- fixed: [ruby-dev:29255]
-
-Wed Aug 16 17:22:44 2006 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * common.mk (pre-install-local): remove unnecessary code.
- [ruby-dev:29249]
-
-Wed Aug 16 11:45:36 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * process.c (proc_setuid, proc_setgid, proc_seteuid, proc_setegid):
- get rid of bogus implementations on Mac OS X.
-
-Wed Aug 16 11:09:26 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ruby.c (set_arg0): fill argv other than the first with an empty
- string instead of NULL.
-
-Tue Aug 15 11:21:08 2006 Minero Aoki <aamine@loveruby.net>
-
- * lib/net/smtp.rb: support SMTP/SSL. Thanks Kazuhiro NISHIYAMA.
-
- * lib/net/smtp.rb: new method SMTP.use_ssl?
-
- * lib/net/smtp.rb: new method SMTP.enable_ssl.
-
- * lib/net/smtp.rb: new method SMTP.disable_ssl.
-
- * lib/net/smtp.rb: new method SMTP.default_ssl_port.
-
- * lib/net/smtp.rb: new method SMTP.default_tls_port.
-
- * lib/net/smtp.rb: now SMTP#enable_tls accepts a SSLContext
- object, instead of a verity and cert. [FEATURE CHANGE]
-
- * lib/net/smtp.rb: new method SMTP.ssl_context.
-
- * lib/net/smtp.rb: new method SMTP.default_ssl_context.
-
- * lib/net/smtp.rb: export SMTP.authenticate.
-
- * lib/net/smtp.rb: export SMTP.auth_plain.
-
- * lib/net/smtp.rb: export SMTP.auth_login.
-
- * lib/net/smtp.rb: export SMTP.auth_cram_md5.
-
- * lib/net/smtp.rb: export SMTP.starttls.
-
- * lib/net/smtp.rb: export SMTP.helo.
-
- * lib/net/smtp.rb: export SMTP.ehlo.
-
- * lib/net/smtp.rb: export SMTP.mailfrom.
-
- * lib/net/smtp.rb: export SMTP.rcptto.
-
- * lib/net/smtp.rb: export SMTP.rcptto_list.
-
- * lib/net/smtp.rb: export SMTP.data.
-
- * lib/net/smtp.rb: export SMTP.quit.
-
-Sat Aug 12 22:33:06 2006 Eric Hodel <drbrain@segment7.net>
-
- * string.c (String#split): Describe grouping behavior. Patch by Jan
- Svitok <jan.svitok at gmail.com>. [ruby-core:08603]
-
-Sun Aug 13 12:08:02 2006 Tanaka Akira <akr@fsij.org>
-
- * ext/socket/socket.c: ANSIfied. [ruby-core:08601]
-
-Sat Aug 12 15:55:32 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * configure.in, bcc32/Makefile.sub, win32/Makefile.sub, win32/dir.h,
- win32/win32.c, win32/win32.h: large file support for win32.
-
-Fri Aug 11 15:39:25 2006 Eric Hodel <drbrain@segment7.net>
-
- * lib/rdoc/parsers/parse_c.rb (RDoc::C_Parser#find_body): Make RDoc
- ignore C function prototypes. Patch by Tilman Sauerbeck
- <tilman at code-monkey.de>. [ruby-core:8574]
- * lib/yaml/tag.rb: Replace nodoc with stopdoc so Module methods get
- documented.
-
-Wed Aug 9 16:53:28 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/net/smtp.rb (Net::SMTP::auth_cram_md5): use ord to retrieve
- bytes from strings. a patch from WATANABE Tetsuya
- <Tetsuya.WATANABE at nifty.com>. [ruby-dev:29240]
-
-Tue Aug 8 23:49:06 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/irb/extend-command.rb (IRB::ExtendCommandBundle): pacify
- RDoc. a patch from Eric Hodel <drbrain at segment7.net>.
- [ruby-core:08522]
-
-Tue Aug 8 19:26:10 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/resolv.rb (Resolv::DNS::Message::MessageDecoder::get_string):
- affected by str[0] returns 1 char string. [ruby-dev:29223]
-
- * lib/resolv.rb (Resolv::DNS::Message::MessageDecoder::get_labels):
- ditto.
-
-Tue Aug 8 12:28:43 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * parse.y (arg): allow newlines before ternary colon. [ruby-dev:29189]
-
-Mon Aug 7 17:56:59 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * ext/bigdecimal/bigdecimal.c, ext/digest/rmd160/rmd160ossl.c,
- ext/digest/sha1/sha1ossl.c, ext/readline/readline.c: move
- inclusion of config.h to pacify AIX. a patch from Yutaka
- Kanemoto <kinpoco at gmail.com>. [ruby-dev:29197]
-
-Mon Aug 7 15:55:08 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * ext/syck/syck.c (syck_move_tokens): should avoid negative
- memmove. [ruby-list:42625]
-
-Mon Aug 7 14:37:48 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * configure.in, common.mk: AIX link issue. a patch from Yutaka
- Kanemoto <kinpoco at gmail.com>. [ruby-dev:29190]
-
- * ext/socket/socket.c: AIX socket support. [ruby-dev:29190]
-
-Mon Aug 7 12:05:28 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * dln.c, eval.c, gc.c, ruby.h: shut up AIX alloca warning.
- a patch from Yutaka Kanemoto <kinpoco at gmail.com>.
- [ruby-dev:29191]
-
-Sun Aug 6 20:34:24 2006 Tadayoshi Funaba <tadf@dotrb.org>
-
- * lib/date/format.rb (str[fp]time): %[EO]U didn't denote %U.
-
-Sun Aug 6 17:12:12 2006 Tanaka Akira <akr@fsij.org>
-
- * io.c (io_reopen): STDERR.reopen(open("/dev/tty", "w")) should not
- clear FMODE_PREP in STDERR.
-
-Sat Aug 5 22:53:41 2006 K.Kosako <sndgk393 AT ybb.ne.jp>
-
- * oniguruma.h: Version 4.2.2
-
- * regint.h: ditto.
-
- * regparse.h: ditto.
-
- * regexec.c: ditto.
-
- * regcomp.c ditto.
-
- * regerror.c: ditto.
-
- * regparse.c: ditto.
-
-Sat Aug 5 17:07:43 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * parse.y (top_local_setup): local_vars[-1] should point
- ruby_scope itself to protect local_tbl from garbage collection.
- [ruby-dev:29049]
-
-Sat Aug 5 13:49:43 2006 Tadayoshi Funaba <tadf@dotrb.org>
-
- * lib/date/format.rb (str[fp]time): "%\n" means "\n".
-
-Fri Aug 4 12:13:22 2006 Eric Hodel <drbrain@segment7.net>
-
- * lib: Clean up files for RDoc.
- * lib/.document: Include most of the standard library in RDoc
- generation.
- * lib/rdoc/ri/ri_formatter.rb: Don't unescape HTML in HtmlFormatter.
- Submitted by <ksruby at gmail.com>. [ruby-core:08392].
- * lib/drb/ssl.rb: Close socket on SSLError [ruby-core:7197]
-
-Fri Aug 4 18:59:49 2006 Keiju Ishitsuka <keiju@ruby-lang.org>
-
- * lib/irb/{init.rb,ruby-lex.rb,slex.rb}: can't input '\c' for
- [ruby-core: 7122]. and support for ruby1.8.X
-
-Fri Aug 4 14:02:14 2006 James Edward Gray II <james@grayproductions.net>
-
- * lib/date/format.rb (__strptime, strftime): allow multi-line patterns
- in Date#strftime the same as Time#strftime accepts.
- fixed: [ruby-core:08466]
-
-Fri Aug 4 13:56:51 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * pack.c (pack_pack): check argument overrun for 'P'. based on a
- patch by rucila <rucila at yahoo.cojp>. fixed: [ruby-dev:29182]
-
-Fri Aug 4 02:42:29 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * sprintf.c (rb_str_format): a bug in %c type check.
-
-Fri Aug 4 01:28:19 2006 Tanaka Akira <akr@fsij.org>
-
- * io.c (io_reopen): STDERR.reopen(File.open("/dev/null", "w")) should
- not fclose stderr.
-
-Thu Aug 3 15:16:44 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * range.c (range_include): should always call Enumerable#include?
- (not #===) for non numeric end points. [ruby-core:08477]
- [ruby-core:08496]
-
-Mon Jul 31 16:51:40 2006 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * win32/win32.c (exit_handler): new function; release winsock and
- environment work area.
-
- * win32/win32.c (NTInitialize): setup exit_handler.
-
- * win32/win32.c (StartSockets): use exit_handler.
-
- * win32/win32.c (rb_w32_getenv): use GetEnvironmentStrings() instead
- of GetEnvironmentVariable(), because the latter cannot distinguish
- whether a null environment variable exists or not.
- fixed: [ruby-talk:205123]
-
-Mon Jul 31 16:15:13 2006 Tanaka Akira <akr@fsij.org>
-
- * test/ruby/test_process.rb (TestProcess#test_rlimit_nofile):
- setrlimit may fail with EINVAL.
- reported by MIYAMUKO Katsuyuki. [ruby-dev:29174]
-
-Mon Jul 31 09:22:12 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * ruby.h: use ifdef (or defined) for macro constants that may or
- may not be defined to shut up gcc's -Wundef warnings.
- [ruby-core:08447]
-
-Mon Jul 31 13:38:13 2006 GOTOU Yuuzou <gotoyuzo@notwork.org>
-
- * lib/webrick/httprequest.rb (WEBrick::HTTPReuqest#parse_uri): improve
- for the value of IPv6 address in the Host: header field.
-
-Sun Jul 30 23:26:12 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * eval.c (rb_call0): trace call/return of method defined from block.
- fixed: [ruby-core:08329]
-
- * eval.c (rb_trap_eval): make the current thread runnable to deal with
- exceptions which occurred within the trap. fixed: [ruby-dev:27729]
-
- * lib/cgi/session.rb, lib/cgi/session/pstore.rb: suppress warnings.
- fixed: [ruby-talk:204896]
-
-Sat Jul 29 06:12:06 2006 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/lib/multi-tk.rb: freeze ip_name for security reason.
-
-Sat Jul 29 01:23:52 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/logger.rb: improves the amount of documentation that Rdoc
- picks up when processing logger.rb by moving the require
- statement back before the comment block. a patch from Hugh
- Sasse <hgs at dmu.ac.uk>. [ruby-core:08422]
-
-Fri Jul 28 17:18:03 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/curses/curses.c (NUM2CH, CH2FIX): use single char strings.
-
-Fri Jul 28 14:09:14 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * eval.c (rb_call): fixed typo in cache look-up. [ruby-dev:29167]
-
-Fri Jul 28 10:41:35 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * eval.c (rb_call): a bug in method cache look-up.
- http://www.rubyist.net/~matz/20060720.html#c04
-
-Fri Jul 28 10:19:28 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * sprintf.c (rb_f_sprintf): documentation update patch from Jacob
- Fugal <lukfugl at gmail.com>. [ruby-core:08418]
-
-Fri Jul 28 09:41:45 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * time.c (time_to_s): fixed typo. [ruby-dev:29162]
-
-Fri Jul 28 00:26:47 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * math.c (domain_check): ANSI style function arguments
-
- * math.c (math_log): too few argument to domain_check().
-
-Thu Jul 27 21:19:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * math.c (domain_check): a new function to check domain error
- explicitly for systems that return NaN like FreeBSD.
- [ruby-core:07019]
-
- * math.c (math_acos, math_asin, math_acosh, math_atanh, math_log,
- math_log10, math_sqrt): use domain_check().
-
- * math.c (math_sqrt): fix documentation flaw.
-
-Thu Jul 27 22:21:52 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * time.c (time_to_s): fixed format mismatch.
-
-Thu Jul 27 18:12:12 2006 WATANABE Hirofumi <eban@ruby-lang.org>
-
- * time.c: need to declare time_utc_offset.
-
-Thu Jul 27 17:01:01 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * io.c (io_close): always calls "close" method of the receiver.
- [ruby-core:6911] [ruby-core:8112]
-
-Thu Jul 27 16:41:15 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * ext/openssl/ossl.h: move <ruby.h> inclusion point to shut up
- Solaris compiler. [ruby-core:08114]
-
- * time.c (time_to_s): use +0900 style timezone string for local time.
- [ruby-dev:29143]
-
-Wed Jul 26 22:20:59 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * configure.in: add support for as and ASFLAGS. [ruby-dev:29138]
-
-Wed Jul 26 21:59:33 2006 Minero Aoki <aamine@loveruby.net>
-
- * lib/net/http.rb (Net::HTTP#post, request_post, request): should
- set Content-Type: x-www-form-urlencoded by default.
-
- * lib/net/http.rb (Net::HTTPHeader#content_type): should return
- nil when there's no Content-Type.
-
- * lib/net/http.rb (Net::HTTPHeader#sub_type): should return nil
- when there's no sub Content-Type (e.g. "Content-Type: text").
-
- * lib/net/http.rb (Net::HTTPHeader#type_params): wrongly failed
- when there's no Content-Type.
-
-Wed Jul 26 18:38:13 2006 Minero Aoki <aamine@loveruby.net>
-
- * ext/strscan/strscan.c (strscan_do_scan): always return nil if
- p->curr exceeds string size.
-
-Wed Jul 26 18:33:31 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * eval.c (Init_eval): rename #invoke_method and
- #invoke_functional_method to __send and __send! respectively.
-
- * eval.c (remove_method): prohibit removing __send and __send!.
-
- * eval.c (rb_undef): prohibit undef'ing __send and __send!.
-
- * eval.c (rb_eval): prohibit redefining __send and __send!.
-
- * lib/delegate.rb (Delegator): preserve __send.
-
-Wed Jul 26 18:14:19 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/pty/pty.c (getDevice): retry once after GC on failure.
- [ruby-core:08282]
-
-Wed Jul 26 17:43:20 2006 Minero Aoki <aamine@loveruby.net>
-
- * ext/strscan/strscan.c (strscan_do_scan):
- StringScanner.new("").scan(//) should return "". [ruby-Bugs:4361]
-
-Wed Jul 26 17:28:16 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * sprintf.c (rb_str_format): prepend ".." to %u for negative bignum,
- but not "-". fixed: [ruby-core:08167]
-
-Wed Jul 26 16:39:07 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * string.c (rb_str_scan): add string modification check.
- [ruby-core:7216]
-
-Wed Jul 26 16:06:03 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/cgi.rb (CGI::QueryExtension::read_multipart): check
- multipart boundary end. a patch from Fujioka <fuj at rabbix.jp>
- [ruby-dev:28470]
-
-Wed Jul 26 01:02:59 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * configure.in: suppress warnings by automake 1.8 or later.
-
-Tue Jul 25 14:46:14 2006 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * lib/mkmf.rb (configuration): typo.
-
-Tue Jul 25 13:14:32 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * process.c (rb_proc_times): rename hz to hertz to avoid name
- crash on AIX. [ruby-dev:29126]
-
-Mon Jul 24 22:03:40 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * eval.c (backtrace): skip frames successive on node and method name.
-
-Mon Jul 24 15:51:52 2006 Tanaka Akira <akr@fsij.org>
-
- * ext/readline/readline.c (readline_readline): rl_deprep_term_function
- may be NULL with libedit. reported by Ryan Davis. [ruby-dev:29070]
-
-Mon Jul 24 15:19:55 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * eval.c (rb_call0): revert last change. [ruby-dev:29112]
- [ruby-core:08374]
-
-Sun Jul 23 22:59:49 2006 Tanaka Akira <akr@fsij.org>
-
- * test/socket/test_unix.rb: disabled on cygwin.
- reported by Kouhei Yanagita. [ruby-dev:29080]
-
-Fri Jul 21 23:57:26 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ruby.c (proc_options): script is never used while recursing.
-
-Fri Jul 21 21:21:08 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * eval.c (rb_call0): include funcalled methods in caller list.
- fixed: [ruby-core:08290]
-
-Fri Jul 21 17:52:24 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * object.c (rb_cstr_to_dbl): "9_e8" should consider "_e8" as
- trailing garbage so that it should return 9.0. [ruby-dev:29088]
-
-Fri Jul 21 12:11:00 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/extmk.rb, lib/mkmf.rb (with_destdir): remove drive letter before
- prepending destdir on DOSISH.
-
-Fri Jul 21 04:17:22 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * eval.c (rb_call): try local method look-up first for fcall, then
- normal method look-up. [ruby-talk:202564]
-
- * eval.c (rb_get_method_body): save local method cache separately.
-
- * eval.c (search_method): export info whether method is local or
- not.
-
-Thu Jul 20 20:27:07 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * object.c (rb_mod_attr): make Module#attr to be an alias to
- attr_reader. [RCR#331]
-
-Thu Jul 20 15:07:14 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * ruby.h: export classes/modules to implement sandbox.
- [ruby-core:08283]
-
-Wed Jul 19 19:40:00 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * eval.c (rb_yield_0): should check args_args before lambda
- argument check. [ruby-dev:29029]
-
-Tue Jul 18 23:53:59 2006 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * process.c (rb_f_system): shouldn't block SIGCHLD if it's not
- exist.
-
-Tue Jul 18 22:10:13 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * process.c (rb_f_system): block SIGCHLD during the process
- execution, like glibc system(3) does. [ruby-talk:202361]
-
-Tue Jul 18 23:10:43 2006 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * win32/win32.c (open_ifs_socket): should not use plain malloc.
-
- * win32/win32.c (rb_w32_opendir): should not use plain realloc.
-
-Tue Jul 18 18:05:49 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * test/ruby/test_float.rb (TestFloat::test_strtod): update test to
- conform strtod change.
-
-Tue Jul 18 16:52:29 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * eval.c (yield_under_i): argument should be passed in avalue
- form. [ruby-dev:29044]
-
-Tue Jul 18 15:49:42 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * pack.c (pack_unpack): propagate association array to copied
- string. [ruby-core:08223]
-
- * pack.c (pack_unpack): return referenced string itself if it has
- same length as specified. a patch from <nobu at ruby-lang.org>
- in [ruby-core:08225].
-
- * pack.c (pack_pack): taint 'p' packed strings.
-
-Tue Jul 18 15:19:07 2006 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * intern.h (st_foreach_safe): fix prototype.
-
- * node.h (NODE_LMASK): bigger than long on LLP64.
-
- * missing/vsnprintf.c (BSD__uqtoa): new function to support LLP64.
- all changes are derived from [ruby-dev:29045]
-
-Tue Jul 18 14:03:02 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/webrick/httpserver.rb (WEBrick::HTTPServer::unmount): remove
- inpect argument from sprintf. [ruby-dev:29039]
-
-Tue Jul 18 10:53:37 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * object.c (rb_cstr_to_dbl): limit out-of-range message.
-
- * util.c (ruby_strtod): return end pointer even if ERANGE occurred.
- fixed: [ruby-dev:29041]
-
-Mon Jul 18 00:43:05 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * util.c (ruby_strtod): stop at dot not followed by digits.
- fixed: [ruby-dev:29036]
-
-Tue Jul 18 00:01:27 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/extmk.rb: remove LIBRUBY_SO if static linked extensions exist.
-
-Mon Jul 17 23:30:46 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * configure.in (rb_cv_msvcrt): defaulted to msvcrt. Workaround for a
- bug of cygwin 1.5.20.
-
-Mon Jul 17 22:55:31 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * ext/io/wait/wait.c (io_ready_p): protoize.
-
-Mon Jul 17 13:43:05 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * pack.c (define_swapx): should not use plain malloc.
-
- * ext/curses/curses.c (curses_getmouse): ditto.
-
-Mon Jul 17 12:58:41 2006 WATANABE Hirofumi <eban@ruby-lang.org>
-
- * configure.in: should use ac_cv_lib_dl_dlopen=no on MinGW.
-
-Mon Jul 17 11:47:35 2006 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * st.c: still need to include config.h on some platforms.
-
-Sat Jul 15 01:09:22 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * st.c (malloc): use xmalloc/xcalloc instead of plain
- malloc/calloc, to detect memory allocation failure. see
- <http://www.nongnu.org/failmalloc/>.
-
-Fri Jul 14 13:08:13 2006 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/lib/tk.rb: add methods for new features of latest Tcl/Tk8.5.
-
- * ext/tk/lib/tk/namespace.rb: ditto.
-
-Fri Jul 14 02:30:12 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/monitor.rb: document patch from Hugh Sasse <hgs at dmu.ac.uk>.
- [ruby-core:08205]
-
-Fri Jul 14 00:10:15 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * array.c (rb_ary_pop): may cause realloc oscillation. a patch
- from MORITA Naoyuki <mlgetter at kidou.sakura.ne.jp>.
- [ruby-dev:29028]
-
-Thu Jul 13 22:23:56 2006 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/lib/tk/composite.rb: improve handling of the classname on the
- option database for the widget class which includes TkComposite.
-
-Thu Jul 13 00:40:57 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * ruby.h (FIX2LONG): returns integer of size of VALUE.
- [ruby-dev:29024]
-
- * ruby.h (FIX2ULONG): ditto.
-
-Wed Jul 12 20:05:23 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * parse.y (f_args): allow post mandatory arguments after optional
- arguments. [ruby-dev:29014]
-
- * parse.y (new_args_gen): allow post_args without rest_args.
-
- * eval.c (formal_assign): ditto.
-
- * parse.y (new_args_gen): check post argument duplication.
-
-Tue Jul 11 20:58:18 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * ruby.h: export rb_cMethod. [ruby-talk:201259]
-
-Tue Jul 11 19:13:33 2006 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/lib/multi-tk.rb: remove restriction on the class of
- pseudo-toplevel.
-
-Tue Jul 11 18:00:57 2006 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/lib/multi-tk.rb: security fix.
-
-Tue Jul 11 17:28:08 2006 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * string.c (rb_str_dump): need to extend len for \b.
-
-Tue Jul 11 15:29:15 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * bignum.c (rb_int2big): use SIGNED_VALUE. [ruby-dev:29019]
-
- * bignum.c (rb_int2inum, rb_uint2inum): use VALUE sized integer.
-
- * bignum.c (rb_big2long, rb_big2ulong): ditto.
-
- * numeric.c (rb_num2long, rb_num2ulong): ditto.
-
- * numeric.c (check_int, check_uint): ditto.
-
- * bignum.c (rb_quad_pack): typo fixed.
-
-Tue Jul 11 13:40:52 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * bignum.c (bignorm): sizeof(long) may be smaller than
- sizeof(VALUE). [ruby-dev:29013]
-
- * ruby.h (FIXNUM_MAX): fixnum may be bigger than long.
-
- * ruby.h (SIGNED_VALUE): signed integer of size of VALUE.
-
-Mon Jul 10 23:37:14 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/soap/rpc/proxy.rb (Proxy::Operation::response_doc): remove
- splat star from return statements.
-
- * lib/soap/rpc/proxy.rb (Proxy::Operation::response_obj): retrieve
- the first value from the result array if response has only one
- value.
-
-Mon Jul 10 22:00:00 2006 Shigeo Kobayashi <shigek@ruby-lang.org>
-
- * ext/bigdecimal/bigdecimal.c: Allows '_' to appear within
- digits. [ruby-dev:28872]
-
- * ext/bigdecimal/lib/bigdecimal/util.rb: Bug in to_r reported by
- [ruby-list:42533] fixed.
-
-Mon Jul 10 19:22:19 2006 Tanaka Akira <akr@fsij.org>
-
- * gc.c (gc_sweep): expand heap earlier.
- reported by MORITA Naoyuki. [ruby-dev:28960]
-
-Mon Jul 10 18:59:34 2006 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/lib/tk/font.rb: sorry. mistaken to patch.
-
-Mon Jul 10 18:46:52 2006 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/tcltklib.c: make SEGV risk lower at exit.
-
- * ext/tk/lib/tk.rb: ditto.
-
- * ext/tk/lib/multi-tk.rb: fail to call function-style methods on slave
- interpreters. The strategy (MultiTkIp_PseudoToplevel_Evaluable) to
- fix the problem is a little tricky. You may have to take care of
- conflicting with it.
-
- * ext/tk/lib/tk.rb: a little change for the pseudo-toplevel strategy.
-
- * ext/tk/lib/tk/font.rb: ditto.
-
- * ext/tk/lib/tk/msgcat.rb: ditto.
-
- * ext/tk/lib/tkextlib/itk/incr_tk.rb: ditto.
-
- * ext/tk/sample/demos-en/widget: fail to call function-style methods
- on sample scripts. To fix it, a strategy which similar to the way
- on MultiTiIp is used. Please take care when re-write and re-run a
- demo script on the Widget-Demo code viewer.
-
- * ext/tk/sample/demos-jp/widget: ditto.
-
-Mon Jul 10 17:32:38 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * sample/test.rb: update test suites.
-
- * test/ruby/test_assignment.rb (TestAssignment::test_yield): ditto.
-
- * test/ruby/test_iterator.rb (TestIterator::test_itertest): ditto.
-
-Mon Jul 10 14:43:47 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * eval.c (rb_call): remove erroneously restored prot_tag->blkid
- initialization. [ruby-dev:28997] [ruby-dev:29000]
-
-Mon Jul 10 13:58:08 2006 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * signal.c (install_nativethread_sighandler): commented out.
-
-Mon Jul 10 09:29:12 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * eval.c (rb_clear_cache_for_remove): clear entries for included
- module. fixed: [ruby-core:08180]
-
-Mon Jul 10 02:22:58 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * eval.c (proc_invoke): should not overwrite block information in
- current frame. [ruby-dev:28957]
-
- * eval.c (rb_yield_0): retrieve proper block object from the frame
- record.
-
- * eval.c (proc_alloc): return preserved block object if it's
- available.
-
-Mon Jul 10 01:48:38 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * st.h (st_data_t): use pointer sized integer for st_data_t.
- [ruby-dev:28988]
-
-Sun Jul 9 18:06:47 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/mkmf.rb (try_constant): fix for value 1 at cross compiling.
-
- * lib/mkmf.rb (create_makefile): prevent substitution of macro
- definition. fixed: http://www.yotabanana.com/lab/20060624.html#p02
-
-Sun Jul 9 07:58:48 2006 Ryan Davis <ryand@zenspider.com>
-
- * lib/rdoc/parsers/parse_f95.rb: massive overhaul from Yasuhiro
- Morikawa including new file suffixes, function support, public
- variables and constants, derived-types, defined operators and
- assignments, namelists, and subroutine and function
- arguments. Truly massive.
-
- * lib/rdoc/diagram.rb: diagrams are now cached.
-
- * lib/irb/completion.rb: fixed a crasher when completing against
- an unnamed class/module.
-
- * lib/rdoc/parsers/parse_c.rb: private comment (--/++) support in
- C-file rdoc.
-
- * lib/debug.rb: minor clarification in help.
-
- * lib/pp.rb: minor clarification on exception.
-
-Sun Jul 9 00:54:11 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * eval.c (next_jump): deal with destination of next.
- fixed: [ruby-core:08169]
-
-Fri Jul 7 17:49:16 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * string.c (rb_str_ord): extract lower byte. fixed: [ruby-dev:28980]
-
- * lib/jcode.rb (String#succ!): fix for 1.9. fixed: [ruby-dev:28979]
-
-Fri Jul 7 14:05:03 2006 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * win32/Makefile.sub (config.h): define FUNC_STDCALL/FUNC_CDECL.
- from [ruby-dev:28970].
-
-Fri Jul 7 00:38:49 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * hash.c (rb_hash_default): should not call default procedure if
- no key is given. [ruby-list:42541]
-
-Thu Jul 6 23:30:04 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * process.c (rb_proc_times): use sysconf(_SC_CLK_TCK) value prior to
- HZ and CLK_TCK. fixed: [ruby-talk:200293]
-
-Thu Jul 6 21:50:06 2006 Minero Aoki <aamine@loveruby.net>
-
- * ext/racc/cparse/cparse.c: sync with original code, rev 1.8.
-
- * ext/racc/cparse/cparse.c: should mark CparseParams objects.
-
- * lib/racc/parser.rb: sync with original code, rev 1.8.
-
- * lib/racc/parser.rb: update coding style.
-
-Wed Jul 5 05:28:45 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * parse.y (block_param): should allow block argument after splat
- and post splat args.
-
-Wed Jul 5 01:12:19 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * test/ruby/test_lambda.rb (TestLambdaParameters::test_lambda_as_iterator):
- -> style block no longer available. [ruby-dev:28958]
-
-Tue Jul 4 21:48:56 2006 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * ruby.c (proc_options): suppress warning on DOSISH.
-
-Tue Jul 4 15:12:49 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * eval.c (rb_call): should not set prot_tag->blkid since it would
- never catch breaks at this level. [ruby-dev:28922]
-
-Tue Jul 4 04:48:36 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * bignum.c: ruby 1.9 HEAD 64 bit warnings clean up from
- <ville.mattila at stonesoft.com>. [ruby-core:08120]
-
-Mon Jul 3 19:04:38 2006 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/tcltklib.c (ip_make_menu_embeddable): help to make a menu
- widget embeddable (pack, grid, and so on) like as a general widget.
- However, an embeddable menu may require to be defined some event
- bindings for general use.
-
- * ext/tk/lib/tk/event.rb: [bug fix] Tk.callback_break and
- Tk.callback_continue don't work on MultiTkIp.
-
- * ext/tk/lib/multi-tk.rb: ditto.
-
- * ext/tk/lib/tk.rb: lack of Tk.callback_return.
-
- * ext/tk/lib/tk/menu.rb: improve creating clone menus.
-
-Mon Jul 3 14:42:06 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/etc/extconf.rb (PW_UID2VAL, PW_GID2VAL): defaulted to conversion
- from int, and sys/types.h needs to be included before grp.h.
- fixed: [ruby-dev:28938]
-
-Mon Jul 3 10:44:01 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * io.c (popen_exec): close file descriptors other than standard I/Os.
- fixed: [ruby-dev:28924]
-
-Mon Jul 3 05:15:29 2006 GOTOU Yuuzou <gotoyuzo@notwork.org>
-
- * test/openssl/test_asn1.c: String#[]= doesn't accept Integer.
-
-Mon Jul 3 01:14:15 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * string.c (rb_str_inspect): encode \b (\010) for escape.
- [ruby-dev:28927]
-
- * string.c (rb_str_dump): ditto.
-
-Sun Jul 2 19:03:30 2006 Minero Aoki <aamine@loveruby.net>
-
- * ext/racc/cparse/cparse.c: sync with original code, rev 1.7.
-
- * ext/racc/cparse/cparse.c: must require version.h to get
- RUBY_VERSION_CODE.
-
-Sun Jul 2 18:42:27 2006 Minero Aoki <aamine@loveruby.net>
-
- * ext/racc/cparse/cparse.c: sync with original source code, rev
- 1.6.
-
- * ext/racc/cparse/cparse.c: do not use rb_iterate to give a block
- to the method, use rb_block_call instead. [ruby-dev:28445]
-
-Sun Jul 2 11:22:03 2006 Tanaka Akira <akr@m17n.org>
-
- * io.c (io_reopen): STDOUT.reopen(filename, "w+") didn't work.
- (rb_io_reopen): STDOUT.reopen(File.open(filename, "w+")) didn't work.
-
-Sat Jul 1 23:55:42 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * eval.c (PUSH_FRAME): initialize frame->self. [ruby-dev:28911]
-
-Sat Jul 1 17:00:42 2006 GOTOU Yuuzou <gotoyuzo@notwork.org>
-
- * test/webrick/utils.rb: use Proc#yield instead of Proc#call.
- [ruby-dev:28914]
-
-Sat Jul 1 15:15:49 2006 Tanaka Akira <akr@m17n.org>
-
- * test/socket/test_nonblock.rb: add timeout to send/receive
- an empty UDP packet.
- [ruby-dev:28820]
-
-Fri Jun 30 23:46:23 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * configure.in: should test isinf for Solaris with GCC compiler.
- a patch from <ville.mattila at stonesoft.com>. [ruby-core:07791]
-
- * configure.in: -shared patch from Andrew Morrow
- <andrew.c.morrow at gmail.com>. [ruby-core:08100]
-
-Fri Jun 30 19:35:41 2006 GOTOU Yuuzou <gotoyuzo@notwork.org>
-
- * lib/webrick/httputils.rb (WEBrick::HTTPUtils._escape): should
- use String#ord to get ascii code from the one-character string.
- [ruby-dev:28901]
-
-Thu Jun 29 23:56:01 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * gc.c (gc_mark_children): a bug in NODE_BLOCK_PASS marking.
- [ruby-dev:28908]
-
-Thu Jun 29 23:04:36 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * parse.y: use ARGSPUSH instead of ARGSCAT to prevent too much
- splat expansion.
-
- * eval.c (when_check): need to handle ARGSPUSH as well.
-
- * eval.c (block_orphan): lambda and proc from method are always
- orphan.
-
- * gc.c (gc_mark_children): proper marking for NODE_LAMBDA.
-
-Thu Jun 29 22:47:30 2006 Tanaka Akira <akr@m17n.org>
-
- * eval.c (SETUP_ARGS0): avoid GC problem.
- [ruby-dev:28902]
-
-Thu Jun 29 18:58:51 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * ext/bigdecimal/bigdecimal.c (BigDecimal_version): fix patch
- failure.
-
-Thu Jun 29 18:00:51 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * ext/bigdecimal/bigdecimal.c: add RDoc document. a patch from
- mathew <meta at pobox.com>. [ruby-core:07050]
-
-Wed Jun 28 14:53:09 2006 Eric Hodel <drbrain@segment7.net>
-
- * lib/optparse.rb: RDoc patch from Robin Stocker <robin@nibor.org>
- [ruby-core:08087]
-
-Wed Jun 28 23:23:48 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * object.c (rb_cstr_to_dbl): underscores should appear only
- between digits. [ruby-dev:28891]
-
-Wed Jun 28 19:04:34 2006 Tanaka Akira <akr@m17n.org>
-
- * test/socket/test_unix.rb: test_seqpacket_pair removed.
- [ruby-dev:28846]
-
-Wed Jun 28 13:51:21 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * eval.c (when_check): arbitrary values are allowed after splats.
- fixed: [ruby-dev:28879]
-
-Wed Jun 28 09:16:18 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * parse.y (primary): remove meaningless else-only case statement
- syntax.
-
-Wed Jun 28 08:08:13 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * eval.c (rb_eval): problem to handle else part. [ruby-dev:28873]
-
-Wed Jun 28 01:48:23 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * eval.c (rb_eval): support splat in when expression list.
- [ruby-dev:28822]
-
- * eval.c (when_check): a new auxiliary function for case match.
-
- * eval.c (when_cond): ditto.
-
-Wed Jun 28 01:05:37 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * object.c (rb_cstr_to_dbl): should not skip '_' at the beginning
- of a string. [ruby-dev:28830]
-
- * bignum.c (rb_cstr_to_inum): ditto.
-
-Tue Jun 27 23:03:49 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * string.c: RDoc update for =~ method. a patch from Alex Young
- <alex at blackkettle.org>. [ruby-core:08068]
-
-Tue Jun 27 22:47:18 2006 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/tcltklib.c: forgot to update TCLTKLIB_RELEASE_DATE.
-
- * ext/tk/lib/tk.rb (tk_tcl2ruby): [bug fix] sometimes fail to convert
- a tcl string to a ruby object if the tcl string includes "\n".
-
-Tue Jun 27 20:05:14 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * io.c (pipe_open): backout unnecessary fix on 2006-06-26.
- [ruby-dev:28865]
-
- * eval.c (rb_yield_0): exact argument number check now done only
- for lambda Proc.
-
- * eval.c (rb_yield_0): add check for number of arguments, if
- there's one lambda block parameter.
-
-Tue Jun 27 16:04:05 2006 WATANABE Hirofumi <eban@ruby-lang.org>
-
- * win32/win32.h: define isascii on MinGW for msvcrt compatibility.
-
- * configure.in: set ac_cv_header_sys_time_h=no on MinGW
- for msvcrt compatibility.
-
-Tue Jun 27 11:36:02 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/etc/etc.c (setup_passwd, setup_group): allow bignum uid, gid and
- so on. [ruby-talk:199102]
-
-Tue Jun 27 10:46:53 2006 Tanaka Akira <akr@m17n.org>
-
- * eval.c (rb_yield_0): avoid core dump. [ruby-dev:28840]
-
-Mon Jun 26 11:03:00 2006 Eric Hodel <drbrain@segment7.net>
-
- * lib/rdoc/ri: Add options to limit the ri search path.
-
-Tue Jun 27 01:31:59 2006 Tanaka Akira <akr@m17n.org>
-
- * ext/socket/socket.c (bsock_recv_nonblock): new method
- BasicSocket#recv_nonblock.
- (udp_recvfrom_nonblock): renamed from ip_recvfrom_nonblock.
- IPSocket#recvfrom_nonblock is moved to UDPSocket#recvfrom_nonblock.
- (unix_recvfrom_nonblock): removed.
- UNIXSocket#recvfrom_nonblock is removed.
-
-Tue Jun 27 00:52:40 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/ripper/eventids2.c (token_assoc): added tCHAR, which is not
- under 256 now. fixed: [ruby-dev:28832]
-
-Mon Jun 26 23:42:57 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * eval.c (call_trace_func): no check for argument number of the
- callback. fixed: [ruby-dev:28812]
-
-Mon Jun 26 18:37:44 2006 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/tcltklib.c (ip_delete): fix SEGV when a slave-ip is
- deleted on callback.
-
-Mon Jun 26 15:40:26 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * ext/socket/socket.c (sock_accept): revert to avoid ambiguity of
- argument evaluation order. [ruby-dev:28861]
-
- * ext/socket/socket.c (sock_accept_nonblock): ditto.
-
-Mon Jun 26 10:47:42 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * io.c (pipe_open): avoid closing uninitialized file descriptors.
- a patch from <tommy at tmtm.org> [ruby-dev:28600]
-
-Sun Jun 25 23:02:12 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * Makefile.in, mkconfig.rb: catch-up for latest autoconf.
-
-Sun Jun 25 17:44:16 2006 Tanaka Akira <akr@m17n.org>
-
- * parse.y (paren_args): wrap $2 by escape_Qundef because it may be
- Qundef. [ruby-dev:28843]
-
-Sun Jun 25 17:18:33 2006 Masaki Suketa <masaki.suketa@nifty.ne.jp>
-
- * ext/win32ole/win32ole.c(ole_invoke): support some kind of
- method of word. [ruby-Bugs#3237]
-
- * test/win32ole/test_word.rb: ditto.
-
-Sat Jun 24 23:48:08 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * parse.y: replace terminal token names with more descriptive
- name, i.e. kEND to keyword_end. [ruby-list:42477]
-
-Sat Jun 24 23:37:41 2006 Tanaka Akira <akr@m17n.org>
-
- * eval.c (rb_eval): use rb_ary_new2 instead of rb_ary_new4 to avoid
- GC problem.
- (rb_yield_values): use rb_ary_new2 instead of rb_ary_new4.
-
- * array.c (rb_ary_new4): don't set len as n if contents is not
- initialized. make it safe with GC.
-
- [ruby-dev:28826]
-
-Fri Jun 23 23:35:32 2006 Tanaka Akira <akr@m17n.org>
-
- * ruby.h, lib/drb/drb.rb, lib/drb/invokemethod.rb: remove Values class.
- [ruby-dev:28805]
-
-Fri Jun 23 17:27:52 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * eval.c (rb_block_pass): removed.
-
- * eval.c (rb_thread_start_1): use rb_proc_yield() instead of
- rb_block_pass(). fixed: [ruby-dev:28794]
-
-Thu Jun 22 11:52:02 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/net/http.rb (Net::HTTPResponse): duplicated error 501;
- HTTPInternalServerError should be error 500. [ruby-core:08037]
-
-Thu Jun 22 11:47:52 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * variable.c (rb_mod_name): returns nil for anonymous modules.
- [ruby-talk:198440]
-
-Thu Jun 22 10:31:39 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * string.c (rb_str_aref): "abc"[3] should not return an empty
- string but nil. [ruby-dev:28786]
-
-Thu Jun 22 05:15:58 2006 Tanaka Akira <akr@m17n.org>
-
- * ext/socket/socket.c (sock_s_socketpair): try GC only once.
- [ruby-dev:28778]
-
-Wed Jun 21 21:20:31 2006 Tadayoshi Funaba <tadf@dotrb.org>
-
- * lib/date.rb (jd_to_commercial): now works fine even if in
- mathn-ized context.
-
-Wed Jun 21 17:29:57 2006 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * ext/socket/getaddrinfo.c (freeaddrinfo, get_name): fixed typo.
-
- * ext/tk/tcltklib.c (tcl_eval, tcl_global_eval): ditto.
-
- * ext/zlib/zlib.c (rscheck): constified.
-
-Wed Jun 21 17:18:55 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/pp.rb (PP::PPMethods::seplist): should have preserved
- original reference to the array. [ruby-dev:28747]
-
-Wed Jun 21 14:35:06 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * parse.y (block_param): do not use multiple assignment for a sole
- block parameter. [ruby-dev:28710]
-
- * eval.c (rb_yield_0): pass a raw yielded value to a sole block
- parameter if a value is passed by yield.
-
- * eval.c (proc_invoke): args may not be an array.
-
- * eval.c (rb_proc_yield): pass original value without wrapping
- it in an array.
-
-Wed Jun 21 14:06:47 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * parse.y (method_call): remove (fn)(args) style lambda
- invocation, add fn.(args) instead.
-
-Wed Jun 21 08:39:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/xmlrpc/create.rb (XMLRPC::Create::conv2value): merge Date
- and Time processing. [ruby-core:08033]
-
-Wed Jun 21 03:01:10 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * eval.c, file.c, etc.: code-cleanup patch from Stefan Huehner
- <stefan at huehner.org>. [ruby-core:08029]
-
-Wed Jun 21 01:40:25 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * parse.y (reswords): modifier token is no longer returned in fname
- state. fixed: [ruby-dev:28775]
-
-Tue Jun 20 23:28:34 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/extmk.rb (parse_args): provisional catch-up for the recent changes.
-
- * lib/optparse.rb (OptionParser::List#summarize, OptionParser#order!): ditto.
-
-Tue Jun 20 11:07:55 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * eval.c (proc_invoke): intercept break and return from lambda
- Proc objects. [ruby-dev:28742]
-
- * eval.c (proc_invoke): remove unnecessary YIELD_PROC_CALL flag.
-
- * eval.c (YIELD_EXACT_ARGS): renamed from YIELD_LAMBDA_CALL, which
- is no longer related to the behavior turned on by this flag.
-
- * eval.c (return_jump): no need to care about PROT_YIELD.
-
- * eval.c (break_jump): no jump to toplevel PROT_THREAD tag.
-
- * eval.c (rb_yield_0): fix confusion between lambda (which is a
- property of a proc) and pcall (which depends on whether it's
- called via yield or call).
-
- * eval.c (rb_thread_yield): no need to specify YIELD_LAMBDA_CALL.
-
- * eval.c (rb_block_pass): update blkid in prot_tag.
-
-Mon Jun 19 23:40:59 2006 NARUSE, Yui <naruse@ruby-lang.org>
-
- * ext/nkf/lib/kconv.rb: remove default -m0 and fix document.
-
- * ext/nkf/nkf-8/{nkf.c, config.h, utf8tbl.c, utf8tbl.h}:
- imported nkf 2.0.7.
-
-Mon Jun 19 17:02:14 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * sample/test.rb (proc_return3): return within non lambda block
- should terminate surrounding method. [ruby-dev:28741]
-
-Mon Jun 19 13:22:48 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * ext/socket/socket.c (unix_sysaccept): typo fixed.
-
- * ext/socket/socket.c (sock_connect): remove an unused local
- variable tmpaddr.
-
-Mon Jun 19 02:10:32 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * ext/socket/socket.c (tcp_accept_nonblock): forgot to remove
- abandoned hacks. [ruby-dev:28740]
-
-Mon Jun 19 00:00:17 2006 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/lib/multi-tk.rb: fix bug: initialize improper tables.
-
-Sun Jun 18 20:28:43 2006 Masaki Suketa <masaki.suketa@nifty.ne.jp>
-
- * ext/win32ole/win32ole.c (fole_methods): The return value
- of WIN32OLE#ole_methods should include PROPERTYPUTREF methods.
-
- * ext/win32ole/win32ole.c (fole_put_methods): The return value
- of WIN32OLE#ole_put_methods should include PROPERTYPUTREF methods.
-
- * test/win32ole/test_ole_methods.rb: ditto.
-
- * ext/win32ole/win32ole.c (ole_propertyput): support
- PROPERTYPUTREF. [ruby-talk:183042]
-
- * test/win32ole/test_propertyputref.rb: ditto.
-
-Sat Jun 17 23:42:26 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * eval.c (Init_eval): add aliases invoke_method and
- invoke_functional_method corresponding send and funcall
- respectively. [ruby-talk:197512]
-
- * parse.y (parser_yylex): returns the most typical keyword token
- on EXPR_FNAME. [ruby-core:7995]
-
- * ext/socket/socket.c: protoize.
-
-Sat Jun 17 22:17:17 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/mathn.rb (Integer::prime_division): raise ZeroDivisionError
- on zeros. [ruby-dev:28739]
-
-Sat Jun 17 14:53:32 2006 Tanaka Akira <akr@m17n.org>
-
- * lib/pathname.rb (Kernel#Pathname): new method.
-
-Sat Jun 17 02:01:00 2006 Tanaka Akira <akr@m17n.org>
-
- * lib/pp.rb (Kernel#pretty_inspect): defined for pretty printed
- string.
-
-Fri Jun 16 01:41:00 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * eval.c (rb_proc_arity): get rid of segfault for mere splat.
-
- * gc.c (gc_mark_children): NODE_BLOCK_PASS needs u3 to be marked.
-
-Thu Jun 15 22:06:56 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * parse.y (then): remove ':' from 'then' and 'do' rules.
-
-Wed Jun 14 18:00:20 2006 Eric Hodel <drbrain@segment7.net>
-
- * enum.c (enum_any): Documentation typo.
-
-Wed Jun 14 15:01:09 2006 Eric Hodel <drbrain@segment7.net>
-
- * lib/rdoc/parsers/parse_rb.rb (RDoc::RubyParser#warn): Don't print
- warnings when -q is set.
-
-Wed Jun 14 16:11:37 2006 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * eval.c (rb_f_method_name, rb_f_callee_name): document typo.
-
-Wed Jun 14 15:19:14 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * hash.c (env_aset): raise TypeError on nil with more descriptive
- message. [ruby-core:07990]
-
-Tue Jun 13 17:22:19 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * ext/socket/socket.c (Init_socket): remove obsolete constants:
- IPsocket, TCPsocket, SOCKSsocket, TCPserver, UDPsocket,
- UNIXsocket, UNIXserver.
-
-Tue Jun 13 09:07:27 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * eval.c (formal_assign): post splat arguments should have had
- higher priority than optional arguments, since they are
- mandatory. [ruby-dev:28715]
-
- * eval.c (VIS_MASK): broken. should be 15. [ruby-dev:28715]
-
- * io.c (argf_getc): should return one-character string.
- [ruby-dev:28715]
-
- * io.c (rb_io_readchar): ditto.
-
-Sun Jun 11 23:20:07 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * object.c (sym_call): disallow to call private methods.
-
- * lib/optparse.rb (OptionParser::Arguable#getopts): pass self to the
- parser.
-
-Sun Jun 11 09:56:41 2006 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * win32/win32.h (write): not need to define on bcc.
-
-Sun Jun 11 08:30:33 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/optparse.rb (OptionParser#getopts): new methods.
-
-Sun Jun 11 07:27:11 2006 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * lib/rdoc/ri/ri_writer.rb: use String#ord.
-
-Sun Jun 11 04:38:20 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * object.c (sym_to_proc): imported Symbol#to_proc from ActiveSupport.
-
-Sat Jun 10 18:02:40 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * ext/bigdecimal/lib/bigdecimal/newton.rb (Newton::nlsolve): typo
- fixed: raize -> raise. [ruby-talk:196608]
-
-Sat Jun 10 17:49:53 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * string.c (rb_str_ord): new method.
-
- * parse.y (rbracket): allow optional newline before closing
- brackets.
-
-Sat Jun 10 15:12:29 2006 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * eval.c (rb_f_method_name, rb_f_callee_name): new functions.
- new global method `__method__' and `__callee__'.
-
-Sat Jun 10 10:13:13 2006 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * lib/getoptlong.rb (GetoptLong#set_options): receive arguments
- as Array.
-
- * lib/irb/slex.rb: use Proc#yield.
-
- * lib/rdoc/markup/simple_markup/inline.rb: follow the new behavior
- of String#[].
-
- * lib/rdoc/ri/ri_writer.rb: ditto.
-
-Sat Jun 10 08:17:23 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * math.c (log2): may be a macro.
-
- * parse.y (args, block_param, f_args): pass f_post_arg to #params.
-
- * util.c (powersOf10): constified.
-
- * ext/readline/readline.c: include extconf.h first.
-
- * ext/ripper/eventids2.c: removed tLAMBDA_ARG.
-
- * ext/tk/tcltklib.c (lib_fromUTF8_core): removed conflict.
-
- * ext/tk/tkutil/tkutil.c (cbsubst_get_subst_arg): rb_id2name() is
- defined as const now.
-
- * ext/win32ole/win32ole.c (fole_missing): ditto.
-
- * lib/mkmf.rb (create_makefile): force to create extconf header.
-
- * lib/optparse.rb (order!): use Proc#yield.
-
-Sat Jun 10 06:53:22 2006 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * eval.c (CALLARGS): remove last semicolon. C90 compiler doesn't
- allow any lines (even if they're empty) within variable
- declarations.
-
-Fri Jun 9 09:56:32 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * sprintf.c (rb_str_format): allow %c to print one character
- string (e.g. ?x).
-
-Thu Jun 8 14:00:02 2006 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * win32/win32.[ch] (rb_w32_read, rb_w32_write): new functions.
- use recv() and send() when fd is socket. fixed: [ruby-dev:28694]
-
-Wed Jun 7 16:22:51 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/tempfile.rb (Tempfile::make_tmpname): put dot between
- basename and pid. [ruby-talk:196272]
-
-Wed Jun 7 16:16:29 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * parse.y (do_block): remove -> style block.
-
- * parse.y (parser_yylex): remove tLAMBDA_ARG.
-
-Wed Jun 7 14:51:22 2006 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * win32/win32.c (errmap): add some winsock errors.
-
-Wed Jun 7 09:14:44 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * eval.c (rb_call0): binding for the return event hook should have
- consistent scope. [ruby-core:07928]
-
-Tue Jun 6 23:25:49 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * eval.c (proc_invoke): return behavior should depend whether it
- is surrounded by a lambda or a mere block.
-
-Mon Jun 5 18:12:12 2006 Tanaka Akira <akr@m17n.org>
-
- * ext/socket/socket.c (sock_s_unpack_sockaddr_in): reject
- non-AF_INET/AF_INET6 sockaddr.
- (sock_s_unpack_sockaddr_un): reject non-AF_UNIX sockaddr.
- [ruby-dev:28691]
-
-Sun Jun 4 20:40:19 2006 Tanaka Akira <akr@m17n.org>
-
- * ext/socket/socket.c: fix sockaddr_un handling.
- [ruby-dev:28677]
-
-Sat Jun 3 23:53:18 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * eval.c (formal_assign): handles post splat arguments.
-
- * eval.c (rb_call0): ditto.
-
-Sat Jun 3 13:10:41 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * st.c (strhash): use FNV-1a hash.
-
-Fri Jun 2 20:01:24 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * parse.y (parser_yylex): removed experimental ';;' terminator.
-
-Fri Jun 2 19:00:40 2006 GOTOU Yuuzou <gotoyuzo@notwork.org>
-
- * ext/openssl/extconf.rb: use create_header.
-
- * ext/openssl/ossl.h, ext/openssl/openssl_missing.h:
- include RUBY_EXTCONF_H.
-
-Fri Jun 2 17:16:52 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/mkmf.rb (CLEANINGS): remove extconf.h by distclean if created.
-
-Fri Jun 2 00:11:19 2006 Tanaka Akira <akr@m17n.org>
-
- * ext/socket/socket.c (s_recvfrom): alen may be zero with UNIXSocket
- too. (tested on NetBSD 3.0)
- (s_recvfrom_nonblock): extracted from sock_recvfrom_nonblock.
- (sock_recvfrom_nonblock): use s_recvfrom_nonblock.
- (ip_recvfrom_nonblock): new method: IPSocket#recvfrom_nonblock
- (unix_recvfrom_nonblock): new method: UNIXSocket#recvfrom_nonblock
- (s_accept_nonblock): extracted from sock_accept_nonblock.
- (sock_accept_nonblock): use s_accept_nonblock.
- (tcp_accept_nonblock): new method: TCPServer#accept_nonblock
- (unix_accept_nonblock): new method: UNIXServer#accept_nonblock
-
-Thu Jun 1 19:12:37 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * win32/win32.c (rb_w32_cmdvector): backslashes inside single-quotes
- no longer has special meanings. fixed: [ruby-list:42311]
-
-Thu Jun 1 17:55:42 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * eval.c (rb_node_arity): should be aware of post splat arguments.
-
- * eval.c (rb_proc_arity): ditto.
-
-Thu Jun 1 16:17:26 2006 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * win32/win32.c (rb_w32_getcwd): runtime's getcwd() will not success
- if the length of the cwd is longer than MAX_PATH.
- fixed [ruby-list:42335]
-
-Thu Jun 1 16:07:48 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * parse.y (f_args): syntax rule enhanced to support arguments
- after the splat.
-
- * parse.y (mlhs_basic): ditto for multiple assignments
-
- * parse.y (block_param): ditto for block parameters.
-
- * parse.y (f_post_arg): mandatory formal arguments after the splat
- argument.
-
- * parse.y (new_args_gen): generate nodes for mandatory formal
- arguments after the splat argument.
-
- * eval.c (rb_eval): dispatch mandatory formal arguments after the
- splat argument.
-
-Thu Jun 1 11:33:32 2006 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * win32/win32.c (rb_w32_getcwd): set errno if not set.
- fixed [ruby-list:42346]
-
-Thu Jun 1 00:45:52 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * parse.y (args): allow more than one splat in the argument list.
-
-Wed May 31 18:38:11 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * parse.y (method_call): allow aref [] to accept all kind of
- method argument, including assocs, splat, and block argument.
-
- * eval.c (SETUP_ARGS0): prepare block argument as well.
-
-Tue May 30 18:13:53 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/mathn.rb (Integer): remove Integer#gcd2. [ruby-core:07931]
-
-Mon May 29 22:40:13 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * eval.c (error_line): print receivers true/false/nil specially.
-
- * eval.c (rb_proc_yield): handles parameters in yield semantics.
-
- * eval.c (nil_yield): gives LocalJumpError to denote no block
- error.
-
- * io.c (rb_io_getc): now takes one-character string.
-
-Sat May 27 22:46:38 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * eval.c (proc_invoke): save and restore block in the current frame.
- fixed: [ruby-core:07833], [ruby-talk:191639]
-
-Sat May 27 11:29:46 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/extmk.rb (extmake): remove extinit files if no statically linked
- extensions.
-
-Fri May 26 19:56:46 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * string.c (rb_str_hash): use FNV-1a hash from Fowler/Noll/Vo
- hashing algorithm.
-
-Fri May 26 09:05:11 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ruby.h, lib/mkmf.rb (create_header): clear command line options for
- macros moved to extconf.h.
-
- * ext/extmk.rb (extract_makefile, extmk): made RUBY_EXTCONF_H and
- EXTSTATIC permanent.
-
- * ext/{dbm,digest/*,socket,zlib}/extconf.rb: used $defs and $INCFLAGS.
-
- * {bcc32,win32,wince}/Makefile.sub (COMPILE_C, COMPILE_CXX): added
- $(INCFLAGS).
-
- * lib/mkmf.rb (configuration): add $defs unless extconf.h was created.
-
-Thu May 25 01:52:07 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/mkmf.rb (pkg_config): particular config commands support.
-
- * ext/extmk.rb: deal with $static set in extconf.rb.
-
- * mkconfig.rb: merge multiple entries to an entry with multiple lines.
-
- * lib/mkmf.rb: allow a series of commands to link.
-
- * win32/Makefile.sub: embed manifests.
-
- * win32/setup.mak: suffix OS name by runtime version.
-
-Wed May 24 23:52:11 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * configure.in (ac_install_sh): ignore dummy install-sh.
- [ruby-talk:193876]
-
-Wed May 24 17:55:13 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * string.c (rb_str_aref): str[0] now returns 1 character string,
- instead of a fixnum. [Ruby2]
-
- * parse.y (parser_yylex): ?c now returns 1 character string,
- instead of a fixnum. [Ruby2]
-
- * string.c (rb_str_aset): no longer support fixnum insertion.
-
-Wed May 24 03:10:44 2006 GOTOU Yuuzou <gotoyuzo@notwork.org>
-
- * ext/openssl/lib/openssl/ssl.rb
- (OpenSSL::SSL::SocketForwarder#setsockopt,getsockopt): typo fixed.
-
-Mon May 22 16:32:03 2006 Tanaka Akira <akr@m17n.org>
-
- * rubyio.h (rb_io_set_nonblock): declared.
-
- * io.c (rb_io_set_nonblock): new function.
- (io_getpartial): nonblocking read support.
- (io_read_nonblock): new method: IO#read_nonblock.
- (io_write_nonblock): new method: IO#write_nonblock.
-
- * ext/socket/socket.c (s_accept): retry for EWOULDBLOCK.
- revert [ruby-talk:113807].
- (sock_connect_nonblock): new method: Socket#connect_nonblock.
- (sock_accept_nonblock): new method: Socket#accept_nonblock.
- (sock_recvfrom_nonblock): new method: Socket#recvfrom_nonblock.
-
- [ruby-core:7917]
-
-Mon May 22 15:57:39 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * eval.c (umethod_bind): should not update original class.
- [ruby-dev:28636]
-
-Mon May 22 13:38:57 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * eval.c (ev_const_get): should support constant access from
- within instance_eval(). [ruby-dev:28327]
-
-Sun May 21 09:50:31 2006 K.Kosako <sndgk393 AT ybb.ne.jp>
-
- * regexec.c: add STK_NULL_CHECK_END to IS_TO_VOID_TARGET().
- [ruby-list:42234]
-
-Thu May 18 22:37:20 2006 GOTOU Yuuzou <gotoyuzo@notwork.org>
-
- * lib/webrick/config.rb (WEBrick::Config::HTTP): add new parameters,
- :InputBufferSize and :OutputBufferSize.
-
- * lib/webrick/utils.rb (WEBrick::Utils.timeout): add new timeout
- method. this implementation is expected to be compatible with
- timeout.rb and faster than timeout.rb.
-
- * lib/webrick/httprequest.rb (WEBrick::HTTPRequest#_read_data):
- Timeout.timeout is replaced by WEBrick::Utils.timeout.
-
- * lib/webrick/httprequest.rb: WEBrick::HTTPRequest::BUFSIZE is
- replaced by config[:InputBufferSize].
-
- * lib/webrick/httpresposne.rb: WEBrick::HTTPResponse::BUFSIZE is
- replaced by config[:OutputBufferSize].
-
- * lib/webrick/server.rb: get rid of unnecessary require.
-
- * test/webrick/test_utils.rb: test for WEBrick::Utils.timeout.
-
-Thu May 18 17:51:32 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * time.c (time_timeval): should round for usec floating
- number. [ruby-core:07896]
-
- * time.c (time_add): ditto.
-
-Thu May 18 00:42:12 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/extmk.rb, lib/mkmf.rb: use BUILD_FILE_SEPARATOR in Makefiles.
-
-Wed May 17 17:55:26 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * dir.c (sys_warning): should not call a vararg function
- rb_sys_warning() indirectly. [ruby-core:07886]
-
-Tue May 16 17:23:19 2006 Shin-ichiro HARA <sinara@blade.nagaokaut.ac.jp>
-
- * numeric.c (flo_divmod): the first element of Float#divmod should
- be an integer. [ruby-dev:28589]
-
- * test/ruby/test_float.rb: add tests for divmod, div, modulo and remainder.
-
-Tue May 16 15:34:18 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * re.c (rb_reg_initialize): should not allow modifying literal
- regexps. frozen check moved from rb_reg_initialize_m as well.
-
-Tue May 16 09:20:16 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * re.c (rb_reg_initialize): should not modify untainted objects in
- safe levels higher than 3.
-
- * re.c (rb_memcmp): type change from char* to const void*.
-
- * dir.c (dir_close): should not close untainted dir stream.
-
- * dir.c (GetDIR): add tainted/frozen check for each dir operation.
-
-Mon May 15 21:37:12 2006 K.Kosako <sndgk393 AT ybb.ne.jp>
-
- * re.c (rb_reg_prepare_re): don't use onig_recompile().
-
-Mon May 15 17:42:39 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/rdoc/parsers/parse_rb.rb (RDoc::RubyParser::parse_symbol_arg):
- typo fixed. a patch from Florian Gross <florg at florg.net>.
-
-Sat May 13 16:14:05 2006 Tanaka Akira <akr@m17n.org>
-
- * lib/pp.rb (PP.mcall): new method.
- (Struct#pretty_print): call Kernel#class and Struct#members even if
- overridden.
- (Struct#pretty_print_cycle): ditto.
- [ruby-core:7865]
-
-Fri May 12 15:54:48 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * eval.c (EXEC_EVENT_HOOK): trace_func may remove itself from
- event_hooks. no guarantee for arbitrary hook deletion.
- [ruby-dev:28632]
-
-Thu May 11 19:57:00 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * util.c (ruby_strtod): differ addition to minimize error.
- [ruby-dev:28619]
-
-Thu May 11 18:30:11 2006 GOTOU Yuuzou <gotoyuzo@notwork.org>
-
- * ext/openssl/ossl_cipher.c (add_cipher_name_to_ary): should return
- value. [ruby-dev:28627]
-
-Thu May 11 18:10:43 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * util.c (ruby_strtod): should not raise ERANGE when the input
- string does not have any digits. [ruby-dev:28629]
-
-Wed May 10 23:40:21 2006 K.Kosako <sndgk393 AT ybb.ne.jp>
-
- * oniguruma.h: Version 4.0.3
-
- * regexec.c: ditto.
-
-Mon May 8 09:10:31 2006 GOTOU Yuuzou <gotoyuzo@notwork.org>
-
- * ext/openssl/extconf.rb: add check for OBJ_NAME_do_all_sorted.
-
- * ext/openssl/ossl_cipher.c (ossl_s_ciphers): new method
- OpenSSL::Cipher.ciphers. it returns all the cipher names.
-
- * ext/openssl/ossl_cipher.c (ossl_cipher_init): refine warning message.
-
- * ext/openssl/lib/openssl/cipher.rb: reimplement without eval() and
- add constants AES128, AES192, AES256. [ruby-dev:28610]
-
- * ext/openssl/lib/openssl/digest.rb: reimplement without eval().
-
- * test/openssl/test_cipher.rb, test_digest: fix about reimplemented
- features.
-
- * sample/openssl/cipher.rb: rewrite all.
-
-Sun May 7 03:09:51 2006 Stephan Maka <stephan@spaceboyz.net>
-
- * lib/resolv.rb (Resolv::DNS::Requester::ConnectedUDP#initialize):
- Use AF_INET6 for nameservers containing colons.
-
-Sat May 6 23:40:03 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * eval.c (proc_invoke): should restore old ruby_frame->block.
- thanks to ts <decoux at moulon.inra.fr>. [ruby-core:07833]
- also fix [ruby-dev:28614] as well.
-
-Sat May 6 00:38:42 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * signal.c (trap): sig should be less then NSIG. Coverity found
- this bug. a patch from Kevin Tew <tewk at tewk.com>.
- [ruby-core:07823]
-
-Thu May 4 22:13:22 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * math.c (math_log2): add new method inspired by
- [ruby-talk:191237].
-
- * math.c (math_log): add optional base argument to Math::log().
- [ruby-talk:191308]
-
-Thu May 4 02:24:16 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * ext/syck/emitter.c (syck_scan_scalar): avoid accessing
- uninitialized array element. a patch from Pat Eyler
- <rubypate at gmail.com>. [ruby-core:07809]
-
- * array.c (rb_ary_fill): initialize local variables first. a
- patch from Pat Eyler <rubypate at gmail.com>. [ruby-core:07810]
-
- * ext/syck/yaml2byte.c (syck_yaml2byte_handler): need to free
- type_tag. a patch from Pat Eyler <rubypate at gmail.com>.
- [ruby-core:07808]
-
-Wed May 3 02:12:07 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * ext/socket/socket.c (make_hostent_internal): accept ai_family
- check from Sam Roberts <sroberts at uniserve.com>.
- [ruby-core:07691]
-
-Mon May 1 17:58:16 2006 Masaki Suketa <masaki.suketa@nifty.ne.jp>
-
- * ext/win32ole/win32ole.c (add_event_call_back): should not
- delete event handler when the event name is not entried.
-
-Mon May 1 08:32:10 2006 Masaki Suketa <masaki.suketa@nifty.ne.jp>
-
- * ext/win32ole/win32ole.c (ole_param_ole_type): should return
- "unknown type" string when ITypeInfo::GetFuncDesc failed.
-
-Sat Apr 29 22:43:37 2006 GOTOU Yuuzou <gotoyuzo@notwork.org>
-
- * ext/openssl/ossl_asn1.c (ossl_asn1_decode0): should initialize
- flag. [ruby-core:07785]
-
-Fri Apr 28 10:53:16 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * util.c (ruby_strtod): should not cut off 18 digits for no
- reason. [ruby-core:07796]
-
-Thu Apr 27 01:38:10 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * array.c (rb_ary_fill): internalize local variable "beg" to
- pacify Coverity. [ruby-core:07770]
-
-Wed Apr 26 16:59:24 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * pack.c (pack_unpack): now supports CRLF newlines. a patch from
- <tommy at tmtm.org>. [ruby-dev:28601]
-
-Wed Apr 26 16:55:19 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * applied code clean-up patch from Stefan Huehner
- <stefan at huehner.org>. [ruby-core:07764]
-
-Tue Apr 25 18:00:05 2006 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/tcltklib.c (delete_slaves): maybe increment the reference
- count of a NULL Tcl_Obj [ruby-core:07759].
-
-Tue Apr 25 07:55:31 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/jcode.rb (String::tr_s): should have translated non
- squeezing character sequence (i.e. a character) as well. thanks
- to Hiroshi Ichikawa <gimite at gimite.ddo.jp> [ruby-list:42090]
-
-Fri Apr 21 15:19:13 2006 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/tcltklib.c (lib_eventloop_ensure): avoid dereferencing
- freed pointer [ruby-core:07744] and memory leak.
-
-Fri Apr 21 12:14:52 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * ext/socket/socket.c: document update patch from Sam Roberts
- <sroberts at uniserve.com>. [ruby-core:07701]
-
-Thu Apr 20 08:43:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/mathn.rb (Integer): need not to remove gcd2. a patch from
- NARUSE, Yui <naruse at airemix.com>. [ruby-dev:28570]
-
-Wed Apr 19 13:55:27 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * parse.y (arg): too much NEW_LIST()
-
- * eval.c (SETUP_ARGS0): remove unnecessary access to nd_alen.
-
-Wed Apr 19 11:57:04 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * eval.c (rb_eval): use ARGSCAT for NODE_OP_ASGN1.
- [ruby-dev:28585]
-
- * parse.y (arg): use NODE_ARGSCAT for placeholder.
-
-Wed Apr 19 11:13:17 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/getoptlong.rb (GetoptLong::get): RDoc update patch from
- mathew <meta at pobox.com>. [ruby-core:07738]
-
-Wed Apr 19 10:13:27 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * variable.c (rb_const_set): raise error when no target klass is
- supplied. [ruby-dev:28582]
-
-Tue Apr 18 17:40:37 2006 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/lib/multi-tk.rb: add a binding to a container for a slave IP.
-
- * ext/tk/lib/tk.rb: update RELEASE_DATE.
-
- * ext/tk/tcltklib.c: forget to reset a Tcl interpreter.
-
- * ext/tk/stubs.c: fix potential bugs about handling rb_argv0.
-
-Mon Apr 10 01:03:10 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * prec.c (prec_prec_f): documentation patch from
- <gerardo.santana at gmail.com>. [ruby-core:07689]
-
-Sat Apr 8 02:34:34 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * bignum.c (rb_big_pow): second operand may be too big even if
- it's a Fixnum. [ruby-talk:187984]
-
-Sat Apr 8 02:12:38 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * README.EXT: update symbol description. [ruby-talk:188104]
-
-Sat Apr 8 18:06:28 2006 Masaki Suketa <masaki.suketa@nifty.ne.jp>
-
- * ext/win32ole/win32ole.c: add WIN32OLE_METHOD#inspect,
- WIN32OLE_PARAM#inspect.
-
- * test/win32ole/test_win32ole_method.rb: ditto.
-
- * add test/win32ole/test_win32ole_param.rb.
-
-Fri Apr 7 22:11:30 2006 Masaki Suketa <masaki.suketa@nifty.ne.jp>
-
- * ext/win32ole/win32ole.c(foletypelib_initialize): WIN32OLE_TYPELIB.new
- accepts OLE file.
-
- * test/win32ole/test_win32ole_typelib.rb(test_initialize): ditto.
-
-Thu Apr 6 23:28:47 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * COPYING: explicitly note GPLv2. [ruby-talk:187922]
-
-Thu Apr 6 16:43:06 2006 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * intern.h (rb_obj_instance_exec, rb_mod_module_exec): add declaration.
-
-Thu Apr 6 11:18:37 2006 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/lib/tk/panedwindow.rb: lack of arguments. [ruby-core:7681]
-
-Thu Apr 6 01:04:47 2006 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/tcltklib.c: fix SEGV when embedding to an application.
- [ruby-core:7600]
-
- * ext/tk/tcltklib.c: fix SEGV at exit. [ruby-talk:186489]
-
- * ext/tk/tkutil/tkutil.c: follow to changing specification of
- instance_eval on ruby-1.9.x.
-
- * ext/tk/lib/tk.rb: ditto.
-
- * ext/tk/lib/multi-tk.rb: ditto.
-
- * ext/tk/lib/tk.rb: remove warning about redefinition of methods.
-
- * ext/tk/lib/tk/variable.rb: remove warning about unseting Tcl
- variables.
-
-Wed Apr 5 00:22:54 2006 Tanaka Akira <akr@m17n.org>
-
- * lib/pathname.rb: use a subclass for instantiation except
- methods take pathname argument. suggested by Evan Phoenix.
- [ruby-core:7618]
-
-Tue Apr 4 22:15:41 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * parse.y: remove some obsolete syntax rules (unparenthesized
- method calls in argument list).
-
-Sat Apr 1 15:11:27 2006 Masaki Suketa <masaki.suketa@nifty.ne.jp>
-
- * ext/win32ole/win32ole.c: add WIN32OLE_TYPE#inspect,
- WIN32OLE_VARIABLE#inspect
-
- * remove ext/win32ole/tests/testOLEVARIABLE.rb, testOLETYPE.rb
- testOLETYPELIB.rb.
-
- * testall.rb: ditto.
-
- * add test/win32ole
-
-Fri Mar 31 14:24:55 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * enumerator.c (enumerator_with_index): removed suspicious return
- statement.
-
-Wed Mar 29 23:06:48 2006 Masaki Suketa <masaki.suketa@nifty.ne.jp>
-
- * ext/win32ole/win32ole.c (ole_invoke): change the behavior of
- WIN32OLE#[], WIN32OLE#[]=. These methods invoke DISPID_VALUE.
-
- * ext/win32ole/sample/excel2.rb: ditto.
-
- * ext/win32ole/tests/testWIN32OLE.rb: ditto.
-
-Wed Mar 29 10:11:31 2006 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * ext/nkf/nkf-utf8/nkf.c (nkf_each_char_to_hex, encode_fallback_subchar,
- e2w_conv): support C90 compiler.
-
-Mon Mar 27 22:45:37 2006 NARUSE, Yui <naruse@ruby-lang.org>
-
- * ext/nkf/nkf-utf8/{nkf.c, utf8tbl.c}: imported nkf 2.0.6.
- * Add --ic / --oc option and mapping tables.
- * Add fallback option.
- * Add --no-best-fit-chars option.
- * Fix some bugs.
-
- * ext/nkf/nkf.c (nkf_split_options): added for parse option string.
-
- * ext/nkf/lib/kconv.rb (Kconv.to*): add -m0.
- Note that Kconv.to* still imply -X.
-
- * ext/nkf/test.rb: Removed. Obsolete by test/nkf.
-
- * ext/.document: enabled documents in nkf and kconv
-
- * ext/nkf/nkf.c, ext/nkf/lib/kconv.rb: Add rdoc.
-
-Mon Mar 27 03:17:21 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * eval.c (rb_call0): insecure calling should be checked for non
- NODE_SCOPE method invocations too.
-
- * eval.c (rb_alias): should preserve the current safe level as
- well as method definition.
-
-Sun Mar 26 22:02:51 2006 K.Kosako <sndgk393 AT ybb.ne.jp>
-
- * re.c: refactoring for options.
-
- * parse.y: ditto.
-
-Fri Mar 24 21:11:02 2006 K.Kosako <sndgk393 AT ybb.ne.jp>
-
- * re.c (match_aref): RDoc description updated.
-
- * string.c (rb_str_sub): ditto.
-
- * string.c (rb_str_gsub): ditto.
-
-Fri Mar 24 17:20:03 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * process.c (rb_f_sleep): remove RDoc description about SIGALRM
- which is not valid on the current implementation. [ruby-dev:28464]
-
-Thu Mar 23 21:40:47 2006 K.Kosako <sndgk393 AT ybb.ne.jp>
-
- * re.c (rb_reg_regsub): prohibit \1, \2 ...\9 in replaced string
- for named regex pattern.
-
-Thu Mar 23 21:06:23 2006 K.Kosako <sndgk393 AT ybb.ne.jp>
-
- * oniguruma.h: Version 4.0.2
-
- * regparse.c: ditto.
-
- * regcomp.c ditto.
-
- * regerror.c: ditto.
-
-Thu Mar 23 10:47:03 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * eval.c (method_missing): should support argument splat in
- super. a bug in combination of super, splat and
- method_missing. [ruby-talk:185438]
-
-Thu Mar 23 00:01:32 2006 K.Kosako <sndgk393 AT ybb.ne.jp>
-
- * re.c (rb_reg_regsub): add back reference by name \k<name> in
- replace string.
-
- * re.h: add regexp argument to rb_reg_regsub().
-
- * string.c (rb_str_sub_bang): ditto.
-
- * string.c (str_gsub): ditto.
-
-Tue Mar 21 22:14:01 2006 K.Kosako <sndgk393 AT ybb.ne.jp>
-
- * re.c (match_alloc): initialize member regexp.
-
- * re.c (match_aref): add String and Symbol argument. [ruby-dev:28448]
-
- * re.h: add member regexp to RMatch.
-
- * gc.c (gc_mark_children): add gc_mark() to regexp member.
-
-Mon Mar 20 12:05:18 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * configure.in: Solaris SunPro compiler -rapth patch from
- <kuwa at labs.fujitsu.com>. [ruby-dev:28443]
-
-Mon Mar 20 11:12:38 2006 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * ext/win32ole/win32ole.c (folevariant_value): could not compile
- with C90 compiler.
-
-Mon Mar 20 09:40:23 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * configure.in: remove enable_rpath=no for Solaris.
- [ruby-dev:28440]
-
-Sun Mar 19 09:46:30 2006 Masaki Suketa <masaki.suketa@nifty.ne.jp>
-
- * ext/win32ole/win32ole.c (ole_val2olevariantdata): change behavior
- of converting OLE Variant object with VT_ARRAY|VT_UI1 and Ruby
- String object.
-
- * ext/win32ole/win32ole.c (folevariant_value): ditto.
-
- * ext/win32ole/tests/testOLEVARIANT.rb: ditto.
-
-Wed Mar 15 16:51:11 2006 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * lib/mkmf.rb (create_makefile): support libraries without *.so.
-
-Wed Mar 15 16:39:29 2006 GOTOU Yuuzou <gotoyuzo@notwork.org>
-
- * ext/openssl/ossl_ssl.c, ext/openssl/ossl_nsspki.c: should use
- "rb_str_new(0, 0)" to make empty string.
-
-Sun Mar 12 17:02:10 2006 Masaki Suketa <masaki.suketa@nifty.ne.jp>
-
- * ext/win32ole/win32ole.c(ole_val2olevariantdata): support VT_ARRAY in
- WIN32OLE_VARIANT.new().
-
- * ext/win32ole/tests/testOLEVARIANT.rb: ditto.
-
- * ext/win32ole/tests/testOLEPARAM.rb: test method name should not be
- duplicated.
-
-Sat Mar 11 14:24:06 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * ruby.1: a clarification patch from David Lutterkort
- <dlutter at redhat.com>. [ruby-core:7508]
-
-Sun Mar 5 18:40:58 2006 Minero Aoki <aamine@loveruby.net>
-
- * lib/fileutils.rb: do not repeat command options.
-
-Sun Mar 5 18:35:03 2006 Minero Aoki <aamine@loveruby.net>
-
- * lib/net/http.rb (send_request_with_body): #content_type never
- return false, use #main_type instead. [ruby-core:07476]
-
-Sat Mar 4 15:26:40 2006 Tanaka Akira <akr@m17n.org>
-
- * gc.c (id2ref): fix symbol test.
-
-Sat Mar 4 01:08:07 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/rdoc/ri/ri_paths.rb (RI::Paths): adding paths from rubygems
- directories. a patch from Eric Hodel <drbrain at segment7.net>.
- [ruby-core:07423]
-
-Fri Mar 3 17:59:00 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * eval.c (rb_clear_cache_by_class): clearing wrong cache.
-
-Fri Mar 3 21:22:42 2006 Tanaka Akira <akr@m17n.org>
+Fri May 13 15:22:34 2011 NAKAMURA Usaku <usa@ruby-lang.org>
- * lib/fileutils.rb (FileUtils.cp_r): implement :remove_destination
- option.
-
- * ext/extmk.rb: use :remove_destination to install extension libraries
- to avoid SEGV. [ruby-dev:28417]
-
-Fri Mar 3 14:41:04 2006 Minero Aoki <aamine@loveruby.net>
-
- * ext/dl/.cvsignore: ignore callback.h.
-
- * ext/ripper/.cvsignore: ignore eventids2table.c.
-
- * ext/socket/.cvsignore: ignore constants.h.
-
-Thu Mar 2 18:58:18 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * eval.c (rb_thread_fd_writable): should not re-schedule output
- from KILLED thread (must be error printing).
-
-Thu Mar 2 09:12:05 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * array.c (rb_ary_flatten_bang): allow specifying recursion
- level. [ruby-talk:182170]
-
- * array.c (rb_ary_flatten): ditto.
-
-Thu Mar 2 08:02:42 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * gc.c (add_heap): a heap_slots may overflow. a patch from Stefan
- Weil <weil at mail.berlios.de>.
-
-Wed Mar 1 17:13:37 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * eval.c (rb_call): use separate cache for fcall/vcall
- invocation.
-
- * eval.c (rb_eval): NODE_FCALL, NODE_VCALL can call local
- functions.
-
- * eval.c (rb_mod_local): a new method to specify newly added
- visibility "local".
-
- * eval.c (search_method): search for local methods which are
- visible only from the current class.
-
- * class.c (rb_class_local_methods): a method to list local methods.
-
-Thu Mar 2 17:54:45 2006 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
-
- * gc.c: commited magic for reducing RVALUE size on windows. (24->20byte)
- [ruby-core:7474]
-
-Thu Mar 2 14:12:26 2006 Tanaka Akira <akr@m17n.org>
-
- * gc.c: align VALUE with sizeof(RVALUE) globally.
- (is_pointer_to_heap): check alignment out of loop.
- (id2ref): avoid collision between symbols and objects.
- (rb_obj_id): ditto. moved from object.c.
- [ruby-talk:178364] [ruby-core:7305]
-
-Thu Mar 2 12:55:16 2006 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
-
- * win32/win32.c (filetime_to_unixtime): should set tm_isdst to -1.
- stat() didn't treat daylight saving time property on WinNT.
- [ruby-talk:182100]
-
-Wed Mar 1 00:15:51 2006 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
-
- * lib/rdoc/parsers/parse_rb.rb (read_escape): could not handle /\^/.
- merged Mr. Ishizuka's lib/irb/ruby-lex.rb 's patch rev 1.29.
- [ruby-talk:181631] [ruby-dev:28404]
-
-Tue Feb 28 19:32:14 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * object.c (Init_Object): add BasicObject class as a top level
- BlankSlate class.
-
-Mon Feb 27 00:19:16 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * ruby.h (SYM2ID): should not cast to signed long.
- [ruby-core:07414]
-
-Fri Feb 24 20:21:38 2006 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
-
- * test/drb/drbtest.rb (add_service_command): quote pathnames in the
- server's command line for space contained directory names.
- Thanks, arton. [ruby-dev:28386]
-
-Fri Feb 24 12:10:07 2006 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * instruby.rb: install *.exe.manifest and *.dll.manifest if exist.
- It's for VC++8.
-
-Fri Feb 24 11:17:45 2006 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * win32/win32.c (NtInitialize): need to set a handler for VC++8.
-
-Thu Feb 23 22:39:59 2006 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
-
- * bcc32/Makefile.sub: use borlndmm.dll if possible. bcc32's RTL internal
- memory manager cannot handle large memory block properly.
- ex: 10000.times { "" << "." * 529671; GC.start } # crash
- [ruby-dev:28230]
-
-Thu Feb 23 13:23:03 2006 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
-
- * eval.c (SETUP_ARGS0): fixed memory corruption. [ruby-dev:28360]
-
-Wed Feb 22 21:16:55 2006 Tanaka Akira <akr@m17n.org>
-
- * lib/pathname.rb (Pathname#each_filename): use split_names properly.
-
-Wed Feb 22 16:24:05 2006 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * test/webrick/test_cgi.rb: should support platforms which search
- library path from the interpreter's path.
- And, support test without install incidentally.
-
-Wed Feb 22 14:21:03 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * bignum.c (bignorm): x may not be a bignum. [ruby-dev:28367]
-
-Wed Feb 22 09:22:40 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * eval.c (proc_alloc): add proper check for creation of a lambda
- without a block.
-
-Tue Feb 21 02:07:39 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * parse.y (f_arglist): should set command_start = Qtrue for
- command body. [ruby-talk:180648]
-
-Mon Feb 20 22:30:17 2006 Tanaka Akira <akr@m17n.org>
-
- * mkconfig.rb: alias Config to RbConfig for compatibility.
-
-Mon Feb 20 18:21:41 2006 Tanaka Akira <akr@m17n.org>
-
- * io.c (rb_io_reopen): flush before reopening a file.
- reported by Mathieu Bouchard. [ruby-core:7396]
-
-Mon Feb 20 17:29:50 2006 Tanaka Akira <akr@m17n.org>
-
- * mkconfig.rb: generate RbConfig instead of Config.
-
- * instruby.rb, rubytest.rb, runruby.rb, bcc32/Makefile.sub,
- ext/extmk.rb, ext/dl/extconf.rb, ext/iconv/charset_alias.rb,
- lib/mkmf.rb, lib/rdoc/ri/ri_paths.rb,
- lib/webrick/httpservlet/cgihandler.rb,
- test/dbm/test_dbm.rb, test/gdbm/test_gdbm.rb,
- test/ruby/envutil.rb, test/soap/calc/test_calc_cgi.rb,
- test/soap/header/test_authheader_cgi.rb, test/soap/ssl/test_ssl.rb,
- win32/mkexports.rb, win32/resource.rb: Use RbConfig instead of
- Config.
-
-Mon Feb 20 13:46:19 2006 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * lib/find.rb: should raise ENOENT if root entry does not exist,
- without opening it. [ruby-dev:28345]
-
-Mon Feb 20 12:27:53 2006 Kent Sibilev <ksruby@gmail.com>
-
- * lib/rational.rb (Integer::gcd): small typo fix.
- [ruby-core:07395]
-
-Mon Feb 20 10:03:59 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * variable.c (rb_const_get_0): Object should have been the lowest
- in const lookup precedence. [ruby-dev:28343]
-
-Mon Feb 20 09:17:11 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/delegate.rb (Delegator): should not delegate "funcall".
-
-Mon Feb 20 09:13:42 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/webrick/httpservlet/cgihandler.rb (WEBrick::HTTPServlet::CGIHandler):
- qualify the access for Config constant. [ruby-dev:28338]
-
- * lib/resolv.rb (Resolv::DNS::Resource::IN::A): qualify
- ClassValue. [ruby-dev:28338]
-
-Mon Feb 20 01:05:27 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/rational.rb (Integer::gcd): replaced by gcd4 in
- [ruby-core:07390]. [ruby-core:07377]
-
-Mon Feb 20 00:57:02 2006 GOTOU Yuuzou <gotoyuzo@notwork.org>
-
- * ext/openssl/ossl.h (OSSL_Debug): should not use __func__.
- [ruby-dev:28339]
-
-Mon Feb 20 00:13:49 2006 Tanaka Akira <akr@m17n.org>
-
- * lib/open-uri.rb: add :ssl_verify_mode option.
- suggested by Will Glynn.
-
- * lib/open-uri.rb: add :ssl_ca_cert option.
-
-Sun Feb 19 04:46:29 2006 Guy Decoux <ts@moulon.inra.fr>
-
- * eval.c: initial value for block_unique must be 1.
- [ruby-talk:180420]
-
-Sat Feb 18 23:58:26 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/tracer.rb (Tracer::Tracer.add_filter): turn on tracer mode
- only when caller() level size is one. [ruby-core:07389]
-
- * lib/rdoc/parsers/parse_rb.rb: need not to require "tracer".
- [ruby-core:07389]
-
- * sample/rtags.rb: ditto.
-
-Sat Feb 18 21:16:27 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * eval.c (rb_obj_instance_eval): RDoc description updated. a
- patch from Ozgur Murat Homurlu <ozgurmurath at gmail.com>.
- [ruby-core:07381]
-
-Sat Feb 18 01:01:17 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * variable.c (rb_const_get_0): skip ruby_wrapper in const search
- to give it lower priority (just above Object). need not to
- change rb_const_defined_0() since it's only a precedence matter;
- they are defined anyway.
-
-Sat Feb 18 00:22:39 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/tracer.rb: merged a minor clarification patch from Daniel
- Berger <Daniel.Berger at qwest.com>. [ruby-core:07376]
-
-Fri Feb 17 17:30:20 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * eval.c (ev_const_get): simplified using rb_const_get_fallback().
-
- * eval.c (ev_const_defined): adopt to ev_const_get() using
- rb_const_defined_fallback().
-
- * variable.c (rb_const_get_fallback): new function to implement
- constant search.
-
- * variable.c (rb_const_defined_fallback): new function to
- implement constant definition check.
-
- * variable.c (rb_const_get_0): adopt to new behavior. constants
- are looked up in the order of: current class, super classes (but
- Object), lexically external classes/modules, and Object.
-
- * variable.c (rb_const_defined_0): ditto.
-
-Fri Feb 17 11:20:53 2006 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
-
- * util.c (ruby_strtod): Float("1e") should fail. [ruby-core:7330]
-
- * pack.c (EXTEND32): unpack("l") did not work where sizeof(long) != 4.
- [ruby-talk:180024]
-
- * pack.c (pack_unpack): fixed integer overflow on template "w".
- [ruby-talk:180126]
-
-Fri Feb 17 09:39:29 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * eval.c (rb_thread_wait_for): sleep should always sleep for
- specified amount of time. [ruby-talk:180067]
-
-Wed Feb 15 16:52:52 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * eval.c (rb_eval): NODE_OP_ASGN1 should allow splat in its
- argument list. [ruby-core:07366]
-
- * parse.y (arg): avoid unnecessary extra argument.
- [ruby-core:07366]
-
- * eval.c (rb_eval): honor visibility on OP_ASGN1 and
- OP_ASGN2. [ruby-core:07366]
-
-Wed Feb 15 15:20:23 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * eval.c (error_line): remove void control path. [ruby-dev:28335]
-
-Wed Feb 15 10:09:51 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * eval.c (yield_under_i): should not pass self as an argument to
- the block for instance_eval. [ruby-core:07364]
-
-Wed Feb 15 09:20:35 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * eval.c (rb_obj_instance_eval): should be no singleton classes for
- true, false, and nil. [ruby-dev:28186]
-
-Tue Feb 14 20:26:00 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * enumerator.c (enumerator_each): return self if no block is
- given. [yarv-dev:882]
-
-Tue Feb 14 18:48:33 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * eval.c (DMETHOD_P): accessing wrong frame. [ruby-dev:28181]
-
- * eval.c (proc_invoke): preserve FRAME_DMETH flag.
-
-Tue Feb 14 15:15:22 2006 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
-
- * ext/zlib/zlib.c: suppress warning on test/zlib. [ruby-dev:28323]
-
-Tue Feb 14 13:47:22 2006 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * win32/win32.c (rb_w32_utime): drop read-only attribute before
- changing file time.
-
-Tue Feb 14 13:38:01 2006 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * win32/Makefile.sub (config.h): should define HAVE_LONG_LONG with
- VC++8.
-
-Tue Feb 14 11:42:38 2006 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * time.c (search_time_t): support non 32bit time_t environments.
-
- * win32/Makefile.sub (config.h): VC++8 has ``long long'' type.
-
- * win32/Makefile.sub (config.h): VC++8's time_t is 64bit value.
-
-Mon Feb 13 18:01:52 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * eval.c (copy_node_scope): remove duplicated semicolons at end.
- a patch from KIMURA Koichi <kimura.koichi at canon.co.jp>.
- [ruby-dev:28332]
-
- * eval.c (VIS_MODE): remove unnecessary argument.
- [ruby-dev:28332]
-
-Mon Feb 13 13:49:48 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * parse.y (parser_parse_string): mention "regexp" in a error
- message. a patch from Mauricio Fernandez <mfp at acm.org>
- [ruby-core:07340]
-
-Mon Feb 13 00:01:32 2006 K.Kosako <sndgk393 AT ybb.ne.jp>
-
- * oniguruma.h: Version 4.0.1
-
- * regparse.c (onig_free_shared_cclass_table): fix memory leaks.
-
- * regcomp.c (optimize_node_left): change from IS_POSIXLINE() to IS_MULTILINE().
-
- * regint.h: rename ANCHOR_ANYCHAR_STAR_PL to ANCHOR_ANYCHAR_STAR_ML.
-
- * regparse.h: ditto.
-
- * regexec.c: ditto.
-
-Sat Feb 11 21:57:29 2006 Masaki Suketa <masaki.suketa@nifty.ne.jp>
-
- * ext/win32ole/win32ole.c: add WIN32OLE.create_guid.
-
- * ext/win32ole/tests/testWIN32OLE.rb: ditto.
-
-Sat Feb 11 01:57:44 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * eval.c (rb_f_autoload): check if ruby_cbase is nil (during
- instance_eval for objects cannot have singleton classes,
- e.g. fixnums and symbols). [ruby-dev:28178]
-
-Fri Feb 10 12:31:05 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * eval.c (rb_eval): should support NODE_ZSUPER in NODE_ITER.
- [ruby-dev:28326]
-
- * eval.c (ZSUPER_ARGS): support macro.
-
-Wed Feb 8 10:26:06 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * gc.c (rb_gc_call_finalizer_at_exit): turn on during_gc while
- invoking finalizers.
-
- * gc.c (rb_gc_finalize_deferred): ditto.
-
-Tue Feb 7 23:03:13 2006 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
-
- * ext/zlib/zlib.c: should not access ruby objects in finalizer.
- [ruby-dev:28286]
-
-Tue Feb 7 18:42:00 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * io.c (rb_write_error2): use fwrite(3) if rb_stderr is not
- updated or is already freed. [ruby-dev:28313]
-
-Mon Feb 6 16:02:51 2006 WATANABE Hirofumi <eban@ruby-lang.org>
-
- * file.c (rb_thread_flock): ERROR_NOT_LOCKED is not an error on Cygwin.
- In such situation, flock() should return 0.
-
-Mon Feb 6 14:36:29 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * eval.c (error_line): include the class name of a surrounding
- method in error position description.
-
-Mon Feb 6 00:14:57 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * enum.c (enum_find_index): a new method Enumerable#find_index.
- [ruby-talk:178495]
-
-Sun Feb 5 23:29:31 2006 Tanaka Akira <akr@m17n.org>
-
- * ruby.h (struct RStruct): embed 3 or less elements structs.
- (RSTRUCT_LEN): defined for accessing struct members.
- (RSTRUCT_PTR): ditto.
-
- * struct.c: use RSTRUCT_LEN and RSTRUCT_PTR.
- (struct_alloc): allocate small structs in embedded format.
- (rb_struct_init_copy): ditto.
-
- * gc.c (gc_mark_children): use RSTRUCT_LEN and RSTRUCT_PTR.
- (obj_free): ditto.
-
- * marshal.c (w_object): use RSTRUCT_LEN and RSTRUCT_PTR.
-
-Sun Feb 5 21:01:49 2006 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
-
- * numeric.c (fix_to_s): removed workaround for radix 2. Historically,
- rb_fix2str could only handle radix 8, 10, 16. (Rev1.37) But for now,
- it can handle radix 2..36. [ruby-Bugs#3438] [ruby-core:7300]
-
-Sun Feb 5 18:49:00 2006 Minero Aoki <aamine@loveruby.net>
-
- * lib/net/http.rb (add_field, get_fields): keep 1.8.2
- compatibility. This patch is contributed by Rob Pitt.
-
-Sun Feb 5 16:33:50 2006 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
-
- * lib/mkmf.rb (create_makefile): Kernel#sub! was removed on HEAD.
-
-Sun Feb 5 14:26:54 2006 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
-
- * lib/pstore.rb: should return default value if name is not found.
- [ruby-core:7304]
-
- * lib/pstore.rb: should raise PStore::Error if not in transaction.
-
-Sat Feb 4 22:51:43 2006 Tanaka Akira <akr@m17n.org>
-
- * eval.c: apply the FreeBSD getcontext/setcontext workaround
- only before FreeBSD 7-CURRENT.
-
-Sat Feb 4 21:10:06 2006 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * win32/win32.c (LK_ERR): ERROR_NOT_LOCKED is not an error.
- In such situation, flock() should return 0.
-
-Sat Feb 4 15:52:56 2006 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
-
- * numeric.c (fix_to_s): (2**32).to_s(2) fails with exception where
- sizeof(int) == 4 < sizeof(long). [ruby-core:7300]
-
-Sat Feb 4 15:02:05 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * oniguruma.h: merge Oniguruma 4.0.0 [ruby-dev:28290]
-
-Fri Feb 3 19:25:53 2006 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
-
- * ruby.h: fixed prototype.
-
- * ext/syck/rubyext.c: defined symbol ID as global variable as others.
-
-Fri Feb 3 17:57:02 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * eval.c: unify ruby_class (for method definition) and ruby_cbase
- (for constant reference).
-
-Fri Feb 3 15:02:10 2006 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
-
- * ext/syck/syck.c (syck_move_tokens): should reset p->cursor or etc
- even if skip == 0. This causes buffer overrun.
- (ex: YAML.load('--- "..' + '\x82\xA0' * 511 + '"'))
-
-Fri Feb 3 00:01:31 2006 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
-
- * ext/syck/emitter.c (syck_emitter_write): should not set '\0' on
- emitter's marker. if marker points to the end of buffer, this is
- buffer overrun. (ex: YAML.dump("." * 12288))
-
-Thu Feb 2 17:13:01 2006 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * lib/rdoc/parsers/parse_rb.rb (RDoc::RubyParser#get_tk): added
- support of :'string' style Symbol.
-
-Thu Feb 2 16:01:24 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * eval.c (rb_call0): use TMP_ALLOC() instead of allocating
- a temporary array object.
-
- * eval.c (eval): need not to protect $SAFE value.
- [ruby-core:07177]
-
- * error.c (Init_Exception): change NameError to direct subclass of
- Exception so that default rescue do not handle it silently.
-
-Thu Feb 2 14:45:53 2006 Ville Mattila <ville.mattila@stonesoft.com>
-
- * configure.in: The isinf is not recognized by autoconf
- library guesser on solaris 10. [ruby-core:7138]
-
-Wed Feb 1 22:01:47 2006 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
-
- * configure.in, hash.c (ruby_setenv): use setenv(3) and unsetenv(3)
- where they are supported. modifying environ variable seems to
- segfault solaris 10. [ruby-core:7276] [ruby-dev:28270]
-
- * ruby.c (set_arg0): if use setenv(3), environ space cannot be used
- for altering argv[0].
-
-Tue Jan 31 14:46:28 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * struct.c (rb_struct_select): update RDoc description.
- [ruby-core:7254]
-
-Tue Jan 31 11:58:51 2006 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/lib/multi-tk.rb: add MultiTkIp#eval and bg_eval.
-
- * ext/tk/lib/tk/namespace.rb: TkNamespace#eval was enbugged at the
- last commit. Now it will return a proper object.
-
-Tue Jan 31 08:07:02 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * numeric.c (int_upto): return an enumerator if no block is
- attached to the method.
-
- * numeric.c (int_downto): ditto.
-
- * numeric.c (int_dotimes): ditto.
-
- * enum.c (enum_first): new method Enumerable#first to take first n
- elements from an enumerable.
-
- * enum.c (enum_group_by): new method Enumerable#group_by that
- groups enumerable values according to their block values.
-
-Tue Jan 31 00:08:22 2006 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
-
- * ext/syck/rubyext.c (syck_resolver_transfer): workaround for SEGV.
- ex: ruby -ryaml -e 'YAML.load("!map:B {}")' [ruby-core:7217]
-
-Sat Jan 28 07:49:30 2006 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
-
- * lib/rdoc/usage.rb: support "a:0:33" style caller[-1]. In this case
- file name is "a:0". I don't know this really happens though...
- [ruby-Bugs:3344]
-
-Thu Jan 26 15:55:52 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * ext/socket/socket.c: turn on do_not_reverse_lookup by default.
-
-Wed Jan 25 22:29:04 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * configure.in, dln.c, file.c, intern.h, missing.h (eaccess): use
- system routine if provided. fixed: [ruby-core:07195]
-
-Sun Jan 22 23:27:13 2006 Go Noguchi <gonoguti@yahoo.co.jp>
-
- * lib/test/unit/autorunner.rb (process_args): ignore arguments after
- '--' so that test scripts can handle them. fixed: [ruby-dev:28258]
-
-Sun Jan 22 22:09:52 2006 Tanaka Akira <akr@m17n.org>
-
- * eval.c (POST_GETCONTEXT): define separately from PRE_GETCONTEXT on
- IA64 to avoid reusing variable address.
-
-Sun Jan 22 20:03:35 2006 Tanaka Akira <akr@m17n.org>
-
- * eval.c (ruby_setjmp): define PRE_GETCONTEXT and POST_GETCONTEXT
- instead of FUNCTION_CALL_MAY_RETURN_TWICE.
- define PRE_GETCONTEXT to clear carry flag for workaround of
- FreeBSD/i386 getcontext/setcontext bug.
- [ruby-dev:28263]
-
-Thu Jan 19 22:19:18 2006 Minero Aoki <aamine@loveruby.net>
-
- * lib/fileutils.rb (mv): should remove file after copying.
- [ruby-dev:28223]
-
-Wed Jan 18 23:37:06 2006 Tanaka Akira <akr@m17n.org>
-
- * eval.c (FUNCTION_CALL_MAY_RETURN_TWICE): don't clobber %l7 of SPARC
- if enable-shared.
- (ruby_setjmp): call FUNCTION_CALL_MAY_RETURN_TWICE after getcontext
- too.
- reported by Pav Lucistnik and Marius Strobl.
- http://lists.freebsd.org/pipermail/freebsd-sparc64/2006-January/003739.html
-
-Tue Jan 17 23:59:56 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * object.c (rb_mod_const_get, rb_mod_const_defined): added optional
- flag to search ancestors, which is defaulted to true.
- fixed: [ruby-talk:175899]
-
- * eval.c (rb_mod_method_defined): ditto.
-
-Tue Jan 17 11:31:47 2006 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * win32/setup.mak (MAKE): workaround for nmake 8.
-
-Tue Jan 17 11:06:19 2006 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * win32/Makefile.sub: invoke .bat via shell. workaround for nmake 8.
-
-Mon Jan 16 10:13:38 2006 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
-
- * ext/syck/emitter.c (syck_emit_seq, syck_emit_map, syck_emit_item):
- should output complex key mark even if map's key is empty seq/map.
- [ruby-core:7129]
-
-Sat Jan 14 03:38:54 2006 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
-
- * file.c (rb_file_s_chmod): avoid warning where sizeof(int) !=
- sizeof(void*).
-
-Fri Jan 13 19:26:15 2006 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
-
- * lib/rdoc/diagram.rb:
- - properly quote bare element attributes
- - terminates dangling elements (e.g. <img>, <br>, <link>, etc)
- - converts "CVS" to the more HTML-friendly acronym element
- - adds missing type attributes to style elements
-
- based on Paul Duncan's patch <pabs@pablotron.org> [ruby-core:7028]
-
- * lib/rdoc/generators/html_generator.rb: ditto.
- * lib/rdoc/generators/template/html/hefss.rb: ditto.
- * lib/rdoc/generators/template/html/html.rb: ditto.
- * lib/rdoc/generators/template/html/kilmer.rb: ditto.
-
-Thu Jan 12 11:53:08 2006 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/sample/tkballoonhelp.rb: [bug fix] couldn't add to a widget
- which is constructed with TkComposite module.
- [new feature] support 'command' option which is called just before
- popping up the balloon help.
-
-Wed Jan 11 00:12:29 2006 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
-
- * lib/erb.rb (ERB::Compiler): add instance variable @insert_cmd to
- change <%='s behavior.
-
-Tue Jan 10 19:42:33 2006 Tanaka Akira <akr@m17n.org>
-
- * gc.c (garbage_collect): mark ruby_current_node.
- if an exception is raised in a finalizer written in C called by
- rb_gc_call_finalizer_at_exit, ruby_set_current_source may use
- collected ruby_current_node and mark_source_filename may corrupt
- memory.
-
-Tue Jan 10 13:30:34 2006 akira yamada <akira@ruby-lang.org>
-
- * ext/syck/rubyext.c (syck_resolver_transfer): should be able to load
- !ruby/object:Bignum syntax 1.8.3 dumped. [ruby-core:6159]
-
-Tue Jan 10 12:47:41 2006 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
-
- * lib/yaml/rubytypes.rb (Fixnum): Bignum could not be loaded in
- ruby 1.8.3/1.8.4. [ruby-core:6115]
-
- * lib/yaml/rubytypes.rb (Numeric): Subclass of Numeric could not
- be dumped properly. [ruby-core:7047]
-
-Tue Jan 10 12:00:48 2006 Aaron Schrab <aaron @nospam@ schrab.com>
-
- * lib/yaml/rubytypes.rb (Symbol#yaml_new): YAML loading of quoted
- Symbols broken. [ruby-Bugs:2535]
-
-Tue Jan 10 07:26:52 2006 Tanaka Akira <akr@m17n.org>
-
- * gc.c (gc_stress): renamed from always_gc and enabled by default.
- (gc_stress_get): new function for GC.stress.
- (gc_stress_set): new function for GC.stress=.
-
-Mon Jan 9 19:58:56 2006 arton <artonx@yahoo.co.jp>
-
- * ext/zlib/extconf.rb: zlib compiled DLL version 1.2.3 distributed by
- http://www.zlib.net/ has zdll.lib. [ruby-dev:28209]
-
-Mon Jan 9 14:25:00 2006 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
-
- * win32/Makefile.sub (OPTFLAGS): I have experienced trouble on y- flag,
- (VisualC++6) so use -O2b2xg- if $(MSC_VER) < 1400. [ruby-core:7040]
-
-Mon Jan 9 14:25:00 2006 Kero van Gelder <rubyforge @nospam@ kero.tmfweb.nl>
-
- * lib/webrick/httpservlet/filehandler.rb: fixed typo. [ruby-core:7075]
-
-Sun Jan 8 14:15:27 2006 Tanaka Akira <akr@m17n.org>
-
- * eval.c (GCC_VERSION_BEFORE): check __INTEL_COMPILER.
- Intel C++ Compiler defines __GNUC__.
- http://www.intel.com/software/products/compilers/clin/docs/ug_cpp/lin1077.htm
-
-Sat Jan 7 15:40:07 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * parse.y (singleton): get rid of segfault on syntax error.
- fixed: [ruby-core:07070]
-
-Sat Jan 7 06:24:18 2006 Tanaka Akira <akr@m17n.org>
-
- * eval.c (rb_fd_isset): compare the result of FD_ISSET with 0 to
- avoid FreeBSD bug. FreeBSD defines FD_ISSET as just a bitmap of
- unsigned long. So returning the value from rb_fd_isset discards
- upper 32bits on LP64 environment.
- http://www.freebsd.org/cgi/query-pr.cgi?pr=ia64/91421
-
-Fri Jan 6 02:20:18 2006 Tanaka Akira <akr@m17n.org>
-
- * configure.in: don't force getcontext on IA64.
-
- * eval.c (ruby_setjmp): add an argument for just before getcontext.
- (THREAD_SAVE_CONTEXT): call rb_thread_save_context just
- before getcontext.
- [ruby-dev:28205]
-
-Sun Jan 1 15:28:46 2006 Tanaka Akira <akr@m17n.org>
-
- * missing.h (isinf): avoid macro expansion
- "extern int isinf(double);" to
- "extern int ((sizeof(double)==sizeof(float))?_Isinff(double):_Isinf(double));" on
- HP-UX.
-
-Sun Jan 1 14:42:54 2006 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
-
- * win32/win32.c (rb_w32_seekdir): should not segfault even if passed
- the location which rb_w32_telldir didn't return. (and should change
- `bits' position) [ruby-core:7035]
-
- * win32/dir.h: ditto. (stores `loc' instead of `bitpos')
-
- * test/ruby/test_dir.rb: added.
-
-Sat Dec 31 22:57:00 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * eval.c (rb_thread_save_context): should not recycle scope object used
- in a thread. fixed: [ruby-dev:28177]
-
-Sat Dec 31 19:50:38 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
-
- * ext/syck/rubyext.c: attribute name was truncated with Rev1.64.
-
-Sat Dec 31 11:53:16 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
-
- * lib/generator.rb: (Generator#initialize): should kill @loop_thread
- before starting new thread. (occurs when called via Generator#rewind)
- [ruby-dev:28184]
-
-Fri Dec 30 18:22:42 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * gc.c (garbage_collect): mark objects referred from aborting threads.
- [ruby-dev:28190]
-
- * win32/Makefile.sub: VC++8 support.
-
-Fri Dec 30 15:17:35 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
-
- * lib/generator.rb (Generator#initialize): ensured to stop @loop_thread.
- Mr. Tanaka pointed out one Thread.pass is not enough. [ruby-dev:28185]
-
-Fri Dec 30 12:20:57 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
-
- * lib/generator.rb (Generator#initialize): fixed dead lock. this occurred
- when end? was called before @loop_thread was stopped. [ruby-core:7029]
-
-Fri Dec 30 01:04:52 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
-
- * lib/generator.rb: should work with another thread. (more robust code)
- [ruby-dev:28177]
-
-Thu Dec 29 23:59:37 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * eval.c (rb_gc_mark_threads): keep unmarked threads which won't wake
- up alone, and mark threads in the loading table. [ruby-dev:28154]
-
- * eval.c (rb_gc_abort_threads), gc.c (gc_sweep): kill unmarked
- threads. [ruby-dev:28172]
-
-Thu Dec 29 17:02:07 2005 Tanaka Akira <akr@m17n.org>
-
- * test/ruby/envutil.rb (EnvUtil.rubybin): search "ruby" instead of
- "miniruby". [ruby-dev:28140]
-
-Thu Dec 29 14:35:10 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * eval.c (rb_mod_define_method): should save safe_level in the
- proc object. [ruby-dev:28146]
-
-Thu Dec 29 11:22:34 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
-
- * lib/generator.rb: reimplemented Generator class with Thread instead of
- callcc, in order to fix memory leak. [ruby-dev:28142]
-
-Wed Dec 28 14:10:05 2005 Tanaka Akira <akr@m17n.org>
-
- * ia64.s: remove .pred.safe_across_calls directive.
- reported by WATANABE Tetsuya. [ruby-dev:28141]
-
-Wed Dec 28 01:32:39 2005 Tanaka Akira <akr@m17n.org>
-
- * eval.c (struct thread): add bstr_max.
- (rb_thread_save_context): use realloc instead of REALLOC_N
- to avoid GC.
-
-Tue Dec 27 23:59:53 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/optparse.rb (CompletingHash#match): fix for 1.9.
-
-Tue Dec 27 16:59:52 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * test/drb/drbtest.rb (DRbService::self.ext_service): increase
- timeout limit. a patch from Kazuhiro NISHIYAMA
- <zn at mbf.nifty.com>. [ruby-dev:28132]
-
-Tue Dec 27 14:17:55 2005 Tanaka Akira <akr@m17n.org>
-
- * configure.in: define IA64 for portability. (HP aC++/ANSI C doesn't
- define __ia64__.)
- don't check libunwind stuff.
- check __libc_ia64_register_backing_store_base.
-
- * defines.h: declare rb_ia64_bsp and rb_ia64_flushrs.
- (flush_register_windows): call rb_ia64_flushrs on IA64.
-
- * ia64.s: new file for IA64.
- it is separated from C program files because
- Intel C++ Compiler for IA64 doesn't support inline assembly.
-
- * common.mk (ia64.$(OBJEXT)): new target.
-
- * ruby.h (RUBY_INIT_STACK): defined.
- (ruby_init_stack): declared for RUBY_INIT_STACK.
-
- * main.c (main): precedes RUBY_INIT_STACK before ruby_init.
-
- * gc.c (rb_gc_register_stack_start): new global variable on IA64.
- (garbage_collect): simplify register stack marking code.
- don't use libunwind.
- (Init_stack): initialize rb_gc_register_stack_start.
- (ruby_init_stack): new function for RUBY_INIT_STACK.
-
- * eval.c (struct thread): add bstr_pos member for original position of
- register stack.
- (rb_thread_save_context): simplify register stack saving code.
- don't use libunwind.
- (rb_thread_restore_context_0): new function. moved from
- rb_thread_restore_context except the stack position checking code.
- don't use libunwind for IA64 register stack.
- (register_stack_extend): new function.
- (stack_extend): make it self-recursive with
- the stack position checking code in old rb_thread_restore_context.
- (rb_thread_restore_context): just call stack_extend.
- (flush_register_windows): removed.
-
- [ruby-dev:28127]
-
-Tue Dec 27 14:09:39 2005 Minero Aoki <aamine@loveruby.net>
-
- * process.c: new method Process.exec. [ruby-dev:28107]
-
-Tue Dec 27 08:22:15 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
-
- * ext/openssl/lib/openssl/ssl.rb (OpenSSL::SSL::SSLSocket#post_connection_check):
- treat wildcard character in commonName. [ruby-dev:28121]
-
-Mon Dec 26 08:50:36 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * eval.c (ev_const_get): fixed a bug in constant reference during
- instance_eval. [yarv-dev:707]
-
- * eval.c (ev_const_defined): ditto.
-
- * lib/yaml.rb (YAML::add_domain_type): typo fixed. a patch from
- Joel VanderWerf <vjoel at path.berkeley.edu>.
- [ruby-talk:165285] [ruby-core:6995]
-
-Fri Dec 23 10:30:23 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * ext/digest/sha2/sha2.c (ULL): support AIX C. a patch from
- Kailden <kailden at gmail.com>. [ruby-core:06984]
-
-Wed Dec 21 16:47:35 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
-
- * file.c (w32_io_info): should return handle because FileIndex is
- valid only while file is open. [ruby-dev:28088]
-
-Wed Dec 21 12:12:21 2005 Tanaka Akira <akr@m17n.org>
-
- * test/pathname/test_pathname.rb (test_kernel_open): use
- File.identical?.
- [ruby-talk:171804]
-
-Tue Dec 20 22:41:17 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * eval.c (eval_under_i): evaluate source in caller's frame.
- [ruby-dev:28076]
-
-Tue Dec 20 12:53:23 2005 why the lucky stiff <why@ruby-lang.org>
-
- * ext/syck/rubyext.c (syck_emitter_reset): to ensure compatibility
- with previous Ruby versions, documents are no longer headless.
-
-Tue Dec 20 12:33:01 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
-
- * ext/syck/rubyext.c (syck_node_transform): ruby object holding
- explicitly freed SyckNode caused SEGV. [ruby-dev:28067]
-
- ... I think syck GC problem was solved now!
-
-Tue Dec 20 01:46:48 2005 Tanaka Akira <akr@m17n.org>
-
- * io.c (rb_f_backquote): fix a GC problem on
- IA64 with gcc 4.0.3 20051216 (prerelease) -O3.
-
-Mon Dec 19 23:32:39 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * Makefile.in (XCFLAGS): separated as well as win32/Makefile.sub.
-
- * main.c (always_gc): dllimport is required for VC to import a DLL
- symbol. fixed: [ruby-dev:28051]
-
- * parse.y (rb_symname_p): fixed wrong validation. [ruby-dev:28047]
-
-Mon Dec 19 23:09:24 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
-
- * st.c: uses malloc instead of xmalloc to avoid GC. syck uses st_insert
- in gram.c to insert node from rb_syck_bad_anchor_handler into
- SyckParser's hash table. if GC occurs in st_insert, it's not under
- SyckParser's mark system yet. so RString can be released wrongly.
-
- * ext/syck/syck.h (S_FREE): small hack. no need to check if pointer is
- NULL or not before S_FREE.
-
- * ext/syck/rubyext.c (syck_parser_assign_io): rb_check_string_type can
- return new RString. if so, it becomes unreachable from GC after
- returns syck_parser_assign_io, and can be freed by GC. (dangling
- in syck io system) so extends its life time till syck_parse is called.
-
- * ext/syck/rubyext.c (syck_parser_s_alloc): always allocates bonus,
- so no need to check if NULL, and "volatile VALUE hash"
- is not needed. (bonus->port was not protected in syck_emitter_reset)
-
- * ext/syck/rubyext.c (syck_mark_parser): ditto.
-
- * ext/syck/rubyext.c (syck_parser_load): ditto.
-
- * ext/syck/rubyext.c (syck_parser_load_documents): ditto.
-
- * ext/syck/rubyext.c (syck_emitter_s_alloc): ditto.
-
- * ext/syck/rubyext.c (syck_mark_emitter): ditto.
-
- * ext/syck/rubyext.c (syck_emitter_reset): ditto.
-
- * ext/syck/rubyext.c (syck_scalar_value_set): "should set newly
- allocated memory instead of RString's internal storage" stuff again.
- by this, should call syck_free_node instead of rb_syck_free_node.
-
- * ext/syck/rubyext.c (syck_node_type_id_set): ditto.
-
- ... I believe syck GC problem was solved by this.
-
-Mon Dec 19 12:20:59 2005 Tanaka Akira <akr@m17n.org>
-
- * eval.c (FUNCTION_CALL_MAY_RETURN_TWICE): activate only
- before gcc 4.0.3 on SPARC and IA64.
-
-Mon Dec 19 11:37:47 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
-
- * ext/syck/rubyext.c: sorry, I reverted my "should set newly
- allocated memory instead of RString's internal storage" stuff.
- node allocated in rubyext.c seems to be freed by rb_syck_free_node
- not syck_free_node, and it won't free data.str->ptr and type_id.
-
- (I still think this is unsafe because RString(foo)->ptr becomes
- dangling pointer when RString is modified or freed, but anyway
- I misunderstood, so go back to original code for now)
-
-Sat Dec 17 21:50:41 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
-
- * ext/syck/rubyext.c (syck_emitter_reset): should initialize
- emitter->bonus->oid. otherwise rb_gc_mark crashes.
-
- * ext/syck/rubyext.c (syck_mark_parser): should mark anchor nodes
- because they hold ruby objects. (ie: rb_syck_bad_anchor_handler)
-
-Sat Dec 17 11:00:17 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * ext/syck/rubyext.c (rb_syck_compile): avoid potential memory
- leak.
-
- * ext/syck/rubyext.c (syck_set_ivars): avoid potential memory
- leak by explicit symbol allocation.
-
-Sat Dec 17 03:57:01 2005 Tanaka Akira <akr@m17n.org>
-
- * bignum.c (rb_big_rshift): fix a GC problem on
- IA64 with gcc 4.0.3 20051216 (prerelease).
-
-Sat Dec 17 03:30:23 2005 Tanaka Akira <akr@m17n.org>
-
- * eval.c (bmcall): fix a GC problem by tail call on
- IA64 with gcc 4.0.3 20051216 (prerelease).
-
-Fri Dec 16 17:53:45 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
-
- * ext/syck/rubyext.c (rb_syck_compile): fixed memory leak.
-
- * ext/syck/rubyext.c: should protect global variable from GC.
-
-Fri Dec 16 11:44:43 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
-
- * ext/syck/rubyext.c (syck_resolver_tagurize): fixed memory leak.
-
- * ext/syck/rubyext.c (syck_node_type_id_set): should set newly
- allocated memory instead of RString's internal storage.
-
- * ext/syck/rubyext.c (syck_scalar_value_set): ditto.
-
- ... these fixes won't fix [ruby-dev:27839]. more work is needed.
-
-Fri Dec 16 04:38:55 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/delegate.rb (Delegator::method_missing): should delegate
- block as well.
-
-Thu Dec 15 19:57:12 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/cgi.rb (CGI::QueryExtension::MorphingBody): fix criteria to
- use Tempfile. A fix from Zev Blut <rubyzbibd at ubit.com>.
- [ruby-core:06076]
-
- * string.c: remove global functions work on $_.
-
-Thu Dec 15 12:35:14 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/tmpdir.rb: merged RDoc patch from Eric Hodel <drbrain at
- segment7.net>. [ruby-core:06894]
-
-Thu Dec 15 01:33:31 2005 Tanaka Akira <akr@m17n.org>
-
- * ext/zlib/zlib.c (zstream_run): fix a GC problem by tail call on
- x86_64 with gcc 4.0.3 20051111 (prerelease) (Debian 4.0.2-4)
-
-Wed Dec 14 23:50:20 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/rdoc/parsers/parse_c.rb (find_class_comment): fix for class
- document with prototypes. [ruby-core:06863]
-
-Wed Dec 14 23:39:53 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * dir.c (has_magic): glob names contain alphabets to enable case fold
- search. [ruby-dev:27735]
-
- * dir.c (Init_Dir): FNM_SYSCASE which is default case fold flag.
- [ruby-dev:23296]
-
-Wed Dec 14 12:01:26 2005 Tanaka Akira <akr@m17n.org>
-
- * marshal.c (r_object0): fix a GC problem for reading a bignum on
- IA64 with gcc 3.3.5 (Debian 1:3.3.5-13).
-
-Tue Dec 13 12:23:47 2005 Tanaka Akira <akr@m17n.org>
-
- * re.c (rb_reg_regcomp): fix a GC problem on x86_64 with
- gcc 3.3.5 (Debian 1:3.3.5-13).
-
-Tue Dec 13 01:44:16 2005 Tanaka Akira <akr@m17n.org>
-
- * array.c (rb_ary_diff): fix a GC problem on IA64 with
- gcc 3.3.5 (Debian 1:3.3.5-13).
- When rb_ary_push is called, there was no register which contains
- `hash' but `&RHASH(hash)->tbl' instead.
-
-Tue Dec 13 00:08:09 2005 Tanaka Akira <akr@m17n.org>
-
- * sprintf.c (rb_str_format): fix a GC problem.
- [ruby-dev:28001]
-
-Mon Dec 12 15:51:22 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
-
- * test/openssl/test_ssl.rb (test_parallel): call GC.start to close
- unused files. [ruby-dev:27981]
-
-Mon Dec 12 09:58:09 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * range.c (range_cover): new method Range#cover? added. the
- method name might be changed. thanks to takano32 at
- http://www.rubyist.net/~matz/20051210.html#c08 for name
- suggestion. [ruby-talk:167182]
-
-Mon Dec 12 00:33:56 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * ext/digest/digest.c (rb_digest_base_s_digest): add volatile to
- protect temporary context object. [ruby-dev:27979]
-
- * ext/iconv/iconv.c (Init_iconv): rb_gc_register_address() should
- be called before actual variable initialization.
- [ruby-dev:27986]
-
-Sun Dec 11 23:54:07 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/*: update to support libraries in ActiveTcl8.4.12.0
- (see ext/tk/ChangeLog.tkextlib).
-
- * ext/tk/sample/scrollframe.rb: add a new sample.
-
-Sun Dec 11 22:07:58 2005 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
-
- * test/rinda/test_rinda.rb (test_remote_array_and_hash): pseudo remote
- objects are protected against GC. [ruby-dev:27911]
-
-Sat Dec 10 01:06:06 2005 Keiju Ishitsuka <keiju@ruby-lang.org>
-
- * lib/matrix.rb: add Matrix#determinant_e, Matrix#rank_e.
- [ruby-dev:27820] and related thread.
-
-Sat Dec 10 00:31:42 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * eval.c (calling_scope_t): gave names to magic numbers for rb_call().
- [ruby-dev:27978]
-
-Fri Dec 9 23:31:02 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/rexml/encoding.rb (encoding=): give priority to particular
- conversion to iconv. [ruby-core:06520]
-
-Fri Dec 9 23:16:51 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * range.c (range_include): return false unless included in numeric
- range. fixed: [ruby-dev:27975]
-
-Thu Dec 8 02:07:19 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * eval.c (umethod_bind): adjust invoking class for module method.
- [ruby-dev:27964]
-
-Thu Dec 8 00:40:52 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * eval.c (call_trace_func): klass parameter should be a
- class/module that defines calling method. [ruby-talk:169307]
-
-Wed Dec 7 17:10:27 2005 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
-
- * sprintf.c (rb_f_sprintf): [ruby-dev:27967]
-
-Wed Dec 7 16:39:18 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * range.c (range_include): use discrete membership for non Numeric
- values, for example, String.
-
- * numeric.c (num_scalar_p): new method. [ruby-dev:27936]
-
- * lib/complex.rb (Complex#scalar?): ditto.
-
-Wed Dec 7 15:31:35 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * sprintf.c (rb_str_format): integer overflow check added.
-
- * sprintf.c (GETASTER): ditto.
-
-Wed Dec 7 01:02:04 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/README.macosx-aqua: [new document] tips to avoid the known
- bug on platform specific dialogs of Tcl/Tk Aqua on MacOS X.
-
- * ext/tk/tcltklib.c: fix bug on switching threads and waiting on the
- deleted interpreter on vwait and tkwait command.
-
- * ext/tk/lib/multi-tk.rb: kill the meaningless loop for the deleted Tk
- interpreter.
-
- * ext/tk/sample/demos-jp/image3.rb: [bug fix] wrong argument.
-
- * ext/tk/sample/demos-en/image3.rb: ditto.
-
- * ext/tk/sample/demos-jp/menu.rb: fix message for MacOS X.
-
- * ext/tk/sample/demos-jp/menu8x.rb: ditto.
-
- * ext/tk/sample/demos-en/menu.rb: ditto.
-
-Tue Dec 6 16:48:40 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * gc.c (ruby_xmalloc2): change check condition for integer
- overflow. [ruby-dev:27399]
-
- * gc.c (ruby_xrealloc2): ditto.
-
-Tue Dec 6 16:37:57 2005 Yuya Nishida <yuya@j96.org>
-
- * eval.c (exec_under): avoid accessing ruby_frame->prev.
- [ruby-dev:27948]
-
-Fri Dec 2 19:06:06 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
-
- * dir.c (Compare): should not fold double byte alphabet on win9x.
-
-Thu Dec 1 00:50:33 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * eval.c (rb_funcall2): allow to call protected methods.
- fixed: [ruby-dev:27890]
-
-Wed Nov 30 23:52:17 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * parse.y (struct parser_params): fields common to ripper must be
- placed at each same offset.
-
- * parse.y (NEWHEAP, ADD2HEAP): set count after pointer was set.
- fixed: [ruby-dev:27896]
-
-Wed Nov 30 13:43:07 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * misc/ruby-mode.el (ruby-expr-beg): support $! at the end of
- expression. [ruby-dev:27868]
-
-Tue Nov 29 23:57:05 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * parse.y (struct parser_params): heap must be placed at same offset
- also in ripper.y. fixed: [ruby-dev:27846]
-
- * parse.y (yycompile): prevent vparser from tail call optimization.
- fixed: [ruby-dev:27851]
-
- * parse.y (parser_mark): value needs to be marked.
- fixed: [ruby-dev:27845]
-
-Tue Nov 29 22:45:30 2005 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
-
- * lib/drb/observer.rb (notify_observers): follow change of observer.rb.
- fixed: [ruby-core:6796]
-
-Mon Nov 28 20:24:22 2005 Tanaka Akira <akr@m17n.org>
-
- * lib/pp.rb (PP::PPMethods#object_address_group): mask an address with
- word size.
-
- * lib/pp.rb (PP::PPMethods#object_address_group): adjust address format.
-
-Mon Nov 28 18:55:22 2005 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * ext/socket/socket.c (init_inetsock_internal): remove setting
- SO_REUSEADDR option on server socket on Cygwin.
- fixed: [ruby-core:6765] ([ ruby-Bugs-2872 ])
-
-Mon Nov 28 13:11:45 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
-
- * win32/win32.c (rb_w32_strerror): remove all CR and LF. (avoid broken
- error message on bccwin32 + winsock)
-
-Mon Nov 28 09:15:50 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
-
- * lib/mkmf.rb (create_makefile): should not change sodir with
- dir.gsub!. (bccwin32 failed to install third party extensions)
- [ruby-dev:27834]
-
-Sun Nov 27 05:37:20 2005 Tanaka Akira <akr@m17n.org>
-
- * lib/pathname.rb: use File.basename to decompose pathnames.
- experimental Windows support.
-
-Sun Nov 27 00:56:13 2005 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
-
- * lib/wsdl/xmlSchema/complexContent.rb: missing
- ComplexContent#elementformdefault method.
-
-Sat Nov 26 19:57:45 2005 WATANABE Hirofumi <eban@ruby-lang.org>
-
- * dln.c (conv_to_posix_path): should initialize posix.
-
-Fri Nov 25 20:34:56 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/xmlrpc/datetime.rb (DateTime::to_a): comparison with non
- array-convertible object must return false.
-
-Fri Nov 25 14:34:09 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * range.c (range_max): treat end exclusion without iteration if
- the end value is an integer. [ruby-talk:167433]
-
-Fri Nov 25 12:52:57 2005 Kouhei Sutou <kou@cozmixng.org>
-
- * lib/rss/rss.rb: added backward compatibility codes.
- * lib/rss/parser.rb: ditto.
- * test/rss/test_parser.rb: ditto.
- * test/rss/test_2.0.rb: ditto.
-
- * test/rss/test_content.rb: use #__send__ instead of #funcall for
- no private method.
-
-Fri Nov 25 12:39:56 2005 Kouhei Sutou <kou@cozmixng.org>
-
- * lib/rss/rss.rb: improved type conversion.
- * lib/rss/1.0.rb: ditto.
- * lib/rss/0.9.rb: ditto.
- * lib/rss/2.0.rb: ditto.
- * lib/rss/image.rb: ditto.
- * lib/rss/syndication.rb: ditto.
-
- * test/rss/test_2.0.rb: added type conversion tests.
- * test/rss/test_accessor.rb: ditto.
- * test/rss/test_to_s.rb: ditto.
- * test/rss/test_syndication.rb: ditto.
- * test/rss/test_setup_maker_2.0.rb: ditto.
- * test/rss/test_setup_maker_1.0.rb: ditto.
- * test/rss/test_setup_maker_0.9.rb: ditto.
- * test/rss/test_maker_sy.rb: ditto.
- * test/rss/test_maker_image.rb: ditto.
- * test/rss/test_maker_2.0.rb: ditto.
- * test/rss/test_maker_0.9.rb: ditto.
- * test/rss/test_image.rb: ditto.
-
- * test/rss/test_maker_1.0.rb: use assert instead of assert_equal.
-
- * test/rss/rss-assertions.rb: improved type conversion assertions.
-
-Fri Nov 25 10:38:20 2005 Kouhei Sutou <kou@cozmixng.org>
-
- * lib/rss/image.rb: added Image prefix.
-
- * lib/rss/maker/image.rb: ditto.
-
-Fri Nov 25 10:33:02 2005 Kouhei Sutou <kou@cozmixng.org>
-
- * test/rss/test_2.0.rb: added RSS 2.0 tests.
-
- * test/rss/rss-assertions.rb: extended XML stylesheet assertion.
-
- * lib/rss/0.9.rb: added initialize method.
-
- * test/rss/test_1.0.rb: cleanup.
-
-Fri Nov 25 10:29:48 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * range.c (range_min): use <=> comparison rather than iteration.
- [ruby-talk:167420]
-
- * range.c (range_max): ditto.
-
-Thu Nov 24 01:31:44 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
-
- * file.c (w32_io_info): CreateFile failed on Win9x if file was already
- opened. (FILE_SHARE_READ was needed, but actually I don't understand
- the flags of CreateFile well...)
-
-Wed Nov 23 23:52:35 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * numeric.c (num_div): use floor rather than rb_Integer().
- [ruby-dev:27674]
-
-Wed Nov 23 22:34:15 2005 Kouhei Sutou <kou@cozmixng.org>
-
- * lib/rss/parser.rb: added entity handling type predicate.
- * lib/rss/rexmlparser.rb: ditto.
- * lib/rss/xmlparser.rb: ditto.
- * lib/rss/xmlscanner.rb: ditto.
-
- * lib/rss/xmlscanner.rb: more robust entity handling.
-
- * test/rss/test_parser.rb: added an entity handling test.
-
-Wed Nov 23 20:59:01 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/lib/tk.rb: add Tk.pkgconfig_list and Tk.pkgconfig_get
- [Tk8.5 feature].
-
- * ext/tk/lib/tk/text.rb: supports new indices modifiers on a Text
- widget [Tk8.5 feature].
-
- * ext/tk/lib/tk/virtevent.rb: add TkNamedVirtualEvent.
-
- * ext/tk/lib/tk/autoload.rb: ditto.
-
- * ext/tk/lib/tk/event.rb: add :data key for virtual events [Tk8.5
- feature].
-
-Wed Nov 23 18:52:45 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
-
- * file.c (w32_io_info): should not call GetFileInformationByHandle
- for pipe.
-
- * file.c (w32_io_info): checks return value from rb_w32_get_osfhandle.
-
- * file.c (w32_io_info): now can identify directory on WinNT.
-
-Wed Nov 23 18:46:53 2005 Kouhei Sutou <kou@cozmixng.org>
-
- * lib/rss/: use #__send__ instead of #send.
- * test/rss/: ditto.
-
-Wed Nov 23 18:32:56 2005 Kouhei Sutou <kou@cozmixng.org>
-
- * test/rss/test_taxonomy.rb: use #reject directory.
-
-Wed Nov 23 18:26:00 2005 Kouhei Sutou <kou@cozmixng.org>
-
- * lib/rss/taxonomy.rb: changed class or module prefix to
- Taxonomy from Taxo.
- * lib/rss/maker/taxonomy.rb: ditto.
-
-Wed Nov 23 18:21:11 2005 Kouhei Sutou <kou@cozmixng.org>
-
- * lib/rss/maker/taxonomy.rb: implemented taxonomy module for RSS
- Maker.
- * lib/rss/taxonomy.rb: supported RSS Maker.
- * lib/rss/maker.rb: added taxonomy module support.
-
- * lib/rss/rss.rb: adjusted to other element API.
- * lib/rss/1.0.rb: adjusted to other element API but backward
- compatibility is reserved.
- * lib/rss/0.9.rb: ditto.
-
- * test/rss/test_maker_taxo.rb: added test case for taxonomy module
- for RSS Maker.
- * test/rss/test_setup_maker_1.0.rb: added tests for taxo:topic.
-
- * test/rss/test_setup_maker_1.0.rb: added backward compatibility
- test.
- * test/rss/test_setup_maker_0.9.rb: ditto.
- * test/rss/test_setup_maker_2.0.rb: ditto.
-
- * test/rss/rss-testcase.rb: added convenience method for setting
- up taxo:topic.
- * test/rss/rss-assertions.rb: added assertion for taxo:topic.
-
- * sample/rss/blend.rb: followed new API.
-
-Wed Nov 23 17:42:24 2005 Kouhei Sutou <kou@cozmixng.org>
-
- * lib/rss/rss.rb: fixed a indentation bug.
-
- * lib/rss/taxonomy.rb: fixed <taxo:topic> #to_s bug.
-
- * test/rss/test_taxonomy.rb: added a #to_s test.
-
-Wed Nov 23 03:40:49 2005 Guy Decoux <ts@moulon.inra.fr>
-
- * re.c (KR_REHASH): should cast to unsigned for 64bit CPU.
- [ruby-core:06721]
-
-Wed Nov 23 07:26:44 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
-
- * ext/openssl/extconf.rb: check for X509V3_EXT_nconf_nid.
-
- * ext/openssl/ossl_x509ext.c (MakeX509ExtFactory): should use
- OPENSSL_malloc to allocate X509V3_CTX.
-
- * ext/openssl/ossl_x509ext.c (ossl_x509extfactory_create_ext): use
- X509V3_EXT_nconf_nid to avoid SEGV (and to build extensions which
- values are placed in separate section).
-
- * test/openssl/test_x509ext.rb: new file.
-
-Wed Nov 23 01:22:57 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * file.c (test_identical): test if two files are identical.
-
- * file.c (rb_f_test): support DOSISH systems where st_ino is not
- reliable. fixed: [ruby-core:06672]
-
- * win32.h, win32.c (rb_w32_osid): check the running platform.
-
-Tue Nov 22 23:52:06 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/optparse.rb: match incomplete (in current enconding) multibyte
- string. http://inamode6.tokuhirom.dnsalias.org/show/1551
-
-Tue Nov 22 18:36:11 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
-
- * win32/win32.c (winnt_stat): set mapped errno instead of ENOENT.
-
-Tue Nov 22 14:36:54 2005 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * file.c (rb_file_s_basename): skip slashes just after UNC top slashes.
-
- * test/ruby/test_path.rb (test_dirname, test_basename): follow new
- spec. and add new tests.
-
-Tue Nov 22 13:30:15 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
-
- * win32/win32.c (rb_w32_stat): Dir.chdir('//server/shared');
- p Dir.glob('*') should work on WinNT. (implemented our own
- stat(2) on WinNT) [ruby-list:41552] [ruby-dev:27711]
-
-Tue Nov 22 02:31:53 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/lib/tkextlib/tile.rb: bug fix (Tk::Tile::USE_TTK_NAMESPACE
- is not defined).
-
-Tue Nov 22 01:45:21 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * file.c (rb_file_s_basename): DOSISH_UNC is defined on cygwin but
- DOSISH is not. fixed: [ruby-dev:27797]
-
-Mon Nov 21 22:50:48 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * file.c (rb_path_skip_prefix, rb_file_s_basename): UNC without path
- should not be splitted. fixed: [ruby-dev:27776] [ruby-dev:27786]
-
- * parse.y (dsym): prohibit empty symbol literal by interpolation.
- fixed: [ruby-talk:166529]
-
-Mon Nov 21 16:03:48 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * win32/setup.mk: findstr doesn't exist on win9x.
- fixed: [ruby-dev:27756]
-
-Sun Nov 20 21:39:27 2005 K.Kosako <sndgk393 AT ybb.ne.jp>
-
- * regparse.c (fetch_token_in_cc): tok->escaped should be
- initialized. [ruby-dev:27763]
-
-Sun Nov 20 22:34:06 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * parse.y (rb_symname_p): [ not followed by ] is not valid symbol.
- fixed: [ruby-talk:166520]
-
-Sat Nov 19 19:57:54 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/fileutils.rb (FileUtils::ln): ln documentation fix.
- [ruby-core:06661]
-
-Sat Nov 19 08:19:38 2005 Zach Dennis <zdennis@mktec.com>
-
- * ext/socket/socket.c: Socket Documentation. [ruby-core:6552]
-
-Sat Nov 19 07:34:32 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/lib/tk/font.rb: remove dependency on Ruby's version (1.8
- or 1.9).
-
- * ext/tk/lib/tkextlib/ICONS/icons.rb: ditto.
-
- * ext/tk/sample/tkextlib/treectrl/demo.rb: ditto.
-
-Fri Nov 18 18:07:05 2005 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * file.c (rb_file_s_dirname): should use skipprefix for UNC path.
- pointed out by nobu ([ruby-dev:27744]). fixed: [ruby-core:5076]
-
-Fri Nov 18 17:35:09 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/lib/multi-tk.rb: add restriction to access the entried
- command table and manipulate other IPs (for reason of security).
- Now, a IP object can be controlled by only its master IP or the
- default IP.
-
- * ext/tk/lib/remote-tk.rb: add restriction to manipulate.
-
- * ext/tk/tcltklib.c (ip_is_slave_of_p): add TclTkIp#slave_of?(ip)
- to check manipulability.
-
- * ext/tk/lib/tk.rb: bug fix on handling of Tcl's namespaces.
-
- * ext/tk/lib/tk/namespace.rb: ditto.
-
-Fri Nov 18 16:47:33 2005 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * file.c (rb_file_s_dirname): added checks for some patterns with drive
- letter. fixed: [ruby-dev:27738]
-
- * test/ruby/test_path.rb (test_dirname): added tests for above
- patterns.
-
-Fri Nov 18 12:19:16 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
-
- * win32/win32.h (S_IFIFO): r,w = IO.pipe; r.stat.pipe? now
- returns true on VisualC++6.
-
-Thu Nov 17 17:58:00 2005 Kouhei Sutou <kou@cozmixng.org>
-
- * lib/rss/1.0.rb: added convenience method 'resources'.
-
- * lib/rss/taxonomy.rb: ditto.
-
- * test/rss/rss-assertions.rb: added test for 'resources'.
-
- * test/rss/test_taxonomy.rb: ditto.
-
-Thu Nov 17 17:53:30 2005 Kouhei Sutou <kou@cozmixng.org>
-
- * lib/rss/taxonomy.rb: implemented taxonomy module.
-
- * test/rss/test_taxonomy.rb: added tests for taxonomy support.
-
-Thu Nov 17 17:40:19 2005 Kouhei Sutou <kou@cozmixng.org>
-
- * lib/rss/1.0.rb: added rdf:Bag.
-
-Thu Nov 17 13:52:00 2005 Kouhei Sutou <kou@cozmixng.org>
-
- * lib/rss/rss.rb: removed needless argument 'prefix'.
-
- * lib/rss/parser.rb: ditto.
-
-Wed Nov 16 23:24:17 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * common.mk (static-ruby): overridable.
-
- * ext/extmk.rb (parse_args): force to link extensions statically only
- if static is given for extstatic.
-
- * ext/extmk.rb (RUBY, RUBYW): overridable.
-
-Wed Nov 16 01:29:31 2005 Kouhei Sutou <kou@cozmixng.org>
-
- * lib/rss/trackback.rb: added TrackBack prefix.
-
- * lib/rss/maker/trackback.rb: ditto.
-
-Wed Nov 16 01:26:13 2005 Kouhei Sutou <kou@cozmixng.org>
-
- * lib/rss/rss.rb (RSS::VERSION): 0.1.5 -> 0.1.6.
-
- * test/rss/test_version.rb (RSS::TestVersion#test_version): ditto.
-
-Tue Nov 15 23:54:24 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * file.c (file_load_ok): eaccess() returns 0 on success.
- fixed: [ruby-dev:27713]
-
-Tue Nov 15 16:36:03 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
-
- * array.c (rb_ary_fill): previous commit disabled this usage:
-
- a = [0,1,2,3,4,5,6,7,8,9]
- a.fill {|i| a[i] * 10} #=> [nil, nil, ...., nil]
-
- previous commit has the advantage of early garbage collection, but
- potentially this would break some script. so I reverted behavior.
-
-Tue Nov 15 16:15:23 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * file.c (file_load_ok): use eaccess() instead of actually opening
- the file. [ruby-talk:156378]
-
- * lib/jcode.rb (String::reverse): add new methods.
- [ruby-list:41245]
-
-Tue Nov 15 15:49:34 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
-
- * array.c (rb_ary_fill): tail elements were vanished when the middle
- part of array was filled. (ie: [0,1,2,3,4].fill(-1,2,1) => [0,1,-1])
-
- * test/ruby/test_array.rb (test_fill): added.
-
-Tue Nov 15 14:39:16 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * array.c (rb_ary_fill): should adjust array length correctly when
- an array is expanded in the fill process. [ruby-core:06625]
-
-Mon Nov 14 23:49:57 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * file.c (rb_file_s_readlink): ERANGE will occur only on GPFS.
- [ruby-dev:27699]
-
-Mon Nov 14 17:36:22 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * array.c (rb_ary_first): RDoc update from Daniel Berger
- <djberg96@yahoo.com>. [ruby-core:06577].
-
-Sun Nov 13 10:55:24 2005 Minero Aoki <aamine@loveruby.net>
-
- * lib/uri/common.rb (escape): regard second argument as a
- character set. [ruby-dev:27692]
-
-Sat Nov 12 08:36:40 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * configure.in, eval.c, intern.h: check fd_mask type.
-
- * configure.in (socketpair): need to be checked.
-
-Fri Nov 11 19:53:47 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
-
- * eval.c, intern.h: failed to compile where NFDBITS is defined but
- howmany() is not defined. [ruby-dev:27680]
-
- * io.c (is_socket): failed to compile where S_ISSOCK is not defined.
-
- * io.c (pipe_open): failed to compile where socketpair is not supported.
-
-Fri Nov 11 08:20:56 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * Makefile.in (OUTFLAG): keep trailing spaces. [ruby-dev:27666]
-
- * mkconfig.rb: substitution references added.
-
-Fri Nov 11 07:39:49 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
-
- * configure.in: undef HAVE_LINK on BeOS. (link(2) always returns
- EINVAL, and this causes error in test/fileutils.)
-
- * file.c: override chown(2) and fchown(2) on BeOS. (these functions
- should not change user/group id if -1 is passed as corresponding
- argument, and this causes error in test/fileutils too)
- [ruby-dev:27672]
-
-Thu Nov 10 21:05:03 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/shellwords.rb: fix for blank but not empty string.
- fixed: [ruby-dev:27663]
-
-Wed Nov 9 08:39:38 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/shellwords.rb: refactored. [ruby-core:06581]
-
-Tue Nov 8 17:35:53 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
-
- * intern.h, eval.c (rb_thread_signal_raise): constified.
-
- * signal.c: cosmetic change.
-
-Tue Nov 8 15:32:27 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
-
- * lib/drb/ssl.rb (DRb::SSLConfig#accept): fixed typo.
- [ruby-dev:27560] [ruby-core:4627]
-
-Mon Nov 7 20:54:57 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/iconv/iconv.c: iconvctl() support. [EXPERIMENTAL]
-
-Mon Nov 7 16:23:23 2005 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * ext/openssl/ossl.h: need to include winsock2.h before including
- windows.h by some openssl headers.
-
-Mon Nov 7 13:43:51 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/stubs.c (_nativethread_consistency_check): use simpler
- (low cost) way to check whether the Tcl interpreter was compiled
- with threads enabled of not.
-
- * ext/tk/tcltklib.c: reduce warnings.
-
- * ext/tk/tkutil/tkutil.c: ditto.
-
-Mon Nov 7 00:06:12 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
-
- * lib/yaml.rb: removed :nodoc: to generate Kernel doc. [ruby-core:6324]
-
-Sun Nov 6 23:39:13 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/iconv/iconv.c (Iconv::BrokenLibrary): exception when detected a
- bug of underlying library.
-
-Sun Nov 6 21:43:22 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
-
- * ext/tk/stubs.c (ruby_tcl_create_ip_and_stubs_init): should touch
- interpreter after initialization is done. [ruby-dev:27638]
-
-Sun Nov 6 20:13:27 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * file.c (rb_file_s_readlink): readlink(2) on AIX fails with ERANGE if
- buffer size is less than required. fixed: [ruby-dev:27634]
-
-Sat Nov 5 13:42:50 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * configure.in, cygwin/GNUmakefile.in (mingw): use def file to alias
- symbols. [ruby-dev:27532]
-
- * bcc32/mkexports.rb, win32/mkexports.rb: make aliases in DLL.
-
- * win32/win32.c, win32/win32.h: replace symbols only when RUBY_EXPORT
- is defined.
-
-Thu Nov 3 07:57:39 2005 Minero Aoki <aamine@loveruby.net>
-
- * lib/open-uri.rb (open_loop): find_proxy should return nil when
- proxy does not exist. [ruby-dev:27630]
-
-Wed Nov 2 20:25:28 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/extconf.rb: ext/tk/extconf.rb: change the check parameter
- for Win32.
-
-Wed Nov 2 19:03:06 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/tcltklib.c (ip_rbUpdateObjCmd, ip_rb_threadUpdateObjCmd):
- passed improper flags to DoOneEvent().
-
- * ext/tk/tkutil/tkutil.c: use rb_obj_respond_to() instead of
- rb_respond_to().
-
-Tue Nov 1 14:20:11 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * eval.c (rb_call_super): should call method_missing if super is
- called from Kernel method.
-
- * eval.c (exec_under): frame during eval should preserve external
- information.
-
-Tue Nov 1 10:48:49 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
-
- * ext/openssl/extconf.rb: should check ERR_peek_last_error().
- [ruby-dev:27597]
-
- * ext/openssl/ossl.c (ossl_raise): ditto.
-
-Mon Oct 31 17:34:46 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * configure.in: use proper option for Sun linker. A patch from
- Shinya Kuwamura <kuwa at labs.fujitsu.com>. [ruby-dev:27603]
-
-Mon Oct 31 05:46:08 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
-
- * ext/openssl/ossl_cipher.c (ossl_cipher_update): input data must
- not be empty. [ruby-talk:161220]
-
- * test/openssl/test_cipher.rb: add test for Cipher#update("").
-
-Mon Oct 31 05:38:26 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
-
- * lib/webrick/httpservlet/cgihandler.rb
- (WEBrick::HTTPServlet::CGIHandler#do_GET): the value of Set-Cookie:
- header field should be splited into each cookie. [ruby-Bugs:2199]
-
- * lib/webrick/cookie.rb (WEBrick::Cookie.parse_set_cookie): new method
- to parse the value of Set-Cookie: header field.
-
- * test/webrick/test_cookie.rb, test/webrick/test_cgi.rb,
- test/webrick/webrick.cgi: add some test for cookie.
-
-Mon Oct 31 02:33:25 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * numeric.c (fix_rshift): RDoc fix. [ruby-core:6351]
-
- * util.h (strtod): add #undef for platforms defines strtod()
- macro. [ruby-dev:27563]
-
-Mon Oct 31 02:31:41 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
-
- * test/ruby/test_float.rb (test_precision): test by assert_in_delta.
- [ruby-dev:27575]
-
-Sat Oct 29 01:58:25 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * ext/etc/etc.c: document update from mathew <meta@pobox.com>.
- [ruby-core:06473]
-
- * ext/fcntl/fcntl.c: ditto.
-
-Sat Oct 29 16:56:03 2005 Tadayoshi Funaba <tadf@dotrb.org>
-
- * lib/date.rb: added seven predicates sunday? to saturday?.
-
- * lib/date.rb: added two methods {prev,next}_month,
- that are almost same as << and >>.
-
-Thu Oct 27 20:34:43 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * enumerator.c (enumerator_allocate): allow subclassing.
-
-Thu Oct 27 16:45:31 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * string.c (scan_once): wrong condition to use mbclen2().
- [ruby-dev:27535]
-
-Thu Oct 27 11:53:17 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
-
- * missing.h, missing/memcmp.c, missing/memmove.c:
- ANSI compatible interface.
-
-Wed Oct 26 09:15:48 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
-
- * ext/syck/implicit.c (syck_type_id_to_uri): should return
- newly allocated memory. otherwise, type_id will be freed
- twice. [ruby-dev:27384] [ruby-core:6385]
-
-Wed Oct 26 01:58:19 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * configure.in (RUBY_EXTERN): macro to export symbols in shared
- library. [ruby-core:05528]
-
- * defines.h, {bcc32,win32,wince}/Makefile.sub (RUBY_EXTERN): moved to
- configuration pass.
-
- * ext/extmk.rb (extmake): RUBY_EXTERN for static linked extensions.
-
-Tue Oct 25 20:06:59 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
-
- * ruby.h (Qfalse, Qtrue, Qnil, Qundef): make sure these immediate
- values have VALUE type. there is an environment where sizeof(VALUE)
- != sizeof(int) like IA64. if 32bit integer (Qtrue) is passed to ANYARGS
- and received by 64bit integer (VALUE), upper bits may have garbage value.
- [ruby-dev:27513]
-
-Tue Oct 25 15:32:00 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/rational.rb: applied documentation patch from Gavin Sinclair
- <gsinclair@gmail.com>. [ruby-core:06364]
-
- * lib/irb.rb (IRB::Irb::eval_input): handle prompts with newlines
- in irb auto-indentation mode. [ruby-core:06358]
-
-Tue Oct 25 14:21:46 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
-
- * gc.c (garbage_collect): sorry, previous commit was incorrect.
- [ruby-core:6386]
-
-Tue Oct 25 13:40:16 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
-
- * gc.c (garbage_collect): return now whether there're rooms for new
- objects, rather than whether GC run. fixed: [ruby-core:6376]
-
-Tue Oct 25 02:12:08 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/rdoc/markup/simple_markup.rb (SM::SimpleMarkup::LABEL_LIST_RE):
- reduce redundant backtrack. [ruby-talk:161771]
-
-Tue Oct 25 00:35:33 2005 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
-
- * lib/rinda/*: RDoc documentation from Eric Hodel
- <drbrain@segment7.net> added.
-
-Mon Oct 24 21:14:29 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * configure.in, io.c: use sys/syscall.h if syscall.h is not available.
- [ruby-core:06247]
-
-Mon Oct 24 20:38:25 2005 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * ext/Win32API/lib/win32/resolv.rb (get_info): support multiple DNS.
- fixed: [ruby-list:40058], [ruby-dev:27479]
-
-Mon Oct 24 11:01:11 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/lib/tk/canvas.rb (TkCanvasItemConfig::__item_val2ruby_optkeys):
- typo fixed. [ruby-talk:162187]
-
- * ext/tk/lib/tk/menu.rb (TkMenuEntryConfig::__item_val2ruby_optkeys):
- ditto. [ruby-core:06359]
-
-Mon Oct 24 07:57:56 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * ext/tk/lib/tk/canvas.rb (TkCanvasItemConfig::__item_val2ruby_optkeys):
- typo fixed. [ruby-talk:162187]
-
- * ext/tk/lib/tk/menu.rb (TkMenuEntryConfig::__item_val2ruby_optkeys):
- ditto. [ruby-core:06359]
-
- * lib/matrix.rb (Matrix::initialize): use funcall instead of send
- to allow private methods to be called. A report from
- Jean-Claude Arbaut <jcarbaut@laposte.net>. [ruby-core:06359]
-
-Mon Oct 24 00:41:18 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * time.c (time_sunday): added predicate methods for the days of the
- week. [ruby-list:41340]
-
-Sun Oct 23 07:11:11 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/extconf.rb: improve messages [ruby-core:06325].
-
- * ext/tk/lib/tk.rb, ext/tk/lib/tk/canvas.rb, ext/tk/lib/tk/entry.rb,
- ext/tk/lib/tk/frame.rb, ext/tk/lib/tk/image.rb,
- ext/tk/lib/tk/itemconfig.rb, ext/tk/lib/tk/labelframe.rb,
- ext/tk/lib/tk/listbox.rb, ext/tk/lib/tk/menu.rb,
- ext/tk/lib/tk/radiobutton.rb, ext/tk/lib/tk/scale.rb,
- ext/tk/lib/tk/spinbox.rb, ext/tk/lib/tk/text.rb,
- ext/tk/lib/tk/toplevel.rb: improve conversion of option values.
-
- * ext/tk/lib/tkextlib/*: ditto.
-
- * ext/tk/lib/tkextlib/*: update to support ActiveTcl8.4.11.2.
-
- * ext/tk/lib/tkextlib/trofs/*: support Trofs 0.4.3.
-
- * ext/tk/lib/tkextlib/tile/*: support Tile 0.7.2.
-
- * ext/tk/lib/tkextlib/vu/*: support vu 2.3.0.
-
- * ext/tk/lib/tkextlib/tcllib/*: support Tcllib 1.8 (Tklib 0.3).
-
-Sat Oct 22 23:54:07 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/extmk.rb, lib/mkmf.rb (with_config): support --with-extension
- options. [ruby-dev:27449]
-
-Sat Oct 22 14:25:43 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
-
- * util.[hc] (ruby_add_suffix): constified.
-
- * util.[hc] (ruby_scan_{oct,hex}): fixed typo. (renamed from
- scan_{oct,hex})
-
- * util.c: almostly ANSI styled. (except for functions depending on
- macro and K&R technique)
-
-Sat Oct 22 13:26:57 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * object.c (sym_inspect), parse.y (parser_yylex, rb_symname_p): check
- if valid as a symbol name more strictly. [ruby-dev:27478]
-
- * test/ruby/test_symbol.rb: tests for [ruby-core:03573].
-
- * time.c (rb_strftime): removed meaningless volatile modifiers, and
- concatenate successive nul characters at once. [ruby-dev:27472]
-
- * ext/tk/lib/tk/font.rb, ext/tk/lib/tkextlib/ICONS/icons.rb,
- ext/tk/sample/tkextlib/treectrl/demo.rb, lib/net/imap.rb,
- lib/rss/parser.rb, test/rss/test_content.rb,
- test/rss/test_dublincore.rb, test/rss/test_syndication.rb,
- test/rss/test_trackback.rb, test/ruby/test_eval.rb,
- test/socket/test_socket.rb, test/socket/test_udp.rb:
- Object#fcall was renamed as Object#funcall.
-
-Sat Oct 22 10:08:28 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
-
- * missing.h, missing/*.c: SUSv3 compatible strcasecmp and strncasecmp,
- ANSI compatible strtol and strtoul, and ANSI styled other functions.
-
-Fri Oct 21 19:16:08 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
-
- * rubysig.h (CHECK_INTS): fixed typo. (I believe bit-or is improper)
-
-Fri Oct 21 17:49:32 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * bin/erb (ERB::Main::run): typo fixed. [ruby-core:06337]
-
-Fri Oct 21 15:42:28 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
-
- * intern.h, struct.c (rb_struct_iv_get): constified.
-
- * marshal.c: avoid one VC++6 warning for implicit conversion
- from int to char.
-
- * ruby.h: ANSI styled.
-
- * bcc32/Makefile.sub (HAVE_HYPOT): added.
-
- * ext/socket/extconf.rb: BeOS is only one platform should call
- closesocket, so check __BEOS__ macro directly. (I was worried
- accidently HAVE_CLOSESOCKET is defined on windows again because
- it has it)
-
- * ext/socket/{getaddrinfo.c,socket.c}: ditto.
-
- ... these are all cosmetic changes.
-
-Fri Oct 21 15:23:23 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
-
- * bignum.c (bignew_1): convertion from `int' to `char' discards
- upper bits, (ie. (char)0xff00 -> 0) so it's better to test if
- nonzero and set 0 or 1 instead of simply casting ... as a flag usage.
- (but I believe this won't cause actual bug in current implementation)
- [ruby-dev:27055]
-
- * time.c: should use LONG_LONG instead of `long long'.
-
-Thu Oct 20 22:22:49 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * parser.y (struct parser_params): parser never modify input string.
-
- * ext/ripper/tools/preproc.rb (prelude): do not append surplus
- newlines to fix line numbers.
-
-Thu Oct 20 11:41:57 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
-
- * class.c, eval.c, hash.c, st.c, variable.c: changed /* ??? */ stuff
- protoize generated to ANYARGS.
-
-Thu Oct 20 11:18:11 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
-
- * eval.c, file.c, ruby.c: removed strchr, strrchr, strstr definition
- because they are defined in missing.h.
-
- * missing.h, missing/strchr.c, missing/strstr.c: ANSI styled.
-
-Thu Oct 20 09:36:06 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
-
- * lib/mkmf.rb (create_makefile): Borland make seems not to allow
- empty dependency list. If this change is not good, please correct
- it.
-
-Thu Oct 20 07:55:09 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/mkmf.rb (create_makefile): get rid of a restriction
- of Borland make. fixed: [ruby-dev:27460]
-
- * ext/ripper/depend: ditto.
-
-Wed Oct 19 23:58:03 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/mkmf.rb (create_makefile): do not create unnecessary empty
- directories. fixed: [ruby-dev:27451]
-
-Wed Oct 19 08:28:32 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * file.c (rb_file_join): elements may contain null pointer strings.
- report and fixed by Lloyd Zusman (hippoman): [ruby-core:06326]
-
-Wed Oct 19 02:34:33 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * enumerator.c, eval.c, gc.c, parse.y, regparse.c, sjis.c, time.c:
- made internal symbols static. [ruby-dev:27435]
-
-Tue Oct 18 10:58:27 2005 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * ext/dl/depend, ext/dl/extconf.rb, ext/socket/depend,
- ext/socket/extconf.rb: shouldn't define DESTCLEANFILES in depend,
- use $distcleanfiles in extconf.rb.
-
- * win32/Makefile.sub (distclean-local): should remove .config.h.time.
-
-Mon Oct 17 09:42:50 2005 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * mkconfig.rb: fixup configure_args for mswin32 configure.
-
- * win32/configure.bat (srcdir, target): ditto.
-
-Mon Oct 17 05:01:50 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * env.h: move struct METHOD and struct BLOCK from eval.c to
- support NodeWrap and ParseTree.
-
-Sun Oct 16 22:16:51 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/extmk.rb: omit non-existing directories.
-
-Sun Oct 16 14:40:54 2005 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
-
- * lib/rinda/rinda.rb (Rinda::Tuple#initialize): check remote hash
- tuple. fixed: [ruby-list:41227]
-
- * test/rinda/test_rinda.rb: test it.
-
-Sun Oct 16 03:38:07 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * rubysig.h (CHECK_INTS): prevent signal handler to run during
- critical section. [ruby-core:04039]
-
- * eval.c (load_wait): need not to call rb_thread_schedule()
- explicitly. [ruby-core:04039]
-
- * eval.c (rb_thread_schedule): clear rb_thread_critical.
- [ruby-core:04039]
-
-Sun Oct 16 00:13:14 2005 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * win32/configure.bat: remove unnecessary line which prevents
- creating Makefile.
-
-Sat Oct 15 23:52:07 2005 Shugo Maeda <shugo@ruby-lang.org>
-
- * lib/net/ftp.rb: (getbinaryfile): allow nil for localfile, and
- returns retrieved data if localfile is nil.
-
- * lib/net/ftp.rb: (gettextfile): ditto.
-
-Sat Oct 15 19:51:29 2005 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
-
- * bin/erb: typo fixed, again. thanks, Doug Kearns.
-
-Fri Oct 14 23:09:31 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * win32/Makefile.sub (MKFILES): update MKFILES if configure files get
- changed.
-
- * win32/configure.bat, win32/setup.mak (configure_args): store
- arguments to configure files.
-
-Fri Oct 14 22:05:45 2005 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * win32/win32.c (ioctl): should set errno.
-
-Fri Oct 14 16:39:37 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
-
- * lib/webrick/config.rb (Config::FileHandler): :UserDir should be nil.
- It is harmful to permit the access to ~/public_html by default.
- suggested by Hiroyuki Iwatsuki.
-
-Fri Oct 14 04:58:38 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * eval.c (rb_obj_instance_exec): create instance_exec and
- module_exec which pass arguments to the block.
-
- * eval.c (rb_f_funcall): rename fcall to funcall to follow
- tradition.
-
-Thu Oct 13 23:29:51 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * parse.y (HEAPCNT): bison allocates indivisible size.
- fixed: [ruby-core:06261]
-
- * io.c, pack.c, ext/syck/rubyext.c, ext/syck/syck.h, missing/isinf.c:
- get rid of warnings. fixed: [ruby-core:06247]
-
-Wed Oct 12 12:51:56 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
-
- * ext/openssl/ossl.c (Init_openssl): should call
- OpenSSL_add_ssl_algorithms().
-
-Wed Oct 12 11:08:54 2005 WATANABE Hirofumi <eban@ruby-lang.org>
-
- * file.c (rb_f_test): typo in RDoc comments.
-
-Tue Oct 11 21:41:58 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * configure.in (RUBY_FUNC_ATTRIBUTE): check prefixed attribute form
- first. [ruby-dev:27398]
-
- * array.c, enum.c, eval.c, util.c: safer function pointer usage.
- fixed: [ruby-core:06143]
-
- * util.h (qsort): removed the definition incompatible to ANSI.
- fixed: [ruby-core:06147]
-
- * eval.c (rb_obj_respond_to): check if obj responds to the given
- method with the given visibility. [ruby-dev:27408]
-
- * eval.c (rb_respond_to): conform to Object#respond_to?. [ruby-dev:27411]
-
-Tue Oct 11 00:01:21 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * st.c (st_free_table): do not call free() but xfree().
- [ruby-core:06205]
-
-Sat Oct 8 19:49:42 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * eval.c (Init_Binding): add Binding#dup method. [yarv-dev:666]
-
- * io.c (rb_io_init_copy): clear PREP flag for copied IO.
- fixed: [ruby-dev:27371]
-
- * parse.y (rb_parser_malloc, rb_parser_free): manage parser stack on
- heap. [ruby-list:41199]
-
- * parse.y (ripper_initialize): use rb_respond_to().
-
- * ext/ripper/depend (check): get rid of re-generating ripper.y always.
-
- * ext/iconv/charset_alias.rb: parse config.charset_alias file directly.
-
- * ext/nkf/lib/kconv.rb (Kconv.conv): get rid of nil.to_a.
-
- * lib/scanf.rb (Scanf::FormatSpecifier#letter, #width): use matched
- substring directly.
-
- * test/ruby/test_assignment.rb, test/ruby/test_iterator.rb: followed
- change of sample/test.rb.
-
- * test/net/http/test_http.rb: removed superfluous splatting stars.
-
-Fri Oct 7 16:41:43 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * eval.c (splat_value): call rb_Array() to convert svalue to
- values. [ruby-dev:27397]
-
-Fri Oct 7 09:54:00 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/cgi.rb (CGI::Cookie::parse): Cookies from Nokia devices may
- not be parsed correctly. A patch from August Z. Flatby
- (augustzf) in [ruby-Patches-2595]. [ruby-core:06183]
-
-Thu Oct 6 22:51:30 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * object.c (rb_Array): Array() to raise error for objects without
- to_ary, nor to_a.
-
- * object.c (nil_to_a): revert NilClass#to_a.
-
-Thu Oct 6 20:10:38 2005 Minero Aoki <aamine@loveruby.net>
-
- * ext/strscan/strscan.c (strscan_free): remove useless code.
- [ruby-dev:26368] [ruby-dev:27389]
-
-Thu Oct 6 01:02:19 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * range.c (rb_range_beg_len): should return Qfalse for non-range
- object.
-
-Wed Oct 5 04:42:38 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
-
- * lib/xmlrpc/server.rb (XMLRPC::Server#initialize): should mount the
- servlet on "/".
-
-Wed Oct 5 04:06:49 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
-
- * lib/xmlrpc/server.rb (XMLRPC::Server#serve): delete wrong call
- of "join".
-
-Mon Oct 3 00:04:00 2005 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
-
- * pack.c (EXTEND16): [ruby-dev:27383]
-
-Sat Oct 1 23:55:24 2005 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * win32/win32.c (do_select, rb_w32_select): brush up.
-
-Sat Oct 1 12:57:02 2005 Tanaka Akira <akr@m17n.org>
-
- * bignum.c (rb_big_rand): removed. [ruby-dev:25405]
-
-Sat Oct 1 01:46:51 2005 Tanaka Akira <akr@m17n.org>
-
- * lib/open-uri.rb (OpenURI.open_loop): prohibit multiple proxy
- options.
-
-Thu Sep 29 10:26:18 2005 Tanaka Akira <akr@m17n.org>
-
- * ext/dl/cptr.c (rb_dlptr_s_to_ptr): abolish sizeof(FILE).
- [ruby-dev:27317]
-
-Thu Sep 29 10:15:14 2005 Tanaka Akira <akr@m17n.org>
-
- * lib/open-uri.rb (:proxy_http_basic_authentication): new option.
-
-Thu Sep 29 07:22:05 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * eval.c (rb_f_send): underscores need to be escaped.
- fixed by Doug Kearns. [ruby-core:06053]
-
-Thu Sep 29 00:57:35 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * eval.c (ev_const_get), variable.c (rb_const_get_0): retry only when
- autoload succeeded.
-
- * variable.c (rb_autoload_load): now return true if autoload
- succeeded. fixed: [ruby-dev:27331]
-
-Wed Sep 28 23:40:04 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * file.c (rb_stat_inspect): constified.
-
-Wed Sep 28 15:12:28 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
-
- * lib/webrick/cgi.rb (WEBrick::CGI#start): req.query_string should
- refer to the value of QUERY_STRING. [ruby-list:41186]
-
- * lib/webrick/httprequest.rb (WEBrick::HTTPRequest#query_string=):
- add new method.
-
-Wed Sep 28 10:45:44 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/tcltklib.c: cannot compile with Tcl/Tk8.0.x [ruby-dev:27335].
-
-Wed Sep 28 07:56:52 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/yaml/basenode.rb (YAML::BaseNode::match_segment): fix typo.
- [ruby-dev:27237], [ruby-core:05854]
-
- * lib/yaml/tag.rb (Module#yaml_as): suppress warnings.
-
- * lib/yaml/types.rb (YAML::PrivateType, YAML::DomainType): ditto.
-
-Wed Sep 28 03:16:41 2005 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * rubysig.h: fixed build problem with --enable-pthread on platforms
- which don't have setitimer().
-
-Mon Sep 26 22:32:13 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * eval.c (set_trace_func): add rb_secure(4) to prevent adding
- tracing function.
-
-Mon Sep 26 20:59:28 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
-
- * parse.y: changed to ANSI function style.
-
-Sun Sep 25 12:02:04 2005 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
-
- * bin/erb: typo fixed.
-
-Sun Sep 25 11:54:11 2005 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
-
- * lib/rinda/tuplespace.rb (Rinda::TemplateEntry::initialize): pull
- up method. Tabs converted to spaces.
-
-Sun Sep 25 09:34:22 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
-
- * parse.y: replaced `foo _((boo))' with `foo(boo)'.
-
-Sun Sep 25 08:19:53 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * test/rss/test_content.rb, test/rss/test_syndication.rb: use fcall
- instead of send in order to override visibility.
-
-Sun Sep 25 01:46:43 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * misc/ruby-mode.el (ruby-calculate-indent): arrange deep-indent
- closing parenthesis at same column as the opening.
-
-Sun Sep 25 01:33:41 2005 Tanaka Akira <akr@m17n.org>
-
- * process.c (proc_setrlimit): make the third argument (rlim_max)
- optional.
-
-Sun Sep 25 00:42:11 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * misc/ruby-mode.el (ruby-expr-beg): deal with heredoc separately.
- fixed: [ruby-list:41168]
-
- * misc/ruby-mode.el (ruby-calculate-indent): not to deepen indent
- level for continuous line inside parentheses.
- http://nabeken.tdiary.net/20050915.html#p02
-
-Sat Sep 24 21:19:39 2005 Minero Aoki <aamine@loveruby.net>
-
- * ext/strscan/strscan.c: document enhancement.
-
- * ext/strscan/strscan.c: update copyright year.
-
- * ext/strscan/strscan.c: update coding style.
-
-Sat Sep 24 20:20:05 2005 Minero Aoki <aamine@loveruby.net>
-
- * test/net/http/test_http.rb (teardown): Net::HTTP.version_1_1 breaks
- many other tests; ensure that Net::HTTP is version 1.2 after test.
- [ruby-dev:27312]
-
-Sat Sep 24 11:44:28 2005 Minero Aoki <aamine@loveruby.net>
-
- * test/net/http/test_http.rb: new file.
-
-Sat Sep 24 08:54:05 2005 Minero Aoki <aamine@loveruby.net>
-
- * lib/fileutils.rb (cd): no longer accept :noop option, related
- code is useless. [ruby-core:05858] [ruby-Bugs:2494]
-
-Sat Sep 24 08:30:00 2005 Tanaka Akira <akr@m17n.org>
-
- * lib/pathname.rb (Pathname#sub): new method.
-
-Sat Sep 24 08:29:36 2005 Minero Aoki <aamine@loveruby.net>
-
- * lib/fileutils.rb: fix visibility of FileUtils::NoWrite, Verbose,
- DryRun. [ruby-core:05954]
-
- * test/fileutils/test_nowrite.rb: test it.
-
- * test/fileutils/test_dryrun.rb: new file.
-
- * test/fileutils/test_verbose.rb: new file.
-
-Sat Sep 24 07:59:01 2005 Minero Aoki <aamine@loveruby.net>
-
- * sample/ripper/colorize.rb: removed (replaced by ruby2html.rb).
-
- * sample/ripper/ruby2html.rb: added.
-
-Sat Sep 24 06:35:15 2005 Minero Aoki <aamine@loveruby.net>
-
- * ext/ripper: no longer generates .rb files.
-
- * parse.y (Init_ripper): ripper_init_eventids*() takes 1 argument,
- self (class Ripper).
-
- * ext/ripper/depend: target removed: `lib/ripper/core.rb'.
-
- * ext/ripper/depend: new target `eventids2table.c'.
-
- * ext/ripper/depend: new target `check'.
-
- * ext/ripper/eventids2.c: include eventids2table.c.
-
- * ext/ripper/eventids2.c: initialize SCANNER_EVENT_TABLE.
-
- * ext/ripper/extconf.rb: update $cleanfiles list.
-
- * ext/ripper/tools/generate.rb: no longer generate ripper/core.rb.
-
- * ext/ripper/tools/generate.rb: new mode `check'.
-
- * ext/ripper/tools/generate.rb: new mode `eventids2table'.
-
- * ext/ripper/lib/ripper/core.rb.in: removed.
-
- * ext/ripper/lib/ripper/core.rb: added.
-
- * ext/ripper/lib/ripper/filter.rb: update copyright year.
-
- * ext/ripper/lib/ripper/lexer.rb: ditto.
-
- * ext/ripper/lib/ripper/sexp.rb: ditto.
-
-Sat Sep 24 02:40:20 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/delegate.rb: document update from James Edward Gray II
- <james@grayproductions.net>. [ruby-core:05942]
-
-Sat Sep 24 02:05:51 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * process.c (proc_daemon): should restrict execution on levels
- higher than $SAFE=2. suggested by URABE Shyouhei
- <shyouhei@ice.uec.ac.jp>.
-
-Fri Sep 23 20:10:35 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/ripper/tools/generate.rb, ext/ripper/tools/preproc.rb: StringIO
- is not available for miniruby. fixed: [ruby-dev:27307]
-
-Fri Sep 23 17:36:48 2005 Masaki Suketa <masaki.suketa@nifty.ne.jp>
-
- * ext/win32ole/win32ole.c: avoid core dump with WIN32OLE_EVENT.
- [ruby-dev:27133]
-
-Fri Sep 23 16:27:39 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/forwardable.rb: replaced by new implementation from
- <Daniel.Berger@qwest.com>. [ruby-core:05899]
-
-Fri Sep 23 07:07:47 2005 Minero Aoki <aamine@loveruby.net>
-
- * test/ripper/depend: use --output option instead of redirect;
- nmake does not remove a target when the target file is created by
- redirect. [ruby-dev:26466]
-
- * test/ripper/tools/preproc.rb: new option --output.
-
-Fri Sep 23 06:57:52 2005 Minero Aoki <aamine@loveruby.net>
-
- * test/ripper/tools/generate.rb: check parser event arity.
-
- * test/ripper/tools/generate.rb: detect crash of parser-event-IDs
- and scanner-event-IDs.
-
-Fri Sep 23 06:01:30 2005 Minero Aoki <aamine@loveruby.net>
-
- * test/ruby/test_file.rb: check File#chown(nil,nil).
- [ruby-dev:27140]
-
-Fri Sep 23 05:57:23 2005 Minero Aoki <aamine@loveruby.net>
-
- * ext/ripper: refactoring code generation tools. [ruby-dev:27247]
- [ruby-dev:27273]
-
- * ext/ripper/depend: use generate.rb.
-
- * ext/ripper/lib/ripper/core.rb: removed.
-
- * ext/ripper/tools/generate-eventids1.rb: removed (code moved to
- generate.rb).
-
- * ext/ripper/tools/generate-ripper_rb.rb: removed (code moved to
- generate.rb).
-
- * ext/ripper/tools/list-parse-event-ids.rb: removed (code moved to
- generate.rb).
-
- * ext/ripper/tools/list-scan-event-ids.rb: removed (code moved to
- generate.rb).
-
- * ext/ripper/lib/ripper/core.rb: removed.
-
- * ext/ripper: refactoring tests. [ruby-dev:27273]
-
- * ext/ripper/test/check-event-arity.rb: removed (code moved to
- tools/generate.rb).
-
- * ext/ripper/test/check-event-coverage.rb: removed (code moved to
- test/ripper/test_parser_events.rb).
-
- * ext/ripper/test/check-scanner-event-coverage.rb: removed (code
- moved to test/ripper/test_scanner_events.rb).
-
- * ext/ripper/test/list-called-events.rb: removed.
-
- * ext/ripper/test/src_rb: removed.
-
- * ext/ripper/test/validate.rb: removed.
-
- * test/ripper/test_scanner_events.rb: check event coverage.
-
- * ext/ripper/lib/ripper/core.rb.in: update copyright year.
-
-Thu Sep 22 23:40:19 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/mkmf.rb (find_executable0): default path if environment is not
- set. [ruby-dev:27281]
-
- * ext/ripper/extconf.rb (have_command): replaced with find_executable.
-
-Thu Sep 22 17:31:48 2005 Shugo Maeda <shugo@ruby-lang.org>
-
- * test/readline/test_readline.rb (TestReadline::replace_stdio):
- merged the patch of [ruby-dev:25232] instead of [ruby-dev:25223].
- (merged from ruby_1_8 branch)
-
-Wed Sep 21 23:30:44 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/mkmf.rb (configuration): generalized nmake dependent code.
-
-Wed Sep 21 14:16:30 2005 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * ext/ripper/depend (SUFFIXES): no longer needed.
-
- * ext/ripper/depend (c): avoid nmake problem. fixed [ruby-dev:27191]
-
-Wed Sep 21 08:52:25 2005 why the lucky stiff <why@ruby-lang.org>
-
- * ext/syck/token.c: correctly compute indentation of a block
- scalar's parent node. [ruby-talk:150620]
-
-Wed Sep 21 08:20:24 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * README.EXT, README.EXT.ja: add new features.
-
-Wed Sep 21 07:43:58 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/optparse.rb (default_argv, Arguable#options): defaults strings
- to be parsed to Arguable instance.
-
-Wed Sep 21 02:44:09 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * file.c (path_check_0): disallow sticky world writable directory
- in PATH (and $LOAD_PATH). [ruby-dev:27226]
-
-Wed Sep 21 00:32:22 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * numeric.c (fix_idiv): 1.div(1.0) should return integer value.
- [ruby-dev:27235]
-
-Tue Sep 20 22:25:43 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/io/wait/lib/nonblock.rb: disable on platforms non-blocking flag
- is not available. fixed: [ruby-dev:27187]
-
- * file.c (rb_stat_inspect): protoized function pointer.
-
-Tue Sep 20 18:23:04 2005 Tanaka Akira <akr@m17n.org>
-
- * eval.c (thread_mark): mark th->last_status. [ruby-dev:27179]
-
-Tue Sep 20 18:20:33 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/yaml.rb: require 'yaml/constants'. [ruby-core:5776]
-
-Tue Sep 20 17:48:34 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/xmlrpc/client.rb (XMLRPC::Client::do_rpc): add charset
- information to content-type header.[ruby-core:5127]
-
- * lib/xmlrpc/server.rb (CGIServer::serve): ditto.
-
- * lib/xmlrpc/server.rb (ModRubyServer::serve): ditto.
-
- * lib/xmlrpc/server.rb (WEBrickServlet::service): ditto.
-
-Tue Sep 20 17:26:42 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
-
- * test/webrick/test_cgi.rb: set ENV["PATH"] to CGIEnvPath on
- windows. bcc32's runtime is not installed into system directory,
- so it cannot be found without this setting. [ruby-dev:27166]
-
-Tue Sep 20 17:14:10 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
-
- * io.c: PIPE_BUF is not defined on BeOS. use _POSIX_PIPE_BUF instead.
- [ruby-dev:27185]
-
-Tue Sep 20 17:10:38 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * test/dbm/test_dbm.rb (TestDBM::test_s_open_error): remove
- test_s_open_error test to detect duplicate open.
- [ruby-dev:27202]
-
-Tue Sep 20 15:39:40 2005 why the lucky stiff <why@ruby-lang.org>
-
- * ext/syck/emitter.c (syck_scan_scalar): prevent indicators from
- appearing alone or at the end of plain scalars. [ruby-core:5826]
-
- * ext/syck/emitter.c (syck_emit_scalar): treat typed scalar nodes
- as complex keys.
-
- * lib/syck.h: version 0.60.
-
- * lib/yaml/basenode.rb (YAML::BaseNode#at): transform keys during
- key searches.
-
- * ext/syck/rubyext.c: loading of binary-typed nodes. prevent
- emission of plain strings that look like symbols, but which aren't.
-
-Tue Sep 20 05:48:26 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
-
- * test/xmlrpc/test_webrick_server.rb (setup_http_server):
- should not include 'webrick/https' unless 'use_ssl' because
- it fails where openssl is not installed.
-
-Tue Sep 20 01:24:45 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * eval.c (splat_value): use to_a to splat non Array object.
-
- * object.c (nil_to_a): remove nil.to_a. [experimental]
-
-Tue Sep 20 01:01:41 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/mathn.rb (Fixnum): remove debug print.
-
- * lib/rational.rb (Rational): ditto.
-
-Tue Sep 20 00:34:07 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * io.c (io_close): call rb_io_close() directly if io is a T_FILE
- object. [ruby-dev:27156]
-
-Mon Sep 19 18:58:10 2005 Minero Aoki <aamine@loveruby.net>
-
- * file.c (rb_file_chown): should accept nil. [ruby-dev:27171]
-
-Mon Sep 19 18:29:54 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * file.c (file_expand_path): allow pathnames to expand.
- [ruby-dev:27152]
-
-Mon Sep 19 15:12:15 2005 Minero Aoki <aamine@loveruby.net>
-
- * ext/ripper/depend: do not make ripper/core.rb. [ruby-dev:26462]
-
-Mon Sep 19 14:49:19 2005 Minero Aoki <aamine@loveruby.net>
-
- * ext/ripper/eventids2.c: add prefix `t' to tLAMBDA-related lexer
- events.
-
- * ext/ripper/lib/ripper/core.rb: updated.
-
-Mon Sep 19 14:39:46 2005 Minero Aoki <aamine@loveruby.net>
-
- * parse.y (do_block): do_block event dispatches 2 args.
- [ruby-dev:26964]
-
- * ext/ripper/lib/ripper/core.rb: updated.
-
- * ext/ripper/tools/list-parser-event-ids.rb: check arity mismatch.
-
-Mon Sep 19 07:45:37 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
-
- * ext/openssl/ossl_pkey.h, ossl_pkey_rsa.c, ossl_pkey_dsa.c:
- an instance variable "private" is added to OpenSSL::PKey class.
- this ivar is a flag that shows whether there is a private key
- in the instance.
-
- * ext/openssl/ossl_engine.c: (ossl_engine_load_privkey): set private
- key flag.
-
- * test/openssl/test_pkey_rsa.rb: add test about private detection.
-
-Mon Sep 19 06:38:03 2005 Minero Aoki <aamine@loveruby.net>
-
- * lib/fileutils.rb: method renaming: collect_methods ->
- collect_method.
-
-Mon Sep 19 05:58:59 2005 Minero Aoki <aamine@loveruby.net>
-
- * lib/fileutils.rb: use module_function instead of single extend.
-
- * test/fileutils/test_fileutils.rb: test existence of singleton
- methods.
-
-Mon Sep 19 05:32:41 2005 Minero Aoki <aamine@loveruby.net>
-
- * lib/fileutils.rb (remove_entry_secure): does not use chdir(2).
-
-Mon Sep 19 03:17:48 2005 Tanaka Akira <akr@m17n.org>
-
- * file.c (rb_thread_flock): wrap the flock system call by
- TRAP_BEG/TRAP_END to enable signals. [ruby-dev:27122]
-
- * ext/socket/socket.c (bsock_send): wrap the sendto and send system
- call by TRAP_BEG/TRAP_END to enable signals when writing to a socket
- which is full. [ruby-dev:27132]
-
- * io.c (rb_io_syswrite): wrap the write system call by
- TRAP_BEG/TRAP_END to run signal handler in syswrite method.
- [ruby-dev:27134]
-
-Mon Sep 19 01:07:38 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * numeric.c (Init_Numeric): should define Fixnum#div.
- [ruby-dev:27129]
-
- * file.c (rb_thread_flock): wrap flock(2) by TRAP_BEG and
- TRAP_END. [ruby-dev:27122]
-
- * file.c (rb_file_join): call FilePathValue() to all Pathnames to
- join. [ruby-dev:27127]
-
- * file.c (rb_get_path): call StringValueCStr() to ensure no nul
- bytes in path strings.
-
- * gc.c (garbage_collect): need value for return. [ruby-dev:27127]
-
-Sun Sep 18 02:10:47 2005 why the lucky stiff <why@ruby-lang.org>
-
- * lib/yaml/rubytypes.rb: remove comments that are bungling up
- the rdoc and ri output. output symbols as plain scalars.
-
- * ext/syck/rubyext.c (syck_emitter_reset): emit headless
- documents always.
-
- * ext/syck/emitter.c (syck_scan_scalar): quote scalars with any
- kind of surrounding line space, tabs or spaces alike.
-
- * ext/syck/token.c: accept tabs as whitespace, not for indentation,
- but strip from plain scalars.
-
- * test/yaml/test_yaml.rb: remove outdated tests.
-
-Sun Sep 18 01:10:37 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * gc.c (garbage_collect): return false if no GC run.
-
-Sat Sep 17 23:25:04 2005 sheepman <sheepman@sheepman.sakura.ne.jp>
-
- * lib/mathn.rb (Rational::inspect): should preserve original
- operand. [ruby-core:05806]
-
-Sat Sep 17 23:20:27 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/cgi.rb (CGI::Cookie): should handle multiple values for a
- cookie name. [ruby-talk:156140]
-
- * test/socket/test_tcp.rb (TestTCPSocket::test_recvfrom): typo
- fixed. [ruby-dev:27123]
-
-Sat Sep 17 20:58:56 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
-
- * win32/win32.c (rb_w32_select): fixed deadlock bug.
- because select(2) modifies its fd_set arguments, it must be
- restored sometimes.
-
- * win32/win32.c (rb_w32_select): performance improvement when
- 'always readable/writable handles' and sockets are passed.
- sockets should be polled every time.
-
- require "net/http"
-
- Thread.new {
- loop do
- STDOUT.write(".") # busy on console (this is worst case though)
- end
- }
-
- # socket operation took long time. (sometimes timed out)
- Net::HTTP.start("www.ruby-lang.org") do |http|
- http.get("/cgi-bin/cvsweb.cgi/ruby/array.c?rev=1.179")
- end
-
-Sat Sep 17 14:54:40 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
-
- * test/ruby/test_readpartial.rb (test_open_pipe, test_with_stdio):
- these tests are working now, so turned on. (windows)
-
-Sat Sep 17 14:18:15 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
-
- * win32/win32.c (rb_w32_select): I hope performance problem was
- solved.
-
-Sat Sep 17 13:45:22 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
-
- * win32/win32.c (rb_w32_select): console support is back.
- but still has performance problem because I loosely took 1 second
- for wait time. I'll fix it later. (The reason I drastically changed
- the code is that I wanted to implement the fileset management as
- single function, and I was worried that if pipe or console
- was always available, socket may not be processed any time)
-
-Sat Sep 17 11:24:16 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
-
- * win32/win32.c (rb_w32_select): select for socket didn't work.
- this caused deadlock in drb test. this happened because GetFileType
- for socket handle returns FILE_TYPE_PIPE. Of course, it's not a
- pipe. So socket handle didn't reach winsock's select function.
-
- * win32/win32.c (rb_w32_select): read for pipe was still blocked
- even if writer handle was closed.
-
- r,w = IO.pipe
-
- Thread.new {
- sleep 3; puts "------- 1"
- w.puts("foo")
- sleep 3; puts "------- 2"
- w.puts("boo")
- sleep 3; puts "------- 3"
- w.close
- }
-
- until r.eof? # should break by w.close but didn't.
- puts r.gets
- end
-
- * win32/win32.c (rb_w32_select): temporary reverted console support
- but it'll be back soon.
-
-Sat Sep 17 10:42:13 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/lib/multi-tk.rb: MultiTkIp#eval_string and bg_eval_string
- should call Kernel.eval on caller's safe-level instead of slave's
- safe-level (Of course, the given script should be evaluated on
- slave's safe-level).
-
-Sat Sep 17 09:45:26 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * string.c (rb_str_substr): should propagate taintness even for
- empty strings. [ruby-dev:27121]
-
- * string.c (rb_str_aref): should infect result if range argument
- is tainted. [ruby-dev:27121]
-
-Sat Sep 17 08:35:39 2005 Kouhei Sutou <kou@cozmixng.org>
-
- * lib/rss/maker/base.rb (RSS::Maker::ItemsBase#normalize): fixed
- strange RSS::Maker::Item#max_size behavior.
- Thanks to Kazuhiko <kazuhiko@fdiary.net>.
-
- * test/rss/test_maker_1.0.rb (RSS::TestMaker10#test_items): ditto.
-
-Sat Sep 17 08:02:53 2005 Shugo Maeda <shugo@ruby-lang.org>
-
- * lib/net/imap.rb: supported DIGEST-MD5. Thanks, Mathieu Arnold.
-
- * lib/net/imap.rb: use fcall instead of send. Thanks, Satoru
- Takabayashi.
-
-Fri Sep 16 22:45:49 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * file.c (rb_file_s_extname): empty string for path name ending with a
- period. fixed: [ruby-core:05651]
-
- * file.c (rb_file_join): smarter behavior at edge cases.
- fixed: [ruby-core:05706]
-
- * gc.c (rb_memerror, ruby_xmalloc, ruby_xrealloc, rb_newobj): just
- abandon if no memory available, when interpreter is not running.
- [ruby-dev:27104]
-
- * gc.c (garbage_collect): return whether GC could run.
-
- * dir.c (rb_push_glob): fix delimiter bug. fixed: [ruby-dev:27105]
-
- * dir.c (dir_s_aref, dir_s_glob): allow multiple patterns.
- [ruby-dev:27110]
-
- * win32/win32.c (cmdglob): enable brace expansion.
-
-Fri Sep 16 18:34:01 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * ext/syck/node.c (syck_replace_str): was using return from the
- void function. a patch from MIYAMUKO Katsuyuki
- <miyamuko at mtb.biglobe.ne.jp>. [ruby-dev:27111]
-
-Fri Sep 16 14:48:48 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/lib/multi-tk.rb: fix typo on MultiTkIp#bg_eval_string
-
-Fri Sep 16 12:02:12 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * ext/syck/rubyext.c (syck_resolver_transfer): remove C++ style
- comment (//). [ruby-core:05793]
-
-Fri Sep 16 00:17:03 2005 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
-
- * test/logger/test_logger.rb: unintentionally overwritten changes by
- Usa. reverted.
-
-Fri Sep 16 00:03:11 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
-
- * lib/webrick/cgi.rb (WEBrick::CGI::Socket#initialize): should set
- $stdout.binmode.
-
-Thu Sep 15 23:25:21 2005 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
-
- * lib/{soap,wsdl,xsd}, test/{soap,wsdl,xsd}: imported soap4r/1.5.5.
-
- #nnn is a ticket number at http://dev.ctor.org/soap4r
-
- * SOAP
-
- * allow to configure an envelope namespace of SOAP request. (#124)
- TemporaryNamespace = 'http://www.w3.org/2003/05/soap-envelope'
- @client.options["soap.envelope.requestnamespace"] =
- TemporaryNamespace
- @client.options["soap.envelope.responsenamespace"] =
- TemporaryNamespace
- @client.do_proc(...)
-
- * let SOAP request XML indent space configurable. see
- "soap.envelope.no_indent" option. (#130)
-
- * let external CES configurable.
- ex. client["soap.mapping.external_ces"] = 'SJIS'. $KCODE is used
- by default. (#133)
- external CES ::= CES used in Ruby object of client and server
- internal CES ::= CES used in SOAP/OM
-
- * add iso-8859-1 external CES support. (#106)
-
- * fixed illegal 'qualified' handling of elements. it caused
- ASP.NET interoperability problem. (#144)
-
- * added 'soap.envelope.use_numeric_character_reference' (boolean)
- option to let query XML use numeric character reference in XML,
- not plain UTF-8 character. !GoogleSearch server seems to not
- allow plain UTF-8 character since 2005-08-15 update. (#147)
-
- * SOAP::Header::SimpleHeader (de)serialization throws an exception
- on !SimpleHeader.on_(in|out)bound when header is a String. so we
- could not use a simple single element headerItem. fixed. thanks
- to emil. (#129)
-
- * out parameter of rpc operation did not work. (#132)
-
- * follow HTTP redirect only if using http-access2. (#125) (#145)
-
- * add a workaround for importing an WSDL whose path begins with
- drive letter. (#115)
-
- * WSDL
-
- * SOAP Data which is defined as a simpletype was not mapped
- correctly to Ruby obj when using wsdl2ruby.rb generated classdef
- file. (#123)
-
- * rpc/literal support. (#118)
-
- * re-implemented local element qualify/unqualify control. handles
- elementFormDefault and form in WSDL. (#119)
-
- * Array of an element which has simpleType causes a crash. (#128)
-
- * parameterOrder may not contain return part so it can be shorter
- than parts size. Thanks to Hugh. (#139)
-
- * Samples
-
- * added !BasicAuth client sample. (#117)
-
- * added Base64 client/server sample.
-
- * added Flickr SOAP interface client sample. (#122)
-
- * added !SalesForce client sample. (#135)
-
- * updated Thawte CA certificate for !GoogleAdWords sample.
-
- * updated a client script with the newer version made by Johan.
- thanks!
-
- * shortened long file names. (#120)
-
- * fixed typo in authheader sample. (#129)
-
- * updated deprecated method usage. (#138)
-
-Thu Sep 15 22:40:27 2005 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * test/ruby/test_signal.rb (test_exit_action): skip the test using
- fork on fork-less platforms.
-
-Thu Sep 15 13:54:33 2005 Tanaka Akira <akr@m17n.org>
-
- * lib/open-uri.rb: add :read_timeout option.
- [ruby-core:4848]
-
-Thu Sep 15 11:39:18 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/lib/tk/dialog.rb: If a dialog does not show up yet,
- TkDialogObj#name raises an exception. [ruby-talk:156109]
-
-Thu Sep 15 11:01:58 2005 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * win32/win32.c (rb_w32_pipe_exec): remove unnecessary CloseHandle().
-
- * win32/win32.c (extract_console_fd, peek_console): new functions.
-
- * win32/win32.c (rb_w32_select): check consoles by polling them.
-
-Thu Sep 15 00:18:24 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/net/telnet.rb (Net::Telnet::waitfor): replace sysread with
- readpartial. [ruby-talk:127641]
-
-Wed Sep 14 23:28:28 2005 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * win32/win32.c (collect_file_fd): rename from extract_file_fd.
-
- * win32/win32.c (extract_pipe_fd, peek_pipe): new functions.
-
- * win32/win32.c (rb_w32_select): check pipes by polling them.
-
-Wed Sep 14 22:40:26 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * dir.c (ruby_glob): glob function not using ruby exception system.
-
-Wed Sep 14 17:24:22 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
-
- * dir.c: changed `foo (*bar)_((boo))' to `foo (*bar)(boo)`.
-
- * enumerator.c, eval.c, gc.c, intern.h, io.c, process.c, ruby.c,
- ruby.h, signal.c: ditto.
-
-Wed Sep 14 15:06:22 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
-
- * bignum.c: changed `foo _((boo))' to `foo(boo)`. [ruby-dev:27056]
-
- * defines.h, dir.c, dln.h, enumerator.c, env.h, error.c, eval.c, file.c,
- gc.c, hash.c, inits.c, intern.h, io.c, lex.c, marshal.c, missing.h,
- node.h, numeric.c, pack.c, process.c, re.h, ruby.c, ruby.h, rubyio.h,
- rubysig.h, signal.c, sprintf.c, st.h, string.c, struct.c, time.c,
- util.c, util.h, variable.c: ditto.
-
-Tue Sep 13 22:09:40 2005 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
-
- * lib/logger.rb (Logger): added formatter accessor to logger for
- dictating the way in which the logger should format the messages it
- displays. Thanks to Nicholas Seckar (cf. [ruby-talk:153391]) and
- Daniel Berger.
-
- * lib/logger.rb (Logger): added VERSION constant.
-
- * lib/logger.rb: removed document for LogDevice. It is an
- implementation detail and is not a public interface.
-
- * test/logger/test_logger.rb: added tests.
-
-Tue Sep 13 21:47:17 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * eval.c (BEGIN_CALLARGS): pop halfly pushed status.
- fixed: [ruby-dev:26881]
-
-Tue Sep 13 20:24:37 2005 Tanaka Akira <akr@m17n.org>
-
- * ruby.h (PRINTF_ARGS): new macro for printf style argument checking.
-
-Tue Sep 13 15:41:29 2005 Minero Aoki <aamine@loveruby.net>
-
- * lib/net/http.rb: wrote documentation of HTTPRequest/HTTPResponse
- classes.
-
-Tue Sep 13 14:27:47 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
-
- * string.c, missing.h: failed to build on powerpc-apple-darwin7.9.0
- because of crypt argument's constness mismatch. (I hope this works)
- (http://mput.dip.jp/autobuild/ruby-trunk/log/20050913T110001.gz)
-
-Tue Sep 13 12:33:05 2005 why the lucky stiff <why@ruby-lang.org>
-
- * lib/yaml.rb: reworking YAML::Stream to use the new
- emitter.
-
- * lib/yaml/stream.rb: ditto.
-
- * lib/yaml/rubytypes.rb: added Object#yaml_new.
-
- * lib/yaml/tag.rb: the tag_subclasses? method now
- shows up in the class. allow taguri to be set using an accessor.
- continue support of Object#to_yaml_type.
-
- * ext/syck/rubyext.c: new emitter code. yaml_new and yaml_initialize
- get called, should they be present. consolidated all the diaspora of internal node types into the family below YAML::Syck::Node -- Map,
- Seq, Scalar -- all of whom are SyckNode structs pointing to
- Ruby data. moved Object#yaml_new into the node_import and made it
- the default behavior. the target_class is always called with
- yaml_new, prepended a parameter, which is the klass. loaded nodes
- through GenericResolver show their style.
- new Resolver#tagurize converts type ids to taguris.
-
- * ext/syck/implicit.re: were 'y' and 'n' seriously omitted??
-
- * ext/syck/emitter.c: renovated emitter, walks the tree in advance.
- consolidated redundant block_styles struct into
- the scalar_style struct. (this means loaded nodes can now
- be sent back to emitter and preserve at least its very basic
- formatting.)
-
- * ext/syck/gram.c: headless documents of any kind allowed.
-
- * ext/syck/node.c: new syck_replace_str methods and syck_empty_*
- methods for rewriting node contents, while keeping the ID
- and other setup info. added syck_seq_assign.
-
- * ext/syck/syck.h: reflect block_styles and new node functions.
-
-Tue Sep 13 08:09:18 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/ostruct.rb (new_ostruct_member): Object#send no longer call
- private methods. [ruby-dev:27044]
-
- * test/rss/test_dublincore.rb, test/rss/test_trackback.rb,
- test/ruby/test_eval.rb, test/socket/test_socket.rb: ditto.
-
- * test/ruby/test_lambda (test_call_with_block): lambda makes new scope
- for formal block parameter.
-
-Tue Sep 13 01:17:45 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * eval.c (proc_save_safe_level): no need to restrict safe level
- memoize in $SAFE>=3. [ruby-dev:27050]
-
-Tue Sep 13 00:02:33 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * file.c (apply2files): stricter callback definition.
-
- * file.c (rb_path_check): constified.
-
-Mon Sep 12 20:53:06 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
-
- * test/openssl/test_pkcs7.rb (test_enveloped): skip this test
- to avoid a bug of PKCS7_encrypt() (only if ext/openssl is
- compiled with OpenSSL-0.9.7d or earlier versions).
- http://www.mail-archive.com/openssl-dev@openssl.org/msg17376.html
-
-Mon Sep 12 20:32:00 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
-
- * win32/win32.[hc] (rb_w32_argv_size, ...): reverted my latest change
- to avoid incompatible pointer warning. (mingw32)
-
-Mon Sep 12 19:58:53 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
-
- * dln.c: avoid warning of const to non-const convertion.
- [ruby-dev:27041]
-
- * eval.c, io.c, ruby.c: ditto.
-
-Mon Sep 12 19:26:29 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
-
- * array.c: moved to ANSI function style from K&R function style.
- (used protoize on windows, so still K&R remains on #ifdef part of
- other platforms. And `foo _((boo))' stuff is still there)
- [ruby-dev:26975]
-
- * bignum.c, class.c, compar.c, dir.c, dln.c, dmyext.c, enum.c,
- enumerator.c, error.c, eval.c, file.c, gc.c, hash.c, inits.c,
- io.c, main.c, marshal.c, math.c, numeric.c, object.c, pack.c,
- prec.c, process.c, random.c, range.c, re.c, regcomp.c, regenc.c,
- regerror.c, regexec.c, regparse.c, regparse.h, ruby.c, signal.c,
- sprintf.c, st.c, string.c, struct.c, time.c, util.h, variable.c,
- version.c: ditto.
-
-Mon Sep 12 14:03:33 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * test/dbm/test_dbm.rb: remove locking test, which may not be
- supported on some platforms. [ruby-dev:27030]
-
-Sun Sep 11 23:23:02 2005 Shugo Maeda <shugo@ruby-lang.org>
-
- * lib/net/imap.rb (starttls): supported the STARTTLS command.
-
-Sun Sep 11 22:18:07 2005 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
-
- * bin/erb (ERB::Main#run): set ERB#filename so that it is used
- when reporting syntax/runtime errors. Tabs converted to spaces.
-
-Sat Sep 10 22:34:19 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * array.c, bignum.c: protoize.
-
-Sat Sep 10 00:23:01 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * eval.c (splat_value): simpler and consistent array conversion
- for argument splat. [yarv-dev:599]
-
-Fri Sep 9 16:45:25 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * string.c (rb_str_times): make empty strings to keep taintness,
- and a little improvement. [ruby-dev:26900]
-
- * ext/iconv/iconv.c (iconv_try), ext/iconv/extconf.rb: get rid of meta
- characters in command line option. fixed: [ruby-talk:155369]
-
- * ext/iconv/iconv.c: protoized.
-
-Thu Sep 8 14:58:11 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * merged a patch from Takahiro Kambe <taca at back-street.net> to
- support DragonFly BSD. [ruby-dev:26984]
-
-Thu Sep 8 13:14:57 2005 Tadashi Saito <shiba@mail2.accsnet.ne.jp>
-
- * missing/strchr.c (strrchr): fixed a bug in detecting NUL in a
- string. [ruby-dev:26985]
-
-Wed Sep 7 17:29:27 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
-
- * ext/openssl/ossl_engine.c (ossl_engine_s_by_id):
- OpenSSL::Engine.by_id calls given block before calling
- ENGINE_init (block parameter is the return value of this method
- itself). this functionality is useful to load dynamic shared
- engines.
-
- require "openssl"
- pkcs11 = OpenSSL::Engine.by_id("dynamic"){|e|
- e.ctrl_cmd("SO_PATH", "/usr/lib/opensc/engine_pkcs11.so")
- e.ctrl_cmd("LIST_ADD", "1")
- e.ctrl_cmd("LOAD")
- }
- pkcs11.ctrl_cmd("PIN", "secret")
- key = pkcs11.load_private_key
-
- * ext/openssl/ossl_engine.c (ossl_engine_ctrl_cmd): new method
- OpenSSL::Engine#ctrl_cmd. it wraps ENGINE_ctrl_cmd_string.
-
- * ext/openssl/ossl_engine.c (ossl_engine_get_cmds): new method
- OpenSSL::Engine#cmds. it returns engine command definitions.
-
-Wed Sep 7 15:48:37 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
-
- * ext/openssl/ossl_asn1.c (asn1str_to_str): new function.
-
- * ext/openssl/ossl_pkcs7.c: new class OpenSSL::PKCS7::RecipientInfo.
- this class wraps PKCS7_RECIP_INFO struct.
-
- * ext/openssl/ossl_pkcs7.c: OpenSSL::PKCS7::Signer is renamed to
- OpenSSL::PKCS7::SignerInfo. ("Signer" remains as an alias of
- SignerInfo.)
-
- * test/openssl/test_pkcs7.rb: new file.
-
-Wed Sep 7 12:55:08 2005 Tanaka Akira <akr@m17n.org>
-
- * lib/open-uri.rb: abolish mod === tempfile to avoid a problem
- [ruby-dev:26967].
-
-Wed Sep 7 10:45:15 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * eval.c (rb_thread_switch): convert all exceptions to
- SystemExit. fixed: [ruby-core:05724]
-
- * eval.c (rb_thread_terminated): show backtrace before propagate
- exceptions to main thread.
-
-Wed Sep 7 09:21:41 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
-
- * win32/win32.[hc] (rb_w32_utime): constified.
-
- * win32/win32.h (rb_w32_stat): added prototype.
-
- * win32/win32.[hc] (rb_w32_argv_size,rb_w32_join_argv,rb_w32_aspawn):
- changed `char *const *' to `const char *const *'. (constify string)
-
-Wed Sep 7 08:35:04 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * Makefile.in, configure.in (MINIOBJS): miniruby on HP-UX can not load
- extension libraries.
-
- * bignum.c (bignew_1, bigadd): K&R style argument actually can't be
- defined as char.
-
- * missing/vsnprintf.c: ANSI compiler supports const keyword.
-
- * ext/digest/sha2/extconf.rb: reject platforms which has inttypes.h
- but no 64bit integer.
-
- * lib/mkmf.rb (what_type?): guesstimate type.
-
- * ext/etc/etc.c (setup_passwd), ext/etc/extconf.rb: pw_age might be
- char*. fixed: [ruby-core:05470]
-
-Wed Sep 7 08:32:07 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * string.c (rb_str_times): should taint empty strings as well.
-
- * object.c (Init_Object): make class_variable_{get,set} public.
- [ruby-dev:26965]
-
-Mon Sep 5 22:28:46 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * parse.y (stmt, mlhs_node, lhs, arg, method_call): aref_args might be
- nothing. fixed: [ruby-dev:26952]
-
- * ext/ripper/eventids2.c: added new tokens. fixed: [ruby-dev:26952]
+ * win32/win32.c (rb_w32_select): check invalid handle before doing
+ select operations. see [ruby-dev:43513], [ruby-dev:43535]
-Mon Sep 5 17:03:07 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+Fri May 13 08:34:00 2011 Eric Hodel <drbrain@segment7.net>
- * lib/find.rb: should raise ENOENT if root entry does not exist.
- [ruby-list:41054]
+ * lib/rdoc/rdoc.rb: Output summary after documentation report.
+ * lib/rdoc/stats/normal.rb: Don't output information for users when
+ we're not on a TTY
- * lib/ostruct.rb: a patch from Florian Gross <florgro at gmail.com>
- merged to allow recursive inspect (and to_s) for OpenStruct.
- [ruby-core:05532]
+Fri May 13 07:49:02 2011 Eric Hodel <drbrain@segment7.net>
-Mon Sep 5 08:20:19 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * lib/fileutils.rb: Hide internal methods from RDoc. Patch by Darragh
+ Curran. [Ruby 1.9 - Bug #4684]
- * lib/observer.rb: a patch from nornagon <nornagon at gmail.com>
- merged to allow arbitrary names for update methods.
- [ruby-core:05416]
+Fri May 13 07:36:23 2011 Eric Hodel <drbrain@segment7.net>
-Mon Sep 5 07:01:12 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
+ * lib/webrick/httpservlet/erbhandler.rb: Add documentation.
- * ext/openssl/openssl/lib/openssl/buffering.rb (Buffering#do_write):
- should clear data from the buffer which already been output.
+Fri May 13 07:04:33 2011 Eric Hodel <drbrain@segment7.net>
-Sun Sep 4 15:01:35 2005 Minero Aoki <aamine@loveruby.net>
+ * lib/mathn.rb: Fix indentation. Patch by Jason Dew.
+ [Ruby 1.9 - Feature #4682]
- * parse.y (f_arg): Ripper should not do semantic check.
- [ruby-dev:26948]
+Fri May 13 06:50:43 2011 Eric Hodel <drbrain@segment7.net>
-Sat Sep 3 23:52:35 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * lib/mathn.rb: Add documentation. Patch by Jason Dew. [Ruby 1.9 -
+ Feature #4667]
- * eval.c (rb_f_fcall): new method to avoid inefficiency of
- obj.instance_eval{send(...)} tricks.
+Fri May 13 05:44:19 2011 Eric Hodel <drbrain@segment7.net>
-Sat Sep 3 13:59:31 2005 Tanaka Akira <akr@m17n.org>
+ * lib/logger.rb (class Logger): Document Logger#datetime_format.
+ Patch by Sergio Gil Perez de la Manga. [Ruby 1.9 - Bug #4678]
- * lib/pathname.rb (Pathname#descend): Pathname.new("./a/b/c").descend
- didn't yield "."
- (Pathname#ascend): ditto.
+Fri May 13 05:39:11 2011 Eric Hodel <drbrain@segment7.net>
-Fri Sep 2 23:51:54 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * re.c (Init_Regexp): Document option constants. Patch by Vincent
+ Batts. [Ruby 1.9 - Bug #4677]
+ * lib/uri/common.rb (module URI): Documentation for URI. Patch by
+ Vincent Batts. [Ruby 1.9- Bug #4677]
+ * lib/uri/ftp.rb (module URI): ditto
+ * lib/uri/generic.rb (module URI): ditto
+ * lib/uri/http.rb (module URI): ditto
+ * lib/uri/https.rb (module URI): ditto
+ * lib/uri/ldap.rb (module URI): ditto
+ * lib/uri/ldaps.rb (module URI): ditto
+ * lib/uri/mailto.rb (module URI): ditto
+ * process.c (Init_process): Document Process constants. Patch by
+ Vincent Batts. [Ruby 1.9- Bug #4677]
- * parse.y (f_arg): f_norm_arg is a VALUE in ripper, not an ID.
- fixed: [ruby-dev:26942]
+Fri May 13 05:16:38 2011 Eric Hodel <drbrain@segment7.net>
- * lib: do not use __send__ to access private methods. [ruby-dev:26935]
+ * lib/rss/atom.rb (module RSS): Document URIs. Patch by Mark Turner.
+ [Ruby 1.9 - #4671]
+ * lib/rss/rss.rb (module RSS): Document exception classes. Patch by
+ Mark Turner. [Ruby 1.9 - #4671]
-Thu Sep 1 17:11:25 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+Fri May 13 02:15:18 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * eval.c (rb_call0): wrong condition for $SAFE restoration.
+ * io.c (select_internal): remove unused variable (interrupt_flag).
-Thu Sep 1 14:12:45 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+Thu May 12 18:24:34 2011 Kouhei Sutou <kou@clear-code.com>
- * ext/tk/lib/multi-tk.rb: On Tcl8.5, MultiTkIp#invoke_hidden doesn't
- work (gives wrong order of arguments).
+ * configure.in: limit to "T" type for prefix of external symbols
+ because x86_64-w64-mingw32-gcc on Debian GNU/Linux generates the
+ following symbol:
+ 0000000068483390 D _GLOBAL__F__conftest_external
- * ext/tk/lib/multi-tk.rb: add MultiTkIp#invoke_hidden_on_namespace
- to support '-namespace' option of 'interp invokehidden' command
- on Tcl8.5.
+ Approved by nobu.
-Wed Aug 31 14:41:30 2005 NAKAMURA Usaku <usa@ruby-lang.org>
+Thu May 12 14:50:52 2011 NAKAMURA Usaku <usa@ruby-lang.org>
- * win32/Makefile.sub (OPTFLAGS): default global optimization to
- disabled for all VC++ versions. fixed: [ruby-dev:26897]
+ * test/dl/test_base.rb (Fiddle::LIBC_SO): its always msvc*.dll on
+ mswin/mingw.
-Wed Aug 31 10:36:09 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+Thu May 12 14:47:53 2011 NAKAMURA Usaku <usa@ruby-lang.org>
- * process.c (proc_detach, proc_setmaxgroups): missing argument type
- declaration. (I recommend ANSI-style function)
-
-Wed Aug 31 06:59:01 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * string.c (rb_str_scan): already String#scan behaves differently
- regarding if block is given.
-
-Tue Aug 30 23:49:34 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * array.c, dir.c, enum.c, hash.c, io.c, range.c, string.c, struct.c:
- let enumerable methods return Enumerator. [ruby-dev:26924]
-
- * intern.h (RETURN_ENUMERATOR): utility macro for enumerable methods.
-
-Tue Aug 30 23:25:45 2005 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
-
- * lib/debug.rb: no need to restart at exit.
-
-Tue Aug 30 23:20:19 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * eval.c (rb_rescue2): initialization miss. fixed: [ruby-dev:26917]
-
- * lib/mkmf.rb (xsystem, xpopen): no longer expand by Config.
-
- * lib/mkmf.rb (link_command, cc_command, cpp_command): expand
- variables at once, and quote hdrdir. fixed: [ruby-core:05680]
-
- * lib/mkmf.rb (libpathflag): quote paths.
-
-Tue Aug 30 19:34:27 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
-
- * ext/digest/md5/md5ossl.h, ext/digest/rmd160/rmd160ossl.h,
- ext/digest/sha1/sha1ossl.h: include <stddef.h> to avoid
- error in compilation with OpenSSL-0.9.8. [ruby-list:41068]
-
-Tue Aug 30 16:19:40 2005 Keiju Ishitsuka <keiju@ruby-lang.org>
-
- * lib/irb/init.rb: bug fix. [ruby-dev: 26920]
-
-Tue Aug 30 16:13:00 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * enum.c (enum_count): new method. [ruby-dev:26895]
-
-Tue Aug 30 12:45:15 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * eval.c (rb_f_send): do not call private methods if the receiver
- is specified. [ruby-talk:153672]
-
-Mon Aug 29 19:47:18 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
-
- * lib/rdoc/usage.rb: improper exceptions. [ruby-dev:26870]
-
- * lib/rdoc/usage.rb: support the case when non-ruby code exists before
- shebang. (this is needed when ri.bat is executed on windows)
-
-Mon Aug 29 18:58:05 2005 Keiju Ishitsuka <keiju@ruby-lang.org>
-
- * lib/irb/init.rb: make IRB -I option that is same behavior for ruby.
- [ruby-dev:26872]
-
- * lib/irb/locale.rb: support to print help message when OS locale is
- ja_JP.utf-8. [ruby-dev:26872]
-
-Mon Aug 29 01:43:05 2005 Tanaka Akira <akr@m17n.org>
-
- * lib/pathname.rb (Pathname#descend): new method.
- (Pathname#ascend): ditto.
-
-Mon Aug 29 00:35:09 2005 Tanaka Akira <akr@m17n.org>
-
- * lib/time.rb: require 'date/format' instead of 'parsedate'.
- (Time.parse): extract fractional seconds using Date._parse.
- (Time.strptime): extract fractional seconds using Date._strptime.
- [ruby-talk:153859]
-
-Sat Aug 27 20:13:31 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
-
- * ext/curses/curses.c ({curses,window}_clrtoeol): added. suggested
- by Reyn Vlietstra.
-
- * ext/curses/curses.c: chtype in curses is not `char', rather `long'.
- [ruby-Bugs:2298]
-
- * ext/curses/view.rb: String =~ String is deprecated.
-
-Thu Aug 25 15:48:58 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
-
- * ext/win32ole/win32ole.c: suppress warnings. (win32)
-
-Wed Aug 24 11:01:26 2005 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * test/logger/test_logger.rb (test_shifting_size): should close log
- device before unlink, since some platform cannot unlink opened
- file.
-
-Tue Aug 23 06:07:02 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
-
- * ext/openssl/lib/digest.rb: added SHA224, SHA256, SHA384 and SHA512.
- these features are enabled if this library is compiled with
- OpenSSL 0.9.8 or later.
-
- * test/openssl/test_digest.rb: add test for new digests.
-
-Tue Aug 23 05:47:04 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
-
- * ext/openssl/ossl_ns_spki.c (ossl_spki_initialize): try to decode
- the argument as a string.
-
- * ext/openssl/ossl_ns_pki.c (ossl_spki_to_der): new method.
-
- * ext/openssl/ossl_x509store.c (ossl_x509store_initialize): should
- set @time to avoid warning.
-
- * ext/openssl/ossl_x509store.c (ossl_x509store_set_default_paths,
- X509_STORE_add_cert, X509_STORE_add_crl): should raise error if
- wrapped functions fails.
-
- * ext/openssl/ossl_ssl.c (ossl_sslctx_set_ciphers): fix error message.
-
- * ext/openssl/ossl_x509req.c (ossl_x509req_set_attributes): get rid
- of unused variable.
-
- * test/openssl/test_ns_spki.rb: add new file.
-
- * test/openssl/test_x509store.rb: add test for error.
-
-Tue Aug 23 01:11:40 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
-
- * sprintf.c (ruby__sfvwrite): should move `buf' to the end of
- `result'. [ruby-dev:26859]
-
-Mon Aug 22 23:51:19 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * parse.y: ONIG_OPTION_CAPTURE_GROUP conflicts with
- RE_OPTION_ONCE. [ruby-dev:26852]
-
-Mon Aug 22 20:11:35 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * missing/vsnprintf.c (BSD__sprint): needs to call vwrite function
- pointer. fixed: [ruby-dev:26854]
-
-Sat Aug 20 23:55:25 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * parse.y (parser_yylex): update paren_nest for brackets [].
-
-Sun Aug 21 00:10:23 2005 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
-
- * lib/wsdl/xmlSchema/importer.rb (WSDL::XMLSchema::Importer#fetch): add
- a workaround for importing an WSDL whose path begins with drive
- letter. [ruby-dev:26242]
-
-Sat Aug 20 22:05:25 2005 K.Kosako <sndgk393 AT ybb.ne.jp>
-
- * regexec.c (code_is_in_cclass_node): check code size.
- [ruby-dev:26840]
-
-Sat Aug 20 22:37:13 2005 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
-
- * lib/logger.rb (write, shift_log?, shift_log): file shifting race
- condition bug fixed. [ruby-dev:26764]
-
- * test/logger/test_logger.rb: tests.
-
-Fri Aug 19 18:13:39 2005 Tanaka Akira <akr@m17n.org>
-
- * lib/time.rb (Time.apply_offset): fix a problem with last day of
- month. reported by Lucas Nussbaum. [ruby-talk:152866]
-
-Thu Aug 18 11:05:36 2005 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * win32/win32.c (socketpair_internal): need to call open_ifs_socket()
- to create sockets instead of winsock's socket().
- fixed: [yarv-dev:581]
-
-Wed Aug 17 23:58:05 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * eval.c (terminate_process): take String message.
-
- * eval.c (rb_thread_switch): propagate the exception caused thread
- termination directly. fixed: [ruby-core:05552]
-
-Wed Aug 17 21:20:05 2005 NARUSE, Yui <naruse@ruby-lang.org>
-
- * ext/nkf/lib/kconv.rb: ensure that symbol_to_option is private_class_method
- and all other methods are module_function
- fixed: [ruby-dev:26808]
-
-Wed Aug 17 00:05:46 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * eval.c (rb_add_method): preserve safe level in the environment
- where a method is defined .
-
- * eval.c (rb_call0): restore preserved safe level in the method
- execution.
-
- * parse.y (lambda): need separate block variable stack
- manipulation and lpar_beg maintenance. based on a patch found
- in [ruby-core:05551] from Mauricio Fernandez <mfp at acm.org>.
-
- * parse.y (parser_yylex): adjust lpar_beg after tLAMBEG and
- kDO_LAMBDA. [ruby-core:05551]
-
-Mon Aug 15 07:24:38 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * intern.h (rb_check_to_integer): add declaration.
-
- * object.c (rb_to_integer, rb_check_to_integer): argument constified.
-
-Mon Aug 15 00:38:51 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * eval.c (rb_rescue2): reduce PUSH_TAG() as well as NODE_RESCUE.
- [ruby-dev:26800]
-
- * range.c (range_check, range_init): reduce useless exceptions.
-
-Mon Aug 15 00:34:11 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * parse.y (yycompile): remove unreachable code. [yarv-dev:570]
-
-Sat Aug 13 22:16:12 2005 Minero Aoki <aamine@loveruby.net>
-
- * lib/fileutils.rb (remove_entry_secure): forgot final chdir.
-
-Sat Aug 13 22:07:49 2005 Minero Aoki <aamine@loveruby.net>
-
- * lib/fileutils.rb (remove_entry_secure): uses chdir(2) and check
- if current directory is correct. [ruby-dev:26100] [ruby-dev:26226]
-
-Sat Aug 13 21:11:05 2005 Masaki Suketa <masaki.suketa@nifty.ne.jp>
-
- * ext/win32ole/win32ole.c: add WIN32OLE_VARIANT class.
-
- * ext/win32ole/tests/testall.rb: ditto.
-
- * ext/win32ole/tests/testOLEVARIANT.rb: ditto.
-
-Sat Aug 13 18:51:26 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * eval.c (rb_block_pass): distinguish current block from others.
- fixed: [ruby-dev:26274]
-
- * ext/stringio/stringio.c (strio_set_string): disallow nil.
- http://www.rubyist.net/~nobu/t/20050811.html#c05
-
-Sat Aug 13 08:01:59 2005 NARUSE, Yui <naruse@ruby-lang.org>
-
- * ext/nkf/lib/kconv.rb: Kconv.kconv is now alias of Kconv.conv
- * ext/nkf/lib/kconv.rb: remove nkf dependent symbols from SYMBOL_TO_OPTION
-
-Fri Aug 12 17:06:53 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * parse.y (f_larglist): allow optional arguments even when
- parentheses are omitted. based on Nobu's patch from
- http://www.rubyist.net/~nobu/t/20050805.html
-
- * parse.y (parser_yylex): update & maintain lpar_beg for detect
- lambda parameters.
-
-Thu Aug 11 23:29:03 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/stringio/stringio.c: keep holding string after closed.
-
-Thu Aug 11 20:48:40 2005 Tadashi Saito <shiba@mail2.accsnet.ne.jp>
-
- * numeric.c (fix_equal, fix_cmp, fix_gt, fix_ge, fix_lt, fix_le):
- reduce coercing when a method knows about a operand type.
- [ruby-dev:26789]
-
-Thu Aug 11 13:01:48 2005 Kouhei Sutou <kou@cozmixng.org>
-
- * lib/rss: fixed sort bug. [ruby-list:41018]
-
- * lib/rss/1.0.rb (RSS::RDF::Channel#setup_maker_attributes):
- removed self.
-
- * lib/rss/maker/base.rb (RSS::Maker::ItemsBase#<=>): use #date
- instead of @date.
- (RSS::Maker::Base::self.def_array_element): added #size.
-
- * lib/rss/maker/1.0.rb
- (RSS::Maker::RSS10::Channel#to_rss,
- RSS::Maker::RSS10::Items::Item#to_rss): cleared dc_dates set
- upped by using #date.
-
- * lib/rss/maker/dublincore.rb
- (RSS::Maker::ChannelBase, RSS::Maker::ItemsBase::ItemBase):
- fixed opposite alias.
-
- * test/rss/test_setup_maker_1.0.rb
- (RSS::TestSetupMaker10::test_setup_maker_items_sort): added some
- tests for RSS::Maker::ItemsBase#do_sort.
-
-Wed Aug 10 12:01:20 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/delegate.rb: simplifies Delegator classes; SimpleDelegator
- now uses method_missing for all methods.
-
-Wed Aug 10 10:38:50 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * bignum.c (rb_big_mul0): multiply two numbers (x, y) without
- normalizing the result. x should be a big number.
- [ruby-dev:26778]
-
- * bignum.c (rb_big_pow): use rb_big_mul0() instead of
- rb_big_mul().
-
- * array.c (rb_ary_or, rb_ary_and, rb_ary_plus, rb_ary_diff):
- revert the change on 2005-08-03. Set operation on other item
- should have in separate methods.
-
- * parse.y (shadowing_lvar_gen): warn when arguments shadows
- external local variables.
-
- * parse.y (f_opt): optional arguments should not clobber external
- local variables.
-
- * parse.y (f_rest_arg): rest arguments should not clobber external
- local variables.
-
-Wed Aug 10 10:29:40 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/lib/tk.rb: fix bug on handling __ruby2val_optkeys().
-
- * ext/tk/lib/tk/itemconfig.rb: fix bug on handling
- __item_ruby2val_optkeys().
-
- * ext/tk/lib/tk/canvas.rb: didn't check __item_ruby2val_optkeys().
-
- * ext/tk/lib/tkextlib/blt/component.rb: ditto.
-
-Tue Aug 9 21:53:17 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * eval.c (formal_assign): let default values override
- arguments to zsuper. fixed: [ruby-dev:26743]
-
-Tue Aug 9 20:30:19 2005 Tadashi Saito <shiba@mail2.accsnet.ne.jp>
-
- * bignum.c (rb_big_coerce): allow bignum x bignum coercing.
- [ruby-dev:26778]
-
-Tue Aug 9 15:12:04 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/tcltklib.c: remove dangerous 'rb_jump_tag's.
-
- * ext/tk/lib/tk.rb: add __val2ruby_optkeys and __ruby2val_optkeys to
- help to convert option values between ruby and tcl.
-
- * ext/tk/lib/tk/itemconfig.rb: add __item_val2ruby_optkeys and
- __item_ruby2val_optkeys to help to convert option values between
- ruby and tcl.
-
- * ext/tk/lib/tk/radiobutton.rb: use __ruby2val_optkeys for 'variable'
- option (for the reason of backward compatibility).
-
- * ext/tk/lib/tk/composite.rb: clarify the arguments of super().
-
- * ext/tk/lib/tk/spinbox.rb: ditto.
-
- * ext/tk/lib/tk/text.rb: ditto.
-
- * ext/tk/lib/tk/validation.rb: ditto.
-
- * ext/tk/lib/tkextlib/*: support to treat tkvariable-type
- configure options.
-
-Tue Aug 9 08:24:05 2005 Mauricio Fernandez <mfp@acm.org>
-
- * parse.y (f_block_arg), eval.c (rb_yield_0): deal with dynamic
- variable lambda arguments. [ruby-core:05540]
-
-Mon Aug 8 22:13:48 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * eval.c (assign): deal with new block argument.
- fixed: [ruby-core:05536]
-
- * eval.c (rb_node_arity): follow change of NODE_ARGS.
- fixed: [ruby-dev:26761]
-
-Mon Aug 8 21:28:13 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
-
- * test/ruby/test_fnmatch.rb: separated from test_file.rb.
-
-Mon Aug 8 20:40:35 2005 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
-
- * test/ruby/test_method.rb: added. [ruby-dev:26761]
-
-Mon Aug 8 01:26:37 2005 Mauricio Fernandez <mfp@acm.org>
-
- * parse.y (f_larglist): mistake in syntax rule. [ruby-core:05535]
-
-Mon Aug 8 05:16:55 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
-
- * ext/openssl/ossl.c (ossl_raise): should use ERR_peek_last_error
- to get last error on the current thread. And should report
- if errors are on the stack while OpenSSL.debug is true.
-
- * ext/openssl/ossl.c (ossl_get_errors): new method for debugging
- this library.
-
-Mon Aug 8 05:15:19 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
-
- * lib/webrick/httpproxy.rb (HTTPProxyServer#initialize),
- lib/webrick/httpserver.rb (HTTPServer#initialize),
- lib/webrick/httpservlet/cgihandler.rb (CGIHandler#initialize),
- lib/webrick/httpservlet/erbhandler.rb (ERBHandler#initialize),
- lib/webrick/httpservlet/filehandler.rb(DefaultFileHandler#initialize):
- super (called with no arguments) takes default value of optional
- arguments. [ruby-dev:26743]
-
- * lib/webrick/httputils.rb: add a media-type "text/html" for .xhtml.
-
-Sun Aug 7 23:52:39 2005 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
-
- * test/ruby/test_super.rb: added optional arg tests. [ruby-dev:26743]
- the tests expects 1.8 behavior at this time.
-
-Sat Aug 6 12:35:24 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/lib/{tk.rb,tk/itemconfig.rb}: configure creates
- TkVariable if key name is 'variable' or 'textvariable'
- by default. [ruby-dev:26749]
-
- * ext/tk/lib/tk/{label,radiobutton}.rb: removed its own
- {variable,textvariable} function.
-
- * ext/tk/lib/tk/variable.rb: retains backward conpatibility.
-
-Fri Aug 5 12:48:31 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
-
- * ext/tk/tcltklib.c: fixed memory leak when tk_funcall raised
- exception. (copies argv into heap in tk_funcall instead of
- caller)
-
-Fri Aug 5 12:36:40 2005 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * lib/mkmf.rb (create_makefile): need to convert path separetor
- before invoking install command.
-
-Fri Aug 5 08:08:05 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * eval.c (return_jump): fix "can't across thread" error message
- when no thread associated.
- http://www.namikilab.tuat.ac.jp/~sasada/diary/200507.html#d31
-
-Fri Aug 5 00:25:12 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
-
- * ext/tk/tcltklib.c: refactoring - extract ruby string <->
- tcl object conversion as get_str_from_obj and get_obj_from_str.
-
-Fri Aug 5 00:19:33 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * enumerator.c (Init_Enumerator): provided features should have
- extensions.
-
- * eval.c (rb_feature_p): returns type of the feature instead of
- extension.
-
- * eval.c (search_required): ruby library should be prior to statically
- linked extensions. fixed: [ruby-dev:26711]
-
- * eval.c (formal_assign): returns position of rest arguments variable.
-
- * parse.y (f_rest_arg): use anonymous variable for rest arguments.
- fixed: [ruby-dev:26647]
-
- * extmk.rb (extmake): needs to be wrapped in an Array.
-
-Thu Aug 4 20:03:18 2005 Tadashi Saito <shiba@mail2.accsnet.ne.jp>
-
- * numeric.c (Init_Numeric): do not share implementation among
- Fixnum#/ and Fixnum#div. [ruby-core:05531]
-
-Thu Aug 4 18:38:36 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/tcltklib.c: cannot compile for Tcl7.6/Tk4.2.
-
- * ext/tk/tcltklib.c: add nativethread consistency check.
-
- * ext/tk/stubs.c: ditto.
-
- * ext/tk/lib/tk.rb: forgot to define TclTkIp.encoding and encoding=
- when Tcl is 7.6 or 8.0.
-
- * ext/tk/lib/tk/wm.rb: support to make some methods as options of
- root or toplevel widget. [ruby-talk:150336]
-
- * ext/tk/lib/tk/root.rb: ditto.
-
- * ext/tk/lib/tk/toplevel.rb: ditto.
-
- * ext/tk/lib/tkextlib/SUPPRT_STATUS: update RELEASE_DATE
-
-Thu Aug 4 13:30:15 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * numeric.c (fix_div): should not convert the result into
- integer. [ruby-core:05524]
-
-Thu Aug 4 08:03:39 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/extmk.rb (extmake): should not modify $mflags for each
- extensions.
-
-Thu Aug 4 00:25:48 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * common.mk, Makefile.in, {bcc32,win32,wince}/Makefile.sub: integrated
- macro definitions.
-
- * bcc32/Makefile.sub: LIBRUBY_SO should use DLDOBJS, not EXTOBJS.
-
- * {win32,wince}/Makefile.sub: separate config.h for compiler versions.
-
-Thu Aug 4 00:24:59 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * sprintf.c: replacing is no longer needed.
-
-Wed Aug 3 21:59:16 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/lib/tk/variable.rb: TkVariable#trace didn't work on
- TkVariable retrived from TkVariable.new_hash.ref. [ruby-dev:26721]
-
-Wed Aug 3 12:40:28 2005 Tadashi Saito <shiba@mail2.accsnet.ne.jp>
-
- * numeric.c (fix_plus): reduce coercing when a method knows about
- a operand type. [ruby-dev:26723]
-
- * numeric.c (fix_minus, fix_mul, fix_quo, fix_div, fix_mod,
- fix_divmod, fix_pow): ditto.
-
- * bignum.c (rb_big_div, rb_big_modulo): export to reduce
- coercing.
-
-Wed Aug 3 10:13:52 2005 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * configure.in, {bcc32,win32,wince}/Makefile.sub (HAVE_SNPRINTF,
- HAVE_VSNPRINTF): use win32/win32.c's implementation instead of
- missing/vsnprintf.c's.
-
- * win32/win32.[ch] (rb_w32_snprintf, rb_w32_vsnprintf): reverted.
-
-Wed Aug 3 10:05:08 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * configure.in: check vsnprintf() and snprintf().
-
- * sprintf.c, missing/vsnprintf.c: made vsnprintf() and snprintf()
- private. fixed: [ruby-dev:26651]
-
-Wed Aug 3 08:22:13 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * ext/socket/socket.c (ruby_connect): revert [ruby-talk:111654]
- changes at 2004-09-07. [ruby-dev:26656]
-
-Wed Aug 3 06:53:35 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * array.c (rb_ary_or): wraps the operand in an array if it is not
- an array. [ruby-talk:150495] [EXPERIMENTAL]
-
- * array.c (rb_ary_and, rb_ary_plus, rb_ary_diff): ditto.
-
-Tue Aug 2 10:23:12 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
-
- * ext/tk/tcltklib.c: use Tcl_[GS]etVar2Ex instead of
- Tcl_Obj[GS]etVar2. (avoid Tcl_NewStringObj on supported platforms)
-
- * ext/tk/tcltklib.c: use ip_{get,set,unset}_variable2_core from
- ip_{get,set,unset}_variable.
-
- * ext/tk/tcltklib.c: replaced Tcl_Panic with rb_bug.
-
-Tue Aug 2 01:40:38 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
-
- * lib/ping.rb (Ping.pingecho): should rescue StandardError.
- [ruby-dev:26677]
-
-Mon Aug 1 19:02:23 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
-
- * ext/tk/tcltklib.c: refactoring - replaced rb_ivar_defined &
- rb_ivar_get with single rb_attr_get call.
-
-Mon Aug 1 18:44:08 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
-
- * ext/tk/tcltklib.c (Tcl_GetStringResult): refactoring - define
- alternative macro on Tcl7.x or earlier.
-
-Mon Aug 1 13:53:55 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
-
- * ext/tk/tcltklib.c (deleted_ip): refactoring - interpreter
- deletion check. [ruby-dev:26664]
-
-Mon Aug 1 01:08:21 2005 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
-
- * lib/drb/drb.rb (check_insecure_method): use private_methods and
- protected_methods instead of respond_to? to check method visibility.
- [ruby-dev:26616]
-
- * test/drb/drbtest.rb: ditto.
-
- * test/drb/ut_drb.rb: ditto.
-
-Sat Jul 30 18:49:44 2005 Masaki Suketa <masaki.suketa@nifty.ne.jp>
-
- * ext/win32ole/win32ole.c: add WIN32OLE_TYPE#ole_typelib,
- WIN32OLE_TYPE#implemented_ole_types.
-
- * ext/win32ole/tests/testOLETYPE.rb: ditto.
-
-Fri Jul 29 16:12:02 2005 Keiju Ishitsuka <keiju@ruby-lang.org>
-
- * lib/irb/context.rb: fix `irb --readline` option. [ruby-dev:40955]
-
-Fri Jul 29 09:59:38 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * eval.c (rb_call0): fix calling zsuper from a method with anonymous
- rest argument. [ruby-dev:26639]
-
- * eval.c (rb_yield_0): push yielded node instead of yielding.
- fixed: [yarv-dev:549]
-
-Thu Jul 28 21:49:17 2005 IWATSUKI Hiroyuki <don@na.rim.or.jp>
-
- * parse.y (rb_parser_end_seen_p): exclude from ripper.
- <http://moonrock.jp/~don/d/200507.html#d28_t2>
-
- * sprintf.c (clearerr): remove standard macro before re-definition.
- <http://moonrock.jp/~don/d/200507.html#d28_t3>
-
-Thu Jul 28 18:09:55 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/stubs.c: When --enable-tcltk-stubs, the initialize
- routine creates a Tcl/Tk interpreter and deletes it. However,
- init cost of Tk's MainWindow is not so small. And that makes it
- impossible to use libraries written with Tcl functions only on
- an environment without a graphical display. This changes support
- delaying initalization of Tk_Stubs until the script needs Tk.
-
- * ext/tk/stubs.h: New file. Define prototypes and return codes of
- functions on stubs.c.
-
- * ext/tk/tcltklib.c: Support delaying initalization of Tk_Stubs
- until the script needs Tk.
-
- * ext/tk/tcltklib.c: Show friendly error messages for errors on
- initialization.
-
- * ext/tk/tcltklib.c: Avoid SEGV on ip_finalize() when ruby is
- exiting and $DEBUG is true. (Not fix. If you know the reason of
- why, please fix it.)
-
- * ext/tk/tkutil/tkutil.c (ary2list, ary2list2): bug fix on handling
- of encoding.
-
- * ext/tk/lib/multi-tk.rb: MultiTkIp#eval_string and bg_eval_string
- don't work propery.
-
- * ext/tk/lib/tk.rb: Forget extending Tk::Encoding module to Tk.
-
- * ext/tk/lib/tk/variable.rb: TkVarAccess fails to initialize the
- object for an element of a Tcl's array variable.
-
-Thu Jul 28 17:23:37 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * parse.y (f_larglist): allow block argument in lambda parameter
- list without parenthesis.
-
-Thu Jul 28 17:14:01 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * hash.c (each_i): typo fixed. [ruby-dev:26622]
-
-Thu Jul 28 15:04:11 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * parse.y (f_arg): better argument name duplication check
-
- * parse.y (new_args_gen): factored out name duplication check for
- optional and rest arguments.
-
- * parse.y (new_bv_gen): allow shadowing outer local variables;
- warning remains.
-
-Thu Jul 28 13:46:06 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * parse.y (ripper_warningS): the argument was omitted.
- [ruby-dev:26621]
-
-Thu Jul 28 11:30:57 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * parse.y (f_larglist): allow bv_decl at the end of lambda
- argument list. [EXPERIMENTAL]
-
- * parse.y (new_bv_gen): allow local variable shadowing, with
- warning in verbose mode.
-
-Wed Jul 27 23:23:54 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * gc.c (obj_free): make message format consistent with one from
- gc_mark(). [ruby-talk:149668]
-
- * sprintf.c (quad_t): prepare quad_t as well. [ruby-talk:149668]
-
-Wed Jul 27 22:11:37 2005 Kouhei Sutou <kou@cozmixng.org>
-
- * sample/rss/tdiary_plugin: removed. because the plugin
- is imported in the tDiary plugin packages.
-
-Wed Jul 27 19:11:53 2005 Minero Aoki <aamine@loveruby.net>
-
- * lib/fileutils.rb (cd): follow :noop option change. (This patch
- is contributed by Doug Kearns)
-
-Wed Jul 27 16:25:59 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * parse.y (lambda): Perl6 style -> lambda expression. [NEW]
- [VERY EXPERIMENTAL]
-
-Wed Jul 27 10:43:14 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * gc.c (id2ref): must not assign pointers to long int. use
- LONG_LONG instead if SIZEOF_LONG < SIZEOF_VOIDP.
- [ruby-talk:149645]
-
- * ruby.h: use LONG_LONG to simplify the change.
- [ruby-talk:149645]
-
-Wed Jul 27 10:59:02 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * dir.c (dir_each): rewinddir(3) before iteration.
- [ruby-talk:149628]
-
-Wed Jul 27 02:34:58 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * eval.c (rb_f_throw): replace all '0x%lx' by '%p'.
- [ruby-talk:149553]
-
- * missing/vsnprintf.c (BSD_vfprintf): '%p' need to handle 64bit
- size pointer. [ruby-talk:149553]
-
-Tue Jul 26 22:41:28 2005 Minero Aoki <aamine@loveruby.net>
-
- * ext/ripper/lib/ripper/sexp.rb: new method Ripper.sexp_raw.
-
- * ext/ripper/lib/ripper/sexp.rb (Ripper.sexp): returns more
- readable tree. This is suggested by Kirill A. Shutemov.
-
-Tue Jul 26 22:05:12 2005 Minero Aoki <aamine@loveruby.net>
-
- * lib/net/http.rb: merge a patch contributed by Daniel Berger,
- with some modification. (RubyForge #2128)
-
-Tue Jul 26 18:11:33 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * ruby.h: support LLP64 model. [ruby-talk:149524]
-
-Tue Jul 26 12:57:40 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
-
- * ext/openssl/openssl_missin.c: include <openssl/engine.h> before
- <openssl/x509_vfy.h> to avoid compilation error of mswin32.
- suggested by NAKAMURA Usaku.
-
-Mon Jul 25 23:48:55 2005 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * win32/win32.[ch]: (rb_w32_vsnprintf, rb_w32_snprintf): removed.
-
-Mon Jul 25 21:30:46 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * common.mk: Borland MAKE doesn't look for file names which have paths
- from VPATH. fixed: [ruby-dev:26604]
-
- * ruby.h (NORETURN, DEPRECATED): moved just after config.h.
-
- * {win32,wince}/Makefile.sub: vsnprintf() is in missing now.
-
- * {bcc32,win32,wince}/Makefile.sub: moved CPPFLAGS only for ruby
- source to XCFLAGS.
-
-Mon Jul 25 14:10:02 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/lib/multi-tk.rb: fix en-bugged part in the last commit.
-
-Mon Jul 25 13:45:18 2005 NAJIMA Hiroki <najima@mickey.ai.kyutech.ac.jp>
-
- * io.c: check HAVE_SYS_IOCTL_H before including the header.
- [ruby-dev:26610]
-
-Sat Jul 23 16:48:12 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
-
- * ext/openssl/ossl_engine.c (ossl_engine_s_load): should check
- OPENSSL_NO_STATIC_ENGINE.
-
-Sat Jul 23 11:46:30 2005 Tanaka Akira <akr@m17n.org>
-
- * eval.c (rb_fd_select): the all three fd_sets must be long enough for
- select. fixed: [ruby-talk:149059]
-
-Sat Jul 23 10:01:41 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * sprintf.c (rb_vsprintf, rb_sprintf): new functions return new String,
- using missing/vsnprintf.c. [ruby-dev:26580]
-
- * missing/vsnprintf.c: made the output changeable.
-
-Fri Jul 22 21:06:08 2005 Tadashi Saito <shiba@mail2.accsnet.ne.jp>
-
- * bignum.c (rb_big_eq): reduce isnan(). [ruby-dev:26600]
-
- * numeric.c (flo_eq, flo_gt, flo_ge, flo_lt, flo_le): ditto.
-
-Fri Jul 22 15:02:39 2005 Kouhei Sutou <kou@cozmixng.org>
-
- * lib/rss/rss.rb: moved copyright description to lib/rss.rb.
-
- * lib/rss.rb: added for convenience.
-
- * sample/rss/re_read.rb: added #to_s sample.
-
- * sample/rss/blend.rb: use 'require "rss"' instead of
- 'require "rss/*"'.
- * sample/rss/list_description.rb: ditto.
- * sample/rss/rss_recent.rb: ditto.
- * sample/rss/tdiary-plugin/rss-recent.rb: ditto.
-
- * sample/rss/tdiary-plugin/rss-recent.rb: 0.0.6 -> 0.0.7.
-
-Fri Jul 22 14:37:43 2005 Kouhei Sutou <kou@cozmixng.org>
-
- * lib/rss/parser.rb (RSS::Parser#initialize): accept HTTP/FTP
- URI and local file path too.
-
- * test/rss/test_parser.rb (RSS::TestParser#test_parse): test
- for the above.
-
-Fri Jul 22 07:01:42 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/tkutil/tkutil.c (tk_conv_args): forget to revert
- thread_critical and gc_disable when raise ArgumentError.
-
- * ext/tk/lib/remote-tk.rb: RemoteTkIp doesn't need to include TkUtil.
-
- * ext/tk/tcltklib.c: add TclTkIp#has_mainwindow? method.
-
- * ext/tk/lib/tk.rb: add Tk.has_mainwindow? method.
-
- * ext/tk/lib/multi-tk.rb: add MultiTkIp#has_mainwindow? method.
-
- * ext/tk/lib/remote-tk.rb: add RemoteTkIp#has_mainwindow? method.
-
- * ext/tk/lib/multi-tk.rb: slave IP fail to exit itself when $SAFE==4.
-
- * ext/tk/lib/multi-tk.rb: remove constants from MultiTkIp module to
- avoid access from external.
-
- * ext/tk/lib/multi-tk.rb: check_root flag is ignored on slave IPs'
- mainloop.
-
- * ext/tk/lib/multi-tk.rb: hang-up Tk.mainloop called on a slave IP
- with $SAFE==4.
-
- * ext/tk/lib/multi-tk.rb: MultiTkIp#bg_eval_proc doesn't work
- properly.
-
- * ext/tk/lib/multi-tk.rb: add MultiTkIp#set_cb_error(proc) and
- cb_error(exc) to log errors at callbacks on safe slave IPs.
-
- * ext/tk/lib/multi-tk.rb: fail to get an available slave IP object
- when call Tk.mainloop in the block which is given to new_* method,
- because cannot finish initialize while the root widget is alive.
-
- * ext/tk/lib/multi-tk.rb: fail to control a slave IP when Tk.mainloop
- runs on the IP.
-
-Thu Jul 21 01:00:00 2005 NARUSE, Yui <naruse@ruby-lang.org>
-
- * ext/nkf/nkf-utf8/{nkf.c,utf8tbl.c,config.h}:
- import 1.76
- [ruby-dev:26592] nkf constification
-
-Wed Jul 20 19:18:52 2005 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * io.c (S_ISREG): need to define S_ISREG before it is used first.
-
-Wed Jul 20 18:33:15 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
-
- * io.c (wsplit_p): patch for the environment where
- fcntl(F_GETFL, O_NONBLOCK) is not supported. in that case,
- set FMODE_WSPLIT without fcntl check. [ruby-dev:26566]
-
-Wed Jul 20 18:07:11 2005 Tanaka Akira <akr@m17n.org>
-
- * io.c (rb_io_ctl): update FMODE_WSPLIT_INITIALIZED and FMODE_WSPLIT
- by F_SETFL.
-
-Wed Jul 20 10:04:51 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * variable.c (rb_class_path): need to adjust snprintf() len for
- teminating NUL. [ruby-dev:26581]
-
-Wed Jul 20 03:58:52 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
-
- * ext/socket/socket.c: sorry, BeOS also uses HAVE_CLOSESOCKET,
- so reverted.
-
- * ext/socket/extconf.rb: should not define HAVE_CLOSESOCKET
- on windows.
-
-Wed Jul 20 03:12:21 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
-
- * ext/socket/socket.c: should not undef close() on win32.
- it's defined to rb_w32_close(), otherwise handle leaks.
- [ruby-Bugs-2131]
-
-Wed Jul 20 00:48:16 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * error.c (syserr_initialize): don't use str before StringValue()
- check. [ruby-dev:26579]
-
-Tue Jul 19 22:47:29 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * error.c (syserr_initialize): add 1 byte for snprintf() size for
- NUL at the end. [ruby-dev:26574]
-
-Tue Jul 19 17:16:34 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * signal.c (trap): remove sigexit(); handle "EXIT" via sig_exec().
- [ruby-dev:26440]
-
- * io.c (rb_io_inspect): replace sprintf() with "%s" format all
- over the place by snprintf() to avoid integer overflow.
-
-Tue Jul 19 14:10:50 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
-
- * ext/tk/tcltklib.c: rbtk_eventloop_depth is used as int.
-
- * ext/tk/tcltklib.c: rbtk_pending_exception is tested with
- NIL_P, so should assign Qnil instead of 0 (Qfalse).
-
- * ext/tk/tcltklib.c (ip_invoke_real): fixed memory leak when
- ip is deleted.
-
-Tue Jul 19 13:19:46 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/lib/tk/variable.rb: For symmetry, add TkVariable#string. It
- returns a string even if the default value type of the TkVariable
- object is not "string".
-
-Mon Jul 18 21:39:18 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
-
- * eval.c (rb_call0): make the pointer to NODE volatile
- instead of NODE itself.
-
-Mon Jul 18 14:32:21 2005 Tanaka Akira <akr@m17n.org>
-
- * eval.c (rb_call0): make body volatile to avoid possible optimization
- problem.
- [ruby-dev:26195]
-
-Mon Jul 18 12:23:27 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
-
- * ext/io/wait/wait.c: wrong backport from trunk, and compile error on
- platforms fd_set is not a bit set. fixed: [ruby-dev:26562]
-
-Mon Jul 18 09:36:25 2005 Tanaka Akira <akr@m17n.org>
-
- * rubyio.h (FMODE_WSPLIT, FMODE_WSPLIT_INITIALIZED): new constant.
-
- * io.c (wsplit_p): new function.
- (io_fflush): split writing data by PIPE_BUF if wsplit_p is true in
- multi-threaded mode.
- (io_fwrite): ditto.
- [ruby-dev:26540]
-
-Mon Jul 18 05:00:00 2005 NARUSE, Yui <naruse@ruby-lang.org>
-
- * ext/nkf/nkf-utf8/nkf.c: import nkf.c 1.73
- fix: TestKconv 1F
-
-Sun Jul 17 13:46:54 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/io/wait/extconf.rb, ext/io/wait/wait.c: Win32 platforms support.
-
-Sat Jul 16 23:43:16 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * enumerator.c (Init_Enumerator): wrong argument specs.
- [ruby-core:05481]
-
-Sat Jul 16 15:52:50 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
-
- * win32/win32.[hc]: constified socket functions. [ruby-dev:26553]
-
-Fri Jul 15 23:59:03 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/rdoc/parsers/parse_c.rb (handle_class_module): handle a
- module enclosed in a built-in module. fixed: [ruby-talk:148239]
-
- * lib/rdoc/parsers/parse_c.rb (find_body): allow macros as methods.
-
- * lib/rdoc/parsers/parse_c.rb (find_call_seq): allow :nodoc: modifier
- in C. [ruby-core:04572]
-
-Fri Jul 15 23:20:03 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * enumerator.c (Init_Enumerator): use an internal directly.
-
-Fri Jul 15 07:58:10 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
-
- * lib/webrick/server.rb (WEBrick::GenericServer#accept_client):
- sockets should be non-blocking mode. [ruby-dev:26405]
-
- * lib/webrick/utils.rb (WEBrick::Utils.set_non_blocking): new method.
-
-Fri Jul 15 00:11:36 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * enum.c (enumeratorize): create new enumerator for current method if
- no block is given.
-
- * enumerator.c: moved from ext/enumerator.
-
-Thu Jul 14 18:27:35 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
-
- * win32/win32.c (rb_w32_strerror): should return correct message
- for ENAMETOOLONG and ENOTEMPTY. (bcc32) [ruby-dev:26533]
-
- * win32/win32.c (rb_w32_strerror): stripped CR LF on the tail.
- (bcc32) [ruby-dev:26533]
-
-Thu Jul 14 00:45:42 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * LEGAL (ext/nkf/nkf-utf8): updated from nkf1.7 to nkf-utf8.
-
-Wed Jul 13 22:44:00 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * parse.y: remove static variables. [ruby-dev:26530]
-
-Wed Jul 13 19:36:29 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
-
- * win32/win32.c (rb_w32_mkdir): should set EEXIST (not EACCES)
- if file or directory already exists. (bcc32) [ruby-dev:26508]
-
- * win32/win32.c (rb_w32_rmdir): should set ENOTDIR (not EINVAL)
- if it is not directory. (bcc32, win32)
-
- * win32/win32.c (rb_w32_rmdir, rb_w32_unlink): restore
- FILE_ATTRIBUTE_READONLY flag on function failure.
-
-Wed Jul 13 12:40:00 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/tcltklib.c: TclTkLib.do_one_event doesn't work.
-
- * ext/tk/lib/tk.rb: Tk.thread_update is available.
-
-Tue Jul 12 23:32:11 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/mkmf.rb: keep curdir unexpanded.
-
-Mon Jul 11 23:50:17 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * eval.c, intern.h (rb_proc_call, rb_obj_method, rb_method_call):
- export.
-
- * ext/enumerator/enumerator.c (enumerator_with_index): [EXPERIMENTAL]
- added a new method Enumerator#with_index. [ruby-talk:147728]
-
-Mon Jul 11 08:31:29 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * regparse.c (fetch_escaped_value): mask values following \c in
- regexp. fixed: [ruby-dev:26500]
-
-Sun Jul 11 05:18:17 2005 Michael Neumann <mneumann@ruby-lang.org>
-
- * lib/xmlrpc/server.rb (XMLRPC::Server): Switch from GServer over to
- WEBrick. This makes file lib/xmlrpc/httpserver.rb obsolete (at least it is
- no further used by the XML-RPC library).
-
-Mon Jul 11 02:50:23 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
-
- * lib/webrick/cgi.rb (WEBrick::CGI::Socket#request_line):
- mistook to merge the patch of [ruby-dev:26235] at
- revision 1.11.
-
-Sun Jul 10 23:58:04 2005 Tanaka Akira <akr@m17n.org>
-
- * lib/pathname.rb (Pathname#unlink): try Dir.unlink first to
- avoid unlink a directory by root.
- cf. [ruby-dev:26237]
-
-Sun Jul 10 12:47:01 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/debug.rb (debug_command): added a deficient format specifier.
- fixed: [ruby-core:05419]
-
-Sat Jul 9 22:02:37 2005 Masaki Suketa <masaki.suketa@nifty.ne.jp>
-
- * ext/win32ole/win32ole.c (ole_method_dispid): convert dispid
- in Ruby and C by INT2NUM and NUM2INT.
-
- * ext/win32ole/win32ole.c (ole_invoke2): ditto.
-
- * ext/win32ole/test/testWIN32OLE.rb: ditto.
-
- * ext/win32ole/test/testOLEMETHOD.rb: ditto.
-
-Fri Jul 8 15:45:04 2005 Kouhei Sutou <kou@cozmixng.org>
-
- * lib/rss/rss.rb (RSS::VERSION): 0.1.4 -> 0.1.5.
-
- * test/rss/test_version.rb (RSS::TestVersion#test_version):
- ditto.
-
- * lib/rss/0.9.rb (RSS::Rss::Channel::Item::Category):
- domain attribute of <category> is optional. Thanks to
- Chris Lee <clee@kde.org>.
-
- * test/rss/test_parser.rb (RSS::TestParser#test_category20):
- adjusted test case.
-
-Wed Jul 6 18:45:53 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * object.c (rb_obj_pattern_match): now returns nil.
- [ruby-core:05391]
-
-Mon Jul 4 14:35:52 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * sample/svr.rb: service can be stopped by ill-behaved client; use
- tsvr.rb instead.
-
-Mon Jul 4 13:25:21 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * missing/erf.c: original erf.c by prof. Okumura is confirmed to
- be public domain. reverted BSD implementation.
-
-Wed Jul 6 11:15:21 2005 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * win32/win32.c (open_ifs_socket): new function.
-
- * win32/win32.c (StartSockets, rb_w32_socket): use open_ifs_socket()
- instead of socket().
- all changes are derived from [ruby-core:5388].
-
-Wed Jul 6 00:15:00 2005 NARUSE, Yui <naruse@ruby-lang.org>
-
- * ext/nkf/nkf-utf8/{nkf.c,utf8tbl.c,config.h}:
- imported nkf.c 1.70 (support UTF-8-MAC)
-
- * ext/nkf/lib/kconv.rb: add :utf8mac and :internalunicode
-
-Tue Jul 5 23:44:06 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * instruby.rb: expand source library path.
-
-Tue Jul 5 23:27:14 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * array.c (sort_2): get rid of yet another bcc's bug.
- fixed: [ruby-core:05152]
-
- * eval.c (rb_thread_save_context): must not switch contexts during
- re-allocating stack. fixed: [ruby-core:05219]
-
-Tue Jul 5 15:15:10 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/tkutil.c: fix typo.
-
-Tue Jul 5 14:52:56 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/tcltklib.c: bug fix on treating Unicode strings.
-
- * ext/tk/tcltklib.c: add methods to treat encoding mode.
-
- * ext/tk/MANUAL_tcltklib.eng: add description of TclTkLib#encoding,
- encoding_system, and so on.
-
- * ext/tk/MANUAL_tcltklib.eucj: ditto.
-
- * ext/tk/tkutil/tkutil.c: fail to create a Tcl's list string from
- an array including multiple kind of encoded strings.
-
- * ext/tk/lib/tk.rb: ditto.
-
- * ext/tk/lib/multi-tk.rb: 2nd arg of _{to|from}UTF8 is omissible.
-
- * ext/tk/lib/remote-tk.rb: ditto.
-
- * ext/tk/lib/tk.rb: override TclTkLib#encoding and encoding= to
- use TkCore::INTERP.encoding and encoding=.
-
- * ext/tk/lib/tk.rb: when "require 'tk'" and $KCODE=='NONE', check
- DEFAULT_TK_ENCODING to decide Ruby/Tk's system encoding mode.
-
- * ext/tk/lib/tk/encodedstr.rb: check both of Tk.encoding and
- Tk.encoding_system. Tk.encoding has higher priority.
-
- * ext/tk/lib/tk/optiondb.rb: ditto.
-
- * ext/tk/lib/tk/spinbox.rb: ditto.
-
- * ext/tk/lib/tk/validation.rb: ditto.
-
- * ext/tk/lib/tk/namespace.rb: arguemnts for TclTkIp#_merge_tklist
- should be UTF-8 strings.
-
-Mon Jul 4 19:29:32 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
-
- * lib/set.rb: test change to follow revision 1.28. (duck typing?)
-
-Mon Jul 4 11:23:50 2005 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * test/{dbm,gdbm,sdbm}/test_{dbm,gdbm,sdbm}.rb: skip some tests
- which using fork on fork-less platforms.
-
-Sun Jul 3 23:26:30 2005 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
-
- * test/wsdl/document/test_rpc.rb: compare formatted time string of
- Time objects instead of comparing Time objects itself to avoid
- unintended conflict of usec part. [ruby-dev:26220]
-
-Sat Jul 2 22:41:04 2005 Tanaka Akira <akr@m17n.org>
-
- * ext/socket/socket.c (unix_send_io, unix_recv_io): support x86-64 and
- IA64.
-
-Sat Jul 2 17:06:23 2005 Tanaka Akira <akr@m17n.org>
-
- * defines.h (FLUSH_REGISTER_WINDOWS): defined for IA64.
- (flush_register_windows): declare flush_register_windows.
-
- * eval.c (flush_register_windows): new function.
-
- * ruby.h (NOINLINE): move up to be effective in defines.h.
-
-Sat Jul 2 15:19:41 2005 Tanaka Akira <akr@m17n.org>
-
- * configure.in: check select_large_fdset.
-
- * eval.c: use select_large_fdset to support large file descriptors
- on Solaris. [ruby-dev:26404]
-
-Fri Jul 1 17:55:08 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * bignum.c (rb_big_neg): may be accessing bogus pointer value.
-
-Fri Jul 1 15:50:12 2005 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * missing/erf.c: need to include some headers for some platforms.
-
- * win32/win32.h (copysign, scalb): define for compatibility with
- other platforms. [ruby-dev:26430]
-
-Fri Jul 1 15:37:42 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * missing/crypt.c: modified to make it compilable on platforms
- other than BSD. [ruby-dev:26430]
-
- * missing/erf.c: ditto. code from <exp.c> merged.
-
-Fri Jul 1 12:44:56 2005 Tanaka Akira <akr@m17n.org>
-
- * lib/open-uri.rb (OpenURI.open_http): refine post_connection_check
- call.
-
-Fri Jul 1 11:34:08 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * missing/crypt.c: replaced with 4.4BSD version.
-
- * missing/erf.c: ditto.
-
- * missing/vsnprintf.c: removed the third provision from the old
- BSD license. [ruby-core:05177]
-
-Fri Jul 1 01:45:21 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * enum.c (enum_min, enum_max): must not return Qundef.
- fixed: [ruby-core:05299]
-
-Fri Jul 1 00:18:40 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/delegate.rb (Delegator::respond_to): respond_to? must check
- destination object. [ruby-talk:146894]
-
-Thu Jun 30 23:52:12 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * signal.c (trap): non-string trap hander was ignored.
- fixed: [ruby-dev:26417]
-
-Thu Jun 30 19:00:21 2005 Keiju Ishitsuka <keiju@ruby-lang.org>
-
- * lib/irb/ruby-lex.rb (RubyLex::identify_number): alternative implements
- for [ruby-dev:26410]. And support a numeric form of 0d99999.
-
-Thu Jun 30 17:28:10 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/irb/ruby-lex.rb (RubyLex::identify_number): should not treat
- plain zero as an octal number. [ruby-dev:26410]
-
-Thu Jun 30 15:13:16 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * eval.c (rb_eval): pre-evaluate argument for unambiguous
- evaluation order. [ruby-dev:26383]
-
-Thu Jun 30 14:48:23 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
-
- * lib/net/http.rb (Net::HTTP#connect, Net::HTTP#request): should
- not send proxy username and password to origin servers.
- [ruby-dev:25673]
-
- * lib/net/http.rb (Net::HTTP::ProxyDelta#edit_path): should not
- send HTTPS scheme URL to origine servers. [ruby-dev:25689]
-
-Thu Jun 30 09:53:56 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/delegate.rb (Delegator::method_missing): forward unknown
- method to the destination. suggested by
- <christophe.poucet@gmail.com>. [ruby-talk:146776]
-
-Wed Jun 29 00:03:20 2005 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
-
- * regparse.c (fetch_token): avoid warning of unused goto tag.
- [ruby-dev:26389]
-
-Tue Jun 28 21:59:29 2005 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
-
- * dir.c, eval.c, parse.y, process.c, ruby.c: avoid warning "unused
- variable" [ruby-dev:26387]
-
- * dir.c (glob_helper): avoid warning "enumeration value `RECURSIVE'
- not handled in switch" [ruby-dev:26392]
-
-Tue Jun 28 01:52:00 2005 NARUSE, Yui <naruse@ruby-lang.org>
-
- * ext/nkf/lib/kconv.rb: add Kconv::VERSION
- * ext/nkf/lib/kconv.rb (conv): can process arrayed options
- * ext/nkf/nkf-utf8/nkf.c: imported Revision 1.69
- * ext/nkf/nkf-utf8/utf8tbl.c: imported Revision 1.9
-
-Sat Jun 25 23:30:51 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * process.c (detach_process_watcher): terminate process watcher
- thread right after rb_waitpid() succeed. [ruby-talk:146430]
-
-Sat Jun 25 17:12:20 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
-
- * lib/webrick/httputils.rb (WEBrick::HTTPUtils.parse_query): should
- discard if key=val pair is empty. patch from Gary Wright.
-
-Sat Jun 25 15:49:18 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * enum.c (enum_min, enum_max, enum_min_by, enum_max_by): do not ignore
- nil as the first element.
-
-Sat Jun 25 15:13:54 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
-
- * lib/set.rb (Set#==): [ruby-dev:25206] (ported from ruby_1_8 branch)
-
-Sat Jun 25 11:37:00 2005 NARUSE, Yui <naruse@ruby-lang.org>
-
- * ext/nkf/lib/kconv.rb: remove constants
- Iconv_Shift_JIS, Uconv_EUC_JP, Iconv_UTF8
- * ext/nkf/lib/kconv.rb: add module functions to Kconv
- conv, {eucjp, shiftjis, utf8}?, guess_as_symbol
- * ext/nkf/lib/kconv.rb: add instance methods to String
- conv, {eucjp, shiftjis, utf8}?
- * ext/nkf/lib/kconv.rb: add aliases Kconv.to_* and String#to_*
-
-Fri Jun 24 17:00:00 2005 Shigeo Kobayashi <shigeo@tinyforest.jp>
-
- * ext/bigdecimal/bigdecimal.c: patch from "NATORI Shin"
- (u-tokyo.ac.jp) applied to fix rounding bug.
-
-Fri Jun 24 13:17:45 2005 akira yamada <akira@ruby-lang.org>
-
- * lib/uri/common.rb, lib/uri/generic.rb: fixed typo in documents and
- replaced some existent domain name with "example.com".
-
-Fri Jun 24 12:23:19 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/lib/tk.rb: fix typo on Tk.grid_propagate.
-
- * ext/tk/lib/tk.rb: Tk.event_generate and TkWindow#event_generate
- accept TkEvent::Event object as context argument.
-
- * ext/tk/lib/tk/event.rb: add TkEvent::Event#valid_fields and
- valid_for_generate to get field parameters of event_generate.
-
-Thu Jun 23 23:55:59 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * runruby.rb: should load built rbconfig.rb.
-
-Thu Jun 23 16:53:15 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/lib/tk/canvastag.rb: TkcGroup.new cannot include given items.
- TkcGroup#exclude calls wrong method.
- Add alias TkcGroup#add [ruby-talk:146049].
-
- * ext/tk/lib/tk/canvas.rb: TkCanvas#dtag and some subcommands of
- TkCanvas#addtag fail to treat a TkcTag argument.
-
- * ext/tk/lib/tk/event.rb: add TkEvent::Event#generate to help to send
- current event to other widgets.
-
-Mon Jun 20 18:44:04 2005 Tanaka Akira <akr@m17n.org>
-
- * eval.c (FUNCTION_CALL_MAY_RETURN_TWICE): DUMMY_SETJMP is replaced
- because setjmp is not enough to fix getcontext and SPARC register
- window problem.
-
-Mon Jun 20 17:15:51 2005 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * ext/dbm/dbm.c (fdbm_closed): new method DBM#closed?
-
- * ext/gdbm/gdbm.c (fgdbm_closed): new method GDBM#closed?
-
- * ext/sdbm/init.c (fsdbm_closed): new method SDBM#closed?
-
- * test/dbm/test_dbm.rb, test/gdbm/test_gdbm.rb, test/sdbm/test_sdbm.rb
- (teardown): close all db objects before deleting data files.
-
- * win32/win32.{ch} (unlink): hook runtime function to change
- file attribute before unlinking.
- merge from 1.8, see [ruby-dev:26360]
-
-Mon Jun 20 02:15:35 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * gc.c (define_final): document fix: finalizers never get called
- before target object is destroyed.
-
-Mon Jun 20 01:26:49 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
-
- * ext/openssl/openssl_missing.c, ext/openssl/ossl.h,
- ext/openssl/ossl_asn1.c, ext/openssl/ossl_bio.c,
- ext/openssl/ossl_pkcs12.h, ext/openssl/ossl_x509req.c: avoid
- compiler warnings. suggested by Michal Rokos.
-
-Sun Jun 20 00:22:02 2005 Michael Neumann <mneumann@ruby-lang.org>
-
- * lib/xmlrpc/utils.rb: Patch by Nobuhiro IMAI fixes the following
- problem: Default value modification on
- Module#public_instance_methods (false -> true) breaks
- s.add_handler(XMLRPC::iPIMethods("sample"), MyHandler.new) style
- security protection.
-
- * lib/xmlrpc/client.rb: Aliased XMLRPC::Client#new2 as
- XMLRPC::Client#new_from_uri, and #new3 as #new_from_hash.
-
-Sun Jun 19 14:09:07 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * gc.c (run_final): reduce unnecessary object allocation during
- finalization.
-
- * gc.c (rb_gc_call_finalizer_at_exit): deferred finalizers list should
- be cleared before calling them. fixed: [ruby-talk:145790]
-
-Sat Jun 18 01:15:36 2005 Shugo Maeda <shugo@ruby-lang.org>
-
- * ext/readline/readline.c (readline_readline): do not set
- rl_{in,out}stream.
-
- * ext/readline/readline.c (readline_s_set_input): new method.
-
- * ext/readline/readline.c (readline_s_set_output): new method.
-
- * lib/irb/input-method.rb: set Readline.input and Readline.output.
-
-Fri Jun 17 13:01:40 2005 Tanaka Akira <akr@m17n.org>
-
- * lib/time.rb (Time.parse): fix previous leap seconds support.
- (Time.rfc2822): ditto.
- (Time.xmlschema): ditto.
-
-Thu Jun 16 15:41:32 2005 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * ruby.c (load_file): '!' is already read. reported by gotoyuzo.
-
-Thu Jun 16 15:09:38 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
-
- * ext/tk/tcltklib.c (ip_rb_threadVwaitCommand): Tcl_Release
- was missing.
-
-Thu Jun 16 13:34:48 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/lib/tk.rb: add Tk.getMultiple{Open|Save}File() which return
- an Array of selected files.
-
-Thu Jun 16 12:53:24 2005 Tanaka Akira <akr@m17n.org>
-
- * lib/time.rb (Time.parse): "Fri Jan 1 08:59:60 +0900 1999" was
- parsed as "Fri Jan 01 09:00:00 JST 1999" even on an environment
- which supports leap seconds.
- (Time.rfc2822): ditto.
- (Time.xmlschema): ditto.
-
-Thu Jun 16 00:13:41 2005 Tanaka Akira <akr@m17n.org>
-
- * lib/resolv.rb (Resolv::DNS::Resource#ttl): new attribute.
- (Resolv::DNS::Resource#==): ignore @ttl.
- (Resolv::DNS::Resource#hash): ditto.
- (Resolv::DNS::Message::MessageDecoder#get_rr): save TTL in a
- Resource object.
- based on [ruby-core:5190] by Eric Hodel.
-
-Wed Jun 15 18:26:39 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/lib/tk.rb: support "tk inactive" sub-command [for Tcl/Tk8.5a3]
-
- * ext/tk/lib/tk/namespace.rb: support "namespace path" sub-command and
- 'namespace ensemble' sub-command [for Tcl/Tk8.5a3]
-
-Tue Jun 14 02:02:43 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/tkutil/tkutil.c: add TkUtil::CallbackSubst.subst_arg(m, ...)
- & _define_attribute_aliases(hash) to get substitution-argument from
- attributes (e.g. subst_arg(:x,:y,:num,:button) --> "%x %y %b %b ").
-
- * ext/tk/lib/tk/event.rb: use _define_attribute_aliases().
-
-Mon Jun 13 13:03:08 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
-
- * hash.c (ruby_setenv): fixed SEGV. [ruby-dev:26186]
-
-Mon Jun 13 01:54:20 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * signal.c (sigexit): call rb_thread_signal_exit() instead of
- rb_exit(). [ruby-dev:26347]
-
- * eval.c (rb_thread_signal_exit): a new function to exit on main
- thread.
-
- * eval.c (rb_thread_switch): exit status should be retrieved from
- ruby_errinfo.
-
- * eval.c (rb_f_exit): ensure exit(0) should call
- exit(EXIT_SUCCESS).
-
-Mon Jun 13 01:20:02 2005 Tanaka Akira <akr@m17n.org>
-
- * eval.c (rb_gc_mark_threads): curr_thread may not be part of the
- thread list. [ruby-dev:26312]
-
-Sat Jun 11 22:34:44 2005 Minero Aoki <aamine@loveruby.net>
-
- * parse.y: missing arg_paren event. This patch is contributed by
- Mitchell N Charity.
-
-Fri Jun 10 23:55:17 2005 Tanaka Akira <akr@m17n.org>
-
- * eval.c (unknown_node): show more information. [ruby-dev:26196]
-
-Fri Jun 10 23:35:34 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * missing/mkdir.c: remove. [ruby-core:05177]
-
-Fri Jun 10 22:54:18 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * missing.h: fd_set stuffs need sys/types.h. fixed: [ruby-core:05179]
-
-Thu Jun 9 23:58:12 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/Win32API/Win32API.c (Win32API_Call): disable global
- optimization. fixed: [ruby-core:05143]
-
-Thu Jun 9 23:35:22 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * enum.c (enum_inject): default the result value to Qundef to use
- first element as initial value if not given.
-
-Thu Jun 9 19:55:41 2005 Tanaka Akira <akr@m17n.org>
-
- * eval.c (ruby_longjmp): new macro to call longjmp, setcontext, etc.
- (ruby_setjmp): new macro to call setjmp, getcontext, etc.
- (ruby_setjmp): call setjmp before getcontext to avoid IA64 register
- stack problem.
- [ruby-talk:144939]
-
- * gc.c (Init_stack): remove IA64_MAGIC_STACK_LIMIT.
-
-Thu Jun 9 18:24:16 2005 Tanaka Akira <akr@m17n.org>
-
- * configure.in, eval.c, gc.c: use libunwind only on HP-UX.
- [ruby-dev:26297]
-
-Thu Jun 9 14:46:32 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * hash.c (env_aset): do not treat nil as key-removing value.
- [ruby-list:40865]
-
- * parse.y (method_call): allow aref expression ([]) to take a
- block.
-
- * parse.y (block_dup_check): a function to check duplication of
- a block argument and an actual block.
-
-Thu Jun 9 11:55:34 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/delegate.rb (SimpleDelegator::__setobj__): need check for
- recursive delegation. [ruby-core:04940]
-
-Thu Jun 9 11:50:43 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/cgi.rb: add underscore aliases CGI::escape_html,
- CGI::unescape_html, CGI::escape_element, CGI::unescape_element.
- [ruby-core:05058]
-
-Wed Jun 8 18:47:10 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * misc/ruby-mode.el (ruby-expr-beg): fix looking point drift.
-
-Wed Jun 8 12:25:59 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * array.c (rb_ary_nitems): add the block feature to Array#nitems.
- suggested by Bertram Scharpf <lists@bertram-scharpf.de> in
- [ruby-talk:134083].
-
-Wed Jun 8 11:11:34 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * bignum.c (get2comp): revert all prior changes, and calculate
- proper 2's complement for negative numbers.
-
-Wed Jun 8 08:33:10 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * enum.c (enum_min_by, enum_max_by): return nil if no iteration.
- fixed: [ruby-dev:26245]
-
- * eval.c (rb_need_block): ensure a block is given.
-
- * eval.c (backtrace): skip successive frames sharing same node.
-
-Wed Jun 8 01:27:06 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * bignum.c (bignorm): fixed a bug in normalizing negative numbers
- reported from Honda Hiroki <hhonda@ipflex.com>. normalizing
- should not trim leading zeros from negative numbers.
-
- * bignum.c (rb_cstr_to_inum): must remove leading zeros for this
- case.
-
-Wed Jun 8 00:15:08 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * ext/socket/socket.c (ruby_getaddrinfo__aix): merged a patch from
- KUBO Takehiro <kubo at jiubao.org> to support AIX. [ruby-list:40832]
-
-Wed Jun 8 00:09:01 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/yaml/rubytypes.rb (Array::to_yaml): merged a patch from
- Tilman Sauerbeck <tilman at code-monkey.de>. [ruby-core:05055]
-
- * lib/yaml/rubytypes.rb (Hash::to_yaml): ditto.
-
-Wed Jun 8 00:00:01 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * ext/curses/curses.c (curses_insertln): merged a patch from
- TAKAHASHI Tamotsu <ttakah at lapis.plala.or.jp>. [ruby-ext:02305]
-
-Tue Jun 7 19:34:15 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/irb/init.rb (IRB::IRB.rc_file_generators): more flexible
- IRB.rc_file_generators. [ruby-core:05163]
-
-Tue Jun 7 18:39:31 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/thread.rb: RDoc documentation from Eric Hodel
- <drbrain@segment7.net> added. [ruby-core:05148]
-
-Tue Jun 7 18:30:04 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/mkmf.rb (create_makefile): add .SUFFIXES from depend file.
- fixed: [ruby-dev:26294]
-
-Tue Jun 7 17:20:39 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * parse.y (parser_yylex): allow ';;' to be block terminator in
- place of 'end'. [highly experimental]
-
- * misc/ruby-mode.el (ruby-block-end-re): allow ';;' to be a
- negative indent trigger. [highly experimental]
-
- * parse.y (parser_yylex): small error fixed.
-
-Tue Jun 7 16:45:49 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * parse.y (parser_yylex): "respond_to?:foo" should be interpreted
- as "respond_to? :foo" at the command level. [ruby-talk:144303]
-
-Tue Jun 7 16:32:53 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * sprintf.c (rb_f_sprintf): raise exception on debug mode (-d),
- not verbose mode (-v/-w). [ruby-core:05123]
-
- * sprintf.c (rb_f_sprintf): warn always on verbose mode.
-
-Tue Jun 7 10:30:49 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/lib/multi-tk.rb: slave-ip fails to call procedures
- delegated by master-ip.
-
-Mon Jun 6 16:35:18 2005 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * ext/ripper/depend: add .y to .SUFFIXES for nmake.
-
-Sun Jun 5 23:00:35 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/lib/tk/console.rb: create console when required
-
- * ext/tk/sample/tkextlib/tile/demo.rb: fix TypeError & create Console
-
-Sun Jun 5 10:23:52 2005 Tanaka Akira <akr@m17n.org>
-
- * signal.c (ruby_signal): don't set SA_RESTART.
- [ruby-dev:26276]
-
-Sat Jun 4 14:55:18 2005 Tanaka Akira <akr@m17n.org>
-
- * test/dbm/test_dbm.rb: merged from ext/dbm/testdbm.rb.
-
- * test/gdbm/test_gdbm.rb: merged from ext/gdbm/testgdbm.rb.
-
- * test/sdbm/test_sdbm.rb: renamed from ext/sdbm/testsdbm.rb with
- modification to use test/unit.
-
-Fri Jun 3 23:23:02 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * intern.h (rb_fdset_t): deal with fd bit sets over FD_SETSIZE.
- fixed: [ruby-dev:26187]
-
- * eval.c (rb_fd_init, rb_fd_term, rb_fd_zero, rb_fd_set, rb_fd_clr,
- rb_fd_isset, rb_fd_copy): ditto.
-
- * io.c (rb_io_wait_readable, rb_io_wait_writable, rb_f_select): ditto.
-
- * ext/io/wait/wait.c (io_wait): ditto.
-
- * ext/socket/socket.c (wait_connectable, unix_recv_io): ditto.
-
-Fri Jun 3 14:06:12 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/lib/multi-tk.rb: fix typo.
-
-Thu Jun 2 23:42:57 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * parse.y: pragma support on ripper. [ruby-dev:26266]
-
-Thu Jun 2 00:02:16 2005 Minero Aoki <aamine@loveruby.net>
-
- * struct.c: accessing >10 member caused segmentation fault.
- [ruby-dev:26247]
-
- * test/ruby/test_struct.rb: test it.
-
-Wed Jun 1 11:30:09 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
-
- * bcc32/Makefile.sub: can use single quote character in DESTDIR.
- [ruby-dev:26205]
-
- * bcc32/Makefile.sub: Dir.glob in 1.9 doesn't treat \ as path separator.
- [ruby-dev:26254]
-
-Wed Jun 1 00:11:06 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * parse.y (method_call): new experiment: "(expr)(args...)" to
- invoke "expr.call(args...)". [EXPERIMENTAL]
-
-Tue May 31 23:43:41 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * parse.y (command): revert implicit "call" for local variables.
-
-Tue May 31 15:52:45 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
-
- * lib/webrick/httpserver.rb (WEBrick::HTTPServer#run): should
- break the loop if the socket reached to EOF. [ruby-talk:142285]
-
- * lib/webrick/httpserver.rb (WEBrick::HTTPServer#run): send response
- without reading the whole request body if keep-alive is diabled.
- [experimental]
-
-Mon May 30 23:48:29 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/lib/tk/macpkg.rb: add PACKAGE_NAME information of Tcl/Tk
- Extension.
-
- * ext/tk/lib/tk/msgcat.rb: ditto.
-
- * ext/tk/lib/tk/winpkg.rb: ditto.
-
- * ext/tk/lib/tkextlib/*: ditto.
-
-Sat May 28 16:39:21 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
-
- * test/openssl/test_x509store.rb: add test for expired CRL
- and refine some assertions.
-
-Sat May 28 05:15:44 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
-
- * ext/openssl/ossl_x509store.c (ossl_x509stctx_set_time): should
- not set internal flag directry.
-
-Sat May 28 02:00:11 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
-
- * lib/webrick/cgi.rb (WEBrick::CGI::Socket#request_line):
- ENV["REQUEST_URI"] is better to get correct Request-URI
- than ENV["SCRIPT_NAME"] + ENV["PATH_INFO"]. [ruby-dev:26235]
-
-Fri May 27 16:32:04 2005 WATANABE Hirofumi <eban@ruby-lang.org>
-
- * lib/mkmf.rb: use the semicolon as the path separator
- in the environment of MSYS. fixed: [ruby-dev:26232]
-
-Thu May 26 20:31:21 2005 Minero Aoki <aamine@loveruby.net>
-
- * lib/fileutils.rb (remove_entry_secure): add documentation.
-
- * lib/fileutils.rb (remove_entry_secure): should not invoke
- unlink(2) against a directory.
-
-Thu May 26 08:29:19 2005 Akiyoshi, Masamichi <akiyoshi@hp.com>
-
- * vms/vmsruby_private.c, vms/vmsruby_private.h: private routines
- for VMS port are added.
-
- * eval.c (ruby_init): change to call VMS private intialization routine.
-
-Thu May 26 07:39:07 2005 Minero Aoki <aamine@loveruby.net>
-
- * lib/fileutils.rb (rm_r): use lchown(2), not chown(2).
- [ruby-dev:26226]
-
- * lib/fileutils.rb (cd): remove :noop option. (feature change)
-
- * lib/fileutils.rb (cp_r): should copy symlink as symlink, for
- also tree root. (feature change)
-
- * lib/fileutils.rb (cp_r): new option :dereference_root.
-
- * lib/fileutils.rb: new method remove_entry.
-
- * lib/fileutils.rb: new method remove_entry_secure.
-
- * lib/fileutils.rb: add documentation.
-
-Thu May 26 06:08:11 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/lib/tk.rb: add shortcut-methods of tk_call + tk_split_list
-
-Wed May 25 20:06:27 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/lib/tk.rb: TkComm#tk_split_*list fail to split a kind of SJIS
- strings. To avoid the trouble, add arguments to control converting
- encoding, and do split on a UTF8 string.
-
- * ext/tk/lib/multi-tk.rb: modify to attend encoding.
-
- * ext/tk/lib/remote-tk.rb: ditto.
-
- * ext/tk/lib/tk/itemconfig.rb: ditto.
-
- * ext/tk/lib/tk/listbox.rb: ditto.
-
- * ext/tk/lib/tk/namespace.rb: ditto.
-
- * ext/tk/lib/tk/panedwindow.rb: ditto.
-
- * ext/tk/lib/tk/text.rb: ditto.
-
- * ext/tk/lib/tk/textmark.rb: ditto.
-
- * ext/tk/lib/tk/texttag.rb: ditto.
-
- * ext/tk/lib/tk/variable.rb: ditto.
-
- * ext/tk/lib/tk/winfo.rb: ditto.
-
- * ext/tk/lib/tkextlib/iwidgets/scrolledlistbox.rb: ditto.
-
- * ext/tk/lib/tkextlib/iwidgets/scrolledtext.rb: ditto.
-
- * ext/tk/lib/tk.rb: add TkWindow#lower_window/raise_window and
- Tk#lower_window/raise_window by reason of method-name conflict
-
- * ext/tk/lib/tk/canvas.rb: bug fix on TkCanvas#delete when given
- non-TkcItem arguments.
-
- * ext/tk/lib/tkextlib/iwidgets/scrolledcanvas.rb: ditto.
-
-Wed May 25 19:48:12 2005 Minero Aoki <aamine@loveruby.net>
-
- * lib/fileutils.rb (rm_r): does chown(2). [ruby-dev:26199]
-
-Wed May 25 12:59:48 2005 Tanaka Akira <akr@m17n.org>
-
- * lib/open-uri.rb (OpenURI::Meta::RE_QUOTED_STRING): a content of
- quoted-string should be zero or more characters.
-
-Tue May 24 23:42:16 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * numeric.c (fix_pow): support Fixnum ** Float case directly
- without coercing. [ruby-talk:142697] [ruby-talk:143054]
-
-Tue May 24 16:57:24 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * ruby.c (require_libraries): caused SEGV when continuation jumped
- in to the required library code.
-
-Tue May 24 17:45:59 2005 Shugo Maeda <shugo@ruby-lang.org>
-
- * test/readline/test_readline.rb: do not test libedit.
- fixed: [ruby-dev:26217]
-
-Tue May 24 06:45:31 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * misc/ruby-mode.el (ruby-font-lock-syntactic-keywords): string
- literals to be matched non-greedy.
-
-Tue May 24 00:39:14 2005 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
-
- * test/soap/calc: method name 'set' was able to crash with a class Set.
- [ruby-dev:26210]
-
- * test/wsdl/document/test_rpc.rb: dateTime comparison failed under
- TZ=right/Asia/Tokyo (with leap second.) [ruby-dev:26208]
-
-Mon May 23 16:23:06 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/extconf.rb: Framework support on MacOS X Tiger.
-
- * ext/tk/README.tcltklib: add description of Framework support options.
-
-Mon May 23 15:07:34 2005 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * win32/Makefile.sub ($(PROGRAM)): add dependency on $(LIBRUBY_SO).
- [experimental]
-
-Mon May 23 12:21:37 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * re.c (make_regexp): should not return junk address during
- compile time. [ruby-dev:26206]
-
-Sun May 22 21:54:06 2005 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
-
- * lib/{soap,wsdl,xsd}, test/{soap,wsdl,xsd}: imported soap4r/1.5.4.
-
- == SOAP client and server ==
-
- === for both client side and server side ===
-
- * improved document/literal service support.
- style(rpc,document)/use(encoding, literal) combination are all
- supported. for the detail about combination, see
- test/soap/test_style.rb.
-
- * let WSDLEncodedRegistry#soap2obj map SOAP/OM to Ruby according to
- WSDL as well as obj2soap. closes #70.
-
- * let SOAP::Mapping::Object handle XML attribute for doc/lit service.
- you can set/get XML attribute via accessor methods which as a name
- 'xmlattr_' prefixed (<foo name="bar"/> -> Foo#xmlattr_name).
-
- === client side ===
-
- * WSDLDriver capitalized name operation bug fixed. from
- 1.5.3-ruby1.8.2, operation which has capitalized name (such as
- KeywordSearchRequest in AWS) is defined as a method having
- uncapitalized name. (converted with GenSupport.safemethodname
- to handle operation name 'foo-bar'). it introduced serious
- incompatibility; in the past, it was defined as a capitalized.
- define capitalized method as well under that circumstance.
-
- * added new factory interface 'WSDLDriverFactory#create_rpc_driver'
- to create RPC::Driver, not WSDLDriver (RPC::Driver and WSDLDriver
- are merged). 'WSDLDriverFactory#create_driver' still creates
- WSDLDriver for compatibility but it warns that the method is
- deprecated. please use create_rpc_driver instead of create_driver.
-
- * allow to use an URI object as an endpoint_url even with net/http,
- not http-access2.
-
- === server side ===
-
- * added mod_ruby support to SOAP::CGIStub. rename a CGI script
- server.cgi to server.rb and let mod_ruby's RubyHandler handles the
- script. CGIStub detects if it's running under mod_ruby environment
- or not.
-
- * added fcgi support to SOAP::CGIStub. see the sample at
- sample/soap/calc/server.fcgi. (almost same as server.cgi but has
- fcgi handler at the bottom.)
-
- * allow to return a SOAPFault object to respond customized SOAP fault.
+ * lib/mkmf.rb (Logging.postpone): copy only when temporary logfile
+ exists.
- * added the interface 'generate_explicit_type' for server side
- (CGIStub, HTTPServer). call 'self.generate_explicit_type = true'
- if you want to return simplified XML even if it's rpc/encoded
- service.
+Thu May 12 12:24:22 2011 Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
- == WSDL ==
+ * ext/openssl/ossl_ssl.c: By trunk@31346, function check of SSLv2 is
+ executed.
+ However, the problem is not revised in this.
+ This adds the control of using function of SSLv2 in made macro by
+ function check.
- === WSDL definition ===
+Thu May 12 08:10:46 2011 Eric Hodel <drbrain@segment7.net>
- * improved XML Schema support such as extension, restriction,
- simpleType, complexType + simpleContent, ref, length, import,
- include.
+ * lib/set.rb (class Set): Add nodoc to internal-use methods. Patch
+ by Pete Higgins. [Ruby 1.9 - Bug #4665]
- * reduced "unknown element/attribute" warnings (warn only 1 time for
- each QName).
+Thu May 12 08:01:14 2011 Martin Bosslet <Martin.Bosslet@googlemail.com>
- * importing XSD file at schemaLocation with xsd:import.
+ * ext/openssl/ossl_pkey_ec.c: Allow encryption when PEM-encoding
+ Elliptic Curve private keys.
+ [ruby-core:35329] [Bug #4423]
- === code generation from WSDL ===
+Thu May 12 07:54:59 2011 Eric Hodel <drbrain@segment7.net>
- * generator crashed when there's '-' in defined element/attribute
- name.
+ * object.c (rb_obj_equal): Add documentation. Patch by Vincent Batts.
+ [Ruby 1.9 - Bug #4664]
+ * lib/rexml: ditto
+ * lib/mkmf.rb: ditto
+ * ext/socket/lib/socket.rb: ditto
- * added ApacheMap WSDL definition.
+Thu May 12 07:30:08 2011 Eric Hodel <drbrain@segment7.net>
- * sample/{soap,wsdl}: removed.
+ * Various .document files: Update .document files to match files which
+ have documentation.
-Sun May 22 19:11:35 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
+Thu May 12 07:18:45 2011 Martin Bosslet <Martin.Bosslet@googlemail.com>
- * ext/openssl/lib/openssl/ssl.rb (OpenSSL::SSL::SSLServer#intialize):
- should initialize session id context. [ruby-core:4663]
+ * ext/openssl/ossl_pkey_dsa.c: Use generic X.509 SubjectPublicKeyInfo
+ format for PEM-encoding DSA public keys.
+ [ruby-core:35328] [Bug #4422]
- * ext/openssl/ossl_ssl.c (ossl_sslctx_setup): add session id support.
+Thu May 12 06:27:31 2011 Martin Bosslet <Martin.Bosslet@googlemail.com>
-Sun May 22 12:30:58 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * ext/openssl/ossl_pkey_rsa.c: Use generic X.509 SubjectPublicKeyInfo
+ format for encoding RSA public keys.
+ [ruby-core:35327] [Bug #4421]
- * intern.h, parse.y (ruby_pragma): removed. fixed: [ruby-dev:26198]
+Wed May 11 19:45:27 2011 Keiju Ishitsuka <keiju@ishitsuka.com>
- * parse.y (parser_pragma): pragma name was ignored.
+ * lib/forwardable.rb: support 'delegate :foo => :bar' for to meet
+ by specification of RDOC.
-Sun May 22 02:39:57 2005 Minero Aoki <aamine@loveruby.net>
+Wed May 11 08:36:38 2011 Eric Hodel <drbrain@segment7.net>
- * lib/fileutils.rb (rm_r): new option :secure to avoid
- time-to-check-to-time-to-use security problem. [ruby-dev:26100]
+ * lib/webrick: Add documentation for WEBrick::HTTPAuth
- * lib/fileutils.rb (remove_file, remove_dir): try chmod(700) only
- on Windows.
+Wed May 11 03:06:35 2011 Eric Hodel <drbrain@segment7.net>
- * lib/fileutils.rb: does not depend on find.rb.
+ * lib/rss.rb: Add documentation for RSS. Patch by Steve Klabnik.
+ [Ruby 1.9 - Bug #4663]
- * lib/fileutils.rb: new method chmod_R.
+Tue May 10 14:50:32 2011 Shota Fukumori <sorah@tubusu.net>
- * lib/fileutils.rb (chown_R): did not work.
+ * lib/test/unit.rb: Add option for hiding skip messages when test
+ ends. #4657
-Sat May 21 10:23:21 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+ * test/testunit/test_hideskip.rb, test/testunit/test4test_hideskip.rb:
+ test for above.
- * bcc32/Makefile.sub: tds files were not deleted when DESTDIR
- included '\' path delimiter. [ruby-dev:26193]
+Tue May 10 10:53:04 2011 Eric Hodel <drbrain@segment7.net>
-Fri May 20 15:52:18 2005 Shugo Maeda <shugo@ruby-lang.org>
+ * common.mk (rdoc): Add rdoc-coverage rule
- * ext/readline/readline.c (readline_attempted_completion_function):
- return 2 items if completion_proc returns only 1 item (for libedit).
+Tue May 10 09:13:21 2011 Eric Hodel <drbrain@segment7.net>
-Fri May 20 01:24:33 2005 Shugo Maeda <shugo@ruby-lang.org>
+ * lib/webrick: Add Documentation
- * ext/readline/extconf.rb: check rl_vi_editing_mode() and
- rl_emacs_editing_mode().
+Tue May 10 04:22:09 Eric Hodel <drbrain@segment7.net>
-Thu May 19 23:33:09 2005 Shugo Maeda <shugo@ruby-lang.org>
+ * lib/webrick/log.rb: Hide copyright info from ri
+ * lib/webrick/httpstatus.rb: ditto
+ * lib/webrick/htmlutils.rb: ditto
+ * lib/webrick/httpversion.rb: ditto
+ * lib/webrick/version.rb: ditto
+ * lib/webrick/httpauth/userdb.rb: ditto
+ * lib/webrick/httpauth/authenticator.rb: ditto
+ * lib/webrick/accesslog.rb: ditto
- * ext/readline/readline.c: supported libedit. fixed: [ruby-core:4858]
+Mon May 9 20:57:13 2011 Tadayoshi Funaba <tadf@dotrb.org>
- * ext/readline/extconf.rb: added new option --enable-libedit.
+ * test/ruby/test_{complex,rational}.rb: added tests.
- * test/readline/test_readline.rb: added assertions for
- Readline::HISTORY.
+Mon May 9 20:29:44 2011 Tadayoshi Funaba <tadf@dotrb.org>
- * lib/irb/input-method.rb: do not use Readline::HISTORY.pop.
+ * complex.c (string_to_c_internal): a refactoring.
-Wed May 18 23:42:25 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Mon May 9 18:33:05 2011 NARUSE, Yui <naruse@ruby-lang.org>
- * error.c (exc_exception): reverted to call Exception#initialize
- directly. fixed: [ruby-dev:26177]
+ * string.c: Improve documentation for String#start_with? and
+ String#end_with?. fixes #4652
+ patched by Andrew Grimm <andrew.j.grimm at gmail.com>
-Wed May 18 17:38:51 2005 WATANABE Hirofumi <eban@ruby-lang.org>
+Mon May 9 13:49:00 2011 Kenta Murata <mrkn@mrkn.jp>
- * dir.c (glob_helper): check whether path is "" before calling
- do_opendir. [ruby-dev:26183]
+ * complex.c (string_to_c_internal): support scientific notation.
+ patched by Tinco Andringa. https://github.com/ruby/ruby/pull/16
+ [ruby-core:36046][Bug #4655]
-Wed May 18 13:40:48 2005 NAKAMURA Usaku <usa@ruby-lang.org>
+Mon May 9 11:52:48 2011 NARUSE, Yui <naruse@ruby-lang.org>
- * win32/win32.c (NtInitialize): fix typo.
+ * numeric.c (int_ord): remove K&R style.
+ patched by Daehyub Kim. https://github.com/ruby/ruby/pull/17
-Wed May 18 11:07:47 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Sun May 8 22:17:24 2011 Tadayoshi Funaba <tadf@dotrb.org>
- * dir.c (glob_helper): get rid of using String. [ruby-dev:26180]
+ * test/ruby/test_{complex2,complexrational}.rb: use skip.
+ * test/date/*.rb: ditto.
- * eval.c (ruby_options), win32/win32.c (NtInitialize): move argument
- intialization back. [ruby-dev:26180]
+Sun May 8 21:02:31 2011 Tadayoshi Funaba <tadf@dotrb.org>
-Tue May 17 11:49:18 2005 NAKAMURA Usaku <usa@ruby-lang.org>
+ * test/ruby/test_{complex2,complexrational}.rb: NEVER SKIP.
- * win32/win32.c (unixtime_to_filetime): use localtime() instead of
- gmtime() when using FileLocalTimeToFileTime().
+Sun May 8 21:01:21 2011 Tadayoshi Funaba <tadf@dotrb.org>
-Mon May 16 22:42:52 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * test/date/test_date_base.rb: fixed.
- * win32/win32.h, {bcc32,win32,wince}/Makefile.sub: moved rb_[ugp]id_t
- to get rid of redefinition warnings on mingw.
+Sun May 8 20:54:11 2011 Tadayoshi Funaba <tadf@dotrb.org>
- * class.c (rb_class_init_copy): singleton class is disallowed to copy,
- from its definition. fixed: [ruby-talk:142749]
+ * test/date/*.rb: NEVER SKIP.
- * parse.y (pragma_encoding): add prototype to suppress false warning
- by VC.
+Sun May 8 20:37:33 2011 Tadayoshi Funaba <tadf@dotrb.org>
- * process.c (proc_spawn_v): use rb_w32_aspawn on Win32.
+ * test/date/*.rb: reverted 31432.
-Mon May 16 03:29:01 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+Sun May 8 20:32:43 2011 Tadayoshi Funaba <tadf@dotrb.org>
- * win32/win32.{h,c}: define rb_[pgu]id_t.
+ * test/date/*.rb: reverted 31483.
-Mon May 16 00:21:02 2005 Tanaka Akira <akr@m17n.org>
+Sun May 8 19:39:16 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * lib/pathname.rb (Pathname#unlink): use SystemCallError instead of
- Errno::EISDIR because EISDIR is not portable.
- [ruby-core:5001]
+ * thread_pthread.c (native_cond_timedwait): add to care EINTR.
+ * thread_pthread.c (thread_timer): remove EINTR check.
-Sun May 15 22:28:10 2005 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
+Sun May 8 19:04:15 2011 Tadayoshi Funaba <tadf@dotrb.org>
- * lib/drb/drb.rb (DRbObject#method_missing): use raise(exception).
- [ruby-dev:26164]
+ * lib/time.rb (xmlschema): avoid passing any negative numbers.
-Sun May 15 18:56:35 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Sun May 8 18:40:03 2011 Tadayoshi Funaba <tadf@dotrb.org>
- * configure.in, ruby.h: define rb_[pgu]id_t macros instead of typedefs
- to get rid of types which might not be defined yet. [ruby-dev:26165]
+ * ext/date/date_{parse,strptime}.c: introduced some macros.
-Sun May 15 14:35:46 2005 Tanaka Akira <akr@m17n.org>
+Sun May 8 17:17:13 2011 Tadayoshi Funaba <tadf@dotrb.org>
- * lib/pathname.rb (Pathname#unlink): unlink a symlink to a directory
- was failed. [ruby-core:4992]
+ * test/date/*.rb: use skip /w messages.
-Sun May 15 09:57:30 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Sun May 8 17:04:55 2011 Tadayoshi Funaba <tadf@dotrb.org>
- * win32/win32.c (unixtime_to_filetime): deal with DST.
- [ruby-talk:141817]
+ * ext/date/lib/date/format.rb (_httpdate): omitted to call zone_to_diff.
-Sat May 14 23:59:11 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Sun May 8 16:56:19 2011 Tadayoshi Funaba <tadf@dotrb.org>
- * error.c (exc_exception, {exit,name_err,syserr}_initialize): call
- Execption#initialize. fixed: [ruby-talk:142593]
+ * ext/date/date_core.c (date_s_test_*): use macros.
-Sat May 14 23:56:41 2005 Erik Huelsmann <ehuels@gmail.com>
+Sun May 8 10:24:16 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * configure.in: Check for the availability of pid_t, gid_t and uid_t and
- remove AC_TYPE_UID_T. fixed: [ruby-core:04745]
+ * thread_pthread.c: cleanup signal_thread_list related ifdef.
+ 1) we don't have to use #ifdef FOO-PLATFORM directly 2) About
+ half #ifdef didn't care symbian properly.
- * defines.h: Remove pid_t typedef.
+Sun May 8 05:19:37 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * ruby.h: Define rb_pid_t, rb_gid_t and rb_uid_t in accordance with
- the available system types.
+ * test/io/wait/test_io_wait.rb: Linux socketpair(2) only support
+ AF_UNIX, but windows socketpair doesn't support it. we can't
+ avoid platform check. sigh!
- * process.c: Change instances of pid_t and gid_t to their rb_*
- counterparts.
+Sun May 8 00:13:05 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * ext/pty/pty.c: Change pid_t to rb_pid_t.
+ * test/io/wait/test_io_wait.rb: use Socket.pair instead of pipe.
+ Windows can only treat a socket.
- * vms/config.h: Define HAVE_{P,G,U}ID_T to 1.
+Sat May 7 22:43:48 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * win32/Makefile.sub: Remove #define for {g,u}id_t.
+ * thread.c (rb_fd_zero): remove redundant zero fill.
- * win32/win32.c: Change pid_t to rb_pid_t.
+Sat May 7 22:38:04 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * wince/Makefile.sub: Remove #define for {g,u}id_t.
+ * thread.c (rb_fd_init): remove volatile qualifier.
- * wince/sys/types.h: Remove definitions of {p,g,u}id_t.
+Sat May 7 22:34:29 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
-Sat May 14 11:47:57 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * thread.c (rb_fd_init_copy): new internal api. It provide efficient
+ copy constructor semantics.
+ * thread.c (do_select): use rb_fd_init_copy().
- * intern.h (ruby_pragma): prototype. [ruby-core:04881]
+Sat May 7 15:18:06 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
+ fix incorrect native_cond_signal call when deadlock was detected.
- * parse.y (parser_pragma): parse Emacsen hack.
+ * thread.c (lock_func): decrement cond_waiting if timeout was happen.
- * parse.y (parser_prepare): deal with specific syntax at the top.
+Sat May 7 18:28:37 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * ruby.c (load_file): read the first line iff it started with shebang.
+ * thread_pthread.c (USE_MONOTONIC_COND): check the availability
+ more strictly.
-Fri May 13 23:44:22 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * thread_pthread.h (rb_thread_cond_t): ditto.
- * ext/extmk.rb: keep srcdir unexpanded.
+Sat May 7 15:15:10 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * lib/mkmf.rb (create_makefile): quote topdir and hdrdir if necessary.
- fixed: [ruby-core:04932]
+ fix win32 native_cond_timedwait() makes SIGSEGV.
- * lib/mkmf.rb (configuration), {bcc32,win32,wince}/Makefile.sub: make
- also INSTALL_PROG and INSTALL_DATA system dependent.
- fixed: [ruby-core:04931]
+ * thread_win32.h (rb_thread_cond_struct): add prev field instead of
+ last. (ie cond_event_entry is now using double linked list instead of
+ single)
+ * thread_win32.c (cond_event_entry): add prev field.
-Fri May 13 23:32:55 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * thread_win32.c (__cond_timedwait): remove entry properly if timeout
+ was happen.
- * eval.c (unknown_node): add volatile directive to prototype.
+ * thread_win32.c (native_cond_signal): change for double linked list.
+ * thread_win32.c (native_cond_broadcast): ditto.
+ * thread_win32.c (native_cond_initialize): ditto.
-Fri May 13 17:50:49 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+Sat May 7 12:41:04 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
+ fix mutex deadlock test hang-up.
- * variable.c (generic_ivar_get): rb_attr_get should not warn.
- [ruby-dev:26010]
+ * thread_win32.c (abs_timespec_to_timeout_ms): fix 1000x calculation
+ mistake. (ie fix hang-up native_cond_timedwait())
-Thu May 12 17:41:00 2005 NARUSE, Yui <naruse@ruby-lang.org>
+Sat May 7 03:14:13 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * ext/nkf/nkf-utf8/nkf.c: follow nkf 2.0.5
+ sleep_cond use monotonic time if possible.
-Thu May 12 16:50:40 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+ * thread_pthread.c (native_thread_init): change sleep_cond
+ attribute to monotonic.
+ * thread_pthread.c (native_sleep): use native_cond_timeout().
- * lib/rdoc/parsers/parse_c.rb: more readability for mixing
- progress "c..." and warning message.
+ * thread_pthread.c (native_cond_timeout): add overflow care.
+ * thread_win32.c (native_cond_timeout): ditto.
-Thu May 12 15:50:56 2005 Tilman Sauerbeck <tilman@code-monkey.de>
+Sat May 7 02:49:12 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
+ fix win32 compile error.
- * lib/rdoc/parsers/parse_c.rb: show parsing progress for C files.
- [ruby-core:4341]
+ * thread_win32.c (RB_CONDATTR_CLOCK_MONOTONIC): define
+ RB_CONDATTR_CLOCK_MONOTONIC always.
+ * thread_pthread.c (RB_CONDATTR_CLOCK_MONOTONIC): ditto.
-Thu May 12 09:53:57 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Sat May 7 02:29:41 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * version.c (ruby_show_version): flush for non-tty stdout.
+ mutex: deadlock check timeout use monotonic time.
-Thu May 12 01:23:55 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * thread_pthread.c (native_cond_timeout): new internal api.
+ it calculate a proper time for argument of native_cond_timedwait().
+ * thread_win32.c (native_cond_timeout): ditto.
- * eval.c (unknown_node): ignore broken NODE to get rid of accessing
- possibly inaccessible address. fixed: [ruby-dev:26122]
- should emit more useful information like [ruby-dev:26126], though.
+ * thread_pthread.c (thread_timer): use native_cond_timeout()
+ instead of get_ts.
+ * thread.c (lock_func): ditto.
-Wed May 11 15:58:39 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * thread_pthread.c (get_ts): removed. use native_cond_timeout().
+ * thread.c (init_lock_timeout): ditto.
- * eval.c (break_jump): break should not cross functions.
- [ruby-list:40818]
+Sat May 7 01:54:21 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
-Wed May 11 10:41:54 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+ * thread_pthread.c (get_ts): add monotonic clock capability.
+ * thread_pthread.c (rb_thread_create_timer_thread): use monotonic
+ clock if possible.
- * lib/tempfile.rb (Tempfile#unlink): fixed typo.
+Sat May 7 01:43:37 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
-Wed May 11 01:03:36 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * thread_pthread.h (rb_thread_cond_t): add clockid field. it's
+ no longer an alias of pthread_cond_t.
+ * thread_pthread.c: adapt new rb_thread_cond_t type.
+ * thread.c (mutex_alloc): ditto.
+ * thread_win32.c (native_cond_initialize): ditto.
+ * configure.in: add check for pthread_cond_attr_setclock() and
+ clockid_t type.
- * eval.c (TMP_ALLOC): use macro NEW_NODE() to get rid of warnings on
- platforms which have no alloca(). fixed: [ruby-talk:141301]
+Fri May 6 23:29:47 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
-Sun May 8 23:17:47 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+ * thread.c (rb_wait_for_single_fd): use ppoll() instead of poll()
+ if possible. based on a patch from Eric Wong. [ruby-core:36003].
- * ext/tk/lib/tk/timer.rb: fix typo.
+Fri May 6 23:13:43 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
-Sun May 8 21:00:50 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+ * configure.in: remove nanosleep check. we no longer use it.
+ r20124 removed last usage.
- * hash.c (Init_Hash): remove custom "hash" and "eql?".
- (ported from 1.8) [ruby-dev:26132]
+Fri May 6 22:35:56 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Sun May 8 16:50:25 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+ * ext/syck/rubyext.c (mktime_do): extra digits are not used.
- * lib/profiler.rb: fixed "undefined method `[]' for nil:NilClass"
- [ruby-core:4775] [ruby-talk:140401] [ruby-dev:26118]
+Fri May 6 17:43:07 2011 NARUSE, Yui <naruse@ruby-lang.org>
-Sat May 7 22:58:00 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * ext/syck/rubyext.c (mktime_do): remove unused variable offset.
- * lib/mkmf.rb (have_var): no libs argument is given.
+ * ext/syck/syck.h: use #ifdef instead of #if DEBUG.
-Fri May 6 08:08:37 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Fri May 6 16:27:33 2011 NARUSE, Yui <naruse@ruby-lang.org>
- * hash.c:rb_hash_hash_i() should be static. [ruby-core:04815]
+ * ext/date/date_core.c (DAY_IN_NANOSECONDS): refix: 31438.
+ check with LONG_MAX and cast as long; without this the calculation
+ will be done as int and overflow.
- * re.c should include regint.h for declarations of oniguruma
- functions. [ruby-core:04815]
+Fri May 6 15:01:11 2011 URABE Shyouhei <shyouhei@ruby-lang.org>
-Sun May 1 09:15:17 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * ext/syck/rubyext.c (mktime_do): avoid buffer overrun, by
+ silently ignoring lesser significant digits. Required buffer
+ length can be computable so you might at first think of
+ allocating enough memory space on the fly using alloca(). That
+ is a wrong idea because when using alloca there is always risk
+ of integer overflow. A function that accepts outer-process
+ resources like this should not blindly trust its inputs. In
+ this particular case we just want to generate milliseconds
+ resolution by strtod() so the string in question needs no more
+ length than what we originally have. Ignoring lesser
+ significant digits should suffice I believe.
- * ruby.c (process_sflag): replace '-' in variable names with '_'.
- [ruby-dev:26107]
+Fri May 6 14:25:53 2011 Tinco Andringa <mail@tinco.nl>
- * eval.c (rb_eval), parse.y (arg): reduce fixnum range literal at
- parser. fixed: [ruby-dev:26113]
+ * ext/syck/rubyext.c (mktime_do): YAML.load time correctly parse
+ usecs smaller than 1 fixes #4571
-Sat Apr 30 11:59:25 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Thu May 5 22:23:34 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * configure.in (RUBY_FUNC_ATTRIBUTE): check for function attribute.
- [ruby-dev:26109]
+ * thread_pthread.c (native_mutex_reinitialize_atfork): removed
+ unused macro.
+ * thread_win32.c (native_mutex_reinitialize_atfork): ditto.
- * eval.c, gc.c: moved noinline to configure.in.
+Thu May 5 22:09:39 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * rubyio.h (DEPRECATED): moved to configure.in.
+ * ext/date/date_core.c (DAY_IN_NANOSECONDS): long long int is not
+ available on all platforms.
- * ruby.h (DEPRECATED, NOINLINE): default definition.
+Thu May 5 17:36:31 2011 CHIKANAGA Tomoyuki <nagachika00@gmail.com>
- * win{32,ce}/Makefile.sub (config.h): deprecated and noinline for
- __declspec() are available for VC++7 or later.
+ * eval.c (frame_func_id): store result of method_entry_of_iseq() to
+ cfp->me because method_entry_of_iseq() might become expensive.
-Sat Apr 30 06:57:39 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
+Thu May 5 15:03:51 2011 CHIKANAGA Tomoyuki <nagachika00@gmail.com>
- * lib/webrick/cgi.rb: new methods WEBrick::CGI#[], WEBrick::CGI#logger
- and WEBrick::CGI#config. these are necessary to use an instance of
- WEBrick::CGI as the first argument of HTTPServlet#get_instance.
- (suggested by Tatsuki Sugiura)
+ * eval.c (frame_func_id): __method__ return different name from
+ methods defined by Module#define_method with a same block.
+ [ruby-core:35386] fixes #4606
+ * eval.c (method_entry_of_iseq): new helper function. search control
+ frame stack for a method entry which has given iseq.
+ * test/ruby/test_method.rb: add tests for #4606
- * lib/webrick/cgi.rb
- (WEBrick::CGI#initalize): set a dummy to @config[:ServerSoftware]
- if SERVER_SOFTWARE environment variable is not given.
- (WEBrick::CGI#start): req.path_info must be a String.
- (WEBrick::CGI::Socket#request_line): treat REQUEST_METHOD, PATH_INFO
- and SCRIPT_NAME to run in console.
+Wed May 4 22:13:09 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * lib/webrick/httputils.rb (WEBrick::HTTPUtils.escape_path): should
- not use String#split("/"). it removes trailing empty path component.
+ * benchmark/bm_vm4_pipe.rb: Reduced iterations. Too slow benchmark
+ is bad.
+ * benchmark/bm_vm4_thread_pass.rb: ditto.
-Thu Apr 28 08:21:51 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Wed May 4 22:08:22 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * ruby.c (set_arg0): use also environment variable space for setting
- $0. [ruby-core:04774]
+ * test/date/test_date_base.rb: don't use no message skip().
-Wed Apr 27 23:42:22 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Wed May 4 21:11:28 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * win32/Makefile.sub (OPTFLAGS): default global optimization to
- disabled only for VC++6.
+ * benchmark/bm_io_select2.rb: reduce number of using file
+ descriptors. because gdb need some fds.
-Tue Apr 26 22:58:00 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+Wed May 4 19:00:59 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * ext/tk/tcltklib.c (ip_invoke_core): call Tcl's "::unknown"
- command when can't get information of target command.
+ * thread.c (rb_wait_for_single_fd): Fix wrong return value.
+ * test/-ext-/wait_for_single_fd/test_wait_for_single_fd.rb
+ (TestWaitForSingleFD#test_wait_for_closed_pipe): test for it.
-Mon Apr 25 13:54:55 2005 speakillof <speakillof@yahoo.co.jp>
+Wed May 4 18:46:39 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * lib/rexml/encodings/SHIFT-JIS.rb: encoding and decoding were
- swapped. [ruby-core:4772]
+ * ext/-test-/wait_for_single_fd: New. for testing
+ rb_wait_for_single_fd() internal function.
+ The patch was written by Eric Wong. [ruby-core:35991]
-Mon Apr 25 01:18:43 2005 Tanaka Akira <akr@m17n.org>
+ * test/-ext-/wait_for_single_fd/test_wait_for_single_fd.rb: ditto.
- * oniguruma.h (OnigWarnFunc): add a variadic argument.
- [ruby-core:4751]
+Wed May 4 12:46:25 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
-Sat Apr 23 19:49:21 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+ * thread.c (rb_wait_for_single_fd): Added POLLNVAL check.
+ based on a patch from Eric Wong at [ruby-core:35991].
- * ext/tk/tcltklib.c (ip_RubyExitCommand): exit with status code
- via TclTkIp#_eval didn't work. [ruby-talk:139390]
+Wed May 4 11:51:01 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
-Sat Apr 23 11:45:29 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * io.c (rb_f_select): remove useless ifdef.
- * eval.c (rb_provided): should check also path name to be loaded.
- fixed: [ruby-dev:26093]
+Wed May 4 11:42:47 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
-Fri Apr 22 16:55:35 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+ * ext/socket/init.c (wait_connectable): fix error handling code.
+ RB_WAITFD_OUT is turned on even though an error occur.
- * ext/tk/tcltklib.c (ip_set_exc_message): fixed memory leak.
+Wed May 4 10:12:39 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * ext/tk/tcltklib.c: eTkCallbackReturn was not initialized.
+ * ext/readline/readline.c (readline_event): use rb_wait_for_single_fd().
+ The patch was written by Eric Wong. [Ruby 1.9 - Feature #4531]
-Thu Apr 21 06:45:28 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Wed May 4 10:10:28 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * ruby.c (ruby_incpush_expand, proc_options): expand relative path
- given with -I option. [ruby-dev:26090]
+ * ext/socket/init.c (wait_connectable): use rb_wait_for_single_fd().
+ The patch was written by Eric Wong. [Ruby 1.9 - Feature #4531]
- * configure.in, lib/mkmf.rb, {bcc32,win32,wince}/Makefile.sub: improve
- C++ support. [ruby-dev:26089]
+ * ext/socket/init.c (try_wait_connectable, wait_connectable_ensure):
+ removed.
-Thu Apr 21 01:53:09 2005 Minero Aoki <aamine@loveruby.net>
+Wed May 4 10:07:48 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * lib/net/http.rb: add rdoc.
+ * ext/io/wait/wait.c (io_wait): use rb_wait_for_single_fd().
+ The patch was written by Eric Wong. [Ruby 1.9 - Feature #4531]
-Thu Apr 21 00:07:50 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Wed May 4 10:01:27 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * lib/mkmf.rb (create_makefile): support platforms have file separator
- other than /.
+ * thread.c (rb_wait_for_single_fd): new. poll(2) based backend for
+ rb_wait_for_single_fd().
+ Now only Linux uses it.
- * {bcc32,win32,wince}/Makefile.sub (BUILD_FILE_SEPARATOR): separator
- of building platform.
+ The patch was written by Eric Wong. [Ruby 1.9 - Feature #4531]
- * {bcc32,win32,wince}/Makefile.sub (CP, INSTALL): use COPY command.
+Wed May 4 09:56:57 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
-Wed Apr 20 23:22:39 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * thread.c (rb_wait_for_single_fd): new.
+ * thread.c (select_single): select(2) based backend for
+ rb_wait_for_single_fd().
- * Makefile.in, common.mk: miniruby depends on MINIOBJS.
+ * io.c (make_writeconv): use rb_wait_for_single_fd() instead of
+ rb_thread_fd_select().
+ * io.c (rb_io_wait_readable): ditto.
+ * thread.c (rb_thread_wait_fd_rw): ditto.
- * dmydln.c (dln_load): dummy function to raise LoadError.
+ * io.c (wait_readable): removed.
+ * thread.c (init_set_fd): new helper function.
+ * include/ruby/io.h (RB_WAITFD_IN, RB_WAITFD_PRI, RB_WAITFD_OUT):
+ new constant for rb_single_wait_fd().
- * cygwin/GNUmakefile.in, {bcc32,win32,wince}/Makefile.sub: miniruby
- can't load extensions on Windows.
+ The patch was written by Eric Wong. [Ruby 1.9 - Feature #4531]
-Wed Apr 20 23:01:35 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Wed May 4 08:04:59 2011 Aaron Patterson <aaron@tenderlovemaking.com>
- * win32/ifchange.bat: delete testing files.
+ * ext/psych/lib/psych/visitors/yaml_tree.rb: fix time dumping so that
+ Syck can load UTC times that Psych dumps.
-Wed Apr 20 22:54:54 2005 Minero Aoki <aamine@loveruby.net>
+Wed May 4 07:33:00 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * lib/net/http.rb: new method Net::HTTP.post_form.
+ * thread.c (rb_fd_copy): fix wrong argument.This issue was pointed
+ out by Eric Wong. [ruby-core:35982]
- * lib/net/http.rb: new method Net::HTTPHeader#set_form_data and
- its alias #form_data=.
+Tue May 3 20:29:33 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * lib/net/http.rb: Net::HTTPHeader#add_header -> add_field
- (adjustted to Ruby 1.8).
+ * test/fileutils/test_fileutils.rb (TestFileUtils#test_chmod_symbol_mode):
+ Skip sticky bit test if the platform is FreeBSD. It doesn't allow to
+ change sticky bit if a target is regular file.
-Wed Apr 20 10:53:30 2005 WATANABE Hirofumi <eban@ruby-lang.org>
+Tue May 3 18:23:57 2011 Yuki Sonoda (Yugui) <yugui@yugui.jp>
- * lib/rdoc/parsers/parse_rb.rb (lex_init): use IRB module.
- [ruby-core:04737]
+ * test/date/test_date.rb (TestDate#test_coerce):
+ test for [ruby-core:35127].
-Wed Apr 20 07:27:18 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Tue May 3 04:27:53 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * {bcc32,win32,wince}/configure.bat, {bcc32,win32,wince}/setup.mak:
- add extout option.
+ * thread.c (rb_thread_select): preserve errno if no error
+ occurred.
- * bcc32/setup.mak: make configuration variables overridable.
+Tue May 3 03:57:04 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Tue Apr 19 23:37:09 2005 WATANABE Hirofumi <eban@ruby-lang.org>
+ * include/ruby/intern.h (rb_w32_fdcopy): add prototype. fixes
+ #4640
- * lib/ftools.rb (File.safe_unlink): do not modify a symlinked file.
+Mon May 2 01:02:04 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
-Tue Apr 19 23:02:40 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * lib/fileutils.rb (FileUtils#chmod): accept symbolic mode argument.
+ The patch was written by takkanm. [ruby-core:26029][Feature #2190]
- * eval.c (search_required): deal with features with path too.
+ * lib/fileutils.rb (FileUtils#fu_mode): new helper function.
+ * lib/fileutils.rb (FileUtils#symbolic_modes_to_i): ditto.
+ * lib/fileutils.rb (FileUtils#mode_mask): ditto.
+ * lib/fileutils.rb (FileUtils#user_mask): ditto.
- * intern.h (rb_file_expand_path): prototype. fixed: [ruby-dev:26082]
+ * test/fileutils/test_fileutils.rb (TestFileUtils#test_chmod_symbol_mode):
+ new test for the above symbolic mode.
+ * test/fileutils/test_fileutils.rb (TestFileUtils#test_chmod_R): ditto.
-Tue Apr 19 08:38:07 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Mon May 2 00:36:12 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * eval.c (search_required, rb_require_safe): expand path in
- rb_features. [ruby-dev:26079]
+ * ext/socket/init.c (rsock_connect): add to care EINTR. based
+ on a patch from Eric Wong at [ruby-core:35621][Bug #4555]
- * file.c (rb_find_file_ext): return absolute path.
+Sun May 1 01:06:24 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * ext/extmk.rb: expand path for ext/**/extconf.rb.
+ * thread.c (rb_thread_select): release GVL while waiting select().
- * eval.c (search_required): handle static linked extensions.
+Sat Apr 30 23:10:15 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
-Mon Apr 18 15:37:35 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * win32/win32.c (rb_w32_fdcopy): New. This can copy even though
+ fdset size exceed FD_SETSIZE.
+ * include/ruby/intern.h (rb_fd_copy): use rb_w32_fdcopy()
- * eval.c (rb_attr): attribute name check added.
+Sat Apr 30 20:18:43 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * numeric.c (flo_plus): small typo fix.
+ * thread.c (do_select): Change argument type to rb_fdset_t.
+ Now do_select() is free from unexpected hangup if
+ HAVE_RB_FD_INIT=1 [Bug #4636]
-Mon Apr 18 11:25:14 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+ * thread.c (rb_thread_fd_select, rb_thread_wait_fd_rw):
+ adapt new argument type.
- * ext/zlib/zlib.c (zstream_run): fixed SEGV. [ruby-core:4712]
+ * thread.c (rb_thread_select): make dummy implementation.
-Sun Apr 17 23:57:49 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Sat Apr 30 20:16:53 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * ext/extmk.rb (extmake, parse_args): do not expand destdir.
+ * thread.c (rb_fd_copy): Change function argument. Now
+ rb_fd_copy() has fully copy semantics.
+ * include/ruby/intern.h: ditto.
- * ext/extmk.rb (relative_from): treat mere drive letter as an absolute
- path.
+Sat Apr 30 20:11:47 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
-Sat Apr 16 17:01:16 2005 Kouhei Sutou <kou@cozmixng.org>
+ * include/ruby/intern.h (rb_thread_select): mark as deprecated.
- * sample/rss/tdiary_plugin/rss-recent.rb (rss_recent_cache_rss):
- use the first date information of items as site date information
- if channel doesn't have date information.
+ * ext/io/wait/wait.c (wait_readable): use rb_thread_fd_select
+ instead of rb_thread_select.
+ * ext/socket/init.c (wait_connectable0): ditto.
+ * ext/readline/readline.c (readline_event): ditto.
+ * io.c (rb_io_wait_readable, wait_readable, rb_io_wait_writable,
+ wait_writable): ditto.
-Sat Apr 16 15:27:03 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Sat Apr 30 20:06:36 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * configure.in (RUBY_PROG_INSTALL): not add -p option to INSTALL.
- files need timestamps to be kept are only ar-archive on a few
- platforms, and be installed by instruby.rb but not INSTALL.
- fixed: [ruby-core:04721]
+ * thread.c (do_select): remove useless ifdef. time calculation
+ is not heavy weight.
- * mkconfig.rb: purge autoconf value variables.
+Sat Apr 30 16:48:36 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
-Sat Apr 16 10:33:48 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+ * benchmark/bm_io_select3.rb: New.
- * bcc32/Makefile.sub: quick hack... prepend DESTDIR.
- still have restriction on DESTDIR ("", "/", "e:")
+Sat Apr 30 16:27:09 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
-Sat Apr 16 03:59:42 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
+ * io.c (copy_stream_body, rb_io_s_copy_stream): move rb_fd_init()
+ from copy_stream_body to rb_io_s_copy_stream. fds of passing
+ rb_fd_term() have to be guaranteed initialized.
- * ext/openssl/extconf.rb: check for OPENSSL_cleanse.
+Sat Apr 30 16:13:17 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * ext/openssl/openssl_missing.h: ditto.
+ * benchmark/bm_io_select.rb, benchmark/bm_io_select2.rb: New.
+ based on a patch from Eric Wong at [Feature #4531]
-Fri Apr 15 22:40:19 2005 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+Sat Apr 30 03:25:53 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * ext/win32ole/tests/testWIN32OLE.rb: add test for WIN32OLE.codepage=
+ * test/io/wait/test_io_wait.rb: New. for testing ext/io/wait.
+ the patch was written by Eric Wong. [Feature #4531]
- * ext/win32ole/tests/testOLETYPELIB.rb: correct expected message.
+Sat Apr 30 00:34:56 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
-Fri Apr 15 22:04:07 2005 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+ * include/ruby/win32.h: remove redundant declaration of
+ rb_w32_time_subtract().
- * ext/win32ole/win32ole.c(ole_invoke): retry after converting Qnil
- to VT_EMPTY.
+Sat Apr 30 00:16:40 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
-Thu Apr 14 19:05:06 2005 Minero Aoki <aamine@loveruby.net>
+ * thread_pthread.c (gvl_init): fix hangup if GVL_SIMPLE_LOCK=1.
+ We don't have to call mutex_unlock() before initialize it!
- * parse.y [ripper] (regexp): dispatch regexp option.
- [ruby-Bugs:1688]
+Fri Apr 29 13:15:15 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * ext/ripper/lib/core.rb: regenerated (interface changed).
+ * thread_win32.c (native_cond_timedwait): New. r31373 caused
+ win32 build failure.
-Thu Apr 14 18:59:43 2005 Minero Aoki <aamine@loveruby.net>
+ * thread_win32.c (__cond_timedwait, abs_timespec_to_timeout_ms):
+ New helper functions.
- * lib/fileutils.rb (remove_file): ignore exceptions caused by
- chmod.
+ * win32/win32.c (rb_w32_time_subtract): rename from subtract and
+ remove static.
- * lib/fileutils.rb (remove_dir): try to get rights to rmdir.
- [ruby-Bugs:1502]
+Fri Apr 29 10:43:09 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
-Thu Apr 14 18:51:02 2005 Keiju Ishitsuka <keiju@ruby-lang.org>
+ * benchmark/bm_vm4_pipe.rb: Add two new benchmark for GVL
+ performance. They was written by Koichi Sasada.
+ * benchmark/bm_vm4_thread_pass.rb: ditto.
- * lib/irb/ruby-lex.rb, lib/irb/slex.rb: bug fix of [ruby-Bugs-1745]
+Fri Apr 29 10:25:31 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * lib/irb/ext/loader.rb, lib/irb/ext/save-history.rb:
- fix location of @RCS_ID
+ * vm_method.c (rb_clear_cache_by_class): Revert r29673. It made
+ a segmentation fault regression. [Bug #4289][ruby-core:34554].
- * lib/irb/cmd/help.rb: a lost of release IRB 0.9.5.
+Fri Apr 29 10:24:51 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Thu Apr 14 15:10:30 2005 Keiju Ishitsuka <keiju@ruby-lang.org>
+ * io.c (make_writeconv): do not add textmode newline decorator if any
+ newline decorator is set already. fixes #4618, fixes #4619
- * lib/irb/notifier.rb, lib/irb/output-method.rb, lib/irb/ext/history.rb
- fixed warning of 'ruby -w'
+Fri Apr 29 10:17:42 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
-Thu Apr 14 05:35:45 2005 Keiju Ishitsuka <keiju@ruby-lang.org>
+ * thread.c (lock_func): small cleanup.
- * doc/irb/irb.rd.ja: a lost of release IRB 0.9.5.
+Fri Apr 29 10:07:13 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * lib/irb/slex.rb: bug fix by [ruby-core:04707].
+ * thread.c (rb_mutex_lock, lock_func): Avoid busy loop and
+ performance regression. bm_vm3_thread_mutex.rb performance
+ change from 109.064sec to 16.331sec. [Feature #4607]
-Thu Apr 14 00:20:31 2005 Keiju Ishitsuka <keiju@ruby-lang.org>
+ * thread.c (init_lock_timeout): New helper function.
- * bin/irb lib/irb.rb lib/irb/...: IRB 0.9.5.
+Thu Apr 28 16:15:49 2011 NAKAMURA Usaku <usa@ruby-lang.org>
-Wed Apr 13 23:40:21 2005 Kouhei Sutou <kou@cozmixng.org>
+ * win32/{win32.c,dir.h} (rb_w32_uopendir): new API to pass UTF-8 path.
- * lib/rss/rss.rb (RSS::VERSION): 0.1.3 -> 0.1.4.
+ * win32/win32.c (opendir_internal, rb_w32_opendir): extract and merge
+ common part of rb_w32_opendir() and rb_w32_uopendir().
- * lib/rss/rss.rb (RSS::Element#converter): fixed converter
- transmission bug.
+ * dir.c (do_opendir, glob_helper): encoding.
-Wed Apr 13 22:12:16 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * dir.c (dir_initialize, do_opendir): convert path to UTF-8 and call
+ rb_w32_uopendir() instead of rb_w32_opendir() on Windows.
+ fixes #4491, reported by Joey Zhou.
- * lib/optparse.rb (OptionParser#order!): call handlers iff matches
- non-switch.
+Thu Apr 28 15:32:53 2011 NAKAMURA Usaku <usa@ruby-lang.org>
-Wed Apr 13 21:20:35 2005 WATANABE Hirofumi <eban@ruby-lang.org>
+ * test/dl/test_base.rb (DL::LIBC_SO): its always msvc*.dll on
+ mswin/mingw.
- * configure.in (mingw32): extract msvcr*.dll from objdump result.
+Thu Apr 28 06:07:06 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Wed Apr 13 19:25:31 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * lib/csv.rb (CSV::open): suppress universal newline decorator.
+ fixes #4603
- * configure.in (mingw32): use actual runtime DLL name as ruby DLL
- name and default load path.
+ * lib/csv.rb (CSV.read): no mode is needed.
- * win32/Makefile.sub, win32/setup.mak: ditto.
+Thu Apr 28 06:06:56 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Tue Apr 12 19:30:36 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * io.c (rb_io_extract_modeenc, rb_f_backquote): set default text
+ mode. fixes #4619
- * lib/optparse.rb (OptionParser#make_switch, OptionParser#order!):
- added non-option and end-of-args handler. [ruby-talk:136878]
- [EXPERIMENTAL]
+ * io.c (pipe_open): set universal newline decorator if needed.
-Tue Apr 12 15:33:09 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+Wed Apr 27 11:33:08 2011 NARUSE, Yui <naruse@ruby-lang.org>
- * ext/tk/tcltklib.c (ip_finalize): better modification than the
- previous commit [ruby-dev:26029].
+ * enc/trans/emoji_iso2022_kddi.trans: ISO-2022-JP-KDDI doesn't have
+ CP932 UDA. Another reason is emacs-mule: the implementation of
+ stateless-iso-2022-jp doesn't support beyond 94x94 (0x7fxx);
+ but CP932 UDA is in 7Fxx-92xx.
-Tue Apr 12 12:38:06 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+Wed Apr 27 07:42:44 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * ext/tk/tcltklib.c (ip_finalize): fix SEGV when Tcl_GlobalEval()
- modifies the argument string to eval.
+ * configure.in (STRIP): use proper toolchain. based on a patch
+ from Jon Forums at [ruby-core:35909]. fixes #4617
-Tue Apr 12 02:21:55 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+Wed Apr 27 01:20:59 2011 Tadayoshi Funaba <tadf@dotrb.org>
- * ext/tk/tcltklib.c (ip_finalize): add existence check of
- Tcl commands before calling Tcl_GlobalEval().
+ * ext/date/date_core.c (date_zone_to_diff): renamed.
+ * ext/date/date_parse.c: ditto.
+ * ext/date/date_strptime.c: ditto.
-Mon Apr 11 23:36:04 2005 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
+Wed Apr 27 01:16:59 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * lib/drb/drb.rb: [druby-ja:123] fix: When reference of my object is
- loaded, the object is tainted.
+ * encoding.c (enc_find): accept Encoding objects.
- * test/drb/test_drb.rb: ditto.
+Wed Apr 27 00:55:56 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Mon Apr 11 22:18:23 2005 WATANABE Hirofumi <eban@ruby-lang.org>
+ * transcode.c (econv_opts): add newline option.
- * dir.c, file.c (lstat): avoid warnings for mingw.
+ * io.c (validate_enc_binmode, rb_io_extract_modeenc): set newline
+ decorator according to open mode.
-Mon Apr 11 20:11:06 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+ * transcode.c (rb_econv_prepare_options): new function, to prepare
+ econv options with newline flags.
- * ext/tk/tcltklib.c (ip_finalize): adhoc patch to avoid SEGV when exit
- on Tcl/Tk8.3.x.
+ * include/ruby/encoding.h (ECONV_NEWLINE_DECORATOR_MASK): add.
-Mon Apr 11 15:24:20 2005 NAKAMURA Usaku <usa@ruby-lang.org>
+Wed Apr 27 00:51:01 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * lib/mkmf.rb (configuration): shouldn't output hdrdir twice.
+ * file.c (rb_file_truncate): fix function.
-Sat Apr 9 18:20:31 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+ * include/ruby/win32.h (ftruncate, truncate, ftello, fseeko): non-64
+ versions on mingw are useless because they use int32_t. fixes #4564
- * ext/tk/lib/tk/image.rb: support to create TkImage object without
- creating a new image object on Tk.
+Wed Apr 27 00:50:33 2011 Tadayoshi Funaba <tadf@dotrb.org>
- * ext/tk/lib/tk/menu.rb: use TkCommandNames on create_self()
+ * ext/date/date_core.c: modified validation methods.
+ * ext/date/lib/date.rb: ditto.
- * ext/tk/lib/tk/root.rb: TkRoot.to_eval() returns '.'.
+Wed Apr 27 00:00:37 2011 Tadayoshi Funaba <tadf@dotrb.org>
- * ext/tk/lib/tk/text.rb: add methods to create a TkText::IndexString
- from (x, y) coords.
+ * ext/date/date_core.c (dt_lite_set_tmx): should get df value.
- * ext/tk/lib/tkextlib/tile/: add demo and update support status.
+Tue Apr 26 22:34:04 2011 Tadayoshi Funaba <tadf@dotrb.org>
-Sat Apr 9 14:42:29 2005 Kouhei Sutou <kou@cozmixng.org>
+ * ext/date/lib/date/format.rb (_iso8601): allowed day only civil
+ date. disallowed separatorless day only ordinal date.
- * sample/rss/tdiary_plugin/rss-recent.rb: supported configuration
- via Web browser.
+Mon Apr 25 21:31:36 2011 Nobuhiro Iwamatsu <iwamatsu@nigauri.org>
-Fri Apr 8 20:17:48 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * ext/openssl/extconf.rb: Should check SSLv2_*method.
+ openssl compiled with "no-ssl2" the extconf don't fail
+ when running `make' having this compilation errors.
+ Patched by Laurent Arnoud. fixes #4562, #4556
- * ext/extmk.rb (extmake): hdrdir needs to be defined also in
- Config::CONFIG.
+Mon Apr 25 20:53:32 2011 Tajima, Akio <artonx@yahoo.co.jp>
- * lib/mkmf.rb (configuration, create_makefile): get rid of recursive
- macro reference.
+ * win32/win32.c (kill): accept 0 only sig is SIGINT #4596
-Fri Apr 8 01:55:20 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+Mon Apr 25 19:59:47 2011 Tajima, Akio <artonx@yahoo.co.jp>
- * ext/tk/sample/demos-{en,jp}/goldberg.rb: reduced window size.
- [ruby-dev:25992]
+ * win32/win32.c (kill): accept 0 as pid, fixes #4596
-Thu Apr 7 23:58:40 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Mon Apr 25 16:43:45 2011 NARUSE, Yui <naruse@ruby-lang.org>
- * ext/extmk.rb (extmake): keep directory names in Makefile as macros.
+ * random.c (random_rand): remove unused variables.
- * lib/mkmf.rb (configuration, create_makefile): ditto.
+ * struct.c (rb_struct_define_without_accessor): ditto.
- * lib/mkmf.rb (CXX_EXT): separate C++ extensions.
+ * strftime.c (rb_strftime_with_timespec): ditto.
-Thu Apr 7 17:24:17 2005 Shugo Maeda <shugo@ruby-lang.org>
+ * sprintf.c: ditto.
- * eval.c (rb_call0): "return" event hook should be always executed
- if event_hooks is set.
+ * time.c (time_asctime): remove useless GetTimeval().
-Thu Apr 7 14:33:09 2005 Kouhei Sutou <kou@cozmixng.org>
+ * thread_pthread.c: cast to (void *) for %p.
- * test/rss/test_maker_dc.rb (test_date): added a test for #date=
- and #dc_date=.
+Mon Apr 25 11:02:11 2011 NARUSE, Yui <naruse@ruby-lang.org>
-Thu Apr 7 11:49:53 2005 Kouhei Sutou <kou@cozmixng.org>
+ * ext/ripper/lib/ripper/sexp.rb: fix rdoc around sexp.
+ patched by Sho Hashimoto. fixes #4599
- * lib/rss/maker/dublincore.rb: _really_ supported multiple Dublin
- Core items.
+Mon Apr 25 08:24:04 2011 Shota Fukumori <sorah@tubusu.net>
- * test/rss/rss-assertions.rb (assert_multiple_dublin_core): added
- an assertion for testing multiple Dublin Core items.
+ * random.c (rb_f_rand, random_s_rand): RDocs for them.
- * test/rss/test_maker_dc.rb (test_rss10_multiple): added a test
- for making multiple Dublin Core items.
+Mon Apr 25 07:18:00 2011 Kenta Murata <mrkn@mrkn.jp>
-Wed Apr 6 16:06:30 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+ * random.c (random_s_rand, Init_Random): Random.rand should behave as
+ Random::DEFAULT.rand rather than Kernel#rand.
- * test/ruby/test_env.rb (test_key): should test ENV.key instead of
- ENV.index. [ruby-dev:25994]
+ * random.c (rand_range, random_rand): rand_range function extracted
+ from random_rand function.
-Tue Apr 5 16:01:12 2005 Kouhei Sutou <kou@cozmixng.org>
+ * random.c (rb_f_rand): accept a Range argument as Random#rand
+ [ruby-dev:43427] #4605
- * lib/rss/*: refactored.
- - gave a name to 'x'.
- - undef_method -> remove_method for avoiding a warning in ruby 1.6.
+Mon Apr 25 03:31:06 2011 Tadayoshi Funaba <tadf@dotrb.org>
-Tue Apr 5 15:45:33 2005 Kouhei Sutou <kou@cozmixng.org>
+ * lib/time.rb: require 'date'.
+ * ext/date/lib/date/format.rb: removed require line.
- * sample/rss/tdiary_plugin/rss-recent.rb:
- new option: @options['rss-recent.use-image-link']:
- use image as link instread of text if available.
+Mon Apr 25 03:08:39 2011 Tadayoshi Funaba <tadf@dotrb.org>
- * sample/rss/tdiary_plugin/rss-recent.rb (RSS_RECENT_VERSION):
- 0.0.5 -> 0.0.6.
+ * ext/date/lib/date/format.rb: require 'date'.
-Tue Apr 5 15:15:26 2005 Kouhei Sutou <kou@cozmixng.org>
+Mon Apr 25 03:04:16 2011 Tadayoshi Funaba <tadf@dotrb.org>
- * lib/rss/dublincore.rb: supported multiple Dublin Core items.
+ * ext/date/lib/date/format.rb (_iso8601): added a pattern.
- * lib/rss/parser.rb: added class name registry for complex model
- elements. (ex. have childlen elements, have some attributes and
- a child element and so on.)
+Mon Apr 25 02:51:22 2011 NARUSE, Yui <naruse@ruby-lang.org>
- * lib/rss/maker/base.rb: added default current_element implementation.
+ * ext/date/lib/date/format.rb: require 'date_core.so'.
+ date/format needs methods which are now in date_core.so.
+ This breaks make rdoc which uses Date._parse from time.rb.
- * lib/rss/maker/dublincore.rb: supported multiple Dublin Core
- items.
+Mon Apr 25 02:47:46 2011 Tadayoshi Funaba <tadf@dotrb.org>
- * lib/rss/maker/image.rb: supproted new Dublin Core API.
+ * ext/date/lib/date/format.rb (_iso8601): fixed a bug of regex.
+Mon Apr 25 02:12:26 2011 Tadayoshi Funaba <tadf@dotrb.org>
- * lib/rss/trackback.rb (RSS::TrackBackUtils.new_with_value_if_need):
- moved to RSS::Utils.
+ * ext/date/lib/date/format.rb: an adjustment of regex.
- * lib/rss/utils.rb (RSS::Utils.new_with_value_if_need):
- moved from RSS::TrackBackUtils.
+Mon Apr 25 01:58:50 2011 Tadayoshi Funaba <tadf@dotrb.org>
+ * ext/date/lib/date/format.rb: omitted to call _parse.
- * lib/rss/maker/image.rb: fixed invalid argument of
- add_need_initialize_variable bug.
+Mon Apr 25 01:03:03 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * lib/rss/maker/trackback.rb: ditto.
+ * string.c (rb_to_id): remove unused variable.
+Sun Apr 24 22:19:05 2011 Tadayoshi Funaba <tadf@dotrb.org>
- * lib/rss/rss.rb (Hash#merge): added for ruby 1.6.
+ * complex.c, rational.c: omitted some method calls.
- * lib/rss/rss.rb (RSS::BaseModel.date_writer): changed to accept nil
- for date value.
+Sun Apr 24 02:57:27 2011 Tadayoshi Funaba <tadf@dotrb.org>
+ * ext/date/date_parse.c (n2i): takes long.
- * test/test_dublincore.rb: added tests for plural accessor and
- multiple Dublin Core items.
+Sun Apr 24 02:51:06 2011 Tadayoshi Funaba <tadf@dotrb.org>
- * test/test_setup_maker_1.0.rb: fixed swapped actual and expected
- values.
+ * ext/date/date_parse.c: reverted.
-Mon Apr 4 23:17:52 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+Sun Apr 24 02:25:23 2011 NARUSE, Yui <naruse@ruby-lang.org>
- * ext/tk/lib/tk.rb (TkComm#array2tk_list): accept enc-mode argument to
- decide whether convert encoding of each element or not.
+ * include/ruby/intern.h: pcc can't use __builtin_constant_p.
- * ext/tk/lib/tk/variable.rb (TkVariable#value=): fail to convert the
- encoding of array elements when assign an array to an TkVariable
- object.
+ * vm_exec.c: change condition.
-Mon Apr 4 10:26:48 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+Sun Apr 24 01:58:01 2011 NARUSE, Yui <naruse@ruby-lang.org>
- * ext/tk/lib/tk/dialog.rb: fixed typo.
+ * ext/date/date_core.c (leap_p): suppress warning: parentheses.
-Sat Apr 2 23:38:54 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * ext/date/date_core.c (date_s__parse_internal): remove unused
+ variable "str".
- * configure.in (CP, INSTALL): get rid of less portable options.
+ * ext/date/date_parse.c (parse_ddd_cb): use RSTRING_LENINT.
- * lib/mkmf.rb (configuration, create_makefile): correct configuration
+ * ext/date/date_strftime.c (date_strftime_with_tmx): remove unused
variable.
- * wince/configure.bat, wince/setup.mak: add prefix, extstatic and
- rdoc options.
-
- * lib/mkmf.rb (create_makefile): ensure library directories get made
- before copying libraries there.
-
-Sat Apr 2 16:59:46 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/lib/tk.rb: forgot to update RELEASE_DATE
-
- * ext/tk/lib/tk/variable.rb: fix namespace trouble when autoloading
-
- * ext/tk/lib/tk/palette.rb: define Tcl variable 'tkPalette' as global
-
- * ext/tk/lib/tk/dialog.rb: use array2tk_list method when calling
- Tk.ip_eval.
-
- * ext/tk/lib/tk/autoload.rb: add autoload entry 'TkDialogObj' and
- 'TkWarningObj'
-
-Sat Apr 2 13:23:17 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
-
- * hash.c (env_key): ENV.index is deprecated as well as Hash#index.
- use ENV.key instead. [ruby-dev:25974]
-
-Sat Apr 2 02:19:11 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/lib/tk.rb (TkWindow.initialize): accept 'without_creating'
- option without 'widgetname' option to allow creating a widget object
- which is used as an argument of Tcl/Tk's widget allocation commands.
-
- * ext/tk/lib/tk/image.rb (TkImage.initialize): accept 'imagename'
- option to create a image object by the given name.
-
-Thu Mar 31 22:23:51 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/mkmf.rb (SRC_EXT): exclude just case different suffixes on case
- insensitive file system platforms.
-
- * README.EXT, README.EXT.ja (Appendix C): utility functions.
-
-Thu Mar 31 14:08:43 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
-
- * ext/openssl/ossl_engine.c (ossl_engine_s_load): should return
- value. [ruby-dev:25971]
-
-Thu Mar 31 11:07:50 2005 Kouhei Sutou <kou@cozmixng.org>
-
- * lib/rss/parser.rb: @@setter -> @@setters.
-
- * lib/rss/parser.rb
- (RSS::BaseListener.register_uri)
- (RSS::BaseListener.uri_registered?)
- (RSS::BaseListener.install_get_text_element):
- swapped the first argument and the second argument.
-
- * lib/rss/taxonomy.rb: swapped the first argument and the second
- argument for RSS::BaseListener.install_get_text_element.
- * lib/rss/image.rb: ditto.
- * lib/rss/syndication.rb: ditto.
- * lib/rss/dublincore.rb: ditto.
- * lib/rss/parser.rb: ditto.
- * lib/rss/1.0.rb: ditto.
- * lib/rss/2.0.rb: ditto.
- * lib/rss/0.9.rb: ditto.
- * lib/rss/content.rb: ditto.
-
-Thu Mar 31 11:00:36 2005 Kouhei Sutou <kou@cozmixng.org>
-
- * lib/rss/parser.rb
- (RSS::BaseListener.install_setter)
- (RSS::BaseListener.register_uri): changed fallback way.
-
-Thu Mar 31 08:25:40 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * common.mk (RUBYOPT): clear for the environment RubyGems installed.
-
- * common.mk (clean-local): keep $(PREP) files till distclean.
-
- * common.mk (check): do all tests.
-
-Thu Mar 31 06:00:20 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
-
- * ext/openssl/ossl_engine.c (ossl_engine_s_load): should not raise
- error even if the specified engine could not be loaded. (Dynamic
- engines don't have fixed name to load.)
-
-Wed Mar 30 17:41:48 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/tcltklib.c: add TclTkIp#_create_console() method to create
- a Tcl/Tk's console window.
-
- * ext/tk/lib/multi-tk.rb: support TclTkIp#_create_console() method.
-
- * ext/tk/lib/remote-tk.rb: ditto.
-
- * ext/tk/lib/tk/console.rb: ditto.
-
- * ext/tk/lib/tk.rb: update RELEASE_DATE
-
- * ext/tk/sample/demo-*/check2.rb: use 'return' in the Proc object.
-
- * ext/tk/sample/tkextlib/**: ditto.
-
-Tue Mar 29 22:20:49 2005 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
-
- * test/rinda/test_rinda.rb: use DRbObject.new_with instead of reinit.
- [ruby-dev:25961]
-
-Tue Mar 29 00:04:57 2005 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
-
- * lib/drb/drb.rb: move method DRbObject#reinit to DRbObject.new_with.
- extract method DRbObject.prepare_backtrace. add DRb.regist_server,
- remove_server, fetch_server. change server in thread variable if
- in-proc server. [druby-ja:113]
-
- * lib/drb/gw.rb: ditto.
-
-Mon Mar 28 20:53:44 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/extmk.rb (extract_makefile): nothing to be removed when no file
- was deleted.
-
- * ext/extmk.rb (extmake): restore srcdir.
-
-Mon Mar 28 08:39:49 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/iconv/iconv.c (iconv_create): Iconv::Failure requires 3
- arguments. (pointed out by NaHi)
-
-Sun Mar 27 00:56:58 2005 Minero Aoki <aamine@loveruby.net>
-
- * lib/fileutils.rb (remove_file): ignore Errno::E* if force option
- is set. [ruby-dev:25944]
-
-Sat Mar 26 22:51:33 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/lib/tk.rb (_callback_entry_class?): add for checking whether
- a class is available for a callback entry.
-
- * ext/tk/lib/tk.rb (after_cancel): add Tk.after_cancel(afterID) method.
-
- * ext/tk/lib/tk.rb (array2tk_list): change from private module method
- of TkComm to public module method.
-
- * ext/tk/lib/tk.rb (cget): add check that slot argument is not
- empty string.
-
- * ext/tk/lib/tk.rb (configinfo): ditto.
-
- * ext/tk/lib/tk/itemconfig.rb (itemcget): add check that slot argument
- is not empty string.
-
- * ext/tk/lib/tk/itemconfig.rb (itemconfiginfo): ditto.
-
- * ext/tk/lib/tk/entry.rb: add TkEntry#icursor and icursor= (alias of
- cursor and cursor= method).
-
- * ext/tk/lib/tk/font.rb: improve font treatment when the font name is
- empty string.
-
- * ext/tk/lib/tk/variable.rb: add :variable, :window and :procedure
- type.
-
- * ext/tk/lib/tk/variable.rb: improve treatment of array-type
- tkvariable.
-
- * ext/tk/lib/tkextlib/blt.rb: add commands for zooming.
-
- * ext/tk/lib/tkextlib/blt/*: bug fix.
-
- * ext/tk/lib/tkextlib/treectrl/tktreectrl.rb: bug fix and add methods
- to call TreeCtrl commands for bindings.
-
- * ext/tk/sample/tkextlib/blt/*: new sample scripts.
-
- * ext/tk/sample/tkextlib/treectrl/*: ditto.
-
-Fri Mar 25 10:53:16 2005 WATANABE Hirofumi <eban@ruby-lang.org>
-
- * configure.in (WIN32_LEAN_AND_MEAN): removed because a lot of
- troubles. [ruby-list:40721]
-
-Thu Mar 24 23:10:44 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/mkmf.rb (macro_defined?): try to compile for an old compiler
- which doesn't bail out at #error directive. [ruby-dev:25818]
-
- * lib/mkmf.rb (check_sizeof): refine logging messages.
-
-Wed Mar 23 19:08:10 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
-
- * lib/webrick/utils.rb (WEBrick::Utils.create_listeners):
- - should raise ArgumentError if no port is specified.
- - even if the specified port is 0, all TCPServers should be
- initialized with the port given to the first one.
-
- * lib/webrick/server.rb (WEBrick::GenericServer#initialize): if :Port
- parameter is 0, it should be updated with the port number which
- ectually listened.
-
-Wed Mar 23 16:12:40 2005 Shugo Maeda <shugo@ruby-lang.org>
-
- * parse.y (primary): fix lineno of rescue and ensure.
-
-Wed Mar 23 00:39:05 2005 Shugo Maeda <shugo@ruby-lang.org>
-
- * test/ruby/test_settracefunc.rb (test_event): added tests for
- "class" and "end" and "raise".
-
-Sun Mar 20 22:51:19 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/mkmf.rb (mkmf_failed): check if Makefile is created without
- create_makefile.
-
-Sat Mar 19 23:48:10 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * misc/ruby-mode.el (ruby-expr-beg): returned true always.
- fixed: [ruby-list:40683]
-
-Sat Mar 19 00:41:02 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/lib/tk/font.rb: add some TkFont class methods to get font
- information without creating a TkFont object.
-
- * ext/tk/lib/tkextlib/treectrl/tktreectrl.rb: bug fix and define some
- classes for components of Tk::TreeCtrl
-
-Thu Mar 17 17:42:13 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * struct.c (make_struct): allow non local-id field
- names. [ruby-core:04575]
-
- * struct.c (inspect_struct): ditto.
-
-Wed Mar 16 23:39:13 2005 Shugo Maeda <shugo@ruby-lang.org>
-
- * test/ruby/test_settracefunc.rb: added test for c-return.
-
-Wed Mar 16 22:57:43 2005 Shugo Maeda <shugo@ruby-lang.org>
-
- * eval.c (rb_call0): call_cfunc() should be protected.
-
- * eval.c (rb_add_event_hook): use K&R style.
-
- * eval.c (rb_remove_event_hook): ditto.
-
-Wed Mar 16 22:03:15 2005 Shugo Maeda <shugo@ruby-lang.org>
-
- * eval.c (rb_add_event_hook): new function to add a hook function for
- interpreter events.
-
-Wed Mar 16 18:08:32 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * eval.c (rb_call0): reorganize "return" event post.
-
- * eval.c (return_jump): no need to post "return" event here.
-
-Tue Mar 15 23:49:19 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/iconv/iconv.c (Init_iconv): InvalidEncoding also should include
- Iconv::Failure.
-
-Tue Mar 15 23:12:36 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * eval.c (recursive_check, recursive_push): more restrictive check.
- fixed: [ruby-dev:25916]
-
-Tue Mar 15 16:38:31 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/tkutil/tkutil.c (ary2list): give wrong arguments to hash2kv()
-
-Mon Mar 14 19:39:33 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/lib/tk/timer.rb (TkTimer): forgot to clear @return_value
- when restarting
-
- * ext/tk/lib/tk/sample/cd_timer.rb: new sample of TkRTTimer
-
-Mon Mar 14 12:21:03 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/lib/tk/timer.rb (TkRTTimer): forgot to reset the callback
- time. So, 'continue' do all callbacks between 'stop' and 'continue'.
-
-Mon Mar 14 08:14:56 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * object.c (str_to_id): raise ArgumentError for NUL containing
- strings.
-
-Mon Mar 14 00:13:49 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/lib/tk/timer.rb (TkRTTimer): correct calculation of offset
- value. get a little better accuracy.
-
- * ext/tk/sample/demos-en/widget: use a binding with no local variables
- when eval a sample script.
-
- * ext/tk/sample/demos-en/bind.rb: ditto.
-
- * ext/tk/sample/demos-en/tcolor: ditto.
-
- * ext/tk/sample/demos-jp/widget: ditto.
-
- * ext/tk/sample/demos-jp/bind.rb: ditto.
-
- * ext/tk/sample/demos-jp/tcolor: ditto.
-
-Sun Mar 13 22:19:17 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * eval.c (recursive_pop): raise TypeError instead of fatal error.
- fixed: [ruby-dev:25843]
-
-Sun Mar 13 10:09:17 2005 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
-
- * test/rinda/test_rinda.rb: remove test_gc. [ruby-dev:25871]
-
-Sun Mar 13 02:32:54 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
-
- * ext/openssl/ossl_ssl.c (ossl_tmp_dh_callback): should get DH
- parameter from the current SSL object.
-
-Sun Mar 13 02:09:03 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
-
- * ext/openssl/ossl_pkey_dh.c (ossl_create_dh): fix typo.
- patch from IWATSUKI Hiroyuki. [ruby-dev:25867]
-
- * ext/openssl/ossl_ssl.c (ossl_tmp_dh_callback): ditto.
- (ossl_call_tmp_dh_callback): ditto
-
-Fri Mar 11 03:24:59 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * parse.y (primary): wrong var node was set for NODE_LAMBDA.
- [ruby-core:04555]
-
-Thu Mar 10 19:10:29 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/tcltklib.c (lib_eventloop_ensure): mis-delete a timer handler
- when exit from a recursive called eventloop
-
- * ext/tk/lib/tk/timer.rb: new TkRTTimer class, which can works for a
- realtime operation
-
- * ext/tk/sample/tkrttimer.rb: sample of TkRTTimer class
-
- * ext/tk/lib/tk/textmark.rb: move TkTextMark#+ and TkTextMark#- to
- TkText::IndexModMethods
-
- * ext/tk/lib/tk/text.rb: improve TkTextMark#+ and TkTextMark#-, and
- add them to TkText::IndexModMethods module
-
- * ext/tk/sample/tktextio.rb: add test part of "seek by text index
- modifiers"
-
-Thu Mar 10 08:10:11 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * re.c (make_regexp): need to free internal regexp structure when
- compilation fails. [ruby-talk:133228]
-
-Thu Mar 10 01:08:20 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * parse.y (bv_decl): remove initialize rule from block local
- variable declaration.
-
-Wed Mar 9 23:55:34 2005 Tanaka Akira <akr@m17n.org>
-
- * lib/pp.rb (PP::PPMethods#guard_inspect_key): support
- __recursive_key__. [ruby-dev:25821]
-
-Wed Mar 9 19:42:21 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
-
- * ext/openssl/ossl_ssl.c: OpenSSL::SSL::SSLContexts suports callbacks:
- - SSLContext#client_cert_cb is a Proc. it is called when a client
- certificate is requested by a server and no certificate was yet
- set for the SSLContext. it must return an Array which includes
- OpenSSL::X509::Certificate and OpenSSL::PKey::RSA/DSA objects.
- - SSLContext#tmp_dh_callback is called in key exchange with DH
- algorithm. it must return an OpenSSL::PKey::DH object.
-
- * ext/openssl/ossl_ssl.c:
- (ossl_sslctx_set_ciphers): ignore the argument if it's nil.
- (ossl_start_ssl, ossl_ssl_write): call rb_sys_fail if errno isn't 0.
- [ruby-dev:25831]
-
- * ext/openssl/ossl_pkey.c
- (GetPrivPKeyPtr, ossl_pkey_sign): should call rb_funcall first.
- (DupPrivPKeyPtr): new function.
-
- * ext/openssl/ossl_pkey_dh.c: add default DH parameters.
-
- * ext/openssl/ossl_pkey.h: ditto.
-
- * ext/openssl/lib/openssl/cipher.rb: fix typo. [ruby-dev:24285]
-
-Wed Mar 9 18:09:51 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * parse.y (gettable_gen): warns if VCALL name is used as
- out-of-scope block local variable. [EXPERIMENTAL]
-
- * parse.y (opt_bv_decl): add explicit block local variable
- declaration. raises error for name conflicts. [EXPERIMENTAL]
-
-Wed Mar 9 13:37:57 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/sample/tktextio.rb: fix bug of handling 'end' position.
- support initial text, overwrite setting and pos_gravity control.
-
-Tue Mar 8 18:16:55 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/sample/tktextio.rb: New sample script. TkTextIO class in this
- sample supports to use a text widget as if it is a I/O stream (such
- like as StringIO class).
-
-Tue Mar 8 13:39:25 2005 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * ext/socket/mkconstants.rb: workaround for some of 4.4BSD-Lite
- derived OSs.
-
-Tue Mar 8 12:36:17 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * ext/socket/socket.c: document from Sam Roberts
- <sroberts@uniserve.com> for getsockopt and setsockopt is merged.
- [ruby-doc:824]
-
-Tue Mar 8 10:48:53 2005 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * eval.c (rb_exec_recursive): declaration should precede statements
- before C99.
-
-Tue Mar 8 10:05:40 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * error.c (errno_missing): Errno.const_missing to allow references
- to SyscallError exceptions not defined on the platform.
- [ruby-core:04522]
-
- * error.c (Init_syserr): Errno::NOERROR(0) for fallback exception.
-
-Tue Mar 8 01:19:00 2005 NARUSE, Yui <naruse@ruby-lang.org>
-
- * ext/nkf/nkf-utf8/nkf.c: follow nkf 1.66
- fixed: [ruby-dev:25828]
-
-Mon Mar 7 21:29:40 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
-
- * lib/webrick/server.rb (WEBrick::GenericServer#start): should
- restore @token if accept failure. suggested by Dominique Brezinski.
- [ruby-core:04518]
-
- * sample/webrick/httpsd.rb: fix typo in comment. suggested by
- Kazuhiko Shiozaki.
-
-Mon Mar 7 21:01:37 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * eval.c (rb_require_safe): get actual path string under safe level
- when requested. fixed: [ruby-dev:25815]
-
-Mon Mar 7 16:46:02 2005 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * ext/openssl/ossl_ssl.c (ossl_start_ssl, ossl_ssl_read,
- ossl_ssl_write): need to set errno on Win32 platform.
-
-Mon Mar 7 14:55:43 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * eval.c (block_pass): should not push unique number if a block is
- not an orphan. [ruby-dev:25808]
-
-Mon Mar 7 14:13:23 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
-
- * ext/openssl/lib/openssl/buffering.rb (Buffering#initialize):
- should set @eof and @rbuffer.
-
-Mon Mar 7 10:28:00 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * object.c (inspect_obj): unintended space removal.
- [ruby-dev:25810]
-
- * eval.c (rb_exec_recursive): should not use NODE in disclosed
- context. [ruby-dev:25812]
-
- * io.c (rb_f_open): need not to check if to_open value is a
- T_FILE. [ruby-dev:25812]
-
-Mon Mar 7 01:21:01 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/tkutil/tkutil.c: follow the change of st.c (committed
- at Fri, 4 Mar 2005 15:47:47 +0900 by matz)
-
-Mon Mar 7 00:01:55 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/tcltklib.c: fail to call TclTkLib.mainloop when $SAFE==4
+Sun Apr 24 00:34:23 2011 Tadayoshi Funaba <tadf@dotrb.org>
-Sun Mar 6 13:04:10 2005 Dee Zsombor <zsombor@ruby-lang.org>
+ * ext/date/date_parse.c: removed some unused macros. use strchr()
+ instead of index().
- * misc/ruby-electric.el: added.
- * misc/Readme: updated.
+Sat Apr 23 21:29:42 2011 Tadayoshi Funaba <tadf@dotrb.org>
-Sun Mar 6 11:47:10 2005 Sam Roberts <sroberts@uniserve.com>
+ * ext/date/date_core.c: replacement of implementation of
+ _parse. [experimental]
+ * ext/date/date_parse.c: new.
+ * ext/date/lib/date/format.rb: removed ruby version of _parse.
- * lib/pp.rb: rdoced. [ruby-core:4490]
+Fri Apr 22 12:04:15 2011 NARUSE, Yui <naruse@ruby-lang.org>
-Sun Mar 6 11:36:37 2005 Tanaka Akira <akr@m17n.org>
+ * array.c (rb_ary_sort_bang): fix rdoc.
+ patched by burningTyger. https://github.com/ruby/ruby/pull/11
- * lib/pp.rb (File::Stat#pretty_print): Etc.getpwuid and Etc.getgrgid
- may return nil. [ruby-talk:129826]
- reported by Daniel Berger.
+Fri Apr 22 11:49:49 2011 NARUSE, Yui <naruse@ruby-lang.org>
-Sun Mar 6 06:34:31 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
+ * lib/xmlrpc/create.rb (XMLRPC::Create#conv2value):
+ XML-RPC's int is 32bit int, and Fixnum also may be beyond 32bit.
- * ext/openssl/ossl_ssl.c (ossl_start_ssl): should wait for that
- the underlying IO become readable or writable if the error was
- SSL_ERROR_WANT_READ or SSL_ERROR_WANT_WRITE. [ruby-dev:25795]
+ * lib/xmlrpc/create.rb (XMLRPC::Create#conv2value):
+ XML-RPC doesn't allow Infinity and NaN.
+ http://www.xmlrpc.com/spec
- * ext/openssl/ossl_ssl.c (ossl_ssl_read, ossl_ssl_write): ditto.
+Fri Apr 22 04:16:14 2011 Aaron Patterson <aaron@tenderlovemaking.com>
- * ext/openssl/lib/openssl/buffering.rb
- (Buffering#consume_rbuf): pointless eof flag resetting is deleted.
- (Buffering#read): should return an empty string if the specified
- size is zero.
- (Buffering#readpartial): new method.
- (Buffering#readline): fix typo.
- (Buffering#getc): return the first character of string correctly.
- (Buffering#readchar): fix typo.
- (Buffering#eof?): should read again it the input buffer is empty.
- (Buffering#do_write): should rescue Errno::EAGAIN.
- (Buffering#puts): use "\n" as the output field separator.
+ * ext/psych/parser.c (parse): strings from psych have proper taint
+ markings.
- * ext/openssl/extconf.rb: get rid of GNUmakefile generation.
+ * test/psych/test_tainted.rb: test for string taint
- * text/openssl/test_pair.rb: test for IO like methods.
+Thu Apr 21 01:30:02 2011 NARUSE, Yui <naruse@ruby-lang.org>
- * test/ruby/ut_eof.rb: test about empty file.
+ * random.c (rb_f_srand): fix rdoc: srand(0)'s 0 is a seed.
+ [ruby-core:35833] fixes #4590
-Sat Mar 5 17:48:31 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+Thu Apr 21 01:01:28 2011 Masaya Tarui <tarui@ruby-lang.org>
- * dir.c (rb_glob): fixed mismatch of argument.
+ * win32/win32.c (CreateChild): maximum length of lpCommandLine is
+ 32,768 characters, including the Unicode terminating null character.
- * dir.c (fnmatch): removed unnecessary code. (by string.c 1.219)
+Wed Apr 20 21:32:11 2011 Tadayoshi Funaba <tadf@dotrb.org>
- * win32/win32.c (NtInitialize): ditto. (by numeric.c 1.117)
+ * ext/date/date_strptime.c (date__strptime_internal): do not
+ overwrite local variables.
-Sat Mar 5 16:50:00 2005 NARUSE, Yui <naruse@ruby-lang.org>
+Wed Apr 20 14:41:28 2011 NARUSE, Yui <naruse@ruby-lang.org>
- * ext/nkf/nkf-utf8/nkf.c: follow nkf 1.65
+ * string.c (rb_str_each_line): check string's length when compare
+ separator and string. [ruby-core:35815] fixes #4586
-Sat Mar 5 16:29:26 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+Wed Apr 20 00:02:13 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * ext/tk/lib/multi-tk.rb: freeze callback-entry objects
+ * misc/ruby-mode.el (ruby-parse-partial): use position of open paren.
- * ext/tk/lib/tkextlib/tile.rb: support tile-0.6
+Tue Apr 19 01:00:21 2011 Tajima Akio <artonx@yahoo.co.jp>
-Sat Mar 5 12:52:08 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * test/ruby/test_io.rb (TestIO#test_cross_thread_close_fd):
+ skip cross thread pipe close if windows
- * lib/mkmf.rb (create_makefile): allow putting spaces between target
- and colon in depend file.
+Mon Apr 18 12:15:46 2011 NAKAMURA Usaku <usa@ruby-lang.org>
-Sat Mar 5 02:41:00 2005 NAKAMURA Usaku <usa@ruby-lang.org>
+ * test/ruby/test_range.rb (TestRange#test_step_ruby_core_35753):
+ avoid float error. [ruby-core:35804]
- * file.c (eaccess): workaround for VC++8 runtime.
+Sun Apr 17 00:20:14 2011 Tadayoshi Funaba <tadf@dotrb.org>
- * win32/win32.c (ioinfo): VC++8 support.
+ * ext/date/date_{core,strftime}.c: use struct tmx instead of vtm.
+ * ext/date/date_tmx.h: new.
-Fri Mar 4 19:39:55 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Sat Apr 16 22:23:52 2011 Tadayoshi Funaba <tadf@dotrb.org>
- * lib/rdoc/parsers/parse_c.rb (RDoc::C_Parser#do_includes): replace
- also locally defined modules.
+ * ext/date/date_strftime.c (date_strftime_wo_timespec): changed
+ the way of validation of locale modifiers.
- * ext/iconv/iconv.c: rdocified.
+Sat Apr 16 21:55:12 2011 Tadayoshi Funaba <tadf@dotrb.org>
- * ext/strscan/strscan.c: moved misplaced rdoc.
+ * ext/date/date_core.c: replacement of implementation of
+ _strptime. [experimental]
+ * ext/date/date_strptime.c: new.
+ * ext/date/lib/date/format.rb: removed ruby version of _strptime.
-Fri Mar 4 16:11:20 2005 NAKAMURA Usaku <usa@ruby-lang.org>
+Sat Apr 16 10:18:30 2011 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
- * eval.c (rb_exec_recursive): matched the declaration to prototype.
-
- * ext/curses/curses.c: don't need to check HAVE_WCOLOR_SET excluding
- window_color_set().
-
- * ext/tk/tcltklib.c: fixed commit mistakes.
-
-Fri Mar 4 12:45:17 2005 Tilman Sauerbeck <tilman@code-monkey.de>
-
- * lib/rdoc/parsers/parse_c.rb: allow whitespace after function names.
- [ruby-core:4296]
-
- * lib/rdoc/parsers/parse_simple.rb: adds support for private comments
- in the "simple" parser. [ruby-core:4301]
-
-Fri Mar 4 12:45:17 2005 Charles Mills <cmills@freeshell.org>
-
- * lib/rdoc/parsers/parse_c.rb: adds support for constants
- (rb_define_const), accessors (rb_define_attr), and makes a
- couple fixes. [ruby-core:4307]
-
-Fri Mar 4 12:45:17 2005 Florian Gross <florgro@gmail.com>
-
- * lib/rdoc/parsers/parse_rb.rb: Logic for def Builtin.method() end
- [ruby-core:4302]
-
-Fri Mar 4 12:45:17 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * array.c: replace rb_protect_inspect() and rb_inspecting_p() by
- rb_exec_recursive() in eval.c.
-
- * eval.c (rb_exec_recursive): new function.
-
- * array.c (rb_ary_join): use rb_exec_recursive().
-
- * array.c (rb_ary_inspect, rb_ary_hash): ditto.
-
- * file.c (rb_file_join): ditto.
-
- * hash.c (rb_hash_inspect, rb_hash_to_s, rb_hash_hash): ditto.
-
- * io.c (rb_io_puts): ditto.
-
- * object.c (rb_obj_inspect): ditto
-
- * struct.c (rb_struct_inspect): ditto.
-
-Fri Mar 4 10:15:30 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/set.rb (SortedSet::setup): a hack to shut up warning.
- [ruby-talk:132866]
-
-Fri Mar 4 09:37:12 2005 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * common.mk (install-nodoc, pre-install-doc, post-install-doc):
- fix some omissions.
-
-Fri Mar 4 08:09:12 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/time.rb (Time::strptime): add new function. inspired by
- [ruby-talk:132815].
-
- * lib/parsedate.rb (ParseDate::strptime): ditto.
-
-Fri Mar 4 07:07:00 2005 NARUSE, Yui <naruse@ruby-lang.org>
-
- * ext/nkf/nkf-utf8/nkf.c: follow nkf 1.63
-
-Thu Mar 3 23:24:00 2005 NARUSE, Yui <naruse@ruby-lang.org>
-
- * ext/nkf/nkf-utf8/nkf.c: follow nkf 1.62
-
-Thu Mar 3 18:47:18 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * {bcc32,win32,wince}/Makefile.sub (config.h): check if affected
- when makefiles are modified.
-
- * {bcc32,win32,wince}/Makefile.sub (config.status): add variables
- for tests.
-
- * win32/ifchange.bat: try to update a file only if modified.
-
- * win32/resource.rb: more descriptions.
-
- * common.mk: add {pre,post}-install targets.
-
- * instruby.rb (install?): install particular part.
-
- * bcc32/Makefile.sub (post-install-ext): remove debug information
- files after installation.
-
- * ext/tk/tcltklib.c (ip_rbUpdateCommand, ip_rb_threadUpdateCommand):
- get rid of warnings with Tcl/Tk 8.3 or former.
-
-Thu Mar 3 11:49:51 2005 Kouhei Sutou <kou@cozmixng.org>
-
- * sample/rss/tdiary_plugin/rss-recent.rb: added site information.
-
-Wed Mar 2 19:53:44 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/extmk.rb (parse_args): return false if nothing matched.
-
-Wed Mar 2 17:15:08 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/tcltklib.c (lib_eventloop_core): fix typo
-
-Wed Mar 2 16:59:50 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * eval.c (ruby_native_thread_kill): call pthread_kill() to send a
- signal to ruby's native thread
-
- * ruby.h: add definition of ruby_native_thread_kill()
-
- * signal.c (sigsend_to_ruby_thread): send the signal to ruby's
- native thread ([ruby-dev:25744], [ruby-dev:25754]), and set
- signal mask to the current native thread
-
-Wed Mar 2 16:03:08 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/tcltklib.c: enforce thread-check and exception-handling to
- avoid SEGV trouble.
-
- * ext/tk/tkutil/tkutil.c; fix a bug on converting a SJIS string array
- to a Tcl's list string.
-
- * ext/tk/tcltklib.c: wrap Tcl's original "namespace" command to
- protect from namespace crash.
-
- * ext/tk/lib/multi-tk.rb: enforce exception-handling.
-
- * ext/tk/lib/multi-tk.rb: catch IRB_EXIT to work on irb.
-
- * ext/tk/lib/tk.rb: ditto.
-
- * ext/tk/tcltklib.c: add TclTkLib.mainloop_thread?
-
- * ext/tk/lib/multi-tk.rb: (bug fix) callback returns a value.
-
- * ext/tk/lib/tk/canvas.rb (delete): bug fix when multiple arguments.
-
- * ext/tk/lib/clock.rb: fix 'no method error'.
-
- * ext/tk/lib/clock.rb (self.clicks): accept a Symbol argument.
-
- * ext/tk/lib/variable.rb: be able to set default_value_type; :numeric,
- :bool, :string, :symbol, :list, :numlist or nil (default; same to
- :string). If set a type, TkVariable#value returns a value of the
- type.
-
- * ext/tk/lib/tkextlib/tclx/tclx.rb: add Tk::TclX.signal to warn the
- risk of using TclX extension's 'signal' command.
-
- * ext/tk/sample/irbtk.rb: irb with Ruby/Tk.
-
- * ext/tk/sample/demos-*/anilabel.rb: bug fix on 'show code'
-
- * ext/tk/sample/demos-*/aniwave.rb: new Ruby/Tk animation demo.
-
- * ext/tk/sample/demos-*/pendulum.rb: ditto.
-
- * ext/tk/sample/demos-*/goldberg.rb: ditto.
-
- * ext/tk/sample/demos-*/widget: add entries of animation demos.
-
-Wed Mar 2 12:21:18 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * eval.c (rb_eval): [EXPERIMENTAL] NODE_LAMBDA implemented.
- [ruby-dev:25780]
-
- * node.h (NODE_LAMBDA): for literal Proc object.
-
- * parse.y (expr): interpret mere do...end block as proc object.
-
- * parse.y (primary): ditto, for brace block.
-
-Tue Mar 1 21:16:54 2005 K.Kosako <sndgk393 AT ybb.ne.jp>
-
- * regcomp.c (optimize_node_left): uninitialized member
- (OptEnv.backrefed_status) was used. [ruby-dev:25778]
-
-Tue Mar 1 16:50:37 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * regparse.c: move st_*_strend() functions from st.c. fixed some
- potential memory leaks.
-
-Tue Mar 1 00:40:35 2005 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
-
- * lib/rinda/tuplespace.rb (Rinda::TupleSpace): improved keeper thread.
-
- * test/rinda/test_rinda.rb: ditto.
-
-Mon Feb 28 23:10:13 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
-
- * ext/socket/socket.c (Init_socket): IPv6 is not supported although
- AF_INET6 is defined on bcc32. (rev1.108 again)
-
- * ext/socket/mkconstants.rb: ditto.
-
-Mon Feb 28 21:55:49 2005 K.Kosako <sndgk393 AT ybb.ne.jp>
-
- * ext/strscan/strscan.c (strscan_s_allocate):
- use onig_region_init().
-
- * ext/strscan/strscan.c (adjust_registers_to_matched):
- use onig_region_set().
-
-Mon Feb 28 15:12:06 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
-
- * ext/socket/socket.c (Init_socket): ported more Socket::Constants
- from ruby_1_8, and made it easy to add new constants.
- [ruby-dev:25771]
-
- * ext/socket/depend: ditto.
-
- * ext/socket/mkconstants.rb: ditto. (added)
-
-Mon Feb 28 11:42:23 2005 Ian Macdonald <ian@caliban.org>
-
- * exception error messages updated. [ruby-core:04497]
-
-Mon Feb 28 09:03:09 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * ext/socket/socket.c (Init_socket): add bunch of Socket
- constants. Patch from Sam Roberts <sroberts@uniserve.com>.
- [ruby-core:04409]
-
-Sun Feb 27 05:55:38 2005 Minero Aoki <aamine@loveruby.net>
-
- * parse.y [ripper]: fix typo. [ruby-core:04494]
-
-Sat Feb 26 16:58:20 2005 K.Kosako <sndgk393 AT ybb.ne.jp>
-
- * parse.y, re.c, regex.h, LEGAL, ext/strscan/strscan.c:
- remove oniggnu.h (GNU regex API).
-
-Wed Feb 23 22:08:16 2005 Kazuo Saito <ksaito@uranus.dti.ne.jp>
-
- * st.c, st.h: imported additional file changes on
- Oniguruma 3.7.0.
-
-Wed Feb 23 21:45:29 2005 Kazuo Saito <ksaito@uranus.dti.ne.jp>
-
- * ascii.c, euc_jp.c, oniggnu.h, oniguruma.h, regcomp.c,
- regenc.c, regenc.h, regerror.c, regexec.c, regint.h,
- regparse.c, regparse.h, sjis.c, utf8.c: imported Oni Guruma
- 3.7.0.
-
-Wed Feb 23 15:04:32 2005 akira yamada <akira@ruby-lang.org>
-
- * lib/uri/generic.rb (split_userinfo): should split ":pass" into ""
- and "pass". [ruby-dev:25667]
-
-Wed Feb 23 08:00:18 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * array.c (rb_ary_s_create): no need for negative argc check.
- [ruby-core:04463]
-
- * array.c (rb_ary_unshift_m): ditto.
-
-Wed Feb 23 01:53:29 2005 Shugo Maeda <shugo@ruby-lang.org>
-
- * lib/net/imap.rb (initialize): handle certs correctly. Thanks,
- NABEYA Kenichi.
-
-Wed Feb 23 00:37:34 2005 Kouhei Sutou <kou@cozmixng.org>
-
- * lib/mkmf.rb (mkmf_failed): fixed typo.
-
-Tue Feb 22 23:52:45 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * configure.in, lib/mkmf.rb: use simple commands if available.
-
- * mkconfig.rb: remove autoconf internal variables from rbconfig.rb.
-
- * lib/mkmf.rb (create_makefile): substitute implicit rules in depend
- file.
-
- * {bcc32,win32,wince}/Makefile.sub (COMPILE_RULES, RULE_SUBST):
- include $(topdir) and $(hdrdir) to search path.
-
-Tue Feb 22 23:51:45 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/syck/rubyext.c: get rid of warnings caused by a bug of VC.
-
-Tue Feb 22 23:50:26 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * signal.c (ruby_signal, ruby_nativethread_signal): must be valid as
- expressions, not only statements.
-
-Tue Feb 22 12:54:13 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * eval.c (rb_thread_start_0): update curr_thread before raising
- TAG_THREAD. [ruby-dev:25712]
-
-Tue Feb 22 07:24:57 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * parse.y (parser_yylex): identifier after dot must not be a variable.
-
-Mon Feb 21 18:31:12 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * signal.c: Standard signal handlers ignore signals on non-Ruby native
- threads. When a handler is entried with ruby_signal() (like as the
- standard signal handlers), the handler for the signal is marked as
- it cannot accept non-Ruby native threads. If a handler can treat all
- signals on all native threads, please use ruby_nativethread_signal()
- to entry it.
-
-Sun Feb 20 00:48:48 2005 Tanaka Akira <akr@m17n.org>
-
- * lib/open-uri.rb (URI::FTP#buffer_open): access mechanism
- re-implemented according to RFC 1738.
- reported by Guillaume Marcais. [ruby-talk:131650]
-
-Sat Feb 19 18:46:56 2005 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
-
- * lib/drb/drb.rb (DRbObject#respond_to?): take two arguments.
- [ruby-dev:25722]
-
- * test/drb/drbtest.rb: ditto.
-
-Sat Feb 19 13:52:02 2005 Tanaka Akira <akr@m17n.org>
-
- * lib/open-uri.rb: call OpenSSL::SSL::SSLSocket#post_connection_check
- after connection is made.
-
-Sat Feb 19 13:31:28 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/extmk.rb (extract_makefile): remove no longer existing installed
- files.
-
- * lib/mkmf.rb (install_dirs): return installation directory list.
-
- * lib/mkmf.rb (create_makefile): reverted wrongly removed lines.
-
-Sat Feb 19 01:28:56 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
-
- * ext/bigdecimal/lib/bigdecimal/newton.rb: resolved LoadError.
- [ruby-dev:25685]
-
- * ext/bigdecimal/sample/linear.rb: ditto.
-
- * ext/bigdecimal/sample/nlsolve.rb: ditto.
-
- * ext/bigdecimal/lib/bigdecimal/nlsolve.rb: removed because this file
- is sample script and same file exists in ext/bigdecimal/sample.
-
-Fri Feb 18 17:14:00 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/xmlrpc/parser.rb (XMLRPC::FaultException): make it subclass
- of StandardError class, not Exception class. [ruby-core:04429]
-
-Fri Feb 18 04:06:41 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * parse.y (fcall_gen): lvar(arg) will be evaluated as
- lvar.call(arg) when lvar is a defined local variable. [new]
-
-Thu Feb 17 22:15:34 2005 K.Kosako <sndgk393 AT ybb.ne.jp>
-
- * ext/strscan/strscan.c: calls Oniguruma API directly.
-
-Thu Feb 17 21:53:12 2005 K.Kosako <sndgk393 AT ybb.ne.jp>
-
- * common.mk, LEGAL: remove reggnu.c.
-
-Thu Feb 17 21:53:12 2005 Kazuo Saito <ksaito@uranus.dti.ne.jp>
-
- * gc.c, re.c: now ruby calls Oniguruma API directly, bypassing
- GNU compatible APIs.
-
-Thu Feb 17 20:09:23 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
-
- * lib/drb/drb.rb (DRbServer.default_safe_level): fix typo.
-
-Thu Feb 17 20:09:23 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * test/digest/test_digest.rb: separate test case for each algorithms.
- [ruby-dev:25412]
-
-Thu Feb 17 14:31:52 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * object.c (rb_class_initialize): call inherited method before
- calling initializing block.
-
- * eval.c (rb_thread_start_1): initialize newly pushed frame.
- fixed: [ruby-dev:25707]
-
-Thu Feb 17 13:46:00 2005 Nathaniel Talbott <ntalbott@ruby-lang.org>
-
- * lib/test/unit/collector.rb (collect_file): now deletes paths added
- to $LOAD_PATH instead of restoring it verbatim.
-
- * lib/test/unit/autorunner.rb (AutoRunner.run): fixed so that
- 'ruby -rtest/unit -rtest1 -rtest2 -e0' will use the objectspace
- collector again. Also tried to simplify the calling convention.
-
- * test/runner.rb: adjusted for new AutoRunner semantics.
-
- * lib/test/unit.rb: ditto.
-
-Thu Feb 17 04:21:47 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/open3.rb (Open3::popen3): $? should not be EXIT_FAILURE.
- fixed: [ruby-core:04444]
-
-Thu Feb 17 00:31:21 2005 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
-
- * test/drb/test_drb.rb, ut_safe1.rb: port from 1.8
-
-Thu Feb 17 00:02:27 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * eval.c (is_defined): NODE_IASGN is an assignment.
-
-Wed Feb 16 23:54:14 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * eval.c (rb_thread_start_1): outer block variables wasn't linked to
- threads. fixed: [ruby-dev:25700]
-
-Wed Feb 16 15:11:43 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
-
- * ext/openssl/lib/openssl/ssl.rb (OpenSSL::Nonblock#initialize):
- native win32 platform doesn't have F_GETFL.
-
-Wed Feb 16 02:47:45 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
-
- * ext/openssl/ossl_ssl.c (ossl_ssl_read, ossl_ssl_write): should
- call rb_sys_fail instead of raising SSLError if SSL_ERROR_SYSCALL
- occurred.
-
- * ext/openssl/lib/openssl/buffering.rb (Buffering#fill_rbuff):
- should rescue Errno::EAGAIN.
-
- * ext/openssl/lib/openssl/buffering.rb (Buffering#each): fix typo.
- suggested by Brian Ollenberger.
-
- * ext/openssl/lib/openssl/ssl.rb: set non-blocking flag to the
- underlying IO.
-
-Tue Feb 15 22:14:34 2005 sheepman <sheepman@tcn.zaq.ne.jp>
-
- * ext/readline/readline.c (Readline.readline): use rl_outstream
- and rl_instream. [ruby-dev:25699]
-
-Mon Feb 14 23:58:17 2005 Kouhei Sutou <kou@cozmixng.org>
-
- * lib/rss/parser.rb (RSS::ListenerMixin::tag_end):
- fixed invalid namespace handling bug.
-
-Mon Feb 14 13:12:38 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
-
- * ext/openssl/lib/openssl/ssl.rb
- (OpenSSL::SSL::SSLSocket#post_connection_check): new method.
-
-Mon Feb 14 00:10:17 2005 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
-
- * lib/drb/drb.rb (DRbServer): add default_safe_level, safe_level,
- config[:safe_level] ([druby-ja:120])
-
- * test/drb/test_drb.rb, ut_eval.rb, ut_safe1.rb: ditto.
-
-Sun Feb 13 23:13:46 2005 Kouhei Sutou <kou@cozmixng.org>
-
- * lib/rss/dublincore.rb (RSS::DublicCoreModel#date{,=}): added
- convenient methods.
-
- * lib/rss/0.9.rb (RSS::Rss::Channel#date{,=}): ditto.
-
- * lib/rss/2.0.rb (RSS::Rss::Channel::Item#date{,=}): ditto.
-
- * test/rss/: added tests for the convenient methods.
+ * vm.c (Init_VM): suppress warning: "OPT_BASIC_OPERATIONS" is not
+ defined.
-Sun Feb 13 23:12:47 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Fri Apr 15 23:41:18 2011 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
- * eval.c (rb_thread_start_0): restore prot_tag before rewinding.
+ * ruby.c (proc_options): suppress warning:
+ "ALLOW_DEFAULT_SOURCE_ENCODING" is not defined.
-Sun Feb 13 16:56:52 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
+Fri Apr 15 15:10:29 2011 Akinori MUSHA <knu@iDaemons.org>
- * lib/webrick/cgi.rb (WEBrick::CGI.start): should set reason-phrase
- to the value of status header field. ([ruby-dev:40617])
+ * lib/uri/generic.rb (#route_from_path): Fix a bug where
+ URI('http://h/b/').route_to('http://h/b') wrongly returned './'
+ (should be '../b'). [Bug #4476]
-Sun Feb 13 11:38:40 2005 Kazuo Saito <ksaito@uranus.dti.ne.jp>
+Fri Apr 15 14:58:06 2011 Akinori MUSHA <knu@iDaemons.org>
- * regparse.c (type_cclass_hash): (Thanks Nobu) fixed
- overrun. ([ruby-dev:25676]).
+ * lib/fileutils.rb (FileUtils#touch): Fix corrupted output when
+ mtime is specified in addition to nocreate (and verbose).
+ ref [ruby-dev:43401]
-Sun Feb 13 10:53:08 2005 Kazuo Saito <ksaito@uranus.dti.ne.jp>
+Thu Apr 14 23:43:43 2011 NAKAMURA Usaku <usa@ruby-lang.org>
- * oniggnu.h, oniguruma.h, regcomp.c, st.c: imported
- Oni Guruma 3.6.0.
+ * numeric.c (ruby_float_step): wrong loop condition.
+ fixes [ruby-core:35753], reported by Joey Zhou.
-Sun Feb 13 01:33:19 2005 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
+ * test/ruby/test_range.rb (TestRange#test_step_ruby_core_35753):
+ test above change.
- * lib/erb.rb (ERB::Util.h, u): make it module_function.
+Thu Apr 14 22:48:12 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Sat Feb 12 22:17:11 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * lib/test/unit.rb (Test::Unit::Options#setup_options): set possible
+ values for completion. no conversion is needed.
- * eval.c (TAG_THREAD): to start a new thread.
+ * lib/test/unit.rb (Test::Unit::Runner::Worker#initialize): use
+ positional arguments instead of keyword arguments.
- * eval.c (ruby_init, ruby_options, ruby_cleanup, rb_protect,
- rb_load_protect, rb_thread_start_0): make thread anchor.
+ * lib/test/unit.rb (Test::Unit::Runner#jobs_status): io/console may
+ not be available. use 80 as the last resort if IO#winsize and
+ COLUMNS are unavailable.
- * eval.c (proc_alloc): clone proc object if klass is not Proc or
- created in different thread.
+ * lib/test/unit.rb (Test::Unit::Runner::Worker#died): rename using a
+ verb.
- * eval.c (rb_block_pass): call a function with a block. [new]
+ * lib/test/unit.rb (Test::Unit::Runner#_run_parallel): check if worker
+ is signaled and use its exit status.
- * eval.c (rb_f_throw): raise NameError in main thread.
+ * lib/test/unit.rb (Test::Unit::Runner::Worker#dead): no longer @in
+ and @out are separated.
-Sat Feb 12 17:29:19 2005 Tanaka Akira <akr@m17n.org>
+Thu Apr 14 21:23:29 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * lib/open-uri.rb (OpenURI.open_loop): send authentication only for
- the URI directly specified.
+ * variable.c (rb_autoload_p): search superclasses as same as actual
+ loading. fixes [ruby-core:35679]
-Sat Feb 12 15:07:23 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Thu Apr 14 21:21:06 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * random.c (rand_init): suppress warning.
+ * include/ruby/win32.h (frexp, modf): wrongly declared as pure in
+ mingw math.h.
-Sat Feb 12 14:10:24 2005 Tanaka Akira <akr@m17n.org>
+ * include/ruby/win32.h (ftruncate, truncate): mingw64 misses
+ prototypes.
- * lib/open-uri.rb (OpenURI.open_http): reject userinfo explicitly.
+ * win32/win32.c (rb_w32_read): suppress warning.
-Sat Feb 12 13:54:03 2005 Tanaka Akira <akr@m17n.org>
+Thu Apr 14 19:55:54 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * lib/open-uri.rb: support https if the platform provides CA
- certificates.
+ * lib/fileutils.rb (FileUtils#touch): fix corrupted output when
+ FileUtils.touch(:nocreate => true, :verbose => true) case.
+ The patch was written by Hiroyuki Iwatsuki. [ruby-dev:43401]
-Sat Feb 12 06:18:28 2005 URABE Shyouhei <shyouhei@ice.uec.ac.jp>
+Thu Apr 14 16:01:45 2011 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
- * ext/etc/etc.c (Init_etc): sGroup needs HAVE_ST_GR_PASSWD check
- [ruby-dev:25675]
+ * io.c (rb_f_syscall): suppress warning: "HAVE___SYSCALL" is not
+ defined.
-Fri Feb 11 17:37:50 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
+Thu Apr 14 00:41:09 2011 CHIKANAGA Tomoyuki <nagachika00@gmail.com>
- * ext/openssl/ossl_x509store.c (ossl_x509store_set_default_paths):
- new method OpenSSL::X509::Store#set_default_paths.
+ * thread.c (thread_fd_close_i): IOError exception should be assigned
+ to rb_thread_t::thrown_errinfo.
-Fri Feb 11 11:33:53 2005 Tanaka Akira <akr@m17n.org>
+Wed Apr 13 20:12:26 2011 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
- * lib/open-uri.rb (URI::HTTP#proxy_open): new option supported:
- :http_basic_authentication.
- suggested by Kent Sibilev. [ruby-core:4392]
+ * io.c (rb_io_fdatasync): remove unused variable.
-Fri Feb 11 06:30:07 2005 George Ogata <g_ogata@optushome.com.au>
+Tue Apr 12 20:54:12 2011 Tanaka Akira <akr@fsij.org>
- * misc/ruby-mode.el: ignore parenthesis inside heredoc.
- [ruby-core:04415]
+ * include/ruby/st.h: parenthesize macro arguments.
-Fri Feb 11 04:54:13 2005 Tilman Sauerbeck <tilman@code-monkey.de>
+Tue Apr 12 19:19:50 2011 NARUSE, Yui <naruse@ruby-lang.org>
- * lib/rdoc/generators/html_generator.rb: [ruby-core:04412]
+ * lib/uri/common.rb: avoid race condition. fixes #4572
- * lib/rdoc/generators/ri_generator.rb: ditto.
+Tue Apr 12 18:07:13 2011 TAKAO Kouji <kouji@takao7.net>
-Thu Feb 10 13:52:42 2005 NAKAMURA Usaku <usa@ruby-lang.org>
+ * ext/readline/extconf.rb: --disable-libedit to disable
+ libedit. fixes #4550
- * configure.in, win32/Makefile.sub (LIBS, COMMON_HEADERS): use
- winsock2 on mswin32/mingw.
+Tue Apr 12 10:37:39 2011 NAKAMURA Usaku <usa@ruby-lang.org>
- * ext/socket/extconf.rb: ditto.
+ * include/ruby/win32.h: VC doesn't have ftruncate() and others, but
+ ruby needs HAVE_ macros to use our emulation functions.
+ (fix the problem of 31262)
- * win32/win32.c (StartSockets): ditto.
+Tue Apr 12 01:33:00 2011 Luis Lavena <luislavena@gmail.com>
+ * configure.in: properly evaluate existence of truncate, ftruncate
+ and ftello for MinGW. [ruby-core:35678]
+ * win32/win32.c: rename truncate, ftruncate and ftello to avoid
+ redefinitions.
* win32/win32.h: ditto.
-Thu Feb 10 12:09:16 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/extmk.rb (extract_makefile): default to true if not compiled
- previously.
-
- * ext/extmk.rb (extmake): create dummy makefile if extconf failed.
-
-Thu Feb 10 12:07:10 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * win32/win32.c (init_stdhandle): assign standard file handles.
-
- * bcc32/Makefile.sub (COMMON_LIBS): add libraries included in
- import32.lib.
-
- * lib/mkmf.rb (create_makefile): restrict prefixing with srcdir to
- rule lines, add search path to implicit rules, and set Borland make
- special macros for search path.
-
- * win32/win32.c, win32/win32.h (read): avoid a BCC runtime bug.
-
-Thu Feb 10 00:47:25 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * struct.c (make_struct): fixed: [ruby-core:04402]
-
-Wed Feb 9 16:33:05 2005 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * ext/socket/socket.c (wait_connectable): fixed wrong condition.
-
-Wed Feb 9 14:42:28 2005 URABE Shyouhei <shyouhei@ice.uec.ac.jp>
-
- * eval.c (scope_dup): add volatile not to optimize tbl.
-
-Wed Feb 9 10:02:02 2005 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * ext/tk/make-tkutil, ext/tk/tkutil/subconf.rb: no longer used.
-
- * ext/tk/tkutil/extconf.rb: need to compile tkutil. [ruby-dev:25607]
-
-Wed Feb 9 08:07:08 2005 Paul Duncan <pabs@pablotron.org>
-
- * ext/curses/curses.c (window_color_set): [ruby-core:04393]
-
-Tue Feb 8 23:48:36 2005 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
-
- * lib/drb/drb.rb: reject :instance_eval, :class_eval, :module_eval
- [druby-ja:117]
-
-Tue Feb 8 22:38:28 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * keywords, parse.y: separate EXPR_VALUE from EXPR_BEG.
- fixed: [ruby-core:04310], [ruby-core:04368]
-
-Tue Feb 8 13:06:12 2005 Sam Roberts <sroberts@uniserve.com>
-
- * ext/socket/socket.c (Init_socket): SO_REUSEPORT added.
- [ruby-talk:130092]
-
-Tue Feb 8 00:19:02 2005 Tanaka Akira <akr@m17n.org>
-
- * lib/resolv.rb (Resolv::DNS::Name#subdomain_of?): new method.
- (Resolv::DNS::Name#inspect): ditto.
- Suggested by Sam Roberts. [ruby-talk:129086]
-
-Mon Feb 7 23:14:11 2005 Tanaka Akira <akr@m17n.org>
-
- * io.c (io_getc): flush rb_stdout before read from stdin, which is
- connected to a tty. [ruby-core:4378]
-
- * rubyio.h (FMODE_TTY): renamed from FMODE_LINEBUF.
-
-Mon Feb 7 10:06:30 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * object.c: [ruby-doc:818]
-
-Mon Feb 7 02:13:05 2005 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * ext/socket/extconf.rb (sockaddr_storage): winsock2.h have the
- definition of struct sockaddr_storage, but socket.c doesn't
- include it because this version of ruby still has binary level
- compatibility with winsock1.
-
-Mon Feb 7 01:22:50 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/extmk.rb (extract_makefile): extract previously collected
- informations from existing Makefile.
-
- * ext/socket/extconf.rb: check if getaddrinfo() works fine only when
- wide-getaddrinfo option is not given. fixed: [ruby-dev:25422]
-
- * ext/tk/extconf.rb: separate tkutil configuration.
-
- * lib/mkmf.rb ($extmk): check if under ext directory.
-
- * lib/mkmf.rb (Logging.postpone): allow recursive operation.
-
- * lib/mkmf.rb (try_constant): make sure if really a constant, reduce
- the number of times of compile.
-
- * lib/mkmf.rb (have_macro, have_var, byte_order): new functions.
-
- * lib/mkmf.rb (find_library): allow directory list with separators.
-
- * lib/mkmf.rb (arg_config): manage provided configuration options.
-
- * lib/mkmf.rb (dir_config): accept arrays of directory names as
- default values.
-
- * lib/mkmf.rb (with_cppflags, with_cflags, with_ldflags): keep flags
- modified if the block returned true.
-
-Sun Feb 6 19:20:05 2005 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * eval.c (stack_extend): add prototype because VC++8 doesn't
- accept __declspec(noinline) with K&R style function definitions.
-
-Sun Feb 6 13:56:19 2005 Tadayoshi Funaba <tadf@dotrb.org>
-
- * lib/date.rb (new_with_hash): changed messages of exception.
-
- * lib/date/format.rb (str[fp]time): undocumented conversion
- specifications %[1-3] are now deprecated.
-
-Sun Feb 6 11:27:37 2005 Tanaka Akira <akr@m17n.org>
-
- * ext/dl/dl.c (Init_dl): function declaration should precede
- statements before C99.
-
-Sun Feb 6 03:24:20 2005 Tanaka Akira <akr@m17n.org>
-
- * lib/resolv.rb (Resolv::DNS::Resource::TXT): multiple strings was not
- handled.
- (Resolv::DNS::Resource::TXT#strings): new method to return all
- strings.
- (Resolv::DNS::Message::MessageEncoder#put_string_list): new method.
- (Resolv::DNS::Message::MessageDecoder#get_string_list): ditto.
- based on [ruby-talk:129732] by Sam Roberts.
-
-Sat Feb 5 02:24:06 2005 Minero Aoki <aamine@loveruby.net>
-
- * test/ripper/test_scanner_events.rb: fix test.
-
-Fri Feb 4 18:44:35 2005 Minero Aoki <aamine@loveruby.net>
-
- * ext/ripper/lib/ripper/lexer.rb: last Lexer fix was incomplete;
- test all green.
-
-Fri Feb 4 15:57:06 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * parse.y (open_args): fix too verbose warnings for the space
- before argument parentheses. [ruby-dev:25492]
-
- * parse.y (parser_yylex): ditto.
-
-Fri Feb 4 14:33:25 2005 Minero Aoki <aamine@loveruby.net>
-
- * ext/ripper/lib/ripper/filter.rb: ripper/tokenizer ->
- ripper/lexer. [ruby-dev:25632]
-
-Fri Feb 4 00:24:15 2005 Kouhei Sutou <kou@cozmixng.org>
-
- * lib/rss: supported Image module.
- http://web.resource.org/rss/1.0/modules/image/
-
-Thu Feb 3 23:42:36 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/stringio/stringio.c (strio_close, strio_close_read, strio_close_write):
- should return nil instead of self as well as IO. [ruby-dev:25623]
-
- * ext/stringio/stringio.c (strio_extend, strio_putc): fill with zero
- extended portion. [ruby-dev:25626]
-
-Thu Feb 3 16:12:57 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * parse.y (parser_yylex): the first expression in the parentheses
- should not be a command. [ruby-dev:25492]
-
-Thu Feb 3 03:31:20 2005 NARUSE, Yui <naruse@ruby-lang.org>
-
- * ext/nkf/nkf-utf8/nkf.c: follow original v 1.57
-
- * ext/nkf/nkf-utf8/utf8tbl.c: follow original v 1.8
-
- * ext/nkf/nkf-utf8/config.h: follow original v 1.7
-
-Wed Feb 2 23:52:53 2005 sheepman <sheepman@tcn.zaq.ne.jp>
-
- * ext/stringio/stringio.c (strio_truncate): should MEMZERO an extended
- part. [ruby-dev:25618]
-
-Wed Feb 2 21:56:01 2005 Kouhei Sutou <kou@cozmixng.org>
-
- * lib/rss/rss.rb (RSS::Element#convert): added.
-
- * lib/rss/rss.rb: convert -> need_convert.
-
- * lib/rss/1.0.rb: ditto.
-
- * lib/rss/0.9.rb: ditto.
-
- * lib/rss/2.0.rb: ditto.
-
- * lib/rss/trackback.rb: ditto.
-
-Wed Feb 2 03:30:58 2005 Minero Aoki <aamine@loveruby.net>
-
- * ext/ripper/lib/ripper/tokenizer.rb -> lexer.rb.
-
- * ext/ripper/lib/ripper/lexer.rb: new method Ripper.slice.
- [experimental]
-
- * ext/ripper/lib/ripper/sexp.rb: new file. [experimental]
-
- * ext/ripper/lib/ripper.rb: require ripper/lexer and ripper/sexp.
-
-Tue Feb 1 21:49:24 2005 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
-
- * lib/drb/drb.rb (DRb::DRbObject#respond_to?): check marshal_dump and
- _dump.
-
-Tue Feb 1 00:20:23 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * Makefile.in, configure.in: made EXTOUT configurable.
-
- * ext/extmk.rb (extmake), lib/mkmf.rb: keep topdir as relative style.
-
- * lib/mkmf.rb: make extensions in depth order. [ruby-dev:25522]
-
- * configure.in (aix): fix linker flags on AIX. [ruby-talk:125460]
-
-Mon Jan 31 13:16:39 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/extconf.rb: add tkutil configuration step (remove old schema)
-
- * ext/tk/depend: remove the information of tkutil
-
- * ext/tk/make-tkutil: sub-part of Makefile to compile tkutil
-
- * ext/tk/tkutil/tkutil.c: move tkutil.c to subdirectory
-
- * ext/tk/tkutil/subconf.rb: configuration file for tkutil.c
-
- * ext/tk/tkutil/depend: ditto
-
-Mon Jan 31 13:13:35 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/tcltklib.c: add invalid namespace check
-
- * ext/tk/lib/multi-tk.rb: add invalid_namespace? method
-
- * ext/tk/lib/remote-tk.rb: ditto
-
-Mon Jan 31 10:29:18 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/irb/context.rb (IRB::Context::initialize): [ruby-core:04330]
-
-Mon Jan 31 09:44:03 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * object.c (Init_Object): remove Object#type. [ruby-core:04335]
-
-Sat Jan 29 09:42:12 2005 Sam Roberts <sroberts@uniserve.com>
-
- * lib/resolv.rb (Resolv::DNS::Resource::IN::SRV): Added RFC2782 SRV
- resource record for specifying location of services.
-
-Sat Jan 29 00:10:33 2005 Kazuo Saito <ksaito@uranus.dti.ne.jp>
-
- * ascii.c, euc_jp.c, hash.c, oniggnu.h, oniguruma.h, regcomp.c,
- regenc.c, regenc.h, regerror.c, regexec.c, reggnu.c, regint.h,
- regparse.c, regparse.h, sjis.c, st.c, st.h, utf8.c: imported
- Oni Guruma 3.5.4.
-
-Fri Jan 28 17:16:55 2005 Tanaka Akira <akr@m17n.org>
-
- * lib/resolv.rb (Resolv::DNS::Config.parse_resolv_conf):
- parse options line for ndots option.
- (Resolv::Hosts#lazy_initialize): return self.
- (Resolv::DNS#lazy_initialize): ditto.
- (Resolv::DNS::Config#lazy_initialize): ditto.
- Suggested by Sam Roberts.
-
-Thu Jan 27 17:15:03 2005 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * ext/tk/extconf.rb: support new tk scheme on bccwin32.
- fixed: [ruby-dev:25546]
-
-Thu Jan 27 13:18:03 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * st.c (st_foreach): report success/failure by return value.
- [ruby-Bugs-1396]
-
-Thu Jan 27 00:12:19 2005 Minero Aoki <aamine@loveruby.net>
-
- * test/fileutils/test_fileutils.rb (setup): support BSD style
- directory group inheritance (again).
-
-Thu Jan 27 00:02:40 2005 Minero Aoki <aamine@loveruby.net>
-
- * test/fileutils/test_fileutils.rb (setup): support BSD style
- directory group inheritance. [ruby-dev:25440]
-
- * test/fileutils/fileasserts.rb (assert_same_entry): show entry
- difference.
-
-Wed Jan 26 17:12:50 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * parse.y: forgot to initialize parser struct. [ruby-dev:25492]
+Mon Apr 11 21:51:52 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * parse.y (parser_yylex): no tLABEL on EXPR_BEG.
- [ruby-talk:127711]
+ * io.c: revert r31230. Because it made a regression.
+ [ruby-core:35631]
-Wed Jan 26 14:12:58 2005 NAKAMURA Usaku <usa@ruby-lang.org>
+Mon Apr 11 21:49:18 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * ext/Setup*: remove tcltklib.
+ * test/ruby/test_io.rb: Added TestIO#test_cross_thread_close_stdio
+ and TestIO#test_cross_thread_close_fd.
+ The patch was written by Eric Wong. [ruby-core:35669]
-Wed Jan 26 12:45:16 2005 NAKAMURA Usaku <usa@ruby-lang.org>
+Mon Apr 11 21:15:54 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * ext/tk/extconf.rb: support new tk scheme on mswin32.
- fixed: [ruby-dev:25535]
+ * file.c (rb_group_member): kill 256K of stack usage.
+ the patch was written by Eric Wong. [ruby-core:35699]
-Wed Jan 26 10:45:19 2005 NAKAMURA Usaku <usa@ruby-lang.org>
+Mon Apr 11 07:24:13 2011 Eric Hodel <drbrain@segment7.net>
- * win32/win32.c (flock_winnt, flock_win95): unlock file even if
- LOCK_NB is specified.
+ * ext/openssl/ossl.c: Fix typo, document version constants.
-Tue Jan 25 23:10:48 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+Sun Apr 10 22:23:45 2011 Tanaka Akira <akr@fsij.org>
- * ext/tk: merge tcltklib for Ruby/Tk installation control
+ * include/ruby/ruby.h: parenthesize macro arguments.
- * ext/tcltklib: remove
+Sat Apr 9 23:31:47 2011 Shota Fukumori <sorah@tubusu.net>
-Tue Jan 25 17:05:15 2005 NAKAMURA Usaku <usa@ruby-lang.org>
+ * ext/stringio/stringio.c (strio_each, strio_readlines):
+ Use `NUM2LONG` instead of `FIX2INT`. Fixes [ruby-dev:43395].
- * ruby.c (proc_options): correct -T option in RUBYOPT.
- fixed: [ruby-dev:25512]
+Sat Apr 9 23:22:27 2011 Shota Fukumori <sorah@tubusu.net>
-Tue Jan 25 14:05:52 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tcltklib/tcltklib.c: fix SEGV bug; trouble on canceling remained
- after scripts [ruby-dev:25479]: NULL current namespace when deleting
- Tk interpreter [ruby-talk:126225]
-
- * ext/tcltklib/extconf.rb: bug fix; TCL_ENABLE_THREAD flag is inverted
- [ruby-talk:126360]
-
- * ext/tcltklib/extconf.rb: add yet another native-thread check
-
- * ext/tk/tkutil.c: fix SEGV bug; NULL string pointer when finalize
- Ruby interpreter
-
- * ext/tk/lib/multi-tk.rb: avoid warning for deleted safeTk ip frame
-
- * ext/tk/lib/tk/bindtag.rb: bug fix; new method of named bindtag
- doesn't return the created object [ruby-dev:25479]
-
- * ext/tk/lib/tk/menu.rb: bug on treating arguments [ruby-dev:25479]
-
- * ext/tk/lib/tk.rb: bug fix; cannot accept a callback ID string for
- a command argument [ruby-dev:25479]
-
- * ext/tk/lib/multi-tk.rb: ditto
-
- * ext/tk/lib/tk/*.rb: ditto
-
- * ext/tk/lib/tkextlib/*.rb: ditto
-
- * ext/tk/sample/demos-jp/anilabel.rb: new demo script
-
- * ext/tk/sample/demos-en/anilabel.rb: ditto
-
- * ext/tk/sample/tkHTML/ss.rb: local variable scope bug fix
- [ruby-dev:25479]
-
-Mon Jan 24 16:00:53 2005 NARUSE, Yui <naruse@ruby-lang.org>
-
- * ext/nkf/lib/kconv.rb (guess_old): not use NKF.guess_old
- but NKF.guess1. fixed: [ruby-dev:25491]
-
-Mon Jan 24 15:44:25 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * document updates - [ruby-core:04296], [ruby-core:04301],
- [ruby-core:04302], [ruby-core:04307]
-
-Sun Jan 23 12:38:01 2005 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
-
- * lib/soap/wsdlDriver.rb: from 1.5.3-ruby1.8.2, operation which has
- capitalized name (such as KeywordSearchRequest in AWS) is defined as
- a method having uncapitalized name. (converted with
- GenSupport.safemethodname to handle operation name 'foo-bar'). it
- introduced serious incompatibility; in the past, it was defined as a
- capitalized.
-
- define capitalized method as well under that circumstance.
-
-Sun Jan 23 05:24:42 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
-
- * ext/openssl/ossl_ocsp.c (ossl_ocspreq_to_der): should call
- GetOCSPReq at first.
-
-Sat Jan 22 22:59:08 2005 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
-
- * lib/drb/ssl.rb (accept): rescue SSLError. [druby-ja:110]
-
-Sat Jan 22 22:27:28 2005 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
-
- * lib/drb/unix.rb: fail if UNIXFileOwner is set. [druby-ja:111]
-
-Fri Jan 21 20:07:02 2005 Tanaka Akira <akr@m17n.org>
-
- * lib/resolv.rb (Resolv::DNS::Config.resolv): don't raise ResolvError.
- reported by Sam Roberts. [ruby-talk:127133]
-
-Fri Jan 21 17:09:44 2005 Shugo Maeda <shugo@ruby-lang.org>
-
- * lib/net/imap.rb (decode_utf7): use pack("U*") to encode UTF-8.
-
- * lib/net/imap.rb (encode_utf7): use unpack("U*") to decode UTF-8.
-
- * test/net/imap/test_imap.rb: added tests for Net::IMAP.
-
-Fri Jan 21 16:58:10 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * dir.c (rb_push_glob): should work for NUL delimited patterns.
-
- * dir.c (rb_glob2): should aware of offset in the pattern.
-
-Fri Jan 21 13:58:37 2005 Shugo Maeda <shugo@ruby-lang.org>
-
- * lib/net/imap.rb (u8tou16): fixed typo. fixed: [ruby-list:40546]
-
-Fri Jan 21 00:37:09 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
-
- * ext/syck/rubyext.c (syck_parser_bufsize_set): avoid VC++ warning
- "local variable 'size' used without having been initialized".
-
-Thu Jan 20 11:42:02 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * string.c (rb_str_new4): should propagate taintedness.
-
- * env.h: rename member names in struct FRAME; last_func -> callee,
- orig_func -> this_func, last_class -> this_class.
-
- * struct.c (rb_struct_set): use original method name, not callee
- name, to retrieve member slot. [ruby-core:04268]
-
- * time.c (time_strftime): protect from format modification from GC
- finalizers.
-
-Thu Jan 20 02:01:10 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * object.c (Init_Object): remove rb_obj_id_obsolete()
-
-Wed Jan 19 18:02:19 2005 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * lib/ipaddr.rb (to_s, test_to_s): too many colons with some cases.
-
-Wed Jan 19 01:16:30 2005 Tanaka Akira <akr@m17n.org>
-
- * lib/resolv.rb (Resolv::DNS::Config.parse_resolv_conf): ignore
- domain and search directive without an argument.
- reported by Sam Roberts. [ruby-talk:126781]
-
-Mon Jan 17 23:33:46 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * configure.in (aix): fix typo. [ruby-talk:126401]
-
-Mon Jan 17 07:08:51 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/readline/readline.c: suppress warnings.
-
- * lib/irb/extend-command.rb (IRB::ContextExtender.def_extend_command):
- ditto.
-
- * lib/irb/ext/history.rb (IRB::Context::set_last_value): ditto.
-
- * lib/irb/ext/history.rb (IRB::Context::eval_history): ditto.
-
- * lib/irb/locale.rb (IRB::Locale::real_load): ditto.
-
- * lib/irb/slex.rb (SLex::Node::create_subnode): remove garbage.
-
-Mon Jan 17 00:09:42 2005 WATANABE Hirofumi <eban@ruby-lang.org>
-
- * lib/uri/common.rb (PORT): typo fix. fixed: [ruby-core:04256]
-
-Sat Jan 15 14:57:22 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ruby.c (proc_options): ignore trailing CRs at the end of short
- options as well as long options. fixed: [ruby-core:04232]
-
-Sat Jan 15 13:44:22 2005 Kouhei Sutou <kou@cozmixng.org>
-
- * lib/rss/rss.rb (RSS::VERSION): 0.1.2 -> 0.1.3.
-
- * lib/rss/rss.rb: accept inheritance. [ruby-talk:126104]
-
-Wed Jan 12 12:29:28 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * eval.c (rb_mod_define_method): incomplete subclass check.
- [ruby-dev:25464]
-
- * class.c (rb_make_metaclass): class of metaclasses should be
- plain Class. [ruby-list:40524]
-
-Tue Jan 11 20:58:52 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * io.c (remain_size): use buffered data instead of unreading to avoid
- inconsistency of text mode. fixed: [ruby-dev:25446]
-
-Tue Jan 11 09:37:53 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
-
- * numeric.c (Init_Numeric): turn off floating point exceptions
- on bcc32. "1e300".to_f had crashed by overflow.
-
-Mon Jan 10 15:28:51 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
-
- * lib/webrick/cgi.rb (WEBrick::CGI::Socket#request_line): should
- escape SCRIPT_NAME and PATH_INFO before being parsed as a URI.
-
- * lib/webrick/httputils.rb (WEBrick::HTTPUtils#escape_path): add
- new method to escape URI path component.
-
- * lib/webrick/ssl.rb (WEBrick::Config::SSL): the default value
- of :SSLEnable is false.
-
- * test/webrick/{test_cgi.rb,webrick.cgi}: new file.
-
- * test/webrick/utils.rb: require "webrick/https.h".
-
-Mon Jan 10 01:22:55 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * gc.c (rb_data_object_alloc): klass may be NULL.
- [ruby-list:40498]
-
-Sun Jan 9 14:12:17 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * io.c (rb_f_select): IO list could be altered. [ruby-dev:25312]
-
-Sun Jan 9 04:08:40 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
-
- * test/webrick/test_server.rb (test_daemon): delete an assertion
- which has possibility to fail by race condition.
-
-Sun Jan 9 03:22:46 2005 Minero Aoki <aamine@loveruby.net>
-
- * test/fileutils/test_fileutils.rb (test_copy_entry): copy_entry
- copies only file type, not mtime. [ruby-dev:25383]
-
-Sat Jan 8 04:38:47 2005 why the lucky stiff <why@ruby-lang.org>
-
- * lib/yaml.rb: Kernel#y requires an argument.
-
-Fri Jan 7 21:12:29 2005 TAMURA Takashi <sheepman@tcn.zaq.ne.jp>
-
- * random.c (rand_init): use ALLOC_N instead of ALLOCA_N
- [ruby-dev:25426]
-
-Fri Jan 7 20:01:31 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
-
- * lib/webrick/httpproxy.rb (WEBrick::HTTPProxyServer#proxy_service):
- should delete trailing LF from the result of pack("m*").
-
- * lib/webrick/httpproxy.rb (WEBrick::HTTPProxyServer#proxy_connect):
- - should delete trailing LF from the result of pack("m*").
- - clear Request-Line not to send the response by HTTPServer#run.
-
- * lib/webrick/httputils (WEBrick::HTTPUtils.parse_qvalues):
- refine regexp (and change the name of a local variable).
-
- * lib/webrick/server.rb (WEBrick::Daemon.start): prepared stdio
- don't allow changing its mode.
-
- * test/webrick/*, sample/webrick/httpproxy.rb: add new files.
-
-Fri Jan 7 18:03:35 2005 Tanaka Akira <akr@m17n.org>
-
- * gc.c (mark_locations_array): avoid core dump with -O3.
- [ruby-dev:25424]
-
-Thu Jan 6 20:29:18 2005 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * ext/zlib/zlib.c (zstream_end): should return value.
-
-Thu Jan 6 19:59:03 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
-
- * win32/win32.c (rb_w32_close): didn't close socket handle.
- [ruby-dev:25414]
-
- * win32/win32.c (rb_w32_open_osfhandle): bcc32's _open_osfhandle
- never set EMFILE.
-
-Thu Jan 6 17:22:41 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
-
- * random.c (random_seed): O_NONBLOCK isn't defined on some
- platforms. [ruby-dev:25417]
-
-Thu Jan 6 13:45:35 2005 Tanaka Akira <akr@m17n.org>
-
- * lib/time.rb: recognize +00:00 and GMT as a localtime.
-
-Thu Jan 6 07:58:28 2005 Dave Thomas <dave@pragprog.com>
-
- * lib/rdoc/usage.rb (RDoc::RDoc.usage_no_exit): Allow for colons
- in path names on DOS machines. (thanks to Johan Nilsson)
-
-Thu Jan 6 00:02:35 2005 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
-
- * test/rinda/test_rinda.rb: use MockClock.sleep instead of Kernel.sleep
- [ruby-dev:25387]
-
-Wed Jan 5 20:16:32 2005 Tanaka Akira <akr@m17n.org>
-
- * random.c (limited_big_rand): didn't work if SIZEOF_BDIGITS == 2.
- [ruby-dev:25408]
-
- * random.c (random_seed): refined.
-
-Wed Jan 5 16:39:54 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
-
- * parse.y (BITSTACK_POP): workaround for bcc32 compiler's bug.
- shift assignment operator '>>=' for __int64 in struct may
- generate collapsed code. [ruby-dev:25342]
-
- * win32/win32.[ch]: failed to compile on bcc32 (and probably wince)
- [ruby-dev:25306]
-
-Wed Jan 5 12:49:39 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * eval.c (rb_thread_initialize): Thread objects cannot be initialized
- again. fixed: [ruby-core:04067]
-
-Wed Jan 5 02:30:11 2005 Tanaka Akira <akr@m17n.org>
-
- * random.c (init_by_array): imported from mt19937ar-cok.tgz.
- (genrand_int32): ditto.
- (genrand_real): replaced with genrand_res53 in mt19937ar-cok.
- (rand_init): support bignum for longer seed.
- (random_seed): generate longer seed.
- (make_mask): new function.
- (limited_rand): ditto.
- (limited_big_rand): ditto.
- (rb_f_rand): call limited_rand and limited_big_rand.
- [ruby-dev:25403]
-
-Tue Jan 4 23:25:29 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * bignum.c (rb_big_rand): should return positive random number.
- [ruby-dev:25401]
-
-Tue Jan 4 21:25:43 2005 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
-
- * test/drb/{test_drbssl.rb,test_drbunix.rb,ut_drb.rb}: use
- DRbService.ext_service. reduce sleep.
-
-Mon Jan 3 14:01:54 2005 Tanaka Akira <akr@m17n.org>
-
- * random.c (random_seed): don't use /dev/urandom if it is not
- character device.
-
-Mon Jan 3 11:37:42 2005 Tanaka Akira <akr@m17n.org>
-
- * random.c (random_seed): use /dev/urandom if available.
- [ruby-dev:25392]
-
-Tue Jan 4 11:15:29 2005 TAMURA Takashi <sheepman@tcn.zaq.ne.jp>
-
- * bignum.c (rb_big_rand): do not use rb_big_modulo to generate
- random bignums. [ruby-dev:25396]
-
-Mon Jan 3 11:03:37 2005 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
-
- * test/drb/test_drb.rb: move TestDRbReusePort to new file.
- [ruby-dev:25238]
-
- * test/drb/drbtest.rb: change timeout.
-
- * test/drb/ignore_test_drb.rb: new file.
-
-Mon Jan 3 07:27:46 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
-
- * lib/webrick/httpauth/htpasswd.rb (WEBrick::Htpasswd#reload):
- raise NotImplementedError if password is encrypted by digest
- algorithms. This patch is contributed by sheepman. [ruby-list:40467]
-
- * lib/webrick/httpauth/digestauth.rb
- (WEBrick::HTTPAuth::DigestAuth#_authenticate): fix digest calculation.
- This patch is contributed by sheepman. [ruby-list:40482]
-
- * lib/webrick/{httpauth.rb,httpauth/basicauth.rb,httpproxy.rb}: use
- pack/unpack-template char "m" instead of lib/base64.rb to do base64
- encoding/decoding. fixed: [ruby-dev:25336]
-
- * test/webrick/test_httpauth.rb: new file.
-
-Sun Jan 2 15:42:10 2005 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
-
- * lib/drb/drb.rb: add lazy stop_service.
-
- * lib/drb/extserv.rb: ditto.
-
-Sun Jan 2 01:17:17 2005 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
-
- * test/drb/drbtest.rb: add method DRbService.ext_service.
-
- * test/drb/test_drb.rb: ditto.
-
- * test/drb/test_drbssl.rb: ditto.
-
-Sat Jan 1 20:23:02 2005 Tanaka Akira <akr@m17n.org>
-
- * io.c (argf_readpartial): new method ARGF.readpartial.
- (io_getpartial): extracted from io_readpartial.
- (io_readpartial): call io_getpartial.
-
-Sat Jan 1 17:44:54 2005 Minero Aoki <aamine@loveruby.net>
-
- * lib/net/http.rb (each_capitalized): should join header field
- value. This patch is contributed sheepman [ruby-list:40478]
-
- * test/net/http/test_httpheader.rb: test it.
-
-Sat Jan 1 16:21:29 2005 Minero Aoki <aamine@loveruby.net>
-
- * lib/fileutils.rb (copy_stream): use read/write instead of
- sysread/syswrite, which allows duck typing. [ruby-dev:25369]
-
- * lib/fileutils.rb (copy_stream): does NOT support nonblocking IO.
- [ruby-dev:25370]
-
- * lib/fileutils.rb (copy_entry): could not copy symlink.
-
- * test/fileutils/test_fileutils.rb: test copy_entry, copy_file,
- copy_stream.
-
-Sat Jan 1 04:20:23 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
-
- * ext/openssl/ossl_ns_spki.c (ossl_spki_set_challenge): should call
- StringValue before GetSPKI. fixed: [ruby-dev:25359].
-
-Sat Jan 1 01:13:28 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * variable.c (rb_autoload): [ruby-dev:25373]
-
-Fri Dec 31 14:10:43 2004 Dave Thomas <dave@pragprog.com>
-
- * lib/rdoc/ri/ri_formatter.rb (RI::TextFormatter::display_flow_item):
- Fix problem if heading contains formatting.
-
-Fri Dec 31 00:08:02 2004 Tanaka Akira <akr@m17n.org>
-
- * configure.in (HAVE_RLIM_T): removed because not used.
-
-Thu Dec 30 22:45:39 2004 Tanaka Akira <akr@m17n.org>
-
- * rubyio.h: don't deprecate rb_read_check.
-
- * io.c (STDIO_READ_DATA_PENDING): reverted from old READ_DATA_PENDING
- to check stdio read buffer.
- (rb_read_check): use STDIO_READ_DATA_PENDING.
- (rb_read_pending): ditto.
- (rb_getc): ditto.
-
-Thu Dec 30 05:39:35 2004 Minero Aoki <aamine@loveruby.net>
-
- * parse.y: eliminate unused members in struct parser_params.
- [ruby-dev:25258] (again)
-
- * parse.y: make parser_new() static.
-
-Thu Dec 30 00:41:42 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * eval.c (svalue_to_avalue): [ruby-dev:25366]
-
- * string.c (rb_str_justify): [ruby-dev:25367]
-
-Wed Dec 29 11:07:07 2004 Dave Thomas <dave@pragprog.com>
-
- * lib/rdoc/generators/template/html/kilmer.rb: Update to use new
- sections.
-
-Tue Dec 28 22:31:46 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * string.c (rb_str_justify): create buffer string after argument type
- conversion. fixed: [ruby-dev:25341]
-
-Tue Dec 28 17:18:17 2004 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * lib/net/telnet.rb (preprocess): remove NULL unless binmode.
- fixed: [ruby-list:40320]
-
-Tue Dec 28 15:41:48 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/nkf/nkf-utf8/nkf.c (reinit): should initialize all static
- variables. fixed: [ruby-list:40445]
-
-Tue Dec 28 15:25:20 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/nkf/lib/kconv.rb (Kconv::RegexpEucjp): second byte is up to
- 0xfe.
-
- * ext/nkf/lib/kconv.rb (Kconv#kconv): should handle UTF8 and UTF16
- properly.
-
-Tue Dec 28 13:35:20 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/zlib/zlib.c (rb_deflate_s_deflate, rb_inflate_s_inflate): ensure
- freeing internal zstreams. fixed: [ruby-dev:25309]
-
- * ext/zlib/zlib.c (rb_deflate_init_copy): replace rb_deflate_clone.
-
-Mon Dec 27 20:02:14 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tcltklib/tcltklib.c: fix SEGV bug when deleting Tk interp
-
- * ext/tk/lib/multi-tk.rb: ditto
-
-Mon Dec 27 16:54:05 2004 GOTOU Yuuzou <gotoyuzo@notwork.org>
-
- * ext/openssl/ossl_x509name.c (Init_ossl_x509name): should use
- rb_hash_new to get exactly a Hash. fix [ruby-dev:25325].
-
-Mon Dec 27 15:29:12 2004 Minero Aoki <aamine@loveruby.net>
-
- * test/fileutils/test_fileutils.rb (cp_r): tested wrong file name.
- [ruby-dev:25339]
-
-Mon Dec 27 15:15:18 2004 Minero Aoki <aamine@loveruby.net>
-
- * lib/fileutils.rb (mv): should raise error when moving a
- directory to the (empty) directory. [ruby-talk:124368]
-
- * lib/fileutils.rb (mv): wrongly did not overwrite file on Win32
- platforms.
-
-Mon Dec 27 14:36:20 2004 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * process.c (NUM2RLIM, RLIM2NUM): Without SIZEOF_RLIM_T is not error.
- fixed: [ruby-dev:25346]
-
-Sun Dec 26 16:21:39 2004 Shugo Maeda <shugo@ruby-lang.org>
-
- * lib/net/imap.rb (Net::IMAP::PlainAuthenticator): added a new class
- to support the PLAIN authentication mechanism. Thanks, Benjamin
- Stiglitz.
-
-Sat Dec 25 01:28:23 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * io.c (rb_f_select): [ruby-dev:25312]
-
-Fri Dec 24 23:27:18 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/lib/tk/image.rb: TkPhotoImage#cget bug fix
-
-Fri Dec 24 03:06:13 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * io.c (io_reopen, rb_io_reopen): prohibit to change access mode for
- special IO ports. [ruby-dev:25225]
-
- * io.c (next_argv): reduce use of stdio.
-
-Fri Dec 24 02:22:53 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/syck/rubyext.c (syck_loader_transfer): check type conversion.
-
- * ext/syck/rubyext.c (syck_parser_assign_io, rb_new_syck_node): duck
- typing.
-
- * ext/syck/rubyext.c (syck_parser_s_alloc, syck_parser_initialize):
- allocation framework.
-
- * ext/syck/rubyext.c (syck_emitter_s_alloc, syck_emitter_initialize):
- ditto.
-
-Fri Dec 24 01:21:00 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/lib/tkextlib/blt.rb: add BLT extension support
-
- * ext/tk/lib/tkextlib/blt/*.rb: ditto
-
- * ext/tk/lib/tkextlib/blt/tile/*.rb: ditto
-
-Thu Dec 23 23:43:24 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * process.c (proc_setgroups): check if the argument length is
- modified. fixed: [ruby-dev:25285]
-
- * process.c (SIZEOF_RLIM_T): err if size of rlim_t is not set.
-
-Thu Dec 23 19:08:41 2004 Tanaka Akira <akr@m17n.org>
-
- * rubyio.h: rename FMODE_UNSEEKABLE to FMODE_DUPLEX.
-
- * io.c (io_check_tty): extracted function to set FMODE_LINEBUF and
- FMODE_DUPLEX.
-
-Thu Dec 23 13:13:33 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tcltklib/tcltklib.c: define TclTkLib::COMPILE_INFO and
- RELEASE_DATE
-
- * ext/tcltklib/extconf.rb: ditto
-
- * ext/tk/tkutil.c: define TkUtil::RELEASE_DATE
-
- * ext/tk/lib/tk.rb: define Tk::RELEASE_DATE
-
-Thu Dec 23 00:16:32 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * configure.in (bsdi): use $(CC) for LDSHARED. fixed [ruby-dev:25270]
-
-Wed Dec 22 11:14:55 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * io.c (rb_io_mode_modenum): replace O_ACCMODE with O_RDWR.
- fixed: [ruby-dev:25273]
-
-Wed Dec 22 08:34:32 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/dl/sym.c (rb_dlsym_initialize): extract internal pointers after
- all argument conversion. fixed: [ruby-dev:25271]
-
-Tue Dec 21 16:15:21 2004 Michael Neumann <mneumann@ruby-lang.org>
-
- * lib/xmlrpc/client.rb: use "" instead of "." if prefix argument is
- nil in proxy methods. nil is default value.
-
- * test/xmlrpc/test_webrick_server.rb, test/xmlrpc/webrick_testing.rb:
- use threads instead of forking. this should fix issue #1208
- (http://rubyforge.org/tracker/?func=detail&atid=1698&aid=1208&group_id=426).
- removed testing of SSL enabled servlet as this hangs.
-
-Wed Dec 22 00:05:10 2004 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
-
- * lib/soap/*, test/soap/*, sample/soap/authheader/*: eval cleanup.
-
-Tue Dec 21 22:07:41 2004 GOTOU Yuuzou <gotoyuzo@notwork.org>
-
- * ext/openssl/ossl_asn1.c (ossl_asn1_decode_all): use rb_str_new4
- to avoid SEGV.
-
- * ext/openssl/ossl_asn1.c (ossl_asn1_traverse, ossl_asn1_decode,
- ossl_asn1_decode_all): temporary value should be marked volatile.
-
-Tue Dec 21 12:42:34 2004 GOTOU Yuuzou <gotoyuzo@notwork.org>
-
- * ext/openssl/ossl_asn1.c (ossl_asn1_traverse, ossl_asn1_decode):
- use rb_str_new4 to avoid SEGV. fix [ruby-dev:25261]
-
- * test/openssl/test_asn1.rb: add tests for OpenSSL::ASN1.
-
-Tue Dec 21 12:10:04 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/lib/tk/grid.rb: rescue bug of 'grid configure' on Tcl/Tk8.3-
-
-Mon Dec 20 22:52:29 2004 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
-
- * added samples for the previous soap4r's commit.
-
-Mon Dec 20 22:56:39 2004 Tanaka Akira <akr@m17n.org>
-
- * gc.c (set_stack_end): gcc noinline attribute is available since
- gcc-3.1.
-
-Mon Dec 20 22:40:31 2004 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
-
- * added files:
- * lib/soap/mapping/wsdl*.rb
- * lib/wsdl/soap/element.rb
- * lib/wsdl/xmlSchema/simpleContent.rb
-
- * modified files:
- * lib/soap/*
- * lib/wsdl/*
- * lib/xsd/*
- * test/soap/*
- * test/wsdl/*
- * test/xsd/*
-
- * summary
- * imported from the soap4r repository. Version: 1.5.3-ruby1.8.2
-
- * added several XSD basetype support: nonPositiveInteger,
- negativeInteger, nonNegativeInteger, unsignedLong, unsignedInt,
- unsignedShort, unsignedByte, positiveInteger
-
- * HTTP client connection/send/receive timeout support.
-
- * HTTP client/server gzipped content encoding support.
-
- * improved WSDL schema definition support; still is far from
- complete, but is making step by step improvement.
-
-Mon Dec 20 14:45:19 2004 GOTOU Yuuzou <gotoyuzo@notwork.org>
-
- * lib/net/https.rb: delete descriptions about key_file and cert_file.
- fixed: [ruby-dev:25243]
-
- * ext/openssl/lib/net/telnets.rb: ditto.
-
-Mon Dec 20 14:07:02 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/lib/multi-tk.rb: supports new features of Tcl/Tk8.5a2
-
- * ext/tk/lib/tk/clock.rb: ditto
-
- * ext/tk/lib/tk/text.rb: ditto
-
- * ext/tk/lib/tk/panedwindow.rb: ditto
-
-Mon Dec 20 13:51:40 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * ext/socket/socket.c (sock_s_getservbyport): [ruby-talk:124072]
-
-Mon Dec 20 10:51:58 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * parse.y (special_local_set): prevent the parser object from GC.
- fixed: [ruby-dev:25252]
-
-Mon Dec 20 03:30:40 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/cgi/session.rb (CGI::Session#initialize): empty session id was
- used if request had no session key. fixed: [ruby-core:03981]
-
-Mon Dec 20 01:51:01 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * struct.c (make_struct): [ruby-dev:25249]
-
-Mon Dec 20 00:16:54 2004 Kouhei Sutou <kou@cozmixng.org>
-
- * lib/rexml/encodings/SHIFT_JIS.rb: fixed LoadError bug.
- [ruby-core:3958]
-
-Sun Dec 19 17:24:59 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * configure.in (enable_rpath): use rpath flag to embed the library
- path into extensions on ELF environment. [ruby-dev:25035]
-
-Sun Dec 19 11:01:25 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/test/unit.rb: use standalone runner for -e.
-
- * lib/test/unit/autorunner.rb (Test::Unit::AutoRunner#options): accept
- multiple -p and -x options.
-
- * lib/test/unit/collector/dir.rb (Test::Unit::Collector::Dir#recursive_collect):
- ditto.
-
-Sat Dec 18 16:36:23 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/zlib/zlib.c (rb_deflate_s_deflate, rb_inflate_s_inflate):
- disallow interrupt by type conversion. fixed: [ruby-dev:25226]
-
-Sat Dec 18 15:09:02 2004 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
-
- * lib/webrick/httpauth.rb,
- lib/webrick/httpauth/{basicauth.rb,digestauth.rb}: use
- pack/unpack-template char "m" instead of lib/base64.rb to do base64
- encoding/decoding.
-
-Sat Dec 18 10:51:01 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * dir.c (dir_open_dir): new function. [ruby-dev:25242]
-
- * io.c (rb_f_open): add type check for return value from to_open.
-
-Fri Dec 17 16:44:26 2004 Tanaka Akira <akr@m17n.org>
-
- * configure.in (ac_cv_sizeof_rlim_t): set 8 for BSD/OS.
- Reported by OHARA Shigeki. [ruby-dev:25236]
-
-Fri Dec 17 16:28:12 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/lib/tk.rb: fix bug on setting up system encoding
-
- * ext/tk/lib/tk/event.rb: fix error on require process
-
- * ext/tk/lib/tk/font.rb: fix abnormal termination error on Windows
-
- * ext/tk/lib/tk/virtevent.rb: TkVirtualEvent::PreDefVirtEvent.new()
- accepts event-sequence arguments
-
- * ext/tk/lib/tk/text.rb: fail to dump embedded images
-
- * ext/tk/lib/tk/text.rb: tag_nextrange and tag_prevrange returns wrong
- types of values
-
- * ext/tk/lib/tk/texttag.rb: nextrange and prevrange returns wrong
- types of values
-
- * ext/tk/lib/tk/text.rb: add TkText::IndexModMethods module and
- TkText::IndexString class to treat text index modifiers
-
- * ext/tk/lib/tk/texttag.rb: use TkText::IndexModMethods module
-
- * ext/tk/lib/tk/textmark.rb: ditto
-
- * ext/tk/lib/tk/textimage.rb: ditto
-
- * ext/tk/lib/tk/textwindow.rb: ditto
-
- * ext/tk/lib/tk/textimage.rb: wrong gravity of text mark for embedded
- image
-
- * ext/tk/lib/tk/textwindow.rb: wrong gravity of text mark for
- embedded window
-
-Fri Dec 17 13:33:58 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/cgi/session.rb (CGI::Session#initialize): control adding
- session_id hidden fields. fixed: [ruby-talk:123850]
-
-Fri Dec 17 00:01:48 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * eval.c (rb_proc_arity, rb_node_arity, rb_mod_method_arity,
- rb_obj_method_arity): new functions to obtain method arity.
- [ruby-dev:25143]
-
-Thu Dec 16 23:31:13 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/mkmf.rb (create_makefile): create RUBYARCHDIR also when no extension
- is installed. fixed: [ruby-dev:25215]
-
-Thu Dec 16 22:36:57 2004 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
-
- * test/drb/test_drb.rb: adjust and reduce sleep.
-
-Thu Dec 16 18:37:08 2004 GOTOU Yuuzou <gotoyuzo@notwork.org>
-
- * ext/openssl/ossl.c (ossl_raise): refine message format.
-
-Thu Dec 16 16:29:44 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/sample/demos-en/widget: modify version check for
- supporting features
-
-Thu Dec 16 16:03:50 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/lib/tk/bindtag.rb: bug fix [ruby-talk: 123667]
-
- * ext/tk/lib/tk/timer.rb: accept :idle for the interval argument
-
- * ext/tk/lib/tk.rb: add TkComm._callback_entry?()
-
- * ext/tk/lib/multi-tk.rb: add MultiTkIp.cb_entry_class
-
- * ext/tk/lib/tk/canvas.rb: use TkComm._callback_entry?()
-
- * ext/tk/lib/tk/canvastag.rb: ditto
-
- * ext/tk/lib/tk/dialog.rb: ditto
-
- * ext/tk/lib/tk/optiondb.rb: ditto
-
- * ext/tk/lib/tk/text.rb: ditto
-
- * ext/tk/lib/tk/texttag.rb: ditto
-
- * ext/tk/lib/tk/textwindow.rb: ditto
-
- * ext/tk/lib/tk/timer.rb: ditto
-
- * ext/tk/lib/tk/validation.rb: ditto
-
- * ext/tk/lib/tkextlib/*: ditto
-
-Thu Dec 16 04:02:28 2004 Minero Aoki <aamine@loveruby.net>
-
- * ext/ripper/extconf.rb: bison is not needed if ripper.c exists.
- [ruby-dev:25191]
-
-Thu Dec 16 03:27:10 2004 Minero Aoki <aamine@loveruby.net>
-
- * lib/net/http.rb: remove junk.
-
-Thu Dec 16 00:57:30 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * ext/syck/rubyext.c (rb_syck_io_str_read): [ruby-core:03973]
-
-Thu Dec 16 00:43:29 2004 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
-
- * lib/drb/drb.rb: changed default binded address family to use an
- available address family of host name. [druby-ja:101]
-
- * lib/drb/ssl.rb: ditto
-
-Wed Dec 15 17:47:17 2004 GOTOU Yuuzou <gotoyuzo@notwork.org>
-
- * lib/webrick/server.rb (WEBrick::GenericServer#start_thread):
- should log about all accepted socket. [ruby-core:03962]
-
- * lib/webrick/accesslog.rb (WEBrick::AccessLog#setup_params):
- "%%" and "%u" are supported. [webricken:135]
-
- * lib/webrick/httpservlet/filehandler.rb
- (WEBrick::HTTPServlet::FileHandler#check_filename):
- :NondisclosureName is acceptable if it is Enumerable.
-
- * lib/webrick/config.rb (WEBrick::Config::FileHandler):
- default value of :NondisclosureName is [".ht*", "*~"].
-
-Wed Dec 15 16:10:23 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * object.c (rb_obj_id_obsolete): warn always.
-
-Wed Dec 15 15:31:02 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/set.rb (Set#==): [ruby-dev:25206]
-
-Wed Dec 15 14:32:18 2004 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * win32/win32.c (rb_w32_fdisset): check whether the handle is valid.
-
-Wed Dec 15 10:30:37 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * ext/openssl/ossl_digest.c (ossl_digest_initialize): [ruby-dev:25198]
-
-Tue Dec 14 19:17:15 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * utf8.c (utf8_is_mbc_ambiguous): [ruby-talk:123561]
-
- * utf8.c (utf8_mbc_to_normalize): ditto.
-
-Tue Dec 14 17:08:15 2004 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * win32/win32.c (rb_w32_close): need to reset osfhnd().
-
-Tue Dec 14 14:03:57 2004 GOTOU Yuuzou <gotoyuzo@notwork.org>
-
- * ext/openssl/ossl.c (ossl_raise): avoid buffer overrun.
- [ruby-dev:25187]
-
-Tue Dec 14 12:36:04 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/cgi/session.rb (CGI::Session::initialize): generate new
- session if given session_id does not exist. [ruby-list:40368]
-
-Tue Dec 14 08:47:45 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * eval.c (Init_eval): should mark ruby_eval_tree. [ruby-dev:25189]
-
-Mon Dec 13 18:13:52 2004 Tanaka Akira <akr@m17n.org>
-
- * gc.c (set_stack_end): new function to obtain stack end address.
- set_stack_end obtains a stack end address by an address of local
- variable in the function.
- (SET_STACK_END, STACK_END): use set_stack_end. don't use alloca.
- This makes the conservative garbage collector to scan a stack frame
- of the garbage_collect function itself. This is required because
- callee-save registers may be stored in the frame.
- [ruby-dev:25158]
-
-Mon Dec 13 02:45:51 2004 Shugo Maeda <shugo@ruby-lang.org>
-
- * ext/curses/curses.c (window_subwin): call NUM2INT() before
- GetWINDOW(). fixed: [ruby-dev:25161]
-
-Mon Dec 13 00:58:02 2004 Tanaka Akira <akr@m17n.org>
-
- * lib/pathname.rb (cleanpath_aggressive): make it private.
- (cleanpath_conservative): ditto.
- Suggested by Daniel Berger. [ruby-core:3914]
-
-Sun Dec 12 21:32:14 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * test/ruby/test_super.rb (TestSuper#test_define_method): now methods
- from procs can call super.
-
-Sun Dec 12 10:35:10 2004 Dave Thomas <dave@pragprog.com>
-
- * lib/rdoc/generators/template/html/html.rb (RDoc::Page): Don't
- show an accessor's r/w flag if none was specified
-
-Sun Dec 12 10:14:03 2004 Dave Thomas <dave@pragprog.com>
-
- * lib/rdoc/rdoc.rb (RDoc::RDoc::parse_files): Never exclude files
- explicitly given on the command line.
-
-Sat Dec 11 21:10:16 2004 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
-
- * lib/drb/drb.rb: add DRbRemoteError. [ruby-list:40348],
- [ruby-list:40390]
-
- * test/drb/drbtest.rb: ditto.
-
- * test/drb/ut_drb.rb: ditto.
-
-Sat Dec 11 13:08:28 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * sample/optparse/subcommand.rb: a sample for sub commands like
- cvs. contributed by Minero Aoki.
-
-Fri Dec 10 08:39:48 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/socket/socket.c (sock_listen): get OpenFile just before calling
- listen(2).
-
-Thu Dec 9 16:28:35 2004 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * ext/sdbm/init.c (GetDBM): typo.
-
-Thu Dec 9 16:21:51 2004 GOTOU Yuuzou <gotoyuzo@notwork.org>
-
- * lib/webrick/cgi.rb (WEBrick::CGI#setup_header): avoid
- SecurityError. [ruby-dev:24970]
-
- * lib/webrick/httpserver.rb (WEBrick::HTTPServer#run): should wait
- for reading request till data arrive. [ruby-talk:121068]
-
-Thu Dec 9 14:38:35 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * string.c (rb_str_inspect): escape # which starts an expression
- substitution. fixed: [ruby-core:03922]
-
- * string.c (rb_str_dump): not escape # which isn't a substitution.
-
-Thu Dec 9 12:31:53 2004 WATANABE Hirofumi <eban@ruby-lang.org>
-
- * io.c (pipe_open): should set prog if argc != 0.
-
-Thu Dec 9 10:54:36 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * ext/dbm/dbm.c (fdbm_select): [ruby-dev:25132]
-
- * ext/sdbm/init.c: ditto.
-
- * ext/gdbm/gdbm.c: ditto.
-
-Thu Dec 9 10:19:18 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * test/socket/test_socket.rb (test_setsockopt): use SO_LINGER instead
- of SO_BINDTODEVICE. fixed: [ruby-dev:25133]
-
-Thu Dec 9 03:08:36 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tcltklib/tcltklib.c (ip_init): set root-win title to "ruby" when
- the running script is '-e one-liner' or '-' (stdin).
-
- * ext/tcltklib/extconf.rb: add find_library("#{lib}#{ver}",..) for
- stub libs
-
- * ext/tk/lib/tk/textmark.rb: TkTextMarkCurrent and TkTextMarkAnchor
- have a wrong parent class.
-
- * ext/tk/lib/tk/dialog.rb: rename TkDialog2 --> TkDialogObj and
- TkWarning2 --> TkWarningObj (old names are changed to alias names)
-
- * ext/tk/lib/tk/dialog.rb: bug fix of treatment of 'prev_command'
- option and hashes for configuration
-
- * ext/tk/lib/tk/dialog.rb: add TkDialogObj#name to return the
- button name
-
- * ext/tk/lib/tk/radiobutton.rb: rename enbugged method value() ==>
- get_value() and value=(val) ==> set_value(val).
-
- * ext/tk/lib/tk/menu.rb: add TkMenu.new_menuspec
-
- * ext/tk/lib/tk/menu.rb: add alias (TkMenuButton = TkMenubutton,
- TkOptionMenuButton = TkOptionMenubutton)
-
- * ext/tk/lib/tk/event.rb: new method aliases (same as option keys of
- event_generate) for Event object
-
- * ext/tk/lib/tk/font.rb: configinfo returns proper types of values
-
- * ext/tk/lib/tk.rb: bind methods accept subst_args + block
-
- * ext/tk/lib/tk/canvas.rb: ditto
-
- * ext/tk/lib/tk/canvastag.rb: ditto
-
- * ext/tk/lib/tk/frame.rb: ditto
-
- * ext/tk/lib/tk/text.rb: ditto
-
- * ext/tk/lib/tk/texttag.rb: ditto
-
- * ext/tk/lib/tk/toplevel.rb: ditto
-
- * ext/tk/lib/tkextlib/*: ditto and bug fix
-
-Wed Dec 8 23:54:29 2004 Dave Thomas <dave@pragprog.com>
-
- * lib/rdoc/generators/template/html/html.rb (RDoc::Page): Typo
- meant that h2 tag was invisible.
-
-Wed Dec 8 22:10:02 2004 Tanaka Akira <akr@m17n.org>
-
- * rubyio.h, io.c, ext/dl/dl.c, ext/pty/pty.c, ext/socket/socket.c:
- create FILE object only when required: popen(3) and DL's IO#to_ptr.
- [ruby-dev:25122]
-
- * io.c (rb_io_binmode): use setmode for Human68k. [ruby-dev:25121]
-
-Wed Dec 8 20:13:06 2004 WATANABE Hirofumi <eban@ruby-lang.org>
-
- * process.c (rb_spawn): support for DJGPP.
-
- * lib/mkmf.rb (VPATH): specify the implicit path separator for DJGPP.
-
-Wed Dec 8 17:48:22 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * eval.c (proc_invoke): merge Guy Decoux's argument preserve
- patch in [ruby-core:03874].
-
-Wed Dec 8 17:37:33 2004 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * win32/win32.c (rb_w32_pipe_exec): need to close original socket
- handle.
-
-Wed Dec 8 14:31:36 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * sprintf.c (rb_f_sprintf): [ruby-dev:25104]
-
-Wed Dec 8 13:49:46 2004 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * win32/win32.c (rb_w32_pipe_exec): must close original handle
- before exec. fixed: [ruby-dev:25112]
-
-Wed Dec 8 11:46:26 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * parse.y (string_content): get rid of segfault at empty evstr.
- fixed: [ruby-dev:25113]
-
-Wed Dec 8 03:26:51 2004 GOTOU Yuuzou <gotoyuzo@notwork.org>
-
- * ext/openssl/ossl_bio.c (ossl_obj2bio): should not use fptr->f.
- [ruby-dev:25101]
-
-Wed Dec 8 03:26:41 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * runruby.rb: prepend LIBRUBY_SO to LD_PRELOAD as well as rubytest.rb.
-
-Wed Dec 8 01:35:44 2004 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * win32/win32.c (is_socket): reorder of function definitions.
-
-Wed Dec 8 00:44:31 2004 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * io.c (pipe_open): win32 bidirectional pipe support.
-
- * win32/win32.[ch] (rb_w32_pipe_exec): ditto.
-
- * win32/win32.[ch] (socketpair): new function. POSIX socketpair
- emulation.
-
- * win32/win32.c (socketpair_internal): ditto.
-
-Wed Dec 8 00:25:07 2004 Kouhei Sutou <kou@cozmixng.org>
-
- * test/rss/test_version.rb: added version check test.
- [ruby-dev:25053]
-
-Tue Dec 7 15:40:38 2004 Tanaka Akira <akr@m17n.org>
-
- * io.c (io_fwrite): avoid context switch before writing to stderr.
- [ruby-dev:25080]
-
- * rubyio.h: refine deprecated declaration.
-
- * configure.in, file.c, io.c: remove useless check: fseeko, etc.
-
-Tue Dec 7 13:42:07 2004 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * dir.c (dir_s_mkdir): win32 special processing doesn't need any
- longer.
-
- * win32/win32.[ch] (rb_w32_mkdir): new function. POSIX.1 compatible
- interface.
-
- * win32/win32.[ch] (rb_w32_rmdir): new function.
-
-Tue Dec 7 00:27:37 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * process.c (proc_setgroups): [ruby-dev:25081]
-
-Mon Dec 6 23:07:57 2004 Tanaka Akira <akr@m17n.org>
-
- * configure.in: check -lsocket for socketpair and shutdown.
- reported by Ville Mattila. [ruby-core:03903]
-
-Mon Dec 6 23:00:45 2004 WATANABE Hirofumi <eban@ruby-lang.org>
-
- * configure.in (ac_cv_sizeof_rlim_t): setup for DJGPP.
-
- * io.c (is_socket, shutdown): define dummy macros for DJGPP.
-
- * process.c: use SIZEOF_RLIM_T instead of HAVE_RLIM_T for DJGPP.
-
-Mon Dec 6 21:19:40 2004 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * io.c (is_socket): fix typos. [ruby-core:03900]
-
-Mon Dec 6 20:13:28 2004 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * io.c (is_socket): new function.
-
- * io.c (rb_io_close_read, rb_io_close_write): use is_socket().
-
- * io.c (rb_io_fptr_finalize): need to check fptr->f before calling
- rb_io_fptr_cleanup().
-
- * io.c (pipe_open): win32 pipe support (experimental).
-
- * win32/win32.[ch] (rb_w32_pipe_exec): return file descriptors
- instead of FILE structure objects.
-
- * win32/win32.[ch] (rb_w32_is_socket): new function.
-
-Mon Dec 6 19:40:40 2004 WATANABE Hirofumi <eban@ruby-lang.org>
-
- * Makefile.in (.y.c): simplify the rule.
-
-Mon Dec 6 18:08:10 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * re.c (rb_reg_eqq): document fix. [ruby-talk:122541]
-
-Mon Dec 6 17:49:30 2004 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * eval.c (run_trap_eval): add prototype for Microsoft compiler.
-
-Mon Dec 6 17:32:38 2004 Tanaka Akira <akr@m17n.org>
-
- * rubyio.h, intern.h, io.c, file.c, process.c, ext/socket/socket.c,
- ext/pty/pty.c, ext/io/wait/wait.c, ext/openssl/ossl_ssl.c:
- Use own buffering mechanism instead of stdio. [ruby-dev:25056]
-
- * io.c, ext/stringio/stringio.c, test/ruby/ut_eof.rb:
- EOF flag removed.
-
-Mon Dec 6 17:15:17 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * test/socket/test_socket.rb (TestBasicSocket#test_setsockopt):
- BasicSocket#setsockopt dumps core. [ruby-dev:25039]
-
- * test/socket/test_tcp.rb (TestTCPSocket#test_recvfrom):
- TCPSocket#recvfrom dumps core. [ruby-dev:24705]
-
- * test/socket/test_udp.rb (TestUDPSocket#test_connect):
- UDPSocket#connect dumps core. [ruby-dev:25045]
-
- * test/socket/test_udp.rb (TestUDPSocket#test_bind):
- UDPSocket#bind dumps core. [ruby-dev:25057]
-
-Mon Dec 6 09:59:23 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * io.c (io_fread): take VALUE argument.
-
- * ext/socket/socket.c (sock_connect): use rb_str_new4().
- [ruby-dev:25052]
-
- * eval.c (rb_yield_0): [ruby-dev:25051]
-
-Mon Dec 6 01:32:31 2004 GOTOU Yuuzou <gotoyuzo@notwork.org>
-
- * ext/openssl/ossl_pkey_rsa.c (ossl_rsa_public_encrypt,
- ossl_rsa_public_decrypt, ossl_rsa_private_encrypt,
- ossl_rsa_private_decrypt): should take an optional argument
- to specify padding mode. [ruby-talk:122539]
-
- * ext/openssl/ossl_pkey_rsa.c (Init_ossl_rsa): add new constants
- PKCS1_PADDING, SSLV23_PADDING, NO_PADDING and PKCS1_OAEP_PADDING
- under OpenSSL::PKey::RSA.
-
- * test/openssl/test_pkey_rsa.rb: new file.
-
-Sun Dec 5 19:39:17 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/optparse.rb (OptionParser::Completion#complete): new parameter
- to direct case insensitiveness.
-
- * lib/optparse.rb (OptionParser#order!): ignore case only for long
- option. [ruby-dev:25048]
-
-Sun Dec 5 00:54:32 2004 WATANABE Hirofumi <eban@ruby-lang.org>
-
- * mkconfig.rb: setup library paths before requiring library.
- [ruby-core:03892]
-
-Sat Dec 4 22:54:15 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * io.c (io_write): remove rb_str_locktmp(). [ruby-dev:25050]
-
- * io.c (io_fwrite): takes VALUE string as an argument.
- [ruby-dev:25050]
-
- * ext/socket/socket.c (sock_connect): remove rb_str_locktmp().
- [ruby-dev:25050]
-
- * ext/socket/socket.c (udp_connect): [ruby-dev:25045]
-
- * ext/socket/socket.c (udp_bind): ditto.
-
- * ext/socket/socket.c (udp_send): ditto.
-
- * ext/socket/socket.c (bsock_send): ditto.
-
- * ext/socket/socket.c (s_recvfrom): ditto.
-
- * hash.c (rb_hash_hash): should provide "hash" method where "eql?"
- is redefined. [ruby-talk:122482]
-
-Sat Dec 4 21:29:05 2004 Minero Aoki <aamine@loveruby.net>
-
- * lib/fileutils.rb: (In previous commit) new method chown.
-
- * lib/fileutils.rb: (In previous commit) new method chown_R.
-
- * lib/fileutils.rb: (In previous commit) new method chmod_R
- wrongly added. Removed now.
-
-Sat Dec 4 20:45:52 2004 Minero Aoki <aamine@loveruby.net>
-
- * lib/fileutils.rb (mkdir, mkdir_p): should chmod explicitly.
- [ruby-core:03881]
-
-Sat Dec 4 18:54:09 2004 Kouhei Sutou <kou@cozmixng.org>
-
- * lib/rss/rss.rb: removed empty lines from output.
-
-Sat Dec 4 18:49:09 2004 Kouhei Sutou <kou@cozmixng.org>
-
- * lib/rss/rss.rb (RSS::VERSION): 0.1.1 -> 0.1.2
-
- * lib/rss/rss.rb: #item=/#set_item and so on are obsolete.
-
-Sat Dec 4 14:28:56 2004 Dave Thomas <dave@pragprog.com>
-
- * lib/rdoc/code_objects.rb (RDoc::Context::Section::set_comment):
- Section comments may now be bracketed by lines which are
- ignored. You can now write
- # -----------
- # :section: Dave's Section
- # comment material
- # -----------
- The lines before :section: are removed, and identical lines at the end are
- also removed if present.
-
-Sat Dec 4 00:35:08 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * ext/socket/socket.c (bsock_setsockopt): [ruby-dev:25039]
-
-Fri Dec 3 12:25:21 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * st.h: fix prototype for C++.
-
-Fri Dec 3 01:55:24 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/lib/tk.rb: widget configuration by TkWindow#method_missing
- returns proper object. "widget.option = val" returns val, and
- "widget.option(val)" returns self.
-
- * ext/tk/lib/tk/font.rb: TkFont#replace accepts only one font argument.
-
- * ext/tk/lib/tk/radiobutton.rb: add TkRadiobutton#value and
- TkRadiobutton#value=(val).
-
- * ext/tk/lib/tk/spinbox.rb: callback substitution support on
- command option.
-
- * ext/tk/sample/demos-en/widget: bug fix (wrong image height)
-
- * ext/tk/sample/demos-jp/widget: ditto.
-
-Fri Dec 3 00:21:05 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * eval.c (proc_invoke): prepare to pass a block from "call" method
- to a Proc generated by Method#to_proc. [ruby-dev:25031]
-
- * eval.c (rb_yield_0): actually passes a block given to "call".
-
- * object.c (convert_type): use rb_respond_to() again. this fix is
- based on [ruby-dev:25021]
-
- * eval.c (rb_respond_to): funcall respond_to? if it's redefined.
- [ruby-dev:25021]
-
-Thu Dec 2 15:13:53 2004 Michael Neumann <mneumann@ruby-lang.org>
-
- * test/xmlrpc/test_parser.rb, test/xmlrpc/data/*.expected: Expected
- values are now stored in YAML instead of using #inspect. This fixes
- false hash order.
-
-Fri Dec 3 00:11:48 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * io.c (rb_file_initialize): [ruby-dev:25032]
-
-Thu Dec 2 16:41:03 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * eval.c (rb_protect): prevent continuations created inside from being
- called from the outside. [ruby-dev:25003]
-
- * eval.c (rb_callcc, rb_cont_call): prohibit calling from different
- signal contexts. [ruby-dev:25022]
-
-Thu Dec 2 10:45:02 2004 Shugo Maeda <shugo@ruby-lang.org>
-
- * test/readline/test_readline.rb: fix for NetBSD.
-
-Thu Dec 2 09:57:24 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/ostruct.rb (OpenStruct::Marshaler): OpenStruct can be
- marshaled again. [ruby-core:03862]
-
-Thu Dec 2 09:30:58 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * eval.c (thread_mark): mark thread group. [ruby-dev:25020]
-
- * eval.c (thgroup_add): check whether the argument is really a Thread.
-
-Thu Dec 2 07:57:16 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * io.c (rb_io_ctl): [ruby-dev:25019]
-
-Wed Dec 1 06:13:00 2004 NARUSE, Yui <naruse@ruby-lang.org>
-
- * ext/nkf/nkf.c: add constant NKF::VERSION
-
- * ext/nkf/nkf.c(guess): this becomes an alias of guess2
-
- * ext/nkf/test.rb: add --no-cp932
-
- * ext/nkf/nkf-utf8/nkf.c: original nkf2 revision 1.47
-
-Wed Dec 1 02:21:02 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * signal.c (sighandler): call handler immediately only for default
- handlers. [ruby-dev:25003]
-
-Tue Nov 30 23:49:12 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * io.c (pipe_open): errno should be preserved for rb_sys_fail() when
- fork failed.
-
-Tue Nov 30 16:18:50 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * io.c (io_fread): need not to null terminate. [ruby-dev:24998]
-
- * eval.c (rb_eval): should check previous frame for ZSUPER.
-
- * io.c (read_all): remove unnecessary rb_str_resize().
- [ruby-dev:24996]
-
- * io.c (io_readpartial): ditto.
-
- * io.c (io_read): ditto.
-
-Tue Nov 30 14:58:33 2004 WATANABE Hirofumi <eban@ruby-lang.org>
-
- * instruby.rb (install): add arguments explicitly to "super".
-
-Tue Nov 30 00:49:08 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * eval.c (PUSH_FRAME): flags should have been initialized.
-
- * eval.c (rb_eval): [ruby-core:03856]
-
- * io.c (rb_io_sysread): use temporary lock. [ruby-dev:24992]
-
-Tue Nov 30 00:12:57 2004 Kazuo Saito <ksaito@uranus.dti.ne.jp>
-
- * regparse.c: now handles many alternatives (over 500000)
- in regexp. [ruby-dev:24773]
-
-Mon Nov 29 16:06:04 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/stringio/stringio.c (strio_write): insufficiently filled string
- being extended when overwriting. [ruby-core:03836]
-
-Mon Nov 29 15:59:05 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/ostruct.rb (OpenStruct::method_missing): check method
- duplication for -d.
-
- * lib/ostruct.rb (OpenStruct::initialize): ditto.
-
-Mon Nov 29 15:22:28 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * test/io/nonblock/test_flush.rb: abandon tests when io/nonblock is
- not supported.
-
-Mon Nov 29 13:37:54 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * io.c (fptr_finalize): must not use FILE after fclose().
- [ruby-dev:24985]
-
-Mon Nov 29 13:13:13 2004 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * win32/win32.c (CreateChild): push back the last space before next
- loop because CharNext() eats it.
-
-Mon Nov 29 03:08:30 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * object.c (convert_type): [ruby-core:03845]
-
- * eval.c (rb_funcall_rescue): new function.
-
- * object.c (rb_Array): avoid using rb_respond_to().
-
- * object.c (rb_Integer): ditto.
-
- * eval.c (get_backtrace): no conversion for nil.
-
- * parse.y (reduce_nodes): empty body should return nil.
-
-Mon Nov 29 01:18:18 2004 Tanaka Akira <akr@m17n.org>
-
- * io.c (rb_io_check_writable): call io_seek regardless of
- NEED_IO_SEEK_BETWEEN_RW. [ruby-dev:24986]
-
-Sun Nov 28 15:57:58 2004 Kouhei Sutou <kou@cozmixng.org>
-
- * lib/rss/rss.rb (RSS::Element#tag): not use block_given? for
- working with ruby 1.6 again.
-
- * lib/rss/{0.9,2.0,trackback}.rb, lib/rss/maker/base.rb:
- undef -> remove_method for working with ruby 1.6 again.
-
-Sun Nov 28 15:51:40 2004 Kouhei Sutou <kou@cozmixng.org>
-
- * lib/rss/rss.rb (RSS::NotSetError): added.
-
- * lib/rss/maker/{1.0,0.9,2.0}.rb: changed RSS Maker to raise
- RSS::NotSetError if required values of maker.channel are not
- set. [ruby-talk:120061]
-
- * test/rss/test_maker_{1.0,0.9,2.0}.rb: changed tests to check RSS
- Maker raises or not.
-
-Sun Nov 28 12:14:47 2004 Kazuo Saito <ksaito@uranus.dti.ne.jp>
-
- * regparse.c (fetch_token): fixed test failure on HP-UX ia64
- ([ruby-dev:24859]).
-
-Sun Nov 28 12:08:15 2004 Kazuo Saito <ksaito@uranus.dti.ne.jp>
-
- * regparse.c, test/ruby/test_regexp.rb: fixed problem with UTF-8
- characters that have U+00FE or invalid characters.
-
-Sun Nov 28 12:07:04 2004 Kazuo Saito <ksaito@uranus.dti.ne.jp>
-
- * regexec.c, test/ruby/test_regexp.rb: fixed segmentation fault
- ([ruby-dev:24887]).
-
-Sun Nov 28 12:05:48 2004 Kazuo Saito <ksaito@uranus.dti.ne.jp>
-
- * regcomp.c, regint.h: fixed PLATFORM_UNALIGNED_WORD_ACCESS
- problem ([ruby-dev:24802] and [ruby-core:3733])
-
-Sat Nov 27 23:43:39 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * io.c (rb_io_initialize): [ruby-dev:24972]
-
-Sat Nov 27 21:43:39 2004 Tanaka Akira <akr@m17n.org>
-
- * io.c: avoid data lost with nonblocking fd and
- stdio buffering in sync mode. [ruby-dev:24966]
- based on matz's patch [ruby-dev:24967]
- (io_fwrite): new primitive writing function which writes
- directly if sync mode.
- (rb_io_fwrite): wrapper for io_fwrite now.
- (io_write): call io_fwrite instead of rb_io_fwrite.
-
-Sat Nov 27 17:43:21 2004 Kouhei Sutou <kou@cozmixng.org>
-
- * lib/rss/{0.9,1.0,2.0,trackback,xml-stylesheet}.rb: added
- #setup_maker.
-
- * test/rss/test_setup_maker_*.rb: added tests for #setup_maker.
-
- * lib/rss/maker/base.rb(RSS::Maker::Items#max_size=): supported
- output item size limitation.
-
- * sample/rss/blend.rb: added sample for RSS Maker.
-
-Sat Nov 27 17:41:35 2004 Kouhei Sutou <kou@cozmixng.org>
-
- * lib/rss/maker/0.9.rb: supported RSS::Maker.make("0.91"). Now,
- "0.9" is just alias of "0.91."
-
- * test/rss/test_maker_0.9.rb: make("0.9") -> maker("0.91").
-
- * test/rss/test_to_s.rb: ditto.
-
-Sat Nov 27 17:21:30 2004 Kouhei Sutou <kou@cozmixng.org>
-
- * sample/rss/list_description.rb: untabified.
-
- * sample/rss/rss_recent.rb: ditto.
-
-Sat Nov 27 14:44:15 2004 Kent Sibilev <ksibilev@bellsouth.net>
-
- * lib/cgi/session.rb (CGI::Session::initialize): [ruby-core:03832]
-
-Sat Nov 27 09:41:21 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * io.c (io_fread): old rb_io_fread with file closing checking.
- (rb_io_fread): wrapper for io_fread now.
- [ruby-dev:24964]
-
-Fri Nov 26 18:02:44 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/lib/tk.rb: Tk.destroy uses TkWindow#epath
-
- * ext/tk/lib/tk/image.rb: bug fix
-
- * ext/tk/lib/tk/wm.rb: add 'iconphoto' method(Windows only)
-
- * ext/tk/lib/tkextlib/*: some methods uses TkWindow#epath
-
-Fri Nov 26 14:29:39 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * io.c (rb_io_initialize): uninitialized fd was checked to see open
- mode. [ruby-dev:24963]
-
- * io.c (rb_io_initialize): uninitialized fd was used. [ruby-dev:24962]
-
-Fri Nov 26 13:49:06 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * io.c (rb_io_initialize): should retrieve flags from copying file
- descriptor. [ruby-dev:24961]
-
- * eval.c (method_missing): raise TypeError for classes do not
- have allocators. [ruby-core:03752]
-
- * lib/erb.rb: add RDoc by James Edward Gray II. [ruby-core:03786]
-
-Fri Nov 26 13:29:02 2004 Dave Thomas <dave@pragprog.com>
-
- * lib/rdoc/parsers/parse_rb.rb (RDoc::RubyParser::look_for_directives_in): Break
- out of preprocessing when we find a :section: directive (previously cleared out the
- comment, but this apparently now generates an error in gsub!)
-
-Fri Nov 26 00:17:40 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * io.c (io_read): move StringValue() check before GetOpenFile().
- [ruby-dev:24959]
-
-Thu Nov 25 20:14:57 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/thwait.rb (ThreadsWait#join_nowait): abnormally terminated
- threads should be also processed. [ruby-talk:121320]
-
-Thu Nov 25 18:06:37 2004 Tanaka Akira <akr@m17n.org>
-
- * configure.in: AC_CHECK_SIZEOF(rlim_t) to include stdio.h to fix
- problem with autoconf 2.52 or earlier.
- revert AC_PREREQ to 2.50.
- [ruby-core:3809]
-
-Thu Nov 25 07:59:41 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * configure.in: AC_PREREQ(2.53) [ruby-core:03800]
-
- * io.c (read_all): stringify non-nil buffer argument, and always
- taint the result. [ruby-dev:24955]
-
-Wed Nov 24 01:01:31 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * io.c (io_read): integer conversion should be prior to
- GetOpenFile(). [ruby-dev:24952]
-
- * configure.in, io.c: cancel [ ruby-Patches-1074 ].
-
-Tue Nov 23 08:09:50 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/lib/tk/menu.rb: improve usability of TkOptionMenubutton
-
-Tue Nov 23 02:00:21 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * file.c (rb_file_chown): integer conversion should be prior to
- GetOpenFile(). [ruby-dev:24949]
-
-Tue Nov 23 00:10:48 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * file.c (rb_file_chown): integer conversion should be prior to
- GetOpenFile(). [ruby-dev:24947]
-
- * file.c (rb_file_truncate): ditto.
-
- * file.c (rb_file_s_truncate): ditto.
-
- * dir.c (dir_seek): use NUM2OFFT().
-
- * misc/ruby-mode.el (ruby-non-block-do-re): [ruby-core:03719]
-
-Mon Nov 22 22:33:02 2004 Dave Thomas <dave@pragprog.com>
-
- * lib/rdoc/parsers/parse_rb.rb (RDoc::parse_require): Don't use names
- of variables or constants when parsing 'require'
-
-Mon Nov 22 00:13:35 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * dir.c (dir_seek): should retrieve dir_data after NUM2INT().
- [ruby-dev:24941]
-
-Sat Nov 20 23:57:33 2004 Dave Thomas <dave@pragprog.com>
-
- * lib/rdoc/README (et al): Add a new directive, :section:, and
- change the output format to accommodate. :section: allows to to
- group together methods, attributes, constants, etc under
- headings in the output. If used, a table of contents is
- generated.
-
-Sat Nov 20 23:56:54 2004 Dave Thomas <dave@pragprog.com>
-
- * lib/rdoc/options.rb (Options::parse): Force --inline-source if
- --one-file option given
-
-Sat Nov 20 23:55:19 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * string.c (rb_str_splice): should place index wrapping after
- possible modification. [ruby-dev:24940]
-
-Sat Nov 20 23:25:12 2004 Minero Aoki <aamine@loveruby.net>
-
- * io.c (rb_io_getline): f.gets("") did not work. [ruby-core:03771]
-
- * test/ruby/test_io.rb (test_gets_rs): test it.
-
-Sat Nov 20 22:55:09 2004 WATANABE Hirofumi <eban@ruby-lang.org>
-
- * test/runner.rb (CROSS_COMPILING): need to require rbconfig.rb before
- using CROSS_COMPILNG.
-
-Sat Nov 20 20:42:42 2004 Minero Aoki <aamine@loveruby.net>
-
- * ext/ripper/depend: fix ripper.o dependency.
-
-Sat Nov 20 17:48:29 2004 WATANABE Hirofumi <eban@ruby-lang.org>
-
- * io.c (io_reopen): work around problem with Cygwin fseeko
- returning ESPIPE.
-
-Sat Nov 20 05:34:24 2004 NARUSE, Yui <naruse@ruby-lang.org>
-
- * ext/nkf/nkf-utf8/nkf.c: original nkf.c rev:1.40
-
- * ext/nkf/test.rb: add test for mime encode/decode
-
-Sat Nov 20 01:45:04 2004 WATANABE Hirofumi <eban@ruby-lang.org>
-
- * test/xmlrpc/test_webrick_server.rb: move `requrie "webrick/https"'
- into #setup_http_server method to avoid soap test errors.
-
-Sat Nov 20 01:37:34 2004 Johan Holmberg <holmberg@iar.se>
-
- * eval.c (error_print): nicer traceback at interrupt.
- [ruby-core:03774]
-
-Sat Nov 20 00:07:16 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * string.c (str_gsub): internal buffer should not be listed by
- ObjectSpace.each_object() by String#gsub. [ruby-dev:24931]
-
-Fri Nov 19 22:44:43 2004 WATANABE Hirofumi <eban@ruby-lang.org>
-
- * lib/test/unit/collector/dir.rb: better support for -p/-x option.
-
-Fri Nov 19 17:46:56 2004 Kouhei Sutou <kou@cozmixng.org>
-
- * lib/rss/maker/0.9.rb (RSS::Maker::RSS09::Image#have_required_values):
- changed /rss/channel/image to be optional. [ruby-Bugs:1047]
-
- * test/rss/test_maker_0.9.rb: added tests for the above.
-
-Fri Nov 19 17:18:17 2004 Kouhei Sutou <kou@cozmixng.org>
-
- * lib/rss/rss.rb (RSS::VERSION): 0.1.0 -> 0.1.1.
-
- * lib/rss: #to_s used #tag.
-
- * test/rss/test_to_s.rb: added.
-
- * lib/rss/maker.rb (RSS::Maker.make): changed API. It's not
- received modules which is used as the second argument.
-
- * lib/rss/xml-stylesheet.rb (RSS::XMLStyleSheet#alternate):
- changed return value type which is not String but Boolean.
-
- * lib/rss/2.0.rb (RSS::Rss::Channel#ttl): changed return value
- type which is not String but Integer.
-
- * lib/rss/0.9.rb (RSS::Rss::Channel): <skipDays> has <day>s and
- <skipHours> has <hour>s.
-
- * lib/rss/maker/0.9.rb (RSS::Maker::RSS09::Channel): ditto.
-
- * lib/rss/0.9.rb (RSS::Rss::Channel::Item): <item> has <category>s.
-
- * lib/rss/maker/2.0.rb (RSS::Maker::Rss20::Channel::Item): ditto.
-
- * lib/rss/2.0.rb (RSS::Rss::Channel): <channel> has <category>s.
-
- * lib/rss/maker/2.0.rb (RSS::Maker::RSS20::Channel): ditto.
-
- * lib/rss/trackback.rb: parent element has <trackback:about>s.
-
- * lib/rss/maker/trackback.rb: ditto.
-
-Fri Nov 19 11:10:16 2004 WATANABE Hirofumi <eban@ruby-lang.org>
-
- * lib/test/unit/collector/dir.rb: add support for directory name
- with -p/-x options.
-
- * test/testunit/collector/test_dir.rb: ditto.
-
- * lib/xmlrpc/datetime.rb (XMLRPC::DateTime#==): should use Array()
- instead of to_a.
-
-Fri Nov 19 10:32:36 2004 Shugo Maeda <shugo@ruby-lang.org>
-
- * ext/readline/readline.c (readline_s_set_completion_append_character):
- accept nil. [ruby-core:03765]
-
-Fri Nov 19 01:20:22 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/cgi/session.rb (CGI::Session::FileStore::initialize): raise
- exception if data corresponding to session specified from the
- client does not exist.
-
-Fri Nov 19 00:59:31 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * string.c (str_gsub): internal buffer should not be listed by
- ObjectSpace.each_object(). [ruby-dev:24919]
-
-Thu Nov 18 23:42:36 2004 Minero Aoki <aamine@loveruby.net>
-
- * ext/ripper/depend: Never regenerate lib/ripper/core.rb
- automatically. [ruby-dev:24911]
-
-Thu Nov 18 20:47:24 2004 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * win32/win32.[ch] (rb_w32_isatty): new function to replace MSVCRT's
- isatty because it never sets errno.
-
-Thu Nov 18 18:41:08 2004 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
-
- * test/ruby/test_stringchar.rb (test_bang): added.
-
- * string.c (rb_str_upcase_bang, rb_str_capitalize_bang)
- (rb_str_swapcase_bang): missing rb_str_modify().
-
-Thu Nov 18 17:05:01 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * parse.y (f_rest_arg): store rest args into invisible local variable
- in order to get rid of SEGV at ZSUPER. [ruby-dev:24913]
-
-Thu Nov 18 15:39:52 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * hash.c (rb_f_getenv): prohibit for $SAFE=4. [ruby-dev:24908]
-
-Thu Nov 18 14:58:42 2004 Shugo Maeda <shugo@ruby-lang.org>
-
- * ext/readline/readline.c: check $SAFE.
-
- * test/readline/test_readline.rb: added tests for readline.
-
-Thu Nov 18 00:21:15 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * process.c (proc_getpgrp): prohibit for $SAFE=2.
- [ruby-dev:24899]
-
- * process.c (get_pid): ditto. [ruby-dev:24904]
-
- * process.c (get_ppid): ditto.
-
- * array.c (rb_ary_delete): defer rb_ary_modify() until actual
- modification. [ruby-dev:24901]
-
-Thu Nov 18 10:10:14 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * io.c, rubyio.h (rb_io_modenum_flags): exported.
-
- * ext/stringio/stringio.c (strio_initialize): allow Fixnum as mode as
- well as IO.new does. [ruby-dev:24896]
-
-Wed Nov 17 23:47:30 2004 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
-
- * test/ruby/test_settracefunc.rb: added. [ruby-dev:24884]
-
-Wed Nov 17 18:59:16 2004 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
-
- * process.c (proc_getrlimit, proc_setrlimit): add rb_secure(2) to
- methods of Process.{getrlimit,setrlimit}
-
-Wed Nov 17 13:56:57 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * parse.y (newline_node): should not use FL_SET. [ruby-dev:24874]
-
- * parse.y (string_content): should not use FL_UNSET.
-
- * node.h (NODE_NEWLINE): remove unused bit to utilize flag field
- in nodes.
-
-Wed Nov 17 13:05:10 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * dir.c (rb_push_glob): fix overrun. [ruby-dev:24886]
-
-Wed Nov 17 11:48:17 2004 Michael Neumann <mneumann@ruby-lang.org>
-
- * lib/xmlrpc/parser.rb, test/xmlrpc/test_features.rb: fixed "assigning
- to constants" warnings
-
-Wed Nov 17 09:38:18 2004 Johan Holmberg <holmberg@iar.se>
-
- * re.c (rb_reg_initialize_m): should raise exception instead of
- compile error. [ruby-core:03755]
-
-Wed Nov 17 03:42:45 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * string.c (rb_str_splice): move rb_str_modify() after
- StringValue(), which may alter the receiver. [ruby-dev:24878]
-
- * error.c (rb_error_frozen): now raise RuntimeError instead of
- TypeError.
-
-Tue Nov 16 21:22:47 2004 Michael Neumann <mneumann@ruby-lang.org>
-
- * lib/xmlrpc/server.rb (CGIServer): fixed bug when client sends
- "Content-typ: text/xml; ..."
-
-Tue Nov 16 23:45:07 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * numeric.c (flo_divmod): protect float values from GC by
- assignment to local variables. [ruby-dev:24873]
-
-Tue Nov 16 14:31:54 2004 Michael Neumann <mneumann@ruby-lang.org>
-
- * test/xmlrpc/*: imported and refactored original test cases.
-
- * test/xmlrpc/test_webrick_server.rb, test/xmlrpc/webrick_testing.rb:
- added test case that starts up a WEBrick XML-RPC server and performs
- some tests on it (both http and https servers are started).
-
- * lib/xmlrpc/create.rb (XMLWriter::each_installed_writer),
- lib/xmlrpc/parser.rb (XMLParser::each_installed_parser):
- added methods to simply original test cases
-
- * lib/xmlrpc/parser.rb, lib/xmlrpc/datetime.rb: applied patch by
- MoonWolf <moonwolf@moonwolf.com> to allow parsing datetime.iso8601
- (e.g. 20041105T01:15:23Z).
-
- * lib/xmlrpc/server.rb: fixed issue #998
- (http://rubyforge.org/tracker/?func=detail&atid=1700&aid=998&group_id=426)
-
- * lib/xmlrpc/create.rb, lib/xmlrpc/utils.rb: when marshalling/loading
- user-defined data structures, use Class#allocate instead of defining
- an empty #initialize method. module XMLRPC::Marshallable is now only
- used for tagging.
-
- * lib/xmlrpc/.document, lib/xmlrpc/README.rdoc: added howto
-
-Tue Nov 16 16:26:12 2004 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * {bcc32,win32,wince}/setup.mak (-epilogue-): remove config.h and
- config.status to force updating them.
-
-Tue Nov 16 16:20:45 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/stringio/stringio.c (strio_read): position was ignored when a
- buffer was passed. http://www.yo.rim.or.jp/~nov/d/?date=20041116#p03
-
-Tue Nov 16 13:35:54 2004 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * lib/test/unit/autorunner.rb (Test::Unit::AutoRunner::options): add
- new option --exclude (-x) to skip some tests. [ruby-core:3363],
- [ruby-dev:24865]
-
- * lib/test/unit/collector/dir.rb (Test::Unit::Collector::Dir.exclude):
- ditto.
-
-Tue Nov 16 11:19:07 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/test/unit/autorunner.rb (Test::Unit::AutoRunner::options): use
- Regexp conversion.
-
-Tue Nov 16 01:41:31 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * string.c (str_mod_check): frozen check should be separated.
- [ruby-core:3742]
-
- * array.c (rb_ary_update): pedantic check to detect
- rb_ary_to_ary() to modify the receiver. [ruby-dev:24861]
-
-Mon Nov 15 18:58:05 2004 Tanaka Akira <akr@m17n.org>
-
- * configure.in: check rlim_t more portably. [ruby-core:3735]
-
-Mon Nov 15 11:50:32 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * misc/ruby-mode.el (ruby-special-char-p, ruby-parse-partial): handle
- operator symbols. [ruby-talk:120177]
-
-Mon Nov 15 08:58:55 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * eval.c (Init_Proc): make proc as an alias to Proc.new.
- [ruby-dev:24848]
-
-Mon Nov 15 00:46:03 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * eval.c (rb_yield_0): lambda{}.call(1) should raise exception.
- [ruby-talk:120253]
-
-Mon Nov 15 00:33:40 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * string.c (rb_str_clear): avoid revealing NULL pointer.
- [ruby-dev:24766]
-
- * string.c (str_gsub): add paranoid check. [ruby-dev:24827]
-
- * string.c (str_mod_check): check frozen status as well.
- [ruby-dev:24801]
-
-Sun Nov 14 18:59:03 2004 Tanaka Akira <akr@m17n.org>
-
- * process.c (proc_getrlimit): new function for Process.getrlimit.
- (proc_setrlimit): new function for Process.setrlimit.
- [ruby-dev:24834]
-
- * configure.in: check rlim_t and its size. check setrlimit.
-
- * ruby.h (NUM2ULL): new macro.
-
-Sun Nov 14 13:27:03 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/pp.rb (PP#object_address_group): remove odd number of 'f'
- prefixed to negative address.
-
-Sun Nov 14 10:48:21 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/mathn.rb (Integer::gcd2): faster implementation by
- <erlercw@siu.edu>. [ruby-talk:120232]
-
-Sun Nov 14 08:46:33 2004 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
-
- * test/logger/test_logger.rb: Logger just expects
- Logger#datetime_format to be used for Time#strftime independently of
- locale. [ruby-dev:24828]
-
-Fri Nov 12 17:32:07 2004 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * bcc32/README.bcc32, win32/README.win32: need bison instead of
- byacc.
-
-Fri Nov 12 15:15:06 2004 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * eval.c (ruby_options): now we cannot call rb_glob() before
- ruby_init(), so call rb_w32_cmdvector() at ruby_options().
-
- * win32/win32.{c,h} (rb_w32_cmdvector): rename make_cmdvector() and
- export it.
-
-Fri Nov 12 14:08:01 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/lib/tk/event.rb: remove $LOADED_FEATURES trick
-
- * ext/tk/lib/tk.rb: ditto
-
-Fri Nov 12 00:31:05 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * ext/gdbm/gdbm.c (fgdbm_store): StringValue() may alter string
- pointer. [ruby-dev:24783]
-
-Thu Nov 11 17:58:19 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * dir.c (rb_glob): should have called rb_glob_caller().
- [ruby-dev:24773]
-
-Thu Nov 11 16:56:10 2004 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * test/ruby/test_file.rb (test_truncate_wbuf): we want to test
- only File#truncate, not behavior of seek(2).
-
-Thu Nov 11 01:52:52 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * error.c (syserr_initialize): use stringified object.
- [ruby-dev:24768]
-
-Wed Nov 10 22:49:01 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/delegate.rb (SimpleDelegator::dup): wrong number of
- arguments.
-
- * lib/delegate.rb (DelegateClass::dup): ditto.
-
-Wed Nov 10 19:47:55 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * dir.c (glob_helper): path is a string object now.
-
-Wed Nov 10 12:31:21 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * README.EXT (Example): extconf.rb is indispensable now.
-
-Wed Nov 10 03:33:36 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tcltklib/tcltklib.c: fix SEGV when compiled with Tcl/Tk8.3.x
- or older
-
- * ext/tk/lib/tkextlib/tile/style.rb: bug fix
-
-Tue Nov 9 22:24:07 2004 NARUSE, Yui <naruse@ruby-lang.org>
-
- * ext/nkf: original nkf.c rev:1.38
-
- * ext/nkf/nkf.c: fix bug: can't parse long-name options
-
- * ext/nkf/test.rb: fix bug: mime tests fail
-
-Tue Nov 9 14:27:18 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/optparse.rb (OptionParser::Officious): moved from DefaultList.
-
-Tue Nov 9 00:50:06 2004 Dave Thomas <dave@pragprog.com>
-
- * lib/rdoc/rdoc.rb: Change version numbering of RDoc and ri
-
-Tue Nov 9 01:05:04 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * dir.c (rb_glob2): do not allocate buffer from heap to avoid
- memory leaks. use string object for buffering instead.
- [ruby-dev:24738]
-
- * dir.c (join_path): ditto.
-
- * io.c (io_read): external input buffer may be modified even after
- rb_str_locktmp(). [ruby-dev:24735]
-
- * dir.c (fnmatch): p or s may be NULL. [ruby-dev:24749]
-
-Tue Nov 9 00:36:26 2004 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
-
- * lib/drb/extservm.rb: add DRb::ExtServManager#uri=.
- [ruby-dev:24743]
-
-Mon Nov 8 22:20:19 2004 Dave Thomas <dave@pragprog.com>
-
- * lib/rdoc/parsers/parse_rb.rb (RDoc::RubyParser::parse_class):
- Fix bug where parent class wasn't being detected if the
- child class was defined using the A::B notation.
-
-Mon Nov 8 00:14:13 2004 WATANABE Hirofumi <eban@ruby-lang.org>
-
- * configure.in: add setup for mignw32 cross compiling.
- [ruby-talk:119413]
-
-Sun Nov 7 23:49:26 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/lib/tk.rb: bind-event methods accept multi substitution
- arguments.
-
- * ext/tk/lib/tk/canvas.rb: ditto.
-
- * ext/tk/lib/tk/canvastag.rb: ditto.
-
- * ext/tk/lib/tk/text.rb: ditto.
-
- * ext/tk/lib/tk/texttag.rb: ditto.
-
- * ext/tk/lib/tkextlib: ditto.
-
-Sat Nov 6 20:40:16 2004 Masaki Suketa <masaki.suketa@nifty.ne.jp>
-
- * ext/win32ole/win32ole.c: rename WIN32OLE#ole_obj_help to
- WIN32OLE#ole_type. alias ole_obj_help to ole_type.
-
- * ext/win32ole/tests/testWIN32OLE.rb: ditto.
-
-Sat Nov 6 11:18:59 2004 Tadayoshi Funaba <tadf@dotrb.org>
-
- * lib/date.rb (_parse): checks whether zone was given.
-
-Sat Nov 6 00:46:27 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * string.c (rb_str_locktmp): check STR_TMPLOCK flag before
- locking. [ruby-dev:24727]
-
-Fri Nov 5 19:07:16 2004 NARUSE, Yui <naruse@ruby-lang.org>
-
- * ext/nkf: follow CVS Head of original nkf.
-
-Fri Nov 5 18:12:42 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/lib/tk/scrollable.rb: divide Scrollable module into
- X_Scrollable and Y_Scrollable
-
- * ext/tk/lib/tk/entry.rb: include X_Scrollable instead of Scrollable
-
- * ext/tk/lib/tk/autoload.rb: define autoload for X_Scrollable and
- Y_Scrollable
-
-Fri Nov 5 16:05:32 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/lib/tk.rb: TkComm._at() supprts both of "@x,y" and "@x"
-
-Fri Nov 5 13:22:58 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/lib/tk/text.rb: sorry. bug fix again.
-
-Fri Nov 5 13:17:54 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/lib/tk/text.rb: bug fix
-
-Fri Nov 5 08:52:48 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * gc.c (gc_mark): stricter GC stack check.
-
-Fri Nov 5 08:34:43 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * string.c (str_gsub): should have removed rb_str_unlocktmp(str).
- [ruby-dev:24708]
-
- * ext/socket/socket.c (s_recvfrom): buffer modification check.
- [ruby-dev:24708]
-
-Thu Nov 4 23:54:21 2004 Kazuo Saito <ksaito@uranus.dti.ne.jp>
-
- * regexec.c, regparse.c, regint.h: fixed conflicts between
- vendor branch.
-
-Thu Nov 4 23:41:55 2004 Kazuo Saito <ksaito@uranus.dti.ne.jp>
-
- * ascii.c, euc_jp.c, oniggnu.h, oniguruma.h, regcomp.c,
- regenc.c, regenc.h, regerror.c, regexec.c, reggnu.c,
- regint.h, regparse.c, regparse.h, sjis.c, utf8.c:
- imported Oni Guruma 3.4.0.
-
- * parse.y, re.c: Now mbclen() takes unsigned char as
- its argument.
-
-Thu Nov 4 21:25:38 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * string.c (str_gsub): string modify check no longer based on
- tmplock. [ruby-dev:24706]
-
-Thu Nov 4 21:13:48 2004 Masaki Suketa <masaki.suketa@nifty.ne.jp>
-
- * ext/win32ole/win32ole.c(typelib_file_from_typelib): search "win16"
- entry to get library path.
-
- * ext/win32ole/win32ole.c(oletypelib_path): ditto.
-
- * ext/win32ole/win32ole.c(ole_typedesc2val): add VT_LPWSTR, VT_LPSTR,
- VT_ERROR case.
-
-Thu Nov 4 15:02:14 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/lib/tk/variable.rb: forget to initialize instance_variables
- of TkVarAccess objects
-
-Thu Nov 4 09:11:35 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * gc.c (gc_mark): enable GC stack checking.
-
-Thu Nov 4 03:11:33 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * string.c (str_gsub): lock strings temporarily. [ruby-dev:24687]
-
- * ext/socket/socket.c (s_recvfrom): tmplock input buffer.
- [ruby-dev:24705]
-
-Wed Nov 3 22:24:17 2004 Daigo Moriwaki <techml@sgtpepper.net>
-
- * lib/webrick/httpauth/digestauth.rb: use Base64.encode64 to
- avoid warnings.
-
-Wed Nov 3 17:19:59 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * array.c (rb_ary_uniq_bang): do not push frozen string from hash
- table. [ruby-dev:24695]
-
- * array.c (rb_ary_and): ditto.
-
- * array.c (rb_ary_or): ditto.
-
-Wed Nov 3 17:02:48 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/lib/tk.rb: support to use different Tcl commands between
- configure and configinfo
-
- * ext/tk/lib/font.rb: ditto.
-
- * ext/tk/lib/itemconfig.rb: support to use different Tcl commands
- between item_configure and item_configinfo
-
- * ext/tk/lib/itemfont.rb: ditto.
-
- * ext/tk/extconf.rb: install SUPPORT_STATUS
-
- * ext/tk/lib/tkextlib: some bug fixes (see ext/tk/ChangeLog.tkextlib)
-
-Wed Nov 3 15:38:28 2004 Kouhei Sutou <kou@cozmixng.org>
-
- * test/rss/*.rb: removed tab width configuration headers.
-
- * test/rss/test_maker_{0.9,1.0}.rb: sort -> do_sort.
-
- * lib/rss/maker/*.rb: changed API to RSS version independence.
-
- * lib/rss/maker/base.rb
- (RSS::Maker::XMLStyleSheets::XMLStyleSheet): checked required
- (pseudo) attributes.
-
- * lib/rss/maker/base.rb (RSS::Maker::Items): sort -> do_sort.
-
- * lib/rss/rss.rb (RSS::BaseModel.install_date_element): avoided
- warning.
-
- * lib/rss/0.9.rb (RSS::Rss#textinput): added convenience method.
-
-Tue Nov 2 16:35:57 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * ext/enumerator/enumerator.c (each_cons_i): pass copy of an
- internal consequent array. [ruby-talk:118691]
-
-Tue Nov 2 14:54:02 2004 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * io.c (pipe_open): need to set cmd if argc == 0 (win32).
-
-Tue Nov 2 01:20:09 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * io.c (pipe_open): IO.popen should take array as 1st argument for
- a command line. [ruby-dev:24678]
-
- * eval.c (proc_invoke): nail down dyna_var node when Proc object
- or continuation is created. [ruby-dev:24671]
-
- * io.c (rb_io_s_popen): do not expand argv array. [ruby-dev:24670]
-
-Mon Nov 1 22:25:56 2004 Kouhei Sutou <kou@cozmixng.org>
-
- * lib/rss/maker/base.rb: changed xml-stylesheet's API of RSS Maker
- like to item's one.
-
- * lib/rss/xml-stylesheet.rb (RSS::XMLStyleSheet#guess_type): fixed
- regular expression bug.
-
- * test/rss/test_maker_xml-stylesheet.rb: updated tests for
- xml-stylesheet.
-
-Mon Nov 1 13:59:28 2004 WATANABE Hirofumi <eban@ruby-lang.org>
-
- * ext/extmk.rb (MANIFEST): do not use anymore, use extconf.rb instead.
-
- * ext/enumerator/extconf.rb, ext/fcntl/extconf.rb,
- ext/stringio/extconf.rb: added.
-
- * MANIFEST, ext/**/MANIFEST: removed.
-
- * README.EXT, README.EXT.ja: remove MANIFEST stuff.
-
-Mon Nov 1 11:52:18 2004 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * io.c (pipe_open): avoid conflict of variable name. [ruby-dev:24662]
-
-Mon Nov 1 11:46:19 2004 WATANABE Hirofumi <eban@ruby-lang.org>
-
- * process.c (rb_f_exec): should check whether prog is NULL.
-
-Mon Nov 1 09:37:19 2004 Kouhei Sutou <kou@cozmixng.org>
-
- * lib/rss/maker.rb: added entry point of RSS Maker.
-
-Mon Nov 1 03:14:14 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * eval.c (rb_get_method_body): store ICLASS in the cache.
- [ruby-core:03672]
-
- * eval.c (rb_provided): should return true for loading library
- too for autoloading. [ruby-core:03655]
-
-Mon Nov 1 01:14:52 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * io.c (rb_f_open): create copy of popen specifier. [ruby-dev:24656]
-
- * string.c (rb_str_locktmp): lock string temporarily.
-
- * string.c (str_independent): add tmplock check.
-
- * io.c (io_write): lock output string temporarily.
- [ruby-dev:24649]
-
- * io.c (io_write): use rb_str_locktmp().
-
- * io.c (read_all): ditto.
-
-Sun Oct 31 23:37:00 2004 NARUSE, Yui <naruse@ruby-lang.org>
-
- * process.c: on NetBSD don't use setruid() and setrgid().
-
-Sun Oct 31 23:12:10 2004 Kouhei Sutou <kou@cozmixng.org>
-
- * lib/rss/maker/*.rb: added RSS Maker.
-
- * test/rss/test_maker_*.rb: added tests for RSS Maker.
-
-Sun Oct 31 16:58:12 2004 Masaki Suketa <masaki.suketa@nifty.ne.jp>
-
- * ext/win32ole/win32ole.c: add WIN32OLE.codepage, WIN32OLE.codepage=.
-
- * ext/win32ole/tests/testWIN32OLE.rb: ditto.
-
-Sun Oct 31 14:35:26 2004 WATANABE Hirofumi <eban@ruby-lang.org>
-
- * ext/nkf/nkf-utf8/nkf.c: add "\075?UTF-8?Q?" for Gmail.
-
-Sun Oct 31 14:18:56 2004 Minero Aoki <aamine@loveruby.net>
-
- * parse.y [ripper]: emit lexer-event values to the parser
- (still incomplete).
-
-Sat Oct 30 15:24:41 2004 Masaki Suketa <masaki.suketa@nifty.ne.jp>
-
- * ext/win32ole/win32ole.c: add WIN32OLE_TYPELIB class. add
- WIN32OLE#ole_typelib method.
-
- * ext/win32ole/tests/testOLETYPELIB.rb: add WIN32OLE_TYPELIB class.
-
-Sat Oct 30 06:53:24 2004 Peter Vanbroekhoven <peter.vanbroekhoven@cs.kuleuven.ac.be>
-
- * eval.c (rb_eval): NODE_XSTR should pass copy of literal string.
-
-Sat Oct 30 00:19:40 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * array.c (rb_ary_update): a[n,m]=nil no longer works as element
- deletion.
-
- * enum.c (enum_sort_by): protect continuation jump in.
- [ruby-dev:24642]
-
- * eval.c (rb_eval), gc.c (gc_mark_children), node.h (NEW_ALIAS,
- NEW_VALIAS), parse.y (fitem): allow dynamic symbols to
- NODE_UNDEF and NODE_ALIAS.
-
-Fri Oct 29 21:27:51 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * io.c (rb_io_check_initialized): new function to check uninitialized
- object. [ruby-talk:118234]
-
- * file.c (rb_file_path), io.c (rb_io_closed): check if initialized.
-
-Fri Oct 29 19:05:33 2004 NARUSE, Yui <naruse@ruby-lang.org>
-
- * ext/nkf: follow nkf2.0.
-
-Fri Oct 29 17:18:22 2004 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * parse.y (ripper_s_allocate): add prototype for Microsoft compiler.
-
- * range.c (range_step, range_each): need cast.
-
-Fri Oct 29 16:34:19 2004 Daiki Ueno <ueno@unixuser.org>
-
- * misc/ruby-mode.el (ruby-parse-partial): Parse the rest of the
- line after opening heredoc identifier. [ruby-dev:24635]
-
-Fri Oct 29 11:35:04 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * parse.y (rb_parser_append_print, rb_parser_while_loop): body node
- can be empty. [ruby-dev:24628]
-
-Fri Oct 29 10:00:30 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * eval.c (rb_thread_start_0): forget to free some memory chunks.
- [ruby-core:03611]
-
- * eval.c (ruby_cleanup): ruby_finalize_1 may cause exception,
- should be wrapped by PUSH_TAG/POP_TAG(). [ruby-dev:24627]
-
-Thu Oct 28 08:42:02 2004 Tanaka Akira <akr@m17n.org>
-
- * io.c (argf_forward): use ANSI style.
- (argf_read): call argf_forward with argv argument.
- [ruby-dev:24624]
-
-Wed Oct 27 09:17:30 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * string.c (str_gsub): use a string object for exception safeness.
- [ruby-dev:24601]
-
-Wed Oct 27 07:38:55 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * node.h (NODE_TYPESHIFT): allow 4 more bits for line numbers.
- [ruby-talk:117841]
-
- * ruby.h (FL_ABLE): nodes are not subject for flag operations.
-
- * io.c (ARGF_FORWARD): should have specified argv explicitly,
- since we no longer have frame->argv saved. [ruby-dev:24602]
-
-Tue Oct 26 23:30:39 2004 Dave Thomas <dave@pragprog.com>
-
- * lib/rdoc/code_objects.rb (RDoc::Context::add_class_or_module):
- Restore correct :nopdoc: behavior with nested classes and modules.
-
-Tue Oct 26 18:21:29 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * string.c (RESIZE_CAPA): check string attribute before modifying
- capacity member of string structure. [ruby-dev:24594]
-
-Tue Oct 26 11:33:26 2004 David G. Andersen <dga@lcs.mit.edu>
-
- * ext/zlib/zlib.c (gzreader_gets): use memchr() to to gain
- performance. [ruby-talk:117701]
-
-Tue Oct 26 10:56:55 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * sprintf.c (rb_f_sprintf): raise ArgumentError for extra
- arguments, unless (digit)$ style used.
-
-Mon Oct 25 18:35:39 2004 WATANABE Hirofumi <eban@ruby-lang.org>
-
- * win32/win32.c (isUNCRoot): should check NUL after '.'.
- [ruby-dev:24590]
-
- * win32/win32.c (isUNCRoot): fixed buffer overrun.
-
-Mon Oct 25 08:03:26 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * eval.c (get_backtrace): ignore illegal backtrace. [ruby-dev:24587]
-
-Sun Oct 24 00:40:50 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * eval.c (rb_load, search_required, rb_require_safe, rb_require): use
- frozen shared string to avoid outside modification. [ruby-dev:24580]
-
-Sat Oct 23 23:40:34 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * io.c (rb_io_fptr_finalize): leave stdin/stdout/stderr open in
- interpreter termination. [ruby-dev:24579]
-
-Sat Oct 23 22:18:32 2004 Guy Decoux <ts@moulon.inra.fr>
-
- * eval.c (frame_free): Guy Decoux solved the leak problem.
- Thanks. [ruby-core:03549]
-
-Sat Oct 23 00:20:55 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * ext/zlib/zlib.c (zstream_append_input): clear klass for z->input
- to avoid potential vulnerability.
-
- * ext/zlib/zlib.c (zstream_run): always use zstream_append_input()
- to avoid SEGV. [ruby-dev:24568]
-
-Fri Oct 22 12:02:28 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * eval.c (rb_alias): was warning for wrong condition.
- [ruby-dev:24565]
-
-Fri Oct 22 10:36:37 2004 GOTOU Yuuzou <gotoyuzo@notwork.org>
-
- * lib/webrick/httprequest.rb (WEBrick::HTTPRequest#meta_vars):
- should check if path_info is not nil.
-
-Fri Oct 22 00:22:31 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * ext/zlib/zlib.c (zstream_shift_buffer): should restore class
- field of a buffer. [ruby-dev:24562]
-
-Fri Oct 22 00:20:33 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * string.c (rb_str_include): should not treat char as negative value.
- [ruby-dev:24558]
-
-Thu Oct 21 21:32:30 2004 IWATSUKI Hiroyuki <don@na.rim.or.jp>
-
- * lib/pstore.rb (PStore#transaction): Use the empty content when a
- file is not found. [ruby-dev:24561]
-
-Thu Oct 21 19:06:15 2004 GOTOU Yuuzou <gotoyuzo@notwork.org>
-
- * lib/webrick/httpresponse.rb (WEBrick::HTTPResponse#send_body_io):
- ensure to close @body. (http://bugs.debian.org/277520)
-
-Thu Oct 21 13:11:31 2004 WATANABE Hirofumi <eban@ruby-lang.org>
-
- * io.c (pipe_open): variable name "fpw" is conflicted.
-
-Thu Oct 21 00:36:41 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * eval.c (rb_alias): should warn on method discarding.
- [ruby-dev:24546]
-
- * ext/zlib/zlib.c (zstream_expand_buffer_into): hide internal
- string buffer by clearing klass. [ruby-dev:24548]
-
- * parse.y (lex_getline): should not touch ruby_debug_lines if
- RIPPER is defined. [ruby-dev:24547]
-
-Wed Oct 20 19:45:13 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * string.c (str_gsub): reentrant check. [ruby-dev:24432]
-
-Wed Oct 20 12:42:53 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * io.c (rb_io_getline): rs modification check should not interfere
- in the loop.
-
-Wed Oct 20 10:31:33 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * parse.y (lex_getline): should update ruby_debug_lines.
-
-Wed Oct 20 04:17:55 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * ext/dbm/dbm.c (fdbm_delete_if): should check if deleting element
- is a string. [ruby-dev:24490]
-
- * ext/sdbm/init.c (fsdbm_delete_if): ditto.
-
-Wed Oct 20 01:37:18 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * array.c (rb_ary_times): Array#* should return an instance of
- the class of right operand. [ruby-dev:24526]
-
- * ext/zlib/zlib.c (zstream_detach_buffer): should not expose
- class-less object to Ruby world. [ruby-dev:24530]
-
- * eval.c (proc_dup): provide Proc#dup as well. [ruby-talk:116915]
-
- * eval.c (ruby_exec): stack marking position may be higher than
- expected. thanks to Guy Decoux. [ruby-core:03527]
-
-Wed Oct 20 00:25:41 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * eval.c (search_required): required name must not be changed before
- loading. [ruby-dev:24492]
-
-Tue Oct 19 23:59:46 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * eval.c (rb_require_safe): provide the feature after loaded.
- [ruby-list:40085]
-
-Tue Oct 19 22:43:12 2004 Dave Thomas <dave@pragprog.com>
-
- * lib/rdoc/parsers/parse_rb.rb (RDoc::RubyParser::parse_attr): If
- we come across 'attr' in a context where it isn't
- followed by a symbol, just issue a warning.
-
-Tue Oct 19 20:32:50 2004 Masaki Suketa <masaki.suketa@nifty.ne.jp>
-
- * ext/win32ole.c(ole_invoke): retrieve the result value when
- retrying the IDispatch::invoke.
-
-Tue Oct 19 17:24:11 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * io.c (read_all): block string buffer modification during
- rb_io_fread() by freezing it temporarily. [ruby-dev:24479]
-
- * dir.c (rb_push_glob): block call at once the end of method.
- [ruby-dev:24487]
-
- * ext/enumerator/enumerator.c (enum_each_slice): remove
- rb_gc_force_recycle() to prevent potential SEGV.
- [ruby-dev:24499]
-
- * ext/zlib/zlib.c (zstream_expand_buffer): hide internal string
- buffer by clearing klass. [ruby-dev:24510]
-
-Tue Oct 19 08:47:21 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * string.c (rb_str_upto): method result must be checked. [ruby-dev:24504]
-
- * eval.c (error_print): ditto. [ruby-dev:24519]
-
-Mon Oct 18 23:37:05 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * marshal.c (r_object0): check inheritance by the internal function.
- [ruby-dev:24515]
-
-Mon Oct 18 11:29:32 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * io.c (rb_io_flags_mode, rb_io_mode_flags): distinguish whether file
- not existing is created. [ruby-dev:24505]
-
-Mon Oct 18 07:26:21 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * file.c (rb_file_truncate): discard read buffer before truncation.
- [ruby-dev:24197]
-
-Mon Oct 18 01:56:03 2004 GOTOU Yuuzou <gotoyuzo@notwork.org>
-
- * lib/webrick/httprequest.rb (WEBrick::HTTPRequest#initialize):
- initial value of accpet-* should be array.
-
-Mon Oct 18 00:42:45 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * ext/socket/socket.c (sock_s_getservbyaname): protocol string
- might be altered. [ruby-dev:24503]
-
- * string.c (rb_str_upto): check if return value from succ is a
- string. [ruby-dev:24504]
-
-Sun Oct 17 23:03:48 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/lib/tk/timer.rb: TkTimer#start and restart accept a block
-
-Sun Oct 17 12:53:46 2004 Masaki Suketa <masaki.suketa@nifty.ne.jp>
-
- * ext/win32ole/win32ole.c (fole_func_methods): correct argument mismatch.
- * ext/win32ole/win32ole.c (fole_get_methods): ditto.
- * ext/win32ole/win32ole.c (fole_put_methods): ditto.
- * ext/win32ole/tests/testWIN32OLE.rb: add test for WIN32OLE#ole_func_methods
- WIN32OLE#ole_get_methods, WIN32OLE#ole_put_methods
-
-Sat Oct 16 14:45:28 2004 Kouhei Sutou <kou@cozmixng.org>
-
- * lib/rss/0.9.rb (RSS::Rss#to_s): removed garbage.
-
-Sat Oct 16 13:42:49 2004 Kouhei Sutou <kou@cozmixng.org>
-
- * lib/rss/: untabified.
- * test/rss/: untabified.
- * lib/rss/0.9.rb (RSS::Rss#to_s): inent -> indent.
-
-Sat Oct 16 13:34:56 2004 Kouhei Sutou <kou@cozmixng.org>
-
- * lib/rss: supported prety print.
- * test/rss/test_1.0.rb: added test for calculating default indent size.
-
-Sat Oct 16 10:56:36 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/mkmf.rb (create_makefile): install-rb is needed for statically
- linked extensions. [ruby-dev:24491]
-
-Fri Oct 15 18:07:08 2004 GOTOU Yuuzou <gotoyuzo@notwork.org>
-
- * ext/openssl/ossl_x509store.c
- (ossl_x509stctx_initialize): setup OpenSSL::X509::StoreContext with
- ossl_x509stctx_* functions instead of X509_STORE_CTX_*.
- (ossl_x509store_set_time): add OpenSSL::X509::Store#time=.
- (ossl_x509stctx_set_time): add OpenSSL::X509::StoreContext#time=.
-
- * test/openssl/ossl_x509store.rb: test certificate validity times.
-
-Fri Oct 15 18:04:35 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/lib/tk/timer.rb: TkTimer.new(interval, loop){ ... } is
- acceptable. Add TkTimer.start ( == new + start ).
-
-Fri Oct 15 12:43:09 2004 Tanaka Akira <akr@m17n.org>
-
- * eval.c (Init_stack): make prototype declaration consistent with
- the definition in gc.c.
-
-Thu Oct 14 13:33:59 2004 Kouhei Sutou <kou@cozmixng.org>
-
- * lib/rss/rss.rb: added link to Tutorial.
-
-Tue Oct 12 21:22:50 2004 GOTOU Yuuzou <gotoyuzo@notwork.org>
-
- * lib/webrick/config.rb:
- add WEBrick::Config::FileHandler[:AcceptableLanguages].
-
- * lib/webrick/httpservlet/filehandler.rb
- (WEBrick::HTTPServlet::FileHandler#set_filename): search files
- having suffix of language-name which Accept-Language header field
- includes if :AcceptableLanguages options is present.
-
- * lib/webrick/httpservlet/filehandler.rb
- (WEBrick::HTTPServlet::FileHandler#get_servlet): new method to
- search servlet correspond to the suffix of filename.
-
- * lib/webrick/httprequest.rb: add attributes access methods: accept,
- accept_charset, accept_encoding, accept_language, content_length
- and content_type.
-
- * lib/webrick/httpresponse.rb: add attribute access methods:
- content_length, content_length=, content_type and content_type=.
-
- * lib/webrick/httputils.rb (WEBrick::HTTPUtils.mime_types):
- use the second suffix to detect media type. (the first suffix
- may be a language name.)
-
- * lib/webrick/httputils.rb (WEBrick::HTTPUtils.parse_qvalues):
- add method to parse Accept header field. it returns an Array of
- values sorted by the qvalues.
-
-Tue Oct 12 15:05:32 2004 WATANABE Hirofumi <eban@ruby-lang.org>
-
- * io.c (MODE_BINMODE, MODE_BINARY): fixed reversed condition.
-
-Mon Oct 11 17:51:34 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * io.c (rb_io_popen): get mode string via rb_io_flags_mode() to
- avoid mode string modification. [ruby-dev:24454]
-
- * io.c (rb_io_getline_fast): should take delim as unsigned char to
- distinguish EOF and '\377'. [ruby-dev:24460]
-
- * io.c (rb_io_getline): add check for RS modification.
- [ruby-dev:24461]
-
- * enum.c (enum_sort_by): use qsort() directly instead using
- rb_iterate(). [ruby-dev:24462]
-
- * enum.c (enum_each_with_index): remove rb_gc_force_recycle() to
- prevent access to recycled object (via continuation for
- example). [ruby-dev:24463]
-
-Mon Oct 11 13:48:20 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/lib/tk/*: untabify
-
-Sun Oct 10 12:32:08 2004 Dave Thomas <dave@pragprog.com>
-
- * lib/rdoc/parsers/parse_rb.rb (RDoc::parse_require): Allow 'require'
- to be used as a variable name
-
-Sun Oct 10 02:49:14 2004 Minero Aoki <aamine@loveruby.net>
-
- * ext/ripper/lib/ripper/filter.rb: require ripper/tokenizer.
-
- * ext/ripper/lib/ripper/filter.rb (parse): argument is optional.
-
-Sun Oct 10 02:43:13 2004 Minero Aoki <aamine@loveruby.net>
-
- * parse.y [ripper]: \n between two comments disappeared.
-
-Sat Oct 9 21:23:37 2004 Kouhei Sutou <kou@cozmixng.org>
-
- * lib/rss/converter.rb: changed to try to use Iconv for default
- conversion.
-
- * lib/rss/rss.rb: 0.0.9 -> 0.1.0.
-
-Sat Oct 9 19:50:36 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * io.c (rb_io_getline): should not treat char as negative value.
- [ruby-dev:24460]
-
-Sat Oct 9 00:25:39 2004 Tanaka Akira <akr@m17n.org>
-
- * io.c (rb_io_fread): rb_thread_wait_fd() was lost.
- [ruby-dev:24457]
-
-Fri Oct 8 21:36:56 2004 Minero Aoki <aamine@loveruby.net>
-
- * lib/fileutils.rb (fu_traverse): return value of Dir.entries is
- reliable. (pass $SAFE=1)
-
- * lib/fileutils.rb (remove_dir): return value of Dir.foreach is
- reliable. (pass $SAFE=1)
-
-Fri Oct 8 09:49:32 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * pack.c (pack_pack): pointer modification check before each
- iteration. [ruby-dev:24445]
-
-Fri Oct 8 01:13:05 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/lib/tk/optiondb.rb: make it more secure
-
-Thu Oct 7 23:47:57 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/lib/tk/scrollbar.rb: When 'set' operation, a scrollbar
- cannot propagate view port information from the source widget
- (that calls 'set') to other assigned widgets.
-
-Thu Oct 7 17:36:25 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/lib/tk.rb: When CHILDKILLED and so on, Tk.errorCode returns
- a Fixnum for 2nd element (it's pid) of the return value.
-
-Thu Oct 7 12:55:04 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * io.c (io_read): should freeze buffer before thread context
- switch. [ruby-dev:24442]
-
- * pack.c (pack_unpack): string conversion should at the top of the
- method. [ruby-dev:24439]
-
- * io.c (io_read): buffer should be frozen only after the length
- check. [ruby-dev:24440]
-
-Thu Oct 7 02:56:43 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/stringio/stringio.c: use FMODE_APPEND.
-
-Thu Oct 7 01:05:33 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/lib/tk.rb: add Tk.errorInfo and Tk.errorCode
-
-Thu Oct 7 00:08:37 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * io.c (rb_io_s_sysopen): preserve path in the buffer allocated by
- ALLOCA_N() to prevent modification. [ruby-dev:24438]
-
-Wed Oct 6 09:21:00 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * io.c (rb_io_mode_flags): preserve append mode flag.
- [ruby-dev:24436]
-
- * io.c (rb_io_modenum_mode): do not use external output buffer.
-
- * string.c (rb_str_justify): differ pointer retrieval to prevent
- padding string modification. [ruby-dev:24434]
-
- * range.c (range_each_func): allow func to terminate loop by
- returning RANGE_EACH_BREAK.
-
- * range.c (member_i): use RANGE_EACH_BREAK. [ruby-talk:114959]
-
-Tue Oct 5 09:53:22 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * io.c (rb_fopen): mode string copy at the lowest level.
-
- * io.c (rb_io_flags_mode): requires output buffer no more. no
- allocation needed.
-
- * array.c (rb_ary_index): takes a block to compare items in an
- array. [ruby-talk:113069] [Ruby2]
-
- * array.c (rb_ary_rindex): ditto.
-
-Mon Oct 4 14:03:40 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * io.c (rb_file_open_internal, rb_io_reopen): fname might be altered
- while GC. [ruby-dev:24408]
-
-Mon Oct 4 12:53:45 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/lib/tk/optiondb.rb: support definition of command
- resources on widgets
-
- * ext/tk/lib/tk/image.rb: bug fix
-
-Sun Oct 3 21:16:05 2004 Shugo Maeda <shugo@ruby-lang.org>
-
- * lib/net/imap.rb (TEXT_REGEXP): allow 8-bit characters for the german
- version of Microsoft Exchange Server.
-
- * lib/net/imap.rb (RTEXT_REGEXP): ditto.
-
- * lib/net/imap.rb (CTEXT_REGEXP): ditto.
-
-Sat Oct 2 20:34:05 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * parse.y (local_vars): moved to struct parser_params.
- [ruby-dev:24391]
-
- * parser.y (stmts): remove suspicious NODE_BEGIN. [ruby-dev:24390]
-
- * node.h (NEW_DVAR): extra semicolon.
-
-Sat Oct 2 00:42:20 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * marshal.c (r_byte): retrieve pointer from string value for each
- time. [ruby-dev:24404]
-
- * marshal.c (r_bytes0): ditto.
-
- * enum.c (sort_by_i): re-entrance check added. [ruby-dev:24399]
-
- * io.c (io_read): should freeze all reading buffer.
- [ruby-dev:24400]
-
- * string.c (rb_str_sum): should use bignums when bits is greater
- than or equals to sizeof(long)*CHAR_BITS. [ruby-dev:24395]
-
- * eval.c (specific_eval): defer pointer retrieval to prevent
- unsafe sourcefile string modification. [ruby-dev:24382]
-
- * string.c (rb_str_sum): wrong cast caused wrong result.
- [ruby-dev:24385]
-
- * enum.c (enum_sort_by): hide temporary array from
- ObjectSpace.each_object. [ruby-dev:24386]
-
- * string.c (rb_str_sum): check was done with false pointer.
- [ruby-dev:24383]
-
- * string.c (rb_str_sum): string may be altered. [ruby-dev:24381]
-
-Fri Oct 1 11:40:14 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * eval.c (rb_f_eval): defer pointer retrieval to prevent unsafe
- sourcefile string modification. [ruby-dev:24373]
-
- * io.c (io_read): block string buffer modification during
- rb_io_fread() by freezing it temporarily. [ruby-dev:24366]
-
- * io.c (rb_io_s_popen): mode argument may be altered.
- [ruby-dev:24375]
-
- * file.c (rb_file_s_basename): ext argument may be altered.
- [ruby-dev:24377]
-
- * enum.c (enum_sort_by): use NODE instead of 2 element arrays.
- [ruby-dev:24378]
-
- * string.c (rb_str_chomp_bang): StringValue() may change the
- receiver. [ruby-dev:24371]
-
-Fri Oct 1 11:25:20 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/lib/tk/grid.rb: revive TkGrid.grid
-
- * ext/tk/lib/tk/pack.rb: revive TkPack.pack
-
- * ext/tk/lib/tk/place.rb: revive TkPlace.place
-
-Thu Sep 30 00:50:44 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tcltklib/tcltklib.c (ip_init): bug fix
-
- * ext/tk/tkutil.c (get_eval_string_core): accept a Regexp object
-
- * ext/tk/lib/multi-tk.rb: fix bug on 'exit' operation
-
- * ext/tk/lib/tk/text.rb: 'tksearch' accepts a Regexp object as a
- matting pattern argument
-
-Wed Sep 29 10:58:07 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * enum.c (sort_by_i): internally used object must not be changed
- outside. [ruby-dev:24368]
-
-Mon Sep 27 21:25:12 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * eval.c (rb_call0): invoke finalizers periodically.
-
- * gc.c (gc_sweep): defer running finalizers. [ruby-dev:24354]
-
- * gc.c (rb_gc_finalize_deferred): run deferred finalizers.
-
-Mon Sep 27 15:01:59 2004 Minero Aoki <aamine@loveruby.net>
-
- * parse.y [ripper]: missing ';'.
-
-Mon Sep 27 13:46:45 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * intern.h, struct.c (rb_struct_s_members, rb_struct_members): public
- accessors. [ruby-dev:24342]
-
- * marshal.c (w_object, r_object0): use accessors.
-
-Mon Sep 27 09:14:03 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * array.c (rb_ary_delete): comparison may change the capacity.
- [ruby-dev:24348]
-
- * array.c (rb_ary_fill): fill should honor length argument.
- [ruby-dev:24346]
-
- * array.c (rb_ary_replace): should not use ptr from shared array.
- [ruby-dev:24345]
-
- * ext/socket/socket.c (s_accept): don't retry for EWOULDBLOCK.
- [ruby-talk:113807]
-
-Sun Sep 26 08:05:10 2004 Tadayoshi Funaba <tadf@dotrb.org>
-
- * lib/date.rb: provides {Time,Date,DateTime}#to_{time,date,datetime}.
-
- * sample/cal.rb: uses getoptlong instead of getopts.
-
-Sat Sep 25 18:39:22 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * array.c (flatten): element size might change during comparison.
- [ruby-dev:24343]
-
-Sat Sep 25 01:52:49 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * struct.c (rb_struct_s_members): wrong call of struct_members.
- [ruby-dev:24333]
-
-Fri Sep 24 16:09:42 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * eval.c (proc_invoke): propagate DVAR_DONT_RECYCLE on termination
- to avoid double call to rb_gc_force_recycle(). [ruby-dev:24311]
-
-Fri Sep 24 08:29:45 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * parse.y (rb_parser_append_print): should handle prelude.
- [llama@u01.gate0]
-
- * parse.y (rb_parser_while_loop): ditto.
-
- * array.c (rb_ary_subseq): original object might be modified after
- sharing data creation. [ruby-dev:24327]
-
- * array.c (rb_ary_replace): ditto.
-
- * array.c (ary_make_shared): freeze shared array. [ruby-dev:24325]
-
- * struct.c (struct_members): always check struct size and size of
- members list in the class. [ruby-dev:24320]
-
-Thu Sep 23 19:48:14 2004 Minero Aoki <aamine@loveruby.net>
-
- * ext/ripper/Makefile.dev: removed.
-
- * ext/ripper/ripper.rb.in: moved to lib/ripper/core.rb.in.
-
- * ext/ripper/lib/ripper/core.rb: new file.
-
- * ext/ripper/lib/ripper/core.rb.in: new file.
-
- * ext/ripper/tools/generate-ripper_rb.rb: change comment.
-
- * test/ripper/*.rb: on__scan event removed.
-
- * test/ripper/*.rb: event name is changed: on__XXX -> on_XXX.
-
-Thu Sep 23 09:29:14 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * string.c (rb_str_sub_bang): check if string is not modified
- during iteration. [ruby-dev:24315]
-
- * hash.c (rb_hash_rehash): replace st_foreach() by its deep
- checking counterpart. [ruby-dev:24310]
-
-Wed Sep 22 14:21:54 2004 Minero Aoki <aamine@loveruby.net>
-
- * parse.y [ripper]: on__scan event removed.
-
- * parse.y [ripper]: event name is changed: on__XXX -> on_XXX.
-
- * ext/ripper/eventids2.c: ditto.
-
- * ext/ripper/ripper.rb.in: ditto.
-
- * ext/ripper/lib/ripper.rb: sync with ripper.rb.in.
-
- * ext/ripper/lib/ripper/tokenizer: ditto.
-
- * ext/ripper/lib/ripper/filter: new file.
-
- * sample/ripper/colorize.rb: new file.
-
- * sample/ripper/strip-comment.rb: new file.
-
-Wed Sep 22 13:50:49 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * hash.c (hash_alloc): was using tbl pointer without
- initialization.
-
-Wed Sep 22 13:38:12 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * hash.c (rb_hash_rehash): add iteration check. [ruby-dev:24301]
-
- * st.c (st_foreach): add deep check.
-
- * hash.c (rb_hash_fetch): returns KeyError instead of IndexError.
-
- * hash.c (env_fetch): ditto.
-
-Wed Sep 22 13:02:02 2004 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * win32/win32.c (rb_w32_call_handler): workaround for Ctrl-C.
-
-Wed Sep 22 09:04:41 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * parse.y: remove global variables ruby_eval_tree and
- ruby_eval_tree_begin.
-
- * array.c (rb_ary_collect_bang): element size might change during
- comparison. [ruby-dev:24300]
-
- * array.c (rb_ary_reject_bang): ditto. [ruby-dev:24300]
-
- * array.c (rb_ary_eql): ditto. [ruby-dev:24300]
-
-Wed Sep 22 00:11:12 2004 Dave Thomas <dave@pragprog.com>
-
- * process.c: Add documentation for fork()
-
-Tue Sep 21 18:29:49 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * array.c (rb_ary_uniq_bang): element size might change during
- comparison. [ruby-dev:24298]
-
-Mon Sep 20 17:46:51 2004 Minero Aoki <aamine@loveruby.net>
-
- * ext/ripper/lib/ripper/tokenizer.rb: fix typo.
-
-Mon Sep 20 17:38:43 2004 Minero Aoki <aamine@loveruby.net>
-
- * test/ripper/test_scanner_events.rb: tokens must be reordered.
-
- * ext/ripper/lib/ripper/tokenizer.rb: ditto.
-
-Mon Sep 20 16:58:16 2004 Minero Aoki <aamine@loveruby.net>
-
- * parse.y [ripper]: do not delay dispatching.
-
- * ext/ripper/lib/ripper/tokenizer.rb: sort tokens by right order.
-
-Mon Sep 20 15:17:47 2004 Minero Aoki <aamine@loveruby.net>
-
- * ext/ripper/lib/ripper/tokenizer.rb: new file.
-
-Mon Sep 20 15:13:52 2004 Minero Aoki <aamine@loveruby.net>
-
- * test/ripper/test_scanner_events.rb: test #lineno and #column.
-
-Mon Sep 20 14:50:17 2004 Minero Aoki <aamine@loveruby.net>
-
- * parse.y [ripper]: delayed heredocument events should be
- dispatched after EOF.
-
-Mon Sep 20 14:39:42 2004 Minero Aoki <aamine@loveruby.net>
-
- * parse.y [ripper]: adjust lineno and columns for multi-line
- strings.
-
- * parse.y [ripper]: delay heredocument events until seeing
- end-of-line.
-
- * parse.y [ripper]: event on__heredoc_contentn ->
- on__tstring_content.
-
- * ext/ripper/eventids2.c: ditto.
-
- * ext/ripper/lib/ripper.rb: sync with eventids2.c.
-
- * test/ripper/test_scanner_events.rb: test it.
-
- * ext/ripper/tools/generate-ripper_rb.rb: show basename of input.
-
- * ext/ripper/Makefile.dev: support objdir build.
-
-Mon Sep 20 13:22:55 2004 Minero Aoki <aamine@loveruby.net>
-
- * parse.y [ripper]: remove Ripper#pos.
-
- * parse.y [ripper]: Ripper#column should return the column of the
- current token.
-
-Mon Sep 20 12:02:41 2004 Minero Aoki <aamine@loveruby.net>
-
- * parse.y [ripper]: unify old_lex_p and token_head.
-
- * test/ripper/test_scanner_events.rb: now \r\n is saved correctly.
-
- * parse.y: new macro lex_goto_eol() for next change.
-
-Mon Sep 20 11:01:55 2004 Minero Aoki <aamine@loveruby.net>
-
- * parse.y [ripper]: adjust line number for heredoc. [ruby-dev:24272]
-
-Mon Sep 20 04:49:22 2004 Minero Aoki <aamine@loveruby.net>
-
- * ext/ripper/ripper.rb.in: new const Ripper::PARSER_EVENT_TABLE.
-
- * ext/ripper/ripper.rb.in: new const Ripper::SCANNER_EVENT_TABLE.
-
- * ext/ripper/lib/ripper.rb: sync with ripper.rb.in.
-
-Mon Sep 20 04:13:00 2004 Minero Aoki <aamine@loveruby.net>
-
- * test/ripper/test_scanner_events.rb: test spaces before heredoc
- mark.
-
-Mon Sep 20 03:46:54 2004 Minero Aoki <aamine@loveruby.net>
-
- * parse.y [ripper]: spaces before heredoc marker was lost.
- [ruby-dev:24272]
-
- * keywords: rb_reserved_word() should be defined only in ruby
- core. [ruby-dev:24272]
-
- * lex.c: sync with keywords.
-
- * ext/ripper/ripper.rb.in (parse): fix typo.
-
- * ext/ripper/lib/ripper.rb: sync with ripper.rb.in.
-
-Mon Sep 20 03:37:59 2004 Tanaka Akira <akr@m17n.org>
-
- * ext/zlib/zlib.c (gzfile_read_raw): call readpartial at first.
- (Zlib::GzipReader#readpartial): new method.
-
-Mon Sep 20 00:24:19 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * enum.c (enum_sort_by): do not use qsort directly. use
- rb_ary_sort_bang() instead. [ruby-dev:24291]
-
- * enum.c (enum_sort_by): pedantic type check added.
- [ruby-dev:24291]
-
- * hash.c (rb_hash_foreach_iter): check iter_lev after each
- iteration. [ruby-dev:24289]
-
- * array.c (rb_ary_and): element size might change during
- comparison. [ruby-dev:24290]
-
- * array.c (rb_ary_or): ditto. [ruby-dev:24292]
-
- * array.c (rb_ary_equal): wrong fix. [ruby-dev:24286]
-
-Sat Sep 18 15:02:22 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * array.c (rb_ary_equal): element size might change during
- comparison. [ruby-dev:24254]
-
- * array.c (rb_ary_diff): ditto. [ruby-dev:24274]
-
- * array.c (rb_ary_select): ditto. [ruby-dev:24278]
-
- * array.c (rb_ary_delete): ditto. [ruby-dev:24283]
-
- * array.c (rb_ary_rindex): ditto. [ruby-dev:24275]
-
- * array.c (rb_ary_initialize): element size might change during
- initializing block. [ruby-dev:24284]
-
-Sat Sep 18 14:10:23 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * dir.c (dir_s_chdir): avoid memory leak and unnecessary chdir to
- the original directory when exception has caused in changing
- direcotry or within block. thanks to Johan Holmberg
- <holmberg@iar.se> [ruby-core:03446]
-
-Fri Sep 17 20:29:33 2004 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * parse.y: add prototypes for Microsoft compiler.
-
- * ext/ripper/depend (parse.obj): lex.c exists at hdrdir.
-
- * {bcc32,win32,wince}/Makefile.sub (YACC, YFLAGS, parse.c):
- use bison.
-
-Fri Sep 17 17:11:08 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * array.c (rb_ary_delete): element comparison might change array
- size. [ruby-dev:24273]
-
- * parse.y: make ruby parser reentrant. merge ripper parser to the
- real one. this change makes ruby require bison.
-
- * file.c (rb_file_truncate): clear stdio buffer before truncating
- the file. [ruby-dev:24191]
-
- * ext/digest/digest.c: use rb_obj_class() instead of CLASS_OF
- which might return singleton class. [ruby-dev:24202]
-
-Fri Sep 17 16:07:09 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/lib/multi-tk.rb: improve exit operation
-
-Fri Sep 17 15:01:57 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tcltklib/tcltklib.c: fix SEGV when (thread_)vwait or
- (thread_)tkwait
-
- * ext/tk/lib/tk.rb: add alias wait_window to wait_destroy
-
- * ext/tk/lib/multi-tk.rb: support calling 'mainloop' on slave
- interpreters (however, the 'real' eventloop must be run on the
- Default Master IP)
-
- * ext/tk/lib/remote-tk.rb: follow the changes of ext/tk/lib/multi-tk.rb
-
- * ext/tk/sample/remote-ip_sample2.rb: ditto
-
- * ext/tk/sample/tkoptdb-safeTk.rb: ditto
-
-Thu Sep 16 18:12:13 2004 GOTOU Yuuzou <gotoyuzo@notwork.org>
-
- * lib/webrick/cgi.rb (WEBrick::CGI#start): should set REMOTE_USER
- to request.user attribute.
-
- * lib/webrick/httpservlet/filehandler.rb
- (WEBrick::HTTPServlet::FileHandler#initialize): should expand
- the pathname of document root directory.
-
-Thu Sep 16 15:49:28 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * string.c (rb_str_intern): protect string argument from GC.
- [ruby-core:03411]
-
-Wed Sep 15 20:22:23 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/sample/tkoptdb-safeTk.rb: fix a bug depend on the changes
- of MultiTkIp
-
-Tue Sep 14 23:54:11 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/lib/multi-tk.rb: MultiTkIp#eval_string was en-bugged by
- the previous changes.
-
-Tue Sep 14 23:45:44 2004 Dave Thomas <dave@pragprog.com>
-
- * lib/rdoc/ri/ri_formatter.rb (RI::TextFormatter::TextFormatter.for):
- Add Eric Hodel's simpleformatter.
-
-Tue Sep 14 22:11:08 2004 Minero Aoki <aamine@loveruby.net>
-
- * parse.y [ripper]: Add rdoc.
-
-Tue Sep 14 20:24:49 2004 Minero Aoki <aamine@loveruby.net>
-
- * parse.y [ripper]: space event is on__sp, not on__lwsp.
- [ruby-dev:24257]
-
- * ext/ripper/eventids2.c: ditto.
-
- * ext/ripper/lib/ripper.rb: ditto.
-
- * ext/ripper/depend (ripper.o): No action is needed.
- [ruby-dev:24260]
-
- * ext/ripper/depend: Borland make does not accept pipes in
- Makefile rules. [ruby-dev:24589]
-
- * ext/ripper/depend: separate rules for developpers.
-
- * ext/ripper/Makefile.dev: new file.
-
- * ext/ripper/MANIFEST: add Makefile.dev.
-
- * ext/ripper/tools/generate-eventids1.rb: read from file, not
- stdin.
-
- * ext/ripper/extconf.rb: clean ripper.E.
-
- * ext/ripper/tools/generate-ripper_rb.rb: #include ids1/ids2
- function was lost.
-
- * ext/ripper/tools/generate-ripper_rb.rb: SCANNER_EVENTS wrongly
- contained parser events.
-
- * ext/ripper/lib/ripper.rb: ditto.
-
-Tue Sep 14 16:59:37 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tcltklib/tcltklib.c: fix SEGV
-
- * ext/tk/lib/multi-tk.rb: improve safe-level handling of argument proc
-
- * ext/tk/sample/multi-ip_sample.rb: rename of old 'safe-tk.rb'
-
- * ext/tk/sample/safe-tk.rb: new sample script
-
-
-Mon Sep 13 21:33:40 2004 GOTOU Yuuzou <gotoyuzo@notwork.org>
-
- * ext/openssl/ossl_x509name.c (ossl_x509name_to_s): add optional
- second argument to specify the output format (see also
- X509_NAME_print_ex).
-
- * ext/openssl/ossl_x509name.c (ossl_x509name_init): new constants:
- OpenSSL::X509::Name::COMPAT, OpenSSL::X509::Name::RFC2253,
- OpenSSL::X509::ONELINE, OpenSSL::X509::MULTILINE.
-
- * ext/openssl/lib/openssl/x509.rb (OpenSSL::X509::Name::RFC2253DN):
- new module to provide the parse for RFC2253 DN format.
-
- * ext/openssl/lib/openssl/x509.rb (OpenSSL::X509::Name.parse_rfc2253):
- new method to parse RFC2253 DN format.
-
-Mon Sep 13 19:16:33 2004 WATANABE Hirofumi <eban@ruby-lang.org>
-
- * eval.c (blk_copy_prev): need frame_dup(). [ruby-dev:24103]
-
-Mon Sep 13 16:23:27 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/lib/multi-tk.rb: MultiTkIp.new_master and new_slave accept
- safe-level value argument
-
-Mon Sep 13 10:48:37 2004 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * win32/win32.c (rb_w32_getpid): don't need to use _getpid() on
- mswin32 and mingw32.
-
-Mon Sep 13 10:22:05 2004 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * object.c (nil_inspect): fix typo.
-
-Mon Sep 13 09:29:58 2004 Minero Aoki <aamine@loveruby.net>
-
- * ext/ripper/depend: (nmake hack) prepend "./" to ripper.c to
- avoid {$(srcdir)}.
-
-Mon Sep 13 06:43:42 2004 Minero Aoki <aamine@loveruby.net>
-
- * ext/ripper/tools/list-parse-event-ids.rb: does not use getopts.
-
- * ext/ripper/tools/list-scan-event-ids.rb: ditto.
-
-Mon Sep 13 02:42:28 2004 Minero Aoki <aamine@loveruby.net>
-
- * ext/Setup: add ripper.
-
- * ext/Setup.atheos: ditto.
-
- * ext/Setup.dj: ditto.
-
- * ext/Setup.emx: ditto.
-
- * ext/Setup.nt: ditto.
-
- * ext/Setup.x68: ditto.
-
-Mon Sep 13 02:26:31 2004 Minero Aoki <aamine@loveruby.net>
-
- * ext/ripper: ripper extension added.
-
- * ext/ripper/MANIFEST: new file.
-
- * ext/ripper/README: new file.
-
- * ext/ripper/depend: new file.
-
- * ext/ripper/extconf.rb: new file.
-
- * ext/ripper/eventids2.c: new file.
-
- * ext/ripper/ripper.rb.in: new file.
-
- * ext/ripper/lib/ripper.rb: new file.
-
- * ext/ripper/test/check-event-arity.rb: new file.
-
- * ext/ripper/test/check-event-coverage.sh: new file.
-
- * ext/ripper/test/check-scanner-event-coverage.rb: new file.
-
- * ext/ripper/test/list-called-events.rb: new file.
-
- * ext/ripper/test/src_rb: new file.
-
- * ext/ripper/test/validate.rb: new file.
-
- * ext/ripper/tools/generate-eventids1.rb: new file.
-
- * ext/ripper/tools/generate-param-macros.rb: new file.
-
- * ext/ripper/tools/generate-ripper_rb.rb: new file.
-
- * ext/ripper/tools/list-parse-event-ids.rb: new file.
-
- * ext/ripper/tools/list-scan-event-ids.rb: new file.
-
- * ext/ripper/tools/preproc.rb: new file.
-
- * ext/ripper/tools/strip.rb: new file.
-
- * test/ripper: ripper tests added.
-
- * test/ripper/dummyparser.rb: new file.
-
- * test/ripper/test_parser_events.rb: new file.
-
- * test/ripper/test_scanner_events.rb: new file.
-
-Mon Sep 13 01:03:02 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tcltklib/tcltklib.c: improve control of preserv/release tcltkip
-
- * ext/tcltklib/tcltklib.c: store original 'exit' command
-
- * ext/tk/tkutil.c: fix(?) SEGV
-
-Mon Sep 13 00:22:53 2004 Minero Aoki <aamine@loveruby.net>
-
- * parse.y: fix file header.
-
-Mon Sep 13 00:20:39 2004 Minero Aoki <aamine@loveruby.net>
-
- * parse.y: ripper merged.
-
- * lex.c: ditto.
-
- * keywords: ditto.
-
-Sun Sep 12 23:53:17 2004 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
-
- * util.c (ruby_strdup): remove unnecessary code. (xmalloc never
- returns NULL.)
-
- * util.c (ruby_getcwd): fix memory leak on failure.
-
-Sun Sep 12 02:41:58 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tcltklib/tcltklib.c: add TclTkIp#allow_ruby_exit? and
- allow_ruby_exit=
-
- * ext/tk/lib/multi-tk.rb: ditto.
-
- * ext/tk/lib/remote-tk.rb: ditto.
-
- * ext/tcltklib/MANUAL.euc: ditto.
-
- * ext/tcltklib/MANUAL.eng: ditto.
-
- * ext/tcltklib/tcltklib.c: fix some reasons of SEGV
-
- * ext/tk/tkutil.c: ditto.
-
- * ext/tk/lib/multi-tk.rb: ditto.
-
- * ext/tk/lib/tk/timer.rb: ditto.
-
-Sat Sep 11 16:09:46 2004 Dave Thomas <dave@pragprog.com>
-
- * lib/rdoc/parsers/parse_rb.rb: Fix up cross-file class merging.
-
-Fri Sep 10 20:18:05 2004 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
-
- * ext/tcltklib/tcltklib.c (lib_merge_tklist): fix suspicious
- pointer conversion.
-
-Fri Sep 10 19:16:24 2004 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
-
- * bcc32/Makefile.sub: bccwin32 port starts to use RTL dll.
- (need to rebuild all) [ruby-dev:24138]
-
- * win32/win32.{h,c}: ditto.
-
-Fri Sep 10 15:55:59 2004 Minero Aoki <aamine@loveruby.net>
-
- * lib/fileutils.rb (mkdir_p): should pass mode argument to
- Dir.mkdir. [ruby-dev:24242]
-
- * test/fileutils/test_fileutils.rb: test it.
-
-Fri Sep 10 02:43:54 2004 Dave Thomas <dave@pragprog.com>
-
- * lib/rdoc/generators/template/kilmer.rb: James Buck's
- patch for call-seq.
-
-Thu Sep 9 13:58:56 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tcltklib/tcltklib.c (ip_init): change flag value for setting
- 'argv' and 'argv0' variable
-
- * ext/tk/lib/remote-tk.rb: follow changes of multi-tk.rb
-
-Thu Sep 9 11:46:18 2004 Dave Thomas <dave@pragprog.com>
-
- * lib/rdoc/parsers/parse_c.rb (RDoc::C_Parser::do_classes): Allow
- spaces aroun parameter to define_method_under (James Buck)
-
-Wed Sep 8 18:44:03 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/stringio/stringio.c (strio_write): zero fill a gap if exsts.
- [ruby-dev:24190]
-
-Wed Sep 8 15:19:49 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tcltklib/tcltklib.c (ip_init): cannot create a IP at level 4
-
- * ext/tk/lib/multi-tk.rb: improve 'exit' operation, security check,
- and error treatment
-
- * ext/tk/lib/multi-tk.rb: allow a trusted slave IP to create slave IPs
-
- * ext/tk/lib/tk/listbox.rb: add TkListbox#value, value=, clear, and
- erase
-
- * ext/tk/lib/tk/text.rb: add TkText#clear and erase
-
-Tue Sep 7 15:17:49 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/socket/socket.c (ruby_connect): break immediately if a
- socket is non-blocking. [ruby-talk:111654]
-
-Tue Sep 7 12:48:22 2004 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * {bcc32,win32,wince}/Makefile.sub (config.h): add fcntl.
-
- * win32/win32.[ch] (fcntl): ditto.
-
- * win32/win32.c (rb_w32_connect): support nonblocking mode.
-
- * ext/socket/socket.c (wait_connectable, ruby_connect): support
- nonblocking connect on various platforms.
-
-Mon Sep 6 11:00:47 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * dir.c (dir_s_chdir): the patch to shut up false warning when
- exception occurred within a block. a patch was given from Johan
- Holmberg <holmberg at iar.se>. [ruby-core:03292]
-
-Mon Sep 6 10:57:40 2004 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
-
- * ext/tk/lib/tk/menu.rb(TkOptionMenubutton#insert): call correct method
-
-Mon Sep 6 07:51:42 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * eval.c (cvar_cbase): singletons should refer to outer cvar scope.
- [ruby-dev:24223]
-
- * eval.c (rb_load): should preserve previous ruby_wrapper value.
- [ruby-dev:24226]
-
-Sat Sep 4 01:14:57 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * eval.c (cvar_cbase): class variables cause SEGV in
- instance_eval() for fixnums and symbols. [ruby-dev:24213]
-
-Fri Sep 3 17:47:58 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * struct.c (make_struct): remove redefining constant when
- conflict. [ruby-dev:24210]
-
-Fri Sep 3 11:31:44 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/lib/tk.rb: Tk.after makes TkCore::INTERP.tk_cmd_tbl grow
- [ruby-dev:24207]
+ * ext/stringio/stringio.c (strio_each):
+ Fix exception message and don't raise immediately if block is not
+ given.
+ Fixes [ruby-dev:43394].
-Fri Sep 3 02:12:48 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+ * test/stringio/test_stringio.rb (test_each_line_limit_0):
+ Fix test for above.
- * ext/tcltklib/tcltklib.c: fix typo [ruby-talk:111266]
+Sat Apr 9 21:54:15 2011 Shota Fukumori <sorah@tubusu.net>
- * ext/tk/lib/tk/text.rb: fix typo
+ * ext/stringio/stringio.c (strio_each, strio_readlines):
+ limit must not be zero. Fixes [ruby-dev:43392].
- * ext/tk/lib/multi-tk.rb: improve safe-level treatment on slave IPs
+ * test/stringio/test_stringio.rb: Add tests for above.
-Fri Sep 3 01:54:20 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Sat Apr 9 18:01:36 2011 Tanaka Akira <akr@fsij.org>
- * ext/extmk.rb (extmake): extact target prefix from Makefiles.
+ * include/ruby/util.h: parenthesize macro arguments.
- * ext/extmk.rb: already built-in libraries satisfy dependencies.
- [ruby-dev:24028]
+Fri Apr 8 16:01:56 2011 NARUSE, Yui <naruse@ruby-lang.org>
-Wed Sep 1 21:16:50 2004 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+ * ext/stringio/stringio.c (strio_getline): check whether str is
+ a string when str and lim are given.
+ https://twitter.com/watson1978/status/56225052152168449
- * ext/tk/lib/tk/spinbox.rb: fix typo
+Thu Apr 7 20:03:52 2011 Tanaka Akira <akr@fsij.org>
-Wed Sep 1 19:28:37 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * include/ruby/io.h: parenthesize macro arguments.
- * process.c (rb_proc_exec): label cannot precede variable declarations.
+Wed Apr 6 21:08:31 2011 Tanaka Akira <akr@fsij.org>
-Tue Aug 31 18:20:49 2004 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+ * include/ruby/intern.h: parenthesize macro arguments.
- * ext/tk/tkutil.c (cbsubst_init): fix memory leak
+Wed Apr 6 15:12:40 2011 NARUSE, Yui <naruse@ruby-lang.org>
- * ext/tk/tkutil.c (cbsubst_get_all_subst_keys): fix SEGV
+ * ext/openssl/ossl_pkey_dh.c (ossl_dh_initialize):
+ pop pushed error after each try of reading. fixes #4550
-Tue Aug 31 16:04:22 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+ * ext/openssl/ossl_pkey_dsa.c (ossl_dsa_initialize): ditto.
- * ext/tcltklib/tcltklib.c (ip_delete): when a tcltkip is deleted,
- destroy its root widget
+ * ext/openssl/ossl_pkey_ec.c (ossl_ec_initialize): ditto.
-Tue Aug 31 12:30:36 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+Wed Apr 6 11:36:44 2011 NARUSE, Yui <naruse@ruby-lang.org>
- * ext/tcltklib/tcltklib.c (del_root): fix SEGV
+ * ext/openssl/ossl_pkey_rsa.c (ossl_rsa_initialize):
+ pop pushed error after each try of reading. fixes #4550
-Mon Aug 30 21:50:14 2004 Dave Thomas <dave@pragprog.com>
+Tue Apr 5 20:33:43 2011 Tanaka Akira <akr@fsij.org>
- * object.c: Add RDoc for Module.included.
+ * include/ruby/encoding.h: parenthesize macro arguments.
-Mon Aug 30 23:11:06 2004 Dave Thomas <dave@pragprog.com>
+Mon Apr 4 22:02:16 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * lib/rdoc/ri/ri_driver.rb (and others): ri now merges documentation
- if it finds the same class in multiple places.
+ * ext/io/nonblock/nonblock.c (io_nonblock_set): Avoid F_SETFL if
+ we're not changing the O_NONBLOCK bit. F_SETFL is an expensive
+ operation since it needs to affect all processes with the same
+ file object.
+ The patch is written by Eric Wong. [ruby-core:35556]
-Mon Aug 30 22:40:30 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+Mon Apr 4 21:41:26 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * ext/tk/lib/multi-tk.rb: 'restart' method accepts arguments
+ * io.c (rb_io_syswrite): While local FS writes are usually
+ buffered, the buffers can be full or the file opened with
+ O_SYNC. IO#syswrite can also be used on blocking IOs
+ (pipe/socket) just like IO#write.
+ The patch is written by Eric Wong. [ruby-core:35554]
-Mon Aug 30 15:10:46 2004 WATANABE Hirofumi <eban@ruby-lang.org>
+Mon Apr 4 11:50:40 2011 NAKAMURA Usaku <usa@ruby-lang.org>
- * configure.in (GNU/k*BSD): fixed FTBFS on GNU/k*BSD. [ruby-dev:24051]
+ * test/test_tempfile.rb: simply ignore platform dependent testcases
+ instead of skipping.
-Sun Aug 29 14:08:56 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+Sun Apr 3 22:52:22 2011 CHIKANAGA Tomoyuki <nagachika00@gmail.com>
- * ext/tcltklib/tcltklib.c: compile error on bcc32 [ruby-dev:24081]
+ * ext/syslog/syslog.c: improve rdoc.
+ a patch by Jonas Pfenniger. [ruby-core:35592] fixes #4545
- * ext/tk/lib/multi-tk.rb: MultiTkIp#eval_string does not work
+Sun Apr 3 22:10:09 2011 Tanaka Akira <akr@fsij.org>
-Sat Aug 28 23:04:41 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * ext/zlib/zlib.c: parenthesize macro arguments.
- * bignum.c (rb_big_and): protect parameters from GC.
- [ruby-talk:110664]
+Sun Apr 3 21:33:58 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
-Fri Aug 27 12:13:50 2004 Tanaka Akira <akr@m17n.org>
+ * configure.in: disable fdatasync again on Mac OS X.
+ [ruby-core:35493][Bug #4500]
- * ext/stringio/stringio.c (Init_stringio): add StringIO#readpartial as
- an alias for StringIO#sysread.
+Sun Apr 3 21:16:20 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
-Fri Aug 27 10:14:21 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * io.c (io_reopen): IO#close releases GVL if possible.
+ close() may block for certain file types (NFS, SO_LINGER
+ sockets, inotify), so let other threads run. The patch was
+ created by Eric Wong [ruby-core:35555][Bug #4527]
- * process.c (rb_proc_exec): strip trailing spaces. [ruby-dev:24143]
+ * io.c (fptr_finalize): ditto.
- * win32/win32.c (CreateChild): ditto.
+ * io.c (maygvl_fclose): new.
+ * io.c (nogvl_fclose): ditto.
+ * io.c (maygvl_close): ditto.
+ * io.c (nogvl_close): ditto.
-Thu Aug 26 04:38:29 2004 Dave Thomas <dave@pragprog.com>
+Fri Apr 1 22:25:50 2011 Tanaka Akira <akr@fsij.org>
- * eval.c (return_jump): Minor typo in error message. Now reads
- "return can't jump across threads".
+ * ext/syslog/syslog.c: parenthesize macro arguments.
-Wed Aug 25 15:18:52 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Fri Apr 1 18:53:06 2011 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
- * eval.c (rb_longjmp): Exception#to_str is no longer defined.
+ * lib/webrick/cookie.rb (WEBrick::Cookie.parse): 'white space is
+ permitted between tokens' according to RFC2965. Though 'Netscape
+ spec' does not define the syntax clearly, make it tolerant as a
+ server. As a real-world example, rest-client gem sends
+ 'Cookie: foo=1;bar=2'
-Wed Aug 25 11:39:10 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * test/webrick/test_cookie.rb (test_parse_non_whitespace): test it.
- * error.c (exc_equal): exceptions are equal if they share same
- class, message and backtrace. [ruby-talk:110354]
+Fri Apr 1 13:19:20 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * error.c (name_err_mesg_equal): ditto.
+ * vm_core.h (RUBY_VM_CHECK_INTS_TH): merge a patch by ko1
+ in [ruby-dev:43373].
-Tue Aug 24 16:41:48 2004 Shugo Maeda <shugo@ruby-lang.org>
+Thu Mar 31 23:15:46 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * lib/cgi/session.rb (CGI::Session::FileStore#initialize): do not
- use a session id as a filename.
+ * misc/ruby-mode.el (ruby-brace-to-do-end, ruby-do-end-to-brace):
+ adjust space between block beginning and block arguments
- * lib/cgi/session/pstore.rb (CGI::Session::PStore#initialize): ditto.
+Thu Mar 31 20:42:05 2011 Tanaka Akira <akr@fsij.org>
- * lib/cgi/session/pstore.rb (CGI::Session::PStore#initialize): use
- Dir::tmpdir.
+ * ext/strscan/strscan.c: parenthesize macro arguments.
-Tue Aug 24 14:32:17 2004 Shugo Maeda <shugo@ruby-lang.org>
+Thu Mar 31 18:06:12 2011 Shugo Maeda <shugo@ruby-lang.org>
- * lib/cgi/session.rb (CGI::Session::FileStore#initialize): untaint
- session id after check.
+ * vm_insnhelper.c (vm_get_ev_const): should ignore crefs with
+ the NODE_FL_CREF_PUSHED_BY_EVAL flag.
-Tue Aug 24 08:57:51 2004 GOTOU Yuuzou <gotoyuzo@notwork.org>
+Thu Mar 31 16:49:56 2011 Shugo Maeda <shugo@ruby-lang.org>
- * ext/openssl/ossl_x509attr.c (ossl_x509attr_initialize): d2i
- functions may replace the pointer indicated by the first argument.
+ * vm_insnhelper.c (vm_get_ev_const): search root cref properly.
+ [ruby-dev:43365]
- * ext/openssl/ossl_x509ext.c (ossl_x509ext_initialize): ditto.
+Thu Mar 31 14:50:25 2011 Shugo Maeda <shugo@ruby-lang.org>
- * ext/openssl/ossl_x509name.c (ossl_x509name_initialize): ditto.
+ * eval.c (rb_mod_s_constants): should ignore crefs with
+ the NODE_FL_CREF_PUSHED_BY_EVAL flag.
-Mon Aug 23 12:43:32 2004 NAKAMURA Usaku <usa@ruby-lang.org>
+Wed Mar 30 22:55:47 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * lib/resolv.rb (Config.default_config_hash): when multiple domains
- are set, Win32::Resolv.get_resolv_info returns Array.
+ * misc/ruby-mode.el (ruby-toggle-block): toggle do/end and {}.
-Sun Aug 22 16:27:38 2004 GOTOU Yuuzou <gotoyuzo@notwork.org>
+ * misc/ruby-mode.el (ruby-move-to-block): move to opening of
+ block.
- * ext/openssl/ossl_ssl.c (ossl_ssl_read):
- - should return an empty string if specified length to read is 0.
- - should check for pending data and wait for fd before reading.
- - call underlying IO's sysread if SSL session is not started.
- [ruby-dev:24072], [ruby-dev:24075]
+Wed Mar 30 14:35:15 2011 Shugo Maeda <shugo@ruby-lang.org>
- * ext/openssl/ossl_ssl.c (ossl_ssl_write):
- - call underlying IO's syswrite if SSL session is not started.
+ * vm_insnhelper.h (COPY_CREF): should copy
+ the NODE_FL_CREF_PUSHED_BY_EVAL flag to hide constants from
+ methods defined by class_eval. [ruby-dev:43365]
- * ext/openssl/ossl_ssl.c (ossl_ssl_pending): new method
- OpenSSL::SSL#pending.
+Wed Mar 30 00:24:53 2011 Tanaka Akira <akr@fsij.org>
- * ext/openssl/lib/openssl/buffering.rb: should not use select.
+ * ext/stringio/stringio.c: parenthesize macro arguments.
-Sun Aug 22 01:10:36 2004 GOTOU Yuuzou <gotoyuzo@notwork.org>
+Tue Mar 29 21:51:31 2011 CHIKANAGA Tomoyuki <nagachika00@gmail.com>
- * lib/webrick/httpproxy.rb (WEBrick::HTTPProxyServer#proxy_connect):
- should call :ProxyContentHandler before finishing CONNECT.
+ * object.c (rb_String): Kernel#String should call to_str before to_s.
-Sat Aug 21 06:41:16 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Tue Mar 29 10:28:08 2011 NAKAMURA Usaku <usa@ruby-lang.org>
- * ext/tcltklib/extconf.rb (find_tcl, find_tk): find stub library.
+ * test/webrick/test_filehandler.rb
+ (WEBrick::TestFileHandler#test_short_filename): the cgi doesn't exist
+ on current directory.
- * lib/mkmf.rb (arg_config, with_config): deal with '-' and '_'
- uniformly. [ruby-dev:24118]
+Tue Mar 29 05:19:57 2011 Tanaka Akira <akr@fsij.org>
-Fri Aug 20 14:49:42 2004 NAKAMURA Usaku <usa@ruby-lang.org>
+ * ext/socket/raddrinfo.c: parenthesize macro arguments.
- * io.c (rb_io_check_writable): no need to check read buffer if
- already changed to write mode.
+Tue Mar 29 00:03:51 2011 Tajima Akio <artonx@yahoo.co.jp>
-Fri Aug 20 11:46:43 2004 UENO Katsuhiro <katsu@blue.sky.or.jp>
+ * test/webrick/test_filehandler.rb (test_short_filename):
+ read real short filename by cmd because smb mounted files
+ have different naming convention.
- * ext/zlib/zlib.c: GzipReader#ungetc caused crc error.
+Mon Mar 28 11:38:08 2011 NARUSE, Yui <naruse@ruby-lang.org>
-Thu Aug 19 16:29:45 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+ * ext/date/date_core.c (date_s_today): use int for year.
- * ext/tk/lib/tk.rb: Fail to treat a hash value of 'font' option.
+ * ext/date/date_core.c (datetime_s_now): ditto.
- * ext/tk/lib/tk.rb: bindinfo cannot return '%' substiturion infomation.
+Mon Mar 28 11:07:41 2011 NAKAMURA Usaku <usa@ruby-lang.org>
- * ext/tk/lib/menu.rb: typo bug.
+ * ext/extmk.rb: set MFLAGS from MAKEFLAGS when using nmake.
-Thu Aug 19 15:15:24 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+Mon Mar 28 11:07:00 2011 NAKAMURA Usaku <usa@ruby-lang.org>
- * dir.c (free_dir): fix memory leak. reported by yamamoto
- madoka.
+ * common.mk (love): all you need is love.
-Thu Aug 19 09:19:27 2004 NAKAMURA Usaku <usa@ruby-lang.org>
+Sun Mar 27 23:16:31 2011 Tanaka Akira <akr@fsij.org>
- * configure.in, win32/Makefile.sub (LIBS): need to link shell32
- library for SH* functions on mswin32 and mingw32.
+ * ext/socket/ipsocket.c: parenthesize macro arguments.
- * wince/Makefile.sub (LIBS): need to link ceshell library for SH*
- functions on mswince.
+Sun Mar 27 16:55:34 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Thu Aug 19 03:07:00 2004 why the lucky stiff <why@ruby-lang.org>
+ * misc/ruby-mode.el (ruby-mode-map): remove unnecessary
+ binding. fixes
+ http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=468952
- * lib/yaml/baseemitter.rb: folding now handles double-quoted strings,
- fixed problem with extra line feeds at end of folding, whitespace
- opening scalar blocks.
+ * misc/ruby-mode.el: suppress warnings at byte compile. fixes
+ http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=502926
- * lib/yaml/rubytypes.rb: subtelties in handling strings with
- non-printable characters and odd whitespace patterns.
+Sun Mar 27 11:18:35 2011 Tadayoshi Funaba <tadf@dotrb.org>
-Wed Aug 18 23:44:20 2004 Minero Aoki <aamine@loveruby.net>
+ * ext/date/date_core.c: removed unused variables.
- * lib/net/protocol.rb (rbuf_fill): OpenSSL::SSLSocket has its own
- buffer, select(2) might not work. [ruby-dev:24072]
+Sat Mar 26 15:16:09 2011 Tanaka Akira <akr@fsij.org>
-Wed Aug 18 17:10:12 2004 WATANABE Hirofumi <eban@ruby-lang.org>
+ * ext/socket/getaddrinfo.c: parenthesize macro arguments.
- * ext/tcltklib/stubs.c (ruby_tcltk_stubs): need to call
- Tcl_FindExecutable() for Tcl/Tk 8.4.
+Sat Mar 26 05:27:34 2011 NARUSE, Yui <naruse@ruby-lang.org>
-Wed Aug 18 12:52:55 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * ext/date/lib/date/format.rb (DateTime#strftime): removed because
+ date_core defines it.
- * eval.c (rb_obj_instance_eval): evaluates under special singleton
- classes as for special constants.
+Fri Mar 25 21:59:45 2011 Tadayoshi Funaba <tadf@dotrb.org>
-Wed Aug 18 11:22:52 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * ext/date/date_core.c: should not force cast with macros.
- * win32/win32.c (init_env): initialize HOME and USER environment
- variables unless set.
+Fri Mar 25 21:56:10 2011 Tanaka Akira <akr@fsij.org>
-Wed Aug 18 10:17:21 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * ext/sdbm/init.c: parenthesize macro arguments.
- * eval.c (bind_eval): new method. [RCR 251]
+Fri Mar 25 19:39:40 2011 Ben Walton <bwalton@artsci.utoronto.ca>
- * string.c (rb_str_clear): new method. [ruby-dev:24104]
+ * test/test_syslog.rb:
+ Skip syslog tests that rely on LOG_PERROR unless it's defined
-Tue Aug 17 17:20:59 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+ Instead of checking looking at the platform to determine if the tests
+ relying on LOG_PERROR should be run, look for the definition of the
+ constant as this will be robust against all platforms as long as the
+ underlying syslog.c code sets it up correctly.
- * io.c (rb_io_reopen): should clear allocated OpenFile. pointed
- out by Guy Decoux. [ruby-core:03288]
+ This specifically addresses failures on Solaris 9.
-Tue Aug 17 01:36:32 2004 Dave Thomas <dave@pragprog.com>
+ Use LOG_PID instead of LOG_PERROR in Syslog.open test
- * lib/rdoc/usage.rb: Remove extra indent. Tidy 'ri' option
- parsing so RDoc::usage plays better with OptionParser.
+ LOG_PERROR isn't a POSIX option for syslog, so it fails on platforms
+ that don't define it. Solaris 9 and 10 are examples of this.
-Sat Aug 14 02:48:16 2004 Dave Thomas <dave@pragprog.com>
+ Use LOG_PID instead.
- * lib/rdoc/usage.rb: Added. Allows command line programs
- to report usage using their initial RDoc comment.
+Fri Mar 25 15:42:17 2011 NARUSE, Yui <naruse@ruby-lang.org>
-Sat Aug 14 01:25:48 2004 why the lucky stiff <why@ruby-lang.org>
+ * ext/sdbm/_sdbm.c (sdbm_open): use size_t.
- * ext/syck/token.c: re2c no longer compiled with bit vectors. caused
- problems for non-ascii characters. [ruby-core:03280]
- * ext/syck/implicit.c: ditto.
* ext/syck/bytecode.c: ditto.
-Fri Aug 13 12:55:20 2004 GOTOU Yuuzou <gotoyuzo@notwork.org>
-
- * lib/webrick/httputils.rb (WEBrick::HTTPUtils.parse_range_header):
- fix regex for range-spec.
-
- * lib/webrick/httpservlet/filehandler.rb
- (WEBrick::HTTPServlet::DefaultFileHandler#make_partial_content):
- multipart/byteranges response was broken.
-
- * lib/xmlrpc/server.rb: refine example code.
-
-Thu Aug 12 10:54:17 2004 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * rubyio.h (rb_eof_error): should mark as NORETURN.
-
- * win32/win32.c (make_cmdvector): adjust escaped successive
- double-quote handling.
-
-Thu Aug 12 01:53:10 2004 Tanaka Akira <akr@m17n.org>
-
- * io.c (read_buffered_data): extracted from rb_io_fread.
- (io_readpartial): new method IO#readpartial.
- [ruby-dev:24055]
-
-Wed Aug 11 17:17:50 2004 WATANABE Hirofumi <eban@ruby-lang.org>
-
- * configure.in (RPATHFLAG): stop setting RPATHFLAG on Interix.
-
-Mon Aug 9 15:03:20 2004 GOTOU Yuuzou <gotoyuzo@notwork.org>
-
- * lib/webrick/httpservlet/erbhandler.rb
- (WEBrick::HTTPServlet::ERBHandler#do_GET): should select media type
- by suffix of script filename.
-
-Mon Aug 9 12:51:43 2004 Dave Thomas <dave@pragprog.com>
-
- * dir.c (dir_s_glob): Roll in Austin Ziegler's Dir.glob and
- fnmatch updates.
-
-Mon Aug 9 06:33:06 2004 Minero Aoki <aamine@loveruby.net>
-
- * lib/fileutils.rb (cp_r): copies symlink to symlink, except
- root entries of cp_r.
-
- * lib/fileutils.rb: new method FileUtils.copy_entry.
-
- * test/fileutils/test_fileutils.rb: more cp_r tests.
-
-Sun Aug 8 00:43:31 2004 why the lucky stiff <why@ruby-lang.org>
-
- * lib/implicit.c: added sexagecimal float#base60.
-
- * ext/syck/rubyext.c (yaml_org_handler): ditto.
-
- * lib/token.c: indentation absolutely ignored when processing flow
- collections. plain scalars are trimmed if indentation follows in
- an ambiguous flow collection.
-
-Sat Aug 7 03:08:21 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * process.c (proc_daemon): new method. should be modified for
- platforms without /dev/null.
-
-Sat Aug 7 00:50:01 2004 Tanaka Akira <akr@m17n.org>
-
- * ext/zlib/zlib.c: Zlib::GzipReader#read(0) returns "" instead of nil.
-
-Wed Aug 4 13:26:00 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * marshal.c (r_bytes0): optimize out read(0). [ruby-talk:108276]
-
-Tue Aug 3 13:49:12 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/lib/tk/namespace.rb: bug fix
-
- * ext/tk/lib/tkextlib/treectrl/tktreectrl.rb: add Tk::TreeCtrl.loupe
-
-Mon Aug 2 23:33:48 2004 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
-
- * test/ruby/test_file.rb (test_fnmatch): added more tests.
-
-Mon Aug 2 18:04:21 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/lib/tk/msgcat.rb (set_translation): bug fix (fail to set
- trans_str to the same as src_str when trans_str is not given.)
-
-Mon Aug 2 17:40:44 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * eval.c (blk_free): fixed serious memory leak. [ruby-dev:24013]
-
-Mon Aug 2 11:53:06 2004 Dave Thomas <dave@pragprog.com>
-
- * lib/rdoc/code_objects.rb (RDoc::Context::find_symbol): Fix infinite recursion
- looking up some top level symbols (batsman)
-
-Mon Aug 2 11:48:29 2004 Dave Thomas <dave@pragprog.com>
-
- * lib/rdoc/parsers/parse_c.rb (RDoc::C_Parser::do_methods): Allow '.'s in
- variable names to support SWIG generated files (Hans Fugal)
-
-Sat Jul 31 23:08:00 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * eval.c (is_defined): stupid mistakes fixed. [ruby-dev:24006]
-
-Sat Jul 31 17:39:47 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * misc/ruby-mode.el (ruby-expr-beg, ruby-parse-partial,
- ruby-calculate-indent, ruby-move-to-block, ruby-forward-sexp,
- ruby-backward-sexp): keywords must match word-wise.
-
-Sat Jul 31 13:37:51 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * eval.c (is_defined): avoid unnecessary method invocations.
-
-Sat Jul 31 05:35:37 2004 why the lucky stiff <why@ruby-lang.org>
-
- * lib/yaml/rubytypes.rb: exceptions were using an older
- YAML.object_maker. [ruby-core:03080]
-
- * ext/syck/token.c (sycklex_yaml_utf8): using newline_len to
- handline CR-LFs. "\000" was showing up on folded blocks which
- stopped at EOF.
-
-Sat Jul 31 01:25:11 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * eval.c (is_defined): call is_defined() before invoking
- rb_eval(). [ruby-talk:107867]
-
-Fri Jul 30 16:10:54 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tcltklib/tcltklib.c (lib_fromUTF8_core): raise ArgumentError when
- the unknown encoding name is given.
-
- * ext/tcltklib/tcltklib.c (lib_toUTF8_core): ditto.
-
- * ext/tk/lib/tk.rb (Tk::Encoding.encoding_convertfrom): bug fix.
-
- * ext/tk/lib/tk.rb (Tk::Encoding.encoding_convertto): ditto.
-
-Wed Jul 28 18:59:17 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/cgi.rb (CGI::initialize): remove at_exit code for CGI_PARAMS
- and CGI_COOKIES. they will no longer be used.
-
-Wed Jul 28 15:44:08 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * eval.c (rb_call0): should call rb_call_super() directly for
- visibility overriding. [ruby-dev:23989]
-
-Wed Jul 28 01:04:44 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * env.h: remove argv from ruby_frame.
-
- * eval.c (rb_eval): no more copy on write.
-
- * eval.c (assign): ditto.
-
- * eval.c (rb_call0): can receive *rest by specifying negative
- argc. (-1 means 0 arg and *rest, -2 means 1 arg and *rest...)
-
- * eval.c (rb_call0): properly set frame's argc counter.
-
- * gc.c (rb_gc_mark_frame): need not to mark frame's argv
-
- * gc.c (run_final): wrong order of data. [ruby-dev:23984]
-
-Tue Jul 27 07:05:04 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * eval.c (rb_eval): copy on write for argument local variable
- assignment.
-
- * eval.c (assign): ditto.
-
- * eval.c (rb_call0): update ruby_frame->argv with the default
- value used for the optional arguments.
-
- * object.c (Init_Object): "===" calls rb_obj_equal() directly.
- [ruby-list:39937]
-
-Mon Jul 26 11:22:55 2004 GOTOU Yuuzou <gotoyuzo@notwork.org>
-
- * lib/webrick/httputils.rb (WEBrick::HTTPUtils.escape): should
- escape space.
-
-Sun Jul 25 10:56:28 2004 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
-
- * win32/win32.{h,c} (rb_w32_{f,fd,fs}open): workaround for bcc32's
- {f,fd,fs}open bug. set errno EMFILE and EBADF. [ruby-dev:23963]
-
- * test/drb/drbtest.rb: fix method duplication.
-
-Sat Jul 24 13:32:47 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * range.c (rb_range_beg_len): returns Qnil only when "beg" points
- outside of a range. No boundary check for "end".
-
-Fri Jul 23 16:40:25 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * gc.c (define_final): should not disclose NODE* to Ruby world.
- [ruby-dev:23957]
-
-Fri Jul 23 08:52:22 2004 Shugo Maeda <shugo@ruby-lang.org>
-
- * lib/net/imap.rb (disconnected?): new method.
-
-Thu Jul 22 16:41:54 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/cgi/session.rb (CGI::Session::FileStore#update): sets the
- permission of the session data file to 0600.
-
- * lib/cgi/session/pstore.rb (CGI::Session::Pstore#initialize):
- ditto.
-
-Mon Jul 19 00:53:46 2004 GOTOU Yuuzou <gotoyuzo@notwork.org>
-
- * lib/webrick/httpservlet/cgihandler.rb
- (WEBrick::HTTPServlet::CGIhandler#do_GET): set SystemRoot environment
- variable to CGI process on Windows native platforms. [ruby-dev:23936]
-
-Sun Jul 18 16:14:29 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/lib/tk/msgcat.rb (TkMsgCatalog.callback): bug fix
- ( wrong number of argument )
-
-Sun Jul 18 08:13:58 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * sprintf.c (rb_f_sprintf): remove extra sign digit.
-
-Sun Jul 18 03:19:14 2004 Akinori MUSHA <knu@iDaemons.org>
-
- * dir.c (bracket): use NULL instead of 0.
-
-Sun Jul 18 02:35:30 2004 Shugo Maeda <shugo@ruby-lang.org>
-
- * lib/net/imap.rb (receive_responses): return if a LOGOUT response
- received.
-
-Sat Jul 17 23:59:01 2004 Shugo Maeda <shugo@ruby-lang.org>
+ * ext/sdbm/_sdbm.c (delpair): use ptrdiff_t.
- * lib/net/imap.rb (send_string_data): wait command continuation
- requests before sending octet data of literals.
+ * ext/sdbm/init.c: use RSTRING_LENINT.
-Sat Jul 17 23:54:59 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+ * ext/dl/handle.c: suppress warning: shorten-64-to-32.
- * ext/tk/lib/tk/variable.rb: TkVariable#ref returns a TkVariable object
+ * ext/strscan/strscan.c: ditto.
-Sat Jul 17 22:04:44 2004 akira yamada <akira@ruby-lang.org>
+ * ext/syck/emitter.c: ditto.
- * lib/uri/ldap.rb: method hierarchical? should be in URI::LDAP.
-
-Sat Jul 17 18:29:07 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * parse.y (stmt): not to show same error messages twice.
-
-Sat Jul 17 14:18:11 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * string.c (rb_str_match_m): String#match should also take
- optional argument. [ruby-core:03205]
-
- * re.c (rb_reg_match_m): add optional second argugment "pos" to
- specify match start point. [ruby-core:03203]
-
-Sat Jul 17 13:13:32 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/irb/ruby-lex.rb (RubyLex::identify_string): %s string do not
- process expression interpolation. [ruby-talk:106691]
-
-Sat Jul 17 05:26:27 2004 Dave Thomas <dave@pragprog.com>
-
- * lib/rdoc/diagram.rb: Incorporate Micheal Neumann's
- client-side imagemao patch
-
-Sat Jul 17 01:57:03 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * eval.c (THREAD_ALLOC): th->thread should be initialized to NULL.
- [ruby-talk:106657] The solution was found by Guy Decoux.
-
-Fri Jul 16 22:30:28 2004 Michael Neumann <mneumann@ntecs.de>
-
- * file.c (rb_stat_dev_major): new methods File::Stat#dev_major and
- #dev_minor. [ruby-core:03195]
-
-Fri Jul 16 11:17:38 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * error.c (exit_initialize): use EXIT_SUCCESS instead of 0.
- [ruby-dev:23913]
-
- * error.c (exit_success_p): new method SystemExit#success?.
- [ruby-dev:23912]
-
- * error.c (syserr_initialize): initialization for subclasses.
- [ruby-dev:23912]
-
-Thu Jul 15 23:53:38 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/optparse.rb (OptionParser#warn, OptionParser#abort): Exception
- no longer has to_str method.
-
-Thu Jul 15 22:59:48 2004 Shugo Maeda <shugo@ruby-lang.org>
-
- * ext/readline/extconf.rb: added dir_config for curses, ncurses,
- termcap.
-
-Thu Jul 15 20:44:46 2004 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
-
- * class.c: rdoc patch
-
-Thu Jul 15 14:12:34 2004 why the lucky stiff <why@ruby-lang.org>
-
- * lib/yaml.rb (YAML::load_file, YAML::parse_file): added.
-
- * ext/syck/token.c: re2c compiled with bit vectors now.
* ext/syck/implicit.c: ditto.
- * ext/syck/bytecode.c: ditto.
-
-Thu Jul 15 10:15:04 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/, ext/tcltklib/: bug fix
-
- * ext/tk/lib/tk.rb: better operation for SIGINT when processing
- callbacks.
- * ext/tk/lib/tk/msgcat.rb: ditto.
- * ext/tk/lib/tk/variable.rb: ditto.
- * ext/tk/lib/tk/timer.rb: ditto.
-
- * ext/tk/lib/tk/validation.rb: add Tk::ValidateConfigure.__def_validcmd
- to define validatecommand methods easier
-
- * ext/tk/lib/tk.rb (_genobj_for_tkwidget): support autoload Tk ext
- classes
-
- * ext/tk/lib/tk/canvas.rb and so on: remove the parent widget type
- check for items (e.g. canvas items; depends on the class) to
- avoid some troubles on Tk extension widget class definition.
-
- * ext/tk/lib/tkextlib/: add Iwidget and TkTable extension support
-
- * ext/tk/sample/tkextlib/: add samples of Iwidget and TkTable
-
-
-Wed Jul 14 23:49:30 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * enum.c (enum_min_by): new method Enum#min_by. added Enum#max_by
- as well.
-
-Wed Jul 14 18:05:21 2004 GOTOU Yuuzou <gotoyuzo@notwork.org>
-
- * ext/openssl/ossl_asn1.c (ossl_asn1cons_to_der): fix type of
- argument. [ruby-dev:23891]
-
- * test/openssl/test_x509store.rb: prune tests for CRL checking
- unless X509::V_FLAG_CRL_CHECK is defined.
-
-Wed Jul 14 12:20:05 2004 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
-
- * util.c (ruby_strtod): should not convert string in the form of
- "-I.FE-X" which both "I" and "F" are ommitted. [ruby-dev:23883]
-
- * test/ruby/test_float.rb (test_strtod): add test for bug fix.
-
-Wed Jul 14 00:33:48 2004 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
-
- * array.c: rdoc patch. merged patch from Johan Holmberg
- <holmberg@iar.se> [ruby-core:3170]
-
-Tue Jul 13 19:39:12 2004 akira yamada <akira@ruby-lang.org>
-
- * lib/uri/generic.rb (URI::Generic#merge_path):
- "URI('http://www.example.com/foo/..') + './'" should return
- "URI('http://www.example.com/')". [ruby-list:39838]
- "URI('http://www.example.com/') + './foo/bar/..'" should return
- "URI('http://www.example.com/foo/')". [ruby-list:39844]
-
- * test/uri/test_generic.rb (TestGeneric#test_merge): added tests.
-
-Tue Jul 13 15:48:56 2004 Akinori MUSHA <knu@iDaemons.org>
-
- * lib/mkmf.rb (init_mkmf): Do not add $(libdir) to $LIBPATH in
- extmk mode.
-
- * lib/mkmf.rb (dir_config): Prepend a new library path instead of
- appending so it is tried first.
-
-Tue Jul 13 00:50:48 2004 Dave Thomas <dave@pragprog.com>
-
- * lib/rdoc/parsers/parse_rb.rb: Support call-seq: for Ruby files.
-
-Mon Jul 12 21:20:51 2004 Dave Thomas <dave@pragprog.com>
-
- * html_generator.rb: Support hyperlinks of the form {any text}[xxx]
- as well as stuff[xxx]
-
-Sat Jul 10 09:30:24 2004 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
-
- * test/soap/marshal/test_struct.rb: use qualified built-in class name
- (::Struct) to avoid name crash.
-
-Sat Jul 10 04:21:56 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/lib/tk.rb: better operation for SIGINT when processing
- callbacks.
- * ext/tk/lib/tk/msgcat.rb: ditto.
- * ext/tk/lib/tk/variable.rb: ditto.
- * ext/tk/lib/tk/timer.rb: ditto.
-
- * ext/tk/lib/tk/validation.rb (__def_validcmd): add a module
- function of Tk::ValidateConfigure to define validatecommand
- methods easier
-
-Fri Jul 9 22:18:59 2004 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
-
- * array.c, enum.c, pack.c: rdoc patch from Johan Holmberg
- <holmberg@iar.se> [ruby-core:3132] [ruby-core:3136]
-
- * numeric.c: rdoc patch.
-
-Fri Jul 9 19:26:39 2004 Tanaka Akira <akr@m17n.org>
-
- * lib/open-uri.rb (URI::HTTPS#proxy_open): raise ArgumentError to
- notice https is not supported.
-
-Fri Jul 9 14:28:54 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * eval.c (rb_thread_raise): accept third argument as well as
- Kernel#raise, and evaluate the arguments to create an exception in
- the caller's context. [ruby-talk:105507]
-
-Fri Jul 9 01:47:08 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/lib: bug fix
- * ext/tk/lib/tkextlib/itcl: add [incr Tcl] support
- * ext/tk/lib/tkextlib/itk: add [incr Tk] support
- * ext/tk/lib/tkextlib/iwidgets: midway point of [incr Widgets] support
- * ext/tk/sample/tkextlib/iwidgets: very simple examples of
- [incr Widgets]
-
-Thu Jul 8 19:27:16 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * configure.in (rb_cv_stack_end_address): detect stack end address
- variable supplied by system. [ruby-core:03115]
-
- * gc.c (Init_stack): use system provided address if possible.
-
-Thu Jul 8 00:05:23 2004 akira yamada <akira@ruby-lang.org>
-
- * lib/tempfile.rb (Tempfile::initialize): got out code of
- generating tmpname. [ruby-dev:23832][ruby-dev:23837]
-
-Wed Jul 7 02:31:41 2004 Kouhei Sutou <kou@cozmixng.org>
-
- * lib/rss/{rss,parser,0.9,1.0,2.0}.rb: supported RSS 0.9x/2.0
- validation and validation which disregard order of elements.
- * test/rss/test_parser.rb: added tests for RSS 0.9x/2.0
- validation.
- * test/rss/{test_trackback,rss-testcase}.rb: fixed no good method
- name.
-
-Wed Jul 7 00:48:34 2004 WATANABE Hirofumi <eban@ruby-lang.org>
-
- * ext/tk/lib/tkextlib/tktrans.rb,
- ext/tk/lib/tkextlib/treectrl.rb: fix syntax errors.
-
-Tue Jul 6 18:38:45 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/lib: improve framework of developping Tcl/Tk extension
- wrappers
-
-Mon Jul 5 23:56:42 2004 Kouhei Sutou <kou@cozmixng.org>
-
- * lib/rss/{trackback,syndication,dublincore,content}.rb: worked
- with ruby 1.6 again.
-
- * test/rss/rss-assertions.rb: ditto.
-
-Mon Jul 5 22:54:39 2004 Tanaka Akira <akr@m17n.org>
-
- * lib/uri/common.rb (Kernel#URI): new global method for parsing URIs.
-
-Mon Jul 5 09:02:52 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * eval.c (rb_thread_yield, rb_f_catch): 4th argument to rb_yield_0()
- is a set of bit flags. [ruby-dev:23859]
-
-Mon Jul 5 01:20:17 2004 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
-
- * lib/drb/drb.rb(DRbConn self.open): If socket pool is full, close
- the socket whose last-access-time is oldest. (and add new one)
- [ruby-dev:23860]
-
-Sun Jul 4 12:24:50 2004 Kouhei Sutou <kou@cozmixng.org>
-
- * lib/rss/rss.rb: added copyright header.
-
-Sat Jul 3 22:25:27 2004 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
-
- * added files:
- * lib/soap/header/*
- * lib/soap/rpc/httpserver.rb
- * lib/wsdl/soap/cgiStubCreator.rb
- * lib/wsdl/soap/classDefCreator.rb
- * lib/wsdl/soap/classDefCreatorSupport.rb
- * lib/wsdl/soap/clientSkeltonCreator.rb
- * lib/wsdl/soap/driverCreator.rb
- * lib/wsdl/soap/mappingRegistryCreator.rb
- * lib/wsdl/soap/methodDefCreator.rb
- * lib/wsdl/soap/servantSkeltonCreator.rb
- * lib/wsdl/soap/standaloneServerStubCreator.rb
- * lib/wsdl/xmlSchema/enumeration.rb
- * lib/wsdl/xmlSchema/simpleRestriction.rb
- * lib/wsdl/xmlSchema/simpleType.rb
- * lib/xsd/codegen/*
- * lib/xsd/codegen.rb
- * sample/soap/authheader/*
- * sample/soap/raa2.4/*
- * sample/soap/ssl/*
- * sample/soap/swa/*
- * sample/soap/whois.rb
- * sample/wsdl/raa2.4/*
- * test/soap/header/*
- * test/soap/ssl/*
- * test/soap/struct/*
- * test/soap/swa/*
- * test/soap/wsdlDriver/*
- * test/wsdl/multiplefault.wsdl
- * test/wsdl/simpletype/*
- * test/wsdl/test_multiplefault.rb
-
- * modified files:
- * lib/soap/baseData.rb
- * lib/soap/element.rb
- * lib/soap/generator.rb
- * lib/soap/netHttpClient.rb
- * lib/soap/parser.rb
- * lib/soap/property.rb
- * lib/soap/soap.rb
- * lib/soap/streamHandler.rb
- * lib/soap/wsdlDriver.rb
- * lib/soap/encodingstyle/handler.rb
- * lib/soap/encodingstyle/literalHandler.rb
- * lib/soap/encodingstyle/soapHandler.rb
- * lib/soap/mapping/factory.rb
- * lib/soap/mapping/mapping.rb
- * lib/soap/mapping/registry.rb
- * lib/soap/mapping/rubytypeFactory.rb
- * lib/soap/mapping/wsdlRegistry.rb
- * lib/soap/rpc/cgistub.rb
- * lib/soap/rpc/driver.rb
- * lib/soap/rpc/proxy.rb
- * lib/soap/rpc/router.rb
- * lib/soap/rpc/soaplet.rb
- * lib/soap/rpc/standaloneServer.rb
- * lib/wsdl/data.rb
- * lib/wsdl/definitions.rb
- * lib/wsdl/operation.rb
- * lib/wsdl/parser.rb
- * lib/wsdl/soap/definitions.rb
- * lib/wsdl/xmlSchema/complexContent.rb
- * lib/wsdl/xmlSchema/complexType.rb
- * lib/wsdl/xmlSchema/data.rb
- * lib/wsdl/xmlSchema/parser.rb
- * lib/wsdl/xmlSchema/schema.rb
- * lib/xsd/datatypes.rb
- * lib/xsd/qname.rb
- * sample/soap/sampleStruct/server.rb
- * sample/wsdl/amazon/AmazonSearch.rb
- * sample/wsdl/amazon/AmazonSearchDriver.rb
- * test/soap/test_property.rb
- * test/soap/calc/test_calc_cgi.rb
- * test/wsdl/test_emptycomplextype.rb
-
- * summary
- * add SOAP Header mustUnderstand support.
-
- * add HTTP client SSL configuration and Cookies support (works
- completely with http-access2).
-
- * add header handler for handling sending/receiving SOAP Header.
- * map Ruby's anonymous Struct to common SOAP Struct in SOAP Object
- Model. it caused error.
-
- * add WSDL simpleType support to restrict lexical value space.
-
-Sat Jul 3 17:19:44 2004 WATANABE Hirofumi <eban@ruby-lang.org>
-
- * ext/tk/lib/tkextlib/tkDND.rb: fix syntax error.
-
-Thu Jul 1 18:36:08 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/lib/tcltklib: bug fix
-
- * ext/tk/lib/tk: bug fix and add Tcl/Tk extension support libraries
-
-Thu Jul 1 18:31:31 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/pstore.rb (PStore#transaction): get rid of opening in write mode
- when read only transaction. [ruby-dev:23842]
-
-Thu Jul 1 00:44:42 2004 GOTOU Yuuzou <gotoyuzo@notwork.org>
-
- * ext/openssl/ossl_cipher.c (ossl_cipher_encrypt, ossl_cipher_decrypt):
- re-implemnt (the arguments for this method is ).
-
- * ext/openssl/ossl_cipher.c (ossl_cipher_pkcs5_keyivgen): new method
- OpenSSL::Cipher::Cipher#pkcs5_keyivgen. it calls EVP_BytesToKey().
-
- * ext/openssl/ossl_cipher.c (ossl_cipher_set_key_length): new method
- OpenSSL::Cipher::Cipher#key_len=.
-
-Wed Jun 30 19:48:09 2004 GOTOU Yuuzou <gotoyuzo@notwork.org>
-
- * ext/openssl/extconf.rb: check for EVP_CIPHER_CTX_copy, ENGINE_add,
- EVP_CIPHER_CTX_set_padding, EVP_CipherFinal_ex, EVP_CipherInit_ex,
- EVP_DigestFinal_ex and EVP_DigestInit_ex.
-
- * ext/openssl/openssl_missing.c (EVP_CIPHER_CTX_copy): new function.
-
- * ext/openssl/openssl_missing.h (EVP_DigestInit_ex, EVP_DigestFinal_ex,
- EVP_CipherInit_ex, EVP_CipherFinal_ex, HMAC_Init_ex): new macro for
- OpenSSL 0.9.6.
-
- * ext/openssl/ossl_cipher.c (ossl_cipher_alloc, ossl_cipher_initialize,
- ossl_cipher_copy, ossl_cipher_reset, ossl_cipher_encrypt,
- ossl_cipher_decrypt, ossl_cipher_final, ossl_cipher_set_key,
- ossl_cipher_set_iv): replace all EVP_CipherInit and
- EVP_CipherFinal into EVP_CipherInit_ex and EVP_CipherFinal_ex.
- and EVP_CIPHER_CTX_init should only be called once.
-
- * ext/openssl/ossl_cipher.c (ossl_cipher_set_padding): check for
- EVP_CIPHER_CTX_set_padding.
-
- * ext/openssl/ossl_cipher.c (Init_ossl_cipher): Cipher#<< is deprecated.
-
- * ext/openssl/ossl_digest.c: replace all EVP_DigestInit and
- EVP_DigestFinal into EVP_DigestInit_ex and EVP_DigestFinal_ex.
- and EVP_MD_CTX_init should only be called once.
-
- * ext/openssl/ossl_digest.c (digest_final): should call
- EVP_MD_CTX_cleanup to avoid memory leak.
-
- * ext/openssl/ossl_hmac.c (ossl_hmac_initialize): repalce HMAC_init
- into HMAC_init_ex. and HMAC_CTX_init is moved to ossl_hmac_alloc.
-
- * ext/openssl/ossl_hmac.c (hmac_final): should call
- HMAC_CTX_cleanup to avoid memory leak.
-
- * test/openssl/test_cipher.rb, test/openssl/test_digest.rb,
- test/openssl/test_hmac.rb: new file.
-
-Wed Jun 30 16:59:39 2004 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
-
- * test/ruby/test_file.rb (test_fnmatch): some tests for File.fnmatch
- are added.
-
-Wed Jun 30 11:38:51 2004 Mikael Brockman <phubuh@phubuh.org>
-
- * parse.y (primary): should not be NULL. [ruby-core:03098]
-
-Wed Jun 30 02:41:10 2004 why the lucky stiff <why@ruby-lang.org>
-
- * ext/syck/rubyext.c (syck_emitter_new): set buffer after
- Data_Wrap_Struct to avoid possible GC. [ruby-talk:104835]
-
-Tue Jun 29 10:31:19 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * eval.c (rb_eval_cmd, rb_thread_trap_eval): restore safe level.
-
- * gc.c (define_final, run_final): preserve and restore safe level for
- finalizers. [ruby-core:03058]
-
- * signal.c (signal_exec, rb_trap_exit, trap): preserve and restore
- safe level for signal handlers. [ruby-dev:23829]
-
-Mon Jun 28 14:57:56 2004 Jeff Mitchell <quixoticsycophant@yahoo.com>
-
- * configure.in, lib/mkmf.rb (LIBPATHFLAG): use double quotes due to
- DOSISH compilers. [ruby-core:03107]
-
-Mon Jun 28 00:35:29 2004 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
-
- * sample/drb/*.rb: using 'DRb.thread.join' instead of 'gets'
-
-Sun Jun 27 22:36:47 2004 Kouhei Sutou <kou@cozmixng.org>
-
- * sample/rss/tdiary_plugin/rss-recent.rb: supported Hiki.
-
-Sat Jun 26 15:17:11 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * variable.c (rb_mod_class_variables): class variables are no longer
- inherited. [ruby-dev:23808]
-
-Sat Jun 26 11:07:20 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * configure.in (aix): -b must come at the start of the command line,
- and -e must not appear while testing libraries. [ruby-talk:104501]
-
- * lib/mkmf.rb (find_header, dir_config): quote directory names if
- necessary. [ruby-talk:104505]
-
-Sat Jun 26 00:13:08 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * io.c (rb_fopen, rb_fdopen, rb_io_reopen): setvbuf() may return
- positive value on failure. [ruby-dev:23792]
-
-Fri Jun 25 18:07:15 2004 Michal Rokos <michal@ruby-lang.org>
-
- * gc.c: bring back _stklen for DJGPP [ruby-core:3084]
-
-Fri Jun 25 15:33:01 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/iconv/extconf.rb: check stricter. [ruby-talk:104501]
-
-Fri Jun 25 01:58:01 2004 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * {bcc32,win32,wince}/setup.mak: remove RUBY_EXTERN lines when
- including version.h. [ruby-talk:104456]
-
-Thu Jun 24 14:23:29 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * io.c (rb_io_fread): return already read data when system call is
- interrupted. [ruby-talk:97206]
-
-Thu Jun 24 01:25:21 2004 Shugo Maeda <shugo@ruby-lang.org>
-
- * version.h: added declarations of ruby_version,
- ruby_release_date, ruby_platform.
-
-Thu Jun 24 01:07:15 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * ext/socket/socket.c (sock_sockaddr): Socket#gethostbyname()
- should give us packed address, not struct sockaddr.
- [ruby-core:03053]
-
-Wed Jun 23 22:19:10 2004 Dave Thomas <dave@pragprog.com>
-
- * ext/socket/socket.c (sock_s_gethostbyaddr): Work around problem
- with OS X not returning 'from' parameter to recvfrom for
- connection-oriented sockets.
-
-Wed Jun 23 22:16:16 2004 Michal Rokos <michal@ruby-lang.org>
-
- * io.c: io_seek()'s retval should be checked [ruby-core:03045]
+ * ext/syck/syck.c: ditto.
-Wed Jun 23 21:48:27 2004 Michal Rokos <michal@ruby-lang.org>
+ * ext/syck/token.c: ditto.
- * time.c: Fix indentation.
+Fri Mar 25 12:14:58 2011 NARUSE, Yui <naruse@ruby-lang.org>
- * main.c: Remove _stklen, and _CRT_glob. Move _stacksize for
- __human68k__ to gc.c where the others are.
+ * ext/nkf/nkf-utf8/nkf.c: import nkf 7f18e30.
- * gc.c: put _stacksize in place and clean the #ifdefs macros.
+Fri Mar 25 11:49:29 2011 NAKAMURA Usaku <usa@ruby-lang.org>
-Wed Jun 23 17:37:54 2004 Shugo Maeda <shugo@ruby-lang.org>
+ * test/ruby/test_process.rb (TestProcess#test_no_curdir): skip silently
+ on Windows, because this tests a platform specific feature and it'll
+ never be supported on ruby on Windows.
- * lib/net/imap.rb: added new option --ssl.
+ * test/ruby/test_dir_m17n.rb
+ (TestDir_M17N#test_filename_extutf8_invalid,
+ TestDir_M17N#test_filename_as_bytes_extutf8): ditto.
-Wed Jun 23 01:45:27 2004 Dave Thomas <dave@pragprog.com>
+ * test/open-uri/test_open-uri.rb
+ (TestOpenURI#test_find_proxy_case_sensitive_env): ditto.
- * lib/rdoc/parsers/parse_rb.rb (RubyLex::identify_quotation):
- Fix problem with the 'r' being dropped from %r{xxx}
+ * test/dl/test_handle.rb (DL::TestHandle#test_NEXT,
+ DL::TestHandle#test_DEFAULT): ditto.
-Wed Jun 23 00:10:17 2004 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+Thu Mar 24 23:06:29 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * ext/win32ole/win32ole.c (ole_hresult2msg): remove trailing
- CRs and LFs. (doesn't depend on CR+LF) [ruby-dev:23749]
+ * vm_insnhelper.c (vm_get_ev_const): should not autoload in
+ defined? mode.
-Wed Jun 23 00:00:25 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * variable.c (rb_const_defined_0): fix autoloading base.
+ [ruby-core:35509]
- * eval.c (return_jump, break_jump): raise unexpected local jump
- exception directly. [ruby-dev:23740]
+Thu Mar 24 22:48:43 2011 Tanaka Akira <akr@fsij.org>
- * io.c (rb_io_initialize): should check fcntl result. [ruby-dev:23742]
+ * ext/sdbm/_sdbm.c: parenthesize macro arguments.
-Tue Jun 22 23:35:43 2004 NAKAMURA Usaku <usa@ruby-lang.org>
+Thu Mar 24 14:45:57 2011 NARUSE, Yui <naruse@ruby-lang.org>
- * sprintf.c (rb_f_sprintf): support FZERO and FSPACE with NaN/Inf.
+ * ext/openssl/ossl.c: suppress warning: shorten-64-to-32.
- * test/ruby/test_sprintf.rb (test_nan, test_inf): add tests.
+ * ext/openssl/ossl.h: ditto.
-Tue Jun 22 21:11:36 2004 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+ * ext/openssl/ossl_asn1.c: ditto.
- * ext/win32ole/win32ole.c (OLE_FREE): should not call CoFreeUnuse-
- dLibraries().
+ * ext/openssl/ossl_bio.c: ditto.
- * ext/win32ole/win32ole.c (ole_event_free): ditto.
+ * ext/openssl/ossl_bn.c: ditto.
- * ext/win32ole/win32ole.c (ole_hresult2msg): truncate error message
- before CR.
+ * ext/openssl/ossl_cipher.c: ditto.
-Tue Jun 22 19:24:59 2004 NAKAMURA Usaku <usa@ruby-lang.org>
+ * ext/openssl/ossl_hmac.c: ditto.
- * sprintf.c (rb_f_sprintf): unify output of NaN, Inf and -Inf with
- "%f" or etc on all platform. [ruby-dev:23704], [ruby-dev:23747]
+ * ext/openssl/ossl_ns_spki.c: ditto.
-Tue Jun 22 15:28:12 2004 Michal Rokos <michal@ruby-lang.org>
+ * ext/openssl/ossl_ocsp.c: ditto.
- * compar.c: Remove explicit NIL_P() checks since rb_cmpint() does it
- again in the exactly same manner.
+ * ext/openssl/ossl_pkcs5.c: ditto.
-Tue Jun 22 01:32:40 2004 GOTOU Yuuzou <gotoyuzo@notwork.org>
+ * ext/openssl/ossl_pkey.c: ditto.
- * ext/openssl/ossl_pkey_dh.c (ossl_dh_initialize): should create
- empty pkey object if no argument is passed. [ruby-talk:103328]
+ * ext/openssl/ossl_pkey_dh.c: ditto.
- * ext/openssl/ossl_pkey_dsa.c (ossl_dsa_initialize): ditto.
+ * ext/openssl/ossl_pkey_dsa.c: ditto.
- * ext/openssl/ossl_pkey_rsa.c (ossl_rsa_initialize): ditto.
+ * ext/openssl/ossl_pkey_ec.c: ditto.
- * ext/openssl/ossl_pkey_dh.c: add new methods: OpenSSL::PKey::DH#p,
- OpenSSL::PKey::DH#p=, OpenSSL::PKey::DH#g, OpenSSL::PKey::DH#g=,
- OpenSSL::PKey::DH#pub_key, OpenSSL::PKey::DH#pub_key=,
- OpenSSL::PKey::DH#priv_key and OpenSSL::PKey::DH#priv_key=.
+ * ext/openssl/ossl_pkey_rsa.c: ditto.
- * ext/openssl/ossl_pkey_dsa.c: add new methods: OpenSSL::PKey::DSA#p,
- OpenSSL::PKey::DSA#p=, OpenSSL::PKey::DSA#q, OpenSSL::PKey::DSA#q=,
- OpenSSL::PKey::DSA#g, OpenSSL::PKey::DSA#g=,
- OpenSSL::PKey::DSA#pub_key, OpenSSL::PKey::DSA#pub_key=,
- OpenSSL::PKey::DSA#priv_key and OpenSSL::PKey::DSA#priv_key=.
+ * ext/openssl/ossl_rand.c: ditto.
-Mon Jun 21 09:24:51 2004 NAKAMURA Usaku <usa@ruby-lang.org>
+ * ext/openssl/ossl_ssl.c: ditto.
- * win32/win32.c (rb_w32_opendir): should set errno if error occurs
- when calling OS API.
+ * ext/openssl/ossl_x509ext.c: ditto.
-Sun Jun 20 21:12:54 2004 Shugo Maeda <shugo@ruby-lang.org>
+ * ext/openssl/ossl_x509name.c: ditto.
- * lib/net/ftp.rb (binary=): send TYPE commands only once.
+Thu Mar 24 11:48:19 2011 NARUSE, Yui <naruse@ruby-lang.org>
-Sat Jun 19 13:27:01 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * ext/openssl/ossl_rand.c (ossl_rand_egd_bytes): use NUM2INT because
+ the result is used with functions whose argument is int.
- * eval.c (method_call): allow changing $SAFE. [ruby-dev:23713]
+ * ext/openssl/ossl_ssl.c (ossl_sslctx_setup): ditto.
- * eval.c (proc_set_safe_level, proc_invoke, rb_mod_define_method): not
- set $SAFE for methods defined from Proc. [ruby-dev:23697]
+ * ext/openssl/ossl_x509store.c (ossl_x509store_set_purpose): ditto.
-Sat Jun 19 01:10:12 2004 Kouhei Sutou <kou@cozmixng.org>
+ * ext/openssl/ossl_x509store.c (ossl_x509store_set_trust): ditto.
- * sample/rss/tdiary_plugin/rss-recent.rb: added more information.
+ * ext/openssl/ossl_x509store.c (ossl_x509stctx_set_purpose): ditto.
-Fri Jun 18 23:12:22 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * ext/openssl/ossl_x509store.c (ossl_x509stctx_set_trust): ditto.
- * eval.c (proc_save_safe_level, rb_set_safe_level, safe_setter): limit
- safe level.
+Thu Mar 24 11:36:55 2011 NARUSE, Yui <naruse@ruby-lang.org>
-Wed Jun 16 23:05:57 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * ext/openssl/ossl_x509name.c: id_aref's type is ID.
- * object.c (rb_mod_freeze): prepare string representation before
- freezing. [ruby-talk:103646]
+Thu Mar 24 10:04:35 2011 NARUSE, Yui <naruse@ruby-lang.org>
-Wed Jun 16 19:57:24 2004 Michal Rokos <michal@ruby-lang.org>
+ * ext/io/console/console.c (console_set_winsize):
+ suppress warning: shorten-64-to-32.
- * test/ruby/test_array.rb: extend testcase to check #first, #last,
- #shift, #unshift, #pop, #push
+Thu Mar 24 09:56:19 2011 NARUSE, Yui <naruse@ruby-lang.org>
-Wed Jun 16 16:05:17 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * ext/openssl/ossl_ocsp.c (ossl_ocspreq_verify): flags is VALUE,
+ so it should use NUM2INT.
- * array.c (ary_new): move alloc behind checks. [ruby-core:02982]
+ * ext/openssl/ossl_ocsp.c (ossl_ocspbres_verify): ditto.
- * array.c (rb_ary_pop_m, rb_ary_shift_m): take arg to behave as push
- and unshift.
+Wed Mar 23 21:09:29 2011 Tanaka Akira <akr@fsij.org>
- * array.c (rb_ary_first, rb_ary_last): make shared array for result
- array, and correct doc for Array#first(n) and Array#last(n)
+ * ext/readline/readline.c: parenthesize macro arguments.
- * array.c (rb_ary_select): not accept any arg.
+Wed Mar 23 08:07:33 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Wed Jun 16 16:03:59 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * numeric.c (flo_round): fix inaccurate results.
- * object.c (rb_class_inherited_p): singleton class inherits Class
- rather than its object's class. [ruby-dev:23690]
+Wed Mar 23 00:12:16 2011 Tajima Akio <artonx@yahoo.co.jp>
-Wed Jun 16 16:01:17 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * win32/win32.c: wait process real termination after reading
+ exit code. fixes #4518
- * gc.c (stack_grow_direction): memoize the direction.
+Tue Mar 22 21:20:10 2011 NARUSE, Yui <naruse@ruby-lang.org>
- * gc.c (Init_stack): should always move to end of VALUE.
+ * lib/rubygems/test_case.rb: save current dir to @current_dir
+ before Dir.chdir.
-Tue Jun 15 12:10:04 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+Tue Mar 22 20:10:04 2011 Tanaka Akira <akr@fsij.org>
- * ext/tk/lib/tk.rb: bug fix (TkWindow#grab)
+ * ext/psych/parser.c: parenthesize macro arguments.
-Mon Jun 14 18:23:27 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+Tue Mar 22 20:10:01 2011 Tanaka Akira <akr@fsij.org>
- * ext/tk/lib/remote-tk.rb: bug fix
+ * ext/openssl/ruby_missing.h: parenthesize macro arguments.
-Sun Jun 13 00:23:04 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+Tue Mar 22 13:33:22 2011 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
- * ext/tcltklib/extconf.rb: [EXPERIMENTAL] MacOS X (darwin) support
+ * ext/openssl/lib/openssl/buffering.rb: removed circular require of
+ openssl.rb.
- * ext/tcltklib/tcltklib.c: fix thread trouble on callback proc, and
- eliminate warning about instance variable access
+ * ext/openssl/lib/openssl/*: removed following comment for transition
+ measures of avoiding circular require. No one claimed about this as
+ far as I know.
+ ##
+ # Should we care what if somebody require this file directly?
+ # require "openssl"
- * ext/tk/lib/tk/menubar.rb: improve supported menu_spec
+Tue Mar 22 10:57:36 2011 NARUSE, Yui <naruse@ruby-lang.org>
- * ext/tk/lib/tk/menuspec.rb: [add] menu_spec support library
+ * test/runner.rb: set Gem::TestCase's @@project_dir.
- * ext/tk/lib/tk/root.rb: add menu_spec support
+ * lib/rubygems/test_case.rb: set Gem::TestCase's @@project_dir only
+ when it is not defined.
- * ext/tk/lib/tk/text.rb: bug fix
+Tue Mar 22 09:38:19 2011 NARUSE, Yui <naruse@ruby-lang.org>
- * ext/tk/lib/tk/toplevel.rb: add menu_spec support
+ * numeric.c (flo_round): use pow instead of while-loop. fixes #4510
+ patched by Alex Young [ruby-core:35526]
- * ext/tk/sample/menubar?.rb: [add] sample of menu_spec usage
+Tue Mar 22 06:47:46 2011 NARUSE, Yui <naruse@ruby-lang.org>
-Sat Jun 12 14:15:20 2004 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+ * ext/date/date_strftime.c (date_strftime_wo_timespec):
+ suppress warning: shorten-64-to-32.
- * dir.c: RDOC for File::FNM_CASEFOLD was missed.
+Tue Mar 22 06:42:42 2011 NARUSE, Yui <naruse@ruby-lang.org>
-Sat Jun 12 11:15:53 2004 WATANABE Hirofumi <eban@ruby-lang.org>
+ * ext/date/date_core.c: suppress warning: shorten-64-to-32.
- * configure.in (target_os): strip -gnu suffix on Linux.
+Tue Mar 22 06:41:37 2011 NARUSE, Yui <naruse@ruby-lang.org>
-Fri Jun 11 22:08:50 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * lib/test/unit/parallel.rb: remove unused variable.
- * array.c: remove #indexes, #indices.
+Tue Mar 22 06:19:42 2011 NARUSE, Yui <naruse@ruby-lang.org>
- * hash.c: ditto.
+ * enc/utf_16le.c: suppress warning: shorten-64-to-32.
- * ext/dbm/dbm.c: remove #indexes, #indices, "values_at" warning
- from #select.
+ * ext/dbm/dbm.c: ditto.
* ext/gdbm/gdbm.c: ditto.
- * ext/sdbm/init.c: ditto.
-
- * ext/dbm/dbm.c (Init_dbm): set VERSION constant as "unknown" when
- DB_VERSION_STRING is not available.
-
-Thu Jun 10 19:19:41 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * ext/sdbm/init.c (fsdbm_store): sdbm should use StringValue().
- [ruby-talk:103062]
-
-Wed Jun 9 16:09:01 2004 akira yamada <akira@ruby-lang.org>
-
- * lib/uri/generic.rb (URI::Generic::merge,
- URI::Generic::route_from): accepts non-hierarchical URI.
- [ruby-dev:23631]
-
- * test/uri/test_generic.rb (TestGeneric::test_route,
- TestGeneric::test_merge): added tests for above changes.
-
-Wed Jun 9 15:39:55 2004 Akinori MUSHA <knu@iDaemons.org>
-
- * configure.in: Add support for DragonFly BSD.
-
-Wed Jun 9 15:07:06 2004 Akinori MUSHA <knu@iDaemons.org>
-
- * config.guess, config.sub: Update to a more recent version as of
- 2004-01-20.
-
-Wed Jun 9 11:20:05 2004 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * win32/win32.c: remove unused functions and variables.
+ * parse.y (Init_ripper): suppress warning: unused value.
-Wed Jun 2 20:16:03 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Mon Mar 21 11:21:32 2011 Shota Fukumori <sorah@tubusu.net>
- * string.c (str_new4): should share shared instance if it already
- exists. [ruby-dev:23665]
+ * lib/test/unit.rb: Refactoring. Unified if and elsif.
-Wed Jun 2 12:41:53 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+Sun Mar 20 23:09:34 2011 Tadayoshi Funaba <tadf@dotrb.org>
- * io.c (rb_io_gets_m): set lastline ($_) even when read line is
- nil. [ruby-dev:23663]
+ * ext/date/date_strftime.c: checks duplicated modifiers.
-Fri May 28 11:20:31 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Sun Mar 20 22:32:30 2011 Tadayoshi Funaba <tadf@dotrb.org>
- * eval.c (rb_eval): bad influence on frame node.
+ * ext/date/date_strftime.c: removed unused code and arguments.
- * eval.c (eval): reverted wrongly removed condition. [ruby-dev:23638]
+Sun Mar 20 21:34:49 2011 Tadayoshi Funaba <tadf@dotrb.org>
-Thu May 27 21:37:50 2004 Tanaka Akira <akr@m17n.org>
+ * ext/date/date_core.c: replacement of implementation of
+ strftime. It has some limitations that is same as Time's
+ one. [experimental]
+ * ext/date/date_strftime.c: new.
+ * ext/date/lib/date/format.rb: removed ruby version of strftime.
- * lib/pathname.rb (Pathname#initialize): fix pathname initialization
- by pathname.
+Sun Mar 20 12:43:12 2011 Tanaka Akira <akr@fsij.org>
-Thu May 27 20:02:09 2004 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+ * ext/openssl/ossl_x509store.c: parenthesize macro arguments.
- * io.c (rb_io_fwrite): check all case errno != 0 [ruby-dev:23648]
+Sun Mar 20 01:39:48 2011 Tajima Akio <artonx@yahoo.co.jp>
-Thu May 27 15:54:02 2004 Shugo Maeda <shugo@ruby-lang.org>
+ * hash.c (ruby_setenv): check env process block size with OS ver.
+ * win32/win32.c: export rb_w32_osver for above patch.
+ * include/ruby/win32.h: declare rb_w32_osver for Win32 Libs.
- * lib/net/ftp.rb (MDTM_REGEXP): fix for demon's ftp server.
- Thanks, Rutger Nijlunsing.
+Sat Mar 19 18:35:05 2011 Tajima Akio <artonx@yahoo.co.jp>
-Thu May 27 14:53:13 2004 WATANABE Hirofumi <eban@ruby-lang.org>
+ * hash.c (ruby_setenv): calculate total env block size for win32.
+ * test/ruby/test_env.rb: add test for above patch.
- * io.c (rb_io_fwrite): workaround for bcc32's fwrite bug.
- add errno checking. [ruby-dev:23627]
+Sat Mar 19 17:14:46 2011 Tajima Akio <artonx@yahoo.co.jp>
- * io.c (rb_io_fwrite): should check if errno == ENOENT, too.
+ * hash.c (ruby_setenv): checking with max process environment
+ block size for Win32. 32767 for 2000/XP, 2003. if failed to
+ read the block, then checking with 5120 for earlier Windows.
-Thu May 27 11:25:03 2004 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+Sat Mar 19 12:30:25 2011 Tanaka Akira <akr@fsij.org>
- * test/csv/test_csv.rb: illegal require module name (../lib/csv.rb).
+ * ext/openssl/ossl_x509revoked.c: parenthesize macro arguments.
-Wed May 26 23:12:13 2004 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+Fri Mar 18 20:44:36 2011 Tanaka Akira <akr@fsij.org>
- * lib/csv.rb (CSV.read, CSV.readlines): added. works as IO.read and
- IO.readlines in CSV format.
+ * ext/openssl/ossl_x509req.c: parenthesize macro arguments.
- * lib/csv.rb (CSV.parse): [CAUTION] behavior changed. in the past,
- CSV.parse accepts a filename to be read-opened (it was just a
- shortcut of CSV.open(filename, 'r')). now CSV.parse accepts a
- string or a stream to be parsed e.g.
- CSV.parse("1,2\n3,r") #=> [['1', '2'], ['3', '4']]
+Fri Mar 18 08:48:06 2011 Oleg Shaldybin <oleg.shaldybin@gmail.com>
- * test/csv/test_csv.rb: follow above changes.
+ * lib/fileutils.rb (FileUtils::Entry_#copy_file): updated FileUtils.cp
+ to still copy file permissions when :preserve is false (as cp does
+ this even when -p isn't set).
-Wed May 26 14:19:42 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Fri Mar 18 00:59:38 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * eval.c (rb_eval, eval): make line number consistent on eval with
- Proc. [ruby-talk:101253]
+ * ext/win32ole/extconf.rb (create_docfile): removed. should not
+ modify source directory unnecessarily, platform dependent
+ documentation should be dealt with by rdoc. [ruby-core:35495]
-Wed May 26 13:59:17 2004 Dave Thomas <dave@pragprog.com>
+Fri Mar 18 00:54:20 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * lib/rdoc/parsers/parse_rb.rb (RDoc::RubyParser::skip_for_variable): Allow for
- 'do' after for statement
+ * include/ruby/ruby.h (rb_funcall_passing_block): add prototype.
+ a patch by James M. Lawrence at [ruby-core:35501]
-Wed May 26 13:56:03 2004 Dave Thomas <dave@pragprog.com>
+Wed Mar 17 06:23:31 2011 Tanaka Akira <akr@fsij.org>
- * lib/rdoc/generators/html_generator.rb (Generators::MarkUp::style_url): Fix
- relative path to code CSS file
+ * ext/openssl/ossl_x509name.c: parenthesize macro arguments.
-Wed May 26 13:14:52 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Wed Mar 16 20:36:56 2011 Tanaka Akira <akr@fsij.org>
- * io.c (rb_io_init_copy): copy also positions. [ruby-talk:100910]
+ * ext/socket/ipsocket.c (init_inetsock_internal): raise an error on
+ listen(2) failure.
+ reported by Xavier Shay. [ruby-core:35505]
-Wed May 26 00:00:00 2004 why the lucky stiff <why@ruby-lang.org>
+Wed Mar 16 15:06:21 2011 Eric Hodel <drbrain@segment7.net>
- * ext/syck/syck.c (syck_new_parser): clear parser on init.
- thanks, ts. [ruby-core:02931]
+ * ext/openssl/lib/openssl/buffering.rb (module OpenSSL): #flush should
+ not change sync mode on exception.
+ * test/openssl/test_buffering.rb: added
- * ext/syck/token.c (sycklex_yaml_utf8): buffer underflow.
- thanks, ts. [ruby-core:02929]
+Wed Mar 16 13:45:28 2011 Eric Hodel <drbrain@segment7.net>
- * lib/yaml/baseemitter.rb (indent_text): simpler flow block code.
+ * ext/openssl/lib/openssl/buffering.rb: de-nest Buffering module
-Tue May 25 11:54:13 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * ext/openssl/lib/openssl/buffering.rb: add RDoc
- * eval.c (rb_yield_0, proc_invoke, proc_arity): allow passing a block
- to a Proc. [ruby-dev:23533]
+Wed Mar 16 08:40:39 2011 Tanaka Akira <akr@fsij.org>
- * parse.y (block_par, block_var): ditto.
+ * ext/openssl/ossl_x509ext.c: parenthesize macro arguments.
-Tue May 25 01:50:17 2004 GOTOU Yuuzou <gotoyuzo@notwork.org>
+Tue Mar 15 18:34:27 2011 Tanaka Akira <akr@fsij.org>
- * ext/openssl/ossl_asn1.c (ossl_i2d_ASN1_TYPE, ossl_ASN1_TYPE_free):
- workaround for the versions earlier than OpenSSL-0.9.7.
+ * ext/openssl/ossl_x509crl.c: parenthesize macro arguments.
-Mon May 24 10:46:26 2004 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
+Tue Mar 15 09:49:03 2011 Shota Fukumori <sorah@tubusu.net>
- * lib/rdoc/generators/template/html/html.rb: SYSTEM identifiers
- must be absolute URIs
+ * test/misc/test_ruby_mode.rb (test_singleton_class): Skip for Pending.
-Sun May 23 04:53:50 2004 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
+Mon Mar 14 21:20:44 2011 CHIKANAGA Tomoyuki <nagachika00@gmail.com>
- * lib/pstore.rb (transaction): allow overriding dump and load.
- [ruby-dev:23567]
-
- * lib/yaml/store.rb: follow lib/pstore.rb's change.
-
-Sat May 22 11:54:10 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * MANIFEST: add test/openssl/test_x509store.rb.
-
- * ext/tk/MANIFEST: add recent files.
-
-Sat May 22 05:37:11 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/lib/remote-tk.rb: (NEW library) controll Tk interpreters
- on the other processes by Tcl/Tk's 'send' command
-
-Fri May 21 09:22:05 2004 Dave Thomas <dave@pragprog.com>
-
- * lib/rdoc/parsers/parse_rb.rb (RDoc::RubyParser::parse_method_parameters):
- Add ()'s around parameters that don't have them
-
-Fri May 21 02:21:11 2004 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
-
- * lib/csv.rb: fixed a few bugs around multi char record/field separator.
-
- * test/csv/test_csv.rb: added boundary test for above feature.
-
-Thu May 20 17:02:03 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/mkmf.rb (check_sizeof): define result size. [ruby-core:02911]
-
- * lib/mkmf.rb (create_header): macro name should not include equal
- sign.
-
-Thu May 20 14:35:52 2004 Tanaka Akira <akr@m17n.org>
-
- * ext/socket/socket.c: check SCM_RIGHTS macro addition to
- the msg_control field to test existence of file descriptor passing
- by msg_control.
-
-Thu May 20 12:38:06 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * numeric.c (flo_eq): always check if operands are NaN.
- [ruby-list:39685]
-
-Thu May 20 12:34:39 2004 Dave Thomas <dave@pragprog.com>
-
- * lib/rdoc/parsers/parse_rb.rb (RDoc::RubyParser::parse_visibility):
- At Ryan Davis' suggestion, honor visibility modifers if guarded by a
- statement modifier
-
-Thu May 20 12:22:13 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/mkmf.rb (have_type): do not check pointer to incomplete type,
- which always get compiled.
- [ruby-list:39683]
-
-Wed May 19 23:45:43 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * test/inlinetest.rb (InlineTest::loadtest): requiring library with
- replaced $0 can make $0 == __FILE__ block be evaluated twice.
-
- * test/ruby/envutil.rb (EnvUtil::rubybin): give priority to
- environment variable. [ruby-dev:23538]
-
-Wed May 19 11:08:10 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/lib/tk.rb: change permition of TkObject#tk_send from
- private to public
-
-Wed May 19 02:29:36 2004 Minero Aoki <aamine@loveruby.net>
-
- * lib/net/http.rb: support TRACE.
-
-Wed May 19 02:21:53 2004 Minero Aoki <aamine@loveruby.net>
-
- * lib/net/http.rb: do not use class variables.
-
-Tue May 18 21:21:43 2004 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
-
- * lib/csv.rb: writes lines with "\n" when row separator is not given.
- formerly it was "\r\n".
-
- * lib/csv.rb: [CAUTION] API change
-
- * CSV::Row removed. a row is represented as just an Array. since
- CSV::Row was a subclass of Array, it won't hurt almost all programs
- except one which depended CSV::Row#match.
-
- * CSV::Cell removed. a cell is represented as just a String or
- nil(NULL). this change will cause widespread destruction.
-
- CSV.open("foo.csv", "r") do |row|
- row.each do |cell|
- if cell.is_null # Cell#is_null
- p "(NULL)"
- else
- p cell.data # Cell#data
- end
- end
- end
-
- must be just;
-
- CSV.open("foo.csv", "r") do |row|
- row.each do |cell|
- if cell.nil?
- p "(NULL)"
- else
- p cell
- end
- end
- end
-
- * lib/csv.rb: [CAUTION] record separator(CR, LF, CR+LF) behavior
- change. CSV.open, CSV.parse, and CSV,generate now do not force
- opened file binmode. formerly it set binmode explicitly.
-
- with CSV.open, binmode of opened file depends the given mode
- parameter "r", "w", "rb", and "wb". CSV.parse and CSV.generate open
- file with "r" and "w".
-
- setting mode properly is user's responsibility now.
-
- * lib/csv.rb: accepts String as a fs (field separator/column separator)
- and rs (record separator/row separator)
-
- * lib/csv.rb: added CSV.foreach(path, rs = nil, &block). CSV.foreach
- now does not handle "| cmd" as a path different from IO.foreach.
- needed?
-
- * test/csv/test_csv.rb: updated.
-
-Tue May 18 14:24:20 2004 why the lucky stiff <why@ruby-lang.org>
-
- * lib/yaml.rb: added rdoc to beginning of lib.
-
-Tue May 18 14:00:46 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * node.h (NEW_DSTR): adjust list length.
-
- * parse.y (literal_concat): ditto.
-
-Tue May 18 09:30:25 2004 SASADA Koichi <ko1@atdot.net>
-
- * eval.c (rb_method_node): search cache entry first.
-
-Mon May 17 16:04:06 2004 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
-
- * numeric.c (flo_to_s): it's preferable that "p 0.0" outputs "0.0"
- instead of "0.0e+00". [ruby-dev:23480]
-
- * numeric.c (flo_to_s): it's preferable that "p 0.00000000000000000001"
- outputs "1.0e-20" instead of "9.999999999999999e-21". (the precision
- is considered, but there is assumption DBL_DIG == 15 in current
- implementation)
-
-Mon May 17 10:13:33 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * ext/socket/socket.c (setup_domain_and_type): honor duck typing.
- [ruby-dev:23522]
-
- * ext/socket/socket.c (sock_s_getnameinfo): ditto.
-
-Mon May 17 00:36:21 2004 why the lucky stiff <why@ruby-lang.org>
-
- * lib/yaml/baseemitter.rb (indent_text): was forcing a mod value
- of zero at times, which kept some blocks from getting indentation.
-
-Mon May 17 00:07:00 2004 Gavin Sinclair <gsinclair@soyabean.com.au>
-
- * lib/drb/drb.rb: Cosmetic documentation changes.
-
-Sun May 16 20:55:49 2004 Tanaka Akira <akr@m17n.org>
-
- * ext/dbm/dbm.c (fdbm_initialize): accept optional 3rd argument to
- specify an open flag.
- (Init_dbm): define open flags: DBM::READER, DBM::WRITER, DBM::WRCREAT
- and DBM::NEWDB.
-
-Sat May 15 17:52:24 2004 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
-
- * test/ruby/test_float.rb(test_strtod): Add test for signed 0.000...1
-
-Sat May 15 14:20:13 2004 WATANABE Hirofumi <eban@ruby-lang.org>
-
- * ext/syck/depend: add ruby's headers.
-
-Sat May 15 13:38:33 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/syck/MANIFEST, ext/syck/depend: new file.
-
- * lib/yaml/rubytypes.rb: range of exponential floats. [ruby-core:02824]
-
- * test/yaml/test_yaml.rb: tests for strings start with colon and some
- round trip.
-
-Sat May 15 12:04:58 2004 why the lucky stiff <why@ruby-lang.org>
-
- * lib/yaml.rb: removed fallback to pure Ruby parser.
-
- * lib/yaml/baseemitter.rb (node_text): rewriting folded scalars.
-
- * ext/syck/syck.h: reports style of scalars now, be they plain, block
- single-, or double-quoted.
-
- * ext/syck/syck.c: ditto.
+ * test/ruby/test_require.rb (test_require_too_long_filename):
+ increase path length, because MAXPATHLEN is defined as 4096 on linux.
- * ext/syck/gram.c: ditto.
+ * test/ruby/test_require.rb (test_require_path_home_1): ditto.
- * ext/syck/node.c: ditto.
+ * test/ruby/test_require.rb (test_require_path_home_2): ditto.
- * ext/syck/token.c: ditto.
+Mon Mar 14 19:54:37 2011 Tanaka Akira <akr@fsij.org>
- * ext/syck/rubyext.c (yaml_org_handler): symbols loaded only
- if scalar style is plain.
+ * ext/openssl/ossl_x509cert.c: parenthesize macro arguments.
- * test/yaml/test_yaml.rb (test_perl_regexp): updated test to
- match new regexp serialization.
+Sun Mar 13 18:11:28 2011 Tanaka Akira <akr@fsij.org>
-Sat May 15 01:41:34 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * ext/openssl/ossl_x509attr.c: parenthesize macro arguments.
- * eval.c (eval): forgot to restore $SAFE value before evaluating
- compiled node. [ruby-core:02872]
+Sun Mar 13 16:07:58 2011 Shota Fukumori <sorah@tubusu.net>
-Sat May 15 01:33:12 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * lib/pstore.rb: Fix don't raise "nested transaction" when thread_safe
+ is true. Patch by Masaki Matsushita (Glass_saga). [ruby-dev:43337]
- * range.c (range_each_func): terminates loop if generating value
- is same to @end. [ruby-talk:100269]
+ * test/test_pstore.rb: Test for above.
+ Patch by Masaki Matsushita (Glass_saga) [ruby-dev:43337]
-Fri May 14 22:08:38 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+Sat Mar 12 04:12:41 2011 Tanaka Akira <akr@fsij.org>
- * string.c (rb_str_new4): should not reuse frozen shared string if
- the original is not an instance of String. [ruby-talk:100193]
+ * ext/openssl/ossl_ssl_session.c: parenthesize macro arguments.
-Fri May 14 21:29:26 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+Sat Mar 12 02:27:07 2011 Tadayoshi Funaba <tadf@dotrb.org>
- * time.c (time_mdump): preserve GMT bit in the marshal data.
- [ruby-talk:100213]
+ * ext/date/date_core.c ({d,dt}_lite_marshal_load): checks the given
+ argument.
-Fri May 14 18:37:49 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+Sat Mar 12 01:26:24 2011 Tadayoshi Funaba <tadf@dotrb.org>
- * ext/tk/lib/tk/canvas.rb: improve coords support for canvas
- items. Now, supports all of the followings.
- TkcLine.new(c, 0, 0, 100, 100, :fill=>'red')
- TkcLine.new(c, [0, 0, 100, 100], :fill=>'red')
- TkcLine.new(c, [0, 0], [100, 100], :fill=>'red')
- TkcLine.new(c, [[0, 0], [100, 100]], :fill=>'red')
- TkcLine.new(c, :coords=>[0, 0, 100, 100], :fill=>'red')
- TkcLine.new(c, :coords=>[[0, 0], [100, 100]], :fill=>'red')
+ * ext/date/date_core.c: changed some directives.
-Fri May 14 13:30:39 2004 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+Sat Mar 12 01:16:02 2011 Tadayoshi Funaba <tadf@dotrb.org>
- * test/ruby/test_float.rb: Add test for util.c revision 1.42.
+ * ext/date/date_core.c, ext/date/lib/*: moved rdoc descriptions.
-Fri May 14 12:13:46 2004 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+Sat Mar 12 00:06:24 2011 Tadayoshi Funaba <tadf@dotrb.org>
- * util.c (ruby_strtod): strtod("0", &end); => end should point '\0'.
- [ruby-dev:23498]
+ * ext/date/lib: moved from lib.
-Thu May 13 15:47:30 2004 akira yamada <akira@ruby-lang.org>
+Fri Mar 11 23:32:38 2011 Tadayoshi Funaba <tadf@dotrb.org>
- * lib/net/telnet.rb (Net::Telnet::login): "options" can specify
- regexps for login prompt and/or password prompt.
+ * lib/date/delta*: removed undocumented delta.
-Thu May 13 14:17:57 2004 why the lucky stiff <why@ruby-lang.org>
+Fri Mar 11 18:42:43 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * ext/syck/rubyext.c (yaml_org_handler): some empty strings were
- loaded as symbols.
+ * lib/mkmf.rb (find_executable0): should exclude directories.
-Thu May 13 11:04:08 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Fri Mar 11 01:40:35 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * pack.c (pack_pack): always add with null for 'Z'.
+ * process.c (proc_getmaxgroups, proc_setmaxgroups): Process#maxgroups
+ and Process#maxgroups= now raise NotImplementedError if the
+ platform don't support supplementary groups concept.
- * pack.c (pack_unpack): terminated by null for 'Z'. [ruby-talk:98281]
+Fri Mar 11 01:25:03 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
-Wed May 12 19:59:43 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * process.c (get_sc_ngroups_max): return -1 if platform don't
+ support NGROUPS_MAX.
- * lib/mkmf.rb (have_type, check_sizeof): replace unusable characters.
- [ruby-talk:99788]
+Thu Mar 10 22:28:15 2011 Tanaka Akira <akr@fsij.org>
-Wed May 12 17:41:42 2004 Tanaka Akira <akr@m17n.org>
+ * ext/openssl/ossl_ssl.h: parenthesize macro arguments.
- * lib/resolv.rb (Resolv::DNS::Config): make it configurable without
- external file such as /etc/resolv.conf.
+Thu Mar 10 21:59:37 2011 NARUSE, Yui <naruse@ruby-lang.org>
-Wed May 12 14:37:27 2004 GOTOU Yuuzou <gotoyuzo@notwork.org>
+ * parse.y (parser_encode_length): add exception as UTF8-MAC for
+ magic comment's emacs newline specifier
+ patched by James M. Lawrence [ruby-core:35476] fixes #4489
- * ext/openssl/ossl_x509name.c: attribute value of DC (short name of
- domainComponent) should be IA5String.
+Thu Mar 10 16:00:22 2011 NARUSE, Yui <naruse@ruby-lang.org>
-Wed May 12 13:20:19 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+ * parse.y (parser_encode_length): fix typo: the length of
+ "-dos" and "-mac" is not 5 but 4.
+ patched by James M. Lawrence [ruby-core:35476] fixes #4489
- * ext/tk/lib/tk/composite.rb: improve configure methods (based on
- the proposal of [ruby-talk:99671]).
+Thu Mar 10 10:52:01 2011 NAKAMURA Usaku <usa@ruby-lang.org>
-Wed May 12 11:51:08 2004 Dave Thomas <dave@pragprog.com>
+ * test/ruby/test_require.rb: setting too long string to ENV causes
+ Errno::EINVAL on Windows. long path name errors may causes over
+ about 1024 bytes, then limit it about 4000 bytes.
- * class.c (rb_obj_singleton_methods): fix rdoc
+Thu Mar 10 10:09:35 2011 NARUSE, Yui <naruse@ruby-lang.org>
-Tue May 11 07:09:42 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * lib/test/unit.rb (Test::Unit::Runner::Worker#read): fix for the case
+ when IO#read or IO#gets returns nil.
- * eval.c (is_defined): do not protect exception during receiver
- evaluation.
+Thu Mar 10 07:12:03 2011 Ryan Davis <ryand-ruby@zenspider.com>
-Mon May 10 22:28:14 2004 Minero Aoki <aamine@loveruby.net>
+ * lib/rubygems*: Import rubygems 1.6.2 (release candidate @ 2026fbb5)
+ * test/rubygems: Ditto
+ * test/runner.rb: Added test to load path to fix test requires.
- * lib/net/protocol.rb (each_crlf_line): remove junk line.
+Thu Mar 10 03:00:43 2011 Tanaka Akira <akr@fsij.org>
-Mon May 10 21:44:42 2004 Dave Thomas <dave@pragprog.com>
+ * ext/openssl/ossl_ssl.c: parenthesize macro arguments.
- * lib/rdoc/generators/html_generator.rb: Change scheme for
- looking up symbols in HTML generator.
+Wed Mar 9 23:51:26 2011 CHIKANAGA Tomoyuki <nagachika00@gmail.com>
-Mon May 10 16:45:21 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * test/ruby/test_io_m17n.rb (test_io_new_enc): "sjis" is now an alias
+ of Windows-31J.
- * eval.c (eval): warning during eval should not cause deadlock.
- [ruby-talk:98651]
+Wed Mar 9 23:06:13 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * eval.c (rb_eval): raise TypeError exception for superclass
- mismatch. [ruby-list:39567]
+ * misc/ruby-mode.el (ruby-parse-partial): fix indent after aref.
-Mon May 10 12:11:37 2004 Dave Thomas <dave@pragprog.com>
+Wed Mar 9 12:50:24 2011 Aaron Patterson <aaron@tenderlovemaking.com>
- * lib/rdoc/generators/html_generator.rb: Hack to search parents
- for unqualified constant names.
+ * ext/psych/lib/psych/visitors/yaml_tree.rb: Rescue exceptions when
+ people implement the method method. Thanks Lin Jen-Shin.
+ [ruby-core:35255]
-Mon May 10 01:18:15 2004 Minero Aoki <aamine@loveruby.net>
+ * test/psych/visitors/test_yaml_tree.rb: test for implementation of
+ method method.
- * lib/net/pop.rb (logging): append "\n".
+Wed Mar 9 11:53:31 2011 NARUSE, Yui <naruse@ruby-lang.org>
-Sun May 9 23:38:00 2004 Gavin Sinclair <gsinclair@soyabean.com.au>
+ * enc/shift_jis.c: Change SJIS as an alias of Windows-31J.
+ [ruby-dev:43027] fixes #4280
- * lib/net/ftp.rb: ported documentation improvement from 1.8 branch
+ * enc/shift_jis.c: Add PCK as an alias of Windows-31J.
- * lib/net/imap.rb: ditto
+Wed Mar 9 00:45:29 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * lib/net/pop.rb: ditto
+ * ext/extmk.rb: nmake substitutes all occurrences in macro.
- * lib/net/smtp.rb: ditto
+ * ext/extmk.rb: workaround for nmake.
- * lib/net/telnet.rb: ditto
+Tue Mar 8 23:49:45 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
-Sun May 9 23:34:51 2004 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+ * process.c (proc_setgroups): cleanup.
- * test/ruby/test_float.rb: added test_strtod to test Float("0").
+Tue Mar 8 23:40:30 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Sun May 9 13:24:24 2004 WATANABE Hirofumi <eban@ruby-lang.org>
+ * test/misc/test_ruby_mode.rb: test for ruby-mode.el.
- * lib/yaml/store.rb: use FileUtils::copy.
+Tue Mar 8 23:27:38 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
-Sun May 9 12:34:26 2004 Kazuo Saito <ksaito@uranus.dti.ne.jp>
+ * process.c (get_sc_ngroups_max): try to use NGROUPS_MAX at first if
+ _SC_NGROUP_MAX is not defined.
- * regex.c: removed unused file.
+Tue Mar 8 23:10:16 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Sat May 8 10:53:30 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * misc/ruby-mode.el (ruby-parse-partial): fix for array in block.
- * io.c (rb_f_open): open should not ignore block when "to_open"
- method is used. [ruby-dev:23478]
+Tue Mar 8 21:44:49 2011 Tanaka Akira <akr@fsij.org>
-Fri May 7 22:07:39 2004 Minero Aoki <aamine@loveruby.net>
+ * ext/openssl/ossl_rand.c: parenthesize macro arguments.
- * lib/fileutils.rb (mv): new option `force'. [ruby-talk:99457]
+Tue Mar 8 16:45:31 2011 NAKAMURA Usaku <usa@ruby-lang.org>
- * lib/fileutils.rb: new method for command option reflection:
- FileUtils.commands, .options, .have_option?, .options_of,
- .collect_methods.
+ * hash.c (ruby_setenv): MSDN says that Windows XP or earlier limits
+ the total size of environment block to 5,120 chars. and on such
+ OS, putenv() causes SEGV. So, ruby should limit the size of an
+ environment variable to 5,120 bytes for workaround.
- * lib/fileutils.rb: module Verbose, NoWrite, DryRun do not have
- option flags @fileutils_verbose and @fileutils_noop, they make no
- sense.
+Tue Mar 8 15:57:20 2011 NAKAMURA Usaku <usa@ruby-lang.org>
-Fri May 7 21:50:21 2004 Dave Thomas <dave@pragprog.com>
+ * test/rubygems/test_gem_spec_fetcher.rb
+ (TestGemSpecFetcher#test_cache_dir_escapes_windows_paths): cache_dir
+ may have driveletter and `:' for base of cache_dir itself, so need
+ to skip it for checking.
- * lib/rdoc/parsers/parse_rb.rb (RDoc::parse_include): Allow
- multiple arguments to 'include'
+Tue Mar 8 12:30:06 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Fri May 7 21:03:51 2004 Minero Aoki <aamine@loveruby.net>
+ * misc/ruby-mode.el (ruby-deep-indent-paren-p, ruby-calculate-indent):
+ do not apply deep-indent inside parens at the beginning of
+ expressions.
- * lib/fileutils.rb (fu_list): Array() breaks pathes including "\n".
- [ruby-core:02843]
+Tue Mar 8 09:32:48 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * test/fileutils/test_fileutils.rb (mkdir): test "\n" in path.
+ * common.mk (configure-ext, build-ext), ext/extmk.rb (extmake):
+ support parallel-make under ext.
-Fri May 7 20:53:25 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+Tue Mar 8 09:25:23 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * ext/dbm/dbm.c (fdbm_modify): typo fixed. [ruby-dev:23473]
+ * process.c (proc_setgroups): use getgrnam() if getgrnam_r() is
+ not available.
-Fri May 7 11:17:27 2004 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+ * process.c: RARRAY_LEN() returns long int.
- * util.c (ruby_strtod): "0.0000000000000000001" should be converted
- to 1.0e-19 instead of 0.0. (leading zeros aren't significant digits)
- [ruby-talk:99318] [ruby-dev:23465]
+Tue Mar 8 09:07:03 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Thu May 6 22:27:32 2004 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
+ * configure.in (RUBY_REPLACE_TYPE): enclose in quotes for multiple
+ type names.
- * ext/socket/socket.c (ippaddr): use NUMERICHOST if can not resolve
- hostname.
+Tue Mar 8 01:43:11 2011 NARUSE, Yui <naruse@ruby-lang.org>
-Thu May 6 22:09:29 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+ * process.c (get_sc_ngroups_max): define to wrap sysconf(3).
+ this also supports Windows which doesn't have sysconf(3).
- * ext/tk/tkutil.c (get_eval_string_core): bug fix. [ruby-dev:23466]
+ * process.c (maxgroups): use get_sc_ngroups_max.
-Thu May 6 14:22:29 2004 why the lucky stiff <why@ruby-lang.org>
+ * process.c (proc_setmaxgroups): ditto.
- * lib/yaml/rubytypes.rb (to_yaml): added instance variable handling
- for Ranges, Strings, Structs, Regexps.
+Tue Mar 8 01:16:49 2011 NARUSE, Yui <naruse@ruby-lang.org>
- * lib/yaml/rubytypes.rb (to_yaml_fold): new method for setting a
- String's flow style.
+ * gc.c (rb_objspace): an initializer must be a constant.
- * lib/yaml.rb (YAML::object_maker): now uses Object.allocate.
+Tue Mar 8 01:11:44 2011 NARUSE, Yui <naruse@ruby-lang.org>
- * ext/syck/gram.c: fixed transfer methods on structs, broke it
- last commit.
+ * process.c (maxgroups): cast because sysconf(3)'s return value is long.
-Thu May 6 14:38:02 2004 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+ * process.c (proc_setmaxgroups): ditto.
- * dir.c (rb_push_glob): simplified code (not change behavior)
+ * process.c (proc_setgroups): cast because RARRAY_LEN() is long.
-Thu May 6 13:32:44 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Tue Mar 8 00:02:47 2011 Tanaka Akira <akr@fsij.org>
- * ext/extmk.rb: get rid of side effect of Config.expand, patched by
- <tttt01@infoseek.jp> (ruby-bugs:PR#597)
+ * ext/openssl/ossl_pkey_rsa.c: parenthesize macro arguments.
-Thu May 6 11:40:28 2004 Shugo Maeda <shugo@ruby-lang.org>
+Mon Mar 7 22:59:39 2011 Shota Fukumori <sorah@tubusu.net>
- * lib/net/imap.rb (string): accept NIL.
+ * lib/pstore.rb: Delete variable @transaction and fix #4474. Patch by
+ Masaki Matsushita (Glass_saga).
- * lib/net/imap.rb (body_type_basic): allow body-fields omissions.
+ * test/test_pstore.rb(test_thread_safe): Add test for #4474.
-Thu May 6 01:59:04 2004 Dave Thomas <dave@pragprog.com>
+Mon Mar 7 21:31:38 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * lib/rdoc/generators/html_generator.rb (Generators::HtmlMethod::params):
- Don't include the &block parameter if we have explicit
- yield parameters.
+ * process.c (proc_setgroups): replace getgrnam() with getgrnam_r()
+ because getgrnam() isn't thread safe.
-Wed May 5 03:52:31 2004 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
+Mon Mar 7 20:49:12 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * lib/rinda/ring.rb: use recv instead of recvfrom.
+ * process.c (proc_getmaxgroups, proc_setmaxgroups): reflect
+ platform maxgroups limitation by default instead hardcoded 65536.
-Wed May 5 00:38:00 2004 Gavin Sinclair <gsinclair@soyabean.com.au>
+Mon Mar 7 17:13:00 2011 Yukihiro Matsumoto <matz@ruby-lang.org>
- * lib/gserver.rb: documented
- * lib/xmlrpc/README.txt: introduced for documentation purposes
+ * gc.c (rb_gc_set_params): allow GC parameter configuration by
+ environment variables. based on a patch from funny-falcon at
+ https://gist.github.com/856296, but honors safe level.
-Mon May 3 09:47:24 2004 Dave Thomas <dave@pragprog.com>
+Mon Mar 7 09:05:18 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * lib/rdoc/parsers/parse_rb.rb (RDoc::RubyParser::parse_method_or_yield_parameters):
- Fix parsing bug if yield called within 1 line block
+ * process.c: NUM2RLIM is defined but no getrlimit and setrlimit on
+ mingw.
-Sun May 2 21:56:48 2004 Minero Aoki <aamine@loveruby.net>
+Mon Mar 7 08:38:14 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * test/fileutils/test_fileutils.rb (rm_f, rm_r): test :force flag.
+ * ext/date/date_core.c (DateTimeData): should not use bare 'long long'
+ and 'long double', which are not defined by C89.
-Sun May 2 01:04:38 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+ * ext/date/date_core.c (dt_lite_plus): get rid of overflow at casting
+ down double to integer.
- * ext/tcltklib, ext/tk: renewal Ruby/Tk
+Mon Mar 7 00:21:11 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
-Fri Apr 30 20:08:41 2004 WATANABE Hirofumi <eban@ruby-lang.org>
+ * process.c (proc_getgroups): get rid of maxgroups dependency.
+ ngroups can be calculated dynamically.
- * time.c (SIZEOF_TIME_T): support SIZEOF_TIME_T == SIZEOF_INT.
+Sun Mar 6 23:45:40 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
-Wed Apr 28 01:26:11 2004 Kazuo Saito <ksaito@uranus.dti.ne.jp>
+ * configure.in: rlim_t use standard RUBY_REPLACE_TYPE mechanism.
- * oniguruma.h, regparse.c: imported Oni Guruma 2.2.8.
+Sun Mar 6 23:26:07 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
-Wed Apr 28 01:16:23 2004 Kazuo Saito <ksaito@uranus.dti.ne.jp>
+ * process.c (proc_setmaxgroups): added negative value check.
+ This was suggested by Daniel Berger. Thanks Daniel!
+ [ruby-core:35426][Bug#4467]
- * oniguruma.h, regparse.c: imported Oni Guruma 2.2.7.
+Sun Mar 6 23:18:23 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
-Tue Apr 27 14:43:32 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * process.c (maxgroups, proc_setmaxgroups): increase max groups
+ limitation up to 65536.
- * common.mk: LIBURUBY_A is needed for extconf.rb even when
- cross-compiling.
+Sun Mar 6 22:20:59 2011 Tanaka Akira <akr@fsij.org>
-Tue Apr 27 13:33:50 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * ext/openssl/ossl_pkey_ec.c: parenthesize macro arguments.
- * parse.y (string_content): turn off NODE_NEWLINE flag to avoid
- unnecessary line trace for inlined expression.
- (ruby-bugs PR#1320)
+Sun Mar 6 21:49:04 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
-Tue Apr 27 08:15:13 2004 why the lucky stiff <why@ruby-lang.org>
+ * sample/list.rb (MyElem#initialize): initialize @head
+ explicitly. Otherwise -W2 option makes following warning.
+ "warning: instance variable @head not initialized".
+ This issue was founded by Andrew Grimm. Thanks Andrew!
+ [ruby-core:35435][Bug#4471]
- * lib/yaml/rubytypes.rb: passing Range tests.
+Sun Mar 6 05:21:41 2011 NARUSE, Yui <naruse@ruby-lang.org>
- * ext/syck/syck.h: version 0.44.
+ * class.c: fix camelCase to snake_case in documentation code examples.
+ patched by Andrew Grimm. fixes Bug #4469
- * ext/syck/gram.c: transfers no longer open an indentation.
- fixed transfers which precede blocks.
+ * marshal.c: ditto.
- * ext/syck/token.c: ditto.
+ * proc.c: ditto.
- * ext/syck/syck.c: fixed segfault if an anchor has been released already.
+ * sample/biorhythm.rb: ditto.
- * ext/syck/node.c (syck_free_members): organized order of free'd nodes.
+ * vm_eval.c: ditto.
- * ext/syck/rubyext.c (syck_emitter_write_m): test for proper string with
- StringValue.
+ * vm_method.c: ditto.
-Mon Apr 26 23:56:54 2004 Daniel Kelley <news-1082945587@dkelley.gmp.san-jose.ca.us>
- * README.EXT, README.EXT.ja: fixed wrong function signature.
- [ruby-talk:98349]
+Sun Mar 6 03:22:27 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
-Mon Apr 26 21:40:09 2004 Dave Thomas <dave@pragprog.com>
+ * io.c (io_cntl): use rb_thread_io_blocking_region() instead
+ rb_thread_blocking_region().
- * lib/rdoc/code_objects.rb (RDoc::Context::add_alias): Only alias
- to instance methods.
+Sat Mar 5 22:54:36 2011 CHIKANAGA Tomoyuki <nagachika00@gmail.com>
-Sun Apr 25 18:26:23 2004 WATANABE Hirofumi <eban@ruby-lang.org>
+ * include/ruby/intern.h: fix a typo of prototype declaration.
+ rb_mutex_try_lock -> rb_mutex_trylock [ruby-dev:43213]
- * configure.in (ac_cv_func_fork): set to no on DJGPP.
+Sat Mar 5 19:44:03 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
-Sat Apr 24 14:32:03 2004 Kazuo Saito <ksaito@uranus.dti.ne.jp>
+ * test/ruby/test_io.rb (TestIO#test_fcntl_lock): small clean up.
- * re.c: applied stack error handling patch. [ruby-dev:23431]
+Sat Mar 5 01:33:46 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
-Sat Apr 24 10:38:31 2004 Dave Thomas <dave@pragprog.com>
+ * io.c (io_cntl, nogvl_io_cntl): IO.fcntl() and IO.ioctl()
+ release GVL during calling kernel interface.
+ Suggested by Eric Wong. [ruby-core:35417][Bug #4463]
- * lib/rdoc/markup/simple_markup.rb (SM::SimpleMarkup::group_lines):
- Fix bug where consecutive headings are merged.
+ * test/ruby/test_io.rb (TestIO#test_fcntl_lock): add new test for
+ IO.fcntl().
-Fri Apr 23 23:24:47 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Fri Mar 4 23:09:12 2011 CHIKANAGA Tomoyuki <nagachika00@gmail.com>
- * lib/mkmf.rb: $hdrdir should not contain macros, for backward
- compatibility. [bruby-dev:28]
+ * test/testunit/test_parallel.rb
+ (test_should_run_all_without_any_leaks): consider that the order of
+ testcase could change. [ruby-dev:43300] [Bug #4466]
- * lib/mkmf.rb (create_makefile): in the case of extout, just copy
- script files, without comparison.
+Fri Mar 4 22:01:14 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
-Fri Apr 23 16:38:46 2004 Tanaka Akira <akr@m17n.org>
+ * io.c (io_cntl): change 'cmd' type to int. ioctl and fcntl need to
+ be passed int.
+ * io.c (rb_io_ctl): ditto.
- * lib/pathname.rb: sync taint/freeze flag between
- a pathname object and its internal string object.
+Fri Mar 4 21:10:40 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
-Fri Apr 23 14:52:14 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * configure.in: save warnflags. the patch is created by Eric Wong.
+ [Bug #4465]
- * parse.y (stmt, arg, aref_args): should not make sole splat into
- array, in aref_args other than aref with op_asgn.
+Wed Mar 2 21:15:00 2011 Tanaka Akira <akr@fsij.org>
-Fri Apr 23 14:14:38 2004 Tanaka Akira <akr@m17n.org>
+ * ext/openssl/ossl_pkey_dsa.c: parenthesize macro arguments.
- * lib/resolv.rb: don't use Regexp#source to embed regexps.
- [ruby-dev:23432]
+Thu Mar 3 22:10:26 2011 NAKAMURA Usaku <usa@ruby-lang.org>
-Thu Apr 22 18:25:10 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * process.c (check_exec_redirect_fd, check_exec_redirect): raise
+ ArgumentError if fd >= 3 on Windows because the feature is not
+ supported.
- * common.mk, ext/extmk.rb: make ext and .ext get removed by distclean.
+ * test/ruby/test_process.rb (test_execopts_redirect): remove meaningless
+ argument.
-Thu Apr 22 10:07:01 2004 NAKAMURA Usaku <usa@ruby-lang.org>
+Thu Mar 3 21:21:42 2011 NAKAMURA Usaku <usa@ruby-lang.org>
- * */Makefile.sub (distclean-local): should remove $(RBCONFIG).
+ * test/ruby/test_process.rb (test_execopts_redirect): redirecting fd
+ >= 3 is not supported on Windows, so should not specify such options
+ when calling spawn or others.
-Thu Apr 22 04:17:57 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Thu Mar 3 18:59:04 2011 NARUSE, Yui <naruse@ruby-lang.org>
- * eval.c (rb_mod_define_method): allow binding methods to modules.
- [ruby-dev:23410]
+ * string.c (rb_str_slice_bang): raise error when the string is frozen.
- * parse.y (aref_args): should pass expanded list. [ruby-core:02793]
+Thu Mar 3 14:25:19 2011 NARUSE, Yui <naruse@ruby-lang.org>
-Thu Apr 22 01:12:57 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * strftime.c (STRFTIME): return 0 and ERANGE when precision is too
+ large. [ruby-dev:43284] fixes #4456
- * numeric.c (flo_to_s): tweak output string based to preserve
- decimal point and to remove trailing zeros. [ruby-talk:97891]
+Thu Mar 3 00:46:51 2011 NARUSE, Yui <naruse@ruby-lang.org>
- * string.c (rb_str_index_m): use unsigned comparison for T_FIXNUM
- search. [ruby-talk:97342]
+ * addr2line.c (uleb128): cast the value to unsigned long.
-Wed Apr 21 23:04:42 2004 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
+ * addr2line.c (fill_lines): print error when lseek fails.
- * lib/rinda/rinda.rb, test/rinda/test_rinda.rb: check Hash tuple size.
+Thu Mar 3 00:36:29 2011 NARUSE, Yui <naruse@ruby-lang.org>
-Wed Apr 21 20:05:00 2004 Tanaka Akira <akr@m17n.org>
+ * lib/rexml/encoding.rb (REXML::Encoding#encoding=): store @encoding
+ a String which means the name of the encoding.
+ this partially revert r29646.
- * lib/open-uri.rb (URI::HTTP#proxy_open): set Host: field explicitly.
- [ruby-list:39542]
+ * lib/rexml/document.rb: follow above.
-Wed Apr 21 18:39:46 2004 Minero Aoki <aamine@loveruby.net>
+ * lib/rexml/output.rb: ditto.
- * lib/net/smtp.rb: merge SMTP-TLS patch. This patch is
- contributed by Daniel Hob. [ruby-core:02789]
+ * lib/rexml/parsers/baseparser.rb: ditto.
-Wed Apr 21 18:23:45 2004 Minero Aoki <aamine@loveruby.net>
+ * lib/rexml/source.rb: ditto.
- * lib/net/smtp.rb: change coding style: def m( a ) -> def m(a).
+ * lib/rexml/xmldecl.rb: ditto.
-Wed Apr 21 18:01:47 2004 Minero Aoki <aamine@loveruby.net>
+Wed Mar 2 23:19:56 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * lib/net/pop.rb: do not use class variables.
+ * string.c (str_byte_substr): return nil for negative length.
- * lib/net/pop.rb (do_start): ensure to clean up connection when
- authentication failed.
+Wed Mar 2 21:15:00 2011 Tanaka Akira <akr@fsij.org>
-Wed Apr 21 17:23:59 2004 Minero Aoki <aamine@loveruby.net>
+ * ext/openssl/ossl_pkey_dh.c: parenthesize macro arguments.
- * lib/net/http.rb (HTTP#connect): CONNECT must precede SSL connect.
- [ruby-dev:23379]
+Wed Mar 2 14:24:04 2011 Shota Fukumori <sorah@tubusu.net>
- * lib/net/http.rb (HTTP.new): class variables are not inherited
- now.
+ * lib/test/unit/parallel.rb: Fix name from `inclement_io` to
+ `increment_io`.
-Wed Apr 21 15:56:43 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Wed Mar 2 14:06:01 2011 NARUSE, Yui <naruse@ruby-lang.org>
- * lib/test/unit/ui/console/testrunner.rb (test_started): restore $0
- after changing process title. [ruby-talk:97426]
+ * string.c (rb_str_slice_bang): move treatments which is only needed
+ when the result is not nil.
-Wed Apr 21 10:18:06 2004 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+Wed Mar 2 14:02:29 2011 Shota Fukumori <sorah@tubusu.net>
- * process.c(rb_spawn): fix SEGV at "p system('command line here')"
- (may happen only in bccwin32) [ruby-dev:23380]
+ * test/testunit/test_parallel.rb(TestParallel#spawn_runner):
+ Fix outputing empty line in running test.
-Mon Apr 19 20:58:44 2004 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+ * test/testunit/tests_for_parallel/test_third.rb: Remove `sleep`
- * dir.c: Updated RDocs.
+Tue Mar 1 22:29:10 2011 Tanaka Akira <akr@fsij.org>
-Mon Apr 19 18:11:15 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * ext/openssl/ossl_pkey.h: parenthesize macro arguments.
- * hash.c (rb_hash_equal): returns true if two hashes have same set
- of key-value set. [ruby-talk:97559]
+Tue Mar 1 22:02:35 2011 Shota Fukumori <sorah@tubusu.net>
- * hash.c (rb_hash_eql): returns true if two hashes are equal and
- have same default values.
+ * lib/test/unit/parallel.rb: Fix number.
-Mon Apr 19 08:19:11 2004 Doug Kearns <djkea2@mugca.its.monash.edu.au>
+Tue Mar 1 21:48:22 2011 Shota Fukumori <sorah@tubusu.net>
- * dln.c, io.c, pack.c, lib/benchmark.rb, lib/cgi.rb, lib/csv.rb,
- lib/date.rb, lib/ftools.rb, lib/getoptlong.rb, lib/logger.rb,
- lib/matrix.rb, lib/monitor.rb, lib/set.rb, lib/thwait.rb,
- lib/timeout.rb, lib/yaml.rb, lib/drb/drb.rb, lib/irb/workspace.rb,
- lib/net/ftp.rb, lib/net/http.rb, lib/net/imap.rb, lib/net/pop.rb,
- lib/net/telnet.rb, lib/racc/parser.rb, lib/rinda/rinda.rb,
- lib/rinda/tuplespace.rb, lib/shell/command-processor.rb,
- lib/soap/rpc/soaplet.rb, lib/test/unit/testcase.rb,
- lib/test/unit/testsuite.rb: typo fix.
+ * lib/test/unit/parallel.rb: For Windows.
-Mon Apr 19 08:14:18 2004 Dave Thomas <dave@pragprog.com>
+ * test/testunit/test_parallel.rb(TestParallelWorker#test_quit_in_test):
+ Fix for above specification change.
+ * test/testunit/test_parallel.rb(TestParallel#spawn_runner):
+ Fix outputing empty line in running test.
- * lib/rdoc/parsers/parse_c.rb (RDoc::C_Parser::find_body): Allow for
- #ifdef HAVE_PROTOTYPES
+Tue Mar 1 20:51:57 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
-Fri Apr 16 17:04:07 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * test/ruby/test_system.rb (TestSystem#test_system_at):
+ remove tests for [bug#4396]. because we decided to reject this
+ ticket.
- * string.c (rb_str_equal): always returns true or false, never
- returns nil. [ruby-dev:23404]
+Tue Mar 1 19:46:19 2011 Tadayoshi Funaba <tadf@dotrb.org>
-Fri Apr 16 12:38:48 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * test/date/{test_date.rb,test_date_attr.rb}: [ruby-dev:43280]
- * lib/drb/drb.rb (DRb::DRbUnknown::initialize): Exception#to_str is
- deprecated.
+Tue Mar 1 18:40:38 2011 Ryan Davis <ryan@YPCMC09457>
- * lib/drb/drb.rb (DRb::DRbServer::InvokeMethod::perform): multiple
- value class changed.
+ * lib/rubygems*: Import rubygems 1.6.0 (released version @ 58d8a0b9)
+ * test/rubygems: Ditto
- * lib/drb/invokemethod.rb (DRb::DRbServer::InvokeMethod18Mixin::block_yield):
- ditto.
+Tue Mar 1 16:22:22 2011 NAKAMURA Usaku <usa@ruby-lang.org>
-Fri Apr 16 08:27:08 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * win32/win32.c: revert r30987 because it causes some failures in
+ test-all, especially webrick.
- * ext/extmk.rb: skip linking when libraries to be preloaded not
- compiled. [ruby-list:39561]
+Tue Mar 1 15:59:53 2011 NARUSE, Yui <naruse@ruby-lang.org>
-Thu Apr 15 19:57:11 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * string.c (rb_str_byteslice): the resulted encoding should keep
+ original encoding. this also fixes the encoding when the result
+ shares internal string. [ruby-core:35376]
- * process.c (pst_success_p): new method Process::Status#success?.
- [ruby-dev:23385]
+Tue Mar 1 13:25:00 2011 Kenta Murata <mrkn@mrkn.jp>
- * rubytest.rb: do nothing while cross-compiling, return status in
- system independent style.
+ * ext/bigdecimal/bigdecimal.c (VpMemAlloc): CVE-2011-0188.
+ Fixes a bug reported by Drew Yao <ayao at apple.com>
-Thu Apr 15 19:26:54 2004 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+Tue Mar 1 10:34:39 2011 NARUSE, Yui <naruse@ruby-lang.org>
- * dir.c (rb_push_glob): Dir.glob() should return nil if block is given.
- (http://www.ruby-lang.org/ja/man/index.cgi?cmd=view;name=Dir)
+ * string.c (rb_str_byteslice): Add String#byteslice. [ruby-core:35376]
- * dir.c (push_braces): Dir.glob() should handle '{ }' nested more than
- 3 times.
+Tue Mar 1 00:12:49 2011 Tajima Akio <artonx@yahoo.co.jp>
- * dir.c (push_braces, rb_push_glob): Dir.glob() should handle escaped
- '{' and '}' and ','.
+ * include/ruby/win32.h: define WIN32 if neither _WIN64 nor WIN32
+ defined. it forces to use push/pop for pack(4) pragma.
- [ruby-dev:23376]
+Mon Feb 28 23:52:13 2011 CHIKANAGA Tomoyuki <nagachika00@gmail.com>
-Thu Apr 15 17:12:13 2004 Tanaka Akira <akr@m17n.org>
+ * test/testunit/test_rake_integration.rb (test_with_rake_runner):
+ use assert_in_out_err for suppress messages.
- * ext/gdbm/gdbm.c (Init_gdbm): define GDBM::READER, GDBM::WRITER,
- GDBM::WRCREAT and GDBM::NEWDB.
- (fgdbm_initialize): use specified read/write flag.
+Mon Feb 28 22:48:56 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
-Wed Apr 14 13:06:09 2004 Doug Kearns <djkea2@mugca.its.monash.edu.au>
+ * win32/win32.c (rb_w32_spawn): use shell if a commandline contain
+ double-quote character.
+ * win32/win32.c (is_internal_cmd): similar, use shell if a commandline
+ contain caret character.
- * array.c, enum.c, eval.c, file.c, io.c, numeric.c, object.c, prec.c,
- process.c, re.c, string.c: typos in RDoc comments. [ruby-core:02783]
+ * test/ruby/test_system.rb (TestSystem#test_system_at): fix
+ wrong test case. if system() invoke a command by using shell,
+ system() never return nil. Also, "" quotation must not appear
+ twice in a command line.
-Wed Apr 14 11:29:56 2004 WATANABE Hirofumi <eban@ruby-lang.org>
+Mon Feb 28 17:36:57 2011 Tanaka Akira <akr@fsij.org>
- * numeric.c (flo_eq): workaround for bcc32's bug.
- (ruby-bugs-ja:PR#594)
+ * ext/openssl/ossl_pkcs7.c: parenthesize macro arguments.
-Wed Apr 14 11:06:38 2004 Dave Thomas <dave@pragprog.com>
+Mon Feb 28 16:48:42 2011 Tanaka Akira <akr@fsij.org>
- * lib/rdoc/parsers/parse_rb.rb (RDoc::RubyParser::scan): Changed
- behavior of :enddoc: -- it now unconditionally terminates
- processing of the current file.
+ * ext/openssl/ossl_pkcs12.c: parenthesize macro arguments.
-Wed Apr 14 10:57:40 2004 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+Mon Feb 28 16:28:15 2011 NARUSE, Yui <naruse@ruby-lang.org>
- * defines.h: include <net/socket.h> to get fd_set definition in BeOS.
+ * string.c (tr_trans): when the hash for multibyte repl is empty,
+ tr is inverse mode, and a character doesn't much the table, the
+ character should be replaced by last replacement. Bug #4449
-Tue Apr 13 23:00:55 2004 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
+Mon Feb 28 16:38:56 2011 Tanaka Akira <akr@fsij.org>
- * lib/rinda/rinda.rb: change pattern matching.
- a === b -> a == b || a === b. [druby-ja:98]
+ * ext/openssl/ossl_ocsp.c: parenthesize macro arguments.
- * test/rinda/test_rinda.rb: ditto.
+Mon Feb 28 13:02:15 2011 Danial Pearce <github@tigris.id.au>
-Tue Apr 13 21:50:57 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * lib/tempfile.rb: Fix example file paths in docs for tempfile.
+ https://github.com/ruby/ruby/pull/5
- * bcc32/Makefile.sub (PHONY): Borland make disallows empty command
- rules.
+Mon Feb 28 12:56:18 2011 URABE Shyouhei <shyouhei@ruby-lang.org>
-Tue Apr 13 17:55:16 2004 Minero Aoki <aamine@loveruby.net>
+ * ext/openssl/ossl_cipher.c (ossl_cipher_init): typo fix.
+ https://github.com/ruby/ruby/pull/8
- * lib/net/http.rb (begin_transport): should not overwrite HTTP
- request header. [ruby-list:39543]
+Mon Feb 28 12:28:13 2011 NAKAMURA Usaku <usa@ruby-lang.org>
-Tue Apr 13 16:48:00 2004 Minero Aoki <aamine@loveruby.net>
+ * ext/date/date_core.c (datetime_s_now): localtime() and localtime_r()
+ required time_t pointer as 1st parameter, and tv_sec member of struct
+ timeval is long.
- * lib/net/pop.rb: merge POP3S patch. This patch is contributed by
- Daniel Hobe.
+Mon Feb 28 11:57:40 2011 Shota Fukumori <sorah@tubusu.net>
-Tue Apr 13 02:56:29 2004 Kazuo Saito <ksaito@uranus.dti.ne.jp>
+ * test/testunit/test_parallel.rb: Temporally disable test on Windows.
- * common.mk: changed the order of ascii.c alphabetically.
+Mon Feb 28 07:28:35 2011 Shota Fukumori <sorah@tubusu.net>
-Mon Apr 12 19:11:21 2004 Eric Hodel <drbrain@segment7.net>
+ * lib/test/unit.rb(Test::Unit::Runner#after_worker_quit):
+ method name more be natural English.
- * gc.c (rb_gc_copy_finalizer): typo. [ruby-core:02774]
+ * lib/test/unit.rb(Test::Unit::Runner::Worker.launch):
+ IO.sync doesn't need. Should use "b" for mode.
-Mon Apr 12 18:45:58 2004 GOTOU Yuuzou <gotoyuzo@notwork.org>
+Sun Feb 27 21:59:37 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * ext/openssl/ossl_x509name.c (ossl_x509name_init_i): should return
- a value.
+ * test/ruby/test_system.rb (TestSystem#test_system_redirect_win):
+ add test for system().
-Mon Apr 12 10:39:50 2004 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+Sun Feb 27 18:00:09 2011 Shota Fukumori <sorah@tubusu.net>
- * dir.c (rb_glob2, rb_glob, push_globs, push_braces, rb_push_glob):
- fix memory leak. (leaked when block was interrupted)
+ * lib/test/unit.rb: Refactoring; Worker never use Hash for internal
+ storage.
-Sun Apr 11 19:10:13 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * lib/test/unit.rb: Never use Kernel#spawn. Use IO.popen instead.
- * ruby.c (require_libraries): restore source file/line after
- statically linked extensions initialized. [ruby-dev:23357]
+Sun Feb 27 13:16:48 2011 Tanaka Akira <akr@fsij.org>
-Sun Apr 11 10:47:04 2004 Dave Thomas <dave@pragprog.com>
+ * ext/openssl/ossl_ns_spki.c: parenthesize macro arguments.
- * lib/rdoc/code_objects.rb (RDoc::TopLevel::add_class_or_module): Toplevel
- classes and modules are a special case too... (handle extending existing
- classes with or without :enddoc:)
+Sat Feb 26 17:07:53 2011 Tadayoshi Funaba <tadf@dotrb.org>
-Sat Apr 10 23:51:13 2004 Dave Thomas <dave@pragprog.com>
+ * lib/date.rb: [Feature #4257]
- * lib/rdoc/code_objects.rb (RDoc::Context::add_to): Implementation of :enddoc:
- made one too many assumptions...
+ * ext/date/extconf.rb: new
-Sat Apr 10 00:00:19 2004 Dave Thomas <dave@pragprog.com>
+ * ext/date/date_core.c: new
- * lib/rdoc/markup/simple_markup/inline.rb: Fix problem
- with \_cat_<b>dog</b>
+Sat Feb 26 16:10:23 2011 Shota Fukumori <sorah@tubusu.net>
-Fri Apr 9 17:05:21 2004 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+ * lib/test/unit.rb: --jobs-status won't puts over 2 lines.
- * dir.c (has_magic, find_dirsep): incomplete '[' matches no character
- in Dir.glob. (follows File.fnmatch's behavior)
+ * test/testunit/test_parallel.rb: Fix test for above.
- * dir.c (fnmatch_helper): incomplete escape is ignored in File.fnmatch.
- (follows Dir.glob's behavior)
+ * lib/test/*: refactoring.
- * dir.c (find_dirsep): '/' between '[' and ']' is ignored in Dir.glob.
- (follows File.fnmatch with File::FNM_PATHNAME 's behavior)
+Sat Feb 26 07:10:05 2011 Aaron Patterson <aaron@tenderlovemaking.com>
- * dir.c (find_dirsep): escaped slash '\/' loses its meaning as
- directory separator in Dir.glob.
+ * ext/psych/lib/psych/scalar_scanner.rb: fix parsing timezone's whose
+ whose format is (+/-)hhmm. Thanks Goncalo Silva!
- [ruby-dev:23291]
+ * test/psych/test_scalar_scanner.rb: test for bug.
-Thu Apr 8 20:25:19 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Thu Feb 24 23:02:55 2011 Tanaka Akira <akr@fsij.org>
- * ext/extmk.rb (extmake): skip uncompiled extensions.
+ * ext/openssl/ossl_hmac.c: parenthesize macro arguments.
- * lib/mkmf.rb (create_makefile): emit no rules for static library if
- $static is nil, e.g., outside of ext/.
+Thu Feb 24 22:53:10 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * lib/test/unit/ui/console/testrunner.rb (test_started): show test
- name via $0.
+ * common.mk (love): for the birthday.
- * runruby.rb: set environments to use the compiled binary.
+Thu Feb 24 22:51:54 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * test/runner.rb: do nothing while cross-compiling.
+ * vm.c (ruby_vm_destruct): run vm exit hooks after all objects are
+ destructed.
- * test/drb/drbtest.rb, test/soap/calc/test_calc_cgi.rb: use envutil to
- know ruby binary, and restore $: after require.
+Thu Feb 24 14:40:33 2011 Shota Fukumori <sorah@tubusu.net>
- * test/ruby/envutil.rb: give priority to RUBY environment variable to
- use just compiled binary and libraries.
+ * ChangeLog (vim): Modeline for vim
-Thu Apr 8 19:03:33 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Thu Feb 24 13:39:25 2011 Shota Fukumori <sorah@tubusu.net>
- * io.c (rb_io_binmode): inverted condition. [ruby-dev:23349]
+ * common.mk: Use $RUNRUBY for worker process.
-Thu Apr 8 18:22:00 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * lib/test/unit.rb: Fix bug.
- * ext/iconv/iconv.c (iconv_s_list): return encoding list if no block
- is given. [ruby-dev:23063]
+ * lib/test/unit.rb: @options[:ruby](@opts[:ruby]) is now Array.
-Wed Apr 7 15:29:24 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * test/testunit/parallel.rb: Fix for above.
- * pack.c (pack_pack): use NUM2INT() instead of num2i32().
+Thu Feb 24 10:05:55 2011 Shota Fukumori <sorah@tubusu.net>
-Wed Apr 7 12:32:02 2004 Kouhei Sutou <kou@cozmixng.org>
+ * test/testunit/tests_for_parallel/misc.rb: Fix bug in r30947.
- * lib/rss/parser.rb, lib/rss/1.0.rb: accepted rdf:resource or
- resource attribute in rdf:li.
- * test/rss/test_parser.rb: added test for above change.
+ * lib/test/unit.rb, lib/test/unit/assertions.rb: For this test.
- * lib/rss/dublincore.rb: reverted style.
+Wed Feb 23 23:07:38 2011 Shota Fukumori <sorah@tubusu.net>
- * lib/rss/xmlparser.rb: normalized XMLParser class hierarchy.
+ * test/testunit/test_parallel.rb, test/testunit/parallel/*:
+ Test for r30939.
-Wed Apr 7 10:43:17 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * lib/test/unit.rb: For test.
- * Makefile.in, common.mk, */Makefile.sub (ext/extinit.o): OUTFLAG
- doesn't work for object files on VC.
+ * lib/test/parallel.rb: For test.
- * */Makefile.sub (config.h): need SIZEOF_TIME_T now.
+ * lib/test/unit/testcase.rb: For test.
-Wed Apr 7 00:24:34 2004 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
+Wed Feb 23 22:05:13 2011 Tanaka Akira <akr@fsij.org>
- * lib/rinda/rinda.rb: fix hash tuple bug.
+ * ext/openssl/ossl_engine.c: parenthesize macro arguments.
- * lib/rinda/tuplespace.rb: ditto.
+Tue Feb 22 23:15:17 2011 Shota Fukumori <sorah@tubusu.net>
- * test/rinda/test_rinda.rb
+ * lib/test/unit.rb: Fix --ruby option doesn't effect.
-Tue Apr 6 18:24:18 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * lib/test/unit.rb: Fix typo.
- * file.c (rb_get_path): get path string via "to_path" method if
- path object is not a string. [Ruby2]
+Tue Feb 22 21:39:28 2011 Tanaka Akira <akr@fsij.org>
- * gc.c (rb_gc_call_finalizer_at_exit): do not free threads in the
- exit finalizers.
+ * ext/openssl/ossl_digest.c: parenthesize macro arguments.
- * io.c (rb_io_reopen): should use rb_io_check_io().
+Tue Feb 22 14:34:26 2011 Shota Fukumori <sorah@tubusu.net>
-Tue Apr 6 16:46:09 2004 Tanaka Akira <akr@m17n.org>
+ * lib/test/unit.rb: Fix merging miss.
- * configure.in: check the size of time_t.
+Tue Feb 22 12:27:26 2011 Shota Fukumori <sorah@tubusu.net>
- * time.c (time_add): new function.
- (time_plus): use time_add.
- (time_minus): use time_add.
+ * lib/test/unit.rb: Add new options; --jobs,-j,--ruby,--jobs-status,
+ --no-retry.
+ [Feature #4415] [ruby-dev:43226],[ruby-dev:43222],[ruby-core:35294]
-Tue Apr 6 13:11:48 2004 NAKAMURA Usaku <usa@ruby-lang.org>
+ * lib/test/unit/parallel.rb: Used at test/unit --jobs(-j) option.
- * ext/socket/socket.c (raise_socket_error): never return.
+ * test/csv/test_serialization.rb: test/unit parallel running ready.
- * ext/socket/socket.c (make_hostent): must return value.
+ * test/rake/test_file_task.rb: test/unit parallel running ready.
-Tue Apr 6 00:14:43 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+Tue Feb 22 06:09:10 2011 Eric Hodel <drbrain@segment7.net>
- * error.c (Init_Exception): remove Exception#to_str. [Ruby2]
+ * ext/syslog/syslog.c: Apply documentation patch from mathew murphy.
+ [Bug #4149]
- * eval.c (error_print): should no call "to_str" anymore use
- "message" method instead.
+Tue Feb 22 03:09:10 2011 Aaron Patterson <aaron@tenderlovemaking.com>
- * io.c (rb_f_open): Kernel#open() calls "to_open" if the first
- argument responds to it. [Ruby2]
+ * ext/psych/lib/psych.rb: increase Psych to 1.1.0 for help with
+ debugging.
-Tue Apr 6 00:13:43 2004 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
+Tue Feb 22 03:04:46 2011 Aaron Patterson <aaron@tenderlovemaking.com>
- * lib/rinda/rinda.rb: add require 'drb/drb'
+ * ext/psych/lib/psych/streaming.rb: refactor streaming methods to a
+ module.
+ * ext/psych/lib/psych/stream.rb: extracted streaming specific methods
+ to a module.
+ * ext/psych/lib/psych/json/stream.rb: JSON stream inherits from
+ JSONTree and includes streaming methods.
+ * ext/psych/lib/psych/visitors/json_tree.rb: JSON does not support
+ object references, so remove object reference testing when building
+ JSON trees.
+
+Tue Feb 22 02:41:51 2011 Aaron Patterson <aaron@tenderlovemaking.com>
+
+ * ext/psych/lib/psych/visitors/yaml_tree.rb (accept): use Hash#key?
+ when looking up object references to err on the side of cache
+ misses.
+
+Mon Feb 21 10:58:39 2011 Aaron Patterson <aaron@tenderlovemaking.com>
+
+ * ext/psych/lib/psych/json/yaml_events.rb: refactoring JSON event
+ handling methods to a module for reuse.
+ * ext/psych/lib/psych/json/tree_builder.rb: AST builder uses JSON
+ event methods.
+ * ext/psych/lib/psych/json/stream.rb: stream emitter uses JSON event
+ methods.
-Mon Apr 5 22:25:32 2004 Tanaka Akira <akr@m17n.org>
+Mon Feb 21 10:54:29 2011 Aaron Patterson <aaron@tenderlovemaking.com>
- * test/zlib/test_zlib.rb: new file.
- (TestZlibGzipWriter#test_new_nil): test for [ruby-dev:23228].
+ * ext/psych/lib/psych/json/stream.rb: do not emit custom tags in maps
+ or sequences when emitting JSON.
+ * ext/psych/lib/psych/json/tree_builder.rb: do not emit custom tags in
+ sequences when emitting JSON.
+ * test/psych/json/test_stream.rb: tests for custom stream emits.
+ * test/psych/test_json_tree.rb: tests for JSON emits.
-Mon Apr 5 22:16:23 2004 Minero Aoki <aamine@loveruby.net>
+Mon Feb 21 10:05:10 2011 Aaron Patterson <aaron@tenderlovemaking.com>
- * parse.y (assoc_list): {a: 1, b: 2} should be allowed.
- [ruby-dev:23328]
+ * ext/psych/lib/psych/json/ruby_events.rb: DRY up ruby event handling
+ for JSON.
+ * ext/psych/lib/psych/visitors/json_tree.rb: use ruby events module
+ * ext/psych/lib/psych/json/stream.rb: ditto
-Mon Apr 5 19:43:40 2004 Kazuo Saito <ksaito@uranus.dti.ne.jp>
+Mon Feb 21 10:01:01 2011 Aaron Patterson <aaron@tenderlovemaking.com>
- * regexec.c: imported Oni Guruma 2.2.6.
+ * ext/psych/lib/psych/json/stream.rb: fix JSON stream emits to use
+ double quotes during stream.
+ * test/psych/json/test_stream.rb: tests to reflect changes.
-Mon Apr 5 19:39:10 2004 Kazuo Saito <ksaito@uranus.dti.ne.jp>
+Mon Feb 21 00:38:56 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * regparse.c, oniguruma.h: imported Oni Guruma 2.2.6.
+ * test/ruby/test_system.rb (TestSystem#test_system_at):
+ add testcase for bug4396.
-Mon Apr 5 12:12:09 2004 NAKAMURA Usaku <usa@ruby-lang.org>
+Sun Feb 20 19:59:32 2011 Tanaka Akira <akr@fsij.org>
- * ext/socket/socket.c (raise_socket_error): some platforms don't have
- EAI_SYSTEM.
+ * ext/openssl/ossl_cipher.c: parenthesize macro arguments.
-Mon Apr 5 08:18:23 2004 Dave Thomas <dave@pragprog.com>
+Sun Feb 20 16:26:45 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * lib/rdoc/rdoc.rb: Remove leading ./ from file names so that cross
- references work properly.
+ * thread.c (exec_recursive): prevent temporary objects from GC.
-Sun Apr 4 14:01:20 2004 Dave Thomas <dave@pragprog.com>
+ * prevent temporary objects from GC, and should not use
+ RSTRING_PTR() for function calls since it evaluates the argument
+ a couple of times.
- * lib/rdoc/options.rb (Options::parse): Allow multiple -x options to
- RDoc. Fix bug where files weren't being excluded properly
+Sun Feb 20 16:22:53 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Sat Apr 3 09:36:38 2004 why the lucky stiff <why@ruby-lang.org>
+ * file.c (rb_file_flock): use rb_thread_io_blocking_region for the
+ time being.
- * ext/syck/syck.h: version 0.43.
+Sun Feb 20 05:33:17 2011 Ryan Davis <ryand-ruby@zenspider.com>
-Sat Apr 3 08:28:47 2004 why the lucky stiff <why@ruby-lang.org>
+ * lib/minitest/*.rb: Imported minitest 2.0.2 r6207.
+ * test/minitest/*: ditto
- * ext/syck/lib/gram.c: allow root-level inline collections.
- [ruby-talk:94922]
+Sun Feb 20 02:14:09 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * lib/yaml/rubytypes.rb (Symbol#to_yaml): emit symbols as implicits.
- [ruby-talk:94930]
+ * signal.c (sig_trap): avoid pthread_sigmask(xx, &mask, &mask) usage
+ because FreeBSD don't permit it. If it's used, it behave as
+ pthread_sigmask(xx, NULL, &mask).
-Fri Apr 2 19:28:48 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * signal.c (init_sigchld): ditto.
- * bcc32/Makefile.sub (OUTFLAG): needed for static-linked-ext.
+Sun Feb 20 00:46:51 2011 Tanaka Akira <akr@fsij.org>
-Fri Apr 2 18:00:05 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * ext/openssl/ossl_bn.c: parenthesize macro arguments.
- * ext/extmk.rb (extmake): extract necessary variables for static link
- from Makefile.
+Sat Feb 19 22:37:42 2011 CHIKANAGA Tomoyuki <nagachika00@gmail.com>
- * lib/mkmf.rb (create_makefile): save preload and libpath for next
- compile.
+ * vm_insnhelper.c (vm_check_if_namespace): guard temporary object
+ from GC.
-Fri Apr 2 17:27:17 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+Sat Feb 19 06:36:27 2011 Aaron Patterson <aaron@tenderlovemaking.com>
- * eval.c (top_include): include in the wrapped load is done for
- the wrapper, not for a singleton class for wrapped main.
- [ruby-dev:23305]
+ * lib/test/unit.rb: partial revert of r30849. [ruby-core:32864]
-Fri Apr 2 15:13:44 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * test/testunit/test_rake_integration.rb: adding an integration test
+ with the rake loader to prevent regressions.
- * bignum.c (rb_big_eq): use temporary double variable to save the
- result (internal float register may be bigger than 64 bits, for
- example, 80 bits on x86). [ruby-dev:23311]
+Fri Feb 18 19:31:31 2011 Shugo Maeda <shugo@ruby-lang.org>
-Fri Apr 2 14:35:26 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * lib/fileutils.rb (FileUtils::remove_entry_secure): there is a
+ race condition in the case where the given path is a directory,
+ and some other user can move that directory, and create a
+ symlink while this method is executing.
+ Reported by: Nicholas Jefferson <nicholas at pythonic.com.au>
- * eval.c (block_pass): should generate unique identifier of the
- pushing block. [ruby-talk:96363]
+Fri Feb 18 00:28:39 2011 CHIKANAGA Tomoyuki <nagachika00@gmail.com>
-Fri Apr 2 11:36:20 2004 Minero Aoki <aamine@loveruby.net>
+ * compile.c (get_exception_sym2type): guard temporary object from GC.
- * eval.c (Init_load): make $LOADED_FEATURES built-in.
- [ruby-dev:23299]
+Thu Feb 17 23:54:29 2011 CHIKANAGA Tomoyuki <nagachika00@gmail.com>
- * ruby.c (ruby_prog_init): make $PROGRAM_NAME built-in.
+ * iseq.c (prepare_iseq_build): initialize iseq_compile_data::err_info
+ with nil. this fix exception in rb_iseq_load().
- * lib/English.rb: remove $LOADED_FEATURES and $PROGRAM_NAME.
+Thu Feb 17 22:32:35 2011 CHIKANAGA Tomoyuki <nagachika00@gmail.com>
-Fri Apr 2 07:31:38 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * test/ruby/test_marshal.rb (test_marshal_dump_extra_iv):
+ fix a typo of local variable. [Bug #3720] [ruby-dev:42083]
- * ext/socket/socket.c: mistakingly removed do_not_reverse_lookup.
- [ruby-list:39475]
+Thu Feb 17 21:32:53 2011 Tanaka Akira <akr@fsij.org>
- * ext/socket/socket.c (make_hostent): fix memory leak, based on
- the patch from HORIKAWA Hisashi <vzw00011@nifty.ne.jp>.
+ * ext/openssl/ossl.h: parenthesize macro arguments.
-Thu Apr 1 22:55:33 2004 Dave Thomas <dave@pragprog.com>
+Wed Feb 16 20:37:48 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * lib/rdoc/parsers/parse_rb.rb: Allow rdoc comments in
- =begin rdoc/=end
+ * eval_jump.c (rb_exec_end_proc): changed at_exit and END proc
+ evaluation order. [Bug #4400] [ruby-core:35237]
+ * eval_jump.c (rb_mark_end_proc): ditto.
- * lib/rdoc/parsers/parse_rb.rb: Fix problem with comment in
- top-level method being taken as file comment.
+ * test/ruby/test_beginendblock.rb (TestBeginEndBlock#test_nested_at_exit):
+ added a test for nested at_exit.
+ * test/ruby/test_beginendblock.rb (TestBeginEndBlock#test_beginendblock):
+ changed the test to adopt new spec.
-Thu Apr 1 22:55:04 2004 Dave Thomas <dave@pragprog.com>
+Wed Feb 16 20:17:06 2011 Tanaka Akira <akr@fsij.org>
- * lib/rdoc/ri/ri_options.rb: Fix undefined variable warning.
+ * ext/openssl/openssl_missing.h: parenthesize macro arguments.
-Thu Apr 1 19:58:37 2004 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+Tue Feb 15 21:37:45 2011 Tanaka Akira <akr@fsij.org>
- * lib/soap/mapping/{factory.rb,registry.rb}: fixed illegal mapped URI
- object with soap/marshal.
- added URIFactory class for URI mapping. BasetypeFactory checks
- instance_variables when original mapping is not allowed (ivar must
- be empty). Instance of URI have instance_variables but it must be
- llowed whenever original mapping is allowed or not.
+ * ext/gdbm/gdbm.c: parenthesize macro arguments.
-Wed Mar 31 19:06:23 2004 Tanaka Akira <akr@m17n.org>
+Tue Feb 15 20:34:53 2011 Tanaka Akira <akr@fsij.org>
- * time.c (year_leap_p): new function.
- (timegm_noleapsecond): ditto.
- (search_time_t): use timegm_noleapsecond instead of
- mktime for first guess.
+ * array.c (ary_join_1): fix array size.
-Wed Mar 31 12:05:17 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Tue Feb 15 19:43:23 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * lib/delegate.rb (DelegateClass): define internal methods of the
- result class, but not metaclass of the caller. [ruby-talk:96156]
+ * configure.in: fix and resubmit r30621. [ruby-dev:43203]
- * intern.h: provide proper prototypes. [ruby-core:02724]
+Tue Feb 15 15:41:30 2011 NARUSE, Yui <naruse@ruby-lang.org>
- * ruby.h: missing.h is now prerequisite to intern.h.
+ * array.c (array_join): copy the encoding of the first element as
+ an initial encoding.
-Wed Mar 31 11:17:16 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * array.c (array_join_0): ditto.
- * pack.c (pack_pack): raises RangeError if uv is out of UTF8 value
- range. [ruby-dev:23281]
+ * array.c (array_join_1): ditto.
- * io.c (rb_io_binmode): stdio buffer should be empty when calling
- IO#binmode. [ruby-talk:96155]
+ * array.c (inspect_ary): ditto.
-Tue Mar 30 20:25:34 2004 Tanaka Akira <akr@m17n.org>
+ * array.c (array_join_1): add an argument to check the appending is
+ first one or not.
- * time.c (search_time_t): limit guess range by mktime if it is
- available. [ruby-dev:23274]
+Tue Feb 15 15:40:53 2011 NARUSE, Yui <naruse@ruby-lang.org>
-Tue Mar 30 18:19:00 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * hash.c (inspect_i): copy the encoding of the first key as
+ an initial encoding.
- * eval.c (rb_eval): fix SEGV at retry in iterator's receiver.
- [ruby-dev:23227]
+Mon Feb 14 15:00:16 2011 NARUSE, Yui <naruse@ruby-lang.org>
-Mon Mar 29 20:17:16 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * array.c (inspect_ary): don't taint the inspected result of a
+ recursive array.
- * process.c (rb_exec): follow older behavior if close-on-exec is not
- available.
+Tue Feb 15 15:43:29 2011 NARUSE, Yui <naruse@ruby-lang.org>
- * process.c (rb_fork): protect from exceptions while waiting failed
- process, if status is given.
+ * encoding.c (rb_enc_compatible): change the rule for empty strings:
+ remove the special treatment of the US-ASCII encoded empty string.
+ Now Encoding.compatible? usually respect the encoding of the
+ receiver.
-Sun Mar 28 16:25:37 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Tue Feb 15 15:39:37 2011 NARUSE, Yui <naruse@ruby-lang.org>
- * cygwin/GNUmakefile.in (clean-local, distclean-local): remove
- work files.
+ * string.c (rb_enc_cr_str_buf_cat): remove special treatment of
+ ASCII-8BIT receivers.
- * win32/Makefile.sub (clean-local): ditto.
+ * string.c (str_gsub): set initial encoding of the buffer as the
+ same of the receiver. [ruby-core:35141]
-Sun Mar 28 14:23:02 2004 Minero Aoki <aamine@loveruby.net>
+Tue Feb 15 09:49:33 2011 NAKAMURA Usaku <usa@ruby-lang.org>
- * lib/net/pop.rb: def m( arg ) -> def m(arg).
+ * test/ruby/test_system.rb (TestSystem#test_system_at): use findstr
+ command instead of find command, because the latter is confusing
+ another famous Unix command.
-Sun Mar 28 14:09:13 2004 Minero Aoki <aamine@loveruby.net>
+Mon Feb 14 23:01:19 2011 CHIKANAGA Tomoyuki <nagachika00@gmail.com>
- * lib/net/pop.rb (auth): failed when account/password include "%".
- [ruby-talk:95933]
+ * thread.c (rb_thread_io_blocking_region): reset th->waiting_fd
+ after blocking region, because remaining waiting_fd might
+ cause unnecessary IOError.
-Sat Mar 27 21:40:41 2004 Tanaka Akira <akr@m17n.org>
+Mon Feb 14 21:06:50 2011 URABE Shyouhei <shyouhei@ruby-lang.org>
- * lib/open-uri.rb: permit extra semicolon in content-type field.
+ * configure.in: revert r30621. That revision introduced mkmf test
+ failures and it turned out to be OK to revert. [ruby-dev:43203]
-Sat Mar 27 10:40:48 2004 Tanaka Akira <akr@m17n.org>
+Mon Feb 14 21:04:01 2011 Tanaka Akira <akr@fsij.org>
- * (lib/pp.rb, lib/prettyprint.rb): define seplist in PP::PPMethods
- instead of PrettyPrint.
+ * ext/fiddle/conversions.h: parenthesize macro arguments.
-Sat Mar 27 01:47:09 2004 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+Mon Feb 14 18:41:47 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * lib/logger.rb: trim tail space of each line. no user visible change.
+ * win32/setup.mak (USE_RUBYGEMS): fixed r30835. It didn't work on
+ mswin32 port. If you changed win32/configure.bat, you should change
+ setup.mak too.
- * lib/rss/dublincore.rb: fixed class definition mismatch.
+Mon Feb 14 17:28:34 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * sample/openssl/gen_csr.rb: fixed wrong usage text.
+ * test/ruby/test_system.rb (TestSystem#test_system_at):
+ added test. [ruby-core:35218] (#4393)
-Thu Mar 25 23:15:24 2004 Dave Thomas <dave@pragprog.com>
+Mon Feb 14 13:15:35 2011 NAKAMURA Usaku <usa@ruby-lang.org>
- * lib/rdoc/ri/ri_options.rb (RI::Options::show_version):
- Add --version option
+ * win32/win32.c (is_internal_cmd): if the first char of prog is '@',
+ execute it via shell. [ruby-core:35218] (#4393)
-Thu Mar 25 21:45:00 2004 Shigeo Kobayashi <shigek@ruby-lang.org>
+Mon Feb 14 10:33:45 2011 NAKAMURA Usaku <usa@ruby-lang.org>
- * ext/bigdecimal/bigdecimal.c: Bug in + and - reported by Bret Jolly
- fixed.
+ * lib/test/unit.rb: revert r30863, because it causes too many noise.
-Thu Mar 25 21:01:32 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Mon Feb 14 07:34:55 2011 Tanaka Akira <akr@fsij.org>
- * version.c (ruby_show_copyright): obtain copyright year from
- RUBY_RELEASE_YEAR.
+ * ext/curses/curses.c: parenthesize macro arguments.
- * win32/resource.rb: ditto.
+Sun Feb 13 19:41:47 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Thu Mar 25 19:37:35 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * lib/test/unit.rb (Test::Unit::RequireFiles#non_options): skip
+ test suites failed to load instead of mere messages.
- * win32/resource.rb: default rubyw icon to ruby.ico, and let DLL also
- include them.
+Sun Feb 13 09:56:44 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * win32/resource.rb: include winver.h for older WindowsCE.
+ * test/openssl/test_config.rb (OpenSSL#test_freeze): fix error
+ message assertion.
-Thu Mar 25 14:01:03 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * test/io/nonblock/test_flush.rb (TestIONonblock#flush_test):
+ return true to finish the test.
- * common.mk, */Makefile.sub (lib, dll): phony targets.
+ * test/syck/test_string.rb (Syck::TestString#test_non_binary_string):
+ use assert_not instead of refute, unless required minitest
+ explicitly.
- * configure.in (ruby, miniruby): ditto.
+ * test/test_prime.rb (TestPrime::sieve.Integer): ditto.
- * cygwin/GNUmakefile.in (rubyw): ditto.
+ * test/xmlrpc/webrick_testing.rb (WEBrick_Testing#start_server):
+ catch IOError when server socket was closed.
-Thu Mar 25 04:16:18 2004 Dave Thomas <dave@pragprog.com>
+Sun Feb 13 07:39:51 2011 Yukihiro Matsumoto <matz@ruby-lang.org>
- * lib/rdoc/ri/ri_options.rb (RI::Options): Add the --list-names option,
- which dumps our all known names
+ * enum.c (enum_inject): typo fixed. a patch from Gaku Ueda in
+ [ruby-core:35216].
-Thu Mar 25 03:57:47 2004 Dave Thomas <dave@pragprog.com>
+Sun Feb 13 00:48:47 2011 Tadayoshi Funaba <tadf@dotrb.org>
- * lib/rdoc/ri/ri_util.rb (NameDescriptor::initialize): No longer
- allow nested classes to be designated using "."--you must
- now use "::"
+ * lib/date.rb (Date#===): [ruby-core:35127]
-Thu Mar 25 02:00:18 2004 Dave Thomas <dave@pragprog.com>
+Sun Feb 13 00:29:18 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * lib/rdoc/generators/template/html/one_page_html.rb (Page):
- Fix to work with C modules.
+ * lib/test/unit.rb (Test::Unit::Options#process_args): always
+ return options.
-Wed Mar 24 20:49:00 2004 Gavin Sinclair <gsinclair@soyabean.com.au>
+ * lib/test/unit.rb (Test::Unit::RequireFiles#non_options): return
+ if any test case get loaded.
- * lib/uri.rb: Documented (thanks Dmitry V. Sabanin).
- * lib/uri/common.rb: Ditto.
- * lib/uri/ftp.rb: Ditto.
- * lib/uri/generic.rb: Ditto.
- * lib/uri/http.rb: Ditto.
- * lib/uri/https.rb: Ditto.
- * lib/uri/ldap.rb: Ditto.
- * lib/uri/mailto.rb: Ditto.
+ * lib/test/unit.rb (Test::Unit::AutoRunner#initialize): do not add
+ default directory if it is nil.
-Wed Mar 24 18:48:05 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * lib/test/unit.rb (Test::Unit::AutoRunner#process_args): return
+ true if any test cases to run.
- * lib/mkmf.rb ($ruby, $topdir, $hdrdir): should not be affected by
- DESTDIR after installed.
+Sat Feb 12 23:17:43 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * lib/mkmf.rb (dummy_makefile): default file lists to be cleaned.
+ * lib/test/unit.rb (assert_include): add alias.
-Wed Mar 24 12:32:56 2004 Dave Thomas <dave@pragprog.com>
+Sat Feb 12 14:44:20 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * lib/rdoc/parsers/parse_c.rb (RDoc::C_Parser::handle_class_module):
- Don't document methods if we don't know for sure the
- class or module.
+ * thread.c (rb_thread_io_blocking_region): new function to run
+ blocking region with GIL released, for fd.
- * lib/rdoc/parsers/parse_rb.rb (RDoc::RubyParser::parse_class):
- Don't store documentation for singleton classes if we
- don't know the real class.
+ * thread.c (rb_thread_fd_close): implement. [ruby-core:35203]
-Wed Mar 24 11:11:26 2004 Dave Thomas <dave@pragprog.com>
+ * vm.c (th_init): rename from th_init2.
- * lib/rdoc/generators/html_generator.rb (Generators::HTMLGenerator::load_html_template):
- Allow non-RDoc templates by putting a slash in the template name
+Sat Feb 12 14:41:36 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Wed Mar 24 10:05:22 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * lib/test/unit.rb (Test::Unit::AutoRunner#initialize): use
+ default_dir if no test case given.
- * lib/tempfile.rb (Tempfile::_close): should not clear @tmpname
- until the file is really removed. [ruby-core:02684]
+ * lib/test/unit.rb (Test::Unit::Runner): rename from Test::Unit::Mini.
-Wed Mar 24 04:12:44 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * lib/test/unit.rb (Test::Unit::GlobOption#non_options): run tests
+ under base directory if no argument given.
- * object.c (rb_mod_cvar_get): new method Module#class_variable_get.
+Sat Feb 12 08:03:12 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * object.c (rb_mod_cvar_set): ditto (Module#class_variable_set).
+ * test/ruby/test_settracefunc.rb (TestSetTraceFunc): ensure to use
+ method_added hook defined in Module.
-Tue Mar 23 17:45:22 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+Sat Feb 12 01:04:02 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * eval.c (rb_thread_atfork): 1.9 warns no more for thread
- termination. [ruby-dev:23212]
+ * ruby.c (proc_options): enable rubygems if --gem option is given.
-Tue Mar 23 14:46:10 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * ruby.c (process_options): load rubygems if it is disabled but
+ --gem option is given.
- * Makefile.in, */Makefile.sub, common.mk (clean-local, distclean-local):
- separate files under directories due to directory separator.
+Fri Feb 11 23:27:50 2011 Yuki Sonoda (Yugui) <yugui@yugui.jp>
- * */Makefile.sub (MKFILES): common.mk and */Makefile.sub should not be
- removed.
+ * ruby.c (proc_options): add --gem=enabled as an alias of
+ --enable=gems and --gem=disabled as an alias of --disable=gems.
+ Gem named "enabled" or "disabled" has already been reserved
+ legitimately for this purpose.
- * win32/Makefile.sub, wince/Makefile.sub: $* cannot appear in explicit
- rules.
+Fri Feb 11 23:17:04 2011 Tanaka Akira <akr@fsij.org>
- * cygwin/GNUmakefile.in: some mingw stuffs were missed.
+ * ext/dl/cfunc.c: parenthesize macro arguments.
- * lib/mkmf.rb (create_makefile): Borland make wrongly removes braces
- from command lines.
+Fri Feb 11 21:41:53 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * bcc32/Makefile.sub: needs bcc32/mkexports.rb.
+ * bin/testrb, test/runner.rb, lib/test/unit.rb: improve backward
+ compatibility.
-Mon Mar 22 08:21:17 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Fri Feb 11 19:45:26 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * Makefile.in, */Makefile.sub, common.mk: extract common portions.
+ * eval.c (ruby_cleanup): use rb_ary_free to free internal object.
- * Makefile.in, cygwin/GNUmakefile.in, */Makefile.sub (RBCONFIG):
- separated time stamp file for rbconfig.rb.
+ * gc.h (RUBY_FREE_UNLESS_NULL): get rid of double free.
+ [ruby-core:35192]
- * configure.in: append common.mk to Makefile.
+Fri Feb 11 16:57:03 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * mkconfig.rb: keep mtime of rbconfig.rb if unchanged.
+ * test/ruby/test_transcode.rb (test_from_cp50221): fix wrong
+ assertion and move back.
- * win32/rm.bat: remove multiple files.
+Fri Feb 11 14:33:18 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * wince/mkconfig_wce.rb: use fake.rb instead.
+ * lib/test/unit/assertions.rb (assert_no_match): alias for
+ backward compatibility.
-Sun Mar 21 22:17:35 2004 GOTOU Yuuzou <gotoyuzo@notwork.org>
+Fri Feb 11 12:06:48 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * lib/webrick/httpserver.rb (WEBrick::HTTPServer#virtual_host):
- sort @virtual_hosts in address, port, host order.
+ * ruby.c (add_gems, require_libraries, proc_options): add
+ --require and --gem options.
- * lib/webrick/httpserver.rb (WEBrick::HTTPServer#lookup_server):
- hostname should not be match if :ServerAlias is not given.
+Fri Feb 11 12:03:24 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Sun Mar 21 21:11:16 2004 Keiju Ishitsuka <keiju@ishitsuka.com>
+ * configure.in (rubygems): add --disable-rubygems option.
- * lib/shell/*: bug fix for Shell#system(command_line_string).
+Fri Feb 11 11:39:03 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Sun Mar 21 21:04:42 2004 WATANABE Hirofumi <eban@ruby-lang.org>
+ * template/fake.rb.in (CROSS_COMPILING): get rid of NameError.
- * ruby.1: add -width option to .Bl for old groff.
+Thu Feb 10 23:12:34 2011 Tanaka Akira <akr@fsij.org>
-Sun Mar 21 18:57:37 2004 Kouhei Sutou <kou@cozmixng.org>
+ * ext/dl/dl.h: parenthesize macro arguments.
- * test/rss/*: Test::Unit::TestCase -> RSS::TestCase and
- Test::Unit::Assertions -> RSS::Assertions.
+Wed Feb 9 23:11:27 2011 Tanaka Akira <akr@fsij.org>
-Sun Mar 21 18:48:20 2004 Kouhei Sutou <kou@cozmixng.org>
+ * ext/pty/pty.c: parenthesize macro arguments.
- * lib/rss/{rss,dublincore,syndication}.rb: handled W3CDTF correctly.
+Tue Feb 8 11:47:11 2011 Loren Sands-Ramshaw <lorensr@gmail.com>
-Sun Mar 21 18:15:29 2004 Kouhei Sutou <kou@cozmixng.org>
+ * array.c: documentation clarification in rotate, rotate!,
+ index, and rindex. [ruby-core:35144]
- * test/rss/test_xml-stylesheet.rb: added tests for xml-stylesheet.
+Wed Feb 9 09:45:43 2011 NAKAMURA Usaku <usa@ruby-lang.org>
- * lib/rss/xml-stylesheet.rb: added xml-stylesheet parsing
- function.
+ * test/rdoc/test_rdoc_encoding.rb: remove unnecessary (and wrong)
+ platform-dependent hacks.
-Sat Mar 20 23:51:03 2004 WATANABE Hirofumi <eban@ruby-lang.org>
+Wed Feb 9 00:47:18 2011 Tanaka Akira <akr@fsij.org>
- * eval.c (rb_require_safe): preserve old ruby_errinfo.
- [ruby-talk:95409]
+ * ext/etc/etc.c: parenthesize macro arguments.
- * eval.c (rb_f_raise): should not clear backtrace information if
- exception object already have one.
+Tue Feb 8 19:38:00 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Sat Mar 20 21:21:03 2004 WATANABE Hirofumi <eban@ruby-lang.org>
+ * misc/ruby-mode.el (ruby-expr-beg): fix for invalid nest errors.
- * ext/extmk.rb: rm -rf $extout, not extout.
+Tue Feb 8 19:22:59 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
-Sat Mar 20 15:25:36 2004 Dave Thomas <dave@pragprog.com>
+ * configure.in (AC_MSG_CHECKING): fixed typo. the patch is
+ created by Benoit Daloze. Thanks a lot. [Bug #4384][ruby-core:35148]
- * lib/rdoc/generators/template/html/html.rb (RDoc::Page): Force
- page background to white.
+Tue Feb 8 16:04:03 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
-Sat Mar 20 09:33:36 2004 Tadayoshi Funaba <tadf@dotrb.org>
+ * io.c (rb_io_s_sysopen): use NUM2MODET() instead NUM2UINT().
- * lib/date.rb, lib/date/format.rb: _parse() now accepts fractional
- part of second minute that follows a comma or a full stop.
+Tue Feb 8 15:59:23 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
-Fri Mar 19 21:06:21 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * process.c (rb_run_exec_options_err): use MODET2NUM() instead
+ LONG2NUM().
- * parse.y (assoc_list): allow {sym: val} style Hash. [Ruby2]
- this change is done by Nobuyoshi Nakada <nobu@ruby-lang.org>.
+Tue Feb 8 13:59:56 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
-Fri Mar 19 15:15:15 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * configure.in: revert r30725. Now we have proper runtime fallback.
+ Therefore, no need compile time disabling. (see r30762).
- * variable.c (rb_cvar_set): class variables become private to the
- particular class/module. [Ruby2]
+Tue Feb 8 01:00:21 2011 CHIKANAGA Tomoyuki <nagachika00@gmail.com>
- * variable.c (rb_cvar_get): ditto.
+ * process.c (proc_setgroups): add GC guard to prevent intermediate
+ variable from GC.
- * variable.c (rb_cvar_defined): ditto.
+Tue Feb 8 00:56:33 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Fri Mar 19 11:31:32 2004 NAKAMURA Usaku <usa@ruby-lang.org>
+ * misc/ruby-mode.el (ruby-expr-beg, ruby-in-here-doc-p): tell
+ singleton class definitions from here documents.
- * lib/mkmf.rb ($beos, $solaris): add OS flags.
+ * misc/ruby-mode.el (ruby-expr-beg, ruby-parse-partial): keyword
+ followed by colon is label.
- * lib/mkmf.rb (RUBY): / is not recognized as path separator on
- nmake/bmake. [ruby-list:39388]
+Mon Feb 7 22:56:16 2011 CHIKANAGA Tomoyuki <nagachika00@gmail.com>
- * lib/mkmf.rb (CLEANLIBS, CLEANOBJS): should remove *.exp with *.so.
+ * lib/benchmark.rb (Benchmark#bmbm): use ensure clause instead of
+ Object#tap to restore STDOUT.sync.
-Fri Mar 19 01:55:57 2004 Mauricio Fernandez <batsman.geo@yahoo.com>
+Mon Feb 7 22:34:20 2011 Tanaka Akira <akr@fsij.org>
- * io.c (rb_io_sync): need not to check writable. [ruby-core:02674]
+ * lib/net/http.rb (Net::HTTP#connect): support SNI (Server Name
+ Indication) for HTTPS. [ruby-dev:43164]
+ http://stackoverflow.com/questions/4685736/openssl-server-name-indication-support-in-ruby
-Thu Mar 18 19:47:44 2004 WATANABE Hirofumi <eban@ruby-lang.org>
+Mon Feb 7 16:05:32 2011 Eric Hodel <drbrain@segment7.net>
- * instruby.rb, rubytest.rb: do not depend on srcdir.
+ * lib/rdoc: Upgrade to RDoc 3.5.3 Fixes [Bug #4376]
-Thu Mar 18 18:50:06 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Mon Feb 7 11:46:59 2011 NARUSE, Yui <naruse@ruby-lang.org>
- * mkconfig.rb: no longer embed srcdir and compile_dir into
- rbconfig.rb.
+ * common.mk (rdoc): add --encoding=UTF-8; ruby's rdoc must be UTF-8.
- * ext/extmk.rb, lib/mkmf.rb: obtain top_srcdir and topdir from library
- paths.
+Mon Feb 7 10:21:50 2011 NAKAMURA Usaku <usa@ruby-lang.org>
-Thu Mar 18 17:46:35 2004 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
+ * test/rdoc/test_rdoc_options.rb (TestRDocOptions#test_check_files):
+ there is no easy way to create owner unreadable file on Windows.
+ So, skip the test.
- * lib/drb/drb.rb: do not undef :to_a.
+Sun Feb 6 13:48:29 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Thu Mar 18 16:22:38 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * ext/json/lib/json/common.rb (JSON::MissingUnicodeSupport.iconv):
+ should not drop rest of the result. use Iconv.conv instead.
- * eval.c (proc_eq): avoid false positive by using scope and
- dyna_vars. no longer use frame.uniq.
+Sun Feb 6 12:46:02 2011 Eric Hodel <drbrain@segment7.net>
- * eval.c (proc_arity): arity is now defined as number of
- parameters that would not be ignored. i.e. Proc.new{}.arity
- returns zero. update test suites too.
+ * string.c (gsub): Ensure result encoding is the same as input
+ encoding. [Bug #4340].
-Thu Mar 18 15:27:25 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+Sun Feb 6 12:18:25 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * eval.c: remove specialized version of rb_Array(). use simple
- one defined in object.c.
+ * parse.y (words, qwords): dispatch array events. based on a
+ patch from Michael Edgar. [Bug #4365].
- * object.c (Init_Object): remove Kernel#to_a.
+Sun Feb 6 12:12:59 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * enum.c (enum_zip): use "to_a" instead of "to_ary".
+ * test/fileutils/fileasserts.rb (FileAssertions): separate module.
-Wed Mar 17 00:22:03 2004 Kazuo Saito <ksaito@uranus.dti.ne.jp>
+Sun Feb 6 11:29:23 2011 Tanaka Akira <akr@fsij.org>
- * oniguruma.h: imported Oniguruma 2.2.5.
- * regparse.c: ditto.
+ * ext/dbm/dbm.c: parenthesize macro arguments.
-Tue Mar 16 11:14:17 2004 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+Sat Feb 5 22:01:59 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * dir.c (fnmatch_helper): File.fnmatch('\.', '.') should return true.
- (Rev1.112 lost compatiblity)
+ * lib/test/unit/assertions.rb (Test::Unit::Assertions#assert):
+ revert r30796. r30797 and r30798 are an alternative fix.
+ [ruby-dev:43174]
- * dir.c (fnmatch_helper): File.fnmatch('\/', '/', File::FNM_PATHNAME)
- should return true. (Rev1.112 lost compatiblity)
+Sat Feb 5 21:47:09 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * dir.c (fnmatch): File.fnmatch('**/.boo', '.foo/.boo',
- File::FNM_PATHNAME) should return false because of leading period.
+ * parse.y (mlhs_basic): include mlhs_post for ripper. a patch
+ from Michael Edgar at [ruby-core:35078].
-Mon Mar 15 17:01:07 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+Sat Feb 5 21:22:21 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * error.c (exc_initialize): calling 'to_str' each time just for
- type checking is too heavy. [ruby-core:02661]
+ * lib/test/unit/assertions.rb (assert_block): move from
+ test/fileutils/fileasserts.rb.
-Mon Mar 15 10:14:51 2004 GOTOU Yuuzou <gotoyuzo@notwork.org>
+ * test/fileutils/fileasserts.rb (assert_block): pass arguments
+ as-is. [ruby-dev:43174]
- * ext/openssl/lib/openssl/ssl.rb (OpenSSL::SSL::SocketForwarder):
- add do_not_reverse_lookup.
+Sat Feb 5 16:47:54 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
-Mon Mar 15 07:39:13 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * lib/test/unit/assertions.rb (Test::Unit::Assertions#assert):
+ msg can be passed nil. [Bug #4371] [ruby-dev:43174]
- * eval.c (rb_yield_0): should not re-submit TAG_BREAK if this
- yield is not break destination. [ruby-dev:23197]
+Sat Feb 5 15:18:25 2011 Eric Hodel <drbrain@segment7.net>
-Sun Mar 14 22:07:38 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * lib/rdoc: Upgrade to RDoc 3.5.2
- * eval.c (rb_thread_raise): err at unstarted thread. (PR#1302)
+Sat Feb 5 12:05:27 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Sat Mar 13 14:56:32 2004 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
+ * ext/syck/rubyext.c (syck_node_init_copy): SyckNode is not
+ copiable. [ruby-core:35094]
- * test/drb/ut_drb.rb: use 'druby://localhost:0'. [ruby-dev:23078]
+Sat Feb 5 11:48:47 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * test/drb/ut_eval.rb: ditto.
+ * ext/openssl/ossl_cipher.c (ossl_cipher_alloc): leave data ptr
+ NULL.
- * test/drb/ut_large.rb: ditto.
+ * ext/openssl/ossl_cipher.c (ossl_cipher_new, ossl_cipher_initialize):
+ allocate internal structure. [ruby-core:35094]
- * test/drb/ut_safe1.rb: ditto.
+ * ext/openssl/ossl_cipher.c (ossl_cipher_copy): ditto.
- * test/drb/ut_drb_drbssl.rb: use 'drbssl://localhost:0'.
+Sat Feb 5 11:29:10 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Fri Mar 12 23:52:56 2004 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+ * ext/json/parser/parser.h (GET_PARSER): raise TypeError.
- * dir.c (fnmatch): directory recursion '**/' can be used with
- File::FNM_PATHNAME. [ruby-dev:22901]
+ * ext/json/parser/parser.rl (cParser_initialize): ditto.
- * dir.c (fnmatch, fnmatch_helper): only '/' is accepted as path
- separator even in DOSISH environment. [ruby-dev:22974]
- [ruby-list:39337]
+ * ext/json/parser/parser.h (GET_PARSER): check if initialized.
+ [ruby-core:35079]
- * dir.c (fnmatch_helper): faster '*' matching.
+ * ext/json/parser/parser.rl (cParser_initialize): ditto.
-Fri Mar 12 20:19:16 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Sat Feb 5 10:09:31 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * configure.in (rb_cv_noreturn): default for platforms not support
- prototypes.
+ * load.c (rb_get_expanded_load_path): always expand load paths.
- * ruby.c (ruby_init_loadpath): buffer for path name should have
- MAXPATHLEN.
+Sat Feb 5 09:38:08 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * lib/mkmf.rb (configuration): include topdir and hdrdir in VPATH.
+ * transcode.c (encoded_dup): extract.
- * lib/mkmf.rb (create_makefile): default dependency rule.
+Sat Feb 5 03:37:47 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Fri Mar 12 07:35:36 2004 GOTOU Yuuzou <gotoyuzo@notwork.org>
+ * lib/fileutils.rb (FileUtils::LowMethods): make low level methods
+ in NoWrite and DryRun to do nothing. [ruby-dev:43129]
- * lib/webrick/config.rb (WEBrick::Config::General): add
- :DoNotReverseLookup.
+ * test/fileutils/fileasserts.rb: add message arguments.
- * lib/webrick/server.rb (WEBrick::GenericServer#accept): call
- do_not_reverse_lookup for each socket if :DoNotReverseLookup
- is set. [ruby-code:02357]
+ * test/fileutils/fileasserts.rb (Test::Unit::Assertions#assert_block):
+ show the given message.
-Wed Mar 10 22:26:25 2004 Minero Aoki <aamine@loveruby.net>
+Sat Feb 5 02:09:39 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * lib/fileutils.rb (remove_dir): should handle symlink correctly.
- This patch is contributed by Christian Loew. [ruby-talk:94635]
+ * parse.y (lex_getline, parser_set_encode): set encoding of lines
+ in SCRIPT_LINES__ as source encoding. [ruby-dev:43168]
-Wed Mar 10 16:28:42 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+Sat Feb 5 02:08:37 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * eval.c (return_jump): set return value to the return
- destination. separated from localjump_destination().
+ * vm.c (ruby_thread_data_type): add prefix.
- * eval.c (break_jump): break innermost loop (or thread or proc).
+Sat Feb 5 00:59:54 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * eval.c (rb_yield_0): set exit_value for block break.
+ * vm_core.h (GetThreadPtr): use TypedData_Get_Struct() instead
+ CoreDataFromValue() because we need type check. Otherwise,
+ type mismatch can cause segmentation fault crash.
+ [ruby-core:35086] [Ruby 1.9-Bug#4367]
-Wed Mar 10 16:00:14 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * vm.c (thread_data_type): remove static.
- * struct.c (rb_struct_s_def): Struct::new executes block with
- generated struct class. [ruby-talk:02606]
+Fri Feb 4 19:14:27 2011 Tanaka Akira <akr@fsij.org>
-Wed Mar 10 15:58:43 2004 Ryan Davis <ryand@zenspider.com>
+ * enc/trans/utf8_mac.trans: parenthesize macro arguments.
- * eval.c (eval): Only print backtrace if generating the backtrace
- doesn't generate an exception. [ruby-core:02621]
+Fri Feb 4 12:11:51 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
-Wed Mar 10 10:15:16 2004 NAKAMURA Usaku <usa@ruby-lang.org>
+ * string.c (str_utf8_nth): fixed a condition of optimized lead
+ byte counting. [Bug #4366][ruby-dev:43170]
- * ruby.c (opt_W_getter): get rid of warning.
+Fri Feb 4 01:50:13 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * bcc32/Makefile.sub, win32/Makefile.sub, wince/Makefile.sub:
- fixed dependency.
+ * string.c (count_utf8_lead_bytes_with_word): wrote function
+ comments.
-Tue Mar 9 13:04:26 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+Fri Feb 4 00:14:55 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * io.c (rb_io_ungetc): raise IOError instead of calling
- rb_sys_fail(). [ruby-talk:23181]
+ * ext/zlib/zlib.c (gzfile_reader_get_unused): no need to dup
+ before rb_str_resurrect.
-Tue Mar 9 10:03:40 2004 NAKAMURA Usaku <usa@ruby-lang.org>
+Thu Feb 3 20:04:44 2011 Tanaka Akira <akr@fsij.org>
- * bcc32/Makefile.sub, win32/Makefile.sub, wince/Makefile.sub:
- replaced regex.c entry with Oniguruma files.
+ * ext/curses/curses.c (CHECK): unused macro removed.
-Tue Mar 9 01:09:46 2004 Kazuo Saito <ksaito@uranus.dti.ne.jp>
+Thu Feb 3 18:33:26 2011 NARUSE, Yui <naruse@ruby-lang.org>
- * Makefile.in: replaced regex.c entry with Oniguruma files.
+ * ext/zlib/zlib.c (gzfile_reader_get_unused): use rb_str_resurrect
+ because gz->z.input is hidden string. [ruby-core:35057]
-Mon Mar 8 23:16:07 2004 Minero Aoki <aamine@loveruby.net>
+Thu Feb 3 16:34:10 2011 NARUSE, Yui <naruse@ruby-lang.org>
- * lib/net/http.rb: HTTPHeader did not initialized correctly.
+ * enc/shift_jis.c (code_to_mbc): cast as int from the subtraction of
+ pointers.
- * lib/net/http.rb (connect): does same debug output.
+ * enc/utf_16le.c (utf16le_mbc_enc_len): use ptrdiff_t.
-Mon Mar 8 21:38:18 2004 Minero Aoki <aamine@loveruby.net>
+ * enc/utf_32be.c (utf32be_left_adjust_char_head): ditto.
- * lib/net/http.rb (add_header): remove warning. [ruby-dev:23170]
+ * enc/utf_32le.c (utf32le_left_adjust_char_head): ditto.
-Mon Mar 8 21:09:39 2004 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+Thu Feb 3 16:31:43 2011 NARUSE, Yui <naruse@ruby-lang.org>
- * dir.c (range): Cancel change for incomplete '['. More discussion
- is needed.
+ * include/ruby/missing.h: don't use HAVE_STDDEF_H because it never
+ defined by configure though configure.bat defines it.
-Mon Mar 8 19:35:13 2004 akira yamada <akira@arika.org>
+ * include/ruby/ruby.h: move include stddef.h to defines.h
- * lib/uri/common.rb (URI::REGEXP::PATTERN::HOSTPORT): (?:#{PORT})
- -> (?::#{PORT}). [ruby-dev:23170]
+ * include/ruby/defines.h: ditto.
-Mon Mar 8 15:03:24 2004 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+Wed Feb 2 20:25:04 2011 NARUSE, Yui <naruse@ruby-lang.org>
- * dir.c (range): treat incomplete '[' as ordinary character (like
- has_magic does). fix buffer overrun at incomplete escape like '[\'.
+ * include/ruby/encoding.h (rb_enc_step_back): cast 4th argument 'n'
+ as int because Ruby usually treats length value as long but
+ onigenc_step_back's 4th argument is int.
-Mon Mar 8 13:35:32 2004 WATANABE Hirofumi <eban@ruby-lang.org>
+Thu Feb 3 07:20:46 2011 Aaron Patterson <aaron@tenderlovemaking.com>
- * regparse.c (parse_exp): need to separate initialization for bcc32.
- [ruby-dev:23169]
+ * ext/psych/lib/psych/visitors/to_ruby.rb: use Regexp::NOENCODING
+ rather than magic number.
- * oniguruma.h (ONIG_EXTERN): check __GNUC__ instead of __CYGWIN__.
+ * ext/syck/lib/syck/rubytypes.rb: ditto
-Mon Mar 8 01:05:55 2004 GOTOU Yuuzou <gotoyuzo@notwork.org>
+Thu Feb 3 07:16:11 2011 Aaron Patterson <aaron@tenderlovemaking.com>
- * lib/webrick/config.rb (WEBrick::Config::HTTP): rename :RequestHander
- to :RequestCallback and add new option :ServerAlias.
+ * re.c (Init_Regexp): added a constant for ARG_ENCODING_NONE
+ [ruby-core:35054]
- * lib/webrick/httpserver.rb (WEBrick::HTTPServer#run): use
- :RequestCallback and warn if :RequestHandler is in server's option.
+ * test/ruby/test_regexp.rb: corresponding test.
- * lib/webrick/httpserver.rb (WEBrick::HTTPServer#run): should print
- error message for WEBrick::HTTPSataus::Error.
+Thu Feb 3 07:02:16 2011 Aaron Patterson <aaron@tenderlovemaking.com>
- * lib/webrick/httpserver.rb (WEBrick::HTTPServer#lookup_server):
- lookup for hostname from :ServerAlias if the req.host is not match
- to :ServerName.
+ * ext/psych/lib/psych/visitors/to_ruby.rb: ARG_ENCODING_NONE regular
+ expressions can round trip. [ruby-core:34969]
- * lib/webrick/httpservlet.rb (WEBrick::HTTPServlet::CGIHandler#do_GET):
- use $?.exitstatus and refine log message.
+ * test/psych/test_yaml.rb: test for ARG_ENCODING_NONE regex
-Sun Mar 7 16:22:26 2004 WATANABE Hirofumi <eban@ruby-lang.org>
+ * ext/sych/lib/syck/rubytypes.rb: ARG_ENCODING_NONE regular
+ expressions can round trip.
- * Makefile.in (lex.c): use $? instead of $<.
+ * test/syck/test_yaml.rb: test for ARG_ENCODING_NONE regex
- * lib/pstore.rb (commit_new): use FileUtils.copy_stream for Cygwin.
- [ruby-dev:23157]
+Wed Feb 2 17:09:22 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
-Sun Mar 7 05:34:42 2004 Minero Aoki <aamine@loveruby.net>
+ * io.c (rb_io_fdatasync): Use fsync(2) if the underlying
+ operating system does not support fdatasync(2).
- * lib/net/http.rb: HTTPHeader keeps its header fields as an array.
+Wed Feb 2 14:51:08 2011 Eric Hodel <drbrain@segment7.net>
- * lib/net/http.rb: new method HTTPHeader#add_header, get_fields.
+ * lib/rdoc/markup/to_tt_only.rb: commit miss
+ * test/rdoc/test_rdoc_markup_to_tt_only.rb: ditto
+ * test/rdoc/test_rdoc_single_class.rb: ditto
- * lib/net/http.rb: new method HTTPHeader#content_length=.
+Wed Feb 2 09:27:53 2011 Eric Hodel <drbrain@segment7.net>
- * lib/net/http.rb: new method HTTPHeader#content_type, main_type,
- sub_type, type_params, content_type=, set_content_type.
+ * lib/rdoc: Upgrade to RDoc 3.5.1
- * lib/net/http.rb (HTTPHeader#basic_encode): result of pack(m) may
- contain multiple LFs.
+Wed Feb 2 00:30:43 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
-Sun Mar 7 03:11:00 2004 Minero Aoki <aamine@loveruby.net>
+ * include/ruby/st.h (st_table): Added comment why we need __extension__.
- * lib/net/http.rb: new method Net::HTTPRequest#body(=).
+Tue Feb 1 20:45:44 2011 Tanaka Akira <akr@fsij.org>
- * lib/net/http.rb: new method Net::HTTPRequest#body_stream(=).
+ * enc/encdb.c: parenthesize macro arguments.
-Sun Mar 7 02:06:07 2004 Minero Aoki <aamine@loveruby.net>
+Tue Feb 1 15:12:26 2011 NAKAMURA Usaku <usa@ruby-lang.org>
- * lib/net/http.rb: spin off https code again.
+ * test/ruby/test_require.rb (TestRequire#test_require_with_unc):
+ use ``127.0.0.1'' instead of ``localhost'' as host name, because
+ XP or earlier cannot resolv it as NBT hostname.
- * lib/net/https.rb: new file.
+Tue Feb 1 13:20:39 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * ext/openssl/lib/net/https.rb: removed. moved to net/https with
- slight modifications.
+ * test/benchmark/test_benchmark.rb (#capture_bench_output):
+ Added explicit sleep. Windows have imprecise time support.
+ Thus Tms.new.Add!{} may be or may be not equal 0. The
+ test failure started since r30747.
- * ext/openssl/lib/net/protocols.rb: removed. merged with net/http.
+Tue Feb 1 11:03:47 2011 Ryan Davis <ryan@lust.local>
- * lib/net/protocol.rb: new class BufferedIO.
+ * lib/rubygems*: Import rubygems 1.5.0 (released version @ 1fb59d0)
+ * test/rubygems: Ditto
- * lib/net/protocol.rb: InternetMessageIO < BufferedIO.
+Tue Feb 1 08:01:39 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * lib/net/protocol.rb: BufferedIO.new takes an IO.
+ * ext/io/console/console.c (console_set_winsize): new method to set
+ console size. [EXPERIMENTAL]
- * lib/net/smtp.rb: follow InternetMessageIO's change.
+ * ext/io/console/console.c (console_winsize): use GetWriteFD.
- * lib/net/pop.rb: ditto.
+Tue Feb 1 02:28:14 2011 Masaya Tarui <tarui@ruby-lnag.org>
-Sun Mar 7 00:55:03 2004 Minero Aoki <aamine@loveruby.net>
+ * include/ruby/win32.h, win32/win32.c: add rb_w32_inet_ntop.
+ inet_ntop's minimum supported client is Vista.
- * lib/net/protocol.rb: remove method: InternetMessageIO#address,
- port, ip_address, read_timeout(=), socket.
+Tue Feb 1 00:10:30 2011 NARUSE, Yui <naruse@ruby-lang.org>
- * lib/net/protocol.rb: simplify code.
+ * lib/benchmark.rb: fix benchmark to work with current ruby.
+ patched by Benoit Daloze [ruby-core:33846] [ruby-dev:43143]
+ merged from https://github.com/eregon/ruby/commits/benchmark
- * lib/net/protocol.rb: apply latest coding style.
+ * lib/benchmark (Report#width): update documentation
+ * lib/benchmark: document the return value of #benchmark and the
+ :list attribute in Report
+ * lib/benchmark (Tms#format): rename variables, use String#%
+ instead of Kernel.format
+ * lib/benchmark: remove undocumented Benchmark::times (an alias
+ of Process::times used twice)
+ * lib/benchmark (#benchmark): use label_width for the caption
+ * lib/benchmark (Tms#initialize): rename variables
+ * lib/benchmark: allow title to not be a String and call #to_s
+ * lib/benchmark (Benchmark#bm): return an Array of the times with
+ the labels
+ * lib/benchmark: correct output for Benchmark#bmbm
+ (remove the extra space)
+ * lib/benchmark: add a few tests for Benchmark::Tms output
+ * lib/benchmark: improve style (enumerators, ljust, unused vars)
+ * lib/benchmark: add spec about output and return value
+ * lib/benchmark: improve basic style and consistency
+ no parenthesis for print and use interpolation instead of printf
+ * lib/benchmark: remove unnecessary conversions and variables
+ * lib/benchmark: correct indentation
+ * lib/benchmark: rename the FMTSTR constant and variable to FORMAT
+ * lib/benchmark: remove useless exception
-Sat Mar 6 15:15:05 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * test/benchmark: remove unused variable warnings
- * ext/strscan/depend: depends on re.h and regex.h.
+Mon Jan 31 23:27:23 2011 CHIKANAGA Tomoyuki <nagachika00@gmail.com>
- * ext/strscan/strscan.c: no version check needed.
+ * node.c (add_id): remove duplicated rb_id2str() call.
- * ext/strscan/strscan.c (strscan_init_copy): struct re_registers must
- not be bitwise copied.
+Sun Jan 30 17:19:46 2011 Tanaka Akira <akr@fsij.org>
-Sat Mar 6 11:14:33 2004 David Black <dblack@wobblini.net>
+ * missing/langinfo.c: parenthesize macro arguments.
- * lib/scanf.rb: refixed the previous fix in IO#block_scanf
+Mon Jan 31 21:57:39 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
-Sat Mar 6 10:49:40 2004 David Black <dblack@wobblini.net>
+ * configure.in: revert r30698.
- * lib/scanf.rb: fixed a logic glitch in IO#block_scanf
+Mon Jan 31 21:32:44 2011 CHIKANAGA Tomoyuki <nagachika00@gmail.com>
-Sat Mar 6 02:00:19 2004 Minero Aoki <aamine@loveruby.net>
+ * thread.c (thread_start_func_2): check deadlock condition before
+ release thread stack. fix memory violation when deadlock detected.
+ reported by Max Aller. [Bug #4009] [ruby-core:32982]
- * lib/net/http.rb: net/https is merged.
+Mon Jan 31 14:45:47 2011 Yuki Sonoda (Yugui) <yugui@yugui.jp>
- * ext/openssl/lib/net/https.rb: ditto.
+ * lib/irb/locale.rb (IRB::Locale::#search_file):
+ Gem might be undefined if --disable-gems. [ruby-core:34990]
-Sat Mar 6 00:39:21 2004 Kazuo Saito <ksaito@uranus.dti.ne.jp>
+Mon Jan 31 12:26:14 2011 NARUSE, Yui <naruse@ruby-lang.org>
- * oniggnu.h: imported from Oniguruma library.
- * oniguruma.h: ditto.
+ * addr2line.c: suppressed shorten-64-to-32 warnings.
* regcomp.c: ditto.
- * regenc.c: ditto.
- * regenc.h: ditto.
- * regerror.c: ditto.
- * regex.c: ditto.
* regexec.c: ditto.
- * reggnu.c: ditto.
* regint.h: ditto.
* regparse.c: ditto.
* regparse.h: ditto.
- * ascii.c: ditto.
- * euc_jp.c: ditto.
- * sjis.c: ditto.
- * utf8.c: ditto.
-
- * MANIFEST: added Oniguruma files listed above.
-
- * LEGAL: added Oniguruma license.
-
- * regex.h: now includes oniggnu.h.
-
- * re.c: applied Oniguruma patch.
-
-Fri Mar 5 23:13:08 2004 Minero Aoki <aamine@loveruby.net>
-
- * lib/net/http.rb: support WebDAV methods, PROPPATCH, LOCK,
- UNLOCK, OPTIONS, PROPFIND, DELETE, MOVE, COPY, MKCOL.
- This patch is contributed by Tatsuki Sugiura.
-
-Fri Mar 5 20:58:37 2004 Minero Aoki <aamine@loveruby.net>
-
- * lib/net/http.rb: Net::HTTPResponse#response is obsolete.
- [ruby-core:02592]
-
- * lib/net/http.rb: Net::HTTPResponse#header is obsolete.
-
- * lib/net/http.rb: Net::HTTPResponse#read_header is obsolete.
-
-Fri Mar 5 20:10:57 2004 Minero Aoki <aamine@loveruby.net>
-
- * ext/strscan/strscan.c: new method StringScanner#initialize_copy
- to allow #dup and #clone.
-
- * test/strscan/test_strscan.rb: test StringScanner#dup.
-
-Fri Mar 5 19:42:09 2004 Minero Aoki <aamine@loveruby.net>
-
- * lib/net/http.rb (HTTPResponse#to_ary): should return an object
- which does not respond to #to_ary. It causes infinite loop in
- puts. [ruby-core:02578]
-
-Fri Mar 5 00:51:35 2004 Dave Thomas <dave@pragprog.com>
-
- * lib/test/unit.rb: Move RDoc documentation so that you can
- now say 'ri Test::Unit'
-
-Thu Mar 4 22:31:40 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * Makefile.in: miniruby is not needed for cross compile.
-
- * configure.in (PREP): miniruby for native compile.
-
-Thu Mar 4 11:46:32 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/drb/extservm.rb (DRb::ExtServManager#invoke_service_command):
- detach server processes to get rid of zombies.
-
-Thu Mar 4 10:41:25 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * ruby.h (T_MASK): save 1 bit in flags bits by shifting T_xxx
- values.
-
-Thu Mar 4 08:08:36 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/syck/rubyext.c: get rid of warnings.
-
- * lib/rss/taxonomy.rb: ditto.
-
- * lib/rdoc/ri/ri_formatter.rb: ditto.
-
- * test/ruby/test_assignment.rb: ditto.
-
-Thu Mar 4 01:17:28 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/rdoc/ri/ri_display.rb (DefaultDisplay::page): wait until the
- pager terminates.
-
-Wed Mar 3 13:10:56 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * eval.c (method_hash): new method. [ruby-talk:93968]
-
- * eval.c (proc_eq): do not compare dyna_vars.
-
- * eval.c (proc_hash): new method.
-
- * eval.c (rb_yield_0): protect break/return from within orphan (or
- lambda) Proc object.
-
-Wed Mar 3 09:52:05 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/mkmf.rb ($topdir): use compile_dir only when not installed yet.
- [ruby-talk:94098]
-
-Wed Mar 3 01:18:52 2004 Kouhei Sutou <kou@cozmixng.org>
-
- * lib/rss/converter.rb: handled Uconv::Error.
-
- * lib/rss/dublincore.rb: DublincoreModel -> DublinCoreModel
-
-Wed Mar 3 00:59:30 2004 David Black <dblack@wobblini.net>
-
- * lib/scanf.rb: soak_up_spaces only ungetc's non-space last
- character
-
- * lib/scanf.rb: IO#block_scanf now returns partial last iteration
- array if format string matches partly
-
-Tue Mar 2 16:30:21 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * io.c (pipe_open): erred program name should be reported by
- exceptions, instead of the first argument.
-
- * process.c (rb_spawn): ditto.
-
- * process.c (proc_spawn_v): use first argument as program name.
-
- * win32/win32.c (rb_w32_aspawn): ditto.
-
- * win32/win32.c (CreateChild): search executable file if no program
- name given.
-
- * lib/drb/extservm.rb (invoke_service_command): use Process.spawn.
- [ruby-dev:23103]
-
- * lib/rdoc/ri/ri_display.rb (setup_pager): use IO.popen.
- [ruby-dev:23086], [ruby-dev:23103]
-
- * lib/rdoc/diagram.rb (convert_to_png): ditto.
-
- * lib/rdoc/generators/chm_generator.rb (compile_project): ditto.
-
-Tue Mar 2 12:24:03 2004 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * win32/Makefile.sub, wince/Makefile.sub (config.h): shouldn't check
- defined? NORETURN. [ruby-dev:23100]
-
-Tue Mar 2 11:28:40 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * test/ruby/test_iterator.rb (test_ljump): cannot use
- assert_nothing_raised due to passing block.
-
-Tue Mar 2 06:23:14 2004 David Black <dblack@wobblini.net>
-
- * lib/scanf.rb: fixed Kernel#scanf to propagate code block
-
-Mon Mar 1 23:25:40 2004 David Black <dblack@wobblini.net>
-
- * lib/scanf.rb: Partial fix so STDIN#scanf works with new
- STDIN#pos behavior
+ * time.c: ditto.
+ * variable.c: ditto.
-Mon Mar 1 19:42:05 2004 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+Mon Jan 31 04:45:12 2011 NARUSE, Yui <naruse@ruby-lang.org>
- * bcc32/setup.mak: configure's default is "--enable-install-doc"
+ * array.c (rb_ary_uniq_bang): call ARY_SET_LEN(ary, 0) before
+ ary_resize_capa because ary_resize_capa expects resized length is
+ smaller than current array length. call rb_ary_unshare before
+ ary_resize_capa because ary_resize_capa lost the reference to
+ original shared array. [ruby-core:34997]
- * win32/setup.mak: ditto.
+Sun Jan 30 17:19:46 2011 Tanaka Akira <akr@fsij.org>
-Mon Mar 1 12:24:10 2004 Dave Thomas <dave@pragprog.com>
+ * missing/crypt.c: parenthesize macro arguments.
- * lib/rdoc/parsers/parse_rb.rb (RDoc::RubyParser::parse_alias):
- Allow aliases to have parentheses
+Sun Jan 30 16:40:27 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Sun Feb 29 23:14:53 2004 Dave Thomas <dave@pragprog.com>
+ * test/rubygems/test_gem_security.rb (TestGemSecurity): valid only
+ if OpenSSL is available.
- * lib/rdoc/parsers/parse_rb.rb (RDoc::RubyParser::parse_class):
- Handle :nodoc: on singleton classes.
+ * test/dl/test_dl2.rb (TestDL#test_sin): math functions do not
+ work on x86_64 due to the design of DL2.
-Sat Feb 28 21:50:20 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * test/dl/test_func.rb (DL::TestFunc#test_{sinf,sin): ditto.
- * bcc32/Makefile.sub, bcc32/README.bcc32, bcc32/configure.bat,
- bcc32/setup.mak: new configure scheme. use ``configure --prefix=dir''
- instead of ``make DESTDIR=dir install''.
- --with-static-linked-ext support on bccwin32. [ruby-dev:23034]
+Sun Jan 30 16:09:22 2011 Tanaka Akira <akr@fsij.org>
-Sat Feb 28 21:50:20 2004 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+ * strftime.c (rb_strftime_with_timespec): %G produces 4 digits.
- * bcc32/setup.mak: "configure --disable-install-doc" is now working.
+Sun Jan 30 15:13:19 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * win32/setup.mak: ditto.
+ * enc/emacs_mule.c (emacsmule_islead): 7bit range is also leading
+ byte.
-Sat Feb 28 15:09:49 2004 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+Sun Jan 30 13:03:16 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * bcc32/configure.bat: append missing label ":exit".
+ * hash.c (rb_hash_fetch_m): use useful message for longer key, not a
+ nonsense id value.
- * bcc32/configure.bat: fix typo.
+ * string.c (rb_str_ellipsize): new function to ellipsize a string.
-Sat Feb 28 10:31:03 2004 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
+ * include/ruby/encoding.h (rb_enc_step_back): new function to step
+ back n characters.
- * MANIFEST: add test_erb.rb
+Sun Jan 30 12:53:38 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * lib/erb.rb, test/erb/test_erb.rb: don't forget filename,
- if both filename and safe_level given. [ruby-dev:23050]
+ * enc/emacs_mule.c (emacsmule_islead): fix inverse condition.
-Sat Feb 28 01:08:40 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+Sun Jan 30 09:37:25 2011 Yutaka Kanemoto <kanemoto@ruby-lang.org>
- * parse.y (yylex): should not allow symbol for invalid global
- variable (e.g. `:$-)`). [ruby-core:02518]
+ * io.c (struct argf): char behaves like an unsigned char
+ by default on AIX.
-Fri Feb 27 20:37:09 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+Sun Jan 30 08:02:55 2011 NARUSE, Yui <naruse@ruby-lang.org>
- * eval.c (proc_invoke): no orphan block check is needed when pcall
- is true.
+ * configure.in: Mac OS X wrongly reports it has fdatasync(3).
- * eval.c (localjump_destination): update localjump condition.
+Sun Jan 30 03:29:47 2011 NARUSE, Yui <naruse@ruby-lang.org>
-Fri Feb 27 02:10:49 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * ext/openssl/ossl_bn.c (GetBNPtr): add missing nil case.
+ patched by Martin Bosslet. [ruby-core:34987]
- * eval.c (localjump_destination): lambda should not interfere
- return from the yielded block.
+Sun Jan 30 01:02:28 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
-Fri Feb 27 00:53:49 2004 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
+ * include/ruby/ruby.h: Added NUM2MODET() and MODET2NUM() default
+ definition.
+ Because r30686 introduced win32 build failure.
- * lib/drb/drb.rb, test/drb/drbtest.rb: require drb/eq.rb by default
+Sat Jan 29 22:16:26 2011 NARUSE, Yui <naruse@ruby-lang.org>
-Thu Feb 26 12:15:02 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * array.c (rb_ary_join): [].join.encoding must be US-ASCII.
+ [ruby-list:47790]
- * win32/win32.c (make_cmdvector): adjust successive double-quote
- handling.
+Sat Jan 29 20:22:39 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
-Thu Feb 26 09:42:56 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * benchmark/driver.rb (BenchmarkDriver#measure): Show command line
+ when abnormal exiting occur.
- * hash.c (delete_if_i): use st_delete_safe() (via
- rb_hash_delete()) instead of returning ST_DELETE.
+Sat Jan 29 10:53:16 2011 Yusuke Endoh <mame@tsg.ne.jp>
-Thu Feb 26 02:35:10 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * vm_insnhelper.c (vm_get_ev_const): no-scope reference to toplevel
+ private constant has been prohibited incorrectly.
- * process.c (rb_f_exec): get rid of SEGV when exec failed for command
- in single string.
+ * test/ruby/test_module.rb (test_toplevel_private_constant): add a
+ test for above.
-Wed Feb 25 21:17:33 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Sat Jan 29 08:43:23 2011 Ryan Davis <ryand-ruby@zenspider.com>
- * gc.c (obj_free), io.c (rb_io_fptr_finalize), rubyio.h (OpenFile):
- sharing OpenFile.
+ * lib/rubygems*: Import rubygems 1.5.0 (release candidate @ 09893d9)
+ * test/rubygems: Ditto
- * io.c (rb_io_initialize): accept IO instance. [ruby-dev:22195]
+Sat Jan 29 02:02:37 2011 Yusuke Endoh <mame@tsg.ne.jp>
-Wed Feb 25 21:16:10 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * variable.c (rb_mod_const_of, sv_i): Module#constant should exclude
+ private constants. see [ruby-core:32912].
- * instruby.rb (with_destdir): should return the given argument if no
- DESTDIR is given.
+ * test/ruby/test_module.rb (test_constants_with_private_constant): add
+ a test for above.
- * instruby.rb: use path name expansion of cmd.exe.
+Sat Jan 29 01:36:41 2011 Yusuke Endoh <mame@tsg.ne.jp>
-Wed Feb 25 20:44:45 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * variable.c (rb_const_set): const_set should preserve constant
+ visibility. see [ruby-core:32912].
- * lib/cgi-lib.rb, lib/getopts.rb, lib/importenv.rb, lib/parsearg.rb:
- warn with caller position.
+ * test/ruby/test_module.rb: add a test for above.
- * test/rss/test_content.rb, test/rss/test_dublincore.rb,
- test/rss/test_syndication.rb, test/rss/test_trackback.rb: use cgi
- instead of cgi-lib.
+Sat Jan 29 01:24:57 2011 Yusuke Endoh <mame@tsg.ne.jp>
-Tue Feb 24 18:42:03 2004 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+ * compile.c (NODE_CLASS, NODE_MODULE), insns.def (defineclass): raise
+ an exception when "class Foo::Bar" is evaluated and Foo::Bar is
+ private. To implement this, define_type of "defineclass" is added
+ so that the instruction can distinguish whether the class definition
+ is scoped (class Foo::Bar) or not (class Bar).
- * dir.c (glob_helper): '**/' should not match leading period
- unless File::FNM_DOTMATCH is set. (like '*/') [ruby-dev:23014]
+ * test/ruby/test_class.rb (test_redefine_private_class),
+ test/ruby/test_module.rb
+ (test_define_module_under_private_constant): add tests for above.
-Tue Feb 24 18:03:14 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Sat Jan 29 01:19:17 2011 Yusuke Endoh <mame@tsg.ne.jp>
- * test/ruby/test_file.rb (test_fnmatch): test for dir.c:1.108.
+ * constant.h, variable.c: to ensure compatibility, rb_const_get_* must
+ not raise an exception even when the constant is private. Instead,
+ rb_public_const_get_* and rb_public_const_defined_* are introduced,
+ which raise an exception when the referring constant is private.
+ see [ruby-core:32912].
-Tue Feb 24 17:07:17 2004 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+ * vm_insnhelper.c (vm_get_ev_const): use rb_public_const_get_* instead
+ of rb_const_get_* to follow the constant visibility when user code
+ refers a constant.
- * dir.c (fnmatch): File.fnmatch with File::FNM_PATHNAME was broken
- for the pattern including '*' followed by '/'.
+ * test/ruby/test_marshal.rb (test_marshal_private_class): add a test.
+ This test had failed because of incompatibility of rb_const_get.
-Tue Feb 24 13:22:21 2004 Dave Thomas <dave@pragprog.com>
+Sat Jan 29 00:30:44 2011 Yusuke Endoh <mame@tsg.ne.jp>
- * lib/rdoc/rdoc.rb (RDoc::RDoc::normalized_file_list): Attempt to get better
- heuristics on which files to include and exclude. Now only include
- non-standard files if they are explicitly named in ARGV.
+ * variable.c (set_const_visibility): fix typo. a patch from Tomoyuki
+ Chikanaga in [ruby-core:32919].
-Tue Feb 24 07:23:30 2004 Dave Thomas <dave@pragprog.com>
+Fri Jan 28 23:20:28 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * lib/rdoc/generators/html_generator.rb: Deal with :stopdoc: when
- choosing a default main page to display (ie. don't select a page
- if we don't have documentation for it).
+ * test/gdbm/test_gdbm.rb (TestGDBM#test_s_open_no_create,
+ TestGDBM2#test_writer_open_notexist): We only need to skip libgdbm
+ 1.8.0, not all 1.8.x. 1.8.1 or later don't have GDBM_WRITER sickness.
-Tue Feb 24 06:40:14 2004 Dave Thomas <dave@pragprog.com>
+Fri Jan 28 21:56:57 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * lib/rdoc/parsers/parse_rb.rb (RubyLex::identify_identifier): Handle
- class variables in code listings
+ * ext/dbm/extconf.rb: Added new header places for Fedora13.
-Tue Feb 24 06:32:27 2004 Dave Thomas <dave@pragprog.com>
+Fri Jan 28 21:49:30 2011 Tanaka Akira <akr@fsij.org>
- * lib/rdoc/parsers/parse_c.rb (RDoc::C_Parser::do_aliases): Handle
- aliases in C files.
+ * ext/zlib/zlib.c: parenthesize macro arguments.
-Tue Feb 24 06:16:22 2004 Dave Thomas <dave@pragprog.com>
+Fri Jan 28 17:47:33 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * lib/rdoc/rdoc.rb (RDoc::RDoc::document): Now create op dir _before_
- parsing files.
+ * test/gdbm/test_gdbm.rb (TestGDBM2#test_writer_open_notexist):
+ gdbm 1.8.x changed GDBM::WRITER behavior. Thus our testcase need
+ to be changed too.
-Tue Feb 24 06:08:47 2004 Dave Thomas <dave@pragprog.com>
+Fri Jan 28 17:33:28 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * lib/rdoc/parsers/parse_rb.rb (RDoc::RubyParser::parse_constant):
- Start collecting text of constant values earlier: was missing
- values in output if there was no space after '='
+ * test/gdbm/test_gdbm.rb (TestGDBM#test_s_open_no_create): skip
+ the test if gdbm version is 1.8.x.
-Tue Feb 24 06:08:25 2004 Dave Thomas <dave@pragprog.com>
+Fri Jan 28 16:30:51 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * lib/rdoc/generators/html_generator.rb: Escape contant values.
+ * test/ruby/test_require.rb (TestRequire#test_require_too_long_filename):
+ Added -w option because too long path error don't output a message
+ by default since r30660. [Bug #4336] [ruby-dev:43134]
-Tue Feb 24 03:45:06 2004 GOTOU Yuuzou <gotoyuzo@notwork.org>
+Fri Jan 28 16:19:38 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * ext/openssl/ossl_config.c (ossl_config_each): add new method
- OpenSSL::Config#each. it iterates with section name, field name
- and value.
+ * test/ruby/test_require.rb (TestRequire#test_require_path_home_{1,2}):
+ Added -w option because too long path error don't output a message
+ by default since r30660. [Bug #4336] [ruby-dev:43134]
- * ext/openssl/ossl_config.c (Init_ossl_config): include Enumerable.
+Fri Jan 28 16:04:54 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
-Mon Feb 23 09:09:44 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * test/ruby/test_require.rb (TestRequire#test_require_path_home_{1,2,3}):
+ split from test_require_path_home.
- * instruby.rb (parse_args): use optparse instead of getopts.
+Fri Jan 28 13:04:38 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * instruby.rb (DOSISH): embedded path in batch files should not be
- prefixed by DESTDIR. [ruby-core:02186]
+ * configure.in (--with-valgrind): Fixed r29683. Now this option
+ is really default on.
-Sun Feb 22 14:58:04 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Fri Jan 28 12:05:48 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * ext/extmk.rb: $extstatic is Array or nil now. [ruby-talk:93383]
+ * configure.in: Add #include<sys/stat.h> when struct stat is
+ tested. Otherwise, incomplete type dereference error will occur.
- * Makefile.in, bcc32/Makefile.sub, win32/Makefile.sub: terminate options.
+Fri Jan 28 11:53:19 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * lib/mkmf.rb (init_mkmf): $INCFLAGS also should be lazy-evaluated.
+ * configure.in: redundant variable names made strange conftest
+ error. Fixed it.
-Sun Feb 22 13:05:37 2004 akira yamada <akira@ruby-lang.org>
+Fri Jan 28 11:47:00 2011 NAKAMURA Usaku <usa@ruby-lang.org>
- * lib/uri/mailto.rb (URI::MailTo::to_s): should include fragment.
+ * test/ruby/test_process.rb (TestProcess#test_too_long_path{,2}):
+ should handle Errno::E2BIG, because this test checks crash of ruby,
+ not the error type system.
-Sun Feb 22 12:58:35 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Fri Jan 28 11:23:54 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * ext/extmk.rb: use optparse instead of getopts.
-
- * Makefile.in, bcc32/Makefile.sub, win32/Makefile.sub: ditto.
-
-Sun Feb 22 09:51:00 2004 Gavin Sinclair <gsinclair@soyabean.com.au>
-
- * re.c: corrected documentation format (rb_reg_initialize_m)
-
-Sat Feb 21 22:41:00 2004 Gavin Sinclair <gsinclair@soyabean.com.au>
-
- * ext/zlib/zlib.c: documented, but needs more effort.
-
-Sat Feb 21 14:33:20 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/extmk.rb: prefer relative path. [ruby-talk:93037]
-
-Sat Feb 21 11:12:08 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * missing/os2.c, missing/x68.c: typo fix. pointed out by greentea.
-
-Fri Feb 20 19:11:20 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/ostruct.rb (OpenStruct#initialize_copy): should not share
- members. [ruby-dev:22966]
-
-Fri Feb 20 18:59:47 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/irb/init.rb (IRB::IRB.parse_opts): add -I option to
- irb. [ruby-dev:39243]
-
-Fri Feb 20 12:55:27 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * io.c (pipe_open): fix typo.
-
- * win32/win32.c (CreateChild): first argument to CreateProcess() must
- have path, not just basename.
-
-Thu Feb 19 23:24:16 2004 Dave Thomas <dave@pragprog.com>
-
- * lib/rdoc/generators/html_generator.rb (Generators::HtmlClass::build_attribute_list):
- Support visibility modifiers for attributes
-
-Thu Feb 19 22:39:00 2004 Gavin Sinclair <gsinclair@soyabean.com.au>
-
- * lib/ostruct.rb: documented
-
-Thu Feb 19 22:39:04 2004 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
-
- * test/rinda/test_rinda.rb: DRb.start_service only once in testsuites.
- DRb.start_service could handle this.
-
-Thu Feb 19 22:24:04 2004 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
-
- * lib/soap/mapping/rubytypeFactory.rb: should not dump singleton class.
- [ruby-dev:22588]
- c = class << Object.new; class C; self; end; end; SOAPMarshal.dump(c)
-
-Thu Feb 19 18:08:18 2004 Gavin Sinclair <gsinclair@soyabean.com.au>
-
- * ext/strscan/strscan.c: improved documentation
-
-Thu Feb 19 18:08:18 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * win32/win32.c, win32/win32.h: fixed prototypes.
-
- * win32/win32.c (wait): same as waitpid() with -1.
-
-Thu Feb 19 02:34:28 2004 Dave Thomas <dave@pragprog.com>
-
- * lib/rdoc/markup/simple_markup/preprocess.rb (SM::PreProcess::include_file):
- Only strip comment markers if all lines start with comments.
-
-Thu Feb 19 03:05:49 2004 Minero Aoki <aamine@loveruby.net>
-
- * ext/strscan/strscan.c: StringScanner#restsize is obsolete;
- use #rest_size instead.
-
- * ext/strscan/strscan.c: StringScanner#matchedsize is obsolete;
- use #matched_size instead.
-
-Thu Feb 19 02:42:19 2004 Minero Aoki <aamine@loveruby.net>
-
- * ext/strscan/strscan.c: don't use rb_eval_string, it defines
- classes under the module when required in module clauses.
- [ruby-dev:22951]
-
-Thu Feb 19 02:37:28 2004 Minero Aoki <aamine@loveruby.net>
-
- * ext/strscan/strscan.c: merge documentation from 1.8 branch.
- Thanks Gavin Sinclair.
-
-Thu Feb 19 00:20:00 2004 Gavin Sinclair <gsinclair@soyabean.com.au>
-
- * lib/cgi-lib.rb: deprecated after 1.8.1
-
- * lib/getopts.rb: ditto
-
- * lib/importenv.rb: ditto
-
- * lib/parsearg.rb: ditto
-
-Thu Feb 19 00:11:05 2004 Dave Thomas <dave@pragprog.com>
-
- * lib/rdoc/markup/simple_markup/preprocess.rb (SM::PreProcess::handle):
- Strip extraneous space from filenames in :include:
-
-Wed Feb 18 22:53:41 2004 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
-
- * lib/drb/unix.rb: remove O_NONBLOCk, thanks \ay
-
-Wed Feb 18 22:42:19 2004 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
-
- * test/rinda/test_rinda.rb: improt test_rinda.rb
-
-Wed Feb 18 22:03:11 2004 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
-
- * test/*: should not depend on $KCODE.
-
-Wed Feb 18 18:07:09 2004 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * test/ruby/test_sprintf.rb: added tests.
-
-Wed Feb 18 17:18:01 2004 WATANABE Hirofumi <eban@ruby-lang.org>
-
- * ext/win32ole/win32ole.c: need to include <olectl.h> on Cygwin.
-
-Wed Feb 18 10:40:38 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * sprintf.c (rb_f_sprintf): sign bit extension should not be done
- if FPLUS flag is specified. [ruby-list:39224]
-
- * sprintf.c (rb_f_sprintf): do not prepend dots for negative
- numbers if FZERO is specified. [ruby-dev:39218]
-
-Wed Feb 18 10:23:34 2004 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * sprintf.c (rb_f_sprintf): clean up.
-
-Tue Feb 17 23:40:34 2004 Guy Decoux <ts@moulon.inra.fr>
-
- * sprintf.c (rb_f_sprintf): preserve original val for
- format_integer. [ruby-talk:92975]
-
-Tue Feb 17 23:28:45 2004 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
-
- * test/soap/marshal/test_marshal.rb, test/ruby/test_marshal.rb: do $:
- trick to share the testcase test/ruby/marshaltestlib.rb.
-
-Tue Feb 17 23:13:23 2004 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
-
- * test/ruby/marshaltestlib.rb: common marshal testcase added.
-
- * test/ruby/test_marshal.rb: use above testsuite.
-
- * test/soap/marshal/test_marshal.rb: ditto.
-
- * test/soap/marshal/cmarshal.rb: removed (not used).
-
-Tue Feb 17 19:34:26 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/extmk.rb (extmake): $extout_prefix doesn't vary for libraries.
-
- * ext/extmk.rb (extmake): remove compile directory if empty.
-
- * ext/extmk.rb (parse_args) lib/mkmf.rb (create_makefile): move
- initialization of $extout_prefix from lib/mkmf.rb. [ruby-dev:22928]
-
- * ext/extmk.rb: clear ext and extout directory when cleaning.
-
- * lib/mkmf.rb (CLEANLIBS): should be under $(arch) directory.
+ * io.c (rb_io_open): Use NUM2MODET() instead NUM2UINT().
+ * io.c (rb_scan_open_args): ditto.
-Tue Feb 17 18:02:10 2004 Minero Aoki <aamine@loveruby.net>
+Fri Jan 28 10:58:20 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * ext/strscan/strscan.c: ScanError may be (wrongly) garbage
- collected. (thanks Gavin Sinclair)
+ * configure.in: Added mode_t type checking.
+ * process.c (rb_exec_arg_addopt): Use NUM2MODET() instead
+ NUM2LONG because clang makes compile error by this narrowing
+ conversion.
+ * process.c (rb_run_exec_options_err): ditto.
- * ext/strscan/strscan.c: move ::ScanError to StringScanner::Error.
- ::ScanError is also defined for backward compatibility.
+Fri Jan 28 02:37:18 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * ext/strscan/strscan.c: #peep is obsolete, use #peek.
+ * re.c (rb_reg_raise): add GC guard to prevent intermediate
+ variable from GC.
- * ext/strscan/strscan.c: #empty? is obsolete, use #eos?.
+Fri Jan 28 02:35:41 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * ext/strscan/strscan.c: #clear is obsolete, use #terminate.
+ * hash.c (rb_hash_fetch_m): add GC guard to prevent intermediate
+ variable from GC.
- * ext/strscan/strscan.c: #getbyte is obsolete, use #get_byte.
+Fri Jan 28 01:33:51 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
-Tue Feb 17 12:12:47 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * test/ruby/test_process.rb (TestProcess#test_too_long_path)
+ TestProcess#test_too_long_path): Reduced string size from 100MB
+ to 10MB. 100MB may cause no memory error. It isn't intended.
- * ext/extmk.rb (parse_args): delay expanding $(extout) until invoking
- make.
+Fri Jan 28 01:27:42 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * lib/mkmf.rb (CLEANLIBS): should remove files have specific
- extensions.
+ * test/ruby/test_process.rb (TestProcess#test_too_long_path2):
+ Factored out from test_too_long_path. A test should only do
+ one test.
-Tue Feb 17 11:33:30 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Thu Jan 27 23:29:36 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * lib/rss/rexmlparser.rb: REXML version may be 4 digits.
+ * st.c (st_foreach): check if unpacked.
-Tue Feb 17 10:45:59 2004 NAKAMURA Usaku <usa@ruby-lang.org>
+Thu Jan 27 23:14:19 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * ext/syck/rubyext.c (syck_emitter_end_object): takes only one arg.
+ * misc/ruby-mode.el (ruby-mode-map): remove deprecated binding.
+ use M-; instead.
-Tue Feb 17 07:48:21 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Thu Jan 27 21:58:32 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * lib/rexml/encodings/SHIFT_JIS: wrong library name.
+ * bignum.c (rb_str_to_inum): get rid of too huge alloca().
-Tue Feb 17 01:35:28 2004 Tanaka Akira <akr@m17n.org>
+Thu Jan 27 21:43:29 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * eval.c (rb_eval): care that another thread replace NODE_DREGX_ONCE
- to NODE_LIT. [ruby-dev:22920]
+ * object.c (rb_str_to_dbl): rewrite again. use ALLOCV instead
+ rb_str_tmp_new().
-Tue Feb 17 01:20:57 2004 Minero Aoki <aamine@loveruby.net>
+Thu Jan 27 21:41:47 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * lib/fileutils.rb: new module FileUtils::DryRun.
+ * win32/win32.c: get rid of STRNDUPA(). It's dangerous API.
-Mon Feb 16 23:28:14 2004 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+Thu Jan 27 21:31:57 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * lib/csv.rb: document reduction. [ruby-core:02429]
+ * win32/win32.c (rb_w32_aspawn): get rid of too huge alloca().
+ [Bug #4330] [ruby-core:34898]
- * test/yaml/test_yaml.rb: added 0..1 test with "0".."1" on display.
- it should be defined that the specification about what kind of Range
- is supported in ruby's custom type in YAML.
+Thu Jan 27 20:30:18 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
-Mon Feb 16 22:22:00 2004 Gavin Sinclair <gsinclair@soyabean.com.au>
+ * win32/win32.c (rb_w32_spawn): get rid of too huge alloca().
- * lib/generator.rb: corrected doc format
+Thu Jan 27 18:49:53 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * lib/rinda/rinda.rb: added documentation (from Hugh Sasse)
+ * win32/win32.c (open_dir_handle): get rid of too huge alloca().
- * lib/rinda/tuplespace.rb: ditto
+Thu Jan 27 18:34:58 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- [Note: rinda files actually committed Wed Feb 18 07:27:00 2004]
+ * file.c (w32_io_info): get rid of too huge alloca().
+ [Bug #4313] [ruby-core:34830]
-Mon Feb 16 20:28:52 2004 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+Thu Jan 27 18:19:51 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * bcc32/Makefile.sub: show more warnings. (refering to mingw)
+ * win32/win32.c (wstati64): get rid of too huge alloca().
+ [Bug #4316] [ruby-core:34834]
- * bcc32/setup.mak: ditto.
+Thu Jan 27 15:11:52 2011 NAKAMURA Usaku <usa@ruby-lang.org>
-Mon Feb 16 18:35:58 2004 NAKAMURA Usaku <usa@ruby-lang.org>
+ * win32/win32.c (rb_w32_spawn, rb_w32_aspawn): get rid of too huge
+ alloca(). this is the real fix of [ruby-core:34833].
- * win32/Makefile.sub (config.status): should create *.pdb on ext/,
- not .ext/.
+Thu Jan 27 12:46:25 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * win32/Makefile.sub (config.status): convert the name of import
- library.
+ * process.c (ALLOC_ARGV_WITH_STR): fix void pointer arithmetic.
- * lib/mkmf.rb (create_makefile): now don't need to remove
- $(TARGET).lib.
+Thu Jan 27 08:41:40 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Mon Feb 16 15:45:22 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * process.c (proc_exec_v, rb_proc_exec_n, rb_proc_exec)
+ (proc_spawn_n, proc_spawn): get rid of too huge alloca().
+ [ruby-core:34827], [ruby-core:34833]
- * configure.in: check functions, fork spawnv.
+Thu Jan 27 08:32:17 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * io.c (rb_io_s_popen): accept argv not only single command line.
+ * include/ruby/ruby.h (ALLOCV): new API for exception-safe
+ temporary buffer. [ruby-core:34844]
- * process.c (rb_proc_exec_n): export.
+ * string.c (rb_alloc_tmp_buffer, rb_free_tmp_buffer):
+ implementation of the API.
- * process.c (rb_check_argv): check if arguments are safe to invoke.
+Thu Jan 27 08:22:49 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * process.c (rb_fork): retry to fork.
+ * dln_find.c (dln_find_1): use rb_warning and return immediately
+ if fname is longer than buffer.
- * process.c (rb_spawn): spawn child process asynchronously.
+Wed Jan 26 22:57:30 2011 CHIKANAGA Tomoyuki <nagachika00@gmail.com>
- * process.c (rb_f_system): raise an exception if the command could not
- execute.
+ * class.c (clone_method): add GC guard to prevent intermediate
+ variable from GC. [Bug #4321] [ruby-dev:43107]
- * win32/win32.c (rb_w32_argv_size): count necessary size for joined
- arguments.
+Wed Jan 26 22:45:16 2011 Tanaka Akira <akr@fsij.org>
- * win32/win32.c (rb_w32_join_argv): join arguments with quoting.
+ * template/id.h.tmpl: parenthesize macro arguments.
- * win32/win32.c (rb_w32_pipe_exec, rb_w32_spawn, rb_w32_aspawn):
- accept program name adding to command line.
+Wed Jan 26 22:28:49 2011 CHIKANAGA Tomoyuki <nagachika00@gmail.com>
-Mon Feb 16 15:18:33 2004 Minero Aoki <aamine@loveruby.net>
+ * vm_eval.c (rb_throw_obj): add GC guard to prevent intermediate
+ variable from GC. [Bug #4322] [ruby-dev:43108]
- * lib/racc/parser.rb: add note for Racc full package.
+Wed Jan 26 17:08:59 2011 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
-Mon Feb 16 15:13:01 2004 Minero Aoki <aamine@loveruby.net>
+ * ext/openssl/ossl_asn1.c (ossl_asn1_decode0): OpenSSL::ASN1.decode
+ should reject indefinite length primitive encodings as that is
+ illegal. Patch by Martin Bosslet. See #4324.
- * ext/racc/cparse/README: new file.
+Wed Jan 26 10:36:28 2011 NARUSE, Yui <naruse@ruby-lang.org>
- * ext/racc/cparse/MANIFEST: add README.
+ * string.c (=~): documentation fix; the return value is nil when
+ it doesn't match. patched by Andrei Kulakov [ruby-core:34562]
-Mon Feb 16 12:29:10 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Tue Jan 25 08:41:58 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * ext/iconv/iconv.c (iconv_s_list): new method Iconv.list
- (libiconv only).
+ * dln_find.c (dln_find_1): omit too long pathnames.
-Mon Feb 16 10:29:52 2004 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+Tue Jan 25 08:28:19 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * dir.c (CompareImpl): File.fnmatch and Dir.glob get better performance
- in Win32. This is achived by calling downcase() for single-byte
- characters. (CharLower() is slower than downcase())
+ * string.c (rb_str_resize): get rid of out-of-bound access.
-Mon Feb 16 02:14:29 2004 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+Tue Jan 25 07:48:22 2011 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
- * bcc32/Makefile.sub: should warn suspicious pointer conversion.
+ * test/ruby/test_thread.rb: remove unused variables.
- * bcc32/setup.mak: ditto.
+Tue Jan 25 07:45:44 2011 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
-Sun Feb 15 20:56:22 2004 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+ * test/ruby/test_thread.rb (TestThread#test_condvar_nolock_2): get
+ rid of method redefined.
- * dir.c (push_braces): remove wrong const. [ruby-dev:22891]
+Tue Jan 25 07:00:52 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Sun Feb 15 20:41:15 2004 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+ * string.c (rb_string_value_cstr): rb_str_modify can change
+ RSTRING_PTR.
- * sample/soap/calc/httpd.rb, sample/soap/exchange/httpd.rb,
- sample/soap/sampleStruct/httpd.rb, sample/wsdl/googleSearch/httpd.rb:
- use soap/property instead of getopts for configuring DocumentRoot
- and port# of httpd. see samplehttpd.conf below.
+Tue Jan 25 03:24:28 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * sample/soap/calc/samplehttpd.conf,
- sample/soap/exchange/samplehttpd.conf,
- sample/soap/sampleStruct/samplehttpd.conf,
- sample/wsdl/googleSearch/samplehttpd.conf: added.
+ * test/ruby/test_thread.rb: Added various ConditionVariable tests.
-Sun Feb 15 19:13:33 2004 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
+Mon Jan 24 22:26:33 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * lib/rinda/tuplespace.rb: read(tpl,0), raise RequestExpiredError
- if not found.
+ * object.c (rb_str_to_dbl): Fix again. use rb_str_tmp_new()
+ instead ALLOC_N.
-Sun Feb 15 15:48:57 2004 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+Mon Jan 24 21:50:48 2011 Tanaka Akira <akr@fsij.org>
- * ext/win32ole/win32ole.c: add IDispatch wrapper in val2variant.
- Thanks, arton.
+ * vm_insnhelper.h: parenthesize macro arguments.
-Sun Feb 15 15:23:29 2004 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+Mon Jan 24 21:28:34 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * ruby.h, dir.c (rb_glob): add const.
+ * object.c (rb_str_to_dbl): use ALLOC_N instead ALLOCA_N because
+ ALLOC_N may cause stack overflow.
-Sun Feb 15 01:46:05 2004 GOTOU Yuuzou <gotoyuzo@notwork.org>
+Mon Jan 24 21:04:45 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * lib/mkmf.rb: absolute path of ruby is assigned to $(RUBY).
- [ruby-dev:22870]
+ * error.c (rb_invalid_str): prevent intermediate variable from GC.
+ [ruby-core:34820]
-Sat Feb 14 23:59:11 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Sun Jan 23 23:01:54 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * mkconfig.rb: use fileutils.rb instead of ftools.rb.
+ * test/io/console/test_io_console.rb: Don't run test if the system
+ don't support io/console.
- * bcc32/Makefile.sub, win32/Makefile.sub (config.h): define
- STACK_GROW_DIRECTION.
+Sun Jan 23 22:17:07 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * bcc32/Makefile.sub (config.h): add newer checks.
+ * test/fiddle/test_fiddle.rb: Don't run test if the system don't support
+ fiddle.
- * wince/Makefile.sub (config.h): define NEED_IO_SEEK_BETWEEN_RW.
+ * test/fiddle/test_function.rb: ditto.
+ * test/fiddle/test_closure.rb: ditto.
-Sat Feb 14 23:26:27 2004 WATANABE Hirofumi <eban@ruby-lang.org>
+Sun Jan 23 11:39:18 2011 Tanaka Akira <akr@fsij.org>
- * lib/un.rb: use OptionParser instead of getopts.
+ * vm_exec.h: parenthesize macro arguments.
-Sat Feb 14 11:28:14 2004 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
+Sun Jan 23 10:33:02 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * sample/drb/*: import lib/drb/sample
+ * template/fake.rb.in (ruby): suppress warnings.
-Sat Feb 14 11:14:12 2004 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
+Sun Jan 23 08:00:09 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * lib/drb/drb.rb: add pretty_print, thanks gotoken.
+ * string.c (str_nth_len, str_utf8_nth): return the rest length together.
-Fri Feb 13 21:51:00 2004 Gavin Sinclair <gsinclair@soyabean.com.au>
+ * string.c (rb_str_substr): get rid of measure the length always
+ to improve performance for huge string. [ruby-core:34648]
- * lib/fileutils.rb: slighly improved documentation (sync with 1.8)
+Sun Jan 23 00:40:10 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
-Fri Feb 13 19:57:01 2004 Kouhei Sutou <kou@cozmixng.org>
+ * test/test_syslog.rb: Fix to make a lot of test failure if
+ the platform doesn't support syslog.
- * test/rss/test_trackback.rb: added tests for TrackBack with RSS
- 2.0.
+Sat Jan 22 11:49:55 2011 Aaron Patterson <aaron@tenderlovemaking.com>
- * test/rss/common.rb: added methods make RSS 2.0.
+ * ext/psych/lib/psych/visitors/to_ruby.rb: fixing merge key support
+ when multiple merge keys are specified.
- * lib/rss/trackback.rb: TrackBack API is decided.
+ * test/psych/test_merge_keys.rb: tests for multi-merge key support
- * lib/rss/rss.rb: RSS::VERSION 0.0.7 -> 0.0.8.
+Sat Jan 22 11:33:04 2011 Aaron Patterson <aaron@tenderlovemaking.com>
- * lib/rss/parser.rb, lib/rss/rss.rb: replaced $DEBUG by RSS::DEBUG.
+ * ext/psych/lib/psych/visitors/to_ruby.rb: merge keys are actually
+ part of YAML 1.1, so they should be supported. Remove warning and
+ merge keys to parent. [ruby-core:34679]
- * lib/rss/2.0.rb: removed RSS 2.0 URI. Because RSS 2.0 doesn't
- have URI.
+ * test/psych/test_merge_keys.rb: test for merge keys
-Fri Feb 13 14:41:00 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+Sat Jan 22 10:25:19 2011 Aaron Patterson <aaron@tenderlovemaking.com>
- * ext/tk/lib/tk.rb: en-bugged at last commit (Feb 11 23:24:22 2004)
+ * ext/psych/parser.c (parse): add the file name to the exception when
+ parse errors occur.
-Fri Feb 13 12:26:37 2004 Minero Aoki <aamine@loveruby.net>
+ * test/psych/test_parser.rb: test for parse error file name
- * test/fileutils/test_fileutils.rb: rescue SystemCallError instead
- of EINVAL. File.link may raise EACCES on network file systems.
+Sat Jan 22 10:12:30 2011 Aaron Patterson <aaron@tenderlovemaking.com>
-Fri Feb 13 05:18:58 2004 Minero Aoki <aamine@loveruby.net>
+ * ext/psych/parser.c (parse): fix assertion error when reusing a
+ parser after an exception has been raised
- * test/fileutils/test_fileutils.rb: File.link raises EINVAL on
- Win9x. [ruby-dev:22713]
+ * test/psych/test_parser.rb: test for assertion error
-Thu Feb 12 21:49:00 2004 Gavin Sinclair <gsinclair@soyabean.com.au>
+Sat Jan 22 04:09:22 2011 Aaron Patterson <aaron@tenderlovemaking.com>
- * lib/ftools.rb: documented
+ * ext/psych/lib/psych/nodes/node.rb: Make Psych::Nodes::Node
+ enumerable.
-Thu Feb 12 21:19:00 2004 Gavin Sinclair <gsinclair@soyabean.com.au>
+ * ext/psych/lib/psych/visitors/depth_first.rb: Add a depth-first
+ visitor to enumerate over a YAML AST in a depth-first fashion
- * lib/base64.rb: added and tidied documentation
+ * test/psych/nodes/test_enumerable.rb: test for enumerating nodes
-Thu Feb 12 20:45:01 2004 Minero Aoki <aamine@loveruby.net>
+ * test/psych/visitors/test_depth_first.rb: test for depth-first
+ visitor
- * lib/net/protocol.rb (WriteAdapater#puts): must append "\n" to
- the string, don't prepend. (ruby-bugs:PR#1280)
+Sat Jan 22 00:53:42 2011 Tanaka Akira <akr@fsij.org>
-Thu Feb 12 20:31:43 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * vm_core.h: parenthesize macro arguments.
- * lib/mkmf.rb (create_tmpsrc): cpp32 of Borland C++ ignores #error
- directives in DOS line-ending files at all.
+Fri Jan 21 18:15:09 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Thu Feb 12 15:23:20 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * configure.in: should not use -Werror=* flags while conftests.
- * parse.y (rparen): ignore preceding newlines to right parentheses.
- (ruby-bugs:PR#1221) [ruby-dev:22858]
+Fri Jan 21 09:17:00 2011 Luis Lavena <luislavena@gmail.com>
-Thu Feb 12 14:17:43 2004 WATANABE Hirofumi <eban@ruby-lang.org>
+ * configure.in: Fix incorrectly detected x86_64-w64-mingw32 due
+ canonalization of target_os. Bug #3889 [ruby-core:32634]
- * configure.in: set ac_cv_func_link to yes to enable link() on MinGW.
- [ruby-dev:22241]
+Thu Jan 20 23:44:00 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
-Thu Feb 12 13:32:49 2004 NAKAMURA Usaku <usa@ruby-lang.org>
+ * configure.in: Fix rb_cv_va_args_macro was broken. We are using
+ -Werror=implicit-function-declaration compile option. therefore
+ we need a function declaration explicitly.
- * win32/win32.c (link): raise NotImplementedError on Win9X.
- contributed by Tietew. [ruby-dev:22713]
+Thu Jan 20 23:58:02 2011 Tanaka Akira <akr@fsij.org>
- * win32/win32.c, win32/win32.h (link): add const.
+ * node.h: parenthesize macro arguments.
-Thu Feb 12 09:56:19 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Thu Jan 20 23:25:28 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * ext/tk/lib/tk.rb (TkComm::tk_split_list): suppress a warning.
+ * configure.in: Add '#include <stdlib.h>' to
+ rb_cv_localtime_overflow test too. It's reported by Tomoyuki
+ Chikanaga. Thanks.
-Thu Feb 12 02:23:56 2004 Tanaka Akira <akr@m17n.org>
+Thu Jan 20 16:11:00 2011 Kenta Murata <mrkn@mrkn.jp>
- * lib/pathname.rb: use assert_raise instead of assert_raises.
+ * README.EXT, README.EXT.ja: You shouldn't choose ``conftest.c'' as a
+ name of a source file.
- * lib/pp.rb: ditto.
+Thu Jan 20 12:15:44 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * lib/time.rb: ditto.
+ * configure.in: Add stdlib.h inclusion into rb_cv_negative_time_t
+ test because it's required for exit(3). The patch is
+ created by Tomoyuki Chikanaga. [Bug #4287] [ruby-dev:43060]
- * lib/tsort.rb: ditto.
- use TSortHash and TSortArray instead of Hash and Array in test.
+Thu Jan 20 11:39:41 2011 NAKAMURA Usaku <usa@ruby-lang.org>
-Wed Feb 11 23:24:22 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+ * test/webrick/utils.rb (TestWEBrick::RubyBin): test CGI does not need
+ to load rubygems. if it activated, ruby raises LoadError about
+ rbconfig.rb.
- * ext/tk/lib/tk.rb: properly treat a Tcl/Tk's string with escaping
- special characters.
+Thu Jan 20 09:19:42 2011 Aaron Patterson <aaron@tenderlovemaking.com>
-Tue Feb 10 20:49:07 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * ext/psych/lib/psych/visitors/json_tree.rb: Fix JSON emit for
+ DateTime and Time classes.
- * eval.c (method_proc): return bound Proc object. [ruby-dev:22854]
+ * test/psych/test_json_tree.rb: test for JSON emit
- * eval.c (rb_mod_define_method): bind method body itself for Method
- object.
+Thu Jan 20 08:02:46 2011 Aaron Patterson <aaron@tenderlovemaking.com>
- * node.h (NODE_DMETHOD): deprecated.
+ * ext/psych/lib/psych/coder.rb (represent_object): arbitrary objects
+ may be passed to the Psych::Coder object.
- * object.c (rb_class_inherited_p): export.
+ * ext/psych/lib/psych/visitors/yaml_tree.rb: support for visiting
+ arbitrary objects set on the coder.
-Tue Feb 10 16:43:50 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * test/psych/test_coder.rb: supporting test case.
- * eval.c (umethod_bind): purge unused check. [ruby-dev:22850]
+Thu Jan 20 06:03:17 2011 Tanaka Akira <akr@fsij.org>
-Tue Feb 10 14:33:08 2004 NAKAMURA Usaku <usa@ruby-lang.org>
+ * method.h: parenthesize macro arguments.
- * string.c (rb_str_match): raise TypeError when both arguments are
- strings. [ruby-dev:22851]
+Wed Jan 19 13:16:05 2011 Eric Hodel <drbrain@segment7.net>
- * string.c (rb_str_match2): removed.
+ * lib/rubygems/commands/sources_command.rb: Finish removing code,
+ (fixes sources command test).
- * Makefile.in, bcc32/Makefile.sub, win32/Makefile.sub,
- wince/Makefile.sub (string.c): now not depend on version.h.
+Wed Jan 19 13:04:16 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
-Mon Feb 9 17:46:07 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * proc.c (proc_call): Add gc guard to avoid segfault. The fix
+ is created by Tomoyuki Chikanaga. [Bug #4238][ruby-dev:42963]
- * Makefile.in, bcc32/Makefile.sub, win32/Makefile.sub, configure.in,
- runruby.rb: run rdoc, test and so on with compiled extension
- libraries. [ruby-dev:22688]
+Wed Jan 19 12:31:28 2011 Eric Hodel <drbrain@segment7.net>
- * ext/extmk.rb, lib/mkmf.rb: make extension libraries in separated
- directory, similar to the actual directory structure.
+ * lib/rubygems.rb: Since gem_prelude requires rubygems, enable
+ custom_require always.
- * lib/fileutils.rb (FileUtils.copy_file): use the mode of the original
- file to create new file.
+Wed Jan 19 12:08:08 2011 Eric Hodel <drbrain@segment7.net>
- * lib/rdoc/ri/ri_paths.rb (RI::Paths::SYSDIR): get rid of unexpected
- influence by environment variable.
+ * lib/rubygems/commands/dependency_command.rb: Remove require of
+ deleted file.
+ * lib/rubygems/commands/fetch_command.rb: ditto
+ * lib/rubygems/commands/setup_command.rb: ditto
+ * lib/rubygems/commands/sources_command.rb: ditto
+ * lib/rubygems/commands/specification_command.rb: ditto
- * bcc32/configure.bat, win32/configure.bat: add install-doc options.
+Wed Jan 19 08:13:59 2011 Ryan Davis <ryand-ruby@zenspider.com>
- * win32/win32.c, win32/win32.h (rb_w32_fstat): fix Borland C runtime
- bug which returns wrong mode. [ruby-dev:22846]
+ * lib/rubygems*: Import rubygems 1.5.0 (release candidate)
+ * test/rubygems: Ditto
-Mon Feb 9 16:30:12 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Tue Jan 18 23:31:01 2011 Yusuke Endoh <mame@tsg.ne.jp>
- * process.c (detach_process_watcher): return the last status.
- [ruby-dev:22841]
+ * parse.y: avoid NULL reference. [ruby-dev:43067]
-Sun Feb 8 16:46:08 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Wed Jan 19 02:54:04 2011 NARUSE, Yui <naruse@ruby-lang.org>
- * lib/pp.rb (PP::PPMethods::object_address_group): suppress negative
- sign for higher heap areas.
+ * vsnprintf.c (cvt): set first byte of buf to NUL for the case when
+ no bytes are written to the buf. [ruby-dev:43062]
-Sun Feb 8 16:18:27 2004 akira yamada <akira@ruby-lang.org>
+Tue Jan 18 23:04:51 2011 Tanaka Akira <akr@fsij.org>
- * test/yaml/test_yaml.rb (YAML_Unit_Tests::test_range_cycle):
- added tests.
+ * gc.h: parenthesize macro arguments.
-Sun Feb 8 15:51:57 2004 akira yamada <akira@ruby-lang.org>
+Tue Jan 18 18:31:14 2011 Keiju Ishitsuka <keiju@ishitsuka.com>
- * test/ruby/test_file.rb (TestFile::test_fnmatch): added tests for
- File.fnmatch. [ruby-dev:22815][ruby-dev:22819]
+ * lib/irb/completion.rb: Irb tab completion support for XX::method
+ forms.
-Sun Feb 8 15:41:45 2004 akira yamada <akira@ruby-lang.org>
+Tue Jan 18 15:05:55 2011 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
- * test/yaml/test_yaml.rb (YAML_Unit_Tests::test_range_cycle):
- added tests. [ruby-core:02306] [ruby-core:02311]
+ * lib/logger.rb: added RDoc document for logging message escape
+ by Hal Brodigan. See #3869
-Sun Feb 8 14:24:35 2004 Minero Aoki <aamine@loveruby.net>
+Tue Jan 18 07:53:52 2011 Tanaka Akira <akr@fsij.org>
- * lib/net/http.rb (HTTP#request): should not overwrite Connection
- header. (ruby-bugs:PR#1274)
+ * eval_intern.h: parenthesize macro arguments.
-Sun Feb 8 10:11:21 2004 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+Tue Jan 18 04:42:44 2011 Aaron Patterson <aaron@tenderlovemaking.com>
- * dir.c (glob_helper): Dir.glob('**/') did not work. [ruby-dev:22832]
+ * ext/psych/lib/psych/parser.rb (Mark): Adding a class to wrap
+ marker information
-Sun Feb 8 00:29:26 2004 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+ * ext/psych/parser.c (mark): Add a method to return the mark object
+ for the parser
- * dir.c (fnmatch): File.fnmatch('*?', 'a') should return true.
- [ruby-dev:22815]
+ * test/psych/test_parser.rb: tests for the Mark class.
- * dir.c (fnmatch): File.fnmatch('\[1\]' , '[1]') should return true.
- [ruby-dev:22819]
+Tue Jan 18 02:46:55 2011 Aaron Patterson <aaron@tenderlovemaking.com>
- * dir.c: Did some styles (no change to behavior)
+ * ext/psych/lib/psych/visitors/json_tree.rb (visit_String): JSON
+ strings should be dumped with double quotes. [ruby-core:34186]
-Sat Feb 7 19:56:11 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * test/psych/test_json_tree.rb: test for double quotes
- * lib/irb/init.rb (IRB.rc_files): yield possible rc file names.
+Mon Jan 17 23:36:33 2011 Tanaka Akira <akr@fsij.org>
- * lib/irb/input-method.rb (IRB::ReadlineInputMethod::initialize):
- load and save history automatically. [ruby-core:02352]
+ * array.c (rb_ary_times): less MEMCPY calls.
-Fri Feb 6 22:48:16 2004 Dave Thomas <dave@pragprog.com>
+Mon Jan 17 22:54:33 2011 Tanaka Akira <akr@fsij.org>
- * lib/rdoc/generators/html_generator.rb (gen_url): Support
- https in RDoc hyperlinks
+ * debug.h: parenthesize macro arguments.
-Fri Feb 6 22:41:22 2004 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+Mon Jan 17 21:40:25 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * lib/pp.rb (PPInspectTest#test_to_s_with_iv): rollback the previous
- commit. [ruby-dev:22813]
+ * ruby.c (process_options): revert r30549.
-Fri Feb 6 22:22:50 2004 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+Sun Jan 16 20:55:45 2011 Tanaka Akira <akr@fsij.org>
- * lib/pp.rb (PPInspectTest#test_to_s_with_iv): remove instance
- variable which is defined in the test.
+ * vsnprintf.c: parenthesize macro arguments.
-Fri Feb 6 18:54:18 2004 akira yamada <akira@ruby-lang.org>
+Sat Jan 15 11:57:30 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * test/ruby/test_proc.rb (TestProc::test_eq): added a
- test. [ruby-dev:22599]
+ * configure.in (warnflags): add -Werror=implicit-function-declaration
+ if available.
-Fri Feb 6 18:26:00 2004 akira yamada <akira@ruby-lang.org>
+ * lib/mkmf.rb (init_mkmf): ignore warnings in mkmf tests.
- * test/ruby/test_proc.rb (TestProc::test_eq): added tests for
- Proc#==. [ruby-dev:22592], [ruby-dev:22601]
+ * test/mkmf/base.rb (setup, teardown): restore config values.
-Fri Feb 6 10:12:06 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * test/mkmf/test_flags.rb: split from test_find_executable.rb.
- * ext/socket/socket.c (bsock_do_not_reverse_lookup): control reverse
- lookup for every instance. [ruby-core:02346]
+Sat Jan 15 10:04:14 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Fri Feb 6 09:15:11 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * ruby.c (process_options): autoload rubygems.
- * lib/irb/extend-command.rb: add irb_help command. [ruby-talk:91610]
+ * tool/compile_prelude.rb (Prelude#initialize): ignore empty
+ preludes.
- * lib/irb/cmd/help.rb (IRB::ExtendCommand::Help): show RDoc.
+ * ruby.c (ruby_init_prelude): get rid of global namespace
+ pollution.
-Fri Feb 6 00:48:37 2004 Tanaka Akira <akr@m17n.org>
+Sat Jan 15 09:42:12 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * lib/prettyprint.rb (PrettyPrint#first?): obsoleted.
+ * include/ruby/io.h: missing prototypes.
-Thu Feb 5 23:56:55 2004 Tanaka Akira <akr@m17n.org>
+Fri Jan 14 23:25:55 2011 Tanaka Akira <akr@fsij.org>
- * lib/prettyprint.rb (PrettyPrint#seplist): added.
+ * vm_method.c: parenthesize macro arguments.
- * lib/pp.rb (PPMethods#pp_object): use seplist.
- (PPMethods#pp_hash): ditto.
- (Array#pretty_print): ditto.
- (Struct#pretty_print): ditto.
- (MatchData#pretty_print): ditto.
+Fri Jan 14 15:32:29 2011 Shugo Maeda <shugo@ruby-lang.org>
- * lib/set.rb (Set#pretty_print): use seplist.
+ * test/net/imap/test_imap.rb: call neither logout nor disconnect
+ unless connected. patch by Kazuhiro NISHIYAMA. [ruby-dev:42860]
-Wed Feb 4 22:39:46 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Fri Jan 14 14:56:57 2011 NARUSE, Yui <naruse@ruby-lang.org>
- * file.c (rb_stat_mode): should not sign-expand, so backout.
+ * lib/net/imap.rb: use bytesize for binary strings.
+ patched by Yoshimasa Niwa. [ruby-core:34222]
-Wed Feb 4 02:12:06 2004 Tanaka Akira <akr@m17n.org>
+Fri Jan 14 14:01:12 2011 NARUSE, Yui <naruse@ruby-lang.org>
- * file.c (test_l): fix wrong method name in document.
- (test_S): ditto.
- (test_b): ditto.
- (test_c): ditto.
- (test_suid): ditto.
- (test_sgid): ditto.
- (test_sticky): ditto.
+ * pack.c (pack_unpack): the resulted string of unpack('M') must have
+ ASCII-8BIT encoding (and ENC_CODERANGE_VALID). [ruby-core:34482]
-Tue Feb 3 22:36:25 2004 Kouhei Sutou <kou@cozmixng.org>
+Fri Jan 14 13:38:58 2011 NARUSE, Yui <naruse@ruby-lang.org>
- * lib/rss/2.0.rb, lib/rss/content.rb, lib/rss/dublincore.rb,
- lib/rss/rss.rb, lib/rss/syndication.rb: removed warnings.
+ * ext/zlib/zlib.c (gzfile_check_footer): ISIZE (Input SIZE) in
+ gzip's header is the size of uncompressed input data modulo 2^32.
+ [ruby-core:34481] http://www.ietf.org/rfc/rfc1952.txt
- * lib/rss/converter.rb: removed handling load error of nkf.
+Fri Jan 14 11:36:25 2011 NAKAMURA Usaku <usa@ruby-lang.org>
- * test/rss/test_syndication.rb, test/rss/test_trackback.rb,
- test/rss/test_dublincore.rb, test/rss/test_content.rb: replaced
- 'require "rss/parser"' by 'require "rss/1.0"'.
+ * configure.in, win32/Makefile.sub (RUNRUBY): require path should
+ include "." because rbconfig.rb is there.
- * test/rss/test_parser.rb, test/rss/test_accessor.rb: removed
- 'require "rss/parser"'.
+Fri Jan 14 10:40:11 2011 Ryan Davis <ryan@lust.local>
-Tue Feb 3 11:23:17 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * gem_prelude.rb: Just require rubygems. Fixes rubygems 1.4.
+ * lib/rubygems.rb: removed all Gem::Quickloader code.
+ * ruby.c: renamed ruby_init_gems to ruby_init_prelude. Set
+ $disable_rubygems since there is no fine grained mechanism to
+ skip parts of the prelude. Open to suggestions on how to do this
+ better.
+ * test/*.rb: Load path isn't set up correctly, so add
+ --disable-gems as needed to failing tests that are explicitly
+ testing stderr w/ ==.
- * parse.y (reduce_nodes): remove tail returns. [ruby-talk:90934]
+Fri Jan 14 07:30:47 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Tue Feb 3 08:04:57 2004 Tanaka Akira <akr@m17n.org>
+ * io.c (argf_next_argv): go advance when the next file cannot be
+ read. [ruby-core:34446]
- * lib/pp.rb (Struct#pretty_print_cycle): follow 1.8 style.
+Thu Jan 13 20:49:19 2011 Tanaka Akira <akr@fsij.org>
-Mon Feb 2 22:06:31 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * vm_insnhelper.c: parenthesize macro arguments.
- * parse.y (block_append, new_evstr, void_expr0): remove no longer used
- labels.
+Thu Jan 13 13:21:00 2011 Kenta Murata <mrkn@mrkn.jp>
-Mon Feb 2 18:45:50 2004 WATANABE Hirofumi <eban@ruby-lang.org>
+ * vm_dump.c: delete dashes to make lines 80 chars, Patched by
+ Shota Fukumori (sora_h). [Bug #4275] [ruby-dev:43021]
- * dln.c (dln_load): don't specify RTLD_GLOBAL on Interix,
- because it caused SEGV when running runner.rb.
+Thu Jan 13 13:21:00 2011 Kenta Murata <mrkn@mrkn.jp>
-Mon Feb 2 01:54:00 2004 Tanaka Akira <akr@m17n.org>
+ * vm_dump.c: fix misspelling of CrashReporter, Patched by Shota
+ Fukumori (sora_h). [Bug #4275] [ruby-dev:43021]
- * lib/pp.rb (Struct#pretty_print): make it 1.8 style.
- (Numeric#pretty_print, FalseClass#pretty_print)
- (TrueClass#pretty_print, Module#pretty_print): fix pp for objects
- with instance variables. [ruby-talk:91157]
+Thu Jan 13 06:27:29 2011 Ryan Davis <ryand-ruby@zenspider.com>
- * lib/open-uri.rb (URI::Generic#find_proxy): return nil on loopback
- address.
+ * error.c: Exception#to_s should actually call to_s.
- * lib/resolv-replace.rb (BasicSocket#send): don't replace because
- it has no hostname argument.
- (IPSocket.getaddress): raise SocketError instead of
- Resolv::ResolvError for errors.
- (TCPSocket#initialize, UDPSocket#bind, UDPSocket#connect)
- (SOCKSSocket#initialize): use IPSocket.getaddress instead of
- Resolv.getaddress.
- (UDPSocket#send): recognize 3 arguments form. try all addresses on
- 4 arguments form.
+Thu Jan 13 00:32:54 2011 NARUSE, Yui <naruse@ruby-lang.org>
-Sun Feb 1 23:00:00 2004 Shigeo Kobayashi <shigek@ruby-lang.org>
+ * addr2line.c (get_nth_dirname): decrement the directory index
+ because the index specifies the index of given included_directories
+ which is separated by NUL and its index is begun from 1.
+ Note that 0 specifies the current directory of the compilation.
+ see also http://www.dwarfstd.org/doc/dwarf-2.0.0.pdf
- * ext/bigdecimal.c: Bug in BigDecimal("1e#{n}").add BigDecimal('.5'),n)
- reported and fixed by Javier Goizueta.
+Thu Jan 13 00:06:38 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
-Sun Feb 1 18:21:00 2004 Gavin Sinclair <gsinclair@soyabean.com.au>
+ * io.c (rb_f_syscall): Add warning messages. [ruby-core:34062]
- From ruby_1_8 branch:
- * lib/test/unit.rb: rearranged documentation for RDoc's sake.
- * lib/matrix.rb: improved documentation.
- * lib/net/http.rb: slight documentation formatting improvement.
+Thu Jan 13 00:00:07 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
-Sun Feb 1 05:30:06 2004 Tanaka Akira <akr@m17n.org>
+ * io.c (rb_f_syscall): Some syscall return unsigned or pointer value.
+ Therefore we should only check the result is -1 or not.
+ [ruby-core:34062]
- * lib/open-uri.rb (URI::Generic#find_proxy): warn HTTP_PROXY.
- raise an errror on non-http proxy URI.
- (OpenURI::Buffer#<<): make a tempfile binmode. [ruby-talk:90793]
+Wed Jan 12 23:55:48 2011 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
-Sun Feb 1 00:57:41 2004 Kouhei Sutou <kou@cozmixng.org>
+ * io.c (rb_f_syscall): Add 64bit Linux support. Some syscall takes
+ long type arguments.
- * lib/rss/parser.rb (RSS::Parser): added @@default_parser. Used
- XML parser became selectable.
- * test/rss/test_parser.rb: added tests for
- RSS::Parser.default_parser.
+Wed Jan 12 19:37:10 2011 Tanaka Akira <akr@fsij.org>
-Sat Jan 31 02:28:15 2004 WATANABE Hirofumi <eban@ruby-lang.org>
+ * vm_dump.c: parenthesize macro arguments.
- * configure.in (RPATHFLAG): set to -Wl,-R like NetBSD on Interix.
+Wed Jan 12 19:28:23 2011 Tanaka Akira <akr@fsij.org>
-Sat Jan 31 01:09:41 2004 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+ * vm.c (thread_free): reset ruby_current_thread if it points the
+ thread to free.
+ * gc.c (slot_sweep): don't call RUBY_VM_SET_FINALIZER_INTERRUPT if
+ there is no current thread.
+ [ruby-dev:43000]
- * lib/logger.rb: leading 0 padding of timestamp usec part.
+Wed Jan 12 19:09:29 2011 Tanaka Akira <akr@fsij.org>
-Fri Jan 30 18:53:23 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * enum.c (sort_by_i): reenter check more strictly.
+ (sort_by_cmp): ditto.
+ [ruby-dev:43003] reported by Usaku NAKAMURA.
- * re.c (KR_REHASH): wrong hash value on sizeof(long) > sizeof(int).
+Wed Jan 12 16:25:12 2011 Yuki Sonoda (Yugui) <yugui@yugui.jp>
-Thu Jan 29 23:11:57 2004 WATANABE Hirofumi <eban@ruby-lang.org>
+ * lib/net/http.rb (Net::HTTP#connect): makes it timeout during
+ SSL handshake too. [ruby-core:34203]
+ Patch by Marc Slemko.
- * configure.in (DLEXT2): removed. Ruby does not treat
- ".dll" as a extension library anymore.
+ * test/net/http/test_http.rb (TestNetHTTP_v1_2#test_timeout_during_HTTP_session):
+ test for [ruby-core:34203]
- * bcc32/Makefile.sub, win32/Makefile.sub, wince/Makefile.sub (DLEXT2):
+ * test/net/http/test_https.rb (TestNetHTTPS#test_timeout_during_SSL_handshake):
ditto.
- * util.c (mblen): fix overrun. [ruby-dev:22672]
-
-Thu Jan 29 22:41:53 2004 Dave Thomas <dave@pragprog.com>
-
- * lib/rdoc/generators/html_generator.rb: Allow 'link:' in Tidylinks.
- THis means you can write "see f1[link:files/f1_rb.html]".
-
-Thu Jan 29 22:24:47 2004 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
-
- * sample/openssl/gen_csr.rb: follow OpenSSL::X509::Name change.
- ASN.1 type of subject DN elements were wrong.
-
-Thu Jan 29 22:19:51 2004 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
-
- * test/*: remove $: trick. [ruby-dev:22763] use test/runner.rb to
- run test.
-
-Thu Jan 29 19:28:16 2004 Minero Aoki <aamine@loveruby.net>
-
- * lib/net/http.rb (Request#initialize): reject only when a path is
- empty. [ruby-dev:22771]
-
-Thu Jan 29 18:54:08 2004 H.Yamamoto <ocean@m2.ccsnet.ne.jp>
-
- * dir.c (glob_helper): infinite loop bug in win32 code.
- [ruby-dev:22770]
-
-Thu Jan 29 17:03:49 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * dir.c: merge tuning from H.Yamamoto <ocean@m2.ccsnet.ne.jp>.
- [ruby-dev:22761]
-
-Thu Jan 29 11:32:14 2004 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
-
- * test/rss/test_*: do $: trick while searching a module in the current
- directory.
-
- * test/xsd/test_xmlschemaparser.rb, test/wsdl/test_emptycomplextype.rb,
- test/soap/helloworld/test_helloworld.rb,
- test/soap/calc/{test_calc.rb,test_calc2.rb}: do File.expand_path
- before using __FILE__.
-
- * test/yaml/test_yaml.rb: assert_equals -> assert_equal.
-
-Thu Jan 29 01:56:02 2004 why the lucky stiff <why@ruby-lang.org>
-
- * ext/syck/rubyext.c: usec round-tripping skew. [ruby-core:2305]
-
- * lib/yaml/rubytypes.rb: character Range now round-trips. [ruby-core:2306]
-
- * test/yaml/test_yaml.rb: add Time and Range tests.
-
-Thu Jan 29 00:00:46 2004 Kouhei Sutou <kou@cozmixng.org>
-
- * lib/rss: rss/parser.rb is always required.
-
-Wed Jan 28 15:09:14 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * test/rss/*.rb: remove "test/" prefix.
-
-Wed Jan 28 13:07:02 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/iconv/extconf.rb: include iconv.h for libiconv. [ruby-dev:22715]
-
-Wed Jan 28 12:43:07 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/rss: rss library imported. [ruby-dev:22726]
-
-Wed Jan 28 04:29:41 2004 Eric Schwartz <emschwar@fc.hp.com>
-
- * lib/cgi/session.rb: use LOCK_SH to read, and a few other
- improvements. [ruby-core:02328]
-
-Tue Jan 27 15:00:14 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * misc/ruby-mode.el: better support for general delimited
- strings. [ruby-dev:22695]
-
-Tue Jan 27 11:04:40 2004 FUKUMOTO Atsushi <fukumoto@nospam.imasy.or.jp>
-
- * ext/socket/socket.c (s_recvfrom): sending length should be an
- invariant while retrying on EAGAIN. [ruby-talk:89962]
-
-Tue Jan 27 10:31:28 2004 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * ext/win32ole/win32ole.c (set_argv): fix condition.
-
-Tue Jan 27 02:26:31 2004 GOTOU Yuuzou <gotoyuzo@notwork.org>
-
- * lib/webrick/httputils.rb (WEBrick:HTTPUtils::parse_header):
- refine regex for header-name.
-
-Mon Jan 26 22:53:04 2004 Dave Thomas <dave@pragprog.com>
-
- * io.c: Remove documentation references to $defout.
-
-Mon Jan 26 14:41:46 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/weakref.rb (WeakRef::initialize): set up @__id before
- calling "super".
-
- * lib/delegate.rb (Delegator::initialize): preserve
- singleton_method_added method [ruby-dev:22685]
-
- * lib/delegate.rb (Delegator::initialize): use Kernel::raise
- instead of mere raise. [ruby-dev:22681]
-
-Mon Jan 26 12:45:23 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tcltklib/tcltklib.c: define CONST84 when TCL_MAJOR_VERSION == 7
-
-Mon Jan 26 11:30:58 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/extmk.rb: Makefiles should depend on also rbconfig.rb.
- (ruby-bugs:PR#1256)
-
- * ext/win32ole/win32ole.c (set_argv): set real arguments to
- WIN32OLE::ARGV. [ruby-list:39073]
-
-Sun Jan 25 18:25:26 2004 GOTOU Yuuzou <gotoyuzo@notwork.org>
-
- * ext/openssl/ossl_x509name.c (ossl_x509name_add_entry): third
- argument become optional.
-
- * ext/openssl/ossl_x509name.c (ossl_x509name_initialize): ditto.
-
- * ext/openssl/ossl_x509name.c (Init_x509name): emailAddress and
- domainComponent should be IA5String.
-
-Sun Jan 25 01:45:38 2004 GOTOU Yuuzou <gotoyuzo@notwork.org>
-
- * lib/webrick/httpserver.rb (WEBrick::HTTPServer#run): support
- virtual host.
-
- * lib/webrick/httpserver.rb (WEBrick::HTTPServer#virtual_host): add
- new method to register virtual hosting server.
-
- * lib/webrick/httpserver.rb (WEBrick::HTTPServer#lookup_server): add
- new method to lookup virtual hosting server.
-
-Sat Jan 24 13:06:26 2004 GOTOU Yuuzou <gotoyuzo@notwork.org>
-
- * ext/openssl/ossl_x509hame.c (ossl_x509name_initialize): change
- second argument. it expected to be a Hash not an Integer.
-
- * ext/openssl/ossl_x509name.c (ossl_x509name_add_entry): add new
- function for OpenSSL::X509::Name#add_entry.
-
- * ext/openssl/ossl_x509name.c (Init_ossl_x509name): add constants
- OpenSSL::X509::Name::DEFAULT_OBJECT_TYPE and OBJECT_TYPE_TEMPLATE.
-
- * ext/openssl/lib/openssl/x509.rb (OpenSSL::X509::Name#initialize):
- second argument takes OBJECT_TYPE_TEMPLATE by default.
-
-Fri Jan 23 02:26:30 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * pack.c (num2i32): pack should not raise RangeError.
- [ruby-dev:22654]
-
- * pack.c (pack_pack): do not auto convert nil to zero.
-
-Thu Jan 22 22:54:53 2004 Shugo Maeda <shugo@ruby-lang.org>
-
- * lib/net/imap.rb (BEG_REGEXP): allow 8-bit characters in quoted
- strings for Novell GroupWise Internet Agent.
-
- * lib/net/imap.rb (DATA_REGEXP): ditto.
-
-Thu Jan 22 18:35:49 2004 WATANABE Hirofumi <eban@ruby-lang.org>
-
- * lib/e2mmap.rb (VERSION): remove unnecessary version checking.
-
-Thu Jan 22 16:21:02 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * parse.y (string_content): reset lexical states at the beginning of
- string contents. [ruby-list:39061]
-
-Thu Jan 22 08:08:50 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * parse.y (opt_rescue): use NODE_ERRINFO() instead of
- NODE_GVAR("$!"), to avoid confusion from variable aliasing.
- [ruby-talk:90074]
-
- * version.c (Init_version): remove obsolete constants VERSION
- etc. [ruby-dev:22643]
-
-Thu Jan 22 01:46:32 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * parse.y (newline_node): do not use NODE_NEWLINE node anymore,
- use NEWLINE flag instead.
-
-Thu Jan 22 01:12:12 2004 Siena. <siena@faculty.chiba-u.jp>
-
- * missing/os2.c (chdir, getcwd):
- use _chdir2 and _getcwd2 supporting multiple drives in OS/2 with EMX.
-
-Thu Jan 22 00:33:52 2004 Siena. <siena@faculty.chiba-u.jp>
-
- * configure.in: check availability of link(). [ruby-dev:22237]
- * file.c (rb_file_s_link): raise an exception when link() is unavailable.
- * missing/os2.c (link): removed. File#link isn't supported.
- * bcc32/Makefile.sub: define HAVE_LINK to enable link(). [ruby-dev:22241]
- * win32/Makefile.sub: ditto.
-
-Thu Jan 22 00:26:25 2004 Siena. <siena@faculty.chiba-u.jp>
-
- * ChangeLog: typo: RUBY_MBCHAR_MAX was RUBY_MBCHAR_MAXSIZE.
+Wed Jan 12 16:24:53 2011 Yuki Sonoda (Yugui) <yugui@yugui.jp>
-Thu Jan 22 00:12:51 2004 Siena. <siena@faculty.chiba-u.jp>
+ * ext/readline/extconf.rb: new checks for RL_PROMPT_START_IGNORE
+ and RL_PROMPT_END_IGNORE. [ruby-core:34331]
- * defines.h: define RUBY_MBCHAR_MAX instead of MB_CUR_MAX.
- * dir.c (Next, emx_mblen): use RUBY_MBCHAR_MAX for mblen().
- * file.c (CharNext): ditto.
- * ruby.c (translate_char): ditto.
- * util.c (__crt0_glob_function): ditto.
+ * ext/readline/readline.c: enables USE_INSERT_IGNORE_ESCAPE only if
+ RL_PROMPT_{START,END}_IGNORE are available to get rid of compilation
+ error with libedit.
-Thu Jan 22 00:10:01 2004 Dave Thomas <dave@pragprog.com>
+Wed Jan 12 15:53:49 2011 NAKAMURA Usaku <usa@ruby-lang.org>
- * lib/base64.rb: :nodoc: the Deprecated module
+ * README.EXT.ja (rb_ensure): typo.
-Wed Jan 21 23:52:39 2004 WATANABE Hirofumi <eban@ruby-lang.org>
+Wed Jan 12 11:33:46 2011 NARUSE, Yui <naruse@ruby-lang.org>
- * configure.in: Interix(SFU) support.
+ * addr2line.c: OpenBSD uses the elf_abi.h header file instead of the
+ elf.h header file. patched by Jeremy Evans [ruby-core:34384]
-Wed Jan 21 23:03:45 2004 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
+Wed Jan 12 03:59:36 2011 NARUSE, Yui <naruse@ruby-lang.org>
- * lib/drb/drb.rb: remove O_NONBLOCK, thanks \ay
- * lib/drb/extserv.rb: typo
+ * test/webrick/test_cgi.rb: Removes usage of deprecated
+ :RequestHandler option.
+ patched by Peter Weldon [ruby-core:34010]
-Wed Jan 21 17:57:56 2004 Shugo Maeda <shugo@ruby-lang.org>
+ * test/webrick/test_httpproxy.rb: ditto.
- * lib/net/imap.rb (envelope): allow NIL.
- * lib/net/imap.rb (body): ditto.
- * lib/net/imap.rb (number): ditto.
- * lib/net/imap.rb (ensure_nz_number): show a detailed error
- message.
+ * test/webrick/test_httpserver.rb: Add a test of the deprecation
+ behaviour.
-Wed Jan 21 16:44:15 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Wed Jan 12 08:37:07 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * lib/mkmf.rb (merge_libs): squeeze successive same libraries.
- [ruby-dev:22652]
+ * hash.c (hash_i): return different values for inverse hash.
+ [ruby-core:34334]
-Wed Jan 21 16:10:36 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Tue Jan 11 20:32:59 2011 Tanaka Akira <akr@fsij.org>
- * lib/base64.rb: enclosed in a module. [ruby-core:02285]
+ * variable.c: parenthesize macro arguments.
-Wed Jan 21 16:01:26 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Tue Jan 11 13:06:38 2011 NAKAMURA Usaku <usa@ruby-lang.org>
- * ext/digest/rmd160/extconf.rb: have_library appends found library.
+ * array.c (rb_ary_resize): should care of embeded array when extending
+ the array.
-Wed Jan 21 11:36:00 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * array.c (rb_ary_resize): need to set capa when changing the real
+ size of the array.
+ these are latent bugs.
- * ext/socket/socket.c (sock_gethostbyname): returns host if
- ai_canonname is NULL. (ruby-bugs PR#1243)
+Mon Jan 10 22:46:43 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * parse.y (block_append): update nd_end for "real" head node.
- [ruby-list:39058]
+ * include/ruby/defines.h (CASEFOLD_FILESYSTEM): HFS+ is case
+ insensitive.
-Tue Jan 20 14:48:28 2004 GOTOU Yuuzou <gotoyuzo@notwork.org>
+ * load.c (loaded_feature_path, rb_feature_p, load_lock): on a
+ case-insensitive filesystem, loaded features search should
+ ignore case. [ruby-core:34297]
- * ext/openssl/extconf.rb: should check <openssl/conf_api.h> instead
- of OPENSSL_VERSION_NUMBER. [ruby-list:39056]
+Mon Jan 10 21:34:12 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Tue Jan 20 14:43:17 2004 Dave Thomas <dave@pragprog.com>
+ * common.mk (showflags): show LD commands.
- * lib/base64.rb: Add RDoc
+Mon Jan 10 14:32:55 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Tue Jan 20 14:25:51 2004 Dave Thomas <dave@pragprog.com>
+ * test/ruby/test_method.rb (TestMethod#test_define_method): method
+ transplanting between class and module is impossible.
- * lib/abbrev.rb: Add RDoc
+Mon Jan 10 13:51:17 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Tue Jan 20 13:22:39 2004 Dave Thomas <dave@pragprog.com>
+ * misc/rdoc-mode.el (rdoc-mode): show trailing whitespace.
- * lib/rdoc/generators/html_generator.rb: Document aliases at
- top-most level.
+Mon Jan 10 11:22:02 2011 Tanaka Akira <akr@fsij.org>
- * lib/English.rb: Document English.rb.
+ * util.c: parenthesize macro arguments.
-Tue Jan 20 04:41:58 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Mon Jan 10 07:41:31 2011 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
- * test/ruby/test_marshal.rb (MarshalTestLib::test_exception): test
- for [ruby-dev:22604].
+ * misc/README: mention rdoc-mode.el and ruby-style.el.
- * test/ruby/test_marshal.rb (MarshalTestLibtest_singleton): test
- for [ruby-dev:22588].
+Sun Jan 9 20:37:21 2011 Tanaka Akira <akr@fsij.org>
-Tue Jan 20 02:38:13 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * transcode.c: parenthesize macro arguments.
- * marshal.c (w_class): should not dump singleton class.
- [ruby-dev:22631]
+Sun Jan 9 16:31:53 2011 Yuki Sonoda (Yugui) <yugui@yugui.jp>
-Tue Jan 20 02:49:22 2004 GOTOU Yuuzou <gotoyuzo@notwork.org>
+ * io.c (Kernel.#syscall): implemented on LP64/LLP64 environments too.
+ also uses __syscall if available for *BSD on 64bit architecture.
+ [ruby-core:34062]
- * ext/openssl/extconf.rb: add check for OpenSSL version.
- [ruby-list:39054]
+Sun Jan 9 16:31:34 2011 Yuki Sonoda (Yugui) <yugui@yugui.jp>
-Mon Jan 19 23:56:20 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * error.c (name_err_mesg_to_str): inverted condition for result of
- inspection. [ruby-dev:22628]
-
-Mon Jan 19 22:24:28 2004 WATANABE Hirofumi <eban@ruby-lang.org>
-
- * sample/exyacc.rb: escape '}' to avoid warning.
-
- * lib/rdoc/parsers/parse_c.rb: escape '{' and '}' to avoid warnings.
-
-Mon Jan 19 21:28:06 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/digest/defs.h, win32/win3.c, win32/win32.h, file.c: remove
- useless casts for Borland C.
-
-Mon Jan 19 17:39:38 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * error.c (NameError::message): internal use only.
-
- * eval.c (rb_method_missing): use hidden constant.
-
-Mon Jan 19 16:30:53 2004 akira yamada <akira@ruby-lang.org>
-
- * test/ruby/test_time.rb: added tests for [ruby-dev:22614] and
- [ruby-dev:22617].
-
-Mon Jan 19 13:09:21 2004 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * ext/extmk.rb, win32/Makefile.sub, win32/configure.bat,
- win32/setup.mak: --with-static-linked-ext support on mswin32.
-
-Mon Jan 19 06:49:07 2004 Tadayoshi Funaba <tadf@dotrb.org>
-
- * lib/date.rb: zone was wrong when it was behind UTC.
- Thanks Mark J. Reed.
-
- * lib/date/format.rb: %z is now always replaced by four digits
- with a leading plus or minus sign.
-
- * sample/cal.rb: added a class, anyway.
-
-Mon Jan 19 01:08:39 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * class.c, error.c, eval.c, intern.h, object.c, variable.c:
- do not set path if it is a singleton class. [ruby-dev:22588]
-
- * lib/cgi.rb (CGI::QueryExtension): give extended string, not a
- delegater object.
-
-Sun Jan 18 23:59:44 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/iconv/charset_alias.rb: prefer us_EN locale encodings or
- former. [ruby-dev:22609]
-
- * ext/iconv/iconv.c (iconv_create): raise InvalidEncoding
- exception when EINVAL.
-
-Sun Jan 18 23:16:34 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * class.c, error.c, file.c, io.c, numeric.c, object.c, re.c, struct.c,
- time.c: marked init_copy functions nodoc.
-
-Sun Jan 18 20:47:35 2004 WATANABE Hirofumi <eban@ruby-lang.org>
-
- * ruby.c: use translate_char() on Cygwin.
-
-Sun Jan 18 20:00:16 2004 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
-
- * lib/soap/wsdlDriver.rb, lib/wsdl/soap/operation.rb: add support of
- "parts" attribute of soap:body element in WSDL.
-
- * lib/wsdl/xmlSchema/schema.rb: friendly warning message for
- simpleType element which is not supported for now.
-
- * test/wsdl/soap/{soapbodyparts.wsdl,test_soapbodyparts.wsdl}: new
- files.
-
-Sun Jan 18 16:46:48 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * time.c (time_overflow_p): should return results. [ruby-dev:22614]
-
-Sun Jan 18 12:07:24 2004 Siena. <siena@faculty.chiba-u.jp>
-
- * test/ruby/test_time.rb: new test case to test Time#[+-].
-
- * time.c (time_plus, time_minus): fix RangeError for a negative
- argument in environments whose time_t is unsigned. [ruby-dev:22608]
-
-Sun Jan 18 02:33:26 2004 WATANABE Hirofumi <eban@ruby-lang.org>
-
- * defines.h (_WIN32): undef _WIN32 on Cygwin before defining DOSISH.
-
-Sun Jan 18 00:23:55 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * marshal.c (class2path): check anonymous class/module before
- checking referable, and allow singleton classes.
-
-Sat Jan 17 23:58:51 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * error.c (NameError::Message): new class for lazy evaluation of
- message to ensure replaced before marshalling. [ruby-dev:22604]
-
- * eval.c (rb_method_missing): use NameError::Message.
-
-Sat Jan 17 21:49:50 2004 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * lib/time.rb (test_rfc2822, test_rfc3339, test_encode_xmlschema):
- should not expect that all platforms handle negative time_t value.
-
-Fri Jan 16 23:53:09 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * eval.c (proc_eq): compare also arguments and environment
- (including local variables). [ruby-dev:22590]
-
-Fri Jan 16 14:33:35 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * marshal.c (class2path): get class path and check referable.
- [ruby-dev:22588]
-
-Thu Jan 15 12:58:26 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * io.c (argf_read): do not append EOF. (ruby-bugs-ja:PR#585)
-
- * io.c (rb_io_fwrite): ad-hockery hack to get rid of HP-UX stdio
- weird behavior. [ruby-dev:22424]
-
-Wed Jan 14 21:13:06 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * test/inlinetest.rb (InlineTest::eval_part): eval under the top
- level environment.
-
-Wed Jan 14 17:54:17 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * test/inlinetest.rb (InlineTest::loadtest): require instead of
- load, to get rid of multiple loading.
-
-Wed Jan 14 13:30:52 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/iconv/extconf.rb: wrapper iconv.rb is dependent on platform.
-
-Wed Jan 14 09:32:02 2004 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * MANIFEST: add test/net/test_httpheader.rb. (commit miss?)
-
-Wed Jan 14 00:58:35 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * eval.c (Init_Proc): move SystemStackError from under
- StandardError to Exception. [ruby-talk:89782]
-
-Tue Jan 13 18:03:02 2004 Ian Macdonald <ian@caliban.org>
-
- * file.c (rb_stat_wr, rb_stat_ww): New functions
- implementing new methods (File::Stat#world_readable?,
- File::Stat#world_writable?).
-
-Tue Jan 13 16:53:25 2004 why the lucky stiff <why@ruby-lang.org>
-
- * ext/syck/rubyext.c: omission of Date library code caused
- test suite failure. [ruby-core:2251]
-
-Tue Jan 13 16:50:03 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/lib/tk.rb: use $0 as the default application class name.
-
-Tue Jan 13 14:48:00 2004 Ian Macdonald <ian@caliban.org>
-
- * lib/pathname.rb: New methods (Pathname#world_readable?,
- Pathname#world_writable?).
+ * lib/irb/locale.rb (IRB::Locale::LOCALE_NAME_RE):
+ some platform has a locale without territory but with
+ encoding.
+ (#each_sub_locale): ditto.
-Tue Jan 13 14:48:01 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+Sun Jan 9 14:47:50 2011 TAKAO Kouji <kouji@takao7.net>
- * parse.y (primary): allow no "when" case. [ruby-dev:22578]
+ * ext/readline/readline.c: apply a patch from Nobuyoshi Nakada.
+ fixed #3616 [ruby-core:31484] IRB + readline incorrectly counts
+ non-printing characters in prompt
- * ruby.h (rb_class_of): reduce branch. [ruby-dev:22577]
+Sat Jan 8 21:47:26 2011 Tanaka Akira <akr@fsij.org>
- * ruby.h (rb_type): ditto.
+ * enum.c (enum_sort_by): use rb_ary_resize.
+ (ary_cutoff): removed.
-Tue Jan 13 14:26:59 2004 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
+Sat Jan 8 21:24:17 2011 Tanaka Akira <akr@fsij.org>
- * lib/test/unit/ui/testrunnerutilities.rb (TestRunnerUtilities):
- moved run method which allows output level. [ruby-dev:22554]
+ * pack.c (swapf): compilation condition simplified.
+ (swapd): ditto.
-Tue Jan 13 13:04:24 2004 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+Sat Jan 8 20:51:25 2011 Tanaka Akira <akr@fsij.org>
- * test/test_*.rb: Pathname#parent -> Pathname#dirname.
+ * pack.c (swapd): remove duplicated code.
-Tue Jan 13 11:38:58 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Sat Jan 8 19:28:55 2011 Tanaka Akira <akr@fsij.org>
- * test/yaml/test_yaml.rb (YAML_Unit_Tests::test_spec_type_{int,float}):
- fix syntax error.
+ * thread.c: parenthesize macro arguments.
-Tue Jan 13 07:52:40 2004 why the lucky stiff <why@ruby-lang.org>
+Fri Jan 7 23:07:40 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * ext/syck/bytecode.c: turn off default implicit typing.
+ * lib/mkmf.rb (configuration): backref needs to capture.
- * ext/syck/implicit.c: detect base60 integers.
+Fri Jan 7 21:57:22 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * ext/syck/rubyext.c: handle base60, as well as hex and octal
- with commas. implicit typing of ruby symbols.
+ * misc/ruby-mode.el (ruby-mode-variables), misc/ruby-style.el:
+ show trailing whitespace.
- * test/yaml/test_yaml.rb: add test.
+ * misc/ruby-mode.el (ruby-font-lock-syntactic-keywords): highlight
+ regexp after open bracket. [ruby-core:34183]
-Tue Jan 13 04:29:52 2004 Dave Thomas <dave@pragprog.com>
+Fri Jan 7 00:37:35 2011 Tanaka Akira <akr@fsij.org>
- * lib/rdoc/ri/ri_driver.rb (RiDriver::report_method_stuff):
- Show fully-qualified class names in class list.
+ * string.c: parenthesize macro arguments.
-Tue Jan 13 01:24:17 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+Thu Jan 6 22:42:02 2011 Yukihiro Matsumoto <matz@ruby-lang.org>
- * file.c (test_wr): Rdoc fix. [ruby-core:02225]
+ * bignum.c (bigmul1_karatsuba): avoid overflow that make assertion
+ fail in certain case. this patch is contributed from Ray Chason
+ <chasonr at gmail.com> in personal communication.
-Tue Jan 13 01:04:37 2004 Dave Thomas <dave@pragprog.com>
+Thu Jan 6 20:55:49 2011 NAKAMURA Usaku <usa@ruby-lang.org>
- * lib/rdoc/ri/ri_paths.rb (RI::Paths): First attempt at
- incorporating DESTDIR in the rdoc installation.
+ * lib/mkmf.rb (create_makefile): ignore rest from first dot from
+ TARGET to generate init function name.
+ this is followup of r30464.
-Mon Jan 12 23:26:21 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Thu Jan 6 11:27:01 2011 Aaron Patterson <aaron@tenderlovemaking.com>
- * parse.y (primary): fix position after FCALL. [ruby-dev:22574]
+ * ext/psych/lib/psych/json/tree_builder.rb (start_mapping): tags
+ should not be included in JSON mapping
-Mon Jan 12 18:00:11 2004 Ian Macdonald <ian@caliban.org>
+Thu Jan 6 09:23:33 2011 Aaron Patterson <aaron@tenderlovemaking.com>
- * file.c (test_wr, test_ww): New functions implementing new
- methods (File::world_readable?, File::world_writable?).
+ * lib/net/protocol.rb (eof?): BufferedIO should proxy eof? to the
+ underlying IO object.
- * file.c (S_IRUGO, S_IGUGO): New macros.
+Thu Jan 6 09:12:31 2011 Aaron Patterson <aaron@tenderlovemaking.com>
-Mon Jan 12 12:07:22 2004 Dave Thomas <dave@pragprog.com>
+ * lib/mkmf.rb (configuration): fixing gsub when multiple error flags
+ are passed to GCC.
- * lib/rdoc/parsers/parse_c.rb (RDoc::C_Parser::do_methods):
- Someone changed the "// in eval.c" comments to "/*...*/" style,
- so the parsing of the source file name broke.
+Thu Jan 6 05:25:49 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * object.c: Remove spurious space in TrueClass documentation.
+ * array.c (rb_ary_modify): export.
- * lib/rdoc/parsers/parse_c.rb (RDoc::C_Parser::find_body): Fix
- bad regexp: if the code before a documented method contained
- a comment that wasn't terminated by whitespace, that comment
- and all intervening code was included in the following
- method's documentation.
+Thu Jan 6 05:14:41 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * lib/rdoc/ri/ri_formatter.rb (RI::HtmlFormatter::break_to_newline):
- HTML formats need explicit line breaks.
+ * ext/stringio/stringio.c (get_strio, strio_set_string)
+ (strio_reopen): check if frozen. [ruby-core:33648]
-Mon Jan 12 02:24:07 2004 Dave Thomas <dave@pragprog.com>
+Thu Jan 6 05:10:58 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * lib/rdoc/ri/ri_formatter.rb (RI::HtmlFormatter): Add HTML
- generation support to ri (Elliot Hughes)
+ * array.c (rb_ary_resize): new utility function. [ruby-dev:42912]
-Sun Jan 11 23:54:41 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Thu Jan 6 05:03:26 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * env.h (ruby_frame, ruby_scope, ruby_in_eval, ruby_class,
- ruby_dyna_vars): export. [ruby-dev:22566]
+ * dln.c (init_funcname_len): ignore rest from first dot.
+ [ruby-dev:41774]
-Sun Jan 11 02:35:53 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+Thu Jan 6 02:55:48 2011 Aaron Patterson <aaron@tenderlovemaking.com>
- * ext/socket/socket.c (make_hostent): a bug in brace position.
+ * ext/psych/lib/psych/visitors/yaml_tree.rb: use YAML 1.0 output
+ format for serializing nil values. Thanks Eric Hodel!
- * configure.in: install rdoc by default. if you do not want to
- install rdoc, specify --disable-install-doc.
+ * test/psych/test_nil.rb: test for nil values
-Sun Jan 11 02:07:47 2004 Dave Thomas <dave@pragprog.com>
+Wed Jan 5 14:21:34 2011 Mark Dodwell <hi@mkdynamic.co.uk>
- * lib/rdoc/ri/ri_options.rb (RI::Options::OptionList::OptionList):
- Also accept command line options via the 'RI' environment variable.
+ * string.c: fix rdoc typo.
+ https://github.com/shyouhei/ruby/pull/3
-Sat Jan 10 21:27:41 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+Wed Jan 5 14:06:01 2011 NAKAMURA Usaku <usa@ruby-lang.org>
- * eval.c (eval): need to add message delimiter. [ruby-dev:22561]
+ * test/rdoc/test_rdoc_options.rb (TestRDocOptions#test_check_files):
+ skip on Windows because chmod 0 doesn't mean unreadable by owner.
-Sat Jan 10 01:54:50 2004 Eric Sunshine <sunshine@sunshineco.com>
+Wed Jan 5 13:56:54 2011 Akinori MUSHA <knu@iDaemons.org>
- * defines.h (__NeXT__): Ensure that all standard S_IRUSR, S_IWGRP,
- S_IRWXO, etc. macros are defined since future code might require
- them (even though present code only requires a subset).
+ * lib/net/http.rb (Net::HTTP#get): A header hash given should not
+ be modified.
- * defines.h (__NeXT__): Bug fix: WORDS_BIGENDIAN was not being set
- correctly on Rhapsody when -arch compiler flag was used (via
- configure's --enable-fat-binary option).
+Wed Jan 5 12:10:08 2011 Aaron Patterson <aaron@tenderlovemaking.com>
-Sat Jan 10 23:01:41 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * ext/dl/{cfunc.c,dl.h,handle.c}, ext/fiddle/fiddle.{h,c}: Use _WIN32
+ rather than checking for windows.h. Thanks Jon Forums!
+ [ruby-core:33977]
- * configure.in (LIBPATHFLAG, RPATHFLAG): enclose paths with single
- quotes. [ruby-dev:22564]
+Sat Jan 1 17:02:50 2011 Yuki Sonoda (Yugui) <yugui@yugui.jp>
- * lib/mkmf.rb (libpathflag): do not enclose with quotes always.
+ * lib/irb/locale.rb (IRB::Locale#search_file): make it possible
+ to load a localization from a gem.
+ (IRB::Locale#lc_path): obsoleted because of the change of #search_file
+ (IRB::Locale#each_localized_path): new private method, based on
+ lc_path
+ (IRB::Locale#find): follows the change of #search_file.
+ (IRB::Locale#load): removed duplicate with #find.
- * {bcc32,win32,wince}/Makefile.sub (LIBPATHFLAG): quoted.
+Sat Jan 1 11:44:42 2011 Tanaka Akira <akr@fsij.org>
-Sat Jan 10 22:46:18 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * strftime.c: parenthesize macro arguments.
- * dir.c (dir_inspect): new method, Dir#inspect. [ruby-dev:22562]
+Sat Jan 1 11:10:29 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Fri Jan 9 17:36:51 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * ext/zlib/zlib.c: take care of platforms where long is bigger
+ than int.
- * ext/socket/socket.c (make_hostent): getaddrinfo(3) on BSD do not
- fill ai_canonname if serv is not supplied. (ruby-bugs PR#1243)
+Sat Jan 1 11:03:58 2011 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Fri Jan 9 13:14:59 2004 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+ * NEWS (optparse): shell completion support.
- * lib/test/unit/collector/dir.rb: do not ignore exceptions(LoadError
- and SystemExitError) while loading a testcase. smell of bug.
+ * misc/README (rb_optparse.{bash,zsh}): for shell completion.
- * test/testunit/collector/test_dir.rb: add new test of the LoadError.
+ * include/ruby/intern.h (VALUE rb_ary_print_on): I have never seen
+ this function anywhere.
- * test/drb/{test_drbssl.rb,test_drbunix.rb}: do not define testcase if
- openssl is not installed.
+Sat Jan 1 04:20:11 2011 NARUSE, Yui <naruse@ruby-lang.org>
- * test/testunit/collector/test_dir.rb: assert_raises -> assert_raise.
+ * win32/win32.c (rb_w32_write_console): don't raise exception when
+ the conversion is for writing to console.
+ Patched by Heesob Park [ruby-core:33999]
-Fri Jan 9 11:52:16 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Fri Dec 31 12:02:06 2010 Tanaka Akira <akr@fsij.org>
- * rubysig.h: <errno.h> is needed to use errno which may be a macro.
+ * enum.c (enum_sort_by): use less temporary objects.
-Fri Jan 9 11:20:24 2004 Siena. <siena@faculty.chiba-u.jp>
+Fri Dec 31 11:46:47 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * ext/extmk.rb (extmake): should not reduce necessary libraries.
- [ruby-dev:22440]
+ * configure.in (warnflags), lib/mkmf.rb (configuration): turn
+ warnings into errors only for bundled extensions.
+ [ruby-core:33815]
- * lib/mkmf.rb (merge_libs): merge libraries according to
- dependency.
+Fri Dec 31 11:15:57 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Fri Jan 9 10:05:23 2004 Siena. <siena@faculty.chiba-u.jp>
+ * ext/zlib/zlib.c (sizeof): zlib.h mistakenly assumes the result
+ of sizeof to be int, not size_t.
- * lib/mkmf.rb (libpathflag): use single quotes. [ruby-dev:22440]
+Fri Dec 31 10:27:34 2010 Tanaka Akira <akr@fsij.org>
-Thu Jan 8 23:49:21 2004 WATANABE Hirofumi <eban@ruby-lang.org>
+ * st.c: parenthesize macro arguments.
- * configure.in (RDOCTARGET): new macro. if you want to install
- rdoc documentation, you need to run configure with
- --enable-install-doc.
+Fri Dec 31 03:23:26 2010 NARUSE, Yui <naruse@ruby-lang.org>
-Thu Jan 8 21:17:43 2004 GOTOU Yuuzou <gotoyuzo@notwork.org>
+ * vsnprintf.c (BSD__uqtoa): Fix overflow when long != quad_t.
+ patched by Peter Weldon <peter.weldon AT null.net>
+ [ruby-core:33985]
- * ext/openssl/ossl_pkey.c (ossl_pkey_to_der): removed; it returns
- public key only.
+Fri Dec 31 03:00:34 2010 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
- * ext/openssl/ossl_pkey_dh.c (ossl_dh_to_der): new function for
- OpenSSL::PKey::DH#to_der.
+ * Makefile.in: remove unnecessary semicolons.
- * ext/openssl/ossl_pkey_dsa.c (ossl_dsa_to_der): new function for
- OpenSSL::PKey::DSA#to_der.
+Thu Dec 30 23:09:47 2010 wanabe <s.wanabe@gmail.com>
- * ext/openssl/ossl_pkey_rsa.c (ossl_rsa_to_der): new function for
- OpenSSL::PKey::RSA#to_der.
+ * vm.c (vm_define_method): guard iseq from GC while method definition.
+ [ruby-dev:42832]
-Thu Jan 8 18:25:29 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Thu Dec 30 20:18:32 2010 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * dir.c (glob_helper): should not recurse in exceptional status.
+ * win32/Makefile.sub: ditto.
-Thu Jan 8 16:51:04 2004 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+Thu Dec 30 20:57:09 2010 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * test/wsdl/datetime/test_datetime.rb: fixed a stupid testcase which
- dumps "E" at month-end.
+ * Makefile.in: Check V=1 argument if run "make clean" or similar.
-Thu Jan 8 11:20:01 2004 WATANABE Hirofumi <eban@ruby-lang.org>
+Thu Dec 30 20:41:50 2010 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * eval.c, object.c, process.c, re.c: don't use C++ style comments.
+ * Makefile.in: Kill ugly line continuation.
-Thu Jan 8 08:46:14 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Thu Dec 30 11:49:40 2010 Tanaka Akira <akr@fsij.org>
- * ext/syck/rubyext.c (yaml_org_handler): lazy-load Date for
- static-ext.
+ * sprintf.c: parenthesize macro arguments.
-Thu Jan 8 07:06:30 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Wed Dec 29 21:20:13 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * ext/extmk.rb: preserve order in Setup. [ruby-dev:22503]
+ * io.c (maygvl_copy_stream_wait_readwrite): define if USE_SENDFILE
- * ext/extmk.rb: move dependent libraries just after depended
- libraries.
+Wed Dec 29 20:37:43 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * ext/digest/*/extconf.rb: depend on digest.
+ * ext/extmk.rb: strip current directory prefix.
-Thu Jan 8 04:36:17 2004 GOTOU Yuuzou <gotoyuzo@notwork.org>
+ * enc/depend (clean): remove name2ctype.h when out-of-place build.
- * lib/webrick/cgi.rb (WEBrick::CGI#initialize): should create
- @config[:Logger] if it was not given.
+ * win32/Makefile.sub (clean-enc): pass V to inferior make.
-Wed Jan 7 22:28:12 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Wed Dec 29 18:23:46 2010 NAKAMURA Usaku <usa@ruby-lang.org>
- * dir.c (glob_helper): fix memory leak.
+ * re.c (rb_reg_expr_str): need to escape if the coderange is invalid.
-Wed Jan 7 21:15:07 2004 GOTOU Yuuzou <gotoyuzo@notwork.org>
+Wed Dec 29 10:06:51 2010 Tanaka Akira <akr@fsij.org>
- * sample/webrick/*: new files.
+ * signal.c: parenthesize macro arguments.
- * MANIFEST: add sample/webrick/*
+Wed Dec 29 07:22:15 2010 Eric Hodel <drbrain@segment7.net>
-Wed Jan 7 20:51:51 2004 Minero Aoki <aamine@loveruby.net>
+ * lib/rake/rdoctask.rb: Deprecate in favor of rdoc/task.
- * test/net/test_httpheader.rb: new file.
+Wed Dec 29 07:07:06 2010 Eric Hodel <drbrain@segment7.net>
- * MANIFEST: add test/net/test_httpheader.rb.
+ * lib/rdoc: Import RDoc 3.1
-Wed Jan 7 20:42:06 2004 Minero Aoki <aamine@loveruby.net>
+Tue Dec 28 18:36:38 2010 NAKAMURA Usaku <usa@ruby-lang.org>
- * lib/net/http.rb (HTTPHeader#content_length): should return nil
- unless header exists. [ruby-dev:22519]
+ * error.c, include/ruby/intern.h (rb_compile_error_with_enc): new
+ function to raise syntax error, with source encoding'ed message.
-Wed Jan 7 14:26:05 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+ * parse.y (compile_error): use above function.
+ [ruby-core:33951] (#4217)
- * ext/tk/lib/tk.rb (TkPanedWindow): use epath for embedded windows.
+Tue Dec 28 07:37:38 2010 Tanaka Akira <akr@fsij.org>
- * ext/tk/lib/tktext.rb: use epath for embedded windows.
+ * ruby.c: parenthesize macro arguments.
- * ext/tk/lib/tkcanvas.rb: use epath for window items.
+Tue Dec 28 07:17:11 2010 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
-Wed Jan 7 14:24:04 2004 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+ * NEWS: add ARGF.write and so on.
- * lib/soap/{attachment.rb,mimemessage.rb}: added from soap4r/1.5.2.
+Tue Dec 28 07:12:38 2010 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
-Wed Jan 7 13:00:18 2004 Dave Thomas <dave@pragprog.com>
+ * NEWS: add new magic-comment. (warn-indent) [ruby-core:25442]
- * lib/rdoc/ri/ri_driver.rb: Fix problem where ri was
- being too eager to find matches of ambiguous method
- names (such as "ri Thread.join" would return both
- Thread.join and ThreadsWait.join)
+Tue Dec 28 04:32:37 2010 Aaron Patterson <aaron@tenderlovemaking.com>
-Wed Jan 7 12:35:41 2004 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+ * ext/fiddle/extconf.rb: check for windows.h while building fiddle.
+ Thanks Jon Forums! [ruby-core:33923]
- * lib/debug.rb: revert command parse regexps. [ruby-list:39014] by
- Shirai,Kaoru.
+Tue Dec 28 01:45:12 2010 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
-Wed Jan 7 08:21:04 2004 Dave Thomas <dave@pragprog.com>
+ * NEWS: Add Zlib.deflate and Zlib.inflate.
+ [ruby-dev:42833]
- * lib/rdoc/parsers/parserfactory.rb: Check for shebang
- line in files that would otherwise be treated as
- plain text.
+Mon Dec 27 21:22:33 2010 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
-Tue Jan 6 22:13:34 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * win32/configure.bat: Remove obsoleted coding rule. Now, we
+ don't support to build on Windows 95/98 and Me.
- * eval.c (rb_mod_modfunc): should break if m has no super class.
- [ruby-dev:22498]
+Mon Dec 27 18:27:13 2010 Tanaka Akira <akr@fsij.org>
-Tue Jan 6 21:51:37 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * re.c: parenthesize macro arguments.
- * io.c (fptr_finalize): should save errno just after failure.
- [ruby-dev:22492]
+Mon Dec 27 15:22:23 2010 NAKAMURA Usaku <usa@ruby-lang.org>
-Tue Jan 6 20:51:10 2004 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+ * win32/README.win32: note to need NT based OS to build ruby.
- * lib/logger.rb(Logger#msg2str): no special treatment for the object
- which responds to :to_str.
+Mon Dec 27 12:14:46 2010 NAKAMURA Usaku <usa@ruby-lang.org>
- * lib/logger.rb(LogDevice#initialize): remove type checking if the
- given object is a String. Kernel.open handles it correctly.
+ * common.mk (EXTMK_ARGS): specify to pass macro V, because nmake
+ doesn't pass it via MAKEFLAGS.
- * test/logger/test_logger.rb: follow above change (ArgumentError ->
- TypeError.)
+Mon Dec 27 10:33:43 2010 NARUSE, Yui <naruse@ruby-lang.org>
-Tue Jan 6 14:53:14 2004 Dave Thomas <dave@pragprog.com>
+ * ext/zlib/zlib.c (Init_zlib): Add Zlib.deflate and Zlib.inflate.
+ [ruby-dev:42833]
- * bin/ri: split out the display side, making it pluggable. Added
- new ri_driver and ri_display files in lib/rdoc/ri.
+Mon Dec 27 07:38:07 2010 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
-Tue Jan 6 11:29:43 2004 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+ * misc/rb_optparse.zsh: add compdef for generator.
- * test/inlinetest.rb, test/{test_generator.rb,test_ipaddr.rb,
- test_pathname.rb,test_pp.rb,test_prettyprint.rb,test_set.rb,
- test_time.rb,test_tsort.rb: added.
+Mon Dec 27 07:32:07 2010 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
-Tue Jan 6 09:38:27 2004 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+ * lib/optparse.rb (OptionParser#compsys): escape brackets too.
+ [ruby-dev:42754]
- * import soap4r/1.5.2;
+Mon Dec 27 01:30:08 2010 Tanaka Akira <akr@fsij.org>
- * lib/soap/{attachment.rb,baseData.rb,encodingstyle/soapHandler.rb}:
- introduce SOAPExternalReference class as a referenct to SOAPEnvelope
- external content.
+ * ext/socket/mkconstants.rb: add IF_NAMESIZE.
+ add a default for INET6_ADDRSTRLEN.
- * lib/soap/{attachment.rb,mimemessage.rb}: great SwA (SOAP messages
- with Attachments) support code by Jamie Herre.
+Sun Dec 26 23:49:47 2010 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * lib/soap/{element.rb,marshal.rb,parser.rb,processor.rb,
- streamHandler.rb,wsdlDriver.rb}: SwA support.
+ * win32/Makefile.sub: suppress a strange error message when RMALL
+ found no such file.
+ * win32/rmall.bat: new.
- * lib/soap/rpc/{cgistub.rb,driver.rb,element.rb,proxy.rb,router.rb,
- soaplet.rb}: SwA support and refactoring.
+Sun Dec 26 21:23:23 2010 <kosaki.motohiro@gmail.com>
- * lib/soap/generator.rb, lib/soap/mapping/mapping.rb: follow
- SOAPReference#initialize signature change.
+ * win32/Makefile.sub: fix 'nmake clean-enc' breakage since r28322.
- * lib/soap/mapping/factory.rb: deleted unused methods.
+Sun Dec 26 22:25:07 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * lib/soap/mapping/rubytypeFactory.rb: do no ignore case while xsi:type
- string <-> Ruby class name matching.
+ * ext/ripper/depend (ripper.y): fix messages with nmake.
+ [ruby-dev:42896]
- * lib/xsd/datatypes.rb: check the smallest positive non-zero
- single-precision float exactly instead of packing with "f".
- [ruby-talk:88822]
+Sun Dec 26 22:24:14 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * test/soap/test_basetype.rb, test/xsd/test_xsd.rb: use 1.402e-45, not
- 1.4e-45. 1.4e-45 is smaller than 2 ** -149...
+ * file.c (file_expand_path): get rid of warnings caused by
+ -Wdeclaration-after-statement on cygwin.
- * test/soap/test_basetype.rb, test/soap/marshal/test_marshal.rb,
- test/xsd/test_xsd.rb: use "(-1.0 / (1.0 / 0.0))" instead of "-0.0".
+Sun Dec 26 20:28:34 2010 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * test/soap/test_streamhandler.rb: revert to the previous test that
- warns "basic_auth unsupported under net/http".
+ * process.c (before_exec): add small comment.
-Tue Jan 6 06:37:53 2004 Dave Thomas <dave@pragprog.com>
+Sun Dec 26 20:52:21 2010 Tanaka Akira <akr@fsij.org>
- * bin/rdoc: Add --ri-system switch
+ * ext/socket/mkconstants.rb: define INET_ADDRSTRLEN as 16 if not
+ available. fix compilation error on mswin32-60. reported by nobu.
- * lib/.document: Update with list of files that seem to have
- documentation
+Sun Dec 26 19:37:37 2010 Tanaka Akira <akr@fsij.org>
- * lib/test/unit.rb: Reorder comment to make it RDoc friendly.
+ * ext/socket/option.c: define IFNAMSIZ if not available.
+ fix compilation error on mingw32. reported by nobu.
- * Makefile.in: add install-nodoc target, and make it
- generate RDoc on default install.
+Sun Dec 26 12:16:29 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * lib/rdoc/ri/ri_options.rb (RI::Options::parse): Add
- --doc-dir option to ri.
+ * lib/rdoc/ri/paths.rb (RDoc::RI::Paths::HOMEDIR): no exception if
+ HOME is not set. [ruby-core:33867]
-Tue Jan 6 00:04:40 2004 Dave Thomas <dave@pragprog.com>
+Sun Dec 26 11:39:11 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * lib/rdoc/parsers/parse_rb.rb (RDoc::RubyParser::parse_method_or_yield_parameters):
- fix parsing if there are braces in a method parameter list
+ * parse.y (stmt): missing ripper rule. i.e., `a::B ||= c 1'.
+ http://twitter.com/#!/wannabe53/status/18797576396472321
+ http://twitter.com/#!/wannabe53/status/18798416150663168
-Tue Jan 6 01:01:04 2004 NAKAMURA Usaku <usa@ruby-lang.org>
+Sun Dec 26 11:15:50 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * win32/dir.h, win32/win32.c: fix patch miss.
+ * test/with_different_ofs.rb (DifferentOFS): should not affect
+ original classes.
- * win32/Makefile.sub: fix file dependency.
+Sun Dec 26 09:35:07 2010 Tanaka Akira <akr@fsij.org>
-Mon Jan 5 20:32:00 2004 Gavin Sinclair <gsinclair@soyabean.com.au>
+ * rational.c: parenthesize macro arguments.
- * lib/logger.rb: enhanced documentation.
+Sun Dec 26 09:22:19 2010 Tanaka Akira <akr@fsij.org>
-Mon Jan 5 18:58:47 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * ext/socket/option.c (rb_if_indextoname): new function to abstract
+ environments without if_indextoname.
+ (inspect_ipv6_multicast_if): new function to inspect
+ IPV6_MULTICAST_IF.
+ Socket::Option.new(:INET6, :IPV6, :MULTICAST_IF,
+ [2].pack("I!")).inspect is
+ "#<Socket::Option: INET6 IPV6 MULTICAST_IF eth0>".
- * dir.c: merge tuning from H.Yamamoto <ocean@m2.ccsnet.ne.jp>.
- [ruby-dev:22486]
+Sun Dec 26 04:31:15 2010 Luis Lavena <luislavena@gmail.com>
- * pack.c (pack_unpack): unpack requires big endian offet (OFF16B
- and OFF32B). The patch is from Minero Aoki in [ruby-dev:22489]
+ * ext/dl/win32/registry.rb: Corrected RegCreateKeyExA signature.
+ Patch by Rafal Michalski [ruby-core:33874] [Ruby 1.9-Bug#4203]
- * pack.c (OFF16B): add big-endian offset again.
+Sun Dec 26 02:31:58 2010 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
-Mon Jan 5 03:00:53 2004 Minero Aoki <aamine@loveruby.net>
+ * io.c (advice_arg_check): Change argument check.
+ Now, an unsupported advice makes NotImplementedError.
+ [ruby-dev:42887] [Ruby 1.9-Feature#4204]
- * test/ruby/test_pack.rb: new test test_unpack_N.
+Sun Dec 26 03:00:53 2010 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
-Mon Jan 5 01:47:53 2004 NAKAMURA Usaku <usa@ruby-lang.org>
+ * ext/socket/extconf.rb: Fix build error which was introduced r30372.
- * lib/mkmf.rb (create_makefile): remove duplicated object files
- from $objs on DOSISH platforms.
+Sun Dec 26 01:37:10 2010 NAKAMURA Usaku <usa@ruby-lang.org>
-Sat Jan 3 02:44:48 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * ext/socket/extconf.rb: check the existence of if_indextoname().
- * rubysig.h (TRAP_END): preserve errno before switching context.
- [ruby-core:02137]
+ * ext/socket/option.c: yesterday's akr's commits destroyed the build of
+ some unrelated platforms (such as Windows).
-Sat Jan 3 01:18:08 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+Sat Dec 25 23:29:11 2010 Tanaka Akira <akr@fsij.org>
- * dir.c: merge tuning from H.Yamamoto <ocean@m2.ccsnet.ne.jp>.
- [ruby-dev:22476]
+ * ext/socket/option.c (inspect_ipv4_add_drop_membership): new function
+ to inspect struct ip_mreq and struct ip_mreqn for
+ IP_ADD_MEMBERSHIP and IP_DROP_MEMBERSHIP.
+ Socket::Option.new(:INET, :IP, :ADD_MEMBERSHIP,
+ [239,255,99,81, 0,0,0,0].pack("CCCCCCCC")).inspect is now
+ "#<Socket::Option: INET IP ADD_MEMBERSHIP 239.255.99.81 0.0.0.0>".
+ (inspect_ipv4_multicast_if): new function to inspect struct in_addr
+ and struct ip_mreqn for IP_MULTICAST_IF.
+ Socket::Option.new(:INET, :IP, :MULTICAST_IF,
+ [192,168,0,7].pack("CCCC")).inspect is now
+ "#<Socket::Option: INET IP MULTICAST_IF 192.168.0.7>".
-Fri Jan 2 14:54:11 2004 Dave Thomas <dave@pragprog.com>
+ * ext/socket/extconf.rb: check struct ip_mreq and struct ip_mreqn.
- * bin/ri: Add new --classes option, and arrange for
- help messages to be paged too.
+Sat Dec 25 22:49:10 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * bin/rdoc: Add statistics.
+ * test/csv: DifferentOFS needs to be include in each classes.
- * process.c: (MG) Added Process documentation
+ * test/digest/test_digest_extend.rb (TestDigestExtend#setup):
+ should not depend on the result of previous tests
- * lib/rdoc/ri/ri_formatter.rb (RI::AttributeFormatter::wrap):
- Fix problem with labels not displaying in RI labeled
- lists using BS and ANSI modes.
+ * test/with_different_ofs.rb (DifferentOFS::WithDifferentOFS): give
+ name.
-Fri Jan 2 01:50:13 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * test/with_different_ofs.rb (DifferentOFS): test suite for test
+ suites affected by $,.
- * io.c (argf_eof): ARGF.eof? should not have any side effect.
- [ruby-dev:22469]
+ * test/digest/test_digest_extend.rb (TestDigestExtend): should not
+ assume $, invariant.
-Thu Jan 1 09:03:20 2004 Dave Thomas <dave@pragprog.com>
+ * test/csv/test_data_converters.rb, test/csv/test_table.rb: don't
+ call setup within tests.
- * bin/ri (report_class_stuff): Fix problem with ambiguous nested
- classes not matching.
+Sat Dec 25 20:01:40 2010 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
-Wed Dec 31 17:25:17 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * io.c (pipe_open): Added rb_thread_atfork(). We must reinitialize
+ GVL at new process creation.
- * io.c (argf_each_byte): should return self. [ruby-dev:22465]
+Sat Dec 25 18:26:55 2010 Tanaka Akira <akr@fsij.org>
-Wed Dec 31 15:05:00 2003 Gavin Sinclair <gsinclair@soyabean.com.au>
+ * ext/socket/option.c (inspect_ipv6_mreq): new function to inspect
+ struct ipv6_mreq for IPV6_JOIN_GROUP and IPV6_LEAVE_GROUP.
+ Socket::Option.new(:INET6, :IPV6, :JOIN_GROUP,
+ [0xff12,0,0,0,0,0,0,1, 2].pack("nnnnnnnnI!")).inspect is now
+ "#<Socket::Option: INET6 IPV6 JOIN_GROUP ff12::1 eth0>".
- * lib/pathname.rb: Corrected small coding error.
+ * ext/socket/extconf.rb: check struct ipv6_mreq.
-Wed Dec 31 15:00:00 2003 Gavin Sinclair <gsinclair@soyabean.com.au>
+Sat Dec 25 18:04:30 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * lib/pathname.rb: Completed documentation.
+ * lib/csv.rb (CSV.foreach): 'rb' mode is defaulted in open.
-Wed Dec 31 11:20:34 2003 Dave Thomas <dave@pragprog.com>
+ * lib/csv.rb (CSV#init_separators): cannonicalize encoding options
+ as Encoding objects.
- * lib/rdoc/parsers/parse_c.rb (RDoc::C_Parser::do_methods): Make
- file referenced in "// in sss.c" relative to current file.
+Sat Dec 25 18:30:34 2010 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
-Wed Dec 31 11:17:37 2003 Dave Thomas <dave@pragprog.com>
+ * thread.c (rb_thread_atfork): Add small comment why we need
+ reset random seed.
- * lib/rdoc/generators/html_generator.rb: Fix problem when
- a public method was aliased, but the alias is then
- made private, and hence doesn't appear in RDoc output.
+Sat Dec 25 17:33:55 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Wed Dec 31 01:33:05 2003 Dave Thomas <dave@pragprog.com>
+ * test/csv/base.rb (TestCSV.with_different_ofs): give name to
+ anonymous classes.
- * array.c, error.c, eval.c, io.c, prec.c, range.c, re.c,
- string.c, time.c: Add RDoc for Kernel functions, and tidy.
+ * lib/csv.rb (CSV#init_separators): use IO#gets with length
+ parameter to get rid of wrong convertion.
-Tue Dec 30 19:39:14 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * lib/csv.rb (CSV::foreach, CSV#initialize): directly use encoding
- * io.c (rb_f_readline): should raise EOFError at the end of
- files. [ruby-dev:22458]
+ * lib/csv.rb, test/csv: should not assume $, invariant.
- * io.c (argf_read): should concatenate input files when length
- argument is nil. [ruby-dev:22450]
+Sat Dec 25 16:08:06 2010 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * io.c (argf_read): should update supplied string buffer (2nd
- argument) even when IO#read is called multiple times.
+ * signal.c: change rb_atomic_t definition from uchar to uint.
- * io.c: should initialize lineno by zero. [ruby-dev:22460]
+Sat Dec 25 15:04:05 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Tue Dec 30 12:30:30 2003 Dave Thomas <dave@pragprog.com>
+ * test/csv/test_encodings.rb (TestEncodings#setup): fix evil test
+ suite writing to the source directory.
- * lib/rdoc/code_objects.rb (RDoc::Context::find_symbol): If a
- class and a method have the same name, finding Xxx.abc was trying
- to find 'abc' in method 'Xxx', not class 'Xxx'.
+Sat Dec 25 15:08:08 2010 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
-Tue Dec 30 08:32:32 2003 Dave Thomas <dave@pragprog.com>
+ * ext/pty/pty.c (chfunc): Added rb_thread_atfork_before_exec().
+ We must reinitialize GVL at new process creation. Otherwise
+ we may meet an insane deadlock. [Bug#4121][ruby-dev:42686]
- * lib/rdoc/parsers/parse_rb.rb (RDoc::RubyParser::parse_method):
- Handle undoing nsting of yield parameters correctly for:
+Sat Dec 25 14:27:09 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- def each_entry(&b) Dir.foreach(@path) {|f| yield P.new(f) } end
+ * io.c (rb_io_extract_encoding_option): accept Encoding object as
+ encoding: optional argument. [ruby-dev:42884]
-Tue Dec 30 07:30:00 2003 Gavin Sinclair <gsinclair@soyabean.com.au>
+Sat Dec 25 13:37:55 2010 Ryan Davis <ryand-ruby@zenspider.com>
- * lib/pathname.rb: Added documentation.
+ * lib/minitest/*.rb: Imported minitest 2.0.2 r6093.
-Mon Dec 29 20:08:17 2003 Minero Aoki <aamine@loveruby.net>
+Sat Dec 25 13:05:59 2010 Tanaka Akira <akr@fsij.org>
- * lib/net/http.rb (GenericRequest#initialize): check if path
- begins with '/'.
+ * random.c: parenthesize macro arguments.
- * lib/net/http.rb: def m( arg ) -> def m(arg)
+Sat Dec 25 12:48:50 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Mon Dec 29 12:51:02 2003 Dave Thomas <dave@pragprog.com>
+ * load.c (rb_f_require_relative): don't omit return type.
- * eval.c: Add RDoc for Kernel global functions.
+Sat Dec 25 11:06:00 2010 Eric Hodel <drbrain@segment7.net>
-Mon Dec 29 11:00:16 2003 Dave Thomas <dave@pragprog.com>
+ * load.c (rb_f_require_relative): Add documentation.
- * array.c: Tidy up RDoc loose ends.
+Sat Dec 25 11:02:52 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Mon Dec 29 05:05:51 2003 Dave Thomas <dave@pragprog.com>
+ * ext/zlib/zlib.c (gzreader_gets): support optional length
+ parameter.
- * struct.c, random: Add RDoc comments
+ * ext/zlib/zlib.c (gzfile_read, gzfile_readpartial): length should
+ be long.
-Mon Dec 29 02:25:00 2003 Gavin Sinclair <gsinclair@soyabean.com.au>
+Sat Dec 25 10:51:03 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * lib/optparse.rb: Improved documentation.
+ * ext/json/generator/generator.{c,h} (fbuffer_free_only_buffer):
+ unused.
-Mon Dec 29 02:20:54 2003 Dave Thomas <dave@pragprog.com>
+ * ext/openssl/ossl_pkcs5.c (ossl_pkcs5_pbkdf2_hmac): add casts.
- * eval.c: Add RDoc for class Proc, Method, UnboundMethod
+Fri Dec 24 08:46:04 2010 Tanaka Akira <akr@fsij.org>
-Mon Dec 29 02:20:26 2003 NAKAMURA Usaku <usa@ruby-lang.org>
+ * process.c: parenthesize macro arguments.
- * instruby.rb: fix install directory if destdir and compile_dir are
- not in the same drive.
+Thu Dec 23 19:17:14 2010 Yuki Sonoda (Yugui) <yugui@yugui.jp>
- * ext/extmk.rb: ditto. [ruby-list:39009]
+ * test/net/imap/cacert.pem: updated because it has been expired.
- * win32/Makefile.sub, win32/README.win32, win32/configure.bat,
- win32/setup.mak: new configure scheme. use ``configure --prefix=dir''
- instead of ``nmake DESTDIR=dir install''.
+ * test/net/imap/server.crt: signed again because CA cert was expired.
-Mon Dec 29 00:41:44 2003 Dave Thomas <dave@pragprog.com>
+Thu Dec 23 11:16:52 2010 Tanaka Akira <akr@fsij.org>
- * math.c: Add RDoc comments
+ * parse.y: parenthesize macro arguments.
-Sun Dec 28 20:19:11 2003 Tanaka Akira <akr@m17n.org>
+Thu Dec 23 11:00:09 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * ext/stringio/stringio.c (strio_sysread): StringIO.new.sysread didn't
- raise EOFError.
+ * error.c (rb_check_type): check for type from extensions for ruby
+ 1.8. see [ruby-core:33797].
- * ext/zlib/zlib.c (gzreader_gets): don't increment lineno when
- gzfile_read_all returns "".
+Thu Dec 23 08:12:59 2010 Aaron Patterson <aaron@tenderlovemaking.com>
-Sun Dec 28 15:25:08 2003 Dave Thomas <dave@pragprog.com>
+ * lib/net/smtp.rb: refactoring Net::SMTP#esmtp= to use an
+ attr_accessor
- * class.c,object.c,parse.y,sprintf.c,variable.c: Document classes
- Object, Module, etc...
+Thu Dec 23 06:35:41 2010 Aaron Patterson <aaron@tenderlovemaking.com>
-Sun Dec 28 11:55:29 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+ * lib/net/smtp.rb: Net::SMTP should close the SSL connection if the
+ connection verification fails.
- * test/csv/test_csv.rb: generate bom.csv and mac.csv files on the fly.
- [ruby-talk:88852]
+Thu Dec 23 01:47:58 2010 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
- * test/csv/{bom.csv,mac.csv}: removed.
+ * NEWS: remove #object_id. [ruby-dev:42840]
-Sun Dec 28 08:56:51 2003 Dave Thomas <dave@pragprog.com>
+Wed Dec 22 08:56:39 2010 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
- * eval.c: Thead[Group] RDoc (thanks to MG)
+ * NEWS: add Module#private_constant and Module#public_constant.
+ [ruby-dev:39685][ruby-core:32698]
-Sun Dec 28 03:50:05 2003 Dave Thomas <dave@pragprog.com>
+Wed Dec 22 07:59:23 2010 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
- * lib/rdoc/parsers/parse_c.rb (RDoc::C_Parser::find_override_comment):
- Escape method names used in regexp
+ * NEWS: add IO#advise. [ruby-core:33110] [Ruby 1.9-Feature#4038]
-Sun Dec 28 01:46:02 2003 Dave Thomas <dave@wireless_3.local.thomases.com>
+Tue Dec 21 23:45:31 2010 Yukihiro Matsumoto <matz@ruby-lang.org>
- * lib/rdoc/ri/ri_formatter.rb (RI::TextFormatter::display_flow_item):
- Add support for rules in 'ri' output.
+ * gc.c (Init_GC): move back object_id to Kernel. [ruby-dev:42840]
-Sun Dec 28 01:35:35 2003 Dave Thomas <dave@pragprog.com>
+Tue Dec 21 12:45:16 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * lib/rdoc/parsers/parse_c.rb (RDoc::C_Parser::find_body):
- Sometimes the Ruby source aliases two otherwise
- unrelated methods (for example Kernel#object_id and
- Kernel#hash are both the same C function). Provide a
- facility to allow the methods to be documented
- separately.
+ * configure.in (target_archs): remove temporary objects.
-Sun Dec 28 01:05:31 2003 Dave Thomas <dave@pragprog.com>
+ * enc/Makefile.in, enc/depend (clean): remove work directories.
- * marshal.c, signal.c: RDoc collemts added by Elliott Hughes
+Tue Dec 21 07:39:12 2010 Tanaka Akira <akr@fsij.org>
-Sun Dec 28 00:46:25 2003 Dave Thomas <dave@pragprog.com>
+ * pack.c: parenthesize macro arguments.
- * lib/rdoc/parsers/parse_c.rb (RDoc::C_Parser::find_class_comment):
- Some Ruby source uses lower-case class names for the
- Init_Xxx C function name.
+Tue Dec 21 06:25:43 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Sat Dec 27 23:41:46 2003 WATANABE Hirofumi <eban@ruby-lang.org>
+ * test/rexml/test_contrib.rb (ContribTester#test_pos): should not
+ use fixed path name for tests. [ruby-dev:42827]
- * configure.in: fix "test: too many arguments" error.
+ * test/rexml/test_sax.rb (SAX2Tester#test_socket): should not use
+ fixed port for tests. [ruby-dev:42828]
-Sat Dec 27 15:32:40 2003 Dave Thomas <dave@wireless_3.local.thomases.com>
+Tue Dec 21 06:10:18 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * time.c: Add RDoc comments for Time class.
+ * compile.c (setup_args), vm.c (invoke_block_from_c),
+ vm_insnhelper.c (caller_setup_args): reverted r30241 and r30243
+ except for the test.
-Sat Dec 27 15:07:26 2003 Dave Thomas <dave@pragprog.com>
+Tue Dec 21 01:41:42 2010 Masaya Tarui <tarui@ruby-lnag.org>
- * object.c: Add RDoc comments for Symbol class.
+ * io.c : add an extra byte to buffer for the specification of read
+ in Windows. see [ruby-core:33460] and r29980. and, we have to
+ discuss how to do this one byte.
-Sat Dec 27 14:39:53 2003 Dave Thomas <dave@pragprog.com>
+Tue Dec 21 01:18:06 2010 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * numeric.c (Init_Numeric): Add RDoc comments.
+ * error.c: Fix build error for win32. This regression was
+ introduced by r30271.
-Sat Dec 27 00:44:00 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+Tue Dec 21 00:59:40 2010 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * io.c (next_argv): warn always for stdin on inplace edit mode.
+ * thread.c (thread_cleanup_func): Moved interrupted_lock
+ destroying code from native_thread_destroy() to
+ thread_cleanup_func() because it's platform independent logic.
- * io.c (read_all): need to check string value.
+ * thread_win32.c (native_thread_destroy): ditto.
+ * thread_pthread.c (native_thread_destroy): ditto.
- * io.c (argf_read): allow ARGF.read(nil). [ruby-dev:22433]
+Tue Dec 21 00:46:20 2010 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
-Fri Dec 26 23:02:09 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * thread.c (thread_cleanup_func): Don't touch native threading
+ resource at fork. Sadly this is purely bandaid. We need to
+ implement proper fix later. [Bug #4169] [ruby-core:33767]
- * io.c (rb_f_backquote): need not to check nil result.
- [ruby-core:02078]
+Tue Dec 21 00:22:44 2010 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
- * io.c (rb_io_getline): should return nil when read_all gives
- empty string, even when nil rs is specified. [ruby-core:02077]
+ * error.c (exit_success_p): Check status code more carefully.
+ status code may have garbage in upper bit.
-Fri Dec 26 18:33:54 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Mon Dec 20 23:12:37 2010 Tanaka Akira <akr@fsij.org>
- * configure.in: check if getcontext and setcontext are available.
+ * node.c: parenthesize macro arguments.
- * eval.c: use presence of getcontext/setcontext.
+Mon Dec 20 20:04:41 2010 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
-Fri Dec 26 16:40:53 2003 Tanaka Akira <akr@m17n.org>
+ * NEWS: add #__id__ and #object_id. [ruby-dev:42778]
- * lib/pathname.rb (PathnameTest#test_plus): add 2 assertions.
+Mon Dec 20 20:03:21 2010 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
-Fri Dec 26 14:05:13 2003 Minero Aoki <aamine@loveruby.net>
+ * thread_pthread.c (native_thread_destroy): Fixed gvl_cond leak.
- * test/ruby/test_pack.rb: new test test_pack_N.
+Mon Dec 20 13:49:05 2010 Eric Hodel <drbrain@segment7.net>
-Fri Dec 26 12:53:26 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * NEWS: Add item for RDoc 3.0.1
- * pack.c (pack_pack): add sign check for 'i', and 'l'.
- [ruby-dev:22427]
+ * lib/rdoc: Import RDoc 3.0.1, remove require for perl parser.
- * bignum.c (rb_quad_pack): add range check for 'quad int'.
+Mon Dec 20 12:15:32 2010 Eric Hodel <drbrain@segment7.net>
-Fri Dec 26 10:58:58 2003 NAKAMURA Usaku <usa@ruby-lang.org>
+ * lib/rdoc: Import RDoc 3.0.
- * MANIFEST: add vms/config.h and remove vms/config.h_in.
+Mon Dec 20 01:55:03 2010 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
-Fri Dec 26 10:42:00 2003 AKIYOSHI, Masamichi <masamichi.akiyoshi@hp.com>
+ * io.c (Init_IO): Added O_DIRECT. This feature was proposed by
+ Run Paint Run Run.
+ [Feature #4015] [ruby-core:33018]
- * io.c: [VMS] "rfm=stmlf" is specified for open() and fopen().
+Sun Dec 19 19:15:23 2010 Tanaka Akira <akr@fsij.org>
-Thu Dec 25 22:29:53 2003 NAKAMURA Usaku <usa@ruby-lang.org>
+ * marshal.c: parenthesize macro arguments.
- * string.c (rb_str_update): don't return any value.
+Sat Dec 18 21:52:37 2010 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
-Thu Dec 25 15:30:17 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * vsnprintf.c (BSD_vfprintf): suppress warning: "_WIN32" is not
+ defined.
- * string.c (rb_str_update): call rb_str_modify().
+Sat Dec 18 16:02:27 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Thu Dec 25 05:08:09 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * compile.c (setup_args), vm.c (invoke_block_from_c),
+ vm_insnhelper.c (caller_setup_args): fix of r30241. lambda block
+ should check argument number.
- * eval.c (search_required): search actual file name once when no
- extension specified.
+Sat Dec 18 14:42:29 2010 Tanaka Akira <akr@fsij.org>
-Thu Dec 25 04:00:44 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * load.c: parenthesize macro arguments.
- * stable version 1.8.1 released.
+Sat Dec 18 10:07:04 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Thu Dec 25 00:17:53 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * compile.c (setup_args, iseq_compile_each): optimize AMPER LAMBDA
+ combination as block.
- * configure.in: check for nanosleep, -lrt if required.
- [ruby-core:02059]
+Fri Dec 17 22:07:16 2010 Yukihiro Matsumoto <matz@ruby-lang.org>
- * eval.c (thread_timer): use select(2) if nanosleep(2) is not
- available.
+ * gc.c (Init_GC): move #__id__ and #object_id to BasicObject.
+ [ruby-dev:42778]
- * eval.c: check __stub_getcontext for glibc on some platforms.
- [ruby-list:38984]
+Fri Dec 17 19:35:13 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Wed Dec 24 23:48:04 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+ * test/mkmf/base.rb (TestMkmf::FakeLog): capture output from mkmf.
- * test/soap/test_basetype.rb, test/soap/marshal/test_marshal.rb
- test/xsd/test_xsd.rb: use "(-1.0 / (1.0 / 0.0))" instead of "-0.0"
- to express -0.0. [ruby-talk:88786]
+ * test/mkmf/test_find_executable.rb (test_find_executable):
+ suppress meaningless differences for chkbuild.
-Wed Dec 24 23:29:30 2003 Tanaka Akira <akr@m17n.org>
+Fri Dec 17 13:26:54 2010 NAKAMURA Usaku <usa@ruby-lang.org>
- * lib/tsort.rb (test_orphaned_break): removed.
+ * win32/setup.mak (BASERUBY): quit with an error when BASERUBY was not
+ able to set, just like configure.in does. [ruby-dev:42782]
-Wed Dec 24 20:53:06 2003 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+Fri Dec 17 07:04:09 2010 Tanaka Akira <akr@fsij.org>
- * ext/tk/sample/tkmulticolumnlist.rb: new sample
+ * iseq.c: parenthesize macro arguments.
- * ext/tk/sample/tkmultilistframe.rb: bug fix
+Fri Dec 17 04:18:37 2010 Eric Hodel <drbrain@segment7.net>
-Wed Dec 24 20:37:37 2003 Eric Sunshine <sunshine@sunshineco.com>
+ * transcode.c (str_encode): Alter comment for better wording and ri
+ output.
- * configure.in (LDSHARED): Fixed typographical error in assignment of
- LDSHARED for Rhapsody which caused linking of extension modules to
- fail.
+Fri Dec 17 00:05:40 2010 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
-Wed Dec 24 17:51:18 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * io.c (rb_io_advise): New API. IO#advise() allows to tell the
+ ruby runtime how it expects to use a file handle. This feature
+ can be improved a performance some situations.
+ Note: This feature is mainly developed by Run Paint Run Run.
+ Thank you! [ruby-core:33110] [Ruby 1.9-Feature#4038]
- * file.c (rb_thread_flock): enable thread support again.
+ * io.c (do_io_advise): Helper function.
+ * io.c (io_advise_sym_to_const): ditto.
-Wed Dec 24 16:46:08 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+Thu Dec 16 23:29:20 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * eval.c (catch_timer): do not call rb_thread_schedule() inside to
- avoid pthread_mutex_lock() deadlock. interrupts to system calls
- are detected by TRAP_END via EINTR error.
+ * tool/rbinstall.rb (bin-comm): use transformed name.
+ [ruby-dev:42777]
- * eval.c (thread_timer): do not post signal unless it is
- absolutely necessary.
+Thu Dec 16 21:52:07 2010 Tanaka Akira <akr@fsij.org>
- * rubysig.h (TRAP_END): add CHECK_INTS to switch thread.
+ * io.c: parenthesize macro arguments.
- * regex.c (re_compile_pattern): check if nextp is smaller than
- pend. [ruby-dev:22372]
+Thu Dec 16 21:46:39 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * eval.c (umethod_bind): remove method overridden check.
- [ruby-dev:22366]
+ * tool/mkconfig.rb (RbConfig): honor ARCHFLAGS and RC_ARCHS to
+ override embedded ARCH_FLAG value on universal-darwin.
-Wed Dec 24 16:13:05 2003 GOTOU Yuuzou <gotoyuzo@notwork.org>
+Thu Dec 16 19:50:12 2010 NAKAMURA Usaku <usa@ruby-lang.org>
- * ext/openssl/ossl_ssl.c (ossl_ssl_read): should check for error
- status by SSL_get_error().
+ * win32/{configure.bat,setup.mak,Makefile.sub} (PROGRAM_PREFIX,
+ PROGRAM_SUFFIX): unite the differences of the names of macros of
+ prefix and suffix.
+ reported by HANEDA Norikatsu. [ruby-dev:42775]
- * ext/openssl/ossl_ssl.c (ossl_ssl_write): ditto.
+Thu Dec 16 08:04:47 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Wed Dec 24 14:23:27 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * node.h (RNode): match the type of flags to RBasic, and renamed
+ nd_file as nd_reserved.
- * ext/stringio/stringio.c (strio_read): clear the buffer argument
- when returning nil. [ruby-dev:22363]
+ * iseq.c (set_relation), vm_insnhelper.c (vm_cref_push): nd_file
+ is always zero-cleared.
- * test/ruby/ut_eof.rb (TestEOF::test_eof_0, TestEOF::test_eof_1):
- add buffer argument tests.
+Thu Dec 16 07:22:30 2010 Ryan Davis <ryand-ruby@zenspider.com>
-Wed Dec 24 14:07:55 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * lib/minitest/unit.rb: Imported minitest 2.0.1 r6079.
- * lib/test/unit/assertions.rb: Modules are allowed to rescue.
+Wed Dec 15 20:45:02 2010 NAKAMURA Usaku <usa@ruby-lang.org>
- * lib/test/unit/autorunner.rb: show output_level in order.
+ * lib/test/unit.rb (process_args): need to setup @help to print options.
- * lib/test/unit/collector/dir.rb: get rid of successive same
- directories in load path.
+Wed Dec 15 11:19:33 2010 NAKAMURA Usaku <usa@ruby-lang.org>
- * test/testunit/test_assertions.rb (test_assert_nothing_raised,
- test_assert_raise): test for modules.
+ * test/zlib/test_zlib.rb (test_to_io): forgotten to fix with r30201.
-Wed Dec 24 13:43:34 2003 Shugo Maeda <shugo@ruby-lang.org>
+Wed Dec 15 11:07:34 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * lib/net/imap.rb (authenticate): remove "\n" from base64 encoded
- strings.
+ * io.c (simple_sendfile): enable on Mac OS X.
-Wed Dec 24 11:26:41 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * io.c (nogvl_copy_stream_sendfile): moved precheck of copy length.
- * test/fileutils/test_fileutils.rb: should not create any
- files or directories in current directory. [ruby-talk:88724]
+ * io.c (nogvl_copy_stream_sendfile): should wait for both of
+ read/write fds.
-Wed Dec 24 10:29:53 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Wed Dec 15 07:11:55 2010 Tanaka Akira <akr@fsij.org>
- * ext/stringio/stringio.c (strio_read): never return nil at
- unlimited read. [ruby-dev:22334]
+ * hash.c: parenthesize macro arguments.
- * ext/stringio/stringio.c (strio_read): support second
- argument. [ruby-dev:22350]
+Wed Dec 15 04:02:00 2010 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
-Wed Dec 24 09:38:49 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * ext/openssl/ossl_x509ext.c (ossl_x509extfactory_set_config):
+ fix compile error when !HAVE_X509V3_SET_NCONF. Thanks
+ Chikanaga-san. [ruby-dev:42761] [Ruby 1.9-Bug#4158]
- * parse.y (arg): should return 0 after error. [ruby-dev:22360]
+Wed Dec 15 03:41:31 2010 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
-Wed Dec 24 00:56:54 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * test/ripper/test_parser_events.rb (TestRipper#test_block_variables):
+ Limit address space 100MB instead 100KB. Quite frankly, This
+ margin is too narrow to contain ruby. [ruby-dev:42763] [Bug#4159]
- * io.c (read_all): do not return nil at the end of file.
- [ruby-dev:22334]
+Tue Dec 14 23:53:52 2010 NARUSE, Yui <naruse@ruby-lang.org>
- * io.c (argf_read): do not depend on nil at eof behavior of
- IO#read().
+ * io.c (simple_sendfile): improve linux compatibility on FreeBSD,
+ and now it works. But without cpuset -l 0, it still gets stuck.
- * eval.c (rb_thread_join): dup exception before re-raising it.
+Tue Dec 14 20:31:33 2010 Tanaka Akira <akr@fsij.org>
- * io.c (rb_io_eof): call clearerr() to prevent side effect. this
- patch is supplied by Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>.
- [ruby-dev:22234]
+ * gc.c: parenthesize macro arguments.
- * pack.c (OFF16): get offset for big endian machines.
+Tue Dec 14 18:31:48 2010 NAKAMURA Usaku <usa@ruby-lang.org>
- * pack.c (pack_pack): use OFF16 instead of OFF16B.
- [ruby-dev:22344]
+ * lib/test/unit.rb: help messages.
- * pack.c (pack_unpack): ditto.
+Tue Dec 14 18:19:03 2010 NAKAMURA Usaku <usa@ruby-lang.org>
-Tue Dec 23 22:47:14 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * common.mk (help): there is no reason to use the abbreviation for here.
- * io.c (rb_io_check_readable): set FMODE_RBUF always, even if
- NEED_IO_SEEK_BETWEEN_RW is not defined. [ruby-dev:22340]
+Tue Dec 14 15:03:46 2010 NAKAMURA Usaku <usa@ruby-lang.org>
- * io.c (rb_io_check_writable): clear FMODE_RBUF before writing
- something.
+ * test/ruby/test_io.rb (test_reopen, test_reinitialize): should close
+ the temporary files.
-Tue Dec 23 22:25:00 2003 Gavin Sinclair <gsinclair@soyabean.com.au>
+Tue Dec 14 14:24:15 2010 NAKAMURA Usaku <usa@ruby-lang.org>
- * lib/optparse.rb: incomplete RDoc documentation added in place of
- existing RD comments. Tabs converted to spaces.
+ * test/ruby/test_io.rb (make_tempfile): change the prefix from 'foo'
+ to 'test_io' because the old one is meaningless and inconvenient.
-Tue Dec 23 19:44:47 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+ * test/ruby/test_io.rb (test_binmode_after_closed): the temporary file
+ maked by make_temfile is already closed.
- * test/soap/test_streamhandler.rb (test_basic_auth): removed.
- soap4r + basic_auth is not officially supported in ruby/1.8.1 even
- though soap4r + basic_auth + http-access2 should run fine.
+Tue Dec 14 13:52:19 2010 NAKAMURA Usaku <usa@ruby-lang.org>
-Tue Dec 23 19:42:59 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * test/ruby/test_io.rb (test_flush_in_finalizer[12]): should close
+ temporary file because it's only used for taking pathname and
+ unlinking the file after the end of the test (in GC phase).
- * io.c (rb_io_ungetc): raise an exception at unread stream to
- avoid unspecified behavior. [ruby-dev:22330]
+Tue Dec 14 13:34:33 2010 NAKAMURA Usaku <usa@ruby-lang.org>
- * test/ruby/test_system.rb (test_syntax): glob relatively from
- __FILE__.
+ * ext/zlib/zlib.c (gzfile_s_open): should close the IO if some error
+ occurs in initializing.
-Tue Dec 23 18:09:40 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+Tue Dec 14 13:04:16 2010 NARUSE, Yui <naruse@ruby-lang.org>
- * pack.c (pack_pack): remove unnecessary negative value check.
- [ruby-dev:22329]
+ * lib/net/http.rb (Net::HTTPRequest#send_request_body_data):
+ set binmode to tempfile.
-Tue Dec 23 17:26:55 2003 KONISHI Hiromasa <konishih@fd6.so-net.ne.jp>
+Tue Dec 14 12:55:46 2010 NAKAMURA Usaku <usa@ruby-lang.org>
- * bcc32/Makefile.sub (config.h): bcc has finite(). [ruby-list:38940]
+ * test/zlib/test_zlib.rb (*): should close files associated with zlib.
-Tue Dec 23 16:08:16 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+Tue Dec 14 11:30:17 2010 NAKAMURA Usaku <usa@ruby-lang.org>
- * lib/rexml/encodings/US-ASCII.rb: typo. [ruby-talk:88650]
+ * test/ruby/test_argf.rb (test_inplace_rename_impossible): unlink
+ the renamed temporary file on no_safe_rename platforms.
- * test/ruby/test_system.rb: num of asserts depended on running dir.
+ * test/ruby/test_argf.rb (test_readlines_limit_0,
+ test_each_line_limit_0): should close argf because the associated
+ Tempfile object cannot unlink the temporary file when it's gc'ed
+ on some platforms (Windows, etc.)
- * test/xsd/test_noencoding.rb: rexml + without iconv/uconv cannot
- handle euc-jp. install iconv, uconv or xmlscan.
+Tue Dec 14 11:27:07 2010 NARUSE, Yui <naruse@ruby-lang.org>
-Tue Dec 23 14:13:51 2003 akira yamada <akira@ruby-lang.org>
+ * lib/minitest/unit.rb (Minitest::Unit#_run_suite): split test
+ name and its time. Thiw allows to know test's name when you are
+ running tests and meet a test which spends long time at realtime.
- * lib/uri/generic.rb (URI::Generic::check_userinfo,
- URI::Generic::check_user, URI::Generic::check_password): tests
- conflicts/depends with other components closely.
+Tue Dec 14 11:25:20 2010 NARUSE, Yui <naruse@ruby-lang.org>
- * test/uri/test_generic.rb (TestGeneric::test_set_component):
- added tets.
+ * configure.in: Add -Werror=declaration-after-statement to default
+ warning flag. If you are using GCC, this flag is useful to
+ prevent breaking VC build.
-Tue Dec 23 11:08:34 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+Tue Dec 14 10:25:57 2010 NAKAMURA Usaku <usa@ruby-lang.org>
- * test/xsd/test_noencoding.rb: rescue Errno::EINVAL and do not test.
- "euc-jp" might not be in supported encoding name list.
- [ruby-talk:88650]
+ * ext/openssl/ossl_asn1.c (ossl_asn1_decode0): how many gcc-c99isms
+ must a man mend; before he can build with VC? r30178
-Tue Dec 23 06:10:31 2003 GOTOU Yuuzou <gotoyuzo@notwork.org>
+Mon Dec 13 21:26:33 2010 NARUSE, Yui <naruse@ruby-lang.org>
- * lib/webrick/cgi.rb (CGI): add support for mod_ruby.
+ * io.c (simple_sendfile): disable the use of sendfile(2) on
+ FreeBSD. It blocks on TestIO#test_copy_stream_socket.
- * lib/webrick/cgi.rb (CGI::Socket): add check for existence of
- OpenSSL module in all HTTPS related methods.
+Mon Dec 13 18:35:33 2010 NARUSE, Yui <naruse@ruby-lang.org>
- * lib/webrick/cgi.rb (CGI::Socket#cipher): should create similar
- value to OpenSSL::SSLSocket#cipher.
+ * io.c: define USE_SENDFILE on FreeBSD or DragonFly BSD.
+ Remove Mac OS X because its argument is different from them.
- * lib/webrick/httpresponse.rb (HTTPResponse#setup_header): should
- set "connection: close" if @keep_alive is false.
+Mon Dec 13 12:00:09 2010 Tanaka Akira <akr@fsij.org>
- * lib/webrick/https.rb (HTTPrequest#meta_vars): add supprt for
- SSL_PROTOCOL, SSL_CIPHER_USEKEYSIZE and SSL_CIPHER_ALGKEYSIZE.
+ * file.c: parenthesize macro arguments.
-Mon Dec 22 23:00:05 2003 akira yamada <akira@ruby-lang.org>
+Mon Dec 13 11:21:14 2010 NARUSE, Yui <naruse@ruby-lang.org>
- * lib/uri/generic.rb (URI::Generic::check_opaque): fixed typo.
+ * io.c (simple_sendfile): added for BSD version of sendfile(2).
-Mon Dec 22 21:59:24 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Mon Dec 13 09:50:09 2010 NARUSE, Yui <naruse@ruby-lang.org>
- * ext/iconv/iconv.c (map_charset): always ensure code is a String.
+ * lib/net/http.rb (Net::HTTPRequest#set_form): Added to support
+ both application/x-www-form-urlencoded and multipart/form-data.
+ There is a similar API, Net::HTTPRequest#set_form_data, but
+ to keep its compatibility this is newly added. [ruby-dev:42729]
-Mon Dec 22 21:15:29 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Sun Dec 12 23:45:27 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * class.c (rb_mod_init_copy): always copy singleton class.
- [ruby-dev:22325]
+ * compile.c (iseq_compile_each): fix for __goto__ and __label__
+ where were totally broken.
-Mon Dec 22 20:44:36 2003 akira yamada <akira@ruby-lang.org>
+Sun Dec 12 22:45:43 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * lib/uri/generic.rb (URI::Generic#route_from): accepts urls which
- has no host-part.
+ * common.mk (ID_H_INCLUDES): now id.h depends on vm_opts.h.
- * test/uri/test_generic.rb (TestGeneric::test_route): added a test.
+Sun Dec 12 20:42:47 2010 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
-Mon Dec 22 20:38:44 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * template/id.h.tmpl: suppress all warning: "SUPPORT_JOKE" is not
+ defined. [ruby-dev:42730]
- * lib/cgi.rb: reduce eval.
+Sun Dec 12 20:35:07 2010 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
- * lib/cgi.rb (CGI::QueryExtension::read_multipart): alias path to
- local_path. [ruby-list:38883]
+ * misc/rb_optparse.zsh: update how to install.
-Mon Dec 22 20:09:31 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+ * misc/rb_optparse.zsh: avoid error when setopt noclobber.
- * test/soap/test_property.rb: remove duplicated test method.
+ * lib/optparse.rb: fix typo. pointed out at
+ <http://d.hatena.ne.jp/nagachika/20101207>.
-Mon Dec 22 18:22:04 2003 NAKAMURA Usaku <usa@ruby-lang.org>
+Sun Dec 12 13:27:35 2010 Tanaka Akira <akr@fsij.org>
- * bcc32/Makefile.sub, win32/Makefile.sub (config.h): remove
- HAVE_ISINF definition to follow previous commits of missing.h
- and win32/win32.h.
+ * eval_error.c: parenthesize macro arguments.
-Mon Dec 22 17:23:42 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Sun Dec 12 11:53:24 2010 Tanaka Akira <akr@fsij.org>
- * configure.in (ac_cv_func_setitimer): moved from defines.h
+ * error.c: parenthesize macro arguments.
- * defines.h, rubysig.h, signal.c: removed macro handling which
- should be done in configure.
+Sun Dec 12 04:01:58 2010 NARUSE, Yui <naruse@ruby-lang.org>
- * configure.in (intrinsics.h): check if present.
+ * string.c (rb_str_inspect): fix: extra back slash is added when
+ the string is dummy encoding and includes \x22 or \x5C.
- * ruby.h: include intrinsics.h if available.
+Sun Dec 12 02:42:24 2010 Aaron Patterson <aaron@tenderlovemaking.com>
- * bignum.c, marshal.c: include ieeefp.h if available.
+ * ext/openssl/ossl_asn1.c: indefinite length BER to DER encoding is
+ properly supported. Thanks Martin Bosslet! [ruby-core:33082]
- * missing.h (isinf): define as a macro if finite() and isnan()
- are available. [ruby-core:02032]
+Sat Dec 11 17:43:34 2010 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
-Mon Dec 22 17:07:31 2003 WATANABE Hirofumi <eban@ruby-lang.org>
+ * ext/bigdecimal/bigdecimal.h: suppress "warning: 'VPrint' declared
+ 'static' but never defined".
- * configure.in (mingw): set isnan, finite and isinf to yes.
+Sat Dec 11 09:24:57 2010 Tanaka Akira <akr@fsij.org>
-Mon Dec 22 13:40:19 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+ * encoding.c: parenthesize macro arguments.
- * lib/soap/property.rb: passing block by reference.
+Sat Dec 11 08:12:48 2010 Eric Hodel <drbrain@segment7.net>
-Mon Dec 22 00:32:43 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * ext/openssl/ossl.c, ext/openssl/ossl_pkey_rsa.c: Document RSA, RSA
+ encryption/decryption and PKCS #5 encryption/decryption.
- * eval.c (rb_with_disable_interrupt): use ENABLE_INTS instead of
- ALLOW_INTS which may switch context. [ruby-dev:22319]
+Sat Dec 11 06:23:41 2010 Eric Hodel <drbrain@segment7.net>
- * ext/syck/emitter.c (syck_emitter_write): str bigger than
- e->bufsize causes buffer overflow. [ruby-dev:22307]
+ * ext/openssl/ossl_x509name.c: include Comparable to provide #==.
+ Document OpenSSL::X509::Name#<=>. [Ruby 1.9-Feature#4116]
-Sun Dec 21 17:29:00 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Sat Dec 11 05:48:28 2010 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
- * class.c (rb_check_inheritable): new function. [ruby-dev:22316]
+ * ext/tk/lib/multi-tk.rb: infinite loop on method_missing at loading.
+ [ruby-dev:42716] [Ruby 1.9-Bug#4129]
- * intern.h: add prototype.
+ * ext/tk/lib/multi-tk.rb: when no eventloop is running, ruby freezes at
+ exit.
- * eval.c (superclass): use rb_check_inheritable().
+Sat Dec 11 02:23:15 2010 Aaron Patterson <aaron@tenderlovemaking.com>
- * object.c (rb_class_initialize): check argument validity.
+ * ext/openssl/extconf.rb: try pkgconfig first, then fall back to
+ normal have_library, etc. Thanks Erik Hollensbe. [ruby-core:32406]
-Sun Dec 21 16:25:10 2003 Tanaka Akira <akr@m17n.org>
+Fri Dec 10 22:33:39 2010 Tanaka Akira <akr@fsij.org>
- * lib/pathname.rb (Pathname#+): re-implemented to resolve ".." in
- beginning of the argument.
- (Pathname#join): concatenate from the last argument.
- (Pathname#parent): just use Pathname#+.
+ * dln_find.c: parenthesize macro arguments.
-Sun Dec 21 00:12:37 2003 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+Fri Dec 10 20:05:42 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * ext/tk/lib/tk.rb: add new methods (TkScrollbar#assign, assign_list)
+ * template/id.h.tmpl (ruby_method_ids): suppress warnings.
+ [ruby-dev:42730]
- * ext/tk/sample/tkmultilistframe.rb: use TkScrollbar#assign method
+Fri Dec 10 18:29:20 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Sat Dec 20 21:59:03 2003 GOTOU Yuuzou <gotoyuzo@notwork.org>
+ * ruby.c (ruby_init_loadpath_safe): relatively called non-shared
+ binary cannot be found in PATH, so use given pathname.
- * lib/webrick/httprequest.rb (HTTPRequest#meta_vars): refine regexp.
+Fri Dec 10 18:28:40 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * lib/webrick/cgi.rb (CGI#start): NPH scripts return status line
- instead of Status: header field.
+ * cygwin/GNUmakefile.in (SCRIPTPROGRAMS): ignore backup files and etc.
- * lib/webrick/cgi.rb (CGI::Socket): refine some coditions.
+ * cygwin/GNUmakefile.in (scriptbin): set executable bit.
-Sat Dec 20 16:07:14 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * tool/rbinstall.rb (install_recursive): always skip default ignored
+ files. if block is given, call it instead of calling install.
- * lib/optparse.rb (OptionParser::Completion::complete): wrong
- Regexp for word boundary. pointed out by Gavin Sinclair.
+ * tool/rbinstall.rb (bin-comm): use install_recursive.
- * lib/optparse.rb (OptionParser::make_switch): [no-] prefix was
- missing.
+Fri Dec 10 18:12:31 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Sat Dec 20 11:40:10 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * test/mkmf/base.rb (TestMkmf#config_value): extract macro value from
+ config.h.
- * lib/yaml.rb (YAML::YAML): adjust Marshal version.
+ * test/mkmf/test_sizeof.rb (TestMkmf::TestSizeof#test_sizeof_builtin),
+ (TestMkmf::TestSizeof#test_sizeof_struct): more tests.
-Sat Dec 20 03:56:02 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * lib/mkmf.rb (check_signedness): should use the prelude code.
+ [ruby-dev:42731]
- * eval.c (rb_with_disable_interrupt): prohibit thread context
- switch during proc execution. [ruby-dev:21899]
+ * lib/mkmf.rb (Logging.log_close): separate from Logging.logfile.
-Sat Dec 20 02:41:02 2003 GOTOU Yuuzou <gotoyuzo@notwork.org>
+ * test/mkmf/base.rb (TestMkmf::MKMFLOG): show mkmf.log at failures.
- * lib/webrick/cgi.rb: add file. (yet another CGI library)
+ * test/mkmf/base.rb (TestMkmf#teardown): close log file for each tests.
- * MANIFEST: add lib/webrick/cgi.rb.
+Fri Dec 10 11:36:43 2010 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
-Sat Dec 20 02:18:31 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * compile.c (enum): remove a comma at end of enumerator list.
- * misc/ruby-mode.el (ruby-calculate-indent): proper indentation
- inside of parentheses. [ruby-dev:22308]
+ * constant.h (rb_const_flag_t): ditto.
-Fri Dec 19 21:24:22 2003 GOTOU Yuuzou <gotoyuzo@notwork.org>
+ * iseq.h (enum catch_type): ditto.
- * lib/webrick/httprequest.rb (HTTPRequest#meta_vars): should not set
- HTTP_CONTENT_TYPE and HTTP_CONTENT_LENGTH.
+ * iseq.h (enum defined_type): ditto.
- * lib/webrick/https.rb (HTTPRequest#parse): should check presence
- of cert() method to detect SSLSocket.
+ * vm_core.h (enum iseq_type): ditto.
-Fri Dec 19 22:56:46 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+ * vm_core.h (enum vm_special_object_type): ditto.
- * lib/soap/property.rb (SOAP::Property#load): new method for loading
- property value into existing property tree.
+Fri Dec 10 10:47:53 2010 NARUSE, Yui <naruse@ruby-lang.org>
- * test/soap/test_property.rb: add test.
+ * sprintf.c (_HAVE_SANE_QUAD_): Don't forget LP64, r30156.
-Fri Dec 19 19:21:49 2003 akira yamada <akira@ruby-lang.org>
+Fri Dec 10 10:37:17 2010 NAKAMURA Usaku <usa@ruby-lang.org>
- * lib/runit/cui/testrunner.rb (RUNIT::CUI::TestRunner::run):
- should use Test::Unit::UI::{PROGRESS_ONLY,VERBOSE}.
+ * sprintf.c (_HAVE_SANE_QUAD_): if a certain platform has LONG_LONG in
+ 8 byte, it might be sane quad. [ruby-core:33634]
-Fri Dec 19 17:36:49 2003 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+Fri Dec 10 10:07:59 2010 NARUSE, Yui <naruse@ruby-lang.org>
- * ext/tk/sample/tkmultilistbox.rb: bug fix
+ * lib/net/http.rb: remove version 1.1 features.
- * ext/tk/sample/tkmultilistframe.rb: new sample script
+Fri Dec 10 02:18:02 2010 Aaron Patterson <aaron@tenderlovemaking.com>
-Fri Dec 19 03:44:27 2003 GOTOU Yuuzou <gotoyuzo@notwork.org>
+ * ext/openssl/ossl_x509store.c (ossl_x509stctx_cleanup): removing C
+ implementation of `cleanup`.
- * lib/webrick/httputils.rb (parse_form_data): should return an
- empty Hash if the body is empty.
+ * ext/openssl/lib/openssl/x509.rb: adding ruby implementation of
+ `cleanup`. OpenSSL::X509::StoreContext#cleanup is deprecated since
+ reusing the underlying struct doesn't make sense. [ruby-dev:42546]
-Thu Dec 18 21:47:35 2003 NAKAMURA Usaku <usa@ruby-lang.org>
+Thu Dec 9 20:14:39 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * lib/mkmf.rb (create_makefile): should remove deffile if it's
- made by miniruby. based on nobu's patch.
+ * parse.y (lvar_defined_gen, shadowing_lvar_gen, dvar_defined): no
+ warnings for unused method and block arguments.
+ [ruby-dev:42718] [ruby-dev:42724]
-Thu Dec 18 21:44:21 2003 NAKAMURA Usaku <usa@ruby-lang.org>
+Thu Dec 9 19:25:49 2010 Tanaka Akira <akr@fsij.org>
- * eval.c (stack_extend): ignore inline optimization on VC7.
+ * dln.c: parenthesize macro arguments.
- * win32/Makefile.sub (OS, RT): can override.
+Thu Dec 9 18:51:06 2010 Tanaka Akira <akr@fsij.org>
- * win32/Makefile.sub (LDFLAGS): ditto. shouldn't use pdb:none
- option. based on Tietew's patch [ruby-dev:22289]
+ * lib/webrick/accesslog.rb (WEBrick::AccessLog#format): support
+ %{remote}p for logging remote (client) port number.
+ [ruby-dev:42670]
-Thu Dec 18 16:38:44 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Thu Dec 9 11:00:30 2010 Yukihiro Matsumoto <matz@ruby-lang.org>
- * dir.c (fnmatch): unlike find_dirsep(), rb_path_next() never
- return NULL.
+ * array.c (rb_ary_dup): should copy contents only. no instance
+ variable, no class would be copied. it would affect methods
+ #sort, #reject, #transpose, #uniq, #compact, and #shuffle.
+ [ruby-core:33640]
-Thu Dec 18 15:27:59 2003 WATANABE Hirofumi <eban@ruby-lang.org>
+ * array.c (rb_ary_reverse_m): ditto.
- * lib/ipaddr.rb (IPSocket::getaddress): merge usa's patch.
- [ruby-dev:21678]
+ * array.c (rb_ary_rotate_m): ditto.
-Wed Dec 17 15:15:30 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+Wed Dec 8 21:38:40 2010 NARUSE, Yui <naruse@ruby-lang.org>
- * lib/cgi.rb (CGI::QueryExtension::Value::[]): should work like
- String#[] if more than one arguments are specified.
+ * ext/dl/lib/dl/struct.rb: clean a warning: assigned but unused
+ variable. patched by Kouhei Yanagita. [ruby-dev:42722]
- * lib/delegate.rb: avoid using common instance name as "@obj".
+ * ext/dl/lib/dl/import.rb: ditto.
- * lib/cgi.rb (CGI::QueryExtension::Value): Value is no longer
- subclass of String, but DelegateClass(String).
+Wed Dec 8 21:36:16 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * ext/curses/extconf.rb: restore function check for init_color.
- [ruby-list:38905]
+ * parse.y (shadowing_lvar_gen): fix line number. [ruby-dev:42718]
- * Makefile.in: need to specify $(MAINLIBS) for the miniruby
- generation rule.
+Wed Dec 8 20:37:11 2010 Tanaka Akira <akr@fsij.org>
- * configure.in: better FreeBSD -lc_r support.
+ * dir.c: parenthesize macro arguments.
-Wed Dec 17 00:16:14 2003 Minero Aoki <aamine@loveruby.net>
+Tue Dec 7 22:37:15 2010 Masaya Tarui <tarui@ruby-lnag.org>
- * ext/strscan/strscan.c: new method
- StringScanner#beginning_of_line? (alias #bol?)
+ * io.c (io_read): duplicate string if shared. [ruby-dev:42719]
- * ext/strscan/strscan.c: new method StringScanner#concat and #<<.
+Tue Dec 7 22:31:08 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * ext/strscan/strscan.c: StringScanner#new(str) does not duplicate
- nor freeze STR (allow destructive modification).
+ * lib/optparse.rb (OptionParser::Officious): separate completion
+ options from --help. [ruby-dev:42690]
- * test/strscan/test_stringscanner.rb: test new methods above.
+ * lib/optparse.rb (OptionParser::Completion#candidate),
+ (OptionParser::Switch#compsys): remove unused variables.
- * test/strscan/test_stringscanner.rb: test destructive string
- modification.
+Tue Dec 7 22:05:25 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Tue Dec 16 21:20:47 2003 Tanaka Akira <akr@m17n.org>
+ * transcode.c (transcode_loop): call default handler of the given
+ hash, method, proc or [] method as fallback. [ruby-dev:42692]
- * lib/pp.rb: don't use local variable `pp'.
+Tue Dec 7 21:59:37 2010 Kouhei Sutou <kou@cozmixng.org>
- * lib/prettyprint.rb: ditto.
+ * lib/rexml/light/node.rb: remove circular require.
-Tue Dec 16 13:20:43 2003 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+Tue Dec 7 21:56:01 2010 Kouhei Sutou <kou@cozmixng.org>
- * ext/tk/lib/tk.rb: condition bug of if statement on
- {pack,grid}_propagate methods
+ * test/rexml/test_light.rb: really suppress a warning.
-Tue Dec 16 03:17:29 2003 why the lucky stiff <why@ruby-lang.org>
+Tue Dec 7 21:51:57 2010 Kouhei Sutou <kou@cozmixng.org>
- * lib/yaml/rubytypes.rb: comments in strings. [ruby-talk:88012]
+ * test/rexml/test_light.rb: suppress a warning.
- * test/yaml/test_yaml.rb: add test.
+Tue Dec 7 21:14:03 2010 Tanaka Akira <akr@fsij.org>
-Tue Dec 16 01:14:44 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * debug.c: parenthesize macro arguments.
- * eval.c (catch_timer): check rb_thread_crtical in main native
- thread.
+Tue Dec 7 21:06:38 2010 Kouhei Sutou <kou@cozmixng.org>
- * eval.c (thread_timer): just sends signals periodically, to
- prevent main native thread from receiving them in critical
- section. [ruby-core:01959]
+ * lib/rexml/doctype.rb, test/rexml/test_doctype.rb: suppress warnings.
+ [ruby-core:33305]
+ Reported by Aaron Patterson. Thanks!!!
-Mon Dec 15 13:32:22 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Tue Dec 7 18:56:52 2010 NARUSE, Yui <naruse@ruby-lang.org>
- * dir.c (check_dirname): check string safety and remove extraneous
- trailing directory separators. [ruby-dev:22279]
+ * ext/nkf/lib/kconv.rb (String#kconv): fix typo and update rdoc.
+ patched by Kouhei Yanagita [ruby-dev:42696]
- * file.c: renamed and externalized rb_path_next,
- rb_path_skip_prefix, rb_path_last_separator, rb_path_end.
+Tue Dec 7 20:32:11 2010 Kouhei Sutou <kou@cozmixng.org>
- * intern.h: prototypes for rb_path_next, rb_path_skip_prefix,
- rb_path_last_separator, rb_path_end.
+ * test/rexml/test_doctype.rb: add Accessor to test case name.
-Mon Dec 15 09:27:46 2003 NAKAMURA Usaku <usa@ruby-lang.org>
+Tue Dec 7 20:31:02 2010 Kouhei Sutou <kou@clear-code.com>
- * ext/openssl/ossl_pkcs12.c (ossl_pkcs12_initialize): first argument
- of rb_protect should take an argument of VALUE.
+ * test/rexml/test_doctype.rb: Doctype -> DocType.
-Sun Dec 14 18:46:48 2003 WATANABE Hirofumi <eban@ruby-lang.org>
+Tue Dec 7 20:29:23 2010 Kouhei Sutou <kou@clear-code.com>
- * ext/socket/socket.c (Init_socket): IPv6 is not supported although
- AF_INET6 is defined on MinGW.
+ * test/rexml/test_doctype_mixin.rb: rename to ...
+ * test/rexml/test_doctype.rb: ... this to remove needless name.
- * lib/ipaddr.rb (AF_INET6): workaround in the environment which does
- not support IPv6.
+Tue Dec 7 17:03:16 2010 Shugo Maeda <shugo@ruby-lang.org>
-Sat Dec 13 18:55:16 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * lib/net/imap.rb (xlist): supported the XLIST command, which is an
+ extension by Apple and Google. patch by Geoff Youngs.
+ [ruby-core:33521]
- * ext/iconv/charset_alias.rb: preserve original order.
+Tue Dec 7 08:00:44 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * ext/iconv/extconf.rb: remove wrapper file at clean.
+ * configure.in, win32/Makefile.sub (WERRORFLAG): flag to treat
+ warnings as errors.
-Sat Dec 13 18:09:42 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * lib/mkmf.rb (Logging.postpone): yield log file object.
- * eval.c (thread_timer): use timer by sub-thread and nanosleep.
- [ruby-talk:87519]
+ * lib/mkmf.rb (xsystem): add options, :werror only right now.
- * gc.c (Init_stack): no stack adjustment for THREAD_SAFE.
+ * lib/mkmf.rb (with_werror): check as if warnings are errors.
-Sat Dec 13 17:17:59 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * lib/mkmf.rb (convertible_int): make declaration conflict
+ warnings errors not to pass wrong type. [ruby-dev:42684]
- * eval.c (proc_alloc): cache the created object at first time.
- [ruby-talk:61288], [ruby-dev:22240]
+ * lib/mkmf.rb (COMMON_MACROS): get rid of conflicts.
-Sat Dec 13 09:01:23 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * win32/Makefile.sub (WARNFLAGS): make declaration conflict
+ warnings errors if possible.
- * configure.in: check ucontext.h.
+Sun Dec 7 21:16:10 2010 Tanaka Akira <akr@fsij.org>
- * eval.c: use getcontext/setcontext() instead of setjmp/longjmp()
- on ia64 or with native thread enabled. [ruby-core:01932]
+ * cont.c: parenthesize macro arguments.
-Sat Dec 13 03:09:14 2003 why the lucky stiff <why@ruby-lang.org>
+Tue Dec 7 00:27:14 2010 Masaya Tarui <tarui@ruby-lnag.org>
- * lib/yaml/rubytypes.rb: anonymous struct fix. [ruby-core:01946]
+ * win32/win32.c (rb_w32_read): fixed more for readline,
+ and so on. [ruby-core:33511]
- * test/yaml/test_yaml.rb: add test.
+Mon Dec 6 23:18:22 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Fri Dec 12 22:36:44 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+ * test/mkmf/base.rb (TestMkmf#setup): run quietly.
- * lib/csv.rb: add Cell#to_str and Cell#to_s for /.../ =~ aCell,
- "#{aCell}" and so on.
+ * test/mkmf/test_find_executable.rb (test_find_executable): use
+ configured results.
- * test/csv/test_csv.rb: add tests.
+ * common.mk (test-build): test for build process.
-Fri Dec 12 19:33:06 2003 Minero Aoki <aamine@loveruby.net>
+Mon Dec 6 22:47:15 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * lib/fileutils.rb (mkdir): remove trailing `/' from pathes.
+ * lib/optparse.rb (OptionParser#candidate): skip separators.
- * lib/fileutils.rb (rmdir): ditto. [ruby-dev:22238]
+ * sample/optparse/opttest.rb: should not override --help.
+ [ruby-dev:42690]
- * lib/fileutils.rb (rmdir_r): ditto.
+Mon Dec 6 19:00:48 2010 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
- * lib/fileutils.rb (fu_copy_dir): check if it is a directory after
- mkdir(2).
+ * misc/rb_optparse.zsh: fix typos.
-Fri Dec 12 06:06:09 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Mon Dec 6 18:59:04 2010 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
- * eval.c (proc_invoke): fix class name in warning message for
- define_method. [ruby-dev:22235]
+ * NEWS: add new encodings.
-Thu Dec 11 21:24:43 2003 GOTOU Yuuzou <gotoyuzo@notwork.org>
+Mon Dec 6 18:56:42 2010 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
- * ext/openssl/ossl_pkcs12.[ch]: new files. add OpenSSL::PKCS12.
+ * test/ruby/test_string.rb (TestString#test_scan): add a test for
+ [ruby-core:33338] #4087.
- * ext/openssl/ossl.[ch]: ditto.
+Mon Dec 6 18:55:36 2010 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
- * ext/openssl/MANIFEST: add ossl_pkcs12.[ch].
+ * test/uri/test_common.rb (TestCommon#test_encode_www_form): add
+ tests for r30015.
-Thu Dec 11 20:54:28 2003 Minero Aoki <aamine@loveruby.net>
+Mon Dec 6 10:39:54 2010 NARUSE, Yui <naruse@ruby-lang.org>
- * lib/fileutils.rb (mkdir_p): remove trailing `/' befere mkdir(2).
- mkdir("nonexistdir/") does not work on NetBSD/Alpha 1.6.1.
+ * lib/uri/common.rb (URI::Parser#initialize_pattern):
+ refix for restrict the pattern.
- * lib/fileutils.rb (fu_list): call to_str for all arguments.
+Mon Dec 6 09:45:11 2010 Eric Hodel <drbrain@segment7.net>
-Thu Dec 11 20:07:01 2003 WATANABE Hirofumi <eban@ruby-lang.org>
+ * ext/openssl (OpenSSL): add toplevel documentation
+ * ext/openssl/ossl_ssl.c (SSLContext, SSLSocket: add additional
+ documentation
+ * ext/openssl: move "let rdoc know about mOSSL" comments so they don't
+ show up in output
- * lib/ftools.rb (makedirs): sync with fileutils.
+Mon Dec 6 09:16:46 2010 NARUSE, Yui <naruse@ruby-lang.org>
-Thu Dec 11 19:53:03 2003 Minero Aoki <aamine@loveruby.net>
+ * lib/uri/common.rb (URI::Parser#initialize_pattern):
+ workaround fix pattern of hostname for RFC 3986. [ruby-dev:42672]
- * lib/fileutils.rb (mkdir_p): catch all SystemCallErrors.
- (mkdir("C:\") causes EACCESS on Windows 2000/NTFS)
+Mon Dec 6 09:14:38 2010 NARUSE, Yui <naruse@ruby-lang.org>
-Thu Dec 11 19:08:02 2003 Minero Aoki <aamine@loveruby.net>
+ * lib/mkmf.rb (check_signedness): rename unused variable prelude.
- * lib/fileutils.rb (mkdir_p): check if it is a directory after
- mkdir(2) instead of before mkdir(2), to avoid race condition.
- [ruby-talk:87730]
- Refer: mkinstalldirs sh script, GNU mkdir(1) (coreutils 5.0)
+Sun Dec 5 17:56:36 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Thu Dec 11 18:49:30 2003 Minero Aoki <aamine@loveruby.net>
+ * class.c (make_metaclass): fix probable typo. builtin type flag
+ cannot be used with FL_TEST.
- * lib/fileutils.rb: def m( arg ) -> def m(arg).
+Sun Dec 5 12:09:27 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Thu Dec 11 11:39:43 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * lib/irb/init.rb (IRB.parse_opts): fix typo. [ruby-core:33574]
- * configure.in (ieeefp.h), numeric.c: needed for finite() on
- Solaris. [ruby-core:01921]
+Sun Dec 5 11:27:08 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * file.c (rb_stat_inspect): adjust format specifier.
+ * ruby.c (load_file_internal): decrement for ungotten line.
+ [ruby-dev:42680]
- * parse.c (arg_prepend): nodetype() is for debug use.
+Sun Dec 5 10:32:11 2010 Tanaka Akira <akr@fsij.org>
- * ruby.h (ISASCII, etc): cast to int to get rid of warning.
+ * complex.c: parenthesize macro arguments.
- * ruby.h (alloca.h): include even in GCC. [ruby-core:01925]
+Sat Dec 4 11:39:17 2010 Eric Hodel <drbrain@segment7.net>
- * ext/bigdecimal/bigdecimal.c (GetVpValue): adjust format
- specifier.
+ * ext/openssl/ossl_x509ext.c (initialize): add documentation.
- * ext/bigdecimal/bigdecimal.c (BigDecimal_prec, BigDecimal_coerce,
- BigDecimal_divmod): use rb_assoc_new() to suppress memory usage.
+Sat Dec 4 11:21:50 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * ext/bigdecimal/bigdecimal.c (BigDecimal_split): ditto.
+ * hash.c (rb_hash_update_by): new API for Hash#update.
- * ext/dl/sym.c (rb_dlsym_guardcall): guard itself should be
- volatile.
+Sat Dec 4 11:18:10 2010 Tanaka Akira <akr@fsij.org>
- * ext/iconv/iconv.c (iconv_convert): ensure actual parameter with
- format specifier.
+ * class.c: parenthesize macro arguments.
- * ext/pty/pty.c (MasterDevice, SlaveDevice, deviceNo): do not
- define unless used.
+Sat Dec 4 11:07:57 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * ext/pty/pty.c (getDevice): get rid of warning.
+ * vm_core.h (rb_vm_inc_const_missing_count): missing prototype.
- * ext/socket/socket.c (port_str, sock_s_getaddrinfo,
- sock_s_getnameinfo): FIX2INT() now returns long.
+Sat Dec 4 08:50:10 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * ext/socket/socket.c (init_inetsock_internal): uninitialized
- variable.
+ * ext/iconv/iconv.c (Init_iconv): no warnings if $VERBOSE is nil.
- * ext/syck/rubyext.c (syck_parser_assign_io): add prototype.
+Sat Dec 4 08:25:15 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * ext/syck/rubyext.c (rb_syck_mktime, yaml_org_handler): use
- ISDIGIT() instead of isdigit() to avoid warnings and for
- platforms which don't support non-ascii charater.
+ * vm_insnhelper.c (vm_call_method): revert r30064 and r30071,
+ because of [ruby-core:26761]. Bug#4106 rejected.
-Wed Dec 10 19:28:56 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Sat Dec 4 07:46:48 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * ext/stringio/stringio.c (strio_read): set EOF flag at short read.
- [ruby-dev:22223], [ruby-dev:22224]
+ * lib/mkmf.rb (String#tr_cpp): substitute * with P like as
+ autoconf.
-Wed Dec 10 18:07:25 2003 Minero Aoki <aamine@loveruby.net>
+Fri Dec 3 22:36:45 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * lib/erb.rb: new method ERB#filename(=). [ruby-dev:22208]
+ * vm_insnhelper.c (vm_call_method): protected methods should be
+ checked against the real class.
-Wed Dec 10 17:54:51 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Fri Dec 3 20:23:31 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * ext/stringio/stringio.c (strio_read): do not set EOF flag when
- requested length is zero. [ruby-dev:22214]
+ * lib/mkmf.rb (convertible_int): define printf format prefix too.
-Wed Dec 10 17:17:18 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * lib/mkmf.rb (convertible_int): detect convertible integer type.
+ port RUBY_REPLACE_INT from configure.in.
- * io.c (read_all): should return given string even if data read is
- empty. [ruby-dev:22207]
+ * lib/mkmf.rb (check_sizeof): should return integer always.
-Wed Dec 10 17:16:06 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Fri Dec 3 12:54:48 2010 NAKAMURA Usaku <usa@ruby-lang.org>
- * ext/stringio/stringio.c (strio_read): adjust behavior at reading
- beyond EOF to IO. [ruby-dev:22205]
+ * win32/Makefile.sub (RCFLAGS): VC10 and after only. fixed the problem
+ of r30015. [ruby-core:33530]
- * test/ruby/ut_eof.rb (TestEOF::Seek): test behaviors at reading
- beyond EOF.
+Fri Dec 3 12:41:52 2010 URABE Shyouhei <shyouhei@ruby-lang.org>
- * test/ruby/test_file.rb, test/stringio/test_stringio.rb: include
- TestEOF::Seek test case.
+ * gc.c (rb_objspace_free): With our "lazy-sweep" GC engine, it is
+ possible for an object to survive until its surrounding object
+ space is about to be freed. Those objects, if any, remains
+ leaked for the rest of a process life. This is problematic
+ because for instance a T_DATA object may have its own destructor
+ to terminate something.
-Wed Dec 10 15:01:19 2003 Shugo Maeda <shugo@ruby-lang.org>
+ * vm.c (ruby_vm_destruct): ruby_current_vm termination should be
+ somewhere after rb_objspace_free for above reason.
- * test/monitor/test_monitor.rb (test_cond): use Queue#deq
- instead of sleep.
+Fri Dec 3 12:17:19 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Wed Dec 10 14:45:39 2003 WATANABE Hirofumi <eban@ruby-lang.org>
+ * vm_insnhelper.c (vm_call_method): protected singleton methods should
+ be visible from same real class methods. [ruby-core:33506]
- * ext/pty/pty.c (HAVE_SYS_IOCTL_H): need to include <sys/ioctl.h>
- for TIOCSCTTY on *BSD. based on gotoyuzo's patch.
- (ruby-bugs:PR#1211)
+Fri Dec 3 07:08:42 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * ext/pty/pty.c (establishShell): should close descriptors if fork
- failed.
+ * ext/stringio/stringio.c (strio_getline): round upto next char
+ boundary. [ruby-dev:42674]
-Wed Dec 10 12:53:05 2003 WATANABE Hirofumi <eban@ruby-lang.org>
+Fri Dec 3 06:52:46 2010 Tanaka Akira <akr@fsij.org>
- * win32/win32.h: define execv() using do_aspawn().
+ * compile.c: parenthesize macro arguments.
- * process.c (proc_exec_v): remove #ifdef's which stopped needing.
+Fri Dec 3 04:08:59 2010 NARUSE, Yui <naruse@ruby-lang.org>
-Tue Dec 9 23:32:23 2003 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+ * encoding.c (enc_alias_internal): use st_insert2 and change return
+ value to int.
- * ext/tk/lib/tk.rb, ext/tk/lib/tkcanvas.rb, ext/tk/lib/tkdialog.rb,
- ext/tk/lib/tkentry.rb, ext/tk/lib/tkscrollbox.rb, ext/tk/lib/tktext.rb,
- ext/tk/sample/tkalignbox.rb, ext/tk/sample/tkcombobox.rb,
- ext/tk/sample/tkmultilistbox.rb, ext/tk/sample/tkoptdb.rb, ext/tk/sample/tktextframe.rb,
- ext/tk/sample/demos-en/dialog1.rb, ext/tk/sample/demos-en/dialog2.rb,
- ext/tk/sample/demos-jp/dialog1.rb, ext/tk/sample/demos-jp/dialog2.rb:
- overrided instance methods, which are private methods on the super
- class, are changed to 'private'
+ * encoding.c (enc_alias): follow enc_alias_internal.
-Tue Dec 9 19:53:02 2003 akira yamada <akira@ruby-lang.org>
+Fri Dec 3 01:52:43 2010 NARUSE, Yui <naruse@ruby-lang.org>
- * lib/uri/generic.rb (URI::Generic#route_from0): make case insensitive
- for host-part.
+ * encoding.c (enc_alias_internal): use xfree instead of free.
- * test/uri/test_generic.rb (test_route): added tests for the above
- change.
+Thu Dec 2 23:52:26 2010 URABE Shyouhei <shyouhei@ruby-lang.org>
-Tue Dec 9 14:10:48 2003 Tanaka Akira <akr@m17n.org>
+ * NEWS: entry for ruby_vm_at_exit().
- * io.c (rb_io_check_readable): don't call io_seek if EOF flag is set,
- to avoid clearing EOF flag.
- (rb_io_check_writable): ditto.
+ * eval.c (ruby_cleanup): bug fix around at_exit (1) timing was
+ wrong. (2) execution order was opposite.
-Tue Dec 9 02:53:55 2003 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+Thu Dec 2 23:05:14 2010 NAKAMURA Usaku <usa@ruby-lang.org>
- * ext/tk/sample/tkalignbox.rb: new sample script
+ * win32/Makefile.sub (RCFLAGS): -nologo switch is only available in
+ newer versions of rc.exe. fixed the problem of r30012.
-Tue Dec 9 00:45:00 2003 Nathaniel Talbott <ntalbott@ruby-lang.org>
+Thu Dec 2 21:28:07 2010 NARUSE, Yui <naruse@ruby-lang.org>
- * lib/test/unit/assertions.rb: renamed #assert_raises to #assert_raise
- and made the former call the latter. [ruby-core:01890]
+ * ext/json/lib/json/add/rails.rb: removed.
- * test/testunit/test_assertions.rb: ditto.
+Thu Dec 2 21:22:05 2010 NARUSE, Yui <naruse@ruby-lang.org>
-Tue Dec 9 00:07:35 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+ * encoding.c (enc_alias_internal): free the copied key and
+ return NULL when given key is already registered.
- * lib/soap/rpc/standaloneServer.rb: add 'shutdown' and 'status'
- methods as delegates to WEBrick.
+ * encoding.c (enc_alias): call set_encoding_const only when the
+ alias is not registered yet.
- * test/soap/calc/{test_calc.rb,test_calc2.rb},
- test/soap/helloworld/test_helloworld.rb,
- test/wsdl/datetime/test_datetime.rb, test/wsdl/raa/test_raa.rb:
- follow the change.
+Thu Dec 2 19:58:24 2010 URABE Shyouhei <shyouhei@ruby-lang.org>
-Mon Dec 8 22:48:03 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * vm.c (ruby_vm_at_exit): new API. This enables extension libs to
+ hook a VM termination. Right now, because the VM we have is
+ process global, most extensions do not deallocate resources and
+ leave them to Operating System's reaping userland processes. But
+ in a future we plan to have multiple VMs to run simultaneously in
+ a single process (MVM project). At that stage we can no longer
+ rely on OSes and have to manage every resources to be reclaimed
+ properly. So it is. For a forward-compatibility reason this API
+ is introduced now, encouraging you to be as gentle as you can for
+ your resources; that is, tidy up your room.
- * lib/test/unit/autorunner.rb: remove dependency to a particular
- runner. [ruby-core:01901], [ruby-list:38869]
+ * include/ruby/vm.h: ditto.
- * lib/test/unit/ui/testrunnerutilities.rb: moved output level
- constants from Console.
+ * vm_core.h (rb_vm_struct): new field.
- * lib/test/unit/ui/console/testrunner.rb: ditto.
+ * vm.c (vm_init2): initialize above new field.
- * lib/test/unit/ui/{fox,gtk,gtk2,tk}/testrunner.rb (initialize):
- accept output_level.
+ * eval.c (ruby_cleanup): trigger those hooks.
-Mon Dec 8 15:03:30 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Thu Dec 2 17:00:44 2010 Tanaka Akira <akr@fsij.org>
- * ext/syck/syck.c (syck_io_str_read): get rid of buffer overflow.
+ * bignum.c: parenthesize macro arguments.
-Mon Dec 8 13:02:11 2003 Minero Aoki <aamine@loveruby.net>
+Thu Dec 2 15:31:14 2010 NAKAMURA Usaku <usa@ruby-lang.org>
- * lib/uri/common.rb: new method URI.regexp. [ruby-dev:22121]
+ * win32/win32.c (rb_w32_read): more fix. [ruby-core:33513]
- * test/uri/test_common.rb: add test for URI.regexp.
+Thu Dec 2 13:41:43 2010 NAKAMURA Usaku <usa@ruby-lang.org>
-Mon Dec 8 12:44:14 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * win32/win32.c (rb_w32_read): workaround for console reading troubles.
+ fixed [ruby-core:33511]
- * pack.c: define swap16 and swap32 only if they are not
- defined. OpenBSD defines these macros. [ruby-dev:22181]
+Thu Dec 2 13:10:42 2010 NARUSE, Yui <naruse@ruby-lang.org>
-Sun Dec 7 20:54:17 2003 Tanaka Akira <akr@m17n.org>
+ * lib/uri/common.rb (URI.encode_www_form):
+ split key-value when the value is Array like object.
- * ext/iconv/iconv.c (map_charset): make case sensitive.
- ext/iconv/charset_alias.rb (charset_alias): don't ignore
- config.charset's information. sort aliases.
+Thu Dec 2 10:39:39 2010 NARUSE, Yui <naruse@ruby-lang.org>
-Sat Dec 6 22:58:03 2003 GOTOU Yuuzou <gotoyuzo@notwork.org>
+ * lib/net/http.rb (Net::HTTP#set_form_data):
+ use URI.encode_www_form for application/x-www-form-urlencoded.
- * ext/openssl/ossl_ssl.c (ossl_start_ssl): new function to wrap
- SSL_connect and SSL_accept; if SSL_connect (or SSL_accept) returned
- but not finished the handshake process, we should retry it.
+Thu Dec 2 10:38:40 2010 NARUSE, Yui <naruse@ruby-lang.org>
- * ext/openssl/ossl_ssl.c (ossl_ssl_connect): call ossl_start_ssl.
+ * ext/extmk.rb: remove $makeflags.defined?, it should be $mflags.
- * ext/openssl/ossl_ssl.c (ossl_ssl_accept): ditto.
+Thu Dec 2 10:19:47 2010 NAKAMURA Usaku <usa@ruby-lang.org>
- * ext/openssl/ossl_ssl.c (ossl_ssl_read): allow signal traps.
+ * win32/Makefile.sub (rc): suppress meaningless message.
-Sat Dec 6 21:45:10 2003 WATANABE Hirofumi <eban@ruby-lang.org>
+Thu Dec 2 10:09:40 2010 NARUSE, Yui <naruse@ruby-lang.org>
- * io.c (flush_before_seek): flush before seek on any platform.
+ * ext/json/generator/extconf.rb: remove the lines which set -O3
+ when -O option is not set.
+ Note that -O3 doesn't always exist.
- * configure.in: ditto.
+ * ext/json/parser/extconf.rb: ditto.
-Sat Dec 6 17:23:00 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+Thu Dec 2 10:01:59 2010 NARUSE, Yui <naruse@ruby-lang.org>
- * lib/soap/soap.rb(SOAP::Env.getenv): allow upcase environment variable
- as well as downcase one.
+ * ext/extmk.rb: define $makeflags.defined? like $mflags.
- * lib/soap/netHttpClient.rb(SOAP::NetHttpClient#proxy=): check URI.
+Thu Dec 2 07:20:20 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Fri Dec 5 23:22:30 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * lib/test/unit.rb (Test::Unit::GCStressOption): --gc-stress
+ option.
- * lib/test/unit/assertions.rb (Test::Unit::Assertions::assert_raises,
- Test::Unit::Assertions::assert_nothing_raised): use the last
- argument as message unless class object.
+ * lib/test/unit.rb (Test::Unit::Mini#_run_suites): show the result
+ even when interrupted on the way.
- * test/testunit/test_assertions.rb (test_assert_raises): test for
- multiple exception list. [ruby-core:01891]
+Thu Dec 2 07:08:38 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * test/testunit/test_assertions.rb (test_assert_nothing_raised): test
- for non-exception classes.
+ * ext/io/console/console.c (setattr): should retry on EINTR.
+ [ruby-dev:42666]
-Fri Dec 5 22:23:04 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+Thu Dec 2 02:30:50 2010 Eric Hodel <drbrain@segment7.net>
- * lib/soap/netHttpClient.rb: proxy support did not work. fixed.
+ * lib/net/http.rb: fixed positional wording to match revised order.
- * lib/soap/property.rb: add class methods for loading property from
- stream/file/propertyfile. propertyfile is a file which is located at
- somedir in $:.
+Thu Dec 2 01:24:39 2010 NARUSE, Yui <naruse@ruby-lang.org>
- * lib/soap/soap.rb, lib/soap/wsdlDriver.rb, lib/soap/rpc/driver.rb,
- lib/wsdl/importer.rb: load property from propertyfile 'soap/property'
- e.g. /usr/local/lib/ruby/site_ruby/1.8/soap/property.
+ * ext/json/lib/json/common.rb: don't use iconv on 1.9.
+ patched by Shota Fukumori [ruby-core:33164]
- * test/soap/test_property.rb, test/soap/test_streamhandler.rb: new file.
+Thu Dec 2 01:02:03 2010 NARUSE, Yui <naruse@ruby-lang.org>
-Fri Dec 5 17:26:23 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * ext/json: Update github/flori/json from 1.4.2+ to
+ e22b2f2bdfe6a9b0. this fixes some bugs.
- * eval.c (rb_exec_end_proc): maintain tmp_end_procs.
- [ruby-dev:22154]
+Thu Dec 2 00:05:44 2010 NARUSE, Yui <naruse@ruby-lang.org>
-Fri Dec 5 13:36:59 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * lib/net/http.rb: improve rdoc.
+ This change the order of chapter because such overview should
+ begin with simple examples.
+ patched by Eric Hodel [ruby-core:33469]
- * eval.c (rb_exec_end_proc): should not clear end_procs and
- ephemeral_end_procs before execution. [ruby-dev:22144]
+Wed Dec 1 22:01:49 2010 NAKAMURA Usaku <usa@ruby-lang.org>
- * eval.c (rb_obj_extend): call Module#extended hook after
- extended_object. [ruby-list:38866]
+ * numeric.c (Init_Numeric): fixed a potential bug when using bccwin32
+ ruby with Microsoft's dll, though we already gave up of supporting
+ bccwin32. [ruby-core:33503]
- * object.c (Init_Object): Module#extended defined.
+Wed Dec 1 21:43:21 2010 Tanaka Akira <akr@fsij.org>
-Fri Dec 5 13:17:30 2003 Tanaka Akira <akr@m17n.org>
+ * array.c: parenthesize macro arguments.
- * test/ruby/test_pipe.rb: use IO.pipe instead of IO.popen.
+Wed Dec 1 21:41:57 2010 Tanaka Akira <akr@fsij.org>
-Fri Dec 5 11:54:45 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * test/socket/test_addrinfo.rb: extract Errno::EADDRINUSE as a method.
- * ext/stringio/stringio.c (strio_read): follow IO#read.
+ * test/socket/test_socket.rb: ditto.
- * test/ruby/ut_eof.rb, test/ruby/test_file.rb, test/ruby/test_pipe.rb,
- test/stringio/test_stringio.rb: add EOF test.
+Wed Dec 1 15:08:32 2010 NAKAMURA Usaku <usa@ruby-lang.org>
-Fri Dec 5 02:49:35 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * test/openssl/test_ssl.rb (test_not_started_session): non socket
+ argument of SSLSocket.new is not supported on Windows.
- * lib/test/unit/assertions.rb (Test::Unit::Assertions::assert_raises):
- allow multiple exception list. [ruby-core:01884]
+Wed Dec 1 14:36:36 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * lib/test/unit/assertions.rb (Test::Unit::Assertions::assert_nothing_raised):
- check whether arguments are subclass of Exception.
+ * string.c (rb_memhash): zero-filled strings should return
+ different values. [ruby-core:33500]
-Thu Dec 4 23:54:00 2003 Rick Ohnemus <rick.ohnemus@systemware.com>
+Wed Dec 1 14:27:49 2010 Ryan Davis <ryand-ruby@zenspider.com>
- * dln.c (aix_loaderror): should not use member named 'errno' which
- might be a macro (e.g. on AIX).
+ * lib/minitest/*.rb: Imported minitest 2.0.0 r5952.
+ * test/minitest/*.rb: ditto.
+ * lib/test/unit.rb: Compatibility fix for minitest changes.
-Thu Dec 4 23:32:26 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+Wed Dec 1 10:16:41 2010 NARUSE, Yui <naruse@ruby-lang.org>
- * io.c (read_all): do not depend on lseek position.
- [ruby-dev:22026]
+ * string.c (rb_str_inspect): fix typo (not 0xFD but 0xFE).
-Thu Dec 4 22:37:26 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Wed Dec 1 09:28:27 2010 NARUSE, Yui <naruse@ruby-lang.org>
- * eval.c (rb_eval): preserve $! value when retry happens in the
- rescue clause. [ruby-talk:86697]
+ * addr2line.c: Follow .gnu_debuglink section.
+ A user of distribution provided ruby will see line
+ info if s/he has a debug package for ruby.
+ patched by Shinichiro Hamaji [ruby-dev:42655]
-Thu Dec 4 21:50:07 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Wed Dec 1 01:29:15 2010 NARUSE, Yui <naruse@ruby-lang.org>
- * lib/drb/drb.rb (DRb::DRbMessage::send_request, send_reply):
- should rescue errors and re-raise DRbConnError on write too.
- [ruby-dev:22132]
+ * string.c (rb_str_inspect): inspect as a dummy encoding string
+ when a UTF-16/32 (not BE/LE) string does not have a BOM.
+ Unicode and some RFCs say that a string labeled as UTF-16/32
+ doesn't have a BOM, it should be considered big endian.
+ But many Windows programs generates little endian UTF-16
+ strings without a BOM. So String#inspect treats a string
+ labeled UTF-16/32 without a BOM as a dummy encoding string.
+ patched by Martin Duerst. [ruby-core:33461]
-Thu Dec 4 16:41:17 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Tue Nov 30 17:04:10 2010 NARUSE, Yui <naruse@ruby-lang.org>
- * parse.y (exc_list): allow expanding list. [ruby-dev:22134]
+ * addr2line.c (parse_debug_line_cu): ignore DW_LNE_set_discriminator.
+ To ignore, it needs to read a single unsigned LEB128 integer.
-Thu Dec 4 14:09:24 2003 Minero Aoki <aamine@loveruby.net>
+Tue Nov 30 16:29:19 2010 NARUSE, Yui <naruse@ruby-lang.org>
- * test/fileutils/test_fileutils.rb (test_cp): test if the error is
- kind of SystemCallError. It is needless details that which errno
- is set on each systems.
+ * vm_dump.c: undef HAVE_BACKTRACE when the OS is FreeBSD (in other
+ words backtrace() is libexecinfo) and it is optimized.
+ This temporary hack may be also applied to other libexecinfo
+ environments.
-Thu Dec 4 13:24:13 2003 Shugo Maeda <shugo@ruby-lang.org>
+Tue Nov 30 16:23:23 2010 NARUSE, Yui <naruse@ruby-lang.org>
- * lib/monitor.rb: use Object#__send__ instead of Object#send.
+ * lib/net/http.rb: improve rdoc.
+ patched by Eric Hodel ref #4100
-Thu Dec 4 13:17:45 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+Tue Nov 30 12:23:52 2010 NAKAMURA Usaku <usa@ruby-lang.org>
- * lib/soap/streamHandler.rb: support latest released version of
- http-access2.
+ * win32/win32.c (rb_w32_read): read only 1 byte at once on console.
+ workaround of Windows bug. see [ruby-core:33460].
+ this is not the final solution.
-Thu Dec 4 13:04:44 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+Tue Nov 30 11:39:13 2010 NARUSE, Yui <naruse@ruby-lang.org>
- * lib/soap/soap.rb: add SOAP::Env module for environment repository
- such as HTTP_PROXY.
+ * lib/net/http.rb: improve rdoc.
+ patched by mathew murphy [ruby-core:33472] ref #4100
- * lib/soap/property.rb: property implementation.
+Tue Nov 30 05:03:44 2010 Eric Hodel <drbrain@segment7.net>
- * lib/soap/streamHandler.rb, lib/soap/wsdlDriver.rb,
- lib/soap/rpc/driver.rb: use soap/property.rb.
+ * lib/uri/common.rb (encode_www_form, encode_www_form_component):
+ Improve English in documentation.
- * lib/wsdl/importer.rb, lib/soap/wsdlDriver.rb, lib/soap/rpc/driver.rb:
- use SOAP::Env.
+ * ext/openssl/ossl_ssl.c (ssl_version=, ciphers=): Document
+ #ssl_version=, add documentation for #ciphers=.
- * lib/soap/netHttpClient.rb: add basic_auth, ssl_config, and cookie
- management interface, but ignored for now.
+Mon Nov 29 22:55:24 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * lib/xsd/charset.rb: add XSD::Charset.encoding= interface to set
- wiredump charset explicitly. it was fixed to 'utf-8' when iconv or
- uconv module was found.
+ * lib/uri/common.rb (URI::WFKV_): get rid of backtrack explosion
+ by nested repeat operators. [ruby-core:33464]
-Thu Dec 4 10:43:58 2003 NAKAMURA Usaku <usa@ruby-lang.org>
+Mon Nov 29 22:53:13 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * ext/dl/sym.c (rb_dlsym_guardcall): __declspec(noinline) is VC7
- feature.
+ * win32/Makefile.sub (scriptbin.mk): fix generated rules.
-Thu Dec 4 10:27:12 2003 Minero Aoki <aamine@loveruby.net>
+ * win32/win32.c (rb_w32_write_console): fix argument type.
- * lib/net/http.rb: update hyperlink to the Japanese document.
+Mon Nov 29 21:12:51 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Thu Dec 4 09:12:43 2003 GOTOU Yuuzou <gotoyuzo@notwork.org>
+ * misc/ruby-mode.el (ruby-forward-sexp): stop after literal hash
+ key labels.
- * ext/openssl/ossl_asn1.c (asn1time_to_time): should check that
- the underlying value of ASN1_TIME isn't NULL. [ruby-core:01881]
+ * misc/ruby-mode.el (ruby-font-lock-keywords): highlight literal
+ hash key labels as symbols.
-Thu Dec 4 08:29:43 2003 GOTOU Yuuzou <gotoyuzo@notwork.org>
+Mon Nov 29 18:31:31 2010 Martin Duerst <duerst@it.aoyama.ac.jp>
- * lib/webrick/server.rb (GenericServer#start): should rescue
- Exception to avoid unexpected aborting. [ruby-core:01853]
+ * test/ruby/test_transcode.rb (test_unicode_public_review_issue_121):
+ - Removed commented-out options that are no longer under discussion.
+ - Added two more tests for forthcomming clarifications.
- * lib/webrick/server.rb (GenericServer#start_thread): should check
- that peeraddr isn't nil before printing.
+Mon Nov 29 14:31:17 2010 NAKAMURA Usaku <usa@ruby-lang.org>
- * lib/webrick/httpresponse.rb (HTTPResponse#start_thread): should
- rescue Exception to avoid unexpected aborting of thread.
+ * win32/win32.c (rb_w32_isatty): use GetConsoleMode() to determine the
+ fd is console or not, just like rb_w32_write_console(). [experimental]
-Thu Dec 4 03:48:59 2003 Tanaka Akira <akr@m17n.org>
+Mon Nov 29 14:19:40 2010 NAKAMURA Usaku <usa@ruby-lang.org>
- * lib/pathname.rb (Pathname#link, Pathname#symlink): obsoleted.
- (Pathname#make_link, Pathname#make_symlink): new method.
+ * include/ruby/win32.h (rb_w32_write_console): wrong prototype.
-Thu Dec 4 01:45:24 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+Mon Nov 29 14:10:55 2010 NAKAMURA Usaku <usa@ruby-lang.org>
- * io.c (argf_read): should not terminate on empty string; wait
- until real EOF. [ruby-dev:21969]
+ * win32/win32.c (rb_w32_write_console): fixed indentation.
- * io.c (argf_read): should adjust length to read, when length is
- specified and read spans command line argument files.
+Sun Nov 28 22:13:39 2010 Koichi Sasada <ko1@atdot.net>
-Wed Dec 3 19:38:36 2003 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
+ * thread_pthread.c (NATIVE_MUTEX_LOCK_DEBUG): move and use it.
- * lib/drb/drb.rb: correct fcntl parameter. [ruby-dev:22120]
+ * ChangeLog: fix my timezone.
-Wed Dec 3 13:49:07 2003 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+Mon Nov 28 21:58:58 2010 Koichi Sasada <ko1@atdot.net>
- * ext/tk/lib/tk.rb: 'format'==>'Kernel.format' (avoid override trouble)
+ * thread_pthread.c: remove pthread_atfork().
- * ext/tk/lib/tkafter.rb: ditto.
+Mon Nov 28 21:54:22 2010 Koichi Sasada <ko1@atdot.net>
- * ext/tk/lib/tkcanvas.rb: ditto.
+ * thread_pthread.c (native_cond_*): Check return code.
+ (Some OSes except Linux return error code).
- * ext/tk/lib/tkdialog.rb: ditto.
+Sun Nov 28 21:46:21 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * ext/tk/lib/tktext.rb: ditto.
+ * thread_pthread.c (thread_start_func_1): initialize native thread
+ data immediately before starting.
-Wed Dec 3 13:28:13 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Sun Nov 28 14:56:32 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * Makefile.in (lex.c): try gperf first, and copy from the source
- directory if failed. [ruby-dev:22123]
+ * io.c (struct argf): make lineno long, and reorder members.
- * ext/extmk.rb (MTIMES): let makefiles depend to mkmf.rb.
+Sun Nov 28 14:55:42 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * lib/mkmf.rb (configuration): DLDFLAGS was duplicated.
+ * thread_win32.c (gvl_release, gvl_init): suppress warnings.
-Tue Dec 2 23:18:12 2003 Minero Aoki <aamine@loveruby.net>
+Sun Nov 28 14:48:24 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * lib/net/http.rb: wrote the warning about HTTP_PROXY environment
- variable.
+ * thread_pthread.c (gvl_release, gvl_init): suppress warnings.
-Tue Dec 2 21:31:42 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * vm_core.h (rb_vm_gvl_destroy): add prototype.
- * bin/testrb: new test runner. [ruby-core:01845]
+Sun Nov 28 14:46:24 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * lib/test/unit/autorunner.rb (Test::Unit::AutoRunner.run,
- Test::Unit::AutoRunner#process_args): take test list to run and
- options.
+ * thread_pthread.c (gvl_reinit): register atfork handler only in
+ the parent process, to get rid of dead lock.
- * lib/test/unit/autorunner.rb (Test::Unit::AutoRunner::RUNNERS,
- Test::Unit::AutoRunner#run): should not exit inside a library,
- just return the result instead.
+Sun Nov 28 12:23:57 2010 Koichi Sasada <ko1@atdot.net>
- * lib/test/unit.rb: ditto.
+ * thread.c, vm_core.h: make gvl_acquire/release/init/destruct
+ APIs to modularize GVL implementation.
- * test/runner.rb: exit with the test result.
+ * thread_pthread.c, thread_pthread.h: Two GVL implementations.
+ (1) Simple locking GVL which is same as existing GVL.
+ (2) Wake-up queued threads. The wake-up order is simple FIFO.
+ (We can make several queues to support exact priorities, however
+ this causes some issues such as priority inversion and so on.)
+ This impl. prevents spin-loop (*1) caused on SMP environments.
+ *1: Only one Ruby thread acquires GVL again and again.
+ Bug #2359 [ruby-core:26694]
-Tue Dec 2 20:18:48 2003 Eric Sunshine <sunshine@sunshineco.com>
+ * thread_win32.c, thread_win32.h: Using simple lock
+ not by CRITICAL_SECTION but by Mutex.
+ Bug #3890 [ruby-dev:42315]
- * configure.in (AC_PROG_YACC): AC_DEFINE(OLD_YACC) if Yacc is found
- instead of Bison or byacc.
+ * vm.c (ruby_vm_destruct): ditto.
- * parse.y: If OLD_YACC is defined, ensure that YYMAXDEPTH is at least
- 10000 (Bison's default) since some old versions of Yacc define it as
- low as 150 by default, which is too low for Ruby to parse some files,
- such as date/format.rb. Among other issues, the parse problem causes
- "make test" to fail.
+Sun Nov 28 04:40:00 2010 Luis Lavena <luislavena@gmail.com>
-Tue Dec 2 20:03:20 2003 Minero Aoki <aamine@loveruby.net>
+ * io.c (io_fwrite): use rb_w32_write_console under Windows.
- * test/fileutils/test_fileutils.rb: check if Pathnames are usable
- for arguments.
+ * win32/win32.c (rb_w32_write_console): added to write to write
+ Unicode using WriteConsoleW for stdout/stderr. [ruby-core:33166]
-Tue Dec 2 04:22:00 2003 Nathaniel Talbott <ntalbott@ruby-lang.org>
+Sun Nov 28 03:58:47 2010 NARUSE, Yui <naruse@ruby-lang.org>
- * lib/test/unit/assertions.rb: fixed #assert_no_match message.
+ * lib/net/http.rb: improve rdoc.
+ patched by Mike Perham [ruby-core:33433]
- * test/testunit/test_assertions.rb: ditto.
+Sat Nov 27 19:12:10 2010 Tanaka Akira <akr@fsij.org>
-Tue Dec 2 00:43:00 2003 why the lucky stiff <why@ruby-lang.org>
+ * time.c: parenthesize macro arguments.
- * ext/syck/syck.c: string buffering bug. decrementing by full
- max_size now. [ruby-core:01834]
+Sat Nov 27 18:08:18 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Mon Dec 1 21:33:08 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * time.c (leap_year_v_p): fixed typo. [ruby-dev:42631]
- * numeric.c (num_sadded): prohibit singleton method definition for
- Numerics. fill yet another gap between Fixnum and Bignum.
+Sat Nov 27 17:57:08 2010 Tanaka Akira <akr@fsij.org>
-Mon Dec 1 17:33:47 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * resolv.rb (Resolv::DNS): use the same DNS server when retry using
+ TCP. reported by Julian Mehnle. [ruby-core:32970]
- * pack.c (htov16): converts endian using swap16. htov32(), hton16,
- hton32 as well. [ruby-talk:85377]
+Sat Nov 27 15:45:27 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * pack.c (swap16): swap 2 bytes no matter how big short is on the
- platform. swap32() is also prepared.
+ * vm_dump.c (rb_vm_bugreport): see CrashReport log on Mac OS X.
- * numeric.c (rb_num2int): returns long to preserve information.
- rb_fix2int(), rb_num2uint(), rb_fix2uint() as well.
- [ruby-talk:85377]
+ * configure.in: link addr2line only for ELF.
- * numeric.c (rb_num2uint): should not check for value range if the
- source value is negative.
+Sat Nov 27 13:58:55 2010 Shugo Maeda <shugo@ruby-lang.org>
-Mon Dec 1 17:14:34 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * lib/optparse.rb (OptionParser#candidate): : was missing. Thanks,
+ Shota Fukumori. [ruby-dev:42634]
- * sample/optparse/opttest.rb: added.
+Sat Nov 27 12:07:05 2010 Yukihiro Matsumoto <matz@ruby-lang.org>
-Mon Dec 1 16:10:52 2003 Dave Thomas <dave@pragprog.com>
+ * man/ruby.1: Ruby man page from Arthur Gunn in [ruby-core:33412]
- * lib/rdoc/rdoc.rb: (etc) initial merge into main tree.
+Sat Nov 27 11:29:24 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Mon Dec 1 14:17:49 2003 Minero Aoki <aamine@loveruby.net>
+ * lib/optparse.rb (OptionParser#candidate): get rid of 1.9 syntax
+ so that BASERUBY can be 1.8.
- * lib/fileutils.rb (fu_each_src_dest0): call #to_str to allow
- Pathname for arguments. [ruby-core:01795]
+Sat Nov 27 08:16:21 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * test/fileutils/test_fileutils.rb: does much strict test on
- "same" files detecting.
+ * addr2line.c (rb_dump_backtrace_with_lines): should close fd on
+ edge case.
-Mon Dec 1 09:28:14 2003 NAKAMURA Usaku <usa@ruby-lang.org>
+Fri Nov 26 13:33:24 2010 NARUSE, Yui <naruse@ruby-lang.org>
- * bcc32/Makefile.sub, win32/Makefile.sub, wince/Makefile.sub
- (XCFLAGS): re-export $(XCFLAGS).
+ * addr2line.c: apply a patch from shinichiro.h.
- * bcc32/Makefile.sub, win32/Makefile.sub, wince/Makefile.sub
- (ARCH_FLAG): export $(ARCH_FLAG) (perhaps empty value).
+Fri Nov 26 12:21:20 2010 NARUSE, Yui <naruse@ruby-lang.org>
-Mon Dec 1 01:03:27 2003 WATANABE Hirofumi <eban@ruby-lang.org>
+ * addr2line.c: added to show source filename and line number of
+ functions in backtrace. [ruby-dev:42625]
+ a patch from shinichiro.h <shinichiro.hamaji AT gmail.com>
- * lib/mkmf.rb (TRY_LINK, link_command): added support for DLDFLAGS
- and ARCH_FLAG. [ruby-dev:22085]
+ * addr2line.h: ditto.
-Sun Nov 30 20:18:07 2003 WATANABE Hirofumi <eban@ruby-lang.org>
+ * common.mk: add addr2line.$(OBJEXT).
- * configure.in: keep ARCH_FLAG separate. export ARCH_FLAG.
- [ruby-core:01819]
+ * configure.in: check dl_iterate_phdr.
- * Makefile.in: add ARCH_FLAG to CFLAGS.
+ * vm_dump.c (rb_vm_bugreport): use rb_dump_backtrace_with_lines in
+ addr2line.c when the binary is ELF.
- * Makefile.in: add @CPPFLAGS@ to CPPFLAGS.
+Fri Nov 26 12:12:50 2010 NARUSE, Yui <naruse@ruby-lang.org>
- * lib/mkmf.rb (link_command, cc_command): use ARCH_FLAG.
+ * regcomp.c (setup_tree): restart setup_tree() for a node whose
+ AnchorNode's type is ANCHOR_PREC_BEHIND or ANCHOR_PREC_BEHIND_NOT
+ and divide_look_behind_alternatives() divided it to NT_ALT or
+ NT_LIST. [ruby-core:33370]
- * lib/mkmf.rb (configuration): add ARCH_FLAG to DLDFLAGS.
+Fri Nov 26 11:40:11 2010 NAKAMURA Usaku <usa@ruby-lang.org>
- * Makefile.in: add ARCH_FLAG to DLDFLAGS.
+ * vm_dump.c (dump_thread): get only required rights of the target
+ thread because THREAD_ALL_ACCESS causes an access error on XP.
+ reported by Masaya TARUI via IRC.
- * configure.in: should put getcwd in AC_CHECK_FUNCS, not
- AC_REPLACE_FUNCS. [ruby-core:01826]
+Fri Nov 26 11:09:07 2010 NAKAMURA Usaku <usa@ruby-lang.org>
-Sun Nov 30 18:22:48 2003 WATANABE Hirofumi <eban@ruby-lang.org>
+ * vm_dump.c (dump_thread): show the displacement from the beginning
+ of the symbol.
- * configure.in: do not override CCDLDFLAGS, LDFLAGS, XLDFLAGS,
- DLDFLAGS and LDSHARED.
+Fri Nov 26 10:48:23 2010 NAKAMURA Usaku <usa@ruby-lang.org>
- * configure.in: XCFLAGS for compiling ruby itself. ARCH_FLAG is
- reflected in CFLAGS.
+ * vm_dump.c (dump_thread): follow the output of glibc.
+ see [ruby-dev:42627]
- * lib/mkmf.rb: ditto. do not import XCFLAGS from config.status.
+Fri Nov 26 09:48:45 2010 NAKAMURA Usaku <usa@ruby-lang.org>
-Sun Nov 30 17:37:36 2003 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+ * re.c (rb_reg_initialize_str): should succeed the taint status from
+ the origin. [ruby-core:33338]
- * ext/tk/lib/tk.rb: bug fix [ruby-talk:86746]
+Fri Nov 26 09:32:37 2010 NAKAMURA Usaku <usa@ruby-lang.org>
-Sun Nov 30 13:02:00 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+ * vm_dump.c (dump_thread): seems to be necessary the 3rd argument of
+ SymGetLineFromAddr64(), even though MSDN says it can be zero.
- * lib/soap/encodingstyle/soapHandler.rb: refactoring - Simplifying
- Conditional Expressions.
+Fri Nov 26 09:03:38 2010 NARUSE, Yui <naruse@ruby-lang.org>
- * lib/wsdl/soap/definitions.rb: refactoring - Move Method.
+ * regcomp.c (onig_is_prelude): added to check whether ruby is still
+ in prelude (or other boot processes) or not.
- * test/xsd/{test_noencoding.rb,noencoding.xml}: new files. test for
- encoding unspecified XML file parsing.
+ * regcomp.c (optimize_node_left): use onig_is_prelude for printing.
- * test/wsdl/{test_fault.rb,map,datetime}: new files. test of
- SOAPFault, dateTime and Apache's Map.
+ * regcomp.c (set_optimize_info_from_tree): ditto.
-Sun Nov 30 09:35:14 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * regcomp.c (onig_compile): ditto.
- * string.c (rb_str_update): get rid of SEGV at just allocated String.
- [ruby-core:01812]
+ * regcomp.c (print_compiled_byte_code_list): print its address.
-Fri Nov 28 23:19:34 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * regcomp.c (print_indent_tree): print its contents tree of
+ ANCHOR_PREC_READ(_NOT) and ANCHOR_PREC_BEHIND(_NOT).
- * gc.c (gc_mark): explicitly check mark recursion levels, instead
- of unreliable stack length.
+Thu Nov 25 23:10:49 2010 NARUSE, Yui <naruse@ruby-lang.org>
-Fri Nov 28 22:49:56 2003 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
+ * regcomp.c (print_distance_range): use PRIuSIZE.
- * lib/rinda/rinda.rb: fix TupleSpaceProxy#read, read_all.
+ * regcomp.c (print_optimize_info): use %ld because the type of
+ calculated value of integers is long.
-Fri Nov 28 21:44:40 2003 WATANABE Hirofumi <eban@ruby-lang.org>
+ * regexec.c (onig_print_compiled_byte_code): add prototype.
- * test/fileutils/test_fileutils.rb (test_ln_s): should be a file, not
- a directory for FreeBSD.
+ * regexec.c (match_at): add 2nd argument.
-Fri Nov 28 19:37:56 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Thu Nov 25 10:29:55 2010 NAKAMURA Usaku <usa@ruby-lang.org>
- * hash.c (env_has_value, env_index): must match exactly.
+ * ext/dl/callback/mkcallback.rb (gencallback): shouldn't assume that
+ VALUE is the same size with long.
- * test/ruby/test_env.rb (test_has_value, test_index): condition for
- aboves.
+Thu Nov 25 10:03:14 2010 NAKAMURA Usaku <usa@ruby-lang.org>
-Fri Nov 28 17:59:20 2003 NAKAMURA Usaku <usa@ruby-lang.org>
+ * test/win32ole/test_err_in_callback.rb (teardown): remove tmp file
+ only when it exists.
- * test/ruby/test_env.rb: add tests for ENV.
+Thu Nov 25 01:38:25 2010 NARUSE, Yui <naruse@ruby-lang.org>
-Fri Nov 28 17:47:46 2003 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
+ * enc/trans/big5-hkscs-tbl.rb: Update table as HKSCS-2008.
+ patched by oCameLo oTnTh [ruby-core:33256]
- * lib/drb/drb.rb (DRbMessage#load): rescue Errno::* and raise
- DRbConnError.
+ * enc/big5.c: add alias Big5-HKSCS:2008 to Big5-HKSCS.
-Fri Nov 28 15:41:15 2003 Tanaka Akira <akr@m17n.org>
+Wed Nov 24 15:18:07 2010 NAKAMURA Usaku <usa@ruby-lang.org>
- * lib/pathname.rb (Pathname#realpath): obsolete the force_absolute
- argument.
+ * vsnprintf (BSD_vfprintf): use QUADINT macro only when _HAVE_SANE_QUAD_
+ macro is defined.
-Fri Nov 28 14:41:52 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+Wed Nov 24 12:47:16 2010 NAKAMURA Usaku <usa@ruby-lang.org>
- * lib/soap/streamHandler.rb: drop unused http parameters.
+ * vsnprintf (BSD_vfprintf): added VC++ compatible size specifications
+ (I, I32, I64).
- * lib/soap/encodingstyle/soapHandler.rb, lib/soap/mapping/factory.rb,
- lib/soap/mapping/mapping.rb, lib/soap/mapping/registry.rb,
- lib/wsdl/soap/complexType.rb: ApacheSOAP's map support was broken
- under WSDL dynanic client environment. fixed.
+Wed Nov 24 11:19:13 2010 NARUSE, Yui <naruse@ruby-lang.org>
- * test/wsdl/raa/*: add tests.
+ * string.c (rb_str_inspect): treat UTF-16 and UTF-32 as BE or LE.
- * lib/xsd/datatypes.rb: dateTime precision bug fix (at least, I hope.)
- bug of soap4r. XSDDateTimeImple.to_time passed a Float to
- Time.local/Time.gm as an usec, and NUM2LONG(rb_num2long for Float)
- causes rounding error.
+Wed Nov 24 06:35:32 2010 NARUSE, Yui <naruse@ruby-lang.org>
- * test/soap/test_basetype.rb, test/xsd/test_xsd.rb: add tests.
+ * enc/trans/utf_16_32.trans: add the UTF-32 converter.
-Fri Nov 28 04:15:24 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Wed Nov 24 05:40:33 2010 NARUSE, Yui <naruse@ruby-lang.org>
- * eval.c (method_arity): used wrong Proc object. [ruby-talk:86504]
+Wed Nov 24 06:13:32 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Fri Nov 28 00:47:29 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * win32/win32.c (filecp, wstr_to_mbstr, mbstr_to_wstr):
+ refactored.
- * eval.c (rb_f_exit), process.c (rb_f_exit_bang): treat true as
- success, false as failure. [ruby-dev:22067]
+Wed Nov 24 05:40:33 2010 NARUSE, Yui <naruse@ruby-lang.org>
- * eval.c (rb_f_abort, rb_thread_switch), process.c (rb_f_system): use
- ANSI macro instead of hard coded value.
+ * enc/trans/utf_16_32.trans: add a converter from UTF-8 to UTF-16.
- * eval.c (rb_f_exit), process.c (rb_f_exit_bang): use VALUEs not but
- TYPEs.
+Wed Nov 24 03:21:35 2010 NARUSE, Yui <naruse@ruby-lang.org>
-Thu Nov 27 22:05:48 2003 Akinori MUSHA <knu@iDaemons.org>
+ * enc/trans/utf_16_32.trans: raise error on unpaired upper
+ surrogates.
- * eval.c, gc.c: FreeBSD/ia64 currently does not have a way for a
- process to get the base address for the RSE backing store, so
- hardcode it for the moment.
- [submitted by: Marcel Moolenaar <marcel@FreeBSD.org>]
+Wed Nov 24 01:40:23 2010 NARUSE, Yui <naruse@ruby-lang.org>
-Thu Nov 27 17:36:42 2003 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+ * enc/utf_16_32.h: add UTF-16 and UTF-32 as a dummy encoding.
- * ext/tk/lib/tkafter.rb: bug fix on TkTimer#cancel_on_exception=(mode).
- TkTimer#wait recieves the exception of the callback.
- The exception is kept on @return_value.
+ * enc/trans/utf_16_32.trans: add a converter from UTF-16 to UTF-8.
-Thu Nov 27 16:58:48 2003 WATANABE Hirofumi <eban@ruby-lang.org>
+Tue Nov 23 21:59:47 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * win32/win32.c (rb_w32_stat): remove _fullpath() for NUL: device.
+ * win32/win32.c (wlink, rb_w32_getppid): use typedef instead of
+ repeating complicated function prototypes.
-Wed Nov 26 15:38:47 2003 WATANABE Hirofumi <eban@ruby-lang.org>
+Tue Nov 23 18:54:03 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * test/fileutils/test_fileutils.rb (test_ln_s): should take the
- existing symbolic link for OpenBSD.
+ * vm.c (rb_thread_mark): should mark self in control
+ frames. [ruby-core:33289]
-Wed Nov 26 04:48:42 2003 why the lucky stiff <why@ruby-lang.org>
+Tue Nov 23 07:57:31 2010 Tadayoshi Funaba <tadf@dotrb.org>
- * ext/syck/token.c: removed YYTOKTMP references which
- were causing buffer overflows on large block scalars,
- comments, quoted scalars and plain scalars.
+ * lib/date/delta/parser.{ry,rb}: fixed a bug of token scanner.
- * ext/syck/rubyext.c: dynamic changing of buffer size.
+Tue Nov 23 07:29:24 2010 Tadayoshi Funaba <tadf@dotrb.org>
- * ext/syck/syck.h: default buffer size of 4k.
+ * complex.c, rational.c ({nucomp,nurat}_expt): added a check.
-Wed Nov 26 00:55:30 2003 GOTOU Yuuzou <gotoyuzo@notwork.org>
+Tue Nov 23 07:27:27 2010 Tadayoshi Funaba <tadf@dotrb.org>
- * lib/webrick/httpresponse.rb: add HTTPResponse#keep_alive=.
+ * lib/date.rb (daynum): should be private.
- * lib/webrick/httpserver.rb (HTTPServer#run): should pass the
- request's keep_alive flag to the response.
+Tue Nov 23 07:22:54 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Tue Nov 25 21:41:35 2003 NAKAMURA Usaku <usa@ruby-lang.org>
+ * ChangeLog (change-log-indent-text): hanging indent.
- * defines.h (ENV_IGNORECASE): should define when DOSISH without
- human68k. [ruby-dev:22047]
+Tue Nov 23 06:30:51 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * hash.c (env_has_value, env_index): don't ignore case of value.
- [ruby-dev:22048]
+ * configure.in (SITE_DIR, VENDOR_DIR),
+ version.c (ruby_initial_load_paths): exclude directories that
+ are configured without them from $LOAD_PATH. [ruby-core:33267]
-Tue Nov 25 21:39:37 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * configure.in (rubylibprefix): No ruby, No libprefix.
- * file.c (path_check_1): honor sticky bits always.
- [ruby-talk:86273]
+Tue Nov 23 01:05:27 2010 NARUSE, Yui <naruse@ruby-lang.org>
-Tue Nov 25 20:02:14 2003 Minero Aoki <aamine@loveruby.net>
+ * vsnprintf.c (BSD_vfprintf): don't output floating point
+ when the precision is 0. [ruby-dev:42615]
- * test/fileutils/test_fileutils.rb: do test in more deep
- directory.
+Mon Nov 22 21:30:57 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * test/fileutils/test_nowrite.rb: ditto.
+ * string.c (rb_str_inspect): fix for ascii-compatible external
+ encoding and different encoding string. [ruby-core:33283]
-Tue Nov 25 19:04:23 2003 Tanaka Akira <akr@m17n.org>
+Mon Nov 22 18:45:44 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * lib/open-uri.rb (URI::Generic#find_proxy): ENV case sensitivity test
- refined.
+ * lib/mkmf.rb (create_makefile): should not duplicate rules.
+ bug fix of r29842.
-Tue Nov 25 18:13:30 2003 Minero Aoki <aamine@loveruby.net>
+Mon Nov 22 18:04:40 2010 NARUSE, Yui <naruse@ruby-lang.org>
- * test/fileutils/test_fileutils.rb: chdir Dir.tmpdir before each
- test. [ruby-dev:22045]
+ * enc/big5.c: split CP950 from Big5.
- * test/fileutils/test_nowrite.rb: ditto.
+ * enc/big5.c: split CP951 from Big5-HKSCS.
-Tue Nov 25 17:52:11 2003 Tanaka Akira <akr@m17n.org>
+ * enc/trans/big5.trans: import conversion table of Big5, Big5-HKSCS,
+ CP950, and CP951 from ICU. they need fallback conversions.
+ ref [ruby-core:33256]
+ http://source.icu-project.org/repos/icu/data/trunk/charset/data/ucm/
- * lib/open-uri.rb (URI::Generic#find_proxy): use http_proxy under CGI
- if the environment variable is case sensitive.
+ * tool/transcode-tblgen.rb (import_ucm): add to import ucm files.
-Tue Nov 25 16:41:33 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+Mon Nov 22 18:33:30 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * test/wsdl/multiplefault.wsdl, test/wsdl/test_multiplefault.rb:
- removed. this test requires extra libraries in soap4r/1.5.*.
+ * string.c (rb_str_inspect): append for each chars instead of bulk
+ copy if encoding conversion is needed. [ruby-core:33283]
-Tue Nov 25 16:24:42 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+Mon Nov 22 14:22:45 2010 NARUSE, Yui <naruse@ruby-lang.org>
- * lib/soap/**/*.rb, lib/wsdl/**/*.rb, lib/xsd/**/*.rb: changed license;
- GPL2 -> Ruby's.
+ * time.c (time_zone): use rb_locale_str_new_cstr to set encoding
+ as locale and convert its content to internal encoding.
+ [ruby-core:33278]
- * lib/soap/rpc/driver.rb, lib/soap/wsdlDriver.rb,
- lib/soap/streamHandler.rb: add interface to streamhandler.
+Mon Nov 22 11:58:11 2010 NARUSE, Yui <naruse@ruby-lang.org>
- * lib/soap/marshal.rb: raise error if parse fails.
+ * string.c (rb_str_concat): set ENC_CODERANGE_VALID when the
+ receiver is 7BIT and the argument is non ASCII.
- * lib/soap/netHttpClient.rb: add https support. Patched by
- Oliver M. Bolzer.
+Mon Nov 22 01:48:58 2010 Tadayoshi Funaba <tadf@dotrb.org>
- * lib/soap/netHttpClient.rb: dump HTTP response message body by itself.
+ * lib/date.rb: some improvements for performance.
- * lib/soap/rpc/driver.rb, lib/soap/rpc/proxy.rb,
- lib/soap/wsdlDriver.rb: add driver#mandatorycharset interface to foce
- using charset for parsing response from buggy server.
+Sat Nov 20 07:45:50 2010 Aaron Patterson <aaron@tenderlovemaking.com>
- * lib/soap/encodingstyle/soapHandler.rb: support Apache Axis's half
- typed multi-ref array.
+ * lib/mkmf.rb: adding compilation support for ObjC/ObjC++ extensions.
+ Thanks Scott Gonyea! [ruby-core:33260]
- * lib/soap/mapping/factory.rb, lib/soap/mapping/registry.rb: map
- SOAPStruct which has multi-accessors which name are the same, to an
- array.
+Sat Nov 20 01:57:55 2010 Akio Tajima <artonx@yahoo.co.jp>
- * lib/soap/rpc/element.rb: fixed illegal parameter order.
+ * common.mk: add dependency(insns.inc) to compile.obj
- * lib/soap/rpc/element.rb: element name of response message could have
- the name other than 'return'.
+Fri Nov 19 23:05:48 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * lib/wsdl/operation.rb, lib/wsdl/operationBinding.rb,
- lib/wsdl/soap/classDefCreator.rb, lib/wsdl/soap/methodDefCreator.rb,
- lib/wsdl/soap/methodDefCreatorSupport.rb: WSDL/1.1 allows plural
- fault definition in a operation. [ruby-talk:84948]
+ * win32/Makefile.sub (insns_rules.mk): remove extra backslash.
- * test/wsdl/multiplefault.wsdl, test/wsdl/test_multiplefault.rb: add
- test for above fix.
+ * cygwin/GNUmakefile.in, win32/Makefile.sub (clean): rc files are
+ made at compile time, so should be removed by clean.
- * lib/wsdl/soap/complexType.rb: support WSDL array definition with
- maxOccures="unbound".
+Fri Nov 19 22:09:46 2010 Kouhei Sutou <kou@cozmixng.org>
- * lib/xsd/charset.rb: use cp932 under emx. Patched by
- Siena. / SHINAGAWA, Norihide in [ruby-dev:21972]
+ * test/rexml/test_core.rb
+ (Tester#test_pretty_format_long_text_finite): skip a test that
+ uses long string on small memory system. [ruby-dev:42599]
- * lib/xsd/xmlparser/parser.rb: set @charset nil by default. Nil means
- 'follow encoding declaration in XML'.
+Fri Nov 19 21:07:06 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * sample/soap/digraph.rb, sample/wsdl/amazon/wsdlDriver.rb,
- sample/wsdl/googleSearch/sampleClient.rb,
- sample/wsdl/googleSearch/wsdlDriver.rb,
- test/wsdl/test_emptycomplextype.rb,
- test/wsdl/marshal/test_wsdlmarshal.rb,
- test/xsd/test_xmlschemaparser.rb: use File.open(...) { |f| f.read }
- instead of File.open(...).read. [ruby-dev:21964]
+ * lib/optparse.rb: shell completion support for zsh. based on
+ <http://d.hatena.ne.jp/rubikitch/20071002/zshcomplete>
- * test/wsdl/emptycomplextype.wsdl, test/wsdl/test_emptycomplextype.rb:
- simplify the test case.
+ * lib/optparse.rb: shell completion support for bash.
- * test/wsdl/axisArray/*: add tests for axis's array encoding.
+Fri Nov 19 00:00:00 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Tue Nov 25 16:15:29 2003 WATANABE Hirofumi <eban@ruby-lang.org>
+ * cygwin/GNUmakefile.in (SCRIPTPROGRAMS): no needs on cygwin.
- * ruby.h: don't treat Cygwin as Windows.
+ * win32/Makefile.sub (scriptbin): create script binaries.
-Tue Nov 25 15:18:28 2003 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+Thu Nov 18 23:21:23 2010 Kouhei Sutou <kou@cozmixng.org>
- * configure.in: change default value of --enable-pthread (default: no)
+ * lib/rexml/formatters/pretty.rb (REXML::Formatters::Pretty#wrap):
+ REXML::Formatters::Pretty#wrap used a recursive method call to
+ format text. This switches it to use an iterative approach.
+ [ruby-core:33245]
+ Patch by Jeremy Evans. Thanks!!!
-Tue Nov 25 07:31:16 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * test/rexml/test_core.rb: add a test for it.
- * parse.y (primary): allow newlines just before right argument
- parenthesis. (ruby-bugs:PR#1221)
+Thu Nov 18 22:58:43 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Mon Nov 24 23:32:06 2003 Tanaka Akira <akr@m17n.org>
+ * include/ruby/io.h (rb_io_buffer_t): extract from rb_io_t.
- * lib/open-uri.rb (OpenURI.open_loop, URI::HTTP#proxy_open): use
- catch/throw for redirection instead of exception.
- (OpenURI.open_loop, OpenURI.redirectable?): restrict redirection.
+Thu Nov 18 07:37:44 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Mon Nov 24 19:59:48 2003 Tanaka Akira <akr@m17n.org>
+ * Makefile.in (reconfig): force reconfigure with previous options.
- * lib/open-uri.rb (URI::Generic#find_proxy): use CGI_HTTP_PROXY
- instead of HTTP_PROXY in the CGI environment.
+ * common.mk (showconfig): show configure flags, like as
+ `config.status --config' generated by recent autoconf.
-Mon Nov 24 19:32:55 2003 WATANABE Hirofumi <eban@ruby-lang.org>
+Thu Nov 18 07:16:49 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * ext/etc/extconf.rb: check for pw_passwd in struct passwd and
- gr_passwd in struct group for DJGPP.
+ * missing/langinfo.c (strncasecmp): get rid of redefinition.
- * ext/etc/etc.c: ditto.
+Thu Nov 18 00:02:17 2010 James Edward Gray II <jeg2@ruby-lang.org>
- * ext/Setup.dj: support for curses, etc, zlib.
+ * lib/csv.rb: Upgrading output encoding with ASCII content
+ as needed. [ruby-core:33229]
-Mon Nov 24 17:00:00 2003 Tanaka Akira <akr@m17n.org>
+Wed Nov 17 23:19:21 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * lib/open-uri.rb: validate option names.
- :content_length_proc and :progress_proc option implemented.
+ * win32/configure.bat: remove quotes from arguments to be quoted.
-Mon Nov 24 14:53:10 2003 NAKAMURA Usaku <usa@ruby-lang.org>
+ * lib/mkmf.rb (create_makefile): use forward slashes in messages.
- * bcc32/Makefile.sub, win32/Makefile.sub, wince/Makefile.sub
- (XCFLAGS): output empty value instead of `-DRUBY_EXPORT'.
+ * lib/mkmf.rb (create_makefile): make extension libraries messages
+ brief.
-Sat Nov 22 23:09:45 2003 WATANABE Hirofumi <eban@ruby-lang.org>
+ * win32/Makefile.sub (MAKEDIRS): should not include silent flag.
- * configure.in: set enable_pthread to no on MinGW.
+ * common.mk (ext/ripper/ripper.c, ext/json/parser/parser.c): pass
+ Q and ECHO. [ruby-core:33226]
-Sat Nov 22 22:56:20 2003 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+Wed Nov 17 16:09:52 2010 Yuki Sonoda (Yugui) <yugui@yugui.jp>
- * configure.in: add --enable-pthread option (default: yes)
+ * test/test_tracer.rb: new test case.
+ minimal regression test for r29280.
-Sat Nov 22 22:48:46 2003 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+Wed Nov 17 16:04:23 2010 Yuki Sonoda (Yugui) <yugui@yugui.jp>
- * ext/tk/lib/tk.rb: add Tk.grab_release and fix bug of TkComposite
+ * test/ruby/envutil.rb (Test::Unit::Assersions#assert_warn):
+ new assertion to assert that a particular warning message is
+ displayed.
+ forward port from branches/ruby_1_9_2@29795.
- * ext/tk/lib/tkafter.rb: bug fix of TkAfter#start
+Wed Nov 17 15:16:48 2010 NARUSE, Yui <naruse@ruby-lang.org>
- * ext/tk/sample/tkcombobox.rb: new sample script
+ * regint.h (OnigOpInfoType): constify name.
- * ext/tcltklib/tcltklib.c: add native thread check
+ * regcomp.c (op2name): constify return value.
-Sat Nov 22 18:49:47 2003 NAKAMURA Usaku <usa@ruby-lang.org>
+ * regcomp.c (onig_print_compiled_byte_code): use PRIuPTR and
+ uintptr_t to clean warnings.
- * ext/curses/curses.c (window_nodelay): nodelay() of NetBSD's
- libcruses returns no value, just like keypad().
+ * regcomp.c (print_indent_tree): use PRIxPTR and intptr_t.
-Sat Nov 22 17:36:36 2003 NAKAMURA Usaku <usa@ruby-lang.org>
+ * regexec.c (match_at): use PRIdPTR and intptr_t.
- * bcc32/Makefile.sub, win32/Makefile.sub, wince/Makefile.sub
- (HAVE_GETCWD): output to config.h.
+Wed Nov 17 09:49:10 2010 NARUSE, Yui <naruse@ruby-lang.org>
- * bcc32/Makefile.sub, win32/Makefile.sub, wince/Makefile.sub
- (XCFLAGS): output to config.status.
+ * enc/shift_jis.c (property_name_to_ctype): fix memory leak.
-Sat Nov 22 13:10:10 2003 Minero Aoki <aamine@loveruby.net>
+ * enc/euc_jp.c (property_name_to_ctype): ditto.
- * lib/fileutils.rb (have_st_ino?): djgpp has valid st_ino.
+Wed Nov 17 08:54:04 2010 James Edward Gray II <jeg2@ruby-lang.org>
-Sat Nov 22 11:28:48 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * lib/csv.rb: Upgrading output encoding as needed. [ruby-core:33135]
- * gc.c (Init_stack): stack region is far smaller than usual if
- pthread is used.
+Tue Nov 16 22:30:39 2010 Yusuke Endoh <mame@tsg.ne.jp>
-Sat Nov 22 07:30:00 2003 Nathaniel Talbott <ntalbott@ruby-lang.org>
+ * vm_insnhelper.c (vm_throw): remove fear of undefined behavior :-)
+ Coverity Scan found this bug.
- * lib/test/unit/util/backtracefilter.rb: fixed a bug that occurred
- when an exception had no backtrace.
+Tue Nov 16 09:33:00 2010 Kenta Murata <mrkn@mrkn.jp>
- * test/testunit/util/test_backtracefilter.rb: ditto.
+ * ext/bigdecimal/lib/bigdecimal/util.rb (to_digits): avoid unused
+ variables warning, reported by Aaron Patterson.
-Fri Nov 21 16:44:18 2003 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+Tue Nov 16 06:39:31 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * ext/tk/lib/tkentry.rb: fix the encoding trouble of percent
- substitutions on validatecommand option of TkEntry widget
+ * pack.c (PACK_ITEM_ADJUST): return nil not result array and yield
+ values if block is given. [ruby-core:33193]
- * ext/tk/lib/tk.rb: fix bug on {pack|grid}_propagate() method
+Tue Nov 16 00:21:20 2010 Yusuke Endoh <mame@tsg.ne.jp>
-Fri Nov 21 16:12:11 2003 Akinori MUSHA <knu@iDaemons.org>
+ * regparse.c (and_cclass, or_cclass): fix memory leak. Coverity Scan
+ found this bug. [ruby-dev:42579]
- * ruby.1: Fix markups and grammar.
+Tue Nov 16 00:07:32 2010 Yusuke Endoh <mame@tsg.ne.jp>
-Fri Nov 21 14:49:42 2003 Minero Aoki <aamine@loveruby.net>
+ * gc.c (assign_heap_slot): fix fear of memory leak and memory
+ violation. Coverity Scan found this bug.
- * ruby.1: wrote about ruby related environment variables.
+Mon Nov 15 23:54:45 2010 Yusuke Endoh <mame@tsg.ne.jp>
-Fri Nov 21 12:28:03 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * eval_intern.h (CHECK_STACK_OVERFLOW): it was not intended to add
+ size_t to a pointer typed VALUE*. Coverity Scan found this defect.
- * marshal.c (w_extended): singleton methods should not be checked
- when dumping via marshal_dump() or _dump(). [ruby-talk:85909]
+Mon Nov 15 23:41:21 2010 Yusuke Endoh <mame@tsg.ne.jp>
-Fri Nov 21 01:40:00 2003 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+ * compile.c (iseq_set_exception_local_table, iseq_set_local_table,
+ rb_iseq_build_from_ary): fix type inconsistency (which is benign
+ because sizeof(ID) == sizeof(ID*), though). Coverity Scan found
+ these bugs.
- * configure.in: check <pthread.h>
+Mon Nov 15 22:47:27 2010 Yusuke Endoh <mame@tsg.ne.jp>
- * ruby.h: include pthread.h if existence.
- define is_ruby_native() macro when not HAVE_NATIVETHREAD
+ * vm_eval.c (rb_funcall): ensure va_end after va_init_list. Coverity
+ Scan found this bug.
- * eval.c: undef is_ruby_native() function when not HAVE_NATIVETHREAD
+Mon Nov 15 08:36:12 2010 Aaron Patterson <aaron@tenderlovemaking.com>
-Fri Nov 21 00:43:00 2003 Nathaniel Talbott <ntalbott@ruby-lang.org>
+ * lib/racc/parser.rb (do_parse, yyparse): using class eval to define
+ method and avoid __send__.
- * lib/test/unit/assertions.rb: use #__send__ instead of #send.
+Mon Nov 15 06:43:48 2010 Aaron Patterson <aaron@tenderlovemaking.com>
- * lib/test/unit/testcase.rb: ditto.
+ * etc/openssl/ossl_ssl.c (ossl_ssl_get_cert): raise exception if
+ pointer is invalid. Thanks Ippei Obayashi! [ruby-dev:42573]
-Thu Nov 20 19:19:22 2003 WATANABE Hirofumi <eban@ruby-lang.org>
+Sun Nov 14 17:57:45 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * configure.in: don't find the Cygwin's pthread library on MinGW.
+ * enc/Makefile.in (distclean): should not remove sources which are
+ distributed in tarball.
-Thu Nov 20 19:15:50 2003 Minero Aoki <aamine@loveruby.net>
+Sun Nov 14 16:48:56 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * lib/fileutils.rb (have_st_ino?): emx (OS/2 with EMX) does not
- have st_ino (always 0). [ruby-dev:21972]
+ * parse.y (parser_set_token_info): turn on/off with directives.
+ [ruby-core:25442]
- * lib/fileutils.rb (rename_cannot_overwrite_file?): emx does not
- allow overwriting files by rename(2).
+Sun Nov 14 12:05:24 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * test/fileutils/test_fileutils.rb: windows? ->
- have_drive_letter?, have_file_perm?
+ * io.c (argf_readlines): forward to current_file for arguments
+ check. http://twitter.com/nagachika/status/3634254856589312
-Thu Nov 20 17:50:58 2003 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+Sun Nov 14 08:48:06 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * ext/tk/sample/tkballoonhelp.rb: new sample script
+ * win32/setup.mak (-basic-vars-, -runtime-): suppress trailing
+ space and compiler command line.
- * ext/tk/sample/tkmultilistbox.rb: ditto
+Sun Nov 14 04:22:32 2010 Alexander Zavorine <alexandre.zavorine@nokia.com>
- * ext/tk/sample/tktextframe.rb: ditto
+ * symbian/setup (config.h): Added HAVE_LABS and HAVE_LLABS to config.h.
-Thu Nov 20 13:37:34 2003 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+ * symbian/configure.bat: Changed packaging version in line with API
+ style 3 versioning.
- * ruby.h: define is_ruby_native_thread() for no native thread
- environment
+Sat Nov 13 16:37:56 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * eval.c: ditto
+ * common.mk (showflags, help): emit messages at once.
-Thu Nov 20 12:42:47 2003 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+ * win32/Makefile.sub (MSG, EOM): remove surrounding quotes by %~I.
- * configure.in: always check existence of the pthread library
+Sat Nov 13 01:31:30 2010 Akio Tajima <artonx@yahoo.co.jp>
- * ruby.h: define macros for ruby's native thread check
+ * win32/Makefile.sub: reorder variable End Of Message (don't display it)
- * eval.c: add ruby's native thread check
+Fri Nov 12 20:52:34 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * gc.c: ditto
+ * common.mk (showflags, help): use caret to quote leading spaces on
+ Windows.
-Wed Nov 19 14:45:18 2003 Minero Aoki <aamine@loveruby.net>
+ * Makefile.in, common.mk, cygwin/GNUmakefile.in, enc/depend,
+ ext/ripper/depend, lib/mkmf.rb, win32/Makefile.sub: caddle up.
- * lib/net/http.rb (to_ary): print more friendly warning message.
+Fri Nov 12 16:35:31 2010 NARUSE, Yui <naruse@ruby-lang.org>
-Wed Nov 19 14:32:08 2003 Minero Aoki <aamine@loveruby.net>
+ * configure.in: support C level backtrace information on FreeBSD.
+ When devel/libexecinfo is installed on FreeBSD, now ruby
+ can show C level backtrace information.
+ http://www.freebsd.org/cgi/cvsweb.cgi/ports/devel/libexecinfo/
- * lib/fileutils.rb (fu_same?): add djgpp and wince.
+Fri Nov 12 09:58:30 2010 NAKAMURA Usaku <usa@ruby-lang.org>
- * lib/fileutils.rb (cannot_overwrite_file?): add wince.
+ * win32/setup.mak: use findstr.exe instead of find.exe, because all
+ target build platforms should have findstr.exe, and, find.exe often
+ means another command such as cygwin's.
-Wed Nov 19 11:04:47 2003 NAKAMURA Usaku <usa@ruby-lang.org>
+Fri Nov 12 00:30:19 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * lib/fileutils.rb (cannot_overwrite_file?, have_st_ino?): bccwin32
- is same as mswin32.
+ * win32/Makefile.sub (config.h): need PRI_LL_PREFIX.
-Wed Nov 19 07:54:00 2003 Nathaniel Talbott <ntalbott@ruby-lang.org>
+Thu Nov 11 23:38:32 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * lib/test/unit.rb: do not run tests if $! is set.
+ * configure.in: ANSI C-conforming const and volatile are mandatory
- * lib/test/unit/assertionfailederror.rb: extend StandardError instead
- Exception (irb catches the former but not the latter).
+ * configure.in (AC_C_CONST, AC_C_INLINE, AC_C_VOLATILE): check
+ before used in other checks.
-Tue Nov 18 23:31:36 2003 WATANABE Hirofumi <eban@ruby-lang.org>
+ * configure.in (RUBY_CHECK_PRINTF_PREFIX): should not break from
+ RUBY_WERROR_FLAG, so that ac_c_werror_flag gets restored.
- * missing/memmove.c (memmove): take void *, not char *.
+Thu Nov 11 23:04:44 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * missing.h (memmove): ditto.
+ * ext/iconv/iconv.c (warn_deprecated): show caller position.
- * missing.h (strchr, strrchr): return char *, not int.
+Thu Nov 11 23:03:12 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Tue Nov 18 22:20:10 2003 Minero Aoki <aamine@loveruby.net>
+ * io.c (argf_close): untie tied io before closing.
- * lib/fileutils.rb (fu_same?): temporal fix for windows.
+ * io.c (argf_write): add ARGF.write and so on.
-Tue Nov 18 19:05:04 2003 Minero Aoki <aamine@loveruby.net>
+ * io.c (argf_read_nonblock): add ARGF.read_nonblock.
- * lib/fileutils.rb (fu_same?): check by inode instead of path
- name, to detect two hard links pointing to the same content.
+Thu Nov 11 21:49:06 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * test/fileutils.rb: did not create correctly looped symlinks.
+ * lib/rdoc/stats.rb (RDoc#print): get rid of NaN.
-Tue Nov 18 18:23:05 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Thu Nov 11 21:47:12 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * ext/stringio/stringio.c (strio_read): behave as IO at empty string.
- [ruby-dev:21939], [ruby-dev:21941]
+ * common.mk (SHOWFLAGS): show compile flags.
- * ext/stringio/stringio.c (strio_getc, strio_getline): set EOF flag.
+ * common.mk: hide long command lines by default. verbose-mode is
+ turned on by V=1 as before.
+ http://jarp.does.notwork.org/diary/200605b.html#200605121
- * ext/stringio/stringio.c (strio_rewind, strio_seek, strio_ungetc):
- clear EOF flag.
+Thu Nov 11 21:32:09 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * test/stringio/test_stringio.rb: imported from [ruby-dev:21941].
+ * lib/mkmf.rb (try_func): accept variable address.
-Tue Nov 18 14:06:35 2003 Minero Aoki <aamine@loveruby.net>
+ * ext/win32ole/extconf.rb: libuuid is needed on cygwin.
- * lib/fileutils.rb (fu_each_src_dest): raise if src==dest.
- [ruby-talk:85344] [ruby-core:01699]
+Thu Nov 11 21:24:36 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * lib/fileutils.rb: use Object#is_a? instead of Class#=== to allow
- e.g. remote objects for receivers.
+ * file.c (file_expand_path): use cygwin_conv_path on cygwin 1.7 or
+ later.
- * lib/fileutils.rb: FileTest -> File.
+ * ruby.c (push_include_cygwin): ditto.
- * lib/fileutils.rb: put parentheses for arguments of File.xxxx?
+Thu Nov 11 20:49:48 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * test/fileutils/test_fileutils.rb (test_cp): test "cp a a".
+ * include/ruby/ruby.h (PRI_LL_PREFIX): format type specifier for
+ LONG_LONG may vary on platforms.
- * test/fileutils/test_fileutils.rb (test_mv): test "mv a a".
+Thu Nov 11 20:45:23 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * test/fileutils/test_fileutils.rb (test_ln): test "ln a a".
+ * configure.in (SYMBOL_PREFIX): separate from EXPORT_PREFIX.
- * test/fileutils/test_fileutils.rb (test_ln_s): test "ln_s a a".
+ * win32/mkexports.rb (Exports#each_export): use SYMBOL_PREFIX.
- * test/fileutils/test_fileutils.rb (test_install): test "install a a".
+Wed Nov 10 07:20:10 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * test/fileutils/fileasserts.rb: new method assert_symlink.
+ * cygwin/GNUmakefile.in (scriptbin): make executable file from
+ scripts with stub.
- * test/fileutils/fileasserts.rb: assert_is_directory -> assert_directory.
+ * ruby.c (load_file_internal): assume xflag for exe file as well
+ as no-shebang file.
-Mon Nov 17 19:38:49 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * tool/rbinstall.rb: install script programs.
- * file.c (getcwdofdrv): avoid using getcwd() directly, use
- my_getcwd() instead.
+ * win32/mkexports.rb (Exports#initialize): alias ruby_sysinit for
+ stub.
- * merged NeXT, OpenStep, Rhapsody ports patch from Eric Sunshine
- <sunshine@sunshineco.com>. [ruby-core:01596]
+ * win32/stub.c: stub for scripts. [EXPERIMENTAL]
-Mon Nov 17 10:50:27 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Tue Nov 9 21:57:45 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * lib/optparse.rb (OptionParser::Completion::complete): allow least
- common completion for three or more candidates.
+ * dln.c (init_funcname): allocate and build initialization
+ funciton name at once.
-Mon Nov 17 09:41:38 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Tue Nov 9 21:14:54 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * lib/test/unit/ui/tk/testrunner.rb,
- lib/test/unit/ui/gtk/testrunner.rb:
- run GUI main loop in sub thread.
+ * configure.in (AC_FUNC_GETPGRP, AC_FUNC_SETPGRP): no need when
+ not used.
- * lib/test/unit/ui/gtk2/testrunner.rb: imported from rough.
+ * configure.in (EXPORT_PREFIX): check generic prefix.
- * lib/test/unit/autorunner.rb (keyword_display): sort keywords.
+Tue Nov 9 13:24:33 2010 NARUSE, Yui <naruse@ruby-lang.org>
-Sun Nov 16 18:10:57 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * regenc.c (onigenc_minimum_property_name_to_ctype):
+ \p{...} should be case insensitive. [ruby-core:33000]
- * eval.c (rb_eval): iterator should return value from next inside
- begin/rescue/end. (ruby-bugs:PR#1218)
+ * regenc.c (onigenc_property_list_add_property):
+ ditto.
-Sun Nov 16 13:26:07 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * enc/euc_jp.c (init_property_list, property_name_to_ctype):
+ to lowercase property names.
- * marshal.c (w_object): LINK check earlier than anything else,
- i.e. do not dump TYPE_IVAR for already dumped objects.
- (ruby-bugs:PR#1220)
+ * enc/shift_jis.c (init_property_list, property_name_to_ctype):
+ ditto.
- * eval.c (rb_eval): call "inherited" only when a new class is
- generated; not on reopening.
+Tue Nov 9 13:29:36 2010 NAKAMURA Usaku <usa@ruby-lang.org>
- * eval.c (eval): prepend error position in evaluating string to
- "mesg" attribute string only when it's available and is a
- string.
+ * win32/win32.c (overlapped_socket_io): get rid of a warning of 64bit
+ mingw.
-Sun Nov 16 12:16:10 2003 Minero Aoki <aamine@loveruby.net>
+Tue Nov 9 10:44:19 2010 NARUSE, Yui <naruse@ruby-lang.org>
- * lib/net/protocol.rb: logging response body. [experimental]
- [ruby-list:38800]
+ * util.c (ruby_strtod): this code uses FPU's rounding system.
+ But x86's FPU calculates double precision floating-point
+ numbers in 80bit precision, so it fails to round the value.
+ So ensure the value is assigned a variable. [ruby-dev:42551]
+ see also [ruby-math:00802]
+ http://www.shudo.net/java-grandprix99/strictfp/
-Sun Nov 16 10:49:38 2003 Gavin Sinclair <gsinclair@soyabean.com.au>
+Tue Nov 9 07:30:15 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * lib/thread.rb (Thread.exclusive): wrap method definition in
- class Thread to enable rdoc to process.
+ * error.c (rb_syserr_new): new function to make SystemCallError
+ instance without errno. [EXPERIMENTAL]
-Sun Nov 16 09:45:23 2003 Minero Aoki <aamine@loveruby.net>
+ * error.c (rb_syserr_fail, rb_mod_syserr_fail): ditto.
- * lib/net/http.rb (set_debug_output): warn if method is called
- after #start. [ruby-dev:38798]
+Tue Nov 9 05:54:57 2010 Marc-Andre Lafortune <ruby-core@marc-andre.ca>
-Sun Nov 16 04:41:33 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * lib/*.rb: Remove unused variable warnings.
+ Patch by Run Paint [ruby-core:30991]
- * eval.c (eval): do not re-raise exception to avoid unnecessary
- exception copying, instead modify exception and internal
- information to adjust eval().
+ * lib/rubygems/*, lib/rdoc/*.rb, lib/rake/*.rb: ditto
- * eval.c (backtrace): can return the current frame information
- only if lev < -1.
+Mon Nov 8 18:26:03 2010 NARUSE, Yui <naruse@ruby-lang.org>
-Sat Nov 15 22:16:42 2003 GOTOU Yuuzou <gotoyuzo@notwork.org>
+ * util.c (ruby_hdtoa): fix type cast and bufsize.
- * /ext/openssl/ossl_x509ext.c (ossl_x509extfactory_create_ext):
- refine error message.
+Mon Nov 8 15:40:56 2010 NARUSE, Yui <naruse@ruby-lang.org>
-Sat Nov 15 10:05:40 2003 Tanaka Akira <akr@m17n.org>
+ * vsnprintf.c (BSD_vfprintf): fix precision specifier doesn't
+ work well on %f. [ruby-dev:42552]
- * lib/open-uri.rb (OpenURI.open_loop, OpenURI::HTTP#proxy_open):
- refactored to support options.
- (Buffer): maintain size by this class.
+Mon Nov 8 14:41:40 2010 NAKAMURA Usaku <usa@ruby-lang.org>
-Sat Nov 15 07:40:14 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * win32/win32.c (get_wsa_extension_function): typos.
- * eval.c (rb_method_node): new API to retrieve method body.
+Mon Nov 8 13:41:33 2010 NARUSE, Yui <naruse@ruby-lang.org>
-Fri Nov 14 13:21:30 2003 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+ * tool/enc-unicode.rb,
+ enc/unicode/name2ctype.h, enc/unicode/name2ctype.h.blt,
+ enc/unicode/name2ctype.kwd, enc/unicode/name2ctype.src:
+ Add Age property to regexp. [ruby-core:33019]
+ patched by Ammar Ali, tested by Run Paint Run Run
- * ext/tcltklib/tcltklib.c: fix (en-bugged at 2003/11/07)
+Mon Nov 8 12:16:39 2010 Ben Walton <bwalton@artsci.utoronto.ca>
- * ext/tk/lib/tkdialog.rb: TkDialog.new accepts a parent widget
- argument [ruby-talk:85066]
+ * configure.in: support -h for solaris linker when gcc not used
-Thu Nov 13 20:53:35 2003 Tanaka Akira <akr@m17n.org>
+Mon Nov 8 11:47:39 2010 NAKAMURA Usaku <usa@ruby-lang.org>
- * lib/open-uri.rb (Kernel[#.]open): hard coded URI schemes removed.
- [ruby-ext:02251]
+ * win32/win32.c (finish_overlapped_socket): refactoring.
-Thu Nov 13 19:17:00 2003 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+Mon Nov 8 11:02:21 2010 NAKAMURA Usaku <usa@ruby-lang.org>
- * lib/test/unit/ui/tk/testrunner.rb: use grid and panedwindow
- (if available)
+ * win32/win32.c (get_proc_address): refactoring.
-Thu Nov 13 17:56:41 2003 Tanaka Akira <akr@m17n.org>
+ * win32/win32.c (get_wsa_exetinsion_function): refactoring.
- * lib/open-uri.rb (OpenURI.open_uri): use File::RDONLY.
- reported by Take_tk <ggb03124@nifty.ne.jp>.
- [ruby-ext:02245]
+Mon Nov 8 09:45:35 2010 NARUSE, Yui <naruse@ruby-lang.org>
-Thu Nov 13 16:45:53 2003 GOTOU Yuuzou <gotoyuzo@notwork.org>
+ * enc/trans/gbk-tbl.rb: Add euro sign. [ruby-core:33094]
+ CP936, which is de facto definition of GBK, has it.
+ http://msdn.microsoft.com/en-us/goglobal/cc305153.aspx
- * ext/openssl/ossl_x509req.c (ossl_x509req_to_der): add function for
- X509::Request#to_der.
+Mon Nov 8 07:26:20 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Thu Nov 13 11:31:14 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * configure.in: check only the first symbol to get rid of
+ duplication. [ruby-core:33084] #4031
- * lib/optparse.rb (OptionParser::Completion#complete): prior shorter
- name to containing longer name.
+Sun Nov 7 10:13:30 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Thu Nov 13 06:08:54 2003 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+ * configure.in (NM): check on all platforms. #4031
- * ext/tk/lib/tk.rb: stop freezing some classes
+Sun Nov 7 06:16:33 2010 Aaron Patterson <aaron@tenderlovemaking.com>
- * ext/tk/lib/multi-tk.rb: ditto.
+ * test/openssl/test_ocsp.rb: adding test for r29699. Thanks Elise
+ Huard! [ruby-core:32460]
-Wed Nov 12 17:32:49 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Sat Nov 6 07:33:08 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * lib/test/unit/assertions.rb (assert_throws, assert_nothing_thrown):
- uncaught throw in sub thread raises ThreadError.
+ * configure.in (rb_cv_export_prefix): check for prefixed
+ underscore of exported symbols
- * lib/test/unit/ui/tk/testrunner.rb (setup_ui): "expand" is not
+ * tool/rbinstall.rb (bin-comm): prepend prolog shell script if
necessary.
-Wed Nov 12 14:09:43 2003 Shugo Maeda <shugo@ruby-lang.org>
-
- * test/monitor/test_monitor.rb: fix the timing problem by Queue.
-
-Wed Nov 12 12:59:44 2003 Shugo Maeda <shugo@ruby-lang.org>
-
- * test/monitor/test_monitor.rb: added.
-
-Wed Nov 12 10:14:28 2003 Shugo Maeda <shugo@ruby-lang.org>
-
- * lib/monitor.rb: refactored. Thanks, Gennady Bystritsky.
-
-Wed Nov 12 06:11:39 2003 GOTOU Yuuzou <gotoyuzo@notwork.org>
-
- * ext/openssl/ossl.c (ossl_x509_sk2ary, ossl_x509crl_sk2ary):
- add functions to convert STACK into Array.
-
- * ext/openssl/ossl.h: add prototypes.
-
- * ext/openssl/ossl_pkcs7.c (ossl_pkcs7_set_certificates,
- ossl_pkcs7_get_certificates, ossl_pkcs7_get_crls,
- ossl_pkcs7_set_crls): add functions for PKCS7#certificates=
- PKCS7#certificates, PKCS7#crls= and PKCS7#crls.
-
-Wed Nov 12 00:47:00 2003 Nathaniel Talbott <ntalbott@ruby-lang.org>
-
- * lib/test/unit/ui/testrunnermediator.rb: should require 'test/unit'.
-
-Tue Nov 11 23:54:00 2003 Nathaniel Talbott <ntalbott@ruby-lang.org>
-
- * lib/test/unit/ui/gtk/testrunner.rb: added a rescue clause to handle
- the case when the requested font is not available.
-
-Tue Nov 11 22:44:08 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * io.c (appendline): file may not end with newline. a bug if
- READ_DATA_PENDING_PTR is defined. [ruby-talk:84925]
-
-Tue Nov 11 10:42:41 2003 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/lib/tk.rb: raise an exception when creating TkWindow
- object, because TkWindow class is an abstract class.
-
-Tue Nov 11 03:30:43 2003 GOTOU Yuuzou <gotoyuzo@notwork.org>
-
- * lib/ext/openssl/ossl_conf.c (ossl_config_get_value): return nil
- if the specified value doesn't exist.
-
- * lib/ext/openssl/ossl_conf.c (ossl_config_get_section): return
- a empty hash if the specified section doesn't exist.
-
-Mon Nov 10 11:40:29 2003 Shugo Maeda <shugo@ruby-lang.org>
-
- * lib/monitor.rb (wait): return true on signal/broadcastfalse and
- false on timeout. Thanks Gennady Bystritsky.
-
-Mon Nov 10 00:07:10 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * parse.y (primary): primary_value may be 0 when syntax error.
- [ruby-talk:84893]
-
-Sun Nov 9 02:05:00 2003 Nathaniel Talbott <ntalbott@ruby-lang.org>
-
- * lib/test/unit/assertions.rb: un-deprecated #assert_not_nil to
- maintain symmetry with #assert_nil. Also added better output for
- #assert_kind_of.
-
- * test/testunit/tc_assertions.rb: ditto.
-
-Sat Nov 8 18:50:20 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
-
- * test/wsdl/raa/*: add new testcase for WSDL loading, parsing and
- reading.
-
- * test/soap/marshal/*: backport from soap4r/1.5.1. all differences are
- for ruby/1.6.
-
- * lib/soap/*: backport from soap4r/1.5.1. all differences are for
- ruby/1.6.
-
- * lib/wsdl/data.rb, lib/wsdl/xmlSchema/data.rb: move definition of
- ArrayTypeAttrName from ::WSDL::XMLSchema::* to ::WSDL::*.
- [ruby-talk:84813]
-
- * lib/wsdl/soap/definitions.rb: element name typo in custom exception
- struct definition which is needed for wsdlDriver; camelCase ->
- underscore_name.
-
-Sat Nov 8 13:49:50 2003 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * configure.in: improvement of pthread check
-
-Sat Nov 8 13:28:46 2003 Takaaki Tateishi <ttate@ttsky.net>
-
- * ext/dl/sym.c: Add DL.win32_last_error and DL.last_error.
- Thanks, Kaoru Shirai.
-
-Sat Nov 8 06:19:38 2003 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tcltklib/tcltklib.c: To fix 'pthread-enabled Tcl/Tk' problem,
- TclTkIp#_eval calls Tcl_Eval() on the mainloop thread only
- (queueing a handler to the EventQueue).
-
- * ext/tcltklib/README.1st: edit the description of '--with-pthread-ext'
-
-Fri Nov 7 23:23:04 2003 Tanaka Akira <akr@m17n.org>
-
- * lib/pathname.rb (Pathname#+): if self or the argument is `.', return
- another.
- (Pathname#parent): if self is `.', return `..'.
- (Pathname#children): if self is `.', don't prepend self for a
- pathname in a result.
- (Pathname#join): re-implemented using Pathname#+.
- (Pathname#find): if self is `.', remove `./' prefix of yielding
- pathname.
-
-Fri Nov 7 10:23:24 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/socket/socket.c (make_hostent): get rid of SEGV on aliases
- lookup failure. (ruby-bugs:PR#1215)
-
-Fri Nov 7 04:08:05 2003 UENO Katsuhiro <katsu@blue.sky.or.jp>
-
- * ext/zlib/zlib.c (Init_zlib): define Zlib::GzipReader#each_line as
- an alias of Zlib::GzipReader#each.
-
-Fri Nov 7 01:03:16 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * eval.c (rb_load): save and restore rb_prohibit_interrupt.
- [ruby-dev:21857]
-
-Thu Nov 6 18:05:07 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * io.c (rb_io_inspect): show the path also at a closed file.
- [ruby-dev:21851]
-
-Thu Nov 6 11:42:07 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * ext/stringio/stringio.c (strio_set_string, strio_reopen): check
- tainted.
-
- * ext/stringio/stringio.c (strio_copy, strio_ungetc, strio_write,
- strio_putc): add infection.
-
- * ext/stringio/stringio.c (strio_path): just nil. [ruby-dev:21846]
-
- * ruby.c (proc_options): reserve searched script path in the
- source file name table. [ruby-list:38765]
-
- * lib/optparse.rb (OptionParser::Completion#complete): default not to
- ignore case on completion. [ruby-talk:84726]
-
- * win32/win32.c (make_cmdvector): process backslashes even if a quote
- is not enclosed.
-
-Wed Nov 5 23:49:45 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
-
- * sample/openssl/gen_csr.rb: there (at least) is a CA which does not
- accept DN in UTF8STRING format. it's a sample.
-
-Wed Nov 5 22:55:16 2003 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * configure.in, eval.c, signal.c: : add '--with-pthread-ext'
- option to fix the pthread trouble on 'tcltklib'
-
- * ext/tcltklib/README.1st: add the description of '--with-pthread-ext'
-
- * ext/tk/lib/tktext.rb: add TkText#text_copy, text_cut, text_paste
- to support Tcl/Tk8.4's tk_textCopy, tk_textCut, tk_textPaste
-
- * ext/tk/lib/tk.rb: add TkMenu#set_focus support Tcl/Tk's
- tk_menuSetFocus
-
-Wed Nov 5 17:33:45 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * eval.c (rb_load): allow interrupt during loaded program
- evaluation. [ruby-dev:21834]
-
- * hash.c (rb_hash_fetch): always warn if default argument and a
- block are supplied at the same time. [ruby-dev:21842]
-
- * hash.c (env_fetch): ditto.
-
- * array.c (rb_ary_fetch): ditto.
+ * configure.in (LIBRUBY_RELATIVE): use rpath token expansion.
-Wed Nov 5 19:08:47 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Sat Nov 6 07:24:01 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * lib/optparse.rb (OptionParser::Switch::PlacedArgument::parse):
- do not remove next argument if empty value is placed.
+ * template/ruby.pc.in (arch, sitearch): reordered.
- * test/optparse: added.
+ * configure.in: keep failed file.
-Wed Nov 5 17:05:18 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Sat Nov 6 07:03:49 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * lib/test/unit/ui/gtk/testrunner.rb: typo.
+ * process.c (rb_fork_err): save errinfo before fdopen.
-Wed Nov 5 11:13:32 2003 NAKAMURA Usaku <usa@ruby-lang.org>
+Sat Nov 6 00:43:58 2010 Aaron Patterson <aaron@tenderlovemaking.com>
- * string.c: add #include "version.h". this file still depends on it.
+ * ext/openssl/ossl_ocsp.c (ossl_ocspcid_initialize): an optional
+ parameter may be used to specify the OpenSSL::OCSP::CertificateId on
+ initialization. Thanks Elise Huard! [ruby-core:32460]
- * Makefile.in, bcc32/Makefile.sub, win32/Makefile.sub,
- wince/Makefile.sub: add version.h dependency to string.c.
+Fri Nov 5 12:23:01 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Wed Nov 5 09:14:23 2003 Shugo Maeda <shugo@ruby-lang.org>
+ * test/ruby/test_{process,system}.rb (test_fallback_to_sh):
+ meaningless and wrong tests where /bin/sh does not exist.
- * lib/monitor.rb: revert to the previous revision.
+ * process.c (proc_spawn_v): should spawn, not exec.
-Wed Nov 5 08:39:51 2003 GOTOU Yuuzou <gotoyuzo@notwork.org>
+Fri Nov 5 01:21:31 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * lib/webrick/https.rb (HTTPRequest#parse): set @client_cert_chain.
+ * process.c (proc_exec_v, proc_spawn_v): try to execute with sh if
+ no shebang. [ruby-core:32745] [EXPERIMENTAL]
- * lib/webrick/https.rb (HTTPRequest#meta_vars): create
- SSL_CLIENT_CERT_CHAIN_n from @client_cert_chain.
+Fri Nov 5 00:39:00 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * ext/openssl/ossl_ssl.c (ossl_ssl_get_peer_cert_chain): return nil
- if no cert-chain was given.
+ * io.c (rb_io_readlines, rb_io_each_line): limit must not be zero.
+ a patch from Tomoyuki Chikanaga at [ruby-dev:42538]. #4024
-Tue Nov 4 23:44:48 2003 NAKAMURA Usaku <usa@ruby-lang.org>
+Fri Nov 5 00:14:15 2010 Aaron Patterson <aaron@tenderlovemaking.com>
- * bcc32/Makefile.sub, win32/Makefile.sub, wince/Makefile.sub:
- remove needless version.h dependency.
+ * ext/fiddle/extconf.rb: fixing ffi library location on windows.
+ Thanks Usa! [ruby-core:32930]
-Tue Nov 4 23:38:43 2003 WATANABE Hirofumi <eban@ruby-lang.org>
+Thu Nov 4 20:04:44 2010 Koichi Sasada <ko1@atdot.net>
- * class.c, hash.c, string.c: remove #include "version.h".
+ * gc.c (rb_newobj): force garbage_collect() if GC.stress == true.
- * Makefile.in: remove needless version.h dependency.
+Thu Nov 4 19:48:22 2010 Koichi Sasada <ko1@atdot.net>
-Tue Nov 4 06:54:52 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * ChangeLog: missed to write a last ChangeLog.
- * io.c (read_all): fptr->f may be NULL, if IO is closed in the
- signal handler.
+ * gc.c (gc_finalize_deferred): removed.
- * io.c (io_read): ditto.
+ * gc.c (rb_gc_finalize_deferred): Do not invoke a free_unused_heaps().
- * string.c (get_pat): remove 1.8.0 warning code.
+Thu Nov 4 19:45:27 2010 Koichi Sasada <ko1@atdot.net>
- * string.c (rb_str_match): extend warning until 1.8.2.
+ * gc.c (run_final): do not need argument obj.
- * string.c (rb_str_match2): ditto.
+Thu Nov 4 19:26:10 2010 Koichi Sasada <ko1@atdot.net>
- * class.c (class_instance_method_list): remove 1.8.0 warnings.
- method_list now recurs. [ruby-dev:21816]
+ * gc.c (before_gc_sweep): fix commit miss.
- * class.c (rb_obj_singleton_methods): ditto.
+Thu Nov 4 19:20:46 2010 Koichi Sasada <ko1@atdot.net>
- * array.c (rb_ary_select): remove select with block.
- [ruby-dev:21824]
+ * gc.c (after_gc_sweep, before_gc_sweep):
+ invoke rb_sweep_method_entry() as soon as possible.
- * hash.c (rb_hash_select): ditto.
+Thu Nov 4 19:13:58 2010 Koichi Sasada <ko1@atdot.net>
- * hash.c (env_select): ditto.
+ * gc.c (after_gc_sweep, slot_sweep): finalizers should be invoked
+ as soon as possible.
- * re.c (match_select): ditto.
+Thu Nov 4 10:30:40 2010 URABE Shyouhei <shyouhei@ruby-lang.org>
- * struct.c (rb_struct_select): ditto.
+ * configure.in (--with-valgrind): Now this option is default on.
+ You can still explicitly disable this feature by specifying
+ --without-valgrind.
-Mon Nov 3 22:53:21 2003 Minero Aoki <aamine@loveruby.net>
+Thu Nov 4 02:06:16 2010 Yusuke Endoh <mame@tsg.ne.jp>
- * lib/racc/parser.rb: synchronize with Racc 1.4.4.
+ * cont.c (fiber_t_alloc): raise an error when fiber is going to be
+ initialized twice. [ruby-dev:42524]
- * ext/racc/cparse/cparse.c: ditto.
+Thu Nov 4 02:04:25 2010 Yusuke Endoh <mame@tsg.ne.jp>
- * ext/racc/cparse/cparse.c (parse_main): should abort when
- the length of LR state stack <=1, not ==0.
+ * cont.c (rb_fiber_resume): raise an "double resume" error when root
+ fiber is going to be resumed. [ruby-dev:42523]
-Mon Nov 3 08:50:47 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+Wed Nov 3 14:17:18 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * process.c (check_uid_switch): remove duplicated error messages.
+ * lib/ostruct.rb (OpenStruct#delete_field): also undefine
+ accessor methods. [ruby-core:33010]
- * process.c (check_gid_switch): ditto.
+Wed Nov 3 14:13:46 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Sun Nov 2 02:28:33 2003 GOTOU Yuuzou <gotoyuzo@notwork.org>
+ * string.c (rb_enc_cr_str_buf_cat): concatenation of valid
+ encoding string and invalid encoding string should result
+ invalid encoding. [ruby-core:33027]
- * lib/webrick/ssl.rb: new option :SSLExtraChainCert.
+Wed Nov 3 08:58:59 2010 Koichi Sasada <ko1@atdot.net>
-Sun Nov 2 01:02:04 2003 Akinori MUSHA <knu@iDaemons.org>
+ * gc.c, vm.c, vm_core.h: remove USE_VALUE_CACHE option.
- * string.c (rb_str_hash): Update the HASH_PERL alternative hash
- algorithm in sync with Perl 5.8.
+Wed Nov 3 07:47:25 2010 Yukihiro Matsumoto <matz@ruby-lang.org>
- * st.c (strhash): Ditto.
+ * lib/irb/ruby-lex.rb (RubyLex#identify_string): parse multiple
+ regex options. a patch from Heesob Park in [ruby-core:32988].
-Sat Nov 1 18:21:09 2003 GOTOU Yuuzou <gotoyuzo@notwork.org>
+Wed Nov 3 07:33:57 2010 Tanaka Akira <akr@fsij.org>
- * ext/openssl/ossl_ssl.c (ossl_ssl_peer_cert_chain): add new method
- SSLSocket#peer_cert_chain.
+ * vm_method.c (rb_clear_cache_by_class): just return if the class has
+ no method. reported by Eric Wong. [ruby-core:32689]
- * ext/openssl/ossl_x509req.c (GetX509ReqPtr): new function
- which returns underlying X509_REQ.
+Tue Nov 2 22:50:25 2010 Aaron Patterson <aaron@tenderlovemaking.com>
- * ext/openssl/ossl_x509ext.c (ossl_x509extfactory_set_issuer_cert,
- ossl_x509extfactory_set_subject_cert, ossl_x509extfactory_set_crl,
- ossl_x509extfactory_set_subject_req, ossl_x509extfactory_set_config):
- use underlying C struct without duplication not to leak momory.
+ * ext/psych/lib/psych/visitors/visitor.rb (initialize): push accessor
+ methods to subclass that actually uses them.
-Sat Nov 1 01:49:03 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+Tue Nov 2 22:47:08 2010 Aaron Patterson <aaron@tenderlovemaking.com>
- * lib/soap/mapping/factory.rb: mark marshalled basetype objects when
- @allow_original_mapping is true. multi-referencing basetype node is
- prohibited in SOAP/1.1 encoding but soap4r's original ruby object
- mapping requires basetype to be marked to detect self referencing
- loop. e.g. o = 1; o.instance_eval { @iv = o } soap4r's original
- mapping is only used through soap/marshal API.
+ * ext/psych/lib/psych/visitors/visitor.rb (accept): switch to
+ a dispatch cache rather than case / when statement.
- * test/soap/marshal/test_marshal.rb: add tests for self referencing
- immutable objects.
+Tue Nov 2 21:46:52 2010 Kouhei Sutou <kou@cozmixng.org>
- * test/soap/calc/test_calc_cgi.rb: fix test name.
+ * NEWS: fix a typo.
-Fri Oct 31 22:26:29 2003 Takaaki Uematsu <uema2x@jcom.home.ne.jp>
+Tue Nov 2 20:10:32 2010 Tajima Akio <artonx@yahoo.co.jp>
- * wince/string_wce.c (strrchr): should decrement pointer.
+ * test/rake/test_tasks.rb: clear env var which is used by the test.
+ [ruby-dev:42508]
- * wince/Makefile.sub: correct a range of isdigit().
+Tue Nov 2 00:25:54 2010 NAKAMURA Usaku <usa@ruby-lang.org>
-Fri Oct 31 12:55:24 2003 WATANABE Hirofumi <eban@ruby-lang.org>
+ * ext/socket/extconf.rb: win64 is just same with win32 about socket.
+ notice: but wince is not same.
- * configure.in, lib/mkmf.rb: add RPATHFLAG for NetBSD.
- [ruby-dev:21791]
+Mon Nov 1 21:25:57 2010 URABE Shyouhei <shyouhei@ruby-lang.org>
- * bcc32/Makefile.sub, win32/Makefile.sub, win32/Makefile.sub: ditto.
+ * main.c: <stdlib.h> is needed, to introduce the getenv(3)
+ prototype declaration. Without it a C compiler shall infer
+ the getenv type as "int getenv(...);", but this is totally
+ wrong, especially when your machine's sizeof(int) and
+ sizeof(char*) differs. On such environment a return value
+ of getenv(3), which is in fact a char*, might first casted
+ into a int (loses data here), and then casted back to char*
+ by automatic integral promotion to fit to the prototype of
+ ruby_set_debug_option().
-Fri Oct 31 01:38:14 2003 NAKAMURA Usaku <usa@ruby-lang.org>
+Sun Oct 31 23:27:09 2010 Koichi Sasada <ko1@atdot.net>
- * wince/Makefile.sub, win32/Makefile.sub (.y.c): allow white spaces
- at the beginning of line to remove by sed. (ruby-bugs-ja:PR#580)
+ * gc.c (finalizer_table, objspace->final.table):
+ Create finalizer_table at Init_heap().
+ Remove all null checks of finalizer_table.
-Fri Oct 31 01:02:24 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * gc.c (mark_tbl): skip if no table entries.
- * compar.c (cmp_equal): protect exceptions from <=> comparison
- again. returns nil if any exception or error happened during
- comparison.
+ * gc.c (slot_swee): remove useless need_call_final check.
- * eval.c (search_required): should update *featurep when DLEXT2 is
- defined. (ruby-bugs-ja:PR#581)
+Sun Oct 31 22:32:08 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Thu Oct 30 23:41:04 2003 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
+ * gc.c (rb_objspace_free): finalizers should be called separately
+ from freeing objspace. [ruby-dev:42479]
- * lib/drb/drb.rb: add DRbArray
+Sun Oct 31 22:24:14 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * lib/drb/invokemethod.rb: fix Hash#each problem. [ruby-dev:21773]
+ * eval.c (ruby_cleanup): free current VM and its objspace even
+ when exiting by SystemExit.
- * lib/drb/unix.rb: add LoadError. [ruby-dev:21743]
+Sun Oct 31 22:10:56 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Thu Oct 30 23:19:11 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+ * compile.c (new_child_iseq): adjust argument types.
- * lib/soap/generator.rb: better XML pretty printing.
+ * iseq.c (prepare_iseq_build, rb_iseq_new),
+ (rb_iseq_new_with_bopt_and_opt, rb_iseq_new_with_opt),
+ (rb_iseq_new_with_bopt): ditto.
- * lib/soap/encodingstyle/soapHandler.rb: remove unnecessary namespace
- assignment in the element which has "encodingStyle" attribute, and
- add necessary namespace assignment for "arrayType" attribute.
+ * compile.c (iseq_set_exception_table): suppress warnings.
- * test/soap/calc/test_calc_cgi.rb: take over $DEBUG to ruby process
- through CGI.
+ * insns.def (putspecialobject, defined): ditto.
-Thu Oct 30 22:59:39 2003 why the lucky stiff <why@ruby-lang.org>
+ * iseq.c (iseq_load): ditto.
- * ext/syck/yaml2byte.c: HASH const too long. Thanks, matz.
+Sun Oct 31 09:30:51 2010 Koichi Sasada <ko1@atdot.net>
-Thu Oct 30 19:13:53 2003 Akinori MUSHA <knu@iDaemons.org>
+ * vm_core.h: some refactoring.
+ - move decl. of rb_compile_option_struct to iseq.h.
+ - define enum iseq_type.
+ - define enum vm_special_object_type.
- * ext/syck/MANIFEST: Add yamlbyte.h.
+ * compile.c: some refactoring.
+ - apply above changes.
+ - (struct iseq_link_element): change value of type.
+ - remove unused decl.
+ - fix comment.
+ - rename iseq_build_body and iseq_build_exception to
+ iseq_build_from_ary_body and iseq_build_from_ary_exception.
-Thu Oct 30 14:25:31 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * iseq.h: define enum catch_type and enum defined_type.
- * io.c (READ_DATA_BUFFERED): new macro to detect whether stdio
- buffer filled.
+ * insns.def: apply above changes.
- * io.c (rb_io_fptr_cleanup): move path deallocation to
- rb_io_fptr_finalize (finalizer called by GC).
+ * iseq.c: define ISEQ_MAJOR_VERSION and ISEQ_MINOR_VERSION.
-Thu Oct 30 13:23:39 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+Sat Oct 30 23:38:59 2010 Kouhei Sutou <kou@cozmixng.org>
- * parse.y (logop): left may be NULL. [ruby-talk:84539]
+ * lib/rexml/encoding.rb: untabify.
- * eval.c (rb_eval): NODE_CASE nd_head may be NULL.
+Sat Oct 30 21:06:37 2010 Kouhei Sutou <kou@cozmixng.org>
-Thu Oct 30 10:14:51 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+ * lib/rexml/encoding.rb: use Ruby native encoding mechanism.
+ [ruby-dev:42464]
+ * lib/rexml/encodings/: remove.
- * lib/test/unit/autorunner.rb: make fox runner work.
+ * lib/rexml/document.rb, lib/rexml/formatters/default.rb,
+ lib/rexml/output.rb, lib/rexml/parseexception.rb,
+ lib/rexml/parsers/baseparser.rb, lib/rexml/source.rb,
+ lib/rexml/xmldecl.rb: use Ruby's native Encoding object.
-Thu Oct 30 09:32:26 2003 NAKAMURA Usaku <usa@ruby-lang.org>
+ * test/rexml/, test/rss/: follow the above encoding changes.
- * process.c (rb_f_system): fixed lack of security check before
- calling do_spawn() on win32. [ruby-talk:84555]
+ * NEWS: add REXML's incompatible change about encoding.
-Thu Oct 30 02:46:35 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+Sat Oct 30 17:23:19 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * eval.c (proc_invoke): single array value to normal Proc#call
- (i.e. not via lambda call), should be treated just like yield.
- [ruby-dev:21726]
+ * util.c (ruby_strtod): get rid of overflow/underflow as possible.
-Thu Oct 30 02:25:48 2003 GOTOU Yuuzou <gotoyuzo@notwork.org>
+Sat Oct 30 14:37:39 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * ext/openssl/lib/openssl/buffering.rb (Buffering#initialize):
- add new method to inherit @sync from @io.sync.
+ * configure.in (ruby_pc): erase runtime-defined variables and
+ check if generated pc file is valid.
- * ext/openssl/lib/net/protocols.rb (SSLIO#ssl_connect): no need to
- set sync flag explicitly.
+ * template/ruby.pc.in (DEFFILE): need for mingw.
- * ext/openssl/ossl_ssl.c (ossl_sslctx_initialize): call super.
+ * template/ruby.pc.in (LIBRUBY): fix the order.
- * ext/openssl/ossl_ssl.c (ossl_sslctx_setup): set extra chain
- certificates in @extra_chain_cert.
+Sat Oct 30 11:33:54 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Wed Oct 29 22:02:04 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+ * win32/Makefile.sub (ruby_pc): ignore missing variables.
- * test/drb/drbtest.rb: use rbconfig.rb to make the path of ruby
- interpreter to exec, instead of test/ruby/envutil.rb,
+ * template/ruby.pc.in: add missing variables for mswin.
-Wed Oct 29 19:58:59 2003 NAKAMURA Usaku <usa@ruby-lang.org>
+Sat Oct 30 10:24:35 2010 Marc-Andre Lafortune <ruby-core@marc-andre.ca>
- * ext/tcltklib/tcltklib.c (CONST84): define CONST84 when it is not
- defined and TCL_MAJOR_VERSION >= 8.
+ * object.c: Make BasicObject.new accept no parameter.
+ Revert of r26135 [ruby-core:27080], as per [ruby-core:32952].
- * ext/tcltklib/tcltklib.c (VwaitVarProc, WaitVariableProc,
- rb_threadVwaitProc): use CONST84 instead of CONST.
+Sat Oct 30 09:40:54 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * ext/tcltklib/tcltklib.c (ip_rbTkWaitCommand,
- ip_rb_threadTkWaitCommand): use CONST84 always.
+ * enum.c: use constants in id.h.
-Wed Oct 29 17:27:05 2003 Tanaka Akira <akr@m17n.org>
+Sat Oct 30 09:08:27 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * re.c (rb_reg_s_union, Init_Regexp): new method `Regexp.union'.
+ * ext/fiddle/closure.c (fiddle_closure): embed cif not reference
+ so that the content surely get initialized. [ruby-dev:42480]
- * lib/pathname.rb (realpath): examine Dir.pwd because it may have
- symlinks.
+Sat Oct 30 07:01:53 2010 Tanaka Akira <akr@fsij.org>
-Wed Oct 29 17:16:31 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * lib/resolv-replace.rb: suppress warning.
- * eval.c (rb_longjmp): must not disturb original jump.
- [ruby-dev:21733]
-
-Wed Oct 29 15:28:34 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * eval.c (Init_Proc): taint preallocated exception object
- sysstack_error. [ruby-talk:84534]
-
-Wed Oct 29 11:27:39 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * parse.y (ret_args): node may be NULL. [ruby-talk:84530]
-
-Tue Oct 28 15:20:12 2003 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * ext/tcltklib/tcltklib.c (VwaitVarProc, ip_rbVwaitObjCmd,
- WaitVariableProc, WaitVisibilityProc, WaitWindowProc,
- ip_rbTkWaitObjCmd, ip_rbTkWaitCommand, rb_threadVwaitProc,
- rb_threadWaitVisibilityProc, rb_threadWaitWindowProc,
- ip_rb_threadVwaitObjCmd, ip_rb_threadTkWaitObjCmd): prototype;
- avoid VC++ warnings.
-
-Mon Oct 27 19:19:55 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * eval.c (rb_longjmp): ignore reentering error while warning.
- [ruby-dev:21730]
-
-Mon Oct 27 00:23:50 2003 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tcltklib/tcltklib.c (ip_ruby): bug fix on Win : hang-up when
- calling 'exit' in the Tk callback procedure. [ruby-list:38656]
-
-Sat Oct 25 09:18:04 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * eval.c (rb_method_missing): protect exception from within
- "inspect". (ruby-bugs:PR#1204)
-
-Fri Oct 24 23:26:34 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * hash.c (rb_hash_each): Hash#each should yield single value.
- [ruby-talk:84420]
-
- * hash.c (env_each): ditto for ENV.each.
-
-Thu Oct 23 20:25:32 2003 GOTOU Yuuzou <gotoyuzo@notwork.org>
-
- * lib/webrick/server.rb (GenericServer#start): should rescue
- IOError from IO::accept. [ruby-dev:21692]
-
-Thu Oct 23 17:59:36 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * eval.c (ruby_cleanup): initialize stack bottom for embedding.
- [ruby-dev:21686]
-
- * ext/dl/extconf.rb: move list of files to clean from DEPEND file,
- to get rid of macro redefinitions.
-
-Thu Oct 23 13:44:00 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * parse.y: integrate operations for stack_type. [ruby-dev:21681]
-
-Thu Oct 23 00:41:45 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
-
- * test/soap/calc/*, test/soap/helloworld/*: set logging threshold
- to ERROR.
-
-Wed Oct 22 12:53:31 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/test/unit/collector/dir.rb (Test::Unit::Collector::Dir#collect_file):
- ignore tests which raised LoadError.
-
- * test/drb/drbtest.rb, test/ruby/test_beginendblock.rb,
- test/ruby/test_system.rb: avoid requiring same file twice.
-
- * test/drb/test_drbssl.rb, test/drb/test_drbunix.rb: should not use
- ARGV unless invoked directly. do not create test cases unless
- required libraries are available.
-
-Wed Oct 22 02:31:34 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * eval.c (ruby_cleanup): should not ignore exit_value in END
- execution. [ruby-dev:21670]
-
-Tue Oct 21 23:16:26 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * eval.c (ruby_cleanup): call finalizers and exit procs before
- terminating threads.
-
- * eval.c (ruby_cleanup): preserve ruby_errinfo before ruby_finalize_0().
-
-Tue Oct 21 15:57:11 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * lib/test/unit/collector/dir.rb (Test::Unit::Collector::Dir#collect_file):
- prepend the directory of target file to the load path.
-
-Tue Oct 21 15:08:53 2003 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * win32/win32.c (do_spawn, do_aspawn): should wait child process even
- if callded with P_OVERLAY.
-
- * win32/win32.c (do_spawn, do_aspawn): should return child's exit
- status to parent.
-
-Tue Oct 21 00:35:02 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
-
- * test/soap/calc/*, test/soap/helloworld/*: catch the exception from
- test server thread and recover.
-
-Tue Oct 21 00:22:57 2003 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
-
- * test/drb/*: import drb/runit.
-
-Mon Oct 20 23:55:47 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * eval.c (rb_eval): set current node after arguments evaluation.
- [ruby-dev:21632]
-
- * eval.c (rb_yield_0): set current node and keep it at local jump.
-
-Mon Oct 20 22:01:18 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * eval.c (rb_thread_cleanup): keep thread group for main thread.
- [ruby-dev:21644]
-
-Mon Oct 20 18:28:10 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * eval.c (rb_catch): backout.
-
-Mon Oct 20 17:31:46 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * eval.c (PUSH_FRAME): generate unique number to be TAG_JUMP()
- destination.
-
- * eval.c (localjump_destination): use unique number in ruby_frame
- for localjump destination.
-
-Mon Oct 20 11:31:44 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * test/ruby/test_signal.rb (test_signal): restore old trap.
-
-Mon Oct 20 11:00:46 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * gc.c (gc_sweep): loosen page free condition to avoid add_heap()
- race condition. [ruby-dev:21633]
-
- * gc.c (gc_sweep): do not update malloc_limit when malloc_increase
- is smaller than malloc_limit.
-
-Mon Oct 20 09:45:12 2003 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * lib/debug.rb (debug_command): remove debug print.
-
-Sun Oct 19 13:12:30 2003 Tanaka Akira <akr@m17n.org>
-
- * lib/pathname.rb (foreachline, dir_foreach): add obsolete warning.
-
-Sun Oct 19 00:14:22 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
-
- * test/soap/calc/*, test/soap/helloworkd/*: changed port# of test
- server. (17171)
-
-Sat Oct 18 23:01:32 2003 WATANABE Hirofumi <eban@ruby-lang.org>
-
- * missing/acosh.c (DBL_MANT_DIG): typo fix(ifdef -> ifndef).
-
-Sat Oct 18 05:48:59 2003 why the lucky stiff <why@ruby-lang.org>
-
- * ext/syck/rubyext.c: YAML::Syck::compile method.
-
- * ext/syck/syck.c: Buffer edge bug.
-
- * ext/syck/yaml2byte.c: YAML to bytecode converter.
-
- * ext/syck/yamlbyte.h: Ditto.
-
- * ext/syck/bytecode.c: Bytecode parser fixes to empty collections
- and empty strings.
-
- * ext/syck/token.c: Ditto.
-
-Fri Oct 17 23:07:38 2003 Akinori MUSHA <knu@iDaemons.org>
-
- * ext/enumerator/enumerator.c, ext/enumerator/enumerator.txt:
- Provide Kernel#to_enum as an alias for Kernel#enum_for. Maybe
- this is a better name.
-
-Fri Oct 17 23:00:30 2003 Akinori MUSHA <knu@iDaemons.org>
-
- * lib/generator.rb: Add rdoc documentation.
-
-Fri Oct 17 22:16:42 2003 Akinori MUSHA <knu@iDaemons.org>
-
- * lib/set.rb: Reword and fix Overview.
-
- * lib/set.rb: It is not necessary to require
- 'test/unit/ui/console/testrunner'.
-
-Fri Oct 17 11:15:22 2003 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * test/ruby/test_range.rb: added.
-
- * MANIFEST: add test/ruby/test_range.rb.
-
-Fri Oct 17 03:21:23 2003 William Sobel <will.sobel@barra.com>
-
- * ext/socket/socket.c (make_hostent): h_aliases may be NULL.
- (ruby-bugs:PR#1195)
-
- * ext/socket/socket.c (sock_s_gethostbyaddr): ditto.
-
-Fri Oct 17 00:12:41 2003 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/lib/tk.rb: (bug fix) instance variable @frame was used
- without initializing on TkComposite module.
-
-Thu Oct 16 23:51:04 2003 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/lib/tk.rb: If $DEBUG == true and some exception is caused
- in a callback operation, Ruby/Tk shows a (verbose) backtrace
- information on the callback process.
-
-Thu Oct 16 17:09:19 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * lib/debug.rb (DEBUGGER__::Context::debug_command): do not call
- debug_silent_eval() when $1 is not set. (ruby-bugs:PR#1194)
-
-Thu Oct 16 16:54:57 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * string.c (rb_str_upto): ("a"..."a").to_a should return [].
- [ruby-core:01634]
-
-Thu Oct 16 16:40:51 2003 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/lib/tk.rb:
- Add Tk::EncodedString and Tk::UTF8_String class to support
- characters using the \uXXXX escape to the UNICODE string.
-
- * ext/tk/sample/{demos-en,demos-jp}/unicodeout.rb
- new demo-scripts (samples of Tk::UTF8_String)
-
- * ext/tk/sample/{demos-en,demos-jp}/widget
- add entries for 'unicodeout.rb'
-
-Thu Oct 16 08:38:06 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * test/digest/test_digest.rb (test_eq): show failed class.
-
- * test/ruby/test_iterator.rb (test_break, test_return_trace_func):
- test localjump destination.
-
-Wed Oct 15 20:22:31 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
-
- * lib/soap/netHttpClient.rb: use URI::HTTP#request_uri instead of
- instance_eval('path_query'). [ruby-list:38575]
-
-Wed Oct 15 17:24:45 2003 URABE Shyouhei <root@mput.dip.jp>
-
- * lib/cgi.rb (CGI::Cookie): tiny typo fix.
-
-Wed Oct 15 15:00:54 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * eval.c (ruby_run): just return FAILURE instead of parse error
- count. [ruby-list:38569]
-
-Wed Oct 15 13:17:02 2003 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * ext/digest/digest.c (rb_digest_base_alloc): need to initialize
- buffer. [ruby-dev:21622]
-
-Wed Oct 15 11:23:05 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * marshal.c (w_object): dump extended modules as well.
-
- * marshal.c (r_object0): TYPE_USRMARSHAL should restore extended
- modules before invoking marshal_load. these two fixes are done
- by Masatoshi Seki <m_seki@mva.biglobe.ne.jp>.
-
-Wed Oct 15 09:30:34 2003 NAKAMURA Usaku <usa@ruby-lang.org>
-
- * ext/enumerator/enumerator.c (enumerator_each): avoid VC++ warning.
-
- * ext/syck/syck.h: include stdio.h for definition of FILE.
-
-Wed Oct 15 08:09:07 2003 why the lucky stiff <why@ruby-lang.org>
-
- * ext/syck/bytecode.c: Checkin of YAML bytecode support.
-
- * ext/syck/gram.c: Ditto.
-
- * ext/syck/syck.c: Ditto.
-
- * ext/syck/token.c: Ditto.
-
- * ext/syck/handler.c: Ditto.
-
- * ext/syck/handler.c: Now using 'tag' rather than 'taguri' in type URIs.
-
- * ext/syck/rubyext.c: Ditto (on both counts).
-
-Wed Oct 15 05:05:53 2003 Akinori MUSHA <knu@iDaemons.org>
-
- * lib/generator.rb: A new library which converts an internal
- iterator to an external iterator.
-
- * lib/abbrev.rb: A new library which creates an abbreviation table
- from a list.
-
-Wed Oct 15 04:31:51 2003 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/sample/demos-en/entry3.rb, ext/tk/sample/demos-jp/entry3.rb:
- new demo-scripts
-
- * ext/tk/sample/demos-en/widget, ext/tk/sample/demos-jp/widget:
- add entries for 'entry3.rb'
-
-Wed Oct 15 04:31:47 2003 Akinori MUSHA <knu@iDaemons.org>
-
- * test/digest/test_digest.rb: Moved from ext/digest/test.rb.
-
-Wed Oct 15 03:53:20 2003 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tk/lib/tk.rb: fixed trouble on auto-load Tcl commands (enbug
- on the last commit).
-
-Wed Oct 15 00:25:00 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * parse.y (yylex): argument parentheses preceded by spaces should
- be warned; not error. [ruby-talk:84103]
-
-Wed Oct 15 00:20:15 2003 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
-
- * ext/tcltklib/tcltklib.c: replace Tcl/Tk's vwait and tkwait to
- switch on threads smoothly and avoid seg-fault.
-
- * ext/tcltklib/tcltklib.c: add TclTkIp._thread_vwait and
- _thread_tkwait for waiting on a thread. (Because Tcl/Tk's vwait
- and tkwait command wait on an eventloop.)
-
- * ext/tk/lib/multi-tk.rb: support TclTkIp._thread_vwait and
- _thread_tkwait.
-
- * ext/tk/lib/tk.rb: now, TkVariable#wait has 2 arguments.
- If 1st argument is true, waits on a thread. If false, waits on
- an eventloop. If 2nd argument is true, checks existence of
- rootwidgets. If false, doesn't. Default is wait(true, false).
-
- * ext/tk/lib/tk.rb: add TkVariable#tkwait(arg) which is equal to
- TkVariable#wait(arg, true). wait_visibility and wait_destroy
- have an argument for waiting on a thread or an eventloop.
-
- * ext/tk/lib/tk.rb: improve of accessing Tcl/Tk's special variables.
-
- * ext/tk/lib/tkafter.rb: support 'wait on a thread' and 'wait on
- an eventloop'.
-
-Wed Oct 15 00:10:24 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
-
- * lib/soap/baseData.rb: Introduce SOAPType as the common ancestor of
- SOAPBasetype and SOAPCompoundtype.
-
- * lib/soap/generator.rb, lib/soap/element.rb, lib/soap/encodingstyle/*:
- Encoding methods signature change. Pass SOAPGenerator as a parameter.
-
- * lib/soap/mapping/*, test/soap/marshal/test_marshal.rb: Refactoring
- for better marshalling/unmarshalling support. Now I think SOAP
- marshaller supports all kind of object graph which is supported by
- Ruby's original marshaller. Of course there could be bugs as always.
- Find it. :-)
-
- * lib/soap/rpc/standaloneServer.rb: Set severity threshould to INFO.
- DEBUG is too noisy.
-
- * lib/xsd/datatypes.rb: DateTime#of is obsoleted. Use DateTime#offset.
-
- * test/wsdl/emptycomplextype.wsdl, test/xsd/xmlschema.xml: Avoid
- useless warning.
-
-Tue Oct 14 19:09:35 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * eval.c (ruby_finalize_0): return the given exit status unless
- SystemExit got raised.
-
-Tue Oct 14 11:53:49 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * intern.h (ruby_stop): never return.
-
- * ruby.h (ruby_run): ditto.
-
-Tue Oct 14 04:43:55 2003 Tanaka Akira <akr@m17n.org>
-
- * lib/pathname.rb (realpath): make ELOOP check bit more robust.
- (children): prepend self by default.
- (chroot): obsoleted.
-
-Tue Oct 14 02:29:31 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * eval.c (rb_require_safe): segfault after loading .so.
-
-Tue Oct 14 02:05:23 2003 Akinori MUSHA <knu@iDaemons.org>
-
- * ext/Setup*, ext/enumerator/*: Add ext/enumerator, a helper
- module for the Enumerable interface.
-
-Mon Oct 13 23:55:59 2003 WATANABE Hirofumi <eban@ruby-lang.org>
-
- * test/ruby/envutil.rb: use Config::CONFIG["ruby_install_name"],
- not "ruby".
-
-Mon Oct 13 23:57:29 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * eval.c (rb_feature_p): match by classified suffix.
-
- * eval.c (rb_require_safe): require library in the specified safe
- level.
-
- * variable.c (rb_autoload, rb_autoload_load): restore safe level
- when autoload was called. [ruby-dev:21338]
-
- * intern.h: prototypes; rb_require_safe.
-
- * test/runner.rb: accept non-option arguments.
-
-Mon Oct 13 20:49:51 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * string.c (str_new4): should not preserve FL_TAINT status in the
- internal shared string. [ruby-dev:21601]
-
- * string.c (rb_str_new4): ditto.
-
- * eval.c: use EXIT_SUCCESS and EXIT_FAILURE for exit values.
-
- * process.c: ditto. [ruby-list:38521]
-
-Mon Oct 13 19:51:02 2003 Koji Arai <jca02266@nifty.ne.jp>
-
- * lib/debug.rb (debug_command): should enter emacs mode when
- assigned any value to the environment variable "EMACS".
- On Meadow, (getenv "EMACS") is "meadow".
-
-Sun Oct 12 14:45:03 2003 WATANABE Hirofumi <eban@ruby-lang.org>
-
- * ext/win32ole/extconf.rb: check "windows.h", not "windows".
- [ruby-talk:84051]
-
-Sat Oct 11 20:41:03 2003 Corinna Vinschen <corinna@vinschen.de>
-
- * file.c (eaccess): Use access(2) on Cygwin.
-
-Sat Oct 11 17:09:21 2003 WATANABE Hirofumi <eban@ruby-lang.org>
-
- * lib/rexml/quickpath.rb (REXML::QuickPath::match):
- escape '[' to avoid warning.
-
-Sat Oct 11 16:08:41 2003 Tanaka Akira <akr@m17n.org>
-
- * lib/pathname.rb (realpath): check existence of the file.
-
- * lib/pathname.rb (realpath): re-implemented.
- (realpath_root?, realpath_rec): removed
-
-Sat Oct 11 10:19:39 2003 Shugo Maeda <shugo@ruby-lang.org>
-
- * lib/monitor.rb: handle exceptions correctly. Thanks, Gennady
- Bystritsky.
-
-Fri Oct 10 07:50:54 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * eval.c (is_defined): inheritance line adjustment as like as
- rb_call_super().
-
-Fri Oct 10 01:19:00 2003 GOTOU Yuuzou <gotoyuzo@notwork.org>
-
- * ext/openssl/ossl_x509name.c (ossl_x509name_initialize): add
- optional argument to specify the DirectoryString type
- (ASN1::UTF8STRING by default). RFC3280 deprecates PrintableString
- for DirectoryString, and strongly requires to use UTF8String for
- all certificates issued after December, 31 2003.
-
- * ext/openssl/lib/openssl/x509.rb (X509::Name::parse): ditto.
-
-Thu Oct 9 23:50:21 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * eval.c (rb_thread_start_0): prevent thread from GC.
- [ruby-dev:21572]
-
-Thu Oct 9 19:11:44 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * eval.c (rb_thread_start_0): non-volatile should be restored from
- volatile.
-
-Thu Oct 9 17:43:36 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * eval.c (proc_save_safe_level, proc_get_safe_level,
- proc_set_safe_level): save/restore safe level 1..4.
-
-Thu Oct 9 16:33:23 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * marshal.c (r_object0): remove unnecessary iv restoration for
- USRMARSHAL. [ruby-dev:21582]
-
- * marshal.c (w_object): dump generic instance variables from
- a string from '_dump'.
-
- * variable.c (rb_generic_ivar_table): return 0 if obj's FL_EXIVAR
- is not set.
-
- * time.c (time_dump): copy instance variables to dumped string, to
- be included in the marshaled data.
-
- * bignum.c (rb_big2ulong): add range check to ensure round trip.
-
-Thu Oct 9 15:45:27 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * pack.c (uv_to_utf8): change message to "out of range", since
- negative values are not "too big". [ruby-dev:21567]
-
-Thu Oct 9 14:05:38 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * eval.c (rb_set_end_proc, rb_exec_end_proc): restore safe level.
- [ruby-dev:21557]
-
-Thu Oct 9 10:51:04 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * eval.c (rb_yield_0): no error if block is empty.
-
-Thu Oct 9 06:43:33 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * eval.c (localjump_error): id should be ID.
-
- * eval.c (rb_eval): nd_rval is set in copy_node_scope().
-
- * eval.c (rb_yield_0): unused variable.
-
- * eval.c (rb_yield_0): nothing to do for empty node.
-
- * eval.c (call_end_proc, proc_invoke): adjust backtrace in END.
- [ruby-dev:21551]
-
- * eval.c (rb_thread_start_0): set the value by break as the result.
- [ruby-dev:21552]
-
- * eval.c (rb_thread_start_0, rb_thread_raise, rb_callcc): save
- variables across THREAD_SAVE_CONTEXT.
-
-Thu Oct 9 12:05:46 2003 Eric Sunshine <sunshine@sunshineco.com>
-
- * configure.in: revived NextStep, OpenStep, and Rhapsody ports which
- had become unbuildable; enhanced --enable-fat-binary option so that
- it accepts a list of desired architectures (rather than assuming a
- fixed list), or defaults to a platform-appropriate list if user does
- not provide an explicit list; made the default list of architectures
- for MAB (fat binary) more comprehensive; now uses -fno-common even
- when building the interpreter (in addition to using it for
- extensions), thus allowing the interpreter to be embedded into a
- plugin module of an external project (in addition to allowing
- embedding directly into an application); added checks for
- <netinet/in_systm.h> (needed by `socket' extension) and getcwd(); now
- ensures that -I/usr/local/include is employed when extensions'
- extconf.rb scripts invoke have_header() since extension checks on
- NextStep and OpenStep will fail without it if the desired resource
- resides in the /usr/local tree; fixed formatting of --help message.
-
- * Makefile.in: $(LIBRUBY_A) rule now deletes the archive before
- invoking $(AR) since `ar' on Apple/NeXT can not "update" MAB archives
- (see configure's --enable-fat-binary option); added rule for new
- missing/getcwd.c.
-
- * defines.h: fixed endian handling during MAB build (see configure's
- --enable-fat-binary option) to ensure that all portions of the
- project see the correct WORDS_BIGENDIAN value (some extension modules
- were getting the wrong endian setting); added missing constants
- GETPGRP_VOID, WNOHANG, WUNTRACED, X_OK, and type pid_t for NextStep
- and OpenStep; removed unnecessary and problematic HAVE_SYS_WAIT_H
- define in NeXT section.
-
- * dir.c: do not allow NAMLEN() macro to trust dirent::d_namlen on
- NextStep since, on some installations, this value always resolves
- uselessly to zero.
-
- * dln.c: added error reporting to NextStep extension loader since the
- previous behavior of failing silently was not useful; now ensures
- that NSLINKMODULE_OPTION_BINDNOW compatibility constant is defined
- for OpenStep and Rhapsody; no longer includes <mach-o/dyld.h> twice
- on Rhapsody since this header lacks multiple-include protection,
- which resulted in "redefinition" compilation errors.
-
- * main.c: also create hard reference to objc_msgSend() on NeXT
- platforms (in addition to Apple platforms).
-
- * lib/mkmf.rb: now exports XCFLAGS from configure script to extension
- makefiles so that extensions can be built MAB (see configure's
- --enable-fat-binary option); also utilize XCFLAGS in cc_command()
- (but not cpp_command() because MAB flags are incompatible with
- direct invocation of `cpp').
-
- * ext/curses/extconf.rb: now additionally checks for presence of these
- curses functions which are not present on NextStep or Openstep:
- bkgd(), bkgdset(), color(), curs(), getbkgd(), init(), scrl(), set(),
- setscrreg(), wattroff(), wattron(), wattrset(), wbkgd(), wbkgdset(),
- wscrl(), wsetscrreg()
-
- * ext/curses/curses.c: added appropriate #ifdef's for additional set of
- curses functions now checked by extconf.rb; fixed curses_bkgd() and
- window_bkgd() to correctly return boolean result rather than numeric
- result; fixed window_getbkgd() to correctly signal an error by
- returning nil rather than -1.
-
- * ext/etc/etc.c: setup_passwd() and setup_group() now check for null
- pointers before invoking rb_tainted_str_new2() upon fields extracted
- from `struct passwd' and `struct group' since null pointers in some
- fields are common on NextStep/OpenStep (especially so for the
- `pw_comment' field) and rb_tainted_str_new2() throws an exception
- when it receives a null pointer.
-
- * ext/pty/pty.c: include "util.h" for strdup()/ruby_strdup() for
- platforms such as NextStep and OpenStep which lack strdup().
-
- * ext/socket/getaddrinfo.c: cast first argument of getservbyname(),
- gethostbyaddr(), and gethostbyname() from (const char*) to non-const
- (char*) for older platforms such as NextStep and OpenStep.
-
- * ext/socket/socket.c: include "util.h" for strdup()/ruby_strdup() for
- platforms such as NextStep and OpenStep which lack strdup(); include
- <netinet/in_systm.h> if present for NextStep and OpenStep; cast first
- argument of gethostbyaddr() and getservbyname() from (const char*) to
- non-const (char*) for older platforms.
-
- * ext/syslog/syslog.c: include "util.h" for strdup()/ruby_strdup() for
- platforms such as NextStep and OpenStep which lack strdup().
-
-Wed Oct 8 22:19:00 2003 Nathaniel Talbott <ntalbott@ruby-lang.org>
-
- * lib/test/unit.rb: removed installation instructions.
-
- * lib/test/unit/ui/testrunnermediator.rb: moved the run flag to a more
- central location.
-
- * lib/test/unit.rb: ditto.
-
- * lib/test/unit.rb: extracted the running code in to AutoRunner.
-
- * lib/test/unit/autorunner.rb: added.
-
- * lib/test/unit/collector/objectspace.rb: extracted common test
- collection functionality in to a module.
-
- * lib/test/unit/collector.rb: ditto; added.
-
- * test/testunit/collector/test_objectspace.rb: ditto.
-
- * lib/test/unit/collector/dir.rb: added. Supports collecting tests out
- of a directory structure.
-
- * test/testunit/collector/test_dir.rb: added.
-
- * test/runner.rb: simplified to use the new capabilities.
-
-Tue Oct 7 15:23:09 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
-
- * test/ruby/test_beginendblock.rb: add tests for nested BEGIN/END.
-
- * test/ruby/beginmainend.rb: add tests for nested BEGIN/END.
-
- * test/ruby/endblockwarn.rb: new file added to test of END-in-method
- warning.
-
-Tue Oct 7 12:23:47 2003 Tanaka Akira <akr@m17n.org>
-
- * ext/fcntl/fcntl.c (Init_fcntl): define Fcntl::O_ACCMODE.
-
- * ext/socket/extconf.rb: useless assignment removed.
-
-Tue Oct 7 09:13:24 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * test/ruby/test_beginendblock.rb (test_endinmethod): END{} is now
- allowed in eval.
-
-Tue Oct 7 04:15:25 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * parse.y (stmt): should not expand mrhs if lhs is solely starred.
-
-Tue Oct 7 02:57:53 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * parse.y (stmt): rhs of multiple assignment should not be
- expanded using "to_a". [ruby-dev:21527]
-
-Tue Oct 7 01:42:34 2003 GOTOU Yuuzou <gotoyuzo@notwork.org>
-
- * ext/openssl/ossl_asn1.c (ossl_asn1_get_asn1type): use appropriate
- free function for ASN1_OBJECT.
-
- * ext/openssl/ossl_asn1.c (ossl_asn1obj_get_sn): add new function for
- ASN1::ObjectId#sn; it returns short name text representation of OID.
-
- * ext/openssl/ossl_asn1.c (ossl_asn1obj_get_ln): add new function for
- ASN1::ObjectId#ln; it returns long name text representation of OID.
-
- * ext/openssl/ossl_asn1.c (ossl_asn1obj_get_oid): add new function for
- ASN1::ObjectId#oid; it returns numerical representation of OID.
-
-Mon Oct 6 22:59:46 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
-
- * lib/csv.rb (IOReader, BasicWriter): call binmode when a given IO
- respond_to?(:binmode). record separator was wrong when you gave
- text mode IO to Reader.parse and Writer.generate.
-
- * test/csv/test_csv.rb: add tests for above change.
-
-Mon Oct 6 16:23:38 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * marshal.c (w_object): wrong method name in the message.
-
-Mon Oct 6 16:02:05 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * parse.y (stmt): END in method should cause warning.
- [ruby-dev:21519]
-
-Mon Oct 6 15:17:23 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
-
- * test/ruby/test_iterator.rb (test_block_argument_without_paren):
- added. (follows sample/test.rb)
-
-Mon Oct 6 11:57:06 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
-
- * test/ruby/test_beginendblock.rb, test/ruby/beginmainend.rb: added
- test for eval-ed BEGIN END order.
-
-Mon Oct 6 09:19:54 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
-
- * marshal.c (w_object): should pass "weak" value to next level.
- [ruby-dev:21496]
-
- * eval.c (proc_alloc): should not use cached object if klass is
- different. [ruby-talk:83685]
-
-Sun Oct 5 23:27:09 2003 Tanaka Akira <akr@m17n.org>
-
- * ext/socket/extconf.rb: check recvmsg even if sendmsg is exists.
-
- * ext/socket/socket.c (thread_read_select): restored.
-
- * lib/pathname.rb: version information is added in document.
-
-Sun Oct 5 23:07:03 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * eval.c (rb_f_END): block should be given. [ruby-dev:21497]
-
-Sun Oct 5 22:51:23 2003 GOTOU Yuuzou <gotoyuzo@notwork.org>
-
- * lib/ext/openssl/extconf.rb: add check for some engine functions
- unavailable in OpenSSL-0.9.6.
-
- * lib/ext/openssl/ossl_engine.c: ditto.
-
-Sun Oct 5 17:56:30 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
-
- * eval.c (rb_eval): fix evaluation order. [ruby-list:38431]
-
-Sun Oct 5 15:05:06 2003 akira yamada <akira@ruby-lang.org>
-
- * test/uri/*: translated RUNIT to Test::Unit.
-
-Sun Oct 5 14:37:39 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
-
- * lib/xsd/datatypes.rb: Rational -> Decimal string bug fix.
-
- * test/soap/marshal/test_marshal.rb: ditto.
-
- * test/soap/calc/test_calc_cgi.rb: add Config::CONFIG["EXEEXT"] to
- RUBYBIN.
-
-Sun Oct 5 13:47:22 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+ * lib/open-uri.rb: ditto.
- * test/ruby/test_beginendblock.rb, test/ruby/beginmainend.rb: add tests
- about scope, order and allowed syntax.
+Sat Oct 30 06:32:52 2010 Tanaka Akira <akr@fsij.org>
-Sun Oct 5 11:54:29 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+ * test/pathname/test_pathname.rb (TestPathname#test_grpowned?): the
+ group of the created file is inherited from the parent
+ directory on BSDs and MacOS X. Linux also inherit the group if
+ the setgid bit of the directory is set. It causes the test fail.
+ fixed by Shota Fukumori. [ruby-dev:42458]
- * test/ruby/envutil.rb: added. split "rubybin" from test_system.rb.
+Sat Oct 30 05:58:54 2010 Tanaka Akira <akr@fsij.org>
- * test/ruby/test_system.rb: use envutil.rb
+ * lib/resolv.rb: retry via TCP if UDP reply is truncated.
+ fixed by Julian Mehnle. [ruby-core:32407]
- * test/ruby/test_beginendblock.rb: added.
+Sat Oct 30 00:35:13 2010 Koichi Sasada <ko1@atdot.net>
- * test/ruby/beginmainend.rb: added. used in test_beginendblock.rb.
+ * iseq.c (iseq_s_compile): fix optional argument.
+ a patch from Yutaka HARA [ruby-core:32953] [Ruby 1.9-Bug#4001]
-Sun Oct 5 11:23:00 2003 Nathaniel Talbott <ntalbott@ruby-lang.org>
+Sat Oct 30 00:24:42 2010 Koichi Sasada <ko1@atdot.net>
- * test/testunit/runit/test_testresult.rb: removed some unnecessary
- cruft.
+ * ext/objspace/objspace.c (memsize_of): take care of
+ T_CLASS/const_tbl.
+ a patch from nagachika <nagachika00@gmail.com> [ruby-dev:42490]
-Sun Oct 5 11:14:00 2003 Nathaniel Talbott <ntalbott@ruby-lang.org>
+Fri Oct 29 23:32:36 2010 Koichi Sasada <ko1@atdot.net>
- * lib/rubyunit.rb: aliasing TestCase into the top level is
- problematic.
+ * test/profile_test_all.rb: added.
+ You can use test-all profiler with the following command:
+ RUBY_TEST_ALL_PROFILE=true make test-all
+ This command generates ./test_all_profile and you can analyze
+ which tests consume memories.
- * lib/runit/assert.rb: fixed a couple of bugs caused by recent
- refactoring in Test::Unit.
+ * test/runner.rb: ditto.
- * test/testunit/runit/*: added.
+Fri Oct 29 10:02:03 2010 NARUSE, Yui <naruse@ruby-lang.org>
-Sun Oct 5 10:55:29 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+ * tool/enc-unicode.rb,
+ enc/unicode/name2ctype.h, enc/unicode/name2ctype.h.blt,
+ enc/unicode/name2ctype.kwd, enc/unicode/name2ctype.src:
+ Add 'Unknown' Script.
+ patched by Run Paint Run Run. [ruby-core:32937] #3998
- * lib/open-uri.rb (URI::Generic#find_proxy): no_proxy support did not
- work. [ruby-dev:21484]
+Fri Oct 29 05:13:34 2010 Koichi Sasada <ko1@atdot.net>
-Sun Oct 5 09:52:00 2003 Nathaniel Talbott <ntalbott@ruby-lang.org>
+ * ext/objspace/objspace.c (ObjectSpace.memsize_of_all): rename
+ ObjectSpace.total_memsize_of_all_objects() to
+ ObjectSpace.memsize_of_all([klass]).
+ Accept Class object to filter the objects.
- * lib/test/unit/assertions.rb: will use pp for output if available.
- Can be disabled by setting Assertions.use_pp = false.
+ * test/objspace/test_objspace.rb: fix test for above change.
- * test/testunit/test_assertions.rb: made a small change to exception
- formatting.
+Fri Oct 29 03:04:16 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Sun Oct 5 07:42:00 2003 Nathaniel Talbott <ntalbott@ruby-lang.org>
+ * string.c (rb_str_dump): fix expected length. [ruby-core:32935]
- * lib/test/unit/assertions.rb: made small improvements to assertion
- messages. Deprecated Assertions#assert_not_nil; use #assert instead.
+Thu Oct 28 23:31:39 2010 Koichi Sasada <ko1@atdot.net>
- * test/testunit/test_assertions.rb: ditto.
+ * gc.c (before_gc_sweep, run_final): fix decrement timing of final_num.
- * test/testunit/util/test_procwrapper.rb: use #assert instead of
- #assert_not_nil.
+Thu Oct 28 20:11:30 2010 NARUSE, Yui <naruse@ruby-lang.org>
-Sun Oct 5 04:10:00 2003 Nathaniel Talbott <ntalbott@ruby-lang.org>
+ * tool/enc-unicode.rb,
+ enc/unicode/name2ctype.h, enc/unicode/name2ctype.h.blt,
+ enc/unicode/name2ctype.kwd, enc/unicode/name2ctype.src:
+ Update Oniguruma for Unicode 6.
+ patched by Run Paint Run Run. [ruby-core:32923] #3989
- * lib/test/unit/assertions.rb: refactored message building.
+Thu Oct 28 20:06:25 2010 NARUSE, Yui <naruse@ruby-lang.org>
-Sun Oct 5 03:40:22 2003 GOTOU Yuuzou <gotoyuzo@notwork.org>
+ * include/ruby/oniguruma.h (ONIGENC_CTYPE_SPECIAL_MASK):
+ change mask from 128 to 256. [ruby-core:32931]
- * ext/openssl/ossl_asn1.h: global symbols should be declared
- as external.
+Thu Oct 28 12:06:54 2010 NARUSE, Yui <naruse@ruby-lang.org>
-Sun Oct 5 03:03:20 2003 akira yamada <akira@ruby-lang.org>
+ * lib/webrick/httprequest.rb (read_request_line): extend max
+ length to 2083. This is from Internet Explorer's max uri
+ length. http://support.microsoft.com/kb/208427 [ruby-core:32924]
- * test/ruby/test_exception.rb (test_else): added.
+Thu Oct 28 04:00:08 2010 Koichi Sasada <ko1@atdot.net>
-Sun Oct 5 02:12:00 2003 Nathaniel Talbott <ntalbott@ruby-lang.org>
+ * gc.c (GC.stat): added. [ruby-dev:38607]
- * lib/test/unit/assertions.rb: changed assertion messages to rely more
- heavily on #inspect. Added backtrace filtering for exceptions in
- assertion messages.
+ * test/ruby/test_gc.rb: add a test for above.
- * test/testunit/test_assertions.rb: ditto.
+Thu Oct 28 03:13:06 2010 Koichi Sasada <ko1@atdot.net>
-Sun Oct 5 02:12:00 2003 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
+ * ext/objspace/objspace.c (memsize_of): fix rdoc.
- * lib/drb/acl.rb, lib/drb/ssl.rb: added.
+ * ext/objspace/objspace.c (total_memsize_of_all_objects): added.
- * lib/drb/drb.rb: exit from a thread using 'break'.
+ * test/objspace/test_objspace.rb:
+ - add a test for ObjectSpace.total_memsize_of_all_objects.
+ - add two tests for ObjectSpace.memsize_of (for nil and Fixnum).
-Sat Oct 4 21:49:14 2003 WATANABE Hirofumi <eban@ruby-lang.org>
+Wed Oct 27 23:55:27 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * gc.c (Init_stack): the type of space is changed to unsigned int
- from double. [ruby-dev:21483]
+ * ext/iconv/iconv.c (Init_iconv): warn deprecated use.
-Sat Oct 4 17:52:59 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+Wed Oct 27 18:50:17 2010 NAKAMURA Usaku <usa@ruby-lang.org>
- * lib/soap/netHttpClient.rb: follow http-access2. hosts which matches
- ENV['no_proxy'] or ENV['NO_PROXY'] are not proxyed.
- - [,:] separated. ("ruby-lang.org:rubyist.net")
- - no regexp. (give "ruby-lang.org", not "*.ruby-lang.org")
- - if you want specify host by IP address, give full address.
- ("192.168.1.1, 192.168.1.2")
+ * bignum.c (rb_big2long, rb_big2ulong): rb2ulong() returns VALUE, but
+ its real range is ulong. So, if the size of VALUE is bigger than
+ ulong, upper bits are always zero even if the actual value is
+ negative.
+ fixed #3490
- * lib/soap/rpc/cgistub.rb: return "Status: XXX MMM" line.
+Wed Oct 27 18:27:17 2010 NAKAMURA Usaku <usa@ruby-lang.org>
- * test/runner.rb: give testsuite name.
+ * test/ruby/test_io.rb (TestIO#pipe): should close write end of pipe
+ before closing read end, to get rid of timing problem.
-Sat Oct 4 15:16:02 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * test/ruby/test_io_m17n.rb (TestIO_M17N#pipe): ditto.
- * marshal.c (w_object): instance variable dump do not cause error
- for objects that cannot be dumped, if they traversed from
- marshal_dump. they are just ignored.
+Wed Oct 27 18:14:27 2010 NAKAMURA Usaku <usa@ruby-lang.org>
- * gc.c (Init_stack): cast "space" (doble value) into unsigned
- int. should run on PowerPC.
+ * win32/win32.c (rb_w32_getppid): support Win64.
- * eval.c (rb_eval): should not execute else part if any exception
- is caught. [ruby-dev:21482]
+Wed Oct 27 15:07:19 2010 NAKAMURA Usaku <usa@ruby-lang.org>
- * parse.y (f_args): should allow unparenthesized block argument.
+ * thread_win32.c (w32_error): should get error no only once, because
+ the result of the second getting will indicate the error of the
+ first FormatMessage() call.
- * parse.y (f_rest_arg): should allow unparenthesized rest
- argument.
+Wed Oct 27 13:51:25 2010 NAKAMURA Usaku <usa@ruby-lang.org>
-Sat Oct 4 14:59:51 2003 Tanaka Akira <akr@m17n.org>
+ * test/ruby/test_io.rb (TestIO#pipe): need to propagate exceptions
+ in read/write thread. fix r29541.
- * lib/pathname.rb (initialize): raise ArgumentError if argument has
- '\0' character.
- (relative_path_from): new method.
- (each_entry): new method for replacement of dir_foreach.
- (foreach, foreachline, dir_foreach, chdir): obsoleted.
+ * test/ruby/test_io_m17n.rb (TestIO_M17N#pipe): ditto.
-Sat Oct 4 12:58:48 2003 akira yamada <akira@ruby-lang.org>
+Wed Oct 27 12:05:40 2010 NAKAMURA Usaku <usa@ruby-lang.org>
- * test/uri/* (6 files): added.
+ * class.c (clone_const): need to return value. fix r29602.
-Sat Oct 4 12:44:45 2003 akira yamada <akira@ruby-lang.org>
+Wed Oct 27 11:58:58 2010 NAKAMURA Usaku <usa@ruby-lang.org>
- * lib/uri/ftp.rb, lib/uri/mailto.rb: renamed to #to_s from #to_str.
+ * include/ruby/ruby.h (NUM2LONG_internal): add cast to get rid of a
+ non GCC compiler warning. this is intentional type conversion.
-Sat Oct 4 07:33:00 2003 Nathaniel Talbott <ntalbott@ruby-lang.org>
+Wed Oct 27 09:25:46 2010 NARUSE, Yui <naruse@ruby-lang.org>
- * lib/test/unit/testsuite.rb: changed #<< to return self, and added
- #delete.
+ * cont.c: apply documentation patch by Run Paint Run Run.
+ [ruby-core:32915]
- * test/testunit/test_testsuite.rb: ditto. Also slightly refactored
- #test_size.
+Wed Oct 27 02:12:10 2010 Yusuke Endoh <mame@tsg.ne.jp>
- * lib/test/unit/collector/objectspace.rb: collector now preserves the
- hierarchy of suites.
+ * object.c (Init_Object), constant.h, variable.c
+ (rb_mod_private_constant, rb_mod_public_constant,
+ set_const_visibility, rb_const_get_0): add Module#public_constant
+ and private_constant. [ruby-dev:39685][ruby-core:32698]
- * test/testunit/collector/test_objectspace.rb: ditto.
+ * test/ruby/test_module.rb: add tests for above.
-Sat Oct 4 04:48:49 2003 why the lucky stiff <why@ruby-lang.org>
+Wed Oct 27 02:02:54 2010 Yusuke Endoh <mame@tsg.ne.jp>
- * ext/syck/rubyext.c: default keys handled.
+ * class.c, constant.h, gc.c, method.h, object.c, variable.c,
+ vm_insnhelper.c: use struct rb_constant_entry_t as entry of
+ RCLASS_CONST_TBL. RCLASS_CONST_TBL has contained VALUE of constant
+ directly. Now instead rb_const_entry_t is contained in
+ RCLASS_CONST_TBL, rb_const_entry_t is managed by malloc, and
+ have not only the value itself but also visibility flag.
+ This is another preparation for private constant (see
+ [ruby-dev:39685][ruby-core:32698]).
- * ext/syck/syck.h: lowered default buffer size to 16k for increased
- performance.
+Wed Oct 27 01:56:34 2010 Yusuke Endoh <mame@tsg.ne.jp>
- * test/yaml: checkin of basic unit tests.
+ * class.c, gc.c, object.c, variable.c, vm_insnhelper.c,
+ include/ruby/ruby.h: separate RCLASS_CONST_TBL from RCLASS_IV_TBL.
+ RCLASS_IV_TBL has contained not only instance variable table but
+ also constant table. Now the two table are separated to
+ RCLASS_CONST_TBL and RCLASS_IV_TBL. This is a preparation for
+ private constant (see [ruby-dev:39685][ruby-core:32698]).
-Sat Oct 4 04:24:19 2003 GOTOU Yuuzou <gotoyuzo@notwork.org>
+Tue Oct 26 18:51:00 2010 NARUSE, Yui <naruse@ruby-lang.org>
- * ext/openssl/extconf.rb: add check for X509V3_set_nconf.
+ * lib/scanf.rb (extract_float): allow 2.e+2 style.
+ [ruby-dev:42452] #3978
- * ext/openssl/ossl_x509ext.c (ossl_x509extfactory_set_config):
- cannot implement if X509V3_set_nconf doesn't exist.
+Tue Oct 26 18:09:36 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Sat Oct 4 02:12:44 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+ * Makefile.in (ASFLAGS): needs INCFLAGS.
- * lib/xsd/datatypes.rb: dump sign by itself. under the problematic
- platform, sprintf("%+.10g", -0.0) => +0. sigh.
+ * configure.in (rb_cv_dynamic_alloca): check if extra source for
+ dynamic size alloca.
- * sample/wsdl/amazon/*: update schema ver2 to ver3.
+ * missing/x86_64-chkstk.s (___chkstk): necessary for alloca of
+ amd64-mingw32msvc-gcc on Ubuntu.
-Sat Oct 4 01:33:46 2003 Tanaka Akira <akr@m17n.org>
+ * thread_win32.c (ruby_alloca_chkstk): check stack overflow
- * lib/pathname.rb (initialize): duplicate and freeze argument.
- (to_s): return duplicated string.
- (children): new method.
- (each_line): new alias to foreachline.
+Tue Oct 26 18:04:53 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Fri Oct 3 16:13:19 2003 GOTOU Yuuzou <gotoyuzo@notwork.org>
+ * template/ruby.pc.in (Libs): needs DLDFLAGS.
- * ext/openssl/ossl_asn1.c: add DER encoder and decoder.
+Tue Oct 26 12:47:10 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * ext/openssl/ossl_asn1.h: add OpenSSL::ASN1 module.
+ * common.mk (pkgconfig-data): moved from Makefile.in.
- * ext/openssl/ossl.c (Init_openssl): call Init_ossl_asn1.
+ * tool/rbinstall.rb: install pc file only if non-empty.
+ [ruby-core:32901] #3983
- * ext/openssl/extconf.rb: check if X509_ATTRIBUTE has field "single".
+ * win32/Makefile.sub (ruby_pc): create pc file.
- * ext/openssl/ossl_x509attr.c (ossl_x509attr_set_value): accept
- DER encoded data argument.
+Tue Oct 26 09:13:34 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * ext/openssl/ossl_x509attr.c (ossl_x509attr_get_value): return
- DER encoded data in OpenSSL::ASN1 types.
+ * configure.in (rb_cv_gcc_atomic_builtins): check for atomic
+ builtins, all are not available in Apple derivative gcc.
-Fri Oct 3 13:02:00 2003 Nathaniel Talbott <ntalbott@ruby-lang.org>
+Tue Oct 26 00:29:26 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * lib/test/unit.rb: refactored to use optparse.
+ * Makefile.in (pkgconfig-data): create pkg-config metadata file.
- * lib/test/unit.rb: added support for selecting the output
- level from the command-line.
+ * tool/rbinstall.rb: install pkg-config metadata file.
- * lib/test/unit.rb: added a command-line switch to stop processing
- the command-line, allowing arguments to be passed to tests.
+ * template/ruby.pc.in: template of pkg-config metadata file.
- * lib/test/unit.rb: changed the method for specifying a runner or a
- filter from the command-line.
+Mon Oct 25 16:38:07 2010 URABE Shyouhei <shyouhei@ruby-lang.org>
- * lib/test/unit/collector/objectspace.rb: fixed a bug causing all
- tests to be excluded when the filter was set to an empty array.
+ * signal.c (rb_atomic_t): GCC (of at least recent versions)
+ has ubiquitous support for atomic operations. On that
+ compiler a C program can issue a memory barrier using these
+ dedicated instructions. According to the GCC manual they
+ cargo culted this feature form the Itanium ABI so chances
+ are that other compilers could also support this feature.
+ But so far GCC is the only compiler that I know to have it.
+ Also note that this works on non-Itanium machines.
- * test/testunit/collector/test_objectspace.rb: ditto.
+Mon Oct 25 06:21:35 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Fri Oct 3 08:14:32 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * vsnprintf.c (BSD_vfprintf): prec digits fractal part should be
+ appended to 0 if prec is given. [ruby-dev:42453] #3979
- * lib/irb/ruby-lex.rb (RubyLex::identify_identifier): support
- 'class ::Foo' syntax. [ruby-talk:83514]
+Mon Oct 25 02:57:21 2010 Koichi Sasada <ko1@atdot.net>
-Fri Oct 3 08:01:00 2003 Nathaniel Talbott <ntalbott@ruby-lang.org>
+ * common.mk (run.gdb): Quit gdb on 'make gdb' when
+ no signals are received.
- * lib/test/unit/assertions.rb: added a default message for #assert,
- #assert_block, and #flunk.
+Mon Oct 25 00:25:23 2010 Tadayoshi Funaba <tadf@dotrb.org>
- * test/testunit/test_assertions.rb: ditto.
+ * lib/date.rb: some corrections of documentation.
- * lib/test/unit/failure.rb: failures now show a better trace of where
- they occurred.
+Sun Oct 24 17:14:00 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * test/testunit/test_failure.rb: ditto (added).
+ * array.c, gc.c, hash.c, object.c, string.c, struct.c,
+ transcode.c, variable.c, vm.c, vm_insnhelper.c, vm_method.c:
+ replace calls to rb_error_frozen() with rb_check_frozen(). a
+ patch from Run Paint Run Run at [ruby-core:32014]
- * lib/test/unit/testcase.rb: ditto.
+ * include/ruby/intern.h (rb_check_frozen): optimize.
+ [ruby-core:32878]
- * test/testunit/test_testcase.rb: ditto.
+Sun Oct 24 15:16:30 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * lib/test/unit/util/backtracefilter.rb: added.
+ * lib/test/unit.rb (Test::Unit::Mini#run): abort if interrupted.
- * test/testunit/util/test_backtracefilter.rb: added.
+ * lib/test/unit.rb (Test::Unit::Mini#run_test_suites): show the
+ result even when interrupted on the way.
- * lib/test/unit/error.rb: changed to use BacktraceFilter and improved
- output.
+ * lib/test/unit.rb (Test::Unit::Mini#run_test_suites): ensure
+ output sync mode to be restored.
- * test/testunit/test_error.rb: ditto.
+Sun Oct 24 14:11:16 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Thu Oct 2 20:33:49 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * vm.c (vm_define_method): defined method is run with the default
+ public visibility regardless the visibility context of definition.
+ [ruby-core:30638]
- * ext/iconv/iconv.c (iconv_failure_initialize): conform with
- orthodox initialization method.
+Sun Oct 24 12:08:54 2010 Aaron Patterson <aaron@tenderlovemaking.com>
- * ext/iconv/iconv.c (iconv_fail): initialize exception instance
- from the class, and do not share instance variables with the
- others. [ruby-dev:21470]
+ * lib/test/unit.rb: make test/unit play nicely with the rake test
+ loader. [ruby-core:32864]
-Thu Oct 2 18:20:27 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Sun Oct 24 00:25:13 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * time.c (Init_Time): define initialize. [ruby-dev:21469]
+ * test/ruby/test_rubyoptions.rb (test_segv_test): follow up the
+ change at r29556.
-Thu Oct 2 17:39:38 2003 GOTOU Yuuzou <gotoyuzo@notwork.org>
+Sat Oct 23 14:39:58 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * ext/openssl/ossl_engine.c: add a new module OpenSSL::Engine.
- it supports OpenSSL hardware cryptographic engine interface.
+ * lib/mkmf.rb: $extmk should be true for test/runner.
- * ext/openssl/ossl_engine.h: ditto.
+Sat Oct 23 10:55:37 2010 Koichi Sasada <ko1@atdot.net>
- * ext/openssl/MANIFEST: add ossl_engine.c and ossl_engine.h.
+ * vm_dump.c (rb_vm_bugreport): fix to add bug outputs.
+ - loaded script ($0)
+ - loaded features ($")
+ - process memory map on Linux (/proc/self/maps)
- * ext/openssl/extconf.rb: add check for openssl/engine.h.
+ * vm_dump.c (rb_vmdebug_stack_dump_raw): fix header message.
- * ext/openssl/ossl.c: call Init_ossl_engine().
+Fri Oct 22 14:50:13 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * ext/openssl/ossl.h: include openssl/engine.h.
+ * lib/test/unit/assertions.rb (Test::Unit::Assertions#assert):
+ assertion message must not be nil.
- * ext/openssl/ossl_pkey_{rsa,dsa,dh}.c: check if underlying
- EVP_PKEY referes engine.
+Fri Oct 22 13:59:50 2010 NARUSE, Yui <naruse@ruby-lang.org>
-Thu Oct 2 17:22:37 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * lib/test/unit/assertions.rb (Test::Unit::Assertions#assert):
+ treat nil case. Please run test-all before commit such change.
- * time.c (time_load): restore instance variables (if any) before
- loading from marshaled data.
+Thu Oct 21 23:58:14 2010 Koichi Sasada <ko1@atdot.net>
-Thu Oct 2 14:19:15 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * gc.c (gc_lazy_sweep): Variable declarations should be at
+ the head of block.
- * ext/iconv/iconv.c (iconv_fail): now yield erred substring, and
- set error object to $!.
+Thu Oct 21 23:56:54 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * ext/iconv/iconv.c (iconv_convert): error handler block should
- return appended part and the rest. if rest is nil, the
- conversion stops.
+ * gc.c (objspace_each_objects, rb_objspace_each_objects): use
+ struct.
-Thu Oct 2 12:00:18 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * gc.c (objspace_each_objects): fix return with no value.
- * variable.c (rb_const_defined_0): look up constants in Object as
- well. [ruby-dev:21458]
+Thu Oct 21 23:47:12 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * test/ruby/test_defined.rb (TestDefined::test_defined): test for
- constants.
+ * dir.c (dir_initialize): remove useless intermediate variable.
-Thu Oct 2 11:17:00 2003 Nathaniel Talbott <ntalbott@ruby-lang.org>
+Thu Oct 21 16:07:20 2010 NARUSE, Yui <naruse@ruby-lang.org>
- * lib/test/unit/assertions.rb: should not capture an
- AssertionFailedError unless explicitly requested.
+ * io.c (rb_f_select): change rdoc.
+ patched by Eito Katagiri [ruby-core:31805]
- * test/testunit/test_assertions.rb: ditto.
+Thu Oct 21 15:55:21 2010 NARUSE, Yui <naruse@ruby-lang.org>
- * test/testunit/collector/test_objectspace.rb: fixed a test failure
- caused by methods being returned in different orders on different
- platforms by moving test sorting from TestSuite into the locations
- where suites are constructed. [ruby-talk:83156]
+ * lib/webrick/httpauth/digestauth.rb
+ (WEBrick::HTTPAuth::ProxyDigestAuth#check_uri): privated.
+ [ruby-dev:42344]
- * lib/test/unit/testcase.rb: ditto.
+Thu Oct 21 15:50:25 2010 NARUSE, Yui <naruse@ruby-lang.org>
- * lib/test/unit/testsuite.rb: ditto.
+ * io.c (rb_f_select): add correct rdoc.
+ patched by Dave Thomas [ruby-core:32467]
- * lib/test/unit/collector/objectspace.rb: ditto.
+Thu Oct 21 15:42:01 2010 NARUSE, Yui <naruse@ruby-lang.org>
-Thu Oct 2 03:25:01 2003 NAKAMURA Usaku <usa@ruby-lang.org>
+ * lib/net/telnet.rb (Net::Telnet#close): added.
+ patched by Erik Hollensbe [ruby-dev:42260] #3830
- * eval.c (rb_thread_raise): prototype; avoid VC++ warning.
+Thu Oct 21 13:08:00 2010 Narihiro Nakamura <authornari@gmail.com>
-Thu Oct 2 01:37:34 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * gc.c (rb_objspace_each_objects): don't lazy sweep in
+ rb_objspace_each_objects. [Bug #3940] [ruby-dev:42369]
- * time.c (time_mdump): new marshal dumper. _dump is still
- available for compatibility.
+Thu Oct 21 00:05:45 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * time.c (time_mload): new marshal loader.
+ * test/ruby/test_io.rb (TestIO#pipe): get rid of deadlock on pipe.
+ a patch from Tomoyuki Chikanaga at [ruby-dev:42435]. #3970
- * marshal.c (w_object): preserve instance variables for objects
- with marshal_dump.
+ * test/ruby/test_io_m17n.rb (TestIO_M17N#pipe): ditto.
- * marshal.c (r_object0): restore instance variables before calling
- marshal_load.
+Wed Oct 20 23:54:36 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * error.c (rb_warn_m): always return nil.
+ * ext/dbm/dbm.c: rdoc based on a patch by mathew meta AT
+ pobox.com, at [ruby-core:32853].
-Thu Oct 2 01:32:46 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+Wed Oct 20 10:47:21 2010 NARUSE, Yui <naruse@ruby-lang.org>
- * eval.c (rb_f_block_given_p): real required condition is
- ruby_frame->prev->iter == ITER_CUR.
+ * util.c (ruby_strtod): reject 0x1.p+0. [ruby-dev:42432] #3966
- * eval.c (rb_block_given_p): ditto.
+Wed Oct 20 10:00:57 2010 NARUSE, Yui <naruse@ruby-lang.org>
- * eval.c (block_pass): update ruby_frame->iter only when previous
- value is ITER_NOT.
+ * vsnprintf.c (BSD_vfprintf): print floating point on "%#a".
+ [ruby-dev:42431] Bug#3965
-Thu Oct 2 01:02:35 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+Tue Oct 19 19:30:11 2010 NARUSE, Yui <naruse@ruby-lang.org>
- * variable.c (rb_const_defined_at): should exclude constants from
- Object when TYPE(klass) == T_MODULE *and* exclude is on.
- [ruby-dev:21458]
+ * vsnprintf.c (BSD_vfprintf): clear ALT flag for %a.
+ [ruby-core:32841] [ruby-core:32848]
- * variable.c (rb_const_get_0): do not lookup constants from Object
- when TYPE(klass) == T_MODULE *and* exclude is on.
+Tue Oct 19 12:19:25 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Thu Oct 2 00:21:11 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+ * vsnprintf.c (BSD_vfprintf): fix over-count of field size.
- * test/logger/test_logger.rb: unlinking file before close causes
- problem under win32 box.
+Tue Oct 19 03:08:52 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * lib/xsd/datatypes.rb(XSDFloat, XSDDouble): add +/- sign explicitly
- when stringified and embedded into XML instance. Ruby's sprintf may
- format -0.0 as "0.0" (no minus sign) depending on underlying C
- sprintf implementation.
+ * vsnprintf.c (BSD_vfprintf): use HEXPREFIX flag for prefix of %a.
+ [ruby-core:32841]
- * test/xsd/test_xsd.rb, test/soap/test_basetype.rb: follow above change.
+Mon Oct 18 13:18:01 2010 Akinori MUSHA <knu@iDaemons.org>
- * test/soap/calc/*: give httpd config param "CGIInterpreter".
- "/usr/bin/env ruby" thing does not work under non-Unix boxes.
+ * ext/digest/digest.c (rb_digest_class_init): Define
+ Digest::Class.new(). [Feature #3954]
-Thu Oct 2 00:25:21 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Mon Oct 18 12:58:40 2010 Tanaka Akira <akr@fsij.org>
- * signal.c (ruby_signal_name): adjust to the prototype.
+ * pack.c (pack_pack): refine the document. [ruby-dev:42397]
+ (pack_unpack): ditto.
- * process.c (pst_inspect): ditto.
+Mon Oct 18 10:19:00 2010 NARUSE, Yui <naruse@ruby-lang.org>
- * ext/etc/etc.c (etc_getgrent, Init_etc): typo.
+ * lib/net/http.rb (transport_request): @socket may be nil.
+ patched by Egbert Eich [ruby-core:32829]
-Wed Oct 1 20:49:41 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Mon Oct 18 09:57:28 2010 NARUSE, Yui <naruse@ruby-lang.org>
- * gc.c (heaps): manage slots and limits together. [ruby-dev:21453]
+ * sprintf.c (BSD_vfprintf): wrong padding around prefix and
+ floating point with %a. [ruby-dev:42403] Bug #3956
- * gc.c (add_heap): should not clear heaps slot even if realloc()
- failed.
+Sun Oct 17 22:36:33 2010 Tadayoshi Funaba <tadf@dotrb.org>
-Wed Oct 1 20:36:49 2003 WATANABE Hirofumi <eban@ruby-lang.org>
+ * lib/date/delta.rb: added an rdoc tag.
- * MANIFEST: add wince/mkconfig_wce.rb.
+Sun Oct 17 10:47:12 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Wed Oct 1 17:22:33 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * variable.c (rb_mod_remove_const): update rdoc.
+ [ruby-core:31957]
- * ext/etc/etc.c: add new functions: setpwent, getpwent, endpwent,
- setgrent, getgrent, endgrent.
+Sun Oct 17 10:40:17 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * ext/socket/socket.c (sock_s_gethostbyname): do not reverse lookup.
+ * class.c (rb_define_{class,module}_id_under): register to be
+ marked, which probably are defined and used internally.
-Wed Oct 1 17:01:30 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Sat Oct 16 11:10:55 2010 Masaki Suketa <masaki.suketa@nifty.ne.jp>
- * eval.c (rb_load): Object scope had priority over required file
- scope. [ruby-dev:21415]
+ * ext/win32ole/win32ole.c (ole_encoding2cp): set codepage 20936
+ according to GB2312. [Bug #3937] [ruby-core:32758]
-Wed Oct 1 14:09:53 2003 Takaaki Uematsu <uema2x@jcom.home.ne.jp>
+Sat Oct 16 10:54:57 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * wince/mkconfig_wce.rb: sorry, forget to commit.
+ * Makefile.in (CPP): already used in .c.i rule.
-Wed Oct 1 10:08:42 2003 Takaaki Uematsu <uema2x@jcom.home.ne.jp>
+ * cygwin/GNUmakefile.in (DLLWRAP, WINDRES): add --driver-name and
+ --preprocessor options explicitly. [ruby-core:32776]
- * wince/setup.mak: add sigmarionIII SDK support.
+Sat Oct 16 10:06:08 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * wince/Makefile.sub: ditto.
+ * ext/sdbm/_sdbm.c (SEEDUPS, BADMESS): make settable using command
+ line options.
- * wince/mkexports.rb: fix linker error in SH4.
+ * ext/sdbm/_sdbm.c (makroom): suppress unused result warning.
- * wince/mkconfig_wce.rb: camouflage RUBY_PLATFORM for compiling ext.
+ * ext/sdbm/extconf.rb: disable BADMESS, a library should not emit
+ messages directly.
-Wed Oct 1 08:02:52 2003 Takaaki Uematsu <uema2x@jcom.home.ne.jp>
+Sat Oct 16 08:39:03 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * wince/time_wce.c (time): add zero check.
+ * dln.c (dln_strerror): get English message first, instead of
+ system default. see [ruby-dev:42358].
-Tue Sep 30 16:11:05 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+Sat Oct 16 00:08:00 2010 Koichi Sasada <ko1@atdot.net>
- * Makefile.in: copy lex.c from $(srcdir) if it's not the current
- directory. [ruby-dev:21437]
+ * hash.c (rb_hash_aref): skip calling "default" method
+ if it is not needed, for speed-up.
-Tue Sep 30 11:29:23 2003 Tanaka Akira <akr@m17n.org>
+Fri Oct 15 23:36:25 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * process.c (pst_inspect): describe stopped process "stopped".
+ * file.c (NUM2DEVT, DEVT2NUM, PRI_DEVT_PREFIX): fallback to
+ unsigned int.
-Tue Sep 30 09:31:56 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Fri Oct 15 22:54:46 2010 Masaki Suketa <masaki.suketa@nifty.ne.jp>
- * test/runner.rb: glob for directories.
+ * ext/win32ole/win32ole.c (ole_hresult2msg): get English message first,
+ instead of system default. [ruby-core:32765]
-Tue Sep 30 09:11:43 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+Fri Oct 15 22:47:31 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * eval.c (rb_eval): while/until should not capture break unless
- they are destination of the break.
+ * include/ruby/ruby.h (VALUE): prefer long over uintptr_t,
+ FIX2LONG expects VALUE to be long at least.
-Tue Sep 30 03:12:02 2003 Minero Aoki <aamine@loveruby.net>
+ * include/ruby/ruby.h (FIX2LONG): parenthesize the argument.
- * lib/net/http.rb (finish): revert to 1.93.
+Fri Oct 15 20:30:30 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * lib/net/pop.rb (finish): revert to 1.60.
+ * configure.in (dev_t): use RUBY_REPLACE_TYPE.
- * lib/net/smtp.rb (finish): revert to 1.67.
+ * file.c (rb_stat_inspect): use PRI_DEVT_PREFIX.
- * lib/net/http.rb (do_start): ensure to close socket if failed to
- start session.
+Fri Oct 15 17:26:57 2010 NARUSE, Yui <naruse@ruby-lang.org>
- * lib/net/pop.rb (do_start): ditto.
+ * pack.c (pack_pack): simplify comparison of explicit_endian
+ as pointed by nobu.
- * lib/net/smtp.rb (do_start): ditto.
+ * pack.c (pack_unpack): ditto.
- * lib/net/smtp.rb: SMTP#started? wrongly returned false always.
+Fri Oct 15 16:40:37 2010 NARUSE, Yui <naruse@ruby-lang.org>
-Tue Sep 30 02:54:49 2003 Minero Aoki <aamine@loveruby.net>
+ * pack.c (pack_pack): fix more than one modifiers appear in the
+ format string. [ruby-core:32793]
- * test/ruby/test_iterator.rb: new test
- test_break__nested_loop[123].
+ * pack.c (pack_unpack): ditto.
-Mon Sep 29 23:39:13 2003 Minero Aoki <aamine@loveruby.net>
+Thu Oct 14 23:20:42 2010 Masaki Suketa <masaki.suketa@nifty.ne.jp>
- * lib/net/http.rb (finish): does not raise IOError even if
- !started?, to allow closing socket which was opened before
- session started.
+ * test/win32ole/test_folderitem2_invokeverb.rb: refactoring.
- * lib/net/pop.rb (finish): ditto.
+Thu Oct 14 22:18:29 2010 Koichi Sasada <ko1@atdot.net>
- * lib/net/smtp.rb (finish): ditto.
+ * insns.def, iseq.c, vm_insnhelper.c: rename variable name
+ (ip -> iseq).
-Mon Sep 29 19:06:51 2003 WATANABE Hirofumi <eban@ruby-lang.org>
+Thu Oct 14 20:41:27 2010 NARUSE, Yui <naruse@ruby-lang.org>
- * ext/win32ole/extconf.rb: add windows.h checking.
- (ruby-bugs:PR#1185)
+ * pack.c (pack_pack): support endian modifiers: < and >.
+ [ruby-dev:42376] Feature #3491
-Mon Sep 29 16:18:30 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+ * pack.c (pack_unpack): ditto.
- * lib/logger.rb: check if the given logdevice object respond_to :write
- and :close, not is_a? IO. duck duck.
+Thu Oct 14 20:50:51 2010 Masaki Suketa <masaki.suketa@nifty.ne.jp>
- * test/logger/test_logger.rb: self IO.pipe reading/writing may be
- locked by the flood. use tempfile.
+ * ext/win32ole/win32ole.c (reg_get_val): expand environment in
+ the pathname. [Bug #3907]
- * lib/wsdl/xmlSchema/data.rb: wrong constant reference.
+Thu Oct 14 07:35:07 2010 NARUSE, Yui <naruse@ruby-lang.org>
-Mon Sep 29 16:11:23 2003 Minero Aoki <aamine@loveruby.net>
+ * file.c (DEVT2NUM): added. Size of dev_t is depend on the
+ environment even if POSIX defines dev_t as unsigned integer.
+ For example, OpenVMS, 64bit Solaris 9, and NetBSD 6 defines
+ dev_t as 64bit unsigned integer.
- * test/fileutils/test_fileutils.rb: clean up temporary symlink.
- Patched by NaHi. [ruby-dev:21420]
+ * file.c (rb_stat_dev): use DEVT2NUM.
-Mon Sep 29 11:16:55 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * file.c (rb_stat_dev_major): dev_t is not long. major(3)'s return
+ value is int.
- * eval.c (rb_thread_atfork): wrong format specifier.
- [ruby-dev:21428]
+ * file.c (rb_stat_dev_minor): dev_t is not long. minor(3)'s return
+ value is int.
- * process.c (pst_inspect): better description.
+ * configure.in: check size of dev_t.
-Mon Sep 29 02:31:44 2003 GOTOU Yuuzou <gotoyuzo@notwork.org>
+Thu Oct 14 07:22:12 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * lib/webrick/utils.rb (Utils::su): use setgid and setuid to
- set real and effective IDs. and setup group access list by
- initgroups.
+ * array.c (rb_ary_and, rb_ary_or), class.c (rb_mod_init_copy),
+ gc.c (undefine_final), time.c (time_mload): get rid of
+ type-punning casts.
-Sun Sep 28 11:14:19 2003 Koji Arai <jca02266@nifty.ne.jp>
+Thu Oct 14 04:16:41 2010 NARUSE, Yui <naruse@ruby-lang.org>
- * ext/digest/digest.c (Init_digest): `copy_object' was deprecated.
- `initialize_copy' should be defined.
+ * numeric.c (ruby_float_step): fix Numeric#step with infinity unit
+ doesn't works well. [ruby-core:32779]
- * ext/stringio/stringio.c (Init_stringio): ditto.
+Wed Oct 13 23:16:46 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Sat Sep 27 18:25:13 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+ * tool/enc-unicode.rb: get rid of lots of warnings.
- * lib/xsd/charset.rb: XSD::Charset.is_ces did return always true under
- $KCODE = "NONE" environment. check added.
+ * iseq.c (insn_operand_intern, rb_iseq_disasm): fix format specifiers.
- * test/xsd/test_xsd.rb: add tests for above fix.
+ * vm.c (thread_free): ditto.
-Sat Sep 27 15:58:50 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+ * numeric.c (check_uint): get rid of overflow on LLP64 platforms.
- * lib/soap/rpc/cgistub.rb: make logging severity threshold higher.
+ * insns.def (opt_case_dispatch): use st_data_t.
- * lib/soap/rpc/standaloneServer.rb: defer WEBrick server start to give
- a chance to reset logging severity threshold.
+Wed Oct 13 22:32:34 2010 Takeyuki FUJIOKA <xibbar@ruby-lang.org>
- * test/soap/calc/test_*, test/soap/helloworld/test_helloworld.rb: run
- silent.
+ * lib/cgi/util.rb (CGI::unescape): bugfix to unescape the multibyte
+ string. Thanks nobu and tDiary dev members. [Bug #3909]
-Sat Sep 27 09:44:18 2003 Minero Aoki <aamine@loveruby.net>
+Wed Oct 13 21:13:00 2010 NARUSE, Yui <naruse@ruby-lang.org>
- * test/fileutils/test_fileutils.rb: clear all errors on Windows.
- [ruby-dev:21417]
+ * numeric.c (int_chr): raise error when the value is negative.
- * test/fileutils/test_nowrite.rb: ditto.
+Wed Oct 13 19:24:08 2010 URABE Shyouhei <shyouhei@ruby-lang.org>
-Sat Sep 27 04:57:07 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+ * vm.c (ruby_vm_destruct): This function type was wrong; correct to the prototype.
- * test/ruby/test_file.rb: new file. only asserts unlink-before-close
- behaviour now.
+Wed Oct 13 14:58:09 2010 NARUSE, Yui <naruse@ruby-lang.org>
- * test/soap/marshal/test_digraph.rb: should close before unlink.
- unlink-before-close pattern is not needed here.
+ * numeric.c (rb_num_to_uint): fix 32bit logic.
-Sat Sep 27 03:32:37 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+Wed Oct 13 12:53:43 2010 NARUSE, Yui <naruse@ruby-lang.org>
- * test/soap/*, test/wsdl/*, test/xsd/*: move TestCase classes into
- each module namespace. TestMarshal in
- test/soap/marshal/test_marshal.rb crashed with
- test/ruby/test_marshal.rb.
+ * numeric.c (rb_num_to_uint): added to check the range of arguments.
+ Mainly for negative value with NUM2UINT on 32bit environment.
-Sat Sep 27 01:30:59 2003 NAKAMURA Usaku <usa@ruby-lang.org>
+ * string.c (rb_str_concat): use rb_num_to_uint.
- * ext/socket/socket.c (ruby_connect): on win32, type of the 4th
- argument of getsockopt is char *.
+Wed Oct 13 12:10:02 2010 NAKAMURA Usaku <usa@ruby-lang.org>
-Fri Sep 26 18:35:40 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * thread_win32.c (w32_error): get English message first, instead
+ of system default. see [ruby-core:32765].
+ [experimental]
- * lib/resolv-replace.rb: 1.8 compliance. [ruby-talk:82946]
+Wed Oct 13 11:04:03 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Fri Sep 26 17:39:27 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+ * debug.c (ruby_set_debug_option): define always for binary
+ compatibility with debug env enabled binary.
- * test/ruby/test_marshal.rb: add test for ruby's objects.
+ * signal.c (ruby_enable_coredump): ditto.
-Fri Sep 26 09:52:44 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Wed Oct 13 10:52:51 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * defines.h (flush_register_windows): use volatile only for gcc on
- Solaris. [ruby-dev:21403]
+ * include/ruby/ruby.h (ruby_executable_node): missing prototype.
- * lib/mkmf.rb (xsystem): use system directly to honor shell meta
- charaters.
+Wed Oct 13 05:23:04 2010 NARUSE, Yui <naruse@ruby-lang.org>
-Fri Sep 26 00:10:13 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+ * missing/strchr.c: add strlen's prototype.
- * lib/README: updated.
+ * missing/strstr.c: ditto.
-Thu Sep 25 17:48:10 2003 NAKAMURA Usaku <usa@ruby-lang.org>
+Wed Oct 13 00:21:17 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * ext/openssl/ossl.c (ossl_buf2str): fix type of 1st argument for
- rb_protect.
+ * ext/syck/rubyext.c (struct mktime_arg): constified.
- * ext/openssl/ossl_hmac.c (ossl_hmac_digest): should return meaningful
- value.
+ * ext/syck/rubyext.c (mktime_do, mktime_r, rb_syck_mktime): fix
+ function signatures.
-Thu Sep 25 09:00:00 2003 Nathaniel Talbott <ntalbott@ruby-lang.org>
+Wed Oct 13 00:18:18 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * lib/ostruct.rb: Added OpenStruct#==.
+ * st.c (MurmurMagic): get rid of literal overflow.
- * test/ostruct/test_ostruct.rb: Added.
+ * configure.in (RUBY_CHECK_PRINTF_PREFIX): check for printf format
+ specifier if possible.
-Thu Sep 25 07:55:26 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Tue Oct 12 23:58:19 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * ext/win32ole/win32ole.c, ext/openssl/ossl_pkey_dsa.c,
- ext/openssl/ossl_pkey_rsa.c, ext/bigdecimal/bigdecimal.h: must
- not use C++ or C99 style comment yet. (ruby-bugs:PR#1184)
+ * win32/win32.c (rb_w32_open_osfhandle, rb_w32_wopen, rb_w32_pipe):
+ use uintptr_t instead of long for win64.
-Thu Sep 25 00:23:22 2003 WATANABE Hirofumi <eban@ruby-lang.org>
+ * win32/win32.c (socketpair_internal): suppress warnings.
- * MANIFEST: add SOAP4R.
+ * win32/win32.c (ftruncate): use HANDLE instead of long for win64.
-Thu Sep 25 00:13:15 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+ * vsnprintf.c (BSD_vfprintf): fix cast.
- * lib/soap/* (29 files): SOAP4R added.
+ * numeric.c (rb_num2fix): result of rb_num2long is SIGNED_VALUE.
- * lib/wsdl/* (42 files): WSDL4R added.
+ * compile.c (iseq_build_body), error.c (set_syserr, get_syserr),
+ (syserr_initialize), gc.c (define_final, rb_gc_copy_finalizer),
+ (run_final), hash.c (rb_hash_aref, rb_hash_lookup2),
+ (rb_hash_fetch_m, rb_hash_clear, rb_hash_aset, eql_i),
+ iseq.c (iseq_load, iseq_data_to_ary), marshal.c (r_symlink),
+ thread.c (rb_thread_local_aref),
+ variable.c (generic_ivar_remove, ivar_get, rb_const_get_0),
+ (rb_cvar_get), vm.c (rb_vm_check_redefinition_opt_method),
+ vm_insnhelper.c (vm_get_ev_const), vm_method.c (remove_method),
+ ext/iconv/iconv.c (map_charset): use st_data_t.
- * lib/xsd/* (12 files): XSD4R added.
+ * compile.c (iseq_build_body), insns.def (getglobal, setglobal),
+ iseq.c (iseq_load, iseq_data_to_ary), util.c (valid_filename):
+ use VALUE.
- * test/soap/* (16 files): added.
+ * gc.c (obj_free, rb_objspace_call_finalizer): fix truncating
+ cast.
- * test/wsdl/* (2 files): added.
+ * gc.c (mark_current_machine_context): suppress warnings.
- * test/xsd/* (3 files): added.
+ * compile.c (iseq_compile_each): fix truncating cast.
- * sample/soap/* (27 files): added.
+ * cont.c (fiber_setcontext): missing variable definition.
- * sample/wsdl/* (13 files): added.
+Tue Oct 12 19:25:13 2010 NARUSE, Yui <naruse@ruby-lang.org>
-Wed Sep 24 02:08:11 2003 GOTOU Yuuzou <gotoyuzo@notwork.org>
+ * error.c (exc_to_s): use OBJ_INFECT.
- * lib/webrick/httpservlet/cgihandler.rb: conform to mswin32.
- [ruby-talk:82735], [ruby-talk:82748], [ruby-talk:82818]
+ * error.c (name_err_to_s): ditto.
-Tue Sep 23 23:10:16 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+ * error.c (name_err_mesg_to_str): ditto.
- * lib/logger.rb: add Logger#<<(msg) for writing msg without any
- formatting.
+ * error.c (syserr_initialize): ditto.
- * test/logger/test_logger.rb: ditto.
+Tue Oct 12 19:07:55 2010 NARUSE, Yui <naruse@ruby-lang.org>
-Tue Sep 23 20:47:51 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * error.c (syserr_initialize): taint message if mesg is given
+ and it is tainted.
- * error.c (rb_warn_m): should not warn if -W0 is specified.
- [ruby-talk:82675]
+Tue Oct 12 18:25:43 2010 NARUSE, Yui <naruse@ruby-lang.org>
-Mon Sep 22 21:28:57 2003 WATANABE Hirofumi <eban@ruby-lang.org>
+ * io.c (rb_io_ungetc): always see Bignum. On 32bit valid value
+ may be a Bignum. On 64bit for errors. [ruby-dev:42366]
- * MANIFEST: updated.
+Tue Oct 12 18:25:04 2010 NARUSE, Yui <naruse@ruby-lang.org>
-Mon Sep 22 19:22:26 2003 GOTOU Yuuzou <gotoyuzo@notwork.org>
+ * string.c (rb_str_concat): use unsigned int for GB18030.
- * configure.in (AC_CHECK_FUNCS): add setuid and setgid.
+Tue Oct 12 17:53:49 2010 NARUSE, Yui <naruse@ruby-lang.org>
-Mon Sep 22 12:34:55 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * numeric (check_uint): the mask must refer to VALUE.
- * util.c (ruby_strtod): skip preceding zeros before counting
- digits in the mantissa. (ruby-bugs:PR#1181)
+Tue Oct 12 17:47:10 2010 NARUSE, Yui <naruse@ruby-lang.org>
-Sun Sep 21 04:12:36 2003 GOTOU Yuuzou <gotoyuzo@notwork.org>
+ * numeric (check_uint): set MSB for negative value.
- * ext/openssl/ossl_ocsp.c (ossl_ocspreq_initialize): the argument
- should be a String.
+ * numeric (rb_num2uint): return value's type of rb_num2ulong
+ is VALUE.
- * ext/openssl/ossl_ocsp.c (ossl_ocspres_initialize): ditt.
+ * numeric (int_chr): variable i can't be negative.
- * ext/openssl/ossl_x509attr.c (ossl_x509attr_initialize): ditto.
+Tue Oct 12 16:04:37 2010 NAKAMURA Usaku <usa@ruby-lang.org>
- * ext/openssl/ossl_x509ext.c (ossl_x509ext_initialize): ditto.
+ * win32/win32.c (rb_w32_strerror): get English message first, instead
+ of system default. see [ruby-dev:42358].
+ [experimental]
- * ext/openssl/ossl_x509ext.c (ossl_x509ext_set_value): ditto.
+Tue Oct 12 15:52:35 2010 NAKAMURA Usaku <usa@ruby-lang.org>
-Sat Sep 20 11:49:05 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+ * win32/win32.c (rb_w32_strerror): unmap some range of errno for
+ workaround of VC10's strerror() and sys_nerr problem.
+ based on a patch from Akio Tajima, [ruby-dev:42355].
- * lib/logger.rb: typo fixed.
+Tue Oct 12 15:36:09 2010 NARUSE, Yui <naruse@ruby-lang.org>
- * test/logger/test_logger.rb: new file.
+ * io.c (rb_io_ungetc): use unsigned int for GB18030.
-Fri Sep 19 11:39:00 2003 Nathaniel Talbott <ntalbott@ruby-lang.org>
+Tue Oct 12 15:14:21 2010 NARUSE, Yui <naruse@ruby-lang.org>
- * test/testunit/*: Added.
+ * io.c (rb_io_putc): support multibyte characters.
+ [ruby-core:30697]
- * lib/test/unit.rb: Documentation update.
+Tue Oct 12 15:10:31 2010 NARUSE, Yui <naruse@ruby-lang.org>
- * lib/test/unit/ui/console/testrunner.rb (TestRunner#initialize):
- Ditto.
+ * numeric.c (rb_enc_uint_chr): split from int_chr.
- * lib/test/unit.rb: Factored out an ObjectSpace collector.
+ * numeric.c (int_chr): use rb_enc_uint_chr.
- * lib/test/unit/collector/objectspace.rb: Ditto.
+ * include/ruby/encoding.h (rb_enc_uint_chr): added.
- * sample/testunit/*: Added.
+Tue Oct 12 14:04:41 2010 NARUSE, Yui <naruse@ruby-lang.org>
-Fri Sep 19 01:00:48 2003 GOTOU Yuuzou <gotoyuzo@notwork.org>
+ * numeric.c (int_chr): a codepoint of Ruby M17N must be 32bit
+ unsigned int; GB18030 uses MSB. Also note that OnigCodePoint
+ is defined as unsigned int.
- * lib/webrick/log.rb (BasicLog#log): get rid of as ineffectual
- condition.
+Tue Oct 12 12:20:54 2010 NAKAMURA Usaku <usa@ruby-lang.org>
- * lib/webrick/log.rb (BasicLog#format): add "\n" to message.
+ * vm_dump.c (dump_thread): foolish mistake.
-Thu Sep 18 22:43:20 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+Tue Oct 12 10:39:08 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * eval.c (proc_invoke): should push PROT_PCALL tag for orphans.
+ * configure.in (RUBY_MINGW32): canonicalize only on mingw.
- * eval.c (proc_invoke): should update "result" for orphans.
+Mon Oct 11 20:20:23 2010 NARUSE, Yui <naruse@ruby-lang.org>
-Thu Sep 18 20:33:03 2003 Tietew <tietew-ml-ruby-list@tietew.net>
+ * lib/net/http.rb (HTTP.get): specify ASCII-8BIT as the result
+ encoding of Zlib::GzipReader.
+ http://hibari.2ch.net/test/read.cgi/tech/1281473294/271
- * parse.y (str_xquote): do not prepend escapes in
- backqoute literals. [ruby-list:38409]
+Mon Oct 11 17:42:54 2010 NARUSE, Yui <naruse@ruby-lang.org>
-Thu Sep 18 20:30:17 2003 Tanaka Akira <akr@m17n.org>
+ * error.c (syserr_initialize): use mesg's encoding when locale
+ encoding is US-ASCII. If locale encoding is not US-ASCII,
+ assume err has non ASCII characters. [ruby-dev:42358]
- * lib/pathname.rb: update document.
+Mon Oct 11 14:03:54 2010 NARUSE, Yui <naruse@ruby-lang.org>
-Thu Sep 18 15:27:05 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+ * error.c (syserr_initialize): set the encoding of Errno::*#message
+ as locale. [ruby-dev:42358]
- * lib/logger.rb: new file. Logger, formerly called devel-logger or
- Devel::Logger.
+Mon Oct 11 06:38:27 2010 NARUSE, Yui <naruse@ruby-lang.org>
- * sample/logger/*: new file. samples of logger.rb.
+ * ext/stringio/stringio.c (strio_set_encoding):
+ StringIO#set_encoding can get 2nd argument and optional hash
+ for API compatibility to IO. [ruby-dev:42356]
-Wed Sep 17 23:41:45 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+Mon Oct 11 06:11:30 2010 NARUSE, Yui <naruse@ruby-lang.org>
- * eval.c (localjump_destination): should not raise ThreadError
- exception for "break". [ruby-dev:21348]
+ * io.c (rb_io_set_encoding): use rb_funcall2 when the io is not
+ a T_FILE. [ruby-dev:42356]
- * eval.c (proc_invoke): use result instead of prot_tag->retval.
- retval is no longer propagated to the ancestors.
+Sun Oct 10 18:42:23 2010 Akinori MUSHA <knu@iDaemons.org>
-Wed Sep 17 20:34:00 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * lib/set.rb (Set#replace): Apply a bit of optimization.
- * parse.y (tokadd_string, parse_string, yylex): escaped terminator
- is now interpreted as is. [ruby-talk:82206]
+Sun Oct 10 10:20:07 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Wed Sep 17 18:52:36 2003 Minero Aoki <aamine@loveruby.net>
+ * configure.in (RUBY_MINGW32): canonicalize as like mswin version.
- * test/fileutils/fileassertions.rb: new file.
+Sun Oct 10 05:33:14 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * test/fileutils/test_fileutils.rb: new file.
+ * vm_core.h (rb_signal_buff_size, rb_signal_exec): moved
+ declarations from thread.c.
- * test/fileutils/test_nowrite.rb: new file.
+Sat Oct 9 16:54:28 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Wed Sep 17 18:51:02 2003 Minero Aoki <aamine@loveruby.net>
+ * configure.in (RSHIFT): quote to get rid of argument expansion
+ for autoconf 2.68.
- * test/strscan/test_stringscanner.rb: require test/unit.
+Sat Oct 9 11:00:06 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Wed Sep 17 18:35:34 2003 Minero Aoki <aamine@loveruby.net>
+ * thread.c (thread_reset_event_flags, exec_event_hooks): ignore
+ hooks marked as removed.
- * test/strscan/test_stringscanner.rb: new file.
+ * thread.c (thread_exec_event_hooks): remove hooks to be removed.
-Wed Sep 17 18:03:30 2003 GOTOU Yuuzou <gotoyuzo@notwork.org>
+ * thread.c (rb_threadptr_remove_event_hook, rb_remove_event_hook):
+ defer removing hooks if running the hooks. [ruby-dev:42350]
- * ext/openssl: all files are reviewed to simplify and avoid memory leak.
+Sat Oct 9 10:51:00 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * ext/openssl/extconf.rb: add check for assert.h.
+ * thread.c (rb_threadptr_exec_event_hooks): suppress each event
+ hooks separately.
- * ext/openssl/ossl.c (ossl_buf2str): new function to convert
- C buffer to String and free buffer.
+ * thread.c (thread_suppress_tracing): split from
+ ruby_suppress_tracing, accepting thread pointer and event mask.
- * ext/openssl/ossl.c (ossl_x509_ary2sk): new function to convert
- Array of OpenSSL::X509 to STACK_OF(X509) with exception safe.
+Sat Oct 9 08:16:01 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * ext/openssl/ossl.c (ossl_to_der, ossl_to_der_if_possible): new
- functions to convert object to DER string.
+ * thread.c (rb_threadptr_remove_event_hook): fix typo.
- * ext/openssl/ossl.h: ditto.
+Fri Oct 8 10:52:25 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * ext/openssl/ossl_bio.c (ossl_membio2str): new function to convert
- BIO to String object and free BIO.
+ * common.mk (RBCONFIG): depends on version.h due to
+ RUBY_PATCHLEVEL. [ruby-core:32709]
- * ext/openssl/ossl_bio.h: ditto.
+Fri Oct 8 00:24:54 2010 James Edward Gray II <jeg2@ruby-lang.org>
- * ext/openssl/ossl_pkcs7.c (ossl_pkcs7_to_der): add for "to_der".
+ * lib/csv.rb: Fixing documentation typos. [ruby-core:32712]
- * ext/openssl/ossl_x509name.c (ossl_x509name_to_der): ditto.
+Thu Oct 7 09:14:28 2010 NARUSE, Yui <naruse@ruby-lang.org>
- * ext/openssl/ossl_x509ext.c (ossl_x509ext_to_der): ditto.
+ * vm_exec.c (vm_exec_core): Treat clang as non gcc on this
+ context: It has __asm__ but doesn't works well.
- * ext/openssl/ossl_x509ext.c (create_ext_from_array): removed
- and reimplement in openssl/x509.rb.
+Wed Oct 6 12:28:22 2010 Tanaka Akira <akr@fsij.org>
- * ext/openssl/ossl_x509attr.c: reimplemented and disable some
- method temporarily. this class doesn't work fine without ASN.1
- data support;-) I'll rewrite in near future.
+ * lib/uri/generic.rb (URI::Generic#hostname): new method.
+ (URI::Generic#hostname=): ditto.
- * ext/openssl/lib/openssl/x509.c (X509::Attribute): get rid off
- unused code.
+ * lib/open-uri.rb: use URI#hostname
- * ext/openssl/lib/openssl/x509.c (X509::ExtensionFactory): refine all.
+ * lib/net/http.rb: ditto.
-Tue Sep 16 22:25:06 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+ reported by Adam Majer. [ruby-core:32056]
- * test/csv/test_csv.rb: add negative tests of row_sep.
+Wed Oct 6 11:52:12 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Tue Sep 16 18:02:36 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * io.c (fptr_finalize): write_mutex might have been destroyed
+ already in finalization phase, as the order of finalizers is not
+ guaranteed. rb_mutex_t should be used in place of Mutex object
+ in the future.
- * regex.c (re_compile_pattern): should not translate character
- class range edge. [ruby-list:38393]
+Tue Oct 5 22:17:02 2010 wanabe <s.wanabe@gmail.com>
-Tue Sep 16 16:47:56 2003 WATANABE Hirofumi <eban@ruby-lang.org>
+ * win32/mkexports.rb: revert r29320 and r29402.
- * MANIFEST: add test/csv/mac.csv.
+Mon Oct 4 12:43:47 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * win32/Makefile.sub, bcc32/Makefile.sub (test): add phony NUL target.
+ * parse.y (regexp): dregexp has literal string only at the head
+ and successors are array. [ruby-core:32682]
-Mon Sep 15 19:02:52 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+Mon Oct 4 10:22:21 2010 NARUSE, Yui <naruse@ruby-lang.org>
- * lib/csv.rb: add extra pamameter to specify row(record) separater
- character. To parse Mac's CR separated CSV, do like this.
- CSV.open("mac.csv", "r", ?,, ?\r) { |row| p row.to_a }
- The 3rd parameter in this example ?, is for column separater and the
- 4th ?\r is for row separater. Row separater is nil by default. Nil
- separater means "\r\n" or "\n".
+ * random.c (rand_init): This checks the value is in 32bit or not,
+ so use int32_t, not int.
- * test/csv/test_csv.rb: add tests for above feature.
+Mon Oct 4 09:47:39 2010 NARUSE, Yui <naruse@ruby-lang.org>
- * test/csv/mac.csv: added. Sample CR separated CSV file.
+ * random.c (rand_init): remove useless assignment.
-Fri Sep 12 22:41:48 2003 Michal Rokos <m.rokos@sh.cvut.cz>
+ * re.c (update_char_offset): remove unused variable.
- * ext/openssl/ossl.c: move ASN.1 stuff to ossl_asn1.[ch]
+ * re.c (read_escaped_byte): ditto.
- * ext/openssl/ossl.c: move BIO stuff to ossl_bio.[ch]
+Mon Oct 4 09:30:42 2010 NARUSE, Yui <naruse@ruby-lang.org>
- * ext/openssl/ossl_asn1.[ch]: new files
+ * ext/openssl/lib/openssl/bn.rb (Integer#to_bn): OpenSSL::BN.new
+ accepts only Strings, so call Integer#to_s(16).
+ 16 is for an optimization. [ruby-dev:42336]
- * ext/openssl/ossl_bio.[ch]: new files
+Mon Oct 4 07:57:51 2010 NARUSE, Yui <naruse@ruby-lang.org>
-Fri Sep 12 12:30:41 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * cont.c (fiber_memsize): Return size.
+ Before this change, fiber_memsize always returns 0.
- * intern.h (rb_disable_super, rb_enable_super): replace with dummy
- expressions instead of prototypes. the functions remain yet for
- binary compatibility. [ruby-talk:81758]
+Mon Oct 4 07:16:55 2010 NARUSE, Yui <naruse@ruby-lang.org>
-Fri Sep 12 12:09:54 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * enc/unicode.c (onigenc_unicode_property_name_to_ctype):
+ remove useless assignment.
- * bignum.c (rb_big_and): convert argument using 'to_int'.
+ * vm.c (vm_make_proc_from_block): ditto.
- * bignum.c (rb_big_or): ditto.
+ * variable.c (rb_ivar_count): ditto.
- * bignum.c (rb_big_xor): ditto.
+Mon Oct 4 06:40:24 2010 NARUSE, Yui <naruse@ruby-lang.org>
-Fri Sep 12 07:06:14 2003 David Black <dblack@superlink.net>
+ * Makefile.in (clean-rdoc): Don't use \ in variable expansion.
+ BSD make treats it as an escape character.
- * lib/scanf.rb: Took out useless @matched_item variable; some small
- refactoring.
+Mon Oct 4 00:01:53 2010 wanabe <s.wanabe@gmail.com>
-Thu Sep 11 08:43:44 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * tool/config.sub: revert r29320, r29324, r29347, r29354, r29365
+ to automake-1.11.1. [ruby-core:32634]
- * eval.c (rb_f_require): allow "require" on $SAFE>0, if feature
- name is not tainted.
+ * win32/mkexports.rb: no longer use 'mingw64'. a patch from Luis Lavena
+ at [ruby-core:32678].
- * lib/rexml/parsers/baseparser.rb (REXML::Parsers::BaseParser::stream):
- Supports StringIO.
+Sun Oct 3 20:36:37 2010 Akio Tajima (arton) <artonx@yahoo.co.jp>
-Wed Sep 10 22:47:30 2003 GOTOU Yuuzou <gotoyuzo@notwork.org>
+ * test/win32ole/test_folderitem2_invokeverb.rb: Change creating
+ shortcut verb to 'Link' [Bug #3339]
- * ext/openssl/ossl.h: add a workaround for win32 platform.
- libeay32.dll doesn't export functions defined in conf_api.h.
+Sun Oct 3 19:44:23 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * ext/openssl/ossl_config.c (ossl_config_initialize): ditto.
+ * configure.in (Makefile): get rid of duplicated ruby target when
+ already there it was.
- * ext/openssl/ossl_config.c (ossl_config_add_value): ditto.
+Sat Oct 2 22:59:32 2010 Masaki Suketa <masaki.suketa@nifty.ne.jp>
- * ext/openssl/ossl_config.c (set_conf_section_i): should check
- if the argument is Array.
+ * test/win32ole/test_thread.rb: add for win32ole with Thread.
-Wed Sep 10 22:41:54 2003 Tietew <tietew@tietew.net>
+Fri Oct 1 17:03:00 2010 URABE Shyouhei <shyouhei@ruby-lang.org>
- * eval.c (win32_get_exception_list): avoid VC7 warning.
- [ruby-win32:577]
+ * test/webrick/test_httpproxy.rb (TestWEBrickHTTPProxy::test_upstream_proxy):
+ My machine fails this test at this line, saying 503 service unavailable.
-Tue Sep 9 10:39:51 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Thu Sep 30 16:11:08 2010 NAKAMURA Usaku <usa@ruby-lang.org>
- * eval.c (struct tag): dst should be VALUE.
+ * win32/win32.c (rb_w32_getenv): should return NULL if specified name
+ is empty. a patch from Heesob Park at [ruby-core:32650]
- * eval.c (localjump_destination): stop at the scope where the current
- block was created. [ruby-dev:21353]
+Thu Sep 30 15:18:23 2010 Yukihiro Matsumoto <matz@ruby-lang.org>
-Tue Sep 9 05:17:04 2003 GOTOU Yuuzou <gotoyuzo@notwork.org>
+ * parse.y (command_asgn): allow command_call to be right hand side
+ expression of chained assignment. [ruby-dev:42313]
- * ext/openssl/ossl_config.rb: avoid compile error in OpenSSL-0.9.6.
+Thu Sep 30 10:55:38 2010 NAKAMURA Usaku <usa@ruby-lang.org>
-Tue Sep 9 02:41:35 2003 Michal Rokos <m.rokos@sh.cvut.cz>
+ * hash.c (ruby_setenv): workaround for old Windows. a patch from
+ Heesob Park. [ruby-core:32353]
- * ext/openssl/ossl_config.c: Refine compatibility.
+Thu Sep 30 09:29:06 2010 NARUSE, Yui <naruse@ruby-lang.org>
-Tue Sep 9 01:50:45 2003 GOTOU Yuuzou <gotoyuzo@notwork.org>
+ * lib/uri/common.rb (URI.encode_www_form): change treatment of
+ undefined value in given array as latest internet draft for
+ application/www-form-urlencoded.
+ http://tools.ietf.org/html/draft-hoehrmann-urlencoded-01
- * lib/webrick/httpserver.rb (HTTPServer#access_log): add "\n" to
- the message.
+Thu Sep 30 09:34:03 2010 NAKAMURA Usaku <usa@ruby-lang.org>
- * lib/webrick/log.rb (BasicLog#log): add "\n" only if needed.
+ * vm_dump.c (dump_thread): fixed wrong type of return value of
+ SymGetModuleBase64(). [ruby-dev:42306]
-Mon Sep 8 22:15:33 2003 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+Wed Sep 29 21:04:05 2010 URABE Shyouhei <shyouhei@ruby-lang.org>
- * ext/tk/lib/multi-tk.rb: modify security check at creating
- a new interpreter
+ * test/ruby/test_rubyoptions.rb (TestRubyOptions::test_script_from_stdin):
+ As usual, PTY is not always available.
-Mon Sep 8 20:00:12 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Wed Sep 29 18:38:14 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * lib/optparse.rb, lib/optparse/version.rb: search also all
- capital versions.
+ * tool/config.sub (x64): regularize only for pc vendor, and strip
+ useless 64 suffix.
-Mon Sep 8 19:26:33 2003 GOTOU Yuuzou <gotoyuzo@notwork.org>
+Wed Sep 29 17:53:02 2010 Kenta Murata <mrkn@mrkn.jp>
- * ext/openssl/ossl.h: include openssl/conf.h and openssl/conf_api.h.
+ * ext/bigdecimal/bigdecimal.c (BIGDECIMAL_ENABLE_VPRINT):
+ VPrint is usually disabled. It's only used in debugging.
- * ext/openssl/ossl_config.c: refine all with backward compatibility.
+Wed Sep 29 17:41:34 2010 Kenta Murata <mrkn@mrkn.jp>
- * ext/openssl/ossl_config.h: export GetConfigPtr() and DupConfigPtr().
+ * ext/bigdecimal/bigdecimal.c (BigDecimal_save_limit):
+ return the result of a block.
- * ext/openssl/ossl_x509.c: added new constants under X509 module.
- DEFAULT_CERT_AREA, DEFAULT_CERT_DIR, DEFAULT_CERT_FILE,
- DEFAULT_CERT_DIR_ENV, DEFAULT_CERT_FILE_ENV and DEFAULT_PRIVATE_DIR.
+ * test/bigdecimal/test_bigdecimal.rb (test_save_limit):
+ add a test for the above change.
- * ext/openssl/ossl_x509ext.c (ossl_x509extfactory_free): don't free
- the members of the struct. it's left to GC.
+Wed Sep 29 16:18:03 2010 NAKAMURA Usaku <usa@ruby-lang.org>
- * ext/openssl/ossl_x509ext.c (ossl_x509_set_config): add for config=.
+ * vm_dump.c (dump_thread): remove unused optional arguments.
- * ext/openssl/ossl_x509ext.c (Xossl_x509extfactory_initialize):
- add attr readers: issuer_certificate, subject_certificate,
- subject_request, crl and config.
+Wed Sep 29 13:26:30 2010 Kenta Murata <mrkn@mrkn.jp>
-Mon Sep 8 18:26:41 2003 GOTOU Yuuzou <gotoyuzo@notwork.org>
+ * ext/bigdecimal/bigdecimal.c (BigDecimal_save_rounding_mode):
+ return the result of a block.
- * lib/webrick/accesslog.rb (AccessLog::setup_params): use req.port
- instead of config[:Port] or req.request_uri.port.
+ * test/bigdecimal/test_bigdecimal.rb (test_save_rounding_mode):
+ add a test for the above change.
- * lib/webrick/httprequest.rb (HTTPRequest#meta_vars): ditto.
+ * test/bigdecimal/test_bigdecimal.rb (test_save_exception_mode):
+ add a test for the return value of BigDecimal.save_exception_mode.
- * lib/webrick/httpservlet/filehandler.rb (FileHandler#dir_list): ditto.
+Wed Sep 29 12:45:30 2010 NAKAMURA Usaku <usa@ruby-lang.org>
- * lib/webrick/config.rb: :Listen option never be used.
+ * ext/bigdecimal/bigdecimal.c (BigDecimal_div2, BigDecimal_add2,
+ BigDecimal_sub2, BigDecimal_mult2, VpLimitRound): remove meaningless
+ casts to get rid of compiler warnings.
- * lib/webrick/server.rb (GenericServer#initialize): don't use :Listen
- option and add warning message.
+Wed Sep 29 12:35:13 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * lib/webrick/log.rb (BasicLog#<<): shortcut of log(INFO, ...).
+ * ext/bigdecimal/bigdecimal.c (VPrint, VpToString): fix format.
- * lib/webrick/httpserver.rb (HTTPServer#accesslog): use << for logging.
+Wed Sep 29 12:31:12 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Sun Sep 7 16:08:28 2003 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+ * lib/rdoc/known_classes.rb (RDoc::KNOWN_CLASSES): add Encoding.
- * ext/tcltklib/tcltklib.c (lib_mainloop_core): fixed signal-trap bug
+Tue Sep 28 20:50:23 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * ext/tk/lib/*.rb: Ruby/Tk works at $SAFE == 4
+ * tool/config.sub (x64): regularize same as mswin.
-Sat Sep 6 02:26:34 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+Tue Sep 28 20:06:14 2010 NAKAMURA Usaku <usa@ruby-lang.org>
- * test/ruby/test_*.rb: assert_same, assert_match, and so on.
+ * vm_dump.c (rb_vm_bugreport): add windows support.
+ based on patches from Peter Weldon at [ruby-core:32551]
-Sat Sep 6 18:45:46 2003 Mauricio Fernandez <batsman.geo@yahoo.com>
+Mon Sep 27 23:30:34 2010 Koichi Sasada <ko1@atdot.net>
- * parse.y (assignable): call rb_compile_error(), not rb_bug().
- [ruby-core:01523]
+ * insns.def (opt_case_dispatch), vm_insnhelper.c:
+ execute the procedures of "when" clauses by bytecode
+ instead of st_foreach() when the object does not hit
+ prepared hash. [ruby-dev:42304]
-Sat Sep 6 17:40:41 2003 GOTOU Yuuzou <gotoyuzo@notwork.org>
+Mon Sep 27 15:54:03 2010 URABE Shyouhei <shyouhei@ruby-lang.org>
- * ext/openssl/ruby_missing.c: rid of unnecessary backward
- compatibility stuff. and remove DEFINE_ALLOC_WRAPPER from
- all sources.
+ * test/net/http/test_https.rb: As always, localhost is not
+ guaranteed to be resolved as 127.0.0.1. But a SSL
+ certificate needs a socket to listen on a specific address
+ where a CN resolves to. On situations where localhost is
+ not 127.0.0.1, these tests are not possible.
- * ext/openssl/ossl_x509ext.c (X509::Extension.new): new method.
+Mon Sep 27 15:25:05 2010 URABE Shyouhei <shyouhei@ruby-lang.org>
- * ext/openssl/ossl_x509ext.c (X509::Extension#oid=): new method.
+ * test/net/imap/test_imap.rb: resurrection of r29259.
+ this change depends on minitest 1.7.1.
- * ext/openssl/ossl_x509ext.c (X509::Extension#value=): new method.
+ * lib/test/unit/assertions.rb: ditto.
- * ext/openssl/ossl_x509ext.c (X509::Extension#critical=): new method.
+Sun Sep 26 22:59:45 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Sat Sep 6 01:23:22 2003 NAKAMURA Usaku <usa@ruby-lang.org>
+ * tool/config.sub (x86_64-pc-mingw64): regularize.
- * win32/win32.c (CreateChild): need to quote cmd if RUBYSHELL is set.
+Sun Sep 26 22:21:07 2010 wanabe <s.wanabe@gmail.com>
- * win32/win32.c (CreateChild): fix condition about whether to call
- shell or not.
+ * ext/openssl/ossl_hmac.c (ossl_hmac_hexdigest, ossl_hmac_s_hexdigest),
+ ext/openssl/ossl_pkey_ec.c (ossl_ec_group_set_seed),
+ ext/openssl/ossl_ssl_session.c (ossl_ssl_session_to_der),
+ ext/openssl/ossl_pkcs7.c (numberof): suppress warnings.
+ [ruby-core:31932]
-Sat Sep 6 00:36:20 2003 Nobuyoshi Nakada <nobu.nokada@softhome.net>
+Sun Sep 26 10:25:24 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * Makefile.in (test): phony target.
+ * tool/config.{guess,sub}: updated to automake-1.11.1.
- * lib/mkmf.rb (have_library, find_library): configure by library
- name.
+Sat Sep 25 22:48:30 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * lib/optparse.rb (OptionParser#order, #permute, #parse): allow an
- array as argument.
+ * configure.in (LIBRUBY_DLDFLAGS): fix quoting.
- * test/ruby/test_*.rb: moved invariants to left side in
- assert_equal, and use assert_nil, assert_raises and so on.
+Sat Sep 25 10:30:37 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * win32/win32.c (isInternalCmd): distinguish command.com and
- cmd.exe.
+ * configure.in (LIBRUBY_DLDFLAGS): use -unexported_symbol only
+ when available. http://trac.macports.org/ticket/26341
- * win32/win32.c (make_cmdvector): a character just after wildcard
- was ignored. [ruby-core:01518]
+Sat Sep 25 10:05:49 2010 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
-Fri Sep 5 20:27:08 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+ * configure.in: Always add -mieee for Renesas SH4.
+ Thanks, Nobuhiro Iwamatsu. [Feature #3874] [ruby-core:32548]
- * test/ruby/test_*.rb: replace 'assert(a == b)' with assert_equal(a, b)'
+Sat Sep 25 01:34:41 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Fri Sep 5 18:00:51 2003 GOTOU Yuuzou <gotoyuzo@notwork.org>
+ * Makefile.in (install-cross): target to install cross-compiling
+ stuff.
- * ext/openssl/lib/openssl/x509.rb: new method X509::Name::parse.
+Fri Sep 24 23:44:59 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * ext/openssl/ossl_digest.c: add ossl_digest_new().
+ * string.c (sym_call), vm.c (invoke_block_from_c),
+ vm_insnhelper.c (vm_yield_with_cfunc): pass given block.
+ [ruby-core:32075]
- * ext/openssl/ossl_digest.h: ditto.
+ * vm_eval.c (rb_funcall_passing_block): new function to call
+ method with passing given block.
- * ext/openssl/ossl_cipher.c: add ossl_cipher_new().
+Fri Sep 24 15:50:43 2010 NARUSE, Yui <naruse@ruby-lang.org>
- * ext/openssl/ossl_cipher.h: ditto.
+ * string.c (rb_str_to_i): fix rdoc: String#to_i raises an
+ exception when base is invalid. [ruby-core:31685]
-Fri Sep 5 15:32:04 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Fri Sep 24 15:28:35 2010 NARUSE, Yui <naruse@ruby-lang.org>
- * misc/ruby-mode.el (ruby-font-lock-maybe-here-docs): should not
- search delimiter forward if found in backward.
+ * string.c (rb_str_rindex): use rb_enc_prev_char instead of repeated
+ str_nth.
+ patched by Michael Selig [ruby-core:32498]
-Fri Sep 5 13:32:48 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Fri Sep 24 14:19:12 2010 URABE Shyouhei <shyouhei@ruby-lang.org>
- * test/runner.rb: arguments should be keys.
+ * test/test_pty.rb: Same as 229281; existence of PTY class do not
+ guarantee a successful pty operation.
-Fri Sep 5 12:09:55 2003 WATANABE Hirofumi <eban@ruby-lang.org>
+Fri Sep 24 06:25:55 2010 Ryan Davis <ryand-ruby@zenspider.com>
- * test/ruby/test_system.rb (test_system): check existence of ruby
- interpreter.
+ * lib/minitest/*.rb: Imported minitest 1.7.2 r5879.
+ * test/minitest/*.rb: ditto.
-Fri Sep 5 11:32:17 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Thu Sep 23 23:09:08 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * lib/optparse.rb (--version): fix assignment/reference order.
+ * vm_insnhelper.c (vm_get_cref0): cref is stacked only in normal
+ iseqs, so check if it is the case first.
- * lib/optparse.rb (OptionParser#help): new; OptionParser#to_s may
- be deprecated in future.
+Thu Sep 23 23:08:41 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * lib/optparse/version.rb (OptionParser#show_version): hide Object.
+ * tool/config.sub: mingw64 should use x86_64. [ruby-core:32514]
- * test/runner.rb: fix optparse usage.
+Thu Sep 23 21:40:40 2010 wanabe <s.wanabe@gmail.com>
- * test/runner.rb: glob all testsuits if no tests given.
+ * ext/socket/raddrinfo.c (init_addrinfo, inspect_sockaddr): suppress
+ warnings. see [ruby-core:31932].
-Fri Sep 5 10:42:58 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+Thu Sep 23 19:27:57 2010 wanabe <s.wanabe@gmail.com>
- * test/runner.rb: added. gets testcases from command line and runs it.
+ * thread_win32.c (w32_wait_events, w32_close_handle): suppress warnings.
+ see [ruby-core:31932].
- * test/ruby/test_gc.rb: remove useless part which was for dumping test
- result.
+Thu Sep 23 18:54:39 2010 wanabe <s.wanabe@gmail.com>
-Fri Sep 5 09:28:59 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+ * tool/config.sub: add mingw64.
- * test/ruby/test_gc.rb: added. splitter.rb which I made to split
- sample/test.rb into test/ruby/test_* kindly removed GC test (the
- last section in the original test) to reduce things to be worried.
+ * win32/mkexports.rb (Exports::Mingw64): added.
-Fri Sep 5 03:00:04 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * win32/mkexports.rb (Exports::Mingw32): renamed from Exports::Mingw.
- * test/ruby/test_iterator.rb (test_block_in_arg): add no block
- given tests.
+Thu Sep 23 09:01:28 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * test/ruby/test_iterator.rb (test_ljump): uncomment LocalJumpError
- test.
+ * vm_insnhelper.c (vm_cref_push): no outer cref is needed for proc
+ from method. Bug #3786, Bug #3860, [ruby-core:32501]
-Fri Sep 5 01:10:11 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+Wed Sep 22 17:12:01 2010 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
- * test/ruby: tests for ruby itself.
+ * test/openssl/utils.rb (OpenSSL#silent): always restore $VERBOSE.
+ [ruby-dev:42285]
- * test/ruby/test_*.rb: split sample/test.rb into 28 test/unit testcases.
- some tests could not be translates... search '!!' mark to see it.
+Wed Sep 22 16:59:40 2010 Yuki Sonoda (Yugui) <yugui@yugui.jp>
- * test/csv/test_csv.rb: should require 'csv', not '../lib/csv'. test
- runner should set load path correctly.
+ * test/test_prime.rb (TestPrime#test_new): the warning expected have
+ not been displayed when $VERBOSE == nil. Patch by Shota Fukumori
+ a.k.a. sora_h. [ruby-dev:42272]
+ Recovers $stderr even if StringIO.new fails. Reported by unak.
-Fri Sep 5 01:03:59 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+Wed Sep 22 01:55:48 2010 Koichi Sasada <ko1@atdot.net>
- * test/csv/test_csv.rb: close opened files for CSV::IOBuf explicitly.
- opened file cannot be removed under win32 box.
+ * bootstraptest/test_method.rb: fix last commit.
-Thu Sep 4 23:59:40 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Wed Sep 22 01:49:52 2010 Koichi Sasada <ko1@atdot.net>
- * parse.y (tokadd_string): newlines have no special meanings in
- %w/%W, otherwise they are ignored only when interpolation is
- enabled. [ruby-dev:21325]
+ * bootstraptest/test_method.rb: add a test for [ruby-core:30534].
-Thu Sep 4 19:38:25 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+Wed Sep 22 00:52:44 2010 WATANABE Hirofumi <eban@ruby-lang.org>
- * ext/io/wait/.cvsignore: added.
+ * lib/rdoc/ri/store.rb (save_cache): remove duplicate entries.
- * ext/openssl/.cvsignore: added.
+Wed Sep 22 00:00:05 2010 Tanaka Akira <akr@fsij.org>
-Thu Sep 4 19:28:24 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+ * ext/pathname/pathname.c (path_f_pathname): Pathname() translated
+ from pathname.rb.
- * sample/openssl: added. Sample of standard distribution library
- should be locate in sample/{module_name}/*.
+Tue Sep 21 22:18:30 2010 NAKAMURA Usaku <usa@ruby-lang.org>
- * ext/openssl/sample/*: removed. move to sample/openssl/*.
+ * tool/mkconfig.rb: fixed build problem on mswin64 introduced in r29278.
-Thu Sep 4 18:02:15 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+Tue Sep 21 02:42:35 2010 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
- * test/csv/test_csv.rb: use remove_const to reduce warnings. use
- Dir.tmpdir to locate working files.
+ * test/pathname/test_pathname.rb (TestPathname#test_mkdir): fix typo.
-Thu Sep 4 17:41:31 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Mon Sep 20 23:23:05 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * misc/ruby-mode.el (ruby-here-doc-beg-re): underscore also is
- valid delimiter.
+ * dir.c (bracket): get rid of scanning at the end of the pattern
+ string, not to raise an exception while globbing command line.
+ [ruby-core:32478]
- * misc/ruby-mode.el (ruby-here-doc-end-match): must quote
- arbitrary string to use as regexp.
+Mon Sep 20 11:25:49 2010 Tanaka Akira <akr@fsij.org>
- * misc/ruby-mode.el (ruby-font-lock-maybe-here-docs): must not
- call `ruby-here-doc-end-match' unless `ruby-here-doc-beg-re'
- matched.
+ * ext/pathname/pathname.c (Init_pathname): Pathname#=~ undefinition
+ translated from pathname.rb.
-Thu Sep 4 15:40:07 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+Mon Sep 20 02:34:11 2010 Kenta Murata <mrkn@mrkn.jp>
- * test/csv/test_csv.rb: run on test/unit original layer.
+ * ext/bigdecimal/bigdecimal.c (check_rounding_mode, BigDecimal_mode):
+ raise ArgumentError instead of TypeError passing invalid modes.
-Thu Sep 4 12:54:50 2003 why the lucky stiff <why@ruby-lang.org>
+ * test/bigdecimal/test_bigdecimal.rb (test_mode, test_round):
+ change against the above modifications.
- * ext/syck/token.c: headerless documents with root-level spacing now
- honored.
+Sun Sep 19 22:08:39 2010 Yuki Sonoda (Yugui) <yugui@yugui.jp>
-Thu Sep 4 00:06:14 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * lib/mkmf.rb (try_link): rdoc
+ (try_compile): ditto
+ (try_cpp): ditto
+ (try_func): ditto
+ (try_var): ditto
+ (try_run): ditto
+ (egrep_cpp): ditto
- * eval.c (mark_frame_adj): need to adjust argv pointer if using
- system's alloca. [ruby-core:01503]
+Sun Sep 19 20:43:33 2010 Yuki Sonoda (Yugui) <yugui@yugui.jp>
-Wed Sep 3 21:33:20 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+ * configure.in (--disable-install-doc): disables capi too, in addition
+ to rdoc.
+ (--disable-install-rdoc): a new option for disabling only rdoc.
+ (--disable-install-capi): a new option for disabling only capi.
- * test: add test directory. Test::Unit aware testcases and needed
- files should be located in this directory. dir/file name convention;
- test/{module_name}/test_{testcase_name}.rb
- test/{module_name}/{needed_files}
- someday, someone will write testrunner which searches test_*.rb and
- run testcases automatically.
+Sun Sep 19 20:37:45 2010 Yuki Sonoda (Yugui) <yugui@yugui.jp>
- * test/csv/*: add testcase for lib/csv.rb.
+ * common.mk (clean): removes all documents on cleaning.o
+ (CAPIOUT): new variable.
+ (clean-capi, distclean-capi, realclean-capi): new targets
-Wed Sep 3 01:37:09 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * Makefile.in (clean-capi, distclean-capi, realclean-capi): ditto.
- * io.c (rb_f_gets): should call next_argv() before type check
- current_file. [ruby-list:38336]
+ * win32/Makefile.sub (clean-capi, distclean-capi, realclean-capi):
+ ditto.
-Tue Sep 2 20:37:15 2003 GOTOU Yuuzou <gotoyuzo@notwork.org>
+Sun Sep 19 13:44:24 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * ext/openssl/lib/net/protocols.rb (SSLIO#ssl_connect): warning
- for skipping server verification.
+ * configure.in (LIBRUBY_SO): fix an oversight of replace
+ RUBY_INSTALL_NAME with RUBY_SO_NAME. a patch from Jeremy Evans
+ at [ruby-core:32474].
-Tue Sep 2 23:36:57 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+Sun Sep 19 07:48:20 2010 Tanaka Akira <akr@fsij.org>
- * eval.c (proc_invoke): should retrieve retval when pcall is true.
+ * ext/pathname/pathname.c (path_unlink): Pathname#unlink and
+ Pathname#delete translated from pathname.rb.
-Tue Sep 2 14:09:20 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+Sun Sep 19 06:06:07 2010 Kenta Murata <mrkn@mrkn.jp>
- * ext/socket/extconf.rb: check s6_addr8 in in6_addr (Tru64 UNIX).
- the patch is submitted by nmu <nmu@users.sourceforge.jp>.
+ * ext/bigdecimal/bigdecimal.c (check_rounding_mode): added for
+ converting symbol to rounding mode number.
- * ext/socket/getaddrinfo.c (getaddrinfo): should use in6_addr8 on
- some platforms.
+ * ext/bigdecimal/bigdecimal.c (BigDecimal_mode, BigDecimal_round):
+ support to specify rounding mode by symbol.
- * ext/socket/getnameinfo.c (getnameinfo): ditto.
+ * test/bigdecimal/test_bigdecimal.rb (test_mode, test_round):
+ add tests for above changes.
-Tue Sep 2 14:02:19 2003 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+Sun Sep 19 05:14:35 2010 Kenta Murata <mrkn@mrkn.jp>
- * ext/tcltklib/tcltklib.c (ip_invoke): fixed bug on passing a exception
+ * ext/bigdecimal/bigdecimal.c: fix rounding algorithms for half-down
+ and half-even. This change is based on the patch created by Matthew
+ Willson, the reporter of this bug. [Bug #3803] [ruby-core:32136]
- * ext/tk/lib/{tk.rb, tkcanvas.rb, tkfont.rb, tktext.rb}:
- bug fix and improvement of font control
+ * test/bigdecimal/test_bigdecimal.rb: add tests for above changes.
-Tue Sep 2 09:51:36 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Sat Sep 18 20:09:51 2010 Tanaka Akira <akr@fsij.org>
- * eval.c (rb_eval): should not handle exceptions within rescue
- argument. [ruby-talk:80804]
+ * ext/pathname/pathname.c (path_each_entry): Pathname#each_entry
+ translated from pathname.rb.
-Tue Sep 2 00:44:37 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Fri Sep 17 23:44:07 2010 Kouhei Sutou <kou@cozmixng.org>
- * re.c (rb_memsearch): fix overrun. [ruby-talk:80759]
+ * lib/rexml/xpath_parser.rb, test/rexml/test_xpath.rb:
+ add missing method availability check. [ruby-core:32447]
+ Reported by Wiebe Cazemier. Thanks!!!
-Tue Sep 2 00:41:27 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Fri Sep 17 23:23:26 2010 Kouhei Sutou <kou@cozmixng.org>
- * ext/iconv/iconv.c (map_charset): use lower case keys.
+ * test/rexml/test_sax.rb: don't use thread and sleep to avoid slow test.
- * ext/iconv/iconv.c (iconv_fail): just yield error and return the
- result if a block is given.
+Fri Sep 17 23:10:44 2010 Kouhei Sutou <kou@cozmixng.org>
- * ext/iconv/iconv.c (iconv_convert): yield error and append the
- result if a block is given.
+ * test/rexml/test_core.rb: enable.
- * ext/iconv/charset_alias.rb (charset_alias): optional third
- argument.
+Fri Sep 17 22:46:02 2010 Kouhei Sutou <kou@cozmixng.org>
- * ext/iconv/charset_alias.rb (charset_alias): use CP932 instead of
- SHIFT_JIS on cygwin.
+ * test/rexml/: untabify.
-Mon Sep 1 18:34:25 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Fri Sep 17 22:29:56 2010 Kouhei Sutou <kou@cozmixng.org>
- * eval.c (rb_eval): make tail recursion in ELSE clause of
- RESCUE a jump.
+ * test/rexml/: fix fixture data path. All REXML tests are worked.
-Mon Sep 1 18:00:02 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+Fri Sep 17 22:15:15 2010 Kouhei Sutou <kou@cozmixng.org>
- * parse.y (aref_args): forgot to call NEW_SPLAT(). reported by
- Dave Butcher.
+ * test/rexml/test_listener.rb: remove needless codes.
- * eval.c (Init_Thread): protect thgroup_default. suggested by Guy
- Decoux in [ruby-talk:80623]
+Fri Sep 17 22:12:23 2010 Kouhei Sutou <kou@cozmixng.org>
-Mon Sep 1 16:59:10 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * test/rexml/: import REXML tests from
+ http://www.germane-software.com/repos/rexml/trunk/test/.
+ Many tests are failed temporary. I'll fix them quickly. Sorry.
- * eval.c (rb_thread_switch): add RESTORE_EXIT; exit by another
- thread termination.
+Fri Sep 17 16:48:49 2010 URABE Shyouhei <shyouhei@ruby-lang.org>
- * eval.c (rb_thread_start_0): should not error_print() within
- terminated thread, because $stderr used by it might be
- overriden now. [ruby-dev:21280]
+ * test/io/console/test_io_console.rb (TestIO_Console::helper):
+ PTY.open is not guaranteed to work. On my machine opening a
+ pty is prohibited via process control group. On those cases
+ exceptions shall occur, and that doesn't mean our fault.
+ Skip those tests on such situations.
-Sun Aug 31 22:46:55 2003 WATANABE Hirofumi <eban@ruby-lang.org>
+Fri Sep 17 08:30:27 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * eval.c (TAG_DST()): take no argument.
+ * lib/tracer.rb: count only non-internal libraries in stack trace,
+ ignoring custom_require. [ruby-core:31858]
- * process.c (p_gid_sw_ensure): return VALUE.
+Fri Sep 17 02:18:41 2010 Akinori MUSHA <knu@iDaemons.org>
-Sun Aug 31 22:27:10 2003 Hidetoshi NAGAI <nagai@dumbo.ai.kyutech.ac.jp>
+ * tool/mkconfig.rb: Fix build with m4 1.4.15 generating duplicate
+ lines in config.status. According to nobu, the mswin32 port may
+ depend on the piece of code in question, so the behavior is left
+ unchanged on mswin32.
- * process.c (p_gid_sw_ensure): lack of function type
+Thu Sep 16 23:47:59 2010 Tanaka Akira <akr@fsij.org>
-Sun Aug 31 12:25:06 2003 Nobuyoshi Nakada <nobu.nokada@softhome.net>
+ * ext/pathname/pathname.c (path_opendir): Pathname#opendir translated
+ from pathname.rb.
- * lib/optparse.rb: --version takes an optional argument; "all" or
- a list of package names.
+Thu Sep 16 21:40:37 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Sun Aug 31 10:17:02 2003 Tadayoshi Funaba <tadf@dotrb.org>
+ * lib/test/unit.rb (Test::Unit::GlobOption): merged RejectOption.
- * lib/date/format.rb: yyyy/mm is not an acceptable format.
+ * test/runner.rb: utilize GlobOption.
- * lib/time.rb: follow above.
+Thu Sep 16 21:31:24 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Sat Aug 30 14:25:43 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * lib/rdoc/ri/driver.rb (RDoc::RI::Driver.setup_options)
+ (RDoc::RI::Driver.fixup_options): split from process_args.
+ libraries should not parse ARGV inside, since it's a task of
+ applications, not libraries.
- * eval.c (rb_iter_break): should not call TAG_JUMP directly.
+Thu Sep 16 21:02:30 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Sat Aug 30 03:58:21 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * lib/rdoc/ri/paths.rb (RDoc::RI::Paths.each): HOMEDIR can be nil
+ if $HOME is unset.
- * eval.c (struct BLOCK): remove BLOCKTAG, use scope instead.
+Thu Sep 16 14:50:42 2010 URABE Shyouhei <shyouhei@ruby-lang.org>
- * eval.c (POP_TAG): no longer propagate retval. retval is now set
- directly by localjump_destination().
+ * test/ruby/test_file_exhaustive.rb (TestFileExhaustive::test_expand_path):
+ ENV["HOME"] might not be set. On those cases without it an
+ exception raises here, which effectively disables later
+ tests on this method.
- * eval.c (localjump_destination): new function to cast
- return/break local jump.
+Thu Sep 16 08:30:28 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * eval.c (rb_yield_0): stop TAG_RETURN/TAG_BREAK escaping.
+ * sprintf.c (rb_f_sprintf): fix rdoc. pointed out by Tomoyuki
+ Chikanaga at [ruby-core:32395], and a patch from Daniel
+ Bovensiepen at [ruby-core:32403].
-Fri Aug 29 22:35:00 2003 Shigeo Kobayashi <shigek@ruby-lang.org>
+Thu Sep 16 08:27:36 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * bigdecimal.c *.html: The 2nd arg. for add,sub,mult, and div is 0,
- then result will be the same as +,-,*,/ respectively.
+ * ext/etc/extconf.rb: use expanded sysconfdir with empty DESTDIR.
+ [ruby-core:32394]
-Fri Aug 29 17:30:15 2003 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+Thu Sep 16 06:07:24 2010 Tanaka Akira <akr@fsij.org>
- * process.c: bug fix
+ * ext/pathname/pathname.c (path_rmdir): Pathname#rmdir translated
+ from pathname.rb.
- * process.c: add rb_secure(2) to methods of Process::{UID,GID,Sys}
+Thu Sep 16 00:36:25 2010 NARUSE, Yui <naruse@ruby-lang.org>
- * process.c: deny handling IDs during evaluating the block given to
- the Process::{UID,GID}.switch method
+ * ext/readline/extconf.rb: Remove Readline 6 check because
+ Ruby's license is now GPLv3 compatible. [ruby-core:28736]
- * ext/tcltklib/tcltklib.c: some methods have no effect if on slave-IP
+Thu Sep 16 00:26:00 2010 NARUSE, Yui <naruse@ruby-lang.org>
- * ext/tcltklib/tcltklib.c: can create a interpreter without Tk
+ * COPYING: change Ruby's License from a dual license with GPLv2
+ to a dual license with 2-clause BSDL.
+ [ruby-dev:42166] [ruby-core:31971]
+ [ruby-dev:39167] [ruby-core:25272]
- * ext/tcltklib/tcltklib.c: bug fix on handling exceptions
+ * COPYING.ja: ditto.
- * ext/tcltklib/MANUAL.euc: modify
+ * BSDL: added. this is from The FreeBSD License.
- * ext/tk/lib/tk.rb: freeze some core modules
+Wed Sep 15 21:07:06 2010 Tanaka Akira <akr@fsij.org>
- * ext/tk/lib/multi-tk.rb: more secure
+ * ext/pathname/pathname.c (path_mkdir): Pathname#mkdir translated
+ from pathname.rb.
- * ext/tk/lib/tk.rb: TkVariable.new(array) --> treat the array as the
- Tk's list
+Wed Sep 15 13:37:00 2010 URABE Shyouhei <shyouhei@ruby-lang.org>
- * ext/tk/lib/tk.rb: improve accessibility of TkVariable object
+ * test/net/imap/test_imap.rb: "localhost" not guaranteed to
+ resolve to "127.0.0.1". On my machine it is "::1" instead.
+ The problem is, you have to connect to the imaps server via
+ the canonical name written in a server certificate, and that
+ of the server.cert is "localhost". So you have to listen to
+ the address of what "localhost" resolves to. I think this
+ situation cannot be resolved in a handy manner because the
+ test "test_imaps_post_connection_check" is actually
+ expecting to connect to a server via an address other than
+ the CN. On my machine several assertions won't pass because
+ the test cannot connect to the server.
- * ext/tk/lib/tk.rb, ext/tk/lib/tkfont.rb, ext/tk/lib/tkcanvas.rb,
- ext/tk/lib/tktext.rb: fix bug of font handling
+Wed Sep 15 09:12:03 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * ext/tk/lib/tkfont.rb: TkFont.new() accepts compound fonts
+ * io.c (rb_io_puts): fix for wide char encoding strings.
+ [ruby-dev:42212]
-Thu Aug 28 22:07:12 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+Wed Sep 15 07:27:52 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * variable.c (rb_autoload_load): call const_missing if autoloading
- constant is not defined to allow hook.
+ * string.c (rb_str_format_m): mentioned about Hash argument. a patch
+ from Daniel Bovensiepen at [ruby-core:32386].
- * eval.c (rb_eval): use rb_const_get_from() instead of
- rb_const_get_at().
+ * sprintf.c (get_hash): ditto, and fix typo.
- * eval.c (is_defined): forgot to check NODE_COLON3.
+Wed Sep 15 07:22:20 2010 Tanaka Akira <akr@fsij.org>
-Thu Aug 28 17:30:24 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * ext/pathname/pathname.c (path_entries): Pathname#entries translated
+ from pathname.rb.
- * variable.c (rb_const_get_0): should check constants defined in
- included modules, if klass is Object. [ruby-talk:79302]
+Wed Sep 15 02:13:44 2010 Aaron Patterson <aaron@tenderlovemaking.com>
- * numeric.c (check_uint): check should be done using UINT_MAX, not
- INT_MAX. this fix is submitted by Lyle Johnson
- <lyle@knology.net> in [ruby-core:01486]
+ * ext/fiddle/closure.c : Don't use FFI closure alloc on OpenBSD.
+ Thanks Jeremy Evans! [ruby-core:32384]
-Thu Aug 28 05:02:52 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+Tue Sep 14 20:17:48 2010 Tanaka Akira <akr@fsij.org>
- * parse.y (singleton): typo fixed (ruby-bugs-ja:PR#562)
+ * ext/pathname/pathname.c (path_s_getwd): Pathname.getwd and
+ Pathname.pwd translated from pathname.rb.
-Thu Aug 28 02:37:45 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+Tue Sep 14 05:13:04 2010 Tanaka Akira <akr@fsij.org>
- * eval.c (rb_eval): *a = [1,2] now assigns [[1,2]] to a.
- consistent with *a = [1], which set [[1]] to a.
+ * ext/pathname/pathname.c (path_s_glob): Pathname.glob translated
+ from pathname.rb.
- * node.h: merge NODE_RESTARY to NODE_SPLAT.
+Tue Sep 14 01:24:51 2010 Yutaka Kanemoto <kanemoto@ruby-lang.org>
- * parse.y: rules simplified a bit by removing NODE_RESTARY.
+ * ext/socket/raddrinfo.c (ruby_getaddrinfo__aix): suppress a
+ warning.
- * sample/test.rb: updated for new assignment behavior.
+Mon Sep 13 20:48:30 2010 Tanaka Akira <akr@fsij.org>
-Wed Aug 27 22:33:24 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * ext/pathname/pathname.c (path_zero_p): Pathname#zero? translated
+ from pathname.rb.
- * error.c (rb_bug): should not use other methods; this function is
- not for ordinary use. [ruby-dev:21259]
+Mon Sep 13 19:56:50 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Wed Aug 27 15:07:57 2003 Minero Aoki <aamine@loveruby.net>
+ * ext/socket/rubysocket.h (__DARWIN_ALIGNBYTES): workaround of a
+ bug in system header of darwin 9. [ruby-core:32341]
- * lib/net/smtp.rb (check_response): AUTH CRAM-MD5 returns 334
- response. [ruby-list:38279]
+Mon Sep 13 18:11:55 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Wed Aug 27 05:10:15 2003 NAKAMURA Usaku <usa@ruby-lang.org>
+ * lib/mkmf.rb (try_do): fix typo. a patch from Peter Weldon
+ at [ruby-core:32327].
- * win32/win32.c (map_errno): support winsock error.
+Mon Sep 13 10:12:09 2010 NARUSE, Yui <naruse@ruby-lang.org>
- * win32/win32.c (pipe_exec, CreateChild, poll_child_status, waitpid,
- kill, link, rb_w32_rename, unixtime_to_filetime, rb_w32_utime):
- pass errno to map_errno().
+ * util.c (ruby_strtod): reject Float('0x0.').
+ [ruby-dev:42239] Bug #3820
- * win32/win32.c (rb_w32_select, rb_w32_accept, rb_w32_bind,
- rb_w32_connect, rb_w32_getpeername, rb_w32_getsockname,
- rb_w32_getsockopt, rb_w32_ioctlsocket, rb_w32_listen, rb_w32_recv,
- rb_w32_recvfrom, rb_w32_send, rb_w32_sendto, rb_w32_setsockopt,
- rb_w32_shutdown, rb_w32_socket, rb_w32_gethostbyaddr,
- rb_w32_gethostbyname, rb_w32_gethostname, rb_w32_getprotobyname,
- rb_w32_getprotobynumber, rb_w32_getservbyname, rb_w32_getservbyport,
- rb_w32_fclose, rb_w32_close): use map_errno().
+Mon Sep 13 09:23:58 2010 NARUSE, Yui <naruse@ruby-lang.org>
- * win32/win32.h: add winsock errors.
+ * ext/openssl/ossl_bn.c (ossl_bn_is_prime): fix comparison
+ with rb_scan_args. Before this fix, OpenSSL::BN#prime?
+ is fully broken. [ruby-dev:42225]
-Tue Aug 26 23:53:23 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+Mon Sep 13 06:45:24 2010 Tanaka Akira <akr@fsij.org>
- * lib/ostruct.rb (OpenStruct::method_missing): prohibit modifying
- frozen OpenStruct. [ruby-talk:80214]
+ * ext/pathname/pathname.c (path_writable_real_p):
+ Pathname#writable_real? translated from pathname.rb.
-Tue Aug 26 20:03:50 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Sun Sep 12 21:21:50 2010 Tadayoshi Funaba <tadf@dotrb.org>
- * lib/mkmf.rb (create_tmpsrc): add the hook for source.
- [ruby-list:38122]
+ * lib/date.rb: [ruby-core:32096] Thanks Colin Bartlett.
-Tue Aug 26 15:59:53 2003 why the lucky stiff <why@ruby-lang.org>
+Sun Sep 12 19:30:27 2010 Tanaka Akira <akr@fsij.org>
- * implicit.c (syck_type_id_to_taguri): corrected detection of
- x-private types.
+ * ext/pathname/pathname.c (path_world_writable_p):
+ Pathname#world_writable? translated from pathname.rb.
-Sun Aug 24 01:02:48 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Sun Sep 12 09:16:06 2010 Tanaka Akira <akr@fsij.org>
- * file.c (file_expand_path): performance improvement.
- [ruby-talk:79748]
+ * ext/pathname/pathname.c (path_writable_p): Pathname#writable?
+ translated from pathname.rb.
-Sat Aug 23 23:41:16 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+Sun Sep 12 08:36:15 2010 Tanaka Akira <akr@fsij.org>
- * file.c (rb_file_s_expand_path): avoid calling rb_scan_args() for
- apparent cases. [ruby-talk:79748]
+ * process.c (rlimit_resource_name2int): support more limits:
+ RLIMIT_MSGQUEUE, RLIMIT_NICE, RLIMIT_RTPRIO, RLIMIT_RTTIME and
+ RLIMIT_SIGPENDING.
+ (Init_process): ditto.
+ patch by Run Paint Run Run. [ruby-core:32262]
-Sat Aug 23 18:56:53 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Sun Sep 12 04:27:13 2010 Tanaka Akira <akr@fsij.org>
- * ext/nkf/nkf.c (rb_nkf_putchar): should use rb_str_resize() to just
- resize a string, rb_str_cat() disallows NULL. [ruby-dev:21237]
+ * process.c (rlimit_resource_name2int): use STRCASECMP to avoid
+ ALLOCA_N.
-Sat Aug 23 16:48:41 2003 Keiju Ishitsuka <keiju@ishitsuka.com>
+Sat Sep 11 16:47:41 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * lib/irb/ruby-lex.rb: bug fix for "foo" !~ /bar/. [ruby-talk:79942]
+ * hash.c (ruby_setenv): raise if putenv and SetEnvironmentVariable
+ failed, because of the restriction of the size on Windows.
+ based on a patch from Peter Weldon at [ruby-core:32304]. fix:
+ Bug#3812, [ruby-core:32250]
-Sat Aug 23 15:59:58 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Sat Sep 11 15:19:57 2010 Eric Hodel <drbrain@segment7.net>
- * eval.c (rb_eval, rb_iterate, block_pass): reduce PUSH/POP_TAG and
- EXEC_TAG() for retry. [ruby-dev:21216]
+ * lib/webrick/httpauth/digestauth.rb (WEBrick::Config::DigestAuth):
+ Add documentation
-Sat Aug 23 02:32:33 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * lib/webrick/config.rb (WEBrick::Config::DigestAuth): Add
+ documentation
- * eval.c (rb_yield_splat): should check if "values" is array.
+Sat Sep 11 12:32:05 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * enum.c (each_with_index_i): typo.
+ * include/ruby/intern.h (rb_set_kcode, rb_get_kcode): removed
+ zombie prototype declarations. a patch from Eric Hodel
+ at [ruby-core:32305].
-Fri Aug 22 17:07:05 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+Sat Sep 11 06:53:12 2010 Tanaka Akira <akr@fsij.org>
- * enum.c (inject_i): use rb_yield_values.
+ * ext/pathname/pathname.c (path_symlink_p): Pathname#symlink?
+ translated from pathname.rb.
- * enum.c (each_with_index_i): ditto.
+Fri Sep 10 23:03:43 2010 Tanaka Akira <akr@fsij.org>
- * eval.c (rb_yield_splat): new function to call "yield *values".
+ * ext/pathname/pathname.c (path_sticky_p): Pathname#sticky? translated
+ from pathname.rb.
- * string.c (rb_str_scan): use rb_yield_splat().
+Fri Sep 10 19:11:13 2010 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
-Fri Aug 22 06:13:22 2003 why the lucky stiff <why@ruby-lang.org>
+ * lib/webrick/httprequest.rb (WEBrick::HTTPRequest#continue): add
+ method for generating HTTP/1.1 100 continue response if the client
+ expects it, otherwise does nothing. Patch by Brian Candler.
+ ref #855.
- * ext/syck/rubyext.c: refactoring of the transfer method
- dispatch. added yaml_org_handler for faster dispatch of
- transfers to base types.
+ * test/webrick/test_httprequest.rb: test added.
- * lib/yaml/rubytypes.rb: removed handling of builtins from
- Ruby library.
+Fri Sep 10 17:49:34 2010 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
- * ext/syck/token.c: quoted and block scalars are now implicit !str
+ * ext/openssl/lib/openssl/x509-internal.rb: removed unused local
+ variable.
- * ext/syck/implicit.c: empty string detected as !null.
+ * test/openssl/*: less warnings while test running with -w.
-Fri Aug 22 01:00:31 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Fri Sep 10 16:49:20 2010 Akinori MUSHA <knu@iDaemons.org>
- * eval.c (block_pass): improve passing current block.
+ * class.c (rb_scan_args): Add support for optional keyword
+ argument hash. [ruby-dev:42221] [ruby-dev:38048]
-Fri Aug 22 00:13:00 2003 Shigeo Kobayashi <shigek@ruby-lang.org>
+ * README.EXT, README.EXT.ja: Update documentation accordingly.
- * ext/bigdecimal/bigdecimal.c: Int. overflow bug in multiplication
- fixed, and VpNmlz() speed up.
+ * dir.c (dir_initialize): Make use of the new rb_scan_args()
+ feature.
-Wed Aug 20 16:44:49 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * io.c (rb_io_s_popen, rb_scan_open_args, rb_io_initialize)
+ (rb_io_s_pipe, open_key_args, io_s_foreach, io_s_readlines)
+ (rb_io_s_read, rb_io_set_encoding): Ditto.
- * ext/socket/socket.c (ruby_connect): many systems seem to have
- a problem in select() after EINPROGRESS. [ruby-list:38080]
+ * transcode.c (str_transcode, econv_args)
+ (econv_primitive_convert): Ditto.
-Wed Aug 20 01:31:17 2003 why the lucky stiff <why@ruby-lang.org>
+ * ext/zlib/zlib.c (rb_gzreader_initialize): Ditto.
- * ext/syck/syck.h: Parser definition problems on HP-UX.
- [ruby-talk:79389]
+Fri Sep 10 10:33:18 2010 NARUSE, Yui <naruse@ruby-lang.org>
- * ext/syck/handler.c (syck_hdlr_get_anchor): Memory leak.
+ * random.c (rb_genrand_ulong_limited): renamed from
+ rb_rand_internal and now this is public API.
- * ext/syck/syck.s (syck_io_file_read): Bad arguments to fread.
+ * include/ruby/ruby.h (rb_genrand_ulong_limited): added.
- * ext/syck/rubyext.c: Tainting issues.
+ * bignum.c (big_sparse_p): use rb_genrand_ulong_limited.
-Tue Aug 19 23:20:00 2003 Shigeo Kobayashi <shigek@ruby-lang.org>
+Fri Sep 10 13:07:22 2010 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
- * ext/bigdecimal/bigdecimal.c .h .html: to_s("+") implemented.
+ * ext/digest/lib/digest.rb: removed unused exception variable
+ assignment to avoid a warning.
- * ext/bigdecimal/lib/bigdecimal/math.rb: E implemented.
+Fri Sep 10 07:29:14 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Tue Aug 19 11:19:33 2003 Shugo Maeda <shugo@ruby-lang.org>
+ * ext/etc/etc.c (etc_systmpdir): assume system default tmpdir
+ safe. [ruby-dev:42089]
- * io.c (next_argv): should not call GetOpenFile() if rb_stdout is
- not a IO (T_FILE).
+Fri Sep 10 07:03:23 2010 Tanaka Akira <akr@fsij.org>
-Tue Aug 19 07:47:10 2003 GOTOU Yuuzou <gotoyuzo@notwork.org>
+ * ext/pathname/pathname.c (path_size_p): Pathname#size? translated from
+ pathname.rb.
- * lib/webrick/ssl.rb: new file; SSL/TLS enhancement for GenericServer.
+Fri Sep 10 02:15:29 2010 Tanaka Akira <akr@fsij.org>
- * lib/webrick/https.rb: SSLSocket handling is moved to webrick/ssl.rb.
+ * ext/socket/option.c (inspect_peercred): support OpenBSD-current.
+ patch by Jeremy Evans. [ruby-core:32240]
- * lib/webrick/compat.rb (File::fnmatch): remove old migration code.
+Thu Sep 9 23:25:53 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * lib/webrick/httpserver.rb (HTTPServer#run): ditto.
+ * vm.c (vm_backtrace_each): skip allocator frames which have no
+ name. [ruby-core:32231]
- * lib/webrick/server.rb (GenericServer#listen): the body of this
- method is pull out as Utils::create_lisnteners.
+Thu Sep 9 22:39:08 2010 Tanaka Akira <akr@fsij.org>
- * lib/webrick/utils.rb (Utils::create_lisnteners): new method.
+ * ext/pathname/pathname.c (path_size): Pathname#size translated from
+ pathname.rb.
- * lib/webrick/server.rb (GenericServer#start): should rescue
- unknown errors. and refine comments.
+Thu Sep 9 22:34:48 2010 wanabe <s.wanabe@gmail.com>
- * ext/openssl/lib/openssl/ssl.rb (SSLServer#accept): should close
- socket if SSLSocket raises error.
+ * compile.c (case_when_optimizable_literal): When float value can be
+ treated as integer, add to table hash of case that way.
+ based on a patch from Ikuo KOBORI. [ruby-dev:42038]
-Tue Aug 19 07:47:09 2003 GOTOU Yuuzou <gotoyuzo@notwork.org>
+ * insns.def (opt_case_dispatch): ditto.
- * ext/openssl/ossl_ssl.c: sync_close is moved to SSLSocket as
- a builtin.
+ * test/ruby/test_case.rb: add tests.
- * ext/openssl/lib/openssl/buffering.rb (Buffering#close): ditto.
+Thu Sep 9 17:15:15 2010 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
- * ext/openssl/lib/openssl/buffering.rb (Buffering#puts): should
- add a return to the tails of each line.
+ * test/net/http/test_https.rb (test_identity_verify_failure): follows
+ the SSL hostname check error message of openssl.
- * ext/openssl/lib/openssl/ssl.rb: new class OpenSSL::SSL::SSLServer.
+Thu Sep 9 10:44:46 2010 NARUSE, Yui <naruse@ruby-lang.org>
- * ext/openssl/lib/net/protocols.rb (SSLIO#ssl_connect): use sync_close.
+ * test/ruby/test_env.rb (test_aset): OpenBSD acts like NetBSD in
+ that it ignores characters after = in ENV.
+ patched by Jeremy Evans [ruby-core:32184]
- * ext/openssl/sample/echo_svr.rb: use SSLServer.
+Thu Sep 9 09:02:01 2010 NARUSE, Yui <naruse@ruby-lang.org>
- * ext/openssl/sample/echo_cli.rb: add example of SSLSocket#sync_close.
+ * tool/rbinstall.rb (install?): gemspec filename should include
+ its version. patched by Luis Lavena [ruby-core:32165]
-Tue Aug 19 01:24:34 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Wed Sep 8 22:46:31 2010 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
- * ext/curses/curses.c (_XOPEN_SOURCE_EXTENDED): Mac OS X standard
- headers are inconsistent at this macro. [ruby-core:01432]
+ * ext/openssl/ossl_ssl.c (ssl_get_error): Thread context switch was
+ blocked on Windows while blocking call for SSLSocket. Need to
+ convert errno for letting rb_io_wait_readable detect EWOULDBLOCK.
+ Patch by arton. ref #3794.
- * ext/curses/extconf.rb: check if _XOPEN_SOURCE_EXTENDED breaks.
+Wed Sep 8 20:56:57 2010 Tanaka Akira <akr@fsij.org>
- * ext/tcltklib/stubs.c: Status macro in X11/Xthreads.h bothers
- winspool.h
+ * ext/pathname/pathname.c (path_setgid_p): Pathname#setgid? translated
+ from pathname.rb.
- * instruby.rb: make list at first instead of iterator.
- [ruby-talk:79347]
+Wed Sep 8 06:25:41 2010 Tanaka Akira <akr@fsij.org>
-Mon Aug 18 11:23:11 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * ext/pathname/pathname.c (path_setuid_p): Pathname#setuid? translated
+ from pathname.rb.
- * dir.c (glob_helper): preserve raw order for **.
+Tue Sep 7 21:03:35 2010 Tanaka Akira <akr@fsij.org>
-Sun Aug 17 23:39:55 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * ext/pathname/pathname.c (path_readable_real_p):
+ Pathname#readable_real? translated from pathname.rb.
- * ext/openssl/extconf.rb (HAVE_VA_ARGS_MACRO): need to compile.
+Mon Sep 6 23:07:25 2010 Tanaka Akira <akr@fsij.org>
-Sun Aug 17 17:10:03 2003 GOTOU Yuuzou <gotoyuzo@notwork.org>
+ * ext/pathname/pathname.c (path_world_readable_p):
+ Pathname#world_readable? translated from pathname.rb.
- * ext/openssl/lib/openssl/ssl.rb (SSLSocket#sync_close=): add a
- method to specify if the underlying IO will be closed in
- SSLSocket#close.
+Mon Sep 6 11:03:13 2010 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
- * ext/openssl/lib/openssl/buffering.rb: add forwarders to
- setsockopt, getsockopt and fcntl.
+ * Fixed wrong check of missing functions. Patch by Adrian Quark.
+ ref #3400
+ The patch contains following comment:
+ This patch should avoid unnecessary incompatibility with future
+ versions of Openssl. Changes suggested by bmaher_at_amazon.com.
- * ext/openssl/lib/net/protocols.rb: enable sync for SSLSocket.
+Mon Sep 6 10:46:55 2010 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
-Sun Aug 17 11:32:04 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * Fixed exception message for SSL post connection check failure. Patch
+ by Paul Betteridge. ref [Bug #3704]
- * ext/extmk.rb (extmake): should not force to remake Makefile when
- installation and so on.
+Mon Sep 6 10:31:59 2010 NARUSE, Yui <naruse@ruby-lang.org>
-Sat Aug 16 23:58:18 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * ext/readline/readline.c (readline_s_get_line_buffer):
+ Readline.line_buffer should return locale string.
+ [ruby-dev:42184] #3791
- * marshal.c (w_symbol, w_object): get rid of warnings.
+Mon Sep 6 09:47:24 2010 NARUSE, Yui <naruse@ruby-lang.org>
- * re.c (rb_memsearch): ditto.
+ * util.c (ruby_strtod): check there is at least 1 digit after
+ "0x" before ".". [ruby-dev:42183] #3790
- * time.c (time_dump): ditto.
+Mon Sep 6 09:44:50 2010 NARUSE, Yui <naruse@ruby-lang.org>
- * ext/extmk.rb (extmake): not continue making when extconf.rb
- failed.
+ * util.c (ruby_strtod): check integer overflow.
+ [ruby-dev:42180] #3789
- * ext/openssl/extconf.rb: check __VA_ARGS__ macro more precisely.
+Mon Sep 6 06:17:21 2010 Tanaka Akira <akr@fsij.org>
- * ext/openssl/ossl.h: remove version.h dependency.
+ * ext/pathname/pathname.c (path_readable_p): Pathname#readable?
+ translated from pathname.rb.
- * ext/openssl/ruby_missing.h: ditto.
+Sun Sep 5 23:02:34 2010 Tanaka Akira <akr@fsij.org>
- * lib/mkmf.rb (pkg_config): use --libs output except with
- only-L for other options. [ruby-list:38099]
+ * ext/pathname/pathname.c (path_owned_p): Pathname#owned?
+ translated from pathname.rb.
- * lib/mkmf.rb (create_makefile): separate rule for static
- library from shared object.
+Sat Sep 4 23:48:47 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * win32/Makefile.sub, bcc32/Makefile.sub, wince/Makefile.sub:
- define exec_prefix and libdir.
+ * file.c (rb_file_s_readlink): symlink target should be in
+ filesystem encoding.
-Fri Aug 15 23:15:00 2003 Shigeo Kobayashi <shigek@ruby-lang.org>
+Sat Sep 4 10:40:50 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * ext/bigdecimal/bigdecimal.c .h: Bug in combination of limit & div
- method fixed.
+ * load.c (ruby_init_ext): export for golfers.
- * ext/bigdecimal/lib/bigdecimal/math.rb: atan() & sqrt() added.
+ * vm_core.h (rb_iseq_eval, rb_iseq_compile_with_option): ditto.
-Fri Aug 15 12:01:44 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+Sun May 23 17:29:41 2010 Yuki Sonoda (Yugui) <yugui@yugui.jp>
- * configure.in (HUGE_ST_INO): check whether struct stat.st_ino
- is larger than long. [ruby-dev:21194]
- http://www.geocities.co.jp/SiliconValley-PaloAlto/1409/ruby/beos.html
+ * common.mk (capi): uses a timestamp file to get rid of
+ generating twice.
- * error.c (syserr_eqq): errno might exceed Fixnum limit.
+Fri Jun 18 01:33:21 2010 Yuki Sonoda (Yugui) <yugui@yugui.jp>
- * error.c (Init_Exception): moved base initialization from
- init_syserr().
+ * enc/Makefile.in (realclean): has been missing. necessary
+ for make realclean-enc.
- * inits.c (rb_call_inits): postpone initializing errnos until
- Bignum is available.
+Fri Sep 3 23:51:26 2010 Tanaka Akira <akr@fsij.org>
-Fri Aug 15 12:01:43 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * ext/pathname/pathname.c (path_socket_p): Pathname#socket?
+ translated from pathname.rb.
- * ext/curses/curses.c (_XOPEN_SOURCE_EXTENDED): needed to let
- keyname() and so on be declared.
+Fri Sep 3 06:40:44 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * ext/curses/curses.c (curses_resizeterm, window_resize):
- arguments conflicted with macros in term.h.
+ * ext/pty/pty.c (chfunc): pass through exceptions.
- * ext/curses/curses.c (Curses module methods): ensure
- initialized. [ruby-dev:21191]
+ * io.c (rb_io_bufwrite, rb_io_bufread): added.
-Fri Aug 15 02:08:53 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * process.c (rb_fork_err): protect from exceptions.
- * gc.c (id2ref): recycle check should be done by klass == 0.
- [ruby-core:01408]
+Fri Sep 3 06:16:07 2010 Tanaka Akira <akr@fsij.org>
-Fri Aug 15 01:34:23 2003 Michal Rokos <m.rokos@sh.cvut.cz>
+ * ext/pathname/pathname.c (path_pipe_p): Pathname#pipe?
+ translated from pathname.rb.
- * ext/openssl/ossl_pkey.c: move generate_cb here
+Fri Sep 3 06:14:40 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * ext/openssl/ossl_pkey_{dh|dsa|rsa}.c: adapt to this cb
+ * ext/pty/pty.c (chfunc): restore errno from SystemCallError and
+ propagate proper exception to the parent. [ruby-dev:41965]
- * ext/openssl/openssl_missing.[ch]: add (0.9.6x, x<j) missing BN funcs
+Thu Sep 2 22:10:38 2010 Tanaka Akira <akr@fsij.org>
- * ext/openssl/ossl_bn.c: use supplied funcs from openssl_missing.c
+ * ext/pathname/pathname.c (path_file_p): Pathname#file?
+ translated from pathname.rb.
-Fri Aug 15 00:38:00 2003 Shigeo Kobayashi <shigek@ruby-lang.org>
+Thu Sep 2 09:12:02 2010 NAKAMURA Usaku <usa@ruby-lang.org>
- * ext/bigdecimal/bigdecimal.c: Bug in div method fixed.
+ * win32/win32.c (rb_w32_spawn, rb_w32_aspawn): don't forget to free
+ memory.
- * ext/bigdecimal/lib/bigdecimal/math.rb: Newly added.
+Thu Sep 2 09:01:13 2010 NAKAMURA Usaku <usa@ruby-lang.org>
- * ext/bigdecimal/sample/pi.rb: Changed so as to use math.rb.
+ * win32/win32.c (CreateChild): unicodize.
-Thu Aug 14 21:19:14 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * win32/win32.c (rb_w32_spawn, rb_w32_aspawn): convert arguments of
+ CreateChild() from ACP to WideChar.
- * eval.c (Init_Thread): Continuation#[] added. [ruby-talk:79028]
+Thu Sep 2 06:53:43 2010 Tanaka Akira <akr@fsij.org>
-Thu Aug 14 20:03:34 2003 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+ * ext/pathname/pathname.c (path_directory_p): Pathname#directory?
+ translated from pathname.rb.
- * ext/win32ole/win32ole.c (OLE_FREE): should not call
- ole_message_loop.
+Wed Sep 1 22:03:41 2010 Tanaka Akira <akr@fsij.org>
- * ext/win32ole/win32ole.c (ole_event_free): ditto.
+ * ext/pathname/pathname.c (path_grpowned_p): Pathname#grpowned?
+ translated from pathname.rb.
- * ext/win32ole/win32ole.c (ole_initialize): stop calling
- OleUninitialize at exit.
+Wed Sep 1 17:39:02 2010 Ryan Davis <ryand-ruby@zenspider.com>
-Thu Aug 14 11:27:37 2003 NAKAMURA Usaku <usa@ruby-lang.org>
+ * lib/minitest/*.rb: Imported minitest 1.7.1 r5835.
+ * test/minitest/*.rb: ditto.
- * gc.c (rb_data_object_alloc): check type of 1st argument.
- [ruby-dev:21192]
+Wed Sep 1 16:50:42 2010 NARUSE, Yui <naruse@ruby-lang.org>
-Thu Aug 14 00:21:14 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * string.c (tr_setup_table): optimized. don't create hash objects
+ when given pattern is ASCII only.
- * parse.y (mlhs_node): should allow "::Foo" (colon3) as lhs.
+ * string.c (tr_find): ditto.
- * parse.y (lhs): ditto.
+Wed Sep 1 14:35:29 2010 NARUSE, Yui <naruse@ruby-lang.org>
- * parse.y (yylex): should return tCOLON3 right after kCLASS.
- [ruby-talk:78918]
+ * array.c (rb_ary_rotate_m): fix typo of rdoc.
+ patched by Andrei Kulakov [ruby-core:31975]
- * error.c (exc_initialize): was converting argument to string too
- eagerly. Only check was needed. [ruby-talk:78958]
+Wed Sep 1 14:33:36 2010 NARUSE, Yui <naruse@ruby-lang.org>
-Wed Aug 13 23:31:00 2003 Shigeo Kobayashi <shigek@ruby-lang.org>
+ * enum.c (enum_zip): fix typo of rdoc.
+ patched by Andrei Kulakov [ruby-core:31974]
- * ext/bigdecimal/bigdecimal.c .h .html: Ambiguity of
- BigDecimal::limit removed.
+Wed Sep 1 12:56:36 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Wed Aug 13 19:21:34 2003 Christian Neukirchen <chneukirchen@yahoo.de>
+ * thread.c (ruby_suppress_tracing): restore the state and invoke
+ the func with normal state. a patch from Satoshi Shiba <shiba
+ AT rvm.jp> at [ruby-dev:42162]. [ruby-core:31783]
- * lib/webrick/https.rb (HTTPServer#run): should set syncing-mode
- to SSLSocket. [ruby-talk:78919]
+Tue Aug 31 21:10:23 2010 Tanaka Akira <akr@fsij.org>
-Wed Aug 13 18:13:49 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * ext/pathname/pathname.c (path_exist_p): Pathname#exist? translated
+ from pathname.rb.
- * eval.c (POP_BLOCK): turn on BLOCK_LEFT flag when leaving block.
+Tue Aug 31 17:32:34 2010 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
- * eval.c (proc_invoke): unpack return/break destination when block
- is already left.
+ * ext/tk/stubs.c: fix [Bug #3771] "VC++ can't make ext/tk with enabling
+ stubs". Thanks, Akio Tajima [ruby-dev:42159].
-Wed Aug 13 15:58:31 2003 WATANABE Hirofumi <eban@ruby-lang.org>
+Tue Aug 31 03:42:14 2010 NARUSE, Yui <naruse@ruby-lang.org>
- * object.c (rb_class_s_alloc): add function prototype to avoid VC++
- warning.
+ * string.c (tr_setup_table): fix bug in r29146.
+ Initialize table even if cflag is 0; tr_find see whether
+ del is empty or not.
-Wed Aug 13 13:50:59 2003 NAKAMURA Usaku <usa@ruby-lang.org>
+ * string.c (tr_find): nodel can't be NULL; if NULL, it means
+ it is not specified.
- * ext/Win32API/Win32API.c (Win32API_initialize): should pass some
- class to first argument of Data_Wrap_Struct(). (ruby-bugs:PR#1109)
+Mon Aug 30 21:29:21 2010 Tanaka Akira <akr@fsij.org>
-Tue Aug 12 16:55:11 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * ext/pathname/pathname.c (path_executable_real_p):
+ Pathname#executable_real? translated from pathname.rb.
- * Makefile.in: static link libraries to LIBRUBY_SO with static linked
- ext. [ruby-dev:21157]
+Mon Aug 30 15:00:13 2010 NARUSE, Yui <naruse@ruby-lang.org>
- * ext/extmk.rb (extmake): sort extension library initialization order.
+ * string.c (tr_setup_table): initialize negating table when
+ negating string is given. [ruby-core:31851]
- * ext/extmk.rb (extmake): compact $extlibs.
+ * string.c (tr_find): add a sentence for the time when
+ target characters include negating one.
-Tue Aug 12 02:48:56 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * string.c (rb_str_count): move definition.
- * eval.c (THREAD_SAVE_CONTEXT): should explicitly turn off the
- flag before calling getcontext(2).
+Mon Aug 30 07:32:41 2010 Tanaka Akira <akr@fsij.org>
- * eval.c (struct thread): add member to save backing store on
- IA64. (ruby-bugs PR1086)
+ * ext/pathname/pathname.c (path_executable_p): Pathname#executable?
+ translated from pathname.rb.
- * eval.c (thread_mark): mark IA64 backing store region.
+Sun Aug 29 23:54:10 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * eval.c (thread_free): free saved IA64 backing store.
+ * lib/rdoc/parser/ruby.rb (RDoc#parse_call_parameters): don't
+ include assignment. [Bug #3759], [ruby-dev:42154]
- * eval.c (rb_thread_save_context): save IA64 backing store as well.
+ * lib/rdoc/parser/ruby.rb (RDoc#parse_class): ignore non-constant
+ name singleton class. [Bug #3759], [ruby-dev:42154]
- * eval.c (rb_thread_restore_context): restore IA64 backing store.
+Sun Aug 29 23:25:18 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * eval.c (THREAD_ALLOC): initialize IA64 members.
+ * file.c (rb_get_path_check): clarify error message for
+ ASCII-incompatible path name.
-Mon Aug 11 22:31:50 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+Sun Aug 29 16:02:54 2010 NARUSE, Yui <naruse@ruby-lang.org>
- * lib/debug.rb(debug_command): inspection command should inspect
- resulting value even if it's nil. [ruby-dev:21180] by OMAE, jun
- <jun66j5@ybb.ne.jp>.
+ * common.mk (node_name.inc): remove command option -n and give
+ file as stdin, because IronRuby 1.1 still doesn't support it.
+ So now we can use ir.exe as BASERUBY.
- * lib/debug.rb(debug_command): incomplete regexp.
+ * tool/node_name.rb: read stdin with while gets.
-Mon Aug 11 17:33:07 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+Sun Aug 29 13:22:43 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * eval.c (rb_call_super): do not use rb_block_given_p() for
- check. [ruby-talk:78656]
+ * vm.c (rb_thread_method_id_and_class): curried proc has no
+ method. [ruby-core:31871]
- * eval.c (BEGIN_CALLARGS): push ITER_NOT only when ITER_PRE.
+Sun Aug 29 12:51:33 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Sun Aug 10 10:43:05 2003 GOTOU Yuuzou <gotoyuzo@notwork.org>
+ * load.c (rb_provide_feature): clarify error message for frozen
+ $LOADED_FEATURES. based on a patch from Run Paint Run Run at
+ [ruby-core:31913].
- * ext/openssl/lib/openssl/buffering.rb: increase BLOCK_SIZE
- from 1k to 16k bytes. [ruby-talk:78603]
+Sun Aug 29 12:19:58 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * ext/openssl/ossl_ssl.c (ossl_sslctx_s_alloc): enable
- partial write to allow interruption in SSLSocket#write.
+ * load.c (load_failed): should honor encoding. [ruby-core:31915]
-Sun Aug 10 00:34:16 2003 WATANABE Hirofumi <eban@ruby-lang.org>
+Sun Aug 29 09:35:10 2010 NARUSE, Yui <naruse@ruby-lang.org>
- * cygwin/GNUmakefile: remove unnecessary '--drive-name=$(CC)'
- for ccache.
+ * common.mk (clean): exclude *.inc. [ruby-dev:41931]
-Sat Aug 9 10:36:21 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * common.mk (distclean): include *.inc.
- * marshal.c (w_object): do not dump generic instance variable when
- marshal_dump is defined.
+ * common.mk (help): change description about clean and distclean.
-Sat Aug 9 00:35:00 2003 Shigeo Kobayashi <shigek@ruby-lang.org>
+Sat Aug 29 06:34:52 2010 Tanaka Akira <akr@fsij.org>
- * ext/bigdecimal.c: F style output(like 1234.56789) implemented
- to to_s method.
- * ext/bigdecimal_??.html: F style output(like 1234.56789)
- implemented to to_s method.
+ * ext/pathname/pathname.c (path_chardev_p): Pathname#chardev?
+ translated from pathname.rb.
-Fri Aug 8 12:33:17 2003 WATANABE Hirofumi <eban@ruby-lang.org>
+Sat Aug 28 17:39:33 2010 Kenta Murata <mrkn@mrkn.jp>
- * bcc32/Makefile.sub: rubyw.exe should be a Windows GUI program.
- add the -aa option to WLDFLAGS.
+ * ext/bigdecimal/bigdecimal.c (BigDecimal_save_exception_mode,
+ BigDecimal_save_rounding_mode, BigDecimal_save_limit): added.
-Fri Aug 8 11:29:26 2003 Koji Arai <jca02266@nifty.ne.jp>
+ * test/bigdecimal/test_bigdecimal.rb: added tests for the above
+ features.
- * marshal.c (w_object): should set `c_arg' at first.
+Sat Aug 28 08:11:05 2010 Tanaka Akira <akr@fsij.org>
-Fri Aug 8 03:22:28 2003 GOTOU Yuuzou <gotoyuzo@notwork.org>
+ * ext/pathname/pathname.c (path_blockdev_p): Pathname#blockdev?
+ translated from pathname.rb.
- * lib/webrick/httputils.rb (FormData#list): should not take
- a side effect for the receiver.
+Fri Aug 27 16:20:01 2010 URABE Shyouhei <shyouhei@ruby-lang.org>
-Thu Aug 7 14:40:37 2003 WATANABE Hirofumi <eban@ruby-lang.org>
+ * string.c (rb_str_prepend): new method by Shota Fukumori (sora_h)
+ [Feature #3765]
- * cygwin/GNUmakefile: better --disbale-shared option support.
+Fri Aug 27 15:24:20 2010 NAKAMURA Usaku <usa@ruby-lang.org>
- * cygwin/GNUmakefile: add forwarding DLL target for cygwin.
+ * math.c (math_atan2): you should know that M_PI is not the feature
+ of C90.
+ fixed build failure caused by r29115.
-Thu Aug 7 14:21:05 2003 Corinna Vinschen <vinschen@redhat.com>
+Fri Aug 27 15:26:33 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * configure.in: Fix Cygwin specific naming of libraries to
- be net distribution compliant. (ruby-bugs:PR#1077)
- cygwin-ruby18.dll -> cygruby18.dll
+ * file.c (null_device): move from io.c.
-Thu Aug 7 12:51:38 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+Fri Aug 27 12:47:44 2010 Kenta Murata <mrkn@mrkn.jp>
- * eval.c (rb_f_at_exit): should not be called without a block.
- block_given check added.
+ * math.c (math_atan2): change the behavior when x and y are zero.
+ [ruby-dev:42090] [Bug #3736] [ruby-dev:42116]
-Thu Aug 7 06:46:06 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * test/ruby/test_math.rb (test_atan2): add tests for the above
+ changes.
- * eval.c (rb_call0): forgot to pop ruby_class.
+Fri Aug 27 12:26:23 2010 NAKAMURA Usaku <usa@ruby-lang.org>
- * eval.c (rb_call0): update ruby_class as well as ruby_cref.
- (ruby-bugs-ja:PR#540)
+ * object.c (rb_obj_class): remove mention of obsolete method.
+ a patch from Run Paint Run Run at [ruby-core:31842].
-Thu Aug 7 04:52:50 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+Fri Aug 27 12:25:03 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * eval.c (rb_yield_0): remove ruby_frame->cbase and unify to
- ruby_cref. [ruby-talk:78141]
+ * io.c (null_device): the name of null device. [ruby-dev:41791]
-Thu Aug 7 04:19:15 2003 Akinori MUSHA <knu@iDaemons.org>
+Fri Aug 27 07:57:34 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * gc.c: FreeBSD/ia64's mcontext_t is a bit different from that of
- Linux/ia64. This makes gc.c compile but miniruby coredumps for
- the moment.
+ * array.c (rb_ary_shuffle_bang): bail out from modification during
+ shuffle.
-Thu Aug 7 00:15:00 2003 Shigeo Kobayashi <shigek@ruby-lang.org>
+ * array.c (rb_ary_sample): ditto.
- * ext/bigdecimal.c: Comparison results adjusted to Float's.
- * ext/bigdecimal.c: Use rb_num_coerce_????(x,y) instead of own.
+Fri Aug 27 05:11:51 2010 Tanaka Akira <akr@fsij.org>
-Wed Aug 6 22:58:00 2003 Nathaniel Talbott <ntalbott@ruby-lang.org>
+ * ext/pathname/pathname.c (path_sysopen): Pathname#sysopen translated
+ from pathname.rb.
- * lib/test/unit/testcase.rb: Added equality checking.
- * lib/test/unit/testsuite.rb: Added equality checking.
- * lib/test/unit/assertions.rb: Fixed a warning.
+Thu Aug 26 22:53:56 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Wed Aug 6 17:28:10 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * array.c (rb_ary_shuffle): rdoc fix. argument name was missing.
+ a patch from Run Paint Run Run at [ruby-core:31848].
- * ext/extmk.rb (extmake): pass LIBPATH to make ruby. [ruby-dev:21137]
+Thu Aug 26 21:49:46 2010 Tanaka Akira <akr@fsij.org>
- * ext/extmk.rb (extmake): set library name as source file name in
- Init_ext(). [ruby-dev:21137]
+ * ext/pathname/pathname.c (path_readlines): Pathname#readlines
+ translated from pathname.rb.
- * lib/mkmf.rb (Logging::postpone): postpone logging messages after
- heading message as the result of the block.
+Thu Aug 26 10:37:00 2010 NARUSE, Yui <naruse@ruby-lang.org>
- * lib/mkmf.rb (macro_defined?): append newline to src unless ended
- with it.
+ * regint.h (OnigStackIndex): the type should be intptr_t.
+ Original Oniguruma assumes the size of long and that of void *
+ are equal, but it's not true on LLP64 platform: mswin64.
+ originally patched by shintaro kuwamoto [ruby-dev:42133]
- * lib/mkmf.rb (have_library): treat nil function name as "main".
- (ruby-bugs:PR#1083)
+Thu Aug 26 10:38:11 2010 Yutaka Kanemoto <kanemoto@ruby-lang.org>
- * lib/mkmf.rb (pkg_config): should append additional libraries to
- $libs but not $LIBS. [ruby-dev:21137]
+ * test/dl/test_base.rb: AIX does not have dynamically loadable lib[cm].
- * ext/io/wait/extconf.rb: check DOSISH macro instead of platform.
+ * test/fiddle/helper.rb: AIX does not have dynamically loadable lib[cm].
- * ext/digest/sha1/extconf.rb: have_library already appends library
- name.
+Thu Aug 26 09:49:50 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Wed Aug 6 17:23:57 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * array.c (rb_ary_shuffle_bang): check number of argument.
- * eval.c: initialize /* OK */ variables by Qnil to stop warnings.
+Tue Aug 26 09:11:40 2010 Kenta Murata <mrkn@mrkn.jp>
-Wed Aug 6 04:58:32 2003 NAKAMURA Usaku <usa@ruby-lang.org>
+ * ext/bigdecimal/bigdecimal.c (Init_bigdecimal,
+ rmpd_set_thread_local_exception_mode, VpGetException,
+ VpSetException): thread-local exception mode.
- * ext/Setup*: add io/wait and openssl.
+ * ext/bigdecimal/bigdecimal.c (Init_bigdecimal,
+ rmpd_set_thread_local_precision_limit, VpGetPrecLimit,
+ VpSetPrecLimit): thread-local precision limit.
-Wed Aug 6 01:13:38 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+ * ext/bigdecimal/bigdecimal.c (Init_bigdecimal,
+ rmpd_set_thread_local_rounding_mode, VpGetRoundMode,
+ VpSetRoundMode, VpException, VpInternalRound):
+ thread-local rounding mode.
- * eval.c (rb_f_autoload): use ruby_cbase instead of ruby_class.
+ * ext/bigdecimal/bigdecimal.c (BigDecimal_mode, BigDecimal_round,
+ VpIsRoundMode, VpGetRoundMode, VpSetRoundMode, VpActiveRound,
+ VpMidRound, VpLeftRound), ext/bigdecimal/bigdecimal.h:
+ use unsigned short for rounding mode.
- * eval.c (rb_f_autoload_p): ditto.
+ * test/bigdecimal/test_bigdecimal.rb (test_mode): add test for
+ setting rounding mode.
- * class.c (rb_mod_init_copy): no longer implements independent
- clone and dup methods. override "initialize_copy" instead.
- [ruby-core:01352]
+ * test/bigdecimal/test_bigdecimal.rb (test_thread_local_mode):
+ add test for setting mode thread-locally.
- * object.c (rb_class_s_alloc): define Class allocation function.
- this makes Classes to follow clone framework that uses
- initialize_copy.
+Thu Aug 26 07:29:54 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * object.c (rb_class_initialize): separate instantiation and
- initialization.
+ * array.c (rb_ary_{shuffle_bang,sample}): use Random class object.
- * object.c (rb_obj_alloc): prohibit instantiation from
- uninitialized class.
+ * random.c (try_get_rnd): use default_rand for Random as same as
+ singleton methods.
- * object.c (rb_class_superclass): check uninitialized class.
+ * random.c (rb_random_real): check the range of result.
- * array.c (rb_ary_fill): wrong index processing with block. this
- fix was done by Koji Arai <JCA02266@nifty.ne.jp> [ruby-list:38029]
+Wed Aug 25 22:11:11 2010 Tanaka Akira <akr@fsij.org>
- * marshal.c (w_object): should preserve generic ivar for nil,
- true, false, symbols, and fixnums.
+ * ext/pathname/pathname.c (path_binread): Pathname#binread translated
+ from pathname.rb.
- * marshal.c (w_uclass): base_klass check should be done after
- rb_class_real().
+Wed Aug 25 03:42:43 2010 NAKAMURA Usaku <usa@ruby-lang.org>
-Wed Aug 6 01:18:50 2003 Minero Aoki <aamine@loveruby.net>
+ * ext/dl/cfunc.c (rb_dlcfunc_call): workaround for VC9 for x64.
+ reported by kuwamoto shintaro in [ruby-dev:42125].
- * lib/net/http.rb: update document.
+Tue Aug 24 23:28:50 2010 Yusuke Endoh <mame@tsg.ne.jp>
- * lib/net/pop.rb: ditto.
+ * .gitignore: updated.
- * lib/net/protocol.rb: ditto.
+Tue Aug 24 22:07:28 2010 Tanaka Akira <akr@fsij.org>
-Wed Aug 6 00:48:37 2003 Koji Arai <jca02266@nifty.ne.jp>
+ * ext/pathname/pathname.c (path_read): Pathname#read translated from
+ pathname.rb.
- * marshal.c (w_object): should recommend marshal_dump rather than
- _dump_data.
+Tue Aug 24 10:11:04 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Tue Aug 5 17:58:57 2003 WATANABE Hirofumi <eban@ruby-lang.org>
+ * configure.in: read API version from include/ruby/version.h.
- * lib/fileutils.rb (install): should preserve timestamp only.
+ * {bcc,win}32/setup.mak (-version-): ditto.
-Tue Aug 5 17:31:59 2003 Ian Macdonald <ian@caliban.org>
+ * version.h (RUBY_LIB_VERSION): use API version numbers.
- * lib/shell/command-processor.rb (Shell::CommandProcessor::rmdir):
- simple typo.
+Tue Aug 24 07:07:28 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
-Tue Aug 5 15:47:34 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+ * array.c (rb_ary_shuffle_bang, rb_ary_sample): add optional
+ argument random. [ruby-dev:41923] [EXPERIMENTAL]
- * eval.c (rb_load): should preserve current source file/line.
+ * random.c (rb_random_{int32,real,bytes}): fallback to normal
+ method invocation.
-Tue Aug 5 10:04:42 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+Tue Aug 24 06:08:10 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * string.c (str_new4): ptr may refer to null_str.
+ * include/ruby/version.h (RUBY_API_VERSION_*): renamed and moved
+ from version.h. [ruby-dev:42103]
-Mon Aug 4 17:25:18 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+Tue Aug 24 05:58:18 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
- * stable version 1.8.0 released.
+ * ChangeLog: flushed. [ruby-dev:42050]
+For the changes before 1.9.3, see doc/ChangeLog-1.9.3
For the changes before 1.8.0, see doc/ChangeLog-1.8.0
Local variables:
+coding: us-ascii
add-log-time-format: (lambda ()
(let* ((time (current-time))
(system-time-locale "C")
@@ -65668,4 +15423,6 @@ add-log-time-format: (lambda ()
(format-time-string "%a %b %e %H:%M:%S %Y" (list hi lo) t)))
indent-tabs-mode: t
tab-width: 8
+change-log-indent-text: 2
end:
+vim: tabstop=8 shiftwidth=2
diff --git a/Doxyfile.in b/Doxyfile.in
deleted file mode 100644
index ec27d2c054..0000000000
--- a/Doxyfile.in
+++ /dev/null
@@ -1,246 +0,0 @@
-# Doxyfile 1.5.7
-
-#---------------------------------------------------------------------------
-# Project related configuration options
-#---------------------------------------------------------------------------
-DOXYFILE_ENCODING = UTF-8
-PROJECT_NAME = Ruby
-OUTPUT_DIRECTORY = doc/capi
-CREATE_SUBDIRS = NO
-OUTPUT_LANGUAGE = English
-BRIEF_MEMBER_DESC = YES
-REPEAT_BRIEF = YES
-ABBREVIATE_BRIEF =
-ALWAYS_DETAILED_SEC = YES
-INLINE_INHERITED_MEMB = NO
-FULL_PATH_NAMES = YES
-STRIP_FROM_INC_PATH =
-SHORT_NAMES = NO
-JAVADOC_AUTOBRIEF = YES
-QT_AUTOBRIEF = NO
-MULTILINE_CPP_IS_BRIEF = NO
-INHERIT_DOCS = YES
-SEPARATE_MEMBER_PAGES = NO
-TAB_SIZE = 8
-ALIASES =
-OPTIMIZE_OUTPUT_FOR_C = YES
-OPTIMIZE_OUTPUT_JAVA = NO
-OPTIMIZE_FOR_FORTRAN = NO
-OPTIMIZE_OUTPUT_VHDL = NO
-BUILTIN_STL_SUPPORT = NO
-CPP_CLI_SUPPORT = NO
-SIP_SUPPORT = NO
-IDL_PROPERTY_SUPPORT = NO
-DISTRIBUTE_GROUP_DOC = NO
-SUBGROUPING = YES
-TYPEDEF_HIDES_STRUCT = NO
-SYMBOL_CACHE_SIZE = 0
-#---------------------------------------------------------------------------
-# Build related configuration options
-#---------------------------------------------------------------------------
-EXTRACT_ALL = YES
-EXTRACT_PRIVATE = NO
-EXTRACT_STATIC = YES
-EXTRACT_LOCAL_CLASSES = YES
-EXTRACT_LOCAL_METHODS = NO
-EXTRACT_ANON_NSPACES = NO
-HIDE_UNDOC_MEMBERS = NO
-HIDE_UNDOC_CLASSES = NO
-HIDE_FRIEND_COMPOUNDS = NO
-HIDE_IN_BODY_DOCS = YES
-INTERNAL_DOCS = NO
-CASE_SENSE_NAMES = NO
-HIDE_SCOPE_NAMES = NO
-SHOW_INCLUDE_FILES = YES
-INLINE_INFO = YES
-SORT_MEMBER_DOCS = YES
-SORT_BRIEF_DOCS = NO
-SORT_GROUP_NAMES = NO
-SORT_BY_SCOPE_NAME = NO
-GENERATE_TODOLIST = YES
-GENERATE_TESTLIST = YES
-GENERATE_BUGLIST = YES
-GENERATE_DEPRECATEDLIST= YES
-ENABLED_SECTIONS =
-MAX_INITIALIZER_LINES = 30
-SHOW_USED_FILES = YES
-SHOW_DIRECTORIES = NO
-SHOW_FILES = YES
-SHOW_NAMESPACES = YES
-LAYOUT_FILE =
-#---------------------------------------------------------------------------
-# configuration options related to warning and progress messages
-#---------------------------------------------------------------------------
-QUIET = NO
-WARNINGS = YES
-WARN_IF_UNDOCUMENTED = YES
-WARN_IF_DOC_ERROR = YES
-WARN_NO_PARAMDOC = NO
-WARN_FORMAT = "$file:$line: $text"
-WARN_LOGFILE =
-#---------------------------------------------------------------------------
-# configuration options related to the input files
-#---------------------------------------------------------------------------
-INPUT_ENCODING = UTF-8
-FILE_PATTERNS = *.c *.h *.y
-RECURSIVE = YES
-EXCLUDE = newline.c
-EXCLUDE_SYMLINKS = YES
-EXCLUDE_PATTERNS = *.src doc build tmp test yarvtest lib bootstraptest spec .ext .git .svn
-EXCLUDE_SYMBOLS =
-EXAMPLE_PATH =
-EXAMPLE_PATTERNS =
-EXAMPLE_RECURSIVE = NO
-IMAGE_PATH =
-FILTER_PATTERNS =
-FILTER_SOURCE_FILES = YES
-#---------------------------------------------------------------------------
-# configuration options related to source browsing
-#---------------------------------------------------------------------------
-SOURCE_BROWSER = NO
-INLINE_SOURCES = NO
-STRIP_CODE_COMMENTS = YES
-REFERENCED_BY_RELATION = NO
-REFERENCES_RELATION = NO
-REFERENCES_LINK_SOURCE = YES
-USE_HTAGS = NO
-VERBATIM_HEADERS = YES
-#---------------------------------------------------------------------------
-# configuration options related to the alphabetical class index
-#---------------------------------------------------------------------------
-COLS_IN_ALPHA_INDEX = 5
-IGNORE_PREFIX =
-#---------------------------------------------------------------------------
-# configuration options related to the HTML output
-#---------------------------------------------------------------------------
-GENERATE_HTML = YES
-HTML_OUTPUT = html
-HTML_FILE_EXTENSION = .html
-HTML_HEADER =
-HTML_FOOTER =
-HTML_STYLESHEET =
-HTML_ALIGN_MEMBERS = YES
-HTML_DYNAMIC_SECTIONS = NO
-GENERATE_DOCSET = NO
-DOCSET_FEEDNAME = "Doxygen generated docs"
-DOCSET_BUNDLE_ID = org.doxygen.Project
-GENERATE_HTMLHELP = NO
-CHM_FILE =
-HHC_LOCATION =
-GENERATE_CHI = NO
-CHM_INDEX_ENCODING =
-BINARY_TOC = NO
-TOC_EXPAND = NO
-GENERATE_QHP = NO
-QCH_FILE =
-QHP_NAMESPACE = org.doxygen.Project
-QHP_VIRTUAL_FOLDER = doc
-QHG_LOCATION =
-DISABLE_INDEX = NO
-ENUM_VALUES_PER_LINE = 4
-GENERATE_TREEVIEW = NO
-TREEVIEW_WIDTH = 250
-FORMULA_FONTSIZE = 10
-#---------------------------------------------------------------------------
-# configuration options related to the LaTeX output
-#---------------------------------------------------------------------------
-GENERATE_LATEX = NO
-LATEX_OUTPUT = latex
-LATEX_CMD_NAME = latex
-MAKEINDEX_CMD_NAME = makeindex
-COMPACT_LATEX = NO
-PAPER_TYPE = a4wide
-EXTRA_PACKAGES =
-LATEX_HEADER =
-PDF_HYPERLINKS = YES
-USE_PDFLATEX = YES
-LATEX_BATCHMODE = NO
-LATEX_HIDE_INDICES = NO
-#---------------------------------------------------------------------------
-# configuration options related to the RTF output
-#---------------------------------------------------------------------------
-GENERATE_RTF = NO
-RTF_OUTPUT = rtf
-COMPACT_RTF = NO
-RTF_HYPERLINKS = NO
-RTF_STYLESHEET_FILE =
-RTF_EXTENSIONS_FILE =
-#---------------------------------------------------------------------------
-# configuration options related to the man page output
-#---------------------------------------------------------------------------
-GENERATE_MAN = NO
-MAN_OUTPUT = man
-MAN_EXTENSION = .3
-MAN_LINKS = NO
-#---------------------------------------------------------------------------
-# configuration options related to the XML output
-#---------------------------------------------------------------------------
-GENERATE_XML = NO
-XML_OUTPUT = xml
-XML_SCHEMA =
-XML_DTD =
-XML_PROGRAMLISTING = YES
-#---------------------------------------------------------------------------
-# configuration options for the AutoGen Definitions output
-#---------------------------------------------------------------------------
-GENERATE_AUTOGEN_DEF = NO
-#---------------------------------------------------------------------------
-# configuration options related to the Perl module output
-#---------------------------------------------------------------------------
-GENERATE_PERLMOD = NO
-PERLMOD_LATEX = NO
-PERLMOD_PRETTY = YES
-PERLMOD_MAKEVAR_PREFIX =
-#---------------------------------------------------------------------------
-# Configuration options related to the preprocessor
-#---------------------------------------------------------------------------
-ENABLE_PREPROCESSING = YES
-MACRO_EXPANSION = NO
-EXPAND_ONLY_PREDEF = NO
-SEARCH_INCLUDES = YES
-INCLUDE_PATH =
-INCLUDE_FILE_PATTERNS =
-PREDEFINED =
-EXPAND_AS_DEFINED =
-SKIP_FUNCTION_MACROS = YES
-#---------------------------------------------------------------------------
-# Configuration::additions related to external references
-#---------------------------------------------------------------------------
-TAGFILES =
-GENERATE_TAGFILE =
-ALLEXTERNALS = NO
-EXTERNAL_GROUPS = YES
-PERL_PATH = /usr/bin/perl
-#---------------------------------------------------------------------------
-# Configuration options related to the dot tool
-#---------------------------------------------------------------------------
-CLASS_DIAGRAMS = NO
-MSCGEN_PATH =
-HIDE_UNDOC_RELATIONS = YES
-HAVE_DOT = NO
-DOT_FONTNAME = FreeSans
-DOT_FONTPATH =
-CLASS_GRAPH = NO
-COLLABORATION_GRAPH = NO
-GROUP_GRAPHS = YES
-UML_LOOK = NO
-TEMPLATE_RELATIONS = NO
-INCLUDE_GRAPH = YES
-INCLUDED_BY_GRAPH = YES
-CALL_GRAPH = NO
-CALLER_GRAPH = NO
-GRAPHICAL_HIERARCHY = NO
-DIRECTORY_GRAPH = NO
-DOT_IMAGE_FORMAT = png
-DOT_PATH =
-DOTFILE_DIRS =
-DOT_GRAPH_MAX_NODES = 50
-MAX_DOT_GRAPH_DEPTH = 0
-DOT_TRANSPARENT = NO
-DOT_MULTI_TARGETS = NO
-GENERATE_LEGEND = YES
-DOT_CLEANUP = YES
-#---------------------------------------------------------------------------
-# Configuration::additions related to the search engine
-#---------------------------------------------------------------------------
-SEARCHENGINE = NO
diff --git a/KNOWNBUGS.rb b/KNOWNBUGS.rb
index 9fe4c29cf5..5c0e4d5156 100644
--- a/KNOWNBUGS.rb
+++ b/KNOWNBUGS.rb
@@ -3,9 +3,14 @@
# So all tests will cause failure.
#
-assert_normal_exit(<<'End', '[ruby-dev:37934]')
- Thread.new { sleep 1; Thread.kill Thread.main }
- Process.setrlimit(:NPROC, 1)
- fork {}
-End
-
+assert_normal_exit %q{
+ open("tst-remove-load.rb", "w") {|f|
+ f << <<-'End'
+ module Kernel
+ remove_method :load
+ end
+ raise
+ End
+ }
+ load "tst-remove-load.rb"
+}, '[ruby-dev:40234] [ruby-core:27959]', :timeout => 1
diff --git a/LEGAL b/LEGAL
index 7a7e825510..0086b83665 100644
--- a/LEGAL
+++ b/LEGAL
@@ -68,9 +68,8 @@ configure:
This configure script is free software; the Free Software Foundation
gives unlimited permission to copy, distribute and modify it.
-config.guess:
-config.sub:
-parse.c:
+tool/config.guess:
+tool/config.sub:
As long as you distribute these files with the file configure, they
are covered under the Ruby's license.
@@ -97,6 +96,43 @@ parse.c:
configuration script generated by Autoconf, you may include it under
the same distribution terms that you use for the rest of that program.
+parse.c:
+
+ This file is licensed under the GPL, but is incorporated into Ruby and
+ redistributed under the terms of the Ruby license, as permitted by the
+ exception to the GPL below.
+
+ Copyright (C) 1984, 1989, 1990, 2000, 2001, 2002, 2003, 2004, 2005, 2006
+ Free Software Foundation, Inc.
+
+ This program is free software; you can redistribute it and/or modify
+ it under the terms of the GNU General Public License as published by
+ the Free Software Foundation; either version 2, or (at your option)
+ any later version.
+
+ This program is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ GNU General Public License for more details.
+
+ You should have received a copy of the GNU General Public License
+ along with this program; if not, write to the Free Software
+ Foundation, Inc., 51 Franklin Street, Fifth Floor,
+ Boston, MA 02110-1301, USA. */
+
+ /* As a special exception, you may create a larger work that contains
+ part or all of the Bison parser skeleton and distribute that work
+ under terms of your choice, so long as that work isn't itself a
+ parser generator using the skeleton or a modified version thereof
+ as a parser skeleton. Alternatively, if you modify or redistribute
+ the parser skeleton itself, you may (at your option) remove this
+ special exception, which will cause the skeleton and the resulting
+ Bison output files to be licensed under the GNU General Public
+ License without this special exception.
+
+ This special exception was added by the Free Software Foundation in
+ version 2.2 of Bison. */
+
util.c (partly):
Copyright (c) 1991, 2000, 2001 by Lucent Technologies.
@@ -123,6 +159,32 @@ win32/win32.[ch]:
You may distribute under the terms of either the GNU General Public
License or the Artistic License, as specified in the perl README file.
+util.c (partly):
+
+ Copyright (c) 2004-2008 David Schultz <das@FreeBSD.ORG>
+ All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions
+ are met:
+ 1. Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+ 2. Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+
+ THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTORS ``AS IS'' AND
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+ OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+ OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ SUCH DAMAGE.
+
random.c
This file is under the new-style BSD license.
@@ -170,36 +232,75 @@ random.c
http://www.math.keio.ac.jp/matumoto/emt.html
email: matumoto@math.keio.ac.jp
+vsnprintf.c:
+
+ This file is under the old-style BSD license. Note that the
+ paragraph 3 below is now null and void.
+
+ Copyright (c) 1990, 1993
+ The Regents of the University of California. All rights reserved.
+
+ This code is derived from software contributed to Berkeley by
+ Chris Torek.
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions
+ are met:
+ 1. Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+ 2. Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+ 3. Neither the name of the University nor the names of its contributors
+ may be used to endorse or promote products derived from this software
+ without specific prior written permission.
+
+ THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+ OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+ OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ SUCH DAMAGE.
+
+ IMPORTANT NOTE:
+ --------------
+ From ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
+ paragraph 3 above is now null and void.
+
st.[ch]:
missing/alloca.c:
missing/dup2.c:
+missing/erf.c:
missing/finite.c:
missing/hypot.c:
missing/isinf.c:
missing/isnan.c:
+missing/lgamma_r.c:
missing/memcmp.c:
missing/memmove.c:
missing/strchr.c:
missing/strstr.c:
missing/strtol.c:
+missing/tgamma.c:
ext/digest/sha1/sha1.[ch]:
These files are all under public domain.
-missing/erf.c:
-missing/tgamma.c:
-missing/lgamma_r.c:
missing/crypt.c:
-missing/vsnprintf.c:
This file is under the old-style BSD license. Note that the
paragraph 3 below is now null and void.
- Copyright (c) 1990, 1993
- The Regents of the University of California. All rights reserved.
+ Copyright (c) 1989, 1993
+ The Regents of the University of California. All rights reserved.
This code is derived from software contributed to Berkeley by
- Chris Torek.
+ Tom Truscott.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions
@@ -225,10 +326,39 @@ missing/vsnprintf.c:
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
SUCH DAMAGE.
- IMPORTANT NOTE:
- --------------
- From ftp://ftp.cs.berkeley.edu/pub/4bsd/README.Impt.License.Change
- paragraph 3 above is now null and void.
+missing/setproctitle.c
+
+ This file is under the old-style BSD license. Note that the
+ paragraph 3 below is now null and void.
+
+ Copyright 2003 Damien Miller
+ Copyright (c) 1983, 1995-1997 Eric P. Allman
+ Copyright (c) 1988, 1993
+ The Regents of the University of California. All rights reserved.
+
+ Redistribution and use in source and binary forms, with or without
+ modification, are permitted provided that the following conditions
+ are met:
+ 1. Redistributions of source code must retain the above copyright
+ notice, this list of conditions and the following disclaimer.
+ 2. Redistributions in binary form must reproduce the above copyright
+ notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+ 3. Neither the name of the University nor the names of its contributors
+ may be used to endorse or promote products derived from this software
+ without specific prior written permission.
+
+ THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
+ FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+ OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+ OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ SUCH DAMAGE.
missing/strlcat.c
missing/strlcpy.c
diff --git a/LGPL b/LGPL
deleted file mode 100644
index b1e3f5a263..0000000000
--- a/LGPL
+++ /dev/null
@@ -1,504 +0,0 @@
- GNU LESSER GENERAL PUBLIC LICENSE
- Version 2.1, February 1999
-
- Copyright (C) 1991, 1999 Free Software Foundation, Inc.
- 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- Everyone is permitted to copy and distribute verbatim copies
- of this license document, but changing it is not allowed.
-
-[This is the first released version of the Lesser GPL. It also counts
- as the successor of the GNU Library Public License, version 2, hence
- the version number 2.1.]
-
- Preamble
-
- The licenses for most software are designed to take away your
-freedom to share and change it. By contrast, the GNU General Public
-Licenses are intended to guarantee your freedom to share and change
-free software--to make sure the software is free for all its users.
-
- This license, the Lesser General Public License, applies to some
-specially designated software packages--typically libraries--of the
-Free Software Foundation and other authors who decide to use it. You
-can use it too, but we suggest you first think carefully about whether
-this license or the ordinary General Public License is the better
-strategy to use in any particular case, based on the explanations below.
-
- When we speak of free software, we are referring to freedom of use,
-not price. Our General Public Licenses are designed to make sure that
-you have the freedom to distribute copies of free software (and charge
-for this service if you wish); that you receive source code or can get
-it if you want it; that you can change the software and use pieces of
-it in new free programs; and that you are informed that you can do
-these things.
-
- To protect your rights, we need to make restrictions that forbid
-distributors to deny you these rights or to ask you to surrender these
-rights. These restrictions translate to certain responsibilities for
-you if you distribute copies of the library or if you modify it.
-
- For example, if you distribute copies of the library, whether gratis
-or for a fee, you must give the recipients all the rights that we gave
-you. You must make sure that they, too, receive or can get the source
-code. If you link other code with the library, you must provide
-complete object files to the recipients, so that they can relink them
-with the library after making changes to the library and recompiling
-it. And you must show them these terms so they know their rights.
-
- We protect your rights with a two-step method: (1) we copyright the
-library, and (2) we offer you this license, which gives you legal
-permission to copy, distribute and/or modify the library.
-
- To protect each distributor, we want to make it very clear that
-there is no warranty for the free library. Also, if the library is
-modified by someone else and passed on, the recipients should know
-that what they have is not the original version, so that the original
-author's reputation will not be affected by problems that might be
-introduced by others.
-
- Finally, software patents pose a constant threat to the existence of
-any free program. We wish to make sure that a company cannot
-effectively restrict the users of a free program by obtaining a
-restrictive license from a patent holder. Therefore, we insist that
-any patent license obtained for a version of the library must be
-consistent with the full freedom of use specified in this license.
-
- Most GNU software, including some libraries, is covered by the
-ordinary GNU General Public License. This license, the GNU Lesser
-General Public License, applies to certain designated libraries, and
-is quite different from the ordinary General Public License. We use
-this license for certain libraries in order to permit linking those
-libraries into non-free programs.
-
- When a program is linked with a library, whether statically or using
-a shared library, the combination of the two is legally speaking a
-combined work, a derivative of the original library. The ordinary
-General Public License therefore permits such linking only if the
-entire combination fits its criteria of freedom. The Lesser General
-Public License permits more lax criteria for linking other code with
-the library.
-
- We call this license the "Lesser" General Public License because it
-does Less to protect the user's freedom than the ordinary General
-Public License. It also provides other free software developers Less
-of an advantage over competing non-free programs. These disadvantages
-are the reason we use the ordinary General Public License for many
-libraries. However, the Lesser license provides advantages in certain
-special circumstances.
-
- For example, on rare occasions, there may be a special need to
-encourage the widest possible use of a certain library, so that it becomes
-a de-facto standard. To achieve this, non-free programs must be
-allowed to use the library. A more frequent case is that a free
-library does the same job as widely used non-free libraries. In this
-case, there is little to gain by limiting the free library to free
-software only, so we use the Lesser General Public License.
-
- In other cases, permission to use a particular library in non-free
-programs enables a greater number of people to use a large body of
-free software. For example, permission to use the GNU C Library in
-non-free programs enables many more people to use the whole GNU
-operating system, as well as its variant, the GNU/Linux operating
-system.
-
- Although the Lesser General Public License is Less protective of the
-users' freedom, it does ensure that the user of a program that is
-linked with the Library has the freedom and the wherewithal to run
-that program using a modified version of the Library.
-
- The precise terms and conditions for copying, distribution and
-modification follow. Pay close attention to the difference between a
-"work based on the library" and a "work that uses the library". The
-former contains code derived from the library, whereas the latter must
-be combined with the library in order to run.
-
- GNU LESSER GENERAL PUBLIC LICENSE
- TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
-
- 0. This License Agreement applies to any software library or other
-program which contains a notice placed by the copyright holder or
-other authorized party saying it may be distributed under the terms of
-this Lesser General Public License (also called "this License").
-Each licensee is addressed as "you".
-
- A "library" means a collection of software functions and/or data
-prepared so as to be conveniently linked with application programs
-(which use some of those functions and data) to form executables.
-
- The "Library", below, refers to any such software library or work
-which has been distributed under these terms. A "work based on the
-Library" means either the Library or any derivative work under
-copyright law: that is to say, a work containing the Library or a
-portion of it, either verbatim or with modifications and/or translated
-straightforwardly into another language. (Hereinafter, translation is
-included without limitation in the term "modification".)
-
- "Source code" for a work means the preferred form of the work for
-making modifications to it. For a library, complete source code means
-all the source code for all modules it contains, plus any associated
-interface definition files, plus the scripts used to control compilation
-and installation of the library.
-
- Activities other than copying, distribution and modification are not
-covered by this License; they are outside its scope. The act of
-running a program using the Library is not restricted, and output from
-such a program is covered only if its contents constitute a work based
-on the Library (independent of the use of the Library in a tool for
-writing it). Whether that is true depends on what the Library does
-and what the program that uses the Library does.
-
- 1. You may copy and distribute verbatim copies of the Library's
-complete source code as you receive it, in any medium, provided that
-you conspicuously and appropriately publish on each copy an
-appropriate copyright notice and disclaimer of warranty; keep intact
-all the notices that refer to this License and to the absence of any
-warranty; and distribute a copy of this License along with the
-Library.
-
- You may charge a fee for the physical act of transferring a copy,
-and you may at your option offer warranty protection in exchange for a
-fee.
-
- 2. You may modify your copy or copies of the Library or any portion
-of it, thus forming a work based on the Library, and copy and
-distribute such modifications or work under the terms of Section 1
-above, provided that you also meet all of these conditions:
-
- a) The modified work must itself be a software library.
-
- b) You must cause the files modified to carry prominent notices
- stating that you changed the files and the date of any change.
-
- c) You must cause the whole of the work to be licensed at no
- charge to all third parties under the terms of this License.
-
- d) If a facility in the modified Library refers to a function or a
- table of data to be supplied by an application program that uses
- the facility, other than as an argument passed when the facility
- is invoked, then you must make a good faith effort to ensure that,
- in the event an application does not supply such function or
- table, the facility still operates, and performs whatever part of
- its purpose remains meaningful.
-
- (For example, a function in a library to compute square roots has
- a purpose that is entirely well-defined independent of the
- application. Therefore, Subsection 2d requires that any
- application-supplied function or table used by this function must
- be optional: if the application does not supply it, the square
- root function must still compute square roots.)
-
-These requirements apply to the modified work as a whole. If
-identifiable sections of that work are not derived from the Library,
-and can be reasonably considered independent and separate works in
-themselves, then this License, and its terms, do not apply to those
-sections when you distribute them as separate works. But when you
-distribute the same sections as part of a whole which is a work based
-on the Library, the distribution of the whole must be on the terms of
-this License, whose permissions for other licensees extend to the
-entire whole, and thus to each and every part regardless of who wrote
-it.
-
-Thus, it is not the intent of this section to claim rights or contest
-your rights to work written entirely by you; rather, the intent is to
-exercise the right to control the distribution of derivative or
-collective works based on the Library.
-
-In addition, mere aggregation of another work not based on the Library
-with the Library (or with a work based on the Library) on a volume of
-a storage or distribution medium does not bring the other work under
-the scope of this License.
-
- 3. You may opt to apply the terms of the ordinary GNU General Public
-License instead of this License to a given copy of the Library. To do
-this, you must alter all the notices that refer to this License, so
-that they refer to the ordinary GNU General Public License, version 2,
-instead of to this License. (If a newer version than version 2 of the
-ordinary GNU General Public License has appeared, then you can specify
-that version instead if you wish.) Do not make any other change in
-these notices.
-
- Once this change is made in a given copy, it is irreversible for
-that copy, so the ordinary GNU General Public License applies to all
-subsequent copies and derivative works made from that copy.
-
- This option is useful when you wish to copy part of the code of
-the Library into a program that is not a library.
-
- 4. You may copy and distribute the Library (or a portion or
-derivative of it, under Section 2) in object code or executable form
-under the terms of Sections 1 and 2 above provided that you accompany
-it with the complete corresponding machine-readable source code, which
-must be distributed under the terms of Sections 1 and 2 above on a
-medium customarily used for software interchange.
-
- If distribution of object code is made by offering access to copy
-from a designated place, then offering equivalent access to copy the
-source code from the same place satisfies the requirement to
-distribute the source code, even though third parties are not
-compelled to copy the source along with the object code.
-
- 5. A program that contains no derivative of any portion of the
-Library, but is designed to work with the Library by being compiled or
-linked with it, is called a "work that uses the Library". Such a
-work, in isolation, is not a derivative work of the Library, and
-therefore falls outside the scope of this License.
-
- However, linking a "work that uses the Library" with the Library
-creates an executable that is a derivative of the Library (because it
-contains portions of the Library), rather than a "work that uses the
-library". The executable is therefore covered by this License.
-Section 6 states terms for distribution of such executables.
-
- When a "work that uses the Library" uses material from a header file
-that is part of the Library, the object code for the work may be a
-derivative work of the Library even though the source code is not.
-Whether this is true is especially significant if the work can be
-linked without the Library, or if the work is itself a library. The
-threshold for this to be true is not precisely defined by law.
-
- If such an object file uses only numerical parameters, data
-structure layouts and accessors, and small macros and small inline
-functions (ten lines or less in length), then the use of the object
-file is unrestricted, regardless of whether it is legally a derivative
-work. (Executables containing this object code plus portions of the
-Library will still fall under Section 6.)
-
- Otherwise, if the work is a derivative of the Library, you may
-distribute the object code for the work under the terms of Section 6.
-Any executables containing that work also fall under Section 6,
-whether or not they are linked directly with the Library itself.
-
- 6. As an exception to the Sections above, you may also combine or
-link a "work that uses the Library" with the Library to produce a
-work containing portions of the Library, and distribute that work
-under terms of your choice, provided that the terms permit
-modification of the work for the customer's own use and reverse
-engineering for debugging such modifications.
-
- You must give prominent notice with each copy of the work that the
-Library is used in it and that the Library and its use are covered by
-this License. You must supply a copy of this License. If the work
-during execution displays copyright notices, you must include the
-copyright notice for the Library among them, as well as a reference
-directing the user to the copy of this License. Also, you must do one
-of these things:
-
- a) Accompany the work with the complete corresponding
- machine-readable source code for the Library including whatever
- changes were used in the work (which must be distributed under
- Sections 1 and 2 above); and, if the work is an executable linked
- with the Library, with the complete machine-readable "work that
- uses the Library", as object code and/or source code, so that the
- user can modify the Library and then relink to produce a modified
- executable containing the modified Library. (It is understood
- that the user who changes the contents of definitions files in the
- Library will not necessarily be able to recompile the application
- to use the modified definitions.)
-
- b) Use a suitable shared library mechanism for linking with the
- Library. A suitable mechanism is one that (1) uses at run time a
- copy of the library already present on the user's computer system,
- rather than copying library functions into the executable, and (2)
- will operate properly with a modified version of the library, if
- the user installs one, as long as the modified version is
- interface-compatible with the version that the work was made with.
-
- c) Accompany the work with a written offer, valid for at
- least three years, to give the same user the materials
- specified in Subsection 6a, above, for a charge no more
- than the cost of performing this distribution.
-
- d) If distribution of the work is made by offering access to copy
- from a designated place, offer equivalent access to copy the above
- specified materials from the same place.
-
- e) Verify that the user has already received a copy of these
- materials or that you have already sent this user a copy.
-
- For an executable, the required form of the "work that uses the
-Library" must include any data and utility programs needed for
-reproducing the executable from it. However, as a special exception,
-the materials to be distributed need not include anything that is
-normally distributed (in either source or binary form) with the major
-components (compiler, kernel, and so on) of the operating system on
-which the executable runs, unless that component itself accompanies
-the executable.
-
- It may happen that this requirement contradicts the license
-restrictions of other proprietary libraries that do not normally
-accompany the operating system. Such a contradiction means you cannot
-use both them and the Library together in an executable that you
-distribute.
-
- 7. You may place library facilities that are a work based on the
-Library side-by-side in a single library together with other library
-facilities not covered by this License, and distribute such a combined
-library, provided that the separate distribution of the work based on
-the Library and of the other library facilities is otherwise
-permitted, and provided that you do these two things:
-
- a) Accompany the combined library with a copy of the same work
- based on the Library, uncombined with any other library
- facilities. This must be distributed under the terms of the
- Sections above.
-
- b) Give prominent notice with the combined library of the fact
- that part of it is a work based on the Library, and explaining
- where to find the accompanying uncombined form of the same work.
-
- 8. You may not copy, modify, sublicense, link with, or distribute
-the Library except as expressly provided under this License. Any
-attempt otherwise to copy, modify, sublicense, link with, or
-distribute the Library is void, and will automatically terminate your
-rights under this License. However, parties who have received copies,
-or rights, from you under this License will not have their licenses
-terminated so long as such parties remain in full compliance.
-
- 9. You are not required to accept this License, since you have not
-signed it. However, nothing else grants you permission to modify or
-distribute the Library or its derivative works. These actions are
-prohibited by law if you do not accept this License. Therefore, by
-modifying or distributing the Library (or any work based on the
-Library), you indicate your acceptance of this License to do so, and
-all its terms and conditions for copying, distributing or modifying
-the Library or works based on it.
-
- 10. Each time you redistribute the Library (or any work based on the
-Library), the recipient automatically receives a license from the
-original licensor to copy, distribute, link with or modify the Library
-subject to these terms and conditions. You may not impose any further
-restrictions on the recipients' exercise of the rights granted herein.
-You are not responsible for enforcing compliance by third parties with
-this License.
-
- 11. If, as a consequence of a court judgment or allegation of patent
-infringement or for any other reason (not limited to patent issues),
-conditions are imposed on you (whether by court order, agreement or
-otherwise) that contradict the conditions of this License, they do not
-excuse you from the conditions of this License. If you cannot
-distribute so as to satisfy simultaneously your obligations under this
-License and any other pertinent obligations, then as a consequence you
-may not distribute the Library at all. For example, if a patent
-license would not permit royalty-free redistribution of the Library by
-all those who receive copies directly or indirectly through you, then
-the only way you could satisfy both it and this License would be to
-refrain entirely from distribution of the Library.
-
-If any portion of this section is held invalid or unenforceable under any
-particular circumstance, the balance of the section is intended to apply,
-and the section as a whole is intended to apply in other circumstances.
-
-It is not the purpose of this section to induce you to infringe any
-patents or other property right claims or to contest validity of any
-such claims; this section has the sole purpose of protecting the
-integrity of the free software distribution system which is
-implemented by public license practices. Many people have made
-generous contributions to the wide range of software distributed
-through that system in reliance on consistent application of that
-system; it is up to the author/donor to decide if he or she is willing
-to distribute software through any other system and a licensee cannot
-impose that choice.
-
-This section is intended to make thoroughly clear what is believed to
-be a consequence of the rest of this License.
-
- 12. If the distribution and/or use of the Library is restricted in
-certain countries either by patents or by copyrighted interfaces, the
-original copyright holder who places the Library under this License may add
-an explicit geographical distribution limitation excluding those countries,
-so that distribution is permitted only in or among countries not thus
-excluded. In such case, this License incorporates the limitation as if
-written in the body of this License.
-
- 13. The Free Software Foundation may publish revised and/or new
-versions of the Lesser General Public License from time to time.
-Such new versions will be similar in spirit to the present version,
-but may differ in detail to address new problems or concerns.
-
-Each version is given a distinguishing version number. If the Library
-specifies a version number of this License which applies to it and
-"any later version", you have the option of following the terms and
-conditions either of that version or of any later version published by
-the Free Software Foundation. If the Library does not specify a
-license version number, you may choose any version ever published by
-the Free Software Foundation.
-
- 14. If you wish to incorporate parts of the Library into other free
-programs whose distribution conditions are incompatible with these,
-write to the author to ask for permission. For software which is
-copyrighted by the Free Software Foundation, write to the Free
-Software Foundation; we sometimes make exceptions for this. Our
-decision will be guided by the two goals of preserving the free status
-of all derivatives of our free software and of promoting the sharing
-and reuse of software generally.
-
- NO WARRANTY
-
- 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
-WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
-EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
-OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
-KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
-LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
-THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
-
- 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
-WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
-AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
-FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
-CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
-LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
-RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
-FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
-SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
-DAMAGES.
-
- END OF TERMS AND CONDITIONS
-
- How to Apply These Terms to Your New Libraries
-
- If you develop a new library, and you want it to be of the greatest
-possible use to the public, we recommend making it free software that
-everyone can redistribute and change. You can do so by permitting
-redistribution under these terms (or, alternatively, under the terms of the
-ordinary General Public License).
-
- To apply these terms, attach the following notices to the library. It is
-safest to attach them to the start of each source file to most effectively
-convey the exclusion of warranty; and each file should have at least the
-"copyright" line and a pointer to where the full notice is found.
-
- <one line to give the library's name and a brief idea of what it does.>
- Copyright (C) <year> <name of author>
-
- This library is free software; you can redistribute it and/or
- modify it under the terms of the GNU Lesser General Public
- License as published by the Free Software Foundation; either
- version 2.1 of the License, or (at your option) any later version.
-
- This library is distributed in the hope that it will be useful,
- but WITHOUT ANY WARRANTY; without even the implied warranty of
- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- Lesser General Public License for more details.
-
- You should have received a copy of the GNU Lesser General Public
- License along with this library; if not, write to the Free Software
- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-
-Also add information on how to contact you by electronic and paper mail.
-
-You should also get your employer (if you work as a programmer) or your
-school, if any, to sign a "copyright disclaimer" for the library, if
-necessary. Here is a sample; alter the names:
-
- Yoyodyne, Inc., hereby disclaims all copyright interest in the
- library `Frob' (a library for tweaking knobs) written by James Random Hacker.
-
- <signature of Ty Coon>, 1 April 1990
- Ty Coon, President of Vice
-
-That's all there is to it!
-
-
diff --git a/Makefile.in b/Makefile.in
index 167be6ec4c..b0f4434f72 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -1,8 +1,9 @@
SHELL = /bin/sh
-NULLCMD = :
+NULLCMD = @NULLCMD@
RUNCMD = $(SHELL)
CHDIR = @CHDIR@
exec = exec
+NULL = /dev/null
#### Start of system configuration section. ####
@@ -11,12 +12,15 @@ top_srcdir = $(srcdir)
hdrdir = $(srcdir)/include
CC = @CC@
+CPP = @CPP@
YACC = bison
PURIFY =
AUTOCONF = autoconf
@SET_MAKE@
MKFILES = @MAKEFILES@
BASERUBY = @BASERUBY@
+TEST_RUNNABLE = @TEST_RUNNABLE@
+DOXYGEN = @DOXYGEN@
prefix = @prefix@
exec_prefix = @exec_prefix@
@@ -33,10 +37,10 @@ ruby_version = @ruby_version@
TESTUI = console
TESTS =
-RDOCTARGET = @RDOCTARGET@
+INSTALLDOC = @INSTALLDOC@
+DOCTARGETS = @RDOCTARGET@ @CAPITARGET@
EXTOUT = @EXTOUT@
-RIDATADIR = $(DESTDIR)$(datadir)/ri/$(MAJOR).$(MINOR)/system
arch_hdrdir = $(EXTOUT)/include/$(arch)
VPATH = $(arch_hdrdir)/ruby:$(hdrdir)/ruby:$(srcdir):$(srcdir)/enc:$(srcdir)/missing
@@ -44,13 +48,14 @@ empty =
OUTFLAG = @OUTFLAG@$(empty)
COUTFLAG = @COUTFLAG@$(empty)
ARCH_FLAG = @ARCH_FLAG@
-CFLAGS = @CFLAGS@
+CFLAGS = @CFLAGS@ $(ARCH_FLAG)
cflags = @cflags@
optflags = @optflags@
debugflags = @debugflags@
warnflags = @warnflags@
-XCFLAGS = -I. -I$(arch_hdrdir) -I$(hdrdir) -I$(srcdir) @XCFLAGS@
-CPPFLAGS = @CPPFLAGS@
+INCFLAGS = -I. -I$(arch_hdrdir) -I$(hdrdir) -I$(srcdir)
+XCFLAGS = @XCFLAGS@
+CPPFLAGS = @CPPFLAGS@ $(INCFLAGS)
LDFLAGS = @STATIC@ $(CFLAGS) @LDFLAGS@
EXTLDFLAGS =
XLDFLAGS = @XLDFLAGS@ $(EXTLDFLAGS)
@@ -67,13 +72,25 @@ BUILTIN_TRANSSRCS = @BUILTIN_TRANSSRCS@
BUILTIN_TRANSOBJS = @BUILTIN_TRANSOBJS@
RUBY_BASE_NAME=@RUBY_BASE_NAME@
+RUBY_PROGRAM_VERSION=@RUBY_PROGRAM_VERSION@
RUBY_INSTALL_NAME=@RUBY_INSTALL_NAME@
RUBY_SO_NAME=@RUBY_SO_NAME@
EXEEXT = @EXEEXT@
PROGRAM=$(RUBY_INSTALL_NAME)$(EXEEXT)
RUBY = $(RUBY_INSTALL_NAME)
-MINIRUBY = @MINIRUBY@ $(MINIRUBYOPT)
-RUNRUBY = @RUNRUBY@ $(RUNRUBYOPT) --
+MINIRUBY = @MINIRUBY@\
+ $(MINIRUBYOPT)
+RUNRUBY = @RUNRUBY@ $(RUNRUBYOPT) -- $(RUN_OPTS)
+XRUBY = @XRUBY@
+INSTALL = @INSTALL@
+INSTALL_DATA = @INSTALL_DATA@
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
+INSTALL_PROGRAM = @INSTALL_PROGRAM@
+XRUBY_LIBDIR = @XRUBY_LIBDIR@
+XRUBY_RUBYLIBDIR = @XRUBY_RUBYLIBDIR@
+XRUBY_RUBYHDRDIR = @XRUBY_RUBYHDRDIR@
+
+DEFAULT_PRELUDES = $(@USE_RUBYGEMS@_GEM_PRELUDE)
#### End of system configuration section. ####
@@ -97,17 +114,19 @@ SETUP =
EXTSTATIC = @EXTSTATIC@
SET_LC_MESSAGES = env LC_MESSAGES=C
-MAKEDIRS = @MAKEDIRS@
+MAKEDIRS = @MKDIR_P@
CP = cp
MV = mv
RM = rm -f
+RMDIR = @RMDIR@
RMDIRS = @RMDIRS@
+RMALL = @RMALL@
NM = @NM@
AR = @AR@
ARFLAGS = rcu
RANLIB = @RANLIB@
AS = @AS@
-ASFLAGS = @ASFLAGS@
+ASFLAGS = @ASFLAGS@ $(INCFLAGS)
IFCHANGE = $(srcdir)/tool/ifchange
SET_LC_MESSAGES = env LC_MESSAGES=C
OBJDUMP = @OBJDUMP@
@@ -119,12 +138,18 @@ OBJEXT = @OBJEXT@
ASMEXT = S
DLEXT = @DLEXT@
MANTYPE = @MANTYPE@
+SYMBOL_PREFIX = @SYMBOL_PREFIX@
INSTALLED_LIST= .installed.list
MKMAIN_CMD = mkmain.sh
SRC_FILE = $<
+
+MESSAGE_BEGIN = @for line in
+MESSAGE_END = ; do echo "$$line"; done
+
+configure_args = @configure_args@
#### End of variables
all:
@@ -135,32 +160,58 @@ all:
.NOEXPORT:
miniruby$(EXEEXT):
- @-if test -f $@; then mv -f $@ $@.old; $(RM) $@.old; fi
- $(PURIFY) $(CC) $(LDFLAGS) $(XLDFLAGS) $(MAINLIBS) $(MAINOBJ) $(MINIOBJS) $(COMMONOBJS) $(DMYEXT) $(ARCHFILE) $(LIBS) $(OUTFLAG)$@
+ @-if test -f $@; then $(MV) -f $@ $@.old; $(RM) $@.old; fi
+ $(ECHO) linking $@
+ $(Q) $(PURIFY) $(CC) $(LDFLAGS) $(XLDFLAGS) $(MAINLIBS) $(NORMALMAINOBJ) $(MINIOBJS) $(COMMONOBJS) $(DMYEXT) $(LIBS) $(OUTFLAG)$@
$(PROGRAM):
@$(RM) $@
- $(PURIFY) $(CC) $(LDFLAGS) $(XLDFLAGS) $(MAINLIBS) $(MAINOBJ) $(EXTOBJS) $(LIBRUBYARG) $(LIBS) $(OUTFLAG)$@
+ $(ECHO) linking $@
+ $(Q) $(PURIFY) $(CC) $(LDFLAGS) $(XLDFLAGS) $(MAINLIBS) $(MAINOBJ) $(EXTOBJS) $(LIBRUBYARG) $(LIBS) $(OUTFLAG)$@
# We must `rm' the library each time this rule is invoked because "updating" a
# MAB library on Apple/NeXT (see --enable-fat-binary in configure) is not
# supported.
$(LIBRUBY_A):
@$(RM) $@
- $(AR) $(ARFLAGS) $@ $(OBJS) $(DMYEXT)
+ $(ECHO) linking static-library $@
+ $(Q) $(AR) $(ARFLAGS) $@ $(OBJS) $(DMYEXT)
@-$(RANLIB) $@ 2> /dev/null || true
$(LIBRUBY_SO):
@-$(PRE_LIBRUBY_UPDATE)
- $(LDSHARED) $(DLDFLAGS) $(OBJS) $(DLDOBJS) $(SOLIBS) $(OUTFLAG)$@
- -$(OBJCOPY) -w -L '@EXPORT_PREFIX@Init_*' $@
+ $(ECHO) linking shared-library $@
+ $(Q) $(LDSHARED) $(DLDFLAGS) $(OBJS) $(DLDOBJS) $(SOLIBS) $(OUTFLAG)$@
+ -$(Q) $(OBJCOPY) -w -L '$(SYMBOL_PREFIX)Init_*' -L '$(SYMBOL_PREFIX)*_threadptr_*' $@
@-$(MINIRUBY) -e 'ARGV.each{|link| File.delete link if File.exist? link; \
File.symlink "$(LIBRUBY_SO)", link}' \
$(LIBRUBY_ALIASES) || true
fake: $(arch)-fake.rb
-$(arch)-fake.rb: config.status
+$(arch)-fake.rb: config.status $(srcdir)/template/fake.rb.in
@./config.status --file=$@:$(srcdir)/template/fake.rb.in
+ @chmod +x $@
+
+ruby_pc = @ruby_pc@
+$(ruby_pc):
+ @./config.status --file=$@:$(srcdir)/template/ruby.pc.in
+
+install-cross: $(arch)-fake.rb $(RBCONFIG) rbconfig.rb $(arch_hdrdir)/ruby/config.h \
+ $(LIBRUBY_A) $(LIBRUBY_SO) $(ARCHFILE)
+ $(ECHO) installing cross-compiling stuff
+ $(Q) $(MAKEDIRS) $(XRUBY_RUBYLIBDIR)/$(arch) $(XRUBY_RUBYHDRDIR)/$(arch)/ruby
+ $(Q) sed '/^\$$:\.unshift/q' $(arch)-fake.rb > fake.rb
+ $(Q) $(BASERUBY) -p \
+ -e '~/^\s*CONFIG\["LDFLAGS"\]/ and' \
+ -e '$$_[/(?=\s*"$$)/] = %q[ #{(CONFIG["LIBPATHFLAG"]%File.dirname(__FILE__)).strip}]' \
+ rbconfig.rb > fake-rbconfig.rb
+ $(INSTALL_SCRIPT) fake.rb $(XRUBY_RUBYLIBDIR)/$(arch)/fake.rb
+ $(INSTALL_SCRIPT) fake-rbconfig.rb $(XRUBY_RUBYLIBDIR)/$(arch)/rbconfig.rb
+ @$(RM) fake.rb fake-rbconfig.rb
+ $(INSTALL_DATA) $(arch_hdrdir)/ruby/config.h $(XRUBY_RUBYHDRDIR)/$(arch)/ruby
+ $(INSTALL_DATA) $(top_srcdir)/include/ruby/win32.h $(XRUBY_RUBYHDRDIR)/ruby
+ $(INSTALL_DATA) $(LIBRUBY) $(LIBRUBY_A) $(XRUBY_RUBYLIBDIR)/$(arch)
+ $(INSTALL_PROGRAM) $(LIBRUBY_SO) $(XRUBY_RUBYLIBDIR)/$(arch)
Makefile: $(srcdir)/Makefile.in $(srcdir)/enc/Makefile.in
@@ -177,81 +228,124 @@ $(MKFILES): config.status
uncommon.mk: $(srcdir)/common.mk
sed 's/{\$$([^(){}]*)[^{}]*}//g' $< > $@
-config.status: $(srcdir)/configure $(srcdir)/enc/Makefile.in
- PWD= MINIRUBY="$(MINIRUBY)" $(SHELL) ./config.status --recheck
+.PHONY: reconfig
+reconfig-args = $(srcdir)/configure $(configure_args)
+config.status-args = ./config.status --recheck
+reconfig-exec-0 = exec 3>&1; exit `exec 4>&1; { "$$@" 3>&- 4>&-; echo $$? 1>&4; } | fgrep -v '(cached)' 1>&3`
+reconfig-exec-1 = set -x; "$$@"
+
+reconfig config.status: $(srcdir)/configure $(srcdir)/enc/Makefile.in
+ @PWD= MINIRUBY="$(MINIRUBY)"; export MINIRUBY; \
+ set $(SHELL) $($@-args); $(reconfig-exec-$(V))
$(srcdir)/configure: $(srcdir)/configure.in
$(CHDIR) $(srcdir) && exec $(AUTOCONF)
incs: id.h
-id.h: parse.h $(srcdir)/tool/generic_erb.rb $(srcdir)/template/id.h.tmpl
- $(BASERUBY) $(srcdir)/tool/generic_erb.rb --output=$@ \
- $(srcdir)/template/id.h.tmpl --vpath=$(VPATH) parse.h
# Things which should be considered:
# * with gperf v.s. without gperf
+# * committers may have various versions of gperf
# * ./configure v.s. ../ruby/configure
# * GNU make v.s. HP-UX make # HP-UX make invokes the action if lex.c and keywords has same mtime.
# * svn checkout generate a file with mtime as current time
-# * XFS has a mtime with fractional part
+# * ext4 and XFS has a mtime with fractional part
lex.c: defs/keywords
@\
if cmp -s $(srcdir)/defs/lex.c.src $?; then \
+ [ $(Q) ] && echo copying $@ || set -x; \
+ $(CP) $(srcdir)/lex.c.blt $@; \
+ else \
+ [ $(Q) ] && echo generating $@ || set -x; \
+ gperf -C -p -j1 -i 1 -g -o -t -N rb_reserved_word -k1,3,$$ $? > $@.tmp && \
+ $(MV) $@.tmp $@ && \
+ $(CP) $? $(srcdir)/defs/lex.c.src && \
+ $(CP) $@ $(srcdir)/lex.c.blt; \
+ fi
+
+NAME2CTYPE_OPTIONS = -7 -c -j1 -i1 -t -C -P -T -H uniname2ctype_hash -Q uniname2ctype_pool -N uniname2ctype_p
+
+enc/unicode/name2ctype.h: enc/unicode/name2ctype.kwd
+ $(MAKEDIRS) $(@D)
+ @set +e; \
+ if cmp -s $(?:.kwd=.src) $?; then \
set -x; \
- cp $(srcdir)/lex.c.blt $@; \
+ $(CP) $(?:.kwd=.h.blt) $@; \
else \
+ trap '$(RM) $@-1.h $@-2.h' 0 && \
set -x; \
- gperf -C -p -j1 -i 1 -g -o -t -N rb_reserved_word -k1,3,$$ $? > $@.tmp && \
- mv $@.tmp $@ && \
- cp $? $(srcdir)/defs/lex.c.src && \
- cp $@ $(srcdir)/lex.c.blt; \
+ sed '/^#ifdef USE_UNICODE_PROPERTIES/,/^#endif/d' $? | gperf $(NAME2CTYPE_OPTIONS) > $@-1.h && \
+ gperf $(NAME2CTYPE_OPTIONS) < $? > $@-2.h && \
+ diff -DUSE_UNICODE_PROPERTIES $@-1.h $@-2.h > $@.tmp || :; \
+ $(MV) $@.tmp $@ && \
+ $(CP) $? $(?:.kwd=.src) && \
+ $(CP) $@ $(?:.kwd=.h.blt); \
fi
.c.@OBJEXT@:
- $(CC) $(CFLAGS) $(XCFLAGS) $(CPPFLAGS) $(COUTFLAG)$@ -c $<
+ @$(ECHO) compiling $<
+ $(Q) $(CC) $(CFLAGS) $(XCFLAGS) $(CPPFLAGS) $(COUTFLAG)$@ -c $<
.s.@OBJEXT@:
- $(AS) $(ASFLAGS) -o $@ $<
+ @$(ECHO) assembling $<
+ $(Q) $(AS) $(ASFLAGS) -o $@ $<
.c.S:
- $(CC) $(CFLAGS) $(XCFLAGS) $(CPPFLAGS) $(COUTFLAG)$@ -S $<
+ @$(ECHO) translating $<
+ $(Q) $(CC) $(CFLAGS) $(XCFLAGS) $(CPPFLAGS) $(COUTFLAG)$@ -S $<
.c.i:
- $(CPP) $(XCFLAGS) $(CPPFLAGS) $(COUTFLAG)$@ -E $< > $@
+ @$(ECHO) preprocessing $<
+ $(Q) $(CPP) $(XCFLAGS) $(CPPFLAGS) $(COUTFLAG)$@ -E $< > $@
clean-local::
- @$(RM) ext/extinit.c ext/extinit.$(OBJEXT) ext/ripper/y.output
+ $(Q)$(RM) ext/extinit.c ext/extinit.$(OBJEXT) ext/ripper/y.output
+ -$(Q)$(RM) $(pkgconfig_DATA)
distclean-local::
- @$(RM) ext/config.cache $(RBCONFIG) Doxyfile
- @-$(RM) run.gdb
- @-$(RM) $(INSTALLED_LIST) $(arch_hdrdir)/ruby/config.h
- @-$(RMDIRS) $(arch_hdrdir)/ruby
-
-distclean-rdoc:
- @$(RMALL) $(RDOCOUT:/=\)
+ $(Q)$(RM) ext/config.cache $(RBCONFIG) Doxyfile
+ -$(Q)$(RM) run.gdb
+ -$(Q)$(RM) $(INSTALLED_LIST) $(arch_hdrdir)/ruby/config.h
+ -$(Q)$(RMDIRS) $(arch_hdrdir)/ruby 2> /dev/null || true
clean-ext distclean-ext realclean-ext::
- @set dummy ${EXTS}; shift; \
- if test "$$#" = 0; then \
- set dummy `find ext -name Makefile | sed 's:^ext/::;s:/Makefile$$::' | sort`; \
- shift; \
- fi; \
- for dir; do \
- [ -f "ext/$$dir/Makefile" ] || continue; \
+ @cd ext 2>/dev/null || exit 0; set dummy `echo "${EXTS}" | tr , ' '`; shift; \
+ test "$$#" = 0 && set .; \
+ set dummy `\
+ find "$$@" -name Makefile -print | sed 's:^\./::;s:/Makefile$$:~:' | sort | sed 's:~$$::'; \
+ `; shift; \
+ cd ..; \
+ for dir do \
echo $(@:-ext=)ing "$$dir"; \
(cd "ext/$$dir" && exec $(MAKE) $(MFLAGS) $(@:-ext=)) && \
case "$@" in \
*distclean-ext*|*realclean-ext*) \
- $(RMDIRS) "ext/$$dir";; \
+ $(RMDIRS) "ext/$$dir" 2> /dev/null || true;; \
esac; \
done
distclean-ext realclean-ext::
- @-rmdir ext 2> /dev/null || true
+ -$(Q)$(RMDIR) ext 2> /dev/null || true
+
+clean-extout:
+ -$(Q)$(RMDIRS) $(EXTOUT) 2> /dev/null || true
+
+clean-enc distclean-enc realclean-enc:
+ @test -f "$(ENC_MK)" || exit 0; \
+ echo $(@:-enc=ing) encodings; \
+ exec $(MAKE) -f $(ENC_MK) $(MFLAGS) $(@:-enc=)
+
+clean-rdoc distclean-rdoc realclean-rdoc:
+ @echo $(@:-rdoc=ing) rdoc
+ $(Q)$(RMALL) $(RDOCOUT)
+clean-capi distclean-capi realclean-capi:
+ @echo $(@:-capi=ing) capi
+ $(Q)$(RMALL) $(CAPIOUT)
+
ext/extinit.$(OBJEXT): ext/extinit.c $(SETUP)
- $(CC) $(CFLAGS) $(XCFLAGS) $(CPPFLAGS) $(COUTFLAG)$@ -c ext/extinit.c
+ $(ECHO) compiling $@
+ $(Q) $(CC) $(CFLAGS) $(XCFLAGS) $(CPPFLAGS) $(COUTFLAG)$@ -c ext/extinit.c
up::
@$(CHDIR) "$(srcdir)" && LC_TIME=C exec $(VCSUP)
@@ -278,12 +372,14 @@ update-rubyspec: update-mspec
exec git clone $(RUBYSPEC_GIT_URL) spec/rubyspec; \
fi
-test-rubyspec:
+test-rubyspec-precheck:
@if [ ! -d $(srcdir)/spec/rubyspec ]; then echo No rubyspec here. make update-rubyspec first.; exit 1; fi
- $(RUNRUBY) $(srcdir)/spec/mspec/bin/mspec -B $(srcdir)/spec/default.mspec $(MSPECOPT)
INSNS = opt_sc.inc optinsn.inc optunifs.inc insns.inc insns_info.inc \
vmtc.inc vm.inc
-$(INSNS): $(srcdir)/insns.def vm_opts.h $(srcdir)/defs/opt_operand.def $(srcdir)/defs/opt_insn_unif.def
- $(BASERUBY) -Ks $(srcdir)/tool/insns2vm.rb $(INSNS2VMOPT) $@
+$(INSNS): $(srcdir)/insns.def vm_opts.h \
+ $(srcdir)/defs/opt_operand.def $(srcdir)/defs/opt_insn_unif.def \
+ $(srcdir)/tool/instruction.rb $(srcdir)/tool/insns2vm.rb
+ $(ECHO) generating $@
+ $(Q) $(BASERUBY) -Ks $(srcdir)/tool/insns2vm.rb $(INSNS2VMOPT) $@
diff --git a/NEWS b/NEWS
index e6ce0fe4b4..30fec33fdd 100644
--- a/NEWS
+++ b/NEWS
@@ -1,3 +1,4 @@
+# -*- rd -*-
= NEWS
This document is a list of user visible feature changes made between
@@ -7,213 +8,334 @@ Note that each entry is kept so brief that no reason behind or
reference information is supplied with. For a full list of changes
with all sufficient information, see the ChangeLog file.
-== Changes since the 1.9.1 release
+== Changes since the 1.9.2 release
+=== License
+
+* Ruby's License is changed from a dual license with GPLv2
+ to a dual license with 2-clause BSDL.
+
+=== Known platform dependent issues
+==== OS X Lion
+
+* You have to configure ruby with '--with-gcc=gcc-4.2' if you're using
+ Xcode 4.1, or, if you're using Xcode 4.2, you have to configure ruby
+ with '--with-gcc=clang'.
+
+=== C API updates
+
+* rb_scan_args() is enhanced with support for option hash argument
+ extraction.
+
+* ruby_vm_at_exit() added. This enables extension libs to hook a VM
+ termination.
+
+* rb_reserved_fd_p() added. If you want to close all file descriptors,
+ check using this API. [ruby-core:37759]
=== Library updates (outstanding ones only)
* builtin classes
+ * ARGF
+ * new methods:
+ * ARGF.print
+ * ARGF.printf
+ * ARGF.putc
+ * ARGF.puts
+ * ARGF.read_nonblock
+ * ARGF.to_write_io
+ * ARGF.write
+
* Array
- * new method:
- * Array#sort_by!
+ * extended method:
+ * Array#pack supports endian modifiers
+
+ * Bignum
+ * Multiplication algorithm for Bignums with a large number of digits over
+ 150 BDIGITs is changed in order to reduce its calculation time.
+ Now such large Bignums are multiplied by using Toom-3 algorithm.
+
+ * Encoding
+ * new encodings:
+ * CP950
+ * CP951
+ * UTF-16
+ * UTF-32
+ * change alias:
+ * SJIS is Windows-31J
+
+ * File
+ * new constant:
+ * File::NULL
+ name of NULL device.
+ * File::DIRECT
+ name of O_DIRECT.
- * Dir
- * new method:
- * Dir.home
+ * IO
+ * extended method:
+ * IO#putc supports multibyte characters
+ * new methods:
+ * IO#advise
+ * IO.write(name, string, [offset] )
+ Write `string` to file `name`.
+ Opposite with File.read.
+ * IO.binwrite(name, string, [offset] )
+ binary version of IO.write.
- * Enumerator
- * extended methods:
- * #with_index accepts an optional argument that specifies the
- index number to start with, defaulted to 0.
+ * Kernel
+ * move #__id__ to BasicObject.
+ * extended method:
+ * Kernel#rand supports range argument
- * incompatible changes:
- * #rewind now calls the "rewind" method of the enclosed object
- if defined.
+ * Module
+ * new methods:
+ * Module#private_constant
+ * Module#public_constant
- * IO
- * extended methods:
- * IO.pipe can take a block.
+ * Random
+ * extended method:
+ * Random.rand supports range argument
+
+ * String
+ * extended method:
+ * String#unpack supports endian modifiers
+ * new method:
+ * String#prepend
+ * String#byteslice
- * new modules:
- * IO::WaitReadable
- * IO::WaitWritable
- They are used to extend non-blocking exceptions.
+ * Time
+ * extended method:
+ * Time#strftime supports %:z and %::z.
* Process
- * extended methods:
- * Process.spawn accepts [:child, FD] for a redirect target.
+ * Process#maxgroups and Process#maxgroups= now raise NotImplementedError if
+ the platform don't support supplementary groups concept.
- * String
- * extended methods:
- * string[regexp, name] is supported for named capture.
+* bigdecimal
- * Time
- * extended feature:
- * time_t restriction is removed to represent before 1901 and after 2038.
- Proleptic Gregorian calendar is used for old dates.
- * Time.new have optional arguments to specify date with time offset.
- * Time#getlocal, Time#localtime have optional time offset argument.
+ * BigDecimal#power and BigDecimal#** support non-integral exponent.
- * incompatible changes:
- * The year argument of Time.{utc,gm,local,mktime} is now interpreted as
- the value itself. For example, Time.utc(99) means the year 99 AD,
- not 1999 AD.
+ * Kernel.BigDecimal and BigDecimal.new now accept instances of Integer,
+ Rational, Float, and BigDecimal. If you pass a Rational or a Float to
+ them, you must specify the precision to produce the digits of a BigDecimal.
- * Kernel
- * extended methods:
- * respond_to? can be used to detect methods not implemented.
- For example, Process.respond_to?(:fork) returns false on Windows.
+ * The behavior of BigDecimal#coerce with a Rational is changed. It uses
+ the precision of the receiver BigDecimal to produce the digits of a
+ BigDecimal from the given Rational.
-* rss
+* bigdecimal/util
- * 0.2.4 -> 0.2.5
+ * BigDecimal#to_d and Integer#to_d are added.
- * RSS::Maker.make
- * raise an exception not returns nil for invalid feed making.
- * requires block.
+ * Float#to_d accepts a precision.
- * RSS::Maker.[]
- * new method to return maker class.
+ * Rational#to_d raises ArgumentError when passing zero or negative
+ precision.
- * RSS::Maker.supported?(version)
- * new method to check whether given version is supported.
+ * Rational#to_d
-* REXML
+ * Zero and an implicit precision is deprecated.
+ This feature is removed at the next release of bigdecimal.
- * REXML::Document.entity_expansion_limit=
+ * A negative precision isn't supported.
+ Be careful it is an incompatible change.
- New method to set the entity expansion limit. By default the limit is
- set to 10000. See the following URL for details.
+* date
- http://www.ruby-lang.org/en/news/2008/08/23/dos-vulnerability-in-rexml/
+ * Accepts flonum explicitly with limitations.
+ * If the given offset is flonum, DateTime assumes its precision is
+ at most second.
-* logger
+ DateTime.new(2001,2,3,0,0,0,3.0/24) ==
+ DateTime.new(2001,2,3,0,0,0,'+03:00')
+ #=> true
- * imported upstream version (logger/1.2.7)
- * do not raise an exception even if log writing failed.
- * do not raise ShiftingError if an aged file already exists.
- (no ShiftingError will be raised from 1.2.7, just warn() instead)
+ * If the given operand for -/+ is flonum, DateTime assumes its
+ precision is at most nanosecond.
-* open3
- * new methods:
- * Open3.popen2
- * Open3.popen2e
- * Open3.capture3
- * Open3.capture2
- * Open3.capture2e
- * Open3.pipeline_rw
- * Open3.pipeline_r
- * Open3.pipeline_w
- * Open3.pipeline_start
- * Open3.pipeline
-
-* pty
- * new method:
- * PTY.open
+ DateTime.new(2001,2,3) + 0.5 == DateTime.new(2001,2,3,12)
+ #=> true
-* openssl
- * new methods:
- * OpenSSL::Buffering#read_nonblock
- * OpenSSL::Buffering#write_nonblock
- * OpenSSL::SSL::SSLSocket#connect_nonblock
- * OpenSSL::SSL::SSLSocket#accept_nonblock
+ * Precision of offset is always at most second.
-* socket
+ Rational('0.5') == Rational('0.500001') #=> false
+ DateTime.new(2001,2,3,0,0,0,Rational('0.5')) ==
+ DateTime.new(2001,2,3,0,0,0,Rational('0.500001'))
+ #=> true
- * incompatible changes:
- * Socket#{recvfrom,recvfrom_nonblock,accept,accept_nonblock,sysaccept}
- returns a sender address as Addrinfo object instead of a binary sockaddr string.
- Addrinfo#to_s returns the old binary sockaddr string.
- * BasicSocket#getsockopt returns Socket::Option object instead of a binary string.
- Socket::Option#to_s returns the old binary string.
+ * Ignores long offset and far reform day (with warning).
- * new class:
- * Addrinfo
- * Socket::Option
- * Socket::AncillaryData
+ * Now accepts only:
- * new methods:
- * Socket.ip_address_list
- * Socket.tcp
- * Socket.tcp_server_loop
- * Socket.tcp_server_sockets
- * Socket.unix
- * Socket.unix_server_loop
- * Socket.unix_server_socket
- * Socket.accept_loop
- * Socket#ipv6only!
- * BasicSocket#local_address
- * BasicSocket#remote_address
- * BasicSocket#connect_address
- * BasicSocket#sendmsg
- * BasicSocket#sendmsg_nonblock
- * BasicSocket#recvmsg
- * BasicSocket#recvmsg_nonblock
- * BasicSocket#getpeereid
+ -1<=offset<=1 (-24:00..+24:00)
+ 2298874<=start<=2426355 or -/+oo
+ (proleptic Gregorian/Julian mean -/+oo)
- * extended methods:
- * Socket.new's 3rd argument is optional now.
- * Socket.pair's 3rd argument is optional now.
- * Socket.pair and UNIXSocket.pair can take a block.
- * BasicSocket#send, UDPSocket#send, Socket.getnameinfo, Socket#bind, and
- Socket#{connect,connect_nonblock} accepts an Addrinfo object as sockaddr.
- * BasicSocket#getsockopt accepts a Socket::Option object.
-
- * constant names can be accepted as well as constant values.
- i.e. Socket.new(:PF_INET, :SOCK_STREAM, 0)
- The constant names can be specified without the prefix.
- i.e. Socket.new(:INET, :STREAM, 0)
- * protocol/address family
- * socket type
- * socket option protocol level
- * socket option name
- * shutdown's argument
-
-* pathname
- * new methods:
- * Pathname#binread
- * Pathname#realdirpath
- * Pathname#each_child
+ * A method strftime cannot produce huge output (same as Time's one).
-* Readline
- * new methods:
- * Readline.set_screen_size
- * Readline.get_screen_size
+ * Even though Date/DateTime can handle far dates, the following causes
+ an exception.
- * extended methods:
- * Readline.completion_proc= accepts nil.
- nil means to use default completion proc.
+ DateTime.new(1<<10000).strftime('%Y') # Errno::ERANGE
-* time
- * incompatible changes:
- * Time.parse raises ArgumentError when no date information.
+ * Changed the format of inspect.
+ * Changed the format of marshal (but, can load old dumps).
-* securerandom
+* io/console
+ * new methods:
+ * IO#noecho {|io| }
+ * IO#echo=
+ * IO#echo?
+ * IO#raw {|io| }
+ * IO#raw!
+ * IO#getch
+ * IO#winsize
+ * IO.console
+
+* json
+ * updated to v1.5.4.
+
+* matrix
+ * new classes:
+ * Matrix::EigenvalueDecomposition
+ * Matrix::LUPDecomposition
* new methods:
- * SecureRandom.urlsafe_base64
+ * Matrix#diagonal?
+ * Matrix#eigen
+ * Matrix#eigensystem
+ * Matrix#hermitian?
+ * Matrix#lower_triangular?
+ * Matrix#lup
+ * Matrix#lup_decomposition
+ * Matrix#normal?
+ * Matrix#orthogonal?
+ * Matrix#permutation?
+ * Matrix#round
+ * Matrix#symmetric?
+ * Matrix#unitary?
+ * Matrix#upper_triangular?
+ * Matrix#zero?
+ * Vector#magnitude, #norm
+ * Vector#normalize
+ * extended methods:
+ * Matrix#each and #each_with_index can iterate on a subset of the elements
+ * Matrix#find_index returns [row, column] and can iterate on a subset
+ of the elements
+ * Matrix#** implements Numeric exponents (using the eigensystem)
+ * Matrix.zero can build rectangular matrices
+
+* minitest
+ * Minitest has been updated to version 2.2.2.
+ * For full details, see https://github.com/seattlerb/minitest/blob/master/History.txt
+
+* net/http
+ * SNI (Server Name Indication) supported for HTTPS.
+
+ * Allow to configure to wait server returning '100 continue' response
+ before sending HTTP request body. Set Net::HTTP#continue_timeout AND pass
+ 'expect' => '100-continue' to a extra HTTP header.
+
+ For example, the following code sends HTTP header and waits for getting
+ '100 continue' response before sending HTTP request body. When 0.5 [sec]
+ timeout occurs or the server send '100 continue', the client sends HTTP
+ request body.
+ http.continue_timeout = 0.5
+ http.request_post('/continue', 'body=BODY', 'expect' => '100-continue')
+
+ * new method:
+ * Net::HTTPRequest#set_form): Added to support
+ both application/x-www-form-urlencoded and multipart/form-data.
-* etc
+* objspace
+ * new method:
+ * ObjectSpace::memsize_of_all
+
+* openssl
+ * PKey::RSA and PKey::DSA now use the generic X.509 encoding scheme
+ (e.g. used in a X.509 certificate's Subject Public Key Info) when
+ exporting public keys to DER or PEM. Backward compatibility is
+ ensured by (already existing) fallbacks during creation.
+ * OpenSSL::ASN1::Constructive#new and OpenSSL::ASN1::Primitive#new
+ (and the constructors of their sub-classes) will no longer force
+ tagging to be set to :EXPLICIT when tag and/or tag_class are passed
+ as parameters. tagging must be set explicitly.
+ * Support for infinite length encodings via infinite_length attribute.
+ * OpenSSL::PKey.read( file | string [, pwd] ) allows to read arbitrary
+ public/private keys in DER-/PEM-encoded form with an optional password
+ for encrypted PEM encodings.
+ * Add new method OpenSSL::X509::Name#hash_old as a wrapper of
+ X509_NAME_hash_old() defined from OpenSSL 1.0.0. It returns OpenSSL 0.9.8
+ compatible hash value.
+
+* optparse
+ * support for bash/zsh completion.
+
+* Rake
+ * Rake has been upgraded from 0.8.7 to 0.9.2.2. For full release notes see
+ https://github.com/jimweirich/rake/blob/master/CHANGES
+
+* RDoc
+ * RDoc has been upgraded to version 3.9.4. For full release notes see
+ http://docs.seattlerb.org/rdoc/History_txt.html
+
+* rexml
+ * Support Ruby native encoding mechanism and iconv dependency is dropped.
+
+* RubyGems
+ * RubyGems has been upgraded to version 1.8.10. For full release notes see
+ http://rubygems.rubyforge.org/rubygems-update/History_txt.html
+
+* stringio
+ * extended method:
+ * StringIO#set_encoding can get 2nd argument and optional hash.
+
+* test/unit
+ * New arguments:
+ * -j N, --jobs=N: Allow run N testcases at once.
+ * --jobs-status: Show status of jobs when parallel running.
+ * --no-retry: Don't retry testcases which failed when parallel running.
+ * --ruby=RUBY: path to ruby for job(worker) process. optional.
+ * --hide-skip: Hide skip messages. You'll see the number of skips at end of
+ test result.
+
+* uri
* new methods:
- * Etc::Passwd.each
- * Etc::Group.each
+ * URI::Generic#hostname
+ * URI::Generic#hostname=
+
+* webrick
+ * new method:
+ * WEBrick::HTTPRequest#continue for generating '100 continue' response.
+ * new logging directive:
+ * %{remote}p for remote (client) port number.
+
+* yaml
+ * The default YAML engine is now Psych. You may downgrade to syck by setting
+ YAML::ENGINE.yamler = 'syck'.
* zlib
* new methods:
- * Zlib::GzipFile#path
+ * Zlib.deflate
+ * Zlib.inflate
+
+* FileUtils
+ * extended method:
+ * FileUtils#chmod supports symbolic mode argument.
+
+=== Language changes
+
+* Regexps now support Unicode 6.0. (new characters and scripts)
+
+* [experimental] Regexps now support Age property.
+ Unlike Perl, current implementation takes interpretation of the
+ interpretation of UTS #18.
+ http://www.unicode.org/reports/tr18/
+
+* Turning on/off indentation warnings with directives.
+ ("# -*- warn-indent: true -*-" / "# -*- warn-indent: false -*-")
=== Compatibility issues (excluding feature bug fixes)
- * Enumerator#rewind
- * Socket#recvfrom
- * Socket#recvfrom_nonblock
- * Socket#accept
- * Socket#accept_nonblock
- * Socket#sysaccept
- * BasicSocket#getsockopt
- * Time.utc
- * Time.gm
- * Time.local
- * Time.mktime
- * Time.parse
+ * Rational#to_d
See above.
diff --git a/README b/README
index 7e8370ec59..3d2e636e4d 100644
--- a/README
+++ b/README
@@ -89,6 +89,32 @@ This is what you need to do to compile and install Ruby:
7. Run 'make install'
+ This command will create following directories and install files
+ onto them.
+
+ * ${DESTDIR}${prefix}/bin
+ * ${DESTDIR}${prefix}/include/ruby-${MAJOR}.${MINOR}.${TEENY}
+ * ${DESTDIR}${prefix}/include/ruby-${MAJOR}.${MINOR}.${TEENY}/${PLATFORM}
+ * ${DESTDIR}${prefix}/lib
+ * ${DESTDIR}${prefix}/lib/ruby
+ * ${DESTDIR}${prefix}/lib/ruby/${MAJOR}.${MINOR}.${TEENY}
+ * ${DESTDIR}${prefix}/lib/ruby/${MAJOR}.${MINOR}.${TEENY}/${PLATFORM}
+ * ${DESTDIR}${prefix}/lib/ruby/site_ruby
+ * ${DESTDIR}${prefix}/lib/ruby/site_ruby/${MAJOR}.${MINOR}.${TEENY}
+ * ${DESTDIR}${prefix}/lib/ruby/site_ruby/${MAJOR}.${MINOR}.${TEENY}/${PLATFORM}
+ * ${DESTDIR}${prefix}/lib/ruby/vendor_ruby
+ * ${DESTDIR}${prefix}/lib/ruby/vendor_ruby/${MAJOR}.${MINOR}.${TEENY}
+ * ${DESTDIR}${prefix}/lib/ruby/vendor_ruby/${MAJOR}.${MINOR}.${TEENY}/${PLATFORM}
+ * ${DESTDIR}${prefix}/lib/ruby/gems/${MAJOR}.${MINOR}.${TEENY}
+ * ${DESTDIR}${prefix}/share/man/man1
+ * ${DESTDIR}${prefix}/share/ri/${MAJOR}.${MINOR}.${TEENY}/system
+
+ If Ruby's API version is `x.y.z', the ((|${MAJOR}|)) is `x', the
+ ((|${MINOR}|)) is `y', and the ((|${TEENY}|)) is `z'.
+
+ NOTE: teeny of the API version may be different from one of
+ Ruby's program version
+
You may have to be a super user to install ruby.
If you fail to compile ruby, please send the detailed error report with
diff --git a/README.EXT b/README.EXT
index 7836545bbe..de63f54699 100644
--- a/README.EXT
+++ b/README.EXT
@@ -89,11 +89,15 @@ There are also faster check macros for fixnums and nil.
1.3 Convert VALUE into C data
-The data for type T_NIL, T_FALSE, T_TRUE are nil, true, false
+The data for type T_NIL, T_FALSE, T_TRUE are nil, false, true
respectively. They are singletons for the data type.
+The equivalent C constants are: Qnil, Qfalse, Qtrue.
+Note that Qfalse is false in C also (i.e. 0), but not Qnil.
-The T_FIXNUM data is a 31bit length fixed integer (63bit length on
-some machines), which can be converted to a C integer by using the
+The T_FIXNUM data is a 31bit or 63bit length fixed integer.
+This size is depend on the size of long: if long is 32bit then
+T_FIXNUM is 31bit, if long is 64bit then T_FIXNUM is 63bit.
+T_FIXNUM can be converted to a C integer by using the
FIX2INT() macro or FIX2LONG(). Though you have to check that the
data is really FIXNUM before using them, they are faster. FIX2LONG()
never raises exceptions, but FIX2INT() raises RangeError if the
@@ -115,8 +119,8 @@ You can also use the macro named StringValueCStr(). This is just
like StringValuePtr(), but always add nul character at the end of
the result. If the result contains nul character, this macro causes
the ArgumentError exception.
-StringValuePtr() doesn't gurantee to exist nul at the end of the
-result, and the result may contain nul.
+StringValuePtr() doesn't guarantee the existence of a nul at the end
+of the result, and the result may contain nul.
Other data types have corresponding C structures, e.g. struct RArray
for T_ARRAY etc. The VALUE of the type which has the corresponding
@@ -125,9 +129,9 @@ casting macro will be of the form RXXXX for each data type; for
instance, RARRAY(obj). See "ruby.h".
There are some accessing macros for structure members, for example
-`RSTRING_LEN(s)' to to get the size of the Ruby String object. The
-allocated region can be accessed by `RSTRING_PTR(str). For arrays, use
-`RARRAY_LEN(ary) and `RARRAY_PTR(ary) respectively.
+`RSTRING_LEN(str)' to get the size of the Ruby String object. The
+allocated region can be accessed by `RSTRING_PTR(str)'. For arrays,
+use `RARRAY_LEN(ary)' and `RARRAY_PTR(ary)' respectively.
Notice: Do not change the value of the structure directly, unless you
are responsible for the result. This ends up being the cause of
@@ -219,6 +223,23 @@ listed below:
Creates a new Ruby string with encoding US-ASCII.
+ rb_str_resize(VALUE str, long len)
+
+ Resizes Ruby string to len bytes. If str is not modifiable, this
+ function raises an exception. The length of str must be set in
+ advance. If len is less than the old length the content beyond
+ len bytes is discarded, else if len is greater than the old length
+ the content beyond the old length bytes will not be preserved but
+ will be garbage. Note that RSTRING_PTR(str) may change by calling
+ this function.
+
+ rb_str_set_len(VALUE str, long len)
+
+ Sets the length of Ruby string. If str is not modifiable, this
+ function raises an exception. This function preserves the content
+ upto len bytes, regardless RSTRING_LEN(str). len must not exceed
+ the capacity of str.
+
Array functions
rb_ary_new()
@@ -334,7 +355,7 @@ There are two functions to define private/protected methods:
void rb_define_protected_method(VALUE klass, const char *name,
VALUE (*func)(), int argc)
-At last, rb_define_module_funcion defines a module functions,
+At last, rb_define_module_function defines a module functions,
which are private AND singleton methods of the module.
For example, sqrt is the module function defined in Math module.
It can be called in the following way:
@@ -351,7 +372,7 @@ To define module functions, use:
void rb_define_module_function(VALUE module, const char *name,
VALUE (*func)(), int argc)
-Oh, in addition, function-like methods, which are private methods defined
+In addition, function-like methods, which are private methods defined
in the Kernel module, can be defined using:
void rb_define_global_function(const char *name, VALUE (*func)(), int argc)
@@ -360,7 +381,7 @@ To define an alias for the method,
void rb_define_alias(VALUE module, const char* new, const char* old);
-To define an reader/writer to an attribute,
+To define a reader/writer for an attribute,
void rb_define_attr(VALUE klass, const char *name, int read, int write)
@@ -369,8 +390,8 @@ To define and undefine the `allocate' class method,
void rb_define_alloc_func(VALUE klass, VALUE (*func)(VALUE klass));
void rb_undef_alloc_func(VALUE klass);
-func have to take the klass as the argument and return a newly
-allocated instance. This instance should be empty as possible,
+func has to take the klass as the argument and return a newly
+allocated instance. This instance should be as empty as possible,
without any expensive (including external) resources.
2.1.3 Constant definition
@@ -402,7 +423,7 @@ function:
VALUE rb_eval_string_protect(const char *str, int *state)
-It returns nil when an error occur. And *state is zero if str was
+It returns nil when an error occur. Moreover, *state is zero if str was
successfully evaluated, or nonzero otherwise.
@@ -467,7 +488,8 @@ See 2.1.3 for defining new constant.
3.1 Ruby constants that C can be accessed from C
-The following Ruby constants can be referred from C.
+As stated in section 1.3,
+the following Ruby constants can be referred from C.
Qtrue
Qfalse
@@ -585,6 +607,9 @@ has only one source file, choosing ``LIBRARY.c'' as a file name is
preferred. On the other hand, in case your library has multiple source
files, avoid choosing ``LIBRARY.c'' for a file name. It may conflict
with an intermediate file ``LIBRARY.o'' on some platforms.
+Note that some functions in mkmf library described below generate
+a file ``conftest.c'' for checking with compilation. You shouldn't
+choose ``conftest.c'' as a name of a source file.
Ruby will execute the initializing function named ``Init_LIBRARY'' in
the library. For example, ``Init_dbm()'' will be executed when loading
@@ -800,7 +825,6 @@ ruby syntax parser
-> lex.c : automatically generated
ruby evaluator (a.k.a. YARV)
- blockinlining.c
compile.c
eval.c
eval_error.c
@@ -886,7 +910,7 @@ class library
struct.c : Struct
time.c : Time
- defs/knwon_errors.def : Errno::* exception classes
+ defs/known_errors.def : Errno::* exception classes
-> known_errors.inc : automatically generated
multilingualization
@@ -1084,12 +1108,13 @@ according to the format string. The format can be described in ABNF
as follows:
--
-scan-arg-spec := param-arg-spec [block-arg-spec]
+scan-arg-spec := param-arg-spec [option-hash-arg-spec] [block-arg-spec]
param-arg-spec := pre-arg-spec [post-arg-spec] / post-arg-spec / pre-opt-post-arg-spec
pre-arg-spec := num-of-leading-mandatory-args [num-of-optional-args]
post-arg-spec := sym-for-variable-length-args [num-of-trailing-mandatory-args]
pre-opt-post-arg-spec := num-of-leading-mandatory-args num-of-optional-args num-of-trailing-mandatory-args
+option-hash-arg-spec := sym-for-option-hash-arg
block-arg-spec := sym-for-block-arg
num-of-leading-mandatory-args := DIGIT ; The number of leading
@@ -1101,6 +1126,18 @@ sym-for-variable-length-args := "*" ; Indicates that variable
; captured as a ruby array
num-of-trailing-mandatory-args := DIGIT ; The number of trailing
; mandatory arguments
+sym-for-option-hash-arg := ":" ; Indicates that an option
+ ; hash is captured if the last
+ ; argument is a hash or can be
+ ; converted to a hash with
+ ; #to_hash. When the last
+ ; argument is nil, it is
+ ; captured if it is not
+ ; ambiguous to take it as
+ ; empty option hash; i.e. '*'
+ ; is not specified and
+ ; arguments are given more
+ ; than sufficient.
sym-for-block-arg := "&" ; Indicates that an iterator
; block should be captured if
; given
@@ -1113,8 +1150,8 @@ assigned to captured arguments. For omitted arguments, variables are
set to Qnil. NULL can be put in place of a variable reference, which
means the corresponding captured argument(s) should be just dropped.
-The number of given arguments, excluding an iterator block, is
-returned.
+The number of given arguments, excluding an option hash or iterator
+block, is returned.
** Invoking Ruby method
@@ -1159,28 +1196,56 @@ Sets the value of the instance variable.
** Control Structure
- VALUE rb_iterate(VALUE (*func1)(), void *arg1, VALUE (*func2)(), void *arg2)
+ VALUE rb_block_call(VALUE recv, ID mid, int argc, VALUE * argv,
+ VALUE (*func) (ANYARGS), VALUE data2)
+
+Calls a method on the recv, with the method name specified by the
+symbol mid, with argc arguments in argv, supplying func as the
+block. When func is called as the block, it will receive the value
+from yield as the first argument, and data2 as the second argument.
+When yielded with multiple values (in C, rb_yield_values(),
+rb_yield_values2() and rb_yield_splat()), data2 is packed as an Array,
+whereas yielded values can be gotten via argc/argv of the third/fourth
+arguments.
+
+ [OBSOLETE] VALUE rb_iterate(VALUE (*func1)(), void *arg1, VALUE (*func2)(), void *arg2)
Calls the function func1, supplying func2 as the block. func1 will be
called with the argument arg1. func2 receives the value from yield as
the first argument, arg2 as the second argument.
+When rb_iterate is used in 1.9, func1 has to call some Ruby-level method.
+This function is obsolete since 1.9; use rb_block_call instead.
+
VALUE rb_yield(VALUE val)
Evaluates the block with value val.
- VALUE rb_rescue(VALUE (*func1)(), void *arg1, VALUE (*func2)(), void *arg2)
+ VALUE rb_rescue(VALUE (*func1)(), VALUE arg1, VALUE (*func2)(), VALUE arg2)
Calls the function func1, with arg1 as the argument. If an exception
occurs during func1, it calls func2 with arg2 as the argument. The
return value of rb_rescue() is the return value from func1 if no
exception occurs, from func2 otherwise.
- VALUE rb_ensure(VALUE (*func1)(), void *arg1, void (*func2)(), void *arg2)
+ VALUE rb_ensure(VALUE (*func1)(), VALUE arg1, VALUE (*func2)(), VALUE arg2)
Calls the function func1 with arg1 as the argument, then calls func2
with arg2 if execution terminated. The return value from
-rb_ensure() is that of func1.
+rb_ensure() is that of func1 when no exception occured.
+
+ VALUE rb_protect(VALUE (*func) (VALUE), VALUE arg, int *state)
+
+Calls the function func with arg as the argument. If no exception
+occured during func, it returns the result of func and *state is zero.
+Otherwise, it returns Qnil and sets *state to nonzero. If state is
+NULL, it is not set in both cases.
+
+ void rb_jump_tag(int state)
+
+Continues the exception caught by rb_protect() and rb_eval_string_protect().
+state must be the returned value from those functions. This function
+never return to the caller.
** Exceptions and Errors
@@ -1234,7 +1299,7 @@ Specifies the name of the script ($0).
** Hooks for the Interpreter Events
- void rb_add_event_hook(rb_event_hook_func_t func, rb_event_t events)
+ void rb_add_event_hook(rb_event_hook_func_t func, rb_event_flag_t events, VALUE data)
Adds a hook function for the specified interpreter events.
events should be Or'ed value of:
@@ -1251,9 +1316,13 @@ events should be Or'ed value of:
The definition of rb_event_hook_func_t is below:
- typedef void (*rb_event_hook_func_t)(rb_event_t event, NODE *node,
+ typedef void (*rb_event_hook_func_t)(rb_event_t event, VALUE data,
VALUE self, ID id, VALUE klass)
+The third argument `data' to rb_add_event_hook() is passed to the hook
+function as the second argument, which was the pointer to the current
+NODE in 1.8. See RB_EVENT_HOOKS_HAVE_CALLBACK_DATA below.
+
int rb_remove_event_hook(rb_event_hook_func_t func)
Removes the specified hook function.
@@ -1293,6 +1362,11 @@ Defined in ruby.h and means correspoinding header is available. For
instance, when HAVE_RUBY_ST_H is defined you should use ruby/st.h not
mere st.h.
+ RB_EVENT_HOOKS_HAVE_CALLBACK_DATA
+
+Means that rb_add_event_hook() takes the third argument `data', to be
+passed to the given event hook function.
+
Appendix C. Functions Available in extconf.rb
These functions are available in extconf.rb:
diff --git a/README.EXT.ja b/README.EXT.ja
index 14192461b7..f2d7609ff5 100644
--- a/README.EXT.ja
+++ b/README.EXT.ja
@@ -106,9 +106,9 @@ FIXNUM¤ÈNIL¤Ë´Ø¤·¤Æ¤Ï¤è¤ê¹â®¤ÊȽÊÌ¥Þ¥¯¥í¤¬ÍѰդµ¤ì¤Æ¤¤¤Þ¤¹¡¥
¤Ë¤Ê¤ê¤Þ¤¹. FIXNUM ¤ò C ¤ÎÀ°¿ô¤ËÊÑ´¹¤¹¤ë¤¿¤á¤Ë¤Ï¥Þ¥¯¥í
¡ÖFIX2INT()¡×¤Þ¤¿¤Ï¡ÖFIX2LONG()¡×¤ò»È¤¤¤Þ¤¹¡¥¤³¤ì¤é¤Î¥Þ¥¯¥í
¤ò»ÈÍѤ¹¤ëºÝ¤Ë¤Ï»öÁ°¤Ë¥Ç¡¼¥¿¥¿¥¤¥×¤¬FIXNUM¤Ç¤¢¤ë¤³¤È¤ò³Îǧ¤¹
-¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¤¬¡¢Èæ³ÓŪ¹â®¤ËÊÑ´¹¤ò¹Ô¤¦¤³¤È¤¬¤Ç¤­¤Þ¤¹¡¥¤Þ
-¤¿¡¢¡ÖFIX2LONG()¡×¤ÏÎã³°¤òȯÀ¸¤·¤Þ¤»¤ó¤¬¡¢¡ÖFIX2INT()¡×¤ÏÊÑ
-´¹·ë²Ì¤¬int¤Î¥µ¥¤¥º¤Ë¼ý¤Þ¤é¤Ê¤¤¾ì¹ç¤Ë¤ÏÎã³°¤òȯÀ¸¤·¤Þ¤¹¡£
+¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¤¬¡¤Èæ³ÓŪ¹â®¤ËÊÑ´¹¤ò¹Ô¤¦¤³¤È¤¬¤Ç¤­¤Þ¤¹¡¥¤Þ
+¤¿¡¤¡ÖFIX2LONG()¡×¤ÏÎã³°¤òȯÀ¸¤·¤Þ¤»¤ó¤¬¡¤¡ÖFIX2INT()¡×¤ÏÊÑ
+´¹·ë²Ì¤¬int¤Î¥µ¥¤¥º¤Ë¼ý¤Þ¤é¤Ê¤¤¾ì¹ç¤Ë¤ÏÎã³°¤òȯÀ¸¤·¤Þ¤¹¡¥
¤½¤ì¤«¤é¡¤FIXNUM¤Ë¸Â¤é¤ºRuby¤Î¥Ç¡¼¥¿¤òÀ°¿ô¤ËÊÑ´¹¤¹¤ë
¡ÖNUM2INT()¡×¤ª¤è¤Ó¡ÖNUM2LONG()¡×¤È¤¤¤¦¥Þ¥¯¥í¤¬¤¢¤ê¤Þ¤¹¡¥¤³
¤ì¤é¤Î¥Þ¥¯¥í¤Ï¥Þ¥¯¥í¤Ï¥Ç¡¼¥¿¥¿¥¤¥×¤Î¥Á¥§¥Ã¥¯Ìµ¤·¤Ç»È¤¨¤Þ¤¹
@@ -208,13 +208,13 @@ Ruby¤¬ÍѰդ·¤Æ¤¤¤ë´Ø¿ô¤òÍѤ¤¤Æ¤¯¤À¤µ¤¤¡¥
rb_str_new(ptr, strlen(ptr))¤ÈƱÅù¤Ç¤¢¤ë¡¥
rb_tainted_str_new(const char *ptr, long len)
- rb_tainted_str_new_cstr(const char *ptr)
±øÀ÷¥Þ¡¼¥¯¤¬Éղ䵤줿¿·¤·¤¤Ruby¤Îʸ»úÎó¤òÀ¸À®¤¹¤ë¡¥³°Éô
¤«¤é¤Î¥Ç¡¼¥¿¤Ë´ð¤Å¤¯Ê¸»úÎó¤Ë¤Ï±øÀ÷¥Þ¡¼¥¯¤¬Éղ䵤ì¤ë¤Ù¤­
¤Ç¤¢¤ë¡¥
rb_tainted_str_new2(const char *ptr)
+ rb_tainted_str_new_cstr(const char *ptr)
C¤Îʸ»úÎ󤫤鱸À÷¥Þ¡¼¥¯¤¬Éղ䵤줿Ruby¤Îʸ»úÎó¤òÀ¸À®¤¹¤ë¡¥
@@ -250,6 +250,22 @@ Ruby¤¬ÍѰդ·¤Æ¤¤¤ë´Ø¿ô¤òÍѤ¤¤Æ¤¯¤À¤µ¤¤¡¥
¥¨¥ó¥³¡¼¥Ç¥£¥ó¥°¤¬US-ASCII¤ÎRuby¤Îʸ»úÎó¤òÀ¸À®¤¹¤ë.
+ rb_str_resize(VALUE str, long len)
+
+ Ruby¤Îʸ»úÎó¤Î¥µ¥¤¥º¤òlen¥Ð¥¤¥È¤ËÊѹ¹¤¹¤ë¡¥str¤ÎŤµ¤ÏÁ°
+ °Ê¤Æ¥»¥Ã¥È¤µ¤ì¤Æ¤¤¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤¡¥len¤¬¸µ¤ÎŤµ¤è¤ê¤âû
+ ¤¤»þ¤Ï¡¤len¥Ð¥¤¥È¤ò±Û¤¨¤¿Éôʬ¤ÎÆâÍÆ¤Ï¼Î¤Æ¤é¤ì¤ë¡¥len¤¬¸µ
+ ¤ÎŤµ¤è¤ê¤âŤ¤»þ¤Ï¡¤¸µ¤ÎŤµ¤ò±Û¤¨¤¿Éôʬ¤ÎÆâÍÆ¤ÏÊݸ¤µ
+ ¤ì¤Ê¤¤¤Ç¥´¥ß¤Ë¤Ê¤ë¤À¤í¤¦¡¥¤³¤Î´Ø¿ô¤Î¸Æ¤Ó½Ð¤·¤Ë¤è¤Ã¤Æ
+ RSTRING_PTR(str)¤¬Êѹ¹¤µ¤ì¤ë¤«¤â¤·¤ì¤Ê¤¤¤³¤È¤ËÃí°Õ¡¥
+
+ rb_str_set_len(VALUE str, long len)
+
+ Ruby¤Îʸ»úÎó¤Î¥µ¥¤¥º¤òlen¥Ð¥¤¥È¤Ë¥»¥Ã¥È¤¹¤ë¡¥str¤¬Êѹ¹²Ä
+ ǽ¤Ç¤Ê¤±¤ì¤ÐÎã³°¤¬È¯À¸¤¹¤ë¡¥RSTRING_LEN(str)¤È¤Ï̵´Ø·¸¤Ë¡¤
+ len¥Ð¥¤¥È¤Þ¤Ç¤ÎÆâÍÆ¤ÏÊݸ¤µ¤ì¤ë¡¥len¤Ïstr¤ÎÍÆÎ̤ò±Û¤¨¤Æ¤¤
+ ¤Æ¤Ï¤Ê¤é¤Ê¤¤¡¥
+
ÇÛÎó¤ËÂФ¹¤ë´Ø¿ô
@@ -374,7 +390,7 @@ private/protected¤Ê¥á¥½¥Ã¥É¤òÄêµÁ¤¹¤ë¤Õ¤¿¤Ä¤Î´Ø¿ô¤¬¤¢¤ê¤Þ¤¹.
private¥á¥½¥Ã¥É¤È¤Ï´Ø¿ô·Á¼°¤Ç¤·¤«¸Æ¤Ó½Ð¤¹¤³¤È¤Î½ÐÍè¤Ê¤¤¥á¥½¥Ã
¥É¤Ç¤¹¡¥
-ºÇ¸å¤Ë¡¢ rb_define_module´Ø¿ô¤Ï¥â¥¸¥å¡¼¥ë´Ø¿ô¤òÄêµÁ¤·¤Þ¤¹¡£
+ºÇ¸å¤Ë¡¤ rb_define_module´Ø¿ô¤Ï¥â¥¸¥å¡¼¥ë´Ø¿ô¤òÄêµÁ¤·¤Þ¤¹¡¥
¥â¥¸¥å¡¼¥ë´Ø¿ô¤È¤Ï¥â¥¸¥å¡¼¥ë¤ÎÆÃ°Û¥á¥½¥Ã¥É¤Ç¤¢¤ê¡¤Æ±»þ¤Ë
private¥á¥½¥Ã¥É¤Ç¤â¤¢¤ë¤â¤Î¤Ç¤¹¡¥Îã¤ò¤¢¤²¤ë¤ÈMath¥â¥¸¥å¡¼¥ë
¤Îsqrt()¤Ê¤É¤¬¤¢¤²¤é¤ì¤Þ¤¹¡¥¤³¤Î¥á¥½¥Ã¥É¤Ï
@@ -454,8 +470,8 @@ C¤«¤éRuby¤Îµ¡Ç½¤ò¸Æ¤Ó½Ð¤¹¤â¤Ã¤È¤â´Êñ¤ÊÊýË¡¤È¤·¤Æ¡¤Ê¸»úÎó¤Ç
VALUE rb_eval_string_protect(const char *str, int *state)
-¤³¤Î´Ø¿ô¤Ï¥¨¥é¡¼¤¬È¯À¸¤¹¤ë¤Ènil¤òÊÖ¤·¤Þ¤¹¡£¤½¤·¤Æ¡¢À®¸ù»þ¤Ë¤Ï
-*state¤Ï¥¼¥í¤Ë¡¢¤µ¤â¤Ê¤¯¤ÐÈó¥¼¥í¤Ë¤Ê¤ê¤Þ¤¹¡£
+¤³¤Î´Ø¿ô¤Ï¥¨¥é¡¼¤¬È¯À¸¤¹¤ë¤Ènil¤òÊÖ¤·¤Þ¤¹¡¥¤½¤·¤Æ¡¤À®¸ù»þ¤Ë¤Ï
+*state¤Ï¥¼¥í¤Ë¡¤¤µ¤â¤Ê¤¯¤ÐÈó¥¼¥í¤Ë¤Ê¤ê¤Þ¤¹¡¥
2.2.2 ID¤Þ¤¿¤Ï¥·¥ó¥Ü¥ë
@@ -562,7 +578,7 @@ C¤ÈRuby¤ÇÂç°èÊÑ¿ô¤ò»È¤Ã¤Æ¾ðÊó¤ò¶¦Í­¤Ç¤­¤Þ¤¹¡¥¶¦Í­¤Ç¤­¤ëÂç°è
setter¤Ë0¤ò»ØÄꤷ¤Þ¤¹¡¥
# getter¤âsetter¤â0¤Ê¤é¤Ðrb_define_variable()¤ÈƱ¤¸¤Ë¤Ê¤ë¡¥
-getter¤Èsetter¤Î»ÅÍͤϼ¡¤ÎÄ̤ê¤Ç¤¹¡£
+getter¤Èsetter¤Î»ÅÍͤϼ¡¤ÎÄ̤ê¤Ç¤¹¡¥
VALUE (*getter)(ID id, VALUE *var);
void (*setter)(VALUE val, ID id, VALUE *var);
@@ -664,7 +680,10 @@ Ruby 1.1¤«¤é¤ÏǤ°Õ¤Î¥Ç¥£¥ì¥¯¥È¥ê¤Ç¥À¥¤¥Ê¥ß¥Ã¥¯¥é¥¤¥Ö¥é¥ê¤òºî
¸À¸ì¤Î¥½¡¼¥¹¤¬Ê£¿ô¤Î¾ì¹ç¤Ë¤ÏµÕ¤Ë¡Ö¥é¥¤¥Ö¥é¥ê̾.c¡×¤È¤¤¤¦¥Õ¥¡
¥¤¥ë̾¤ÏÈò¤±¤ëɬÍפ¬¤¢¤ê¤Þ¤¹¡¥¥ª¥Ö¥¸¥§¥¯¥È¥Õ¥¡¥¤¥ë¤È¥â¥¸¥å¡¼
¥ëÀ¸À®»þ¤ËÃæ´ÖŪ¤ËÀ¸À®¤µ¤ì¤ë¡Ö¥é¥¤¥Ö¥é¥ê̾.o¡×¤È¤¤¤¦¥Õ¥¡¥¤¥ë
-¤È¤¬¾×ÆÍ¤¹¤ë¤«¤é¤Ç¤¹¡¥
+¤È¤¬¾×ÆÍ¤¹¤ë¤«¤é¤Ç¤¹¡¥¤Þ¤¿¡¤¸å½Ò¤¹¤ë mkmf ¥é¥¤¥Ö¥é¥ê¤Î¤¤¤¯¤Ä
+¤«¤Î´Ø¿ô¤¬¥³¥ó¥Ñ¥¤¥ë¤òÍפ¹¤ë¥Æ¥¹¥È¤Î¤¿¤á¤Ë¡Öconftest.c¡×¤È¤¤
+¤¦¥Õ¥¡¥¤¥ë̾¤ò»ÈÍѤ¹¤ë¤³¤È¤ËÃí°Õ¤·¤Æ¤¯¤À¤µ¤¤¡¥¥½¡¼¥¹¥Õ¥¡¥¤¥ë
+̾¤È¤·¤Æ¡Öconftest.c¡×¤ò»ÈÍѤ·¤Æ¤Ï¤Ê¤ê¤Þ¤»¤ó¡¥
Ruby¤Ï³ÈÄ¥¥é¥¤¥Ö¥é¥ê¤ò¥í¡¼¥É¤¹¤ë»þ¤Ë¡ÖInit_¥é¥¤¥Ö¥é¥ê̾¡×¤È
¤¤¤¦´Ø¿ô¤ò¼«Æ°Åª¤Ë¼Â¹Ô¤·¤Þ¤¹¡¥dbm¥é¥¤¥Ö¥é¥ê¤Î¾ì¹ç¡ÖInit_dbm¡×
@@ -906,8 +925,7 @@ Ruby¤Î¹½Ê¸²òÀÏ´ï
keywords : ͽÌó¸ì
-> lex.c : ¼«Æ°À¸À®
-Ruby¤Îɾ²Á´ï(Ä̾ÎYARV)
- blockinlining.c
+Ruby¤Îɾ²Á´ï (Ä̾ÎYARV)
compile.c
eval.c
eval_error.c
@@ -992,7 +1010,7 @@ Ruby¥³¥Þ¥ó¥É¤Î¼ÂÁõ
struct.c : Struct
time.c : Time
- defs/knwon_errors.def : Îã³°¥¯¥é¥¹ Errno::*
+ defs/known_errors.def : Îã³°¥¯¥é¥¹ Errno::*
-> known_errors.inc : ¼«Æ°À¸À®
¿¸À¸ì²½
@@ -1183,12 +1201,13 @@ rb_scan_args(int argc, VALUE *argv, const char *fmt, ...)
¥È¤Ï¡¤ABNF¤Çµ­½Ò¤¹¤ë¤È°Ê²¼¤ÎÄ̤ê¤Ç¤¹¡¥
--
-scan-arg-spec := param-arg-spec [block-arg-spec]
+scan-arg-spec := param-arg-spec [option-hash-arg-spec] [block-arg-spec]
param-arg-spec := pre-arg-spec [post-arg-spec] / post-arg-spec / pre-opt-post-arg-spec
pre-arg-spec := num-of-leading-mandatory-args [num-of-optional-args]
post-arg-spec := sym-for-variable-length-args [num-of-trailing-mandatory-args]
pre-opt-post-arg-spec := num-of-leading-mandatory-args num-of-optional-args num-of-trailing-mandatory-args
+option-hash-arg-spec := sym-for-option-hash-arg
block-arg-spec := sym-for-block-arg
num-of-leading-mandatory-args := DIGIT ; ÀèÆ¬¤ËÃÖ¤«¤ì¤ë¾ÊάÉÔǽ¤Ê°ú¿ô¤Î¿ô
@@ -1196,6 +1215,15 @@ num-of-optional-args := DIGIT ; ³¤¤¤ÆÃÖ¤«¤ì¤ë¾Êά²Äǽ¤Ê°ú¿ô¤Î¿ô
sym-for-variable-length-args := "*" ; ³¤¤¤ÆÃÖ¤«¤ì¤ë²ÄÊÑŰú¿ô¤ò
; Ruby¤ÎÇÛÎó¤Ç¼èÆÀ¤¹¤ë¤¿¤á¤Î»ØÄê
num-of-trailing-mandatory-args := DIGIT ; ½ªÃ¼¤ËÃÖ¤«¤ì¤ë¾ÊάÉÔǽ¤Ê°ú¿ô¤Î¿ô
+sym-for-option-hash-arg := ":" ; ¥ª¥×¥·¥ç¥ó¥Ï¥Ã¥·¥å¤ò¼èÆÀ¤¹¤ë
+ ; ¤¿¤á¤Î»ØÄê; ¾ÊάÉÔǽ¤Ê°ú¿ô¤Î
+ ; ¿ô¤è¤ê¤â¿¤¯¤Î°ú¿ô¤¬»ØÄꤵ¤ì¡¤
+ ; ºÇ¸å¤Î°ú¿ô¤¬¥Ï¥Ã¥·¥å¡Ê¤Þ¤¿¤Ï
+ ; #to_hash¤ÇÊÑ´¹²Äǽ¡Ë¤Î¾ì¹ç¤Ë
+ ; ¼èÆÀ¤µ¤ì¤ë¡¥ºÇ¸å¤Î°ú¿ô¤¬nil¤Î
+ ; ¾ì¹ç¡¤²ÄÊÑŰú¿ô»ØÄ꤬¤Ê¤¯¡¤
+ ; ¾ÊάÉÔǽ°ú¿ô¤Î¿ô¤è¤ê¤â¿¤¯¤Î
+ ; °ú¿ô¤¬»ØÄꤵ¤ì¤¿¾ì¹ç¤Ë¼èÆÀ¤µ¤ì¤ë
sym-for-block-arg := "&" ; ¥¤¥Æ¥ì¡¼¥¿¥Ö¥í¥Ã¥¯¤ò¼èÆÀ¤¹¤ë¤¿¤á¤Î
; »ØÄê
--
@@ -1204,12 +1232,12 @@ sym-for-block-arg := "&" ; ¥¤¥Æ¥ì¡¼¥¿¥Ö¥í¥Ã¥¯¤ò¼èÆÀ¤¹¤ë¤¿¤á¤Î
¤ì¤ë¤È¤¤¤¦°ÕÌ£¤Ë¤Ê¤ê¤Þ¤¹¡¥½¾¤Ã¤Æ¡¤¥Õ¥©¡¼¥Þ¥Ã¥Èʸ»úÎó¤Ë³¤¤
¤Æ3¤Ä¤ÎVALUE¤Ø¤Î»²¾È¤òÃÖ¤¯É¬Íפ¬¤¢¤ê¤Þ¤¹¡¥¤½¤ì¤é¤Ë¤Ï¼èÆÀ¤·¤¿
ÊÑ¿ô¤¬¥»¥Ã¥È¤µ¤ì¤Þ¤¹¡¥ÊÑ¿ô¤Ø¤Î»²¾È¤ÎÂå¤ï¤ê¤ËNULL¤ò»ØÄꤹ¤ë
- ¤³¤È¤â¤Ç¤­¡¤¤½¤Î¾ì¹ç¤Ï¼èÆÀ¤·¤¿°ú¿ô¤ÎÃͤϼΤƤé¤ì¤Þ¤¹¡¥¤Ê¤ª¡¢
+ ¤³¤È¤â¤Ç¤­¡¤¤½¤Î¾ì¹ç¤Ï¼èÆÀ¤·¤¿°ú¿ô¤ÎÃͤϼΤƤé¤ì¤Þ¤¹¡¥¤Ê¤ª¡¤
¾Êά²Äǽ°ú¿ô¤¬¾Êά¤µ¤ì¤¿»þ¤ÎÊÑ¿ô¤ÎÃͤÏnil(C¸À¸ì¤Î¥ì¥Ù¥ë¤Ç¤Ï
Qnil)¤Ë¤Ê¤ê¤Þ¤¹¡¥
- ÊÖ¤êÃͤÏÍ¿¤¨¤é¤ì¤¿°ú¿ô¤Î¿ô¤Ç¤¹¡¥¥¤¥Æ¥ì¡¼¥¿¥Ö¥í¥Ã¥¯¤Ï¿ô¤¨¤Þ
- ¤»¤ó¡¥
+ ÊÖ¤êÃͤÏÍ¿¤¨¤é¤ì¤¿°ú¿ô¤Î¿ô¤Ç¤¹¡¥¥ª¥×¥·¥ç¥ó¥Ï¥Ã¥·¥å¤ª¤è¤Ó¥¤
+ ¥Æ¥ì¡¼¥¿¥Ö¥í¥Ã¥¯¤Ï¿ô¤¨¤Þ¤»¤ó¡¥
** Ruby¥á¥½¥Ã¥É¸Æ¤Ó½Ð¤·
@@ -1258,12 +1286,26 @@ VALUE rb_iv_set(VALUE obj, const char *name, VALUE val)
** À©¸æ¹½Â¤
-VALUE rb_iterate(VALUE (*func1)(), VALUE arg1, VALUE (*func2)(), VALUE arg2)
+VALUE rb_block_call(VALUE obj, ID mid, int argc, VALUE * argv,
+ VALUE (*func) (ANYARGS), VALUE data2)
+
+ func¤ò¥Ö¥í¥Ã¥¯¤È¤·¤ÆÀßÄꤷ¡¤obj¤ò¥ì¥·¡¼¥Ð¡¤argc¤Èargv¤ò°ú¿ô
+ ¤È¤·¤Æmid¥á¥½¥Ã¥É¤ò¸Æ¤Ó½Ð¤¹¡¥func¤ÏÂè°ì°ú¿ô¤Ëyield¤µ¤ì¤¿ÃÍ¡¤
+ ÂèÆó°ú¿ô¤Ëdata2¤ò¼õ¤±¼è¤ë¡¥Ê£¿ô¤ÎÃͤ¬yield¤µ¤ì¤¿¾ì¹ç(C¤Ç¤Ï
+ rb_yield_values()¤Èrb_yield_values2(), rb_yield_splat())¡¤
+ data2¤ÏArray¤È¤·¤Æ¥Ñ¥Ã¥¯¤µ¤ì¤Æ¤¤¤ë¡¥Âè»°, Âè»Í°ú¿ô¤Îargc¤È
+ argv¤Ë¤è¤Ã¤Æyield¤µ¤ì¤¿Ãͤò¼è¤ê½Ð¤¹¤³¤È¤¬¤Ç¤­¤ë¡¥
+
+[OBSOLETE] VALUE rb_iterate(VALUE (*func1)(), VALUE arg1, VALUE (*func2)(), VALUE arg2)
func2¤ò¥Ö¥í¥Ã¥¯¤È¤·¤ÆÀßÄꤷ, func1¤ò¥¤¥Æ¥ì¡¼¥¿¤È¤·¤Æ¸Æ¤Ö¡¥
func1¤Ë¤Ï arg1¤¬°ú¿ô¤È¤·¤ÆÅϤµ¤ì, func2¤Ë¤ÏÂè1°ú¿ô¤Ë¥¤¥Æ¥ì¡¼
¥¿¤«¤éÍ¿¤¨¤é¤ì¤¿ÃÍ, Âè2°ú¿ô¤Ëarg2¤¬ÅϤµ¤ì¤ë¡¥
+ 1.9¤Çrb_iterate¤ò»È¤¦¾ì¹ç¤Ï, func1¤ÎÃæ¤ÇRuby¥ì¥Ù¥ë¤Î¥á¥½¥Ã¥É
+ ¤ò¸Æ¤Ó½Ð¤µ¤Ê¤±¤ì¤Ð¤Ê¤é¤Ê¤¤.
+ 1.9¤Çobsolete¤È¤Ê¤Ã¤¿. Âå¤ï¤ê¤Ërb_block_call¤¬ÍѰդµ¤ì¤¿.
+
VALUE rb_yield(VALUE val)
val¤òÃͤȤ·¤Æ¥¤¥Æ¥ì¡¼¥¿¥Ö¥í¥Ã¥¯¤ò¸Æ¤Ó½Ð¤¹¡¥
@@ -1275,12 +1317,24 @@ VALUE rb_rescue(VALUE (*func1)(), VALUE arg1, VALUE (*func2)(), VALUE arg2)
¤·¤Ê¤«¤Ã¤¿»þ¤Ïfunc1¤ÎÌá¤êÃÍ, Îã³°¤¬È¯À¸¤·¤¿»þ¤Ë¤Ïfunc2¤ÎÌá
¤êÃͤǤ¢¤ë¡¥
-VALUE rb_ensure(VALUE (*func1)(), VALUE arg1, void (*func2)(), VALUE arg2)
+VALUE rb_ensure(VALUE (*func1)(), VALUE arg1, VALUE (*func2)(), VALUE arg2)
´Ø¿ôfunc1¤òarg1¤ò°ú¿ô¤È¤·¤Æ¼Â¹Ô¤·, ¼Â¹Ô½ªÎ»¸å(¤¿¤È¤¨Îã³°¤¬
ȯÀ¸¤·¤Æ¤â) func2¤òarg2¤ò°ú¿ô¤È¤·¤Æ¼Â¹Ô¤¹¤ë¡¥Ìá¤êÃͤÏfunc1
¤ÎÌá¤êÃͤǤ¢¤ë(Îã³°¤¬È¯À¸¤·¤¿»þ¤ÏÌá¤é¤Ê¤¤)¡¥
+VALUE rb_protect(VALUE (*func) (VALUE), VALUE arg, int *state)
+
+ ´Ø¿ôfunc¤òarg¤ò°ú¿ô¤È¤·¤Æ¼Â¹Ô¤·, Îã³°¤¬È¯À¸¤·¤Ê¤±¤ì¤Ð¤½¤ÎÌá
+ ¤êÃͤòÊÖ¤¹¡¥Îã³°¤¬È¯À¸¤·¤¿¾ì¹ç¤Ï, *state¤ËÈó0¤ò¥»¥Ã¥È¤·¤Æ
+ Qnil¤òÊÖ¤¹¡¥
+
+void rb_jump_tag(int state)
+
+ rb_protect()¤ärb_eval_string_protect()¤ÇÊ᪤µ¤ì¤¿Îã³°¤òºÆ
+ Á÷¤¹¤ë¡¥state¤Ï¤½¤ì¤é¤Î´Ø¿ô¤«¤éÊÖ¤µ¤ì¤¿ÃͤǤʤ±¤ì¤Ð¤Ê¤é¤Ê¤¤¡¥
+ ¤³¤Î´Ø¿ô¤ÏľÀܤθƤӽФ·¸µ¤ËÌá¤é¤Ê¤¤¡¥
+
** Îã³°¡¦¥¨¥é¡¼
void rb_warning(const char *fmt, ...)
@@ -1332,7 +1386,7 @@ void ruby_script(char *name)
** ¥¤¥ó¥¿¥×¥ê¥¿¤Î¥¤¥Ù¥ó¥È¤Î¥Õ¥Ã¥¯
- void rb_add_event_hook(rb_event_hook_func_t func, rb_event_t events)
+ void rb_add_event_hook(rb_event_hook_func_t func, rb_event_flag_t events, VALUE data)
»ØÄꤵ¤ì¤¿¥¤¥ó¥¿¥×¥ê¥¿¤Î¥¤¥Ù¥ó¥È¤ËÂФ¹¤ë¥Õ¥Ã¥¯´Ø¿ô¤òÄɲä·¤Þ¤¹¡¥
events¤Ï°Ê²¼¤ÎÃͤÎor¤Ç¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó:
@@ -1349,9 +1403,13 @@ events¤Ï°Ê²¼¤ÎÃͤÎor¤Ç¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó:
rb_event_hook_func_t¤ÎÄêµÁ¤Ï°Ê²¼¤ÎÄ̤ê¤Ç¤¹:
- typedef void (*rb_event_hook_func_t)(rb_event_t event, NODE *node,
+ typedef void (*rb_event_hook_func_t)(rb_event_t event, VALUE data,
VALUE self, ID id, VALUE klass)
+rb_add_event_hook() ¤ÎÂè3°ú¿ô data ¤Ï¡¤¥Õ¥Ã¥¯´Ø¿ô¤ÎÂè2°ú¿ô¤È
+¤·¤ÆÅϤµ¤ì¤Þ¤¹¡¥¤³¤ì¤Ï1.8¤Ç¤Ï¸½ºß¤ÎNODE¤Ø¤Î¥Ý¥¤¥ó¥¿¤Ç¤·¤¿¡¥°Ê
+²¼¤Î RB_EVENT_HOOKS_HAVE_CALLBACK_DATA ¤â»²¾È¤·¤Æ¤¯¤À¤µ¤¤¡¥
+
int rb_remove_event_hook(rb_event_hook_func_t func)
»ØÄꤵ¤ì¤¿¥Õ¥Ã¥¯´Ø¿ô¤òºï½ü¤·¤Þ¤¹¡¥
@@ -1366,7 +1424,7 @@ NORETURN_STYLE_NEW
HAVE_RB_DEFINE_ALLOC_FUNC
- rb_define_alloc_func() ´Ø¿ô¤¬Ä󶡤µ¤ì¤Æ¤¤¤ë¤³¤È¡¢¤Ä¤Þ¤ê
+ rb_define_alloc_func() ´Ø¿ô¤¬Ä󶡤µ¤ì¤Æ¤¤¤ë¤³¤È¡¤¤Ä¤Þ¤ê
allocation framework ¤¬»È¤ï¤ì¤ë¤³¤È¤ò°ÕÌ£¤¹¤ë¡¥
have_func("rb_define_alloc_func", "ruby.h")
¤Î·ë²Ì¤ÈƱ¤¸¡¥
@@ -1393,6 +1451,10 @@ HAVE_RUBY_*_H
¤ò°ÕÌ£¤¹¤ë¡¥¤¿¤È¤¨¤Ð¡¤HAVE_RUBY_ST_H ¤¬ÄêµÁ¤µ¤ì¤Æ¤¤¤ë¾ì¹ç¤Ï
ñ¤Ê¤ë st.h ¤Ç¤Ï¤Ê¤¯ ruby/st.h ¤ò»ÈÍѤ¹¤ë¡¥
+RB_EVENT_HOOKS_HAVE_CALLBACK_DATA
+
+ rb_add_event_hook() ¤¬¥Õ¥Ã¥¯´Ø¿ô¤ËÅϤ¹ data ¤òÂè3°ú¿ô¤È¤·¤Æ
+ ¼õ¤±¼è¤ë¤³¤È¤ò°ÕÌ£¤¹¤ë¡¥
Appendix C. extconf.rb¤Ç»È¤¨¤ë´Ø¿ô¤¿¤Á
diff --git a/README.ja b/README.ja
index 2191720a26..dd7f67ca59 100644
--- a/README.ja
+++ b/README.ja
@@ -116,6 +116,32 @@ Ruby³ÈÄ¥¥â¥¸¥å¡¼¥ë¤Ë¤Ä¤¤¤ÆÏ䷹礦ruby-ext¥á¡¼¥ê¥ó¥°¥ê¥¹¥È¤È
7. make install
+ °Ê²¼¤Î¥Ç¥£¥ì¥¯¥È¥ê¤òºî¤Ã¤Æ¡¤¤½¤³¤Ë¥Õ¥¡¥¤¥ë¤ò¥¤¥ó¥¹¥È¡¼
+ ¥ë¤·¤Þ¤¹¡¥
+
+ * ${DESTDIR}${prefix}/bin
+ * ${DESTDIR}${prefix}/include/ruby-${MAJOR}.${MINOR}.${TEENY}
+ * ${DESTDIR}${prefix}/include/ruby-${MAJOR}.${MINOR}.${TEENY}/${PLATFORM}
+ * ${DESTDIR}${prefix}/lib
+ * ${DESTDIR}${prefix}/lib/ruby
+ * ${DESTDIR}${prefix}/lib/ruby/${MAJOR}.${MINOR}.${TEENY}
+ * ${DESTDIR}${prefix}/lib/ruby/${MAJOR}.${MINOR}.${TEENY}/${PLATFORM}
+ * ${DESTDIR}${prefix}/lib/ruby/site_ruby
+ * ${DESTDIR}${prefix}/lib/ruby/site_ruby/${MAJOR}.${MINOR}.${TEENY}
+ * ${DESTDIR}${prefix}/lib/ruby/site_ruby/${MAJOR}.${MINOR}.${TEENY}/${PLATFORM}
+ * ${DESTDIR}${prefix}/lib/ruby/vendor_ruby
+ * ${DESTDIR}${prefix}/lib/ruby/vendor_ruby/${MAJOR}.${MINOR}.${TEENY}
+ * ${DESTDIR}${prefix}/lib/ruby/vendor_ruby/${MAJOR}.${MINOR}.${TEENY}/${PLATFORM}
+ * ${DESTDIR}${prefix}/lib/ruby/gems/${MAJOR}.${MINOR}.${TEENY}
+ * ${DESTDIR}${prefix}/share/man/man1
+ * ${DESTDIR}${prefix}/share/ri/${MAJOR}.${MINOR}.${TEENY}/system
+
+ Ruby¤ÎAPI¥Ð¡¼¥¸¥ç¥ó¤¬`x.y.z'¤Ç¤¢¤ì¤Ð¡¤((|${MAJOR}|))¤Ï
+ `x'¤Ç¡¤((|${MINOR}|))¤Ï`y'¡¤((|${TEENY}|))¤Ï`z'¤Ç¤¹¡¥
+
+ Ãí°Õ: API¥Ð¡¼¥¸¥ç¥ó¤Îteeny¤Ï¡¤Ruby¥×¥í¥°¥é¥à¤Î¥Ð¡¼¥¸¥ç
+ ¥ó¤È¤Ï°Û¤Ê¤ë¤³¤È¤¬¤¢¤ê¤Þ¤¹¡¥
+
root¤Çºî¶È¤¹¤ëɬÍפ¬¤¢¤ë¤«¤â¤·¤ì¤Þ¤»¤ó¡¥
¤â¤·¡¤¥³¥ó¥Ñ¥¤¥ë»þ¤Ë¥¨¥é¡¼¤¬È¯À¸¤·¤¿¾ì¹ç¤Ë¤Ï¥¨¥é¡¼¤Î¥í¥°¤È¥Þ
diff --git a/addr2line.c b/addr2line.c
new file mode 100644
index 0000000000..219d1d4b47
--- /dev/null
+++ b/addr2line.c
@@ -0,0 +1,610 @@
+/**********************************************************************
+
+ addr2line.h -
+
+ $Author$
+
+ Copyright (C) 2010 Shinichiro Hamaji
+
+**********************************************************************/
+
+#include "ruby/config.h"
+#include "addr2line.h"
+
+#include <stdio.h>
+#include <errno.h>
+
+#ifdef USE_ELF
+
+#ifdef __OpenBSD__
+#include <elf_abi.h>
+#else
+#include <elf.h>
+#endif
+#include <fcntl.h>
+#include <limits.h>
+#include <stdio.h>
+#include <stdlib.h>
+#include <string.h>
+#include <sys/mman.h>
+#include <sys/types.h>
+#include <sys/stat.h>
+#include <unistd.h>
+
+#if defined(HAVE_ALLOCA_H)
+#include <alloca.h>
+#endif
+
+#ifdef HAVE_DL_ITERATE_PHDR
+# ifndef _GNU_SOURCE
+# define _GNU_SOURCE
+# endif
+# include <link.h>
+#endif
+
+#define DW_LNS_copy 0x01
+#define DW_LNS_advance_pc 0x02
+#define DW_LNS_advance_line 0x03
+#define DW_LNS_set_file 0x04
+#define DW_LNS_set_column 0x05
+#define DW_LNS_negate_stmt 0x06
+#define DW_LNS_set_basic_block 0x07
+#define DW_LNS_const_add_pc 0x08
+#define DW_LNS_fixed_advance_pc 0x09
+#define DW_LNS_set_prologue_end 0x0a /* DWARF3 */
+#define DW_LNS_set_epilogue_begin 0x0b /* DWARF3 */
+#define DW_LNS_set_isa 0x0c /* DWARF3 */
+
+/* Line number extended opcode name. */
+#define DW_LNE_end_sequence 0x01
+#define DW_LNE_set_address 0x02
+#define DW_LNE_define_file 0x03
+#define DW_LNE_set_discriminator 0x04 /* DWARF4 */
+
+#ifndef ElfW
+# if SIZEOF_VOIDP == 8
+# define ElfW(x) Elf64##_##x
+# else
+# define ElfW(x) Elf32##_##x
+# endif
+#endif
+
+typedef struct {
+ const char *dirname;
+ const char *filename;
+ int line;
+
+ int fd;
+ void *mapped;
+ size_t mapped_size;
+ unsigned long base_addr;
+} line_info_t;
+
+/* Avoid consuming stack as this module may be used from signal handler */
+static char binary_filename[PATH_MAX];
+
+static unsigned long
+uleb128(char **p) {
+ unsigned long r = 0;
+ int s = 0;
+ for (;;) {
+ unsigned char b = *(unsigned char *)(*p)++;
+ if (b < 0x80) {
+ r += (unsigned long)b << s;
+ break;
+ }
+ r += (b & 0x7f) << s;
+ s += 7;
+ }
+ return r;
+}
+
+static long
+sleb128(char **p) {
+ long r = 0;
+ int s = 0;
+ for (;;) {
+ unsigned char b = *(unsigned char *)(*p)++;
+ if (b < 0x80) {
+ if (b & 0x40) {
+ r -= (0x80 - b) << s;
+ }
+ else {
+ r += (b & 0x3f) << s;
+ }
+ break;
+ }
+ r += (b & 0x7f) << s;
+ s += 7;
+ }
+ return r;
+}
+
+static const char *
+get_nth_dirname(unsigned long dir, char *p)
+{
+ if (!dir--) {
+ return "";
+ }
+ while (dir--) {
+ while (*p) p++;
+ p++;
+ if (!*p) {
+ fprintf(stderr, "Unexpected directory number %lu in %s\n",
+ dir, binary_filename);
+ return "";
+ }
+ }
+ return p;
+}
+
+static void
+fill_filename(int file, char *include_directories, char *filenames,
+ line_info_t *line)
+{
+ int i;
+ char *p = filenames;
+ char *filename;
+ unsigned long dir;
+ for (i = 1; i <= file; i++) {
+ filename = p;
+ if (!*p) {
+ /* Need to output binary file name? */
+ fprintf(stderr, "Unexpected file number %d in %s\n",
+ file, binary_filename);
+ return;
+ }
+ while (*p) p++;
+ p++;
+ dir = uleb128(&p);
+ /* last modified. */
+ uleb128(&p);
+ /* size of the file. */
+ uleb128(&p);
+
+ if (i == file) {
+ line->filename = filename;
+ line->dirname = get_nth_dirname(dir, include_directories);
+ }
+ }
+}
+
+static int
+get_path_from_symbol(const char *symbol, const char **p, size_t *len)
+{
+ if (symbol[0] == '0') {
+ /* libexecinfo */
+ *p = strchr(symbol, '/');
+ if (*p == NULL) return 0;
+ *len = strlen(*p);
+ }
+ else {
+ /* glibc */
+ const char *q;
+ *p = symbol;
+ q = strchr(symbol, '(');
+ if (q == NULL) return 0;
+ *len = q - symbol;
+ }
+ return 1;
+}
+
+static void
+fill_line(int num_traces, void **traces,
+ unsigned long addr, int file, int line,
+ char *include_directories, char *filenames, line_info_t *lines)
+{
+ int i;
+ for (i = 0; i < num_traces; i++) {
+ unsigned long a = (unsigned long)traces[i] - lines[i].base_addr;
+ /* We assume one line code doesn't result >100 bytes of native code.
+ We may want more reliable way eventually... */
+ if (addr < a && a < addr + 100) {
+ fill_filename(file, include_directories, filenames, &lines[i]);
+ lines[i].line = line;
+ }
+ }
+}
+
+static void
+parse_debug_line_cu(int num_traces, void **traces,
+ char **debug_line, line_info_t *lines)
+{
+ char *p, *cu_end, *cu_start, *include_directories, *filenames;
+ unsigned long unit_length;
+ int default_is_stmt, line_base;
+ unsigned int header_length, minimum_instruction_length, line_range,
+ opcode_base;
+ unsigned char *standard_opcode_lengths;
+
+ /* The registers. */
+ unsigned long addr = 0;
+ unsigned int file = 1;
+ unsigned int line = 1;
+ unsigned int column = 0;
+ int is_stmt;
+ int basic_block = 0;
+ int end_sequence = 0;
+ int prologue_end = 0;
+ int epilogue_begin = 0;
+ unsigned int isa = 0;
+
+ p = *debug_line;
+
+ unit_length = *(unsigned int *)p;
+ p += sizeof(unsigned int);
+ if (unit_length == 0xffffffff) {
+ unit_length = *(unsigned long *)p;
+ p += sizeof(unsigned long);
+ }
+
+ cu_end = p + unit_length;
+
+ /*dwarf_version = *(unsigned short *)p;*/
+ p += 2;
+
+ header_length = *(unsigned int *)p;
+ p += sizeof(unsigned int);
+
+ cu_start = p + header_length;
+
+ minimum_instruction_length = *(unsigned char *)p;
+ p++;
+
+ is_stmt = default_is_stmt = *(unsigned char *)p;
+ p++;
+
+ line_base = *(char *)p;
+ p++;
+
+ line_range = *(unsigned char *)p;
+ p++;
+
+ opcode_base = *(unsigned char *)p;
+ p++;
+
+ standard_opcode_lengths = (unsigned char *)p - 1;
+ p += opcode_base - 1;
+
+ include_directories = p;
+
+ /* skip include directories */
+ while (*p) {
+ while (*p) p++;
+ p++;
+ }
+ p++;
+
+ filenames = p;
+
+ p = cu_start;
+
+#define FILL_LINE() \
+ do { \
+ fill_line(num_traces, traces, addr, file, line, \
+ include_directories, filenames, lines); \
+ basic_block = prologue_end = epilogue_begin = 0; \
+ } while (0)
+
+ while (p < cu_end) {
+ unsigned long a;
+ unsigned char op = *p++;
+ switch (op) {
+ case DW_LNS_copy:
+ FILL_LINE();
+ break;
+ case DW_LNS_advance_pc:
+ a = uleb128(&p);
+ addr += a;
+ break;
+ case DW_LNS_advance_line: {
+ long a = sleb128(&p);
+ line += a;
+ break;
+ }
+ case DW_LNS_set_file:
+ file = (unsigned int)uleb128(&p);
+ break;
+ case DW_LNS_set_column:
+ column = (unsigned int)uleb128(&p);
+ break;
+ case DW_LNS_negate_stmt:
+ is_stmt = !is_stmt;
+ break;
+ case DW_LNS_set_basic_block:
+ basic_block = 1;
+ break;
+ case DW_LNS_const_add_pc:
+ a = ((255 - opcode_base) / line_range) *
+ minimum_instruction_length;
+ addr += a;
+ break;
+ case DW_LNS_fixed_advance_pc:
+ a = *(unsigned char *)p++;
+ addr += a;
+ break;
+ case DW_LNS_set_prologue_end:
+ prologue_end = 1;
+ break;
+ case DW_LNS_set_epilogue_begin:
+ epilogue_begin = 1;
+ break;
+ case DW_LNS_set_isa:
+ isa = (unsigned int)uleb128(&p);
+ break;
+ case 0:
+ a = *(unsigned char *)p++;
+ op = *p++;
+ switch (op) {
+ case DW_LNE_end_sequence:
+ end_sequence = 1;
+ FILL_LINE();
+ addr = 0;
+ file = 1;
+ line = 1;
+ column = 0;
+ is_stmt = default_is_stmt;
+ end_sequence = 0;
+ isa = 0;
+ break;
+ case DW_LNE_set_address:
+ addr = *(unsigned long *)p;
+ p += sizeof(unsigned long);
+ break;
+ case DW_LNE_define_file:
+ fprintf(stderr, "Unsupported operation in %s\n",
+ binary_filename);
+ break;
+ case DW_LNE_set_discriminator:
+ /* TODO:currently ignore */
+ uleb128(&p);
+ break;
+ default:
+ fprintf(stderr, "Unknown extended opcode: %d in %s\n",
+ op, binary_filename);
+ }
+ break;
+ default: {
+ unsigned long addr_incr;
+ unsigned long line_incr;
+ a = op - opcode_base;
+ addr_incr = (a / line_range) * minimum_instruction_length;
+ line_incr = line_base + (a % line_range);
+ addr += (unsigned int)addr_incr;
+ line += (unsigned int)line_incr;
+ FILL_LINE();
+ }
+ }
+ }
+ *debug_line = p;
+}
+
+static void
+parse_debug_line(int num_traces, void **traces,
+ char *debug_line, unsigned long size, line_info_t *lines)
+{
+ char *debug_line_end = debug_line + size;
+ while (debug_line < debug_line_end) {
+ parse_debug_line_cu(num_traces, traces, &debug_line, lines);
+ }
+ if (debug_line != debug_line_end) {
+ fprintf(stderr, "Unexpected size of .debug_line in %s\n",
+ binary_filename);
+ }
+}
+
+/* read file and fill lines */
+static void
+fill_lines(int num_traces, void **traces, char **syms, int check_debuglink,
+ line_info_t *current_line, line_info_t *lines);
+
+static void
+follow_debuglink(char *debuglink, int num_traces, void **traces, char **syms,
+ line_info_t *current_line, line_info_t *lines)
+{
+ /* Ideally we should check 4 paths to follow gnu_debuglink,
+ but we handle only one case for now as this format is used
+ by some linux distributions. See GDB's info for detail. */
+ static const char global_debug_dir[] = "/usr/lib/debug";
+ char *p, *subdir;
+
+ p = strrchr(binary_filename, '/');
+ if (!p) {
+ return;
+ }
+ p[1] = '\0';
+
+ subdir = (char *)alloca(strlen(binary_filename) + 1);
+ strcpy(subdir, binary_filename);
+ strcpy(binary_filename, global_debug_dir);
+ strncat(binary_filename, subdir,
+ PATH_MAX - strlen(binary_filename) - 1);
+ strncat(binary_filename, debuglink,
+ PATH_MAX - strlen(binary_filename) - 1);
+
+ munmap(current_line->mapped, current_line->mapped_size);
+ close(current_line->fd);
+ fill_lines(num_traces, traces, syms, 0, current_line, lines);
+}
+
+/* read file and fill lines */
+static void
+fill_lines(int num_traces, void **traces, char **syms, int check_debuglink,
+ line_info_t *current_line, line_info_t *lines)
+{
+ int i;
+ char *shstr;
+ char *section_name;
+ ElfW(Ehdr) *ehdr;
+ ElfW(Shdr) *shdr, *shstr_shdr;
+ ElfW(Shdr) *debug_line_shdr = NULL, *gnu_debuglink_shdr = NULL;
+ int fd;
+ off_t filesize;
+ char *file;
+
+ fd = open(binary_filename, O_RDONLY);
+ if (fd < 0) {
+ return;
+ }
+ filesize = lseek(fd, 0, SEEK_END);
+ if (filesize < 0) {
+ int e = errno;
+ close(fd);
+ fprintf(stderr, "lseek: %s\n", strerror(e));
+ return;
+ }
+ lseek(fd, 0, SEEK_SET);
+ /* async-signal unsafe */
+ file = (char *)mmap(NULL, filesize, PROT_READ, MAP_SHARED, fd, 0);
+ if (file == MAP_FAILED) {
+ int e = errno;
+ close(fd);
+ fprintf(stderr, "mmap: %s\n", strerror(e));
+ return;
+ }
+
+ current_line->fd = fd;
+ current_line->mapped = file;
+ current_line->mapped_size = filesize;
+
+ for (i = 0; i < num_traces; i++) {
+ const char *path;
+ size_t len;
+ if (get_path_from_symbol(syms[i], &path, &len) &&
+ !strncmp(path, binary_filename, len)) {
+ lines[i].line = -1;
+ }
+ }
+
+ ehdr = (ElfW(Ehdr) *)file;
+ shdr = (ElfW(Shdr) *)(file + ehdr->e_shoff);
+
+ shstr_shdr = shdr + ehdr->e_shstrndx;
+ shstr = file + shstr_shdr->sh_offset;
+
+ for (i = 0; i < ehdr->e_shnum; i++) {
+ section_name = shstr + shdr[i].sh_name;
+ if (!strcmp(section_name, ".debug_line")) {
+ debug_line_shdr = shdr + i;
+ break;
+ } else if (!strcmp(section_name, ".gnu_debuglink")) {
+ gnu_debuglink_shdr = shdr + i;
+ }
+ }
+
+ if (!debug_line_shdr) {
+ /* This file doesn't have .debug_line section,
+ let's check .gnu_debuglink section instead. */
+ if (gnu_debuglink_shdr && check_debuglink) {
+ follow_debuglink(file + gnu_debuglink_shdr->sh_offset,
+ num_traces, traces, syms,
+ current_line, lines);
+ }
+ return;
+ }
+
+ parse_debug_line(num_traces, traces,
+ file + debug_line_shdr->sh_offset,
+ debug_line_shdr->sh_size,
+ lines);
+}
+
+#ifdef HAVE_DL_ITERATE_PHDR
+
+typedef struct {
+ int num_traces;
+ char **syms;
+ line_info_t *lines;
+} fill_base_addr_state_t;
+
+static int
+fill_base_addr(struct dl_phdr_info *info, size_t size, void *data)
+{
+ int i;
+ fill_base_addr_state_t *st = (fill_base_addr_state_t *)data;
+ for (i = 0; i < st->num_traces; i++) {
+ const char *path;
+ size_t len;
+ size_t name_len = strlen(info->dlpi_name);
+
+ if (get_path_from_symbol(st->syms[i], &path, &len) &&
+ (len == name_len || (len > name_len && path[len-name_len-1] == '/')) &&
+ !strncmp(path+len-name_len, info->dlpi_name, name_len)) {
+ st->lines[i].base_addr = info->dlpi_addr;
+ }
+ }
+ return 0;
+}
+
+#endif /* HAVE_DL_ITERATE_PHDR */
+
+void
+rb_dump_backtrace_with_lines(int num_traces, void **trace, char **syms)
+{
+ int i;
+ /* async-signal unsafe */
+ line_info_t *lines = (line_info_t *)calloc(num_traces,
+ sizeof(line_info_t));
+
+ /* Note that line info of shared objects might not be shown
+ if we don't have dl_iterate_phdr */
+#ifdef HAVE_DL_ITERATE_PHDR
+ fill_base_addr_state_t fill_base_addr_state;
+
+ fill_base_addr_state.num_traces = num_traces;
+ fill_base_addr_state.syms = syms;
+ fill_base_addr_state.lines = lines;
+ /* maybe async-signal unsafe */
+ dl_iterate_phdr(fill_base_addr, &fill_base_addr_state);
+#endif /* HAVE_DL_ITERATE_PHDR */
+
+ for (i = 0; i < num_traces; i++) {
+ const char *path;
+ size_t len;
+ if (lines[i].line) {
+ continue;
+ }
+
+ if (!get_path_from_symbol(syms[i], &path, &len)) {
+ continue;
+ }
+
+ strncpy(binary_filename, path, len);
+ binary_filename[len] = '\0';
+
+ fill_lines(num_traces, trace, syms, 1, &lines[i], lines);
+ }
+
+ /* fprintf may not be async-signal safe */
+ for (i = 0; i < num_traces; i++) {
+ line_info_t *line = &lines[i];
+
+ if (line->line > 0) {
+ fprintf(stderr, "%s ", syms[i]);
+ if (line->filename) {
+ if (line->dirname && line->dirname[0]) {
+ fprintf(stderr, "%s/", line->dirname);
+ }
+ fprintf(stderr, "%s", line->filename);
+ } else {
+ fprintf(stderr, "???");
+ }
+ fprintf(stderr, ":%d\n", line->line);
+ } else {
+ fprintf(stderr, "%s\n", syms[i]);
+ }
+ }
+
+ for (i = 0; i < num_traces; i++) {
+ line_info_t *line = &lines[i];
+ if (line->fd) {
+ munmap(line->mapped, line->mapped_size);
+ close(line->fd);
+ }
+ }
+ free(lines);
+}
+
+#else /* defined(USE_ELF) */
+#error not supported
+#endif
diff --git a/addr2line.h b/addr2line.h
new file mode 100644
index 0000000000..3782d89e07
--- /dev/null
+++ b/addr2line.h
@@ -0,0 +1,21 @@
+/**********************************************************************
+
+ addr2line.h -
+
+ $Author$
+
+ Copyright (C) 2010 Shinichiro Hamaji
+
+**********************************************************************/
+
+#ifndef RUBY_ADDR2LINE_H
+#define RUBY_ADDR2LINE_H
+
+#ifdef USE_ELF
+
+void
+rb_dump_backtrace_with_lines(int num_traces, void **traces, char **syms);
+
+#endif /* USE_ELF */
+
+#endif /* RUBY_ADDR2LINE_H */
diff --git a/array.c b/array.c
index 1696171051..64647c3044 100644
--- a/array.c
+++ b/array.c
@@ -14,12 +14,16 @@
#include "ruby/ruby.h"
#include "ruby/util.h"
#include "ruby/st.h"
+#include "ruby/encoding.h"
+#include "internal.h"
#ifndef ARRAY_DEBUG
# define NDEBUG
#endif
#include <assert.h>
+#define numberof(array) (int)(sizeof(array) / sizeof((array)[0]))
+
VALUE rb_cArray;
static ID id_cmp;
@@ -44,11 +48,11 @@ memfill(register VALUE *mem, register long size, register VALUE val)
}
# define ARY_SHARED_P(ary) \
- (assert(!FL_TEST(ary, ELTS_SHARED) || !FL_TEST(ary, RARRAY_EMBED_FLAG)), \
- FL_TEST(ary,ELTS_SHARED)!=0)
+ (assert(!FL_TEST((ary), ELTS_SHARED) || !FL_TEST((ary), RARRAY_EMBED_FLAG)), \
+ FL_TEST((ary),ELTS_SHARED)!=0)
# define ARY_EMBED_P(ary) \
- (assert(!FL_TEST(ary, ELTS_SHARED) || !FL_TEST(ary, RARRAY_EMBED_FLAG)), \
- FL_TEST(ary, RARRAY_EMBED_FLAG)!=0)
+ (assert(!FL_TEST((ary), ELTS_SHARED) || !FL_TEST((ary), RARRAY_EMBED_FLAG)), \
+ FL_TEST((ary), RARRAY_EMBED_FLAG)!=0)
#define ARY_HEAP_PTR(a) (assert(!ARY_EMBED_P(a)), RARRAY(a)->as.heap.ptr)
#define ARY_HEAP_LEN(a) (assert(!ARY_EMBED_P(a)), RARRAY(a)->as.heap.len)
@@ -58,18 +62,18 @@ memfill(register VALUE *mem, register long size, register VALUE val)
(long)((RBASIC(a)->flags >> RARRAY_EMBED_LEN_SHIFT) & \
(RARRAY_EMBED_LEN_MASK >> RARRAY_EMBED_LEN_SHIFT)))
-#define ARY_OWNS_HEAP_P(a) (!FL_TEST(a, ELTS_SHARED|RARRAY_EMBED_FLAG))
+#define ARY_OWNS_HEAP_P(a) (!FL_TEST((a), ELTS_SHARED|RARRAY_EMBED_FLAG))
#define FL_SET_EMBED(a) do { \
assert(!ARY_SHARED_P(a)); \
assert(!OBJ_FROZEN(a)); \
- FL_SET(a, RARRAY_EMBED_FLAG); \
+ FL_SET((a), RARRAY_EMBED_FLAG); \
} while (0)
-#define FL_UNSET_EMBED(ary) FL_UNSET(ary, RARRAY_EMBED_FLAG|RARRAY_EMBED_LEN_MASK)
+#define FL_UNSET_EMBED(ary) FL_UNSET((ary), RARRAY_EMBED_FLAG|RARRAY_EMBED_LEN_MASK)
#define FL_SET_SHARED(ary) do { \
assert(!ARY_EMBED_P(ary)); \
- FL_SET(ary, ELTS_SHARED); \
+ FL_SET((ary), ELTS_SHARED); \
} while (0)
-#define FL_UNSET_SHARED(ary) FL_UNSET(ary, ELTS_SHARED)
+#define FL_UNSET_SHARED(ary) FL_UNSET((ary), ELTS_SHARED)
#define ARY_SET_PTR(ary, p) do { \
assert(!ARY_EMBED_P(ary)); \
@@ -77,7 +81,7 @@ memfill(register VALUE *mem, register long size, register VALUE val)
RARRAY(ary)->as.heap.ptr = (p); \
} while (0)
#define ARY_SET_EMBED_LEN(ary, n) do { \
- long tmp_n = n; \
+ long tmp_n = (n); \
assert(ARY_EMBED_P(ary)); \
assert(!OBJ_FROZEN(ary)); \
RBASIC(ary)->flags &= ~RARRAY_EMBED_LEN_MASK; \
@@ -85,29 +89,29 @@ memfill(register VALUE *mem, register long size, register VALUE val)
} while (0)
#define ARY_SET_HEAP_LEN(ary, n) do { \
assert(!ARY_EMBED_P(ary)); \
- RARRAY(ary)->as.heap.len = n; \
+ RARRAY(ary)->as.heap.len = (n); \
} while (0)
#define ARY_SET_LEN(ary, n) do { \
if (ARY_EMBED_P(ary)) { \
- ARY_SET_EMBED_LEN(ary, n); \
+ ARY_SET_EMBED_LEN((ary), (n)); \
} \
else { \
- ARY_SET_HEAP_LEN(ary, n); \
+ ARY_SET_HEAP_LEN((ary), (n)); \
} \
- assert(RARRAY_LEN(ary) == n); \
+ assert(RARRAY_LEN(ary) == (n)); \
} while (0)
#define ARY_INCREASE_PTR(ary, n) do { \
assert(!ARY_EMBED_P(ary)); \
assert(!OBJ_FROZEN(ary)); \
- RARRAY(ary)->as.heap.ptr += n; \
+ RARRAY(ary)->as.heap.ptr += (n); \
} while (0)
#define ARY_INCREASE_LEN(ary, n) do { \
assert(!OBJ_FROZEN(ary)); \
if (ARY_EMBED_P(ary)) { \
- ARY_SET_EMBED_LEN(ary, RARRAY_LEN(ary)+n); \
+ ARY_SET_EMBED_LEN((ary), RARRAY_LEN(ary)+(n)); \
} \
else { \
- RARRAY(ary)->as.heap.len += n; \
+ RARRAY(ary)->as.heap.len += (n); \
} \
} while (0)
@@ -128,7 +132,7 @@ memfill(register VALUE *mem, register long size, register VALUE val)
RARRAY(ary)->as.heap.aux.shared = (value); \
} while (0)
#define RARRAY_SHARED_ROOT_FLAG FL_USER5
-#define ARY_SHARED_ROOT_P(ary) (FL_TEST(ary, RARRAY_SHARED_ROOT_FLAG))
+#define ARY_SHARED_ROOT_P(ary) (FL_TEST((ary), RARRAY_SHARED_ROOT_FLAG))
#define ARY_SHARED_NUM(ary) \
(assert(ARY_SHARED_ROOT_P(ary)), RARRAY(ary)->as.heap.aux.capa)
#define ARY_SET_SHARED_NUM(ary, value) do { \
@@ -137,7 +141,7 @@ memfill(register VALUE *mem, register long size, register VALUE val)
} while (0)
#define FL_SET_SHARED_ROOT(ary) do { \
assert(!ARY_EMBED_P(ary)); \
- FL_SET(ary, RARRAY_SHARED_ROOT_FLAG); \
+ FL_SET((ary), RARRAY_SHARED_ROOT_FLAG); \
} while (0)
static void
@@ -240,12 +244,12 @@ rb_ary_set_shared(VALUE ary, VALUE shared)
static inline void
rb_ary_modify_check(VALUE ary)
{
- if (OBJ_FROZEN(ary)) rb_error_frozen("array");
+ rb_check_frozen(ary);
if (!OBJ_UNTRUSTED(ary) && rb_safe_level() >= 4)
rb_raise(rb_eSecurityError, "Insecure: can't modify array");
}
-static void
+void
rb_ary_modify(VALUE ary)
{
rb_ary_modify_check(ary);
@@ -278,7 +282,7 @@ rb_ary_freeze(VALUE ary)
/*
* call-seq:
- * array.frozen? -> true or false
+ * ary.frozen? -> true or false
*
* Return <code>true</code> if this array is frozen (or temporarily frozen
* while being sorted).
@@ -386,6 +390,17 @@ rb_ary_free(VALUE ary)
}
}
+RUBY_FUNC_EXPORTED size_t
+rb_ary_memsize(VALUE ary)
+{
+ if (ARY_OWNS_HEAP_P(ary)) {
+ return RARRAY(ary)->as.heap.aux.capa * sizeof(VALUE);
+ }
+ else {
+ return 0;
+ }
+}
+
static inline void
ary_discard(VALUE ary)
{
@@ -407,7 +422,7 @@ ary_make_shared(VALUE ary)
else if (OBJ_FROZEN(ary)) {
ary_resize_capa(ary, ARY_HEAP_LEN(ary));
FL_SET_SHARED_ROOT(ary);
- ARY_SET_SHARED_NUM(ary, 0);
+ ARY_SET_SHARED_NUM(ary, 1);
return ary;
}
else {
@@ -463,13 +478,13 @@ rb_check_array_type(VALUE ary)
* call-seq:
* Array.try_convert(obj) -> array or nil
*
- * Try to convert <i>obj</i> into an array, using to_ary method.
- * Returns converted array or nil if <i>obj</i> cannot be converted
- * for any reason. This method is to check if an argument is an
+ * Try to convert <i>obj</i> into an array, using +to_ary+ method.
+ * Returns converted array or +nil+ if <i>obj</i> cannot be converted
+ * for any reason. This method can be used to check if an argument is an
* array.
*
- * Array.try_convert([1]) # => [1]
- * Array.try_convert("1") # => nil
+ * Array.try_convert([1]) #=> [1]
+ * Array.try_convert("1") #=> nil
*
* if tmp = Array.try_convert(arg)
* # the argument is an array
@@ -605,8 +620,8 @@ rb_ary_store(VALUE ary, long idx, VALUE val)
if (idx < 0) {
idx += RARRAY_LEN(ary);
if (idx < 0) {
- rb_raise(rb_eIndexError, "index %ld out of array",
- idx - RARRAY_LEN(ary));
+ rb_raise(rb_eIndexError, "index %ld too small for array; minimum: %ld",
+ idx - RARRAY_LEN(ary), -RARRAY_LEN(ary));
}
}
else if (idx >= ARY_MAX_SIZE) {
@@ -689,9 +704,11 @@ ary_take_first_or_last(int argc, VALUE *argv, VALUE ary, enum ary_take_pos_flags
return ary_make_partial(ary, rb_cArray, offset, n);
}
+static VALUE rb_ary_push_1(VALUE ary, VALUE item);
+
/*
* call-seq:
- * array << obj -> array
+ * ary << obj -> ary
*
* Append---Pushes the given object on to the end of this array. This
* expression returns the array itself, so several appends
@@ -705,9 +722,15 @@ ary_take_first_or_last(int argc, VALUE *argv, VALUE ary, enum ary_take_pos_flags
VALUE
rb_ary_push(VALUE ary, VALUE item)
{
+ rb_ary_modify(ary);
+ return rb_ary_push_1(ary, item);
+}
+
+static VALUE
+rb_ary_push_1(VALUE ary, VALUE item)
+{
long idx = RARRAY_LEN(ary);
- rb_ary_modify(ary);
if (idx >= ARY_CAPA(ary)) {
ary_double_capa(ary, idx);
}
@@ -718,7 +741,7 @@ rb_ary_push(VALUE ary, VALUE item)
/*
* call-seq:
- * array.push(obj, ... ) -> array
+ * ary.push(obj, ... ) -> ary
*
* Append---Pushes the given object(s) on to the end of this array. This
* expression returns the array itself, so several appends
@@ -732,9 +755,9 @@ rb_ary_push(VALUE ary, VALUE item)
static VALUE
rb_ary_push_m(int argc, VALUE *argv, VALUE ary)
{
- rb_ary_modify_check(ary);
+ rb_ary_modify(ary);
while (argc--) {
- rb_ary_push(ary, *argv++);
+ rb_ary_push_1(ary, *argv++);
}
return ary;
}
@@ -758,10 +781,10 @@ rb_ary_pop(VALUE ary)
/*
* call-seq:
- * array.pop -> obj or nil
- * array.pop(n) -> array
+ * ary.pop -> obj or nil
+ * ary.pop(n) -> new_ary
*
- * Removes the last element from <i>self</i> and returns it, or
+ * Removes the last element from +self+ and returns it, or
* <code>nil</code> if the array is empty.
*
* If a number _n_ is given, returns an array of the last n elements
@@ -818,10 +841,10 @@ rb_ary_shift(VALUE ary)
/*
* call-seq:
- * array.shift -> obj or nil
- * array.shift(n) -> array
+ * ary.shift -> obj or nil
+ * ary.shift(n) -> new_ary
*
- * Returns the first element of <i>self</i> and removes it (shifting all
+ * Returns the first element of +self+ and removes it (shifting all
* other elements down by one). Returns <code>nil</code> if the array
* is empty.
*
@@ -866,10 +889,10 @@ rb_ary_shift_m(int argc, VALUE *argv, VALUE ary)
/*
* call-seq:
- * array.unshift(obj, ...) -> array
+ * ary.unshift(obj, ...) -> ary
*
- * Prepends objects to the front of <i>array</i>.
- * other elements up one.
+ * Prepends objects to the front of +self+,
+ * moving other elements upwards.
*
* a = [ "b", "c", "d" ]
* a.unshift("a") #=> ["a", "b", "c", "d"]
@@ -881,8 +904,8 @@ rb_ary_unshift_m(int argc, VALUE *argv, VALUE ary)
{
long len;
- if (argc == 0) return ary;
rb_ary_modify(ary);
+ if (argc == 0) return ary;
if (ARY_CAPA(ary) <= (len = RARRAY_LEN(ary)) + argc) {
ary_double_capa(ary, len + argc);
}
@@ -940,19 +963,19 @@ rb_ary_subseq(VALUE ary, long beg, long len)
/*
* call-seq:
- * array[index] -> obj or nil
- * array[start, length] -> an_array or nil
- * array[range] -> an_array or nil
- * array.slice(index) -> obj or nil
- * array.slice(start, length) -> an_array or nil
- * array.slice(range) -> an_array or nil
+ * ary[index] -> obj or nil
+ * ary[start, length] -> new_ary or nil
+ * ary[range] -> new_ary or nil
+ * ary.slice(index) -> obj or nil
+ * ary.slice(start, length) -> new_ary or nil
+ * ary.slice(range) -> new_ary or nil
*
* Element Reference---Returns the element at _index_,
* or returns a subarray starting at _start_ and
* continuing for _length_ elements, or returns a subarray
* specified by _range_.
* Negative indices count backward from the end of the
- * array (-1 is the last element). Returns nil if the index
+ * array (-1 is the last element). Returns +nil+ if the index
* (or starting index) are out of range.
*
* a = [ "a", "b", "c", "d", "e" ]
@@ -1006,10 +1029,10 @@ rb_ary_aref(int argc, VALUE *argv, VALUE ary)
/*
* call-seq:
- * array.at(index) -> obj or nil
+ * ary.at(index) -> obj or nil
*
* Returns the element at _index_. A
- * negative index counts from the end of _self_. Returns +nil+
+ * negative index counts from the end of +self+. Returns +nil+
* if the index is out of range. See also <code>Array#[]</code>.
*
* a = [ "a", "b", "c", "d", "e" ]
@@ -1025,8 +1048,8 @@ rb_ary_at(VALUE ary, VALUE pos)
/*
* call-seq:
- * array.first -> obj or nil
- * array.first(n) -> an_array
+ * ary.first -> obj or nil
+ * ary.first(n) -> new_ary
*
* Returns the first element, or the first +n+ elements, of the array.
* If the array is empty, the first form returns <code>nil</code>, and the
@@ -1051,10 +1074,10 @@ rb_ary_first(int argc, VALUE *argv, VALUE ary)
/*
* call-seq:
- * array.last -> obj or nil
- * array.last(n) -> an_array
+ * ary.last -> obj or nil
+ * ary.last(n) -> new_ary
*
- * Returns the last element(s) of <i>self</i>. If the array is empty,
+ * Returns the last element(s) of +self+. If the array is empty,
* the first form returns <code>nil</code>.
*
* a = [ "w", "x", "y", "z" ]
@@ -1076,9 +1099,9 @@ rb_ary_last(int argc, VALUE *argv, VALUE ary)
/*
* call-seq:
- * array.fetch(index) -> obj
- * array.fetch(index, default ) -> obj
- * array.fetch(index) {|index| block } -> obj
+ * ary.fetch(index) -> obj
+ * ary.fetch(index, default ) -> obj
+ * ary.fetch(index) {|index| block } -> obj
*
* Tries to return the element at position <i>index</i>. If the index
* lies outside the array, the first form throws an
@@ -1114,7 +1137,8 @@ rb_ary_fetch(int argc, VALUE *argv, VALUE ary)
if (idx < 0 || RARRAY_LEN(ary) <= idx) {
if (block_given) return rb_yield(pos);
if (argc == 1) {
- rb_raise(rb_eIndexError, "index %ld out of array", idx);
+ rb_raise(rb_eIndexError, "index %ld outside of array bounds: %ld...%ld",
+ idx - (idx < 0 ? RARRAY_LEN(ary) : 0), -RARRAY_LEN(ary), RARRAY_LEN(ary));
}
return ifnone;
}
@@ -1123,13 +1147,17 @@ rb_ary_fetch(int argc, VALUE *argv, VALUE ary)
/*
* call-seq:
- * array.index(obj) -> int or nil
- * array.index {|item| block} -> int or nil
+ * ary.index(obj) -> int or nil
+ * ary.index {|item| block} -> int or nil
+ * ary.index -> an_enumerator
*
- * Returns the index of the first object in <i>self</i> such that is
+ * Returns the index of the first object in +self+ such that the object is
* <code>==</code> to <i>obj</i>. If a block is given instead of an
- * argument, returns first object for which <em>block</em> is true.
+ * argument, returns index of first object for which <em>block</em> is true.
* Returns <code>nil</code> if no match is found.
+ * See also <code>Array#rindex</code>.
+ *
+ * If neither block nor argument is given, an enumerator is returned instead.
*
* a = [ "a", "b", "c" ]
* a.index("b") #=> 1
@@ -1166,12 +1194,18 @@ rb_ary_index(int argc, VALUE *argv, VALUE ary)
/*
* call-seq:
- * array.rindex(obj) -> int or nil
+ * ary.rindex(obj) -> int or nil
+ * ary.rindex {|item| block} -> int or nil
+ * ary.rindex -> an_enumerator
*
- * Returns the index of the last object in <i>array</i>
+ * Returns the index of the last object in +self+
* <code>==</code> to <i>obj</i>. If a block is given instead of an
- * argument, returns first object for which <em>block</em> is
- * true. Returns <code>nil</code> if no match is found.
+ * argument, returns index of first object for which <em>block</em> is
+ * true, starting from the last object.
+ * Returns <code>nil</code> if no match is found.
+ * See also <code>Array#index</code>.
+ *
+ * If neither block nor argument is given, an enumerator is returned instead.
*
* a = [ "a", "b", "b", "b", "c" ]
* a.rindex("b") #=> 3
@@ -1212,12 +1246,9 @@ rb_ary_rindex(int argc, VALUE *argv, VALUE ary)
VALUE
rb_ary_to_ary(VALUE obj)
{
- if (TYPE(obj) == T_ARRAY) {
- return obj;
- }
- if (rb_respond_to(obj, rb_intern("to_ary"))) {
- return to_ary(obj);
- }
+ VALUE tmp = rb_check_array_type(obj);
+
+ if (!NIL_P(tmp)) return tmp;
return rb_ary_new3(1, obj);
}
@@ -1230,8 +1261,8 @@ rb_ary_splice(VALUE ary, long beg, long len, VALUE rpl)
if (beg < 0) {
beg += RARRAY_LEN(ary);
if (beg < 0) {
- beg -= RARRAY_LEN(ary);
- rb_raise(rb_eIndexError, "index %ld out of array", beg);
+ rb_raise(rb_eIndexError, "index %ld too small for array; minimum: %ld",
+ beg - RARRAY_LEN(ary), -RARRAY_LEN(ary));
}
}
if (RARRAY_LEN(ary) < len || RARRAY_LEN(ary) < beg + len) {
@@ -1279,11 +1310,57 @@ rb_ary_splice(VALUE ary, long beg, long len, VALUE rpl)
}
}
+/*!
+ * expands or shrinks \a ary to \a len elements.
+ * expanded region will be filled with Qnil.
+ * \param ary an array
+ * \param len new size
+ * \return \a ary
+ * \post the size of \a ary is \a len.
+ */
+VALUE
+rb_ary_resize(VALUE ary, long len)
+{
+ long olen;
+
+ rb_ary_modify(ary);
+ olen = RARRAY_LEN(ary);
+ if (len == olen) return ary;
+ if (len > ARY_MAX_SIZE) {
+ rb_raise(rb_eIndexError, "index %ld too big", len);
+ }
+ if (len > olen) {
+ if (len >= ARY_CAPA(ary)) {
+ ary_double_capa(ary, len);
+ }
+ rb_mem_clear(RARRAY_PTR(ary) + olen, len - olen);
+ ARY_SET_LEN(ary, len);
+ }
+ else if (ARY_EMBED_P(ary)) {
+ ARY_SET_EMBED_LEN(ary, len);
+ }
+ else if (len <= RARRAY_EMBED_LEN_MAX) {
+ VALUE tmp[RARRAY_EMBED_LEN_MAX];
+ MEMCPY(tmp, ARY_HEAP_PTR(ary), VALUE, len);
+ ary_discard(ary);
+ MEMCPY(ARY_EMBED_PTR(ary), tmp, VALUE, len);
+ ARY_SET_EMBED_LEN(ary, len);
+ }
+ else {
+ if (olen > len + ARY_DEFAULT_SIZE) {
+ REALLOC_N(RARRAY(ary)->as.heap.ptr, VALUE, len);
+ ARY_SET_CAPA(ary, len);
+ }
+ ARY_SET_HEAP_LEN(ary, len);
+ }
+ return ary;
+}
+
/*
* call-seq:
- * array[index] = obj -> obj
- * array[start, length] = obj or an_array or nil -> obj or an_array or nil
- * array[range] = obj or an_array or nil -> obj or an_array or nil
+ * ary[index] = obj -> obj
+ * ary[start, length] = obj or other_ary or nil -> obj or other_ary or nil
+ * ary[range] = obj or other_ary or nil -> obj or other_ary or nil
*
* Element Assignment---Sets the element at _index_,
* or replaces a subarray starting at _start_ and
@@ -1313,6 +1390,7 @@ rb_ary_aset(int argc, VALUE *argv, VALUE ary)
long offset, beg, len;
if (argc == 3) {
+ rb_ary_modify_check(ary);
beg = NUM2LONG(argv[0]);
len = NUM2LONG(argv[1]);
rb_ary_splice(ary, beg, len, argv[2]);
@@ -1321,6 +1399,7 @@ rb_ary_aset(int argc, VALUE *argv, VALUE ary)
if (argc != 2) {
rb_raise(rb_eArgError, "wrong number of arguments (%d for 2)", argc);
}
+ rb_ary_modify_check(ary);
if (FIXNUM_P(argv[0])) {
offset = FIX2LONG(argv[0]);
goto fixnum;
@@ -1339,7 +1418,7 @@ fixnum:
/*
* call-seq:
- * array.insert(index, obj...) -> array
+ * ary.insert(index, obj...) -> ary
*
* Inserts the given values before the element with the given index
* (which may be negative).
@@ -1354,10 +1433,11 @@ rb_ary_insert(int argc, VALUE *argv, VALUE ary)
{
long pos;
- if (argc == 1) return ary;
if (argc < 1) {
rb_raise(rb_eArgError, "wrong number of arguments (at least 1)");
}
+ rb_ary_modify_check(ary);
+ if (argc == 1) return ary;
pos = NUM2LONG(argv[0]);
if (pos == -1) {
pos = RARRAY_LEN(ary);
@@ -1371,11 +1451,14 @@ rb_ary_insert(int argc, VALUE *argv, VALUE ary)
/*
* call-seq:
- * array.each {|item| block } -> array
+ * ary.each {|item| block } -> ary
+ * ary.each -> an_enumerator
*
- * Calls <i>block</i> once for each element in <i>self</i>, passing that
+ * Calls <i>block</i> once for each element in +self+, passing that
* element as a parameter.
*
+ * If no block is given, an enumerator is returned instead.
+ *
* a = [ "a", "b", "c" ]
* a.each {|x| print x, " -- " }
*
@@ -1385,9 +1468,10 @@ rb_ary_insert(int argc, VALUE *argv, VALUE ary)
*/
VALUE
-rb_ary_each(VALUE ary)
+rb_ary_each(VALUE array)
{
long i;
+ volatile VALUE ary = array;
RETURN_ENUMERATOR(ary, 0, 0);
for (i=0; i<RARRAY_LEN(ary); i++) {
@@ -1398,11 +1482,15 @@ rb_ary_each(VALUE ary)
/*
* call-seq:
- * array.each_index {|index| block } -> array
+ * ary.each_index {|index| block } -> ary
+ * ary.each_index -> an_enumerator
*
* Same as <code>Array#each</code>, but passes the index of the element
* instead of the element itself.
*
+ * If no block is given, an enumerator is returned instead.
+ *
+ *
* a = [ "a", "b", "c" ]
* a.each_index {|x| print x, " -- " }
*
@@ -1425,9 +1513,10 @@ rb_ary_each_index(VALUE ary)
/*
* call-seq:
- * array.reverse_each {|item| block }
+ * ary.reverse_each {|item| block } -> ary
+ * ary.reverse_each -> an_enumerator
*
- * Same as <code>Array#each</code>, but traverses <i>self</i> in reverse
+ * Same as <code>Array#each</code>, but traverses +self+ in reverse
* order.
*
* a = [ "a", "b", "c" ]
@@ -1456,9 +1545,9 @@ rb_ary_reverse_each(VALUE ary)
/*
* call-seq:
- * array.length -> int
+ * ary.length -> int
*
- * Returns the number of elements in <i>self</i>. May be zero.
+ * Returns the number of elements in +self+. May be zero.
*
* [ 1, 2, 3, 4, 5 ].length #=> 5
*/
@@ -1472,9 +1561,9 @@ rb_ary_length(VALUE ary)
/*
* call-seq:
- * array.empty? -> true or false
+ * ary.empty? -> true or false
*
- * Returns <code>true</code> if <i>self</i> array contains no elements.
+ * Returns <code>true</code> if +self+ contains no elements.
*
* [].empty? #=> true
*/
@@ -1491,12 +1580,8 @@ VALUE
rb_ary_dup(VALUE ary)
{
VALUE dup = rb_ary_new2(RARRAY_LEN(ary));
- int is_embed = ARY_EMBED_P(dup);
- DUPSETUP(dup, ary);
- if (is_embed) FL_SET_EMBED(dup);
MEMCPY(RARRAY_PTR(dup), RARRAY_PTR(ary), VALUE, RARRAY_LEN(ary));
ARY_SET_LEN(dup, RARRAY_LEN(ary));
-
return dup;
}
@@ -1508,72 +1593,143 @@ rb_ary_resurrect(VALUE ary)
extern VALUE rb_output_fs;
+static void ary_join_1(VALUE obj, VALUE ary, VALUE sep, long i, VALUE result, int *first);
+
static VALUE
-recursive_join(VALUE ary, VALUE argp, int recur)
+recursive_join(VALUE obj, VALUE argp, int recur)
{
VALUE *arg = (VALUE *)argp;
+ VALUE ary = arg[0];
+ VALUE sep = arg[1];
+ VALUE result = arg[2];
+ int *first = (int *)arg[3];
+
if (recur) {
- return rb_usascii_str_new2("[...]");
+ rb_raise(rb_eArgError, "recursive array join");
+ }
+ else {
+ ary_join_1(obj, ary, sep, 0, result, first);
}
- return rb_ary_join(arg[0], arg[1]);
+ return Qnil;
}
-VALUE
-rb_ary_join(VALUE ary, VALUE sep)
+static void
+ary_join_0(VALUE ary, VALUE sep, long max, VALUE result)
{
- long len = 1, i;
- int taint = Qfalse;
- int untrust = Qfalse;
- VALUE result, tmp;
-
- if (RARRAY_LEN(ary) == 0) return rb_str_new(0, 0);
- if (OBJ_TAINTED(ary) || OBJ_TAINTED(sep)) taint = Qtrue;
- if (OBJ_UNTRUSTED(ary) || OBJ_UNTRUSTED(sep)) untrust = Qtrue;
+ long i;
+ VALUE val;
- for (i=0; i<RARRAY_LEN(ary); i++) {
- tmp = rb_check_string_type(RARRAY_PTR(ary)[i]);
- len += NIL_P(tmp) ? 10 : RSTRING_LEN(tmp);
- }
- if (!NIL_P(sep)) {
- StringValue(sep);
- len += RSTRING_LEN(sep) * (RARRAY_LEN(ary) - 1);
+ if (max > 0) rb_enc_copy(result, RARRAY_PTR(ary)[0]);
+ for (i=0; i<max; i++) {
+ val = RARRAY_PTR(ary)[i];
+ if (i > 0 && !NIL_P(sep))
+ rb_str_buf_append(result, sep);
+ rb_str_buf_append(result, val);
+ if (OBJ_TAINTED(val)) OBJ_TAINT(result);
+ if (OBJ_UNTRUSTED(val)) OBJ_TAINT(result);
}
- result = rb_str_buf_new(len);
- for (i=0; i<RARRAY_LEN(ary); i++) {
- tmp = RARRAY_PTR(ary)[i];
- switch (TYPE(tmp)) {
+}
+
+static void
+ary_join_1(VALUE obj, VALUE ary, VALUE sep, long i, VALUE result, int *first)
+{
+ VALUE val, tmp;
+
+ for (; i<RARRAY_LEN(ary); i++) {
+ if (i > 0 && !NIL_P(sep))
+ rb_str_buf_append(result, sep);
+
+ val = RARRAY_PTR(ary)[i];
+ switch (TYPE(val)) {
case T_STRING:
+ str_join:
+ rb_str_buf_append(result, val);
+ *first = FALSE;
break;
case T_ARRAY:
- if (tmp == ary) {
- tmp = rb_usascii_str_new2("[...]");
+ obj = val;
+ ary_join:
+ if (val == ary) {
+ rb_raise(rb_eArgError, "recursive array join");
}
else {
- VALUE args[2];
+ VALUE args[4];
- args[0] = tmp;
+ args[0] = val;
args[1] = sep;
- tmp = rb_exec_recursive(recursive_join, ary, (VALUE)args);
+ args[2] = result;
+ args[3] = (VALUE)first;
+ rb_exec_recursive(recursive_join, obj, (VALUE)args);
}
break;
default:
- tmp = rb_obj_as_string(tmp);
+ tmp = rb_check_string_type(val);
+ if (!NIL_P(tmp)) {
+ val = tmp;
+ goto str_join;
+ }
+ tmp = rb_check_convert_type(val, T_ARRAY, "Array", "to_ary");
+ if (!NIL_P(tmp)) {
+ obj = val;
+ val = tmp;
+ goto ary_join;
+ }
+ val = rb_obj_as_string(val);
+ if (*first) {
+ rb_enc_copy(result, val);
+ *first = FALSE;
+ }
+ goto str_join;
}
- if (i > 0 && !NIL_P(sep))
- rb_str_buf_append(result, sep);
- rb_str_buf_append(result, tmp);
- if (OBJ_TAINTED(tmp)) taint = Qtrue;
- if (OBJ_UNTRUSTED(tmp)) untrust = Qtrue;
+ }
+}
+
+VALUE
+rb_ary_join(VALUE ary, VALUE sep)
+{
+ long len = 1, i;
+ int taint = FALSE;
+ int untrust = FALSE;
+ VALUE val, tmp, result;
+
+ if (RARRAY_LEN(ary) == 0) return rb_usascii_str_new(0, 0);
+ if (OBJ_TAINTED(ary) || OBJ_TAINTED(sep)) taint = TRUE;
+ if (OBJ_UNTRUSTED(ary) || OBJ_UNTRUSTED(sep)) untrust = TRUE;
+
+ if (!NIL_P(sep)) {
+ StringValue(sep);
+ len += RSTRING_LEN(sep) * (RARRAY_LEN(ary) - 1);
+ }
+ for (i=0; i<RARRAY_LEN(ary); i++) {
+ val = RARRAY_PTR(ary)[i];
+ tmp = rb_check_string_type(val);
+
+ if (NIL_P(tmp) || tmp != val) {
+ int first;
+ result = rb_str_buf_new(len + (RARRAY_LEN(ary)-i)*10);
+ rb_enc_associate(result, rb_usascii_encoding());
+ if (taint) OBJ_TAINT(result);
+ if (untrust) OBJ_UNTRUST(result);
+ ary_join_0(ary, sep, i, result);
+ first = i == 0;
+ ary_join_1(ary, ary, sep, i, result, &first);
+ return result;
+ }
+
+ len += RSTRING_LEN(tmp);
}
+ result = rb_str_buf_new(len);
if (taint) OBJ_TAINT(result);
if (untrust) OBJ_UNTRUST(result);
+ ary_join_0(ary, sep, RARRAY_LEN(ary), result);
+
return result;
}
/*
* call-seq:
- * array.join(sep=$,) -> str
+ * ary.join(sep=$,) -> str
*
* Returns a string created by converting each element of the array to
* a string, separated by <i>sep</i>.
@@ -1601,13 +1757,14 @@ inspect_ary(VALUE ary, VALUE dummy, int recur)
long i;
VALUE s, str;
- if (recur) return rb_tainted_str_new2("[...]");
+ if (recur) return rb_usascii_str_new_cstr("[...]");
str = rb_str_buf_new2("[");
for (i=0; i<RARRAY_LEN(ary); i++) {
s = rb_inspect(RARRAY_PTR(ary)[i]);
- if (OBJ_TAINTED(s)) tainted = Qtrue;
- if (OBJ_UNTRUSTED(s)) untrust = Qtrue;
+ if (OBJ_TAINTED(s)) tainted = TRUE;
+ if (OBJ_UNTRUSTED(s)) untrust = TRUE;
if (i > 0) rb_str_buf_cat2(str, ", ");
+ else rb_enc_copy(str, s);
rb_str_buf_append(str, s);
}
rb_str_buf_cat2(str, "]");
@@ -1618,10 +1775,10 @@ inspect_ary(VALUE ary, VALUE dummy, int recur)
/*
* call-seq:
- * array.to_s -> string
- * array.inspect -> string
+ * ary.to_s -> string
+ * ary.inspect -> string
*
- * Create a printable version of <i>array</i>.
+ * Creates a string representation of +self+.
*/
static VALUE
@@ -1639,9 +1796,9 @@ rb_ary_to_s(VALUE ary)
/*
* call-seq:
- * array.to_a -> array
+ * ary.to_a -> ary
*
- * Returns _self_. If called on a subclass of Array, converts
+ * Returns +self+. If called on a subclass of Array, converts
* the receiver to an Array object.
*/
@@ -1658,9 +1815,9 @@ rb_ary_to_a(VALUE ary)
/*
* call-seq:
- * array.to_ary -> array
+ * ary.to_ary -> ary
*
- * Returns _self_.
+ * Returns +self+.
*/
static VALUE
@@ -1669,31 +1826,36 @@ rb_ary_to_ary_m(VALUE ary)
return ary;
}
+static void
+ary_reverse(p1, p2)
+ VALUE *p1, *p2;
+{
+ while (p1 < p2) {
+ VALUE tmp = *p1;
+ *p1++ = *p2;
+ *p2-- = tmp;
+ }
+}
+
VALUE
rb_ary_reverse(VALUE ary)
{
VALUE *p1, *p2;
- VALUE tmp;
rb_ary_modify(ary);
if (RARRAY_LEN(ary) > 1) {
p1 = RARRAY_PTR(ary);
p2 = p1 + RARRAY_LEN(ary) - 1; /* points last item */
-
- while (p1 < p2) {
- tmp = *p1;
- *p1++ = *p2;
- *p2-- = tmp;
- }
+ ary_reverse(p1, p2);
}
return ary;
}
/*
* call-seq:
- * array.reverse! -> array
+ * ary.reverse! -> ary
*
- * Reverses _self_ in place.
+ * Reverses +self+ in place.
*
* a = [ "a", "b", "c" ]
* a.reverse! #=> ["c", "b", "a"]
@@ -1708,9 +1870,9 @@ rb_ary_reverse_bang(VALUE ary)
/*
* call-seq:
- * array.reverse -> an_array
+ * ary.reverse -> new_ary
*
- * Returns a new array containing <i>self</i>'s elements in reverse order.
+ * Returns a new array containing +self+'s elements in reverse order.
*
* [ "a", "b", "c" ].reverse #=> ["c", "b", "a"]
* [ 1 ].reverse #=> [1]
@@ -1719,7 +1881,113 @@ rb_ary_reverse_bang(VALUE ary)
static VALUE
rb_ary_reverse_m(VALUE ary)
{
- return rb_ary_reverse(rb_ary_dup(ary));
+ long len = RARRAY_LEN(ary);
+ VALUE dup = rb_ary_new2(len);
+
+ if (len > 0) {
+ VALUE *p1 = RARRAY_PTR(ary);
+ VALUE *p2 = RARRAY_PTR(dup) + len - 1;
+ do *p2-- = *p1++; while (--len > 0);
+ }
+ ARY_SET_LEN(dup, RARRAY_LEN(ary));
+ return dup;
+}
+
+static inline long
+rotate_count(long cnt, long len)
+{
+ return (cnt < 0) ? (len - (~cnt % len) - 1) : (cnt % len);
+}
+
+VALUE
+rb_ary_rotate(VALUE ary, long cnt)
+{
+ rb_ary_modify(ary);
+
+ if (cnt != 0) {
+ VALUE *ptr = RARRAY_PTR(ary);
+ long len = RARRAY_LEN(ary);
+
+ if (len > 0 && (cnt = rotate_count(cnt, len)) > 0) {
+ --len;
+ if (cnt < len) ary_reverse(ptr + cnt, ptr + len);
+ if (--cnt > 0) ary_reverse(ptr, ptr + cnt);
+ if (len > 0) ary_reverse(ptr, ptr + len);
+ return ary;
+ }
+ }
+
+ return Qnil;
+}
+
+/*
+ * call-seq:
+ * ary.rotate!(cnt=1) -> ary
+ *
+ * Rotates +self+ in place so that the element at +cnt+ comes first,
+ * and returns +self+. If +cnt+ is negative then it rotates in
+ * the opposite direction.
+ *
+ * a = [ "a", "b", "c", "d" ]
+ * a.rotate! #=> ["b", "c", "d", "a"]
+ * a #=> ["b", "c", "d", "a"]
+ * a.rotate!(2) #=> ["d", "a", "b", "c"]
+ * a.rotate!(-3) #=> ["a", "b", "c", "d"]
+ */
+
+static VALUE
+rb_ary_rotate_bang(int argc, VALUE *argv, VALUE ary)
+{
+ long n = 1;
+
+ switch (argc) {
+ case 1: n = NUM2LONG(argv[0]);
+ case 0: break;
+ default: rb_scan_args(argc, argv, "01", NULL);
+ }
+ rb_ary_rotate(ary, n);
+ return ary;
+}
+
+/*
+ * call-seq:
+ * ary.rotate(cnt=1) -> new_ary
+ *
+ * Returns new array by rotating +self+ so that the element at
+ * +cnt+ in +self+ is the first element of the new array. If +cnt+
+ * is negative then it rotates in the opposite direction.
+ *
+ * a = [ "a", "b", "c", "d" ]
+ * a.rotate #=> ["b", "c", "d", "a"]
+ * a #=> ["a", "b", "c", "d"]
+ * a.rotate(2) #=> ["c", "d", "a", "b"]
+ * a.rotate(-3) #=> ["b", "c", "d", "a"]
+ */
+
+static VALUE
+rb_ary_rotate_m(int argc, VALUE *argv, VALUE ary)
+{
+ VALUE rotated, *ptr, *ptr2;
+ long len, cnt = 1;
+
+ switch (argc) {
+ case 1: cnt = NUM2LONG(argv[0]);
+ case 0: break;
+ default: rb_scan_args(argc, argv, "01", NULL);
+ }
+
+ len = RARRAY_LEN(ary);
+ rotated = rb_ary_new2(len);
+ if (len > 0) {
+ cnt = rotate_count(cnt, len);
+ ptr = RARRAY_PTR(ary);
+ ptr2 = RARRAY_PTR(rotated);
+ len -= cnt;
+ MEMCPY(ptr2, ptr + cnt, VALUE, len);
+ MEMCPY(ptr2 + len, ptr, VALUE, cnt);
+ }
+ ARY_SET_LEN(rotated, RARRAY_LEN(ary));
+ return rotated;
}
struct ary_sort_data {
@@ -1738,11 +2006,11 @@ enum {
#define SORT_OPTIMIZABLE_BIT(type) (1U << TOKEN_PASTE(sort_opt_,type))
#define SORT_OPTIMIZABLE(data, type) \
- ((data->opt_inited & SORT_OPTIMIZABLE_BIT(type)) ? \
- (data->opt_methods & SORT_OPTIMIZABLE_BIT(type)) : \
- ((data->opt_inited |= SORT_OPTIMIZABLE_BIT(type)), \
+ (((data)->opt_inited & SORT_OPTIMIZABLE_BIT(type)) ? \
+ ((data)->opt_methods & SORT_OPTIMIZABLE_BIT(type)) : \
+ (((data)->opt_inited |= SORT_OPTIMIZABLE_BIT(type)), \
rb_method_basic_definition_p(TOKEN_PASTE(rb_c,type), id_cmp) && \
- (data->opt_methods |= SORT_OPTIMIZABLE_BIT(type))))
+ ((data)->opt_methods |= SORT_OPTIMIZABLE_BIT(type))))
static VALUE
sort_reentered(VALUE ary)
@@ -1793,18 +2061,18 @@ sort_2(const void *ap, const void *bp, void *dummy)
/*
* call-seq:
- * array.sort! -> array
- * array.sort! {| a,b | block } -> array
+ * ary.sort! -> ary
+ * ary.sort! {| a,b | block } -> ary
*
- * Sorts _self_. Comparisons for
+ * Sorts +self+. Comparisons for
* the sort will be done using the <code><=></code> operator or using
* an optional code block. The block implements a comparison between
* <i>a</i> and <i>b</i>, returning -1, 0, or +1. See also
* <code>Enumerable#sort_by</code>.
*
* a = [ "d", "a", "e", "c", "b" ]
- * a.sort #=> ["a", "b", "c", "d", "e"]
- * a.sort {|x,y| y <=> x } #=> ["e", "d", "c", "b", "a"]
+ * a.sort! #=> ["a", "b", "c", "d", "e"]
+ * a.sort! {|x,y| y <=> x } #=> ["e", "d", "c", "b", "a"]
*/
VALUE
@@ -1869,10 +2137,10 @@ rb_ary_sort_bang(VALUE ary)
/*
* call-seq:
- * array.sort -> an_array
- * array.sort {| a,b | block } -> an_array
+ * ary.sort -> new_ary
+ * ary.sort {| a,b | block } -> new_ary
*
- * Returns a new array created by sorting <i>self</i>. Comparisons for
+ * Returns a new array created by sorting +self+. Comparisons for
* the sort will be done using the <code><=></code> operator or using
* an optional code block. The block implements a comparison between
* <i>a</i> and <i>b</i>, returning -1, 0, or +1. See also
@@ -1900,10 +2168,14 @@ sort_by_i(VALUE i)
/*
* call-seq:
- * array.sort_by! {| obj | block } -> array
+ * ary.sort_by! {| obj | block } -> ary
+ * ary.sort_by! -> an_enumerator
+ *
+ * Sorts +self+ in place using a set of keys generated by mapping the
+ * values in +self+ through the given block.
+ *
+ * If no block is given, an enumerator is returned instead.
*
- * Sorts <i>array</i> in place using a set of keys generated by mapping the
- * values in <i>array</i> through the given block.
*/
static VALUE
@@ -1921,13 +2193,17 @@ rb_ary_sort_by_bang(VALUE ary)
/*
* call-seq:
- * array.collect {|item| block } -> an_array
- * array.map {|item| block } -> an_array
+ * ary.collect {|item| block } -> new_ary
+ * ary.map {|item| block } -> new_ary
+ * ary.collect -> an_enumerator
+ * ary.map -> an_enumerator
*
- * Invokes <i>block</i> once for each element of <i>self</i>. Creates a
+ * Invokes <i>block</i> once for each element of +self+. Creates a
* new array containing the values returned by the block.
* See also <code>Enumerable#collect</code>.
*
+ * If no block is given, an enumerator is returned instead.
+ *
* a = [ "a", "b", "c", "d" ]
* a.collect {|x| x + "!" } #=> ["a!", "b!", "c!", "d!"]
* a #=> ["a", "b", "c", "d"]
@@ -1950,13 +2226,17 @@ rb_ary_collect(VALUE ary)
/*
* call-seq:
- * array.collect! {|item| block } -> array
- * array.map! {|item| block } -> array
+ * ary.collect! {|item| block } -> ary
+ * ary.map! {|item| block } -> ary
+ * ary.collect -> an_enumerator
+ * ary.map -> an_enumerator
*
- * Invokes the block once for each element of _self_, replacing the
+ * Invokes the block once for each element of +self+, replacing the
* element with the value returned by _block_.
* See also <code>Enumerable#collect</code>.
*
+ * If no block is given, an enumerator is returned instead.
+ *
* a = [ "a", "b", "c", "d" ]
* a.collect! {|x| x + "!" }
* a #=> [ "a!", "b!", "c!", "d!" ]
@@ -2005,10 +2285,10 @@ rb_get_values_at(VALUE obj, long olen, int argc, VALUE *argv, VALUE (*func) (VAL
/*
* call-seq:
- * array.values_at(selector,... ) -> an_array
+ * ary.values_at(selector,... ) -> new_ary
*
* Returns an array containing the elements in
- * _self_ corresponding to the given selector(s). The selectors
+ * +self+ corresponding to the given selector(s). The selectors
* may be either integer indices or ranges.
* See also <code>Array#select</code>.
*
@@ -2028,12 +2308,15 @@ rb_ary_values_at(int argc, VALUE *argv, VALUE ary)
/*
* call-seq:
- * array.select {|item| block } -> an_array
+ * ary.select {|item| block } -> new_ary
+ * ary.select -> an_enumerator
*
- * Invokes the block passing in successive elements from <i>array</i>,
+ * Invokes the block passing in successive elements from +self+,
* returning an array containing those elements for which the block
* returns a true value (equivalent to <code>Enumerable#select</code>).
*
+ * If no block is given, an enumerator is returned instead.
+ *
* a = %w{ a b c d e f }
* a.select {|v| v =~ /[aeiou]/} #=> ["a", "e"]
*/
@@ -2056,13 +2339,75 @@ rb_ary_select(VALUE ary)
/*
* call-seq:
- * array.delete(obj) -> obj or nil
- * array.delete(obj) { block } -> obj or nil
+ * ary.select! {|item| block } -> ary or nil
+ * ary.select! -> an_enumerator
+ *
+ * Invokes the block passing in successive elements from
+ * +self+, deleting elements for which the block returns a
+ * false value. It returns +self+ if changes were made,
+ * otherwise it returns <code>nil</code>.
+ * See also <code>Array#keep_if</code>
*
- * Deletes items from <i>self</i> that are equal to <i>obj</i>. If
+ * If no block is given, an enumerator is returned instead.
+ *
+ */
+
+static VALUE
+rb_ary_select_bang(VALUE ary)
+{
+ long i1, i2;
+
+ RETURN_ENUMERATOR(ary, 0, 0);
+ rb_ary_modify(ary);
+ for (i1 = i2 = 0; i1 < RARRAY_LEN(ary); i1++) {
+ VALUE v = RARRAY_PTR(ary)[i1];
+ if (!RTEST(rb_yield(v))) continue;
+ if (i1 != i2) {
+ rb_ary_store(ary, i2, v);
+ }
+ i2++;
+ }
+
+ if (RARRAY_LEN(ary) == i2) return Qnil;
+ if (i2 < RARRAY_LEN(ary))
+ ARY_SET_LEN(ary, i2);
+ return ary;
+}
+
+/*
+ * call-seq:
+ * ary.keep_if {|item| block } -> ary
+ * ary.keep_if -> an_enumerator
+ *
+ * Deletes every element of +self+ for which <i>block</i> evaluates
+ * to false.
+ * See also <code>Array#select!</code>
+ *
+ * If no block is given, an enumerator is returned instead.
+ *
+ * a = %w{ a b c d e f }
+ * a.keep_if {|v| v =~ /[aeiou]/} #=> ["a", "e"]
+ */
+
+static VALUE
+rb_ary_keep_if(VALUE ary)
+{
+ RETURN_ENUMERATOR(ary, 0, 0);
+ rb_ary_select_bang(ary);
+ return ary;
+}
+
+/*
+ * call-seq:
+ * ary.delete(obj) -> obj or nil
+ * ary.delete(obj) { block } -> obj or nil
+ *
+ * Deletes items from +self+ that are equal to <i>obj</i>.
+ * If any items are found, returns <i>obj</i>. If
* the item is not found, returns <code>nil</code>. If the optional
* code block is given, returns the result of <i>block</i> if the item
- * is not found.
+ * is not found. (To remove <code>nil</code> elements and
+ * get an informative return value, use #compact!)
*
* a = [ "a", "b", "b", "b", "c" ]
* a.delete("b") #=> "b"
@@ -2131,7 +2476,7 @@ rb_ary_delete_at(VALUE ary, long pos)
/*
* call-seq:
- * array.delete_at(index) -> obj or nil
+ * ary.delete_at(index) -> obj or nil
*
* Deletes the element at the specified index, returning that element,
* or <code>nil</code> if the index is out of range. See also
@@ -2151,12 +2496,12 @@ rb_ary_delete_at_m(VALUE ary, VALUE pos)
/*
* call-seq:
- * array.slice!(index) -> obj or nil
- * array.slice!(start, length) -> sub_array or nil
- * array.slice!(range) -> sub_array or nil
+ * ary.slice!(index) -> obj or nil
+ * ary.slice!(start, length) -> new_ary or nil
+ * ary.slice!(range) -> new_ary or nil
*
* Deletes the element(s) given by an index (optionally with a length)
- * or by a range. Returns the deleted object, subarray, or
+ * or by a range. Returns the deleted object (or objects), or
* <code>nil</code> if the index is out of range.
*
* a = [ "a", "b", "c" ]
@@ -2175,9 +2520,9 @@ rb_ary_slice_bang(int argc, VALUE *argv, VALUE ary)
long pos, len, orig_len;
rb_ary_modify_check(ary);
- if (rb_scan_args(argc, argv, "11", &arg1, &arg2) == 2) {
- pos = NUM2LONG(arg1);
- len = NUM2LONG(arg2);
+ if (argc == 2) {
+ pos = NUM2LONG(argv[0]);
+ len = NUM2LONG(argv[1]);
delete_pos_len:
if (len < 0) return Qnil;
orig_len = RARRAY_LEN(ary);
@@ -2196,6 +2541,12 @@ rb_ary_slice_bang(int argc, VALUE *argv, VALUE ary)
return arg2;
}
+ if (argc != 1) {
+ /* error report */
+ rb_scan_args(argc, argv, "11", NULL, NULL);
+ }
+ arg1 = argv[0];
+
if (!FIXNUM_P(arg1)) {
switch (rb_range_beg_len(arg1, &pos, &len, RARRAY_LEN(ary), 0)) {
case Qtrue:
@@ -2213,61 +2564,99 @@ rb_ary_slice_bang(int argc, VALUE *argv, VALUE ary)
return rb_ary_delete_at(ary, NUM2LONG(arg1));
}
+static VALUE
+ary_reject(VALUE orig, VALUE result)
+{
+ long i;
+
+ for (i = 0; i < RARRAY_LEN(orig); i++) {
+ VALUE v = RARRAY_PTR(orig)[i];
+ if (!RTEST(rb_yield(v))) {
+ rb_ary_push_1(result, v);
+ }
+ }
+ return result;
+}
+
+static VALUE
+ary_reject_bang(VALUE ary)
+{
+ long i;
+ VALUE result = Qnil;
+
+ rb_ary_modify_check(ary);
+ for (i = 0; i < RARRAY_LEN(ary); ) {
+ VALUE v = RARRAY_PTR(ary)[i];
+ if (RTEST(rb_yield(v))) {
+ rb_ary_delete_at(ary, i);
+ result = ary;
+ }
+ else {
+ i++;
+ }
+ }
+ return result;
+}
+
/*
* call-seq:
- * array.reject! {|item| block } -> array or nil
+ * ary.reject! {|item| block } -> ary or nil
+ * ary.reject! -> an_enumerator
*
* Equivalent to <code>Array#delete_if</code>, deleting elements from
- * _self_ for which the block evaluates to true, but returns
- * <code>nil</code> if no changes were made. Also see
- * <code>Enumerable#reject</code>.
+ * +self+ for which the block evaluates to true, but returns
+ * <code>nil</code> if no changes were made.
+ * The array is changed instantly every time the block is called and
+ * not after the iteration is over.
+ * See also <code>Enumerable#reject</code> and <code>Array#delete_if</code>.
+ *
+ * If no block is given, an enumerator is returned instead.
+ *
*/
static VALUE
rb_ary_reject_bang(VALUE ary)
{
- long i1, i2;
-
RETURN_ENUMERATOR(ary, 0, 0);
- rb_ary_modify(ary);
- for (i1 = i2 = 0; i1 < RARRAY_LEN(ary); i1++) {
- VALUE v = RARRAY_PTR(ary)[i1];
- if (RTEST(rb_yield(v))) continue;
- if (i1 != i2) {
- rb_ary_store(ary, i2, v);
- }
- i2++;
- }
-
- if (RARRAY_LEN(ary) == i2) return Qnil;
- if (i2 < RARRAY_LEN(ary))
- ARY_SET_LEN(ary, i2);
- return ary;
+ return ary_reject_bang(ary);
}
/*
* call-seq:
- * array.reject {|item| block } -> an_array
+ * ary.reject {|item| block } -> new_ary
+ * ary.reject -> an_enumerator
*
- * Returns a new array containing the items in _self_
+ * Returns a new array containing the items in +self+
* for which the block is not true.
+ * See also <code>Array#delete_if</code>
+ *
+ * If no block is given, an enumerator is returned instead.
+ *
*/
static VALUE
rb_ary_reject(VALUE ary)
{
+ VALUE rejected_ary;
+
RETURN_ENUMERATOR(ary, 0, 0);
- ary = rb_ary_dup(ary);
- rb_ary_reject_bang(ary);
- return ary;
+ rejected_ary = rb_ary_new();
+ ary_reject(ary, rejected_ary);
+ return rejected_ary;
}
/*
* call-seq:
- * array.delete_if {|item| block } -> array
+ * ary.delete_if {|item| block } -> ary
+ * ary.delete_if -> an_enumerator
+ *
+ * Deletes every element of +self+ for which <i>block</i> evaluates
+ * to true.
+ * The array is changed instantly every time the block is called and
+ * not after the iteration is over.
+ * See also <code>Array#reject!</code>
*
- * Deletes every element of <i>self</i> for which <i>block</i> evaluates
- * to <code>true</code>.
+ * If no block is given, an enumerator is returned instead.
*
* a = [ "a", "b", "c" ]
* a.delete_if {|x| x >= "b" } #=> ["a"]
@@ -2277,7 +2666,7 @@ static VALUE
rb_ary_delete_if(VALUE ary)
{
RETURN_ENUMERATOR(ary, 0, 0);
- rb_ary_reject_bang(ary);
+ ary_reject_bang(ary);
return ary;
}
@@ -2306,15 +2695,15 @@ take_items(VALUE obj, long n)
/*
* call-seq:
- * array.zip(arg, ...) -> an_array
- * array.zip(arg, ...) {| arr | block } -> nil
+ * ary.zip(arg, ...) -> new_ary
+ * ary.zip(arg, ...) {| arr | block } -> nil
*
* Converts any arguments to arrays, then merges elements of
- * <i>self</i> with corresponding elements from each argument. This
+ * +self+ with corresponding elements from each argument. This
* generates a sequence of <code>self.size</code> <em>n</em>-element
* arrays, where <em>n</em> is one more that the count of arguments. If
* the size of any argument is less than <code>enumObj.size</code>,
- * <code>nil</code> values are supplied. If a block given, it is
+ * <code>nil</code> values are supplied. If a block is given, it is
* invoked for each output array, otherwise an array of arrays is
* returned.
*
@@ -2359,9 +2748,9 @@ rb_ary_zip(int argc, VALUE *argv, VALUE ary)
/*
* call-seq:
- * array.transpose -> an_array
+ * ary.transpose -> new_ary
*
- * Assumes that <i>self</i> is an array of arrays and transposes the
+ * Assumes that +self+ is an array of arrays and transposes the
* rows and columns.
*
* a = [[1,2], [3,4], [5,6]]
@@ -2398,10 +2787,10 @@ rb_ary_transpose(VALUE ary)
/*
* call-seq:
- * array.replace(other_array) -> array
+ * ary.replace(other_ary) -> ary
*
- * Replaces the contents of <i>self</i> with the contents of
- * <i>other_array</i>, truncating or expanding if necessary.
+ * Replaces the contents of +self+ with the contents of
+ * <i>other_ary</i>, truncating or expanding if necessary.
*
* a = [ "a", "b", "c", "d", "e" ]
* a.replace([ "x", "y", "z" ]) #=> ["x", "y", "z"]
@@ -2411,8 +2800,8 @@ rb_ary_transpose(VALUE ary)
VALUE
rb_ary_replace(VALUE copy, VALUE orig)
{
- orig = to_ary(orig);
rb_ary_modify_check(copy);
+ orig = to_ary(orig);
if (copy == orig) return copy;
if (RARRAY_LEN(orig) <= RARRAY_EMBED_LEN_MAX) {
@@ -2452,9 +2841,9 @@ rb_ary_replace(VALUE copy, VALUE orig)
/*
* call-seq:
- * array.clear -> array
+ * ary.clear -> ary
*
- * Removes all elements from _self_.
+ * Removes all elements from +self+.
*
* a = [ "a", "b", "c", "d", "e" ]
* a.clear #=> [ ]
@@ -2463,9 +2852,15 @@ rb_ary_replace(VALUE copy, VALUE orig)
VALUE
rb_ary_clear(VALUE ary)
{
- rb_ary_modify(ary);
+ rb_ary_modify_check(ary);
ARY_SET_LEN(ary, 0);
- if (ARY_DEFAULT_SIZE * 2 < ARY_CAPA(ary)) {
+ if (ARY_SHARED_P(ary)) {
+ if (!ARY_EMBED_P(ary)) {
+ rb_ary_unshare(ary);
+ FL_SET_EMBED(ary);
+ }
+ }
+ else if (ARY_DEFAULT_SIZE * 2 < ARY_CAPA(ary)) {
ary_resize_capa(ary, ARY_DEFAULT_SIZE * 2);
}
return ary;
@@ -2473,14 +2868,14 @@ rb_ary_clear(VALUE ary)
/*
* call-seq:
- * array.fill(obj) -> array
- * array.fill(obj, start [, length]) -> array
- * array.fill(obj, range ) -> array
- * array.fill {|index| block } -> array
- * array.fill(start [, length] ) {|index| block } -> array
- * array.fill(range) {|index| block } -> array
- *
- * The first three forms set the selected elements of <i>self</i> (which
+ * ary.fill(obj) -> ary
+ * ary.fill(obj, start [, length]) -> ary
+ * ary.fill(obj, range ) -> ary
+ * ary.fill {|index| block } -> ary
+ * ary.fill(start [, length] ) {|index| block } -> ary
+ * ary.fill(range) {|index| block } -> ary
+ *
+ * The first three forms set the selected elements of +self+ (which
* may be the entire array) to <i>obj</i>. A <i>start</i> of
* <code>nil</code> is equivalent to zero. A <i>length</i> of
* <code>nil</code> is equivalent to <i>self.length</i>. The last three
@@ -2502,10 +2897,10 @@ rb_ary_fill(int argc, VALUE *argv, VALUE ary)
VALUE item, arg1, arg2;
long beg = 0, end = 0, len = 0;
VALUE *p, *pend;
- int block_p = Qfalse;
+ int block_p = FALSE;
if (rb_block_given_p()) {
- block_p = Qtrue;
+ block_p = TRUE;
rb_scan_args(argc, argv, "02", &arg1, &arg2);
argc += 1; /* hackish */
}
@@ -2569,7 +2964,7 @@ rb_ary_fill(int argc, VALUE *argv, VALUE ary)
/*
* call-seq:
- * array + other_array -> an_array
+ * ary + other_ary -> new_ary
*
* Concatenation---Returns a new array built by concatenating the
* two arrays together to produce a third array.
@@ -2594,9 +2989,9 @@ rb_ary_plus(VALUE x, VALUE y)
/*
* call-seq:
- * array.concat(other_array) -> array
+ * ary.concat(other_ary) -> ary
*
- * Appends the elements in other_array to _self_.
+ * Appends the elements of <i>other_ary</i> to +self+.
*
* [ "a", "b" ].concat( ["c", "d"] ) #=> [ "a", "b", "c", "d" ]
*/
@@ -2605,6 +3000,7 @@ rb_ary_plus(VALUE x, VALUE y)
VALUE
rb_ary_concat(VALUE x, VALUE y)
{
+ rb_ary_modify_check(x);
y = to_ary(y);
if (RARRAY_LEN(y) > 0) {
rb_ary_splice(x, RARRAY_LEN(x), 0, y);
@@ -2615,12 +3011,12 @@ rb_ary_concat(VALUE x, VALUE y)
/*
* call-seq:
- * array * int -> an_array
- * array * str -> a_string
+ * ary * int -> new_ary
+ * ary * str -> new_string
*
* Repetition---With a String argument, equivalent to
* self.join(str). Otherwise, returns a new array
- * built by concatenating the _int_ copies of _self_.
+ * built by concatenating the _int_ copies of +self+.
*
*
* [ 1, 2, 3 ] * 3 #=> [ 1, 2, 3, 1, 2, 3, 1, 2, 3 ]
@@ -2631,8 +3027,8 @@ rb_ary_concat(VALUE x, VALUE y)
static VALUE
rb_ary_times(VALUE ary, VALUE times)
{
- VALUE ary2, tmp;
- long i, len;
+ VALUE ary2, tmp, *ptr, *ptr2;
+ long t, len;
tmp = rb_check_string_type(times);
if (!NIL_P(tmp)) {
@@ -2655,8 +3051,18 @@ rb_ary_times(VALUE ary, VALUE times)
ary2 = ary_new(rb_obj_class(ary), len);
ARY_SET_LEN(ary2, len);
- for (i=0; i<len; i+=RARRAY_LEN(ary)) {
- MEMCPY(RARRAY_PTR(ary2)+i, RARRAY_PTR(ary), VALUE, RARRAY_LEN(ary));
+ ptr = RARRAY_PTR(ary);
+ ptr2 = RARRAY_PTR(ary2);
+ t = RARRAY_LEN(ary);
+ if (0 < t) {
+ MEMCPY(ptr2, ptr, VALUE, t);
+ while (t <= len/2) {
+ MEMCPY(ptr2+t, ptr2, VALUE, t);
+ t *= 2;
+ }
+ if (t < len) {
+ MEMCPY(ptr2+t, ptr2, VALUE, len-t);
+ }
}
out:
OBJ_INFECT(ary2, ary);
@@ -2666,7 +3072,7 @@ rb_ary_times(VALUE ary, VALUE times)
/*
* call-seq:
- * array.assoc(obj) -> an_array or nil
+ * ary.assoc(obj) -> new_ary or nil
*
* Searches through an array whose elements are also arrays
* comparing _obj_ with the first element of each contained array
@@ -2701,7 +3107,7 @@ rb_ary_assoc(VALUE ary, VALUE key)
/*
* call-seq:
- * array.rassoc(obj) -> an_array or nil
+ * ary.rassoc(obj) -> new_ary or nil
*
* Searches through the array whose elements are also arrays. Compares
* _obj_ with the second element of each contained array using
@@ -2734,7 +3140,7 @@ recursive_equal(VALUE ary1, VALUE ary2, int recur)
{
long i;
- if (recur) return Qfalse;
+ if (recur) return Qtrue; /* Subtle! */
for (i=0; i<RARRAY_LEN(ary1); i++) {
if (!rb_equal(rb_ary_elt(ary1, i), rb_ary_elt(ary2, i)))
return Qfalse;
@@ -2744,7 +3150,7 @@ recursive_equal(VALUE ary1, VALUE ary2, int recur)
/*
* call-seq:
- * array == other_array -> bool
+ * ary == other_ary -> bool
*
* Equality---Two arrays are equal if they contain the same number
* of elements and if each element is equal to (according to
@@ -2767,7 +3173,7 @@ rb_ary_equal(VALUE ary1, VALUE ary2)
return rb_equal(ary2, ary1);
}
if (RARRAY_LEN(ary1) != RARRAY_LEN(ary2)) return Qfalse;
- return rb_exec_recursive(recursive_equal, ary1, ary2);
+ return rb_exec_recursive_paired(recursive_equal, ary1, ary2, ary2);
}
static VALUE
@@ -2775,7 +3181,7 @@ recursive_eql(VALUE ary1, VALUE ary2, int recur)
{
long i;
- if (recur) return Qfalse;
+ if (recur) return Qtrue; /* Subtle! */
for (i=0; i<RARRAY_LEN(ary1); i++) {
if (!rb_eql(rb_ary_elt(ary1, i), rb_ary_elt(ary2, i)))
return Qfalse;
@@ -2785,9 +3191,9 @@ recursive_eql(VALUE ary1, VALUE ary2, int recur)
/*
* call-seq:
- * array.eql?(other) -> true or false
+ * ary.eql?(other) -> true or false
*
- * Returns <code>true</code> if _array_ and _other_ are the same object,
+ * Returns <code>true</code> if +self+ and _other_ are the same object,
* or are both arrays with the same content.
*/
@@ -2797,22 +3203,25 @@ rb_ary_eql(VALUE ary1, VALUE ary2)
if (ary1 == ary2) return Qtrue;
if (TYPE(ary2) != T_ARRAY) return Qfalse;
if (RARRAY_LEN(ary1) != RARRAY_LEN(ary2)) return Qfalse;
- return rb_exec_recursive(recursive_eql, ary1, ary2);
+ return rb_exec_recursive_paired(recursive_eql, ary1, ary2, ary2);
}
static VALUE
recursive_hash(VALUE ary, VALUE dummy, int recur)
{
- long i, h;
+ long i;
+ st_index_t h;
VALUE n;
+ h = rb_hash_start(RARRAY_LEN(ary));
if (recur) {
- return LONG2FIX(0);
+ h = rb_hash_uint(h, NUM2LONG(rb_hash(rb_cArray)));
}
- h = rb_hash_start(RARRAY_LEN(ary));
- for (i=0; i<RARRAY_LEN(ary); i++) {
- n = rb_hash(RARRAY_PTR(ary)[i]);
- h = rb_hash_uint(h, NUM2LONG(n));
+ else {
+ for (i=0; i<RARRAY_LEN(ary); i++) {
+ n = rb_hash(RARRAY_PTR(ary)[i]);
+ h = rb_hash_uint(h, NUM2LONG(n));
+ }
}
h = rb_hash_end(h);
return LONG2FIX(h);
@@ -2820,7 +3229,7 @@ recursive_hash(VALUE ary, VALUE dummy, int recur)
/*
* call-seq:
- * array.hash -> fixnum
+ * ary.hash -> fixnum
*
* Compute a hash-code for this array. Two arrays with the same content
* will have the same hash code (and will compare using <code>eql?</code>).
@@ -2829,15 +3238,15 @@ recursive_hash(VALUE ary, VALUE dummy, int recur)
static VALUE
rb_ary_hash(VALUE ary)
{
- return rb_exec_recursive(recursive_hash, ary, 0);
+ return rb_exec_recursive_outer(recursive_hash, ary, 0);
}
/*
* call-seq:
- * array.include?(obj) -> true or false
+ * ary.include?(obj) -> true or false
*
* Returns <code>true</code> if the given object is present in
- * <i>self</i> (that is, if any object <code>==</code> <i>anObject</i>),
+ * +self+ (that is, if any object <code>==</code> <i>anObject</i>),
* <code>false</code> otherwise.
*
* a = [ "a", "b", "c" ]
@@ -2864,7 +3273,7 @@ recursive_cmp(VALUE ary1, VALUE ary2, int recur)
{
long i, len;
- if (recur) return Qnil;
+ if (recur) return Qundef; /* Subtle! */
len = RARRAY_LEN(ary1);
if (len > RARRAY_LEN(ary2)) {
len = RARRAY_LEN(ary2);
@@ -2880,11 +3289,11 @@ recursive_cmp(VALUE ary1, VALUE ary2, int recur)
/*
* call-seq:
- * array <=> other_array -> -1, 0, +1
+ * ary <=> other_ary -> -1, 0, +1 or nil
*
* Comparison---Returns an integer (-1, 0,
* or +1) if this array is less than, equal to, or greater than
- * other_array. Each object in each array is compared
+ * <i>other_ary</i>. Each object in each array is compared
* (using <=>). If any value isn't
* equal, then that inequality is the return value. If all the
* values found are equal, then the return is based on a
@@ -2904,9 +3313,10 @@ rb_ary_cmp(VALUE ary1, VALUE ary2)
long len;
VALUE v;
- ary2 = to_ary(ary2);
+ ary2 = rb_check_array_type(ary2);
+ if (NIL_P(ary2)) return Qnil;
if (ary1 == ary2) return INT2FIX(0);
- v = rb_exec_recursive(recursive_cmp, ary1, ary2);
+ v = rb_exec_recursive_paired(recursive_cmp, ary1, ary2, ary2);
if (v != Qundef) return v;
len = RARRAY_LEN(ary1) - RARRAY_LEN(ary2);
if (len == 0) return INT2FIX(0);
@@ -2974,11 +3384,11 @@ ary_recycle_hash(VALUE hash)
/*
* call-seq:
- * array - other_array -> an_array
+ * ary - other_ary -> new_ary
*
* Array Difference---Returns a new array that is a copy of
* the original array, removing any items that also appear in
- * other_array. (If you need set-like behavior, see the
+ * <i>other_ary</i>. (If you need set-like behavior, see the
* library class Set.)
*
* [ 1, 1, 2, 2, 3, 3, 4, 5 ] - [ 1, 2, 4 ] #=> [ 3, 3, 5 ]
@@ -3004,7 +3414,7 @@ rb_ary_diff(VALUE ary1, VALUE ary2)
/*
* call-seq:
- * array & other_array
+ * ary & other_ary -> new_ary
*
* Set Intersection---Returns a new array
* containing elements common to the two arrays, with no duplicates.
@@ -3016,7 +3426,8 @@ rb_ary_diff(VALUE ary1, VALUE ary2)
static VALUE
rb_ary_and(VALUE ary1, VALUE ary2)
{
- VALUE hash, ary3, v, vv;
+ VALUE hash, ary3, v;
+ st_data_t vv;
long i;
ary2 = to_ary(ary2);
@@ -3028,8 +3439,8 @@ rb_ary_and(VALUE ary1, VALUE ary2)
return ary3;
for (i=0; i<RARRAY_LEN(ary1); i++) {
- v = vv = rb_ary_elt(ary1, i);
- if (st_delete(RHASH_TBL(hash), (st_data_t*)&vv, 0)) {
+ vv = (st_data_t)(v = rb_ary_elt(ary1, i));
+ if (st_delete(RHASH_TBL(hash), &vv, 0)) {
rb_ary_push(ary3, v);
}
}
@@ -3040,10 +3451,10 @@ rb_ary_and(VALUE ary1, VALUE ary2)
/*
* call-seq:
- * array | other_array -> an_array
+ * ary | other_ary -> new_ary
*
* Set Union---Returns a new array by joining this array with
- * other_array, removing duplicates.
+ * <i>other_ary</i>, removing duplicates.
*
* [ "a", "b", "c" ] | [ "c", "d", "a" ]
* #=> [ "a", "b", "c", "d" ]
@@ -3052,8 +3463,8 @@ rb_ary_and(VALUE ary1, VALUE ary2)
static VALUE
rb_ary_or(VALUE ary1, VALUE ary2)
{
- VALUE hash, ary3;
- VALUE v, vv;
+ VALUE hash, ary3, v;
+ st_data_t vv;
long i;
ary2 = to_ary(ary2);
@@ -3061,14 +3472,14 @@ rb_ary_or(VALUE ary1, VALUE ary2)
hash = ary_add_hash(ary_make_hash(ary1), ary2);
for (i=0; i<RARRAY_LEN(ary1); i++) {
- v = vv = rb_ary_elt(ary1, i);
- if (st_delete(RHASH_TBL(hash), (st_data_t*)&vv, 0)) {
+ vv = (st_data_t)(v = rb_ary_elt(ary1, i));
+ if (st_delete(RHASH_TBL(hash), &vv, 0)) {
rb_ary_push(ary3, v);
}
}
for (i=0; i<RARRAY_LEN(ary2); i++) {
- v = vv = rb_ary_elt(ary2, i);
- if (st_delete(RHASH_TBL(hash), (st_data_t*)&vv, 0)) {
+ vv = (st_data_t)(v = rb_ary_elt(ary2, i));
+ if (st_delete(RHASH_TBL(hash), &vv, 0)) {
rb_ary_push(ary3, v);
}
}
@@ -3085,9 +3496,9 @@ push_value(st_data_t key, st_data_t val, st_data_t ary)
/*
* call-seq:
- * array.uniq! -> array or nil
+ * ary.uniq! -> ary or nil
*
- * Removes duplicate elements from _self_.
+ * Removes duplicate elements from +self+.
* Returns <code>nil</code> if no changes are made (that is, no
* duplicates are found).
*
@@ -3105,13 +3516,20 @@ rb_ary_uniq_bang(VALUE ary)
VALUE hash, v;
long i, j;
+ rb_ary_modify_check(ary);
+ if (RARRAY_LEN(ary) <= 1)
+ return Qnil;
if (rb_block_given_p()) {
hash = ary_make_hash_by(ary);
if (RARRAY_LEN(ary) == (i = RHASH_SIZE(hash))) {
return Qnil;
}
- ary_resize_capa(ary, i);
ARY_SET_LEN(ary, 0);
+ if (ARY_SHARED_P(ary) && !ARY_EMBED_P(ary)) {
+ rb_ary_unshare(ary);
+ FL_SET_EMBED(ary);
+ }
+ ary_resize_capa(ary, i);
st_foreach(RHASH_TBL(hash), push_value, ary);
}
else {
@@ -3134,9 +3552,9 @@ rb_ary_uniq_bang(VALUE ary)
/*
* call-seq:
- * array.uniq -> an_array
+ * ary.uniq -> new_ary
*
- * Returns a new array by removing duplicate values in <i>self</i>.
+ * Returns a new array by removing duplicate values in +self+.
*
* a = [ "a", "a", "b", "b", "c" ]
* a.uniq #=> ["a", "b", "c"]
@@ -3150,6 +3568,8 @@ rb_ary_uniq(VALUE ary)
VALUE hash, uniq, v;
long i;
+ if (RARRAY_LEN(ary) <= 1)
+ return rb_ary_dup(ary);
if (rb_block_given_p()) {
hash = ary_make_hash_by(ary);
uniq = ary_new(rb_obj_class(ary), RHASH_SIZE(hash));
@@ -3172,10 +3592,11 @@ rb_ary_uniq(VALUE ary)
/*
* call-seq:
- * array.compact! -> array or nil
+ * ary.compact! -> ary or nil
*
- * Removes +nil+ elements from array.
- * Returns +nil+ if no changes were made.
+ * Removes +nil+ elements from the array.
+ * Returns +nil+ if no changes were made, otherwise returns
+ * <i>ary</i>.
*
* [ "a", nil, "b", nil, "c" ].compact! #=> [ "a", "b", "c" ]
* [ "a", "b", "c" ].compact! #=> nil
@@ -3209,9 +3630,9 @@ rb_ary_compact_bang(VALUE ary)
/*
* call-seq:
- * array.compact -> an_array
+ * ary.compact -> new_ary
*
- * Returns a copy of _self_ with all +nil+ elements removed.
+ * Returns a copy of +self+ with all +nil+ elements removed.
*
* [ "a", nil, "b", nil, "c", nil ].compact
* #=> [ "a", "b", "c" ]
@@ -3227,18 +3648,18 @@ rb_ary_compact(VALUE ary)
/*
* call-seq:
- * array.count -> int
- * array.count(obj) -> int
- * array.count { |item| block } -> int
+ * ary.count -> int
+ * ary.count(obj) -> int
+ * ary.count { |item| block } -> int
*
* Returns the number of elements. If an argument is given, counts
* the number of elements which equals to <i>obj</i>. If a block is
* given, counts the number of elements yielding a true value.
*
* ary = [1, 2, 4, 2]
- * ary.count # => 4
- * ary.count(2) # => 2
- * ary.count{|x|x%2==0} # => 3
+ * ary.count #=> 4
+ * ary.count(2) #=> 2
+ * ary.count{|x|x%2==0} #=> 3
*
*/
@@ -3328,12 +3749,12 @@ flatten(VALUE ary, int level, int *modified)
/*
* call-seq:
- * array.flatten! -> array or nil
- * array.flatten!(level) -> array or nil
+ * ary.flatten! -> ary or nil
+ * ary.flatten!(level) -> array or nil
*
- * Flattens _self_ in place.
+ * Flattens +self+ in place.
* Returns <code>nil</code> if no modifications were made (i.e.,
- * <i>array</i> contains no subarrays.) If the optional <i>level</i>
+ * <i>ary</i> contains no subarrays.) If the optional <i>level</i>
* argument determines the level of recursion to flatten.
*
* a = [ 1, 2, [3, [4, 5] ] ]
@@ -3351,6 +3772,7 @@ rb_ary_flatten_bang(int argc, VALUE *argv, VALUE ary)
VALUE result, lv;
rb_scan_args(argc, argv, "01", &lv);
+ rb_ary_modify_check(ary);
if (!NIL_P(lv)) level = NUM2INT(lv);
if (level == 0) return Qnil;
@@ -3368,8 +3790,8 @@ rb_ary_flatten_bang(int argc, VALUE *argv, VALUE ary)
/*
* call-seq:
- * array.flatten -> an_array
- * array.flatten(level) -> an_array
+ * ary.flatten -> new_ary
+ * ary.flatten(level) -> new_ary
*
* Returns a new array that is a one-dimensional flattening of this
* array (recursively). That is, for every element that is an array,
@@ -3400,25 +3822,47 @@ rb_ary_flatten(int argc, VALUE *argv, VALUE ary)
return result;
}
+#define OPTHASH_GIVEN_P(opts) \
+ (argc > 0 && !NIL_P((opts) = rb_check_hash_type(argv[argc-1])) && (--argc, 1))
+static VALUE sym_random;
+
+#define RAND_UPTO(max) (long)(rb_random_real(randgen)*(max))
+
/*
* call-seq:
- * array.shuffle! -> array
+ * ary.shuffle! -> ary
+ * ary.shuffle!(random: rng) -> ary
*
- * Shuffles elements in _self_ in place.
+ * Shuffles elements in +self+ in place.
+ * If +rng+ is given, it will be used as the random number generator.
*/
-
static VALUE
-rb_ary_shuffle_bang(VALUE ary)
+rb_ary_shuffle_bang(int argc, VALUE *argv, VALUE ary)
{
- long i = RARRAY_LEN(ary);
+ VALUE *ptr, opts, *snap_ptr, randgen = rb_cRandom;
+ long i, snap_len;
+ if (OPTHASH_GIVEN_P(opts)) {
+ randgen = rb_hash_lookup2(opts, sym_random, randgen);
+ }
+ if (argc > 0) {
+ rb_raise(rb_eArgError, "wrong number of arguments (%d for 0)", argc);
+ }
rb_ary_modify(ary);
+ i = RARRAY_LEN(ary);
+ ptr = RARRAY_PTR(ary);
+ snap_len = i;
+ snap_ptr = ptr;
while (i) {
- long j = (long)(rb_genrand_real()*i);
- VALUE tmp = RARRAY_PTR(ary)[--i];
- RARRAY_PTR(ary)[i] = RARRAY_PTR(ary)[j];
- RARRAY_PTR(ary)[j] = tmp;
+ long j = RAND_UPTO(i);
+ VALUE tmp;
+ if (snap_len != RARRAY_LEN(ary) || snap_ptr != RARRAY_PTR(ary)) {
+ rb_raise(rb_eRuntimeError, "modified during shuffle");
+ }
+ tmp = ptr[--i];
+ ptr[i] = ptr[j];
+ ptr[j] = tmp;
}
return ary;
}
@@ -3426,32 +3870,42 @@ rb_ary_shuffle_bang(VALUE ary)
/*
* call-seq:
- * array.shuffle -> an_array
+ * ary.shuffle -> new_ary
+ * ary.shuffle(random: rng) -> new_ary
*
* Returns a new array with elements of this array shuffled.
*
* a = [ 1, 2, 3 ] #=> [1, 2, 3]
* a.shuffle #=> [2, 3, 1]
+ *
+ * If +rng+ is given, it will be used as the random number generator.
+ *
+ * a.shuffle(random: Random.new(1)) #=> [1, 3, 2]
*/
static VALUE
-rb_ary_shuffle(VALUE ary)
+rb_ary_shuffle(int argc, VALUE *argv, VALUE ary)
{
ary = rb_ary_dup(ary);
- rb_ary_shuffle_bang(ary);
+ rb_ary_shuffle_bang(argc, argv, ary);
return ary;
}
/*
* call-seq:
- * array.sample -> obj
- * array.sample(n) -> an_array
- *
- * Choose a random element, or the random +n+ elements, from the array.
- * If the array is empty, the first form returns <code>nil</code>, and the
- * second form returns an empty array.
- *
+ * ary.sample -> obj
+ * ary.sample(random: rng) -> obj
+ * ary.sample(n) -> new_ary
+ * ary.sample(n, random: rng) -> new_ary
+ *
+ * Choose a random element or +n+ random elements from the array. The elements
+ * are chosen by using random and unique indices into the array in order to
+ * ensure that an element doesn't repeat itself unless the array already
+ * contained duplicate elements. If the array is empty the first form returns
+ * <code>nil</code> and the second form returns an empty array.
+ *
+ * If +rng+ is given, it will be used as the random number generator.
*/
@@ -3459,33 +3913,54 @@ static VALUE
rb_ary_sample(int argc, VALUE *argv, VALUE ary)
{
VALUE nv, result, *ptr;
+ VALUE opts, randgen = rb_cRandom;
long n, len, i, j, k, idx[10];
+ double rnds[numberof(idx)];
+ if (OPTHASH_GIVEN_P(opts)) {
+ randgen = rb_hash_lookup2(opts, sym_random, randgen);
+ }
+ ptr = RARRAY_PTR(ary);
len = RARRAY_LEN(ary);
if (argc == 0) {
if (len == 0) return Qnil;
- i = len == 1 ? 0 : (long)(rb_genrand_real()*len);
+ if (len == 1) {
+ i = 0;
+ }
+ else {
+ double x = rb_random_real(randgen);
+ if ((len = RARRAY_LEN(ary)) == 0) return Qnil;
+ i = (long)(x * len);
+ }
return RARRAY_PTR(ary)[i];
}
rb_scan_args(argc, argv, "1", &nv);
n = NUM2LONG(nv);
if (n < 0) rb_raise(rb_eArgError, "negative sample number");
- ptr = RARRAY_PTR(ary);
+ if (n > len) n = len;
+ if (n <= numberof(idx)) {
+ for (i = 0; i < n; ++i) {
+ rnds[i] = rb_random_real(randgen);
+ }
+ }
len = RARRAY_LEN(ary);
+ ptr = RARRAY_PTR(ary);
if (n > len) n = len;
switch (n) {
- case 0: return rb_ary_new2(0);
+ case 0:
+ return rb_ary_new2(0);
case 1:
- return rb_ary_new4(1, &ptr[(long)(rb_genrand_real()*len)]);
+ i = (long)(rnds[0] * len);
+ return rb_ary_new4(1, &ptr[i]);
case 2:
- i = (long)(rb_genrand_real()*len);
- j = (long)(rb_genrand_real()*(len-1));
+ i = (long)(rnds[0] * len);
+ j = (long)(rnds[1] * (len-1));
if (j >= i) j++;
return rb_ary_new3(2, ptr[i], ptr[j]);
case 3:
- i = (long)(rb_genrand_real()*len);
- j = (long)(rb_genrand_real()*(len-1));
- k = (long)(rb_genrand_real()*(len-2));
+ i = (long)(rnds[0] * len);
+ j = (long)(rnds[1] * (len-1));
+ k = (long)(rnds[2] * (len-2));
{
long l = j, g = i;
if (j >= i) l = i, g = ++j;
@@ -3493,11 +3968,12 @@ rb_ary_sample(int argc, VALUE *argv, VALUE ary)
}
return rb_ary_new3(3, ptr[i], ptr[j], ptr[k]);
}
- if ((size_t)n < sizeof(idx)/sizeof(idx[0])) {
- long sorted[sizeof(idx)/sizeof(idx[0])];
- sorted[0] = idx[0] = (long)(rb_genrand_real()*len);
+ if (n <= numberof(idx)) {
+ VALUE *ptr_result;
+ long sorted[numberof(idx)];
+ sorted[0] = idx[0] = (long)(rnds[0] * len);
for (i=1; i<n; i++) {
- k = (long)(rb_genrand_real()*--len);
+ k = (long)(rnds[i] * --len);
for (j = 0; j < i; ++j) {
if (k < sorted[j]) break;
++k;
@@ -3506,19 +3982,24 @@ rb_ary_sample(int argc, VALUE *argv, VALUE ary)
sorted[j] = idx[i] = k;
}
result = rb_ary_new2(n);
+ ptr_result = RARRAY_PTR(result);
for (i=0; i<n; i++) {
- RARRAY_PTR(result)[i] = RARRAY_PTR(ary)[idx[i]];
+ ptr_result[i] = ptr[idx[i]];
}
}
else {
+ VALUE *ptr_result;
result = rb_ary_new4(len, ptr);
+ RBASIC(result)->klass = 0;
+ ptr_result = RARRAY_PTR(result);
RB_GC_GUARD(ary);
for (i=0; i<n; i++) {
- j = (long)(rb_genrand_real()*(len-i)) + i;
- nv = RARRAY_PTR(result)[j];
- RARRAY_PTR(result)[j] = RARRAY_PTR(result)[i];
- RARRAY_PTR(result)[i] = nv;
+ j = RAND_UPTO(len-i) + i;
+ nv = ptr_result[j];
+ ptr_result[j] = ptr_result[i];
+ ptr_result[i] = nv;
}
+ RBASIC(result)->klass = rb_cArray;
}
ARY_SET_LEN(result, n);
@@ -3528,14 +4009,17 @@ rb_ary_sample(int argc, VALUE *argv, VALUE ary)
/*
* call-seq:
- * ary.cycle {|obj| block }
- * ary.cycle(n) {|obj| block }
+ * ary.cycle(n=nil) {|obj| block } -> nil
+ * ary.cycle(n=nil) -> an_enumerator
*
* Calls <i>block</i> for each element repeatedly _n_ times or
- * forever if none or nil is given. If a non-positive number is
- * given or the array is empty, does nothing. Returns nil if the
+ * forever if none or +nil+ is given. If a non-positive number is
+ * given or the array is empty, does nothing. Returns +nil+ if the
* loop has finished without getting interrupted.
*
+ * If no block is given, an enumerator is returned instead.
+ *
+ *
* a = ["a", "b", "c"]
* a.cycle {|x| puts x } # print, a, b, c, a, b, c,.. forever.
* a.cycle(2) {|x| puts x } # print, a, b, c, a, b, c.
@@ -3568,6 +4052,9 @@ rb_ary_cycle(int argc, VALUE *argv, VALUE ary)
}
#define tmpbuf(n, size) rb_str_tmp_new((n)*(size))
+#define tmpbuf_discard(s) (rb_str_resize((s), 0L), RBASIC(s)->klass = rb_cString)
+#define tmpary(n) rb_ary_tmp_new(n)
+#define tmpary_discard(a) (ary_discard(a), RBASIC(a)->klass = rb_cArray)
/*
* Recursively compute permutations of r elements of the set [0..n-1].
@@ -3582,7 +4069,7 @@ rb_ary_cycle(int argc, VALUE *argv, VALUE ary)
* values: the Ruby array that holds the actual values to permute
*/
static void
-permute0(long n, long r, long *p, long index, int *used, VALUE values)
+permute0(long n, long r, long *p, long index, char *used, VALUE values)
{
long i,j;
for (i = 0; i < n; i++) {
@@ -3605,6 +4092,9 @@ permute0(long n, long r, long *p, long index, int *used, VALUE values)
for (j = 0; j < r; j++) result_array[j] = values_array[p[j]];
ARY_SET_LEN(result, r);
rb_yield(result);
+ if (RBASIC(values)->klass) {
+ rb_raise(rb_eRuntimeError, "permute reentered");
+ }
}
}
}
@@ -3612,10 +4102,10 @@ permute0(long n, long r, long *p, long index, int *used, VALUE values)
/*
* call-seq:
- * ary.permutation { |p| block } -> array
- * ary.permutation -> enumerator
- * ary.permutation(n) { |p| block } -> array
- * ary.permutation(n) -> enumerator
+ * ary.permutation { |p| block } -> ary
+ * ary.permutation -> an_enumerator
+ * ary.permutation(n) { |p| block } -> ary
+ * ary.permutation(n) -> an_enumerator
*
* When invoked with a block, yield all permutations of length <i>n</i>
* of the elements of <i>ary</i>, then return the array itself.
@@ -3623,7 +4113,7 @@ permute0(long n, long r, long *p, long index, int *used, VALUE values)
* The implementation makes no guarantees about the order in which
* the permutations are yielded.
*
- * When invoked without a block, return an enumerator object instead.
+ * If no block is given, an enumerator is returned instead.
*
* Examples:
*
@@ -3661,52 +4151,32 @@ rb_ary_permutation(int argc, VALUE *argv, VALUE ary)
else { /* this is the general case */
volatile VALUE t0 = tmpbuf(n,sizeof(long));
long *p = (long*)RSTRING_PTR(t0);
- volatile VALUE t1 = tmpbuf(n,sizeof(int));
- int *used = (int*)RSTRING_PTR(t1);
- VALUE ary0 = ary_make_substitution(ary); /* private defensive copy of ary */
+ volatile VALUE t1 = tmpbuf(n,sizeof(char));
+ char *used = (char*)RSTRING_PTR(t1);
+ VALUE ary0 = ary_make_shared_copy(ary); /* private defensive copy of ary */
RBASIC(ary0)->klass = 0;
- for (i = 0; i < n; i++) used[i] = 0; /* initialize array */
+ MEMZERO(used, char, n); /* initialize array */
permute0(n, r, p, 0, used, ary0); /* compute and yield permutations */
- RB_GC_GUARD(t0);
- RB_GC_GUARD(t1);
+ tmpbuf_discard(t0);
+ tmpbuf_discard(t1);
RBASIC(ary0)->klass = rb_cArray;
}
return ary;
}
-static long
-combi_len(long n, long k)
-{
- long i, val = 1;
-
- if (k*2 > n) k = n-k;
- if (k == 0) return 1;
- if (k < 0) return 0;
- val = 1;
- for (i=1; i <= k; i++,n--) {
- long m = val;
- val *= n;
- if (val < m) {
- rb_raise(rb_eRangeError, "too big for combination");
- }
- val /= i;
- }
- return val;
-}
-
/*
* call-seq:
* ary.combination(n) { |c| block } -> ary
- * ary.combination(n) -> enumerator
+ * ary.combination(n) -> an_enumerator
*
* When invoked with a block, yields all combinations of length <i>n</i>
* of elements from <i>ary</i> and then returns <i>ary</i> itself.
* The implementation makes no guarantees about the order in which
* the combinations are yielded.
*
- * When invoked without a block, returns an enumerator object instead.
+ * If no block is given, an enumerator is returned instead.
*
* Examples:
*
@@ -3742,53 +4212,242 @@ rb_ary_combination(VALUE ary, VALUE num)
else {
volatile VALUE t0 = tmpbuf(n+1, sizeof(long));
long *stack = (long*)RSTRING_PTR(t0);
- long nlen = combi_len(len, n);
- volatile VALUE cc = rb_ary_new2(n);
+ volatile VALUE cc = tmpary(n);
VALUE *chosen = RARRAY_PTR(cc);
long lev = 0;
- RBASIC(cc)->klass = 0;
MEMZERO(stack, long, n);
stack[0] = -1;
- for (i = 0; i < nlen; i++) {
+ for (;;) {
chosen[lev] = RARRAY_PTR(ary)[stack[lev+1]];
for (lev++; lev < n; lev++) {
chosen[lev] = RARRAY_PTR(ary)[stack[lev+1] = stack[lev]+1];
}
rb_yield(rb_ary_new4(n, chosen));
+ if (RBASIC(t0)->klass) {
+ rb_raise(rb_eRuntimeError, "combination reentered");
+ }
do {
+ if (lev == 0) goto done;
stack[lev--]++;
- } while (lev && (stack[lev+1]+n == len+lev+1));
+ } while (stack[lev+1]+n == len+lev+1);
+ }
+ done:
+ tmpbuf_discard(t0);
+ tmpary_discard(cc);
+ }
+ return ary;
+}
+
+/*
+ * Recursively compute repeated permutations of r elements of the set
+ * [0..n-1].
+ * When we have a complete repeated permutation of array indexes, copy the
+ * values at those indexes into a new array and yield that array.
+ *
+ * n: the size of the set
+ * r: the number of elements in each permutation
+ * p: the array (of size r) that we're filling in
+ * index: what index we're filling in now
+ * values: the Ruby array that holds the actual values to permute
+ */
+static void
+rpermute0(long n, long r, long *p, long index, VALUE values)
+{
+ long i, j;
+ for (i = 0; i < n; i++) {
+ p[index] = i;
+ if (index < r-1) { /* if not done yet */
+ rpermute0(n, r, p, index+1, values); /* recurse */
+ }
+ else {
+ /* We have a complete permutation of array indexes */
+ /* Build a ruby array of the corresponding values */
+ /* And yield it to the associated block */
+ VALUE result = rb_ary_new2(r);
+ VALUE *result_array = RARRAY_PTR(result);
+ const VALUE *values_array = RARRAY_PTR(values);
+
+ for (j = 0; j < r; j++) result_array[j] = values_array[p[j]];
+ ARY_SET_LEN(result, r);
+ rb_yield(result);
+ if (RBASIC(values)->klass) {
+ rb_raise(rb_eRuntimeError, "repeated permute reentered");
+ }
+ }
+ }
+}
+
+/*
+ * call-seq:
+ * ary.repeated_permutation(n) { |p| block } -> ary
+ * ary.repeated_permutation(n) -> an_enumerator
+ *
+ * When invoked with a block, yield all repeated permutations of length
+ * <i>n</i> of the elements of <i>ary</i>, then return the array itself.
+ * The implementation makes no guarantees about the order in which
+ * the repeated permutations are yielded.
+ *
+ * If no block is given, an enumerator is returned instead.
+ *
+ * Examples:
+ *
+ * a = [1, 2]
+ * a.repeated_permutation(1).to_a #=> [[1], [2]]
+ * a.repeated_permutation(2).to_a #=> [[1,1],[1,2],[2,1],[2,2]]
+ * a.repeated_permutation(3).to_a #=> [[1,1,1],[1,1,2],[1,2,1],[1,2,2],
+ * # [2,1,1],[2,1,2],[2,2,1],[2,2,2]]
+ * a.repeated_permutation(0).to_a #=> [[]] # one permutation of length 0
+ */
+
+static VALUE
+rb_ary_repeated_permutation(VALUE ary, VALUE num)
+{
+ long r, n, i;
+
+ n = RARRAY_LEN(ary); /* Array length */
+ RETURN_ENUMERATOR(ary, 1, &num); /* Return enumerator if no block */
+ r = NUM2LONG(num); /* Permutation size from argument */
+
+ if (r < 0) {
+ /* no permutations: yield nothing */
+ }
+ else if (r == 0) { /* exactly one permutation: the zero-length array */
+ rb_yield(rb_ary_new2(0));
+ }
+ else if (r == 1) { /* this is a special, easy case */
+ for (i = 0; i < RARRAY_LEN(ary); i++) {
+ rb_yield(rb_ary_new3(1, RARRAY_PTR(ary)[i]));
}
}
+ else { /* this is the general case */
+ volatile VALUE t0 = tmpbuf(r, sizeof(long));
+ long *p = (long*)RSTRING_PTR(t0);
+ VALUE ary0 = ary_make_shared_copy(ary); /* private defensive copy of ary */
+ RBASIC(ary0)->klass = 0;
+
+ rpermute0(n, r, p, 0, ary0); /* compute and yield repeated permutations */
+ tmpbuf_discard(t0);
+ RBASIC(ary0)->klass = rb_cArray;
+ }
return ary;
}
+static void
+rcombinate0(long n, long r, long *p, long index, long rest, VALUE values)
+{
+ long j;
+ if (rest > 0) {
+ for (; index < n; ++index) {
+ p[r-rest] = index;
+ rcombinate0(n, r, p, index, rest-1, values);
+ }
+ }
+ else {
+ VALUE result = rb_ary_new2(r);
+ VALUE *result_array = RARRAY_PTR(result);
+ const VALUE *values_array = RARRAY_PTR(values);
+
+ for (j = 0; j < r; ++j) result_array[j] = values_array[p[j]];
+ ARY_SET_LEN(result, r);
+ rb_yield(result);
+ if (RBASIC(values)->klass) {
+ rb_raise(rb_eRuntimeError, "repeated combination reentered");
+ }
+ }
+}
+
/*
* call-seq:
- * ary.product(other_ary, ...)
+ * ary.repeated_combination(n) { |c| block } -> ary
+ * ary.repeated_combination(n) -> an_enumerator
+ *
+ * When invoked with a block, yields all repeated combinations of
+ * length <i>n</i> of elements from <i>ary</i> and then returns
+ * <i>ary</i> itself.
+ * The implementation makes no guarantees about the order in which
+ * the repeated combinations are yielded.
+ *
+ * If no block is given, an enumerator is returned instead.
+ *
+ * Examples:
+ *
+ * a = [1, 2, 3]
+ * a.repeated_combination(1).to_a #=> [[1], [2], [3]]
+ * a.repeated_combination(2).to_a #=> [[1,1],[1,2],[1,3],[2,2],[2,3],[3,3]]
+ * a.repeated_combination(3).to_a #=> [[1,1,1],[1,1,2],[1,1,3],[1,2,2],[1,2,3],
+ * # [1,3,3],[2,2,2],[2,2,3],[2,3,3],[3,3,3]]
+ * a.repeated_combination(4).to_a #=> [[1,1,1,1],[1,1,1,2],[1,1,1,3],[1,1,2,2],[1,1,2,3],
+ * # [1,1,3,3],[1,2,2,2],[1,2,2,3],[1,2,3,3],[1,3,3,3],
+ * # [2,2,2,2],[2,2,2,3],[2,2,3,3],[2,3,3,3],[3,3,3,3]]
+ * a.repeated_combination(0).to_a #=> [[]] # one combination of length 0
+ *
+ */
+
+static VALUE
+rb_ary_repeated_combination(VALUE ary, VALUE num)
+{
+ long n, i, len;
+
+ n = NUM2LONG(num); /* Combination size from argument */
+ RETURN_ENUMERATOR(ary, 1, &num); /* Return enumerator if no block */
+ len = RARRAY_LEN(ary);
+ if (n < 0) {
+ /* yield nothing */
+ }
+ else if (n == 0) {
+ rb_yield(rb_ary_new2(0));
+ }
+ else if (n == 1) {
+ for (i = 0; i < len; i++) {
+ rb_yield(rb_ary_new3(1, RARRAY_PTR(ary)[i]));
+ }
+ }
+ else if (len == 0) {
+ /* yield nothing */
+ }
+ else {
+ volatile VALUE t0 = tmpbuf(n, sizeof(long));
+ long *p = (long*)RSTRING_PTR(t0);
+ VALUE ary0 = ary_make_shared_copy(ary); /* private defensive copy of ary */
+ RBASIC(ary0)->klass = 0;
+
+ rcombinate0(len, n, p, 0, n, ary0); /* compute and yield repeated combinations */
+ tmpbuf_discard(t0);
+ RBASIC(ary0)->klass = rb_cArray;
+ }
+ return ary;
+}
+
+/*
+ * call-seq:
+ * ary.product(other_ary, ...) -> new_ary
+ * ary.product(other_ary, ...) { |p| block } -> ary
*
* Returns an array of all combinations of elements from all arrays.
* The length of the returned array is the product of the length
- * of ary and the argument arrays
+ * of +self+ and the argument arrays.
+ * If given a block, <i>product</i> will yield all combinations
+ * and return +self+ instead.
*
- * [1,2,3].product([4,5]) # => [[1,4],[1,5],[2,4],[2,5],[3,4],[3,5]]
- * [1,2].product([1,2]) # => [[1,1],[1,2],[2,1],[2,2]]
- * [1,2].product([3,4],[5,6]) # => [[1,3,5],[1,3,6],[1,4,5],[1,4,6],
+ *
+ * [1,2,3].product([4,5]) #=> [[1,4],[1,5],[2,4],[2,5],[3,4],[3,5]]
+ * [1,2].product([1,2]) #=> [[1,1],[1,2],[2,1],[2,2]]
+ * [1,2].product([3,4],[5,6]) #=> [[1,3,5],[1,3,6],[1,4,5],[1,4,6],
* # [2,3,5],[2,3,6],[2,4,5],[2,4,6]]
- * [1,2].product() # => [[1],[2]]
- * [1,2].product([]) # => []
+ * [1,2].product() #=> [[1],[2]]
+ * [1,2].product([]) #=> []
*/
static VALUE
rb_ary_product(int argc, VALUE *argv, VALUE ary)
{
int n = argc+1; /* How many arrays we're operating on */
- volatile VALUE t0 = tmpbuf(n, sizeof(VALUE));
+ volatile VALUE t0 = tmpary(n);
volatile VALUE t1 = tmpbuf(n, sizeof(int));
- VALUE *arrays = (VALUE*)RSTRING_PTR(t0); /* The arrays we're computing the product of */
+ VALUE *arrays = RARRAY_PTR(t0); /* The arrays we're computing the product of */
int *counters = (int*)RSTRING_PTR(t1); /* The current position in each one */
- VALUE result; /* The array we'll be returning */
+ VALUE result = Qnil; /* The array we'll be returning, when no block given */
long i,j;
long resultlen = 1;
@@ -3796,25 +4455,38 @@ rb_ary_product(int argc, VALUE *argv, VALUE ary)
RBASIC(t1)->klass = 0;
/* initialize the arrays of arrays */
+ ARY_SET_LEN(t0, n);
arrays[0] = ary;
+ for (i = 1; i < n; i++) arrays[i] = Qnil;
for (i = 1; i < n; i++) arrays[i] = to_ary(argv[i-1]);
/* initialize the counters for the arrays */
for (i = 0; i < n; i++) counters[i] = 0;
- /* Compute the length of the result array; return [] if any is empty */
- for (i = 0; i < n; i++) {
- long k = RARRAY_LEN(arrays[i]), l = resultlen;
- if (k == 0) return rb_ary_new2(0);
- resultlen *= k;
- if (resultlen < k || resultlen < l || resultlen / k != l) {
- rb_raise(rb_eRangeError, "too big to product");
+ /* Otherwise, allocate and fill in an array of results */
+ if (rb_block_given_p()) {
+ /* Make defensive copies of arrays; exit if any is empty */
+ for (i = 0; i < n; i++) {
+ if (RARRAY_LEN(arrays[i]) == 0) goto done;
+ arrays[i] = ary_make_shared_copy(arrays[i]);
}
}
-
- /* Otherwise, allocate and fill in an array of results */
- result = rb_ary_new2(resultlen);
- for (i = 0; i < resultlen; i++) {
+ else {
+ /* Compute the length of the result array; return [] if any is empty */
+ for (i = 0; i < n; i++) {
+ long k = RARRAY_LEN(arrays[i]), l = resultlen;
+ if (k == 0) {
+ result = rb_ary_new2(0);
+ goto done;
+ }
+ resultlen *= k;
+ if (resultlen < k || resultlen < l || resultlen / k != l) {
+ rb_raise(rb_eRangeError, "too big to product");
+ }
+ }
+ result = rb_ary_new2(resultlen);
+ }
+ for (;;) {
int m;
/* fill in one subarray */
VALUE subarray = rb_ary_new2(n);
@@ -3823,7 +4495,19 @@ rb_ary_product(int argc, VALUE *argv, VALUE ary)
}
/* put it on the result array */
- rb_ary_push(result, subarray);
+ if(NIL_P(result)) {
+ FL_SET(t0, FL_USER5);
+ rb_yield(subarray);
+ if (! FL_TEST(t0, FL_USER5)) {
+ rb_raise(rb_eRuntimeError, "product reentered");
+ }
+ else {
+ FL_UNSET(t0, FL_USER5);
+ }
+ }
+ else {
+ rb_ary_push(result, subarray);
+ }
/*
* Increment the last counter. If it overflows, reset to 0
@@ -3831,24 +4515,28 @@ rb_ary_product(int argc, VALUE *argv, VALUE ary)
*/
m = n-1;
counters[m]++;
- while (m > 0 && counters[m] == RARRAY_LEN(arrays[m])) {
+ while (counters[m] == RARRAY_LEN(arrays[m])) {
counters[m] = 0;
- m--;
+ /* If the first counter overflows, we are done */
+ if (--m < 0) goto done;
counters[m]++;
}
}
+done:
+ tmpary_discard(t0);
+ tmpbuf_discard(t1);
- return result;
+ return NIL_P(result) ? ary : result;
}
/*
* call-seq:
- * ary.take(n) => array
+ * ary.take(n) -> new_ary
*
* Returns first n elements from <i>ary</i>.
*
* a = [1, 2, 3, 4, 5, 0]
- * a.take(3) # => [1, 2, 3]
+ * a.take(3) #=> [1, 2, 3]
*
*/
@@ -3864,13 +4552,16 @@ rb_ary_take(VALUE obj, VALUE n)
/*
* call-seq:
- * ary.take_while {|arr| block } => array
+ * ary.take_while {|arr| block } -> new_ary
+ * ary.take_while -> an_enumerator
*
- * Passes elements to the block until the block returns nil or false,
+ * Passes elements to the block until the block returns +nil+ or +false+,
* then stops iterating and returns an array of all prior elements.
*
+ * If no block is given, an enumerator is returned instead.
+ *
* a = [1, 2, 3, 4, 5, 0]
- * a.take_while {|i| i < 3 } # => [1, 2]
+ * a.take_while {|i| i < 3 } #=> [1, 2]
*
*/
@@ -3888,13 +4579,13 @@ rb_ary_take_while(VALUE ary)
/*
* call-seq:
- * ary.drop(n) => array
+ * ary.drop(n) -> new_ary
*
- * Drops first n elements from <i>ary</i>, and returns rest elements
- * in an array.
+ * Drops first n elements from +ary+ and returns the rest of
+ * the elements in an array.
*
* a = [1, 2, 3, 4, 5, 0]
- * a.drop(3) # => [4, 5, 0]
+ * a.drop(3) #=> [4, 5, 0]
*
*/
@@ -3914,14 +4605,17 @@ rb_ary_drop(VALUE ary, VALUE n)
/*
* call-seq:
- * ary.drop_while {|arr| block } => array
+ * ary.drop_while {|arr| block } -> new_ary
+ * ary.drop_while -> an_enumerator
*
* Drops elements up to, but not including, the first element for
- * which the block returns nil or false and returns an array
+ * which the block returns +nil+ or +false+ and returns an array
* containing the remaining elements.
*
+ * If no block is given, an enumerator is returned instead.
+ *
* a = [1, 2, 3, 4, 5, 0]
- * a.drop_while {|i| i < 3 } # => [3, 4, 5, 0]
+ * a.drop_while {|i| i < 3 } #=> [3, 4, 5, 0]
*
*/
@@ -3996,6 +4690,8 @@ Init_Array(void)
rb_define_method(rb_cArray, "join", rb_ary_join_m, -1);
rb_define_method(rb_cArray, "reverse", rb_ary_reverse_m, 0);
rb_define_method(rb_cArray, "reverse!", rb_ary_reverse_bang, 0);
+ rb_define_method(rb_cArray, "rotate", rb_ary_rotate_m, -1);
+ rb_define_method(rb_cArray, "rotate!", rb_ary_rotate_bang, -1);
rb_define_method(rb_cArray, "sort", rb_ary_sort, 0);
rb_define_method(rb_cArray, "sort!", rb_ary_sort_bang, 0);
rb_define_method(rb_cArray, "sort_by!", rb_ary_sort_by_bang, 0);
@@ -4004,6 +4700,8 @@ Init_Array(void)
rb_define_method(rb_cArray, "map", rb_ary_collect, 0);
rb_define_method(rb_cArray, "map!", rb_ary_collect_bang, 0);
rb_define_method(rb_cArray, "select", rb_ary_select, 0);
+ rb_define_method(rb_cArray, "select!", rb_ary_select_bang, 0);
+ rb_define_method(rb_cArray, "keep_if", rb_ary_keep_if, 0);
rb_define_method(rb_cArray, "values_at", rb_ary_values_at, -1);
rb_define_method(rb_cArray, "delete", rb_ary_delete, 1);
rb_define_method(rb_cArray, "delete_at", rb_ary_delete_at_m, 1);
@@ -4038,12 +4736,14 @@ Init_Array(void)
rb_define_method(rb_cArray, "flatten", rb_ary_flatten, -1);
rb_define_method(rb_cArray, "flatten!", rb_ary_flatten_bang, -1);
rb_define_method(rb_cArray, "count", rb_ary_count, -1);
- rb_define_method(rb_cArray, "shuffle!", rb_ary_shuffle_bang, 0);
- rb_define_method(rb_cArray, "shuffle", rb_ary_shuffle, 0);
+ rb_define_method(rb_cArray, "shuffle!", rb_ary_shuffle_bang, -1);
+ rb_define_method(rb_cArray, "shuffle", rb_ary_shuffle, -1);
rb_define_method(rb_cArray, "sample", rb_ary_sample, -1);
rb_define_method(rb_cArray, "cycle", rb_ary_cycle, -1);
rb_define_method(rb_cArray, "permutation", rb_ary_permutation, -1);
rb_define_method(rb_cArray, "combination", rb_ary_combination, 1);
+ rb_define_method(rb_cArray, "repeated_permutation", rb_ary_repeated_permutation, 1);
+ rb_define_method(rb_cArray, "repeated_combination", rb_ary_repeated_combination, 1);
rb_define_method(rb_cArray, "product", rb_ary_product, -1);
rb_define_method(rb_cArray, "take", rb_ary_take, 1);
@@ -4052,4 +4752,5 @@ Init_Array(void)
rb_define_method(rb_cArray, "drop_while", rb_ary_drop_while, 0);
id_cmp = rb_intern("<=>");
+ sym_random = ID2SYM(rb_intern("random"));
}
diff --git a/atomic.h b/atomic.h
new file mode 100644
index 0000000000..5b3fb99024
--- /dev/null
+++ b/atomic.h
@@ -0,0 +1,56 @@
+#ifndef RUBY_ATOMIC_H
+#define RUBY_ATOMIC_H
+
+#ifdef _WIN32
+#if defined _MSC_VER && _MSC_VER > 1200
+#pragma intrinsic(_InterlockedOr)
+#endif
+typedef LONG rb_atomic_t;
+
+# define ATOMIC_SET(var, val) InterlockedExchange(&(var), (val))
+# define ATOMIC_INC(var) InterlockedIncrement(&(var))
+# define ATOMIC_DEC(var) InterlockedDecrement(&(var))
+#if defined __GNUC__
+# define ATOMIC_OR(var, val) __asm__("lock\n\t" "orl\t%1, %0" : "=m"(var) : "Ir"(val))
+#elif defined _MSC_VER && _MSC_VER <= 1200
+# define ATOMIC_OR(var, val) rb_w32_atomic_or(&(var), (val))
+static inline void
+rb_w32_atomic_or(volatile rb_atomic_t *var, rb_atomic_t val)
+{
+#ifdef _M_IX86
+ __asm mov eax, var;
+ __asm mov ecx, val;
+ __asm lock or [eax], ecx;
+#else
+#error unsupported architecture
+#endif
+}
+#else
+# define ATOMIC_OR(var, val) _InterlockedOr(&(var), (val))
+#endif
+# define ATOMIC_EXCHANGE(var, val) InterlockedExchange(&(var), (val))
+
+#elif defined HAVE_GCC_ATOMIC_BUILTINS
+/* @shyouhei hack to support atomic operations in case of gcc. Gcc
+ * has its own pseudo-insns to support them. See info, or
+ * http://gcc.gnu.org/onlinedocs/gcc/Atomic-Builtins.html */
+
+typedef unsigned int rb_atomic_t; /* Anything OK */
+# define ATOMIC_SET(var, val) __sync_lock_test_and_set(&(var), (val))
+# define ATOMIC_INC(var) __sync_fetch_and_add(&(var), 1)
+# define ATOMIC_DEC(var) __sync_fetch_and_sub(&(var), 1)
+# define ATOMIC_OR(var, val) __sync_or_and_fetch(&(var), (val))
+# define ATOMIC_EXCHANGE(var, val) __sync_lock_test_and_set(&(var), (val))
+
+#else
+typedef int rb_atomic_t;
+extern rb_atomic_t ruby_atomic_exchange(rb_atomic_t *ptr, rb_atomic_t val);
+
+# define ATOMIC_SET(var, val) ((var) = (val))
+# define ATOMIC_INC(var) (++(var))
+# define ATOMIC_DEC(var) (--(var))
+# define ATOMIC_OR(var, val) ((var) |= (val))
+# define ATOMIC_EXCHANGE(var, val) ruby_atomic_exchange(&(var), (val))
+#endif
+
+#endif /* RUBY_ATOMIC_H */
diff --git a/bcc32/Makefile.sub b/bcc32/Makefile.sub
index 15e9669060..1cd26a8643 100644
--- a/bcc32/Makefile.sub
+++ b/bcc32/Makefile.sub
@@ -114,9 +114,6 @@ datadir = $(prefix)/share
!ifndef EXTOUT
EXTOUT = .ext
!endif
-!ifndef RIDATADIR
-RIDATADIR = $(DESTDIR)$(datadir)/ri/$(MAJOR).$(MINOR)/system
-!endif
!ifndef TESTUI
TESTUI = console
!endif
@@ -199,6 +196,10 @@ ASMEXT = asm
INSTALLED_LIST= .installed.list
+MKMAIN_CMD = mkmain.bat
+
+SRC_FILE = $(<:\=/)
+
WINMAINOBJ = winmain.$(OBJEXT)
ARCHMINIOBJS = dmydln.$(OBJEXT)
@@ -247,10 +248,14 @@ config: config.status
config.status: $(CONFIG_H)
+guard = INCLUDE_RUBY_CONFIG_H
+
$(CONFIG_H): $(MKFILES) $(srcdir)/bcc32/Makefile.sub
@if not exist $(arch_hdrdir:/=\) md $(arch_hdrdir:/=\)
@if not exist $(arch_hdrdir:/=\)\ruby md $(arch_hdrdir:/=\)\ruby
@$(IFCHANGE) $(RUBY_CONFIG_H:/=\) &&|
+\#ifndef $(guard)
+\#define $(guard) 1
\#define NO_BIG_INLINE 1
\#define HAVE_SYS_TYPES_H 1
\#define HAVE_SYS_STAT_H 1
@@ -298,13 +303,18 @@ $(CONFIG_H): $(MKFILES) $(srcdir)/bcc32/Makefile.sub
\#define uint64_t unsigned __int64
\#define ssize_t int
!endif
+\#define HAVE_INT8_T 1
\#define HAVE_UINT8_T 1
+\#define SIZEOF_INT8_T 1
\#define HAVE_INT16_T 1
\#define HAVE_UINT16_T 1
+\#define SIZEOF_INT32_T 2
\#define HAVE_INT32_T 1
\#define HAVE_UINT32_T 1
-\#define HAVE_INT64_T HAVE_LONG_LONG
-\#define HAVE_UINT64_T HAVE_LONG_LONG
+\#define SIZEOF_INT32_T 4
+\#define HAVE_INT64_T 1
+\#define HAVE_UINT64_T 1
+\#define SIZEOF_INT64_T 8
\#define HAVE_INTPTR_T 1
\#define HAVE_UINTPTR_T 1
\#define HAVE_SSIZE_T 1
@@ -356,15 +366,9 @@ $(CONFIG_H): $(MKFILES) $(srcdir)/bcc32/Makefile.sub
\#define DEFAULT_KCODE KCODE_NONE
\#define LOAD_RELATIVE 1
\#define DLEXT ".so"
-\#define RUBY_LIB "/lib/ruby/$(MAJOR).$(MINOR).$(TEENY)"
-\#define RUBY_SITE_LIB "/lib/ruby/site_ruby"
-\#define RUBY_SITE_LIB2 "/lib/ruby/site_ruby/$(MAJOR).$(MINOR).$(TEENY)"
-\#define RUBY_VENDOR_LIB "/lib/ruby/vendor_ruby"
-\#define RUBY_VENDOR_LIB2 "/lib/ruby/vendor_ruby/$(MAJOR).$(MINOR).$(TEENY)"
+\#define RUBY_LIB_PREFIX "/lib/ruby"
\#define RUBY_PLATFORM "$(ARCH)-$(OS)"
-\#define RUBY_ARCHLIB "/lib/ruby/$(MAJOR).$(MINOR).$(TEENY)/$(ARCH)-$(OS)"
-\#define RUBY_SITE_ARCHLIB "/lib/ruby/site_ruby/$(MAJOR).$(MINOR).$(TEENY)/$(ARCH)-$(OS)"
-\#define RUBY_VENDOR_ARCHLIB "/lib/ruby/vendor_ruby/$(MAJOR).$(MINOR).$(TEENY)/$(ARCH)-$(OS)"
+\#endif /* $(guard) */
|
@exit > $(@:/=\)
@@ -397,6 +401,7 @@ s,@includedir@,$${prefix}/include,;t t
s,@oldincludedir@,/usr/include,;t t
s,@infodir@,$${prefix}/info,;t t
s,@mandir@,$${prefix}/man,;t t
+s,@ridir@,$${prefix}/share/ri,;t t
s,@build@,$(CPU)-pc-$(OS),;t t
s,@build_alias@,$(CPU)-$(OS),;t t
s,@build_cpu@,$(CPU),;t t
diff --git a/bcc32/README.bcc32 b/bcc32/README.bcc32
index fb19906c75..cd33eec0a1 100644
--- a/bcc32/README.bcc32
+++ b/bcc32/README.bcc32
@@ -36,6 +36,7 @@
You can also specify the install directory.
For example, run `((%configure --prefix=<install_directory>%))'
Default of the install directory is /usr .
+ The default ((|<PLATFORM>|)) is `(({i386-bccwin32}))'.
(2) Change ((|RUBY_INSTALL_NAME|)) and ((|RUBY_SO_NAME|)) in (({Makefile}))
if you want to change the name of the executable files.
@@ -48,19 +49,6 @@
(5) Run `((%make install%))'
- This command will create following directories and install files onto them.
- * <install_directory>\bin
- * <install_directory>\lib
- * <install_directory>\lib\ruby
- * <install_directory>\lib\ruby\<MAJOR>.<MINOR>
- * <install_directory>\lib\ruby\<MAJOR>.<MINOR>\<PLATFORM>
- * <install_directory>\lib\ruby\site_ruby
- * <install_directory>\lib\ruby\site_ruby\<MAJOR>.<MINOR>
- * <install_directory>\lib\ruby\site_ruby\<MAJOR>.<MINOR>\<PLATFORM>
- * <install_directory>\man\man1
- If Ruby's version is `x.y.z', the ((|<MAJOR>|)) is `x' and the ((|<MINOR>|)) is `y'.
- The default ((|<PLATFORM>|)) is `(({i386-bccwin32}))'.
-
(6) Requires dynamic RTL (cc3250.dll on C++Builder5) and borlndmm.dll (If built with
usebormm.lib) to use installed binary. These files are ordinary in bcc32's bin
directory.
diff --git a/bcc32/setup.mak b/bcc32/setup.mak
index e5b4ee8f44..df2fd3c128 100644
--- a/bcc32/setup.mak
+++ b/bcc32/setup.mak
@@ -96,9 +96,9 @@ $(BANG)endif
@cpp32 -I$(srcdir) -P- -o$(MAKEFILE) > nul &&|
\#define RUBY_REVISION 0
\#include "version.h"
-MAJOR = RUBY_VERSION_MAJOR
-MINOR = RUBY_VERSION_MINOR
-TEENY = RUBY_VERSION_TEENY
+MAJOR = RUBY_API_VERSION_MAJOR
+MINOR = RUBY_API_VERSION_MINOR
+TEENY = RUBY_API_VERSION_TEENY
BORLANDC = __BORLANDC__
|
diff --git a/benchmark/bm_app_erb.rb b/benchmark/bm_app_erb.rb
index e58b7a34a1..77c66a7949 100644
--- a/benchmark/bm_app_erb.rb
+++ b/benchmark/bm_app_erb.rb
@@ -5,7 +5,7 @@
require 'erb'
data = DATA.read
-max = 5_000
+max = 15_000
title = "hello world!"
content = "hello world!\n" * 10
diff --git a/benchmark/bm_app_factorial.rb b/benchmark/bm_app_factorial.rb
index a5a5de0426..45f471dfdb 100644
--- a/benchmark/bm_app_factorial.rb
+++ b/benchmark/bm_app_factorial.rb
@@ -6,6 +6,6 @@ def fact(n)
end
end
-8.times{
+100.times {
fact(5000)
-} \ No newline at end of file
+}
diff --git a/benchmark/bm_app_mandelbrot.rb b/benchmark/bm_app_mandelbrot.rb
index a0dcf5e874..89069db7ab 100644
--- a/benchmark/bm_app_mandelbrot.rb
+++ b/benchmark/bm_app_mandelbrot.rb
@@ -12,8 +12,8 @@ end
ary = []
-(0..100).each{|dx|
- (0..100).each{|dy|
+(0..1000).each{|dx|
+ (0..1000).each{|dy|
x = dx / 50.0
y = dy / 50.0
c = Complex(x, y)
diff --git a/benchmark/bm_app_strconcat.rb b/benchmark/bm_app_strconcat.rb
index c6ef817263..7b2f2da5a7 100644
--- a/benchmark/bm_app_strconcat.rb
+++ b/benchmark/bm_app_strconcat.rb
@@ -1,5 +1,5 @@
i=0
-while i<500000
+while i<2_000_000
"#{1+1} #{1+1} #{1+1}"
i+=1
end
diff --git a/benchmark/bm_io_file_create.rb b/benchmark/bm_io_file_create.rb
index 7adbe9ea5e..2f205c1333 100644
--- a/benchmark/bm_io_file_create.rb
+++ b/benchmark/bm_io_file_create.rb
@@ -2,7 +2,7 @@
# Create files
#
-max = 50_000
+max = 200_000
file = './tmpfile_of_bm_io_file_create'
max.times{
diff --git a/benchmark/bm_io_file_read.rb b/benchmark/bm_io_file_read.rb
index 2b4212db76..b9e796ed30 100644
--- a/benchmark/bm_io_file_read.rb
+++ b/benchmark/bm_io_file_read.rb
@@ -4,7 +4,7 @@
require 'tempfile'
-max = 20_000
+max = 200_000
str = "Hello world! " * 1000
f = Tempfile.new('yarv-benchmark')
f.write str
diff --git a/benchmark/bm_io_file_write.rb b/benchmark/bm_io_file_write.rb
index 3cec58c6ae..aa1be0e5fe 100644
--- a/benchmark/bm_io_file_write.rb
+++ b/benchmark/bm_io_file_write.rb
@@ -4,7 +4,7 @@
require 'tempfile'
-max = 20_000
+max = 200_000
str = "Hello world! " * 1000
f = Tempfile.new('yarv-benchmark')
diff --git a/benchmark/bm_io_select.rb b/benchmark/bm_io_select.rb
new file mode 100644
index 0000000000..19248daeb1
--- /dev/null
+++ b/benchmark/bm_io_select.rb
@@ -0,0 +1,9 @@
+# IO.select performance
+
+w = [ IO.pipe[1] ];
+
+nr = 1000000
+nr.times {
+ IO.select nil, w
+}
+
diff --git a/benchmark/bm_io_select2.rb b/benchmark/bm_io_select2.rb
new file mode 100644
index 0000000000..7b167af774
--- /dev/null
+++ b/benchmark/bm_io_select2.rb
@@ -0,0 +1,18 @@
+# IO.select performance. worst case of single fd.
+
+ios = []
+nr = 1000000
+max = Process.getrlimit(Process::RLIMIT_NOFILE)[0]
+puts "max fd: #{max} (results not apparent with <= 1024 max fd)"
+
+((max / 2) - 10).times do
+ ios.concat IO.pipe
+end
+
+last = [ ios[-1] ]
+puts "last IO: #{last[0].inspect}"
+
+nr.times do
+ IO.select nil, last
+end
+
diff --git a/benchmark/bm_io_select3.rb b/benchmark/bm_io_select3.rb
new file mode 100644
index 0000000000..fcdbb96e0e
--- /dev/null
+++ b/benchmark/bm_io_select3.rb
@@ -0,0 +1,17 @@
+# IO.select performance. a lot of fd
+
+ios = []
+nr = 100
+max = Process.getrlimit(Process::RLIMIT_NOFILE)[0]
+puts "max fd: #{max} (results not apparent with <= 1024 max fd)"
+
+(max - 10).times do
+ r, w = IO.pipe
+ r.close
+ ios.push w
+end
+
+nr.times do
+ IO.select nil, ios
+end
+
diff --git a/benchmark/bm_so_concatenate.rb b/benchmark/bm_so_concatenate.rb
index 82629688b7..56b9410632 100644
--- a/benchmark/bm_so_concatenate.rb
+++ b/benchmark/bm_so_concatenate.rb
@@ -9,7 +9,7 @@ i=0
while i<10
i+=1
hello = ''
- 400000.times do |e|
+ 4_000_000.times do |e|
hello << STUFF
end
end
diff --git a/benchmark/bm_so_fannkuch.rb b/benchmark/bm_so_fannkuch.rb
index a214f2e205..bac5ecd44c 100644
--- a/benchmark/bm_so_fannkuch.rb
+++ b/benchmark/bm_so_fannkuch.rb
@@ -40,6 +40,6 @@ end
def puts *args
end
-N = 10 # (ARGV[0] || 1).to_i
+N = 9 # (ARGV[0] || 1).to_i
puts "Pfannkuchen(#{N}) = #{fannkuch(N)}"
diff --git a/benchmark/bm_so_lists.rb b/benchmark/bm_so_lists.rb
index 3652288881..f8d26797aa 100644
--- a/benchmark/bm_so_lists.rb
+++ b/benchmark/bm_so_lists.rb
@@ -1,6 +1,6 @@
#from http://www.bagley.org/~doug/shootout/bench/lists/lists.ruby
-NUM = 100
+NUM = 300
SIZE = 10000
def test_lists()
diff --git a/benchmark/bm_so_matrix.rb b/benchmark/bm_so_matrix.rb
index 0f274ad06c..e2c5c8e559 100644
--- a/benchmark/bm_so_matrix.rb
+++ b/benchmark/bm_so_matrix.rb
@@ -5,7 +5,7 @@
n = 60 #Integer(ARGV.shift || 1)
-size = 30
+size = 40
def mkmatrix(rows, cols)
count = 1
diff --git a/benchmark/bm_so_random.rb b/benchmark/bm_so_random.rb
index 83c0d6d380..57f700b863 100644
--- a/benchmark/bm_so_random.rb
+++ b/benchmark/bm_so_random.rb
@@ -10,7 +10,7 @@ def gen_random(max)
(max * ($last = ($last * IA + IC) % IM)) / IM
end
-N = 1000000
+N = 3_000_000
i=0
while i<N
diff --git a/benchmark/bm_so_sieve.rb b/benchmark/bm_so_sieve.rb
index dbe2bfa63d..3f1b138bd1 100644
--- a/benchmark/bm_so_sieve.rb
+++ b/benchmark/bm_so_sieve.rb
@@ -1,5 +1,5 @@
# from http://www.bagley.org/~doug/shootout/bench/sieve/sieve.ruby
-num = 40
+num = 500
count = i = j = 0
flags0 = Array.new(8192,1)
k = 0
diff --git a/benchmark/bm_vm1_block.rb b/benchmark/bm_vm1_block.rb
index 2dc4e72be5..0a97883974 100644
--- a/benchmark/bm_vm1_block.rb
+++ b/benchmark/bm_vm1_block.rb
@@ -3,8 +3,8 @@ def m
end
i=0
-while i<30000000 # while loop 1
+while i<30_000_000 # while loop 1
i+=1
m{
}
-end \ No newline at end of file
+end
diff --git a/benchmark/bm_vm1_const.rb b/benchmark/bm_vm1_const.rb
index 3e395d9478..066916dc31 100644
--- a/benchmark/bm_vm1_const.rb
+++ b/benchmark/bm_vm1_const.rb
@@ -1,7 +1,7 @@
Const = 1
i = 0
-while i<30000000 # while loop 1
+while i<30_000_000 # while loop 1
i+= 1
j = Const
k = Const
diff --git a/benchmark/bm_vm1_ensure.rb b/benchmark/bm_vm1_ensure.rb
index c3b71ead5a..b1948f7621 100644
--- a/benchmark/bm_vm1_ensure.rb
+++ b/benchmark/bm_vm1_ensure.rb
@@ -1,5 +1,5 @@
i=0
-while i<30000000 # benchmark loop 1
+while i<30_000_000 # benchmark loop 1
i+=1
begin
begin
diff --git a/benchmark/bm_vm1_ivar.rb b/benchmark/bm_vm1_ivar.rb
index 4de833a316..3ba56427f4 100644
--- a/benchmark/bm_vm1_ivar.rb
+++ b/benchmark/bm_vm1_ivar.rb
@@ -1,7 +1,7 @@
@a = 1
i = 0
-while i<30000000 # while loop 1
+while i<30_000_000 # while loop 1
i+= 1
j = @a
k = @a
diff --git a/benchmark/bm_vm1_length.rb b/benchmark/bm_vm1_length.rb
index 2d7d7f0b52..ccb773278f 100644
--- a/benchmark/bm_vm1_length.rb
+++ b/benchmark/bm_vm1_length.rb
@@ -1,7 +1,7 @@
a = 'abc'
b = [1, 2, 3]
i=0
-while i<30000000 # while loop 1
+while i<30_000_000 # while loop 1
i+=1
a.length
b.length
diff --git a/benchmark/bm_vm1_neq.rb b/benchmark/bm_vm1_neq.rb
index 212f056c6e..9254a0ca9b 100644
--- a/benchmark/bm_vm1_neq.rb
+++ b/benchmark/bm_vm1_neq.rb
@@ -2,7 +2,7 @@ i = 0
obj1 = Object.new
obj2 = Object.new
-while i<30000000 # while loop 1
+while i<30_000_000 # while loop 1
i+= 1
obj1 != obj2
end
diff --git a/benchmark/bm_vm1_not.rb b/benchmark/bm_vm1_not.rb
index f139fed8be..ee9d0f3605 100644
--- a/benchmark/bm_vm1_not.rb
+++ b/benchmark/bm_vm1_not.rb
@@ -1,7 +1,7 @@
i = 0
obj = Object.new
-while i<30000000 # while loop 1
+while i<30_000_000 # while loop 1
i+= 1
!obj
end
diff --git a/benchmark/bm_vm1_rescue.rb b/benchmark/bm_vm1_rescue.rb
index 0c98d00e0d..3af12bb0f3 100644
--- a/benchmark/bm_vm1_rescue.rb
+++ b/benchmark/bm_vm1_rescue.rb
@@ -1,5 +1,5 @@
i=0
-while i<30000000 # while loop 1
+while i<30_000_000 # while loop 1
i+=1
begin
rescue
diff --git a/benchmark/bm_vm1_simplereturn.rb b/benchmark/bm_vm1_simplereturn.rb
index c843ee3d97..8e9bcb0129 100644
--- a/benchmark/bm_vm1_simplereturn.rb
+++ b/benchmark/bm_vm1_simplereturn.rb
@@ -2,7 +2,7 @@ def m
return 1
end
i=0
-while i<30000000 # while loop 1
+while i<30_000_000 # while loop 1
i+=1
m
end
diff --git a/benchmark/bm_vm1_swap.rb b/benchmark/bm_vm1_swap.rb
index a565b6f6dc..611baf6b99 100644
--- a/benchmark/bm_vm1_swap.rb
+++ b/benchmark/bm_vm1_swap.rb
@@ -1,7 +1,7 @@
a = 1
b = 2
i=0
-while i<30000000 # while loop 1
+while i<30_000_000 # while loop 1
i+=1
a, b = b, a
end
diff --git a/benchmark/bm_vm2_array.rb b/benchmark/bm_vm2_array.rb
index e29c11200f..7713ae9f25 100644
--- a/benchmark/bm_vm2_array.rb
+++ b/benchmark/bm_vm2_array.rb
@@ -1,5 +1,5 @@
i=0
-while i<6000000 # benchmark loop 2
+while i<6_000_000 # benchmark loop 2
i+=1
a = [1,2,3,4,5,6,7,8,9,10]
end
diff --git a/benchmark/bm_vm2_case.rb b/benchmark/bm_vm2_case.rb
index 1ec34ad692..cd09788a85 100644
--- a/benchmark/bm_vm2_case.rb
+++ b/benchmark/bm_vm2_case.rb
@@ -1,5 +1,5 @@
i=0
-while i<6000000 # while loop 2
+while i<6_000_000 # while loop 2
case :foo
when :bar
raise
diff --git a/benchmark/bm_vm2_defined_method.rb b/benchmark/bm_vm2_defined_method.rb
new file mode 100644
index 0000000000..06c0d01baa
--- /dev/null
+++ b/benchmark/bm_vm2_defined_method.rb
@@ -0,0 +1,9 @@
+class Object
+ define_method(:m){}
+end
+
+i=0
+while i<6_000_000 # benchmark loop 2
+ i+=1
+ m; m; m; m; m; m; m; m;
+end
diff --git a/benchmark/bm_vm2_eval.rb b/benchmark/bm_vm2_eval.rb
index 375dccc00e..e72b4661ac 100644
--- a/benchmark/bm_vm2_eval.rb
+++ b/benchmark/bm_vm2_eval.rb
@@ -1,5 +1,5 @@
i=0
-while i<6000000 # benchmark loop 2
+while i<6_000_000 # benchmark loop 2
i+=1
eval("1")
end
diff --git a/benchmark/bm_vm2_method.rb b/benchmark/bm_vm2_method.rb
index cc94b8ab3d..f92e39a73f 100644
--- a/benchmark/bm_vm2_method.rb
+++ b/benchmark/bm_vm2_method.rb
@@ -3,7 +3,7 @@ def m
end
i=0
-while i<6000000 # benchmark loop 2
+while i<6_000_000 # benchmark loop 2
i+=1
m; m; m; m; m; m; m; m;
end
diff --git a/benchmark/bm_vm2_mutex.rb b/benchmark/bm_vm2_mutex.rb
index 9ec1a0f136..01b1c478cb 100644
--- a/benchmark/bm_vm2_mutex.rb
+++ b/benchmark/bm_vm2_mutex.rb
@@ -3,7 +3,7 @@ require 'thread'
m = Mutex.new
i=0
-while i<6000000 # benchmark loop 2
+while i<6_000_000 # benchmark loop 2
i+=1
m.synchronize{}
end
diff --git a/benchmark/bm_vm2_poly_method.rb b/benchmark/bm_vm2_poly_method.rb
index ac9953ce5f..921457d817 100644
--- a/benchmark/bm_vm2_poly_method.rb
+++ b/benchmark/bm_vm2_poly_method.rb
@@ -13,7 +13,7 @@ o1 = C1.new
o2 = C2.new
i=0
-while i<6000000 # benchmark loop 2
+while i<6_000_000 # benchmark loop 2
o = (i % 2 == 0) ? o1 : o2
o.m; o.m; o.m; o.m; o.m; o.m; o.m; o.m
i+=1
diff --git a/benchmark/bm_vm2_poly_method_ov.rb b/benchmark/bm_vm2_poly_method_ov.rb
index 856ba9b161..bf09837dd7 100644
--- a/benchmark/bm_vm2_poly_method_ov.rb
+++ b/benchmark/bm_vm2_poly_method_ov.rb
@@ -13,7 +13,7 @@ o1 = C1.new
o2 = C2.new
i=0
-while i<6000000 # benchmark loop 2
+while i<6_000_000 # benchmark loop 2
o = (i % 2 == 0) ? o1 : o2
# o.m; o.m; o.m; o.m; o.m; o.m; o.m; o.m
i+=1
diff --git a/benchmark/bm_vm2_proc.rb b/benchmark/bm_vm2_proc.rb
index 0bd05b9544..3f51056bf9 100644
--- a/benchmark/bm_vm2_proc.rb
+++ b/benchmark/bm_vm2_proc.rb
@@ -7,7 +7,7 @@ pr = m{
}
i=0
-while i<6000000 # benchmark loop 2
+while i<6_000_000 # benchmark loop 2
i+=1
pr.call
end
diff --git a/benchmark/bm_vm2_regexp.rb b/benchmark/bm_vm2_regexp.rb
index 44f6ed402e..428099e55a 100644
--- a/benchmark/bm_vm2_regexp.rb
+++ b/benchmark/bm_vm2_regexp.rb
@@ -1,6 +1,6 @@
i=0
str = 'xxxhogexxx'
-while i<6000000 # benchmark loop 2
+while i<6_000_000 # benchmark loop 2
/hoge/ =~ str
i+=1
end
diff --git a/benchmark/bm_vm2_send.rb b/benchmark/bm_vm2_send.rb
index c20dbdd26c..37c79fb1c3 100644
--- a/benchmark/bm_vm2_send.rb
+++ b/benchmark/bm_vm2_send.rb
@@ -6,7 +6,7 @@ end
o = C.new
i=0
-while i<6000000 # benchmark loop 2
+while i<6_000_000 # benchmark loop 2
i+=1
o.__send__ :m
end
diff --git a/benchmark/bm_vm2_super.rb b/benchmark/bm_vm2_super.rb
index 70c86b376f..d4f0b647de 100644
--- a/benchmark/bm_vm2_super.rb
+++ b/benchmark/bm_vm2_super.rb
@@ -14,7 +14,7 @@ end
obj = CC.new
i = 0
-while i<6000000 # benchmark loop 2
+while i<6_000_000 # benchmark loop 2
obj.m
i+=1
end
diff --git a/benchmark/bm_vm2_unif1.rb b/benchmark/bm_vm2_unif1.rb
index e12bd2ade0..775f4d37e6 100644
--- a/benchmark/bm_vm2_unif1.rb
+++ b/benchmark/bm_vm2_unif1.rb
@@ -2,7 +2,7 @@ i = 0
def m a, b
end
-while i<6000000 # benchmark loop 2
+while i<6_000_000 # benchmark loop 2
i+=1
m 100, 200
end
diff --git a/benchmark/bm_vm2_zsuper.rb b/benchmark/bm_vm2_zsuper.rb
index 3a75960403..7e90df1822 100644
--- a/benchmark/bm_vm2_zsuper.rb
+++ b/benchmark/bm_vm2_zsuper.rb
@@ -14,7 +14,7 @@ end
obj = CC.new
-while i<6000000 # benchmark loop 2
+while i<6_000_000 # benchmark loop 2
obj.m 10
i+=1
end
diff --git a/benchmark/bm_vm3_clearmethodcache.rb b/benchmark/bm_vm3_clearmethodcache.rb
new file mode 100644
index 0000000000..a25c372f06
--- /dev/null
+++ b/benchmark/bm_vm3_clearmethodcache.rb
@@ -0,0 +1,8 @@
+i=0
+while i<200_000
+ i+=1
+
+ Class.new{
+ def m; end
+ }
+end
diff --git a/benchmark/bm_vm_thread_alive_check1.rb b/benchmark/bm_vm_thread_alive_check1.rb
new file mode 100644
index 0000000000..c993accdda
--- /dev/null
+++ b/benchmark/bm_vm_thread_alive_check1.rb
@@ -0,0 +1,6 @@
+5_000.times{
+ t = Thread.new{}
+ while t.alive?
+ Thread.pass
+ end
+}
diff --git a/benchmark/bm_vm3_thread_create_join.rb b/benchmark/bm_vm_thread_create_join.rb
index 325a66d587..325a66d587 100644
--- a/benchmark/bm_vm3_thread_create_join.rb
+++ b/benchmark/bm_vm_thread_create_join.rb
diff --git a/benchmark/bm_vm_thread_mutex1.rb b/benchmark/bm_vm_thread_mutex1.rb
new file mode 100644
index 0000000000..588506e87c
--- /dev/null
+++ b/benchmark/bm_vm_thread_mutex1.rb
@@ -0,0 +1,21 @@
+# one thread, one mutex (no contention)
+
+require 'thread'
+m = Mutex.new
+r = 0
+max = 2000
+lmax = max * max
+(1..1).map{
+ Thread.new{
+ i=0
+ while i<lmax
+ i+=1
+ m.synchronize{
+ r += 1
+ }
+ end
+ }
+}.each{|e|
+ e.join
+}
+raise r.to_s if r != max * max
diff --git a/benchmark/bm_vm_thread_mutex2.rb b/benchmark/bm_vm_thread_mutex2.rb
new file mode 100644
index 0000000000..d700b146d4
--- /dev/null
+++ b/benchmark/bm_vm_thread_mutex2.rb
@@ -0,0 +1,21 @@
+# two threads, one mutex
+
+require 'thread'
+m = Mutex.new
+r = 0
+max = 2000
+lmax = (max * max)/2
+(1..2).map{
+ Thread.new{
+ i=0
+ while i<lmax
+ i+=1
+ m.synchronize{
+ r += 1
+ }
+ end
+ }
+}.each{|e|
+ e.join
+}
+raise r.to_s if r != max * max
diff --git a/benchmark/bm_vm3_thread_mutex.rb b/benchmark/bm_vm_thread_mutex3.rb
index 649f1fddac..f502b6ac84 100644
--- a/benchmark/bm_vm3_thread_mutex.rb
+++ b/benchmark/bm_vm_thread_mutex3.rb
@@ -1,7 +1,9 @@
+# 1000 threads, one mutex
+
require 'thread'
m = Mutex.new
r = 0
-max = 1000
+max = 2000
(1..max).map{
Thread.new{
i=0
diff --git a/benchmark/bm_vm_thread_pass.rb b/benchmark/bm_vm_thread_pass.rb
new file mode 100644
index 0000000000..b5b3c0bc85
--- /dev/null
+++ b/benchmark/bm_vm_thread_pass.rb
@@ -0,0 +1,15 @@
+# Plenty Thtread.pass
+# A performance may depend on GVL implementation.
+
+tmax = (ARGV.shift || 2).to_i
+lmax = 200_000 / tmax
+
+(1..tmax).map{
+ Thread.new{
+ lmax.times{
+ Thread.pass
+ }
+ }
+}.each{|t| t.join}
+
+
diff --git a/benchmark/bm_vm_thread_pass_flood.rb b/benchmark/bm_vm_thread_pass_flood.rb
new file mode 100644
index 0000000000..56b5b0a956
--- /dev/null
+++ b/benchmark/bm_vm_thread_pass_flood.rb
@@ -0,0 +1,8 @@
+1000.times{
+ Thread.new{loop{Thread.pass}}
+}
+
+i=0
+while i<10000
+ i += 1
+end
diff --git a/benchmark/bm_vm_thread_pipe.rb b/benchmark/bm_vm_thread_pipe.rb
new file mode 100644
index 0000000000..272d231eba
--- /dev/null
+++ b/benchmark/bm_vm_thread_pipe.rb
@@ -0,0 +1,17 @@
+# Mesure small and plenty pipe read/write.
+# A performance may depend on GVL implementation.
+
+lmax = 100_000
+r, w = IO.pipe
+[Thread.new{
+ lmax.times{
+ w.write('a')
+ }
+ p "w:exit"
+}, Thread.new{
+ lmax.times{
+ r.read(1)
+ }
+ p "r:exit"
+}].each{|t| t.join}
+
diff --git a/benchmark/driver.rb b/benchmark/driver.rb
index 4a1afe360b..7dab292a15 100644
--- a/benchmark/driver.rb
+++ b/benchmark/driver.rb
@@ -4,8 +4,6 @@
first = true
-p RUBY_VERSION
-
begin
require 'optparse'
rescue LoadError
@@ -50,7 +48,7 @@ class BenchmarkDriver
def progress_message *args
unless STDOUT.tty?
- STDERR.print(*args)
+ STDERR.print(*args)
STDERR.flush
end
end
@@ -92,6 +90,10 @@ class BenchmarkDriver
end
end
+ def average results
+ results.inject(:+) / results.length
+ end
+
def show_results
output
@@ -111,7 +113,10 @@ class BenchmarkDriver
output "minimum results in each #{@repeat} measurements."
end
- output "name\t#{@execs.map{|(e, v)| v}.join("\t")}"
+ difference = "\taverage difference" if @execs.length == 2
+ total_difference = 0
+
+ output "name\t#{@execs.map{|(e, v)| v}.join("\t")}#{difference}"
@results.each{|v, result|
rets = []
s = nil
@@ -131,8 +136,20 @@ class BenchmarkDriver
end
rets << sprintf("%.3f", r)
}
+
+ if difference
+ diff = average(result.last) - average(result.first)
+ total_difference += diff
+ rets << sprintf("%.3f", diff)
+ end
+
output "#{v}#{s}\t#{rets.join("\t")}"
}
+
+ if difference and @verbose
+ output '-----------------------------------------------------------'
+ output "average total difference is #{total_difference}"
+ end
end
def files
@@ -207,7 +224,7 @@ class BenchmarkDriver
}
if $? != 0
- raise "Benchmark process exited with abnormal status (#{$?})"
+ raise "\`#{cmd}\' exited with abnormal status (#{$?})"
end
m.real
diff --git a/benchmark/other-lang/eval.rb b/benchmark/other-lang/eval.rb
index 3875927389..48a2cea019 100644
--- a/benchmark/other-lang/eval.rb
+++ b/benchmark/other-lang/eval.rb
@@ -51,14 +51,14 @@ Bench.each{|b|
require 'pp'
# utime
-puts Lang.join("\t")
+puts Lang.join("\t")
Bench.each_with_index{|b, bi|
print b, "\t"
puts Result[bi].map{|e| e[0]}.join("\t")
}
# rtime
-puts Lang.join("\t")
+puts Lang.join("\t")
Bench.each_with_index{|b, bi|
print b, "\t"
puts Result[bi].map{|e| e[1]}.join("\t")
diff --git a/benchmark/report.rb b/benchmark/report.rb
index e931966cca..d2dc56b1e1 100644
--- a/benchmark/report.rb
+++ b/benchmark/report.rb
@@ -24,10 +24,8 @@ def exec_command type, file, w
end
def benchmark cmd
- rubybin = ENV['RUBY'] || File.join(
- RbConfig::CONFIG["bindir"],
- RbConfig::CONFIG["ruby_install_name"] + RbConfig::CONFIG["EXEEXT"])
-
+ rubybin = ENV['RUBY'] || RbConfig.ruby
+
IO.popen(rubybin, 'r+'){|io|
io.write cmd
io.close_write
diff --git a/benchmark/run.rb b/benchmark/run.rb
index 6ef2943642..0cd2363849 100644
--- a/benchmark/run.rb
+++ b/benchmark/run.rb
@@ -33,8 +33,8 @@ def bm file
bm_name = $1
puts '-----------------------------------------------------------' unless $rubyonly || $matzrubyonly
puts "#{bm_name}: "
-
-
+
+
puts <<EOS unless $matzrubyonly || $rubyonly
#{prog}
--
@@ -93,7 +93,7 @@ if $0 == __FILE__
ARGV.delete_if{|arg|
/\A-/ =~ arg
}
-
+
puts "MatzRuby:"
system("#{$matzruby_program} -v")
puts "Ruby:"
diff --git a/benchmark/runc.rb b/benchmark/runc.rb
index ec1d36a61b..97c5cef045 100644
--- a/benchmark/runc.rb
+++ b/benchmark/runc.rb
@@ -5,9 +5,7 @@
require 'benchmark'
require 'rbconfig'
-$rubybin = ENV['RUBY'] || File.join(
- RbConfig::CONFIG["bindir"],
- RbConfig::CONFIG["ruby_install_name"] + RbConfig::CONFIG["EXEEXT"])
+$rubybin = ENV['RUBY'] || RbConfig.ruby
def runfile file
puts file
diff --git a/bignum.c b/bignum.c
index a6589a2531..9c289f7a8e 100644
--- a/bignum.c
+++ b/bignum.c
@@ -10,6 +10,8 @@
**********************************************************************/
#include "ruby/ruby.h"
+#include "ruby/util.h"
+#include "internal.h"
#include <math.h>
#include <float.h>
@@ -21,6 +23,8 @@
VALUE rb_cBignum;
+static VALUE big_three = Qnil;
+
#if defined __MINGW32__
#define USHORT _USHORT
#endif
@@ -28,12 +32,13 @@ VALUE rb_cBignum;
#define BDIGITS(x) (RBIGNUM_DIGITS(x))
#define BITSPERDIG (SIZEOF_BDIGITS*CHAR_BIT)
#define BIGRAD ((BDIGIT_DBL)1 << BITSPERDIG)
-#define DIGSPERLONG ((unsigned int)(SIZEOF_LONG/SIZEOF_BDIGITS))
+#define BIGRAD_HALF ((BDIGIT)(BIGRAD >> 1))
+#define DIGSPERLONG (SIZEOF_LONG/SIZEOF_BDIGITS)
#if HAVE_LONG_LONG
-# define DIGSPERLL ((unsigned int)(SIZEOF_LONG_LONG/SIZEOF_BDIGITS))
+# define DIGSPERLL (SIZEOF_LONG_LONG/SIZEOF_BDIGITS)
#endif
#define BIGUP(x) ((BDIGIT_DBL)(x) << BITSPERDIG)
-#define BIGDN(x) RSHIFT(x,BITSPERDIG)
+#define BIGDN(x) RSHIFT((x),BITSPERDIG)
#define BIGLO(x) ((BDIGIT)((x) & (BIGRAD-1)))
#define BDIGMAX ((BDIGIT)-1)
@@ -41,17 +46,50 @@ VALUE rb_cBignum;
(BDIGITS(x)[0] == 0 && \
(RBIGNUM_LEN(x) == 1 || bigzero_p(x))))
+#define BIGNUM_DEBUG 0
+#if BIGNUM_DEBUG
+#define ON_DEBUG(x) do { x; } while (0)
+static void
+dump_bignum(VALUE x)
+{
+ long i;
+ printf("%c0x0", RBIGNUM_SIGN(x) ? '+' : '-');
+ for (i = RBIGNUM_LEN(x); i--; ) {
+ printf("_%08"PRIxBDIGIT, BDIGITS(x)[i]);
+ }
+ printf(", len=%lu", RBIGNUM_LEN(x));
+ puts("");
+}
+
+static VALUE
+rb_big_dump(VALUE x)
+{
+ dump_bignum(x);
+ return x;
+}
+#else
+#define ON_DEBUG(x)
+#endif
+
static int
bigzero_p(VALUE x)
{
long i;
+ BDIGIT *ds = BDIGITS(x);
+
for (i = RBIGNUM_LEN(x) - 1; 0 <= i; i--) {
- if (BDIGITS(x)[i]) return 0;
+ if (ds[i]) return 0;
}
return 1;
}
int
+rb_bigzero_p(VALUE x)
+{
+ return BIGZEROP(x);
+}
+
+int
rb_cmpint(VALUE val, VALUE a, VALUE b)
{
if (NIL_P(val)) {
@@ -132,20 +170,28 @@ bignew_1(VALUE klass, long len, int sign)
RBIGNUM_SET_LEN(big, len);
}
else {
- rb_big_resize((VALUE)big, len);
+ RBIGNUM(big)->as.heap.digits = ALLOC_N(BDIGIT, len);
+ RBIGNUM(big)->as.heap.len = len;
}
return (VALUE)big;
}
-#define bignew(len,sign) bignew_1(rb_cBignum,len,sign)
+#define bignew(len,sign) bignew_1(rb_cBignum,(len),(sign))
+
+VALUE
+rb_big_new(long len, int sign)
+{
+ return bignew(len, sign != 0);
+}
VALUE
rb_big_clone(VALUE x)
{
- VALUE z = bignew_1(CLASS_OF(x), RBIGNUM_LEN(x), RBIGNUM_SIGN(x));
+ long len = RBIGNUM_LEN(x);
+ VALUE z = bignew_1(CLASS_OF(x), len, RBIGNUM_SIGN(x));
- MEMCPY(BDIGITS(z), BDIGITS(x), BDIGIT, RBIGNUM_LEN(x));
+ MEMCPY(BDIGITS(z), BDIGITS(x), BDIGIT, len);
return z;
}
@@ -186,18 +232,20 @@ bigtrunc(VALUE x)
if (len == 0) return x;
while (--len && !ds[len]);
- rb_big_resize(x, len+1);
+ if (RBIGNUM_LEN(x) > len+1) {
+ rb_big_resize(x, len+1);
+ }
return x;
}
-static VALUE
+static inline VALUE
bigfixize(VALUE x)
{
long len = RBIGNUM_LEN(x);
BDIGIT *ds = BDIGITS(x);
if (len == 0) return INT2FIX(0);
- if (len*SIZEOF_BDIGITS <= sizeof(long)) {
+ if ((size_t)(len*SIZEOF_BDIGITS) <= sizeof(long)) {
long num = 0;
#if 2*SIZEOF_BDIGITS > SIZEOF_LONG
num = (long)ds[0];
@@ -285,7 +333,110 @@ rb_int2inum(SIGNED_VALUE n)
return rb_int2big(n);
}
-#if SIZEOF_BDIGITS*2 == SIZEOF_LONG_LONG
+#if SIZEOF_LONG % SIZEOF_BDIGITS != 0
+# error unexpected SIZEOF_LONG : SIZEOF_BDIGITS ratio
+#endif
+
+/*
+ * buf is an array of long integers.
+ * buf is ordered from least significant word to most significant word.
+ * buf[0] is the least significant word and
+ * buf[num_longs-1] is the most significant word.
+ * This means words in buf is little endian.
+ * However each word in buf is native endian.
+ * (buf[i]&1) is the least significant bit and
+ * (buf[i]&(1<<(SIZEOF_LONG*CHAR_BIT-1))) is the most significant bit
+ * for each 0 <= i < num_longs.
+ * So buf is little endian at whole on a little endian machine.
+ * But buf is mixed endian on a big endian machine.
+ */
+void
+rb_big_pack(VALUE val, unsigned long *buf, long num_longs)
+{
+ val = rb_to_int(val);
+ if (num_longs == 0)
+ return;
+ if (FIXNUM_P(val)) {
+ long i;
+ long tmp = FIX2LONG(val);
+ buf[0] = (unsigned long)tmp;
+ tmp = tmp < 0 ? ~0L : 0;
+ for (i = 1; i < num_longs; i++)
+ buf[i] = (unsigned long)tmp;
+ return;
+ }
+ else {
+ long len = RBIGNUM_LEN(val);
+ BDIGIT *ds = BDIGITS(val), *dend = ds + len;
+ long i, j;
+ for (i = 0; i < num_longs && ds < dend; i++) {
+ unsigned long l = 0;
+ for (j = 0; j < DIGSPERLONG && ds < dend; j++, ds++) {
+ l |= ((unsigned long)*ds << (j * BITSPERDIG));
+ }
+ buf[i] = l;
+ }
+ for (; i < num_longs; i++)
+ buf[i] = 0;
+ if (RBIGNUM_NEGATIVE_P(val)) {
+ for (i = 0; i < num_longs; i++) {
+ buf[i] = ~buf[i];
+ }
+ for (i = 0; i < num_longs; i++) {
+ buf[i]++;
+ if (buf[i] != 0)
+ return;
+ }
+ }
+ }
+}
+
+/* See rb_big_pack comment for endianness of buf. */
+VALUE
+rb_big_unpack(unsigned long *buf, long num_longs)
+{
+ while (2 <= num_longs) {
+ if (buf[num_longs-1] == 0 && (long)buf[num_longs-2] >= 0)
+ num_longs--;
+ else if (buf[num_longs-1] == ~0UL && (long)buf[num_longs-2] < 0)
+ num_longs--;
+ else
+ break;
+ }
+ if (num_longs == 0)
+ return INT2FIX(0);
+ else if (num_longs == 1)
+ return LONG2NUM((long)buf[0]);
+ else {
+ VALUE big;
+ BDIGIT *ds;
+ long len = num_longs * DIGSPERLONG;
+ long i;
+ big = bignew(len, 1);
+ ds = BDIGITS(big);
+ for (i = 0; i < num_longs; i++) {
+ unsigned long d = buf[i];
+#if SIZEOF_LONG == SIZEOF_BDIGITS
+ *ds++ = d;
+#else
+ int j;
+ for (j = 0; j < DIGSPERLONG; j++) {
+ *ds++ = BIGLO(d);
+ d = BIGDN(d);
+ }
+#endif
+ }
+ if ((long)buf[num_longs-1] < 0) {
+ get2comp(big);
+ RBIGNUM_SET_SIGN(big, 0);
+ }
+ return bignorm(big);
+ }
+}
+
+#define QUAD_SIZE 8
+
+#if SIZEOF_LONG_LONG == QUAD_SIZE && SIZEOF_BDIGITS*2 == SIZEOF_LONG_LONG
void
rb_quad_pack(char *buf, VALUE val)
@@ -355,7 +506,19 @@ rb_quad_unpack(const char *buf, int sign)
#else
-#define QUAD_SIZE 8
+static int
+quad_buf_complement(char *buf, size_t len)
+{
+ size_t i;
+ for (i = 0; i < len; i++)
+ buf[i] = ~buf[i];
+ for (i = 0; i < len; i++) {
+ buf[i]++;
+ if (buf[i] != 0)
+ return 0;
+ }
+ return 1;
+}
void
rb_quad_pack(char *buf, VALUE val)
@@ -369,19 +532,15 @@ rb_quad_pack(char *buf, VALUE val)
}
len = RBIGNUM_LEN(val) * SIZEOF_BDIGITS;
if (len > QUAD_SIZE) {
- rb_raise(rb_eRangeError, "bignum too big to convert into `quad int'");
+ len = QUAD_SIZE;
}
memcpy(buf, (char*)BDIGITS(val), len);
- if (!RBIGNUM_SIGN(val)) {
- len = QUAD_SIZE;
- while (len--) {
- *buf = ~*buf;
- buf++;
- }
+ if (RBIGNUM_NEGATIVE_P(val)) {
+ quad_buf_complement(buf, QUAD_SIZE);
}
}
-#define BNEG(b) (RSHIFT(((BDIGIT*)b)[QUAD_SIZE/SIZEOF_BDIGITS-1],BITSPERDIG-1) != 0)
+#define BNEG(b) (RSHIFT(((BDIGIT*)(b))[QUAD_SIZE/SIZEOF_BDIGITS-1],BITSPERDIG-1) != 0)
VALUE
rb_quad_unpack(const char *buf, int sign)
@@ -390,14 +549,10 @@ rb_quad_unpack(const char *buf, int sign)
memcpy((char*)BDIGITS(big), buf, QUAD_SIZE);
if (sign && BNEG(buf)) {
- long len = QUAD_SIZE;
char *tmp = (char*)BDIGITS(big);
RBIGNUM_SET_SIGN(big, 0);
- while (len--) {
- *tmp = ~*tmp;
- tmp++;
- }
+ quad_buf_complement(tmp, QUAD_SIZE);
}
return bignorm(big);
@@ -418,6 +573,8 @@ rb_cstr_to_inum(const char *str, int base, int badcheck)
VALUE z;
BDIGIT *zds;
+#undef ISDIGIT
+#define ISDIGIT(c) ('0' <= (c) && (c) <= '9')
#define conv_digit(c) \
(!ISASCII(c) ? -1 : \
ISDIGIT(c) ? ((c) - '0') : \
@@ -529,7 +686,7 @@ rb_cstr_to_inum(const char *str, int base, int badcheck)
}
len *= strlen(str)*sizeof(char);
- if (len <= (sizeof(long)*CHAR_BIT)) {
+ if ((size_t)len <= (sizeof(long)*CHAR_BIT)) {
unsigned long val = STRTOUL(str, &end, base);
if (str < end && *end == '_') goto bigparse;
@@ -606,6 +763,8 @@ rb_str_to_inum(VALUE str, int base, int badcheck)
{
char *s;
long len;
+ VALUE v = 0;
+ VALUE ret;
StringValue(str);
if (badcheck) {
@@ -617,14 +776,17 @@ rb_str_to_inum(VALUE str, int base, int badcheck)
if (s) {
len = RSTRING_LEN(str);
if (s[len]) { /* no sentinel somehow */
- char *p = ALLOCA_N(char, len+1);
+ char *p = ALLOCV(v, len+1);
MEMCPY(p, s, char, len);
p[len] = '\0';
s = p;
}
}
- return rb_cstr_to_inum(s, base, badcheck);
+ ret = rb_cstr_to_inum(s, base, badcheck);
+ if (v)
+ ALLOCV_END(v);
+ return ret;
}
#if HAVE_LONG_LONG
@@ -698,7 +860,7 @@ rb_str2inum(VALUE str, int base)
const char ruby_digitmap[] = "0123456789abcdefghijklmnopqrstuvwxyz";
static VALUE bigsqr(VALUE x);
-static void bigdivmod(VALUE x, VALUE y, VALUE *divp, VALUE *modp);
+static void bigdivmod(VALUE x, VALUE y, volatile VALUE *divp, volatile VALUE *modp);
#define POW2_P(x) (((x)&((x)-1))==0)
@@ -794,7 +956,8 @@ power_cache_get_power0(int base, int i)
static VALUE
power_cache_get_power(int base, long n1, long* m1)
{
- long i, j, m;
+ int i, m;
+ long j;
VALUE t;
if (n1 <= KARATSUBA_DIGITS)
@@ -983,7 +1146,7 @@ rb_big2str(VALUE x, int base)
/*
* call-seq:
- * big.to_s(base=10) => string
+ * big.to_s(base=10) -> string
*
* Returns a string containing the representation of <i>big</i> radix
* <i>base</i> (2 through 36).
@@ -1034,7 +1197,7 @@ big2ulong(VALUE x, const char *type, int check)
VALUE
rb_big2ulong_pack(VALUE x)
{
- VALUE num = big2ulong(x, "unsigned long", Qfalse);
+ VALUE num = big2ulong(x, "unsigned long", FALSE);
if (!RBIGNUM_SIGN(x)) {
return (VALUE)(-(SIGNED_VALUE)num);
}
@@ -1044,10 +1207,10 @@ rb_big2ulong_pack(VALUE x)
VALUE
rb_big2ulong(VALUE x)
{
- VALUE num = big2ulong(x, "unsigned long", Qtrue);
+ VALUE num = big2ulong(x, "unsigned long", TRUE);
if (!RBIGNUM_SIGN(x)) {
- if ((SIGNED_VALUE)num < 0) {
+ if ((long)num < 0) {
rb_raise(rb_eRangeError, "bignum out of range of unsigned long");
}
return (VALUE)(-(SIGNED_VALUE)num);
@@ -1058,10 +1221,10 @@ rb_big2ulong(VALUE x)
SIGNED_VALUE
rb_big2long(VALUE x)
{
- VALUE num = big2ulong(x, "long", Qtrue);
+ VALUE num = big2ulong(x, "long", TRUE);
- if ((SIGNED_VALUE)num < 0 &&
- (RBIGNUM_SIGN(x) || (SIGNED_VALUE)num != LONG_MIN)) {
+ if ((long)num < 0 &&
+ (RBIGNUM_SIGN(x) || (long)num != LONG_MIN)) {
rb_raise(rb_eRangeError, "bignum too big to convert into `long'");
}
if (!RBIGNUM_SIGN(x)) return -(SIGNED_VALUE)num;
@@ -1176,7 +1339,7 @@ static double
big2dbl(VALUE x)
{
double d = 0.0;
- long i = RBIGNUM_LEN(x), lo = 0, bits;
+ long i = (bigtrunc(x), RBIGNUM_LEN(x)), lo = 0, bits;
BDIGIT *ds = BDIGITS(x), dl;
if (i) {
@@ -1194,20 +1357,27 @@ big2dbl(VALUE x)
}
dl = ds[i];
if (bits && (dl & (1UL << (bits %= BITSPERDIG)))) {
- int carry = dl & ~(~0UL << bits);
+ int carry = dl & ~(~(BDIGIT)0 << bits);
if (!carry) {
while (i-- > 0) {
if ((carry = ds[i]) != 0) break;
}
}
if (carry) {
- dl &= ~0UL << bits;
- dl += 1UL << bits;
+ dl &= (BDIGIT)~0 << bits;
+ dl += (BDIGIT)1 << bits;
if (!dl) d += 1;
}
}
d = dl + BIGRAD*d;
- if (lo) d = ldexp(d, lo * BITSPERDIG);
+ if (lo) {
+ if (lo > INT_MAX / BITSPERDIG)
+ d = HUGE_VAL;
+ else if (lo < INT_MIN / BITSPERDIG)
+ d = 0.0;
+ else
+ d = ldexp(d, (int)(lo * BITSPERDIG));
+ }
}
}
if (!RBIGNUM_SIGN(x)) d = -d;
@@ -1221,7 +1391,10 @@ rb_big2dbl(VALUE x)
if (isinf(d)) {
rb_warning("Bignum out of Float range");
- d = HUGE_VAL;
+ if (d < 0.0)
+ d = -HUGE_VAL;
+ else
+ d = HUGE_VAL;
}
return d;
}
@@ -1243,7 +1416,7 @@ rb_big_to_f(VALUE x)
/*
* call-seq:
- * big <=> numeric => -1, 0, +1
+ * big <=> numeric -> -1, 0, +1 or nil
*
* Comparison---Returns -1, 0, or +1 depending on whether <i>big</i> is
* less than, equal to, or greater than <i>numeric</i>. This is the
@@ -1255,6 +1428,7 @@ VALUE
rb_big_cmp(VALUE x, VALUE y)
{
long xlen = RBIGNUM_LEN(x);
+ BDIGIT *xds, *yds;
switch (TYPE(y)) {
case T_FIXNUM:
@@ -1265,7 +1439,15 @@ rb_big_cmp(VALUE x, VALUE y)
break;
case T_FLOAT:
- return rb_dbl_cmp(rb_big2dbl(x), RFLOAT_VALUE(y));
+ {
+ double a = RFLOAT_VALUE(y);
+
+ if (isinf(a)) {
+ if (a > 0.0) return INT2FIX(-1);
+ else return INT2FIX(1);
+ }
+ return rb_dbl_cmp(rb_big2dbl(x), a);
+ }
default:
return rb_num_coerce_cmp(x, y, rb_intern("<=>"));
@@ -1278,16 +1460,125 @@ rb_big_cmp(VALUE x, VALUE y)
if (xlen > RBIGNUM_LEN(y))
return (RBIGNUM_SIGN(x)) ? INT2FIX(1) : INT2FIX(-1);
- while(xlen-- && (BDIGITS(x)[xlen]==BDIGITS(y)[xlen]));
+ xds = BDIGITS(x);
+ yds = BDIGITS(y);
+
+ while(xlen-- && (xds[xlen]==yds[xlen]));
if (-1 == xlen) return INT2FIX(0);
- return (BDIGITS(x)[xlen] > BDIGITS(y)[xlen]) ?
+ return (xds[xlen] > yds[xlen]) ?
(RBIGNUM_SIGN(x) ? INT2FIX(1) : INT2FIX(-1)) :
(RBIGNUM_SIGN(x) ? INT2FIX(-1) : INT2FIX(1));
}
+static VALUE
+big_op(VALUE x, VALUE y, int op)
+{
+ VALUE rel;
+ int n;
+
+ switch (TYPE(y)) {
+ case T_FIXNUM:
+ case T_BIGNUM:
+ rel = rb_big_cmp(x, y);
+ break;
+
+ case T_FLOAT:
+ {
+ double a = RFLOAT_VALUE(y);
+
+ if (isinf(a)) {
+ if (a > 0.0) rel = INT2FIX(-1);
+ else rel = INT2FIX(1);
+ break;
+ }
+ rel = rb_dbl_cmp(rb_big2dbl(x), a);
+ break;
+ }
+
+ default:
+ {
+ ID id = 0;
+ switch (op) {
+ case 0: id = '>'; break;
+ case 1: id = rb_intern(">="); break;
+ case 2: id = '<'; break;
+ case 3: id = rb_intern("<="); break;
+ }
+ return rb_num_coerce_relop(x, y, id);
+ }
+ }
+
+ if (NIL_P(rel)) return Qfalse;
+ n = FIX2INT(rel);
+
+ switch (op) {
+ case 0: return n > 0 ? Qtrue : Qfalse;
+ case 1: return n >= 0 ? Qtrue : Qfalse;
+ case 2: return n < 0 ? Qtrue : Qfalse;
+ case 3: return n <= 0 ? Qtrue : Qfalse;
+ }
+ return Qundef;
+}
+
+/*
+ * call-seq:
+ * big > real -> true or false
+ *
+ * Returns <code>true</code> if the value of <code>big</code> is
+ * greater than that of <code>real</code>.
+ */
+
+static VALUE
+big_gt(VALUE x, VALUE y)
+{
+ return big_op(x, y, 0);
+}
+
+/*
+ * call-seq:
+ * big >= real -> true or false
+ *
+ * Returns <code>true</code> if the value of <code>big</code> is
+ * greater than or equal to that of <code>real</code>.
+ */
+
+static VALUE
+big_ge(VALUE x, VALUE y)
+{
+ return big_op(x, y, 1);
+}
+
+/*
+ * call-seq:
+ * big < real -> true or false
+ *
+ * Returns <code>true</code> if the value of <code>big</code> is
+ * less than that of <code>real</code>.
+ */
+
+static VALUE
+big_lt(VALUE x, VALUE y)
+{
+ return big_op(x, y, 2);
+}
+
+/*
+ * call-seq:
+ * big <= real -> true or false
+ *
+ * Returns <code>true</code> if the value of <code>big</code> is
+ * less than or equal to that of <code>real</code>.
+ */
+
+static VALUE
+big_le(VALUE x, VALUE y)
+{
+ return big_op(x, y, 3);
+}
+
/*
* call-seq:
- * big == obj => true or false
+ * big == obj -> true or false
*
* Returns <code>true</code> only if <i>obj</i> has the same value
* as <i>big</i>. Contrast this with <code>Bignum#eql?</code>, which
@@ -1310,7 +1601,7 @@ rb_big_eq(VALUE x, VALUE y)
volatile double a, b;
a = RFLOAT_VALUE(y);
- if (isnan(a)) return Qfalse;
+ if (isnan(a) || isinf(a)) return Qfalse;
b = rb_big2dbl(x);
return (a == b)?Qtrue:Qfalse;
}
@@ -1325,7 +1616,7 @@ rb_big_eq(VALUE x, VALUE y)
/*
* call-seq:
- * big.eql?(obj) => true or false
+ * big.eql?(obj) -> true or false
*
* Returns <code>true</code> only if <i>obj</i> is a
* <code>Bignum</code> with the same value as <i>big</i>. Contrast this
@@ -1346,12 +1637,12 @@ rb_big_eql(VALUE x, VALUE y)
/*
* call-seq:
- * -big => other_big
+ * -big -> integer
*
- * Unary minus (returns a new Bignum whose value is 0-big)
+ * Unary minus (returns an integer whose value is 0-big)
*/
-static VALUE
+VALUE
rb_big_uminus(VALUE x)
{
VALUE z = rb_big_clone(x);
@@ -1363,7 +1654,7 @@ rb_big_uminus(VALUE x)
/*
* call-seq:
- * ~big => integer
+ * ~big -> integer
*
* Inverts the bits in big. As Bignums are conceptually infinite
* length, the result acts as if it had an infinite number of one
@@ -1424,18 +1715,21 @@ bigsub(VALUE x, VALUE y)
{
VALUE z = 0;
long i = RBIGNUM_LEN(x);
+ BDIGIT *xds, *yds;
- /* if x is larger than y, swap */
+ /* if x is smaller than y, swap */
if (RBIGNUM_LEN(x) < RBIGNUM_LEN(y)) {
z = x; x = y; y = z; /* swap x y */
}
else if (RBIGNUM_LEN(x) == RBIGNUM_LEN(y)) {
+ xds = BDIGITS(x);
+ yds = BDIGITS(y);
while (i > 0) {
i--;
- if (BDIGITS(x)[i] > BDIGITS(y)[i]) {
+ if (xds[i] > yds[i]) {
break;
}
- if (BDIGITS(x)[i] < BDIGITS(y)[i]) {
+ if (xds[i] < yds[i]) {
z = x; x = y; y = z; /* swap x y */
break;
}
@@ -1471,10 +1765,9 @@ bigsub_int(VALUE x, long y0)
#if SIZEOF_BDIGITS == SIZEOF_LONG
num = (BDIGIT_DBL_SIGNED)xds[0] - y;
if (xn == 1 && num < 0) {
- for (i=0; i<xn; i++) {
- }
RBIGNUM_SET_SIGN(z, !RBIGNUM_SIGN(x));
- zds[0] = -num;
+ zds[0] = (BDIGIT)-num;
+ RB_GC_GUARD(x);
return bignorm(z);
}
zds[0] = BIGLO(num);
@@ -1482,7 +1775,7 @@ bigsub_int(VALUE x, long y0)
i = 1;
#else
num = 0;
- for (i=0; i<sizeof(y)/sizeof(BDIGIT); i++) {
+ for (i=0; i<(int)(sizeof(y)/sizeof(BDIGIT)); i++) {
num += (BDIGIT_DBL_SIGNED)xds[i] - BIGLO(y);
zds[i] = BIGLO(num);
num = BIGDN(num);
@@ -1501,6 +1794,7 @@ bigsub_int(VALUE x, long y0)
if (num < 0) {
z = bigsub(x, rb_int2big(y0));
}
+ RB_GC_GUARD(x);
return bignorm(z);
}
@@ -1532,7 +1826,7 @@ bigadd_int(VALUE x, long y)
i = 1;
#else
num = 0;
- for (i=0; i<sizeof(y)/sizeof(BDIGIT); i++) {
+ for (i=0; i<(int)(sizeof(y)/sizeof(BDIGIT)); i++) {
num += (BDIGIT_DBL)xds[i] + BIGLO(y);
zds[i] = BIGLO(num);
num = BIGDN(num);
@@ -1553,6 +1847,7 @@ bigadd_int(VALUE x, long y)
while (i < zn) {
zds[i++] = 0;
}
+ RB_GC_GUARD(x);
return bignorm(z);
}
@@ -1619,7 +1914,7 @@ bigadd(VALUE x, VALUE y, int sign)
/*
* call-seq:
- * big + other => Numeric
+ * big + other -> Numeric
*
* Adds big and other, returning the result.
*/
@@ -1656,7 +1951,7 @@ rb_big_plus(VALUE x, VALUE y)
/*
* call-seq:
- * big - other => Numeric
+ * big - other -> Numeric
*
* Subtracts other from big, returning the result.
*/
@@ -1695,28 +1990,48 @@ static long
big_real_len(VALUE x)
{
long i = RBIGNUM_LEN(x);
- while (--i && !BDIGITS(x)[i]);
+ BDIGIT *xds = BDIGITS(x);
+ while (--i && !xds[i]);
return i + 1;
}
static VALUE
+bigmul1_single(VALUE x, VALUE y)
+{
+ BDIGIT_DBL n;
+ VALUE z = bignew(2, RBIGNUM_SIGN(x)==RBIGNUM_SIGN(y));
+ BDIGIT *xds, *yds, *zds;
+
+ xds = BDIGITS(x);
+ yds = BDIGITS(y);
+ zds = BDIGITS(z);
+
+ n = (BDIGIT_DBL)xds[0] * yds[0];
+ zds[0] = BIGLO(n);
+ zds[1] = (BDIGIT)BIGDN(n);
+
+ return z;
+}
+
+static VALUE
bigmul1_normal(VALUE x, VALUE y)
{
- long i, j;
+ long xl = RBIGNUM_LEN(x), yl = RBIGNUM_LEN(y), i, j = xl + yl + 1;
BDIGIT_DBL n = 0;
- VALUE z = bignew(RBIGNUM_LEN(x) + RBIGNUM_LEN(y) + 1, RBIGNUM_SIGN(x)==RBIGNUM_SIGN(y));
- BDIGIT *zds;
+ VALUE z = bignew(j, RBIGNUM_SIGN(x)==RBIGNUM_SIGN(y));
+ BDIGIT *xds, *yds, *zds;
- j = RBIGNUM_LEN(x) + RBIGNUM_LEN(y) + 1;
+ xds = BDIGITS(x);
+ yds = BDIGITS(y);
zds = BDIGITS(z);
while (j--) zds[j] = 0;
- for (i = 0; i < RBIGNUM_LEN(x); i++) {
+ for (i = 0; i < xl; i++) {
BDIGIT_DBL dd;
- dd = BDIGITS(x)[i];
+ dd = xds[i];
if (dd == 0) continue;
n = 0;
- for (j = 0; j < RBIGNUM_LEN(y); j++) {
- BDIGIT_DBL ee = n + (BDIGIT_DBL)dd * BDIGITS(y)[j];
+ for (j = 0; j < yl; j++) {
+ BDIGIT_DBL ee = n + (BDIGIT_DBL)dd * yds[j];
n = zds[i + j] + ee;
if (ee) zds[i + j] = BIGLO(n);
n = BIGDN(n);
@@ -1737,25 +2052,30 @@ bigmul1_balance(VALUE x, VALUE y)
{
VALUE z, t1, t2;
long i, xn, yn, r, n;
+ BDIGIT *yds, *zds, *t1ds;
xn = RBIGNUM_LEN(x);
yn = RBIGNUM_LEN(y);
- assert(2 * xn <= yn);
+ assert(2 * xn <= yn || 3 * xn <= 2*(yn+2));
z = bignew(xn + yn, RBIGNUM_SIGN(x)==RBIGNUM_SIGN(y));
t1 = bignew(xn, 1);
- for (i = 0; i < xn + yn; i++) BDIGITS(z)[i] = 0;
+ yds = BDIGITS(y);
+ zds = BDIGITS(z);
+ t1ds = BDIGITS(t1);
+
+ for (i = 0; i < xn + yn; i++) zds[i] = 0;
n = 0;
while (yn > 0) {
r = xn > yn ? yn : xn;
- MEMCPY(BDIGITS(t1), BDIGITS(y) + n, BDIGIT, r);
+ MEMCPY(t1ds, yds + n, BDIGIT, r);
RBIGNUM_SET_LEN(t1, r);
t2 = bigmul0(x, t1);
- bigadd_core(BDIGITS(z) + n, RBIGNUM_LEN(z) - n,
+ bigadd_core(zds + n, RBIGNUM_LEN(z) - n,
BDIGITS(t2), big_real_len(t2),
- BDIGITS(z) + n, RBIGNUM_LEN(z) - n);
+ zds + n, RBIGNUM_LEN(z) - n);
yn -= r;
n += r;
}
@@ -1765,23 +2085,31 @@ bigmul1_balance(VALUE x, VALUE y)
/* split a bignum into high and low bignums */
static void
-big_split(VALUE v, long n, VALUE *ph, VALUE *pl)
+big_split(VALUE v, long n, volatile VALUE *ph, volatile VALUE *pl)
{
- long hn, ln;
+ long hn = 0, ln = RBIGNUM_LEN(v);
VALUE h, l;
+ BDIGIT *vds = BDIGITS(v);
- ln = RBIGNUM_LEN(v) > n ? n : RBIGNUM_LEN(v);
- hn = RBIGNUM_LEN(v) - ln;
+ if (ln > n) {
+ hn = ln - n;
+ ln = n;
+ }
- while (--hn && !BDIGITS(v)[hn + ln]);
- h = bignew(hn += 2, 1);
- MEMCPY(BDIGITS(h), BDIGITS(v) + ln, BDIGIT, hn);
- BDIGITS(h)[hn - 1] = 0;
+ if (!hn) {
+ h = rb_uint2big(0);
+ }
+ else {
+ while (--hn && !vds[hn + ln]);
+ h = bignew(hn += 2, 1);
+ MEMCPY(BDIGITS(h), vds + ln, BDIGIT, hn - 1);
+ BDIGITS(h)[hn - 1] = 0; /* margin for carry */
+ }
- while (--ln && !BDIGITS(v)[ln]);
+ while (--ln && !vds[ln]);
l = bignew(ln += 2, 1);
- MEMCPY(BDIGITS(l), BDIGITS(v), BDIGIT, ln);
- BDIGITS(l)[ln - 1] = 0;
+ MEMCPY(BDIGITS(l), vds, BDIGIT, ln - 1);
+ BDIGITS(l)[ln - 1] = 0; /* margin for carry */
*pl = l;
*ph = h;
@@ -1792,7 +2120,7 @@ static VALUE
bigmul1_karatsuba(VALUE x, VALUE y)
{
long i, n, xn, yn, t1n, t2n;
- VALUE xh, xl, yh, yl, z, t1, t2;
+ VALUE xh, xl, yh, yl, z, t1, t2, t3;
BDIGIT *zds;
xn = RBIGNUM_LEN(x);
@@ -1831,30 +2159,26 @@ bigmul1_karatsuba(VALUE x, VALUE y)
if (!BIGZEROP(xl) && !BIGZEROP(yl)) {
/* t2 <- xl * yl */
- t2 = bigmul0(xl, yl);
- t2n = big_real_len(t2);
+ t2 = bigmul0(xl, yl);
+ t2n = big_real_len(t2);
/* copy t2 into low bytes of the result (z0) */
MEMCPY(zds, BDIGITS(t2), BDIGIT, t2n);
for (i = t2n; i < 2 * n; i++) zds[i] = 0;
-
- /* subtract t2 from middle bytes of the result (z1) */
- i = xn + yn - n;
- bigsub_core(zds + n, i, BDIGITS(t2), t2n, zds + n, i);
}
else {
+ t2 = Qundef;
+ t2n = 0;
+
/* copy 0 into low bytes of the result (z0) */
for (i = 0; i < 2 * n; i++) zds[i] = 0;
}
- /* subtract t1 from middle bytes of the result (z1) */
- i = xn + yn - n;
- bigsub_core(zds + n, i, BDIGITS(t1), t1n, zds + n, i);
-
/* xh <- xh + xl */
if (RBIGNUM_LEN(xl) > RBIGNUM_LEN(xh)) {
- t1 = xl; xl = xh; xh = t1;
+ t3 = xl; xl = xh; xh = t3;
}
+ /* xh has a margin for carry */
bigadd_core(BDIGITS(xh), RBIGNUM_LEN(xh),
BDIGITS(xl), RBIGNUM_LEN(xl),
BDIGITS(xh), RBIGNUM_LEN(xh));
@@ -1862,23 +2186,266 @@ bigmul1_karatsuba(VALUE x, VALUE y)
/* yh <- yh + yl */
if (x != y) {
if (RBIGNUM_LEN(yl) > RBIGNUM_LEN(yh)) {
- t1 = yl; yl = yh; yh = t1;
+ t3 = yl; yl = yh; yh = t3;
}
+ /* yh has a margin for carry */
bigadd_core(BDIGITS(yh), RBIGNUM_LEN(yh),
BDIGITS(yl), RBIGNUM_LEN(yl),
BDIGITS(yh), RBIGNUM_LEN(yh));
}
else yh = xh;
- /* t1 <- xh * yh */
- t1 = bigmul0(xh, yh);
+ /* t3 <- xh * yh */
+ t3 = bigmul0(xh, yh);
+
+ i = xn + yn - n;
+ /* subtract t1 from t3 */
+ bigsub_core(BDIGITS(t3), big_real_len(t3), BDIGITS(t1), t1n, BDIGITS(t3), big_real_len(t3));
+
+ /* subtract t2 from t3; t3 is now the middle term of the product */
+ if (t2 != Qundef) bigsub_core(BDIGITS(t3), big_real_len(t3), BDIGITS(t2), t2n, BDIGITS(t3), big_real_len(t3));
- /* add t1 to middle bytes of the result (z1) */
- bigadd_core(zds + n, i, BDIGITS(t1), big_real_len(t1), zds + n, i);
+ /* add t3 to middle bytes of the result (z1) */
+ bigadd_core(zds + n, i, BDIGITS(t3), big_real_len(t3), zds + n, i);
return z;
}
+static void
+biglsh_bang(BDIGIT *xds, long xn, unsigned long shift)
+{
+ long const s1 = shift/BITSPERDIG;
+ int const s2 = (int)(shift%BITSPERDIG);
+ int const s3 = BITSPERDIG-s2;
+ BDIGIT* zds;
+ BDIGIT num;
+ long i;
+ if (s1 >= xn) {
+ MEMZERO(xds, BDIGIT, xn);
+ return;
+ }
+ zds = xds + xn - 1;
+ xn -= s1 + 1;
+ num = xds[xn]<<s2;
+ do {
+ *zds-- = num | xds[--xn]>>s3;
+ num = xds[xn]<<s2;
+ }
+ while (xn > 0);
+ *zds = num;
+ for (i = s1; i > 0; --i)
+ *zds-- = 0;
+}
+
+static void
+bigrsh_bang(BDIGIT* xds, long xn, unsigned long shift)
+{
+ long s1 = shift/BITSPERDIG;
+ int s2 = (int)(shift%BITSPERDIG);
+ int s3 = BITSPERDIG - s2;
+ int i;
+ BDIGIT num;
+ BDIGIT* zds;
+ if (s1 >= xn) {
+ MEMZERO(xds, BDIGIT, xn);
+ return;
+ }
+
+ i = 0;
+ zds = xds + s1;
+ num = *zds++>>s2;
+ do {
+ xds[i++] = (BDIGIT)(*zds<<s3) | num;
+ num = *zds++>>s2;
+ }
+ while (i < xn - s1 - 1);
+ xds[i] = num;
+ MEMZERO(xds + xn - s1, BDIGIT, s1);
+}
+
+static void
+big_split3(VALUE v, long n, volatile VALUE* p0, volatile VALUE* p1, volatile VALUE* p2)
+{
+ VALUE v0, v12, v1, v2;
+
+ big_split(v, n, &v12, &v0);
+ big_split(v12, n, &v2, &v1);
+
+ *p0 = bigtrunc(v0);
+ *p1 = bigtrunc(v1);
+ *p2 = bigtrunc(v2);
+}
+
+static VALUE big_lshift(VALUE, unsigned long);
+static VALUE big_rshift(VALUE, unsigned long);
+static VALUE bigdivrem(VALUE, VALUE, volatile VALUE*, volatile VALUE*);
+
+static VALUE
+bigmul1_toom3(VALUE x, VALUE y)
+{
+ long n, xn, yn, zn;
+ VALUE x0, x1, x2, y0, y1, y2;
+ VALUE u0, u1, u2, u3, u4, v1, v2, v3;
+ VALUE z0, z1, z2, z3, z4, z, t;
+ BDIGIT* zds;
+
+ xn = RBIGNUM_LEN(x);
+ yn = RBIGNUM_LEN(y);
+ assert(xn <= yn); /* assume y >= x */
+
+ n = (yn + 2) / 3;
+ big_split3(x, n, &x0, &x1, &x2);
+ if (x == y) {
+ y0 = x0; y1 = x1; y2 = x2;
+ }
+ else big_split3(y, n, &y0, &y1, &y2);
+
+ /*
+ * ref. http://en.wikipedia.org/wiki/Toom%E2%80%93Cook_multiplication
+ *
+ * x(b) = x0 * b^0 + x1 * b^1 + x2 * b^2
+ * y(b) = y0 * b^0 + y1 * b^1 + y2 * b^2
+ *
+ * z(b) = x(b) * y(b)
+ * z(b) = z0 * b^0 + z1 * b^1 + z2 * b^2 + z3 * b^3 + z4 * b^4
+ * where:
+ * z0 = x0 * y0
+ * z1 = x0 * y1 + x1 * y0
+ * z2 = x0 * y2 + x1 * y1 + x2 * y0
+ * z3 = x1 * y2 + x2 * y1
+ * z4 = x2 * y2
+ *
+ * Toom3 method (a.k.a. Toom-Cook method):
+ * (Step1) calculating 5 points z(b0), z(b1), z(b2), z(b3), z(b4),
+ * where:
+ * b0 = 0, b1 = 1, b2 = -1, b3 = -2, b4 = inf,
+ * z(0) = x(0) * y(0) = x0 * y0
+ * z(1) = x(1) * y(1) = (x0 + x1 + x2) * (y0 + y1 + y2)
+ * z(-1) = x(-1) * y(-1) = (x0 - x1 + x2) * (y0 - y1 + y2)
+ * z(-2) = x(-2) * y(-2) = (x0 - 2 * (x1 - 2 * x2)) * (y0 - 2 * (y1 - 2 * y2))
+ * z(inf) = x(inf) * y(inf) = x2 * y2
+ *
+ * (Step2) interpolating z0, z1, z2, z3, z4, and z5.
+ *
+ * (Step3) Substituting base value into b of the polynomial z(b),
+ */
+
+ /*
+ * [Step1] calculating 5 points z(b0), z(b1), z(b2), z(b3), z(b4)
+ */
+
+ /* u1 <- x0 + x2 */
+ u1 = bigtrunc(bigadd(x0, x2, 1));
+
+ /* x(-1) : u2 <- u1 - x1 = x0 - x1 + x2 */
+ u2 = bigtrunc(bigsub(u1, x1));
+
+ /* x(1) : u1 <- u1 + x1 = x0 + x1 + x2 */
+ u1 = bigtrunc(bigadd(u1, x1, 1));
+
+ /* x(-2) : u3 <- 2 * (u2 + x2) - x0 = x0 - 2 * (x1 - 2 * x2) */
+ u3 = bigadd(u2, x2, 1);
+ if (BDIGITS(u3)[RBIGNUM_LEN(u3)-1] & BIGRAD_HALF) {
+ rb_big_resize(u3, RBIGNUM_LEN(u3) + 1);
+ BDIGITS(u3)[RBIGNUM_LEN(u3)-1] = 0;
+ }
+ biglsh_bang(BDIGITS(u3), RBIGNUM_LEN(u3), 1);
+ u3 = bigtrunc(bigadd(bigtrunc(u3), x0, 0));
+
+ if (x == y) {
+ v1 = u1; v2 = u2; v3 = u3;
+ }
+ else {
+ /* v1 <- y0 + y2 */
+ v1 = bigtrunc(bigadd(y0, y2, 1));
+
+ /* y(-1) : v2 <- v1 - y1 = y0 - y1 + y2 */
+ v2 = bigtrunc(bigsub(v1, y1));
+
+ /* y(1) : v1 <- v1 + y1 = y0 + y1 + y2 */
+ v1 = bigtrunc(bigadd(v1, y1, 1));
+
+ /* y(-2) : v3 <- 2 * (v2 + y2) - y0 = y0 - 2 * (y1 - 2 * y2) */
+ v3 = bigadd(v2, y2, 1);
+ if (BDIGITS(v3)[RBIGNUM_LEN(v3)-1] & BIGRAD_HALF) {
+ rb_big_resize(v3, RBIGNUM_LEN(v3) + 1);
+ BDIGITS(v3)[RBIGNUM_LEN(v3)-1] = 0;
+ }
+ biglsh_bang(BDIGITS(v3), RBIGNUM_LEN(v3), 1);
+ v3 = bigtrunc(bigadd(bigtrunc(v3), y0, 0));
+ }
+
+ /* z(0) : u0 <- x0 * y0 */
+ u0 = bigtrunc(bigmul0(x0, y0));
+
+ /* z(1) : u1 <- u1 * v1 */
+ u1 = bigtrunc(bigmul0(u1, v1));
+
+ /* z(-1) : u2 <- u2 * v2 */
+ u2 = bigtrunc(bigmul0(u2, v2));
+
+ /* z(-2) : u3 <- u3 * v3 */
+ u3 = bigtrunc(bigmul0(u3, v3));
+
+ /* z(inf) : u4 <- x2 * y2 */
+ u4 = bigtrunc(bigmul0(x2, y2));
+
+ /* for GC */
+ v1 = v2 = v3 = Qnil;
+
+ /*
+ * [Step2] interpolating z0, z1, z2, z3, z4, and z5.
+ */
+
+ /* z0 <- z(0) == u0 */
+ z0 = u0;
+
+ /* z4 <- z(inf) == u4 */
+ z4 = u4;
+
+ /* z3 <- (z(-2) - z(1)) / 3 == (u3 - u1) / 3 */
+ z3 = bigadd(u3, u1, 0);
+ bigdivrem(z3, big_three, &z3, NULL); /* TODO: optimize */
+ bigtrunc(z3);
+
+ /* z1 <- (z(1) - z(-1)) / 2 == (u1 - u2) / 2 */
+ z1 = bigtrunc(bigadd(u1, u2, 0));
+ bigrsh_bang(BDIGITS(z1), RBIGNUM_LEN(z1), 1);
+
+ /* z2 <- z(-1) - z(0) == u2 - u0 */
+ z2 = bigtrunc(bigadd(u2, u0, 0));
+
+ /* z3 <- (z2 - z3) / 2 + 2 * z(inf) == (z2 - z3) / 2 + 2 * u4 */
+ z3 = bigadd(z2, z3, 0);
+ bigrsh_bang(BDIGITS(z3), RBIGNUM_LEN(z3), 1);
+ t = big_lshift(u4, 1); /* TODO: combining with next addition */
+ z3 = bigtrunc(bigadd(z3, t, 1));
+
+ /* z2 <- z2 + z1 - z(inf) == z2 + z1 - u4 */
+ z2 = bigtrunc(bigadd(z2, z1, 1));
+ z2 = bigtrunc(bigadd(z2, u4, 0));
+
+ /* z1 <- z1 - z3 */
+ z1 = bigtrunc(bigadd(z1, z3, 0));
+
+ /*
+ * [Step3] Substituting base value into b of the polynomial z(b),
+ */
+
+ zn = 6*n + 1;
+ z = bignew(zn, RBIGNUM_SIGN(x)==RBIGNUM_SIGN(y));
+ zds = BDIGITS(z);
+ MEMCPY(zds, BDIGITS(z0), BDIGIT, RBIGNUM_LEN(z0));
+ MEMZERO(zds + RBIGNUM_LEN(z0), BDIGIT, zn - RBIGNUM_LEN(z0));
+ bigadd_core(zds + n, zn - n, BDIGITS(z1), big_real_len(z1), zds + n, zn - n);
+ bigadd_core(zds + 2*n, zn - 2*n, BDIGITS(z2), big_real_len(z2), zds + 2*n, zn - 2*n);
+ bigadd_core(zds + 3*n, zn - 3*n, BDIGITS(z3), big_real_len(z3), zds + 3*n, zn - 3*n);
+ bigadd_core(zds + 4*n, zn - 4*n, BDIGITS(z4), big_real_len(z4), zds + 4*n, zn - 4*n);
+ z = bignorm(z);
+
+ return bignorm(z);
+}
+
/* efficient squaring (2 times faster than normal multiplication)
* ref: Handbook of Applied Cryptography, Algorithm 14.16
* http://www.cacr.math.uwaterloo.ca/hac/about/chap14.pdf
@@ -1917,6 +2484,7 @@ bigsqr_fast(VALUE x)
}
#define KARATSUBA_MUL_DIGITS 70
+#define TOOM3_MUL_DIGITS 150
/* determine whether a bignum is sparse or not by random sampling */
@@ -1924,28 +2492,14 @@ static inline VALUE
big_sparse_p(VALUE x)
{
long c = 0, n = RBIGNUM_LEN(x);
- unsigned long rb_rand_internal(unsigned long i);
- if ( BDIGITS(x)[rb_rand_internal(n / 2) + n / 4]) c++;
- if (c <= 1 && BDIGITS(x)[rb_rand_internal(n / 2) + n / 4]) c++;
- if (c <= 1 && BDIGITS(x)[rb_rand_internal(n / 2) + n / 4]) c++;
+ if ( BDIGITS(x)[rb_genrand_ulong_limited(n / 2) + n / 4]) c++;
+ if (c <= 1 && BDIGITS(x)[rb_genrand_ulong_limited(n / 2) + n / 4]) c++;
+ if (c <= 1 && BDIGITS(x)[rb_genrand_ulong_limited(n / 2) + n / 4]) c++;
return (c <= 1) ? Qtrue : Qfalse;
}
-#if 0
-static void
-dump_bignum(VALUE x)
-{
- long i;
- printf("0x0");
- for (i = RBIGNUM_LEN(x); i--; ) {
- printf("_%08x", BDIGITS(x)[i]);
- }
- puts("");
-}
-#endif
-
static VALUE
bigmul0(VALUE x, VALUE y)
{
@@ -1967,7 +2521,8 @@ bigmul0(VALUE x, VALUE y)
if (xn < KARATSUBA_MUL_DIGITS) {
normal:
if (x == y) return bigsqr_fast(x);
- return bigmul1_normal(x, y);
+ if (xn == 1 && yn == 1) return bigmul1_single(x, y);
+ return bigmul1_normal(x, y);
}
/* normal multiplication when x or y is a sparse bignum */
@@ -1977,13 +2532,18 @@ bigmul0(VALUE x, VALUE y)
/* balance multiplication by slicing y when x is much smaller than y */
if (2 * xn <= yn) return bigmul1_balance(x, y);
- /* multiplication by karatsuba method */
- return bigmul1_karatsuba(x, y);
+ if (xn < TOOM3_MUL_DIGITS) {
+ /* multiplication by karatsuba method */
+ return bigmul1_karatsuba(x, y);
+ }
+ else if (3*xn <= 2*(yn + 2))
+ return bigmul1_balance(x, y);
+ return bigmul1_toom3(x, y);
}
/*
* call-seq:
- * big * other => Numeric
+ * big * other -> Numeric
*
* Multiplies big and other, returning the result.
*/
@@ -2068,24 +2628,24 @@ rb_big_stop(void *ptr)
}
static VALUE
-bigdivrem(VALUE x, VALUE y, VALUE *divp, VALUE *modp)
+bigdivrem(VALUE x, VALUE y, volatile VALUE *divp, volatile VALUE *modp)
{
struct big_div_struct bds;
long nx = RBIGNUM_LEN(x), ny = RBIGNUM_LEN(y);
long i, j;
- volatile VALUE yy, z;
+ VALUE z, yy, zz;
BDIGIT *xds, *yds, *zds, *tds;
BDIGIT_DBL t2;
BDIGIT dd, q;
if (BIGZEROP(y)) rb_num_zerodiv();
+ xds = BDIGITS(x);
yds = BDIGITS(y);
- if (nx < ny || (nx == ny && BDIGITS(x)[nx - 1] < BDIGITS(y)[ny - 1])) {
+ if (nx < ny || (nx == ny && xds[nx - 1] < yds[ny - 1])) {
if (divp) *divp = rb_int2big(0);
if (modp) *modp = x;
return Qnil;
}
- xds = BDIGITS(x);
if (ny == 1) {
dd = yds[0];
z = rb_big_clone(x);
@@ -2104,6 +2664,7 @@ bigdivrem(VALUE x, VALUE y, VALUE *divp, VALUE *modp)
if (divp) *divp = z;
return Qnil;
}
+
z = bignew(nx==ny?nx+2:nx+1, RBIGNUM_SIGN(x)==RBIGNUM_SIGN(y));
zds = BDIGITS(z);
if (nx==ny) zds[nx+1] = 0;
@@ -2111,7 +2672,7 @@ bigdivrem(VALUE x, VALUE y, VALUE *divp, VALUE *modp)
dd = 0;
q = yds[ny-1];
- while ((q & (1UL<<(BITSPERDIG-1))) == 0) {
+ while ((q & (BDIGIT)(1UL<<(BITSPERDIG-1))) == 0) {
q <<= 1UL;
dd++;
}
@@ -2126,6 +2687,7 @@ bigdivrem(VALUE x, VALUE y, VALUE *divp, VALUE *modp)
t2 = BIGDN(t2);
}
yds = tds;
+ RB_GC_GUARD(y) = yy;
j = 0;
t2 = 0;
while (j<nx) {
@@ -2146,7 +2708,7 @@ bigdivrem(VALUE x, VALUE y, VALUE *divp, VALUE *modp)
bds.zds = zds;
bds.yds = yds;
bds.stop = Qfalse;
- if (RBIGNUM_LEN(x) > 10000 || RBIGNUM_LEN(y) > 10000) {
+ if (nx > 10000 || ny > 10000) {
rb_thread_blocking_region(bigdivrem1, &bds, rb_big_stop, &bds.stop);
}
else {
@@ -2154,16 +2716,16 @@ bigdivrem(VALUE x, VALUE y, VALUE *divp, VALUE *modp)
}
if (divp) { /* move quotient down in z */
- *divp = rb_big_clone(z);
- zds = BDIGITS(*divp);
+ *divp = zz = rb_big_clone(z);
+ zds = BDIGITS(zz);
j = (nx==ny ? nx+2 : nx+1) - ny;
for (i = 0;i < j;i++) zds[i] = zds[i+ny];
if (!zds[i-1]) i--;
- RBIGNUM_SET_LEN(*divp, i);
+ RBIGNUM_SET_LEN(zz, i);
}
if (modp) { /* normalize remainder */
- *modp = rb_big_clone(z);
- zds = BDIGITS(*modp);
+ *modp = zz = rb_big_clone(z);
+ zds = BDIGITS(zz);
while (--ny && !zds[ny]); ++ny;
if (dd) {
t2 = 0; i = ny;
@@ -2175,14 +2737,14 @@ bigdivrem(VALUE x, VALUE y, VALUE *divp, VALUE *modp)
}
}
if (!zds[ny-1]) ny--;
- RBIGNUM_SET_LEN(*modp, ny);
- RBIGNUM_SET_SIGN(*modp, RBIGNUM_SIGN(x));
+ RBIGNUM_SET_LEN(zz, ny);
+ RBIGNUM_SET_SIGN(zz, RBIGNUM_SIGN(x));
}
return z;
}
static void
-bigdivmod(VALUE x, VALUE y, VALUE *divp, VALUE *modp)
+bigdivmod(VALUE x, VALUE y, volatile VALUE *divp, volatile VALUE *modp)
{
VALUE mod;
@@ -2231,27 +2793,36 @@ rb_big_divide(VALUE x, VALUE y, ID op)
/*
* call-seq:
- * big / other => Numeric
+ * big / other -> Numeric
*
- * Divides big by other, returning the result.
+ * Performs division: the class of the resulting object depends on
+ * the class of <code>numeric</code> and on the magnitude of the
+ * result.
*/
VALUE
rb_big_div(VALUE x, VALUE y)
{
- return rb_big_divide(x, y, '/');
+ return rb_big_divide(x, y, '/');
}
+/*
+ * call-seq:
+ * big.div(other) -> integer
+ *
+ * Performs integer division: returns integer value.
+ */
+
VALUE
rb_big_idiv(VALUE x, VALUE y)
{
- return rb_big_divide(x, y, rb_intern("div"));
+ return rb_big_divide(x, y, rb_intern("div"));
}
/*
* call-seq:
- * big % other => Numeric
- * big.modulo(other) => Numeric
+ * big % other -> Numeric
+ * big.modulo(other) -> Numeric
*
* Returns big modulo other. See Numeric.divmod for more
* information.
@@ -2280,7 +2851,7 @@ rb_big_modulo(VALUE x, VALUE y)
/*
* call-seq:
- * big.remainder(numeric) => number
+ * big.remainder(numeric) -> number
*
* Returns the remainder after dividing <i>big</i> by <i>numeric</i>.
*
@@ -2310,7 +2881,7 @@ rb_big_remainder(VALUE x, VALUE y)
/*
* call-seq:
- * big.divmod(numeric) => array
+ * big.divmod(numeric) -> array
*
* See <code>Numeric#divmod</code>.
*
@@ -2360,15 +2931,62 @@ bdigbitsize(BDIGIT x)
static VALUE big_lshift(VALUE, unsigned long);
static VALUE big_rshift(VALUE, unsigned long);
-static VALUE big_shift(VALUE x, int n)
+static VALUE
+big_shift(VALUE x, long n)
{
if (n < 0)
- return big_lshift(x, (unsigned int)-n);
+ return big_lshift(x, (unsigned long)-n);
else if (n > 0)
- return big_rshift(x, (unsigned int)n);
+ return big_rshift(x, (unsigned long)n);
return x;
}
+static VALUE
+big_fdiv(VALUE x, VALUE y)
+{
+#define DBL_BIGDIG ((DBL_MANT_DIG + BITSPERDIG) / BITSPERDIG)
+ VALUE z;
+ long l, ex, ey;
+ int i;
+
+ bigtrunc(x);
+ l = RBIGNUM_LEN(x) - 1;
+ ex = l * BITSPERDIG;
+ ex += bdigbitsize(BDIGITS(x)[l]);
+ ex -= 2 * DBL_BIGDIG * BITSPERDIG;
+ if (ex) x = big_shift(x, ex);
+
+ switch (TYPE(y)) {
+ case T_FIXNUM:
+ y = rb_int2big(FIX2LONG(y));
+ case T_BIGNUM: {
+ bigtrunc(y);
+ l = RBIGNUM_LEN(y) - 1;
+ ey = l * BITSPERDIG;
+ ey += bdigbitsize(BDIGITS(y)[l]);
+ ey -= DBL_BIGDIG * BITSPERDIG;
+ if (ey) y = big_shift(y, ey);
+ bignum:
+ bigdivrem(x, y, &z, 0);
+ l = ex - ey;
+#if SIZEOF_LONG > SIZEOF_INT
+ {
+ /* Visual C++ can't be here */
+ if (l > INT_MAX) return DBL2NUM(INFINITY);
+ if (l < INT_MIN) return DBL2NUM(0.0);
+ }
+#endif
+ return DBL2NUM(ldexp(big2dbl(z), (int)l));
+ }
+ case T_FLOAT:
+ y = dbl2big(ldexp(frexp(RFLOAT_VALUE(y), &i), DBL_MANT_DIG));
+ ey = i - DBL_MANT_DIG;
+ goto bignum;
+ }
+ rb_bug("big_fdiv");
+ /* NOTREACHED */
+}
+
/*
* call-seq:
* big.fdiv(numeric) -> float
@@ -2381,52 +2999,32 @@ static VALUE big_shift(VALUE x, int n)
*
*/
-static VALUE
+
+VALUE
rb_big_fdiv(VALUE x, VALUE y)
{
- double dx = big2dbl(x);
- double dy;
+ double dx, dy;
- if (isinf(dx)) {
-#define DBL_BIGDIG ((DBL_MANT_DIG + BITSPERDIG) / BITSPERDIG)
- VALUE z;
- int ex, ey;
-
- ex = (RBIGNUM_LEN(bigtrunc(x)) - 1) * BITSPERDIG;
- ex += bdigbitsize(BDIGITS(x)[RBIGNUM_LEN(x) - 1]);
- ex -= 2 * DBL_BIGDIG * BITSPERDIG;
- if (ex) x = big_shift(x, ex);
-
- switch (TYPE(y)) {
- case T_FIXNUM:
- y = rb_int2big(FIX2LONG(y));
- case T_BIGNUM: {
- ey = (RBIGNUM_LEN(bigtrunc(y)) - 1) * BITSPERDIG;
- ey += bdigbitsize(BDIGITS(y)[RBIGNUM_LEN(y) - 1]);
- ey -= DBL_BIGDIG * BITSPERDIG;
- if (ey) y = big_shift(y, ey);
- bignum:
- bigdivrem(x, y, &z, 0);
- return DBL2NUM(ldexp(big2dbl(z), ex - ey));
- }
- case T_FLOAT:
- if (isnan(RFLOAT_VALUE(y))) return y;
- y = dbl2big(ldexp(frexp(RFLOAT_VALUE(y), &ey), DBL_MANT_DIG));
- ey -= DBL_MANT_DIG;
- goto bignum;
- }
- }
+ dx = big2dbl(x);
switch (TYPE(y)) {
case T_FIXNUM:
dy = (double)FIX2LONG(y);
+ if (isinf(dx))
+ return big_fdiv(x, y);
break;
case T_BIGNUM:
dy = rb_big2dbl(y);
+ if (isinf(dx) || isinf(dy))
+ return big_fdiv(x, y);
break;
case T_FLOAT:
dy = RFLOAT_VALUE(y);
+ if (isnan(dy))
+ return y;
+ if (isinf(dx))
+ return big_fdiv(x, y);
break;
default:
@@ -2443,7 +3041,7 @@ bigsqr(VALUE x)
/*
* call-seq:
- * big ** exponent => numeric
+ * big ** exponent -> numeric
*
* Raises _big_ to the _exponent_ power (which may be an integer, float,
* or anything that will coerce to a number). The result may be
@@ -2464,6 +3062,8 @@ rb_big_pow(VALUE x, VALUE y)
switch (TYPE(y)) {
case T_FLOAT:
d = RFLOAT_VALUE(y);
+ if ((!RBIGNUM_SIGN(x) && !BIGZEROP(x)) && d != round(d))
+ return rb_funcall(rb_complex_raw1(x), rb_intern("**"), 1, y);
break;
case T_BIGNUM:
@@ -2504,7 +3104,7 @@ rb_big_pow(VALUE x, VALUE y)
return DBL2NUM(pow(rb_big2dbl(x), d));
}
-static VALUE
+static inline VALUE
bit_coerce(VALUE x)
{
while (!FIXNUM_P(x) && TYPE(x) != T_BIGNUM) {
@@ -2516,9 +3116,53 @@ bit_coerce(VALUE x)
return x;
}
+static VALUE
+bigand_int(VALUE x, long y)
+{
+ VALUE z;
+ BDIGIT *xds, *zds;
+ long xn, zn;
+ long i;
+ char sign;
+
+ if (y == 0) return INT2FIX(0);
+ sign = (y > 0);
+ xds = BDIGITS(x);
+ zn = xn = RBIGNUM_LEN(x);
+#if SIZEOF_BDIGITS == SIZEOF_LONG
+ if (sign) {
+ y &= xds[0];
+ return LONG2NUM(y);
+ }
+#endif
+
+ z = bignew(zn, RBIGNUM_SIGN(x) || sign);
+ zds = BDIGITS(z);
+
+#if SIZEOF_BDIGITS == SIZEOF_LONG
+ i = 1;
+ zds[0] = xds[0] & y;
+#else
+ {
+ BDIGIT_DBL num = y;
+
+ for (i=0; i<(int)(sizeof(y)/sizeof(BDIGIT)); i++) {
+ zds[i] = xds[i] & BIGLO(num);
+ num = BIGDN(num);
+ }
+ }
+#endif
+ while (i < xn) {
+ zds[i] = sign?0:xds[i];
+ i++;
+ }
+ if (!RBIGNUM_SIGN(z)) get2comp(z);
+ return bignorm(z);
+}
+
/*
* call-seq:
- * big & numeric => integer
+ * big & numeric -> integer
*
* Performs bitwise +and+ between _big_ and _numeric_.
*/
@@ -2533,17 +3177,17 @@ rb_big_and(VALUE xx, VALUE yy)
x = xx;
y = bit_coerce(yy);
+ if (!RBIGNUM_SIGN(x)) {
+ x = rb_big_clone(x);
+ get2comp(x);
+ }
if (FIXNUM_P(y)) {
- y = rb_int2big(FIX2LONG(y));
+ return bigand_int(x, FIX2LONG(y));
}
if (!RBIGNUM_SIGN(y)) {
y = rb_big_clone(y);
get2comp(y);
}
- if (!RBIGNUM_SIGN(x)) {
- x = rb_big_clone(x);
- get2comp(x);
- }
if (RBIGNUM_LEN(x) > RBIGNUM_LEN(y)) {
l1 = RBIGNUM_LEN(y);
l2 = RBIGNUM_LEN(x);
@@ -2571,9 +3215,45 @@ rb_big_and(VALUE xx, VALUE yy)
return bignorm(z);
}
+static VALUE
+bigor_int(VALUE x, long y)
+{
+ VALUE z;
+ BDIGIT *xds, *zds;
+ long xn, zn;
+ long i;
+ char sign;
+
+ sign = (y >= 0);
+ xds = BDIGITS(x);
+ zn = xn = RBIGNUM_LEN(x);
+ z = bignew(zn, RBIGNUM_SIGN(x) && sign);
+ zds = BDIGITS(z);
+
+#if SIZEOF_BDIGITS == SIZEOF_LONG
+ i = 1;
+ zds[0] = xds[0] | y;
+#else
+ {
+ BDIGIT_DBL num = y;
+
+ for (i=0; i<(int)(sizeof(y)/sizeof(BDIGIT)); i++) {
+ zds[i] = xds[i] | BIGLO(num);
+ num = BIGDN(num);
+ }
+ }
+#endif
+ while (i < xn) {
+ zds[i] = sign?xds[i]:(BDIGIT)(BIGRAD-1);
+ i++;
+ }
+ if (!RBIGNUM_SIGN(z)) get2comp(z);
+ return bignorm(z);
+}
+
/*
* call-seq:
- * big | numeric => integer
+ * big | numeric -> integer
*
* Performs bitwise +or+ between _big_ and _numeric_.
*/
@@ -2588,18 +3268,18 @@ rb_big_or(VALUE xx, VALUE yy)
x = xx;
y = bit_coerce(yy);
+
+ if (!RBIGNUM_SIGN(x)) {
+ x = rb_big_clone(x);
+ get2comp(x);
+ }
if (FIXNUM_P(y)) {
- y = rb_int2big(FIX2LONG(y));
+ return bigor_int(x, FIX2LONG(y));
}
-
if (!RBIGNUM_SIGN(y)) {
y = rb_big_clone(y);
get2comp(y);
}
- if (!RBIGNUM_SIGN(x)) {
- x = rb_big_clone(x);
- get2comp(x);
- }
if (RBIGNUM_LEN(x) > RBIGNUM_LEN(y)) {
l1 = RBIGNUM_LEN(y);
l2 = RBIGNUM_LEN(x);
@@ -2624,13 +3304,47 @@ rb_big_or(VALUE xx, VALUE yy)
zds[i] = sign?ds2[i]:(BDIGIT)(BIGRAD-1);
}
if (!RBIGNUM_SIGN(z)) get2comp(z);
-
return bignorm(z);
}
+static VALUE
+bigxor_int(VALUE x, long y)
+{
+ VALUE z;
+ BDIGIT *xds, *zds;
+ long xn, zn;
+ long i;
+ char sign;
+
+ sign = (y >= 0) ? 1 : 0;
+ xds = BDIGITS(x);
+ zn = xn = RBIGNUM_LEN(x);
+ z = bignew(zn, !(RBIGNUM_SIGN(x) ^ sign));
+ zds = BDIGITS(z);
+
+#if SIZEOF_BDIGITS == SIZEOF_LONG
+ i = 1;
+ zds[0] = xds[0] ^ y;
+#else
+ {
+ BDIGIT_DBL num = y;
+
+ for (i=0; i<(int)(sizeof(y)/sizeof(BDIGIT)); i++) {
+ zds[i] = xds[i] ^ BIGLO(num);
+ num = BIGDN(num);
+ }
+ }
+#endif
+ while (i < xn) {
+ zds[i] = sign?xds[i]:~xds[i];
+ i++;
+ }
+ if (!RBIGNUM_SIGN(z)) get2comp(z);
+ return bignorm(z);
+}
/*
* call-seq:
- * big ^ numeric => integer
+ * big ^ numeric -> integer
*
* Performs bitwise +exclusive or+ between _big_ and _numeric_.
*/
@@ -2646,18 +3360,18 @@ rb_big_xor(VALUE xx, VALUE yy)
x = xx;
y = bit_coerce(yy);
+
+ if (!RBIGNUM_SIGN(x)) {
+ x = rb_big_clone(x);
+ get2comp(x);
+ }
if (FIXNUM_P(y)) {
- y = rb_int2big(FIX2LONG(y));
+ return bigxor_int(x, FIX2LONG(y));
}
-
if (!RBIGNUM_SIGN(y)) {
y = rb_big_clone(y);
get2comp(y);
}
- if (!RBIGNUM_SIGN(x)) {
- x = rb_big_clone(x);
- get2comp(x);
- }
if (RBIGNUM_LEN(x) > RBIGNUM_LEN(y)) {
l1 = RBIGNUM_LEN(y);
l2 = RBIGNUM_LEN(x);
@@ -2700,7 +3414,7 @@ check_shiftdown(VALUE y, VALUE x)
/*
* call-seq:
- * big << numeric => integer
+ * big << numeric -> integer
*
* Shifts big left _numeric_ positions (right if _numeric_ is negative).
*/
@@ -2726,14 +3440,14 @@ rb_big_lshift(VALUE x, VALUE y)
if (!NIL_P(t)) return t;
neg = 1;
}
- shift = big2ulong(y, "long", Qtrue);
+ shift = big2ulong(y, "long", TRUE);
break;
}
y = rb_to_int(y);
}
- if (neg) return big_rshift(x, shift);
- return big_lshift(x, shift);
+ x = neg ? big_rshift(x, shift) : big_lshift(x, shift);
+ return bignorm(x);
}
static VALUE
@@ -2741,7 +3455,7 @@ big_lshift(VALUE x, unsigned long shift)
{
BDIGIT *xds, *zds;
long s1 = shift/BITSPERDIG;
- int s2 = shift%BITSPERDIG;
+ int s2 = (int)(shift%BITSPERDIG);
VALUE z;
BDIGIT_DBL num = 0;
long len, i;
@@ -2759,12 +3473,12 @@ big_lshift(VALUE x, unsigned long shift)
num = BIGDN(num);
}
*zds = BIGLO(num);
- return bignorm(z);
+ return z;
}
/*
* call-seq:
- * big >> numeric => integer
+ * big >> numeric -> integer
*
* Shifts big right _numeric_ positions (left if _numeric_ is negative).
*/
@@ -2792,14 +3506,14 @@ rb_big_rshift(VALUE x, VALUE y)
else {
neg = 1;
}
- shift = big2ulong(y, "long", Qtrue);
+ shift = big2ulong(y, "long", TRUE);
break;
}
y = rb_to_int(y);
}
- if (neg) return big_lshift(x, shift);
- return big_rshift(x, shift);
+ x = neg ? big_lshift(x, shift) : big_rshift(x, shift);
+ return bignorm(x);
}
static VALUE
@@ -2807,7 +3521,7 @@ big_rshift(VALUE x, unsigned long shift)
{
BDIGIT *xds, *zds;
long s1 = shift/BITSPERDIG;
- int s2 = shift%BITSPERDIG;
+ int s2 = (int)(shift%BITSPERDIG);
VALUE z;
BDIGIT_DBL num = 0;
long i, j;
@@ -2842,7 +3556,7 @@ big_rshift(VALUE x, unsigned long shift)
if (!RBIGNUM_SIGN(x)) {
get2comp(z);
}
- return bignorm(z);
+ return z;
}
/*
@@ -2875,11 +3589,12 @@ rb_big_aref(VALUE x, VALUE y)
if (TYPE(y) == T_BIGNUM) {
if (!RBIGNUM_SIGN(y))
return INT2FIX(0);
- if (RBIGNUM_LEN(bigtrunc(y)) > DIGSPERLONG) {
+ bigtrunc(y);
+ if (RBIGNUM_LEN(y) > DIGSPERLONG) {
out_of_range:
return RBIGNUM_SIGN(x) ? INT2FIX(0) : INT2FIX(1);
}
- shift = big2ulong(y, "long", Qfalse);
+ shift = big2ulong(y, "long", FALSE);
}
else {
i = NUM2LONG(y);
@@ -2907,7 +3622,7 @@ rb_big_aref(VALUE x, VALUE y)
/*
* call-seq:
- * big.hash => fixnum
+ * big.hash -> fixnum
*
* Compute a hash based on the value of _big_.
*/
@@ -2915,7 +3630,7 @@ rb_big_aref(VALUE x, VALUE y)
static VALUE
rb_big_hash(VALUE x)
{
- int hash;
+ st_index_t hash;
hash = rb_memhash(BDIGITS(x), sizeof(BDIGIT)*RBIGNUM_LEN(x)) ^ RBIGNUM_SIGN(x);
return INT2FIX(hash);
@@ -3058,6 +3773,11 @@ Init_Bignum(void)
rb_define_method(rb_cBignum, "<=>", rb_big_cmp, 1);
rb_define_method(rb_cBignum, "==", rb_big_eq, 1);
+ rb_define_method(rb_cBignum, ">", big_gt, 1);
+ rb_define_method(rb_cBignum, ">=", big_ge, 1);
+ rb_define_method(rb_cBignum, "<", big_lt, 1);
+ rb_define_method(rb_cBignum, "<=", big_le, 1);
+ rb_define_method(rb_cBignum, "===", rb_big_eq, 1);
rb_define_method(rb_cBignum, "eql?", rb_big_eql, 1);
rb_define_method(rb_cBignum, "hash", rb_big_hash, 0);
rb_define_method(rb_cBignum, "to_f", rb_big_to_f, 0);
@@ -3068,4 +3788,7 @@ Init_Bignum(void)
rb_define_method(rb_cBignum, "even?", rb_big_even_p, 0);
power_cache_init();
+
+ big_three = rb_uint2big(3);
+ rb_gc_register_mark_object(big_three);
}
diff --git a/bin/erb b/bin/erb
index 6db3d0b6ed..6b92ac2284 100755
--- a/bin/erb
+++ b/bin/erb
@@ -1,6 +1,6 @@
#!/usr/bin/env ruby
# Tiny eRuby --- ERB2
-# Copyright (c) 1999-2000,2002 Masatoshi SEKI
+# Copyright (c) 1999-2000,2002 Masatoshi SEKI
# You can redistribute it and/or modify it under the same terms as Ruby.
require 'erb'
@@ -14,11 +14,11 @@ class ERB
if arg =~ /^-(.)(.*)/
if $1 == '-'
arg, @maybe_arg = arg.split(/=/, 2)
- return arg
+ return arg
end
raise 'unknown switch "-"' if $2[0] == ?- and $1 != 'T'
if $2.size > 0
- self.unshift "-#{$2}"
+ self.unshift "-#{$2}"
@maybe_arg = $2
else
@maybe_arg = nil
@@ -29,7 +29,7 @@ class ERB
nil
end
end
-
+
def ARGV.req_arg
(@maybe_arg || self.shift || raise('missing argument')).tap {
@maybe_arg = nil
@@ -77,7 +77,7 @@ class ERB
when '-T' # trim mode
arg = ARGV.req_arg
if arg == '-'
- trim_mode = arg
+ trim_mode = arg
next
end
raise "invalid trim mode #{arg.dump}" unless arg =~ /^[0-2]$/
@@ -97,7 +97,7 @@ class ERB
end
rescue # usage
STDERR.puts $!.to_s
- STDERR.puts File.basename($0) +
+ STDERR.puts File.basename($0) +
" [switches] [inputfile]"
STDERR.puts <<EOU
-x print ruby script
diff --git a/bin/gem b/bin/gem
index b5b2b63809..a4ec754abb 100755
--- a/bin/gem
+++ b/bin/gem
@@ -9,16 +9,13 @@ require 'rubygems'
require 'rubygems/gem_runner'
require 'rubygems/exceptions'
-required_version = Gem::Requirement.new "> 1.8.3"
+required_version = Gem::Requirement.new ">= 1.8.7"
unless required_version.satisfied_by? Gem.ruby_version then
- abort "Expected Ruby Version #{required_version}, was #{Gem.ruby_version}"
+ abort "Expected Ruby Version #{required_version}, is #{Gem.ruby_version}"
end
-# We need to preserve the original ARGV to use for passing gem options
-# to source gems. If there is a -- in the line, strip all options after
-# it...its for the source building process.
-args = !ARGV.include?("--") ? ARGV.clone : ARGV[0...ARGV.index("--")]
+args = ARGV.clone
begin
Gem::GemRunner.new.run args
diff --git a/bin/irb b/bin/irb
index b31b43eb7f..6c8465c802 100755
--- a/bin/irb
+++ b/bin/irb
@@ -1,7 +1,7 @@
#!/usr/bin/env ruby
#
# irb.rb - interactive ruby
-# $Release Version: 0.9.5 $
+# $Release Version: 0.9.6 $
# $Revision$
# by Keiju ISHITSUKA(keiju@ruby-lang.org)
#
diff --git a/bin/rake b/bin/rake
index c9e95da611..0de43c97ec 100755
--- a/bin/rake
+++ b/bin/rake
@@ -23,9 +23,10 @@
#++
begin
- require 'rake'
-rescue LoadError
require 'rubygems'
- require 'rake'
+rescue LoadError
end
+
+require 'rake'
+
Rake.application.run
diff --git a/bin/rdoc b/bin/rdoc
index e50285478d..20d866c220 100755
--- a/bin/rdoc
+++ b/bin/rdoc
@@ -5,18 +5,36 @@
#
# Copyright (c) 2003 Dave Thomas
# Released under the same terms as Ruby
-#
-# $Revision$
+
+begin
+ gem 'rdoc'
+rescue NameError => e # --disable-gems
+ raise unless e.name == :gem
+rescue Gem::LoadError
+end
require 'rdoc/rdoc'
begin
r = RDoc::RDoc.new
r.document ARGV
-rescue Interrupt
- $stderr.puts
- $stderr.puts "Interrupted"
-rescue RDoc::Error => e
- $stderr.puts e.message
+rescue SystemExit
+ raise
+rescue Exception => e
+ if $DEBUG_RDOC then
+ $stderr.puts e.message
+ $stderr.puts "#{e.backtrace.join "\n\t"}"
+ $stderr.puts
+ elsif Interrupt === e then
+ $stderr.puts
+ $stderr.puts 'Interrupted'
+ else
+ $stderr.puts "uh-oh! RDoc had a problem:"
+ $stderr.puts e.message
+ $stderr.puts
+ $stderr.puts "run with --debug for full backtrace"
+ end
+
exit 1
end
+
diff --git a/bin/ri b/bin/ri
index 243557403c..7fbed0c099 100755
--- a/bin/ri
+++ b/bin/ri
@@ -1,5 +1,12 @@
#!/usr/bin/env ruby
+begin
+ gem 'rdoc'
+rescue NameError => e # --disable-gems
+ raise unless e.name == :gem
+rescue Gem::LoadError
+end
+
require 'rdoc/ri/driver'
RDoc::RI::Driver.run ARGV
diff --git a/bin/testrb b/bin/testrb
index e4eb9099b3..e9046eb147 100755
--- a/bin/testrb
+++ b/bin/testrb
@@ -1,14 +1,10 @@
#!/usr/bin/env ruby
require 'test/unit'
-Test::Unit.setup_argv {|files|
- if files.empty?
- puts "Usage: testrb [options] tests..."
- exit 1
- end
- if files.size == 1
- $0 = File.basename(files[0])
- else
- $0 = files.to_s
- end
- files
-}
+tests = Test::Unit::AutoRunner.new(true)
+tests.options.banner.sub!(/\[options\]/, '\& tests...')
+unless tests.process_args(ARGV)
+ abort tests.options.banner
+end
+files = tests.to_run
+$0 = files.size == 1 ? File.basename(files[0]) : files.to_s
+exit tests.run
diff --git a/blockinlining.c b/blockinlining.c
deleted file mode 100644
index f9eb8af229..0000000000
--- a/blockinlining.c
+++ /dev/null
@@ -1,464 +0,0 @@
-/**********************************************************************
-
- blockinlining.c -
-
- $Author$
-
- Copyright (C) 2004-2007 Koichi Sasada
-
-**********************************************************************/
-
-#include "ruby/ruby.h"
-#include "vm_core.h"
-
-static VALUE
-iseq_special_block(rb_iseq_t *iseq, void *builder)
-{
-#if OPT_BLOCKINLINING
- VALUE parent = Qfalse;
- VALUE iseqval;
-
- if (iseq->argc > 1 || iseq->arg_simple == 0) {
- /* argument check */
- return 0;
- }
-
- if (iseq->cached_special_block_builder) {
- if (iseq->cached_special_block_builder == builder) {
- return iseq->cached_special_block;
- }
- else {
- return 0;
- }
- }
- else {
- iseq->cached_special_block_builder = (void *)1;
- }
-
- if (iseq->parent_iseq) {
- parent = iseq->parent_iseq->self;
- }
- iseqval = rb_iseq_new_with_bopt(iseq->node, iseq->name, iseq->filename,
- parent, iseq->type,
- GC_GUARDED_PTR(builder));
- if (0) {
- printf("%s\n", RSTRING_PTR(rb_iseq_disasm(iseqval)));
- }
- iseq->cached_special_block = iseqval;
- iseq->cached_special_block_builder = builder;
- return iseqval;
-#else
- return 0;
-#endif
-}
-
-static NODE *
-new_block(NODE * head, NODE * tail)
-{
- head = NEW_BLOCK(head);
- tail = NEW_BLOCK(tail);
- head->nd_next = tail;
- return head;
-}
-
-static NODE *
-new_ary(NODE * head, NODE * tail)
-{
- head = NEW_ARRAY(head);
- head->nd_next = tail;
- return head;
-}
-
-static NODE *
-new_assign(NODE * lnode, NODE * rhs)
-{
- switch (nd_type(lnode)) {
- case NODE_LASGN:{
- return NEW_NODE(NODE_LASGN, lnode->nd_vid, rhs, lnode->nd_cnt);
- /* NEW_LASGN(lnode->nd_vid, rhs); */
- }
- case NODE_GASGN:{
- return NEW_GASGN(lnode->nd_vid, rhs);
- }
- case NODE_DASGN:{
- return NEW_DASGN(lnode->nd_vid, rhs);
- }
- case NODE_ATTRASGN:{
- NODE *args = 0;
- if (lnode->nd_args) {
- args = NEW_ARRAY(lnode->nd_args->nd_head);
- args->nd_next = NEW_ARRAY(rhs);
- args->nd_alen = 2;
- }
- else {
- args = NEW_ARRAY(rhs);
- }
-
- return NEW_ATTRASGN(lnode->nd_recv,
- lnode->nd_mid,
- args);
- }
- default:
- rb_bug("unimplemented (block inlining): %s", ruby_node_name(nd_type(lnode)));
- }
- return 0;
-}
-
-static NODE *
-build_Integer_times_node(rb_iseq_t *iseq, NODE * node, NODE * lnode,
- VALUE param_vars, VALUE local_vars)
-{
- /* Special Block for Integer#times
- {|e, _self|
- _e = e
- while(e < _self)
- e = _e
- redo_point:
- BODY
- next_point:
- _e = _e.succ
- end
- }
-
- {|e, _self|
- while(e < _self)
- BODY
- next_point:
- e = e.succ
- end
- }
- */
- ID _self;
- CONST_ID(_self, "#_self");
- if (iseq->argc == 0) {
- ID e;
- CONST_ID(e, "#e");
- rb_ary_push(param_vars, ID2SYM(e));
- rb_ary_push(param_vars, ID2SYM(_self));
- iseq->argc += 2;
-
- node =
- NEW_WHILE(NEW_CALL
- (NEW_DVAR(e), idLT, new_ary(NEW_DVAR(_self), 0)),
- new_block(NEW_OPTBLOCK(node),
- NEW_DASGN(e,
- NEW_CALL(NEW_DVAR(e), idSucc, 0))),
- Qundef);
- }
- else {
- ID _e;
- ID e = SYM2ID(rb_ary_entry(param_vars, 0));
- NODE *assign;
-
- CONST_ID(_e, "#_e");
- rb_ary_push(param_vars, ID2SYM(_self));
- rb_ary_push(local_vars, ID2SYM(_e));
- iseq->argc++;
-
- if (nd_type(lnode) == NODE_DASGN_CURR) {
- assign = NEW_DASGN(e, NEW_DVAR(_e));
- }
- else {
- assign = new_assign(lnode, NEW_DVAR(_e));
- }
-
- node =
- new_block(NEW_DASGN(_e, NEW_DVAR(e)),
- NEW_WHILE(NEW_CALL
- (NEW_DVAR(_e), idLT,
- new_ary(NEW_DVAR(_self), 0)),
- new_block(assign,
- new_block(NEW_OPTBLOCK(node),
- NEW_DASGN(_e,
- NEW_CALL
- (NEW_DVAR(_e),
- idSucc, 0)))),
- Qundef));
- }
- return node;
-}
-
-VALUE
-invoke_Integer_times_special_block(VALUE num)
-{
- rb_thread_t *th = GET_THREAD();
- rb_block_t *orig_block = GC_GUARDED_PTR_REF(th->cfp->lfp[0]);
-
- if (orig_block && BUILTIN_TYPE(orig_block->iseq) != T_NODE) {
- VALUE tsiseqval = iseq_special_block(orig_block->iseq,
- build_Integer_times_node);
- rb_iseq_t *tsiseq;
- VALUE argv[2], val;
-
- if (tsiseqval) {
- rb_block_t block = *orig_block;
- GetISeqPtr(tsiseqval, tsiseq);
- block.iseq = tsiseq;
- th->cfp->lfp[0] = GC_GUARDED_PTR(&block);
- argv[0] = INT2FIX(0);
- argv[1] = num;
- val = rb_yield_values(2, argv);
- if (val == Qundef) {
- return num;
- }
- else {
- return val;
- }
- }
- }
- return Qundef;
-}
-
-static NODE *
-build_Range_each_node(rb_iseq_t *iseq, NODE * node, NODE * lnode,
- VALUE param_vars, VALUE local_vars, ID mid)
-{
- /* Special Block for Range#each
- {|e, _last|
- _e = e
- while _e < _last
- e = _e
- next_point:
- BODY
- redo_point:
- _e = _e.succ
- end
- }
- {|e, _last|
- while e < _last
- BODY
- redo_point:
- e = e.succ
- end
- }
- */
- ID _last;
- CONST_ID(_last, "#_last");
- if (iseq->argc == 0) {
- ID e;
- CONST_ID(e, "#e");
- rb_ary_push(param_vars, ID2SYM(e));
- rb_ary_push(param_vars, ID2SYM(_last));
- iseq->argc += 2;
-
- node =
- NEW_WHILE(NEW_CALL(NEW_DVAR(e), mid, new_ary(NEW_DVAR(_last), 0)),
- new_block(NEW_OPTBLOCK(node),
- NEW_DASGN(e,
- NEW_CALL(NEW_DVAR(e), idSucc, 0))),
- Qundef);
- }
- else {
- ID _e;
- ID e = SYM2ID(rb_ary_entry(param_vars, 0));
- NODE *assign;
-
- CONST_ID(_e, "#_e");
- rb_ary_push(param_vars, ID2SYM(_last));
- rb_ary_push(local_vars, ID2SYM(_e));
- iseq->argc++;
-
- if (nd_type(lnode) == NODE_DASGN_CURR) {
- assign = NEW_DASGN(e, NEW_DVAR(_e));
- }
- else {
- assign = new_assign(lnode, NEW_DVAR(_e));
- }
-
- node =
- new_block(NEW_DASGN(_e, NEW_DVAR(e)),
- NEW_WHILE(NEW_CALL
- (NEW_DVAR(_e), mid,
- new_ary(NEW_DVAR(_last), 0)),
- new_block(assign,
- new_block(NEW_OPTBLOCK(node),
- NEW_DASGN(_e,
- NEW_CALL
- (NEW_DVAR(_e),
- idSucc, 0)))),
- Qundef));
- }
- return node;
-}
-
-static NODE *
-build_Range_each_node_LE(rb_iseq_t *iseq, NODE * node, NODE * lnode,
- VALUE param_vars, VALUE local_vars)
-{
- return build_Range_each_node(iseq, node, lnode,
- param_vars, local_vars, idLE);
-}
-
-static NODE *
-build_Range_each_node_LT(rb_iseq_t *iseq, NODE * node, NODE * lnode,
- VALUE param_vars, VALUE local_vars)
-{
- return build_Range_each_node(iseq, node, lnode,
- param_vars, local_vars, idLT);
-}
-
-VALUE
-invoke_Range_each_special_block(VALUE range,
- VALUE beg, VALUE end, int excl)
-{
- rb_thread_t *th = GET_THREAD();
- rb_block_t *orig_block = GC_GUARDED_PTR_REF(th->cfp->lfp[0]);
-
- if (BUILTIN_TYPE(orig_block->iseq) != T_NODE) {
- void *builder =
- excl ? build_Range_each_node_LT : build_Range_each_node_LE;
- VALUE tsiseqval = iseq_special_block(orig_block->iseq, builder);
- rb_iseq_t *tsiseq;
- VALUE argv[2];
-
- if (tsiseqval) {
- VALUE val;
- rb_block_t block = *orig_block;
- GetISeqPtr(tsiseqval, tsiseq);
- block.iseq = tsiseq;
- th->cfp->lfp[0] = GC_GUARDED_PTR(&block);
- argv[0] = beg;
- argv[1] = end;
- val = rb_yield_values(2, argv);
- if (val == Qundef) {
- return range;
- }
- else {
- return val;
- }
- }
- }
- return Qundef;
-}
-
-
-static NODE *
-build_Array_each_node(rb_iseq_t *iseq, NODE * node, NODE * lnode,
- VALUE param_vars, VALUE local_vars)
-{
- /* Special block for Array#each
- ary.each{|e|
- BODY
- }
- =>
- {|e, _self|
- _i = 0
- while _i < _self.length
- e = _self[_i]
- redo_point:
- BODY
- next_point:
- _i = _i.succ
- end
- }
-
- ary.each{
- BODY
- }
- =>
- {|_i, _self|
- _i = 0
- while _i < _self.length
- redo_point:
- BODY
- next_point:
- _i = _i.succ
- end
- }
- */
-
- ID _self, _i;
-
- CONST_ID(_self, "#_self");
- CONST_ID(_i, "#_i");
- if (iseq->argc == 0) {
- ID _e;
- CONST_ID(_e, "#_e");
- rb_ary_push(param_vars, ID2SYM(_e));
- rb_ary_push(param_vars, ID2SYM(_self));
- iseq->argc += 2;
- rb_ary_push(local_vars, ID2SYM(_i));
-
- node =
- new_block(NEW_DASGN(_i, NEW_LIT(INT2FIX(0))),
- NEW_WHILE(NEW_CALL(NEW_DVAR(_i), idLT,
- new_ary(NEW_CALL
- (NEW_DVAR(_self), idLength,
- 0), 0)),
- new_block(NEW_OPTBLOCK(node),
- NEW_DASGN(_i,
- NEW_CALL(NEW_DVAR(_i),
- idSucc, 0))),
- Qundef));
- }
- else {
- ID e = SYM2ID(rb_ary_entry(param_vars, 0));
- NODE *assign;
-
- rb_ary_push(param_vars, ID2SYM(_self));
- iseq->argc++;
- rb_ary_push(local_vars, ID2SYM(_i));
-
- if (nd_type(lnode) == NODE_DASGN_CURR) {
- assign = NEW_DASGN(e,
- NEW_CALL(NEW_DVAR(_self), idAREF,
- new_ary(NEW_DVAR(_i), 0)));
- }
- else {
- assign = new_assign(lnode,
- NEW_CALL(NEW_DVAR(_self), idAREF,
- new_ary(NEW_DVAR(_i), 0)));
- }
-
- node =
- new_block(NEW_DASGN(_i, NEW_LIT(INT2FIX(0))),
- NEW_WHILE(NEW_CALL(NEW_DVAR(_i), idLT,
- new_ary(NEW_CALL
- (NEW_DVAR(_self), idLength,
- 0), 0)), new_block(assign,
- new_block
- (NEW_OPTBLOCK
- (node),
- NEW_DASGN
- (_i,
- NEW_CALL
- (NEW_DVAR
- (_i),
- idSucc,
- 0)))),
- Qundef));
- }
- return node;
-}
-
-VALUE
-invoke_Array_each_special_block(VALUE ary)
-{
- rb_thread_t *th = GET_THREAD();
- rb_block_t *orig_block = GC_GUARDED_PTR_REF(th->cfp->lfp[0]);
-
- if (BUILTIN_TYPE(orig_block->iseq) != T_NODE) {
- VALUE tsiseqval = iseq_special_block(orig_block->iseq,
- build_Array_each_node);
- rb_iseq_t *tsiseq;
- VALUE argv[2];
-
- if (tsiseqval) {
- VALUE val;
- rb_block_t block = *orig_block;
- GetISeqPtr(tsiseqval, tsiseq);
- block.iseq = tsiseq;
- th->cfp->lfp[0] = GC_GUARDED_PTR(&block);
- argv[0] = 0;
- argv[1] = ary;
- val = rb_yield_values(2, argv);
- if (val == Qundef) {
- return ary;
- }
- else {
- return val;
- }
- }
- }
- return Qundef;
-}
diff --git a/bootstraptest/runner.rb b/bootstraptest/runner.rb
index aff5a54ee7..df58ca58f3 100644..100755
--- a/bootstraptest/runner.rb
+++ b/bootstraptest/runner.rb
@@ -1,3 +1,5 @@
+"exec" "${RUBY-ruby}" "-x" "$0" "$@"; true # -*- mode: ruby; coding: utf-8 -*-
+#!./ruby
# $Id$
# NOTE:
@@ -15,13 +17,27 @@ end
if !Dir.respond_to?(:mktmpdir)
# copied from lib/tmpdir.rb
- def Dir.mktmpdir(prefix="d", tmpdir=nil)
+ def Dir.mktmpdir(prefix_suffix=nil, tmpdir=nil)
+ case prefix_suffix
+ when nil
+ prefix = "d"
+ suffix = ""
+ when String
+ prefix = prefix_suffix
+ suffix = ""
+ when Array
+ prefix = prefix_suffix[0]
+ suffix = prefix_suffix[1]
+ else
+ raise ArgumentError, "unexpected prefix_suffix: #{prefix_suffix.inspect}"
+ end
tmpdir ||= Dir.tmpdir
t = Time.now.strftime("%Y%m%d")
n = nil
begin
path = "#{tmpdir}/#{prefix}#{t}-#{$$}-#{rand(0x100000000).to_s(36)}"
path << "-#{n}" if n
+ path << suffix
Dir.mkdir(path, 0700)
rescue Errno::EEXIST
n ||= 0
@@ -44,6 +60,7 @@ end
def main
@ruby = File.expand_path('miniruby')
@verbose = false
+ $stress = false
dir = nil
quiet = false
tests = nil
@@ -56,7 +73,7 @@ def main
@ruby.gsub!(/(\s+-r\s*)(\.\.?\/\S+)/){$1+File.expand_path($2)}
true
when /\A--sets=(.*)/
- tests = Dir.glob("#{File.dirname($0)}/test_{#{$1}}*.rb")
+ tests = Dir.glob("#{File.dirname($0)}/test_{#{$1}}*.rb").sort
puts tests.map {|path| File.basename(path) }.inspect
true
when /\A--dir=(.*)/
@@ -74,7 +91,7 @@ def main
Usage: #{File.basename($0, '.*')} --ruby=PATH [--sets=NAME,NAME,...]
--sets=NAME,NAME,... Name of test sets.
--dir=DIRECTORY Working directory.
- default: /tmp/bootstraptest.tmpwd
+ default: /tmp/bootstraptestXXXXX.tmpwd
-s, --stress stress test.
-v, --verbose Output test name before exec.
-q, --quiet Don\'t print header message.
@@ -90,7 +107,7 @@ End
exit false
end
tests ||= ARGV
- tests = Dir.glob("#{File.dirname($0)}/test_*.rb") if tests.empty?
+ tests = Dir.glob("#{File.dirname($0)}/test_*.rb").sort if tests.empty?
pathes = tests.map {|path| File.expand_path(path) }
unless quiet
@@ -119,6 +136,7 @@ def exec_test(pathes)
@location = nil
pathes.each do |path|
$stderr.print "\n#{File.basename(path)} "
+ $stderr.puts if @verbose
load File.expand_path(path)
end
$stderr.puts
@@ -138,22 +156,33 @@ def exec_test(pathes)
end
end
-def assert_check(testsrc, message = '', opt = '')
- $stderr.puts "\##{@count} #{@location}" if @verbose
- result = get_result_string(testsrc, opt)
- check_coredump
- faildesc = yield(result)
+def show_progress(message = '')
+ if @verbose
+ $stderr.print "\##{@count} #{@location} "
+ end
+ faildesc = yield
if !faildesc
$stderr.print '.'
+ $stderr.puts if @verbose
else
$stderr.print 'F'
+ $stderr.puts if @verbose
error faildesc, message
end
rescue Exception => err
$stderr.print 'E'
+ $stderr.puts if @verbose
error err.message, message
end
+def assert_check(testsrc, message = '', opt = '')
+ show_progress(message) {
+ result = get_result_string(testsrc, opt)
+ check_coredump
+ yield(result)
+ }
+end
+
def assert_equal(expected, testsrc, message = '')
newtest
assert_check(testsrc, message) {|result|
@@ -197,89 +226,90 @@ def assert_valid_syntax(testsrc, message = '')
}
end
-def assert_normal_exit(testsrc, message = '', ignore_signals = nil)
+def assert_normal_exit(testsrc, *rest)
newtest
- $stderr.puts "\##{@count} #{@location}" if @verbose
- faildesc = nil
- filename = make_srcfile(testsrc)
- old_stderr = $stderr.dup
- begin
- $stderr.reopen("assert_normal_exit_stderr.log", "w")
- `#{@ruby} -W0 #{filename}`
- status = $?
- ensure
- $stderr.reopen(old_stderr)
- old_stderr.close
- end
- if status.signaled?
- signo = status.termsig
- signame = Signal.list.invert[signo]
- unless ignore_signals and ignore_signals.include?(signame)
- sigdesc = "signal #{signo}"
- if signame
- sigdesc = "SIG#{signame} (#{sigdesc})"
+ opt = {}
+ opt = rest.pop if Hash === rest.last
+ message, ignore_signals = rest
+ message ||= ''
+ timeout = opt[:timeout]
+ show_progress(message) {
+ faildesc = nil
+ filename = make_srcfile(testsrc)
+ old_stderr = $stderr.dup
+ timeout_signaled = false
+ begin
+ $stderr.reopen("assert_normal_exit.log", "w")
+ io = IO.popen("#{@ruby} -W0 #{filename}")
+ pid = io.pid
+ th = Thread.new {
+ io.read
+ io.close
+ $?
+ }
+ if !th.join(timeout)
+ Process.kill :KILL, pid
+ timeout_signaled = true
end
- faildesc = pretty(testsrc, "killed by #{sigdesc}", nil)
- stderr_log = File.read("assert_normal_exit_stderr.log")
- if !stderr_log.empty?
- faildesc << "\n" if /\n\z/ !~ faildesc
- stderr_log << "\n" if /\n\z/ !~ stderr_log
- stderr_log.gsub!(/^.*\n/) { '| ' + $& }
- faildesc << stderr_log
+ status = th.value
+ ensure
+ $stderr.reopen(old_stderr)
+ old_stderr.close
+ end
+ if status.signaled?
+ signo = status.termsig
+ signame = Signal.list.invert[signo]
+ unless ignore_signals and ignore_signals.include?(signame)
+ sigdesc = "signal #{signo}"
+ if signame
+ sigdesc = "SIG#{signame} (#{sigdesc})"
+ end
+ if timeout_signaled
+ sigdesc << " (timeout)"
+ end
+ faildesc = pretty(testsrc, "killed by #{sigdesc}", nil)
+ stderr_log = File.read("assert_normal_exit.log")
+ if !stderr_log.empty?
+ faildesc << "\n" if /\n\z/ !~ faildesc
+ stderr_log << "\n" if /\n\z/ !~ stderr_log
+ stderr_log.gsub!(/^.*\n/) { '| ' + $& }
+ faildesc << stderr_log
+ end
end
end
- end
- if !faildesc
- $stderr.print '.'
- true
- else
- $stderr.print 'F'
- error faildesc, message
- false
- end
-rescue Exception => err
- $stderr.print 'E'
- error err.message, message
- false
+ faildesc
+ }
end
def assert_finish(timeout_seconds, testsrc, message = '')
newtest
- $stderr.puts "\##{@count} #{@location}" if @verbose
- faildesc = nil
- filename = make_srcfile(testsrc)
- io = IO.popen("#{@ruby} -W0 #{filename}")
- pid = io.pid
- waited = false
- tlimit = Time.now + timeout_seconds
- while Time.now < tlimit
- if Process.waitpid pid, Process::WNOHANG
- waited = true
- break
+ show_progress(message) {
+ faildesc = nil
+ filename = make_srcfile(testsrc)
+ io = IO.popen("#{@ruby} -W0 #{filename}")
+ pid = io.pid
+ waited = false
+ tlimit = Time.now + timeout_seconds
+ while Time.now < tlimit
+ if Process.waitpid pid, Process::WNOHANG
+ waited = true
+ break
+ end
+ sleep 0.1
end
- sleep 0.1
- end
- if !waited
- Process.kill(:KILL, pid)
- Process.waitpid pid
- faildesc = pretty(testsrc, "not finished in #{timeout_seconds} seconds", nil)
- end
- io.close
- if !faildesc
- $stderr.print '.'
- else
- $stderr.print 'F'
- error faildesc, message
- end
-rescue Exception => err
- $stderr.print 'E'
- error err.message, message
+ if !waited
+ Process.kill(:KILL, pid)
+ Process.waitpid pid
+ faildesc = pretty(testsrc, "not finished in #{timeout_seconds} seconds", nil)
+ end
+ io.close
+ faildesc
+ }
end
def flunk(message = '')
newtest
- $stderr.print 'F'
- error message, ''
+ show_progress('') { message }
end
def pretty(src, desc, result)
@@ -337,7 +367,7 @@ def in_temporary_working_directory(dir)
yield
}
else
- Dir.mktmpdir("bootstraptest.tmpwd") {|d|
+ Dir.mktmpdir(["bootstraptest", ".tmpwd"]) {|d|
Dir.chdir(d) {
yield
}
diff --git a/bootstraptest/test_autoload.rb b/bootstraptest/test_autoload.rb
index fe728e1e4c..e8df6684b6 100644
--- a/bootstraptest/test_autoload.rb
+++ b/bootstraptest/test_autoload.rb
@@ -1,4 +1,36 @@
assert_equal 'ok', %q{
+ File.unlink('zzz.rb') if File.file?('zzz.rb')
+ instance_eval do
+ autoload :ZZZ, './zzz.rb'
+ begin
+ ZZZ
+ rescue LoadError
+ :ok
+ end
+ end
+}, '[ruby-dev:43816]'
+
+assert_equal 'ok', %q{
+ open('zzz.rb', 'w') {|f| f.puts '' }
+ instance_eval do
+ autoload :ZZZ, './zzz.rb'
+ begin
+ ZZZ
+ rescue NameError
+ :ok
+ end
+ end
+}, '[ruby-dev:43816]'
+
+assert_equal 'ok', %q{
+ open('zzz.rb', 'w') {|f| f.puts 'class ZZZ; def self.ok;:ok;end;end'}
+ instance_eval do
+ autoload :ZZZ, './zzz.rb'
+ ZZZ.ok
+ end
+}, '[ruby-dev:43816]'
+
+assert_equal 'ok', %q{
open("zzz.rb", "w") {|f| f.puts "class ZZZ; def self.ok;:ok;end;end"}
autoload :ZZZ, "./zzz.rb"
ZZZ.ok
@@ -70,7 +102,7 @@ assert_finish 5, %q{
assert_equal 'A::C', %q{
open("zzz.rb", "w") {}
class A
- autoload :C, "zzz"
+ autoload :C, "./zzz"
class C
end
C
diff --git a/bootstraptest/test_block.rb b/bootstraptest/test_block.rb
index ce7f00b033..ea6768cc25 100644
--- a/bootstraptest/test_block.rb
+++ b/bootstraptest/test_block.rb
@@ -75,7 +75,7 @@ assert_equal %q{[1, 2, 3]}, %q{
}
end
end
-
+
C.new.to_a
}
assert_equal %q{[4, 5, 6]}, %q{
@@ -87,7 +87,7 @@ assert_equal %q{[4, 5, 6]}, %q{
}
end
end
-
+
C.new.map{|e|
e + 3
}
@@ -110,7 +110,7 @@ assert_equal %q{20}, %q{
def m
yield 1
end
-
+
m{|ib|
m{|jb|
i = 20
@@ -121,7 +121,7 @@ assert_equal %q{2}, %q{
def m
yield 1
end
-
+
m{|ib|
m{|jb|
ib = 20
@@ -135,11 +135,11 @@ assert_equal %q{3}, %q{
yield
}
end
-
+
def iter2
yield
end
-
+
iter1{
jb = 2
iter1{
@@ -154,11 +154,11 @@ assert_equal %q{2}, %q{
yield
}
end
-
+
def iter2
yield
end
-
+
iter1{
jb = 2
iter1{
@@ -226,11 +226,11 @@ assert_equal %q{[10, 20, 30, 40, nil, nil]}, %q{
}
assert_equal %q{[1]}, %q{
$a = []
-
+
def iter
yield 1
end
-
+
def m
x = iter{|x|
$a << x
@@ -450,7 +450,7 @@ assert_equal 'ok', %q{
end
vs1 = []
C.new.each {|*v| vs1 << v }
- vs2 = []
+ vs2 = []
C.new.to_enum.each {|*v| vs2 << v }
vs1 == vs2 ? :ok : :ng
}, '[ruby-dev:32329]'
@@ -468,9 +468,9 @@ assert_equal '[nil, []]', %q{
def m() yield nil,[] end
l = lambda {|*v| v}
GC.stress=true
- r = m(&l)
+ r = m(&l)
GC.stress=false
- r.inspect
+ r.inspect
}, '[ruby-dev:32567]'
assert_equal NilClass.to_s, %q{
diff --git a/bootstraptest/test_class.rb b/bootstraptest/test_class.rb
index a7f6d4df47..664dd2f166 100644
--- a/bootstraptest/test_class.rb
+++ b/bootstraptest/test_class.rb
@@ -150,3 +150,10 @@ assert_match /::C\z/, %q{
Module.new{|m| c = class m::C; name; end}
c
}, '[ruby-dev:38456]'
+
+assert_normal_exit %q{
+ s = Symbol.dup
+ class << s
+ end
+ s.allocate.to_s
+}, '[ruby-core:30843]'
diff --git a/bootstraptest/test_eval.rb b/bootstraptest/test_eval.rb
index 6dc23468cb..c347d50ac9 100644
--- a/bootstraptest/test_eval.rb
+++ b/bootstraptest/test_eval.rb
@@ -116,7 +116,7 @@ assert_equal %q{1}, %q{
Const
}
}
-assert_equal %q{C}, %q{
+assert_equal %q{top}, %q{
Const = :top
class C
Const = :C
@@ -137,7 +137,7 @@ assert_equal %q{C}, %q{
}
C.new.m
}
-assert_equal %q{C}, %q{
+assert_equal %q{top}, %q{
Const = :top
class C
Const = :C
@@ -287,7 +287,7 @@ assert_normal_exit %q{
eval("", method(:proc).call {}.binding)
}
-assert_equal "(eval):1:in `block in <main>': ", %q{
+assert_equal "", %q{
b = binding
10.times{
eval('', b)
@@ -297,5 +297,25 @@ assert_equal "(eval):1:in `block in <main>': ", %q{
rescue => e
e.message
end
-}, ' [ruby-dev:35392]'
+}, '[ruby-dev:35392]'
+assert_equal "[:x]", %q{
+ def kaboom!
+ yield.eval("local_variables")
+ end
+
+ for x in enum_for(:kaboom!)
+ binding
+ end
+}, '[ruby-core:25125]'
+
+assert_normal_exit %q{
+ hash = {}
+ ("aaaa".."matz").each_with_index do |s, i|
+ hash[s] = i
+ end
+ begin
+ eval "class C; @@h = #{hash.inspect}; end"
+ rescue SystemStackError
+ end
+}, '[ruby-core:25714]'
diff --git a/bootstraptest/test_exception.rb b/bootstraptest/test_exception.rb
index bd3d02ade3..f7d5eeaa07 100644
--- a/bootstraptest/test_exception.rb
+++ b/bootstraptest/test_exception.rb
@@ -97,7 +97,7 @@ assert_equal %q{[#<RuntimeError: FOO>, #<RuntimeError: FOO>]}, %q{
def m
$!
end
-
+
begin
begin
raise "FOO"
@@ -205,11 +205,11 @@ assert_equal %q{3}, %q{
assert_equal %q{ok3}, %q{
class E1 < Exception
end
-
+
def m
yield
end
-
+
begin
begin
begin
@@ -239,7 +239,7 @@ assert_equal %q{7}, %q{
$i += 2
break
ensure
-
+
end
ensure
$i += 4
@@ -247,7 +247,7 @@ assert_equal %q{7}, %q{
$i = 0
}
end
-
+
def iter
yield
end
@@ -349,7 +349,7 @@ assert_equal %q{12}, %q{
7+7
end
}
-assert_equal %q{ok}, %q{ #
+assert_equal %q{ok}, %q{ #
proc{
begin
raise
@@ -370,13 +370,13 @@ assert_equal %q{}, %q{
}
##
-assert_match /undefined method `foo\'/, %q{
+assert_match /undefined method `foo\'/, %q{#`
STDERR.reopen(STDOUT)
class C
def inspect
bar {}
end
-
+
def bar
raise
ensure
@@ -402,3 +402,15 @@ assert_equal 'nil', %q{
exc.inspect
}, '[ruby-dev:32608]'
+assert_equal 'exception class/object expected', %q{
+ class ZeroDivisionError
+ def self.new(message)
+ 42
+ end
+ end
+ begin
+ 1/0
+ rescue Exception => e
+ e.message
+ end
+}, '[ruby-core:24767]'
diff --git a/bootstraptest/test_flow.rb b/bootstraptest/test_flow.rb
index 46ca1a0c6a..d40d814fbc 100644
--- a/bootstraptest/test_flow.rb
+++ b/bootstraptest/test_flow.rb
@@ -29,7 +29,7 @@ assert_equal %q{ok}, %q{
end
end
end
-
+
('a').lines.map{|e|
break :ok
}
@@ -502,3 +502,50 @@ assert_equal %Q{ENSURE\n}, %q{
test
}, '[ruby-dev:37967]'
+[['[ruby-core:28129]', %q{
+ class Bug2728
+ include Enumerable
+ define_method(:dynamic_method) do
+ "dynamically defined method"
+ end
+ def each
+ begin
+ yield :foo
+ ensure
+ dynamic_method
+ end
+ end
+ end
+ e = Bug2728.new
+}],
+ ['[ruby-core:28132]', %q{
+ class Bug2729
+ include Enumerable
+ def each
+ begin
+ yield :foo
+ ensure
+ proc {}.call
+ end
+ end
+ end
+ e = Bug2729.new
+}],
+ ['[ruby-core:39125]', %q{
+ class Bug5234
+ include Enumerable
+ def each
+ begin
+ yield :foo
+ ensure
+ proc
+ end
+ end
+ end
+ e = Bug5234.new
+}]].each do |bug, src|
+ assert_equal "foo", src + %q{e.detect {true}}, bug
+ assert_equal "true", src + %q{e.any? {true}}, bug
+ assert_equal "false", src + %q{e.all? {false}}, bug
+ assert_equal "true", src + %q{e.include?(:foo)}, bug
+end
diff --git a/bootstraptest/test_fork.rb b/bootstraptest/test_fork.rb
index c6b1b71a60..384294727f 100644
--- a/bootstraptest/test_fork.rb
+++ b/bootstraptest/test_fork.rb
@@ -20,3 +20,50 @@ assert_finish 10, %q{
rescue NotImplementedError
end
}, '[ruby-core:22158]'
+
+assert_normal_exit(<<'End', '[ruby-dev:37934]')
+ Thread.new { sleep 1; Thread.kill Thread.main }
+ Process.setrlimit(:NPROC, 1)
+ fork {}
+End
+
+assert_equal 'ok', %q{
+ begin
+ if pid1 = fork
+ sleep 1
+ Process.kill("USR1", pid1)
+ _, s = Process.wait2(pid1)
+ s.success? ? :ok : :ng
+ else
+ if pid2 = fork
+ trap("USR1") { Time.now.to_s }
+ Process.wait2(pid2)
+ else
+ sleep 2
+ end
+ exit 0
+ end
+ rescue NotImplementedError
+ :ok
+ end
+}, '[ruby-core:28924]'
+
+assert_equal '[1, 2]', %q{
+ a = []
+ trap(:INT) { a.push(1) }
+ trap(:TERM) { a.push(2) }
+ pid = $$
+ begin
+ fork do
+ sleep 0.5
+ Process.kill(:INT, pid)
+ Process.kill(:TERM, pid)
+ end
+
+ sleep 1
+ a.sort
+ rescue NotImplementedError
+ [1, 2]
+ end
+}, '[ruby-dev:44005] [Ruby 1.9 - Bug #4950]'
+
diff --git a/bootstraptest/test_gc.rb b/bootstraptest/test_gc.rb
new file mode 100644
index 0000000000..eb68c9845e
--- /dev/null
+++ b/bootstraptest/test_gc.rb
@@ -0,0 +1,34 @@
+assert_normal_exit %q{
+a = []
+ms = "a".."k"
+("A".."Z").each do |mod|
+ mod = eval("module #{mod}; self; end")
+ ms.each do |meth|
+ iseq = RubyVM::InstructionSequence.compile("module #{mod}; def #{meth}; end; end")
+ GC.stress = true
+ iseq.eval
+ GC.stress = false
+ end
+ o = Object.new.extend(mod)
+ ms.each do |meth|
+ o.send(meth)
+ end
+end
+}, '[ruby-dev:39453]'
+
+assert_normal_exit %q{
+a = []
+ms = "a".."k"
+("A".."Z").each do |mod|
+ mod = eval("module #{mod}; self; end")
+ ms.each do |meth|
+ GC.stress = true
+ mod.module_eval {define_method(meth) {}}
+ GC.stress = false
+ end
+ o = Object.new.extend(mod)
+ ms.each do |meth|
+ o.send(meth)
+ end
+end
+}, '[ruby-dev:39453]'
diff --git a/bootstraptest/test_io.rb b/bootstraptest/test_io.rb
index 83b38f8cce..7304aebc26 100644
--- a/bootstraptest/test_io.rb
+++ b/bootstraptest/test_io.rb
@@ -11,19 +11,23 @@ assert_finish 5, %q{
assert_finish 10, %q{
begin
require "io/nonblock"
- r, w = IO.pipe
- w.nonblock = true
- w.write_nonblock("a" * 100000)
- w.nonblock = false
- t1 = Thread.new { w.write("b" * 4096) }
- t2 = Thread.new { w.write("c" * 4096) }
- sleep 0.5
- r.sysread(4096).length
- sleep 0.5
- r.sysread(4096).length
- t1.join
- t2.join
- rescue LoadError
+ require "timeout"
+ timeout(3) do
+ r, w = IO.pipe
+ w.nonblock?
+ w.nonblock = true
+ w.write_nonblock("a" * 100000)
+ w.nonblock = false
+ t1 = Thread.new { w.write("b" * 4096) }
+ t2 = Thread.new { w.write("c" * 4096) }
+ sleep 0.5
+ r.sysread(4096).length
+ sleep 0.5
+ r.sysread(4096).length
+ t1.join
+ t2.join
+ end
+ rescue LoadError, TimeoutError, NotImplementedError
end
}, '[ruby-dev:32566]'
@@ -74,7 +78,7 @@ assert_normal_exit %q{
ARGF.set_encoding "foo"
}
-50.times do
+10.times do
assert_normal_exit %q{
at_exit { p :foo }
@@ -86,11 +90,13 @@ assert_normal_exit %q{
r1, w1 = IO.pipe
r2, w2 = IO.pipe
t1 = Thread.new { w1 << megacontent; w1.close }
- t2 = Thread.new { r2.read }
+ t2 = Thread.new { r2.read; r2.close }
IO.copy_stream(r1, w2) rescue nil
- r2.close; w2.close
- r1.close; w1.close
- }, '', ["INT"] or break
+ w2.close
+ r1.close
+ t1.join
+ t2.join
+ }, 'megacontent-copy_stream', ["INT"], :timeout => 10 or break
end
assert_normal_exit %q{
diff --git a/bootstraptest/test_jump.rb b/bootstraptest/test_jump.rb
index 77467337c2..595aaa7c4b 100644
--- a/bootstraptest/test_jump.rb
+++ b/bootstraptest/test_jump.rb
@@ -100,7 +100,7 @@ assert_equal %q{ok}, %q{
def m
yield
end
-
+
m{
begin
ensure
@@ -190,7 +190,7 @@ assert_equal %q{100}, %q{
$i = 100
end
end
-
+
def iter
yield
end
@@ -216,7 +216,7 @@ assert_equal %q{1}, %q{
return 1
end
end
-
+
m
}
assert_equal %q{1}, %q{
@@ -227,7 +227,7 @@ assert_equal %q{1}, %q{
return 1
end
end
-
+
m
}
assert_equal 'ok', %q{
@@ -259,3 +259,50 @@ assert_normal_exit %q{
end
end
}
+
+assert_normal_exit %q{
+ -> do
+ 1.times do
+ begin
+ raise
+ rescue
+ return
+ end
+ end
+ end.call
+}
+
+assert_normal_exit %q{
+ while true
+ begin
+ raise
+ next
+ rescue
+ end
+ break
+ end
+}, '[ruby-core:28172]'
+
+assert_equal "true", %q{
+ class Object
+ def return_eigenclass
+ class << self
+ return self
+ end
+ end
+ end
+ s = "foo"
+ s.return_eigenclass == class << s; self; end
+}, '[ruby-core:21379]'
+
+assert_equal "true", %q{
+ class Object
+ def yield_eigenclass
+ class << self
+ yield self
+ end
+ end
+ end
+ s = "foo"
+ s.yield_eigenclass {|c| c == class << s; self; end }
+}, '[ruby-dev:40975]'
diff --git a/bootstraptest/test_literal.rb b/bootstraptest/test_literal.rb
index 8480c65308..ab028e2c1e 100644
--- a/bootstraptest/test_literal.rb
+++ b/bootstraptest/test_literal.rb
@@ -192,3 +192,11 @@ assert_normal_exit %q{
rescue
end
}, '[ruby-dev:34536]'
+
+assert_equal 'ok', %q{
+ "#{}""#{}ok"
+}, '[ruby-dev:38968]'
+
+assert_equal 'ok', %q{
+ "#{}o""#{}k""#{}"
+}, '[ruby-core:25284]'
diff --git a/bootstraptest/test_method.rb b/bootstraptest/test_method.rb
index 8953a0d4d1..2baf33539d 100644
--- a/bootstraptest/test_method.rb
+++ b/bootstraptest/test_method.rb
@@ -402,6 +402,10 @@ m(1,2,*ary,&b)
$result
}
+# aset and splat
+assert_equal '4', %q{class Foo;def []=(a,b,c,d);end;end;Foo.new[1,*a=[2,3]]=4}
+assert_equal '4', %q{class Foo;def []=(a,b,c,d);end;end;def m(&blk)Foo.new[1,*a=[2,3],&blk]=4;end;m{}}
+
# post test
assert_equal %q{[1, 2, :o1, :o2, [], 3, 4, NilClass, nil, nil]}, %q{
def m(m1, m2, o1=:o1, o2=:o2, *r, p1, p2, &b)
@@ -914,7 +918,7 @@ assert_equal %q{[:ok, :ok, :ok, :ok, :ok, :ok, :ng, :ng]}, %q{
o1 = c1.new
o2 = c2.new
-
+
test{o1.m}
test{o2.mm}
test{o1.send :m}
@@ -1074,7 +1078,7 @@ assert_equal '[1, 2, [3, 4]]', %q{
def regular(a, b, *c)
[a, b, c]
end
- regular(*[], 1, *[], *[2, 3], *[], 4)
+ regular(*[], 1, *[], *[2, 3], *[], 4)
}, '[ruby-core:19413]'
assert_equal '[1, [:foo, 3, 4, :foo]]', %q{
@@ -1093,7 +1097,7 @@ assert_equal '["B", "A"]', %q{
end
class B < A
- define_method(:m) do
+ define_method(:m) do
['B', super()]
end
end
@@ -1151,3 +1155,32 @@ assert_normal_exit %q{
e.message == "undefined method `lalala!' for \"a\":String" ? :ok : :ng
end
}, '[ruby-core:22298]'
+
+assert_equal 'ok', %q{
+ "hello"[0] ||= "H"
+ "ok"
+}
+
+assert_equal 'ok', %q{
+ "hello"[0, 1] ||= "H"
+ "ok"
+}
+
+assert_equal 'ok', %q{
+ class C
+ define_method(:foo) do
+ C.class_eval { remove_method(:foo) }
+ super()
+ end
+ end
+ begin
+ C.new.foo
+ rescue NoMethodError
+ 'ok'
+ end
+}
+assert_equal 'ok', %q{
+ [0][0, &proc{}] += 21
+ 'ok'
+}, '[ruby-core:30534]'
+
diff --git a/bootstraptest/test_objectspace.rb b/bootstraptest/test_objectspace.rb
index 486d5aff73..862a94e376 100644
--- a/bootstraptest/test_objectspace.rb
+++ b/bootstraptest/test_objectspace.rb
@@ -32,3 +32,15 @@ assert_normal_exit %q{
end
}
}, '[ruby-dev:31985]'
+
+assert_normal_exit %q{
+ ObjectSpace.define_finalizer("") do
+ Mutex.new.lock
+ end
+}, '[ruby-dev:44049]'
+
+assert_normal_exit %q{
+ ObjectSpace.define_finalizer("") do
+ Thread.new {}
+ end
+}, '[ruby-core:37858]'
diff --git a/bootstraptest/test_proc.rb b/bootstraptest/test_proc.rb
index 28a23777a3..3d347004ea 100644
--- a/bootstraptest/test_proc.rb
+++ b/bootstraptest/test_proc.rb
@@ -2,11 +2,11 @@ assert_equal %q{[1, 2, 3]}, %q{
def getproc &b
b
end
-
+
def m
yield
end
-
+
m{
i = 1
m{
@@ -24,14 +24,14 @@ assert_equal %q{7}, %q{
def make_proc(&b)
b
end
-
+
def make_closure
a = 0
make_proc{
a+=1
}
end
-
+
cl = make_closure
cl.call + cl.call * cl.call
}
@@ -41,7 +41,7 @@ assert_equal %q{ok}, %q{
:ok
end
end
-
+
def block
C.method(:new).to_proc
end
@@ -52,7 +52,7 @@ assert_equal %q{[0, 1, :last, 0, 2, :last]}, %q{
def proc &b
b
end
-
+
pr = []
proc{|i_b|
p3 = proc{|j_b|
@@ -63,18 +63,18 @@ assert_equal %q{[0, 1, :last, 0, 2, :last]}, %q{
p3.call(1)
p3.call(2)
}.call(0)
-
+
pr[0].call(:last).concat pr[1].call(:last)
}
assert_equal %q{12}, %q{
def iter
yield
end
-
+
def getproc &b
b
end
-
+
iter{
bvar = 3
getproc{
@@ -87,11 +87,11 @@ assert_equal %q{200}, %q{
def iter
yield
end
-
+
def getproc &b
b
end
-
+
loc1 = 0
pr1 = iter{
bl1 = 1
@@ -101,7 +101,7 @@ assert_equal %q{200}, %q{
loc1 + bl1
}
}
-
+
pr2 = iter{
bl1 = 1
getproc{
@@ -110,7 +110,7 @@ assert_equal %q{200}, %q{
loc1 + bl1
}
}
-
+
pr1.call; pr2.call
pr1.call; pr2.call
pr1.call; pr2.call
@@ -120,21 +120,21 @@ assert_equal %q{[1, 2]}, %q{
def proc(&pr)
pr
end
-
+
def m
a = 1
m2{
a
}
end
-
+
def m2
b = 2
proc{
[yield, b]
}
end
-
+
pr = m
x = ['a', 1,2,3,4,5,6,7,8,9,0,
1,2,3,4,5,6,7,8,9,0,
@@ -147,14 +147,14 @@ assert_equal %q{1}, %q{
def proc(&pr)
pr
end
-
+
def m
a = 1
m2{
a
}
end
-
+
def m2
b = 2
proc{
@@ -429,3 +429,30 @@ assert_equal 'ok', %q{
raise "ok"
}
+assert_equal 'ok', %q{
+ lambda do
+ class A
+ class B
+ proc{return :ng}.call
+ end
+ end
+ end.call
+ :ok
+}
+
+assert_equal 'ok', %q{
+ $proc = proc{return}
+ begin
+ lambda do
+ class A
+ class B
+ $proc.call
+ end
+ end
+ end.call
+ :ng
+ rescue LocalJumpError
+ :ok
+ end
+}
+
diff --git a/bootstraptest/test_syntax.rb b/bootstraptest/test_syntax.rb
index a9005a4292..ef1c622ace 100644
--- a/bootstraptest/test_syntax.rb
+++ b/bootstraptest/test_syntax.rb
@@ -110,7 +110,7 @@ assert_equal %q{100}, %q{
end
return arg
end
-
+
test(100)
}
assert_equal %q{ok}, %q{
@@ -169,7 +169,7 @@ assert_equal %q{[:false, :false, :false, :false, :false, :false, :false, :false,
res
end
end
-
+
def each_test
conds = make_perm(['fv', 'tv'], 3)
bangs = make_perm(['', '!'], 3)
@@ -184,10 +184,10 @@ assert_equal %q{[:false, :false, :false, :false, :false, :false, :false, :false,
}
}
end
-
+
fv = false
tv = true
-
+
$ans = []
each_test{|syn, conds, bangs, exprs|
c1, c2, c3 = conds
@@ -695,7 +695,7 @@ assert_equal 'ok', %q{
while true
counter -= 1
break if counter == 0
- next
+ next
redo
end
:ok
@@ -706,7 +706,7 @@ assert_equal 'ok', %q{
while true
counter -= 1
break if counter == 0
- next
+ next
"#{ redo }"
end
:ok
@@ -828,3 +828,75 @@ assert_normal_exit %q{
p a.compact!
}
+assert_equal 'ok', %q{
+ "#{}""#{}ok"
+}, '[ruby-dev:38968]'
+
+
+assert_equal 'ok', %q{
+ "o" "#{}k"
+}, '[ruby-dev:38980]'
+
+bug2415 = '[ruby-core:26961]'
+assert_normal_exit %q{
+ 0.times do
+ 0.times do
+ def x(a=1, b, *rest); nil end
+ end
+ end
+}, bug2415
+
+assert_normal_exit %q{
+ 0.times do
+ 0.times do
+ def x@; nil end
+ end
+ end
+}, bug2415
+
+assert_normal_exit %q{
+ 0.times do
+ 0.times do
+ def x(a = 0.times do
+ def y(a=1, b, *rest); nil; end
+ end)
+ nil
+ end
+ end
+ end
+}, bug2415
+
+assert_normal_exit %q{
+ 0.times do
+ 0.times do
+ def x(a = 0.times do
+ def x@; nil; end
+ end)
+ nil
+ end
+ end
+ end
+}, bug2415
+
+assert_normal_exit %q{
+ a {
+ b {|c.d| }
+ e
+ }
+}, '[ruby-dev:39861]'
+
+bug1240 = '[ruby-core:22637]'
+assert_valid_syntax('x y { "#{}".z { } }', bug1240)
+assert_valid_syntax('x y { "#{}".z do end }', bug1240)
+
+assert_valid_syntax('y "#{a 1}" do end', '[ruby-core:29579]')
+assert_normal_exit %q{
+ def foo(&block)
+ yield
+ end
+
+ foo do
+ s = defined?(raise + 1)
+ Class
+ end
+}, '[ruby-core:30293]'
diff --git a/bootstraptest/test_thread.rb b/bootstraptest/test_thread.rb
index 54544df45e..2494cccbf3 100644
--- a/bootstraptest/test_thread.rb
+++ b/bootstraptest/test_thread.rb
@@ -174,9 +174,9 @@ assert_equal %q{[true, nil, true]}, %q{
$a = $~
Thread.new{
$b = $~
- /a/ =~ 'a'
+ /b/ =~ 'b'
$c = $~
- }
+ }.join
$d = $~
[$a == $d, $b, $c != $d]
}
@@ -188,18 +188,18 @@ assert_equal %q{11}, %q{
Thread.current[:a]
}.value + Thread.current[:a]
}
-assert_equal %q{100}, %q{
+assert_normal_exit %q{
begin
100.times do |i|
begin
- Thread.start(Thread.current) {|u| u.raise }
+ th = Thread.start(Thread.current) {|u| u.raise }
raise
rescue
ensure
+ th.join
end
end
rescue
- 100
end
}, '[ruby-dev:31371]'
@@ -228,7 +228,7 @@ assert_equal 'ok', %{
end
END
end
- require "zzz.rb"
+ require "./zzz.rb"
$result
}
@@ -385,3 +385,70 @@ assert_equal 'ok', %q{
end
:ok
}
+
+assert_equal 'ok', %{
+ open("zzz.rb", "w") do |f|
+ f.puts <<-END
+ begin
+ m = Mutex.new
+ Thread.new { m.lock; sleep 1 }
+ sleep 0.3
+ parent = Thread.current
+ Thread.new do
+ sleep 0.3
+ begin
+ fork { GC.start }
+ rescue Exception
+ parent.raise $!
+ end
+ end
+ m.lock
+ pid, status = Process.wait2
+ $result = status.success? ? :ok : :ng
+ rescue NotImplementedError
+ $result = :ok
+ end
+ END
+ end
+ require "./zzz.rb"
+ $result
+}
+
+assert_finish 3, %q{
+ require 'thread'
+
+ lock = Mutex.new
+ cond = ConditionVariable.new
+ t = Thread.new do
+ lock.synchronize do
+ cond.wait(lock)
+ end
+ end
+
+ begin
+ pid = fork do
+ # Child
+ STDOUT.write "This is the child process.\n"
+ STDOUT.write "Child process exiting.\n"
+ end
+ Process.waitpid(pid)
+ rescue NotImplementedError
+ end
+}, '[ruby-core:23572]'
+
+assert_equal 'ok', %q{
+ begin
+ Process.waitpid2(fork {sleep 1})[1].success? ? 'ok' : 'ng'
+ rescue NotImplementedError
+ 'ok'
+ end
+}
+
+assert_equal 'foo', %q{
+ f = proc {|s| /#{ sleep 1; s }/o }
+ [ Thread.new { f.call("foo"); nil },
+ Thread.new { sleep 0.5; f.call("bar"); nil },
+ ].each {|t| t.join }
+ GC.start
+ f.call.source
+}
diff --git a/class.c b/class.c
index 9dd68b655a..df19812d15 100644
--- a/class.c
+++ b/class.c
@@ -9,13 +9,43 @@
**********************************************************************/
+/*!
+ * \defgroup class Classes and their hierarchy.
+ * \par Terminology
+ * - class: same as in Ruby.
+ * - singleton class: class for a particular object
+ * - eigenclass: = singleton class
+ * - metaclass: class of a class. metaclass is a kind of singleton class.
+ * - metametaclass: class of a metaclass.
+ * - meta^(n)-class: class of a meta^(n-1)-class.
+ * - attached object: A singleton class knows its unique instance.
+ * The instance is called the attached object for the singleton class.
+ * \{
+ */
+
#include "ruby/ruby.h"
#include "ruby/st.h"
-#include "node.h"
+#include "method.h"
+#include "constant.h"
+#include "vm_core.h"
+#include "internal.h"
#include <ctype.h>
extern st_table *rb_class_tbl;
+static ID id_attached;
+/**
+ * Allocates a struct RClass for a new class.
+ *
+ * \param flags initial value for basic.flags of the returned class.
+ * \param klass the class of the returned class.
+ * \return an uninitialized Class object.
+ * \pre \p klass must refer \c Class class or an ancestor of Class.
+ * \pre \code (flags | T_CLASS) != 0 \endcode
+ * \post the returned class can safely be \c #initialize 'd.
+ *
+ * \note this function is not Class#allocate.
+ */
static VALUE
class_alloc(VALUE flags, VALUE klass)
{
@@ -24,12 +54,23 @@ class_alloc(VALUE flags, VALUE klass)
OBJSETUP(obj, klass, flags);
obj->ptr = ext;
RCLASS_IV_TBL(obj) = 0;
+ RCLASS_CONST_TBL(obj) = 0;
RCLASS_M_TBL(obj) = 0;
RCLASS_SUPER(obj) = 0;
RCLASS_IV_INDEX_TBL(obj) = 0;
return (VALUE)obj;
}
+
+/*!
+ * A utility function that wraps class_alloc.
+ *
+ * allocates a class and initializes safely.
+ * \param super a class from which the new class derives.
+ * \return a class object.
+ * \pre \a super must be a class.
+ * \post the metaclass of the new class is Class.
+ */
VALUE
rb_class_boot(VALUE super)
{
@@ -42,6 +83,13 @@ rb_class_boot(VALUE super)
return (VALUE)klass;
}
+
+/*!
+ * Ensures a class can be derived from super.
+ *
+ * \param super a reference to an object.
+ * \exception TypeError if \a super is not a Class or \a super is a singleton class.
+ */
void
rb_check_inheritable(VALUE super)
{
@@ -52,16 +100,23 @@ rb_check_inheritable(VALUE super)
if (RBASIC(super)->flags & FL_SINGLETON) {
rb_raise(rb_eTypeError, "can't make subclass of singleton class");
}
+ if (super == rb_cClass) {
+ rb_raise(rb_eTypeError, "can't make subclass of Class");
+ }
}
+
+/*!
+ * Creates a new class.
+ * \param super a class from which the new class derives.
+ * \exception TypeError \a super is not inheritable.
+ * \exception TypeError \a super is the Class class.
+ */
VALUE
rb_class_new(VALUE super)
{
Check_Type(super, T_CLASS);
rb_check_inheritable(super);
- if (super == rb_cClass) {
- rb_raise(rb_eTypeError, "can't make subclass of Class");
- }
return rb_class_boot(super);
}
@@ -73,32 +128,37 @@ struct clone_method_data {
VALUE rb_iseq_clone(VALUE iseqval, VALUE newcbase);
static int
-clone_method(ID mid, NODE *body, struct clone_method_data *data)
+clone_method(ID mid, const rb_method_entry_t *me, struct clone_method_data *data)
{
- if (body == 0) {
- st_insert(data->tbl, mid, 0);
+ VALUE newiseqval;
+ if (me->def && me->def->type == VM_METHOD_TYPE_ISEQ) {
+ rb_iseq_t *iseq;
+ newiseqval = rb_iseq_clone(me->def->body.iseq->self, data->klass);
+ GetISeqPtr(newiseqval, iseq);
+ rb_add_method(data->klass, mid, VM_METHOD_TYPE_ISEQ, iseq, me->flag);
+ RB_GC_GUARD(newiseqval);
}
else {
- NODE *fbody = body->nd_body->nd_body;
-
- if (nd_type(fbody) == RUBY_VM_METHOD_NODE) {
- fbody = NEW_NODE(RUBY_VM_METHOD_NODE, 0,
- rb_iseq_clone((VALUE)fbody->nd_body, data->klass),
- 0);
- }
- st_insert(data->tbl, mid,
- (st_data_t)
- NEW_NODE_LONGLIFE(
- NODE_FBODY,
- 0,
- NEW_NODE_LONGLIFE(NODE_METHOD,
- rb_gc_write_barrier(data->klass), /* TODO */
- rb_gc_write_barrier((VALUE)fbody),
- body->nd_body->nd_noex), 0));
+ rb_method_entry_set(data->klass, mid, me, me->flag);
}
return ST_CONTINUE;
}
+static int
+clone_const(ID key, const rb_const_entry_t *ce, st_table *tbl)
+{
+ rb_const_entry_t *nce = ALLOC(rb_const_entry_t);
+ *nce = *ce;
+ st_insert(tbl, key, (st_data_t)nce);
+ return ST_CONTINUE;
+}
+
+static int
+clone_const_i(st_data_t key, st_data_t value, st_data_t data)
+{
+ return clone_const((ID)key, (const rb_const_entry_t *)value, (st_table *)data);
+}
+
/* :nodoc: */
VALUE
rb_mod_init_copy(VALUE clone, VALUE orig)
@@ -106,19 +166,34 @@ rb_mod_init_copy(VALUE clone, VALUE orig)
rb_obj_init_copy(clone, orig);
if (!FL_TEST(CLASS_OF(clone), FL_SINGLETON)) {
RBASIC(clone)->klass = rb_singleton_class_clone(orig);
+ rb_singleton_class_attached(RBASIC(clone)->klass, (VALUE)clone);
}
RCLASS_SUPER(clone) = RCLASS_SUPER(orig);
if (RCLASS_IV_TBL(orig)) {
- ID id;
+ st_data_t id;
+ if (RCLASS_IV_TBL(clone)) {
+ st_free_table(RCLASS_IV_TBL(clone));
+ }
RCLASS_IV_TBL(clone) = st_copy(RCLASS_IV_TBL(orig));
CONST_ID(id, "__classpath__");
- st_delete(RCLASS_IV_TBL(clone), (st_data_t*)&id, 0);
+ st_delete(RCLASS_IV_TBL(clone), &id, 0);
CONST_ID(id, "__classid__");
- st_delete(RCLASS_IV_TBL(clone), (st_data_t*)&id, 0);
+ st_delete(RCLASS_IV_TBL(clone), &id, 0);
+ }
+ if (RCLASS_CONST_TBL(orig)) {
+ if (RCLASS_CONST_TBL(clone)) {
+ rb_free_const_table(RCLASS_CONST_TBL(clone));
+ }
+ RCLASS_CONST_TBL(clone) = st_init_numtable();
+ st_foreach(RCLASS_CONST_TBL(orig), clone_const_i, (st_data_t)RCLASS_CONST_TBL(clone));
}
if (RCLASS_M_TBL(orig)) {
struct clone_method_data data;
+
+ if (RCLASS_M_TBL(clone)) {
+ rb_free_m_table(RCLASS_M_TBL(clone));
+ }
data.tbl = RCLASS_M_TBL(clone) = st_init_numtable();
data.klass = clone;
st_foreach(RCLASS_M_TBL(orig), clone_method,
@@ -132,7 +207,10 @@ rb_mod_init_copy(VALUE clone, VALUE orig)
VALUE
rb_class_init_copy(VALUE clone, VALUE orig)
{
- if (RCLASS_SUPER(clone) != 0) {
+ if (orig == rb_cBasicObject) {
+ rb_raise(rb_eTypeError, "can't copy the root class");
+ }
+ if (RCLASS_SUPER(clone) != 0 || clone == rb_cBasicObject) {
rb_raise(rb_eTypeError, "already initialized class");
}
if (FL_TEST(orig, FL_SINGLETON)) {
@@ -151,7 +229,7 @@ rb_singleton_class_clone(VALUE obj)
else {
struct clone_method_data data;
/* copy singleton(unnamed) class */
- VALUE clone = class_alloc(RBASIC(klass)->flags, 0);
+ VALUE clone = class_alloc((RBASIC(klass)->flags & ~(FL_MARK)), 0);
if (BUILTIN_TYPE(obj) == T_CLASS) {
RBASIC(clone)->klass = (VALUE)clone;
@@ -164,6 +242,10 @@ rb_singleton_class_clone(VALUE obj)
if (RCLASS_IV_TBL(klass)) {
RCLASS_IV_TBL(clone) = st_copy(RCLASS_IV_TBL(klass));
}
+ if (RCLASS_CONST_TBL(klass)) {
+ RCLASS_CONST_TBL(clone) = st_init_numtable();
+ st_foreach(RCLASS_CONST_TBL(klass), clone_const_i, (st_data_t)RCLASS_CONST_TBL(clone));
+ }
RCLASS_M_TBL(clone) = st_init_numtable();
data.tbl = RCLASS_M_TBL(clone);
data.klass = (VALUE)clone;
@@ -175,78 +257,165 @@ rb_singleton_class_clone(VALUE obj)
}
}
+/*!
+ * Attach a object to a singleton class.
+ * @pre \a klass is the singleton class of \a obj.
+ */
void
rb_singleton_class_attached(VALUE klass, VALUE obj)
{
if (FL_TEST(klass, FL_SINGLETON)) {
- ID attached;
if (!RCLASS_IV_TBL(klass)) {
RCLASS_IV_TBL(klass) = st_init_numtable();
}
- CONST_ID(attached, "__attached__");
- st_insert(RCLASS_IV_TBL(klass), attached, obj);
+ st_insert(RCLASS_IV_TBL(klass), id_attached, obj);
}
}
-static VALUE
-make_metametaclass(VALUE metaclass)
+
+#define METACLASS_OF(k) RBASIC(k)->klass
+
+/*!
+ * whether k is a meta^(n)-class of Class class
+ * @retval 1 if \a k is a meta^(n)-class of Class class (n >= 0)
+ * @retval 0 otherwise
+ */
+#define META_CLASS_OF_CLASS_CLASS_P(k) (METACLASS_OF(k) == (k))
+
+
+/*!
+ * ensures \a klass belongs to its own eigenclass.
+ * @return the eigenclass of \a klass
+ * @post \a klass belongs to the returned eigenclass.
+ * i.e. the attached object of the eigenclass is \a klass.
+ * @note this macro creates a new eigenclass if necessary.
+ */
+#define ENSURE_EIGENCLASS(klass) \
+ (rb_ivar_get(METACLASS_OF(klass), id_attached) == (klass) ? METACLASS_OF(klass) : make_metaclass(klass))
+
+
+/*!
+ * Creates a metaclass of \a klass
+ * \param klass a class
+ * \return created metaclass for the class
+ * \pre \a klass is a Class object
+ * \pre \a klass has no singleton class.
+ * \post the class of \a klass is the returned class.
+ * \post the returned class is meta^(n+1)-class when \a klass is a meta^(n)-klass for n >= 0
+ */
+static inline VALUE
+make_metaclass(VALUE klass)
{
- VALUE metametaclass, super_of_metaclass;
+ VALUE super;
+ VALUE metaclass = rb_class_boot(Qundef);
+
+ FL_SET(metaclass, FL_SINGLETON);
+ rb_singleton_class_attached(metaclass, klass);
- if (RBASIC(metaclass)->klass == metaclass) { /* for meta^(n)-class of Class */
- metametaclass = rb_class_boot(Qnil);
- RBASIC(metametaclass)->klass = metametaclass;
+ if (META_CLASS_OF_CLASS_CLASS_P(klass)) {
+ METACLASS_OF(klass) = METACLASS_OF(metaclass) = metaclass;
}
else {
- metametaclass = rb_class_boot(Qnil);
- RBASIC(metametaclass)->klass =
- (RBASIC(RBASIC(metaclass)->klass)->klass == RBASIC(metaclass)->klass)
- ? make_metametaclass(RBASIC(metaclass)->klass)
- : RBASIC(RBASIC(metaclass)->klass)->klass;
+ VALUE tmp = METACLASS_OF(klass); /* for a meta^(n)-class klass, tmp is meta^(n)-class of Class class */
+ METACLASS_OF(klass) = metaclass;
+ METACLASS_OF(metaclass) = ENSURE_EIGENCLASS(tmp);
}
- FL_SET(metametaclass, FL_SINGLETON);
- rb_singleton_class_attached(metametaclass, metaclass);
- RBASIC(metaclass)->klass = metametaclass;
+ super = RCLASS_SUPER(klass);
+ while (RB_TYPE_P(super, T_ICLASS)) super = RCLASS_SUPER(super);
+ RCLASS_SUPER(metaclass) = super ? ENSURE_EIGENCLASS(super) : rb_cClass;
- super_of_metaclass = RCLASS_SUPER(metaclass);
- while (FL_TEST(super_of_metaclass, T_ICLASS)) {
- super_of_metaclass = RCLASS_SUPER(super_of_metaclass);
- }
- RCLASS_SUPER(metametaclass) =
- rb_iv_get(RBASIC(super_of_metaclass)->klass, "__attached__") == super_of_metaclass
- ? RBASIC(super_of_metaclass)->klass
- : make_metametaclass(super_of_metaclass);
- OBJ_INFECT(metametaclass, RCLASS_SUPER(metametaclass));
+ OBJ_INFECT(metaclass, RCLASS_SUPER(metaclass));
- return metametaclass;
+ return metaclass;
}
+/*!
+ * Creates a singleton class for \a obj.
+ * \pre \a obj must not a immediate nor a special const.
+ * \pre \a obj must not a Class object.
+ * \pre \a obj has no singleton class.
+ */
+static inline VALUE
+make_singleton_class(VALUE obj)
+{
+ VALUE orig_class = RBASIC(obj)->klass;
+ VALUE klass = rb_class_boot(orig_class);
+
+ FL_SET(klass, FL_SINGLETON);
+ RBASIC(obj)->klass = klass;
+ rb_singleton_class_attached(klass, obj);
+ METACLASS_OF(klass) = METACLASS_OF(rb_class_real(orig_class));
+ return klass;
+}
+
+
+static VALUE
+boot_defclass(const char *name, VALUE super)
+{
+ extern st_table *rb_class_tbl;
+ VALUE obj = rb_class_boot(super);
+ ID id = rb_intern(name);
+
+ rb_name_class(obj, id);
+ st_add_direct(rb_class_tbl, id, obj);
+ rb_const_set((rb_cObject ? rb_cObject : obj), id, obj);
+ return obj;
+}
+
+void
+Init_class_hierarchy(void)
+{
+ id_attached = rb_intern("__attached__");
+
+ rb_cBasicObject = boot_defclass("BasicObject", 0);
+ rb_cObject = boot_defclass("Object", rb_cBasicObject);
+ rb_cModule = boot_defclass("Module", rb_cObject);
+ rb_cClass = boot_defclass("Class", rb_cModule);
+
+ rb_const_set(rb_cObject, rb_intern("BasicObject"), rb_cBasicObject);
+ RBASIC(rb_cClass)->klass
+ = RBASIC(rb_cModule)->klass
+ = RBASIC(rb_cObject)->klass
+ = RBASIC(rb_cBasicObject)->klass
+ = rb_cClass;
+}
+
+
+/*!
+ * \internal
+ * Creates a new *singleton class* for an object.
+ *
+ * \pre \a obj has no singleton class.
+ * \note DO NOT USE the function in an extension libraries. Use \ref rb_singleton_class.
+ * \param obj An object.
+ * \param unused ignored.
+ * \return The singleton class of the object.
+ */
VALUE
-rb_make_metaclass(VALUE obj, VALUE super)
+rb_make_metaclass(VALUE obj, VALUE unused)
{
- if (BUILTIN_TYPE(obj) == T_CLASS && FL_TEST(obj, FL_SINGLETON)) { /* obj is a metaclass */
- return make_metametaclass(obj);
+ if (BUILTIN_TYPE(obj) == T_CLASS) {
+ return make_metaclass(obj);
}
else {
- VALUE metasuper;
- VALUE klass = rb_class_boot(super);
-
- FL_SET(klass, FL_SINGLETON);
- RBASIC(obj)->klass = klass;
- rb_singleton_class_attached(klass, obj);
-
- metasuper = RBASIC(rb_class_real(super))->klass;
- /* metaclass of a superclass may be NULL at boot time */
- if (metasuper) {
- RBASIC(klass)->klass = metasuper;
- }
- return klass;
+ return make_singleton_class(obj);
}
}
+
+/*!
+ * Defines a new class.
+ * \param id ignored
+ * \param super A class from which the new class will derive. NULL means \c Object class.
+ * \return the created class
+ * \throw TypeError if super is not a \c Class object.
+ *
+ * \note the returned class will not be associated with \a id.
+ * You must explicitly set a class name if necessary.
+ */
VALUE
rb_define_class_id(ID id, VALUE super)
{
@@ -259,6 +428,15 @@ rb_define_class_id(ID id, VALUE super)
return klass;
}
+
+/*!
+ * Calls Class#inherited.
+ * \param super A class which will be called #inherited.
+ * NULL means Object class.
+ * \param klass A Class object which derived from \a super
+ * \return the value \c Class#inherited's returns
+ * \pre Each of \a super and \a klass must be a \c Class object.
+ */
VALUE
rb_class_inherited(VALUE super, VALUE klass)
{
@@ -268,6 +446,23 @@ rb_class_inherited(VALUE super, VALUE klass)
return rb_funcall(super, inherited, 1, klass);
}
+
+
+/*!
+ * Defines a top-level class.
+ * \param name name of the class
+ * \param super a class from which the new class will derive.
+ * NULL means \c Object class.
+ * \return the created class
+ * \throw TypeError if the constant name \a name is already taken but
+ * the constant is not a \c Class.
+ * \throw NameError if the class is already defined but the class can not
+ * be reopened because its superclass is not \a super.
+ * \post top-level constant named \a name refers the returned class.
+ *
+ * \note if a class named \a name is already defined and its superclass is
+ * \a super, the function just returns the defined class.
+ */
VALUE
rb_define_class(const char *name, VALUE super)
{
@@ -281,7 +476,7 @@ rb_define_class(const char *name, VALUE super)
rb_raise(rb_eTypeError, "%s is not a class", name);
}
if (rb_class_real(RCLASS_SUPER(klass)) != super) {
- rb_name_error(id, "%s is already defined", name);
+ rb_raise(rb_eTypeError, "superclass mismatch for class %s", name);
}
return klass;
}
@@ -297,31 +492,70 @@ rb_define_class(const char *name, VALUE super)
return klass;
}
+
+/*!
+ * Defines a class under the namespace of \a outer.
+ * \param outer a class which contains the new class.
+ * \param name name of the new class
+ * \param super a class from which the new class will derive.
+ * NULL means \c Object class.
+ * \return the created class
+ * \throw TypeError if the constant name \a name is already taken but
+ * the constant is not a \c Class.
+ * \throw NameError if the class is already defined but the class can not
+ * be reopened because its superclass is not \a super.
+ * \post top-level constant named \a name refers the returned class.
+ *
+ * \note if a class named \a name is already defined and its superclass is
+ * \a super, the function just returns the defined class.
+ */
VALUE
rb_define_class_under(VALUE outer, const char *name, VALUE super)
{
+ return rb_define_class_id_under(outer, rb_intern(name), super);
+}
+
+
+/*!
+ * Defines a class under the namespace of \a outer.
+ * \param outer a class which contains the new class.
+ * \param id name of the new class
+ * \param super a class from which the new class will derive.
+ * NULL means \c Object class.
+ * \return the created class
+ * \throw TypeError if the constant name \a name is already taken but
+ * the constant is not a \c Class.
+ * \throw NameError if the class is already defined but the class can not
+ * be reopened because its superclass is not \a super.
+ * \post top-level constant named \a name refers the returned class.
+ *
+ * \note if a class named \a name is already defined and its superclass is
+ * \a super, the function just returns the defined class.
+ */
+VALUE
+rb_define_class_id_under(VALUE outer, ID id, VALUE super)
+{
VALUE klass;
- ID id;
- id = rb_intern(name);
if (rb_const_defined_at(outer, id)) {
klass = rb_const_get_at(outer, id);
if (TYPE(klass) != T_CLASS) {
- rb_raise(rb_eTypeError, "%s is not a class", name);
+ rb_raise(rb_eTypeError, "%s is not a class", rb_id2name(id));
}
if (rb_class_real(RCLASS_SUPER(klass)) != super) {
- rb_name_error(id, "%s is already defined", name);
+ rb_name_error(id, "%s is already defined", rb_id2name(id));
}
return klass;
}
if (!super) {
rb_warn("no super class for `%s::%s', Object assumed",
- rb_class2name(outer), name);
+ rb_class2name(outer), rb_id2name(id));
}
klass = rb_define_class_id(id, super);
- rb_set_class_path(klass, outer, name);
+ rb_set_class_path_string(klass, outer, rb_id2str(id));
rb_const_set(outer, id, klass);
rb_class_inherited(super, klass);
+ rb_gc_register_mark_object(klass);
return klass;
}
@@ -370,10 +604,14 @@ rb_define_module(const char *name)
VALUE
rb_define_module_under(VALUE outer, const char *name)
{
+ return rb_define_module_id_under(outer, rb_intern(name));
+}
+
+VALUE
+rb_define_module_id_under(VALUE outer, ID id)
+{
VALUE module;
- ID id;
- id = rb_intern(name);
if (rb_const_defined_at(outer, id)) {
module = rb_const_get_at(outer, id);
if (TYPE(module) == T_MODULE)
@@ -383,7 +621,8 @@ rb_define_module_under(VALUE outer, const char *name)
}
module = rb_define_module_id(id);
rb_const_set(outer, id, module);
- rb_set_class_path(module, outer, name);
+ rb_set_class_path_string(module, outer, rb_id2str(id));
+ rb_gc_register_mark_object(module);
return module;
}
@@ -399,7 +638,11 @@ include_class_new(VALUE module, VALUE super)
if (!RCLASS_IV_TBL(module)) {
RCLASS_IV_TBL(module) = st_init_numtable();
}
+ if (!RCLASS_CONST_TBL(module)) {
+ RCLASS_CONST_TBL(module) = st_init_numtable();
+ }
RCLASS_IV_TBL(klass) = RCLASS_IV_TBL(module);
+ RCLASS_CONST_TBL(klass) = RCLASS_CONST_TBL(module);
RCLASS_M_TBL(klass) = RCLASS_M_TBL(module);
RCLASS_SUPER(klass) = super;
if (TYPE(module) == T_ICLASS) {
@@ -432,7 +675,7 @@ rb_include_module(VALUE klass, VALUE module)
OBJ_INFECT(klass, module);
c = klass;
while (module) {
- int superclass_seen = Qfalse;
+ int superclass_seen = FALSE;
if (RCLASS_M_TBL(klass) == RCLASS_M_TBL(module))
rb_raise(rb_eArgError, "cyclic include detected");
@@ -448,12 +691,13 @@ rb_include_module(VALUE klass, VALUE module)
}
break;
case T_CLASS:
- superclass_seen = Qtrue;
+ superclass_seen = TRUE;
break;
}
}
c = RCLASS_SUPER(c) = include_class_new(module, RCLASS_SUPER(c));
- changed = 1;
+ if (RMODULE_M_TBL(module) && RMODULE_M_TBL(module)->num_entries)
+ changed = 1;
skip:
module = RCLASS_SUPER(module);
}
@@ -493,7 +737,7 @@ rb_mod_included_modules(VALUE mod)
/*
* call-seq:
- * mod.include?(module) => true or false
+ * mod.include?(module) -> true or false
*
* Returns <code>true</code> if <i>module</i> is included in
* <i>mod</i> or one of <i>mod</i>'s ancestors.
@@ -583,44 +827,46 @@ ins_methods_push(ID name, long type, VALUE ary, long visi)
}
static int
-ins_methods_i(ID name, long type, VALUE ary)
+ins_methods_i(st_data_t name, st_data_t type, st_data_t ary)
{
- return ins_methods_push(name, type, ary, -1); /* everything but private */
+ return ins_methods_push((ID)name, (long)type, (VALUE)ary, -1); /* everything but private */
}
static int
-ins_methods_prot_i(ID name, long type, VALUE ary)
+ins_methods_prot_i(st_data_t name, st_data_t type, st_data_t ary)
{
- return ins_methods_push(name, type, ary, NOEX_PROTECTED);
+ return ins_methods_push((ID)name, (long)type, (VALUE)ary, NOEX_PROTECTED);
}
static int
-ins_methods_priv_i(ID name, long type, VALUE ary)
+ins_methods_priv_i(st_data_t name, st_data_t type, st_data_t ary)
{
- return ins_methods_push(name, type, ary, NOEX_PRIVATE);
+ return ins_methods_push((ID)name, (long)type, (VALUE)ary, NOEX_PRIVATE);
}
static int
-ins_methods_pub_i(ID name, long type, VALUE ary)
+ins_methods_pub_i(st_data_t name, st_data_t type, st_data_t ary)
{
- return ins_methods_push(name, type, ary, NOEX_PUBLIC);
+ return ins_methods_push((ID)name, (long)type, (VALUE)ary, NOEX_PUBLIC);
}
static int
-method_entry(ID key, NODE *body, st_table *list)
+method_entry_i(st_data_t key, st_data_t value, st_data_t data)
{
+ const rb_method_entry_t *me = (const rb_method_entry_t *)value;
+ st_table *list = (st_table *)data;
long type;
- if (key == ID_ALLOCATOR) {
+ if ((ID)key == ID_ALLOCATOR) {
return ST_CONTINUE;
}
if (!st_lookup(list, key, 0)) {
- if (body ==0 || !body->nd_body->nd_body) {
+ if (UNDEFINED_METHOD_ENTRY_P(me)) {
type = -1; /* none */
}
else {
- type = VISI(body->nd_body->nd_noex);
+ type = VISI(me->flag);
}
st_add_direct(list, key, type);
}
@@ -628,14 +874,14 @@ method_entry(ID key, NODE *body, st_table *list)
}
static VALUE
-class_instance_method_list(int argc, VALUE *argv, VALUE mod, int (*func) (ID, long, VALUE))
+class_instance_method_list(int argc, VALUE *argv, VALUE mod, int obj, int (*func) (st_data_t, st_data_t, st_data_t))
{
VALUE ary;
int recur;
st_table *list;
if (argc == 0) {
- recur = Qtrue;
+ recur = TRUE;
}
else {
VALUE r;
@@ -645,9 +891,9 @@ class_instance_method_list(int argc, VALUE *argv, VALUE mod, int (*func) (ID, lo
list = st_init_numtable();
for (; mod; mod = RCLASS_SUPER(mod)) {
- st_foreach(RCLASS_M_TBL(mod), method_entry, (st_data_t)list);
+ st_foreach(RCLASS_M_TBL(mod), method_entry_i, (st_data_t)list);
if (BUILTIN_TYPE(mod) == T_ICLASS) continue;
- if (FL_TEST(mod, FL_SINGLETON)) continue;
+ if (obj && FL_TEST(mod, FL_SINGLETON)) continue;
if (!recur) break;
}
ary = rb_ary_new();
@@ -659,10 +905,10 @@ class_instance_method_list(int argc, VALUE *argv, VALUE mod, int (*func) (ID, lo
/*
* call-seq:
- * mod.instance_methods(include_super=true) => array
+ * mod.instance_methods(include_super=true) -> array
*
- * Returns an array containing the names of instance methods that is callable
- * from outside in the receiver. For a module, these are the public methods;
+ * Returns an array containing the names of the public and protected instance
+ * methods in the receiver. For a module, these are the public and protected methods;
* for a class, they are the instance (not singleton) methods. With no
* argument, or with an argument that is <code>false</code>, the
* instance methods in <i>mod</i> are returned, otherwise the methods
@@ -687,12 +933,12 @@ class_instance_method_list(int argc, VALUE *argv, VALUE mod, int (*func) (ID, lo
VALUE
rb_class_instance_methods(int argc, VALUE *argv, VALUE mod)
{
- return class_instance_method_list(argc, argv, mod, ins_methods_i);
+ return class_instance_method_list(argc, argv, mod, 0, ins_methods_i);
}
/*
* call-seq:
- * mod.protected_instance_methods(include_super=true) => array
+ * mod.protected_instance_methods(include_super=true) -> array
*
* Returns a list of the protected instance methods defined in
* <i>mod</i>. If the optional parameter is not <code>false</code>, the
@@ -702,12 +948,12 @@ rb_class_instance_methods(int argc, VALUE *argv, VALUE mod)
VALUE
rb_class_protected_instance_methods(int argc, VALUE *argv, VALUE mod)
{
- return class_instance_method_list(argc, argv, mod, ins_methods_prot_i);
+ return class_instance_method_list(argc, argv, mod, 0, ins_methods_prot_i);
}
/*
* call-seq:
- * mod.private_instance_methods(include_super=true) => array
+ * mod.private_instance_methods(include_super=true) -> array
*
* Returns a list of the private instance methods defined in
* <i>mod</i>. If the optional parameter is not <code>false</code>, the
@@ -725,12 +971,12 @@ rb_class_protected_instance_methods(int argc, VALUE *argv, VALUE mod)
VALUE
rb_class_private_instance_methods(int argc, VALUE *argv, VALUE mod)
{
- return class_instance_method_list(argc, argv, mod, ins_methods_priv_i);
+ return class_instance_method_list(argc, argv, mod, 0, ins_methods_priv_i);
}
/*
* call-seq:
- * mod.public_instance_methods(include_super=true) => array
+ * mod.public_instance_methods(include_super=true) -> array
*
* Returns a list of the public instance methods defined in <i>mod</i>.
* If the optional parameter is not <code>false</code>, the methods of
@@ -740,16 +986,103 @@ rb_class_private_instance_methods(int argc, VALUE *argv, VALUE mod)
VALUE
rb_class_public_instance_methods(int argc, VALUE *argv, VALUE mod)
{
- return class_instance_method_list(argc, argv, mod, ins_methods_pub_i);
+ return class_instance_method_list(argc, argv, mod, 0, ins_methods_pub_i);
+}
+
+/*
+ * call-seq:
+ * obj.methods -> array
+ *
+ * Returns a list of the names of public and protected methods of
+ * <i>obj</i>. This will include all the methods accessible in
+ * <i>obj</i>'s ancestors.
+ *
+ * class Klass
+ * def klass_method()
+ * end
+ * end
+ * k = Klass.new
+ * k.methods[0..9] #=> [:klass_method, :nil?, :===,
+ * # :==~, :!, :eql?
+ * # :hash, :<=>, :class, :singleton_class]
+ * k.methods.length #=> 57
+ */
+
+VALUE
+rb_obj_methods(int argc, VALUE *argv, VALUE obj)
+{
+ retry:
+ if (argc == 0) {
+ VALUE args[1];
+
+ args[0] = Qtrue;
+ return class_instance_method_list(argc, argv, CLASS_OF(obj), 1, ins_methods_i);
+ }
+ else {
+ VALUE recur;
+
+ rb_scan_args(argc, argv, "1", &recur);
+ if (RTEST(recur)) {
+ argc = 0;
+ goto retry;
+ }
+ return rb_obj_singleton_methods(argc, argv, obj);
+ }
+}
+
+/*
+ * call-seq:
+ * obj.protected_methods(all=true) -> array
+ *
+ * Returns the list of protected methods accessible to <i>obj</i>. If
+ * the <i>all</i> parameter is set to <code>false</code>, only those methods
+ * in the receiver will be listed.
+ */
+
+VALUE
+rb_obj_protected_methods(int argc, VALUE *argv, VALUE obj)
+{
+ return class_instance_method_list(argc, argv, CLASS_OF(obj), 1, ins_methods_prot_i);
+}
+
+/*
+ * call-seq:
+ * obj.private_methods(all=true) -> array
+ *
+ * Returns the list of private methods accessible to <i>obj</i>. If
+ * the <i>all</i> parameter is set to <code>false</code>, only those methods
+ * in the receiver will be listed.
+ */
+
+VALUE
+rb_obj_private_methods(int argc, VALUE *argv, VALUE obj)
+{
+ return class_instance_method_list(argc, argv, CLASS_OF(obj), 1, ins_methods_priv_i);
}
/*
* call-seq:
- * obj.singleton_methods(all=true) => array
+ * obj.public_methods(all=true) -> array
+ *
+ * Returns the list of public methods accessible to <i>obj</i>. If
+ * the <i>all</i> parameter is set to <code>false</code>, only those methods
+ * in the receiver will be listed.
+ */
+
+VALUE
+rb_obj_public_methods(int argc, VALUE *argv, VALUE obj)
+{
+ return class_instance_method_list(argc, argv, CLASS_OF(obj), 1, ins_methods_pub_i);
+}
+
+/*
+ * call-seq:
+ * obj.singleton_methods(all=true) -> array
*
* Returns an array of the names of singleton methods for <i>obj</i>.
* If the optional <i>all</i> parameter is true, the list will include
* methods in modules included in <i>obj</i>.
+ * Only public and protected singleton methods are returned.
*
* module Other
* def three() end
@@ -790,12 +1123,12 @@ rb_obj_singleton_methods(int argc, VALUE *argv, VALUE obj)
klass = CLASS_OF(obj);
list = st_init_numtable();
if (klass && FL_TEST(klass, FL_SINGLETON)) {
- st_foreach(RCLASS_M_TBL(klass), method_entry, (st_data_t)list);
+ st_foreach(RCLASS_M_TBL(klass), method_entry_i, (st_data_t)list);
klass = RCLASS_SUPER(klass);
}
if (RTEST(recur)) {
while (klass && (FL_TEST(klass, FL_SINGLETON) || TYPE(klass) == T_ICLASS)) {
- st_foreach(RCLASS_M_TBL(klass), method_entry, (st_data_t)list);
+ st_foreach(RCLASS_M_TBL(klass), method_entry_i, (st_data_t)list);
klass = RCLASS_SUPER(klass);
}
}
@@ -806,58 +1139,121 @@ rb_obj_singleton_methods(int argc, VALUE *argv, VALUE obj)
return ary;
}
+/*!
+ * \}
+ */
+/*!
+ * \defgroup defmethod Defining methods
+ * There are some APIs to define a method from C.
+ * These API takes a C function as a method body.
+ *
+ * \par Method body functions
+ * Method body functions must return a VALUE and
+ * can be one of the following form:
+ * <dl>
+ * <dt>Fixed number of parameters</dt>
+ * <dd>
+ * This form is a normal C function, excepting it takes
+ * a receiver object as the first argument.
+ *
+ * \code
+ * static VALUE my_method(VALUE self, VALUE x, VALUE y);
+ * \endcode
+ * </dd>
+ * <dt>argc and argv style</dt>
+ * <dd>
+ * This form takes three parameters: \a argc, \a argv and \a self.
+ * \a self is the receiver. \a argc is the number of arguments.
+ * \a argv is a pointer to an array of the arguments.
+ *
+ * \code
+ * static VALUE my_method(int argc, VALUE *argv, VALUE self);
+ * \endcode
+ * </dd>
+ * <dt>Ruby array style</dt>
+ * <dd>
+ * This form takes two parameters: self and args.
+ * \a self is the receiver. \a args is an Array object which
+ * contains the arguments.
+ *
+ * \code
+ * static VALUE my_method(VALUE self, VALUE args);
+ * \endcode
+ * </dd>
+ *
+ * \par Number of parameters
+ * Method defining APIs takes the number of parameters which the
+ * method will takes. This number is called \a argc.
+ * \a argc can be:
+ * <dl>
+ * <dt>zero or positive number</dt>
+ * <dd>This means the method body function takes a fixed number of parameters</dd>
+ * <dt>-1</dt>
+ * <dd>This means the method body function is "argc and argv" style.</dd>
+ * <dt>-2</dt>
+ * <dd>This means the method body function is "self and args" style.</dd>
+ * </dl>
+ * \{
+ */
+
void
-rb_define_method_id(VALUE klass, ID name, VALUE (*func)(ANYARGS), int argc)
+rb_define_method_id(VALUE klass, ID mid, VALUE (*func)(ANYARGS), int argc)
{
- if (func == rb_f_notimplement)
- rb_define_notimplement_method_id(klass, name, NOEX_PUBLIC);
- else
- rb_add_method(klass, name, NEW_NODE_LONGLIFE(NODE_CFUNC, func, argc, 0), NOEX_PUBLIC);
+ rb_add_method_cfunc(klass, mid, func, argc, NOEX_PUBLIC);
}
void
rb_define_method(VALUE klass, const char *name, VALUE (*func)(ANYARGS), int argc)
{
- rb_define_method_id(klass, rb_intern(name), func, argc);
+ rb_add_method_cfunc(klass, rb_intern(name), func, argc, NOEX_PUBLIC);
}
void
rb_define_protected_method(VALUE klass, const char *name, VALUE (*func)(ANYARGS), int argc)
{
- ID id = rb_intern(name);
- if (func == rb_f_notimplement)
- rb_define_notimplement_method_id(klass, id, NOEX_PROTECTED);
- else
- rb_add_method(klass, id, NEW_NODE_LONGLIFE(NODE_CFUNC, func, argc, 0), NOEX_PROTECTED);
+ rb_add_method_cfunc(klass, rb_intern(name), func, argc, NOEX_PROTECTED);
}
void
rb_define_private_method(VALUE klass, const char *name, VALUE (*func)(ANYARGS), int argc)
{
- ID id = rb_intern(name);
- if (func == rb_f_notimplement)
- rb_define_notimplement_method_id(klass, id, NOEX_PRIVATE);
- else
- rb_add_method(klass, id, NEW_NODE_LONGLIFE(NODE_CFUNC, func, argc, 0), NOEX_PRIVATE);
+ rb_add_method_cfunc(klass, rb_intern(name), func, argc, NOEX_PRIVATE);
}
void
rb_undef_method(VALUE klass, const char *name)
{
- rb_add_method(klass, rb_intern(name), 0, NOEX_UNDEF);
+ rb_add_method(klass, rb_intern(name), VM_METHOD_TYPE_UNDEF, 0, NOEX_UNDEF);
}
+/*!
+ * \}
+ */
+/*!
+ * \addtogroup class
+ * \{
+ */
+
#define SPECIAL_SINGLETON(x,c) do {\
if (obj == (x)) {\
- return c;\
+ return (c);\
}\
} while (0)
-VALUE
-rb_singleton_class(VALUE obj)
+
+/*!
+ * \internal
+ * Returns the singleton class of \a obj. Creates it if necessary.
+ *
+ * \note DO NOT expose the returned singleton class to
+ * outside of class.c.
+ * Use \ref rb_singleton_class instead for
+ * consistency of the metaclass hierarchy.
+ */
+static VALUE
+singleton_class_of(VALUE obj)
{
VALUE klass;
- ID attached;
if (FIXNUM_P(obj) || SYMBOL_P(obj)) {
rb_raise(rb_eTypeError, "can't define singleton");
@@ -866,22 +1262,17 @@ rb_singleton_class(VALUE obj)
SPECIAL_SINGLETON(Qnil, rb_cNilClass);
SPECIAL_SINGLETON(Qfalse, rb_cFalseClass);
SPECIAL_SINGLETON(Qtrue, rb_cTrueClass);
- rb_bug("unknown immediate %ld", obj);
+ rb_bug("unknown immediate %p", (void *)obj);
}
- CONST_ID(attached, "__attached__");
if (FL_TEST(RBASIC(obj)->klass, FL_SINGLETON) &&
- rb_ivar_get(RBASIC(obj)->klass, attached) == obj) {
+ rb_ivar_get(RBASIC(obj)->klass, id_attached) == obj) {
klass = RBASIC(obj)->klass;
}
else {
klass = rb_make_metaclass(obj, RBASIC(obj)->klass);
}
- if (BUILTIN_TYPE(obj) == T_CLASS) {
- if (rb_iv_get(RBASIC(klass)->klass, "__attached__") != klass)
- make_metametaclass(klass);
- }
if (OBJ_TAINTED(obj)) {
OBJ_TAINT(klass);
}
@@ -899,12 +1290,66 @@ rb_singleton_class(VALUE obj)
return klass;
}
+
+/*!
+ * Returns the singleton class of \a obj. Creates it if necessary.
+ *
+ * \param obj an arbitrary object.
+ * \throw TypeError if \a obj is a Fixnum or a Symbol.
+ * \return the singleton class.
+ *
+ * \post \a obj has its own singleton class.
+ * \post if \a obj is a class,
+ * the returned singleton class also has its own
+ * singleton class in order to keep consistency of the
+ * inheritance structure of metaclasses.
+ * \note a new singleton class will be created
+ * if \a obj does not have it.
+ * \note the singleton classes for nil, true and false are:
+ * NilClass, TrueClass and FalseClass.
+ */
+VALUE
+rb_singleton_class(VALUE obj)
+{
+ VALUE klass = singleton_class_of(obj);
+
+ /* ensures an exposed class belongs to its own eigenclass */
+ if (TYPE(obj) == T_CLASS) (void)ENSURE_EIGENCLASS(klass);
+
+ return klass;
+}
+
+/*!
+ * \}
+ */
+
+/*!
+ * \addtogroup defmethod
+ * \{
+ */
+
+/*!
+ * Defines a singleton method for \a obj.
+ * \param obj an arbitrary object
+ * \param name name of the singleton method
+ * \param func the method body
+ * \param argc the number of parameters, or -1 or -2. see \ref defmethod.
+ */
void
rb_define_singleton_method(VALUE obj, const char *name, VALUE (*func)(ANYARGS), int argc)
{
- rb_define_method(rb_singleton_class(obj), name, func, argc);
+ rb_define_method(singleton_class_of(obj), name, func, argc);
}
+
+
+/*!
+ * Defines a module function for \a module.
+ * \param module an module or a class.
+ * \param name name of the function
+ * \param func the method body
+ * \param argc the number of parameters, or -1 or -2. see \ref defmethod.
+ */
void
rb_define_module_function(VALUE module, const char *name, VALUE (*func)(ANYARGS), int argc)
{
@@ -912,22 +1357,53 @@ rb_define_module_function(VALUE module, const char *name, VALUE (*func)(ANYARGS)
rb_define_singleton_method(module, name, func, argc);
}
+
+/*!
+ * Defines a global function
+ * \param name name of the function
+ * \param func the method body
+ * \param argc the number of parameters, or -1 or -2. see \ref defmethod.
+ */
void
rb_define_global_function(const char *name, VALUE (*func)(ANYARGS), int argc)
{
rb_define_module_function(rb_mKernel, name, func, argc);
}
+
+/*!
+ * Defines an alias of a method.
+ * \param klass the class which the original method belongs to
+ * \param name1 a new name for the method
+ * \param name2 the original name of the method
+ */
void
rb_define_alias(VALUE klass, const char *name1, const char *name2)
{
rb_alias(klass, rb_intern(name1), rb_intern(name2));
}
+/*!
+ * Defines (a) public accessor method(s) for an attribute.
+ * \param klass the class which the attribute will belongs to
+ * \param name name of the attribute
+ * \param read a getter method for the attribute will be defined if \a read is non-zero.
+ * \param write a setter method for the attribute will be defined if \a write is non-zero.
+ */
void
rb_define_attr(VALUE klass, const char *name, int read, int write)
{
- rb_attr(klass, rb_intern(name), read, write, Qfalse);
+ rb_attr(klass, rb_intern(name), read, write, FALSE);
+}
+
+int
+rb_obj_basic_to_s_p(VALUE obj)
+{
+ const rb_method_entry_t *me = rb_method_entry(CLASS_OF(obj), rb_intern("to_s"));
+ if (me && me->def && me->def->type == VM_METHOD_TYPE_CFUNC &&
+ me->def->body.cfunc.func == rb_any_to_s)
+ return 1;
+ return 0;
}
#include <stdarg.h>
@@ -939,9 +1415,10 @@ rb_scan_args(int argc, const VALUE *argv, const char *fmt, ...)
const char *p = fmt;
VALUE *var;
va_list vargs;
- int f_var = 0, f_block = 0;
+ int f_var = 0, f_hash = 0, f_block = 0;
int n_lead = 0, n_opt = 0, n_trail = 0, n_mand;
int argi = 0;
+ VALUE hash = Qnil;
if (ISDIGIT(*p)) {
n_lead = *p - '0';
@@ -965,6 +1442,10 @@ rb_scan_args(int argc, const VALUE *argv, const char *fmt, ...)
}
}
block_arg:
+ if (*p == ':') {
+ f_hash = 1;
+ p++;
+ }
if (*p == '&') {
f_block = 1;
p++;
@@ -979,6 +1460,23 @@ rb_scan_args(int argc, const VALUE *argv, const char *fmt, ...)
va_start(vargs, fmt);
+ /* capture an option hash - phase 1: pop */
+ if (f_hash && n_mand < argc) {
+ VALUE last = argv[argc - 1];
+
+ if (NIL_P(last)) {
+ /* nil is taken as an empty option hash only if it is not
+ ambiguous; i.e. '*' is not specified and arguments are
+ given more than sufficient */
+ if (!f_var && n_mand + n_opt < argc)
+ argc--;
+ }
+ else {
+ hash = rb_check_convert_type(last, T_HASH, "Hash", "to_hash");
+ if (!NIL_P(hash))
+ argc--;
+ }
+ }
/* capture leading mandatory arguments */
for (i = n_lead; i-- > 0; ) {
var = va_arg(vargs, VALUE *);
@@ -1015,6 +1513,11 @@ rb_scan_args(int argc, const VALUE *argv, const char *fmt, ...)
if (var) *var = argv[argi];
argi++;
}
+ /* capture an option hash - phase 2: assignment */
+ if (f_hash) {
+ var = va_arg(vargs, VALUE *);
+ if (var) *var = hash;
+ }
/* capture iterator block */
if (f_block) {
var = va_arg(vargs, VALUE *);
@@ -1040,3 +1543,7 @@ rb_scan_args(int argc, const VALUE *argv, const char *fmt, ...)
rb_raise(rb_eArgError, "wrong number of arguments (%d for %d%s)",
argc, n_mand, f_var ? "+" : "");
}
+
+/*!
+ * \}
+ */
diff --git a/common.mk b/common.mk
index d4e3ebbd35..eb89a2befb 100644
--- a/common.mk
+++ b/common.mk
@@ -4,8 +4,17 @@ dll: $(LIBRUBY_SO)
.SUFFIXES: .inc .h .c .y .i
+# V=0 quiet, V=1 verbose. other values don't work.
+V = 0
+Q1 = $(V:1=)
+Q = $(Q1:0=@)
+n=$(NULLCMD)
+ECHO1 = $(V:1=@$n)
+ECHO = $(ECHO1:0=@echo)
+
RUBYLIB = -
RUBYOPT = -
+RUN_OPTS = --disable-gems
SPEC_GIT_BASE = git://github.com/rubyspec
MSPEC_GIT_URL = $(SPEC_GIT_BASE)/mspec.git
@@ -18,6 +27,7 @@ RBCONFIG = ./.rbconfig.time
LIBRUBY_EXTS = ./.libruby-with-ext.time
REVISION_H = ./.revision.time
RDOCOUT = $(EXTOUT)/rdoc
+CAPIOUT = doc/capi
ID_H_TARGET = -id.h-
DMYEXT = dmyext.$(OBJEXT)
@@ -25,7 +35,7 @@ NORMALMAINOBJ = main.$(OBJEXT)
MAINOBJ = $(NORMALMAINOBJ)
EXTOBJS =
DLDOBJS = $(DMYEXT)
-MINIOBJS = $(ARCHMINIOBJS) dmyencoding.$(OBJEXT) miniprelude.$(OBJEXT)
+MINIOBJS = $(ARCHMINIOBJS) dmyencoding.$(OBJEXT) dmyversion.$(OBJEXT) miniprelude.$(OBJEXT)
ENC_MK = enc.mk
COMMONOBJS = array.$(OBJEXT) \
@@ -34,6 +44,7 @@ COMMONOBJS = array.$(OBJEXT) \
compar.$(OBJEXT) \
complex.$(OBJEXT) \
dir.$(OBJEXT) \
+ dln_find.$(OBJEXT) \
enum.$(OBJEXT) \
enumerator.$(OBJEXT) \
error.$(OBJEXT) \
@@ -47,6 +58,7 @@ COMMONOBJS = array.$(OBJEXT) \
io.$(OBJEXT) \
marshal.$(OBJEXT) \
math.$(OBJEXT) \
+ node.$(OBJEXT) \
numeric.$(OBJEXT) \
object.$(OBJEXT) \
pack.$(OBJEXT) \
@@ -74,7 +86,6 @@ COMMONOBJS = array.$(OBJEXT) \
transcode.$(OBJEXT) \
util.$(OBJEXT) \
variable.$(OBJEXT) \
- version.$(OBJEXT) \
compile.$(OBJEXT) \
debug.$(OBJEXT) \
iseq.$(OBJEXT) \
@@ -86,14 +97,19 @@ COMMONOBJS = array.$(OBJEXT) \
$(BUILTIN_TRANSOBJS) \
$(MISSING)
-OBJS = dln.$(OBJEXT) \
+EXPORTOBJS = dln.$(OBJEXT) \
encoding.$(OBJEXT) \
- prelude.$(OBJEXT) \
+ version.$(OBJEXT) \
$(COMMONOBJS)
+OBJS = $(EXPORTOBJS) prelude.$(OBJEXT)
+
GOLFOBJS = goruby.$(OBJEXT) golf_prelude.$(OBJEXT)
-PRELUDE_SCRIPTS = $(srcdir)/prelude.rb $(srcdir)/enc/prelude.rb $(srcdir)/gem_prelude.rb
+PRELUDE_SCRIPTS = $(srcdir)/prelude.rb $(srcdir)/enc/prelude.rb $(DEFAULT_PRELUDES)
+GEM_PRELUDE = $(srcdir)/gem_prelude.rb
+YES_GEM_PRELUDE = $(GEM_PRELUDE)
+NO_GEM_PRELUDE =
PRELUDES = prelude.c miniprelude.c
GOLFPRELUDES = golf_prelude.c
@@ -102,12 +118,13 @@ SCRIPT_ARGS = --dest-dir="$(DESTDIR)" \
--mflags="$(MFLAGS)" \
--make-flags="$(MAKEFLAGS)"
EXTMK_ARGS = $(SCRIPT_ARGS) --extension $(EXTS) --extstatic $(EXTSTATIC) \
- --make-flags="MINIRUBY='$(MINIRUBY)'" --
-INSTRUBY = $(MINIRUBY) $(srcdir)/instruby.rb
+ --make-flags="V=$(V) MINIRUBY='$(MINIRUBY)'" --
+INSTRUBY = $(SUDO) $(MINIRUBY) $(srcdir)/tool/rbinstall.rb
INSTRUBY_ARGS = $(SCRIPT_ARGS) \
--data-mode=$(INSTALL_DATA_MODE) \
--prog-mode=$(INSTALL_PROG_MODE) \
- --installed-list $(INSTALLED_LIST)
+ --installed-list $(INSTALLED_LIST) \
+ --mantype="$(MANTYPE)"
INSTALL_PROG_MODE = 0755
INSTALL_DATA_MODE = 0644
@@ -121,19 +138,48 @@ TESTRUN_SCRIPT = $(srcdir)/test.rb
BOOTSTRAPRUBY = $(BASERUBY)
-COMPILE_PRELUDE = $(MINIRUBY) -I$(srcdir) -rrbconfig $(srcdir)/tool/compile_prelude.rb
+COMPILE_PRELUDE = $(MINIRUBY) -I$(srcdir) $(srcdir)/tool/compile_prelude.rb
-all: encs exts main
+all: showflags main docs
-main: exts
- @$(RUNCMD) $(MKMAIN_CMD) $(MAKE)
+main: showflags encs exts
+ @$(NULLCMD)
-exts: $(MKMAIN_CMD)
+.PHONY: showflags
+exts enc trans: showflags
+showflags:
+ $(MESSAGE_BEGIN) \
+ " CC = $(CC)" \
+ " LD = $(LD)" \
+ " LDSHARED = $(LDSHARED)" \
+ " CFLAGS = $(CFLAGS)" \
+ " XCFLAGS = $(XCFLAGS)" \
+ " CPPFLAGS = $(CPPFLAGS)" \
+ " DLDFLAGS = $(DLDFLAGS)" \
+ " SOLIBS = $(SOLIBS)" \
+ $(MESSAGE_END)
+
+.PHONY: showconfig
+showconfig:
+ @$(MESSAGE_BEGIN) \
+ "$(configure_args)" \
+ $(MESSAGE_END)
+
+exts: build-ext
+
+EXTS_MK = exts.mk
+$(EXTS_MK): $(MKFILES) incs $(PREP) $(RBCONFIG) $(LIBRUBY)
+ @$(MINIRUBY) $(srcdir)/ext/extmk.rb --make="$(MAKE)" --command-output=$(EXTS_MK) $(EXTMK_ARGS) configure
+
+configure-ext: $(EXTS_MK)
+
+build-ext: $(EXTS_MK)
+ $(Q)$(MAKE) -f $(EXTS_MK) $(MFLAGS)
$(MKMAIN_CMD): $(MKFILES) incs $(PREP) $(RBCONFIG) $(LIBRUBY)
@$(MINIRUBY) $(srcdir)/ext/extmk.rb --make="$(MAKE)" --command-output=$@ $(EXTMK_ARGS)
-prog: $(PROGRAM) $(WPROGRAM)
+prog: program wprogram
loadpath: $(PREP) PHONY
$(MINIRUBY) -e 'p $$:'
@@ -144,16 +190,22 @@ miniruby$(EXEEXT): config.status $(NORMALMAINOBJ) $(MINIOBJS) $(COMMONOBJS) $(DM
GORUBY = go$(RUBY_INSTALL_NAME)
golf: $(LIBRUBY) $(GOLFOBJS) PHONY
- $(MAKE) $(MFLAGS) MAINOBJ="$(GOLFOBJS)" PROGRAM=$(GORUBY)$(EXEEXT) program
-capi: Doxyfile PHONY
- @$(MAKEDIRS) doc/capi
- @doxygen
-
-Doxyfile: $(srcdir)/template/Doxyfile.tmpl $(PREP) $(srcdir)/tool/generic_erb.rb $(srcdir)/template/Doxyfile.tmpl $(RBCONFIG)
- $(MINIRUBY) $(srcdir)/tool/generic_erb.rb -o $@ $(srcdir)/template/Doxyfile.tmpl \
+ $(Q) $(MAKE) $(MFLAGS) MAINOBJ="$(GOLFOBJS)" PROGRAM=$(GORUBY)$(EXEEXT) program
+capi: $(CAPIOUT)/.timestamp PHONY
+
+doc/capi/.timestamp: Doxyfile $(PREP)
+ $(Q) $(MAKEDIRS) doc/capi
+ $(ECHO) generating capi
+ $(Q) $(DOXYGEN) -b
+ $(Q) $(MINIRUBY) -e 'File.open("$(CAPIOUT)/.timestamp", "w"){|f| f.puts(Time.now)}'
+
+Doxyfile: $(srcdir)/template/Doxyfile.tmpl $(PREP) $(srcdir)/tool/generic_erb.rb $(RBCONFIG)
+ $(ECHO) generating $@
+ $(Q) $(MINIRUBY) $(srcdir)/tool/generic_erb.rb -o $@ $(srcdir)/template/Doxyfile.tmpl \
--srcdir="$(srcdir)" --miniruby="$(MINIRUBY)"
-program: $(PROGRAM)
+program: showflags $(PROGRAM)
+wprogram: showflags $(WPROGRAM)
$(PROGRAM): $(LIBRUBY) $(MAINOBJ) $(OBJS) $(EXTOBJS) $(SETUP) $(PREP)
@@ -168,22 +220,33 @@ $(STATIC_RUBY)$(EXEEXT): $(MAINOBJ) $(DLDOBJS) $(EXTOBJS) $(LIBRUBY_A)
@$(RM) $@
$(PURIFY) $(CC) $(MAINOBJ) $(DLDOBJS) $(EXTOBJS) $(LIBRUBY_A) $(MAINLIBS) $(EXTLIBS) $(LIBS) $(OUTFLAG)$@ $(LDFLAGS) $(XLDFLAGS)
-ruby.imp: $(OBJS)
- @$(NM) -Pgp $(OBJS) | awk 'BEGIN{print "#!"}; $$2~/^[BD]$$/{print $$1}' | sort -u -o $@
-
-install: install-nodoc $(RDOCTARGET)
-install-all: install-nodoc install-doc install-capi
+ruby.imp: $(EXPORTOBJS)
+ @$(NM) -Pgp $(EXPORTOBJS) | \
+ awk 'BEGIN{print "#!"}; $$2~/^[BDT]$$/&&$$1!~/^(Init_|.*_threadptr_|\.)/{print $$1}' | \
+ sort -u -o $@
+
+install: install-$(INSTALLDOC)
+docs: $(DOCTARGETS)
+pkgconfig-data: $(ruby_pc)
+$(ruby_pc): $(srcdir)/template/ruby.pc.in config.status
+
+install-all: docs pre-install-all do-install-all post-install-all
+pre-install-all:: pre-install-local pre-install-ext pre-install-doc
+do-install-all: $(PROGRAM)
+ $(INSTRUBY) --make="$(MAKE)" $(INSTRUBY_ARGS) --install=all --rdoc-output="$(RDOCOUT)"
+post-install-all:: post-install-local post-install-ext post-install-doc
+ @$(NULLCMD)
install-nodoc: pre-install-nodoc do-install-nodoc post-install-nodoc
pre-install-nodoc:: pre-install-local pre-install-ext
do-install-nodoc: $(PREP)
- $(INSTRUBY) --make="$(MAKE)" $(INSTRUBY_ARGS) --mantype="$(MANTYPE)"
+ $(INSTRUBY) --make="$(MAKE)" $(INSTRUBY_ARGS)
post-install-nodoc:: post-install-local post-install-ext
install-local: pre-install-local do-install-local post-install-local
pre-install-local:: pre-install-bin pre-install-lib pre-install-man
do-install-local: $(PREP)
- $(INSTRUBY) --make="$(MAKE)" $(INSTRUBY_ARGS) --install=local --mantype="$(MANTYPE)"
+ $(INSTRUBY) --make="$(MAKE)" $(INSTRUBY_ARGS) --install=local
post-install-local:: post-install-bin post-install-lib post-install-man
install-ext: pre-install-ext do-install-ext post-install-ext
@@ -235,7 +298,7 @@ post-install-ext-arch::
install-man: pre-install-man do-install-man post-install-man
pre-install-man:: install-prereq
do-install-man: $(PREP)
- $(INSTRUBY) --make="$(MAKE)" $(INSTRUBY_ARGS) --install=man --mantype="$(MANTYPE)"
+ $(INSTRUBY) --make="$(MAKE)" $(INSTRUBY_ARGS) --install=man
post-install-man::
@$(NULLCMD)
@@ -247,22 +310,27 @@ post-install-capi::
@$(NULLCMD)
what-where: no-install
-no-install: no-install-nodoc no-install-doc
+no-install: no-install-$(INSTALLDOC)
what-where-all: no-install-all
-no-install-all: no-install-nodoc
+no-install-all: pre-no-install-all dont-install-all post-no-install-all
+pre-no-install-all:: pre-no-install-local pre-no-install-ext pre-no-install-doc
+dont-install-all: $(PROGRAM)
+ $(INSTRUBY) -n --make="$(MAKE)" $(INSTRUBY_ARGS) --install=all --rdoc-output="$(RDOCOUT)"
+post-no-install-all:: post-no-install-local post-no-install-ext post-no-install-doc
+ @$(NULLCMD)
what-where-nodoc: no-install-nodoc
no-install-nodoc: pre-no-install-nodoc dont-install-nodoc post-no-install-nodoc
pre-no-install-nodoc:: pre-no-install-local pre-no-install-ext
dont-install-nodoc: $(PREP)
- $(INSTRUBY) -n --make="$(MAKE)" $(INSTRUBY_ARGS) --mantype="$(MANTYPE)"
+ $(INSTRUBY) -n --make="$(MAKE)" $(INSTRUBY_ARGS)
post-no-install-nodoc:: post-no-install-local post-no-install-ext
what-where-local: no-install-local
no-install-local: pre-no-install-local dont-install-local post-no-install-local
pre-no-install-local:: pre-no-install-bin pre-no-install-lib pre-no-install-man
dont-install-local: $(PREP)
- $(INSTRUBY) -n --make="$(MAKE)" $(INSTRUBY_ARGS) --install=local --mantype="$(MANTYPE)"
+ $(INSTRUBY) -n --make="$(MAKE)" $(INSTRUBY_ARGS) --install=local
post-no-install-local:: post-no-install-bin post-no-install-lib post-no-install-man
what-where-ext: no-install-ext
@@ -322,7 +390,7 @@ what-where-man: no-install-man
no-install-man: pre-no-install-man dont-install-man post-no-install-man
pre-no-install-man:: install-prereq
dont-install-man: $(PREP)
- $(INSTRUBY) -n --make="$(MAKE)" $(INSTRUBY_ARGS) --install=man --mantype="$(MANTYPE)"
+ $(INSTRUBY) -n --make="$(MAKE)" $(INSTRUBY_ARGS) --install=man
post-no-install-man::
@$(NULLCMD)
@@ -333,9 +401,15 @@ do-install-doc: $(PROGRAM)
post-install-doc::
@$(NULLCMD)
-rdoc: $(PROGRAM) PHONY
+rdoc: PHONY main
@echo Generating RDoc documentation
- $(RUNRUBY) "$(srcdir)/bin/rdoc" --all --ri --op "$(RDOCOUT)" "$(srcdir)"
+ $(Q) $(XRUBY) "$(srcdir)/bin/rdoc" --encoding=UTF-8 --no-force-update --all --ri --op "$(RDOCOUT)" $(RDOCFLAGS) "$(srcdir)"
+
+rdoc-coverage: PHONY main
+ @echo Generating RDoc coverage report
+ $(Q) $(XRUBY) "$(srcdir)/bin/rdoc" --encoding=UTF-8 --all --quiet -C $(RDOCFLAGS) "$(srcdir)"
+
+nodoc: PHONY
what-where-doc: no-install-doc
no-install-doc: pre-no-install-doc dont-install-doc post-no-install-doc
@@ -350,81 +424,107 @@ CLEAR_INSTALLED_LIST = clear-installed-list
install-prereq: $(CLEAR_INSTALLED_LIST) PHONY
clear-installed-list: PHONY
- @exit > $(INSTALLED_LIST)
+ @> $(INSTALLED_LIST) set MAKE="$(MAKE)"
-clean: clean-ext clean-local clean-enc clean-golf clean-rdoc clean-extout
+clean: clean-ext clean-local clean-enc clean-golf clean-rdoc clean-capi clean-extout
clean-local:: PHONY
@$(RM) $(OBJS) $(MINIOBJS) $(MAINOBJ) $(LIBRUBY_A) $(LIBRUBY_SO) $(LIBRUBY) $(LIBRUBY_ALIASES)
@$(RM) $(PROGRAM) $(WPROGRAM) miniruby$(EXEEXT) dmyext.$(OBJEXT) $(ARCHFILE) .*.time
- @$(RM) *.inc y.tab.c y.output encdb.h transdb.h
+ @$(RM) y.tab.c y.output encdb.h transdb.h prelude.c config.log rbconfig.rb $(ruby_pc)
clean-ext:: PHONY
clean-golf: PHONY
@$(RM) $(GORUBY)$(EXEEXT) $(GOLFOBJS)
clean-rdoc: PHONY
+clean-capi: PHONY
clean-extout: PHONY
- @-$(RMDIRS) $(EXTOUT)/$(arch)
+clean-docs: clean-rdoc clean-capi
distclean: distclean-ext distclean-local distclean-enc distclean-golf distclean-extout
distclean-local:: clean-local
- @$(RM) $(MKFILES) rbconfig.rb yasmdata.rb encdb.h
- @$(RM) config.cache config.log config.status config.status.lineno $(PRELUDES)
+ @$(RM) $(MKFILES) yasmdata.rb *.inc
+ @$(RM) config.cache config.status config.status.lineno $(PRELUDES)
@$(RM) *~ *.bak *.stackdump core *.core gmon.out $(PREP)
distclean-ext:: PHONY
distclean-golf: clean-golf
@$(RM) $(GOLFPRELUDES)
distclean-rdoc: PHONY
+distclean-capi: PHONY
distclean-extout: clean-extout
- @-$(RMDIRS) $(EXTOUT)
realclean:: realclean-ext realclean-local realclean-enc realclean-golf realclean-extout
realclean-local:: distclean-local
@$(RM) parse.c parse.h lex.c newline.c revision.h
realclean-ext::
realclean-golf: distclean-golf
+realclean-capi: PHONY
realclean-extout: distclean-extout
-clean-enc distclean-enc realclean-enc:
- @echo $(@:-enc=ing) encodings
- @-$(MAKE) -f $(ENC_MK) $(MFLAGS) $(@:-enc=)
+clean-enc distclean-enc realclean-enc: PHONY
check: test test-all
+check-ruby: test test-ruby
-btest: miniruby$(EXEEXT) PHONY
+btest: miniruby$(EXEEXT) $(TEST_RUNNABLE)-btest
+no-btest: PHONY
+yes-btest: PHONY
$(BOOTSTRAPRUBY) "$(srcdir)/bootstraptest/runner.rb" --ruby="$(MINIRUBY)" $(OPTS)
-btest-ruby: miniruby$(EXEEXT) $(RBCONFIG) $(PROGRAM) PHONY
+btest-ruby: miniruby$(EXEEXT) $(RBCONFIG) $(PROGRAM) $(TEST_RUNNABLE)-btest-ruby
+no-btest-ruby: PHONY
+yes-btest-ruby: PHONY
@$(RUNRUBY) "$(srcdir)/bootstraptest/runner.rb" --ruby="$(PROGRAM) -I$(srcdir)/lib" -q $(OPTS)
-test-sample: miniruby$(EXEEXT) $(RBCONFIG) $(PROGRAM) PHONY
- @$(RUNRUBY) $(srcdir)/rubytest.rb
+test-sample: miniruby$(EXEEXT) $(RBCONFIG) $(PROGRAM) $(TEST_RUNNABLE)-test-sample
+no-test-sample: PHONY
+yes-test-sample: PHONY
+ @$(RUNRUBY) $(srcdir)/tool/rubytest.rb
-test-knownbug: miniruby$(EXEEXT) $(PROGRAM) $(RBCONFIG) PHONY
- $(MINIRUBY) "$(srcdir)/bootstraptest/runner.rb" --ruby="$(PROGRAM)" $(OPTS) $(srcdir)/KNOWNBUGS.rb
+test-knownbugs: test-knownbug
+test-knownbug: miniruby$(EXEEXT) $(PROGRAM) $(RBCONFIG) $(TEST_RUNNABLE)-test-knownbug
+no-test-knownbug: PHONY
+yes-test-knownbug: PHONY
+ -$(RUNRUBY) "$(srcdir)/bootstraptest/runner.rb" --ruby="$(PROGRAM)" $(OPTS) $(srcdir)/KNOWNBUGS.rb
test: test-sample btest-ruby test-knownbug
-test-all:
- $(RUNRUBY) "$(srcdir)/test/runner.rb" $(TESTS)
+test-all: $(TEST_RUNNABLE)-test-all
+yes-test-all: PHONY
+ $(RUNRUBY) "$(srcdir)/test/runner.rb" --ruby="$(RUNRUBY)" $(TESTS)
+TESTS_BUILD = mkmf
+no-test-all: PHONY
+ $(MINIRUBY) -I"$(srcdir)/lib" "$(srcdir)/test/runner.rb" $(TESTS_BUILD)
+
+test-ruby: $(TEST_RUNNABLE)-test-ruby
+no-test-ruby: PHONY
+yes-test-ruby: PHONY
+ $(RUNRUBY) "$(srcdir)/test/runner.rb" ruby
extconf: $(PREP)
- $(MAKEDIRS) "$(EXTCONFDIR)"
+ $(Q) $(MAKEDIRS) "$(EXTCONFDIR)"
$(RUNRUBY) -C "$(EXTCONFDIR)" $(EXTCONF) $(EXTCONFARGS)
-$(RBCONFIG): $(srcdir)/mkconfig.rb config.status $(PREP)
- @$(MINIRUBY) $(srcdir)/mkconfig.rb -timestamp=$@ \
+$(RBCONFIG): $(srcdir)/tool/mkconfig.rb config.status $(srcdir)/version.h $(PREP)
+ @$(MINIRUBY) $(srcdir)/tool/mkconfig.rb -timestamp=$@ \
-install_name=$(RUBY_INSTALL_NAME) \
-so_name=$(RUBY_SO_NAME) rbconfig.rb
+test-rubyspec-precheck:
+
+test-rubyspec: test-rubyspec-precheck
+ $(RUNRUBY) $(srcdir)/spec/mspec/bin/mspec run -B $(srcdir)/spec/default.mspec $(MSPECOPT)
+
encs: enc trans
-encs enc trans: $(ENC_MK) $(LIBRUBY) $(PREP)
- $(MAKE) -f $(ENC_MK) RUBY="$(MINIRUBY)" MINIRUBY="$(MINIRUBY)" $(MFLAGS) $@
+encs enc trans: showflags $(ENC_MK) $(LIBRUBY) $(PREP)
+ $(ECHO) making $@
+ $(Q) $(MAKE) -f $(ENC_MK) RUBY="$(MINIRUBY)" MINIRUBY="$(MINIRUBY)" $(MFLAGS) $@
enc: {$(VPATH)}encdb.h
trans: {$(VPATH)}transdb.h
$(ENC_MK): $(srcdir)/enc/make_encmake.rb $(srcdir)/enc/Makefile.in $(srcdir)/enc/depend \
$(srcdir)/lib/mkmf.rb $(RBCONFIG)
- $(MINIRUBY) $(srcdir)/enc/make_encmake.rb --builtin-encs="$(BUILTIN_ENCOBJS)" --builtin-transes="$(BUILTIN_TRANSOBJS)" $@ $(ENCS)
+ $(ECHO) generating $@
+ $(Q) $(MINIRUBY) $(srcdir)/enc/make_encmake.rb --builtin-encs="$(BUILTIN_ENCOBJS)" --builtin-transes="$(BUILTIN_TRANSOBJS)" $@ $(ENCS)
.PRECIOUS: $(MKFILES)
@@ -478,76 +578,98 @@ win32.$(OBJEXT): {$(VPATH)}win32.c $(RUBY_H_INCLUDES)
###
RUBY_H_INCLUDES = {$(VPATH)}ruby.h {$(VPATH)}config.h {$(VPATH)}defines.h \
- {$(VPATH)}intern.h {$(VPATH)}missing.h {$(VPATH)}st.h
+ {$(VPATH)}intern.h {$(VPATH)}missing.h {$(VPATH)}st.h \
+ {$(VPATH)}subst.h
ENCODING_H_INCLUDES= {$(VPATH)}encoding.h {$(VPATH)}oniguruma.h
-ID_H_INCLUDES = {$(VPATH)}id.h
-VM_CORE_H_INCLUDES = {$(VPATH)}vm_core.h {$(VPATH)}vm_opts.h \
- {$(VPATH)}thread_$(THREAD_MODEL).h \
- {$(VPATH)}node.h $(ID_H_INCLUDES)
-
-array.$(OBJEXT): {$(VPATH)}array.c $(RUBY_H_INCLUDES) {$(VPATH)}util.h
-bignum.$(OBJEXT): {$(VPATH)}bignum.c $(RUBY_H_INCLUDES)
-class.$(OBJEXT): {$(VPATH)}class.c $(RUBY_H_INCLUDES) {$(VPATH)}node.h
+ID_H_INCLUDES = {$(VPATH)}id.h {$(VPATH)}vm_opts.h
+VM_CORE_H_INCLUDES = {$(VPATH)}vm_core.h {$(VPATH)}thread_$(THREAD_MODEL).h \
+ {$(VPATH)}node.h {$(VPATH)}method.h {$(VPATH)}atomic.h \
+ $(ID_H_INCLUDES)
+
+array.$(OBJEXT): {$(VPATH)}array.c $(RUBY_H_INCLUDES) {$(VPATH)}util.h \
+ $(ENCODING_H_INCLUDES) {$(VPATH)}internal.h
+bignum.$(OBJEXT): {$(VPATH)}bignum.c $(RUBY_H_INCLUDES) {$(VPATH)}util.h \
+ {$(VPATH)}internal.h
+class.$(OBJEXT): {$(VPATH)}class.c $(RUBY_H_INCLUDES) \
+ $(VM_CORE_H_INCLUDES) {$(VPATH)}debug.h {$(VPATH)}internal.h \
+ {$(VPATH)}constant.h
compar.$(OBJEXT): {$(VPATH)}compar.c $(RUBY_H_INCLUDES)
-complex.$(OBJEXT): {$(VPATH)}complex.c $(RUBY_H_INCLUDES)
+complex.$(OBJEXT): {$(VPATH)}complex.c $(RUBY_H_INCLUDES) \
+ {$(VPATH)}internal.h
dir.$(OBJEXT): {$(VPATH)}dir.c $(RUBY_H_INCLUDES) {$(VPATH)}util.h \
- $(ENCODING_H_INCLUDES)
+ $(ENCODING_H_INCLUDES) \
+ {$(VPATH)}internal.h
dln.$(OBJEXT): {$(VPATH)}dln.c {$(VPATH)}dln.h $(RUBY_H_INCLUDES)
-dmydln.$(OBJEXT): {$(VPATH)}dmydln.c dln.$(OBJEXT)
+dln_find.$(OBJEXT): {$(VPATH)}dln_find.c {$(VPATH)}dln.h $(RUBY_H_INCLUDES)
+dmydln.$(OBJEXT): {$(VPATH)}dmydln.c $(RUBY_H_INCLUDES)
dmyext.$(OBJEXT): {$(VPATH)}dmyext.c
dmyencoding.$(OBJEXT): {$(VPATH)}dmyencoding.c $(RUBY_H_INCLUDES) \
{$(VPATH)}regenc.h {$(VPATH)}util.h $(ENCODING_H_INCLUDES) \
- {$(VPATH)}encoding.c
+ {$(VPATH)}encoding.c {$(VPATH)}internal.h
encoding.$(OBJEXT): {$(VPATH)}encoding.c $(RUBY_H_INCLUDES) \
- $(ENCODING_H_INCLUDES) {$(VPATH)}regenc.h {$(VPATH)}util.h
+ $(ENCODING_H_INCLUDES) {$(VPATH)}regenc.h {$(VPATH)}util.h \
+ {$(VPATH)}internal.h
enum.$(OBJEXT): {$(VPATH)}enum.c $(RUBY_H_INCLUDES) {$(VPATH)}node.h \
- {$(VPATH)}util.h
+ {$(VPATH)}util.h $(ID_H_INCLUDES)
enumerator.$(OBJEXT): {$(VPATH)}enumerator.c $(RUBY_H_INCLUDES)
-error.$(OBJEXT): {$(VPATH)}error.c {$(VPATH)}known_errors.inc $(RUBY_H_INCLUDES) \
- $(VM_CORE_H_INCLUDES) {$(VPATH)}debug.h
-eval.$(OBJEXT): {$(VPATH)}eval.c {$(VPATH)}eval_intern.h \
+error.$(OBJEXT): {$(VPATH)}error.c {$(VPATH)}known_errors.inc \
+ $(RUBY_H_INCLUDES) $(VM_CORE_H_INCLUDES) $(ENCODING_H_INCLUDES) \
+ {$(VPATH)}debug.h \
+ {$(VPATH)}internal.h
+eval.$(OBJEXT): {$(VPATH)}eval.c {$(VPATH)}eval_intern.h {$(VPATH)}vm.h \
$(RUBY_H_INCLUDES) $(VM_CORE_H_INCLUDES) {$(VPATH)}eval_error.c \
- {$(VPATH)}eval_jump.c {$(VPATH)}debug.h {$(VPATH)}gc.h \
- {$(VPATH)}iseq.h
+ {$(VPATH)}eval_jump.c {$(VPATH)}debug.h {$(VPATH)}gc.h {$(VPATH)}iseq.h \
+ $(ENCODING_H_INCLUDES) {$(VPATH)}internal.h
load.$(OBJEXT): {$(VPATH)}load.c {$(VPATH)}eval_intern.h \
{$(VPATH)}util.h $(RUBY_H_INCLUDES) $(VM_CORE_H_INCLUDES) \
- {$(VPATH)}dln.h {$(VPATH)}debug.h
+ {$(VPATH)}dln.h {$(VPATH)}debug.h \
+ {$(VPATH)}internal.h
file.$(OBJEXT): {$(VPATH)}file.c $(RUBY_H_INCLUDES) {$(VPATH)}io.h \
- $(ENCODING_H_INCLUDES) {$(VPATH)}util.h {$(VPATH)}dln.h
+ $(ENCODING_H_INCLUDES) {$(VPATH)}util.h {$(VPATH)}dln.h \
+ {$(VPATH)}internal.h
gc.$(OBJEXT): {$(VPATH)}gc.c $(RUBY_H_INCLUDES) {$(VPATH)}re.h \
{$(VPATH)}regex.h $(ENCODING_H_INCLUDES) $(VM_CORE_H_INCLUDES) \
{$(VPATH)}gc.h {$(VPATH)}io.h {$(VPATH)}eval_intern.h {$(VPATH)}util.h \
- {$(VPATH)}debug.h
-hash.$(OBJEXT): {$(VPATH)}hash.c $(RUBY_H_INCLUDES) {$(VPATH)}util.h
-inits.$(OBJEXT): {$(VPATH)}inits.c $(RUBY_H_INCLUDES)
+ {$(VPATH)}debug.h {$(VPATH)}internal.h {$(VPATH)}constant.h
+hash.$(OBJEXT): {$(VPATH)}hash.c $(RUBY_H_INCLUDES) {$(VPATH)}util.h \
+ $(ENCODING_H_INCLUDES)
+inits.$(OBJEXT): {$(VPATH)}inits.c $(RUBY_H_INCLUDES) \
+ {$(VPATH)}internal.h
io.$(OBJEXT): {$(VPATH)}io.c $(RUBY_H_INCLUDES) {$(VPATH)}io.h \
- {$(VPATH)}util.h $(ENCODING_H_INCLUDES)
+ {$(VPATH)}util.h $(ENCODING_H_INCLUDES) {$(VPATH)}dln.h {$(VPATH)}internal.h
main.$(OBJEXT): {$(VPATH)}main.c $(RUBY_H_INCLUDES) {$(VPATH)}debug.h \
{$(VPATH)}node.h
marshal.$(OBJEXT): {$(VPATH)}marshal.c $(RUBY_H_INCLUDES) {$(VPATH)}io.h \
- $(ENCODING_H_INCLUDES) {$(VPATH)}util.h
-math.$(OBJEXT): {$(VPATH)}math.c $(RUBY_H_INCLUDES)
+ $(ENCODING_H_INCLUDES) {$(VPATH)}util.h {$(VPATH)}internal.h
+math.$(OBJEXT): {$(VPATH)}math.c $(RUBY_H_INCLUDES) \
+ {$(VPATH)}internal.h
+node.$(OBJEXT): {$(VPATH)}node.c $(RUBY_H_INCLUDES) \
+ $(VM_CORE_H_INCLUDES) {$(VPATH)}debug.h
numeric.$(OBJEXT): {$(VPATH)}numeric.c $(RUBY_H_INCLUDES) \
- $(ENCODING_H_INCLUDES)
-object.$(OBJEXT): {$(VPATH)}object.c $(RUBY_H_INCLUDES) {$(VPATH)}util.h
-pack.$(OBJEXT): {$(VPATH)}pack.c $(RUBY_H_INCLUDES)
-parse.$(OBJEXT): {$(VPATH)}parse.c $(RUBY_H_INCLUDES) \
- {$(VPATH)}node.h $(ENCODING_H_INCLUDES) $(ID_H_INCLUDES) \
- {$(VPATH)}regenc.h {$(VPATH)}regex.h {$(VPATH)}util.h {$(VPATH)}lex.c \
- {$(VPATH)}defs/keywords {$(VPATH)}id.c
+ {$(VPATH)}util.h $(ENCODING_H_INCLUDES) {$(VPATH)}internal.h
+object.$(OBJEXT): {$(VPATH)}object.c $(RUBY_H_INCLUDES) {$(VPATH)}util.h \
+ {$(VPATH)}internal.h {$(VPATH)}constant.h
+pack.$(OBJEXT): {$(VPATH)}pack.c $(RUBY_H_INCLUDES) {$(VPATH)}encoding.h \
+ {$(VPATH)}oniguruma.h
+parse.$(OBJEXT): {$(VPATH)}parse.c $(RUBY_H_INCLUDES) {$(VPATH)}node.h \
+ $(ENCODING_H_INCLUDES) $(ID_H_INCLUDES) {$(VPATH)}regenc.h \
+ {$(VPATH)}regex.h {$(VPATH)}util.h {$(VPATH)}lex.c \
+ {$(VPATH)}defs/keywords {$(VPATH)}id.c {$(VPATH)}parse.y \
+ {$(VPATH)}parse.h \
+ {$(VPATH)}internal.h
proc.$(OBJEXT): {$(VPATH)}proc.c {$(VPATH)}eval_intern.h \
$(RUBY_H_INCLUDES) {$(VPATH)}gc.h $(VM_CORE_H_INCLUDES) \
- {$(VPATH)}debug.h
+ {$(VPATH)}debug.h {$(VPATH)}internal.h {$(VPATH)}iseq.h
process.$(OBJEXT): {$(VPATH)}process.c $(RUBY_H_INCLUDES) \
{$(VPATH)}util.h {$(VPATH)}io.h $(ENCODING_H_INCLUDES) {$(VPATH)}dln.h \
- $(VM_CORE_H_INCLUDES) {$(VPATH)}debug.h
+ $(VM_CORE_H_INCLUDES) {$(VPATH)}debug.h {$(VPATH)}internal.h
random.$(OBJEXT): {$(VPATH)}random.c $(RUBY_H_INCLUDES)
range.$(OBJEXT): {$(VPATH)}range.c $(RUBY_H_INCLUDES) \
- $(ENCODING_H_INCLUDES)
-rational.$(OBJEXT): {$(VPATH)}rational.c $(RUBY_H_INCLUDES)
+ $(ENCODING_H_INCLUDES) {$(VPATH)}internal.h
+rational.$(OBJEXT): {$(VPATH)}rational.c $(RUBY_H_INCLUDES) {$(VPATH)}internal.h
re.$(OBJEXT): {$(VPATH)}re.c $(RUBY_H_INCLUDES) {$(VPATH)}re.h \
{$(VPATH)}regex.h $(ENCODING_H_INCLUDES) {$(VPATH)}util.h \
- {$(VPATH)}regint.h {$(VPATH)}regenc.h
+ {$(VPATH)}regint.h {$(VPATH)}regenc.h {$(VPATH)}internal.h
regcomp.$(OBJEXT): {$(VPATH)}regcomp.c {$(VPATH)}regparse.h \
{$(VPATH)}regint.h {$(VPATH)}regenc.h {$(VPATH)}oniguruma.h \
$(RUBY_H_INCLUDES)
@@ -564,80 +686,89 @@ regsyntax.$(OBJEXT): {$(VPATH)}regsyntax.c {$(VPATH)}regint.h \
{$(VPATH)}regenc.h {$(VPATH)}oniguruma.h $(RUBY_H_INCLUDES)
ruby.$(OBJEXT): {$(VPATH)}ruby.c $(RUBY_H_INCLUDES) {$(VPATH)}util.h \
$(ENCODING_H_INCLUDES) {$(VPATH)}eval_intern.h $(VM_CORE_H_INCLUDES) \
- {$(VPATH)}dln.h {$(VPATH)}debug.h
+ {$(VPATH)}dln.h {$(VPATH)}debug.h {$(VPATH)}internal.h
safe.$(OBJEXT): {$(VPATH)}safe.c $(RUBY_H_INCLUDES) \
$(VM_CORE_H_INCLUDES) {$(VPATH)}debug.h
signal.$(OBJEXT): {$(VPATH)}signal.c $(RUBY_H_INCLUDES) \
$(VM_CORE_H_INCLUDES) {$(VPATH)}debug.h
sprintf.$(OBJEXT): {$(VPATH)}sprintf.c $(RUBY_H_INCLUDES) {$(VPATH)}re.h \
{$(VPATH)}regex.h {$(VPATH)}vsnprintf.c $(ENCODING_H_INCLUDES)
-st.$(OBJEXT): {$(VPATH)}st.c {$(VPATH)}config.h {$(VPATH)}defines.h \
- {$(VPATH)}st.h {$(VPATH)}ruby.h {$(VPATH)}missing.h {$(VPATH)}intern.h
-strftime.$(OBJEXT): {$(VPATH)}strftime.c {$(VPATH)}ruby.h \
- {$(VPATH)}config.h {$(VPATH)}defines.h {$(VPATH)}missing.h \
- {$(VPATH)}intern.h {$(VPATH)}st.h
+st.$(OBJEXT): {$(VPATH)}st.c $(RUBY_H_INCLUDES)
+strftime.$(OBJEXT): {$(VPATH)}strftime.c $(RUBY_H_INCLUDES) \
+ {$(VPATH)}timev.h
string.$(OBJEXT): {$(VPATH)}string.c $(RUBY_H_INCLUDES) {$(VPATH)}re.h \
- {$(VPATH)}regex.h $(ENCODING_H_INCLUDES)
-struct.$(OBJEXT): {$(VPATH)}struct.c $(RUBY_H_INCLUDES)
+ {$(VPATH)}regex.h $(ENCODING_H_INCLUDES) {$(VPATH)}internal.h
+struct.$(OBJEXT): {$(VPATH)}struct.c $(RUBY_H_INCLUDES) {$(VPATH)}internal.h
thread.$(OBJEXT): {$(VPATH)}thread.c {$(VPATH)}eval_intern.h \
$(RUBY_H_INCLUDES) {$(VPATH)}gc.h $(VM_CORE_H_INCLUDES) \
- {$(VPATH)}debug.h {$(VPATH)}thread_$(THREAD_MODEL).c
+ {$(VPATH)}debug.h {$(VPATH)}thread_$(THREAD_MODEL).c $(ENCODING_H_INCLUDES) \
+ {$(VPATH)}internal.h {$(VPATH)}io.h
transcode.$(OBJEXT): {$(VPATH)}transcode.c $(RUBY_H_INCLUDES) \
- $(ENCODING_H_INCLUDES) {$(VPATH)}transcode_data.h
+ $(ENCODING_H_INCLUDES) {$(VPATH)}transcode_data.h {$(VPATH)}internal.h
cont.$(OBJEXT): {$(VPATH)}cont.c $(RUBY_H_INCLUDES) \
$(VM_CORE_H_INCLUDES) {$(VPATH)}gc.h {$(VPATH)}eval_intern.h \
- {$(VPATH)}debug.h
+ {$(VPATH)}debug.h {$(VPATH)}internal.h
time.$(OBJEXT): {$(VPATH)}time.c $(RUBY_H_INCLUDES) \
- $(ENCODING_H_INCLUDES)
-util.$(OBJEXT): {$(VPATH)}util.c $(RUBY_H_INCLUDES) {$(VPATH)}util.h
+ $(ENCODING_H_INCLUDES) {$(VPATH)}timev.h {$(VPATH)}internal.h
+util.$(OBJEXT): {$(VPATH)}util.c $(RUBY_H_INCLUDES) {$(VPATH)}util.h \
+ {$(VPATH)}internal.h
variable.$(OBJEXT): {$(VPATH)}variable.c $(RUBY_H_INCLUDES) \
- {$(VPATH)}node.h {$(VPATH)}util.h
+ {$(VPATH)}node.h {$(VPATH)}util.h {$(VPATH)}encoding.h \
+ {$(VPATH)}oniguruma.h {$(VPATH)}internal.h {$(VPATH)}constant.h
version.$(OBJEXT): {$(VPATH)}version.c $(RUBY_H_INCLUDES) \
- {$(VPATH)}version.h $(srcdir)/revision.h
+ {$(VPATH)}version.h $(srcdir)/version.h $(srcdir)/revision.h {$(VPATH)}config.h
+dmyversion.$(OBJEXT): {$(VPATH)}dmyversion.c version.$(OBJEXT)
compile.$(OBJEXT): {$(VPATH)}compile.c {$(VPATH)}iseq.h \
$(RUBY_H_INCLUDES) $(VM_CORE_H_INCLUDES) {$(VPATH)}insns.inc \
- {$(VPATH)}insns_info.inc {$(VPATH)}optinsn.inc {$(VPATH)}debug.h
+ {$(VPATH)}insns_info.inc {$(VPATH)}optinsn.inc {$(VPATH)}debug.h \
+ {$(VPATH)}optunifs.inc {$(VPATH)}opt_sc.inc {$(VPATH)}insns.inc \
+ {$(VPATH)}internal.h
iseq.$(OBJEXT): {$(VPATH)}iseq.c {$(VPATH)}gc.h {$(VPATH)}iseq.h \
$(RUBY_H_INCLUDES) $(VM_CORE_H_INCLUDES) {$(VPATH)}insns.inc \
- {$(VPATH)}insns_info.inc {$(VPATH)}node_name.inc {$(VPATH)}debug.h
+ {$(VPATH)}insns_info.inc {$(VPATH)}node_name.inc {$(VPATH)}debug.h {$(VPATH)}internal.h
vm.$(OBJEXT): {$(VPATH)}vm.c {$(VPATH)}gc.h {$(VPATH)}iseq.h \
{$(VPATH)}eval_intern.h $(RUBY_H_INCLUDES) $(ENCODING_H_INCLUDES) \
$(VM_CORE_H_INCLUDES) {$(VPATH)}vm_method.c {$(VPATH)}vm_eval.c \
{$(VPATH)}vm_insnhelper.c {$(VPATH)}vm_insnhelper.h {$(VPATH)}vm_exec.c \
{$(VPATH)}vm_exec.h {$(VPATH)}insns.def {$(VPATH)}vmtc.inc \
- {$(VPATH)}vm.inc {$(VPATH)}insns.inc {$(VPATH)}debug.h
+ {$(VPATH)}vm.inc {$(VPATH)}insns.inc {$(VPATH)}debug.h \
+ {$(VPATH)}internal.h {$(VPATH)}vm.h {$(VPATH)}constant.h
vm_dump.$(OBJEXT): {$(VPATH)}vm_dump.c $(RUBY_H_INCLUDES) \
- $(VM_CORE_H_INCLUDES) {$(VPATH)}debug.h
+ $(VM_CORE_H_INCLUDES) {$(VPATH)}debug.h {$(VPATH)}addr2line.h
debug.$(OBJEXT): {$(VPATH)}debug.c $(RUBY_H_INCLUDES) \
$(ENCODING_H_INCLUDES) $(VM_CORE_H_INCLUDES) {$(VPATH)}eval_intern.h \
{$(VPATH)}util.h {$(VPATH)}debug.h
id.$(OBJEXT): {$(VPATH)}id.c $(RUBY_H_INCLUDES) $(ID_H_INCLUDES)
miniprelude.$(OBJEXT): {$(VPATH)}miniprelude.c $(RUBY_H_INCLUDES) \
- $(VM_CORE_H_INCLUDES) {$(VPATH)}debug.h
+ $(VM_CORE_H_INCLUDES) {$(VPATH)}debug.h {$(VPATH)}internal.h
prelude.$(OBJEXT): {$(VPATH)}prelude.c $(RUBY_H_INCLUDES) \
- $(VM_CORE_H_INCLUDES) {$(VPATH)}debug.h
+ $(VM_CORE_H_INCLUDES) {$(VPATH)}debug.h {$(VPATH)}internal.h
golf_prelude.$(OBJEXT): {$(VPATH)}golf_prelude.c $(RUBY_H_INCLUDES) \
- $(VM_CORE_H_INCLUDES) {$(VPATH)}debug.h
+ $(VM_CORE_H_INCLUDES) {$(VPATH)}debug.h {$(VPATH)}internal.h
goruby.$(OBJEXT): {$(VPATH)}goruby.c {$(VPATH)}main.c $(RUBY_H_INCLUDES) \
{$(VPATH)}debug.h {$(VPATH)}node.h
ascii.$(OBJEXT): {$(VPATH)}ascii.c {$(VPATH)}regenc.h {$(VPATH)}config.h \
- {$(VPATH)}defines.h {$(VPATH)}oniguruma.h
+ {$(VPATH)}oniguruma.h {$(VPATH)}missing.h
us_ascii.$(OBJEXT): {$(VPATH)}us_ascii.c {$(VPATH)}regenc.h \
- {$(VPATH)}config.h {$(VPATH)}defines.h {$(VPATH)}oniguruma.h
+ {$(VPATH)}config.h {$(VPATH)}oniguruma.h {$(VPATH)}missing.h
unicode.$(OBJEXT): {$(VPATH)}unicode.c {$(VPATH)}regint.h \
{$(VPATH)}config.h {$(VPATH)}defines.h {$(VPATH)}regenc.h \
{$(VPATH)}oniguruma.h {$(VPATH)}st.h {$(VPATH)}ruby.h \
- {$(VPATH)}missing.h {$(VPATH)}intern.h
+ {$(VPATH)}missing.h {$(VPATH)}intern.h {$(VPATH)}enc/unicode/name2ctype.h \
+ {$(VPATH)}subst.h
+
utf_8.$(OBJEXT): {$(VPATH)}utf_8.c {$(VPATH)}regenc.h {$(VPATH)}config.h \
- {$(VPATH)}defines.h {$(VPATH)}oniguruma.h
+ {$(VPATH)}oniguruma.h {$(VPATH)}missing.h
newline.c: $(srcdir)/enc/trans/newline.trans $(srcdir)/tool/transcode-tblgen.rb
- $(BASERUBY) "$(srcdir)/tool/transcode-tblgen.rb" -vo newline.c $(srcdir)/enc/trans/newline.trans
+ $(Q) $(BASERUBY) "$(srcdir)/tool/transcode-tblgen.rb" -vo newline.c $(srcdir)/enc/trans/newline.trans
newline.$(OBJEXT): {$(VPATH)}newline.c {$(VPATH)}defines.h \
{$(VPATH)}intern.h {$(VPATH)}missing.h {$(VPATH)}st.h \
- {$(VPATH)}transcode_data.h {$(VPATH)}ruby.h {$(VPATH)}config.h
+ {$(VPATH)}transcode_data.h {$(VPATH)}ruby.h {$(VPATH)}config.h {$(VPATH)}subst.h
+
+$(OBJS): {$(VPATH)}config.h {$(VPATH)}missing.h
INSNS2VMOPT = --srcdir="$(srcdir)"
@@ -659,40 +790,55 @@ INSNS2VMOPT = --srcdir="$(srcdir)"
srcs: {$(VPATH)}parse.c {$(VPATH)}lex.c {$(VPATH)}newline.c srcs-ext srcs-enc
-EXT_SRCS = $(srcdir)/ext/ripper/ripper.c $(srcdir)/ext/dl/callback/callback.c
+EXT_SRCS = $(srcdir)/ext/ripper/ripper.c $(srcdir)/ext/json/parser/parser.c
srcs-ext: $(EXT_SRCS)
srcs-enc: $(ENC_MK)
- $(MAKE) -f $(ENC_MK) RUBY="$(MINIRUBY)" MINIRUBY="$(MINIRUBY)" $(MFLAGS) srcs
+ $(ECHO) making srcs under enc
+ $(Q) $(MAKE) -f $(ENC_MK) RUBY="$(MINIRUBY)" MINIRUBY="$(MINIRUBY)" $(MFLAGS) srcs
incs: $(INSNS) {$(VPATH)}node_name.inc {$(VPATH)}encdb.h {$(VPATH)}transdb.h {$(VPATH)}known_errors.inc \
- $(srcdir)/revision.h $(REVISION_H)
+ $(srcdir)/revision.h $(REVISION_H) enc/unicode/name2ctype.h
insns: $(INSNS)
+id.h: parse.h $(srcdir)/tool/generic_erb.rb $(srcdir)/template/id.h.tmpl
+ $(ECHO) generating $@
+ $(Q) $(BASERUBY) $(srcdir)/tool/generic_erb.rb --output=$@ \
+ $(srcdir)/template/id.h.tmpl --vpath=$(VPATH) parse.h
+
node_name.inc: {$(VPATH)}node.h
- $(BASERUBY) -n $(srcdir)/tool/node_name.rb $? > $@
+ $(ECHO) generating $@
+ $(Q) $(BASERUBY) -n $(srcdir)/tool/node_name.rb < $? > $@
encdb.h: $(PREP) $(srcdir)/tool/generic_erb.rb $(srcdir)/template/encdb.h.tmpl
- $(MINIRUBY) $(srcdir)/tool/generic_erb.rb -c -o $@ $(srcdir)/template/encdb.h.tmpl $(srcdir)/enc enc
+ $(ECHO) generating $@
+ $(Q) $(MINIRUBY) $(srcdir)/tool/generic_erb.rb -c -o $@ $(srcdir)/template/encdb.h.tmpl $(srcdir)/enc enc
transdb.h: $(PREP) srcs-enc $(srcdir)/tool/generic_erb.rb $(srcdir)/template/transdb.h.tmpl
- $(MINIRUBY) $(srcdir)/tool/generic_erb.rb -c -o $@ $(srcdir)/template/transdb.h.tmpl $(srcdir)/enc/trans enc/trans
+ $(ECHO) generating $@
+ $(Q) $(MINIRUBY) $(srcdir)/tool/generic_erb.rb -c -o $@ $(srcdir)/template/transdb.h.tmpl $(srcdir)/enc/trans enc/trans
known_errors.inc: $(srcdir)/template/known_errors.inc.tmpl $(srcdir)/defs/known_errors.def
- $(BASERUBY) $(srcdir)/tool/generic_erb.rb -c -o $@ $(srcdir)/template/known_errors.inc.tmpl $(srcdir)/defs/known_errors.def
+ $(ECHO) generating $@
+ $(Q) $(BASERUBY) $(srcdir)/tool/generic_erb.rb -c -o $@ $(srcdir)/template/known_errors.inc.tmpl $(srcdir)/defs/known_errors.def
miniprelude.c: $(srcdir)/tool/compile_prelude.rb $(srcdir)/prelude.rb
- $(BASERUBY) -I$(srcdir) $(srcdir)/tool/compile_prelude.rb $(srcdir)/prelude.rb $@
+ $(ECHO) generating $@
+ $(Q) $(BASERUBY) -I$(srcdir) $(srcdir)/tool/compile_prelude.rb $(srcdir)/prelude.rb $@
-prelude.c: $(srcdir)/tool/compile_prelude.rb $(RBCONFIG) $(PRELUDE_SCRIPTS) $(PREP)
- $(COMPILE_PRELUDE) $(PRELUDE_SCRIPTS) $@
+prelude.c: $(srcdir)/tool/compile_prelude.rb $(RBCONFIG) \
+ $(srcdir)/lib/rubygems/defaults.rb $(srcdir)/lib/rubygems/custom_require.rb \
+ $(PRELUDE_SCRIPTS) $(PREP)
+ $(ECHO) generating $@
+ $(Q) $(COMPILE_PRELUDE) $(PRELUDE_SCRIPTS) $@
golf_prelude.c: $(srcdir)/tool/compile_prelude.rb $(RBCONFIG) $(srcdir)/prelude.rb $(srcdir)/golf_prelude.rb $(PREP)
- $(COMPILE_PRELUDE) $(srcdir)/golf_prelude.rb $@
+ $(ECHO) generating $@
+ $(Q) $(COMPILE_PRELUDE) $(srcdir)/golf_prelude.rb $@
-prereq: incs srcs preludes
+prereq: incs srcs preludes PHONY
preludes: {$(VPATH)}miniprelude.c
preludes: {$(srcdir)}golf_prelude.c
@@ -704,8 +850,15 @@ $(REVISION_H): $(srcdir)/version.h $(srcdir)/ChangeLog $(srcdir)/tool/file2lastr
@-$(BASERUBY) $(srcdir)/tool/file2lastrev.rb --revision.h "$(srcdir)" > "$(srcdir)/revision.tmp"
@$(IFCHANGE) "--timestamp=$@" "$(srcdir)/revision.h" "$(srcdir)/revision.tmp"
-$(EXT_SRCS):
- $(CHDIR) $(@D) && $(exec) $(MAKE) -f depend $(MFLAGS) top_srcdir=../.. srcdir=.
+$(srcdir)/ext/ripper/ripper.c: parse.y
+ $(ECHO) generating $@
+ $(Q) $(CHDIR) $(@D) && $(exec) $(MAKE) -f depend $(MFLAGS) \
+ Q=$(Q) ECHO=$(ECHO) top_srcdir=../.. srcdir=. RUBY=$(BASERUBY)
+
+$(srcdir)/ext/json/parser/parser.c: $(srcdir)/ext/json/parser/parser.rl
+ $(ECHO) generating $@
+ $(Q) $(CHDIR) $(@D) && $(exec) $(MAKE) -f prereq.mk $(MFLAGS) \
+ Q=$(Q) ECHO=$(ECHO) top_srcdir=../../.. srcdir=.
##
@@ -744,7 +897,12 @@ run.gdb:
echo '# b rb_longjmp' >> run.gdb
echo source $(srcdir)/breakpoints.gdb >> run.gdb
echo source $(srcdir)/.gdbinit >> run.gdb
+ echo 'set $$_exitcode = -999' >> run.gdb
echo run >> run.gdb
+ echo 'if $$_exitcode != -999' >> run.gdb
+ echo ' quit' >> run.gdb
+ echo end >> run.gdb
+
gdb: miniruby$(EXEEXT) run.gdb PHONY
gdb -x run.gdb --quiet --args $(MINIRUBY) $(TESTRUN_SCRIPT)
@@ -768,26 +926,44 @@ info-libruby_so:
info-arch:
@echo arch=$(arch)
+change: PHONY
+ $(BASERUBY) -C "$(srcdir)" ./tool/change_maker.rb $(CHANGES) > change.log
+
+love: sudo-precheck up all test install test-all
+ @echo love is all you need
+
+sudo-precheck:
+ @$(SUDO) echo > $(NULL)
+
help: PHONY
- @echo " Makefile of Ruby"
- @echo ""
- @echo "targets:"
- @echo " all (default): builds ruby"
- @echo " miniruby: builds only miniruby"
- @echo " run: runs test.rb by miniruby"
- @echo " runruby: runs test.rb by ruby you just built"
- @echo " gdb: runs test.rb by miniruby under gdb"
- @echo " gdb-ruby: runs test.rb by ruby under gdb"
- @echo " all: compile ruby and extensions"
- @echo " check: equals make test test-all"
- @echo " test: ruby core tests"
- @echo " test-all: all ruby tests"
- @echo " test-rubyspec run RubySpec test suite"
- @echo " update-rubyspec update local copy of RubySpec"
- @echo " install: install all ruby distributions"
- @echo " install-nodoc: install without rdoc"
- @echo " clean: clean built objects"
- @echo " golf: for golfers"
- @echo
- @echo "see DeveloperHowto for more detail: "
- @echo " http://redmine.ruby-lang.org/wiki/ruby/DeveloperHowto"
+ $(MESSAGE_BEGIN) \
+ " Makefile of Ruby" \
+ "" \
+ "targets:" \
+ " all (default): builds all of below" \
+ " miniruby: builds only miniruby" \
+ " encs: builds encodings" \
+ " exts: builds extensions" \
+ " main: builds encodings, extensions and ruby" \
+ " docs: builds documents" \
+ " run: runs test.rb by miniruby" \
+ " runruby: runs test.rb by ruby you just built" \
+ " gdb: runs test.rb by miniruby under gdb" \
+ " gdb-ruby: runs test.rb by ruby under gdb" \
+ " check: equals make test test-all" \
+ " test: ruby core tests" \
+ " test-all: all ruby tests" \
+ " test-rubyspec: run RubySpec test suite" \
+ " update-rubyspec: update local copy of RubySpec" \
+ " benchmark: benchmark this ruby and COMPARE_RUBY" \
+ " install: install all ruby distributions" \
+ " install-nodoc: install without rdoc" \
+ " install-cross: install cross compiling staff" \
+ " clean: clean for tarball" \
+ " distclean: clean for repository" \
+ " change: make change log template" \
+ " golf: for golfers" \
+ "" \
+ "see DeveloperHowto for more detail: " \
+ " http://redmine.ruby-lang.org/wiki/ruby/DeveloperHowto" \
+ $(MESSAGE_END)
diff --git a/compar.c b/compar.c
index e8ebfc5bfa..65def78484 100644
--- a/compar.c
+++ b/compar.c
@@ -49,7 +49,7 @@ cmp_failed(void)
/*
* call-seq:
- * obj == other => true or false
+ * obj == other -> true or false
*
* Compares two objects based on the receiver's <code><=></code>
* method, returning true if it returns 0. Also returns true if
@@ -69,7 +69,7 @@ cmp_equal(VALUE x, VALUE y)
/*
* call-seq:
- * obj > other => true or false
+ * obj > other -> true or false
*
* Compares two objects based on the receiver's <code><=></code>
* method, returning true if it returns 1.
@@ -86,7 +86,7 @@ cmp_gt(VALUE x, VALUE y)
/*
* call-seq:
- * obj >= other => true or false
+ * obj >= other -> true or false
*
* Compares two objects based on the receiver's <code><=></code>
* method, returning true if it returns 0 or 1.
@@ -103,7 +103,7 @@ cmp_ge(VALUE x, VALUE y)
/*
* call-seq:
- * obj < other => true or false
+ * obj < other -> true or false
*
* Compares two objects based on the receiver's <code><=></code>
* method, returning true if it returns -1.
@@ -120,7 +120,7 @@ cmp_lt(VALUE x, VALUE y)
/*
* call-seq:
- * obj <= other => true or false
+ * obj <= other -> true or false
*
* Compares two objects based on the receiver's <code><=></code>
* method, returning true if it returns -1 or 0.
@@ -137,7 +137,7 @@ cmp_le(VALUE x, VALUE y)
/*
* call-seq:
- * obj.between?(min, max) => true or false
+ * obj.between?(min, max) -> true or false
*
* Returns <code>false</code> if <i>obj</i> <code><=></code>
* <i>min</i> is less than zero or if <i>anObject</i> <code><=></code>
@@ -163,7 +163,9 @@ cmp_between(VALUE x, VALUE min, VALUE max)
* may be ordered. The class must define the <code><=></code> operator,
* which compares the receiver against another object, returning -1, 0,
* or +1 depending on whether the receiver is less than, equal to, or
- * greater than the other object. <code>Comparable</code> uses
+ * greater than the other object. If the other object is not comparable
+ * then the <code><=></code> operator should return nil.
+ * <code>Comparable</code> uses
* <code><=></code> to implement the conventional comparison operators
* (<code><</code>, <code><=</code>, <code>==</code>, <code>>=</code>,
* and <code>></code>) and the method <code>between?</code>.
diff --git a/compile.c b/compile.c
index eab4333bc0..71059de085 100644
--- a/compile.c
+++ b/compile.c
@@ -10,6 +10,8 @@
**********************************************************************/
#include "ruby/ruby.h"
+#include "internal.h"
+#include <math.h>
#define USE_INSN_STACK_INCREASE 1
#include "vm_core.h"
@@ -18,13 +20,15 @@
#include "insns_info.inc"
#define numberof(array) (int)(sizeof(array) / sizeof((array)[0]))
+#define FIXNUM_INC(n, i) ((n)+(INT2FIX(i)&~FIXNUM_FLAG))
+#define FIXNUM_OR(n, i) ((n)|INT2FIX(i))
typedef struct iseq_link_element {
enum {
- ISEQ_ELEMENT_NONE = INT2FIX(0x00),
- ISEQ_ELEMENT_LABEL = INT2FIX(0x01),
- ISEQ_ELEMENT_INSN = INT2FIX(0x02),
- ISEQ_ELEMENT_ADJUST = INT2FIX(0x03)
+ ISEQ_ELEMENT_NONE,
+ ISEQ_ELEMENT_LABEL,
+ ISEQ_ELEMENT_INSN,
+ ISEQ_ELEMENT_ADJUST
} type;
struct iseq_link_element *next;
struct iseq_link_element *prev;
@@ -47,7 +51,7 @@ typedef struct iseq_label_data {
typedef struct iseq_insn_data {
LINK_ELEMENT link;
enum ruby_vminsn_type insn_id;
- long line_no;
+ int line_no;
int operand_size;
int sc_state;
VALUE *operands;
@@ -56,7 +60,7 @@ typedef struct iseq_insn_data {
typedef struct iseq_adjust_data {
LINK_ELEMENT link;
LABEL *label;
- long line_no;
+ int line_no;
} ADJUST;
struct ensure_range {
@@ -94,36 +98,34 @@ struct iseq_compile_data_ensure_node_stack {
#define compile_debug iseq->compile_data->option->debug_level
#endif
-NORETURN(PRINTF_ARGS(void rb_compile_bug(const char*, int, const char*, ...), 3, 4));
-
#if CPDEBUG
#define compile_debug_print_indent(level) \
- ruby_debug_print_indent(level, compile_debug, gl_node_level * 2)
+ ruby_debug_print_indent((level), compile_debug, gl_node_level * 2)
#define debugp(header, value) (void) \
(compile_debug_print_indent(1) && \
- ruby_debug_print_value(1, compile_debug, header, value))
+ ruby_debug_print_value(1, compile_debug, (header), (value)))
#define debugi(header, id) (void) \
(compile_debug_print_indent(1) && \
- ruby_debug_print_id(1, compile_debug, header, id))
+ ruby_debug_print_id(1, compile_debug, (header), (id)))
#define debugp_param(header, value) (void) \
(compile_debug_print_indent(1) && \
- ruby_debug_print_value(1, compile_debug, header, value))
+ ruby_debug_print_value(1, compile_debug, (header), (value)))
#define debugp_verbose(header, value) (void) \
(compile_debug_print_indent(2) && \
- ruby_debug_print_value(2, compile_debug, header, value))
+ ruby_debug_print_value(2, compile_debug, (header), (value)))
#define debugp_verbose_node(header, value) (void) \
(compile_debug_print_indent(10) && \
- ruby_debug_print_value(10, compile_debug, header, value))
+ ruby_debug_print_value(10, compile_debug, (header), (value)))
#define debug_node_start(node) ((void) \
(compile_debug_print_indent(1) && \
- (ruby_debug_print_node(1, CPDEBUG, "", (NODE *)node), gl_node_level)), \
+ (ruby_debug_print_node(1, CPDEBUG, "", (NODE *)(node)), gl_node_level)), \
gl_node_level++)
#define debug_node_end() gl_node_level --;
@@ -152,9 +154,8 @@ r_value(VALUE value)
#endif
#if CPDEBUG > 1 || CPDEBUG < 0
-PRINTF_ARGS(void ruby_debug_printf(const char*, ...), 1, 2);
#define debugs if (compile_debug_print_indent(1)) ruby_debug_printf
-#define debug_compile(msg, v) ((void)(compile_debug_print_indent(1) && fputs(msg, stderr)), (v))
+#define debug_compile(msg, v) ((void)(compile_debug_print_indent(1) && fputs((msg), stderr)), (v))
#else
#define debugs if(0)printf
#define debug_compile(msg, v) (v)
@@ -162,109 +163,113 @@ PRINTF_ARGS(void ruby_debug_printf(const char*, ...), 1, 2);
/* create new label */
-#define NEW_LABEL(l) new_label_body(iseq, l)
+#define NEW_LABEL(l) new_label_body(iseq, (l))
#define iseq_filename(iseq) \
(((rb_iseq_t*)DATA_PTR(iseq))->filename)
-#define NEW_ISEQVAL(node, name, type) \
- new_child_iseq(iseq, node, name, 0, type)
+#define iseq_filepath(iseq) \
+ (((rb_iseq_t*)DATA_PTR(iseq))->filepath)
-#define NEW_CHILD_ISEQVAL(node, name, type) \
- new_child_iseq(iseq, node, name, iseq->self, type)
+#define NEW_ISEQVAL(node, name, type, line_no) \
+ new_child_iseq(iseq, (node), (name), 0, (type), (line_no))
-#define NEW_SPECIAQL_BLOCK_ISEQVAL(iseq, sym) \
- new_child_iseq(iseq, iseq->node, iseq->name, iseq->parent_iseq, iseq->type, sym)
+#define NEW_CHILD_ISEQVAL(node, name, type, line_no) \
+ new_child_iseq(iseq, (node), (name), iseq->self, (type), (line_no))
/* add instructions */
#define ADD_SEQ(seq1, seq2) \
- APPEND_LIST(seq1, seq2)
+ APPEND_LIST((seq1), (seq2))
/* add an instruction */
#define ADD_INSN(seq, line, insn) \
- ADD_ELEM(seq, (LINK_ELEMENT *) new_insn_body(iseq, line, BIN(insn), 0))
+ ADD_ELEM((seq), (LINK_ELEMENT *) new_insn_body(iseq, (line), BIN(insn), 0))
/* add an instruction with label operand */
#define ADD_INSNL(seq, line, insn, label) \
- ADD_ELEM(seq, (LINK_ELEMENT *) \
- new_insn_body(iseq, line, BIN(insn), 1, (VALUE)label))
+ ADD_ELEM((seq), (LINK_ELEMENT *) \
+ new_insn_body(iseq, (line), BIN(insn), 1, (VALUE)(label)))
/* add an instruction with some operands (1, 2, 3, 5) */
#define ADD_INSN1(seq, line, insn, op1) \
- ADD_ELEM(seq, (LINK_ELEMENT *) \
- new_insn_body(iseq, line, BIN(insn), 1, (VALUE)op1))
+ ADD_ELEM((seq), (LINK_ELEMENT *) \
+ new_insn_body(iseq, (line), BIN(insn), 1, (VALUE)(op1)))
#define ADD_INSN2(seq, line, insn, op1, op2) \
- ADD_ELEM(seq, (LINK_ELEMENT *) \
- new_insn_body(iseq, line, BIN(insn), 2, (VALUE)op1, (VALUE)op2))
+ ADD_ELEM((seq), (LINK_ELEMENT *) \
+ new_insn_body(iseq, (line), BIN(insn), 2, (VALUE)(op1), (VALUE)(op2)))
#define ADD_INSN3(seq, line, insn, op1, op2, op3) \
- ADD_ELEM(seq, (LINK_ELEMENT *) \
- new_insn_body(iseq, line, BIN(insn), 3, (VALUE)op1, (VALUE)op2, (VALUE)op3))
+ ADD_ELEM((seq), (LINK_ELEMENT *) \
+ new_insn_body(iseq, (line), BIN(insn), 3, (VALUE)(op1), (VALUE)(op2), (VALUE)(op3)))
/* Specific Insn factory */
#define ADD_SEND(seq, line, id, argc) \
- ADD_SEND_R(seq, line, id, argc, (VALUE)Qfalse, (VALUE)INT2FIX(0))
+ ADD_SEND_R((seq), (line), (id), (argc), (VALUE)Qfalse, (VALUE)INT2FIX(0))
#define ADD_CALL_RECEIVER(seq, line) \
- ADD_INSN(seq, line, putnil)
+ ADD_INSN((seq), (line), putself)
#define ADD_CALL(seq, line, id, argc) \
- ADD_SEND_R(seq, line, id, argc, (VALUE)Qfalse, (VALUE)INT2FIX(VM_CALL_FCALL_BIT))
+ ADD_SEND_R((seq), (line), (id), (argc), (VALUE)Qfalse, (VALUE)INT2FIX(VM_CALL_FCALL_BIT))
#define ADD_CALL_WITH_BLOCK(seq, line, id, argc, block) \
- ADD_SEND_R(seq, line, id, argc, block, (VALUE)INT2FIX(VM_CALL_FCALL_BIT))
+ ADD_SEND_R((seq), (line), (id), (argc), (block), (VALUE)INT2FIX(VM_CALL_FCALL_BIT))
#define ADD_SEND_R(seq, line, id, argc, block, flag) \
- ADD_ELEM(seq, (LINK_ELEMENT *) \
- new_insn_send(iseq, line, \
- (VALUE)id, (VALUE)argc, (VALUE)block, (VALUE)flag))
+ ADD_ELEM((seq), (LINK_ELEMENT *) \
+ new_insn_send(iseq, (line), \
+ (VALUE)(id), (VALUE)(argc), (VALUE)(block), (VALUE)(flag)))
#define ADD_TRACE(seq, line, event) \
do { \
if ((event) == RUBY_EVENT_LINE && iseq->coverage && \
- RARRAY_PTR(iseq->coverage)[(line) - 1] == Qnil) { \
+ (line) != iseq->compile_data->last_coverable_line) { \
RARRAY_PTR(iseq->coverage)[(line) - 1] = INT2FIX(0); \
- ADD_INSN1(seq, line, trace, INT2FIX(RUBY_EVENT_COVERAGE)); \
+ iseq->compile_data->last_coverable_line = (line); \
+ ADD_INSN1((seq), (line), trace, INT2FIX(RUBY_EVENT_COVERAGE)); \
} \
if (iseq->compile_data->option->trace_instruction) { \
- ADD_INSN1(seq, line, trace, INT2FIX(event)); \
+ ADD_INSN1((seq), (line), trace, INT2FIX(event)); \
} \
}while(0);
/* add label */
#define ADD_LABEL(seq, label) \
- ADD_ELEM(seq, (LINK_ELEMENT *) label)
+ ADD_ELEM((seq), (LINK_ELEMENT *) (label))
+
+#define APPEND_LABEL(seq, before, label) \
+ APPEND_ELEM((seq), (before), (LINK_ELEMENT *) (label))
#define ADD_ADJUST(seq, line, label) \
- ADD_ELEM(seq, (LINK_ELEMENT *) new_adjust_body(iseq, label, line))
+ ADD_ELEM((seq), (LINK_ELEMENT *) new_adjust_body(iseq, (label), (line)))
#define ADD_ADJUST_RESTORE(seq, label) \
- ADD_ELEM(seq, (LINK_ELEMENT *) new_adjust_body(iseq, label, -1))
+ ADD_ELEM((seq), (LINK_ELEMENT *) new_adjust_body(iseq, (label), -1))
#define ADD_CATCH_ENTRY(type, ls, le, iseqv, lc) \
(rb_ary_push(iseq->compile_data->catch_table_ary, \
- rb_ary_new3(5, type, \
+ rb_ary_new3(5, (type), \
(VALUE)(ls) | 1, (VALUE)(le) | 1, \
- iseqv, (VALUE)(lc) | 1)))
+ (iseqv), (VALUE)(lc) | 1)))
/* compile node */
#define COMPILE(anchor, desc, node) \
(debug_compile("== " desc "\n", \
- iseq_compile_each(iseq, anchor, node, 0)))
+ iseq_compile_each(iseq, (anchor), (node), 0)))
-/* compile node, this node's value will be poped */
+/* compile node, this node's value will be popped */
#define COMPILE_POPED(anchor, desc, node) \
(debug_compile("== " desc "\n", \
- iseq_compile_each(iseq, anchor, node, 1)))
+ iseq_compile_each(iseq, (anchor), (node), 1)))
-/* compile node, which is poped when 'poped' is true */
+/* compile node, which is popped when 'poped' is true */
#define COMPILE_(anchor, desc, node, poped) \
(debug_compile("== " desc "\n", \
- iseq_compile_each(iseq, anchor, node, poped)))
+ iseq_compile_each(iseq, (anchor), (node), (poped))))
#define OPERAND_AT(insn, idx) \
- (((INSN*)(insn))->operands[idx])
+ (((INSN*)(insn))->operands[(idx)])
#define INSN_OF(insn) \
(((INSN*)(insn))->insn_id)
@@ -325,11 +330,9 @@ static int insn_data_length(INSN *iobj);
static int insn_data_line_no(INSN *iobj);
static int calc_sp_depth(int depth, INSN *iobj);
-static void ADD_ELEM(ISEQ_ARG_DECLARE LINK_ANCHOR *anchor, LINK_ELEMENT *elem);
-
-static INSN *new_insn_body(rb_iseq_t *iseq, long line_no, int insn_id, int argc, ...);
+static INSN *new_insn_body(rb_iseq_t *iseq, int line_no, int insn_id, int argc, ...);
static LABEL *new_label_body(rb_iseq_t *iseq, long line);
-static ADJUST *new_adjust_body(rb_iseq_t *iseq, LABEL *label, long line);
+static ADJUST *new_adjust_body(rb_iseq_t *iseq, LABEL *label, int line);
static int iseq_compile_each(rb_iseq_t *iseq, LINK_ANCHOR *anchor, NODE * n, int);
static int iseq_setup(rb_iseq_t *iseq, LINK_ANCHOR *anchor);
@@ -378,7 +381,7 @@ verify_list(ISEQ_ARG_DECLARE const char *info, LINK_ANCHOR *anchor)
#endif
}
#if CPDEBUG < 0
-#define verify_list(info, anchor) verify_list(iseq, info, anchor)
+#define verify_list(info, anchor) verify_list(iseq, (info), (anchor))
#endif
/*
@@ -392,8 +395,23 @@ ADD_ELEM(ISEQ_ARG_DECLARE LINK_ANCHOR *anchor, LINK_ELEMENT *elem)
anchor->last = elem;
verify_list("add", anchor);
}
+
+/*
+ * elem1, before, elem2 => elem1, before, elem, elem2
+ */
+static void
+APPEND_ELEM(ISEQ_ARG_DECLARE LINK_ANCHOR *anchor, LINK_ELEMENT *before, LINK_ELEMENT *elem)
+{
+ elem->prev = before;
+ elem->next = before->next;
+ elem->next->prev = elem;
+ before->next = elem;
+ if (before == anchor->last) anchor->last = elem;
+ verify_list("add", anchor);
+}
#if CPDEBUG < 0
-#define ADD_ELEM(anchor, elem) ADD_ELEM(iseq, anchor, elem)
+#define ADD_ELEM(anchor, elem) ADD_ELEM(iseq, (anchor), (elem))
+#define APPEND_ELEM(anchor, before, elem) ADD_ELEM(iseq, (anchor), (before), (elem))
#endif
static int
@@ -416,6 +434,30 @@ iseq_add_mark_object_compile_time(rb_iseq_t *iseq, VALUE v)
return COMPILE_OK;
}
+static int
+validate_label(st_data_t name, st_data_t label, st_data_t arg)
+{
+ rb_iseq_t *iseq = (rb_iseq_t *)arg;
+ LABEL *lobj = (LABEL *)label;
+ if (!lobj->link.next) {
+ do {
+ int ret;
+ COMPILE_ERROR((ruby_sourcefile, lobj->position,
+ "%s: undefined label", rb_id2name((ID)name)));
+ } while (0);
+ }
+ return ST_CONTINUE;
+}
+
+static void
+validate_labels(rb_iseq_t *iseq, st_table *labels_table)
+{
+ st_foreach(labels_table, validate_label, (st_data_t)iseq);
+ if (!NIL_P(iseq->compile_data->err_info)) {
+ rb_exc_raise(iseq->compile_data->err_info);
+ }
+}
+
VALUE
rb_iseq_compile_node(VALUE self, NODE *node)
{
@@ -448,13 +490,13 @@ rb_iseq_compile_node(VALUE self, NODE *node)
break;
}
case ISEQ_TYPE_CLASS: {
- ADD_TRACE(ret, nd_line(node), RUBY_EVENT_CLASS);
+ ADD_TRACE(ret, FIX2INT(iseq->line_no), RUBY_EVENT_CLASS);
COMPILE(ret, "scoped node", node->nd_body);
ADD_TRACE(ret, nd_line(node), RUBY_EVENT_END);
break;
}
case ISEQ_TYPE_METHOD: {
- ADD_TRACE(ret, nd_line(node), RUBY_EVENT_CALL);
+ ADD_TRACE(ret, FIX2INT(iseq->line_no), RUBY_EVENT_CALL);
COMPILE(ret, "scoped node", node->nd_body);
ADD_TRACE(ret, nd_line(node), RUBY_EVENT_RETURN);
break;
@@ -501,6 +543,11 @@ rb_iseq_compile_node(VALUE self, NODE *node)
ADD_INSN(ret, iseq->compile_data->last_line, leave);
}
+#if SUPPORT_JOKE
+ if (iseq->compile_data->labels_table) {
+ validate_labels(iseq, iseq->compile_data->labels_table);
+ }
+#endif
return iseq_setup(iseq, ret);
}
@@ -508,19 +555,14 @@ int
rb_iseq_translate_threaded_code(rb_iseq_t *iseq)
{
#if OPT_DIRECT_THREADED_CODE || OPT_CALL_THREADED_CODE
- extern const void **rb_vm_get_insns_address_table(void);
-#if OPT_DIRECT_THREADED_CODE
- const void * const *table = rb_vm_get_insns_address_table();
-#else
const void * const *table = rb_vm_get_insns_address_table();
-#endif
unsigned long i;
iseq->iseq_encoded = ALLOC_N(VALUE, iseq->iseq_size);
MEMCPY(iseq->iseq_encoded, iseq->iseq, VALUE, iseq->iseq_size);
for (i = 0; i < iseq->iseq_size; /* */ ) {
- int insn = iseq->iseq_encoded[i];
+ int insn = (int)iseq->iseq_encoded[i];
int len = insn_len(insn);
iseq->iseq_encoded[i] = (VALUE)table[insn];
i += len;
@@ -662,7 +704,7 @@ POP_ELEMENT(ISEQ_ARG_DECLARE LINK_ANCHOR *anchor)
return elem;
}
#if CPDEBUG < 0
-#define POP_ELEMENT(anchor) POP_ELEMENT(iseq, anchor)
+#define POP_ELEMENT(anchor) POP_ELEMENT(iseq, (anchor))
#endif
#if 0 /* unused */
@@ -720,7 +762,7 @@ APPEND_LIST(ISEQ_ARG_DECLARE LINK_ANCHOR *anc1, LINK_ANCHOR *anc2)
verify_list("append", anc1);
}
#if CPDEBUG < 0
-#define APPEND_LIST(anc1, anc2) APPEND_LIST(iseq, anc1, anc2)
+#define APPEND_LIST(anc1, anc2) APPEND_LIST(iseq, (anc1), (anc2))
#endif
/*
@@ -749,7 +791,7 @@ INSERT_LIST(ISEQ_ARG_DECLARE LINK_ANCHOR *anc1, LINK_ANCHOR *anc2)
verify_list("append", anc1);
}
#if CPDEBUG < 0
-#define INSERT_LIST(anc1, anc2) INSERT_LIST(iseq, anc1, anc2)
+#define INSERT_LIST(anc1, anc2) INSERT_LIST(iseq, (anc1), (anc2))
#endif
#if 0 /* unused */
@@ -773,7 +815,7 @@ SWAP_LIST(ISEQ_ARG_DECLARE LINK_ANCHOR *anc1, LINK_ANCHOR *anc2)
verify_list("swap2", anc2);
}
#if CPDEBUG < 0
-#define SWAP_LIST(anc1, anc2) SWAP_LIST(iseq, anc1, anc2)
+#define SWAP_LIST(anc1, anc2) SWAP_LIST(iseq, (anc1), (anc2))
#endif
static LINK_ANCHOR *
@@ -807,7 +849,7 @@ REVERSE_LIST(ISEQ_ARG_DECLARE LINK_ANCHOR *anc)
return anc;
}
#if CPDEBUG < 0
-#define REVERSE_LIST(anc) REVERSE_LIST(iseq, anc)
+#define REVERSE_LIST(anc) REVERSE_LIST(iseq, (anc))
#endif
#endif
@@ -830,7 +872,7 @@ debug_list(ISEQ_ARG_DECLARE LINK_ANCHOR *anchor)
verify_list("debug list", anchor);
}
#if CPDEBUG < 0
-#define debug_list(anc) debug_list(iseq, anc)
+#define debug_list(anc) debug_list(iseq, (anc))
#endif
#endif
@@ -849,7 +891,7 @@ new_label_body(rb_iseq_t *iseq, long line)
}
static ADJUST *
-new_adjust_body(rb_iseq_t *iseq, LABEL *label, long line)
+new_adjust_body(rb_iseq_t *iseq, LABEL *label, int line)
{
ADJUST *adjust = compile_data_alloc_adjust(iseq);
adjust->link.type = ISEQ_ELEMENT_ADJUST;
@@ -860,10 +902,11 @@ new_adjust_body(rb_iseq_t *iseq, LABEL *label, long line)
}
static INSN *
-new_insn_core(rb_iseq_t *iseq, long line_no,
+new_insn_core(rb_iseq_t *iseq, int line_no,
int insn_id, int argc, VALUE *argv)
{
INSN *iobj = compile_data_alloc_insn(iseq);
+ /* printf("insn_id: %d, line: %d\n", insn_id, line_no); */
iobj->link.type = ISEQ_ELEMENT_INSN;
iobj->link.next = 0;
@@ -876,7 +919,7 @@ new_insn_core(rb_iseq_t *iseq, long line_no,
}
static INSN *
-new_insn_body(rb_iseq_t *iseq, long line_no, int insn_id, int argc, ...)
+new_insn_body(rb_iseq_t *iseq, int line_no, int insn_id, int argc, ...)
{
VALUE *operands = 0;
va_list argv;
@@ -904,19 +947,19 @@ new_insn_send(rb_iseq_t *iseq, int line_no,
operands[1] = argc;
operands[2] = block;
operands[3] = flag;
- operands[4] = 0;
+ operands[4] = INT2FIX(iseq->ic_size++);
iobj = new_insn_core(iseq, line_no, BIN(send), 5, operands);
return iobj;
}
static VALUE
new_child_iseq(rb_iseq_t *iseq, NODE *node,
- VALUE name, VALUE parent, VALUE type)
+ VALUE name, VALUE parent, enum iseq_type type, int line_no)
{
VALUE ret;
debugs("[new_child_iseq]> ---------------------------------------\n");
- ret = rb_iseq_new_with_opt(node, name, iseq_filename(iseq->self),
+ ret = rb_iseq_new_with_opt(node, name, iseq_filename(iseq->self), iseq_filepath(iseq->self), INT2FIX(line_no),
parent, type, iseq->compile_data->option);
debugs("[new_child_iseq]< ---------------------------------------\n");
iseq_add_mark_object(iseq, ret);
@@ -981,7 +1024,7 @@ iseq_set_exception_local_table(rb_iseq_t *iseq)
ID id_dollar_bang;
CONST_ID(id_dollar_bang, "#$!");
- iseq->local_table = (ID *)ALLOC_N(ID *, 1);
+ iseq->local_table = (ID *)ALLOC_N(ID, 1);
iseq->local_table_size = 1;
iseq->local_size = iseq->local_table_size + 1;
iseq->local_table[0] = id_dollar_bang;
@@ -1055,7 +1098,7 @@ iseq_set_arguments(rb_iseq_t *iseq, LINK_ANCHOR *optargs, NODE *node_args)
}
/*
- * new argument infromation:
+ * new argument information:
* NODE_ARGS [m: int, o: NODE_OPT_ARG, ->]
* NODE_ARGS_AUX [r: ID, b: ID, ->]
* NODE_ARGS_AUX [Pst: id, Plen: int, init: NODE*]
@@ -1066,7 +1109,7 @@ iseq_set_arguments(rb_iseq_t *iseq, LINK_ANCHOR *optargs, NODE *node_args)
* if "r" is 1, it's means "{|x,|}" type block parameter.
*/
- iseq->argc = node_args->nd_frml;
+ iseq->argc = (int)node_args->nd_frml;
debugs(" - argc: %d\n", iseq->argc);
if (node_aux) {
@@ -1081,7 +1124,7 @@ iseq_set_arguments(rb_iseq_t *iseq, LINK_ANCHOR *optargs, NODE *node_args)
if (node_aux) {
ID post_start_id = node_aux->nd_pid;
iseq->arg_post_start = get_dyna_var_idx_at_raw(iseq, post_start_id);
- iseq->arg_post_len = node_aux->nd_plen;
+ iseq->arg_post_len = (int)node_aux->nd_plen;
node_init = node_aux->nd_next;
}
}
@@ -1089,7 +1132,7 @@ iseq_set_arguments(rb_iseq_t *iseq, LINK_ANCHOR *optargs, NODE *node_args)
if (node_opt) {
NODE *node = node_opt;
LABEL *label;
- VALUE labels = rb_ary_new();
+ VALUE labels = rb_ary_tmp_new(1);
int i = 0, j;
while (node) {
@@ -1113,6 +1156,7 @@ iseq_set_arguments(rb_iseq_t *iseq, LINK_ANCHOR *optargs, NODE *node_args)
for (j = 0; j < i; j++) {
iseq->arg_opt_table[j] &= ~1;
}
+ rb_ary_clear(labels);
}
else {
iseq->arg_opts = 0;
@@ -1191,7 +1235,7 @@ iseq_set_local_table(rb_iseq_t *iseq, ID *tbl)
int size;
if (tbl) {
- size = *tbl;
+ size = (int)*tbl;
tbl++;
}
else {
@@ -1199,8 +1243,8 @@ iseq_set_local_table(rb_iseq_t *iseq, ID *tbl)
}
if (size > 0) {
- iseq->local_table = (ID *)ALLOC_N(ID *, size);
- MEMCPY(iseq->local_table, tbl, ID *, size);
+ iseq->local_table = (ID *)ALLOC_N(ID, size);
+ MEMCPY(iseq->local_table, tbl, ID, size);
}
iseq->local_size = iseq->local_table_size = size;
@@ -1233,14 +1277,14 @@ cdhash_cmp(VALUE val, VALUE lit)
return !rb_eql(lit, val);
}
-static int
+static st_index_t
cdhash_hash(VALUE a)
{
- if (SPECIAL_CONST_P(a)) return (int)a;
+ if (SPECIAL_CONST_P(a)) return (st_index_t)a;
if (TYPE(a) == T_STRING) return rb_str_hash(a);
{
VALUE hval = rb_hash(a);
- return (int)FIX2LONG(hval);
+ return (st_index_t)FIX2LONG(hval);
}
}
@@ -1250,7 +1294,7 @@ static const struct st_hash_type cdhash_type = {
};
/**
- ruby insn object array -> raw instruction sequence
+ ruby insn object list -> raw instruction sequence
*/
static int
iseq_set_sequence(rb_iseq_t *iseq, LINK_ANCHOR *anchor)
@@ -1280,7 +1324,7 @@ iseq_set_sequence(rb_iseq_t *iseq, LINK_ANCHOR *anchor)
{
lobj = (LABEL *)list;
lobj->position = pos;
- lobj->set = Qtrue;
+ lobj->set = TRUE;
break;
}
case ISEQ_ELEMENT_NONE:
@@ -1310,6 +1354,8 @@ iseq_set_sequence(rb_iseq_t *iseq, LINK_ANCHOR *anchor)
/* make instruction sequence */
generated_iseq = ALLOC_N(VALUE, pos);
insn_info_table = ALLOC_N(struct iseq_insn_info_entry, k);
+ iseq->ic_entries = ALLOC_N(struct iseq_inline_cache_entry, iseq->ic_size);
+ MEMZERO(iseq->ic_entries, struct iseq_inline_cache_entry, iseq->ic_size);
list = FIRST_ELEMENT(anchor);
k = pos = sp = 0;
@@ -1331,7 +1377,6 @@ iseq_set_sequence(rb_iseq_t *iseq, LINK_ANCHOR *anchor)
}
/* fprintf(stderr, "insn: %-16s, sp: %d\n", insn_name(iobj->insn_id), sp); */
-
operands = iobj->operands;
insn = iobj->insn_id;
generated_iseq[pos] = insn;
@@ -1340,6 +1385,7 @@ iseq_set_sequence(rb_iseq_t *iseq, LINK_ANCHOR *anchor)
/* operand check */
if (iobj->operand_size != len - 1) {
+ /* printf("operand size miss! (%d, %d)\n", iobj->operand_size, len); */
dump_disasm_list(list);
rb_compile_error(RSTRING_PTR(iseq->filename), iobj->line_no,
"operand size miss! (%d for %d)",
@@ -1357,7 +1403,7 @@ iseq_set_sequence(rb_iseq_t *iseq, LINK_ANCHOR *anchor)
{
/* label(destination position) */
lobj = (LABEL *)operands[j];
- if (lobj->set != Qtrue) {
+ if (!lobj->set) {
rb_compile_error(RSTRING_PTR(iseq->filename), iobj->line_no,
"unknown label");
}
@@ -1383,7 +1429,7 @@ iseq_set_sequence(rb_iseq_t *iseq, LINK_ANCHOR *anchor)
VALUE lv = rb_ary_entry(lits, i+1);
lobj = (LABEL *)(lv & ~1);
- if (lobj->set != Qtrue) {
+ if (!lobj->set) {
rb_compile_error(RSTRING_PTR(iseq->filename), iobj->line_no,
"unknown label");
}
@@ -1425,9 +1471,13 @@ iseq_set_sequence(rb_iseq_t *iseq, LINK_ANCHOR *anchor)
}
case TS_IC: /* inline cache */
{
- VALUE v = (VALUE)NEW_INLINE_CACHE_ENTRY();
- generated_iseq[pos + 1 + j] = v;
- iseq_add_mark_object(iseq, v);
+ int ic_index = FIX2INT(operands[j]);
+ IC ic = &iseq->ic_entries[ic_index];
+ if (UNLIKELY(ic_index >= iseq->ic_size)) {
+ rb_bug("iseq_set_sequence: ic_index overflow: index: %d, size: %d",
+ ic_index, iseq->ic_size);
+ }
+ generated_iseq[pos + 1 + j] = (VALUE)ic;
break;
}
case TS_ID: /* ID */
@@ -1435,8 +1485,8 @@ iseq_set_sequence(rb_iseq_t *iseq, LINK_ANCHOR *anchor)
break;
case TS_GENTRY:
{
- struct global_entry *entry =
- (struct global_entry *)(operands[j] & (~1));
+ struct rb_global_entry *entry =
+ (struct rb_global_entry *)(operands[j] & (~1));
generated_iseq[pos + 1 + j] = (VALUE)entry;
}
break;
@@ -1544,7 +1594,7 @@ iseq_set_exception_table(rb_iseq_t *iseq)
int tlen, i;
struct iseq_catch_table_entry *entry;
- tlen = RARRAY_LEN(iseq->compile_data->catch_table_ary);
+ tlen = (int)RARRAY_LEN(iseq->compile_data->catch_table_ary);
tptr = RARRAY_PTR(iseq->compile_data->catch_table_ary);
iseq->catch_table = tlen ? ALLOC_N(struct iseq_catch_table_entry, tlen) : 0;
@@ -1553,7 +1603,7 @@ iseq_set_exception_table(rb_iseq_t *iseq)
for (i = 0; i < tlen; i++) {
ptr = RARRAY_PTR(tptr[i]);
entry = &iseq->catch_table[i];
- entry->type = ptr[0] & 0xffff;
+ entry->type = (enum catch_type)(ptr[0] & 0xffff);
entry->start = label_get_position((LABEL *)(ptr[1] & ~1));
entry->end = label_get_position((LABEL *)(ptr[2] & ~1));
entry->iseq = ptr[3];
@@ -1763,36 +1813,32 @@ iseq_peephole_optimize(rb_iseq_t *iseq, LINK_ELEMENT *list, const int do_tailcal
if (piobj->insn_id == BIN(send) &&
piobj->operands[2] == 0 /* block */
) {
- piobj->operands[3] = INT2FIX(FIX2INT(piobj->operands[3]) | VM_CALL_TAILCALL_BIT);
+ piobj->operands[3] = FIXNUM_OR(piobj->operands[3], VM_CALL_TAILCALL_BIT);
}
}
return COMPILE_OK;
}
static int
-insn_set_specialized_instruction(INSN *iobj, int insn_id)
+insn_set_specialized_instruction(rb_iseq_t *iseq, INSN *iobj, int insn_id)
{
- iobj->insn_id = insn_id;
- iobj->operand_size = 0;
- return COMPILE_OK;
-}
+ int i, old_opsize = iobj->operand_size;
-static int
-insn_set_specialized_instruction_with_ic(INSN *iobj, int insn_id, int n)
-{
- int i;
iobj->insn_id = insn_id;
- iobj->operand_size = n;
+ iobj->operand_size = insn_len(insn_id) - 1;
+ /* printf("iobj->operand_size: %d\n", iobj->operand_size); */
- /* max of n is 4 */
- for (i=0; i<n; i++) {
- iobj->operands[i] = Qnil;
+ if (iobj->operand_size > old_opsize) {
+ iobj->operands = (VALUE *)compile_data_alloc(iseq, iobj->operand_size);
+ }
+
+ for (i=0; i<iobj->operand_size; i++) {
+ iobj->operands[i] = INT2FIX(iseq->ic_size++);
}
return COMPILE_OK;
}
-
static int
iseq_specialized_instruction(rb_iseq_t *iseq, INSN *iobj)
{
@@ -1806,65 +1852,62 @@ iseq_specialized_instruction(rb_iseq_t *iseq, INSN *iobj)
if (block == 0 && flag == INT2FIX(0)) {
if (argc == 0) {
if (mid == idLength) {
- insn_set_specialized_instruction(iobj, BIN(opt_length));
+ insn_set_specialized_instruction(iseq, iobj, BIN(opt_length));
+ }
+ else if (mid == idSize) {
+ insn_set_specialized_instruction(iseq, iobj, BIN(opt_size));
}
else if (mid == idSucc) {
- insn_set_specialized_instruction(iobj, BIN(opt_succ));
+ insn_set_specialized_instruction(iseq, iobj, BIN(opt_succ));
}
else if (mid == idNot) {
- insn_set_specialized_instruction_with_ic(iobj, BIN(opt_not), 1);
+ insn_set_specialized_instruction(iseq, iobj, BIN(opt_not));
}
}
else if (argc == 1) {
if (0) {
}
else if (mid == idPLUS) {
- insn_set_specialized_instruction(iobj, BIN(opt_plus));
+ insn_set_specialized_instruction(iseq, iobj, BIN(opt_plus));
}
else if (mid == idMINUS) {
- insn_set_specialized_instruction(iobj, BIN(opt_minus));
+ insn_set_specialized_instruction(iseq, iobj, BIN(opt_minus));
}
else if (mid == idMULT) {
- insn_set_specialized_instruction(iobj, BIN(opt_mult));
+ insn_set_specialized_instruction(iseq, iobj, BIN(opt_mult));
}
else if (mid == idDIV) {
- insn_set_specialized_instruction(iobj, BIN(opt_div));
+ insn_set_specialized_instruction(iseq, iobj, BIN(opt_div));
}
else if (mid == idMOD) {
- insn_set_specialized_instruction(iobj, BIN(opt_mod));
+ insn_set_specialized_instruction(iseq, iobj, BIN(opt_mod));
}
else if (mid == idEq) {
- insn_set_specialized_instruction_with_ic(iobj, BIN(opt_eq), 1);
+ insn_set_specialized_instruction(iseq, iobj, BIN(opt_eq));
}
else if (mid == idNeq) {
- insn_set_specialized_instruction_with_ic(iobj, BIN(opt_neq), 2);
+ insn_set_specialized_instruction(iseq, iobj, BIN(opt_neq));
}
else if (mid == idLT) {
- insn_set_specialized_instruction(iobj, BIN(opt_lt));
+ insn_set_specialized_instruction(iseq, iobj, BIN(opt_lt));
}
else if (mid == idLE) {
- insn_set_specialized_instruction(iobj, BIN(opt_le));
+ insn_set_specialized_instruction(iseq, iobj, BIN(opt_le));
}
else if (mid == idGT) {
- insn_set_specialized_instruction(iobj, BIN(opt_gt));
+ insn_set_specialized_instruction(iseq, iobj, BIN(opt_gt));
}
else if (mid == idGE) {
- insn_set_specialized_instruction(iobj, BIN(opt_ge));
+ insn_set_specialized_instruction(iseq, iobj, BIN(opt_ge));
}
else if (mid == idLTLT) {
- insn_set_specialized_instruction(iobj, BIN(opt_ltlt));
+ insn_set_specialized_instruction(iseq, iobj, BIN(opt_ltlt));
}
else if (mid == idAREF) {
- insn_set_specialized_instruction(iobj, BIN(opt_aref));
+ insn_set_specialized_instruction(iseq, iobj, BIN(opt_aref));
}
}
}
-
- if (argc > 0) {
- if (mid == idSend || mid == id__send__ ) {
- OPERAND_AT(iobj, 3) |= INT2FIX(VM_CALL_SEND_BIT);
- }
- }
}
return COMPILE_OK;
}
@@ -1943,7 +1986,8 @@ iseq_insns_unification(rb_iseq_t *iseq, LINK_ANCHOR *anchor)
#if OPT_INSTRUCTIONS_UNIFICATION
LINK_ELEMENT *list;
INSN *iobj, *niobj;
- int id, j, k;
+ int id, k;
+ intptr_t j;
list = FIRST_ELEMENT(anchor);
while (list) {
@@ -1952,7 +1996,7 @@ iseq_insns_unification(rb_iseq_t *iseq, LINK_ANCHOR *anchor)
id = iobj->insn_id;
if (unified_insns_data[id] != 0) {
const int *const *entry = unified_insns_data[id];
- for (j = 1; j < (int)entry[0]; j++) {
+ for (j = 1; j < (intptr_t)entry[0]; j++) {
const int *unified = entry[j];
LINK_ELEMENT *li = list->next;
for (k = 2; k < unified[1]; k++) {
@@ -1990,7 +2034,7 @@ iseq_insns_unification(rb_iseq_t *iseq, LINK_ANCHOR *anchor)
#if OPT_STACK_CACHING
#define SC_INSN(insn, stat) sc_insn_info[(insn)][(stat)]
-#define SC_NEXT(insn) sc_insn_next[insn]
+#define SC_NEXT(insn) sc_insn_next[(insn)]
#include "opt_sc.inc"
@@ -2153,11 +2197,14 @@ compile_dstr_fragments(rb_iseq_t *iseq, LINK_ANCHOR *ret, NODE * node, int *cntp
{
NODE *list = node->nd_next;
VALUE lit = node->nd_lit;
- int cnt = 1;
+ int cnt = 0;
debugp_param("nd_lit", lit);
- hide_obj(lit);
- ADD_INSN1(ret, nd_line(node), putobject, lit);
+ if (!NIL_P(lit)) {
+ hide_obj(lit);
+ cnt++;
+ ADD_INSN1(ret, nd_line(node), putobject, lit);
+ }
while (list) {
COMPILE(ret, "each string", list->nd_head);
@@ -2215,12 +2262,12 @@ compile_branch_condition(rb_iseq_t *iseq, LINK_ANCHOR *ret, NODE * cond,
case NODE_LIT: /* NODE_LIT is always not true */
case NODE_TRUE:
case NODE_STR:
- /* printf("useless conditon eliminate (%s)\n", ruby_node_name(nd_type(cond))); */
+ /* printf("useless condition eliminate (%s)\n", ruby_node_name(nd_type(cond))); */
ADD_INSNL(ret, nd_line(cond), jump, then_label);
break;
case NODE_FALSE:
case NODE_NIL:
- /* printf("useless conditon eliminate (%s)\n", ruby_node_name(nd_type(cond))); */
+ /* printf("useless condition eliminate (%s)\n", ruby_node_name(nd_type(cond))); */
ADD_INSNL(ret, nd_line(cond), jump, else_label);
break;
default:
@@ -2237,7 +2284,7 @@ compile_array_(rb_iseq_t *iseq, LINK_ANCHOR *ret, NODE* node_root,
VALUE opt_p, int poped)
{
NODE *node = node_root;
- int len = node->nd_alen, line = nd_line(node), i=0;
+ int len = (int)node->nd_alen, line = (int)nd_line(node), i=0;
DECL_ANCHOR(anchor);
INIT_ANCHOR(anchor);
@@ -2299,6 +2346,11 @@ case_when_optimizable_literal(NODE * node)
switch (nd_type(node)) {
case NODE_LIT: {
VALUE v = node->nd_lit;
+ double ival;
+ if (TYPE(v) == T_FLOAT &&
+ modf(RFLOAT_VALUE(v), &ival) == 0.0) {
+ return FIXABLE(ival) ? LONG2FIX((long)ival) : rb_dbl2big(ival);
+ }
if (SYMBOL_P(v) || rb_obj_is_kind_of(v, rb_cNumeric)) {
return v;
}
@@ -2328,7 +2380,14 @@ when_vals(rb_iseq_t *iseq, LINK_ANCHOR *cond_seq, NODE *vals, LABEL *l1, VALUE s
special_literals = Qfalse;
}
- COMPILE(cond_seq, "when cond", val);
+ if (nd_type(val) == NODE_STR) {
+ debugp_param("nd_lit", val->nd_lit);
+ OBJ_FREEZE(val->nd_lit);
+ ADD_INSN1(cond_seq, nd_line(val), putobject, val->nd_lit);
+ }
+ else {
+ COMPILE(cond_seq, "when cond", val);
+ }
ADD_INSN1(cond_seq, nd_line(val), topn, INT2FIX(1));
ADD_SEND(cond_seq, nd_line(val), ID2SYM(idEqq), INT2FIX(1));
ADD_INSNL(cond_seq, nd_line(val), branchif, l1);
@@ -2350,7 +2409,7 @@ compile_massign_lhs(rb_iseq_t *iseq, LINK_ANCHOR *ret, NODE *node)
iobj = (INSN *)POP_ELEMENT(ret); /* pop send insn */
dupidx = iobj->operands[1];
- dupidx = INT2FIX(FIX2INT(dupidx) + 1);
+ dupidx = FIXNUM_INC(dupidx, 1);
iobj->operands[1] = dupidx;
ADD_INSN1(ret, nd_line(node), topn, dupidx);
@@ -2434,7 +2493,7 @@ compile_massign_opt(rb_iseq_t *iseq, LINK_ANCHOR *ret,
while (rhsn) {
if (llen <= rlen) {
- COMPILE_POPED(ret, "masgn val (poped)", rhsn->nd_head);
+ COMPILE_POPED(ret, "masgn val (popped)", rhsn->nd_head);
}
else {
COMPILE(ret, "masgn val", rhsn->nd_head);
@@ -2488,7 +2547,7 @@ compile_massign(rb_iseq_t *iseq, LINK_ANCHOR *ret, NODE *node, int poped)
/*a, b, *r, p1, p2 */
NODE *postn = splatn->nd_2nd;
NODE *restn = splatn->nd_1st;
- int num = postn->nd_alen;
+ int num = (int)postn->nd_alen;
int flag = 0x02 | (((VALUE)restn == (VALUE)-1) ? 0x00 : 0x01);
ADD_INSN2(ret, nd_line(splatn), expandarray,
@@ -2553,11 +2612,13 @@ compile_cpath(LINK_ANCHOR *ret, rb_iseq_t *iseq, NODE *cpath)
}
else {
/* class at cbase Foo */
- ADD_INSN1(ret, nd_line(cpath), putspecialobject, INT2FIX(VM_SPECIAL_OBJECT_CBASE));
+ ADD_INSN1(ret, nd_line(cpath), putspecialobject,
+ INT2FIX(VM_SPECIAL_OBJECT_CONST_BASE));
return Qtrue;
}
}
+#define defined_expr defined_expr0
static int
defined_expr(rb_iseq_t *iseq, LINK_ANCHOR *ret,
NODE *node, LABEL **lfinish, VALUE needstr)
@@ -2617,7 +2678,7 @@ defined_expr(rb_iseq_t *iseq, LINK_ANCHOR *ret,
case NODE_GVAR:
ADD_INSN(ret, nd_line(node), putnil);
ADD_INSN3(ret, nd_line(node), defined, INT2FIX(DEFINED_GVAR),
- ((VALUE)node->nd_entry) | 1, needstr);
+ ID2SYM(node->nd_entry->id), needstr);
return 1;
case NODE_CVAR:
@@ -2660,13 +2721,13 @@ defined_expr(rb_iseq_t *iseq, LINK_ANCHOR *ret,
case NODE_VCALL:
case NODE_FCALL:
case NODE_ATTRASGN:{
- int self = Qtrue;
+ int self = TRUE;
switch (type) {
case NODE_ATTRASGN:
if (node->nd_recv == (NODE *)1) break;
case NODE_CALL:
- self = Qfalse;
+ self = FALSE;
break;
default:
/* through */;
@@ -2679,21 +2740,9 @@ defined_expr(rb_iseq_t *iseq, LINK_ANCHOR *ret,
ADD_INSNL(ret, nd_line(node), branchunless, lfinish[1]);
}
if (!self) {
- LABEL *lstart = NEW_LABEL(nd_line(node));
- LABEL *lend = NEW_LABEL(nd_line(node));
- VALUE rescue = NEW_CHILD_ISEQVAL(NEW_NIL(),
- rb_str_concat(rb_str_new2
- ("defined guard in "),
- iseq->name),
- ISEQ_TYPE_DEFINED_GUARD);
-
defined_expr(iseq, ret, node->nd_recv, lfinish, Qfalse);
ADD_INSNL(ret, nd_line(node), branchunless, lfinish[1]);
-
- ADD_LABEL(ret, lstart);
COMPILE(ret, "defined/recv", node->nd_recv);
- ADD_LABEL(ret, lend);
- ADD_CATCH_ENTRY(CATCH_TYPE_RESCUE, lstart, lend, rescue, lfinish[1]);
ADD_INSN3(ret, nd_line(node), defined, INT2FIX(DEFINED_METHOD),
ID2SYM(node->nd_mid), needstr);
}
@@ -2757,6 +2806,29 @@ defined_expr(rb_iseq_t *iseq, LINK_ANCHOR *ret,
}
return 0;
}
+#undef defined_expr
+
+static int
+defined_expr(rb_iseq_t *iseq, LINK_ANCHOR *ret,
+ NODE *node, LABEL **lfinish, VALUE needstr)
+{
+ LINK_ELEMENT *lcur = ret->last;
+ int done = defined_expr0(iseq, ret, node, lfinish, needstr);
+ if (lfinish[1]) {
+ int line = nd_line(node);
+ LABEL *lstart = NEW_LABEL(line);
+ LABEL *lend = NEW_LABEL(line);
+ VALUE rescue = NEW_CHILD_ISEQVAL(NEW_NIL(),
+ rb_str_concat(rb_str_new2
+ ("defined guard in "),
+ iseq->name),
+ ISEQ_TYPE_DEFINED_GUARD, 0);
+ APPEND_LABEL(ret, lcur, lstart);
+ ADD_LABEL(ret, lend);
+ ADD_CATCH_ENTRY(CATCH_TYPE_RESCUE, lstart, lend, rescue, lfinish[1]);
+ }
+ return done;
+}
#define BUFSIZE 0x100
@@ -2848,7 +2920,7 @@ add_ensure_iseq(LINK_ANCHOR *ret, rb_iseq_t *iseq, int is_return)
}
static VALUE
-setup_args(rb_iseq_t *iseq, LINK_ANCHOR *args, NODE *argn, unsigned long *flag)
+setup_args(rb_iseq_t *iseq, LINK_ANCHOR *args, NODE *argn, VALUE *flag)
{
VALUE argc = INT2FIX(0);
int nsplat = 0;
@@ -2954,7 +3026,7 @@ iseq_compile_each(rb_iseq_t *iseq, LINK_ANCHOR *ret, NODE * node, int poped)
return COMPILE_OK;
}
- iseq->compile_data->last_line = nd_line(node);
+ iseq->compile_data->last_line = (int)nd_line(node);
debug_node_start(node);
type = nd_type(node);
@@ -3013,7 +3085,7 @@ iseq_compile_each(rb_iseq_t *iseq, LINK_ANCHOR *ret, NODE * node, int poped)
DECL_ANCHOR(head);
DECL_ANCHOR(body_seq);
DECL_ANCHOR(cond_seq);
- VALUE special_literals = rb_ary_new();
+ VALUE special_literals = rb_ary_tmp_new(1);
INIT_ANCHOR(head);
INIT_ANCHOR(body_seq);
@@ -3120,40 +3192,30 @@ iseq_compile_each(rb_iseq_t *iseq, LINK_ANCHOR *ret, NODE * node, int poped)
ADD_INSNL(body_seq, nd_line(node), jump, endlabel);
vals = node->nd_head;
- if (vals && nd_type(vals) == NODE_ARRAY) {
+ if (!vals) {
+ rb_bug("NODE_WHEN: must be NODE_ARRAY, but 0");
+ }
+ switch (nd_type(vals)) {
+ case NODE_ARRAY:
while (vals) {
val = vals->nd_head;
COMPILE(ret, "when2", val);
ADD_INSNL(ret, nd_line(val), branchif, l1);
vals = vals->nd_next;
}
- }
- else if (nd_type(vals) == NODE_SPLAT ||
- nd_type(vals) == NODE_ARGSCAT ||
- nd_type(vals) == NODE_ARGSPUSH) {
-
- NODE *val = vals->nd_head;
-
- if (nd_type(vals) == NODE_ARGSCAT || nd_type(vals) == NODE_ARGSPUSH) {
- NODE *vs = vals->nd_head;
- val = vals->nd_body;
-
- while (vs) {
- NODE* val = vs->nd_head;
- COMPILE(ret, "when/argscat", val);
- ADD_INSNL(ret, nd_line(val), branchif, l1);
- vs = vs->nd_next;
- }
- }
-
- ADD_INSN(ret, nd_line(val), putnil);
- COMPILE(ret, "when2/splat", val);
- ADD_INSN1(ret, nd_line(val), checkincludearray, Qfalse);
- ADD_INSN(ret, nd_line(val), pop);
- ADD_INSNL(ret, nd_line(val), branchif, l1);
- }
- else {
- rb_bug("err");
+ break;
+ case NODE_SPLAT:
+ case NODE_ARGSCAT:
+ case NODE_ARGSPUSH:
+ ADD_INSN(ret, nd_line(vals), putnil);
+ COMPILE(ret, "when2/cond splat", vals);
+ ADD_INSN1(ret, nd_line(vals), checkincludearray, Qfalse);
+ ADD_INSN(ret, nd_line(vals), pop);
+ ADD_INSNL(ret, nd_line(vals), branchif, l1);
+ break;
+ default:
+ rb_bug("NODE_WHEN: unknown node (%s)",
+ ruby_node_name(nd_type(vals)));
}
node = node->nd_next;
}
@@ -3172,7 +3234,7 @@ iseq_compile_each(rb_iseq_t *iseq, LINK_ANCHOR *ret, NODE * node, int poped)
LABEL *prev_start_label = iseq->compile_data->start_label;
LABEL *prev_end_label = iseq->compile_data->end_label;
LABEL *prev_redo_label = iseq->compile_data->redo_label;
- VALUE prev_loopval_popped = iseq->compile_data->loopval_popped;
+ int prev_loopval_popped = iseq->compile_data->loopval_popped;
struct iseq_compile_data_ensure_node_stack enl;
@@ -3263,7 +3325,7 @@ iseq_compile_each(rb_iseq_t *iseq, LINK_ANCHOR *ret, NODE * node, int poped)
iseq->compile_data->current_block =
NEW_CHILD_ISEQVAL(node->nd_body, make_name_for_block(iseq),
- ISEQ_TYPE_BLOCK);
+ ISEQ_TYPE_BLOCK, nd_line(node));
mid = idEach;
ADD_SEND_R(ret, nd_line(node), ID2SYM(idEach), INT2FIX(0),
@@ -3272,7 +3334,7 @@ iseq_compile_each(rb_iseq_t *iseq, LINK_ANCHOR *ret, NODE * node, int poped)
else {
iseq->compile_data->current_block =
NEW_CHILD_ISEQVAL(node->nd_body, make_name_for_block(iseq),
- ISEQ_TYPE_BLOCK);
+ ISEQ_TYPE_BLOCK, nd_line(node));
COMPILE(ret, "iter caller", node->nd_iter);
}
ADD_LABEL(ret, retry_end_l);
@@ -3360,6 +3422,9 @@ iseq_compile_each(rb_iseq_t *iseq, LINK_ANCHOR *ret, NODE * node, int poped)
ADD_ADJUST(ret, nd_line(node), iseq->compile_data->redo_label);
ADD_INSNL(ret, nd_line(node), jump, iseq->compile_data->start_label);
ADD_ADJUST_RESTORE(ret, splabel);
+ if (!poped) {
+ ADD_INSN(ret, nd_line(node), putnil);
+ }
}
else if (iseq->compile_data->end_label) {
LABEL *splabel = NEW_LABEL(0);
@@ -3425,6 +3490,9 @@ iseq_compile_each(rb_iseq_t *iseq, LINK_ANCHOR *ret, NODE * node, int poped)
add_ensure_iseq(ret, iseq, 0);
ADD_INSNL(ret, nd_line(node), jump, iseq->compile_data->redo_label);
ADD_ADJUST_RESTORE(ret, splabel);
+ if (!poped) {
+ ADD_INSN(ret, nd_line(node), putnil);
+ }
}
else if (iseq->type == ISEQ_TYPE_EVAL) {
redo_in_eval:
@@ -3506,7 +3574,7 @@ iseq_compile_each(rb_iseq_t *iseq, LINK_ANCHOR *ret, NODE * node, int poped)
VALUE rescue = NEW_CHILD_ISEQVAL(
node->nd_resq,
rb_str_concat(rb_str_new2("rescue in "), iseq->name),
- ISEQ_TYPE_RESCUE);
+ ISEQ_TYPE_RESCUE, nd_line(node));
ADD_LABEL(ret, lstart);
COMPILE(ret, "rescue head", node->nd_head);
@@ -3522,7 +3590,7 @@ iseq_compile_each(rb_iseq_t *iseq, LINK_ANCHOR *ret, NODE * node, int poped)
ADD_INSN(ret, nd_line(node), pop);
}
- /* resgister catch entry */
+ /* register catch entry */
ADD_CATCH_ENTRY(CATCH_TYPE_RESCUE, lstart, lend, rescue, lcont);
ADD_CATCH_ENTRY(CATCH_TYPE_RETRY, lend, lcont, 0, lstart);
break;
@@ -3588,7 +3656,7 @@ iseq_compile_each(rb_iseq_t *iseq, LINK_ANCHOR *ret, NODE * node, int poped)
rb_str_concat(rb_str_new2
("ensure in "),
iseq->name),
- ISEQ_TYPE_ENSURE);
+ ISEQ_TYPE_ENSURE, nd_line(node));
LABEL *lstart = NEW_LABEL(nd_line(node));
LABEL *lend = NEW_LABEL(nd_line(node));
LABEL *lcont = NEW_LABEL(nd_line(node));
@@ -3693,7 +3761,7 @@ iseq_compile_each(rb_iseq_t *iseq, LINK_ANCHOR *ret, NODE * node, int poped)
ADD_INSN(ret, nd_line(node), dup);
}
ADD_INSN1(ret, nd_line(node), setglobal,
- (((long)node->nd_entry) | 1));
+ ((VALUE)node->nd_entry | 1));
break;
}
case NODE_IASGN:
@@ -3702,8 +3770,8 @@ iseq_compile_each(rb_iseq_t *iseq, LINK_ANCHOR *ret, NODE * node, int poped)
if (!poped) {
ADD_INSN(ret, nd_line(node), dup);
}
- ADD_INSN1(ret, nd_line(node), setinstancevariable,
- ID2SYM(node->nd_vid));
+ ADD_INSN2(ret, nd_line(node), setinstancevariable,
+ ID2SYM(node->nd_vid), INT2FIX(iseq->ic_size++));
break;
}
case NODE_CDECL:{
@@ -3714,7 +3782,8 @@ iseq_compile_each(rb_iseq_t *iseq, LINK_ANCHOR *ret, NODE * node, int poped)
}
if (node->nd_vid) {
- ADD_INSN1(ret, nd_line(node), putspecialobject, INT2FIX(VM_SPECIAL_OBJECT_CBASE));
+ ADD_INSN1(ret, nd_line(node), putspecialobject,
+ INT2FIX(VM_SPECIAL_OBJECT_CONST_BASE));
ADD_INSN1(ret, nd_line(node), setconstant, ID2SYM(node->nd_vid));
}
else {
@@ -3735,19 +3804,23 @@ iseq_compile_each(rb_iseq_t *iseq, LINK_ANCHOR *ret, NODE * node, int poped)
case NODE_OP_ASGN1: {
DECL_ANCHOR(args);
VALUE argc;
- unsigned long flag = 0;
+ VALUE flag = 0;
ID id = node->nd_mid;
+ int boff = 0;
/*
* a[x] (op)= y
*
- * eval a # a
- * eval x # a x
- * dupn 2 # a x a x
- * send :[] # a x a[x]
- * eval y # a x a[x] y
- * send op # a x a[x]+y
- * send []= # ret
+ * nil # nil
+ * eval a # nil a
+ * eval x # nil a x
+ * dupn 2 # nil a x a x
+ * send :[] # nil a x a[x]
+ * eval y # nil a x a[x] y
+ * send op # nil a x ret
+ * setn 3 # ret a x ret
+ * send []= # ret ?
+ * pop # ret
*/
/*
@@ -3758,16 +3831,22 @@ iseq_compile_each(rb_iseq_t *iseq, LINK_ANCHOR *ret, NODE * node, int poped)
* nd_mid
*/
+ if (!poped) {
+ ADD_INSN(ret, nd_line(node), putnil);
+ }
COMPILE(ret, "NODE_OP_ASGN1 recv", node->nd_recv);
- if (nd_type(node->nd_args->nd_body) != NODE_ZARRAY) {
+ switch (nd_type(node->nd_args->nd_head)) {
+ case NODE_ZARRAY:
+ argc = INT2FIX(0);
+ break;
+ case NODE_BLOCK_PASS:
+ boff = 1;
+ default:
INIT_ANCHOR(args);
- argc = setup_args(iseq, args, node->nd_args->nd_body, &flag);
+ argc = setup_args(iseq, args, node->nd_args->nd_head, &flag);
ADD_SEQ(ret, args);
}
- else {
- argc = INT2FIX(0);
- }
- ADD_INSN1(ret, nd_line(node), dupn, INT2FIX(FIX2INT(argc)+1));
+ ADD_INSN1(ret, nd_line(node), dupn, FIXNUM_INC(argc, 1 + boff));
ADD_SEND_R(ret, nd_line(node), ID2SYM(idAREF), argc, Qfalse, LONG2FIX(flag));
if (id == 0 || id == 1) {
@@ -3783,56 +3862,80 @@ iseq_compile_each(rb_iseq_t *iseq, LINK_ANCHOR *ret, NODE * node, int poped)
LABEL *label = NEW_LABEL(nd_line(node));
LABEL *lfin = NEW_LABEL(nd_line(node));
+ ADD_INSN(ret, nd_line(node), dup);
if (id == 0) {
/* or */
- ADD_INSN(ret, nd_line(node), dup);
ADD_INSNL(ret, nd_line(node), branchif, label);
- ADD_INSN(ret, nd_line(node), pop);
}
else {
/* and */
- ADD_INSN(ret, nd_line(node), dup);
ADD_INSNL(ret, nd_line(node), branchunless, label);
- ADD_INSN(ret, nd_line(node), pop);
}
+ ADD_INSN(ret, nd_line(node), pop);
- COMPILE(ret, "NODE_OP_ASGN1 args->head: ", node->nd_args->nd_head);
+ COMPILE(ret, "NODE_OP_ASGN1 args->body: ", node->nd_args->nd_body);
+ if (!poped) {
+ ADD_INSN1(ret, nd_line(node), setn, FIXNUM_INC(argc, 2+boff));
+ }
if (flag & VM_CALL_ARGS_SPLAT_BIT) {
ADD_INSN1(ret, nd_line(node), newarray, INT2FIX(1));
+ if (boff > 0) {
+ ADD_INSN1(ret, nd_line(node), dupn, INT2FIX(3));
+ ADD_INSN(ret, nd_line(node), swap);
+ ADD_INSN(ret, nd_line(node), pop);
+ }
ADD_INSN(ret, nd_line(node), concatarray);
+ if (boff > 0) {
+ ADD_INSN1(ret, nd_line(node), setn, INT2FIX(3));
+ ADD_INSN(ret, nd_line(node), pop);
+ ADD_INSN(ret, nd_line(node), pop);
+ }
ADD_SEND_R(ret, nd_line(node), ID2SYM(idASET),
argc, Qfalse, LONG2FIX(flag));
}
else {
+ if (boff > 0)
+ ADD_INSN(ret, nd_line(node), swap);
ADD_SEND_R(ret, nd_line(node), ID2SYM(idASET),
- INT2FIX(FIX2INT(argc) + 1), Qfalse, LONG2FIX(flag));
+ FIXNUM_INC(argc, 1), Qfalse, LONG2FIX(flag));
}
+ ADD_INSN(ret, nd_line(node), pop);
ADD_INSNL(ret, nd_line(node), jump, lfin);
ADD_LABEL(ret, label);
- if (id == 0 || id == 1) { /* 0: or, 1: and */
- ADD_INSN(ret, nd_line(node), swap);
- ADD_INSN(ret, nd_line(node), pop);
- ADD_INSN(ret, nd_line(node), swap);
- ADD_INSN(ret, nd_line(node), pop);
+ if (!poped) {
+ ADD_INSN1(ret, nd_line(node), setn, FIXNUM_INC(argc, 2+boff));
}
+ ADD_INSN1(ret, nd_line(node), adjuststack, FIXNUM_INC(argc, 2+boff));
ADD_LABEL(ret, lfin);
}
else {
- COMPILE(ret, "NODE_OP_ASGN1 args->head: ", node->nd_args->nd_head);
+ COMPILE(ret, "NODE_OP_ASGN1 args->body: ", node->nd_args->nd_body);
ADD_SEND(ret, nd_line(node), ID2SYM(id), INT2FIX(1));
+ if (!poped) {
+ ADD_INSN1(ret, nd_line(node), setn, FIXNUM_INC(argc, 2+boff));
+ }
if (flag & VM_CALL_ARGS_SPLAT_BIT) {
ADD_INSN1(ret, nd_line(node), newarray, INT2FIX(1));
+ if (boff > 0) {
+ ADD_INSN1(ret, nd_line(node), dupn, INT2FIX(3));
+ ADD_INSN(ret, nd_line(node), swap);
+ ADD_INSN(ret, nd_line(node), pop);
+ }
ADD_INSN(ret, nd_line(node), concatarray);
+ if (boff > 0) {
+ ADD_INSN1(ret, nd_line(node), setn, INT2FIX(3));
+ ADD_INSN(ret, nd_line(node), pop);
+ ADD_INSN(ret, nd_line(node), pop);
+ }
ADD_SEND_R(ret, nd_line(node), ID2SYM(idASET),
argc, Qfalse, LONG2FIX(flag));
}
else {
+ if (boff > 0)
+ ADD_INSN(ret, nd_line(node), swap);
ADD_SEND_R(ret, nd_line(node), ID2SYM(idASET),
- INT2FIX(FIX2INT(argc) + 1), Qfalse, LONG2FIX(flag));
+ FIXNUM_INC(argc, 1), Qfalse, LONG2FIX(flag));
}
- }
-
- if (poped) {
ADD_INSN(ret, nd_line(node), pop);
}
@@ -3856,22 +3959,26 @@ iseq_compile_each(rb_iseq_t *iseq, LINK_ANCHOR *ret, NODE * node, int poped)
if lcfin # r o
pop # r
eval v # r v
- send a= # v
- jump lfin # v
+ swap # v r
+ topn 1 # v r v
+ send a= # v ?
+ jump lfin # v ?
lcfin: # r o
swap # o r
- pop # o
- lfin: # v
+ lfin: # o ?
+ pop # o
# and
dup # r o o
unless lcfin
pop # r
eval v # r v
- send a= # v
- jump lfin # v
+ swap # v r
+ topn 1 # v r v
+ send a= # v ?
+ jump lfin # v ?
# others
eval v # r o v
@@ -3895,26 +4002,32 @@ iseq_compile_each(rb_iseq_t *iseq, LINK_ANCHOR *ret, NODE * node, int poped)
}
ADD_INSN(ret, nd_line(node), pop);
COMPILE(ret, "NODE_OP_ASGN2 val", node->nd_value);
+ ADD_INSN(ret, nd_line(node), swap);
+ ADD_INSN1(ret, nd_line(node), topn, INT2FIX(1));
ADD_SEND(ret, nd_line(node), ID2SYM(node->nd_next->nd_aid),
INT2FIX(1));
ADD_INSNL(ret, nd_line(node), jump, lfin);
ADD_LABEL(ret, lcfin);
ADD_INSN(ret, nd_line(node), swap);
- ADD_INSN(ret, nd_line(node), pop);
ADD_LABEL(ret, lfin);
+ ADD_INSN(ret, nd_line(node), pop);
+ if (poped) {
+ /* we can apply more optimize */
+ ADD_INSN(ret, nd_line(node), pop);
+ }
}
else {
COMPILE(ret, "NODE_OP_ASGN2 val", node->nd_value);
ADD_SEND(ret, nd_line(node), ID2SYM(node->nd_next->nd_mid),
INT2FIX(1));
+ if (!poped) {
+ ADD_INSN(ret, nd_line(node), swap);
+ ADD_INSN1(ret, nd_line(node), topn, INT2FIX(1));
+ }
ADD_SEND(ret, nd_line(node), ID2SYM(node->nd_next->nd_aid),
INT2FIX(1));
- }
-
- if (poped) {
- /* we can apply more optimize */
ADD_INSN(ret, nd_line(node), pop);
}
break;
@@ -3972,7 +4085,7 @@ iseq_compile_each(rb_iseq_t *iseq, LINK_ANCHOR *ret, NODE * node, int poped)
DECL_ANCHOR(args);
ID mid = node->nd_mid;
VALUE argc;
- unsigned long flag = 0;
+ VALUE flag = 0;
VALUE parent_block = iseq->compile_data->current_block;
iseq->compile_data->current_block = Qfalse;
@@ -3993,27 +4106,36 @@ iseq_compile_each(rb_iseq_t *iseq, LINK_ANCHOR *ret, NODE * node, int poped)
{
ID goto_id;
ID label_id;
- VALUE label;
- VALUE label_sym;
CONST_ID(goto_id, "__goto__");
CONST_ID(label_id, "__label__");
if (nd_type(node) == NODE_FCALL &&
(mid == goto_id || mid == label_id)) {
+ LABEL *label;
+ st_data_t data;
+ st_table *labels_table = iseq->compile_data->labels_table;
+ ID label_name;
+
+ if (!labels_table) {
+ labels_table = st_init_numtable();
+ iseq->compile_data->labels_table = labels_table;
+ }
if (nd_type(node->nd_args->nd_head) == NODE_LIT &&
SYMBOL_P(node->nd_args->nd_head->nd_lit)) {
- label_sym = label = node->nd_args->nd_head->nd_lit;
- if ((label =
- rb_hash_aref(iseq->compile_data,
- label_sym)) == Qnil) {
- rb_hash_aset(iseq->compile_data, label_sym,
- label = NEW_LABEL(nd_line(node)));
+ label_name = SYM2ID(node->nd_args->nd_head->nd_lit);
+ if (!st_lookup(labels_table, (st_data_t)label_name, &data)) {
+ label = NEW_LABEL(nd_line(node));
+ label->position = nd_line(node);
+ st_insert(labels_table, (st_data_t)label_name, (st_data_t)label);
+ }
+ else {
+ label = (LABEL *)data;
}
}
else {
- rb_bug("invalid goto/label format");
+ COMPILE_ERROR((ERROR_ARGS "invalid goto/label format"));
}
@@ -4027,7 +4149,7 @@ iseq_compile_each(rb_iseq_t *iseq, LINK_ANCHOR *ret, NODE * node, int poped)
}
}
#endif
- /* reciever */
+ /* receiver */
if (type == NODE_CALL) {
COMPILE(recv, "recv", node->nd_recv);
}
@@ -4069,7 +4191,7 @@ iseq_compile_each(rb_iseq_t *iseq, LINK_ANCHOR *ret, NODE * node, int poped)
case NODE_ZSUPER:{
DECL_ANCHOR(args);
VALUE argc;
- unsigned long flag = 0;
+ VALUE flag = 0;
VALUE parent_block = iseq->compile_data->current_block;
INIT_ANCHOR(args);
@@ -4137,7 +4259,7 @@ iseq_compile_each(rb_iseq_t *iseq, LINK_ANCHOR *ret, NODE * node, int poped)
}
}
- /* dummy reciever */
+ /* dummy receiver */
ADD_INSN1(ret, nd_line(node), putobject,
nd_type(node) == NODE_ZSUPER ? Qfalse : Qtrue);
ADD_SEQ(ret, args);
@@ -4202,10 +4324,9 @@ iseq_compile_each(rb_iseq_t *iseq, LINK_ANCHOR *ret, NODE * node, int poped)
case NODE_RETURN:{
rb_iseq_t *is = iseq;
- while (is) {
- if (is->type == ISEQ_TYPE_TOP || is->type == ISEQ_TYPE_CLASS) {
+ if (is) {
+ if (is->type == ISEQ_TYPE_TOP) {
COMPILE_ERROR((ERROR_ARGS "Invalid return"));
- break;
}
else {
LABEL *splabel = 0;
@@ -4220,6 +4341,7 @@ iseq_compile_each(rb_iseq_t *iseq, LINK_ANCHOR *ret, NODE * node, int poped)
if (is->type == ISEQ_TYPE_METHOD) {
add_ensure_iseq(ret, iseq, 1);
+ ADD_TRACE(ret, nd_line(node), RUBY_EVENT_RETURN);
ADD_INSN(ret, nd_line(node), leave);
ADD_ADJUST_RESTORE(ret, splabel);
@@ -4233,7 +4355,6 @@ iseq_compile_each(rb_iseq_t *iseq, LINK_ANCHOR *ret, NODE * node, int poped)
ADD_INSN(ret, nd_line(node), pop);
}
}
- break;
}
}
break;
@@ -4241,10 +4362,10 @@ iseq_compile_each(rb_iseq_t *iseq, LINK_ANCHOR *ret, NODE * node, int poped)
case NODE_YIELD:{
DECL_ANCHOR(args);
VALUE argc;
- unsigned long flag = 0;
+ VALUE flag = 0;
INIT_ANCHOR(args);
- if (iseq->type == ISEQ_TYPE_TOP || iseq->type == ISEQ_TYPE_CLASS) {
+ if (iseq->type == ISEQ_TYPE_TOP) {
COMPILE_ERROR((ERROR_ARGS "Invalid yield"));
}
@@ -4287,7 +4408,7 @@ iseq_compile_each(rb_iseq_t *iseq, LINK_ANCHOR *ret, NODE * node, int poped)
}
case NODE_GVAR:{
ADD_INSN1(ret, nd_line(node), getglobal,
- (((long)node->nd_entry) | 1));
+ ((VALUE)node->nd_entry | 1));
if (poped) {
ADD_INSN(ret, nd_line(node), pop);
}
@@ -4296,8 +4417,8 @@ iseq_compile_each(rb_iseq_t *iseq, LINK_ANCHOR *ret, NODE * node, int poped)
case NODE_IVAR:{
debugi("nd_vid", node->nd_vid);
if (!poped) {
- ADD_INSN1(ret, nd_line(node), getinstancevariable,
- ID2SYM(node->nd_vid));
+ ADD_INSN2(ret, nd_line(node), getinstancevariable,
+ ID2SYM(node->nd_vid), INT2FIX(iseq->ic_size++));
}
break;
}
@@ -4305,13 +4426,12 @@ iseq_compile_each(rb_iseq_t *iseq, LINK_ANCHOR *ret, NODE * node, int poped)
debugi("nd_vid", node->nd_vid);
if (iseq->compile_data->option->inline_const_cache) {
- LABEL *lstart = NEW_LABEL(nd_line(node));
LABEL *lend = NEW_LABEL(nd_line(node));
+ int ic_index = iseq->ic_size++;
- ADD_LABEL(ret, lstart);
- ADD_INSN2(ret, nd_line(node), getinlinecache, 0, lend);
+ ADD_INSN2(ret, nd_line(node), getinlinecache, lend, INT2FIX(ic_index));
ADD_INSN1(ret, nd_line(node), getconstant, ID2SYM(node->nd_vid));
- ADD_INSN1(ret, nd_line(node), setinlinecache, lstart);
+ ADD_INSN1(ret, nd_line(node), setinlinecache, INT2FIX(ic_index));
ADD_LABEL(ret, lend);
}
else {
@@ -4360,11 +4480,11 @@ iseq_compile_each(rb_iseq_t *iseq, LINK_ANCHOR *ret, NODE * node, int poped)
INT2FIX(0));
break;
case NODE_MATCH2:
- COMPILE(recv, "reciever", node->nd_recv);
+ COMPILE(recv, "receiver", node->nd_recv);
COMPILE(val, "value", node->nd_value);
break;
case NODE_MATCH3:
- COMPILE(recv, "reciever", node->nd_value);
+ COMPILE(recv, "receiver", node->nd_value);
COMPILE(val, "value", node->nd_recv);
break;
}
@@ -4405,7 +4525,7 @@ iseq_compile_each(rb_iseq_t *iseq, LINK_ANCHOR *ret, NODE * node, int poped)
case NODE_STR:{
debugp_param("nd_lit", node->nd_lit);
if (!poped) {
- hide_obj(node->nd_lit);
+ OBJ_FREEZE(node->nd_lit);
ADD_INSN1(ret, nd_line(node), putstring, node->nd_lit);
}
break;
@@ -4460,16 +4580,15 @@ iseq_compile_each(rb_iseq_t *iseq, LINK_ANCHOR *ret, NODE * node, int poped)
}
case NODE_DREGX_ONCE:{
/* TODO: once? */
- LABEL *lstart = NEW_LABEL(nd_line(node));
LABEL *lend = NEW_LABEL(nd_line(node));
+ int ic_index = iseq->ic_size++;
- ADD_LABEL(ret, lstart);
- ADD_INSN2(ret, nd_line(node), onceinlinecache, 0, lend);
+ ADD_INSN2(ret, nd_line(node), onceinlinecache, lend, INT2FIX(ic_index));
ADD_INSN(ret, nd_line(node), pop);
compile_dregx(iseq, ret, node);
- ADD_INSN1(ret, nd_line(node), setinlinecache, lstart);
+ ADD_INSN1(ret, nd_line(node), setinlinecache, INT2FIX(ic_index));
ADD_LABEL(ret, lend);
if (poped) {
@@ -4478,16 +4597,34 @@ iseq_compile_each(rb_iseq_t *iseq, LINK_ANCHOR *ret, NODE * node, int poped)
break;
}
case NODE_ARGSCAT:{
- COMPILE(ret, "argscat head", node->nd_head);
- COMPILE(ret, "argscat body", node->nd_body);
- ADD_INSN(ret, nd_line(node), concatarray);
+ if (poped) {
+ COMPILE(ret, "argscat head", node->nd_head);
+ ADD_INSN1(ret, nd_line(node), splatarray, Qfalse);
+ ADD_INSN(ret, nd_line(node), pop);
+ COMPILE(ret, "argscat body", node->nd_body);
+ ADD_INSN1(ret, nd_line(node), splatarray, Qfalse);
+ ADD_INSN(ret, nd_line(node), pop);
+ }
+ else {
+ COMPILE(ret, "argscat head", node->nd_head);
+ COMPILE(ret, "argscat body", node->nd_body);
+ ADD_INSN(ret, nd_line(node), concatarray);
+ }
break;
}
case NODE_ARGSPUSH:{
- COMPILE(ret, "arsgpush head", node->nd_head);
- COMPILE(ret, "argspush body", node->nd_body);
- ADD_INSN1(ret, nd_line(node), newarray, INT2FIX(1));
- ADD_INSN(ret, nd_line(node), concatarray);
+ if (poped) {
+ COMPILE(ret, "arsgpush head", node->nd_head);
+ ADD_INSN1(ret, nd_line(node), splatarray, Qfalse);
+ ADD_INSN(ret, nd_line(node), pop);
+ COMPILE_(ret, "argspush body", node->nd_body, poped);
+ }
+ else {
+ COMPILE(ret, "arsgpush head", node->nd_head);
+ COMPILE_(ret, "argspush body", node->nd_body, poped);
+ ADD_INSN1(ret, nd_line(node), newarray, INT2FIX(1));
+ ADD_INSN(ret, nd_line(node), concatarray);
+ }
break;
}
case NODE_SPLAT:{
@@ -4502,7 +4639,7 @@ iseq_compile_each(rb_iseq_t *iseq, LINK_ANCHOR *ret, NODE * node, int poped)
case NODE_DEFN:{
VALUE iseqval = NEW_ISEQVAL(node->nd_defn,
rb_str_dup(rb_id2str(node->nd_mid)),
- ISEQ_TYPE_METHOD);
+ ISEQ_TYPE_METHOD, nd_line(node));
debugp_param("defn/iseq", iseqval);
@@ -4522,7 +4659,7 @@ iseq_compile_each(rb_iseq_t *iseq, LINK_ANCHOR *ret, NODE * node, int poped)
case NODE_DEFS:{
VALUE iseqval = NEW_ISEQVAL(node->nd_defn,
rb_str_dup(rb_id2str(node->nd_mid)),
- ISEQ_TYPE_METHOD);
+ ISEQ_TYPE_METHOD, nd_line(node));
debugp_param("defs/iseq", iseqval);
@@ -4576,11 +4713,11 @@ iseq_compile_each(rb_iseq_t *iseq, LINK_ANCHOR *ret, NODE * node, int poped)
NEW_CHILD_ISEQVAL(
node->nd_body,
rb_sprintf("<class:%s>", rb_id2name(node->nd_cpath->nd_mid)),
- ISEQ_TYPE_CLASS);
- compile_cpath(ret, iseq, node->nd_cpath);
+ ISEQ_TYPE_CLASS, nd_line(node));
+ VALUE noscope = compile_cpath(ret, iseq, node->nd_cpath);
COMPILE(ret, "super", node->nd_super);
ADD_INSN3(ret, nd_line(node), defineclass,
- ID2SYM(node->nd_cpath->nd_mid), iseqval, INT2FIX(0));
+ ID2SYM(node->nd_cpath->nd_mid), iseqval, INT2FIX(noscope ? 3 : 0));
if (poped) {
ADD_INSN(ret, nd_line(node), pop);
@@ -4591,12 +4728,12 @@ iseq_compile_each(rb_iseq_t *iseq, LINK_ANCHOR *ret, NODE * node, int poped)
VALUE iseqval = NEW_CHILD_ISEQVAL(
node->nd_body,
rb_sprintf("<module:%s>", rb_id2name(node->nd_cpath->nd_mid)),
- ISEQ_TYPE_CLASS);
+ ISEQ_TYPE_CLASS, nd_line(node));
- compile_cpath(ret, iseq, node->nd_cpath);
+ VALUE noscope = compile_cpath(ret, iseq, node->nd_cpath);
ADD_INSN (ret, nd_line(node), putnil); /* dummy */
ADD_INSN3(ret, nd_line(node), defineclass,
- ID2SYM(node->nd_cpath->nd_mid), iseqval, INT2FIX(2));
+ ID2SYM(node->nd_cpath->nd_mid), iseqval, INT2FIX(noscope ? 5 : 2));
if (poped) {
ADD_INSN(ret, nd_line(node), pop);
}
@@ -4606,7 +4743,7 @@ iseq_compile_each(rb_iseq_t *iseq, LINK_ANCHOR *ret, NODE * node, int poped)
ID singletonclass;
VALUE iseqval =
NEW_ISEQVAL(node->nd_body, rb_str_new2("singletonclass"),
- ISEQ_TYPE_CLASS);
+ ISEQ_TYPE_CLASS, nd_line(node));
COMPILE(ret, "sclass#recv", node->nd_recv);
ADD_INSN (ret, nd_line(node), putnil);
@@ -4622,8 +4759,9 @@ iseq_compile_each(rb_iseq_t *iseq, LINK_ANCHOR *ret, NODE * node, int poped)
case NODE_COLON2:{
if (rb_is_const_id(node->nd_mid)) {
/* constant */
- LABEL *lstart = NEW_LABEL(nd_line(node));
LABEL *lend = NEW_LABEL(nd_line(node));
+ int ic_index = iseq->ic_size++;
+
DECL_ANCHOR(pref);
DECL_ANCHOR(body);
@@ -4632,8 +4770,7 @@ iseq_compile_each(rb_iseq_t *iseq, LINK_ANCHOR *ret, NODE * node, int poped)
compile_colon2(iseq, node, pref, body);
if (LIST_SIZE_ZERO(pref)) {
if (iseq->compile_data->option->inline_const_cache) {
- ADD_LABEL(ret, lstart);
- ADD_INSN2(ret, nd_line(node), getinlinecache, 0, lend);
+ ADD_INSN2(ret, nd_line(node), getinlinecache, lend, INT2FIX(ic_index));
}
else {
ADD_INSN(ret, nd_line(node), putnil);
@@ -4642,7 +4779,7 @@ iseq_compile_each(rb_iseq_t *iseq, LINK_ANCHOR *ret, NODE * node, int poped)
ADD_SEQ(ret, body);
if (iseq->compile_data->option->inline_const_cache) {
- ADD_INSN1(ret, nd_line(node), setinlinecache, lstart);
+ ADD_INSN1(ret, nd_line(node), setinlinecache, INT2FIX(ic_index));
ADD_LABEL(ret, lend);
}
}
@@ -4664,14 +4801,14 @@ iseq_compile_each(rb_iseq_t *iseq, LINK_ANCHOR *ret, NODE * node, int poped)
break;
}
case NODE_COLON3:{
- LABEL *lstart = NEW_LABEL(nd_line(node));
LABEL *lend = NEW_LABEL(nd_line(node));
- debugi("colon3#nd_mid", node->nd_mid);
+ int ic_index = iseq->ic_size++;
+
+ debugi("colon3#nd_mid", node->nd_mid);
/* add cache insn */
if (iseq->compile_data->option->inline_const_cache) {
- ADD_LABEL(ret, lstart);
- ADD_INSN2(ret, nd_line(node), getinlinecache, 0, lend);
+ ADD_INSN2(ret, nd_line(node), getinlinecache, lend, INT2FIX(ic_index));
ADD_INSN(ret, nd_line(node), pop);
}
@@ -4679,7 +4816,7 @@ iseq_compile_each(rb_iseq_t *iseq, LINK_ANCHOR *ret, NODE * node, int poped)
ADD_INSN1(ret, nd_line(node), getconstant, ID2SYM(node->nd_mid));
if (iseq->compile_data->option->inline_const_cache) {
- ADD_INSN1(ret, nd_line(node), setinlinecache, lstart);
+ ADD_INSN1(ret, nd_line(node), setinlinecache, INT2FIX(ic_index));
ADD_LABEL(ret, lend);
}
@@ -4690,7 +4827,7 @@ iseq_compile_each(rb_iseq_t *iseq, LINK_ANCHOR *ret, NODE * node, int poped)
}
case NODE_DOT2:
case NODE_DOT3:{
- int flag = type == NODE_DOT2 ? INT2FIX(0) : INT2FIX(1);
+ VALUE flag = type == NODE_DOT2 ? INT2FIX(0) : INT2FIX(1);
COMPILE(ret, "min", (NODE *) node->nd_beg);
COMPILE(ret, "max", (NODE *) node->nd_end);
if (poped) {
@@ -4796,30 +4933,30 @@ iseq_compile_each(rb_iseq_t *iseq, LINK_ANCHOR *ret, NODE * node, int poped)
LABEL *lfinish[2];
lfinish[0] = NEW_LABEL(nd_line(node));
lfinish[1] = 0;
+ ADD_INSN(ret, nd_line(node), putnil);
defined_expr(iseq, ret, node->nd_head, lfinish, Qtrue);
+ ADD_INSN(ret, nd_line(node), swap);
+ ADD_INSN(ret, nd_line(node), pop);
if (lfinish[1]) {
- ADD_INSNL(ret, nd_line(node), jump, lfinish[0]);
ADD_LABEL(ret, lfinish[1]);
- ADD_INSN(ret, nd_line(node), putnil);
}
ADD_LABEL(ret, lfinish[0]);
}
break;
}
case NODE_POSTEXE:{
- LABEL *lstart = NEW_LABEL(nd_line(node));
LABEL *lend = NEW_LABEL(nd_line(node));
- VALUE block = NEW_CHILD_ISEQVAL(node->nd_body, make_name_for_block(iseq), ISEQ_TYPE_BLOCK);
+ VALUE block = NEW_CHILD_ISEQVAL(node->nd_body, make_name_for_block(iseq), ISEQ_TYPE_BLOCK, nd_line(node));
+ int ic_index = iseq->ic_size++;
- ADD_LABEL(ret, lstart);
- ADD_INSN2(ret, nd_line(node), onceinlinecache, 0, lend);
+ ADD_INSN2(ret, nd_line(node), onceinlinecache, lend, INT2FIX(ic_index));
ADD_INSN(ret, nd_line(node), pop);
ADD_INSN1(ret, nd_line(node), putspecialobject, INT2FIX(VM_SPECIAL_OBJECT_VMCORE));
ADD_INSN1(ret, nd_line(node), putiseq, block);
ADD_SEND (ret, nd_line(node), ID2SYM(id_core_set_postexe), INT2FIX(1));
- ADD_INSN1(ret, nd_line(node), setinlinecache, lstart);
+ ADD_INSN1(ret, nd_line(node), setinlinecache, INT2FIX(ic_index));
ADD_LABEL(ret, lend);
if (poped) {
@@ -4840,7 +4977,7 @@ iseq_compile_each(rb_iseq_t *iseq, LINK_ANCHOR *ret, NODE * node, int poped)
case NODE_ATTRASGN:{
DECL_ANCHOR(recv);
DECL_ANCHOR(args);
- unsigned long flag = 0;
+ VALUE flag = 0;
VALUE argc;
INIT_ANCHOR(recv);
@@ -4865,12 +5002,23 @@ iseq_compile_each(rb_iseq_t *iseq, LINK_ANCHOR *ret, NODE * node, int poped)
if (flag & VM_CALL_ARGS_BLOCKARG_BIT) {
ADD_INSN1(ret, nd_line(node), topn, INT2FIX(1));
- ADD_INSN1(ret, nd_line(node), setn, INT2FIX(FIX2INT(argc) + 3));
+ if (flag & VM_CALL_ARGS_SPLAT_BIT) {
+ ADD_INSN1(ret, nd_line(node), putobject, INT2FIX(-1));
+ ADD_SEND(ret, nd_line(node), ID2SYM(idAREF), INT2FIX(1));
+ }
+ ADD_INSN1(ret, nd_line(node), setn, FIXNUM_INC(argc, 3));
+ ADD_INSN (ret, nd_line(node), pop);
+ }
+ else if (flag & VM_CALL_ARGS_SPLAT_BIT) {
+ ADD_INSN(ret, nd_line(node), dup);
+ ADD_INSN1(ret, nd_line(node), putobject, INT2FIX(-1));
+ ADD_SEND(ret, nd_line(node), ID2SYM(idAREF), INT2FIX(1));
+ ADD_INSN1(ret, nd_line(node), setn, FIXNUM_INC(argc, 2));
ADD_INSN (ret, nd_line(node), pop);
}
else {
- ADD_INSN1(ret, nd_line(node), setn, INT2FIX(FIX2INT(argc) + 1));
- }
+ ADD_INSN1(ret, nd_line(node), setn, FIXNUM_INC(argc, 1));
+ }
}
else {
ADD_SEQ(ret, recv);
@@ -4902,9 +5050,9 @@ iseq_compile_each(rb_iseq_t *iseq, LINK_ANCHOR *ret, NODE * node, int poped)
}
case NODE_LAMBDA:{
/* compile same as lambda{...} */
- VALUE block = NEW_CHILD_ISEQVAL(node->nd_body, make_name_for_block(iseq), ISEQ_TYPE_BLOCK);
+ VALUE block = NEW_CHILD_ISEQVAL(node->nd_body, make_name_for_block(iseq), ISEQ_TYPE_BLOCK, nd_line(node));
VALUE argc = INT2FIX(0);
- ADD_CALL_RECEIVER(ret, nd_line(node));
+ ADD_INSN1(ret, nd_line(node), putspecialobject, INT2FIX(VM_SPECIAL_OBJECT_VMCORE));
ADD_CALL_WITH_BLOCK(ret, nd_line(node), ID2SYM(idLambda), argc, block);
if (poped) {
@@ -4914,7 +5062,7 @@ iseq_compile_each(rb_iseq_t *iseq, LINK_ANCHOR *ret, NODE * node, int poped)
}
default:
rb_bug("iseq_compile_each: unknown node: %s", ruby_node_name(type));
- return Qnil;
+ return COMPILE_NG;
}
debug_node_end();
@@ -4946,15 +5094,15 @@ insn_data_line_no(INSN *iobj)
static VALUE
insn_data_to_s_detail(INSN *iobj)
{
- VALUE str = rb_str_new(0, 0);
+ VALUE str = rb_sprintf("%-16s", insn_name(iobj->insn_id));
- str = rb_sprintf("%-16s", insn_name(iobj->insn_id));
if (iobj->operands) {
const char *types = insn_op_types(iobj->insn_id);
int j;
for (j = 0; types[j]; j++) {
char type = types[j];
+ printf("str: %"PRIxVALUE", type: %c\n", str, type);
switch (type) {
case TS_OFFSET: /* label(destination position) */
@@ -4985,12 +5133,12 @@ insn_data_to_s_detail(INSN *iobj)
break;
case TS_GENTRY:
{
- struct global_entry *entry = (struct global_entry *)
+ struct rb_global_entry *entry = (struct rb_global_entry *)
(OPERAND_AT(iobj, j) & (~1));
rb_str_cat2(str, rb_id2name(entry->id));
}
case TS_IC: /* method cache */
- rb_str_cat2(str, "<ic>");
+ rb_str_catf(str, "<ic:%d>", FIX2INT(OPERAND_AT(iobj, j)));
break;
case TS_CDHASH: /* case/when condition cache */
rb_str_cat2(str, "<ch>");
@@ -5087,6 +5235,7 @@ get_exception_sym2type(VALUE sym)
{
#undef rb_intern
#define rb_intern(str) rb_intern_const(str)
+ VALUE sym_inspect;
static VALUE symRescue, symEnsure, symRetry;
static VALUE symBreak, symRedo, symNext;
@@ -5103,15 +5252,16 @@ get_exception_sym2type(VALUE sym)
if (sym == symEnsure) return CATCH_TYPE_ENSURE;
if (sym == symRetry) return CATCH_TYPE_RETRY;
if (sym == symBreak) return CATCH_TYPE_BREAK;
- if (sym == symRedo) return CATCH_TYPE_REDO;
+ if (sym == symRedo) return CATCH_TYPE_REDO;
if (sym == symNext) return CATCH_TYPE_NEXT;
+ sym_inspect = rb_inspect(sym);
rb_raise(rb_eSyntaxError, "invalid exception symbol: %s",
- RSTRING_PTR(rb_inspect(sym)));
+ StringValuePtr(sym_inspect));
return 0;
}
static int
-iseq_build_exception(rb_iseq_t *iseq, struct st_table *labels_table,
+iseq_build_from_ary_exception(rb_iseq_t *iseq, struct st_table *labels_table,
VALUE exception)
{
int i;
@@ -5160,13 +5310,13 @@ insn_make_insn_table(void)
}
static int
-iseq_build_body(rb_iseq_t *iseq, LINK_ANCHOR *anchor,
+iseq_build_from_ary_body(rb_iseq_t *iseq, LINK_ANCHOR *anchor,
VALUE body, struct st_table *labels_table)
{
- /* TODO: body should be freezed */
+ /* TODO: body should be frozen */
VALUE *ptr = RARRAY_PTR(body);
- int len = RARRAY_LEN(body);
- int i, j;
+ long i, len = RARRAY_LEN(body);
+ int j;
int line_no = 0;
/*
* index -> LABEL *label
@@ -5189,19 +5339,19 @@ iseq_build_body(rb_iseq_t *iseq, LINK_ANCHOR *anchor,
}
else if (TYPE(obj) == T_ARRAY) {
VALUE *argv = 0;
- int argc = (int)RARRAY_LEN(obj) - 1;
- VALUE insn_id;
+ int argc = RARRAY_LENINT(obj) - 1;
+ st_data_t insn_id;
VALUE insn;
insn = (argc < 0) ? Qnil : RARRAY_PTR(obj)[0];
- if (st_lookup(insn_table, insn, &insn_id) == 0) {
+ if (st_lookup(insn_table, (st_data_t)insn, &insn_id) == 0) {
/* TODO: exception */
RB_GC_GUARD(insn) = rb_inspect(insn);
rb_compile_error(RSTRING_PTR(iseq->filename), line_no,
"unknown instruction: %s", RSTRING_PTR(insn));
}
- if (argc != insn_len(insn_id)-1) {
+ if (argc != insn_len((VALUE)insn_id)-1) {
rb_compile_error(RSTRING_PTR(iseq->filename), line_no,
"operand size mismatch");
}
@@ -5210,7 +5360,7 @@ iseq_build_body(rb_iseq_t *iseq, LINK_ANCHOR *anchor,
argv = compile_data_alloc(iseq, sizeof(VALUE) * argc);
for (j=0; j<argc; j++) {
VALUE op = rb_ary_entry(obj, j+1);
- switch (insn_op_type(insn_id, j)) {
+ switch (insn_op_type((VALUE)insn_id, j)) {
case TS_OFFSET: {
LABEL *label = register_label(iseq, labels_table, op);
argv[j] = (VALUE)label;
@@ -5250,8 +5400,9 @@ iseq_build_body(rb_iseq_t *iseq, LINK_ANCHOR *anchor,
argv[j] = (VALUE)rb_global_entry(SYM2ID(op));
break;
case TS_IC:
- argv[j] = (VALUE)NEW_INLINE_CACHE_ENTRY();
- iseq_add_mark_object(iseq, argv[j]);
+ argv[j] = op;
+ if (NUM2INT(op) >= iseq->ic_size)
+ iseq->ic_size = NUM2INT(op) + 1;
break;
case TS_ID:
argv[j] = rb_convert_type(op, T_SYMBOL,
@@ -5269,30 +5420,32 @@ iseq_build_body(rb_iseq_t *iseq, LINK_ANCHOR *anchor,
rb_ary_store(op, i+1, (VALUE)label | 1);
}
argv[j] = op;
+ iseq_add_mark_object_compile_time(iseq, op);
}
break;
default:
- rb_raise(rb_eSyntaxError, "unknown operand: %c", insn_op_type(insn_id, j));
+ rb_raise(rb_eSyntaxError, "unknown operand: %c", insn_op_type((VALUE)insn_id, j));
}
}
}
ADD_ELEM(anchor,
(LINK_ELEMENT*)new_insn_core(iseq, line_no,
- insn_id, argc, argv));
+ (enum ruby_vminsn_type)insn_id, argc, argv));
}
else {
rb_raise(rb_eTypeError, "unexpected object for instruction");
}
}
+ validate_labels(iseq, labels_table);
st_free_table(labels_table);
iseq_setup(iseq, anchor);
return COMPILE_OK;
}
-#define CHECK_ARRAY(v) rb_convert_type(v, T_ARRAY, "Array", "to_ary")
-#define CHECK_STRING(v) rb_convert_type(v, T_STRING, "String", "to_str")
-#define CHECK_SYMBOL(v) rb_convert_type(v, T_SYMBOL, "Symbol", "to_sym")
-static inline VALUE CHECK_INTEGER(VALUE v) {NUM2LONG(v); return v;}
+#define CHECK_ARRAY(v) rb_convert_type((v), T_ARRAY, "Array", "to_ary")
+#define CHECK_STRING(v) rb_convert_type((v), T_STRING, "String", "to_str")
+#define CHECK_SYMBOL(v) rb_convert_type((v), T_SYMBOL, "Symbol", "to_sym")
+static inline VALUE CHECK_INTEGER(VALUE v) {(void)NUM2LONG(v); return v;}
VALUE
rb_iseq_build_from_ary(rb_iseq_t *iseq, VALUE locals, VALUE args,
@@ -5301,13 +5454,11 @@ rb_iseq_build_from_ary(rb_iseq_t *iseq, VALUE locals, VALUE args,
int i;
ID *tbl;
struct st_table *labels_table = st_init_numtable();
-
DECL_ANCHOR(anchor);
-
INIT_ANCHOR(anchor);
- iseq->local_table_size = RARRAY_LEN(locals);
- iseq->local_table = tbl = (ID *)ALLOC_N(ID *, iseq->local_table_size);
+ iseq->local_table_size = RARRAY_LENINT(locals);
+ iseq->local_table = tbl = (ID *)ALLOC_N(ID, iseq->local_table_size);
iseq->local_size = iseq->local_table_size + 1;
for (i=0; i<RARRAY_LEN(locals); i++) {
@@ -5335,7 +5486,7 @@ rb_iseq_build_from_ary(rb_iseq_t *iseq, VALUE locals, VALUE args,
iseq->arg_post_len = FIX2INT(arg_post_len);
iseq->arg_post_start = FIX2INT(arg_post_start);
iseq->arg_block = FIX2INT(arg_block);
- iseq->arg_opts = RARRAY_LEN(arg_opt_labels);
+ iseq->arg_opts = RARRAY_LENINT(arg_opt_labels);
iseq->arg_opt_table = (VALUE *)ALLOC_N(VALUE, iseq->arg_opts);
if (iseq->arg_block != -1) {
@@ -5361,10 +5512,10 @@ rb_iseq_build_from_ary(rb_iseq_t *iseq, VALUE locals, VALUE args,
}
/* exception */
- iseq_build_exception(iseq, labels_table, exception);
+ iseq_build_from_ary_exception(iseq, labels_table, exception);
/* body */
- iseq_build_body(iseq, anchor, body, labels_table);
+ iseq_build_from_ary_body(iseq, anchor, body, labels_table);
return iseq->self;
}
diff --git a/complex.c b/complex.c
index b32dcae1ed..5b1a5102a1 100644
--- a/complex.c
+++ b/complex.c
@@ -1,20 +1,17 @@
/*
- complex.c: Coded by Tadayoshi Funaba 2008
+ complex.c: Coded by Tadayoshi Funaba 2008-2011
This implementation is based on Keiju Ishitsuka's Complex library
which is written in ruby.
*/
#include "ruby.h"
+#include "internal.h"
#include <math.h>
#define NDEBUG
#include <assert.h>
-#ifndef COMPLEX_NAME
-#define COMPLEX_NAME "Complex"
-#endif
-
#define ZERO INT2FIX(0)
#define ONE INT2FIX(1)
#define TWO INT2FIX(2)
@@ -22,9 +19,9 @@
VALUE rb_cComplex;
static ID id_abs, id_abs2, id_arg, id_cmp, id_conj, id_convert,
- id_denominator, id_divmod, id_equal_p, id_expt, id_floor,
- id_idiv, id_inspect, id_negate, id_numerator, id_polar, id_quo,
- id_real_p, id_to_f, id_to_i, id_to_r, id_to_s;
+ id_denominator, id_divmod, id_eqeq_p, id_expt, id_fdiv, id_floor,
+ id_idiv, id_imag, id_inspect, id_negate, id_numerator, id_quo,
+ id_real, id_real_p, id_to_f, id_to_i, id_to_r, id_to_s;
#define f_boolcast(x) ((x) ? Qtrue : Qfalse)
@@ -32,7 +29,7 @@ static ID id_abs, id_abs2, id_arg, id_cmp, id_conj, id_convert,
inline static VALUE \
f_##n(VALUE x, VALUE y)\
{\
- return rb_funcall(x, op, 1, y);\
+ return rb_funcall(x, (op), 1, y);\
}
#define fun1(n) \
@@ -159,28 +156,43 @@ fun1(arg)
fun1(conj)
fun1(denominator)
fun1(floor)
+fun1(imag)
fun1(inspect)
fun1(negate)
fun1(numerator)
-fun1(polar)
+fun1(real)
fun1(real_p)
-fun1(to_f)
-fun1(to_i)
+inline static VALUE
+f_to_i(VALUE x)
+{
+ if (TYPE(x) == T_STRING)
+ return rb_str_to_inum(x, 10, 0);
+ return rb_funcall(x, id_to_i, 0);
+}
+inline static VALUE
+f_to_f(VALUE x)
+{
+ if (TYPE(x) == T_STRING)
+ return DBL2NUM(rb_str_to_dbl(x, 0));
+ return rb_funcall(x, id_to_f, 0);
+}
+
fun1(to_r)
fun1(to_s)
fun2(divmod)
inline static VALUE
-f_equal_p(VALUE x, VALUE y)
+f_eqeq_p(VALUE x, VALUE y)
{
if (FIXNUM_P(x) && FIXNUM_P(y))
return f_boolcast(FIX2LONG(x) == FIX2LONG(y));
- return rb_funcall(x, id_equal_p, 1, y);
+ return rb_funcall(x, id_eqeq_p, 1, y);
}
fun2(expt)
+fun2(fdiv)
fun2(idiv)
fun2(quo)
@@ -197,9 +209,19 @@ f_negative_p(VALUE x)
inline static VALUE
f_zero_p(VALUE x)
{
- if (FIXNUM_P(x))
+ switch (TYPE(x)) {
+ case T_FIXNUM:
return f_boolcast(FIX2LONG(x) == 0);
- return rb_funcall(x, id_equal_p, 1, ZERO);
+ case T_BIGNUM:
+ return Qfalse;
+ case T_RATIONAL:
+ {
+ VALUE num = RRATIONAL(x)->num;
+
+ return f_boolcast(FIXNUM_P(num) && FIX2LONG(num) == 0);
+ }
+ }
+ return rb_funcall(x, id_eqeq_p, 1, ZERO);
}
#define f_nonzero_p(x) (!f_zero_p(x))
@@ -207,9 +229,21 @@ f_zero_p(VALUE x)
inline static VALUE
f_one_p(VALUE x)
{
- if (FIXNUM_P(x))
+ switch (TYPE(x)) {
+ case T_FIXNUM:
return f_boolcast(FIX2LONG(x) == 1);
- return rb_funcall(x, id_equal_p, 1, ONE);
+ case T_BIGNUM:
+ return Qfalse;
+ case T_RATIONAL:
+ {
+ VALUE num = RRATIONAL(x)->num;
+ VALUE den = RRATIONAL(x)->den;
+
+ return f_boolcast(FIXNUM_P(num) && FIX2LONG(num) == 1 &&
+ FIXNUM_P(den) && FIX2LONG(den) == 1);
+ }
+ }
+ return rb_funcall(x, id_eqeq_p, 1, ONE);
}
inline static VALUE
@@ -231,6 +265,18 @@ k_integer_p(VALUE x)
}
inline static VALUE
+k_fixnum_p(VALUE x)
+{
+ return f_kind_of_p(x, rb_cFixnum);
+}
+
+inline static VALUE
+k_bignum_p(VALUE x)
+{
+ return f_kind_of_p(x, rb_cBignum);
+}
+
+inline static VALUE
k_float_p(VALUE x)
{
return f_kind_of_p(x, rb_cFloat);
@@ -251,6 +297,9 @@ k_complex_p(VALUE x)
#define k_exact_p(x) (!k_float_p(x))
#define k_inexact_p(x) k_float_p(x)
+#define k_exact_zero_p(x) (k_exact_p(x) && f_zero_p(x))
+#define k_exact_one_p(x) (k_exact_p(x) && f_one_p(x))
+
#define get_dat1(x) \
struct RComplex *dat;\
dat = ((struct RComplex *)(x))
@@ -324,7 +373,7 @@ f_complex_new_bang2(VALUE klass, VALUE x, VALUE y)
#ifdef CANON
static int canonicalization = 0;
-void
+RUBY_FUNC_EXPORTED void
nucomp_canonicalization(int f)
{
canonicalization = f;
@@ -342,7 +391,7 @@ nucomp_real_check(VALUE num)
break;
default:
if (!k_numeric_p(num) || !f_real_p(num))
- rb_raise(rb_eArgError, "not a real");
+ rb_raise(rb_eTypeError, "not a real");
}
}
@@ -352,7 +401,7 @@ nucomp_s_canonicalize_internal(VALUE klass, VALUE real, VALUE imag)
#ifdef CANON
#define CL_CANON
#ifdef CL_CANON
- if (f_zero_p(imag) && k_exact_p(imag) && canonicalization)
+ if (k_exact_zero_p(imag) && canonicalization)
return real;
#else
if (f_zero_p(imag) && canonicalization)
@@ -384,6 +433,13 @@ nucomp_s_canonicalize_internal(VALUE klass, VALUE real, VALUE imag)
}
}
+/*
+ * call-seq:
+ * Complex.rect(real[, imag]) -> complex
+ * Complex.rectangular(real[, imag]) -> complex
+ *
+ * Returns a complex object which denotes the given rectangular form.
+ */
static VALUE
nucomp_s_new(int argc, VALUE *argv, VALUE klass)
{
@@ -417,6 +473,12 @@ f_complex_new2(VALUE klass, VALUE x, VALUE y)
return nucomp_s_canonicalize_internal(klass, x, y);
}
+/*
+ * call-seq:
+ * Complex(x[, y]) -> numeric
+ *
+ * Returns x+i*y;
+ */
static VALUE
nucomp_f_complex(int argc, VALUE *argv, VALUE klass)
{
@@ -424,7 +486,6 @@ nucomp_f_complex(int argc, VALUE *argv, VALUE klass)
}
#define imp1(n) \
-extern VALUE rb_math_##n(VALUE x);\
inline static VALUE \
m_##n##_bang(VALUE x)\
{\
@@ -432,7 +493,6 @@ m_##n##_bang(VALUE x)\
}
#define imp2(n) \
-extern VALUE rb_math_##n(VALUE x, VALUE y);\
inline static VALUE \
m_##n##_bang(VALUE x, VALUE y)\
{\
@@ -445,9 +505,7 @@ imp1(cosh)
imp1(exp)
imp2(hypot)
-#define m_hypot(x,y) m_hypot_bang(x,y)
-
-extern VALUE rb_math_log(int argc, VALUE *argv);
+#define m_hypot(x,y) m_hypot_bang((x),(y))
static VALUE
m_log_bang(VALUE x)
@@ -523,12 +581,41 @@ f_complex_polar(VALUE klass, VALUE x, VALUE y)
f_mul(x, m_sin(y)));
}
+/*
+ * call-seq:
+ * Complex.polar(abs[, arg]) -> complex
+ *
+ * Returns a complex object which denotes the given polar form.
+ *
+ * Complex.polar(3, 0) #=> (3.0+0.0i)
+ * Complex.polar(3, Math::PI/2) #=> (1.836909530733566e-16+3.0i)
+ * Complex.polar(3, Math::PI) #=> (-3.0+3.673819061467132e-16i)
+ * Complex.polar(3, -Math::PI/2) #=> (1.836909530733566e-16-3.0i)
+ */
static VALUE
-nucomp_s_polar(VALUE klass, VALUE abs, VALUE arg)
+nucomp_s_polar(int argc, VALUE *argv, VALUE klass)
{
+ VALUE abs, arg;
+
+ switch (rb_scan_args(argc, argv, "11", &abs, &arg)) {
+ case 1:
+ nucomp_real_check(abs);
+ arg = ZERO;
+ break;
+ default:
+ nucomp_real_check(abs);
+ nucomp_real_check(arg);
+ break;
+ }
return f_complex_polar(klass, abs, arg);
}
+/*
+ * call-seq:
+ * cmp.real -> real
+ *
+ * Returns the real part.
+ */
static VALUE
nucomp_real(VALUE self)
{
@@ -536,6 +623,13 @@ nucomp_real(VALUE self)
return dat->real;
}
+/*
+ * call-seq:
+ * cmp.imag -> real
+ * cmp.imaginary -> real
+ *
+ * Returns the imaginary part.
+ */
static VALUE
nucomp_imag(VALUE self)
{
@@ -543,6 +637,12 @@ nucomp_imag(VALUE self)
return dat->imag;
}
+/*
+ * call-seq:
+ * -cmp -> complex
+ *
+ * Returns negation of the value.
+ */
static VALUE
nucomp_negate(VALUE self)
{
@@ -551,16 +651,17 @@ nucomp_negate(VALUE self)
f_negate(dat->real), f_negate(dat->imag));
}
-static VALUE
-nucomp_add(VALUE self, VALUE other)
+inline static VALUE
+f_addsub(VALUE self, VALUE other,
+ VALUE (*func)(VALUE, VALUE), ID id)
{
if (k_complex_p(other)) {
VALUE real, imag;
get_dat2(self, other);
- real = f_add(adat->real, bdat->real);
- imag = f_add(adat->imag, bdat->imag);
+ real = (*func)(adat->real, bdat->real);
+ imag = (*func)(adat->imag, bdat->imag);
return f_complex_new2(CLASS_OF(self), real, imag);
}
@@ -568,33 +669,41 @@ nucomp_add(VALUE self, VALUE other)
get_dat1(self);
return f_complex_new2(CLASS_OF(self),
- f_add(dat->real, other), dat->imag);
+ (*func)(dat->real, other), dat->imag);
}
- return rb_num_coerce_bin(self, other, '+');
+ return rb_num_coerce_bin(self, other, id);
}
+/*
+ * call-seq:
+ * cmp + numeric -> complex
+ *
+ * Performs addition.
+ */
static VALUE
-nucomp_sub(VALUE self, VALUE other)
+nucomp_add(VALUE self, VALUE other)
{
- if (k_complex_p(other)) {
- VALUE real, imag;
-
- get_dat2(self, other);
-
- real = f_sub(adat->real, bdat->real);
- imag = f_sub(adat->imag, bdat->imag);
-
- return f_complex_new2(CLASS_OF(self), real, imag);
- }
- if (k_numeric_p(other) && f_real_p(other)) {
- get_dat1(self);
+ return f_addsub(self, other, f_add, '+');
+}
- return f_complex_new2(CLASS_OF(self),
- f_sub(dat->real, other), dat->imag);
- }
- return rb_num_coerce_bin(self, other, '-');
+/*
+ * call-seq:
+ * cmp - numeric -> complex
+ *
+ * Performs subtraction.
+ */
+static VALUE
+nucomp_sub(VALUE self, VALUE other)
+{
+ return f_addsub(self, other, f_sub, '-');
}
+/*
+ * call-seq:
+ * cmp * numeric -> complex
+ *
+ * Performs multiplication.
+ */
static VALUE
nucomp_mul(VALUE self, VALUE other)
{
@@ -606,7 +715,7 @@ nucomp_mul(VALUE self, VALUE other)
real = f_sub(f_mul(adat->real, bdat->real),
f_mul(adat->imag, bdat->imag));
imag = f_add(f_mul(adat->real, bdat->imag),
- f_mul(adat->imag, bdat->real));
+ f_mul(adat->imag, bdat->real));
return f_complex_new2(CLASS_OF(self), real, imag);
}
@@ -620,149 +729,262 @@ nucomp_mul(VALUE self, VALUE other)
return rb_num_coerce_bin(self, other, '*');
}
-#define f_div f_quo
-
-static VALUE
-nucomp_div(VALUE self, VALUE other)
+inline static VALUE
+f_divide(VALUE self, VALUE other,
+ VALUE (*func)(VALUE, VALUE), ID id)
{
if (k_complex_p(other)) {
+ int flo;
get_dat2(self, other);
- if (TYPE(adat->real) == T_FLOAT ||
- TYPE(adat->imag) == T_FLOAT ||
- TYPE(bdat->real) == T_FLOAT ||
- TYPE(bdat->imag) == T_FLOAT) {
- VALUE magn = m_hypot(bdat->real, bdat->imag);
- VALUE tmp = f_complex_new_bang2(CLASS_OF(self),
- f_div(bdat->real, magn),
- f_div(bdat->imag, magn));
- return f_div(f_mul(self, f_conj(tmp)), magn);
+ flo = (k_float_p(adat->real) || k_float_p(adat->imag) ||
+ k_float_p(bdat->real) || k_float_p(bdat->imag));
+
+ if (f_gt_p(f_abs(bdat->real), f_abs(bdat->imag))) {
+ VALUE r, n;
+
+ r = (*func)(bdat->imag, bdat->real);
+ n = f_mul(bdat->real, f_add(ONE, f_mul(r, r)));
+ if (flo)
+ return f_complex_new2(CLASS_OF(self),
+ (*func)(self, n),
+ (*func)(f_negate(f_mul(self, r)), n));
+ return f_complex_new2(CLASS_OF(self),
+ (*func)(f_add(adat->real,
+ f_mul(adat->imag, r)), n),
+ (*func)(f_sub(adat->imag,
+ f_mul(adat->real, r)), n));
+ }
+ else {
+ VALUE r, n;
+
+ r = (*func)(bdat->real, bdat->imag);
+ n = f_mul(bdat->imag, f_add(ONE, f_mul(r, r)));
+ if (flo)
+ return f_complex_new2(CLASS_OF(self),
+ (*func)(f_mul(self, r), n),
+ (*func)(f_negate(self), n));
+ return f_complex_new2(CLASS_OF(self),
+ (*func)(f_add(f_mul(adat->real, r),
+ adat->imag), n),
+ (*func)(f_sub(f_mul(adat->imag, r),
+ adat->real), n));
}
- return f_div(f_mul(self, f_conj(other)), f_abs2(other));
}
if (k_numeric_p(other) && f_real_p(other)) {
get_dat1(self);
return f_complex_new2(CLASS_OF(self),
- f_div(dat->real, other),
- f_div(dat->imag, other));
+ (*func)(dat->real, other),
+ (*func)(dat->imag, other));
}
- return rb_num_coerce_bin(self, other, '/');
+ return rb_num_coerce_bin(self, other, id);
+}
+
+#define rb_raise_zerodiv() rb_raise(rb_eZeroDivError, "divided by 0")
+
+/*
+ * call-seq:
+ * cmp / numeric -> complex
+ * cmp.quo(numeric) -> complex
+ *
+ * Performs division.
+ *
+ * For example:
+ *
+ * Complex(10.0) / 3 #=> (3.3333333333333335+(0/1)*i)
+ * Complex(10) / 3 #=> ((10/3)+(0/1)*i) # not (3+0i)
+ */
+static VALUE
+nucomp_div(VALUE self, VALUE other)
+{
+ return f_divide(self, other, f_quo, id_quo);
}
-#undef f_div
#define nucomp_quo nucomp_div
+/*
+ * call-seq:
+ * cmp.fdiv(numeric) -> complex
+ *
+ * Performs division as each part is a float, never returns a float.
+ *
+ * For example:
+ *
+ * Complex(11,22).fdiv(3) #=> (3.6666666666666665+7.333333333333333i)
+ */
static VALUE
nucomp_fdiv(VALUE self, VALUE other)
{
- get_dat1(self);
+ return f_divide(self, other, f_fdiv, id_fdiv);
+}
- return f_div(f_complex_new2(CLASS_OF(self),
- f_to_f(dat->real),
- f_to_f(dat->imag)), other);
+inline static VALUE
+f_reciprocal(VALUE x)
+{
+ return f_quo(ONE, x);
}
+/*
+ * call-seq:
+ * cmp ** numeric -> complex
+ *
+ * Performs exponentiation.
+ *
+ * For example:
+ *
+ * Complex('i') ** 2 #=> (-1+0i)
+ * Complex(-8) ** Rational(1,3) #=> (1.0000000000000002+1.7320508075688772i)
+ */
static VALUE
nucomp_expt(VALUE self, VALUE other)
{
- if (k_exact_p(other) && f_zero_p(other))
+ if (k_numeric_p(other) && k_exact_zero_p(other))
return f_complex_new_bang1(CLASS_OF(self), ONE);
if (k_rational_p(other) && f_one_p(f_denominator(other)))
- other = f_numerator(other); /* good? */
+ other = f_numerator(other); /* c14n */
if (k_complex_p(other)) {
- VALUE a, r, theta, ore, oim, nr, ntheta;
+ get_dat1(other);
+
+ if (k_exact_zero_p(dat->imag))
+ other = dat->real; /* c14n */
+ }
+
+ if (k_complex_p(other)) {
+ VALUE r, theta, nr, ntheta;
get_dat1(other);
- a = f_polar(self);
- r = RARRAY_PTR(a)[0];
- theta = RARRAY_PTR(a)[1];
+ r = f_abs(self);
+ theta = f_arg(self);
- ore = dat->real;
- oim = dat->imag;
- nr = m_exp_bang(f_sub(f_mul(ore, m_log_bang(r)),
- f_mul(oim, theta)));
- ntheta = f_add(f_mul(theta, ore), f_mul(oim, m_log_bang(r)));
+ nr = m_exp_bang(f_sub(f_mul(dat->real, m_log_bang(r)),
+ f_mul(dat->imag, theta)));
+ ntheta = f_add(f_mul(theta, dat->real),
+ f_mul(dat->imag, m_log_bang(r)));
return f_complex_polar(CLASS_OF(self), nr, ntheta);
}
- if (k_integer_p(other)) {
+ if (k_fixnum_p(other)) {
if (f_gt_p(other, ZERO)) {
- VALUE x, z, n;
+ VALUE x, z;
+ long n;
x = self;
z = x;
- n = f_sub(other, ONE);
+ n = FIX2LONG(other) - 1;
- while (f_nonzero_p(n)) {
- VALUE a;
+ while (n) {
+ long q, r;
- while (a = f_divmod(n, TWO),
- f_zero_p(RARRAY_PTR(a)[1])) {
+ while (1) {
get_dat1(x);
+ q = n / 2;
+ r = n % 2;
+
+ if (r)
+ break;
+
x = f_complex_new2(CLASS_OF(self),
f_sub(f_mul(dat->real, dat->real),
f_mul(dat->imag, dat->imag)),
f_mul(f_mul(TWO, dat->real), dat->imag));
- n = RARRAY_PTR(a)[0];
+ n = q;
}
z = f_mul(z, x);
- n = f_sub(n, ONE);
+ n--;
}
return z;
}
- return f_expt(f_div(f_to_r(ONE), self), f_negate(other));
+ return f_expt(f_reciprocal(self), f_negate(other));
}
if (k_numeric_p(other) && f_real_p(other)) {
- VALUE a, r, theta;
+ VALUE r, theta;
+
+ if (k_bignum_p(other))
+ rb_warn("in a**b, b may be too big");
+
+ r = f_abs(self);
+ theta = f_arg(self);
- a = f_polar(self);
- r = RARRAY_PTR(a)[0];
- theta = RARRAY_PTR(a)[1];
return f_complex_polar(CLASS_OF(self), f_expt(r, other),
- f_mul(theta, other));
+ f_mul(theta, other));
}
return rb_num_coerce_bin(self, other, id_expt);
}
+/*
+ * call-seq:
+ * cmp == object -> true or false
+ *
+ * Returns true if cmp equals object numerically.
+ */
static VALUE
-nucomp_equal_p(VALUE self, VALUE other)
+nucomp_eqeq_p(VALUE self, VALUE other)
{
if (k_complex_p(other)) {
get_dat2(self, other);
- return f_boolcast(f_equal_p(adat->real, bdat->real) &&
- f_equal_p(adat->imag, bdat->imag));
+ return f_boolcast(f_eqeq_p(adat->real, bdat->real) &&
+ f_eqeq_p(adat->imag, bdat->imag));
}
if (k_numeric_p(other) && f_real_p(other)) {
get_dat1(self);
- return f_boolcast(f_equal_p(dat->real, other) && f_zero_p(dat->imag));
+ return f_boolcast(f_eqeq_p(dat->real, other) && f_zero_p(dat->imag));
}
- return f_equal_p(other, self);
+ return f_eqeq_p(other, self);
}
+/* :nodoc: */
static VALUE
nucomp_coerce(VALUE self, VALUE other)
{
if (k_numeric_p(other) && f_real_p(other))
return rb_assoc_new(f_complex_new_bang1(CLASS_OF(self), other), self);
+ if (TYPE(other) == T_COMPLEX)
+ return rb_assoc_new(other, self);
rb_raise(rb_eTypeError, "%s can't be coerced into %s",
rb_obj_classname(other), rb_obj_classname(self));
return Qnil;
}
+/*
+ * call-seq:
+ * cmp.abs -> real
+ * cmp.magnitude -> real
+ *
+ * Returns the absolute part of its polar form.
+ */
static VALUE
nucomp_abs(VALUE self)
{
get_dat1(self);
+
+ if (f_zero_p(dat->real)) {
+ VALUE a = f_abs(dat->imag);
+ if (k_float_p(dat->real) && !k_float_p(dat->imag))
+ a = f_to_f(a);
+ return a;
+ }
+ if (f_zero_p(dat->imag)) {
+ VALUE a = f_abs(dat->real);
+ if (!k_float_p(dat->real) && k_float_p(dat->imag))
+ a = f_to_f(a);
+ return a;
+ }
return m_hypot(dat->real, dat->imag);
}
+/*
+ * call-seq:
+ * cmp.abs2 -> real
+ *
+ * Returns square of the absolute value.
+ */
static VALUE
nucomp_abs2(VALUE self)
{
@@ -771,6 +993,17 @@ nucomp_abs2(VALUE self)
f_mul(dat->imag, dat->imag));
}
+/*
+ * call-seq:
+ * cmp.arg -> float
+ * cmp.angle -> float
+ * cmp.phase -> float
+ *
+ * Returns the angle part of its polar form.
+ *
+ * Complex.polar(3, Math::PI/2).arg #=> 1.5707963267948966
+ *
+ */
static VALUE
nucomp_arg(VALUE self)
{
@@ -778,6 +1011,13 @@ nucomp_arg(VALUE self)
return m_atan2_bang(dat->imag, dat->real);
}
+/*
+ * call-seq:
+ * cmp.rect -> array
+ * cmp.rectangular -> array
+ *
+ * Returns an array; [cmp.real, cmp.imag].
+ */
static VALUE
nucomp_rect(VALUE self)
{
@@ -785,12 +1025,25 @@ nucomp_rect(VALUE self)
return rb_assoc_new(dat->real, dat->imag);
}
+/*
+ * call-seq:
+ * cmp.polar -> array
+ *
+ * Returns an array; [cmp.abs, cmp.arg].
+ */
static VALUE
nucomp_polar(VALUE self)
{
return rb_assoc_new(f_abs(self), f_arg(self));
}
+/*
+ * call-seq:
+ * cmp.conj -> complex
+ * cmp.conjugate -> complex
+ *
+ * Returns the complex conjugate.
+ */
static VALUE
nucomp_conj(VALUE self)
{
@@ -799,6 +1052,7 @@ nucomp_conj(VALUE self)
}
#if 0
+/* :nodoc: */
static VALUE
nucomp_true(VALUE self)
{
@@ -806,6 +1060,12 @@ nucomp_true(VALUE self)
}
#endif
+/*
+ * call-seq:
+ * cmp.real? -> false
+ *
+ * Returns false.
+ */
static VALUE
nucomp_false(VALUE self)
{
@@ -813,13 +1073,15 @@ nucomp_false(VALUE self)
}
#if 0
+/* :nodoc: */
static VALUE
nucomp_exact_p(VALUE self)
{
get_dat1(self);
- return f_boolcast(f_exact_p(dat->real) && f_exact_p(dat->imag));
+ return f_boolcast(k_exact_p(dat->real) && k_exact_p(dat->imag));
}
+/* :nodoc: */
static VALUE
nucomp_inexact_p(VALUE self)
{
@@ -827,8 +1089,14 @@ nucomp_inexact_p(VALUE self)
}
#endif
-extern VALUE rb_lcm(VALUE x, VALUE y);
-
+/*
+ * call-seq:
+ * cmp.denominator -> integer
+ *
+ * Returns the denominator (lcm of both denominator - real and imag).
+ *
+ * See numerator.
+ */
static VALUE
nucomp_denominator(VALUE self)
{
@@ -836,6 +1104,26 @@ nucomp_denominator(VALUE self)
return rb_lcm(f_denominator(dat->real), f_denominator(dat->imag));
}
+/*
+ * call-seq:
+ * cmp.numerator -> numeric
+ *
+ * Returns the numerator.
+ *
+ * For example:
+ *
+ * 1 2 3+4i <- numerator
+ * - + -i -> ----
+ * 2 3 6 <- denominator
+ *
+ * c = Complex('1/2+2/3i') #=> ((1/2)+(2/3)*i)
+ * n = c.numerator #=> (3+4i)
+ * d = c.denominator #=> 6
+ * n / d #=> ((1/2)+(2/3)*i)
+ * Complex(Rational(n.real, d), Rational(n.imag, d))
+ * #=> ((1/2)+(2/3)*i)
+ * See denominator.
+ */
static VALUE
nucomp_numerator(VALUE self)
{
@@ -851,22 +1139,23 @@ nucomp_numerator(VALUE self)
f_div(cd, f_denominator(dat->imag))));
}
+/* :nodoc: */
static VALUE
nucomp_hash(VALUE self)
{
- long v, h[3];
+ st_index_t v, h[2];
VALUE n;
get_dat1(self);
- h[0] = rb_hash(rb_obj_class(self));
n = rb_hash(dat->real);
- h[1] = NUM2LONG(n);
+ h[0] = NUM2LONG(n);
n = rb_hash(dat->imag);
- h[2] = NUM2LONG(n);
+ h[1] = NUM2LONG(n);
v = rb_memhash(h, sizeof(h));
return LONG2FIX(v);
}
+/* :nodoc: */
static VALUE
nucomp_eql_p(VALUE self, VALUE other)
{
@@ -875,34 +1164,23 @@ nucomp_eql_p(VALUE self, VALUE other)
return f_boolcast((CLASS_OF(adat->real) == CLASS_OF(bdat->real)) &&
(CLASS_OF(adat->imag) == CLASS_OF(bdat->imag)) &&
- f_equal_p(self, other));
+ f_eqeq_p(self, other));
}
return Qfalse;
}
-#ifndef HAVE_SIGNBIT
-#ifdef signbit
-#define HAVE_SIGNBIT 1
-#endif
-#endif
-
inline static VALUE
f_signbit(VALUE x)
{
+#if defined(HAVE_SIGNBIT) && defined(__GNUC__) && defined(__sun__) && \
+ !defined(signbit)
+ extern int signbit(double);
+#endif
switch (TYPE(x)) {
case T_FLOAT: {
-#ifdef HAVE_SIGNBIT
double f = RFLOAT_VALUE(x);
return f_boolcast(!isnan(f) && signbit(f));
-#else
- char s[2];
- double f = RFLOAT_VALUE(x);
-
- if (isnan(f)) return Qfalse;
- (void)snprintf(s, sizeof s, "%.0f", f);
- return f_boolcast(s[0] == '-');
-#endif
}
}
return f_negative_p(x);
@@ -915,7 +1193,7 @@ f_tpositive_p(VALUE x)
}
static VALUE
-nucomp_format(VALUE self, VALUE (*func)(VALUE))
+f_format(VALUE self, VALUE (*func)(VALUE))
{
VALUE s, impos;
@@ -934,24 +1212,37 @@ nucomp_format(VALUE self, VALUE (*func)(VALUE))
return s;
}
+/*
+ * call-seq:
+ * cmp.to_s -> string
+ *
+ * Returns the value as a string.
+ */
static VALUE
nucomp_to_s(VALUE self)
{
- return nucomp_format(self, f_to_s);
+ return f_format(self, f_to_s);
}
+/*
+ * call-seq:
+ * cmp.inspect -> string
+ *
+ * Returns the value as a string for inspection.
+ */
static VALUE
nucomp_inspect(VALUE self)
{
VALUE s;
s = rb_usascii_str_new2("(");
- rb_str_concat(s, nucomp_format(self, f_inspect));
+ rb_str_concat(s, f_format(self, f_inspect));
rb_str_cat2(s, ")");
return s;
}
+/* :nodoc: */
static VALUE
nucomp_marshal_dump(VALUE self)
{
@@ -963,10 +1254,14 @@ nucomp_marshal_dump(VALUE self)
return a;
}
+/* :nodoc: */
static VALUE
nucomp_marshal_load(VALUE self, VALUE a)
{
get_dat1(self);
+ Check_Type(a, T_ARRAY);
+ if (RARRAY_LEN(a) != 2)
+ rb_raise(rb_eArgError, "marshaled complex must have an array whose length is 2 but %ld", RARRAY_LEN(a));
dat->real = RARRAY_PTR(a)[0];
dat->imag = RARRAY_PTR(a)[1];
rb_copy_generic_ivar(self, a);
@@ -990,7 +1285,7 @@ rb_complex_new(VALUE x, VALUE y)
VALUE
rb_complex_polar(VALUE x, VALUE y)
{
- return nucomp_s_polar(rb_cComplex, x, y);
+ return f_complex_polar(rb_cComplex, x, y);
}
static VALUE nucomp_s_convert(int argc, VALUE *argv, VALUE klass);
@@ -1004,6 +1299,12 @@ rb_Complex(VALUE x, VALUE y)
return nucomp_s_convert(2, a, rb_cComplex);
}
+/*
+ * call-seq:
+ * cmp.to_i -> integer
+ *
+ * Returns the value as an integer if possible.
+ */
static VALUE
nucomp_to_i(VALUE self)
{
@@ -1017,6 +1318,12 @@ nucomp_to_i(VALUE self)
return f_to_i(dat->real);
}
+/*
+ * call-seq:
+ * cmp.to_f -> float
+ *
+ * Returns the value as a float if possible.
+ */
static VALUE
nucomp_to_f(VALUE self)
{
@@ -1030,6 +1337,13 @@ nucomp_to_f(VALUE self)
return f_to_f(dat->real);
}
+/*
+ * call-seq:
+ * cmp.to_r -> rational
+ *
+ * If the imaginary part is exactly 0, returns the real part as a Rational,
+ * otherwise a RangeError is raised.
+ */
static VALUE
nucomp_to_r(VALUE self)
{
@@ -1043,12 +1357,46 @@ nucomp_to_r(VALUE self)
return f_to_r(dat->real);
}
+/*
+ * call-seq:
+ * cmp.rationalize([eps]) -> rational
+ *
+ * If the imaginary part is exactly 0, returns the real part as a Rational,
+ * otherwise a RangeError is raised.
+ */
+static VALUE
+nucomp_rationalize(int argc, VALUE *argv, VALUE self)
+{
+ get_dat1(self);
+
+ rb_scan_args(argc, argv, "01", NULL);
+
+ if (k_inexact_p(dat->imag) || f_nonzero_p(dat->imag)) {
+ VALUE s = f_to_s(self);
+ rb_raise(rb_eRangeError, "can't convert %s into Rational",
+ StringValuePtr(s));
+ }
+ return rb_funcall2(dat->real, rb_intern("rationalize"), argc, argv);
+}
+
+/*
+ * call-seq:
+ * nil.to_c -> (0+0i)
+ *
+ * Returns zero as a complex.
+ */
static VALUE
nilclass_to_c(VALUE self)
{
return rb_complex_new1(INT2FIX(0));
}
+/*
+ * call-seq:
+ * num.to_c -> complex
+ *
+ * Returns the value as a complex.
+ */
static VALUE
numeric_to_c(VALUE self)
{
@@ -1059,7 +1407,7 @@ static VALUE comp_pat0, comp_pat1, comp_pat2, a_slash, a_dot_and_an_e,
null_string, underscores_pat, an_underscore;
#define WS "\\s*"
-#define DIGITS "(?:\\d(?:_\\d|\\d)*)"
+#define DIGITS "(?:[0-9](?:_[0-9]|[0-9])*)"
#define NUMERATOR "(?:" DIGITS "?\\.)?" DIGITS "(?:[eE][-+]?" DIGITS ")?"
#define DENOMINATOR DIGITS
#define NUMBER "[-+]?" NUMERATOR "(?:\\/" DENOMINATOR ")?"
@@ -1105,25 +1453,10 @@ make_patterns(void)
}
#define id_match rb_intern("match")
-#define f_match(x,y) rb_funcall(x, id_match, 1, y)
-
-#define id_aref rb_intern("[]")
-#define f_aref(x,y) rb_funcall(x, id_aref, 1, y)
-
-#define id_post_match rb_intern("post_match")
-#define f_post_match(x) rb_funcall(x, id_post_match, 0)
-
-#define id_split rb_intern("split")
-#define f_split(x,y) rb_funcall(x, id_split, 1, y)
-
-#define id_include_p rb_intern("include?")
-#define f_include_p(x,y) rb_funcall(x, id_include_p, 1, y)
-
-#define id_count rb_intern("count")
-#define f_count(x,y) rb_funcall(x, id_count, 1, y)
+#define f_match(x,y) rb_funcall((x), id_match, 1, (y))
#define id_gsub_bang rb_intern("gsub!")
-#define f_gsub_bang(x,y,z) rb_funcall(x, id_gsub_bang, 2, y, z)
+#define f_gsub_bang(x,y,z) rb_funcall((x), id_gsub_bang, 2, (y), (z))
static VALUE
string_to_c_internal(VALUE self)
@@ -1141,27 +1474,27 @@ string_to_c_internal(VALUE self)
m = f_match(comp_pat0, s);
if (!NIL_P(m)) {
- sr = f_aref(m, INT2FIX(1));
- si = f_aref(m, INT2FIX(2));
- re = f_post_match(m);
- po = 1;
+ sr = rb_reg_nth_match(1, m);
+ si = rb_reg_nth_match(2, m);
+ re = rb_reg_match_post(m);
+ po = 1;
}
if (NIL_P(m)) {
m = f_match(comp_pat1, s);
if (!NIL_P(m)) {
sr = Qnil;
- si = f_aref(m, INT2FIX(1));
+ si = rb_reg_nth_match(1, m);
if (NIL_P(si))
si = rb_usascii_str_new2("");
{
VALUE t;
- t = f_aref(m, INT2FIX(2));
+ t = rb_reg_nth_match(2, m);
if (NIL_P(t))
t = rb_usascii_str_new2("1");
rb_str_concat(si, t);
}
- re = f_post_match(m);
+ re = rb_reg_match_post(m);
po = 0;
}
}
@@ -1169,35 +1502,35 @@ string_to_c_internal(VALUE self)
m = f_match(comp_pat2, s);
if (NIL_P(m))
return rb_assoc_new(Qnil, self);
- sr = f_aref(m, INT2FIX(1));
- if (NIL_P(f_aref(m, INT2FIX(2))))
+ sr = rb_reg_nth_match(1, m);
+ if (NIL_P(rb_reg_nth_match(2, m)))
si = Qnil;
else {
VALUE t;
- si = f_aref(m, INT2FIX(3));
- t = f_aref(m, INT2FIX(4));
+ si = rb_reg_nth_match(3, m);
+ t = rb_reg_nth_match(4, m);
if (NIL_P(t))
t = rb_usascii_str_new2("1");
rb_str_concat(si, t);
}
- re = f_post_match(m);
+ re = rb_reg_match_post(m);
po = 0;
}
r = INT2FIX(0);
i = INT2FIX(0);
if (!NIL_P(sr)) {
- if (f_include_p(sr, a_slash))
+ if (strchr(RSTRING_PTR(sr), '/'))
r = f_to_r(sr);
- else if (f_gt_p(f_count(sr, a_dot_and_an_e), INT2FIX(0)))
+ else if (strpbrk(RSTRING_PTR(sr), ".eE"))
r = f_to_f(sr);
else
r = f_to_i(sr);
}
if (!NIL_P(si)) {
- if (f_include_p(si, a_slash))
+ if (strchr(RSTRING_PTR(si), '/'))
i = f_to_r(si);
- else if (f_gt_p(f_count(si, a_dot_and_an_e), INT2FIX(0)))
+ else if (strpbrk(RSTRING_PTR(si), ".eE"))
i = f_to_f(si);
else
i = f_to_i(si);
@@ -1222,8 +1555,31 @@ string_to_c_strict(VALUE self)
}
#define id_gsub rb_intern("gsub")
-#define f_gsub(x,y,z) rb_funcall(x, id_gsub, 2, y, z)
+#define f_gsub(x,y,z) rb_funcall((x), id_gsub, 2, (y), (z))
+/*
+ * call-seq:
+ * str.to_c -> complex
+ *
+ * Returns a complex which denotes the string form. The parser
+ * ignores leading whitespaces and trailing garbage. Any digit
+ * sequences can be separated by an underscore. Returns zero for null
+ * or garbage string.
+ *
+ * For example:
+ *
+ * '9'.to_c #=> (9+0i)
+ * '2.5'.to_c #=> (2.5+0i)
+ * '2.5/1'.to_c #=> ((5/2)+0i)
+ * '-3/2'.to_c #=> ((-3/2)+0i)
+ * '-i'.to_c #=> (0-1i)
+ * '45i'.to_c #=> (0+45i)
+ * '3-4i'.to_c #=> (3-4i)
+ * '-4e2-4e-2i'.to_c #=> (-400.0-0.04i)
+ * '-0.0-0.0i'.to_c #=> (-0.0-0.0i)
+ * '1/2+3/4i'.to_c #=> ((1/2)+(3/4)*i)
+ * 'ruby'.to_c #=> (0+0i)
+ */
static VALUE
string_to_c(VALUE self)
{
@@ -1249,6 +1605,9 @@ nucomp_s_convert(int argc, VALUE *argv, VALUE klass)
rb_scan_args(argc, argv, "11", &a1, &a2);
+ if (NIL_P(a1) || (argc == 2 && NIL_P(a2)))
+ rb_raise(rb_eTypeError, "can't convert nil into Complex");
+
backref = rb_backref_get();
rb_match_busy(backref);
@@ -1279,7 +1638,7 @@ nucomp_s_convert(int argc, VALUE *argv, VALUE klass)
{
get_dat1(a1);
- if (k_exact_p(dat->imag) && f_zero_p(dat->imag))
+ if (k_exact_zero_p(dat->imag))
a1 = dat->real;
}
}
@@ -1289,20 +1648,23 @@ nucomp_s_convert(int argc, VALUE *argv, VALUE klass)
{
get_dat1(a2);
- if (k_exact_p(dat->imag) && f_zero_p(dat->imag))
+ if (k_exact_zero_p(dat->imag))
a2 = dat->real;
}
}
switch (TYPE(a1)) {
case T_COMPLEX:
- if (argc == 1 || (k_exact_p(a2) && f_zero_p(a2)))
+ if (argc == 1 || (k_exact_zero_p(a2)))
return a1;
}
if (argc == 1) {
if (k_numeric_p(a1) && !f_real_p(a1))
return a1;
+ /* should raise exception for consistency */
+ if (!k_numeric_p(a1))
+ return rb_convert_type(a1, T_COMPLEX, "Complex", "to_c");
}
else {
if ((k_numeric_p(a1) && k_numeric_p(a2)) &&
@@ -1322,18 +1684,37 @@ nucomp_s_convert(int argc, VALUE *argv, VALUE klass)
/* --- */
+/*
+ * call-seq:
+ * num.real -> self
+ *
+ * Returns self.
+ */
static VALUE
numeric_real(VALUE self)
{
return self;
}
+/*
+ * call-seq:
+ * num.imag -> 0
+ * num.imaginary -> 0
+ *
+ * Returns zero.
+ */
static VALUE
numeric_imag(VALUE self)
{
return INT2FIX(0);
}
+/*
+ * call-seq:
+ * num.abs2 -> real
+ *
+ * Returns square of self.
+ */
static VALUE
numeric_abs2(VALUE self)
{
@@ -1342,6 +1723,14 @@ numeric_abs2(VALUE self)
#define id_PI rb_intern("PI")
+/*
+ * call-seq:
+ * num.arg -> 0 or float
+ * num.angle -> 0 or float
+ * num.phase -> 0 or float
+ *
+ * Returns 0 if the value is positive, pi otherwise.
+ */
static VALUE
numeric_arg(VALUE self)
{
@@ -1350,24 +1739,93 @@ numeric_arg(VALUE self)
return rb_const_get(rb_mMath, id_PI);
}
+/*
+ * call-seq:
+ * num.rect -> array
+ *
+ * Returns an array; [num, 0].
+ */
static VALUE
numeric_rect(VALUE self)
{
return rb_assoc_new(self, INT2FIX(0));
}
+/*
+ * call-seq:
+ * num.polar -> array
+ *
+ * Returns an array; [num.abs, num.arg].
+ */
static VALUE
numeric_polar(VALUE self)
{
return rb_assoc_new(f_abs(self), f_arg(self));
}
+/*
+ * call-seq:
+ * num.conj -> self
+ * num.conjugate -> self
+ *
+ * Returns self.
+ */
static VALUE
numeric_conj(VALUE self)
{
return self;
}
+/*
+ * call-seq:
+ * flo.arg -> 0 or float
+ * flo.angle -> 0 or float
+ * flo.phase -> 0 or float
+ *
+ * Returns 0 if the value is positive, pi otherwise.
+ */
+static VALUE
+float_arg(VALUE self)
+{
+ if (isnan(RFLOAT_VALUE(self)))
+ return self;
+ if (f_tpositive_p(self))
+ return INT2FIX(0);
+ return rb_const_get(rb_mMath, id_PI);
+}
+
+/*
+ * A complex number can be represented as a paired real number with
+ * imaginary unit; a+bi. Where a is real part, b is imaginary part
+ * and i is imaginary unit. Real a equals complex a+0i
+ * mathematically.
+ *
+ * In ruby, you can create complex object with Complex, Complex::rect,
+ * Complex::polar or to_c method.
+ *
+ * Complex(1) #=> (1+0i)
+ * Complex(2, 3) #=> (2+3i)
+ * Complex.polar(2, 3) #=> (-1.9799849932008908+0.2822400161197344i)
+ * 3.to_c #=> (3+0i)
+ *
+ * You can also create complex object from floating-point numbers or
+ * strings.
+ *
+ * Complex(0.3) #=> (0.3+0i)
+ * Complex('0.3-0.5i') #=> (0.3-0.5i)
+ * Complex('2/3+3/4i') #=> ((2/3)+(3/4)*i)
+ * Complex('1@2') #=> (-0.4161468365471424+0.9092974268256817i)
+ *
+ * 0.3.to_c #=> (0.3+0i)
+ * '0.3-0.5i'.to_c #=> (0.3-0.5i)
+ * '2/3+3/4i'.to_c #=> ((2/3)+(3/4)*i)
+ * '1@2'.to_c #=> (-0.4161468365471424+0.9092974268256817i)
+ *
+ * A complex object is either an exact or an inexact number.
+ *
+ * Complex(1, 1) / 2 #=> ((1/2)+(1/2)*i)
+ * Complex(1, 1) / 2.0 #=> (0.5+0.5i)
+ */
void
Init_Complex(void)
{
@@ -1384,22 +1842,24 @@ Init_Complex(void)
id_convert = rb_intern("convert");
id_denominator = rb_intern("denominator");
id_divmod = rb_intern("divmod");
- id_equal_p = rb_intern("==");
+ id_eqeq_p = rb_intern("==");
id_expt = rb_intern("**");
+ id_fdiv = rb_intern("fdiv");
id_floor = rb_intern("floor");
id_idiv = rb_intern("div");
+ id_imag = rb_intern("imag");
id_inspect = rb_intern("inspect");
id_negate = rb_intern("-@");
id_numerator = rb_intern("numerator");
- id_polar = rb_intern("polar");
id_quo = rb_intern("quo");
+ id_real = rb_intern("real");
id_real_p = rb_intern("real?");
id_to_f = rb_intern("to_f");
id_to_i = rb_intern("to_i");
id_to_r = rb_intern("to_r");
id_to_s = rb_intern("to_s");
- rb_cComplex = rb_define_class(COMPLEX_NAME, rb_cNumeric);
+ rb_cComplex = rb_define_class("Complex", rb_cNumeric);
rb_define_alloc_func(rb_cComplex, nucomp_s_alloc);
rb_undef_method(CLASS_OF(rb_cComplex), "allocate");
@@ -1413,23 +1873,27 @@ Init_Complex(void)
rb_define_singleton_method(rb_cComplex, "rectangular", nucomp_s_new, -1);
rb_define_singleton_method(rb_cComplex, "rect", nucomp_s_new, -1);
- rb_define_singleton_method(rb_cComplex, "polar", nucomp_s_polar, 2);
+ rb_define_singleton_method(rb_cComplex, "polar", nucomp_s_polar, -1);
- rb_define_global_function(COMPLEX_NAME, nucomp_f_complex, -1);
+ rb_define_global_function("Complex", nucomp_f_complex, -1);
+ rb_undef_method(rb_cComplex, "%");
rb_undef_method(rb_cComplex, "<");
rb_undef_method(rb_cComplex, "<=");
rb_undef_method(rb_cComplex, "<=>");
rb_undef_method(rb_cComplex, ">");
rb_undef_method(rb_cComplex, ">=");
rb_undef_method(rb_cComplex, "between?");
+ rb_undef_method(rb_cComplex, "div");
rb_undef_method(rb_cComplex, "divmod");
rb_undef_method(rb_cComplex, "floor");
rb_undef_method(rb_cComplex, "ceil");
rb_undef_method(rb_cComplex, "modulo");
+ rb_undef_method(rb_cComplex, "remainder");
rb_undef_method(rb_cComplex, "round");
rb_undef_method(rb_cComplex, "step");
rb_undef_method(rb_cComplex, "truncate");
+ rb_undef_method(rb_cComplex, "i");
#if 0 /* NUBY */
rb_undef_method(rb_cComplex, "//");
@@ -1448,7 +1912,7 @@ Init_Complex(void)
rb_define_method(rb_cComplex, "fdiv", nucomp_fdiv, 1);
rb_define_method(rb_cComplex, "**", nucomp_expt, 1);
- rb_define_method(rb_cComplex, "==", nucomp_equal_p, 1);
+ rb_define_method(rb_cComplex, "==", nucomp_eqeq_p, 1);
rb_define_method(rb_cComplex, "coerce", nucomp_coerce, 1);
rb_define_method(rb_cComplex, "abs", nucomp_abs, 0);
@@ -1490,6 +1954,7 @@ Init_Complex(void)
rb_define_method(rb_cComplex, "to_i", nucomp_to_i, 0);
rb_define_method(rb_cComplex, "to_f", nucomp_to_f, 0);
rb_define_method(rb_cComplex, "to_r", nucomp_to_r, 0);
+ rb_define_method(rb_cComplex, "rationalize", nucomp_rationalize, -1);
rb_define_method(rb_cNilClass, "to_c", nilclass_to_c, 0);
rb_define_method(rb_cNumeric, "to_c", numeric_to_c, 0);
@@ -1514,6 +1979,10 @@ Init_Complex(void)
rb_define_method(rb_cNumeric, "conjugate", numeric_conj, 0);
rb_define_method(rb_cNumeric, "conj", numeric_conj, 0);
+ rb_define_method(rb_cFloat, "arg", float_arg, 0);
+ rb_define_method(rb_cFloat, "angle", float_arg, 0);
+ rb_define_method(rb_cFloat, "phase", float_arg, 0);
+
rb_define_const(rb_cComplex, "I",
f_complex_new_bang2(rb_cComplex, ZERO, ONE));
}
diff --git a/configure.in b/configure.in
index 3680a2d107..6d2468987c 100644
--- a/configure.in
+++ b/configure.in
@@ -1,6 +1,7 @@
dnl Process this file with autoconf to produce a configure script.
dnl {
AC_INIT()
+AC_CONFIG_AUX_DIR(tool)
AC_PREREQ(2.60)
@@ -8,23 +9,12 @@ AC_DEFUN([RUBY_PREREQ_AC],
[m4_if(m4_version_compare(m4_defn([m4_PACKAGE_VERSION]), [$1]), [-1],
AC_MSG_ERROR([Autoconf version ]$1[ or higher is required]$2))])
-AC_DEFUN([when], dnl [(] makes parentheses balanced.
-dnl note that spaces after comma need to be quoted.
-[[$*]][)])
-
dnl environment section {
AC_ARG_WITH(baseruby,
- AS_HELP_STRING([--with-baseruby=RUBY], [ use RUBY as baseruby; RUBY is the pathname of ruby]),
+ AS_HELP_STRING([--with-baseruby=RUBY], [use RUBY as baseruby; RUBY is the pathname of ruby]),
[
- case "$withval" in
- when(*ruby*)
- BASERUBY=$withval
- ;;
- when(*)
- AC_MSG_ERROR(need ruby)
- ;;
- esac
+ AS_CASE(["$withval"],[*ruby*],[BASERUBY=$withval],[AC_MSG_ERROR(need ruby)])
],
[
BASERUBY="ruby"
@@ -34,8 +24,8 @@ test "`RUBYOPT=- $BASERUBY -e 'p 42' 2>/dev/null`" = 42 ||
AC_SUBST(BASERUBY)
AC_DEFUN([RUBY_MINGW32],
-[case "$host_os" in
-when(cygwin*)
+[AS_CASE(["$host_os"],
+[cygwin*], [
AC_CACHE_CHECK(for mingw32 environment, rb_cv_mingw32,
[AC_TRY_CPP([
#ifndef __MINGW32__
@@ -44,8 +34,14 @@ AC_CACHE_CHECK(for mingw32 environment, rb_cv_mingw32,
], rb_cv_mingw32=yes,rb_cv_mingw32=no)
rm -f conftest*])
test "$rb_cv_mingw32" = yes && target_os="mingw32"
- ;;
-esac])
+])
+AS_CASE(["$target_os"], [mingw*msvc], [
+target_os="`echo ${target_os} | sed 's/msvc$//'`"
+])
+AS_CASE(["$target_cpu-$target_os"], [x86_64-mingw*], [
+target_cpu=x64
+])
+])
AC_DEFUN([RUBY_CPPOUTFILE],
[AC_CACHE_CHECK(whether ${CPP} accepts -o, rb_cv_cppoutfile,
@@ -74,7 +70,7 @@ fi
GNU_LD=$rb_cv_prog_gnu_ld
AC_SUBST(GNU_LD)])
-eval `sed -n 's/^#define RUBY_VERSION_\([A-Z][A-Z_0-9]*\) \([0-9][0-9]*\)/\1=\2/p' $srcdir/version.h`
+eval `sed -n 's/^#define RUBY_API_VERSION_\([A-Z][A-Z_0-9]*\) \([0-9][0-9]*\)/\1=\2/p' $srcdir/include/ruby/version.h`
for v in MAJOR MINOR TEENY; do
if eval "test \"\$$v\" = ''"; then
AC_MSG_ERROR(could not determine $v number from version.h)
@@ -83,30 +79,38 @@ done
AC_SUBST(MAJOR)
AC_SUBST(MINOR)
AC_SUBST(TEENY)
+RUBY_PROGRAM_VERSION=`sed -n 's/^#define RUBY_VERSION "\(.*\)"/\1/p' $srcdir/version.h`
+AC_SUBST(RUBY_PROGRAM_VERSION)
+RUBY_RELEASE_DATE=`sed -n 's/^#define RUBY_RELEASE_DATE "\(.*\)"/\1/p' $srcdir/version.h`
+AC_SUBST(RUBY_RELEASE_DATE)
if test "$MAJOR" = "1"; then
AC_DEFINE(CANONICALIZATION_FOR_MATHN)
fi
+
dnl checks for alternative programs
+AC_CANONICAL_BUILD
AC_ARG_WITH(gcc,
AS_HELP_STRING([--without-gcc], [never use gcc]),
[
- case $withval in
- when(no)
- : ${CC=cc}
- ;;
- when(yes)
- : ${CC=gcc}
- ;;
- when(*)
- CC=$withval
- ;;
- esac])
+ AS_CASE([$withval],
+ [no], [: ${CC=cc}],
+ [yes], [: ${CC=gcc}],
+ [CC=$withval])])
dnl If the user switches compilers, we can't believe the cache
if test ! -z "$ac_cv_prog_CC" -a ! -z "$CC" -a "$CC" != "$ac_cv_prog_CC"
then
AC_MSG_ERROR(cached CC is different -- throw away $cache_file
(it is also a good idea to do 'make clean' before compiling))
fi
+AS_CASE(["$build_os"],
+ [darwin11.*], [
+ AS_CASE(["x$CC"],
+ [xgcc-4.2|x/usr/bin/gcc-4.2], [: ${CXX=g++-4.2}],
+ [xgcc|x/usr/bin/gcc], [: ${CXX=g++}],
+ [xcc|x/usr/bin/cc], [: ${CXX=c++}],
+ [xclang|x/usr/bin/clang], [: ${CXX=clang++}])
+ ])
+test -z "$CC" || ac_cv_prog_CC="$CC"
if test "$program_prefix" = NONE; then
program_prefix=
@@ -121,49 +125,58 @@ target_os=`echo $target_os | sed 's/linux-gnu$/linux/;s/linux-gnu/linux-/'`
ac_install_sh='' # unusable for extension libraries.
AC_DEFUN([RUBY_APPEND_OPTION],
- [case " [$]{$1-} " in # RUBY_APPEND_OPTION($1, $2)
- when(*' $2 '*);; when(' ') $1="$2";; when(*) $1="[$]$1 $2";;
- esac])
+ [# RUBY_APPEND_OPTION($1, $2)
+ AS_CASE([" [$]{$1-} "],
+ [*' $2 '*], [], [' '], [ $1="$2"], [ $1="[$]$1 $2"])])
AC_DEFUN([RUBY_APPEND_OPTIONS],
[{ for rb_opt in $2; do # RUBY_APPEND_OPTIONS($1, $2)
- case " [$]{$1-} " in
- when(*" [$]{rb_opt} "*);; when(' ') $1="[$]{rb_opt}";; when(*) $1="[$]$1 [$]{rb_opt}";;
- esac
+ AS_CASE([" [$]{$1-} "],
+ [*" [$]{rb_opt} "*], [], [' '], [ $1="[$]{rb_opt}"], [ $1="[$]$1 [$]{rb_opt}"])
done; }])
AC_DEFUN([RUBY_PREPEND_OPTION],
- [case " [$]{$1-} " in # RUBY_PREPEND_OPTION($1, $2)
- when(*' $2 '*);; when(' ') $1="$2";; when(*) $1="$2 [$]$1";;
- esac])
+ [# RUBY_PREPEND_OPTION($1, $2)
+ AS_CASE([" [$]{$1-} "],
+ [*' $2 '*], [], [' '], [ $1="$2"], [ $1="$2 [$]$1"])])
AC_DEFUN([RUBY_PREPEND_OPTIONS],
[{ unset rb_opts; for rb_opt in $2; do # RUBY_PREPEND_OPTIONS($1, $2)
- case " [$]{rb_opts} [$]{$1-} " in
- when(*" [$]{rb_opt} "*);; when(' ') $1="[$]{rb_opt}";; when(*) rb_opts="[$]{rb_opts}[$]{rb_opt} ";;
- esac
+ AS_CASE([" [$]{rb_opts} [$]{$1-} "],
+ [*" [$]{rb_opt} "*], [], [' '], [ $1="[$]{rb_opt}"], [ rb_opts="[$]{rb_opts}[$]{rb_opt} "])
done
$1="[$]{rb_opts}[$]$1"; }])
AC_ARG_WITH(arch,
- AS_HELP_STRING([--with-arch=ARCHS],
+ AS_HELP_STRING([--with-arch=ARCHS],
[build an Apple/NeXT Multi Architecture Binary (MAB);
ARCHS is a comma-delimited list of architectures for
which to build; if this option is disabled or omitted
entirely, then the package will be built only for the
target platform]),
[target_archs="$withval"], [unset target_archs])
-test ${CFLAGS+set} && CFLAGS=`echo "$CFLAGS" | sed 's/ *-arch *[^ ]*//g'`
-test ${LDFLAGS+set} && LDFLAGS=`echo "$LDFLAGS" | sed 's/ *-arch *[^ ]*//g'`
-unset ARCH_FLAG universal_binary universal_archnames
+
+AC_DEFUN([RUBY_DEFAULT_ARCH], [
+AC_MSG_CHECKING([arch option])
+AS_CASE([$1],
+ [*64], [ARCH_FLAG=-m64],
+ [[i[3-6]86]], [ARCH_FLAG=-m32],
+ [AC_MSG_ERROR(unknown target architecture: $target_archs)]
+ )
+AC_MSG_RESULT([$ARCH_FLAG])
+])
+
+AC_DEFUN([RUBY_UNIVERSAL_ARCH], [
+# RUBY_UNIVERSAL_ARCH begin
+ARCH_FLAG=`expr " $CFLAGS " : ['.* \(-m[0-9][0-9]*\) ']`
+test ${CFLAGS+set} && CFLAGS=`echo "$CFLAGS" | sed -e 's/ *-arch *[^ ]*//g' -e 's/ *-m32//g' -e 's/ *-m64//g'`
+test ${LDFLAGS+set} && LDFLAGS=`echo "$LDFLAGS" | sed -e 's/ *-arch *[^ ]*//g' -e 's/ *-m32//g' -e 's/ *-m64//g'`
+unset universal_binary universal_archnames
if test ${target_archs+set}; then
AC_MSG_CHECKING([target architectures])
target_archs=`echo $target_archs | tr , ' '`
# /usr/lib/arch_tool -archify_list $TARGET_ARCHS
for archs in $target_archs
do
- case ",$universal_binary," in
- when(*",$archs,"*)
- ;;
- when(*)
- cpu=`$SHELL "$srcdir/config.sub" "${archs}-${target_os}" 2>&1` || {
+ AS_CASE([",$universal_binary,"],[*",$archs,"*], [],[
+ cpu=`$SHELL "$ac_aux_dir/config.sub" "${archs}-${target_os}" 2>&1` || {
AC_MSG_RESULT([failed])
AC_MSG_ERROR([$cpu])
}
@@ -171,44 +184,73 @@ if test ${target_archs+set}; then
universal_binary="${universal_binary+$universal_binary,}$cpu"
universal_archnames="${universal_archnames} ${archs}=${cpu}"
ARCH_FLAG="${ARCH_FLAG+$ARCH_FLAG }-arch $archs"
- ;;
- esac
+ ])
done
target_archs="$universal_binary"
unset universal_binary
- case "$target_archs" in
- when(*,*) universal_binary=yes;;
- when(*) unset universal_archnames;;
- esac
+ AS_CASE(["$target_archs"],
+ [*,*], [universal_binary=yes],
+ [unset universal_archnames])
AC_MSG_RESULT([$target_archs])
+ target=`echo $target | sed "s/^$target_cpu-/-/"`
+ target_alias=`echo $target_alias | sed "s/^$target_cpu-/-/"`
if test "${universal_binary-no}" = yes; then
RUBY_PREREQ_AC(2.63, [ to compile universal binary])
AC_SUBST(try_header,try_compile)
- target=`echo $target | sed "s/^$target_cpu-/universal-/"`
- target_alias=`echo $target_alias | sed "s/^$target_cpu-/universal-/"`
target_cpu=universal
+ real_cross_compiling=$cross_compiling
else
- target=`echo $target | sed "s/^$target_cpu-/${target_archs}-/"`
- target_alias=`echo $target_alias | sed "s/^$target_cpu-/${target_archs}-/"`
+ if test x"$target_cpu" != x"${target_archs}"; then
+ echo 'int main(){return 0;}' > conftest.c
+ if $CC $CFLAGS $ARCH_FLAG -o conftest conftest.c > /dev/null 2>&1; then
+ rm -fr conftest.*
+ else
+ RUBY_DEFAULT_ARCH("$target_archs")
+ fi
+ fi
target_cpu=${target_archs}
fi
- CFLAGS="$CFLAGS ${ARCH_FLAG}"
- LDFLAGS="${LDFLAGS+$LDFLAGS }${ARCH_FLAG}"
+ AS_CASE(["$target"], [-*], [ target="$target_cpu${target}"])
+ AS_CASE(["$target_alias"], [-*], [ target_alias="$target_cpu${target_alias}"])
else
+ if test x"$target_alias" = x; then
+ AS_CASE(["$target_os"],
+ [darwin*], [
+ AC_MSG_CHECKING([for real target cpu])
+ target=`echo $target | sed "s/^$target_cpu-/-/"`
+ target_cpu=`$CC -E - 2>/dev/null <<EOF |
+#ifdef __x86_64__
+"processor-name=x86_64"
+#endif
+#ifdef __i386__
+"processor-name=i386"
+#endif
+#ifdef __ppc__
+"processor-name=powerpc"
+#endif
+#ifdef __ppc64__
+"processor-name=powerpc64"
+#endif
+EOF
+ sed -n 's/^"processor-name=\(.*\)"/\1/p'`
+ target="$target_cpu${target}"
+ AC_MSG_RESULT([$target_cpu])
+ ])
+ fi
target_archs="$target_cpu"
fi
-
-case $target_cpu in
- when(i?86) frame_address=yes;;
- when(*) frame_address=no;;
-esac
-AC_ARG_ENABLE(frame-address,
- AS_HELP_STRING([--enable-frame-address], [use GCC __builtin_frame_address()]),
- [frame_address=$enableval])
-if test $frame_address = yes; then
- AC_DEFINE(USE_BUILTIN_FRAME_ADDRESS)
+if test "${target_archs}" != "${rb_cv_target_archs-${target_archs}}"; then
+ AC_MSG_ERROR([target arch(s) has changed from ${rb_cv_target_archs-nothing} to ${target_archs}])
+else
+ rb_cv_target_archs=${target_archs}
fi
+if test "x${ARCH_FLAG}" != x; then
+ CFLAGS="$CFLAGS ${ARCH_FLAG}"
+ LDFLAGS="${LDFLAGS+$LDFLAGS }${ARCH_FLAG}"
+fi
+# RUBY_UNIVERSAL_ARCH end
+])
AC_ARG_ENABLE(load-relative,
AS_HELP_STRING([--enable-load-relative], [resolve load paths at run time]),
@@ -218,11 +260,20 @@ AC_ARG_PROGRAM
dnl Checks for programs.
+cflagspat=
+test -z "$optflags" ||
+ cflagspat="$cflagspat;s|"`eval echo '"'"${optflags}"'"' | sed 's/[[][|.*]]/\\&/g;s/^ */ /;s/ *$/ /'`'| |g'
+test -z "$debugflags" ||
+ cflagspat="$cflagspat;s|"`eval echo '"'"${debugflags}"'"' | sed 's/[[][|.*]]/\\&/g;s/^ */ /;s/ *$/ /'`'| |g'
+test -z "warnflags" ||
+ cflagspat="$cflagspat;s|"`eval echo '"'"${warnflags}"'"' | sed 's/[[][|.*]]/\\&/g;s/^ */ /;s/ *$/ /'`'| |g'
if test -z "${CFLAGS+set}"; then
+ cflags=`echo " $cflags " | sed "$cflagspat;s/^ *//;s/ *$//"`
orig_cflags="$cflags"
cflags="$cflags "'${optflags} ${debugflags} ${warnflags}'
fi
if test -z "${CXXFLAGS+set}"; then
+ cxxflags=`echo " $cxxflags " | sed "$cflagspat;s/^ *//;s/ *$//"`
orig_cxxflags="$cxxflags"
cxxflags="$cxxflags "'${optflags} ${debugflags} ${warnflags}'
fi
@@ -233,10 +284,11 @@ fi
AC_PROG_CC
AC_PROG_CXX
AC_PROG_GCC_TRADITIONAL
-test $ac_cv_prog_cc_g = yes && : ${debugflags=-g}
+AC_SUBST(GCC)
if test "$GCC" = yes; then
linker_flag=-Wl,
: ${optflags=-O3}
+ RUBY_APPEND_OPTIONS(XCFLAGS, ["-include ruby/config.h" "-include ruby/missing.h"])
else
linker_flag=
fi
@@ -250,6 +302,10 @@ AC_SUBST(OUTFLAG)
AC_SUBST(COUTFLAG)
RUBY_MINGW32
+RUBY_UNIVERSAL_ARCH
+if test "$target_cpu" != "$host_cpu" -a "$GCC" = yes -a "$cross_compiling" = no -a "$universal_binary" = no; then
+ RUBY_DEFAULT_ARCH("$target_cpu")
+fi
AC_CHECK_TOOL(RANLIB, ranlib, :)
AC_CHECK_TOOL(AR, ar)
@@ -261,63 +317,78 @@ AC_CHECK_TOOL(AS, as)
ASFLAGS=$ASFLAGS
AC_SUBST(ASFLAGS)
-case "$target_os" in
-when(cygwin*|mingw*|darwin*)
- ac_cv_prog_ac_ct_OBJCOPY=":";;
-esac
+AS_CASE(["$target_os"],[cygwin*|mingw*], [ac_cv_prog_ac_ct_OBJCOPY=":"])
# BSD's ports and MacPorts prefix GNU binutils with 'g'
AC_CHECK_TOOLS(OBJDUMP, [objdump gobjdump])
AC_CHECK_TOOLS(OBJCOPY, [objcopy gobjcopy])
-case "$target_os" in
-when(cygwin*|mingw*)
- AC_CHECK_TOOL(NM, nm)
+AS_CASE(["$target_os"],
+[cygwin*|mingw*], [
AC_CHECK_TOOL(WINDRES, windres)
AC_CHECK_TOOL(DLLWRAP, dllwrap)
+ target=`echo $target | sed "s/^$target_cpu-/-/"`
+ target_alias=`echo $target_alias | sed "s/^$target_cpu-/-/"`
target_cpu=`echo $target_cpu | sed s/i.86/i386/`
- case "$target_os" in
- when(mingw*)
+ AS_CASE(["$target"], [-*], [ target="$target_cpu${target}"])
+ AS_CASE(["$target_alias"], [-*], [ target_alias="$target_cpu${target_alias}"])
+ AS_CASE(["$target_os"],
+ [mingw*], [
test "$rb_cv_msvcrt" = "" && unset rb_cv_msvcrt
AC_CACHE_CHECK(for mingw32 runtime DLL, rb_cv_msvcrt, [
- AC_TRY_LINK([#include <stdio.h>],
+ AC_TRY_LINK([@%:@include <stdio.h>],
[FILE* volatile f = stdin; return 0;],
[rb_cv_msvcrt=`$OBJDUMP -p conftest$ac_exeext |
tr A-Z a-z |
sed -n '/^[[ ]]*dll name: \(msvc.*\)\.dll$/{s//\1/p;q;}'`],
[rb_cv_msvcrt=msvcrt])
test "$rb_cv_msvcrt" = "" && rb_cv_msvcrt=msvcrt])
- esac
+ ])
: ${enable_shared=yes}
- ;;
-when(aix*)
- AC_CHECK_TOOL(NM, nm, /usr/ccs/bin/nm, /usr/ccs/bin:$PATH)
- ;;
-when(hiuxmpp*)
- # by TOYODA Eizi <toyoda@npd.kishou.go.jp>
- AC_DEFINE(__HIUX_MPP__)
- ;;
-esac
+ ],
+[aix*], [AC_CHECK_TOOL(NM, nm, /usr/ccs/bin/nm, /usr/ccs/bin:$PATH)],
+[hiuxmpp*], [AC_DEFINE(__HIUX_MPP__)]) # by TOYODA Eizi <toyoda@npd.kishou.go.jp>
+AC_CHECK_TOOL(NM, nm)
AC_PROG_LN_S
AC_PROG_MAKE_SET
AC_PROG_INSTALL
+AC_PROG_MKDIR_P
+if test "x$MKDIR_P" = "x -d"; then
+ if test x"$as_mkdir_p" != xfalse; then
+ MKDIR_P='mkdir -p'
+ echo "use 'mkdir -p' as MKDIR_P"
+ else
+ AC_MSG_ERROR([mkdir -p is required])
+ fi
+fi
+MAKEDIRS="$MKDIR_P"
+AC_SUBST(MAKEDIRS)
+
+AC_CHECK_PROGS(DOT, dot)
+AC_CHECK_PROGS(DOXYGEN, doxygen)
+
+AC_CHECK_PROG(PKG_CONFIG, pkg-config, [pkg-config], [], [],
+ [`"$as_dir/$ac_word$ac_exec_ext" --print-errors --version > /dev/null 2>&1 || echo "$as_dir/$ac_word$ac_exec_ext"`])
# checks for UNIX variants that set C preprocessor variables
AC_USE_SYSTEM_EXTENSIONS
AC_SUBST(RM, ['rm -f'])
AC_SUBST(CP, ['cp'])
-if $as_mkdir_p; then
- MAKEDIRS='mkdir -p'
-else
- MAKEDIRS='install -d'
-fi
-AC_SUBST(MAKEDIRS)
-AC_SUBST(RMDIRS, ['$(top_srcdir)/tool/rmdirs'])
+RMDIRS='$(top_srcdir)/tool/rmdirs'
+RMDIR=rmdir
+mkdir "rmdirs_$$_test" "rmdirs_$$_test/a"
+rmdir --ignore-fail-on-non-empty "rmdirs_$$_test" 2>/dev/null &&
+RMDIR='rmdir --ignore-fail-on-non-empty'
+$RMDIR -p "rmdirs_$$_test/a" 2>/dev/null &&
+{ test -d "rmdirs_$$_test" || RMDIRS="$RMDIR -p"; }
+rmdir "rmdirs_$$_test/a" "rmdirs_$$_test" 2>/dev/null
+AC_SUBST(RMDIR)
+AC_SUBST(RMDIRS)
AC_SUBST(RMALL, ['rm -fr'])
-AC_MSG_CHECKING([for cd using phisical directory])
+AC_MSG_CHECKING([for cd using physical directory])
rm -fr conf$$.dir
mkdir conf$$.dir &&
(cd conf$$.dir && mkdir src build && cd src &&
@@ -337,19 +408,107 @@ AC_SUBST(CHDIR)
dnl }
dnl compiler section {
-if test "$GCC:${warnflags+set}:no" = yes::no; then
+AC_DEFUN([RUBY_WERROR_FLAG], [dnl
+if test "${ac_c_werror_flag+set}"; then
+ rb_c_werror_flag="$ac_c_werror_flag"
+else
+ unset rb_c_werror_flag
+fi
+ac_c_werror_flag=yes
+$1
+if test "${rb_c_werror_flag+set}"; then
+ ac_c_werror_flag="$rb_c_werror_flag"
+else
+ unset ac_c_werror_flag
+fi])
+
+AC_DEFUN(RUBY_TRY_CFLAGS, [
save_CFLAGS="$CFLAGS"
- for wflag in -Wno-missing-field-initializers -Wshorten-64-to-32; do
- CFLAGS="$CFLAGS $wflag"
- AC_MSG_CHECKING([whether $wflag is accepted])
- AC_COMPILE_IFELSE([AC_LANG_PROGRAM([])],
- [warnflags="${warnflags+$warnflags }$wflag"
- AC_MSG_RESULT(yes)],
- [AC_MSG_RESULT(no)])
- done
+ CFLAGS="[$]CFLAGS $1"
+ AC_MSG_CHECKING([whether ]$1[ is accepted])
+ RUBY_WERROR_FLAG([
+ AC_TRY_COMPILE([$4], [$5],
+ [$2
+ AC_MSG_RESULT(yes)],
+ [$3
+ AC_MSG_RESULT(no)])
+ ])
CFLAGS="$save_CFLAGS"
- unset save_CFLAGS
- warnflags="-Wall -Wno-unused-parameter -Wno-parentheses ${warnflags+$warnflags }-Wpointer-arith -Wwrite-strings"
+ save_CFLAGS=
+])
+
+AC_DEFUN(RUBY_TRY_LDFLAGS, [
+ save_LDFLAGS="$LDFLAGS"
+ LDFLAGS="[$]LDFLAGS $1"
+ AC_MSG_CHECKING([whether $1 is accepted])
+ RUBY_WERROR_FLAG([
+ AC_TRY_LINK([$4], [$5],
+ [$2
+ AC_MSG_RESULT(yes)],
+ [$3
+ AC_MSG_RESULT(no)])
+ ])
+ LDFLAGS="$save_LDFLAGS"
+ save_LDFLAGS=
+])
+
+rb_cv_warnflags="$warnflags"
+if test "$GCC:${warnflags+set}:no" = yes::no; then
+ particular_werror_flags=yes
+ for wflag in -Wno-unused-parameter -Wno-parentheses -Wno-long-long \
+ -Wno-missing-field-initializers \
+ -Werror=pointer-arith \
+ -Werror=write-strings \
+ -Werror=declaration-after-statement \
+ -Werror=shorten-64-to-32 \
+ -Werror-implicit-function-declaration \
+ ; do
+ if test "$particular_werror_flags" = yes; then
+ wflag=`echo x$wflag | sed 's/^x-Werror-/-Werror=/;s/^x//'`
+ else
+ wflag=`echo x$wflag | sed 's/^x-Werror=/-W/;s/^x//'`
+ fi
+ ok=no
+ RUBY_TRY_CFLAGS($wflag, [warnflags="${warnflags+$warnflags }$wflag" ok=yes])
+ AS_CASE([$ok:$wflag], [no:-Werror=*], [
+ wflag=`echo x$wflag | sed 's/^x-Werror=/-W/'`
+ RUBY_TRY_CFLAGS($wflag, [
+ warnflags="${warnflags+$warnflags }$wflag"
+ particular_werror_flags=no
+ ])
+ ])
+ done
+ AS_CASE([" $warnflags "],[*" -Wno-missing-field-initializers "*], [wflag=-Wextra],
+ [wflag=-Wall])
+ RUBY_TRY_CFLAGS($wflag, [warnflags="$wflag${warnflags+ $warnflags}"])
+ # Disable warnflags while conftest. -Werror=* flags might make bad OS capability guess.
+ rb_cv_warnflags="$warnflags"
+ warnflags=
+fi
+if test "$GCC" = yes; then
+ test "${debugflags+set}" || {RUBY_TRY_CFLAGS(-ggdb, [debugflags=-ggdb])}
+ test "${debugflags+set}" || {RUBY_TRY_CFLAGS(-g3, [debugflags=-g3])}
+fi
+test $ac_cv_prog_cc_g = yes && : ${debugflags=-g}
+
+if test "$GCC" = ""; then
+ AS_CASE(["$target_os"],[aix*],[warnflags="-qinfo=por"])
+fi
+if test "$GCC" = yes; then
+ RUBY_TRY_CFLAGS(-fvisibility=hidden, [RUBY_APPEND_OPTION(XCFLAGS, -fvisibility=hidden)])
+ AC_SUBST(WERRORFLAG, "-Werror")
+ if test "$visibility_option" = yes; then
+ RUBY_APPEND_OPTION(XCFLAGS, -fvisibility=hidden)
+ else
+ RUBY_TRY_LDFLAGS([-Wl,-unexported_symbol,_Init_*], [visibility_option=ld], [visibility_option=no])
+ fi
+ test "$visibility_option" = no || OBJCOPY=:
+fi
+
+if test "$GCC" = yes; then
+ AS_CASE(["$target_os"], [mingw*], [
+ RUBY_TRY_CFLAGS(-fno-omit-frame-pointer, [optflags="${optflags+$optflags }-fno-omit-frame-pointer"])
+ ])
fi
test -z "${ac_env_CFLAGS_set}" -a -n "${cflags+set}" && eval CFLAGS="\"$cflags $ARCH_FLAG\""
@@ -363,18 +522,24 @@ mv confdefs.h largefile.h
mv confdefs1.h confdefs.h
cat largefile.h >> confdefs.h
-case "$target_os" in
-when(mingw*)
- ac_cv_type_off_t=yes
- ac_cv_sizeof_off_t=8
- ;;
-esac
+AS_CASE(["$target_os"],[mingw*], [ac_cv_type_off_t=yes;ac_cv_sizeof_off_t=8])
+
+AC_C_BIGENDIAN
+AC_C_CONST
+AC_C_CHAR_UNSIGNED
+AC_C_INLINE
+AC_C_VOLATILE
+
+AS_CASE(":$ac_cv_c_const:$ac_cv_c_volatile:",
+ [*:no:*], [AC_MSG_ERROR(ANSI C-conforming const and volatile are mandatory)])
AC_CHECK_TYPES([long long, off_t])
AC_CACHE_CHECK([char bit], [rb_cv_char_bit],
- [_AC_COMPUTE_INT_COMPILE([CHAR_BIT], [rb_cv_char_bit],
- [AC_INCLUDES_DEFAULT([@%:@include <limits.h>])], [rb_cv_char_bit=8])])
+ [test "$universal_binary" = yes && cross_compiling=yes
+ AC_COMPUTE_INT([rb_cv_char_bit], [CHAR_BIT],
+ [AC_INCLUDES_DEFAULT([@%:@include <limits.h>])], [rb_cv_char_bit=8])
+ test "$universal_binary" = yes && cross_compiling=$real_cross_compiling])
dnl RUBY_CHECK_SIZEOF [typename], [maybe same size types], [macros], [include]
AC_DEFUN([RUBY_CHECK_SIZEOF],
@@ -417,16 +582,20 @@ static ac__type_sizeof_ *rbcv_ptr;
done
}])
m4_ifval([$2][$3], [case "${AS_TR_SH(ac_cv_sizeof_$1)}" in
- when([SIZEOF_*]);;
- when(*)])
- _AC_COMPUTE_INT_COMPILE(AS_TR_CPP(SIZEOF_$1), [t], [AC_INCLUDES_DEFAULT([$4])]
+ #(
+ [SIZEOF_*]);;
+ #(
+ *)])
+ test "$universal_binary" = yes && cross_compiling=yes
+ AC_COMPUTE_INT([t], AS_TR_CPP(SIZEOF_$1), [AC_INCLUDES_DEFAULT([$4])]
[${cond+$cond
@%:@else}
$rbcv_var
${cond+@%:@endif}
@%:@ifndef AS_TR_CPP(SIZEOF_$1)
@%:@define AS_TR_CPP(SIZEOF_$1) 0
-@%:@endif], [unset t])
+@%:@endif], [t=0])
+ test "$universal_binary" = yes && cross_compiling=$real_cross_compiling
if test ${t-0} != 0; then
AS_TR_SH(ac_cv_sizeof_$1)="${AS_TR_SH(ac_cv_sizeof_$1)+${AS_TR_SH(ac_cv_sizeof_$1)-} }${t}"
fi
@@ -436,19 +605,18 @@ ${cond+@%:@endif}
{
unset cond
for t in ${AS_TR_SH(ac_cv_sizeof_$1)-}; do
- case "$t" in
- when([[0-9]*|SIZEOF_*])
+ AS_CASE(["$t"],
+ [[[0-9]*|SIZEOF_*]], [
${cond+echo "@%:@else"}
echo "[@%:@define ]AS_TR_CPP(SIZEOF_$1) [$t]"
break
- ;;
- when([*])
+ ],
+ [
s=`expr $t : ['.*[^0-9]\([0-9][0-9]*\)$']`
echo "@%:@${cond+el}if defined(__${t}__) || defined(__${t}) || defined(_${t}) || defined($t)"
echo "@%:@define AS_TR_CPP(SIZEOF_$1) [$[s / rb_cv_char_bit]]"
cond=1
- ;;
- esac
+ ])
done
${cond+echo "@%:@endif"}
} >> confdefs.h
@@ -468,20 +636,52 @@ RUBY_CHECK_SIZEOF(float)
RUBY_CHECK_SIZEOF(double)
RUBY_CHECK_SIZEOF(time_t, [long "long long"], [], [@%:@include <time.h>])
+AC_DEFUN([RUBY_CHECK_PRINTF_PREFIX], [
+AC_CACHE_CHECK([for printf prefix for $1], [rb_cv_pri_prefix_]AS_TR_SH($1),[
+ [rb_cv_pri_prefix_]AS_TR_SH($1)=[NONE]
+ RUBY_WERROR_FLAG(for pri in $2; do
+ AC_TRY_COMPILE(
+ [@%:@include <stdio.h>
+ @%:@include <stddef.h>
+ @%:@ifdef __GNUC__
+ @%:@define PRINTF_ARGS(decl, string_index, first_to_check) \
+ decl __attribute__((format(printf, string_index, first_to_check)))
+ @%:@else
+ @%:@define PRINTF_ARGS(decl, string_index, first_to_check) decl
+ @%:@endif
+ PRINTF_ARGS(void test_sprintf(const char*, ...), 1, 2);],
+ [printf("%]${pri}[d", (]$1[)42);
+ test_sprintf("%]${pri}[d", (]$1[)42);],
+ [rb_cv_pri_prefix_]AS_TR_SH($1)[=[$pri]; break])
+ done)])
+if test "[$rb_cv_pri_prefix_]AS_TR_SH($1)" != NONE; then
+ AC_DEFINE_UNQUOTED([PRI_]m4_ifval($3,$3,AS_TR_CPP(m4_bpatsubst([$1],[_t$])))[_PREFIX],
+ "[$rb_cv_pri_prefix_]AS_TR_SH($1)")
+fi
+])
+
+if test "x$ac_cv_type_long_long" = xyes; then
+ RUBY_CHECK_PRINTF_PREFIX(long long, ll I64, LL)
+elif test "x$ac_cv_type___int64" = xyes; then
+ RUBY_CHECK_PRINTF_PREFIX(__int64, ll I64, LL)
+fi
+
dnl RUBY_REPLACE_TYPE [typename] [default type] [macro type] [included]
AC_DEFUN([RUBY_REPLACE_TYPE], [dnl
- AC_CHECK_TYPE([$1], [n=[$1]], [n=[$2]], [$4])
+ AC_CHECK_TYPE([$1],
+ [n="patsubst([$1],["],[\\"])"],
+ [n="patsubst([$2],["],[\\"])"],
+ [$4])
AC_CACHE_CHECK([for convertible type of [$1]], rb_cv_[$1]_convertible, [
u= t=
- case "$n " in
- when(*" signed "*) ;;
- when(*" unsigned "*)
- u=U;;
- when(*)
+ AS_CASE(["$n "],
+ [*" signed "*], [ ],
+ [*" unsigned "*], [
+ u=U],
+ [
AC_COMPILE_IFELSE(
[AC_LANG_BOOL_COMPILE_TRY([AC_INCLUDES_DEFAULT([$4])], [($n)-1 > 0])],
- [u=U]);;
- esac
+ [u=U])])
if test x"$t" = x; then
for t in "long long" long int short; do
test -n "$u" && t="unsigned $t"
@@ -497,25 +697,28 @@ AC_DEFUN([RUBY_REPLACE_TYPE], [dnl
[n="$t"; break])
done
fi
- case " $n " in
- when(*" long long "*)
- t=LL;;
- when(*" long "*)
- t=LONG;;
- when(*)
- t=INT;;
- esac
+ AS_CASE([" $n "],
+ [*" long long "*], [
+ t=LL],
+ [*" long "*], [
+ t=LONG],
+ [
+ t=INT])
rb_cv_[$1]_convertible=${u}${t}])
- m4_ifval([$2], AC_DEFINE_UNQUOTED(rb_[$1], $n))
+ test "${AS_TR_SH(ac_cv_type_[$1])}" = "yes" && n="$1"
+ AC_DEFINE_UNQUOTED(rb_[$1], $n)
AC_DEFINE_UNQUOTED([$3]2NUM[(v)], [${rb_cv_[$1]_convertible}2NUM(v)])
AC_DEFINE_UNQUOTED(NUM2[$3][(v)], [NUM2${rb_cv_[$1]_convertible}(v)])
AC_DEFINE_UNQUOTED(PRI_[$3]_PREFIX,
- ["`echo ${rb_cv_[$1]_convertible} | sed ['s/^U//;s/[^L].*//;y/L/l/']`"])
+ [PRI_`echo ${rb_cv_[$1]_convertible} | sed ['s/^U//']`_PREFIX])
])
RUBY_REPLACE_TYPE(pid_t, int, PIDT)
RUBY_REPLACE_TYPE(uid_t, int, UIDT)
RUBY_REPLACE_TYPE(gid_t, int, GIDT)
RUBY_REPLACE_TYPE(time_t, [], TIMET, [@%:@include <time.h>])
+RUBY_REPLACE_TYPE(dev_t, [int long "long long"], DEVT)
+RUBY_REPLACE_TYPE(mode_t, ["unsigned int" long], MODET, [@%:@include <sys/stat.h>])
+RUBY_REPLACE_TYPE(rlim_t, [int long "long long"], RLIM, [@%:@include <sys/resource.h>])
AC_CACHE_CHECK(for prototypes, rb_cv_have_prototypes,
[AC_TRY_COMPILE([int foo(int x) { return 0; }], [return foo(10);],
@@ -590,8 +793,10 @@ if test "$rb_cv_stdarg" = yes; then
fi
AC_CACHE_CHECK(for variable length macro, rb_cv_va_args_macro,
- [AC_TRY_COMPILE([@%:@define FOO(a, ...) foo(a, @%:@@%:@__VA_ARGS__)],
- [FOO(1);FOO(1,2);FOO(1,2,3);],
+ [AC_TRY_COMPILE([
+int foo(int x, ...);
+@%:@define FOO(a, ...) foo(a, @%:@@%:@__VA_ARGS__)
+], [FOO(1);FOO(1,2);FOO(1,2,3);],
rb_cv_va_args_macro=yes,
rb_cv_va_args_macro=no)])
if test "$rb_cv_va_args_macro" = yes; then
@@ -610,6 +815,7 @@ EOH
])dnl
])dnl
+dnl RUBY_FUNC_ATTRIBUTE(attrib, macroname, cachevar, condition)
AC_DEFUN([RUBY_FUNC_ATTRIBUTE], [dnl
m4_ifval([$2], dnl
[AS_VAR_PUSHDEF([attrib],[$2])], dnl
@@ -622,12 +828,7 @@ m4_ifval([$3], dnl
m4_ifval([$4], [rbcv_cond=[$4]; test "$rbcv_cond" || unset rbcv_cond])
AC_CACHE_CHECK(for [$1] function attribute, rbcv,
[rbcv=x
-if test "${ac_c_werror_flag+set}"; then
- rb_c_werror_flag="$ac_c_werror_flag"
-else
- unset rb_c_werror_flag
-fi
-ac_c_werror_flag=yes
+RUBY_WERROR_FLAG([
for mac in "__attribute__ (($1)) x" "x __attribute__ (($1))" "__declspec($1) x" x; do
m4_ifval([$4],mac="$mac"${rbcv_cond+" /* only if $rbcv_cond */"})
AC_TRY_COMPILE(
@@ -639,12 +840,7 @@ ${rbcv_cond+[@%:@endif]})
attrib[(void conftest_attribute_check(void));], [],
[rbcv="$mac"; break])
done
-if test "${rb_c_werror_flag+set}"; then
- ac_c_werror_flag="$rb_c_werror_flag"
-else
- unset ac_c_werror_flag
-fi
-])
+])])
if test "$rbcv" != x; then
RUBY_DEFINE_IF([${rbcv_cond}], attrib[(x)], $rbcv)
fi
@@ -675,16 +871,33 @@ if test "$GCC" = yes; then
AC_DEFINE_UNQUOTED([RUBY_ALIAS_FUNCTION_VOID(prot, name, args)],
[RUBY_ALIAS_FUNCTION_TYPE(void, prot, name, args)])
fi
+ AC_CACHE_CHECK([for atomic builtins], [rb_cv_gcc_atomic_builtins], [
+ AC_TRY_LINK([unsigned char atomic_var;],
+ [
+ __sync_lock_test_and_set(&atomic_var, 0);
+ __sync_lock_test_and_set(&atomic_var, 1);
+ __sync_fetch_and_add(&atomic_var, 1);
+ __sync_fetch_and_sub(&atomic_var, 1);
+ ],
+ [rb_cv_gcc_atomic_builtins=yes],
+ [rb_cv_gcc_atomic_builtins=no])])
+ if test "$rb_cv_gcc_atomic_builtins" = yes; then
+ AC_DEFINE(HAVE_GCC_ATOMIC_BUILTINS)
+ fi
fi
-AC_CACHE_CHECK([for RUBY_EXTERN], rb_cv_ruby_extern,
-[rb_cv_ruby_extern=no
-for mac in "__attribute__((dllimport))" "__declspec(dllimport)"; do
- AC_TRY_COMPILE(
- [extern $mac void conftest(void);],
- [rb_cv_ruby_extern="extern $mac"; break])
-done])
-test "x$rb_cv_ruby_extern" = xno || AC_DEFINE_UNQUOTED(RUBY_EXTERN, $rb_cv_ruby_extern)
+AC_CACHE_CHECK(for exported function attribute, rb_cv_func_exported, [
+rb_cv_func_exported=no
+RUBY_WERROR_FLAG([
+for mac in '__attribute__ ((visibility("default")))' '__declspec(dllexport)'; do
+ AC_TRY_COMPILE([@%:@define RUBY_FUNC_EXPORTED $mac extern
+ RUBY_FUNC_EXPORTED void conftest_attribute_check(void);], [],
+ [rb_cv_func_exported="$mac"; break])
+done
+])])
+if test "$rb_cv_func_exported" != no; then
+ AC_DEFINE_UNQUOTED(RUBY_FUNC_EXPORTED, [$rb_cv_func_exported extern])
+fi
RUBY_APPEND_OPTION(XCFLAGS, -DRUBY_EXPORT)
@@ -697,13 +910,10 @@ AC_CHECK_DECLS([sys_nerr], [], [], [$ac_includes_default
AC_ARG_ENABLE(win95,
AS_HELP_STRING([--enable-win95], [enable Windows 95 series support]),
- [case "$enableval" in
- when(yes|no) enable_win95=$enableval;;
- when(*) unset enable_win95;;
- esac])
+ [AS_CASE(["$enableval"],[yes|no],[enable_win95=$enableval],[unset enable_win95])])
-case "$target_os" in
-when(freebsd*)
+AS_CASE(["$target_os"],
+[freebsd*], [
AC_CACHE_CHECK([whether pthread should be enabled by default],
rb_cv_enable_pthread_default,
[AC_TRY_CPP([
@@ -714,34 +924,35 @@ when(freebsd*)
],
rb_cv_enable_pthread_default=yes,
rb_cv_enable_pthread_default=no)])
- enable_pthread_default=$rb_cv_enable_pthread_default
- ;;
-when(mingw*)
- enable_pthread_default=no
- ;;
-when(*)
- enable_pthread_default=yes
- ;;
-esac
+ enable_pthread=$rb_cv_enable_pthread_default
+ ],
+[mingw*], [
+ enable_pthread=no
+ ],
+[
+ enable_pthread=yes
+ ])
AC_ARG_ENABLE(pthread,
- AS_HELP_STRING([--enable-pthread], [use pthread library]),
- [enable_pthread=$enableval], [enable_pthread=$enable_pthread_default])
+ AS_HELP_STRING([--enable-pthread], [obsolete, and ignored]))
dnl Checks for libraries.
-case "$target_os" in
-when(*bsd*|dragonfly*)
- ;;
-when(*)
- ac_cv_func_daemon=no
- ;;
-esac
-
-case "$target_os" in
-when(nextstep*) ;;
-when(openstep*) ;;
-when(rhapsody*) ;;
-when(darwin*) RUBY_PREPEND_OPTION(LIBS, -lobjc)
+AS_CASE(["$target_os"],[*bsd*|dragonfly*],[],[ac_cv_func_daemon=no])
+
+AS_CASE(["$target_os"],
+[solaris*], [
+ AC_DEFINE(SIZEOF_STRUCT_DIRENT_TOO_SMALL, 1)
+ LIBS="-lm $LIBS"
+ ],
+# GNU Hurd
+[gnu*], [
+ AC_DEFINE(SIZEOF_STRUCT_DIRENT_TOO_SMALL, 1)
+ LIBS="-lm $LIBS"
+ ],
+[nextstep*], [ ],
+[openstep*], [ ],
+[rhapsody*], [ ],
+[darwin*], [ RUBY_PREPEND_OPTION(LIBS, -lobjc)
RUBY_APPEND_OPTIONS(CPPFLAGS, -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE)
AC_MSG_CHECKING(whether Mac OS X 10.5 or later)
AC_TRY_CPP([#include <AvailabilityMacros.h>
@@ -760,17 +971,31 @@ when(darwin*) RUBY_PREPEND_OPTION(LIBS, -lobjc)
fi
ac_cv_type_getgroups=gid_t # getgroups() on Rosetta fills garbage
ac_cv_lib_crypt_crypt=no
+ ac_cv_func_fdatasync=no # Mac OS X wrongly reports it has fdatasync()
AC_CACHE_CHECK(for broken crypt with 8bit chars, rb_cv_broken_crypt,
[AC_TRY_RUN([
#include <stdio.h>
#include <unistd.h>
#include <string.h>
+
int
main()
{
- char buf[256];
- strcpy(buf, crypt("", "\xE0\xA0"));
- return strcmp(buf, crypt("", "\xE0\xA0"));
+ int i;
+ for (i = 0; i < 128*128; i++) {
+ char salt[2], buf[256], *s;
+ salt[0] = 0x80 | (i & 0x7f);
+ salt[1] = 0x80 | (i >> 7);
+ strcpy(buf, crypt("", salt));
+ if (strcmp(buf, s = crypt("", salt))) {
+#if 0
+ printf("%.2x%.2x: %s -> %s\n", (unsigned char)salt[0], (unsigned char)salt[1],
+ buf+2, s+2);
+#endif
+ return 1;
+ }
+ }
+ return 0;
}
],
rb_cv_broken_crypt=no,
@@ -779,10 +1004,10 @@ main()
if test "$rb_cv_broken_crypt" = yes; then
AC_DEFINE(BROKEN_CRYPT, 1)
fi
- ;;
-when(hpux*) LIBS="-lm $LIBS"
- ac_cv_c_inline=no;;
-when(human*) ac_cv_func_getpgrp_void=yes
+ ],
+[hpux*], [ LIBS="-lm $LIBS"
+ ac_cv_c_inline=no],
+[human*], [ ac_cv_func_getpgrp_void=yes
ac_cv_func_setitimer=no
AC_CHECK_LIB(signal, _harderr)
AC_CHECK_LIB(hmem, hmemset)
@@ -820,21 +1045,21 @@ main()
if test "$rb_cv_missing_fconvert" = yes; then
AC_DEFINE(MISSING_FCONVERT)
fi
- ;;
-when(beos*|haiku*)
+ ],
+[beos*|haiku*], [
ac_cv_func_link=no
ac_cv_func_sched_yield=no
ac_cv_func_pthread_attr_setinheritsched=no
- case "$target_os" in
- when(beos*) ac_cv_header_net_socket_h=yes;;
- when(haiku*) ac_cv_func_shutdown=no;;
- esac
+ AS_CASE(["$target_os"],
+ [beos*], [ ac_cv_header_net_socket_h=yes],
+ [haiku*], [ ac_cv_func_shutdown=no])
LIBS="$LIBS" # m lib is include in root under BeOS/Haiku
- ;;
-when(cygwin*) ac_cv_header_langinfo_h=yes
+ ],
+[cygwin*], [ ac_cv_header_langinfo_h=yes
+ AC_CHECK_FUNCS(cygwin_conv_path)
AC_LIBOBJ([langinfo])
- ;;
-when(mingw*) LIBS="-lshell32 -lws2_32 $LIBS"
+ ],
+[mingw*], [ LIBS="-lshell32 -lws2_32 -limagehlp $LIBS"
ac_cv_header_a_out_h=no
ac_cv_header_pwd_h=no
ac_cv_header_utime_h=no
@@ -854,24 +1079,22 @@ when(mingw*) LIBS="-lshell32 -lws2_32 $LIBS"
ac_cv_func_isnan=yes
ac_cv_func_finite=yes
ac_cv_func_link=yes
- ac_cv_func_truncate=yes
ac_cv_func_fseeko=yes
- ac_cv_func_ftello=yes
ac_cv_lib_crypt_crypt=no
ac_cv_func_getpgrp_void=no
- ac_cv_func_setpgrp_void=yes
ac_cv_func_memcmp_working=yes
ac_cv_lib_dl_dlopen=no
rb_cv_binary_elf=no
rb_cv_negative_time_t=no
ac_cv_func_fcntl=yes
ac_cv_func_flock=yes
+ rb_cv_large_fd_select=yes
AC_LIBOBJ([langinfo])
: ${enable_win95=maybe}
- ;;
-when(os2-emx*) LIBS="-lm $LIBS"
- ac_cv_lib_dir_opendir=no;;
-when(msdosdjgpp*)
+ ],
+[os2-emx*], [ LIBS="-lm $LIBS"
+ ac_cv_lib_dir_opendir=no],
+[msdosdjgpp*], [
LIBS="-lm $LIBS"
ac_cv_func_getpgrp_void=yes
ac_cv_func_setitimer=no
@@ -879,21 +1102,24 @@ when(msdosdjgpp*)
ac_cv_func_fork=no
ac_cv_func_setrlimit=no
ac_cv_header_sys_socket_h=no
- ;;
-when(bsdi*) LIBS="-lm $LIBS"
+ ],
+[bsdi*], [ LIBS="-lm $LIBS"
AC_DEFINE(BROKEN_SETREUID, 1)
AC_DEFINE(BROKEN_SETREGID, 1)
- ac_cv_sizeof_rlim_t=8;;
-when(freebsd*) LIBS="-lm $LIBS"
- ;;
-when(dragonfly*) LIBS="-lm $LIBS"
- ;;
-when(bow) ac_cv_func_setitimer=no
- ;;
-when(superux*) ac_cv_func_setitimer=no
- ;;
-when(*) LIBS="-lm $LIBS";;
-esac
+ ac_cv_sizeof_rlim_t=8],
+[freebsd*], [ LIBS="-lm $LIBS"
+ ac_cv_func_getpeername=no
+ ac_cv_func_getsockname=no
+ ac_cv_func_shutdown=no
+ ac_cv_func_close=no
+ ],
+[dragonfly*], [ LIBS="-lm $LIBS"
+ ],
+[bow], [ ac_cv_func_setitimer=no
+ ],
+[superux*], [ ac_cv_func_setitimer=no
+ ],
+[ LIBS="-lm $LIBS"])
AC_CHECK_LIB(crypt, crypt)
AC_CHECK_LIB(dl, dlopen) # Dynamic linking for SunOS/Solaris and SYSV
AC_CHECK_LIB(dld, shl_load) # Dynamic linking for HP-UX
@@ -907,12 +1133,14 @@ if test "${enable_win95}" = yes; then
LIBS="-lunicows $LIBS"
fi
-case "$target_cpu" in
-when(alpha*) case "$target_os"::"$GCC" in
- when(*::yes) CFLAGS="-mieee $CFLAGS" ;; # gcc
- when(osf*) CFLAGS="-ieee $CFLAGS" ;; # ccc
- esac ;;
-esac
+AS_CASE(["$target_cpu"],
+[alpha*|sh4|sh4el|sh4eb], [AS_CASE(["$target_os"::"$GCC"],
+ [*::yes], # gcc
+ [CFLAGS="-mieee $CFLAGS"],
+ [osf*], # ccc
+ [CFLAGS="-ieee $CFLAGS"],
+ )],
+[sparc*], [AC_LIBOBJ([sparc])])
ac_cv_header_net_socket_h=${ac_cv_header_net_socket_h=no}
if test "$ac_cv_header_net_socket_h" = yes; then
@@ -929,36 +1157,21 @@ AC_HEADER_SYS_WAIT
AC_CHECK_HEADERS(limits.h sys/file.h sys/ioctl.h sys/syscall.h\
fcntl.h sys/fcntl.h sys/select.h sys/time.h sys/times.h sys/param.h\
syscall.h pwd.h grp.h a.out.h utime.h direct.h sys/resource.h \
- sys/mkdev.h sys/utime.h xti.h netinet/in_systm.h float.h ieeefp.h pthread.h \
+ sys/mkdev.h sys/utime.h xti.h netinet/in_systm.h float.h ieeefp.h \
ucontext.h intrinsics.h langinfo.h locale.h sys/sendfile.h time.h \
- net/socket.h sys/socket.h)
-
-dnl Check additional types.
-RUBY_CHECK_SIZEOF(rlim_t, [int long "long long"], [], [
- #ifdef HAVE_SYS_TYPES_H
- # include <sys/types.h>
- #endif
- #ifdef HAVE_SYS_TIME_H
- # include <sys/time.h>
- #endif
- #ifdef HAVE_SYS_RESOURCE_H
- # include <sys/resource.h>
- #endif
- #ifdef HAVE_UNISTD_H
- # include <unistd.h>
- #endif
- #include <stdio.h>
-])
+ net/socket.h sys/socket.h process.h)
AC_TYPE_SIZE_T
RUBY_CHECK_SIZEOF(size_t, [int long void*], [], [@%:@include <sys/types.h>])
RUBY_CHECK_SIZEOF(ptrdiff_t, size_t, [], [@%:@include <stddef.h>])
+RUBY_CHECK_PRINTF_PREFIX(size_t, z)
+RUBY_CHECK_PRINTF_PREFIX(ptrdiff_t, t)
AC_STRUCT_ST_BLKSIZE
AC_STRUCT_ST_BLOCKS
AC_STRUCT_ST_RDEV
-RUBY_CHECK_SIZEOF([struct stat.st_size], [int long "long long"])
+RUBY_CHECK_SIZEOF([struct stat.st_size], [int long "long long"], [], [@%:@include <sys/stat.h>])
if test "$ac_cv_member_struct_stat_st_blocks" = yes; then
- RUBY_CHECK_SIZEOF([struct stat.st_blocks], [int long "long long"])
+ RUBY_CHECK_SIZEOF([struct stat.st_blocks], [int long "long long"], [], [@%:@include <sys/stat.h>])
fi
AC_CHECK_MEMBERS([struct stat.st_atim])
AC_CHECK_MEMBERS([struct stat.st_atimespec])
@@ -974,7 +1187,25 @@ AC_CHECK_TYPES([struct timespec], [], [], [@%:@ifdef HAVE_TIME_H
@%:@include <time.h>
@%:@endif])
-AC_CHECK_TYPE(fd_mask, [AC_DEFINE(HAVE_RB_FD_INIT, 1)])
+AC_CHECK_TYPES([struct timezone], [], [], [@%:@ifdef HAVE_TIME_H
+@%:@ include <time.h>
+@%:@endif
+@%:@ifdef HAVE_SYS_TIME_H
+@%:@ include <sys/time.h>
+@%:@endif])
+
+AC_CHECK_TYPES([clockid_t], [], [], [@%:@ifdef HAVE_TIME_H
+@%:@ include <time.h>
+@%:@endif
+@%:@ifdef HAVE_SYS_TIME_H
+@%:@ include <sys/time.h>
+@%:@endif])
+
+AC_CACHE_VAL([rb_cv_large_fd_select],
+ [AC_CHECK_TYPE(fd_mask, [rb_cv_large_fd_select=yes], [rb_cv_large_fd_select=no])])
+if test "$rb_cv_large_fd_select" = yes; then
+ AC_DEFINE(HAVE_RB_FD_INIT, 1)
+fi
dnl RUBY_DEFINT TYPENAME, SIZE, [SIGNED-OR-UNSIGNED], [INCLUDES = DEFAULT-INCLUDES]
AC_DEFUN([RUBY_DEFINT], [dnl
@@ -982,15 +1213,14 @@ AC_CACHE_CHECK([for $1], [rb_cv_type_$1],
[AC_COMPILE_IFELSE([AC_LANG_PROGRAM([AC_INCLUDES_DEFAULT([$4])
typedef $1 t; int s = sizeof(t) == 42;])],
[rb_cv_type_$1=yes],
- [case m4_bmatch([$2], [^[1-9][0-9]*$], $2, [$ac_cv_sizeof_]AS_TR_SH($2)) in
- when("1") rb_cv_type_$1="m4_if([$3], [], [signed ], [$3 ])char";;
- when("$ac_cv_sizeof_short") rb_cv_type_$1="m4_if([$3], [], [], [$3 ])short";;
- when("$ac_cv_sizeof_int") rb_cv_type_$1="m4_if([$3], [], [], [$3 ])int";;
- when("$ac_cv_sizeof_long") rb_cv_type_$1="m4_if([$3], [], [], [$3 ])long";;
- when("$ac_cv_sizeof_long_long") rb_cv_type_$1="m4_if([$3], [], [], [$3 ])long long";;
- when("$ac_cv_sizeof___int64") rb_cv_type_$1="m4_if([$3], [], [], [$3 ])__int64";;
- when(*) rb_cv_type_$1=no;;
- esac])])
+ [AS_CASE([m4_bmatch([$2], [^[1-9][0-9]*$], $2, [$ac_cv_sizeof_]AS_TR_SH($2))],
+ ["1"], [ rb_cv_type_$1="m4_if([$3], [], [signed ], [$3 ])char"],
+ ["$ac_cv_sizeof_short"], [ rb_cv_type_$1="m4_if([$3], [], [], [$3 ])short"],
+ ["$ac_cv_sizeof_int"], [ rb_cv_type_$1="m4_if([$3], [], [], [$3 ])int"],
+ ["$ac_cv_sizeof_long"], [ rb_cv_type_$1="m4_if([$3], [], [], [$3 ])long"],
+ ["$ac_cv_sizeof_long_long"], [ rb_cv_type_$1="m4_if([$3], [], [], [$3 ])long long"],
+ ["$ac_cv_sizeof___int64"], [ rb_cv_type_$1="m4_if([$3], [], [], [$3 ])__int64"],
+ [ rb_cv_type_$1=no])])])
if test "${rb_cv_type_$1}" != no; then
AC_DEFINE([HAVE_]AS_TR_CPP($1), 1)
if test "${rb_cv_type_$1}" = yes; then
@@ -1029,26 +1259,103 @@ if test $rb_cv_stack_end_address != no; then
AC_DEFINE_UNQUOTED(STACK_END_ADDRESS, $rb_cv_stack_end_address)
fi
+AC_CACHE_CHECK(for gc_mark and gc_children stack frame approximate size(word), rb_cv_gc_mark_stackframe_word,
+[save_CFLAGS="$CFLAGS"
+CFLAGS="-O0"
+AC_TRY_RUN([
+int word;
+char *stack_start;
+
+void
+set_stackframe_word()
+{
+ int dumy = 42;
+ int diff;
+
+ if (stack_start < (char *)&dumy) {
+ diff = (int)((char *)&dumy - stack_start);
+ }
+ else {
+ diff = (int)(stack_start - (char *)&dumy);
+ }
+ word = (diff/sizeof(void *));
+ if ((diff % sizeof(void *)) != 0) {
+ word++;
+ }
+}
+
+void
+gc_mark_children(void *p1, void *p2, int lev)
+{
+ void *obj = p2;
+
+ set_stackframe_word(p1,p2,lev);
+}
+
+void
+gc_mark(void *p1, void *p2, int lev)
+{
+ void *obj = p2;
+
+ gc_mark_children(p1,p2,lev++);
+}
+
+int
+main() {
+ int dumy = 42;
+
+ stack_start = (char *)&dumy;
+ gc_mark(0, 0, 255);
+ return word;
+}
+],
+ [rb_cv_gc_mark_stackframe_word="$?"],
+ [rb_cv_gc_mark_stackframe_word="$?"],
+ [rb_cv_gc_mark_stackframe_word="30"])
+CFLAGS="$save_CFLAGS"])
+AC_DEFINE_UNQUOTED(GC_MARK_STACKFRAME_WORD, $rb_cv_gc_mark_stackframe_word)
+
+
dnl Checks for library functions.
AC_TYPE_GETGROUPS
AC_TYPE_SIGNAL
-case "${target_cpu}-${target_os}:${target_archs}" in
-when(powerpc-darwin*)
+AS_CASE(["${target_cpu}-${target_os}:${target_archs}"],
+[powerpc-darwin*], [
AC_LIBSOURCES(alloca.c)
AC_SUBST([ALLOCA], [\${LIBOBJDIR}alloca.${ac_objext}])
AC_DEFINE(C_ALLOCA)
AC_DEFINE_UNQUOTED(alloca, alloca)
- ;;
-when(universal-darwin*:*ppc*)
+ ],
+[universal-darwin*:*ppc*], [
AC_LIBSOURCES(alloca.c)
AC_SUBST([ALLOCA], [\${LIBOBJDIR}alloca.${ac_objext}])
RUBY_DEFINE_IF([defined __powerpc__], C_ALLOCA, 1)
RUBY_DEFINE_IF([defined __powerpc__], alloca, alloca)
- ;;
-when(*)
+ ],
+[
AC_FUNC_ALLOCA
- ;;
-esac
+ ])
+if test "x$ALLOCA" = "x"; then
+ AC_CACHE_CHECK([for dynamic size alloca], rb_cv_dynamic_alloca, [
+ for chk in ok __chkstk; do
+ AC_TRY_LINK([
+ @%:@ifdef HAVE_ALLOCA_H
+ @%:@include <alloca.h>
+ @%:@endif
+ void $chk() {}
+ int dynamic_alloca_test;
+ int dynamic_alloca_result;],
+ [dynamic_alloca_result = alloca(dynamic_alloca_test) != 0;],
+ [rb_cv_dynamic_alloca=$chk; break])
+ done])
+ if test "x$rb_cv_dynamic_alloca" = "x__chkstk"; then
+ AC_DEFINE_UNQUOTED(RUBY_ALLOCA_CHKSTK, _$rb_cv_dynamic_alloca)
+ AS_CASE("$target_cpu",
+ [x64|x86_64], [
+ AC_SUBST([ALLOCA], [\${LIBOBJDIR}x86_64-chkstk.${ac_objext}])
+ ],)
+ fi
+fi
AC_FUNC_MEMCMP
# http://sources.redhat.com/ml/libc-hacker/2005-08/msg00008.html
@@ -1067,26 +1374,58 @@ main()
rb_cv_broken_glibc_ia64_erfc=no,
rb_cv_broken_glibc_ia64_erfc=yes,
rb_cv_broken_glibc_ia64_erfc=no)])
-case $rb_cv_broken_glibc_ia64_erfc in
- when(yes) ac_cv_func_erf=no;;
-esac
+AS_CASE([$rb_cv_broken_glibc_ia64_erfc],[yes],[ac_cv_func_erf=no])
+AS_CASE(["$target_os"],[freebsd*],[
+ AC_DEFINE(BROKEN_CLOSE)
+ AC_REPLACE_FUNCS(close)
+ ])
AC_REPLACE_FUNCS(dup2 memmove strerror\
- strchr strstr crypt flock vsnprintf\
+ strchr strstr crypt flock\
isnan finite isinf hypot acosh erf tgamma lgamma_r cbrt \
- strlcpy strlcat)
-AC_CHECK_FUNCS(fmod killpg wait4 waitpid fork spawnv syscall chroot fsync getcwd eaccess\
- truncate ftruncate chsize times utimes utimensat fcntl lockf lstat\
- link symlink readlink readdir_r\
- setitimer setruid seteuid setreuid setresuid setproctitle socketpair\
+ strlcpy strlcat ffs setproctitle)
+
+# for missing/setproctitle.c
+AS_CASE(["$target_os"],
+[aix* | k*bsd*-gnu | kopensolaris*-gnu | linux* | darwin*], [AC_DEFINE(SPT_TYPE,SPT_REUSEARGV)],
+[hpux*], [AC_DEFINE(SPT_TYPE,SPT_PSTAT) ],
+[])
+
+
+AC_CACHE_CHECK(for signbit, rb_cv_have_signbit,
+ [AC_TRY_LINK([
+#include <math.h>
+], [int v = signbit(-0.0);],
+ rb_cv_have_signbit=yes,
+ rb_cv_have_signbit=no)])
+if test "$rb_cv_have_signbit" = yes; then
+ AC_DEFINE(HAVE_SIGNBIT)
+else
+ AC_LIBOBJ([signbit])
+fi
+AC_CHECK_FUNCS(fmod killpg wait4 waitpid fork spawnv syscall __syscall chroot getcwd eaccess\
+ truncate ftruncate ftello chsize times utimes utimensat fcntl lockf lstat\
+ truncate64 ftruncate64 ftello64 fseeko fseeko64 \
+ link symlink readlink readdir_r fsync fdatasync fchown posix_fadvise\
+ setitimer setruid seteuid setreuid setresuid socketpair\
setrgid setegid setregid setresgid issetugid pause lchown lchmod\
getpgrp setpgrp getpgid setpgid initgroups getgroups setgroups\
- getpriority getrlimit setrlimit sysconf group_member\
- dlopen sigprocmask sigaction sigsetjmp _setjmp _longjmp snprintf\
- setsid telldir seekdir fchmod cosh sinh tanh log2 round signbit\
+ getpriority getrlimit setrlimit sysconf close getgrnam_r\
+ dlopen sigprocmask sigaction sigsetjmp _setjmp _longjmp\
+ setsid telldir seekdir fchmod cosh sinh tanh log2 round\
setuid setgid daemon select_large_fdset setenv unsetenv\
- mktime timegm gmtime_r clock_gettime gettimeofday\
- pread sendfile shutdown sigaltstack)
+ mktime timegm gmtime_r clock_gettime gettimeofday poll ppoll\
+ pread sendfile shutdown sigaltstack dl_iterate_phdr)
+
+AC_CACHE_CHECK(for unsetenv returns a value, rb_cv_unsetenv_return_value,
+ [AC_TRY_COMPILE([
+#include <stdlib.h>
+], [int v = unsetenv("foo");],
+ rb_cv_unsetenv_return_value=yes,
+ rb_cv_unsetenv_return_value=no)])
+if test "$rb_cv_unsetenv_return_value" = no; then
+ AC_DEFINE(VOID_UNSETENV)
+fi
AC_CACHE_CHECK(for __builtin_setjmp, ac_cv_func___builtin_setjmp,
[AC_TRY_LINK([@%:@include <setjmp.h>
@@ -1100,16 +1439,15 @@ test x$ac_cv_func__longjmp = xno && ac_cv_func__setjmp=no
AC_MSG_CHECKING(for setjmp type)
AC_ARG_WITH(setjmp-type,
- AS_HELP_STRING([--with-setjmp-type],[select setjmp type]),
+ AS_HELP_STRING([--with-setjmp-type], [select setjmp type]),
[
- case $withval in
- when(__builtin_setjmp) setjmp_prefix=__builtin_;;
- when(_setjmp) setjmp_prefix=_;;
- when(sigsetjmp) setjmp_prefix=sig;;
- when(setjmp) setjmp_prefix=;;
- when('') unset setjmp_prefix;;
- when(*) AC_MSG_ERROR(invalid setjmp type: $withval);;
- esac], [unset setjmp_prefix])
+ AS_CASE([$withval],
+ [__builtin_setjmp], [ setjmp_prefix=__builtin_],
+ [_setjmp], [ setjmp_prefix=_],
+ [sigsetjmp], [ setjmp_prefix=sig],
+ [setjmp], [ setjmp_prefix=],
+ [''], [ unset setjmp_prefix],
+ [ AC_MSG_ERROR(invalid setjmp type: $withval)])], [unset setjmp_prefix])
if test ${setjmp_prefix+set}; then
if test "${setjmp_prefix}" && eval test '$ac_cv_func_'${setjmp_prefix}setjmp = no; then
AC_MSG_ERROR(${setjmp_prefix}setjmp is not available)
@@ -1119,12 +1457,7 @@ elif test "$ac_cv_func___builtin_setjmp" = yes; then
elif test "$ac_cv_func__setjmp" = yes; then
setjmp_prefix=_
elif test "$ac_cv_func_sigsetjmp" = yes; then
- case $target_os in
- when(solaris*|cygwin*)
- setjmp_prefix=;;
- when(*)
- setjmp_prefix=sig;;
- esac
+ AS_CASE([$target_os],[solaris*|cygwin*],[setjmp_prefix=],[setjmp_prefix=sig])
else
setjmp_prefix=
fi
@@ -1207,6 +1540,7 @@ fi
AC_CACHE_CHECK(for negative time_t for gmtime(3), rb_cv_negative_time_t,
[AC_TRY_RUN([
+#include <stdlib.h>
#include <time.h>
void
@@ -1243,6 +1577,49 @@ if test "$rb_cv_negative_time_t" = yes; then
AC_DEFINE(NEGATIVE_TIME_T)
fi
+# [ruby-dev:40910] overflow of time on FreeBSD
+# http://www.freebsd.org/cgi/query-pr.cgi?pr=145341
+AC_CACHE_CHECK(for localtime(3) overflow correctly, rb_cv_localtime_overflow,
+ [AC_TRY_RUN([
+#include <stdlib.h>
+#include <time.h>
+
+void
+check(time_t t1)
+{
+ struct tm *tm;
+ time_t t2;
+ tm = localtime(&t1);
+ if (!tm)
+ return; /* overflow detected. ok. */
+ t2 = mktime(tm);
+ if (t1 == t2)
+ return; /* round-trip. ok. */
+ exit(1);
+}
+
+int
+main()
+{
+ time_t t;
+ if (~(time_t)0 <= 0) {
+ t = (((time_t)1) << (sizeof(time_t) * 8 - 2));
+ t |= t - 1;
+ }
+ else {
+ t = ~(time_t)0;
+ }
+ check(t);
+ return 0;
+}
+],
+ rb_cv_localtime_overflow=yes,
+ rb_cv_localtime_overflow=no,
+ rb_cv_localtime_overflow=yes)])
+if test "$rb_cv_localtime_overflow" = no; then
+ AC_DEFINE(LOCALTIME_OVERFLOW_PROBLEM)
+fi
+
if test "$ac_cv_func_sigprocmask" = yes && test "$ac_cv_func_sigaction" = yes; then
AC_DEFINE(POSIX_SIGNAL)
else
@@ -1275,14 +1652,12 @@ main()
fi
fi
+if test "$ac_cv_func_getpgid" = no; then
AC_FUNC_GETPGRP
+fi
+if test "$ac_cv_func_setpgid:$ac_cv_func_setpgrp" = no:yes; then
AC_FUNC_SETPGRP
-
-AC_C_BIGENDIAN
-AC_C_CONST
-AC_C_CHAR_UNSIGNED
-AC_C_INLINE
-AC_C_VOLATILE
+fi
if test x"$target_cpu" = xia64; then
AC_LIBOBJ([ia64])
@@ -1300,18 +1675,19 @@ if test x"$target_cpu" = xia64; then
fi
AC_CACHE_CHECK(whether right shift preserve sign bit, rb_cv_rshift_sign,
- [AC_COMPILE_IFELSE(AC_LANG_BOOL_COMPILE_TRY([], [(-1==(-1>>1))]),
+ [AC_COMPILE_IFELSE([AC_LANG_BOOL_COMPILE_TRY([], [(-1==(-1>>1))])],
rb_cv_rshift_sign=yes,
rb_cv_rshift_sign=no)])
if test "$rb_cv_rshift_sign" = yes; then
- AC_DEFINE(RSHIFT(x,y), ((x)>>(int)y))
+ AC_DEFINE(RSHIFT(x,y), ((x)>>(int)(y)))
else
- AC_DEFINE(RSHIFT(x,y), (((x)<0) ? ~((~(x))>>y) : (x)>>y))
+ AC_DEFINE(RSHIFT(x,y), (((x)<0) ? ~((~(x))>>(int)(y)) : (x)>>(int)(y)))
fi
-AC_MSG_CHECKING(read count field in FILE structures)
-AC_CACHE_VAL(rb_cv_fcnt,
-[for fcnt in dnl
+test "$rb_cv_fcnt" = "not found" && rb_cv_fcnt="not found (OK if using GNU libc)"
+AC_CACHE_CHECK([read count field in FILE structures], rb_cv_fcnt,
+[rb_cv_fcnt="not found (OK if using GNU libc)"
+for fcnt in dnl
_cnt dnl
__cnt dnl
_r dnl
@@ -1321,18 +1697,13 @@ AC_CACHE_VAL(rb_cv_fcnt,
AC_TRY_COMPILE([#include <stdio.h>
],
[FILE *f = stdin; f->$fcnt = 0;],
- rb_cv_fcnt="$fcnt"; break,
- rb_cv_fcnt="not found")
+ [rb_cv_fcnt="$fcnt"; break])
done])
-if test "$rb_cv_fcnt" = "not found"; then
- AC_MSG_RESULT([not found(OK if using GNU libc)])
-else
- AC_MSG_RESULT($rb_cv_fcnt)
- AC_DEFINE_UNQUOTED(FILE_COUNT, $rb_cv_fcnt)
-fi
+AS_CASE("$rb_cv_fcnt",
+ ["not found"*], [rb_cv_fcnt="not found"],
+ [AC_DEFINE_UNQUOTED(FILE_COUNT, $rb_cv_fcnt)])
-AC_MSG_CHECKING(read buffer ptr field in FILE structures)
-AC_CACHE_VAL(rb_cv_frptr,
+AC_CACHE_CHECK([read buffer ptr field in FILE structures], rb_cv_frptr,
[for frptr in dnl
_IO_read_ptr dnl
_ptr dnl
@@ -1347,15 +1718,11 @@ AC_CACHE_VAL(rb_cv_frptr,
rb_cv_frptr="$frptr"; break,
rb_cv_frptr="not found")
done])
-if test "$rb_cv_frptr" = "not found"; then
- AC_MSG_RESULT([not found])
-else
- AC_MSG_RESULT($rb_cv_frptr)
+if test "$rb_cv_frptr" != "not found"; then
AC_DEFINE_UNQUOTED(FILE_READPTR, $rb_cv_frptr)
if test "$rb_cv_fcnt" = "not found"; then
- AC_MSG_CHECKING(read buffer end field in FILE structures)
- AC_CACHE_VAL(rb_cv_frend,
+ AC_CACHE_CHECK([read buffer end field in FILE structures], rb_cv_frend,
[for frend in dnl
_IO_read_end dnl
bufread dnl
@@ -1367,10 +1734,7 @@ else
rb_cv_frend="$frend"; break,
rb_cv_frend="not found")
done])
- if test "$rb_cv_frend" = "not found"; then
- AC_MSG_RESULT([not found])
- else
- AC_MSG_RESULT($rb_cv_frend)
+ if test "$rb_cv_frend" != "not found"; then
AC_DEFINE_UNQUOTED(FILE_READEND, $rb_cv_frend)
fi
fi
@@ -1394,12 +1758,14 @@ if test "$ac_cv_func_sysconf" = yes; then
RUBY_CHECK_SYSCONF(CLK_TCK)
fi
-case "$target_cpu" in
-when(m68*|i?86|ia64|sparc*|alpha*) rb_cv_stack_grow_dir=-1;;
-when(hppa*) rb_cv_stack_grow_dir=+1;;
-esac
-AC_CACHE_CHECK(stack growing direction, rb_cv_stack_grow_dir,
- [AC_TRY_RUN([
+AC_DEFUN(RUBY_STACK_GROW_DIRECTION, [
+ AS_VAR_PUSHDEF([stack_grow_dir], [rb_cv_stack_grow_dir_$1])
+ AC_CACHE_CHECK(stack growing direction on $1, stack_grow_dir, [
+AS_CASE(["$1"],
+[m68*|x86*|x64|i?86|ia64|ppc*|sparc*|alpha*], [ $2=-1],
+[hppa*], [ $2=+1],
+[
+ AC_TRY_RUN([
/* recurse to get rid of inlining */
static int
stack_growup_p(addr, n)
@@ -1416,8 +1782,41 @@ int main()
int x;
return stack_growup_p(&x, 10);
}
-], rb_cv_stack_grow_dir=-1, rb_cv_stack_grow_dir=+1, rb_cv_stack_grow_dir=0)])
-AC_DEFINE_UNQUOTED(STACK_GROW_DIRECTION, $rb_cv_stack_grow_dir)
+], $2=-1, $2=+1, $2=0)
+ ])
+eval stack_grow_dir=\$$2])
+eval $2=\$stack_grow_dir
+AS_VAR_POPDEF([stack_grow_dir])])
+if test "${universal_binary-no}" = yes ; then
+ archflagpat=`eval echo '"'"${ARCH_FLAG}"'"' | sed 's/[[][|.*]]/\\&/g'`
+ save_CFLAGS="$CFLAGS" new_cflags=`echo "$CFLAGS" | sed "s|$archflagpat"'||'`
+ save_LDFLAGS="$LDFLAGS" new_ldflags=`echo "$LDFLAGS" | sed "s|$archflagpat"'||'`
+ stack_dir=
+ for archs in ${universal_archnames}; do
+ archs=`echo $archs | sed 's/=.*//'`
+ CFLAGS="$new_cflags -arch $archs"
+ LDFLAGS="$new_ldflags -arch $archs"
+ RUBY_STACK_GROW_DIRECTION($archs, dir)
+ if test x$stack_dir = x; then
+ stack_dir=$dir
+ elif test x$stack_dir != x$dir; then
+ stack_dir=no
+ fi
+ done
+ CFLAGS="$save_CFLAGS" LDFLAGS="$save_LDFLAGS"
+ if test x$stack_dir = xno; then
+ for archs in ${universal_archnames}; do
+ archs=`echo $archs | sed 's/=.*//'`
+ eval dir=\$[rb_cv_stack_grow_dir_]AS_TR_SH([$archs])
+ RUBY_DEFINE_IF([defined __${archs}__], STACK_GROW_DIRECTION, $dir)
+ done
+ else
+ AC_DEFINE_UNQUOTED(STACK_GROW_DIRECTION, $stack_dir)
+ fi
+else
+ RUBY_STACK_GROW_DIRECTION($target_cpu, dir)
+ AC_DEFINE_UNQUOTED(STACK_GROW_DIRECTION, $dir)
+fi
if test x"$enable_pthread" = xyes; then
for pthread_lib in thr pthread pthreads c c_r root; do
@@ -1429,28 +1828,22 @@ if test x"$enable_pthread" = xyes; then
AC_DEFINE(_REENTRANT)
AC_DEFINE(_THREAD_SAFE)
AC_DEFINE(HAVE_LIBPTHREAD)
- case $pthread_lib in
- when(c)
- ;;
- when(root)
- ;;
- when(c_r)
- MAINLIBS="-pthread $MAINLIBS"
- ;;
- when(*)
- LIBS="-l$pthread_lib $LIBS"
- ;;
- esac
+ AC_CHECK_HEADERS(pthread_np.h, [], [], [@%:@include <pthread.h>])
+ AS_CASE([$pthread_lib],
+ [c], [],
+ [root], [],
+ [c_r], [MAINLIBS="-pthread $MAINLIBS"],
+ [AS_CASE(["$target_os"],
+ [openbsd*], [LIBS="-pthread $LIBS"],
+ [LIBS="-l$pthread_lib $LIBS"])])
else
AC_MSG_WARN("Don't know how to find pthread library on your system -- thread support disabled")
fi
- AC_CHECK_FUNCS(nanosleep sched_yield pthread_attr_setinheritsched)
- if test x"$ac_cv_func_nanosleep" = xno; then
- AC_CHECK_LIB(rt, nanosleep)
- if test x"$ac_cv_lib_rt_nanosleep" = xyes; then
- AC_DEFINE(HAVE_NANOSLEEP)
- fi
- fi
+ AC_CHECK_FUNCS(sched_yield pthread_attr_setinheritsched \
+ pthread_getattr_np pthread_attr_get_np pthread_attr_getstack\
+ pthread_get_stackaddr_np pthread_get_stacksize_np \
+ thr_stksegment pthread_stackseg_np pthread_getthrds_np \
+ pthread_condattr_setclock pthread_sigmask)
fi
if test x"$ac_cv_header_ucontext_h" = xyes; then
if test x"$rb_with_pthread" = xyes; then
@@ -1523,10 +1916,21 @@ main(int argc, char *argv[])
test x$rb_cv_fork_with_pthread = xyes || AC_DEFINE(CANNOT_FORK_WITH_PTHREAD)
fi
+AS_CASE(["$target_os"],
+[freebsd*], [
+ AC_CHECK_HEADERS([/usr/local/include/execinfo.h])
+ if test "x$ac_cv_header__usr_local_include_execinfo_h" = xyes; then :
+ RUBY_APPEND_OPTION(CPPFLAGS, -I/usr/local/include)
+ LDFLAGS="${LDFLAGS:+$LDFLAGS }-L/usr/local/lib"
+ DLDFLAGS="${DLDFLAGS:+$DLDFLAGS }-L/usr/local/lib"
+ AC_CHECK_LIB([execinfo], [backtrace])
+ fi])
AC_CHECK_FUNCS(backtrace)
AC_ARG_WITH(valgrind,
- AS_HELP_STRING([--with-valgrind],[enable valgrind memcheck support]),
+ AS_HELP_STRING([--without-valgrind],[disable valgrind memcheck support]),
+ [], with_valgrind=yes)
+AS_IF([test x$with_valgrind != xno],
[AC_CHECK_HEADERS(valgrind/memcheck.h)])
dnl }
@@ -1536,24 +1940,19 @@ dnl wheather use dln_a_out or not
AC_ARG_WITH(dln-a-out,
AS_HELP_STRING([--with-dln-a-out], [use dln_a_out if possible]),
[
- case $withval in
- when(yes)
+ AS_CASE([$withval],
+ [yes], [
if test "$enable_shared" = yes; then
AC_MSG_ERROR(dln_a_out can not make shared library)
fi
- with_dln_a_out=yes;;
- when(*)
- with_dln_a_out=no;;
- esac], [with_dln_a_out=no])
+ with_dln_a_out=yes],
+ [
+ with_dln_a_out=no])], [with_dln_a_out=no])
AC_CACHE_CHECK(whether ELF binaries are produced, rb_cv_binary_elf,
[AC_TRY_LINK([],[], [
-case "`head -1 conftest$EXEEXT | cat -e`" in
-when('^?ELF'*)
- rb_cv_binary_elf=yes;;
-when(*)
- rb_cv_binary_elf=no;;
-esac],
+AS_CASE(["`head -1 conftest$EXEEXT | cat -e`"],
+['^?ELF'*], [rb_cv_binary_elf=yes], [rb_cv_binary_elf=no])],
rb_cv_binary_elf=no)])
if test "$rb_cv_binary_elf" = yes; then
@@ -1561,16 +1960,16 @@ if test "$rb_cv_binary_elf" = yes; then
if test "$with_dln_a_out" = yes; then
AC_MSG_ERROR(dln_a_out does not work with ELF)
fi
+ AC_LIBOBJ([addr2line])
fi
-case "$target_os" in
-when(linux* | gnu* | k*bsd*-gnu | bsdi* | kopensolaris*-gnu)
+AS_CASE(["$target_os"],
+[linux* | gnu* | k*bsd*-gnu | bsdi* | kopensolaris*-gnu], [
if test "$rb_cv_binary_elf" = no; then
with_dln_a_out=yes
else
LDFLAGS="$LDFLAGS -rdynamic"
- fi;;
-esac
+ fi])
LIBEXT=a
AC_SUBST(DLDFLAGS)dnl
@@ -1591,8 +1990,8 @@ if test "$with_dln_a_out" != yes; then
rb_cv_dlopen=unknown
AC_MSG_CHECKING(whether OS depend dynamic link works)
if test "$GCC" = yes; then
- case "$target_os" in
- when(nextstep*|openstep*|rhapsody*|darwin*)
+ AS_CASE(["$target_os"],
+ [nextstep*|openstep*|rhapsody*|darwin*], [
# The -fno-common is needed if we wish to embed the Ruby interpreter
# into a plugin module of some project (as opposed to embedding it
# within the project's application). The -I/usr/local/include is
@@ -1600,194 +1999,183 @@ if test "$with_dln_a_out" != yes; then
# fails to consult /usr/local/include by default. This causes
# mkmf.rb's have_header() to fail if the desired resource happens to be
# installed in the /usr/local tree.
- RUBY_APPEND_OPTION(CCDLFLAGS, -fno-common);;
- when(human*|bsdi*|beos*|haiku*|cygwin*|mingw*|aix*|interix*) ;;
- when(*)
- RUBY_APPEND_OPTION(CCDLFLAGS, -fPIC);;
- esac
+ RUBY_APPEND_OPTION(CCDLFLAGS, -fno-common)],
+ [human*|bsdi*|beos*|haiku*|cygwin*|mingw*|aix*|interix*], [ ],
+ [
+ RUBY_APPEND_OPTION(CCDLFLAGS, -fPIC)])
else
- case "$target_os" in
- when(hpux*) CCDLFLAGS="$CCDLFLAGS +Z";;
- when(solaris*|irix*) CCDLFLAGS="$CCDLFLAGS -KPIC" ;;
- when(sunos*) CCDLFLAGS="$CCDLFLAGS -PIC" ;;
- when(esix*|uxpds*) CCDLFLAGS="$CCDLFLAGS -KPIC" ;;
- when(*) : ${CCDLFLAGS=""} ;;
- esac
+ AS_CASE(["$target_os"],
+ [hpux*], [CCDLFLAGS="$CCDLFLAGS +Z"],
+ [solaris*|irix*], [CCDLFLAGS="$CCDLFLAGS -KPIC"],
+ [sunos*], [CCDLFLAGS="$CCDLFLAGS -PIC"],
+ [esix*|uxpds*], [CCDLFLAGS="$CCDLFLAGS -KPIC"],
+ [: ${CCDLFLAGS=""}])
fi
AC_ARG_ENABLE(rpath,
- AS_HELP_STRING([--disable-rpath], [embed run path into extension libraries]),
+ AS_HELP_STRING([--enable-rpath], [embed run path into extension libraries.
+ enabled by default on ELF platforms]),
[enable_rpath=$enableval], [enable_rpath="$rb_cv_binary_elf"])
if test "$enable_rpath" = yes; then
RPATHFLAG=" ${linker_flag}-R%1\$-s"
fi
- case "$target_os" in
- when(hpux*) DLDFLAGS="$DLDFLAGS -E"
+ AS_CASE(["$target_os"],
+ [hpux*], [ DLDFLAGS="$DLDFLAGS -E"
: ${LDSHARED='ld -b'}
XLDFLAGS="$XLDFLAGS -Wl,-E"
: ${LIBPATHENV=SHLIB_PATH}
if test "$rb_cv_prog_gnu_ld" = no; then
RPATHFLAG=' +b %1$-s'
fi
- rb_cv_dlopen=yes;;
- when(solaris*) if test "$GCC" = yes; then
+ rb_cv_dlopen=yes],
+ [solaris*], [ if test "$GCC" = yes; then
: ${LDSHARED='$(CC) -shared'}
if test "$rb_cv_prog_gnu_ld" = yes; then
LDFLAGS="$LDFLAGS -Wl,-E"
fi
else
- : ${LDSHARED='ld -G'}
+ : ${LDSHARED='$(CC) -G'}
fi
- rb_cv_dlopen=yes;;
- when(sunos*) : ${LDSHARED='ld -assert nodefinitions'}
- rb_cv_dlopen=yes;;
- when(irix*) : ${LDSHARED='ld -shared'}
- rb_cv_dlopen=yes;;
- when(sysv4*) : ${LDSHARED='ld -G'}
- rb_cv_dlopen=yes;;
- when(nto-qnx*) : ${LDSHARED="qcc -shared"}
- rb_cv_dlopen=yes ;;
- when(esix*|uxpds*) : ${LDSHARED="ld -G"}
- rb_cv_dlopen=yes ;;
- when(osf*) : ${LDSHARED="ld -shared -expect_unresolved \"*\""}
- rb_cv_dlopen=yes ;;
- when(bsdi3*) case "$CC" in
- when(*shlicc*) : ${LDSHARED="$CC -r"}
- rb_cv_dlopen=yes ;;
- esac ;;
- when(linux* | gnu* | k*bsd*-gnu | netbsd* | bsdi* | kopensolaris*-gnu)
- : ${LDSHARED='${CC} -shared'}
+ if test "$ac_cv_sizeof_voidp" = 8; then
+ : ${LIBPATHENV=LD_LIBRARY_PATH_64}
+ fi
+ rb_cv_dlopen=yes],
+ [sunos*], [ : ${LDSHARED='ld -assert nodefinitions'}
+ rb_cv_dlopen=yes],
+ [irix*], [ : ${LDSHARED='ld -shared'}
+ rb_cv_dlopen=yes],
+ [sysv4*], [ : ${LDSHARED='ld -G'}
+ rb_cv_dlopen=yes],
+ [nto-qnx*], [ : ${LDSHARED='$(CC) -shared'}
+ rb_cv_dlopen=yes],
+ [esix*|uxpds*], [ : ${LDSHARED="ld -G"}
+ rb_cv_dlopen=yes],
+ [osf*], [ : ${LDSHARED="ld -shared -expect_unresolved \"*\""}
+ rb_cv_dlopen=yes],
+ [bsdi3*], [ AS_CASE(["$CC"],
+ [*shlicc*], [ : ${LDSHARED='$(CC) -r'}
+ rb_cv_dlopen=yes])],
+ [linux* | gnu* | k*bsd*-gnu | netbsd* | bsdi* | kopensolaris*-gnu], [
+ : ${LDSHARED='$(CC) -shared'}
if test "$rb_cv_binary_elf" = yes; then
LDFLAGS="$LDFLAGS -Wl,-export-dynamic"
fi
- rb_cv_dlopen=yes ;;
- when(interix*) : ${LDSHARED="$CC -shared"}
+ rb_cv_dlopen=yes],
+ [interix*], [ : ${LDSHARED='$(CC) -shared'}
XLDFLAGS="$XLDFLAGS -Wl,-E"
LIBPATHFLAG=" -L%1\$-s"
- rb_cv_dlopen=yes ;;
- when(freebsd*|dragonfly*)
- : ${LDSHARED="$CC -shared"}
+ rb_cv_dlopen=yes],
+ [freebsd*|dragonfly*], [
+ : ${LDSHARED='$(CC) -shared'}
if test "$rb_cv_binary_elf" = yes; then
LDFLAGS="$LDFLAGS -rdynamic"
DLDFLAGS="$DLDFLAGS "'-Wl,-soname,$(.TARGET)'
else
test "$GCC" = yes && test "$rb_cv_prog_gnu_ld" = yes || LDSHARED="ld -Bshareable"
fi
- rb_cv_dlopen=yes ;;
- when(openbsd*) : ${LDSHARED="\$(CC) -shared ${CCDLFLAGS}"}
+ rb_cv_dlopen=yes],
+ [openbsd*], [ : ${LDSHARED='$(CC) -shared ${CCDLFLAGS}'}
if test "$rb_cv_binary_elf" = yes; then
LDFLAGS="$LDFLAGS -Wl,-E"
fi
- rb_cv_dlopen=yes ;;
- when(nextstep*) : ${LDSHARED='cc -r -nostdlib'}
+ rb_cv_dlopen=yes],
+ [nextstep*], [ : ${LDSHARED='$(CC) -r -nostdlib'}
LDFLAGS="$LDFLAGS -u libsys_s"
- rb_cv_dlopen=yes ;;
- when(openstep*) : ${LDSHARED='cc -dynamic -bundle -undefined suppress'}
+ rb_cv_dlopen=yes],
+ [openstep*], [ : ${LDSHARED='$(CC) -dynamic -bundle -undefined suppress'}
: ${LDFLAGS=""}
- rb_cv_dlopen=yes ;;
- when(rhapsody*) : ${LDSHARED='cc -dynamic -bundle -undefined suppress'}
+ rb_cv_dlopen=yes],
+ [rhapsody*], [ : ${LDSHARED='$(CC) -dynamic -bundle -undefined suppress'}
: ${LDFLAGS=""}
- rb_cv_dlopen=yes ;;
- when(darwin*) : ${LDSHARED='$(CC) -dynamic -bundle -undefined suppress -flat_namespace'}
+ rb_cv_dlopen=yes],
+ [darwin*], [ : ${LDSHARED='$(CC) -dynamic -bundle'}
+ : ${DLDFLAGS="${linker_flag}-undefined${linker_flag:+,}dynamic_lookup ${linker_flag}-multiply_defined${linker_flag:+,}suppress ${linker_flag}-flat_namespace"}
: ${LDFLAGS=""}
: ${LIBPATHENV=DYLD_LIBRARY_PATH}
# /usr/local/include is always searched for
# some reason, but /usr/local/lib is not.
hdr=`find /usr/local/include -name \*.h -type f | sed 's:^/usr/local/include/::;q'`
- if test -n "$hdr" && $CC -E -include "$hdr" -xc /dev/null | fgrep -q "$hdr"; then
+ if test -n "$hdr" && $CC -E -include "$hdr" -xc /dev/null 2>/dev/null | fgrep -q "$hdr"; then
$CC -print-search-dirs | grep -q '^libraries:.*:/usr/local/lib/*' ||
echo " $LDFLAGS " | grep -q ' -L */usr/local/lib/* ' ||
LDFLAGS="${LDFLAGS:+$LDFLAGS }-L/usr/local/lib"
fi
- rb_cv_dlopen=yes ;;
- when(aix*) if test "$GCC" = yes; then
- : ${LDSHARED='$(CC) -shared'}
- else
- : ${LDSHARED='$(CC)'}
- fi
+ rb_cv_dlopen=yes],
+ [aix*], [ : ${LDSHARED='$(CC)'}
LDSHARED="$LDSHARED ${linker_flag}-G"
DLDFLAGS='-eInit_$(TARGET)'
- XLDFLAGS="${linker_flag}-bE:ruby.imp ${linker_flag}-brtl"
+ XLDFLAGS="${linker_flag}"'-bE:$(ARCHFILE)'" ${linker_flag}-brtl"
XLDFLAGS="$XLDFLAGS ${linker_flag}-blibpath:${prefix}/lib:${LIBPATH:-/usr/lib:/lib}"
: ${ARCHFILE="ruby.imp"}
TRY_LINK='$(CC) $(LDFLAGS) -oconftest $(INCFLAGS) -I$(hdrdir) $(CPPFLAGS)'
TRY_LINK="$TRY_LINK"' $(CFLAGS) $(src) $(LIBPATH) $(LOCAL_LIBS) $(LIBS)'
: ${LIBPATHENV=SHLIB_PATH}
- RPATHFLAG=" ${linker_flag}-blibpath:%1\$-s"
- rb_cv_dlopen=yes ;;
- when(human*) : ${DLDFLAGS=''}
+ RPATHFLAG=" ${linker_flag}-blibpath:%1\$-s:${prefix}/lib:${LIBPATH:-/usr/lib:/lib}"
+ rb_cv_dlopen=yes],
+ [human*], [ : ${DLDFLAGS=''}
: ${LDSHARED=''}
: ${LDFLAGS=''}
: ${LINK_SO='ar cru $@ $(OBJS)'}
- rb_cv_dlopen=yes ;;
- when(beos*) case "$target_cpu" in
- when(powerpc*)
+ rb_cv_dlopen=yes],
+ [beos*], [ AS_CASE(["$target_cpu"],
+ [powerpc*], [
: ${LDSHARED="ld -xms"}
DLDFLAGS="$DLDFLAGS "'-export Init_$(TARGET) -lbe -lroot glue-noinit.a init_term_dyn.o start_dyn.o'
LDFLAGS="$LDFLAGS -L/boot/home/config/lib -lbe -lroot"
- ;;
- when(i586*)
+ ],
+ [i586*], [
: ${LDSHARED="ld -shared"}
DLDFLAGS="$DLDFLAGS -L/boot/develop/lib/x86 -L/boot/home/config/lib \$(topdir)/_APP_ -lbe -lroot"
LDFLAGS="$LDFLAGS -L/boot/develop/lib/x86 -L/boot/home/config/lib -lbe -lroot"
- ;;
- esac
+ ])
: ${LIBPATHENV=LIBRARY_PATH}
- rb_cv_dlopen=yes ;;
- when(haiku*) case "$target_cpu" in
- when(powerpc*)
+ rb_cv_dlopen=yes],
+ [haiku*], [ AS_CASE(["$target_cpu"],
+ [powerpc*], [
: ${LDSHARED="ld -xms"}
DLDFLAGS="$DLDFLAGS "'-export Init_$(TARGET) -lbe -lroot glue-noinit.a init_term_dyn.o start_dyn.o'
- ;;
- when(i586*)
+ ],
+ [i586*], [
: ${LDSHARED="ld -shared"}
DLDFLAGS="$DLDFLAGS -L/boot/develop/lib/x86 -lbe -lroot"
- ;;
- esac
+ ])
: ${LIBPATHENV=LIBRARY_PATH}
- rb_cv_dlopen=yes ;;
- when(nto-qnx*) DLDFLAGS="$DLDFLAGS -L/lib -L/usr/lib -L/usr/local/lib"
+ rb_cv_dlopen=yes ],
+ [nto-qnx*], [ DLDFLAGS="$DLDFLAGS -L/lib -L/usr/lib -L/usr/local/lib"
: ${LDSHARED='ld -Bshareable -x'}
LDFLAGS="$LDFLAGS -L/lib -L/usr/lib -L/usr/local/lib"
- rb_cv_dlopen=yes;;
- when(cygwin*|mingw*)
- : ${LDSHARED="${CC} -shared "'$(if $(filter-out -g -g0,$(debugflags)),,-s)'}
+ rb_cv_dlopen=yes],
+ [cygwin*|mingw*], [
+ : ${LDSHARED='$(CC) -shared $(if $(filter-out -g -g0,$(debugflags)),,-s)'}
XLDFLAGS="$XLDFLAGS -Wl,--stack,0x00200000,--enable-auto-import"
DLDFLAGS="${DLDFLAGS} -Wl,--enable-auto-image-base,--enable-auto-import"
: ${LIBPATHENV=""}
- rb_cv_dlopen=yes ;;
- when(hiuxmpp) : ${LDSHARED='ld -r'} ;;
- when(atheos*) : ${LDSHARED="$CC -shared"}
- rb_cv_dlopen=yes ;;
- when(os2-emx*) LDFLAGS="$LDFLAGS -Zomf"
- ;;
- when(*) : ${LDSHARED='ld'} ;;
- esac
+ rb_cv_dlopen=yes],
+ [hiuxmpp], [ : ${LDSHARED='ld -r'}],
+ [atheos*], [ : ${LDSHARED='$(CC) -shared'}
+ rb_cv_dlopen=yes],
+ [os2-emx*], [ LDFLAGS="$LDFLAGS -Zomf"
+ ],
+ [ : ${LDSHARED='ld'}])
AC_MSG_RESULT($rb_cv_dlopen)
fi
if test "${LDSHAREDXX}" = ""; then
- case "${LDSHARED}" in
- when(*'$(CC)'*)
+ AS_CASE(["${LDSHARED}"],
+ [*'$(CC)'*], [
LDSHAREDXX=`echo "${LDSHARED}" | sed 's/\$(CC)/$(CXX)/'`
- ;;
- when(*'${CC}'*)
+ ],
+ [*'${CC}'*], [
LDSHAREDXX=`echo "${LDSHARED}" | sed 's/\${CC}/${CXX}/'`
- ;;
- when(*$CC*)
+ ],
+ [*$CC*], [
LDSHAREDXX=`echo "${LDSHARED}" | sed "s|$CC|$CXX|"`
- ;;
- when(ld" "*)
- ;;
- esac
-fi
-case ${RPATHFLAG} in
-when(*'%1$'*)
- : ${LIBPATHFLAG=' -L%1$-s'};;
-when(*)
- : ${LIBPATHFLAG=' -L%s'};;
-esac
+ ],
+ [ld" "*], [
+ ])
+fi
+AS_CASE([${RPATHFLAG}],[*'%1$'*],[: ${LIBPATHFLAG=' -L%1$-s'}],[: ${LIBPATHFLAG=' -L%s'}])
AC_SUBST(LINK_SO)
AC_SUBST(LIBPATHFLAG)
@@ -1823,21 +2211,20 @@ if test "$dln_a_out_works" = yes; then
DLEXT=so
CCDLFLAGS=
else
- case "$target_os" in
- when(hpux*)
- DLEXT=sl;;
- when(nextstep*|openstep*|rhapsody*|darwin*)
- DLEXT=bundle;;
- when(os2-emx*)
+ AS_CASE(["$target_os"],
+ [hpux*], [
+ DLEXT=sl],
+ [nextstep*|openstep*|rhapsody*|darwin*], [
+ RUBY_APPEND_OPTION(XLDFLAGS, [-Wl,-u,_objc_msgSend])
+ DLEXT=bundle],
+ [os2-emx*], [
LOAD_RELATIVE=1
- DLEXT=dll;;
- when(cygwin*|mingw*|*djgpp*)
+ DLEXT=dll],
+ [cygwin*|mingw*|*djgpp*], [
LOAD_RELATIVE=1
- AC_DEFINE(MANGLED_PATH)
- DLEXT=so;;
- when(*)
- DLEXT=so;;
- esac
+ DLEXT=so],
+ [
+ DLEXT=so])
fi
if test "$rb_cv_dlopen:$load_relative" = yes:yes; then
AC_CHECK_FUNCS(dladdr)
@@ -1856,46 +2243,44 @@ test ".$DLEXT" = "." || AC_DEFINE_UNQUOTED(DLEXT, ".$DLEXT")
test ".$DLEXT2" = "." || AC_DEFINE_UNQUOTED(DLEXT2, ".$DLEXT2")
AC_SUBST(DLEXT)
-AC_SUBST(STRIP)dnl
if test "$with_dln_a_out" = yes; then
STRIP=true
else
- STRIP=strip
+ AC_CHECK_TOOL(STRIP, strip, :)dnl
fi
-case "$target_os" in
- when(linux* | gnu* | k*bsd*-gnu | kopensolaris*-gnu)
- STRIP='strip -S -x';;
- when(nextstep* | openstep* | rhapsody* | darwin*)
- STRIP='strip -A -n';;
-esac
+AS_CASE(["$target_os"],
+ [linux* | gnu* | k*bsd*-gnu | kopensolaris*-gnu], [
+ STRIP="$STRIP -S -x"],
+ [nextstep* | openstep* | rhapsody* | darwin*], [
+ STRIP="$STRIP -A -n"])
+AC_ARG_WITH(ext,
+ AC_HELP_STRING([--with-ext=EXTS],
+ [pass to --with-ext option of extmk.rb]))
+AC_ARG_WITH(out-ext,
+ AC_HELP_STRING([--with-out-ext=EXTS],
+ [pass to --without-ext option of extmk.rb]))
EXTSTATIC=
AC_SUBST(EXTSTATIC)dnl
AC_ARG_WITH(static-linked-ext,
AS_HELP_STRING([--with-static-linked-ext], [link external modules statically]),
- [case $withval in
- when(yes)
- STATIC=
- EXTSTATIC=static;;
- when(*) ;;
- esac])
-
-case "$target_os" in
- when(human*)
+ [AS_CASE([$withval],[yes],[STATIC=;EXTSTATIC=static])])
+
+AS_CASE(["$target_os"],
+ [human*], [
setup=Setup.x68
- ;;
+ ],
dnl OS/2 environment w/ Autoconf 2.1x for EMX
- when(os2-emx)
+ [os2-emx], [
setup=Setup.emx
- ;;
- when(*djgpp*)
+ ],
+ [*djgpp*], [
setup=Setup.dj
- ;;
- when(*)
+ ],
+ [
setup=Setup
- ;;
-esac
+ ])
AC_SUBST(setup)
@@ -1904,18 +2289,30 @@ if test "$prefix" = NONE; then
fi
if test x"$cross_compiling" = xyes; then
- test x"$MINIRUBY" = x && MINIRUBY="${RUBY-ruby} -I`pwd` "-r'$(arch)-fake'
+ test x"$MINIRUBY" = x && MINIRUBY="${RUBY-$BASERUBY} -I`pwd` "-r'$(arch)-fake'
+ XRUBY_LIBDIR=`${RUBY-$BASERUBY} -rrbconfig -e ['puts RbConfig::CONFIG["libdir"]']`
+ XRUBY_RUBYLIBDIR=`${RUBY-$BASERUBY} -rrbconfig -e ['puts RbConfig::CONFIG["rubylibdir"]']`
+ XRUBY_RUBYHDRDIR=`${RUBY-$BASERUBY} -rrbconfig -e ['puts RbConfig::CONFIG["rubyhdrdir"]']`
+ AC_SUBST(XRUBY_LIBDIR)
+ AC_SUBST(XRUBY_RUBYLIBDIR)
+ AC_SUBST(XRUBY_RUBYHDRDIR)
PREP='$(arch)-fake.rb'
RUNRUBY='$(MINIRUBY) -I`cd $(srcdir)/lib; pwd`'
+ XRUBY='$(MINIRUBY)'
+ TEST_RUNNABLE=no
else
- MINIRUBY='./miniruby$(EXEEXT) -I$(srcdir)/lib'
- MINIRUBY="$MINIRUBY"' -I$(EXTOUT)/common -I./- -r$(srcdir)/ext/purelib.rb'
+ MINIRUBY='./miniruby$(EXEEXT) -I$(srcdir)/lib -I.'
+ MINIRUBY="$MINIRUBY"' -I$(EXTOUT)/common'
PREP='miniruby$(EXEEXT)'
- RUNRUBY='$(MINIRUBY) $(srcdir)/runruby.rb --extout=$(EXTOUT)'
+ RUNRUBY='$(MINIRUBY) $(srcdir)/tool/runruby.rb --extout=$(EXTOUT)'
+ XRUBY='$(RUNRUBY)'
+ TEST_RUNNABLE=yes
fi
+AC_SUBST(TEST_RUNNABLE)
AC_SUBST(MINIRUBY)
AC_SUBST(PREP)
AC_SUBST(RUNRUBY)
+AC_SUBST(XRUBY)
AC_SUBST(EXTOUT, [${EXTOUT=.ext}])
FIRSTMAKEFILE=""
@@ -1925,14 +2322,13 @@ LIBRUBYARG_STATIC='-l$(RUBY_SO_NAME)-static'
LIBRUBYARG='$(LIBRUBYARG_STATIC)'
SOLIBS=
-case "$target_os" in
- when(cygwin*|mingw*|beos*|haiku*|openstep*|nextstep*|rhapsody*|darwin*|os2-emx*)
+AS_CASE(["$target_os"],
+ [cygwin*|mingw*|beos*|haiku*|openstep*|nextstep*|rhapsody*|darwin*|os2-emx*], [
: ${DLDLIBS=""}
- ;;
- when(*)
+ ],
+ [
DLDLIBS="$DLDLIBS -lc"
- ;;
-esac
+ ])
AC_ARG_WITH(soname,
AS_HELP_STRING([--with-soname=SONAME], [base name of shared library]),
@@ -1947,32 +2343,38 @@ ENABLE_SHARED=no
AC_ARG_ENABLE(shared,
AS_HELP_STRING([--enable-shared], [build a shared library for Ruby]),
[enable_shared=$enableval])
-LIBRUBYARG_SHARED='-l$(RUBY_SO_NAME)'
-if test "$enable_shared" = 'yes'; then
+libprefix='$(libdir)'
+LIBRUBY_RELATIVE=no
+AS_CASE("$enable_shared", [yes], [
LIBRUBY='$(LIBRUBY_SO)'
+ LIBRUBYARG_SHARED='-l$(RUBY_SO_NAME)'
LIBRUBYARG='$(LIBRUBYARG_SHARED)'
test -z "$CCDLFLAGS" || CFLAGS="$CFLAGS $CCDLFLAGS"
ENABLE_SHARED=yes
if test "$rb_cv_binary_elf" = yes; then
SOLIBS='$(LIBS)'
fi
- case "$target_os" in
- when(sunos4*)
+ AS_CASE(["$target_os"],
+ [sunos4*], [
LIBRUBY_ALIASES='lib$(RUBY_SO_NAME).so.$(MAJOR).$(MINOR) lib$(RUBY_SO_NAME).so'
- ;;
- when(linux* | gnu* | k*bsd*-gnu | atheos* | kopensolaris*-gnu)
+ ],
+ [linux* | gnu* | k*bsd*-gnu | atheos* | kopensolaris*-gnu], [
LIBRUBY_DLDFLAGS='-Wl,-soname,lib$(RUBY_SO_NAME).so.$(MAJOR).$(MINOR)'
LIBRUBY_ALIASES='lib$(RUBY_SO_NAME).so.$(MAJOR).$(MINOR) lib$(RUBY_SO_NAME).so'
- ;;
- when(freebsd*|dragonfly*)
+ if test "$load_relative" = yes; then
+ LIBRUBY_RPATHFLAGS="'-Wl,-rpath,\$\${ORIGIN}/../lib'"
+ LIBRUBY_RELATIVE=yes
+ fi
+ ],
+ [freebsd*|dragonfly*], [
SOLIBS='$(LIBS)'
LIBRUBY_SO='lib$(RUBY_SO_NAME).so.$(MAJOR)$(MINOR)'
if test "$rb_cv_binary_elf" != "yes" ; then
LIBRUBY_SO="$LIBRUBY_SO.\$(TEENY)"
LIBRUBY_ALIASES=''
fi
- ;;
- when(netbsd*)
+ ],
+ [netbsd*], [
SOLIBS='$(LIBS)'
LIBRUBY_SO='lib$(RUBY_SO_NAME).so.$(MAJOR)$(MINOR).$(TEENY)'
LIBRUBY_DLDFLAGS='-Wl,-soname,lib$(RUBY_SO_NAME).so.$(MAJOR)$(MINOR)'
@@ -1981,162 +2383,207 @@ if test "$enable_shared" = 'yes'; then
else # a.out platforms
LIBRUBY_ALIASES=""
fi
- ;;
- when(openbsd*)
+ ],
+ [openbsd*], [
SOLIBS='$(LIBS)'
- LIBRUBY_SO='lib$(RUBY_INSTALL_NAME).so.$(MAJOR).'`expr ${MINOR} \* 10 + ${TEENY}`
- ;;
- when(solaris*)
+ LIBRUBY_SO='lib$(RUBY_SO_NAME).so.$(MAJOR).'`expr ${MINOR} \* 10 + ${TEENY}`
+ ],
+ [solaris*], [
SOLIBS='$(LIBS)'
LIBRUBY_SO='lib$(RUBY_SO_NAME).so.$(MAJOR)'
LIBRUBY_ALIASES='lib$(RUBY_SO_NAME).so.$(MAJOR).$(MINOR).$(TEENY) lib$(RUBY_SO_NAME).so'
if test "$GCC" = yes; then
LIBRUBY_DLDFLAGS="$DLDFLAGS "'-Wl,-h,$(@F)'
+ else
+ LIBRUBY_DLDFLAGS="$DLDFLAGS "'-h $(@F)'
fi
XLDFLAGS="$XLDFLAGS "'-R${libdir}'
- ;;
- when(hpux*)
+ ],
+ [hpux*], [
XLDFLAGS="$XLDFLAGS "'-Wl,+s,+b,$(libdir)'
LIBRUBY_SO='lib$(RUBY_SO_NAME).sl.$(MAJOR).$(MINOR).$(TEENY)'
LIBRUBY_ALIASES='lib$(RUBY_SO_NAME).sl.$(MAJOR).$(MINOR) lib$(RUBY_SO_NAME).sl'
- ;;
- when(aix*)
+ ],
+ [aix*], [
LIBRUBY_DLDFLAGS="${linker_flag}-bnoentry $XLDFLAGS"
LIBRUBYARG_SHARED='-L${libdir} -l${RUBY_SO_NAME}'
SOLIBS='-lm -lc'
- ;;
- when(beos*)
- case "$target_cpu" in
- when(powerpc*)
+ ],
+ [beos*], [
+ AS_CASE(["$target_cpu"],
+ [powerpc*], [
LIBRUBY_DLDFLAGS='-f ruby.exp -lnet -lbe -lroot glue-noinit.a init_term_dyn.o start_dyn.o'
- ;;
- esac
- ;;
- when(darwin*)
+ ])
+ ],
+ [darwin*], [
RUBY_SO_NAME="$RUBY_SO_NAME"'.$(MAJOR).$(MINOR).$(TEENY)'
- LIBRUBY_LDSHARED='$(CC) -dynamiclib -undefined suppress -flat_namespace'
+ LIBRUBY_LDSHARED='$(CC) -dynamiclib'
if test "$load_relative" = yes; then
libprefix='@executable_path/../lib'
- else
- libprefix='$(libdir)'
+ LIBRUBY_RELATIVE=yes
fi
- LIBRUBY_DLDFLAGS='-install_name '${libprefix}'/$(LIBRUBY_SO)'
+ LIBRUBY_DLDFLAGS="$LIBRUBY_DLDFLAGS "'-install_name '${libprefix}'/$(LIBRUBY_SO)'
LIBRUBY_DLDFLAGS="$LIBRUBY_DLDFLAGS "'-current_version $(MAJOR).$(MINOR).$(TEENY)'
LIBRUBY_DLDFLAGS="$LIBRUBY_DLDFLAGS "'-compatibility_version $(ruby_version)'
- LIBRUBY_DLDFLAGS="$LIBRUBY_DLDFLAGS "'-Wl,-unexported_symbol,_Init_* $(XLDFLAGS)'
+ if test "$visibility_option" = ld; then
+ LIBRUBY_DLDFLAGS="$LIBRUBY_DLDFLAGS "'-Wl,-unexported_symbol,_Init_*'
+ LIBRUBY_DLDFLAGS="$LIBRUBY_DLDFLAGS "'-Wl,-unexported_symbol,*_threadptr_*'
+ fi
+ LIBRUBY_DLDFLAGS="$LIBRUBY_DLDFLAGS "' $(XLDFLAGS)'
LIBRUBY_SO='lib$(RUBY_SO_NAME).dylib'
LIBRUBY_ALIASES='lib$(RUBY_BASE_NAME).$(MAJOR).$(MINOR).dylib lib$(RUBY_INSTALL_NAME).dylib'
- ;;
- when(interix*)
+ ],
+ [interix*], [
LIBRUBYARG_SHARED='-L. -L${libdir} -l$(RUBY_SO_NAME)'
- ;;
- when(*)
- ;;
- esac
-fi
+ ])
+], [
+ LIBRUBYARG_SHARED=
+])
if test "$enable_rpath" = yes; then
- LIBRUBY_RPATHFLAGS="${linker_flag}-R ${linker_flag}\$(libdir) -L\$(libdir)"
+ test -z "$LIBRUBY_RPATHFLAGS" || LIBRUBY_RPATHFLAGS="$LIBRUBY_RPATHFLAGS "
+ LIBRUBY_RPATHFLAGS="$LIBRUBY_RPATHFLAGS${linker_flag}-R ${linker_flag}${libprefix} -L\$(libdir)"
LIBRUBYARG_SHARED="$LIBRUBY_RPATHFLAGS $LIBRUBYARG_SHARED"
LIBRUBYARG_STATIC="$LIBRUBY_RPATHFLAGS $LIBRUBYARG_STATIC"
fi
+AC_SUBST(LIBRUBY_RELATIVE)
LDFLAGS="-L. $LDFLAGS"
AC_SUBST(ARCHFILE)
+if test "$EXEEXT" = .exe; then
+ EXECUTABLE_EXTS='".exe",".com",".cmd",".bat"'
+ AC_DEFINE_UNQUOTED(EXECUTABLE_EXTS, $EXECUTABLE_EXTS)
+ EXECUTABLE_EXTS=`echo $EXECUTABLE_EXTS | tr -d '"' | tr , ' '`
+ AC_SUBST(EXECUTABLE_EXTS)
+fi
+
dnl }
dnl build section {
dnl build rdoc index if requested
RDOCTARGET=""
+CAPITARGET=""
AC_ARG_ENABLE(install-doc,
- AS_HELP_STRING([--disable-install-doc], [do not install rdoc indexes during install]),
+ AS_HELP_STRING([--disable-install-doc], [do not install neither rdoc indexes nor C API documents during install]),
[install_doc=$enableval], [install_doc=yes])
+AC_ARG_ENABLE(install-rdoc,
+ AS_HELP_STRING([--disable-install-rdoc], [do not install rdoc indexes during install]),
+ [install_rdoc=$enableval], [install_rdoc=yes])
+AC_ARG_ENABLE(install-capi,
+ AS_HELP_STRING([--disable-install-capi], [do not install C API documents during install]),
+ [install_capi=$enableval], [install_capi=yes])
+
if test "$install_doc" != no; then
- RDOCTARGET="install-doc"
+ if test "$install_rdoc" != no; then
+ RDOCTARGET="rdoc"
+ else
+ RDOCTARGET="nodoc"
+ fi
+ if test "$install_capi" != no -a -n "$DOXYGEN"; then
+ CAPITARGET="capi"
+ else
+ CAPITARGET="nodoc"
+ fi
+else
+ RDOCTARGET="nodoc"
+ CAPITARGET="nodoc"
fi
+
AC_SUBST(RDOCTARGET)
+AC_SUBST(CAPITARGET)
+
+AS_CASE(["$RDOCTARGET:$CAPITARGET"],[nodoc:nodoc],[INSTALLDOC=nodoc],[INSTALLDOC=all])
+AC_SUBST(INSTALLDOC)
if test "$rb_with_pthread" = "yes"; then
THREAD_MODEL=pthread
fi
-MINIDLNOBJ=dln.o
-case "$target_os" in
- when(linux*)
- ;;
- when(netbsd*)
+AC_CACHE_CHECK([for prefix of external symbols], rb_cv_symbol_prefix, [
+ AC_TRY_COMPILE([extern void conftest_external(void) {}], [], [
+ rb_cv_symbol_prefix=`$NM conftest.$ac_objext |
+ sed -n ['/.*T[ ]\([^ ]*\)conftest_external.*/!d;s//\1/p;q']`
+ ],
+ [rb_cv_symbol_prefix=''])
+ test -n "$rb_cv_symbol_prefix" || rb_cv_symbol_prefix=NONE
+])
+SYMBOL_PREFIX="$rb_cv_symbol_prefix"
+test "x$SYMBOL_PREFIX" = xNONE && SYMBOL_PREFIX=''
+MINIDLNOBJ=dmydln.o
+AS_CASE(["$target_os"],
+ [linux*], [
+ ],
+ [netbsd*], [
RUBY_APPEND_OPTION(CFLAGS, -pipe)
- ;;
- when(nextstep*|openstep*)
+ ],
+ [nextstep*|openstep*], [
RUBY_APPEND_OPTION(CPPFLAGS, -I/usr/local/include)
- ;;
- when(rhapsody*)
+ ],
+ [rhapsody*], [
RUBY_APPEND_OPTIONS(CFLAGS, -pipe -no-precomp)
- ;;
- when(darwin*)
+ ],
+ [darwin*], [
RUBY_APPEND_OPTION(CFLAGS, -pipe)
- MINIDLNOBJ=dmydln.o
- ;;
- when(human*)
+ ],
+ [human*], [
AC_LIBOBJ([x68.o])
CFLAGS="$CFLAGS -fansi-only"
XCFLAGS="$XCFLAGS -cc1-stack=262144 -cpp-stack=2694144"
EXEEXT=.x
OBJEXT=o
- ;;
- when(os2-emx)
+ ],
+ [os2-emx], [
AC_LIBOBJ([os2])
- CFLAGS="$CFLAGS -DOS2"
+ CFLAGS="$CFLAGS -DOS2"
LIBRUBY_A=`echo $LIBRUBY_A | sed 's/^lib//'`
LIBRUBY_SO=`echo $LIBRUBY_SO | sed 's/^lib//'`
LIBRUBY_ALIASES=`for i in $LIBRUBY_ALIASES; do echo "$i"; done | sed 's/^lib//'`
- ;;
- when(osf*)
+ ],
+ [osf*], [
if test "$GCC" != "yes" ; then
# compile something small: taint.c is fine for this.
# the main point is the '-v' flag of 'cc'.
- case "`cc -v -I. -c main.c -o /tmp/main.o 2>&1`" in
- when(*/gemc_cc*) # we have the new DEC GEM CC
+ AS_CASE(["`cc -v -I. -c main.c -o /tmp/main.o 2>&1`"],
+ [*/gemc_cc*], [ # we have the new DEC GEM CC
CFLAGS="$CFLAGS -oldc"
- ;;
- when(*) # we have the old MIPS CC
- ;;
- esac
+ ],
+ [ # we have the old MIPS CC
+ ])
# cleanup
rm -f /tmp/main.o
CFLAGS="$CFLAGS -std"
fi
- ;;
- when(beos*)
- case "$target_cpu" in
- when(powerpc*)
- CFLAGS="$CFLAGS -relax_pointers"
- ;;
- esac
+ ],
+ [beos*], [
+ AS_CASE(["$target_cpu"],[powerpc*], [CFLAGS="$CFLAGS -relax_pointers"])
CPPFLAGS="$CPPFLAGS -I/boot/home/config/include"
- ;;
- when(cygwin*|mingw*)
+ ],
+ [cygwin*|mingw*], [
RUBY_SO_NAME="${RUBY_SO_NAME}${MAJOR}${MINOR}${TEENY}"
LIBRUBY_DLDFLAGS="${DLDFLAGS}"' -Wl,--out-implib=$(LIBRUBY)'
- case "$target_os" in
- when(cygwin*)
+ AS_CASE(["$target_os"],
+ [cygwin*], [
if test x"$enable_shared" = xyes; then
LIBRUBY_SO='cyg$(RUBY_SO_NAME)'.dll
LIBRUBY_DLDFLAGS="${LIBRUBY_DLDFLAGS}"' $(RUBYDEF)'
fi
- ;;
- when(mingw*)
+ ],
+ [mingw*], [
RUBY_SO_NAME="${rb_cv_msvcrt}-${RUBY_SO_NAME}"
+ if test x"${target_cpu}" != xi386; then
+ RUBY_SO_NAME="${target_cpu}-${RUBY_SO_NAME}"
+ fi
if test x"$enable_shared" = xyes; then
LIBRUBY_SO='$(RUBY_SO_NAME)'.dll
LIBRUBY_DLDFLAGS="${LIBRUBY_DLDFLAGS}"' $(RUBYDEF)'
fi
+ EXPORT_PREFIX=' '
+ DLDFLAGS="${DLDFLAGS}"' $(DEFFILE)'
AC_LIBOBJ([win32])
COMMON_LIBS=m
# COMMON_MACROS="WIN32_LEAN_AND_MEAN="
COMMON_HEADERS="winsock2.h windows.h"
THREAD_MODEL=win32
- ;;
- esac
+ ])
LIBRUBY_ALIASES=''
FIRSTMAKEFILE=GNUmakefile:cygwin/GNUmakefile.in
SOLIBS='$(LIBS)'
@@ -2147,50 +2594,68 @@ case "$target_os" in
LIBRUBY='lib$(RUBY_SO_NAME).a'
LIBRUBYARG='-l$(RUBY_SO_NAME)'
fi
- MINIDLNOBJ=dmydln.o
- ;;
- when(hpux*)
- case "$YACC" in
- when(*yacc*)
+ ],
+ [hpux*], [
+ AS_CASE(["$YACC"],[*yacc*], [
XCFLAGS="$XCFLAGS -DYYMAXDEPTH=300"
YACC="$YACC -Nl40000 -Nm40000"
- ;;
- esac
- MINIDLNOBJ=dmydln.o
- ;;
- when(*msdosdjgpp*)
+ ])],
+ [*msdosdjgpp*], [
FIRSTMAKEFILE=GNUmakefile:djgpp/GNUmakefile.in
- ;;
- when(*)
- ;;
-esac
+ ])
MINIOBJS="$MINIDLNOBJ"
-case "$FIRSTMAKEFILE" in
-when(*GNUmakefile:*)
- gnumake=yes
- ;;
-when(*)
+AS_CASE(["$THREAD_MODEL"],
+[pthread], [AC_CHECK_HEADERS(pthread.h)],
+[win32], [],
+[""], [AC_MSG_ERROR(thread model is missing)],
+ [AC_MSG_ERROR(unknown thread model $THREAD_MODEL)])
+
+AC_ARG_ENABLE(debug-env,
+ AS_HELP_STRING([--enable-debug-env], [enable RUBY_DEBUG environment variable]),
+ [AC_DEFINE(RUBY_DEBUG_ENV)])
+
+AS_CASE(["$FIRSTMAKEFILE"], [*GNUmakefile:*], [gnumake=yes], [
AC_MSG_CHECKING([for if ${MAKE-make} is GNU make])
mkdir conftest.dir
echo "all:; @echo yes" > conftest.dir/GNUmakefile
echo "all:; @echo no" > conftest.dir/Makefile
gnumake=`(cd conftest.dir; ${MAKE-make})`
rm -fr conftest.dir
- case "$gnumake" in
- when(*yes*)
+ AS_CASE(["$gnumake"],
+ [*yes*], [
echo "include Makefile" > GNUmakefile
echo "-include uncommon.mk" >> GNUmakefile
- gnumake=yes;;
- when(*)
- gnumake=no;;
- esac
+ gnumake=yes],
+ [
+ gnumake=no])
AC_MSG_RESULT($gnumake)
- ;;
-esac
+])
+AS_IF([test "$gnumake" = yes], [ NULLCMD=: ], [
+ AC_MSG_CHECKING([for safe null command for ${MAKE-make}])
+ mkdir conftest.dir
+ echo 'A=1' > conftest.dir/Makefile
+ echo 'B=$(A:1=@:)' >> conftest.dir/Makefile
+ echo 'all:; $B 1 2 3 4 5 6 7 8 9' >> conftest.dir/Makefile
+ if (cd conftest.dir; ${MAKE-make} >/dev/null 2>/dev/null); then
+ NULLCMD=:
+ else
+ echo 'A=1' > conftest.dir/Makefile
+ echo 'B=$(A:1=@true)' >> conftest.dir/Makefile
+ echo 'all:; $B 1 2 3 4 5 6 7 8 9' >> conftest.dir/Makefile
+ if (cd conftest.dir; ${MAKE-make} >/dev/null 2>/dev/null); then
+ NULLCMD=true
+ else
+ AC_MSG_ERROR(no candidate for safe null command)
+ fi
+ fi
+ rm -fr conftest.dir
+ AC_MSG_RESULT($NULLCMD)
+])
+AC_SUBST(NULLCMD)
if test "${universal_binary-no}" = yes ; then
- AC_MSG_CHECKING([for architecture macros])
+ AC_CACHE_CHECK([for architecture macros], rb_cv_architecture_macros, [
mv confdefs.h confdefs1.h
: > confdefs.h
AC_TRY_COMPILE([@%:@if defined __`echo ${universal_archnames} |
@@ -2200,10 +2665,10 @@ if test "${universal_binary-no}" = yes ; then
>>>>>><<<<<<
@%:@endif], [],
[
- AC_MSG_RESULT(yes)
+ rb_cv_architecture_macros=yes
mv -f confdefs1.h confdefs.h
], [
- AC_MSG_RESULT(no)
+ rb_cv_architecture_macros=no
archflagpat=`eval echo '"'"${ARCH_FLAG}"'"' | sed 's/[[][|.*]]/\\&/g'`
new_cflags=`echo "$CFLAGS" | sed "s|$archflagpat"'||'`
for archs in ${universal_archnames}; do
@@ -2218,7 +2683,7 @@ if test "${universal_binary-no}" = yes ; then
done
mv -f confdefs1.h confdefs.h
AC_MSG_ERROR([failed])
- ])
+ ])])
fi
CPPFLAGS="$CPPFLAGS "'$(DEFS)'
@@ -2233,10 +2698,11 @@ if test -n "${cxxflags+set}"; then
fi
if test "${ARCH_FLAG}"; then
archflagpat=`eval echo '"'"${ARCH_FLAG}"'"' | sed 's/[[][|.*]]/\\&/g'`
- CFLAGS=`echo "$CFLAGS" | sed "s|$archflagpat"'|$(ARCH_FLAG)|'`
- CXXFLAGS=`echo "$CXXFLAGS" | sed "s|$archflagpat"'|$(ARCH_FLAG)|'`
- LDFLAGS=`echo "$LDFLAGS" | sed "s|$archflagpat"'|$(ARCH_FLAG)|'`
+ CFLAGS=`echo "$CFLAGS" | sed "s| *$archflagpat"'||'`
+ CXXFLAGS=`echo "$CXXFLAGS" | sed "s| *$archflagpat"'||'`
+ LDFLAGS=`echo "$LDFLAGS" | sed "s| *$archflagpat"'||'`
fi
+warnflags="$rb_cv_warnflags"
AC_SUBST(cppflags, [])dnl
AC_SUBST(cflags, ["$orig_cflags "'${optflags} ${debugflags} ${warnflags}'])dnl
AC_SUBST(cxxflags, ["$orig_cxxflags "'${optflags} ${debugflags} ${warnflags}'])dnl
@@ -2266,6 +2732,7 @@ AC_SUBST(COMMON_LIBS)
AC_SUBST(COMMON_MACROS)
AC_SUBST(COMMON_HEADERS)
AC_SUBST(EXPORT_PREFIX)
+AC_SUBST(SYMBOL_PREFIX)
AC_SUBST(MINIOBJS)
AC_SUBST(THREAD_MODEL)
@@ -2282,38 +2749,45 @@ test "$program_suffix" != NONE &&
ri_suffix=$program_suffix
RUBY_INSTALL_NAME="${ri_prefix}"'$(RUBY_BASE_NAME)'"${ri_suffix}"
-case "$target_os" in
- when(cygwin*|mingw*)
+AS_CASE(["$target_os"],
+ [cygwin*|mingw*], [
RUBYW_INSTALL_NAME="${ri_prefix}"'$(RUBYW_BASE_NAME)'"${ri_suffix}"
rubyw_install_name='$(RUBYW_INSTALL_NAME)'
- ;;
-esac
+ ])
rubylibprefix='${libdir}/${RUBY_BASE_NAME}'
AC_ARG_WITH(rubylibprefix,
- AS_HELP_STRING([--with-rubylibprefix=DIR], [prefix for ruby libraries [[LIBDIR/RUBY_INSTALL_NAME]]]),
- [rubylibprefix=$withval])
+ AS_HELP_STRING([--with-rubylibprefix=DIR], [prefix for ruby libraries [[LIBDIR/RUBY_BASE_NAME]]]),
+ [if test "x$withval" = xno; then
+ AC_MSG_ERROR([No ruby, No libprefix])
+ fi
+ rubylibprefix="$withval"])
RUBY_LIB_PREFIX=`eval echo \\"${rubylibprefix}\\"`
AC_SUBST(rubylibprefix)
+RI_BASE_NAME=`echo ${RUBY_BASE_NAME} | sed 's/ruby/ri/'`
+ridir='${datarootdir}/${RI_BASE_NAME}'
+AC_ARG_WITH(ridir,
+ AS_HELP_STRING([--with-ridir=DIR], [ri documentation [[DATAROOTDIR/ri]]]),
+ [ridir=$withval])
+RIDIR=`eval echo \\"${ridir}\\"`
+AC_SUBST(ridir)
+AC_SUBST(RI_BASE_NAME)
+
AC_ARG_WITH(ruby-version,
AS_HELP_STRING([--with-ruby-version=STR], [ruby version string for version specific directories [[full]] (full|minor|STR)]),
[ruby_version=$withval],
[ruby_version=full])
unset RUBY_LIB_VERSION
unset RUBY_LIB_VERSION_STYLE
-case "$ruby_version" in
- when(full)
- RUBY_LIB_VERSION_STYLE='3 /* full */'
- ;;
- when(minor)
- RUBY_LIB_VERSION_STYLE='2 /* minor */'
- ;;
-esac
+AS_CASE(["$ruby_version"],
+ [full], [RUBY_LIB_VERSION_STYLE='3 /* full */'],
+ [minor], [RUBY_LIB_VERSION_STYLE='2 /* minor */'])
if test ${RUBY_LIB_VERSION_STYLE+set}; then
{
echo "#define RUBY_LIB_VERSION_STYLE $RUBY_LIB_VERSION_STYLE"
echo '#define STRINGIZE(x) x'
+ test -f revision.h -o -f "${srcdir}/revision.h" || echo '#define RUBY_REVISION 0'
echo '#include "version.h"'
echo 'ruby_version=RUBY_LIB_VERSION'
} > conftest.c
@@ -2343,47 +2817,58 @@ done
if test "${LOAD_RELATIVE+set}"; then
AC_DEFINE_UNQUOTED(LOAD_RELATIVE, $LOAD_RELATIVE)
+ RUBY_EXEC_PREFIX=""
RUBY_LIB_PREFIX="`eval echo "$RUBY_LIB_PREFIX" | sed 's|^NONE/|/|;s|^'"$prefix"'/|/|'`"
RUBY_SITE_LIB_PATH="`eval echo "$SITE_DIR" | sed 's|^NONE/|/|;s|^'"$prefix"'/|/|'`"
RUBY_VENDOR_LIB_PATH="`eval echo "$VENDOR_DIR" | sed 's|^NONE/|/|;s|^'"$prefix"'/|/|'`"
else
+ RUBY_EXEC_PREFIX="`eval echo \\"$exec_prefix/\\" | sed 's|^NONE/|'"$prefix"'/|;s|/$||'`"
RUBY_LIB_PREFIX="`eval echo \\"$RUBY_LIB_PREFIX\\" | sed 's|^NONE/|'"$prefix"'/|'`"
RUBY_SITE_LIB_PATH="`eval echo \\"$SITE_DIR\\" | sed 's|^NONE/|'"$prefix"'/|'`"
RUBY_VENDOR_LIB_PATH="`eval echo \\"$VENDOR_DIR\\" | sed 's|^NONE/|'"$prefix"'/|'`"
fi
-pat="$RUBY_LIB_PREFIX/"'\(.*\)'
-RUBY_LIB_PATH='RUBY_LIB_PREFIX"/"RUBY_LIB_VERSION'
-case "$RUBY_SITE_LIB_PATH" in
- when("$RUBY_LIB_PREFIX/"*)
+pat=`echo "$RUBY_LIB_PREFIX/" | tr -c '\012' .`'\(.*\)'
+AS_CASE(["$RUBY_SITE_LIB_PATH"],
+ ["$RUBY_LIB_PREFIX/"*], [
RUBY_SITE_LIB_PATH='RUBY_LIB_PREFIX"/'"`expr \"$RUBY_SITE_LIB_PATH\" : \"$pat\"`"'"'
- ;;
- when(*)
+ ],
+ [
RUBY_SITE_LIB_PATH="\"${RUBY_SITE_LIB_PATH}\""
- ;;
-esac
-RUBY_SITE_LIB_PATH2='RUBY_SITE_LIB"/"RUBY_LIB_VERSION'
-case "$RUBY_VENDOR_LIB_PATH" in
- when("$RUBY_LIB_PREFIX/"*)
+ ])
+AS_CASE(["$RUBY_VENDOR_LIB_PATH"],
+ ["$RUBY_LIB_PREFIX/"*], [
RUBY_VENDOR_LIB_PATH='RUBY_LIB_PREFIX"/'"`expr \"$RUBY_VENDOR_LIB_PATH\" : \"$pat\"`"'"'
- ;;
- when(*)
+ ],
+ [
RUBY_VENDOR_LIB_PATH="\"${RUBY_VENDOR_LIB_PATH}\""
- ;;
-esac
-RUBY_VENDOR_LIB_PATH2='RUBY_VENDOR_LIB"/"RUBY_LIB_VERSION'
+ ])
+pat=`echo "$RUBY_EXEC_PREFIX/" | tr -c '\012' .`'\(.*\)'
+AS_CASE(["$RUBY_LIB_PREFIX"],
+ ["$RUBY_EXEC_PREFIX/"*], [
+ RUBY_LIB_PREFIX='RUBY_EXEC_PREFIX"/'"`expr \"$RUBY_LIB_PREFIX\" : \"$pat\"`"'"'
+ ],
+ [
+ RUBY_LIB_PREFIX="\"${RUBY_LIB_PREFIX}\""
+ ])
if test ${RUBY_LIB_VERSION_STYLE+set}; then
AC_DEFINE_UNQUOTED(RUBY_LIB_VERSION_STYLE, $RUBY_LIB_VERSION_STYLE)
else
AC_DEFINE_UNQUOTED(RUBY_LIB_VERSION, [$RUBY_LIB_VERSION])
fi
-AC_DEFINE_UNQUOTED(RUBY_LIB_PREFIX, "${RUBY_LIB_PREFIX}")
-AC_DEFINE_UNQUOTED(RUBY_LIB, ${RUBY_LIB_PATH})
-AC_DEFINE_UNQUOTED(RUBY_SITE_LIB, ${RUBY_SITE_LIB_PATH})
-AC_DEFINE_UNQUOTED(RUBY_SITE_LIB2, ${RUBY_SITE_LIB_PATH2})
-AC_DEFINE_UNQUOTED(RUBY_VENDOR_LIB, ${RUBY_VENDOR_LIB_PATH})
-AC_DEFINE_UNQUOTED(RUBY_VENDOR_LIB2, ${RUBY_VENDOR_LIB_PATH2})
+AC_DEFINE_UNQUOTED(RUBY_EXEC_PREFIX, "${RUBY_EXEC_PREFIX}")
+AC_DEFINE_UNQUOTED(RUBY_LIB_PREFIX, ${RUBY_LIB_PREFIX})
+if test "x$SITE_DIR" = xno; then
+ AC_DEFINE(NO_RUBY_SITE_LIB)
+else
+ AC_DEFINE_UNQUOTED(RUBY_SITE_LIB, ${RUBY_SITE_LIB_PATH})
+fi
+if test "x$VENDOR_DIR" = xno; then
+ AC_DEFINE(NO_RUBY_VENDOR_LIB)
+else
+ AC_DEFINE_UNQUOTED(RUBY_VENDOR_LIB, ${RUBY_VENDOR_LIB_PATH})
+fi
AC_SUBST(arch)dnl
AC_SUBST(sitearch)dnl
@@ -2415,23 +2900,15 @@ if test "${universal_binary-no}" = yes ; then
AC_DEFINE_UNQUOTED(RUBY_PLATFORM_OS, "${target_os}")
AC_DEFINE_UNQUOTED(RUBY_ARCH, "universal-"RUBY_PLATFORM_OS)
AC_DEFINE_UNQUOTED(RUBY_PLATFORM, "universal."RUBY_PLATFORM_CPU"-"RUBY_PLATFORM_OS)
- AC_DEFINE_UNQUOTED(RUBY_THIN_ARCHLIB, RUBY_LIB"/"RUBY_PLATFORM_CPU"-"RUBY_PLATFORM_OS)
- AC_DEFINE_UNQUOTED(RUBY_SITE_THIN_ARCHLIB, RUBY_SITE_LIB2"/"RUBY_PLATFORM_CPU"-"RUBY_PLATFORM_OS)
- AC_DEFINE_UNQUOTED(RUBY_VENDOR_THIN_ARCHLIB, RUBY_VENDOR_LIB2"/"RUBY_PLATFORM_CPU"-"RUBY_PLATFORM_OS)
else
arch="${target_cpu}-${target_os}"
AC_DEFINE_UNQUOTED(RUBY_PLATFORM, "${arch}")
fi
unset sitearch
-case "$target_os" in
- when(mingw*) sitearch="$target_cpu-$rb_cv_msvcrt" ;;
-esac
+AS_CASE(["$target_os"],[mingw*],[sitearch="$target_cpu-$rb_cv_msvcrt"])
test ${sitearch+set} && AC_DEFINE_UNQUOTED(RUBY_SITEARCH, "${sitearch}")
-
-AC_DEFINE_UNQUOTED(RUBY_ARCHLIB, RUBY_LIB"/"RUBY_ARCH)
-AC_DEFINE_UNQUOTED(RUBY_SITE_ARCHLIB, RUBY_SITE_LIB2"/"RUBY_SITEARCH)
-AC_DEFINE_UNQUOTED(RUBY_VENDOR_ARCHLIB, RUBY_VENDOR_LIB2"/"RUBY_SITEARCH)
+: ${sitearch='${arch}'}
AC_ARG_WITH(search-path,
AS_HELP_STRING([--with-search-path=DIR], [specify the additional search path]),
@@ -2441,17 +2918,17 @@ if test "$search_path" != ""; then
fi
AC_ARG_WITH(rubyhdrdir,
- AS_HELP_STRING([--with-rubyhdrdir=DIR], [core headers in DIR [[INCLUDEDIR/RUBY_BASE_NAME/RUBY_VERSION]]]),
+ AS_HELP_STRING([--with-rubyhdrdir=DIR], [core headers in DIR [[INCLUDEDIR/RUBY_BASE_NAME-RUBY_VERSION]]]),
[rubyhdrdir=$withval],
[rubyhdrdir='${includedir}/${RUBY_BASE_NAME}-${ruby_version}'])
AC_ARG_WITH(sitehdrdir,
- AS_HELP_STRING([--with-sitehdrdir=DIR], [core site headers in DIR [RUBYHDRDIR/site_ruby]]),
+ AS_HELP_STRING([--with-sitehdrdir=DIR], [core site headers in DIR [[RUBYHDRDIR/site_ruby]]]),
[sitehdrdir=$withval],
[sitehdrdir='${rubyhdrdir}/site_ruby'])
AC_ARG_WITH(vendorhdrdir,
- AS_HELP_STRING([--with-vendorhdrdir=DIR], [ core vendor headers in DIR [RUBYHDRDIR/vendor_ruby]]),
+ AS_HELP_STRING([--with-vendorhdrdir=DIR], [core vendor headers in DIR [[RUBYHDRDIR/vendor_ruby]]]),
[vendorhdrdir=$withval],
[vendorhdrdir='${rubyhdrdir}/vendor_ruby'])
@@ -2459,17 +2936,15 @@ AC_SUBST(rubyhdrdir)dnl
AC_SUBST(sitehdrdir)dnl
AC_SUBST(vendorhdrdir)dnl
+AC_ARG_WITH(opt-dir,
+ AS_HELP_STRING([--with-opt-dir=DIR], [add optional headers and libraries DIR]))
+
AC_ARG_WITH(mantype,
- AS_HELP_STRING([--with-mantype=TYPE], [specify man page type; TYPE is one of man and doc]),
+ AS_HELP_STRING([--with-mantype=TYPE], [specify man page type; TYPE is one of man and doc]),
[
- case "$withval" in
- when(man|doc)
- MANTYPE=$withval
- ;;
- when(*)
- AC_MSG_ERROR(invalid man type: $withval)
- ;;
- esac
+ AS_CASE(["$withval"],
+ [man|doc], [MANTYPE=$withval],
+ [AC_MSG_ERROR(invalid man type: $withval)])
])
if test -z "$MANTYPE"; then
AC_PATH_PROGS(NROFF, nroff awf, /bin/false, "/usr/bin:/usr/ucb")
@@ -2481,15 +2956,28 @@ if test -z "$MANTYPE"; then
fi
AC_SUBST(MANTYPE)
-arch_hdrdir="${EXTOUT}/include/${arch}/ruby"
-$MAKEDIRS "${arch_hdrdir}"
-config_h="${arch_hdrdir}/config.h"
-if test -f "${config_h}" && tr -d '\015' < confdefs.h | cmp -s "${config_h}" -; then
- echo "config.h unchanged"
+AC_ARG_ENABLE(rubygems,
+ AS_HELP_STRING([--disable-rubygems], [disable rubygems by default]),
+ [enable_rubygems="$enableval"], [enable_rubygems=yes])
+if test x"$enable_rubygems" = xno; then
+ AC_DEFINE(DISABLE_RUBYGEMS, 1)
+ USE_RUBYGEMS=NO
else
- echo "creating config.h"
- tr -d '\015' < confdefs.h > "${config_h}"
+ USE_RUBYGEMS=YES
fi
+AC_SUBST(USE_RUBYGEMS)
+
+arch_hdrdir="${EXTOUT}/include/${arch}/ruby"
+AS_MKDIR_P("${arch_hdrdir}")
+config_h="${arch_hdrdir}/config.h"
+guard=INCLUDE_RUBY_CONFIG_H
+{
+ echo "#ifndef $guard"
+ echo "#define $guard 1"
+ grep -v "^#define PACKAGE_" confdefs.h
+ echo "#endif /* $guard */"
+} | tr -d '\015' |
+${srcdir}/tool/ifchange "${config_h}" -
tr -d '\015' < largefile.h > confdefs.h
rm largefile.h
@@ -2516,6 +3004,8 @@ PACKAGE=$RUBY_BASE_NAME
AC_SUBST(PACKAGE)
AC_MSG_RESULT($PACKAGE library version = $ruby_version)
+AS_CASE([" $CPP "], [*" $CC "*], [CPP=`echo " $CPP " | sed "s| $CC |"' $(CC) |;s/^ *//;s/ *$//'`])
+
AC_CONFIG_FILES($FIRSTMAKEFILE)
AC_CONFIG_FILES(Makefile, [{
if test -d "$srcdir/.svn"; then
@@ -2540,9 +3030,32 @@ AC_CONFIG_FILES(Makefile, [{
echo 'distclean-local::; @$(RM) GNUmakefile uncommon.mk'
fi
} > confmk$$.tmp && mv -f confmk$$.tmp Makefile &&
+ {
+ grep '^ruby:' Makefile > /dev/null ||
${MAKE-make} info-program | grep '^PROGRAM=ruby$' > /dev/null ||
- echo 'ruby: $(PROGRAM);' >> Makefile],
-[EXEEXT=$EXEEXT gnumake=$gnumake])
+ echo 'ruby: $(PROGRAM);' >> Makefile
+ }],
+[EXEEXT='$EXEEXT' gnumake='$gnumake'])
+
+ruby_pc="${RUBY_BASE_NAME}-${MAJOR}.${MINOR}.pc"
+AC_SUBST(ruby_pc)
+AC_SUBST(exec, [exec])
+
+AC_CONFIG_FILES($ruby_pc:template/ruby.pc.in,
+ [
+ if sed ['s/\$(\([A-Za-z_][A-Za-z0-9_]*\))/${\1}/g;s/@[A-Za-z_][A-Za-z0-9_]*@//'] $ruby_pc > ruby.tmp.pc &&
+ {
+ test -z "$PKG_CONFIG" ||
+ PKG_CONFIG_PATH=. $PKG_CONFIG --print-errors ruby.tmp
+ }
+ then
+ mv -f ruby.tmp.pc $ruby_pc
+ else
+ exit 1
+ fi
+ ],
+ [ruby_pc='$ruby_pc' PKG_CONFIG='$PKG_CONFIG'])
+
AC_OUTPUT
dnl }
dnl }
diff --git a/constant.h b/constant.h
new file mode 100644
index 0000000000..8232910737
--- /dev/null
+++ b/constant.h
@@ -0,0 +1,34 @@
+/**********************************************************************
+
+ constant.h -
+
+ $Author$
+ created at: Sun Nov 15 00:09:33 2009
+
+ Copyright (C) 2009 Yusuke Endoh
+
+**********************************************************************/
+#ifndef CONSTANT_H
+#define CONSTANT_H
+
+typedef enum {
+ CONST_PUBLIC = 0x00,
+ CONST_PRIVATE = 0x01
+} rb_const_flag_t;
+
+typedef struct rb_const_entry_struct {
+ rb_const_flag_t flag;
+ VALUE value; /* should be mark */
+} rb_const_entry_t;
+
+VALUE rb_mod_private_constant(int argc, VALUE *argv, VALUE obj);
+VALUE rb_mod_public_constant(int argc, VALUE *argv, VALUE obj);
+void rb_free_const_table(st_table *tbl);
+VALUE rb_public_const_get(VALUE klass, ID id);
+VALUE rb_public_const_get_at(VALUE klass, ID id);
+VALUE rb_public_const_get_from(VALUE klass, ID id);
+int rb_public_const_defined(VALUE klass, ID id);
+int rb_public_const_defined_at(VALUE klass, ID id);
+int rb_public_const_defined_from(VALUE klass, ID id);
+
+#endif /* CONSTANT_H */
diff --git a/cont.c b/cont.c
index 971627b1b2..1e42974145 100644
--- a/cont.c
+++ b/cont.c
@@ -10,10 +10,46 @@
**********************************************************************/
#include "ruby/ruby.h"
+#include "internal.h"
#include "vm_core.h"
#include "gc.h"
#include "eval_intern.h"
+#if ((defined(_WIN32) && _WIN32_WINNT >= 0x0400) || (defined(HAVE_GETCONTEXT) && defined(HAVE_SETCONTEXT))) && !defined(__NetBSD__) && !defined(sun) && !defined(FIBER_USE_NATIVE)
+#define FIBER_USE_NATIVE 1
+
+/* FIBER_USE_NATIVE enables Fiber performance improvement using system
+ * dependent method such as make/setcontext on POSIX system or
+ * CreateFiber() API on Windows.
+ * This hack make Fiber context switch faster (x2 or more).
+ * However, it decrease maximum number of Fiber. For example, on the
+ * 32bit POSIX OS, ten or twenty thousands Fiber can be created.
+ *
+ * Details is reported in the paper "A Fast Fiber Implementation for Ruby 1.9"
+ * in Proc. of 51th Programming Symposium, pp.21--28 (2010) (in Japanese).
+ */
+
+/* On our experience, NetBSD doesn't support using setcontext() and pthread
+ * simultaneously. This is because pthread_self(), TLS and other information
+ * are represented by stack pointer (higher bits of stack pointer).
+ * TODO: check such constraint on configure.
+ */
+#elif !defined(FIBER_USE_NATIVE)
+#define FIBER_USE_NATIVE 0
+#endif
+
+#if FIBER_USE_NATIVE
+#ifndef _WIN32
+#include <unistd.h>
+#include <sys/mman.h>
+#include <ucontext.h>
+#endif
+#define RB_PAGE_SIZE (pagesize)
+#define RB_PAGE_MASK (~(RB_PAGE_SIZE - 1))
+static long pagesize;
+#define FIBER_MACHINE_STACK_ALLOCATION_SIZE (0x10000)
+#endif
+
#define CAPTURE_JUST_VALID_VM_STACK 1
enum context_type {
@@ -29,8 +65,8 @@ typedef struct rb_context_struct {
VALUE value;
VALUE *vm_stack;
#ifdef CAPTURE_JUST_VALID_VM_STACK
- int vm_stack_slen; /* length of stack (head of th->stack) */
- int vm_stack_clen; /* length of control frames (tail of th->stack) */
+ size_t vm_stack_slen; /* length of stack (head of th->stack) */
+ size_t vm_stack_clen; /* length of control frames (tail of th->stack) */
#endif
VALUE *machine_stack;
VALUE *machine_stack_src;
@@ -41,7 +77,7 @@ typedef struct rb_context_struct {
#endif
rb_thread_t saved_thread;
rb_jmpbuf_t jmpbuf;
- int machine_stack_size;
+ size_t machine_stack_size;
} rb_context_t;
enum fiber_status {
@@ -50,29 +86,50 @@ enum fiber_status {
TERMINATED
};
+#if FIBER_USE_NATIVE && !defined(_WIN32)
+#define MAX_MAHINE_STACK_CACHE 10
+static int machine_stack_cache_index = 0;
+typedef struct machine_stack_cache_struct {
+ void *ptr;
+ size_t size;
+} machine_stack_cache_t;
+static machine_stack_cache_t machine_stack_cache[MAX_MAHINE_STACK_CACHE];
+static machine_stack_cache_t terminated_machine_stack;
+#endif
+
typedef struct rb_fiber_struct {
rb_context_t cont;
VALUE prev;
enum fiber_status status;
struct rb_fiber_struct *prev_fiber;
struct rb_fiber_struct *next_fiber;
+#if FIBER_USE_NATIVE
+#ifdef _WIN32
+ void *fib_handle;
+#else
+ ucontext_t context;
+#endif
+#endif
} rb_fiber_t;
+static const rb_data_type_t cont_data_type, fiber_data_type;
static VALUE rb_cContinuation;
static VALUE rb_cFiber;
static VALUE rb_eFiberError;
#define GetContPtr(obj, ptr) \
- Data_Get_Struct(obj, rb_context_t, ptr)
+ TypedData_Get_Struct((obj), rb_context_t, &cont_data_type, (ptr))
#define GetFiberPtr(obj, ptr) do {\
- ptr = (rb_fiber_t*)DATA_PTR(obj);\
- if (!ptr) rb_raise(rb_eFiberError, "uninitialized fiber");\
+ TypedData_Get_Struct((obj), rb_fiber_t, &fiber_data_type, (ptr)); \
+ if (!(ptr)) rb_raise(rb_eFiberError, "uninitialized fiber"); \
} while(0)
NOINLINE(static VALUE cont_capture(volatile int *stat));
-void rb_thread_mark(rb_thread_t *th);
+#define THREAD_MUST_BE_RUNNING(th) do { \
+ if (!(th)->tag) rb_raise(rb_eThreadError, "not running thread"); \
+ } while (0)
static void
cont_mark(void *ptr)
@@ -82,6 +139,7 @@ cont_mark(void *ptr)
rb_context_t *cont = ptr;
rb_gc_mark(cont->value);
rb_thread_mark(&cont->saved_thread);
+ rb_gc_mark(cont->saved_thread.self);
if (cont->vm_stack) {
#ifdef CAPTURE_JUST_VALID_VM_STACK
@@ -94,8 +152,21 @@ cont_mark(void *ptr)
}
if (cont->machine_stack) {
- rb_gc_mark_locations(cont->machine_stack,
- cont->machine_stack + cont->machine_stack_size);
+ if (cont->type == CONTINUATION_CONTEXT) {
+ /* cont */
+ rb_gc_mark_locations(cont->machine_stack,
+ cont->machine_stack + cont->machine_stack_size);
+ }
+ else {
+ /* fiber */
+ rb_thread_t *th;
+ rb_fiber_t *fib = (rb_fiber_t*)cont;
+ GetThreadPtr(cont->saved_thread.self, th);
+ if ((th->fiber != cont->self) && fib->status == RUNNING) {
+ rb_gc_mark_locations(cont->machine_stack,
+ cont->machine_stack + cont->machine_stack_size);
+ }
+ }
}
#ifdef __ia64
if (cont->machine_register_stack) {
@@ -114,7 +185,41 @@ cont_free(void *ptr)
if (ptr) {
rb_context_t *cont = ptr;
RUBY_FREE_UNLESS_NULL(cont->saved_thread.stack); fflush(stdout);
+#if FIBER_USE_NATIVE
+ if (cont->type == CONTINUATION_CONTEXT) {
+ /* cont */
+ RUBY_FREE_UNLESS_NULL(cont->machine_stack);
+ }
+ else {
+ /* fiber */
+#ifdef _WIN32
+ if (GET_THREAD()->fiber != cont->self && cont->type != ROOT_FIBER_CONTEXT) {
+ /* don't delete root fiber handle */
+ rb_fiber_t *fib = (rb_fiber_t*)cont;
+ if (fib->fib_handle) {
+ DeleteFiber(fib->fib_handle);
+ }
+ }
+#else /* not WIN32 */
+ if (GET_THREAD()->fiber != cont->self) {
+ rb_fiber_t *fib = (rb_fiber_t*)cont;
+ if (fib->context.uc_stack.ss_sp) {
+ if (cont->type == ROOT_FIBER_CONTEXT) {
+ rb_bug("Illegal root fiber parameter");
+ }
+ munmap((void*)fib->context.uc_stack.ss_sp, fib->context.uc_stack.ss_size);
+ }
+ }
+ else {
+ /* It may reached here when finalize */
+ /* TODO examine whether it is a bug */
+ /* rb_bug("cont_free: release self"); */
+ }
+#endif
+ }
+#else /* not FIBER_USE_NATIVE */
RUBY_FREE_UNLESS_NULL(cont->machine_stack);
+#endif
#ifdef __ia64
RUBY_FREE_UNLESS_NULL(cont->machine_register_stack);
#endif
@@ -126,6 +231,34 @@ cont_free(void *ptr)
RUBY_FREE_LEAVE("cont");
}
+static size_t
+cont_memsize(const void *ptr)
+{
+ const rb_context_t *cont = ptr;
+ size_t size = 0;
+ if (cont) {
+ size = sizeof(*cont);
+ if (cont->vm_stack) {
+#ifdef CAPTURE_JUST_VALID_VM_STACK
+ size_t n = (cont->vm_stack_slen + cont->vm_stack_clen);
+#else
+ size_t n = cont->saved_thread.stack_size;
+#endif
+ size += n * sizeof(*cont->vm_stack);
+ }
+
+ if (cont->machine_stack) {
+ size += cont->machine_stack_size * sizeof(*cont->machine_stack);
+ }
+#ifdef __ia64
+ if (cont->machine_register_stack) {
+ size += cont->machine_register_stack_size * sizeof(*cont->machine_register_stack);
+ }
+#endif
+ }
+ return size;
+}
+
static void
fiber_mark(void *ptr)
{
@@ -165,8 +298,8 @@ fiber_free(void *ptr)
RUBY_FREE_ENTER("fiber");
if (ptr) {
rb_fiber_t *fib = ptr;
-
- if (fib->cont.type != ROOT_FIBER_CONTEXT) {
+ if (fib->cont.type != ROOT_FIBER_CONTEXT &&
+ fib->cont.saved_thread.local_storage) {
st_free_table(fib->cont.saved_thread.local_storage);
}
fiber_link_remove(fib);
@@ -176,11 +309,36 @@ fiber_free(void *ptr)
RUBY_FREE_LEAVE("fiber");
}
+static size_t
+fiber_memsize(const void *ptr)
+{
+ const rb_fiber_t *fib = ptr;
+ size_t size = 0;
+ if (ptr) {
+ size = sizeof(*fib);
+ if (fib->cont.type != ROOT_FIBER_CONTEXT) {
+ size += st_memsize(fib->cont.saved_thread.local_storage);
+ }
+ size += cont_memsize(&fib->cont);
+ }
+ return size;
+}
+
+VALUE
+rb_obj_is_fiber(VALUE obj)
+{
+ if (rb_typeddata_is_kind_of(obj, &fiber_data_type)) {
+ return Qtrue;
+ }
+ else {
+ return Qfalse;
+ }
+}
+
static void
cont_save_machine_stack(rb_thread_t *th, rb_context_t *cont)
{
- int size;
- rb_thread_t *sth = &cont->saved_thread;
+ size_t size;
SET_MACHINE_STACK_END(&th->machine_stack_end);
#ifdef __ia64
@@ -219,20 +377,34 @@ cont_save_machine_stack(rb_thread_t *th, rb_context_t *cont)
MEMCPY(cont->machine_register_stack, cont->machine_register_stack_src, VALUE, size);
#endif
+}
+
+static const rb_data_type_t cont_data_type = {
+ "continuation",
+ {cont_mark, cont_free, cont_memsize,},
+};
- sth->machine_stack_start = sth->machine_stack_end = 0;
+static void
+cont_save_thread(rb_context_t *cont, rb_thread_t *th)
+{
+ /* save thread context */
+ cont->saved_thread = *th;
+ /* saved_thread->machine_stack_(start|end) should be NULL */
+ /* because it may happen GC afterward */
+ cont->saved_thread.machine_stack_start = 0;
+ cont->saved_thread.machine_stack_end = 0;
#ifdef __ia64
- sth->machine_register_stack_start = sth->machine_register_stack_end = 0;
+ cont->saved_thread.machine_register_stack_start = 0;
+ cont->saved_thread.machine_register_stack_end = 0;
#endif
}
static void
-cont_init(rb_context_t *cont)
+cont_init(rb_context_t *cont, rb_thread_t *th)
{
- rb_thread_t *th = GET_THREAD();
-
/* save thread context */
- cont->saved_thread = *th;
+ cont_save_thread(cont, th);
+ cont->saved_thread.local_storage = 0;
}
static rb_context_t *
@@ -240,15 +412,15 @@ cont_new(VALUE klass)
{
rb_context_t *cont;
volatile VALUE contval;
+ rb_thread_t *th = GET_THREAD();
- contval = Data_Make_Struct(klass, rb_context_t, cont_mark, cont_free, cont);
+ THREAD_MUST_BE_RUNNING(th);
+ contval = TypedData_Make_Struct(klass, rb_context_t, &cont_data_type, cont);
cont->self = contval;
- cont_init(cont);
+ cont_init(cont, th);
return cont;
}
-void rb_vm_stack_to_heap(rb_thread_t *th);
-
static VALUE
cont_capture(volatile int *stat)
{
@@ -256,6 +428,7 @@ cont_capture(volatile int *stat)
rb_thread_t *th = GET_THREAD(), *sth;
volatile VALUE contval;
+ THREAD_MUST_BE_RUNNING(th);
rb_vm_stack_to_heap(th);
cont = cont_new(rb_cContinuation);
contval = cont->self;
@@ -276,9 +449,10 @@ cont_capture(volatile int *stat)
cont_save_machine_stack(th, cont);
if (ruby_setjmp(cont->jmpbuf)) {
- VALUE value;
+ volatile VALUE value;
value = cont->value;
+ if (cont->argc == -1) rb_exc_raise(value);
cont->value = Qnil;
*stat = 1;
return value;
@@ -289,10 +463,8 @@ cont_capture(volatile int *stat)
}
}
-NOINLINE(NORETURN(static void cont_restore_1(rb_context_t *)));
-
static void
-cont_restore_1(rb_context_t *cont)
+cont_restore_thread(rb_context_t *cont)
{
rb_thread_t *th = GET_THREAD(), *sth = &cont->saved_thread;
@@ -305,10 +477,10 @@ cont_restore_1(rb_context_t *cont)
fib = th->fiber ? th->fiber : th->root_fiber;
if (fib) {
- rb_context_t *fcont;
- GetContPtr(fib, fcont);
- th->stack_size = fcont->saved_thread.stack_size;
- th->stack = fcont->saved_thread.stack;
+ rb_fiber_t *fcont;
+ GetFiberPtr(fib, fcont);
+ th->stack_size = fcont->cont.saved_thread.stack_size;
+ th->stack = fcont->cont.saved_thread.stack;
}
#ifdef CAPTURE_JUST_VALID_VM_STACK
MEMCPY(th->stack, cont->vm_stack, VALUE, cont->vm_stack_slen);
@@ -332,9 +504,182 @@ cont_restore_1(rb_context_t *cont)
th->state = sth->state;
th->status = sth->status;
th->tag = sth->tag;
- th->trap_tag = sth->trap_tag;
+ th->protect_tag = sth->protect_tag;
th->errinfo = sth->errinfo;
th->first_proc = sth->first_proc;
+}
+
+#if FIBER_USE_NATIVE
+#ifdef _WIN32
+static void
+fiber_set_stack_location(void)
+{
+ rb_thread_t *th = GET_THREAD();
+ VALUE *ptr;
+
+ SET_MACHINE_STACK_END(&ptr);
+ th->machine_stack_start = (void*)(((VALUE)ptr & RB_PAGE_MASK) + STACK_UPPER((void *)&ptr, 0, RB_PAGE_SIZE));
+}
+
+static VOID CALLBACK
+fiber_entry(void *arg)
+{
+ fiber_set_stack_location();
+ rb_fiber_start();
+}
+#else /* _WIN32 */
+
+/*
+ * FreeBSD require a first (i.e. addr) argument of mmap(2) is not NULL
+ * if MAP_STACK is passed.
+ * http://www.FreeBSD.org/cgi/query-pr.cgi?pr=158755
+ */
+#if defined(MAP_STACK) && !defined(__FreeBSD__) && !defined(__FreeBSD_kernel__)
+#define FIBER_STACK_FLAGS (MAP_PRIVATE | MAP_ANON | MAP_STACK)
+#else
+#define FIBER_STACK_FLAGS (MAP_PRIVATE | MAP_ANON)
+#endif
+
+static char*
+fiber_machine_stack_alloc(size_t size)
+{
+ char *ptr;
+
+ if (machine_stack_cache_index > 0) {
+ if (machine_stack_cache[machine_stack_cache_index - 1].size == (size / sizeof(VALUE))) {
+ ptr = machine_stack_cache[machine_stack_cache_index - 1].ptr;
+ machine_stack_cache_index--;
+ machine_stack_cache[machine_stack_cache_index].ptr = NULL;
+ machine_stack_cache[machine_stack_cache_index].size = 0;
+ }
+ else{
+ /* TODO handle multiple machine stack size */
+ rb_bug("machine_stack_cache size is not canonicalized");
+ }
+ }
+ else {
+ void *page;
+ STACK_GROW_DIR_DETECTION;
+
+ ptr = mmap(NULL, size, PROT_READ | PROT_WRITE, FIBER_STACK_FLAGS, -1, 0);
+ if (ptr == MAP_FAILED) {
+ rb_raise(rb_eFiberError, "can't alloc machine stack to fiber");
+ }
+
+ /* guard page setup */
+ page = ptr + STACK_DIR_UPPER(size - RB_PAGE_SIZE, 0);
+ if (mprotect(page, RB_PAGE_SIZE, PROT_NONE) < 0) {
+ rb_raise(rb_eFiberError, "mprotect failed");
+ }
+ }
+
+ return ptr;
+}
+#endif
+
+static void
+fiber_initialize_machine_stack_context(rb_fiber_t *fib, size_t size)
+{
+ rb_thread_t *sth = &fib->cont.saved_thread;
+
+#ifdef _WIN32
+ fib->fib_handle = CreateFiberEx(size - 1, size, 0, fiber_entry, NULL);
+ if (!fib->fib_handle) {
+ /* try to release unnecessary fibers & retry to create */
+ rb_gc();
+ fib->fib_handle = CreateFiberEx(size - 1, size, 0, fiber_entry, NULL);
+ if (!fib->fib_handle) {
+ rb_raise(rb_eFiberError, "can't create fiber");
+ }
+ }
+ sth->machine_stack_maxsize = size;
+#else /* not WIN32 */
+ ucontext_t *context = &fib->context;
+ char *ptr;
+ STACK_GROW_DIR_DETECTION;
+
+ getcontext(context);
+ ptr = fiber_machine_stack_alloc(size);
+ context->uc_link = NULL;
+ context->uc_stack.ss_sp = ptr;
+ context->uc_stack.ss_size = size;
+ makecontext(context, rb_fiber_start, 0);
+ sth->machine_stack_start = (VALUE*)(ptr + STACK_DIR_UPPER(0, size));
+ sth->machine_stack_maxsize = size - RB_PAGE_SIZE;
+#endif
+#ifdef __ia64
+ sth->machine_register_stack_maxsize = sth->machine_stack_maxsize;
+#endif
+}
+
+NOINLINE(static void fiber_setcontext(rb_fiber_t *newfib, rb_fiber_t *oldfib));
+
+static void
+fiber_setcontext(rb_fiber_t *newfib, rb_fiber_t *oldfib)
+{
+ rb_thread_t *th = GET_THREAD(), *sth = &newfib->cont.saved_thread;
+
+ if (newfib->status != RUNNING) {
+ fiber_initialize_machine_stack_context(newfib, FIBER_MACHINE_STACK_ALLOCATION_SIZE);
+ }
+
+ /* restore thread context */
+ cont_restore_thread(&newfib->cont);
+ th->machine_stack_maxsize = sth->machine_stack_maxsize;
+ if (sth->machine_stack_end && (newfib != oldfib)) {
+ rb_bug("fiber_setcontext: sth->machine_stack_end has non zero value");
+ }
+
+ /* save oldfib's machine stack */
+ if (oldfib->status != TERMINATED) {
+ STACK_GROW_DIR_DETECTION;
+ SET_MACHINE_STACK_END(&th->machine_stack_end);
+ if (STACK_DIR_UPPER(0, 1)) {
+ oldfib->cont.machine_stack_size = th->machine_stack_start - th->machine_stack_end;
+ oldfib->cont.machine_stack = th->machine_stack_end;
+ }
+ else {
+ oldfib->cont.machine_stack_size = th->machine_stack_end - th->machine_stack_start;
+ oldfib->cont.machine_stack = th->machine_stack_start;
+ }
+ }
+ /* exchange machine_stack_start between oldfib and newfib */
+ oldfib->cont.saved_thread.machine_stack_start = th->machine_stack_start;
+ th->machine_stack_start = sth->machine_stack_start;
+ /* oldfib->machine_stack_end should be NULL */
+ oldfib->cont.saved_thread.machine_stack_end = 0;
+#ifndef _WIN32
+ if (!newfib->context.uc_stack.ss_sp && th->root_fiber != newfib->cont.self) {
+ rb_bug("non_root_fiber->context.uc_stac.ss_sp should not be NULL");
+ }
+#endif
+
+ /* swap machine context */
+#ifdef _WIN32
+ SwitchToFiber(newfib->fib_handle);
+#elif defined(__FreeBSD__) /* FreeBSD 9 doesn't work with swapcontext */
+ if (!ruby_setjmp(oldfib->cont.jmpbuf)) {
+ if (newfib->status != RUNNING) {
+ if (setcontext(&newfib->context) < 0) {
+ rb_bug("context switch between fiber failed");
+ }
+ }
+ else {
+ ruby_longjmp(newfib->cont.jmpbuf, 1);
+ }
+ }
+#else
+ swapcontext(&oldfib->context, &newfib->context);
+#endif
+}
+#endif
+
+NOINLINE(NORETURN(static void cont_restore_1(rb_context_t *)));
+
+static void
+cont_restore_1(rb_context_t *cont)
+{
+ cont_restore_thread(cont);
/* restore machine stack */
#ifdef _M_AMD64
@@ -349,7 +694,7 @@ cont_restore_1(rb_context_t *cont)
if (cont->machine_stack_src) {
FLUSH_REGISTER_WINDOWS;
MEMCPY(cont->machine_stack_src, cont->machine_stack,
- VALUE, cont->machine_stack_size);
+ VALUE, cont->machine_stack_size);
}
#ifdef __ia64
@@ -419,7 +764,7 @@ cont_restore_0(rb_context_t *cont, VALUE *addr_in_prev_frame)
if (&space[0] > end) {
# ifdef HAVE_ALLOCA
volatile VALUE *sp = ALLOCA_N(VALUE, &space[0] - end);
- (void)sp;
+ space[0] = *sp;
# else
cont_restore_0(cont, &space[0]);
# endif
@@ -435,7 +780,7 @@ cont_restore_0(rb_context_t *cont, VALUE *addr_in_prev_frame)
if (&space[STACK_PAD_SIZE] < end) {
# ifdef HAVE_ALLOCA
volatile VALUE *sp = ALLOCA_N(VALUE, end - &space[STACK_PAD_SIZE]);
- (void)sp;
+ space[0] = *sp;
# else
cont_restore_0(cont, &space[STACK_PAD_SIZE-1]);
# endif
@@ -448,24 +793,25 @@ cont_restore_0(rb_context_t *cont, VALUE *addr_in_prev_frame)
cont_restore_1(cont);
}
#ifdef __ia64
-#define cont_restore_0(cont, vp) register_stack_extend(cont, vp, (VALUE*)rb_ia64_bsp());
+#define cont_restore_0(cont, vp) register_stack_extend((cont), (vp), (VALUE*)rb_ia64_bsp());
#endif
/*
* Document-class: Continuation
*
- * Continuation objects are generated by
- * <code>Kernel#callcc</code>. They hold a return address and execution
- * context, allowing a nonlocal return to the end of the
- * <code>callcc</code> block from anywhere within a program.
- * Continuations are somewhat analogous to a structured version of C's
- * <code>setjmp/longjmp</code> (although they contain more state, so
- * you might consider them closer to threads).
+ * Continuation objects are generated by <code>Kernel#callcc</code>,
+ * after having <code>require</code>d <i>continuation</i>. They hold
+ * a return address and execution context, allowing a nonlocal return
+ * to the end of the <code>callcc</code> block from anywhere within a
+ * program. Continuations are somewhat analogous to a structured
+ * version of C's <code>setjmp/longjmp</code> (although they contain
+ * more state, so you might consider them closer to threads).
*
* For instance:
*
+ * require "continuation"
* arr = [ "Freddie", "Herbie", "Ron", "Max", "Ringo" ]
- * callcc{|$cc|}
+ * callcc{|cc| $cc = cc}
* puts(message = arr.shift)
* $cc.call unless message =~ /Max/
*
@@ -479,6 +825,7 @@ cont_restore_0(rb_context_t *cont, VALUE *addr_in_prev_frame)
* This (somewhat contrived) example allows the inner loop to abandon
* processing early:
*
+ * require "continuation"
* callcc {|cont|
* for i in 0..4
* print "\n#{i}: "
@@ -488,7 +835,7 @@ cont_restore_0(rb_context_t *cont, VALUE *addr_in_prev_frame)
* end
* end
* }
- * print "\n"
+ * puts
*
* <em>produces:</em>
*
@@ -500,16 +847,18 @@ cont_restore_0(rb_context_t *cont, VALUE *addr_in_prev_frame)
/*
* call-seq:
- * callcc {|cont| block } => obj
+ * callcc {|cont| block } -> obj
*
- * Generates a <code>Continuation</code> object, which it passes to the
- * associated block. Performing a <em>cont</em><code>.call</code> will
- * cause the <code>callcc</code> to return (as will falling through the
- * end of the block). The value returned by the <code>callcc</code> is
- * the value of the block, or the value passed to
- * <em>cont</em><code>.call</code>. See class <code>Continuation</code>
- * for more details. Also see <code>Kernel::throw</code> for
- * an alternative mechanism for unwinding a call stack.
+ * Generates a <code>Continuation</code> object, which it passes to
+ * the associated block. You need to <code>require
+ * 'continuation'</code> before using this method. Performing a
+ * <em>cont</em><code>.call</code> will cause the <code>callcc</code>
+ * to return (as will falling through the end of the block). The
+ * value returned by the <code>callcc</code> is the value of the
+ * block, or the value passed to <em>cont</em><code>.call</code>. See
+ * class <code>Continuation</code> for more details. Also see
+ * <code>Kernel::throw</code> for an alternative mechanism for
+ * unwinding a call stack.
*/
static VALUE
@@ -565,12 +914,12 @@ rb_cont_call(int argc, VALUE *argv, VALUE contval)
if (cont->saved_thread.self != th->self) {
rb_raise(rb_eRuntimeError, "continuation called across threads");
}
- if (cont->saved_thread.trap_tag != th->trap_tag) {
- rb_raise(rb_eRuntimeError, "continuation called across trap");
+ if (cont->saved_thread.protect_tag != th->protect_tag) {
+ rb_raise(rb_eRuntimeError, "continuation called across stack rewinding barrier");
}
if (cont->saved_thread.fiber) {
- rb_context_t *fcont;
- GetContPtr(cont->saved_thread.fiber, fcont);
+ rb_fiber_t *fcont;
+ GetFiberPtr(cont->saved_thread.fiber, fcont);
if (th->fiber != cont->saved_thread.fiber) {
rb_raise(rb_eRuntimeError, "continuation called across fiber");
@@ -627,7 +976,7 @@ rb_cont_call(int argc, VALUE *argv, VALUE contval)
* 2
* FiberError: dead fiber called
*
- * The <code>Fiber#resume</code> method accepts an arbitary number of
+ * The <code>Fiber#resume</code> method accepts an arbitrary number of
* parameters, if it is the first call to <code>resume</code> then they
* will be passed as block arguments. Otherwise they will be the return
* value of the call to <code>Fiber.yield</code>
@@ -652,21 +1001,33 @@ rb_cont_call(int argc, VALUE *argv, VALUE contval)
#define FIBER_VM_STACK_SIZE (4 * 1024)
+static const rb_data_type_t fiber_data_type = {
+ "fiber",
+ {fiber_mark, fiber_free, fiber_memsize,},
+};
+
static VALUE
fiber_alloc(VALUE klass)
{
- return Data_Wrap_Struct(klass, fiber_mark, fiber_free, 0);
+ return TypedData_Wrap_Struct(klass, &fiber_data_type, 0);
}
static rb_fiber_t*
fiber_t_alloc(VALUE fibval)
{
- rb_fiber_t *fib = ALLOC(rb_fiber_t);
+ rb_fiber_t *fib;
+ rb_thread_t *th = GET_THREAD();
+
+ if (DATA_PTR(fibval) != 0) {
+ rb_raise(rb_eRuntimeError, "cannot initialize twice");
+ }
+ THREAD_MUST_BE_RUNNING(th);
+ fib = ALLOC(rb_fiber_t);
memset(fib, 0, sizeof(rb_fiber_t));
fib->cont.self = fibval;
fib->cont.type = FIBER_CONTEXT;
- cont_init(&fib->cont);
+ cont_init(&fib->cont, th);
fib->prev = Qnil;
fib->status = CREATED;
@@ -682,12 +1043,14 @@ fiber_init(VALUE fibval, VALUE proc)
rb_context_t *cont = &fib->cont;
rb_thread_t *th = &cont->saved_thread;
- fiber_link_join(fib);
-
/* initialize cont */
cont->vm_stack = 0;
th->stack = 0;
+ th->stack_size = 0;
+
+ fiber_link_join(fib);
+
th->stack_size = FIBER_VM_STACK_SIZE;
th->stack = ALLOC_N(VALUE, th->stack_size);
@@ -704,16 +1067,20 @@ fiber_init(VALUE fibval, VALUE proc)
th->cfp->iseq = 0;
th->cfp->proc = 0;
th->cfp->block_iseq = 0;
+ th->cfp->me = 0;
th->tag = 0;
th->local_storage = st_init_numtable();
th->first_proc = proc;
+#if !FIBER_USE_NATIVE
MEMCPY(&cont->jmpbuf, &th->root_jmpbuf, rb_jmpbuf_t, 1);
+#endif
return fibval;
}
+/* :nodoc: */
static VALUE
rb_fiber_init(VALUE fibval)
{
@@ -757,6 +1124,14 @@ rb_fiber_terminate(rb_fiber_t *fib)
{
VALUE value = fib->cont.value;
fib->status = TERMINATED;
+#if FIBER_USE_NATIVE && !defined(_WIN32)
+ /* Ruby must not switch to other thread until storing terminated_machine_stack */
+ terminated_machine_stack.ptr = fib->context.uc_stack.ss_sp;
+ terminated_machine_stack.size = fib->context.uc_stack.ss_size / sizeof(VALUE);
+ fib->context.uc_stack.ss_sp = NULL;
+ fib->cont.machine_stack = NULL;
+ fib->cont.machine_stack_size = 0;
+#endif
rb_fiber_transfer(return_fiber(), 1, &value);
}
@@ -790,7 +1165,7 @@ rb_fiber_start(void)
TH_POP_TAG();
if (state) {
- if (TAG_RAISE) {
+ if (state == TAG_RAISE) {
th->thrown_errinfo = th->errinfo;
}
else {
@@ -808,10 +1183,15 @@ static rb_fiber_t *
root_fiber_alloc(rb_thread_t *th)
{
rb_fiber_t *fib;
-
/* no need to allocate vm stack */
fib = fiber_t_alloc(fiber_alloc(rb_cFiber));
fib->cont.type = ROOT_FIBER_CONTEXT;
+#if FIBER_USE_NATIVE
+#ifdef _WIN32
+ fib->fib_handle = ConvertThreadToFiber(0);
+#endif
+#endif
+ fib->status = RUNNING;
fib->prev_fiber = fib->next_fiber = fib;
return fib;
@@ -837,7 +1217,7 @@ fiber_store(rb_fiber_t *next_fib)
if (th->fiber) {
GetFiberPtr(th->fiber, fib);
- fib->cont.saved_thread = *th;
+ cont_save_thread(&fib->cont, th);
}
else {
/* create current fiber */
@@ -845,16 +1225,43 @@ fiber_store(rb_fiber_t *next_fib)
th->root_fiber = th->fiber = fib->cont.self;
}
+#if !FIBER_USE_NATIVE
cont_save_machine_stack(th, &fib->cont);
if (ruby_setjmp(fib->cont.jmpbuf)) {
+#else /* FIBER_USE_NATIVE */
+ {
+ fiber_setcontext(next_fib, fib);
+#ifndef _WIN32
+ if (terminated_machine_stack.ptr) {
+ if (machine_stack_cache_index < MAX_MAHINE_STACK_CACHE) {
+ machine_stack_cache[machine_stack_cache_index].ptr = terminated_machine_stack.ptr;
+ machine_stack_cache[machine_stack_cache_index].size = terminated_machine_stack.size;
+ machine_stack_cache_index++;
+ }
+ else {
+ if (terminated_machine_stack.ptr != fib->cont.machine_stack) {
+ munmap((void*)terminated_machine_stack.ptr, terminated_machine_stack.size * sizeof(VALUE));
+ }
+ else {
+ rb_bug("terminated fiber resumed");
+ }
+ }
+ terminated_machine_stack.ptr = NULL;
+ terminated_machine_stack.size = 0;
+ }
+#endif
+#endif
/* restored */
GetFiberPtr(th->fiber, fib);
+ if (fib->cont.argc == -1) rb_exc_raise(fib->cont.value);
return fib->cont.value;
}
+#if !FIBER_USE_NATIVE
else {
return Qundef;
}
+#endif
}
static inline VALUE
@@ -871,11 +1278,35 @@ fiber_switch(VALUE fibval, int argc, VALUE *argv, int is_resume)
if (cont->saved_thread.self != th->self) {
rb_raise(rb_eFiberError, "fiber called across threads");
}
- else if (cont->saved_thread.trap_tag != th->trap_tag) {
- rb_raise(rb_eFiberError, "fiber called across trap");
+ else if (cont->saved_thread.protect_tag != th->protect_tag) {
+ rb_raise(rb_eFiberError, "fiber called across stack rewinding barrier");
}
else if (fib->status == TERMINATED) {
- rb_raise(rb_eFiberError, "dead fiber called");
+ value = rb_exc_new2(rb_eFiberError, "dead fiber called");
+ if (th->fiber != fibval) {
+ GetFiberPtr(th->fiber, fib);
+ if (fib->status != TERMINATED) rb_exc_raise(value);
+ fibval = th->root_fiber;
+ }
+ else {
+ fibval = fib->prev;
+ if (NIL_P(fibval)) fibval = th->root_fiber;
+ }
+ GetFiberPtr(fibval, fib);
+ cont = &fib->cont;
+ cont->argc = -1;
+ cont->value = value;
+#if FIBER_USE_NATIVE
+ {
+ VALUE oldfibval;
+ rb_fiber_t *oldfib;
+ oldfibval = rb_fiber_current();
+ GetFiberPtr(oldfibval, oldfib);
+ fiber_setcontext(fib, oldfib);
+ }
+#else
+ cont_restore_0(cont, &value);
+#endif
}
if (is_resume) {
@@ -885,11 +1316,13 @@ fiber_switch(VALUE fibval, int argc, VALUE *argv, int is_resume)
cont->argc = argc;
cont->value = make_passing_arg(argc, argv);
- if ((value = fiber_store(fib)) == Qundef) {
- cont_restore_0(&fib->cont, &value);
+ value = fiber_store(fib);
+#if !FIBER_USE_NATIVE
+ if (value == Qundef) {
+ cont_restore_0(cont, &value);
rb_bug("rb_fiber_resume: unreachable");
}
-
+#endif
RUBY_VM_CHECK_INTS();
return value;
@@ -907,7 +1340,7 @@ rb_fiber_resume(VALUE fibval, int argc, VALUE *argv)
rb_fiber_t *fib;
GetFiberPtr(fibval, fib);
- if (fib->prev != Qnil) {
+ if (fib->prev != Qnil || fib->cont.type == ROOT_FIBER_CONTEXT) {
rb_raise(rb_eFiberError, "double resume");
}
@@ -920,13 +1353,27 @@ rb_fiber_yield(int argc, VALUE *argv)
return rb_fiber_transfer(return_fiber(), argc, argv);
}
+void
+rb_fiber_reset_root_local_storage(VALUE thval)
+{
+ rb_thread_t *th;
+ rb_fiber_t *fib;
+
+ GetThreadPtr(thval, th);
+ if (th->root_fiber && th->root_fiber != th->fiber) {
+ GetFiberPtr(th->root_fiber, fib);
+ th->local_storage = fib->cont.saved_thread.local_storage;
+ }
+}
+
/*
* call-seq:
* fiber.alive? -> true or false
*
- * Returns true if the fiber can still be resumed (or transferred to).
- * After finishing execution of the fiber block this method will always
- * return false.
+ * Returns true if the fiber can still be resumed (or transferred
+ * to). After finishing execution of the fiber block this method will
+ * always return false. You need to <code>require 'fiber'</code>
+ * before using this method.
*/
VALUE
rb_fiber_alive_p(VALUE fibval)
@@ -963,9 +1410,11 @@ rb_fiber_m_resume(int argc, VALUE *argv, VALUE fib)
*
* Transfer control to another fiber, resuming it from where it last
* stopped or starting it if it was not resumed before. The calling
- * fiber will be suspended much like in a call to <code>Fiber.yield</code>.
+ * fiber will be suspended much like in a call to
+ * <code>Fiber.yield</code>. You need to <code>require 'fiber'</code>
+ * before using this method.
*
- * The fiber which recieves the transfer call is treats it much like
+ * The fiber which receives the transfer call is treats it much like
* a resume call. Arguments passed to transfer are treated like those
* passed to resume.
*
@@ -1009,9 +1458,37 @@ rb_fiber_s_current(VALUE klass)
return rb_fiber_current();
}
+
+
+/*
+ * Document-class: FiberError
+ *
+ * Raised when an invalid operation is attempted on a Fiber, in
+ * particular when attempting to call/resume a dead fiber,
+ * attempting to yield from the root fiber, or calling a fiber across
+ * threads.
+ *
+ * fiber = Fiber.new{}
+ * fiber.resume #=> nil
+ * fiber.resume #=> FiberError: dead fiber called
+ */
+
void
Init_Cont(void)
{
+#if FIBER_USE_NATIVE
+ rb_thread_t *th = GET_THREAD();
+
+#ifdef _WIN32
+ SYSTEM_INFO info;
+ GetSystemInfo(&info);
+ pagesize = info.dwPageSize;
+#else /* not WIN32 */
+ pagesize = sysconf(_SC_PAGESIZE);
+#endif
+ SET_MACHINE_STACK_END(&th->machine_stack_end);
+#endif
+
rb_cFiber = rb_define_class("Fiber", rb_cObject);
rb_define_alloc_func(rb_cFiber, fiber_alloc);
rb_eFiberError = rb_define_class("FiberError", rb_eStandardError);
@@ -1020,6 +1497,10 @@ Init_Cont(void)
rb_define_method(rb_cFiber, "resume", rb_fiber_m_resume, -1);
}
+#if defined __GNUC__ && __GNUC__ >= 4
+#pragma GCC visibility push(default)
+#endif
+
void
ruby_Init_Continuation_body(void)
{
@@ -1038,3 +1519,7 @@ ruby_Init_Fiber_as_Coroutine(void)
rb_define_method(rb_cFiber, "alive?", rb_fiber_alive_p, 0);
rb_define_singleton_method(rb_cFiber, "current", rb_fiber_s_current, 0);
}
+
+#if defined __GNUC__ && __GNUC__ >= 4
+#pragma GCC visibility pop
+#endif
diff --git a/cygwin/GNUmakefile.in b/cygwin/GNUmakefile.in
index eb6967aef5..19d1727dd7 100644
--- a/cygwin/GNUmakefile.in
+++ b/cygwin/GNUmakefile.in
@@ -2,7 +2,8 @@ include Makefile
-include uncommon.mk
ENABLE_SHARED=@ENABLE_SHARED@
-DLLWRAP = @DLLWRAP@ --target=@target_os@
+DLLWRAP = @DLLWRAP@ --target=@target_os@ --driver-name="$(CC)"
+WINDRES = @WINDRES@ --preprocessor="$(CPP) -xc" -DRC_INVOKED
ifeq (@target_os@,cygwin)
DLL_BASE_NAME := $(LIBRUBY_SO:.dll=)
@@ -10,6 +11,9 @@ else
DLL_BASE_NAME := $(RUBY_SO_NAME)
DLLWRAP += -mno-cygwin
VPATH := $(VPATH):$(srcdir)/win32
+ STUBPROGRAM = rubystub$(EXEEXT)
+ IGNOREDPATTERNS = %~ .% %.orig %.rej \#%\#
+ SCRIPTPROGRAMS = $(addsuffix $(EXEEXT),$(filter-out $(IGNOREDPATTERNS),$(notdir $(wildcard $(srcdir)/bin/*))))
endif
ifneq ($(ENABLE_SHARED),yes)
@@ -33,15 +37,24 @@ RUBYDEF = $(DLL_BASE_NAME).def
ruby: $(PROGRAM)
rubyw: $(WPROGRAM)
+stub: $(STUBPROGRAM)
+scriptbin: $(SCRIPTPROGRAMS)
+
+%$(EXEEXT): bin/% $(STUBPROGRAM)
+ $(ECHO) generating $@
+ $(Q) { cat $(STUBPROGRAM); echo; sed -e '1{' -e '/^#!.*ruby/!i\' -e '#!/bin/ruby' -e '}' $<; } > $@
+ $(Q) chmod +x $@
$(LIBRUBY): $(RUBY_EXP) $(LIBRUBY_SO)
$(RUBY_EXP) $(LIBRUBY_SO): $(DLL_BASE_NAME).res.@OBJEXT@
%.res.@OBJEXT@: %.rc
- @WINDRES@ --include-dir . --include-dir $(<D) --include-dir $(srcdir)/win32 $< $@
+ $(ECHO) compiling $@
+ $(Q) $(WINDRES) --include-dir . --include-dir $(<D) --include-dir $(srcdir)/win32 $< $@
-$(RCFILES): $(RBCONFIG)
- @$(MINIRUBY) $(srcdir)/win32/resource.rb \
+$(RCFILES): $(RBCONFIG) $(srcdir)/revision.h $(srcdir)/win32/resource.rb
+ $(ECHO) generating $@
+ $(Q) $(MINIRUBY) $(srcdir)/win32/resource.rb \
-ruby_name=$(RUBY_INSTALL_NAME) -rubyw_name=$(RUBYW_INSTALL_NAME) \
-so_name=$(DLL_BASE_NAME) \
. $(icondirs) $(srcdir)/win32
@@ -49,14 +62,21 @@ $(RCFILES): $(RBCONFIG)
$(PROGRAM): $(RUBY_INSTALL_NAME).res.@OBJEXT@
$(WPROGRAM): $(RUBYW_INSTALL_NAME).res.@OBJEXT@
@rm -f $@
- $(PURIFY) $(CC) -mwindows -e _mainCRTStartup $(LDFLAGS) $(XLDFLAGS) \
+ $(ECHO) linking $@
+ $(Q) $(PURIFY) $(CC) -mwindows -e $(SYMBOL_PREFIX)mainCRTStartup $(LDFLAGS) $(XLDFLAGS) \
$(MAINOBJ) $(EXTOBJS) $(LIBRUBYARG) $(LIBS) -o $@
+$(STUBPROGRAM): $(RUBY_INSTALL_NAME).res.@OBJEXT@ stub.@OBJEXT@
+ @rm -f $@
+ $(ECHO) linking $@
+ $(Q) $(PURIFY) $(CC) $(LDFLAGS) $(XLDFLAGS) \
+ stub.@OBJEXT@ $(EXTOBJS) $(LIBRUBYARG) $(LIBS) -o $@
$(RUBY_EXP): $(LIBRUBY_A)
- $(DLLWRAP) \
+ $(ECHO) creating $@
+ $(Q) $(DLLWRAP) \
--output-exp=$(RUBY_EXP) \
--export-all $(LIBRUBY_A) $(LIBS) -o $(PROGRAM)
- $(LDSHARED) $(DLDFLAGS) $(OBJS) dmyext.o $(SOLIBS) -o $(PROGRAM)
+ $(Q) $(LDSHARED) $(DLDFLAGS) $(OBJS) dmyext.o $(SOLIBS) -o $(PROGRAM)
@rm -f $(PROGRAM)
GNUmakefile: $(srcdir)/cygwin/GNUmakefile.in
@@ -70,18 +90,18 @@ endif
$(LIBRUBY_SO): $(RUBYDEF)
$(RUBYDEF): $(LIBRUBY_A) $(PREP) $(RBCONFIG)
- $(MINIRUBY) $(srcdir)/win32/mkexports.rb -output=$@ $(LIBRUBY_A)
+ $(ECHO) generating $@
+ $(Q) $(MINIRUBY) $(srcdir)/win32/mkexports.rb -output=$@ $(LIBRUBY_A)
clean-local::
@$(RM) $(RUBYDEF)
ifeq (@target_os@,cygwin)
cygwin-$(RUBY_INSTALL_NAME)$(MAJOR)$(MINOR)$(TEENY).dll: $(LIBRUBY_A) $(RUBYDEF)
- @DLLWRAP@ -s --def=$(RUBYDEF) -o $@
+ $(ECHO) generating $@
+ $(Q) @DLLWRAP@ -s --def=$(RUBYDEF) -o $@
endif
clean-local::
@$(RM) $(RUBY_EXP) $(RCFILES:.rc=.res.@OBJEXT@)
-
-distclean-local::
@$(RM) $(RCFILES)
diff --git a/debug.c b/debug.c
index b5f280508e..dcc710bc4a 100644
--- a/debug.c
+++ b/debug.c
@@ -15,24 +15,25 @@
#include "debug.h"
#include "eval_intern.h"
#include "vm_core.h"
+#include "id.h"
/* for gdb */
-static const union {
+const union {
enum ruby_special_consts special_consts;
enum ruby_value_type value_type;
enum ruby_tag_type tag_type;
enum node_type node_type;
+ enum ruby_method_ids method_ids;
enum {
RUBY_ENCODING_INLINE_MAX = ENCODING_INLINE_MAX,
RUBY_ENCODING_SHIFT = ENCODING_SHIFT,
- RUBY_ENCODING_MASK = ENCODING_MASK,
RUBY_ENC_CODERANGE_MASK = ENC_CODERANGE_MASK,
RUBY_ENC_CODERANGE_UNKNOWN = ENC_CODERANGE_UNKNOWN,
RUBY_ENC_CODERANGE_7BIT = ENC_CODERANGE_7BIT,
RUBY_ENC_CODERANGE_VALID = ENC_CODERANGE_VALID,
RUBY_ENC_CODERANGE_BROKEN = ENC_CODERANGE_BROKEN,
RUBY_FL_MARK = FL_MARK,
- RUBY_FL_REMENBERED_SET = FL_REMEMBERED_SET,
+ RUBY_FL_RESERVED = FL_RESERVED,
RUBY_FL_FINALIZE = FL_FINALIZE,
RUBY_FL_TAINT = FL_TAINT,
RUBY_FL_UNTRUSTED = FL_UNTRUSTED,
@@ -62,12 +63,13 @@ static const union {
RUBY_NODE_TYPESHIFT = NODE_TYPESHIFT,
RUBY_NODE_TYPEMASK = NODE_TYPEMASK,
RUBY_NODE_LSHIFT = NODE_LSHIFT,
- RUBY_NODE_LMASK = NODE_LMASK,
RUBY_NODE_FL_NEWLINE = NODE_FL_NEWLINE
} various;
-} dummy_gdb_enums;
+} ruby_dummy_gdb_enums;
const VALUE RUBY_FL_USER19 = FL_USER19;
+const SIGNED_VALUE RUBY_NODE_LMASK = NODE_LMASK;
+const VALUE RUBY_ENCODING_MASK = ENCODING_MASK;
int
ruby_debug_print_indent(int level, int debug_level, int indent_level)
@@ -75,9 +77,9 @@ ruby_debug_print_indent(int level, int debug_level, int indent_level)
if (level < debug_level) {
fprintf(stderr, "%*s", indent_level, "");
fflush(stderr);
- return Qtrue;
+ return TRUE;
}
- return Qfalse;
+ return FALSE;
}
void
@@ -96,7 +98,7 @@ ruby_debug_print_value(int level, int debug_level, const char *header, VALUE obj
VALUE str;
str = rb_inspect(obj);
fprintf(stderr, "DBG> %s: %s\n", header,
- obj == -1 ? "" : StringValueCStr(str));
+ obj == (VALUE)(SIGNED_VALUE)-1 ? "" : StringValueCStr(str));
fflush(stderr);
}
return obj;
@@ -122,7 +124,7 @@ NODE *
ruby_debug_print_node(int level, int debug_level, const char *header, const NODE *node)
{
if (level < debug_level) {
- fprintf(stderr, "DBG> %s: %s (%lu)\n", header,
+ fprintf(stderr, "DBG> %s: %s (%u)\n", header,
ruby_node_name(nd_type(node)), nd_line(node));
}
return (NODE *)node;
@@ -134,13 +136,12 @@ ruby_debug_breakpoint(void)
/* */
}
-#ifdef RUBY_DEBUG_ENV
static void
set_debug_option(const char *str, int len, void *arg)
{
#define SET_WHEN(name, var) do { \
if (len == sizeof(name) - 1 && \
- strncmp(str, name, len) == 0) { \
+ strncmp(str, (name), len) == 0) { \
extern int var; \
var = 1; \
return; \
@@ -159,4 +160,3 @@ ruby_set_debug_option(const char *str)
{
ruby_each_words(str, set_debug_option, 0);
}
-#endif
diff --git a/debug.h b/debug.h
index d5670651a4..f1d11304f0 100644
--- a/debug.h
+++ b/debug.h
@@ -15,10 +15,14 @@
#include "ruby/ruby.h"
#include "node.h"
-#define dpv(h,v) ruby_debug_print_value(-1, 0, h, v)
-#define dp(v) ruby_debug_print_value(-1, 0, "", v)
-#define dpi(i) ruby_debug_print_id(-1, 0, "", i)
-#define dpn(n) ruby_debug_print_node(-1, 0, "", n)
+#if defined __GNUC__ && __GNUC__ >= 4
+#pragma GCC visibility push(default)
+#endif
+
+#define dpv(h,v) ruby_debug_print_value(-1, 0, (h), (v))
+#define dp(v) ruby_debug_print_value(-1, 0, "", (v))
+#define dpi(i) ruby_debug_print_id(-1, 0, "", (i))
+#define dpn(n) ruby_debug_print_node(-1, 0, "", (n))
#define bp() ruby_debug_breakpoint()
@@ -28,9 +32,10 @@ NODE *ruby_debug_print_node(int level, int debug_level, const char *header, cons
int ruby_debug_print_indent(int level, int debug_level, int indent_level);
void ruby_debug_breakpoint(void);
void ruby_debug_gc_check_func(void);
-
-#ifdef RUBY_DEBUG_ENV
void ruby_set_debug_option(const char *str);
+
+#if defined __GNUC__ && __GNUC__ >= 4
+#pragma GCC visibility pop
#endif
#endif /* RUBY_DEBUG_H */
diff --git a/defs/default_gems b/defs/default_gems
new file mode 100644
index 0000000000..030d84f6f5
--- /dev/null
+++ b/defs/default_gems
@@ -0,0 +1,7 @@
+# gem versioning file [executable files under bin]
+rake lib/rake/version.rb [rake]
+rdoc lib/rdoc.rb [rdoc ri]
+minitest lib/minitest/unit.rb
+json ext/json/lib/json/version.rb
+io-console ext/io/console/io-console.gemspec
+bigdecimal ext/bigdecimal/bigdecimal.gemspec
diff --git a/defs/known_errors.def b/defs/known_errors.def
index 9f09aa9c22..3cebe90a8e 100644
--- a/defs/known_errors.def
+++ b/defs/known_errors.def
@@ -120,3 +120,26 @@ ENAVAIL
EISNAM
EREMOTEIO
EDQUOT
+ECANCELED
+EKEYEXPIRED
+EKEYREJECTED
+EKEYREVOKED
+EMEDIUMTYPE
+ENOKEY
+ENOMEDIUM
+ENOTRECOVERABLE
+EOWNERDEAD
+ERFKILL
+EAUTH
+EBADRPC
+EDOOFUS
+EFTYPE
+ENEEDAUTH
+ENOATTR
+ENOTSUP
+EPROCLIM
+EPROCUNAVAIL
+EPROGMISMATCH
+EPROGUNAVAIL
+ERPCMISMATCH
+EIPSEC
diff --git a/dir.c b/dir.c
index 7ded65420b..404dc0d42f 100644
--- a/dir.c
+++ b/dir.c
@@ -13,6 +13,7 @@
#include "ruby/ruby.h"
#include "ruby/encoding.h"
+#include "internal.h"
#include <sys/types.h>
#include <sys/stat.h>
@@ -67,6 +68,20 @@ char *strchr(char*,char);
#define lstat stat
#endif
+/* define system APIs */
+#ifdef _WIN32
+#undef chdir
+#define chdir(p) rb_w32_uchdir(p)
+#undef mkdir
+#define mkdir(p, m) rb_w32_umkdir((p), (m))
+#undef rmdir
+#define rmdir(p) rb_w32_urmdir(p)
+#undef opendir
+#define opendir(p) rb_w32_uopendir(p)
+#endif
+
+#define rb_sys_fail_path(path) rb_sys_fail_str(path)
+
#define FNM_NOESCAPE 0x01
#define FNM_PATHNAME 0x02
#define FNM_DOTMATCH 0x04
@@ -80,8 +95,8 @@ char *strchr(char*,char);
#define FNM_NOMATCH 1
#define FNM_ERROR 2
-# define Next(p, e, enc) (p + rb_enc_mbclen(p, e, enc))
-# define Inc(p, e, enc) ((p) = Next(p, e, enc))
+# define Next(p, e, enc) ((p)+ rb_enc_mbclen((p), (e), (enc)))
+# define Inc(p, e, enc) ((p) = Next((p), (e), (enc)))
static char *
bracket(
@@ -98,6 +113,7 @@ bracket(
int r;
int ok = 0, not = 0;
+ if (p >= pend) return NULL;
if (*p == '!' || *p == '^') {
not = 1;
p++;
@@ -110,6 +126,7 @@ bracket(
if (!*t1)
return NULL;
p = t1 + (r = rb_enc_mbclen(t1, pend, enc));
+ if (p >= pend) return NULL;
if (p[0] == '-' && p[1] != ']') {
const char *t2 = p + 1;
int r2;
@@ -310,27 +327,49 @@ struct dir_data {
};
static void
-mark_dir(struct dir_data *dir)
+dir_mark(void *ptr)
{
+ struct dir_data *dir = ptr;
rb_gc_mark(dir->path);
}
static void
-free_dir(struct dir_data *dir)
+dir_free(void *ptr)
{
+ struct dir_data *dir = ptr;
if (dir) {
if (dir->dir) closedir(dir->dir);
}
xfree(dir);
}
+static size_t
+dir_memsize(const void *ptr)
+{
+ return ptr ? sizeof(struct dir_data) : 0;
+}
+
+static const rb_data_type_t dir_data_type = {
+ "dir",
+ {dir_mark, dir_free, dir_memsize,},
+};
+
static VALUE dir_close(VALUE);
+#define GlobPathValue(str, safe) \
+ /* can contain null bytes as separators */ \
+ (!RB_TYPE_P((str), T_STRING) ? \
+ (void)FilePathValue(str) : \
+ (void)(check_safe_glob((str), (safe)), \
+ check_glob_encoding(str), (str)))
+#define check_safe_glob(str, safe) ((safe) ? rb_check_safe_obj(str) : (void)0)
+#define check_glob_encoding(str) rb_enc_check((str), rb_enc_from_encoding(rb_usascii_encoding()))
+
static VALUE
dir_s_alloc(VALUE klass)
{
struct dir_data *dirp;
- VALUE obj = Data_Make_Struct(klass, struct dir_data, mark_dir, free_dir, dirp);
+ VALUE obj = TypedData_Make_Struct(klass, struct dir_data, &dir_data_type, dirp);
dirp->dir = NULL;
dirp->path = Qnil;
@@ -350,7 +389,7 @@ dir_initialize(int argc, VALUE *argv, VALUE dir)
{
struct dir_data *dp;
rb_encoding *fsenc;
- VALUE dirname, opt;
+ VALUE dirname, opt, orig;
static VALUE sym_enc;
if (!sym_enc) {
@@ -358,23 +397,21 @@ dir_initialize(int argc, VALUE *argv, VALUE dir)
}
fsenc = rb_filesystem_encoding();
- rb_scan_args(argc, argv, "11", &dirname, &opt);
+ argc = rb_scan_args(argc, argv, "1:", &dirname, &opt);
if (!NIL_P(opt)) {
- VALUE v, enc=Qnil;
- opt = rb_convert_type(opt, T_HASH, "Hash", "to_hash");
-
- v = rb_hash_aref(opt, sym_enc);
- if (!NIL_P(v)) enc = v;
-
+ VALUE enc = rb_hash_aref(opt, sym_enc);
if (!NIL_P(enc)) {
fsenc = rb_to_encoding(enc);
}
}
- FilePathValue(dirname);
+ GlobPathValue(dirname, FALSE);
+ orig = rb_str_dup_frozen(dirname);
+ dirname = rb_str_encode_ospath(dirname);
+ dirname = rb_str_dup_frozen(dirname);
- Data_Get_Struct(dir, struct dir_data, dp);
+ TypedData_Get_Struct(dir, struct dir_data, &dir_data_type, dp);
if (dp->dir) closedir(dp->dir);
dp->dir = NULL;
dp->path = Qnil;
@@ -386,18 +423,18 @@ dir_initialize(int argc, VALUE *argv, VALUE dir)
dp->dir = opendir(RSTRING_PTR(dirname));
}
if (dp->dir == NULL) {
- rb_sys_fail(RSTRING_PTR(dirname));
+ rb_sys_fail_path(orig);
}
}
- dp->path = rb_str_dup_frozen(dirname);
+ dp->path = orig;
return dir;
}
/*
* call-seq:
- * Dir.open( string ) => aDir
- * Dir.open( string ) {| aDir | block } => anObject
+ * Dir.open( string ) -> aDir
+ * Dir.open( string ) {| aDir | block } -> anObject
*
* With no block, <code>open</code> is a synonym for
* <code>Dir::new</code>. If a block is present, it is passed
@@ -409,7 +446,7 @@ static VALUE
dir_s_open(int argc, VALUE *argv, VALUE klass)
{
struct dir_data *dp;
- VALUE dir = Data_Make_Struct(klass, struct dir_data, mark_dir, free_dir, dp);
+ VALUE dir = TypedData_Make_Struct(klass, struct dir_data, &dir_data_type, dp);
dir_initialize(argc, argv, dir);
if (rb_block_given_p()) {
@@ -425,24 +462,24 @@ dir_closed(void)
rb_raise(rb_eIOError, "closed directory");
}
-static void
+static struct dir_data *
dir_check(VALUE dir)
{
+ struct dir_data *dirp;
if (!OBJ_UNTRUSTED(dir) && rb_safe_level() >= 4)
rb_raise(rb_eSecurityError, "Insecure: operation on trusted Dir");
rb_check_frozen(dir);
+ dirp = rb_check_typeddata(dir, &dir_data_type);
+ if (!dirp->dir) dir_closed();
+ return dirp;
}
-#define GetDIR(obj, dirp) do {\
- dir_check(dir);\
- Data_Get_Struct(obj, struct dir_data, dirp);\
- if (dirp->dir == NULL) dir_closed();\
-} while (0)
+#define GetDIR(obj, dirp) ((dirp) = dir_check(obj))
/*
* call-seq:
- * dir.inspect => string
+ * dir.inspect -> string
*
* Return a string describing this Dir object.
*/
@@ -451,17 +488,21 @@ dir_inspect(VALUE dir)
{
struct dir_data *dirp;
- Data_Get_Struct(dir, struct dir_data, dirp);
+ TypedData_Get_Struct(dir, struct dir_data, &dir_data_type, dirp);
if (!NIL_P(dirp->path)) {
- const char *c = rb_obj_classname(dir);
- return rb_sprintf("#<%s:%s>", c, RSTRING_PTR(dirp->path));
+ VALUE str = rb_str_new_cstr("#<");
+ rb_str_append(str, rb_class_name(CLASS_OF(dir)));
+ rb_str_cat2(str, ":");
+ rb_str_append(str, dirp->path);
+ rb_str_cat2(str, ">");
+ return str;
}
return rb_funcall(dir, rb_intern("to_s"), 0, 0);
}
/*
* call-seq:
- * dir.path => string or nil
+ * dir.path -> string or nil
*
* Returns the path parameter passed to <em>dir</em>'s constructor.
*
@@ -473,17 +514,17 @@ dir_path(VALUE dir)
{
struct dir_data *dirp;
- Data_Get_Struct(dir, struct dir_data, dirp);
+ TypedData_Get_Struct(dir, struct dir_data, &dir_data_type, dirp);
if (NIL_P(dirp->path)) return Qnil;
return rb_str_dup(dirp->path);
}
#if defined HAVE_READDIR_R
-# define READDIR(dir, enc, entry, dp) (readdir_r(dir, entry, &(dp)) == 0 && dp != 0)
+# define READDIR(dir, enc, entry, dp) (readdir_r((dir), (entry), &(dp)) == 0 && (dp) != 0)
#elif defined _WIN32
-# define READDIR(dir, enc, entry, dp) ((dp = rb_w32_readdir_with_enc(dir, enc)) != 0)
+# define READDIR(dir, enc, entry, dp) (((dp) = rb_w32_readdir_with_enc((dir), (enc))) != 0)
#else
-# define READDIR(dir, enc, entry, dp) ((dp = readdir(dir)) != 0)
+# define READDIR(dir, enc, entry, dp) (((dp) = readdir(dir)) != 0)
#endif
#if defined HAVE_READDIR_R
# define IF_HAVE_READDIR_R(something) something
@@ -491,9 +532,42 @@ dir_path(VALUE dir)
# define IF_HAVE_READDIR_R(something) /* nothing */
#endif
+#if defined SIZEOF_STRUCT_DIRENT_TOO_SMALL
+# include <limits.h>
+# define NAME_MAX_FOR_STRUCT_DIRENT 255
+# if defined NAME_MAX
+# if NAME_MAX_FOR_STRUCT_DIRENT < NAME_MAX
+# undef NAME_MAX_FOR_STRUCT_DIRENT
+# define NAME_MAX_FOR_STRUCT_DIRENT NAME_MAX
+# endif
+# endif
+# if defined _POSIX_NAME_MAX
+# if NAME_MAX_FOR_STRUCT_DIRENT < _POSIX_NAME_MAX
+# undef NAME_MAX_FOR_STRUCT_DIRENT
+# define NAME_MAX_FOR_STRUCT_DIRENT _POSIX_NAME_MAX
+# endif
+# endif
+# if defined _XOPEN_NAME_MAX
+# if NAME_MAX_FOR_STRUCT_DIRENT < _XOPEN_NAME_MAX
+# undef NAME_MAX_FOR_STRUCT_DIRENT
+# define NAME_MAX_FOR_STRUCT_DIRENT _XOPEN_NAME_MAX
+# endif
+# endif
+# define DEFINE_STRUCT_DIRENT \
+ union { \
+ struct dirent dirent; \
+ char dummy[offsetof(struct dirent, d_name) + \
+ NAME_MAX_FOR_STRUCT_DIRENT + 1]; \
+ }
+# define STRUCT_DIRENT(entry) ((entry).dirent)
+#else
+# define DEFINE_STRUCT_DIRENT struct dirent
+# define STRUCT_DIRENT(entry) (entry)
+#endif
+
/*
* call-seq:
- * dir.read => string or nil
+ * dir.read -> string or nil
*
* Reads the next entry from <em>dir</em> and returns it as a string.
* Returns <code>nil</code> at the end of the stream.
@@ -508,11 +582,11 @@ dir_read(VALUE dir)
{
struct dir_data *dirp;
struct dirent *dp;
- IF_HAVE_READDIR_R(struct dirent entry);
+ IF_HAVE_READDIR_R(DEFINE_STRUCT_DIRENT entry);
GetDIR(dir, dirp);
errno = 0;
- if (READDIR(dirp->dir, dirp->enc, &entry, dp)) {
+ if (READDIR(dirp->dir, dirp->enc, &STRUCT_DIRENT(entry), dp)) {
return rb_external_str_new_with_enc(dp->d_name, NAMLEN(dp), dirp->enc);
}
else if (errno == 0) { /* end of stream */
@@ -526,11 +600,14 @@ dir_read(VALUE dir)
/*
* call-seq:
- * dir.each { |filename| block } => dir
+ * dir.each { |filename| block } -> dir
+ * dir.each -> an_enumerator
*
* Calls the block once for each entry in this directory, passing the
* filename of each entry as a parameter to the block.
*
+ * If no block is given, an enumerator is returned instead.
+ *
* d = Dir.new("testdir")
* d.each {|x| puts "Got #{x}" }
*
@@ -546,12 +623,12 @@ dir_each(VALUE dir)
{
struct dir_data *dirp;
struct dirent *dp;
- IF_HAVE_READDIR_R(struct dirent entry);
+ IF_HAVE_READDIR_R(DEFINE_STRUCT_DIRENT entry);
RETURN_ENUMERATOR(dir, 0, 0);
GetDIR(dir, dirp);
rewinddir(dirp->dir);
- while (READDIR(dirp->dir, dirp->enc, &entry, dp)) {
+ while (READDIR(dirp->dir, dirp->enc, &STRUCT_DIRENT(entry), dp)) {
rb_yield(rb_external_str_new_with_enc(dp->d_name, NAMLEN(dp), dirp->enc));
if (dirp->dir == NULL) dir_closed();
}
@@ -561,8 +638,8 @@ dir_each(VALUE dir)
#ifdef HAVE_TELLDIR
/*
* call-seq:
- * dir.pos => integer
- * dir.tell => integer
+ * dir.pos -> integer
+ * dir.tell -> integer
*
* Returns the current position in <em>dir</em>. See also
* <code>Dir#seek</code>.
@@ -589,7 +666,7 @@ dir_tell(VALUE dir)
#ifdef HAVE_SEEKDIR
/*
* call-seq:
- * dir.seek( integer ) => dir
+ * dir.seek( integer ) -> dir
*
* Seeks to a particular location in <em>dir</em>. <i>integer</i>
* must be a value returned by <code>Dir#tell</code>.
@@ -617,7 +694,7 @@ dir_seek(VALUE dir, VALUE pos)
/*
* call-seq:
- * dir.pos( integer ) => integer
+ * dir.pos( integer ) -> integer
*
* Synonym for <code>Dir#seek</code>, but returns the position
* parameter.
@@ -638,7 +715,7 @@ dir_set_pos(VALUE dir, VALUE pos)
/*
* call-seq:
- * dir.rewind => dir
+ * dir.rewind -> dir
*
* Repositions <em>dir</em> to the first entry.
*
@@ -662,7 +739,7 @@ dir_rewind(VALUE dir)
/*
* call-seq:
- * dir.close => nil
+ * dir.close -> nil
*
* Closes the directory stream. Any further attempts to access
* <em>dir</em> will raise an <code>IOError</code>.
@@ -685,8 +762,9 @@ dir_close(VALUE dir)
static void
dir_chdir(VALUE path)
{
+ path = rb_str_encode_ospath(path);
if (chdir(RSTRING_PTR(path)) < 0)
- rb_sys_fail(RSTRING_PTR(path));
+ rb_sys_fail_path(path);
}
static int chdir_blocking = 0;
@@ -701,7 +779,7 @@ static VALUE
chdir_yield(struct chdir_data *args)
{
dir_chdir(args->new_path);
- args->done = Qtrue;
+ args->done = TRUE;
chdir_blocking++;
if (chdir_thread == Qnil)
chdir_thread = rb_thread_current();
@@ -722,8 +800,8 @@ chdir_restore(struct chdir_data *args)
/*
* call-seq:
- * Dir.chdir( [ string] ) => 0
- * Dir.chdir( [ string] ) {| path | block } => anObject
+ * Dir.chdir( [ string] ) -> 0
+ * Dir.chdir( [ string] ) {| path | block } -> anObject
*
* Changes the current working directory of the process to the given
* string. When called without an argument, changes the directory to
@@ -788,7 +866,7 @@ dir_s_chdir(int argc, VALUE *argv, VALUE obj)
args.old_path = rb_tainted_str_new2(cwd); xfree(cwd);
args.new_path = path;
- args.done = Qfalse;
+ args.done = FALSE;
return rb_ensure(chdir_yield, (VALUE)&args, chdir_restore, (VALUE)&args);
}
dir_chdir(path);
@@ -796,10 +874,25 @@ dir_s_chdir(int argc, VALUE *argv, VALUE obj)
return INT2FIX(0);
}
+VALUE
+rb_dir_getwd(void)
+{
+ char *path;
+ VALUE cwd;
+
+ rb_secure(4);
+ path = my_getcwd();
+ cwd = rb_tainted_str_new2(path);
+ rb_enc_associate(cwd, rb_filesystem_encoding());
+
+ xfree(path);
+ return cwd;
+}
+
/*
* call-seq:
- * Dir.getwd => string
- * Dir.pwd => string
+ * Dir.getwd -> string
+ * Dir.pwd -> string
*
* Returns the path to the current working directory of this process as
* a string.
@@ -810,15 +903,7 @@ dir_s_chdir(int argc, VALUE *argv, VALUE obj)
static VALUE
dir_s_getwd(VALUE dir)
{
- char *path;
- VALUE cwd;
-
- rb_secure(4);
- path = my_getcwd();
- cwd = rb_tainted_str_new2(path);
-
- xfree(path);
- return cwd;
+ return rb_dir_getwd();
}
static void
@@ -834,10 +919,10 @@ check_dirname(volatile VALUE *dir)
}
}
-#if defined(HAVE_CHROOT) && !defined(__CHECKER__)
+#if defined(HAVE_CHROOT)
/*
* call-seq:
- * Dir.chroot( string ) => 0
+ * Dir.chroot( string ) -> 0
*
* Changes this process's idea of the file system root. Only a
* privileged process may make this call. Not available on all
@@ -849,8 +934,9 @@ dir_s_chroot(VALUE dir, VALUE path)
{
check_dirname(&path);
+ path = rb_str_encode_ospath(path);
if (chroot(RSTRING_PTR(path)) == -1)
- rb_sys_fail(RSTRING_PTR(path));
+ rb_sys_fail_path(path);
return INT2FIX(0);
}
@@ -860,7 +946,7 @@ dir_s_chroot(VALUE dir, VALUE path)
/*
* call-seq:
- * Dir.mkdir( string [, integer] ) => 0
+ * Dir.mkdir( string [, integer] ) -> 0
*
* Makes a new directory named by <i>string</i>, with permissions
* specified by the optional parameter <i>anInteger</i>. The
@@ -870,6 +956,8 @@ dir_s_chroot(VALUE dir, VALUE path)
* also the discussion of permissions in the class documentation for
* <code>File</code>.
*
+ * Dir.mkdir(File.join(Dir.home, ".foo"), 0700) #=> 0
+ *
*/
static VALUE
dir_s_mkdir(int argc, VALUE *argv, VALUE obj)
@@ -885,17 +973,18 @@ dir_s_mkdir(int argc, VALUE *argv, VALUE obj)
}
check_dirname(&path);
+ path = rb_str_encode_ospath(path);
if (mkdir(RSTRING_PTR(path), mode) == -1)
- rb_sys_fail(RSTRING_PTR(path));
+ rb_sys_fail_path(path);
return INT2FIX(0);
}
/*
* call-seq:
- * Dir.delete( string ) => 0
- * Dir.rmdir( string ) => 0
- * Dir.unlink( string ) => 0
+ * Dir.delete( string ) -> 0
+ * Dir.rmdir( string ) -> 0
+ * Dir.unlink( string ) -> 0
*
* Deletes the named directory. Raises a subclass of
* <code>SystemCallError</code> if the directory isn't empty.
@@ -904,26 +993,28 @@ static VALUE
dir_s_rmdir(VALUE obj, VALUE dir)
{
check_dirname(&dir);
+ dir = rb_str_encode_ospath(dir);
if (rmdir(RSTRING_PTR(dir)) < 0)
- rb_sys_fail(RSTRING_PTR(dir));
+ rb_sys_fail_path(dir);
return INT2FIX(0);
}
-static void
-sys_warning_1(const char* mesg)
+static VALUE
+sys_warning_1(VALUE mesg)
{
- rb_sys_warning("%s", mesg);
+ rb_sys_warning("%s:%s", strerror(errno), (const char *)mesg);
+ return Qnil;
}
-#define GLOB_VERBOSE (1UL << (sizeof(int) * CHAR_BIT - 1))
+#define GLOB_VERBOSE (1U << (sizeof(int) * CHAR_BIT - 1))
#define sys_warning(val) \
- (void)((flags & GLOB_VERBOSE) && rb_protect((VALUE (*)(VALUE))sys_warning_1, (VALUE)(val), 0))
+ (void)((flags & GLOB_VERBOSE) && rb_protect(sys_warning_1, (VALUE)(val), 0))
-#define GLOB_ALLOC(type) (type *)malloc(sizeof(type))
-#define GLOB_ALLOC_N(type, n) (type *)malloc(sizeof(type) * (n))
+#define GLOB_ALLOC(type) ((type *)malloc(sizeof(type)))
+#define GLOB_ALLOC_N(type, n) ((type *)malloc(sizeof(type) * (n)))
#define GLOB_FREE(ptr) free(ptr)
-#define GLOB_JUMP_TAG(status) ((status == -1) ? rb_memerror() : rb_jump_tag(status))
+#define GLOB_JUMP_TAG(status) (((status) == -1) ? rb_memerror() : rb_jump_tag(status))
/*
* ENOTDIR can be returned by stat(2) if a non-leaf element of the path
@@ -954,9 +1045,20 @@ do_lstat(const char *path, struct stat *pst, int flags)
}
static DIR *
-do_opendir(const char *path, int flags)
+do_opendir(const char *path, int flags, rb_encoding *enc)
{
- DIR *dirp = opendir(path);
+ DIR *dirp;
+#ifdef _WIN32
+ volatile VALUE tmp;
+ if (enc != rb_usascii_encoding() &&
+ enc != rb_ascii8bit_encoding() &&
+ enc != rb_utf8_encoding()) {
+ tmp = rb_enc_str_new(path, strlen(path), enc);
+ tmp = rb_str_encode_ospath(tmp);
+ path = RSTRING_PTR(tmp);
+ }
+#endif
+ dirp = opendir(path);
if (dirp == NULL && !to_be_ignored(errno))
sys_warning(path);
@@ -965,16 +1067,14 @@ do_opendir(const char *path, int flags)
/* Return nonzero if S has any special globbing chars in it. */
static int
-has_magic(const char *s, int flags, rb_encoding *enc)
+has_magic(const char *p, const char *pend, int flags, rb_encoding *enc)
{
const int escape = !(flags & FNM_NOESCAPE);
const int nocase = flags & FNM_CASEFOLD;
- register const char *p = s;
- register const char *pend = p + strlen(p);
register char c;
- while ((c = *p++) != 0) {
+ while (p < pend && (c = *p++) != 0) {
switch (c) {
case '*':
case '?':
@@ -999,12 +1099,10 @@ has_magic(const char *s, int flags, rb_encoding *enc)
/* Find separator in globbing pattern. */
static char *
-find_dirsep(const char *s, int flags, rb_encoding *enc)
+find_dirsep(const char *p, const char *pend, int flags, rb_encoding *enc)
{
const int escape = !(flags & FNM_NOESCAPE);
- register const char *p = s;
- register const char *pend = p + strlen(p);
register char c;
int open = 0;
@@ -1071,31 +1169,41 @@ struct glob_pattern {
static void glob_free_pattern(struct glob_pattern *list);
static struct glob_pattern *
-glob_make_pattern(const char *p, int flags, rb_encoding *enc)
+glob_make_pattern(const char *p, const char *e, int flags, rb_encoding *enc)
{
struct glob_pattern *list, *tmp, **tail = &list;
int dirsep = 0; /* pattern is terminated with '/' */
- while (*p) {
+ while (p < e && *p) {
tmp = GLOB_ALLOC(struct glob_pattern);
if (!tmp) goto error;
if (p[0] == '*' && p[1] == '*' && p[2] == '/') {
/* fold continuous RECURSIVEs (needed in glob_helper) */
- do { p += 3; } while (p[0] == '*' && p[1] == '*' && p[2] == '/');
+ do { p += 3; while (*p == '/') p++; } while (p[0] == '*' && p[1] == '*' && p[2] == '/');
tmp->type = RECURSIVE;
tmp->str = 0;
dirsep = 1;
}
else {
- const char *m = find_dirsep(p, flags, enc);
- char *buf = GLOB_ALLOC_N(char, m-p+1);
+ const char *m = find_dirsep(p, e, flags, enc);
+ int magic = has_magic(p, m, flags, enc);
+ char *buf;
+
+ if (!magic && *m) {
+ const char *m2;
+ while (!has_magic(m+1, m2 = find_dirsep(m+1, e, flags, enc), flags, enc) &&
+ *m2) {
+ m = m2;
+ }
+ }
+ buf = GLOB_ALLOC_N(char, m-p+1);
if (!buf) {
GLOB_FREE(tmp);
goto error;
}
memcpy(buf, p, m-p);
buf[m-p] = '\0';
- tmp->type = has_magic(buf, flags, enc) ? MAGICAL : PLAIN;
+ tmp->type = magic ? MAGICAL : PLAIN;
tmp->str = buf;
if (*m) {
dirsep = 1;
@@ -1157,14 +1265,14 @@ join_path(const char *path, int dirsep, const char *name)
enum answer { YES, NO, UNKNOWN };
#ifndef S_ISDIR
-# define S_ISDIR(m) ((m & S_IFMT) == S_IFDIR)
+# define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR)
#endif
#ifndef S_ISLNK
# ifndef S_IFLNK
# define S_ISLNK(m) (0)
# else
-# define S_ISLNK(m) ((m & S_IFMT) == S_IFLNK)
+# define S_ISLNK(m) (((m) & S_IFMT) == S_IFLNK)
# endif
#endif
@@ -1184,7 +1292,7 @@ glob_func_caller(VALUE val)
return Qnil;
}
-#define glob_call_func(func, path, arg, enc) (*func)(path, arg, enc)
+#define glob_call_func(func, path, arg, enc) (*(func))((path), (arg), (enc))
static int
glob_helper(
@@ -1268,11 +1376,11 @@ glob_helper(
if (magical || recursive) {
struct dirent *dp;
DIR *dirp;
- IF_HAVE_READDIR_R(struct dirent entry);
- dirp = do_opendir(*path ? path : ".", flags);
+ IF_HAVE_READDIR_R(DEFINE_STRUCT_DIRENT entry);
+ dirp = do_opendir(*path ? path : ".", flags, enc);
if (dirp == NULL) return 0;
- while (READDIR(dirp, enc, &entry, dp)) {
+ while (READDIR(dirp, enc, &STRUCT_DIRENT(entry), dp)) {
char *buf = join_path(path, dirsep, dp->d_name);
enum answer new_isdir = UNKNOWN;
@@ -1383,7 +1491,7 @@ ruby_glob0(const char *path, int flags, ruby_glob_func *func, VALUE arg, rb_enco
struct glob_pattern *list;
const char *root, *start;
char *buf;
- int n;
+ size_t n;
int status;
start = root = path;
@@ -1400,7 +1508,7 @@ ruby_glob0(const char *path, int flags, ruby_glob_func *func, VALUE arg, rb_enco
MEMCPY(buf, start, char, n);
buf[n] = '\0';
- list = glob_make_pattern(root, flags, enc);
+ list = glob_make_pattern(root, root + strlen(root), flags, enc);
if (!list) {
GLOB_FREE(buf);
return -1;
@@ -1554,6 +1662,12 @@ ruby_brace_glob(const char *str, int flags, ruby_glob_func *func, VALUE arg)
rb_ascii8bit_encoding());
}
+int
+ruby_brace_glob_with_enc(const char *str, int flags, ruby_glob_func *func, VALUE arg, rb_encoding *enc)
+{
+ return ruby_brace_glob0(str, flags & ~GLOB_VERBOSE, func, arg, enc);
+}
+
static int
push_glob(VALUE ary, VALUE str, int flags)
{
@@ -1565,6 +1679,7 @@ push_glob(VALUE ary, VALUE str, int flags)
args.value = ary;
args.enc = enc;
+ RB_GC_GUARD(str);
return ruby_brace_glob0(RSTRING_PTR(str), flags | GLOB_VERBOSE,
rb_glob_caller, (VALUE)&args, enc);
}
@@ -1575,7 +1690,7 @@ rb_push_glob(VALUE str, int flags) /* '\0' is delimiter */
long offset = 0;
VALUE ary;
- StringValue(str);
+ GlobPathValue(str, TRUE);
ary = rb_ary_new();
while (offset < RSTRING_LEN(str)) {
@@ -1605,7 +1720,7 @@ dir_globs(long argc, VALUE *argv, int flags)
for (i = 0; i < argc; ++i) {
int status;
VALUE str = argv[i];
- SafeStringValue(str);
+ GlobPathValue(str, TRUE);
status = push_glob(ary, str, flags);
if (status) GLOB_JUMP_TAG(status);
}
@@ -1615,8 +1730,8 @@ dir_globs(long argc, VALUE *argv, int flags)
/*
* call-seq:
- * Dir[ array ] => array
- * Dir[ string [, string ...] ] => array
+ * Dir[ array ] -> array
+ * Dir[ string [, string ...] ] -> array
*
* Equivalent to calling
* <code>Dir.glob(</code><i>array,</i><code>0)</code> and
@@ -1634,8 +1749,8 @@ dir_s_aref(int argc, VALUE *argv, VALUE obj)
/*
* call-seq:
- * Dir.glob( pattern, [flags] ) => array
- * Dir.glob( pattern, [flags] ) {| filename | block } => nil
+ * Dir.glob( pattern, [flags] ) -> array
+ * Dir.glob( pattern, [flags] ) {| filename | block } -> nil
*
* Returns the filenames found by expanding <i>pattern</i> which is
* an +Array+ of the patterns or the pattern +String+, either as an
@@ -1643,7 +1758,8 @@ dir_s_aref(int argc, VALUE *argv, VALUE obj)
* is not a regexp (it's closer to a shell glob). See
* <code>File::fnmatch</code> for the meaning of the <i>flags</i>
* parameter. Note that case sensitivity depends on your system (so
- * <code>File::FNM_CASEFOLD</code> is ignored)
+ * <code>File::FNM_CASEFOLD</code> is ignored), as does the order
+ * in which the results are returned.
*
* <code>*</code>:: Matches any file. Can be restricted by
* other values in the glob. <code>*</code>
@@ -1651,10 +1767,13 @@ dir_s_aref(int argc, VALUE *argv, VALUE obj)
* match all files beginning with
* <code>c</code>; <code>*c</code> will match
* all files ending with <code>c</code>; and
- * <code>*c*</code> will match all files that
+ * <code>\*c\*</code> will match all files that
* have <code>c</code> in them (including at
* the beginning or end). Equivalent to
- * <code>/ .* /x</code> in regexp.
+ * <code>/ .* /x</code> in regexp. Note, this
+ * will not match Unix-like hidden files (dotfiles).
+ * In order to include those in the match results,
+ * you must use something like "{*,.*}".
* <code>**</code>:: Matches directories recursively.
* <code>?</code>:: Matches any one character. Equivalent to
* <code>/.{1}/</code> in regexp.
@@ -1669,6 +1788,9 @@ dir_s_aref(int argc, VALUE *argv, VALUE obj)
* Equivalent to pattern alternation in
* regexp.
* <code>\</code>:: Escapes the next metacharacter.
+ * Note that this means you cannot use backslash in windows
+ * as part of a glob, i.e. Dir["c:\\foo*"] will not work
+ * use Dir["c:/foo*"] instead
*
* Dir["config.?"] #=> ["config.h"]
* Dir.glob("config.?") #=> ["config.h"]
@@ -1723,23 +1845,23 @@ static VALUE
dir_open_dir(int argc, VALUE *argv)
{
VALUE dir = rb_funcall2(rb_cDir, rb_intern("open"), argc, argv);
+ struct dir_data *dirp;
- if (TYPE(dir) != T_DATA ||
- RDATA(dir)->dfree != (RUBY_DATA_FUNC)free_dir) {
- rb_raise(rb_eTypeError, "wrong argument type %s (expected Dir)",
- rb_obj_classname(dir));
- }
+ TypedData_Get_Struct(dir, struct dir_data, &dir_data_type, dirp);
return dir;
}
/*
* call-seq:
- * Dir.foreach( dirname ) {| filename | block } => nil
+ * Dir.foreach( dirname ) {| filename | block } -> nil
+ * Dir.foreach( dirname ) -> an_enumerator
*
* Calls the block once for each entry in the named directory, passing
* the filename of each entry as a parameter to the block.
*
+ * If no block is given, an enumerator is returned instead.
+ *
* Dir.foreach("testdir") {|x| puts "Got #{x}" }
*
* <em>produces:</em>
@@ -1763,7 +1885,7 @@ dir_foreach(int argc, VALUE *argv, VALUE io)
/*
* call-seq:
- * Dir.entries( dirname ) => array
+ * Dir.entries( dirname ) -> array
*
* Returns an array containing all of the filenames in the given
* directory. Will raise a <code>SystemCallError</code> if the named
@@ -1783,8 +1905,8 @@ dir_entries(int argc, VALUE *argv, VALUE io)
/*
* call-seq:
- * File.fnmatch( pattern, path, [flags] ) => (true or false)
- * File.fnmatch?( pattern, path, [flags] ) => (true or false)
+ * File.fnmatch( pattern, path, [flags] ) -> (true or false)
+ * File.fnmatch?( pattern, path, [flags] ) -> (true or false)
*
* Returns true if <i>path</i> matches against <i>pattern</i> The
* pattern is not a regular expression; instead it follows rules
@@ -1797,7 +1919,7 @@ dir_entries(int argc, VALUE *argv, VALUE io)
* match all files beginning with
* <code>c</code>; <code>*c</code> will match
* all files ending with <code>c</code>; and
- * <code>*c*</code> will match all files that
+ * <code>\*c*</code> will match all files that
* have <code>c</code> in them (including at
* the beginning or end). Equivalent to
* <code>/ .* /x</code> in regexp.
@@ -1884,12 +2006,10 @@ file_s_fnmatch(int argc, VALUE *argv, VALUE obj)
return Qfalse;
}
-VALUE rb_home_dir(const char *user, VALUE result);
-
/*
* call-seq:
- * Dir.home() => "/home/me"
- * Dir.home("root") => "/root"
+ * Dir.home() -> "/home/me"
+ * Dir.home("root") -> "/root"
*
* Returns the home directory of the current user or the named user
* if given.
@@ -1933,6 +2053,7 @@ Init_Dir(void)
rb_define_method(rb_cDir,"initialize", dir_initialize, -1);
rb_define_method(rb_cDir,"path", dir_path, 0);
+ rb_define_method(rb_cDir,"to_path", dir_path, 0);
rb_define_method(rb_cDir,"inspect", dir_inspect, 0);
rb_define_method(rb_cDir,"read", dir_read, 0);
rb_define_method(rb_cDir,"each", dir_each, 0);
diff --git a/dln.c b/dln.c
index 6e2298df9b..44410f75e4 100644
--- a/dln.c
+++ b/dln.c
@@ -9,19 +9,24 @@
**********************************************************************/
+#ifdef RUBY_EXPORT
#include "ruby/ruby.h"
+#define dln_notimplement rb_notimplement
+#define dln_memerror rb_memerror
+#define dln_exit rb_exit
+#define dln_loaderror rb_loaderror
+#else
+#define dln_notimplement --->>> dln not implemented <<<---
+#define dln_memerror abort
+#define dln_exit exit
+static void dln_loaderror(const char *format, ...);
+#endif
#include "dln.h"
#ifdef HAVE_STDLIB_H
# include <stdlib.h>
#endif
-#ifdef __CHECKER__
-#undef HAVE_DLOPEN
-#undef USE_DLN_A_OUT
-#undef USE_DLN_DLOPEN
-#endif
-
#ifdef USE_DLN_A_OUT
char *dln_argv0;
#endif
@@ -52,7 +57,7 @@ void *xrealloc();
#include <sys/stat.h>
#ifndef S_ISDIR
-# define S_ISDIR(m) ((m & S_IFMT) == S_IFDIR)
+# define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR)
#endif
#ifdef HAVE_SYS_PARAM_H
@@ -79,11 +84,21 @@ char *getenv();
# endif
#endif
-#ifdef __BEOS__
+#if defined(__BEOS__) || defined(__HAIKU__)
# include <image.h>
#endif
-#ifndef NO_DLN_LOAD
+#ifndef dln_loaderror
+static void
+dln_loaderror(const char *format, ...)
+{
+ va_list ap;
+ va_start(ap, format);
+ vfprintf(stderr, format, ap);
+ va_end(ap);
+ abort();
+}
+#endif
#if defined(HAVE_DLOPEN) && !defined(USE_DLN_A_OUT) && !defined(_AIX) && !defined(MACOSX_DYLD) && !defined(_UNICOSMP)
/* dynamic load with dlopen() */
@@ -92,44 +107,47 @@ char *getenv();
#ifndef FUNCNAME_PATTERN
# if defined(__hp9000s300) || ((defined(__NetBSD__) || defined(__FreeBSD__) || defined(__OpenBSD__)) && !defined(__ELF__)) || defined(__BORLANDC__) || defined(NeXT) || defined(__WATCOMC__) || defined(MACOSX_DYLD)
-# define FUNCNAME_PATTERN "_Init_%s"
+# define FUNCNAME_PREFIX "_Init_"
# else
-# define FUNCNAME_PATTERN "Init_%s"
+# define FUNCNAME_PREFIX "Init_"
# endif
#endif
+#if defined __CYGWIN__ || defined DOSISH
+#define isdirsep(x) ((x) == '/' || (x) == '\\')
+#else
+#define isdirsep(x) ((x) == '/')
+#endif
+
static size_t
-init_funcname_len(char **buf, const char *file)
+init_funcname_len(const char **file)
{
- char *p;
- const char *slash;
- size_t len;
+ const char *p = *file, *base, *dot = NULL;
/* Load the file as an object one */
- for (slash = file-1; *file; file++) /* Find position of last '/' */
- if (*file == '/') slash = file;
-
- len = strlen(FUNCNAME_PATTERN) + strlen(slash + 1);
- *buf = xmalloc(len);
- snprintf(*buf, len, FUNCNAME_PATTERN, slash + 1);
- for (p = *buf; *p; p++) { /* Delete suffix if it exists */
- if (*p == '.') {
- *p = '\0'; break;
- }
+ for (base = p; *p; p++) { /* Find position of last '/' */
+ if (*p == '.' && !dot) dot = p;
+ if (isdirsep(*p)) base = p+1, dot = NULL;
}
- return p - *buf;
+ *file = base;
+ /* Delete suffix if it exists */
+ return (dot ? dot : p) - base;
}
+static const char funcname_prefix[sizeof(FUNCNAME_PREFIX) - 1] = FUNCNAME_PREFIX;
+
#define init_funcname(buf, file) do {\
- size_t len = init_funcname_len(buf, file);\
- char *tmp = ALLOCA_N(char, len+1);\
+ const char *base = (file);\
+ const size_t flen = init_funcname_len(&base);\
+ const size_t plen = sizeof(funcname_prefix);\
+ char *const tmp = ALLOCA_N(char, plen+flen+1);\
if (!tmp) {\
- free(*buf);\
- rb_memerror();\
+ dln_memerror();\
}\
- strlcpy(tmp, *buf, len + 1);\
- free(*buf);\
- *buf = tmp;\
+ memcpy(tmp, funcname_prefix, plen);\
+ memcpy(tmp+plen, base, flen);\
+ tmp[plen+flen] = '\0';\
+ *(buf) = tmp;\
} while (0)
#ifdef USE_DLN_A_OUT
@@ -457,7 +475,7 @@ dln_undefined(void)
if (undef_tbl->num_entries > 0) {
fprintf(stderr, "dln: Calling undefined function\n");
dln_print_undef();
- rb_exit(1);
+ dln_exit(1);
}
}
@@ -890,12 +908,13 @@ struct symdef {
int lib_offset;
};
-char *dln_librrb_ary_path = DLN_DEFAULT_LIB_PATH;
+const char *dln_librrb_ary_path = DLN_DEFAULT_LIB_PATH;
static int
load_lib(const char *lib)
{
char *path, *file, fbuf[MAXPATHLEN];
+ char *envpath = 0;
char armagic[SARMAG];
int fd, size;
struct ar_hdr ahdr;
@@ -925,8 +944,10 @@ load_lib(const char *lib)
/* if path is still NULL, use "." for path. */
path = getenv("DLN_LIBRARY_PATH");
if (path == NULL) path = dln_librrb_ary_path;
+ else path = envpath = strdup(path);
file = dln_find_file_r(lib, path, fbuf, sizeof(fbuf));
+ if (envpath) free(envpath);
fd = open(file, O_RDONLY);
if (fd == -1) goto syserr;
size = read(fd, armagic, SARMAG);
@@ -1098,8 +1119,31 @@ dln_sym(const char *name)
#if defined _WIN32 && !defined __CYGWIN__
#include <windows.h>
+#include <imagehlp.h>
#endif
+#if defined _WIN32 && !defined __CYGWIN__
+static const char *
+dln_strerror(char *message, size_t size)
+{
+ int error = GetLastError();
+ char *p = message;
+ size_t len = snprintf(message, size, "%d: ", error);
+
+#define format_message(sublang) FormatMessage(\
+ FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS, \
+ NULL, error, MAKELANGID(LANG_NEUTRAL, (sublang)), \
+ message + len, size - len, NULL)
+ if (format_message(SUBLANG_ENGLISH_US) == 0)
+ format_message(SUBLANG_DEFAULT);
+ for (p = message + len; *p; p++) {
+ if (*p == '\n' || *p == '\r')
+ *p = ' ';
+ }
+ return message;
+}
+#define dln_strerror() dln_strerror(message, sizeof message)
+#elif ! defined _AIX
static const char *
dln_strerror(void)
{
@@ -1127,87 +1171,83 @@ dln_strerror(void)
#ifdef USE_DLN_DLOPEN
return (char*)dlerror();
#endif
-
-#if defined _WIN32 && !defined __CYGWIN__
- static char message[1024];
- int error = GetLastError();
- char *p = message;
- p += sprintf(message, "%d: ", error);
- FormatMessage(
- FORMAT_MESSAGE_FROM_SYSTEM | FORMAT_MESSAGE_IGNORE_INSERTS,
- NULL,
- error,
- MAKELANGID(LANG_NEUTRAL, SUBLANG_DEFAULT),
- p,
- sizeof message - strlen(message),
- NULL);
-
- for (p = message; *p; p++) {
- if (*p == '\n' || *p == '\r')
- *p = ' ';
- }
- return message;
-#endif
}
-
+#endif
#if defined(_AIX) && ! defined(_IA64)
static void
aix_loaderror(const char *pathname)
{
- char *message[8], errbuf[1024];
- int i,j;
-
- struct errtab {
- int errnum;
- char *errstr;
- } load_errtab[] = {
- {L_ERROR_TOOMANY, "too many errors, rest skipped."},
- {L_ERROR_NOLIB, "can't load library:"},
- {L_ERROR_UNDEF, "can't find symbol in library:"},
- {L_ERROR_RLDBAD,
- "RLD index out of range or bad relocation type:"},
- {L_ERROR_FORMAT, "not a valid, executable xcoff file:"},
- {L_ERROR_MEMBER,
- "file not an archive or does not contain requested member:"},
- {L_ERROR_TYPE, "symbol table mismatch:"},
- {L_ERROR_ALIGN, "text alignment in file is wrong."},
- {L_ERROR_SYSTEM, "System error:"},
- {L_ERROR_ERRNO, NULL}
- };
-
-#define LOAD_ERRTAB_LEN (sizeof(load_errtab)/sizeof(load_errtab[0]))
-#define ERRBUF_APPEND(s) strncat(errbuf, s, sizeof(errbuf)-strlen(errbuf)-1)
-
- snprintf(errbuf, 1024, "load failed - %s ", pathname);
-
- if (!loadquery(1, &message[0], sizeof(message)))
- ERRBUF_APPEND(strerror(errno));
- for(i = 0; message[i] && *message[i]; i++) {
- int nerr = atoi(message[i]);
- for (j=0; j<LOAD_ERRTAB_LEN; j++) {
- if (nerr == load_errtab[i].errnum && load_errtab[i].errstr)
- ERRBUF_APPEND(load_errtab[i].errstr);
+ char *message[1024], errbuf[1024];
+ int i;
+#define ERRBUF_APPEND(s) strncat(errbuf, (s), sizeof(errbuf)-strlen(errbuf)-1)
+ snprintf(errbuf, sizeof(errbuf), "load failed - %s. ", pathname);
+
+ if (loadquery(L_GETMESSAGES, &message[0], sizeof(message)) != -1) {
+ ERRBUF_APPEND("Please issue below command for detailed reasons:\n\t");
+ ERRBUF_APPEND("/usr/sbin/execerror ruby ");
+ for (i=0; message[i]; i++) {
+ ERRBUF_APPEND("\"");
+ ERRBUF_APPEND(message[i]);
+ ERRBUF_APPEND("\" ");
+ }
+ ERRBUF_APPEND("\n");
+ } else {
+ ERRBUF_APPEND(strerror(errno));
+ ERRBUF_APPEND("[loadquery failed]");
+ }
+ dln_loaderror("%s", errbuf);
+}
+#endif
+
+#if defined _WIN32 && defined RUBY_EXPORT
+HANDLE rb_libruby_handle(void);
+
+static int
+rb_w32_check_imported(HMODULE ext, HMODULE mine)
+{
+ ULONG size;
+ const IMAGE_IMPORT_DESCRIPTOR *desc;
+
+ desc = ImageDirectoryEntryToData(ext, TRUE, IMAGE_DIRECTORY_ENTRY_IMPORT, &size);
+ if (!desc) return 0;
+ while (desc->Name) {
+ PIMAGE_THUNK_DATA pint = (PIMAGE_THUNK_DATA)((char *)ext + desc->Characteristics);
+ PIMAGE_THUNK_DATA piat = (PIMAGE_THUNK_DATA)((char *)ext + desc->FirstThunk);
+ for (; piat->u1.Function; piat++, pint++) {
+ static const char prefix[] = "rb_";
+ PIMAGE_IMPORT_BY_NAME pii;
+ const char *name;
+
+ if (IMAGE_SNAP_BY_ORDINAL(pint->u1.Ordinal)) continue;
+ pii = (PIMAGE_IMPORT_BY_NAME)((char *)ext + (size_t)pint->u1.AddressOfData);
+ name = (const char *)pii->Name;
+ if (strncmp(name, prefix, sizeof(prefix) - 1) == 0) {
+ FARPROC addr = GetProcAddress(mine, name);
+ if (addr) return (FARPROC)piat->u1.Function == addr;
+ }
}
- while (isdigit(*message[i])) message[i]++;
- ERRBUF_APPEND(message[i]);
- ERRBUF_APPEND("\n");
+ desc++;
}
- errbuf[strlen(errbuf)-1] = '\0'; /* trim off last newline */
- rb_loaderror(errbuf);
- return;
+ return 1;
}
#endif
-#endif /* NO_DLN_LOAD */
+#if defined(DLN_NEEDS_ALT_SEPARATOR) && DLN_NEEDS_ALT_SEPARATOR
+#define translit_separator(src) do { \
+ char *tmp = ALLOCA_N(char, strlen(src) + 1), *p = tmp, c; \
+ do { \
+ *p++ = ((c = *file++) == '/') ? DLN_NEEDS_ALT_SEPARATOR : c; \
+ } while (c); \
+ (src) = tmp; \
+ } while (0)
+#else
+#define translit_separator(str) (void)(str)
+#endif
void*
dln_load(const char *file)
{
-#ifdef NO_DLN_LOAD
- rb_raise(rb_eLoadError, "this executable file can't load extension libraries");
-#else
-
#if !defined(_AIX) && !defined(NeXT)
const char *error = 0;
#define DLN_ERROR() (error = dln_strerror(), strcpy(ALLOCA_N(char, strlen(error) + 1), error))
@@ -1216,10 +1256,11 @@ dln_load(const char *file)
#if defined _WIN32 && !defined __CYGWIN__
HINSTANCE handle;
char winfile[MAXPATHLEN];
+ char message[1024];
void (*init_fct)();
char *buf;
- if (strlen(file) >= MAXPATHLEN) rb_loaderror("filename too long");
+ if (strlen(file) >= MAXPATHLEN) dln_loaderror("filename too long");
/* Load the file as an object one */
init_funcname(&buf, file);
@@ -1232,8 +1273,16 @@ dln_load(const char *file)
goto failed;
}
+#if defined _WIN32 && defined RUBY_EXPORT
+ if (!rb_w32_check_imported(handle, rb_libruby_handle())) {
+ FreeLibrary(handle);
+ error = "incompatible library version";
+ goto failed;
+ }
+#endif
+
if ((init_fct = (void(*)())GetProcAddress(handle, buf)) == NULL) {
- rb_loaderror("%s - %s\n%s", dln_strerror(), buf, file);
+ dln_loaderror("%s - %s\n%s", dln_strerror(), buf, file);
}
/* Call the init code */
@@ -1251,6 +1300,7 @@ dln_load(const char *file)
char *buf;
/* Load the file as an object one */
init_funcname(&buf, file);
+ translit_separator(file);
#ifdef USE_DLN_DLOPEN
#define DLN_DEFINED
@@ -1274,7 +1324,7 @@ dln_load(const char *file)
goto failed;
}
- init_fct = (void(*)())dlsym(handle, buf);
+ init_fct = (void(*)())(VALUE)dlsym(handle, buf);
#if defined __SYMBIAN32__
if (init_fct == NULL) {
init_fct = (void(*)())dlsym(handle, "1"); /* Some Symbian versions do not support symbol table in DLL, ordinal numbers only */
@@ -1303,14 +1353,14 @@ dln_load(const char *file)
lib = shl_load(file, flags, 0);
if (lib == NULL) {
extern int errno;
- rb_loaderror("%s - %s", strerror(errno), file);
+ dln_loaderror("%s - %s", strerror(errno), file);
}
shl_findsym(&lib, buf, TYPE_PROCEDURE, (void*)&init_fct);
if (init_fct == NULL) {
shl_findsym(&lib, buf, TYPE_UNDEFINED, (void*)&init_fct);
if (init_fct == NULL) {
errno = ENOSYM;
- rb_loaderror("%s - %s", strerror(ENOSYM), file);
+ dln_loaderror("%s - %s", strerror(ENOSYM), file);
}
}
(*init_fct)();
@@ -1363,21 +1413,21 @@ dln_load(const char *file)
if(rld_load(s, NULL, object_files, NULL) == 0) {
NXFlush(s);
NXClose(s);
- rb_loaderror("Failed to load %.200s", file);
+ dln_loaderror("Failed to load %.200s", file);
}
/* lookup the initial function */
if(rld_lookup(s, buf, &init_address) == 0) {
NXFlush(s);
NXClose(s);
- rb_loaderror("Failed to lookup Init function %.200s", file);
+ dln_loaderror("Failed to lookup Init function %.200s", file);
}
NXFlush(s);
NXClose(s);
/* Cannot call *init_address directory, so copy this value to
- funtion pointer */
+ function pointer */
init_fct = (void(*)())init_address;
(*init_fct)();
return (void*)init_address;
@@ -1395,14 +1445,14 @@ dln_load(const char *file)
dyld_result = NSCreateObjectFileImageFromFile(file, &obj_file);
if (dyld_result != NSObjectFileImageSuccess) {
- rb_loaderror("Failed to load %.200s", file);
+ dln_loaderror("Failed to load %.200s", file);
}
NSLinkModule(obj_file, file, NSLINKMODULE_OPTION_BINDNOW);
/* lookup the initial function */
if(!NSIsSymbolNameDefined(buf)) {
- rb_loaderror("Failed to lookup Init function %.200s",file);
+ dln_loaderror("Failed to lookup Init function %.200s",file);
}
init_fct = NSAddressOfSymbol(NSLookupAndBindSymbol(buf));
(*init_fct)();
@@ -1412,17 +1462,17 @@ dln_load(const char *file)
#endif /* rld or dyld */
#endif
-#ifdef __BEOS__
+#if defined(__BEOS__) || defined(__HAIKU__)
# define DLN_DEFINED
{
status_t err_stat; /* BeOS error status code */
- image_id img_id; /* extention module unique id */
- void (*init_fct)(); /* initialize function for extention module */
+ image_id img_id; /* extension module unique id */
+ void (*init_fct)(); /* initialize function for extension module */
- /* load extention module */
+ /* load extension module */
img_id = load_add_on(file);
if (img_id <= 0) {
- rb_loaderror("Failed to load add_on %.200s error_code=%x",
+ dln_loaderror("Failed to load add_on %.200s error_code=%x",
file, img_id);
}
@@ -1446,249 +1496,30 @@ dln_load(const char *file)
if ((B_BAD_IMAGE_ID == err_stat) || (B_BAD_INDEX == err_stat)) {
unload_add_on(img_id);
- rb_loaderror("Failed to lookup Init function %.200s", file);
+ dln_loaderror("Failed to lookup Init function %.200s", file);
}
else if (B_NO_ERROR != err_stat) {
char errmsg[] = "Internal of BeOS version. %.200s (symbol_name = %s)";
unload_add_on(img_id);
- rb_loaderror(errmsg, strerror(err_stat), buf);
+ dln_loaderror(errmsg, strerror(err_stat), buf);
}
/* call module initialize function. */
(*init_fct)();
return (void*)img_id;
}
-#endif /* __BEOS__*/
+#endif /* __BEOS__ || __HAIKU__ */
#ifndef DLN_DEFINED
- rb_notimplement();
+ dln_notimplement();
#endif
#endif /* USE_DLN_A_OUT */
#endif
#if !defined(_AIX) && !defined(NeXT)
failed:
- rb_loaderror("%s - %s", error, file);
+ dln_loaderror("%s - %s", error, file);
#endif
-#endif /* NO_DLN_LOAD */
return 0; /* dummy return */
}
-
-static char *dln_find_1(const char *fname, const char *path, char *buf, size_t size, int exe_flag);
-
-char *
-dln_find_exe_r(const char *fname, const char *path, char *buf, size_t size)
-{
- if (!path) {
- path = getenv(PATH_ENV);
- }
-
- if (!path) {
-#if defined(_WIN32)
- path = "/usr/local/bin;/usr/ucb;/usr/bin;/bin;.";
-#else
- path = "/usr/local/bin:/usr/ucb:/usr/bin:/bin:.";
-#endif
- }
- return dln_find_1(fname, path, buf, size, 1);
-}
-
-char *
-dln_find_file_r(const char *fname, const char *path, char *buf, size_t size)
-{
- if (!path) path = ".";
- return dln_find_1(fname, path, buf, size, 0);
-}
-
-static char fbuf[MAXPATHLEN];
-
-char *
-dln_find_exe(const char *fname, const char *path)
-{
- return dln_find_exe_r(fname, path, fbuf, sizeof(fbuf));
-}
-
-char *
-dln_find_file(const char *fname, const char *path)
-{
- return dln_find_file_r(fname, path, fbuf, sizeof(fbuf));
-}
-
-static char *
-dln_find_1(const char *fname, const char *path, char *fbuf, size_t size,
- int exe_flag /* non 0 if looking for executable. */)
-{
- register const char *dp;
- register const char *ep;
- register char *bp;
- struct stat st;
- size_t i, fspace;
-#ifdef DOSISH
- int is_abs = 0, has_path = 0, has_ext = 0;
- const char *p = fname;
-#endif
-
-#define RETURN_IF(expr) if (expr) return (char *)fname;
-
- RETURN_IF(!fname);
-#ifdef DOSISH
-# ifndef CharNext
-# define CharNext(p) ((p)+1)
-# endif
-# ifdef DOSISH_DRIVE_LETTER
- if (((p[0] | 0x20) - 'a') < 26 && p[1] == ':') {
- p += 2;
- is_abs = 1;
- }
-# endif
- switch (*p) {
- case '/': case '\\':
- is_abs = 1;
- p++;
- }
- has_path = is_abs;
- while (*p) {
- switch (*p) {
- case '/': case '\\':
- has_path = 1;
- has_ext = 0;
- p++;
- break;
- case '.':
- has_ext = 1;
- p++;
- break;
- default:
- p = CharNext(p);
- }
- }
- ep = bp = 0;
- if (!exe_flag) {
- RETURN_IF(is_abs);
- }
- else if (has_path) {
- RETURN_IF(has_ext);
- i = p - fname;
- if (i + 1 > size) goto toolong;
- fspace = size - i - 1;
- bp = fbuf;
- ep = p;
- memcpy(fbuf, fname, i + 1);
- goto needs_extension;
- }
-#endif
-
- RETURN_IF(fname[0] == '/');
- RETURN_IF(strncmp("./", fname, 2) == 0 || strncmp("../", fname, 3) == 0);
- RETURN_IF(exe_flag && strchr(fname, '/'));
-
-#undef RETURN_IF
-
- for (dp = path;; dp = ++ep) {
- register size_t l;
-
- /* extract a component */
- ep = strchr(dp, PATH_SEP[0]);
- if (ep == NULL)
- ep = dp+strlen(dp);
-
- /* find the length of that component */
- l = ep - dp;
- bp = fbuf;
- fspace = size - 2;
- if (l > 0) {
- /*
- ** If the length of the component is zero length,
- ** start from the current directory. If the
- ** component begins with "~", start from the
- ** user's $HOME environment variable. Otherwise
- ** take the path literally.
- */
-
- if (*dp == '~' && (l == 1 ||
-#if defined(DOSISH)
- dp[1] == '\\' ||
-#endif
- dp[1] == '/')) {
- char *home;
-
- home = getenv("HOME");
- if (home != NULL) {
- i = strlen(home);
- if (fspace < i)
- goto toolong;
- fspace -= i;
- memcpy(bp, home, i);
- bp += i;
- }
- dp++;
- l--;
- }
- if (l > 0) {
- if (fspace < l)
- goto toolong;
- fspace -= l;
- memcpy(bp, dp, l);
- bp += l;
- }
-
- /* add a "/" between directory and filename */
- if (ep[-1] != '/')
- *bp++ = '/';
- }
-
- /* now append the file name */
- i = strlen(fname);
- if (fspace < i) {
- toolong:
- fprintf(stderr, "openpath: pathname too long (ignored)\n");
- *bp = '\0';
- fprintf(stderr, "\tDirectory \"%s\"\n", fbuf);
- fprintf(stderr, "\tFile \"%s\"\n", fname);
- goto next;
- }
- fspace -= i;
- memcpy(bp, fname, i + 1);
-
-#if defined(DOSISH)
- if (exe_flag && !has_ext) {
- static const char extension[][5] = {
-#if defined(__EMX__) || defined(_WIN32)
- ".exe", ".com", ".cmd", ".bat",
-/* end of __EMX__ or _WIN32 */
-#endif
- };
- size_t j;
-
- needs_extension:
- for (j = 0; j < sizeof(extension) / sizeof(extension[0]); j++) {
- if (fspace < strlen(extension[j])) {
- fprintf(stderr, "openpath: pathname too long (ignored)\n");
- fprintf(stderr, "\tDirectory \"%.*s\"\n", (int) (bp - fbuf), fbuf);
- fprintf(stderr, "\tFile \"%s%s\"\n", fname, extension[j]);
- continue;
- }
- strlcpy(bp + i, extension[j], fspace);
- if (stat(fbuf, &st) == 0)
- return fbuf;
- }
- goto next;
- }
-#endif /* _WIN32 or __EMX__ */
-
- if (stat(fbuf, &st) == 0) {
- if (exe_flag == 0) return fbuf;
- /* looking for executable */
- if (!S_ISDIR(st.st_mode) && eaccess(fbuf, X_OK) == 0)
- return fbuf;
- }
- next:
- /* if not, and no other alternatives, life is bleak */
- if (*ep == '\0') {
- return NULL;
- }
-
- /* otherwise try the next component in the search path */
- }
-}
diff --git a/dln.h b/dln.h
index 47ff3eaf59..abbd6d85a3 100644
--- a/dln.h
+++ b/dln.h
@@ -28,6 +28,10 @@
# define _(args) ()
#endif
+#if defined __GNUC__ && __GNUC__ >= 4
+#pragma GCC visibility push(default)
+#endif
+
DEPRECATED(char *dln_find_exe(const char*,const char*));
DEPRECATED(char *dln_find_file(const char*,const char*));
char *dln_find_exe_r(const char*,const char*,char*,size_t);
@@ -38,4 +42,9 @@ extern char *dln_argv0;
#endif
void *dln_load(const char*);
+
+#if defined __GNUC__ && __GNUC__ >= 4
+#pragma GCC visibility pop
+#endif
+
#endif
diff --git a/dln_find.c b/dln_find.c
new file mode 100644
index 0000000000..7ce3a957ed
--- /dev/null
+++ b/dln_find.c
@@ -0,0 +1,320 @@
+/**********************************************************************
+
+ dln_find.c -
+
+ $Author$
+ created at: Tue Jan 18 17:05:06 JST 1994
+
+ Copyright (C) 1993-2007 Yukihiro Matsumoto
+
+**********************************************************************/
+
+#ifdef RUBY_EXPORT
+#include "ruby/ruby.h"
+#define dln_notimplement rb_notimplement
+#define dln_memerror rb_memerror
+#define dln_exit rb_exit
+#define dln_loaderror rb_loaderror
+#define dln_warning rb_warning
+#define dln_warning_arg
+#else
+#define dln_notimplement --->>> dln not implemented <<<---
+#define dln_memerror abort
+#define dln_exit exit
+#define dln_warning fprintf
+#define dln_warning_arg stderr,
+static void dln_loaderror(const char *format, ...);
+#endif
+#include "dln.h"
+
+#ifdef HAVE_STDLIB_H
+# include <stdlib.h>
+#endif
+
+#ifdef USE_DLN_A_OUT
+char *dln_argv0;
+#endif
+
+#if defined(HAVE_ALLOCA_H)
+#include <alloca.h>
+#endif
+
+#ifdef HAVE_STRING_H
+# include <string.h>
+#else
+# include <strings.h>
+#endif
+
+#ifndef xmalloc
+void *xmalloc();
+void *xcalloc();
+void *xrealloc();
+#endif
+
+#define free(x) xfree(x)
+
+#include <stdio.h>
+#if defined(_WIN32)
+#include "missing/file.h"
+#endif
+#include <sys/types.h>
+#include <sys/stat.h>
+
+#ifndef S_ISDIR
+# define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR)
+#endif
+
+#ifdef HAVE_SYS_PARAM_H
+# include <sys/param.h>
+#endif
+#ifndef MAXPATHLEN
+# define MAXPATHLEN 1024
+#endif
+
+#ifdef HAVE_UNISTD_H
+# include <unistd.h>
+#endif
+
+#ifndef _WIN32
+char *getenv();
+#endif
+
+static char *dln_find_1(const char *fname, const char *path, char *buf, size_t size, int exe_flag);
+
+char *
+dln_find_exe_r(const char *fname, const char *path, char *buf, size_t size)
+{
+ char *envpath = 0;
+
+ if (!path) {
+ path = getenv(PATH_ENV);
+ if (path) path = envpath = strdup(path);
+ }
+
+ if (!path) {
+#if defined(_WIN32)
+ path = "/usr/local/bin;/usr/ucb;/usr/bin;/bin;.";
+#else
+ path = "/usr/local/bin:/usr/ucb:/usr/bin:/bin:.";
+#endif
+ }
+ buf = dln_find_1(fname, path, buf, size, 1);
+ if (envpath) free(envpath);
+ return buf;
+}
+
+char *
+dln_find_file_r(const char *fname, const char *path, char *buf, size_t size)
+{
+ if (!path) path = ".";
+ return dln_find_1(fname, path, buf, size, 0);
+}
+
+static char fbuf[MAXPATHLEN];
+
+char *
+dln_find_exe(const char *fname, const char *path)
+{
+ return dln_find_exe_r(fname, path, fbuf, sizeof(fbuf));
+}
+
+char *
+dln_find_file(const char *fname, const char *path)
+{
+ return dln_find_file_r(fname, path, fbuf, sizeof(fbuf));
+}
+
+static char *
+dln_find_1(const char *fname, const char *path, char *fbuf, size_t size,
+ int exe_flag /* non 0 if looking for executable. */)
+{
+ register const char *dp;
+ register const char *ep;
+ register char *bp;
+ struct stat st;
+ size_t i, fnlen, fspace;
+#ifdef DOSISH
+ static const char extension[][5] = {
+ EXECUTABLE_EXTS,
+ };
+ size_t j;
+ int is_abs = 0, has_path = 0;
+ const char *ext = 0;
+#endif
+ const char *p = fname;
+
+ static const char pathname_too_long[] = "openpath: pathname too long (ignored)\n\
+\tDirectory \"%.*s\"%s\n\tFile \"%.*s\"%s\n";
+#define PATHNAME_TOO_LONG() dln_warning(dln_warning_arg pathname_too_long, \
+ ((bp - fbuf) > 100 ? 100 : (int)(bp - fbuf)), fbuf, \
+ ((bp - fbuf) > 100 ? "..." : ""), \
+ (fnlen > 100 ? 100 : (int)fnlen), fname, \
+ (fnlen > 100 ? "..." : ""))
+
+#define RETURN_IF(expr) if (expr) return (char *)fname;
+
+ RETURN_IF(!fname);
+ fnlen = strlen(fname);
+ if (fnlen >= size) {
+ dln_warning(dln_warning_arg
+ "openpath: pathname too long (ignored)\n\tFile \"%.*s\"%s\n",
+ (fnlen > 100 ? 100 : (int)fnlen), fname,
+ (fnlen > 100 ? "..." : ""));
+ return NULL;
+ }
+#ifdef DOSISH
+# ifndef CharNext
+# define CharNext(p) ((p)+1)
+# endif
+# ifdef DOSISH_DRIVE_LETTER
+ if (((p[0] | 0x20) - 'a') < 26 && p[1] == ':') {
+ p += 2;
+ is_abs = 1;
+ }
+# endif
+ switch (*p) {
+ case '/': case '\\':
+ is_abs = 1;
+ p++;
+ }
+ has_path = is_abs;
+ while (*p) {
+ switch (*p) {
+ case '/': case '\\':
+ has_path = 1;
+ ext = 0;
+ p++;
+ break;
+ case '.':
+ ext = p;
+ p++;
+ break;
+ default:
+ p = CharNext(p);
+ }
+ }
+ if (ext) {
+ for (j = 0; STRCASECMP(ext, extension[j]); ) {
+ if (++j == sizeof(extension) / sizeof(extension[0])) {
+ ext = 0;
+ break;
+ }
+ }
+ }
+ ep = bp = 0;
+ if (!exe_flag) {
+ RETURN_IF(is_abs);
+ }
+ else if (has_path) {
+ RETURN_IF(ext);
+ i = p - fname;
+ if (i + 1 > size) goto toolong;
+ fspace = size - i - 1;
+ bp = fbuf;
+ ep = p;
+ memcpy(fbuf, fname, i + 1);
+ goto needs_extension;
+ }
+ p = fname;
+#endif
+
+ if (*p == '.' && *++p == '.') ++p;
+ RETURN_IF(*p == '/');
+ RETURN_IF(exe_flag && strchr(fname, '/'));
+
+#undef RETURN_IF
+
+ for (dp = path;; dp = ++ep) {
+ register size_t l;
+
+ /* extract a component */
+ ep = strchr(dp, PATH_SEP[0]);
+ if (ep == NULL)
+ ep = dp+strlen(dp);
+
+ /* find the length of that component */
+ l = ep - dp;
+ bp = fbuf;
+ fspace = size - 2;
+ if (l > 0) {
+ /*
+ ** If the length of the component is zero length,
+ ** start from the current directory. If the
+ ** component begins with "~", start from the
+ ** user's $HOME environment variable. Otherwise
+ ** take the path literally.
+ */
+
+ if (*dp == '~' && (l == 1 ||
+#if defined(DOSISH)
+ dp[1] == '\\' ||
+#endif
+ dp[1] == '/')) {
+ char *home;
+
+ home = getenv("HOME");
+ if (home != NULL) {
+ i = strlen(home);
+ if (fspace < i)
+ goto toolong;
+ fspace -= i;
+ memcpy(bp, home, i);
+ bp += i;
+ }
+ dp++;
+ l--;
+ }
+ if (l > 0) {
+ if (fspace < l)
+ goto toolong;
+ fspace -= l;
+ memcpy(bp, dp, l);
+ bp += l;
+ }
+
+ /* add a "/" between directory and filename */
+ if (ep[-1] != '/')
+ *bp++ = '/';
+ }
+
+ /* now append the file name */
+ i = fnlen;
+ if (fspace < i) {
+ toolong:
+ PATHNAME_TOO_LONG();
+ goto next;
+ }
+ fspace -= i;
+ memcpy(bp, fname, i + 1);
+
+#if defined(DOSISH)
+ if (exe_flag && !ext) {
+ needs_extension:
+ for (j = 0; j < sizeof(extension) / sizeof(extension[0]); j++) {
+ if (fspace < strlen(extension[j])) {
+ PATHNAME_TOO_LONG();
+ continue;
+ }
+ strlcpy(bp + i, extension[j], fspace);
+ if (stat(fbuf, &st) == 0)
+ return fbuf;
+ }
+ goto next;
+ }
+#endif /* _WIN32 or __EMX__ */
+
+ if (stat(fbuf, &st) == 0) {
+ if (exe_flag == 0) return fbuf;
+ /* looking for executable */
+ if (!S_ISDIR(st.st_mode) && eaccess(fbuf, X_OK) == 0)
+ return fbuf;
+ }
+ next:
+ /* if not, and no other alternatives, life is bleak */
+ if (*ep == '\0') {
+ return NULL;
+ }
+
+ /* otherwise try the next component in the search path */
+ }
+}
diff --git a/dmydln.c b/dmydln.c
index 09ea06806c..2c8aacc06a 100644
--- a/dmydln.c
+++ b/dmydln.c
@@ -1,2 +1,7 @@
-#define NO_DLN_LOAD 1
-#include "dln.c"
+#include "ruby/ruby.h"
+
+void*
+dln_load(const char *file)
+{
+ rb_loaderror("this executable file can't load extension libraries");
+}
diff --git a/dmyversion.c b/dmyversion.c
new file mode 100644
index 0000000000..279c6ea95a
--- /dev/null
+++ b/dmyversion.c
@@ -0,0 +1,2 @@
+#define NO_INITIAL_LOAD_PATH 1
+#include "version.c"
diff --git a/doc/ChangeLog-1.8.0 b/doc/ChangeLog-1.8.0
index d168a50f80..e16c7f4f20 100644
--- a/doc/ChangeLog-1.8.0
+++ b/doc/ChangeLog-1.8.0
@@ -10516,6 +10516,11 @@ Thu Jan 17 16:21:42 2002 Yukihiro Matsumoto <matz@ruby-lang.org>
* eval.c (block_pass): should allow block argument relay even in
the tainted mode.
+Thu Jan 17 09:43:05 2002 TAKAHASHI Kaoru <kaoru@kaisei.org>
+
+ * misc/ruby-mode.el (ruby-add-log-current-method): New function
+ for `add-log-current-defun-function'.
+
Thu Jan 17 04:51:48 2002 Yukihiro Matsumoto <matz@ruby-lang.org>
* ext/socket/socket.c: support subclassing by proper "initialize"
diff --git a/doc/ChangeLog-1.9.3 b/doc/ChangeLog-1.9.3
new file mode 100644
index 0000000000..d440e76965
--- /dev/null
+++ b/doc/ChangeLog-1.9.3
@@ -0,0 +1,80621 @@
+Tue Aug 24 01:14:58 2010 Kenta Murata <mrkn@mrkn.jp>
+
+ * ext/bigdecimal/bigdecimal.c (BigDecimal_to_f): to_f must underflow
+ when the exponent is less than DBL_MIN_10_EXP - BASE_FIG.
+
+ * test/bigdecimal/test_bigdecimal.rb (test_to_f): added test for the above changes.
+
+Mon Aug 23 23:14:21 2010 Tanaka Akira <akr@fsij.org>
+
+ * ext/pathname/pathname.c (path_each_line): Pathname#each_line
+ translated from pathname.rb.
+
+Mon Aug 23 22:30:58 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * common.mk (version.o): depends on both of version.h and
+ include/ruby/version.h. [ruby-dev:42063]
+
+Mon Aug 23 13:09:27 2010 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * backport r29071 from ruby_1_8;
+
+ * ext/openssl/ossl_asn1.c (obj_to_asn1bool): fixed ASN1::Boolean
+ encoding issue for OpenSSL 1.0.0 compatibility.
+ ASN1::Boolean.new(false).to_der wrongly generated "\1\1\377" which
+ means 'true'.
+
+ ASN1_TYPE_set of OpenSSL <= 0.9.8 treats value 0x100 as 'false'
+ but OpenSSL >= 1.0.0 treats it as 'true'. ruby-ossl was using
+ 0x100 for 'false' for backward compatibility. Just use 0x0 for
+ the case OpenSSL >= OpenSSL 0.9.7.
+
+ * test/openssl/test_asn1.rb: test added.
+
+Mon Aug 23 12:28:58 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * re.c (rb_reg_search): fix: 4th argument should be regexp
+ object. patched by shintaro kuwamoto [ruby-dev:41667] #3459
+
+Mon Aug 23 02:23:05 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * util.c (ruby_strtod): make sure to have digit-sequence after 'p'
+ for hexadecimal-floating-constant. [ruby-dev:42105]
+
+Mon Aug 23 00:23:07 2010 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * lib/date.rb, lib/date/format.rb: [ruby-core:31695]
+
+Sun Aug 22 09:08:02 2010 Tanaka Akira <akr@fsij.org>
+
+ * include/ruby/ruby.h (UINT2NUM): fix ifdef condition for LLP64.
+ reported by Daniel Gutmanas. [ruby-core:31778]
+
+Sun Aug 22 06:46:21 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * array.c (RAND_UPTO): macro for random number.
+
+Sun Aug 22 05:55:01 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in: fix typo. a patch from Eric Wong at
+ [ruby-core:31810].
+
+Sat Aug 21 20:09:43 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * vm.c: add missing prototype of rb_iseq_clone for r29063.
+
+Sat Aug 21 18:54:56 2010 wanabe <s.wanabe@gmail.com>
+
+ * vm.c (vm_define_method): copy iseq to avoid overwriting iseq->klass.
+ #2502, #3136. see #2420.
+
+Sat Aug 21 17:36:42 2010 Tanaka Akira <akr@fsij.org>
+
+ * ext/pathname/pathname.c (path_split): Pathname#split translated from
+ pathname.rb.
+
+Fri Aug 20 10:40:04 2010 Tanaka Akira <akr@fsij.org>
+
+ * ext/pathname/pathname.c (path_expand_path): Pathname#expand_path
+ translated from pathname.rb.
+
+Thu Aug 19 22:44:56 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * tool/make-snapshot (usage): add usage.
+
+ * tool/make-snapshot (package): accept revision as BRANCH@REV.
+
+Thu Aug 19 19:53:26 2010 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/ancdata.c (ancillary_timestamp): fix a constant type.
+
+ * ext/socket/raddrinfo.c (get_afamily): suppress a warning.
+
+Thu Aug 19 19:28:47 2010 Tanaka Akira <akr@fsij.org>
+
+ * thread_pthread.c (native_sleep): suppress a warning for platforms
+ which time_t is int.
+
+Thu Aug 19 18:15:50 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * tool/merger.rb: Add a tool to merge commits between branches.
+ developed by URABE Shyouhei
+
+Thu Aug 19 17:19:09 2010 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * backport r28621 and r28632 from ruby_1_8;
+
+ * ext/openssl/ossl_config.c, ext/openssl/lib/openssl/config.rb,
+ ext/openssl/lib/openssl.rb: reimplement OpenSSL::Config in Ruby.
+ Now it should work on windows.
+
+ * test/openssl/test_config.rb: added tests for OpenSSL::Config#dup.
+
+ * test/openssl/test_config.rb: added tests for Config#clone.
+
+Thu Aug 19 12:04:39 2010 Kenta Murata <mrkn@mrkn.jp>
+
+ * array.c (rb_ary_permutation, rb_ary_repeated_permutation,
+ rb_ary_repeated_combination, rb_ary_product):
+ use ary_make_shared_copy instead of ary_make_substitution.
+ [ruby-dev:42067] [Bug #3708]
+
+ * test/ruby/test_array.rb (test_product, test_repeated_permutation,
+ test_repeated_combination): append assertions against [Bug #3708].
+
+Thu Aug 19 11:11:24 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * enum.c (enum_inject): fix typo of rdoc.
+ patched by Andrei Kulakov [ruby-core:31768]
+
+Thu Aug 19 10:06:08 2010 Tanaka Akira <akr@fsij.org>
+
+ * ext/pathname/pathname.c (path_extname): Pathname#extname translated
+ from pathname.rb.
+
+Thu Aug 19 06:03:27 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * vm_insnhelper.c (vm_push_frame): initialize block_iseq. a patch
+ from Peter Weldon at [ruby-core:31757].
+
+Wed Aug 18 19:08:17 2010 Kenta Murata <mrkn@mrkn.jp>
+
+ * array.c (ary_make_shared): revert r29037, it occurs SEGV some
+ situations.
+
+Wed Aug 18 18:36:32 2010 Kenta Murata <mrkn@mrkn.jp>
+
+ * array.c (ary_make_shared),
+ test/ruby/test_array.rb (test_permutation):
+ always return the original array when it is shared.
+ [ruby-dev:42067] [Bug #3708]
+
+Wed Aug 18 01:37:49 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * regcomp.c: revert r26701; it introduces Bug #3681.
+ [ruby-core:31677]
+
+Tue Aug 17 20:05:29 2010 Tanaka Akira <akr@fsij.org>
+
+ * test/ruby/test_io.rb (test_threaded_flush): test "hi" is not output
+ twice.
+
+Tue Aug 17 15:13:28 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * lib/date.rb: Re-revert the part of r28950.
+ It reverted the part of r28619.
+
+Tue Aug 17 13:00:07 2010 Tanaka Akira <akr@fsij.org>
+
+ * ext/pathname/pathname.c (path_dirname): Pathname#dirname translated
+ from pathname.rb.
+
+Tue Aug 17 07:50:37 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/readline/extconf.rb: check functions more.
+ [ruby-core:31722]
+
+Tue Aug 17 07:42:43 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * string.c (str_make_independent_expand): set capacity properly. a
+ patch from Peter Weldon at [ruby-core:31734]. [ruby-core:31653]
+
+Tue Aug 17 07:38:43 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * gem_prelude.rb, lib/rubygems.rb (Gem.suffixes): include empty
+ suffix. [ruby-core:31730]
+
+Mon Aug 16 22:16:12 2010 Tanaka Akira <akr@fsij.org>
+
+ * ext/pathname/pathname.c (path_basename): unused variable removed.
+
+Mon Aug 16 21:39:33 2010 Tanaka Akira <akr@fsij.org>
+
+ * ext/pathname/pathname.c (path_basename): Pathname#basename translated
+ from pathname.rb.
+
+Mon Aug 16 20:26:13 2010 Narihiro Nakamura <narihiro@netlab.jp>
+
+ * gc.c (gc_profile_result): Index begins with 1.
+
+Mon Aug 16 20:21:17 2010 Narihiro Nakamura <authornari@gmail.com>
+
+ * gc.c (gc_profile_result): use size_t. based on patches from
+ Tomoaki NISHIYAMA <tomoakin@kenroku.kanazawa-u.ac.jp> at
+ [ruby-dev:42042].
+
+Mon Aug 16 19:23:19 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * util.c (ruby_dtoa, ruby_hdtoa): use same representations for
+ Infinity and NaN. a part of a patch from Peter Weldon at
+ [ruby-core:31725].
+
+ * util.c (ruby_hdtoa): fixed buffer overrun. based on a patch
+ from Peter Weldon at [ruby-core:31725].
+
+Mon Aug 16 17:44:55 2010 Tanaka Akira <akr@fsij.org>
+
+ * common.mk (capi): use -b option for doxygen. It disables stdout
+ buffering and prevents wrong reordering between stdout and stderr
+ even when the output of "make" is redirected.
+
+Sun Aug 15 19:59:58 2010 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * lib/webrick/httpresponse.rb (WEBrick::HTTPResponse#set_error):
+ Fix for possible cross-site scripting (CVE-2010-0541).
+ Found by Apple, reported by Hideki Yamane.
+ Patch by Hirokazu Nishio <nishio.hirokazu AT gmail.com>.
+
+Mon Aug 16 12:29:06 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * Makefile.in, win32/Makefile.sub (test-rubyspec-precheck): split
+ from test-rubyspec.
+
+ * common.mk (test-rubyspec): moved from Makefile.in.
+
+Mon Aug 16 10:00:45 2010 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * ext/bigdecimal/bigdecimal.h (llabs): never never never never never
+ use "long long".
+
+ * ext/bigdecimal.bigdecimal.c (BigDecimal_to_i): get rid of a warning.
+
+Sun Aug 15 18:14:20 2010 Kenta Murata <mrkn@mrkn.jp>
+
+ * ext/bigdecimal/bigdecimal.c (BigDecimal_dump, BigDecimal_inspect,
+ VPrint, VpToString, VpVarCheck): use PRIuSIZE, PRIdSIZE, PRIdVALUE,
+ and PRIxVALUE.
+
+Sun Aug 15 16:14:31 2010 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * lib/mkmf.rb (Logging.postpone): close @log only when it's available.
+
+Sun Aug 15 13:30:35 2010 Kenta Murata <mrkn@mrkn.jp>
+
+ * ext/bigdecimal/bigdecimal.h (VpVtoD): fix a type of e.
+
+ * ext/bigdecimal/bigdecimal.c (BigDecimal_dump, BigDecimal_inspect):
+ fix format for size_t.
+
+Sun Aug 15 00:22:00 2010 Kenta Murata <mrkn@mrkn.jp>
+
+ * ext/bigdecimal/extconf.rb, ext/bigdecimal/bigdecimal.h
+ (labs, llabs): support environments missing labs and llabs.
+
+ * ext/bigdecimal/bigdecimal.h (vabs): added.
+
+ * ext/bigdecimal/extconf.rb, ext/bigdecimal/bigdecimal.h,
+ ext/bigdecimal/bigdecimal.c, test/bigdecimal/test_bigdecimal.rb
+ (TestBigDecimal#test_new): replace U_LONG, S_LONG, S_INT, and U_INT
+ with appropriate standard or ruby-provided types.
+
+Sun Aug 15 00:15:45 2010 Tanaka Akira <akr@fsij.org>
+
+ * ext/pathname/pathname.c (path_utime): Pathname#utime translated
+ from pathname.rb.
+
+Sat Aug 14 21:04:28 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * thread.c (rb_gc_mark_threads): deprecated.
+
+Sat Aug 14 19:12:10 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/{coverage,objspace}/extconf.rb ($INCFLAGS): explicitly add
+ topdir and top_srcdir. [ruby-dev:42031]
+
+Sat Aug 14 17:48:41 2010 Narihiro Nakamura <authorNari@gmail.com>
+
+ * test/objspace/test_objspace.rb: added test for objspace.
+
+ * ext/objspace/objspace.c: considers T_ZOMBIE by lazy sweep GC.
+
+ * gc.c: considers that dsize was 0. [ruby-dev:42022]
+
+Sat Aug 14 15:33:02 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in, include/ruby/defines.h (RUBY_FUNC_EXPORTED): macro
+ to declare exported function.
+
+ * array.c (rb_ary_memsize), string.c (rb_str_memsize),
+ variable.c (rb_objspace_data_type_memsize): used in
+ objspace. [ruby-dev:42022]
+
+ * io.c (rb_io_memsize): constified.
+
+ * regcomp.c (onig_memsize): constified.
+
+ * gc.h (rb_objspace_each_objects): used in objspace.
+
+ * vm_core.h (rb_{get,set,reset}_coverages): used in coverage.
+
+ * include/ruby/intern.h (rb_time_interval): used in io/wait.
+
+ * include/ruby/intern.h (rb_make_backtrace, rb_make_exception):
+ used in ripper.
+
+ * node.h (rb_parser_{malloc,realloc,calloc,free}): ditto.
+
+Fri Aug 13 22:48:39 2010 Tanaka Akira <akr@fsij.org>
+
+ * ext/pathname/pathname.c (path_truncate): Pathname#truncate translated
+ from pathname.rb.
+
+Fri Aug 13 16:11:36 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/test/unit.rb (MiniTest::Unit.new): extend before initialize.
+ [ruby-dev:41970]
+
+ * lib/test/unit.rb (MiniTest::Unit.autorun): use Test::Unit::Mini.
+
+Thu Aug 12 23:39:02 2010 Tanaka Akira <akr@fsij.org>
+
+ * ext/pathname/pathname.c (path_make_symlink): Pathname#make_symlink
+ translated from pathname.rb.
+
+Thu Aug 12 21:18:27 2010 Tanaka Akira <akr@fsij.org>
+
+ * ext/pathname/pathname.c (path_lstat): Pathname#lstat translated
+ from pathname.rb.
+
+Thu Aug 12 05:58:09 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * include/ruby/encoding.h (rb_char_to_option_kcode): used in
+ ripper.
+
+ * node.h (rb_reserved_word): ditto.
+
+Thu Aug 12 00:19:53 2010 Tanaka Akira <akr@fsij.org>
+
+ * test/ruby/test_rubyoptions.rb (test_script_from_stdin): disable
+ echo. [ruby-dev:41966]
+
+Wed Aug 11 23:28:22 2010 Kenta Murata <mrkn@mrkn.jp>
+
+ * lib/cmath.rb (CMath.sqrt): use floating-point value.
+ [ruby-core:31672] [Bug #3678]
+
+ * test/test_cmath.rb: added for testing lib/cmath.rb.
+
+Wed Aug 11 20:57:25 2010 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
+
+ * NEWS: merge from branches/ruby_1_9_2, and move io/console.
+ [ruby-dev:41924]
+
+Wed Aug 11 11:01:15 2010 Kenta Murata <mrkn@mrkn.jp>
+
+ * ext/bigdecimal/bigdecimal.c: don't use // comment.
+
+Wed Aug 11 06:18:20 2010 Tanaka Akira <akr@fsij.org>
+
+ * ext/pathname/pathname.c (path_stat): Pathname#stat translated
+ from pathname.rb.
+
+Tue Aug 10 21:18:04 2010 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * complex.c (nucomp_to_[ifr]): don't allow complex with in-exact
+ imaginary zero to be converted.
+
+Tue Aug 10 20:56:31 2010 Tanaka Akira <akr@fsij.org>
+
+ * lib/optparse.rb: suppress a warning.
+
+ * test/test_mutex_m.rb: ditto.
+
+Tue Aug 10 20:56:13 2010 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * lib/date/format.rb (Date::Format::Bag): use Struct.
+ as an experimental.
+
+Tue Aug 10 20:45:35 2010 Tanaka Akira <akr@fsij.org>
+
+ * ext/pathname/pathname.c (path_rename): Pathname#rename translated
+ from pathname.rb.
+
+Tue Aug 10 20:16:19 2010 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * ext/dl/win32/lib/win32/resolv.rb (get_info): get rid of a warning.
+
+Tue Aug 10 19:56:13 2010 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * lib/date/format.rb: [ruby-core:31658]
+
+Tue Aug 10 17:24:56 2010 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * README.EXT.ja: rb_tainted_str_new_cstr() is an alias of
+ rb_tainted_str_new2().
+
+Tue Aug 10 15:24:30 2010 Kenta Murata <mrkn@mrkn.jp>
+
+ * ext/bigdecimal/bigdecimal.c, ext/bigdecimal/bigdecimal.h,
+ ext/bigdecimal/extconf.rb: BASE and BASE_FIG are defined
+ based on the size of BDIGIT.
+
+ * ext/bigdecimal/bigdecimal.c, ext/bigdecimal/bigdecimal.h:
+ use BDIGIT for Real#frac.
+
+Tue Aug 10 15:19:45 2010 Kenta Murata <mrkn@mrkn.jp>
+
+ * ext/bigdecimal/bigdecimal.h, ext/bigdecimal/bigdecimal.c:
+ add extern declaration of rb_cBigDecimal.
+
+Tue Aug 10 14:09:31 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * lib/webrick/httprequest.rb (WEBrick::HTTPRequest::parse_uri):
+ rollup leading slashes. [ruby-core:31657]
+ patched by Jamison Wilde
+ NOTE: //authority/path is valid relative URI both RFC2396 and
+ RFC3986. So when give a relative URI-like string to URI lib,
+ users must care leading slashes.
+
+Tue Aug 10 11:26:33 2010 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * lib/un.rb (httpd): SIGQUIT and SIGHUP are not guaranteed to exist.
+
+Tue Aug 10 06:26:48 2010 Tanaka Akira <akr@fsij.org>
+
+ * ext/pathname/pathname.c (path_readlink): Pathname#readlink translated
+ from pathname.rb.
+
+Mon Aug 9 22:15:19 2010 Tanaka Akira <akr@fsij.org>
+
+ * ext/pathname/pathname.c (path_open): Pathname#open translated from
+ pathname.rb.
+
+Mon Aug 9 22:11:09 2010 Tanaka Akira <akr@fsij.org>
+
+ * test/ruby/test_signal.rb (TestSignal#test_exit_action): use
+ Process.spawn instead of Process.fork.
+
+Mon Aug 9 15:59:02 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * lib/rubygems/source_index.rb: rename unused variable.
+
+ * lib/rubygems/specification.rb: rename unused variable.
+
+ * lib/rubygems/specification.rb: remove unused variable.
+
+Mon Aug 9 14:10:06 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * ext/nkf/nkf-utf8/nkf.c: Fix type of mimeout_state.buf.
+ [nkf-bug:20079]
+
+Mon Aug 9 06:52:59 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * dir.c (sys_warning_1): show error message.
+
+Mon Aug 9 06:50:28 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * test/ruby/test_require.rb (test_require_too_long_filename):
+ clear -w option.
+
+Mon Aug 9 00:18:44 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/mkmf.rb ($ignore_error): initialize after $nmake.
+
+Sun Aug 8 19:16:26 2010 Tanaka Akira <akr@fsij.org>
+
+ * ext/pathname/pathname.c (path_make_link): Pathname#make_link
+ translated from pathname.rb.
+
+Sun Aug 8 16:42:48 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/rubygems.rb (Gem.find_files): reverted to use globbing.
+
+ * lib/rubygems.rb (Gem.find_files): fixed search order same as
+ default behavior.
+
+ * gem_prelude.rb, lib/rubygems.rb (Gem.suffixes): return truly
+ require-able suffixes only.
+
+Sun Aug 8 13:20:57 2010 Tanaka Akira <akr@fsij.org>
+
+ * ext/pathname/pathname.c (path_ftype): Pathname#ftype translated
+ from pathname.rb.
+
+Sun Aug 8 12:41:19 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (parser_tokadd_escape): no similar messages twice.
+ [ruby-core:31048]
+
+Sun Aug 8 10:07:45 2010 Tanaka Akira <akr@fsij.org>
+
+ * strftime.c (rb_strftime_with_timespec): suppress warnings.
+
+Sun Aug 8 08:58:42 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * common.mk (RUBY_H_INCLUDES): add subst.h.
+
+Sun Aug 8 08:55:37 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * include/ruby/ruby.h (ruby_snprintf): printf attribute.
+
+Sun Aug 8 07:47:29 2010 Tanaka Akira <akr@fsij.org>
+
+ * lib/rbconfig/obsolete.rb: show the location which use Config.
+
+Sun Aug 8 07:29:55 2010 Tanaka Akira <akr@fsij.org>
+
+ * ext/pathname/pathname.c (path_fnmatch): Pathname#fnmatch and
+ Pathname#fnmatch? translated from pathname.rb.
+
+Sun Aug 8 07:18:22 2010 Tanaka Akira <akr@fsij.org>
+
+ * include/ruby/subst.h (snprintf): redefinition moved from ruby.h.
+ (vsnprintf): ditto.
+
+Sun Aug 8 00:41:42 2010 Tanaka Akira <akr@fsij.org>
+
+ * include/ruby/subst.h: new file for substitute standard functions.
+
+ * include/ruby/missing.h: don't substitute "close", etc. here.
+
+ * include/ruby/ruby.h: include ruby/subst.h at last.
+ This prevents substituting "close" in unistd.h.
+
+Sat Aug 7 19:51:10 2010 Tanaka Akira <akr@fsij.org>
+
+ * test/ruby/envutil.rb (EnvUtil.invoke_ruby): merge stdout and stderr
+ if capture_stderr is :merge_to_stdout.
+ (assert_normal_exit): print abnormal output properly.
+
+Sat Aug 7 19:04:49 2010 Tanaka Akira <akr@fsij.org>
+
+ * missing/close.c: undef the macros "getpeername", "getsockname" and
+ "shutdown" to prevent infinite recursion.
+
+Sat Aug 7 18:37:39 2010 Tanaka Akira <akr@fsij.org>
+
+ * missing/close.c: undef the macro "close" to prevent infinite
+ recursion.
+
+Sat Aug 7 18:20:41 2010 Tanaka Akira <akr@fsij.org>
+
+ * ext/pathname/pathname.c (path_lchown): Pathname#lchown translated
+ from pathname.rb.
+
+Sat Aug 7 17:49:10 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * include/ruby/missing.h: moved BROKEN_CLOSE replacements from
+ include/ruby/ruby.h.
+
+Sat Aug 7 17:40:24 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * mkconfig.rb, lib/rbconfig/obsolete.rb: warn obsolete and
+ deprecated Config.
+
+Sat Aug 7 17:18:34 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/extmk.rb (extract_makefile): follow the change of
+ install-rb-default line format at r28850, which causes second
+ run to create dummy makefiles.
+
+Sat Aug 7 14:08:44 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * lib/mkmf.rb: change instance variable to global.
+
+Sat Aug 7 13:59:19 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/pathname/pathname.c (path_sub_ext): don't clobber shared string.
+ [ruby-core:31640]
+
+Sat Aug 7 13:33:25 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * vm_eval.c (vm_call0): fix for VM_METHOD_TYPE_NOTIMPLEMENTED.
+ [ruby-dev:41953]
+
+Sat Aug 7 09:47:06 2010 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+
+ * ext/win32ole/win32ole.c: fix checking version of GCC.
+
+Sat Aug 7 09:31:48 2010 Tanaka Akira <akr@fsij.org>
+
+ * ext/pathname/pathname.c (Init_pathname): fix number of arguments for
+ Pathname#chown.
+
+Sat Aug 7 09:28:12 2010 Tanaka Akira <akr@fsij.org>
+
+ * test/ruby/envutil.rb (assert_normal_exit): use assert. fix
+ faildesc.
+
+ * test/pathname/test_pathname.rb (test_lchmod): test Pathname#lchmod
+ using assert_normal_exit.
+
+Sat Aug 7 08:26:26 2010 Tanaka Akira <akr@fsij.org>
+
+ * ext/pathname/pathname.c (path_chown): Pathname#chown translated
+ from pathname.rb.
+
+Sat Aug 7 02:09:04 2010 Tanaka Akira <akr@fsij.org>
+
+ * ext/pathname/pathname.c (path_lchmod): Pathname#lchmod translated
+ from pathname.rb.
+
+Fri Aug 6 21:30:06 2010 Tanaka Akira <akr@fsij.org>
+
+ * ext/pathname/pathname.c (path_chmod): Pathname#chmod translated from
+ pathname.rb.
+
+Fri Aug 6 20:13:42 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * rational.c (nurat_div): divided by infinity should be zero.
+
+ * rational.c (nurat_div): divided by float zero should be
+ infinity. [ruby-core:31626]
+
+Fri Aug 6 18:59:23 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * file.c (realpath_rec): rb_str_modify depends on the length, so
+ resize instead.
+
+Fri Aug 6 18:56:14 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * Makefile.in (clean-ext): fixed directories to be removed.
+
+Fri Aug 6 17:42:12 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * enc/depend: add space at the beginning of @ignore_error.
+
+ * lib/mkmf.rb: ditto.
+
+Fri Aug 6 17:38:33 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * common.mk (clean): add prelude.c, config.log, and rbconfig.rb.
+
+ * common.mk (distclean): remove encdb.h, config.log, and rbconfig.rb.
+
+Fri Aug 6 17:35:24 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * Makefile.in: ignore error from RMDIRS.
+
+ * enc/depend: ditto.
+
+ * lib/mkmf.rb: ditto.
+
+Fri Aug 6 05:53:32 2010 Tanaka Akira <akr@fsij.org>
+
+ * ext/pathname/pathname.c (path_mtime): Pathname#mtime translated from
+ pathname.rb.
+
+Thu Aug 5 22:09:30 2010 Tanaka Akira <akr@fsij.org>
+
+ * ext/pathname/pathname.c (path_ctime): Pathname#ctime translated from
+ pathname.rb.
+
+Thu Aug 5 21:20:31 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * compile.c (NODE_ARGSCAT, NODE_ARGSPUSH): drop unused ARGSCAT
+ results when poped is true. [ruby-dev:41933], [Bug #3658]
+ This is retry of r28870 and r28873 which were reverted.
+
+Thu Aug 5 20:13:49 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * README.EXT, README.EXT.ja (String functions): mention
+ rb_str_resize and rb_str_set_len.
+
+Thu Aug 5 19:59:55 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * string.c (rb_str_set_len): bail out when buffer overflowed
+ probably.
+
+Thu Aug 5 18:36:11 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * complex.c (nucomp_marshal_load): should check the argument.
+ [ruby-core:31622]
+
+ * rational.c (nurat_marshal_load): ditto
+
+ * marshal.c (w_float): should not append a dot if no fractal part
+ exists. [ruby-dev:41936]
+
+Thu Aug 5 17:11:43 2010 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * parse.y (void_expr_gen): add 'possibly' to warning message.
+ [ruby-core:31611]
+
+Thu Aug 5 16:57:20 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * dir.c (glob_make_pattern): fold continuous PLAINs to get rid of
+ snail at too deep path. [ruby-dev:41871]
+
+Thu Aug 5 16:42:41 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * string.c (rb_str_set_len): should fail to modify shared string.
+
+Thu Aug 5 14:12:44 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ruby.c (ruby_init_loadpath_safe): ensure sopath to be modifiable
+
+Thu Aug 5 12:39:14 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * string.c (str_make_independent_expand): fix buffer overflow
+ while shrinking.
+
+Thu Aug 5 06:42:31 2010 Tanaka Akira <akr@fsij.org>
+
+ * file.c (realpath_rec): call rb_str_modify before rb_str_set_len.
+
+Wed Aug 4 19:37:00 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * string.c (rb_str_set_len): rb_str_modify cannot work before the
+ length is set, which is a precondition for rb_str_modify.
+
+Wed Aug 4 15:47:21 2010 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * lib/mkmf.rb (create_makefile): no need to create the directory
+ at each library file. this change makes making ext faster.
+
+Wed Aug 4 06:25:04 2010 Tanaka Akira <akr@fsij.org>
+
+ * ext/pathname/pathname.c (path_atime): Pathname#atime translated from
+ pathname.rb.
+
+Tue Aug 3 21:16:03 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * random.c (Init_Random): add Random::DEFAULT.
+
+Tue Aug 3 21:01:10 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * hash.c (rb_check_hash_type): added.
+
+Tue Aug 3 20:30:16 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * bignum.c (rb_big_eq): never equal to infinity.
+ [ruby-core:31603]
+
+ * rational.c (nurat_div): hack for integral float divisor.
+
+Tue Aug 3 14:42:12 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * ext/extmk.rb: remove purelib, fixes a bug in r28440, r28441.
+
+ * spec/default.mspec: ditto.
+
+ * template/Doxyfile.tmpl: ditto.
+
+Tue Aug 3 14:19:42 2010 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * lib/rdoc/ri/driver.rb (setup_pager): no need to check the existence
+ of pagers. the following code checks whether they are executable or
+ not.
+
+Tue Aug 3 12:03:57 2010 URABE Shyouhei <shyouhei@ruby-lang.org>
+
+ * tool/runruby.rb: no purelib.
+
+Tue Aug 3 07:52:20 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/purelib.rb: no longer used since the default load path of
+ miniruby is empty.
+
+Tue Aug 3 00:53:47 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * insns.def, vm_core.h: fixed typo. reported by Rocky Bernstein
+ <rockyb AT rubyforge.org> at [ruby-core:31596].
+
+Mon Aug 2 21:51:16 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ruby.c (ruby_init_loadpath_safe): rb_str_set_len modifies ptr
+ since r26303.
+
+Mon Aug 2 21:16:03 2010 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+
+ * ext/win32ole/win32ole.c: NONAMELESSUNION defined only if gcc
+ version is older than 3.4.4. [ruby-core:31567] [Bug #3637]
+ * ext/win32ole/extconf.rb: ditto.
+
+Mon Aug 2 16:34:32 2010 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * thread_win32.c (native_thread_join): need to wait thread, of course.
+ [ruby-dev:41911]
+
+Mon Aug 2 12:22:22 2010 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * file.c (file_expand_path): wrong condition. [ruby-core:31591]
+
+Mon Aug 2 05:34:48 2010 Tanaka Akira <akr@fsij.org>
+
+ * ext/pathname/pathname.c (path_realdirpath): Pathname#realdirpath
+ translated from pathname.rb.
+
+Sun Aug 1 23:04:49 2010 Tanaka Akira <akr@fsij.org>
+
+ * lib/pp.rb: describe superclasses explicitly.
+
+Sun Aug 1 23:04:35 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * string.c (rb_str_modify_expand, rb_str_resize): get rid of
+ repeating malloc and realloc.
+
+Sun Aug 1 22:16:30 2010 Kenta Murata <mrkn@mrkn.jp>
+
+ * ext/bigdecimal/bigdecimal.c (BigDecimal_hash): use rb_memhash and
+ take care of negative finite numbers properly.
+ [ruby-core:31582][Bug #3640]
+
+Sun Aug 1 20:57:22 2010 Tanaka Akira <akr@fsij.org>
+
+ * ext/pathname/pathname.c (path_realpath): Pathname#realpath translated
+ from pathname.rb.
+
+Sun Aug 1 17:27:32 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * win32/Makefile.sub: needs stddef.h for size_t. a patch from
+ Akio Tajima at [ruby-dev:41905].
+
+Sun Aug 1 14:59:04 2010 Tanaka Akira <akr@fsij.org>
+
+ * ext/pathname/pathname.c (path_sub_ext): Pathname#sub_ext translated
+ from pathname.rb.
+
+Sun Aug 1 10:23:48 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * lib/irb/init.rb (IRB.parse_opts): set VERBOSE to true when debug
+ switch called in irb. a patch from Andrew Grimm in
+ [ruby-core:31558].
+
+Sun Aug 1 09:35:35 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * bignum.c (big_op): comparison of bignum and infinity has returned 1
+ or -1, but it must return boolean.
+
+Sun Aug 1 09:44:25 2010 Tanaka Akira <akr@fsij.org>
+
+ * class.c (rb_include_module): don't clear the method cache if the
+ included module has no method.
+ reported by Eric Wong. [ruby-core:31559]
+
+Sun Aug 1 09:21:32 2010 Tanaka Akira <akr@fsij.org>
+
+ * ext/pathname/pathname.c (path_sub): Pathname#sub translated
+ from pathname.rb.
+
+Sun Aug 1 09:12:50 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * include/ruby/win32.h: latest x86_64 mingw defines stati64.
+ [ruby-core:27516]
+
+Sun Aug 1 08:51:52 2010 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+
+ * ext/win32ole/win32ole.c: fix typo. [ruby-core:31564][Bug #3636]
+
+Sat Jul 31 23:15:27 2010 Tanaka Akira <akr@fsij.org>
+
+ * ext/pathname/pathname.c (path_inspect): Pathname#inspect translated
+ from pathname.rb.
+
+Sat Jul 31 15:50:03 2010 Tanaka Akira <akr@fsij.org>
+
+ * ext/pathname/pathname.c (Init_pathname): The alias,
+ Pathname#to_path, is translated from pathname.rb.
+
+Sat Jul 31 09:12:36 2010 Tanaka Akira <akr@fsij.org>
+
+ * ext/pathname/pathname.c (path_to_s): Pathname#to_s translated
+ from pathname.rb.
+
+Sat Jul 31 08:20:07 2010 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * lib/webrick/ssl.rb (WEBrick::Utils.create_self_signed_cert):
+ merged r28784 from ruby_1_8: wrongly created dummy SSL certificate
+ with version == 3 (no such version) and serial == 0 (must be >0).
+
+Fri Jul 30 21:43:55 2010 Tanaka Akira <akr@fsij.org>
+
+ * ext/pathname/pathname.c (path_hash): Pathname#hash translated
+ from pathname.rb.
+
+Fri Jul 30 12:42:02 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/net/imap.rb (example): use IO#noecho to read password if
+ possible, and defer until needed. [ruby-dev:41889]
+
+ * lib/net/imap.rb (example): support starttls option.
+ [ruby-dev:41888]
+
+Fri Jul 30 08:51:51 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * file.c (file_expand_path): home directory must be absolute.
+ [ruby-core:31537]
+
+Fri Jul 30 08:33:20 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * file.c (file_expand_path): should check if could find user.
+ [ruby-core:31538]
+
+Fri Jul 30 07:59:53 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * util.c (ruby_add_suffix): fixed a bug returning uninitialized
+ value.
+
+Fri Jul 30 07:48:04 2010 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/extconf.rb: use TK_XINCLUDES on tkConfig.sh when not empty,
+ even if MacOS X Aqua version [ruby-dev:41883].
+
+Thu Jul 29 22:28:35 2010 Tanaka Akira <akr@fsij.org>
+
+ * ext/pathname/pathname.c (path_cmp): Pathname#<=> translated
+ from pathname.rb.
+
+Thu Jul 29 06:51:30 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * common.mk (EXT_SRCS): add ext/json/parser/parser.c.
+
+Thu Jul 29 05:52:15 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * file.c (rb_file_s_basename): pass baselen to rmext.
+
+Thu Jul 29 02:38:09 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * configure.in: not [freebsd] but [freebsd*] for AS_CASE.
+
+Wed Jul 28 22:23:59 2010 Tanaka Akira <akr@fsij.org>
+
+ * ext/pathname/pathname.c (path_eq): Pathname#{==,===,eql?} translated
+ from pathname.rb.
+
+Wed Jul 28 19:37:33 2010 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/Makefile.sub (config.h): VC6 or later have stddef.h.
+
+ * include/ruby/missing.h: need to include stddef.h for size_t.
+
+ * include/ruby/missing.h: shouldn't declare as dllimport when building
+ ruby itself (for Windows).
+
+Wed Jul 28 17:11:48 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * missing/*.c: include missing.h
+
+Wed Jul 28 09:38:03 2010 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * cont.c: typos.
+
+Wed Jul 28 09:24:43 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * cont.c: (RB_PAGE_SIZE): renamed from PAGE_SIZE. [ruby-dev:41870]
+
+ * cont.c: (RB_PAGE_MASK): renamed from PAGE_MASK.
+
+Tue Jul 27 23:09:09 2010 Tanaka Akira <akr@fsij.org>
+
+ * ext/pathname/pathname.c (path_taint): use rb_obj_taint.
+ (path_untaint): Pathname#untaint translated from
+ pathname.rb.
+
+Tue Jul 27 18:59:15 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/mkmf.rb (have_framework): added.
+
+Tue Jul 27 18:33:42 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * defines.h, intern.h, missing.h, ruby.h, st.h, util.h: include
+ config.h and defines.h for autoconf macros.
+
+Tue Jul 27 16:27:38 2010 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * numeric.c (flo_cmp): typo.
+
+Tue Jul 27 16:09:12 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * class.c, compile.c, dir.c, file.c, iseq.c, parse.y, random.c:
+ clean unused-value warnings.
+
+ * cont.c, process.c, vm_exec.h: clean cast warnings.
+
+Mon Jul 26 22:34:37 2010 Tanaka Akira <akr@fsij.org>
+
+ * ext/pathname/pathname.c (path_taint): Pathname#taint translated from
+ pathname.rb.
+
+Mon Jul 26 18:18:09 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (config.h): add include guard.
+
+ * win32/Makefile.sub, bcc32/Makefile.sub (config.h): ditto.
+
+Mon Jul 26 14:38:06 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (XCFLAGS): missing.h needs config.h.
+
+Mon Jul 26 14:08:47 2010 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * include/ruby/missing.h: revert a part of r28727. config.h is expected
+ to include only once, before including defines.h.
+ including it here breaks some macro definitions.
+
+Mon Jul 26 13:52:25 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * configure.in: define BROKEN_CLOSE only on FreeBSD.
+ This needs to merge to 1.9.2.
+
+Mon Jul 26 13:01:25 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * vm.c (rb_thread_mark): should mark iseq itself other than normal
+ iseq. [ruby-dev:41880]
+
+Mon Jul 26 11:51:01 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * configure.in: define BROKEN_CLOSE on FreeBSD.
+ This fixes build failure on MSVC. [ruby-core:31481]
+
+ * include/ruby/ruby.h, include/ruby/missing.h:
+ use BROKEN_CLOSE for replacing close(2).
+
+Mon Jul 26 09:51:20 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * vm.c (rb_thread_mark): mark only self of normal iseqs, not
+ nodes. [ruby-dev:41874]
+
+Sun Jul 25 05:37:20 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * numeric.c (flo_cmp): honor the result of infinite? method of the
+ other. [ruby-core:31470]
+
+ * test/ruby/envutil.rb (EnvUtil#.suppress_warning): added.
+
+ * test/ruby/test_float.rb (TestFloat#test_Float): suppress
+ warnings under --verbose.
+
+Fri Jul 23 16:07:32 2010 Shugo Maeda <shugo@ruby-lang.org>
+
+ * lib/mutex_m.rb (sleep): added Mutex_m#sleep to support
+ ConditionVariable.
+
+Fri Jul 23 15:09:22 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (RUBY_MINGW32): ignore msvc suffix.
+
+ * configure.in (RUBY_TRY_CFLAGS): try with werror turned on.
+
+Fri Jul 23 09:02:43 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * re.c (rb_reg_expr_str): fixed out-of-boundary access at invalid
+ multibyte characters.
+
+Fri Jul 23 09:00:05 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (XCFLAGS): reverted mistakenly removed option.
+ [ruby-dev:41872]
+
+ * include/ruby/missing.h: needs ruby/config.h.
+
+Thu Jul 22 20:58:55 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (RUBY_EXTERN): unnecessary after all.
+
+Thu Jul 22 17:33:47 2010 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * complex.c (nucomp_to_i): allow complex with imaginary zero to be
+ converted.
+
+ * complex.c (nucomp_to_f, nucomp_to_r): ditto.
+
+Thu Jul 22 20:12:56 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * thread_pthread.c (get_stack): fix memory leak; pthread_attr_destroy
+ must be called even when pthread_getattr_np is used.
+ [ruby-core:31269]
+
+Thu Jul 22 16:27:41 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * re.c (rb_reg_expr_str): fix broken Regexp#inspect when it
+ is ASCII-8BIT and non-ASCII character.
+ The length of character should be from original byte string.
+ [ruby-core:31431]
+
+Thu Jul 22 14:30:17 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * include/ruby/missing.h: add prototype for ruby_close().
+
+Thu Jul 22 12:58:12 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (RUBY_EXTERN): ignore invalid attribute.
+
+ * configure.in: fix for older autoconf.
+
+Thu Jul 22 12:02:31 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * include/ruby/{intern,io}.h: add missing prototypes.
+
+Thu Jul 22 06:38:18 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (XCFLAGS): use -fvisibility=hidden if possible.
+
+ * configure.in (RMDIR): use --ignore-fail-on-non-empty if possible.
+
+ * configure.in (RUBY_EXTERN): FUNCTION-BODY was missing.
+
+Thu Jul 22 03:02:55 2010 Eric Hodel <drbrain@segment7.net>
+
+ * README.EXT: fix signature of rb_ensure and rb_rescue to match
+ implementation.
+
+Wed Jul 21 23:07:11 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * template/fake.rb.in: get rid of embedding an absolute path.
+
+Wed Jul 21 15:22:17 2010 Evan Phoenix <evan@fallingsnow.net>
+
+ * lib/rubygems/custom_require.rb, gem_prelude.rb: Load code from
+ from gems properly.
+
+Wed Jul 21 15:15:02 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * sprintf.c: add short documentation about named reference.
+ [ruby-core:31294]
+
+Wed Jul 21 15:00:19 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (local_push_gen): disable unused variable warnings in
+ eval. [ruby-dev:41869]
+
+Wed Jul 21 13:57:37 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * vm_method.c (rb_method_boundp): revert r28543, r28564.
+ They may be merged in Ruby 2.0. [ruby-core:31217]
+
+Wed Jul 21 13:37:35 2010 Marc-Andre Lafortune <ruby-core@marc-andre.ca>
+
+ * lib/uri/common.rb: Have URI#route_to, URI#route_from accept
+ string-like arguments [ruby-core:30961]
+
+ * lib/uri/generic.rb: ditto for URI.join, URI#merge
+
+Wed Jul 21 12:39:15 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * lib/cmath.rb (CMath#cbrt): cbrt should accept a negative real
+ numbers. [ruby-core:31234]
+
+Wed Jul 21 12:31:30 2010 Marc-Andre Lafortune <ruby-core@marc-andre.ca>
+
+ * lib/uri/common.rb: Have URI() and URI.join accept URI objects in
+ addition to strings. [ruby-core:30960]
+
+Wed Jul 21 11:55:06 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * util.c (ruby_hdtoa): renamed from BSD__hdtoa.
+
+Tue Jul 20 11:35:11 2010 Evan Phoenix <evan@ruby-lang.org>
+
+ * lib/rubygems.rb: Load the custom require if --disable-rubygems
+ was used.
+
+Tue Jul 20 11:27:18 2010 Evan Phoenix <evan@ruby-lang.org>
+
+ * gem_prelude.rb: Pull in rubygem's custom require
+
+ * lib/rubygems.rb: Handle always having custom require available
+
+Tue Jul 20 18:39:18 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * include/ruby/ruby.h (RSTRING_GETMEM): new macro to get ptr and
+ len at once.
+
+ * string.c (rb_str_cmp, str_eql, rb_str_eql): trivial improvements.
+
+Tue Jul 20 18:23:04 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/fiddle/closure.c (closure_data_type),
+ ext/fiddle/function.c (function_data_type): rb_data_type_t has
+ changed.
+
+Tue Jul 20 14:21:38 2010 Narihiro Nakamura <authorNari@gmail.com>
+
+ * gc.c: don't call after_gc_sweep() after when garbage_collect()
+ was called, because rb_sweep_method_entry() free live unlinked
+ method entries. [ruby-core:31169]
+
+Tue Jul 20 12:42:06 2010 URABE Shyouhei <shyouhei@ruby-lang.org>
+
+ * ext/socket/raddrinfo.c (rb_getaddrinfo): according to my
+ valgrind output this variable should be initialized beforehand.
+
+Tue Jul 20 12:50:37 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * io.c (io_flush_buffer): write and buffer operations should be
+ monolithic. [ruby-core:31348]
+
+Tue Jul 20 12:27:56 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/fileutils.rb (FileUtils::Entry_#copy): check file name
+ separator boundary. [ruby-core:31360]
+
+Mon Jul 19 18:34:12 2010 Tanaka Akira <akr@fsij.org>
+
+ * ext/pathname/pathname.c (get_strpath): check the type.
+ (path_initialize): bypass to_path call for T_STRING.
+ (path_freeze): implemented.
+
+ * ext/pathname/lib/pathname.rb (Pathname#freeze): removed.
+
+Mon Jul 19 12:33:29 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * array.c (rb_ary_clear): should not unshare embedded array, and
+ should make unshared array embedded.
+
+Mon Jul 19 09:00:58 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * NEWS (Kernel#instance_eval): add an incompatible change since
+ the 1.9.1 release. [ruby-core:31336]
+
+Mon Jul 19 05:46:09 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * include/ruby/ruby.h (rb_data_type_t): add new feature macros.
+
+Sun Jul 18 21:20:11 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * array.c (rb_ary_clear): no need to duplicate buffer just before
+ clearing.
+
+Sun Jul 18 16:31:50 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * include/ruby/ruby.h (rb_data_type_t): restructured. [ruby-dev:41862]
+ add parent member.
+
+ * error.c (rb_typeddata_inherited_p): new function.
+
+Sun Jul 18 01:09:27 2010 Tanaka Akira <akr@fsij.org>
+
+ * ext/pathname/pathname.c (path_initialize): return a value.
+
+Sun Jul 18 00:02:19 2010 Tanaka Akira <akr@fsij.org>
+
+ * ext/pathname/lib/pathname.rb (Pathname#initialize): removed.
+
+ * ext/pathname/pathname.c (path_initialize): implemented.
+ (get_strpath): new function.
+ (set_strpath): ditto.
+
+Sat Jul 17 19:01:47 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/test/unit.rb (MiniTest::Unit#process_args): refactored.
+
+Sat Jul 17 18:30:05 2010 Tanaka Akira <akr@fsij.org>
+
+ * tool/file2lastrev.rb: don't depend on pathname.rb if File.realpath
+ is available.
+
+Sat Jul 17 14:10:20 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * util.c (ruby_add_suffix): fixed type warnings.
+
+Sat Jul 17 13:48:22 2010 Tanaka Akira <akr@fsij.org>
+
+ * ext/pathname/lib/pathname.rb: moved from lib/pathname.rb.
+ require pathname.so.
+
+ * ext/pathname/pathname.c: new file to define empty Pathname class.
+
+ * ext/pathname/extconf.rb: new file.
+
+Sat Jul 17 13:04:45 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * thread.c (rb_thread_wakeup_alive): split from rb_thread_wakeup.
+ merged from r13476. c.f. [ruby-core:31320]
+
+Sat Jul 17 10:07:52 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/test/unit.rb: MiniTest::Unit is different class from
+ Test::Unit, and install runner before loading test/minitest.
+
+Fri Jul 16 14:58:38 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/test/unit.rb (Test::Unit.setup_argv): run tests only when
+ any tests have not run.
+
+ * bin/testrb, test/runner.rb: use Test::Unit.start.
+
+Fri Jul 16 12:06:08 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * tool/rbinstall.rb (ext-arch): prune directories start with '-'.
+
+Thu Jul 15 21:43:35 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * numeric.c (fix_divide): must not use rb_rational_new1 for coercion
+ because it returns an argument itself when canonical mode is set.
+ [ruby-core:31279]
+
+Thu Jul 15 21:38:31 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * proc.c (bm_free): fix memory leak. [ruby-core:30869] [Bug #3466]
+
+Thu Jul 15 15:47:32 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * regexec.c (onig_search): don't skip non-ANYCHARs when
+ .* fails to match. This causes to fail matching
+ ANYCHAR_STAR with LOOK_BEHIND. This fix is workaround
+ and disable the optimization. [ruby-dev:41851]
+
+Thu Jul 15 06:11:29 2010 Aaron Patterson <aaron@tenderlovemaking.com>
+
+ * lib/rdoc/markup/attribute_manager.rb: fixing ri output when special
+ characters are inside html tags. Thanks Tomo Kazahaya! [Bug #3512]
+
+Thu Jul 15 06:01:42 2010 Tanaka Akira <akr@fsij.org>
+
+ * time.c (guess_local_offset): use the UTC offset of an older date on
+ 64bit time_t environment.
+
+Thu Jul 15 02:42:51 2010 Aaron Patterson <aaron@tenderlovemaking.com>
+
+ * lib/test/unit.rb (setup_argv): convert to using optparse, adding
+ --help and -I. [ruby-core:30154]
+
+Thu Jul 15 00:35:09 2010 Tanaka Akira <akr@fsij.org>
+
+ * time.c (localtime_with_gmtoff_zone): renamed from
+ localtime_with_gmtoff and return the timezone abbreviation name.
+ (guess_local_offset): return the isdst and timezone abbreviation name.
+ (localtimew): use the returned isdst and timezone abbreviation name.
+ [ruby-core:31275]
+
+Wed Jul 14 20:23:08 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (frame_func_id), vm_eval.c (rb_iterate),
+ vm_insnhelper.c (vm_yield_with_cfunc): as the name of a C-level
+ block, use the current method ID at the creation point.
+ [ruby-dev:41852]
+
+Wed Jul 14 18:18:05 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * regexec.c (match_at): add end point to enclen's argument.
+ This only effect on compiling with -DONIG_DEBUG_MATCH.
+
+Tue Jul 13 21:34:17 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/readline/readline.c: libedit is missing declaration of
+ rl_getc.
+
+Tue Jul 13 21:31:15 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * process.c (rb_daemon): split from proc_daemon.
+
+ * process.c (rb_fork_err): suppress gcc 4.4 warnings.
+
+ * random.c (fill_random_seed): ditto.
+
+Tue Jul 13 21:01:44 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/pty/pty.c (establishShell): chfunc must not raise any
+ exceptions.
+
+Tue Jul 13 20:58:57 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (RUBY_DEFAULT_ARCH): adjust for target
+ cpu. [ruby-core:31243]
+
+Tue Jul 13 20:46:00 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/dl/handle.c (rb_dlhandle_close): should not pass a dynamic
+ string to rb_raise directly.
+
+Tue Jul 13 12:04:57 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * missing/close.c: keep original errno.
+
+Mon Jul 12 01:58:56 2010 Marc-Andre Lafortune <ruby-core@marc-andre.ca>
+
+ * lib/csv.rb: Fix unused variable warnings.
+ Patch by Run Paint [ruby-core:30991]
+
+ * lib/date.rb: ditto
+
+ * lib/debug.rb: ditto
+
+ * lib/drb/drb.rb: ditto
+
+ * lib/drb/invokemethod.rb: ditto
+
+ * lib/irb/ruby-lex.rb: ditto
+
+ * lib/irb/slex.rb: ditto
+
+ * lib/logger.rb: ditto
+
+ * lib/pathname.rb: ditto
+
+Sun Jul 11 21:20:27 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * README.EXT{,.ja} (rb_block_call): fixed about third/fourth
+ arguments to the block. based on [ruby-core:31192] by Asher
+ Haig. [Bug #3558]
+
+Sun Jul 11 17:01:57 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * Makefile.in ({,dist-,real-}clean-ext): should also omit
+ semicolon when omitting "in WORDS" of FOR-statement.
+
+ * tool/rmdirs: ditto.
+
+Sun Jul 11 11:07:42 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * test/rdoc/test_rdoc_ri_driver.rb (test_formatter): add a test. a
+ patch from caleb clausen in [ruby-core:31182].
+
+Sat Jul 10 21:43:11 2010 Tanaka Akira <akr@fsij.org>
+
+ * strftime.c (rb_strftime_with_timespec): fix precision handling for
+ %:z and %::z.
+
+Fri Jul 9 22:32:54 2010 Tanaka Akira <akr@fsij.org>
+
+ * strftime.c: unused declarations removed.
+
+Fri Jul 9 21:20:22 2010 Tanaka Akira <akr@fsij.org>
+
+ * strftime.c (rb_strftime_with_timespec): clear colons at unknown
+ directive.
+
+Fri Jul 9 21:04:10 2010 Tanaka Akira <akr@fsij.org>
+
+ * strftime.c: don't call tzset. strftime.c doesn't depend on
+ the global timezone.
+
+Fri Jul 9 20:30:26 2010 Tanaka Akira <akr@fsij.org>
+
+ * time.c (find_time_t): 24:00 should be the beginning of the next
+ day even if the leap second, 23:59:60, exists.
+
+Fri Jul 9 01:08:46 2010 Aaron Patterson <aaron@tenderlovemaking.com>
+
+ * ext/psych/lib/psych/visitors/emitter.rb (initialize): line_width is
+ a valid option passed to the emitter.
+
+ * test/psych/test_psych.rb: corresponding tests.
+
+Fri Jul 9 00:49:46 2010 Aaron Patterson <aaron@tenderlovemaking.com>
+
+ * ext/psych/emitter.c (line_width, set_line_width): preferred line may
+ be set on the emitter.
+
+ * test/psych/test_emitter.rb: corresponding tests.
+
+Thu Jul 8 15:47:34 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * string.c (rb_str_conv_enc_opts): fix infinite loop because
+ of ISO-2022-JP conversion with empty string.
+ patched by Brian Buchanan [ruby-core:31107]
+
+Thu Jul 8 08:16:57 2010 Aaron Patterson <aaron@tenderlovemaking.com>
+
+ * ext/psych/lib/psych/visitors/yaml_tree.rb (push): adding version
+ and header emit options.
+
+ * test/psych/test_psych.rb: corresponding test.
+
+Thu Jul 8 08:01:03 2010 Aaron Patterson <aaron@tenderlovemaking.com>
+
+ * ext/psych/emitter.c: updating documentation about emit options
+
+ * ext/psych/lib/psych/core_ext.rb: ditto
+
+ * ext/psych/lib/psych.rb (dump): passing emit options to emitter.
+
+ * ext/psych/lib/psych/nodes/node.rb: ditto
+
+ * ext/psych/lib/psych/visitors/emitter.rb: sending emit options to
+ YAML emitter. [ruby-core:28318]
+
+Thu Jul 8 06:05:58 2010 Tanaka Akira <akr@fsij.org>
+
+ * strftime.c (rb_strftime_with_timespec): support %:z and %::z.
+ [ruby-dev:41841]
+
+Thu Jul 8 00:15:50 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * gem_prelude.rb: provide workaround for gem activation. Currently,
+ gem activation does not work by default. Now it can be worked
+ around by requiring "rubygems" first. [ruby-core:29486]
+ a patch from Evan Phoenix in [ruby-core:31096].
+
+ * lib/rubygems.rb: ditto.
+
+Wed Jul 7 10:01:34 2010 Adrian Bloomer <adrian.bloomer@gmail.com>
+
+ * numeric.c (fix_rev): Replaced fix_rev with '~num | FIXNUM_FLAG'.
+
+Wed Jul 7 13:22:20 2010 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * file.c (ruby_find_basename): set correct baselen.
+
+Wed Jul 7 13:02:59 2010 Akinori MUSHA <knu@iDaemons.org>
+
+ * vm_method.c (rb_method_boundp): respond_to?(:protected_method,
+ true) should return true. Pointed out by Marc-Andre Lafortune.
+ [ruby-dev:41837]
+
+Wed Jul 7 12:00:24 2010 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * file.c (ruby_find_basename): should initialize f.
+
+Wed Jul 7 11:44:01 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/zlib/zlib.c (gzfile_raise): add invalid header to
+ exceptions.
+
+Wed Jul 7 10:26:20 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * missing/close.c: ignore ECONNRESET.
+ FreeBSD wrongly sets ECONNRESET on close(2) and
+ it causes false-negative exceptions. [ruby-dev:41778]
+
+ * configure.in: ditto.
+Tue Jul 6 22:57:21 2010 Tanaka Akira <akr@fsij.org>
+
+ * io.c (nogvl_copy_stream_sendfile): jump to retry_sendfile directly
+ to avoid select() on a socket which TCP state is CLOSED.
+ patch by Eric Wong. [ruby-core:31053]
+
+Tue Jul 6 21:45:34 2010 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * io/console/console.c (winsize_row): should return actual screen
+ size, not buffer size.
+
+Tue Jul 6 08:35:58 2010 Aaron Patterson <aaron@tenderlovemaking.com>
+
+ * ext/dl/lib/dl/import.rb (handler): add a more helpful error message
+ when calling import_symbol or import_function without calling
+ dlload. Thanks nobu! [ruby-core:30996]
+
+Tue Jul 6 00:34:50 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * vm.c (thread_free): free altstack to prevent memory leak. a patch
+ from Tomoyuki Chikanaga in [ruby-dev:41815]. [Bug #3537]
+
+Tue Jul 6 00:29:27 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * string.c (NONASCII_MASK): NONASCII_MASK must be unsigned.
+ [ruby-dev:41782]
+
+Mon Jul 5 16:05:39 2010 Akinori MUSHA <knu@iDaemons.org>
+
+ * vm_method.c (rb_method_boundp): Return false for protected
+ methods when called from Kernel#respond_to?. [ruby-dev:40461]
+
+Mon Jul 5 12:32:01 2010 Aaron Patterson <aaron@tenderlovemaking.com>
+
+ * ext/psych/lib/psych/scalar_scanner.rb (parse_string): support
+ timezones that are not one hour off. [ruby-core:31023]
+
+ * ext/psych/lib/psych/visitors/yaml_tree.rb: ditto
+
+Sun Jul 4 22:49:54 2010 Tanaka Akira <akr@fsij.org>
+
+ * test/ruby/test_syntax.rb: split test_syntax from test_system.rb.
+
+Sun Jul 4 22:02:02 2010 Tanaka Akira <akr@fsij.org>
+
+ * test/ruby/test_system.rb (test_syntax): unified with test_syntax2.
+
+Sun Jul 4 21:00:39 2010 Tanaka Akira <akr@fsij.org>
+
+ * test/ruby/test_system.rb (test_syntax2): moved from sample/test.rb
+ [ruby-dev:41721]
+
+Sun Jul 4 17:13:14 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * io.c (swallow, prepare_getline_args, rb_io_getline_1): fix for
+ paragraph mode reading in non-ascii-compatible encoding.
+ [ruby-dev:41803]
+
+Sat Jul 3 16:14:10 2010 Kenta Murata <mrkn@mrkn.jp>
+
+ * ext/bigdecimal/bigdecimal.c (Init_bigdecimal): add two new constants
+ BigDecimal::INFINITY and BigDecimal::NAN.
+
+ * ext/bigdecimal/lib/bigdecimal/math.rb (BigMath.exp): modify the
+ behaviors for infinity arguments as same as Math.exp.
+
+Sat Jul 3 09:47:26 2010 Aaron Patterson <aaron@tenderlovemaking.com>
+
+ * ext/psych/lib/psych/visitors/to_ruby.rb(visit_Psych_Nodes_Scalar):
+ teaching Psych to deserialize DateTime objects. [Bug #1390]
+
+ * ext/psych/lib/psych/visitors/yaml_tree.rb(visit_DateTime): added a
+ method for serializing DateTime objects.
+
+ * ext/psych/lib/psych/scalar_scanner.rb(parse_time): add method for
+ parsing times objects from a string.
+
+ * test/psych/test_date_time.rb: tests for dumping DateTime objects.
+
+Sat Jul 3 09:13:55 2010 Aaron Patterson <aaron@tenderlovemaking.com>
+
+ * ext/psych/lib/psych/visitors/yaml_tree.rb (visit_Time): use
+ Time#nsec to accurately serialize time objects. [ruby-core:29233]
+
+Fri Jul 2 23:30:23 2010 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * io.c (argf_inplace_mode_set): prohibits an assignment of a tainted
+ value.
+
+ * file.c (ruby_find_basename, ruby_find_extname): split from
+ rb_file_s_basename() and rb_file_s_extname().
+
+ * util.c (ruby_add_suffix): support arbitrary length of the suffix
+ to get rid of the potential buffer overflow.
+ reported by tarui.
+
+Fri Jul 2 05:31:51 2010 Tanaka Akira <akr@fsij.org>
+
+ * numeric.c (rb_num2long): accept LONG_MAX < x < LONG_MAX+1 and
+ LONG_MIN-1 < x < LONG_MIN as well because they are converted
+ into the valid range of long by truncation.
+ (rb_num2ulong): accept ULONG_MAX < x < ULONG_MAX+1 and
+ LONG_MIN-1 < x < LONG_MIN as well.
+ (rb_num2ll): accept LLONG_MAX < x < LLONG_MAX+1 and
+ LLONG_MIN-1 < x < LLONG_MIN.
+
+Thu Jul 1 23:10:25 2010 James Edward Gray II <jeg2@ruby-lang.org>
+
+ * lib/csv.rb: Improving documentation.
+
+Thu Jul 1 22:15:01 2010 Tanaka Akira <akr@fsij.org>
+
+ * numeric.c (rb_num2ulong): fix the lower limit for float.
+ [ruby-dev:41361]
+
+Thu Jul 1 21:37:11 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * test/ruby/envutil.rb (EnvUtil#invoke_ruby): integrated with
+ runexec.
+
+Thu Jul 1 16:19:53 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * thread_pthread.c (thread_start_func_1): don't call
+ native_thread_init_stack(th) on cygwin to avoid the segv
+ introduced by r27789. Cygwin's signal implementation is half
+ baked so USE_SIGNALSTACK is not defined and it needs another
+ treatment.
+
+Thu Jul 1 13:00:54 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * common.mk (test-knownbug): ignore known bugs.
+
+Thu Jul 1 08:40:26 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * marshal.c (w_object): suppress empty instance variable entry on
+ compatible dump objects.
+
+Wed Jun 30 07:29:11 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * test/ruby/test_rubyoptions.rb (test_script_from_stdin): by using
+ a pipe, get rid of not-well-defined behavior after the child
+ process terminated in pty.
+
+Wed Jun 30 02:30:26 2010 Yutaka Kanemoto <kanemoto@ruby-lang.org>
+
+ * thread_pthread.c (get_stack): use pthread_getthrds_np() for AIX.
+
+ * configure.in: ditto.
+
+Tue Jun 29 21:11:15 2010 Masaya Tarui <tarui@ruby-lnag.org>
+
+ * ext/stringio/stringio.c (strio_write): add RB_GC_GUARD.
+
+Tue Jun 29 19:39:59 2010 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+
+ * test/win32ole/test_win32ole_method.rb (is_ruby64): check
+ ruby binary is mswin64 or mingw64. [ruby-dev:41756]
+
+Tue Jun 29 14:18:21 2010 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * file.c (rb_realpath_internal, realpath_rec): skip UNC share root
+ on DOSISH platforms.
+ http://pc12.2ch.net/test/read.cgi/tech/1272248179/600
+
+Tue Jun 29 11:52:33 2010 Narihiro Nakamura <authorNari@gmail.com>
+
+ * gc.c (unlink_heap_slot, slot_sweep): unlink heaps_slot of
+ heaps_slot linked list if heaps_slot is empty at slot_sweep.
+ fixed [ruby-dev:41543], [ruby-core:24894].
+
+Tue Jun 29 01:22:08 2010 Aaron Patterson <aaron@tenderlovemaking.com>
+
+ * ext/fiddle/fiddle.h: added FFI type detection to avoid bug in ffi
+ header files. Thanks Yugui! [ruby-core:30917]
+
+Mon Jun 28 22:14:22 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * test/rdoc/test_rdoc_ri_driver.rb (TestRDocRIDriver#test_formatter):
+ fix a test accordingly to r28455.
+
+Mon Jun 28 21:56:14 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * thread.c (rb_fd_resize, rb_fd_copy): avoid NULL dereference upon
+ failed realloc by using xrealloc instead of not realloc. a patch
+ from Jim Meyering <meyering at redhat.com> in [ruby-core:30920]
+ [Bug #3489]
+
+Mon Jun 28 20:32:33 2010 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+
+ * test/win32ole/test_win32ole_method.rb (test_offset_vtbl): check
+ that Ruby is 32bit or 64bit binary in order to get correct offset
+ value. [ruby-dev:41741]
+
+Mon Jun 28 05:32:51 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * lib/rdoc/ri/driver.rb (RDoc::RI::Driver#formatter): should use bs
+ format when stdout is piped. [ruby-core:30734]
+
+Mon Jun 28 03:12:03 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * bootstraptest/test_class.rb: add a test for [ruby-core:30843].
+
+Mon Jun 28 02:43:35 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * class.c (rb_mod_init_copy): when class is dup'ed, a metaclass of the
+ class should be attached to the dup'ed class, not the original
+ class. [ruby-core:30843] [Bug #3461]
+
+Sun Jun 27 23:31:17 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * include/ruby/io.h, io.c: reverted r21709.
+
+ * ruby.c (load_file_internal): nothing to read if EOF reached
+ while reading shebang. [ruby-core:30910]
+
+Sun Jun 27 13:25:07 2010 Tanaka Akira <akr@fsij.org>
+
+ * io.c (simple_sendfile): don't try to send data more than SSIZE_MAX
+ with single sendfile call..
+ based on the patch by Eric Wong. [ruby-core:30908]
+
+Sun Jun 27 10:41:38 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/rubygems/require_paths_builder.rb (write_require_paths_file_if_needed):
+ no reason that bin directory should be included in $LOAD_PATH.
+ it is for executable files, but not libraries. [ruby-core:25936]
+
+Sat Jun 26 13:07:09 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (enable-debug-env): option for RUBY_DEBUG env.
+
+Sat Jun 26 11:56:31 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * common.mk (clear-installed-list): put redirection before set
+ command, since it seems to be handled by nmake in special way.
+ [ruby-dev:41711]
+
+Sat Jun 26 10:08:36 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * test/ruby/envutil.rb (EnvUtil#invoke_ruby): no needs to copy the
+ original ENV, since it's done in spawn automatically.
+ [ruby-dev:41733]
+
+Sat Jun 26 08:44:22 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * NEWS (zlib): new methods. [ruby-dev:41706] [Bug #3472]
+
+Sat Jun 26 07:59:18 2010 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+
+ * test/win32ole/test_win32ole_method.rb (test_offset_vtbl): check
+ that OS is Windows 32bit or Windows 64bit in order to get
+ correct offset value.
+
+Sat Jun 26 04:39:12 2010 Masaya Tarui <tarui@ruby-lnag.org>
+
+ * ext/dl/lib/dl/func.rb (call): don't overwrite original arguments
+ to defend from GC.
+ * test/dl/test_func.rb (test_string): add test for above.
+
+Fri Jun 25 11:45:36 2010 James Edward Gray II <jeg2@ruby-lang.org>
+
+ * lib/csv.rb: Fixing a bug that prevented CSV from parsing
+ all multi-line fields correctly. Patch by Rob Biedenharn.
+
+Fri Jun 25 10:07:14 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * test/ruby/envutil.rb (Test::Unit::Assertions#assert_in_out_err):
+ return the exit status.
+
+ * test/ruby/envutil.rb (EnvUtil#invoke_ruby): change the
+ environment of spawned process only.
+
+ * test/ruby/envutil.rb (EnvUtil#invoke_ruby): get rid of possible
+ deadlock.
+
+Fri Jun 25 06:24:25 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/un.rb (httpd): MaxClients also should be integer.
+ [ruby-dev:41724] [Bug #3477]
+
+ * lib/un.rb (setup): fix of word splitting. [ruby-dev:41723]
+ [Bug #3476]
+
+Fri Jun 25 01:07:17 2010 Masaya Tarui <tarui@ruby-lnag.org>
+
+ * include/ruby/ruby.h (static inline rb_gc_guarded_ptr): prevent
+ RB_GC_GUARD_PTR being removed by optimization.
+
+Thu Jun 24 06:22:27 2010 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/raddrinfo.c (ruby_getaddrinfo__darwin): the workaround
+ for Mac OS X moved from rsock_getaddrinfo.
+
+Thu Jun 24 05:44:27 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * marshal.c (struct dump_arg, struct load_arg): merge taint and
+ untrust flags into infection as bit flags.
+
+ * marshal.c (w_nbyte, clear_dump_arg): infect the buffer as soon
+ as appending, because it might have been finalized already at
+ exit. based on a patch by Tomoyuki Chikanaga
+ at [ruby-dev:41672]. [Bug #3463]
+
+Wed Jun 23 23:49:21 2010 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/raddrinfo.c (str_is_number): renamed from str_isnumber to
+ avoid confusion to str_isnumber in ext/socket/getaddrinfo.c.
+
+Wed Jun 23 23:45:31 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * NEWS (stringio): new methods. [ruby-dev:41687] [Bug #3469]
+
+Wed Jun 23 22:52:00 2010 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/raddrinfo.c: don't use __P.
+
+Wed Jun 23 21:32:08 2010 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+
+ * ext/win32ole/win32ole.c (reg_get_typelib_file_path): try win64
+ registry entry at first. [ruby-dev:41674] [Bug #3464]
+
+Wed Jun 23 21:17:32 2010 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/raddrinfo.c (ruby_getaddrinfo__darwin): new workaround for
+ getaddrinfo problem on Mac OS X Snow Leopard. [ruby-core:29427]
+ patch by Wataru Kimura. [ruby-core:30842]
+
+Wed Jun 23 17:12:27 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * NEWS (ptr): new method and deprecated methods. [ruby-dev:41681]
+
+ * ext/pty/{README,README.ja}: ditto.
+
+ * ext/pty/pty.c (pty_check): add rdoc.
+
+Wed Jun 23 12:44:47 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * test/ruby/test_regexp.rb (test_dup_warn): read in UTF-8
+ encoding regardless environment.
+
+ * test/ruby/envutil.rb (invoke_ruby): add encoding option.
+
+Wed Jun 23 06:44:05 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (fchown): need to check. a patch by Eric Wong
+ at [ruby-core:30818].
+
+ * io.c (argf_next_argv): check for setting owner/group.
+
+Tue Jun 22 23:10:10 2010 Tanaka Akira <akr@fsij.org>
+
+ * time.c (num_exact): fix for mathn. [ruby-dev:41599]
+
+Tue Jun 22 22:00:06 2010 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/lib/socket.rb: suppress warnings.
+
+Tue Jun 22 21:33:23 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * test/optparse/test_summary.rb: fixed superclass so that it run
+ solely.
+
+Tue Jun 22 19:57:33 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (shadowing_lvar_gen): should add lvar to vars and
+ used. [ruby-dev:41666]
+
+Tue Jun 22 13:23:13 2010 Marc-Andre Lafortune <ruby-core@marc-andre.ca>
+
+ * lib/delegate.rb: Forward #trust, #untrust, #taint and #untaint
+ to both the delegator and __getobj__ [ruby-core:26138]
+
+Mon Jun 21 23:41:08 2010 wanabe <s.wanabe@gmail.com>
+
+ * eval_error.c (error_print): clear raised_flag while error-printing
+ to avoid hang. [ruby-core:27608]
+
+ * test/ruby/test_beginendblock.rb (test_endblock_raise): add test for
+ above.
+
+Sun Jun 20 16:17:24 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * id.c (Init_id): add underscore name.
+
+ * parse.y (warn_unused_var): ignore underscore name.
+
+ * parse.y (warn_unused_var): use same format as shadowing local
+ variable.
+
+ * parse.y (shadowing_lvar_gen): get rid of adding extra name for
+ shadowing local variable. [ruby-dev:41628]
+
+Sat Jun 19 11:11:37 2010 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/irb.rb: remove double exclamation marks. a patch from Diego
+ Viola. [ruby-core:30589]
+
+Sat Jun 19 03:35:58 2010 Aaron Patterson <aaron@tenderlovemaking.com>
+
+ * ext/psych/lib/psych/visitors/to_ruby.rb (resolve_klass): fix the
+ exception message when attempting to load an unknown class. Thanks
+ nobu! [ruby-dev:41399]
+
+ * test/psych/test_psych.rb: test for the exception message
+
+Fri Jun 18 10:37:46 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * gc.c (gc_lazy_sweep): clean a warning.
+ "suggest parentheses around assignment used as truth value"
+
+ * transcode_data.h (getGB4bt1): clean a warning.
+ "suggest parentheses around arithmetic in operand of |"
+
+ * transcode_data.h (getGB4bt3): ditto.
+
+ * vm.c (thread_free): clean a warning. "format 'p' expects type
+ 'void *', but argument 3 has type 'struct rb_mutex_struct *'"
+
+Fri Jun 18 10:15:12 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * ruby.c: add prototype of rb_realpath_internal.
+
+ * load.c: ditto.
+
+Fri Jun 18 01:50:21 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * object.c: Object#public_methods, private_methods, etc. returns
+ method ids that belong to the class or the singleton class(es) of
+ the object. [ruby-dev:41613]
+
+ * class.c: on the other hand, Module#public_instance_methods, etc.
+ returns method ids that belong to the module itself (even if the
+ module is singleton, it does not return method ids of super
+ class(es); see [ruby-core:28837]).
+
+Fri Jun 18 01:22:55 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * lib/webrick/httpservlet/filehandler.rb
+ (prevent_directory_traversal): apply filesystem encoding to path
+ only during calling File.expand_path. [ruby-dev:41423]
+
+Thu Jun 17 23:20:14 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * load.c (rb_load_internal): remove call to rb_realpath_internal
+ within rb_load_internal which caused big performance degradation.
+ Instead, call rb_realpath_internal in the caller of
+ rb_load_internal. [ruby-dev:41502] [ruby-dev:41610]
+
+ * vm.c (rb_vm_call_cfunc): ditto.
+
+ * eval_intern.h (rb_vm_call_cfunc): ditto.
+
+ * ruby.c (process_options): ditto.
+
+Thu Jun 17 18:37:47 2010 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * file.c (rb_str_encode_ospath): when the encoding of the parameter
+ is ASCII-8BIT, should recognize as filesystem encoding, and convert
+ to UTF-8 on Windows.
+
+ * file.c (realpath_rec): should convert to ospath encoding before
+ calling lstat().
+
+ * file.c (rb_realpath_internal): resolved string should take over
+ the encoding of base string.
+
+ * transcode.c (rb_str_encode): should return new string always.
+ fixed #3444.
+
+Wed Jun 16 18:34:54 2010 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * parse.y: ripper needs warn_unused_var(), too.
+
+Wed Jun 16 18:20:00 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (warn_unused_var): warn unused variables.
+ [ruby-dev:41620]
+
+Wed Jun 16 15:40:53 2010 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * error.c (rb_bug): existence of _set_abort_behavior() depends on
+ runtime version, not compiler version.
+
+Wed Jun 16 01:38:40 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * ext/fiddle/extconf.rb: check ffi.h even when pkg-config succeeded.
+ On Debian/lenny, which is a "supported" platform, ffi.h is installed
+ in /usr/include/i486-linux-gnu/. This causes build error when using
+ gcc whose target is not i486-linux-gnu.
+
+Wed Jun 16 00:04:38 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * test/ruby/test_io.rb (safe_4): does not use Timeout because
+ Timeout.timeout uses Thread#kill which raises SecurityError when
+ $SAFE == 4. based on a patch from Tomoyuki Chikanaga.
+ [ruby-dev:41484]
+
+ * test/ruby/test_io.rb (test_print_separators): use pipe (test helper
+ method) instead of IO.pipe. [ruby-dev:41484]
+
+Tue Jun 15 17:14:58 2010 WATANABE Hirofumi <eban@ruby-lang.org>
+
+ * ext/fiddle/extconf.rb: De Morgan's laws.
+
+Tue Jun 15 12:09:00 2010 WATANABE Hirofumi <eban@ruby-lang.org>
+
+ * ext/fiddle/extconf.rb: use pkg_config to find ffi.h.
+
+Tue Jun 15 02:31:27 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * Makefile.in, common.mk (clean-ext, clean-enc): clean up cleaning
+ targets.
+
+Mon Jun 14 22:36:09 2010 Tanaka Akira <akr@fsij.org>
+
+ * test/socket/test_socket.rb (test_udp_server): rescue Errno::ENOSYS
+ for Windows.
+
+ * test/socket/test_nonblock.rb (test_sendmsg_nonblock_error): ditto.
+
+ [ruby-dev:41597] reported by Masaya Tarui.
+
+Mon Jun 14 17:44:39 2010 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
+
+ * lib/drb/drb.rb: raise DRbConnError instead of ArgumentError if too
+ many arguments. [ruby-dev:41481]
+
+ * test/drb/test_drb.rb: ditto.
+
+ * test/drb/drbtest.rb: ditto.
+
+Mon Jun 14 04:03:55 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * ext/fiddle/closure.c (dealloc): refix workaround r28300.
+ don't use ffi_closure_alloc, ffi_prep_closure_loc and
+ ffi_closure_free on MACOSX and __linux__.
+ [ruby-dev:41483] [ruby-dev:41214]
+
+Sun Jun 13 15:46:07 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * test/ruby/test_rubyoptions.rb: add a simple test for __END__ and
+ DATA.
+
+Sun Jun 13 04:24:18 2010 Marc-Andre Lafortune <ruby-core@marc-andre.ca>
+
+ * lib/delegate.rb: Delegate !=, eql? and hash [ruby-core:26139]
+
+Sun Jun 13 02:12:46 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * enc/trans/utf8_mac.trans (buf_apply): fix for patterns
+ whose result is 2 bytes. [ruby-core:30751]
+
+Sun Jun 13 01:38:17 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * time.c (rb_localtime_r2): fix mixed declarations and code.
+
+Sun Jun 13 00:27:24 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * ext/dl/lib/dl.rb: don't require when already loaded.
+
+Sun Jun 13 00:02:56 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * ext/fiddle/closure.c (dealloc): workaround fix for libffi's
+ ffi_closure_free. [ruby-dev:41483] [ruby-dev:41214]
+
+Sat Jun 12 10:02:26 2010 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * io.c (rb_f_syscall): should check argument string taint before
+ invoking system calls.
+
+Sat Jun 12 09:18:31 2010 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * variable.c (uninitialized_constant): process through
+ rb_class_real() to remove "Object::" from error message.
+ [ruby-dev:40951]
+
+Sat Jun 12 00:38:37 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * ext/dbm/extconf.rb: accept Berkley DB version 3, 4 and 5.
+ a patch from Takahiro Kambe. [ruby-dev:41531]
+
+Fri Jun 11 23:21:35 2010 Tanaka Akira <akr@fsij.org>
+
+ * time.c (init_leap_second_info): check the result of
+ gmtime_with_leapsecond.
+
+Fri Jun 11 23:04:59 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * ext/openssl/ossl_ssl.c (ossl_sslctx_get_ciphers):
+ use sk_SSL_CIPHER_num and sk_SSL_CIPHER_value instead of cast.
+ patched by Takahiro Kambe [ruby-dev:41530]
+
+Fri Jun 11 22:59:31 2010 Tanaka Akira <akr@fsij.org>
+
+ * include/ruby/missing.h (isnan): fix compilation error on OpenBSD.
+
+Fri Jun 11 22:39:50 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * lib/rubygems/install_update_options.rb
+ (Gem::InstallUpdateOptions#add_install_update_options): deprecate
+ --test option which has not worked. [ruby-core:21714]
+
+ * test/rubygems/test_gem_command_manager.rb: ditto.
+
+Fri Jun 11 07:34:25 2010 Tanaka Akira <akr@fsij.org>
+
+ * time.c (find_time_t): test the result of LOCALTIME.
+
+Fri Jun 11 00:42:45 2010 Tanaka Akira <akr@fsij.org>
+
+ * time.c (rb_localtime_r2): fix localtime overflow check.
+
+Thu Jun 10 23:05:44 2010 Tanaka Akira <akr@fsij.org>
+
+ * time.c (rb_localtime_r2): refine localtime overflow check for
+ FreeBSD 6.4.
+
+Thu Jun 10 09:10:08 2010 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * io.c (rb_io_putc): documentation updated to mention putc would
+ not work well with multi-byte characters. [ruby-core:30697]
+
+ * io.c (rb_f_putc): ditto.
+
+Wed Jun 9 22:51:50 2010 Tanaka Akira <akr@fsij.org>
+
+ * time.c (find_time_t): always outerpolate from past.
+ [ruby-core:30672] reported by Benoit Daloze.
+
+Wed Jun 9 22:13:08 2010 Tanaka Akira <akr@fsij.org>
+
+ * time.c (calc_tm_yday): extracted from timegmw_noleapsecond.
+
+Tue Jun 8 06:27:09 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * gem_prelude.rb: load full rubygems at LoadError for activation
+ check. [ruby-core:29486]
+
+Tue Jun 8 06:04:49 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * io.c (parse_mode_enc): set set_by_bom bit. [ruby-core:30641]
+
+Sun Jun 6 22:37:11 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * string.c (rb_str_buf_cat_escaped_char): get rid of buffer
+ overflow on platforms int is bigger than 32bit, and warnings.
+
+Sun Jun 6 19:55:21 2010 Tanaka Akira <akr@fsij.org>
+
+ * array.c (rb_ary_product): clear uninitialized elements in temporary
+ array.
+
+Sun Jun 6 12:31:57 2010 Narihiro Nakamura <authorNari@gmail.com>
+
+ * gc.c: set_heaps_increment is not
+ called before gc_marks of lazy sweeping because live_num not
+ contain finalize objects. So call set_heaps_increment after lazy
+ sweeping if free_num are not enough. And move free_min to struct
+ rb_objspace for above. [ruby-dev:41499]
+
+Sun Jun 6 10:44:34 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * array.c (rb_ary_product): need to set the length in order to get
+ the entries marked. [ruby-dev:41540]
+
+Sun Jun 6 08:26:01 2010 Tanaka Akira <akr@fsij.org>
+
+ * vm.c (Init_BareVM): call Init_native_thread here.
+
+ * thread.c (Init_Thread): don't call Init_native_thread.
+
+ * thread_pthread.c (Init_native_thread): exported.
+
+ * thread_win32.c (Init_native_thread): ditto.
+
+ [ruby-dev:41536]
+
+Sun Jun 6 08:21:17 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * NEWS: Enumerable#join has been reverted. [ruby-core:30604]
+
+Sat Jun 5 20:30:49 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * re.c (rb_reg_expr_str): ASCII incompatible strings
+ must always escape or converted.
+
+ * re.c (rb_reg_expr_str): use rb_str_buf_cat_escaped_char
+ when resenc is given: for Regexp#inspect or error message.
+
+ * re.c (rb_reg_desc): add 'n' for ENCODING_NONE.
+
+Sat Jun 5 01:20:14 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * string.c (sym_inspect): Escape when the symbol is not
+ resulted encoding and not ascii_only. It had escaped
+ ascii-incompatible string, but it is wrong.
+
+Sat Jun 5 01:10:12 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * string.c (rb_str_buf_cat_escaped_char): defined.
+ Splited from rb_str_inspect.
+
+Sat Jun 5 16:39:13 2010 Tanaka Akira <akr@fsij.org>
+
+ * .gdbinit (rp): show type name for RTypedData.
+
+Sat Jun 5 15:59:08 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ruby.c (process_options, load_file_internal): $0 seen from
+ required libraries by -r option should be the main script.
+ [ruby-core:23717]
+
+Sat Jun 5 15:15:52 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * test/ruby/envutil.rb (EnvUtil#invoke_ruby): support for child
+ process env.
+
+Sat Jun 5 14:11:11 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * test/net/imap/test_imap.rb (test_exception_during_shutdown):
+ need to raise always.
+
+Sat Jun 5 13:13:30 2010 Marc-Andre Lafortune <ruby-core@marc-andre.ca>
+
+ * lib/matrix.rb (eql?, ==, minor): Fix bugs when comparing/returning
+ some empty matrices.
+
+Sat Jun 5 11:00:48 2010 Tanaka Akira <akr@fsij.org>
+
+ * error.c (rb_name_err_mesg_new): guard mesg, recv and method.
+ The problem in [ruby-dev:41464] is caused because mesg is collected.
+
+Sat Jun 5 10:03:31 2010 Tanaka Akira <akr@fsij.org>
+
+ * .gdbinit (rp): detect and show RTypedData.
+
+Sat Jun 5 08:30:42 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * file.c (rb_f_test): 'W' should test writable by real uid/git,
+ not world writable. [ruby-core:30587]
+
+Sat Jun 5 06:20:57 2010 Eric Hodel <drbrain@segment7.net>
+
+ * dir.c: Clarification of what '*' matches. Patch by John Wells
+ <john.wells at greatworx.com>
+
+Fri Jun 4 10:46:33 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/dl/cfunc.c (rb_dlcfunc_inspect): should taint the result.
+ [ruby-dev:41533]
+
+Fri Jun 4 09:37:15 2010 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * gc.c (gc_sweep): suppress a warning on VC, again.
+
+Thu Jun 3 23:34:55 2010 Akinori MUSHA <knu@iDaemons.org>
+
+ * ext/digest/lib/digest/hmac.rb: Emit a deprecation warning in
+ verbose mode and add a caution to the overview section of the
+ document. [ruby-dev:41525]
+
+Thu Jun 3 19:33:51 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/dl/cfunc.c (rb_dlcfunc_inspect): suppress warnings by
+ rb_sprintf.
+
+ * ext/dl/cptr.c (rb_dlptr_s_malloc): suppress warnings.
+
+Thu Jun 3 18:58:28 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * load.c (ruby_init_ext): statically linked extensions have no
+ real path. [ruby-dev:41526]
+
+ * vm.c (rb_vm_call_cfunc): add filepath argument.
+
+Thu Jun 3 18:17:45 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * test/rake/test_win32.rb (Rake::TestWin32): update tests.
+ [ruby-core:30309]
+
+ * test/io/nonblock/test_flush.rb (test_flush): try pipe and
+ socketpair. [ruby-dev:41517]
+
+Thu Jun 3 09:36:43 2010 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * ext/dl/dl.h (DLSTACK_TYPE): type of stack is same as VALUE.
+ reported by sakiyama shin in [ruby-dev:41514]
+
+Thu Jun 3 06:30:20 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * test/ruby/test_path.rb (test_path): workaround for drive
+ letter.
+
+ * test/ruby/test_path.rb (test_path): get rid of blocking on
+ access to non-existent host.
+
+Thu Jun 3 05:37:46 2010 Ryan Davis <ryand-ruby@zenspider.com>
+
+ * tool/rbinstall.rb (install-bin): Allow bin/* install from dot-dirs.
+ Fixes rvm and multiruby installations.
+
+Thu Jun 3 01:22:45 2010 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/tk.rb: fix typo and race condition.
+
+Thu Jun 3 00:58:45 2010 Aaron Patterson <aaron@tenderlovemaking.com>
+
+ * ext/dl/lib/dl/cparser.rb (parse_ctype): add backwards compatibility
+ by supporting "uint" types in the c parser. [ruby-core:29750]
+ * test/dl/test_cparser.rb: adding a test for "uint" changes.
+
+Wed Jun 2 11:40:02 2010 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * compile.c (iseq_compile_each): should consider block on stack,
+ if block argument is passed. [ruby-core:30534]
+
+ * parse.c (arg_concat_gen): should append to nd_head, not to
+ nd_iter for NODE_BLOCK_PASS.
+
+Tue Jun 1 23:12:06 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * re.c (unescape_nonascii): \P{FOO} is also Unicode property in
+ regexp. [ruby-core:30540]
+
+Tue Jun 1 21:29:39 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * lib/net/http.rb: adding support to rfc5789 patch verb.
+ Added a Net::HTTP::Patch class which expects a message body
+ and response body. It recycles the post method into a patch one,
+ that will send the encoded representation to the server.
+ Summarizing, a new class has been created, the post method
+ extracted into send_entity, including a new argument,
+ which defines which class to use (Post or Patch) and
+ finally a patch method was created. [ruby-core:30426]
+ Patched by Guilherme Silveira
+ <guilherme.silveira AT caelum.com.br>
+
+Tue Jun 1 03:46:08 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * ext/readline/extconf.rb: reject GPLv3 readline. [ruby-dev:39172]
+ [ruby-core:25272] [ruby-dev:39167] [ruby-core:28736]
+
+Tue Jun 1 01:14:31 2010 Masaya Tarui <tarui@ruby-lnag.org>
+
+ * io.c (pipe_open): add RB_GC_GUARD.
+ This caused failure when test/ruby/test_argf.rb is executed with
+ GC.stress = true in mswin32_90
+
+Mon May 31 23:44:22 2010 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/extconf.rb: use tclConfig.sh/tkConfig.sh when frameworks
+ are enabled on MacOS X.
+
+ * ext/tk/stubs.c: dirty hack for frameworks and stubs on MacOS X.
+
+ * ext/tk/lib/tk.rb: stop creating a dummy Tcl/Tk interpreter.
+ And hide a root window before starting eventloop. (for ruby 1.9)
+
+ * ext/tk/tcltklib.c: add codes to support Ruby/Tk-Kit (Rubykit).
+
+Mon May 31 21:49:42 2010 Tanaka Akira <akr@fsij.org>
+
+ * lib/resolv.rb (Resolv::DNS::Requester#request): rescue ECONNRESET
+ for Windows. reported by U.Nakamura. [ruby-dev:41477]
+
+Mon May 31 19:25:58 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * regparse.c (onig_syntax_warn): do not use external strings as
+ printf format.
+
+Mon May 31 18:22:23 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * misc/ruby-mode.el (ruby-mode-set-encoding): skip shebang line
+ always regardless of ruby.
+
+Mon May 31 15:07:18 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * file.c (file_expand_path): Refix r28102: this breaks
+ r28039. test for [ruby-dev:41429] is added. [ruby-core:30516]
+
+Mon May 31 14:47:09 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * string.c (rb_str_inspect): inspect as ASCII when the codepoint
+ of a character in Unicode string is ASCII printable one.
+
+Mon May 31 13:44:40 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * encoding.c (rb_enc_unicode_p): check the encoding is Unicode
+ or not by the name; not function's pointer. [ruby-dev:41479]
+
+Mon May 31 04:03:43 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * file.c (file_expand_path): check if expanded dname encoding is
+ compatible with fname, not just copying. [ruby-core:30516]
+
+ * test/ruby/test_beginendblock.rb (test_endblockwarn): needs
+ encoding comment.
+
+Mon May 31 02:17:54 2010 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * insns.def (defined): respond_to_missing? may not be available
+ (for BasicObject instances).
+
+Mon May 31 01:43:42 2010 Marc-Andre Lafortune <ruby-core@marc-andre.ca>
+
+ * lib/delegate: Delegator: combine (public|protected) methods with
+ those of the delegated object. [ruby-core:27224]
+ DelegateClass: combine (public|protected) instance methods
+ with those of the delegated superclass.
+
+Sun May 30 22:18:49 2010 Marc-Andre Lafortune <ruby-core@marc-andre.ca>
+
+ * lib/set.rb (keep_if, select!): New methods [ruby-core:29749]
+
+Sun May 30 21:51:59 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * test/rake/test_application.rb: update a test because of r28089.
+
+Sun May 30 21:48:07 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * lib/tempfile.rb (Tempfile#unlink): leave @data. Assigning nil to
+ @data caused double closing error of the same IO in finalizer. a
+ patch from Simon Nicholls. [ruby-core:29395]
+
+Sun May 30 18:47:15 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * ext/nkf/nkf-utf8/nkf.c: updated to b856dd07.
+ this cleans warnings.
+
+Sun May 30 18:25:55 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * load.c (load_failed): use more accurate error message.
+ [ruby-core:23851]
+
+Sun May 30 16:54:34 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * file.c (rb_file_directory_p): update rdoc. a patch from Ilkka
+ Laukkanen. [ruby-core:30016]
+
+Sun May 30 14:59:13 2010 Narihiro Nakamura <authorNari@gmail.com>
+
+ * gc.c (gc_mark_all_clear): don't call obj_free() in
+ gc_mark_all_clear(), because obj_free() may make T_ZOMBIE
+ objects.
+
+ * gc.c (gc_clear_mark_on_sweep_slots): renamed.
+
+ * gc.c (rb_objspace_call_finalizer): call
+ gc_clear_mark_on_sweep_slots() before calling mark_tbl().
+ [ruby-dev:41459]
+
+Sun May 30 03:40:44 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (parser_tokadd_utf8, parser_tokadd_string): allow NUL
+ containing symbol literals, as well as String#to_sym.
+ [ruby-dev:41447]
+
+Sun May 30 03:03:20 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * lib/rdoc/generator/template/darkfish/classpage.rhtml:
+ fix encoding value of XML declaration. [ruby-dev:41452]
+
+Sun May 30 02:20:26 2010 Masaya Tarui <tarui@ruby-lnag.org>
+
+ * thread.c (RB_GC_SAVE_MACHINE_CONTEXT), gc.c (ruby_gc_stress_start):
+ revert r28078.
+
+Sun May 30 02:21:34 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * ext/zlib/zlib.c (zstream_append_input2): add RB_GC_GUARD.
+ This caused failure when test/csv is executed with GC.stress = true.
+
+Sun May 30 01:25:48 2010 Masaya Tarui <tarui@ruby-lnag.org>
+
+ * thread.c (RB_GC_SAVE_MACHINE_CONTEXT): start GC
+ by switching the thread if gc_stress == true
+
+ * gc.c (ruby_gc_stress_start): ditto.
+
+Sun May 30 00:02:39 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * gc.c (force_chain_object, rb_objspace_call_finalizer): delete
+ finalizer entry after corresponding finalizer is executed.
+ This caused SEGV when test/cgi is executed with GC.stress = true.
+
+Sat May 29 23:30:33 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * string.c (str_replace_shared): change embedded state atomically.
+ [ruby-core:29953] [ruby-dev:41456]
+
+Sat May 29 12:56:09 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * encoding.c (rb_filesystem_encindex): avoid infinite require
+ loop. [ruby-core:30467]
+
+Sat May 29 12:05:51 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/rdoc/rdoc.rb (RDoc#read_file_contents): take care of BOM.
+ [ruby-dev:41452]
+
+Sat May 29 10:12:36 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * gc.c (GC_PROF_TIMER_STOP): regularize `marked' to suppress
+ warnings.
+
+Sat May 29 09:34:32 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * test/ruby/envutil.rb: fix for --disable-gems.
+
+Sat May 29 09:04:06 2010 Tanaka Akira <akr@fsij.org>
+
+ * lib/resolv.rb (Resolv::DNS::Requester#request): rescue ECONNREFUSED.
+
+Sat May 29 08:46:29 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * gc.c (allocate_sorted_heaps, before_gc_sweep, gc_sweep): removed
+ unused variables.
+
+Fri May 28 20:35:21 2010 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
+
+ * thread.c (blocking_region_begin): avoid RUBY_VM_CHECK_INTS()
+ call during GVL state transition. [Bug#3354] [ruby-dev:41435]
+
+Fri May 28 19:37:47 2010 Narihiro Nakamura <authorNari@gmail.com>
+
+ * gc.c: use simple lazy sweep algorithm for response performance
+ gain. See [ruby-dev:41067].
+
+ * object.c: FL_MARK of some objects by lazy sweep is copied when
+ RVALUE is cloned. These objects are not marked in the mark phase.
+ So delete FL_MARK.
+
+ * class.c: ditto.
+
+Fri May 28 18:39:38 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * string.c (sym_inspect): escape ASCII-compatible strings.
+
+ * string.c (rb_str_inspect): escape ASCII-compatible strings.
+
+Fri May 28 17:34:48 2010 URABE Shyouhei <shyouhei@ruby-lang.org>
+
+ * array.c (rb_ary_product): Use tmpary instead, to ensure marking
+ arrays by GC.
+
+Fri May 28 11:40:07 2010 URABE Shyouhei <shyouhei@ruby-lang.org>
+
+ * array.c (rb_ary_product): Do not rely on GC, t0 should be
+ checked explicitly.
+
+Fri May 28 10:40:37 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/mkmf.rb (checking_for): ignore toplevel.
+
+Fri May 28 00:47:16 2010 Masaya Tarui <tarui@ruby-lnag.org>
+
+ * error.c (rb_bug): suppress the error report dialog if report_bug()
+ is finished successfully.
+
+Fri May 28 00:32:25 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * insns.def (invokesuper): check consistency between class of self and
+ class of method being invoked by super. This is temporary measure
+ for YARV. See [ruby-core:30313] in detail. See [ruby-dev:40959]
+ [ruby-dev:39772] [ruby-core:27000] [ruby-core:27230]
+
+ * vm_insnhelper.c (vm_search_superclass): ditto.
+
+Thu May 27 23:38:31 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * file.c (rb_home_dir): set filesystem encoding.
+
+Thu May 27 23:29:18 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * file.c (file_expand_path): set encoding as the same of fname
+ when _result_ is not filesystem encoding. [ruby-dev:41429]
+
+Thu May 27 23:07:45 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * file.c (file_expand_path): use rb_enc_associate_index and
+ rb_filesystem_encindex. Strings related FileSystem should
+ have filesystem_encoding.
+
+ * file.c (SET_EXTERNAL_ENCODING): removed.
+
+Thu May 27 23:03:19 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * include/ruby/encoding.h (rb_filesystem_encindex): defined.
+
+ * include/ruby/encoding.h (rb_locale_encindex): ditto.
+
+ * encoding.c (rb_filesystem_encindex): remove static.
+
+ * encoding.c (rb_locale_encindex): ditto.
+
+Thu May 27 22:34:27 2010 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/win32.c (rb_w32_read): call ReadFile() with len = 0 before
+ reading really on console, because the first ReadFile() call after
+ PeekConsoleInput() always returns broken data. (Windows's bug).
+ [ruby-core:29018]
+
+Thu May 27 12:42:23 2010 Akinori MUSHA <knu@iDaemons.org>
+
+ * LGPL: Removed. We no longer have LGPL'd source files in our
+ tree.
+
+Wed May 26 20:19:22 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * random.c (random_rand): add the result of random to the
+ beginning of range, not the opposite. [ruby-dev:41415]
+
+Wed May 26 19:55:33 2010 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * file.c (file_expand_path): revert a part of r22392. it's commit miss.
+
+Wed May 26 18:40:23 2010 Masaya Tarui <tarui@ruby-lang.org>
+
+ * test/rinda/test_rinda.rb (TupleSpaceTest, TupleSpaceProxyTest):
+ kill a used thread at teardown. [ruby-dev:41397]
+
+Wed May 26 12:08:06 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * random.c (random_rand): subtraction method of non-numeric can
+ return Float. [ruby-dev:41410]
+
+Wed May 26 11:50:09 2010 Eric Hodel <drbrain@segment7.net>
+
+ * marshal.c (Init_marshal): document marshal_dump and marshal_load.
+
+Wed May 26 10:35:37 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (rb_cv_large_fd_select): needed on mingw, even
+ though fd_mask is not available. [ruby-core:30401]
+
+Tue May 25 14:00:51 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * regparse.c (add_code_range_to_buf0): fix false negative
+ warning when given range is just before previous range.
+ [ruby-dev:41406]
+
+Tue May 25 16:37:39 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * misc/ruby-style.el (ruby-style-version): take revision if
+ keyword is expanded. [ruby-dev:41408]
+
+Tue May 25 13:26:49 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * include/ruby/vm.h, include/ruby/encoding.h: add external
+ linkage.
+
+Tue May 25 01:46:49 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * vm_eval.c (rb_f_caller): update rdoc. a patch from Nobuhiro IMAI
+ <nov at yo.rim.or.jp> in [ruby-dev:41387].
+
+Mon May 24 23:04:41 2010 Tanaka Akira <akr@fsij.org>
+
+ * error.c: fix wrong exception class name in rdoc.
+
+Mon May 24 19:00:34 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (warn_balanced, parser_yylex): no warnings after closing
+ parens.
+
+Mon May 24 12:52:44 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * common.mk (change), tool/change_maker.rb: make a brief template
+ for ChangeLog.
+
+Mon May 24 09:19:59 2010 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * gc.c (gc_sweep): suppress a warning on VC.
+
+Mon May 24 08:16:02 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * process.c (rb_f_spawn): use correct command name for the error
+ message. [ruby-dev:41395]
+
+Sun May 23 17:48:39 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/openssl/lib/openssl/x509-internal.rb, lib/forwardable.rb,
+ lib/irb/cmd/fork.rb, lib/mutex_m.rb,
+ lib/shell/process-controller.rb, lib/sync.rb, object.c:
+ suppress warnings patched by Benoit Daloze at [ruby-core:30366].
+
+ * parse.y (warn_balanced): no warning for singleton class.
+ [ruby-core:30366]
+
+Sun May 23 16:56:11 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * include/ruby/ruby.h (CONST_ID_CACHE, rb_intern_const): suppress
+ warnings with -Wconversion.
+
+Sun May 23 07:08:34 2010 Aaron Patterson <aaron@tenderlovemaking.com>
+
+ * ext/psych/lib/psych/json/stream.rb: adding a JSON streaming API
+
+ * ext/psych/lib/psych/stream.rb: ditto
+
+ * ext/psych/lib/psych.rb: using autoload
+
+ * ext/psych/lib/psych/json.rb: ditto
+
+ * ext/psych/lib/psych/json/tree_builder.rb: refactor
+
+ * ext/psych/lib/psych/visitors/json_tree.rb: refactor
+
+Sat May 22 03:53:05 2010 Satoshi Shiba <shiba@rvm.jp>
+
+ * cont.c (fiber_setcontext): Use swapcontext() instead longjmp().
+ [ruby-dev:41316] [Bug #3295]
+
+Fri May 21 19:11:42 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/nkf/nkf.c (rb_nkf_convert, rb_nkf_guess): check too huge
+ string.
+
+Fri May 21 18:12:12 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * include/ruby/ruby.h (rb_intern): C90 needs nonempty macro
+ arguments.
+
+Fri May 21 13:55:46 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (LIBRUBYARG_SHARED): shared library will not be
+ created unless enable-shared.
+
+ * ruby.c (ruby_init_loadpath_safe): use real path for non-shared
+ build.
+
+Fri May 21 12:25:58 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * marshal.c (w_float): use dtoa directly instead of stripping
+ needless trailing .0.
+
+ * numeric.c (flo_to_s): reverted. [ruby-dev:41341]
+
+Fri May 21 01:06:05 2010 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * thread.c (subtract_tv): if the rest is zero, should finish waiting
+ immediately.
+
+ * win32/win32.c (subtract): ditto.
+ based on a patch from Roger Pack in [ruby-core:27957].
+
+Thu May 20 22:49:04 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * re.c (rb_reg_s_union_m): update rdoc. [ruby-dev:41354]
+
+Thu May 20 22:08:28 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * vm_eval.c (rb_f_caller): update rdoc. a patch from Nobuhiro IMAI
+ <nov at yo.rim.or.jp> in [ruby-dev:41348].
+
+Thu May 20 22:04:05 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * vm.c (vm_backtrace_each): now takes an init function to distinguish
+ an empty stack from out of stack. [ruby-dev:41366]
+
+ * vm_eval.c (print_backtrace, rb_thread_backtrace): ditto.
+
+Thu May 20 20:47:46 2010 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+
+ * ext/win32ole/win32ole.c (ole_invoke): raise NoMethodError
+ when COM method is not found. [ruby-core:30160] [Bug #3277]
+
+ * test/win32ole/test_win32ole.rb (test_no_method_error): ditto.
+
+Thu May 20 16:17:14 2010 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * ext/psych/emitter: C99(gcc)-ism.
+
+Thu May 20 12:59:49 2010 Aaron Patterson <aaron@tenderlovemaking.com>
+
+ * ext/psych/lib/psych/stream.rb: adding YAML streaming API for
+ infinite length streams.
+
+ * ext/psych/lib/psych.rb: refactoring for streaming API
+
+ * ext/psych/lib/psych/{handler, stream, tree_builder}.rb: ditto
+
+Thu May 20 02:12:20 2010 Aaron Patterson <aaron@tenderlovemaking.com>
+
+ * ext/psych/emitter.c: output strings are automatically transcoded
+
+Wed May 19 23:36:57 2010 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/extconf.rb: [ruby-dev:41334] [Bug #3307] invalid result
+ on searching tcl.h/tk.h. Thanks, Masaya Tarui.
+
+Wed May 19 23:19:30 2010 Shugo Maeda <shugo@ruby-lang.org>
+
+ * lib/net/imap.rb (disconnect): closes the socket of a Net::IMAP
+ object only when it is not closed. [ruby-dev:41350]
+
+Wed May 19 20:09:38 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * vm_eval.c (rb_f_caller): return [] instead of nil when the function
+ is called on toplevel. [ruby-dev:41348]
+
+Wed May 19 19:58:01 2010 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * ext/socket/extconf.rb: mswin/mingw ruby has socketpair(), but it's
+ not exist as such name in ruby static library, so mkmf.rb cannot
+ find it.
+
+Wed May 19 19:45:10 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * iseq_compile_each (NODE_DEFINED): put nil first to fix stack
+ consistency. [ruby-core:30293]
+ Now, lfinish[0] of defined_expr seems not to be used. Refactoring
+ may be needed.
+
+Wed May 19 16:55:09 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * numeric.c (rb_num2ulong): use rb_big2ulong for data from
+ Bignum. Without this 32bit integer on 32bit environment
+ can't converted into long.
+ This fixes 1) and 2) of [ruby-dev:41289]
+
+Mon May 17 22:19:16 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * process.c: suppress warning for signed and unsigned type
+ inconsistency.
+
+ * ext/psych/parser.c: ditto.
+
+ * ext/sdbm/_sdbm.c: ditto.
+
+ * ext/syck/rubyext.c: ditto.
+
+Mon May 17 21:30:50 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * .gitignore: updated.
+
+Mon May 17 21:08:53 2010 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/win32.c (argv_size): merged into join_argv() to maintain the
+ agreement with it. removed code has a calculation bug.
+ fixed [Bug#2388]
+
+ * win32/win32.c (join_argv): calc and return the length of joined
+ argv.
+ the cause of the original bug was clarified by Masaya TARUI
+ <tarui AT prx.jp> and the solution was suggested by him, too.
+
+Mon Apr 5 09:20:08 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * enc/iso_2022_jp.h: add CP50220.
+
+ * enc/trans/iso2022.trans: add converter for CP50220.
+
+Mon May 17 09:37:25 2010 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * lib/fileutils.rb (FileUtils::Entry_#entries): returns pathname in
+ UTF-8 on Windows to allow FileUtils accessing all pathnames
+ internally.
+
+Mon May 17 01:07:48 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * dln.c (rb_w32_check_imported): workaround for VC6.
+
+Sun May 16 22:21:32 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * proc.c (mnew): initialize a field. a patch from Takahiro Kambe.
+ [ruby-dev:41312]
+
+Sun May 16 22:17:35 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * eval.c (setup_exception): let SystemStackError#backtrace return an
+ single element array instead of string itself. [ruby-core:30196]
+
+Sun May 16 21:51:04 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * parse.y (parser_read_escape, parser_tokadd_escape): allow a hex or
+ octal encoded character after \c. This seemed to be prohibited at
+ r13836, but its ChangeLog mentions nothing about this prohibition.
+ So I assume this prohibition is not intended. [ruby-core:27229]
+
+Sun May 16 21:14:04 2010 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * ruby/test_rubyoptions.rb (TestRubyOptions#test_segv_test):
+ fixes "NoMethodError: undefined method `[]=' for nil:NilClass"
+
+Sun May 16 17:16:09 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * proc.c (proc_binding): don't propagate filename and line_no of
+ binding that is created from C level. [ruby-dev:41322]
+
+ * vm_eval.c (eval_string_with_cref): ditto.
+
+Sun May 16 15:09:36 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * dln.c (rb_w32_check_imported): check if extension library to be
+ loaded imports from different ruby dll.
+
+Sun May 16 14:55:39 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * common.mk (dln_find.o): fix dependency.
+
+Sun May 16 13:55:25 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * error.c (rb_loaderror): use locale string, not ascii-8bit.
+
+Sun May 16 11:39:15 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * include/ruby/missing.h (signbit): add missing prototype.
+
+Sun May 16 10:49:47 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/iconv/iconv.c (rb_iconv_sys_fail): fix number of arguments.
+ a patch by Masaya TARUI <tarui AT prx.jp>.
+
+Sun May 16 02:24:27 2010 Yutaka Kanemoto <kanemoto@ruby-lang.org>
+
+ * configure.in: can not load libruby.so if gcc is used with
+ --enable-shared on AIX.
+
+Sat May 15 17:16:15 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/iconv/iconv.c (rb_iconv_sys_fail): raise BrokenLibrary if
+ errno is not set. [ruby-dev:41317]
+
+Fri May 14 07:27:07 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * marshal.c (w_float): strip ".0" from end for rubyspec.
+
+Fri May 14 01:17:10 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * vm_core.c (rb_thread_struct): add a field for sigaltstack.
+
+ * thread_pthread.c (thread_start_func_1): initialize machine stack
+ information.
+
+ * thread.c (thread_start_func_2): set sigaltstack for each sub thread.
+ [ruby-core:24540] [ruby-core:30207]
+
+Thu May 13 21:40:39 2010 Tanaka Akira <akr@fsij.org>
+
+ * missing/ffs.c (ffs): fixed for non-zero values.
+
+Thu May 13 18:45:25 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/io/console/console.c (get_write_fd): return primary fd if no
+ io is tied for writing.
+
+Thu May 13 18:15:33 2010 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * io.c (swallow): should use more_char() instead of fill_cbuf().
+ suggested by akr.
+
+Thu May 13 17:56:07 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/io/console/console.c (console_set_echo, console_echo_p): use
+ primary fd. [ruby-dev:41309]
+
+Thu May 13 13:30:05 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * marshal.c (w_float): use minimal representation.
+
+ * numeric.c (ruby_dbl2cstr): split from rb_float_new.
+
+Thu May 13 13:09:24 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * vm_core.h (rb_vm_get_sourceline): moved from eval_intern.h for
+ vm_dump.c.
+
+Thu May 13 12:53:13 2010 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * io.c (swallow): support text mode and UTF-16/32 as internal encoding.
+ [Bug #1576]
+
+ * io.c (io_shift_cbuf): read and throw it away when str is NULL.
+
+Thu May 13 09:45:27 2010 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/Makefile.sub: link with ffs.obj.
+
+Thu May 13 07:37:49 2010 Tanaka Akira <akr@fsij.org>
+
+ * ext/sdbm/_sdbm.c: include unistd.h before sdbm.h for off_t.
+ fix compilation problem on FreeBSD 6.4.
+
+Wed May 12 23:48:37 2010 Tanaka Akira <akr@fsij.org>
+
+ * include/ruby/intern.h (rb_quad_pack): deprecated.
+ (rb_quad_unpack): ditto.
+
+Wed May 12 22:22:05 2010 Tanaka Akira <akr@fsij.org>
+
+ * time.c (rb_big_abs_find_minbit): use ffs().
+
+ * configure.in: check ffs().
+
+ * missing/ffs.c: new file.
+
+ * include/ruby/missing.h (ffs): declared.
+
+Wed May 12 16:43:12 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * numeric.c (flo_to_s): fixed broken output including nuls.
+
+Wed May 12 16:25:46 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * numeric.c (flo_to_s): exponent needs 2 digits.
+
+Wed May 12 16:02:43 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * numeric.c (flo_to_s): fill lower zeros.
+
+Wed May 12 15:45:36 2010 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * lib/rdoc/generator/ri.rb (generate): should load existing cache
+ before generating it.
+
+Wed May 12 15:04:57 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/bigdecimal/lib/bigdecimal/math.rb (BigMath#log): improved
+ precision and performance. [ruby-dev:41295]
+
+Wed May 12 11:39:10 2010 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * ext/socket/extconf.rb: test all IPPROTO_* constants for recent Win32
+ SDK.
+
+Wed May 12 10:57:04 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * numeric.c (flo_to_s): make minimum string representation.
+ [ruby-core:30145]
+
+Wed May 12 09:21:05 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * re.c (rb_reg_initialize_m): fix wrong index for the lang
+ option's value 'N'. reported by Masaya TARUI via IRC.
+
+Tue May 11 23:07:22 2010 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/extconf.rb: test IPPROTO_IP and IPPROTO_IPV6 constants.
+
+ * ext/socket/mkconstants.rb: define macros for enum.
+
+ [ruby-dev:38849]
+
+Tue May 11 21:53:18 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * test/rake/test_task_arguments.rb: makes ENV empty during tests
+ because ENV may change the behavior of Rake::TaskArguments.
+ [ruby-core:29984]
+
+Tue May 11 15:14:30 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * enc/utf_8.c: Add new alias UTF-8-HFS for UTF8-MAC.
+ http://www.gnu.org/software/emacs/NEWS.23.2
+
+Tue May 11 13:46:00 2010 Kenta Murata <mrkn@mrkn.jp>
+
+ * ext/bigdecimal/lib/bigdecimal/math.rb (atan),
+ test/bigdecimal/test_bigmath.rb (test_atan): explicitly specify
+ the precision for calculating a reciprocal number of an argument.
+ [Bug #3267]
+
+Tue May 11 11:49:44 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/sdbm/sdbm.h (DBM): large file support on win32.
+ [ruby-core:23039]
+
+ * ext/sdbm/depend: objects depend on sdbm.h.
+
+Tue May 11 09:57:05 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval_intern.h (rb_vm_get_sourceline): add prototype.
+
+Tue May 11 09:53:07 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/psych/parser.c (PSYCH_TRANSCODE): get rid of bare use of gcc
+ extension.
+
+Tue May 11 01:20:43 2010 Aaron Patterson <aaron@tenderlovemaking.com>
+
+ * ext/psych/parser.c (parse): Return strings encoded as
+ Encoding.default_internal if set.
+
+Mon May 10 23:50:19 2010 Tanaka Akira <akr@fsij.org>
+
+ * pack.c (pack_unpack): add a missing break.
+
+Mon May 10 14:13:04 2010 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * time.c (rb_big_abs_find_minbit): get rid of a warning of VC.
+
+Mon May 10 13:59:42 2010 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/win32.c, include/ruby/win32.h (rb_w32_has_cancel_io): new
+ function.
+
+ * io.c (WAIT_FD_IN_WIN32): check only when it's not cancelable.
+
+Mon May 10 06:59:19 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * common.mk (rdoc): rdoc should depend main. Moreover when XRUBY
+ is miniruby, it can run after miniruby is built.
+
+Mon May 10 03:36:56 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * vm_eval.c (eval_string_with_cref): propagate filename and line_no
+ of binding. [ruby-dev:38767] [ruby-core:28307]
+
+ * vm_core.h (rb_binding_t), proc.c: add filename and line_no fields to
+ preserve them.
+
+Mon May 10 02:58:33 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * compile.c (iseq_compile_each), vm_insnhelper.c (vm_invoke_block,
+ vm_throw): allow "return" and "yield" even in singleton class
+ definition. based on a patch from wanabe <s.wanabe AT gmail.com>
+ for "return". [ruby-core:21379] [ruby-dev:40975]
+
+ * insns.def (defineclass): ditto (straightforwardly push block ptr,
+ instead of dfp ptr with special flag).
+
+ * vm_core.h (RUBY_VM_CLASS_SPECIAL_P): ditto (no longer needed).
+
+ * proc.c (proc_new): ditto (remove handling for special flag).
+
+ * bootstraptest/test_jump.rb: add tests for above.
+
+Mon May 10 02:29:51 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * cont.c (fiber_switch): raise FiberError when returning to dead
+ fiber. [ruby-dev:40833]
+
+Mon May 10 02:07:20 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * lib/thread.rb (ConditionVariable#wait): ensure to remove the current
+ thread from waiters. [ruby-core:29835]
+
+Mon May 10 00:54:15 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/io/console/console.c (console_set_raw): new method.
+
+ * ext/io/console/console.c (ttymode): reverted previous commit.
+
+Sun May 9 23:53:14 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * include/ruby/ruby.h (RB_GC_GUARD_PTR): get rid of removal by
+ optimization.
+
+Sun May 9 23:07:53 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * proc.c (proc_dup): copy blockprocval. proc_dup is used by
+ define_method, which made blockprocval be GC'ed mistakenly.
+ [ruby-core:30023]
+
+Sun May 9 16:28:15 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * cont.c (fiber_initialize_machine_stack_context): try to release
+ unnecessary fibers and retry to create. based on a patch from
+ masaya tarui at [ruby-dev:41230].
+
+Sun May 9 08:32:56 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * ext/json/generator/generator.c (fbuffer_inc_capa):
+ fix the use of REALLOC_N. [ruby-dev:41227]
+
+Sun May 9 09:30:09 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/json/{generator/generator.c,parser/parser.rl}: fixed indent.
+
+ * ext/json/{generator,parser}/depend: added.
+
+Sun May 9 09:15:03 2010 Shugo Maeda <shugo@ruby-lang.org>
+
+ * test/net/imap/test_imap.rb: use IPv4 for
+ test_imaps_post_connection_check. [ruby-dev:41189]
+
+Sun May 9 08:24:24 2010 Shugo Maeda <shugo@ruby-lang.org>
+
+ * lib/net/imap.rb (disconnect): terminates @receiver_thread even if
+ @sock.shutdown raises an exception. [ruby-dev:34881]
+
+Sun May 9 06:15:21 2010 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
+
+ * io.c (nogvl_copy_stream_sendfile): ISO C90 forbids mixed
+ declarations and code.
+
+Sun May 9 02:57:02 2010 Aaron Patterson <aaron@tenderlovemaking.com>
+
+ * ext/fiddle/lib/fiddle.rb: only require DL if it hasn't been required
+ yet. [ruby-core:30095]
+
+Sun May 9 01:15:18 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * cont.c (stackgrowdirection): removed duplicated code, use
+ STACK_UPPER macro instead.
+
+ * gc.h (STACK_DIR_UPPER): moved from thread_pthread.c.
+
+Sun May 9 00:35:56 2010 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * test/dl/test_base.rb (libc_so, libm_so): supports solaris.
+
+Sat May 8 19:03:31 2010 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * spec/default.mspec (config): . is no longer in $:.
+
+Sun May 9 00:27:46 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * thread.c (rb_thread_aset): fixed argument type.
+
+Sat May 8 23:09:44 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * NEWS (io/console): IO#noecho and IO#raw without block are
+ obsolete already. [ruby-dev:41226]
+
+ * ext/io/console/console.c (ttymode): save duped file descriptors
+ and restore tty modes using them, so that original modes can be
+ restored even if original fds are closed. [ruby-dev:41225]
+
+Sat May 8 13:48:31 2010 Marc-Andre Lafortune <ruby-core@marc-andre.ca>
+
+ * array.c (rb_ary_fetch, rb_ary_splice, rb_ary_store): Improve
+ IndexError
+ messages [ruby-core:28394]
+
+ * hash.c (rb_hash_fetch_m): Improve KeyError message
+
+Sat May 8 13:11:28 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/rubygems/user_interaction.rb (Gem::StreamUI#ask_for_password):
+ use io/console.
+
+ * ext/io/console: imported. [ruby-dev:40897]
+
+Sat May 8 12:25:15 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/etc/etc.c (etc_systmpdir): moved from ext/tmpdir.
+
+ * ext/etc/etc.c (etc_sysconfdir): added.
+
+ * lib/rubygems/config_file.rb, lib/tmpdir.rb: use etc.
+
+Sat May 8 11:07:41 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/bigdecimal/bigdecimal.c (VpAlloc): ensure buf does not get
+ collected. based on a patch masaya tarui at [ruby-dev:41213].
+
+Sat May 8 10:03:39 2010 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/lib/socket.rb (BasicSocket#connect_address): MacOS X 10.6
+ returns "::ffff:a.b.c.d" for IPv4-mapped IPv6 address.
+ [ruby-dev:41215] patch by Tomoyuki Chikanaga.
+
+Fri May 7 23:51:39 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * version.h: bump up to 1.9.3.
+
+Fri May 7 11:30:51 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * tool/rbinstall.rb (install-man): install mdocs directly without
+ temporary files. [ruby-dev:41204]
+
+Fri May 7 09:16:16 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/tk/extconf.rb (get_tclConfig_dirs): glob with EXEEXT.
+
+ * ext/tk/extconf.rb (search_tclConfig): fixed typo.
+
+Fri May 7 06:45:28 2010 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/extconf.rb: search directories on PATH, only if containing
+ tclsh or wish command (probably right fix for [ruby-core:30010]).
+
+Fri May 7 03:40:58 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * ext/bigdecimal/bigdecimal.c (VpCtoV): fix to check overflow.
+
+Thu May 6 22:19:38 2010 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * cont.c: define FIBER_USE_NATIVE only when _WIN32_WINNT >= 0x0400
+ on Windows because Fiber APIs are supported only such building
+ (and running) environments.
+ [ruby-dev:41192]
+
+Thu May 6 19:13:43 2010 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * test/openssl/test_ec.rb: added test_dsa_sign_asn1_FIPS186_3. dgst is
+ truncated with ec_key.group.order.size after openssl 0.9.8m for
+ FIPS 186-3 compliance.
+
+ WARNING: ruby-openssl aims to wrap an OpenSSL so when you're using
+ openssl 0.9.8l or earlier version, EC.dsa_sign_asn1 raises
+ OpenSSL::PKey::ECError as before and EC.dsa_verify_asn1 just returns
+ false when you pass dgst longer than expected (no truncation
+ performed).
+
+ * ext/openssl/ossl_pkey_ec.c: rdoc typo fixed.
+
+Thu May 6 18:12:43 2010 Koichi Sasada <ko1@atdot.net>
+
+ * cont.c (fiber_setcontext): Fix last commit.
+
+Thu May 6 17:16:42 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * time.c (rb_localtime_r2): get rid of infinite loop bug of
+ localtime() on x86_64-darwin. [ruby-core:30031]
+
+Thu May 6 15:56:12 2010 Aaron Patterson <aaron@tenderlovemaking.com>
+
+ * ext/fiddle/*: Adding fiddle library to wrap libffi
+ * test/fiddle/*: testing fiddle extension
+ * ext/dl/lib/dl.rb: Requiring fiddle if it is available
+ * ext/dl/lib/dl/callback.rb: using Fiddle if it is available
+ * ext/dl/lib/dl/func.rb: ditto
+
+Thu May 6 15:04:37 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * string.c (rb_str_match_m): add description about optional
+ position parameter. [ruby-list:47064]
+ patched by KISHIMOTO, Makoto <ksmakoto AT dd.iij4u.or.jp>
+
+Thu May 6 14:12:39 2010 Tanaka Akira <akr@fsij.org>
+
+ * lib/tmpdir.rb: test RUBY_PLATFORM for loading tmpdir.so to avoid
+ LoadError.
+
+Thu May 6 12:41:00 2010 Kenta Murata <mrkn@mrkn.jp>
+
+ * NEWS: add rationalize methods of Complex, Float, Integer, NilClass,
+ and Rational classes.
+
+Thu May 6 12:12:26 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * README: update.
+
+Thu May 6 03:34:29 2010 Koichi Sasada <ko1@atdot.net>
+
+ * cont.c: apply FIBER_USE_NATIVE patch. This patch improve
+ Fiber context switching cost using system APIs. Detail comments
+ are written in cont.c.
+
+Thu May 6 02:16:48 2010 Koichi Sasada <ko1@atdot.net>
+
+ * vm_method.c (rb_unlink_method_entry, rb_sweep_method_entry):
+ added. Unlinked method entries are collected to
+ vm->unlinked_method_entry_list. On the GC timing, mark all method
+ entries which are on all living threads. Only non-marked method
+ entries are collected. This hack prevents releasing living method
+ entry.
+ [Performance Consideration] Since this Method Entry GC (MEGC)
+ doesn't occur frequently, MEGC will not be a performance bottleneck.
+ However, to traverse living method entries, every control frame push
+ needs to clear cfp->me field. This will be a performance issue
+ (because pushing control frame is occurred frequently).
+ Bug #2777 [ruby-dev:40457]
+
+ * cont.c (fiber_init): init cfp->me.
+
+ * gc.c (garbage_collect): kick rb_sweep_method_entry().
+
+ * method.h (rb_method_entry_t): add a mark field.
+
+ * vm.c (invoke_block_from_c): set passed me.
+
+ * vm.c (rb_thread_mark): mark cfp->me.
+
+ * vm_core.h (rb_thread_t): add a field passed_me.
+
+ * vm_core.h (rb_vm_t): add a field unlinked_method_entry_list.
+
+ * vm_insnhelper.c (vm_push_frame): clear cfp->me at all times.
+
+ * vm_insnhelper.c (vm_call_bmethod): pass me.
+
+ * bootstraptest/test_method.rb: add a test.
+
+Wed May 5 22:22:51 2010 wanabe <s.wanabe@gmail.com>
+
+ * compile.c (iseq_set_sequence): fix check range of ic_index.
+ a patch from Tomoyuki Chikanaga. #3236
+
+Wed May 5 21:49:31 2010 Yutaka Kanemoto <kanemoto@ruby-lang.org>
+
+ * dln.c (aix_loaderror): use execerror for load error on AIX.
+ This can avoid SEGV reported by Perry Smith. [Bug #2063]
+
+Wed May 5 20:37:54 2010 wanabe <s.wanabe@gmail.com>
+
+ * thread_win32.c (w32_wait_events): get GVL before handle interrupt
+ event. [ruby-core:27199], [ruby-core:29698]
+
+Wed May 5 19:00:01 2010 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/extconf.rb: revert. enbugged by last commit.
+ ([ruby-dev:41133], [ruby-dev:41134], [ruby-core:30010])
+
+ * ext/tk/README.tcltklib: ditto.
+
+Wed May 5 15:54:35 2010 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * file.c (rb_stat): use STAT macro instead of calling stat() directly.
+ reported by Bill Kelly. [ruby-core:30012]
+
+Wed May 5 11:43:10 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * bootstraptest/test_io.rb (megacontent-copy_stream): get rid of
+ deadlock.
+
+Wed May 5 07:27:14 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * gc.c (rb_mark_method_entry): renamed.
+
+Wed May 5 05:20:27 2010 Koichi Sasada <ko1@atdot.net>
+
+ * method.h, vm_method.c: rename some internal functions related to
+ rb_method_entry_t.
+ rb_add_method_me() -> rb_method_entry_set().
+ rb_get_method_entry() -> rb_method_entry_without_cache().
+ rb_gc_mark_method_entry() -> rb_mark_method_entry().
+
+ * class.c, proc.c: ditto.
+
+Tue May 4 22:59:48 2010 wanabe <s.wanabe@gmail.com>
+
+ * compile.c (iseq_build_body): update iseq->ic_size.
+ a patch from Tomoyuki Chikanaga. see #3236.
+
+Tue May 4 18:51:22 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * error.c (name_err_mesg_to_str): preserve encoding of inspection.
+ [ruby-core:29948]
+
+Tue May 4 18:38:16 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * test/fileutils/test_fileutils.rb (test_copy_stream):
+ IO.copy_stream support binmode only currently.
+ [ruby-core:23724]
+
+Tue May 4 12:46:09 2010 Koichi Sasada <ko1@atdot.net>
+
+ * vm_insnhelper.c (argument_error): push correct backtrace.
+ Bug #2281 [ruby-core:26333]
+
+Tue May 4 12:38:40 2010 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/option.c (sockopt_inspect): use rb_str_cat2 and
+ rb_str_append.
+
+ * ext/socket/ancdata.c (ancillary_inspect): refined.
+
+Tue May 4 11:48:06 2010 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/ancdata.c (ancillary_inspect): use rb_str_cat2 and
+ rb_str_append.
+
+Tue May 4 07:52:33 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * lib/net/http.rb (Net::HTTPResponse#read_chunked): ensure to skip the
+ last newline of chunk. [ruby-core:29229]
+
+ * test/net/http/utils.rb: add an option for chunked response test.
+
+ * test/net/http/test_http.rb: add tests for chunked response.
+
+Tue May 4 03:37:54 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * ext/nkf/nkf-utf8/nkf.c: Update nkf 2010-04-28.
+
+Mon May 3 21:08:16 2010 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
+
+ * sample/README: update file list. [ruby-core:28981]
+
+Mon May 3 08:15:05 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/syck/emitter.c (syck_scan_scalar): set SCAN_WHITEEDGE flag
+ when scalar begins with newline. patches from Dave B <daz AT
+ d10.karoo.co.uk> at [ruby-core:23019] and caleb clausen at
+ [ruby-core:25851]. [ruby-core:23006][ruby-core:29925]
+
+Sun May 2 17:52:16 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/rdoc/task.rb (RDoc::Task): should not override newer code.
+
+Sun May 2 17:25:05 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/dl/cfunc.c (rb_dlcfunc_call): ignore signedness.
+
+Sun May 2 12:04:30 2010 wanabe <s.wanabe@gmail.com>
+
+ * iseq.c (iseq_load): allow filepath to be nil.
+ a patch from Tomoyuki Chikanaga in [Bug #3229].
+
+Sun May 2 08:54:37 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/cgi.rb (CGI::NEEDS_BINMODE): check if O_BINARY value instead
+ of fragile check by platform name.
+
+Sun May 2 07:38:43 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/mkmf.rb (dir_config): should not modify argument arrays
+ themselves.
+
+Sat May 1 22:53:57 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/tempfile.rb (Tempfile#size): stat by path name when it is
+ closed.
+
+ * lib/test/unit/assertions.rb (Test::Unit::Assertions#assert):
+ keep the first trace.
+
+ * lib/test/unit/assertions.rb (Test::Unit::Assertions#assert):
+ fixed filtering. [ruby-core:29908]
+
+Sat May 1 16:46:44 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/bigdecimal/bigdecimal.c (BigDecimal_IsInfinite): don't use
+ non-ascii character.
+
+Sat May 1 14:08:29 2010 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/server.rb: Fix bug when serving gems.
+
+Sat May 1 14:05:36 2010 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rdoc: Upgrade to RDoc 2.5.8.
+
+Sat May 1 09:43:06 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/test/unit/assertions.rb (Test::Unit::Assertions#assert):
+ filter out traces in minitest directory. [ruby-core:29908]
+
+Sat May 1 06:42:57 2010 wanabe <s.wanabe@gmail.com>
+
+ * win32/win32.c: add declaration of wstati64 for gcc.
+
+Sat May 1 02:41:33 2010 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * merge some patches from win32-unicode-test branch.
+ see #1685.
+
+ * file.c, include/ruby/intern.h (rb_str_encode_ospath): new function
+ to convert encoding for pathname.
+
+ * win32.c, include/ruby/win32.h (rb_w32_ulink, rb_w32_urename,
+ rb_w32_ustati64, rb_w32_uopen, rb_w32_uutime, rb_w32_uchdir,
+ rb_w32_umkdir, rb_w32_urmdir, rb_w32_uunlink): new functions to
+ accept UTF-8 path.
+
+ * win32/win32.c (rb_w32_opendir, link, rb_w32_stati64, rb_w32_utime,
+ rb_w32_unlink): use WCHAR path internally.
+
+ * file.c (rb_stat, eaccess, access_internal, rb_file_s_ftype,
+ chmod_internal, rb_file_chmod, rb_file_chown, utime_internal,
+ rb_file_s_link, unlink_internal, rb_file_s_rename): use UTF-8 version
+ functions on Win32.
+
+ * file.c (apply2files, rb_stat, rb_file_s_lstat, rb_file_symlink_p,
+ rb_file_readable_p, rb_file_writable_p, rb_file_executable_p,
+ check3rdbyte, rb_file_identical_p, rb_file_chmod, rb_file_chown,
+ rb_file_s_link, rb_file_s_symlink, rb_file_s_rename): call
+ rb_str_encode_ospath() before passing the path to system.
+
+ * io.c (rb_sysopen): ditto.
+
+ * dir.c (dir_chdir, dir_s_mkdir, dir_s_rmdir): ditto.
+
+Sat May 1 00:26:31 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/test/unit/assertions.rb (Test::Unit::Assertions#assert):
+ assertion message must be String or Proc. suggested by caleb
+ clausen at [ruby-core:29884].
+
+Sat May 1 00:14:47 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * test/ruby/test_io.rb: skip false tests on Windows.
+ [ruby-core:29886]
+
+Fri Apr 30 22:46:27 2010 Marc-Andre Lafortune <ruby-core@marc-andre.ca>
+
+ * math.c: Math::DomainError < StandardError [ruby-core:29855]
+
+Fri Apr 30 21:40:36 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * test/test_open3.rb (TestOpen3#test_commandline): use simple
+ command via shell. [ruby-dev:41100]
+
+Fri Apr 30 15:38:45 2010 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/extconf.rb: better support for MinGW environment.
+
+Fri Apr 30 12:05:20 2010 Tanaka Akira <akr@fsij.org>
+
+ * file.c (file_expand_path): call rb_str_set_len before BUFCHECK to
+ prevent rb_str_resize in BUFCHECK discard the content.
+
+Fri Apr 30 11:48:31 2010 Marc-Andre Lafortune <ruby-core@marc-andre.ca>
+
+ * string.c (rb_str_sub_bang): String#sub! now raises an error when
+ called on a frozen string, even if no change is made.
+ See [ruby-core:23657]
+
+Fri Apr 30 11:40:44 2010 Marc-Andre Lafortune <ruby-core@marc-andre.ca>
+
+ * eval.c (make_exception, rb_obj_extend): Fix error messages in case
+ of wrong
+ number of arguments
+
+ * file.c (rb_f_test, rb_file_s_umask): ditto
+
+ * numeric.c (int_chr, num_step): ditto
+
+ * process.c (rb_f_sleep): ditto
+
+ * re.c (rb_reg_initialize_m): ditto
+
+ * signal.c (rb_f_kill, sig_trap): ditto
+
+ * string.c (rb_str_aref_m, rb_str_aset_m, rb_str_count,
+ rb_str_delete_bang,
+ rb_str_slice_bang, rb_str_sub_bang, str_gsub): ditto
+
+ * proc.c (curry): rdoc fix
+
+Fri Apr 30 04:09:30 2010 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * time.c (TIMET_MAX): should be time_t, not unsigned_time_t.
+
+Fri Apr 30 03:59:08 2010 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * time.c (rb_time_unmagnify_to_float): should cast.
+
+Fri Apr 30 03:38:14 2010 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * numeric.c (fix_mul): the width of fixnum is same as long's on all
+ platforms.
+
+Fri Apr 30 03:17:20 2010 Marc-Andre Lafortune <ruby-core@marc-andre.ca>
+
+ * lib/matrix.rb: Improve algorithm for Matrix#determinant and
+ Matrix#rank
+ {determinant,det,rank}_e are now deprecated. [ruby-core:28273]
+ Also fixes a bug in Determinant#rank (e.g. [[0,1][0,1][0,1]])
+ Matrix#singular?, Matrix#regular? now raise on rectangular matrices
+ and use determinant instead of rank.
+
+Fri Apr 30 00:52:56 2010 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/Makefile.sub (config.h): define some constants to select
+ collect code for win64.
+
+Thu Apr 29 20:10:14 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * test/test_open3.rb (test_commandline): use dump instead of
+ shellwords. [ruby-core:23797]
+
+Thu Apr 29 18:39:51 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/thwait.rb (ThreadsWait#join): refined rdoc again.
+ [ruby-core:29863] [ruby-dev:41092]
+
+Thu Apr 29 14:46:00 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * test/ruby: use more descriptive assertions.
+
+ * test/ruby: fixed nonsense assertions.
+
+ * lib/test/unit/assertions.rb (Test::Unit::Assertions#assert):
+ reverted. [ruby-core:29872]
+
+Thu Apr 29 12:33:42 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/thwait.rb (ThreadsWait#join): refined rdoc. [ruby-core:29863]
+
+Thu Apr 29 12:16:20 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/test/unit/assertions.rb (Test::Unit::Assertions#assert): reject
+ non-boolean values. [ruby-core:29868]
+
+Thu Apr 29 11:20:53 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * io.c (seek_before_access): renamed. see [ruby-core:29861].
+
+ * io.c (rb_io_s_binread): fixed rdoc. parts of a patch from Roger
+ Pack in [ruby-core:29861].
+
+Thu Apr 29 03:50:49 2010 James Edward Gray II <jeg2@ruby-lang.org>
+
+ * lib/xmlrpc/utils.rb: Fixing an incompatibility with
+ reflection methods returning Symbols. Patch by
+ HD Moore. [ruby-core:29821]
+
+Wed Apr 28 23:53:15 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * lib/thwait.rb: revise rdoc. a patch from Roger Pack in
+ [ruby-core:27362].
+
+Wed Apr 28 23:21:42 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * ext/json: Update to JSON 1.4.2.
+
+Wed Apr 28 22:53:57 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * thread. (rb_thread_terminate_all): revert r24591 which caused SEGV
+ sometimes. [ruby-dev:40936] [ruby-core:27245] [ruby-core:27416]
+
+Wed Apr 28 22:26:55 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * test/psych/visitors/test_yaml_tree.rb (test_struct_const): remove
+ Struct::Foo which affects test/ruby/test_struct to warn redefining
+ constant.
+
+Wed Apr 28 18:04:48 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * time.c (time_timespec): use rb_check_funcall.
+
+Wed Apr 28 17:14:10 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/socket/extconf.rb: CMSG_ macros are broken on 64bit darwin,
+ because of use of __DARWIN_ALIGN.
+
+Wed Apr 28 16:44:58 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * include/ruby/ruby.h ({RSTRING,RSTRUCT,RBIGNUM}_LENINT): check long
+ to cast to int.
+
+Wed Apr 28 16:28:51 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/socket/unixsocket.c (sendmsg_blocking, recvmsg_blocking):
+ define only when used.
+
+ * ext/socket/rubysocket.h: non-implemented method definitions need
+ to be shared.
+
+Wed Apr 28 10:27:33 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * vsnprintf.c (ruby_vsnprintf, ruby_snprintf): suppress warnings.
+ why return int in spite of the arguments of size_t?
+
+Wed Apr 28 09:49:21 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * tool/compile_prelude.rb: enable optimization.
+
+Wed Apr 28 09:43:24 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (warn_balanced): do not warn for EXPR_ENDFN.
+
+Tue Apr 27 23:57:04 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * eval.c (ruby_cleanup): add exception guard around code running
+ signal handler (of r27513). Absence of the guard made
+ bootstraptest/test_thread.rb fail sometimes.
+
+Tue Apr 27 22:55:29 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * insns.def (onceinlinecache): add exclusion control for a region
+ between onceinlinecache and setinlinecache. [ruby-dev:39768]
+
+Tue Apr 27 22:40:54 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * iseq.c (set_relation): do not use top_wrapper as bottom of cref,
+ which caused constant lookup error when "wrapped load" is used;
+ instead, use Object as bottom, and push top_wrapper on Object.
+ [ruby-core:25039]
+
+Tue Apr 27 21:24:40 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * eval.c (ruby_cleanup): before cleanup, check signal buffer and run
+ handler if any. [ruby-core:20970]
+
+ * thread.c (rb_threadptr_check_signal): separated from
+ timer_thread_function.
+
+Tue Apr 27 18:00:50 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/net/smtp.rb (Net::SMTP#rcptto_list): fixed typo.
+ [ruby-core:29809]
+
+Tue Apr 27 12:44:23 2010 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rdoc: Import RDoc 2.5.7. Fixes #1318 and ruby-core:29780.
+
+Tue Apr 27 10:54:14 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (parser_read_escape): deny extra character escapes.
+ [ruby-core:27228]
+
+Tue Apr 27 06:20:13 2010 Tanaka Akira <akr@fsij.org>
+
+ * io.c (select_internal): IO which cbuf is not empty is readable.
+
+Tue Apr 27 00:07:32 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * parse.y (program): check void_expr when rb_parse_in_main().
+ [ruby-dev:38717]
+
+Mon Apr 26 20:11:05 2010 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * complex.c, rational.c, lib/cmath.rb, lib/date.rb lib/date/delta*:
+ reverted r27484-27486. now official spec.
+
+Mon Apr 26 15:42:59 2010 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * ext/json/generator/generator.c (convert_UTF8_to_JSON_ASCII): get rid
+ of a warning.
+
+Mon Apr 26 13:11:57 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (ripper_get_value): escape Qundef.
+
+Mon Apr 26 12:42:43 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (warn_balanced): warn according to last state.
+
+Mon Apr 26 09:05:30 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * ext/json: Update to JSON 1.4.1.
+
+Sun Apr 25 23:50:08 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * io.c (ruby_dup): update max fd.
+
+Sun Apr 25 21:56:49 2010 Shugo Maeda <shugo@ruby-lang.org>
+
+ * lib/net/imap.rb (fetch_internal): do not quote message data item
+ names. Thanks, Eric Hodel. [ruby-core:23508]
+
+Sun Apr 25 15:59:02 2010 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * lib/cmath.rb: reverted experimental r23900.
+
+Sun Apr 25 15:51:00 2010 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * complex.c, rational.c: reverted experimental r24565.
+
+Sun Apr 25 15:34:48 2010 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * lib/date.rb, lib/date/delta*: reverted experimental r24567 and
+ r25393.
+
+Sun Apr 25 11:02:20 2010 wanabe <s.wanabe@gmail.com>
+
+ * hash.c (ruby_setenv): putenv on msvcrt.dll can't remove empty value.
+
+Sat Apr 24 23:40:50 2010 Tanaka Akira <akr@fsij.org>
+
+ * lib/pp.rb: use [""].pack("p").size to detect the pointer size.
+
+Sat Apr 24 21:07:27 2010 Tanaka Akira <akr@fsij.org>
+
+ * test/psych/test_psych.rb: don't leave temporary files.
+
+Sat Apr 24 16:27:48 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * Makefile.in (RUBY_PROGRAM_VERSION): added
+
+ * tool/rbinstall.rb: expand target file name.
+
+ * template/fake.rb.in: no need for hook if extmk.
+
+Sat Apr 24 14:40:20 2010 Tanaka Akira <akr@fsij.org>
+
+ * io.c: raise IOError when byte oriented operations occur with
+ non-empty character buffer.
+ [ruby-dev:40493] [ruby-dev:40506]
+
+Sat Apr 24 13:06:57 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ruby.c (get_arglen): skip the last terminator of argv before
+ checking environ.
+
+ * ruby.c (get_arglen): duplicate environ area if setenv and unsetenv
+ are provided.
+
+ * ruby.c (set_arg0): keep empty strings.
+
+Sat Apr 24 09:44:40 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/syck/yaml2byte.c (bytestring_append, bytestring_extend):
+ removed wrong extra assignments. a patch from Marcus Rueckert
+ <darix AT opensu.se> at [ruby-core:29759].
+
+Sat Apr 24 00:41:52 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * process.c (rb_f_fork): remove after_exec() which sometimes caused
+ two timer threads started. [ruby-core:25217]
+
+ * signal.c: use pthread_sigmask() instead of sigprocmask().
+ sigprocmask() is unspecified behavior on multi-thread programs.
+ [ruby-core:25217]
+
+Sat Apr 24 00:36:05 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * test/dl/test_base.rb: add kfreebsd support. based on a patch from
+ Petr Salinger in [ruby-core:29769].
+ http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=560293
+
+Sat Apr 24 00:14:41 2010 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * ext/openssl/ossl_ssl_session.c (SSL_SESSION_cmp): remove static for
+ loopy version of openssl (0.9.8l?).
+
+Fri Apr 23 23:27:17 2010 Tanaka Akira <akr@fsij.org>
+
+ * ext/openssl/ossl_config.c: fix compilation failure with
+ OpenSSL 0.9.8.
+
+Fri Apr 23 17:29:35 2010 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * ext/openssl/ossl_config.c: OpenSSL 1.0.0 support.
+ [ruby-core:29256]
+
+ * ext/openssl/extconf.rb: check some functions added/removed at
+ OpenSSL 1.0.0.
+
+ * ext/openssl/ossl_engine.c (ossl_engine_s_load): use engines which
+ exists.
+
+ * ext/openssl/ossl_ssl_session (SSL_SESSION_cmp): removed at 1.0.0,
+ so implement compatible function here.
+
+Fri Apr 23 14:37:22 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * gem_prelude.rb (Gem::QuickLoader.load_full_rubygems_library):
+ get rid of creating same regexps many times.
+
+ * lib/rubygems/custom_require.rb (Kernel#require): ditto.
+
+Fri Apr 23 14:07:36 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * doc/etc.rd, doc/etc.rd.ja: moved from ext/etc.
+
+ * ext/etc.c (Init_etc): fixed rdoc.
+
+Fri Apr 23 11:31:25 2010 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rdoc: Update to RDoc 2.5.6.
+
+Fri Apr 23 04:11:26 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * test/ripper/test_parser_events.rb (test_unterminated_regexp):
+ separate test.
+
+Fri Apr 23 01:47:54 2010 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/win32.c (rb_w32_wopen): shouldn't use FILE_FLAG_OVERLAPPED with
+ normal file. #1807, #2510, #2549
+
+Fri Apr 23 01:28:03 2010 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * thread_win32.c (ubf_handle): remove unused typedef.
+
+Thu Apr 22 23:10:59 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * proc.c (mnew): fix wrong error message when Kernel#public_method
+ receives name of private method. [Bug #2425]
+
+Thu Apr 22 22:56:42 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * bootstraptest/test_thread.rb: fix test. [Bug #2342]
+
+Thu Apr 22 21:50:17 2010 Keiju Ishitsuka <keiju@ruby-lang.org>
+
+ * lib/irb/ext/multi-irb.rb: fix multi-irb running
+ parallelly. [ruby-dev:41031] [Bug #3182]
+
+Thu Apr 22 17:13:34 2010 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems: Import RubyGems 1.3.7.pre.1 (as 1.3.6.1).
+
+Thu Apr 22 16:43:31 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (warn_balanced): removed false warning.
+
+ * parse.y (parser_yylex): skip whitespaces after method name.
+
+Wed Apr 22 02:16:00 2010 Kenta Murata <mrkn@mrkn.jp>
+
+ * ext/bigdecimal/bigdecimal.[ch]: replace _DEBUG with BIGDECIMAL_DEBUG
+ to prevent activating debugging code when compiled with -DEBUG flag
+ on Windows. [ruby-core:22989] #1308
+
+Wed Apr 21 21:24:20 2010 Tanaka Akira <akr@fsij.org>
+
+ * ext/digest/sha2/extconf.rb: check SHA256_CTX and SHA512_CTX to fix
+ compilation failure on OpenBSD 4.4.
+
+Wed Apr 21 15:13:10 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * io.c (io_getc): fix incomplete character immediately before EOF
+ with newline converter. [ruby-dev:41024]
+
+Wed Apr 21 13:44:54 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (regexp): check each fragments. [ruby-core:27374]
+
+Wed Apr 21 13:36:01 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (parser_yylex): reverted r27388 due to backward
+ compatibility.
+
+ * parse.y (parser_yylex): warn confusing binary operators after
+ local variable.
+
+Wed Apr 21 11:53:47 2010 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rdoc: Update to RDoc 2.5.5. Fixes bugs in ri, Darkfish and
+ rdoc option handling.
+
+Wed Apr 21 11:31:35 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (parser_yylex): abandoned EXPR_VCALL.
+
+Wed Apr 21 03:17:17 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * io.c (io_getc): set read_encoding to resulted one character
+ string. [ruby-dev:41023]
+
+Wed Apr 21 00:29:39 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * bignum.c (bigmul1_karatsuba): fix calculation order to prevent
+ underflow. [ruby-core:29088]
+
+Wed Apr 21 00:26:17 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * compile.c (NODE_NEXT, NODE_REDO): add dummy putnil instruction to
+ fix stack consistency error. [ruby-core:28172]
+
+ * bootstraptest/test_jump.rb: add a test for above.
+
+Wed Apr 21 00:16:44 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * ext/zlib/zlib.c (rb_deflate_params): update buf_filled count because
+ deflateParams writes to out buffer. And, revert r18029 because the
+ flush was not needed now and emits garbage. [ruby-dev:40802]
+
+Wed Apr 21 00:01:05 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * vm_method.c (rb_add_method_def): decrement alias count of
+ rb_method_definition_t to prevent memory leak. see
+ [ruby-dev:41021].
+
+Tue Apr 20 21:33:06 2010 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * ext/dl/win32/lib/win32/registry.rb (PredefinedKey#create): root key
+ name should be a string. fixed [ruby-core:28192]
+
+Tue Apr 20 19:25:50 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (parser_yylex): fix for tLPAREN_ARG.
+
+Tue Apr 20 12:34:23 2010 Takeyuki FUJIOKA <xibbar@ruby-lang.org>
+
+ * lib/cgi/{core, util}.rb (RFC822_DAYS, RFC822_MONTHS):
+ move the constant because used only util.rb.
+
+Tue Apr 20 12:24:57 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (lex_state_e, IS_END, IS_SPCARG, parser_yylex): separate
+ the state after vcall. [ruby-core:29578]
+
+Tue Apr 20 01:03:00 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * bootstraptest/test_fork.rb: add a test for [ruby-core:28924].
+
+Tue Apr 20 00:43:03 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * file.c (rb_file_s_extname): skip last directory separators.
+ [ruby-core:29627]
+
+Tue Apr 20 00:41:25 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * io.c (internal_{read,write}_func, rb_{read,write}_internal):
+ reverted r27265, since now rb_thread_blocking_region() preserves
+ errno.
+
+Mon Apr 19 23:14:45 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * thread.c (rb_thread_blocking_region, rb_thread_blocking_region_end):
+ preserve errno. [Bug #2606] [ruby-core:28924]
+
+Mon Apr 19 19:41:10 2010 URABE Shyouhei <shyouhei@ruby-lang.org>
+
+ * lib/fileutils.rb (FileUtils::cp_r): backport r11156 from ruby_1_8.
+
+Mon Apr 19 19:18:53 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (parser_yylex): reduced duplicated conditions.
+
+Mon Apr 19 13:58:04 2010 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rdoc: Update to RDoc 2.5.4. Fixes #3169, #3160, #3023.
+
+Mon Apr 19 12:46:15 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/timeout.rb (Timeout#timeout): propagate errors to the
+ caller. [ruby-dev:41010]
+
+Mon Apr 19 00:27:03 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * vm_method.c (rb_add_method_def): workaround fix for redefinition
+ of methods. This is because cfp->me uses the rb_method_entry
+ which is freed by redefinition of remove_method. Note that
+ reusing may cause another problem when the usage is changed.
+ [ruby-core:27320] [ruby-core:29464]
+
+Sun Apr 18 22:13:21 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (string_content): cond_stack and cmdarg_stack are VALUE.
+
+Sun Apr 18 18:07:47 2010 Tanaka Akira <akr@fsij.org>
+
+ * lib/resolv.rb (Resolv::IPv4::Regex): make it only accept 0 to 255.
+ [ruby-core:29501]
+
+Sun Apr 18 12:48:51 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (parser_yylex): seems like a symbol-literal when spaces
+ are unbalanced. [ruby-core:29578]
+
+Sun Apr 18 12:32:03 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (string_content): preserve cond_stack and cmdarg_stack.
+ [ruby-core:29579]
+
+Sun Apr 18 05:50:58 2010 Aaron Patterson <aaron@tenderlovemaking.com>
+
+ * ext/psych/lib/psych/visitors/yaml_tree.rb: defaulting binary string
+ format to "literal" format.
+
+Sun Apr 18 02:13:59 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * lib/irb/ruby-lex.rb (identify_identifier): add '_' to the regexp.
+
+Sat Apr 17 23:21:15 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * configure.in: use AC_TRY_LINK instead of AC_TRY_COMPILE.
+ On Solaris it can compile with signbit but can't link.
+
+Sat Apr 17 20:34:09 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * test/ruby/envutil.rb: update Gem::ConfigMap to fake environment for
+ tests. Some test of rubygems had failed because envutil.rb changed
+ only RbConfig::CONFIG but not Gem::ConfigMap.
+
+Sat Apr 17 20:31:08 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * lib/irb/ruby-lex.rb (identify_identifier): allow multibyte character
+ as identifier. [ruby-core:27275]
+
+Sat Apr 17 09:19:27 2010 wanabe <s.wanabe@gmail.com>
+
+ * compile.c (iseq_compile_each): fix splat condition in NODE_WHEN.
+ [Bug #2226]
+
+Sat Apr 17 08:57:41 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/net/smtp.rb (Net::SMTP#rcptto_list): continue when at least
+ one RCPT is accepted. based on a patch from Kero van Gelder at
+ [ruby-core:26190].
+
+Sat Apr 17 07:43:55 2010 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
+
+ * test/thread/test_queue.rb (TestQueue#grind): fix typos.
+
+Sat Apr 17 07:27:53 2010 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
+
+ * NEWS: add Array#repeated_{combination,permutation} [Feature #2981]
+
+Sat Apr 17 05:30:22 2010 Aaron Patterson <aaron@tenderlovemaking.com>
+
+ * ext/psych/lib/psych/core_ext.rb (yaml_as): supporting deprecated
+ "yaml_as" method
+ * ext/syck/lib/syck/tag.rb: ditto
+
+Sat Apr 17 05:25:15 2010 Aaron Patterson <aaron@tenderlovemaking.com>
+
+ * ext/psych/lib/psych/coder.rb (scalar): supporting deprecated methods
+ * ext/psych/lib/psych/deprecated.rb: supporting deprecated
+ to_yaml_properties method
+
+Sat Apr 17 01:32:50 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * io.c (rb_io_rewind, rb_io_eof): add rdoc. based on a patch from
+ Roger Pack in [ruby-core:26771] [Bug #2377].
+
+Fri Apr 16 23:42:56 2010 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+
+ * test/win32ole/test_folderitem2_invokeverb.rb (test_invokeverb):
+ run test only when "Create Shortcut (&S)" menu is found.
+ [ruby-core:29550] [Bug #1602]
+
+Fri Apr 16 21:52:16 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * parse.y (string_content, etc): counts of CMDARG_PUSH and POP were
+ inconsistent. [ruby-core:22637]
+
+Fri Apr 16 21:27:57 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * ext/bigdecimal/bigdecimal.c (BigDecimal_coerce): revert r23389,
+ which not only is unnecessary but also causes the inconsistency of
+ return type. [ruby-core:25706] [Bug #2129]
+
+Fri Apr 16 20:05:24 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * lib/thread.rb (Queue#push, #pop, SizedQueue#push, #pop): remove
+ code that kicks waiting thread twice, which caused race and
+ deadlock. a patch from James M. Lawrence. [ruby-core:25537]
+
+ * test/thread/test_queue.rb: added.
+
+Fri Apr 16 20:01:47 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * .gitignore: updated.
+
+Fri Apr 16 16:51:14 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * tool/file2lastrev.rb (VCS::SVN::get_revisions.): remind about
+ DOSISH, sometimes.
+
+Fri Apr 16 16:15:40 2010 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * array.c (rb_ary_repeated_permutation): new method added. a patch
+ from Makoto Kishimoto in [ruby-core:29267] [ruby-core:28724]
+
+ * array.c (rb_ary_repeated_combination): ditto.
+
+Thu Apr 15 22:41:47 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * thread.c (rb_thread_priority, rb_thread_priority_set): fix rdoc.
+ Lower-priority thread may run even if there are higher-priority
+ threads. See [ruby-dev:40977].
+
+Thu Apr 15 22:33:35 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * lib/uri/ftp.rb (URI::FTP#set_path): added to correct handling of
+ special case where path of ftp is relative. This converts relative
+ path to absolute one, because external representation of ftp path is
+ relative and internal representation is absolute. [ruby-core:24077]
+
+ * lib/uri/ftp.rb (URI::FTP#initialize): converts absolute to relative.
+
+ * lib/uri/generic.rb (URI::Generic#check_path): allow relative path
+ when scheme is ftp.
+
+Thu Apr 15 21:54:39 2010 Tanaka Akira <akr@fsij.org>
+
+ * tool/file2lastrev.rb: use backtick for ruby 1.8.
+
+Thu Apr 15 21:13:29 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * tool/file2lastrev.rb: this should run with ruby 1.8.
+
+Thu Apr 15 20:41:10 2010 Tanaka Akira <akr@fsij.org>
+
+ * tool/file2lastrev.rb: make -q effective for files not version
+ controlled.
+
+Thu Apr 15 14:50:19 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * vm.c (vm_backtrace_each): get rid of use of malloc from signal
+ handler by using ruby_engine_name. [ruby-core:29497]
+
+ * vm_eval.c (print_backtrace): file may be nil when segfaulted in
+ very early stage.
+
+ * vm_dump.c (bugreport_backtrace): ditto.
+
+Thu Apr 15 11:51:49 2010 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * common.mk (help): small fix.
+
+Wed Apr 14 22:09:28 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * lib/rexml/source.rb: force_encoding("UTF-8") when the input
+ is already UTF-8. patched by Kouhei Sutou [ruby-core:23404]
+
+Wed Apr 14 18:23:00 2010 Kenta Murata <mrkn@mrkn.jp>
+
+ * configure.in (signbit): signbit is a macro in C99.
+
+Wed Apr 14 17:56:06 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * io.c (io_shift_cbuf): should terminate.
+ http://golf.shinh.org/p.rb?DECimal+number+to+BINary#Ruby
+
+Wed Apr 14 16:29:02 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * gc.c (GET_STACK_BOUNDS): fixed macro argument names. a patch from
+ Satoshi Shiba <shiba AT rvm.jp> at [ruby-dev:40973].
+
+ * gc.h (ruby_get_stack_grow_direction): fixed prototype.
+
+ * thread_pthread.c (get_stack, ruby_stack_overflowed_p): both side
+ should be same type. [Bug #3145]
+
+Wed Apr 14 15:58:11 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * string.c (rb_string_value_cstr): make NUL terminated if it is
+ not done.
+
+Wed Apr 14 12:56:21 2010 Shugo Maeda <shugo@ruby-lang.org>
+
+ * lib/net/imap (encode_utf7): encode & properly. Thanks, Kengo
+ Matsuyama. [ruby-dev:38063]
+
+Wed Apr 14 11:39:26 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/syck/lib/syck/basenode.rb (Syck::BaseNode#match_path): fixed
+ library name.
+
+ * ext/syck/lib/yaml/syck.rb: split from ext/syck/lib/syck.rb for
+ backward compatibility.
+
+Wed Apr 14 09:24:07 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * ext/nkf/nkf-utf8/nkf.c: Refix [nkf-bug:21393]. (explicit -X)
+
+Tue Apr 13 20:36:50 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * ext/nkf/nkf-utf8/nkf.c: Fix: Windows Codepages wrongly convert
+ Halfwidth Katakana. [nkf-bug:21393]
+
+Tue Apr 13 15:00:45 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * random.c (make_seed_value): fix leading-zero-guard condition on
+ bdigit is smaller than 32bit.
+
+Tue Apr 13 13:57:36 2010 Keiju Ishitsuka <keiju@ruby-lang.org>
+
+ * lib/irb/completion.rb (CompletionProc): fix [ruby-dev:40953]
+ [Bug #3126]. Thanks Kazuhiro NISHIYAMA.
+
+Tue Apr 13 09:32:12 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * transcode.c (transcode_loop): insert output the value when
+ fallback hash has a related key. [ruby-dev:40540]
+ [ruby-dev:40829] #3036
+
+ * transcode.c (rb_econv_prepare_opts): pass to newhash
+ a value with the key :fallback.
+
+Tue Apr 13 00:12:04 2010 Tanaka Akira <akr@fsij.org>
+
+ * random.c (rand_init): use the absolute value of seed to
+ make srand(-2**40) portable with 32bit and 64bit.
+ [ruby-core:29292](2)
+
+Mon Apr 12 22:48:47 2010 Tanaka Akira <akr@fsij.org>
+
+ * enumerator.c (inspect_enumerator): don't raise for uninitialized
+ enumerator.
+
+Mon Apr 12 21:47:41 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * LEGAL: separated the section for parse.c. contributed by Paul
+ Betteridge in [ruby-core:29472].
+
+Mon Apr 12 09:19:49 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/fileutils.rb (fu_each_src_dest): ensure src is accessible.
+
+ * lib/fileutils.rb (fu_same): use File.identical? to get rid of
+ exceptions. [ruby-core:28141]
+
+ * lib/fileutils.rb (fu_have_st_ino): no longer used.
+
+ * lib/fileutils.rb (fu_have_st_ino): check if required method is
+ defined, instead of platform name.
+
+Mon Apr 12 05:10:20 2010 Marc-Andre Lafortune <ruby-core@marc-andre.ca>
+
+ * lib/matrix.rb: New method Matrix.build [ruby-core:28272]
+
+Mon Apr 12 03:45:25 2010 Marc-Andre Lafortune <ruby-core@marc-andre.ca>
+
+ * lib/matrix.rb: Deprecate elements_to_{f/i/r}
+
+Mon Apr 12 03:30:29 2010 Marc-Andre Lafortune <ruby-core@marc-andre.ca>
+
+ * lib/matrix.rb: Handle coercion errors by raising TypeErrors
+ [ruby-core:26736]
+
+Mon Apr 12 00:51:21 2010 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
+
+ * io.c (rb_io_getline_fast, rb_io_getline_1): fix ARGF.lineno
+ behavior. [ruby-core:25205]
+
+ * test/ruby/test_argf.rb (TestArgf#test_lineno3): add a test for
+ above.
+
+Sun Apr 11 23:25:17 2010 Yutaka Kanemoto <kanemoto@ruby-lang.org>
+
+ * configure.in: can not load libraries if --with-opt-dir is used
+ on AIX. [Bug #3107]
+
+Sun Apr 11 14:44:45 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * lib/irb/ruby-lex.rb (RubyLex#getc): revert r10817, which caused
+ regression for handling case when there is no newline at the end of
+ file. [ruby-core:28248]
+
+Sun Apr 11 12:08:49 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * encoding.c (enc_replicate): new encoding name must be valid
+ c-string. [ruby-dev:40954]
+
+Sun Apr 11 11:58:23 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * include/ruby/win32.h (ftruncate): rename to get rid of conflict
+ with same name but non-LFS function on MinGW. [ruby-core:24757]
+
+Sun Apr 11 10:33:34 2010 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rdoc: Update to RDoc 2.5.3. Includes r27288 and r27290.
+
+Sun Apr 11 09:31:39 2010 Aaron Patterson <aaron@tenderlovemaking.com>
+
+ * test/syck/*: Moved test/yaml to test/syck since it's actually
+ testing the syck YAML engine.
+
+Sun Apr 11 08:56:44 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * lib/rdoc/rdoc.rb (setup_output_dir): compare by Time#to_i.
+ Cached created time doesn't have fractional times,
+ but FileStat#mtime has; so rdoc almost always judged files
+ are updated.
+
+Sun Apr 11 07:40:48 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * lib/rdoc/rdoc.rb (setup_output_dir): fix typo. [ruby-core:29415]
+
+Sun Apr 11 07:01:41 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * lib/uri/common.rb (decode_www_form_component): validate.
+ [ruby-dev:40938]
+
+ * lib/uri/common.rb (decode_www_form): allow empty string.
+
+ * lib/uri/common.rb: fix nodoc for constant. [ruby-dev:40949]
+
+Sat Apr 10 21:26:22 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * lib/rdoc/markup/preprocess.rb (RDoc::Markup::PreProcess#handle):
+ use File.binread to avoid locale dependency.
+
+Sat Apr 10 15:18:26 2010 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rdoc: Import RDoc 2.5.2
+ * lib/rdoc/parser/ruby.rb (RDoc::Parser::Ruby): Don't parse rdoc
+ files, reverts r24976 in favor of include directive support in C
+ parser.
+
+Sat Apr 10 13:14:22 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * ext/openssl/ossl_ssl.c (Init_ossl_ssl): add SSLContext#ssl_timeout=,
+ which allows net/https to specify timeout. [ruby-core:24812]
+
+Sat Apr 10 07:36:13 2010 wanabe <s.wanabe@gmail.com>
+
+ * vm_method.c (rb_add_method): clear attr.location before rb_ary_new3.
+ a patch from Masaya TARUI in [Bug #3108]
+
+Sat Apr 10 05:27:26 2010 Aaron Patterson <aaron@tenderlovemaking.com>
+
+ * ext/psych/lib/psych/deprecated.rb: implementing Psych.quick_emit and
+ adding deprecation warnings.
+ * ext/psych/lib/psych/visitors/to_ruby.rb: supporting deprecated
+ yaml_initialize api.
+ * ext/psych/lib/psych/visitors/yaml_tree.rb: supporting deprecated
+ to_yaml api.
+
+Sat Apr 10 01:08:53 2010 Aaron Patterson <aaron@tenderlovemaking.com>
+
+ * ext/psych/parser.c: parse raises a TypeError when nil is passed in.
+
+Sat Apr 10 00:01:51 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * ext/pty/lib/expect.rb: preserve buffer read, instead of discard.
+ based on a patch from Luiz Angelo Daros de Luca in
+ [ruby-core:23464].
+
+Fri Apr 9 23:58:58 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * ext/pty/lib/expect.rb: raise an error when argument is unexpected
+ type. based on a patch from Luiz Angelo Daros de Luca in
+ [ruby-core:23464].
+
+Fri Apr 9 23:57:35 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * ext/pty/lib/expect.rb: add rdoc. based on a patch from Luiz Angelo
+ Daros de Luca in [ruby-core:23464].
+
+Fri Apr 9 23:54:16 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * lib/irb/init.rb, lib/irb/lc/help-message,
+ lib/irb/lc/ja/help-message: add -w flag. [ruby-core:24594]
+
+Fri Apr 9 23:51:45 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * ext/socket/ipsocket.c (init_inetsock_internal),
+ ext/socket/unixsocket.c (rsock_init_unixsock): check the result of
+ listen(2). based on a patch from Mike Pomraning. [ruby-core:23698]
+
+Fri Apr 9 21:22:10 2010 Keiju Ishitsuka <keiju@ruby-lang.org>
+
+ * lib/irb/completion.rb (CompletionProc): irb will be stuck with
+ long variable name at completion. [Bug#1969]. refix [ruby-core:28366].
+
+Fri Apr 9 20:54:10 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * lib/uri/common.rb (decode_www_form): don't ignore leading '?'.
+ [ruby-dev:40938]
+
+ * lib/uri/common.rb (decode_www_form): check whether argument is
+ valid application/x-www-form-urlencoded data.
+
+Fri Apr 9 20:29:13 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * dir.c (push_glob): clear up the previous commit (RB_GC_GUARD can
+ precede the last reference). [ruby-dev:40942]
+
+Fri Apr 9 20:05:05 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * dir.c (push_glob): add RB_GC_GUARD to prevent str being free'ed.
+ a patch from Masaya TARUI in [ruby-dev:40939]. [ruby-dev:40514]
+
+Fri Apr 9 10:53:00 2010 Kenta Murata <mrkn@mrkn.jp>
+
+ * compile.c (iseq_compile_each): stop hiding, and freeze unpopped
+ string nodes to allow method redefinition. [ruby-dev:40641]
+
+Fri Apr 9 01:26:54 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * io.c (internal_{read,write}_func, rb_{read,write}_internal):
+ preserve errno. a patch from Takehiro Kubo in [ruby-core:29340].
+ [ruby-core:28924]
+
+Fri Apr 9 01:12:07 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * lib/irb/completion.rb (CompletionProc): calling the method "methods"
+ may raise an exception. [ruby-core:28366]
+
+Thu Apr 8 14:33:24 2010 URABE Shyouhei <shyouhei@ruby-lang.org>
+
+ * configure.in: --disable-install-doc should prohibit doxygen.
+
+Thu Apr 8 14:23:51 2010 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * include/ruby/win32.h: include errno.h before defining errnos.
+ see [ruby-core:29314]
+
+Thu Apr 8 11:45:14 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/yaml.rb: use Psych if only it is loaded already.
+
+ * lib/yaml.rb (YAML::EngineManager#yamler): set the result after
+ successfully switched.
+
+Thu Apr 8 07:22:05 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * random.c (rand_init): ignore higher bits if all they are same as
+ the lower sign bit. [ruby-core:29292](2)
+
+Thu Apr 8 07:16:19 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/irb/cmd/help.rb (IRB::ExtendCommand::Help#execute): use RI
+ interactive mode if no argument. [ruby-dev:39839]
+
+Wed Apr 8 02:33:55 2010 Marc-Andre Lafortune <ruby-core@marc-andre.ca>
+
+ * array.c (rb_ary_permutation): Remove limitation for lengthy permutations
+ [ruby-core:29240]
+
+ * test/ruby/test_array.rb: ditto
+
+Wed Apr 7 23:33:55 2010 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
+
+ * misc/ruby-mode.el (ruby-mode-map): binded C-c C-c and C-c C-c C-u
+ to comment-region and uncomment-region. Thanks Michael Klishin!
+ [Feature #872] [ruby-core:20552]
+
+Wed Apr 7 21:44:14 2010 Tanaka Akira <akr@fsij.org>
+
+ * time.c (ASCTIME): unused macro removed.
+
+Wed Apr 7 16:45:49 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (Makefile): reverted r27244.
+
+Wed Apr 7 11:49:34 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * lib/rexml/quickpath.rb (REXML::QuickPath::predicate):
+ fix regexp.
+
+Wed Apr 7 09:44:48 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (Makefile): quote init-commands.
+
+ * configure.in (Makefile): `make ruby` builds ruby command
+ even if RUBY_INSTALL_NAME is customized or it has extension.
+
+Wed Apr 7 03:28:27 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/rdoc/rdoc.rb (RDoc#{initialize,setup_output_dir}):
+ initialize @last_created and use it.
+
+Wed Apr 7 02:05:41 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * template/fake.rb.in: not define $extout to make target in cwd.
+
+Tue Apr 6 23:01:35 2010 KOSAKI Motohiro <kosaki.motohiro@gmail.com>
+
+ * vm_core.h: Introduce UNINITIALIZED_VAR() macro.
+ * thread.c (do_select): Use UNINITIALIZED_VAR() instead FAKE_FD_ZERO().
+ Also, remove FAKE_FD_ZERO completely. [Feature #3018]
+
+Tue Apr 6 14:53:17 2010 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * include/ruby/win32.h: check definition existence before defining
+ errno macros.
+
+ * win32/win32.c (errmap): define winsock errors mappings.
+ these are VC++10 support. see [ruby-core:29278]
+
+Tue Apr 6 21:55:25 2010 Tanaka Akira <akr@fsij.org>
+
+ * configure.in: test localtime(3) overflow. [ruby-dev:40910]
+
+ * time.c (rb_gmtime_r): renamed from rb_gmtime.
+ (rb_localtime_r): renamed from rb_localtime.
+ (rb_localtime_r2): call rb_localtime_r and validate the result if
+ there is overflow problem.
+ (rb_gmtime_r2): call rb_gmtime_r and validate the result if there
+ is overflow problem.
+
+Tue Apr 6 11:21:23 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * template/fake.rb.in: hooks for extconf.rb.
+
+Tue Apr 6 06:19:36 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * lib/rexml/text.rb (REXML::Text.check): comment out
+ broken logic.
+
+Tue Apr 6 05:59:12 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * lib/rexml/parsers/baseparser.rb (LETTER, DIGIT):
+ always use POSIX charclass.
+
+ * lib/rexml/parsers/baseparser.rb (NAMECHAR):
+ remove duplicated range.
+
+ * lib/rexml/xmltokens.rb (NCNAME_STR, NAMECHAR): ditto.
+
+ * lib/rexml/parsers/xpathparser.rb (PathExpr): ditto.
+
+ * lib/rexml/text.rb (REXML::Text#initialize):
+ initialize @parent.
+
+Mon Apr 5 19:54:58 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * re.c (make_regexp): use onig_new_with_source to keep
+ sourcefile and sourceline.
+
+ * re.c (onig_new_with_source): copied from onig_new in
+ regcomp.c for keep sourcefile and sourceline.
+
+Mon Apr 5 13:20:45 2010 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * include/ruby/win32.h, win32/win32.c (EWOULDBLOCK): VC10 already
+ defined EWOULDBLOCK. based on a patch from Charlie Savage,
+ see [ruby-core:29255]
+
+Mon Apr 5 13:10:35 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * ext/psych/lib/psych/core_ext.rb: remove before alias.
+
+ * ext/syck/lib/syck.rb: don't warn called by itself.
+
+Mon Apr 5 13:08:24 2010 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/mkexports.rb (each_export): VC10 support.
+ a patch from Charlie Savage in [ruby-core:29254]
+
+Sun Apr 4 22:18:32 2010 Tanaka Akira <akr@fsij.org>
+
+ * time.c (cmp): optimize for fixnums.
+ (lt): use cmp.
+ (gt): ditto.
+ (le): ditto.
+ (ge): ditto.
+ (wlt): use wcmp.
+ (wgt): ditto.
+ (wle): ditto.
+ (wge): ditto.
+ (time_subsec): use wmod.
+
+Sun Apr 4 10:04:28 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * include/ruby/ruby.h: replace snprintf and vsnprintf by
+ ruby_snprintf and ruby_vsnprintf. [ruby-dev:40909]
+
+ * configure.in: don't check snprintf(3) and vsnprintf(3).
+
+ * include/ruby/missing.h: don't declare snprintf and vsnprintf.
+
+ * include/ruby/ruby.h: include stdarg.h.
+
+ * sprintf.c: include vsnprintf.c
+
+ * vsnprintf.c: renamed from missing/vsnprintf.c.
+
+ * vsnprintf.c: remove useless ifdefs.
+
+ * win32/mkexports.rb: use ruby_snprintf and ruby_vsnprintf.
+
+Sun Apr 4 09:44:01 2010 Tanaka Akira <akr@fsij.org>
+
+ * time.c (lt): call <=> instead of <.
+
+Sun Apr 4 06:46:16 2010 Aaron Patterson <aaron@tenderlovemaking.com>
+
+ * lib/yaml: Moved to ext/syck/lib, Syck only uses Syck constant.
+ * lib/yaml.rb: Added an engine manager for choosing YAML engine.
+ * ext/syck/lib/syck/rubytypes.rb: squashed warnings when using Psych
+
+Sat Apr 3 22:47:51 2010 Tanaka Akira <akr@fsij.org>
+
+ * time.c: don't define STRUCT_WIDEVAL.
+
+Sat Apr 3 18:15:02 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/rdoc/rdoc.rb (RDoc#{setup,update}_output_dir): store mtimes
+ per files in the flag file.
+
+ * lib/rdoc/rdoc.rb (RDoc#normalized_file_list): skip already
+ processed and unmodified files.
+
+Sat Apr 3 15:09:30 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * common.mk (rdoc): no force-update, and add RDOCFLAGS.
+
+ * lib/rdoc/options.rb (RDoc#parse): no-force-update option.
+
+Sat Apr 3 10:51:10 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * random.c (random_rand): raise ArgumentError on nil, as the
+ documentation implies. [ruby-core:29075]
+
+ * random.c (rb_f_rand): mentioned the case of when max is nil.
+
+Sat Apr 3 06:56:11 2010 Marc-Andre Lafortune <ruby-core@marc-andre.ca>
+
+ * array.c (rb_ary_product): Accept a block [ruby-core:29045]
+
+Sat Apr 3 04:46:00 2010 Tanaka Akira <akr@fsij.org>
+
+ * tool/file2lastrev.rb (VCS#relative_to): path and @srcdir may have
+ different relative-ness.
+
+Sat Apr 3 03:19:01 2010 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
+
+ * lib/benchmark.rb (Benchmark::Tms#add): fix NameError.
+ [ruby-dev:40906]
+
+ * test/benchmark/test_benchmark.rb: add a test for above.
+
+Sat Apr 3 01:50:02 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/rdoc/parser/ruby.rb (RDoc#make_message): no empty lines.
+
+ * lib/rdoc/stats.rb (RDoc::Normal#print_file): send to stdout and
+ flush always
+
+Sat Apr 3 00:03:11 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/rdoc/class_module.rb (RDoc#merge): get rid of stack overflow.
+
+ * lib/rdoc/parser/c.rb (RDoc#handle_method): see source files in
+ source directory.
+
+Fri Apr 2 22:13:38 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/rdoc/rdoc.rb: reverted r27186 to add generators.
+
+Fri Apr 2 21:17:43 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * NEWS: added reverse_lookup option.
+
+Fri Apr 2 15:26:14 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * test/rdoc/test_rdoc_ri_driver.rb (with_dummy_pager): don't grasp
+ the terminal.
+
+Fri Apr 2 14:43:18 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/rdoc/rdoc.rb (RDoc::Generator): defer by autoload.
+
+ * lib/rdoc/generator/darkfish.rb: use normal library instead of
+ gem.
+
+Fri Apr 2 14:26:26 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/rdoc/rdoc.rb (RDoc::RDoc#parse_files): don't branch by
+ RUBY_VERSION. reapplied r24990.
+
+ * lib/rdoc/rdoc.rb (RDoc::RDoc#parse_files): emacs local variables
+ are delimited by a semicolon. supported Vim style. reapplied
+ r24988 with fixing a typo for shebang.
+
+Fri Apr 2 14:16:54 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/rdoc/parser/ruby.rb (RDoc::Parser::Ruby): parse also rdoc
+ files. reapplied r24976.
+
+ * lib/rdoc/parser/c.rb: fixed a small error in the documentation.
+ [ruby-core:24744] reapplied r24395.
+
+ * lib/rdoc/parser.rb (RDoc::Parser.binary?): blksize may be nil
+ and is irrelevant to whether a file is binary. TAB and newlines
+ would be usually considered to be included in text data.
+ reapplied r23071 and r24297.
+
+Fri Apr 2 13:59:17 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/rdoc/ri/paths.rb (RDoc::RI::Paths): Gem::Enable has been
+ obsolete. reapplied r24599.
+
+ * lib/rdoc/ri/paths.rb: follows $ridir. reapplied r23554.
+
+ * lib/rdoc/ri/paths.rb (RDoc::HOMEDIR): expand_path deals with
+ platform dependent environments. reapplied r21312.
+
+Fri Apr 2 12:52:25 2010 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * lib/rdoc/parser.rb (binary?): regression.
+
+Fri Apr 2 11:54:49 2010 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/win32.c (init_env): wrong calculation of the head of setenv
+ string. [ruby-core:29216]
+ a patch from Heesob Park in [ruby-core:29218]
+
+Fri Apr 2 08:24:56 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * process.c (ruby_setsid): split from proc_setsid.
+
+ * process.c (proc_daemon): use EXIT_SUCCESS instead of magic number.
+
+Fri Apr 2 07:00:28 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/dl/cptr.c (rb_dlptr_inspect): fix format specifiers.
+
+Fri Apr 2 05:38:17 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * include/ruby/ruby.h (InitVM): calls per-VM initialization in
+ single VM, but does nothing in MVM.
+
+Fri Apr 2 02:56:56 2010 Marc-Andre Lafortune <ruby-core@marc-andre.ca>
+
+ * lib/matrix.rb: New instance methods:
+ empty? [ruby-core:26284], each, each_with_index [ruby-core:28400],
+ conjugate, conj, imaginary, imag, real, real?, rectangular, rect
+ [ruby-core:26285]
+
+ Removed compare_by*, inspect_org, cf [ruby-core:26268]
+
+ Matrix.empty: raise on negative sizes
+
+ Matrix.determinant: raise on rectangular matrices [ruby-core:28271]
+
+Thu Apr 1 17:17:00 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * enc/trans/iso2022.trans: CP50221 supports 8bit JIS.
+
+Thu Apr 1 16:44:00 2010 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rdoc, test/rdoc: Imported RDoc 2.5
+
+Thu Apr 1 14:30:16 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * enc/utf_16{be,le}.c (utf16{be,le}_mbc_to_code): simplified.
+
+Thu Apr 1 14:07:51 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * util.c (BSD__hdtoa): don't use C99 macros. (FP_NORMAL etc)
+
+Thu Apr 1 13:30:12 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * sprintf.c (rb_str_format): support %a format. [ruby-dev:40650]
+
+ * missing/vsnprintf.c (BSD_vfprintf): ditto.
+
+ * missing/vsnprintf.c (cvt): ditto.
+
+ * util.c (BSD__hdtoa): added. This is 2-clause BSDL licensed
+ by David Schultz and from FreeBSD.
+
+ * LEGAL: add about hdtoa() in util.c.
+
+Thu Apr 1 13:24:12 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * object.c (rb_cstr_to_dbl): return 0.0 if hexadecimal and
+ badcheck is FALSE: Float("0x1p+0") works, but "0x1p+0".to_f
+ doesn't. [ruby-dev:40650]
+
+ * util.c (ruby_strtod): allow hexadecimal integers.
+
+Thu Apr 1 13:20:50 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * lib/scanf.rb: support %a format. [ruby-dev:40650]
+
+Thu Apr 1 12:04:10 2010 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * include/ruby/ruby.h (PRE_TIMET_PREFIX): define if configure doesn't
+ defines it. [ruby-core:29190]
+
+Thu Apr 1 11:36:04 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * io.c (rb_io_initialize): fixed a rdoc miss that textmode and
+ binmode flag explanation was reversed each other. a patch from
+ Heesob Park in [ruby-core:29166].
+
+Thu Apr 1 09:54:27 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * include/ruby/ruby.h (RUBY_{DEFAULT,NEVER}_FREE): added.
+ [ruby-dev:40889]
+
+Thu Apr 1 04:55:08 2010 Tanaka Akira <akr@fsij.org>
+
+ * time.c (rb_big_abs_find_minbit): fix handling the last word.
+
+Thu Apr 1 04:30:11 2010 Tanaka Akira <akr@fsij.org>
+
+ * time.c (long_mul): overflow condition changed.
+ (wi_mul): ditto.
+
+Wed Mar 31 23:33:29 2010 Tanaka Akira <akr@fsij.org>
+
+ * time.c (long_mul): extracted from mul and avoid integer overflow.
+ (wi_mul): extracted from wmul and avoid integer overflow.
+
+Wed Mar 31 21:30:38 2010 Tanaka Akira <akr@fsij.org>
+
+ * time.c: less bignum allocations.
+
+ * strftime.c (rb_strftime_timespec): defined to avoid rational for
+ nano second resolution time.
+
+Wed Mar 31 16:05:13 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * test/rake/test_{package_task,rules,task_manager}.rb: use
+ temporary directories.
+
+Wed Mar 31 13:53:13 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * test/rubygems/gemutilities.rb (setup, teardown):
+ Object#to_yaml must use syck on RubyGem.
+
+Wed Mar 31 06:57:14 2010 Tanaka Akira <akr@fsij.org>
+
+ * time.c (timew2timespec): fix previous change.
+
+Wed Mar 31 00:32:19 2010 Tanaka Akira <akr@fsij.org>
+
+ * time.c (wdivmod): renamed from wdivmodv. fix neg/pos and pos/neg.
+ (split_second): return number of seconds as wideval_t.
+ (timet2wv): new function.
+ (wv2timet): new function.
+ (timet2wideval): removed.
+
+Tue Mar 30 22:24:19 2010 Tanaka Akira <akr@fsij.org>
+
+ * time.c: use more polymorphic operations.
+
+Tue Mar 30 22:12:38 2010 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
+
+ * NEWS: add URI.decode and URI.encode to Obsoleted methods,
+ and fix typos. [ruby-dev:40852]
+
+ * NEWS: add Time#subsec.
+
+Tue Mar 30 22:07:12 2010 Tanaka Akira <akr@fsij.org>
+
+ * time.c: reorder wide value implementation.
+
+Tue Mar 30 22:00:44 2010 Keiju Ishitsuka <keiju@ruby-lang.org>
+
+ * lib/irb.rb: support [Feature#988], [ruby-core:21177].
+ * lib/irb/context.rb: fix Context#verbose?.
+
+Tue Mar 30 21:56:33 2010 Tanaka Akira <akr@fsij.org>
+
+ * time.c: make wide value more polymorphic.
+
+Tue Mar 30 21:18:32 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * ext/psych/extconf.rb: install psych .so to not psych/ but direct.
+ This prepends to install *.rb files to psych/psych.
+
+ * ext/psych/lib/psych.rb: require 'psych.so'.
+
+Tue Mar 30 20:55:14 2010 Tanaka Akira <akr@fsij.org>
+
+ * time.c (w2v): renamed from w2xv.
+ (v2w): renamed from xv2w.
+ (rb_time_magnify): takes wideval_t.
+ (rb_time_unmagnify): returns wideval_t.
+
+Tue Mar 30 19:46:00 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/psych/lib: moved external library dependent files from lib.
+ [ruby-core:29129]
+
+Tue Mar 30 18:25:52 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * file.c (rb_file_dirname): split from rb_file_s_dirname.
+
+ * load.c (rb_f_require_relative): use absolute path instead of
+ expanded path.
+
+Tue Mar 30 13:57:08 2010 Akinori MUSHA <knu@iDaemons.org>
+
+ * process.c (proc_daemon): Process.daemon should raise an error on
+ failure regardless of whether the implementation uses daemon(3)
+ or not. [ruby-dev:40832]
+
+Tue Mar 30 13:11:17 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * tool/file2lastrev.rb (VCS::GIT_SVN): removed because git-log can
+ deal with git-svn repository faster than git-svn-info.
+
+ * tool/file2lastrev.rb (VCS#get_revisions): particular commands do
+ not depend on instance.
+
+Tue Mar 30 08:55:50 2010 Aaron Patterson <aaron@tenderlovemaking.com>
+
+ * ext/psych/extconf.rb: Making library detection more agnostic.
+
+Tue Mar 30 08:10:59 2010 Aaron Patterson <aaron@tenderlovemaking.com>
+
+ * lib/psych.rb: Fix problem with empty and white-space only strings.
+ Thanks Peter McLain!
+ * test/psych/test_psych.rb: tests for change.
+
+Tue Mar 30 05:31:39 2010 Aaron Patterson <aaron@tenderlovemaking.com>
+
+ * lib/psych.rb: documentation updates. Thanks Peter McLain!
+ * lib/psych/{coder,tree_builder}.rb: ditto
+
+Tue Mar 30 03:56:13 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * ext/psych/{emitter,parser,psych}.c: move variable
+ declaration to the first of the block.
+
+Mon Mar 29 21:47:44 2010 Akinori MUSHA <knu@iDaemons.org>
+
+ * prelude.rb, .document: Stuff in prelude.rb should be documented
+ as well.
+
+Mon Mar 29 20:23:05 2010 Keiju Ishitsuka <keiju@ruby-lang.org>
+
+ * lib/matrix.rb(Vector#each2, Vector#collect2): add type check for
+ Integer[Bug #2495].
+
+Mon Mar 29 19:45:09 2010 Tanaka Akira <akr@fsij.org>
+
+ * time.c: wide value condition changed.
+
+Mon Mar 29 18:10:03 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/optparse.rb (Numeric): accept rationals.
+
+Mon Mar 29 15:10:39 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/tempfile.rb (Tempfile#open): re-open with same mode and
+ options as initialize.
+
+Mon Mar 29 09:16:45 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * random.c: change include order; ruby.h should be at first.
+
+Mon Mar 29 06:47:25 2010 Aaron Patterson <aaron@tenderlovemaking.com>
+
+ * ext/psych/*: importing Psych to trunk
+ * test/psych/*: ditto
+ * lib/psych/*: ditto
+
+Sun Mar 28 10:03:51 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * lib/scanf.rb: fix max width modifier for %f.
+
+Sun Mar 28 10:35:45 2010 Ryan Davis <ryand-ruby@zenspider.com>
+
+ * lib/minitest/*.rb: Imported minitest 1.6.0 r5717.
+ * test/minitest/*.rb: ditto.
+
+Sun Mar 28 10:12:28 2010 Tanaka Akira <akr@fsij.org>
+
+ * time.c (rb_time_magnify): fix for LP64.
+
+Sun Mar 28 09:28:33 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * lib/scanf.rb: fix %[egEFG] isn't accept.
+
+Sun Mar 28 09:53:02 2010 Tanaka Akira <akr@fsij.org>
+
+ * time.c: rename small integer specialization related identifiers.
+
+Sun Mar 28 08:20:37 2010 Tanaka Akira <akr@fsij.org>
+
+ * time.c (weq): specialize for small integer.
+ (wne): ditto.
+ (wlt): ditto.
+ (wgt): ditto.
+ (wle): ditto.
+ (wge): ditto.
+ (rb_time_magnify): ditto.
+ (rb_time_unmagnify): ditto.
+ (rb_time_unmagnify_to_float): new function to avoid rational for
+ Time#to_f and Time#-.
+
+Sun Mar 28 07:12:41 2010 Tanaka Akira <akr@fsij.org>
+
+ * time.c (mul): condition refined.
+
+Sun Mar 28 02:14:13 2010 Tanaka Akira <akr@fsij.org>
+
+ * time.c: fix previous commit.
+
+Sat Mar 27 23:17:52 2010 Tanaka Akira <akr@fsij.org>
+
+ * time.c: use 64bit arithmetic even on platforms with 32bit VALUE.
+
+Fri Mar 26 23:52:07 2010 wanabe <s.wanabe@gmail.com>
+
+ * NEWS: add Thread#add_trace_func and Thread#set_trace_func.
+
+Fri Mar 26 22:58:10 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * ext/openssl/ossl_x509store.c (ossl_x509store_initialize): initialize
+ store->ex_data.sk. a patch from Christian Holtje in
+ [ruby-core:28907]. [ruby-core:23971] [ruby-core:18121]
+
+Fri Mar 26 19:55:41 2010 Akinori MUSHA <knu@iDaemons.org>
+
+ * Makefile.in (DOXYGEN): Define a missing variable DOXYGEN. Build
+ has been failing when doxygen(1) is found by configure but the
+ variable is not defined by the system and make(1) does not allow
+ an empty command. ("@$(DOXYGEN)" was the cause)
+
+Fri Mar 26 19:28:03 2010 Shugo Maeda <shugo@ruby-lang.org>
+
+ * test/ruby/test_hash.rb (test_recursive_key): recursive keys are
+ permitted now. [ruby-dev:40735]
+
+Fri Mar 26 12:36:10 2010 Aaron Patterson <aaron@tenderlovemaking.com>
+
+ * lib/yaml/basenode.rb: deprecating YPath methods
+
+ * lib/yaml/stream.rb: deprecating YAML::Stream#edit
+
+Fri Mar 26 12:29:28 2010 Aaron Patterson <aaron@tenderlovemaking.com>
+
+ * lib/yaml/encoding.rb: YAML.encode, YAML.decode are deprecated.
+
+ * lib/yaml/stringio.rb: yaml/stringio.rb is deprecated.
+
+ * lib/yaml/ypath.rb: YAML::YPath is deprecated.
+
+Fri Mar 26 04:52:19 2010 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/extconf.rb: fix [ruby-core:28901] [Bug #2997].
+ Thanks, Michael Graff.
+
+ * ext/tk/tcltklib.c: use xfree() for memories allocated by ALLOC().
+
+ * ext/tk/tkutil/tkutil.c: ditto.
+
+ * ext/tk/lib/tkextlib/version.rb: forgot updating.
+
+Thu Mar 25 23:53:22 2010 wanabe <s.wanabe@gmail.com>
+
+ * thread.c (thread_reset_event_flags): set flags to thread. [Bug #693]
+
+Thu Mar 25 23:17:16 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * file.c (rb_get_path_check): prefer #to_path over #to_str. a patch
+ originally written by me, and modified by Nobuyoshi Nakada.
+ [ruby-core:24257]
+
+Thu Mar 25 18:10:08 2010 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
+
+ * NEWS: Array#{uniq,uniq!} can take a block. see [ruby-dev:37998]
+
+Thu Mar 25 17:21:49 2010 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
+
+ * NEWS: add IO#autoclose=, IO#autoclose?, IO#codepoints,
+ IO#each_codepoint.
+
+Thu Mar 25 14:50:00 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * win32/win32.c (rb_w32_{read,write}): fix handle leaks. based on
+ a patch from Heesob Park in [ruby-core:28919]. [ruby-core:28833]
+
+Thu Mar 25 12:37:37 2010 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
+
+ * NEWS: add Kernel#singleton_class.
+
+Thu Mar 25 11:34:00 2010 Kenta Murata <mrkn@mrkn.jp>
+
+ * bignum.c, node.h, strftime.c, enc/trans/utf8_mac.trans:
+ added explicit casts for suppressing warnings.
+
+Thu Mar 25 11:34:00 2010 Kenta Murata <mrkn@mrkn.jp>
+
+ * test/ruby/test_dir_m17n.rb: HFS+ escapes invalid byte sequences of
+ filenames.
+
+Thu Mar 25 05:44:31 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (ruby_version): needs runnable CPP.
+
+Thu Mar 25 04:42:19 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * tool/make-snapshot (package): take a breath for HP-UX make
+ [ruby-core:28938].
+
+ * tool/make-snapshot (Dir.mktmpdir): for 1.8.6 backward compatibility.
+
+ * tool/make-snapshot (package): $: no longer contains ".", in trunk.
+
+Thu Mar 25 03:52:45 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/iconv/charset_alias.rb: update of URL. [ruby-dev:38360]
+
+Wed Mar 24 23:43:40 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * thread.c (thread_create_core): let new thread inherit RUBY_EVENT_VM
+ of event_flags. [ruby-core:25191]
+
+ * thread.c (rb_threadptr_exec_event_hooks): delete RUBY_EVENT_VM if
+ all event_hooks are removed.
+
+Wed Mar 24 22:58:02 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * configure.in: revert the previous commit, which seemed to break make
+ install. The files of standard libraries are directly installed to
+ $(PREFIX)/lib/ruby instead of $(PREFIX)/lib/ruby/1.9.1
+
+Wed Mar 24 18:16:08 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (LDSHARED, CPP): keep $(CC). [ruby-core:28912]
+
+Wed Mar 24 14:33:56 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * win32/win32.c (rb_w32_read): limit read size to 16KB if the file
+ seems to be console. [ruby-core:28902]
+
+Wed Mar 24 10:18:12 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * file.c (file_expand_path): set length of string before calling
+ rb_enc_check because rb_enc_check scans its content.
+ This prevents warnings by valgrind.
+
+Tue Mar 23 23:58:51 2010 James Edward Gray II <jeg2@ruby-lang.org>
+
+ * lib/csv.rb: Incorporating the fixes from the recent
+ FasterCSV releases: 1.5.2 and 1.5.3. New parser
+ by Tim Elliott. [ruby-core:25038]
+
+Tue Mar 23 18:35:46 2010 Shugo Maeda <shugo@ruby-lang.org>
+
+ * object.c (rb_obj_singleton_class): new method
+ Kernel#singleton_class. [ruby-core:21702]
+
+Tue Mar 23 01:13:59 2010 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket: use rsock_ prefix for internal initialization functions.
+
+Mon Mar 22 20:32:22 2010 wanabe <s.wanabe@gmail.com>
+
+ * proc.c (rb_method_location): return attr's location if it is setup.
+ [Feature #2084]
+
+ * NEWS: follow above.
+
+ * vm_method.c (rb_add_method): save attr's location.
+
+ * gc.c (mark_method_entry): mark attr's location.
+
+ * method.h (rb_method_definition_t): add member to save attr's location.
+
+ * vm_eval.c (vm_call0): follow above.
+
+ * vm_insnhelper.c (vm_call_method): ditto.
+
+ * vm_method.c (rb_method_definition_eq): ditto.
+
+Mon Mar 22 19:31:06 2010 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * lib/date.rb (Date#>>): fixed. [ruby-core:28011]
+
+Mon Mar 22 18:01:13 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (RMDIRS): use rmdir -p if possible.
+
+ * Makefile.in ({dist,real}clean-ext): fix for removing ext
+ directories.
+
+Mon Mar 22 09:06:10 2010 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/.document: extracted from ext/.document.
+
+Mon Mar 22 00:50:33 2010 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/rubysocket.h (rsock_revlookup_flag): declared.
+
+Mon Mar 22 00:01:24 2010 Alexander Zavorine <alexandre.zavorine@nokia.com>
+
+ * symbian/setup (config.h): RUBY_EXEC_PREFIX defined.
+
+Sun Mar 21 00:46:29 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * lib/uri/common.rb (URI.encode_www_form_component):
+ convert strings of HTML5 ASCII incompatible encoding
+ to UTF-8.
+
+ * lib/uri/common.rb (URI.encode_www_form_component):
+ "\x83\x41" of Shift_JIS should be encoded as "%83A".
+ This follows real implementations.
+
+ * lib/uri/common.rb (URI.decode_www_form_component):
+ use given encoding for force_encoding. [ruby-dev:40721]
+
+Sun Mar 21 21:09:17 2010 Tanaka Akira <akr@fsij.org>
+
+ * lib/resolv-replace.rb: specify super class for rdoc.
+
+ * lib/ipaddr.rb: ditto.
+
+Sun Mar 21 19:52:27 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * io.c (rb_io_initialize): add autoclose argument to control close
+ at finalization. [ruby-core:26222]
+
+ * io.c (rb_io_autoclose_p, rb_io_set_autoclose): new methods.
+
+Sun Mar 21 19:50:04 2010 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket: make sources rdoc friendly.
+
+Sun Mar 21 17:57:49 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * io.c (IO_RBUF_CAPA_FOR): use large buffer as cbuf if readconv is
+ needed for performance improvement. based on a patch by Roger Pack
+ in [ruby-core:28163]. [ruby-core:28162]
+
+Sun Mar 21 17:14:49 2010 Tanaka Akira <akr@fsij.org>
+
+ * tool/transcode-tblgen.rb: reuse hash object.
+
+Sun Mar 21 12:32:39 2010 Tanaka Akira <akr@fsij.org>
+
+ * tool/transcode-tblgen.rb (transcode_compile_tree): make
+ valid_encoding mandatory unless from_encoding is registered in
+ ValidEncoding.
+ (transcode_tbl_only): ditto.
+ (transcode_tblgen): ditto.
+ (ValidEncoding): new function.
+
+ * enc/trans/escape.trans: specify valid_encoding.
+
+ * enc/trans/emoji_sjis_docomo.trans: ditto.
+
+ * enc/trans/emoji.trans: ditto.
+
+ * enc/trans/emoji_iso2022_kddi.trans: ditto.
+
+ * enc/trans/big5.trans: ditto.
+
+ * enc/trans/emoji_sjis_softbank.trans: ditto.
+
+ * enc/trans/emoji_sjis_kddi.trans: ditto.
+
+ * enc/trans/chinese.trans: use ValidEncoding() instead of
+ ValidEncoding[].
+
+Sun Mar 21 09:43:01 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * io.c (IO_[CRW]BUF_CAPA_MIN): replaced magic numbers.
+
+Sun Mar 21 09:22:10 2010 Tanaka Akira <akr@fsij.org>
+
+ * object.c (rb_obj_hash): use LONG2FIX to avoid Bignum allocation.
+
+Sat Mar 20 22:51:46 2010 Tanaka Akira <akr@fsij.org>
+
+ * string.c (rb_str_sum): use UCHAR_MAX.
+
+Sat Mar 20 19:16:42 2010 Tanaka Akira <akr@fsij.org>
+
+ * tool/transcode-tblgen.rb (ActionMap.unambiguous_action): use
+ Array#delete.
+ (ActionMap.merge2): defined.
+ (ActionMap::PostMemo): removed.
+ (transcode_compile_tree): use ActionMap.merge2.
+
+Sat Mar 20 13:26:09 2010 Tanaka Akira <akr@fsij.org>
+
+ * array.c (rb_ary_uniq_bang): the array is already unique if the
+ length is zero or one.
+ (rb_ary_uniq): ditto.
+
+Sat Mar 20 12:30:54 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib: fixed typo. a patch by Sho Hashimoto in [ruby-dev:40716].
+
+Sat Mar 20 11:32:18 2010 Tanaka Akira <akr@fsij.org>
+
+ * tool/transcode-tblgen.rb (each_firstbyte_range): tuned for less
+ method calls.
+
+Sat Mar 20 00:59:50 2010 wanabe <s.wanabe@gmail.com>
+
+ * ext/dl/lib/dl/pack.rb (DL#pack): allow LLP64.
+
+Fri Mar 19 05:26:31 2010 Tanaka Akira <akr@fsij.org>
+
+ * string.c (rb_str_sum): don't call method for each byte.
+
+Thu Mar 18 21:24:21 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * Makefile.in (miniruby): link $(NORMALMAINOBJ).
+
+Thu Mar 18 19:52:27 2010 Tanaka Akira <akr@fsij.org>
+
+ * tool/transcode-tblgen.rb: scan singleton mappings sequentially.
+
+Thu Mar 18 06:28:32 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (RUBY_EXEC_PREFIX): added to config.h.
+
+ * ruby.c (ruby_init_loadpath_safe): TMP_RUBY_PREFIX should be
+ exec_prefix, not rubylibprefix. [ruby-core:28718]
+
+ * version.c (RUBY_LIB_PREFIX): fallback to RUBY_EXEC_PREFIX.
+
+Thu Mar 18 05:58:27 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/bigdecimal/bigdecimal.c (BigDecimal_{to_i,mod,divmod,div2}):
+ removed unused variables.
+
+Thu Mar 18 04:40:56 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (rb_intern3): get rid of type-punning cast.
+
+Thu Mar 18 02:29:42 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * compile.c (iseq_build_body): add mark to jump table hash of case.
+
+Thu Mar 18 00:58:27 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * util.c (ruby_strtod): Add support for Hexadecimal
+ floating-point expression [ruby-dev:40650] #2969
+
+Thu Mar 18 00:00:58 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * lib/uri/common.rb (URI.{en,de}code_www_form_component):
+ renamed from URI.{en,de}code_www_component. [ruby-dev:40672]
+
+ * lib/uri/common.rb (URI.encode_www_form_component): %-encoded
+ element should have always two hex.
+
+ * lib/uri/common.rb (URI.encode_www_form_component):
+ better treatment for ASCII incompatible encodings and
+ encodings whose lead byte may use 7bit.
+
+ * lib/uri/common.rb (URI.decode_www_form_component): add %20.
+
+ * lib/uri/common.rb (URI.decode_www_form_component): add
+ result's encoding as 2nd argument.
+
+ * lib/uri/common.rb (URI.decode_www_form): added.
+
+Wed Mar 17 16:25:53 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * hash.c (rb_hash_aset): allow recursive key. [ruby-core:24648]
+
+Wed Mar 17 06:39:59 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ruby.h (rb_warning, rb_sys_warning): fixed typo in rdoc.
+ [ruby-core:28696]
+
+Wed Mar 17 02:29:46 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * compile.c, iseq.c, ruby.c, vm.c, vm_core.h, vm_eval.c: add absolute
+ path field into rb_iseq_t. The field contains a string representing
+ a path to corresponding source file. or nil when the iseq is created
+ from -e, stdin, eval, etc. This field is used for require_relative.
+ [ruby-dev:40004]
+
+ * load.c (rb_f_require_relative): add C implementation of
+ require_relative.
+
+ * prelude.rb (require_relative): get rid of Ruby implementation of
+ require_relative.
+
+Wed Mar 17 01:24:01 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * parse.y (rb_intern3): prohibit Symbol with an invalid encoding.
+ [ruby-core:24621]
+
+ * test/ruby/test_m17n_comb.rb: modify a test for above.
+
+Tue Mar 16 22:51:11 2010 Tanaka Akira <akr@fsij.org>
+
+ * tool/transcode-tblgen.rb: specialize for singleton mappings.
+
+Tue Mar 16 20:13:00 2010 Kenta Murata <mrkn@mrkn.jp>
+
+ * enc/trans/emoji.trans: added codepoints leading 0xf4 into
+ nomap_table.
+
+Tue Mar 16 17:33:30 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * ext/bigdecimal/bigdecimal.c (VpCtoV): keep e's sign.
+ When e doesn't over flow e * BASE_FIG but overflow e * 10,
+ e will overflow.
+
+Tue Mar 16 17:18:44 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * include/ruby/encoding.h (rb_str_conv_enc_opts): missing prototype.
+
+Tue Mar 16 15:20:13 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/tmpdir: split from lib/tmpdir.rb.
+
+ * win32/win32.c (rb_w32_system_tmpdir): extracted from init_env.
+
+ * win32/win32.c (rb_w32_getcwd): removed duplicated code.
+
+Tue Mar 16 14:06:13 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * include/ruby/encoding.h (ENC_TO_ENCINDEX): suppress warnings.
+
+Tue Mar 16 14:03:24 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (RSHIFT): parenthesize the argument of cast instead
+ of the result.
+
+Tue Mar 16 11:23:42 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * file.c (file_expand_path): ignore dname if it has different
+ drive letter or UNC.
+
+Tue Mar 16 07:16:56 2010 Tanaka Akira <akr@fsij.org>
+
+ * tool/transcode-tblgen.rb: redundant loop removed.
+
+Tue Mar 16 07:01:43 2010 Tanaka Akira <akr@fsij.org>
+
+ * tool/transcode-tblgen.rb: refactored to use tree as memo key.
+
+Tue Mar 16 04:05:13 2010 Tanaka Akira <akr@fsij.org>
+
+ * tool/transcode-tblgen.rb: more info in generating macro names.
+
+Mon Mar 15 21:58:03 2010 Tanaka Akira <akr@fsij.org>
+
+ * tool/transcode-tblgen.rb: ActionMap#each_firstbyte inlined.
+
+Mon Mar 15 21:22:49 2010 Tanaka Akira <akr@fsij.org>
+
+ * tool/transcode-tblgen.rb (transcode_tblgen): add valid_encoding
+ optional argument.
+
+ * enc/trans/single_byte.trans use valid_encoding argument for
+ transcode_tblgen.
+
+ * enc/trans/chinese.trans: ditto.
+
+Mon Mar 15 18:33:36 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * random.c (default_rand): removed initial buffer.
+
+ * random.c (Init_RandomSeed): initialize seed of default random.
+
+ * random.c (Init_RandomSeed2): turn the seed to Bignum object.
+
+Mon Mar 15 17:28:30 2010 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * io.c (rb_io_print): RDoc update. a patch from Daniel Kelley
+ in [ruby-core:28643].
+
+Mon Mar 15 14:06:07 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * random.c (next_state): no initialization here.
+
+ * random.c (default_mt): always return initialized MT.
+
+Mon Mar 15 11:49:48 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * random.c (rb_reset_random_seed): set seed in this.
+ [ruby-core:28655]
+
+Mon Mar 15 10:26:02 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * ext/nkf/nkf-utf8/nkf.c: import latest nkf. [master 9306cb0]
+ this also fixes [ruby-dev:40607]
+
+Mon Mar 15 09:34:17 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * lib/uri/common.rb (URI.encode_www_component):
+ call str.to_s at first.
+
+Mon Mar 15 09:36:22 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * symbian/README.SYMBIAN: fixed broken patch and converted to
+ unified diff.
+
+Mon Mar 15 07:51:05 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * file.c (Init_File): do not define File::ALT_SEPARATOR on cygwin.
+
+Mon Mar 15 07:41:00 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * file.c (realpath_rec): use same cache.
+
+ * file.c (realpath_internal): regulate separators in prefix.
+ [ruby-core:28653]
+
+ * file.c (FILE_ALT_SEPARATOR): separated condition.
+
+Mon Mar 15 04:41:25 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * io.c (rb_io_each_codepoint): read directly when readconv is
+ needed but internal encoding is not set. [ruby-core:28650]
+
+Mon Mar 15 04:18:31 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * tool/file2lastrev.rb (VCS::{SVN,GIT}#get_revisions):
+ use block argument 'path' to get the path given by super.
+
+Mon Mar 15 02:43:59 2010 Tanaka Akira <akr@fsij.org>
+
+ * tool/transcode-tblgen.rb (Action#hash): defined.
+ (Action#eql?): ditto.
+ (Action#==): ditto.
+
+Mon Mar 15 01:52:46 2010 Tanaka Akira <akr@fsij.org>
+
+ * tool/transcode-tblgen.rb: refactored.
+
+Mon Mar 15 01:18:31 2010 Alexander Zavorine <alexandre.zavorine@nokia.com>
+
+ * symbian/setup (*.pkg): Ruby Core installation separated from standard extensions.
+
+ * symbian/configure.bat: ditto.
+
+ * symbian/README.SYMBIAN: ditto.
+
+ * symbian/setup (config.h): support for 2nd internal drive added.
+
+Mon Mar 15 00:11:23 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * tool/file2lastrev.rb (VCS::GIT_SVN#get_revisions) :
+ use block argument 'path' to get the path given by super.
+
+ * tool/file2lastrev.rb (VCS::GIT#get_revisions):
+ use double quotes for Windows.
+ patched by Vladimir Sizikov [ruby-core:28651]
+
+Sun Mar 14 22:38:31 2010 Tanaka Akira <akr@fsij.org>
+
+ * tool/transcode-tblgen.rb: consider valid_encoding for max_input.
+
+Sun Mar 14 15:46:09 2010 Tanaka Akira <akr@fsij.org>
+
+ * enc/trans/emoji.trans: fix nomap_table.
+
+Sun Mar 14 09:50:03 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * compile.c (insn_data_to_s_detail), iseq.c (insn_operand_intern):
+ fixed format specifiers.
+
+Sun Mar 14 07:20:17 2010 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * file.c (EXPAND_PATH_BUFFER): make it back to usascii, to prevent
+ infinite loop on some platform. [ruby-dev:40629]
+
+Sun Mar 14 02:40:38 2010 Tanaka Akira <akr@fsij.org>
+
+ * tool/transcode-tblgen.rb: reject ambiguous mapping.
+
+ * enc/trans/single_byte.trans: remove ambiguous mapping such as
+ \xD6 -> U+05F2 and \xD6\xC7 -> U+FB1F in Windows-1255
+
+Sat Mar 13 23:48:27 2010 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * file.c (file_expand_path): should not just copy the encoding
+ from fname. [ruby-core:28635]
+
+ * file.c (EXPAND_PATH_BUFFER): set filesystem_encoding, not
+ usascii for path buffer.
+
+Sat Mar 13 17:48:43 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * tool/file2lastrev.rb: refactored. fixed changed revision of git.
+
+Sat Mar 13 15:44:20 2010 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * io.c (rb_io_print): should not print field separator at the end
+ of arguments. [ruby-talk:358633]
+
+Sat Mar 13 14:49:55 2010 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * enum.c (enum_join): remove Enumerable#join. [ruby-core:24786]
+
+ * array.c (ary_join_1): use #to_ary to detect recursive array.
+
+Sat Mar 13 12:26:13 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * include/ruby/io.h (MakeOpenFile): finalize fptr to get rid of
+ memory leak.
+
+Sat Mar 13 11:14:26 2010 Shugo Maeda <shugo@ruby-lang.org>
+
+ * load.c (rb_get_expanded_load_path): expand paths if any item in $:
+ is not a string.
+
+Sat Mar 13 10:16:32 2010 Shugo Maeda <shugo@ruby-lang.org>
+
+ * load.c (rb_get_expanded_load_path): does not expand paths if all
+ the items in $: are absolute paths. [ruby-core:28113]
+
+Sat Mar 13 10:03:52 2010 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/extconf.rb: fix [Bug #2840] Tk doesn't built in mingw.
+
+Sat Mar 13 03:24:15 2010 Tanaka Akira <akr@fsij.org>
+
+ * tool/transcode-tblgen.rb: show consumed time at last.
+
+Sat Mar 13 00:44:20 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * file.c (rb_file_s_basename): check encoding of suffix.
+
+Sat Mar 13 00:11:05 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ruby.c (ruby_init_loadpath_safe): mark initial load paths.
+
+ * gem_prelude.rb (push_all_highest_version_gems_on_load_path):
+ search insertion position by initial load path mark.
+
+ * lib/rubygems.rb (Gem.load_path_insert_index): ditto.
+
+Fri Mar 12 21:34:00 2010 Kenta Murata <mrkn@mrkn.jp>
+
+ * NEWS: emoji encodings.
+
+Fri Mar 12 17:14:12 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * lib/uri/common.rb (URI.encode_www_form): new method to
+ generate URL-encoded form data. [ruby-dev:39246]
+
+ * lib/uri/common.rb (URI.encode_www_component,
+ URI.decode_www_component): new method for encode/decode
+ a name/value of HTML form.
+
+Fri Mar 12 17:36:35 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * lib/webrick/httpservlet/cgihandler.rb
+ (WEBrick::HTTPServlet::CGIHandler#do_GET):
+ set binary mode for tempfile.
+ http://pc12.2ch.net/test/read.cgi/tech/1265467681/286
+
+Fri Mar 12 13:52:00 2010 Kenta Murata <mrkn@mrkn.jp>
+
+ * tool/compile_prelude.rb: TMP_RUBY_PREFIX should replace
+ rubylibprefix but not prefix.
+
+Fri Mar 12 09:43:11 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * complex.c (f_signbit): remove condition for signbit because
+ all platforms have signbit from r26871.
+
+Fri Mar 12 07:25:16 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * win32/win32.c (init_env): get rid of alloca() for outer string.
+
+Fri Mar 12 07:17:15 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/racc/cparse/cparse.c: suppressed warnings for shortening on
+ platforms where pointer is bigger than int.
+
+Fri Mar 12 07:15:08 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ruby.c (ruby_init_loadpath_safe, ruby_init_gems): set and remove
+ TMP_RUBY_PREFIX.
+
+ * variable.c (rb_const_remove): new function.
+
+ * tool/compile_prelude.rb: split each preludes.
+
+Fri Mar 12 07:09:20 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * Makefile.in (config.status): setup MINIRUBY environment for
+ cross-compiling.
+
+Fri Mar 12 06:48:58 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/tk/extconf.rb: log() is built-in in some compilers and needs
+ proper declaration.
+
+Fri Mar 12 06:37:13 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * sample/timeout.rb: split from lib/timeout.rb.
+
+Thu Mar 11 22:35:27 2010 Tanaka Akira <akr@fsij.org>
+
+ * time.c (time_round): new method Time#round. [ruby-dev:40595]
+
+Thu Mar 11 17:31:59 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * transcode.c (str_transcode0): confirm the code range.
+
+Thu Mar 11 12:14:17 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * missing/signbit.c: added.
+
+Thu Mar 11 11:16:33 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in: check if target_archs has changed.
+
+Thu Mar 11 01:33:30 2010 wanabe <s.wanabe@gmail.com>
+
+ * win32/win32.c (signbit): allow x64.
+
+Thu Mar 11 01:04:48 2010 Shugo Maeda <shugo@ruby-lang.org>
+
+ * iseq.c (rb_iseq_clone): sets local_iseq and klass properly.
+
+Wed Mar 10 21:25:41 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * enum.c (min_ii, max_ii, minmax_ii): remove wrong optimization that
+ reuses array for yield parameter, which caused unexpected behavior.
+ [ruby-core:25989]
+
+Wed Mar 10 12:10:00 2010 Kenta Murata <mrkn@mrkn.jp>
+
+ * enc/x_emoji.h: renamed from enc/x-emoji.c.
+
+Wed Mar 10 04:17:08 2010 Koichi Sasada <ko1@atdot.net>
+
+ * compile.c (defined_expr), insns.def (defined): fix to pass a Symbol
+ object such as :$foo for the "defined?($foo)" expression
+ on defined instruction. This patch fixes ISeq#to_a/load.
+
+Tue Mar 9 20:50:09 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * test/dl/test_method.rb: delete a residual test for dl on libffi.
+
+Tue Mar 9 18:00:00 2010 Kenta Murata <mrkn@mrkn.jp>
+
+ * enc/trans/EMOJI/*.src, enc/trans/emoji*,
+ enc/x-emoji.c, test/ruby/enc/test_emoji.rb,
+ tool/enc-emoji-citrus-gen.rb, tool/enc-emoji4unicode.rb,
+ tool/jisx0208.rb, tool/test/test_jisx0208.rb:
+ new encodings to support emoji charsets, which are used by
+ Japanese mobile phones [ruby-dev:40528].
+ Thanks Yoji Shidara for a lot of contribution.
+
+ * tool/transcode-tblgen.rb: modified for enc-emoji4unicode.rb.
+
+Tue Mar 9 14:57:40 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * tool/transcode-tblgen.rb (ActionMap#generate_node):
+ remove useless dup.
+
+ * tool/transcode-tblgen.rb (transcode_tbl_only): remove duplicated
+ method call for encode_utf8.
+
+Tue Mar 9 14:55:00 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * re.c (rb_reg_to_s): remove unused variable.
+
+Tue Mar 9 12:17:34 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * tool/transcode-tblgen.rb (StrSet#parse, ActionMap#generate_node):
+ optimization (reusing object and improving memoize).
+ [ruby-dev:40582]
+
+Sun Mar 7 02:27:03 2010 Alexander Zavorine <alexandre.zavorine@nokia.com>
+
+ * dln.c [DLN_NEEDS_ALT_SEPARATOR] (translit_separator): small typo
+ fixed.
+
+ * symbian/setup (*.pkg): Shared library installation path fixed to
+ match changes in version.c.
+
+ * symbian/setup (ruby.mmp): SOURCE dln_find.c added.
+
+Sun Mar 7 23:14:22 2010 Tanaka Akira <akr@fsij.org>
+
+ * bignum.c (rb_big_pack): use DIGSPERLONG and BITSPERDIG.
+ (rb_big_unpack): use DIGSPERLONG.
+
+Sun Mar 7 19:21:10 2010 Marc-Andre Lafortune <ruby-core@marc-andre.ca>
+
+ * io.c: Fix documentation for each/each_line/lines, bytes/each_byte,
+ codepoints/each_code_point [ruby-core:23948]
+
+ * string.c: ditto
+
+ * ext/stringio/stringio.c: ditto
+
+Sun Mar 7 13:49:49 2010 Tanaka Akira <akr@fsij.org>
+
+ * file.c: add optional basedir argument for realpath/realdirpath.
+ (realpath_internal): handle basedir.
+ (rb_file_s_realpath): extract basedir from argument list.
+ (rb_file_s_realdirpath): extract basedir from argument list.
+
+ * lib/pathname.rb (realpath): pass basedir.
+ (realdirpath): ditto.
+
+Sun Mar 7 02:05:38 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * encoding.c (enc_set_filesystem_encoding):
+ filesystem encoding on Mac OS X is now
+ default external encoding. so Mac OS X is now
+ treated as one of Unix. [ruby-dev:40439]
+
+ * file.c (file_path_convert): ditto.
+
+Sat Mar 6 22:07:09 2010 Tanaka Akira <akr@fsij.org>
+
+ * pack.c: fix the prototype of rb_big2ulong_pack.
+
+Sat Mar 6 13:45:37 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * io.c (rb_io_s_write, rb_io_s_binwrite): delete File#write and
+ #binwrite. It may take a long time to make them stable, so 1.9.2
+ should not include them. We need refactoring to implement them
+ again.
+
+ * test/ruby/test_io.rb: delete tests for them.
+
+Sat Mar 6 10:03:35 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * io.c (rb_io_s_binwrite): use mode "r+b" instead of "ab" to handle
+ offset correctly. [ruby-core:28517]
+
+ * test/ruby/test_io.rb: use assert_equal instead of assert.
+
+Sat Mar 6 01:08:54 2010 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/Makefile.sub (config.h): VC6 has __int64.
+
+Fri Mar 5 19:36:12 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * transcode.c (econv_opts): set :undef => :replace when
+ :replace is given and :invalid is not given. [ruby-dev:40554]
+
+Fri Mar 5 17:51:09 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * io.c (pipe_open): suppressed a warning.
+
+ * win32/win32.c (rb_w32_map_errno, winnt_stat, rb_chsize): ditto.
+
+ * win32/win32.c (rb_w32_aspawn): get rid of overflow.
+
+Fri Mar 5 11:59:30 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * win32/win32.c (signbit): defined on mingw.
+
+Thu Mar 4 22:49:42 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * eval.c (setup_exception): avoid line number 0 when setting
+ $DEBUG=true. [ruby-dev:39116]
+
+Thu Mar 4 22:45:02 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * io.c (io_s_write, io_s_binwrite): add File#write and #binwrite.
+ [ruby-core:21701]
+
+ * test/ruby/test_io.rb: add tests for above.
+
+Mon Mar 4 13:14:34 2010 wanabe <s.wanabe@gmail.com>
+
+ * gc.c (gc_profile_total_time): add GC::Profiler.total_time.
+ [ruby-core:27169]
+
+ * NEWS: ditto.
+
+Thu Mar 4 10:15:10 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * complex.c (m_log, m_exp): remove unused functions.
+
+Thu Mar 4 02:34:59 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * test/ruby/test_env.rb (TestEnv#test_select_bang): add tests.
+
+Thu Mar 4 02:29:52 2010 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
+
+ * test/ruby/test_hash.rb (TestHash#test_keep_if): fix typo.
+
+Thu Mar 4 00:10:54 2010 Tanaka Akira <akr@fsij.org>
+
+ * tool/transcode-tblgen.rb (HEX2): extracted from regexps.
+
+Wed Mar 3 23:16:32 2010 Marc-Andre Lafortune <ruby-core@marc-andre.ca>
+
+ * complex.c (nucomp_real_check): raise TypeError instead of
+ ArgumentError when argument is not a real as expected
+ [ruby-core:28395]
+
+ * rational.c (nurat_int_check): ditto (for integers)
+
+Wed Mar 3 23:07:08 2010 Marc-Andre Lafortune <ruby-core@marc-andre.ca>
+
+ * lib/matrix.rb (Vector#each): Return self and optimization
+ [ruby-core:28405]
+
+Wed Mar 3 18:35:55 2010 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * hash.c (rb_hash_select_bang): add #select! and keep_if to Hash.
+
+ * hash.c (env_select_bang): ..and to ENV.
+
+Wed Mar 3 15:54:20 2010 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/matrix.rb (Vector#each2, collect2): small refactoring.
+
+Wed Mar 3 16:14:24 2010 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/matrix.rb (Vector#each): make Vector enumerable.
+ [ruby-core:28405]
+
+Wed Mar 3 14:28:23 2010 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * array.c (rb_ary_select_bang): select! removes all elements for
+ which block returns false. [ruby-core:27286]
+
+ * array.c (rb_ary_keep_if): #keep_if, new method.
+
+Wed Mar 3 06:19:25 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * win32/win32.c (signbit): defined.
+
+ * win32/Makefile.sub, symbian/setup (config.h): pack.c requires
+ SIZEOF_INT*_T now.
+
+Tue Mar 2 21:16:48 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * io.c (rb_io_lines, rb_io_bytes, rb_io_chars, rb_io_codepoints):
+ change to alias to each_*, in similar way to ARGF and String.
+ [ruby-core:23948]
+
+Tue Mar 2 15:54:40 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * regcomp.c (noname_disable_map): add NT_ANCHOR case.
+ Without this change, captured groups in anchors (look-ahead,
+ look-behind, and so on) are not removed and
+ unintended invalid backref error occur. [ruby-core:28235]
+
+ * regcomp.c (renumber_by_map): ditto.
+
+Tue Mar 2 14:42:00 2010 Kenta Murata <mrkn@mrkn.jp>
+
+ * test/dl/test_closure.rb: forget to revert at r26764.
+
+Tue Mar 2 14:29:24 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * file.c (rb_find_file_ext_safe, rb_find_file_safe): skip argument
+ checks in file_expand_path().
+
+Tue Mar 2 13:54:44 2010 Marc-Andre Lafortune <ruby-core@marc-andre.ca>
+
+ * test/ruby/test_math.rb: Fix lgamma test
+
+Mon Mar 1 23:26:56 2010 Tanaka Akira <akr@fsij.org>
+
+ * ext/pty/pty.c (pty_open): refine the path for master IO.
+
+Mon Mar 1 20:07:06 2010 TAKANO Mitsuhiro (takano32) <tak@no32.tk>
+
+ * ext/zlib/zlib.c (zstream_expand_buffer_into): remove compare
+ different type values warning.
+
+Mon Mar 1 17:42:45 2010 wanabe <s.wanabe@gmail.com>
+
+ * configure.in (mingw): do not detect snprintf/vsnprintf.
+
+Mon Mar 1 16:54:21 2010 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * include/ruby/oniguruma.h: updated to follow Oniguruma 5.9.2.
+
+ * re.c (make_regexp): use onig_new() instead of onig_alloc_init().
+
+ * re.c (rb_reg_to_s): ditto.
+Sun Feb 28 21:32:36 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/pty/pty.c (get_device_once): raise on error when fail is
+ non-zero.
+
+Sun Feb 28 18:58:00 2010 Kenta Murata <mrkn@mrkn.jp>
+
+ * math.c (rb_eMathDomainError): new exception class
+ for representing mathematical domain error instead
+ of Errno::EDOM.
+
+ * math.c (domain_check, infinity_check): removed,
+ no longer needed.
+
+ * math.c (math_atan2, math_acos, math_asin, math_acosh,
+ math_atanh, math_log, math_log2, math_log10, math_sqrt,
+ math_gamma, math_lgamma): mathematical domain errors
+ are checked and raised before calling libm's functions.
+
+ * test/ruby/test_math.rb: updated for changes of math.c.
+
+Sun Feb 28 15:07:28 2010 Tanaka Akira <akr@fsij.org>
+
+ * pack.c (pack_pack): use union to avoid pointer cast.
+ (pack_unpack): ditto.
+
+Sun Feb 28 11:49:35 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * openssl/ossl.c (OSSL_IMPL_SK2ARY): for OpenSSL 1.0.
+ patched by Jeroen van Meeuwen at [ruby-core:25210]
+ fixed by Nobuyoshi Nakada [ruby-core:25238],
+ Hongli Lai [ruby-core:27417],
+ and Motohiro KOSAKI [ruby-core:28063]
+
+ * ext/openssl/ossl_pkcs7.c (pkcs7_get_certs, pkcs7_get_crls):
+ split pkcs7_get_certs_or_crls.
+
+Sun Feb 28 11:42:55 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * test/openssl/{test_x509cert.rb,openssl,test_x509crl.rb,
+ test_x509req.rb}:
+ fix false positive tests because of OpenSSL spec change.
+ patched by originally Hongli Lai [ruby-core:27417],
+ and fixed by Motohiro KOSAKI [ruby-core:28063]
+
+Sun Feb 28 11:21:03 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * test/openssl/{test_x509cert.rb,openssl,test_x509req.rb}:
+ remove false positive tests because of OpenSSL spec change.
+ patched by Motohiro KOSAKI [ruby-core:28063]
+ see also [ruby-dev:40077]
+
+Sun Feb 28 11:25:16 2010 Tanaka Akira <akr@fsij.org>
+
+ * pack.c (pack_pack): generalized integer packer implemented.
+ (pack_unpack): generalized integer unpacker implemented.
+
+Sun Feb 28 06:58:53 2010 Tanaka Akira <akr@fsij.org>
+
+ * pack.c (swap32): use __builtin_bswap32 on gcc 4.3.0 or later.
+ (swap64): ditto.
+
+Sun Feb 28 00:38:18 2010 Tanaka Akira <akr@fsij.org>
+
+ * pack.c: use integer types with explicit size.
+
+Sat Feb 27 15:54:55 2010 Tanaka Akira <akr@fsij.org>
+
+ * pack.c: check assumption on QUAD_SIZE and SIZEOF_LONG.
+
+ * bignum.c: check assumption on SIZEOF_LONG and SIZEOF_BDIGITS.
+
+Sat Feb 27 03:48:18 2010 Tanaka Akira <akr@fsij.org>
+
+ * pack.c: fix q and Q for big endian environments which have no
+ 8 bytes integer type.
+ (pack_pack): use rb_big_pack.
+ (pack_unpack): use rb_big_unpack.
+
+ * include/ruby/intern.h (rb_big_pack): declared.
+ (rb_big_unpack): ditto.
+
+ * bignum.c (rb_big_pack): new function.
+ (rb_big_unpack): ditto.
+
+Fri Feb 26 21:36:51 2010 Tanaka Akira <akr@fsij.org>
+
+ * bignum.c: fix rb_quad_pack and rb_quad_unpack for environments
+ which don't have 8bytes integer type. This still depends on little
+ endian.
+ (rb_quad_pack): use quad_buf_complement. don't raise for large
+ values.
+ (rb_quad_unpack): use quad_buf_complement.
+ (quad_buf_complement): new function extracted from rb_quad_pack.
+ add one after bitwise negation.
+
+Fri Feb 26 21:29:48 2010 Tanaka Akira <akr@fsij.org>
+
+ * configure.in (RSHIFT): add parenthesis to suppress warning.
+
+Fri Feb 26 20:51:47 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * ext/socket/raddrinfo.c, ext/socket/udpsocket.c: avoid illegal cast
+ from void-returning function to VALUE-returning one. It causes SEGV
+ on RubySpec with mingw32.
+
+Fri Feb 26 20:07:48 2010 Tanaka Akira <akr@fsij.org>
+
+ * pack.c (QUAD_SIZE): it should be always 8.
+
+ * bignum.c (rb_quad_pack): use LONG_LONG version only if
+ SIZEOF_LONG_LONG == QUAD_SIZE.
+
+Fri Feb 26 16:49:29 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * pack.c (swap64): fix for VC6.
+
+Fri Feb 26 14:17:09 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * pack.c (pack_pack, pack_unpack): suppressed warnings.
+
+Fri Feb 26 07:44:51 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * ext/dl: revert dl with libffi because it can't run on mswin now.
+
+Thu Feb 25 22:59:46 2010 Tanaka Akira <akr@fsij.org>
+
+ * pack.c: consider DYNAMIC_ENDIAN. refactored.
+
+Thu Feb 25 11:17:01 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * rational.c (nurat_expt): use Float#** when Rational ** Float.
+ This fixes Rational(3,1)**3.0=>26.99999999999999 on FreeBSD.
+
+ * complex.c (rb_fexpt): removed.
+ Note that this function is not static but is private.
+
+Thu Feb 25 00:43:57 2010 Koichi Sasada <ko1@atdot.net>
+
+ * insns.def: Change the operand type of setinlinecache
+ (OFFSET to IC). This IC must be same as corresponding
+ getinlinecache instruction's IC operand.
+ This change is for a little performance improvement
+ (getting IC directly) and is for the AOT compilation development.
+
+ * compile.c, iseq.c, insns.def: Change the approach to handling inline
+ cache (IC) type operand to enable the above change.
+ This change also affects ISeq#to_a method. The inline cache operand
+ will be dumped by fixnum, the index of inline cache, in other words,
+ inline cache identity.
+
+ * template/insns_info.inc.tmpl, tool/instruction.rb: No need to count
+ inline cache size (insn_iclen()).
+
+Thu Feb 25 00:57:59 2010 Tanaka Akira <akr@fsij.org>
+
+ * pack.c (swap64): don't redefine.
+
+Thu Feb 25 00:29:55 2010 Tanaka Akira <akr@fsij.org>
+
+ * pack.c (pack_unpack): don't use OFF32 for gcc 4.5.
+
+Wed Feb 24 22:39:15 2010 Tanaka Akira <akr@fsij.org>
+
+ * lib/resolv.rb: fix [ruby-core:28320] reported by Paul Clegg.
+ (Resolv::DNS::Requester#request): raise ResolvTimeout
+ consistently for timeout.
+
+Wed Feb 24 14:38:16 2010 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/indexer: Removed obsolete files.
+
+Wed Feb 24 11:52:05 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * dln.c (translit_separator): moved back from load.c again.
+
+ * dln_find.c: split from dln.c.
+
+Wed Feb 24 09:31:33 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/digest/extconf.rb: use OpenSSL only when all transform
+ functions are available.
+
+Wed Feb 24 00:39:17 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * string.c (str_new_empty): String#split, partition, rpartition
+ taints the resulting strings if self is tainted.
+
+Mon Feb 22 21:35:33 2010 Tanaka Akira <akr@fsij.org>
+
+ * ext/digest/sha2/sha2init.c: test OpenSSL more strictly.
+
+Mon Feb 22 11:52:30 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/rubygems: update to 1.3.6.
+
+Mon Feb 22 11:21:18 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/digest/sha2: Use OpenSSL's SHA1 engine if available.
+
+Sun Feb 21 21:20:17 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/mkmf.rb (create_makefile, install_files): honor srcprefix
+ argument if given. [ruby-dev:40449]
+
+Sun Feb 21 13:29:57 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/rubygems/rubygems_version.rb: outdated. [ruby-core:28275]
+
+Sun Feb 21 06:24:12 2010 Alexander Zavorine <alexandre.zavorine@nokia.com>
+
+ * symbian/setup (config.h): HAVE_STRUCT_TIMEZONE, VOID_UNSETENV, and RUBY_LIB_VERSION_STYLE defined.
+ * symbian/setup (ruby.mmp): SOURCE node.c added.
+
+Mon Feb 22 09:15:45 2010 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * gc.c (gc_mark_children): lost comment added.
+
+Sat Feb 20 14:42:19 2010 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * marshal.c (r_object0): should prepare placeholder before
+ processing instance variables. [ruby-dev:40414]
+
+ * marshal.c (id2encidx): no longer need arg.
+
+Sat Feb 20 14:36:16 2010 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * vm.c (vm_backtrace_each): use called_id when method definition
+ structure is already freed. [ruby-dev:40234] [ruby-core:27959]
+
+Fri Feb 19 00:04:19 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * lib/drb/drb.rb (DRbServer#stop_service): join killed thread to
+ ensure service stops. [ruby-dev:40441]
+
+Thu Feb 18 22:31:15 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * math.c (math_atanh): raise ERANGE without calling atanh if absolute
+ value is 1 to achieve platform-independent math. [ruby-core:28219]
+
+ * math.c (math_lgamma): return [Infinity, 1] without calling lgamma_r
+ if argument is infinity or -infinity. [ruby-core:28219]
+
+Thu Feb 18 22:28:00 2010 Kenta Murata <mrkn@mrkn.jp>
+
+ * configure.in: new --with-ext and --with-out-ext options for extmk.
+ * tool/mkconfig.rb: normalizing --with-out-ext to --without-ext.
+
+Thu Feb 18 21:50:00 2010 Tanaka Akira <akr@fsij.org>
+
+ * pack.c (pack_unpack): call PACK_ITEM_ADJUST for 'Q'.
+
+Thu Feb 18 02:14:26 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * io.c (io_fread, io_getpartial, io_read, io_sysread): by using lock,
+ prohibit modification of buffer string during read (which had caused
+ EFAULT or SEGV). [ruby-dev:40437]
+
+ * test/ruby/test_io.rb: rewrite tests for the old behavior.
+
+Wed Feb 17 21:34:01 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * regcomp.c (setup_tree, onig_compile): optimize .* at last by
+ converting into (?>.*), which does not backtrack. [ruby-core:27791]
+
+ * test/ruby/test_regexp.rb: add a test for above.
+
+Wed Feb 17 21:26:53 2010 Tanaka Akira <akr@fsij.org>
+
+ * bootstraptest/runner.rb (assert_normal_exit): add :timeout option.
+
+Wed Feb 17 17:05:39 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * vm_insnhelper.c (vm_call_cfunc): removed unused variable.
+
+ * vm.c (vm_frametype_name): define only when VMDEBUG.
+
+Wed Feb 17 15:34:45 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/dl/dl_conversions.c (rb_dl_type_to_ffi_type): support signed
+ long long.
+
+ * ext/dl/cfunc.c (rb_dlcfunc_inspect): get rid of overflow.
+
+ * ext/dl/closure.c (dlc_callback, rb_dlclosure_init): ditto.
+
+ * ext/dl/cptr.c (rb_dlptr_s_malloc): ditto.
+
+ * ext/dl/method.c (rb_dlfunction_initialize): ditto.
+
+Wed Feb 17 01:16:12 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * hash.c (hash_update): always raise an exception when adding a new
+ key during iteration. Traditionally, an exception was raised only
+ when rehash occurs, but it may lead to difficult bug to reproduce.
+ [ruby-core:23614]
+
+Tue Feb 16 22:09:27 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * gc.c (chain_finalized_object): fix precedence.
+
+Tue Feb 16 21:32:01 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * gc.c (rb_objspace_call_finalizer): always run finalizer at exit,
+ before object is free'd. [ruby-dev:40382]
+
+Tue Feb 16 20:56:39 2010 Tanaka Akira <akr@fsij.org>
+
+ * file.c (rb_group_member): renamed from group_member.
+ don't use group_member() in glibc because it's not valgrind clean.
+ http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=570047
+
+Tue Feb 16 19:19:21 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/dl/cfunc.c (rb_dlcfunc_call): convert signed value to
+ unsigned.
+
+Tue Feb 16 19:02:59 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * test/dl/test_{base,handle}.rb: use more verbose assertions.
+
+ * test/dl/test_import.rb (DL::LIBC::BoundQsortCallback): renamed
+ to get rid of overwriting warning.
+
+Tue Feb 16 11:03:19 2010 Aaron Patterson <aaron@tenderlovemaking.com>
+
+ * ext/dl/method.c: Adding DL::Method as a superclass for DL::Function
+
+Mon Feb 15 23:37:30 2010 Tanaka Akira <akr@fsij.org>
+
+ * io.c: check lseek error by errno. NetBSD 4.0.1 may return -1 as
+ a file position of tty.
+
+Mon Feb 15 23:08:56 2010 Tanaka Akira <akr@fsij.org>
+
+ * lib/pstore.rb (PStore#initialize): initialize @thread_safe.
+ [ruby-core:27853]
+
+Mon Feb 15 22:45:26 2010 Tanaka Akira <akr@fsij.org>
+
+ * st.c (st_foreach): don't access ptr->hash after func call.
+ It may access freed area.
+
+Mon Feb 15 22:25:16 2010 Tanaka Akira <akr@fsij.org>
+
+ * ext/zlib/zlib.c (zlib_mem_alloc): suppress valgrind warnings.
+ http://www.zlib.net/zlib_faq.html#faq36
+
+Mon Feb 15 22:18:49 2010 Tanaka Akira <akr@fsij.org>
+
+ * time.c (time_add): propagate fixed time offset.
+
+Mon Feb 15 17:42:20 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * signal.c (USE_SIGALTSTACK): NetBSD can't use sigaltstack(2)
+ with pthread.
+ http://netbsd.gw.com/cgi-bin/man-cgi?sigaltstack++NetBSD-current
+
+Mon Feb 15 13:11:47 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * array.c (rb_ary_push_m): use rb_ary_modify instead of
+ rb_ary_modify_check. This fixes regression due to r26632.
+
+Sun Feb 14 12:54:44 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * marshal.c (r_object0): removed duplicated entry for regexp.
+ [ruby-dev:40416]
+
+Sun Feb 14 04:45:31 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * marshal.c (r_object0): register regexp object before encoding
+ name. [ruby-dev:40414]
+
+ * re.c (rb_reg_alloc, rb_reg_init_str): split from rb_reg_new_str.
+
+Sat Feb 13 17:07:20 2010 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * array.c (rb_ary_delete): RDoc update. a patch from Hugh Sasse.
+ [ruby-core:28128]
+
+ * array.c (rb_ary_compact_bang): ditto.
+
+Sat Feb 13 15:01:24 2010 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * marshal.c (id2encidx): duplicated entry for encoding name.
+ [ruby-dev:40388]
+
+Sat Feb 13 12:17:52 2010 Tanaka Akira <akr@fsij.org>
+
+ * lib/tempfile.rb (Tempfile::Remover): new class to replace
+ Tempfile.callback. port r24902 from Ruby 1.8.
+
+Fri Feb 12 17:55:21 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * vm.c (thread_free): fixed typo.
+
+Fri Feb 12 02:27:39 2010 Akinori MUSHA <knu@iDaemons.org>
+
+ * lib/set.rb (Set#initialize, Set#replace, Set#merge)
+ (Set#subtract, Set#&): Fix duck type tests. [ruby-core:28078]
+
+ * lib/set.rb (Set#initialize, Set#replace, Set#merge)
+ (Set#subtract, Set#&): Try #each if #each_entry fails.
+
+Thu Feb 11 20:43:00 2010 Tanaka Akira <akr@fsij.org>
+
+ * io.c (rb_io_oflags_modestr): return "r" for O_RDONLY|O_APPEND.
+ [ruby-dev:40379]
+
+Thu Feb 11 19:19:21 2010 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
+
+ * missing/alloca.c: s/RUBY_LIB/RUBY_LIB_PREFIX/ [ruby-dev:40395]
+
+Thu Feb 11 17:52:11 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * vm.c (vm_exec): reset thread state before restarting vm loop
+ from catch scope. [ruby-core:28129], [ruby-core:28143]
+
+Thu Feb 11 14:43:16 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * marshal.c (r_object0): read sequentially since marshal source
+ may not be possible to rewind. [ruby-dev:40386]
+
+ * marshal.c (r_object0): replace non-1.8 escapes directly.
+
+Thu Feb 11 09:49:31 2010 Tanaka Akira <akr@fsij.org>
+
+ * lib/resolv.rb: fix [ruby-core:28144] reported by Hans de Graaff.
+ (Resolv::DNS#make_requester): pass nameserver_port to
+ UnconnectedUDP.new.
+ (Resolv::DNS.bind_random_port): change the is_ipv6 argument to
+ bind_host.
+ (Resolv::DNS::Requester#initialize): change instance variable to
+ store multiple sockets.
+ (Resolv::DNS::Requester#request): pass readable sockets to
+ recv_reply.
+ (Resolv::DNS::Requester#close): close all sockets.
+ (Resolv::DNS::Requester::UnconnectedUDP#initialize): allocate
+ a socket for each address family of name servers.
+ (Resolv::DNS::Requester::UnconnectedUDP#recv_reply): read from the
+ passwd readable socket.
+ (Resolv::DNS::Requester::UnconnectedUDP#sender): use appropriate
+ socket for the target nameserver.
+ (Resolv::DNS::Requester::ConnectedUDP): follow the instance variable
+ change.
+ (Resolv::DNS::Requester::TCP#sender): ditto.
+ (Resolv::DNS::Config#nameserver_port): new method.
+
+Thu Feb 11 01:45:04 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * vm.c (vm_exec): temporarily revert r26628, which causes SEGV when
+ executing rubyspec.
+
+Wed Feb 10 16:31:03 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * array.c (rb_ary_push_m, rb_ary_unshift_m, rb_ary_aset),
+ (rb_ary_insert, rb_ary_replace, rb_ary_concat),
+ (rb_ary_uniq_bang, rb_ary_flatten_bang): check if frozen after
+ wrong number of arguments but before TypeError.
+ [ruby-core:28140]
+
+ * hash.c (rb_hash_replace): ditto.
+
+ * string.c (rb_str_replace): ditto.
+
+Wed Feb 10 04:06:36 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * vm.c (vm_exec): reset thread state before starting vm loop.
+ [ruby-core:28129]
+
+Tue Feb 9 23:48:25 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * ext/bigdecimal/bigdecimal.c (BigDecimal_divide): fix precision too.
+
+Tue Feb 9 23:26:07 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * ext/bigdecimal/bigdecimal.c (BigDecimal_DoDivmod): fix precision.
+ [ruby-core:17472][ruby-dev:35372][ruby-dev:40105][ruby-dev:40358]
+
+Tue Feb 9 22:23:27 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * io.c (READ_CHECK): do not select fd before reading, that had made
+ TCPServer#gets stuck. [ruby-dev:40317]
+
+Tue Feb 9 21:27:38 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * lib/rexml/text.rb (REXML::Text#initialize): REXML::Text.new checks
+ raw text for illegal characters without entity check, for the sake
+ of 1.8 compatibility. This had caused rubyspec error.
+
+Mon Feb 8 23:49:24 2010 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * io.c (rb_io_getline_fast): wrong calculation of new position
+ from rb_str_coderange_scan_restartable(). [ruby-core:28103]
+
+ * io.c (read_all): ditto.
+
+ * sprintf.c (rb_str_format): ditto.
+
+Mon Feb 8 21:03:53 2010 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/socket.c (socket_s_ip_address_list): obtain the scope_id
+ of IPv6 link local address on OpenSolaris.
+
+Mon Feb 8 16:27:57 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * dmyversion.c: empty load path in miniruby.
+
+ * common.mk (COMPILE_PRELUDE): rbconfig is loaded on demand.
+
+ * tool/eval.rb, win32/{mkexports,resource}.rb: miniruby no longer
+ contains "." in $:.
+
+Mon Feb 8 15:15:07 2010 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * object.c (rb_obj_clone): call initialize_clone hook method to
+ call initialize_copy.
+
+ * object.c (rb_obj_dup): call initialize_dup hook.
+
+ * lib/delegate.rb (Delegator#initialize_clone): use new hook to
+ implement deep copy. [ruby-dev:40242]
+
+ * lib/delegate.rb (Delegator#initialize_dup): ditto.
+
+ * test/test_delegate.rb (TestDelegateClass#test_copy_frozen): add
+ a test to ensure #clone copies frozen status.
+
+Mon Feb 8 10:28:58 2010 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * configure.in: check pthread_attr_getstack to prevent obsolete
+ warning for pthread_attr_getstackaddr.
+
+Sun Feb 7 23:12:34 2010 Tanaka Akira <akr@fsij.org>
+
+ * sample/test.rb: sort files for syntax validation.
+
+Sun Feb 7 23:08:53 2010 Tanaka Akira <akr@fsij.org>
+
+ * bootstraptest/runner.rb: sort test files.
+
+Sun Feb 7 12:53:12 2010 Tanaka Akira <akr@fsij.org>
+
+ * lib/rake.rb (Rake::FileList::ARRAY_METHODS): fix test failure by <=>
+ definition at Kernel.
+
+Sun Feb 7 03:01:46 2010 Tanaka Akira <akr@fsij.org>
+
+ * math.c (math_lgamma): initialize sign because
+ lgamma(NaN) doesn't set the sign in OpenSolaris.
+
+Sun Feb 7 00:23:21 2010 Shugo Maeda <shugo@ruby-lang.org>
+
+ * class.c (rb_class_init_copy): raise a TypeError if the argument is
+ BasicObject. [ruby-core:27060]
+
+Sat Feb 6 23:37:11 2010 Shugo Maeda <shugo@ruby-lang.org>
+
+ * lib/net/ftp.rb (initialize): set @sock to a NullSocket instance to
+ raise FTPConnectionError when not connected. [ruby-dev:40258]
+
+Sat Feb 6 23:25:57 2010 Shugo Maeda <shugo@ruby-lang.org>
+
+ * ext/curses/view2.rb: replaced with Hugh Sasse's version.
+ [ruby-core:27894]
+
+Sat Feb 6 22:57:00 2010 Shugo Maeda <shugo@ruby-lang.org>
+
+ * lib/net/imap.rb (receive_responses): does not hang when an
+ unexpected BYE response received. fixed [ruby-core:27944].
+ Thanks, Bob Potter.
+
+Sat Feb 6 21:31:23 2010 Shugo Maeda <shugo@ruby-lang.org>
+
+ * lib/monitor.rb (wait): supported timeout.
+
+ * test/net/imap/test_imap.rb (test_exception_during_idle): use timeout.
+
+Sat Feb 6 19:35:16 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * tool/compile_prelude.rb: fix require path.
+
+Sat Feb 6 12:02:36 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/delegate.rb (Delegator#method_missing),
+ (Delegator.delegating_block): don't hide backtrace from
+ __getobj__ and reduced exception messages when $DEBUG.
+
+Sat Feb 6 11:35:08 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/socket/ipsocket.c (ip_addr, ip_peeraddr),
+ ext/socket/socket.c (sock_s_getaddrinfo): added optional
+ reverse_lookup flag. [ruby-core:28007]
+
+Sat Feb 6 01:55:02 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * ext/stringio/stringio.c (strio_ungetc): pads with \000 when the
+ current position is after the end. [ruby-dev:40271]
+
+Sat Feb 6 01:14:54 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * ext/purelib.rb, common.mk: to simulate ruby command more precisely,
+ remove "." from $: of virtual environment for build and test.
+
+Sat Feb 6 00:02:31 2010 Tanaka Akira <akr@fsij.org>
+
+ * random.c (fill_random_seed): don't use O_NOFOLLOW because
+ /dev/urandom is a symlink in OpenSolaris.
+
+ * lib/securerandom.rb (SecureRandom.random_bytes): ditto.
+
+Fri Feb 5 16:38:08 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/delegate.rb (Delegator): include copy of Kernel.
+ [ruby-dev:40314]
+
+ * lib/delegate.rb (Delegator#{dup,clone}): class of copy should be
+ Delegator. [ruby-dev:40313]
+
+Fri Feb 5 09:26:54 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * bignum.c (big_op): remove unused variables.
+
+Fri Feb 5 02:06:57 2010 Aaron Patterson <tenderlove@ruby-lang.org>
+
+ * lib/yaml/rubytypes.rb: Struct members are emitted without a leading
+ colon. Thanks Yusuke Endoh! [ruby-core:28052]
+
+ * test/yaml/test_struct.rb: fixed tests to go with Struct changes
+
+ * test/yaml/test_yaml.rb: fixed tests to go with Struct changes
+
+Fri Feb 5 00:34:24 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * bignum.c (big_gt, big_ge, big_lt, big_ge): added Bignum#>, >=, < and
+ <= to allow to compare with BigDecimal. [ruby-dev:40167]
+
+Thu Feb 4 15:47:27 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * thread_pthread.c (native_thread_init_stack): use get_stack.
+ patched by KOSAKI Motohiro [ruby-dev:40309]
+
+ * thread_pthread.c (ruby_init_stack): use get_stack
+ on platforms which have pthread_attr_get_np.
+ (FreeBSD, DragonFlyBSD and NetBSD)
+ This is because FreeBSD and DragonFly BSD must use
+ pthread_attr_get_np to get stack size of main thread,
+ but Mac OS X and Linux with LinuxThreads must use getrlimit.
+ <http://www.nminoru.jp/~nminoru/programming/stackoverflow_handling.html>
+ <http://d.hatena.ne.jp/nurse/20100204>
+
+Thu Feb 4 09:55:38 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * configure.in: FreeBSD, DragonFly BSD and OpenBSD needs
+ pthread_np.h to use pthread_*_np functions.
+ OpenBSD's pthread_*_np also depend sys/signal.h,
+ but it is included at signal.h via vm_core.h via thread.c.
+
+Thu Feb 4 08:15:53 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/delegate.rb (Delegator): now inherits BasicObject.
+ [ruby-dev:39154], [Bug #2679], [ruby-dev:40242]
+
+Thu Feb 4 03:00:59 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * ext/bigdecimal/bigdecimal.c (BigDecimal_DoDivmod): get red of
+ floating point exception.
+
+Thu Feb 4 01:24:01 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * ext/bigdecimal/bigdecimal.c (BigDecimal_DoDivmod): fix infinity
+ handling. 1 / Infinity was evaluated to NaN.
+
+Thu Feb 4 00:37:43 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * time.c (time_mdump, time_mload): dump/load utc_offset.
+ [ruby-dev:40063]
+
+Wed Feb 3 22:22:30 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in: check for non-portable stack attribute functions.
+
+Wed Feb 3 20:10:52 2010 Tanaka Akira <akr@fsij.org>
+
+ * ext/iconv/charset_alias.rb: pass block argument to outer local
+ variable.
+
+Wed Feb 3 20:08:05 2010 Tanaka Akira <akr@fsij.org>
+
+ * file.c (realpath_rec): rb_path_last_separator may return NULL.
+
+Wed Feb 3 13:15:24 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * thread_pthread.c: DragonFlyBSD is also the same as FreeBSD
+ on getting the stack size of the main thread.
+
+Wed Feb 3 12:30:10 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * thread_pthread.c (ruby_init_stack): use pthread_get_attr_np
+ to get the stack size of the main thread on FreeBSD.
+
+ * thread_pthread.c: include pthread_np.h on FreeBSD.
+
+Wed Feb 3 11:38:44 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/dl/{closure,function}.c: removed C99 features and warnings.
+
+Wed Feb 3 10:12:09 2010 Aaron Patterson <tenderlove@ruby-lang.org>
+
+ * ext/dl/function.c: DL::Function now uses libffi
+
+ * ext/dl/cfunc.c (rb_dl_set_last_error): set to non static so errors
+ can be exposed.
+
+ * ext/dl/closure.c: DL::Closure will now be used in place of
+ ext/dl/callback/*.
+
+ * ext/dl/dl.c: legacy callbacks removed in favor of libffi
+
+ * ext/dl/dl_conversions.(c,h): used for converting ruby types to FFI
+ types.
+
+ * ext/dl/callback/*: replaced by libffi callbacks.
+
+ * ext/dl/lib/dl/callback.rb: Converting internal callbacks to use
+ DL::Closure
+
+ * ext/dl/lib/dl/closure.rb: Ruby parts of the new DL::Closure object
+
+ * ext/dl/lib/dl/import.rb: More conversion to use DL::Closure object
+
+ * ext/dl/lib/dl/value.rb (ruby2ffi): adding private method for
+ DL::CPtr to ffi value conversion.
+
+Tue Feb 2 18:15:12 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/socket/socket.c: turn on do_not_reverse_lookup by default,
+ which has been reverted in r9880 probably unintentionally,
+ according to matz. [ruby-core:24530]
+
+Tue Feb 2 14:46:06 2010 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * enumerator.c: move implementation of each_slice, each_cons,
+ each_with_object to enum.c.
+
+ * enum.c (each_slice_i): convert multiple values from yield into
+ an array.
+
+ * enum.c (each_cons_i): ditto.
+
+ * enum.c (each_with_object_i): ditto.
+
+Tue Feb 2 14:30:27 2010 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * enum.c (enum_each_entry): new method #each_entry to pack values
+ from yield into an array.
+
+ * lib/set.rb (Set#merge): use Enumerable#each_entry to implement
+ Set compatible to 1.8 behavior. [ruby-core:27985]
+
+ * lib/set.rb: replace is_a?(Enumerable) with respond_to?(:each)
+ for duck typing.
+
+ * lib/set.rb (SortedSet#add): typo fixed.
+
+Tue Feb 2 11:13:56 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/delegate.rb (Delegator#marshal_dump): exclude
+ delegator-specific instance variables.
+
+Mon Feb 1 21:26:41 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * lib/matrix.rb (Vector#each2): returns a self. [ruby-dev:40241]
+
+Mon Feb 1 17:08:42 2010 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * numeric.c (flo_minus): RDoc update. a patch from red stun
+ in [ruby-core:27951]
+
+Mon Feb 1 07:36:33 2010 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/tkutil/tkutil.c: fix SEGV on TkUtil::CallbackSubst._setup_subst_table.
+
+ * ext/tk/lib/tk.rb: [ruby1.9] fix freeze at exit.
+
+ * ext/tk/lib/tk.rb: [POTENTIAL INCOMPATIBLE] return NoMethodError
+ for TkWindow#to_ary and to_str.
+
+ * ext/tk/lib/tkextlib/tcllib/plotchart.rb: wrong arguments.
+
+ * ext/tk/sample/tkballoonhelp.rb: fail to support TkEntry widgets.
+
+Sun Jan 31 23:20:43 2010 wanabe <s.wanabe@gmail.com>
+
+ * io.c (rb_io_each_codepoint): use cbuf when needs readconv.
+
+Sun Jan 31 23:07:23 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * test/ruby/test_dir.rb: use string instead of symbol as file name.
+
+Sun Jan 31 22:41:33 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * string.c (rb_string_value): fix the previous commit.
+
+Sun Jan 31 21:43:35 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * string.c (rb_string_value): make no exception for Symbol.
+ [ruby-dev:40274]
+
+Sun Jan 31 21:10:15 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * vm_insnhelper.c (vm_throw): fixed infinite loop. [ruby-core:27969]
+
+Sun Jan 31 21:29:58 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * lib/rexml/text.rb (REXML::Text#initialize): do Text.check only when
+ parent is specified, since Text.check may need doctype. partially
+ revert r26518.
+
+Sun Jan 31 15:50:34 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * lib/rexml/text.rb (REXML::Text#initialize): fix typo and a bug that
+ seems to be caused by refactoring.
+
+Sun Jan 31 15:46:37 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * lib/rexml/parent.rb (REXML::Parent#delete): return the deleted node
+ because the rdoc of REXML::Element#delete_element says it returns
+ "the element that was removed." [REXMLTracker#161]
+
+Sun Jan 31 14:33:00 2010 James Edward Gray II <jeg2@ruby-lang.org>
+
+ * lib/csv.rb: A bug fix for deleting blank Table rows from Andy Hartford.
+
+Sun Jan 31 13:31:43 2010 wanabe <s.wanabe@gmail.com>
+
+ * gc.c (obj_free): free rb_classext_t of eigenclass. [Bug #1392]
+
+Sun Jan 31 13:00:14 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * lib/rexml/document.rb (REXML::Document#add): fix duplicate XMLDecls
+ and bad DocTypes in REXML::Document. (Bug #19058) [ruby-core:27979]
+ based on the patch by Federico Builes.
+
+Fri Jan 29 22:49:21 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * lib/getoptlong.rb (set_options): ensure that the type of argument is
+ Array, restoring this check that was deleted at r10239. This caused
+ rubyspec error.
+
+Fri Jan 29 12:59:33 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (mingw): needs $(DEFFILE) for extension libraries.
+ [ruby-core:27946]
+
+Fri Jan 29 11:09:49 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/mkmf.rb (try_do): log no source when no development env.
+
+ * lib/mkmf.rb (create_makefile): srcprefix always needs $(srcdir).
+
+ * lib/mkmf.rb (create_makefile): yield configuration if a block is
+ given.
+
+Fri Jan 29 09:43:30 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * enc/trans/utf8_mac.trans (buf_shift_char): don't see uninitialized
+ value. [ruby-dev:40233]
+
+Fri Jan 29 01:42:24 2010 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/delegate.rb (Delegator#initialize_copy): use initialize_copy
+ instead of overriding clone/dup. [ruby-dev:40221]
+ it now always clones the target, it might cause incompatibility.
+
+Fri Jan 29 01:26:53 2010 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ext/bigdecimal/bigdecimal.c (BigDecimal_to_i): update RDoc to
+ denote that #to_i raises FloatDomainError for Inf and NaN.
+
+ * ext/bigdecimal/bigdecimal.c (BigDecimal_to_i): fast #to_i using
+ BigDecimal_split().
+
+ * bignum.c (conv_digit): use faster ISDIGIT() assuming ASCII.
+
+Fri Jan 29 00:18:54 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * lib/cgi.rb: set autoload to CGI::HtmlExtension. [ruby-dev:40194]
+
+Thu Jan 28 09:44:19 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * regcomp.c (onig_compile): initialize ScanEnv.
+ mainly to initialize env->warnings_flag [ruby-dev:40196]
+
+ * regparse.c (scan_env_clear): clear warnings_flag.
+
+Wed Jan 27 23:33:21 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * test/matrix/test_matrix.rb, test/matrix/test_vector.rb: add some
+ tests.
+
+Wed Jan 27 23:29:36 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * lib/thread.rb (ConditionVariable#wait, signal, broadcast): return
+ self (for 1.8 compatibility).
+
+Wed Jan 27 23:27:54 2010 Keiju Ishitsuka <keiju@emperor2.pendome>
+
+ * lib/matrix.rb: add exception Matrix::ErrOperationNotImplemented
+ [ruby-dev:40149].
+ * lib/matrix.rb: change message of exception
+ Matrix::ErrOperationNotDefined [ruby-dev:40150], [ruby-dev:40176].
+ * lib/matrix.rb: add method Vector#/ [ruby-dev:40151].
+ * lib/matrix.rb(Matrix::Scalar#+,-,/): delete meaningless when
+ switch. [ruby-dev:40149]
+
+Wed Jan 27 23:22:54 2010 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
+
+ * vm_dump.c (bugreport_backtrace): trivial change.
+
+ * vm_dump.c (rb_vm_bugreport): uninitialized local variable i.
+ [ruby-dev:40169]
+
+ * test/ruby/test_rubyoptions.rb (TestRubyOptions#test_segv_test):
+ follow above change.
+
+Wed Jan 27 23:20:52 2010 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
+
+ * test/ruby/test_exception.rb
+ (TestException#test_thread_signal_location):
+ change test method name.
+
+Wed Jan 27 22:48:40 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * lib/matrix.rb (determinant): fix name error.
+
+Wed Jan 27 22:26:25 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * vm_eval.c (rb_backtrace): "circular require" warning was output to
+ stdout except the first line. All line is output to stderr now.
+ [ruby-dev:40147]
+
+Wed Jan 27 00:22:20 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * ext/bigdecimal/bigdecimal.c (BigDecimal_DoDivmod, BigDecimal_mod,
+ BigDecimal_divmod, BigDecimal_div2): BigDecimal#% and #div returned
+ an array itself that was returned by #divmod.
+
+Wed Jan 27 00:19:30 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * ext/bigdecimal/bigdecimal.c (VpCtoV): do not raise infinity
+ exception for BigDecimal("0E200000000000").
+
+Tue Jan 26 21:50:31 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * ext/bigdecimal/bigdecimal.c (VpCtoV): BigDecimal("0E200000000000")
+ was Infinity, not 0.
+
+ * test/bigdecimal/test_bigdecimal.rb: add a test for above.
+
+Tue Jan 26 21:36:22 2010 Tanaka Akira <akr@fsij.org>
+
+ * configure.in: test unsetenv returns a value.
+ unsetenv is void in older BSDs (FreeBSD 6 and OpenBSD 4.5 at least).
+
+ * hash.c (ruby_setenv): don't use the result of unsetenv if unsetenv
+ doesn't return a value.
+
+Tue Jan 26 21:32:03 2010 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/extconf.rb: suppress a warning.
+
+ * ext/extmk.rb: ditto.
+
+Tue Jan 26 20:23:22 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * vm.c (rb_vm_invoke_proc): this function must not catch TAG_RETURN
+ because vm_exec does. This caused rubyspec error. [ruby-dev:40158]
+
+Tue Jan 26 20:21:28 2010 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
+
+ * lib/drb/eq.rb: fix circular require in drb.
+ reported by akr. see [ruby-dev:40156] [ruby-core:27661]
+
+Tue Jan 26 19:59:17 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * ext/zlib/zlib.c (rb_gzfile_s_wrap): add rdoc. [Bug #2656]
+ patched by Hugh Sasse [ruby-core:27692] [ruby-core:27852]
+
+ * ext/zlib/doc/zlib.rd: removed.
+
+Tue Jan 26 16:43:34 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * ext/strscan/strscan.c: fix rdoc. (length -> bytesize)
+ reported by Kornelius Kalnbach. see [ruby-core:27792]
+
+Tue Jan 26 07:06:05 2010 Tanaka Akira <akr@fsij.org>
+
+ * lib/matrix.rb: suppress warnings.
+
+Tue Jan 26 03:16:45 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * cont.c, vm_core.h, eval.c: because rb_protect must not be jumped by
+ callcc, revert r26407. And rename trap_tag to protect_tag and
+ change exception message (across trap -> across stack rewinding
+ barrier).
+
+Mon Jan 25 23:08:10 2010 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * thread.c (do_select): wrong conditions. [ruby-core:27753]
+
+Mon Jan 25 22:31:53 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * test/ruby/envutil.rb: use method_defined? instead of
+ instance_methods.include?.
+
+Mon Jan 25 22:08:20 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * cont.c (rb_cont_call, cont_restore_1): remove trap_tag check because
+ it seems not to make sense. [ruby-dev:40121]
+
+ * vm_core.h, eval.c (rb_protect): ditto.
+
+Mon Jan 25 21:43:05 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * test/ruby/envutil.rb: fix the check if instance method `ruby' is
+ defined or not.
+
+Mon Jan 25 21:17:32 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * test/ruby/test_rubyoptions.rb (test_segv_test): add a test for
+ bugreport trace dumper.
+
+Mon Jan 25 17:47:02 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/pty/pty.c (pty_check): needs WNOHANG to poll, return $?, and
+ call raise_from_check() with pid_t. [ruby-dev:40141]
+
+Mon Jan 25 17:36:11 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * version.c (RUBY_LIB, RUBY_*_LIB): moved from configures.
+
+Mon Jan 25 12:11:45 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * signal.c (USE_SIGALTSTACK): only when SA_SIGINFO also is
+ available. see [ruby-core:27768].
+
+Mon Jan 25 12:02:34 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * dln.c, file.c, io.c, signal.c: add __HAIKU__.
+ patched by Alexander von Gluck [ruby-core:27767]
+
+Mon Jan 25 11:45:47 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * math.c (domain_check): ignore errno if y is inf.
+ r26335 is because NetBSD 5.0's asin and acos returns
+ 0.0 with errno EDOM. But it breaks Linux whose gamma returns inf
+ with errno ERANGE on.
+
+Sun Jan 24 22:48:05 2010 Koichi Sasada <ko1@atdot.net>
+
+ * eval.c, vm.c, vm_eval.c, vm_insnhelper.c: fix issues about
+ return and c-return trace. This issue skips (c-)return event
+ with global jump such as break or return. This fix make vm invoke
+ hooks at stack rewind timing. fix [ruby-core:27606] [Bug #2610].
+
+ * test/ruby/test_settracefunc.rb: add a test for above.
+
+Sun Jan 24 14:21:48 2010 Tanaka Akira <akr@fsij.org>
+
+ * string.c (rb_enc_strlen_cr): increment by rb_enc_mbminlen(enc) for
+ broken byte sequence. [ruby-core:27748]
+ (rb_str_inspect): ditto.
+
+Sun Jan 24 05:18:34 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * thread.c (thread_start_func_2): unlock all locking mutexes
+ before clean up. [ruby-core:26877]
+
+ * thread.c (rb_thread_atfork): no other threads to be joined.
+
+ * vm_core.h (rb_thread_lock_unlock, rb_thread_lock_destroy):
+ new functions.
+
+ * vm.c (ruby_vm_destruct): unlock and destroy global VM lock.
+
+Sun Jan 24 00:31:39 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * lib/rdoc/parser/ruby.rb: fix typo.
+ patched by Hal Brodigan [ruby-core:21536]
+
+Sun Jan 24 00:02:18 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * lib/rdoc/markup/to_html_crossref.rb: fix failure of the test.
+ patched by Tomoyuki Chikanaga and nobu [ruby-core:20564]
+
+Sat Jan 23 23:27:12 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * dir.c (dir_s_glob): add rdoc by Roger Pack. [ruby-core:27669]
+
+Sat Jan 23 23:12:56 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * lib/rdoc/generator/html.rb (RDoc::Generator::HTML#gen_into):
+ make the rdoc(generating html) run faster and use less memory.
+ patch by Tetsu Soh [ruby-core:27656]
+
+Sat Jan 23 19:54:48 2010 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+
+ * ext/win32ole/win32ole.c: add WIN32OLE.ole_initialize,
+ WIN32OLE.ole_uninitialize to use in win32ole.rb.
+ You must not use these methods.
+
+ * ext/win32ole/lib/win32ole.rb: add win32ole.rb
+ re-define Thread#initialize (fix ruby-core:27634)
+
+Sat Jan 23 00:25:19 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * sample/coverage.rb: preserve exit status.
+
+Sat Jan 23 00:21:18 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * test/ruby/test_dir.rb: get rid of debug print.
+
+ * test/ruby/test_module.rb: fixed to make test-all work.
+
+Fri Jan 22 23:54:04 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * test/ruby/test_array.rb: add a test for Array#rotate, rotate!.
+
+ * test/ruby/test_dir.rb, test/ruby/test_fnmatch.rb: add some tests
+ (for coverage of dir.c).
+
+ * test/ruby/test_enum.rb: add a test for Enumerable#minmax.
+
+ * test/ruby/test_enumerator.rb: add some tests for Enumerator#inspect,
+ Enumerator::Generator and Yielder.
+
+ * test/ruby/test_env.rb: add a test for ENV#index.
+
+ * test/ruby/test_exception.rb: add some tests (for coverage of
+ error.c).
+
+ * test/ruby/test_hash.rb: add a test for recursive check.
+
+ * test/ruby/test_integer.rb: add a test for number of argument of
+ Integer.
+
+ * test/ruby/test_method.rb: add a test for define_method.
+
+ * test/ruby/test_module.rb: add a test for constant of included
+ module.
+
+ * test/ruby/test_proc.rb: add a test for parameters with cfunc.
+
+Fri Jan 22 23:50:03 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * test/ruby/test_regexp.rb, test/ruby/test_symbol.rb,
+ test/ruby/test_variable.rb: add some tests (for coverage of
+ compile.c).
+
+Fri Jan 22 21:05:34 2010 Tanaka Akira <akr@fsij.org>
+
+ * time.c (time_mload): add submicro into vtm.subsecx. [ruby-dev:40133]
+
+Fri Jan 22 14:26:36 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * common.mk (rdoc): needs encodings and exts.
+
+Fri Jan 22 14:16:18 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * configure.in: add missing comma.
+
+Fri Jan 22 01:07:16 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * test/ruby/test_bignum.rb, test/ruby/test_class.rb,
+ test/ruby/test_defined.rb, test/ruby/test_hash.rb,
+ test/ruby/test_primitive.rb, test/ruby/test_variable.rb: add some
+ tests (for coverage).
+
+Fri Jan 22 01:03:28 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * test/ruby/test_require.rb (test_define_class): expect TypeError
+ instead of NameError. [ruby-core:27504]
+
+Thu Jan 21 15:09:35 2010 URABE Shyouhei <shyouhei@ruby-lang.org>
+
+ * configure.in: some tidy.
+
+Thu Jan 21 11:15:46 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * array.c (rb_ary_rotate): new methods, Array#rotate! and
+ Array#rotate. [ruby-dev:17194]
+
+ * array.c (rb_ary_reverse_m): copy directly.
+
+Thu Jan 21 09:38:00 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in: use AS_CASE instead of when, to get rid of
+ an unintentional substitution.
+
+Thu Jan 21 08:45:03 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * iseq.c (iseq_s_disasm): check for proc first. based on the
+ patch by Roger Pack in [ruby-core:27626]. [ruby-core:27227]
+
+Wed Jan 20 16:09:59 2010 URABE Shyouhei <shyouhei@ruby-lang.org>
+
+ * common.mk (compile.$(OBJEXT)): dependencies lacking.
+
+ * vm_method.c (rb_add_method_cfunc): invalid initializer for C89
+
+ * compile.c (iseq_insns_unification): int might be smaller than int*
+
+Tue Jan 19 20:00:30 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/resolv.rb (Resolv::Config.default_config_hash): return an
+ empty hash when resolv.conf is not available. [ruby-core:27620]
+
+ * lib/resolv.rb (Resolv::DNS::Config#lazy_initialize): fixed the
+ defaults of nameserver and port.
+
+Tue Jan 19 14:29:16 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * Makefile.in (clean-ext): allow glob patterns.
+
+ * ext/extmk.rb: ditto.
+
+Tue Jan 19 14:19:26 2010 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * ext/zlib/{extconf.rb, zlib.c): crc32_combine and adler32_combine is
+ supported on Zlib 1.2.2.1, so check them for old zlib.
+
+Tue Jan 19 09:03:37 2010 Aaron Patterson <tenderlove@ruby-lang.org>
+
+ * ext/zlib/zlib.c: added Zlib.crc32_combine and Zlib.adler32_combine
+
+ * test/zlib/test_zlib.rb: corresponding tests [ruby-core:27551]
+
+Tue Jan 19 02:02:32 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * test/ruby/test_array.rb: add some tests (for coverage).
+
+ * test/ruby/test_bignum.rb: ditto.
+
+Tue Jan 19 01:57:12 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * test/ruby/test_bignum.rb: some coerce definitions (for test) was
+ wrong.
+
+Tue Jan 19 01:53:11 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * bignum.c (bigsub_int): remove nonsense loop.
+
+Tue Jan 19 01:42:36 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * parse.y (top_compstmt, top_stmts, top_stmt): prohibit BEGIN {} in
+ non-toplevel scope. [ruby-core:21657]
+
+ * test/ruby/test_beginendblock.rb (test_begininclass): add a test for
+ above.
+
+Mon Jan 18 17:16:03 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/webrick/httpservlet/filehandler.rb (make_partial_content):
+ add bytes-unit. [ruby-dev:40030]
+
+Mon Jan 18 15:49:42 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/net/http.rb (Net::HTTPHeader#{content_range,range_length}):
+ use inclusive range same as the header representation.
+
+Mon Jan 18 03:59:57 2010 Akinori MUSHA <knu@iDaemons.org>
+
+ * ext/digest/digest.c (rb_digest_instance_hexdigest_bang): Fix
+ rdoc.
+
+ * ext/digest/lib/digest.rb (Digest::Class.base64digest)
+ (Digest::Instance#base64digest{,!}): New methods.
+
+Sun Jan 17 22:48:44 2010 Akinori MUSHA <knu@iDaemons.org>
+
+ * ext/digest/digest.c (rb_digest_instance_digest)
+ (rb_digest_instance_hexdigest): Save a method call of reset()
+ for a disposable clone.
+
+Sun Jan 17 19:24:25 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * math.c (domain_check): check errno first.
+ NetBSD 5.0's asin and acos returns 0.0 with errno EDOM.
+
+Sun Jan 17 14:24:35 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/iconv/iconv.c (rb_str_derive): use long.
+
+ * ext/iconv/iconv.c (iconv_convert): suppress a warning.
+
+ * lib/mkmf.rb (check_signedness): new method.
+
+ * lib/mkmf.rb (have_header, create_header): use String#tr_cpp.
+
+Thu Jan 14 13:06:58 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * numeric.c (flo_hash, int_chr): fixed type.
+
+Thu Jan 14 12:50:37 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * string.c (rb_str_concat): fixed range check for Fixnum, and
+ added checks for integer overflow and invalid char code.
+
+Thu Jan 14 09:34:31 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * string.c (rb_str_concat): raise RangeError when the argument is
+ negative value. [ruby-core:27583]
+
+Thu Jan 14 08:49:59 2010 Tanaka Akira <akr@fsij.org>
+
+ * time.c (time_to_r): convert to rational if internal representation
+ is not rational.
+
+Thu Jan 14 04:01:50 2010 Tanaka Akira <akr@fsij.org>
+
+ * time.c (time_mdump): use nano_num and nano_den instead of subnano to
+ avoid Rational class in marshaled data which prevent unmarshal by
+ Ruby 1.8.
+ (time_mload): use nano_num and nano_den.
+
+Wed Jan 13 11:57:38 2010 Marc-Andre Lafortune <ruby-core@marc-andre.ca>
+
+ * object.c (rb_class_initialize): Make sure BasicObject doesn't get
+ initialized twice [ruby-core:27577]
+
+ * class.c (rb_class_init_copy): ditto
+
+Wed Jan 13 06:54:44 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in: check for if struct timezone is defined.
+
+ * missing.h (struct timezone): define if not defined.
+
+ * win32/win32.h (struct timezone): defined in the newer w32api.
+ [ruby-core:27515]
+
+Wed Jan 13 00:33:09 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * lib/shell/command-processor.rb: fix typo by Sho Hashimoto.
+ reported and patched at [ruby-dev:40058] [Bug #2599]
+
+Tue Jan 12 23:48:29 2010 Kouhei Sutou <kou@cozmixng.org>
+
+ * lib/rss/maker/base.rb, test/rss/test_maker_0.9.rb:
+ accept any time format in maker. [ruby-core:26923]
+
+Tue Jan 12 21:56:00 2010 Tanaka Akira <akr@fsij.org>
+
+ * string.c (rb_str_set_len): call rb_str_modify.
+
+ * file.c (realpath_rec): don't call rb_str_modify before
+ rb_str_set_len.
+
+Tue Jan 12 20:44:14 2010 Tanaka Akira <akr@fsij.org>
+
+ * file.c (realpath_internal): call rb_secure.
+
+Tue Jan 12 16:48:46 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/net/http.rb (Net::HTTP.start): options may not be given.
+
+Tue Jan 12 16:48:03 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/readline/readline.c (readline_readline): check if instream
+ is closed instead of fd 0.
+
+ * ext/readline/readline.c (Init_readline): use STDIN for input.
+ Reported by Sora Harakami. See
+ http://d.hatena.ne.jp/codnote/20100111/1263174134
+
+Tue Jan 12 16:09:02 2010 wanabe <s.wanabe@gmail.com>
+
+ * test/ruby/test_process.rb (test_execopts_env): MANDATORY_ENVS might
+ not be a part of ENV. e.g. TMPDIR.
+
+Tue Jan 12 14:07:31 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * lib/net/http.rb (Net::HTTP.start): add hash argument to
+ set ssl related options. when use_ssl is set default value
+ of verify_mode is OpenSSL::SSL::VERIFY_PEER. [ruby-dev:40003]
+
+Tue Jan 12 14:53:07 2010 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/win32.c (init_env): use _wputenv() instead of
+ SetEnvironmentVariableW() because latter doesn't set msvcrt's environ
+ work area, of course.
+ [Bug #2552]
+
+Tue Jan 12 13:33:54 2010 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * file.c (realpath_rec): trace symbolic link only when supporting
+ readlink().
+
+Tue Jan 12 12:49:39 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * misc/ruby-mode.el (ruby-here-doc-beg-match): fix for here-doc
+ which ends with an underscore.
+
+Tue Jan 12 09:58:03 2010 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * hash.c: need to include errno.h for EINVAL.
+
+ * hash.c (ruby_setenv): fixed typo. see [ruby-dev:40026]
+
+Tue Jan 12 09:22:43 2010 Tanaka Akira <akr@fsij.org>
+
+ * prelude.rb (require_relative): use File.realpath. [ruby-dev:40040]
+
+ * include/ruby/intern.h: declare rb_dir_getwd.
+
+ * dir.c (rb_dir_getwd): copied from dir_s_getwd to export.
+ (dir_s_getwd): use rb_dir_getwd.
+
+ * file.c (rb_file_s_realpath): new method File.realpath.
+ (rb_file_s_realdirpath): new method File.realdirpath.
+
+ * lib/pathname.rb (Pathname#realpath): use File.realpath.
+ (Pathname#realdirpath): use File.realdirpath.
+
+Mon Jan 11 22:45:08 2010 Akinori MUSHA <knu@iDaemons.org>
+
+ * hash.c (ruby_setenv): Improve the emulation of setenv(3) on
+ environments where putenv(3) is used. Raise EINVAL If a
+ variable name contains an '='.
+
+Mon Jan 11 18:16:38 2010 wanabe <s.wanabe@gmail.com>
+
+ * vm_insnhelper.h (GET_BLOCK_PTR): return 0 when in class frame.
+ [Bug #2583]
+
+Mon Jan 11 16:52:05 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * string.c (rb_str_strlen): added. [ruby-dev:40028]
+
+ * include/ruby/intern.h (rb_str_strlen): declared.
+
+Mon Jan 11 13:30:35 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/webrick/accesslog.rb (WEBrick::AccessLog#format): fixed typo.
+
+ * lib/webrick/httpstatus.rb (WEBrick::HTTPStatus::Status#initialize):
+ accept 0 or more arguments. [ruby-dev:40021]
+
+Mon Jan 11 12:47:58 2010 Akinori MUSHA <knu@iDaemons.org>
+
+ * hash.c (ruby_setenv): ENV.[]= should raise an error if setenv(3)
+ or putenv(3) fails. [ruby-dev:40023]
+
+Sun Jan 10 17:25:24 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/webrick/accesslog.rb : Escape needed.
+
+ * lib/webrick/httpstatus.rb : ditto.
+
+ * lib/webrick/httprequest.rb : ditto.
+
+ * lib/webrick/httputils.rb : ditto.
+
+ * test/webrick/test_cgi.rb (TestWEBrickCGI::test_bad_): Test for it.
+
+Sun Jan 10 04:54:36 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * class.c (rb_define_class): raise TypeError same as class
+ statement. [ruby-core:27504]
+
+Sun Jan 10 04:41:20 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/mkmf.rb (configuration): needs ARCH_FLAG.
+
+Sat Jan 9 14:20:54 2010 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * common.mk (install-all): maybe typo.
+
+Sat Jan 9 14:01:14 2010 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * missing/vsnprintf.c (BSD_vfprintf): get rid of a warning of VC++ x64.
+
+Sat Jan 9 08:40:54 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * win32/configure.bat (WIN32DIR): regularise file separators.
+
+Fri Jan 8 23:35:18 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * proc.c (mnew): don't check visibility of method body if public
+ ZSUPER method is found. [ruby-dev:39767]
+
+ * test/ruby/test_method.rb: add a test for above.
+
+Fri Jan 8 22:59:40 2010 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * vm_method.c (rb_alias): skip ZSUPER method when searching body of
+ source method. [ruby-dev:39760]
+
+ * test/ruby/test_alias.rb: add a test for above.
+
+Fri Jan 8 21:15:21 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * lib/net/http, lib/net/https: move content from net/https to
+ net/http. [ruby-dev:39986]
+
+Fri Jan 8 14:06:01 2010 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * io.c (rb_io_s_read): close the IO if an exception is raised on
+ seeking. [ruby-core:27429]
+
+Fri Jan 8 13:12:26 2010 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * marshal.c (w_symbol): dump no encoding for 7bit only coderange
+ symbol. [ruby-core:27375]
+
+Thu Jan 7 07:56:09 2010 Ryan Davis <ryand-ruby@zenspider.com>
+
+ * lib/minitest/*.rb: Imported minitest 1.5.0 r5596.
+ * test/minitest/*.rb: ditto.
+
+Tue Jan 5 19:30:53 2010 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
+
+ * test/ruby/test_exception.rb: add a test. cf [ruby-dev:39116]
+
+Tue Jan 5 02:03:34 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * configure.in (DTRACE): clear this when `dtrace -l` fails.
+ Note that current FreeBSD needs privilege to call it;
+ so to use DTrace on FreeBSD, you should run configure as root.
+
+Mon Jan 4 21:24:18 2010 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * gc.c: added UNLIKELY to probes for optimization.
+
+ * vm.c: ditto.
+
+ * thread.c: ditto.
+
+Mon Jan 4 09:30:54 2010 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/Makefile.sub (TRACING_MODEL): follow yugui's previous changes.
+
+Mon Jan 4 09:30:25 2010 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * thread_win32.c (InterlockedExchangePointer): old SDK support.
+
+Sun Jan 3 23:54:51 2010 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * trace.h: new file. wraps tracing mechanisms.
+
+ * defs/dtrace.d: new file. defined a dtrace provider "ruby".
+
+ * include/ruby/ruby.h (LIKELY): moved from vm.c.
+ (UNLIKELY): ditto.
+ (OBJSETUP): probe "object-create".
+ (RUBY_EVENT_RESCUE): new event.
+
+ * vm_exec.c (DEBUG_ENTER_INSN): embedded a probe insn-entry into it.
+ (DEBUG_END_INSN): insn-return.
+
+ * vm.c (LIKELY): moved into ruby.h.
+ (UNLIKELY): ditto.
+ (Init_BareVM): embedded a probe "raise" into it.
+
+ * variable.c (rb_class2name_without_alloc): new utility function.
+
+ * tool/rbinstall.rb (install?(:ext, :arch, :'ext-arch')): installs
+ dtrace.d if necessary.
+
+ * thread_pthread.c (add_signal_thread_list): probe "raise".
+ (rb_thread_create_timer_thread): ditto.
+
+ * thread.c (rb_thread_schedule_rec): probes "thread-enter" and
+ "thread-leave",
+ (thread_start_func_2): ditto.
+ (thread_cleanup_func): probe "thread-term"
+
+ * lib/mkmf.rb: supports dtrace postprocessor on making an extension.
+
+ * iseq.c (rb_vm_insn_name): new utility function.
+ (rb_vm_insn_len): ditto.
+
+ * insns.def (hook): probes "method-entry", "method-return", "line",
+ and "rescue".
+
+ * compile.c (iseq_compile_each): adds a trace op for "rescue" probe.
+
+ * gc.c (garbage_collect): probes "gc-begin" and "gc-end".
+ (obj_free): probe "object-free"
+ (garbage_collect_with_gvl): probe "raise"
+ (negative_size_allocation_error): ditto.
+ (rb_memerror): ditto.
+
+ * eval.c (rb_rescue2): probe "rescue"
+ (rb_longjmp): probe "raise"
+
+ * ext/probe/probe.c: new extension for application defined probes.
+
+ * ext/probe/extconf.rb: ditto.
+
+ * configure.in (--with-tracing-model): new option to choose a tracing
+ mechanism.
+ (DTRACE): new substitution. name of dtrace(1).
+ (RUBY_TRACING_MODEL): new substitution.
+ (DTRACE_OBJ): ditto.
+ (MINIDTRACE_OBJ): ditto.
+ (GOLFDTRACE_OBJ): ditto.
+ (LIBRUBY_DTRACE_OBJ): ditto.
+ (RUBY_DTRACE_POSTPROCESS): new macro. checks whether the dtrace on
+ the system needs postprocessing.
+ (RUBY_DTRACE_BSD_BROKEN): new macro. checks whether the dtrace
+ supports USDT.
+
+ * Makefile.in:
+ (DTRACE): new variable. name of dtrace(1).
+ (TRACING_MODEL): new variable. name of the chosen tracing mechanism.
+ (DTRACE_OBJ): same as the one in configure.in.
+ (MINIDTRACE_OBJ): ditto.
+ (GOLFDTRACE_OBJ): ditto.
+ (LIBRUBY_DTRACE_OBJ): ditto.
+ (CPPOUTFILE): new substitution. necessary for generating dtrace.d
+ (trace_none.h): new target for TRACING_MODEL=none
+ (RUBY_H_INCLUDES): appended a header for tracing.
+ (distclean-local): also removes preprocessed version of dtrace.d
+ ($(LIBRUBY_A)): needs $(LIBRUBY_DTRACE_OBJ) if dtrace needs
+ postprocessing.
+ ($(PROGRAM)): ditto.
+ (golf): ditto.
+ (miniruby): ditto.
+ ($(arch_hdrdir)/ruby/dtrace.d): new target. preprocessed version
+ of defs/dtrace.d. generated if necessary.
+ ($(arch_hdrdir)/ruby/trace_dtrace.h): new target.
+ definition of probes.
+ ($(LIBRUBY_DTRACE_OBJ)): new target. generated if dtrace needs
+ postprocessing.
+ ($(DTRACE_OBJ)): ditto.
+ ($(MINIDTRACE_OBJ)): ditto.
+ ($(GOLFDTRACE_OBJ)): ditto.
+
+Sun Jan 3 15:34:19 2010 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * lib/rexml/text.rb: String no longer has #each.
+ Patch by Mitsutaka Mimura (takkanm). [ruby-dev:39949].
+
+Sun Jan 3 01:29:18 2010 Tanaka Akira <akr@fsij.org>
+
+ * lib/resolv.rb (Resolv::DNS::Message::MessageDecoder#inspect):
+ implemented.
+
+Sat Jan 2 15:57:54 2010 Tanaka Akira <akr@fsij.org>
+
+ * lib/resolv.rb (Resolv::DNS#initialize): new option :nameserver_port.
+ (Resolv::DNS#each_resource): pass port number.
+ (Resolv::DNS#make_requester): ditto.
+ (Resolv::DNS::Config#lazy_initialize): initialize @nameserver_port
+ instead of @nameserver.
+ (Resolv::DNS::Config#single?): return port number addition to the
+ nameserver.
+ (Resolv::DNS::Config#generate_timeouts): use @nameserver_port.
+ (Resolv::DNS::Config#resolv): yield port number.
+
+Sat Jan 2 00:43:22 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * lib/uri/common.rb (initialize_regexp): allow leading
+ and trailing white space, and forbid extra characters
+ on another lines. [ruby-core:26223]
+ RFC 3986 Appendix C. Delimiting a URI in Context
+ draft-duerst-iri-bis-07 7.2. Web Address processing
+
+Fri Jan 1 23:17:49 2010 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * lib/uri/generic.rb (URI#normalize!): normalize case of
+ scheme. [ruby-core:27309]
+
+Fri Jan 1 00:47:57 2010 Akinori MUSHA <knu@iDaemons.org>
+
+ * ext/digest/digest.c (rb_digest_instance_method_unimpl): Suppress
+ compiler warnings.
+
+Fri Jan 1 00:00:00 2010 Tanaka Akira <akr@fsij.org>
+
+ * tool/mkconfig.rb: generate RbConfig.ruby in rbconfig.rb.
+
+ * lib/webrick/httpservlet/cgihandler.rb: use RbConfig.ruby.
+
+ * test/ruby/envutil.rb: ditto.
+
+ * benchmark/report.rb: ditto.
+
+ * benchmark/runc.rb: ditto.
+
+ * tool/eval.rb: ditto.
+
+Thu Dec 31 18:18:55 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * ext/socket/rubysocket.h: include addrinfo.h only when using our own
+ getaddrinfo.c.
+
+Thu Dec 31 14:20:11 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * process.c (save_redirect_fd): consider EBADF that the fd is not used.
+ [ruby-dev:39938]
+
+Thu Dec 31 06:03:48 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/socket/raddrinfo.c (addrinfo_type): typed.
+
+ * ext/socket/extconf.rb: fix for wide-getaddrinfo option.
+
+ * ext/socket/addrinfo.c: rename {addr,name}info functions to ensure
+ those are used on darwin.
+
+Thu Dec 31 03:27:53 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * thread_win32.c (native_thread_destroy): decreased the probability of
+ using the interrupt event in the thread termination.
+ see [ruby-core:27199].
+
+Thu Dec 31 02:35:57 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * thread_win32.c (w32_error): should report the function.
+
+Thu Dec 31 01:58:47 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/extmk.rb: fix for extstatic.
+
+Wed Dec 30 19:43:00 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * include/ruby/ruby.h (RREGEXP_SRC_END): added.
+
+Wed Dec 30 19:40:00 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * include/ruby/defines.h (INFINITY): this is float.
+
+ * include/ruby/defines.h (NAN): ditto.
+
+ * numeric.c (rb_infinity): change content as float.
+
+ * numeric.c (rb_nan): ditto.
+
+Wed Dec 30 17:59:14 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * gem_prelude.rb (push_all_highest_version_gems_on_load_path):
+ simplified.
+
+ * lib/rubygems/command_manager.rb (Gem#load_and_instantiate):
+ rescue only NameError from const_get.
+
+ * lib/rubygems/source_index.rb (Gem#load_specification): don't use
+ RUBY_VERSION to branch.
+
+ * lib/rubygems/validator.rb (Gem::TestRunner, Gem#alien): ditto.
+
+ * lib/rubygems.rb: Kernel#gem is already defined, and workaround
+ for home directory and custom_require are no longer needed.
+
+Tue Dec 29 16:03:33 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * numeric.c (Init_Numeric): Add Float::INFINITY and Float::NAN.
+ [ruby-dev:1657] [ruby-dev:4760] [ruby-list:7023]
+ [ruby-list:46690]
+ [ruby-core:26632] [ruby-talk:41352] [ruby-talk:203333]
+
+ * include/ruby/defines.h (INFINITY): defined.
+
+ * include/ruby/defines.h (NAN): defined.
+
+ * include/ruby/util.h (ruby_div0): removed.
+
+ * numeric.c (fix_pow): use INFINITY and NAN
+ instead of ruby_div0(1.0).
+
+ * marshal.c (r_object0): ditto.
+
+ * bignum.c (big_fdiv): ditto.
+
+Tue Dec 29 10:36:23 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/rexml/parsers/baseparser.rb (REXML::Parsers::BaseParser::STANDALONE):
+ any number spaces can be placed between equal-sign and the value.
+ patch from Ed Howland in [ruby-core:27345].
+
+Mon Dec 28 22:33:58 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/win32.c (CreateChild): force to inherit standard I/O handles.
+ this change fixes [ruby-core:27273], but other side effects might
+ exist.
+
+Mon Dec 28 22:00:10 2009 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * test/ruby/test_marshal.rb: added tests for taintness/untrustness
+ propagation.
+
+Mon Dec 28 18:13:26 2009 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * sample/occur2.rb: reimplemented in modern style. [ruby-dev:39927].
+
+Mon Dec 28 17:19:37 2009 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * tool/install-sh: correction by Hiro Asari.
+ https://gist.github.com/264558/58ad1cae45cde49600bbb39286af2aae23e639d5
+
+Mon Dec 28 13:18:52 2009 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * tool/install-sh: wrote the intention. [ruby-dev:39928]
+
+Sun Dec 27 10:45:00 2009 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+
+ * ext/win32ole/win32ole.c (foleparam_initialize): add foleparam_initialize
+ to check argument of WIN32OLE_PARAM.new
+
+ * test/win32ole/test_win32ole_param.rb (test_s_new): add some assertion
+ to test WIN32OLE_PARAM.new
+
+Sun Dec 27 09:41:54 2009 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * tool/rbinstall.rb (install?(:local, :comm, :bin, :'bin-comm')):
+ Makes it vim friendly. __END__ in a heredoc is confusing with
+ the script end for vim.
+
+Sun Dec 27 09:13:55 2009 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * sample/occur2.rb: have been broken. fixed for Ruby 1.9 feature.
+
+Thu Dec 24 16:32:30 2009 Marc-Andre Lafortune <ruby-core@marc-andre.ca>
+
+ * lib/uri/generic.rb (eql?): Check the class of the compared object.
+ Based on a patch by Peter McLain [ruby-core:27019]
+
+Thu Dec 24 15:20:03 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * regexec.c (match_at): follow enclen's change.
+
+Thu Dec 24 12:08:00 2009 Marc-Andre Lafortune <ruby-core@marc-andre.ca>
+
+ * lib/delegate.rb (marshal_dump/load): dump & load instance variables
+ by default [ruby-core:24211]
+
+Thu Dec 24 10:31:50 2009 Marc-Andre Lafortune <ruby-core@marc-andre.ca>
+
+ * lib/object.c (rb_obj_cmp): Default <=> operator returns 0 if
+ objects are == [ruby-core:24063]
+
+Wed Dec 23 09:12:31 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * test/cgi/test_cgi_multipart.rb (CGIMultipartTest#_prepare):
+ always must be binary mode. c.f. Bug#2341
+
+Thu Dec 10 09:20:58 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * encoding.c (Init_Encoding): undef Encoding.new because
+ a class which is rb_undef_alloc-func-ed can't call new method.
+ [ruby-dev:39862]
+
+ * vm.c (Init_VM): undef RubyVM.new and RubyVM::Env.new.
+
+Mon Dec 21 17:51:44 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * regcomp.c (optimize_node_left): include equal on the condition of for-loop.
+ This bug also affects original Oniguruma. [ruby-core:27247]
+
+Mon Dec 21 10:03:33 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * regcomp.c (print_enc_string): follow enclen's change.
+
+ * regcomp.c (onig_print_compiled_byte_code): ditto.
+
+ * regcomp.c (onig_print_compiled_byte_code): change prototype.
+
+ * regint.c (onig_print_compiled_byte_code): comment out.
+
+Mon Dec 21 08:04:34 2009 Marc-Andre Lafortune <ruby-core@marc-andre.ca>
+
+ * object.c: BasicObject#initialize accepts any number of arguments
+ [ruby-core:27080]
+
+Mon Dec 21 02:45:46 2009 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * vm_eval.c (rb_iterate): remove SEGV (retry).
+
+Sun Dec 20 23:18:23 2009 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * vm_eval.c (rb_iterate): remove SEGV (use the original patch).
+ [ruby-dev:39874]
+
+Sun Dec 20 21:26:05 2009 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * vm_eval.c (rb_iterate): pass current block when the argument bl_proc
+ is NULL. This behavior can be used to make enumerator faster
+ [ruby-dev:39874]
+
+ * enumerator.c (enumerator_each): pass current block directly instead
+ of trampoline block (enumerator_each_i).
+
+ * io.c (argf_each_line, argf_each_byte, argf_each_char): ditto.
+
+Sat Dec 19 14:59:30 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * gem_prelude.rb (Kernel#gem): should make gem private. a patch
+ from Sho Hashimoto in [ruby-dev:39838].
+
+Sat Dec 19 14:57:17 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/webrick/config.rb (WEBrick::Config): typo fixed. a patch
+ from Sho Hashimoto in [ruby-dev:39835].
+
+Sat Dec 19 11:06:48 2009 Marc-Andre Lafortune <ruby-core@marc-andre.ca>
+
+ * lib/matrix.rb (each2,collect2,map2): Fix enumerator
+ [ruby-core:27225]
+
+Sat Dec 19 09:58:05 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * vm_eval.c (check_funcall): reset method_missing_reason before
+ trying the call. based on a patch from Yehuda Katz in
+ [ruby-core:27219].
+
+Sat Dec 19 09:29:22 2009 Marc-Andre Lafortune <ruby-core@marc-andre.ca>
+
+ * lib/set.rb: Add checks that passed argument is Enumerable.
+ [ruby-core:23844]
+
+Wed Dec 16 20:28:46 2009 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
+
+ * test/ruby/envutil.rb: fix a typo in assert message.
+
+Wed Dec 16 16:57:59 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/un.rb (httpd): try to convert port number to integer.
+
+Wed Dec 16 11:18:30 2009 WATANABE Hirofumi <eban@ruby-lang.org>
+
+ * configure.in(MINIRUBY): use "$BASERUBY" as a default ruby executable
+ name.
+
+Wed Dec 16 00:53:14 2009 Tanaka Akira <akr@fsij.org>
+
+ * lib/find.rb (Find.find): rescue more exceptions which is possible to
+ occur by other process change the directory tree.
+
+Tue Dec 15 09:06:33 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/find.rb (Find.find): get rid of race condition.
+
+Mon Dec 14 22:33:21 2009 Tanaka Akira <akr@fsij.org>
+
+ * lib/find.rb (Find.find): rescue only ENOENT and EACCES for lstat.
+
+Mon Dec 14 21:49:30 2009 Tanaka Akira <akr@fsij.org>
+
+ * lib/find.rb (Find.find): narrow rescue region.
+
+Mon Dec 14 09:20:54 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/find.rb (Find.find): removed already unnecessary code.
+
+Sun Dec 13 23:48:25 2009 Tanaka Akira <akr@fsij.org>
+
+ * lib/find.rb (Find.find): sort directory entries. [ruby-dev:39847]
+
+Sun Dec 13 20:55:30 2009 Tanaka Akira <akr@fsij.org>
+
+ * test/ruby/envutil.rb (invoke_ruby): call to_str for stdin_data to
+ reject non-string.
+
+Sun Dec 13 20:26:57 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * ruby.c (rb_parser_dump_tree): add prototype.
+
+Thu Dec 10 20:55:55 2009 Martin Duerst <duerst@it.aoyama.ac.jp>
+
+ * transcode_data.h, transcode.c, tool/transcode-tblgen.rb: Added
+ support for new transcoding instruction FUNsio (with Tatsuya Mizuno)
+
+ * enc/trans/gb18030.trans: Significantly reduced GB18030 conversion
+ table footprint using FUNsio and differences (with Tatsuya Mizuno)
+
+ * test/ruby/test_transcode.rb: Minor name fix (from Tatsuya Mizuno)
+
+Thu Dec 10 17:22:36 2009 Shugo Maeda <shugo@ruby-lang.org>
+
+ * vm_eval.c (yield_under): yields self the same as 1.8.
+
+Thu Dec 10 15:49:13 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * thread_pthread.c (native_mutex_reinitialize_atfork): release and
+ re-acquire the lock at re-initialization.
+
+Thu Dec 10 12:56:02 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * encoding.c (enc_replicate): add Encoding#replicate(name).
+
+ * encoding.c (enc_replicate_with_index): renamed from old
+ enc_replicate.
+
+ * encoding.c (rb_enc_from_encoding_index): split from
+ rb_enc_from_encoding.
+
+Thu Dec 10 09:15:00 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * string.c (rb_str_inspect): CHAR_ESC_LEN should be 13.
+
+Thu Dec 10 01:12:55 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (dyna_pop_gen): pop dvars. [ruby-dev:39861]
+
+Thu Dec 10 00:46:43 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * node.c (dump_node): fixed for long members.
+
+Wed Dec 9 22:57:04 2009 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * node.c: node management added. Currently, only pretty-dumper is
+ implemented. [ruby-dev:39853]
+
+ * ruby.c: --dump=parsetree and --dump=parsetree_with_comment options
+ added. This is just for debug or research purpose. Note that the
+ compatibility of these options are not supported at all.
+
+Wed Dec 9 09:50:35 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * string.c (rb_str_justify): fixed the case a fill size is a
+ multiple of the length of the padding. [ruby-dev:39856]
+
+Tue Dec 8 23:41:34 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/configure.bat: now recognize --with-*-{dir,include,lib} options
+ and pass them to mkmf.
+
+ * win32/configure.bat: general conversion from ``/'' to ``\'' of
+ configure_args is not necessary any longer.
+
+ * win32/setup.mak: BASERUBY is used as command, so always need to
+ convert ``/'' to ``\'' within it.
+
+Tue Dec 8 23:39:52 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * numeric.c (flo_eq): suppress a warning on VC++ for x64.
+
+Tue Dec 8 16:19:05 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/rubygems: update to 1.3.5.
+
+ * lib/rubygems/defaults.rb (Gem::default_dir): removed a clause
+ doing nothing.
+
+Tue Dec 8 03:50:24 2009 Tanaka Akira <akr@fsij.org>
+
+ * file.c (rb_f_test): use string form in unknown command error
+ message.
+
+Mon Dec 7 14:11:08 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * marshal.c (w_object): reverted r26007. [ruby-dev:39845]
+
+ * test/test_delegate.rb (test_marshal): moved from test_marshal.rb.
+
+Mon Dec 7 13:05:59 2009 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * string.c (rb_str_justify): CVE-2009-4124.
+ Fixes a bug reported by
+ Emmanouel Kellinis <Emmanouel.Kellinis AT kpmg.co.uk>, KPMG London;
+ Patch by nobu.
+
+Sun Dec 6 23:50:46 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * strftime.c: %l should be 1..12 instead of 0..12 [ruby-core:27072]
+
+Sun Dec 6 23:16:35 2009 Tanaka Akira <akr@fsij.org>
+
+ * lib/find.rb (Find.find): reduce stat system call.
+
+Sun Dec 6 16:02:15 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * lib/webrick/httpservlet/filehandler.rb: escape filename of index.
+ [ruby-dev:37768]
+
+Sun Dec 6 00:35:16 2009 Alexander Zavorine <alexandre.zavorine@nokia.com>
+
+ * symbian/setup (config.h): EXECUTABLE_EXTS moved from
+ dln.c:dln_find_1().
+
+Sat Dec 5 15:35:05 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * marshal.c (w_object): dump instance variables when using
+ marshal_dump. [ruby-core:24211]
+
+ * variable.c (rb_ivar_count): added.
+
+Sat Dec 5 13:19:29 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in: default ac_cv_prog_CC to CC.
+
+Sat Dec 5 10:18:26 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/irb/extend-command.rb (def_extend_command): fixed argument
+ number for negative arity.
+
+Fri Dec 4 16:50:13 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (k_def): adjust the location of method definition to the
+ line of def. [Bug #2427]
+
+Fri Dec 4 19:05:28 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * insns.def (defined): should respect #respond_to_missing? as
+ #respond_to? does.
+
+Fri Dec 4 15:50:18 2009 Shugo Maeda <shugo@ruby-lang.org>
+
+ * vm_eval.c (yield_under): does not yield self, and passes blockptr
+ instead of &block to vm_cref_push(). [ruby-dev:39833]
+
+Fri Dec 4 15:15:43 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * time.c (num_exact): should not accept strings as operands, even
+ though they respond to #to_r. ideally, strict rational
+ conversion should be done by a method like #to_rational, not #to_r.
+ [ruby-core:23729]
+
+Fri Dec 4 13:10:23 2009 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * ext/stringio/stringio.c (ungetc): RDoc updated. trunk allows
+ pushing back behind the beginning of the pseudo stream.
+
+Fri Dec 4 03:10:38 2009 Shugo Maeda <shugo@ruby-lang.org>
+
+ * compile.c (compile_cpath, iseq_compile_each): reverted
+ constant/class variable lookup in instance_eval etc. to the
+ behavior of 1.8.
+
+ * eval.c (rb_mod_nesting): ditto.
+
+ * insns.def (putspecialobject, defineclass): ditto.
+
+ * node.h (NODE_FL_CREF_PUSHED_BY_EVAL): ditto.
+
+ * vm_core.h (VM_SPECIAL_OBJECT_CONST_BASE): ditto.
+
+ * vm_eval.c (yield_under, eval_under): ditto.
+
+ * vm_insnhelper.c (vm_cref_push, vm_get_const_base,
+ vm_get_ev_const, vm_get_cvar_base): ditto.
+
+Thu Dec 3 20:27:27 2009 Martin Duerst <duerst@it.aoyama.ac.jp>
+
+ * enc/trans/gb18030-tbl.rb: Fix omission of C1 region in code table
+ (from Tatsuya Mizuno)
+
+ * test/ruby/test_transcode.rb: Added test for converting full range of
+ Unicode codepoints from/to GB18030 (from Tatsuya Mizuno)
+
+Wed Dec 2 23:51:28 2009 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * ext/openssl/ossl_ssl.c: initialize @hostname of SSLSocket to avoid
+ warning at SSLSocket#connect.
+
+Tue Dec 1 18:01:43 2009 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * test/digest/test_digest_extend.rb: added tests for digest framework.
+
+Tue Dec 1 12:01:13 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (dyna_push_gen, dyna_pop_gen): no needs to save both of
+ args and vars. [ruby-core:26961]
+
+ * parse.y (dyna_push_gen): use rb_node_newnode() for ripper.
+ [ruby-core:26961]
+
+ * parse.y (dyna_push_gen, dyna_pop_gen): adjust local vtable level
+ for the case of syntax errors in method name or argument inside
+ do block. [ruby-core:26961]
+
+Mon Nov 30 16:57:45 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/extmk.rb (command_output): $makeflags are already quoted.
+
+Mon Nov 30 16:54:22 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in, win32/Makefile.sub (EXECUTABLE_EXTS): moved from
+ dln.c:dln_find_1().
+
+ * lib/mkmf.rb (def find_executable0): use EXECUTABLE_EXTS, not
+ only EXEEXT. [ruby-core:26821]
+
+Mon Nov 30 11:00:12 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (parser_yylex): suppress an extra error message after
+ numeric literal without digits. based on a patch from ujihisa .
+ in [ruby-dev:39811]. [ruby-dev:39798]
+
+Sun Nov 29 16:56:24 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * vm_eval.c (check_funcall_failed): pass ID. [ruby-core:26934]
+
+Sun Nov 29 06:37:53 2009 Aaron Patterson <tenderlove@ruby-lang.org>
+
+ * lib/rexml/formatters/default.rb (write_attribute): fix an
+ exception when printing a document when duplicate namespaced
+ attributes exist. Thanks, Alexey Froloff [ruby-core:26837]
+
+Sat Nov 28 09:05:53 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * vm_eval.c (check_funcall_failed): should rescue user raised
+ NoMethodError. rescue all NoMethodError if receiver does not
+ respond to the method name. [ruby-dev:39796]
+
+Thu Nov 26 21:14:30 2009 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * test/ruby/test_complex.rb (@unify): fix the detection if math
+ loaded. This makes test_complex.rb work fine with the previous
+ commit.
+
+ * test/ruby/test_rational.rb (@unify): ditto.
+
+Thu Nov 26 21:13:36 2009 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * test/test_mathn.rb (TestMathn): new test case.
+ test for r25067.
+
+Thu Nov 26 21:11:23 2009 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * test/openssl/test_config.rb (OpenSSL::TestConfig): new test case.
+ test for r25017.
+
+Thu Nov 26 21:08:54 2009 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * test/ruby/test_range.rb (TestRange#test_comparison_when_recursive):
+ test for r25010.
+
+ * test/ruby/test_struct.rb (TestStruct#test_comparison_when_recursive):
+ ditto.
+
+Thu Nov 26 20:18:02 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * gem_prelude.rb (Gem.set_home): must dup before force_encoding
+ and must force_encoding before gsub.
+ cf. Yen Sign problem of SJIS [ruby-core:26910]
+
+Thu Nov 26 17:54:37 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/{configure.bat, setup.mak, Makefile.sub}: add new configure
+ option ``--with-ntver''.
+
+Thu Nov 26 11:42:22 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * test/mkmf/base.rb: use $INCFLAGS to add -I option. [Bug#2387]
+
+Thu Nov 26 07:17:58 2009 wanabe <s.wanabe@gmail.com>
+
+ * marshal.c (mark_dump_arg): mark str. see also [ruby-dev:39735]
+
+Thu Nov 26 00:05:58 2009 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * test/digest/test_digest_extend.rb: Added tests for current digest
+ framework.
+
+Wed Nov 25 20:46:37 2009 Tanaka Akira <akr@fsij.org>
+
+ * vm_eval.c (rb_search_method_entry): refine error message.
+
+Wed Nov 25 19:29:05 2009 Akinori MUSHA <knu@iDaemons.org>
+
+ * ext/digest/digest.c (rb_digest_instance_method_unimpl): Do not
+ call rb_inspect() on an object that does not implement necessary
+ methods; reported by NaHi.
+
+Wed Nov 25 19:30:30 2009 Martin Duerst <duerst@it.aoyama.ac.jp>
+
+ * transcode.c: Added a check for an internal error
+ (with Tatsuya Mizuno)
+
+Tue Nov 24 22:57:46 2009 Tanaka Akira <akr@fsij.org>
+
+ * test/ruby/envutil.rb (EnvUtil.invoke_ruby): raise Timeout::Error
+ instead of flunk. reported by Yusuke Endoh.
+
+Tue Nov 24 22:31:44 2009 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * vm.c (ruby_vm_destruct, thread_memsize): fix argument type to make
+ RUBY_MARK_FREE_DEBUG available.
+
+Tue Nov 24 21:25:21 2009 Tanaka Akira <akr@fsij.org>
+
+ * error.c: include errno.h at beginning.
+
+Tue Nov 24 20:11:37 2009 Tanaka Akira <akr@fsij.org>
+
+ * strftime.c: %Y format a year with 4 digits at least.
+
+ * lib/time.rb: format a year with 4 digits at least.
+
+Tue Nov 24 20:05:27 2009 Tanaka Akira <akr@fsij.org>
+
+ * defs/known_errors.def: more errors.
+
+Tue Nov 24 20:01:49 2009 Tanaka Akira <akr@fsij.org>
+
+ * include/ruby/ruby.h (rb_bug_errno): declared.
+
+ * include/ruby/intern.h (rb_strerrno): declaration removed.
+
+ * error.c (rb_strerrno): make it static. return NULL for unknown
+ errors.
+ (rb_bug_errno): defined.
+
+ * thread_pthread.c: use rb_bug_errno.
+
+ * signal.c (ruby_signal): use rb_bug_errno.
+
+Tue Nov 24 10:17:38 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * file.c (file_path_convert): fix fs_encoding is not assign.
+
+Tue Nov 24 10:00:00 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * error.c (rb_strerrno): constified.
+
+Tue Nov 24 09:49:31 2009 Tanaka Akira <akr@fsij.org>
+
+ * error.c (rb_strerrno): return "UNKNOWNERROR" for non-zero unknown
+ error.
+
+Tue Nov 24 09:18:33 2009 Tanaka Akira <akr@fsij.org>
+
+ * include/ruby/intern.h (rb_strerrno): declared.
+
+ * template/known_errors.inc.tmpl: generate defined_error() and
+ undefined_error() instead of set_syserr.
+
+ * error.c (Init_syserr): define defined_error() and undefined_error()
+ to follow the above change.
+ (rb_strerrno): defined.
+
+ * thread_pthread.c: show error message and errno macro name with
+ rb_bug.
+
+Mon Nov 23 16:06:53 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * thread_pthread.c (RUBY_STACK_MIN, RUBY_STACK_SPACE): delay for
+ platforms where PTHREAD_STACK_MIN is not compile time constant.
+ [ruby-dev:39751]
+
+Mon Nov 23 11:26:45 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * dln.c (dln_find_1): removed duplication.
+
+Mon Nov 23 04:12:00 2009 Tanaka Akira <akr@fsij.org>
+
+ * enc/trans/newline.trans (fun_so_universal_newline): generate \n
+ after \r\n detection instead of just after \r.
+ [ruby-list:45988] [ruby-core:25881] [ruby-core:26788]
+
+Sat Nov 21 18:48:35 2009 Tanaka Akira <akr@fsij.org>
+
+ * vm_eval.c (rb_search_method_entry): show flags and klass value in
+ not implemented error message.
+
+Sat Nov 21 16:38:50 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * marshal.c (marshal_dump): use normal object as the buffer so
+ that no hidden object is exposed to ruby-level. [ruby-dev:39744]
+
+Sat Nov 21 15:58:43 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * io.c (read_all): fix: false negative invalid byte sequence
+ on reading from pipes. [ruby-dev:39743]
+ fix: assign the variable 'pos' as relative value from recent pos.
+
+Sat Nov 21 14:44:16 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * file.c (file_path_convert): delay getting UTF8-MAC encoding
+ while really needed. [ruby-core:26807]
+
+Fri Nov 20 21:16:54 2009 Tanaka Akira <akr@fsij.org>
+
+ * vm_eval.c (rb_search_method_entry): avoid trigraph.
+
+Thu Nov 19 23:17:06 2009 Shugo Maeda <shugo@ruby-lang.org>
+
+ * lib/net/ftp.rb (putbinaryfile): use APPE for resume.
+ Thanks, Tomoyuki Chikanaga.
+
+Thu Nov 19 22:50:05 2009 Shugo Maeda <shugo@ruby-lang.org>
+
+ * lib/net/imap.rb (flag_list): untaint strings to intern in the safe
+ level 1.
+
+ * lib/net/imap.rb (max_flag_count=): new methods to set the max
+ number of flags interned to symbols.
+
+Thu Nov 19 20:43:39 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * ext/socket/getnameinfo.c: need to include extconf.h for HAVE_* macros.
+ reported by Kenta Murata <mrkn AT mrkn.jp> via IRC.
+
+Thu Nov 19 17:00:59 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/Makefile.sub: nmake execute the file named echo if it exists
+ in the PATH. reported by Kenta Murata <mrkn AT mrkn.jp> via IRC.
+
+Thu Nov 19 02:50:47 2009 Tanaka Akira <akr@fsij.org>
+
+ * vm_eval.c (rb_search_method_entry): show the type of the hidden
+ object.
+ (rb_type_str): new function for above.
+
+Thu Nov 19 00:47:09 2009 Tanaka Akira <akr@fsij.org>
+
+ * io.c (MORE_CHAR_SUSPENDED): renamed from MORE_CHAR_CBUF_FULL.
+
+Wed Nov 18 22:00:13 2009 Tanaka Akira <akr@fsij.org>
+
+ * io.c (fill_cbuf): extracted from more_char.
+ (io_shift_cbuf): fix memmove condition.
+ (read_all): use fill_cbuf directly to avoid ECONV_AFTER_OUTPUT.
+ [ruby-dev:39708]
+
+Wed Nov 18 18:25:09 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * thread.c (rb_thread_atfork_internal): reinitialize global lock
+ at fork to get rid of deadlock. based on the patch from Hongli
+ Lai in [ruby-core:26783]. [ruby-core:23572]
+
+Wed Nov 18 17:48:22 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * thread.c (terminate_atfork_i): all mutex locks by other threads
+ have been abandoned at fork.
+
+Wed Nov 18 15:27:20 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * file.c (file_path_convert): delay getting filesystem encoding
+ while really needed.
+
+Wed Nov 18 12:33:42 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * encoding.c (enc_set_default_encoding): reset filesystem
+ encoding because on resetting default_external because
+ Unix's filesystem encoding depends on default_external.
+
+ * encoding.c (enc_set_filesystem_encoding): added.
+
+ * ruby.c (process_options): don't call rb_filesystem_encoding
+ because filesystem encoding is reset when default_external
+ is reset.
+
+Wed Nov 18 11:57:32 2009 TAKANO Mitsuhiro (takano32) <tak@no32.tk>
+
+ * math.c (math_gamma): fix incorrect comparison expression.
+ see also [ruby-dev:39709] [Bug #2381]
+
+Wed Nov 18 11:37:05 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * io.c (rb_scan_open_args): move path encoding conversion
+ for filesystem encoding of Mac OS X.
+
+ * file.c (file_path_convert): added for convert encoding
+ of file path.
+
+ * file.c (rb_get_path_check): add file_path_convert.
+
+Wed Nov 18 10:17:09 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * string.c (str_utf8_nth): no count_utf8_lead_bytes_with_word
+ optimization for short string. [ruby-core:26787]
+
+ * string.c (str_utf8_offset): str_utf8_nth never return NULL.
+
+Wed Nov 18 10:12:34 2009 Shugo Maeda <shugo@ruby-lang.org>
+
+ * vm_method.c (rb_undef): should raise TypeError if klass is nil.
+ 1.instance_eval { undef to_s } causes SEGV before this fix.
+
+ * test/ruby/test_undef.rb: new tests for undef.
+
+Wed Nov 18 08:41:42 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * string.c (str_utf8_nth): fixed overrun. [ruby-core:26787]
+
+Wed Nov 18 07:51:01 2009 Tanaka Akira <akr@fsij.org>
+
+ * io.c (parse_mode_enc): fix invalid access.
+
+Tue Nov 17 23:50:06 2009 Shugo Maeda <shugo@ruby-lang.org>
+
+ * vm_method.c (rb_alias): should raise TypeError if klass is nil.
+ 1.instance_eval { alias to_string to_s } causes SEGV before this
+ fix.
+
+ * test/ruby/test_alias.rb (test_special_const_alias): ditto.
+
+Tue Nov 17 17:53:53 2009 Martin Duerst <duerst@it.aoyama.ac.jp>
+
+ * enc/big5.c, enc/trans/big5.trans, enc/trans/big5-uao-tbl.rb,
+ test/ruby/test-transcode.rb: Added Encoding 'Big5-UAO' and transcoding
+ for it (from Tatsuya Mizuno) (see Bug #1784)
+
+Tue Nov 17 16:26:24 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * insns.def (opt_case_dispatch): runtime value cannot be used as
+ an element initializer.
+
+ * vm_insnhelper.c (opt_case_dispatch_i): gets rid of type-punning
+ calls.
+
+Mon Nov 16 15:51:53 2009 Shugo Maeda <shugo@ruby-lang.org>
+
+ * vm_insnhelper.c (vm_call_method): protected singleton methods of
+ an object should not be able to called from other instances of the
+ class of the object. [ruby-core:26761]
+
+ * vm_eval.c (rb_method_call_status): ditto.
+
+ * test/ruby/test_module.rb (test_protected_singleton_method): ditto.
+
+Mon Nov 16 14:03:53 2009 wanabe <s.wanabe@gmail.com>
+
+ * io.c (read_all): shift read buffer if exception occurred.
+ pointed out in [ruby-dev:39702].
+
+Mon Nov 16 07:59:38 2009 wanabe <s.wanabe@gmail.com>
+
+ * io.c (read_all): don't call io_shift_cbuf until buffering enough or
+ econv_finished. [ruby-dev:39696]
+
+ * io.c (more_char): don't call clear_readconv to read buffer after
+ econv_finished.
+
+ * io.c (appendline, rb_io_each_codepoint): clear readconv when done.
+
+Mon Nov 16 01:58:08 2009 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * include/ruby/ruby.h (rb_classext_t): annotate @internal.
+
+Mon Nov 16 01:35:34 2009 Tanaka Akira <akr@fsij.org>
+
+ * encoding.c (rb_filesystem_encindex): use default external encoding
+ instead of locale encoding in Unix.
+
+ * ruby.c (process_options): delay filesystem encoding
+ initialization until default external encoding initialization.
+
+Mon Nov 16 00:06:26 2009 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * thread.c (thread_cleanup_func): delete locking_mutex when thread
+ object become dummy because of fork. [ruby-core:26744]
+ [ruby-core:26745]
+
+ * bootstraptest/test_thread.rb: add a test for above.
+
+Sat Nov 14 21:54:46 2009 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * class.c (rb_mod_init_copy): fix memory leak of Class#dup.
+ [ruby-dev:39687]
+
+Sat Nov 14 17:09:39 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (--with-opt-dir): ignore and suppress a warning.
+ [ruby-dev:39684]
+
+Sat Nov 14 16:43:24 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * hash.c (ruby_setenv): get rid of crash in Solaris 8 and 10.
+ [ruby-core:26668]
+
+Sat Nov 14 09:16:54 2009 Marc-Andre Lafortune <ruby-core@marc-andre.ca>
+
+ * ext/bigdecimal/bigdecimal.c (BigDecimalCmp): Fix comparisons
+ [ruby-core:26646]
+
+ * test/bigdecimal/test_bigdecimal.rb (class): Fix and improve tests.
+
+Sat Nov 14 04:07:06 2009 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/tk/variable.rb (TkVariable::coerce): fix bug on a
+ numeric value.
+
+Sat Nov 14 03:35:29 2009 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/tk/variable.rb: TkVariable#*(other) and /(other) have a
+ bug on handling of the "other" value.
+
+Fri Nov 13 21:18:15 2009 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * ext/zlib/zlib.c (rb_zlib_adler32): fix typo.
+
+Fri Nov 13 16:22:00 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * thread.c (thread_start_func_2): see first_func, not first_proc,
+ to decide which to use.
+
+ * gc.c (vm_xrealloc): use the given object space.
+
+Fri Nov 13 00:46:24 2009 Takeyuki FUJIOKA <xibbar@ruby-lang.org>
+
+ * lib/cgi/util.rb (CGI::pretty): fix the overflow bug
+ if stripped string.[ruby-dev:37975]
+
+Thu Nov 12 23:08:11 2009 Takeyuki FUJIOKA <xibbar@ruby-lang.org>
+
+ * lib/cgi/core.rb (read_from_cmdline): this code is better.
+ [ruby-core:25991]
+
+Thu Nov 12 22:55:42 2009 Takeyuki FUJIOKA <xibbar@ruby-lang.org>
+
+ * lib/net/telnet.rb: don't use simple delegate.
+ because SimpleDelegate behavior changed.
+
+Thu Nov 12 14:33:21 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * thread_win32.c (thread_errno): CreateThread does not set errno.
+
+ * thread.c (thread_create_core): moved failure handling from
+ native_thread_core().
+
+ * thread_pthread.c (native_thread_create): constified.
+
+Thu Nov 12 10:08:56 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * .document: remove documents not in rdoc format until
+ rdoc supports non rdoc files. [ruby-core:26459]
+
+Thu Nov 12 06:42:38 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/tempfile.rb (Tempfile#initialize): option hash may not be
+ given. [ruby-core:26681]
+
+Thu Nov 12 01:29:15 2009 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * enumerator.c (yielder_yield_push): Yielder#<< should return self.
+ [ruby-dev:39660]
+
+Wed Nov 11 19:17:35 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/tempfile.rb (Tempfile#initialize): merge mode option.
+
+ * lib/tmpdir.rb (Dir::Tmpname#create): splat options.
+
+Wed Nov 11 12:54:02 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * hash.c (ruby_setenv): use ruby_strdup().
+
+Wed Nov 11 12:19:27 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * hash.c (ruby_setenv): also set CRT workarea. ref [ruby-core:25010]
+
+Wed Nov 11 09:36:02 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * marshal.c (w_object, r_object0): use RHASH_IFNONE but not ifnone
+ directly.
+
+Wed Nov 11 08:32:45 2009 Tanaka Akira <akr@fsij.org>
+
+ * thread.c (blocking_region_begin): define before BLOCKING_REGION.
+ reported by Luis Lavena. [ruby-core:26670]
+
+Wed Nov 11 08:22:19 2009 Tanaka Akira <akr@fsij.org>
+
+ * util.c (ruby_strtod): use dval() consistently.
+
+Wed Nov 11 02:14:48 2009 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * test/matrix/test_matrix.rb (TestMatrix#test_rank):
+ added a test method for r24969.
+
+Tue Nov 10 08:23:21 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * process.c (rb_f_exec, rb_f_system, rb_f_spawn): mentioned about
+ the shell to be used when the command line is single string.
+ See [ruby-core:26652]
+
+Mon Nov 9 20:15:16 2009 Tanaka Akira <akr@fsij.org>
+
+ * thread.c (rb_gc_save_machine_context): don't save the stack pointer
+ in this function.
+ (RB_GC_SAVE_MACHINE_CONTEXT): call rb_gc_save_machine_context and
+ save the stack pointer at caller side.
+ (rb_thread_schedule_rec): use RB_GC_SAVE_MACHINE_CONTEXT instead of
+ rb_gc_save_machine_context.
+ (blocking_region_begin): changed to a macro. use
+ RB_GC_SAVE_MACHINE_CONTEXT instead of rb_gc_save_machine_context.
+ [ruby-dev:39659]
+
+Mon Nov 9 11:28:29 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (warnflags): add -Wno-long-long.
+
+Sun Nov 8 18:13:12 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * hash.c: use RHASH_IFNONE but not ifnone directly.
+
+Sat Nov 7 21:02:57 2009 Tanaka Akira <akr@fsij.org>
+
+ * lib/pp.rb (PP::ObjectMixin#pretty_print): use to_s regardless of
+ instance variables.
+
+Sat Nov 7 20:59:11 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * vm_insnhelper.c (vm_push_frame): get rid of out-of-bounds
+ access.
+
+Sat Nov 7 12:41:19 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * vm_insnhelper.c (VM_CALLEE_SETUP_ARG): revert r25521.
+ [ruby-core:26427] [ruby-core:26447]
+
+Fri Nov 6 18:33:47 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * vm_insnhelper.c (vm_push_frame): add CHECK_STACK_OVERFLOW.
+ [ruby-dev:39592]
+
+ * eval.c (rb_longjmp): add 1 level backtrace for sysstack_error
+ without calling any method to prevent further stack overflow.
+
+ * eval.c (make_exception): don't call #exception for
+ sysstack_error to prevent stack overflow.
+
+ * proc.c (Init_Proc): don't freeze sysstack_error.
+
+ * eval.c (rb_longjmp): move reentrant check after exception
+ preparation.
+
+Fri Nov 6 17:13:45 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/mkmf.rb (create_header): split the line by tabs.
+
+Fri Nov 6 12:02:32 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * configure.in (MINIDLNOBJ): set default as dmydln.o.
+ Now LLVM clang seems to be able to build Ruby 1.9.
+
+Fri Nov 6 09:29:32 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * encoding.c (rb_filesystem_encindex): add fallback to
+ ASCII-8BIT on Windows.
+
+Fri Nov 6 07:29:07 2009 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
+
+ * test/ruby/test_case.rb: merged r25658 from ruby_1_8.
+
+Thu Nov 5 12:27:07 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * gem_prelude.rb (Gem.user_home): force_encoding(
+ Encoding.find('filesystem')). [ruby-core:26525]
+
+Thu Nov 5 07:47:31 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (BEGIN): now local_push and local_pop are necessary in
+ ripper.
+
+Wed Nov 4 21:39:10 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * .document: add some README files to default rdoc's of trunk.
+ patched by Roger Pack [ruby-core:26459]
+
+Wed Nov 4 16:06:11 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * include/ruby/st.h (SIZEOF_ST_INDEX_T): moved from st.c for
+ Init_RandomSeed().
+
+Wed Nov 4 15:50:16 2009 URABE Shyouhei <shyouhei@ruby-lang.org>
+
+ * include/ruby/ruby.h (NUM2CHR): prefix __extension__ for
+ braced-groups within expressions.
+
+Wed Nov 4 15:46:30 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ruby.c (set_{internal,external}_encoding_once): fixed typos.
+
+Wed Nov 4 12:49:18 2009 Marc-Andre Lafortune <ruby-core@marc-andre.ca>
+
+ * proc.c (mnew): Fix scope issue [ruby-core:26069]
+
+Wed Nov 4 08:50:51 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * random.c (rb_hash_start): moved from string.c.
+
+ * random.c (Init_RandomSeed2): register global address before set.
+
+ * random.c (Init_RandomSeed): initialize hashseed.
+
+Wed Nov 4 08:26:00 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * dir.c (dir_check): moved other checks from GetDIR.
+
+ * dir.c (GetDIR): fixed a variable name.
+
+Wed Nov 4 08:19:31 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * cont.c (rb_fiber_start): fixed unconditional test.
+
+Wed Nov 4 02:08:14 2009 Aaron Patterson <tenderlove@ruby-lang.org>
+
+ * ext/dl/cptr.c (rb_dlptr_eql, rb_dlptr_cmp): DL::CPtr#== and DL::CPtr#<=>
+ should not raise an exception when compared to a different object.
+
+Wed Nov 4 00:05:36 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * string.c (rb_str_upto): make next object before yield its block.
+ fix: can modify original begin string of String#upto.
+ [ruby-dev:26384] [ruby-dev:39626]
+
+Mon Nov 2 18:33:21 2009 wanabe <s.wanabe@gmail.com>
+
+ * cont.c (fiber_free): don't free unallocated local_storage. see #1325.
+
+ * cont.c (cont_init): clear local_storage not to use current thread's.
+
+ * cont.c (fiber_t_alloc, root_fiber_alloc): link itself always for
+ a case that fiber_link_remove() is called before fiber_link_join().
+
+ * cont.c (fiber_init): clear cont->vm_stack and th->stack before
+ root_fiber_alloc() in rb_fiber_current().
+
+Mon Nov 2 14:52:53 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (rb_exc_raise, rb_exc_fatal, rb_make_exception):
+ suppressed shorten-64-to-32 warnings.
+
+Mon Nov 2 14:43:48 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * thread_pthread.c (native_stop_timer_thread): delay joining timer
+ thread after unlocking mutex.
+
+Mon Nov 2 13:31:14 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * thread_pthread.c (native_stop_timer_thread): need to join timer thread
+ only when really stopping it.
+
+Mon Nov 2 12:55:50 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * thread_{pthread,win32}.c (native_stop_timer_thread): join the thread
+ here.
+
+ * thread_{pthread,win32}.c (native_reset_timer_thread): new function.
+
+ * thread.c (rb_thread_stop_timer_thread, rb_thread_reset_timer_thread):
+ call above function instead of simply setting 0.
+
+Mon Nov 2 11:22:19 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * ext/dl/win32/lib/win32/registry.rb: update rdoc. [ruby-core:26022]
+
+Sun Nov 1 20:16:03 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * ext/bigdecimal/bigdecimal.c: fixed rdoc. [ruby-core:26457]
+
+Sun Nov 1 16:24:16 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (rb_cv_stack_grow_dir): fix for universal binary.
+
+ * configure.in (sitehdrdir, vendorhdrdir): fixed default values.
+
+Sun Nov 1 13:31:16 2009 wanabe <s.wanabe@gmail.com>
+
+ * win32/win32.c (overlapped_socket_io, recvmsg, sendmsg): pass handle
+ instead of pointer to CloseHandle().
+
+Sun Nov 1 13:11:27 2009 wanabe <s.wanabe@gmail.com>
+
+ * ext/socket/socket.c (socket_s_ip_address_list): use FreeLibrary() to
+ free HMODULE.
+
+Sun Nov 1 08:17:48 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * gc.c (GET_STACK_BOUNDS): refactored common code. based on a
+ patch from Suraj N. Kurapati <sunaku AT gmail.com> in
+ [ruby-core:26443].
+
+Sat Oct 31 23:44:35 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * enum.c (enum_count): remove optimization using #size.
+ revert r25560.
+
+ * vm_eval.c (rb_funcall_no_recursive): remove method.
+
+Sat Oct 31 23:28:49 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * vm_eval.c (check_funcall): logic updated according to
+ [ruby-dev:39594]. search method entry, call if it exists;
+ otherwise check method_missing, call if it was overridden,
+ protecting exceptions; if NoMethodError happens, check method
+ name.
+
+ * vm_eval.c (vm_call0): use idMethodMissing.
+
+ * vm_eval.c (rb_search_method_entry): typo fixed.
+
+Sat Oct 31 17:19:28 2009 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * lib/net/http.rb (Net::HTTPResponse#each_response_header):
+ cosmetic: '?\ ' -> '?\s'
+
+Fri Oct 30 22:09:47 2009 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * lib/net/http.rb (Net::HTTPResponse#each_response_header):
+ accept multiline message header of HTTP response. see #1796.
+ cf. RFC 2616 '4.2 Message Header'.
+
+ * test/net/http/test_httpresponse.rb: added.
+
+Fri Oct 30 18:54:04 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (trnext): detect empty range and raise exception.
+ [ruby-dev:39108]
+
+Fri Oct 30 17:01:46 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * vm_eval.c (enum call_type): get rid of last comma.
+
+ * vm_eval.c (vm_call0, vm_call_super, rb_f_send, rb_f_public_send):
+ fixed call_type. [ruby-dev:39581]
+
+ * vm_eval.c (rb_search_method_entry, rb_method_call_status): split
+ from rb_call0().
+
+ * vm_eval.c (rb_check_funcall): get rid of raising exceptions and
+ hiding further exceptions. [ruby-dev:39584]
+
+ * vm_eval.c (rb_funcall_no_recursive): ditto.
+
+Fri Oct 30 13:36:39 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * thread.c (rb_thread_blocking_region): reverted r25566, and added
+ description that no exception is allowed inside `func', instead.
+ see [ruby-dev:39582]
+
+Fri Oct 30 13:13:16 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32.c (recvmsg, sendmsg, link): shouldn't raise ruby's exceptions
+ in the functions expected as system API. see [ruby-dev:39579] and
+ [ruby-dev:39582]
+
+Fri Oct 30 12:59:20 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * thread.c (rb_thread_blocking_region): standard C doesn't accept
+ preprocessing directive within macro expansion.
+
+Fri Oct 30 10:55:36 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * thread.c (rb_thread_blocking_region): must ensure to unlock GVL.
+ [ruby-dev:39579]
+
+Fri Oct 30 04:47:26 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * include/ruby/ruby.h (RSTRING_END): trivial optimization.
+
+ * string.c (rb_str_sub_bang): trivial optimization.
+
+Fri Oct 30 02:11:36 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * enum.c (enum_count): call #size using rb_funcall_no_recursive()
+ to prevent infinite recursive calls. [ruby-core:24794]
+
+ * vm_eval.c (rb_funcall_no_recursive): utility function to check
+ direct recursive call.
+
+ * vm_eval.c (rb_check_funcall): move from eval.c. [refactoring]
+
+Thu Oct 29 18:37:02 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * encoding.c (Init_Encoding): revert previous commit.
+
+ * ruby.c (process_options): ditto.
+
+Thu Oct 29 15:35:39 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * encoding.c (Init_Encoding): set locale and filesystem encindex.
+
+ * ruby.c (process_options): move setting func of filesystem
+ encoding to Init_Encoding.
+
+Thu Oct 29 15:43:25 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * vm_core.h (rb_name_err_mesg_new): added prototype.
+
+Thu Oct 29 13:53:18 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * array.c (rb_ary_to_ary): do not use #respond_to? to detect
+ to_ary. Just call. [ruby-core:23738]
+
+ * eval.c (rb_check_funcall): new function with method existence
+ check. returns Qundef when the method does not exist.
+
+ * enumerator.c (enumerator_rewind): just call method, using
+ rb_check_funcall(). [ruby-core:23738]
+
+ * error.c (exc_equal): ditto.
+
+ * object.c (convert_type): ditto.
+
+ * error.c (rb_name_err_mesg_new): export function.
+
+ * eval.c (make_exception): ditto.
+
+ * io.c (pop_last_hash): return early when the last argument is nil.
+
+ * io.c (rb_io_puts): treat T_STRING specially for small
+ optimization.
+
+ * vm_eval.c (raise_method_missing): skip method call if possible
+ using rb_method_basic_definition_p().
+
+ * vm_eval.c (method_missing): ditto.
+
+ * test/ruby/test_rubyoptions.rb (TestRubyOptions#test_debug): test
+ suites changed to ignore exceptions caused by just-call policy.
+
+Thu Oct 29 04:41:44 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * ruby.c (process_options): call rb_filesystem_encoding().
+
+Thu Oct 29 04:40:36 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * io.c (Init_IO): rb_default_rs should be US-ASCII.
+
+Thu Oct 29 01:22:01 2009 Yutaka Kanemoto <kanemoto@ruby-lang.org>
+
+ * ext/socket/extconf.rb : Compilation failure on AIX.
+ ss_len (a member of struct sockaddr_storage) has preceding __,
+ but ss_family does not have it from AIX 5.2.
+
+Wed Oct 28 16:32:49 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * encoding.c (get_filesystem_encoding): removed.
+
+ * encoding.c (rb_locale_encindex): added.
+
+ * encoding.c (rb_filesystem_encindex): added.
+
+ * encoding.c (rb_filesystem_encindex): add an alias 'filesystem'.
+ [ruby-dev:39574]
+
+ * encoding.c (enc_find): add rdoc about special aliases.
+
+ * gem_prelude.rb (Gem.set_home): use Encoding.find('filesystem').
+
+ * gem_prelude.rb (Gem.set_paths): ditto.
+
+Wed Oct 28 15:02:31 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * gem_prelude.rb (Gem.set_home):
+ force_encoding(Encoding.filesystem_encoding)
+ [ruby-core:25959]
+
+ * gem_prelude.rb (Gem.set_paths): ditto.
+
+Wed Oct 28 14:24:45 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * encoding.c (get_filesystem_encoding):
+ add Encoding.filesystem_encoding [ruby-dev:39546]
+ also see [ruby-core:25959]
+
+Wed Oct 28 14:51:31 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/etc/etc.c (etc_each_group): fixed typo.
+
+Wed Oct 28 13:02:10 2009 Shugo Maeda <shugo@ruby-lang.org>
+
+ * lib/net/ftp.rb (Net::FTP#initialize): sets @binary to true.
+
+ * lib/net/ftp.rb (Net::FTP#binary=): sends a TYPE command only when
+ logged in. [ruby-dev:39548]
+
+ * lib/net/ftp.rb (Net::FTP#send_type_command): new private method
+ which sends an appropriate TYPE command according to the value of
+ @binary.
+
+ * lib/net/ftp.rb (Net::FTP#login): calls send_type_command instead
+ of binary=.
+
+Wed Oct 28 12:26:51 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * vm_insnhelper.c (vm_setup_method): should push call frame before
+ raising exception, to put the Ruby-defined method name in the
+ error message. [ruby-core:26333]
+
+ * vm_insnhelper.c (VM_CALLEE_SETUP_ARG): macro modified.
+
+ * vm_insnhelper.c (vm_yield_setup_args): modified for new
+ VM_CALLEE_SETUP_ARG macro.
+
+Tue Oct 27 22:46:44 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * lib/net/ftp.rb (Net::FTP#initialize): @sock = nil.
+
+ * lib/net/ftp.rb (Net::FTP#binary=): send command only when
+ socket is open. [ruby-dev:39548]
+
+Tue Oct 27 22:22:38 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/stringio/stringio.c (Init_stringio): added read_nonblock and
+ write_nonblock aliases. [ruby-dev:39551]
+
+ * ext/stringio/stringio.c (strio_data_type): typed.
+
+Tue Oct 27 21:20:35 2009 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/tk/variable.rb: add TkVariable#+@ and -@ method.
+
+Tue Oct 27 16:36:52 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * string.c (chopped_length): get rid of unexpected exception.
+ see [ruby-core:26336].
+
+Tue Oct 27 15:53:10 2009 Tanaka Akira <akr@fsij.org>
+
+ * gc.h (SET_MACHINE_STACK_END): use __i386.
+ Some compiler may not define __i386__.
+ Solaris 64-bit Developer's Guide:
+ http://docs.sun.com/app/docs/doc/816-5138/dev-env?l=en&a=view
+
+Tue Oct 27 15:44:48 2009 Shugo Maeda <shugo@ruby-lang.org>
+
+ * lib/net/ftp.rb (getbinaryfile, list): call to_s to convert
+ a Pathname instance into a string. [ruby-core:26237]
+
+Tue Oct 27 12:30:16 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * gc.h (SET_MACHINE_STACK_END): use __i386__ instead of __i386,
+ and explicit size qualifiers.
+
+Tue Oct 27 09:40:55 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * gc.h (SET_MACHINE_STACK_END): add x86_64 version by nobu.
+
+Tue Oct 27 09:27:59 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * vm_exec.c (DECL_SC_REG): use __clang__.
+
+Tue Oct 27 08:56:11 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * mkconfig.rb: reverted r25443 because build_os is used in mkmf.rb
+ on some platforms. [ruby-core:26332]
+
+Tue Oct 27 08:01:57 2009 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
+
+ * parse.y (ripper_filename): add Ripper#filename. [ruby-dev:37856]
+
+ * test/ripper/test_filter.rb: add more tests.
+
+Tue Oct 27 07:53:25 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * gc.c (garbage_collect_with_gvl): do not garbage_collect when
+ dont_gc flag turned on. [ruby-core:26327]
+
+Tue Oct 27 07:38:39 2009 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/tcltklib.c,stubs.c: remove errors or warnings when compiled
+ with old ruby 1.8.x.
+
+ * ext/tk/tkutil/tkutil.c: ditto.
+
+Tue Oct 27 05:56:39 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * vm.c (invoke_block_from_c): return Qnil when its iseq is
+ SPECIAL CONST. [ruby-core:26335]
+
+Tue Oct 27 05:11:49 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * vm_exec.c (DECL_SC_REG): check defined(__asm__) before use it.
+ LLVM/clang defines __GNUC__ but doesn't have __asm__.
+
+Tue Oct 27 03:45:39 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * win32/Makefile.sub (config.h): added RUBY_SITEARCH to use
+ different name from RUBY_ARCH. [ruby-core:26324]
+
+Mon Oct 26 20:04:13 2009 Marc-Andre Lafortune <ruby-core@marc-andre.ca>
+
+ * array.c (rb_ary_cmp): Array#<=> returns nil when comparison fails
+ [ruby-core:26316]
+
+Mon Oct 26 18:37:57 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * hash.c (default_proc_arity_check): new support function.
+
+ * hash.c (rb_hash_initialize): should do arity check as #default_proc=.
+ [ruby-core:26281]
+
+Mon Oct 26 13:24:17 2009 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/remote-tk.rb: typo fixed.
+
+Mon Oct 26 12:34:08 2009 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * ruby.c (usage): -T and -W descriptions updated. see
+ [ruby-dev:39539]
+
+ * man/ruby.1: ditto.
+
+Mon Oct 26 12:06:27 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * io.c (io_fwrite): adjust stdio file position after direct write on
+ BSDish platforms. [ruby-core:26300]
+
+Sun Oct 25 15:44:24 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/dl/handle.c (dlhandle_sym): fixed an invalid local variable
+ declaration.
+
+Sun Oct 25 13:33:58 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * io.c (io_cntl): F_DUPFD is platform dependent.
+
+Sun Oct 25 10:19:09 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/dl/handle.c (rb_dlhandle_close): fixed an invalid local
+ variable declaration.
+
+Sun Oct 25 05:44:34 2009 Marc-Andre Lafortune <ruby-core@marc-andre.ca>
+
+ * lib/matrix.rb (**): Optimization (up to 45% faster)
+
+Sat Oct 24 14:28:40 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * hash.c (rb_hash_set_default_proc): checks arity of default_proc
+ of a Hash. [ruby-core:26087]
+
+Sat Oct 24 13:38:45 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * object.c (rb_obj_cmp): defines Object#<=>. [ruby-core:24063]
+
+Sat Oct 24 09:51:28 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * enum.c (enum_flat_map): new method that concatenates the values
+ from given block. also provides alias #collect_concat.
+
+Sat Oct 24 00:36:47 2009 Tanaka Akira <akr@fsij.org>
+
+ * io.c (io_cntl): update max file descriptor by the result of
+ fcntl(F_DUPFD).
+
+Fri Oct 23 16:31:14 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * class.c (rb_class_new): move class check to rb_check_inheritable().
+
+ * class.c (rb_check_inheritable): should not allow subclass of
+ class Class. [ruby-core:26225]
+
+Fri Oct 23 14:25:54 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (target, target_alias): replace with real cpu.
+
+ * mkconfig.rb: build* are not needed in rbconfig.rb.
+
+ * configure.in (warnflags): use -Wextra only when
+ -Wno-missing-field-initializers is available.
+
+ * configure.in (optflags): removed -fomit-frame-pointer by default.
+
+Fri Oct 23 09:12:59 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/pathname.rb (Pathname::SAME_PATHS): FNM_SYSCASE is always
+ non-nil.
+
+Fri Oct 23 07:32:37 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in, Makefile.in, win32/Makefile.sub (XRUBY): runnable
+ ruby without current libraries.
+
+ * common.mk (rdoc): use XRUBY.
+
+Fri Oct 23 07:28:50 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (warnflags): use -Wextra instead of -Wall.
+
+ * gc.c (mark_current_machine_context): get rid of warning.
+
+Thu Oct 22 21:10:39 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * class.c (rb_obj_basic_to_s_p): typo. Please become familiar with
+ the ANSI style.
+
+Thu Oct 22 20:20:27 2009 Tanaka Akira <akr@fsij.org>
+
+ * test/ruby/envutil.rb (assert_in_out_err): test_stdout and
+ test_stderr should be an array.
+
+ * test/ruby/test_rubyoptions.rb (test_notfound): test_stdin of
+ assert_in_out_err should be a string.
+
+Thu Oct 22 17:49:05 2009 Akinori MUSHA <knu@iDaemons.org>
+
+ * lib/fileutils.rb (FileUtils#fu_get_uid, fu_get_gid): Do not
+ convert an integer back and forth.
+
+Thu Oct 22 17:29:51 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (arg_prepend): removed. a patch from Mikhail T. in
+ [ruby-core:26217].
+
+Thu Oct 22 04:54:41 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * object.c (rb_obj_inspect): print instance variables only when
+ Object#to_s is not overridden. [ruby-core:24425]
+
+ * class.c (rb_obj_basic_to_s_p): new function.
+
+Wed Oct 21 19:32:52 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * object.c (rb_obj_inspect): fixed rdoc about the case that to_s
+ is called. [ruby-core:24425]
+
+Wed Oct 21 08:17:17 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * test/logger/test_logger.rb (TestLogDevice#test_write): check
+ also error message.
+
+Wed Oct 21 03:54:41 2009 Marc-Andre Lafortune <ruby-core@marc-andre.ca>
+
+ * lib/matrix.rb:
+ Creator functions now strict with their arguments
+ Support for empty matrices (see new method Matrix.empty)
+ Matrix#trace raises an ErrDimensionMismatch if the matrix is not square
+ Enumerators are returned when no block given
+ Consistent results when accessing elements with out of bounds indices
+ Details in [ruby-core:23598].
+
+Wed Oct 21 00:27:15 2009 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * lib/webrick/httpauth/digestauth.rb: typo in exception message fixed.
+
+Wed Oct 21 00:17:28 2009 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * lib/logger.rb: imported upstream version (logger/1.2.7) see #2238.
+ * do not raise an exception even if log writing failed.
+ * do not raise ShiftingError if an aged file already exists.
+ (no ShiftingError will be raised from 1.2.7, just warn() instead)
+ * test/logger/test_logger.rb: ditto.
+
+Tue Oct 20 22:29:06 2009 Keiju Ishitsuka <keiju@ruby-lang.org>
+
+ * lib/matrix.rb: Bug fix. See detail [ruby-core:23598].
+
+Tue Oct 20 17:57:31 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * marshal.c (w_symbol, r_symreal): fixed the order of symbol and
+ its encoding modifier, in order to make the dump readable from
+ 1.8. [ruby-dev:39515]
+
+Tue Oct 20 16:41:18 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * include/ruby/win32.h (finite, scalb): inline'ed non-standard
+ identifier macros. [ruby-core:26166]
+
+Tue Oct 20 15:38:02 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (ripper_intern): enable literal optimization.
+
+ * parse.y (method_call): dispatch symbols. a patch from Andy Keep in
+ [ruby-core:26169]. [ruby-core:26165]
+
+ * parse.y (mlhs_basic): fixed handling splat in middle of mlhs. a
+ patch from Andy Keep in [ruby-core:26163]
+
+ * parse.y (parser_here_document): dispatch delayed heredoc
+ contents. based on a patch from Andy Keep in [ruby-core:24855].
+
+Mon Oct 19 15:17:29 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * .gdbinit (rb_method_entry): search method entry by class and id.
+
+Mon Oct 19 15:03:31 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/Makefile.sub (enc/unicode/name2ctype.h): no need to create
+ directory if it already exists.
+
+Mon Oct 19 11:34:38 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * .gdbinit (rb_ps): dump all threads and their callstacks. based
+ on [ruby-core:26155] by Joshua ben Jore <twists AT gmail.com>.
+
+Mon Oct 19 10:59:36 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * iseq.c (prepare_iseq_build, rb_iseq_build_for_ruby2cext):
+ untrust mark array. [ruby-core:26137]
+
+Mon Oct 19 05:49:53 2009 Marc-Andre Lafortune <ruby-core@marc-andre.ca>
+
+ * lib/rexml/element.rb (text=): false should be converted to string.
+ A patch by Teruo Oshida [ruby-dev:38351]
+
+Sun Oct 18 22:33:25 2009 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * lib/date.rb: do not require lib/delta.rb.
+
+ * lib/date/delta.rb: follows the above change.
+
+Sun Oct 18 19:14:21 2009 Tanaka Akira <akr@fsij.org>
+
+ * parse.y (is_special_global_name): add boundary check.
+
+Sun Oct 18 18:31:58 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ruby.c (ruby_init_loadpath_safe): should not dup tmp string. a
+ patch from neomjp neomjp in [ruby-core:24251].
+
+Sun Oct 18 09:49:14 2009 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * test/test_prime.rb
+ (TestPrime#test_eratosthenes_works_fine_after_timeout):
+ test for [ruby-dev:39465].
+
+ * lib/prime.rb (Prime::EratosthenesSieve):
+ fixed [ruby-dev:39465].
+ suppressed memory reallocation.
+ constantified some magic numbers.
+
+Sat Oct 17 22:11:03 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * marshal.c (id2encidx): register encoding name.
+ (r_object0): register object before encoding name.
+ [ruby-core:24882]
+
+Sat Oct 17 17:56:58 2009 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * test/rake/test_fileutils.rb (Rake::TestFileUtils#test_sh): uses
+ FileUtils::RUBY instead of fixed "ruby" so that the ruby command
+ works fine in Ruby's "make test-all".
+ (test_sh_with_a_single_string_argument): ditto.
+ (test_sh_with_multiple_arguments): ditto.
+ (test_sh_failure): ditto
+ (test_sh_special_handling): ditto.
+
+Sat Oct 17 17:30:06 2009 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * bignum.c (big_split): fix off-by-one error. [ruby-dev:39501]
+
+Sat Oct 17 16:34:27 2009 Tanaka Akira <akr@fsij.org>
+
+ * parse.y (parser_yylex): fix token even after trailing under score.
+
+Sat Oct 17 11:27:44 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * vm_method.c (basic_obj_respond_to): call #respond_to_missing?
+ always with two arguments. [ruby-core:26090]
+
+Sat Oct 17 08:51:44 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/delegate.rb (Delegator#respond_to_missing): warn only when
+ specified method is a private. [ruby-dev:39498]
+
+Fri Oct 17 00:05:53 2009 wanabe <s.wanabe@gmail.com>
+
+ * st.c (unpack_entries): save table->bins and never change the table
+ during unpacking. Because st_insert() may cause GC and refer the
+ table, i.e. st_foreach(). [Bug #2196]
+
+Fri Oct 16 22:20:25 2009 Tanaka Akira <akr@fsij.org>
+
+ * prelude.rb (require_relative): defined as a module function of
+ Kernel.
+
+Fri Oct 16 20:18:28 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/delegate.rb (Delegator#method_missing): remove backtrace
+ lines _until_ `method_missing'.
+
+Fri Oct 16 20:09:55 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/delegate.rb (Delegator#freeze): #freeze should freeze self
+ and the target at once. [ruby-core:26118]
+
+Fri Oct 16 19:39:28 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/delegate.rb (Delegator#respond_to_missing): warn if optional
+ include_private argument is not false. Delegator does (and
+ should) not forward private methods. [ruby-core:26080]
+
+ * lib/delegate.rb (Delegator#respond_to_missing): instead of
+ redefining #respond_to?, use #respond_to_missing?. [ruby-core:26081]
+
+Fri Oct 16 18:42:18 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * bootstraptest/test_gc.rb: added tests based on [ruby-dev:39484]
+ from wanabe <s.wanabe AT gmail.com>.
+
+Fri Oct 16 16:09:01 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/win32.c (rb_w32_spawn): `\'' is also quote character.
+
+Fri Oct 16 13:40:09 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * gc.h (rb_gc_debug_body): constified.
+
+Fri Oct 16 13:20:39 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * ext/bigdecimal/bigdecimal.c (VpMidRound): remove warnings.
+ patch from Charlie Savage. [ruby-core:22869]
+
+ * ext/digest/bubblebabble/bubblebabble.c (bubblebabble_str_new): ditto.
+
+ * ext/digest/digest.c (hexencode_str_new): ditto.
+
+ * ext/iconv/iconv.c (iconv_convert): ditto.
+
+ * ext/socket/socket.c (inspect_sockaddr): ditto.
+
+ * ext/socket/raddrinfo.c (sockaddr_obj): ditto.
+
+ * ext/syck/emitter.c (syck_emitter_write): ditto.
+
+ * ext/syck/emitter.c (syck_emitter_flush): ditto.
+
+ * ext/syck/emitter.c (syck_emit_tag): ditto.
+
+Fri Oct 16 12:03:31 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * lib/csv.rb (CSV#raw_encoding): returns ASCII-8BIT when the io
+ doesn't have encoding.
+
+Fri Oct 16 03:15:52 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * lib/csv.rb (CSV#read_to_char): set encoding and verify data
+ which read from io before encode it to @encoding.
+
+ * lib/csv.rb (CSV#raw_encoding): add to get @io's encoding.
+
+ * lib/csv.rb (CSV#read_io): add to read string and set @io's
+ encoding.
+
+Thu Oct 15 18:26:12 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (rb_intern3): check symbol table overflow before generate
+ next id. [ruby-core:26092]
+
+Thu Oct 15 15:14:15 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * io.c (io_encoding_set): get rid of parsing non-ascii string, and
+ refine messages for invalid name encoding.
+
+ * io.c (io_reopen): unread current buffer before telling the
+ position, for the case of reopening same file. [ruby-dev:39479]
+
+Thu Oct 15 14:20:58 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/iconv/iconv.c (iconv_create): cannot retry with given block.
+ [ruby-dev:39487]
+
+Thu Oct 15 09:25:07 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * ext/socket/init.c (rsock_init_sock): mswin doesn't have S_IFSOCK
+ flag in st_mode of struct stat. so, use rb_w32_issocket() function
+ instead of S_ISSOCK macro.
+
+Thu Oct 15 00:47:42 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * tool/enc-unicode.rb,
+ enc/unicode/name2ctype.h, enc/unicode/name2ctype.h.blt,
+ enc/unicode/name2ctype.kwd, enc/unicode/name2ctype.src:
+ use UTS#18 for POSIX character class.
+ http://rubyspec.org/issues/show/161
+
+Thu Oct 15 00:26:07 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/init.c (rsock_init_sock): validate file descriptor.
+
+Wed Oct 14 13:24:14 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ruby.c (process_options): script name should not be shown in an
+ error message before loaded.
+
+Wed Oct 14 09:06:38 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (ruby_run_node): need to call ruby_cleanup() always even
+ if any error occurred so far.
+
+Wed Oct 14 08:08:12 2009 Marc-Andre Lafortune <ruby-core@marc-andre.ca>
+
+ * proc.c (mnew): Method#new checks for respond_to_missing? with
+ private set to true
+ [ruby-core:26069]
+
+Tue Oct 13 21:05:01 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * tool/enc-unicode.rb,
+ enc/unicode/name2ctype.h, enc/unicode/name2ctype.h.blt,
+ enc/unicode/name2ctype.kwd, enc/unicode/name2ctype.src:
+ Add DerivedCoreProperties, PropList (Binary Property),
+ PropertyAlias and PropertyValueAlias.
+ Now users of tool/enc-unicode.rb should specify
+ the directory of UCD files.
+
+Tue Oct 13 18:54:25 2009 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/variable.rb: bug fix. additional trace definition changes the
+ option of first trace definition.
+
+Tue Oct 13 18:23:17 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (token_info_push, token_info_pop): reduced ifdefs.
+
+ * parse.y (parser_magic_comment): fixed normalization.
+
+Tue Oct 13 09:04:14 2009 Marc-Andre Lafortune <ruby-core@marc-andre.ca>
+
+ * thread.c: Revert changes to Thread#raise made in r25278
+ [ruby-core:25367]
+
+ * eval_intern.h: ditto
+
+Mon Oct 12 23:27:57 2009 Shugo Maeda <shugo@ruby-lang.org>
+
+ * lib/net/ftp.rb (login): use "anonymous@" as a default password.
+ [ruby-dev:39451]
+
+Mon Oct 12 22:48:25 2009 Shugo Maeda <shugo@ruby-lang.org>
+
+ * lib/net/ftp.rb (retrlines): added a new block parameter.
+
+ * lib/net/ftp.rb (gettextfile): preserve missing end-of-line at end
+ of files. [ruby-core:24590]
+
+Mon Oct 12 19:48:33 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (ruby_run_node): if an exception occurred in ruby_option,
+ the result is not executable.
+
+Mon Oct 12 05:51:11 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * regparse.c (fetch_token): warn invalid back reference
+ and subexp call. (\k and \g).
+
+Mon Oct 12 03:47:42 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * marshal.c (has_encoding): added for check the regexp
+ is dumped by 1.8 or 1.9.
+
+ * marshal.c (r_object0): use has_encoding.
+
+Sun Oct 11 15:54:52 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/gdbm/gdbm.c (fgdbm_select): fixed rdoc. a patch from Justin
+ Collins in [ruby-core:26050].
+
+Sun Oct 11 10:27:09 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/irb/context.rb (IRB::Context#irb_name): removed duplicated
+ attr_reader. [ruby-core:26047]
+
+ * lib/irb/ruby-lex.rb (RubyLex#lex_int2): removed duplicated
+ character class range.
+
+Sun Oct 11 10:04:35 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * regparse.c (fetch_token_in_cc): warn when \p is not
+ followed by property name.
+
+ * regparse.c (fetch_token): ditto.
+
+Sun Oct 11 09:44:46 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * regerror.c (onig_vsnprintf_with_pattern): added.
+
+ * regparse.c (onig_syntax_warn): use above.
+
+Sun Oct 11 09:04:08 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * include/ruby/ruby.h (RB_GC_GUARD_PTR): workaround for gcc
+ optimization.
+
+ * include/ruby/ruby.h (ruby_exec_node): declared.
+
+Sun Oct 11 03:10:50 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * regparse.c (onig_syntax_warn): added.
+
+ * regparse.c (CC_ESC_WARN, CLOSE_BRACKET_WITHOUT_ESC_WARN,
+ CC_DUP_WARN, UNKNOWN_ESC_WARN): use onig_syntax_warn.
+
+Sun Oct 11 00:14:38 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * marshal.c (marshal_dump, marshal_load): prevent from GC.
+
+Sat Oct 10 23:57:44 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * file.c (path_check_0): prevent from GC.
+
+Sat Oct 10 23:51:22 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * transcode.c (rb_transcoding, str_transcoding_resize): fixed
+ types.
+
+Sat Oct 10 20:35:27 2009 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * math.c (math_atanh): reverted r25279.
+
+Sat Oct 10 19:03:29 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/curses/curses.c: use rb_thread_blocking_region to avoid
+ rb_read_check. This makes other threads runnable in getstr and
+ wgetstr.
+ (getch_func): extracted from curses_getch.
+ (curses_getch): use rb_thread_blocking_region with getch_func.
+ (getstr_func): extracted from curses_getstr.
+ (curses_getstr): use rb_thread_blocking_region with getstr_func.
+ (wgetch_func): extracted from window_getch.
+ (window_getch): use rb_thread_blocking_region with wgetch_func.
+ (wgetstr_func): extracted from window_getstr.
+ (window_getstr): use rb_thread_blocking_region with wgetstr_func.
+
+ * include/ruby/io.h (rb_read_check): deprecated because it access
+ internal of stdio.
+
+Sat Oct 10 18:59:17 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (cflags, cxxflags): remove duplicating options.
+
+Sat Oct 10 18:19:03 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in, Makefile.in (LIBRUBY_SO), common.mk (ruby.imp),
+ win32/mkexports.rb (each_export): exclude _threadptr_ functions.
+
+Sat Oct 10 17:55:57 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (rb_threadptr_errinfo): renamed.
+
+Sat Oct 10 17:03:22 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (ruby_exec_node): removed unused argument.
+
+Sat Oct 10 14:55:55 2009 Marc-Andre Lafortune <ruby-core@marc-andre.ca>
+
+ * math.c (math_atanh): Fix bug for Math.atanh(+/-1). It now returns
+ +-Infinity. [ruby-core:26028]
+
+Sat Oct 10 14:09:40 2009 Marc-Andre Lafortune <ruby-core@marc-andre.ca>
+
+ * thread.c (rb_threadptr_execute_interrupts_rec, rb_threadptr_raise):
+ Thread#raise with no argument will now re-raise the current exception
+ if there is one [ruby-core:25367]
+
+ * eval.c (get_errinfo, rb_rubylevel_thread_errinfo): Getter for
+ current exception for a given thread
+
+Fri Oct 9 23:10:04 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * vm_method.c (rb_method_boundp): should exclude NOEX_RESPONDS.
+ based on the patch from Nikolai Lugovoi. [ruby-core:25949]
+
+Fri Oct 9 21:14:40 2009 Tanaka Akira <akr@fsij.org>
+
+ * lib/resolv.rb (Resolv::DNS::Requester::ConnectedUDP): disable
+ reverse lookup.
+ (Resolv::DNS::Requester::UnconnectedUDP): ditto.
+
+Fri Oct 9 10:12:13 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * lib/irb/context.rb (IRB::Context#initialize):
+ remove warnings when $VERBOSE is set as true in .irbrc.
+
+Fri Oct 9 02:58:18 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * tool/enc-unicode.rb: optimized.
+
+ * enc/unicode/name2ctype.h, enc/unicode/name2ctype.h.blt,
+ enc/unicode/name2ctype.kwd, enc/unicode/name2ctype.src:
+ U+100000-U+10FFFD is assigned, not Cn.
+
+Fri Oct 9 02:12:02 2009 Marc-Andre Lafortune <ruby-core@marc-andre.ca>
+
+ * ext/curses/curses.c: Many functions of module Curses could cause a
+ crash if the ncurses library was not properly initialized.
+ Fix pointed out by Alexander Beisig [ruby-core:22592]
+ Functions fixed: attroff, attron, attrset, bkgd, bkgdset,
+ can_change_color, close_screen, closed, color_content, curs_set,
+ def_prog_mode, delch, deleteln, getmouse, getstr, has_colors,
+ init_color, init_pair, insertln, keyname, mouseinterval, mousemask,
+ pair_content, pair_number, reset_prog_mode, resizeterm, scrl,
+ setscrreg, standend, standout, start_color, timeout, ungetmouse,
+ use_default_colors
+
+Fri Oct 9 01:07:34 2009 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * compile.c (ADD_TRACE): fire coverage event in ensure clause.
+ [ruby-dev:39303]
+
+ * iseq.h, iseq.c: ditto.
+
+Fri Oct 9 00:33:29 2009 Marc-Andre Lafortune <ruby-core@marc-andre.ca>
+
+ * lib/net/telnet.rb (cmd): Pass FailEOF options: patch by Brian
+ Candler [ruby-core:22723]
+
+Fri Oct 9 00:01:17 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/lib/socket.rb (Socket.udp_server_recv): extracted from
+ Socket.udp_server_loop_on.
+
+Thu Oct 8 05:45:14 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * tool/enc-unicode.rb: parse range notation of UnicodeData.txt.
+
+ * enc/unicode/name2ctype.h, enc/unicode/name2ctype.h.blt,
+ enc/unicode/name2ctype.kwd, enc/unicode/name2ctype.src:
+ follow above change. [ruby-dev:39444]
+
+Thu Oct 8 02:46:24 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * string.c (rb_str_inspect): copy by chunks.
+
+Thu Oct 8 01:23:18 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * iseq.c (iseq_s_disasm): accept proc objects. [ruby-core:18762]
+
+Wed Oct 7 16:42:28 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * marshal.c (mark_dump_arg, mark_load_arg): ignore already cleaned
+ data. [ruby-core:25969]
+
+ * marshal.c (clear_dump_arg, clear_load_arg): clear freed fields.
+
+Wed Oct 7 16:06:30 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * include/ruby/ruby.h (rb_long2int): evaluates the argument only
+ once.
+
+ * struct.c (rb_struct_alloc): check array length overflow.
+
+Wed Oct 7 09:23:49 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * string.c (rb_str_inspect): don't assign -1 to unsigned int.
+
+Wed Oct 7 00:27:01 2009 Tanaka Akira <akr@fsij.org>
+
+ * lib/resolv.rb (Resolv::DNS.bind_random_port): bind to "::" for IPv6.
+ (Resolv::DNS::ConnectedUDP#initialize): specify is_ipv6 argument of
+ bind_random_port.
+ [ruby-core:25970]
+
+Tue Oct 6 23:32:38 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (rb_str_upto): RDoc updated. a patch from Nobuhiro
+ IMAI <nov at yo.rim.or.jp> in [ruby-dev:39440]. [ruby-dev:39439]
+
+Tue Oct 6 21:30:58 2009 Tanaka Akira <akr@fsij.org>
+
+ * io.c (io_reopen): avoid close if possible.
+
+Tue Oct 6 18:56:09 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * struct.c (rb_struct_select): Struct#select should return
+ enumerator when no block given.
+
+Tue Oct 6 06:26:00 2009 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * * ext/tk/lib/tk/canvas.rb: *** POTENTIALLY INCOMPATIBLE ***
+ 'tags' option of a TkcItem object should give a list of TkcTag objs.
+
+ * ext/tk/lib/tkextlib/vu/dial.rb: fix logical bug.
+
+ * ext/tk/lib/tk/canvas.rb, ext/tk/lib/tkextlib/blt/component.rb:
+ lack of support for methodcall_optkeys.
+
+Mon Oct 5 17:19:33 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/delegate.rb (Delegator::public_api): take snapshot of
+ public method at the beginning time.
+
+ * lib/delegate.rb (SimpleDelegator#initialize): use
+ Delegator.public_api since public_method might be added after
+ initialization. [ruby-dev:39383]
+
+ * lib/delegate.rb (DelegateClass): ditto.
+
+Mon Oct 5 12:22:12 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * array.c (rb_ary_{times, shuffle_bang, sample}): reducing macro
+ calls inside of the loop by keeping pointers in local
+ variables. a patch from Masahiro Kanai (CanI) in [ruby-dev:39406].
+ It was found and fixed at Security and Programming camp 2009.
+
+ * string.c (rb_str_{times, split_m}): ditto.
+
+ * struct.c (rb_struct_{getmember, set, aref_id, aset_id}, {make,
+ inspect}_struct, recursive_{equal, hash, eql}): ditto.
+
+Mon Oct 5 00:09:57 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * vm_method.c (basic_obj_respond_to): should not call
+ #respond_to_missing? for not implemented methods.
+ [ruby-core:25909]
+
+ * vm_method.c (rb_method_boundp): returns exceptional value 2 for
+ not-implemented methods when called from #respond_to? (specifies
+ by new constant NOEX_RESPONDS).
+
+ * method.h (enum): new constant NOEX_RESPONDS added.
+
+Sun Oct 4 22:16:29 2009 Takeyuki FUJIOKA <xibbar@ruby-lang.org>
+
+ * lib/cgi/cookie.rb: add default value to @@accept_charset
+ if have not defined. [ruby-dev:38987]
+
+ * lib/cgi/util.rb: ditto.
+
+Sun Oct 4 19:30:54 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * marshal.c (struct {dump,load}_arg): manage with dfree, instead
+ of using local variable which may be moved by context switch.
+ [ruby-dev:39425]
+
+Sun Oct 4 15:00:32 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * pack.c (NATINT_LEN, pack_pack): suppressed warnings.
+
+Sun Oct 4 14:01:10 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/rubygems.rb (Gem::binary_mode): binary mode uses binary
+ encoding.
+
+Sun Oct 4 08:27:10 2009 Tanaka Akira <akr@fsij.org>
+
+ * enum.c (slicebefore_ii): use id_eqq.
+
+Sun Oct 4 06:40:09 2009 Alexander Zavorine <alexandre.zavorine@nokia.com>
+
+ * symbian/setup (ruby.mmp): added macro RUBY_EXPORT to match the
+ change in dln.c
+
+Sun Oct 4 05:34:34 2009 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/tk/variable.rb: add TkVariable#to_hash,to_proc,to_int,
+ to_str,to_ary
+
+Sun Oct 4 00:59:52 2009 Takeyuki FUJIOKA <xibbar@ruby-lang.org>
+
+ * lib/cgi/core.rb: fix command-line option of
+ non-interactive terminal. [ruby-core:23016]
+
+Sun Oct 4 00:40:18 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/rake/contrib: added. [ruby-core:25918]
+
+Sat Oct 3 22:14:18 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (bv_decls, bvar): fix for block variables.
+ [ruby-dev:39423]
+
+Sat Oct 3 21:19:18 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * vm_method.c (rb_add_method_def): no redefinition warning on
+ undef.
+
+Sat Oct 3 18:51:11 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * object.c (rb_f_integer): now Integer() takes optional base
+ argument. base will be ignored for non string values.
+ suggested by Sam Carr at RubyFoo Lounge at London.
+
+ * test/ruby/test_integer.rb (TestInteger#test_Integer): test
+ updated.
+
+Sat Oct 3 04:34:25 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (assignable_gen): parser_yyerror takes two arguments.
+
+Sat Oct 3 04:07:52 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/rake: updated to rake code to rake-0.8.7 source code base.
+
+ * lib/rake/loaders/makefile.rb (Rake::MakefileLoader#process_line):
+ respace dependencies too.
+
+Sat Oct 3 02:59:21 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (assignable_gen): get rid of macro collision.
+
+Sat Oct 3 02:49:50 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * array.c (ary_make_shared): should count frozen array itself.
+
+Sat Oct 3 01:01:20 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * enc/unicode/name2ctype.h: Updated to Unicode 5.2.0.
+
+Sat Oct 3 01:01:03 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in: workaround for regexp metacharacters of expr in
+ prefix path.
+
+Sat Oct 3 00:47:52 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * test/ripper/dummyparser.rb (DummyParser): improvement by Magnus
+ Holm in [ruby-core:25884].
+ * remove scanner events which simply returned the first argument.
+ * all parser events are now automatically generated.
+ * simplify blocks.
+
+Sat Oct 3 00:43:52 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * method.h (rb_method_type_t): remove a comma at end of
+ enumerator list.
+
+Sat Oct 3 00:31:04 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * range.c (discrete_object_p): needs the argument type to get rid
+ of truncation on platforms where VALUE is larger than int.
+
+Fri Oct 2 22:30:15 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * enc/unicode/name2ctype.h.blt, enc/unicode/name2ctype.kwd,
+ enc/unicode/name2ctype.src: Updated to Unicode 5.2.0.
+ NOTE: when you update these data, download UnicodeData.txt
+ and Scripts.txt from http://www.unicode.org/Public/UNIDATA/
+ and run
+ ruby1.9 tool/enc-unicode.rb UnicodeData.txt Scripts.txt \
+ > enc/unicode/name2ctype.kwd
+
+ * enc/unicode/Scripts.txt: removed.
+
+ * enc/unicode/UnicodeData.txt: removed.
+
+Fri Oct 2 20:49:19 2009 Tanaka Akira <akr@fsij.org>
+
+ * enum.c (enum_slice_before): take a pattern if no block given.
+
+Fri Oct 2 20:37:37 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (ripper_yylval_id, ripper_get_{id,value}): wrap ID by
+ NODE to track local variable assignment.
+
+ * parse.y (lvar_defined_gen, assignable_gen): enable local
+ variable check. [ruby-core:24923]
+
+ * parse.y (validate): use value only.
+
+ * test/ripper/test_parser_events.rb (test_local_variables): tests
+ based on a patch from Magnus Holm in [ruby-core:25885].
+
+Fri Oct 2 15:34:15 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * thread.c (ruby_suppress_tracing): get rid of clobbering by
+ longjmp.
+
+Fri Oct 2 09:20:35 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * eval.c (rb_origenviron): remove unused old variable.
+ [ruby-dev:39412]
+
+Thu Oct 1 14:16:39 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/{setup.mak,Makefile.sub,win32.c},include/ruby/win32.h (RT_VER):
+ split compiler specification and runtime library specification.
+
+ * win32/Makefile.sub (LD_SHARED*, config.status): no need to embed
+ manifest if not exist.
+
+Thu Oct 1 13:23:14 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/win32.c (rb_w32_getpid): simply call GetCurrentProcessId()
+ instead of calling MSVCRT's getpid().
+
+Wed Sep 30 13:15:45 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * vm_method.c (rb_add_method_def): show the location where
+ overwritten method was defined. [ruby-dev:39400]
+
+Wed Sep 30 00:37:27 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * enumerator.c (enumerator_block_call): extracted.
+
+Wed Sep 30 00:00:25 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * string.c (rb_str_inspect): escape as \x{XXXX} when the encoding is
+ other than Unicode. [ruby-dev:39388]
+
+Wed Sep 30 00:00:30 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (THREAD_MODEL): modified message when no thread
+ model is available.
+
+Tue Sep 29 23:17:32 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * io.c (rb_scan_open_args): rb_utf8mac_encoding is undefined.
+
+Tue Sep 29 22:25:41 2009 Tanaka Akira <akr@fsij.org>
+
+ * include/ruby/intern.h (rb_struct_iv_get): deprecated because it is
+ not used and access internal structure.
+
+Tue Sep 29 22:19:36 2009 Tanaka Akira <akr@fsij.org>
+
+ * lib/test/unit/assertions.rb (assert_equal): use Time#subsec if nsec
+ is not enough to distinguish arguments.
+
+Tue Sep 29 21:16:35 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * io.c (rb_scan_open_args): add UTF8-MAC to no-convertion encoding.
+
+Tue Sep 29 21:21:15 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (--enable-pthread): deprecated.
+
+Tue Sep 29 21:03:59 2009 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * lib/pp.rb (Kernel#pp): returns its arguments, like Kernel#p.
+ [ruby-dev:34830]
+
+Tue Sep 29 17:02:45 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/json/lib/json/common.rb (recurse_proc): removed needless
+ module_function, since visibility is already module_function.
+
+Tue Sep 29 13:48:58 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * vm_method.c (rb_method_definition_eq): non-null definition is
+ not equal to null definition.
+
+ * vm_method.c (rb_add_method_def): nothing to do if old method had
+ same definition. [ruby-dev:39397]
+
+Tue Sep 29 06:50:32 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * string.c (rb_str_inspect): dump as \uXXXX when the
+ string is in Unicode. [ruby-dev:39388]
+
+Tue Sep 29 06:49:16 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * encoding.c (rb_enc_unicode_p): defined.
+ Returns 1 when the encoding is Unicode series
+ other than UTF-7 else 0.
+
+Tue Sep 29 04:14:08 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * encoding.c (rb_filesystem_encoding): On Unix systems,
+ filesystem encoding should be locale encoding.
+ [ruby-dev:39393]
+
+Tue Sep 29 04:07:58 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * hash.c (rb_f_getenv): use rb_filesystem_str_new_cstr
+ instead of rb_str_new2.
+ ENV['PATH'].encoding should be Filesystem Encoding
+ because its content is related to filesystem.
+ see [ruby-dev:39393]
+
+ * hash.c (env_fetch): ditto.
+
+ * string.c (rb_filesystem_str_new): defined.
+
+ * string.c (rb_filesystem_str_new_cstr): ditto.
+
+ * include/ruby/intern.h (rb_filesystem_str_new): added.
+
+ * include/ruby/intern.h (rb_filesystem_str_new_cstr): ditto.
+
+Tue Sep 29 04:06:18 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * include/ruby/st.h: include inttypes.h and stdint.h.
+
+Tue Sep 29 00:07:06 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * hash.c (rb_f_getenv, env_fetch): env string may be overwritten.
+
+Mon Sep 28 23:30:59 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * dln.c (load_lib, dln_find_exe_r): env string may be overwritten.
+
+ * dln.c (dln_{exit,loaderror,memerror,notimplement}): renamed as
+ independent names.
+
+ * dln.c (aix_loaderror): needs format string.
+
+Mon Sep 28 19:36:20 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/win32.c (LK_ERR): with overlapped I/O, LockFileEx() returns
+ ERROR_IO_PENDING if the file is locked.
+
+Mon Sep 28 19:05:05 2009 Martin Duerst <duerst@it.aoyama.ac.jp>
+
+ * include/ruby/st.h: aligned prototype of st_hash_uint32 with function
+ definition (fixing compiling problem on cygwin)
+
+Mon Sep 28 12:13:15 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * method.h (enum): new method type VM_METHOD_TYPE_MISSING.
+
+ * vm_eval.c (vm_call0): invoking VM_METHOD_TYPE_MISSING method
+ objects.
+
+ * vm_insnhelper.c (vm_call_method): invoking method defined from
+ VM_METHOD_TYPE_MISSING.
+
+ * proc.c (rb_method_entry_arity): ditto.
+
+ * vm_method.c (rb_method_entry_eq): two method object wraps
+ method_missing with same symbol should be equal.
+ [ruby-core:25755]
+
+ * proc.c (mnew): should always return method object.
+
+Mon Sep 28 11:38:07 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * parse.y (parser_tokadd_string): the byte after ``\'' may be a part of
+ multibyte character, so pushback it. [ruby-list:46416]
+
+Mon Sep 28 10:06:38 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * stringio/stringio.c (strio_read): set ASCII-8BIT encoding
+ when length argument is given.
+
+Mon Sep 28 01:28:17 2009 Yutaka Kanemoto <kanemoto@ruby-lang.org>
+
+ * Makefile.in (miniruby): suppress duplication warning on AIX.
+
+Mon Sep 28 01:13:25 2009 Yutaka Kanemoto <kanemoto@ruby-lang.org>
+
+ * common.mk (ruby.imp): add text section [Bug #2064].
+
+ * common.mk (ruby.imp): do not export Init_*.
+
+Sun Sep 27 13:06:43 2009 Tanaka Akira <akr@fsij.org>
+
+ * lib/pp.rb (PP:ObjectMixin#pretty_print): delegates has no inspect
+ method. [ruby-core:25804]
+
+Sun Sep 27 12:01:42 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * string.c (str_buf_cat2): optimize since all second arguments are
+ constant literals.
+
+ * string.c (str_cat_char): unused now.
+
+ * string.c (rb_hash_{uint{32,},end}): removed.
+
+Sun Sep 27 11:58:23 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (optflags): add -fomit-frame-pointer by default.
+
+Sun Sep 27 11:28:15 2009 Tanaka Akira <akr@fsij.org>
+
+ * enum.c (enum_minmax): use struct for memo.
+ (enum_minmax_by): ditto.
+
+Sun Sep 27 10:21:16 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (warnflags): check all flags if each are available.
+
+Sun Sep 27 05:35:17 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * ext/json/ext/generator/generator.c: Documentation patch by okkez.
+ [Bug #2075]
+
+Sun Sep 27 04:20:55 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * string.c (rb_str_inspect): result's encoding should be fixed.
+ If default_internal is not nil, the encoding is default_internal.
+ Else if default_external is not nil, the encoding is default_external.
+ But the encoding is not ASCII-compatible, the encoding is replaced by
+ US-ASCII.
+ Characters in ASCII-incompatible encoding or non ASCII characters
+ in other than the encoding will be \xXX escaped.
+ [ruby-dev:39343]
+
+ * string.c (str_buf_cat2): defined.
+
+ * string.c (prefix_escape): removed.
+
+Sun Sep 27 05:37:45 2009 Alexander Zavorine <alexandre.zavorine@nokia.com>
+
+ * symbian/missing-pips.c: Updated to work with the latest PIPS 1.6.
+
+ * symbian/setup: ditto.
+
+ * symbian/README.SYMBIAN: ditto.
+
+Sun Sep 27 02:00:46 2009 Koichi Sasada <ko1@atdot.net>
+
+ * string.c: use rename-macro instead of RUBY_ALIAS_FUNCTION_TYPE.
+ Because build causes failure.
+
+Sat Sep 26 23:29:11 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * st.c: moved murmur hash from string.c. [ruby-dev:39376]
+
+Sun Sep 26 00:24:14 2009 Alexander Zavorine <alexandre.zavorine@nokia.com>
+
+ * symbian/setup: Updated .mmp file generation due to blockinlining.c removal.
+
+Sat Sep 26 22:39:24 2009 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * Makefile.in(test-rubyspec): explicitly executes run subcommand of
+ mspec.
+
+ * spec/README: typo fix
+
+Sat Sep 26 17:53:13 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * st.c (COLLISION): improved collision log feature.
+
+ * string.c (hash): updated to MurmurHash 2.0 2009-09-19.
+
+ * string.c (rb_hash_start): fixed shift width on 128bit platform.
+
+ * include/ruby/intern.h (rb_hash_{start,uint32,uint,end}): fixed
+ prototypes.
+
+Sat Sep 26 13:26:55 2009 Marc-Andre Lafortune <ruby-core@marc-andre.ca>
+
+ * lib/net/http.rb (transport_request): Handle timeout error by
+ closing socket if exception raised. [ruby-core:20976]
+
+Sat Sep 26 12:08:17 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * vm_method.c (rb_method_entry_eq): method defined from same
+ block/proc should be equal. [ruby-core:25755] [ruby-core:24791]
+
+Sat Sep 26 08:35:12 2009 Koichi Sasada <ko1@atdot.net>
+
+ * iseq.c (compile_string): rename to parse_string(), because
+ this function only parse String to NODE.
+
+Fri Sep 25 16:01:45 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/win32.c, include/ruby/win32.h (rb_w32_access): new function to
+ replace MSVCRT's access().
+ [ruby-core:25761]
+
+ * file.c (eaccess): workaround for recent MSVCRT is no longer needed.
+
+Fri Sep 25 13:04:46 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * proc.c (mnew): fix for instance method of Module, BasicObject
+ and subclass of a class which overrides respond_to_missing?.
+ based on a patch from Nikolai Lugovoi <nlugovoi AT gmail.com> in
+ [ruby-core:25748].
+
+Fri Sep 25 11:56:50 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * vm_method.c (rb_mod_method_defined): should return true or false.
+
+Thu Sep 24 13:32:53 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * proc.c (mnew): generate method object that wraps method_missing,
+ when #respond_to_missing? is defined.
+
+ * test/ruby/test_object.rb (test_respond_to_missing): add test
+ suites for #respond_to_missing? changes.
+
+Thu Sep 24 09:41:42 2009 Marc-Andre Lafortune <ruby-core@marc-andre.ca>
+
+ * lib/mathn.rb (Bignum#**): Fixed bignum**fixnum that was broken when
+ requiring lib/mathn
+ [ruby-core:25740]
+
+Thu Sep 24 02:21:23 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/bigdecimal/lib/bigdecimal/math.rb (atan): atan(Infinity) is
+ PI/2.
+
+ * ext/bigdecimal/lib/bigdecimal/math.rb (atan): reduce loop with
+ the double-angle formula. based on a patch from Masahiro
+ Kanai (CanI) in [ruby-dev:39367].
+
+Thu Sep 24 01:14:18 2009 Yutaka Kanemoto <kanemoto@ruby-lang.org>
+
+ * dln.c (aix_loaderror): fixed typo. suppress warnings.
+
+Thu Sep 24 00:17:06 2009 Tanaka Akira <akr@fsij.org>
+
+ * enum.c (enum_minmax): reduce comparison.
+ (enum_minmax_by): ditto.
+
+Wed Sep 23 22:58:57 2009 Tanaka Akira <akr@fsij.org>
+
+ * lib/thread.rb (ConditionVariable#wait): add timeout argument.
+ [ruby-talk:346154]
+
+Wed Sep 23 21:25:20 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/bigdecimal/lib/bigdecimal/math.rb (atan): refined.
+
+Wed Sep 23 17:08:30 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (assign_in_cond): also should warn assignment to dvar in
+ conditional. [ruby-dev:39363]
+
+Wed Sep 23 13:14:21 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * string.c (rb_str_upto): keep first width. [ruby-dev:39361]
+
+Wed Sep 23 11:28:06 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * tool/instruction.rb (make_header_prepare_stack): check stack
+ overflow. [ruby-core:25714]
+
+ * tool/instruction.rb (make_footer_stack_val): ditto.
+
+Wed Sep 23 05:03:36 2009 Marc-Andre Lafortune <ruby-core@marc-andre.ca>
+
+ * proc.c (umethod_bind, rb_mod_define_method): Fix bug that
+ disallowed methods from singleton classes to be used for
+ UnboundMethod#bind, Kernel#define_singleton_method and
+ Module#define_method, even when that singleton class was of the right
+ kind_of. A patch by Shane O'Brien [ruby-core:25632]
+
+Tue Sep 22 22:56:48 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * vm_method.c (basic_obj_respond_to): new function to fundamental
+ behavior for #respond_to?
+
+ * vm_method.c (basic_obj_respond_to): calls #respond_to_missing
+ method if overridden, to check responsiveness of methods
+ implemented by #method_missing.
+
+Tue Sep 22 16:34:33 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * st.c (st_table_entry, st_get_key): use st_index_t.
+
+Tue Sep 22 16:28:41 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * regenc.h (PosixBracketEntryType): constified.
+
+ * regenc.h (PosixBracketEntryInit): suppress warnings.
+
+ * regerror.c (onig_error_code_to_str, onig_snprintf_with_pattern):
+ fixed type.
+
+ * regparse.c (st_str_end_key, str_end_cmp, str_end_hash):
+ constified.
+
+ * tool/transcode-tblgen.rb (transcode_generated_code): fixed type.
+
+Tue Sep 22 10:29:06 2009 Tanaka Akira <akr@fsij.org>
+
+ * enum.c (enum_chunk): new method Enumerable#chunk.
+ * enum.c (enum_slice_before): new method Enumerable#slice_before.
+ [ruby-dev:38392] [ruby-dev:39240]
+
+Tue Sep 22 05:58:25 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * compile.c, cont.c, gc.c, insns.def, iseq.c, iseq.h, process.c,
+ thread.c, vm.c, vm_core.h, vm_dump.c, vm_eval.c,
+ vm_insnhelper.c, vm_method.c, template/insns_info.inc.tmpl,
+ tool/instruction.rb: fixed types.
+
+Tue Sep 22 05:04:08 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/bigdecimal/lib/bigdecimal/{ludcmp,math}.rb: depend on
+ bigdecimal.
+
+ * ext/bigdecimal/lib/bigdecimal/*.rb: made module functions.
+
+Tue Sep 22 04:47:37 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/bigdecimal/bigdecimal.c (GetVpValue): support conversion from
+ Rational. [ruby-core:25697]
+
+Tue Sep 22 04:43:42 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * Makefile.in, win32/Makefile.sub (INSNS): depend on tools.
+
+Tue Sep 22 01:10:22 2009 Marc-Andre Lafortune <ruby-core@marc-andre.ca>
+
+ * ossl_ocsp.c (ossl_ocspres_to_der): Bug fix in Response#to_def.
+ Patch by Chris Chandler [ruby-core:18411]
+
+Tue Sep 22 01:10:02 2009 Marc-Andre Lafortune <ruby-core@marc-andre.ca>
+
+ * ossl_config.c (ossl_config_add_value_m, ossl_config_set_section):
+ Check if frozen (or untrusted for $SAFE >= 4) [ruby-core:18377]
+
+Mon Sep 21 17:12:10 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * proc.c (proc_binding): allow proc from method. [ruby-core:25589]
+
+ * vm.c (collect_local_variables_in_env): block iseq can be NULL.
+
+Mon Sep 21 10:50:37 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * time.c (rb_time_succ): make Time#succ obsolete since time is not
+ a discrete value.
+
+ * range.c (discrete_object_p): treat time objects specially to
+ determine discrete values, since time objects have #succ yet are
+ discrete (for now at least).
+
+Mon Sep 21 10:13:22 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * cont.c (cont_new, cont_capture, fiber_t_alloc): needs already
+ running thread. cf. [ruby-core:25681]
+
+Mon Sep 21 00:07:36 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/bigdecimal/lib/bigdecimal/math.rb (sin, cos, atan, exp, log):
+ improved precision and performance. based on a patch from Makoto
+ Yamashita in [ruby-core:25600] and [ruby-core:25602].
+
+Sun Sep 20 11:11:34 2009 Marc-Andre Lafortune <ruby-core@marc-andre.ca>
+
+ * struct.c (rb_struct_equal, rb_struct_eql): Handle comparison of
+ recursive structures [ruby-core:24759]
+
+ * range.c (range_eq, range_eql): ditto for ranges
+
+Sat Sep 19 17:46:46 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * vm_core.h (ENABLE_VM_OBJSPACE): socklist needs st_table in
+ rb_w32_sysinit(), before object space initialization.
+
+Sat Sep 19 17:32:59 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * dir.c (GlobPathValue), file.c (rb_get_path_check): path names
+ must be ASCII compatible.
+
+Sat Sep 19 00:02:19 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * include/ruby/ruby.h (rb_type): forward declaration to suppress a
+ warning. a patch from Naohisa Goto at [ruby-dev:39350]
+
+Fri Sep 18 23:59:27 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * dir.c (GlobPathValue): adjust return types. based on a patch
+ from Naohisa Goto at [ruby-dev:39350].
+
+Fri Sep 18 23:51:17 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * marshal.c (r_object0): entry regexp object before its encoding
+ name. [ruby-core:25625]
+
+Fri Sep 18 16:29:16 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * common.mk (eval.o): needs vm.h.
+
+ * eval.c (ruby_cleanup): destruct current VM before exit.
+
+ * gc.c (rb_objspace_free): free object space.
+
+ * vm.c (ruby_vm_destruct): destruct and free VM struct.
+
+Fri Sep 18 16:15:04 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * compile.c (iseq_compile_each), parse.y (stmt, arg): arg_concat()
+ on op_asgn was inversed. [ruby-core:25629] [Bug #2050]
+
+Fri Sep 18 16:06:27 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * dir.c (GlobPathValue): glob allows null bytes as separators.
+
+Fri Sep 18 10:11:53 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * doc/re.rdoc: use rdoc mode.
+
+ * misc/rdoc-mode.el: added.
+
+Fri Sep 18 09:02:49 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/rdoc/rdoc.rb (RDoc::RDoc#parse_files): don't branch by
+ RUBY_VERSION.
+
+ * lib/rdoc/rdoc.rb (RDoc::RDoc#parse_files): emacs local variables
+ are delimited by a semicolon. supported Vim style.
+
+Fri Sep 18 07:06:41 2009 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
+
+ * test/fileutils/test_fileutils.rb: add a test for [ruby-dev:39345]
+
+Fri Sep 18 06:47:13 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * dir.c (push_glob): str should be a string always.
+
+ * dir.c (rb_push_glob, dir_globs): use #to_path to convert non-
+ string values. cf. [ruby-dev:39345]
+
+Fri Sep 18 06:36:51 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/mkmf.rb (rm_f, rm_rf): FileUtils.rm can take an array.
+ [ruby-dev:39345]
+
+ * lib/mkmf.rb (create_header): open in binmode.
+
+Thu Sep 17 18:34:19 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * gc.c (vm_xrealloc): free as like standard free if size is zero.
+
+Thu Sep 17 15:41:02 2009 Koichi Sasada <ko1@atdot.net>
+
+ * eval_intern.h: use rb_node_newnode() directly.
+
+Thu Sep 17 15:01:32 2009 Koichi Sasada <ko1@atdot.net>
+
+ * blockinlining.c: removed.
+
+ * README.EXT: ditto.
+
+ * README.EXT.ja: ditto.
+
+Thu Sep 17 13:50:50 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * thread.c (rb_thread_s_debug_set): set level, not only boolean.
+
+Thu Sep 17 13:12:37 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/rdoc/parser/ruby.rb (RDoc::Parser::Ruby): parse also rdoc
+ files.
+
+ * doc/re.rdoc: renamed from re.rb.
+
+Thu Sep 17 09:37:28 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * doc/re.rb: New document for Ruby's fork of Oniguruma.
+ written by Run Paint Run Run [ruby-core:25420]
+
+ * re.c: import document in doc/re.rb.
+
+ * .document: add doc/re.rb.
+
+Thu Sep 17 06:03:40 2009 Marc-Andre Lafortune <ruby-core@marc-andre.ca>
+
+ * lib/matrix.rb (Matrix#rank): Two bug fixes. One made
+ Matrix[[0,0],[0,0],[1,0]].rank raise a NoMethodError while the other
+ one had Matrix[[0,1],[0,0],[1,0]].rank raise a TypeError.
+
+Thu Sep 17 06:02:04 2009 Marc-Andre Lafortune <ruby-core@marc-andre.ca>
+
+ * lib/matrix.rb: Optimizations
+
+Thu Sep 17 00:36:01 2009 Tanaka Akira <akr@fsij.org>
+
+ * time.c (time_mdump): error message refined.
+
+Wed Sep 16 19:27:43 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * test/ruby/test_thread.rb (TestThread#test_recursive): remove
+ implementation dependent test.
+
+Wed Sep 16 17:42:52 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/Makefile.sub (config.status): install-capi needs docdir. And,
+ mandir, infodir and ridir are also depend on datadir like docdir.
+
+Wed Sep 16 17:20:49 2009 Marc-Andre Lafortune <ruby-core@marc-andre.ca>
+
+ * lib/matrix.rb (Matrix#/): Fix obvious bug
+
+Wed Sep 16 16:59:34 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/Makefile.sub (DOCTARGETS): rdoc is default.
+
+Wed Sep 16 16:27:40 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/Makefile.sub: typo.
+
+Wed Sep 16 16:20:17 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (CAPITARGET): enable iff doxygen is available.
+
+ * configure.in (INSTALLDOC): enable if rdoc or doxygen are enabled.
+
+ * common.mk (docs): target to make documents.
+
+ * Makefile.in, win32/Makefile.sub (install-{all,nodoc}): trigger
+ by $(INSTALLDOC) from install.
+
+Wed Sep 16 13:39:10 2009 Marc-Andre Lafortune <ruby-core@marc-andre.ca>
+
+ * lib/matrix.rb (determinant): Bug fix where determinant failed on
+ some matrices [ruby-core:23597]
+
+Wed Sep 16 13:30:20 2009 Marc-Andre Lafortune <ruby-core@marc-andre.ca>
+
+ * lib/matrix.rb: trivial optimizations
+
+Wed Sep 16 13:15:17 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * template/Doxyfile.tmpl: RbConfig::CONFIG['DOT'] is sometimes nil.
+
+Wed Sep 16 10:14:54 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * README.EXT, README.EXT.ja (rb_protect, rb_jump_tag): added.
+
+Wed Sep 16 10:12:56 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * common.mk (main): makes also encs.
+
+Wed Sep 16 06:30:07 2009 Marc-Andre Lafortune <ruby-core@marc-andre.ca>
+
+ * thread.c (rb_exec_recursive_outer, rb_exec_recursive): Added method
+ to short-circuit to the outermost level in case of recursion
+
+ * test/ruby/test_thread.rb (test_recursive_outer): Test for above
+
+ * hash.c (rb_hash_hash): Return a sensible hash for in case of
+ recursion [ruby-core:24648]
+
+ * range.c (rb_range_hash): ditto
+
+ * struct.c (rb_struct_hash): ditto
+
+ * array.c (rb_array_hash): ditto
+
+ * test/ruby/test_array.rb (test_hash2): test for above
+
+Wed Sep 16 06:17:33 2009 Marc-Andre Lafortune <ruby-core@marc-andre.ca>
+
+ * vm_eval.c (rb_catch_obj, rb_catch, rb_f_catch): No longer use the
+ obsolete function rb_iterate.
+
+Tue Sep 15 21:48:12 2009 Tanaka Akira <akr@fsij.org>
+
+ * configure.in (--enable-frame-address): removed.
+
+Tue Sep 15 15:21:01 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/{configure.bat,Makefile.sub} (RDOCTARGET): the meaning of this
+ macro was changed at r24923.
+
+Tue Sep 15 15:16:14 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * common.mk (install-rdoc), configure.in (RDOCTARGET): removed
+ circular dependency. [ruby-dev:39339]
+
+Tue Sep 15 15:09:13 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/configure.bat: need a space before a tab to output the tab by
+ echo.
+
+Tue Sep 15 14:24:52 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * string.c (rb_str_split_m): use rb_isspace when the
+ string may be ASCII-incompatible.
+
+ * string.c (rb_str_lstrip_bang): ditto.
+
+ * string.c (rb_str_rstrip_bang): ditto.
+
+Tue Sep 15 12:12:27 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (RUBY_USE_BUILTIN_FRAME_ADDRESS): check after real
+ target CPU is set.
+
+ * configure.in (RUBY_UNIVERSAL_ARCH): check real target CPU after
+ AC_PROG_CC.
+
+Tue Sep 15 06:42:59 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * common.mk (install-all): target to install all.
+
+ * tool/rbinstall.rb (parse_args): accept all install targets.
+
+ * tool/rbinstall.rb (parse_args): show help message and exit if
+ rbconfig could not load.
+
+Tue Sep 15 04:25:03 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (RDOCTARGET): use install-all. [ruby-dev:39334]
+
+Tue Sep 15 03:00:35 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (rb_str_lstrip_bang): use ascii_isspace(). [ruby-dev:39322]
+
+ * string.c (rb_str_rstrip_bang): ditto.
+
+ * string.c (rb_str_split_m): ditto.
+
+Mon Sep 14 16:39:14 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * debug.c, parse.y: fixed types.
+
+ * node.h (nd_line): limit to int.
+
+Mon Sep 14 11:23:45 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in, common.mk, */configure.bat (rdoc): make before
+ install if rdoc is enabled. [ruby-dev:39325]
+
+Mon Sep 14 10:56:40 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * common.mk (check-ruby): run all test of ruby itself.
+
+Mon Sep 14 10:44:47 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * include/ruby/ruby.h (RB_TYPE_P): should not use BUILTIN_TYPE for
+ special constants.
+
+Mon Sep 14 10:08:19 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * string.c (rb_str_inspect): use rb_enc_mbc_to_codepoint
+ because we already knew char is found and got length.
+
+Mon Sep 14 09:59:03 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * include/ruby/ruby.h (NUM2INT, NUM2LL, INT2NUM, UINT2NUM),
+ (LONG2NUM, ULONG2NUM, NUM2CHR): get rid of backward references of
+ macros. the code couldn't compile by VC.
+
+Mon Sep 14 08:33:11 2009 Marc-Andre Lafortune <ruby-core@marc-andre.ca>
+
+ * lib/net/http.rb (each_*): return enumerator if no block present.
+ Patch by Arthur Schreiber [ruby-core:18310]
+
+Mon Sep 14 06:42:21 2009 Marc-Andre Lafortune <ruby-core@marc-andre.ca>
+
+ * lib/cgi/cookie.rb (value): Keep CGI::Cookie#value in sync with the
+ cookie itself. Based on a patch by Arthur Schreiber [ruby-core:17634]
+
+Mon Sep 14 05:21:12 2009 Marc-Andre Lafortune <ruby-core@marc-andre.ca>
+
+ * lib/net/http.rb (fetch): Handle properly default values; a patch by
+ Arthur Schreiber [ruby-core:18308]
+
+Mon Sep 14 04:07:09 2009 Marc-Andre Lafortune <ruby-core@marc-andre.ca>
+
+ * lib/set.rb (==): Optimization; patch by Arthur Schreiber [ruby-core:17203]
+
+Mon Sep 14 03:30:23 2009 Alexander Zavorine <alexandre.zavorine@nokia.com>
+
+ * symbian/pre-build: added rule to generate id.h for Symbian build.
+
+ * symbian/configure.bat: fixed harmless error message.
+
+Sun Sep 13 22:18:33 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * variable.c (rb_mod_remove_const): do not change VM state when an
+ exception will occur.
+
+Sun Sep 13 21:25:01 2009 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+
+ * ext/win32ole/win32ole.c (oletypelib_get_libattr): some refactoring
+ by adding oletypelib_get_libattr.
+
+Sun Sep 13 20:55:19 2009 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+
+ * ext/win32ole/win32ole.c (oletypelib_get_typelib): some refactoring
+ by adding oletypelib_get_typelib.
+
+Sun Sep 13 20:18:49 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ruby.c (process_sflag, proc_options, load_file_internal): fixed
+ types.
+
+Sun Sep 13 19:39:59 2009 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+
+ * ext/win32ole/win32ole.c: some refactoring.
+
+Sun Sep 13 19:38:34 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ruby.c (load_file_internal): no need to define DATA when error.
+
+Sun Sep 13 18:48:43 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (XLDFLAGS): link startup code with ObjC support.
+
+Sun Sep 13 13:38:00 2009 Marc-Andre Lafortune <ruby-core@marc-andre.ca>
+
+ * thread.c (recursive_*): refactored the access to the inspect
+ table used by rb_exec_recursive_*. The functions recursive_push,
+ pop and check now assume a valid hash table as their first
+ argument. Added documentation.
+
+Sun Sep 13 12:07:49 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * include/ruby/ruby.h (SYM2ID): needs parens.
+
+ * include/ruby/ruby.h (NUM2INT, NUM2LL, INT2NUM, UINT2NUM),
+ (LONG2NUM, ULONG2NUM, NUM2CHR, rb_type_p, rb_special_const_p):
+ GCC specific optimization.
+
+Sun Sep 13 11:06:12 2009 Tanaka Akira <akr@fsij.org>
+
+ * lib/open-uri.rb (OpenURI::Meta#content_type_parse): strip quotes.
+
+Sun Sep 13 09:38:06 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/prime.rb (EratosthenesGenerator#initialize): call super.
+ (TrialDivisionGenerator, Generator23): ditto. [ruby-core:25539]
+
+Sun Sep 13 09:34:10 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * vm_method.c (rb_add_method_def): no warning for inherited
+ method.
+
+Sun Sep 13 08:30:30 2009 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+
+ * ext/win32ole/win32ole.c: fix WIN32OLE_TYPELIB.new when the 1st
+ argument is the non-registered file.
+
+Sun Sep 13 02:08:43 2009 Koichi Sasada <ko1@atdot.net>
+
+ * vm_core.h: change members of iseq_inline_cache_entry.
+ make cache value members to one union member "ic_value".
+
+ * insns.def: ditto.
+
+ * vm_insnhelper.c: ditto.
+
+Sun Sep 13 01:15:49 2009 Tanaka Akira <akr@fsij.org>
+
+ * lib/open-uri.rb (URI::FTP#buffer_open): fix the %2F handling.
+
+Sun Sep 13 00:46:39 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * vm_method.c (CALL_METHOD_HOOK): refined with macro.
+
+ * vm_method.c (rb_remove_method_id): no definition body is
+ undefined.
+
+ * vm_method.c (rb_add_method, rb_add_method_me): call method added
+ hook after definition. [ruby-core:25536]
+
+ * vm_method.c (rb_alias): hooks are called from rb_add_method_def.
+
+Sat Sep 12 22:47:24 2009 Tanaka Akira <akr@fsij.org>
+
+ * lib/open-uri.rb (URI::FTP#buffer_open): use the port specified in
+ the URI.
+
+Sat Sep 12 17:31:42 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (GCC): subst for GCC depending extension libraries.
+
+Sat Sep 12 07:52:59 2009 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+
+ * ext/win32ole/win32ole.c (EVENTSINK_Invoke): initialize result
+ variant value.
+
+Fri Sep 11 21:52:13 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * NEWS: update for 1.9.2. based on a patch from Run Paint Run Run
+ in [ruby-core:25534].
+
+Fri Sep 11 21:38:13 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in: check for real target cpu on darwin 10.
+
+Fri Sep 11 18:51:57 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * test/fileutils: use require_relative to require fileasserts.
+
+Fri Sep 11 14:22:45 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (debugflags): use gdb by default on linux and
+ darwin.
+
+ * configure.in (XLDFLAGS): keep ARCHFILE macro on AIX.
+
+ * configure.in (RUBY_REPLACE_TYPE): define typename to default
+ type if the latter is found.
+
+Fri Sep 11 13:57:36 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * include/ruby/win32.h (fstat): override if large file support is
+ enabled.
+
+Fri Sep 11 11:33:30 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * tool/config.{guess,sub}: updated to automake-1.11.
+
+Fri Sep 11 10:38:33 2009 URABE Shyouhei <shyouhei@ruby-lang.org>
+
+ * lib/net/http.rb (Net::HTTPHeader::encode_kvpair): also call to_s
+ to k. A patch from swdyh <youhei@gmail.com>
+ http://github.com/swdyh/ruby/tree/c847f43c2ccb679b9ff728f8b1b16c6ceeb57f39
+
+Fri Sep 11 09:45:11 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * dln.c (aix_loaderror): get rid of using uninitialized value in the
+ case loadquery fails. fixed wrong index variable usage. see
+ [ruby-core:25479].
+
+Fri Sep 11 07:52:43 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * unicode.c (onigenc_unicode_property_name_to_ctype):
+ ignore case of properties.
+
+ * tool/enc-unicode.rb: downcase properties list.
+
+ * enc/unicode/name2ctype.h, enc/unicode/name2ctype.h.blt,
+ enc/unicode/name2ctype.kwd, enc/unicode/name2ctype.src:
+ follow above.
+
+Fri Sep 11 05:00:19 2009 Koichi Sasada <ko1@atdot.net>
+
+ * include/ruby/ruby.h (rb_data_type_t): Add comments.
+ And add a member variable "data", a multi-purpose storage
+ area for rb_data_type.
+
+Fri Sep 11 02:14:21 2009 Tanaka Akira <akr@fsij.org>
+
+ * test/dl: use require_relative to require test_base.rb.
+
+Fri Sep 11 02:06:44 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * parse.y (rb_char_to_option_kcode): ASCII-8BIT should
+ also delay.
+
+ * re.c (parser_regx_options): return rb_ascii8bit_encindex on
+ ASCII-8BIT. [ruby-dev:39300]
+
+Fri Sep 11 01:14:00 2009 Marc-Andre Lafortune <ruby-core@marc-andre.ca>
+
+ * lib/net/http.rb (fetch): rdoc fix, patch by Arthur Schreiber.
+ [ruby-core:18309].
+
+Thu Sep 10 23:00:45 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/mkmf.rb (create_makefile): fix for parallel execution.
+ [ruby-core:25509]
+
+Thu Sep 10 21:22:01 2009 Tanaka Akira <akr@fsij.org>
+
+ * test/dl/test_cptr.rb (test_free=): test SEGV at first.
+ [ruby-dev:39269]
+
+Thu Sep 10 21:20:59 2009 Tanaka Akira <akr@fsij.org>
+
+ * test/ruby/envutil.rb (assert_normal_exit): Don't use
+ AssertionMessage.
+
+Thu Sep 10 15:59:05 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * regparse.c (UNKNOWN_ESC_WARN): added.
+
+ * regparse.c (conv_backslash_value): Warn unknown
+ escaped chars in regexp. [ruby-dev:39104]
+
+Wed Sep 9 22:02:02 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/fileutils.rb (FileUtils::Entry_#copy_file): open the source
+ file first to ensure it can be copied. [ruby-core:25498]
+
+Wed Sep 9 21:20:49 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/bigdecimal/bigdecimal.c (BigDecimal_data_type): typed.
+
+ * ext/dl/cfunc.c (dlcfunc_data_type): typed.
+
+ * ext/dl/cptr.c (dlptr_data_type): ditto.
+
+ * ext/dl/handle.c (dlhandle_data_type): ditto.
+
+Wed Sep 9 17:17:31 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * re.c (parser_regx_options): only one kcode should effect
+ options [ruby-core:25411]
+
+Wed Sep 9 15:46:28 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * load.c (rb_feature_provided): fixed for autoloading extension
+ library without suffix.
+
+Wed Sep 9 15:24:32 2009 TAKANO Mitsuhiro (takano32) <tak@no32.tk>
+
+ * include/ruby/st.h : revert previous commit.
+
+ * ext/objspace/objspace.c : remove st_memsize declare.
+
+Wed Sep 9 14:07:19 2009 TAKANO Mitsuhiro (takano32) <tak@no32.tk>
+
+ * include/ruby/st.h : fix duplicate st_memsize declare.
+
+Wed Sep 9 13:33:11 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * variable.c (rb_autoload): initialize typed data.
+
+Wed Sep 9 13:10:41 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * st.c (st_free_table): constified.
+
+Wed Sep 9 13:09:07 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * dir.c (dir_data_type): typed.
+
+ * enumerator.c (enumerator_data_type): typed.
+ (yielder_data_type, generator_data_type): ditto.
+
+ * error.c (name_err_mesg_data_type): typed.
+
+ * file.c (stat_data_type): typed.
+
+ * thread.c (thgroup_data_type, mutex_data_type, barrier_data_type):
+ typed.
+
+ * time.c (time_data_type): typed.
+
+ * transcode.c (econv_data_type): typed.
+
+ * variable.c (autoload_data_type): typed.
+
+Wed Sep 9 11:11:33 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * include/ruby/ruby.h (rb_data_type_struct): constified dsize.
+
+Wed Sep 9 11:07:48 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * cont.c (cont_memsize): fixed wrong expression on IA64.
+
+Wed Sep 9 10:51:46 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * cont.c (cont_restore_1, rb_cont_call): should be Fiber.
+
+Wed Sep 9 00:27:29 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * cont.c (cont_data_type, fiber_data_type): typed.
+
+Tue Sep 8 22:37:59 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/tempfile.rb, lib/tmpdir.rb (Tmpname): extracted new module.
+ [ruby-dev:39197]
+
+Tue Sep 8 22:18:11 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * st.c (st_init_*table_with_size): use st_index_t.
+
+ * include/ruby/st.h (st_hash_func): use st_index_t.
+
+Tue Sep 8 21:48:15 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * vm.c (rb_thread_mark): mark callers iseqs. [ruby-core:25474]
+ [Bug #2062]
+
+Tue Sep 8 11:53:58 2009 Koichi Sasada <ko1@atdot.net>
+
+ * iseq.c (iseq_mark): no need to mark inline cache entries.
+
+ * insns.def (onceinlinecache, setinlinecache): save a value
+ to mark cached value.
+
+Tue Sep 8 08:32:30 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * test/dl/test_{cfunc,ptr}.rb: added tests from Aaron Patterson.
+ see [ruby-dev:39249].
+
+Mon Sep 7 17:22:59 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * io.c (rb_io_tell): adjustment for ungotten data.
+
+Mon Sep 7 17:13:53 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * io.c (io_encname_bom_p): removed magic number.
+
+Mon Sep 7 12:26:04 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/irb/inspector.rb (IRB::INSPECTORS.def_inspector): support
+ object without #inspect defined. a patch from Daniel
+ Bovensiepen. [ruby-core:25200]
+
+Mon Sep 7 05:38:34 2009 Koichi Sasada <ko1@atdot.net>
+
+ * insns.def (opt_*): add IC operands.
+
+ * vm_insnhelper.h (CALL_SIMPLE_METHOD): add a version which
+ use an inline cache. USE_IC_FOR_SPECIALIZED_METHOD macro
+ switches the behaviour. This change also removes
+ CALL_SIMPLE_METHOD_IC() macro.
+
+ * tool/instruction.rb: fix elimination process to ignore
+ variable "ic".
+
+Mon Sep 7 05:21:09 2009 Koichi Sasada <ko1@atdot.net>
+
+ * Makefile.in, common.mk: move a id.h generation rule.
+
+Mon Sep 7 05:07:59 2009 Koichi Sasada <ko1@atdot.net>
+
+ * benchmark/driver.rb: remove RUBY_VERSION output.
+
+Mon Sep 7 05:06:16 2009 Koichi Sasada <ko1@atdot.net>
+
+ * vm_insnhelper.c: rename macro name ENABLE_IC_FOR_IVAR
+ to USE_IC_FOR_IVAR.
+
+Mon Sep 7 03:21:40 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * lib/uri/common.rb (URI.escape): obsoleted.
+
+ * lib/uri/common.rb (URI.unescape): ditto.
+
+Sun Sep 6 18:13:54 2009 Koichi Sasada <ko1@atdot.net>
+
+ * vm_insnhelper.h (CALL_SIMPLE_METHOD_IC): make a macro
+ invoke simple method with inline cache entry.
+
+ * insns.def (opt_length, opt_size): fix to use inline method cache.
+
+Sun Sep 6 17:47:21 2009 Koichi Sasada <ko1@atdot.net>
+
+ * template/id.h.tmpl: fix this.
+
+ * id.h: removed. Because this file is generated automatically.
+
+Sun Sep 6 17:31:28 2009 Koichi Sasada <ko1@atdot.net>
+
+ * compile.c (iseq_specialized_instruction), insns.def (opt_size):
+ optimize #size methods (by specialized instruction).
+
+ * id.c, id.h, vm.c, vm_insnhelper.h: ditto.
+
+Sun Sep 6 16:13:06 2009 Koichi Sasada <ko1@atdot.net>
+
+ * insns.def (setinstancevariable), vm_insnhelper.c (vm_setivar):
+ fix to use inline cache (trivial optimization).
+
+Sun Sep 6 10:34:19 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * io.c: fixed rdoc, a patch from Nobuhiro IMAI at [ruby-core:25433].
+
+Sun Sep 6 05:19:09 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * io.c: Add rdoc for ARGF.
+ contributed by Run Paint Run Run. [ruby-core:23854]
+
+Sat Sep 5 15:21:13 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * compile.c (iseq_compile_each): op_asgn to aref should return rhs.
+ [ruby-core:25387]
+
+Sat Sep 5 10:38:46 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * compile.c (iseq_compile_each): &&= and ||= should return rhs.
+ [ruby-dev:39163] (#1996), [ruby-core:25143]
+
+Sat Sep 5 08:51:43 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * re.c (update_char_offset): position should be long.
+
+ * re.c (match_hash, match_equal): new methods. [ruby-core:24748]
+
+ * re.c (reg_match_pos, rb_reg_eqq, rb_reg_s_quote): get rid of use
+ VALUE as int.
+
+Fri Sep 4 20:40:57 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * numeric.c (round): added declaration. [ruby-dev:39222]
+
+Fri Sep 4 06:15:39 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * dir.c (Init_Dir): alias Dir#path to Dir#to_path. [ruby-core:25326]
+
+Fri Sep 4 04:49:39 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * random.c (random_rand): fixed rdoc. [ruby-core:25332]
+
+Fri Sep 4 04:46:08 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/webrick/httpservlet/abstract.rb (do_OPTIONS): method names
+ are symbols now. [ruby-core:24580]
+
+Thu Sep 3 17:56:40 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (literal_concat_gen): concat body from dstr instead of
+ nd_next. [ruby-core:25284]
+
+Wed Sep 2 16:49:53 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * math.c (math_gamma): get rid of direct comparison between too
+ big double and integer, with gcc on x86_64. [ruby-core:25257]
+
+Wed Sep 2 13:47:30 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * math.c (domain_check): simplified.
+
+Wed Sep 2 11:32:24 2009 Koichi Sasada <ko1@atdot.net>
+
+ * gc.c (obj_free): fix to free method table (fix memory leak).
+
+Wed Sep 2 07:42:15 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * tool/instruction.rb (RubyVM::InstructionsLoader#make_stackcaching_insns):
+ simplified.
+
+Wed Sep 2 02:32:46 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * ext/json/lib/json/common.rb (NaN): Change definition
+ of NaN to 0.0/0 for 1.8/1.9 compatibility.
+
+Wed Sep 2 01:16:32 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * ext/json: Update to JSON 1.1.9.
+
+Tue Sep 1 19:56:28 2009 Koichi Sasada <ko1@atdot.net>
+
+ * vm_eval.c (eval_string_with_cref): fix to check local_table_size.
+ [ruby-dev:39205] [Bug #2024]
+
+Mon Aug 31 16:20:41 2009 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * class.c (make_singleton_class): variable name changed.
+ removed an unnecessary conditional.
+
+Mon Aug 31 14:17:09 2009 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * class.c: refactored singleton class related matters.
+ Handles eigenclasses and plain classes transparently.
+
+ (make_metaclass): renamed from make_metametaclass.
+ (METACLASS_OF): new utility macro
+ (META_CLASS_OF_CLASS_CLASS): ditto.
+ (ENSURE_EIGENCLASS): ditto.
+ (make_singleton_class): extracted from rb_singleton_class.
+ (boot_defclass): moved from object.c
+ (Init_class_hierarchy): extracted from Init_Object.
+ (rb_make_metaclass): refactored.
+ (singleton_class_of): extracted from rb_singleton_class.
+ (rb_singleton_class): refactored.
+ (rb_define_singleton_method): it needs a metaclass only
+ but not its metametaclass.
+
+ * object.c: booting class hierarchy was moved to class.c
+ for keeping dependency between compilation units least.
+ (Init_Object): extracting the booting into
+ Init_class_hierarchy.
+ (boot_defclass): moved to class.c.
+
+Sun Aug 30 23:44:09 2009 Tanaka Akira <akr@fsij.org>
+
+ * time.c (find_time_t): use mktime for the first guess.
+
+Sun Aug 30 16:38:56 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (rb_enc_symname2_p): not depend on nul terminator.
+
+Sun Aug 30 14:11:45 2009 Tanaka Akira <akr@fsij.org>
+
+ * common.mk: dependencies updated.
+
+Sun Aug 30 13:00:11 2009 Tanaka Akira <akr@fsij.org>
+
+ * time.c (add): shortcut implemented for fixnums.
+ (sub): ditto.
+ (mul): ditto.
+
+Sun Aug 30 10:24:43 2009 Tanaka Akira <akr@fsij.org>
+
+ * time.c (eq): apply RTEST.
+ (ne): ditto.
+ (add): avoid method dispatch for bignums.
+ (sub): ditto.
+ (mul): ditto.
+ (mod): ditto.
+
+Sun Aug 30 09:45:11 2009 Tanaka Akira <akr@fsij.org>
+
+ * bignum.c (bigmul1_single): new function specialized respect to
+ multiply two single digit bignums.
+ (bigmul0): use bigmul1_single.
+
+Sun Aug 30 03:59:43 2009 Tanaka Akira <akr@fsij.org>
+
+ * timev.h (TIME_SCALE): defined as 1000000000.
+ (struct vtm): subsec is replaced by subsecx.
+ subsec * TIME_SCALE == subsecx.
+
+ * time.c: avoid rational in most cases.
+ (struct time_object): timev is replaced by timexv.
+ timev * TIME_SCALE == timexv.
+
+Sun Aug 30 03:17:25 2009 Tanaka Akira <akr@fsij.org>
+
+ * time.c (init_leap_second_info): use TIMET_MAX.
+
+Sun Aug 30 01:15:31 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * ext/zlib/zlib.c (gzfile_read_all): use gzfile_newstr;
+ set and convert its encoding. [ruby-dev:38304]
+
+Sat Aug 29 20:40:02 2009 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * vm_eval.c (rb_call0): gets rid of checking method cache twice.
+
+ * method.h (rb_get_method_entry): added a prototype of the function.
+ (rb_method_entry_without_cache): more friendly name.
+
+Sat Aug 29 12:16:47 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/tmpdir.rb (Dir.mktmpdir): rolled back r24699. [ruby-dev:39193]
+
+Sat Aug 29 03:27:17 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/tempfile.rb (Tempfile#make_tmpname): removed thread race
+ condition.
+
+ * lib/tmpdir.rb (Dir.mktmpdir): ditto.
+
+Fri Aug 28 20:29:34 2009 Akinori MUSHA <knu@iDaemons.org>
+
+ * lib/tempfile.rb (Tempfile#callback): Debug information should be
+ output to stderr, not stdout; pointed out by akira yamada.
+ cf. [ruby-dev:39072]
+
+Fri Aug 28 20:34:24 2009 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+
+ * ext/win32ole/win32ole.c: use SafeStringValue instead of
+ Check_SafeStr.
+
+Fri Aug 28 13:30:43 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * thread.c (do_select): rollback r24680. void struct initializer is
+ invalid.
+
+Fri Aug 28 11:45:33 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * method.h (rb_method_definition_t): split from rb_method_entry_
+ to deal aliases. [ruby-dev:39165]
+
+ * proc.c (struct METHOD): contains rb_method_entry_t copy.
+
+Fri Aug 28 10:21:30 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * iseq.c (iseq_mark): skip outdated cache entries.
+
+ * vm_core.h ({GET,INC}_VM_STATE_VERSION): moved from
+ vm_insnhelper.h.
+
+Fri Aug 28 07:25:25 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * enumerator.c (next_i): typo fixed (reached at end -> reached an
+ end). pointed out by James Edward Gray II at LoneStar RubyConf.
+
+Thu Aug 27 18:31:07 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * vm_method.c (rb_remove_method_id): exported.
+
+ * numeric.c (num_sadded): fix for non-ascii method name.
+
+Thu Aug 27 14:32:31 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * re.c (rb_reg_preprocess_dregexp): set encoding as ASCII-8BIT
+ when /n is specified and the embedded string is escaped text.
+
+Thu Aug 27 13:51:12 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * random.c (random_rand): random integer can be a fixnum for
+ bignum range. [ruby-dev:39173]
+
+Thu Aug 27 08:16:34 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/strscan/strscan.c (strscan_set_string): set string should not be
+ duped or frozen, because freezing it causes #concat method failure,
+ and unnecessary to dup without freezing. a patch from Aaron
+ Patterson at [ruby-core:25145].
+
+Thu Aug 27 02:06:11 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * Makefile.in (enc/unicode/name2ctype.kwd):
+ remove rules to generate name2ctype.kwd from
+ UnicodeData.txt and Scripts.txt.
+ if you want to generate, use tool/enc-unicode.rb.
+
+Thu Aug 27 02:00:09 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * unicode.c (PROPERTY_NAME_MAX_SIZE): use MAX_WORD_LENGTH.
+
+Wed Aug 26 23:59:56 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * random.c (random_rand): refined error message.
+
+ * random.c (random_rand): fixed for edge cases of ranges.
+ [ruby-dev:39166]
+
+Wed Aug 26 21:49:23 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * lib/tempfile.rb: add documents from Hongli Lai's fork.
+ cf [ruby-core:25131].
+
+Wed Aug 26 19:51:13 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * tool/mkconfig.rb (program_transform_name): fix for multiple trans
+ rules for autoconf 2.61 or earlier.
+
+ * tool/rbinstall.rb (program_transform_name): ditto.
+
+Wed Aug 26 19:20:26 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * random.c (random_rand): unified random_int and random_float.
+ [ruby-dev:39158]. and fixes [ruby-core:24655], [ruby-core:24677],
+ [ruby-core:24679].
+
+Wed Aug 26 18:59:59 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * test/test_tempfile.rb: merged from Hongli Lai's fork.
+ cf [ruby-core:25131].
+
+Wed Aug 26 18:49:22 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/tempfile.rb (Tempfile#close!): should not undefine finalizer
+ by just unlink.
+
+Wed Aug 26 17:00:31 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * tool/mkconfig.rb (program_transform_name): fix for autoconf 2.61
+ or earlier.
+
+Wed Aug 26 14:34:39 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/tempfile.rb (Tempfile#close!, Tempfile#path): added side
+ notes from Hongli Lai's fork.
+
+ * lib/tempfile.rb (Tempfile#unlink, Tempfile.callback): do nothing
+ any more once unlinked.
+
+Wed Aug 26 13:48:33 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/tempfile.rb (Tempfile#unlink): reverted r23494, since the
+ usage in RubyInline is considered wrong.
+
+Wed Aug 26 12:36:58 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * vm.c (collect_local_variables_in_env): skips internal variables.
+ [ruby-core:25125]
+
+Tue Aug 25 23:51:07 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * tool/enc-unicode.rb: added for generate name2ctype.kwd.
+ contributed by Run Paint Run Run [ruby-core:24775]
+
+ * enc/unicode.c (CodeRanges): move definitions to name2ctype.h.
+
+ * enc/unicode/name2ctype.h.blt, enc/unicode/name2ctype.kwd,
+ enc/unicode/name2ctype.src: updated to v5.1.
+
+ * enc/unicode/UnicodeData.txt, enc/unicode/Scripts.txt: added v5.1.
+
+ * Makefile.in: add rule to generate name2ctype.kwd from
+ UnicodeData.txt and Scripts.txt.
+
+Tue Aug 25 22:31:51 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * configure.in (MKDIR_P): Set 'mkdir -p' to MKDIR_P
+ when AC_PROG_MKDIR_P doesn't set MKDIR_P.
+
+Tue Aug 25 17:38:22 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * bignum.c (rb_big_clone, bigmul1_normal, bigdivrem): trivial
+ optimization.
+
+ * bignum.c (big2dbl): truncates zero digits to get rid of possible
+ underflow.
+
+Tue Aug 25 12:22:25 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * Makefile.in (enc/unicode/name2ctype.h): explicitly ignores the
+ result of diff and turns -e option off, because *BSD make passes
+ it by default.
+
+Tue Aug 25 02:16:37 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (DLDFLAGS): use linker_flag and changed undefined
+ and multiply_defined behaviors. cf [ruby-core:25086].
+
+Mon Aug 24 21:31:37 2009 Kouhei Sutou <kou@cozmixng.org>
+
+ * lib/rss/maker/base.rb, test/rss/test_maker_2.0.rb: fix a bug
+ that RSS Maker doesn't accept 'false' as guid's isPermaLink.
+ Reported by Joe Holt. Thanks!!!
+
+Mon Aug 24 18:58:56 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * include/ruby/missing.h (vsnprintf): rollback a part of r24179, because
+ it's meaningless.
+
+Mon Aug 24 16:35:57 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * st.c (st_delete_safe): deals with packed entries.
+ [ruby-core:25080]
+
+ * st.c (st_cleanup_safe): ditto. [ruby-core:25081]
+
+Mon Aug 24 13:24:07 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/Makefile.sub (MAKEDIRS): define.
+
+ * common.mk (capi): using $(MAKEDIRS), so depends on $(PREP).
+
+Mon Aug 24 13:14:06 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (RUBY_CHECK_SIZEOF): set cross_compiling only when
+ universal binary.
+
+Mon Aug 24 12:55:19 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * win32/Makefile.sub (enc/unicode/name2ctype.h): use md instead of
+ $(MAKEDIRS).
+
+Sun Aug 23 15:22:45 2009 Tanaka Akira <akr@fsij.org>
+
+ * bootstraptest/runner.rb (main): "usage" description updated.
+
+Sun Aug 23 15:12:22 2009 Tanaka Akira <akr@fsij.org>
+
+ * bootstraptest/runner.rb (Dir.mktmpdir): updated to latest.
+ (in_temporary_working_directory): temporary directory name changed.
+
+Sun Aug 23 00:56:13 2009 Tanaka Akira <akr@fsij.org>
+
+ * thread.c (rb_thread_schedule): don't recur infinitely.
+ (rb_threadptr_execute_interrupts): ditto.
+ [ruby-dev:38060]
+
+Sat Aug 22 15:07:23 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/syck/rubyext.c (id_hash_new): new function to create a hash
+ which key is compared by object id.
+ (syck_emitter_reset): use id_hash_new for bonus->data.
+
+ * lib/yaml.rb (YAML.quick_emit): give the object itself to emitter.
+ don't use object_id and hash.
+
+Sat Aug 22 13:05:22 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * Makefile.in: use CP and MV macros.
+
+Sat Aug 22 01:29:29 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/mkmf.rb (rm_f, rm_rf): pass the last hash through if exists.
+ [ruby-dev:39153]
+
+Sat Aug 22 00:48:08 2009 Tanaka Akira <akr@fsij.org>
+
+ * enumerator.c (ary2sv): add dup argument.
+ (enumerator_next): call ary2sv with dup=0.
+ (enumerator_peek): call ary2sv with dup=1 to return duplicated array.
+ (enumerator_peek_values_m): new function to return duplicated array.
+ (Init_Enumerator): use enumerator_peek_values_m as
+ Enumerator#peek_value.
+
+Sat Aug 22 00:03:19 2009 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * thread.c (rb_check_deadlock): decrease number of sleepers before
+ deadlock detection because the deadlock exception makes main thread
+ run. [ruby-dev:39142]
+
+Fri Aug 21 22:34:58 2009 Tanaka Akira <akr@fsij.org>
+
+ * enumerator.c (get_next_values): extracted from
+ enumerator_next_values.
+ (enumerator_next_values): use get_next_values.
+ (enumerator_peek_values): ditto.
+
+Fri Aug 21 17:01:04 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * enc/unicode/name2ctype.h: split from enc/unicode.c and made a
+ perfect hash.
+
+Fri Aug 21 15:13:08 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * include/ruby/io.h, io.c (FMODE_SETENC_BY_BOM):
+ renamed from FMODE_STRIP_BOM.
+
+Thu Aug 20 01:24:55 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * io.c (rb_io_fmode_modestr): change modestr syntax for BOM
+ to "BOM|UTF-*". [ruby-dev:39106]
+
+ * io.c (parse_mode_enc): ditto.
+
+Fri Aug 21 15:01:35 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * ext/readline/readline.c (readline_readline): use rb_prep_terminal
+ only on Windows.
+
+Fri Aug 21 07:25:45 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/rdoc/ri/gemdirs.rb: split from lib/rdoc/ri/paths.rb to ge
+ rid of loading rubygems and searching all gems always.
+
+Fri Aug 21 07:14:52 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (RUBY_PROGRAM_VERSION, RUBY_RELEASE_DATE): extracts
+ from version.h for cross-compiling.
+
+ * template/fake.rb.in (RUBY_VERSION, RUBY_DESCRIPTION): use above.
+
+Fri Aug 21 00:08:01 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/rdoc/ri/paths.rb (RDoc::RI::Paths): Gem::Enable has been obsolete.
+
+Thu Aug 20 23:56:15 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * io.c (rb_sysopen): moved sysopen_struct from rb_sysopen_internal.
+
+Thu Aug 20 23:39:51 2009 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * parse.y (reduce_nodes_gen): preserve NODE_FL_NEWLINE flag during
+ node reducing. [ruby-core:24463]
+
+Thu Aug 20 14:39:47 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * ext/readline/readline.c (readline_get): add rl_prep_terminal(1).
+ incited by jitte [ruby-list:43546]
+
+Thu Aug 20 12:09:01 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (ivar2_hash_type): disabled for now.
+
+Thu Aug 20 08:39:50 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * thread.c (rb_thread_terminate_all): do not ignore interrupt when
+ reaping threads on termination. [ruby-dev:39107]
+
+Thu Aug 20 02:32:08 2009 Tanaka Akira <akr@fsij.org>
+
+ * enumerator.c (next_init): don't clear feedvalue.
+
+Thu Aug 20 01:28:42 2009 Tanaka Akira <akr@fsij.org>
+
+ * enumerator.c: implement Enumerator#{next_values,peek_values,feed}
+ and StopIteration#result. [ruby-dev:39109]
+ (struct enumerator): replace no_next by stop_exc.
+ new field feedvalue.
+ (enumerator_mark): mark feedvalue and stop_exc.
+ (enumerator_init): initialize feedvalue and stop_exc.
+ (enumerator_init_copy): initialize feedvalue.
+ (next_ii): send yield arguments as an array. return feedvalue.
+ (next_i): generate StopIteration exception here. set result.
+ (next_init): initialize feedvalue.
+ (enumerator_next_values): new method Enumerator#next_values.
+ (ary2sv): new function.
+ (enumerator_peek_values): new method Enumerator#peek_values.
+ (enumerator_feed): new method Enumerator#feed.
+ (yielder_yield): return the yield value.
+ (generator_each): return the iterator value.
+ (stop_result): new method StopIteration#result.
+
+Thu Aug 20 01:06:48 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * dir.c (DEFINE_STRUCT_DIRENT): use union to allocate sufficient
+ memory space for Solaris. a patch from Naohisa GOTO
+ <ngoto at gen-info.osaka-u.ac.jp> in [ruby-dev:39132].
+ [ruby-dev:39062]
+
+ * configure.in (SIZEOF_STRUCT_DIRENT_TOO_SMALL): Solaris dirent
+ check.
+
+Wed Aug 19 11:32:43 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * enc/unicode.c (CodeRanges): initialized statically.
+
+Wed Aug 19 02:54:01 2009 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * test/ruby/test_settracefunc.rb (test_return, test_return2): add two
+ tests for [ruby-dev:38701] and [ruby-core:24463].
+
+Wed Aug 19 01:08:34 2009 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * compile.c (NODE_RETURN): fire return event at explicit return.
+ [ruby-dev:38701]
+
+Tue Aug 18 21:00:26 2009 Tanaka Akira <akr@fsij.org>
+
+ * enumerator.c (enumerator_peek): new method Enumerator#peek.
+ (enumerator_next): don't rewind at end.
+ [ruby-dev:38932]
+
+Tue Aug 18 13:46:14 2009 TAKANO Mitsuhiro (takano32) <tak@no32.tk>
+
+ * touch test/rdoc/empty.dat to run test_rdoc_parser.rb
+
+Tue Aug 18 11:37:24 2009 wanabe <s.wanabe@gmail.com>
+
+ * vm_insnhelper.c (vm_call_cfunc): ensure hook c-return.
+ [Bug #1588]
+
+ * test/ruby/test_settracefunc.rb (TestSetTraceFunc#test_raise):
+ follow above.
+
+Tue Aug 18 01:57:00 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * range.c (range_step): treat symbols specially so that iterating
+ over symbols should work like strings. [ruby-core:24780]
+
+ * range.c (range_each): ditto.
+
+Tue Aug 18 01:21:31 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * range.c (range_each): should honor to_str conversion.
+
+Mon Aug 17 23:45:40 2009 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * lib/date/delta.rb: removed require 'date'. added to_c.
+
+Mon Aug 17 14:35:03 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (lex_get_str, lex_io_gets, rb_parser_compile_string):
+ must be ascii compatible.
+
+Mon Aug 17 10:37:41 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * regparse.c (add_code_range_to_buf0): added with checkdup argument.
+
+ * regparse.c (add_code_range_to_buf): use above.
+
+ * regparse.c (add_code_range0): added with checkdup argument.
+
+ * regparse.c (add_code_range): use above.
+
+ * regparse.c (i_apply_case_fold): don't warn if the duplicate is
+ caused by case folding.
+
+Mon Aug 17 08:31:56 2009 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * lib/date/delta.rb: merged from date4. [experimental]
+
+ * lib/date/delta/parser.*: ditto.
+
+ * lib/date.rb: followed the above changes.
+
+Mon Aug 17 08:19:03 2009 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * lib/date/format.rb (strptime): removed \v; since \s includes \v.
+
+Mon Aug 17 08:14:26 2009 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * complex.c (nucomp_rationalize) added. [experimental]
+
+ * rational.c ({nurat,nilclass,integer,float}_rationalize) ditto.
+
+Mon Aug 17 08:11:53 2009 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * lib/cmath.rb: use num#i.
+
+Mon Aug 17 07:59:00 2009 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * numeric.c (flo_pow,fix_pow): may return complex number.
+
+ * bignum.c (rb_big_pow): ditto.
+
+Mon Aug 17 07:16:10 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * numeric.c (num_imaginary): num#i to return imaginary counterpart
+ of the given numeric.
+
+ * complex.c (Init_Complex): undef #i for complex numbers.
+
+Mon Aug 17 00:17:33 2009 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * lib/complex.rb, lib/rational.rb: added warning messages.
+
+Sun Aug 16 23:58:22 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (yylex): should dispatch scan-event even when follows
+ just after delayed-token. [ruby-dev:37855] [Bug #1071]
+
+Sun Aug 16 22:20:16 2009 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * lib/date/format.rb: reverted.
+
+Sun Aug 16 21:31:21 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * lib/date/format.rb: suppressed a warning.
+
+ * lib/irb/ruby-lex.rb: ditto.
+
+Sun Aug 16 15:25:26 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * lib/csv.rb: Change magic comment to US-ASCII in order to
+ make literals as US-ASCII.
+
+Sun Aug 16 10:45:10 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * regparse.c (parse_char_class, parse_exp, parse_branch),
+ (parse_subexp): fixed memory leak. a patch from Ralf Junker
+ <ralfjunker AT gmx.de> at [ruby-core:24921].
+
+Sun Aug 16 10:38:23 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * vm.c (vm_backtrace_each, vm_backtrace_push),
+ vm_eval.c (print_backtrace), vm_dump.c (bugreport_backtrace):
+ rb_backtrace_iter_func now takes VALUE as file and method names.
+
+Sun Aug 16 03:06:59 2009 Koichi Sasada <ko1@atdot.net>
+
+ * vm_insnhelper.c (opt_eq_func): fix optimization bug. This issue
+ was found out and debugged with Takuto Hayashi at Security and
+ Programming camp 2009.
+
+Sun Aug 16 01:10:00 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * regparse.c (add_ctype_to_cc_by_range): fix the first
+ character bigger than sb_out was dropped.
+
+ * test/ruby/test_regexp.rb (TestRegexp#test_posix_bracket):
+ add tests for above.
+
+Sun Aug 16 00:30:33 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * include/ruby/oniguruma.h
+ (ONIGENC_CTYPE_SPECIAL_MASK): added.
+ (ONIGENC_CTYPE_D): ditto.
+ (ONIGENC_CTYPE_S): ditto.
+ (ONIGENC_CTYPE_W): ditto.
+
+ * regparse.c: \d, \s and \w are now non Unicode class.
+ [ruby-dev:39026]
+ (fetch_token_in_cc): use ONIGENC_CTYPE_[DSW] for \d/\s/\w.
+ (fetch_token): ditto.
+ (add_ctype_to_cc): add routines for ONIGENC_CTYPE_[DSW].
+ (parse_exp): ditto.
+
+ * test/ruby/test_regexp.rb (TestRegexp#test_char_class):
+ add tests for above.
+
+Sat Aug 15 10:39:53 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (fname, string_dvar, sym, dsym, f_arglist): removed
+ duplications.
+
+Fri Aug 14 20:03:10 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * include/ruby/ruby.h (rb_check_safe_str): deprecated.
+
+ * ext/openssl/ossl_x509store.c (ossl_x509store_add_{file,path}):
+ replaced deprecated function.
+
+Fri Aug 14 17:59:12 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * re.c (rb_reg_preprocess_dregexp): change Exception class to
+ RegexpError.
+
+ * test/ruby/test_m17n.rb (test_regexp_usascii): follow above.
+
+ * test/ruby/test_m17n.rb (test_regexp_embed): ditto.
+
+Fri Aug 14 17:17:42 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * enc/Makefile.in (MKDIRS): revert r24525.
+
+Fri Aug 14 16:28:19 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/digest/lib/digest/hmac.rb (Digest::HMAC#initialize): faster
+ code.
+
+Fri Aug 14 14:31:33 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (rubyhdrdir): fixed typo. [ruby-dev:39079]
+
+Fri Aug 14 00:29:22 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * doc/ChangeLog-1.8.0: add forgotten entry contributed by
+ TAKAHASHI Kaoru. [ruby-dev:39065]
+
+Fri Aug 14 00:19:49 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/delegate.rb (Delegator#method_missing): __FILE__ may contain
+ multi-byte characters. a patch from Kenta Murata in [ruby-dev:39066].
+
+Thu Aug 13 21:01:03 2009 wanabe <s.wanabe@gmail.com>
+
+ * vm.c (vm_exec): returning from lambda runs ensure section.
+ [Bug #1729]
+
+Thu Aug 13 18:40:07 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (RUBY_CHECK_SIZEOF): set cross_compiling to yes
+ only when AC_COMPUTE_INT, and inverted the arguments.
+
+Thu Aug 13 18:22:08 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (RUBY_CHECK_SIZEOF): use AC_COMPUTE_INT instead of
+ _AC_COMPUTE_INT_COMPILE with cross compiling, since its arguments
+ have been changed at autoconf 2.64.
+
+Thu Aug 13 16:31:10 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * insns.def (opt_case_dispatch): suppressed a warning.
+
+ * vm_insnhelper.c (opt_case_dispatch_i): ditto.
+
+Thu Aug 13 16:20:07 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in, Makefile.in (MAKEDIRS): used MKDIR_P instead of
+ as_mkdir_p. [ruby-dev:39063]
+
+Thu Aug 13 15:37:33 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * regenc.c (onigenc_strlen_null, onigenc_str_bytelen_null): fixed
+ infinite loop for wide encodings. reported by Ralf Junker a
+ [ruby-core:24892]. [ruby-core:24904]
+
+Wed Aug 12 21:07:46 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * ext/socket/extconf.rb: if ipv6 is enabled, the version of Windows
+ must be XP or later.
+ [ruby-core:24601]
+
+Wed Aug 12 15:59:29 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * common.mk (yes-test-knownbug): use RUNRUBY instead of MINIRUBY.
+
+Wed Aug 12 15:52:04 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * class.c (rb_define_module_id_under): fix the name.
+
+ * class.c (rb_define_module_under): fix for previous changes.
+
+Wed Aug 12 15:32:16 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * class.c (rb_define_class_id_under, rb_define_module_id_under):
+ new functions to define a nested class/module with non-ascii
+ name.
+
+ * struct.c (make_struct): use name with encoding.
+
+ * struct.c (inspect_struct): ditto. [ruby-core:24849]
+
+Wed Aug 12 Wed Aug 12 14:54:34 2009 Koichi Sasada <ko1@atdot.net>
+
+ * insns.def, vm.c, vm_insnhelper.c, vm_insnhelper.h: check
+ definition of (classes)#=== for case/when optimization.
+ Fix Bug #1376 [ruby-core:23190].
+
+ * string.c (Init_String), bignum.c (Init_Bignum),
+ numeric.c (Init_Numeric): define String#===, Symbol#===,
+ Bignum#===, Fixnum#===, Float#=== as same as (classes)#==.
+
+Wed Aug 12 14:14:42 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/win32.c (readdir_internal): free old temporary filename.
+ [ruby-core:24820]
+
+Wed Aug 12 12:59:51 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * string.c (rb_str_new_frozen): must not change encoding of frozen
+ shared string. [ruby-dev:39068]
+
+Wed Aug 12 11:51:51 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (rb_cv_broken_crypt): needs more checks.
+
+Wed Aug 12 07:41:31 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * encoding.c (rb_enc_compatible): If a string is empty and
+ other's encoding is US-ASCII, returns the empty string's encoding.
+ [ruby-list:46274]
+
+Wed Aug 12 07:38:12 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * encoding.c (is_data_encoding): fix condition.
+
+ * encoding.c (enc_capable): ditto.
+
+Tue Aug 11 23:12:31 2009 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * lib/date.rb (complete_frags): Monday must be suitable for %W's
+ default day.
+
+Tue Aug 11 21:42:46 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * numeric.c (num_divmod): fixed rdoc. [ruby-core:24862]
+
+Mon Aug 10 21:45:26 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * include/ruby/intern.h (rb_path2class): no deprecation.
+
+Mon Aug 10 10:57:59 2009 Narihiro Nakamura <authorNari@gmail.com>
+
+ * gc.c: reject unused longlife gc. longlife gc target is longlife
+ NODE by method table and vm inline cache. but, fixed it at
+ r24085, r24128. so I rejected longlife gc.
+
+ * debug.c: ditto.
+
+ * include/ruby/intern.h: ditto.
+
+ * include/ruby/ruby.h: ditto.
+
+ * iseq.c: ditto.
+
+ * node.h: ditto.
+
+ * vm_insnhelper.c: ditto.
+
+ * vm_insnhelper.h: ditto.
+
+Mon Aug 10 06:55:45 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * marshal.c (class2path, w_unique, w_extended, w_class, w_uclass):
+ deal with non-ascii class path. [ruby-core:24790]
+
+ * marshal.c (r_unique, path2class, path2module, obj_alloc_by_path),
+ (r_object0): ditto.
+
+ * variable.c (rb_path_to_class): new encoding-aware function to
+ get a class from its name.
+
+Sun Aug 9 21:14:03 2009 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/extconf.rb (search_tclConfig): last change isn't enough.
+ fixed it.
+
+Sun Aug 9 16:36:51 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * common.mk (ruby.imp): excluded prelude.o to get rid of circular
+ dependency. [ruby-dev:39052]
+
+Sun Aug 9 14:49:24 2009 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * bignum.c (rb_big_cmp, bigsub, big_real_len, bigmul1_normal,
+ bigmul1_balance, big_split): remove BDIGITS() inside of the loops.
+ same as r24444.
+
+Sat Aug 8 17:03:21 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * encoding.c (enc_ascii_compatible_p): added. [ruby-core:24793]
+ (Init_Encoding): New API Encoding#ascii_compatible?.
+
+Sun Aug 9 07:25:07 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/ripper/eventids2.c (token_to_eventid): added
+ keyword_do_LAMBDA. [ruby-dev:39049]
+
+Sun Aug 9 02:07:41 2009 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * tool/compile_prelude.rb: fixes a regexp pattern for require.
+ It had matched 'require("foo"('.
+
+Sat Aug 8 11:42:44 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * bignum.c (bigzero_p): removing BDIGITS() inside of the
+ loop. inspired by Masahiro Kanai's blog entry
+ <http://d.hatena.ne.jp/CanI/20090807/1249657492>.
+
+Sat Aug 8 06:18:29 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * marshal.c (w_symbol r_symlink, r_symbol, r_object0): fix for
+ non-ascii symbols. loading such symbols can cause segfaults in
+ older versions. [ruby-core:24788]
+
+Fri Aug 7 03:25:06 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval_error.c (error_print): removed an extra argument.
+
+Fri Aug 7 03:22:50 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (rb_exc_raise, rb_exc_fatal): nil is used to reraise.
+
+Fri Aug 7 01:49:41 2009 Akinori MUSHA <knu@iDaemons.org>
+
+ * ext/digest/sha2/sha2.c: The ULL suffix is not supported by
+ pre-C99 compilers, so resurrect the ULL() macro to regain
+ portability. [ruby-dev:39032]
+
+Fri Aug 7 01:35:26 2009 Akinori MUSHA <knu@iDaemons.org>
+
+ * ext/digest/*/extconf.rb: inttypes.h and unistd.h need not be
+ checked here. [ruby-dev:39032]
+
+Fri Aug 7 01:04:17 2009 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/extconf.rb (search_tclConfig): fix logic bug.
+
+Thu Aug 6 21:18:15 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * ext/digest/sha2/lib/sha2.rb: should require sha2.so.
+
+Thu Aug 6 21:11:40 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * ext/digest/sha2/sha2.c (*_Final): typos.
+
+Thu Aug 6 19:46:56 2009 Akinori MUSHA <knu@iDaemons.org>
+
+ * ext/digest/sha2/sha2.h (BYTE_ORDER): Define BYTE_ORDER as
+ necessary. [ruby-dev:39029]
+
+Thu Aug 6 16:36:25 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * encoding.c (valid_encoding_name_p): rejects too long encoding
+ names.
+
+ * encoding.c (encoding_data_type): typed data.
+
+ * encoding.c (enc_capable, rb_enc_get_index): Symbol is encoding
+ capable.
+
+ * encoding.c (rb_enc_associate_index): cannot set encoding on
+ special constants.
+
+Thu Aug 6 15:44:04 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * vm_method.c (rb_method_entry_eq): deals with optimized method
+ properly. [ruby-core:24789]
+
+Thu Aug 6 13:30:11 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * test/mkmf/base.rb (TestMkmf): was turned into a class, because
+ MiniUnit doesn't complain even if a testcase has no tests.
+
+Thu Aug 6 13:00:30 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/mkmf.rb (check_sizeof): added optional compiler option
+ argument. [ruby-core:24785]
+
+ * lib/mkmf.rb (create_makefile): suppressed shadowing outer local
+ variable warnings.
+
+Thu Aug 6 12:05:06 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/test/unit/testcase.rb (Test::Unit): removes silly TestCase
+ class.
+
+Thu Aug 6 01:37:20 2009 Akinori MUSHA <knu@iDaemons.org>
+
+ * ext/digest/sha2/sha2.[ch]: Update to 1.0 RELEASE which fixes an
+ off-by-one bug in SHA-256 hashing. Reduce differences from
+ the original while at it. [Bug #1799]
+
+Thu Aug 6 00:09:56 2009 Akinori MUSHA <knu@iDaemons.org>
+
+ * lib/ipaddr.rb (IPAddr#hash): Take account of netmask; submitted
+ by Nobuhiro IMAI in [ruby-dev:39011]
+
+Wed Aug 5 19:19:13 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ruby.c (load_file_internal): assumes -x flag if no "ruby" is in
+ the shebang line. [ruby-dev:39015]
+
+Wed Aug 5 19:11:01 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * ruby.c (rb_stdio_set_default_encoding): declared.
+
+Wed Aug 5 18:46:01 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * debug.c (ruby_dummy_gdb_enums): made public. [ruby-dev:39001]
+
+Wed Aug 5 13:49:09 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (rb_str_upto): generate numerical sequence when
+ characters in both edges are all digits. [ruby-talk:343186]
+
+Wed Aug 5 12:54:00 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (rb_exc_raise, rb_exc_fatal): require exception object.
+ [ruby-core:24767]
+
+Wed Aug 5 12:39:23 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (rb_longjmp): reset raised flag before fatal error.
+
+Wed Aug 5 10:20:39 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * re.c (rb_reg_preprocess_dregexp): add options to arguments.
+
+ * re.c (rb_reg_new_ary): follow above.
+
+ * re.c (rb_reg_preprocess_dregexp): change error message when
+ /.../n has a non escaped non ASCII character in non ASCII-8BIT
+ script. [ruby-dev:38524]
+
+Wed Aug 5 03:28:41 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/test/unit.rb (Test::Unit.setup_argv): expands paths before
+ requiring. [ruby-dev:39012]
+
+Wed Aug 5 01:38:27 2009 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * lib/pp.rb (guard_inspect_key): untrust internal hash to prevent
+ unexpected SecurityError.
+
+ * test/ruby/test_object.rb: add a test for [ruby-dev:38982].
+
+Wed Aug 5 00:33:05 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/rdoc/parser/c.rb: fixed a small error in the documentation.
+ [ruby-core:24744]
+
+Tue Aug 4 22:10:34 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/win32.c (has_redirection): need to execute shell if commandline
+ includes newline. cf. [ruby-core:24560]
+
+Tue Aug 4 15:06:58 2009 Akinori MUSHA <knu@iDaemons.org>
+
+ * lib/ipaddr.rb (IPAddr#{eql?,hash}): Add IPAddr#{eql?,hash} so
+ that an IPAddr object can be used as a hash key, a set element,
+ etc.; suggested by Nick Brown <nick@nick-brown.com>.
+
+Tue Aug 4 13:07:10 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * include/ruby/oniguruma.h (ONIG_SYN_WARN_CC_DUP): defined.
+ * regparse.h (ScanEnv): add warnings_flag.
+ * regparse.c (CC_DUP_WARN): defined for warn duplicated characters in
+ character class of regexp. [ruby-core:24593]
+ (add_code_range_to_buf): add CC_DUP_WARN.
+ (next_state_val): add CC_DUP_WARN.
+ (OnigSyntaxRuby): add ONIG_SYN_WARN_CC_DUP.
+ (SET_ALL_MULTI_BYTE_RANGE): add env to arguments.
+ (add_code_range): ditto.
+ (add_code_range_to_buf): ditto.
+ (not_code_range_buf): ditto.
+ (or_code_range_buf): ditto.
+ (and_code_range1): ditto.
+ (and_code_range_buf): ditto.
+ (and_cclass): ditto.
+ (or_cclass): ditto.
+ (add_ctype_to_cc_by_range): ditto.
+ (add_ctype_to_cc): ditto.
+ (parse_char_class): ditto.
+
+Tue Aug 4 12:40:45 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * enc/encdb.c (ENC_SET_BASE): fix typo.
+ patch by ujihisa [ruby-dev:39004]
+
+Tue Aug 4 11:57:39 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * range.c (range_eql, range_eq): fixed equality to work for
+ subclasses of Range. a patch from Marc-Andre Lafortune.
+ [ruby-core:22190]
+
+ * test/ruby/test_range.rb: add assertions for above.
+
+Tue Aug 4 09:41:11 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * enc/big5.c (EncLen_Big5): back to original Big5 table.
+ (EncLen_Big5_HKSCS): for Big5-HKSCS.
+ (trans): add the lead byte table for Big5-HKSCS.
+ (big5_mbc_enc_len): abstract function for Big5 series.
+ (big5_mbc_enc_len): for Big5.
+ (big5_hkscs_mbc_enc_len): for Big5-HKSCS.
+ (BIG5_HKSCS_P): added.
+ (BIG5_ISMB_FIRST): add routine for Big5-HKSCS.
+ (big5_hkscs): add for Big5-HKSCS.
+
+Tue Aug 4 09:33:54 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * encoding.c (rb_enc_set_base): Add for setting base encoding
+ with their names. this is internal function.
+
+ * template/encdb.h.tmpl: specify ENC_SET_BASE for second encodings in
+ each encoding files.
+
+ * enc/encdb.c (rb_enc_set_base): add a declaration.
+ (ENC_SET_BASE): ditto.
+
+Tue Aug 4 06:30:01 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * hash.c (rb_hash_replace): should copy compare_by_identity status as well.
+ [ruby-core:24728]
+
+Tue Aug 4 05:43:03 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * thread.c (recursive_push): need to set UNTRUST. [ruby-dev:38997]
+
+Tue Aug 4 03:56:51 2009 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/tcltklib.c: fix trouble on old-style C function
+ declarations [ruby-core:22871].
+
+ * ext/tk/lib/tcltklib.c: (ruby_1_8) fix warning about RUBY_RELEASE_DATE
+
+ * ext/tk/lib/tk/multi-tk.rb: kill zombie threads.
+
+ * ext/tk/lib/tk/fontchooser.rb: fix typo and support OptionObj.
+
+ * ext/tk/lib/tk/{canvas.rb,virtevent.rb,image.rb,timer.rb}:
+ don't create unnecessary array.
+
+Mon Aug 3 22:19:24 2009 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * eval.c (rb_mod_include): fix document. [ruby-core:24675]
+
+Mon Aug 3 18:25:08 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * sample/svr.rb: obsolete TCPserver renamed. [ruby-core:24712]
+
+ * sample/tsvr.rb: ditto.
+
+ * sample/dualstack-httpd.rb: ditto.
+
+Mon Aug 3 18:12:54 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * thread.c (recursive_push): untrust internal hash to prevent
+ unexpected SecurityError. a patch from Kazuhiro NISHIYAMA.
+ Fix: #1864 [ruby-dev:38982]
+
+Mon Aug 3 17:06:05 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/README: updated. a patch from Daniel Bovensiepen.
+ [ruby-core:24693]
+
+Mon Aug 3 16:28:09 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/win32.c (rb_w32_connect): return value was broken when some
+ error occurred.
+ [ruby-core:24234]
+
+Mon Aug 3 15:56:52 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * array.c (permute0): use chars for boolean array.
+
+ * array.c (rb_ary_{permutation,combination}): disallow reentrance
+ with continuation since work-buffers cannot restore.
+
+ * array.c (rb_ary_{permutation,combination,product}): must not use
+ ary_discard on strings.
+
+Mon Aug 3 06:43:25 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * numeric.c (flo_hash): normalize -0.0 to 0.0. [ruby-core:24577]
+
+Mon Aug 3 00:32:00 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * random.c (rb_random_int): arguments have to be converted to
+ integer. [ruby-core:24679]
+
+Sun Aug 2 21:04:37 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (literal_concat0): tail can be nil. [ruby-dev:38980]
+
+Sun Aug 2 20:09:07 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * array.c (rb_ary_combination, rb_ary_product): prevent from GC.
+
+Sun Aug 2 16:53:19 2009 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * test/ruby/test_rand.rb: add tests for Random#float's rejection
+ against Infinity and NaN.
+
+Sun Aug 2 14:20:43 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * random.c (rand_int): prevent from GC.
+
+Sat Aug 1 19:23:27 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * string.c (tr_trans): change condition of singlebyte
+ optimization.
+
+Sat Aug 1 18:50:53 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * random.c (random_float): rejects Infinity and NaN.
+ [ruby-core:24651]
+
+Sat Aug 1 18:34:52 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * tool/rbinstall.rb (gem): suppressed warnings.
+ cf: [ruby-dev:38975]
+
+Sat Aug 1 05:18:36 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * string.c (tr_trans): can't use singlebyte optimization when
+ the replacement is multibyte. [ruby-core:24612]
+
+Fri Jul 31 18:01:34 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * lib/securerandom.rb (SecureRandom.random_bytes): return string should
+ be ASCII-8BIT. [ruby-core:24640]
+
+Fri Jul 31 16:28:33 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * io.c (rb_stdio_set_default_encoding): added.
+
+ * ruby.c (process_options): call rb_stdio_set_default_encoding
+ after setting default internal and external.
+
+Fri Jul 31 15:06:33 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * tool/compile_prelude.rb: too long string literal causes compile error
+ on some platforms.
+
+Fri Jul 31 13:15:27 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * transcode.c (str_encode_bang): C99ism.
+
+Fri Jul 31 11:48:03 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * compile.c (iseq_compile_each): used more appropriate construct.
+
+Fri Jul 31 10:54:08 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (literal_concat_gen): reduced unnecessary node at string
+ literal concatenation with empty head dstr. [ruby-dev:38968]
+
+Fri Jul 31 02:57:39 2009 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * parse.y (literal_concat_gen): NODE_DSTR was incorrectly handled as
+ NODE_STR. [ruby-dev:38968]
+
+ * bootstraptest/test_syntax.rb: add a test for above.
+
+Fri Jul 31 00:55:48 2009 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * test/ruby/test_module.rb (test_ancestors, test_included_modules):
+ ignore rake mixins.
+
+Fri Jul 31 00:30:54 2009 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * vm_insnhelper.c (vm_call_cfunc): let set_trace_func use called_id
+ instead of original_id.
+
+Thu Jul 30 23:04:32 2009 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * gem_prelude.rb (Gem.path): uses Gem.default_path as a default value
+ so that ruby finds gems in ~/.gem/.
+ (Gem.user_home): reduced version of lib/rubygems.rb's.
+ Gem.default_path needs it.
+
+Thu Jul 30 22:28:04 2009 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * tool/compile_prelude.rb: replaces "require" with in-place evaluation
+ so that copy & paste for lib/rubygems/default.rb is not necessary.
+
+ * gem_prelude.rb: removes copied codes from lib/rubygems/defaults.rb.
+ uses require instead.
+
+ * common.mk (prelude.c): adds dependency for lib/rubygems/defaults.rb.
+
+Thu Jul 30 21:56:18 2009 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * test/ruby/test_rand.rb: add tests for Random class.
+
+Thu Jul 30 21:48:56 2009 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * random.c (init_genrand): ensure invariant of mt->next and mt->left.
+ mt->next should always equal mt->state + N + 1 - mt->left.
+ In fact, 'r = Random.new(0); r == r.dup' has returned false.
+
+Thu Jul 30 21:43:41 2009 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * random.c (random_bytes): use NUM2LONG instead of FIX2LONG because
+ Random#bytes may receive bignum.
+
+Thu Jul 30 21:39:42 2009 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * compile.c (iseq_compile_each): fix stack consistency error.
+ [ruby-core:24611]
+
+ * bootstraptest/test_method.rb: add tests for above.
+
+Thu Jul 30 18:39:39 2009 Martin Duerst <duerst@it.aoyama.ac.jp>
+
+ * transcode.c: added check for frozen string for encode! (see Bug #1836)
+
+ * test/ruby/test_transcode.rb: added tests for the above
+
+Thu Jul 30 16:45:39 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * insns.def (defineclass): preserve encoding of class/module
+ names. [ruby-core:24600]
+
+ * variable.c (rb_set_class_path_string): set class path with a
+ string value.
+
+Thu Jul 30 16:12:48 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * variable.c (Init_var_tables): initializes __classid__ ID.
+
+ * variable.c: use st_data_t for st functions.
+
+Thu Jul 29 14:25:14 2009 Takeyuki FUJIOKA <xibbar@ruby-lang.org>
+
+ * lib/cgi/util.rb (CGI::unescape): support encoding option.
+
+ * lib/cgi/cookie.rb (CGI::Cookie.parse): fix for the encoded value.
+
+Wed Jul 29 08:08:07 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * parse.y (regexp): regexp literal at the top of dstr is still needed
+ even if it is empty.
+
+Wed Jul 29 03:36:24 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ext/json/lib/json/common.rb (JSON#recurse_proc): remove
+ unnecessary private specifier. [ruby-dev:38929]
+
+Wed Jul 29 03:34:46 2009 Koichi Sasada <ko1@atdot.net>
+
+ * vm_core.h, vm_insnhelper.c (vm_call_method): revive
+ VM_CALL_OPT_SEND_BIT and use it to recognize "send" method.
+
+Wed Jul 29 03:11:59 2009 Koichi Sasada <ko1@atdot.net>
+
+ * proc.c (rb_method_entry_arity): support not_implemented method.
+ (I have no idea to test it)
+
+Tue Jul 28 19:36:26 2009 Koichi Sasada <ko1@atdot.net>
+
+ * proc.c (rb_method_entry_arity): support optimized method (send).
+
+ * test/ruby/test_method.rb: add a test for above.
+
+Tue Jul 28 04:34:05 2009 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/extconf.rb: bug fix and ignore invalid Tcl/Tk libraries.
+
+ * ext/tk/lib/config_list.in: bug fix and add a new option.
+
+ * ext/tk/lib/README.tcltklib: update for a new option.
+
+Mon Jul 27 19:03:07 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * include/ruby/intern.h (rb_*str_new_cstr, rb_str_buf_new_cstr),
+ (rb_str_buf_cat2, rb_str_cat2, rb_exc_new2): suppress warnings.
+
+Mon Jul 27 10:24:50 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/rdoc/parser.rb (RDoc::Parser.binary?): fix for empty files.
+ [ruby-dev:38848]
+
+Mon Jul 27 06:51:41 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * io.c (argf_eof): should call next_argv() before testing.
+ [ruby-core:24561]
+
+Sun Jul 26 19:17:33 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * io.c (argf_eof): go to the next file if called after ARGF.close
+ or ARGF.skip. a patch from Mike Kasick at [ruby-core:24561].
+
+Sun Jul 26 18:30:02 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * vm_insnhelper.c (vm_call_method): __send__ can call protected
+ methods. [ruby-core:24500]
+
+Sun Jul 26 01:09:14 2009 Alexander Zavorine <alexandre.zavorine@nokia.com>
+
+ * ext/bigdecimal.c: moved BASE_FIG definition before it is used
+ first time.
+
+ * include/ruby/defines.h [__SYMBIAN32__]: defined TRUE and FALSE to match
+ changes in bignum.c and array.c.
+
+Sat Jul 25 17:49:03 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * io.c (argf_eof): should not have reached EOF before trying to
+ read. based on a patch by Heesob Park <phasis AT gmail.com> in
+ [ruby-core:24559]. [ruby-core:24557]
+
+Sat Jul 25 13:44:28 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * complex.c (nucomp_hash), rational.c (nurat_hash): not to use
+ hash value of class so that equality against subclasses can
+ work. [ruby-dev:38850]
+
+Sat Jul 25 01:05:59 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * enc/big5.c: Fix EncLen_BIG5 for Big5-HKSCS. see [ruby-core:24390]
+
+Fri Jul 24 19:19:19 2009 Martin Duerst <duerst@it.aoyama.ac.jp>
+
+ * enc/trans/big5.trans, big5-hkscs-tbl.rb:
+ new Chinese BIG5-HKSCS transcoding (with Tatsuya Mizuno)
+ see [ruby-core:24390]
+
+ * test/ruby/test_transcode.rb: added tests for the above
+ (with Tatsuya Mizuno)
+
+ * enc/big5.c: Added BIG5-HKSCS as a replicate encoding of BIG5
+ (short term solution, needs more work; with Tatsuya Mizuno)
+
+ * tool/transcode-tblgen.rb: made 'pat' directly accessible in
+ class StrSet
+
+Fri Jul 24 18:03:01 2009 Shugo Maeda <shugo@ruby-lang.org>
+
+ * lib/net/imap.rb (idle): leaves IDLE in a ensure clause. a patch
+ from Eric Hodel.
+
+ * test/net/imap/test_imap.rb (setup, teardown): turn on
+ Socket.do_not_reverse_lookup in tests.
+
+Fri Jul 24 00:13:41 2009 Shugo Maeda <shugo@ruby-lang.org>
+
+ * lib/net/imap.rb (resp_text_code): accepts response codes without
+ text. [ruby-core:24194]
+
+ * lib/net/imap.rb (idle, idle_done): new methods for the IMAP4 IDLE
+ command (RFC 2177). Thanks, Eric Hodel.
+
+ * lib/net/imap.rb (format_date, format_datetime): new method to
+ format IMAP-style date/datetime. Thanks, Eric Hodel.
+
+Thu Jul 23 17:31:02 2009 Keiju Ishitsuka <keiju@ruby-lang.org>
+
+ * lib/irb/ruby-lex.rb: make irb be able to parse
+ string_dvar. [ruby-core: 24051]
+
+Thu Jul 23 17:26:51 2009 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/extconf.rb: should not create "config_list" in a $srcdir.
+
+Thu Jul 23 14:35:02 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/win32.c (rb_w32_{open,wopen}): fixed typos. these conditions
+ mean to call runtime's open() if textmode.
+
+Thu Jul 23 08:53:24 2009 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rdoc/markup/simple_markup/: Remove useless directory.
+ [Bug #1343]
+
+Thu Jul 23 08:52:12 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * random.c (random_{state,left}): internal/debug use.
+
+Wed Jul 22 19:29:26 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * test/ruby/test_module.rb (TestModule#test_alias): warning
+ message updated.
+
+Thu Jul 23 00:39:25 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * common.mk (class.o): depends on vm_core.h.
+
+Thu Jul 23 00:10:02 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * time.c (init_leap_second_info): checks the result of gmtime to
+ suppress warnings.
+
+Wed Jul 22 22:23:24 2009 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * vm_core.h (struct rb_iseq_t): add a new field line_no. This field
+ represents line number from which the original code of the iseq
+ starts. [ruby-dev:38698]
+
+ * iseq.c, compile.c: ditto.
+
+ * parse.y: line number hack (for Proc#source_location) is no longer
+ needed.
+
+ * test/ruby/test_settracefunc.rb: line number of set_trace_func is now
+ compatible with 1.8's.
+
+Wed Jul 22 22:16:48 2009 URABE Shyouhei <shyouhei@ruby-lang.org>
+
+ * method.h: Commas at end of enum list not allowed as of C89
+
+ * vm_method.c (rb_add_method): avoid C++ comment
+
+ * vm_insnhelper.c (vm_call_cfunc): ditto.
+
+Wed Jul 22 20:42:52 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * ext/socket/extconf.rb: define IPPROTO_IPV6 macro for recent Windows
+ SDK.
+
+Wed Jul 22 19:32:10 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * ext/socket/mkconstants.rb: define IPV6_* constants only when INET6
+ is defined.
+
+Wed Jul 22 19:23:04 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * ext/socket/extconf.rb: ipv6 support is disabled by default on mswin.
+
+Wed Jul 22 17:41:08 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * ext/socket/ipsocket.c (init_inetsock_internal): drop IPv6 addresses
+ if INET6 is not defined.
+
+Wed Jul 22 17:29:59 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * ext/socket/extconf.rb: enable ipv6 support for win32.
+
+Wed Jul 22 16:38:39 2009 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * hash.c (Hash::[]): rdoc. patch by Marc-Andre Lafortune.
+ #1385.
+
+Wed Jul 22 10:00:53 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/win32.c (WSAMSG): get rid of compile error on VC9 and mingw.
+
+Wed Jul 22 06:35:56 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * test/ruby/test_enum.rb (TestEnumerable#each): recursive join now
+ raises ArgumentError.
+
+Wed Jul 22 02:33:57 2009 Keiju Ishitsuka <keiju@ruby-lang.org>
+
+ * lib/irb.rb: forget svn commit.
+
+Wed Jul 22 01:20:54 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * bootstraptest/test_io.rb: block write may block for long time.
+
+Wed Jul 22 00:34:39 2009 Keiju Ishitsuka <keiju@ruby-lang.org>
+
+ * lib/irb.rb, lib/irb/init.rb, lib/irb/ext/save-history.rb: add
+ IRB::irb_at_exit. no use finalizer saving history. [ruby-dev-38563]
+
+Tue Jul 21 23:47:38 2009 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * random.c (rand_init): array length of random seed was broken, which
+ causes memory error with srand(2**1000000-1).
+
+ * test/ruby/test_rand.c: test for above.
+
+Tue Jul 21 21:37:19 2009 Keiju Ishitsuka <keiju@ruby-lang.org>
+
+ * lib/irb/cmd/help.rb: fixed irb's "help" command. [ruby-core:22310].
+
+ * lib/tracer.rb: no show lines unknown line number. [ruby-core:22096],
+ no trace display c-call and c-return as default.
+
+Tue Jul 21 16:24:41 2009 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+
+ * ext/win32ole/win32ole.c (vtdate2rbtime): VT_DATE variant object
+ is converted to Time object now.
+
+ * test/win32ole/test_win32ole_variant.rb (test_s_new_with_nil,
+ test_conversion_time2date, test_conversion_str2date,
+ test_conversion_vt_date, test_set_value): ditto.
+
+ * ext/win32ole/win32ole.c (rbtime2vtdate): refactoring.
+
+Tue Jul 21 16:07:57 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/tracer.rb: toplevel caller exists now. [ruby-core:24454]
+
+Tue Jul 21 13:36:20 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/win32.[ch] (recvmsg, sendmsg): new functions to support recvmsg/
+ sendmsg like UNIX. these functions are experimental and not tested
+ well. bug reports are welcome.
+
+Tue Jul 21 13:35:21 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/Makefile.sub (TEST_RUNNABLE): follow r24209.
+
+Tue Jul 21 12:45:31 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * gc.c (rb_gc_enable, rb_gc_disable): should return Qtrue/Qfalse.
+
+Tue Jul 21 12:38:07 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * variable.c (rb_generic_ivar_memsize): should not remove generic
+ instance variable table.
+
+Mon Jul 20 20:35:55 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * io.c (rb_f_open): add rdoc about specifying ext_enc as *-bom.
+
+Mon Jul 20 19:00:58 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * compile.c (compile_dstr_fragments): reduced needless literal.
+
+ * parse.y (xstring, regexp, dsym, literal_concat, evstr2dstr):
+ literal at the top of dstr is no longer needed if it is empty,
+ since concatstrings and toregexp always create new strings.
+
+Mon Jul 20 12:51:39 2009 wanabe <s.wanabe@gmail.com>
+
+ * lib/matrix.rb (Matrix#rank): revert a part of r20859 to avoid
+ infinite loop. [Bug #1020]
+
+Mon Jul 20 11:12:54 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in, Makefile.in (TEST_RUNNABLE): tests are no
+ runnable if cross-compiling.
+
+ * common.mk (btest*, test*): ditto.
+
+Mon Jul 20 10:55:18 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/lib/socket.rb (Addrinfo#family_addrinfo): fix a typo in
+ error message. patch by Nobuhiro IMAI. [ruby-dev:38828]
+
+Sun Jul 19 22:22:54 2009 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * rational.c (float_to_r): an improvement.
+
+Sun Jul 19 20:41:24 2009 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * complex.c (make_patterns): do not use \d.
+
+ * rational.c (make_patterns): ditto.
+
+Sun Jul 19 17:32:37 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * io.c (io_read): should taint the result. [ruby-dev:38826]
+
+Sun Jul 19 11:00:14 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * vm_method.c (me_opts): fixed optimized method aliasing.
+ [ruby-dev:38824]
+
+Sun Jul 19 10:54:56 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/lib/socket.rb (Socket.accept_loop): rescue
+ IO::WaitReadable instead of Errno::EWOULDBLOCK.
+ (Socket.udp_server_loop_on): ditto.
+
+Sat Jul 18 23:44:59 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * re.c (reg_enc_error): use rb_enc_get to get the encoding of
+ a Regexp object. REGEXP(re)->ptr->enc is the encoding of the
+ regexp engine for patterns and target strings.
+ [ruby-core:23208]
+
+Sat Jul 18 17:43:12 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * string.c (rb_str_hash_cmp): got rid of overflow.
+
+Sat Jul 18 16:03:01 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * include/ruby/defines.h (TRUE, FALSE): for internal use.
+
+Sat Jul 18 11:39:49 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * random.c: workaround for VC++ 6.0.
+
+Sat Jul 18 09:16:18 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * random.c (rb_random_{int32,real,bytes,int}): added functions for
+ extension libraries.
+
+Sat Jul 18 09:07:00 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * random.c (fill_random_seed): use cryptographic service on Windows.
+
+Sat Jul 18 07:56:00 2009 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/tk.rb: fail to create a widget object for an unknown
+ widget path.
+
+Sat Jul 18 07:06:31 2009 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/tk.rb,ext/tk/lib/tk/grid.rb: Bug fix on grid_slaves().
+ Extend usage pattern of grid_column()/grid_row().
+
+Sat Jul 18 06:30:35 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * include/ruby/win32.h: include winsock headers in extern "C++" for
+ C++ extension libraries.
+
+ * include/ruby/missing.h (vsnprintf): workaround for VC++.
+ [ruby-core:23096]
+
+Sat Jul 18 00:23:47 2009 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * ext/readline/readline.c (Init_readline): rl_catch_signals does
+ not exist on some platform like Mac OS X 10.5.
+
+ * ext/readline/extconf.rb: checks existence of rl_catch_signals.
+
+Fri Jul 17 22:37:22 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * ext/socket/socket.c (socket_s_ip_address_list): drop inactive
+ adapters.
+
+ * test/socket/test_{nonblock,addrinfo,socket}.rb: skip some tests on
+ Windows.
+ [ruby-core:23051]
+
+Fri Jul 17 22:29:21 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * ext/readline/readline.c (Init_readline): use rl_catch_sigwinch only
+ when existing.
+
+ * ext/readline/extconf.rb: check existence of rl_catch_sigwinch, and
+ workaround for native Win32 readline port.
+
+Fri Jul 17 18:18:23 2009 Tanaka Akira <akr@fsij.org>
+
+ * range.c (recursive_hash): extracted from range_hash. reject
+ recursive key.
+ (range_hash): use recursive_hash.
+
+Fri Jul 17 18:11:32 2009 Tanaka Akira <akr@fsij.org>
+
+ * struct.c (recursive_hash): extracted from rb_struct_hash. reject
+ recursive key.
+ (rb_struct_hash): use recursive_hash.
+
+Fri Jul 17 16:45:22 2009 Tanaka Akira <akr@fsij.org>
+
+ * array.c (recursive_hash): reject recursive key.
+
+Fri Jul 17 15:20:53 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * random.c (DIGSPERINT): fix for LP64.
+
+ * random.c (fill_random_seed): /dev/urandom is not available on
+ DOSISH systems.
+
+ * random.c (random_equal): new method Random#==.
+
+Fri Jul 17 13:35:47 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/init.c (rsock_getfamily): return AF_UNSPEC if getsockname
+ is failed. [ruby-core:24383]
+
+Fri Jul 17 01:22:57 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * array.c (recursive_join): raise ArgumentError for joining
+ recursive array.
+
+ * array.c (ary_join_1): ditto.
+
+ * test/ruby/test_array.rb (TestArray#test_join2): test updated for
+ recursive join.
+
+Thu Jul 16 23:32:16 2009 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/extconf.rb,ext/tk/config_list.in: ignore paths which includes
+ white space characters on Windows.[ruby-dev:38794]
+
+ * ext/tk/lib/tk.rb: works on Cygwin (limitation:: Tk.mainloop works on
+ the main thread only).
+
+Thu Jul 16 20:58:18 2009 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+
+ * test/win32ole/test_win32ole.rb (test_s_codepage_changed,
+ test_s_locale_set, test_s_locale_change): skip test if Japanese
+ locale is not installed. [ruby-core:23806]
+
+ * test/win32ole/test_win32ole_variant.rb (test_conversion_str2cy):
+ ditto.
+
+Thu Jul 16 19:02:28 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * ext/socket/lib/socket.rb (Socket.tcp_server_sockets_port0): servers
+ is nil if an error occurs before setting it.
+
+Thu Jul 16 18:42:56 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * random.c (fill_random_seed): suppress a warning.
+
+Thu Jul 16 18:30:20 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * hash.c (rb_hash_aset, recursive_hash): rejects recursive hash.
+ [ruby-core:22921]
+
+Thu Jul 16 18:28:09 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * id.c (Init_id), vm.c (vm_exec): @#__ThrowState__ is no longer
+ used. [ruby-dev:38760]
+
+Thu Jul 16 17:41:28 2009 Koichi Sasada <ko1@atdot.net>
+
+ * vm_method.c (rb_alias): fix a case which try non-existing method alias.
+
+ * test/ruby/test_alias.rb: add a test.
+
+Thu Jul 16 16:00:23 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * io.c (io_reopen): discards read buffer. [ruby-core:24240]
+
+Thu Jul 16 15:52:25 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * bignum.c (rb_big_new, rb_bigzero_p), range.c (rb_range_values):
+ added for random.c.
+
+ * random.c (rb_random_t): objectified. [EXPERIMENTAL]
+ [ruby-dev:30954]
+
+Thu Jul 16 14:08:44 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * array.c (rb_ary_sample): RDoc update. a patch from Florian
+ Frank. [ruby-core:24347]
+
+Thu Jul 16 12:42:10 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * ext/readline/readline.c (readline_readline): rl_free_line_state
+ before rl_cleanup_after_signal.
+
+ * ext/readline/readline.c (Init_readline): set rl_catch_signals and
+ rl_catch_sigwinch as 0. [ruby-core:21884]
+
+Thu Jul 16 08:59:22 2009 Koichi Sasada <ko1@atdot.net>
+
+ * node.h, vm_core.h, variable.c: rename global_entry to rb_global_entry.
+
+ * compile.c, insns.def, iseq.c, vm_insnhelper.h: ditto.
+
+Thu Jul 16 08:57:44 2009 Koichi Sasada <ko1@atdot.net>
+
+ * vm_method.c: separate clearing cache entry code.
+
+Thu Jul 16 08:56:32 2009 Koichi Sasada <ko1@atdot.net>
+
+ * dir.c (push_glob): re-fix GC problem.
+
+Thu Jul 16 08:55:27 2009 Koichi Sasada <ko1@atdot.net>
+
+ * common.mk: add method.h.
+
+Thu Jul 16 08:53:26 2009 Koichi Sasada <ko1@atdot.net>
+
+ * io.c (argf_free): free data body.
+
+Wed Jul 15 23:46:55 2009 Koichi Sasada <ko1@atdot.net>
+
+ * method.h, vm_core.h: add rb_method_entry_t. Remove nodes around
+ method management. This change affect some VM control stack structure.
+
+ * vm.c, vm_insnhelper.c, vm_method.c, vm_eval.c: ditto. and make some
+ refactoring.
+
+ * insns.def, class.c, eval.c, proc.c, vm_dump.c : ditto.
+
+ * vm_core.h, compile.c (iseq_specialized_instruction): remove
+ VM_CALL_SEND_BIT. use another optimization tech for Kernel#send.
+
+ * node.h: remove unused node types.
+
+ * ext/objspace/objspace.c (count_nodes): ditto.
+
+ * gc.c: add mark/free functions for method entry.
+
+ * include/ruby/intern.h: remove decl of
+ rb_define_notimplement_method_id(). nobody can use it
+ because noex is not opened.
+
+ * iseq.c (iseq_mark): fix to check ic_method is available.
+
+ * iseq.c (rb_iseq_disasm): fix to use rb_method_get_iseq().
+
+Wed Jul 15 23:45:11 2009 Koichi Sasada <ko1@atdot.net>
+
+ * dir.c (push_glob): fix GC problem.
+
+Wed Jul 15 17:33:52 2009 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * ext/purelib.rb: translates a fake path to rubygems in $" into
+ an alternative in $: so that Kernel.#require does not load
+ more rubygems.rb.
+ Resolves many failures in test/rubygems/*.
+
+ * gem_prelude.rb (Gem.load_full_rubygems_library): supports case
+ the rubygems to load is not in $(rubylibprefix).
+ (Gem.path_to_full_rubygems_library): new method for the changes in
+ purelib.rb and Gem.load_full_rubygems_library.
+ (Gem.fake_rubygems_as_loaded): new method.
+
+Wed Jul 15 16:29:35 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/Makefile.sub (LIBPATHFLAG): path is already quoted in mkmf.rb.
+
+Wed Jul 15 06:21:50 2009 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/extconf.rb: --with-{tcl,tk}-dir doesn't work.[ruby-dev:38782]
+
+Wed Jul 15 04:22:54 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * test/cgi/test_cgi_multipart.rb (CGIMultipartTest#_prepare):
+ set tempfile name with literal.
+
+Tue Jul 14 21:53:18 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/io/nonblock: moved from ext/io/wait/lib.
+
+Tue Jul 14 17:29:20 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * string.c (rb_str_index_m): return nil if pos is out of string.
+ [ruby-core:23660]
+
+Tue Jul 14 16:13:04 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * io.c (rb_io_initialize): check if the descriptor can be accessed
+ in the specified open mode. [ruby-dev:38571]
+
+Tue Jul 14 09:26:14 2009 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/multi-tk.rb: Long-term-callback support isn't stable yet.
+ So, disable the feature and waiting for improvement in the future.
+
+Tue Jul 14 01:28:17 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * test/ruby/test_m17n.rb (TestM17N#test_env): the encoding of
+ ENV is now locale encoding.
+
+Tue Jul 14 01:24:56 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * marshal.c (r_object0): should return real object.
+
+Tue Jul 14 01:06:31 2009 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * enumerator.c (yielder_yield_i): use rb_proc_new instead of
+ rb_iterate. [ruby-dev:38518]
+
+ * README.EXT: rb_iterate is obsolete since 1.9; use rb_block_call
+ instead.
+
+ * README.EXT.ja: ditto.
+
+Tue Jul 14 00:45:41 2009 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * test/ruby/test_case.rb (TestCase#test_deoptimization):
+ test for [ruby-core:23190].
+
+Mon Jul 13 22:49:50 2009 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * lib/prime.rb (Prime#prime_division): now decomposes
+ negative integer into a decomposition with element [-1, 1].
+
+ * test/test_prime.rb: test for it.
+
+Mon Jul 13 22:28:03 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * io.c (pipe_open): handles leaked on win32 when an error occurs.
+
+Mon Jul 13 20:21:51 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * marshal.c (r_object0): should not shadow outer variable not to
+ return Qnil always.
+
+Mon Jul 13 19:41:05 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * marshal.c (r_object0): copy instance variables to new regexp.
+
+Mon Jul 13 17:49:11 2009 Koichi Sasada <ko1@atdot.net>
+
+ * vm_core.h, compile.c: declare struct iseq_inline_cache_entry.
+ Inline cache (IC) entries are no longer GC managed object.
+ IC entries are freed when ISeq is freed.
+
+ * iseq.c: fix mark, free, memsize functions for above change.
+
+ * insns.def: remove rb_gc_write_barrier().
+
+ * vm_insnhelper.c (vm_method_search): ditto.
+
+ * tool/instruction.rb, template/insns_info.inc.tmpl (insn_iclen):
+ added.
+
+Mon Jul 13 13:35:08 2009 Koichi Sasada <ko1@atdot.net>
+
+ * insns.def, vm_insnhelper.c (getinstancevariable):
+ fix to use inline cache.
+
+ * compile.c: fix to skip inline cache entry (IC). IC is added
+ automatically by compiler.
+
+ * insns.def, vm_insnhelper.h: fix IC positions.
+
+ * iseq.c: increment minor_version of ISeq because of above change.
+
+Mon Jul 13 08:01:00 2009 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/extconf.rb: New strategy for searching Tcl/Tk libraries.
+
+ * ext/tk/*: Support new features of Tcl/Tk8.6b1 and minor bug fixes.
+ ( [KNOWN BUG] Ruby/Tk on Ruby 1.9 will not work on Cygwin. )
+
+ * ext/tk/*: Unify sources between Ruby 1.8 & 1.9.
+ Improve default_widget_set handling.
+
+ * ext/tk/*: Multi-TkInterpreter (multi-tk.rb) works on Ruby 1.8 & 1.9.
+ ( [KNOWN BUG] On Ruby 1.8, join to a long term Thread on Tk
+ callbacks may freeze. On Ruby 1.9, cannot create a second
+ master interpreter (creating slaves are OK); supported master
+ interpreter is the default master interpreter only. )
+
+ * ext/tk/lib/tkextlib/*: Update supported versions of Tk extensions.
+ Tcllib 1.8/Tklib 0.4.1 ==> Tcllib 1.11.1/Tklib 0.5
+ BWidgets 1.7 ==> BWidgets 1.8
+ TkTable 2.9 ==> TkTable 2.10
+ TkTreeCtrl 2005-12-02 ==> TkTreeCtrl 2.2.9
+ Tile 0.8.0/8.5.1 ==> Tile 0.8.3/8.6b1
+ IncrTcl 2005-02-14 ==> IncrTcl 2008-12-15
+ TclX 2005-02-07 ==> TclX 2008-12-15
+ Trofs 0.4.3 ==> Trofs 0.4.4
+
+Mon Jul 13 01:18:13 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * time.c (time_timespec): rounds subsecond toward zero.
+
+Sun Jul 12 23:51:39 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * hash.c (env_str_new): use rb_locale_str_new instead of
+ rb_tainted_str_new. rb_locale_str_new set string locale
+ encoding and tainted.
+
+Sun Jul 12 23:56:40 2009 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * complex.c: added some shortcuts.
+
+ * rational.c: ditto.
+
+Sun Jul 12 23:30:26 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * object.c (rb_to_integer, rb_check_to_integer): return Bignum
+ as-is.
+
+Sun Jul 12 21:07:46 2009 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * complex.c: use k_exact_{zero,one}_p macro.
+
+ * rational.c: ditto.
+
+Sun Jul 12 20:42:58 2009 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * numeric.c (fix_divide): added an entry to rational.
+
+ * rational.c (rb_rational_reciprocal): added.
+
+ * complex.c (f_reciprocal): added.
+
+Sun Jul 12 02:24:42 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * random.c (rand_init): use fixed buffer for small numbers.
+
+Sat Jul 11 14:43:34 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * test/ruby/test_io_m17n.rb (test_strip_bom): added.
+
+Sat Jul 11 07:11:59 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/readline/readline.c (readline_attempted_completion_function):
+ array length is long.
+
+ * ext/readline/readline.c (readline_s_get_filename_quote_characters):
+ missing type of self.
+
+Sat Jul 11 02:37:37 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * random.c (limited_rand): expands to long before shift so that
+ the result does not overflow.
+
+Sat Jul 11 00:16:27 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * random.c (rand_init): got rid of buffer overflow.
+
+Sat Jul 11 00:11:38 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * array.c (ary_join_1): should recurse for element array.
+
+Fri Jul 10 23:10:11 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * io.c (io_strip_bom): ungetbyte third byte when UTF-16LE.
+
+Fri Jul 10 23:04:16 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * io.c (io_strip_bom): Fix condition of second byte of
+ UTF-16LE/UTF-32LE.
+
+Fri Jul 10 21:45:30 2009 TAKAO Kouji <kouji@takao7.net>
+
+ * ext/readline/extconf.rb: checked rl_refresh_line in readline.
+
+ * ext/readline/readline.c (readline_s_refresh_line): add new
+ method, a patch from Koichiro Ohba. see [ruby-list:45922].
+
+Fri Jul 10 21:00:05 2009 TAKAO Kouji <kouji@takao7.net>
+
+ * ext/readline/extconf.rb: checked rl_line_buffer and rl_point in
+ readline.
+
+ * ext/readline/readline.c (readline_s_get_line_buffer): new method.
+ (readline_s_get_point): new method.
+
+Fri Jul 10 16:30:03 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * array.c (recursive_join): use obj to tell if recursion occurs.
+ [ruby-core:24150]
+
+ * enum.c (enum_join): reverted r23966. [ruby-core:24196]
+
+Fri Jul 10 14:41:34 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * marshal.c (r_object0): set encoding only if the encoding
+ is not US-ASCII.
+
+Fri Jul 10 14:44:03 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * random.c (struct MT): ruby already assumes int has 32bit a
+ least, so no needs to use long.
+
+ * random.c (rand_init): copies data to be used really only.
+
+Fri Jul 10 11:41:39 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * include/ruby/ruby.h (rb_obj_{untrust,untrusted,trust}): added
+ prototypes. [ruby-dev:38756]
+
+Fri Jul 10 10:25:19 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * vm_insnhelper.c (vm_search_superclass): checks for implicit
+ argument passing before method search. [ruby-core:24244]
+
+Fri Jul 10 07:22:29 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (parser_data_type): typed.
+
+Thu Jul 9 23:28:48 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * include/ruby/io.h (FMODE_STRIP_BOM): new constant.
+
+ * io.c (io_encname_bom_p): judge whether the encoding name
+ is *-bom or not.
+ (parse_mode_enc): drop "-bom".
+ (rb_io_modestr_fmode): set FMODE_STRIP_BOM if needed.
+ (rb_io_extract_modeenc): ditto.
+ (io_strip_bom): strip bom if exists.
+ (io_set_encoding_by_bom): set encoding if there is bom.
+ Set encoding and strip bom when modeenc string is "r:foo-bom"
+ [ruby-dev:37236]
+
+Thu Jul 9 21:56:59 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * marshal.c (r_object0): replace \u by u when the regexp is
+ made by Ruby 1.8. [ruby-dev:36750]
+
+Wed Jul 8 23:13:54 2009 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * complex.c (nucomp_div): omitted zero division check.
+
+Wed Jul 8 21:00:37 2009 Keiju Ishitsuka <keiju@ruby-lang.org>
+
+ * lib/irb/inspector.rb: forget svn add.
+
+Wed Jul 8 19:10:22 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * error.c (rb_check_type): rejects typed data.
+
+Wed Jul 8 18:28:04 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * proc.c ({proc,binding,method}_data_type): typed.
+
+Wed Jul 8 16:47:03 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * file.c (rb_file_s_basename): returns new string instead of
+ shared string from FilePathStringValue(). [ruby-core:24199]
+
+Wed Jul 8 04:28:16 2009 Eric Hodel <drbrain@segment7.net>
+
+ * ext/.document: Update with extensions that appear to have
+ documentation. [ruby-core:24181]
+
+Wed Jul 8 04:28:16 2009 Koichi Sasada <ko1@atdot.net>
+
+ * include/ruby/ruby.h:
+ rename
+ "...TypeStruct" and "typed_struct" to
+ "TypedData..." and "typeddata", respectively.
+ rename
+ rb_data_type_t#name to
+ rb_data_type_t#wrap_struct_name.
+
+ * error.c, gc.c, iseq.c, vm.c: ditto.
+
+Tue Jul 7 20:23:27 2009 Keiju Ishitsuka <keiju@ruby-lang.org>
+
+ * bin/irb, lib/irb.rb lib/irb/*: irb-0.9.6, extend inspect-mode
+
+Tue Jul 7 17:00:38 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * gc.c (rb_gc_call_finalizer_at_exit): deal with typed struct like
+ as obj_free().
+
+ * error.c (rb_typed_struct_is_kind_of): new function to see if the
+ given typed struct.
+
+ * error.c (rb_check_typed_struct): new function to check typed
+ struct.
+
+ * include/ruby/ruby.h (Check_TypedStruct, Data_Get_TypedStruct):
+ new macro to check typed struct.
+
+Tue Jul 7 13:36:46 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * enum.c (DEFINE_ENUMFUNCS): included function signature.
+
+ * enum.c (rb_enum_join): non-nil separator must be convertible to
+ String. [ruby-core:24172]
+
+Tue Jul 7 12:47:28 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * enum.c (rb_enum_join): should propagate taint to the return
+ value. the change was overridden by r23967. [ruby-core:24176]
+
+Tue Jul 7 11:56:52 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * gc.c (GC_PROF_SET_MALLOC_INFO, GC_PROF_SET_HEAP_INFO): simplified.
+
+Tue Jul 7 10:12:37 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * io.c (rb_io_ext_int_to_encs): Set external encoding if
+ ext==intern. [ruby-dev:38278]
+
+Mon Jul 6 09:31:50 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * proc.c (make_curry_proc): should propagate lambda-ness.
+ [ruby-core:24127]
+
+ * proc.c (proc_hash): use long.
+
+Mon Jul 6 09:06:49 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * test/ruby/test_module.rb (TestModule#test_undef): adjust to
+ message change.
+
+ * test/ruby/test_object.rb (TestObject#test_redefine_method_which_may_case_serious_problem): ditto.
+
+ * test/ruby/test_object.rb (TestObject#test_remove_method): ditto.
+
+Mon Jul 6 09:04:45 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * enum.c (enum_join): deals with self recursive objects to get rid
+ of infinite recursion. [ruby-core:24150]
+
+Mon Jul 6 08:00:10 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * enum.c (enum_to_a): should propagate taint to the return value.
+ [ruby-core:24152]
+
+ * enum.c (enum_sort_by): ditto.
+
+Mon Jul 6 00:41:41 2009 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * rational.c: edited rdoc.
+
+Sun Jul 5 23:55:57 2009 Tanaka Akira <akr@fsij.org>
+
+ * time.c (find_time_t): fix Time.local(2009,2,31) failure on 64bit
+ time_t environment.
+
+Sun Jul 5 22:43:13 2009 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * complex.c (nucomp_s_polar): now arg is optional.
+
+Sun Jul 5 20:40:35 2009 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * complex.c (float_arg): returns PI for -0.0.
+
+Sun Jul 5 14:04:36 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * thread.c (rb_threadptr_exec_event_hooks): new function to
+ execute event hooks, with preserving errinfo. [ruby-core:24118]
+
+Sun Jul 5 08:14:38 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * vm_method.c (rb_add_method, remove_method, rb_undef): fixed
+ minor grammatical errors in warnings. a patch from Run Pain
+ Run Run at [ruby-core:24141].
+
+ * vm_method.c (Init_eval_method): registers notimplement_body as a
+ mark-object.
+
+ * vm_insnhelper.c (vm_yield_setup_block_args): restores the firs
+ arg where is overwritten at funcall. [ruby-core:24139]
+
+Sat Jul 4 08:20:03 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * numeric.c (dbl2ival): should raise FloatDomainError on Infinity
+ and NaN as 1.8 does. [ruby-dev:38726]
+
+Fri Jul 3 22:48:45 2009 Tanaka Akira <akr@fsij.org>
+
+ * time.c (find_time_t): less number of guesses for hh:mm:60.
+
+Fri Jul 3 21:30:14 2009 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * complex.c (nucomp_equal_p): removed.
+
+Fri Jul 3 21:07:29 2009 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * rational.c: renamed equal_p to eqeq_p.
+
+ * complex.c: ditto.
+
+ * complex.c (nucomp_equal_p): added.
+ Complex(NaN).equal?(Complex(NaN)) should return true.
+
+Fri Jul 3 19:48:40 2009 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * complex.c: undef-ed some methods. [ruby-core:24110]
+
+ * complex.c (Numeric#arg): NaN for NaN. [ruby-core:24116]
+
+Fri Jul 3 18:35:06 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * vm_core.h (struct rb_iseq_struct): fixed types.
+
+ * vm_core.h (ic_vmstat): VM state version is VALUE.
+
+Fri Jul 3 02:52:20 2009 Tanaka Akira <akr@fsij.org>
+
+ * time.c (find_time_t): time guess strategy refined again.
+
+Fri Jul 3 00:36:16 2009 Tanaka Akira <akr@fsij.org>
+
+ * time.c (find_time_t): time guess strategy refined.
+
+Thu Jul 2 11:16:25 2009 Shugo Maeda <shugo@ruby-lang.org>
+
+ * lib/net/imap.rb: added response to Net::IMAP::ResponseError.
+ a patch from Eric Hodel in [ruby-core:24111].
+
+Thu Jul 2 08:04:39 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * time.c (num_exact): rb_check_to_integer() can deal with both of
+ Fixnum and Bignum together.
+
+Thu Jul 2 07:53:44 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (parser_yylex): fixed wrong variable.
+
+Thu Jul 2 05:37:38 2009 Tanaka Akira <akr@fsij.org>
+
+ * time.c (num_exact): use to_r for T_FLOAT.
+
+Thu Jul 2 05:15:54 2009 Tanaka Akira <akr@fsij.org>
+
+ * time.c (quo): return an integer if possible.
+
+Wed Jul 1 21:09:25 2009 Tanaka Akira <akr@fsij.org>
+
+ * include/ruby/intern.h (rb_time_num_new): declared.
+
+ * time.c (nsec2timev): extracted from time_new_internal.
+ (time_new_internal): change argument to VALUE.
+ (rb_time_new): follow the argument change.
+ (rb_time_nano_new): ditto.
+ (rb_time_num_new): new function.
+
+ * ext/socket/ancdata.c (ancillary_timestamp): use rb_time_num_new to
+ represent struct bintime preciously.
+
+Wed Jul 1 08:46:11 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * marshal.c (w_encoding): encodings need extra depth.
+ [ruby-core:24100]
+
+Wed Jul 1 06:47:09 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * enum.c (enum_grep): gets rid of type-punning calls.
+
+Wed Jul 1 06:36:28 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * enum.c (enum_join): add Enumerable#join.
+
+ * array.c (ary_join_1): recursive join for Enumerators (and
+ objects with #to_a).
+
+ * array.c (rb_ary_join): performance tune.
+
+Tue Jun 30 18:19:07 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * hash.c (rb_hash_hash): documentation fix. a patch from
+ Marc-Andre Lafortune. [ruby-core:23943]
+
+ * object.c (rb_mod_cmp): ditto.
+
+ * range.c (range_eq): ditto.
+
+ * string.c (rb_str_partition, rb_str_rpartition): ditto.
+
+ * struct.c (rb_struct_s_def): ditto.
+
+Tue Jun 30 17:44:24 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * re.c (reg_match_pos): adjust offset based on characters, not
+ bytes. [ruby-dev:38722]
+
+ * string.c (rb_str_offset): new function.
+
+ * string.c (rb_str_index_m): no call to rb_reg_adjust_startpos().
+
+Tue Jun 30 16:57:07 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * tool/rbinstall.rb: renamed to get rid of collision against
+ instruction.rb on command line completion of shell.
+
+ * tool/mkconfig.rb (RbConfig.expand): get rid of exceptions on
+ frozen strings unless really changed.
+
+ * tool/file2lastrev.rb: get rid of global variables.
+
+ * tool/compile_prelude.rb: use US-ASCII name.
+
+Tue Jun 30 16:46:40 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * insns.def, tool/instruction.rb: fixed types.
+
+Tue Jun 30 11:08:49 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * include/ruby/oniguruma.h, include/ruby/re.h, re.c, regcomp.c,
+ regenc.c, regerror.c, regexec.c, regint.h, regparse.c: use long.
+
+Tue Jun 30 11:05:59 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * dln.c (dln_find_1): fixed index overrun.
+
+Tue Jun 30 08:42:34 2009 Eric Hodel <drbrain@segment7.net>
+
+ * tool/instruby.rb: summary is required in a .gemspec.
+
+Tue Jun 30 01:35:12 2009 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * tool/strip-rdocs.rb: supports QT style doxy-comments.
+
+Tue Jun 30 01:24:10 2009 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * lib/cmath.rb (log2, cbrt): added. [experimental]
+
+Tue Jun 30 01:19:53 2009 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * complex.c (nucomp_expt): do not use rb_fexpt.
+
+Mon Jun 29 22:50:10 2009 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * Doxyfile.in: removed. merged into template/Doxyfile.template
+
+ * configure.in: new checking for dot and doxygen.
+
+ * template/Doxyfile.template: merged with Doxyfile.in.
+ configured some options.
+
+ * common.mk (capi): use $(DOXYGEN) instead of "doxygen".
+ (Doxyfile): removed a duplicate entry in the dependency.
+
+Mon Jun 29 21:01:31 2009 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * complex.c (nucomp_expt): checks exactness.
+
+Mon Jun 29 20:29:11 2009 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * rational.c (float_to_r): always returns rational.
+
+Mon Jun 29 18:55:55 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * dln.c (dln_find_1): fix for files with dots. [ruby-dev:38588]
+
+Mon Jun 29 17:14:31 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * file.c (file_expand_path): should copy original encoding.
+ [ruby-dev:38612]
+
+Sun Jun 28 23:10:55 2009 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * gem_prelude.c (Gem.default_dir): follows the change on
+ lib/rubygems/default.rb in r23879
+
+Sun Jun 28 23:32:11 2009 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * complex.c (nucomp_div): raises ZeroDivisionError immediately
+ when the given second argument is zero.
+
+ * rational.c (nurat_fdiv): never raise even if the given second
+ argument is zero.
+
+ * rational.c (rb_raise_zerodiv): changed the message (zero to 0).
+
+Sun Jun 28 22:25:07 2009 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * complex.c (nucomp_expt): convert to a float when the given power
+ is a bignum.
+
+ * rational.c (nurat_expt): ditto.
+
+Sun Jun 28 21:16:48 2009 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * lib/cmath.rb (sqrt): fixed an issue [ruby-list:45852].
+
+Sun Jun 28 19:48:29 2009 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * complex.c (nucomp_expt): some improvements.
+
+ * rational.c (nurat_expt): ditto.
+
+Sun Jun 28 19:03:46 2009 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * tool/instruby.rb (:gem): registers the bundled version
+ of minitest as a gem as rdoc or rake.
+ c.f. [ruby-dev:38692].
+
+Sun Jun 28 19:02:07 2009 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * lib/rubygems.rb (ConfigMap[:rubylibprefix]): new entry.
+
+ * lib/rubygems/defaults.rb (Gem.default_dir): considers
+ "--with-rubylibprefix" configure option.
+
+Sun Jun 28 09:21:00 2009 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * complex.c: renamed some static functions.
+
+ * rational.c: ditto.
+
+Sat Jun 27 19:06:22 2009 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * complex.c (nucomp_addsub): new
+
+ * complex.c (nucomp_{add,sub}): use nucomp_addsub.
+
+ * complex.c (nucomp_divide): changed the algorithm.
+
+ * complex.c (nucomp_abs): added shortcuts.
+
+Sat Jun 27 16:56:33 2009 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * rational.c (nurat_cmp): use rb_num_coerce_cmp.
+
+Sat Jun 27 16:45:10 2009 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * complex.c: revised rdoc.
+
+ * rational.c: ditto.
+
+ * numeric.c: ditto.
+
+Sat Jun 27 13:44:48 2009 Kouhei Sutou <kou@cozmixng.org>
+
+ * NEWS, lib/rss/maker/base.rb, test/rss/test_maker_2.0.rb: add
+ item.guid.permanent_link? and item.guid.permanent_link=.
+
+Sat Jun 27 13:41:00 2009 Kouhei Sutou <kou@cozmixng.org>
+
+ * NEWS: rss: 0.2.5 -> 0.2.7.
+
+ * lib/rss/rss.rb, test/rss/test_version.rb: 0.2.6 -> 0.2.7.
+
+Sat Jun 27 03:16:56 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * numeric.c (int_chr): use default_internal encoding as default
+ destination encoding if set. [ruby-core:23997]
+
+Sat Jun 27 03:09:04 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * io.c (argf_rewind): need to rewind $. and ARGF.lineno.
+ [ruby-core:24046]
+
+ * io.c (struct argf): refactoring on $. and ARGF.lineno behavior.
+
+Fri Jun 26 21:48:30 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/pty/pty.c (pty_getpty): check dup failure.
+
+Fri Jun 26 17:33:46 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * test/ruby/test_rubyoptions.rb (TestRubyOptions#test_rubyopt):
+ test suite add '.' to RUBYLIB. remove checks.
+
+ * test/ruby/test_require.rb (TestRequire#test_tainted_loadpath):
+ the default tempdir directory /tmp is world writable, so
+ SecurityError would be raised. check removed.
+
+Fri Jun 26 16:32:59 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * common.mk (COMPILE_PRELUDE): need -I. before -rrbconfig.
+ [ruby-dev:38714]
+
+Thu Jun 25 18:41:51 2009 Ryan Davis <ryand-ruby@zenspider.com>
+
+ * lib/minitest/*.rb: Imported minitest 1.4.2 r5269.
+ * test/minitest/*.rb: ditto.
+
+Thu Jun 25 17:58:39 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * io.c (argf_binmode_m): should call rb_io_ascii8bit_binmode() to
+ set its encoding to ASCII-8BIT. [ruby-core:24029]
+
+Thu Jun 25 13:04:58 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * instruby.rb: '&' in sed s command's replacement is '\&' in ruby.
+ [ruby-dev:38713]
+
+Thu Jun 25 06:50:23 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * io.c (rb_io_each_codepoint): uninitialized local variable enc.
+
+Thu Jun 25 06:25:49 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * enum.c (first_i): wrong condition for no argument #first.
+ [ruby-core:24017]
+
+Wed Jun 24 20:19:11 2009 Tanaka Akira <akr@fsij.org>
+
+ * time.c (time_s_now): new function. Time.now don't take arguments.
+
+Wed Jun 24 16:08:03 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/resource.rb: CONFIG["TEENY"] is not ruby's version but API's
+ one. So need to use RUBY_VERSION instead.
+
+Wed Jun 24 16:07:04 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/mkexports.rb: rbconfig.rb exists at ".".
+
+Wed Jun 24 15:02:29 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (parser_set_encode): show the erred file name instead of
+ the file that requires it. [ruby-core:24006]
+
+Wed Jun 24 11:41:20 2009 Akinori MUSHA <knu@iDaemons.org>
+
+ * misc/ruby-style.el: It is too late to set c-file-style in
+ c-mode-hook (at least on Emacs 23). Call c-set-style instead.
+
+Tue Jun 23 21:28:16 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * file.c (rb_get_path_check): check with given safe level.
+
+ * file.c (rb_find_file_ext_safe, rb_find_file_safe): ditto.
+
+ * safe.c (rb_insecure_operation): function to raise security
+ error.
+
+Tue Jun 23 20:32:43 2009 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * gc.c: remove the definition of GC_DEBUG (debugging macro).
+
+Tue Jun 23 16:16:12 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (ruby_version): defaults revision to 0 when no
+ revision.h exists.
+
+Tue Jun 23 16:04:59 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * file.c (rb_find_file_ext, rb_find_file): no needs to expand
+ paths with tilde twice.
+
+ * load.c (rb_f_load): load the given path directly if not found in
+ load_path.
+
+ * load.c (search_required): search file in specified safe level.
+
+ * load.c (rb_require_safe): path to load is already searched in
+ search_required().
+
+Tue Jun 23 12:43:56 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in: remove PACKAGE_* macros generated by autotools.
+ [ruby-core:20938]
+
+Tue Jun 23 01:17:38 2009 Tanaka Akira <akr@fsij.org>
+
+ * ruby.c (process_options): don't specify .so for encdb here.
+ "." is replaced by "_" in load_encoding.
+
+ * encoding.c (load_encoding): add .so here.
+
+Mon Jun 22 23:24:22 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * variable.c (rb_generic_ivar_memsize): typo fixed. a patch from
+ Kazuhiro NISHIYAMA. [ruby-dev:38700]
+
+ * ext/objspace/objspace.c (memsize_of): ditto.
+
+Mon Jun 22 21:21:59 2009 Tanaka Akira <akr@fsij.org>
+
+ * io.c: remove __CHECKER__ test.
+
+ * dir.c: ditto.
+
+ * dln.c: ditto.
+
+ * file.c: ditto.
+
+ * process.c: ditto.
+
+Mon Jun 22 17:15:38 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ext/stringio/stringio.c (strio_each_codepoint): new method.
+ [ruby-core:23949]
+
+ * ext/stringio/stringio.c (strio_each_codepoint): ditto.
+
+Mon Jun 22 16:26:11 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ruby.c (ruby_init_loadpath_safe): removed "." from load_path.
+
+Mon Jun 22 16:14:30 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * compile.c (iseq_set_arguments, iseq_compile_each): internal
+ arrays must be hidden. [ruby-dev:38613]
+
+ * vm.c (Init_top_self): ditto.
+
+Mon Jun 22 14:41:47 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ruby.c (process_options), enc/prelude.rb: encdb and transdb are
+ extension libraries.
+
+ * ruby.c (process_options): set progname earlier.
+
+Mon Jun 22 13:50:23 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * io.c (rb_io_fdatasync): new method IO#fdatasync.
+
+Sun Jun 21 22:33:05 2009 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * load.c (Init_load): $: must be readonly. [ruby-dev:38690]
+
+ * ruby.c (ruby_prog_init): $-W must be readonly. [ruby-dev:38691]
+
+Sun Jun 21 10:47:21 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/fileutils.rb (FileUtils::Entry_#copy_file): open with
+ default umask. [ruby-core:23952]
+
+Sun Jun 21 10:46:32 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * transcode.c (enc_arg): default internal encoding may not be set.
+ [ruby-core:23932]
+
+Sat Jun 20 21:11:43 2009 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * numeric.c (num_div): don't use num_floor which is actually
+ flo_floor.
+
+ * numeric.c (num_modulo): don't call '%'.
+
+ * numeric.c (num_divmod): use num_modulo.
+
+ * numeric.c: defined '%'.
+
+ * rational.c (nurat_idiv,nurat_mod,nurat_divmod,nurat_rem): removed.
+
+Sat Jun 20 20:28:44 2009 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * complex.c: edited rdoc.
+
+ * numeric.c: ditto.
+
+Sat Jun 20 08:56:47 2009 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * complex.c: edited rdoc.
+
+ * rational.c: ditto.
+
+ * numeric.c: ditto.
+
+Sat Jun 20 07:17:52 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/monitor.rb (MonitorMixin::extend_object): should use
+ #__send__ instead of #send to avoid possible name conflict.
+ [ruby-core:23907]
+
+Sat Jun 20 06:56:31 2009 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * complex.c: edited rdoc.
+
+ * rational.c: ditto.
+
+Sat Jun 20 05:08:59 2009 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * complex.c: edited rdoc.
+
+ * rational.c: ditto.
+
+Sat Jun 20 04:30:35 2009 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * rational.c (nurat_abs): removed.
+
+Sat Jun 20 03:34:16 2009 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * complex.c: added rdoc.
+
+Fri Jun 19 23:43:38 2009 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * numeric.c: edited rdoc.
+
+Fri Jun 19 22:58:16 2009 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * rational.c: edited rdoc.
+
+Fri Jun 19 22:21:17 2009 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * numeric.c: edited rdoc.
+
+Fri Jun 19 21:56:01 2009 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * rational.c (nurat_expt): delegates to complex when self is
+ negative. because Float#** does not produce complex.
+
+Fri Jun 19 21:40:58 2009 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * numeric.c: edited rdoc.
+
+ * rational.c: ditto.
+
+Fri Jun 19 20:53:54 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * encoding.c (rb_enc_name_list): update RDoc. [ruby-core:23926]
+
+Fri Jun 19 20:44:45 2009 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * complex.c: constant COMPLEX_NAME has been removed.
+
+ * rational.c: constant RATIONAL_NAME has been removed.
+
+Fri Jun 19 20:39:46 2009 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * rational.c: added rdoc. a patch from Run Paint Run Run.
+
+Fri Jun 19 17:04:59 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * numeric.c (flo_cmp): should always return nil for NaN.
+
+ * numeric.c (flo_cmp): handle infinite value specially using
+ infinite? method internally. [ruby-dev:38681]
+
+Fri Jun 19 09:28:45 2009 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * numeric.c (*_numerator,*_denominator): moved to rational.c.
+
+ * rational.c (*_numerator,*_denominator): moved from numeric.c.
+
+Fri Jun 19 08:14:07 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * bignum.c (big_lshift, big_rshift): return Bignum always without
+ normalization. [ruby-dev:38679]
+
+Thu Jun 18 22:31:38 2009 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * rational.c (nurat_s_convert): calls to_r when the given argument
+ is non-integer.
+
+ * rational.c (nurat_s_convert): raises TypeError when the given
+ argument is nil.
+
+ * complex.c (nucomp_s_convert): ditto.
+
+Thu Jun 18 20:32:11 2009 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * numeric.c (num_numerator, num_denominator): use
+ to_r [ruby-core:23910].
+
+Thu Jun 18 16:21:05 2009 Ryan Davis <ryand-ruby@zenspider.com>
+
+ * lib/minitest/*.rb: Imported minitest 1.4.0 r5083.
+ * test/minitest/*.rb: ditto.
+
+Thu Jun 18 10:12:49 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ext/bigdecimal/bigdecimal.c (BigDecimal_to_f): went infinity too
+ early. add BASE_FIG margin. [ruby-dev:38673]
+
+Thu Jun 18 01:35:51 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * numeric.c (flo_cmp): Infinity is greater than any bignum
+ number. [ruby-dev:38672]
+
+ * bignum.c (rb_big_cmp): ditto.
+
+Thu Jun 18 01:29:16 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * file.c (file_expand_path): drive letter is ascii only.
+ [ruby-dev:38612]
+
+Thu Jun 18 01:09:27 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (ridir, RI_BASE_NAME): fixed for path expansion.
+ [ruby-core:23876]
+
+Wed Jun 17 23:46:08 2009 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * rational.c (nurat_coerce): accepts Complex when the imag is
+ exact zero.
+
+Wed Jun 17 21:25:54 2009 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * bignum.c (rb_big_fdiv): checks whether the given second argument
+ can be converted to float properly.
+
+ * numeric.c (fix_fdiv): calls rb_big_fdiv when the given second
+ argument is a bignum.
+
+ * rational.c (nurat_fdiv): should calculate Float(x/y), not
+ Float(x)/Float(y).
+
+Wed Jun 17 16:57:40 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * load.c (rb_f_require): RDoc updated. a patch from Run Paint Run
+ Run in [ruby-core:23833].
+
+ * load.c (rb_mod_autoload): ditto. [ruby-core:23835]
+
+Wed Jun 17 14:37:18 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * sample/test.rb (valid_syntax?): skips BOM. [ruby-dev:38666]
+
+ * test/ruby/test_system.rb (TestSystem#valid_syntax?): ditto.
+
+Wed Jun 17 13:54:18 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ext/strscan/strscan.c (Init_strscan): remove obsolete
+ matchedsize method, use matched_size instead. [ruby-dev:38591]
+
+Wed Jun 17 12:37:37 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * thread.c (ruby_thread_stack_overflow): call rb_exc_raise() on
+ stack overflows in the signal handler, if sigaltstack is
+ available. On stack overflow (and with sigaltstack), the signal
+ handler is more likely to have room to create an exception
+ object. [ruby-core:23813]
+
+Wed Jun 17 08:10:38 2009 Koichi Sasada <ko1@atdot.net>
+
+ * ext/objspace: added. objspace library extends some methods to
+ ObjectSpace module.
+
+Wed Jun 17 08:14:01 2009 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * complex.c (nucomp_coerce): accepts Complex instances.
+
+ * rational.c (nurat_coerce): accepts Rational
+ instances. [ruby-core:23859]
+
+Wed Jun 17 07:36:22 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * lib/webrick/httputils.rb (parse_form_data): escape boundary of
+ multipart/form-data when embed in regexp.
+
+Wed Jun 17 07:24:26 2009 Koichi Sasada <ko1@atdot.net>
+
+ * array.c (rb_ary_memsize): added.
+
+ * io.c (rb_io_memsize): added.
+
+ * regcomp.c (onig_memsize): added.
+
+ * string.c (rb_str_memsize): added.
+
+ * transcode.c (rb_transcoding_memsize, rb_econv_memsize): added.
+
+ * variable.c (rb_geneic_ivar_memsize): added.
+
+Wed Jun 17 07:04:33 2009 Koichi Sasada <ko1@atdot.net>
+
+ * iseq.c (iseq_memsize): added. Use RTypedData instead of RData
+ for ISeq.
+
+ * vm.c (env_memsize, vm_memsize, thread_memsize): added. Use
+ RTypedData instead of RData for Env, VM, Thread.
+
+Wed Jun 17 06:48:28 2009 Koichi Sasada <ko1@atdot.net>
+
+ * st.c, include/ruby/st.h (st_memsize): added. This function returns
+ the memory usage of st_table.
+
+Wed Jun 17 06:19:06 2009 Koichi Sasada <ko1@atdot.net>
+
+ * include/ruby/ruby.h: New structure RTypedData, added.
+ This structure includes more explicit type information for
+ T_DATA objects. If RData(obj)->dfree is immediate value `1' on
+ T_DATA object obj, obj is needed to be accessed with RTYPEDDATA(obj)
+ instead of RDATA(obj). A RTypedData structure points the structure
+ rb_typed_data_t. rb_typed_data_t includes information such as the
+ type name of this data, mark and free function what RData includes,
+ and memsize function show how data consuming the memory size.
+ Note that you do not need any change existing T_DATA objects.
+ If you use RDataType instead of RData on T_DATA object,
+ you can specify explicit type information.
+
+ * gc.c (rb_data_typed_object_alloc, rb_objspace_data_type_memsize,
+ rb_objspace_data_type_name): added.
+
+Wed Jun 17 06:14:23 2009 Koichi Sasada <ko1@atdot.net>
+
+ * gc.c: fix indent.
+
+Wed Jun 17 06:05:03 2009 Koichi Sasada <ko1@atdot.net>
+
+ * gc.c (rb_objspace_each_objects): New C API, added.
+
+Wed Jun 17 00:31:30 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * test/ruby/test_argf.rb (TestArgf#test_skip): updated test
+ according to clarified behavior.
+
+Tue Jun 16 22:47:37 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * io.c (fptr_finalize): revert last change. [ruby-dev:38648]
+
+ * io.c (fptr_finalize): skip close(2) for fd 0,1,2.
+
+Tue Jun 16 20:07:09 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * transcode.c (transcode_restartable0): refix can't build with VC9.
+
+Tue Jun 16 16:09:59 2009 TAKANO Mitsuhiro (takano32) <tak@no32.tk>
+
+ * parse.y (parser_read_escape, parser_tokadd_escape):
+ replace scan_oct as ruby_scan_oct.
+
+Tue Jun 16 06:40:31 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * io.c (fptr_finalize): should close stdin/stdout/stderr when
+ closed explicitly. [ruby-core:23853]
+
+ * io.c (argf_skip): should close only when current_file is available.
+
+Tue Jun 16 01:50:02 2009 Tanaka Akira <akr@fsij.org>
+
+ * vm_eval.c (rb_call0): refine exception message for hidden objects.
+
+Mon Jun 15 22:35:31 2009 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * bignum.c (rb_big2db): (-Float::MAX.to_i*2).to_f should return
+ -HUGE_VAL (-Infinity).
+
+Mon Jun 15 18:48:41 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * io.c (argf_each_line): should return self. [ruby-core:23852]
+
+ * io.c (argf_each_byte, argf_each_char): ditto.
+
+Mon Jun 15 17:48:42 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * gc.c (os_obj_of): invoke garbage collection before iteration, to
+ avoid accessing half recycled object references. [ruby-dev:38613]
+
+Mon Jun 15 11:04:30 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * .gdbinit (rp, iseq): load dummy_gdb_enums on demand.
+ [ruby-dev:38606]
+
+Sun Jun 14 14:57:57 2009 Koichi Sasada <ko1@atdot.net>
+
+ * thread.c, vm_eval.c: add Thread.backtrace.
+
+ * test/ruby/test_thread.rb: add a test.
+
+Sun Jun 14 13:58:32 2009 Koichi Sasada <ko1@atdot.net>
+
+ * transcode.c (transcode_restartable0): revert last commit because
+ this change cause SEGV at test-all.
+
+Sun Jun 14 10:49:18 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * file.c (rb_find_file_ext, rb_find_file): canonicalize absolute
+ paths. [ruby-core:23845]
+
+ * file.c (rb_file_size): added rdoc. a patch from Run Paint Run
+ Run at [ruby-core:23839].
+
+Sun Jun 14 07:53:26 2009 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * complex.c (nucomp_fdiv): use fdiv recursively.
+
+ * complex.c (nucomp_expt): reduced code.
+
+Sun Jun 14 03:37:09 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * enc/trans/utf8_mac.trans: remove wrong optimization.
+
+Sun Jun 14 01:53:00 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * transcode.c (transcode_restartable0): can't build with VC9.
+
+Sun Jun 14 01:23:41 2009 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * rational.c (nurat_to_f): use fdiv.
+
+Sat Jun 13 15:03:41 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * load.c (load_lock): show backtrace at circular require.
+
+ * load.c (rb_provide): assumes us-ascii only.
+
+ * load.c (rb_require_safe): FilePathValue() implies rb_str_new4().
+
+ * load.c (rb_mod_autoload): try conversion to path like as
+ require. [ruby-core:23834]
+
+Sat Jun 13 09:58:26 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * marshal.c (r_ivar): should not set internal encoding ivar as an
+ ordinary ivar. [ruby-dev:38596]
+
+Sat Jun 13 07:08:40 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * vm_eval.c (rb_f_local_variables): now returns symbols. a patch from
+ Run Paint Run Run at [ruby-core:23828].
+
+Sat Jun 13 07:06:54 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * vm_eval.c (rb_f_catch): updated rdoc about generalized argument,
+ and the case without arguments. [ruby-core:23827]
+
+Sat Jun 13 06:50:31 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/net/protocol.rb (Net::BufferedIO#rbuf_fill): TimeoutError is
+ obsolete, use Timeout::Error instead. [ruby-core:23821]
+
+Sat Jun 13 06:45:46 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * vm_eval.c (rb_f_throw): fixed rdoc about exception.
+ [ruby-core:23824]
+
+Fri Jun 12 14:56:50 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * file.c (file_expand_path): associate the input encoding when
+ copying an absolute path. [ruby-dev:38594]
+
+Fri Jun 12 02:41:21 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * string.c (str_replace_shared): shared target must be frozen.
+ [ruby-core:23727]
+
+Thu Jun 11 21:05:09 2009 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * lib/cmath.rb (exp): omitted redundant function call.
+
+Thu Jun 11 17:49:33 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/bigdecimal/bigdecimal.c (gfCheckVal): never used.
+
+ * ext/bigdecimal/bigdecimal.c (VpInit): fixed format modifiers.
+
+ * ext/bigdecimal/bigdecimal.c (VPrint): constified.
+
+Thu Jun 11 15:27:17 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/prime.rb: documentation typo fixed. a patch from okkez.
+ [ruby-dev:38586]
+
+Wed Jun 10 18:15:17 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * dir.c (dir_s_getwd): directory path's encoding should be filesystem's
+ one.
+
+ * lib/tmpdir.rb: ditto (but not finished yet.)
+
+Wed Jun 10 06:28:15 2009 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems*: Upgrade to RubyGems 1.3.4 r2223.
+
+Tue Jun 9 22:38:09 2009 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * lib/cmath.rb (log10): raised exception when the given number is
+ a negative real.
+
+Tue Jun 9 15:13:14 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * dir.c (dir_s_glob): fixed rdoc. a patch from Joseph Pecoraro a
+ [ruby-core:23767].
+
+ * dir.c (sys_warning): get rid of type-punning function cast.
+
+ * dir.c (ruby_glob0): get rid of possible overflow.
+
+Tue Jun 9 10:58:48 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * Makefile.in, win32/Makefile.sub (RMALL): need for distclean-rdoc.
+
+Tue Jun 9 01:07:33 2009 Koichi Sasada <ko1@atdot.net>
+
+ * thread.c: rename functions which require a parameter
+ "rb_thread_t *", the prefix to be rb_threadptr_ instead of
+ rb_thread_.
+
+ * thread.c (rb_thread_add_event_hook(), rb_thread_remove_event_hook):
+ change the parameter type from rb_thread_t * to VALUE.
+
+ * eval.c, eval_error.c, eval_intern.h, signal.c, vm_core.h, vm_eval.c:
+ ditto.
+
+ * include/ruby/intern.h: remove decl of rb_thread_signal_raise() and
+ rb_thread_signal_exit().
+
+Mon Jun 8 05:07:41 2009 Koichi Sasada <ko1@atdot.net>
+
+ * thread_pthread.c (rb_thread_create_timer_thread): print fatal error
+ message to stderr instead of using rb_bug().
+
+ * KNOWNBUGS.rb, bootstraptest/test_fork.rb: move a fixed test.
+
+Sun Jun 7 22:44:20 2009 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * lib/cmath.rb (log): avoided redundant expression.
+
+Sat Jun 6 02:49:05 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * hash.c (rb_hash_reject_bang): always check frozen status.
+ [ruby-core:23715]
+
+ * hash.c (rb_hash_update): ditto.
+
+ * hash.c (rb_hash_reject_bang): call rb_hash_foreach() directly.
+
+ * hash.c (rb_hash_update_i): call st_insert() directly.
+
+ * hash.c (rb_hash_update_block_i): ditto.
+
+Fri Jun 5 07:12:32 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/mkmf.rb (#link_command): should dup CONFTEST_C which is
+ frozen. ref [ruby-core:23675]. [ruby-core:23702]
+
+Thu Jun 4 02:25:51 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/base64.rb: typo fixed. a patch from okkez. [ruby-dev:38564]
+
+Wed Jun 3 09:03:23 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * enum.c (enum_first): should check negative length.
+
+Tue Jun 2 17:32:40 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * enum.c (first_i): Enumerator#first should consume only what is
+ needed. a patch from Marc-Andre Lafortune. [ruby-core:23661]
+
+ * enum.c (enum_first): call to_int once for an argument. based on
+ a patch from Marc-Andre Lafortune.
+
+Tue Jun 2 13:27:21 2009 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
+
+ * test/ripper/test_filter.rb: add tests. see [ruby-dev:37856]
+
+Tue Jun 2 07:44:43 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (rb_str_gsub_bang): modify check at the beginning.
+ [ruby-core:23662] ref [ruby-core:23657]
+
+ * string.c (rb_str_rstrip_bang): ditto. [ruby-core:23657]
+
+ * string.c (rb_str_chop_bang): ditto.
+
+ * string.c (rb_str_chomp_bang): ditto.
+
+ * string.c (rb_str_reverse_bang): modify check added. [ruby-core:23671]
+
+Mon Jun 1 11:21:29 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * cont.c (cont_capture, fiber_store): reraise transferred error.
+
+ * cont.c (fiber_switch): transfers dead fiber error to the previous
+ or root fiber if the current fiber is dead. [ruby-core:23651]
+
+Mon Jun 1 10:41:41 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * include/ruby/intern.h (rb_exc_new2): optimization for literal.
+
+Mon Jun 1 07:20:02 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ext/bigdecimal/bigdecimal.c (BigDecimal_to_f): returns Inf if
+ exp is bigger than DBL_MANT_DIG.
+
+Sun May 31 23:28:00 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/mkmf.rb (create_makefile): checks for duplication of source
+ files.
+
+Sun May 31 23:26:36 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * file.c (istrailinggarbage): fixed typo.
+
+Fri May 29 17:10:08 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * struct.c (Init_Struct): made #to_s an alias to #inspect to
+ reduce the result of recursive struct. a patch from ujihisa a
+ [ruby-dev:38554].
+
+Fri May 29 17:08:23 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * hash.c (Init_Hash): made #to_s an alias to #inspect to reduce
+ the result of recursive hash. a patch from ujihisa a
+ [ruby-core:23601]. [ruby-dev:38555]
+
+Fri May 29 09:30:00 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * enum.c (collect_all): checks interrupts. [ruby-core:23594]
+
+Thu May 28 07:39:22 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (THREAD_MODEL): reject unknown value and checks
+ pthread.h only when pthread. [ruby-core:23577]
+
+Thu May 28 03:47:46 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * sample/optparse/opttest.rb: typo fixed. [ruby-dev:38544]
+
+Thu May 28 03:43:10 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * time.c (time_strftime): update RDoc according to info from
+ Marc-Andre Lafortune in [ruby-core:23575]. [ruby-core:23564]
+
+Thu May 28 02:40:54 2009 Tanaka Akira <akr@fsij.org>
+
+ * lib/uri: don't set @parser if it is DEFAULT_PARSER for marshaling
+ URI objects between Ruby 1.8 and Ruby 1.9.
+ [ruby-dev:38377]
+
+Wed May 27 23:00:38 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (struct parser_params): lex_gets_ptr should be long.
+
+Wed May 27 18:00:15 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * bignum.c (bigand_int): new function to calculate bignum and
+ fixnum without allocating internal bignum.
+
+ * bignum.c (bigor_int): ditto.
+
+ * bignum.c (bigxor_int): ditto.
+
+ * bignum.c (bigand_int): even less object allocation.
+
+Wed May 27 14:29:55 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * marshal.c (w_encoding): more compact encoding information for
+ US-ASCII and UTF-8. [incompatible] [experimental]
+
+ * marshal.c (r_ivar): restore :E encoding information.
+
+Wed May 27 14:08:39 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * st.c (st_insert2): new function with processing new key,
+ e.g. copy.
+
+ * hash.c (rb_hash_aset): use st_insert2() to reduce redundant
+ st_lookup calls.
+
+Wed May 27 02:31:38 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * ext/readline/readline.c (readline_getc): the function for
+ rl_getc_function must be a byte function.
+ so use getbyte method. [ruby-dev:38535]
+
+Tue May 26 14:24:17 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * gc.c: fixed types.
+
+ * common.mk (bignum.o, numeric.o): depend on util.h.
+
+ * bignum.c, marshal.c: fixed types.
+
+ * numeric.c (infinite_value): use ruby_div0.
+
+ * include/ruby/util.h (ruby_div0): moved from marshal.c.
+
+Tue May 26 11:01:41 2009 TAKANO Mitsuhiro (takano32) <tak@no32.tk>
+
+ * lib/mkmf.rb: use map! to replace strings in $objs array.
+
+Tue May 26 10:12:08 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * bignum.c (bignew_1): inline memory allocation.
+
+ * bignum.c (bigtrunc): call rb_big_resize() only when needed.
+
+ * bignum.c (bigfixize): declare inline.
+
+Tue May 26 05:39:28 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * include/ruby/ruby.h (FilePathValue): prevent from GC.
+
+ * include/ruby/ruby.h (NUM2LONG): added GCC specific optimization.
+
+Tue May 26 03:41:29 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * time.c (rb_gmtime, rb_localtime): gmtime and localtime return
+ NULL on error. [ruby-core:23551]
+
+Tue May 26 03:38:37 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * string.c (rb_str_each_char, rb_str_each_codepoint): string
+ length must be long.
+
+Mon May 25 13:27:32 2009 TAKANO Mitsuhiro (takano32) <tak@no32.tk>
+
+ * lib/mkmf.rb: dont use gsub! method for frozen string.
+
+Mon May 25 11:47:06 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * tool/mkconfig.rb, tool/instruby.rb: removed redundant code.
+
+Mon May 25 09:34:09 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (rb_str_hash): avoid calling rb_enc_str_asciionly_p().
+
+ * string.c (rb_str_replace): avoid redundant calling rb_str_new4().
+
+ * string.c (str_replace): factor out replacement from
+ rb_str_replace() without type check nor discarding the
+ destination contents.
+
+Mon May 25 08:06:52 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * string.c (rb_str_partition): should use the converted result. a
+ patch from Marc-Andre Lafortune at [ruby-core:23540].
+
+ * string.c (rb_str_rpartition): ditto.
+
+Mon May 25 06:25:38 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * test/ruby/test_hash.rb (TestHash::test_equal2): recursive hashes
+ are handled properly now. ref: [ruby-core:23402]
+
+ * test/ruby/test_m17n.rb (TestM17N#test_sprintf_p): test fixed
+
+Mon May 25 05:32:19 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/cgi/core.rb (CGI::HTTP_STATUS): typo fixed. a patch from
+ Nobuhiro IMAI. [ruby-dev:38538]
+
+Sun May 24 22:48:17 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * thread.c (rb_exec_recursive_paired): new function for proper
+ handling of recursive arrays. [EXPERIMENTAL] [ruby-core:23402]
+
+ * array.c (rb_ary_equal, rb_ary_eql, rb_ary_cmp): use above.
+
+ * hash.c (hash_equal): ditto.
+
+Sun May 24 22:39:33 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * error.c (syserr_initialize): errno is int.
+
+Sun May 24 00:52:54 2009 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * configure.in ($ridir): new configuration. [ruby-core:23520].
+ c.f. [ruby-core:23519].
+
+ (--with-ridir): new configure option.
+
+ * tool/instruby.rb (:doc, :rdoc): uses $ridir instead of
+ a fixed path.
+
+ * lib/rdoc/ri/paths.rb: follows $ridir.
+
+ * Makefile.in: removes RIDATADIR which is no longer used.
+
+ * bcc32/Makefile.sub: generates the 'ridir' entry for RbConfig.
+ removes RIDATADIR which is no longer used.
+
+ * win32/Makefile.sub: ditto.
+
+Sat May 23 23:52:33 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (rb_str_each_char): return original string.
+ [ruby-core:23499]
+
+ * string.c (rb_str_each_codepoint): protect string from
+ modification.
+
+Sat May 23 21:48:58 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/dl/handle.c (rb_dlhandle_s_sym): added a method to access
+ using RTLD_NEXT. [ruby-dev:38152]
+
+ * ext/dl/handle.c (Init_dlhandle): added constants DEFAULT and
+ NEXT which correspond to RTLD_DEFAULT and RTLD_NEXT.
+
+Sat May 23 18:53:13 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/dl/lib/dl/cparser.rb (DL::CParser#parse_struct_signature):
+ splitting with regexp source string is obsolete. a patch from
+ Minwoo Lee at [ruby-core:23494].
+
+ * ext/dl/cptr.c (rb_dlptr_cmp): return signed value, and restrict
+ to Fixnum. [ruby-dev:38533]
+
+Fri May 22 23:22:53 2009 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * missing/vsnprintf.c (errno): [BUG] fixes a compilation
+ error on SIZEOF_LONG > SIZEOF_INT.
+ (BSD_vfprintf): ditto.
+
+Fri May 22 23:20:48 2009 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * spec/default.mspec: follows runruby.rb's move at r23542.
+
+Fri May 22 21:38:55 2009 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * NEWS: add Time#to_r.
+
+Fri May 22 20:29:01 2009 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * config.guess: moved into tool/.
+
+ * config.sub: ditto.
+
+ * install-sh: ditto
+
+ * configure.in: follows the moves.
+
+ * LEGAL: ditto.
+
+Fri May 22 20:10:18 2009 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * instruby.rb: moved into tool/.
+
+ * mkconfig.rb: ditto.
+
+ * rubytest.rb: ditto.
+
+ * runruby.rb: ditto.
+
+ * common.mk: follows the moves.
+
+ * configure.in: ditto.
+
+ * win32/Makefile.sub: ditto.
+
+Fri May 22 05:09:43 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * array.c (rb_ary_slice_bang): avoid call of rb_scan_args() unless
+ it's really necessary.
+
+Thu May 21 22:17:52 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * template/id.h.tmpl, id.h (enum ruby_method_ids): added some IDs.
+
+ * debug.c (dummy_gdb_enums): added enum ruby_method_ids.
+
+ * .gdbinit (rp): improved output of Symbol.
+
+Thu May 21 21:07:22 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * missing/vsnprintf.c (BSD_vfprintf): support for 'z' modifier.
+
+Thu May 21 18:55:33 2009 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * gem_prelude.rb (Gem.default_dir and misc.): use rubylibprefix.
+ follows the change in r23368.
+
+Thu May 21 12:07:43 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * include/ruby/ruby.h (RB_EVENT_HOOKS_HAVE_CALLBACK_DATA):
+ new macro for compatibility check.
+
+Thu May 21 01:43:40 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * include/ruby/ruby.h (rb_long2int, RARRAY_LENINT): check long to
+ cast to int. [ruby-dev:38508]
+
+ * struct.c, vm_eval.c, vm_insnhelper.c: use RARRAY_LENINT.
+
+Wed May 20 21:00:27 2009 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * rb_enc_get_index: allows an arbitrary RData as the argument but not
+ only what points a rb_encoding.
+
+Wed May 20 20:54:37 2009 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * spec/.gitignore: ignores rubyspec/ and mspec/.
+
+Wed May 20 19:41:44 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * struct.c (rb_struct_new): get rid of too large alloca.
+
+ * struct.c (rb_struct_hash): use long.
+
+Wed May 20 18:58:27 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * vm_eval.c, vm_insnhelper.c: argument number is restricted to
+ int, and fixed overflow.
+
+Wed May 20 18:34:30 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * enum.c (zip_ary): should use long.
+
+ * enumerator.c (inspect_enumerator): should use long.
+
+Wed May 20 09:18:44 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (rb_str_count): optimized for 1byte string count by
+ avoiding tr_setup_table().
+
+Wed May 20 06:25:29 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * encoding.c (rb_enc_fast_mbclen): faster mbclen for strings known
+ to be valid.
+
+ * string.c (enc_strlen): coderange specified version of
+ rb_enc_strlen(). use rb_enc_fast_mbclen() if coderange is 7bit
+ or valid.
+
+ * string.c (str_gsub): use rb_enc_fast_mbclen().
+
+ * string.c (rb_str_reverse, rb_str_split_m, rb_str_each_char,
+ scan_once): ditto.
+
+Wed May 20 06:20:05 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/tempfile.rb (Tempfile#unlink): close first for Windows. a
+ patch from Florian Frank. [ruby-core:23505]
+
+Wed May 20 00:13:38 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * encoding.c (rb_enc_codepoint_len): combine rb_enc_codepoint()
+ and rb_enc_codelen() in one function to reduce calls.
+
+ * encoding.c (rb_enc_codepoint): compatibility function.
+
+ * sprintf.c (rb_str_format): use rb_enc_codepoint_len().
+
+ * string.c (rb_str_inspect, rb_str_upcase_bang,
+ rb_str_downcase_bang, rb_str_capitalize_bang,
+ rb_str_swapcase_bang, trnext, tr_trans, rb_str_delete_bang,
+ rb_str_squeeze_bang, rb_str_count, rb_str_split_m,
+ rb_str_each_line, rb_str_each_codepoint, rb_str_lstrip_bang,
+ sym_printable): ditto.
+
+ * transcode.c (make_econv_exception): use rb_enc_mbc_to_codepoint()
+
+Wed May 20 00:05:52 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * vm_method.c (rb_attr): should preserve encoding info.
+ [ruby-dev:38498]
+
+Tue May 19 22:54:35 2009 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * time.c (time_minus): always return a Float. [ruby-dev:38446]
+
+ * time.c (time_to_r): new method. [ruby-dev:38461]
+
+Tue May 19 13:59:35 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * class.c (clone_method): add cast to remove warning from
+ rb_gc_write_barrier().
+
+Tue May 19 13:54:15 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * struct.c (struct_ivar_get): new function to avoid repeated
+ rb_intern() calls.
+
+ * struct.c (rb_struct_iv_get): use struct_ivar_get()
+
+ * struct.c (num_members): ditto.
+
+ * struct.c (rb_struct_s_members): ditto.
+
+ * class.c (rb_singleton_class): cache symbol to reduce calls to
+ rb_intern().
+
+Tue May 19 07:52:05 2009 Tanaka Akira <akr@fsij.org>
+
+ * test/test_time.rb: make tests timezone independent.
+ reported by zunda. [ruby-dev:38492]
+
+Mon May 18 21:40:11 2009 Tanaka Akira <akr@fsij.org>
+
+ * lib/pathname.rb (Pathname#sub): suppress a warning. [ruby-dev:38488]
+
+Sun May 17 23:23:14 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/mkmf.rb (SRC_EXT): should be flat.
+ http://twitter.com/_tad_/status/1825862632
+
+Sun May 17 23:05:05 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ruby.c (ruby_init_loadpath_safe): VARIABLE_LIBPATH is always
+ defined, see its value instead.
+
+Sun May 17 18:59:45 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * node.h (nd_line): NODE_LMASK is not needed.
+
+ * node.h (NOEX_SAFE): made int.
+
+Sun May 17 14:23:08 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * compile.c (rb_parse_in_eval): returns true in true eval, not in
+ main. [ruby-dev:38382]
+
+ * parse.y (program): inherits dvars in eval or main.
+
+Sun May 17 14:02:56 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ruby.c (ruby_script): sets also VM toplevel program name.
+
+ * ruby.c (process_options): no longer needs additional frame.
+
+ * vm.c (rb_vm_get_sourceline): should not access out of bound.
+
+Sun May 17 09:47:48 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ruby.c (cmdline_options_init): initialize encodings.
+
+ * ruby.c (add_modules, require_libraries, process_sflag):
+
+ * ruby.c (process_sflag): not process twice.
+
+ * ruby.c (moreswitches): get rid of possible overflow.
+
+Sun May 17 09:31:05 2009 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+
+ * ext/win32ole/win32ole.c (foletypelib_name): should return
+ encoded name corresponding to WIN32OLE.codepage.
+
+Sun May 17 09:02:56 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ruby.c (ruby_init_loadpath_safe): support for cygwin 1.7. see
+ [ruby-core:23241].
+ gets rid of possible buffer overflow with realpath().
+
+ * ruby.c (set_arg0): get rids of overrun.
+
+Sat May 16 18:38:32 2009 Kouhei Sutou <kou@cozmixng.org>
+
+ * lib/rss/parser.rb: add nil check.
+
+Sat May 16 18:36:01 2009 Kouhei Sutou <kou@cozmixng.org>
+
+ * test/rss/test_maker_atom_feed.rb: suppress warnings.
+
+Sat May 16 18:33:15 2009 Kouhei Sutou <kou@cozmixng.org>
+
+ * NEWS: add RSS::Maker.supported?(version).
+
+Sat May 16 18:26:42 2009 Kouhei Sutou <kou@cozmixng.org>
+
+ * lib/rss/parser.rb, test/test_parser_1.0.rb: fix foaf:Image
+ element causes parse error even if ignore_unknown_element mode.
+
+Sat May 16 18:14:19 2009 Kouhei Sutou <kou@cozmixng.org>
+
+ * lib/rss/maker.rb, lib/rss/maker/0.9.rb,
+ test/test_maker_*.rb: add RSS::Maker.supported?
+
+Sat May 16 18:12:39 2009 Kouhei Sutou <kou@cozmixng.org>
+
+ * lib/rss/content/*, lib/rss/dublincore/*: fix circular require.
+ * test/test_maker_atom_feed.rb,
+ test/test_maker_atom_entry.rb: suppress warnings.
+
+Sat May 16 18:07:17 2009 Kouhei Sutou <kou@cozmixng.org>
+
+ * lib/rss/maker/feed.rb, test/test_maker_atom_feed.rb:
+ remove needless codes.
+
+Sat May 16 18:05:07 2009 Kouhei Sutou <kou@cozmixng.org>
+
+ * lib/rss/maker/entry.rb: fix a typo.
+
+Sat May 16 18:02:57 2009 Kouhei Sutou <kou@cozmixng.org>
+
+ * lib/rss/maker/feed.rb, test/test_maker_atom_entry.rb,
+ test/test_maker_atom_feed.rb: fix duplicated dc:date.
+ Reported by Kazuhiro NISHIYAMA. Thanks!!! [ruby-list:46014]
+
+Sat May 16 18:02:16 2009 Kouhei Sutou <kou@cozmixng.org>
+
+ * lib/rss/maker/base.rb, lib/rss/maker/1.0.rb, lib/rss/maker/feed.rb,
+ test/rss/test_maker_1.0.rb, test/rss/test_maker_atom_feed.rb:
+ RSS 1.0 and Atom feed maker treat maker.channel.language as
+ maker.channel.dc_language.
+
+Sat May 16 17:57:39 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/dl/lib/dl/callback.rb (DL#remove_callback_internal): ignore
+ unbound function. [ruby-dev:38474]
+
+Sat May 16 17:51:11 2009 Kouhei Sutou <kou@cozmixng.org>
+
+ * sample/rss/rss_recent.rb, sample/rss/list_description.rb: use
+ UTF-8.
+
+Sat May 16 17:47:55 2009 Kouhei Sutou <kou@cozmixng.org>
+
+ * lib/rss/rss.rb, test/rss/test_version.rb (RSS::VERSION):
+ 0.2.5 -> 0.2.6.
+
+Sat May 16 17:26:04 2009 Narihiro Nakamura <authorNari@gmail.com>
+
+ * iseq.c (rb_iseq_clone): use longlife object and insert write barrier.
+
+ * vm_insnhelper.c (vm_cref_push): ditto.
+
+ * vm_insnhelper.h (COPY_CREF): insert write barrier.
+
+Sat May 16 13:49:24 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * variable.c (rb_autoload_load): gets rid of false warning.
+ [ruby-core:23466]
+
+Sat May 16 10:59:54 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * sample/drb/dhasenc.rb: add magic comment for encoding.
+
+ * sample/mine.rb: ditto.
+
+ * ext/tk/sample/tcltklib/sample1.rb: ditto.
+
+Sat May 16 09:49:05 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (magic_comment_encoding): ignores unused emacs-style
+ encoding comment, as like Vim styles. [ruby-core:23470]
+
+Sat May 16 09:30:14 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * defs/keywords (reserved_word): made inline function static.
+ [ruby-core:23210]
+
+ * parse.y (rb_reserved_word): ordinary function for ripper.
+
+Sat May 16 09:19:16 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (magic_comment_encoding): use rb_compile_warning() to
+ show the currently parsing file name. [ruby-core:23469]
+
+Sat May 16 09:03:29 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (ruby_version): now version.h includes
+ include/ruby/version.h, so need to tell to cpp to see
+ $(srcdir)/include. [ruby-core:23468]
+
+Fri May 15 17:35:33 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * array.c (rb_ary_shift, rb_ary_shift_m): clears unused elements.
+ [ruby-dev:38448]
+
+Fri May 15 15:15:12 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * variable.c (rb_autoload_load): checks if iv_tbl is valid.
+ [ruby-dev:38456]
+
+Fri May 15 11:17:48 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/setup.mak (-version-): now version.h includes
+ include/ruby/version.h, so need to tell to cpp to check
+ $(srcdir)/include.
+ reported by KIMURA Koichi at http://www.kt.rim.or.jp/%7ekbk/zakkicho/09/zakkicho0905b.html#D20090514-6
+
+Thu May 14 16:13:32 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/etc/etc.c (etc_getpwuid): use rb_uid_t. [ruby-dev:38443]
+
+ * ext/stringio/stringio.c (strio_ungetbyte): encoding should no
+ be effective.
+
+Thu May 14 10:17:45 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * sample/test.rb (valid_syntax?): defaults to us-ascii.
+
+Wed May 13 22:34:31 2009 Narihiro Nakamura <authorNari@gmail.com>
+
+ * gc.c: add longlife garbage collection. [ruby-dev:38423]
+ (NORMAL_HEAPS_USED): new macro.
+ (LONGLIFE_ALLOCATE_HEAPS_MIN): ditto.
+ (add_longlife_heaps_slot): new function.
+ (rb_newobj_from_longlife_heap): ditto.
+ (rb_newobj_longlife): ditto.
+ (rb_node_newnode_longlife): ditto.
+ (rb_gc_write_barrier): ditto.
+ (remembered_set_recycle): ditto.
+ (rb_gc_mark_remembered_set): ditto.
+ (clear_mark_longlife_heaps): ditto.
+ (gc_sweep_for_longlife): ditto.
+ (assign_heap_slot): new argument to longlife heaps slot.
+ (add_freelist): ditto.
+ (gc_sweep): avoid longlife heap slot. set longlife_collection
+ flag at add heap.
+ (rb_gc_force_recycle): avoid mark object and remembered_set
+ object.
+ (garbage_collect): add longlife collection.
+ (rb_gc_start): invoke longlife collection.
+ (gc_profile_record_get): for longlife collection profile.
+ (gc_profile_result): ditto.
+
+ * include/ruby/intern.h (rb_gc_write_barrier): declared.
+
+ * include/ruby/ruby.h (FL_REMEMBERED_SET): renamed from FL_RESERVED.
+
+ * debug.c (FL_REMEMBERED_SET): ditto.
+
+ * insns.def (setinlinecache): insert write barrier.
+
+ * vm_insnhelper.c (vm_method_search): ditto.
+
+ * set_relation (set_relation): use longlife object.
+
+ * vm.c (vm_define_method): ditto.
+
+ * vm_core.h (NEW_INLINE_CACHE_ENTRY): ditto.
+
+ * vm_method.c (rb_add_method): ditto.
+
+ * class.c (rb_add_method): ditto.
+
+ * node.h (NEW_NODE_LONGLIFE): new macro.
+ (rb_node_newnode_longlife): declared.
+
+Wed May 13 15:23:18 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * include/ruby/version.h: extracted the extensions interface and
+ the never-changeable info.
+
+Wed May 13 03:20:47 2009 Tanaka Akira <akr@fsij.org>
+
+ * time.c (time_init_1): unused variable removed.
+
+Tue May 12 21:03:02 2009 Tanaka Akira <akr@fsij.org>
+
+ * time.c: support fixed UTC offset. [ruby-dev:38326]
+ (leap_year_v_p): new macro.
+ (TIME_FIXOFF_P): new macro.
+ (TIME_SET_FIXOFF): new macro.
+ (time_init_0): renamed from time_init.
+ (time_set_utc_offset): new function.
+ (vtm_add_offset): new function.
+ (utc_offset_arg): new function.
+ (time_init_1): new function.
+ (time_init): call time_init_0 or time_init_1 according argc.
+ (validate_utc_offset): new function.
+ (time_localtime_m): new function.
+ (time_fixoff): new function.
+ (time_getlocaltime): take optional UTC offset argument.
+ (time_get_tm): support fixed UTC offset time.
+ (Init_Time): make Time#{initialize,localtime,getlocal} varargs.
+
+ * strftime.c (rb_strftime): vtm->zone can be NULL now.
+
+Tue May 12 18:23:40 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * yarvtest: removed because it's outdated.
+
+Mon May 11 21:46:20 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * parse.y: add semicolons to some grammar rules not terminated
+ with them. a patch from Dave B in [ruby-core:23422].
+
+Mon May 11 20:08:33 2009 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
+
+ * io.c (Init_IO): add constant File::NOATIME. [ruby-core:23194]
+
+Mon May 11 13:08:30 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * mkconfig.rb (rubylibdir): use rubylibprefix. [ruby-dev:38426]
+
+Mon May 11 08:37:04 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ext/bigdecimal/bigdecimal.c (BigDecimal_coerce): support
+ coercing into Rational. [ruby-core:23415]
+
+Mon May 11 04:39:45 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/net/smtp.rb (Net::SMTP#check_auth_args): should not change
+ number of methods for the sake of compatibility.
+
+Sun May 10 11:36:11 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/dl/cfunc.c (rb_dlcfunc_instance_p): new function to check if
+ the argument is an instance of DL::CFunc.
+
+ * ext/dl/cptr.c (rb_dlptr_initialize, rb_dlptr_s_malloc): checks
+ if DL::CFunc. [ruby-dev:38403].
+
+ * ext/dl/lib/dl/cparser.rb (DL::CParser#parse_signature): strips
+ spaces. based on a patch from Takashi Tamura in [ruby-dev:38398].
+
+ * ext/dl/lib/dl/value.rb (DL::ValueUtil#wrap_arg): block must be
+ given if arg is not bound. [ruby-dev:38404]
+
+ * ext/dl/cfunc.c (rb_dlcfunc_instance_p): new function to check if
+ the argument is an instance of DL::CFunc.
+
+Sat May 9 19:57:00 2009 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
+
+ * test/ruby/test_float.rb (TestFloat#test_sleep_with_Float): add a
+ test. see [ruby-core:23282]
+
+Sat May 9 19:23:46 2009 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * lib/date.rb: use subsec instead of nsec.
+
+Sat May 9 12:19:49 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * hash.c: 3rd argument of rb_hash_foreach() is VALUE.
+
+ * hash.c (rb_any_hash, recursive_hash): use VALUE for hash.
+
+Sat May 9 11:14:50 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * vm_eval.c (rb_f_catch): gets rid of issue with gcc 4.4. a patch
+ from Alexey Froloff in [ruby-core:23398]. [ruby-core:22924]
+
+Fri May 8 19:38:54 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/mkmf.rb (try_link0): removes waste dSYM directories left
+ when debug and universal-binary are enabled.
+
+ * lib/mkmf.rb (check_sizeof): fixed wrong recurring result for
+ intrinsic types.
+
+Fri May 8 10:14:08 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * Makefile.in, configure.in, win32/Makefile.sub (RUBY_BASE_NAME):
+ program base name. [ruby-dev:38241]
+
+ * configure.in (--with-soname): base name of shared library.
+ [ruby-dev:38290]
+
+Fri May 8 10:07:02 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * array.c (rb_ary_flatten_bang): clears temporary array.
+
+Fri May 8 02:30:14 2009 Akinori MUSHA <knu@iDaemons.org>
+
+ * lib/set.rb (SortedSet#add): Do not require each newly added
+ element to be Comparable but to respond to <=>. [ruby-dev:38371]
+
+Thu May 7 21:42:51 2009 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * test/ruby/test_rubyoptions.rb (test_indentation_check): add a test
+ for indentation check. [ruby-dev:38382]
+
+Thu May 7 16:40:09 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * array.c (rb_ary_flatten_bang): returns nil if nothing changed.
+ a patch from Marc-Andre Lafortune in [ruby-core:23382].
+
+Thu May 7 14:26:14 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * array.c (rb_ary_sample): negative sample number is invalid.
+ [ruby-core:23374]
+
+Thu May 7 14:16:24 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * string.c, include/ruby/encoding.h: fixed types.
+
+ * include/ruby/encoding.h (rb_enc_nth): long is used for index.
+
+Thu May 7 14:01:55 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * range.c (r_le): fixed types.
+
+ * range.c (range_eql): fixed rdoc.
+
+Thu May 7 13:10:25 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * io.c (pipe_open): should be rb_pid_t.
+
+Wed May 6 16:50:20 2009 Tanaka Akira <akr@fsij.org>
+
+ * math.c (math_gamma): use a table for positive small integers.
+
+Wed May 6 09:27:04 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * README.ja: code for THINK_C does not exist already. [Bug #1435]
+
+Wed May 6 05:33:59 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (CFLAGS, CXXFLAGS): strips extra spaces.
+
+Tue May 5 11:29:07 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * tool/ifchange: Fix: arguments which begin with minus sign may
+ parsed as options. Because of older systems, don't use --
+ but use parentheses.
+
+Tue May 5 10:42:28 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * ext/json: Update to JSON 1.1.4.
+
+Tue May 5 07:22:37 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * transcode.c: NOMAP is now multibyte direct map.
+
+ * transcode.c: remove ASIS.
+
+ * transcode_data.h: ditto.
+
+ * tool/transcode-tb (ActionMap#generate_info): remove :asis.
+
+ * tool/transcode-tb (ActionMap#generate_info): add :nomap0.
+
+ * enc/trans/utf8_mac.trans: replace :asis by :nomap0.
+
+Sat May 2 22:53:02 2009 Akinori MUSHA <knu@iDaemons.org>
+
+ * lib/set.rb (SortedSet): Fix document. [Bug #1429]
+
+Sat May 2 10:34:29 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * enc/trans/utf8_mac-tbl.rb: don't use Unicode escape.
+
+ * enc/trans/utf8_mac.trans: follow above.
+
+Sat May 2 09:19:40 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * array.c (Init_Array): made #to_s an alias to #inspect to reduce
+ the result of recursive array. a patch from ujihisa at
+ [ruby-dev:38362]
+
+Fri May 1 16:50:05 2009 Akinori MUSHA <knu@iDaemons.org>
+
+ * lib/set.rb (Set#merge): Only directly use the passed objects
+ @hash instance variable when self and the passed object are
+ instances of the same class. [Bug #118]
+
+Fri May 1 16:44:11 2009 Akinori MUSHA <knu@iDaemons.org>
+
+ * lib/set.rb (SortedSet#add): Do not let an incomparable object
+ in. [Bug #118]
+
+Fri May 1 13:18:01 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval_intern.h (_longjmp): never return. see [ruby-core:23241]
+
+Fri May 1 01:31:19 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/extmk.rb: use RbConfig instead of Config.
+
+ * instruby.rb: ditto.
+
+ * lib/rubygems.rb: ditto.
+
+ * test/rubygems/test_config.rb: ditto.
+
+Thu Apr 30 21:23:30 2009 Tanaka Akira <akr@fsij.org>
+
+ * runruby.rb: use RbConfig::CONFIG instead of Config::CONFIG.
+
+ * spec/default.mspec: ditto.
+
+ * yarvtest/yarvtest.rb: ditto.
+
+ * instruby.rb: ditto.
+
+ * benchmark/report.rb: ditto.
+
+ * benchmark/runc.rb: ditto.
+
+ * tool/eval.rb: ditto.
+
+ * test/rubygems/test_gem.rb: ditto.
+
+ * test/rubygems/test_config.rb: ditto.
+
+ * test/rubygems/test_gem_platform.rb: ditto.
+
+Thu Apr 30 18:18:13 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/net/http.rb: documentation typo fixed. [ruby-core:23335]
+
+Thu Apr 30 15:27:49 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * enc/trans/utf8_mac.trans: get rid of a 1.9 feature for cross
+ compile.
+
+Thu Apr 30 11:35:30 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * encoding.c (rb_filesystem_encoding): Change filesystem_encoding of
+ Mac OS X to UTF-8.
+
+Wed Apr 29 21:23:40 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * enc/iso_2022_jp.h: add CP50221.
+
+ * enc/trans/iso2022.trans: add converter for CP50221.
+
+Wed Apr 29 15:22:26 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * file.c (rb_file_join): recursive array has no meaning as path
+ name. [ruby-core:23329]
+
+Tue Apr 28 19:09:45 2009 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
+
+ * test/test_timeout.rb (TestTimeout#test_timeout): add a test.
+
+Tue Apr 28 07:13:48 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/pp.rb (Struct#pretty_print): coerce to a string since
+ anonymous class has name no longer. [ruby-dev:38349]
+
+Mon Apr 27 16:47:12 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (ruby_version): uses sed instead of grep if the
+ result is need, to get rid of GREP_OPTIONS. [ruby-dev:38336]
+
+Mon Apr 27 01:25:11 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/readline/readline.c (readline_getc): use rl_getc_function if
+ possible, to get rid of hang up at EOF without a newline.
+
+Sun Apr 26 23:19:32 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * enc/trans/utf8_mac.trans: Add converter for UTF8-MAC.
+
+ * enc/trans/utf8_mac-tbl.rb: ditto.
+
+ * test/ruby/test_econv.rb: tests for above.
+
+Sun Apr 26 22:17:02 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * tool/transcode-tb (ActionMap#each_firstbyte):
+ if :asis collides other mappings, use another.
+
+ * tool/transcode-tb (ActionMap#generate_info):
+ add :asis for ASIS.
+
+Sun Apr 26 21:59:43 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * transcode.c (ASIS): added for multi byte direct map.
+
+ * transcode.c (transcode_restartable0): ditto.
+
+Sun Apr 26 20:33:12 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * tool/transcode-tb (ActionMap#generate_node):
+ Use ActionMap#gennode instead of generate_node
+ because of initialization.
+
+Sun Apr 26 20:21:39 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * .gitignore: added.
+
+Sun Apr 26 20:17:24 2009 Tanaka Akira <akr@fsij.org>
+
+ * lib/rake.rb: use RbConfig::CONFIG instead of Config::CONFIG.
+
+ * lib/rbconfig/datadir.rb: ditto.
+
+Sun Apr 26 19:30:29 2009 Tanaka Akira <akr@fsij.org>
+
+ * time.c (time_arg): unused variable removed.
+
+Sun Apr 26 18:35:32 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * io.c (io_reopen): keeps pathv for prep_stdio. [ruby-dev:38131]
+
+Sun Apr 26 15:13:09 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/optparse.rb (OptionParser#parse_in_order): do not make an
+ option from non-option argument. [ruby-dev:38333]
+
+Sat Apr 25 19:11:13 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (ac_cv_func_daemon): use daemon(3) only on *BSD.
+
+ * process.c (proc_daemon): double fork to ensure not having ctty.
+ [ruby-core:23305]
+
+Sat Apr 25 16:19:48 2009 Tanaka Akira <akr@fsij.org>
+
+ * time.c (month_arg): extracted from time_arg.
+ (validate_vtm): ditto.
+
+Sat Apr 25 16:03:21 2009 Tanaka Akira <akr@fsij.org>
+
+ * time.c (TIME_COPY_GMT): new macro.
+ (time_s_at): use TIME_COPY_GMT.
+ (time_succ): ditto.
+
+Sat Apr 25 15:54:04 2009 Tanaka Akira <akr@fsij.org>
+
+ * time.c (time_mload): use TIME_SET_UTC.
+
+Sat Apr 25 15:47:54 2009 Tanaka Akira <akr@fsij.org>
+
+ * time.c (time_get_tm): take time_object instead of gmt.
+
+Sat Apr 25 15:39:44 2009 Tanaka Akira <akr@fsij.org>
+
+ * time.c (time_succ): refactored to avoid gmt variable.
+ (strftimev): use TIME_UTC_P.
+ (time_strftime): ditto.
+
+Sat Apr 25 15:21:33 2009 Tanaka Akira <akr@fsij.org>
+
+ * time.c (TIME_UTC_P): new macro.
+ (TIME_SET_UTC): ditto.
+ (TIME_LOCALTIME_P): ditto.
+ (TIME_SET_LOCALTIME): ditto.
+ (time_utc_p): use the above macro.
+ (time_localtime): ditto.
+ (time_localtime): ditto.
+ (time_gmtime): ditto.
+ (time_to_s): ditto.
+ (time_add): ditto.
+ (time_sec): ditto.
+ (time_min): ditto.
+ (time_hour): ditto.
+ (time_mday): ditto.
+ (time_mon): ditto.
+ (time_year): ditto.
+ (time_wday): ditto.
+ (wday_p): ditto.
+ (time_yday): ditto.
+ (time_isdst): ditto.
+ (time_zone): ditto.
+ (time_utc_offset): ditto.
+ (time_to_a): ditto.
+ (strftimev): ditto.
+ (time_strftime): ditto.
+ (time_mdump): ditto.
+
+Thu Apr 23 01:30:37 2009 Akinori MUSHA <knu@iDaemons.org>
+
+ * ext/zlib/zlib.c (Zlib::GzipFile#path): New method.
+
+Wed Apr 22 20:25:24 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * time.c (time_timespec): check out-of-range. [ruby-core:23282]
+ [Bug #1396]
+
+Wed Apr 22 19:33:13 2009 Tanaka Akira <akr@fsij.org>
+
+ * lib/time.rb (Time.parse): use year completion in Date._parse.
+
+Wed Apr 22 11:12:15 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * time.c (GMTIME, LOCALTIME): should set result if not have *_r().
+
+ * time.c (localtime_with_gmtoff): now always needed tmbuf.
+
+Wed Apr 22 10:38:47 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * dir.c (glob_helper): C99(gcc)-ism.
+
+ * time.c (find_time_t): GUESS macro needs the variable named ``result''
+ always.
+
+Wed Apr 22 09:27:31 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * time.c (localtime_with_gmtoff): fixed cross function jump.
+
+Wed Apr 22 03:06:56 2009 Tanaka Akira <akr@fsij.org>
+
+ * lib/time.rb (Time#rfc2822): pad leading zeros for year.
+ (Time#httpdate): ditto.
+ (Time#xmlschema): ditto.
+
+Wed Apr 22 02:10:48 2009 Tanaka Akira <akr@fsij.org>
+
+ * lib/time.rb (Time#xmlschema): use subsec instead of nsec.
+
+Wed Apr 22 01:27:38 2009 Tanaka Akira <akr@fsij.org>
+
+ * time.c (time_arg): use the year argument as-is. [ruby-dev:38194]
+
+ * lib/time.rb (Time.parse): interpret small year 0..99 as 1950..2049.
+
+Wed Apr 22 00:32:16 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * time.c (find_time_t): constified.
+
+Wed Apr 22 00:11:19 2009 Tanaka Akira <akr@fsij.org>
+
+ * time.c (leap_year_v_p): removed.
+
+Tue Apr 21 23:52:45 2009 Tanaka Akira <akr@fsij.org>
+
+ * time.c: remove time_t restriction from Time class.
+
+ * timev.h: new file to define struct vtm.
+
+ * strftime.c: format struct vtm instead of struct tm.
+
+ * ext/syck/rubyext.c (mktime_do): don't use time_t;
+
+ [ruby-dev:38191]
+
+Tue Apr 21 09:25:41 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * dir.c (dir_path, dir_each, glob_helper): use readdir_r() if
+ available.
+
+Tue Apr 21 09:20:21 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/mkmf.rb (init_mkmf): needs default library path even if
+ cross compiling.
+
+Tue Apr 21 07:07:45 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * array.c (rb_ary_push): bypass rb_ary_store().
+
+Tue Apr 21 01:25:16 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * bignum.c (bigsub_int): subtraction without making internal
+ bignum values.
+
+ * bignum.c (bigadd_int): ditto for addition.
+
+ * bignum.c (bigtrunc): declare inline.
+
+ * bignum.c (rb_quad_pack): fix condition.
+
+Tue Apr 21 01:13:42 2009 Alexander Zavorine <alexandre.zavorine@nokia.com>
+
+ * symbian/setup (config.h): added TIMET2NUM and NUM2TIMET to match
+ the change in time.c
+
+Mon Apr 20 20:29:04 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (rb_str_split_m): faster processing on 7bit strings.
+
+ * string.c (ascii_isspace): faster isspace() for 7bit strings.
+
+Sun Apr 19 14:43:18 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (ruby_cleanup): the order of local variables on stack is
+ undefined. should use outermost VALUE for ruby_init_stack.
+
+ * gc.c (ruby_get_stack_grow_direction, Init_stack): allows volatile
+ pointer.
+
+ * thread_*.c (ruby_init_stack): ditto.
+
+Sun Apr 19 13:17:25 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * gem_prelude.rb (Gem::QuickLoader#push_gem_version_on_load_path):
+ check for requirement if the gem is installed. a patch from
+ Kyosuke MOROHASHI at [ruby-dev:38020].
+
+Sun Apr 19 01:39:17 2009 Tanaka Akira <akr@fsij.org>
+
+ * process.c (proc_seteuid_m): defined to use rb_f_notimplement if not
+ implemented.
+ (proc_setegid_m): ditto.
+
+Sun Apr 19 01:03:56 2009 Tanaka Akira <akr@fsij.org>
+
+ * process.c (proc_setuid): use rb_f_notimplement if not implemented.
+ (proc_setgid): ditto.
+
+Sat Apr 18 23:07:18 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/readline/readline.c: use rb_f_notimplement for methods not
+ implemented.
+
+ * ext/openssl/ossl_engine.c: ditto.
+
+ * ext/openssl/ossl_config.c: ditto.
+
+ * ext/openssl/ossl_cipher.c: ditto.
+
+ * ext/openssl/ossl_pkcs5.c: ditto.
+
+ * ext/openssl/ossl_x509ext.c: ditto.
+
+ * ext/socket/socket.c: ditto.
+
+ * ext/socket/basicsocket.c: ditto.
+
+ * ext/socket/ancdata.c: ditto.
+
+ * ext/socket/unixsocket.c: ditto.
+
+ * ext/iconv/iconv.c: ditto.
+
+Sat Apr 18 21:07:34 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/curses/curses.c: use rb_f_notimplement for methods not
+ implemented.
+
+Fri Apr 17 01:51:17 2009 Tanaka Akira <akr@fsij.org>
+
+ * node.h (rb_notimplement_body_p): declared.
+
+ * vm_method.c (Init_eval_method): suppress a warning.
+
+ * io.c (rb_io_fsync): use rb_f_notimplement if not implemented.
+ (rb_io_close_on_exec_p): ditto.
+ (rb_io_set_close_on_exec): ditto.
+ (rb_io_fcntl): ditto.
+ (rb_f_syscall): ditto.
+
+ * dir.c (dir_tell): ditto.
+ (dir_seek): ditto.
+ (dir_s_chroot): ditto.
+
+ * process.c (proc_getpgrp): ditto.
+ (proc_setpgrp): ditto.
+ (proc_getpgid): ditto.
+ (proc_setpgid): ditto.
+ (proc_setsid): ditto.
+ (proc_getpriority): ditto.
+ (proc_setpriority): ditto.
+ (proc_getrlimit): ditto.
+ (proc_setrlimit): ditto.
+ (p_sys_setuid): ditto.
+ (p_sys_setruid): ditto.
+ (p_sys_seteuid): ditto.
+ (p_sys_setreuid): ditto.
+ (p_sys_setresuid): ditto.
+ (p_sys_setgid): ditto.
+ (p_sys_setrgid): ditto.
+ (p_sys_setegid): ditto.
+ (p_sys_setregid): ditto.
+ (p_sys_setreuid): ditto.
+ (p_sys_setresgid): ditto.
+ (p_sys_issetugid): ditto.
+ (proc_getgroups): ditto.
+ (proc_setgroups): ditto.
+ (proc_initgroups): ditto.
+ (proc_daemon): ditto.
+ (rb_proc_times): ditto.
+
+ * file.c (rb_file_s_lchown): ditto.
+ (rb_file_s_link): ditto.
+ (rb_file_s_symlink): ditto.
+ (rb_file_s_readlink): ditto.
+ (rb_file_s_truncate): ditto.
+ (rb_file_truncate): ditto.
+
+Fri Apr 17 00:53:47 2009 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * lib/cgi/core.rb (read_multipart): When path is not defined,
+ define local_path as a method always returning nil instead of
+ aliasing. This is because StringIO#path no longer exists.
+
+Fri Apr 17 00:45:09 2009 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * dir.c (bracket): fix escape handling for range character in bracket
+ of fnmatch pattern. e.g., '[a\-c]' should not match 'b'.
+
+Thu Apr 16 23:09:03 2009 Tanaka Akira <akr@fsij.org>
+
+ * class.c (rb_define_method_id): use rb_define_notimplement_method_id
+ if rb_f_notimplement is given.
+ (rb_define_protected_method): ditto.
+ (rb_define_private_method): ditto.
+ (rb_define_method): use rb_define_method_id.
+
+ * include/ruby/intern.h (rb_f_notimplement): declared.
+ (rb_define_notimplement_method_id): declared.
+
+ * proc.c (method_inspect): show not-implemented.
+
+ * vm_method.c (notimplement_body): new variable.
+ (rb_notimplement_body_p): new function.
+ (rb_method_boundp): return false if not implemented.
+ (rb_f_notimplement): new function.
+ (rb_define_notimplement_method_id): new function.
+
+ * process.c (rb_f_fork): use rb_f_notimplement if not implemented.
+
+ * file.c (rb_file_s_lchmod): use rb_f_notimplement if not implemented.
+
+Wed Apr 15 20:24:49 2009 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * array.c (rb_ary_flatten): flatten(0) works as Array#dup.
+ [ruby-core:23168]
+
+ * test/ruby/test_array.rb: add a test for above.
+
+Wed Apr 15 11:53:35 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * dir.c (fnmatch_helper): use rb_enc_precise_mbclen and
+ fail if bytes are invalid. [ruby-dev:38307]
+
+Tue Apr 14 18:11:26 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * dir.c (bracket): if same in bytes, path is matching.
+ [ruby-dev:38305]
+
+Mon Apr 13 17:21:40 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * sprintf.c (rb_str_format): scan coderange incrementally.
+
+Mon Apr 13 11:35:55 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * sprintf.c (rb_str_format): optimize previous commit.
+ [ruby-list:45954]
+
+Mon Apr 13 10:58:54 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * sprintf.c (rb_str_format): check encoding compatibility only on
+ real parts.
+
+Sun Apr 12 19:54:56 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * dir.c (bracket, fnmatch_helper): compare bytewise first, to get
+ rid of invalid byte sequence. [ruby-dev:38303]
+
+Sat Apr 11 08:45:57 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (Makefile): phony ruby target needs empty command.
+
+Fri Apr 10 11:32:14 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * common.mk (up): updates timestamp file.
+
+Fri Apr 10 04:54:01 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (Makefile): info-program needs common.mk.
+
+Fri Apr 10 03:46:44 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (RUBY_INSTALL_NAME): use --program-transform-name.
+
+ * instruby.rb, mkconfig.rb: deal with --program-transform-name
+ better. now supports s, y commands and single addressing.
+
+Thu Apr 9 23:59:11 2009 Tanaka Akira <akr@fsij.org>
+
+ * configure.in: don't override the rule for ruby.
+
+Wed Apr 8 21:58:12 2009 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * string.c (rb_str_dump): buffer length plus one byte for null
+ terminator. [ruby-dev:38294]
+
+ * test/ruby/test_m17n.rb (test_str_dump): add a test for above.
+
+Wed Apr 8 20:08:16 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * string.c (rb_str_rstrip_bang): should not sign-expand non-ascii.
+ [ruby-core:23158]
+
+Wed Apr 8 17:29:29 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * string.c (rb_str_chop_bang): reset coderange. [ruby-core:23155]
+
+Wed Apr 8 14:00:04 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/mkmf.rb (what_type?): fixed typo, and refined for member of
+ aggregation types.
+
+ * lib/mkmf.rb (Logging.postpone): copy postponed output always.
+
+Wed Apr 8 09:45:58 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (LIBRUBY_SO): removed redundant additional version
+ numbers.
+
+Tue Apr 7 13:35:22 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * common.mk (info): shows configured names.
+
+ * configure.in (Makefile): works even if RUBY_INSTALL_NAME
+ contains macro.
+
+ * configure.in (LIBRUBY_DLDFLAGS): compatibility version is
+ ruby_version.
+
+ * configure.in (RUBY_REPLACE_TYPE): defines type modifier prefix
+ for printf.
+
+Tue Apr 7 02:27:49 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (RUBY_DEFINT): should pass includes to
+ AC_CHECK_SIZEOF and RUBY_CHECK_SIZEOF.
+
+ * configure.in (CFLAGS, CXXFLAGS): need ARCH_FLAG for universal
+ binary.
+
+Tue Apr 7 01:08:21 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * numeric.c (flo_to_s): reduce fragments if no precision lost.
+ c.f. [ruby-core:23075]
+
+Mon Apr 6 23:16:08 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (CFLAGS, CXXFLAGS): override with $cflags and
+ $cxxflags if not given. [ruby-core:23130]
+
+Mon Apr 6 19:26:18 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * file.c (utime_failed): refined the error message for EINVAL on
+ DOSISH platforms, where it may fail depending on filesystems.
+ see [ruby-dev:38277].
+
+Mon Apr 6 16:38:50 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * file.c (sys_fail2, rb_file_s_readlink, BUFCHECK, rmext),
+ (rb_file_s_basename): get rid of overflow.
+
+Mon Apr 6 15:11:56 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * numeric.c (int_chr): checks overflow.
+
+Mon Apr 6 10:49:47 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * test/stringio/test_stringio.rb (test_path): StringIO#path is no
+ longer defined. [ruby-dev:38254]
+
+Mon Apr 6 10:47:13 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/stringio/stringio.c (strio_path): removed. [ruby-dev:38254]
+
+Sun Apr 5 18:02:54 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * include/ruby/intern.h (rb_fd_resize): does nothing on Win32.
+
+Sat Apr 4 17:05:15 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * include/ruby/intern.h (RB_NUM_COERCE_FUNCS_NEED_OPID): macro to
+ check compatibility. [ruby-dev:38162]
+
+Sat Apr 4 07:38:52 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * mkconfig.rb (sitearch): default to arch.
+
+Fri Apr 3 14:02:42 2009 Akinori MUSHA <knu@iDaemons.org>
+
+ * lib/irb/completion.rb (IRB::InputCompletor::Operators): Add
+ overloadable negative operators.
+
+ * lib/irb/ruby-lex.rb (RubyLex#lex_init): Support overloadable
+ negative operators.
+
+ * lib/irb/ruby-lex.rb (RubyLex#identify_identifier): Minus signs
+ need to be escaped in regexp character class.
+
+ * misc/ruby-mode.el (ruby-font-lock-keywords, ruby-parse-partial):
+ Support overloadable negative operators.
+
+Fri Apr 3 12:45:55 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/extmk.rb: quotes arguments with spaces always.
+
+Thu Apr 2 14:50:06 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/getoptlong.rb: remove unused rdoc/usage from example.
+ [ruby-core:23098]
+
+Thu Apr 2 07:42:27 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * win32/Makefile.sub (config.h): updated.
+
+Wed Apr 1 20:37:49 2009 Tanaka Akira <akr@fsij.org>
+
+ * configure.in (rb_cv_fork_with_pthread): fail if the child process
+ fail.
+
+Wed Apr 1 19:46:46 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/mkmf.rb (create_makefile): support for parallel make. a
+ patch from Takuto Matsuu at [ruby-dev:38220].
+
+Wed Apr 1 19:39:25 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (LIBRUBY_LDSHARED): use $(CC) instead of cc.
+ a patch from Wataru Kimura at [ruby-dev:38225].
+
+Wed Apr 1 18:53:51 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * vm_dump.c (rb_vm_bugreport): should not #include inside a
+ function, since headers may have declarations.
+ c.f. [ruby-core:23095]
+
+Wed Apr 1 18:44:53 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * mkconfig.rb: ignores version numbers in config.status. replaces
+ all $$s in program_transform_name.
+
+Wed Apr 1 15:12:21 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * Makefile.in (.c.i): use CPP instead of CC, since gcc -E can'
+ work with multiple -arch options.
+
+Wed Apr 1 13:46:20 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * thread.c (rb_thread_fd_select): new function to call select
+ using rb_fdset_t.
+
+ * io.c (select_internal): use rb_thread_fd_select instead of
+ rb_thread_select. based on the patch from Kengo Matsuyama.
+ [ruby-dev:38221]
+
+Wed Apr 1 13:16:19 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * process.c (rb_f_sleep): RDoc disambiguation. [ruby-talk:332632]
+
+Tue Mar 31 15:17:37 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in: fixed the help strings for the header and library
+ dir switches, and updated to use AS_HELP_STRING. patches from
+ Richard Brown, c.f. [ruby-core:23067].
+
+Mon Mar 31 08:18:57 2009 James Edward Gray II <jeg2@ruby-lang.org>
+
+ * test/csv/test_interface.rb, test/csv/test_serialization.rb:
+ Trying more fixes some failing tests on Windows.
+
+Mon Mar 30 19:04:25 2009 Tanaka Akira <akr@fsij.org>
+
+ * .gdbinit (rp): show negative fixnum correctly.
+
+Mon Mar 30 12:12:46 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * vm_eval.c (eval_string_with_cref): replaces the message if
+ frozen. [ruby-dev:38208]
+
+Mon Mar 30 01:00:20 2009 James Edward Gray II <jeg2@ruby-lang.org>
+
+ * test/csv/test_interface.rb: Trying a fix for some failing tests
+ on Windows.
+
+Sun Mar 29 08:59:26 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/pathname.rb (Pathname#relative_path_from): compares path
+ components according to system default case-sensitiveness.
+ [ruby-core:22829]
+
+Sat Mar 28 11:10:32 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * common.mk (ruby.imp): all symbols in static library need to be
+ exported, so that encoding-extensions can be loaded. based on a
+ patch from Yutaka Kanemoto <kinpoco AT gmail.com> in
+ [ruby-talk:332282].
+
+Sat Mar 28 08:49:47 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * sprintf.c (rb_str_format): checks if named argument given twice.
+
+ * sprintf.c (GETNAMEARG): remembers named arg is used, to get rid
+ of too many arguments warning.
+
+Sat Mar 28 03:16:59 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/mkmf.rb (link_command, cc_command, cpp_command): should no
+ override extout defined in extmk.rb.
+
+Fri Mar 27 12:56:44 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/mkmf.rb (what_type?): checks more restrictively, and
+ supports universal binary.
+
+Fri Mar 27 01:33:37 2009 Tanaka Akira <akr@fsij.org>
+
+ * time.c (time_cmp): negate the result of reverse comparison.
+
+Fri Mar 27 01:19:50 2009 Tanaka Akira <akr@fsij.org>
+
+ * bignum.c (rb_cmpint): FIX2INT may fail on LP64 platforms.
+
+Thu Mar 26 12:22:06 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/yaml/rubytypes.rb (String#is_binary_data?): TAB would be
+ usually considered to be included in text data.
+
+ * lib/rdoc/parser.rb (RDoc::Parser.binary?): blksize may be nil
+ and is irrelevant to whether a file is binary. copied from
+ above since TAB and newlines would be usually considered to be
+ included in text data.
+
+Thu Mar 26 11:33:13 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/rdoc/ri/paths.rb (RDoc::RI::Paths): considers
+ --program-prefix and --program-suffix. reapplied r19923.
+
+Wed Mar 25 07:45:12 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (target_alias): replaces cpu with universal too.
+
+ * configure.in (target): replaces cpu with arch by --with-arch.
+
+ * mkconfig.rb (TOPDIR): chops arch in config instead of
+ RUBY_PLATFORM which varies on universal_binary.
+
+ * mkconfig.rb (MAJOR, MINOR, TEENY): reads from version.h always.
+
+Tue Mar 24 19:23:44 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (RUBY_CHECK_SIZEOF): need to include $4.
+
+Tue Mar 24 17:08:52 2009 Akinori MUSHA <knu@iDaemons.org>
+
+ * io.c (rb_io_inspect): Cannot access fptr->fd if fptr is NULL.
+ This fixes a coredump caused by: ruby -e "class X < IO; def
+ initialize; end; end; p X.new.inspect"
+
+Mon Mar 23 22:01:00 2009 Tanaka Akira <akr@fsij.org>
+
+ * time.c (time_timespec): use NUM2TIMET.
+ (time_s_at): ditto.
+
+Mon Mar 23 21:52:26 2009 Akinori MUSHA <knu@iDaemons.org>
+
+ * process.c (Init_process): Better patch for eliminating an
+ "unused variable".
+
+Mon Mar 23 21:41:14 2009 Akinori MUSHA <knu@iDaemons.org>
+
+ * ext/dbm/dbm.c (fdbm_initialize): Make the file variable
+ volatile, because FilePathValue() currently does not protect the
+ given variable from GC. (Probably it should)
+
+ * ext/sdbm/init.c (fsdbm_initialize): Ditto.
+
+Mon Mar 23 19:22:14 2009 Akinori MUSHA <knu@iDaemons.org>
+
+ * file.c (rb_file_s_lstat): Back out.
+
+Mon Mar 23 18:54:57 2009 Akinori MUSHA <knu@iDaemons.org>
+
+ * file.c (rb_file_s_stat, rb_file_s_lstat): Remove repeated type
+ checks.
+
+Mon Mar 23 14:57:48 2009 Narihiro Nakamura <authorNari@gmail.com>
+
+ * gc.c (init_heap): set default to heap slots length
+ if HEAP_OBJ_LIMIT is larger than HEAP_MIN_SLOTS. [Bug #1310]
+ (set_heaps_increment): increment next_heaps_length if
+ next_heaps_length and heaps_used are same.
+
+Mon Mar 23 14:32:23 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * win32/win32.c (rb_w32_spawn): use original command if not found.
+
+Mon Mar 23 06:51:16 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * enc/depend (link_so): replaces $(TARGET) with basename of the
+ target. [ruby-talk:330286]
+
+Sun Mar 22 14:51:55 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * win32/win32.c (rb_w32_spawn, rb_w32_aspawn): use NULL as
+ application name for batch files.
+
+Sat Mar 21 15:54:41 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/openssl/ossl_ssl.c (write_would_block): defined.
+ (read_would_block): defined.
+ (ossl_start_ssl): add nonblock argument.
+ (ossl_ssl_connect): follow ossl_start_ssl change.
+ (ossl_ssl_connect_nonblock): new method.
+ (ossl_ssl_accept): follow ossl_start_ssl change.
+ (ossl_ssl_accept_nonblock): new method.
+ (ossl_ssl_read_internal): use write_would_block and
+ read_would_block.
+ (ossl_ssl_write_internal): ditto.
+
+Sat Mar 21 08:19:52 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * process.c (rb_exec): prints error message only on platforms
+ neither close-on-exec nor spawnv is supported.
+
+Sat Mar 21 08:17:41 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * win32/win32.c (rb_w32_spawn, rb_w32_aspawn): omit program name
+ if actual program path is found. [ruby-core:22960]
+
+Sat Mar 21 07:25:56 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * io.c (pipe_open): should pass program name even if multiple
+ arguments are given. fix for TestProcess::test_argv0.
+
+Sat Mar 21 02:37:07 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/openssl/lib/openssl/buffering.rb
+ (OpenSSL::Buffering#write_nonblock): new method.
+
+ * ext/openssl/ossl_ssl.c (ossl_ssl_write_nonblock): new method.
+ (ossl_ssl_write_internal): defined.
+ (ossl_ssl_write): use ossl_ssl_write_internal.
+
+Fri Mar 20 18:25:25 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * win32/win32.c (errmap): added ERROR_MOD_NOT_FOUND.
+
+Fri Mar 20 09:22:59 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (libprefix): must not append "lib" after $(libdir),
+ when load_relative is not used on darwin. a patch from Kenta
+ Murata at [ruby-dev:38182].
+
+Thu Mar 19 20:29:40 2009 Tanaka Akira <akr@fsij.org>
+
+ * io.c (rb_mWaitReadable): defined.
+ (rb_mWaitWritable): defined.
+ (io_getpartial): extend IO::WaitReadable on EWOULDBLOCK and EAGAIN.
+ (rb_io_write_nonblock): extend IO::WaitWritable on EWOULDBLOCK and
+ EAGAIN.
+
+ * error.c (make_errno_exc): extracted from rb_sys_fail.
+ (rb_mod_sys_fail): new function.
+
+ * include/ruby/ruby.h (rb_mod_sys_fail): declared.
+ (rb_mWaitReadable): declared.
+ (rb_mWaitWritable): declared.
+
+ * ext/socket/init.c (rsock_s_recvfrom_nonblock): extend
+ IO::WaitReadable on EWOULDBLOCK and EAGAIN.
+ (rsock_s_accept_nonblock): extend IO::WaitReadable on EWOULDBLOCK,
+ EAGAIN, ECONNABORTED and EPROTO.
+
+ * ext/socket/socket.c (sock_connect_nonblock): extend IO::WaitWritable
+ on EINPROGRESS.
+
+ * ext/socket/ancdata.c (bsock_sendmsg_internal): extend
+ IO::WaitWritable on EWOULDBLOCK and EAGAIN.
+ (bsock_recvmsg_internal): extend IO::WaitReadable on EWOULDBLOCK and
+ EAGAIN.
+
+ * ext/openssl/ossl_ssl.c (ossl_ssl_read_internal): raise SSLError
+ extended by IO::WaitReadable/IO::WaitWritable on
+ SSL_ERROR_WANT_READ/SSL_ERROR_WANT_WRITE.
+
+ * ext/openssl/ossl.c (ossl_make_error): extracted from ossl_raise.
+ (ossl_exc_new): new function.
+
+ * ext/openssl/ossl.h (ossl_exc_new): declared.
+
+ * lib/net/protocol.rb (rbuf_fill): rescue IO::WaitReadable and
+ IO::WaitWritable.
+
+ [ruby-core:22539], [ruby-dev:38140]
+
+Thu Mar 19 18:49:49 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (RUBY_CHECK_SIZEOF): allows qualified name.
+
+ * configure.in (RUBY_REPLACE_TYPE): checks more strictly.
+
+ * configure.in (struct stat.st_size, struct stat.st_blocks),
+ (struct stat.st_ino): check for size.
+
+ * lib/mkmf.rb (check_sizeof): allows qualified name.
+
+ * file.c (rb_stat_ino, rb_stat_blocks): check by size.
+
+Wed Mar 18 16:59:48 2009 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
+
+ * test/test_syslog.rb (TestSyslog#test_open): check
+ param after block again. because detect not to call block.
+
+Wed Mar 18 16:54:04 2009 TAKANO Mitsuhiro (takano32) <tak@no32.tk>
+
+ * ext/socket/ancdata.c: not use pktinfo.ipi_spec_dst if not defined
+ * ext/socket/extconf.rb: define HAVE_IPI_SPEC_DST
+
+Wed Mar 18 16:38:11 2009 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
+
+ * test/test_syslog.rb (TestSyslog#test_open): check
+ block parameter in block. [ruby-dev:38180]
+
+Wed Mar 18 12:48:01 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * error.c (report_bug): rb_bug can be caused by extension
+ libraries.
+
+Wed Mar 18 02:41:33 2009 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
+
+ * lib/drb/drb.rb (open_server_inaddr_any): fixed multiple network
+ families problem. a patch from Charl Matthee at [ruby-core:21033].
+
+Tue Mar 17 21:42:54 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * tool/make-snapshot (package): creates .revision.time and passes
+ CHDIR to create prerequisite files.
+
+Tue Mar 17 18:00:55 2009 Akinori MUSHA <knu@iDaemons.org>
+
+ * enumerator.c (Enumerator#{each_,}{with_index,with_object}): Fix
+ a bug where any parameter but the first one is dropped even if
+ multiple values are yielded with. [Bug #1198]
+
+Tue Mar 17 14:25:16 2009 Tanaka Akira <akr@fsij.org>
+
+ * lib/pathname.rb (Pathname#sub): set $~ in block.binding.
+ [ruby-dev:38173]
+
+Tue Mar 17 13:48:08 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * win32/Makefile.sub (config.h): added RUBY_COREDLL.
+
+ * ext/dl/handle.c (rb_dlhandle_initialize): returns msvcrt if libc
+ or RUBY_COREDLL is given. [ruby-core:22828]
+
+Tue Mar 17 10:29:22 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * dir.c, dln.c, parse.y, re.c, ruby.c, sprintf.c, strftime.c,
+ string.c, util.c, variable.c: use strlcpy, memcpy and snprintf
+ instead of strcpy, strncpy and sprintf.
+
+Mon Mar 16 17:15:16 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * test/dl/test_win32.rb (Win32API): enclosed by DL::TestWin32.
+ [ruby-core:22827]
+
+Mon Mar 16 16:37:22 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/tk/tcltklib.c (eventloop_sleep, lib_eventloop_core),
+ (lib_watchdog_core): tv_usec is not time_t.
+
+Mon Mar 16 12:30:07 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * common.mk (REVISION_H): keeps timestamp of revision.h.
+ [ruby-core:22900]
+
+ * tool/ifchange, win32/ifchange.bat: extended --timestamp option.
+
+Mon Mar 16 09:28:58 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * Makefile.in, common.mk, win32/Makefile.sub: added preprocessing rules.
+
+Sun Mar 15 12:34:17 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * test/minitest/test_mini_test.rb: fixed tests depending on the
+ detail of floating point representation.
+
+Sun Mar 15 12:01:36 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/rubygems/installer.rb (Gem::Installer#shebang): fix for env
+ shebang.
+
+Sun Mar 15 11:15:18 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * include/ruby/ruby.h ({RSTRING,RBIGNUM}_EMBED_LEN_MAX): made int.
+
+ * include/ruby/ruby.h (OBJ_{TAINTED,UNTRUSTED,FROZEN}): return int.
+
+ * include/ruby/encoding.h (ENC_CODERANGE): ditto.
+
+Sun Mar 15 11:11:44 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * string.c (rb_hash_uint, rb_hash_start, rb_hash_end): use VALUE
+ rather than unsigned int.
+
+Sun Mar 15 11:00:14 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ruby.c (load_file_internal): stop the timer thread before exec.
+
+Sun Mar 15 09:17:26 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * common.mk (.y.c): use SRC_FILE which contains slashes instead of
+ backslashes. [ruby-core:22891]
+
+Sun Mar 15 08:26:16 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * common.mk (srcs-ext): creates ext/dl/callback/callback.c also.
+
+Sun Mar 15 03:29:51 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * process.c (SAVED_GROUP_ID, p_gid_switch): should be rb_gid_t.
+
+Sun Mar 15 02:53:13 2009 Tanaka Akira <akr@fsij.org>
+
+ * string.c (rb_str_subpat): accept capture name.
+ (rb_str_aref): follow above change.
+ (rb_str_aref_m): pass the 2nd argument to rb_str_subpat.
+ (rb_str_subpat_set): accept capture name.
+ (rb_str_aset): follow above change.
+ (rb_str_partition): ditto.
+ (rb_str_aset_m): pass the 2nd argument to rb_str_subpat_set.
+
+ * include/ruby/intern.h (rb_reg_backref_number): declared.
+
+ * re.c (rb_reg_backref_number): defined.
+
+ [ruby-core:21057]
+
+Sun Mar 15 02:09:31 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * proc.c (bmcall): should not uninitialized variable. a patch from
+ pegacorn at [ruby-dev:38169].
+
+Sat Mar 14 18:25:18 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * util.c (ruby_scan_oct, ruby_scan_hex): use size_t.
+
+Sat Mar 14 18:18:08 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * proc.c (rb_proc_call, rb_node_arity, bmcall, curry): checks
+ overflow.
+
+ * proc.c (rb_proc_parameters): unnamed_parameters() expects in
+ not VALUE.
+
+Sat Mar 14 17:54:19 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * util.c (ruby_each_words): assume no string exceeds INT_MAX.
+
+Sat Mar 14 15:59:04 2009 Tanaka Akira <akr@fsij.org>
+
+ * process.c (rb_spawn_internal): use int variable for status.
+
+Sat Mar 14 14:45:51 2009 Tanaka Akira <akr@fsij.org>
+
+ * process.c (rb_f_system): use rb_pid_t for pid.
+ (rb_spawn_internal): local variable renamed.
+
+Sat Mar 14 14:16:02 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * util.c (ruby_strdup, Balloc, rv_alloc): use size_t.
+
+Sat Mar 14 13:53:11 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * util.c (ruby_qsort): the result of cmp must be signed, so ge
+ rid of reuse of a variable.
+
+Sat Mar 14 10:56:13 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * dln.c (init_funcname_len, dln_find_exe_r, dln_find_file_r): use
+ size_t.
+
+ * file.c (rb_stat_inspect, file_expand_path): ditto.
+
+ * util.c (ruby_qsort): ditto.
+
+Sat Mar 14 10:39:13 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/mkmf.rb (CXX_EXT): checks for case-sensitive filesystem with
+ FNM_SYSCASE rather than build_os.
+
+Fri Mar 13 23:03:40 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/init.c (wait_connectable0): remove unreachable code.
+
+Fri Mar 13 23:00:02 2009 Tanaka Akira <akr@fsij.org>
+
+ * configure.in (RUBY_CHECK_SIZEOF): pass [include] to AC_CHECK_SIZEOF.
+
+Fri Mar 13 20:58:11 2009 Tanaka Akira <akr@fsij.org>
+
+ * dln.c (dln_find_1): compare fspace in size_t world.
+
+Fri Mar 13 18:58:04 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (CFLAGS, CXXFLAGS): moved after warnflags.
+
+Fri Mar 13 18:10:06 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * vm_eval.c (rb_throw_obj): inverted call flow. [ruby-core:22872]
+
+Fri Mar 13 17:04:09 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * include/ruby/ruby.h (bool): not define to get rid of conflict
+ against curses.
+
+Fri Mar 13 16:45:33 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/openssl/openssl_missing.h (i2d_of_void): cast for callbacks.
+ [ruby-core:22860]
+
+ * ext/openssl/ossl_engine.c (ossl_engine_s_by_id): suppress a
+ warning.
+
+ * ext/openssl/ossl_ssl.c (ossl_sslctx_flush_sessions): time_t may
+ be larger than long.
+
+ * ext/openssl/ossl_ssl_session.c (ossl_ssl_session_get_time),
+ (ossl_ssl_session_get_timeout): use TIMET2NUM() to convert
+ time_t.
+
+Fri Mar 13 15:10:43 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/openssl/ossl_x509ext.c (ossl_x509ext_set_value): should use
+ OPENSSL_free instead of free. a patch from Charlie Savage at
+ [ruby-core:22858].
+
+Fri Mar 13 21:11:51 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ext/sdbm/_sdbm.c: should include "ruby/defines.h" as well for
+ prototypes of compatibility functions on Win32 platform.
+ [ruby-core:22870]
+
+Fri Mar 13 10:42:19 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (AC_HEADER_STDBOOL): added.
+
+ * include/ruby/ruby.h (NUM2INT, rb_special_const_p): returns true
+ and false instead of Qtrue and Qfalse for platforms where VALUE
+ is bigger than int.
+
+ * gc.c (gc_stress_set), ext/openssl/ossl_asn1.c (decode_bool): go
+ rid of variables named `bool'.
+
+Fri Mar 13 10:16:36 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (struct stat.st_size): may be huge.
+
+Fri Mar 13 09:30:12 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * bignum.c (bigfixize): zero length Bignum is 0.
+
+Fri Mar 13 09:17:12 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/fileutils.rb (FileUtils#fu_get_gid): stringify group
+ argument before making regexp match. [ruby-dev:38155]
+
+Fri Mar 13 08:06:48 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * util.c (rv_strdup): macro to duplicate nul-terminated string.
+ [ruby-core:22852]
+
+Thu Mar 12 22:41:41 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/openssl: suppress warnings.
+
+ * ext/openssl/ossl.h (OSSL_Debug): don't use gcc extension for
+ variadic macro.
+
+Thu Mar 12 22:29:36 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/Makefile.sub (WARNFLAGS): warning 4996 is only in VC++8 or
+ later.
+
+Thu Mar 12 22:14:01 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/openssl/ossl_ssl.c (ossl_ssl_def_const): use INT2NUM because
+ OP_NETSCAPE_DEMO_CIPHER_CHANGE_BUG doesn't fit into Fixnum.
+
+Thu Mar 12 18:16:12 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * array.c, bignum.c, dln.c, error.c, gc.c, io.c, marshal.c,
+ numeric.c, pack.c, strftime.c, string.c, thread.c, transcode.c,
+ transcode_data.h, util.c, variable.c, vm_dump.c,
+ include/ruby/encoding.h, missing/crypt.c, missing/vsnprintf.c:
+ suppress VC type warnings. [ruby-core:22726]
+
+ * marshal.c (div0), numeric.c (infinite_value): new functions to
+ get rid of VC division by 0 warnings.
+
+ * st.c: use st_index_t for indexes instead of int.
+
+ * vm.c (rb_vm_get_sourceline), vm_insnhelper.c (vm_throw): use
+ rb_num_t.
+
+Thu Mar 12 09:30:54 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (RUBY_CHECK_SIZEOF): if same size type is found, no
+ more calculation is needed.
+
+ * configure.in (RUBY_DEFINT): falls back to RUBY_CHECK_SIZEOF if
+ size is not immediate.
+
+Thu Mar 12 09:24:24 2009 Tanaka Akira <akr@fsij.org>
+
+ * transcode_data.h: suppress warnings of overflow.
+
+Thu Mar 12 09:15:14 2009 Tanaka Akira <akr@fsij.org>
+
+ * include/ruby/encoding.h: suppress warnings of overflow.
+
+Thu Mar 12 05:49:05 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (warnflags): added some default flags,
+ pointer-arith, write-strings and shorten-64-to-32, but suppress
+ unused-parameter and missing-field-initializers, if possible.
+
+ * configure.in (RUBY_CHECK_HUGE): checks whether a value range is
+ larger than long.
+
+ * file.c (rb_stat_blocks): struct stat.st_blocks may be larger
+ than long.
+
+ * io.c (copy_stream_fallback_body): off_t may be larger than long.
+
+ * iseq.c (rb_iseq_disasm): RSTRING_LEN() returns long.
+
+ * process.c (rb_f_sleep): time() needs time_t.
+
+ * random.c (fill_random_seed): enclosed conditionally used
+ variables.
+
+ * thread_pthread.c (ruby_init_stack): range of rlim_cur may be
+ larger than int.
+
+ * missing/vsnprintf.c (BSD_vfprintf): commented out code which has
+ no effect at all.
+
+Thu Mar 12 02:10:57 2009 Tanaka Akira <akr@fsij.org>
+
+ * configure.in: strip spaces from ruby_version.
+ Sun C 5.9 SunOS_i386 Build47_dlight 2007/05/22 generates
+ `ruby_version= 1 "." 9 "." 1'.
+
+Thu Mar 12 01:18:09 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * dir.c (dir_seek): use long for seekdir().
+
+Thu Mar 12 01:08:27 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * tool/ytab.sed: replaces backslashes with slash for nmake.
+
+Wed Mar 11 21:23:06 2009 Tanaka Akira <akr@fsij.org>
+
+ * time.c (time_mload): don't clear tm_mday.
+
+Wed Mar 11 20:13:38 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/dl/handle.c (rb_dlhandle_sym): RTLD_NEXT is not for symbol
+ name. [ruby-dev:38150]
+
+Wed Mar 11 17:26:38 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * ext/dl/win32/lib/Win32API.rb: call by :stdcall as default.
+ [ruby-core:22826]
+
+Wed Mar 11 13:27:14 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (stack_type): uses VALUE which is able to be stored
+ parser stack.
+
+Wed Mar 11 13:22:41 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * win32/win32.c (init_env): set TMPDIR if none of TMPDIR, TMP,
+ TEMP is set.
+
+ * win32/win32.c (rb_w32_telldir, rb_w32_seekdir): should use long,
+ as defined by SUSv3.
+
+Wed Mar 11 13:03:12 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/dl/handle.c (rb_dlhandle_sym): fixed heap corruption.
+ [ruby-core:22822]
+
+Wed Mar 11 06:12:47 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ruby.c (ruby_init_loadpath_safe): expands libpath and removes
+ last /lib.
+
+Wed Mar 11 04:47:47 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * time.c (time_to_i, time_hash): time_t may be bigger than long
+ and int.
+
+ * time.c (time_timeval, rb_time_timeval, obj2nsec, time_strftime),
+ (time_mdump, time_mload): suppress warnings.
+
+ * win32/Makefile.sub (config.h): added TIMET2NUM and NUM2TIMET.
+
+Wed Mar 11 04:29:52 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * win32/win32.c: suppress warnings. based on a patch from Charlie
+ Savage at [ruby-core:22804].
+
+Wed Mar 11 04:22:12 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * signal.c (sig_trap): suppress warnings.
+
+Tue Mar 10 20:07:45 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * win32/Makefile.sub (WARNFLAGS): uses -wd4996 instead of
+ CRTDEFFLAGS. cf. [ruby-core:22725]
+
+Tue Mar 10 19:58:52 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * include/ruby/win32.h (strcasecmp, strncasecmp): use _ prefixed
+ versions to suppress warnings.
+
+ * ext/dl/callback/mkcallback.rb (DLTYPE[FLOAT]): cast to suppress
+ warnings. [ruby-core:22792]
+
+ * array.c, bignum.c, gc.c, numeric.c, string.c, util.c, insns.def,
+ missing/crypt.c, missing/vsnprintf.c, : suppress warnings.
+ [ruby-core:22792]
+
+Tue Mar 10 13:45:54 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * win32/Makefile.sub (LDFLAGS): moved -link to TRY_LINK, LINK_SO
+ and so on. based on a patch by Charlie Savage at
+ [ruby-core:22794]
+
+ * win32/Makefile.sub (config.h): passes LDFLAGS to rbconfig.rb so
+ that extconf.rb could refer it. [ruby-core:22725]
+
+Tue Mar 10 11:36:32 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * iseq.c (prepare_iseq_build): too few arguments to function
+ rb_ary_tmp_new().
+
+Tue Mar 10 10:53:59 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * iseq.c (rb_iseq_compile_with_option): argument may be converted.
+
+Tue Mar 10 04:56:44 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (MINIRUBY): keep macro into Makefile.
+
+ * configure.in (RUBY_CHECK_SIZEOF): fix for fallback.
+
+ * configure.in (MANGLED_PATH): defines for RUBYLIB_PREFIX.
+
+ * ruby.c (ruby_init_loadpath_safe): uses string as buffer.
+
+ * symbian/setup (config_h): defines MANGLED_PATH.
+
+Tue Mar 10 03:48:27 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/dl/callback/depend: fix for parallel build.
+
+ * ext/dl/callback/extconf.rb: callback.h is no longer created.
+
+ * ext/dl/callback/mkcallback.rb: creates main source first.
+
+ * ext/dl/callback/extconf.rb ($distcleanfiles): added callback.c.
+
+Tue Mar 10 00:06:21 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (load_relative): new option to enable load path
+ relative to libruby_so.
+
+ * ruby.c (ruby_init_loadpath_safe): added the case using dladdr().
+
+Mon Mar 9 16:49:13 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/rake: updated to rake code to rake-0.8.4 source code base.
+
+Mon Mar 9 16:03:37 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/rubygems/installer.rb (Gem::Installer#initialize): env may
+ not be under /usr/bin.
+
+ * lib/rubygems/installer.rb (Gem::Installer#shebang): uses /bin/sh
+ if shebang has any options, since env shebang trick does no
+ work with options.
+
+Mon Mar 9 15:19:55 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * instruby.rb (manpages): use basename to compare and for Tempfile.
+
+Mon Mar 9 14:55:27 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * instruby.rb (default gems): installs default gemspecs.
+
+Mon Mar 9 14:48:08 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/Makefile.sub (OPTFLAGS): simplified. see [ruby-core:22725]
+
+Mon Mar 9 14:33:57 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * instruby.rb: prints names of the directories where files are
+ installed to.
+
+Mon Mar 9 02:25:54 2009 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * test/ruby/test_proc.rb: add some tests.
+
+Mon Mar 9 01:38:00 2009 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * test/ruby/test_enum.rb: add some tests.
+
+Mon Mar 9 01:12:37 2009 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * test/ruby/test_object.rb: add a test for Object#method_missing.
+
+Mon Mar 9 01:11:17 2009 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * test/ruby/test_file_exhaustive.rb: add tests for File#size and
+ File.absolute_path.
+
+Sun Mar 8 23:02:50 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * win32/Makefile.sub (LDFLAGS): always prepends -link.
+
+Sun Mar 8 11:39:57 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (RUBY_CHECK_SIZEOF): dirty hack to compute multiple
+ sizeof, for apple's universal binary.
+
+Sat Mar 7 22:06:03 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (universal_binary): checks if sizes are same on all
+ architectures.
+
+Sat Mar 7 18:45:56 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in: checks if cd really succeeded.
+
+Sat Mar 7 14:24:47 2009 Tanaka Akira <akr@fsij.org>
+
+ * configure.in: don't use CONFIG_SHELL for testing shell feature in
+ Makefile.
+
+Sat Mar 7 14:07:31 2009 Tanaka Akira <akr@fsij.org>
+
+ * configure.in: fix the location of cdcmd.
+
+Sat Mar 7 13:52:01 2009 Tanaka Akira <akr@fsij.org>
+
+ * configure.in: the shell which runs configure may be different from
+ the shell for make. configure likes bash but Makefile specifies
+ SHELL=/bin/sh.
+
+Sat Mar 7 12:31:30 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * test/erb/test_erb.rb: reverted space sensitive test results.
+
+ * test/rdoc/test_rdoc_parser_c.rb: ditto.
+
+ * test/rdoc/test_rdoc_ri_default_display.rb: ditto.
+
+Fri Mar 6 23:35:59 2009 Tanaka Akira <akr@fsij.org>
+
+ * lib/securerandom.rb (SecureRandom.urlsafe_base64): add optional
+ argument to add padding.
+
+Fri Mar 6 19:25:40 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (RUBY_LIB_VERSION_STYLE): sets full or minor style
+ not to show RUBY_VERSION_MAJOR and so on.
+
+ * version.h (RUBY_LIB_VERSION): makes from RUBY_LIB_VERSION_STYLE.
+
+ * configure.in, Makefile.in, win32/Makefile.sub (CHDIR): cd using
+ physical directory.
+
+ * Makefile.in (update-mspec): split from update-rubyspec.
+
+ * win32/Makefile.sub (update-{rubyspec,mspec}): added.
+
+Fri Mar 6 14:28:36 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * Makefile.in, win32/Makefile.sub (INSNS): moved variable
+ definition before rule.
+
+Fri Mar 6 13:47:10 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/rake/loaders/makefile.rb (Rake::MakefileLoader#load): deals with
+ escaped spaces. incorporated from rake 0.8.4.
+
+ * lib/rake/testtask.rb (Rake::TestTask#define): passes each libs
+ as each arguments with expanded. incorporated from rake 0.8.4.
+
+Thu Mar 5 18:36:38 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * numeric.c (flo_to_s): keeps enough precision for round trip.
+ [ruby-core:22325]
+
+Thu Mar 5 17:42:06 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * array.c (rb_ary_fill): doc for Array#fill misses indication
+ about negative value for the start argument. [ruby-core:22497]
+
+Thu Mar 5 16:56:14 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/tmpdir.rb (Dir.tmpdir): not use USERPROFILE, and ignores
+ non-existent directory.
+
+Thu Mar 5 14:52:46 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * win32/win32.c (rb_w32_sysinit): initializes version info first.
+
+ * win32/win32.c (rb_w32_osid): always define for binary compatibility.
+
+Thu Mar 5 11:52:16 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * win32/Makefile.sub (make_insns_rules): rule to make rules for insns.
+
+Thu Mar 5 11:27:16 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * win32/Makefile.sub (miniruby.exe): workaround for a failure of
+ mt.exe on Windows 7 beta. [ruby-talk:330284]
+
+Thu Mar 5 10:32:17 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * test/dl/test_base.rb: Add dragonfly to libc and libm switch.
+
+Thu Mar 5 10:29:10 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * string.c (str_eql): extracted from rb_str_equal and rb_str_eql.
+
+ * string.c (rb_str_chomp_bang): keeps 7bit coderange.
+
+Thu Mar 5 10:10:40 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * include/ruby/encoding.h (enc_initialized_p): ENC_UNINITIALIZED
+ is not defined already.
+
+ * include/ruby/encoding.h (ENC_FROM_ENCINDEX): removed because
+ depending on a static variable.
+
+Thu Mar 5 04:42:52 2009 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * test/ruby/test_array.rb: fix wrong test, and add a test for
+ sort_by!.
+
+Thu Mar 5 04:32:38 2009 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * test/ruby/test_array.rb: add some tests for coverage.
+
+Thu Mar 5 00:06:37 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * win32/README.win32 (Requirement): added unicows.lib and dll.
+
+Wed Mar 4 23:29:56 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in, win32/configure.bat (--enable-win95): new option
+ to enable/disable win95 support.
+
+Wed Mar 4 21:21:51 2009 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * lib/thread.rb (SizedQueue#push): fix limit condition.
+ [ruby-dev:38135]
+
+Wed Mar 4 20:27:10 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (mingw): checks if unicows.lib is available.
+
+ * include/ruby/win32.h (WIN95): moved to config.h
+
+ * win32/Makefile.sub (LIBS): links unicows.lib if available.
+
+ * win32/Makefile.sub (config.h): defines WIN95 only if unicows.lib
+ is available.
+
+ * win32/setup.mak (-unicows-): checks if unicows.lib is available.
+
+Tue Mar 3 17:10:09 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/extmk.rb (extmake): removes object files no longer used and
+ files to be removed by old distclean.
+
+Tue Mar 3 16:51:51 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * ext/dl/win32/lib/win32/resolv.rb: get rid of warning.
+
+ * ext/dl/lib/dl/func.rb: ditto.
+
+Tue Mar 3 16:25:43 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/extmk.rb (extmake), lib/mkmf.rb (create_makefile): $objs and
+ $srcs are always Array or nil now.
+
+Tue Mar 3 15:54:11 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * ext/dl/win32/lib/win32/{registry,resolv}.rb: use dl/import instead
+ of Win32API.
+
+Tue Mar 3 15:53:20 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * ext/dl/lib/dl/func.rb (DL::Function.name): delegate to @cfunc.
+
+Tue Mar 3 15:40:38 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/dl/dl.c (rb_dl_init_callbacks): autoloads callbacks.
+
+ * ext/dl/callback: split from dl.
+
+ * ext/dl/lib/dl/cparser.rb (DL::CParser::parse_signature): fixed
+ variable name.
+
+ * ext/dl/lib/dl/pack.rb (DL::PackInfo): reduced redundant
+ initialization.
+
+ * ext/dl/lib/dl/stack.rb (DL::Stack): ditto.
+
+ * ext/dl/lib/dl/value.rb (DL::ValueUtil#wrap_arg): NULL for nil.
+
+ * test/dl: moved from ext/dl/test.
+
+Tue Mar 3 14:57:28 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * common.mk (main): passes $(MAKE) to mkmain_cmd
+
+ * ext/extmk.rb (command_output): uses arguments to invoke make.
+
+Tue Mar 3 01:56:03 2009 Tanaka Akira <akr@fsij.org>
+
+ * lib/securerandom.rb (SecureRandom.urlsafe_base64): delete padding.
+
+Mon Mar 2 21:39:08 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/sockport.h (SS_LEN): defined unconditionally.
+
+Mon Mar 2 21:26:42 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/ancdata.c (anc_inspect_socket_creds): suppress warnings.
+
+Mon Mar 2 21:13:42 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/ancdata.c (rsock_discard_cmsg_resource): defined
+ unconditionally.
+
+Mon Mar 2 21:06:40 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/raddrinfo.c (addrinfo_mload): don't use "sun" variable
+ for Solaris.
+
+Mon Mar 2 21:01:36 2009 Tanaka Akira <akr@fsij.org>
+
+ * file.c: include fcntl.h for O_RDONLY on Solaris.
+
+Mon Mar 2 19:43:02 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/uri/common.rb (URI::Parser#escape): escaped string is ascii
+ only.
+
+ * lib/uri/common.rb (URI::Parser#unescape): converts bytewise.
+ [ruby-dev:38005], [ruby-dev:38110]
+
+Mon Mar 2 16:40:11 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * README.EXT, README.EXT.ja (Macros): added HAVE_RUBY_*_H.
+
+Mon Mar 2 12:22:12 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * win32/win32.c (init_env): keeps wide chars as wide chars.
+
+Mon Mar 2 11:01:45 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/dl/dl.h (dlerror): fixed on Windows.
+
+ * ext/dl/handle.c (rb_dlhandle_initialize): returns handle to
+ libruby if nil is given on Windows as dlopen.
+
+ * ext/dl/handle.c (rb_dlhandle_sym): get rid of buffer overrun,
+ and try ASCII WINAPI versions too.
+
+Mon Mar 2 10:29:17 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (rb_longjmp), include/ruby/intern.h (ruby_cleanup): fixed
+ prototypes.
+
+Mon Mar 2 00:56:45 2009 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
+
+ * lib/drb/observer.rb: The module observable uses now a hash to
+ store listeners. merged a patch from Alessandro Di Maria in
+ [ruby-core:22560].
+
+Sun Mar 1 22:59:41 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/raddrinfo.c: suppress warnings.
+
+ * ext/socket/socket.c: ditto.
+
+ * ext/socket/unixsocket.c: ditto.
+
+Sun Mar 1 20:57:41 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/ (rsock_getfamily): renamed from rb_sock_getfamily.
+
+Sun Mar 1 19:52:46 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/dl/win32/lib/Win32API.rb (initialize): passes res
+ arguments to DL.
+
+Sun Mar 1 19:38:59 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/zlib/zlib.c (zstream_run): suppress a warning. a patch from
+ Charlie Savage at [ruby-core:22607].
+
+Sun Mar 1 19:36:18 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * util.c (ruby_dtoa): allocates one more byte to get rid of buffer
+ overrun. a patch from Charlie Savage at [ruby-core:22604].
+
+Sun Mar 1 19:10:59 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * common.mk (.y.c): removed extra backslash. [ruby-core:22602]
+
+Sun Mar 1 19:02:03 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/dl/cfunc.c (rb_dlcfunc_call): fix for stdcall and missing
+ argument numbers. [ruby-core:22601]
+
+ * ext/dl/dl.h (DLSTACK_PROTO0_): added.
+
+ * ext/dl/mkcallback.rb (gencallback, gen_callback_file),
+ (rb_dl_init_callbacks): omit stdcall functions unless supported.
+
+ * lib/rubygems/config_file.rb (SHGetFolderPath): stdcall.
+
+Sun Mar 1 17:27:14 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/bigdecimal/bigdecimal.c (gfDebug): uncommented out.
+ [ruby-core:22600]
+
+Sun Mar 1 16:15:31 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * process.c (rb_waitpid): use wait_each() on no waitpid platforms.
+ [ruby-dev:38054]
+
+Sun Mar 1 16:01:01 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * process.c (proc_daemon): stops and restarts timer thread because
+ daemon(3) implies fork(2). [ruby-dev:38055]
+
+Sun Mar 1 15:45:49 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/ (rsock_make_hostent): renamed from sock_make_hostent.
+ (rsock_addrinfo): renamed from sock_addrinfo.
+ (rsock_getaddrinfo): renamed from sock_getaddrinfo.
+ (rsock_socket): renamed from ruby_socket.
+ (rsock_sock_s_socketpair): renamed from sock_s_socketpair.
+ (rsock_connect): renamed from ruby_connect.
+
+ * ext/socket/socket.c (sock_listen): make it static.
+
+Sun Mar 1 15:29:31 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket: add rsock_ prefix.
+
+Sat Feb 28 21:52:37 2009 Tanaka Akira <akr@fsij.org>
+
+ * vm_eval.c (rb_iterate): use volatile to suppress warnings.
+
+ * eval.c (ruby_cleanup): ditto.
+
+Sat Feb 28 20:09:40 2009 Tanaka Akira <akr@fsij.org>
+
+ * eval_error.c (error_print): use volatile to suppress warnings.
+
+ * vm_eval.c (eval_string_with_cref): ditto.
+
+ * thread.c (rb_exec_recursive): ditto.
+
+ * eval_jump.c (rb_exec_end_proc): ditto.
+
+ * eval.c (ruby_exec_node): ditto.
+ (rb_longjmp): ditto.
+
+Sat Feb 28 18:28:58 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/ancdata.c (ancillary_unix_rights): check message type.
+
+Sat Feb 28 16:18:39 2009 Tanaka Akira <akr@fsij.org>
+
+ * lib/net/http.rb: suppress warnings of non-existing instance variable
+ access for SSL.
+
+Sat Feb 28 14:50:47 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/lib/socket.rb (BasicSocket#connect_address): returns ::1
+ if the address is IPv4-mapped IPv6 address for 0.0.0.0 for MacOS X.
+
+Sat Feb 28 00:18:40 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/raddrinfo.c: suppress strict-aliasing warning with
+ gcc version 4.4.0 20090219 (Red Hat 4.4.0-0.21) on Fedora 11 Alpha.
+
+ * ext/socket/socket.c: ditto.
+
+ * ext/socket/unixsocket.c: ditto.
+
+ * ext/socket/sockport.h (SS_LEN): defined.
+ (SET_SS_LEN): ditto.
+
+Fri Feb 27 22:30:18 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/ancdata.c (bsock_recvmsg_internal): close FDs passed by
+ SCM_RIGHTS unless :scm_rights=>true is given.
+ (discard_cmsg): extracted from rsock_discard_cmsg_resource.
+
+Fri Feb 27 22:14:22 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/openssl/lib/openssl/buffering.rb: define Buffering module under
+ OpenSSL. [ruby-dev:37906]
+
+Fri Feb 27 22:09:24 2009 Tanaka Akira <akr@fsij.org>
+
+ * lib/test/unit/assertions.rb: don't define assert_not_* if already
+ overridden.
+
+Fri Feb 27 22:02:34 2009 Tanaka Akira <akr@fsij.org>
+
+ * util.c: fix SEGV by test_time.rb with
+ gcc version 4.4.0 20090219 (Red Hat 4.4.0-0.21) on Fedora 11 Alpha.
+
+Fri Feb 27 18:30:51 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * compile.c (cdhash_type, iseq_set_sequence): should not call
+ methods of the argument of case, to keep the semantics of
+ case/when. [ruby-dev:38079]
+
+Fri Feb 27 18:01:20 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * gc.c (ruby_get_stack_grow_direction): no needs to use thread
+ here, and not initialized yet. [ruby-core:22439]
+
+Fri Feb 27 17:45:25 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * file.c (file_load_ok): checks if regular file, except for the
+ platform disallows to open directories, e.g. dosish.
+ [ruby-dev:38097], [Bug #1221]
+
+Fri Feb 27 14:39:40 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * numeric.c (flo_eq, flo_gt, flo_ge, flo_lt, flo_le, flo_eql): revert
+ isnan() checks for VC++6.
+
+ * insns.def (opt_lt, opt_gt): ditto.
+
+Fri Feb 27 14:23:09 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/ostruct.rb (modifiable): check if really frozen.
+ [ruby-core:22559]
+
+Thu Feb 26 23:14:46 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/lib/socket.rb (BasicSocket#connect_address): new method.
+
+Thu Feb 26 19:29:10 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * hash.c (hash_foreach_iter): fix for prototype.
+
+Thu Feb 26 18:36:09 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * common.mk (INSNS, newline.c, miniprelude.c, prelude.c),
+ (node_name.inc, known_errors.inc): unified from Makefile.in and
+ win32/Makefile.sub.
+
+Thu Feb 26 13:30:34 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * util.c (valid_filename): use our own implementation of open(),
+ close() and unlink().
+
+Thu Feb 26 13:23:20 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * iseq.c (cdhash_each): resurrects internal literals.
+
+Thu Feb 26 10:56:48 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * include/ruby/win32.h (rb_w32_wopen): prototype forgotten.
+
+ * io.c (rb_sysopen_internal): shouldn't replace undefined chars in this
+ case.
+
+Thu Feb 26 01:34:38 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/mkconstants.rb: more MSG_* constants.
+
+Thu Feb 26 00:21:21 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/option.c (sockopt_level): extracted from sockopt_level_m.
+ (sockopt_optname): extracted from sockopt_optname_m.
+ (sockopt_data): apply StringValue.
+ (sockopt_s_linger): new method.
+ (sockopt_linger): new method.
+ (inspect_linger): show onoff value if it is neither 0 nor 1.
+
+Wed Feb 25 23:23:03 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/ancdata.c (ancillary_unix_rights): raise
+ NotImplementedError if no fd passing feature.
+ (ancillary_timestamp): raise NotImplementedError if no timestamp
+ feature.
+
+Wed Feb 25 23:18:53 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/ancdata.c (ancillary_s_unix_rights): new method.
+
+Wed Feb 25 23:01:26 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/unixsocket.c (unix_recv_io): prevent FD leak when 2 fd is
+ sent on LP64 platform.
+
+ * ext/socket/rubysocket.h (rsock_discard_cmsg_resource): declared.
+
+ * ext/socket/ancdata.c (rsock_discard_cmsg_resource): renamed from
+ discard_cmsg_resource. export it.
+
+Wed Feb 25 17:31:32 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * io.c (sysopen_func, rb_sysopen_internal, rb_sysopen): open file
+ by UTF-16'ed filename on Windows.
+
+ * io.c (rb_file_open_generic, rb_io_s_sysopen, rb_io_reopen,
+ argf_next_argv): follow above change.
+
+ * io.c (rb_scan_open_args): no longer need to convert filepath here on
+ Windows.
+
+ * win32/wio32.c (rb_w32_wopen): new function to open file by UTF-16'ed
+ filename.
+
+ * win32/win32.c (rb_w32_open): call rb_w32_open().
+
+Wed Feb 25 15:05:35 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/Makefile.sub (config.status): use un.rb as cp instead of
+ cmd.exe's copy command.
+
+ * lib/mkmf.rb (create_makefile): no longer need to convert path
+ separator when copying file.
+
+Wed Feb 25 12:27:59 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * string.c (rb_str_force_encoding): should clear coderange at changing
+ encoding. [ruby-core:22437]
+
+Wed Feb 25 12:06:09 2009 <nobu@ruby-lang.org>
+
+ * io.c (rb_io_getline_1): enables limit even if rs is given.
+ [ruby-core:22434]
+
+Wed Feb 25 02:28:51 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * string.c (rb_str_chomp_bang): coderange may change.
+ [ruby-core:22414]
+
+Wed Feb 25 02:17:30 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * string.c (rb_str_delete_bang): should recalculate coderange.
+ [ruby-talk:329267]
+
+Wed Feb 25 00:41:21 2009 Akinori MUSHA <knu@iDaemons.org>
+
+ * class.c (rb_scan_args): Allow specifying the number of trailing
+ mandatory arguments right after the number of optional arguments
+ only if the number of leading mandatory arguments is not omitted.
+
+ * ext/socket/tcpserver.c (tcp_svr_init): Make use of it.
+
+Wed Feb 25 00:28:25 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * file.c (rb_file_size): new method added. [ruby-core:22088]
+
+Wed Feb 25 00:15:15 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ext/curses/curses.c (curses_colors): new method added. a patch
+ from Alexander Beisig in [ruby-core:22331].
+
+ * ext/curses/curses.c (curses_color_pairs): ditto.
+
+Wed Feb 25 00:05:13 2009 Akinori MUSHA <knu@iDaemons.org>
+
+ * class.c (rb_scan_args): Revamp rb_scan_args() to compute the
+ number of required and optional arguments precisely to prepare
+ for a more informative error message.
+
+Tue Feb 24 23:58:52 2009 Akinori MUSHA <knu@iDaemons.org>
+
+ * array.c (rb_ary_index, rb_ary_rindex): Emit a warning that a
+ given block is unused when an argument is specified.
+
+Tue Feb 24 22:00:37 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/socket.c (sockaddr_obj): convert fe80:1::1 to fe80::1%1.
+
+Tue Feb 24 19:56:11 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/ancdata.c (ancillary_timestamp): support SCM_BINTIME.
+
+Tue Feb 24 19:45:15 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/ancdata.c (ancillary_timestamp): new method.
+
+Tue Feb 24 19:01:05 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * common.mk (main): split from exts and makes main program after
+ building exts with miniruby, to get rid of overwriting running
+ program. [ruby-core:22339]
+
+ * Makefile.in, win32/Makefile.sub (RUNCMD, MKMAIN_CMD): macros to
+ run script file.
+
+ * ext/extmk.rb (parse_args): added --command-output option which
+ creates script file to make main program.
+
+Tue Feb 24 17:58:07 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * common.mk (ripper.c): exec can't work on Windows.
+
+ * ext/ripper/depend (.SUFFIXES): nmake doesn't have .y by default.
+
+ * Makefile.in (id.h): overwrites unconditionally.
+
+Tue Feb 24 13:13:49 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * missing/vsnprintf.c (BSD_vfprintf): ptrdiff_t may be larger than
+ long.
+
+Tue Feb 24 11:21:50 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * signal.c (rb_disable_interrupt, rb_enable_interrupt): see
+ USE_TRAP_MASK.
+
+Tue Feb 24 10:49:37 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * process.c (rb_waitpid): last argument was missing.
+
+ * process.c (waitall_each): fixed typo. a patch from shinichiro.h
+ <shinichiro.hamaji AT gmail.com> at [ruby-dev:38054].
+
+Tue Feb 24 01:53:40 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * numeric.c (flo_eq): remove unnecessary NaN check using isnan().
+ comparison regarding NaN is false anyway.
+
+ * numeric.c (flo_gt, flo_ge, flo_lt, flo_le, flo_eql): ditto.
+
+Tue Feb 24 01:22:19 2009 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * bootstraptest/test_thread.rb: fix for environment where fork is not
+ available.
+
+Tue Feb 24 01:19:38 2009 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * thread.c (thread_cleanup_func): unlock all locked mutexes even when
+ forking. [ruby-core:22269]
+
+Tue Feb 24 00:54:16 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * insns.def (opt_minus): inline float operation.
+
+ * insns.def (opt_lt, opt_gt): ditto.
+
+Tue Feb 24 00:24:13 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * range.c (range_each): check #succ only when it is really
+ needed. small performance improvement.
+
+ * math.c (Need_Float): call rb_to_float() only when it is really
+ needed. small performance improvement.
+
+Tue Feb 24 00:19:33 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/pathname.rb (Pathname#foreachline): removed wrongly
+ resurrected method. [ruby-dev:38065]
+
+Mon Feb 23 20:39:21 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/ancdata.c (inspect_timespec_as_abstime): new function to
+ show struct timespec.
+ (ancillary_inspect): use it for SCM_TIMESTAMPNS on GNU/Linux.
+
+Mon Feb 23 20:30:06 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/ancdata.c (inspect_bintime_as_abstime): new function to
+ show struct bintime.
+ (ancillary_inspect): use it for SCM_BINTIME on FreeBSD.
+
+ * ext/socket/mkconstants.rb: define SCM_BINTIME.
+
+Mon Feb 23 20:18:49 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/ancdata.c (inspect_timeval_as_abstime): use time_t
+ variable to avoid a warning on environments which use long as
+ tv_sec as NetBSD.
+
+Mon Feb 23 15:53:30 2009 Akinori MUSHA <knu@iDaemons.org>
+
+ * array.c (rb_ary_index, rb_ary_rindex): We know that argc is not
+ zero when we reach here.
+
+ * array.c (rb_ary_initialize, rb_ary_index): Shrink a double
+ space. (NFC)
+
+Mon Feb 23 14:47:04 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/fileutils.rb (mv): added description for the case of
+ different partitions. [ruby-talk:329072]
+
+Mon Feb 23 10:19:41 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * include/ruby/ruby.h (USE_SYMBOL_AS_METHOD_NAME): Module#methods,
+ #singleton_methods and so on return Symbols. [ruby-talk:328775]
+
+Mon Feb 23 10:15:35 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * README.EXT, README.EXT.ja: added macros for the Compatibilities.
+
+Mon Feb 23 03:19:37 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/mkconstants.rb: define SO_TIMESTAMPNS and SCM_TIMESTAMPNS
+ if available.
+
+Mon Feb 23 02:54:31 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/ancdata.c (ancillary_inspect): use SCM_TIMESTAMP instead
+ of SO_TIMESTAMP. SCM_TIMESTAMP != SO_TIMESTAMP on MacOS X.
+
+Mon Feb 23 02:44:42 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/ancdata.c (inspect_timeval_as_abstime): new function.
+ (ancillary_inspect): use it for SO_TIMESTAMP.
+
+Mon Feb 23 02:26:44 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/option.c (inspect_timeval_as_interval): renamed from
+ inspect_timeval.
+
+Mon Feb 23 02:10:09 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/option.c (inspect_timeval): fix the size test.
+
+Sun Feb 22 22:42:20 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * string.c (tr_trans): should recalculate coderange.
+ [ruby-core:22326] (reopened at [ruby-core:22328])
+
+Sun Feb 22 20:09:29 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/option.c (inspect_linger): message refined.
+
+Sun Feb 22 19:28:08 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/init.c (s_recvfrom): use rb_io_wait_readable after
+ recvfrom.
+
+Sun Feb 22 18:40:04 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/option.c (inspect_errno): new function.
+ (sockopt_inspect): use inspect_errno for SO_ERROR.
+
+Sun Feb 22 15:11:51 2009 Tanaka Akira <akr@fsij.org>
+
+ * re.c (Init_Regexp): define Regexp::FIXEDENCODING. [ruby-dev:38066]
+
+Sun Feb 22 14:33:06 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * string.c (tr_trans): should not be affected by the encoding of
+ replacement unless actually modified. [ruby-talk:328967]
+ [ruby-core:22326]
+
+Sun Feb 22 13:38:44 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/socket/init.c (s_recvfrom_nonblock): handles EAGAIN too.
+
+ * ext/socket/init.c (s_accept_nonblock): ditto, and EPROTO depends
+ on platforms.
+
+Sun Feb 22 13:03:12 2009 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * eval.c (ruby_options): the evaluator now expects iseq instead of tree.
+
+ * ruby.c (ruby_process_options): ditto.
+
+Sun Feb 22 13:03:14 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * Makefile.in (configure): unset PWD to use symlink to building
+ directory.
+
+ * Makefile.in (up): cd doesn't need LC_TIME, VCS needs.
+
+Sun Feb 22 10:43:57 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * vm_eval.c (method_missing): should not pop cfp if missing method
+ is method_missing. [ruby-core:22298]
+
+ * vm_eval.c (rb_raise_method_missing): new function to directly
+ raise NoMethodError.
+
+ * vm_insnhelper.c (vm_call_method): fixed the case method_missing
+ is missing.
+
+Sun Feb 22 02:15:40 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/ancdata.c (bsock_recvmsg_internal): handle EMSGSIZE as
+ well.
+
+Sun Feb 22 02:03:46 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/ancdata.c (bsock_recvmsg_internal): check max length
+ overflow.
+
+Sun Feb 22 01:52:30 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/ancdata.c (bsock_recvmsg_internal): don't call
+ discard_cmsg_resource when EMFILE.
+
+Sun Feb 22 01:48:51 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/ancdata.c (bsock_recvmsg_internal): gc when SCM_RIGHTS
+ hit the file descriptor limit.
+
+Sun Feb 22 00:51:58 2009 Tanaka Akira <akr@fsij.org>
+
+ * io.c (io_getpartial): error message describes what should be
+ waited after nonblocking error.
+ (rb_io_write_nonblock): ditto.
+
+ * ext/socket/init.c (s_recvfrom_nonblock): ditto.
+ (s_accept_nonblock): ditto.
+
+ * ext/socket/socket.c (sock_connect_nonblock): ditto.
+
+ * ext/socket/ancdata.c (bsock_sendmsg_internal): ditto.
+ (bsock_recvmsg_internal): ditto.
+
+Sun Feb 22 00:31:42 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/ancdata.c (bsock_recvmsg_internal): check recvmsg error
+ earlier.
+
+Fri Feb 20 23:28:11 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * util.c (rv_alloc, freedtoa): use our normal xmalloc()/xfree() because
+ couldn't free the returned pointer from ruby_dtoa().
+
+ * missing/vsnprintf.c (cvt): receive buffer and use/return it instead
+ of returning the pointer returned from BSD__dtoa().
+
+ * missing/vsnprintf.c (BSD_vfprintf): pass buf to cvt() as the buffer.
+ [ruby-core:22184]
+
+Thu Feb 19 22:59:09 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/ancdata.c (make_io_for_unix_rights): cmsg_len may be
+ bigger than msg_controllen on 4.4BSD at least.
+ freeze unix_rights array.
+
+Thu Feb 19 22:17:38 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/ancdata.c (bsock_recvmsg_internal): fix exception.
+
+Thu Feb 19 21:13:03 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/ancdata.c (ancillary_unix_rights): method renamed.
+
+Thu Feb 19 15:47:11 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * template/fake.rb.in: extracted from Makefile.in.
+
+ * configure.in (fake.rb): prefixed with $(arch)-.
+
+Thu Feb 19 15:39:50 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/openssl/ossl_ocsp.c (ossl_ocspbres_verify): OCSP_basic_verify
+ returns positive value on success, not non-zero. [ruby-core:21762]
+
+Thu Feb 19 15:17:00 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/tmpdir.rb (@@systmpdir): File.expand_path also joins paths.
+
+Thu Feb 19 15:14:25 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/etc/etc.c (etc_each_group): defines only when Etc::Group is
+ available.
+
+Thu Feb 19 15:11:40 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval_intern.h (translit_char): moved from ruby.c.
+
+ * load.c (load_ext): transliterates file separators and back if
+ needed.
+
+ * symbian/setup (DLN_NEEDS_ALT_SEPARATOR): defined.
+
+Thu Feb 19 14:48:12 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in, */Makefile.sub (LOAD_RELATIVE): moved from ruby.c
+
+Thu Feb 19 14:39:53 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (darwin): uses -unexported_symbol option of ld instead
+ of objcopy
+
+ * configure.in (darwin): makes dylib instead of so.
+
+Thu Feb 19 14:22:02 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/mkmf.rb (create_makefile): added phony targets.
+
+ * lib/mkmf.rb (create_makefile): creates target directories before
+ copying. [ruby-core:21958]
+
+ * lib/mkmf.rb (create_makefile): removes directories in the depth
+ order.
+
+Thu Feb 19 13:56:00 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * file.c (rb_home_dir): checks if HAVE_PWD_H. [ruby-dev:38049]
+
+Thu Feb 19 08:45:48 2009 TAKANO Mitsuhiro (takano32) <tak@no32.tk>
+
+ * ext/socket/rubysocket.h: add "#include <sys/stat.h>"
+
+Thu Feb 19 03:42:48 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/ancdata.c (ancillary_rights): new method.
+ (make_io_for_rights): new function to allocate
+ IOs for FDs in SCM_RIGHTS message.
+ (bsock_recvmsg_internal): use make_io_for_rights. So the FDs can be
+ closed by GC.
+
+Thu Feb 19 03:28:59 2009 Akinori MUSHA <knu@iDaemons.org>
+
+ * README.EXT, README.EXT.ja: Improve the document about
+ rb_scan_args() even more.
+
+Thu Feb 19 03:12:51 2009 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * test/ruby/test_file_exhaustive.rb: skip some tests if euid == 0.
+ a patch from Lucas Nussbaum in [ruby-core:22209].
+
+Thu Feb 19 03:00:49 2009 Akinori MUSHA <knu@iDaemons.org>
+
+ * README.EXT, README.EXT.ja: Improve the document about
+ rb_scan_args().
+
+Wed Feb 18 22:47:01 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/ancdata.c (discard_cmsg_resource): new function to close
+ file descriptors in control message.
+ (bsock_recvmsg_internal): call discard_cmsg_resource before retrying
+ recvmsg.
+
+Wed Feb 18 21:47:37 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/ancdata.c (bsock_recvmsg_internal): prevent misalignment.
+
+Wed Feb 18 21:34:30 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/ancdata.c (bsock_sendmsg_internal): prevent misalignment.
+
+Wed Feb 18 21:09:43 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/ancdata.c (bsock_recvmsg_internal): reduce code on
+ environments which have no control message.
+
+Wed Feb 18 20:27:16 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (OBJCOPY): set ac_cv_prog_ac_ct_OBJCOPY to do nothing
+ on cygwin and mingw because symbols are exported by def file.
+
+Wed Feb 18 15:35:36 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * file.c (rb_file_chown): use chown unless HAVE_FCHOWN.
+
+ * io.c (pipe_open): sarg is always used unless HAVE_FORK.
+
+Wed Feb 18 15:23:34 2009 Akinori MUSHA <knu@iDaemons.org>
+
+ * bootstraptest/runner.rb: Use RUBY_DESCRIPTION if defined.
+
+Wed Feb 18 14:33:35 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * array.c (rb_ary_resurrect), string.c (rb_str_resurrect): new
+ functions based on [ruby-dev:37983]
+
+ * insns.def (putstring, duparray): use rb_{ary,str}_resurrect().
+
+ * iseq.c (iseq_data_to_ary): needs to result TS_VALUE.
+
+Wed Feb 18 12:35:31 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * file.c (rb_file_s_extname): fix for spaces before extension.
+ [ruby-dev:38044]
+
+Wed Feb 18 12:00:58 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * file.c (file_expand_path): suppress a warning. named magic
+ numbers.
+
+Wed Feb 18 10:29:12 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * thread.c (thread_start_func_2): do not delete main thread from
+ living_threads. [ruby-core:19385], [ruby-core:22158]
+
+Wed Feb 18 01:05:05 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/openssl: avoid cyclic require.
+
+ * ext/openssl/lib/openssl/ssl-internal.rb: renamed from ssl.rb
+
+ * ext/openssl/lib/openssl/x509-internal.rb: renamed from x509.rb.
+
+ * lib/net/imap.rb: require openssl, instead of openssl/ssl.
+
+ * lib/net/pop.rb: require openssl, instead of openssl/ssl.
+
+ [ruby-dev:38018]
+
+Wed Feb 18 00:55:47 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/etc/etc.c (Etc::Passwd.each, Etc::Group.each): new methods.
+ [ruby-dev:37999]
+
+Tue Feb 17 23:25:01 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/ancdata.c (bsock_sendmsg_internal): make the padding
+ removing only on NetBSD.
+
+Tue Feb 17 19:39:04 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/ancdata.c (bsock_sendmsg_internal): should not remove the
+ last padding of control messages, basically.
+
+Tue Feb 17 12:50:57 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * string.c (rb_str_shared_replace): no need for
+ str_make_independent.
+
+Tue Feb 17 05:41:08 2009 Koichi Sasada <ko1@atdot.net>
+
+ * compile.c: fix to add "ensure" codes across "while" clause
+ before "return" expression. [ruby-dev:37967]
+
+ * bootstraptest/test_flow.rb: add a test.
+
+Tue Feb 17 01:53:35 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/mkconstants.rb: generate rb_define_const directly for
+ rdoc.
+
+ * ext/.document: add socket/constdefs.c.
+
+ * ext/socket/constants.c (sock_define_const): removed.
+ (sock_define_uconst): ditto.
+ (rb_mSockConst): new static variable.
+
+Mon Feb 16 23:14:51 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/ancdata.c (bsock_sendmsg_internal) [OpenBSD]: don't remove
+ the last padding to prevent sendmsg failure in test_udp_server in
+ test/socket/test_socket.rb on OpenBSD 4.4.
+
+Mon Feb 16 21:59:32 2009 Alexander Zavorine <alexandre.zavorine@nokia.com>
+
+ * symbian/setup: Update Symbian config to match recent changes in missing/alloca.c
+
+Mon Feb 16 17:04:14 2009 Akinori MUSHA <knu@iDaemons.org>
+
+ * class.c (rb_scan_args), README.EXT, README.EXT.ja: Add support
+ for specifying the number of the trailing mandatory arguments.
+ Update the documents accordingly. [ruby-dev:37995]
+
+Mon Feb 16 16:46:14 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * debug.c (set_debug_option): added rtc_error option.
+
+ * win32/Makefile.sub (CRTDEFFLAGS): separated from DEFS.
+
+ * win32/win32.c (rtc_error_handler): ignores RTC errors unless
+ rtc_error debug option is given.
+
+ * win32/win32.c (rb_w32_sysinit): suppress useless CRT assertions.
+ [ruby-core:22116]
+
+Sun Feb 15 21:43:44 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/ostruct.rb (OpenStruct#new_ostruct_member): checks if frozen.
+ [ruby-talk:328195], [ruby-core:22142]
+
+Sun Feb 15 21:22:48 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/test/unit/assertions.rb (Test::Unit::Assertions): aliases
+ assert_not_ methods.
+
+Sun Feb 15 16:57:35 2009 Tanaka Akira <akr@fsij.org>
+
+ * lib/securerandom.rb (SecureRandom.urlsafe_base64): new method.
+
+Sun Feb 15 14:58:07 2009 Tanaka Akira <akr@fsij.org>
+
+ * hash.c (hash_i): use Murmurhash.
+
+Sun Feb 15 11:45:29 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * variable.c (rb_define_hooked_variable): suppress false assertion
+ with VC9. [ruby-core:22115]
+
+Sun Feb 15 08:35:33 2009 Tanaka Akira <akr@fsij.org>
+
+ * test/test_pp.rb: extract from lib/pp.rb.
+
+ * test/test_prettyprint.rb: extract from lib/prettyprint.rb.
+
+ * test/test_tsort.rb: extract from lib/tsort.rb.
+
+Sun Feb 15 06:34:22 2009 Tanaka Akira <akr@fsij.org>
+
+ * lib/time.rb (Time.parse): raise ArgumentError if Date._parse don't
+ extract date information. [ruby-core:20912]
+
+Sun Feb 15 04:48:08 2009 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * string.c (rb_hash_uint32, rb_hash_uint, rb_hash_start, rb_hash_end),
+ include/ruby/intern.h: add Murmurhash API. [ruby-dev:37784]
+
+ * complex.c (nucomp_hash), array.c (rb_ary_hash), time.c (time_hash),
+ string.c (rb_str_hash), object.c (rb_obj_hash), range.c
+ (range_hash), struct.c (rb_struct_hash), hash.c (rb_any_hash),
+ rational.c (nurat_hash): use Murmurhash. [ruby-dev:37784]
+
+Sun Feb 15 03:50:21 2009 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * hash.c (rb_hash): always return a fixnum value because a return
+ value of rb_hash may be used as a hash value itself and bignums have
+ no unique VALUE.
+
+ * test/ruby/test_hash.rb: add a test for above.
+
+Sun Feb 15 00:45:41 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * array.c (rb_ary_uniq_bang, rb_ary_uniq): unique by the result of
+ given block. [ruby-dev:37998]
+
+Sun Feb 15 00:39:44 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * array.c (ary_resize_capa): should not overwrite outside embedded
+ array.
+
+Sat Feb 14 20:18:19 2009 Tanaka Akira <akr@fsij.org>
+
+ * test/test_time.rb: extracted from lib/time.rb.
+
+Sat Feb 14 19:20:15 2009 Tanaka Akira <akr@fsij.org>
+
+ * lib/pathname.rb: obsolete methods removed.
+ [ruby-core:21564]
+
+Sat Feb 14 15:46:01 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/pathname.rb (Pathname#binread): added. [ruby-dev:37952]
+
+Sat Feb 14 13:14:18 2009 TAKANO Mitsuhiro (takano32) <tak@no32.tk>
+
+ * iseq.c: remove nil parameter from Proc#parameters
+ after rest appeared.
+
+Sat Feb 14 07:23:52 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * string.c (rb_external_str_new_with_enc): change evaluation order
+ for speed.
+
+Sat Feb 14 02:20:04 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/sockport.h (SET_SA_LEN): cast to void for suppressing a
+ warning.
+
+Fri Feb 13 23:37:10 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/dl/win32/lib/Win32API.rb (Win32API#initialize): DL.dlopen
+ raises DLError.
+
+Fri Feb 13 21:13:19 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/socket.c (Init_socket): define TCPServer#listen and
+ UNIXServer#listen here for rdoc.
+
+Fri Feb 13 20:59:48 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/ancdata.c (extract_ipv6_pktinfo): set sa_len for 4.4BSD.
+
+Fri Feb 13 15:34:18 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * iseq.c (simple_default_value): removed. default values of optional
+ parameters are not available still now. [ruby-dev:37980]
+
+Fri Feb 13 15:11:11 2009 Koichi Sasada <ko1@atdot.net>
+
+ * vm_eval.c (eval_string_with_cref): use rb_vm_get_ruby_level_next_cfp()
+ instead of vm_get_ruby_level_caller_cfp(). checking a upper frame
+ is not enough. [ruby-dev:37984]
+
+ * proc.c, vm_core.h: declare rb_vm_get_ruby_level_next_cfp()
+ on vm_core.h.
+
+Fri Feb 13 15:01:40 2009 Koichi Sasada <ko1@atdot.net>
+
+ * cont.c (rb_fiber_alive_p): fix to return true instead of 0.
+ [ruby-dev:37991]
+
+ * test/ruby/test_fiber.rb: add a test for Fiber#alive?
+
+Fri Feb 13 09:43:19 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (ac_cv_func_flock): using flock defined in
+ win32/win32.c on mingw.
+
+Fri Feb 13 01:45:17 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * compile.c (iseq_set_sequence, compile_dstr_fragments),
+ (iseq_compile_each): hides other internal objects.
+
+ * compile.c (iseq_compile_each): just freeze xstr.
+
+Fri Feb 13 00:48:42 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * insns.def (defineclass): try to autoload const to be overridden.
+
+Thu Feb 12 23:22:29 2009 Tanaka Akira <akr@fsij.org>
+
+ * test/socket/test_socket.rb (test_udp_server): filter out unreachable
+ addresses. [ruby-dev:37970]
+
+Thu Feb 12 22:51:18 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * compile.c (hide_obj): OBJ_FREEZE() is not an expression. a patch
+ from nagachika <nagachika00 AT gmail.com> at [ruby-dev:37977].
+
+ * compile.c (insn_set_sc_state): fixed typo.
+
+Thu Feb 12 12:36:35 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/basicsocket.c (bsock_getpeereid): implemented for Solaris
+ using getpeerucred.
+
+ * ext/socket/extconf.rb: check ucred.h and getpeerucred.
+
+ * ext/socket/rubysocket.h: include ucred.h if available.
+
+Thu Feb 12 19:42:33 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * compile.c (compile_array_, defined_expr, iseq_compile_each): hide
+ and freeze internal literal objects, to prevent from modifying.
+ [ruby-dev:37959]
+
+ * iseq.c (insn_operand_intern): copy internal literal objects.
+
+ * insns.def (putstring, duparray): ditto.
+
+ * string.c (rb_str_replace): exported.
+
+Thu Feb 12 17:17:51 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/stringio/stringio.c (strio_ungetc): calculates new position
+ before reallocation. [Bug#1099]
+
+Thu Feb 12 16:50:27 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in: a patch to build on GNU/kOpenSolaris from Rober
+ Millan at [ruby-core:21888].
+
+Thu Feb 12 15:28:04 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * iseq.c (simple_default_value): allow plain strings as default
+ values.
+
+Wed Feb 11 18:09:41 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * gc.c (define_final, undefine_final): shouldn't add/remove finalizer
+ of frozen objects.
+
+ * gc.c (undefine_final): should remove FL_FINALIZE flag.
+ [ruby-dev:37964] (also see [ruby-dev:37959])
+
+Wed Feb 11 17:37:41 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/lib/socket.rb (Socket.udp_server_sockets): call the block
+ if given. close the sockets when the block exits.
+ (Socket.udp_server_loop): use udp_server_sockets in block form.
+
+Wed Feb 11 17:34:16 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/lib/socket.rb (Socket.tcp_server_sockets): call the block
+ if given. close the sockets when the block exits.
+ (Socket.tcp_server_loop): use tcp_server_sockets in block form.
+
+Wed Feb 11 17:01:52 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/lib/socket.rb (Socket.unix_server_loop): use
+ unix_server_socket with a block.
+
+Wed Feb 11 16:54:26 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/lib/socket.rb (Socket.unix_server_socket): close the
+ socket when the block exits.
+
+Wed Feb 11 16:50:59 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/lib/socket.rb (Socket.unix_server_socket): call the block
+ if given. remove the socket file when the block exits.
+
+Wed Feb 11 16:44:20 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/ancdata.c (ancillary_s_ip_pktinfo): make 3rd argument
+ optional.
+
+Wed Feb 11 15:47:10 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * array.c (ary_make_shared): returns shared root array itself, and
+ frozen array can be shared.
+
+Wed Feb 11 14:46:16 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * insns.def (setspecial, putstring): fixed typos in rdoc.
+
+ * insns.def (toregexp): uses rb_ary_tmp_new(), and clears it after
+ used.
+
+Wed Feb 11 14:08:23 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/ancdata.c (anc_inspect_socket_rights): return 1 on
+ success. 0 on failure.
+ (anc_inspect_passcred_credentials): ditto.
+ (anc_inspect_socket_creds): ditto.
+ (anc_inspect_socket_creds): ditto.
+ (anc_inspect_socket_creds): ditto.
+ (anc_inspect_ip_recvdstaddr): ditto.
+ (anc_inspect_ip_pktinfo): ditto.
+ (anc_inspect_ipv6_pktinfo): ditto.
+ (ancillary_inspect): check family.
+
+Wed Feb 11 12:55:07 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/ancdata.c (anc_inspect_ip_pktinfo): make result bit
+ succinct.
+ (Init_ancdata): fix number of arguments.
+
+Wed Feb 11 11:47:41 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/ipsocket.c (Init_ipsocket): undef getpeereid at IPSocket.
+
+Wed Feb 11 10:16:34 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/extconf.rb: check getpeereid.
+
+ * ext/socket/basicsocket.c (bsock_getpeereid): new method.
+
+Wed Feb 11 09:58:59 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/lib/socket.rb (Socket::UDPSource#inspect): fix variable
+ name.
+
+Wed Feb 11 00:38:16 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/socket.c (sock_gethostname): use HOST_NAME_MAX.
+
+ * ext/socket/raddrinfo.c (make_ipaddr): local variable renamed.
+
+Tue Feb 10 23:44:53 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/init.c (struct recvfrom_arg): use struct
+ sockaddr_storage.
+ (recvfrom_blocking): follow struct recvfrom_arg change.
+ (s_recvfrom): ditto.
+ (s_recvfrom_nonblock): use struct sockaddr_storage.
+
+ * ext/socket/socket.c (sock_accept): use struct sockaddr_storage.
+ (sock_accept_nonblock): ditto.
+ (sock_sysaccept): ditto.
+
+ * ext/socket/ancdata.c (bsock_recvmsg_internal): use struct
+ sockaddr_storage.
+
+Tue Feb 10 23:30:32 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/basicsocket.c (bsock_getpeername): use struct
+ sockaddr_storage.
+ (bsock_local_address): ditto.
+ (bsock_remote_address): ditto.
+
+Tue Feb 10 21:26:33 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/lib/socket.rb (Socket.udp_server_sockets): new method.
+ (Socket.udp_server_loop_on): new method.
+ (Socket.udp_server_loop): new method
+ (Socket.ip_sockets_port0): extracted from tcp_server_sockets_port0.
+ (Socket::UDPSource): new class.
+
+Tue Feb 10 21:14:43 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/socket.c (sockaddr_obj): fill pfamily.
+
+Tue Feb 10 21:09:23 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/option.c (sockopt_s_bool): new method.
+ (sockopt_bool): new method.
+
+Tue Feb 10 20:58:47 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/option.c (sockopt_family_m): renamed from sockopt_family.
+ (sockopt_level_m): renamed from sockopt_level.
+ (sockopt_optname_m): renamed from sockopt_optname.
+ (inspect_local_peercred): follow the renaming.
+ (Init_sockopt): ditto.
+
+Tue Feb 10 20:56:07 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/ancdata.c (anc_inspect_socket_creds): refactored to avoid
+ a rb_str_cat2 call.
+
+Tue Feb 10 04:34:38 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (when): makes parentheses balanced.
+
+Tue Feb 10 01:28:49 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/ancdata.c (ip_cmsg_type_to_sym): renamed from
+ cmsg_type_to_sym.
+
+Tue Feb 10 01:22:56 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/option.c (sockopt_inspect): refactored.
+
+Tue Feb 10 01:02:16 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/mkconstants.rb: generate intern_family_noprefix.
+
+ * ext/socket/option.c (sockopt_inspect): use intern_family_noprefix
+ not to show AF_ prefix.
+
+ * ext/socket/ancdata.c (ancillary_inspect): ditto.
+
+Mon Feb 9 23:21:29 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/constants.c (level_arg): use unknown_level_to_int for
+ non internet protocol.
+ (optname_arg): use only so_optname_to_int for non internet protocol.
+ (cmsg_type_arg): use only scm_optname_to_int for non internet
+ protocol.
+
+ * ext/socket/mkconstants.rb: generate unknown_level_to_int.
+ rename iplevel_to_int to ip_level_to_int.
+
+Mon Feb 9 23:04:27 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/mkconstants.rb: rename level_to_int to iplevel_to_int.
+ rename intern_level to intern_iplevel.
+
+ * ext/socket/constants.c: follow the renaming.
+
+ * ext/socket/option.c: ditto.
+
+ * ext/socket/ancdata.c: ditto.
+
+Mon Feb 9 22:52:13 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/rubysocket.h (level_arg): add family argument.
+ (optname_arg): ditto.
+ (cmsg_type_arg): ditto.
+ (rb_sock_getfamily): declared.
+
+ * ext/socket/constants.c (level_arg): add family argument.
+ (optname_arg): ditto.
+ (cmsg_type_arg): ditto.
+
+ * ext/socket/init.c (rb_sock_getfamily): defined.
+
+ * ext/socket/option.c (sockopt_initialize): give family for level_arg
+ and optname_arg.
+ (sockopt_s_int): ditto.
+
+ * ext/socket/basicsocket.c (bsock_setsockopt): ditto.
+ (bsock_getsockopt): ditto.
+
+ * ext/socket/ancdata.c (ancillary_initialize): ditto.
+ (ancillary_s_int): ditto.
+ (ancillary_cmsg_is_p): ditto.
+ (bsock_sendmsg_internal): ditto.
+ (bsock_recvmsg_internal): use rb_sock_getfamily.
+
+Mon Feb 9 21:48:59 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/ancdata.c (ancillary_inspect): show address family.
+
+Mon Feb 9 20:19:36 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/basicsocket.c (bsock_getsockname): use sockaddr_storage.
+
+Mon Feb 9 20:11:55 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/win32ole/win32ole.c (load_conv_function51932): fixed for the
+ case IMultiLanguage is not available. [ruby-dev:37950]
+
+Mon Feb 9 20:04:35 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/option.c (inspect_int): return 1/0 on success/failure.
+ (inspect_uint): ditto.
+ (inspect_linger): ditto.
+ (inspect_socktype): ditto.
+ (inspect_timeval): ditto.
+ (inspect_peercred): ditto.
+ (inspect_local_peercred): ditto.
+ (sockopt_inspect): refactored.
+
+Mon Feb 9 20:00:26 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/mkconstants.rb: more constants for Solaris.
+
+Mon Feb 9 19:59:18 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/basicsocket.c (bsock_getsockopt): refine address family
+ examination.
+
+Mon Feb 9 19:52:32 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/option.c (sockopt_initialize): argument conversion
+ reordered.
+
+Mon Feb 9 19:46:22 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/ancdata.c (ancillary_initialize): add family argument.
+ (ancdata_new): ditto.
+ (ancillary_s_int): ditto.
+ (ancillary_family): new function.
+ (ancillary_family_m): new method.
+ (ancillary_s_ip_pktinfo): follow ancdata_new change.
+ (ancillary_s_ipv6_pktinfo): ditto.
+ (bsock_recvmsg_internal): examine the socket address family.
+
+Mon Feb 9 11:31:09 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * io.c (io_encoding_set): ignore second argument when external and
+ internal are same. [ruby-dev:37939]
+
+Mon Feb 9 09:05:12 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/option.c (inspect_local_peercred): check version.
+ (sockopt_inspect): suppress warning.
+
+Mon Feb 9 02:04:03 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/option.c (inspect_peercred): struct ucred contains
+ effective uid/gid.
+
+Mon Feb 9 00:44:45 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/option.c (sockopt_inspect): add ifdef guard for
+ LOCAL_PEERCRED.
+
+Mon Feb 9 00:37:06 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/option.c (inspect_local_peercred): cr_uid is a effective
+ uid, not a real uid.
+
+Mon Feb 9 00:30:56 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/extconf.rb: check sys/param.h and sys/ucred.h.
+
+ * ext/socket/rubysocket.h: include sys/param.h and sys/ucred.h.
+
+ * ext/socket/option.c (inspect_local_peercred): new function to show
+ LOCAL_PEERCRED socket option on FreeBSD.
+ (sockopt_inspect): show as LOCAL_* socket option if AF_UNIX and level
+ is 0.
+
+Mon Feb 9 00:01:47 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/rubysocket.h (sockopt_new): add family argument.
+
+ * ext/socket/option.c (sockopt_initialize): add vfamily argument.
+ (sockopt_new): add family argument and record it in the object.
+ (sockopt_family): new method.
+ (sockopt_s_int): add vfamily argument.
+ (sockopt_inspect): show family.
+
+ * ext/socket/basicsocket.c (bsock_getsockopt): check address family
+ using getsockname.
+
+Sun Feb 8 23:37:17 2009 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * enumerator.c (enumerator_with_index): receives one argument which
+ represents a start offset. [ruby-dev:37921]
+
+Sun Feb 8 23:28:05 2009 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * include/ruby/st.h, st.c: order entries by a linked list instead of
+ a loop to fix iteration miss when hash is modified during iteration.
+ [ruby-dev:37910]
+
+Sun Feb 8 23:22:35 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/option.c (inspect_peercred): new function to show
+ SO_PEERCRED socket option on GNU/Linux.
+
+Sun Feb 8 22:44:20 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * include/ruby/backward/rubysig.h (rb_thread_blocking_region_begin),
+ (rb_thread_blocking_region_end): marked as deprecated.
+
+ * include/ruby/backward/rubysig.h (TRAP_BEG): fix for C++. a
+ patch from Aman Gupta at [ruby-core:21934]
+
+Sun Feb 8 21:47:50 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/extconf.rb: check struct cmsgcred.
+
+ * ext/socket/ancdata.c (anc_inspect_passcred_credentials): add
+ "(ucred)".
+ (anc_inspect_socket_creds): show struct cmsgcred too, for FreeBSD.
+
+Sun Feb 8 21:05:35 2009 Tanaka Akira <akr@fsij.org>
+
+ * lib/drb/extservm.rb (DRb::ExtServManager#invoke_service_command):
+ detach spawned process. [ruby-dev:37936]
+
+Sun Feb 8 20:30:29 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/extconf.rb: check struct sockcred.
+
+ * ext/socket/ancdata.c (anc_inspect_socket_creds): new function to
+ show SCM_CREDS on NetBSD.
+
+Sun Feb 8 19:05:24 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * include/ruby/backward/rubysig.h: extern "C" was missing.
+ [ruby-core:21929]
+
+Sun Feb 8 18:46:15 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/ancdata.c (anc_inspect_passcred_credentials): new
+ function to show SCM_CREDENTIALS on GNU/Linux.
+
+Sun Feb 8 18:34:43 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * io.c (rb_io_s_binread): ensures file path. [ruby-dev:37940]
+
+Sun Feb 8 13:52:02 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/raddrinfo.c (init_unix_addrinfo): add socktype argument.
+ (addrinfo_initialize): follow init_unix_addrinfo change.
+ (addrinfo_s_unix): add optional argument: socktype
+
+Sun Feb 8 13:09:32 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (RUBY_APPEND_OPTION, RUBY_APPEND_OPTIONS),
+ (RUBY_PREPEND_OPTION, RUBY_PREPEND_OPTIONS): add option(s)
+ without duplication.
+
+ * configure.in (RUBY_DEFINE_IF): changed parameter order, now
+ condition comes first.
+
+ * configure.in (universal_binary): checks architecture macros, and
+ improved thin load paths.
+
+Sun Feb 8 09:41:47 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * runruby.rb: gets extout and arch from rbconfig.rb.
+
+Sat Feb 7 21:26:15 2009 Tanaka Akira <akr@fsij.org>
+
+ * test/socket/test_addrinfo.rb (test_family_addrinfo): don't use
+ www.ruby-lang.org.
+ http://d.hatena.ne.jp/nagachika/20090204/working_for_0f0e
+
+Sat Feb 7 18:02:48 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (--with-arch): added new option to support
+ universal binary. replaced --enable-fat-binary option which
+ didn't work actually.
+
+ * configure.in (RUBY_FUNC_ATTRIBUTE): added conditional test.
+
+ * configure.in (ac_cv_type_getgroups): declared because getgroups()
+ fills rest of the buffer with garbage on Rosetta.
+
+ * configure.in (alloca): defines only for powerpc, but always
+ create empty object to suppress ld warning.
+
+ * configure.in (LIBRUBY_DLDFLAGS): set compatibility version with
+ TEENY.
+
+ * configure.in (CFLAGS, LDFLAGS): separates ARCH_FLAG.
+
+ * configure.in (arch): renamed to "universal" from "fat".
+
+ * Makefile.in (ARCH_FLAG): added.
+
+ * include/ruby/defines.h (WORDS_BIGENDIAN): uses
+ AC_APPLE_UNIVERSAL_BUILD.
+
+ * missing/alloca.c (alloca): defines only if C_ALLOCA is defined.
+
+Sat Feb 7 12:31:03 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * runruby.rb: added --precommand and --show options.
+
+ * runruby.rb: added --cpu option.
+
+ * runruby.rb: skips version check in rbconfig.rb.
+
+Sat Feb 7 11:44:06 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/mkmf.rb (have_header): needs dependent headers if trying to
+ compile.
+
+ * ext/socket/extconf.rb: net/if.h depends on other headers.
+
+Sat Feb 7 04:02:37 2009 Tanaka Akira <akr@fsij.org>
+
+ * dir.c (dir_read): don't disable rdoc.
+
+Fri Feb 6 23:28:33 2009 Tanaka Akira <akr@fsij.org>
+
+ * io.c (io_fread): use rb_io_wait_readable for retry
+ avoid Errno::EINTR on ruby -e 'trap(:CHLD) {}; spawn("sleep 1"); STDIN.read'
+
+Fri Feb 6 22:36:11 2009 Alexander Zavorine <alexandre.zavorine@nokia.com>
+
+ * thread_pthread.c (native_thread_create) [__SYMBIAN32__]: reduced pthread stack size.
+
+ * thread_pthread.c (thread_timer) [__SYMBIAN32__]: compiled out unsupported yet signal-related functionality.
+
+ * io.c (pipe_open) [__SYMBIAN32__]: fixed compile time error.
+
+Fri Feb 6 22:11:46 2009 Alexander Zavorine <alexandre.zavorine@nokia.com>
+
+ * include/ruby/defines.h [__SYMBIAN32__]: included <sys/select.h> for fd_set definition
+
+Fri Feb 6 21:58:24 2009 Alexander Zavorine <alexandre.zavorine@nokia.com>
+
+ * symbian/missing-pips.c: added a stub for missing PIPS function execl.
+
+ * process.c (rb_proc_exec) [__SYMBIAN32__]: removed conditional around execl function call.
+
+Fri Feb 6 20:37:42 2009 Tanaka Akira <akr@fsij.org>
+
+ * signal.c (register_sigaltstack): ignore sigaltstack error.
+ It fails on OpenBSD 4.4 when pthread library is linked.
+
+Fri Feb 6 18:18:07 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/win32.c (rb_w32_readdir_with_enc): fallback to OS's conversion
+ when ASCII-8BIT is passed.
+
+Fri Feb 6 17:19:23 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/{dir.h, win32.c} (rb_w32_readdir_with_enc): new function to
+ read entry with specified enc.
+
+ * win32/win32.c (readdir_internal): extract from rb_w32_opendir().
+
+ * win32/win32.c (opendir_internal): extract from rb_w32_readdir().
+
+ * dir.c (dir_read, dir_each): use new READDIR macro instead of readdir()
+ to pass enc for special version of readdir, such as above.
+
+Fri Feb 6 12:11:24 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * ruby.c (process_options): set initial default_external before -r.
+
+Fri Feb 6 12:03:47 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * ruby.c (process_options): -K and -E in shebang should be reflect to
+ default_external. [ruby-dev:37920]
+
+Fri Feb 6 07:52:57 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/pty/pty.c (chfunc): type fixed.
+
+Fri Feb 6 02:51:59 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (rb_str_each_codepoint): update RDoc for
+ String#codepoints. a patch from Radoslaw Bulat in
+ [ruby-core:21835]
+
+Fri Feb 6 01:09:13 2009 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * cont.c (cont_mark, cont_capture, cont_restore_1): use #else instead
+ of #elif. a patch from NISHIMATSU Takeshi <t_nissie at yahoo.co.jp>
+ in [ruby-list:45856].
+
+Thu Feb 5 20:28:27 2009 Tanaka Akira <akr@fsij.org>
+
+ * include/ruby/intern.h (rb_run_exec_options_err): renamed from
+ rb_run_exec_options.
+ (rb_exec_err): renamed from rb_exec.
+ (rb_fork_err): renamed from rb_fork.
+ (rb_spawn_err): renamed from rb_spawn.
+ (rb_run_exec_options): declared with 1.9.1 compatible signature.
+ (rb_exec): ditto.
+ (rb_fork): ditto.
+ (rb_spawn): ditto.
+
+ * process.c (rb_run_exec_options_err): renamed from
+ rb_run_exec_options.
+ (rb_exec_err): renamed from rb_exec.
+ (rb_fork_err): renamed from rb_fork.
+ (rb_spawn_err): renamed from rb_spawn.
+ (rb_run_exec_options): defined.
+ (rb_exec): ditto.
+ (rb_fork): ditto.
+ (rb_spawn): ditto.
+
+ * io.c: follow above change.
+
+ * ext/pty/pty.c: follow above change.
+
+ [ruby-dev:37893]
+
+Thu Feb 5 19:58:40 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket: AddrInfo is renamed to Addrinfo. [ruby-dev:37876]
+
+Thu Feb 5 16:18:13 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (RUBY_SITE_LIB_PATH, RUBY_VENDOR_LIB_PATH): fix for
+ NetBSD.
+
+Thu Feb 5 16:04:29 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/Makefile.sub (config.h): follow recent changes about paths.
+
+Thu Feb 5 14:26:16 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (MAJOR, MINOR, TEENY): uses RUBY_VERSION_*.
+
+ * mkconfig.rb (prefix): uses ruby_version in config.status.
+
+Thu Feb 5 12:24:18 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * array.c (rb_ary_uniq): gets rid of copying.
+
+Thu Feb 5 12:01:53 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * array.c (ary_add_hash): split from ary_make_hash().
+
+ * array.c (ary_make_hash): hide a Hash used internally.
+
+ * array.c (ary_recycle_hash): clears internally used hash. this
+ name came from [ruby-dev:37908].
+
+ * array.c (rb_ary_diff, rb_ary_and, rb_ary_or, rb_ary_uniq_bang):
+ recycle hashes.
+
+Thu Feb 5 11:21:35 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (RUBY_LIB_VERSION): added for library version, to
+ split from core version. [ruby-dev:37748]
+
+ * configure.in (RUBY_LIB_PATH, etc): moved actual version
+ dependent stuff to version.c.
+
+ * ruby.c (ruby_init_loadpath_safe): ditto.
+
+ * version.c (ruby_initial_load_paths): moved initial load path
+ version depending on version from ruby.c.
+
+ * version.h (RUBY_VERSION_{MAJOR,MINOR,TEENY}): now mean library
+ and API version, and reverted to 1.9.1. [ruby-dev:37889]
+
+Thu Feb 5 07:39:33 2009 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
+
+ * ext/readline/readline.c (Init_readline): remove_history(0) may be
+ NULL. [ruby-dev:37891]
+
+Thu Feb 5 03:55:22 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * time.c (LOCALTIME): should call tzset() before localtime_r().
+ [ruby-dev:37896]
+
+Thu Feb 5 02:12:35 2009 Alexander Zavorine <alexandre.zavorine@nokia.com>
+
+ * symbian/configure.bat: Updated Symbian configuration procedure to
+ avoid creating files outside build directory
+
+ * symbian/pre-build: ditto
+
+ * symbian/setup: ditto
+
+ * symbian/rubyu.def: removed
+
+Thu Feb 5 01:44:02 2009 Tanaka Akira <akr@fsij.org>
+
+ * transcode.c (make_econv_exception): refine error message for
+ undefined conversion. [ruby-core:21828]
+
+Thu Feb 5 01:18:25 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/socket.c (sock_s_socketpair): make 3rd argument optional.
+
+ * ext/socket/unixsocket.c (unix_s_socketpair): follow the above
+ change.
+
+ * ext/socket/rubysocket.h (sock_s_socketpair): ditto.
+
+Thu Feb 5 00:09:39 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/raddrinfo.c (addrinfo_ipv6_to_ipv4): new method.
+
+Wed Feb 4 21:59:31 2009 Tanaka Akira <akr@fsij.org>
+
+ * transcode.c (make_econv_exception): show U+XXXX form for undefined
+ conversion error from UTF-8.
+
+Wed Feb 4 21:57:37 2009 Tanaka Akira <akr@fsij.org>
+
+ * string.c (rb_str_dump): use MBCLEN_CHARFOUND_P properly.
+
+Wed Feb 4 21:55:38 2009 Tanaka Akira <akr@fsij.org>
+
+ * bootstraptest/runner.rb: refine success message.
+
+Wed Feb 4 19:10:42 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * Makefile.in (id.h): updates from parse.h.
+
+Wed Feb 4 11:45:06 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/mkexports.rb: shouldn't export DllMain.
+ reported at http://pc11.2ch.net/test/read.cgi/tech/1233686068/21
+
+Wed Feb 4 10:12:05 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * missing/vsnprintf.c (BSD_vfprintf): should support 't' format
+ modifier to handle PRIdPTRDIFF. thanks for the info from
+ Kazuhiro NISHIYAMA. [ruby-core:21807]
+
+Wed Feb 4 01:28:46 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/extconf.rb: fix struct in_pktinfo and struct in6_pktinfo
+ detection.
+
+Wed Feb 4 00:32:59 2009 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * test/etc/test_etc.rb(test_getpwnam, test_getgrgid, test_getgrnam):
+ support an environment that has duplicative entries. a patch from
+ Tomoyuki Chikanaga <chikanag at nippon-control-system.co.jp> in
+ [ruby-dev:37882].
+
+Wed Feb 4 00:17:52 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/lib/socket.rb (Socket.tcp_server_sockets_port0): skip
+ socket creation error.
+
+Tue Feb 3 23:37:08 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ruby.c (load_file_internal): resets EOF flag after parse.
+
+Tue Feb 3 23:13:34 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * vm.c (vm_backtrace): always returns non-nil array if lev is
+ negative. [ruby-core:21795]
+
+Tue Feb 3 21:19:06 2009 TAKAO Kouji <kouji@takao7.net>
+
+ * ext/readline/extconf.rb: checked rl_set_screen_size and
+ rl_get_screen_size.
+
+ * ext/readline/readline.c (readline_s_set_screen_size): added
+ Readline.set_screen_size.
+
+ * ext/readline/readline.c (readline_s_get_screen_size): added
+ Readline.get_screen_size.
+
+Tue Feb 3 21:07:19 2009 TAKAO Kouji <kouji@takao7.net>
+
+ * ext/readline/readline.c (readline_s_set_completion_proc): set
+ default if proc is nil. fix #1095
+
+Tue Feb 3 16:36:06 2009 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
+
+ * array.c (rb_ary_sort_by_bang): RDoc update.
+
+ * NEWS: add Array#sort_by!.
+
+Tue Feb 3 16:23:16 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/lib/socket.rb (Socket.tcp_server_sockets_port0): new
+ private function for allocating same port both IPv4 and IPv6.
+ (Socket.tcp_server_sockets): use tcp_server_sockets_port0 for port 0.
+
+Tue Feb 3 14:12:10 2009 Shugo Maeda <shugo@ruby-lang.org>
+
+ * lib/net/imap.rb: validate data before sending to a server.
+ [ruby-core:20320]
+
+Tue Feb 3 12:35:41 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * re.c (match_array): replace match_check().
+
+ * re.c (match_values_at): ditto.
+
+Tue Feb 3 12:09:08 2009 Shugo Maeda <shugo@ruby-lang.org>
+
+ * lib/net/imap.rb (hmac_md5): should use String#ord to get ascii
+ code from the one-character string.
+
+Tue Feb 3 11:25:41 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * load.c (load_lock): warn for circular require. [ruby-core:20794],
+ [ruby-core:20797]
+
+Tue Feb 3 08:35:12 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/lib/socket.rb (Socket.tcp_server_sockets): extracted from
+ Socket.tcp_server_loop.
+ (Socket.accept_loop): ditto.
+ (Socket.unix_server_socket): extracted from Socket.unix_server_loop.
+ (Socket.unix_server_loop): use Socket.accept_loop.
+
+Tue Feb 3 08:21:05 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * test/ruby/test_readpartial.rb (make_pipe): readpartial does not
+ work in text mode.
+
+Tue Feb 3 08:18:26 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * cygwin/GNUmakefile.in (RUBYDEF): uses mkexports.rb on cygwin too.
+
+ * win32/mkexports.rb (Exports::Cygwin): added.
+
+Tue Feb 3 08:10:23 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * common.mk (Doxyfile): moved from Makefile.in.
+
+ * template/Doxyfile.tmpl: split from Doxyfile.in.
+
+Tue Feb 3 08:01:38 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * win32/win32.c (rb_w32_write): use of cast expressions as lvalues
+ is deprecated.
+
+Tue Feb 3 07:57:58 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/socket/extconf.rb (in_pktinfo, in6_pktinfo),
+ ext/socket/ancdata.c: defined in w32api/ws2tcpip.h on cygwin but
+ cannot compile for some reason.
+
+Tue Feb 3 07:02:11 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * missing/langinfo.c (nl_langinfo_codeset): accepts iso-8859
+ fragment. [ruby-core:21757]
+
+Tue Feb 3 07:01:21 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * mkconfig.rb (patchlevel): config.status may not contain
+ PATCHLEVEL even if other version numbers exist.
+
+Mon Feb 2 23:43:00 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/raddrinfo.c (Init_addrinfo): add AddrInfo#to_s as an
+ alias of AddrInfo#to_sockaddr.
+
+ * ext/socket/option.c (Init_sockopt): add Socket::Option#to_s as an
+ alias of Socket::Option#data.
+
+ [ruby-dev:37873]
+
+Mon Feb 2 21:04:13 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * array.c (rb_ary_sort_by_bang): RDoc update. [ruby-core:21742]
+
+Mon Feb 2 20:49:24 2009 Akinori MUSHA <knu@iDaemons.org>
+
+ * enumerator.c: Introduce id_each to save rb_intern() and SYM2ID()
+ calls.
+
+Mon Feb 2 19:55:51 2009 Tanaka Akira <akr@fsij.org>
+
+ * test/socket/test_addrinfo.rb: use AddrInfo.getaddrinfo to generate
+ IPv6 address. AddrInfo.ip generates IPv4 address for IPv4 mapped
+ IPv6 address if --with-lookup-order-hack=INET.
+ [ruby-dev:37868]
+
+Mon Feb 2 19:17:16 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * doc/NEWS-1.9.1: typo fixed: collect_all -> collect.
+ [ruby-core:21706]
+
+Mon Feb 2 17:23:14 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * cygwin/GNUmakefile.in (dir.o, win32.o): depend on win32/dir.h.
+
+Mon Feb 2 17:13:46 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * mkconfig.rb: patchlevel is sometimes minus.
+
+ * win32/resource.rb: ditto.
+
+Mon Feb 2 17:11:23 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/ancdata.c (cmsg_type_to_sym): add #ifdef for no IPv6
+ environment.
+
+Mon Feb 2 17:05:55 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * file.c (rb_find_file_ext): should not be infected from other
+ load paths.
+
+Mon Feb 2 16:33:06 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * dir.c (dir_s_home): new method. [ruby-core:21454]
+
+Mon Feb 2 16:06:10 2009 Tanaka Akira <akr@fsij.org>
+
+ * version.h: bump up to 1.9.2 patchlevel -1.
+ yugui recommend "-1" strongly.
+
+ * lib/rubygems/version.rb: accept negative patchlevel.
+
+Mon Feb 2 14:53:35 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/socket.c (sock_initialize): make 3rd argument, protocol,
+ optional.
+
+Mon Feb 2 14:47:53 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * array.c (rb_ary_sort_by_bang): new method. requested in
+ [ruby-core:21709]
+
+Mon Feb 2 14:22:56 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * ext/socket/constants.c (cmsg_type_arg): INET6 check.
+
+Mon Feb 2 14:18:20 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/option.c: use INET6 instead of IPV6.
+
+Mon Feb 2 12:47:47 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * ext/socket/{options,raddrinfo}.c: use INET6 instead of AF_INET6 for
+ VC++6.
+
+Mon Feb 2 12:41:52 2009 Shugo Maeda <shugo@ruby-lang.org>
+
+ * complex.c (f_signbit): regard NaN as a positive value.
+ [ruby-dev:37861].
+
+Mon Feb 2 12:39:00 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * sample/test.rb (valid_syntax?), test/ruby/test_system.rb
+ (TestSystem::valid_syntax?): use catch and throw instead of
+ return inside BEGIN block.
+
+Mon Feb 2 11:45:10 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/rubysocket.h (cmsg_type_arg): declared.
+ (Init_ancdata): ditto.
+
+ * ext/socket/init.c (Init_socket_init): call Init_ancdata.
+
+ * ext/socket/constants.c (cmsg_type_arg): defined.
+
+ * ext/socket/depend: add dependency for ancdata.o.
+
+ * ext/socket/mkconstants.rb: generate scm_optname_to_int.
+ more constants.
+
+ * ext/socket/extconf.rb: add ancdata.o.
+
+ * ext/socket/ancdata.c: new file. new method
+ BasicSocket#{sendmsg,sendmsg_nonblock,recvmsg,recvmsg_nonblock}
+
+Mon Feb 2 10:57:27 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/win32.c, win32/dir.h (open_dir_handle, rb_w32_opendir,
+ move_to_next_entry, rb_w32_readdir, check_valid_dir): change backend
+ API from A to W.
+
+Mon Feb 2 10:48:38 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/basicsocket.c (bsock_setsockopt): accept Socket::Option
+ object.
+ (bsock_getsockopt): return Socket::Option object.
+
+ * ext/socket/option.c: new file.
+
+ * ext/socket/rubysocket.h (rb_cSockOpt): declared.
+ (sockopt_new): ditto.
+ (Init_sockopt): ditto.
+
+ * ext/socket/init.c (Init_socket_init): call Init_sockopt.
+
+ * ext/socket/depend: add dependency for option.o
+
+ * ext/socket/mkconstants.rb: generate intern_level, intern_so_optname,
+ intern_ip_optname, intern_ipv6_optname, intern_tcp_optname,
+ intern_udp_optname and intern_scm_optname.
+
+ * ext/socket/extconf.rb: add option.o.
+
+Mon Feb 2 09:49:39 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * vm.c (vm_backtrace_each): progname is not available at
+ initializing phase.
+
+Mon Feb 2 08:12:50 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/xmlrpc/server.rb (Server#serve): gets rid of hardcoded
+ platform names.
+
+ * lib/resolv.rb (Resolv::Hosts::DefaultFileName),
+ (Resolv::DNS::Config.default_config_hash): tries win32/resolv on
+ mswin64 too.
+
+ * lib/rubygems/specification.rb (Gem::Specification#ruby_code):
+ added mswin64.
+
+ * lib/drb/extservm.rb (DRb::ExtServManager#invoke_service_command):
+ spawn is better to start a process in background.
+
+ * ext/extmk.rb: uses FNM_SYSCASE.
+
+ * instruby.rb: installs win32.h on mswin64 platform.
+ [ruby-core:21722]
+
+Mon Feb 2 07:36:13 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * vm.c (vm_backtrace_each): now takes an iterator function.
+
+ * vm_core.h (rb_make_backtrace, rb_backtrace_each): added
+ prototypes.
+
+ * vm_dump.c (rb_vm_bugreport), vm_eval.c (rb_backtrace): gets rid
+ of allocating objects. [ruby-core:21619]
+
+ * vm_eval.c (rb_backtrace_each): new function which iterates over
+ each backtrace info.
+
+Mon Feb 2 06:51:36 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * encoding.c (rb_filesystem_encoding): Windows' filesystem encoding is
+ sometimes ANSI code page and sometimes OEM code page. we should check
+ whether code page is used.
+
+Sun Feb 1 21:27:55 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/raddrinfo.c (addrinfo_ipv4_private_p): new method.
+ (addrinfo_ipv4_loopback_p): ditto.
+ (addrinfo_ipv4_multicast_p): ditto.
+
+Sun Feb 1 16:10:06 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/optparse.rb (Switch#summarize): strips an equal sign from
+ short option, and fills right sides in shorter lines.
+ [ruby-talk:326414]
+
+Sun Feb 1 05:19:43 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * variable.c (rb_const_get_0), vm_insnhelper.c (vm_get_ev_const):
+ avoids infinite self recursion autoload. [ruby-core:21696]
+
+Sat Jan 31 22:50:38 2009 Tanaka Akira <akr@fsij.org>
+
+ * lib/test/unit/assertions.rb (assert_equal): show class in failure
+ message if meaningful.
+
+Sat Jan 31 22:38:46 2009 Tanaka Akira <akr@fsij.org>
+
+ * lib/resolv.rb (Resolv::DNS#each_address): don't query IPv6 address
+ if the host has no global IPv6 address.
+
+Sat Jan 31 22:29:05 2009 Tanaka Akira <akr@fsij.org>
+
+ * include/ruby/ruby.h (STR2CSTR): removed.
+ (rb_str2cstr): removed.
+
+ * object.c (rb_str2cstr): removed.
+
+Sat Jan 31 20:07:59 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/raddrinfo.c (addrinfo_ipv6_unspecified_p): new method.
+ (addrinfo_ipv6_loopback_p): ditto.
+ (addrinfo_ipv6_multicast_p): ditto.
+ (addrinfo_ipv6_linklocal_p): ditto.
+ (addrinfo_ipv6_sitelocal_p): ditto.
+ (addrinfo_ipv6_v4mapped_p): ditto.
+ (addrinfo_ipv6_v4compat_p): ditto.
+ (addrinfo_ipv6_mc_nodelocal_p): ditto.
+ (addrinfo_ipv6_mc_linklocal_p): ditto.
+ (addrinfo_ipv6_mc_sitelocal_p): ditto.
+ (addrinfo_ipv6_mc_orglocal_p): ditto.
+ (addrinfo_ipv6_mc_global_p): ditto.
+
+Sat Jan 31 19:09:30 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * load.c (rb_require_safe): raises when the path to be loaded is
+ tainted. [ruby-dev:37843]
+
+Sat Jan 31 18:08:59 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (optflags): defaulted to -O3 to get rid of slug of
+ gcc 4.3.
+
+Sat Jan 31 18:03:41 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/optparse.rb (List#accept, parse_in_order): n option is no
+ longer needed.
+
+Sat Jan 31 14:12:43 2009 Tanaka Akira <akr@fsij.org>
+
+ * lib/pathname.rb (Pathname#each_child): new method.
+
+Sat Jan 31 00:07:49 2009 Tanaka Akira <akr@fsij.org>
+
+ * lib/test/unit/assertions.rb
+ (Test::Unit::Assertions#assert_nothing_raised): suppress warning.
+ [ruby-core:21312]
+
+Fri Jan 30 21:49:32 2009 Tanaka Akira <akr@fsij.org>
+
+ * lib/pathname.rb (Pathname#realdirpath): new method based on the
+ patch in [ruby-dev:36560] by Akinori MUSHA.
+ [ruby-dev:36290]
+
+Fri Jan 30 18:04:23 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/win32.c (rb_w32_write): limit write size to 32KB if the file
+ seems to be console. [ruby-core:21613]
+
+Fri Jan 30 16:12:32 2009 TAKAO Kouji <kouji@takao7.net>
+
+ * ext/curses/curses.c (Init_curses): Curses#crmode and
+ Curses#nocrmode changes to the module function.
+ fix #916
+
+Fri Jan 30 14:31:14 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * tool/make-snapshot (prereq): remove enc.mk from tarball because
+ BSD make checks $(srcdir)/enc.mk and try to run $(builddir)/enc.mk.
+
+Fri Jan 30 14:11:48 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * enc/depend: extract compile rules to each target for nmake.
+
+Fri Jan 30 12:59:49 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * cygwin/GNUmakefile.in (RUBYDEF): depends on makefiles.
+
+ * cygwin/GNUmakefile.in (RUBYDEF): adds DATA to non-function symbols
+ which is not marked as T.
+
+Fri Jan 30 11:03:31 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/test/unit/assertions.rb (assert_respond_to): gets rid of
+ overcounting. [ruby-dev:37703]
+
+Fri Jan 30 02:55:56 2009 Tanaka Akira <akr@fsij.org>
+
+ * transcode.c (rb_econv_init_by_convpath_i): make it static.
+
+Thu Jan 29 16:22:41 2009 Shugo Maeda <shugo@ruby-lang.org>
+
+ * load.c (rb_feature_provided): should not calculate len by pointer
+ subtraction because feature may be a expanded path.
+ [ruby-core:21267]
+
+Thu Jan 29 14:12:15 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (BASERUBY): erases RUBYOPT at the test.
+
+ * configure.in (OBJCOPY): not used on Windows.
+
+Thu Jan 29 13:16:11 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/securerandom.rb (SecureRandom.uuid): uses unpacked array
+ instead of string, because String#[] returns one length string.
+
+Thu Jan 29 12:29:51 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/rake.rb (FileUtils#rake_system): no longer needs workaround
+ on Windows. [ruby-core:21339]
+
+ * lib/rake/win32.rb (Rake::Win32#rake_system): ditto.
+
+ * lib/rake/win32.rb (Rake::Win32#win32_system_dir): no longer
+ needs environment variables other than APPDATA now.
+
+ * lib/rake.rb (Rake::Application#standard_system_dir): uses
+ platform specific definition on Windows system.
+
+Thu Jan 29 12:18:54 2009 Technorama Ltd. <oss-ruby@technorama.net>
+
+ * lib/securerandom.rb: new method SecureRandom#uuid
+
+Thu Jan 29 11:22:19 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * ext/socket/raddrinfo.c (inspect_sockaddr): if defined AF_INET6,
+ perhaps can inspect IPv6 addresses if not defined INET6.
+
+ * ext/socket/socket.c (socket_s_ip_address_list): support Windows XP
+ or later. (Win2k or earlier is still not supported)
+
+Thu Jan 29 00:24:48 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * ext/zlib/zlib.c (zstream_run): previous change didn't resolve the
+ problem.
+
+Wed Jan 28 22:51:12 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * ext/zlib/zlib.c (zstream_run): desperately guard the variable.
+ [ruby-core:20576]
+
+Wed Jan 28 15:24:11 2009 TAKANO Mitsuhiro (takano32) <tak@no32.tk>
+
+ * math.c: SEGV is caused by implicit rb_to_float declaration
+ test_complexrational.rb: [BUG] in IA-64 architecture
+
+Tue Jan 27 20:02:07 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/init.c (socks_connect_blocking): moved from
+ sockssocket.c. [ruby-dev:37834]
+
+ * sockssocket.c (socks_init): don't omit "int" type.
+
+Tue Jan 27 14:41:33 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * cygwin/GNUmakefile.in (RUBYDEF): needs DATA marks to export
+ non-function symbols. [ruby-core:21582]
+
+ * win32/mkexports.rb (Exports::Mingw#each_export): ditto.
+
+Tue Jan 27 12:59:55 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * ext/ripper/depend: use VPATH.
+ If a platform doesn't support VPATH, Ruby doesn't support it:
+ for example MSYS. [ruby-core:21570]
+
+Tue Jan 27 12:21:17 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * ext/ripper/depend: lex.c's correct path is ../../lex.c.
+
+Tue Jan 27 11:09:45 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/mkmf.rb (try_header): checks the header depending on
+ platform.
+
+ * lib/mkmf.rb (have_header, find_header): use try_header.
+
+ * win32/Makefile.sub (try_header): uses try_compile to get rid of
+ slow -E option of VC.
+
+Tue Jan 27 11:03:52 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * common.mk (distclean-enc, realclean-enc): do not call clean of
+ enc.mk twice or more.
+
+ * enc/depend (cleanobjs): added deffile.
+
+ * lib/mkmf.rb (create_makefile): removes deffile at clean instead
+ of distclean.
+
+ * win32/Makefile.sub (miniruby, LIBRUBY_SO): removes lib and exp
+ files.
+
+ * win32/Makefile.sub (clean, distclean): have moved to common.mk.
+
+ * win32/rmdirs.bat: omits `not empty' message.
+
+Tue Jan 27 10:15:33 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * transcode.c (struct rb_transcoding): added ary member for debug.
+
+Tue Jan 27 10:10:14 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * Doxyfile.in (FILE_VERSION_FILTER, INPUT_FILTER): should not use
+ ./miniruby directly for cross compiling.
+
+Tue Jan 27 04:02:53 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ext/ripper/depend: fixed dependency path to lex.c.
+ [ruby-core:21570]
+
+Tue Jan 27 03:43:34 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * hash.c (rb_any_hash): fixed performance issues with nil, true,
+ false as hash keys. a patch from Matthias Waechter.
+ [ruby-core:21568]
+
+Tue Jan 27 03:23:43 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/mkmf.rb (create_makefile): should point correct path to
+ ruby.h and defines.h. [ruby-core:21569]
+
+Mon Jan 26 16:00:40 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * array.c (rb_ary_aset): fixed arguments evaluation order.
+
+Mon Jan 26 15:49:42 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/pathname.rb (chop_basename, prepend_prefix): use o option.
+
+Sun Jan 25 16:35:44 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/socket.c (socket_s_ip_address_list): renamed from
+ socket_s_list_ip_address. [ruby-dev:37806]
+
+Sun Jan 25 12:17:21 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * cygwin/GNUmakefile.in (RUBYDEF): needs read-only section too.
+
+Sun Jan 25 12:02:56 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * win32/Makefile.sub (clean-ext): condition of EXTS was inverted.
+
+Sun Jan 25 11:50:20 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/mkmf.rb (create_makefile): fixed the variables order because
+ converter proc refers the separator.
+
+Sun Jan 25 11:25:10 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * Makefile.in, win32/Makefile.sub (RMDIRS): remove directory and
+ parents.
+
+ * Makefile.in, win32/Makefile.sub (distclean-rdoc): added to remove
+ temporary rdoc.
+
+ * Makefile.in, win32/Makefile.sub (clean-ext): skips non-existent
+ directories.
+
+ * common.mk (clean, distclean): cleans rdoc.
+
+ * common.mk (clean-extout): removes extout directory.
+
+ * configure.in (RMDIRS, RMALL): added to clean extout.
+
+ * lib/fileutils.rb (FileUtils#rmdir): added :parents option.
+
+ * lib/mkmf.rb (create_makefile): cleans installed files at clean
+ instead of distclean.
+
+ * lib/mkmf.rb (create_makefile): added clean-so and clean-rb.
+
+ * lib/mkmf.rb (def init_mkmf): added DISTCLEANDIRS.
+
+ * lib/un.rb (rmdir): added -p option.
+
+ * tool/rmdirs, win32/rmdirs.bat: removes directory and the parents.
+
+ * win32/rm.bat: added -r option.
+
+Sun Jan 25 09:09:29 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * dir.c (join_path): use strlcat() to force link.
+
+ * dir.c (glob_helper): no strcpy() is needed since len is known.
+
+Sun Jan 25 06:44:58 2009 Technorama Ltd. <oss-ruby@technorama.net>
+
+ * ext/openssl/ossl_ssl.c: Server Name Indication support.
+ new methods SSLContext#server_name_cb=, SSLSocket#hostname=.
+
+ * test/openssl/test_ssl.rb: Tests for above.
+
+Sat Jan 24 08:22:35 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/mkmf.rb (configuration): tools under the top source
+ directory are not installed, so unusable outside extmk.rb.
+
+Fri Jan 23 17:24:31 2009 WATANABE Hirofumi <eban@ruby-lang.org>
+
+ * golf_prelude.rb (Enumerator#inspect): avoid warning.
+
+Fri Jan 23 15:12:52 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/mkmf.rb (mkintpath): new function which converts native path
+ to format acceptable in Makefile.
+
+ * lib/mkmf.rb (configuration): leaves PATH_SEPARATOR unchanged.
+
+ * lib/mkmf.rb (configuration): converts srcdir, topdir and hdrdir.
+ a patch by Alexey Borzenkov <snaury AT gmail.com> at
+ [ruby-core:21448].
+
+ * lib/mkmf.rb (try_func): got rid of c-mode confusion.
+
+Fri Jan 23 13:26:45 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * signal.c (trap_handler): also accepts symbols. [ruby-dev:37823]
+
+Thu Jan 22 18:14:04 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/mkmf.rb (create_makefile): removes installed files under
+ extout at distclean.
+
+Thu Jan 22 17:12:37 2009 Takeyuki FUJIOKA <xibbar@ruby-lang.org>
+
+ * lib/cgi/core.rb (CGI.parse): generate only key on params hash
+ if request have only key uri parameters.
+ (ex. index.cgi?aaa&bbb=1 # params=>{:aaa=>[],:bbb=>["1"]})
+
+ * test/cgi/test_cgi_core.rb: fix test for key only params.
+
+Thu Jan 22 16:29:50 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/rubygems/installer.rb (Gem::Installer#initialize): fixed
+ typos.
+
+ * test/rubygems/test_gem.rb (test_self_dir): removed false
+ assertions.
+
+ * test/rubygems/test_gem.rb (test_self_set_paths): checks if paths
+ are included.
+
+ * test/rubygems/test_gem_commands_install_command.rb
+ (test_execute_remote): checks diagnostic message too.
+
+ * test/rubygems/test_gem_installer.rb (load): uses Gem.ruby.
+
+ * test/rubygems/gemutilities.rb (Gem.ruby): initializes from the
+ environment variable to run without installation.
+
+ * test/rubygems/gemutilities.rb (RubyGemTestCase#util_build_gem):
+ creates cache directory.
+
+Thu Jan 22 16:12:51 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * revert previous revision. it's already out-of-date.
+
+Thu Jan 22 15:54:02 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * include/ruby/win32.h, win32/win32.c (rb_w32_is_valid_fd): new function
+ to validate fd.
+
+ * io.c (rb_io_initialize): check fd with above function.
+
+Thu Jan 22 14:53:29 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * test/ruby/test_process.rb (MANDATORY_ENVS): needs RUBYLIB to run
+ tests without install.
+
+Thu Jan 22 12:19:29 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * gc.c (define_final): cannot define finalizer for immediate
+ values. [ruby-core:21500]
+
+ * gc.c (define_final): freezes or hides internal values.
+
+Thu Jan 22 11:33:08 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * thread.c (rb_time_timeval): made a real prototype. a patch from
+ Marcus Rueckert <darix AT opensu.se> at [ruby-core:21492].
+
+Wed Jan 21 21:43:50 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * io.c (rb_io_ungetbyte, rb_io_ungetc): allows nil to reset EOF
+ flag with ungetting nothing.
+
+ * ruby.c (load_file_internal): rests EOF flag to make possible to
+ load from stdin after reading data.
+
+Wed Jan 21 17:17:18 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * array.c (ary_double_capa): a new function to expand array more
+ aggressively. [ruby-core:21460]
+
+ * array.c (rb_ary_store): use ary_double_capa().
+
+ * array.c (rb_ary_unshift_m): ditto.
+
+ * array.c (rb_ary_splice): ditto.
+
+Wed Jan 21 15:32:15 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * io.c (rb_io_ungetbyte, rb_io_ungetc): clears EOF flag.
+
+Wed Jan 21 14:41:48 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * array.c (take_items): to_ary() raises ArgumentError if cannot to
+ convert to Array. [ruby-dev:37797]
+
+Wed Jan 21 14:32:02 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (debug_lines): calls rb_intern() once.
+
+Wed Jan 21 13:58:17 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * include/ruby/io.h (FMODE_EOF): EOF flag on TTY.
+
+ * io.c (io_set_eof): sets EOF flag for TTY.
+
+ * io.c (io_seek): clears EOF flag.
+
+ * io.c (io_fillbuf): returns EOF if already met EOF. [ruby-dev:37798]
+
+ * io.c (io_fillbuf, io_fread, io_getpartial): sets EOF.
+
+Wed Jan 21 08:22:04 2009 Ryan Davis <ryand-ruby@zenspider.com>
+
+ * lib/minitest/*.rb: Imported minitest 1.3.1 r4532.
+ * test/minitest/*.rb: ditto.
+
+Tue Jan 20 20:16:21 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/socket.c (socket_s_list_ip_address): new method.
+ (sockaddr_obj): new function.
+
+ * ext/socket/rubysocket.h: include ifaddrs.h, sys/ioctl.h,
+ sys/sockio.h, net/if.h if available.
+ (addrinfo_new): declared.
+
+ * ext/socket/raddrinfo.c (addrinfo_new): exported.
+
+ * ext/socket/extconf.rb: check ifaddrs.h, sys/ioctl.h, sys/sockio.h,
+ net/if.h and getifaddrs.
+
+Tue Jan 20 20:05:21 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/rubysocket.h (pseudo_AF_FTIP): moved from mkconstants.rb.
+
+ * ext/socket/mkconstants.rb: prepend header if -H is not given.
+
+Tue Jan 20 17:50:00 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * ext/nkf/nkf-utf8/nkf.c (nkf_buf): use nkf_char.
+
+Tue Jan 20 16:17:12 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * cont.c (ruby_Init_{Continuation_body,Fiber_as_Coroutine}): prefixed
+ with ruby_ to export.
+
+ * ext/continuation/continuation.c, ext/fiber/fiber.c: ditto.
+
+Tue Jan 20 15:32:29 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * Makefile.in (miniruby): renames and then removes, to get rid of
+ EPERM on cygwin and mingw.
+
+ * Makefile.in ($(LIBRUBY_SO)): use wildcard option of objcopy.
+
+ * configure.in (DLDFLAGS): do not export all symbols.
+
+ * cygwin/GNUmakefile.in (RUBYDEF): rejects symbols prefixed with
+ Init_.
+
+ * win32/mkexports.rb (Exports::Mingw): includes all symbols as
+ well as mswin32, except for prefixed with Init_.
+
+Tue Jan 20 13:03:50 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * string.c (hash): fixed the tail bytes handling in the aligned
+ access case.
+
+Tue Jan 20 09:26:05 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * ext/nkf/nkf-utf8/nkf.c (nkf_buf_push): maybe a bug.
+
+ * ext/nkf/nkf-utf8/nkf.c (options): no need to support help option.
+
+Tue Jan 20 06:48:56 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * array.c (take_items), enum.c (enum_zip): tries to convert to
+ array first. [ruby-core:21442]
+
+Tue Jan 20 03:50:37 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * ext/nkf/nkf-utf8/nkf.c: Update nkf to 2.0.9.
+ revert -s meaning as Shift_JIS, etc.
+
+Tue Jan 20 03:42:32 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * string.c (hash): fixed typo. [ruby-dev:37791]
+
+Tue Jan 20 01:15:27 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/mkconstants.rb (SOMAXCONN): defined.
+
+Mon Jan 19 22:31:35 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/mkconstants.rb: use erb for generating code.
+
+Mon Jan 19 17:33:47 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * string.c (hash): defaulted to MurmurHash 2.0.
+
+Mon Jan 19 17:29:34 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * include/ruby/defines.h (RUBY_ALIAS_FUNCTION_TYPE): added.
+
+Mon Jan 19 17:24:05 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * vm_dump.c (vm_stack_dump_each): used only if debug mode.
+
+Mon Jan 19 16:32:35 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * string.c (hash): added MurmurHash 2.0.
+
+Mon Jan 19 14:31:59 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * thread.c (rb_thread_execute_interrupts): needs
+ rb_signal_buff_size to be declared.
+
+Mon Jan 19 13:34:25 2009 Koichi Sasada <ko1@atdot.net>
+
+ * ruby.c (require_libraries): reset th->parse_in_eval while
+ loading libraries. fixes [ruby-dev:37780]
+
+Mon Jan 19 11:46:39 2009 Koichi Sasada <ko1@atdot.net>
+
+ * vm_eval.c, eval.c (rb_f_block_given_p): move definition of
+ "iterator?" and "block_given?" to make static.
+
+ * vm.c (vm_get_ruby_level_caller_cfp): make it static.
+
+ * eval_intern.h, vm_insnhelper.c: move decl. of
+ vm_get_ruby_level_caller_cfp()
+ from eval_intern.h to vm_insnhelper.c.
+
+Mon Jan 19 11:27:39 2009 Koichi Sasada <ko1@atdot.net>
+
+ * vm.c: add a prefix "rb_" to exposed functions
+ vm_get_ruby_level_next_cfp(), rb_vm_make_env_object(),
+ vm_stack_to_heap(), vm_make_proc(), vm_invoke_proc(),
+ vm_get_sourceline(), vm_cref(), vm_localjump_error(),
+ vm_make_jump_tag_but_local_jump(), vm_jump_tag_but_local_jump().
+ This changes may affect only core because most of renamed functions
+ require a pointer of not-exposed struct such as rb_thread_t or NODE.
+ In short, they are core functions.
+
+ * cont.c, eval.c, eval_intern.h, load.c, proc.c, thread.c,
+ vm_core.h, vm_dump.c, vm_eval.c, vm_exec.c, vm_insnhelper.c:
+ ditto.
+
+Mon Jan 19 11:22:51 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/socket/rubysocket.h (rb_cUNIXSocket, rb_cUNIXServer),
+ (unixpath, unixaddr): UNIX domain sockets depend on sys/un.h.
+
+Mon Jan 19 11:02:30 2009 Koichi Sasada <ko1@atdot.net>
+
+ * vm_dump.c: add a prefix "rb_vmdebug_" to
+ vm_stack_dump_raw(), vm_stack_dump_raw_current(),
+ vm_env_dump_raw(), vm_proc_dump_raw(), vm_stack_dump_th(),
+ vm_debug_print_register(), vm_thread_dump_regs(),
+ vm_debug_print_pre(), vm_debug_print_post(),
+ vm_thread_dump_state().
+ This change also may affect core (in fact, user of
+ above functions may be only ko1).
+
+ * vm_core.h: ditto.
+
+ * vm_exec.h (SDR2): remove duplicate definition.
+
+Mon Jan 19 11:00:44 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/socket/raddrinfo.c (addrinfo_ip_port): use AF_INET6 only when
+ defined, as well as addrinfo_ipv6_p().
+
+Mon Jan 19 10:43:38 2009 Koichi Sasada <ko1@atdot.net>
+
+ * gc.c (garbage_collect_with_gvl): suppress warnings.
+
+Mon Jan 19 10:34:32 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * ext/socket/depend: workaround for nmake. files in depend without
+ paths should converted by RULE_SUBST, but mkmf.rb cannot recognize
+ macros currently.
+
+Mon Jan 19 09:53:43 2009 Koichi Sasada <ko1@atdot.net>
+
+ * iseq.c:
+ rename ruby_iseq_disasm_insn() -> rb_iseq_disasm_insn().
+ rename ruby_iseq_disasm() -> rb_iseq_disasm().
+
+ * compile.c:
+ rename ruby_iseq_compile() -> rb_iseq_compile_node().
+ rename ruby_iseq_translate_threaded_code() ->
+ rb_iseq_translate_threaded_code().
+ rename ruby_insns_name_array() -> rb_insns_name_array().
+ rename ruby_iseq_build_from_ary() -> rb_iseq_build_from_ary().
+
+ * iseq.c, compile.c: remove ruby_insn_make_insn_table() and make
+ static function insn_make_insn_table().
+
+ * iseq.h, ruby.c, vm.c, vm_core.h, vm_eval.c, vm_dump.c,
+ blockinlining.c: ditto.
+ Rename strange "ruby_" prefix to "rb_" prefix.
+ This changes may affect only core because renamed functions
+ require a pointer of rb_iseq_t which is not exposed.
+
+Mon Jan 19 09:21:04 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * ext/socket/mkconstants.rb: define macros with default value in
+ constdefs.h if not exist them.
+
+ * ext/socket/raddrinfo.c (addrinfo_mdump, addrinfo_mload): support
+ UNIX socket only on platforms which support it.
+
+Mon Jan 19 08:56:53 2009 Koichi Sasada <ko1@atdot.net>
+
+ * eval.c, vm_eval.c (rb_f_local_variables): move definition from eval.c
+ to vm_eval.c because vm_collect_local_variables_in_heap() should
+ be static function.
+
+ * vm.c (vm_collect_local_variables_in_heap): make it static.
+
+Mon Jan 19 04:06:10 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * iseq.c (rb_iseq_load): renamed from ruby_iseq_load, since it is
+ for C extensions or the ruby core. [ruby-core:21407]
+
+Mon Jan 19 03:06:22 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * transcode.c (str_transcode0): fix: :xml option doesn't
+ work on str.encode([options]) form without default_internal.
+
+Sun Jan 18 16:56:46 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/raddrinfo.c (addrinfo_inspect_sockaddr): new
+ method AddrInfo#inspect_sockaddr.
+ (inspect_sockaddr): extracted from addrinfo_inspect.
+ (addrinfo_inspect): use inspect_sockaddr.
+ (Init_addrinfo): define the new method.
+
+Sun Jan 18 16:46:37 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/raddrinfo.c (addrinfo_ip_address): new method
+ AddrInfo#ip_address.
+ (addrinfo_ip_port): new method AddrInfo#ip_port.
+ (Init_addrinfo): define the methods above.
+
+Sun Jan 18 14:29:52 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/unixsocket.c: redundant #ifdef removed.
+
+Sun Jan 18 03:33:23 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/raddrinfo.c (addrinfo_mdump): don't use symbol.
+ (addrinfo_mload): ditto.
+
+Sun Jan 18 03:05:20 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/raddrinfo.c (addrinfo_mdump): new method.
+ (addrinfo_mload): new method.
+ (Init_addrinfo): define the method above.
+
+ * ext/socket/constants.c (constant_arg): str_to_int's first argument
+ constified.
+
+ * ext/socket/mkconstants.rb (gen_name_to_int_decl): generated
+ function's first argument constified.
+ (gen_name_to_int_func_in_guard): ditto.
+ (ipproto_to_int): generated.
+
+ * ext/socket/rubysocket.h (IS_IP_FAMILY): moved from raddrinfo.c.
+
+Sun Jan 18 01:37:50 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/socket.c (sock_s_getnameinfo): accept AddrInfo object.
+
+ * ext/socket/raddrinfo.c (rb_check_sockaddr_string_type): defined.
+
+ * ext/socket/rubysocket.h (rb_check_sockaddr_string_type): declared.
+
+Sat Jan 17 22:01:15 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/lib/socket.rb: new file.
+
+Sat Jan 17 19:33:48 2009 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * configure.in (VCSUP): fixed the cases for git-svn or git.
+
+ * win32/Makefile.sub (VCSUP): ditto.
+
+ * Makefile.in (up): `cd' is necessary for git and git-svn.
+
+Sat Jan 17 19:16:16 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/mkconstants.rb: generate a header file for generated
+ functions.
+
+ * ext/socket/rubysocket.h: include constdefs.h. don't declare
+ generated functions.
+
+ * ext/socket/constants.c: include constdefs.c instead of constants.h.
+
+ * ext/socket/depend: dependency updated.
+
+Sat Jan 17 17:58:22 2009 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * lib/irb/xmp.rb: multilingualizes XMP::StringInputMethod.
+ [ruby-core:21383].
+
+Sat Jan 17 15:01:22 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/raddrinfo.c (make_inspectname): add a res argument to
+ suppress numeric inspectname.
+ (init_addrinfo_getaddrinfo): call make_inspectname here.
+ (addrinfo_firstonly_new): follow make_inspectname change.
+ (addrinfo_list_new): ditto.
+ (addrinfo_initialize): follow init_addrinfo_getaddrinfo change.
+
+Sat Jan 17 14:52:27 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/mkconstants.rb: don't cause an error for duplicate names.
+
+Sat Jan 17 12:46:17 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket: split files for each class.
+
+ * ext/socket/rubysocket.h: common header.
+
+ * ext/socket/basicsocket.c: new file for BasicSocket.
+
+ * ext/socket/ipsocket.c: new file for IPSocket.
+
+ * ext/socket/tcpsocket.c: new file for TCPSocket.
+
+ * ext/socket/tcpserver.c: new file for TCPServer.
+
+ * ext/socket/sockssocket.c: new file for SOCKSSocket.
+
+ * ext/socket/udpsocket.c: new file for UDPSocket.
+
+ * ext/socket/unixsocket.c: new file for UNIXSocket.
+
+ * ext/socket/unixserver.c: new file for UNIXServer.
+
+ * ext/socket/socket.c: now for Socket.
+
+ * ext/socket/raddrinfo.c: new file for AddrInfo and name resolution.
+
+ * ext/socket/constants.c: new file for constants.
+
+ * ext/socket/init.c: new file for utilities.
+
+ * ext/socket/mkconstants.rb: export *_to_int.
+
+ * ext/socket/extconf.rb: add new object files.
+
+ * ext/socket/depend: add dependencies for new files.
+
+ * ext/.document: add new files.
+
+Sat Jan 17 11:12:37 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * cont.c (cont_restore_0): padding size doesn't need to be large
+ if alloca is used. suppress warnings.
+
+Sat Jan 17 11:12:21 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * vm_dump.c (vm_stack_dump_each): initialized at declarations.
+
+ * vm_dump.c (rb_vm_bugreport): constified to suppress a warning.
+
+Fri Jan 16 22:30:27 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/socket.c: move addrinfo code.
+
+Fri Jan 16 18:51:11 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/Makefile.sub (up): tell nmake that need to run command via
+ shell.
+
+Fri Jan 16 18:43:30 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * tool/make-snapshot (package): includes all rules and expand
+ configured values from the environment to create *.inc, sets RM
+ for ripper.c, and needs chdir if absolute path is given with
+ -exported option.
+
+Fri Jan 16 18:26:47 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * include/ruby/ruby.h (VALUE): use unsigned long or long long
+ instead of uintptr_t, since many %lx and so on are still used.
+
+Fri Jan 16 17:33:59 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (Makefile): set VCS and VCSUP to support `git svn'
+ and git.
+
+ * Makefile.in, win32/Makefile.sub (up): split from common.mk.
+
+Fri Jan 16 12:24:39 2009 Koichi Sasada <ko1@atdot.net>
+
+ * thread.c (thread_start_func_2): call ruby_cleanup() if thread is
+ main thread. [ruby-dev:37624]
+
+Fri Jan 16 12:27:50 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/Makefile.sub ($(INSNS), node_name.inc, known_errors.inc,
+ miniprelude.c, newline.c): if dependencies is newer than targets or
+ targets don't exist, try to create targets with BASERUBY. no need to
+ detect errors there because the absence of BASERUBY is not abnormal.
+ after the try, if the targets still don't exist, copy them from
+ $(srcdir).
+
+Fri Jan 16 12:15:07 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * include/ruby/ruby.h (PRI_PTRDIFF_PREFIX): must define as string.
+ if not, cause compile error in using PRI?VALUE.
+
+ * win32/Makefile.sub (config.h): add SIZEOF_INTPTR_T and
+ SIZEOF_UINTPTR_T for SIZEOF_VALUE.
+
+Fri Jan 16 11:51:20 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * symbian/pre-build (COMSPEC): should not overridden.
+
+Fri Jan 16 11:47:56 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (rb_parse_in_main): fixed typo.
+
+Fri Jan 16 11:41:23 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (RUBY_REPLACE_TYPE): does not define rb_ prefixed
+ name if no default type is given.
+
+ * configure.in (RUBY_DEFINT): checks size.
+
+ * include/ruby/ruby.h (PRI_PTRDIFF_PREFIX, PRI_SIZE_PREFIX):
+ assumes usable if PRIdPTR is defined.
+
+Fri Jan 16 02:25:46 2009 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * thread.c (rb_thread_execute_interrupts): if signal is already
+ buffered, main thread should wait until timer thread delivers it.
+
+ * thread.c (timer_thread_function): should defer delivery of a signal
+ if main thread does not yet trap a previous one. [ruby-dev:37676]
+
+Fri Jan 16 02:05:55 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/socket.c (addrinfo_s_ip): new method AddrInfo.ip.
+
+Fri Jan 16 01:42:50 2009 Koichi Sasada <ko1@atdot.net>
+
+ * thread.c (call_trace_proc): as Matz said ([ruby-core:21183]),
+ should skip rb_str_new2() if rb_sourcefile() returns NULL.
+ rb_sourcefile() returns NULL if frame is toplevel of Fiber.
+ [ruby-core:21161] [Bug #985]
+
+Fri Jan 16 01:09:37 2009 Koichi Sasada <ko1@atdot.net>
+
+ * ruby.c (process_options): decrement parse_in_eval to recognize
+ parsing main or normal eval script.
+
+ * compile.c (rb_parse_in_main): return 1 if parsing main script.
+ (if parse_in_eval is negative value, it means main script)
+
+ * parse.y (yycompile0): check rb_parse_in_main() to accumulate
+ script text. Bug #848 [ruby-core:20450]
+
+Fri Jan 16 00:57:34 2009 Koichi Sasada <ko1@atdot.net>
+
+ * lib/debug.rb: as wanabe-san pointed out,
+ set_trace_func should be completely final task in debug.rb.
+ Bug #847 [ruby-core:20449]
+
+Fri Jan 16 00:27:03 2009 Koichi Sasada <ko1@atdot.net>
+
+ * vm.c (rb_vm_inc_const_missing_count, ruby_vm_const_missing_count):
+ added.
+
+ * vm_insnhelper.h: ditto.
+
+ * variable.c (rb_const_get_0), insns.def: Constants should not be
+ cached if const_missing is called. [ruby-core:21059] [Bug #967]
+
+ * bootstraptest/test_class.rb: add a test.
+
+Fri Jan 16 00:25:09 2009 Koichi Sasada <ko1@atdot.net>
+
+ * common.mk: btest-ruby should receive option with OPTS.
+
+Fri Jan 16 00:21:10 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/Makefile.sub ($(INSNS), node_name.inc, known_errors.inc,
+ miniprelude.c, newline.c): shouldn't copy when $(srcdir) != ".", too.
+ (this is a workaround. we need more strict check.)
+
+ * win32/Makefile.sub ($(INSNS)): shouldn't remove BASERUBY.
+
+Fri Jan 16 00:19:55 2009 Koichi Sasada <ko1@atdot.net>
+
+ * gc.c (gc_with_gvl): suppress warnings.
+
+Thu Jan 15 20:44:30 2009 Tanaka Akira <akr@fsij.org>
+
+ * tool/file2lastrev.rb: RUBY_REVISION must be an integer.
+
+Thu Jan 15 15:55:31 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * encoding.c (enc_set_default_encoding): should not treat US-ASCII
+ special here. a patch from Yui NARUSE in [ruby-dev:37769].
+ [ruby-dev:37699]
+
+Thu Jan 15 14:27:27 2009 Martin Duerst <duerst@it.aoyama.ac.jp>
+
+ * LEGAL: Added information for missing/langinfo.c
+
+Thu Jan 15 14:17:57 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * parse.y (stmt): explicit error for "Object::Far += foo 1" just
+ as "Object::Far += 1".
+
+ * parse.y (command): moved return/break/next from command_call for
+ better error message.
+
+ * parse.y (call_args): void value check added.
+
+Thu Jan 15 13:10:58 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/Makefile.sub (COMPILERFLAG): for enc/trans/gb18030.c.
+
+Thu Jan 15 13:10:09 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in, win32/Makefile.sub (MISSING): added langinfo on mingw
+ and mswin.
+
+ * encoding.c (rb_locale_charmap): use environments on mingw and mswin.
+
+ * missing/langinfo.c (nl_langinfo_codeset): MS-Windows Japanese
+ environment uses Windows-31J derived from Shift_JIS, not EUC-JP.
+
+Thu Jan 15 12:10:39 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/Makefile.sub ($(INSNS), node_name.inc, known_errors.inc,
+ miniprelude.c, newline.c): copy only when $(srcdir) != pwd.
+
+Thu Jan 15 11:40:44 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * io.c (pipe_open): revert a part of previous commit. it may be a
+ mistake.
+
+Thu Jan 15 10:45:52 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * symbian/README.SYMBIAN: symbian support added. great appreciate
+ to <alexandre.zavorine at symbian.com>.
+
+Thu Jan 15 00:06:12 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * enc/trans/gb18030.trans: get rid of a 1.9 feature for cross
+ compile. [ruby-core:21345]
+
+Wed Jan 14 23:57:28 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * encoding.c (rb_locale_charmap): fallback to codepage if no
+ locale is found. [ruby-core:21110]
+
+ * missing/langinfo.c (nl_langinfo_codeset): returns NULL if no
+ locale is found.
+
+Wed Jan 14 22:38:30 2009 Tanaka Akira <akr@fsij.org>
+
+ * gc.c (negative_size_allocation_error_with_gvl): abolish a warning.
+ (negative_size_allocation_error): ditto.
+
+ * ext/openssl/ossl.c (ossl_raise): ditto.
+
+Wed Jan 14 20:05:05 2009 Martin Duerst <duerst@it.aoyama.ac.jp>
+
+ * enc/trans/gb18030.trans, gb18030-tbl.rb:
+ new Chinese GB18030 transcoding (from Yoshihiro Kambayashi)
+
+ * test/ruby/test_transcode.rb: added tests for the above
+ (from Yoshihiro Kambayashi)
+
+ * transcode_data.h, transcode.c, tool/transcode_tblgen.rb:
+ added support for GB18030-specific 4-byte sequences
+ (with Yoshihiro Kambayashi)
+
+Wed Jan 14 16:16:19 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ext/curses/extconf.rb: check ncursesw earlier than ncurses to
+ support UTF-8 strings. non UTF-8 strings should be converted
+ explicitly. [ruby-core:21094]
+
+Wed Jan 14 14:42:30 2009 TAKANO Mitsuhiro (takano32) <tak@no32.tk>
+
+ * cont.c: fix prototype declare of register_stack_extend
+
+Wed Jan 14 13:19:21 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * win32/win32.c (rb_w32_aspawn): should not escape with caret
+ unless using cmd.exe.
+
+Wed Jan 14 13:09:00 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/socket/extconf.rb (gai_strerror): checks if available and if
+ returns const pointer.
+
+ * ext/socket/getaddrinfo.c (gai_strerror): defines only if non
+ available. [ruby-core:21328]
+
+Wed Jan 14 12:39:16 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * io.c (rb_io_wait_readable, rb_io_wait_writable): need rb_fd_ptr.
+
+ * io.c (appendline): reformed.
+
+ * io.c (rb_io_s_pipe): reduced nest of rb_ensure of main block.
+
+Tue Jan 13 22:56:57 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/addrinfo.h (AI_NUMERICSERV): defined.
+ (AI_MASK): add AI_NUMERICSERV.
+
+ * ext/socket/getaddrinfo.c (getaddrinfo): support AI_NUMERICSERV.
+
+Tue Jan 13 21:45:53 2009 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * lib/ostruct.rb (OpenStruct#inspect): fixed the recursion check.
+ Patch by Kornelius Kalnbach. [ruby-core:20992].
+
+ * test/ostruct/test_ostruct.rb: test for inspect.
+ Patch by Kornelius Kalnbach. [ruby-core:20992].
+
+Tue Jan 13 21:44:30 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * io.c (io_reopen, rb_io_init_copy): should register fptr to pipe_list
+ when copying pipe fptr.
+
+Tue Jan 13 21:38:07 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/socket.c (rb_getaddrinfo): use getaddrinfo with GVL if
+ getaddrinfo.c/getnameinfo.c is used. They are not thread safe
+ because gethostbyname/gethostbyaddr is used.
+ (rb_getnameinfo): ditto.
+
+ * extconf.rb: define GETADDRINFO_EMU if getaddrinfo.c/getnameinfo.c is
+ used.
+
+Tue Jan 13 21:28:14 2009 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * object.c (rb_obj_not_match): rdoc.
+ Patch by Kornelius Kalnbach. [ruby-core:20991]
+
+Tue Jan 13 18:21:44 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * io.c (rb_io_close_read): call rb_io_fptr_cleanup() instead of
+ fptr_finalize() because the fptr has special finalizer if it is a
+ pipe. [ruby-dev:37757] (3)
+
+Tue Jan 13 18:19:49 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * io.c (rb_io_initialize): workaround for Windows. [ruby-dev:37686]
+ (also see [ruby-dev:37721])
+
+Tue Jan 13 17:29:02 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * enc/trans/make_transdb.rb (converters): should not depend on the
+ hash order for cross compile.
+
+Tue Jan 13 16:39:11 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * include/ruby/intern.h, thread.c, win32/Makefile.sub (rb_fdset_t,
+ rb_fd_init, rb_fd_term, rb_fd_zero, rb_fd_set, rb_fd_clr, rb_fd_isset,
+ rb_fd_select, rb_fd_ptr, rb_fd_max, HAVE_RB_FD_INIT): new type,
+ functions, and macros for Windows.
+
+ * win32/win32.c (extract_fd, rb_w32_select): use rb_fdset_t to expand
+ fd_array if needed. [ruby-core:19946]
+
+ * win32/win32.c (copy_fd): new function for rb_w32_select().
+
+Tue Jan 13 12:31:54 2009 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * tool/file2lastrev.rb (get_revisions): fixes problem with
+ svn on cygwin. [ruby-dev:37702].
+ Patch by Kouhei Sutou.
+
+Tue Jan 13 11:58:04 2009 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * lib/irb/input-method.rb: IRB did not prompt for MSwin32.
+ [ruby-dev:37686].
+ Patch by arton <artonx AT yahoo.co.jp>.
+
+Tue Jan 13 12:10:42 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * ext/socket/{getaddrinfo,getnameinfo}.c: need to include ws2tcpip.h
+ on Windows.
+
+Tue Jan 13 09:49:49 2009 Martin Duerst <duerst@it.aoyama.ac.jp>
+
+ * ext/socket/socket.c: removed warning about unused variable 'rai'.
+
+Tue Jan 13 03:07:28 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * instruby.rb: require "tool/mdoc2man.rb" before chdir if needed.
+
+Tue Jan 13 02:54:54 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * ext/socket/extconf.rb: use headers instead of "netdb.h" in checking
+ getnameinfo() and getaddrinfo() because Windows doesn't have it.
+ [ruby-dev:37757] (1)
+
+ * ext/socket/sockport.h (SA_LEN): use sockaddr_in6 when defined AF_INET6
+ if INET6 is not defined. winsock2's getaddrinfo() returns
+ sockaddr_in6 if ipv6 is available.
+
+Tue Jan 13 02:21:43 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * win32/win32.c (internal_cmd_match): extracted from
+ is_internal_cmd.
+
+ * win32/win32.c (argv_size, join_argv): escapes redirection, pipe
+ and caret punctuations with carets.
+
+ * win32/win32.c (rb_w32_aspawn): ditto, and redirections and pipe
+ have no meanings.
+
+Tue Jan 13 02:07:38 2009 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/tk.rb: use Encoding.find("locale") instead of
+ Encoding.locale_charmap
+
+Tue Jan 13 00:57:56 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/socket.c (sock_s_unpack_sockaddr_in): check too short
+ sockaddr.
+ (sock_s_unpack_sockaddr_un): ditto.
+
+Mon Jan 12 23:55:19 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/socket.c (addrinfo_ip_unpack): new method
+ AddrInfo#ip_unpack.
+ (addrinfo_unix_path): new method AddrInfo#unix_path.
+ (Init_socket): define above methods.
+
+Mon Jan 12 23:31:42 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/socket.c (IS_IP_FAMILY): defined.
+ (addrinfo_ip_p): use it.
+
+Mon Jan 12 17:23:05 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/test/unit/assertions.rb (assert_nothing_raised): removes the
+ current trace to get rid of an issue of MiniTest::Unit#location.
+
+Mon Jan 12 16:49:20 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * instruby.rb (install): erased a garbage.
+
+Mon Jan 12 16:45:28 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * win32/win32.c (open_dir_handle): extracted from rb_w32_opendir.
+
+ * win32/win32.c (winnt_stat): gets rid of strange behavior of
+ GetFileAttributes(). [ruby-core:21269]
+
+Mon Jan 12 12:43:55 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * instruby.rb (parse_args, install): added --strip option.
+
+ * instruby.rb (install_recursive): skips the directory if matched
+ to a no_install pattern ending with a file separator.
+
+Mon Jan 12 12:33:56 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/mkconstants.rb: don't use bytesize because 1.9 dependent.
+ [ruby-core:21266]
+
+Mon Jan 12 11:59:19 2009 Koichi Sasada <ko1@atdot.net>
+
+ * gc.c (ruby_xmalloc, ruby_xrealloc, ruby_xfree):
+ enable to use them without GVL.
+ if GC is invoked, acquire GVL during GC.
+ if NoMemoryError is raised, acquire GVL and raise it.
+
+Mon Jan 12 10:39:19 2009 Koichi Sasada <ko1@atdot.net>
+
+ * thread.c: fix comment (terminology: Global VM Lock).
+
+ * thread.c (blocking_region_begin, blocking_region_end):
+ save and clear th->blocking_region_buffer.
+
+ * thread.c (rb_thread_call_with_gvl): check if it has GVL.
+
+ * thread.c (ruby_thread_has_gvl_p): added.
+
+ * vm_core.h: add decls.
+
+Mon Jan 12 10:21:11 2009 Koichi Sasada <ko1@atdot.net>
+
+ * eval.c: remove unused decl.
+
+Sun Jan 11 16:53:14 2009 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
+
+ * lib/erb.rb (PercentScanner): remove PercentScanner. fixed % after
+ %> bug. [ruby-dev:37751] [Bug #997]
+
+ * test/erb/test_erb.rb: ditto
+
+Sun Jan 11 09:53:01 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/socket/mkconstants.rb (c_str): get rid of a 1.9 feature for
+ cross compile. [ruby-core:21243]
+
+Sun Jan 11 09:47:30 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * hash.c (rb_hash_s_create): set nil as the value if assoc length
+ is not enough. [ruby-core:21249]
+
+Sat Jan 10 21:17:28 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/mkconstants.rb: don't generate unintended newlines.
+
+Sat Jan 10 20:50:02 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/mkconstants.rb: refactored to nest properly in statically
+ and dynamically.
+
+Sat Jan 10 20:26:17 2009 Tanaka Akira <akr@fsij.org>
+
+ * version.h: make version string succinct:
+ "ruby 1.9.1p5000 (2009-01-10 trunk 21414) [i686-linux]".
+
+Sat Jan 10 19:05:13 2009 Koichi Sasada <ko1@atdot.net>
+
+ * cont.c (cont_restore_1): should not be inlined.
+
+Fri Jan 9 21:52:47 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/socket.c (sock_define_const): use INT2NUM.
+
+Fri Jan 9 15:40:07 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * ext/socket/mkconstants.rb: define macro if default_value is passed.
+
+Fri Jan 9 13:20:08 2009 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/tk.rb: rescue abnormal Encoding.locale_charmap value.
+
+Fri Jan 9 12:29:46 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * common.mk (test-sample), rubytest.rb: use runruby.rb
+
+Fri Jan 9 10:40:52 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * test/ruby/test_process.rb (TestProcess::MANDATORY_ENVS): some
+ platforms need environments for shared objects.
+
+Thu Jan 8 23:19:38 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/socket.c (bsock_shutdown): accept symbol/string as how.
+ (shutdown_how_arg): new function.
+
+ * ext/socket/mkconstants.rb: generate shutdown_how_to_int.
+
+Thu Jan 8 23:16:37 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * instruby.rb: easy code contains fewer bugs.
+
+Thu Jan 8 22:59:30 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/mkconstants.rb (gen_name_to_int_func): generate
+ name_to_int functions, not only body.
+
+Thu Jan 8 22:44:10 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/socket.c: don't use AI_NUMERICSERV for platforms which
+ not define it as old Windows.
+ [ruby-dev:37736]
+
+Thu Jan 8 17:32:51 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * instruby.rb: should not depend on a library which does not exist
+ in 1.8.
+
+Thu Jan 8 07:52:55 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/socket.c (init_unix_addrinfo): don't return a value.
+
+Thu Jan 8 07:30:52 2009 Tanaka Akira <akr@fsij.org>
+
+ * lib/open-uri.rb (OpenURI.redirectable?): reverted https redirection.
+
+Thu Jan 8 00:31:58 2009 Tanaka Akira <akr@fsij.org>
+
+ * lib/test/unit/assertions.rb (assert_no_match): don't count up as two
+ assertions.
+
+Thu Jan 8 00:26:35 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/socket.c (addrinfo_getnameinfo): use NI_DGRAM if socktype
+ is SOCK_DGRAM.
+
+Thu Jan 8 00:16:22 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/socket.c (host_str): add flags_ptr argument to specify
+ AI_NUMERICHOST if host is numeric form.
+ (port_str): add flags_ptr argument to specify AI_NUMERICSERV if port
+ is numeric form.
+
+Wed Jan 7 22:24:12 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/socket.c (rb_cAddrInfo): new class AddrInfo.
+ (s_recvfrom): return AddrInfo as address.
+ (s_recvfrom_nonblock): ditto.
+ (sock_accept): ditto.
+ (sock_accept_nonblock): ditto.
+ (sock_sysaccept): ditto.
+ (bsock_send): accept AddrInfo as address argument.
+ (sock_connect): ditto.
+ (sock_connect_nonblock): ditto.
+ (sock_bind): ditto.
+ (sock_s_unpack_sockaddr_in): ditto.
+ (sock_s_unpack_sockaddr_un): ditto.
+ (bsock_local_address): new method BasicSocket#local_address.
+ (bsock_remote_address): new method BasicSocket#remote_address.
+ (addrinfo_initialize): new method AddrInfo#initialize.
+ (addrinfo_inspect): new method AddrInfo#inspect.
+ (addrinfo_afamily): new method AddrInfo#afamily.
+ (addrinfo_pfamily): new method AddrInfo#pfamily.
+ (addrinfo_socktype): new method AddrInfo#socktype.
+ (addrinfo_protocol): new method AddrInfo#protocol.
+ (addrinfo_to_sockaddr): new method AddrInfo#to_sockaddr.
+ (addrinfo_canonname): new method AddrInfo#canonname.
+ (addrinfo_ip_p): new method AddrInfo#ip?.
+ (addrinfo_ipv4_p): new method AddrInfo#ipv4?.
+ (addrinfo_ipv6_p): new method AddrInfo#ipv6?.
+ (addrinfo_unix_p): new method AddrInfo#unix?.
+ (addrinfo_getnameinfo): new method AddrInfo#getnameinfo.
+ (addrinfo_s_getaddrinfo): new method AddrInfo.getaddrinfo.
+ (addrinfo_s_tcp): new method AddrInfo.tcp.
+ (addrinfo_s_udp): new method AddrInfo.udp.
+ (addrinfo_s_unix): new method AddrInfo.unix.
+ (Init_socket): define new class and methods.
+ (sock_getaddrinfo): apply socktype hack regardless of ai_flags.
+ (addrinfo_new): defined.
+ (get_afamily): ditto.
+ (fd_socket_addrinfo): ditto.
+ (io_socket_addrinfo): ditto.
+ (SockAddrStringValue): ditto.
+ (SockAddrStringValuePtr): ditto.
+ (sockaddr_string_value): ditto.
+ (sockaddr_string_value_ptr): ditto.
+ (rb_addrinfo_t): ditto.
+ (addrinfo_mark): ditto.
+ (addrinfo_free): ditto.
+ (addrinfo_s_allocate): ditto.
+ (IS_ADDRINFO): ditto.
+ (check_addrinfo): ditto.
+ (get_addrinfo): ditto.
+ (alloc_addrinfo): ditto.
+ (init_addrinfo): ditto.
+ (addrinfo_new): ditto.
+ (call_getaddrinfo): ditto.
+ (init_addrinfo_getaddrinfo): ditto.
+ (make_inspectname): ditto.
+ (addrinfo_firstonly_new): ditto.
+ (addrinfo_list_new): ditto.
+ (init_unix_addrinfo): ditto.
+ (ai_get_afamily): ditto.
+
+ * ext/socket/mkconstants.rb: generate intern_protocol_family,
+ intern_socktype and intern_ipproto.
+
+ [ruby-dev:37692]
+
+Wed Jan 7 22:13:03 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * instruby.rb (man, gem): fixed errors.
+
+Wed Jan 7 17:14:40 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * instruby.rb: use installed libraries. [ruby-core:21006]
+
+ * instruby.rb (gem), lib/rubygems/defaults.rb (Gem.default_dir):
+ use version invariant configuration.
+
+Tue Jan 6 19:09:51 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * cont.c (cont_restore_0): streamlined to ensure O(1) time. based on
+ a patch by Brent Roman <brent AT mbari.org>.
+
+Tue Jan 6 00:34:25 2009 Tanaka Akira <akr@fsij.org>
+
+ * io.c (rb_close_before_exec): more heuristics to detect maximum fd.
+
+Mon Jan 5 17:59:43 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (cygwin): needs properly implemented nl_langinfo().
+ [ruby-core:21110]
+
+ * missing/langinfo.c: added as suggested at [ruby-core:21015], from
+ http://www.cl.cam.ac.uk/~mgk25/ucs/langinfo.c.
+
+ * missing/langinfo.c (nl_langinfo_0): fixed typos for SJIS.
+
+Mon Jan 5 17:38:40 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * encoding.c (rb_locale_charmap): use GetConsoleCP() instead of
+ GetACP() because external encoding should be console's one.
+
+ * encoding.c (rb_filesystem_encoding): use GetOEMCP() instead of
+ GetACP() because VFAT/FAT32 uses OEM CP.
+
+Mon Jan 5 16:26:48 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * encoding.c (rb_filesystem_encoding): use ANSI codepage for file
+ system on cygwin.
+
+ * encoding.c (rb_locale_charmap): reverted. [ruby-core:21110]
+
+Mon Jan 5 16:15:00 2009 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
+
+ * ext/curses/curses.c (free_window): use xfree instead of free.
+ [ruby-dev:37200]
+
+Mon Jan 5 15:49:45 2009 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
+
+ * ext/gdbm/gdbm.c (rb_gdbm_fetch): remove needless cast.
+
+Mon Jan 5 12:52:08 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * win32/win32.c (init_env): use user profile folder than personal
+ folder.
+
+Mon Jan 5 08:41:13 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * file.c (rb_file_s_stat): need type check for non string values.
+ [ruby-dev:37673] fix: #964
+
+ * file.c (rb_file_s_size, rb_file_s_atime, rb_file_s_mtime,
+ rb_file_s_ctime, rb_f_test): ditto.
+
+Mon Jan 5 08:17:56 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * range.c (range_step): should not add up errors on loops.
+ [ruby-dev:37691]
+
+Mon Jan 5 07:58:37 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * random.c (rb_f_srand): update RDoc. [ruby-core:21113]
+
+Mon Jan 5 06:39:56 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * range.c (range_max): max value from ... not defined for non
+ Integer Numeric end values. [ruby-dev:37690] fix: #974
+
+Sun Jan 4 22:37:19 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/socket.c (rb_getaddrinfo): defined for address lookup without GVL.
+ (struct getaddrinfo_arg): defined.
+ (nogvl_getaddrinfo): defined.
+ (rb_getnameinfo): defined for name lookup without GVL.
+ (getnameinfo_arg): defined.
+ (nogvl_getnameinfo): defined.
+
+Sun Jan 4 18:10:10 2009 Martin Duerst <duerst@it.aoyama.ac.jp>
+
+ * enc/trans/gbk.trans, gbk-tbl.rb:
+ new Chinese GBK transcoding (from Yoshihiro Kambayashi)
+
+ * test/ruby/test_transcode.rb: added tests for the above
+ (from Yoshihiro Kambayashi)
+
+Sun Jan 4 17:55:55 2009 Martin Duerst <duerst@it.aoyama.ac.jp>
+
+ * test/ruby/test_transcode.rb: added tests for GB2312
+ (from Yoshihiro Kambayashi)
+
+ * enc/trans/chinese.trans: set valid byte patterns for
+ GB2312 and GB12345
+
+Sun Jan 4 17:39:39 2009 Martin Duerst <duerst@it.aoyama.ac.jp>
+
+ * enc/trans/big5.trans, big5-tbl.rb:
+ new Chinese Big5 transcoding (from Yoshihiro Kambayashi)
+
+ * test/ruby/test_transcode.rb: added tests for the above
+ (from Yoshihiro Kambayashi)
+
+Sun Jan 4 17:07:45 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/rubygems.rb (Gem.set_home, Gem.set_paths): should not create
+ directories stealthily. [ruby-core:20990]
+
+ * lib/rubygems.rb (Gem.find_home): expand_path deals with platform
+ dependent environments.
+
+ * lib/rdoc/ri/paths.rb (RDoc::HOMEDIR): ditto.
+
+ * instruby.rb (gem): creates gem directories at installation.
+
+Sun Jan 4 15:41:37 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * encoding.c (rb_filesystem_encoding, rb_locale_charmap): uses
+ codepage on cygwin. [ruby-core:20994]
+
+Sun Jan 4 11:58:43 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * numeric.c (ruby_float_step): extracted from num_step().
+
+ * range.c (range_step): uses ruby_float_step() for float range.
+ [ruby-dev:37691]
+
+Sun Jan 4 11:11:31 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/extmk.rb (extmake): does not use both of makefile.rb and
+ extconf.rb at the same time.
+
+ * lib/mkmf.rb (DLLIB): depends on Makefile. [ruby-core:21096]
+
+Sun Jan 4 09:27:41 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/socket/socket.c (constant_arg): constified.
+
+ * ext/socket/socket.c (optname_arg): cygwin does not have
+ IPPROTO_IPV6.
+
+ * ext/socket/mkconstants.rb (ipv6_optname_to_int): ditto.
+
+Sun Jan 4 04:33:14 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/socket.c: redundant #ifdef removed.
+
+Sun Jan 4 03:30:18 2009 Tanaka Akira <akr@fsij.org>
+
+ * io.c (maygvl_copy_stream_wait_read): renamed to add prefix to
+ express GVL state.
+ (nogvl_copy_stream_wait_write): ditto.
+ (nogvl_copy_stream_sendfile): ditto.
+ (maygvl_copy_stream_read): ditto.
+ (nogvl_copy_stream_write): ditto.
+ (nogvl_copy_stream_read_write): ditto.
+ (nogvl_copy_stream_func): ditto.
+
+Sun Jan 4 00:30:50 2009 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
+
+ * lib/erb.rb: merged r20850, r17881, r16811, r16763, r16748, r15829,
+ r15794 and r15698 from ruby_1_8.
+
+ * test/erb/test_erb.rb: ditto.
+
+Sat Jan 3 22:24:36 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * common.mk, Makefile.in, win32/Makefile.sub (INSNS): move the macro
+ definition from common.mk to {Makefile.in,win32/Makefile.sub}.
+ [ruby-dev:37678]
+
+Sat Jan 3 15:30:09 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * enc/trans/chinese.trans: added for transcoding EUC-CN and GB12345.
+
+ * enc/trans/GB/: ditto.
+
+Sat Jan 3 15:26:30 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * enc/trans/euc-cn.c: renamed from gb2312.c because GB2312 is
+ the name of a CSS. it's encoding name is "EUC-CN".
+
+Sat Jan 3 03:00:42 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * common.mk, Makefile.in, win32/Makefile.sub ($(INSNS), node_name.inc,
+ known_errors.inc, miniprelude.c, newline.c): move rules from common.mk
+ to {Makefile.in,win32/Makefile.sub} for nmake.
+ [ruby-core:20993]
+
+Fri Jan 2 23:51:41 2009 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * test/ruby/test_sleep.rb (test_sleep_5sec): stop gc.
+
+Fri Jan 2 23:36:10 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/socket.c: don't apply socktype hack [ruby-core:184] for
+ sock_s_getaddrinfo.
+ (sock_getaddrinfo): add socktype_hack argument.
+ (sock_addrinfo): call sock_getaddrinfo with socktype_hack.
+ (sock_s_getaddrinfo): call sock_getaddrinfo without socktype_hack.
+ [ruby-dev:37674]
+
+Fri Jan 2 23:33:38 2009 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * include/ruby/missing.h, sprintf.c: get rid of a warning of VC++.
+
+Fri Jan 2 22:25:46 2009 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * process.c: use sigaction instead of sigset. [ruby-core:21021]
+
+Fri Jan 2 22:22:04 2009 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * bootstraptest/test_proc.rb: suppress error message.
+
+Fri Jan 2 22:20:46 2009 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * test/ruby/test_process.rb (test_wait_and_sigchild): remove debug
+ output.
+
+Fri Jan 2 17:45:19 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/mkconstants.rb: rename family_to_str to intern_family.
+ it returns ID now.
+
+ * ext/socket/socket.c (ipaddr): use intern_family.
+
+Fri Jan 2 17:20:31 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/mkconstants.rb: use ID in the values of
+ family_to_str_hash. family_to_str returns a VALUE.
+
+ * ext/socket/socket.c (ipaddr): follow family_to_str change.
+
+Fri Jan 2 17:01:51 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/mkconstants.rb: refactored to gather stringizer
+ description.
+
+Fri Jan 2 15:30:57 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/mkconstants.rb: make common prefix optional.
+
+Fri Jan 2 14:59:52 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/mkconstants.rb: use hash for family_to_str to avoid
+ linear search. lenp argument removed.
+
+ * ext/socket/socket.c (ipaddr): call family_to_str without lenp
+ argument.
+
+Fri Jan 2 14:33:12 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/mkconstants.rb (gen_int_to_name): don't compare constants
+ in preprocessor because the constants may be enum.
+
+Fri Jan 2 14:11:07 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/mkconstants.rb (gen_int_to_name): add lenp argument.
+
+ * ext/socket/socket.c (ipaddr): follow argument change.
+
+Fri Jan 2 10:20:24 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/singleton.rb: fix documentation. [ruby-core:21038]
+
+Fri Jan 2 06:43:58 2009 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * signal.c (rb_signal_buff_size): defined for check whether signal
+ is in the buffer or not.
+
+ * thread_pthread.c (thread_timer): don't exit the loop when signal
+ is in the buffer. [ruby-dev:37637]
+
+Fri Jan 2 04:40:00 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/mkconstants.rb: check duplicates.
+
+Fri Jan 2 02:39:08 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/socket.c (optname_arg): defined.
+ (bsock_setsockopt): use optname_arg.
+ (bsock_getsockopt): ditto.
+
+ * ext/socket/mkconstants.rb: generate so_optname_to_int,
+ ip_optname_to_int, ipv6_optname_to_int, tcp_optname_to_int and
+ udp_optname_to_int.
+ more constants.
+
+Fri Jan 2 02:08:36 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/socket.c (constant_arg): extracted from family_arg.
+ (family_arg): use constant_arg.
+ (socktype_arg): ditto.
+ (level_arg): ditto.
+
+Fri Jan 2 01:15:11 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/socket.c (level_arg): defined.
+ (bsock_setsockopt): use level_arg.
+ (bsock_getsockopt): ditto.
+
+ * ext/socket/mkconstants.rb: generate level_to_int.
+
+Fri Jan 2 00:58:40 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/socket.c (family_arg): accept symbols as well.
+ (socktype_arg): ditto.
+
+Fri Jan 2 00:49:44 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/socket.c (sock_s_getaddrinfo): use socktype_arg.
+
+Fri Jan 2 00:12:27 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/socket.c (family_arg): extracted from
+ setup_domain_and_type.
+ (socktype_arg): ditto.
+ (udp_init): use family_arg.
+ (sock_s_gethostbyaddr): ditto.
+ (sock_s_getaddrinfo): ditto.
+ (sock_s_getnameinfo): ditto.
+
+Thu Jan 1 22:27:55 2009 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * spec/default.mspec: fix for builddir != srcdir
+
+ * Makefile.in: ditto.
+
+Thu Jan 1 21:26:05 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/socket.c (sock_s_getnameinfo): use family_to_int.
+
+Thu Jan 1 21:08:34 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/mkconstants.rb: check all alias possibility.
+
+Thu Jan 1 20:59:55 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/mkconstants.rb: more possible aliases.
+
+Thu Jan 1 20:54:02 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/mkconstants.rb: AF_ISO and AF_OSI may be aliased.
+
+Thu Jan 1 20:50:09 2009 URABE Shyouhei <shyouhei@ruby-lang.org>
+
+ * process.c (before_exec): it makes no sense for a conditional
+ expression to return a void value.
+
+Thu Jan 1 20:47:09 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/socket.c (sock_s_getaddrinfo): use family_to_int.
+
+Thu Jan 1 20:17:47 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/socket.c: include constants.h at top.
+
+Thu Jan 1 19:53:33 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/mkconstants.rb: add valp argument for family_to_int and
+ socktype_to_int.
+
+ * ext/socket/socket.c (setup_domain_and_type): use valp argument.
+
+Thu Jan 1 19:36:57 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/mkconstants.rb: generate family_to_str.
+
+ * ext/socket/socket.c (ipaddr): use family_to_str.
+
+Thu Jan 1 17:37:12 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/mkconstants.rb: generate socktype_to_int.
+
+ * ext/socket/socket.c (setup_domain_and_type): use socktype_to_int.
+
+Thu Jan 1 17:26:47 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/socket.c (setup_domain_and_type): initialize ptr.
+
+Thu Jan 1 17:01:50 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/mkconstants.rb: refine family_to_int.
+
+Thu Jan 1 16:48:07 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/mkconstants.rb: generate family_to_int().
+
+ * ext/socket/socket.c (setup_domain_and_type): use family_to_int.
+
+Thu Jan 1 15:08:46 2009 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * tool/file2lastrev.rb: supports git repositories which are cloned
+ from a git-svn gateway.
+ Patch by Hongli Lai. [ruby-core:21020]
+
+Thu Jan 1 16:08:11 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/mkconstants.rb: generate init_constants function.
+
+ * ext/socket/socket.c (Init_socket): call init_constants.
+
+Thu Jan 1 16:03:04 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/mkconstants.rb (Socket::AF_INET6): moved from socket.c.
+ (Socket::PF_INET6): ditto.
+
+Thu Jan 1 15:27:07 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/mkconstants.rb: use erb.
+
+Thu Jan 1 15:07:56 2009 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/mkconstants.rb: add -o option.
+
+ * ext/socket/depend: use mkconstants.rb with -o option.
+
+Thu Jan 1 07:42:36 2009 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/singleton.rb: fix indentation of RDoc text. [ruby-core:21029]
+
+Thu Jan 1 07:16:44 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * Makefile.in (distclean-ext, realclean-ext): use EXTS as default.
+
+ * win32/Makefile.sub (distclean-ext, realclean-ext): try to remove ext
+ directory.
+
+Thu Jan 1 06:56:28 2009 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * tool/file2lastrev.rb: unset PWD.
+
+Wed Dec 31 23:37:17 2008 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/socket.c (sock_s_socketpair): yield if a block is given.
+ (io_call_close): defined.
+ (io_close): defined.
+ (pair_yield): defined.
+
+Wed Dec 31 19:35:57 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * spec/README: follows the change of directory structure in rubyspec.
+
+ * spec/default.mspec: ditto. Also follows change of mspec command.
+
+ * Makefile.in: ditto.
+
+Wed Dec 31 17:16:46 2008 Tanaka Akira <akr@fsij.org>
+
+ * ext/openssl/ossl_ssl.c (ossl_ssl_read_internal): show openssl error
+ code in EWOULDBLOCK error.
+
+Wed Dec 31 15:45:18 2008 Tanaka Akira <akr@fsij.org>
+
+ * io.c (copy_stream_body): don't check to_io because
+ Zlib::GzipWriter#to_io returns the underlying IO.
+
+Wed Dec 31 14:52:33 2008 Tanaka Akira <akr@fsij.org>
+
+ * ext/openssl/ossl_digest.c (GetDigestPtr): use StringValueCStr
+ instead of STR2CSTR.
+
+ * ext/openssl/ossl_pkey_ec.c (ossl_ec_key_initialize): ditto.
+ (ossl_ec_group_initialize): ditto.
+
+Wed Dec 31 14:12:35 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * object.c (rb_to_float): replaced by to_flo definition from
+ math.c [ruby-dev:37668]
+
+ * math.c (Need_Float): use rb_to_float().
+
+Wed Dec 31 13:49:06 2008 Tanaka Akira <akr@fsij.org>
+
+ * ext/openssl/lib/openssl/buffering.rb (Buffering#read_nonblock):
+ implemented.
+
+ * ext/openssl/ossl_ssl.c (rb_sys_fail_path): removed.
+ (fcntl.h): don't include.
+ (ossl_ssl_read_internal): defined.
+ (ossl_ssl_read): use ossl_ssl_read_internal.
+ (ossl_ssl_read_nonblock): use ossl_ssl_read_internal.
+ (Init_ossl_ssl): define sysread_nonblock, instead of read_nonblock.
+
+Wed Dec 31 00:27:54 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * object.c (rb_to_float): prohibit conversion from nil to float.
+ [ruby-dev:37663]
+
+ * pack.c (pack_pack): replace all rb_Float() to rb_to_float().
+ [ruby-dev:37663]
+
+Tue Dec 30 21:17:00 2008 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/mkconstants.rb: use sock_define_uconst for INADDR_*
+ constants because Socket::INADDR_LOOPBACK should be 0x7f000001
+ instead of -0xffffff.
+
+ * ext/socket/socket.c (sock_define_uconst): defined.
+
+Tue Dec 30 18:23:10 2008 Ryan Davis <ryand-ruby@zenspider.com>
+
+ * lib/minitest/*.rb: Imported minitest 1.3.1 r4506.
+ * test/minitest/*.rb: ditto.
+
+Tue Dec 30 17:59:59 2008 Martin Duerst <duerst@it.aoyama.ac.jp>
+
+ * transcode.c: Minor fixes and tweaks in documentation.
+
+Tue Dec 30 17:03:51 2008 Koichi Sasada <ko1@atdot.net>
+
+ * ext/dl/test/test_import.rb: fix a prototype decl.
+ pointed out by Takehiro Kubo [ruby-core:20971].
+
+Tue Dec 30 16:56:09 2008 Koichi Sasada <ko1@atdot.net>
+
+ * thread.c (rb_thread_blocking_region): add a comment.
+
+ * thread.c (rb_thread_call_without_gvl): added as a alias of
+ rb_thread_blocking_region().
+
+ * thread.c (rb_thread_call_with_gvl): added.
+
+ * vm_core.h (rb_thread_t#blocking_region_buffer): added for
+ rb_thread_call_with_gvl().
+
+Mon Dec 29 23:41:42 2008 Koichi Sasada <ko1@atdot.net>
+
+ * ext/dl/test/test_base.rb: add libc search logic.
+ this patch is written by Takehiro Kubo.
+ [ruby-core:20963] [Bug #932]
+
+ * ext/dl/dl.h: Add ",..." as the last argument.
+ this patch is written by Takehiro Kubo.
+ Bug #633 [ruby-core:19289]
+
+ * ext/dl/lib/dl/stack.rb: add add_padding() to calculate
+ alignment. this patch is written by Takehiro Kubo.
+ Bug #633 [ruby-core:19289]
+
+ * ext/dl/test/test_func.rb: atof()'s return value is double.
+ this patch is written by Takehiro Kubo.
+ Bug #633 [ruby-core:19289]
+
+ * ext/dl/test/test_import.rb:
+ - atof()'s return value is double.
+ - The types of qsort's second and third argument are size_t.
+ - fprintf()'s return value is int.
+ this patch is written by Takehiro Kubo.
+ Bug #633 [ruby-core:19289]
+
+Mon Dec 29 22:37:17 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * process.c (rb_waitpid): retries waitpid when EINTR.
+ [ruby-core:19744].
+
+Mon Dec 29 23:18:52 2008 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * bignum.c (rb_cstr_to_inum): changed an error message.
+
+ * complex.c (string_to_c_strict): ditto.
+
+ * rational.c (string_to_r_strict): ditto.
+
+Mon Dec 29 22:37:57 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * pack.c (pack_pack): template f should not accept non float
+ values. [ruby-dev:37656]
+
+ * object.c (rb_to_float): new function to type check floats.
+
+Mon Dec 29 22:27:11 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * random.c (rb_f_rand): type check simplified. strings are no
+ longer allowed for argument. [ruby-dev:37655]
+
+ * test/ruby/test_rand.rb (TestRand::o.to_int): need override
+ to_int.
+
+Mon Dec 29 21:22:31 2008 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * numeric.c: Infinity.numerator returns self. [experimental]
+
+ * numeric.c: Infinity.denominator returns 1. [experimental]
+
+Mon Dec 29 20:57:14 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * man/ri.1: new manpage.
+
+Mon Dec 29 20:45:25 2008 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * rational.c: floor, ceil, truncate and round accept an extra
+ argument like Float#round. [experimental]
+
+Mon Dec 29 18:24:49 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * Makefile.in (distclean-local): removes Doxyfile and
+ run.gdb at distclean'ing.
+
+Mon Dec 29 17:53:24 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * bin/erb: accepts options in more flexible styles.
+
+Mon Dec 29 17:25:17 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * lib/erb.rb (ERB): m17n of ERB. adds rdoc.
+ fixes #712. c.f. [ruby-dev:37516].
+
+ * lib/erb.rb (ERB::Compiler#compile): recognizes magic comments.
+ returns a pair of compiled script and its script encoding.
+
+ * lib/erb.rb (ERB#set_eoutvar): make generated scripts return a
+ string in correct encoding.
+
+ * lib/erb.rb (ERB#def_method): use Kernel#eval for encoding-awareness
+ of the evaluated string.
+
+ * bin/erb.rb (ERB::Main.run): adds -E and -U options.
+ String is no longer Enumerable.
+
+ * man/erb.1: new manpage.
+
+ * test/erb/test_erb_m17n.rb: new test case for m17n features.
+
+Mon Dec 29 18:02:45 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ext/io/wait/wait.c (io_nread): returns number of bytes available
+ for read. response to feature request #936 in [ruby-core:20917].
+
+Mon Dec 29 17:52:16 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ext/io/wait/wait.c (io_ready_p): updated to follow RDoc.
+
+Mon Dec 29 16:52:15 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ext/socket/socket.c (s_recvfrom_nonblock): revert r21162.
+
+Mon Dec 29 16:16:20 2008 Koichi Sasada <ko1@atdot.net>
+
+ * vm.c (vm_set_eval_stack, vm_set_main_stack, vm_set_top_stack):
+ check stack overflow. [ruby-dev:37646]
+
+Sun Dec 28 18:36:33 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * test/rubygems/test_gem_command.rb
+ (test_add_option_overlapping_common_and_local_options):
+ follows r21066.
+
+Mon Dec 29 14:50:19 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * Makefile.in (ext-clean): ext-clean always fails.
+
+ * ext/dl/ripper/extconf.rb: adds y.output into the clean list.
+
+Mon Dec 29 11:58:39 2008 Koichi Sasada <ko1@atdot.net>
+
+ * thread.c (rb_mutex_trylock): return false if Mutex owned
+ by current thread. [ruby-core:20943]
+
+ * thread.c (rb_mutex_lock): check dead lock (recursive lock) here.
+
+ * test/ruby/test_thread.rb: add a test.
+
+Mon Dec 29 10:58:54 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * file.c (rb_get_path): move encoding conversion of file path
+ from rb_scan_open_args.
+
+ * io.c (rb_scan_open_args): ditto.
+
+Mon Dec 29 07:15:16 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * cont.c: small RDoc fix mentioned from <radek.bulat at gmail.com>
+ in [ruby-core:20921].
+
+Mon Dec 29 03:43:25 2008 Koichi Sasada <ko1@atdot.net>
+
+ * ruby.c (process_options): set th->base_block only while
+ it is needed. [ruby-dev:37634] [Bug #939]
+
+ * ruby.c (require_libraries): clear th->base_block before
+ require libraries.
+
+Sun Dec 28 21:33:52 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * test/ext/dl/test_base.rb: add BSD's case.
+
+Sun Dec 28 21:09:12 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * ext/dl/lib/dl/import.rb (DL::Importer#sizeof): follows
+ a feature change in 1.9.
+
+Sun Dec 28 21:03:07 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * ext/dl/lib/dl/import.rb (DL::Importer#extern): adds filename and
+ line number to module_eval'ing for readability of backtrace.
+ (DL::Importer#bind): ditto.
+
+ * ext/dl/lib/dl/struct.rb (DL::CStructBuilder#create): ditto.
+
+Sun Dec 28 19:11:03 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * win32/Makefile.sub (config.h): do not use snprintf/vsnprintf in
+ msvcrt.
+
+ * sprintf.c: not force to override snprintf/vsnprintf.
+ [ruby-core:20824]
+
+Sun Dec 28 17:21:36 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * test/rubygems/test_ext_configure_builder.rb (test_self_build_fail):
+ Extends pattern for FreeBSD's error message.
+
+Sun Dec 28 17:10:13 2008 TAKANO Mitsuhiro (takano32) <tak@no32.tk>
+
+ * ext/dl/test/test_dl2.rb: modify strncpy, strcpy, qsort, types.
+ Patch by Takehiro Kubo.
+ Bug #633 [ruby-core:19289]
+ * ext/dl/test/test_base.rb: /lib/libc.so is x86_64 binary in x86_64 architecture.
+
+Sun Dec 28 12:53:10 2008 TAKANO Mitsuhiro (takano32) <tak@no32.tk>
+
+ * ext/dl/test/test_base.rb: use libc.dylib when the platform is darwin.
+
+Sun Dec 28 12:24:14 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * thread.c (mutex_free, mutex_unlock): add qualifiers.
+
+Sun Dec 28 10:28:04 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * thread.c (mutex_free): GC thread (main thread) has failed to unlock
+ a mutex that is locked by another thread, which makes the mutex
+ dangling in keeping_mutexes and causes [BUG] or stuck finally.
+ Now unlocking is performed as locking thread.
+
+ * thread.c (mutex_unlock, rb_mutex_unlock, rb_mutex_unlock_all):
+ mutex_unlock receives a thread.
+
+Sun Dec 28 05:44:44 2008 Ryan Davis <ryand-ruby@zenspider.com>
+
+ * lib/minitest/*.rb: Imported minitest 1.3.1 r4505.
+ * test/minitest/*.rb: ditto.
+
+Sun Dec 28 00:43:33 2008 Tanaka Akira <akr@fsij.org>
+
+ * runruby.rb: refactored to modify ENV as once.
+
+Sat Dec 27 22:41:02 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * test/rdoc/test_rdoc_info_formatting.rb (setup, teardown): uses
+ mktmpdir and removes it after the test.
+
+ * test/cgi/test_cgi_session.rb (setup, teardown): ditto.
+
+Sat Dec 27 21:46:10 2008 TAKANO Mitsuhiro (takano32) <tak@no32.tk>
+
+ * ext/dl/test/test_base.rb: use lib64 when the architecture is x86_64.
+
+Sat Dec 27 20:26:59 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/win32.c (rb_w32_argv_size): if an argument is empty, it's size
+ is 2, not 0, because it will be converted to "".
+
+Sat Dec 27 19:40:56 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * process.c (after_exec): needs to reset before restart timer
+ thread.
+
+ * thread.c (thread_start_func_2): stops timer thread if forked in
+ the new thread. [ruby-core:19385]
+
+ * thread.c (rb_thread_atfork, rb_thread_atfork_before_exec): DRY.
+
+Sat Dec 27 18:25:09 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * vm_eval.c (rb_f_loop): return enumerator if no block given.
+ [ruby-list:45747]
+
+Sat Dec 27 17:08:43 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * .gdbinit (dummy_gdb_enums.special_consts): forces to load debug
+ info on Mac OS X.
+
+ * .gdbinit (rp): added T_ZOMBIE.
+
+Sat Dec 27 16:18:02 2008 Koichi Sasada <ko1@atdot.net>
+
+ * eval.c (rb_frame_callee, rb_frame_caller): rb_frame_callee()
+ should return method id on current frame.
+ add rb_frame_caller() to get method id on parent frame.
+ Bug #884 [ruby-dev:37446]
+
+ * eval.c (rb_f_method_name): use rb_frame_caller()
+ instead of rb_frame_callee().
+
+Sat Dec 27 15:28:12 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode.c (make_econv_exception): show source and destination
+ encoding. [ruby-dev:37285]
+
+Sat Dec 27 15:23:38 2008 Koichi Sasada <ko1@atdot.net>
+
+ * vm_insnhelper.c (vm_yield_with_cfunc): rename parameter name
+ "blockptr" to "blockargptr".
+
+Sat Dec 27 15:15:56 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * common.mk (revision.h): ignores failure of file2lastrev.
+
+Sat Dec 27 15:02:38 2008 Koichi Sasada <ko1@atdot.net>
+
+ * ruby.c (process_options): fix to untouch th->mild_compile_error.
+ [ruby-dev:37621], [ruby-dev:37620]
+
+Sat Dec 27 14:48:26 2008 Koichi Sasada <ko1@atdot.net>
+
+ * iseq.h, iseq.c (rb_iseq_new_main): add a type ISEQ_TYPE_MAIN.
+ [ruby-dev:37619]
+
+ * compile.c (rb_dvar_defined, ruby_iseq_compile): ditto.
+
+ * iseq.c (iseq_data_to_ary, iseq_load): ditto.
+
+ * compile.c (iseq_compile_each): fix to check ip->compile_data.
+
+Sat Dec 27 14:29:33 2008 Tanaka Akira <akr@fsij.org>
+
+ * lib/open-uri.rb (OpenURI.redirectable?): permit https redirection.
+ patch from Roman Shterenzon. [ruby-core:20485]
+
+Sat Dec 27 13:36:55 2008 Koichi Sasada <ko1@atdot.net>
+
+ * eval.c (get_errinfo): return th->errinfo value
+ if normal errinfo place (dynamic local variable) is not found.
+ fixes Bug #732 [ruby-dev:37046].
+
+ * bootstraptest/test_proc.rb: add a test.
+
+Sat Dec 27 13:10:43 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * man/irb.1: adds -v, -h, -E and -U.
+
+Sat Dec 27 11:41:45 2008 Koichi Sasada <ko1@atdot.net>
+
+ * vm_insnhelper.c (vm_call_method, vm_call_cfunc): use original id instead of
+ calling id when NODE_CFUNC or NODE_BMETHOD.
+ fixes Bug #632 [ruby-core:19282].
+
+ * vm_eval.c (vm_call0, vm_call_super): ditto.
+
+ * vm_method.c (rb_add_method, rb_alias): store original id
+ in nd_file field of NODE_METHOD.
+
+ * test/stringio/test_stringio.rb: add a test.
+
+Sat Dec 27 09:48:54 2008 Koichi Sasada <ko1@atdot.net>
+
+ * vm.c (Init_VM): create and define TOPLEVEL_BINDING at first.
+
+ * vm.c (vm_set_main_stack, rb_iseq_eval_main): added.
+
+ * parse.y (rb_parser_compile_file): fix to check parse_in_eval flag.
+
+ * eval.c (ruby_exec_node): use rb_iseq_eval_main()
+ instead of rb_iseq_eval().
+
+ * iseq.c (rb_iseq_new_main), vm_core.h: added.
+ main script (specified by -e or script name) should be run
+ under TOPLEVEL_BINDING using Kernel#eval. Above changes
+ simulate Kernel#eval behaviour. [ruby-dev:37240]
+
+ * compile.c (make_name_for_block): skip iseq except block type.
+ this fix is needed for [ruby-dev:37240], and also fixes
+ [ruby-dev:35392].
+
+Sat Dec 27 09:14:17 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * cont.c: rdoc for Fiber. patch by Muhammad Ali.
+ [ruby-core:20894]
+
+Sat Dec 27 05:38:59 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * process.c (after_fork): ignores a termination request in the
+ parent process. [ruby-dev:37447]
+
+Sat Dec 27 01:52:39 2008 James Edward Gray II <jeg2@ruby-lang.org>
+
+ * lib/csv.rb: Using a more robust transcoding scheme to produce
+ ASCII compatible inspect() messages. [ruby-dev:37591]
+
+Fri Dec 26 18:04:10 2008 Tanaka Akira <akr@fsij.org>
+
+ * io.c (fptr_finalize): don't allocate objects if noraise.
+ (finish_writeconv): add noalloc argument to be able to avoid
+ object allocation.
+ (finish_writeconv_arg): introduced again.
+ (finish_writeconv_sync): follow the above change.
+
+Fri Dec 26 17:04:14 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * lib/irb/input-method.rb (IRB::StdioInputMethod#initialize):
+ removed a 'p' for debugging.
+
+Fri Dec 26 15:50:45 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/optparse.rb (OptionParser::List#summarize): gives priority
+ to latter switches. [ruby-dev:36692]
+
+ * lib/optparse.rb (OptionParser#summarize): do not append
+ unnecessary line terminator.
+
+Fri Dec 26 14:01:38 2008 Tanaka Akira <akr@fsij.org>
+
+ * io.c (fptr_finalize): close the IO object even if finish_writeconv or
+ flush is failed.
+ (finish_writeconv): don't raise. return errno or exception.
+ (finish_writeconv_arg): removed.
+ (finish_writeconv_sync): follow finish_writeconv change.
+
+ * transcode.c (rb_econv_make_exception): new function.
+
+ * include/ruby/encoding.h (rb_econv_make_exception): declared.
+
+Thu Dec 25 20:57:01 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * transcode.c (str_transcode0): set encoding when String#encode was
+ given explicit but the same destination and source encoding.
+
+Thu Dec 25 20:01:50 2008 Tanaka Akira <akr@fsij.org>
+
+ * io.c (rb_io_s_pipe): unused variable removed.
+
+Thu Dec 25 19:35:51 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * transcode.c (sym_ignore): remove useless symbol.
+
+Thu Dec 25 18:36:04 2008 Tanaka Akira <akr@fsij.org>
+
+ * io.c (pipe_close): removed.
+ (pipe_yield): defined.
+ (rb_io_s_pipe): use pipe_yield.
+
+Thu Dec 25 17:49:45 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * transcode.c (decorate_convpath): show type of escaping for
+ xml_attr_quote or some conversions.
+
+Thu Dec 25 17:06:13 2008 Tanaka Akira <akr@fsij.org>
+
+ * io.c (rb_io_initialize): check fd validity. [ruby-dev:36646]
+
+Thu Dec 25 16:23:31 2008 Tanaka Akira <akr@fsij.org>
+
+ * io.c (flush_before_seek): check io_fflush result.
+ (rb_io_check_readable): ditto.
+ (rb_io_flush): ditto.
+ (rb_io_fsync): ditto.
+ (remain_size): ditto.
+ (rb_io_write_nonblock): ditto.
+ (finish_writeconv): ditto.
+ (fptr_finalize): ditto.
+ (io_reopen): ditto.
+ (rb_io_reopen): ditto.
+ (copy_stream_body): ditto.
+
+Thu Dec 25 15:54:00 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * io.c (io_fflush): flush write buffer without write lock in
+ finalizers. [ruby-dev:37572]
+
+ * io.c (rb_io_fptr_finalize): clear write lock before finalizing.
+
+Thu Dec 25 15:07:22 2008 Tanaka Akira <akr@fsij.org>
+
+ * io.c (fptr_finalize): close the IO object even if close(2) is failed.
+
+Thu Dec 25 14:51:43 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * lib/rdoc/parser.rb (RDoc::Parser.binary?): should read in binary mode.
+
+Thu Dec 25 14:32:23 2008 Koichi Sasada <ko1@atdot.net>
+
+ * vm_insnhelper.c (vm_method_search): fix control flow bug.
+ (commited at r20981)
+
+Thu Dec 25 13:28:20 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * io.c (rb_io_flush): fsync() after buffer is flushed on win32.
+ [ruby-core:20043]
+
+Thu Dec 25 13:13:00 2008 Koichi Sasada <ko1@atdot.net>
+
+ * vm_insnhelper.c (vm_method_search): return rb_cObject if there is no
+ super class. [ruby-dev:37587]
+
+ * bootstraptest/test_method.rb: add tests for above.
+
+Thu Dec 25 12:49:12 2008 Koichi Sasada <ko1@atdot.net>
+
+ * proc.c (proc_new): should use proc_dup() if block has Proc.
+
+ * vm.c (vm_make_proc_from_block): should use rb_cProc for block.
+
+ * vm.c (vm_make_proc): add an assertion.
+
+ * bootstraptest/test_proc.rb: add a test.
+
+Thu Dec 25 12:44:27 2008 Koichi Sasada <ko1@atdot.net>
+
+ * vm_insnhelper.c (vm_yield_with_cfunc): check block has Proc.
+
+Thu Dec 25 05:53:01 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * template/id.h.tmpl, id.h (ruby_method_ids): not depend on if
+ token are defined as macros. [ruby-dev:37553]
+
+ * template/id.h.tmpl, id.h (ruby_method_ids_check): enclosed in a
+ struct.
+
+Thu Dec 25 01:52:34 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * thread.c (thread_start_func_2): sets native thread key.
+
+Thu Dec 25 01:09:23 2008 TAKAO Kouji <kouji@takao7.net>
+
+ * test/readline/test_readline_history.rb: check the encoding that
+ is in the Readline::HISTORY.
+
+Thu Dec 25 00:59:06 2008 TAKAO Kouji <kouji@takao7.net>
+
+ * test/readline/test_readline_history.rb: did not check the
+ encoding that is in the Readline::HISTORY. I will fix it.
+
+Wed Dec 24 22:36:06 2008 Koichi Sasada <ko1@atdot.net>
+
+ * error.c, vm_dump.c: change message by rb_bug().
+
+Wed Dec 24 21:57:39 2008 Koichi Sasada <ko1@atdot.net>
+
+ * compile.c (iseq_peephole_optimize): fix typo.
+
+Sun Dec 21 13:38:04 2008 Koichi Sasada <ko1@atdot.net>
+
+ * vm.c (invoke_block_from_c): fix to point right cfp.
+
+ * vm.c (vm_make_proc, vm_make_proc_from_block), vm_core.h:
+ remove unused parameter cfp.
+
+ * vm_insnhelper.c, proc.c (proc_new): ditto.
+
+Wed Dec 24 20:59:12 2008 Koichi Sasada <ko1@atdot.net>
+
+ * error.c (exc_equal): == method should not raise Exception.
+ [ruby-dev:37519]
+
+ * sample/test.rb: fix test.
+
+Wed Dec 24 20:33:45 2008 Koichi Sasada <ko1@atdot.net>
+
+ * vm_insnhelper.c (vm_call_method): use class of method defined
+ instead of receiver's class on bmethod. fixes [ruby-core:20786]
+
+ * bootstraptest/test_method.rb: add a test for above.
+
+ * vm_insnhelper.c (vm_setup_method): remove unused parameter klass.
+
+ * vm_insnhelper.h (CALL_METHOD): ditto.
+
+ * insns.def, vm_eval.c: ditto.
+
+Wed Dec 24 20:15:50 2008 Koichi Sasada <ko1@atdot.net>
+
+ * tool/file2lastrev.rb (get_revisions): fix to ignore end of line.
+
+Wed Dec 24 13:33:38 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (HAVE_LONG_LONG, HAVE_OFF_T): revised for autoconf
+ 2.62 or later.
+
+Wed Dec 24 06:29:32 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (OBJDUMP, OBJCOPY): autoconf list is not comma
+ separated.
+
+ * configure.in (AC_HEADER_STDC, AC_CHECK_HEADERS, AC_CHECK_FUNCS):
+ removed duplicated checks.
+
+Wed Dec 24 03:21:21 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * misc/ruby-mode.el: added comment to mention newer version
+ bundled with Emacs 23 or later. a patch from Phil Hagelberg
+ <phil at hagelb.org> in [ruby-core:20838].
+
+Tue Dec 23 23:49:37 2008 Tanaka Akira <akr@fsij.org>
+
+ * io.c (rb_io_init_copy): call io_seek only if io_tell succeeds.
+
+Tue Dec 23 22:57:48 2008 Tanaka Akira <akr@fsij.org>
+
+ * process.c (rb_fork): don't propagate an error message if error
+ buffer not given.
+
+Tue Dec 23 21:55:05 2008 Tanaka Akira <akr@fsij.org>
+
+ * process.c (rb_fork): propagate an error message from child to parent.
+ (rb_f_exec): show details of error in child process on
+ exception.
+ (save_redirect_fd): add error message arguments.
+ (run_exec_dup2): ditto.
+ (run_exec_close): ditto.
+ (run_exec_open): ditto.
+ (run_exec_dup2_child): ditto.
+ (run_exec_pgroup): ditto.
+ (run_exec_rlimit): ditto.
+ (rb_run_exec_options): ditto.
+ (rb_exec): ditto.
+ (rb_exec_atfork): ditto.
+ (rb_spawn_internal): ditto.
+ (rb_spawn): ditto.
+ (rb_f_system): follow arguments change.
+ (proc_daemon): ditto.
+ (rb_f_spawn): show details of error in child process on exception.
+
+ * io.c (popen_exec): add error message arguments.
+ (pipe_open): show details of error in child process on exception.
+
+ * include/ruby/intern.h (rb_run_exec_options): add error message
+ arguments.
+ (rb_exec): ditto.
+ (rb_fork): ditto.
+ (rb_spawn): ditto.
+
+ * ext/pty/pty.c (chfunc): add error message arguments.
+
+Tue Dec 23 20:28:28 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * io.c: rdoc for File::open and 1.9 feature in file modes.
+
+ * transcode.c: rdoc for String#encode
+
+Tue Dec 23 19:51:24 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * win32/win32.c (rb_w32_spawn): deals with quoted commands.
+
+Tue Dec 23 18:44:21 2008 Tanaka Akira <akr@fsij.org>
+
+ * strftime.c (rb_strftime): use locale insensitive functions for tr_TR
+ locale.
+
+Tue Dec 23 17:38:03 2008 Tanaka Akira <akr@fsij.org>
+
+ * lib/test/unit/assertions.rb (assert_equal): show small differences
+ for Regexp and Float.
+
+Tue Dec 23 16:49:48 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/win32.c (rb_w32_spawn): support normal commands with arguments.
+
+Tue Dec 23 16:22:41 2008 Tanaka Akira <akr@fsij.org>
+
+ * io.c (rb_io_inspect): show fd number if there is no pathname.
+
+Tue Dec 23 15:48:55 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * tool/file2lastrev.rb: shouldn't use single quote in shell's command
+ line if you want to support Windows.
+
+Tue Dec 23 15:46:43 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * lib/mathn.rb: Math.sqrt(NaN) should be NaN. [ruby-dev:37537]
+
+Tue Dec 23 15:46:47 2008 Eric Hodel <drbrain@segment7.net>
+ * gem_prelude.rb: Match full RubyGems behavior when a gem can't be
+ found.
+
+Tue Dec 23 15:36:58 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * tool/file2lastrev.rb: detects vcs directory properly on building
+ outside of srcdir. [ruby-dev:37555] [ruby-dev:37561]
+
+Tue Dec 23 15:30:02 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * io.c (pipe_open): need to initialize args.
+
+Tue Dec 23 14:18:14 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * include/ruby/st.h: need to include defines.h because LONG_LONG is
+ defined there.
+
+Tue Dec 23 13:52:05 2008 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rdoc/parser/c.rb: Don't coalesce adjacent comment blocks.
+ [bug#901]
+
+Tue Dec 23 12:00:00 2008 Tanaka Akira <akr@fsij.org>
+
+ * io.c (pipe_close): fix coding style. [ruby-dev:37554]
+
+Tue Dec 23 08:10:05 2008 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/installer.rb: Fix documentation. [bug#827]
+
+Tue Dec 23 08:04:58 2008 Eric Hodel <drbrain@segment7.net>
+
+ * gem_prelude.rb: Don't remove methods twice. [bug#555]
+
+Tue Dec 23 00:16:48 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * sprintf.c (rb_str_format): fix buffer overflow.
+
+Mon Dec 22 19:31:19 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * common.mk (revision.h): uses tool/file2lastrev.rb to support
+ git-svn.
+
+ * version.h: changed version string as
+ `ruby 1.9.1 (2008-12-22 patchlevel-5000 trunk 20912)
+ [i386-darwin9.6.0]'.
+
+Mon Dec 22 16:32:21 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * pack.c (pack_pack): encoding of packed string only from 'm',
+ 'M', and 'u' should be US-ASCII. [ruby-dev:37284]
+
+ * pack.c (pack_pack): encoding of packed string only from 'U'
+ should be UTF-8. also upgrade US-ASCII strings to UTF-8.
+
+Mon Dec 22 15:56:49 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * Doxyfile.in: new file. Template of a configuration file.
+ Introduces C-level API reference generation with Doxygen.
+
+ * tool/file2lastrev.rb: wrapper script that abstracts subversion
+ and git-svn.
+
+ * tool/strip-rdoc.rb: filter for preventing doxygen from processing
+ rdoc comments.
+
+ * configure.in: (Doxyfile): Doxyfile is generated together with
+ Makefile.
+ (PACKAGE): configuration $(PACKAGE) is necessary for $(docdir).
+
+ * instruby.rb: adds a new install target 'capi'
+
+ * common.mk (capi): new target that generates C API documents with
+ Doxygen.
+ (install-capi): new target.
+ (pre-install-capi): ditto.
+ (do-install-capi): ditto.
+ (post-install-capi): ditto.
+
+Mon Dec 22 21:31:11 2008 Tanaka Akira <akr@fsij.org>
+
+ * numeric.c (int_ord): Integer#ord implemented.
+
+Mon Dec 22 21:26:12 2008 Tanaka Akira <akr@fsij.org>
+
+ * io.c (rb_io_s_pipe): IO.pipe can take a block.
+ (pipe_close): new function.
+
+Mon Dec 22 21:08:54 2008 Tanaka Akira <akr@fsij.org>
+
+ * lib/test/unit/assertions.rb (assert_nothing_raised): increment
+ assertion count. [ruby-dev:37480]
+
+Mon Dec 22 19:10:44 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * thread_win32.c (Init_native_thread): need to call
+ ruby_thread_set_native() here.
+
+Mon Dec 22 18:00:36 2008 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/tcltklib.c: fix wrong flag value.
+
+Mon Dec 22 15:15:58 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/net/protocol.rb (Net::BufferedIO#rbuf_fill): avoid calling
+ read_nonblock in rescue. use retry instead.
+
+Mon Dec 22 14:35:59 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (rb_external_str_new_with_enc): set ASCII-8BIT if
+ encoding is US-ASCII and string contains 8bit characters.
+
+Mon Dec 22 12:26:18 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * cygwin/GNUmakefile.in (rubydll.def), win32/mkexports.rb
+ (Exports#exports): added VERSION.
+
+Mon Dec 22 12:25:09 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * missing/vsnprintf.c (BSD_vfprintf): fix for test_sprintf_comb.rb, by
+ wanabe in [ruby-dev:36935].
+
+Mon Dec 22 12:05:14 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (mingw): no longer uses snprintf and vsnprintf of
+ msvcrt. [Bug#6]
+
+ * win32/win32.c (rb_w32_vsnprintf, rb_w32_snprintf): removed.
+
+ * win32/Makefile.sub (config.h): vsnprintf exists in VC7 or later.
+
+ * win32/mkexports.rb (Exports#initialize): aliases
+ rb_w32_vsnprintf and rb_w32_snprintf for binary compatibility.
+
+ * sprintf.c (rb_str_format): uses snprintf instead of sprintf.
+
+ * numeric.c (flo_to_s, rb_num2long, rb_num2ll): ditto.
+
+Mon Dec 22 10:59:31 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (rb_str_upto): should return enumerator if called
+ without block. [ruby-dev:37526]
+
+Mon Dec 22 09:54:43 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * parse.y (gettable_gen): the encoding of __FILE__ should be
+ rb_filesystem_encoding(). [ruby-list:45733]
+
+ * parse.y (gettable_gen): __FILE__ should be ASCII-8BIT when
+ filesystem encoding is US-ASCII and __FILE__ contains non 7bit
+ characters.
+
+Mon Dec 22 02:54:56 2008 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/tk.rb: temporary patch for trouble on TkAqua (> Tk8.4.9).
+
+ * ext/tk/sample/demos-jp/widget: set encoding to a demo-code string to
+ avoid garbled text on the Code Window.
+
+Sun Dec 21 14:55:18 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/optparse.rb (SPLAT_PROC): splat values by hand.
+
+Sun Dec 21 13:50:37 2008 TAKAO Kouji <kouji@takao7.net>
+
+ * test/readline/test_readline.rb
+ (TestReadline#test_some_characters_methods): checked encoding.
+
+Sun Dec 21 12:23:16 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/optparse.rb (SPLAT_PROC): fix for regexp. [ruby-dev:37514]
+
+Sun Dec 21 10:43:10 2008 TAKANO Mitsuhiro (takano32) <tak@no32.tk>
+
+ * sample/test.rb: rescue exception.
+
+Sat Dec 20 18:28:26 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * dln.c (dln_find_1): supplements an extension for executable
+ files on DOSish platforms.
+
+ * io.c (pipe_open): use rb_w32_aspawn() for array form.
+
+ * win32/win32.c (rb_w32_pipe_exec): no longer used.
+
+ * win32/win32.c (rb_w32_spawn, rb_w32_aspawn): deals with batch
+ files and commands with extensions. [ruby-core:20695]
+
+ * win32/win32.c (has_redirection): supports environment variables
+ references.
+
+Sat Dec 20 15:34:36 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/rake.rb (Rake::FileList#egrep): change open mode to "rb",
+ i.e. default to binary. [ruby-dev:37385]
+
+ * lib/rake.rb (Rake::FileList#egrep): allow specifying reading
+ encoding, e.g. FileList['*.rb'].egrep(/require/, encoding:
+ "ascii-8bit")
+
+ * lib/rake.rb (Rake::MultiTask): invoke_prerequisites should be
+ private. a patch from okkez in [ruby-dev:37399]
+
+Sat Dec 20 10:59:16 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * lib/irb/locale.rb (IRB::Locale#initialize)
+ initializes instance variables to suppress warnings.
+ typo fix to ignore LoadError: [ruby-dev:37508]
+
+Fri Dec 19 17:01:35 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * io.c (rb_io_extract_encoding_option): "internal_encoding: nil"
+ to specify no-transcoding. and other corner case fixed.
+ [ruby-dev:37496]
+
+ * hash.c (rb_hash_lookup2): new function to look-up hash with
+ default value.
+
+Fri Dec 19 15:51:48 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ruby.c (process_options): get rid of warning on DOSISH.
+
+Fri Dec 19 07:45:37 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * error.c (exc_equal): duck typing equal to make it transitive.
+ [ruby-dev:34808]
+
+Thu Dec 18 19:31:54 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * lib/irb/init.rb (IRB.opt_parse): (M17N) adds -U and -E as command
+ line options. [ruby-dev:37161]. Fixes #711.
+ improved long options.
+
+ * lib/irb/init.rb (IRB.set_encoding): new subroutine for IRB.opt_parse
+
+ * lib/irb/input-method.rb (IRB::StdioInputMethod): (M17N) regards
+ scripts that user types as encoded in the external_encoding.
+
+ * lib/irb/input-method.rb (IRB::ReadlineInputMethod): ditto.
+
+ * lib/irb/input-method.rb (IRB::FileInputMethod): (M17N) respects
+ magic comment.
+
+ * lib/irb/help.rb (IRB.print_usage): (M17N) respects magic comment
+ in the resource file.
+
+ * lib/irb/lc/help-message: adds -U and -E.
+
+ * lib/irb/lc/ja/help-message: ditto. re-encoded from ISO-2022-JP into UTF-8.
+
+ * lib/irb/lc/ja/encoding_aliases.rb: new file. provides Japanese specific
+ character encoding name table for backward compatibility.
+
+ * lib/irb/lc/ja/error.rb: re-encoded from ISO-2022-JP into UTF-8.
+ magic comment.
+
+ * lib/irb/locale.rb: integrated with Ruby 1.9's M17N support.
+
+ * lib/irb/magic-file.rb: new file. utility to handle files with magic
+ comment and opens in the correct encoding.
+
+ * lib/irb/ruby-lex.rb (RubyLex#each_top_level_statement): recovers
+ character encoding for a statement after it lexed so that irb can
+ eval the statement in correct encoding.
+
+ * lib/irb/src_encoding.rb: new file. utility.
+
+Thu Dec 18 21:12:28 2008 Takeyuki FUJIOKA <xibbar@ruby-lang.org>
+
+ * lib/cgi/session.rb: fix bug for ignore session_id option.
+ report from [ruby-core:18635], [Bug #572]
+
+ * lib/cgi/core.rb: use Encoding#find when encoding set.
+
+ * test/cgi/test_cgi_session.rb: test for session_id specified.
+
+Thu Dec 18 17:00:56 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * hash.c (rb_hash_aset): string key copying only happen if key is
+ an exact instance of String, not a subclass. based on a patch
+ from Mike Gold <mike.gold.4433 at gmail.com> in [ruby-talk:322667].
+ [incompatible] [ruby-talk:322417]
+
+Thu Dec 18 16:48:12 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/optparse/version.rb: remove variable shadowing to stop
+ warning. [ruby-core:20612]
+
+ * lib/irb/completion.rb, lib/net/imap.rb, lib/prime.rb,
+ lib/rinda/ring.rb, lib/racc/parser.rb,
+ lib/shell/command-processor.rb, lib/yaml/yamlnode.rb: ditto.
+
+ * lib/racc/parser.rb: remove space before parentheses.
+
+ * lib/shell/command-processor.rb, lib/shell/process-controller.rb:
+ use parentheses around arguments.
+
+ * lib/irb/ext/change-ws.rb, lib/rexml/validation/relaxng.rb,
+ lib/yaml/baseemitter.rb: indentation fix.
+
+ * lib/matrix.rb: small cosmetic change.
+
+Thu Dec 18 08:15:04 2008 James Edward Gray II <jeg2@ruby-lang.org>
+
+ * lib/xmlrpc/server.rb: Restricting method inspection to show only
+ non-inherited public methods. [ruby-core:20603]
+
+ * lib/xmlrpc/server.rb: Fixing method inspection so it doesn't
+ trigger XMLRPC::FaultException when used. [ruby-core:20604]
+
+Wed Dec 17 19:39:44 2008 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/socket.c (unix_recv_io): relax msg_controllen error
+ check for x86_64-openbsd4.4.
+
+Wed Dec 17 19:37:30 2008 Tanaka Akira <akr@fsij.org>
+
+ * ext/pty/extconf.rb: check util.h for OpenBSD.
+
+ * ext/pty/pty.c: include util.h if available. fix variable name.
+
+Wed Dec 17 19:23:28 2008 Keiju Ishitsuka <keiju@ruby-lang.org>
+
+ * lib/matrix.rb: shut up warning. [ruby-dev:37481] [Bug #899]
+
+Wed Dec 17 15:44:28 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * array.c (rb_ary_pop_m): use enum ary_take_pos_flags.
+
+ * array.c (rb_ary_push_m): add modification check before actual
+ operation. [ruby-dev:37440]
+
+Wed Dec 17 15:35:39 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * configure.in (OBJDUMP, OBJCOPY):
+ *BSD's ports and MacPorts prefix GNU binutils with 'g'.
+
+Wed Dec 17 11:39:39 2008 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
+
+ * test/bigdecimal/test_bigdecimal.rb (TestBigDecimal#test_hash):
+ shut up warning. see [ruby-dev:37437]
+
+Wed Dec 17 11:01:35 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * string.c (rb_str_hash): gets rid of collisions between different
+ encoding strings. [ruby-core:20526]
+
+Wed Dec 17 09:50:19 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * test/ruby/test_metaclass.rb: removed codes for my debugging.
+ sorry. [ruby-dev:37470]
+
+Tue Dec 16 22:55:11 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * bin/testrb: set $0.
+
+Tue Dec 16 22:42:16 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * lib/test/unit.rb (Test::Unit.setup_argv): sorry, fixed wrong commit.
+
+Tue Dec 16 22:15:17 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/minitest/unit.rb (MiniTest::Assertions#assert_instance_of):
+ should assert by instance_of?, not ===. [ruby-dev:37458]
+
+ * lib/minitest/unit.rb (MiniTest::Assertions#assert_instance_of):
+ typo fixed.
+
+Tue Dec 16 21:59:29 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * lib/test/unit.rb (Test::Unit.setup_argv): ALT_SEPARATOR support.
+
+Tue Dec 16 21:59:02 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ext/bigdecimal/bigdecimal.c (VpToString): reverted modification
+ (that caused a bug) in r20359. [ruby-dev:37370]
+
+ * ext/bigdecimal/bigdecimal.c (BigDecimal_limit): comment update.
+ [ruby-dev:37465]
+
+Tue Dec 16 20:34:44 2008 Tanaka Akira <akr@fsij.org>
+
+ * ext/pty/pty.c (getDevice): add nomesg argument.
+ (get_device_once): add nomesg argument. chmod slave tty to 0600
+ if nomesg. more error tests.
+ (no_mesg): new function.
+ (pty_open): make slave tty's mode 0600.
+
+Tue Dec 16 20:24:20 2008 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * lib/date/format.rb (_parse): m17n compliant.
+
+Tue Dec 16 19:48:18 2008 Tanaka Akira <akr@fsij.org>
+
+ * ext/pty/extconf.rb: check posix_openpt.
+
+ * ext/pty/pty.c (get_device_once): use posix_openpt if available.
+
+Tue Dec 16 19:43:53 2008 Tanaka Akira <akr@fsij.org>
+
+ * re.c: use strlcpy for error messages.
+
+Tue Dec 16 16:41:51 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (stmt): returns dispatched result.
+
+ * parse.y (primary): also in ripper, saves in_def before restoring.
+
+Tue Dec 16 12:30:56 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (ac_cv_header_ucontext_h): do not use ucontext.h on Mac
+ OS X 10.5 or later. merged from MacPorts.
+
+ * configure.in (ac_cv_func_daemon): daemon(3) is deprecated on Mac OS
+ X 10.5 or later.
+
+Tue Dec 16 11:37:07 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * ruby.c (set_arg0): use strlcpy() instead of strncpy().
+
+ * load.c (rb_feature_p): ditto.
+
+ * dln.c (dln_load): ditto.
+
+Tue Dec 16 09:14:28 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * parse.y (block_call): block should not be given to yield.
+ [ruby-core:20583]
+
+Mon Dec 15 23:48:39 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * thread.c (sleep_timeval): cast tv_usec to long to shut up
+ warnings on OSX. [ruby-dev:37449]
+
+Mon Dec 15 23:34:04 2008 Tanaka Akira <akr@fsij.org>
+
+ * ext/pty/pty.c (pty_open): set FMODE_SYNC and FMODE_DUPLEX.
+
+Mon Dec 15 23:29:49 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ruby.c (process_options): revive global sub, gsub, chop, chomp
+ only when auto looping options (-p/-n) is specified.
+ [ruby-core:20570]
+
+Mon Dec 15 22:48:11 2008 Tanaka Akira <akr@fsij.org>
+
+ * ext/pty/pty.c (pty_open): new method PTY.open.
+
+Mon Dec 15 21:24:01 2008 Tanaka Akira <akr@fsij.org>
+
+ * ext/pty/pty.c (get_device_once): use DEVICELEN instead of
+ sizeof SlaveName.
+
+Mon Dec 15 21:01:46 2008 Tanaka Akira <akr@fsij.org>
+
+ * ext/pty/pty.c (chfunc): make it static.
+
+Mon Dec 15 20:59:10 2008 Tanaka Akira <akr@fsij.org>
+
+ * ext/pty/pty.c (child_info): add slavename.
+ (chfunc): use slavename.
+ (establishShell): set slavename.
+
+Mon Dec 15 20:16:46 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * common.mk (EXTMK_ARGS): shouldn't use ``\"'' because cmd.exe eat
+ ''\'' in such quotes.
+
+Mon Dec 15 19:07:31 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/Makefile.sub (config.h): define CANONICALIZATION_FOR_MATHN
+ to follow r20683.
+
+Mon Dec 15 18:12:34 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/rake/packagetask.rb (Rake::PackageTask): small document
+ update from okkez in [ruby-dev:37443]
+
+Mon Dec 15 16:28:32 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * vm_insnhelper.c (vm_callee_setup_arg_complex): uses cfp from
+ blockptr instead of the current cfp. [ruby-core:20544]
+
+Mon Dec 15 14:56:59 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * test/ruby/test_metaclass.rb: new test case for metaclass hierarchy.
+
+ * class.c (make_metametaclass): new function. extracted from
+ rb_make_metaclass.
+
+ * class.c (rb_make_metaclass): uses make_metametaclass when called for a
+ metaclass.
+
+ * class.c (rb_singleton_class): creates a meta^(n+2)-class in
+ addition to a meta^(n+1)-class when called for a meta^(n)-class.
+ This is because the returned meta^(n+1) class must acts as an instance of
+ Class, metaclass of Class, ..., meta^(n+1)-class of Class,
+ Module, metaclass of Module, ..., meta^(n+1)-class of Module,
+ Object, metaclass of Object, ..., meta^(n+2)-class of Object,
+ BasicObject, metaclass of BasicObject, ..., meta^(n+2)-class of
+ and BasicObject even when Class, Module, Object or BasicObject has
+ not have its meta^(i)-class yet.
+
+Mon Dec 15 15:13:22 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * id.h, template/id.h.tmpl (ruby_method_ids): sees YYTOKENTYPE too.
+ [ruby-dev:37436]
+
+Mon Dec 15 15:02:24 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * common.mk (EXTMK_ARGS): needs MINIRUBY for cross-compile.
+ [ruby-core:20131]
+
+Mon Dec 15 14:39:37 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * vm_eval.c (vm_call0): NODE_ZSUPER supported. [ruby-core:20480]
+
+ * vm_eval.c (vm_call_super): uses method_missing().
+
+ * vm_eval.c (method_missing): get rid of too large alloca.
+
+ * vm_eval.c (rb_call0, method_missing): uses idMethodMissing.
+
+ * vm_method.c (rb_add_method, remove_method, rb_undef): uses
+ id__send__.
+
+ * vm_method.c (Init_eval_method): removed IDs which are defined as
+ immediate values.
+
+Mon Dec 15 11:35:27 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * vm.c (vm_backtrace): defaults to script name for C functions.
+
+Mon Dec 15 11:32:18 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ruby.c (rubylib_mangled_path, rubylib_mangled_path2): cannot use
+ locale encoding before load path is initialized
+
+ * ruby.c (ruby_init_loadpath_safe): ditto.
+
+ * ruby.c (process_options): loads encdb so that encodings can be
+ loaded, then associates script name and load paths with the
+ locale encoding.
+
+Mon Dec 15 10:00:36 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * common.mk (btest-ruby): use RUNRUBY instead of MINIRUBY to load the
+ shared library. [Bug #849]
+
+Sun Dec 14 22:31:19 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * bignum.c (bigmul1_karatsuba): remove temporal bignum.
+
+ * bignum.c (bigsqr): call bigmul0(x, x) because it is faster than the
+ original bigsqr at this point.
+
+ * bignum.c (rb_big_pow): a value returned from bigsqr is already
+ truncated.
+
+Sun Dec 14 21:13:02 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * bignum.c (bigmul1_karatsuba): fix comment and refactoring.
+
+Sun Dec 14 14:53:41 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * bignum.c (bigmul1_balance, bigmul1_karatsuba): remove all
+ rb_gc_force_recycle which causes memory leak.
+
+Sun Dec 14 14:26:11 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * spec/README: directory structure changed
+
+Sun Dec 14 09:14:37 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * reverts r20713.
+
+Sun Dec 14 12:51:48 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * bignum.c (rb_big_mul): faster multiplication by Karatsuba method and
+ twice faster square than normal multiplication. [ruby-dev:37392]
+
+ * random.c (rb_rand_internal): used by Bignum#*.
+
+ * test/ruby/test_bignum.rb: add some tests for above.
+
+Sun Dec 14 01:35:48 2008 Tanaka Akira <akr@fsij.org>
+
+ * process.c (forked_child): new variable.
+ (before_exec): don't call rb_thread_stop_timer_thread if
+ forked_child.
+ (after_exec): reset forked_child after rb_thread_start_timer_thread.
+ (rb_fork): set forked_child just after fork in child.
+
+ * ext/pty/pty.c (chfunc): extracted from establishShell.
+ (establishShell): use rb_fork.
+
+ [ruby-dev:37418]
+
+Sat Dec 13 22:17:30 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * common.mk (help): describes more targets.
+ based on a patch by Michael Klishin. [ruby-core:20523].
+
+Sat Dec 13 18:34:43 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (sym_printable): wrong condition for string iteration.
+
+Sat Dec 13 16:04:48 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * encoding.c (default_external): endless recursion during
+ loading a locale encoding on some locale.
+ fixed by Nobuyoshi Nakada.
+
+Sat Dec 13 15:55:37 2008 TAKAO Kouji <kouji@takao7.net>
+
+ * ruby.c (process_options): fixed default_internal is nil.
+ (closes #862)
+
+Sat Dec 13 15:52:27 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (sym_equal): remove documentation error "Otherwise,
+ compares them as strings". [ruby-dev:37398]
+
+ * string.c (sym_inspect): quote if symbol contains non-printable
+ characters. [ruby-dev:37398]
+
+Sat Dec 13 14:24:38 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * test/ruby/enc/test_utf16.rb: feature changed in r20626.
+ follows it.
+
+Sat Dec 13 13:41:44 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * test/ruby/test_m17n_comb.rb: feature changed in r20626.
+ follows it.
+
+Sat Dec 13 13:03:20 2008 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * complex.c: use rb_usascii_str_new2 instead of rb_str_new2.
+
+ * rational.c: ditto.
+
+Sat Dec 13 12:48:57 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * test/ruby/test_m17n.rb: feature changed in r20626.
+ follows it.
+
+Sat Dec 13 12:38:16 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * lib/minitest/test.rb (MinTest::Unit#location):
+ skips user-defined assertions as MiniTest's.
+ e.g. for test/ruby/test_m17n.rb.
+
+Sat Dec 13 09:17:33 2008 Ryan Davis <ryand-ruby@zenspider.com>
+
+ * lib/minitest/*.rb: Imported minitest 1.3.1 r4503.
+ * test/minitest/test_mini_test.rb: ditto.
+ * lib/miniunit/autorun.rb: added (as part of r4503).
+
+Sat Dec 13 08:35:14 2008 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * complex.c (nucomp_canonicalization): renamed.
+
+ * ext/math/complex.c: followed the above change.
+
+ * rational.c (nurat_canonicalization): renamed.
+
+ * ext/math/rational.c: followed the above change.
+
+ * configure.in: defines a new macro.
+
+Sat Dec 13 01:10:03 2008 TAKAO Kouji <kouji@takao7.net>
+
+ * ext/readline/readline.c
+ (readline_s_get_completion_append_character): uses locale
+ encoding but not ASCII-8BIT.
+
+Fri Dec 12 22:12:46 2008 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * complex.c, rational.c: do not use RUBY_VERSION_CODE.
+
+Fri Dec 12 21:41:36 2008 TAKAO Kouji <kouji@takao7.net>
+
+ * ext/readline/readline.c: r20662 reverted.
+
+Fri Dec 12 19:29:07 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * encoding.c (rb_enc_set_default_external): default_internal can be
+ nil, but default_external cannot.
+
+ * encoding.c (rb_set_default_internal): adds rdoc.
+
+ * encoding.c (enc_find): ditto.
+
+Fri Dec 12 19:24:47 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * common.mk (run, runruby, parse, gdb, gdb-ruby): you can also run
+ other scripts than $(srcdir)/test.rb.
+
+Fri Dec 12 19:13:43 2008 TAKAO Kouji <kouji@takao7.net>
+
+ * ext/readline/readline.c (readline_readline): changed the message
+ of IOError to 'closed stdin' from 'stdin closed' if stdin was
+ closed.
+
+Fri Dec 12 19:00:49 2008 TAKAO Kouji <kouji@takao7.net>
+
+ * ext/readline/readline.c: used the ExportStringValue macro
+ instead of the OutputStringValue macro. removed the
+ OutputStringValue macro.
+
+Fri Dec 12 16:23:18 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (yycompile0): ruby_eval_tree_begin is always 0 when
+ ruby_eval_tree is 0.
+
+Fri Dec 12 14:09:55 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * encoding.c (enc_get_default_encoding): removed.
+ Generalizing rb_default_{external,internal}_encoding seems to be
+ difficult.
+ default_external cannot be NULL even before detected. [ruby-dev:37390]
+
+ * encoding.c (rb_default_external_encoding): has its own
+ implementation again.
+
+ * encoding.c (rb_default_internal_encoding): ditto.
+
+ * gem_prelude.rb: added notice.
+
+ * ruby.c (rubylib_mangled_path, rubylib_mangled_path2): uses locale
+ encoding but not ASCII-8BIT.
+
+ * ruby.c (process_options): refers less to default_external.
+
+Fri Dec 12 11:00:52 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * load.c (rb_feature_p): load path must be expanded.
+ [ruby-dev:37388]
+
+Fri Dec 12 10:28:08 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (rb_version): greps only the line that defines version.
+
+ * version.h (RUBY_VERSION_CODE, RUBY_RELEASE_CODE): removed.
+
+Fri Dec 12 10:20:55 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * complex.c, rational.c: do not use RUBY_VERSION_CODE.
+
+Fri Dec 12 10:19:21 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * string.c (rb_string_value_ptr, rb_to_id): do not use a side
+ effect expression in RSTRING_PTR.
+
+ * string.c (rb_str_split_m): simplified the argument of
+ RSTRING_LEN.
+
+Thu Dec 11 23:48:00 2008 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * lib/cmath.rb (sqrt): should pass nan to the original method.
+
+Thu Dec 11 21:04:04 2008 Kouhei Sutou <kou@cozmixng.org>
+
+ * lib/rss/maker.rb, lib/rss/maker/0.9.rb, lib/rss/maker/base.rb:
+ RSS::Maker.[] returns a maker class corresponds to passed version.
+
+ * test/rss/test_maker_*.rb: add tests for RSS::Maker.[].
+
+Thu Dec 11 20:05:17 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * encoding.c (rb_enc_aliases_enc_i): skips default internal.
+
+Thu Dec 11 19:31:45 2008 Tanaka Akira <akr@fsij.org>
+
+ * lib/test/unit/assertions.rb: extracted from lib/test/unit.rb.
+ lib/test/unit/testcase.rb: ditto.
+ at asakusa.rb. [ruby-core:20014]
+
+Thu Dec 11 19:23:09 2008 Tanaka Akira <akr@fsij.org>
+
+ * test/ruby/test_io.rb (test_dup_many): extracted from test_dup.
+ test in ruby subprocess. at asakusa.rb. [ruby-dev:35648]
+
+Thu Dec 11 19:16:30 2008 Tanaka Akira <akr@fsij.org>
+
+ * lib/pathname.rb (Pathname#=~): undefed. at asakusa.rb.
+ [ruby-core:19690]
+
+Thu Dec 11 13:09:01 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * re.c (reg_enc_error): raise EncodingCompatibilityError for
+ encoding incompatibility. [ruby-core:18600]
+
+ * re.c (rb_reg_prepare_enc): more consistent error message.
+ [ruby-core:18611]
+
+Thu Dec 11 13:36:18 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * encoding.c (enc_set_default_encoding): allowed to set default
+ encoding.
+
+ * encoding.c (rb_locale_encoding): removed Encoding::LOCALE.
+
+ * encoding.c (rb_enc_set_default_external): ditto.
+
+ * encoding.c (rb_enc_set_default_internal): ditto.
+
+ * encoding.c (rb_enc_set_default_internal): defines internal
+ encoding as nil.
+
+Thu Dec 11 11:11:03 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * include/ruby/st.h (size_t): needs stddef.h or stdlib.h.
+ [ruby-core:20339]
+
+Thu Dec 11 10:25:25 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * test/ruby/test_bignum.rb (TestBignum#test_convert): remove
+ platform dependent call of Process.wait. coverage should be
+ accomplished by other method. [ruby-dev:36062]
+
+Thu Dec 11 10:18:35 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/rexml/document.rb (REXML::Document#write): require
+ rexml/formatters/transitive if transitive flag is on. a patch
+ from akira yamada in [ruby-dev:36230]. fix #553
+
+ * lib/rexml/element.rb (REXML::Element#write): ditto.
+
+ * lib/rexml/formatters/transitive.rb (REXML::Formatters::Transitive#write_element):
+ add hack for IE. [ruby-dev:36230]
+
+Thu Dec 11 02:37:22 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * math.c (domain_check): should not raise EDOM exception for NaN
+ value if operand is also NaN. affects acos, asin, acosh, atanh,
+ log, log2, log10, sqrt, gamma, lgamma. [ruby-dev:37357]
+
+Thu Dec 11 02:23:51 2008 Tanaka Akira <akr@fsij.org>
+
+ * lib/open3.rb (Open3.pipeline_start): return an array of threads if a
+ block is not given.
+
+Thu Dec 11 01:48:00 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ext/bigdecimal/bigdecimal.c (BigDecimal_round): should be round
+ to integer. [ruby-dev:37355]
+
+ * ext/bigdecimal/bigdecimal.c (BigDecimal_divmod): division should
+ be integer. [incompatible] [ruby-dev:37355]
+
+Thu Dec 11 01:21:58 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * thread.c (rb_mutex_unlock): shut up warning. a patch from
+ Kazuhiro NISHIYAMA in [ruby-dev:37345]. fix #846
+
+Wed Dec 10 23:58:56 2008 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * complex.c: avoided warnings on cpp. [ruby-dev:37344]
+
+ * rational.c: ditto.
+
+Wed Dec 10 21:32:02 2008 Kouhei Sutou <kou@cozmixng.org>
+
+ * lib/rss/maker.rb (RSS::Maker.[]): add.
+ Suggested by Akinori MUSHA. Thanks!!! [ruby-dev:37210]
+
+Wed Dec 10 12:56:32 2008 Akinori MUSHA <knu@iDaemons.org>
+
+ * enumerator.c (enumerator_rewind): If the enclosed object
+ responds to a "rewind" method, call it; cf. [ruby-dev:37268]
+
+Wed Dec 10 12:46:52 2008 Akinori MUSHA <knu@iDaemons.org>
+
+ * enumerator.c (enumerator_next): Fix a typo: s/rewinded/rewound/.
+
+ * lib/prime.rb (Prime::OldCompatibility#each): Ditto.
+
+Wed Dec 10 11:25:53 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * re.c (rb_reg_initialize): raise RegexpError when encoding
+ is dummy encoding. [ruby-dev:37091]
+
+Wed Dec 10 01:28:16 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * common.mk (win32.obj): depend on headers.
+
+Tue Dec 9 18:35:35 2008 Martin Duerst <duerst@it.aoyama.ac.jp>
+
+ * enc/trans/single_byte.trans, cp850-tbl.rb, cp852-tbl.rb,
+ cp855-tbl.rb, koi8-r-tbl.rb, koi8-u-tbl.rb, tis-620-tbl.rb:
+ new single-byte transcodings (from Yoshihiro Kambayashi)
+
+ * test/ruby/test_transcode.rb: added tests for the above
+ (from Yoshihiro Kambayashi), small cosmetic fixes
+
+Tue Dec 9 13:33:53 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * compile.c (iseq_compile_each), gc.c (assign_heap_slot),
+ (gc_mark_children), parse.y (vtable_alloc, vtable_free, vtable_add),
+ proc.c (proc_to_s), thread.c (terminate_i, rb_thread_terminate_all),
+ (thread_start_func_2, blocking_region_begin, blocking_region_end),
+ (rb_thread_kill), thread_pthread.c (native_thread_create),
+ (ubf_pthread_cond_signal), vm.c (check_env, thread_free), vm_dump.c
+ (vm_env_dump_raw, vm_stack_dump_each, vm_thread_dump_state),
+ (vm_call0): use void pointer for %p.
+
+ * cont.c (fiber_status), template/insns.inc.tmpl (ruby_vminsn_type),
+ vm_insnhelper.h (BOP): ISO C forbids comma at end of enumerator
+ list.
+
+ * vm_insnhelper.c (check_cfunc): use function pointer.
+
+Tue Dec 9 13:23:55 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ext/curses/curses.c (curses_use_default_colors): add new
+ method. a patch from Giancarlo F Bellido
+ <support at coaxialhost.com> in [ruby-core:20434].
+
+ * ext/curses/curses.c (curses_tabsize_set): ditto.
+
+ * ext/curses/curses.c (curses_tabsize_get): ditto.
+
+Tue Dec 9 12:08:47 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * .gdbinit (rp): fixed typo for T_STRUCT.
+
+Tue Dec 9 11:50:46 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * pack.c (pack_pack): fixed [ruby-dev:37295].
+ Array#pack always has returned an US-ASCII string when
+ the given format ended with 'u', 'M' or 'm'.
+
+Tue Dec 9 03:21:37 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * mkconfig.rb: fix for continued lines. based on a patch from
+ Marcus Rueckert <darix AT opensu.se> at [ruby-core:20420].
+
+Tue Dec 9 00:54:01 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * tool/make-snapshot (package): enc.mk in snapshot is dummy and should
+ not deal with objects. [ruby-core:20422]
+
+Tue Dec 9 00:17:50 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * enc/depend (clean-srcs): split out from clean.
+
+Mon Dec 8 23:34:18 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * pack.c (pack_pack): fixed odd act of 'm*', 'M*', and 'P*'.
+ just ignores '*' in these cases.
+ [ruby-dev:37289]
+
+Mon Dec 8 18:31:41 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * pack.c (pack_pack): fixed length for odd length string.
+ [ruby-dev:37283]
+
+Mon Dec 8 11:28:14 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ruby.c (proc_options): added version, copyright, usage, yydebug,
+ syntax to --dump option.
+
+Mon Dec 8 11:15:45 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ruby.c (proc_options): source-encoding option.
+
+Mon Dec 8 10:32:33 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ruby.c (set_option_encoding_once): dry.
+
+ * ruby.c (proc_options): checks extra argument for -E/--encoding.
+
+Sun Dec 7 23:47:37 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (LIBPATHFLAG): use numbered specifier if RPATHFLAG
+ is set. [ruby-talk:322136]
+
+Sun Dec 7 23:17:33 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * Makefile.in (LIBRUBY_SO): localizes non-public symbols.
+
+ * configure.in (OBJDUMP, OBJCOPY): for dealing with binary files.
+
+Sun Dec 7 17:44:06 2008 Tanaka Akira <akr@fsij.org>
+
+ * lib/open3.rb (Open3.capture3): renamed from Open3.poutput3.
+ (Open3.capture2): renamed from Open3.poutput2.
+ (Open3.capture2e): renamed from Open3.poutput2e.
+
+Sun Dec 7 11:48:04 2008 Tanaka Akira <akr@fsij.org>
+
+ * lib/open3.rb (Open3.poutput3): :binmode option implemented.
+ (Open3.poutput2): ditto.
+ (Open3.poutput2e): ditto.
+
+Sat Dec 6 18:33:16 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * tool/make-snapshot (package): added RM and CP. [ruby-dev:37288]
+
+Sat Dec 6 17:51:35 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * pack.c (pack_pack): 'u0' is not special differently from 'm0'.
+
+Sat Dec 6 14:35:06 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * pack.c (pack_pack): set US-ASCII and CODERANGE_7BIT
+ when quoted-printable ('M') and base64 ('m').
+ [ruby-dev:37284]
+
+ * pack.c (pack_unpack): ditto.
+
+Fri Dec 5 22:56:24 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (rb_make_exception): single argument to raise may be
+ string compatible object.
+
+Fri Dec 5 21:45:45 2008 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * rational.c (nurat_{to_s,inspect}): performance improvement.
+
+Fri Dec 5 21:42:44 2008 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * complex.c: inspect should not depend on to_s.
+
+Fri Dec 5 21:18:31 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ext/bigdecimal/bigdecimal.c (BigDecimal_truncate): return
+ integer if no optional argument given. [incompatible]
+
+ * ext/bigdecimal/bigdecimal.c (BigDecimal_floor): ditto.
+
+ * ext/bigdecimal/bigdecimal.c (BigDecimal_ceil): ditto.
+
+Fri Dec 5 19:06:04 2008 Tanaka Akira <akr@fsij.org>
+
+ * lib/open3.rb (Open3.pipeline_start): new method.
+ (Open3.pipeline): ditto.
+
+Fri Dec 5 18:55:25 2008 Tanaka Akira <akr@fsij.org>
+
+ * process.c (run_exec_dup2): !save is false if Qnil.
+
+Fri Dec 5 18:07:32 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/win32.c (rb_w32_read, rb_w32_write, rb_w32_isatty): check
+ whether fd is valid.
+
+Fri Dec 5 13:05:45 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * iseq.c (rb_iseq_parameters): proc arguments are always optional.
+
+ * proc.c (get_proc_iseq, rb_proc_parameters): ditto.
+
+Fri Dec 5 12:38:48 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * compile.c (iseq_set_sequence): uses rb_compile_warning() for
+ warning at compilation time.
+
+Fri Dec 5 12:35:46 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * compile.c (ruby_iseq_compile, ruby_iseq_translate_threaded_code),
+ (ruby_insns_name_array, ruby_iseq_build_from_ary): prefixed with
+ ruby_.
+
+ * iseq.c (ruby_iseq_load, ruby_insn_make_insn_table): ditto.
+
+Fri Dec 5 10:01:43 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * string.c (rb_str_cmp_m): fixed rdoc. pointed out by <Thomas
+ C. Mitchell AT gmail.com> at [ruby-talk:321967]
+
+Fri Dec 5 07:58:30 2008 Tanaka Akira <akr@fsij.org>
+
+ * io.c (io_binwrite): arg.offset should be updated after retry.
+
+Fri Dec 5 03:29:17 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * load.c (rb_get_load_path): returns the load path without
+ touching.
+
+ * load.c (rb_feature_provided): new function to return the loading
+ path in addition to rb_provided().
+
+ * load.c (search_required): sets path if loading.
+
+ * variable.c (autoload_provided): load paths are expanded to check
+ if loading.
+
+ * variable.c (autoload_node): keeps autoload mark while loading.
+ [ruby-core:20235]
+
+ * variable.c (rb_const_get_0): loops while autoload mark is set.
+
+Fri Dec 5 01:37:02 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/win32.c (rb_w32_read): ERROR_BROKEN_PIPE is not a real error
+ at this point.
+
+ * io.c (pipe_open): use rb_w32_spawn() instead of rb_w32_pipe_exec()
+ to use our own redirection scheme.
+
+Fri Dec 5 01:35:08 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * string.c (sym_to_proc): use hidden object.
+
+Fri Dec 5 01:19:21 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * pack.c (pack_pack): propagate taint status from format string to
+ result string.
+
+Fri Dec 5 00:34:10 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * process.c (run_exec_dup2): need to sort by reverted order when
+ restoring fds.
+
+Fri Dec 5 00:17:18 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * string.c (sym_to_proc): caches Symbol procs, based on a patch from
+ Shumpei Akai <admin AT flexfrank.net>. [ruby-dev:37265]
+
+Thu Dec 4 23:29:34 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/win32.c (waitpid): fix bug of checking child slot.
+
+ * win32/win32.c (FindChildSlotByHandle): new.
+
+Thu Dec 4 23:24:05 2008 Tanaka Akira <akr@fsij.org>
+
+ * lib/open3.rb (Open3.poutput3): new method.
+ (Open3.poutput2): ditto.
+ (Open3.poutput2e): ditto.
+
+Thu Dec 4 23:02:13 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * spec/default.mspec: follows changes in rubyspec project.
+ inherits configurations from ruby.1.9.mspec.
+
+Thu Dec 4 22:13:55 2008 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * test/ruby/test_complex.rb: added some tests.
+
+ * test/ruby/test_rational.rb: ditto.
+
+Thu Dec 4 19:56:20 2008 Tanaka Akira <akr@fsij.org>
+
+ * lib/open3.rb (Open3.popen3): simplified.
+ (Open3.popen_run): extracted from Open3.popen3.
+ (Open3.popen2): new method.
+ (Open3.popen2e): new method.
+ (Open3.pipeline_rw): new method.
+ (Open3.pipeline_r): new method.
+ (Open3.pipeline_w): new method.
+ (Open3.pipeline_run): new private method.
+
+Thu Dec 4 19:16:28 2008 Tanaka Akira <akr@fsij.org>
+
+ * process.c (check_exec_fds): resolve cascaded child fd reference.
+
+Thu Dec 4 16:58:12 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/rubygems/validator.rb (Gem#remove_leading_dot_dir): make
+ this method private. a patch from okkez in [ruby-dev:37245]
+
+Thu Dec 4 16:19:18 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ext/openssl/ossl_ssl.c (ossl_ssl_read_nonblock):
+ OpenSSL::SSL::SSLSocket should implement read_nonblock. a patch
+ from Aaron Patterson in [ruby-core:20277]. fix: #814 [ruby-core:20241]
+
+Thu Dec 4 16:16:09 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/gserver.rb: fixed type in sample code. a report from Oleg
+ Puchinin.
+
+Thu Dec 4 14:54:32 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/rubygems/local_remote_options.rb (Gem#add_update_sources_option):
+ little documentation fix. a patch from okkez. [ruby-dev:37271]
+
+Thu Dec 4 13:56:31 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ext/curses/curses.c (window_getch): avoid ISPRINT() macro which
+ has an issue with OpenSolaris. [ruby-core:20189]
+
+ * ext/curses/curses.c (curses_getch): no ISPRINT(). [ruby-core:20294]
+
+ * signal.c (ruby_signal): EINVAL from sigaction(2) is not a bug.
+
+Thu Dec 4 11:40:56 2008 Akinori MUSHA <knu@iDaemons.org>
+
+ * enumerator.c (inspect_enumerator): Implement #inspect.
+ [ruby-dev:37248]-[ruby-dev:37263]
+
+Thu Dec 4 11:38:40 2008 Akinori MUSHA <knu@iDaemons.org>
+
+ * vm_method.c (rb_obj_respond_to): Remove a duplicated rdoc
+ comment and fix a markup error.
+
+Thu Dec 4 06:04:16 2008 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/tk/menu.rb: TkOptionMenubutton.new fails to treat
+ 'parent' and 'variable' options on a Hash argument.
+
+Thu Dec 4 05:06:47 2008 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/tk.rb: bug fix. use ::RubyVM instead of ::VM
+ [ruby-list:45676]
+
+ * ext/tk/tcltklib.c: update RELEASE_DATE
+
+Thu Dec 4 01:37:47 2008 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * complex.c (nurat_{to_s,inspect}): provides better representation
+ for in-finite imag part.
+
+Thu Dec 4 01:22:41 2008 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * complex.c (f_signbit): NaN may be signed value.
+
+Wed Dec 3 23:59:32 2008 Tanaka Akira <akr@fsij.org>
+
+ * process.c (EXEC_OPTION_DUP2_CHILD): defined.
+ (check_exec_redirect_fd): check :in, :out and :err.
+ (check_exec_redirect): check [:child, fd].
+ (check_exec_fds): validate EXEC_OPTION_DUP2_CHILD array.
+ (run_exec_dup2_child): new function.
+ (rb_run_exec_options): call run_exec_dup2_child.
+
+Wed Dec 3 22:54:39 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (expr): keyword_not can continue across newline.
+ [ruby-core:20252]
+
+Wed Dec 3 22:40:59 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * iseq.c (simple_default_value): returns simplest assignment only.
+ [ruby-core:20237]
+
+Wed Dec 3 21:30:06 2008 Tanaka Akira <akr@fsij.org>
+
+ * process.c (check_exec_redirect): accept :in, :out, :err as redirect
+ target.
+
+Wed Dec 3 21:18:27 2008 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * test/ruby/test_rational.rb: revert.
+
+Wed Dec 3 14:48:52 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/tk/tcltklib.c (ip_ruby_cmd, ip_invoke_with_position): must
+ not access internal union directly. [ruby-list:45670]
+
+Wed Dec 3 12:24:08 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * io.c (rb_io_getc, rb_io_readchar): documentation correction from
+ Emiel van de Laar. [ruby-core:20212]
+
+ * ext/stringio/stringio.c (strio_readchar): ditto.
+
+Wed Dec 3 09:26:29 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/rexml/xpath.rb (REXML::XPath.first): apply documentation
+ patch from Ken Bloom in [ruby-core:20213].
+
+ * lib/rexml/xpath.rb (REXML::XPath.each): ditto.
+
+Wed Dec 3 02:56:34 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * test/ruby/test_rational.rb: add a test.
+
+Wed Dec 3 02:53:24 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * test/ruby/test_range.rb: add a test.
+
+Wed Dec 3 02:26:07 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * test/ruby/test_string.rb: add some tests.
+
+Wed Dec 3 02:04:21 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * ext/pty/pty.c (Init_pty): fix typo.
+
+Tue Dec 2 19:22:13 2008 Tanaka Akira <akr@fsij.org>
+
+ * lib/open3.rb (Open3.popen3): merge hash options if given.
+
+Tue Dec 2 15:31:42 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/net/protocol.rb (Net::BufferedIO#rbuf_fill): use
+ read_nonblock instead of sysread wrapped by timeout to boost
+ performance. a patch from Aaron Patterson in [ruby-core:20191].
+ fix #806
+
+Mon Dec 1 23:23:52 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * set 1.9.1-p5000 into version number. [ruby-dev:36998]
+
+Mon Dec 1 15:48:47 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * signal.c (register_sigaltstack): no need to define on non-sigaltstack
+ platform.
+
+Mon Dec 1 12:00:45 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * cont.c (rb_fiber_start): calls with exact argument number.
+ [ruby-core:20088]
+
+Sun Nov 30 21:41:10 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * man/rake.1: new manual page
+
+Sun Nov 30 18:01:50 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * test/ruby/test_regexp.rb (TestRegexp#test_parse_curly_brace):
+ now accepts quantifier on anchors again by r20391.
+
+Sat Nov 29 23:56:44 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * man/irb.1 (EXAMPLES): new section
+
+Sat Nov 29 19:19:32 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * regparse.c (is_invalid_quantifier_target): Perl and old Ruby
+ accepts quantifier on anchors. [ruby-core:20161]
+
+Sat Nov 29 18:28:57 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ext/socket/socket.c (sock_getaddrinfo): should have updated for
+ Mac OS X. a patch from Shumpei Akai in [ruby-dev:37234]
+
+Sat Nov 29 00:18:30 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * cont.c (fiber_alloc): separate allocation and initialization.
+ allow subclass to override #initialize. [ruby-core:20086]
+
+Fri Nov 28 18:31:21 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ext/socket/socket.c (sock_s_getaddrinfo): refactored to remove
+ code duplication regarding getaddrinfo.
+
+Fri Nov 28 17:52:26 2008 Keiju Ishitsuka <keiju@ruby-lang.org>
+
+ * lib/forwardable.rb: should be usable def_single_delegator for
+ Class and Module.
+
+Fri Nov 28 13:19:34 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * iseq.c (simple_default_value): extracts simplest default
+ argument value.
+
+ * iseq.c (rb_iseq_parameters): returns parameter list.
+
+ * proc.c (get_proc_iseq, get_method_iseq): handles ifunc and
+ bmethod.
+
+ * proc.c (rb_proc_parameters, rb_method_parameters): added
+ Proc#parameters and Method#parameters. [ruby-core:19759]
+
+Fri Nov 28 02:18:47 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ext/bigdecimal/bigdecimal.c (BigDecimal_DoDivmod): bigdecimal
+ division (including modulo) should raise ZeroDivisionError as
+ integer division. [incompatible]
+
+Fri Nov 28 00:12:00 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * numeric.c (flodivmod): floating point division should raise
+ ZeroDivisionError as integer division. [incompatible]
+
+Thu Nov 27 23:54:37 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * gc.c (gc_mark): still needs to check stack depth during GC.
+
+ * gc.c (stack_check): ditto.
+
+Thu Nov 27 21:41:29 2008 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * strftime.c (rb_strftime): should add padding for %%.
+
+Thu Nov 27 16:32:53 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * signal.c (register_sigaltstack): stores alt stack for debug
+ purpose.
+
+Thu Nov 27 16:12:33 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * signal.c (ruby_sigaction_t): added.
+
+Thu Nov 27 15:59:16 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * gc.c (ruby_stack_check): no check if using sigaltstack.
+
+ * signal.c (ALT_STACK_SIZE): default minimum size is insufficient
+ for method calls.
+
+ * signal.c (sigsegv): handles stack overflow if possible.
+
+ * thread.c (ruby_thread_stack_overflow): helper function to raise
+ sysstack_error.
+
+ * thread_pthread.c (ruby_stack_overflowed_p): checks for stack
+ overflow.
+
+Thu Nov 27 10:40:52 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ext/bigdecimal/bigdecimal.c (BigDecimal_div2): should return
+ Integer for #div operation.
+
+ * ext/bigdecimal/bigdecimal.c (BigDecimal_div2): should raise
+ ZeroDivisionError if divisor is zero. [ruby-dev:37207]
+
+Wed Nov 26 23:15:47 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * strftime.c (STRFTIME): use rb_strftime() recursively, instead of
+ platform's strftime().
+
+Wed Nov 26 22:46:23 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ext/bigdecimal/bigdecimal.c (VpException): bigdecimal zero
+ division should raise FloatDomainError if mode
+ VP_EXCEPTION_ZERODIVIDE is set. [ruby-dev:37204]
+
+ * ext/bigdecimal/bigdecimal.c (BigDecimal_mode): should handle
+ VP_EXCEPTION_ZERODIVIDE.
+
+Wed Nov 26 15:16:07 2008 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
+
+ * ext/gdbm/gdbm.c (rb_gdbm_nextkey): fix memory leak.
+
+Wed Nov 26 03:17:48 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ext/bigdecimal/bigdecimal.c (BigDecimal_to_r): raise exception
+ for nan/inf conversion. [ruby-dev:37187] fix #793
+
+ * ext/bigdecimal/bigdecimal.c (BigDecimal_to_i): ditto.
+
+Wed Nov 26 03:00:59 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ext/bigdecimal/bigdecimal.c (VpAlloc): avoid ALLOCA_N() to avoid
+ segmentation fault caused by (insanely) long decimal values.
+ [ruby-dev:37189] fix #794
+
+ * ext/bigdecimal/bigdecimal.c (BigDecimal_dump, BigDecimal_to_i,
+ BigDecimal_to_f, BigDecimal_to_s, BigDecimal_split,
+ BigDecimal_inspect): ditto.
+
+ * ext/bigdecimal/bigdecimal.c (VpToString): small performance
+ improvement.
+
+Wed Nov 26 00:26:30 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * strftime.c (STRFTIME): should add padding for %[xXrR] etc.
+ [ruby-dev:37185] fix: #792
+
+Tue Nov 25 16:26:12 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * array.c (rb_ary_times): taint (and untrust) status should be
+ inherited by "ary * 0". [ruby-dev:37024]
+
+Tue Nov 25 15:54:07 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * strftime.c (rb_strftime): should not swallow incomplete
+ formatter, e.g. "%E". [ruby-dev:37170] fix: #787
+
+ * strftime.c (rb_strftime): clear flags before processing unknown
+ formatter, e.g. "%i". [ruby-dev:37180]
+
+Tue Nov 25 10:35:29 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * strftime.c (rb_strftime): "%^P" should convert to upper case.
+ [ruby-dev:37180]
+
+Tue Nov 25 07:51:18 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * strftime.c (FMT): use "%0d" formatter for zero padding, not "%.d".
+ [ruby-dev:37168] fix: #768
+
+ * strftime.c (rb_strftime): %s to use zero padding by default.
+ [ruby-dev:37180]
+
+Tue Nov 25 03:37:42 2008 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/tkextlib/blt/tabset.rb,
+ ext/tk/lib/tkextlib/blt/tabnotebook.rb:
+ fix many bugs. Now, those work properly.
+
+Tue Nov 25 03:26:04 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * numeric.c (num_step): treat infinite step specially.
+ [ruby-dev:37157] fix: #781.
+
+Tue Nov 25 01:23:25 2008 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * lib/date/format.rb (strftime): ignores '_' flag for %[LN].
+
+Tue Nov 25 00:08:22 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * process.c (rb_fork): stops the timer thread during fork.
+ [ruby-dev:37117]
+
+ * thread.c (rb_thread_start_timer_thread): timer thread needs
+ system_working to be set.
+
+Mon Nov 24 23:27:28 2008 Shugo Maeda <shugo@ruby-lang.org>
+
+ * strftime.c (rb_strftime): The # flag should work with %a, %A, %b,
+ %B, and %h. [ruby-dev:37162]
+
+ * test/ruby/test_time.rb (test_strftime): ditto.
+
+Mon Nov 24 23:16:32 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * signal.c (register_sigaltstack): should not add external
+ variable (with some cosmetic changes). [ruby-dev:37158]
+
+Mon Nov 24 22:57:25 2008 Shugo Maeda <shugo@ruby-lang.org>
+
+ * strftime.c (rb_strftime): A width specifier for %t and %n should
+ work. [ruby-dev:37160]
+
+ * test/ruby/test_time.rb (test_strftime): ditto.
+
+Mon Nov 24 22:07:07 2008 Shugo Maeda <shugo@ruby-lang.org>
+
+ * strftime.c (rb_strftime): The precision of %0N should be 9.
+ [ruby-dev:37156]
+
+ * test/ruby/test_time.rb (test_strftime): ditto.
+
+Mon Nov 24 21:38:23 2008 Shugo Maeda <shugo@ruby-lang.org>
+
+ * strftime.c (rb_strftime): The default precision should be 1, not
+ 0. [ruby-dev:37155]
+
+ * test/ruby/test_time.rb (test_strftime): ditto.
+
+Mon Nov 24 19:53:47 2008 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * lib/date.rb (inspect): changed again.
+
+Mon Nov 24 18:35:00 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/time.rb: r20251 reverted. The patched behavior do not round
+ trip. [ruby-core:19988]
+
+Sun Nov 23 16:04:05 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * signal.c (default_handler, Init_signal): compile error if
+ USE_SIGALTSTACK is not defined.
+
+Sun Nov 23 00:04:14 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * signal.c (ALT_STACK_SIZE): 4KB is not enough on Mac OS X.
+ Uses SIGSTKSZ.
+
+Sat Nov 22 21:29:54 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * test/ruby/test_method.rb (test_default_accessibility): test case for
+ [ruby-dev:37124].
+
+Sat Nov 22 18:24:24 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * file.c (rb_file_world_writable_p): should return nil for non
+ world-writable files.
+
+Sat Nov 22 10:31:25 2008 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/tkextlib/blt.rb, ext/tk/lib/tkextlib/blt/vector.rb:
+ fix NameError bug.
+
+Sat Nov 22 03:41:22 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ext/pty/pty.c (get_device_once): abandon asynchronous exception
+ that might cause serious problem if a program terminated early.
+ asynchronous exception is a very bad thing anyway. use
+ Process.waitpid(pid) or PTY.check(pid) to poll program
+ termination. if PTY.check is called with optional second
+ argument being true, it raises an exception same as one from
+ previous behavior. [incompatible] fix: [ruby-core:19583]
+
+Fri Nov 21 22:24:31 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ext/curses/curses.c (curses_escdelay_set): support ESCDELAY. a
+ patch from Giancarlo F Bellido <support at coaxialhost.com> in
+ [ruby-core:19961].
+
+Fri Nov 21 22:17:15 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ruby.c (usage): -W description updated. [ruby-core:19858]
+
+Fri Nov 21 21:50:54 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * signal.c (register_sigaltstack): use alternative stack for
+ SIGSEGV to avoid uncaught stack overflow. based on a patch from
+ Hiro Yoshioka <hyoshiok at miraclelinux.com> in [ruby-dev:37134].
+ [ruby-dev:36993]
+
+Fri Nov 21 16:06:54 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * vm.c (thread_free): th->vm may be NULL when pthread_create
+ failed for ENOMEM. [ruby-dev:37095]
+
+Thu Nov 20 07:33:15 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/logger.rb (Logger): should handle the case that cvs/svn do
+ not expand $Id keyword. [ruby-core:19991]
+
+Thu Nov 20 07:27:36 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/minitest/unit.rb (MiniTest::Assertions#capture_io): adjust
+ indentation to shut up warning. [ruby-core:19993]
+
+Wed Nov 19 17:48:05 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ext/syck/rubyext.c (rb_syck_mktime): return DateTime for a value
+ out of range of Time. [ruby-core:19919]
+
+Wed Nov 19 14:14:38 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * node.h (NOEX_MODFUNC): should be include NOEX_PRIVATE.
+ [ruby-dev:37124]
+
+Wed Nov 19 03:01:04 2008 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
+
+ * test/rinda/test_rinda.rb: fixed fails occasionally [ruby-dev:37119].
+ thanks, shinichiro.h.
+
+Wed Nov 19 02:39:31 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * error.c (Init_syserr): moved function definition itself from
+ template/known_errors.inc.tmpl.
+
+Wed Nov 19 01:10:52 2008 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
+
+ * lib/drb/drb.rb (DRbConn::alive?): fixed NoMethodError problem
+ from NaHi [ruby-dev:37110].
+
+Wed Nov 19 01:05:26 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * cont.c (cont_mark, cont_capture, cont_restore_1): speed up
+ continuation by copying only valid YARV stack. [ruby-dev:37106]
+
+Wed Nov 19 00:03:13 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/time.rb: according to RFC2822, -0000 means local time, +0000
+ means UTC. a patch from Chun Wang. [ruby-core:19578]
+
+Tue Nov 18 23:02:23 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * proc.c (proc_eq): equivalence check should not done by pointer
+ comparison, but should be based on iseq contents. [ruby-dev:37101]
+
+Tue Nov 18 20:30:08 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/net/ftp.rb (Net::FTP#open_socket): SOCKSsocket is obsolete.
+ a patch from Alan Johnson <alan.wayne.johnson at gmail.com> in
+ [ruby-core:19982].
+
+Tue Nov 18 16:18:23 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/logger.rb (ProgName): fixed for svn, based on a patch from
+ Nobuhiro IMAI at [ruby-dev:37108].
+
+Tue Nov 18 15:56:55 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/webrick/httprequest.rb (WEBrick::HTTPRequest#read_request_line):
+ use possessive match for path retrieval to avoid huge recursion
+ for insanely long path.
+
+Tue Nov 18 15:50:11 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * re.c (rb_reg_desc): re might be NULL.
+
+ * regerror.c (onig_error_code_to_format): message updated.
+
+Tue Nov 18 09:42:11 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/optparse.rb (OptionParser::make_switch): makes default
+ conversion to splat. [ruby-list:45645]
+
+Mon Nov 17 18:05:16 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * enc/depend (LIBS): fixed for disable-shared. [ruby-dev:37103]
+
+Mon Nov 17 11:12:24 2008 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
+
+ * bin/erb: remove -K option.
+
+Mon Nov 17 02:19:03 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (LIBRUBYARG_STATIC): fixed for --enable-rpath.
+
+Sat Nov 15 22:46:32 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * re.c (rb_reg_regsub): returns -1 unless ascii as well as
+ rb_enc_ascget(). [ruby-dev:37097]
+
+Sat Nov 15 22:23:45 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (LDSHARED): do not suppress debug info if higher debug
+ level is given, on cygwin and mingw.
+
+Fri Nov 14 20:27:46 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * README.EXT, README.EXT.ja, vm_exec.c, vm_insnhelper.c: update
+ filenames.
+
+Thu Nov 13 11:31:13 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * thread.c (rb_barrier_wait): gets rid of recursive deadlock.
+
+Thu Nov 13 06:08:44 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * thread.c (rb_barrier_{new,wait,release,destroy}): use Mutex so that
+ circular requires fail with deadlock. [ruby-core:19821]
+
+Wed Nov 12 07:16:01 2008 David Flanagan <david@think32>
+
+ * ruby.c (set_internal_encoding_once): fix typo in error string
+
+Wed Nov 12 03:30:59 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * include/ruby/intern.h (rb_{external,locale}_str_new_cstr): optimized
+ versions for literal strings.
+
+Wed Nov 12 03:28:41 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * load.c (rb_require_safe): destroys barrier after successfully
+ loaded, to get rid of loading same library again. [ruby-core:19798]
+
+ * thread.c (rb_barrier_wait): can not wait destroyed barrier.
+
+ * thread.c (rb_barrier_destroy): destroys barrier so that no longer
+ waited.
+
+Tue Nov 11 23:02:27 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * man/ruby.1 (RUBYOPT): wrote which option can appear.
+ (--yydebug): wrote "do not use".
+ (--dump): wrote "do not use".
+
+Tue Nov 11 21:22:28 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/uri/generic.rb (URI::Generic#check_path): REL_PATH should a
+ symbol. [ruby-core:19805]
+
+Tue Nov 11 20:49:29 2008 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
+
+ * configure.in: fix SEGV on Mac OS X 10.5.3 with pthread.
+ a patch from Wataru Kimura in Bug #193 [ruby-core:17333].
+
+Tue Nov 11 20:39:27 2008 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * lib/date.rb (inspect): reverted the previous change.
+
+Tue Nov 11 17:35:25 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/win32.c (rb_w32_accept): secure fd before accept because if
+ error causes in securing, cannot restore the state of accepted
+ socket.
+ fixed [ruby-core:19728]
+
+Tue Nov 11 14:40:40 2008 Martin Duerst <duerst@it.aoyama.ac.jp>
+
+ * test/ruby/test_transcode.rb: unnecessary setup method
+ (setup_really_needed?) removed
+
+Tue Nov 11 14:25:25 2008 Martin Duerst <duerst@it.aoyama.ac.jp>
+
+ * enc/trans/single_byte.trans, macgreek-tbl.rb, macroman-tbl.rb,
+ macromania-tbl.rb, macturkish-tbl.rb, macukraine-tbl.rb,
+ ibm437-tbl.rb, ibm852-tbl.rb, ibm855-tbl.rb, ibm857-tbl.rb,
+ ibm860-tbl.rb, ibm861-tbl.rb, ibm862-tbl.rb, ibm863-tbl.rb,
+ ibm865-tbl.rb, ibm866-tbl.rb, ibm869-tbl.rb, ibm775-tbl.rb:
+ new single-byte transcodings (from Yoshihiro Kambayashi)
+
+ * test/ruby/test_transcode.rb: added tests for the above
+ (from Yoshihiro Kambayashi)
+
+Tue Nov 11 13:20:23 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ext/bigdecimal/bigdecimal.c (BigDecimal_to_r): moved from
+ bigdecimal/util, converted into C. [ruby-dev:36805]
+
+Tue Nov 11 07:55:57 2008 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * lib/date.rb (inspect): changed the format.
+
+Mon Nov 10 17:34:50 2008 Akinori MUSHA <knu@iDaemons.org>
+
+ * test/sdbm/test_sdbm.rb (TestSDBM#test_index): Reflect the method
+ name change from #index to #key and remove a duplicated test
+ method.
+
+Mon Nov 10 10:50:43 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/delegate.rb (Delegator.delegating_block): should not refer
+ DelegateClass specific @delegate_dc_obj. a patch from Erik
+ Hollensbe in [ruby-core:19671].
+
+Mon Nov 10 09:54:21 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/win32.c (ifs_open_socket): should retry without proto_buffer
+ if cannot find the suitable protocol. a patch from Heesob Park.
+ fixed [ruby-core:19713]
+
+Sun Nov 9 13:04:52 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * struct.c (rb_struct_initialize_m): avoid unnecessary array
+ allocation.
+
+Sun Nov 9 04:10:19 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * vm_dump.c (control_frame_dump): suppresses finished method name.
+
+Sun Nov 9 00:30:52 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * thread_pthread.c (thread_timer): checks working flags again.
+
+Sun Nov 9 00:02:01 2008 Takeyuki FUJIOKA <xibbar@ruby-lang.org>
+
+ * lib/cgi/session/pstore.rb: fix indentation.
+
+Sat Nov 8 23:47:45 2008 Takeyuki FUJIOKA <xibbar@ruby-lang.org>
+
+ * lib/cgi/session.rb (FileStore): use marshalized data.
+
+ * test/cgi/session_dir: add a session directory in test.
+
+ * test/cgi/test_cgi_session.rb: add a test.
+
+Sat Nov 8 21:57:03 2008 Takeyuki FUJIOKA <xibbar@ruby-lang.org>
+
+ * lib/cgi/session.rb: remove debug code.
+
+Sat Nov 8 21:33:53 2008 Takeyuki FUJIOKA <xibbar@ruby-lang.org>
+
+ * lib/cgi/session.rb: fix indentation.
+
+Sat Nov 8 18:11:14 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/webrick/httpproxy.rb (WEBrick::HTTPProxyServer#do_CONNECT):
+ use #bytesize instead of #size. a patch submitted from
+ raspberry lemon in [ruby-core:18571].
+
+ * lib/webrick/httpauth/digestauth.rb, lib/webrick/httpproxy.rb,
+ lib/webrick/httprequest.rb, lib/webrick/httpservlet/cgi_runner.rb,
+ lib/webrick/httpservlet/abstract.rb, lib/webrick/httpresponse.rb,
+ lib/webrick/httpservlet/cgihandler.rb, lib/webrick/utils.rb: ditto.
+
+Sat Nov 8 17:31:41 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ext/stringio/stringio.c (strio_ungetc): ungetc position should
+ not be changed from 1.8. [ruby-core:19632]
+
+Sat Nov 8 17:15:08 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/optparse.rb (OptionParser#make_switch): 1.9 Symbols respond
+ to :match. a patch from keith cascio, <keith at ucla.edu>.
+ [ruby-core:19730]
+
+Sat Nov 8 12:10:15 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ext/gdbm/gdbm.c (fgdbm_index): make #index warn like Hash.
+ [ruby-dev:37039]
+
+ * ext/sdbm/init.c (Init_sdbm): typo fixed. [ruby-dev:37039]
+
+Sat Nov 8 07:07:48 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * configure.in: detect stdio buffer pointers for uClibc. a patch
+ from Brian Candler <B.Candler at pobox.com> in [ruby-core:12020].
+ [ruby-core:19713]
+
+Sat Nov 8 06:51:42 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ext/dbm/dbm.c (fdbm_index): make #index warn like Hash.
+
+ * ext/dbm/dbm.c (fdbm_key): new method.
+
+ * ext/sdbm/init.c: ditto.
+
+Sat Nov 8 06:20:42 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ext/curses/curses.c: curses encoding should obey locale.
+
+ * ext/curses/curses.c (curses_getch): 1.9 getch should return one
+ character string for single byte string. wchar_t support may
+ follow in the future.
+
+Sat Nov 8 05:46:50 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * include/ruby/io.h (rb_io_t): added write_lock to serialize.
+ [ruby-core:19668]
+
+ * gc.c (gc_mark_children): mark write_lock.
+
+ * gc.c (rb_gc_call_finalizer_at_exit): Mutex also needs to be
+ deferred.
+
+ * io.c (io_fflush, io_binwrite, fptr_finalize): serializes writing.
+
+Sat Nov 8 05:31:25 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * safe.c (safe_setter): add warning for $SAFE=3.
+
+Sat Nov 8 01:48:07 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * thread_pthread.c (rb_thread_create_timer_thread): do not wait never
+ coming signal if failed to create timer thread.
+
+ * thread_pthread.c (native_cond_timedwait): returns error code.
+
+ * thread_pthread.c (thread_timer): typo fixed.
+
+Sat Nov 8 01:14:16 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * thread_pthread.c (thread_timer, rb_thread_create_timer_thread):
+ handshakes properly.
+
+Fri Nov 7 22:51:49 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * inits.c (rb_call_inits): do not repeat.
+
+Fri Nov 7 22:46:57 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * thread_pthread.c (thread_timer): initializes mutex each time.
+
+Fri Nov 7 21:23:02 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * thread_win32.c (thread_start_func_1): use already gotten stack info.
+
+Fri Nov 7 12:26:00 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/irb.rb (IRB::Irb#eval_input): remove extra @context.prompt_i.
+ [ruby-core:19718]
+
+Fri Nov 7 11:55:30 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * nkf.c: update to r1.188. fixes for 16bit environment.
+
+Fri Nov 7 07:43:27 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * thread.c (thread_timer): pthread_cond_timedwait returns ETIMEDOUT
+ when timed out.
+
+Fri Nov 7 07:32:55 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/yaml/rubytypes.rb: support Rational and Complex as 1.8
+ does. a patch from Hiroshi Moriyama in [ruby-dev:36899].
+
+Fri Nov 7 07:12:06 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * thread_pthread.c (thread_timer): uses pthread_cond_timedwait always
+ instead of pthread_kill.
+
+Fri Nov 7 06:58:59 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (Init_String): remove Symbol#===. [ruby-dev:37026]
+
+Fri Nov 7 04:02:22 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * thread.c (thread_timer): uses timedwait on cygwin.
+
+Fri Nov 7 02:00:12 2008 Shugo Maeda <shugo@ruby-lang.org>
+
+ * lib/rexml/entity.rb (unnormalized): do not call
+ document.record_entity_expansion if document is nil.
+ see <http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=502535>.
+ Thanks, Naohisa Goto.
+
+ * test/rexml/test_document.rb: ditto.
+
+Fri Nov 7 01:24:20 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * tool/make-snapshot: binary encoding spec is no longer needed in 1.9.
+
+Thu Nov 6 22:21:23 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * thread.c (rb_thread_stop_timer_thread): terminates timer thread
+ immediately.
+
+Thu Nov 6 21:21:46 2008 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+
+ * ext/win32ole/win32ole.c (fole_s_connect, fole_initialize,
+ folevariant_initialize): check argument type of WIN32OLE.connect,
+ WIN32OLE.new, WIN32OLE_VARIANT.new.
+
+ * test/win32ole/test_win32ole.rb (test_s_new_exc, test_s_connect_exc):
+ ditto.
+
+ * test/win32ole/test_win32ole_variant.rb (test_s_new_exc): ditto.
+
+ * test/win32ole/test_win32ole_method.rb: add assertion of
+ WIN32OLE_METHOD.new.
+
+Tue Nov 4 13:08:01 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * lib/test/unit.rb (Test::Unit.setup_argv): now can specify ``-xname''
+ instead of ``-x name''.
+
+Tue Nov 4 08:00:00 2008 TAKANO Mitsuhiro (takano32) <tak@no32.tk>
+
+ * test/zlib/test_zlib.rb(test_readchar): compare in same type.
+
+Tue Nov 4 03:28:31 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * array.c (rb_ary_join): do not repeat self in a recursive array.
+ [ruby-dev:37019]
+
+Tue Nov 4 01:56:46 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * include/ruby/intern.h (rb_mutex_synchronize): fixed prototype.
+
+ * thread.c (rb_mutex_synchronize): fixed function name.
+
+Mon Nov 3 16:32:54 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * missing.h: needs RUBY_EXTERN instead of extern for mswin.
+
+Mon Nov 3 13:01:13 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * array.c (rb_ary_take_first_or_last): renamed rb_ary_partial more
+ appropriately.
+ (ary_take_pos_flags): new enum. makes the fourth argument of
+ rb_ary_take_first_or_last more descriptive.
+ (rb_ary_partial): renamed rb_ary_partial0 more appropriately.
+ takes a new parameter klass for what class to instantiate.
+
+Mon Nov 3 13:00:26 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * range.c (rb_range_beg_len): rb_raise takes C values as arguments.
+ [BUG] ranges turned into other value in a message of RangeError.
+
+Mon Nov 3 00:36:44 2008 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+
+ * test/win32ole/test_win32ole_event.rb: rename test class.
+
+ * test/win32ole/test_win32ole_variant_outarg.rb: add in order
+ to use ADO instead of Internet Explorer.
+ remove test/win32ole/test_win32ole_variant_with_ie.rb.
+
+ * test/win32ole/orig_data.csv: ditto.
+
+Sun Nov 2 23:08:08 2008 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+
+ * test/win32ole/test_err_in_callback.rb: add teardown.
+
+Sun Nov 2 22:12:41 2008 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+
+ * ext/win32ole/win32ole.c (ole_event_free): invoke IConnectionPoint::Unadvise
+ before invoking IConnectionPoint::Release.
+
+ * test/win32ole/test_win32ole_event.rb, test/win32ole/err_in_callback.rb,
+ test/win32ole/test_err_in_callback.rb: Use ActiveX Data Object
+ Library instead of InternetExplorer.
+
+Sun Nov 2 22:06:55 2008 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+
+ * win32/Makefile.sub: add RUNRUBYOPT. [ruby-dev:37009]
+
+Sun Nov 2 16:41:52 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/zlib/zlib.c (Init_zlib): defines readbyte instead redefining
+ readchar.
+
+Sat Nov 1 07:09:40 2008 Eric Hodel <drbrain@segment7.net>
+
+ * gem_prelude.rb: Don't require rubygems/defaults.rb.
+
+Fri Oct 31 21:58:50 2008 Kouhei Sutou <kou@cozmixng.org>
+
+ * lib/rss/converter.rb (RSS::Converter): use String#encode.
+
+Fri Oct 31 21:28:14 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * lib/webrick/httpauth/digestauth.rb
+ (WEBrick::HTTPAuth::DigestAuth#initialize): fix typo.
+
+Fri Oct 31 18:51:42 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * test/ruby/test_array.rb (test_array_subclass): test for r20076.
+
+Fri Oct 31 18:42:19 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * array.c (ary_partial0): recovers the mistakenly changed feature at r19723.
+ Array#[m,n] had returned an Array even for an instance of a
+ subclass.
+
+Fri Oct 31 18:05:05 2008 Martin Duerst <duerst@it.aoyama.ac.jp>
+
+ * enc/trans/single_byte.trans, maccroatioan-tbl.rb,
+ maccyrillic-tbl.rb, maciceland-tbl.rb: new single-byte
+ transcodings (from Yoshihiro Kambayashi)
+
+ * test/ruby/test_transcode.rb: added tests for the above
+ (from Yoshihiro Kambayashi)
+
+Fri Oct 31 12:51:25 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * dir.c (dir_globs): need taint check. reported by steve
+ <oksteev at gmail.com>
+
+Fri Oct 31 12:42:45 2008 wanabe <s.wanabe@gmail.com>
+
+ * array.c (rb_ary_decrement_share): fix to work recycling
+ shared-array without the following. [ruby-dev:36991]
+
+ * array.c (ary_make_substitution): don't recycle substitution array.
+
+Fri Oct 31 12:27:52 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * spec/default.mspec: supports that the build directory != srcdir.
+
+Fri Oct 31 11:35:38 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * encoding.c (rb_enc_set_default_internal): no alias "internal" if
+ default internal is not set. [ruby-dev:37000]
+
+Fri Oct 31 08:16:14 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ruby.c (process_options): delays setting safe level.
+ [ruby-dev:36997]
+
+Thu Oct 30 21:32:15 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * array.c (rb_ary_permutation): hide temporal array.
+
+Thu Oct 30 14:45:45 2008 Martin Duerst <duerst@it.aoyama.ac.jp>
+
+ * enc/trans/single_byte.trans: refactoring to make it easier
+ to add more transcodings (with Yoshihiro Kambayashi)
+
+ * enc/trans/iso-8859-1-tbl.rb: new file to avoid having to
+ treat ISO-8859-1 as special
+
+Thu Oct 30 14:10:46 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * pack.c (pack_pack): templates a, A, Z should propagate encoding
+ of original strings. templates b, B, h, H brings ASCII-8BIT to
+ the result.
+
+Thu Oct 30 10:34:20 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ruby.c (moreswitches): splits option string and passes arguments.
+
+ * ruby.c (proc_options): checks if allowed in RUBYOPT.
+
+ * ruby.c (process_options): allows long style options in RUBYOPT.
+
+ * ruby.c (load_file_internal): ditto in shebang. [ruby-dev:36979]
+
+Thu Oct 30 09:31:45 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * encoding.c (rb_locale_encoding): makes an alias for locale.
+ [ruby-dev:36976]
+
+ * encoding.c (rb_enc_set_default_external): ditto for external.
+
+ * encoding.c (rb_enc_set_default_internal): ditto for internal.
+
+Thu Oct 30 03:30:25 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ruby.c (load_file_internal): should not set script encoding to
+ ASCII-8BIT.
+
+ * ruby.c (load_file_internal): do not auto convert scripts even
+ when default_internal is set. [ruby-core:19579]
+
+Thu Oct 30 02:20:33 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * array.c (rb_ary_sort_bang): remove SEGV when replacing array with
+ embedded one during sort. [ruby-dev:36983]
+
+ * test/ruby/test_array.rb (test_sort!): add tests for above.
+
+Thu Oct 30 01:44:23 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * test/ruby/test_array.rb: add some tests.
+
+Thu Oct 30 01:32:15 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * array.c (rb_ary_splice): remove redundant check.
+
+Thu Oct 30 01:24:55 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * string.c (rb_str_cmp): fix condition which always returned true
+ because ENCODING_GET returns unsigned long.
+
+Thu Oct 30 01:10:32 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * test/ruby/test_array.rb (test_permutation): add a test that replaces
+ array during permutation.
+
+Wed Oct 29 23:31:34 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (rb_str_check_dummy_enc): new function to check dummy
+ encoding.
+
+ * string.c (rb_str_upcase_bang): case conversion functions should
+ not be applicable to strings in dummy encoding. [ruby-dev:36985]
+
+Wed Oct 29 23:57:29 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * array.c (rb_ary_sort_bang): replacing array during sort broke
+ invariant of array. [ruby-dev:36983]
+
+Wed Oct 29 21:06:46 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * io.c (rb_io_rewind): should reset fptr->readconv if it's
+ available.
+
+ * io.c (more_char): clear readconv at EOF.
+
+ * test/ruby/test_file.rb: should not read after EOF. use rewind
+ instead.
+
+Wed Oct 29 20:45:08 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * test/webrick/utils.rb (start_server): provide a reference to log of
+ webrick.
+
+ * test/webrick/test_httpproxy.rb, test/webrick/test_httpauth.rb,
+ test/webrick/test_cgi.rb, test/webrick/test_httpserver.rb,
+ test/webrick/test_server.rb, test/webrick/test_filehandler.rb: use
+ webrick log as an assertion message.
+
+Wed Oct 29 16:41:17 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * pack.c (pack_pack): set encoding from packing string and UTF-8 for
+ "U". [ruby-core:19590]
+
+Wed Oct 29 15:50:00 2008 TAKANO Mitsuhiro (takano32) <tak@no32.tk>
+
+ * complex.c (imp1, imp2): should declare type.
+ [BUG] at IA-64
+
+Wed Oct 29 14:36:50 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * common.mk (revision.h): have to be updated daily or by non-trivial
+ commits.
+
+Wed Oct 29 13:18:02 2008 Akinori MUSHA <knu@iDaemons.org>
+
+ * README, README.ja: Update the portability section.
+
+Wed Oct 29 13:02:17 2008 Akinori MUSHA <knu@iDaemons.org>
+
+ * configure.in (rb_cv_lib_xpg4_needed): Drop legacy FreeBSD
+ support regarding libxpg4. Those old versions of FreeBSD
+ shipped with the library don't have a working pthread library
+ anyway.
+
+Wed Oct 29 11:50:57 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (dln-a-out): cannot make shared library nor work with
+ ELF. [ruby-core:19571]
+
+Wed Oct 29 11:00:25 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/win32.c (rb_w32_open): shouldn't seek here.
+
+ * win32/win32.c (rb_w32_write): write to the end of the file when
+ FAPPEND is specified.
+
+Wed Oct 29 09:30:04 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ruby.c (load_file_internal): cache common interned IDs.
+
+Wed Oct 29 00:43:39 2008 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * complex.c: uses macro in declarations.
+
+Wed Oct 29 00:26:00 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/win32.c (rb_w32_open): need to seek to the end of the file when
+ O_APPEND is specified.
+
+Wed Oct 29 00:08:05 2008 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * math.c (rb_math_{atan2,cos,cosh,hypot,log,sin,sinh,sqrt}): added.
+
+ * complex.c: follows the above change.
+
+Tue Oct 28 23:29:06 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * ext/nkf/nkf-utf8/nkf.c (kanji_convert): output unicode chars.
+ [ruby-dev:36957]
+
+ * ext/nkf/nkf-utf8/nkf.c (numchar_getc): increase buffer size.
+ reported and patched at [ruby-dev:36957] by mame.
+
+Tue Oct 28 23:03:46 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * test/ruby/test_proc.rb: filled all patterns for testing
+ vm_yield_setup_args.
+
+Tue Oct 28 23:05:35 2008 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * complex.c: continues to support canonicalization *unofficially*
+ for an odd library mathn for the time being (only 1.9.x).
+ since grand mathn must be very very special library for us.
+
+ * rational.c: ditto.
+
+ * ext/mathn/*/*: follow the above changes.
+
+Tue Oct 28 21:31:55 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * parse.y (parser_yylex): check EOF explicitly.
+
+Tue Oct 28 20:59:12 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * io.c (extract_binmode): new function to extract binmode/textmode
+ options from hash.
+
+ * io.c (rb_io_extract_modeenc): use above function.
+
+ * io.c (rb_io_s_pipe): recognize binmode/textmode options.
+
+Tue Oct 28 20:15:49 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * io.c (make_readconv): now can specify the size of cbuf.
+
+ * io.c (read_all, appendline, io_getc, rb_io_ungetc): follow above
+ change.
+
+Tue Oct 28 19:00:51 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/win32.c (rb_w32_pipe_exec): internal fds should be always
+ binmode.
+
+Tue Oct 28 17:21:18 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * tool/make-snapshot.rb: merged from ruby_1_9_1.
+
+Tue Oct 28 16:56:31 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * gem_prelude.rb: merged from ruby_1_9_1 branch.
+ considers --program-suffix and prefix configure options.
+
+ * lib/rubygems/defaults.rb: ditto.
+
+ * test/rubygems/test_gem.rb (@default_dir_re): ditto.
+
+Tue Oct 28 16:13:36 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * tool/make-snapshot: use String#bytesize.
+
+Tue Oct 28 09:51:48 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * bootstraptest/test_thread.rb: ignore some exceptions.
+ [ruby-dev:36951]
+
+Tue Oct 28 09:19:40 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/Makefile.sub (RUNRUBY): now ruby requires something from
+ gem_prelude, so need to set library path.
+
+Mon Oct 27 22:29:11 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * vm_insnhelper.c (vm_yield_setup_args): supports optional parameters.
+ Fixed [ruby-core:19503].
+
+ * vm_insnhelper.c (vm_yield_setup_block_args): a new function. extracted
+ from vm_yield_setup_args.
+
+ * vm_insnhelper.c (vm_yield_setup_block_args_complex): ditto.
+
+ * test/ruby/test_proc.rb: added tests for arguments on a Proc from
+ Kernel#proc called.
+
+Mon Oct 27 20:03:05 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * ext/mathn/complex/complex.c: no need to define rb_cComplex because
+ it's already defined at $(srcdir)/complex.c.
+
+ * ext/mathn/rational/rational.c: no need to define rb_cRational because
+ it's already defined at $(srcdir)/rational.c.
+
+Mon Oct 27 15:58:25 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ruby.c (load_file): preserves $.. [ruby-dev:36937]
+
+ * io.c (argf_init): initial value of $. should be 0.
+ see [ruby-dev:36937].
+
+Mon Oct 27 15:38:38 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * test/minitest/test_mini_test.rb
+ (test_assert_raises_triggered_different): the test failed when a
+ file path in the backtrace contains something except [\w\/\.],
+ e.g. hyphen, Japanese characters or backslash.
+
+ * test/minitest/test_mini_test.rb
+ (test_assert_raises_triggered_subclass): ditto.
+
+Mon Oct 27 15:32:08 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * test/minitest/test_mini_test.rb: fixed that r19958 made
+ test-all fail when the ruby was built at $(srcdir).
+
+Mon Oct 27 12:04:58 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * test/ruby/envutil.rb: reverted the changeset 19948 because it
+ concealed unexpected behaviours of ruby.
+
+ * test/ruby/test_io.rb: ditto.
+
+Mon Oct 27 12:02:53 2008 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
+
+ * ext/nkf/nkf.c (rb_nkf_convert): should specify type of variable.
+
+Mon Oct 27 11:34:56 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * test/minitest/test_mini_test.rb (test_filter_backtrace):
+ fixed failure on Ruby built at out of $(srcdir).
+
+ * test/minitest/test_mini_test.rb (test_Filter_backtrace_unit_starts):
+ ditto.
+
+Mon Oct 27 10:02:47 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * io.c (read_all): the 3rd argument maybe Qnil.
+
+Mon Oct 27 01:29:55 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * test/nkf/test_nkf.rb: add a test for [ruby-dev:36909].
+
+Mon Oct 27 01:05:48 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * ext/nkf/nkf.c (rb_nkf_convert): avoid GC.
+ reported in [ruby-dev:36909] and patched [ruby-dev:36941] by mame.
+
+Sun Oct 26 21:28:42 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * test/json/test_json.rb: remove dependency on permutation gem.
+
+Sun Oct 26 19:18:36 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * thread.c (blocking_region_{begin,end}): declared as inline.
+
+ * util.c (freedtoa): used only when MULTIPLE_THREADS is not defined.
+
+ * win32/win32.c (rb_w32_pipe): serial is DWORD.
+
+ * ext/etc/etc.c (sGroup): getgrent may not be available.
+
+Sun Oct 26 18:11:40 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/io/wait/{extconf.rb,wait.c}: needs sys/ioctl.h for fcntl on
+ cygwin.
+
+Sun Oct 26 18:18:39 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * gem_prelude.rb: disables debug and verbose flags to suppress failure
+ messages. interpolation does not occur inside single quotes.
+
+Sun Oct 26 18:42:21 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * test/ruby/envutil.rb (assert_in_out_err): disables builtin rubygems
+ to get rid of the interference.
+
+ * test/ruby/test_io.rb (ruby): ditto.
+
+Sun Oct 26 13:30:28 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * io.c (read_all): use the given buffer to read when needs readconv.
+ based on the patch by wanabe <s.wanabe AT gmail.com> at
+ [ruby-dev:36931].
+
+Sun Oct 26 07:57:35 2008 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems*: Update to RubyGems 1.3.1 r1909.
+
+Sun Oct 26 07:35:56 2008 Ryan Davis <ryand-ruby@zenspider.com>
+
+ * lib/minitest/unit.rb: Imported minitest 1.3.0 r4429.
+ * test/minitest/*: ditto.
+
+Sun Oct 26 02:16:29 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * configure.in ($MANTYPE): followed ruby.1, which had moved.
+
+ * instruby.rb (:man): ditto.
+
+ * mdoc2man.rb: fixed for the case Xr with 2 arguments.
+
+Sun Oct 26 01:42:45 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * man/irb.1: new manual page.
+
+Sun Oct 26 00:11:48 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * man/ruby.1: moved into man/. added some descriptions.
+
+ * man/goruby.1: new file.
+
+ * instruby.rb (:man): followed ruby.1.
+
+Sat Oct 25 20:05:22 2008 Narihiro Nakamura <authorNari@gmail.com>
+
+ * gc.c (gc_profile_result): bug fix. The millisecond is 1/1000.
+
+Sat Oct 25 11:12:40 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * ruby.c (usage): updated the description of -E option.
+
+Sat Oct 25 09:54:10 2008 James Edward Gray II <jeg2@ruby-lang.org>
+
+ * lib/csv.rb: Fixed a bug in read_to_char() that would slurp
+ whole files if the encoding was invalid. It will now read
+ up to 10 bytes ahead to find a valid character boundary or
+ give up. [ruby-core:19465]
+
+ * test/csv/test_features.rb, test/csv/test_table.rb, test/csv/test_row.rb:
+ Loosened some tests to check for a compatible? Encoding instead
+ of an exact Encoding. [ruby-core:19470]
+
+Sat Oct 25 07:42:49 2008 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rdoc*: Update to RDoc 2.2.2 r192.
+
+Sat Oct 25 04:00:31 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * enc/us_ascii.c (us_ascii_mbc_enc_len): made static. a patch by
+ Tadashi Saito <shiba AT mail2.accsnet.ne.jp> at [ruby-dev:36916]
+
+ * signal.c (signal_buff): made static. a patch by Tadashi Saito
+ <shiba AT mail2.accsnet.ne.jp> at [ruby-dev:36915]
+
+ * util.c (freedtoa): made static to get rid of name clash. a patch by
+ Tadashi Saito <shiba AT mail2.accsnet.ne.jp> at [ruby-dev:36913]
+
+ * util.c (ruby_dtoa): added prefix, ditto.
+
+Sat Oct 25 03:43:25 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (lambda): need to adjust lpar_beg for both of the parser and
+ ripper.
+
+Sat Oct 25 01:29:34 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ext/mathn/rational/rational.c: undef duplicated macro definition
+ first to shut up the warning.
+
+ * ext/mathn/rational/rational.c (rb_rational_new_mathn): specify
+ omitted return value.
+
+Sat Oct 25 00:14:41 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * array.c (rb_ary_sample): fixed sizes and randomness.
+
+Fri Oct 24 23:04:42 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * configure.in (sitedir): considers --program-prefix and
+ --program-suffix.
+ (vendordir): ditto.
+ (rubyhdrdir): ditto.
+
+ * mkconfig.rb (CONFIG["rubylibdir"]): ditto.
+
+ * win32/Makefile.sub: ditto.
+
+ * instruby.rb (:rdoc): ditto.
+
+ * lib/rdoc/ri/paths.rb (RDoc::RI::Paths): ditto.
+
+Fri Oct 24 22:59:27 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * test/ruby/test_array.rb (test_sample): add tests for size of
+ returned array and randomness.
+
+Fri Oct 24 21:50:21 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * id.h, template/id.h.tmpl (enum ruby_method_ids): reordered.
+
+Fri Oct 24 21:19:45 2008 Keiju Ishitsuka <keiju@ruby-lang.org>
+
+ * ext/mathn/rational.c: change several global functions.
+
+Fri Oct 24 21:05:38 2008 Takeyuki FUJIOKA <xibbar@ruby-lang.org>
+
+ * lib/cgi/html.rb: allow symbolized key.
+
+ * test/cgi/test_cgi_tag_helper.rb: add a test.
+
+Fri Oct 24 20:54:53 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * common.mk (exts): renamed to get rid of the existent directory.
+
+Fri Oct 24 20:45:41 2008 Keiju Ishitsuka <keiju@ruby-lang.org>
+
+ * ext/mathn/rational.c: change several global functions to static
+ function.
+
+Fri Oct 24 19:57:19 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (rb_str_dump): should have removed commented out
+ unnecessary code. [ruby-cvs:27131]
+
+Fri Oct 24 19:16:36 2008 URABE Shyouhei <shyouhei@ruby-lang.org>
+
+ * id.h (enum ruby_method_ids): ISO C forbids comma at end of
+ enumerator list.
+
+Fri Oct 24 18:29:00 2008 Keiju Ishitsuka <keiju@ruby-lang.org>
+
+ * lib/mathn.rb: moved into ext/mathn/rational/rational.c and
+ ext/mathn/complex/complex.c.
+ * ext/mathn: new mathn ext-libraries.
+
+Fri Oct 24 18:21:31 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * test/ruby/test_array.rb (TestArray#test_join): should restore
+ global variable after the test. [ruby-dev:36896]
+
+ * test/ruby/test_hash.rb (TestHash#test_to_s): ditto.
+
+Fri Oct 24 17:43:26 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * parse.y (lambda): need to adjust lpar_beg for ripper as well.
+ [ruby-dev:36702]
+
+Fri Oct 24 16:13:12 2008 Takeyuki FUJIOKA <xibbar@ruby-lang.org>
+
+ * lib/cgi/core.rb (read_multipart): change field value as String
+ from StringIO or Tempfile when multipart parse except file field.
+ add files method that can get uploaded files. [ruby-dev:36547]
+
+ * test/cgi/test_cgi_multipart.rb: fix the test for core.rb.
+
+Fri Oct 24 14:22:48 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * common.mk (ext): split out the target for extension library.
+
+ * common.mk (encs): depends on enc and trans.
+
+Fri Oct 24 10:23:24 2008 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
+
+ * test/ruby/test_signal.rb (TestSignal#test_exit_action): Thread
+ may terminate before sysread. [ruby-dev:36835]
+
+Thu Oct 23 22:06:23 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * distruby.rb: removed. "make dist" uses tool/make-snapshot for the 1.9
+ series. distruby.rb has been no longer used.
+
+Thu Oct 23 17:30:29 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * class.c (rb_class_instance_methods): rdoc fixed. [ruby-core:19458]
+
+Thu Oct 23 16:19:33 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/irb/init.rb (IRB.load_modules): catch LoadError explicitly.
+ a patch from Daniel Berger <Daniel.Berger at qwest.com> in
+ [ruby-core:19451]. fix [ruby-core:19450]
+
+Thu Oct 23 16:16:17 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/socket/socket.c (sock_s_getservbyport): check if the port range.
+ [ruby-core:19460]
+
+Thu Oct 23 14:08:07 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/socket/socket.c (sock_s_getservbyname): unuse unnecessary
+ object.
+
+ * ext/socket/socket.c (sock_s_getservbyport): the port should be
+ converted before the proto so that the #to_int of the former cannot
+ alter the latter.
+
+Thu Oct 23 10:55:08 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (rb_str_dump): use \u{ff} escape for UTF-8 encoding
+ string.
+
+Thu Oct 23 09:26:22 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * ext/socket/socket.c (sock_s_getservbyport): cast to get rid of
+ warning.
+
+Thu Oct 23 08:06:03 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ext/socket/socket.c (sock_s_getservbyport): port should be
+ network byte order. a patch from Dave Thomas in [ruby-core:19454].
+
+Thu Oct 23 01:26:25 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (rb_str_conv_enc_opts): new function to convert with
+ specifying ecflags and ecopts.
+
+ * ext/zlib/zlib.c (gzfile_newstr): specify ecflags and ecopts for
+ conversion using above function.
+
+ * ext/zlib/zlib.c (gzfile_newstr): use own rb_econv_t for dummy
+ encoding to handling stateful encoding (e.g. iso-2022-jp).
+ [ruby-dev:36857]
+
+ * ext/zlib/zlib.c (gzfile_getc): ditto.
+
+Thu Oct 23 01:24:49 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/mkmf.rb (create_tmpsrc): get rid of side effects.
+
+Thu Oct 23 00:10:01 2008 Koichi Sasada <ko1@atdot.net>
+
+ * cont.c: separate data structure between rb_fiber_t and
+ rb_context_t (rb_fiber_t includes rb_context_t).
+ rb_fiber_t has double linked list of fibers in same threads.
+
+Wed Oct 22 17:25:17 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * io.c (pipe_open): remove unnecessary flush before fork.
+ a patch from Kazuhiro NISHIYAMA <zn at mbf.nifty.com>
+ in [ruby-dev:36840].
+
+Wed Oct 22 16:27:57 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * vm_insnhelper.c (vm_yield_setup_args): should not drop arguments
+ corresponding to default parameters.
+
+Wed Oct 22 14:59:30 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * parse.y (f_larglist): should not allow semicolon separated local
+ variable declarations if formal argument list is not surrounded
+ by parentheses, mostly because semicolon outside of parentheses
+ appears to terminate the expression.
+
+Wed Oct 22 14:52:17 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (rb_external_str_new_with_enc): no implicit strlen call.
+ [ruby-dev:36854]
+
+ * string.c (rb_external_str_new_cstr): new function to create
+ string from external NUL terminated C string.
+
+ * string.c (rb_locale_str_new_cstr): ditto.
+
+ * ext/readline/readline.c: now use rb_locale_str_new_cstr().
+
+ * test/sdbm/test_sdbm.rb (TestSDBM#test_delete_with_block):
+ deleted key to the block may be a copy of specified key.
+
+ * test/dbm/test_dbm.rb (TestDBM#test_delete_with_block): ditto.
+
+Wed Oct 22 13:16:47 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * re.c (unescape_escaped_nonascii): back out the last change on
+ the function. [ruby-dev:36818]
+
+Wed Oct 22 07:09:19 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ext/zlib/zlib.c (rb_gzreader_ungetc): should be able to unget
+ Fixnum.
+
+ * ext/stringio/stringio.c (strio_ungetc): should convert unget
+ string.
+
+ * ext/stringio/stringio.c (strio_ungetbyte): new method.
+
+Wed Oct 22 05:46:25 2008 Koichi Sasada <ko1@atdot.net>
+
+ * include/ruby/vm.h: write a comment.
+
+ * common.mk: remove vm.h from any rules.
+ vm.h is not needed on this version.
+
+ * vm_core.h: ditto.
+
+Wed Oct 22 05:39:39 2008 Koichi Sasada <ko1@atdot.net>
+
+ * parse.y (arg_concat_gen): concat target node should be NODE_ARRAY.
+ [ruby-core:19413]
+
+ * bootstraptest/test_method.rb: add tests.
+
+Wed Oct 22 00:29:13 2008 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
+
+ * test/rinda/test_rinda.rb (test_core_03_notify): Fixed test failures
+ [ruby-dev:36837].
+
+Wed Oct 22 00:22:06 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (rb_external_str_new_with_enc): wrong condition to
+ calculate strlen().
+
+ * ext/readline/readline.c: add encoding support.
+
+Tue Oct 21 23:12:24 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ext/stringio/stringio.c (strio_write): should convert writing
+ string to the encoding of the buffer.
+
+ * hash.c (rb_any_hash): typo fixed.
+
+ * ext/zlib/zlib.c (rb_gzwriter_write): oops, IO string conversion
+ need to be done by to_s.
+
+Tue Oct 21 22:38:58 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * io.c (open_key_args): should adjust argc, argv in struct
+ foreach_arg.
+
+Tue Oct 21 21:52:00 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ext/zlib/zlib.c (rb_gzwriter_write): conversion should be done
+ using to_str, not to_s.
+
+ * ext/zlib/zlib.c (rb_gzwriter_write): need proper conversion
+ according to gz encoding.
+
+ * ext/zlib/zlib.c (rb_gzreader_ungetc): convert string encoding
+ before unget.
+
+Tue Oct 21 21:33:36 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/test/unit.rb (assert_nothing_raised): raise with backtrace.
+
+Tue Oct 21 20:12:19 2008 Tanaka Akira <akr@fsij.org>
+
+ * lib/test/unit.rb (assert_nothing_raised): set backtrace.
+
+Tue Oct 21 18:17:42 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ext/zlib/zlib.c: remove obsolete prototype macros.
+
+ * ext/zlib/zlib.c (struct gzfile): add encoding field to gzfile
+ structure.
+
+ * ext/zlib/zlib.c (rb_gzreader_getc): now works on characters.
+
+ * ext/zlib/zlib.c (rb_gzreader_getbyte): new method to retrieve
+ single byte.
+
+ * ext/zlib/zlib.c (rb_gzreader_readbyte): ditto.
+
+ * ext/zlib/zlib.c (rb_gzreader_each_byte): renamed from each_char
+
+ * ext/zlib/zlib.c (rb_gzreader_ungetc): allow unget strings.
+
+ * ext/zlib/zlib.c (rb_gzreader_ungetbyte): renamed from ungetc.
+
+Tue Oct 21 13:28:42 2008 Shugo Maeda <shugo@ruby-lang.org>
+
+ * io.c, include/ruby/intern.h (rb_io_ascii8bit_binmode): externed.
+
+ * ext/socket/socket.c (init_sock): use rb_io_ascii8bit_binmode()
+ instead of rb_io_binmode().
+
+Tue Oct 21 13:17:39 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * mdoc2man.rb: moved into tools/.
+
+ * instruby.rb: followed the change of mdoc2man.
+
+Tue Oct 21 11:34:04 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/iconv/iconv.c (strip_glibc_option, map_charset): check if
+ encoding is a string. based on the patch by Hiroshi Moriyama at
+ [ruby-dev:36811].
+
+ * test/iconv/test_basic.rb (test_invalid_arguments): added tests.
+
+Tue Oct 21 10:40:37 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * io.c (rb_file_open_internal): should initialize fmode before using.
+
+Tue Oct 21 08:56:37 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * regparse.c (parse_char_class): CCV_SB is only for single
+ byte. [ruby-dev:36786]
+
+Tue Oct 21 01:49:55 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * io.c (rb_io_extract_modeenc): plain rb/wb should set ASCII-8BIT
+ to the external_encoding.
+
+ * io.c (rb_file_open_internal): ditto.
+
+ * io.c (NEED_WRITECONV): no conversion when the external_encoding
+ is ASCII-8BIT.
+
+ * io.c (do_writeconv): skip ASCII-8BIT.
+
+Tue Oct 21 00:51:59 2008 Tanaka Akira <akr@fsij.org>
+
+ * io.c (rb_io_ascii8bit_binmode): renamed from rb_io_binmode.
+ (rb_io_binmode): don't change encoding conversion.
+ (rb_io_binmode_m): call rb_io_ascii8bit_binmode.
+
+Mon Oct 20 21:19:00 2008 Takeyuki FUJIOKA <xibbar@ruby-lang.org>
+
+ * lib/cgi/core.rb (read_multipart): file's encoding is ascii-8bit
+ from file field of multipart form.
+
+Mon Oct 20 20:16:25 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ext/zlib/zlib.c (Init_zlib): add getbyte as an alias to getc.
+ [ruby-dev:36801]
+
+Mon Oct 20 17:31:17 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * error.c (exc_equal): should not compare recursively.
+ [ruby-dev:36796]
+
+Mon Oct 20 16:48:43 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * include/ruby/ruby.h (ExportStringValue): new macro to convert
+ string in internal encoding to external to export.
+
+ * string.c (rb_str_export): new function to do conversion to
+ external encoding.
+
+ * ext/sdbm/init.c: encoding conversion support.
+
+ * ext/dbm/dbm.c: ditto.
+
+Mon Oct 20 15:42:02 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (rb_locale_str_new): new function to convert string
+ from locale to internal encoding.
+
+Mon Oct 20 09:47:13 2008 Tanaka Akira <akr@fsij.org>
+
+ * test/runner.rb: search srcdir/test/arg at first to find test/ruby
+ directory when "ruby" is specified.
+
+Mon Oct 20 08:20:01 2008 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/tk.rb: support Encoding.default_internal.
+
+ * ext/tk/tcltklib.c: ditto.
+
+ * ext/tk/extconf.rb: improve the strategy for searching Tcl/Tk headers.
+
+Mon Oct 20 00:57:04 2008 Tanaka Akira <akr@fsij.org>
+
+ * lib/test/unit.rb (Test::Unit.setup_argv): call given block for
+ filtering files.
+
+ * test/runner.rb: search srcdir/test/arg, srcdir/arg.
+
+ * bin/testrb: show usage if no files given.
+
+Sun Oct 19 21:19:16 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * common.mk (srcs): removed ID_H_TARGET.
+
+ * tool/generic_erb.rb: always overwrites if no if-change option.
+ sends the result to stdout if no output option.
+
+ * template/id.h.tmpl: shows which token differs.
+
+Sun Oct 19 18:15:15 2008 Martin Duerst <duerst@it.aoyama.ac.jp>
+
+ * enc/trans/single_byte.trans: adding WINDOWS-wwww encodings
+ (wwww = 874/1250/1251/1253/1254/1255/1256/1257)
+ (contributed by Yoshihiro Kambayashi)
+
+ * enc/trans/windows-wwww-tbl.rb: 8 new files
+ (contributed by Yoshihiro Kambayashi)
+
+ * test/ruby/test_transcode.rb: added test_windows_wwww
+ (contributed by Yoshihiro Kambayashi)
+
+Sun Oct 19 07:37:13 2008 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * lib/cmath.rb (log2,cbrt,frexp,ldexp,hypot,erf,erfc,gamma,lgamma):
+ should be also provided as module function. [ruby-dev:36787]
+
+Sun Oct 19 07:25:08 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * keywords, lex.c.src, opt_insn_unif.def, opt_operand.def: moved rarely changed
+ input files for code generators into defs/ directory.
+
+ * Makefile.in (lex.c): followed keywords and lex.c.src.
+
+ * common.mk (parser.o): followed keywords.
+ (INSNS): followed opt_*.def
+
+ * tools/instruction.rb: followed opt_*.def.
+
+Sun Oct 19 12:28:01 2008 James Edward Gray II <jeg2@ruby-lang.org>
+
+ * test/csv/*: Renamed tc_* files to test_* to fit in within Ruby's
+ testing process.
+
+Sun Oct 19 00:15:03 2008 Tanaka Akira <akr@fsij.org>
+
+ * lib/test/unit.rb (assert_nothing_thrown): don't intern.
+
+Sat Oct 18 14:40:32 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * numeric.c (num_sadded): remove newly defined singleton method
+ that should not exist after exception handling. [ruby-dev:36569]
+
+Sat Oct 18 14:27:49 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * parse.y (opt_block_arg): allow trailing comma after usual
+ arguments. not after block argument.
+
+Sat Oct 18 13:30:53 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (rb_external_str_new): a new function to convert from
+ external encoding to internal encoding. if something went
+ wrong, it returns a string with the external encoding.
+
+ * string.c (rb_external_str_new_with_enc): same as above besides
+ you can specify the source encoding.
+
+ * ruby.c (ruby_set_argv): use rb_external_str_new()
+
+ * ruby.c (set_arg0, ruby_script): ditto.
+
+Sat Oct 18 04:08:18 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/tempfile.rb (Tempfile#initialize): now Tempfile.new takes
+ keyword arguments to open(). [ruby-dev:36756]
+
+Sat Oct 18 17:10:10 2008 Martin Duerst <duerst@it.aoyama.ac.jp>
+
+ * tool/transcode-tblgen.rb: added set_valid_byte_pattern
+ to reduce coupling between table generation script and
+ specific encodings.
+
+ * enc/trans/single_byte.trans: using set_valid_byte_pattern
+
+Sat Oct 18 16:39:39 2008 Martin Duerst <duerst@it.aoyama.ac.jp>
+
+ * transcode.c: in transcode_search_path, eliminated a warning
+ on cygwin about pathlen potentially not being initialized
+
+Sat Oct 18 13:40:27 2008 Tanaka Akira <akr@fsij.org>
+
+ * lib/test/unit.rb (assert_nothing_thrown): implemented.
+
+Sat Oct 18 01:33:22 2008 WATANABE Hirofumi <eban@ruby-lang.org>
+
+ * common.mk: use added options for generic_erb.rb.
+
+Sat Oct 18 00:47:51 2008 wanabe <s.wanabe@gmail.com>
+
+ * array.c: don't recycle shared-array while sort!.
+
+Fri Oct 17 22:04:38 2008 wanabe <s.wanabe@gmail.com>
+
+ * array.c: recycle shared-array when it isn't referenced.
+
+Fri Oct 17 20:29:26 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * re.c (rb_reg_initialize_m): specify ARG_ENCODING_NONE instead of
+ ARG_ENCODING_FIXED for Regexp.new("", nil, "n"). [ruby-dev:36761]
+
+ * test/ruby/test_regexp.rb (TestRegexp#test_initialize): test
+ updated.
+
+Fri Oct 17 19:46:20 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * tool/ifchange, win32/ifchange.bat: --timestamp option added.
+
+ * tool/generic_erb.rb: --timestamp, --output and --if-change options
+ added.
+
+Fri Oct 17 18:33:12 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * array.c (ary_resize_capa): renamed RESIZE_CAPA.
+
+Fri Oct 17 18:16:51 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * test/bigdecimal/test_bigdecimal.rb (TestBigDecimal#test_sqrt_bigdecimal):
+ test updated. a patch from TAKANO Mitsuhiro <takano32 at jus.or.jp> in
+ [ruby-dev:36736].
+
+Fri Oct 17 18:14:57 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (uncommon.mk): ignores failures at loading.
+
+ * test/rubygems/gemutilities.rb (RubyGemTestCase#build_rake_in):
+ get rid of interference with other tests.
+
+Fri Oct 17 18:06:39 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * transcode.c (str_transcode0): String#encode without argument now
+ behave as if :undef => :replace, :invalid => :replace specified.
+
+ * transcode.c (rb_econv_prepare_opts): should preserve options in
+ any case.
+
+Fri Oct 17 11:48:18 2008 Shugo Maeda <shugo@ruby-lang.org>
+
+ * ext/socket/socket.c (init_sock): sockets should be binmode.
+
+ * test/socket/test_tcp.rb (test_encoding): ditto.
+
+Fri Oct 17 10:26:13 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * tool/insns2vm.rb: remove -Kn option in shebang line because it's
+ inconsistent with -Ks commandline option in common.mk.
+
+Fri Oct 17 01:26:09 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode.c (transcode_restartable0): in_pos and out_pos never be
+ NULL, now.
+
+Fri Oct 17 00:39:19 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * lib/test/unit.rb: sort the order of executing tests.
+
+Fri Oct 17 00:24:15 2008 Tanaka Akira <akr@fsij.org>
+
+ * io.c (rb_io_binmode): reset encoding conversion.
+
+Fri Oct 17 00:16:08 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * io.c (rb_getc, rb_io_fread, rb_io_fwrite, rb_read_pending):
+ remove deprecated functions which do not work. [ruby-dev:36697]
+
+Thu Oct 16 23:48:34 2008 Tanaka Akira <akr@fsij.org>
+
+ * common.mk (TESTS): removed to re-enable test for minitest.
+
+Thu Oct 16 23:37:11 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * compile.c (iseq_set_sequence): fix memory leak.
+
+Thu Oct 16 23:27:27 2008 Tanaka Akira <akr@fsij.org>
+
+ * lib/test/unit.rb (assert_equal): avoid incompatible character
+ encodings error.
+
+Thu Oct 16 23:23:27 2008 Tanaka Akira <akr@fsij.org>
+
+ * lib/test/unit.rb (assert_equal): failure message changed.
+
+Thu Oct 16 22:52:54 2008 Tanaka Akira <akr@fsij.org>
+
+ * lib/test/unit: removed test/unit.
+
+ * lib/test/unit.rb: new compatibility layer using minitest.
+
+ * bin/testrb: use above.
+
+ * test/runner.rb: ditto.
+
+Thu Oct 16 14:34:16 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * common.mk, enc/depend (enc, trans): targets for sources.
+
+Thu Oct 16 14:30:30 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * instruby.rb (lib): installs all files other than README etc.
+
+Thu Oct 16 09:48:03 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * re.c (rb_reg_initialize_m): changed the message to clarify the
+ third option argument is now ignored. [ruby-dev:36753]
+
+Thu Oct 16 08:14:39 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ruby.c (proc_options): no warning when default_external already
+ set by -E.
+
+ * test/ruby/test_rubyoptions.rb (TestRubyOptions#test_rubyopt):
+ put -K after -E to set script encoding.
+
+Thu Oct 16 06:20:36 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * test/ruby/test_transcode.rb (TestTranscode#test_errors):
+ String#encode now works without any argument. [ruby-dev:36740]
+
+Wed Oct 15 23:48:22 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * .gdbinit (rp): REGEXP handling fixed.
+
+ * string.c (rb_str_rindex_m): need not to call rb_enc_check on
+ regexp.
+
+ * re.c (unescape_escaped_nonascii): try ASCII-8BIT encoding for
+ broken strings.
+
+Wed Oct 15 23:11:10 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/delegate.rb (DelegateClass): restored 1.8 behavior for
+ DelegateClass as well. [ruby-dev:36739]
+
+Wed Oct 15 22:19:14 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * array.c (RESIZE_CAPA): check whether len is longer than capacity.
+
+ * array.c (rb_ary_compact_bang): resize ary before changing capacity.
+ fixed [ruby-dev:36704]
+
+Wed Oct 15 16:57:30 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * version.h (RUBY_DESCRIPTION): remove unnecessary space.
+
+Tue Oct 14 23:18:15 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/delegate.rb (Delegator): simplified and restored 1.8
+ behavior. [ruby-dev:35986]
+
+Tue Oct 14 21:50:40 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * common.mk (TESTS): skips minitest by default, since it interferes
+ with test/unit.
+
+Tue Oct 14 21:36:29 2008 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+
+ * ext/win32ole/win32ole.c (load_conv_function51932): check
+ having IMultiLanguage2 or IMultiLanguage. [ruby-dev:36716]
+
+ * ext/win32ole/extconf.rb: ditto.
+
+Tue Oct 14 20:45:29 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * io.c (Init_IO): $FILENAME and $* must be read-only. [ruby-dev:36698]
+
+ * variable.c (*_getter, *_setter, *_marker): made public.
+
+ * include/ruby/ruby.h (rb_gvar_*_{getter,setter,marker}): declared.
+
+Tue Oct 14 20:32:09 2008 Tanaka Akira <akr@fsij.org>
+
+ * enc/trans/single_byte.trans (transcode_tblgen_singlebyte): renamed
+ from transcode_tblgen_windows.
+ (transcode_tblgen_iso8859): use transcode_tblgen_singlebyte.
+
+Tue Oct 14 19:32:14 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ruby.c (process_options): -U should be allowed in RUBYOPT
+ environment variable. [ruby-dev:36720]
+
+Tue Oct 14 14:11:17 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ruby.c (proc_options): -U can be followed by other options.
+
+Tue Oct 14 13:30:30 2008 Martin Duerst <duerst@it.aoyama.ac.jp>
+
+ * enc/trans/single_byte.trans: added windows-1252
+
+ * enc/trans/windows-1252-tbl.rb: new file
+ (contributed by Yoshihiro Kambayashi)
+
+ * tool/transcode-tblgen.rb: listed windows-1252 as '1byte'
+
+ * test/ruby/test_transcode.rb: added test_windows_1252
+ (contributed by Yoshihiro Kambayashi)
+
+Tue Oct 14 12:22:32 2008 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
+
+ * test/ruby/test_variable.rb (TestVariable#test_variable): add
+ a test of [ruby-dev:36698].
+
+Tue Oct 14 11:14:29 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * transcode.c (str_transcode0): should not raise error when
+ default_internal is not set. [ruby-core:19309]
+
+Tue Oct 14 11:14:26 2008 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
+
+ * lib/net/pop.rb: check for invalid APOP timestamp. (CVE-2007-1558)
+ [ruby-dev:36631]
+
+ * test/net/pop/test_pop.rb: ditto.
+
+Tue Oct 14 09:39:32 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ruby.c (set_internal_encoding_once): check double contradicted
+ specification of the encoding from command line.
+
+ * ruby.c (set_external_encoding_once): ditto.
+
+Tue Oct 14 08:28:31 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * parse.y (parser_yylex): allow reserved word to be keyword argument.
+
+Mon Oct 13 19:07:52 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * parse.y (token_info_pop): show source filename. [ruby-dev:36710]
+
+Mon Oct 13 08:59:08 2008 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+
+ * ext/win32ole/win32ole.c (load_conv_function51932): support
+ CP51932 on cygwin and mingw32. thanks to arton.
+
+ * test/win32ole/test_win32ole.rb (test_cp51932): ditto.
+
+Mon Oct 13 07:54:00 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ruby.c (proc_options): add -U command line option to specify
+ utf-8 as default_internal.
+
+Mon Oct 13 07:42:57 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * transcode.c (str_transcode0): String#encode() with no encoding
+ specified transcode the string into Encoding.default_internal.
+ inspired by [ruby-core:19298].
+
+Sun Oct 12 18:00:18 2008 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+
+ * ext/win32ole/win32ole.c (set_ole_codepage, ole_cp2encoding,
+ ole_wc2mb, ole_vstr2wc, ole_mb2wc): support CP51932 (only mswin32).
+
+ * test/win32ole/test_win32ole.rb: ditto.
+
+Sun Oct 12 12:03:38 2008 Koichi Sasada <ko1@atdot.net>
+
+ * vm.c, vm_insnhelper.h (ruby_vm_redefined_flag): apply optimization
+ patch proposed by Paul Brannan. [ruby-core:19171]
+
+Sun Oct 12 09:46:36 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * strftime.c (rb_strftime): suppressed warnings on cygwin.
+
+Sat Oct 11 19:49:35 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (parser_prepare): use utf-8 encoding directly.
+
+Sat Oct 11 10:20:17 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/mkmf.rb (CLEANINGS): uses escaped form tabs to preventing the
+ confusion. [ruby-talk:317345]
+
+Sat Oct 11 08:51:13 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/rake.rb (Rake::Application#standard_exception_handling): removed
+ unnecessary SystemExit, and exits with false instead of system
+ dependent value. [ruby-talk:317330]
+
+Sat Oct 11 03:54:05 2008 Koichi Sasada <ko1@atdot.net>
+
+ * parse.y: optimize 'for' statement when one variable given.
+
+ * benchmark/bm_loop_for.rb: added.
+
+ * benchmark/bm_loop_times.rb: modified.
+
+Sat Oct 11 12:09:05 2008 James Edward Gray II <jeg2@ruby-lang.org>
+
+ * lib/csv/csv.rb: Added support for Encoding::default_internal.
+ * lib/csv/csv.rb: Switched to new Hash syntax.
+
+Fri Oct 10 22:16:55 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (comment_at_top): needed for ripper too.
+
+Fri Oct 10 22:07:05 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * include/ruby.h: updated macros for headers. [ruby-core:19275]
+
+Fri Oct 10 19:21:50 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (magic_comment_encoding): warns when ignored.
+
+ * parse.y (parser_magic_comment): replaces '-' with '_'.
+
+ * parse.y (parser_yylex): allows magic comments indented and the
+ second line or later.
+
+Fri Oct 10 17:26:50 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * ext/json/ext/parser/parser.c (JSON_parse_string):
+ associate encoding.
+
+Fri Oct 10 10:18:21 2008 Ryan Davis <ryand-ruby@zenspider.com>
+
+ * lib/test/*: reverted back to test/unit.
+ * test/test/*: ditto
+ * lib/minitest/*: Imported minitest 1.3.0 r4333.
+
+Fri Oct 10 03:41:31 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * sprintf.c (rb_str_format): check if codepoint for %c is valid.
+ [ruby-dev:36691]
+
+Fri Oct 10 01:55:48 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * encoding.c (enc_names): minor improvement.
+
+Fri Oct 10 00:21:39 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/optparse.rb (ParseError.filter_backtrace): removes internal
+ backtrace.
+
+Fri Oct 10 00:11:16 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * transcode.c (rb_econv_add_converter): remove unnecessary NULL check.
+
+Thu Oct 9 23:53:23 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * misc/ruby-style.el (ruby-style-c-mode): buffer may not have file
+ name.
+
+Thu Oct 9 23:30:47 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * process.c (run_exec_dup2): fix resource leak.
+
+Thu Oct 9 23:19:02 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * process.c (rb_run_exec_options): fix resource leak.
+
+Thu Oct 9 22:13:58 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * test/ruby/test_module.rb (test_remove_class_variable): add a test
+ for Class#remove_class_variable.
+
+ * test/ruby/test_object.rb (test_remove_instance_variable): add a test
+ for Object#remove_instance_variable.
+
+Thu Oct 9 22:04:38 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * variable.c (rb_mod_remove_cvar): fix r19711.
+
+Thu Oct 9 21:17:50 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * ext/syck/syck.c (syck_lookup_sym): remove reading uninitialized
+ variable.
+
+Thu Oct 9 16:34:15 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * ext/json/ext/generator/extconf.rb: fix target.
+
+ * ext/json/ext/parser/extconf.rb: ditto.
+
+Thu Oct 9 14:37:59 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * include/ruby/ruby.h: embeds the elements of an array into its
+ struct RArray for # of elements <= 3.
+
+ * array.c: ditto.
+
+ * gc.c (gc_mark_children): following the change of struct RArray.
+
+ * ext/tk/tcltklib.c (ip_ruby_cmp): ditto.
+
+ * parse.y (coverage): ditto.
+
+ * proc.c (curry): ditto.
+
+ * .gdbinit: ditto.
+
+Thu Oct 9 11:29:33 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * encoding.c (Init_Encoding): new instance method Encoding#names,
+ returns its name and alias names.
+
+ * encoding.c (enc_names): defined for Encoding#names.
+
+ * encoding.c (enc_names_i): defined for enc_names.
+
+Thu Oct 9 08:47:38 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * thread.c (rb_thread_wait_fd_rw): should not block by select if
+ there's only one thread living. fixed [ruby-dev:36646].
+
+Wed Oct 8 20:59:52 2008 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+
+ * ext/win32ole/win32ole.c (ole_init_cp): initialize WIN32OLE.codepage
+ according to Encoding.default_internal and
+ Encoding.default_external.
+
+Wed Oct 8 17:02:21 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * ext/json/lib/json/pure/generator.rb (utf8_to_json):
+ process each unpacked Unicode character.
+
+Wed Oct 8 15:00:22 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * ext/json/lib/json/pure/parser.rb
+ (JSON::Pure::Parser#parse_string): force_encoding("UTF-8").
+
+Wed Oct 8 11:56:15 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * lib/test/unit/assertions.rb: assert_nothing_thrown,
+ assert_raise, assert_not_equal, assert_no_match, assert_not_nil,
+ assert_not_same are coming back as alias.
+
+Wed Oct 8 11:18:12 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * variable.c (autoload_delete, autoload_file): should not delete
+ autoload table, since it may be shared with duplicated modules.
+ [ruby-core:19181]
+
+Wed Oct 8 02:38:28 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * encoding.c (rb_default_internal_encoding): merged a patch from
+ Michael Selig <michael.selig at fs.com.au> in [ruby-core:18985].
+
+ * io.c (rb_io_ext_int_to_encs): ditto.
+
+ * ruby.c (proc_options): support default internal encoding in -E
+ option.
+
+Wed Oct 8 00:03:39 2008 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * lib/date.rb (today,now): should produce own instances.
+ [ruby-talk:317020]
+
+Tue Oct 7 16:43:51 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * ext/json/lib/json/pure/generator.rb (utf8_to_json):
+ force_encoding before gsub.
+
+Tue Oct 7 16:35:41 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * ext/json/lib/json/pure/generator.rb (utf8_to_json):
+ downcase the result of Unicode escape.
+
+Mon Oct 6 16:44:52 2008 Takeyuki FUJIOKA <xibbar@ruby-lang.org>
+
+ * lib/cgi/core.rb (CGI::QueryExtension::initialize_query): fix the
+ condition.
+
+ * test/cgi/test_cgi_core.rb: bug fix encoding.
+ thanks to TAKANO Mitsuhiro <takano32 at jus.or.jp> .
+
+ * test/cgi/test_cgi_multipart.rb: temporary comment in.
+
+Mon Oct 6 15:22:08 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * gc.c (gc_mark_children): ignores T_ZOMBIE.
+
+Mon Oct 6 12:45:20 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * test/ruby/test_module.rb (TestModule#_wrap_assertion): add
+ definition. is this really needed?
+
+ * test/ruby/test_module.rb (TestModule#test_mod_constants): should
+ not depend on global Module constants.
+
+Mon Oct 6 12:38:36 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/test/unit/assertions.rb (Test::Assertions#assert_nothing_raised):
+ should take optional message argument.
+
+Mon Oct 6 12:18:23 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (rb_str_comparable): string comparison should be
+ transitive. [ruby-dev:36484]
+
+ * test/ruby/test_m17n_comb.rb (TestM17NComb#test_str_eq): test
+ updated.
+
+Mon Oct 6 09:00:58 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * test/bigdecimal/test_bigdecimal.rb (test_sqrt_bigdecimal): test
+ updated. a patch from TAKANO Mitsuhiro <takano32 at jus.or.jp>
+ in [ruby-dev:36669].
+
+Sun Oct 5 23:34:28 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/mkmf.rb ($config_h): now always defines for old libraries.
+
+Sun Oct 5 23:06:55 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * vm_method.c (rb_mod_modfunc): method undefined in included module
+ may not have nd_body. [ruby-core:18738]
+
+Sun Oct 5 21:28:58 2008 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * lib/rational.rb: resolved conflicts of aliases.
+
+ * lib/mathn.rb: avoided some warnings.
+
+Sun Oct 5 18:51:50 2008 Tanaka Akira <akr@fsij.org>
+
+ * lib/open-uri.rb: remove debug code introduced by previous change.
+
+Sun Oct 5 17:49:35 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * lib/open-uri.rb (OpenURI.open_uri): set encoding to strio.
+
+Sun Oct 5 17:39:21 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * ext/stringio/stringio.c (strio_set_encoding): defined for
+ StringIO#set_encoding.
+
+Sun Oct 5 11:24:42 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * eval.c: come back definition of environ.
+
+Sun Oct 5 09:19:49 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * ext/nkf/nkf-utf8/utf8tbl.c: update table.
+
+Sat Oct 4 22:50:14 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * dln.c: Ruby no longer supports VMS.
+
+ * error.c: ditto.
+
+ * eval.c: ditto.
+
+ * eval_intern.h: ditto.
+
+ * include/ruby/defines.h: ditto.
+
+ * include/ruby/ruby.h: ditto.
+
+ * io.c: ditto.
+
+ * process.c: ditto.
+
+ * ruby.c: ditto.
+
+ * vms/config.h: removed.
+
+ * vms/vms.h: ditto.
+
+ * vms/vmsruby_private.c: ditto.
+
+ * vms/vmsruby_private.h: ditto.
+
+Sat Oct 4 22:44:23 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * dln.c: Ruby no longer supports Windows CE.
+
+ * eval.c: ditto.
+
+ * include/ruby/defines.h: ditto.
+
+ * include/ruby/win32.h: ditto.
+
+ * ruby.c: ditto.
+
+ * strftime.c: ditto.
+
+ * win32/Makefile.sub: ditto.
+
+ * win32/win32.c: ditto.
+
+ * ext/tk/extconf.rb: ditto.
+
+ * lib/fileutils.rb: ditto.
+
+ * test/fileutils/test_fileutils.rb: ditto.
+
+ * wince/*: removed.
+
+Sat Oct 4 22:35:06 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * dln.c: Ruby no longer supports MacOS 9 or before.
+
+ * eval.c: ditto.
+
+ * eval_intern.h: ditto.
+
+ * ext/extmk.rb: ditto.
+
+ * ext/tk/sample/tkextlib/treectrl/demo.rb: ditto.
+
+ * ext/tk/stubs.c: ditto.
+
+ * file.c: ditto.
+
+ * hash.c: ditto.
+
+ * include/ruby/defines.h: ditto.
+
+ * ruby.c: ditto.
+
+ * signal.c: ditto.
+
+ * vm_core.h: ditto.
+
+Sat Oct 4 22:30:28 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * dln.c: Ruby no longer supports MS-DOS.
+
+ * ext/sdbm/_sdbm.c: ditto.
+
+ * ext/sdbm/sdbm.h: ditto.
+
+ * gc.c: ditto.
+
+ * hash.c: ditto.
+
+ * include/ruby/defines.h: ditto.
+
+ * include/ruby/util.h: ditto.
+
+ * io.c: ditto.
+
+ * process.c: ditto.
+
+ * ruby.c: ditto.
+
+ * strftime.c: ditto.
+
+ * util.c: ditto.
+
+Sat Oct 4 22:14:15 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * djgpp/GNUmakefile.in: removed. Ruby no longer supports djgpp.
+
+ * djgpp/README.djgpp: ditto.
+
+ * djgpp/config.hin: ditto.
+
+ * djgpp/config.sed: ditto.
+
+ * djgpp/configure.bat: ditto.
+
+ * djgpp/mkver.sed: ditto.
+
+ * ext/Setup.dj: ditto.
+
+ * dln.c: removed djgpp supports.
+
+ * file.c: ditto.
+
+ * gc.c: ditto.
+
+ * io.c: ditto.
+
+ * process.c: ditto.
+
+ * ruby.c: ditto.
+
+ * signal.c: ditto.
+
+ * util.c: ditto.
+
+ * vm_core.h: ditto.
+
+ * lib/fileutils.rb: ditto.
+
+ * lib/mkmf.rb: ditto.
+
+ * ext/socket/socket.c: ditto.
+
+ * test/fileutils/test_fileutils.rb: ditto.
+
+ * test/ruby/test_env.rb: ditto.
+
+ * test/ruby/test_path.rb: ditto.
+
+Sat Oct 4 21:59:39 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * x68/_dtos18.c: removed. Ruby no longer supports human68k.
+
+ * x68/_round.c: ditto.
+
+ * x68/fconvert.c: ditto.
+
+ * x68/select.c: ditto.
+
+ * ext/Setup.x68: ditto.
+
+ * missing/x68.c: ditto.
+
+ * dln.c (dln_find_exe_r): removed human68k supports.
+ (dln_find_1): ditto.
+
+ * lib/mkmf.rb: ditto.
+
+ * ext/extmk.rb (Init_ext): ditto.
+
+ * ext/socket/socket.c (init_sock): ditto.
+
+ * gc.c (GC_MALLOC_LIMIT): ditto.
+ (rb_setjmp, rb_jmpbuf): ditto.
+ (mark_current_machine_context): ditto.
+
+ * include/ruby/defines.h (PATH_ENV): ditto.
+
+ * io.c: ditto.
+
+ * process.c: ditto.
+
+ * ruby.c: ditto.
+
+ * test/ruby/test_env.rb: ditto.
+
+ * test/ruby/test_path.rb: ditto.
+
+ * LEGAL
+
+Sat Oct 4 19:02:36 2008 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * lib/date/format.rb: no need to require the "lib/rational.rb".
+
+Sat Oct 4 19:02:59 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * ext/nkf/nkf.c (rb_nkf_enc_get): don't replicate encoding.
+ [ruby-dev:36575]
+
+Sat Oct 4 18:47:22 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * ext/stringio/stringio.c (strio_external_encoding): defined.
+
+ * ext/stringio/stringio.c (strio_internal_encoding): defined.
+
+ * ext/stringio/stringio.c (Init_stringio): define above.
+
+Sat Oct 4 15:52:17 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * test/mini/test_mini_test.rb: recovered.
+ It had been temporarily removed at r19645.
+
+ * test/mini/test_mini_mock.rb: ditto.
+
+ * test/mini/test_mini_spec.rb: ditto.
+
+ * lib/test/**/*: replaced by miniunit.
+ miniunit had been temporarily reverted at r19643 but
+ now recovered.
+
+Sat Oct 4 15:33:26 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * common.mk (gdb-ruby): new target. it runs ruby under controlled by
+ gdb.
+
+ * common.mk (dist): accepts RELNAME variable as the second argument of
+ make-snapshot.rb.
+
+Sat Oct 4 12:17:46 2008 Keiju Ishitsuka <keiju@ruby-lang.org>
+
+ * lib/irb/irb/ext/save-history.rb: change load_history using File.expand_path. see [ruby-dev:36660]. Thanks Kouhei Sutou.
+ * lib/irb/irb/context.rb: convert string Symbol of instance variable names in IRB:Context#inspect.
+
+Fri Oct 3 22:43:04 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * ext/dl/extconf.rb ($distcleanfiles): added callback-?.c into
+ the distclean list.
+
+Fri Oct 3 19:33:21 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * ext/json/lib/json/pure.rb (module JSON): remove Iconv dependency.
+
+ * ext/json/lib/json/pure/generator.rb (utf8_to_json): process as
+ binary and remove Iconv dependency.
+
+ * ext/json/lib/json/pure/parser.rb (parse_string): ditto.
+
+Fri Oct 3 14:04:05 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/{configure.bat,setup.mak,Makefile.sub): add --program-prefix
+ configure option support.
+
+Thu Oct 2 21:22:43 2008 Takeyuki FUJIOKA <xibbar@ruby-lang.org>
+
+ * lib/cgi/core.rb (CGI::QueryExtension): delete MorphingBody
+ and replace like as 1.8's in multipart reading.
+ see [ruby-dev:36443],
+ reference from CGIAlt http://cgialt.rubyforge.org/
+
+ * test/cgi/test_cgi_multipart.rb : fixed multipart test.
+
+Thu Oct 2 20:46:17 2008 Tanaka Akira <akr@fsij.org>
+
+ * string.c (rb_str_sub_bang): fix coderange.
+
+Wed Oct 1 22:54:09 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * lib/rexml/parsers/lightparser.rb, lib/debug.rb: remove unused when
+ clauses.
+
+Wed Oct 1 22:43:59 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * lib/xmlrpc, lib/rexml, test/ruby/test_array.rb,
+ test/ruby/test_unicode_escape.rb, test/scanf/test_scanf.rb,
+ test/rss/rss-assertions.rb: fix indentation to remove warning.
+
+Wed Oct 1 21:36:35 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * gc.c (rb_gc_call_finalizer_at_exit): finalize deferred IO and Data.
+
+ * gc.c (rb_gc_call_finalizer_at_exit): defers IO finalization.
+ [ruby-dev:36646]
+
+Wed Oct 1 19:11:48 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * marshal.c (marshal_dump): fixed for check_dump_arg.
+
+ * marshal.c (marshal_dump): initializes dump_arg before any funcall.
+ [ruby-dev:36648]
+
+Wed Oct 1 00:54:32 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (rb_str_split_m): should use rb_str_subseq() which use
+ offset and length by bytes. [ruby-dev:36641]
+
+Wed Oct 1 00:29:48 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * test/ruby/test_settracefunc.rb (test_call, test_class): line number
+ was changed at r19592.
+
+Wed Oct 1 00:20:38 2008 Tanaka Akira <akr@fsij.org>
+
+ * process.c (check_exec_redirect): don't depend on rb_stdout and
+ rb_stderr.
+
+Tue Sep 30 23:06:58 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * test/mini/test_mini_test.rb: removed.
+ Temporarily removed the tests for miniunit because of
+ they depend on the miniunit version of test/unit,
+ where test/unit was temporarily reverted to the state
+ before importing miniunit.
+
+ * test/mini/test_mini_mock.rb: ditto.
+
+ * test/mini/test_mini_spec.rb: ditto.
+
+Tue Sep 30 23:04:30 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * lib/test/**/*: recovered.
+ Temporarily reverts the changes of lib/test/unit/* in
+ r19502 and r19501, in order to release 1.9.0-5.
+
+Tue Sep 30 23:00:05 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * lib/test/unit.rb: removed.
+ Temporarily reverts the changes of lib/test/unit/* in
+ r19543, r19534 and r19503, in order to release 1.9.0-5.
+
+ * lib/test/unit/assertions.rb: ditto.
+
+ * lib/test/unit/deprecate.rb: ditto.
+
+ * lib/test/unit/error.rb: ditto.
+
+ * lib/test/unit/testcase.rb: ditto.
+
+Tue Sep 30 20:17:26 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * io.c (rb_io_extract_modeenc): should honor value of the
+ textmode: and binmode: options.
+
+Tue Sep 30 17:04:59 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * test/bigdecimal/test_bigdecimal.rb (test_sqrt_bigdecimal): wrong
+ precision specification. a patch from TAKANO Mitsuhiro
+ <takano32 at jus.or.jp> in [ruby-dev:36634].
+
+Tue Sep 30 16:53:55 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (stmt): returns non zero. [ruby-dev:36633]
+
+Tue Sep 30 16:52:38 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * sprintf.c (rb_str_format): add %<name>s style named argument
+ support. a patch from Yusuke Endoh <mame at tsg.ne.jp>
+ in [ruby-dev:35851].
+
+ * sprintf.c (rb_str_format): add gettext style named format
+ (%{name}) support. inspired by [ruby-dev:35852].
+
+ * sprintf.c (GETNAMEARG): should raise KeyError exception when no
+ named argument found.
+
+ * hash.c (rb_hash_fetch): export fetch function.
+
+Tue Sep 30 13:19:01 2008 Eric Hodel <drbrain@segment7.net>
+
+ * test/rubygems/test_gem_installer.rb: remove extra call to setup to
+ fix ENV['HOME'] pollution.
+
+Tue Sep 30 13:04:11 2008 Ryan Davis <ryand-ruby@zenspider.com>
+
+ * lib/mini/test.rb: Updated to 1.3.0 r4257.
+ * test/mini/*: added from r4257.
+
+Tue Sep 30 07:46:07 2008 Eric Hodel <drbrain@segment7.net>
+
+ * test/rdoc/test_rdoc_markup_attribute_manager.rb: Test with clean
+ SPECIALS.
+ * test/rubygems/gemutilities.rb: Restore ENV['HOME'] after test.
+ * test/runner.rb: Pass -n argument down to miniunit.
+
+Tue Sep 30 01:02:55 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (token_info_push, token_info_pop): do nothing for evaled
+ source.
+
+Tue Sep 30 00:47:43 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/nkf/nkf-utf8/nkf.c: constified.
+
+Mon Sep 29 23:32:25 2008 Tanaka Akira <akr@fsij.org>
+
+ * string.c (rb_str_subseq): don't use rb_str_drop_bytes for short
+ string.
+
+Mon Sep 29 22:54:29 2008 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * lib/mathn.rb: added String#to_[rc]. moved def_canon.
+
+Mon Sep 29 20:41:19 2008 Tanaka Akira <akr@fsij.org>
+
+ * string.c (rb_str_subseq): use rb_str_drop_bytes if possible.
+
+Mon Sep 29 20:22:20 2008 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * test/date/*.rb: imported additional tests and some adjustments.
+
+Mon Sep 29 20:13:05 2008 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+
+ * ext/win32ole/win32ole.c (fev_initialize): initialization
+ handler instance variable.
+
+ * test/win32ole/test_win32ole_typelib.rb (test_s_typelibs):
+ fix the warning of shadowing outer local variable.
+
+Mon Sep 29 19:59:00 2008 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+
+ * ext/win32ole/win32ole.c (rescue_callback): use rb_write_error
+ instead of fprintf.
+
+Mon Sep 29 01:51:54 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * test/rdoc/test_rdoc_info_formatting.rb (teardown): delete tmpdir for
+ test.
+
+Mon Sep 29 00:30:20 2008 Takeyuki Fujioka <xibbar@ruby-lang.org>
+
+ * lib/cgi/html.rb (CGI::HtmlExtension::{radio_group, checkbox_group}):
+ can specify the false as checked or selected value.
+ [ruby-core:18306], [ruby-core:18307]
+
+ * test/cgi/test_cgi_tag_helper.rb: add a test.
+
+Sun Sep 28 23:08:38 2008 Takeyuki Fujioka <xibbar@ruby-lang.org>
+
+ * lib/cgi/html.rb (CGI::HtmlExtension::popup_menu):
+ fix the calls #bytesize on array parameters. [ruby-core:18919]
+
+Sun Sep 28 22:44:26 2008 Takeyuki Fujioka <xibbar@ruby-lang.org>
+
+ * lib/cgi/core.rb (CGI::parse): ignore illegal query params.
+ [ruby-dev:36618]
+
+Sun Sep 28 22:05:07 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * compile.c (iseq_set_sequence): check duplicated when clause.
+ [ruby-dev:36616]
+
+Sun Sep 28 19:04:03 2008 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * test/date/*.rb: imported a date test suite ruby 1.9 limited ed.
+
+Sun Sep 28 18:40:49 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/mini/test.rb (MINI_DIR): loaded path is expanded.
+
+ * lib/mini/test.rb (assert_match): get rid of confusion of
+ ruby-mode.el.
+
+Sun Sep 28 12:36:09 2008 Koichi Sasada <ko1@atdot.net>
+
+ * vm_exec.c (vm_exec_core): add an UNLIKELY() hint.
+
+ * vm_insnhelper.h (BASIC_OP_UNREDEFINED_P): add a LIKELY() hint.
+
+Sun Sep 28 12:04:18 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * string.c (str_new): sets empty string to coderange 7bit.
+ [ruby-core:18993]
+
+Sun Sep 28 09:39:48 2008 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * lib/mathn.rb ({Fixnum,Bignum,Float}#**): may produce complex
+ value.
+
+Sun Sep 28 09:05:53 2008 James Edward Gray II <jeg2@ruby-lang.org>
+
+ * lib/csv/csv.rb: Worked around some minor encoding changes in Ruby
+ pointed out by Nobu.
+
+Sun Sep 28 08:37:12 2008 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * lib/mathn.rb: a hack to provide canonicalization. This must be
+ temporary, but this seems to be not bad for the time being.
+
+Sat Sep 27 06:22:18 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/rake.rb (Module#rake_extension, String#ext, String#pathmap): use
+ built-in methods.
+
+ * lib/rake.rb (String#pathmap): fixed typo in rdoc.
+
+Sat Sep 27 04:28:41 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * file.c (rmext): preceding dots are not a part of extension.
+
+ * file.c (rb_file_s_extname): ditto.
+
+Sat Sep 27 03:15:51 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * vm.c (vm_jump_tag_but_local_jump): exc is not used if val is nil.
+
+Sat Sep 27 03:12:40 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/socket/socket.c (host_str): numeric address should be unsigned.
+ [ruby-core:18971]
+
+Fri Sep 26 22:46:58 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (primary, brace_block): fix for line number.
+
+ * proc.c (rb_proc_location, rb_method_location): new methods
+ {Proc,Method,UnboundMethod}#source_location. [ruby-core:18452]
+
+Fri Sep 26 21:36:33 2008 Koichi Sasada <ko1@atdot.net>
+
+ * vm_core.h (RUBY_VM_CHECK_INTS_TH): add an UNLIKELY hint.
+
+Fri Sep 26 19:33:36 2008 Tanaka Akira <akr@fsij.org>
+
+ * include/ruby/encoding.h (rb_str_encode): renamed from
+ rb_str_transcode. [ruby-dev:36593]
+ (rb_econv_has_convpath_p): renamed from rb_transcode_convertible.
+
+ * transcode.c: follow the renaming.
+
+ * io.c: ditto.
+
+Fri Sep 26 19:01:47 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * test/bigdecimal/test_bigdecimal.rb (test_inspect): fixed CPU bit
+ size dependent test. pointed out by TAKANO Mitsuhiro <takano32 AT
+ jus.or.jp>.
+
+Fri Sep 26 18:57:33 2008 Akinori MUSHA <knu@iDaemons.org>
+
+ * test/pathname/test_pathname.rb: Fix use of deprecated methods.
+
+Fri Sep 26 18:39:59 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * common.mk (dist): nothing is needed to run BASERUBY.
+
+ * tool/make-snapshot: new option -archname.
+
+Fri Sep 26 18:24:28 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * misc/ruby-mode.el: safe customizable variables.
+
+Fri Sep 26 17:37:18 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * include/ruby/ruby.h (rb_mPrecision): removed.
+ Precision module was temporarily removed at r19430.
+
+Fri Sep 26 17:25:10 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * common.mk (dist): Changed its dependencies and action.
+
+Fri Sep 26 17:07:04 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * error.c (Init_syserr): moved to the template.
+ (errno_missing): removed. fixed [ruby-dev:35958].
+
+ * defs/known_errors.def: added. extracted from Init_syserr.
+
+ * templates/known_errors.inc.tmpl: added. Template for Init_syserr.
+ c.f. [ruby-dev:35958].
+
+ * tools/generic_erb.rb: added. general purpose mapper which maps
+ data+template into source code.
+
+ * common.mk (error.$(OBJEXT), incs, known_errors.inc):
+ Fixed dependencies.
+
+Fri Sep 26 17:02:04 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * thread.c (thlist_signal): clears the woken thread if nothing woke.
+
+ * thread.c (rb_barrier_wait): achieves the lock if no thread was
+ waiting yet.
+
+Fri Sep 26 12:04:07 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ext/curses/curses.c: should include <ruby/io.h>.
+
+ * ext/io/wait/wait.c: ditto.
+
+ * ext/openssl/ossl.h: ditto.
+
+Fri Sep 26 11:34:08 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * variable.c (rb_define_hooked_variable): cast to get rid of compiler
+ warnings.
+
+Fri Sep 26 11:05:41 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * transcode.c, include/ruby/encoding.c (rb_transcode_convertible):
+ new function. checking the existence of converter.
+
+Fri Sep 26 10:35:50 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * variable.c (global_variable, struct trace_var): made function
+ members more strict.
+
+Fri Sep 26 09:55:06 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * include/ruby{io,sig}.h: moved to include/ruby/backward.
+
+Fri Sep 26 09:47:15 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * include/rubysig.h: old macros for backward compatibility.
+
+ * thread.c (BLOCKING_REGION): rewritten using helper functions.
+
+Fri Sep 26 03:03:32 2008 Tanaka Akira <akr@fsij.org>
+
+ * vm_eval.c (Init_vm_eval): define module_eval, class_eval and eval
+ here for rdoc.
+
+Fri Sep 26 00:40:30 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * range.c (range_inspect): fix SEGV for cyclic range object.
+ [ruby-core:18835]
+
+Thu Sep 25 23:59:56 2008 Tanaka Akira <akr@fsij.org>
+
+ * common.mk: dependency updated.
+
+Thu Sep 25 21:46:48 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode.c (rb_eUndefinedConversionError): renamed from
+ rb_eConversionUndefinedError.
+ (rb_eConverterNotFoundError): renamed from rb_eNoConverterError.
+
+Thu Sep 25 21:23:08 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * pack.c (pack_pack, pack_unpack): 'm0' format (base64) complies with
+ RFC 4648. It adds no line feed when encoding, and raise ArgumentError
+ if the encoded string contains non-alphabet (including CR and LF).
+
+ * lib/base64.rb: added. This provides encoding/decoding method for
+ Base64 in standard RFC 2045, Base64 in standard RFC 4648 and ``Base 64
+ Encoding with URL and Filename SafeAlphabet'' in RFC 4648.
+
+ * test_pack.c, test/base64/test_base64.rb: add tests for above.
+
+Thu Sep 25 21:00:32 2008 Koichi Sasada <ko1@atdot.net>
+
+ * common.mk: fix btest-* rules [ruby-dev:36528].
+ and remove obsolete rules.
+
+Thu Sep 25 20:27:54 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * class.c (rb_make_metaclass): [BUG] Fixed a bus error
+ on the case for metaclass of a class which includes a
+ module.
+
+Thu Sep 25 19:34:33 2008 Eric Hodel <drbrain@segment7.net>
+
+ * test/rubygems/*: Update some new tests to use build_rake_in.
+ * test/rubygems/gemutilities.rb: Fix broken merge of rake detection.
+
+Thu Sep 25 19:13:12 2008 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems*: Update to RubyGems 1.3.0 r1891.
+
+Thu Sep 25 18:40:42 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * class.c (rb_make_metaclass): Made class of class of class
+ from Class into its own eigenclass. Now meta^(n)-class
+ hierarchy regresses infinitely, again.
+ (This feature was decided on developer-meeting-20080922.)
+
+Thu Sep 25 16:01:07 2008 Jim Weirich <jim@tardis.local>
+
+ * lib/rake.rb: Update rake source to version 0.8.3. This
+ version includes some fixes for running Rake on windows.
+ (1) better APPDATA/HOMExxx/USERPROFILE integration for
+ system rakefiles, (2) Better handling of the :ruby command
+ when installed in directory containing spaces.
+
+Thu Sep 25 11:22:51 2008 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rdoc*: Update to RDoc 2.2.1 r185.
+
+Thu Sep 25 02:08:47 2008 Tanaka Akira <akr@fsij.org>
+
+ * io.c (rb_io_mode_enc): make it static.
+
+Thu Sep 25 01:22:39 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/mini/test.rb (Mini::Assertions#assert_raise): fixed typo.
+
+Wed Sep 24 23:39:00 2008 Takeyuki Fujioka <xibbar@ruby-lang.org>
+
+ * test/cgi/test_cgi_multipart.rb : revert last change.
+ ( deprecated is assert_raises. )
+ * test/cgi/test_cgi_core.rb : ditto.
+ * test/cgi/test_cgi_header.rb : ditto.
+
+Wed Sep 24 23:12:49 2008 Takeyuki Fujioka <xibbar@ruby-lang.org>
+
+ * lib/cgi/core.rb (CGI::new, CGI::{accept_charset,accept_charset=}) :
+ accept parameters either in a hash,
+ string as a block. add the encoding validation process.
+ * test/cgi/test_cgi_core.rb : test for query encoding check.
+
+Wed Sep 24 22:58:18 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * string.c (rb_str_rstrip_bang): raise exception when the encoding of
+ the string is dummy.
+
+ * string.c (rb_str_rstrip_bang): remove nul characters even if the
+ encoding of the string is not single byte optimizable.
+ fixed [ruby-core:18844], reported by Michael Selig.
+
+Wed Sep 24 19:01:45 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * string.c (rb_str_rstrip_bang): workaround for VC++8 x64.
+
+Wed Sep 24 17:44:44 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * complex.c (Init_Complex), rational.c (Init_Rational): undefines
+ default #allocate methods which call the allocator.
+
+Wed Sep 24 17:02:14 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * complex.c (Init_Complex), rational.c (Init_Rational): ID_ALLOCATOR
+ differs from :allocate, and invisible in ruby level.
+
+Wed Sep 24 15:58:52 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (rb_str_rstrip_bang): removing mixed spaces and nuls at
+ the end of strings. [ruby-dev:36497]
+
+Wed Sep 24 15:13:04 2008 Takeyuki Fujioka <xibbar@ruby-lang.org>
+
+ * test/cgi/test_cgi_multipart.rb : test for miniunit.
+ * test/cgi/test_cgi_core.rb : ditto.
+ * test/cgi/test_cgi_header.rb : ditto.
+
+Wed Sep 24 14:38:29 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * lib/tmpdir.rb: setup buffer with nul characters instead of spaces.
+ fixed [ruby-dev:36493]
+
+Wed Sep 24 11:18:33 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * io.c (rb_io_s_binread): offset argument was wrongly passed to
+ internal IO#read call. [ruby-core:18810]
+
+Wed Sep 24 07:38:23 2008 URABE Shyouhei <shyouhei@ruby-lang.org>
+
+ * vm_core.h: ruby/ruby.h should be included at the very first
+ place in an entire compilation unit, as it includes
+ ruby/config.h
+
+Wed Sep 24 06:41:24 2008 Ryan Davis <ryand-ruby@zenspider.com>
+
+ * lib/test/*: removed test/unit.
+ * lib/test/*: added miniunit.
+ * lib/mini/*: ditto.
+
+Wed Sep 24 04:45:35 2008 Koichi Sasada <ko1@atdot.net>
+
+ * include/ruby/node.h, node.h: move node.h from include path.
+ This change stop to install node.h because of saving ABI
+ (node.h will be changed. Extensions should not depends on
+ this file).
+
+ * blockinlining.c, class.c, compile.c, debug.h, enum.c,
+ gc.c, iseq.c, parse.y, ruby.c, signal.c, variable.c,
+ vm.c, vm_core.h, vm_dump.c: ditto.
+
+ * ext/ripper/depend: ditto.
+
+Wed Sep 24 04:09:13 2008 Koichi Sasada <ko1@atdot.net>
+
+ * vm_core.h: remove unused frame values.
+
+Wed Sep 24 04:07:07 2008 Koichi Sasada <ko1@atdot.net>
+
+ * signal.c (signal_exec): execute rb_eval_cmd() directly.
+
+Wed Sep 24 03:08:58 2008 Eric Hodel <drbrain@segment7.net>
+
+ * lib/uri/mailto.rb: fix indentation.
+ * lib/uri/generic.rb: ditto.
+ * lib/yaml.rb: ditto.
+ * lib/uri/cgi/core.rb: fix indentation and ambiguous argument warning.
+
+Tue Sep 23 23:39:25 2008 James Edward Gray II <jeg2@ruby-lang.org>
+
+ * lib/csv/csv.rb: Improved the idea of whitespace and word characters used
+ in substitutions during header conversion as suggested by Michael Selig.
+
+Tue Sep 23 21:50:53 2008 Tanaka Akira <akr@fsij.org>
+
+ * io.c (io_binwrite): allocate wbuf if nosync.
+
+Tue Sep 23 21:45:02 2008 Tanaka Akira <akr@fsij.org>
+
+ * io.c (copy_stream_body): use io_binwrite instead of io_fwrite.
+
+Tue Sep 23 21:31:16 2008 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * test/ruby/test_rational2.rb: updated.
+
+ * test/ruby/test_complex2.rb: added.
+
+ * test/ruby/test_complexrational.rb: added.
+
+Tue Sep 23 21:26:32 2008 Tanaka Akira <akr@fsij.org>
+
+ * string.c (rb_str_casecmp): make the ordering consistent with
+ String#<=>.
+
+Tue Sep 23 20:52:25 2008 Tanaka Akira <akr@fsij.org>
+
+ * io.c (io_binwrite): add nosync argument.
+ (do_writeconv): extracted from io_fwrite.
+ (io_fwrite): add nosync argument. use do_writeconv.
+ (io_write): add nosync argument.
+ (io_write_m): new function for IO#write.
+ (rb_p): don't append record separator.
+
+Tue Sep 23 20:24:41 2008 Koichi Sasada <ko1@atdot.net>
+
+ * signal.c (signal_exec): fix to use rb_proc_call().
+
+Tue Sep 23 20:06:46 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/rexml/formatters/pretty.rb (REXML::Formatters::Pretty#wrap):
+ abandon wrapping if the line contains no space. [ruby-dev:36045]
+
+Tue Sep 23 19:38:03 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/win32.c (subtract): check tv_sec. reported by ko1.
+
+Tue Sep 23 19:21:03 2008 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * complex.c (nucomp_s_canonicalize_internal): does no apply
+ canonicalization rule anymore.
+
+ * rational.c (nurat_s_canonicalize_internal(_no_reduce)?): ditto.
+
+ * complex.c: removed class method new! and new.
+
+ * rational.c: ditto.
+
+Tue Sep 23 19:20:59 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * io.c (rb_io_s_binread): a new method to read binary chunk from a
+ file. [ruby-core:18674]
+
+ * io.c (open_key_args): wrong permission specified for read-open.
+
+Tue Sep 23 18:24:34 2008 Tanaka Akira <akr@fsij.org>
+
+ * hash.c (rb_obj_is_proc): declaration moved for rdoc.
+
+Tue Sep 23 18:07:55 2008 Koichi Sasada <ko1@atdot.net>
+
+ * common.mk (io.o): remove dependency for vm_core.h.
+
+Tue Sep 23 17:56:44 2008 Koichi Sasada <ko1@atdot.net>
+
+ * thread.c (rb_thread_blocking_region): fix typo in a document.
+
+Tue Sep 23 17:50:35 2008 Koichi Sasada <ko1@atdot.net>
+
+ * thread.c (rb_thread_blocking_region): write a document.
+
+Tue Sep 23 17:14:31 2008 Koichi Sasada <ko1@atdot.net>
+
+ * thread.c, include/ruby/intern.h (rb_thread_interrupted): added.
+
+ * io.c: use VALUE of thead instead of rb_tread_t to check interrupts.
+
+Tue Sep 23 17:05:14 2008 Koichi Sasada <ko1@atdot.net>
+
+ * class.c, vm_core.h: move decl of rb_iseq_clone() to class.c.
+
+Tue Sep 23 17:02:47 2008 Tanaka Akira <akr@fsij.org>
+
+ * debug.h (ruby_set_debug_option): declared.
+
+ * main.c: include debug.h.
+
+ * common.mk (main.$(OBJEXT)): dependency updated.
+
+Tue Sep 23 16:59:45 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * hash.c (ENVMATCH, ENVNMATCH): reduced same code.
+
+Tue Sep 23 16:55:11 2008 Koichi Sasada <ko1@atdot.net>
+
+ * ruby.h: fix comment and rename macro HAVE_RUBY_MVM_H to
+ HAVE_RUBY_VM_H.
+
+Tue Sep 23 16:41:31 2008 Koichi Sasada <ko1@atdot.net>
+
+ * include/ruby/node.h, vm_core.h: move definition of
+ RUBY_VM_METHOD_NODE to node.h.
+
+ * class.c, common.mk: remove useless inclusion.
+
+ * compile.h, iseq.h, vm_core.h: rename compile.h to iseq.h.
+ move some definitions from vm_core.h to iseq.h.
+
+ * compile.c, iseq.c, vm.c: ditto.
+
+ * eval.c, compile.c: move some functions for parser
+ from eval.c to compile.c.
+
+ * eval_intern.h, vm_core.h: move va_init_list() macro to
+ vm_core.h.
+
+ * iseq.c (rb_iseq_new_top, rb_iseq_first_lineno): added.
+
+ * load.c, ruby.c: use rb_iseq_new_top() instead of
+ rb_iseq_new() with ISEQ_TYPE_TOP constant directly.
+
+ * proc.c: use rb_iseq_first_lineno() instead of accessing
+ iseq structure.
+
+Tue Sep 23 16:17:54 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ext/ripper/eventids2.c (token_to_eventid): supper __ENCODING__
+ keyword. [ruby-dev:36478]
+
+Tue Sep 23 15:30:53 2008 Koichi Sasada <ko1@atdot.net>
+
+ * common.mk, hash.c: remove unused inclusion.
+
+Tue Sep 23 09:52:07 2008 Koichi Sasada <ko1@atdot.net>
+
+ * eval_safe.c, safe.c: rename eval_safe.c to safe.c.
+
+ * common.mk, eval.c, safe.c, inits.c: separate safe.c from eval.c and
+ make Init_safe().
+
+Tue Sep 23 09:20:00 2008 Koichi Sasada <ko1@atdot.net>
+
+ * common.mk: clean up
+ - remove blockinlining.$(OBJEXT) to built
+ - make ENCODING_H_INCLDUES variable (include/ruby/encoding.h)
+ - make VM_CORE_H_INCLUDES variable (vm_core.h)
+ - simplify rules.
+ - make depends rule to output depend status using gcc -MM.
+
+ * include/ruby/mvm.h, include/ruby/vm.h: rename mvm.h to vm.h.
+
+ * include/ruby.h: ditto.
+
+ * load.c: add inclusion explicitly.
+
+ * enumerator.c, object.c, parse.y, thread.c, vm_dump.c:
+ remove useless inclusion.
+
+ * eval_intern.h: cleanup inclusion.
+
+ * vm_core.h: rb_thread_t should be defined in this file.
+
+ * vm_evalbody.c, vm_exec.c: rename vm_evalbody.c to vm_exec.c.
+
+ * vm.h, vm_exec.h: rename vm.h to vm_exec.h.
+
+ * insnhelper.h, vm_insnhelper.h: rename insnhelper.h to vm_insnhelper.h.
+
+ * vm.c, vm_insnhelper.c, vm_insnhelper.h:
+ - rename vm_eval() to vm_exec_core().
+ - rename vm_eval_body() to vm_exec().
+ - cleanup include order.
+
+ * vm_method.c: fix comment.
+
+Tue Sep 23 09:01:15 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * lib/pathname.rb (each_filename): return Enumerator if no block
+ given.
+
+ * test/pathname/test_pathname.rb: add a test for above.
+
+Tue Sep 23 08:25:56 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * hash.c (env_aset): allow nil value to remove an entry.
+ [ruby-dev:36465]
+
+ * test/ruby/test_env.rb (TestEnv#test_aset): test updated.
+
+Tue Sep 23 08:07:07 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * misc/ruby-mode.el (ruby-keyword-end-re): emacs21 support. a
+ patch from Hiroshi Moriyama <hiroshi at kvd.biglobe.ne.jp> in
+ [ruby-dev:36471].
+
+ * misc/ruby-mode.el (ruby-in-ppss-context-p): ditto.
+
+ * misc/ruby-mode.el (ruby-here-doc-end-syntax):
+
+Tue Sep 23 02:07:52 2008 TAKAO Kouji <kouji@takao7.net>
+
+ * test/readline/test_readline_history.rb
+ (Readline::TestHistory#test_each): checked return value.
+
+Tue Sep 23 02:05:34 2008 TAKAO Kouji <kouji@takao7.net>
+
+ * ext/readline/readline.c (Init_readline): used remove_history to
+ check offset of history if unsupported clear_history.
+
+Mon Sep 22 17:39:25 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/tempfile.rb (Tempfile#open): should return a value from the
+ block (if given). [ruby-core:18394]
+
+Mon Sep 22 11:17:51 2008 URABE Shyouhei <shyouhei@ruby-lang.org>
+
+ * include/ruby/encoding.h (enum): ISO C forbids comma at end of
+ enumerator list
+
+Mon Sep 22 10:15:24 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * LEGAL: updated file names removed and added. [ruby-dev:36426]
+
+Mon Sep 22 02:39:05 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * encoding.c (get_default_external): add description.
+
+Sun Sep 21 21:52:41 2008 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * math.c (math_log): should check argc.
+
+Sun Sep 21 21:20:24 2008 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * complex.c: added two macros.
+
+ * rational.c: ditto.
+
+Sun Sep 21 18:06:38 2008 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * complex.c (nucomp_s_convert): checks argc.
+
+ * rational.c (nurat_s_convert): ditto.
+
+Sun Sep 21 10:19:04 2008 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * complex.c (nucomp_s_canonicalize_internal): checks exactness of
+ imag only.
+
+ * rational.c (nurat_s_convert): accepts non real value
+ (Rational(a,b) as a/b).
+
+ * complex.c (nucomp_s_convert): refined.
+
+Sun Sep 21 09:37:57 2008 James Edward Gray II <jeg2@ruby-lang.org>
+
+ * lib/csv/csv.rb: Reworked CSV's parser and generator to be m17n. Data
+ is now parsed in the Encoding it is in without need for translation.
+ * lib/csv/csv.rb: Improved inspect() messages for better IRb support.
+ * lib/csv/csv.rb: Fixed header writing bug reported by Dov Murik.
+ * lib/csv/csv.rb: Use custom separators in parsing header Strings as
+ suggested by Shmulik Regev.
+ * lib/csv/csv.rb: Added a :write_headers option for outputting headers.
+ * lib/csv/csv.rb: Handle open() calls in binary mode whenever we can to
+ workaround a Windows issue where line-ending translation can cause an
+ off-by-one error in seeking back to a non-zero starting position after
+ auto-discovery for :row_sep as suggested by Robert Battle.
+ * lib/csv/csv.rb: Improved the parser to fail faster when fed some forms
+ of invalid CSV that can be detected without reading ahead.
+ * lib/csv/csv.rb: Added a :field_size_limit option to control CSV's
+ lookahead and prevent the parser from biting off more data than
+ it can chew.
+ * lib/csv/csv.rb: Added readers for CSV attributes: col_sep(), row_sep(),
+ quote_char(), field_size_limit(), converters(), unconverted_fields?(),
+ headers(), return_headers?(), write_headers?(), header_converters(),
+ skip_blanks?(), and force_quotes?().
+ * lib/csv/csv.rb: Cleaned up code syntax to be more inline with
+ Ruby 1.9 than 1.8.
+
+Sun Sep 21 07:43:16 2008 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * complex.c: an instance method image has been removed and
+ uses "imag" instead of "image".
+
+ * complex.c: two instance method re and im are removed.
+
+ * rational.c: follows the above changes.
+
+ * include/ruby/ruby.h: ditto.
+
+ * gc.c: ditto.
+
+ * lib/cmath.rb: ditto.
+
+ * lib/mathn.rb: ditto.
+
+ * lib/complex.rb: ditto. and provides some obsolete methods.
+
+Sun Sep 21 02:48:45 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * ext/json/ext/parser/parse.c: use ruby_xfree().
+
+ * ext/json/ext/parser/parse.rl: ditto.
+
+ * ext/json/ext/parser/unicode.c: ditto.
+
+Sun Sep 21 02:40:20 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * ext/json: import JSON v 1.1.3.
+
+Sat Sep 20 11:43:08 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * lib/optparse.rb (summarize): separator "" should output new line.
+
+Sat Sep 20 08:07:34 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * parse.y: strings which contain only US-ASCII don't force to have
+ US-ASCII encoding. [ruby-dev:36400]
+
+Sat Sep 20 07:59:31 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * re.c (rb_reg_desc): Regexps of ASCII Compatible encoding may
+ contain non-ASCII characters. So in that case its encoding
+ must keep original encoding.
+
+Sat Sep 20 07:44:56 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * common.mk: prec.c is removed.
+
+Fri Sep 19 22:37:25 2008 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * complex.c: uses f_(in)?exact_p macro.
+
+ * rational.c: ditto.
+
+ * bignum.c (rb_big_pow): bignum**bignum - should calculate without
+ rational.
+
+ * lib/complex.rb: should override Math module at most once.
+
+ * lib/mathn.rb: requires 'cmath' directly.
+
+Fri Sep 19 20:48:06 2008 Yuki Sonoda <yugui@yugui.jp>
+
+ * prec.c: removed. Precision will be redesigned and be back again.
+ c.f. [ruby-dev:36352].
+
+ * common.mk (COMMON_OBJS): removed prec.o.
+
+ * inits.c (rb_call_inits): removed Init_Precision.
+
+ * numeric.c (Init_Numeric): removed inclusion of Precision.
+ removed #induced_from from each class.
+
+ * rational.c: ditto.
+
+ * ext/bigdecimal/bigdecimal.c: ditto.
+
+ * lib/rdoc/known_classes.rb: removed the entry for Precision.
+
+ * test/ruby/test_prec.rb: removed.
+
+ * test/ruby/test_integer.rb: removed tests for Precision.
+
+ * test/ruby/test_fixnum.rb: ditto.
+
+ * test/ruby/test_float.rb: ditto.
+
+ * test/ruby/test_rational.rb: ditto.
+
+ * test/ruby/test_complex.rb: ditto.
+
+ * test/bigdecimal/test_bigdecimal.rb: ditto.
+
+Fri Sep 19 19:43:40 2008 Yuki Sonoda <yugui@yugui.jp>
+
+ * common.mk : Reverts the changeset 18994.
+ Uses the official repository of rubyspec again.
+
+Fri Sep 19 17:41:56 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * configure.in: applied OS/2 support patch from Brendan Oakley
+ <gentux2 at gmail.com> in [ruby-core:18707].
+
+Fri Sep 19 09:29:26 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * dln.c: newer BeOS support. a patch from Pete Goodeve
+ <pete.goodeve at computer.org> in [ruby-core:18712].
+
+Fri Sep 19 03:41:25 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * ext/nkf/nkf-utf8/nkf.c: fix memory violation. mentioned by mame [ruby-dev:36373]
+
+Fri Sep 19 01:07:36 2008 Tanaka Akira <akr@fsij.org>
+
+ * regexec.c (string_cmp_ic): add text_end argument.
+ (slow_search): call enclen with real string end.
+ (map_search): add text_end argument.
+
+Thu Sep 18 22:54:39 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * ext/openssl/ossl_pkey_ec.c (ossl_ec_key_to_string): comment out
+ fragments of unused code.
+
+Thu Sep 18 22:35:03 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * ext/bigdecimal/bigdecimal.c (VpCtoV): 1E1000...000 is interpreted as
+ Infinity. [ruby-dev:36159]
+
+ * ext/bigdecimal/bigdecimal.c (VpPower): Infinity ** 1 returns
+ Infinity instead of NaN. [ruby-dev:36159]
+
+ * test/bigdecimal/test_bigdecimal.rb: add tests for above.
+
+Thu Sep 18 22:20:08 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * error.c (Init_Exception): introduce EncodingError which is a
+ superclass for all encoding related exception classes,
+ e.g. Encoding::CompatibilityError. [ruby-dev:36371]
+
+ * transcode.c (Init_transcode): ditto.
+
+Thu Sep 18 21:57:32 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (rb_str_comparable): make ascii8bit string to be
+ compatible with any other encoding.
+
+ * string.c (rb_str_cmp): use rb_str_comparable() instead of
+ rb_enc_compatible() since <=> is a comparison anyway.
+
+Thu Sep 18 21:37:14 2008 Tanaka Akira <akr@fsij.org>
+
+ * grapheme cluster implementation reverted. [ruby-dev:36375]
+
+Thu Sep 18 20:50:36 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/rake.rb (Rake::Application#standard_exception_handling):
+ replaced magic numbers for exit status.
+
+Thu Sep 18 20:37:59 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/optparse.rb (OptionParser::ParseError#set_backtrace): omits
+ OptionParser internal backtraces unless debug flag is set.
+
+Thu Sep 18 20:02:48 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * lib/uri/common.rb (unescape): skip '%' to make String#hex work
+ correctly.
+
+Thu Sep 18 19:51:11 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * bignum.c (big2str_karatsuba): free internal buffer eagerly.
+ a patch from TOYOFUKU Chikanobu <nobu_toyofuku at nifty.com>
+ in [ruby-dev:36217].
+
+ * bignum.c (rb_big2str0): ditto.
+
+Thu Sep 18 19:43:04 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * st.c (new_size): raise RuntimeError when st_table is too big.
+ [ruby-dev:36354]
+
+Thu Sep 18 18:23:23 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode.c (enc_arg): must take pointer argument to avoid GC
+ problem. StringValueCStr modifies the argument and it should be
+ preserved while the string StringValueCStr returns is used.
+ Since the string is used by caller, the modified argument should be
+ hold by caller. Actually
+ GC.stress = true
+ def (o=Object.new).to_str()
+ "universal"+"_newline"
+ end
+ "\u3042".encode(o, "")
+ causes curious warning:
+ rb_define_const: invalid name `' for constant
+
+Thu Sep 18 17:32:44 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * transcode.c: add "Error" suffix for Encoding exception classes.
+ a patch from Tadashi Saito <shiba at mail2.accsnet.ne.jp> in
+ [ruby-dev:36346].
+
+ * encoding.c (Init_Encoding): rename EncodingCompatibilityError to
+ Encoding::CompatibilityError. [ruby-dev:36366]
+
+Thu Sep 18 17:18:35 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * transcode.c (enc_arg): revert last change. too early exception
+ raising.
+
+ * transcode.c (enc_arg): need not to take pointer argument.
+
+Sun Sep 18 02:22:15 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * test/bigdecimal/test_bigdecimal.rb: add tests to achieve over 90%
+ test coverage of bigdecimal.
+
+Wed Sep 17 21:50:14 2008 Tanaka Akira <akr@fsij.org>
+
+ * string.c (rb_str_casecmp): don't use rb_enc_codepoint.
+
+Wed Sep 17 19:55:33 2008 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * complex.c (nucomp_s_convert): accepts complex
+ value (Complex(a,b) as a+bi).
+
+Wed Sep 17 19:16:47 2008 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
+
+ * test/ruby/test_io.rb (TestIO#test_dup): avoid infinite loop.
+ [ruby-dev:36326]
+
+ * test/ruby/test_io.rb (TestIO#test_dup): remove needless open.
+ [ruby-dev:35957]
+
+Wed Sep 17 17:44:59 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * io.c (rb_io_extract_modeenc): process option mode: and perm: as
+ well.
+
+ * io.c (open_key_args): move mode: and perm: related code to
+ rb_io_extract_modeenc().
+
+Wed Sep 17 13:42:59 2008 Takeyuki Fujioka <xibbar@ruby-lang.org>
+
+ * lib/cgi/html.rb (checkbox_group,radio_group): bug fix
+ use size instead of bytesize.
+
+ * test/cgi/test_cgi_tag_helper.rb: test for checkbox_group,radio_group.
+
+Wed Sep 17 06:58:31 2008 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * numeric.c: provides predicate real? instead of scalar?.
+
+ * complex.c: follows the above change.
+
+ * lib/cmath.rb: ditto.
+
+Wed Sep 17 01:56:27 2008 Tanaka Akira <akr@fsij.org>
+
+ * test/ruby/test_io_m17n.rb: use __FILE__ instead of /dev/null.
+ [ruby-dev:36327]
+
+Wed Sep 17 01:33:11 2008 Tanaka Akira <akr@fsij.org>
+
+ * include/ruby/oniguruma.h (OnigEncodingTypeST): add precise_ret
+ argument for mbc_to_code.
+ (ONIGENC_MBC_TO_CODE): provide NULL for precise_ret.
+ (ONIGENC_MBC_PRECISE_CODEPOINT): defined.
+
+ * include/ruby/encoding.h (rb_enc_mbc_precise_codepoint): defined.
+
+ * regenc.h (onigenc_single_byte_mbc_to_code): precise_ret argument
+ added.
+ (onigenc_mbn_mbc_to_code): ditto.
+
+ * regenc.c (onigenc_single_byte_mbc_to_code): precise_ret argument
+ added.
+ (onigenc_mbn_mbc_to_code): ditto.
+
+ * string.c (count_utf8_lead_bytes_with_word): removed.
+ (str_utf8_nth): removed.
+ (str_utf8_offset): removed.
+ (str_strlen): UTF-8 codepoint oriented optimization removed.
+ (rb_str_substr): ditto.
+ (enc_succ_char): use rb_enc_mbc_precise_codepoint.
+ (enc_pred_char): ditto.
+ (rb_str_succ): ditto.
+
+ * encoding.c (rb_enc_ascget): check length with
+ rb_enc_mbc_precise_codepoint.
+ (rb_enc_codepoint): use rb_enc_mbc_precise_codepoint.
+
+ * regexec.c (string_cmp_ic): add text_end argument.
+ (match_at): check end of character after exact string matches.
+
+ * enc/utf_8.c (grapheme_table): defined for extended grapheme cluster
+ boundary.
+ (grapheme_cmp): defined.
+ (get_grapheme_properties): defined.
+ (grapheme_boundary_p): defined.
+ (MAX_BYTES_LENGTH): defined.
+ (comb_char_enc_len): defined.
+ (mbc_to_code0): extracted from mbc_to_code.
+ (mbc_to_code): use mbc_to_code0.
+ (left_adjust_combchar_head): defined.
+ (utf_8): use a extended grapheme cluster as a unit.
+
+ * enc/unicode.c (onigenc_unicode_mbc_case_fold): use
+ ONIGENC_MBC_PRECISE_CODEPOINT to extract codepoints.
+ (onigenc_unicode_get_case_fold_codes_by_str): ditto.
+
+ * enc/euc_jp.c (mbc_to_code): follow mbc_to_code field change.
+ use onigenc_mbn_mbc_to_code.
+
+ * enc/shift_jis.c (mbc_to_code): ditto.
+
+ * enc/emacs_mule.c (mbc_to_code): ditto.
+
+ * enc/gbk.c (gbk_mbc_to_code): follow mbc_to_code field and
+ onigenc_mbn_mbc_to_code change.
+
+ * enc/cp949.c (cp949_mbc_to_code): ditto.
+
+ * enc/big5.c (big5_mbc_to_code): ditto.
+
+ * enc/euc_tw.c (euctw_mbc_to_code): ditto.
+
+ * enc/euc_kr.c (euckr_mbc_to_code): ditto.
+
+ * enc/gb18030.c (gb18030_mbc_to_code): ditto.
+
+ * enc/utf_32be.c (utf32be_mbc_to_code): follow mbc_to_code field
+ change.
+
+ * enc/utf_16be.c (utf16be_mbc_to_code): ditto.
+
+ * enc/utf_32le.c (utf32le_mbc_to_code): ditto.
+
+ * enc/utf_16le.c (utf16le_mbc_to_code): ditto.
+
+Wed Sep 17 01:17:12 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * transcode.c (enc_arg): raise exception when unknown encoding is
+ given.
+
+Tue Sep 16 22:23:24 2008 Takeyuki Fujioka <xibbar@ruby-lang.org>
+
+ * lib/cgi/core.rb (CGI#header): performance improvement.
+ From CGIAlt http://cgialt.rubyforge.org/
+
+ * test/cgi/test_cgi_header.rb: exception class fixed.
+
+Tue Sep 16 22:21:33 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * string.c (rb_str_concat): fix rdoc. (codepoint is integer)
+
+ * string.c (rb_str_each_codepoint): use UINT2NUM.
+
+Tue Sep 16 21:48:55 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * re.c (rb_reg_desc): Regexp#inspect should be US-ASCII.
+
+Tue Sep 16 21:33:22 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * string.c (rb_str_crypt): orthodox crypt() sees only first two bytes
+ of salt.
+
+Tue Sep 16 19:18:40 2008 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * complex.c (nucomp_marshal_{dump,load}): preserve instance
+ variables.
+
+ * rational.c (nurat_marshal_{dump,load}): ditto.
+
+Tue Sep 16 18:28:52 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * io.c (rb_io_gets_m): rdoc updated. limit counts in bytes.
+ [ruby-core:18617]
+
+ * io.c (rb_io_readlines, rb_f_gets): ditto.
+
+ * io.c (rb_io_readbyte): rdoc updated. [ruby-core:18617]
+
+Tue Sep 16 11:55:16 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (rb_str_each_codepoint): add new methods, #codepoints
+ and #each_codepoint. a patch from Michael Selig
+ <michael.selig at fs.com.au> in [ruby-core:18532].
+
+Tue Sep 16 11:24:44 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ext/socket/mkconstants.rb: add new constants. a patch from
+ IWAMURO Motonori <deenheart+ruby at gmail.com> in [ruby-dev:36309].
+
+Tue Sep 16 09:20:42 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * test/ruby/test_io.rb (TestIO#test_dup): exception should be
+ raised from IO#dup.
+
+Tue Sep 16 08:35:29 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * test/ruby/test_io.rb (TestIO#test_dup): this test might fail if
+ there are any garbage IO objects.
+
+Tue Sep 16 02:02:56 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * string.c (rb_str_buf_cat_ascii): codepoint is unsigned int.
+
+ * string.c (rb_str_concat): ditto.
+
+ * string.c (str_cat_char): ditto.
+
+ * string.c (prefix_escape): ditto.
+
+Tue Sep 16 01:47:07 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (single_byte_optimizable): make function inline. based
+ on a patch from Michael Selig <michael.selig at fs.com.au> in
+ [ruby-core:18532].
+
+ * string.c (str_modify_keep_cr): new function act as
+ rb_str_modify(), but don't clear coderange
+
+ * string.c (rb_str_casecmp): specialized for single byte strings.
+
+ * string.c (rb_str_splice): preserve coderange.
+
+ * string.c (rb_str_slice_bang, rb_str_reverse_bang,
+ rb_str_upcase_bang, rb_str_downcase_bang, tr_trans,
+ rb_str_capitalize_bang, rb_str_swapcase_bang,
+ rb_str_delete_bang, rb_str_chop_bang, rb_str_chomp_bang,
+ rb_str_lstrip_bang, rb_str_rstrip_bang): ditto.
+
+ * string.c (rb_str_clear): preset coderange.
+
+ * string.c (rb_str_split_m): specialized for splitting with a
+ string.
+
+Tue Sep 16 00:57:56 2008 Tanaka Akira <akr@fsij.org>
+
+ * re.c (rb_reg_quote): use rb_enc_mbcput to generate ASCII
+ incompatible characters properly.
+
+Tue Sep 16 00:51:59 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * encoding.c (Encoding#base_encoding): removed. [ruby-dev:36270]
+
+Tue Sep 16 00:40:56 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode_data.h (STR1_LENGTH): defined.
+ (makeSTR1LEN): defined.
+
+ * tool/transcode-tblgen.rb: use makeSTR1LEN. generate STR1 for 4 to
+ 259 bytes.
+
+ * transcode.c (rb_transcoding): new field: output_index.
+ (transcode_restartable0): use STR1_LENGTH.
+
+Mon Sep 15 23:52:45 2008 Koichi Sasada <ko1@atdot.net>
+
+ * gc.c, include/ruby/ruby.h: rename rb_register_mark_object()
+ to rb_gc_register_mark_object().
+
+ * eval.c, vm.c: initialize vm->mark_object_ary at
+ Init_top_self().
+
+ * bignum.c, complex.c, encoding.c, ext/win32ole/win32ole.c,
+ io.c, load.c, marshal.c, rational.c, ruby.c, vm.c:
+ use rb_gc_register_mark_object() instead of
+ rb_global_variable() or rb_gc_register_address().
+
+Mon Sep 15 23:37:15 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode.c (econv_opts): don't use to_sym.
+
+Mon Sep 15 23:28:28 2008 Tanaka Akira <akr@fsij.org>
+
+ * encoding.c (rb_enc_get_index): don't return -1.
+
+ * io.c (rb_scan_open_args): call FilePathValue before encoding
+ conversion.
+
+Mon Sep 15 22:11:07 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (rb_str_squeeze_bang): specialized for 7bit characters in
+ ASCII compatible strings.
+
+ * string.c (rb_str_count): ditto.
+
+ * string.c (tr_trans): preserve 7bit/valid coderange flag.
+
+ * string.c (rb_str_squeeze_bang): preserve previous coderange value.
+
+ * string.c (rb_str_lstrip_bang): ditto.
+
+ * string.c (rb_str_rstrip_bang): ditto.
+
+ * encoding.c (rb_default_external_encoding): preserve
+ default_external_encoding in a static variable.
+
+ * string.c (single_byte_optimizable): check coderange first, to
+ reduce number of calling rb_enc_from_index().
+
+Mon Sep 15 20:57:00 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * lib/matrix.rb (Matrix#eql?): fixed [ruby-dev:36298].
+ Reported by an anonymous user.
+
+ * lib/matrix.rb (Vector#eql?): ditto.
+
+ * (Matrix#compare_by_row_vectors): takes comparison
+ strategy as an optional parameter.
+
+ * (Vector#compare_by): ditto.
+
+Mon Sep 15 14:34:32 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * encoding.c (RUBY_MAX_CHAR_LEN): defined.
+
+ * encoding.c (str_cat_char): use RUBY_MAX_CHAR_LEN.
+
+Mon Sep 15 13:53:33 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * encoding.c (rb_enc_compatible): accept other than strings and
+ regexps. [ruby-core:18595]
+
+ * encoding.c (rb_enc_get_index): works files and encodings.
+
+Mon Sep 15 13:17:21 2008 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * complex.c (nucomp_eql_p): new.
+
+ * complex.c (nucomp_hash): should use hash values of the elements.
+
+ * rational.c (nurat_hash): ditto.
+
+ * hash.c (rb_any_cmp): removed an unused variable.
+
+Mon Sep 15 11:11:04 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode_data.h (rb_transcoder): resetsize_func and resetstate_func
+ also returns ssize_t.
+
+ * enc/trans/iso2022.trans: follow the type change.
+
+Mon Sep 15 10:28:10 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * test/matrix/test_matrix.rb (setup): typo.
+ (test_equality): misdefinition of the expected working.
+ Reported by an anonymous user.
+ (test_hash): added.
+
+ * test/matrix/test_vector.rb: ditto.
+
+Mon Sep 15 03:33:10 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode_data.h: return output functions ssize_t.
+
+ * transcode.c (transcode_restartable0): don't need to cast the result
+ of output functions.
+
+ * enc/trans/newline.trans: follow the type change.
+
+ * enc/trans/escape.trans: ditto.
+
+ * enc/trans/utf_16_32.trans: ditto.
+
+ * enc/trans/iso2022.trans: ditto.
+
+ * enc/trans/japanese.trans: ditto.
+
+Mon Sep 15 03:04:29 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode_data.h: output function takes output buffer size.
+
+ * transcode.c: give output buffer size for output functions.
+
+ * enc/trans/newline.trans: follow the type change.
+
+ * enc/trans/escape.trans: ditto.
+
+ * enc/trans/utf_16_32.trans: ditto.
+
+ * enc/trans/iso2022.trans: ditto.
+
+ * enc/trans/japanese.trans: ditto.
+
+Mon Sep 15 02:37:19 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * transcode.c (str_encode): returns duplicated string if nothing
+ changed. [ruby-core:18578]
+
+Sun Sep 14 22:09:01 2008 Takeyuki Fujioka <xibbar@ruby-lang.org>
+
+ * lib/cgi/core.rb (CGI::parse): performance improvement
+
+Sun Sep 14 18:33:32 2008 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * complex.c: trivial changes.
+
+Sun Sep 14 16:15:22 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * lib/matrix.rb (Vector#eql?): typo of the method name as "eqn?".
+ (Vector#eqn?): removed. Defined by mistake.
+ Fixes [ruby-dev:36294]. Reported by weda <weda AT
+ issp.u-tokyo.ac.jp> and an anonymous user.
+
+ * test/matrix/test_matrix.rb: added.
+
+ * test/matrix/test_vector.rb: added.
+
+Sun Sep 14 16:07:04 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ruby.c (process_options): associates the locale encoding with $0 as
+ well as ARGV.
+
+Sun Sep 14 13:48:03 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * object.c (Init_Object): added metameta-class initialization for
+ BasicObject, Object, and Module.
+ The metameta-classes of them are now the metaclass of Class, as the
+ metameta-class of Class is.
+
+ * object.c (boot_defmetametaclass): added.
+
+Sun Sep 14 10:10:43 2008 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * complex.c (f_{add,mul,sub}): omitted some shortcuts for preserving
+ signed zero anyway.
+
+ * complex.c (nucomp_negate): new.
+
+Sun Sep 14 04:15:16 2008 Tanaka Akira <akr@fsij.org>
+
+ * include/ruby/oniguruma.h (OnigEncodingTypeST): add end argument for
+ left_adjust_char_head.
+ (ONIGENC_LEFT_ADJUST_CHAR_HEAD): add end argument.
+ (onigenc_get_left_adjust_char_head): ditto.
+
+ * include/ruby/encoding.h (rb_enc_left_char_head): add end argument.
+
+ * regenc.h (onigenc_single_byte_left_adjust_char_head): ditto.
+
+ * regenc.c (onigenc_get_right_adjust_char_head): follow the interface
+ change.
+ (onigenc_get_right_adjust_char_head_with_prev): ditto.
+ (onigenc_get_prev_char_head): ditto.
+ (onigenc_step_back): ditto.
+ (onigenc_get_left_adjust_char_head): ditto.
+ (onigenc_single_byte_code_to_mbc): ditto.
+
+ * re.c: ditto.
+
+ * string.c: ditto.
+
+ * io.c: ditto.
+
+ * regexec.c: ditto.
+
+ * enc/euc_jp.c: ditto.
+
+ * enc/cp949.c: ditto.
+
+ * enc/shift_jis.c: ditto.
+
+ * enc/gbk.c: ditto.
+
+ * enc/big5.c: ditto.
+
+ * enc/euc_tw.c: ditto.
+
+ * enc/euc_kr.c: ditto.
+
+ * enc/emacs_mule.c: ditto.
+
+ * enc/gb18030.c: ditto.
+
+ * enc/utf_8.c: ditto.
+
+ * enc/utf_16le.c: ditto.
+
+ * enc/utf_16be.c: ditto.
+
+ * enc/utf_32le.c: ditto.
+
+ * enc/utf_32be.c: ditto.
+
+Sun Sep 14 03:43:27 2008 Tanaka Akira <akr@fsij.org>
+
+ * include/ruby/oniguruma.h (ONIGENC_STEP_BACK): add end argument.
+ (onigenc_step_back): ditto.
+
+ * regenc.c (onigenc_step_back): add end argument.
+
+ * regexec.c: follow the interface change.
+
+Sun Sep 14 03:20:03 2008 Tanaka Akira <akr@fsij.org>
+
+ * include/ruby/oniguruma.h (onigenc_get_prev_char_head): add end
+ argument.
+
+ * include/ruby/encoding.h (rb_enc_prev_char): ditto.
+
+ * regenc.c (onigenc_get_prev_char_head): add end argument.
+
+ * regparse.c: follow the interface change.
+
+ * regexec.c: ditto.
+
+ * string.c: ditto.
+
+ * parse.y: ditto.
+
+Sun Sep 14 02:04:28 2008 Tanaka Akira <akr@fsij.org>
+
+ * include/ruby/oniguruma.h
+ (onigenc_get_right_adjust_char_head_with_prev): add end argument.
+
+ * regenc.c (onigenc_get_right_adjust_char_head_with_prev): use end
+ argument.
+
+ * regexec.c (forward_search_range): follow the interface change.
+
+Sun Sep 14 01:38:26 2008 Tanaka Akira <akr@fsij.org>
+
+ * include/ruby/oniguruma.h (onigenc_get_right_adjust_char_head): add
+ end argument.
+
+ * include/ruby/encoding.h (rb_enc_right_char_head): add end argument.
+
+ * regenc.c (onigenc_get_right_adjust_char_head): use end argument.
+
+ * re.c (rb_reg_adjust_startpos): follow the interface change.
+
+ * string.c (rb_str_index): ditto.
+
+ * regexec.c (backward_search_range): ditto.
+ (onig_search): ditto.
+
+Sun Sep 14 00:43:28 2008 Tanaka Akira <akr@fsij.org>
+
+ * ext/ripper/depend (ripper.o): it depends on ruby headers.
+
+Sat Sep 13 19:27:01 2008 Tanaka Akira <akr@fsij.org>
+
+ * io.c (io_encoding_set): don't need argc argument.
+ (rb_io_s_pipe): update io_encoding_set call.
+ (rb_io_set_encoding): ditto.
+
+Sat Sep 13 18:46:41 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode.c (rb_transcoding): align state field.
+
+Sat Sep 13 18:21:09 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode.c (DECORATOR_P): renamed from SUPPLEMENTAL_CONVERSION.
+
+Sat Sep 13 18:05:37 2008 Tanaka Akira <akr@fsij.org>
+
+ * io.c (make_writeconv): use rb_enc_name.
+ (make_readconv): ditto.
+
+ * transcode.c (rb_econv_open_opts): ditto.
+ (econv_args): ditto.
+ (decorate_convpath): ditto.
+ (econv_set_replacement): ditto.
+
+Sat Sep 13 11:15:38 2008 Shugo Maeda <shugo@ruby-lang.org>
+
+ * lib/rexml/document.rb: fixed typo.
+
+Sat Sep 13 10:53:13 2008 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * complex.c: refined.
+
+ * rational.c: ditto.
+
+Sat Sep 13 03:44:52 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode.c (rb_econv_prepare_opts): raise ArgumentError if
+ a broken string is specified as a replacement.
+
+Sat Sep 13 03:31:05 2008 Tanaka Akira <akr@fsij.org>
+
+ * iseq.c (iseq_s_compile_file): use rb_file_open_str.
+
+ * io.c (rb_file_open_generic): call validate_enc_binmode.
+ (rb_file_open_str): call FilePathValue.
+
+Sat Sep 13 02:58:05 2008 Tanaka Akira <akr@fsij.org>
+
+ * io.c (validate_enc_binmode): extracted from rb_io_extract_modeenc.
+ (rb_io_extract_modeenc): use validate_enc_binmode.
+ (io_encoding_set): call validate_enc_binmode.
+
+Sat Sep 13 02:50:34 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode.c (rb_econv_prepare_opts): initialize *opt and return 0
+ if opthash is nil.
+
+Sat Sep 13 02:29:19 2008 Tanaka Akira <akr@fsij.org>
+
+ * enc/trans/escape.trans: transcoder name renamed to use underscore.
+
+ * transcode.c: follow the renaming.
+
+Sat Sep 13 02:12:17 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode.c (rb_econv_init_by_convpath_i): new function.
+ (rb_econv_init_by_convpath): new function.
+ (econv_init): use rb_econv_init_by_convpath.
+
+Sat Sep 13 01:11:14 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode.c (econv_args): take snamev_p and dnamev_p to prevent
+ possible GC problem.
+
+Sat Sep 13 00:38:54 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode.c (enc_arg): take arg as VALUE * to prevent possible GC
+ problem.
+
+Fri Sep 12 23:19:41 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode.c (rb_econv_add_transcoder_at): fix loop condition.
+
+Fri Sep 12 22:39:46 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode.c (decorator_names): extracted from rb_econv_open.
+ (rb_econv_open): use decorator_names.
+ (econv_args): extracted from econv_init.
+ (econv_init): use econv_args.
+ (decorate_convpath): new function.
+ (search_convpath_i): new function.
+ (econv_s_search_convpath): new method.
+ (Init_transcode): new method defined.
+
+Fri Sep 12 21:55:43 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode.c (rb_econv_t): new field: num_allocated.
+ (rb_econv_alloc): extracted from
+ rb_econv_open_by_transcoder_entries.
+ (rb_econv_add_transcoder_at): extracted from rb_econv_decorate_at
+ and generalized
+ (rb_econv_open_by_transcoder_entries): use rb_econv_alloc and
+ rb_econv_add_transcoder_at.
+ (rb_econv_add_converter): extracted from rb_econv_decorate_at.
+ (rb_econv_decorate_at): use rb_econv_add_converter.
+
+Fri Sep 12 21:22:09 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode.c (rb_econv_t): new field: started.
+ (rb_econv_open_by_transcoder_entries): initialize started field.
+ (rb_econv_convert): set started field.
+ (rb_econv_insert_output): ditto.
+ (rb_econv_decorate_at): check started field instead of num_finished.
+
+Fri Sep 12 20:28:59 2008 Tanaka Akira <akr@fsij.org>
+
+ * regenc.c (onigenc_single_byte_code_to_mbc): follow OnigEncoding
+ change.
+
+Fri Sep 12 20:00:22 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * regparse.c (parse_exp): fix resource leak.
+
+Fri Sep 12 01:21:22 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * ext/syck/node.c (syck_replace_str2): fix wrong check to free ptr.
+
+Thu Sep 11 20:18:24 2008 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+
+ * test/win32ole/test_err_in_callback.rb (teardown): get rid
+ of infinite loop.
+
+Thu Sep 11 19:12:56 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * include/ruby/oniguruma.h (OnigCodePoint): unsigned long to unsigned int.
+
+ * include/ruby/encoding.h (rb_enc_codepoint): ditto.
+
+ * encoding.c (rb_enc_codepoint): signed int to unsigned int.
+
+ * encoding.c (rb_enc_ascget): ditto.
+
+ * string.c (rb_str_casecmp): ditto.
+
+ * string.c (enc_succ_alnum_char): ditto.
+
+ * string.c (rb_str_inspect): ditto.
+
+ * string.c (rb_str_upcase_bang): ditto.
+
+ * string.c (rb_str_downcase_bang): ditto.
+
+ * string.c (rb_str_capitalize_bang): ditto.
+
+ * string.c (rb_str_swapcase_bang): ditto.
+
+ * string.c (struct tr): ditto.
+
+ * string.c (trnext): ditto.
+
+ * string.c (tr_trans): ditto.
+
+ * string.c (tr_setup_table): ditto.
+
+ * string.c (tr_find): ditto.
+
+ * string.c (rb_str_delete_bang): ditto.
+
+ * string.c (rb_str_squeeze_bang): ditto.
+
+ * string.c (rb_str_count): ditto.
+
+ * string.c (rb_str_split_m): ditto.
+
+ * string.c (rb_str_each_line): ditto.
+
+ * string.c (rb_str_lstrip_bang): ditto.
+
+ * string.c (rb_str_rstrip_bang): ditto.
+
+ * string.c (rb_str_intern): ditto.
+
+ * dir.c (char_casecmp): ditto.
+
+ * sprintf.c (rb_str_format): ditto.
+
+ * enc/emacs_mule.c (mbc_to_code): to be 32bit clean.
+
+ * enc/emacs_mule.c (code_to_mbc): ditto.
+
+ * enc/gb18030.c (mbc_to_code): ditto.
+
+ * enc/gb18030.c (code_to_mbc): ditto.
+
+Thu Sep 11 19:09:25 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * ext/iconv/iconv.c: add attention for machine independent.
+
+Thu Sep 11 15:23:26 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * bignum.c (bigdivrem): adjust length for division and remainder.
+ a patch from TOYOFUKU Chikanobu <nobu_toyofuku at nifty.com> in
+ [ruby-dev:36231].
+
+Thu Sep 11 02:59:47 2008 Tanaka Akira <akr@fsij.org>
+
+ * io.c (io_binwrite): extracted from io_fwrite.
+
+Thu Sep 11 02:25:34 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode.c (make_encoding): new function.
+ (make_encobj): new function.
+ (econv_s_asciicompat_encoding): use make_encoding.
+ (rb_econv_open_exc): use SUPPLEMENTAL_CONVERSION.
+ (econv_convpath): use encoding object in the result.
+
+Thu Sep 11 02:14:38 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode.c (econv_convpath): new method.
+
+Wed Sep 10 23:00:43 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * tool/compile_prelude.rb: print "<internal:prelude>" instead of
+ "prelude.rb" on stack trace. [ruby-dev:36129]
+
+Wed Sep 10 21:19:58 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * bignum.c (big2str_karatsuba): remove unnecessary fixnum code. a
+ patch from TOYOFUKU Chikanobu <nobu_toyofuku at nifty.com> in
+ [ruby-dev:36217].
+
+Wed Sep 10 21:09:32 2008 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+
+ * test/win32ole/test_err_in_callback.rb: InternetExplorer should
+ be closed.
+
+ * test/win32ole/err_in_callback.rb: ditto.
+
+Wed Sep 10 18:25:19 2008 akira yamada <akira@rice.p.arika.org>
+
+ * lib/uri/common.rb (URI::Parser): new class.
+
+ * lib/uri/mailto.rb, lib/uri/generic.rb: follow the above change.
+
+ * test/uri/test_parser.rb: added tests for URI::Parser.
+
+Wed Sep 10 10:35:32 2008 Takeyuki Fujioka <xibbar@ruby-lang.org>
+
+ * lib/cgi/cookie.rb (CGI::Cookie#to_s): performance improvement
+ from http://jp.rubyist.net/magazine/?0023-Cgirb.
+
+Wed Sep 10 10:12:29 2008 akira yamada <akira@arika.org>
+
+ * lib/sync.rb (Sync_m#sync_exclusive): fixed
+ typo. [ruby-dev:36233] [RubyForge#11680]
+
+Wed Sep 10 01:57:23 2008 Tanaka Akira <akr@fsij.org>
+
+ * tool/transcode-tblgen.rb (StrSet#hash): cache hash value.
+ (ActionMap#hash): ditto.
+
+Wed Sep 10 01:26:01 2008 Tanaka Akira <akr@fsij.org>
+
+ * include/ruby/encoding.h (econv_after_output): renamed from
+ econv_output_followed_by_input.
+ (ECONV_AFTER_OUTPUT): renamed from ECONV_OUTPUT_FOLLOWED_BY_INPUT.
+
+ * transcode.c: follow the renaming.
+
+ * io.c: ditto.
+
+Wed Sep 10 01:16:07 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode.c (get_replacement_character): don't return ASCII
+ incompatible replacements.
+ (make_replacement): don't convert the result of
+ get_replacement_character.
+
+Wed Sep 10 01:05:00 2008 Tanaka Akira <akr@fsij.org>
+
+ * enc/trans/newline.trans (rb_universal_newline): swap src_encoding
+ and dst_encoding.
+
+ * transcode.c (rb_econv_decorate_at): call get_transcoder_entry only
+ once.
+ (rb_econv_binmode): follow universal_newline change.
+
+Wed Sep 10 00:01:36 2008 Tanaka Akira <akr@fsij.org>
+
+ * include/ruby/io.h (rb_io_t): rename field: writeconv_stateless to
+ writeconv_asciicompat.
+
+ * io.c: follow the renaming.
+
+ * gc.c: ditto.
+
+Tue Sep 9 23:55:26 2008 Tanaka Akira <akr@fsij.org>
+
+ * io.c (io_fwrite): raise an error if ASCII incompatible string
+ written for text mode IO without encoding conversion.
+ (rb_io_extract_modeenc): binmode requirement changed.
+
+Tue Sep 9 21:59:48 2008 Takeyuki Fujioka <xibbar@ruby-lang.org>
+
+ * lib/cgi*: split cgi.rb into four files. [ruby-dev:36041]
+
+Tue Sep 9 21:17:00 2008 Tanaka Akira <akr@fsij.org>
+
+ * include/ruby/encoding.h (ECONV_DECORATOR_MASK): merge
+ ECONV_ENCODER_MASK and ECONV_DECORATOR_MASK.
+ (ECONV_UNIVERSAL_NEWLINE_DECORATOR): renamed from
+ ECONV_UNIVERSAL_NEWLINE_DECODER.
+ (ECONV_CRLF_NEWLINE_DECORATOR): renamed from
+ ECONV_CRLF_NEWLINE_ENCODER.
+ (ECONV_CR_NEWLINE_DECORATOR): renamed from ECONV_CR_NEWLINE_ENCODER.
+ (ECONV_XML_TEXT_DECORATOR): renamed from ECONV_XML_TEXT_ENCODER.
+ (ECONV_XML_ATTR_CONTENT_DECORATOR): renamed from
+ ECONV_XML_ATTR_CONTENT_ENCODER.
+ (ECONV_STATEFUL_DECORATOR_MASK): renamed from
+ ECONV_STATEFUL_ENCODER_MASK.
+ (ECONV_XML_ATTR_QUOTE_DECORATOR): renamed from
+ ECONV_XML_ATTR_CONTENT_DECORATOR.
+
+ * io.c: follow the renaming.
+
+ * transcode.c: ditto.
+
+Tue Sep 9 20:55:55 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode.c (rb_econv_open0): make it static.
+ (rb_econv_open): place decorators at last.
+
+Tue Sep 9 20:40:15 2008 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
+
+ * test/openssl/test_ssl.rb (OpenSSL#test_client_session):
+ Debian's openssl 0.9.8g-13 failed at assert(ssl.session_reused?),
+ when use default SSLContext. [ruby-dev:36167]
+
+Tue Sep 9 20:34:26 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode.c (rb_econv_t): last_trans_index removed.
+ (rb_econv_open_by_transcoder_entries): follow the type change.
+ (rb_econv_open0): ditto.
+ (rb_econv_decorate_at): ditto.
+ (rb_econv_binmode): ditto.
+ (rb_econv_insert_output): simplified because there are no decorators
+ at last.
+
+Tue Sep 9 20:21:54 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode.c (rb_econv_open): reverse the order of decoders.
+
+Tue Sep 9 20:18:26 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode.c (rb_econv_open0): num_encoders and num_decoders removed.
+
+Tue Sep 9 03:59:13 2008 Tanaka Akira <akr@fsij.org>
+
+ * io.c (make_writeconv): useless branch removed.
+
+Tue Sep 9 02:18:20 2008 Tanaka Akira <akr@fsij.org>
+
+ * include/ruby/encoding.h (rb_econv_decorate_at_first): declared.
+ (rb_econv_decorate_at_last): declared.
+
+ * transcode.c (rb_econv_open_by_transcoder_entries): initialize
+ replacement_enc. allocate outbuf for the last transcoder.
+ (rb_econv_open0): extracted from rb_econv_open.
+ (rb_econv_open): use rb_econv_open0 and decorate the result using
+ rb_econv_decorate_at_first and rb_econv_decorate_at_last.
+ (rb_econv_decorate_at): new function.
+ (rb_econv_decorate_at_first): ditto.
+ (rb_econv_decorate_at_last): ditto.
+ (rb_econv_binmode): fix iteration end condition.
+ (econv_init): don't set source_encoding_name and
+ destination_encoding_name because they are set in rb_econv_open0.
+
+Tue Sep 9 01:10:54 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode.c (rb_econv_open): make ec a local variable.
+
+Tue Sep 9 00:20:10 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode.c (rb_econv_asciicompat_encoding): check decoder.
+
+Tue Sep 9 00:00:47 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode.c (rb_econv_t): last_error.partial_input removed.
+
+Mon Sep 8 23:24:54 2008 Tanaka Akira <akr@fsij.org>
+
+ * include/ruby/encoding.h (rb_econv_asciicompat_encoding): renamed
+ from rb_econv_stateless_encoding to apply stateless ASCII
+ incompatible encodings such as UTF-16BE.
+
+ * io.c (make_writeconv): use rb_econv_asciicompat_encoding.
+
+ * transcode_data.h (rb_transcoder_asciicompat_type_t): renamed from
+ rb_transcoder_stateful_type_t.
+ (rb_transcoder): use rb_transcoder_asciicompat_type_t.
+
+ * transcode.c: follow the type change.
+ (asciicompat_encoding_i): renamed from stateless_encoding_i.
+ (rb_econv_asciicompat_encoding): renamed from
+ rb_econv_stateless_encoding.
+ (econv_s_asciicompat_encoding): method renamed.
+
+ * tool/transcode-tblgen.rb: follow the type change.
+
+ * enc/trans/utf_16_32.trans: follow the type change.
+ rb_from_UTF_16BE to UTF-8 is asciicompat_decoder.
+ rb_from_UTF_16LE to UTF-8 is asciicompat_decoder.
+ rb_from_UTF_32BE to UTF-8 is asciicompat_decoder.
+ rb_from_UTF_32LE to UTF-8 is asciicompat_decoder.
+ UTF-8 to rb_to_UTF_16BE is asciicompat_encoder.
+ UTF-8 to rb_to_UTF_16LE is asciicompat_encoder.
+ UTF-8 to rb_to_UTF_32BE is asciicompat_encoder.
+ UTF-8 to rb_to_UTF_32LE is asciicompat_encoder.
+
+ * enc/trans/newline.trans: follow the type change. universal newline
+ decoder is asciicompat_converter.
+
+ * enc/trans/escape.trans: follow the type change.
+
+ * enc/trans/iso2022.trans: ditto.
+
+ * enc/trans/japanese.trans: ditto.
+
+Mon Sep 8 23:05:42 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode.c (rb_econv_insert_output): "readagain" part should be
+ after replacement.
+
+Mon Sep 8 22:30:03 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * dir.c (dir_initialize): rename option name of Dir.open
+ from :external_encoding to :encoding.
+
+Mon Sep 8 22:16:20 2008 Takeyuki FUJIOKA <xibbar@ruby-lang.org>
+
+ * lib/cgi.rb : obsolete regex "n" option. [ruby-dev:36130]
+
+Mon Sep 8 18:13:20 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/win32.c (getppid): typo. [ruby-dev:36202]
+
+ * process.c (get_ppid): mention the return value on Windows.
+
+Mon Sep 8 18:15:59 2008 Tanaka Akira <akr@fsij.org>
+
+ * tool/transcode-tblgen.rb (ArrayCode): less string substitutions.
+
+Mon Sep 8 18:13:13 2008 Tanaka Akira <akr@fsij.org>
+
+ * vm.c (rb_mRubyVMFrozenCore): registered for GC.
+
+ * re.c (rb_reg_preprocess_dregexp): fix GC problem on MacOS X with
+ powerpc-apple-darwin8-gcc-4.0.1 (GCC) 4.0.1 (Apple Computer, Inc.
+ build 5367).
+
+Mon Sep 8 18:09:07 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/Makefile.sub (config.h): define SIZE_MAX for VC++6/7.
+
+Mon Sep 8 17:46:09 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/win32.c (filetime_to_unixtime): remove unused variable.
+ [ruby-dev:36191]
+
+Mon Sep 8 13:47:39 2008 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
+
+ * test/ruby/test_io.rb (TestIO#test_dup): add open in block.
+ see [ruby-dev:35957].
+
+Mon Sep 8 07:09:42 2008 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * complex.c: some adjustments.
+
+ * rational.c: ditto.
+
+Mon Sep 8 06:50:29 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (XLDFLAGS): added --enable-auto-import for cygwin and
+ mingw.
+
+Mon Sep 8 02:04:25 2008 Tanaka Akira <akr@fsij.org>
+
+ * include/ruby/encoding.h (rb_econv_set_replacement): renamed from
+ rb_econv_set_replacemenet.
+
+ * transcode.c: follow the renaming.
+
+Mon Sep 8 01:10:41 2008 Tanaka Akira <akr@fsij.org>
+
+ * tool/transcode-tblgen.rb (transcode_tblgen): log message refined.
+
+Mon Sep 8 00:58:04 2008 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * rational.c: removed unused code.
+
+Mon Sep 8 00:04:09 2008 Tanaka Akira <akr@fsij.org>
+
+ * enc/trans/iso2022.trans: upcase to iso-2022-jp.
+
+ * enc/emacs_mule.c: ditto.
+
+Sun Sep 7 23:46:36 2008 Tanaka Akira <akr@fsij.org>
+
+ * enc/trans/iso2022.trans: stateless-iso-2022-jp is defined to avoid
+ undefined conversion error between iso-2022-jp and the corresponding
+ stateless encoding.
+
+ * enc/emacs_mule.c: replicate emacs-mule as stateless-iso-2022-jp.
+
+Sun Sep 7 20:03:01 2008 Tanaka Akira <akr@fsij.org>
+
+ * enc/trans/escape.trans (hexstr): renamed from str1.
+
+Sun Sep 7 19:45:31 2008 Tanaka Akira <akr@fsij.org>
+
+ * enc/trans/escape.trans: use transcode_tblgen.
+
+ * tool/transcode-tblgen.rb: generate an empty line after str1.
+
+Sun Sep 7 19:16:38 2008 Tanaka Akira <akr@fsij.org>
+
+ * tool/transcode-tblgen.rb (ActionMap#str_name): new method to
+ generate a name base on string content.
+ (ActionMap#gen_str): extracted from generate_info and use str_name.
+
+Sun Sep 7 18:28:05 2008 Tanaka Akira <akr@fsij.org>
+
+ * tool/transcode-tblgen.rb (ActionMap#generate_info): use a memo to
+ avoid duplication for STR1.
+
+Sun Sep 7 18:10:28 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode_data.h (STR1): defined for a string up to 255 bytes.
+ (STR1_BYTEINDEX): defined.
+ (makeSTR1): defined.
+
+ * tool/transcode-tblgen.rb: generate STR1.
+
+ * transcode.c (transcode_restartable0): interpret STR1.
+
+ * enc/trans/escape.trans (fun_so_escape_xml_chref): removed. STR1 is
+ used instead.
+
+Sun Sep 7 17:54:45 2008 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
+
+ * configure.in: Mac OS X's crypt(2) is broken with invalid salt.
+ [ruby-dev:35899]
+ * string.c (rb_str_crypt): ditto.
+
+Sun Sep 7 17:29:49 2008 Tanaka Akira <akr@fsij.org>
+
+ * tool/transcode-tblgen.rb: o4 is usable only if the first byte is
+ f0-f7.
+
+Sun Sep 7 12:44:26 2008 Tanaka Akira <akr@fsij.org>
+
+ * io.c (make_writeconv): choose ASCII compatible encoding as
+ intermediate encoding if stateful encoder exists.
+
+Sun Sep 7 12:09:29 2008 Tanaka Akira <akr@fsij.org>
+
+ * include/ruby/encoding.h (ECONV_XML_ATTR_CONTENT_ENCODER): defined.
+ (ECONV_STATEFUL_ENCODER_MASK): defined.
+ (ECONV_XML_ATTR_QUOTE_ENCODER): defined.
+ (ECONV_XML_ATTR_ENCODER): removed.
+
+ * enc/trans/escape.trans (rb_escape_xml_attr_content): defined.
+ (rb_escape_xml_attr_quote): defined.
+ (rb_escape_xml_attr): removed.
+
+ * io.c (NEED_WRITECONV): writeconv is required if supplemental
+ converter is used.
+ (make_writeconv): apply stateful encoder in writeconv.
+
+ * transcode.c: follow the constant change.
+
+Sun Sep 7 07:24:09 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * misc/*.el: merged the following patches from Nathan Weizenbaum
+ <nex342 at gmail.com>. [ruby-core:18424]
+
+ * misc/ruby-mode.el: improve here-doc performance.
+
+ * misc/ruby-mode.el: don't crash the whole mode if the Subversion
+ $ keyword isn't interpolated.
+
+ * misc/ruby-mode.el: don't highlight keywords when they're the
+ beginning of non-keyword symbols.
+
+ * misc/ruby-mode.el, misc/ruby-electric.el: use regexp-opt where
+ possible for more efficient regexps.
+
+ * misc/*.el: untabify, for internal consistency and consistency
+ with standard Emacs elisp files.
+
+ * misc/ruby-mode.el: fix a variable-name error.
+
+ * misc/emacs-mode.el: don't set case-fold-search globally to nil;
+ instead just set it when we need it.
+
+Sun Sep 7 06:31:51 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * file.c (file_expand_path): applied a patch from Nobuhiro Tachino
+ in [ruby-dev:35948]. fix #491
+
+Sun Sep 7 03:37:05 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * parse.y (f_block_optarg): allow default for block parameters as
+ long as the value is primary. a patch from Eric Mahurin
+ <eric.mahurin at gmail.com> in [ruby-core:16880].
+
+Sun Sep 7 01:07:10 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * parse.y (yylex): "1.upto 2 {|i| p i }" should be syntax error.
+ [ruby-dev:36008]
+
+ * test/ruby/test_parse.rb (TestParse): update a test not to use
+ recently fixed inconsistent syntax.
+
+Sun Sep 7 00:37:25 2008 Tanaka Akira <akr@fsij.org>
+
+ * include/ruby/encoding.h (ECONV_ERROR_HANDLER_MASK): defined.
+ (ECONV_DECODER_MASK): defined.
+ (ECONV_ENCODER_MASK): defined.
+
+ * io.c (make_writeconv): restrict ecflags for writeconv with
+ ECONV_ERROR_HANDLER_MASK.
+
+Sat Sep 6 23:03:41 2008 Tanaka Akira <akr@fsij.org>
+
+ * include/ruby/encoding.h (ECONV_XML_TEXT_ENCODER): renamed from
+ ECONV_HTML_TEXT_ENCODER.
+ (ECONV_XML_ATTR_ENCODER): renamed from ECONV_HTML_ATTR_ENCODER.
+
+ * enc/trans/escape.trans: follow the renaming.
+
+ * transcode.c: ditto.
+
+Sat Sep 6 21:35:52 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ext/socket/mkconstants.rb: add some IPV6 constants. [ruby-dev:36175]
+
+Sat Sep 6 20:10:48 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode.c (econv_description): show ECONV_HTML_TEXT_ENCODER and
+ ECONV_HTML_ATTR_ENCODER.
+
+Sat Sep 6 20:06:09 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode.c (rb_econv_binmode): check actual transcoders.
+
+Sat Sep 6 19:54:25 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode.c (rb_econv_open): fix last_tc.
+
+Sat Sep 6 19:36:34 2008 Tanaka Akira <akr@fsij.org>
+
+ * io.c (rb_io_binmode): clear newline flags in writeconv_pre_ecflags.
+
+Sat Sep 6 18:47:40 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode.c (str_transcode0): check ECONV_HTML_TEXT_ENCODER and
+ ECONV_HTML_ATTR_ENCODER.
+
+Sat Sep 6 18:38:47 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode.c (allocate_converted_string): fix overflow condition.
+
+Sat Sep 6 15:06:21 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode.c (sym_html): new variable.
+ (sym_text): ditto.
+ (sym_attr): ditto.
+ (econv_opts): check :html=>:text and :html=>:attr.
+ (Init_transcode): initialize the above variables.
+
+Sat Sep 6 14:46:12 2008 Tanaka Akira <akr@fsij.org>
+
+ * include/ruby/encoding.h (ECONV_HTML_TEXT_ENCODER): new constant.
+ (ECONV_HTML_ATTR_ENCODER): ditto.
+
+ * transcode.c (rb_econv_open): check ECONV_HTML_TEXT_ENCODER and
+ ECONV_HTML_ATTR_ENCODER.
+ (Init_transcode): Encoding::Converter::HTML_TEXT_ENCODER and
+ Encoding::Converter::HTML_ATTR_ENCODER defined.
+
+Sat Sep 6 14:15:25 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode.c (struct trans_open_t): defined to pass num_additional.
+ (trans_open_i): use struct trans_open_t.
+ (rb_econv_open): ditto.
+
+Sat Sep 6 13:43:20 2008 Tanaka Akira <akr@fsij.org>
+
+ * enc/trans/escape.trans (fun_so_escape_html_attr): fix return type.
+
+Sat Sep 6 12:43:55 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode.c (rb_econv_open): needless branch removed.
+
+Sat Sep 6 12:38:34 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode.c (rb_econv_open): test condition simplified.
+
+Sat Sep 6 12:25:31 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode.c (stateless_encoding_i): ignore supplemental conversions.
+ Encoding::Converter.stateless_encoding("html-attr-escaped") should be
+ nil.
+
+Sat Sep 6 12:19:36 2008 Tanaka Akira <akr@fsij.org>
+
+ * enc/trans/escape.trans (escape_html_attr_init): new function.
+ (fun_so_escape_html_attr): new function.
+ (escape_html_attr_finish): new function.
+ (rb_escape_html_attr): use them to quote the converted result.
+
+Sat Sep 6 07:54:36 2008 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * complex.c: uses f_real_p macro.
+
+Sat Sep 6 07:27:00 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode.c (rb_econv_open): fail for ASCII incompatible with
+ newline conversion.
+
+Sat Sep 6 07:24:49 2008 Tanaka Akira <akr@fsij.org>
+
+ * io.c (rb_io_extract_modeenc): raise an error for ASCII incompatible
+ encoding without binmode.
+
+Sat Sep 6 07:12:42 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * bignum.c (bigdivrem1): optimization by skipping zeros at the
+ tail of digits. a patch from TOYOFUKU Chikanobu
+ <nobu_toyofuku at nifty.com> in [ruby-dev:36169].
+
+Sat Sep 6 06:28:46 2008 Tanaka Akira <akr@fsij.org>
+
+ * enc/trans/escape.trans: new file.
+
+Sat Sep 6 06:23:27 2008 Tanaka Akira <akr@fsij.org>
+
+ * tool/transcode-tblgen.rb (StrSet.parse): accept upper case
+ hexadecimal digits.
+
+Sat Sep 6 05:37:08 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode.c (output_hex_charref): upcase hexadecimal digits.
+
+Sat Sep 6 05:22:29 2008 Tanaka Akira <akr@fsij.org>
+
+ * include/ruby/encoding.h (ECONV_UNDEF_HEX_CHARREF): defined.
+
+ * transcode.c (output_hex_charref): new function.
+ (rb_econv_convert): call output_hex_charref if
+ ECONV_UNDEF_HEX_CHARREF.
+ (Init_transcode): Encoding::Converter::UNDEF_HEX_CHARREF added.
+
+Sat Sep 6 03:52:47 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode.c (rb_econv_convert): use ECONV_INVALID_MASK and
+ ECONV_UNDEF_MASK.
+
+Sat Sep 6 06:05:09 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * include/ruby/ruby.h (DBL2NUM): renamed from DOUBLE2NUM.
+ a patch from Tadashi Saito <shiba at mail2.accsnet.ne.jp>
+ in [ruby-dev:36102].
+
+Sat Sep 6 04:44:06 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * proc.c (Init_Proc): add '===' operator to use procs in when
+ clause of the case statement. inspired by <http://www.aimred.com/news/developers/2008/08/14/unlocking_the_power_of_case_equality_proc/>.
+
+Sat Sep 6 03:18:17 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode.c (allocate_converted_string): add arguments for a buffer
+ allocated by caller.
+ (rb_econv_insert_output): provide caller allocated buffer to
+ allocate_converted_string.
+
+Sat Sep 6 02:58:53 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode.c (str_transcode_enc_args): local variables renamed.
+ (str_transcode0): ditto.
+
+Sat Sep 6 02:23:18 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode.c (econv_s_stateless_encoding): new method.
+
+Sat Sep 6 02:01:59 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode.c (enc_arg): extracted from str_transcode_enc_args.
+ (str_transcode_enc_args): use enc_arg.
+
+Fri Sep 5 20:27:17 2008 Tanaka Akira <akr@fsij.org>
+
+ * include/ruby/io.h (rb_io_modestr_fmode): renamed from
+ rb_io_mode_flags.
+ (rb_io_modestr_oflags): renamed from rb_io_mode_modenum.
+ (rb_io_oflags_fmode): renamed from rb_io_modenum_flags.
+ (rb_io_mode_flags): defined as a macro.
+ (rb_io_modenum_flags): ditto.
+
+ * io.c: follow the renaming with consistency.
+
+ * process.c (check_exec_redirect): call rb_io_modestr_oflags.
+
+ * ext/pty/depend: pty.o depends on io.h.
+
+Fri Sep 5 20:12:23 2008 Tanaka Akira <akr@fsij.org>
+
+ * enc/trans/newline.trans (universal_newline_finish): new function.
+
+Fri Sep 5 20:07:37 2008 Tanaka Akira <akr@fsij.org>
+
+ * include/ruby/io.h (rb_io_mode_modenum): moved from
+ include/ruby/intern.h.
+
+Fri Sep 5 19:59:26 2008 Tanaka Akira <akr@fsij.org>
+
+ * io.c (MODENUM_MAX): removed.
+
+Fri Sep 5 18:37:52 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * io.c (copy_stream_fallback_body): use read method unless readpartial
+ is available. [ruby-dev:36124]
+
+Fri Sep 5 18:16:31 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/iconv/iconv.c (iconv_create): strips glibc style option before
+ charset mapping. retries without options if they seemed causing
+ error, and warns. [ruby-dev:36147]
+
+Fri Sep 5 03:09:48 2008 Koichi Sasada <ko1@atdot.net>
+
+ * iseq.c (iseq_data_to_ary): make it static.
+
+ * thread.c (thgroup_enclose): ditto.
+
+Fri Sep 5 02:56:37 2008 Koichi Sasada <ko1@atdot.net>
+
+ * vm.c (thread_recycle_stack_slot, thread_recycle_stack_count):
+ make it static.
+
+Fri Sep 5 02:40:38 2008 Koichi Sasada <ko1@atdot.net>
+
+ * thread.c (rb_thread_critical): removed.
+
+Fri Sep 5 01:22:23 2008 Tanaka Akira <akr@fsij.org>
+
+ * io.c (argf_mark): mark p->encs.ecopts.
+
+Fri Sep 5 00:45:07 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode_data.h (rb_transcoder): rename fields:
+ from_encoding -> src_encoding, to_encoding -> dst_encoding.
+
+ * transcode.c: follow the renaming.
+
+Fri Sep 5 00:22:34 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode.c: variables renamed for consistency.
+
+Fri Sep 5 00:05:27 2008 Tanaka Akira <akr@fsij.org>
+
+ * pack.c (encodes): make buff fixed length to avoid SEGV by
+ ruby -e '["a"*10000000].pack("m1000000000")'
+
+Thu Sep 4 23:47:05 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * ext/bigdecimal/bigdecimal.c (BigDecimal_mode): set exception mode
+ correctly. In spite of BigDecimal.mode(BigDecimal::EXCEPTION_ALL,
+ true), BigDecimal.new("NaN") did not raise an exception previously.
+
+Thu Sep 4 23:42:42 2008 Tanaka Akira <akr@fsij.org>
+
+ * include/ruby/intern.h (rb_file_open_str): declared.
+
+ * io.c (rb_file_open_str): defined.
+
+ * ext/zlib/zlib.c (gzfile_s_open): use rb_file_open_str instead of
+ rb_file_open.
+
+Thu Sep 4 23:18:55 2008 Tanaka Akira <akr@fsij.org>
+
+ * enc/trans/newline.trans: record newline types met in universal
+ newline decoder.
+
+Thu Sep 4 23:05:54 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * lib/prime.rb (Prime::OldCompatibility#each): added compatibility to
+ Ruby 1.8.7.
+ (Prime#each): added more rdocs.
+ (Prime#each): remembers the last value of the given block.
+
+Thu Sep 4 21:53:58 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode.c (econv_init): accept an integer as 3rd argument as well.
+
+Thu Sep 4 21:46:21 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode.c (sym_partial_input): new variable.
+ (econv_primitive_convert): accept a hash as 5th argument as well.
+
+Thu Sep 4 21:04:27 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode.c (sym_universal_newline_decoder): new variable.
+ (sym_crlf_newline_encoder): ditto.
+ (sym_cr_newline_encoder): ditto.
+ (econv_opts): check newline converter options.
+ (econv_init): make 3rd argument hash/nil only.
+
+Thu Sep 4 21:03:28 2008 Koichi Sasada <ko1@atdot.net>
+
+ * vm_dump.c: rename some debug functions.
+
+Thu Sep 4 20:57:54 2008 Koichi Sasada <ko1@atdot.net>
+
+ * thread.c (rb_thread_check_trap_pending): added for compatibility.
+
+ * ext/tk/tcltklib.c, ext/tk/tkutil/tkutil.c: remove ruby/signal.h
+ dependency.
+
+Thu Sep 4 20:30:24 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode_data.h (PType): defined unconditionally.
+
+ * transcode.c (PType): don't define here.
+
+Thu Sep 4 20:19:36 2008 Tanaka Akira <akr@fsij.org>
+
+ * io.c: variables renamed for consistency.
+
+Thu Sep 4 19:40:50 2008 Narihiro Nakamura <authorNari@gmail.com>
+
+ * gc.c (gc_profile_record_get): to static function.
+ (gc_profile_result): ditto.
+ (gc_profile_report): ditto.
+
+Thu Sep 4 19:20:24 2008 Tanaka Akira <akr@fsij.org>
+
+ * include/ruby/io.h (rb_io_enc_t): rename flags to ecflags.
+ (rb_io_t): rename writeconv_pre_flags to writeconv_pre_ecflags.
+ (MakeOpenFile): follow the renaming.
+
+ * io.c: follow the renaming.
+
+Thu Sep 4 19:10:27 2008 Tanaka Akira <akr@fsij.org>
+
+ * include/ruby/encoding.h (ECONV_INVALID_IGNORE): removed because
+ it tend to cause security problem. If the behaviour is really
+ required, ECONV_INVALID_REPLACE with empty string can be used.
+ For example, CVE-2006-2313, CVE-2008-1036, [ruby-core:15645],
+ http://unicode.org/reports/tr36/
+ (ECONV_UNDEF_IGNORE): ditto.
+
+ * transcode.c (rb_econv_convert): follow the above change.
+ (econv_opts): ditto.
+ (Init_transcode): ditto.
+
+Thu Sep 4 13:22:02 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * vm_core.h (struct rb_vm_struct): replaced signal staff with trap
+ staff.
+
+ * signal.c (signal_buff): per process resource now.
+
+ * signal.c (trap_list): moved to VM.
+
+ * signal.c (rb_get_next_signal): reverted.
+
+ * signal.c (rb_trap_exit): trap_pending_list was no longer used.
+
+ * thread.c (timer_thread_function): delivers buffered per-process
+ signals to each VMs.
+
+ * vm.c (rb_vm_mark): marks trap_list.
+
+Thu Sep 4 13:01:11 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * io.c (struct sysopen_struct, rb_sysopen_internal, rb_sysopen):
+ constified.
+
+ * io.c: expanded ARGF members macros.
+
+Thu Sep 4 10:43:47 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * tool/transcode-tblgen.rb (citrus_decode_mapsrc): support older 1.8.
+
+Thu Sep 4 10:33:43 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * io.c (argf_next_argv, argf_set_encoding): copy struct wise.
+
+Thu Sep 4 09:46:18 2008 Tanaka Akira <akr@fsij.org>
+
+ * io.c (rb_scan_open_args): follow rb_str_transcode change.
+
+Thu Sep 4 08:59:29 2008 Tanaka Akira <akr@fsij.org>
+
+ * file.c (rb_find_file): fix GC problem on Debian GNU/Linux (IA64)
+ with gcc (GCC) 4.1.2 20061115 (prerelease) (Debian 4.1.1-21).
+ There is no register/memory to contain load_path. A register (r35)
+ contains &RARRAY_PTR(load_path), (char*)load_path + 32.
+
+Thu Sep 4 03:10:05 2008 Tanaka Akira <akr@fsij.org>
+
+ * include/ruby/io.h (rb_io_t): new fields: encs.ecopts and
+ writeconv_pre_ecopts.
+ (MakeOpenFile): initialize them.
+
+ * include/ruby/encoding.h (rb_str_transcode): take ecopts argument.
+ (rb_econv_flags): removed.
+ (rb_econv_prepare_opts): declared.
+ (rb_econv_open_opts): declared.
+
+ * io.c (make_writeconv): use rb_econv_open_opts.
+ (make_readconv): ditto.
+ (io_fwrite): follow rb_str_transcode change.
+ (rb_io_extract_modeenc): use rb_econv_prepare_opts.
+ (rb_file_open_generic): initialize encs.ecopts.
+ (rb_file_open_internal): ditto.
+ (rb_io_reopen): ditto.
+ (argf_ecopts): defined.
+ (argf_next_argv): set encs.ecopts.
+ (io_encoding_set): use rb_econv_prepare_opts.
+ (argf_set_encoding): set argf_ecopts.
+
+ * gc.c (gc_mark_children): mark encs.ecopts and writeconv_pre_ecopts
+ in T_FILE.
+
+ * transcode.c (transcode_loop): take ecopts argument. use
+ rb_econv_open_opts.
+ (rb_econv_flags): removed.
+ (rb_econv_prepare_opts): defined.
+ (rb_econv_open_opts): defined.
+ (str_transcode0): take ecopts.
+ (str_transcode): use rb_econv_prepare_opts.
+ (rb_str_transcode): take ecopts.
+ (econv_init): accept hash argument.
+ (econv_insert_output): follow rb_str_transcode change.
+
+Thu Sep 4 01:30:26 2008 Tanaka Akira <akr@fsij.org>
+
+ * include/ruby/encoding.h (rb_econv_set_replacemenet): declared.
+
+ * transcode.c (rb_econv_t): new fields: replacement_str,
+ replacement_len, replacement_enc and replacement_allocated.
+ (get_replacement_character): make len as size_t.
+ (rb_econv_open_by_transcoder_entries): initialize the new fields.
+ (rb_econv_close): deallocate replacement_str if it allocated.
+ (make_replacement): new function.
+ (output_replacement_character): use make_replacement.
+ (rb_econv_set_replacemenet): defined.
+ (econv_get_replacement): new method.
+ (econv_set_replacement): new method.
+
+Thu Sep 4 01:12:03 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/win32.c (filetime_to_timeval): new function, split from
+ gettimeofday().
+
+ * win32/win32.c (gettimeofday): use above function.
+
+ * win32/win32.c (filetime_to_unixtime): ditto. [ruby-dev:36135]
+
+Thu Sep 4 01:00:57 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * transcode.c (transcode_restartable0): avoid VC++6's bug.
+
+Thu Sep 4 00:26:27 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * io.c (make_writeconv): follow akr's previous commit.
+
+Thu Sep 4 00:09:05 2008 Tanaka Akira <akr@fsij.org>
+
+ * include/ruby/encoding.h (rb_econv_option_t): removed. Since
+ rb_econv_option_t has only one field, int flags, rb_econv_option_t is
+ replaced by int.
+
+ * include/ruby/io.h: follow the above change.
+
+ * io.c: ditto.
+
+ * transcode.c: ditto.
+
+Thu Sep 4 00:04:59 2008 Koichi Sasada <ko1@atdot.net>
+
+ * win32/win32.c: fix ruby/signal.h depending codes.
+
+Thu Sep 4 00:01:45 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * test/etc/test_etc.rb (test_getpwuid, test_getgrgid): use
+ Process.euid and egid instead of Etc.getlogin to identify current
+ user which may be different from a login one (e.g., su command).
+
+Wed Sep 3 23:52:47 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * test/etc/test_etc.rb: check only typical use of
+ setpwent/getpwent/endpwent and setgrent/getgrent/endgrent.
+
+Wed Sep 3 23:33:09 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode.c (rb_transcoding): moved from transcode_data.h.
+ (TRANSCODING_READBUF): ditto.
+ (TRANSCODING_WRITEBUF): ditto.
+ (TRANSCODING_STATE_EMBED_MAX): ditto.
+ (TRANSCODING_STATE): ditto.
+
+Wed Sep 3 23:03:37 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode_data.h (rb_transcoding): remove stateful field.
+ add state field.
+ (TRANSCODING_STATE): defined.
+ (rb_transcoder): add fields: state_size, state_init_func,
+ state_fini_func.
+ change rb_transcoding* argument to void*.
+
+ * transcode.c (transcode_restartable0): use TRANSCODING_STATE for
+ first arguments of transcoder functions.
+ (rb_transcoding_open_by_transcoder): initialize state field.
+ (rb_transcoding_close): finalize state field.
+
+ * tool/transcode-tblgen.rb: provide state size/init/fini.
+
+ * enc/trans/newline.trans (universal_newline_init): defined.
+ (fun_so_universal_newline): take void* as a state pointer.
+ (rb_universal_newline): provide state size/init/fini.
+ (rb_crlf_newline): ditto.
+ (rb_cr_newline): ditto.
+
+ * enc/trans/iso2022.trans (iso2022jp_init): defined.
+ (fun_si_iso2022jp_to_eucjp): take void* as a state pointer.
+ (fun_so_iso2022jp_to_eucjp): ditto.
+ (fun_so_eucjp_to_iso2022jp): ditto.
+ (iso2022jp_reset_sequence_size): ditto.
+ (finish_eucjp_to_iso2022jp): ditto.
+ (rb_ISO_2022_JP_to_EUC_JP): provide state size/init/fini.
+ (rb_EUC_JP_to_ISO_2022_JP): ditto.
+
+ * enc/trans/utf_16_32.trans (fun_so_from_utf_16be): take void* as a
+ state pointer.
+ (fun_so_to_utf_16be): ditto.
+ (fun_so_from_utf_16le): ditto.
+ (fun_so_to_utf_16le): ditto.
+ (fun_so_from_utf_32be): ditto.
+ (fun_so_to_utf_32be): ditto.
+ (fun_so_from_utf_32le): ditto.
+ (fun_so_to_utf_32le): ditto.
+ (rb_from_UTF_16BE): provide state size/init/fini.
+ (rb_to_UTF_16BE): ditto.
+ (rb_from_UTF_16LE): ditto.
+ (rb_to_UTF_16LE): ditto.
+ (rb_from_UTF_32BE): ditto.
+ (rb_to_UTF_32BE): ditto.
+ (rb_from_UTF_32LE): ditto.
+ (rb_to_UTF_32LE): ditto.
+
+ * enc/trans/japanese.trans (fun_so_eucjp2sjis): take void* as a state
+ pointer.
+ (fun_so_sjis2eucjp): ditto.
+ (rb_eucjp2sjis): provide state size/init/fini.
+ (rb_sjis2eucjp): provide state size/init/fini.
+
+Wed Sep 3 22:31:11 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * lib/mathn.rb (Integer): moved into prime.rb.
+ (Prime): ditto.
+
+ * lib/prime.rb (Integer): moved from mathn.rb.
+ (Integer.each_prime): added.
+ (Integer#prime?): added.
+ (Prime): moved from mathn.rb.
+ Its implementation was rewritten. see [ruby-dev:35863].
+ And patched by Keiju ISHITSUKA <keiju@ishitsuka.com>,
+ see [ruby-dev:36128].
+ (Prime.new): obsolete.
+ (Prime.instance): added.
+ (Prime.each): added.
+ (Prime.int_from_prime_division): added.
+ (Prime.prime_division): added.
+ (Prime.prime?): added.
+ Patch by TOYOFUKU Chikanobu
+ <nobu_toyofuku at nifty.com> in [ruby-dev:36067].
+ (Prime.cache): removed.
+ (Prime.primes): removed.
+ (Prime.primes_so_far): removed.
+ (Prime#int_from_prime_division): added.
+ (Prime#prime_division): added.
+ (Prime#prime?): added.
+ (Prime#primes): removed.
+ (Prime#primes_so_far): removed.
+ (Prime::PseudoPrmeGenerator): added.
+ (Prime::EratosthenesGenerator): added.
+ (Prime::TrialDivisionGenerator): added.
+ (Prime::Generator23): added.
+ (Prime::TrialDivision): added.
+ Extracted from the previous implementation of Prime
+ by Keiju ISHITSUKA.
+ (Prime::EratosthenesSieve): added.
+
+ * lib/.document (prime.rb): added
+
+ * lib/README (prime.rb): added
+
+ * test/test_prime.rb: added.
+
+Wed Sep 3 21:49:00 2008 David A. Black <dblack@rubypal.com>
+
+ * lib/scanf.rb: fixed bug involving matching literal '['
+
+ * test/scanf/test_scanf.rb: added test for scanf.rb fix
+
+Wed Sep 3 21:31:59 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode_data.h (WORDINDEX_SHIFT_BITS): defined.
+ (WORDINDEX2INFO): defined.
+ (INFO2WORDINDEX): defined.
+
+ * tool/transcode-tblgen.rb: use WORDINDEX2INFO.
+
+ * transcode.c: use INFO2WORDINDEX.
+
+Wed Sep 3 21:19:51 2008 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
+
+ * golf_prelude.rb: suppress warnings when goruby -v.
+
+Wed Sep 3 21:07:30 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode.c (BL_MIN_BYTE): defined.
+ (BL_MAX_BYTE): defined.
+ (BL_OFFSET): defined.
+ (BL_ACTION): defined.
+ (transcode_restartable0): use BL_MIN_BYTE, BL_MAX_BYTE and
+ BL_ACTION.
+
+Wed Sep 3 20:58:30 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode.c (BYTE_ADDR): defined.
+ (WORD_ADDR): ditto.
+ (BL_BASE): use BYTE_ADDR and WORD_ADDR.
+ (BL_INFO): use WORD_ADDR.
+
+Wed Sep 3 20:47:31 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode_data.h (rb_transcoder): new field: byte_array_length and
+ word_array_length.
+
+ * tool/transcode-tblgen.rb (transcode_generated_code): generate
+ byte_array_length and word_array_length.
+
+Wed Sep 3 20:34:10 2008 Tanaka Akira <akr@fsij.org>
+
+ * tool/transcode-tblgen.rb (ArrayCode): new class.
+ (ActionMap#gen_array_code): moved to ArrayCode.
+ (ActionMap#numelt_array_code): ditto.
+ (ActionMap#array_code_insert_at_last): ditto.
+ (TRANSCODE_GENERATED_BYTES_CODE): use ArrayCode.
+ (TRANSCODE_GENERATED_WORDS_CODE): ditto.
+
+Wed Sep 3 20:08:35 2008 Tanaka Akira <akr@fsij.org>
+
+ * enc/trans/japanese.trans: new file.
+
+Wed Sep 3 20:04:33 2008 Tanaka Akira <akr@fsij.org>
+
+ * tool/transcode-tblgen.rb (ActionMap#gen_array_code): extracted from
+ generate_lookup_node.
+ (ActionMap#numelt_array_code): ditto.
+ (ActionMap#array_code_insert_at_last): ditto.
+
+Wed Sep 3 20:01:01 2008 Tanaka Akira <akr@fsij.org>
+
+ * parse.y (parser_encoding_name): defined.
+ (parser_tokadd_mbchar): show encoding in the message of
+ "invalid multibyte char" error.
+
+Wed Sep 3 19:28:04 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * vm_insnhelper.c (vm_method_missing): C99.
+
+Wed Sep 3 19:18:12 2008 Koichi Sasada <ko1@atdot.net>
+
+ * test/ruby/test_thread.rb: fix test.
+ [ruby-dev:35960]
+
+Wed Sep 3 17:48:32 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * enc/trans/make_transdb.rb: check $(srcdir)/enc/trans before
+ enc/trans.
+
+ * enc/trans/make_transdb.rb: keep names_t.
+
+Wed Sep 3 16:54:46 2008 Koichi Sasada <ko1@atdot.net>
+
+ * include/ruby/signal.h: removed.
+
+ * common.mk, class.c, eval.c, eval_intern.h, file.c, gc.c, hash.c,
+ io.c, process.c, signal.c: vm_core.h: ditto.
+ Some unused external global variables are also removed.
+ (rb_prohibit_interrupt, rb_trap_immediate, rb_trap_pending,
+ rb_thread_critical)
+
+ * ext/openssl/ossl_ssl.c, ext/openssl/ossl_x509store.c,
+ ext/readline/readline.c, ext/socket/depend,
+ ext/socket/socket.c: ditto.
+
+Wed Sep 3 00:23:25 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * vm_insnhelper.c (vm_method_missing): copy arguments to allocated
+ memory from machine stack. [ruby-dev:36064]
+
+Tue Sep 2 22:20:26 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode_data.h (base_element): removed.
+ (BYTE_LOOKUP): removed.
+ (BYTE_LOOKUP_BASE): don't cast.
+ (BYTE_LOOKUP_INFO): ditto.
+ (PType): unsigned int, instead of uintptr_t.
+ (rb_transcoding): change type of next_field, conv_tree_start and
+ word_array.
+
+ * tool/transcode-tblgen.rb: generate word_array as array of unsigned
+ int.
+
+ * transcode.c (transcode_restartable0): follow the above type change.
+
+Tue Sep 2 21:22:22 2008 Tanaka Akira <akr@fsij.org>
+
+ * tool/transcode-tblgen.rb: add prefix for byte_array and word_array.
+
+Tue Sep 2 20:57:14 2008 Tanaka Akira <akr@fsij.org>
+
+ * enc/trans/make_transdb.rb: check foo.c only if foo.trans exists.
+
+Tue Sep 2 19:19:55 2008 Tanaka Akira <akr@fsij.org>
+
+ * enc/trans/make_transdb.rb: error message improved.
+
+Tue Sep 2 14:05:50 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * enc/trans/utf_16_32.trans (from_UTF_8): rename from to_UTF_16BE
+ because it was not collect.
+
+Tue Sep 2 14:00:54 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * enc/emacs_mule.c (svn:executable): dropped executable bit.
+
+ * enc/make_encdb.rb (svn:executable): ditto.
+
+Tue Sep 2 12:58:58 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/Makefile.sub (COMPILERFLAG): new compiler flag to compile
+ enc/trans/japanese*.c.
+
+Tue Sep 2 12:37:10 2008 Tanaka Akira <akr@fsij.org>
+
+ * enc/trans/japanese_euc.trans: splitted from japanese.trans to avoid
+ compiler limitation. reported by usa.
+
+ * enc/trans/japanese_sjis.trans: ditto.
+
+Tue Sep 2 12:31:24 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/Makefile.sub (miniruby): new target.
+
+Tue Sep 2 11:47:36 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * marshal.c (struct load_arg): data is now st_table.
+
+ * marshal.c (mark_load_arg): marks data and compat_tbl.
+
+ * marshal.c (r_object0): no need to check if reentered.
+
+ * marshal.c (marshal_load): make the wrapper with mark_load_arg.
+
+Tue Sep 2 10:49:18 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/win32.c (gettimeofday): easier calculation. use the definition
+ of the Gregorian calendar.
+
+Tue Sep 2 10:33:12 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * common.mk (distclean-golf): moved golf_prelude.c here from
+ distclean-local.
+ (GOLFPRELUDE): added.
+ (distclean-local): moved golf_prelude.c into distclean-golf.
+
+Tue Sep 2 10:09:17 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/win32.c (gettimeofday): calc tv_sec and tv_usec from system
+ time by myself. [ruby-dev:36084]
+
+Tue Sep 2 04:00:37 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode_data.h (o3): prevent sign extension on 64bit environment.
+ (o4): ditto.
+
+Tue Sep 2 03:26:24 2008 Tanaka Akira <akr@fsij.org>
+
+ * tool/transcode-tblgen.rb: comment removed in generated code.
+
+Tue Sep 2 03:16:42 2008 Tanaka Akira <akr@fsij.org>
+
+ * tool/transcode-tblgen.rb: define TRANSCODE_TABLE_INFO in generated
+ code. use it in rb_transcoder.
+
+ * enc/trans/newline.trans: use TRANSCODE_TABLE_INFO.
+
+ * enc/trans/iso2022.trans: ditto.
+
+ * enc/trans/utf_16_32.trans: ditto.
+
+Tue Sep 2 03:04:33 2008 Tanaka Akira <akr@fsij.org>
+
+ * tool/transcode-tblgen.rb: record infos and BYTE_LOOKUPs as index of
+ word_array to avoid relocation.
+
+ * transcode.c (transcode_restartable0): add word_array to get infos
+ and BYTE_LOOKUPs.
+
+ * transcode_data.h (BYTE_LOOKUP_INFO): change return type to
+ uintptr_t.
+
+Tue Sep 2 02:48:30 2008 Tanaka Akira <akr@fsij.org>
+
+ * tool/transcode-tblgen.rb: don't need to cast offsets array.
+
+Tue Sep 2 02:36:20 2008 Tanaka Akira <akr@fsij.org>
+
+ * tool/transcode-tblgen.rb: record offsets array as index of
+ byte_array to avoid relocation.
+
+ * transcode.c (transcode_restartable0): add byte_array to get offsets
+ array.
+
+ * transcode_data.h (BYTE_LOOKUP_BASE): change return type to
+ uintptr_t.
+ (rb_transcoder): add fields: byte_array, word_array and word_size.
+
+ * enc/trans/newline.trans: follow rb_transcoder change.
+
+ * enc/trans/iso2022.trans: ditto.
+
+ * enc/trans/utf_16_32.trans: ditto.
+
+Tue Sep 2 02:05:14 2008 Tanaka Akira <akr@fsij.org>
+
+ * tool/transcode-tblgen.rb: make infos arrays and BYTE_LOOKUPs into
+ single array.
+
+Tue Sep 2 01:47:44 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * common.mk (clean-golf): added.
+ (distclean-golf): added.
+ (realclean-golf): added.
+ (clean): added clean-golf.
+ (distclean): added distclean-golf.
+ (realclean): added realclean-golf.
+
+Tue Sep 2 01:31:45 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * common.mk (realclean-local): added newline.c.
+
+Tue Sep 2 01:19:15 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode_data.h (BYTE_LOOKUP): change to uintptr_t array.
+ (BYTE_LOOKUP_BASE): follow the type change.
+ (BYTE_LOOKUP_INFO): ditto.
+ (PType): ditto.
+ (rb_transcoding): ditto.
+
+ * tool/transcode-tblgen.rb: follow the type change.
+
+ * transcode.c: ditto.
+
+ * enc/trans/newline.trans: ditto.
+
+ * enc/trans/iso2022.trans: ditto.
+
+ * enc/trans/utf_16_32.trans: ditto.
+
+Mon Sep 1 23:32:46 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode_data.h (BYTE_LOOKUP_BASE): abstract accessor for
+ BYTE_LOOKUP.
+ (BYTE_LOOKUP_INFO): ditto.
+
+ * transcode.c (transcode_restartable0): use BYTE_LOOKUP_BASE and
+ BYTE_LOOKUP_INFO.
+
+Mon Sep 1 23:14:25 2008 Tanaka Akira <akr@fsij.org>
+
+ * tool/transcode-tblgen.rb: gather infos arrays and BYTE_LOOKUPs.
+
+Mon Sep 1 22:42:54 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * lib/mkmf.rb (distclean): added RM_RF conftest.dSYM.
+ Fixes distclean-ext problem on Mac OS X.
+ (RM_RF): added.
+
+Mon Sep 1 22:37:06 2008 Shugo Maeda <shugo@ruby-lang.org>
+
+ * lib/rexml/document.rb: limit entity expansion. Thanks, Luka
+ Treiber, Mitja Kolsek, and Michael Koziarski.
+
+ * lib/rexml/entity.rb: ditto.
+
+ * test/rexml/test_document.rb: ditto.
+
+Mon Sep 1 22:20:22 2008 Tanaka Akira <akr@fsij.org>
+
+ * tool/transcode-tblgen.rb: make offsets arrays into single array.
+
+Mon Sep 1 21:46:18 2008 Tanaka Akira <akr@fsij.org>
+
+ * tool/transcode-tblgen.rb: gather offsets arrays at top.
+
+Mon Sep 1 21:09:04 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * ./: removed rubyspec from svn:ignore subversion property.
+ rubyspec directory is no longer used.
+
+ * spec: added mspec and rubyspec to svn:ignore.
+
+Mon Sep 1 19:37:19 2008 Tanaka Akira <akr@fsij.org>
+
+ * tool/transcode-tblgen.rb: ValidEncoding['eucJP-ms'] defined.
+ "\xA2\xAF".encode("utf-8", "eucJP-ms") should raise
+ Encoding::ConversionUndefined, not Encoding::InvalidByteSequence.
+
+Mon Sep 1 18:27:51 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/win32.c (gettimeofday): shouldn't use mktime(3) because it's
+ buggy about handling summer time.
+ reported by Yoshikawa <yoshixool AT gmail.com> at [ruby-dev:36071]
+
+Mon Sep 1 17:07:23 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * enc/euc_jp.c (euc-jp-ms): euc-jp-ms is not an alias of EUC-JP
+ but eucJP-ms.
+
+ * enc/trans/japanese.trans (eucJP-ms): eucJP-ms is the correct
+ name of the encoding in Ruby. [ruby-dev:36070]
+
+Mon Sep 1 16:48:50 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/digest/md5/md5init.c (md5), ext/digest/rmd160/rmd160init.c
+ (rmd160) ext/digest/sha1/sha1init.c (sha1),
+ ext/digest/sha2/sha2init.c (sha256, sha384, sha512): constified.
+
+Mon Sep 1 15:15:40 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * enc/trans/japanese.trans: fix mapping priority.
+ IBM extended is prior than NEC selected IBM.
+
+Mon Sep 1 14:44:22 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * tool/transcode-tblgen.rb (transcode_compile_tree): use the first
+ mapping when some mappings are given for a character.
+ [ruby-dev:36068]
+
+ * tool/transcode-tblgen.rb: expandtab.
+
+Mon Sep 1 14:40:18 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * README.EXT (Appendix A): fixed the name of class
+ Enumerator. Enumerable::Enumerator was renamed just
+ Enumerator at revision 18564.
+
+ * README.EXT (Appendix A): ditto.
+
+Mon Sep 1 14:37:58 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * tool/transcode-tblgen.rb: set ERB source filename for error message.
+
+Mon Sep 1 14:37:02 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * enc/depend: transdb.c may not present.
+
+Mon Sep 1 14:25:26 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * enc/trans/japanese.trans: fix Ruby 1.8 compatibility.
+
+ * enc/trans/japanese.trans: fix mapping priority. [ruby-dev:36068]
+
+Mon Sep 1 14:24:14 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * test/ruby/test_transcode.rb (test_windows_31j): added.
+
+Mon Sep 1 14:00:04 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * README.EXT (Data-types): fixed for current status.
+ (Manipulating Ruby data): mentioned some more functions.
+ (Class/module definition): ditto.
+ (Global variables shared between C and Ruby):
+ fixed prototypes for the getter/setter's of global variables.
+ (Appendix A): mentioned some more files.
+
+ * README.EXT.ja: ditto.
+
+Mon Sep 1 11:31:49 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/fileutils.rb (copy_stream, fu_copy_stream0, copy_file): use
+ IO.copy_stream to get rid of extraneous conversion.
+
+Mon Sep 1 02:55:15 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * strftime.c (rb_strftime): calc timezone offset by myself if system
+ doesn't provide timezone info.
+
+Mon Sep 1 02:48:28 2008 Tanaka Akira <akr@fsij.org>
+
+ * tool/transcode-tblgen.rb: change "illegal" to "invalid".
+
+Mon Sep 1 02:31:16 2008 Tanaka Akira <akr@fsij.org>
+
+ * tool/transcode-tblgen.rb (transcode_generated_code): defined for
+ generating table at once.
+ (transcode_tblgen): returns an empty string.
+ (transcode_generate_node): ditto.
+
+ * enc/trans/newline.trans: use transcode_generated_code.
+
+ * enc/trans/iso2022.trans: ditto.
+
+ * enc/trans/single_byte.trans: ditto.
+
+ * enc/trans/utf_16_32.trans: ditto.
+
+ * enc/trans/japanese.trans: ditto.
+
+ * enc/trans/korean.trans: ditto.
+
+Mon Sep 1 02:10:03 2008 Tanaka Akira <akr@fsij.org>
+
+ * tool/transcode-tblgen.rb (citrus_decode_mapsrc): print logging
+ message on STDERR.
+
+Mon Sep 1 01:24:09 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * enc/trans/eucjp-tbl.rb: replace by previous Citrus maps.
+
+ * enc/trans/sjis-tbl.rb: ditto.
+
+Mon Sep 1 01:18:26 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * tool/transcode-tblgen.rb: add table generator from Citrus maps.
+
+ * enc/trans/japanese.trans: use Citrus maps.
+
+ * enc/trans/CP: add maps from Citrus.
+
+ * enc/trans/JIS: ditto.
+
+ * test/ruby/test_transcode.rb: Shift_JIS and EUC-JP doesn't support
+ IBM extended characters.
+
+Mon Sep 1 00:19:45 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * common.mk (docs): removed a useless make target.
+ tool/makedoc.rb was removed at revision 13919.
+
+Sun Aug 31 20:49:42 2008 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * complex.c (numeric_abs2): new.
+
+Sun Aug 31 18:22:04 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/mkmf.rb (have_devel?): checks if the compiler works.
+
+Sun Aug 31 18:02:41 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * Temporarily uses git://github.com/yugui/rubyspec.git
+ until specs for 1.9 is merged into
+ git://github.com/rubyspec/rubyspec.git.
+
+Sun Aug 31 18:06:49 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode.c (transcode.c): set source_encoding and
+ destination_encoding as encoding object.
+ (ecerr_source_encoding): new method.
+ (ecerr_destination_encoding): ditto.
+
+Sun Aug 31 17:58:59 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/mkmf.rb (Logging.log_open): opens in binary mode to get rid of
+ extra CR.
+
+ * lib/mkmf.rb (try_func, try_var, have_struct_member),
+ (scalar_ptr_type?, scalar_type?): use MAIN_DOES_NOTHING.
+
+ * lib/mkmf.rb (MAIN_DOES_NOTHING): defaults to ordinary main.
+
+ * win32/Makefile.sub (config): for MAIN_DOES_NOTHING for wince.
+
+Sun Aug 31 17:30:35 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * spec/README (How to run): added.
+
+Sun Aug 31 17:28:25 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * spec/default.mspec (config): added.
+
+ * spec/default.mspec (target): replaced the built ruby
+ to runruby.rb.
+ Improved $LOAD_PATH on running specs.
+
+ * spec/default.mspec (flags): ditto.
+
+Sun Aug 31 17:16:07 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode.c (make_econv_exception): rename instance variable names
+ for storing encoding names.
+ (ecerr_source_encoding_name): method renamed.
+ (ecerr_destination_encoding_name): ditto.
+
+Sun Aug 31 16:57:36 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode.c (econv_putback): associate encoding to the result.
+
+Sun Aug 31 16:43:56 2008 Koichi Sasada <ko1@atdot.net>
+
+ * include/ruby/intern.h: rename RB_UBF_DFL to
+ RUBY_UBF_IO and RUBY_UBF_PROCESS.
+ Because there is no default (universal) unblocking function.
+
+ * ext/socket/socket.c, file.c, io.c, process.c, thread.c: ditto.
+
+Sun Aug 31 16:42:23 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode.c (econv_insert_output): raise ArgumentError on failure.
+
+Sun Aug 31 16:39:17 2008 Koichi Sasada <ko1@atdot.net>
+
+ * bootstraptest/test_thread.rb: add a test.
+
+Sun Aug 31 16:34:41 2008 Tanaka Akira <akr@fsij.org>
+
+ * enc/trans/single_byte.trans (us_ascii_map): don't define 8bit bytes.
+
+Sun Aug 31 14:27:27 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode.c (econv_last_error): new method.
+
+Sun Aug 31 14:17:34 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode.c (econv_primitive_convert): make two arguments,
+ destination_byteoffset and destination_bytesize, optional.
+
+Sun Aug 31 14:12:06 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode.c (make_econv_exception): error message simplified.
+
+Sun Aug 31 13:47:59 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/coverage/coverage.c (rb_mCoverage): removed unneeded static variable.
+
+ * ext/socket/socket.c (unix_recv_io): ditto.
+
+ * ext/socket/socket.c (mConst): ditto.
+
+Sun Aug 31 13:45:41 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/openssl/ossl_ocsp.c (ossl_ocspres_initialize): fix for
+ initialization of r18168.
+
+Sun Aug 31 13:42:39 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/ripper/eventids2.c (ripper_init_eventids2): use rb_intern_const.
+
+ * ext/ripper/tools/generate.rb (generate_eventids1): ditto.
+
+ * ext/ripper/tools/generate.rb (generate_eventids2_table): ditto.
+
+Sun Aug 31 12:56:00 2008 Tanaka Akira <akr@fsij.org>
+
+ * ext/dl/mkcallback.rb (rb_dl_init_callbacks): fix indent.
+
+Sun Aug 31 11:39:21 2008 Tanaka Akira <akr@fsij.org>
+
+ * ext/strscan/strscan.c (strscan_do_scan): fix usecnt decrement.
+
+Sun Aug 31 04:38:47 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode.c (econv_putback): make max argument optional.
+
+Sun Aug 31 04:35:21 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode.c (rb_econv_putback): putback from last byte.
+
+Sun Aug 31 04:27:04 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode.c (econv_putback): renamed from econv_primitive_putback.
+
+Sun Aug 31 04:22:51 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode.c (econv_insert_output): renamed from
+ econv_primitive_insert_output.
+
+Sun Aug 31 04:20:46 2008 Tanaka Akira <akr@fsij.org>
+
+ * test/ruby/test_econv.rb: follow econv_primitive_errinfo change.
+
+Sun Aug 31 03:44:24 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode.c (econv_primitive_errinfo): 5th element (partial_input)
+ removed from result.
+
+Sun Aug 31 01:53:31 2008 Tanaka Akira <akr@fsij.org>
+
+ * ext/dl/mkcallback.rb: split callback.h to callback-[0-9].c to reduce
+ memory consumption on compilation. [ruby-dev:31898]
+
+ * ext/dl/depend: add dependency for callback-[0-9].[co].
+
+Sun Aug 31 01:27:46 2008 Tanaka Akira <akr@fsij.org>
+
+ * ext/dl/mkcallback.rb (foreach_proc_entry): extracted.
+ (gencallback): ditto.
+ (gen_push_proc_ary): ditto.
+ (gen_push_addr_ary): ditto.
+
+Sat Aug 30 23:51:01 2008 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
+
+ * test/rinda/test_tuplebag.rb (test_has_expires_eh): fix failures
+ [ruby-dev:35937].
+
+Sat Aug 30 23:38:00 2008 Tanaka Akira <akr@fsij.org>
+
+ * ext/dl/test/test_import.rb: fix character code.
+
+ * ext/dl/test/test_func.rb: ditto.
+
+Sat Aug 30 22:23:31 2008 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * rational.c: added a static variable for nurat_to_f.
+
+Sat Aug 30 20:05:41 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/win32.c (rb_w32_open, rb_w32_read, rb_w32_write): fallback to
+ MSVCRT if text mode is specified. this case will not be used from
+ ruby itself.
+
+Sat Aug 30 19:49:38 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/win32.c (rb_w32_read): EOF is not error.
+ ref [ruby-dev:36050]
+
+Sat Aug 30 18:17:40 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (struct token_info): constified.
+
+ * parse.y (token_info_get_column, token_info_has_nonspaces),
+ (token_info_push, token_info_pop): constified.
+
+Sat Aug 30 15:43:03 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ext/openssl/ossl_config.c (Init_ossl_config): memory leak fixed.
+ a patch <shinichiro.hamaji at gmail.com> in [ruby-dev:35880].
+
+ * ext/openssl/ossl_x509ext.c (ossl_x509ext_set_value): ditto.
+
+ * ext/strscan/strscan.c (strscan_do_scan): ditto.
+
+Sat Aug 30 14:58:32 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/openssl/ossl_x509ext.c (ossl_x509ext_initialize): fix for
+ initialization of r18168.
+
+Sat Aug 30 14:47:30 2008 Tanaka Akira <akr@fsij.org>
+
+ * ext/dl/mkcallback.rb: fix continuation line detection.
+
+Sat Aug 30 14:39:51 2008 Tanaka Akira <akr@fsij.org>
+
+ * ext/dl/mkcallback.rb (rb_dl_init_callbacks): avoid GC problem which
+ is caused by 'GC.stress=true; require "dl"'.
+
+Sat Aug 30 11:54:17 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * parse.y (token_info_push): -w warns indentation level mismatch.
+ based on a patch from Yukina Yamano presented at RubyKaigi'07.
+ See <http://jp.rubyist.net/RubyKaigi2007/Log0609-LT06.html> and
+ <http://www.logic-junction.com/products/rubyend.html> (Japanese).
+
+Sat Aug 30 10:46:44 2008 Koichi Sasada <ko1@atdot.net>
+
+ * ext/iconv/iconv.c: remove include pragma for "ruby/intern.h".
+
+Sat Aug 30 10:43:03 2008 Koichi Sasada <ko1@atdot.net>
+
+ * parse.y: remove include pragma for "ruby/intern.h".
+
+Sat Aug 30 10:41:57 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/rake.rb (Rake::Application#help): fix for OPTIONAL_ARGUMENT and
+ multiple short options. [ruby-dev:36051]
+
+Sat Aug 30 08:59:25 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * include/ruby/intern.h (rb_file_s_absolute_path),
+ (rb_file_absolute_path): prototyped.
+
+Sat Aug 30 08:09:36 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * encoding.c (enc_compatible_p): use TYPE not BUILTIN_TYPE.
+ [ruby-dev:36048]
+
+Sat Aug 30 07:48:48 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * encoding.c (enc_compatible_p): add SPECIAL_CONST_P check.
+ [ruby-dev:36048]
+
+ * test/ruby/test_m17n.rb (test_compatible): fix test.
+
+Sat Aug 30 02:48:11 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * object.c (rb_obj_freeze): update rdoc to mention RuntimeError
+ (not TypeError any longer) would be raised. [ruby-dev:35982]
+
+Sat Aug 30 01:55:30 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * bignum.c (bigdivmod): remove redundant code. a patch from
+ TOYOFUKU Chikanobu <nobu_toyofuku at nifty.com> in [ruby-dev:36044].
+
+Sat Aug 30 01:37:20 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/cgi.rb (CGI#initialize): remove unused constants. a patch
+ from Takeyuki Fujioka in [ruby-dev:36046].
+
+Fri Aug 29 22:29:41 2008 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * complex.c ({nucomp,numeric}_rect): new.
+
+ * complex.c: added some aliases
+ (::rectangular, ::rect, #rectangular, #rect, #phase,
+ #magnitude).
+
+ * complex.c (string_to_c_internal): should not strip any null
+ bytes.
+
+ * rational.c (string_to_r_internal): ditto.
+
+ * rational.c (i_gcd): reverted to nurat 0.0.2's one.
+
+ * numeric.c: added an alias (#magnitude).
+
+ * bignum.c: ditto.
+
+ * test/ruby/test_complex.rb: added assertions.
+
+ * test/ruby/test_rational.rb: ditto.
+
+Fri Aug 29 19:46:02 2008 Koichi Sasada <ko1@atdot.net>
+
+ * gc.c, include/ruby/ruby.h: rename T_DEFERRED to T_ZOMBIE.
+
+Fri Aug 29 18:22:27 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * encoding.c (enc_compatible_p): raise TypeError when argument is not
+ String nor Regexp.
+
+Fri Aug 29 18:20:56 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * string.c (rb_str_index_m): only regexp uses byte offset.
+
+ * string.c (rb_str_rindex_m): ditto.
+
+Fri Aug 29 16:48:34 2008 Koichi Sasada <ko1@atdot.net>
+
+ * vm_insnhelper.c (vm_call_method): copy arguments to allocated
+ memory from machine stack. [ruby-dev:36028]
+
+ * KNOWNBUGS.rb, bootstraptest/test_method.rb: move fixed test.
+
+Fri Aug 29 12:19:12 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/openssl/ossl_x509attr.c (ossl_x509attr_initialize): fix for
+ initialization of r18168.
+
+ * ext/openssl/ossl_ocsp.c (ossl_ocspreq_initialize): ditto.
+
+ * ext/openssl/ossl_x509name.c (ossl_x509name_initialize): ditto.
+
+Fri Aug 29 11:04:03 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * encoding.c (rb_enc_compatible): ASCII compatible string and US-ASCII
+ regexp is compatible. [ruby-dev:36033]
+
+ * string.c (rb_str_index_m): second argument is position of character.
+ by usa. [ruby-dev:36033]
+
+ * string.c (rb_str_rindex_m): ditto.
+
+Fri Aug 29 04:47:49 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/win32.c (rb_w32_read, rb_w32_write): more accurate handling
+ of wait result.
+
+Fri Aug 29 02:59:35 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode.c (econv_finish): new method.
+
+Fri Aug 29 02:45:29 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode.c (econv_convert): new method.
+
+Fri Aug 29 02:38:14 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode.c (econv_primitive_convert): accept nil as
+ destination_bytesize for unlimited destination size.
+
+Fri Aug 29 02:11:46 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode.c (econv_primitive_convert): accept nil as input for empty
+ input.
+
+Fri Aug 29 02:03:56 2008 Shugo Maeda <shugo@ruby-lang.org>
+
+ * strftime.c (rb_strftime): supported %s and %P.
+
+ * time.c (time_strftime): ditto.
+
+ * test/ruby/test_time.rb (test_strftime): ditto.
+
+Fri Aug 29 01:57:58 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode.c (sym_invalid_byte_sequence): new variable.
+ (sym_undefined_conversion): ditto.
+ (sym_destination_buffer_full): ditto.
+ (sym_source_buffer_empty): ditto.
+ (sym_finished): ditto.
+ (sym_output_followed_by_input): ditto.
+ (sym_incomplete_input): ditto.
+ (econv_result_to_symbol): use above variables.
+ (Init_transcode): initialize above variables.
+
+Fri Aug 29 00:53:40 2008 Shugo Maeda <shugo@ruby-lang.org>
+
+ * strftime.c (rb_strftime): fixed a bug of padding.
+
+ * test/ruby/test_time.rb: ditto.
+
+Fri Aug 29 00:19:54 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/win32.c (set_pioinfo_extra): use MSVCRT's open() and close().
+
+Fri Aug 29 00:03:13 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * file.c (file_expand_path): check invalid access.
+
+Thu Aug 28 23:55:50 2008 Shugo Maeda <shugo@ruby-lang.org>
+
+ * strftime.c (rb_strftime): Time.mktime(2000).strftime("%-S") should
+ return "0", not "".
+
+ * test/ruby/test_time.rb: ditto.
+
+Thu Aug 28 23:55:22 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * test/ruby/test_time.rb: suppress warning during test.
+
+Thu Aug 28 23:50:47 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * test/ruby/test_time.rb (test_strftime): make test for %a independent
+ from local timezone. [ruby-dev:35992]
+
+Thu Aug 28 23:39:49 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * string.c (rb_str_shared_replace): remove corrupt noembed string
+ which causes SEGV. [ruby-dev:35989]
+
+Thu Aug 28 23:36:15 2008 Tanaka Akira <akr@fsij.org>
+
+ * common.mk: dependency updated.
+
+Thu Aug 28 23:28:57 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * KNOWNBUGS.rb: add a test. see [ruby-dev:36028]
+
+Thu Aug 28 21:43:05 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/win32.c, include/ruby/win32.h (rb_w32_open): overlapped file
+ I/O support.
+
+ * win32/win32.c, include/ruby/win32.h (rb_w32_pipe): overlapped pipe
+ I/O support.
+
+ * win32/win32.c (rb_w32_read, rb_w32_write): overlapped I/O support to
+ enable canceling I/O.
+
+ * thread_win32.c (ubf_handle): remove workaround.
+
+Thu Aug 28 20:22:49 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * vm_insnhelper.c (vm_yield_setup_args): object with to_ary should
+ behave like array. a patch from Yusuke Endoh <mame at tsg.ne.jp>
+ in [ruby-dev:35988]. [ruby-dev:35977]
+
+ * object.c (convert_type): call less rb_intern() less frequently
+ by using cache structure.
+
+ * vm_method.c (rb_method_node): fail earlier if no method found.
+
+Thu Aug 28 19:04:50 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * bootstraptest/test_io.rb: no need to create real file.
+
+Thu Aug 28 09:26:53 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * test/cgi/test_cgi_multipart.rb: add test for multipart.
+ Patch by Takeyuki Fujioka. [ruby-dev:36014]
+ From CGIAlt http://cgialt.rubyforge.org/
+
+Thu Aug 28 09:22:01 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * test/cgi/test_cgi_modruby.rb: add test for mod_ruby adaptor.
+ Patch by Takeyuki Fujioka. [ruby-dev:36013]
+ From CGIAlt http://cgialt.rubyforge.org/
+
+Thu Aug 28 09:17:10 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * test/cgi/test_cgi_header.rb: add test for CGI::Header.
+ Patch by Takeyuki Fujioka. [ruby-dev:36010] [ruby-dev:36011]
+ From CGIAlt http://cgialt.rubyforge.org/
+
+Thu Aug 28 02:16:49 2008 Tanaka Akira <akr@fsij.org>
+
+ * include/ruby/io.h (rb_io_t): refcnt field removed.
+ (MakeOpenFile): refcnt initialization removed.
+
+ * io.c (rb_io_fptr_finalize): don't check refcnt.
+ (rb_io_close_read): don't use refcnt.
+
+Thu Aug 28 00:07:59 2008 Tanaka Akira <akr@fsij.org>
+
+ * io.c (rb_io_initialize): don't accept IO object. [ruby-dev:35895]
+
+Wed Aug 27 23:28:51 2008 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+
+ * ext/win32ole/win32ole.c (ole_invoke): WIN32OLE#[] and WIN32OLE#[]=
+ accepts number argument.
+
+ * test/win32ole/test_win32ole.rb: ditto.
+
+Wed Aug 27 14:45:34 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * test/cgi/test_cgi_core.rb: add core test.
+ Patch by Takeyuki Fujioka. [ruby-dev:36001] [ruby-dev:36002]
+ From CGIAlt http://cgialt.rubyforge.org/
+
+Wed Aug 27 10:34:42 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * lib/cgi.rb (CGI::Cookie): remove delegate.
+ Patch by Takeyuki Fujioka. [ruby-dev:35995]
+
+ * test/cgi/test_cgi_cookie.rb: added for above.
+ Patch by Takeyuki Fujioka. [ruby-dev:35996]
+ From CGIAlt http://cgialt.rubyforge.org/
+
+Wed Aug 27 01:13:54 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode.c (transcode_loop): simplified.
+
+Wed Aug 27 01:03:23 2008 Tanaka Akira <akr@fsij.org>
+
+ * include/ruby/encoding.h (rb_econv_result_t): enumeration constant:
+ econv_incomplete_input.
+
+ * io.c (finish_writeconv): check econv_incomplete_input.
+
+ * transcode.c (transcode_restartable0): return econv_incomplete_input
+ for unexpected end of source buffer.
+ (trans_sweep): check econv_incomplete_input.
+ (rb_trans_conv): ditto.
+ (rb_econv_convert0): ditto.
+ (rb_econv_convert): ditto.
+ (transcode_loop): ditto.
+ (make_econv_exception): change message for econv_incomplete_input.
+ (econv_result_to_symbol): return :incomplete_input for
+ econv_incomplete_input.
+ (ecerr_incomplete_input): new method.
+
+Wed Aug 27 00:05:55 2008 Tanaka Akira <akr@fsij.org>
+
+ * include/ruby/io.h (rb_io_t): rename crbuf to cbuf.
+
+ * io.c: follow the renaming.
+
+Tue Aug 26 23:52:24 2008 Tanaka Akira <akr@fsij.org>
+
+ * include/ruby/encoding.h (rb_econv_elem_t): move to transcode.c
+ (rb_econv_t): defined as an incomplete type.
+
+ * transcode.c (rb_econv_elem_t): moved from encoding.h.
+ (rb_econv_t): complete type defined.
+
+Tue Aug 26 22:44:12 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * time.c (time_asctime): workaround for MSVCRT's bug.
+ based on a patch from wanabe <s.wanabe AT gmail.com> at
+ [ruby-dev:35831] and a suggestion by KIMURA Koichi
+ <kbk AT kt.rim.or.jp> at [ruby-dev:35832]
+ fixed [ruby-dev:35555]
+
+Tue Aug 26 21:53:56 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode.c (rb_econv_open): disable newline conversion for ASCII
+ incompatible encodings.
+ (str_transcode0): don't need disable newline conversion here.
+
+Tue Aug 26 21:44:39 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode.c (rb_econv_binmode): binmode is effective only once.
+
+Tue Aug 26 19:43:59 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * file.c (rb_file_s_expand_path): new class method for class File.
+
+ * file.c (file_expand_path): add absolute_path handling (no ~user
+ expansion). [ruby-core:18319]
+
+Tue Aug 26 19:27:54 2008 Akinori MUSHA <knu@iDaemons.org>
+
+ * test/ruby/test_enum.rb (TestEnumerable#test_each_with_object):
+ Add a test for Enumerable#each_with_object.
+
+Tue Aug 26 19:25:44 2008 Akinori MUSHA <knu@iDaemons.org>
+
+ * test/ruby/test_enumerator.rb (TestEnumerator#test_with_object):
+ Add (back) the test for Enumerator#with_object.
+
+Tue Aug 26 16:16:43 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * test/cgi/test_cgi_tag_helper.rb: add more tests for html3.
+ Patch by Takeyuki Fujioka. [ruby-dev:35975]
+ From CGIAlt http://cgialt.rubyforge.org/
+
+Tue Aug 26 14:43:10 2008 Akinori MUSHA <knu@iDaemons.org>
+
+ * enumerator.c: Activate Enumerator#with_object and add
+ Enumerable#each_with_object. [experimental]
+
+Tue Aug 26 14:38:32 2008 Akinori MUSHA <knu@iDaemons.org>
+
+ * enumerator.c (enumerator_initialize),
+ test/ruby/test_enumerator.rb: Add an ability to generate an
+ enumerator from a block. [experimental] [ruby-dev:35903]
+
+Tue Aug 26 13:25:25 2008 Martin Duerst <duerst@it.aoyama.ac.jp>
+
+ * test/ruby/test_transcode.rb: added test_euc_jp
+ (contributed by Yoshihiro Kambayashi)
+
+Tue Aug 26 11:54:15 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * test/cgi/test_cgi_tag_helper.rb: added by Takeyuki Fujioka.
+ [ruby-dev:35971]
+
+Tue Aug 26 11:33:30 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * lib/cgi.rb (nOE_element_def): fix error when cascade methods which
+ don't have arguments. Patch by Takeyuki Fujioka. [ruby-dev:35964]
+
+ * lib/cgi.rb (blockquote): String#collect (this depends on
+ String#each) is no longer exists.
+ Patch by Takeyuki Fujioka. [ruby-dev:35946]
+
+ * lib/cgi.rb (blockquote): ditto.
+
+Tue Aug 26 03:06:48 2008 Tanaka Akira <akr@fsij.org>
+
+ * io.c (make_writeconv): copy invalid/undef flags.
+
+Tue Aug 26 02:47:08 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * common.mk (dist): tool/make-snapshot is executable.
+
+ * tool/make-snapshot (package): supported release numbers 1.9.0-x.
+
+Tue Aug 26 02:43:50 2008 Tanaka Akira <akr@fsij.org>
+
+ * include/ruby/io.h (rb_io_t): new field: writeconv_pre_opts.
+
+ * io.c (make_writeconv): initialize writeconv_pre_opts.
+ (io_fwrite): use writeconv_pre_opts.
+
+Tue Aug 26 01:48:31 2008 Tanaka Akira <akr@fsij.org>
+
+ * io.c: test _WIN32 for CRLF platform. (cygwin defines O_BINARY.)
+
+Tue Aug 26 01:29:26 2008 Tanaka Akira <akr@fsij.org>
+
+ * io.c: force CRLF handling if RUBY_TEST_CRLF_ENVIRONMENT is defined.
+ This is only for testing.
+
+Tue Aug 26 01:26:31 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode.c (str_transcode0): disable newline conversion for ASCII
+ incompatible encoding.
+
+Tue Aug 26 00:55:46 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode.c (str_transcode0): don't short cut for newline conversion.
+
+Tue Aug 26 00:36:01 2008 Tanaka Akira <akr@fsij.org>
+
+ * io.c (io_fwrite): add TEXTMODE_NEWLINE_ENCODER to option for
+ rb_str_transcode.
+
+Tue Aug 26 00:24:23 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode.c (make_econv_exception): show readagain part for invalid
+ byte sequence exception. store the part as an instance variable.
+ (ecerr_readagain_bytes): new method to access the readagain part.
+
+Tue Aug 26 00:02:49 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * ext/bigdecimal/bigdecimal.c (VpMult): fix double free.
+
+Mon Aug 25 23:59:36 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode.c (rb_econv_open): make last_tc NULL if there are only
+ additional transcoders.
+ (econv_description): extracted from rb_econv_open_exc.
+ (rb_econv_open_exc): use econv_description.
+ (econv_inspect): use econv_description.
+
+Mon Aug 25 23:56:42 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32.c (init_stdhandle): set binmode.
+
+Mon Aug 25 23:38:17 2008 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * lib/date/format.rb(strftime): %[LN] can print with given
+ arbitrary precision.
+
+ * lib/date/format.rb(strftime): optional flags and filed width
+ should also affect %[nt].
+
+Mon Aug 25 23:01:17 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * compile.c (defined_expr): default defined? should return
+ "expression" without evaluating the expression. [ruby-dev:35967]
+
+Mon Aug 25 22:46:01 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * test/ruby/test_thread.rb (test_status_and_stop_p): reduce the risk
+ of race condition.
+
+Mon Aug 25 22:39:57 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * lib/irb/extend-command.rb (def_extend_command): check number of
+ arguments. [ruby-dev:35074]
+
+ * lib/irb/ext/multi-irb.rb (search): check if a corresponding job is
+ found. [ruby-dev:35074]
+
+Mon Aug 25 22:29:13 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * test/ruby/test_io.rb (test_dup): fix typo. see [ruby-dev:35958]
+
+Mon Aug 25 22:02:35 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode.c (rb_econv_open_by_transcoder_entries): initialize
+ last_error. num_trans may be zero.
+ (rb_econv_convert0): num_trans may be zero.
+ (rb_econv_putbackable): ditto.
+ (rb_econv_putback): ditto.
+ (rb_econv_convert): input_ptr and output_ptr may be NULL.
+
+Mon Aug 25 19:05:27 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * compile.c (defined_expr): should handle NODE_{AND,OR} as
+ "expression". [ruby-dev:35951]
+
+Mon Aug 25 17:36:26 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * include/ruby/intern.h (rb_io_ungetbyte): added prototype.
+
+ * io.c (rb_io_gets): use rb_io_getline_1 for unget buffer.
+
+ * ruby.c (load_file): use rb_io_ungetbyte.
+
+ * transcode.c (rb_econv_substr_append): fix for buffer overrun.
+
+ * win32/enc-setup.mak (BUILTIN_TRANSOBJS): added.
+
+Mon Aug 25 14:22:21 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * parse.y (YYSTYPE): struct RVarmap has been no longer
+ defined.
+ see also r11717 by matz.
+
+Mon Aug 25 10:42:18 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * transcode.c (rb_econv_open_exc): constified.
+
+Mon Aug 25 07:10:21 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * enc/emacs_mule.c: fix ctype.
+
+Mon Aug 25 00:52:31 2008 Tanaka Akira <akr@fsij.org>
+
+ * configure.in (BUILTIN_TRANSSRCS): defined.
+ (BUILTIN_TRANSOBJS): defined.
+
+ * enc/Makefile.in (BUILTIN_TRANSES): defined.
+
+ * enc/make_encmake.rb (BUILTIN_TRANSES): defined.
+
+ * enc/depend: don't generate rules for builtin transcoders.
+
+ * common.mk (COMMONOBJS): add BUILTIN_TRANSOBJS.
+ (enc.mk): pass BUILTIN_TRANSOBJS.
+ (newline.c): new rule.
+ (newline.$(OBJEXT)): new rule.
+ (srcs): newline.c added.
+
+ * Makefile.in (BUILTIN_TRANSSRCS): defined.
+ (BUILTIN_TRANSOBJS): defined.
+
+ * transcode.c (Init_transcode): call Init_newline.
+
+Mon Aug 25 00:11:02 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode.c (declare_transcoder): arguments order changed.
+ (rb_declare_transcoder): call declare_transcoder just once.
+
+Sun Aug 24 19:48:46 2008 Tanaka Akira <akr@fsij.org>
+
+ * include/ruby/encoding.h (rb_econv_t): use rb_econv_option_t.
+
+ * transcode.c: follow the rb_econv_t change.
+
+Sun Aug 24 19:40:13 2008 Tanaka Akira <akr@fsij.org>
+
+ * io.c (rb_io_init_copy): copy encs.
+
+Sun Aug 24 19:17:31 2008 Tanaka Akira <akr@fsij.org>
+
+ * io.c (rb_io_open): add an argument: vperm.
+ (open_key_args): call rb_io_open with perm.
+
+Sun Aug 24 19:11:07 2008 Tanaka Akira <akr@fsij.org>
+
+ * io.c (sym_invalid): removed.
+ (sym_undef): removed.
+ (sym_ignore): removed.
+ (sym_replace): removed.
+
+Sun Aug 24 19:07:17 2008 Tanaka Akira <akr@fsij.org>
+
+ * io.c (rb_io_reopen): initialize fptr->encs.opts.
+
+Sun Aug 24 18:37:42 2008 Tanaka Akira <akr@fsij.org>
+
+ * io.c (rb_io_s_pipe): accept optional hash.
+ (rb_io_set_encoding): ditto.
+ (rb_io_extract_modeenc): use rb_econv_opts to initialize
+ ecopts.
+ (rb_file_open_generic): ditto.
+ (rb_file_open_internal): ditto.
+ (io_encoding_set): new argument: opt.
+ (argf_set_encoding): copy fptr->encs.opts to argf_ecopts.
+
+ * transcode.c (rb_econv_opts): accept Qnil for initialization.
+
+Sun Aug 24 18:10:08 2008 Tanaka Akira <akr@fsij.org>
+
+ * include/ruby/io.h (rb_io_enc_t): add opts field.
+ (FMODE_INVALID_MASK): removed.
+ (FMODE_INVALID_IGNORE): ditto.
+ (FMODE_INVALID_REPLACE): ditto.
+ (FMODE_UNDEF_MASK): ditto.
+ (FMODE_UNDEF_IGNORE): ditto.
+ (FMODE_UNDEF_REPLACE): ditto.
+ (MakeOpenFile): initialize the opts field.
+
+ * io.c (make_writeconv): use the opts field.
+ (io_fwrite): ditto.
+ (make_readconv): ditto.
+ (argf_ecopts): new macro.
+ (rb_io_extract_modeenc): fill the opts field.
+ (argf_next_argv): ditto.
+ (rb_file_open_generic): initialize the opts field.
+ (rb_file_open_internal): ditto.
+ (io_encoding_set): ditto.
+ (argf_set_encoding): ditto.
+
+Sun Aug 24 18:02:14 2008 Tanaka Akira <akr@fsij.org>
+
+ * io.c (struct argf): use struct rb_io_enc_t.
+ (argf_enc): follow the struct argf change.
+ (argf_enc2): ditto.
+
+Sun Aug 24 17:36:21 2008 Tanaka Akira <akr@fsij.org>
+
+ * include/ruby/encoding.h (rb_str_transcode): make 3rd argument
+ rb_econv_option_t*.
+
+ * transcode.c (transcode_loop): take rb_econv_option_t* as a argument.
+ (str_transcode0): ditto.
+ (str_transcode): make rb_econv_option_t and call str_transcode0 with
+ it.
+ (rb_str_transcode): take rb_econv_option_t*.
+
+ * io.c (io_fwrite): follow the rb_str_transcode change.
+
+Sun Aug 24 16:47:32 2008 Tanaka Akira <akr@fsij.org>
+
+ * include/ruby/io.h (rb_io_t): make enc and enc2 as struct
+ rb_io_enc_t;
+
+ * io.c: follow the structure change.
+ (convconfig_t): defined by rb_io_enc_t.
+
+Sun Aug 24 16:19:25 2008 Tanaka Akira <akr@fsij.org>
+
+ * include/ruby/encoding.h (rb_econv_opts): declared.
+
+ * transcode.c (rb_econv_opts): defined.
+
+ * io.c (rb_io_extract_modeenc): use rb_econv_opts.
+
+Sun Aug 24 16:06:30 2008 Tanaka Akira <akr@fsij.org>
+
+ * include/ruby/encoding.h (rb_econv_option_t): defined.
+ (rb_econv_open): 3rd arg changed.
+ (rb_econv_open_exc): ditto.
+
+ * io.c (make_writeconv): use rb_econv_option_t.
+ (make_readconv): ditto.
+ (rb_econv_open): take rb_econv_option_t for options.
+ (rb_econv_open_exc): ditto.
+ (transcode_loop): use rb_econv_option_t.
+ (econv_init): use rb_econv_option_t.
+
+Sun Aug 24 15:43:41 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode.c (rb_econv_substr_append): associate dst with destination
+ encoding when dst is created.
+
+Sun Aug 24 15:21:28 2008 Tanaka Akira <akr@fsij.org>
+
+ * include/ruby/encoding.h (rb_str_transcode): add ecflags argument.
+
+ * transcode.c (econv_opts): extracted from str_transcode.
+ (str_transcode_enc_args): extracted from str_transcode.
+ (str_transcode0): extracted from str_transcode.
+ (str_transcode): use econv_opts, str_transcode_enc_args,
+ str_transcode0.
+ (rb_str_transcode): call str_transcode0.
+ (econv_primitive_insert_output): give the additional argument for
+ rb_str_transcode.
+
+ * io.c (make_writeconv): use invalid/undef flags.
+ (io_fwrite): ditto.
+ (rb_scan_open_args): give the additional argument for
+ rb_str_transcode.
+
+Sun Aug 24 13:27:42 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode.c (str_transcode): check last hash only if 0 < argc.
+
+Sun Aug 24 12:22:15 2008 Tanaka Akira <akr@fsij.org>
+
+ * include/ruby/encoding.h (rb_econv_substr_append): renamed from
+ rb_econv_string.
+ (rb_econv_str_convert): declared.
+ (rb_econv_substr_convert): declared.
+ (rb_econv_str_append): declared.
+
+ * io.c (io_fwrite): use rb_econv_str_convert instead of
+ rb_econv_string.
+
+ * transcode.c (rb_econv_substr_append): renamed from rb_econv_string.
+ (rb_econv_str_append): new function.
+ (rb_econv_substr_convert): ditto.
+ (rb_econv_str_convert): ditto.
+
+Sun Aug 24 12:15:12 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * lib/net/http.rb (Net::HTTP#urlencode): str[0] returns char in 1.9.
+ Patch by Junegunn Choi [ruby-core:18368]
+
+Sun Aug 24 12:02:39 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode.c (rb_econv_open): return NULL on error.
+
+Sun Aug 24 11:40:38 2008 Tanaka Akira <akr@fsij.org>
+
+ * include/ruby/encoding.h (rb_econv_open_exc): declared.
+
+ * transcode.c (rb_eNoConverter): new exception.
+ (rb_econv_open_exc): new function.
+ (transcode_loop): use rb_econv_open_exc.
+
+ * io.c (make_writeconv): use rb_econv_open_exc.
+ (make_readconv): ditto.
+
+Sun Aug 24 11:26:54 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * lib/cgi.rb (CGI::unescapeHTML): consider ISO-8859-1.
+ [ruby-dev:35936]
+
+Sun Aug 24 10:55:00 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * enc/emacs_mule.c: support Emacs/Mule internal encoding.
+
+Sun Aug 24 08:03:31 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * strftime.c (daylight, timezone): not provided as dllexport on cygwin,
+ right now.
+
+Sun Aug 24 06:39:05 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * lib/cgi.rb (CGI::unescapeHTML): more encoding sensible unescaping.
+ [ruby-dev:35936]
+
+Sun Aug 24 04:23:19 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * encoding.c (enc_compatible_p): raise TypeError when argument is Encoding.
+
+Sat Aug 23 23:25:47 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * lib/cgi.rb (CGI#out): remove auto encoding conversion and set
+ LANGUAGE. [ruby-dev:35922]
+
+Sat Aug 23 20:01:29 2008 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
+
+ * test/ruby/test_process.rb (TestProcess#test_rlimit_value):
+ add Errno::EINVAL. [ruby-dev:35900]
+
+Sat Aug 23 18:29:29 2008 Tanaka Akira <akr@fsij.org>
+
+ * io.c (rb_scan_open_args): use pop_last_hash.
+
+Sat Aug 23 16:59:42 2008 Tanaka Akira <akr@fsij.org>
+
+ * include/ruby/io.h (FMODE_INVALID_MASK): defined.
+ (FMODE_INVALID_IGNORE): defined.
+ (FMODE_INVALID_REPLACE): defined.
+ (FMODE_UNDEF_MASK): defined.
+ (FMODE_UNDEF_IGNORE): defined.
+ (FMODE_UNDEF_REPLACE): defined.
+
+ * io.c (sym_invalid): defined.
+ (sym_undef): defined.
+ (sym_ignore): defined.
+ (sym_replace): defined.
+ (make_readconv): specify ECONV_INVALID_* and ECONV_UNDEF_* if
+ FMODE_INVALID_* and FMODE_UNDEF_* is set.
+ (rb_io_extract_modeenc): check {:invalid, :undef} => {:replace,
+ :ignore} for FMODE_INVALID_* and FMODE_UNDEF_*.
+
+Sat Aug 23 17:06:57 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * strftime.c (rb_strftime): support more flags.
+
+Sat Aug 23 15:14:10 2008 Koichi Sasada <ko1@atdot.net>
+
+ * vm_opts.h: enable "OPT_TRACE_INSTRUCTION" on default.
+
+Sat Aug 23 14:59:32 2008 Tanaka Akira <akr@fsij.org>
+
+ * include/ruby/encoding.h (ECONV_INVALID_MASK): defined.
+ (ECONV_INVALID_IGNORE): defined.
+ (ECONV_INVALID_REPLACE): defined.
+ (ECONV_UNDEF_MASK): defined.
+ (ECONV_UNDEF_IGNORE): defined.
+ (ECONV_UNDEF_REPLACE): defined.
+
+ * transcode.c (INVALID_IGNORE): removed.
+ (INVALID_REPLACE): removed.
+ (UNDEF_IGNORE): removed.
+ (UNDEF_REPLACE): removed.
+ (rb_econv_convert0): renamed from rb_econv_convert.
+ (rb_econv_convert): defined to call rb_econv_convert0 with
+ replace/ignore behavior moved from transcode_loop.
+ (transcode_loop): replace/ignore behavior removed.
+
+Sat Aug 23 11:23:05 2008 Tanaka Akira <akr@fsij.org>
+
+ * io.c (rb_io_extract_modeenc): check :textmode and :binmode in option
+ hash.
+
+Sat Aug 23 10:48:56 2008 Tanaka Akira <akr@fsij.org>
+
+ * ext/pty/pty.c (pty_getpty): follow rb_io_t's path -> pathv change.
+
+Sat Aug 23 10:42:52 2008 Tanaka Akira <akr@fsij.org>
+
+ * io.c (check_pipe_command): extracted from rb_f_open and rb_io_open.
+ (rb_f_open): use check_pipe_command.
+ (rb_io_open): ditto.
+
+Sat Aug 23 10:13:00 2008 Tanaka Akira <akr@fsij.org>
+
+ * io.c (read_all): fptr->enc2 is 0 if no conversion.
+ (rb_io_getline_fast): ditto.
+ (io_getc): ditto.
+
+Sat Aug 23 09:45:35 2008 Tanaka Akira <akr@fsij.org>
+
+ * include/ruby/io.h (rb_io_t): remove path field and add pathv field.
+ (MakeOpenFile): initialize pathv as Qnil.
+
+ * gc.c: mark pathv field in T_FILE.
+
+ * io.c: follow the rb_io_t field change.
+
+ * file.c: ditto.
+
+ * ext/socket/socket.c: ditto.
+
+Sat Aug 23 01:42:22 2008 Tanaka Akira <akr@fsij.org>
+
+ * include/ruby/io.h (FMODE_TEXTMODE): defined.
+
+ * include/ruby/encoding.h (rb_econv_t): new field: flags.
+ (rb_econv_binmode): declared.
+
+ * io.c (io_unread): text mode hack removed.
+ (NEED_NEWLINE_DECODER): defined.
+ (NEED_NEWLINE_ENCODER): defined.
+ (NEED_READCONV): defined.
+ (NEED_WRITECONV): defined.
+ (TEXTMODE_NEWLINE_ENCODER): defined for windows.
+ (make_writeconv): setup converter with TEXTMODE_NEWLINE_ENCODER for
+ text mode.
+ (io_fwrite): use NEED_WRITECONV. character code conversion is
+ disabled if fptr->writeconv_stateless is nil.
+ (make_readconv): setup converter with
+ ECONV_UNIVERSAL_NEWLINE_DECODER for text mode.
+ (read_all): use NEED_READCONV.
+ (appendline): use NEED_READCONV.
+ (rb_io_getline_1): use NEED_READCONV.
+ (io_getc): use NEED_READCONV.
+ (rb_io_ungetc): use NEED_READCONV.
+ (rb_io_binmode): OS-level text mode test removed. call
+ rb_econv_binmode.
+ (rb_io_binmode_m): call rb_io_binmode_m with write_io as well.
+ (rb_io_flags_mode): return mode string including "t".
+ (rb_io_mode_flags): detect "t" for text mode.
+ (rb_sysopen): always specify O_BINARY.
+
+ * transcode.c (rb_econv_open_by_transcoder_entries): initialize flags.
+ (rb_econv_open): if source and destination encoding is
+ both empty string, open newline converter. last_tc will be NULL in
+ this case.
+ (rb_econv_encoding_to_insert_output): last_tc may be NULL now.
+ (rb_econv_string): ditto.
+ (output_replacement_character): ditto.
+ (transcode_loop): ditto.
+ (econv_init): ditto.
+ (econv_inspect): ditto.
+ (rb_econv_binmode): new function.
+
+Fri Aug 22 21:18:40 2008 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * complex.c (nucomp_div): now behaves as quo.
+
+ * complex.c (nucomp_s_generic_p): has been removed.
+
+ * complex.c (nucomp_to_s): adopts new form.
+
+ * complex.c (nucomp_inspect): ditto.
+
+ * complex.c (string_to_c_internal): ditto and supports polar form.
+
+ * complex.c (rb_complex_polar): new.
+
+ * rational.c (nurat_to_s): do not canonicalize.
+
+ * rational.c (nurat_inspect): adopts new form.
+
+ * rational.c (string_to_r_internal): ditto.
+
+ * include/ruby/intern.h: added a declaration.
+
+ * lib/complex.rb: added an obsolete class method.
+
+ * lib/cmath.rb: use scalar? instead of generic?.
+
+Fri Aug 22 20:06:46 2008 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
+
+ * lib/webrick/server.rb (WEBrick::GenericServer#shutdown):
+ rescue Errno::ENOTCONN and close. [ruby-dev:35896]
+
+ * test/openssl/test_ssl.rb (OpenSSL#start_server): ditto.
+ [ruby-dev:35897]
+
+ * lib/net/imap.rb (Net::IMAP#disconnect): ditto. [ruby-dev:35898]
+
+Fri Aug 22 19:58:27 2008 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * lib/date.rb: no need to require the "lib/rational.rb" any more.
+
+Fri Aug 22 15:47:38 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * lib/cgi.rb: use bytesize instead of size/length.
+
+Fri Aug 22 14:28:05 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * strftime.c (rb_strftime): supported flags and precision for most
+ conversions. [ruby-dev:35906]
+
+Fri Aug 22 14:04:04 2008 Martin Duerst <duerst@it.aoyama.ac.jp>
+
+ * test/ruby/test_transcode.rb: test_shift_jis:
+ fixed comment strings (see r18291)
+
+Fri Aug 22 12:41:47 2008 Tanaka Akira <akr@fsij.org>
+
+ * io.c (rb_io_pid): use PIDT2NUM.
+
+Fri Aug 22 11:36:31 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * dir.c (dir_enc_str_new): set US-ASCII to the path
+ when the path is 7bit string and encoding is ASCII compatible.
+
+ * dir.c (push_glob): set file system encoding when argument encoding
+ is US-ASCII.
+
+Fri Aug 22 11:30:38 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * dir.c (dir_enc_str_new): renamed from dir_enc_str.
+
+ * dir.c (dir_read): use dir_enc_str_new.
+
+ * dir.c (dir_each): ditto.
+
+ * dir.c (push_pattern): ditto.
+
+Fri Aug 22 11:29:10 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * common.mk: remove config.h dependency.
+
+Fri Aug 22 10:52:39 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (gmtime_r): check if reentrant versions are available.
+
+ * time.c (IF_HAVE_GMTIME_R, ASCTIME, GMTIME, LOCALTIME): use reentrant
+ versions if available.
+
+Fri Aug 22 05:29:17 2008 Tanaka Akira <akr@fsij.org>
+
+ * include/ruby/ruby.h (INT2NUM): just use a simple macro on LP64.
+ (UINT2NUM): ditto.
+
+Fri Aug 22 05:10:07 2008 Tanaka Akira <akr@fsij.org>
+
+ * io.c (rb_file_open_generic): take filename as a VALUE.
+ (rb_file_open_internal): ditto.
+ (rb_io_open): ditto.
+ (rb_file_open): pass filename as a VALUE to rb_file_open_internal.
+ (rb_open_file): pass filename as a VALUE to rb_file_open_generic.
+ (open_key_args): pass filename as a VALUE to rb_io_open.
+
+Fri Aug 22 04:33:56 2008 Tanaka Akira <akr@fsij.org>
+
+ * include/ruby/ruby.h: fix previous change for LP64.
+
+Fri Aug 22 03:19:41 2008 Tanaka Akira <akr@fsij.org>
+
+ * include/ruby/ruby.h (NUM2LONG): make it inline function to evaluate
+ the argument only once.
+ `t = Object.new; def t.*(x) p x; 0 end; p Time.at(0, t)' did print x
+ twice.
+ (NUM2INT): ditto.
+ (NUM2LL): ditto.
+ (INT2NUM): make it inline function.
+ (LONG2NUM): ditto.
+ (UINT2NUM): ditto.
+ (ULONG2NUM): ditto.
+
+Fri Aug 22 03:03:22 2008 Tanaka Akira <akr@fsij.org>
+
+ * io.c (rb_io_s_sysopen): mode can be a Bignum.
+
+Fri Aug 22 02:57:03 2008 Tanaka Akira <akr@fsij.org>
+
+ * io.c (rb_io_extract_modeenc): notify coerced to caller.
+ (rb_io_initialize): mode may be a Bignum.
+
+Fri Aug 22 02:42:35 2008 Tanaka Akira <akr@fsij.org>
+
+ * io.c (rb_io_extract_modeenc): use rb_check_to_integer to test
+ integer.
+
+Fri Aug 22 02:25:04 2008 Tanaka Akira <akr@fsij.org>
+
+ * iseq.c (iseq_inspect): don't raise on uninitialized object.
+ show real class name.
+
+Fri Aug 22 02:08:58 2008 Tanaka Akira <akr@fsij.org>
+
+ * io.c (rb_io_initialize): accept hash argument.
+
+Thu Aug 21 23:51:51 2008 Shugo Maeda <shugo@ruby-lang.org>
+
+ * strftime.c (rb_strftime): supported %F and %<precision>N.
+ reverted config.h to ruby.h for Windows.
+
+ * test/ruby/test_time.rb (TestTime::test_strftime): added tests
+ for %F and %N.
+
+ * time.c: documented %F and %N.
+
+Thu Aug 21 20:23:26 2008 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
+
+ * test/ruby/test_m17n_comb.rb (TestM17NComb#test_str_crypt): add
+ key and salt to error message.
+
+Thu Aug 21 19:20:25 2008 Tanaka Akira <akr@fsij.org>
+
+ * file.c (rb_stat_inspect): don't raise if self is not initialized.
+
+Thu Aug 21 19:17:02 2008 Tanaka Akira <akr@fsij.org>
+
+ * process.c (pst_pid): use rb_attr_get to avoid warning on
+ Process::Status.allocate.pid.
+ (pst_inspect): don't raise if self is not initialized.
+
+Thu Aug 21 19:05:40 2008 Tanaka Akira <akr@fsij.org>
+
+ * io.c (io_extract_encoding_option): if internal encoding is not
+ specified, enc is external encoding.
+
+Thu Aug 21 14:22:50 2008 Shugo Maeda <shugo@ruby-lang.org>
+
+ * strftime.c: include ruby/config.h instead of ruby/ruby.h.
+
+ * common.mk: removed the old rule for missing/strftime.c.
+
+Thu Aug 21 09:29:01 2008 Shugo Maeda <shugo@ruby-lang.org>
+
+ * strftime.c (rb_strftime): return "UTC" instead of "GMT".
+
+ * test/ruby/test_time.rb (test_strftime): ditto.
+
+Thu Aug 21 07:59:04 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * test/iconv/test_option.rb (test_ignore_option): skip if iconv
+ doesn't have transliterate.
+
+ * test/iconv/test_option.rb (test_translit_option): ditto.
+
+Thu Aug 21 06:12:56 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/scanf.rb (Scanf::FormatSpecifier#initialize): %i should accept
+ single digit decimal. [ruby-core:18355]
+
+Thu Aug 21 06:02:52 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * range.c (range_initialize_copy): Range is now a Struct.
+ [ruby-core:18353]
+
+ * struct.c (rb_struct_init_copy): made public.
+
+Thu Aug 21 03:09:34 2008 Tanaka Akira <akr@fsij.org>
+
+ * io.c (io_extract_encoding_option): enc2 is external encoding if
+ external encoding and internal encoding is given.
+ (pipe_open): add flags and convconfig argument to initialize
+ fptr->{mode,enc,enc2}.
+ (pipe_open_v): pass flags and convconfig from caller to pipe_open.
+ (pipe_open_s): ditto.
+ (pop_last_hash): new function.
+ (rb_io_s_popen): use last hash as option to specify code conversion.
+ (rb_io_open): specify flags and convconfig arguments for
+ pipe_open_s.
+ (rb_f_backquote): ditto.
+
+Thu Aug 21 02:27:03 2008 Tanaka Akira <akr@fsij.org>
+
+ * io.c (prep_io): local variable renamed.
+ (rb_io_fdopen): ditto.
+ (prep_stdio): ditto.
+
+Thu Aug 21 01:58:59 2008 Shugo Maeda <shugo@ruby-lang.org>
+
+ * configure.in: always check timezone().
+
+ * strftime.c (rb_strftime): prefer timezone/altzone rather than
+ gettimeofday(). The second argument to gettimeofday() is ignored
+ on Solaris.
+
+Thu Aug 21 02:03:08 2008 Tanaka Akira <akr@fsij.org>
+
+ * io.c (open_key_args): simplified.
+
+Thu Aug 21 01:57:03 2008 Tanaka Akira <akr@fsij.org>
+
+ * io.c (open_key_args): IO.foreach(path, rs, limit) didn't work.
+
+Thu Aug 21 01:31:34 2008 Tanaka Akira <akr@fsij.org>
+
+ * io.c (rb_file_sysopen_internal): unused function removed.
+ (rb_file_sysopen): ditto.
+
+Thu Aug 21 01:09:26 2008 Tanaka Akira <akr@fsij.org>
+
+ * io.c: use mode_t for the 3rd argument, permission, of open(2).
+
+Thu Aug 21 00:51:42 2008 Shugo Maeda <shugo@ruby-lang.org>
+
+ * configure.in: removed strftime from AC_REPLACE_FUNCS().
+
+ * include/ruby/missing.h: removed prototype for strftime().
+
+ * missing/strftime.c: removed.
+
+ * time.c (time_to_s): use rb_strftime() instead of strftime(3).
+ (time_zone): ditto.
+
+Thu Aug 21 00:49:50 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * strftime.c: win32 support.
+
+Thu Aug 21 00:20:05 2008 Shugo Maeda <shugo@ruby-lang.org>
+
+ * strftime.c: new file.
+
+ * common.mk (COMMONOBJS): added strftime.$(OBJEXT).
+
+ * time.c (time_strftime): do not use strftime(3). supported
+ %L(millisecond) and %N(nanosecond).
+
+ * test/ruby/test_time.rb: added tests for %L and %N.
+
+Wed Aug 20 23:53:42 2008 Tanaka Akira <akr@fsij.org>
+
+ * io.c (io_set_encoding): removed.
+ (rb_io_open): set up encoding using new argument opt.
+ (open_key_args): call rb_io_open with opt. don't call
+ io_set_encoding.
+
+Wed Aug 20 22:30:33 2008 Tanaka Akira <akr@fsij.org>
+
+ * io.c (rb_file_open_internal): use rb_io_flags_modenum.
+ (rb_io_reopen): use rb_io_flags_modenum and rb_io_modenum_mode.
+ (rb_io_stdio_file): ditto.
+
+Wed Aug 20 22:28:15 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * proc.c (proc_new): use the given class.
+
+ * vm.c (vm_make_proc): added an argument for the class.
+
+Wed Aug 20 22:24:48 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * enum.c (enum_take): get rid of extraneous iteration.
+
+Wed Aug 20 20:32:49 2008 Tanaka Akira <akr@fsij.org>
+
+ * io.c (rb_io_open_with_args): use rb_open_file instead of rb_io_open.
+
+Wed Aug 20 20:16:17 2008 Tanaka Akira <akr@fsij.org>
+
+ * io.c (rb_scan_open_args): extracted from rb_open_file.
+
+Wed Aug 20 19:22:32 2008 Tanaka Akira <akr@fsij.org>
+
+ * io.c (convconfig_t): new type.
+ (rb_io_extract_modeenc): new function.
+ (rb_file_open_generic): new function.
+ (rb_file_open_internal): use rb_file_open_generic.
+ (rb_file_sysopen_internal): use rb_file_open_generic.
+ (rb_open_file): use rb_io_extract_modeenc and rb_file_open_generic.
+ (rb_io_open): call rb_file_open_internal instead of rb_file_open.
+
+Wed Aug 20 19:15:35 2008 Tanaka Akira <akr@fsij.org>
+
+ * io.c (Init_IO): new constants: File::DSYNC, File::RSYNC and
+ File::NOFOLLOW.
+
+Wed Aug 20 18:41:11 2008 Tanaka Akira <akr@fsij.org>
+
+ * io.c (rb_open_file): don't lookup :mode and :perm in opt. it is
+ useless because vmode and perm is overwritten by rb_scan_args
+ anyway.
+
+Wed Aug 20 18:37:20 2008 Tanaka Akira <akr@fsij.org>
+
+ * io.c (open_key_args): meaningless MEMCPY removed.
+
+Wed Aug 20 18:30:58 2008 Tanaka Akira <akr@fsij.org>
+
+ * io.c (prep_io) [cygwin]: use FMODE_BINMODE instead of O_BINARY.
+
+Wed Aug 20 16:39:59 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * array.c (rb_ary_sample): performance improvement for huge array.
+
+Wed Aug 20 12:28:31 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * array.c (rb_ary_sample): get rid of infinite loop. #455
+
+Wed Aug 20 06:09:31 2008 Tanaka Akira <akr@fsij.org>
+
+ * include/ruby/io.h (FMODE_TRUNC): value changed because 0x100 is used
+ as FMODE_NOREVLOOKUP in socket.c
+
+Wed Aug 20 05:19:40 2008 Tanaka Akira <akr@fsij.org>
+
+ * io.c (parse_mode_enc): extracted from mode_enc.
+ (io_extract_encoding_option): extracted from io_set_encoding.
+
+Wed Aug 20 04:17:26 2008 Tanaka Akira <akr@fsij.org>
+
+ * io.c (rb_io_flags_modenum): make it static.
+
+Wed Aug 20 03:36:45 2008 Tanaka Akira <akr@fsij.org>
+
+ * include/ruby/io.h (FMODE_TRUNC): new constant.
+
+ * io.c (rb_io_mode_flags): set FMODE_TRUNC for "w".
+ (rb_io_modenum_flags): set FMODE_TRUNC for O_TRUNC.
+ (rb_io_flags_modenum): new function.
+ (rb_io_mode_modenum): just use rb_io_mode_flags and
+ rb_io_flags_modenum.
+
+Wed Aug 20 02:36:21 2008 Tanaka Akira <akr@fsij.org>
+
+ * io.c (fopen): macro for vms removed. fopen is not used now.
+
+Wed Aug 20 02:27:42 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode.c (rb_econv_open): fix memory leak.
+ (rb_econv_close): ditto.
+ fixed by shinichiro.h. [ruby-dev:35880]
+
+Tue Aug 19 21:50:43 2008 Tanaka Akira <akr@fsij.org>
+
+ * include/ruby/io.h (rb_fopen): declaration removed.
+
+ * io.c (rb_fopen): unused function removed.
+
+Tue Aug 19 21:14:22 2008 Tanaka Akira <akr@fsij.org>
+
+ * include/ruby/io.h (FMODE_READWRITE): define as
+ FMODE_READABLE|FMODE_WRITABLE.
+
+Tue Aug 19 21:13:08 2008 Tanaka Akira <akr@fsij.org>
+
+ * io.c (rb_io_flags_mode): use hexadecimal in error message.
+ (rb_io_modenum_mode): ditto.
+ (rb_io_initialize): ditto.
+
+Tue Aug 19 18:23:40 2008 Tanaka Akira <akr@fsij.org>
+
+ * io.c (rb_io_flags_mode): add a prefix 0 to octal in error message.
+ (rb_io_modenum_mode): ditto.
+
+Tue Aug 19 18:05:45 2008 Tanaka Akira <akr@fsij.org>
+
+ * include/ruby/io.h (FMODE_*): sorted and describe the values in
+ hexadecimal.
+
+Tue Aug 19 17:32:30 2008 Tanaka Akira <akr@fsij.org>
+
+ * ext/openssl/ossl_x509name.c (ossl_x509name_initialize): store the
+ result of d2i_X509_NAME into DATA_PTR(self).
+
+Tue Aug 19 04:54:39 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/rake.rb (FileUtils#ruby): takes care of space containing path.
+ [ ruby-Bugs-21591 ]
+
+Tue Aug 19 01:32:37 2008 Tanaka Akira <akr@fsij.org>
+
+ * io.c (rb_open_file): encoding in mode string was ignored if perm is
+ specified.
+
+Tue Aug 19 01:02:19 2008 Tanaka Akira <akr@fsij.org>
+
+ * io.c (rb_open_file): don't access argv[-1] by
+ File.allocate.instance_eval { initialize }.
+
+Tue Aug 19 00:56:01 2008 Tanaka Akira <akr@fsij.org>
+
+ * re.c (rb_reg_inspect): don't raise for uninitialized Regexp.
+
+Tue Aug 19 00:34:24 2008 Tanaka Akira <akr@fsij.org>
+
+ * io.c (rb_io_check_readable): side effect for STDIN removed.
+ (rb_io_external_encoding): ditto.
+
+Mon Aug 18 23:27:07 2008 Tanaka Akira <akr@fsij.org>
+
+ * io.c (io_ungetbyte): renamed from io_ungetc.
+ (rb_io_ungetbyte): new method.
+ (rb_io_ungetc): push back into character buffer if enc2 is set.
+
+Mon Aug 18 22:41:46 2008 Tanaka Akira <akr@fsij.org>
+
+ * io.c (id_encode): removed.
+
+Mon Aug 18 22:30:07 2008 Tanaka Akira <akr@fsij.org>
+
+ * io.c (make_writeconv): if enc and enc2 is set, convert
+ string.encoding to enc2.
+
+ * include/ruby/io.h: comment changed.
+
+Mon Aug 18 21:02:08 2008 Tanaka Akira <akr@fsij.org>
+
+ * include/ruby/io.h (rb_io_t): new fields: writeconv,
+ writeconv_stateless and writeconv_initialized.
+ (MakeOpenFile): initialize them.
+
+ * include/ruby/encoding.h (rb_econv_stateless_encoding): declared.
+ (rb_econv_string): declared.
+
+ * io.c (make_writeconv): new function.
+ (io_fwrite): use econv.
+ (make_readconv): fix error message.
+ (finish_writeconv): new function.
+ (fptr_finalize): call finish_writeconv.
+ (clear_writeconv): new function.
+ (clear_codeconv): new function to call both clear_readconv and
+ clear_writeconv.
+ (rb_io_fptr_finalize): call clear_codeconv instead of
+ clear_readconv.
+ (mode_enc): ditto.
+ (io_set_encoding): ditto.
+ (argf_next_argv): ditto.
+ (io_encoding_set): ditto.
+
+ * gc.c (gc_mark_children): mark writeconv_stateless in T_FILE.
+
+ * transcode.c (stateless_encoding_i): new function.
+ (rb_econv_stateless_encoding): ditto.
+ (rb_econv_string): ditto.
+
+Mon Aug 18 17:23:38 2008 Tanaka Akira <akr@fsij.org>
+
+ * io.c (clear_readconv): extracted from rb_io_fptr_finalize.
+ (mode_enc): call clear_readconv.
+ (io_set_encoding): ditto.
+ (argf_next_argv): ditto.
+ (io_encoding_set): ditto.
+
+Mon Aug 18 16:54:06 2008 Tanaka Akira <akr@fsij.org>
+
+ * io.c (mode_enc): modify enc and enc2 consistently.
+ (io_set_encoding): ditto.
+ (io_encoding_set): ditto.
+
+Mon Aug 18 13:21:38 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode.c (transcode_search_path): prevent infinite loop by
+ searching a path for self conversion.
+
+Mon Aug 18 12:45:24 2008 Tanaka Akira <akr@fsij.org>
+
+ * io.c (io_enc_str): code conversion removed.
+ (io_enc_str_converted): removed because it is identical to
+ io_enc_str now.
+
+Mon Aug 18 12:12:29 2008 Tanaka Akira <akr@fsij.org>
+
+ * io.c (io_shift_crbuf): add strp argument to append into existing
+ string.
+ (read_all): use econv if enc2 is set.
+ (io_getc): follow the io_shift_crbuf change.
+
+Mon Aug 18 10:35:25 2008 Tanaka Akira <akr@fsij.org>
+
+ * io.c (io_enc_str_converted): new function.
+ (make_readconv): extracted from io_getc.
+ (more_char): ditto.
+ (appendline): use econv via make_readconv and more_char for code
+ conversion.
+ (prepare_getline_args): don't convert record separator.
+ (rb_io_getline_1): don't use rb_io_getline_fast if enc2 is set.
+ (io_getc): use make_readconv and more_char.
+
+Mon Aug 18 08:27:44 2008 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
+
+ * common.mk: fix error in uncommon.mk.
+
+Mon Aug 18 06:10:08 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * common.mk: config.h depends config.status.
+
+Mon Aug 18 03:59:43 2008 Tanaka Akira <akr@fsij.org>
+
+ * io.c (appendline): appendline cannot check character boundary.
+ (rb_io_getline_1): relax limit until character boundary.
+
+Mon Aug 18 02:25:11 2008 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * lib/webrick/cgi.rb (WEBrick::CGI::Socket#eof?): added lacked method.
+
+Sun Aug 17 21:50:22 2008 Tanaka Akira <akr@fsij.org>
+
+ * io.c (prepare_getline_args): io.gets(10,nil) should cause TypeError.
+
+Sun Aug 17 15:58:39 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/mkmf.rb: not check config.h.
+
+ * lib/mkmf.rb (init_mkmf): add include/ruby/backward to $INCFLAGS.
+
+ * include/ruby/backward/{st,util}.h: added for backward compatibility.
+ [ruby-dev:35811]
+
+Sun Aug 17 13:40:04 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode.c (econv_primitive_putback): new method.
+
+Sun Aug 17 13:23:53 2008 Tanaka Akira <akr@fsij.org>
+
+ * include/ruby/encoding.h (rb_econv_putbackable): declared.
+ (rb_econv_putback): ditto.
+
+ * transcode.c (rb_econv_putbackable): implemented.
+ (rb_econv_putback): ditto.
+
+ * io.c (io_getc): put back bytes if possible.
+
+Sun Aug 17 12:00:18 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode.c (make_econv_exception): add several instance variables
+ to exception object.
+ (ecerr_source_encoding): new method:
+ Encoding::ConversionUndefined#source_encoding and
+ Encoding::InvalidByteSequence#source_encoding.
+ (ecerr_destination_encoding): new method:
+ Encoding::ConversionUndefined#destination_encoding and
+ Encoding::InvalidByteSequence#destination_encoding.
+ (econverr_error_char): new method:
+ Encoding::ConversionUndefined#error_char.
+ (econverr_error_bytes): new method:
+ Encoding::ConversionUndefined#error_bytes.
+
+Sun Aug 17 11:43:18 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * random.c (struct MT): packed Mersenne Twister staffs.
+
+ * random.c (struct RandSeed): packed random seed staffs.
+
+Sun Aug 17 08:38:26 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * test/iconv/test_option.rb (test_ignore_option): skip if iconv
+ doesn't have transliterate.
+
+ * test/iconv/test_option.rb (test_translit_option): ditto.
+
+Sun Aug 17 01:29:46 2008 Tanaka Akira <akr@fsij.org>
+
+ * include/ruby/io.h (rb_io_t): new fields: readconv, crbuf, crbuf_off,
+ crbuf_len, crbuf_capa.
+ (MakeOpenFile): initialize them.
+
+ * io.c (io_shift_crbuf): new function.
+ (io_getc): use econv.
+ (rb_io_fptr_finalize): finalize readconv and crbuf.
+
+Sun Aug 17 00:02:07 2008 Tanaka Akira <akr@fsij.org>
+
+ * include/ruby/encoding.h (rb_econv_check_error): declared.
+
+ * transcode.c (make_econv_exception): new function.
+ (transcode_loop): use make_econv_exception.
+ (rb_econv_check_error): defined.
+
+Sat Aug 16 15:23:16 2008 Tanaka Akira <akr@fsij.org>
+
+ * include/ruby/encoding.h (rb_econv_elem_t): fields removed: from and
+ to.
+ (rb_econv_t): new fields: source_encoding_name and
+ destination_encoding_name.
+
+ * transcode.c (rb_econv_open_by_transcoder_entries): initialize the
+ new fields.
+ (rb_econv_open): set up the new fields.
+ (econv_inspect): use the new fields.
+
+Sat Aug 16 14:22:04 2008 Tanaka Akira <akr@fsij.org>
+
+ * include/ruby/encoding.h (rb_econv_t): add fields: in_buf_start,
+ in_data_start, in_data_end, in_buf_end and last_trans_index.
+ (rb_econv_output): removed.
+ (rb_econv_insert_output): declared.
+ (rb_econv_encoding_to_insert_output): declared.
+
+ * enc/trans/newline.trans (rb_universal_newline): stateful_type
+ changed.
+
+ * transcode.c (transcode_restartable0): initialize inchar_start,
+ tc->recognized_len and next_table at beginning of the loop.
+ (rb_econv_open_by_transcoder_entries): initialize new fields.
+ (rb_econv_open): setup last_trans_index.
+ (trans_sweep): last out_buf_start can be non-NULL now.
+ (rb_econv_convert): check last out_buf_start and in_buf_start at
+ first.
+ (rb_econv_output_with_destination_encoding): removed.
+ (econv_just_convert): removed.
+ (rb_econv_output): removed.
+ (econv_primitive_output): method removed.
+ (rb_econv_encoding_to_insert_output): new function.
+ (allocate_converted_string): new function.
+ (rb_econv_insert_output): new function.
+ (econv_primitive_insert_output): new method.
+ (output_replacement_character): use rb_econv_insert_output. unused
+ arguments removed.
+
+Sat Aug 16 09:20:18 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * include/ruby/ruby.h (rb_intern_const): tiny optimization.
+
+ * include/ruby/ruby.h (SSIZET2NUM, NUM2SSIZET, SSIZE_MAX, SSIZE_MIN):
+ macros for ssize_t.
+
+Sat Aug 16 08:11:04 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode_data.h (rb_transcoder_stateful_type_t): defined.
+ (rb_transcoder): add field: stateful_type.
+
+ * tool/transcode-tblgen.rb: generate stateful_type field as
+ stateless_converter.
+
+ * enc/trans/iso2022.trans: follow rb_transcoder change.
+
+ * enc/trans/newline.trans: ditto.
+
+ * enc/trans/utf_16_32.trans: ditto.
+
+Fri Aug 15 23:07:48 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode.c (econv_just_convert): extracted from rb_econv_output.
+ (rb_econv_output): use econv_just_convert.
+ (econv_primitive_output): new method.
+
+Fri Aug 15 19:57:01 2008 Tanaka Akira <akr@fsij.org>
+
+ * include/ruby/encoding.h (rb_econv_output): add str_encoding
+ argument.
+
+ * transcode.c (get_replacement_character): add repl_enc_ptr argument.
+ (rb_econv_output_with_destination_encoding): renamed from
+ rb_econv_output and make it static.
+ (rb_econv_output): convert str and call
+ rb_econv_output_with_destination_encoding.
+ (output_replacement_character): follow above interface change.
+
+Fri Aug 15 19:33:57 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * string.c (rb_str_drop_bytes): use memmove.
+
+Fri Aug 15 18:33:22 2008 Tanaka Akira <akr@fsij.org>
+
+ * include/ruby/encoding.h (rb_econv_t): add error_tc in last_error.
+
+ * transcode.c (rb_econv_convert): fill error_tc.
+
+Fri Aug 15 18:10:49 2008 Tanaka Akira <akr@fsij.org>
+
+ * include/ruby/encoding.h (rb_econv_t): new field: last_error.
+
+ * transcode.c (rb_trans_conv): new argument: result_position_ptr.
+ (rb_econv_convert): fill last_error.
+ (econv_result_to_symbol): extracted from econv_primitive_convert.
+ (econv_primitive_errinfo): new method.
+
+Fri Aug 15 17:39:05 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * common.mk (parse.{c,h}): creates in the dependency order.
+
+Fri Aug 15 16:59:30 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * vm_core.h (exec_event_hooks): skips RubyVM::FrozenCore.
+
+ * vm.c (Init_VM): get rid of SEGV in a trace proc.
+
+Fri Aug 15 09:33:48 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode.c (conv_init): check empty name.
+
+Fri Aug 15 09:03:54 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode.c (econv_init): don't create dummy encoding if
+ rb_econv_open is failed.
+ (make_dummy_encoding): new function extracted from make_encoding.
+ (make_encoding): removed.
+
+Fri Aug 15 01:07:16 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * common.mk ({$(srcdir)}.y.c): escape backslash.
+
+Fri Aug 15 01:05:39 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode.c (econv_primitive_convert): set destination_buffer
+ encoding.
+
+Fri Aug 15 00:52:40 2008 Tanaka Akira <akr@fsij.org>
+
+ * include/ruby/encoding.h (rb_econv_output): declared.
+
+ * transcode_data.h (rb_transcoder): add resetsize_func field.
+
+ * enc/trans/iso2022.trans (iso2022jp_reset_sequence_size): defined.
+ (rb_EUC_JP_to_ISO_2022_JP): provide resetsize_func.
+
+ * tool/transcode-tblgen.rb: set NULL for resetsize_func.
+
+ * transcode.c (rb_econv_output): new function for inserting output.
+ (output_replacement_character): use rb_econv_output.
+ (transcode_loop): check return value of
+ output_replacement_character.
+
+Thu Aug 14 23:47:21 2008 Tanaka Akira <akr@fsij.org>
+
+ * include/ruby/encoding.h (ECONV_UNIVERSAL_NEWLINE_DECODER): defined.
+ (ECONV_CRLF_NEWLINE_ENCODER): ditto.
+ (ECONV_CR_NEWLINE_ENCODER): ditto.
+ (ECONV_PARTIAL_INPUT): ditto.
+ (ECONV_OUTPUT_FOLLOWED_BY_INPUT): ditto.
+
+ * transcode.c: use ECONV_* defined as above.
+
+Thu Aug 14 23:35:21 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode.c: local variable renamed.
+
+Thu Aug 14 23:22:24 2008 Tanaka Akira <akr@fsij.org>
+
+ * include/ruby/encoding.h (rb_econv_result_t): moved from
+ transcode_data.h.
+ (rb_econv_elem_t): ditto.
+ (rb_econv_t): ditto. source_encoding and destination_encoding field
+ is added.
+ (rb_econv_open): declared.
+ (rb_econv_convert): ditto.
+ (rb_econv_close): ditto.
+
+ * transcode.c (rb_econv_open_by_transcoder_entries): initialize
+ source_encoding and destination_encoding field as NULL.
+ (rb_econv_open): make it external linkage.
+ (rb_econv_close): ditto.
+ (rb_econv_convert): ditto. renamed from rb_econv_conv.
+ (make_encoding): new function.
+ (econv_init): use make_encoding and store rb_encoding* in
+ rb_econv_t.
+ (econv_source_encoding): new method
+ Encoding::Converter#source_encoding.
+ (econv_destination_encoding): new method
+ Encoding::Converter#destination_encoding.
+
+Thu Aug 14 22:44:32 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode_data.h (rb_econv_result_t): change enumeration
+ constant's prefix: transcode_ to econv_.
+
+ * transcode.c: follow the constant prefix change.
+
+Thu Aug 14 21:34:41 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode.c (econv_init): accept Encoding object as source_encoding
+ and destination_encoding.
+
+Thu Aug 14 21:10:00 2008 Tanaka Akira <akr@fsij.org>
+
+ * encoding.c (rb_filesystem_encoding): use default external encoding
+ for Unix.
+
+ * dir.c (dir_initialize): don't cache fs_encoding.
+
+Thu Aug 14 20:58:57 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode.c (rb_econv_open_by_transcoder_entries): renamed from
+ rb_trans_open_by_transcoder_entries.
+
+Thu Aug 14 20:56:28 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode.c (econv_max_output): removed.
+
+Thu Aug 14 20:52:55 2008 Tanaka Akira <akr@fsij.org>
+
+ * tool/transcode-tblgen.rb: check unexpected actions.
+
+Thu Aug 14 20:25:52 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode_data.h (transcode_invalid_byte_sequence): renamed from
+ transcode_invalid_input.
+ (transcode_destination_buffer_full): renamed from transcode_obuf_full.
+ (transcode_source_buffer_empty): renamed from transcode_ibuf_empty.
+ (rb_econv_result_t): renamed from rb_trans_result_t.
+ (rb_econv_elem_t): renamed from rb_trans_elem_t.
+ (rb_econv_t): renamed from rb_trans_t.
+
+ * transcode.c (UNIVERSAL_NEWLINE_DECODER): renamed from
+ UNIVERSAL_NEWLINE.
+ (CRLF_NEWLINE_ENCODER): renamed from CRLF_NEWLINE.
+ (CR_NEWLINE_ENCODER): renamed from CR_NEWLINE.
+ (rb_econv_open): renamed from rb_trans_open.
+ (rb_econv_close): renamed from rb_trans_close.
+
+Thu Aug 14 19:41:42 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode.c (load_transcoder): unused function removed.
+ (rb_transcoding_open): ditto.
+
+Thu Aug 14 17:57:05 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * include/ruby/encoding.h (rb_enc_ispunct): added.
+
+ * common.mk (COMMONOBJS), inits.c (rb_call_inits): id.c is now
+ included from parse.c.
+
+ * id.c (Init_id), id.h (ruby_method_ids): added IDs used by VM.
+
+ * parse.y (global_symbols): added rooms for VM IDs.
+
+ * parse.y (rb_intern3, rb_id2str): single punctuation symbol is now
+ same as char code.
+
+Thu Aug 14 17:46:21 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (union tmpyystype): no longer needed, since YYSTYPE is
+ defined in parse.h now.
+
+Thu Aug 14 17:27:07 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * version.c (Init_version): add RUBY_ENGINE constant.
+
+Thu Aug 14 15:34:10 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode.c (rb_econv_conv): new function. it doesn't consume
+ input too much, even for multilevel conversion.
+ (transcode_loop): use rb_econv_conv.
+ (econv_primitive_convert): ditto.
+
+Thu Aug 14 15:27:42 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * include/ruby/defines.h (RUBY_ALIAS_FUNCTION): fallback definition.
+
+Thu Aug 14 15:08:17 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode_data.h (rb_trans_result_t): new enumeration constant:
+ transcode_output_followed_by_input.
+
+ * transcode.c (OUTPUT_FOLLOWED_BY_INPUT): new flag.
+ (transcode_restartable0): suspend when output followed by input if
+ OUTPUT_FOLLOWED_BY_INPUT is specified.
+ (trans_sweep): check OUTPUT_FOLLOWED_BY_INPUT.
+ (rb_trans_conv): support OUTPUT_FOLLOWED_BY_INPUT.
+ (econv_primitive_convert): return :output_followed_by_input for
+ transcode_output_followed_by_input.
+
+Thu Aug 14 14:57:46 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * gc.c (getrusage_time): should return the value.
+
+ * thread.c (rb_thread_priority_set): get rid of C99 feature.
+
+ * transcode.c (transcode_search_path): ditto.
+
+ * vm.c (REWIND_CFP): get rid of statement expressions.
+
+Thu Aug 14 14:13:39 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * vm.c (Init_VM): hide FrozenCore.
+
+Thu Aug 14 12:20:36 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * transcode.c (load_transcoder): suppress warning.
+
+ * missing/vsnprintf.c (BSD_vfprintf): ditto.
+
+Thu Aug 14 12:01:39 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (gnumake): check for GNU make.
+
+ * Makefile.in (uncommon.mk): includes filtered common.mk.
+
+ * common.mk (parse.h): workaround for nmake.
+
+Thu Aug 14 06:09:12 2008 Koichi Sasada <ko1@atdot.net>
+
+ * thread.c (rb_thread_execute_interrupts): switch event
+ should be occur only once.
+
+Thu Aug 14 05:36:36 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * common.mk: parse.h depends on parse.c.
+
+ * common.mk: hash.o depends on $(ID_H_INCLUDES).
+
+Thu Aug 14 02:45:16 2008 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
+
+ * test/ruby/test_file_exhaustive.rb (TestFileExhaustive#setup):
+ set group of tmpdir. [ruby-dev:35633]
+
+Thu Aug 14 15:50:30 2008 Giuseppe Bilotta <giuseppe.bilotta@gmail.com>
+
+ * hash.c (set_default): fix rdoc. #441
+
+Thu Aug 14 02:23:31 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode.c (econv_primitive_convert): add output_byteoffset
+ argument.
+
+Thu Aug 14 00:43:53 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (rb_cv_gcc_function_alias): checks alias attribute.
+
+ * string.c (alias_func): replaced with RUBY_ALIAS_FUNCTION.
+
+Wed Aug 13 23:42:49 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * common.mk (parse.h): fake rule.
+
+Wed Aug 13 23:15:58 2008 Shugo Maeda <shugo@ruby-lang.org>
+
+ * test/ruby/test_thread.rb (test_list): call Thread.pass to run t1.
+ fixed [ruby-core:18264].
+
+Wed Aug 13 23:05:51 2008 TAKAO Kouji <kouji@takao7.net>
+
+ * string.c (alias_func): changed to 'weak, alias' from 'alias' for
+ Mac OSX. (closes #429)
+
+Wed Aug 13 19:40:12 2008 Koichi Sasada <ko1@atdot.net>
+
+ * gc.c: count only freed object as freelist size.
+
+Wed Aug 13 18:34:22 2008 Shugo Maeda <shugo@ruby-lang.org>
+
+ * marshal.c (marshal_load): set arg.untrust properly.
+
+Wed Aug 13 17:47:09 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode.c (econv_inspect): new method.
+
+Wed Aug 13 17:35:58 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode.c (transcode_restartable0): several local variables
+ removed.
+
+Wed Aug 13 17:35:23 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * hash.c (rb_hash_set_default_proc): add new method. a patch from
+ Giuseppe Bilotta. #419
+
+Wed Aug 13 17:31:12 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * vm_insnhelper.c (caller_setup_args): should ensure if the value
+ from to_proc is a real Proc.
+
+Wed Aug 13 17:28:29 2008 Akinori MUSHA <knu@iDaemons.org>
+
+ * common.mk: regint.h no longer includes vm_core.h.
+
+Wed Aug 13 17:26:44 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode_data.h (rb_transcoding): add fields: writebuf_off,
+ writebuf_len and writebuf.
+ (TRANSCODING_WRITEBUF): new macro.
+
+ * transcode.c (transcode_restartable0): output until output buffer is
+ really full.
+ (rb_transcoding_open_by_transcoder): initialize writebuf_len,
+ writebuf_off and writebuf.
+ (rb_transcoding_close): finalize writebuf.
+
+Wed Aug 13 17:18:37 2008 Koichi Sasada <ko1@atdot.net>
+
+ * thread.c (rb_thread_check_ints): added. please note that
+ this function may cause ruby's thread switching.
+
+ * include/ruby/intern.h: ditto.
+
+ * regint.h: use rb_thread_check_ints() instead of
+ RUBY_CHECK_INTS() directly.
+
+Wed Aug 13 17:01:36 2008 Akinori MUSHA <knu@iDaemons.org>
+
+ * golf_prelude.rb, lib/set.rb (TC_Set#test_each),
+ test/readline/test_readline_history.rb (Readline#test_each__enumerator),
+ test/ruby/test_array.rb (TestArray#test_collect),
+ test/ruby/test_enumerator.rb (TestEnumerator#test_initialize):
+ Enumerable::Enumerator is now called Enumerator.
+
+ * lib/rinda/tuplespace.rb (Rinda::TupleBag#initialize): Use
+ enum_for instead of hardcoding Enumerable::Enumerator.
+
+Wed Aug 13 16:40:57 2008 Koichi Sasada <ko1@atdot.net>
+
+ * thread.c, vm_core.h: add manual priority support
+ using time slice. if you enable USE_NATIVE_THREAD_PRIORITY
+ macro, this mechanism is ignored. [ruby-dev:33124]
+
+ * thread_pthread.c, thread_win32.c: ditto.
+
+ * test/ruby/test_thread.rb: fix test parameter.
+
+Wed Aug 13 16:02:14 2008 Shugo Maeda <shugo@ruby-lang.org>
+
+ * object.c (rb_obj_untrusted): new method Object#untrusted?.
+ (rb_obj_untrust): new method Object#untrust.
+ (rb_obj_trust): new method Object#trust.
+
+ * array.c, debug.c, time.c, include/ruby/ruby.h, re.c, variable.c,
+ string.c, io.c, dir.c, vm_method.c, struct.c, class.c, hash.c,
+ ruby.c, marshal.c: fixes for Object#untrusted?.
+
+ * test/ruby/test_module.rb, test/ruby/test_array.rb,
+ test/ruby/test_object.rb, test/ruby/test_string.rb,
+ test/ruby/test_marshal.rb, test/ruby/test_hash.rb: added tests for
+ Object#untrusted?.
+
+Wed Aug 13 16:13:58 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * test/ruby/test_m17n.rb: follow EncodingCompatibilityError.
+
+ * test/ruby/test_mixed_unicode_escapes.rb: ditto.
+
+ * test/ruby/enc/test_utf16.rb: ditto.
+
+Wed Aug 13 16:05:50 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * time.c (time_cmp): retry with right hand operand if its not a
+ time object. [ruby-dev:35011]
+
+Wed Aug 13 15:51:22 2008 Akinori MUSHA <knu@iDaemons.org>
+
+ * string.c: Apply a temporary fix to fix build on OS X. A real
+ fix will follow later.
+
+Wed Aug 13 15:25:09 2008 Akinori MUSHA <knu@iDaemons.org>
+
+ * enumerator.c (Init_Enumerator): Rename Enumerable::Enumerator to
+ just Enumerator.
+
+Wed Aug 13 15:13:57 2008 Akinori MUSHA <knu@iDaemons.org>
+
+ * common.mk (prelude.c, golf_prelude.c): Using $(COMPILE_PRELUDE)
+ requires $(RBCONFIG).
+
+Wed Aug 13 15:08:04 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode.c (econv_init): make flags argument optional.
+ (econv_primitive_convert): ditto.
+
+Wed Aug 13 14:55:27 2008 Akinori MUSHA <knu@iDaemons.org>
+
+ * common.mk (realclean-local): Remove parse.h as well.
+
+ * common.mk: Add missing dependencies regarding vm_core.h, id.h,
+ parse.c (parse.h), etc..
+
+Wed Aug 13 14:45:37 2008 Tanaka Akira <akr@fsij.org>
+
+ * enc/trans/newline.trans (rb_crlf_newline): new transcoder.
+ (rb_cr_newline): new transcoder.
+
+ * transcode.c (trans_open_i): one more extra room for input newline
+ converter.
+ (rb_trans_open): crlf newline and cr newline implemented.
+ (Init_transcode): Encoding::Converter::CRLF_NEWLINE and
+ Encoding::Converter::CR_NEWLINE defined.
+
+Wed Aug 13 14:22:16 2008 Tanaka Akira <akr@fsij.org>
+
+ * enc/trans/newline.trans: new file.
+
+ * transcode_data.h (rb_trans_t): add last_tc field.
+
+ * transcode.c (UNIVERSAL_NEWLINE): defined.
+ (CRLF_NEWLINE): defined.
+ (CR_NEWLINE): defined.
+ (rb_trans_open_by_transcoder_entries): initialize last_tc.
+ (trans_open_i): allocate one more room for output newline converter.
+ (rb_trans_open): universal newline implemented.
+ (more_output_buffer): take max_output argument instead ts.
+ (output_replacement_character): take tc argument instead of ts.
+ (transcode_loop): use last_tc field.
+ (econv_init): add flags argument for rb_trans_open.
+ (Init_transcode): Encoding::Converter::UNIVERSAL_NEWLINE defined.
+
+Wed Aug 13 14:00:19 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * common.mk (parse.c): generates parse.h together.
+
+ * id.c, id.h: use constants for parser tokens.
+
+Wed Aug 13 13:47:05 2008 Koichi Sasada <ko1@atdot.net>
+
+ * vm.c: rewind cfp to show proper backtrace.
+ [ruby-dev:35820]
+
+Wed Aug 13 13:09:09 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * tool/make-snapshot: fix for clean up.
+
+Wed Aug 13 11:45:51 2008 Akinori MUSHA <knu@iDaemons.org>
+
+ * vm_core.h: Declare rb_iseq_clone, which is used in class.c.
+
+Wed Aug 13 11:39:19 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode.c (transcode_search_path): return the length of converter
+ path.
+ (load_transcoder_entry): renamed from load_transcoder.
+ (load_transcoder): new function for loading transcoder by encoding
+ names.
+ (rb_transcoding_open_by_transcoder): extracted from
+ rb_transcoding_open.
+ (rb_transcoding_open): use load_transcoder and
+ rb_transcoding_open_by_transcoder.
+ (rb_trans_open_by_transcoder_entries): new function.
+ (trans_open_i): construct entries array.
+ (rb_trans_open): use rb_trans_open_by_transcoder_entries.
+
+Wed Aug 13 10:45:29 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * tool/make-snapshot: try to find exported directory.
+
+Wed Aug 13 10:16:35 2008 TAKAO Kouji <kouji@takao7.net>
+
+ * doc/NEWS: Mention the Readline.vi_editing_mode?,
+ Readline.emacs_editing_mode?, Readline::HISTORY[] and
+ Readline::HISTORY.clear change.
+
+Wed Aug 13 08:03:02 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode.c (econv_primitive_convert): add output_size argument.
+
+Wed Aug 13 07:41:03 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode.c (rb_trans_conv): report last transcode_obuf_full.
+ (econv_max_output): new method Encoding::Converter#max_output.
+
+Wed Aug 13 02:46:01 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * error.c (rb_eEncCompatError): add Exception.
+
+ * include/ruby/ruby.h: ditto.
+
+ * encoding.c (rb_enc_check): use rb_eEncCompatError.
+
+ * string.c (rb_enc_cr_str_buf_cat): ditto.
+
+ * string.c (rb_str_sub_bang): ditto.
+
+ * string.c (rb_str_hex): ditto.
+
+ * string.c (rb_str_oct): ditto.
+
+Wed Aug 13 02:36:47 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * transcode.c (str_transcode): fix error message.
+
+Tue Aug 12 23:42:31 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode.c (rb_cEncodingConverter): new class Encoding::Converter.
+ (econv_free): new function.
+ (econv_s_allocate): ditto.
+ (econv_init): ditto.
+ (check_econv): ditto.
+ (econv_primitive_convert): new method.
+ (Init_transcode): define Encoding::Converter.
+
+Tue Aug 12 23:16:09 2008 Tanaka Akira <akr@fsij.org>
+
+ * string.c (rb_str_splice_0): call rb_str_drop_bytes, not rb_str_drop.
+
+Tue Aug 12 19:11:05 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * tool/make-snapshot: fix for enc.mk.
+
+Tue Aug 12 19:08:42 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * string.c (rb_str_drop_bytes): new function to drop first bytes.
+
+Tue Aug 12 18:58:48 2008 Koichi Sasada <ko1@atdot.net>
+
+ * vm.c, vm_insnhelper.c (vm_define_method): move
+ function place.
+
+Tue Aug 12 18:56:52 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * string.c: more descriptive aliases of rb_str_new[2-5].
+ [ruby-dev:35615]
+
+Tue Aug 12 18:51:29 2008 TAKAO Kouji <kouji@takao7.net>
+
+ * gc.c (getrusage_time): Returned effective value on Windows.
+
+Tue Aug 12 18:51:11 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode.c (rb_trans_open): free ts before raise.
+
+Tue Aug 12 18:46:36 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ext/bigdecimal/bigdecimal.c (BigDecimalCmp): should not ignore
+ <=> comparison. [ruby-dev:35732]
+
+Tue Aug 12 18:43:10 2008 Tanaka Akira <akr@fsij.org>
+
+ * enc/trans/make_transdb.rb: *.erb.c is not used anymore.
+
+Tue Aug 12 18:32:33 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode_data.h (rb_trans_elem_t): new field: from and to.
+
+ * transcode.c (trans_open_i): just record from and to.
+ (rb_trans_open): load transcodings.
+
+Tue Aug 12 18:32:03 2008 Akinori MUSHA <knu@iDaemons.org>
+
+ * ext/syslog/syslog.c (mSyslog_open): Use of Check_SafeStr() is
+ deprecated.
+ (mSyslogConstants_LOG_MASK, mSyslogConstants_LOG_UPTO): Use
+ NUM2INT() instead of FIX2INT() when the type of an given object
+ is not determined.
+
+Tue Aug 12 18:14:00 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * tool/transcode-tblgen.rb (#transcode_tblgen): slight message
+ improvement.
+
+Tue Aug 12 17:16:58 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode.c (trans_open_i): check the result of rb_transcoding_open.
+
+Tue Aug 12 16:23:32 2008 Narihiro Nakamura <authorNari@gmail.com>
+
+ * gc.c (gc_profile_result): use rb_str_catf.
+
+Tue Aug 12 16:13:45 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode_data.h (TRANSCODE_ERROR): removed.
+
+ * tool/transcode-tblgen.rb: 8bit byte of ASCII-8BIT is a valid
+ (but unique to ASCII-8BIT) character.
+
+ * transcode.c (rb_eConversionUndefined): new error.
+ (rb_eInvalidByteSequence): ditto.
+
+Tue Aug 12 16:08:51 2008 Minero Aoki <aamine@loveruby.net>
+
+ * lib/net/pop.rb: POP3Command should export @socket since POP
+ calls #socket.
+
+Tue Aug 12 16:06:28 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * sprintf.c, util.c (quorem, nrv_alloc, dtoa): enabled floating point
+ support.
+
+Tue Aug 12 15:52:45 2008 Narihiro Nakamura <authorNari@gmail.com>
+
+ * gc.c (gc_profile_result): use sprintf.
+
+Tue Aug 12 15:37:40 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (rb_str_intern): should check symbol table overflow.
+
+Tue Aug 12 15:31:04 2008 Minero Aoki <aamine@loveruby.net>
+
+ * lib/net/http.rb (send_request_with_body): Content-Length should
+ be byte length of string. (closes #203)
+
+Tue Aug 12 15:17:06 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * enc/depend: (transvpath_prefix): prefix has no extension, so replace
+ %s with "".
+
+Tue Aug 12 15:03:43 2008 TAKAO Kouji <kouji@takao7.net>
+
+ * test/readline/test_readline.rb (TestReadline#test_safe_level_4):
+ tested Readline.vi_editing_mode? and Readline.emacs_editing_mode?.
+
+Tue Aug 12 14:25:09 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * enc/Makefile.in (.SUFFIXES): renamed to .trans.
+
+ * enc/make_encmake.rb: added --encs and --no-encs options.
+
+ * enc/depend (TRANSVPATH): fix for nmake.
+
+Tue Aug 12 14:19:53 2008 Minero Aoki <aamine@loveruby.net>
+
+ * lib/net/https.rb: suppress syntax warning.
+
+Tue Aug 12 14:15:51 2008 Minero Aoki <aamine@loveruby.net>
+
+ * lib/net/http.rb (Net::HTTP#initialize): initialize net/https
+ variables to suppress syntax warning.
+
+Tue Aug 12 14:15:13 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/dl/cptr.c (rb_dlptr_s_to_ptr): fixed shadowing variable.
+
+Tue Aug 12 10:25:14 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * array.c (rb_ary_delete): Array#delete to return deleted element.
+
+Tue Aug 12 10:18:01 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * test/win32ole/test_err_in_callback.rb: do not require 'mkmf'
+ unless WIN32OLE is defined.
+
+Tue Aug 12 07:41:13 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode_data.h (rb_transcoder): add resetstate_func field for
+ resetting a state of stateful encoding.
+
+ * enc/trans/iso2022.trans (rb_EUC_JP_to_ISO_2022_JP): specify
+ finish_eucjp_to_iso2022jp for resetstate_func.
+
+ * tool/transcode-tblgen.rb: specify NULL for resetstate_func.
+
+ * transcode.c (output_replacement_character): call resetstate_func
+ before appending the replacement character.
+
+Tue Aug 12 07:19:24 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode.c (get_replacement_character): extracted from
+ output_replacement_character.
+
+Tue Aug 12 07:00:02 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode_data.h (rb_transcoder): typedef at first.
+
+Tue Aug 12 06:48:35 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode.c (rb_trans_conv): find second last error.
+
+Tue Aug 12 00:43:44 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode_data.h (rb_trans_result_t): new type.
+ (rb_trans_elem_t): new type.
+ (rb_trans_t): new type.
+
+ * transcode.c (transcode_dispatch_cb): removed.
+ (transcode_dispatch): removed.
+ (rb_transcoding_result_t): moved to rb_trans_result_t in
+ transcode_data.h.
+ (transcode_restartable0): goto follow_info when FUNsi.
+ (rb_transcoding_open): use get_transcoder_entry.
+ (rb_trans_open): new function.
+ (rb_trans_conv): ditto.
+ (rb_trans_close): ditto.
+ (trans_open_i): ditto.
+ (trans_sweep): ditto.
+ (more_output_buffer): take rb_trans_t instead of rb_transcoding as
+ an argument.
+ (transcode_loop): take from_encoding and to_encoding instead of tr
+ as arguments. use rb_trans_open/rb_trans_conv/rb_trans_close.
+ (str_transcode): don't use transcode_dispatch.
+
+Mon Aug 11 20:37:05 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * iseq.c (rb_iseq_clone): should preserve cref_stack link.
+
+Mon Aug 11 20:27:12 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ext/dl/cfunc.c (rb_dlcfunc_call): add taint check.
+
+ * ext/dl/dl.c (rb_dl_malloc): add rb_secure(2).
+
+ * ext/dl/dl.c (rb_dl_realloc): ditto.
+
+ * ext/dl/dl.c (rb_dl_free): ditto.
+
+ * ext/dl/dl.c (rb_dl_ptr2value): ditto.
+
+Mon Aug 11 20:11:21 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * gc.c (getrusage_time): works only if RUSAGE_SELF is defined right
+ now.
+
+ * gc.c (gc_profile_result): C99.
+
+Mon Aug 11 18:57:38 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * array.c (rb_ary_sample): rename #choice to #sample. in
+ addition, sample takes optional argument, a la #first.
+
+Mon Aug 11 18:28:02 2008 Narihiro Nakamura <authorNari@gmail.com>
+
+ * gc.c: added GC::Profiler.
+
+Mon Aug 11 17:26:16 2008 TAKAO Kouji <kouji@takao7.net>
+
+ * ext/readline/README.ja: added API document for
+ Readline.vi_editing_mode? and Readline.emacs_editing_mode?.
+
+ * ext/readline/extconf.rb: checked rl_editing_mode variable in
+ Readline library.
+
+ * ext/readline/readline.c (readline_s_emacs_editing_mode_p): added
+ Readline.emacs_editing_mode? method.
+ (readline_s_vi_editing_mode_p): added Readline.vi_editing_mode?
+ method.
+ (Init_readline): ditto.
+
+Mon Aug 11 16:56:40 2008 TAKAO Kouji <kouji@takao7.net>
+
+ * test/readline/test_readline.rb: added test for Readline's class
+ methods.
+
+Mon Aug 11 16:39:23 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * class.c (clone_method): should copy cbase in cref as well.
+ [ruby-dev:35116]
+
+ * iseq.c (iseq_mark): mark original iseq object.
+
+ * iseq.c (iseq_free): do not free internal data if they have
+ original iseq to belong.
+
+ * iseq.c (rb_iseq_clone): a new function to clone iseq value.
+
+Mon Aug 11 16:34:48 2008 Tanaka Akira <akr@fsij.org>
+
+ * enc/trans/iso2022.trans: renamed from iso2022.erb.c.
+
+ * enc/trans/single_byte.trans: ditto.
+
+ * enc/trans/utf_16_32.trans: ditto.
+
+ * enc/trans/korean.trans: ditto.
+
+ * enc/trans/japanese.trans: ditto.
+
+ * enc/depend: follow the renaming.
+
+ * tool/build-transcode: ditto.
+
+Mon Aug 11 15:09:23 2008 Tanaka Akira <akr@fsij.org>
+
+ * configure.in (rb_cv_broken_glibc_ia64_erfc): renamed from
+ rb_broken_glibc_ia64_erfc.
+ [ruby-core:18228]
+
+Mon Aug 11 10:04:34 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode_data.h (rb_transcoding): rename fields.
+ readlen -> recognized_len.
+ feedlen -> readagain_len.
+
+ * transcode.c: follow the field renaming.
+
+Sun Aug 10 22:34:55 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode.c (transcode_restartable0): invalid handling simplified.
+ (transcode_restartable): use PARTIAL_INPUT for converting buffered
+ input.
+
+Sun Aug 10 22:24:24 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * encoding.c: include util.h. [ruby-dev:35715]
+
+ * common.mk: ditto.
+
+Sun Aug 10 20:59:54 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode_data.h (rb_transcoding): new field: flags.
+
+ * transcode.c (load_transcoder): extracted from transcode_dispatch_cb.
+ (rb_transcoding_result_t): renamed from transcode_result_t.
+ (rb_transcoding_open): new function.
+ (rb_transcoding_convert): ditto.
+ (rb_transcoding_close): ditto.
+ (transcode_loop): use rb_transcoding_open, rb_transcoding_convert
+ and rb_transcoding_close.
+ (str_transcode): don't need rb_transcoding.
+
+Sun Aug 10 18:09:16 2008 Tanaka Akira <akr@fsij.org>
+
+ * tool/transcode-tblgen.rb: record checksum of
+ transcode-tblgen.rb itself.
+
+Sun Aug 10 12:34:41 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * config.guess ({powerpc-apple,i586-pc}-haiku): re-applied r18403.
+ [ruby-core:18110]
+
+ * config.{guess,sub}: updated to automake-1.10.1.
+
+Sun Aug 10 11:45:15 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * enc/Makefile.in (make-workdir): use MAKEDIRS.
+
+ * enc/depend: makes target directory before compile/link.
+
+ * tool/transcode-tblgen.rb: creates target directory.
+
+Sun Aug 10 11:30:48 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode.c: rename my_transcoding to tc and my_transcoder to tr.
+
+Sun Aug 10 11:15:55 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode_data.h (rb_transcoding): add feedlen field.
+
+ * transcode.c (transcode_restartable0): renamed from
+ transcode_restartable.
+ save input buffer into feed buffer if next character is started the
+ point before input buffer. for example, "\x00\xd8\x01" then "\x02"
+ in UTF-16LE. \x02 causes invalid and next character is started from
+ \x01.
+ (transcode_restartable): new function to call
+ transcode_restartable0. if feed buffer is not empty, convert it at
+ first.
+
+Sun Aug 10 11:02:58 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * common.mk (extconf): use MAKEDIRS.
+
+Sun Aug 10 09:35:12 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/irb.rb (IRB::Irb#inspect): instance_variables returns symbols
+ instead of strings now. [ruby-dev:34930]
+
+Sun Aug 10 09:22:14 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode.c (transcode_char_start): refactored to remove readlen
+ argument.
+ (transcode_restartable): refactored to remove readlen variable.
+
+Sun Aug 10 08:56:14 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * gc.c (STACK_LEVEL_MAX, ruby_stack_length): returns size_t.
+ [ruby-core:18207]
+
+ * configure.in (rb_cv_missing__dtos18, rb_cv_missing_fconvert),
+ ext/digest/md5/md5.c, ext/openssl/ossl.c (main),
+ ext/socket/extconf.rb (ipv6, wide-getaddrinfo): main should be int.
+
+ * main.c (main), win32/winmain.c, wince/wincemain.c (WinMain): envp is
+ no longer used so long time. based on a patch from Peter Bowen at
+ [ruby-core:18208]
+
+Sat Aug 9 22:05:29 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode.c (transcode_loop): take destination and resize function
+ as parameters.
+ (more_output_buffer): ditto.
+ (str_transcoding_resize): argument changed from rb_transcoding* to
+ VALUE.
+ (str_transcode): call transcode_loop with destination string and its
+ resize function.
+
+ * transcode_data.h (rb_transcoding): move ruby_string_dest and
+ flush_func to transcode_loop parameters.
+
+Sat Aug 9 21:29:45 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * common.mk: encs depend on transdb.h
+
+Sat Aug 9 21:10:51 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (rb_cv_rshift_sign, rb_cv_binary_elf): get rid of
+ AC_TRY_RUN.
+
+Sat Aug 9 16:33:21 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode_data.h (rb_transcoding): new fields: next_info and next_byte.
+
+ * transcode.c (transcode_restartable): save/restore next_info and
+ next_byte.
+ sync readlen and in_p when invalid.
+
+Sat Aug 9 15:10:15 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode.c (transcode_restartable): my_transcoder argument removed.
+ (transcode_loop): my_transcoder argument removed.
+
+Sat Aug 9 14:39:34 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode_data.h (rb_transcoding): add fields for restartable
+ transcoding.
+ (rb_transcoder): add max_input field.
+ from_unit_length field is renamed to input_unit_length.
+
+ * tool/transcode-tblgen.rb: generate max_input field.
+
+ * enc/trans/iso2022.erb.c: follow rb_transcoder change.
+
+ * enc/trans/utf_16_32.erb.c: ditto.
+
+ * transcode.c (PARTIAL_INPUT): new constant.
+ (transcode_char_start): new function.
+ (transcode_result_t): new type.
+ (transcode_restartable): new function.
+ (more_output_buffer): new function.
+ (transcode_loop): use transcode_restartable.
+
+Sat Aug 9 13:35:08 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * stable/ext/socket/socket.c (NI_MAXHOST, NI_MAXSERV): fixed invalid
+ preprocessor directives. a patch from Peter Bowen at
+ [ruby-core:18211].
+
+Sat Aug 9 06:37:21 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * enc/make_encdb.rb, enc/trans/make_transdb.rb: skip nonexistent
+ directory. [ruby-dev:35802]
+
+Sat Aug 9 01:07:51 2008 Tanaka Akira <akr@fsij.org>
+
+ * enc/trans/utf_16_32.erb.c (fun_so_from_utf_32le): implemented.
+ (fun_so_to_utf_32le): implemented.
+ [ruby-dev:35777]
+
+Sat Aug 9 00:42:33 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode_data.h (rb_transcoder): from_unit_length field added.
+ from_utf8 field removed.
+
+ * tool/transcode-tblgen.rb: generate offsets range.
+ follow rb_transcoder change.
+
+ * transcode.c (transcode_loop): don't use from_utf8.
+ make invalid region from_unit_length wise.
+
+ * enc/trans/iso2022.erb.c: follow rb_transcoder and
+ transcode_generate_node change.
+
+ * enc/trans/utf_16_32.erb.c: follow rb_transcoder and
+ transcode_generate_node change.
+ explicit :invalid map removed.
+
+Fri Aug 8 23:29:44 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * enc/depend (TRANSCSRCS): needs rule_subst to apply.
+
+ * io.c (shutdown): not define if defined already.
+
+Fri Aug 8 22:47:26 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * vm_insnhelper.c (opt_eq_func): large function to make inline.
+
+ * bcc32/Makefile.sub (config.h): cannot compile a big inline function.
+
+Fri Aug 8 21:09:10 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * common.mk (enk.mk): give not RUBY but MINIRUBY.
+
+Fri Aug 8 17:03:17 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (shutdown, sched_yield, pthread_attr_setinheritsched):
+ check for Haiku.
+
+ * eval_intern.h, io.c, thread_pthread.c: use autoconfisticated results.
+
+Fri Aug 8 16:52:55 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * common.mk (enc.mk): mkmf.rb requires rbconfig.rb.
+
+ * common.mk (srcs-enc): renamed from transcodes.
+
+ * enc/Makefile.in (make-workdir): creates object directories.
+
+ * common.mk (encdb.h): see both $(srcdir)/enc and enc.
+
+ * enc/make_encdb.rb: ditto.
+
+ * enc/trans/make_transdb.rb: fix for the case no transdirs are given.
+
+ * enc/trans/make_transdb.rb: converts only one transcoders for each
+ basename.
+
+Fri Aug 8 10:53:52 2008 Tanaka Akira <akr@fsij.org>
+
+ * lib/resolv.rb: randomize source port and transaction id.
+ CVE-2008-1447.
+
+ * lib/resolv-replace.rb (UDPSocket#bind): don't resolv host if host is
+ "".
+
+Fri Aug 8 04:20:14 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * common.mk: see both $(srcdir)/enc/trans and enc/trans.
+
+ * enc/trans/make_transdb.rb: ditto.
+
+Fri Aug 8 00:05:02 2008 TAKAO Kouji <kouji@takao7.net>
+
+ * ext/.document: added readline/readline.c.
+
+ * ext/readline/readline.c: changed Copyright. added RDoc.
+
+ * ext/readline/README.ja: fixed typo.
+
+ * ext/readline/README: contents was moved RDoc.
+
+Thu Aug 7 23:43:11 2008 Tanaka Akira <akr@fsij.org>
+
+ * transcode_data.h (rb_transcoding): new field "stateful".
+ (rb_transcoder): preprocessor and postprocessor field removed.
+ change arguments of func_ii, func_si, func_io and func_so.
+ new field "finish_func".
+
+ * tool/transcode-tblgen.rb: make FUNii, FUNsi and FUNio
+ generatable.
+
+ * transcode.c (transcoder_lib_table): removed.
+ (transcoder_table): change structure.
+ (transcoder_key): removed because the above structure change.
+ (make_transcoder_entry): new function.
+ (get_transcoder_entry): ditto.
+ (rb_register_transcoder): follow the structure change.
+ (declare_transcoder): ditto.
+ (transcode_search_path): new function for breadth first search to
+ find a list of converters.
+ (transcode_search_path_i): new function.
+ (transcode_dispatch_cb): ditto.
+ (transcode_dispatch): use transcode_search_path.
+ (transcode_loop): follow the argument change.
+ (str_transcode): preprocessor and postprocessor stuff removed.
+
+ * enc/trans/iso2022.erb.c: new file. ISO-2022-JP conversion
+ re-implemented.
+
+ * enc/trans/japanese.erb.c: ISO-2022-JP stuff removed.
+
+ * enc/trans/utf_16_32.erb.c: follow argument change of FUNso.
+
+ [ruby-dev:35798]
+
+Thu Aug 7 22:55:44 2008 TAKAO Kouji <kouji@takao7.net>
+
+ * ext/readline/README.ja: updated API document for Readline module.
+
+Thu Aug 7 20:52:08 2008 Shugo Maeda <shugo@ruby-lang.org>
+
+ * lib/net/ftp.rb (login): raise FTPReplyError if passwd or acct
+ is not supplied. fixed [ruby-core:18058].
+
+Thu Aug 7 18:01:44 2008 Akinori MUSHA <knu@iDaemons.org>
+
+ * misc/ruby-mode.el (ruby-imenu-create-index-in-block): Fix the
+ regexp to only pick definition lines properly. `module_function'
+ is not a definition of a module named `_function'.
+
+Thu Aug 7 17:47:55 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * enc/depend: add transdb.c.
+
+Thu Aug 7 16:28:51 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * Makefile.in, common.mk, {bcc,win}32/Makefile.sub (clean-ext): do not
+ use miniruby.
+
+Thu Aug 7 14:17:32 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * enc/depend: removed needless explicit commands.
+
+ * lib/mkmf.rb, {bcc32,win32}/Makefile.sub (CLEANLIBS, CLEANOBJS):
+ moved clean targets to platform makefiles.
+
+Thu Aug 7 13:12:30 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * ext/socket/getaddrinfo.c (gai_strerror): ignore only on Haiku.
+ a patch from <zn at mbf.nifty.com>, [ruby-dev:35796].
+
+Thu Aug 7 06:31:12 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * test/ruby/process.rb (test_popen_fork): skip a test which is
+ freeze in FreeBSD.
+
+Thu Aug 7 06:05:48 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * config.guess: add powerpc-apple-haiku, i586-pc-haiku.
+ see [ruby-core:18110]
+
+Thu Aug 7 05:51:05 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * eval_intern.h: Add support to Haiku. see [ruby-core:18110]
+
+ * include/ruby/defines.h: ditto.
+
+ * configure.in: ditto.
+
+ * thread_pthread.c: ditto.
+
+ * io.c: ditto.
+
+ * lib/mkmf.rb: ditto.
+
+ * ext/socket/getaddrinfo.c: ditto.
+
+ * ext/socket/extconf.rb: ditto.
+
+ * ext/socket/socket.c: ditto.
+
+ * ext/socket/addrinfo.h: ditto.
+
+ * ext/socket/getnameinfo.c: ditto.
+
+Thu Aug 7 05:43:32 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * common.mk: mkdir enc/trans before build tables.
+
+Thu Aug 7 05:18:30 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * enc/depend: enc/*.c is source but enc/trans/*.c is generated.
+
+Thu Aug 7 05:14:12 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * regenc.c (code_to_mbc): raise RangeError Integer#chr
+ when more than 255 is given with single byte encoding.
+ [ruby-dev:35789]
+
+Thu Aug 7 05:06:03 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * gc.c (run_final): runs finalizers with the object terminated.
+
+ * gc.c (rb_gc_call_finalizer_at_exit): keeps finalized objects from
+ linking to freelist.
+
+Thu Aug 7 04:43:14 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * enc/depend: for build in other than srcdir.
+
+Wed Aug 6 22:40:48 2008 Tanaka Akira <akr@fsij.org>
+
+ * tool/transcode-tblgen.rb (transcode_generate_node): code
+ argument removed.
+
+Wed Aug 6 21:25:45 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * gc.c (chain_finalized_object): deletes finalizers to be invoked from
+ finalizer_table.
+
+ * gc.c (rb_gc_call_finalizer_at_exit): warns when could not invoke
+ finalizers.
+
+Wed Aug 6 20:56:43 2008 Tanaka Akira <akr@fsij.org>
+
+ * enc/depend: transcode table generation depends on
+ tool/transcode-tblgen.rb.
+
+Wed Aug 6 20:48:27 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * gc.c (rb_gc_call_finalizer_at_exit): self-referencing finalizers
+ cannot be invoked. [ruby-dev:35681]
+
+Wed Aug 6 20:44:41 2008 Tanaka Akira <akr@fsij.org>
+
+ * tool/transcode-tblgen.rb: distinguish UNDEF and INVALID.
+ [ruby-dev:35709]
+
+ * transcode.c (transcode_loop): don't need rb_enc_mbclen now.
+
+Wed Aug 6 14:40:11 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * common.mk (transdb.h): requires transcoders.
+
+ * enc/depend (srcs): target for transcoders.
+
+Wed Aug 6 14:04:08 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * enc/depend: replace not only $(<:...) but also $<.
+
+Wed Aug 6 13:54:30 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/Makefile.sub (config.status): export BASERUBY.
+
+ * enc/depend: avoid GNU make'ism.
+
+Wed Aug 6 07:59:02 2008 Tanaka Akira <akr@fsij.org>
+
+ * tool/transcode-tblgen.rb (ActionMap#eql?): use == to compare @map.
+
+Wed Aug 6 07:45:26 2008 Tanaka Akira <akr@fsij.org>
+
+ * tool/transcode-tblgen.rb: show generating tables in verbose mode.
+ (transcode_generate_node): call ActionMap#generate_node with showing
+ table name.
+
+ * enc/trans/utf_16_32.erb.c: use transcode_generate_node.
+
+Wed Aug 6 06:55:20 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * thread.c (thread_start_func_2): propagates fatal error and system
+ exit to the main thread.
+
+Wed Aug 6 05:31:54 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * encoding.c (rb_to_encoding_index, rb_to_encoding): check if the name
+ is ascii compatible as well as Encoding.find.
+
+ * transcode.c (str_encode): no need to duplicate first.
+
+Wed Aug 6 05:08:30 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * array.c (rb_ary_sort_bang): reset to real class.
+
+ * file.c (rb_find_file_ext, rb_find_file): ditto.
+
+ * io.c (io_reopen): ditto.
+
+Wed Aug 6 03:56:39 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * common.mk (transcodes), tool/build-transcode: generates transcode
+ sources.
+
+ * enc/trans/{japanese,korean,single_byte,utf_16_32}.c: to be
+ autogenerated now.
+
+ * enc/depend: added rules for .c from .erb.c.
+
+Tue Aug 5 20:46:20 2008 Tanaka Akira <akr@fsij.org>
+
+ * tool/build-transcode: new file.
+
+ * tool/transcode-tblgen.rb: new file.
+
+ * enc/trans/make_transdb.rb: exclude *.erb.c.
+
+ * enc/depend: exclude *.erb.c.
+
+ * enc/trans/utf_16_32.erb.c: new file.
+
+ * enc/trans/single_byte.erb.c: new file.
+
+ * enc/trans/japanese.erb.c: new file.
+
+ * enc/trans/korean.erb.c: new file.
+
+ * enc/trans/iso-8859-2-tbl.rb: new file.
+
+ * enc/trans/iso-8859-3-tbl.rb: new file.
+
+ * enc/trans/iso-8859-4-tbl.rb: new file.
+
+ * enc/trans/iso-8859-5-tbl.rb: new file.
+
+ * enc/trans/iso-8859-6-tbl.rb: new file.
+
+ * enc/trans/iso-8859-7-tbl.rb: new file.
+
+ * enc/trans/iso-8859-8-tbl.rb: new file.
+
+ * enc/trans/iso-8859-9-tbl.rb: new file.
+
+ * enc/trans/iso-8859-10-tbl.rb: new file.
+
+ * enc/trans/iso-8859-11-tbl.rb: new file.
+
+ * enc/trans/iso-8859-13-tbl.rb: new file.
+
+ * enc/trans/iso-8859-14-tbl.rb: new file.
+
+ * enc/trans/iso-8859-15-tbl.rb: new file.
+
+ * enc/trans/eucjp-tbl.rb: new file.
+
+ * enc/trans/sjis-tbl.rb: new file.
+
+ * enc/trans/euckr-tbl.rb: new file.
+
+ * enc/trans/utf_16_32.c: regenerated.
+
+ * enc/trans/single_byte.c: regenerated.
+
+ * enc/trans/japanese.c: regenerated.
+
+ * enc/trans/korean.c: regenerated.
+
+ [ruby-dev:35730]
+
+Tue Aug 5 18:02:53 2008 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
+
+ * test/io/nonblock/test_flush.rb (TestIONonblock#test_flush):
+ rescue some exceptions. [ruby-dev:35638]
+
+Tue Aug 5 16:40:06 2008 Shugo Maeda <shugo@ruby-lang.org>
+
+ * lib/net/ftp.rb (chdir): handle 5xx errors correctly.
+ fixed [ruby-core:18057].
+
+Tue Aug 5 16:38:59 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * include/ruby/win32.h, bcc32/Makefile.sub (config.h): bcc 5.8 has
+ stdint.h.
+
+Tue Aug 5 16:13:05 2008 Shugo Maeda <shugo@ruby-lang.org>
+
+ * lib/net/imap.rb (disconnect): do not refer to SSL::SSLSocket for
+ environments without OpenSSL. fixed [ruby-dev:35755].
+
+Tue Aug 5 14:19:22 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * file.c (rb_stat_mode): generalized st_mode mask.
+
+Tue Aug 5 12:43:47 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * io.c (retry_sendfile, retry_read): ENOSYS and EWOULDBLOCK are not
+ defined on every platforms.
+
+Tue Aug 5 12:34:49 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * transcode_data.h (TRANSCODE_ERROR): common transcode failure
+ exception, would be changed later.
+
+ * enc/trans/japanese.c (UNSUPPORTED_MODE): unsupported mode transition
+ exception.
+
+Tue Aug 5 03:29:52 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * array.c (rb_ary_sort_bang): respect overridden <=> for String and
+ Fixnum. [ruby-core:17708]
+
+ * include/ruby/node.h (NOEX_BASIC): basic definition method flag.
+
+ * include/ruby/intern.h, vm_method.c (rb_method_basic_definition_p):
+ new function to check if the method is not redefined after the
+ initialization.
+
+ * vm_method.c (rb_obj_respond_to): use rb_method_basic_definition_p.
+
+Mon Aug 4 20:39:06 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * Makefile.in (update-rubyspec): renamed the rubyspec directory
+ "spec". Changed directory structure.
+
+ * Makefile.in (test-rubyspec): ditto.
+
+ * spec/README: described the structure of "spec" directory.
+
+ * spec/default.mspec: configured for Matz's Ruby Implementation.
+
+Mon Aug 4 19:21:43 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * array.c (rb_ary_tmp_new): added.
+
+ * vm_eval.c (vm_call_super): fixed typo, and get rid of too large
+ alloca. [ruby-core:17922]
+
+Mon Aug 4 16:48:50 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (deferred_nodes, compstmt, arg, fixup_nodes, range_op): fix
+ up fixnum range literal in conditional as automagical line number
+ comparison. [ruby-core:12124], [ruby-dev:35731]
+
+Mon Aug 4 14:41:25 2008 URABE Shyouhei <shyouhei@ruby-lang.org>
+
+ * lib/net/smtp.rb (Net::SMTP::rcptto): fix a typo. a patch from
+ Masao Takaku <masao at nii.ac.jp>
+ fix [ruby-dev:35489].
+
+Mon Aug 4 14:08:55 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * marshal.c (dump_ensure), process.c (run_exec_dup2),
+ string.c (rb_str_replace), transcode.c (transcode_dispatch): fixed
+ memory leaks. based on patches from shinichiro.h <shinichiro.hamaji
+ AT gmail.com> at [ruby-dev:35751].
+
+Sun Aug 3 19:32:52 2008 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+
+ * ext/win32ole/win32ole.c (hash2named_arg): refactoring.
+
+ * ext/win32ole/win32ole.c (ole_invoke, fole_respond_to, ev_on_event,
+ fev_off_event): accepts Symbol argument.
+
+ * test/win32ole/test_win32ole.rb: ditto.
+
+ * test/win32ole/test_win32ole_event.rb: ditto.
+
+Sun Aug 3 10:41:54 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * string.c (rb_str_shared_replace): fixed memory leak. a patch from
+ shinichiro.h <shinichiro.hamaji AT gmail.com> at [ruby-dev:35742]
+
+Sat Aug 2 22:55:41 2008 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+
+ * test/win32ole/test_err_in_callback.rb: remove temporary files.
+ some refactoring.
+
+Sat Aug 2 15:51:50 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (yylex): 8 and 9 in octal integer should cause compile
+ error. [ruby-dev:35729]
+
+Sat Aug 2 01:06:10 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * enc/trans/japanese.c: add U+FF5E to EUC-JP.
+ [ruby-dev:35720] [ruby-dev:35722]
+
+Fri Aug 1 23:49:44 2008 TAKAO Kouji <kouji@takao7.net>
+
+ * ext/readline/extconf.rb: checked to have clear_history in
+ readline library.
+ * ext/readline/readline.c (hist_get, hist_each, Init_readline):
+ The offset specified for the argument of history_get() might be
+ different in GNU Readline and libedit. If use libedit, it was
+ corrected that the computational method of the offset specified
+ for the argument of history_get() when the Readline module was
+ initialized was decided.
+ (hist_get, hist_set): If use libedit, accesses first an input
+ content in history when specifies the negative offset for the
+ argument of history_get() or replace_history_entry(). Then
+ checks the offset is negative in ruby.
+ (rb_remove_history): When compiling, it corrects it to warning
+ when libedit is used.
+ (hist_clear, Init_readline): added Readline::HISTORY.clear
+ method. [ruby-dev:35551]
+ * test/readline/test_readline_history.rb: added unit test for
+ Readline::HISTORY.
+
+Fri Aug 1 23:26:45 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * transcode.c (transcode_loop): undefined character is replaced with
+ only one character. [ruby-dev:35709]
+
+Fri Aug 1 23:26:22 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ Merged r16430(akr), r16431(akr), r16433(akr), r16469(nobu), and
+ r17874(akr) from ruby_1_8.
+
+ * Makefile.in (update-rubyspec): added
+
+ * Makefile.in (test-rubyspec): added
+
+Fri Aug 1 23:16:03 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * enc/trans/japanese.c: add support for CP51932,
+
+Fri Aug 1 22:59:40 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * enc/trans/japanese.c: add U+FF0C,
+
+Fri Aug 1 21:49:41 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * test/sdbm/test_sdbm.rb: add some tests.
+
+Fri Aug 1 21:36:00 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * gc.c (allocate_heaps, assign_heap_slot, rb_newobj_from_heap):
+ reset during_gc before raising NoMemoryError.
+
+Fri Aug 1 21:29:56 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * vm.c (Init_BareVM): check failure of malloc().
+
+Fri Aug 1 20:55:27 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * enc/trans/japanese.c (to_SHIFT_JIS_EF_BF_offsets): add U+FFF3,
+ U+FFF4, U+FFF5.
+
+ * enc/trans/japanese.c (to_SHIFT_JIS_EF_BF_infos): ditto.
+
+ * enc/trans/japanese.c (to_EUC_JP_EF_BF_infos): added.
+
+ * enc/trans/japanese.c (to_EUC_JP_EF_BF): added.
+
+ * enc/trans/japanese.c (to_EUC_JP_EF_infos): change size.
+ [ruby-dev:35714]
+
+Fri Aug 1 18:27:15 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * parse.y (parser_yylex): removed an useless conditional, and magic
+ comment are ignored unless at the first of line.
+
+ * test/ruby/test_m17n.rb (test_magic_comment_vim): added.
+
+ * test/ruby/test_m17n.rb (test_magic_comment_at_various_positions):
+ added.
+
+Fri Aug 1 14:54:42 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * win32/win32.c (rb_w32_seekdir): no need to rewind to seek forward.
+
+Fri Aug 1 05:31:08 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * transcode.c (output_replacement_character):
+ rename from _get_replacement_character.
+
+ * transcode.c (output_replacement_character):
+ fix replacement on UTF-32{BE,LE}. [ruby-dev:35705]
+
+ * transcode.c (transcode_loop): ditto.
+
+ * test/ruby/test_transcode.rb (test_invalid_replace):
+ add for above.
+
+Fri Aug 1 01:01:49 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * proc.c (rb_proc_call_with_block): reduce comparison.
+
+Thu Jul 31 22:17:35 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * ext/bigdecimal/bigdecimal.c (VpMult): prevent memory leak.
+
+Thu Jul 31 20:05:56 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * test/ruby/test_transcode.rb (test_unicode_public_review_issue_121):
+ fix option1 and 3.
+
+Thu Jul 31 19:54:57 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * transcode.c (get_replacement_character): use U+FFFD as replacement
+ character when convert to Unicode.
+
+ * test/ruby/test_transcode.rb (test_unicode_public_review_issue_121):
+ rename from test_public_review_issue_121.
+
+ * test/ruby/test_transcode.rb (test_unicode_public_review_issue_121):
+ enable option2.
+
+Thu Jul 31 17:00:10 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * transcode.c (get_replacement_character): fix: invalid byte sequence
+ is always replaced "\x00?".
+
+Thu Jul 31 16:37:03 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * test/rubygems/test_gem_ext_configure_builder.rb
+ (test_self_build_fail): remove extra newline. [ruby-dev:35704]
+
+Thu Jul 31 15:11:11 2008 Martin Duerst <duerst@it.aoyama.ac.jp>
+
+ * test/ruby/test_transcode.rb: added test_shift_jis
+ (contributed by Yoshihiro Kambayashi) and
+ test_public_review_issue_121
+ (see http://www.unicode.org/review/pr-121.html)
+
+Thu Jul 31 13:18:30 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * include/ruby/ruby.h (struct RString): size of ary must be
+ RSTRING_EMBED_LEN_MAX + 1.
+
+Thu Jul 31 12:23:53 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * pack.c (pack_unpack): upper half of hexdigits has never been used.
+
+Thu Jul 31 11:31:29 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/syck/syck.h (ASSERT): fix typo at r18176.
+
+ * ext/syck/rubyext.c (rb_syck_compile): expression in ASSERT() has no
+ effect unless debug mode.
+
+Thu Jul 31 10:51:39 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * iseq.c (ruby_iseq_disasm_insn): suppress warnings on platforms which
+ int size differs from pointer size.
+
+ * ext/openssl/ossl_asn1.c (ossl_asn1_get_asn1type): ditto
+
+ * ext/syck/rubyext.c (rb_syck_err_handler),
+ (syck_default_error_handler): ditto.
+
+Thu Jul 31 02:21:39 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * ext/syck/rubyext.c (rb_syck_compile): remove meaningless branch
+ that misleads into thinking that the variable sav may be
+ uninitialized.
+
+Thu Jul 31 01:25:43 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * thread.c (rb_mutex_unlock_all): mutex is no longer a ruby object.
+
+Thu Jul 31 01:18:07 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * parse.y (magic_comment_encoding): remove meaningless null check.
+
+Thu Jul 31 01:09:28 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * ext/bigdecimal/bigdecimal.c (VpIsRoundMode): fix tautology
+ condition.
+
+Thu Jul 31 00:58:33 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * pack.c (pack_unpack): reduced static variables.
+
+Thu Jul 31 00:10:20 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * proc.c (rb_proc_call_with_block): prevent null reference.
+
+Wed Jul 30 22:19:13 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * parse.y (vtable_free): remove meaningless null check.
+
+Wed Jul 30 22:08:25 2008 Tanaka Akira <akr@fsij.org>
+
+ * dir.c (struct dir_data): change path field char * to VALUE.
+ (mark_dir): new function for mark path field.
+ (free_dir): follow the path field change.
+ (dir_s_alloc): ditto.
+ (dir_initialize): ditto.
+ (dir_s_open): ditto.
+ (dir_inspect): ditto.
+ (dir_path): return (duplicate of) the path field to preserve
+ encoding. [ruby-dev:35685]
+
+Wed Jul 30 22:06:56 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * string.c (sym_inspect): remove dead code.
+
+Wed Jul 30 21:32:52 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * ChangeLog: fix wrong method name and add reference.
+
+Wed Jul 30 21:30:08 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * regparse.c (name_add): fix memory leak.
+
+Wed Jul 30 21:08:06 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * ext/syck/syck.c (syck_free_parser): fix memory leak by
+ YAML::Syck.compile.
+
+ * regparse.c (parse_exp): fix memory leak at Regexp.new("x{1,1}").
+
+Wed Jul 30 17:48:15 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * win32/win32.c (rb_w32_select): recalc the rest of timeout for each
+ iterations. [ruby-core:18015]
+
+Tue Jul 29 23:37:37 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * io.c (io_ungetc): raise NotImplementedError when ungetc is called
+ against dummy encoding IO. [ruby-dev:35686]
+
+ * io.c (rb_io_getline_1): ditto when gets with delimiter is called.
+
+ * io.c (io_getc): ditto when getc is called.
+
+ * test/ruby/test_io_m17n.rb (test_terminator_stateful_conversion,
+ test_getc_stateful_conversion, test_ungetc_stateful_conversion):
+ these tests should raise NotImplementedError.
+
+Tue Jul 29 22:55:34 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * test/ruby/test_io.rb (pipe): run reader thread and writer thread.
+
+Tue Jul 29 21:38:08 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * ext/bigdecimal/bigdecimal.c (Init_bigdecimal): fix typo.
+
+Tue Jul 29 21:35:59 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * test/etc/test_etc.rb (test_passwd): age field may be string under
+ some environments.
+
+Tue Jul 29 17:54:35 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * dir.c (char_casecmp): fix: return 0 if either of characters is NUL.
+
+Tue Jul 29 13:17:03 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * test/etc/test_etc.rb (test_getpwuid): fix for users whose uid is
+ shared.
+
+Tue Jul 29 05:37:53 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * file.c (rb_find_file_ext, rb_find_file): explicit relative path
+ which starts with "./" or "../" should be searched from cwd
+ instead of load path. [ruby-dev:35673]
+
+Tue Jul 29 02:39:46 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * math.c (math_atanh): raise EDOM on FreeBSD when atanh(1).
+
+ * math.c (math_log): ditto.
+
+ * math.c (math_log2): ditto.
+
+ * math.c (math_log10): ditto.
+
+ * test/ruby/test_math.rb: test for above.
+
+Tue Jul 29 01:41:15 2008 Tanaka Akira <akr@fsij.org>
+
+ * dir.c (struct dir_data): intenc field removed.
+ (dir_s_alloc): intenc initialization removed.
+ (dir_initialize): :internal_encoding option removed. dirname code
+ conversion removed.
+ (dir_enc_str): code conversion removed.
+ [ruby-dev:35661]
+
+Mon Jul 28 21:32:17 2008 Kouhei Sutou <kou@cozmixng.org>
+
+ * test/rss/: use PNG instead of zlib as binary data.
+
+Mon Jul 28 21:24:33 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * thread_win32.[ch] (cond_every_entry, rb_thread_cond_struct): reverted
+ r18239 because r18245 made the changes unnecessary.
+
+ * thread.c (rb_mutex_struct): define after including thread_{pthread,
+ win32}.c.
+
+Mon Jul 28 21:00:10 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * test/ruby/test_require.rb (test_require_too_long_filename):
+ Kernel#require does not use dln_find_file_r (at r18242).
+
+Mon Jul 28 20:17:03 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * vm_core.h: move the definition of struct rb_mutex_struct.
+
+ * thread.c: ditto.
+
+Mon Jul 28 18:58:46 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * thread.c (mutex_unlock): fix typo.
+
+Mon Jul 28 18:15:45 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * file.c (rb_find_file_ext, rb_find_file): not to split load path with
+ path separator. [ruby-Bugs-21356]
+
+Mon Jul 28 18:14:03 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * win32/win32.c (overlapped_socket_io, fcntl, rb_w32_close): must not
+ pass a pointer to int which is smaller than st_data_t on mswin64.
+
+Mon Jul 28 16:49:47 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * win32/win32.c (CreateChild, overlapped_socket_io): suppress
+ warnings.
+
+Mon Jul 28 16:06:36 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/win32.c (MAXPATHLEN): define before use.
+
+Mon Jul 28 16:01:12 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * thread_win32.[ch] (cond_every_entry, rb_thread_cond_struct): moved
+ the definitions from .c to .h because rb_thread_cond_struct is used
+ in vm_core.h.
+
+Mon Jul 28 14:29:54 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * dln.c (load_lib): use dln_find_file_r instead of dln_find_file.
+
+Mon Jul 28 00:18:47 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * vm_core.h, thread.c: It is now prohibited to use Data_Get_Struct in
+ *_free against an object that is going to be free'ed. So, change type
+ of thread_t#keeping_mutexes from VALUE to mutex_t.
+
+ * vm.c: remove mark to keeping_mutexes.
+
+Sun Jul 27 23:32:42 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * test/openssl/test_ssl.rb (server_loop): rescue Errno::EINVAL and
+ Errno::ECONNABORTED.
+
+Sun Jul 27 22:11:57 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * bootstraptests/method.rb: increase RLIMIT_STACK size to 4M+8Kbytes
+ because FreeBSD fails this less than that.
+
+Sun Jul 27 21:45:59 2008 Koichi Sasada <ko1@atdot.net>
+
+ * gc.c (gc_mark_children, obj_free): T_DEFERRED should not be appear.
+
+ * gc.c (gc_sweep, finalize_list): fix to decrement heap_slot#limit
+ after executing finalizer.
+
+Sun Jul 27 14:48:37 2008 Koichi Sasada <ko1@atdot.net>
+
+ * include/ruby/ruby.h: add a type T_DEFERRED.
+
+ * gc.c: fix deferred finalizer system. finalize processes of
+ T_DATA and T_FILE are executed after gc process.
+ And fix to use BUILTIN_TYPE() instead of seeing flag.
+
+ * thread.c, vm_core.h: add RUBY_VM_SET_FINALIZER_INTERRUPT()
+ and check interrupt_flag at rb_thread_execute_interrupts().
+
+ * thread.c (mutex_mark): fix to mark next_mutex.
+
+ * vm.c (rb_thread_mark): fix to mark keeping_mutexes.
+
+Sun Jul 27 09:15:28 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * dln.h (dln_find_exe, dln_find_file): deprecated, use reentrant
+ versions instead.
+
+Sun Jul 27 09:02:32 2008 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
+
+ * lib/rinda/tuplespace.rb: merged from 1.8.
+
+ * test/rinda/test_rinda.rb: merged from 1.8.
+
+Sat Jul 26 22:45:18 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * sample/exyacc.rb: fixed NoMethodError(Kernel#sub!).
+ replaced use of special variables with explicit IO
+ operations.
+
+Sat Jul 26 21:17:18 2008 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+
+ * ext/win32ole/win32ole.c (Init_win32ole): add
+ WIN32OLE_EVENT#handler=, WIN32OLE_EVENT#handler
+
+ * test/win32ole/test_win32ole_event.rb: ditto.
+
+Sat Jul 26 07:44:14 2008 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+
+ * ext/win32ole/win32ole.c (add_event_call_back): remove unused
+ variable.
+
+Fri Jul 25 23:48:10 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * gc.c (gc_sweep, obj_free, run_final): defer finalizers of IO and
+ Data. [ruby-dev:35578]
+
+Fri Jul 25 23:35:18 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/webrick/httputils.rb (WEBrick::HTTPUtils#split_header_value):
+ reduce backtrack. based on a fix by Christian Neukirchen
+ <chneukirchen AT gmail.com>.
+
+Fri Jul 25 21:55:38 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * test/ruby/enc/test_koi8.rb: move from test/ruby/test_koi8.rb.
+
+Fri Jul 25 21:09:32 2008 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+
+ * ext/win32ole/win32ole.c (ole_invoke, add_event_callback,
+ rescue_callback): refactoring.
+
+Fri Jul 25 20:52:44 2008 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+
+ * test/win32ole/err_in_callback.rb: add test of raising
+ exception in WIN32OLE_EVENT callback.
+
+ * test/win32ole/test_err_in_callback.rb: ditto.
+
+Fri Jul 25 20:43:57 2008 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+
+ * ext/win32ole/win32ole.c (Init_win32ole): add
+ WIN32OLE_EVENT#off_event.
+
+ * test/win32ole/test_win32ole_event.rb: ditto.
+
+ * test/win32ole/test_win32ole_event.rb: some refactoring.
+
+Fri Jul 25 19:50:49 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * regint.c (xmalloc, xrealloc, xfree): not to use ruby managed memory.
+
+Fri Jul 25 15:52:40 2008 Koichi Sasada <ko1@atdot.net>
+
+ * vm.c (vm_invoke_proc): skip setting safe_level if
+ it from bmethod. This change makes test/ruby/test_proc.rb pass.
+
+Fri Jul 25 10:00:00 2008 Martin Duerst <duerst@it.aoyama.ac.jp>
+
+ * test/ruby/test_transcode.rb: refactoring/cleanup of
+ test_iso_2022_jp(_1)
+
+Fri Jul 25 04:12:57 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * ext/nkf/nkf.c (rb_nkf_convert): output of mime encode is US-ASCII.
+ [ruby-list:45257]
+
+Fri Jul 25 02:43:11 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * sample/coverage.rb: move from lib/coverage.rb because this remains in
+ an early phase of development.
+
+Fri Jul 25 00:10:23 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * file.c (rb_find_file_ext, rb_find_file): converts Windows style path
+ to Cygwin path. [ruby-dev:35647]
+
+Thu Jul 24 16:30:21 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/win32.c (exit_handler): use st_free_table() to free socklist.
+
+ * win32/win32.c (rb_w32_pipe_exec, rb_w32_accept, rb_w32_socket,
+ rb_w32_socketpair): should check and release fd and sockets/handles
+ if an error occurs in rb_w32_open_osfhandle().
+
+Thu Jul 24 16:05:02 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/win32.c (overlapped_socket_io): avoid warnings.
+
+ * thread_win32.c (ubf_handle): refactoring.
+
+Thu Jul 24 07:01:13 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/win32ole/win32ole.c: got rid of improper casts.
+
+Wed Jul 23 23:19:15 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * test/socket/test_tcp.rb (test_recvfrom): replace an irrelevant test
+ for old behavior.
+
+Wed Jul 23 21:38:16 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * test/ruby/test_marshal.rb: suppress warning during test.
+
+Wed Jul 23 21:35:53 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * test/ruby/test_dir.rb: suppress warning during test.
+
+Wed Jul 23 18:27:46 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/tk/{stubs,tcltklib}.c, ext/tk/tkutil/tkutil.c: fix warnings
+ about constness and signedness.
+
+Wed Jul 23 17:04:22 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/openssl/openssl_missing.h (d2i_of_void): define for older
+ versions. [ruby-dev:35637]
+
+Wed Jul 23 13:53:36 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/curses/extconf.rb: use try_static_assert.
+
+Wed Jul 23 10:06:19 2008 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
+
+ * test/zlib/test_zlib.rb (TestZlibDeflate#test_params): suppress a
+ finalizer warning.
+
+Wed Jul 23 06:25:42 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/syck: suppress warnings more.
+
+Wed Jul 23 03:19:31 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/nkf/nkf-utf8/nkf.c (struct input_code.name, input_codename):
+ constified.
+
+Wed Jul 23 03:02:08 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/syck: suppress warnings.
+
+Wed Jul 23 00:34:20 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/openssl: suppress warnings.
+
+Tue Jul 22 23:01:34 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * ext/syck/rubyext.c, ext/syck/yaml2byte.c, ext/syck/emitter.c,
+ ext/syck/syck.c, ext/syck/handler.c, ext/syck/syck.h: suppress GCC
+ warning.
+
+Tue Jul 22 20:42:24 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * ext/bigdecimal/bigdecimal.c (BigDecimalCmp): BigDecimal#<=> should
+ return nil if an argument can't be coerced into BigDecimal.
+
+ * ext/bigdecimal/bigdecimal.h, ext/bigdecimal/bigdecimal.c
+ (VpIsNegDoubleZero, VpItoV): comment out unused functions.
+
+Tue Jul 22 20:33:54 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * test/rdoc/test_rdoc_parser_ruby.rb (teardown): close tempfile.
+
+Tue Jul 22 19:38:38 2008 Martin Duerst <duerst@it.aoyama.ac.jp>
+
+ * test/ruby/test_transcode.rb: added two comments
+
+Tue Jul 22 18:08:34 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * README.EXT, README.EXT.ja: mention about FIX2LONG and NUM2LONG.
+ see [ruby-dev:35197]
+
+Tue Jul 22 17:53:32 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * compile.c (insn_data_to_s_detail), file.c (rb_stat_inspect),
+ iseq.c (ruby_iseq_disasm_insn, ruby_iseq_disasm),
+ process.c (pst_message), re.c (match_inspect): use rb_str_catf.
+
+ * dir.c (dir_inspect), iseq.c (iseq_inspect, insn_operand_intern): use
+ rb_sprintf.
+
+ * error.c (rb_name_error, rb_raise, rb_loaderror, rb_fatal): use
+ rb_vsprintf.
+
+Tue Jul 22 17:20:25 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/win32.c (init_func): new function to get API's address which
+ is often used and not supported on all Windows.
+
+ * win32/win32.c (overlapped_socket_io): shouldn't use overlapped I/O if
+ CancelIo() is not supported.
+
+Tue Jul 22 16:47:57 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * include/ruby/intern.h, sprintf.c (rb_str_catf, rb_str_vcatf): new
+ functions. [ruby-dev:35597]
+
+ * string.c (rb_str_capacity): new function to return the capacity.
+
+Tue Jul 22 16:08:58 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * ext/socket/socket.c (connect_blocking, socks_connect_blocking,
+ ruby_connect): cast.
+
+Tue Jul 22 11:05:08 2008 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
+
+ * test/ruby/test_dir.rb: use realpath of tmpdir. [ruby-dev:35481]
+
+ * test/ruby/test_process.rb: ditto.
+
+Tue Jul 22 09:51:32 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * misc/ruby-mode.el: fix here-doc strings with inner quotes. patches
+ by Nathan Weizenbaum <nex342 AT gmail.com> from [ruby-core:17615]
+ through [ruby-core:17910].
+
+Tue Jul 22 04:26:16 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * include/ruby/intern.h (rb_str_buf_new2): optimization for literals.
+
+ * string.c (str_buf_cat): returns VALUE.
+
+Tue Jul 22 03:34:01 2008 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rdoc*: Update to RDoc 2.1.0 r112.
+
+Tue Jul 22 02:51:46 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * include/ruby/intern.h (rb_str_buf_cat2, rb_str_cat2): optimization
+ for literals.
+
+Tue Jul 22 02:50:47 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * README.EXT, README.EXT.ja (1.5 Manipulating Ruby data): fix the
+ prototype of rb_vsprintf, and added rb_str_cat2. [ruby-dev:35622]
+
+Mon Jul 21 17:15:38 2008 Tanaka Akira <akr@fsij.org>
+
+ * encoding.c (rb_filesystem_encoding): use locale encoding on Unix.
+ [ruby-dev:35617]
+
+Mon Jul 21 15:29:32 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * missing/vsnprintf.c (struct __sbuf, FILE): use size_t.
+
+ * sprintf.c (ruby__sfvwrite): ditto.
+
+Mon Jul 21 13:55:37 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * README.EXT, README.EXT.ja (1.5 Manipulating Ruby data): mentioned
+ rb_sprintf and rb_vsprintf. [ruby-dev:35611]
+
+Mon Jul 21 10:25:52 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * io.c (prepare_getline_args): check if rs is a string when non-nil
+ lim is given. [ruby-dev:35610]
+
+Mon Jul 21 04:55:20 2008 Tanaka Akira <akr@fsij.org>
+
+ * dir.c (dir_initialize): use rb_convert_type instead of
+ rb_check_convert_type to prevent SEGV by Dir.new(".", true).
+ (dir_initialize): use FilePathValue before rb_enc_get(dirname) to
+ prevent SEGV by Dir.new(0).
+
+Mon Jul 21 04:42:15 2008 Tanaka Akira <akr@fsij.org>
+
+ * re.c (rb_reg_s_union): useless rb_enc_get call removed to prevent
+ SEGV by Regexp.union("", nil).
+
+Sun Jul 20 22:50:11 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * compile.c (iseq_compile_each): NODE_POSTEXE should set each end
+ procs only once. [ruby-dev:35596]
+
+Sun Jul 20 16:00:37 2008 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+
+ * ext/win32ole/win32ole.c (EVENTSINK_Invoke): use rb_protect
+ instead of rb_rescue2. [ruby-dev:35595]
+
+Sun Jul 20 01:23:24 2008 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+
+ * ext/win32ole/win32ole.c (EVENTSINK_Invoke): little refactoring.
+
+ * ext/win32ole/win32ole.c (EVENTSINK_GetIDsOfNames): return
+ ITypeInfo::GetIDsOfNames().
+
+Sat Jul 19 09:31:35 2008 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+
+ * ext/win32ole/win32ole.c (EVENTSINK_Invoke): little refactoring.
+
+ * ext/win32ole/win32ole.c: add document of inspect methods.
+
+Sat Jul 19 06:08:43 2008 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rdoc*: Import RDoc r104. Various make test-all fixes.
+
+Sat Jul 19 00:27:58 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * numeric.c (check_uint, rb_num2uint, rb_fix2uint): fixed wrong check
+ about 64bit positive value.
+
+Fri Jul 18 23:23:37 2008 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+
+ * ext/win32ole/win32ole.c (EVENTSINK_Invoke): avoid cfp consistency
+ error when exception raised in event callback.
+
+Fri Jul 18 14:52:14 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/win32.c (socklist): table for registering socket options
+ (currently only O_NONBLOCK).
+
+ * win32/win32.c (StartSockets, exit_handler): alloc/free socklist.
+
+ * win32/win32.c (is_socket): use socklist.
+
+ * win32/win32.c (rb_w32_accept, rb_w32_socket, rb_w32_socketpair):
+ register new socket to socklist.
+
+ * win32/win32.c (rb_w32_close): remove closing socket from socklist.
+
+ * win32/win32.c (fcntl): register socket options.
+
+ * win32/win32.c (overlapped_socket_io): send to/recv from socket with
+ overlapped operation if the socket is not nonblocking mode.
+ [experimental]
+
+ * win32/win32.c (rb_w32_send, rb_w32_sendto, rb_w32_recv,
+ rb_w32_recvfrom): use overlapped_socket_io().
+
+ * win32/win32.c (open_ifs_socket): set overlapped mode. this is the
+ default mode of winsock's socket(), so lacking it is an old bug.
+
+Fri Jul 18 09:44:30 2008 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rdoc/*: Import RDoc r101.
+
+Thu Jul 17 23:45:55 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * test/rdoc/test_rdoc_c_parser.rb (teardown): close tempfile.
+
+Thu Jul 17 21:08:49 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * test/ruby/test_process.rb (test_getpriority, test_setpriority): use
+ PRIO_PROCESS instead of PRIO_USER.
+
+Thu Jul 17 20:41:42 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * pack.c (pack_unpack): fix v and V with big endian.
+ [1].pack("V").unpack("V") was [4294967296].
+
+Thu Jul 17 20:35:03 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * pack.c (pack_pack): fix i! with big endian. [1].pack("i!") was
+ "\0\0\0\0".
+
+Thu Jul 17 16:48:40 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * ext/socket/socket.c (ruby_connect): select() for connect() has
+ mean only when the socket is non-blocking.
+
+Thu Jul 17 10:55:24 2008 Eric Hodel <drbrain@segment7.net>
+
+ * mkconfig.rb: Simplify expression for RDoc.
+
+Thu Jul 17 10:21:15 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * numeric.c (check_uint, rb_num2uint, rb_fix2uint): strict check.
+ fixed [ruby-dev:33683]
+
+Thu Jul 17 04:19:33 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * thread.c (thread_start_func_2): wake up joining threads.
+
+ * thread.c (sleep_forever, sleep_timeval): return when interrupted.
+ [ruby-dev:35542]
+
+ * thread.c (timer_thread_function): restore main thread status.
+ [ruby-core:17270]
+
+Thu Jul 17 01:27:38 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * io.c (appendline): remove invalid access.
+
+Wed Jul 16 18:04:34 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * signal.c (signal_exec, trap_handler): trap accepts a string as
+ command. [ruby-dev:35533]
+
+Wed Jul 16 00:04:30 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * test/ruby/envutil.rb (Test::Unit::Assertions#assert_in_out_err): new
+ method.
+
+ * test/ruby/test_argf.rb: use assert_in_out_err instead of
+ EnvUtil.rubyexec.
+
+ * test/ruby/test_module.rb: ditto.
+
+ * test/ruby/test_require.rb: ditto.
+
+ * test/ruby/test_objectspace.rb: ditto.
+
+ * test/ruby/test_object.rb: ditto.
+
+ * test/ruby/test_string.rb: ditto.
+
+ * test/ruby/test_method.rb: ditto.
+
+ * test/ruby/test_variable.rb: ditto.
+
+ * test/ruby/test_io.rb: ditto.
+
+ * test/ruby/test_rubyoptions.rb: ditto.
+
+ * test/ruby/test_exception.rb: ditto.
+
+ * test/ruby/test_class.rb: ditto.
+
+ * test/ruby/test_thread.rb: ditto.
+
+Tue Jul 15 22:34:03 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/Makefile.sub (ruby_version): follow changes in configure.in.
+
+Tue Jul 15 21:58:20 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/tk/{,tkutil/}extconf.rb: ruby/ruby.h no longer needs to be
+ checked.
+
+ * ext/tk/{tcltklib.c,tkutil/tkutil.c}: check macros for each headers.
+
+Tue Jul 15 21:45:41 2008 Akinori MUSHA <knu@iDaemons.org>
+
+ * ext/tk/extconf.rb, ext/tk/tcltklib.c, ext/tk/tkutil/tkutil.c: Do
+ not test ruby/ruby.h, which makes OS X's gcc pick the wrong
+ header file from Ruby.framework.
+
+Tue Jul 15 21:31:26 2008 Akinori MUSHA <knu@iDaemons.org>
+
+ * configure.in (--with-ruby-version): Add a new option to specify
+ the ruby version string for version specific directories.
+ [ruby-dev:35490]
+
+ * mkconfig.rb: Definition of ruby_version is now determined by the
+ configure script.
+
+Tue Jul 15 18:14:20 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * ext/socket/socket.c (ruby_connect, s_accept): check before readable/
+ writable by select() instead of wrapping in blocking region.
+
+ * ext/socket/socket.c (bsock_send, s_recvfrom, udp_send, unix_send_io,
+ unix_recv_io): should check readable/writable before calling blocking
+ functions.
+ see [ruby-dev:35446]
+
+Tue Jul 15 18:12:02 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * thread_win32.c (ubf_handle): cancel blocking IO if it can (only
+ Vista). see [ruby-dev:35446]
+
+ * win32/win32.c (errmap): add ERROR_OPERATION_ABORTED as EINTR.
+
+Mon Jul 14 20:35:21 2008 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+
+ * test/win32ole/test_win32ole_event.rb (teardown): fix typo.
+
+Mon Jul 14 18:47:30 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * transcode.c (transcode_loop): constified.
+
+ * transcode.c (str_transcode): rb_str_set_len() sets a delimiter.
+
+ * transcode_data.h (rb_transcoder): constified preprocessor and
+ postprocessor input.
+
+ * enc/trans/japanese.c: ditto.
+
+Sun Jul 13 05:37:50 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * include/ruby/ruby.h (PRI_PTRDIFF_PREFIX, PRI_SIZE_PREFIX): typo.
+
+ * {bcc32,win32}/Makefile.sub: (SIZEOF_SIZE_T, SIZEOF_PTRDIFF_T): added.
+
+Sat Jul 12 23:54:55 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/Makefile.sub (LIBRUBY_DLDFLAGS): import library which created
+ with DLL is broken. save import library which created by lib.exe and
+ install it.
+ fixed the problem mentioned at the postscript of [ruby-dev:35448]
+
+Sat Jul 12 23:24:21 2008 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/socket.c: use PRIuSIZE.
+
+Sat Jul 12 22:41:39 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * include/ruby/ruby.h (PRI_PTRDIFF_PREFIX, PRI_SIZE_PREFIX): fixed typo.
+
+Sat Jul 12 22:30:43 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * include/ruby/intern.h (HAVE_RUBY_RUBY_H): defines macros so that
+ extconf.rb do not need to check if headers exist under separated
+ directory. [ruby-dev:35437]
+
+ * include/{ruby,rubyio,rubysig}.h, include/ruby/intern.h: use
+ "ruby/..." instead of <ruby/...>.
+
+Sat Jul 12 22:17:26 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (sizeof ptrdiff_t): check for size of ptrdiff_t.
+
+ * include/ruby/ruby.h (PRI?PTRDIFF, PRI?SIZE): printf conversion
+ specifiers for ptrdiff_t and size_t/ssize_t.
+
+ * insns.def (leave), marshal.c (long_toobig), transcode.c
+ (str_transcode), vm_dump.c (control_frame_dump, stack_dump_each),
+ (debug_print_register, debug_print_pre): t and z length modifiers
+ are C99.
+
+Sat Jul 12 16:02:31 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/xmlrpc/client.rb (XMLRPC::Client#do_rpc): requires
+ webrick/cookie. [ ruby-Bugs-21139 ]
+
+Sat Jul 12 09:25:07 2008 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+
+ * test/win32ole/test_win32ole_event.rb: add test
+ for WIN32OLE_EVENT#on_event_with_outargs
+
+ * test/win32ole/test_win32ole_event.rb(teardown): calling
+ WIN32OLE_EVENT.message_loop
+
+Sat Jul 12 01:54:13 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/win32.c (rb_w32_select): shouldn't pass non-socket handle to
+ original select().
+
+Fri Jul 11 23:05:40 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * test/zlib/test_zlib.rb: add a test for Zlib::Deflate#params.
+
+Fri Jul 11 22:58:28 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * ext/zlib/zlib.c (rb_deflate_params): flush before deflateParams.
+ [ruby-core:17675]
+
+Fri Jul 11 22:09:01 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/setup.rb, win32/Makefile.sub (PLATFORM): use $(PLATFORM)
+ instead of $(OS) because ENV["OS"] is used in test-all (drb).
+
+Fri Jul 11 20:51:36 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * io.c (rb_io_wait_readable, rb_io_wait_writable): check if the file
+ descriptor is closed.
+
+ * thread.c (rb_thread_wait_fd_rw): ditto.
+
+Fri Jul 11 16:16:43 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/win32.c (rb_w32_accept, rb_w32_socket, rb_w32_socketpair):
+ prohibit inheritance of sockets, too. [experimental]
+
+Fri Jul 11 14:39:49 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/win32.c (CreateChild): the measures for Vista is no longer
+ unnecessary.
+
+Fri Jul 11 06:16:26 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * common.mk (process.o): depends on util.h.
+
+Fri Jul 11 05:07:46 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * include/ruby/win32.h (pipe): prohibit inheritance.
+ fixed: [ruby-dev:35421]
+
+Fri Jul 11 00:56:46 2008 Koichi Sasada <ko1@atdot.net>
+
+ * thread.c (thread_create_core): fix GC problem.
+ [ruby-core:17669]
+
+Thu Jul 10 22:06:00 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/pstore.rb (PStore#transaction): return the result from the
+ block. [ruby-core:17718]
+
+Thu Jul 10 21:15:49 2008 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+
+ * test/win32ole/test_win32ole_typelib.rb: add some illegal argument
+ test.
+
+ * test/win32ole/test_win32ole_type.rb: ditto.
+
+ * test/win32ole/test_win32ole_event.rb: ditto.
+
+ * test/win32ole/test_win32ole_param.rb: ditto.
+
+ * test/win32ole/test_win32ole_method.rb: ditto.
+
+Thu Jul 10 19:38:35 2008 wanabe <s.wanabe@gmail.com>
+
+ * test/ruby/envutil.rb (assert_normal_exit): r17993 revert.
+
+Thu Jul 10 18:29:41 2008 wanabe <s.wanabe@gmail.com>
+
+ * test/ruby/envutil.rb (assert_normal_exit): finish writing script
+ before spawn("ruby") to avoid blocking in win32.
+
+Thu Jul 10 17:20:50 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/win32.c (insert): follow recent changes of globbing.
+
+Thu Jul 10 14:09:05 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/coverage/coverage.c (rb_coverage_start): return nil.
+
+Thu Jul 10 12:41:56 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * thread.c (rb_thread_wait_for): fixed variable name.
+
+Thu Jul 10 12:09:58 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * vm_core.h (rb_thread_t), vm.c (rb_thread_mark), process.c
+ (rb_last_status_get, rb_last_status_set, rb_last_status_clear):
+ moved last_status from rb_vm_t. [ruby-dev:35414]
+
+ * vm.c (th_init2): initialize last_status with nil.
+
+Thu Jul 10 12:09:21 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * thread.c (rb_thread_wait_for): wait until timed out only when
+ sleeping with timeout.
+
+Wed Jul 9 22:41:16 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * thread.c (sleep_timeval): wait until timed out. [ruby-core:17270]
+
+Wed Jul 9 20:58:16 2008 Tanaka Akira <akr@fsij.org>
+
+ * array.c (rb_ary_fill): don't raise even if length is negative.
+ [ruby-core:17483], [ruby-core:17661]
+
+Wed Jul 9 20:18:50 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (rb_cv_va_args_macro): check for __VA_ARGS__.
+
+ * thread.c (thread_debug): show source name and line if possible.
+
+ * thread_{pthread,win32}.c (rb_thread_create_timer_thread): needs more
+ stack for debug.
+
+Wed Jul 9 11:13:39 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/profiler.rb (Profiler__#print_profile): sort in the descending
+ order of cumulative time.
+
+Wed Jul 9 11:11:18 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * dir.c (struct glob_args, rb_glob_caller, rb_glob2, push_pattern),
+ (glob_brace): make consistent prototypes.
+
+ * dir.c (push_glob): set enc in the caller of rb_glob_caller as well
+ as rb_glob2.
+
+Wed Jul 9 09:12:11 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * ext/nkf/nkf-utf8/nkf.c (options): use input_endian.
+
+Wed Jul 9 01:38:37 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * string.c (rb_str_succ): alphabets or numerics mutually enclosing
+ non-alphanumeric characters can carry up. e.g., "1.999".succ should
+ be "2.000".
+
+Wed Jul 9 00:12:31 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * thread.c (rb_set_coverages, rb_reset_coverages): enable and disable
+ coverage measurement.
+
+ * thread.c (rb_get_coverages): rename and move from vm.c.
+
+ * vm.c (rb_vm_get_coverages): ditto.
+
+ * iseq.c (prepare_iseq_build): ditto.
+
+ * thread.c (clear_coverage): ditto.
+
+ * parse.y (coverage): ditto.
+
+ * ext/coverage/coverage.c: use above functions, add new method
+ Coverage.start and fix rdoc .
+
+Tue Jul 8 23:02:35 2008 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+
+ * ext/win32ole/win32ole.c (find_default_source): bug fix when
+ OLE object does not have default source interface.
+
+ * test/win32ole/test_win32ole_event.rb: ditto.
+
+Tue Jul 8 22:56:23 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * thread.c (rb_enable_coverages): hide coverage array by setting 0 to
+ klass during measurement.
+
+ * parse.y (coverage, yycompile0): ditto.
+
+ * iseq.c (prepare_iseq_build): use rb_hash_lookup instead of
+ rb_hash_aref.
+
+ * thread.c (rb_coverage_result): restore klass of coverage array
+ and return it.
+
+ * thread.c (update_coverage): check whether its klass is 0.
+
+Tue Jul 8 22:28:25 2008 Koichi Sasada <ko1@atdot.net>
+
+ * lib/debug.rb, lib/profile.rb: fix to use RubyVM.
+
+ * lib/rdoc/parsers/parse_c.rb: ditto.
+
+Tue Jul 8 21:45:22 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * vm.c (rb_vm_mark): mark the last element of special_exceptions.
+
+Tue Jul 8 19:55:40 2008 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+
+ * ext/win32ole/win32ole.c (find_default_source): try to
+ find COCLASS when WIN32OLE object is not COCLASS.
+
+ * test/win32ole/test_win32ole_event.rb: ditto
+
+Tue Jul 8 13:38:22 2008 Koichi Sasada <ko1@atdot.net>
+
+ * compile.h: fix to skip inserting a trace insn.
+
+Tue Jul 8 11:41:17 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * dir.c: shouldn't use ruby object in globbing, because glob service
+ routines are called before initializing ruby on some platforms (ex.
+ windows).
+
+Tue Jul 8 10:08:40 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * dir.c (Next): use rb_enc_mbclen. [ruby-dev:35390]
+
+Tue Jul 8 07:59:40 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * dir.c (Next): use rb_enc_precise_mbclen.
+
+Tue Jul 8 02:27:23 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * dir.c: preserve encoding of strings in glob and fnmatch.
+
+ * include/ruby/ruby.h: related changes.
+
+Tue Jul 8 00:22:58 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * string.c (rb_str_succ): limit carrying in an alphanumeric region if
+ exists. [ruby-dev:35094]
+
+Mon Jul 7 20:39:28 2008 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+
+ * ext/win32ole/win32ole.c(Init_win32ole): add
+ WIN32OLE_TYPE#source_ole_types, WIN32OLE_TYPE#default_ole_types,
+ WIN32OLE_TYPE#default_event_sources.
+
+ * test/win32ole/test_win32ole_type.rb: ditto.
+
+Mon Jul 7 19:45:22 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * test/ruby/test_dir.rb (test_chroot_nodir): add Errno::EPERM.
+
+Mon Jul 7 17:12:20 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/ipaddr.rb (IPAddr#initialize): get rid of ArgumentError in
+ IPAddr#to_range. a patch from okkez <okkez000 AT gmail.com> in
+ [ruby-dev:35091].
+
+Mon Jul 7 01:24:43 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * file.c (rb_file_s_extname): fix for file name with spaces.
+ [ruby-talk:307404]
+
+Mon Jul 7 00:59:37 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * thread_pthread.c (ruby_init_stack): prior STACK_END_ADDRESS if
+ found. [ruby-core:17624]
+
+Sun Jul 6 23:48:06 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/socket/socket.c (bsock_send, s_recvfrom, ruby_connect, s_accept),
+ (udp_send, unix_send_io, unix_recv_io): blocking region support.
+
+Sun Jul 6 18:34:35 2008 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+
+ * test/win32ole/test_win32ole_type.rb (test_initialize): add
+ more assertions.
+
+Sun Jul 6 10:12:21 2008 Kouhei Sutou <kou@cozmixng.org>
+
+ * lib/test/unit/collector/objectspace.rb
+ (Test::Unit::Collector::ObjectSpace::NAME): fix a typo.
+
+Sun Jul 6 00:56:51 2008 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/socket.c (host_str): fix type mismatch in rb_raise
+ format and argument.
+ (port_str): ditto.
+ (unix_recv_io): ditto.
+ (sock_s_unpack_sockaddr_un): ditto.
+
+Sat Jul 5 23:42:23 2008 Tanaka Akira <akr@fsij.org>
+
+ * include/ruby/ruby.h (NUM2INT): cast to int.
+ (FIX2INT): ditto.
+ (NUM2UINT): cast to unsigned int.
+ (FIX2UINT): ditto.
+
+Sat Jul 5 23:10:41 2008 Tanaka Akira <akr@fsij.org>
+
+ * io.c (rb_pipe): new function for handling EMFILE and ENFILE
+ error of pipe().
+ (UPDATE_MAXFD_PIPE): removed.
+ (pipe_open): use rb_pipe.
+ (rb_io_s_pipe): ditto.
+
+ * process.c (pipe_nocrash): use rb_pipe.
+
+ * include/ruby/intern.h (rb_pipe): declared.
+
+Sat Jul 5 22:22:27 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * thread.c (thread_initialize): NUM2INT() returns int.
+
+ * thread.c (timer_thread_function), thread_pthread.c (thread_timer),
+ thread_win32.c (timer_thread_func), thread_{pthread,win32}.c
+ (rb_thread_create_timer_thread): passing VM.
+
+Sat Jul 5 20:53:18 2008 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+
+ * test/win32ole/test_word.rb: check word installed.
+
+Sat Jul 5 16:12:54 2008 Narihiro Nakamura <authorNari@gmail.com>
+
+ * gc.c: revert. before lazy sweep.
+
+Sat Jul 5 09:55:44 2008 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+
+ * ext/win32ole/win32ole.c: add WIN32OLE#ole_respond_to?
+
+ * test/win32ole/test_win32ole.rb: ditto.
+
+Sat Jul 5 08:48:05 2008 Tanaka Akira <akr@fsij.org>
+
+ * re.c (unescape_nonascii): add has_property argument not to
+ raise error by /\p{Hiragana}\u{3042}/ in EUC-JP script.
+ (rb_reg_preprocess): use has_property argument to make regexp
+ encoding fixed.
+
+Sat Jul 5 08:29:47 2008 Tanaka Akira <akr@fsij.org>
+
+ * re.c (unescape_nonascii): make regexp fixed_encoding if \p is used.
+ fixed [ruby-core:17279].
+
+Fri Jul 4 23:12:53 2008 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+
+ * ext/win32ole/win32ole.c (d2time): fix the bug of VT_DATE
+ to String conversion when negative value.
+
+ * test/win32ole/test_win32ole_variant.rb: ditto.
+
+Fri Jul 4 22:15:29 2008 Tanaka Akira <akr@fsij.org>
+
+ * lib/test/unit/testcase.rb: collect descendants of
+ Test::Unit::TestCase using inherited.
+
+ * lib/test/unit/autorunner.rb: don't use ObjectSpace.each_object.
+
+ * lib/test/unit/collector/dir.rb: ditto.
+
+ * lib/test/unit/collector/objectspace.rb: ditto.
+
+ [ruby-core:17126]
+
+Fri Jul 4 20:43:53 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * include/ruby/oniguruma.h (OnigEncoding): removed auxiliary_data.
+
+ * include/ruby/encoding.h (ENC_DUMMY_P): moved dummy encoding flag to
+ rb_encoding from Encoding instance.
+
+ * encoding.c (rb_encoding_list): list of Encoding instances.
+
+ * encoding.c (struct rb_encoding_entry): moved base encoding from
+ instance variable.
+
+Fri Jul 4 17:51:07 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * numeric.c (check_uint, rb_num2uint, rb_fix2uint): proper check.
+
+Fri Jul 4 14:17:22 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/net/ftp.rb (Net::FTP#sendport): use divmod. [ruby-core:17557]
+
+Fri Jul 4 11:08:37 2008 Narihiro Nakamura <authorNari@gmail.com>
+
+ * gc.c (garbage_collect_force): sweep is completely ended.
+
+ * gc.c (os_obj_of): invoke garbage_collect_force() when freelist none.
+
+Fri Jul 4 05:01:26 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * numeric.c (rb_num2uint, rb_fix2uint): typo.
+
+Fri Jul 4 02:21:06 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * numeric.c (check_uint, rb_num2uint, rb_fix2uint): also needs checking
+ negative value. see [ruby-dev:33683]
+
+Thu Jul 3 23:26:36 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * include/ruby/intern.h: remove prototypes about coverage.
+
+ * iseq.c (prepare_iseq_build): add prototype.
+
+ * parse.y (coverage): ditto.
+
+ * thread.c (clear_coverage): ditto.
+
+ * thread.c (update_coverage): use rb_sourceline.
+
+ * thread.c (rb_get_coverages): rename and move to vm.c.
+
+ * vm.c (rb_vm_get_coverages): ditto.
+
+ * ext/coverage/coverage.c: add rdoc.
+
+Thu Jul 3 21:51:21 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * ext/coverage/coverage.c, ext/coverage/extconf.rb: eliminate
+ COVERAGE__ and introduce coverage.so instead. How to measure
+ coverage: (1) require "coverage.so", (2) require or load Ruby source
+ file, and (3) Coverage.result will return the same hash as COVERAGE__.
+ [ruby-dev:35324]
+
+ * thread.c (rb_enable_coverages): start coverage measurement by using
+ rb_add_event_hook.
+
+ * thread.c (rb_get_coverages): returns current results of coverage
+ measurement.
+
+ * include/ruby/intern.h: add prototype for above two functions.
+
+ * vm_core.h, vm.c: add field of coverages to rb_vm_t.
+
+ * insns.def (trace): remove special handling for COVERAGE__.
+
+ * iseq.c (prepare_iseq_build): switch COVERAGE__ to
+ rb_get_coverages().
+
+ * parse.y (coverage): ditto.
+
+ * thread.c (clear_coverage): ditto.
+
+ * lib/coverage.rb: use coverage.so instead of COVERAGE__.
+
+Thu Jul 3 21:20:45 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * thread.c (thread_initialize): NUM2INT returns long.
+
+Thu Jul 3 21:06:16 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (Init_eval): typo fixed in r17833.
+
+Thu Jul 3 19:44:44 2008 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+
+ * ext/win32ole/win32ole.c (Init_win32ole): remove duplicate line.
+
+Thu Jul 3 16:08:36 2008 Tanaka Akira <akr@fsij.org>
+
+ * configure.in (erfc): erfc of glibc comes with Debian GNU/Linux Etch
+ on IA64 is broken. erfc(10000.0) aborts.
+ use missing/erf.c instead.
+ http://sources.redhat.com/ml/libc-hacker/2005-08/msg00008.html
+
+Thu Jul 3 12:49:39 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/net/smtp.rb (Net::SMTP::start): use 'localhost' instead of
+ 'localhost.localdomain'. [ruby-dev:35333]
+
+ * lib/net/smtp.rb (Net::SMTP::SMTP.start): ditto.
+
+Thu Jul 3 07:06:02 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * Makefile.in (SET_LC_MESSAGES): LC_MESSAGES must be C.
+
+Thu Jul 3 07:02:55 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (Init_eval), gc.c (Init_GC), proc.c (Init_Proc): freeze
+ messages of preallocated special exceptions also.
+
+Thu Jul 3 04:39:30 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * gc.c (rb_during_gc): VALUE cache is irrelevant.
+
+Thu Jul 3 01:44:01 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * regint.h (GET_ALIGNMENT_PAD_SIZE, ALIGNMENT_RIGHT): cast pointer to
+ uintptr_t instead of unsigned int.
+
+Thu Jul 3 01:23:13 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * sprintf.c: include ieeefp.h to refer to isinf.
+
+ * ext/bigdecimal/bigdecimal.c: ditto.
+
+ * ext/json/ext/generator/generator.c: ditto.
+
+ * rational.c: ditto.
+
+Thu Jul 3 01:01:57 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * missing/tgamma.c (tgamma): remove unused variable.
+
+Thu Jul 3 00:18:00 2008 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+
+ * ext/win32ole/win32ole.c: avoid creating Ruby object during
+ GC. thanks to arton <artonx AT yahoo.co.jp>. [ruby-dev:35313]
+
+ * test/win32ole/test_win32ole_event.rb: ditto.
+
+Thu Jul 3 00:09:31 2008 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+
+ * gc.c: add rb_during_gc(). based on a patch from arton <artonx AT
+ yahoo.co.jp> at [ruby-dev:35313].
+
+ * include/ruby/intern.h: ditto.
+
+Wed Jul 2 09:49:10 2008 Narihiro Nakamura <authorNari@gmail.com>
+
+ * gc.c (gc_lazy_sweep): use lazy sweep algorithm for response
+ performance gain.
+
+ * gc.c (garbage_collect_force): mark and lazysweep invoke, after
+ erasing all mark.
+
+ * gc.c (GC_NOT_LAZY_SWEEP): not lazy sweep flag. for debug.
+
+Wed Jul 2 03:42:44 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * test/ruby/test_settracefunc.rb: fix expected traces for
+ RubyVM::FrozenCore's event and r17744.
+
+Wed Jul 2 03:10:41 2008 Koichi Sasada <ko1@atdot.net>
+
+ * compile.h, insns.def: reduce insn operand of "trace".
+
+ * include/ruby/ruby.h: add RUBY_EVENT_COVERAGE event.
+
+Wed Jul 2 02:02:34 2008 Koichi Sasada <ko1@atdot.net>
+
+ * proc.c, vm.c: fix to refer to next ruby level cfp to make binding.
+
+Wed Jul 2 01:58:19 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * insns.def (trace): C99ism.
+
+Wed Jul 2 01:53:40 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * Add coverage measurement constant COVERAGE__. This constant is not
+ for casual use. Usage: (1) assign {} to COVERAGE__, (2) require or
+ load Ruby source file, and (3) COVERAGE__["sourcefilepath"] will
+ return an array whose elements represent number of executions per
+ line of source code.
+
+ * vm_core.h: add field of coverage array to iseq.
+
+ * iseq.c (prepare_iseq_build): ditto.
+
+ * insns.def (trace): update coverage array.
+
+ * parse.y (coverage): create and initialize coverage array.
+
+ * compile.h (ADD_TRACE): add trace instruction to update coverage
+ array.
+
+ * thread.c (clear_coverage): delete coverage array when forking.
+ Otherwise, double count of coverage may occur.
+
+ * lib/coverage.rb: sample coverage measurement tool.
+
+ * error.c: distinguish explicitly between parse_in_eval and
+ mild_compile_error.
+
+ * load.c: ditto.
+
+ * vm_eval.c: ditto.
+
+Tue Jul 1 21:32:43 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * lib/test/unit/ui/console/testrunner.rb: prevent destructive
+ modification to $0.
+
+ * test/rubygems/gemutilities.rb (build_rake_in): move from
+ test_gem_ext_rake_builder.rb.
+
+ * test/rubygems/test_gem_ext_rake_builder.rb: ditto.
+
+ * test/rubygems/test_gem_installer.rb: override Gem.ruby and
+ ENV["rake"].
+
+ * test/rubygems/test_gem_uninstaller.rb: ditto.
+
+Tue Jul 1 21:13:17 2008 Koichi Sasada <ko1@atdot.net>
+
+ * compile.c, vm.c, insns.def: call FrozenCore.set_postexe method
+ instead to use "postexe" insn.
+
+ * id.c, id.h: add a prepared id for above.
+
+Tue Jul 1 21:09:58 2008 URABE Shyouhei <shyouhei@ruby-lang.org>
+
+ * lib/mkmf.rb (create_tmpsrc): we need to include COMMON_HEADERS,
+ namely inclusion of ruby.h, because _GNU_SOURCE is now defined
+ there (if any) and socket.so requires it on Linux systems.
+
+Tue Jul 1 20:55:07 2008 URABE Shyouhei <shyouhei@ruby-lang.org>
+
+ * eval.c (rb_interrupt): trick to suppress GCC warning.
+
+ * sprintf.c (rb_str_format): ditto.
+
+Tue Jul 1 20:44:36 2008 Koichi Sasada <ko1@atdot.net>
+
+ * tool/instruction.rb: RubyVM is not module.
+
+Tue Jul 1 19:31:24 2008 URABE Shyouhei <shyouhei@ruby-lang.org>
+
+ * ext/digest/digest.c (rb_digest_instance_inspect): constified.
+
+ * variable.c (rb_path2class): field precision should have type int.
+
+Tue Jul 1 19:01:00 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * enc/shift_jis.c (code_is_ctype): HALF WIDTH KATAKANA is
+ a character.
+
+Tue Jul 1 17:56:34 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * missing/vsnprintf.c (BSD__uqtoa): constified.
+
+Tue Jul 1 17:50:44 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * enc/make_encdb.h: always add ';' at the end of line.
+
+Tue Jul 1 17:44:30 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * iseq.c (COMPILE_OPTION_FALSE), time.c (timegm_noleapsecond),
+ thread.c (eKillSignal, eTerminateSignal),
+ missing/vsnprintf.c (BSD_vfprintf): constified.
+
+Tue Jul 1 17:37:43 2008 URABE Shyouhei <shyouhei@ruby-lang.org>
+
+ * enc/ascii.c: ISO C does not allow extra ';' outside of a
+ function
+
+ * enc/us_ascii.c: ditto.
+
+ * enc/utf_8.c: ditto.
+
+ * enc/big5.c: ditto.
+
+ * enc/euc_jp.c: ditto.
+
+ * enc/euc_kr.c: ditto.
+
+ * enc/euc_tw.c: ditto.
+
+ * enc/gb2312.c: ditto.
+
+ * enc/gbk.c: ditto.
+
+ * enc/iso_8859_1.c: ditto.
+
+ * enc/iso_8859_2.c: ditto.
+
+ * enc/iso_8859_3.c: ditto.
+
+ * enc/iso_8859_4.c: ditto.
+
+ * enc/iso_8859_5.c: ditto.
+
+ * enc/iso_8859_6.c: ditto.
+
+ * enc/iso_8859_7.c: ditto.
+
+ * enc/iso_8859_8.c: ditto.
+
+ * enc/iso_8859_9.c: ditto.
+
+ * enc/iso_8859_10.c: ditto.
+
+ * enc/iso_8859_11.c: ditto.
+
+ * enc/iso_8859_13.c: ditto.
+
+ * enc/iso_8859_14.c: ditto.
+
+ * enc/iso_8859_15.c: ditto.
+
+ * enc/iso_8859_16.c: ditto.
+
+ * enc/koi8_r.c: ditto.
+
+ * enc/shift_jis.c: ditto.
+
+ * enc/utf_16be.c: ditto.
+
+ * enc/utf_32be.c: ditto.
+
+ * enc/utf_32le.c: ditto.
+
+ * enc/windows_1251.c: ditto.
+
+ * process.c (run_exec_rlimit): ISO C90 forbids mixed declarations
+ and code
+
+ * include/ruby/ruby.h (enum ruby_special_consts): ISO C forbids
+ comma at end of enumerator list
+
+ * include/ruby/ruby.h (enum ruby_value_type): ditto.
+
+ * eval_intern.h (enum): ditto.
+
+ * vm_core.h (enum rb_thread_status): ditto.
+
+ * parse.y (enum lex_state_e): ditto.
+
+ * parse.y (enum string_type): ditto.
+
+ * process.c (enum): ditto.
+
+ * ruby.c (enum dump_flag_bits): ditto.
+
+ * ruby.c (enum disable_flag_bits): ditto.
+
+ * enc/gb18030.c (enum): ditto.
+
+Tue Jul 1 17:21:42 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * regexec.c (stack_double): use MatchStackLimitSize atomically.
+
+ * regparse.c (onig_free_shared_cclass_table): OnigTypeCClassTable
+ needs atomicity
+
+ * regsyntax.c: constified all predefined OnigSyntaxTypes.
+
+Tue Jul 1 16:57:44 2008 URABE Shyouhei <shyouhei@ruby-lang.org>
+
+ * include/ruby/st.h (struct st_table): type of bit-field
+ 'num_entries' is a GCC extension
+
+ * include/ruby/ruby.h (rb_intern): prefix __extension__ for
+ braced-groups within expressions.
+
+ * include/ruby/intern.h (rb_usascii_str_new2): ditto.
+
+ * include/ruby/intern.h (rb_tainted_str_new2): ditto.
+
+ * include/ruby/intern.h (rb_str_new2): ditto.
+
+Tue Jul 1 15:01:13 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/rubygems/ext/builder.rb (Gem::Ext::Builder.make),
+ (Gem::Ext::Builder.run): EXIT_SUCCESS may be 0 or may not.
+
+ * test/rubygems/test_gem_ext_rake_builder.rb (build_rake_in): override
+ Gem.ruby and ENV["rake"].
+
+ * runruby.rb: bin/rake does not exist in archdir where architecture
+ depend script (i.e. rbconfig.rb) exists.
+
+Tue Jul 1 13:19:44 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * array.c (rb_ary_fill): check if beg is too big.
+
+Tue Jul 1 12:01:16 2008 Koichi Sasada <ko1@atdot.net>
+
+ * compile.c, insns.def, vm.c, vm_core.h: remove some insns
+ (undef, alias, definemethod).
+ Call RubyVM::FrozenCore's singleton method instead.
+ Add "putiseq" and "putspecialobject" instructions.
+
+ * id.c, id.h: add ids for above.
+
+ * tool/parse.rb: "VM" no longer exists. Use RubyVM instead.
+
+Tue Jul 1 03:28:16 2008 Eric Hodel <drbrain@segment7.net>
+
+ * test/rubygems/test_ext_configure_builder.rb: Apply locale-free
+ patch by Yusuke ENDOH. [ruby-core:17444].
+
+ * runruby.rb: Set ENV['rake']. Patch by Yusuke ENDOH
+ [ruby-core:17442].
+
+Tue Jul 1 01:07:17 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/cgi.rb (CGI::QueryExtension.read_multipart): blanks inside
+ double quotes are allowed. [ruby-list:45140]
+
+Tue Jul 1 00:59:43 2008 Tanaka Akira <akr@fsij.org>
+
+ * numeric.c (num_coerce): call rb_Float(x) first. don't depend on
+ evaluation order of function arguments.
+
+Tue Jul 1 00:49:11 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * gc.c (rb_newobj): abort GC phase before rb_bug.
+
+Mon Jun 30 23:15:07 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * test/openssl/test_ssl.rb (start_server): shutdown TCPServer before
+ close.
+
+Mon Jun 30 23:01:50 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * common.mk (RUBY_H_INCLUDES): common headers which are included with
+ ruby.h together.
+
+Mon Jun 30 22:57:50 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * test/ruby/test_settracefunc.rb (test_raise): reveal an exception
+ hided by rescue modifier.
+
+Mon Jun 30 22:49:32 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * test/ruby/test_array.rb (test_aset): access with too big index
+ raises not ArgumentError but IndexError now.
+
+Mon Jun 30 22:30:37 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/test/unit/collector/dir.rb (recursive_collect): r15662 reverted.
+
+Mon Jun 30 22:27:39 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * ext/stringio/stringio.c (strio_getline): fix for nil and "" as
+ separator. [ruby-dev:34591]
+
+Mon Jun 30 22:21:30 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * io.c (argf_each_line): pass args to each_line. [ruby-dev:34958]
+
+Mon Jun 30 22:12:46 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * gc.c (chain_finalized_object): should not delete from finalizer
+ table until run.
+
+ * gc.c (rb_gc_call_finalizer_at_exit): deferred_final_list may be
+ empty first.
+
+Mon Jun 30 18:57:05 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * gc.c (gc_finalize_deferred): allow object allocation in finalizers.
+
+ * gc.c (rb_gc_call_finalizer_at_exit): ditto.
+
+Mon Jun 30 14:41:36 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * gc.c (rb_newobj): prohibit call of rb_newobj() during gc when
+ USE_VALUE_CACHE is not defined (normal case).
+
+Mon Jun 30 10:28:33 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ext/syslog/syslog.c (syslog_write): syslog operations should be
+ protected from $SAFE level 4. a patch from Keita Yamaguchi
+ <keita.yamaguchi at gmail.com>.
+
+ * ext/syslog/syslog.c (mSyslog_close): ditto.
+
+ * ext/syslog/syslog.c (mSyslog_set_mask): ditto.
+
+Mon Jun 30 03:01:35 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * test/net/http/test_http.rb (_test_request__file): specify encoding
+ explicitly.
+
+ * test/net/http/utils.rb: ditto.
+
+Mon Jun 30 02:31:07 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * encoding.c (rb_utf8_encindex): defined.
+
+ * include/ruby/encoding.h (rb_utf8_encindex): ditto.
+
+Mon Jun 30 02:14:34 2008 Koichi Sasada <ko1@atdot.net>
+
+ * vm.c, vm_core.h,vm_core.h, vm_dump.c, iseq.c: rename class name
+ VM -> RubyVM, and rename rb_cVM -> rb_cRubyVM.
+ "VM" is too short name for class.
+
+ * test/ruby/test_method.rb, test/ruby/test_settracefunc.rb: ditto.
+
+ * include/ruby/ruby.h: rb_cRubyVM, rb_cEnv, rb_cISeq should not be
+ exposed.
+
+Mon Jun 30 02:10:32 2008 Koichi Sasada <ko1@atdot.net>
+
+ * process.c (Init_process): fix to avoid a warning.
+
+Mon Jun 30 01:52:05 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * test/ruby/test_parse.rb: remove tests for open_args.
+
+Sun Jun 29 23:01:54 2008 Tanaka Akira <akr@fsij.org>
+
+ * string.c (rb_str_format_m): make tmp volatile to avoid possible GC
+ problem.
+
+Sun Jun 29 18:01:30 2008 Kouhei Sutou <kou@cozmixng.org>
+
+ * lib/rss/parser.rb, lib/rss/utils.rb: merge documents from ruby_1_8.
+
+Sun Jun 29 17:44:23 2008 Kouhei Sutou <kou@cozmixng.org>
+
+ * lib/rss/parser.rb (RSS::ListenerMixin#known_class): define to
+ work with ruby 1.8.x too.
+
+Sun Jun 29 17:41:42 2008 Kouhei Sutou <kou@cozmixng.org>
+
+ * lib/rss/maker/base.rb (RSS::Maker::RSSBase#to_feed): raise
+ exception not return nil if RSS::Maker.make can't get required
+ information.
+
+ * test/rss/rss-assertions.rb: follow the above change.
+
+Sun Jun 29 17:37:23 2008 Kouhei Sutou <kou@cozmixng.org>
+
+ * lib/rss/maker/base.rb (RSS::Maker::RSSBase#make): require block.
+
+ * test/rss/test_maker_{0.9,1.0,2.0}.rb: follow the above change.
+
+Sun Jun 29 17:33:34 2008 Kouhei Sutou <kou@cozmixng.org>
+
+ * lib/rss/maker/base.rb, lib/rss/maker/itunes.rb: don't use
+ instance_eval to initialize variables. (speed up)
+
+Sun Jun 29 17:31:15 2008 Kouhei Sutou <kou@cozmixng.org>
+
+ * lib/rss/rss.rb, test/rss/test_version.rb (RSS::VERSION):
+ 0.2.4 -> 0.2.5.
+
+Sun Jun 29 11:36:20 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * dir.rb: fix resource leak.
+
+Sun Jun 29 09:43:10 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/tmpdir.rb (@@systmpdir): prior LOCAL_APPDATA if possible, and
+ should be clean. based on a patch from arton <artonx AT
+ yahoo.co.jp> at [ruby-dev:35269]
+
+Sun Jun 29 07:53:08 2008 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+
+ * ext/win32ole/win32ole.c (date2time_str): fix the overflow in
+ some situation. [ruby-bugs-20793]
+
+Sat Jun 28 21:25:08 2008 Tanaka Akira <akr@fsij.org>
+
+ * include/ruby/ruby.h (struct RRegexp): new field usecnt. replace
+ str and len by src.
+
+ * gc.c (gc_mark_children): mark src field of regexp.
+ (obj_free): don't free str field.
+
+ * re.c (REG_BUSY): removed.
+ (rb_reg_initialize): prohibit re-initialize regexp.
+ (rb_reg_search): use usecnt to prevent freeing regexp currently
+ using. this prevents SEGV by:
+ r = /\A((a.)*(a.)*)*b/
+ r =~ "ab" + "\xc2\xa1".force_encoding("euc-jp")
+ t = Thread.new { r =~ "ab"*8 + "\xc2\xa1".force_encoding("utf-8")}
+ sleep 0.2
+ r =~ "ab"*8 + "\xc2\xa1".force_encoding("euc-jp")
+
+Sat Jun 28 21:15:43 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * include/ruby/intern.h (rb_str_new2, rb_tainted_str_new2,
+ rb_usascii_str_new2): use inline versions only for constant
+ literals.
+
+Sat Jun 28 13:12:06 2008 Tanaka Akira <akr@fsij.org>
+
+ * test/rubygems/test_gem.rb (test_self_path_APPLE_GEM_HOME): don't use
+ fixed /tmp/apple_gem_home directory.
+
+Sat Jun 28 08:40:18 2008 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+
+ * ext/win32ole/win32ole.c: check String encoding when
+ converting String to VT_BSTR in OLE.
+
+ * test/win32ole/test_win32ole.rb: ditto.
+
+Sat Jun 28 01:08:42 2008 Tanaka Akira <akr@fsij.org>
+
+ * time.c (time_timespec): fix rounding negative float.
+
+Fri Jun 27 21:38:57 2008 Tanaka Akira <akr@fsij.org>
+
+ * struct.c: __size__ removed. use the length of __members__ instead.
+ (num_members): new function.
+
+Fri Jun 27 21:19:08 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * test/inlinetest.rb (InlineTest.in_progname): workaround for frozen
+ $0. [ruby-dev:35261]
+
+ * lib/test/unit/ui/console/testrunner.rb (TestRunner#finished): ditto.
+
+Fri Jun 27 17:45:17 2008 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
+
+ * lib/erb.rb: adjust line number for magic comment.
+
+ * test/erb/test_erb.rb: add tests for def_method.
+
+Fri Jun 27 14:29:07 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * parse.y (primary): empty not should call '!' on nil.
+ cf [ruby-dev:35227]
+
+Fri Jun 27 14:25:52 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * vm.c (vm_eval_body): if thrown exception is frozen, reraise it to
+ create a new instance.
+
+Fri Jun 27 13:29:26 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * include/ruby/intern.h (rb_str_new2, rb_tainted_str_new2,
+ rb_usascii_str_new2): use with-length versions with strlen to
+ optimize strlen, if optimized.
+
+Fri Jun 27 12:28:57 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/un.rb (mkmf): new command to create makefile.
+
+Fri Jun 27 11:06:05 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/un.rb (wait_writable): added help message.
+
+Fri Jun 27 06:52:54 2008 Koichi Sasada <ko1@atdot.net>
+
+ * configure.in: need a ",".
+
+ * process.c (rb_fork): check CANNOT_FORK_WITH_PTHREAD macro.
+
+Fri Jun 27 06:50:56 2008 Koichi Sasada <ko1@atdot.net>
+
+ * vm_eval.c (vm_call_super): fix to call method_missing.
+ [ruby-core:15719], [ruby-core:17340]
+
+Fri Jun 27 00:00:14 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ruby.c (set_arg0, ruby_prog_init): freeze $0. a patch from Keita
+ Yamaguchi <keita.yamaguchi at gmail.com>.
+
+Thu Jun 26 23:58:29 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * string.c (rb_str_index_m, rb_str_rindex_m, rb_str_include): fix
+ rdoc.
+
+Thu Jun 26 17:43:41 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * variable.c (rb_f_trace_var): should not be allowed at safe level 4.
+ a patch from Keita Yamaguchi <keita.yamaguchi at gmail.com>.
+
+Thu Jun 26 11:04:30 2008 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems: Update to RubyGems 1.2.0 r1824. Incorporates patch by
+ Yusuke ENDOH [ruby-core:17353].
+
+Thu Jun 26 00:48:31 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * parse.y (primary): not operand might be empty. [ruby-dev:35227]
+
+Wed Jun 25 21:54:34 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * parse.y (primary): make functional-style not operator to act
+ like function. see <http://d.hatena.ne.jp/ku-ma-me/20080624/p1>.
+
+Wed Jun 25 15:28:50 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * array.c (rb_ary_fill): not depend on unspecified behavior at integer
+ overflow. reported by Vincenzo Iozzo <snagg AT openssl.it>.
+
+Wed Jun 25 13:42:44 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * lib/erb.rb (ERB::Compiler:Buffer#new): push magic comment first.
+
+ * lib/erb.rb (ERB::Compiler#compile): fix for broken input.
+
+Wed Jun 25 12:10:01 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * lib/erb.rb (ERB::Compiler#compile): magic comment needs LF.
+
+Wed Jun 25 09:31:11 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * lib/erb.rb (ERB::Compiler#compile): output magic comment.
+
+Tue Jun 24 22:14:36 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * vm_eval.c (eval_string_with_cref): preserve parse_in_eval even if
+ exception raised.
+
+Tue Jun 24 22:09:18 2008 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+
+ * ext/win32ole/win32ole.c(ole_invoke): fix memory leak.
+ [ruby-bugs-20792]
+
+Tue Jun 24 17:20:39 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (rb_cv_fork_with_pthread): check after check for
+ pthread library, and define the macro when checked only.
+
+Tue Jun 24 17:04:39 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * ext/io/wait/extconf.rb: check sys/socket.h for cygwin.
+
+Tue Jun 24 16:51:51 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * io.c (io_reopen): remove cygwin handling because it seems to be for
+ C's stdio.
+ fixed [ruby-dev:35183]
+
+Tue Jun 24 11:12:33 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * include/ruby/win32.h, win32/win32.c (rb_w32_getppid): now support
+ getppid() on win32 (but only Win2k or later).
+
+ * process.c (get_ppid): remove win32 special logic.
+
+Tue Jun 24 09:40:47 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * ext/socket/socket.c (init_sock): socket is binmode on platforms
+ which support binmode.
+
+Tue Jun 24 00:21:53 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * compile.c (iseq_build_from_ary): initialize arg_opts, a patch from
+ Adam Strzelecki <ono at java.pl> in [ruby-core:17220].
+
+Tue Jun 24 00:10:53 2008 wanabe <s.wanabe@gmail.com>
+
+ * compile.c (iseq_build_from_ary): fix expression to obtain
+ iseq->local_size and iseq->local_table_size. [ruby-dev:35205]
+
+Mon Jun 23 11:31:41 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/mathn.rb (Rational::power2): removed incomplete method.
+ see [ruby-dev:35195]. [ruby-core:17293]
+
+Sun Jun 22 14:16:28 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/readline/extconf.rb (have_readline_func): readline on Mac OS X
+ needs headers to detect some functions.
+
+Sun Jun 22 09:51:14 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * object.c (rb_class_superclass): rdoc improvement, a patch from
+ Gaston Ramos <ramos.gaston AT gmail.com> in [ruby-core:17371].
+
+Sun Jun 22 09:22:32 2008 URABE Shyouhei <shyouhei@ruby-lang.org>
+
+ * README.EXT: translated README.EXT.ja
+
+Sun Jun 22 00:42:02 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/win32.c (rb_w32_osid, rb_w32_osver, CreateChild): XP is
+ is different from Vista about pipe handle inheritance.
+ fixed [ruby-core:17367], reported by Lars Christensen <larsch at
+ belunktum.dk>
+
+Sun Jun 22 00:38:45 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * README.EXT.ja: add note about mark and free.
+
+Sun Jun 22 00:01:36 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * io.c (rb_io_binmode_p, argf_binmode_p, Init_IO): new method
+ IO#binmode? and ARGF.binmode? [ruby-dev:35148]
+
+Sat Jun 21 17:33:50 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/win32.c (rb_w32_spawn): no longer support P_WAIT.
+
+Sat Jun 21 16:46:09 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * thread_win32.c (native_sleep): must block reentrance when accessing
+ th->unblock.
+ fixed [ruby-core:17341], reported by Bill Kelly <billk at cts.com>
+
+Sat Jun 21 16:29:02 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (call_args2, open_args): removed.
+
+ * parse.y (parser_yylex): unified warnings at space between method
+ name and argument parenthesis. [ruby-dev:33943]
+
+Sat Jun 21 16:21:07 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * numeric.c (flo_round): get rid of overflow.
+
+Sat Jun 21 15:57:15 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/rdoc/parsers/parse_rb.rb (RDoc#collect_first_comment): skip
+ magic comment.
+
+Sat Jun 21 15:54:55 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in: check if fork works with pthread.
+
+Sat Jun 21 15:31:09 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * tool/make-snapshot: ported to ruby.
+
+ * tool/make-snapshot: fixed digests.
+
+Sat Jun 21 04:36:59 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ext/bigdecimal/lib/bigdecimal/jacobian.rb (Jacobian::dfdxi):
+ typo fixed (raize -> raise). [ruby-list:45101]
+
+ * enumerator.c (enum_each_cons): typo in RDoc fixed.
+
+Sat Jun 21 00:45:34 2008 URABE Shyouhei <shyouhei@ruby-lang.org>
+
+ * tool/make-snapshot: do not use sha256sum; use BASERUBY instead
+
+ * common.mk (dist): use tool/make-snapshot instead
+
+Fri Jun 20 16:34:14 2008 Tanaka Akira <akr@fsij.org>
+
+ * process.c (Init_process): Process::Status#to_int removed.
+ (PST2INT): defined.
+ (pst_to_s): use PST2INT.
+ (pst_inspect): ditto.
+ (pst_equal): ditto.
+ (pst_bitand): ditto.
+ (pst_rshift): ditto.
+ (pst_wifstopped): ditto.
+ (pst_wstopsig): ditto.
+ (pst_wifsignaled): ditto.
+ (pst_wtermsig): ditto.
+ (pst_wifexited): ditto.
+ (pst_wexitstatus): ditto.
+ (pst_success_p): ditto.
+ (pst_wcoredump): ditto.
+ (rb_f_system): ditto.
+
+Fri Jun 20 15:40:02 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * array.c (rb_ary_store, rb_ary_splice): not depend on unspecified
+ behavior at integer overflow.
+
+ * string.c (str_buf_cat): ditto.
+
+Fri Jun 20 12:39:55 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * process.c (rb_detach_process): store detached process ID in the
+ thread local storage. moved from lib/open3.rb.
+
+Fri Jun 20 11:57:46 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (rb_str_sub_bang): should preserve replacement points
+ since they may be altered in the yielded block.
+
+Fri Jun 20 11:07:56 2008 Tanaka Akira <akr@fsij.org>
+
+ * string.c (rb_memhash): randomize hash to avoid algorithmic
+ complexity attacks.
+ (rb_str_hash): use rb_memhash.
+
+ * include/ruby/intern.h (rb_reset_random_seed): declared.
+
+ * thread.c (rb_thread_atfork): call rb_reset_random_seed.
+
+ * inits.c (rb_call_inits): call Init_RandomSeed at first.
+
+ * random.c (seed_initialized): defined.
+ (fill_random_seed): extracted from random_seed.
+ (make_seed_value): extracted from random_seed.
+ (rb_f_rand): initialize random seed at first.
+ (initial_seed): defined.
+ (Init_RandomSeed): defined.
+ (Init_RandomSeed2): defined.
+ (rb_reset_random_seed): defined.
+ (Init_Random): call Init_RandomSeed2.
+
+Wed Jun 18 21:52:38 2008 URABE Shyouhei <shyouhei@ruby-lang.org>
+
+ * array.c (ary_new, rb_ary_initialize, rb_ary_store,
+ rb_ary_splice, rb_ary_times): integer overflows should be
+ checked. based on patches from Drew Yao <ayao at apple.com>
+ fixed CVE-2008-2726
+
+ * string.c (rb_enc_cr_str_buf_cat): fixed unsafe use of alloca,
+ which led memory corruption. based on a patch from Drew Yao
+ <ayao at apple.com> fixed CVE-2008-2726
+
+Fri Jun 20 03:26:00 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * process.c (rb_f_fork): NetBSD 4.0 or later can fork.
+
+Fri Jun 20 03:19:39 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * test/testunit/collector/test_dir.rb: r15825 made it unnecessary to
+ change String to Symbol.
+
+ * test/testunit/collector/test_objectspace.rb: ditto.
+
+Fri Jun 20 03:14:31 2008 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems*, test/rubygems/*: Update to RubyGems 1.1.1 r1784 (pre
+ 1.2).
+
+Fri Jun 20 03:01:59 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * thread.c: try to remove false positive of deadlock detection (second
+ trial).
+
+Fri Jun 20 02:16:43 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/mathn.rb (Rational::power2): typo fixed. [ruby-core:17293]
+
+Fri Jun 20 02:11:01 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (str_gsub): should preserve last successful match
+ data. [ruby-dev:35182]
+
+Fri Jun 20 01:07:28 2008 Koichi Sasada <ko1@atdot.net>
+
+ * KNOWNBUGS.rb, bootstraptest/pending.rb: move a bug (?) to pending.
+
+Fri Jun 20 00:40:08 2008 Koichi Sasada <ko1@atdot.net>
+
+ * proc.c (proc_new): fix to return Proc object if block is already
+ in heap. [ruby-core:15711]
+
+ * bootstraptest/test_proc.rb: add a test.
+
+Fri Jun 20 00:18:04 2008 Koichi Sasada <ko1@atdot.net>
+
+ * thread_win32.c (native_sleep): fix to decrement sleeper count.
+
+Thu Jun 19 23:48:45 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * test/net/http/test_http.rb: compare encodings of two strings before
+ comparing themself, which suppress too big error output.
+
+Thu Jun 19 23:46:35 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * ext/json/ext/parser/parser.rl, ext/json/ext/parser/parser.c: JSON
+ text SHALL be encoded in Unicode.
+
+Thu Jun 19 23:17:56 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * thread.c, thread_win32.c, vm_core.h: try to remove false positive of
+ deadlock detection.
+
+Thu Jun 19 21:38:08 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/extmk.rb (extmake): check if compile before showing message.
+
+Thu Jun 19 21:35:32 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * tool/make-snapshot: supported multiple snapshots.
+
+Thu Jun 19 20:37:00 2008 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
+
+ * lib/net/pop.rb (Net::POP3#set_all_uids): speed
+ up. a patch from <m-sumi AT techfirm.co.jp> [ruby-list:45047]
+
+Thu Jun 19 17:44:15 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ext/etc/etc.c (Init_etc): define constant aliases Etc::Passwd
+ and Etc::Group. [ruby-dev:35150]
+
+Thu Jun 19 17:37:21 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (str_alloc): specify 'inline' modifier.
+
+ * string.c (str_alloc): remove cSymbol hack that no longer
+ necessary.
+
+ * string.c (scan_once): avoid retrieving encoding info unless
+ necessary.
+
+Thu Jun 19 17:19:14 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (rb_str_scan): String#scan should preserve last
+ successful match data. [ruby-dev:35106]
+
+Thu Jun 19 16:49:36 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * missing/acosh.c (atanh): should set ERANGE to errno if parameter
+ is the boundary case. fixed [ruby-dev:35155]
+
+Thu Jun 19 16:06:01 2008 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/tkextlib/tile/treeview.rb: cannot configure tags.
+
+Thu Jun 19 11:48:33 2008 Koichi Sasada <ko1@atdot.net>
+
+ * test/ruby/test_enumerator.rb: fix to skip "with_memo" test.
+
+Thu Jun 19 11:40:55 2008 Koichi Sasada <ko1@atdot.net>
+
+ * vm_insnhelper.c (vm_throw): fix "return" process from "lambda".
+
+ * bootstraptest/test_proc.rb: add a test.
+
+ * bootstraptest/pending.rb: add a pending bug.
+
+Thu Jun 19 00:33:40 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * test/etc/test_etc.rb: avoid infinite loop. [ruby-dev:35158]
+
+Wed Jun 18 23:07:19 2008 URABE Shyouhei <shyouhei@ruby-lang.org>
+
+ * gc.c (rb_newobj): prohibit call of rb_newobj() during gc.
+ a patch from Sylvain Joyeux in [ruby-core:12099].
+
+Wed Jun 18 21:08:14 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ruby.c (verbose_setter, opt_W_getter): fixed prototypes.
+
+Wed Jun 18 19:20:00 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * ruby.c (opt_W_getter): use ruby_verbose directly instead of parameter
+ because ruby_verbose is not a real variable, so the address of
+ parameter is not collect.
+
+Wed Jun 18 18:31:03 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/win32.c (errmap): add some pipe errors.
+
+ * win32/win32.c (rb_w32_write): set errno when CRT's errno is EINVAL
+ for pipe errors.
+
+Wed Jun 18 18:09:08 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/win32.c (poll_child_status): set EINVAL to errno when
+ GetExitCodeProcess() fails with ERROR_INVALID_HANDLE.
+
+Wed Jun 18 15:01:18 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * io.c (rb_open_file): fs_encoding and fname_encoding is
+ rb_encoding *.
+ fixed [ruby-dev:35151]
+
+Wed Jun 18 14:30:06 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * io.c (rb_open_file): not rb_enc_get_index but rb_enc_get.
+
+Wed Jun 18 13:49:58 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * include/ruby/win32.h (pipe): now pipe is textmode. although this
+ change is experimental, it will be spec if no compatibility problem
+ is reported.
+
+Wed Jun 18 12:05:30 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * marshal.c (w_object, marshal_dump, r_object0, marshal_load): search
+ public methods only. [ruby-core:17283]
+
+ * object.c (convert_type): ditto.
+
+ * lib/singleton.rb (Singleton#_dump): conversion method should be
+ public.
+
+Wed Jun 18 10:18:11 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/etc/etc.c (etc_passwd, etc_group): fixed rdoc. a patch from
+ okkez <okkez000 AT gmail.com> in [ruby-dev:35141].
+
+Wed Jun 18 08:58:16 2008 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/*: Fix errors for 1.9.
+
+ * gem_prelude.rb: Only remove methods from gem_prelude.rb when
+ loading real RubyGems.
+
+Wed Jun 18 07:03:30 2008 Eric Hodel <drbrain@egment7.net>
+
+ * lib/rubygems/*: Update to RubyGems r1778 (pre 1.2).
+
+Wed Jun 18 04:27:58 2008 Koichi Sasada <ko1@atdot.net>
+
+ * KNOWNBUGS.rb, bootstraptest/pending.rb: move pending bug.
+
+Wed Jun 18 04:24:20 2008 Koichi Sasada <ko1@atdot.net>
+
+ * vm.c, vm_insnhelper.c: fix escape process with "break" and "return"
+ syntax in "lambda". [ ruby-Bugs-19304 ], [ruby-core:17164]
+
+ * KNOWNBUGS.rb, bootstraptest/test_proc.rb: add/move solved test.
+
+Wed Jun 18 01:51:10 2008 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/multi-tk.rb: cannot access class variable from
+ singleton method.
+
+Wed Jun 18 00:03:33 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * dir.c (Init_Dir): dir_foreach() takes variable argument.
+
+Tue Jun 17 23:04:24 2008 James Edward Gray II <jeg2@ruby-lang.org>
+
+ * lib/net/telnet.rb: Fixing Telnet#wairfor() which was broken by
+ changes to the Kernel::Integer() method. [ruby-core:17272]
+
+Tue Jun 17 23:02:18 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ruby.c (opt_W_getter): made a hooked variable.
+
+Tue Jun 17 22:04:47 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * enc/euc_jp.c (property_name_to_ctype): core dumped when sizeof(int)
+ differs from sizeof(long). [ruby-dev:35131]
+
+ * enc/shift_jis.c (property_name_to_ctype): ditto.
+
+ * enc/unicode.c (onigenc_unicode_property_name_to_ctype): ditto.
+
+Tue Jun 17 20:32:37 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * common.mk (miniruby$(EXEEXT)): $(PREP) isn't always same as
+ miniruby, and tests, debug, etc have no meaning when
+ cross-compiling.
+
+Tue Jun 17 18:39:11 2008 Ryan Davis <ryand-ruby@zenspider.com>
+
+ * common.mk: fixed dependencies on miniruby.
+
+Tue Jun 17 18:11:01 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * include/ruby/win32.h (pipe): expand pipe buffer size.
+
+Tue Jun 17 17:07:35 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/win32.c (CreateChild): no need to inherit handles here because
+ spawn'ed child cannot detect that STDIN is closed.
+
+Tue Jun 17 06:32:55 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * dir.c (dir_data): add intenc and extenc.
+
+ * dir.c (dir_s_alloc): ditto.
+
+ * dir.c (dir_initialize): now accept internal_encoding and
+ external_encoding.
+
+ * dir.c (dir_s_open): changed for dir_initialize.
+
+ * dir.c (dir_open_dir): ditto.
+
+ * dir.c (dir_foreach): changed for dir_open_dir.
+
+ * dir.c (dir_entries): changed for dir_open_dir.
+
+ * dir.c (dir_enc_str): defined.
+
+ * dir.c (dir_path): use dir_enc_str.
+
+ * dir.c (dir_read): ditto.
+
+ * dir.c (dir_each): ditto.
+
+Tue Jun 17 06:28:57 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * io.c (io_set_encoding): defined.
+
+ * io.c (rb_open_file): convert path on Windows and Mac OS X.
+
+ * io.c (open_key_args): use io_set_encoding and now accept
+ internal_encoding and external_encoding.
+
+Tue Jun 17 06:26:28 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * encoding.c (rb_filesystem_encoding): defined.
+
+ * include/ruby/encoding.h (rb_filesystem_encoding): added.
+
+Tue Jun 17 06:24:28 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * ext/syck/rubyext.c: add encoding header.
+
+Tue Jun 17 01:52:50 2008 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/tcltklib.c: SEGV when exit.
+
+ * ext/tk/lib/tk.rb: add a check for safety to Tk.exit.
+
+ * ext/tk/sample/irbtkw.rbw: freezes when receives SIGINT.
+
+Mon Jun 16 21:58:38 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/stringio/stringio.c (strio_each, strio_readlines): IO#each and
+ IO#readlines do not affect $_. [ruby-core:17277]
+
+Mon Jun 16 18:52:47 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/thwait.rb (ThreadsWait): Exception2MessageMapper no longer has
+ extend_to method. [ruby-core:17267]
+
+Mon Jun 16 14:46:25 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/e2mmap.rb (E2MM.def_e2message): typo.
+
+Mon Jun 16 09:43:27 2008 Akinori MUSHA <knu@iDaemons.org>
+
+ * enumerator.c (enumerator_with_object, Init_Enumerator):
+ Temporarily back out with_memo, for which we need a better name.
+
+Mon Jun 16 07:14:48 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/stringio/stringio.c (strio_readline, strio_each)
+ (strio_readlines): set lastline. [ruby-core:17257]
+
+Mon Jun 16 01:49:39 2008 Koichi Sasada <ko1@atdot.net>
+
+ * eval.c (rb_f_block_given_p): fix to skip class frame.
+ [ruby-core:14813]
+
+ * KNOWNBUGS.rb, bootstraptest/test_method.rb: move solved test.
+
+Mon Jun 16 01:48:08 2008 Koichi Sasada <ko1@atdot.net>
+
+ * vm_dump.c (vm_stack_dump_raw): disable verbose debug output.
+
+Mon Jun 16 01:33:08 2008 Koichi Sasada <ko1@atdot.net>
+
+ * vm_core.h, thread.c: rename global_interpreter_lock to
+ global_vm_lock.
+
+Sun Jun 15 18:40:35 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * ext/syck/rubyext.c (yaml_org_handler): associate encoding.
+
+ * ext/syck/rubyext.c (syck_genericresolver_node_import): ditto.
+
+Sun Jun 15 18:17:03 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * vm_core.h (rb_vm_t), vm.c (rb_vm_mark): moved preallocated special
+ exceptions.
+
+ * eval.c (Init_eval), gc.c (Init_GC), proc.c (Init_Proc): freeze
+ preallocated special exceptions.
+
+ * eval.c (rb_longjmp): duplicate the thrown exception to set backtrace
+ if it was frozen.
+
+ * gc.c (rb_memerror): raise nomem_error without backtrace if failed to
+ make backtrace.
+
+Sat Jun 14 22:52:35 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/stringio/stringio.c (strio_sysread): should not raise at empty
+ read. a patch from Arthur Schreiber at [ruby-core:17245].
+
+Sat Jun 14 16:55:46 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * file.c (file_expand_path): no need to expand root path which has no
+ short file name. [ruby-dev:35095]
+
+Sat Jun 14 11:59:17 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * gc.h (STACK_UPPER): moved from gc.c
+
+ * thread.c, thread_{pthread,win32}.c (ruby_init_stack,
+ ruby_thread_init_stack): moved stack initialization from gc.c.
+
+Sat Jun 14 11:57:53 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * gc.h (STACK_UPPER): moved from gc.c
+
+ * thread.c, thread_{pthread,win32}.c (ruby_init_stack,
+ ruby_thread_init_stack): moved stack initialization from gc.c.
+
+Sat Jun 14 07:52:53 2008 Tanaka Akira <akr@fsij.org>
+
+ * gc.c (ruby_initial_gc_stress): defined.
+ (ruby_initial_gc_stress_ptr): defined.
+
+ * debug.c (set_debug_option): use ruby_initial_gc_stress_ptr for
+ gc_stress option.
+
+Sat Jun 14 00:09:19 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * gc.c (ruby_gc_stress): moved to rb_objspace_t.
+
+ * gc.c (gc_stress_get, gc_stress_set): VM local attribute.
+
+ * signal.c (sigsegv): ditto.
+
+Fri Jun 13 21:55:48 2008 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * rational.c (nurat_equal_p): Rational(0,x) and 0 are equivalent,
+ anyway.
+
+Fri Jun 13 21:26:39 2008 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * complex.c (string_to_c, nucomp_s_convert): preserve the current
+ backref.
+
+ * rational.c (string_to_r, nurat_s_convert): ditto.
+
+ * include/ruby/intern.h (rb_match_busy): added a declaration.
+
+Fri Jun 13 18:08:10 2008 Tanaka Akira <akr@fsij.org>
+
+ * lib/time.rb (Time.xmlschema): don't accept decimal dot without
+ fractional digits. fractional digits handling simplified.
+
+Fri Jun 13 17:20:40 2008 wanabe <s.wanabe@gmail.com>
+
+ * complex.c (string_to_c_internal): save and restore backref.
+ fixed [ruby-dev:34991]
+
+Fri Jun 13 17:06:20 2008 wanabe <s.wanabe@gmail.com>
+
+ * rational.c (string_to_r_internal): save and restore backref.
+ fixed [ruby-dev:34990]
+
+Fri Jun 13 14:41:26 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * README.EXT.ja: update about Fixnum. reported in
+ <http://www.tmtm.org/ja/tdiary/?date=20080611#p01>
+
+ * README.EXT.ja: describe about StringValueCStr().
+
+ * README.EXT: ditto.
+
+Fri Jun 13 14:24:37 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * gc.c (rb_memerror): exit with EXIT_FAILURE instead of magic number.
+
+ * gc.c (ruby_stack_check): STACK_LENGTH should be less than
+ STACK_LEVEL_MAX.
+
+Fri Jun 13 12:55:37 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * enum.c (sort_by_i): use NODE_DOT2 instead of NODE_MEMO to avoid
+ extra calls to is_pointer_to_heap() in GC.
+
+ * enum.c (enum_zip): ditto.
+
+Fri Jun 13 00:41:58 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * test/ruby/test_thread.rb: add a test.
+
+Thu Jun 12 23:30:11 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * thread.c (mutex_unlock): fix cond_notified consistency.
+
+Thu Jun 12 22:19:45 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * thread_win32.c (native_sleep): fixed previous commit.
+
+Thu Jun 12 21:59:17 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * thread.c, vm_core.h, vm.c, thread_pthread.c, thread_win32.c: add
+ deadlock detection. [ruby-dev:35044]
+
+ * bootstraptest/test_thread.rb: add tests for above.
+
+Thu Jun 12 21:39:55 2008 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * complex.c: refactoring.
+
+ * rational.c: ditto.
+
+Thu Jun 12 17:11:24 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * regint.h: undefine USE_CAPTURE_HISTORY which is mentioned as
+ unsupported in the Onigiruma document.
+
+Thu Jun 12 13:36:54 2008 Tanaka Akira <akr@fsij.org>
+
+ * include/ruby/ruby.h (rb_intern): use rb_intern2 with strlen for
+ constant symbols to optimize strlen.
+
+Thu Jun 12 08:47:51 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * io.c (read_all): should use io_read_encoding(), not
+ io_input_encoding().
+
+ * io.c (rb_io_getline_1): reduce calling of io_read_encoding().
+
+ * string.c (rb_str_scan): need not to restore $~ value, so avoid
+ pinning match object.
+
+Thu Jun 12 02:49:40 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * ext/stringio/stringio.c (strio_init): rewind when reopened.
+
+Thu Jun 12 02:43:27 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * array.c (rb_ary_zip): ANSI style.
+
+Thu Jun 12 02:25:54 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * io.c (rb_io_reopen): clear read buffer.
+
+Thu Jun 12 00:56:20 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/tk: check proper conditions. [ruby-dev:35047]
+
+Wed Jun 11 23:33:13 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * io.c (io_fread): bypass buffered read if reading buffer is empty.
+
+ * io.c (remain_size): do not add extra one byte.
+
+Wed Jun 11 12:15:17 2008 Tanaka Akira <akr@fsij.org>
+
+ * bootstraptest/runner.rb (assert_normal_exit): hide stderr output
+ when success.
+
+Wed Jun 11 09:26:43 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * common.mk (encs): need to pass miniruby path for windows.
+
+Wed Jun 11 05:53:20 2008 Koichi Sasada <ko1@atdot.net>
+
+ * vm.c, eval_intern.h (PASS_PASSED_BLOCK):
+ set a VM_FRAME_FLAG_PASSED flag to skip this frame when
+ searching ruby-level-cfp.
+
+ * eval.c, eval_intern.h, proc.c: fix to check cfp. if there is
+ no valid ruby-level-cfp, cause RuntimeError exception.
+ [ruby-dev:34128]
+
+ * vm_core.h, vm_evalbody.c, vm.c, vm_dump.c, vm_insnhelper.c,
+ insns.def: rename FRAME_MAGIC_* to VM_FRAME_MAGIC_*.
+
+ * KNOWNBUGS.rb, bootstraptest/test*.rb: move solved bugs.
+
+Wed Jun 11 05:55:31 2008 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/tcltklib.c: SEGV when tcltk-stubs is enabled.
+
+ * ext/tk/tcltklib.c: avoid error on a shared object.
+
+ * ext/tk/extconf.rb: support --with-tcltkversion
+
+ * ext/tk/README.tcltklib: add document about --with-tcltkversion
+
+ * ext/tk/lib/tk.rb, ext/tk/lib/multi-tk.rb, ext/tk/lib/remote-tk.rb:
+ not work on $SAFE==4
+
+ * ext/tk/lib/multi-tk.rb: Object#methods returns Symbols on Ruby1.9.
+
+ * ext/tk/lib/tk/timer.rb: add TkTimer#at_end(proc) to register the
+ procedure which called at end of the timer.
+
+ * ext/tk/lib/tk.rb, ext/tk/lib/tk/itemfont.rb, ext/tk/lib/font.rb:
+ support __IGNORE_UNKNOWN_CONFIGURE_OPTION__ about font options.
+
+ * ext/tk/lib/*: treat __IGNORE_UNKNOWN_CONFIGURE_OPTION__
+
+ * ext/tk/lib/tkextlib/iwidgets/scrolledcanvas.rb,
+ ext/tk/lib/tkextlib/iwidgets/scrolledlistbox.rb,
+ ext/tk/lib/tkextlib/iwidgets/scrolledtext.rb: bug fix.
+
+ * ext/tk/lib/tk/text.rb: typo. call a wrong method.
+
+ * ext/tk/lib/tk/itemconfig.rb: ditto.
+
+ * ext/tk/lib/tk.rb, ext/tk/lib/tk/itemconfig.rb,
+ ext/tk/lib/tk/canvas.rb: support alias names of option keys.
+
+ * ext/tk/lib/tk/grid.rb: lack of module-method definitions.
+
+ * ext/tk/lib/tk/pack.rb, ext/tk/lib/tk/grid.rb: increase supported
+ parameter patterns of configure method.
+
+ * ext/tk/lib/tk.rb: add TkWindow#grid_anchor, grid_column, grid_row.
+
+ * ext/tk/lib/tk/wm.rb: methods of Tk::Wm_for_General module cannot
+ pass the given block to methods of Tk::Wm module.
+
+ * ext/tk/lib/tk/wm.rb: Wm#overrideredirect overwrites argument to
+ an invalid value.
+
+ * ext/tk/lib/tk.rb: fix memory (object) leak bug.
+
+ * ext/tk/tcltklib.c, ext/tk/tkutil/tkutil.c: fix memory leak.
+
+ * ext/tk/sample/demos-jp/aniwave.rb, ext/tk/sample/demos-en/aniwave.rb:
+ bug fix.
+
+ * ext/tk/lib/tkextlib/blt/component.rb,
+ ext/tk/lib/tkextlib/tile/tentry.rb,
+ ext/tk/lib/tkextlib/tile/treeview.rb: ditto.
+
+ * ext/tk/lib/tkextlib/tile/tpaned.rb: improve TPaned#add.
+
+ * ext/tk/sample/demos-jp/widget, ext/tk/sample/demos-en/widget,
+ ext/tk/sample/demos-jp/style.rb, ext/tk/sample/demos-en/style.rb,
+ ext/tk/sample/demos-jp/bind.rb, ext/tk/sample/demos-en/bind.rb:
+ bug fix.
+
+ * ext/tk/sample/ttk_wrapper.rb: ditto.
+
+ * ext/tk/sample/ttk_wrapper.rb: support "if __FILE__ == $0" idiom.
+
+ * ext/tk/sample/tktextio.rb: add binding for 'Ctrl-u' at console mode.
+
+ * ext/tk/lib/tkextlib/tile.rb, ext/tk/lib/tkextlib/tile/style.rb,
+ ext/tk/sample/ttk_wrapper.rb: improve treating and control themes.
+ add Tk::Tile.themes and Tk::Tile.set_theme(theme).
+
+ * ext/tk/lib/tkextlib/tile.rb: lack of autoload definitions.
+
+ * ext/tk/lib/tkextlib/tile/tnotebook.rb: cannot use kanji (not UTF-8)
+ characters for headings.
+
+ * ext/tk/lib/tkextlib/tkDND/shape.rb: wrong package name.
+
+ * ext/tk/tkutil/tkutil.c: improve handling callback-subst-keys.
+ Now, support longnam-keys (e.g. '%CTT' on tkdnd-2.0; however, still
+ not support tkdnd-2.0 on tkextlib), and symbols of parameters (e.g.
+ :widget=>'%W', :keycode=>'%k', '%x'=>:x, '%X'=>:root_x, and so on;
+ those are attributes of event object). It means that Ruby/Tk accepts
+ not only "widget.bind(ev, '%W', '%k', ...){|w, k, ...| ... }", but
+ also "widget.bind(ev, :widget, :keycode, ...){|w, k, ...| ... }".
+ It is potentially incompatible, when user passes symbols to the
+ arguments of the callback block (the block receives the symbols as
+ strings). I think that is very rare case (probably, used by Ruby/Tk
+ experts only). When causes such trouble, please give strings instead
+ of such symbol parameters (e.g. call Symbol#to_s method).
+
+ * ext/tk/lib/tk/event.rb, ext/tk/lib/tk/validation.rb,
+ ext/tk/lib/tkextlib/blt/treeview.rb,
+ ext/tk/lib/tkextlib/winico/winico.rb: ditto.
+
+ * ext/tk/tkutil/tkutil.c: strings are available on subst_tables on
+ TkUtil::CallbackSubst class (it is useful on Ruby 1.9).
+
+ * ext/tk/lib/tk/spinbox.rb, ext/tk/lib/tkextlib/iwidgets/hierarchy.rb,
+ ext/tk/lib/tkextlib/iwidgets/spinner.rb,
+ ext/tk/lib/tkextlib/iwidgets/entryfield.rb,
+ ext/tk/lib/tkextlib/iwidgets/calendar.rb,
+ ext/tk/lib/tkextlib/blt/dragdrop.rb,
+ ext/tk/lib/tkextlib/tkDND/tkdnd.rb,
+ ext/tk/lib/tkextlib/treectrl/tktreectrl.rb,
+ ext/tk/lib/tkextlib/tktable/tktable.rb: disable code piece became
+ unnecessary by reason of the changes of ext/tk/tkutil/tkutil.c.
+
+ * ext/tk/lib/tk.rb, ext/tk/lib/multi-tk.rb: change strategy to define
+ the constant WITH_ENCODING.
+
+ * ext/tk/lib/tk.rb: fix bug on Tk::Encoding.tk_encoding_names.
+
+Wed Jun 11 03:40:37 2008 Akinori MUSHA <knu@iDaemons.org>
+
+ * lib/find.rb (Find#find): Return an enumerator if no block is
+ given.
+
+Wed Jun 11 01:28:12 2008 Koichi Sasada <ko1@atdot.net>
+
+ * include/ruby/intern.h, proc.c: revert rb_proc_call() and
+ create rb_proc_call_with_block() instead.
+
+ * include/ruby/ruby.h, eval_jump.c, thread.c, vm_insnhelper.c:
+ rb_blockptr should not be exposed.
+
+Tue Jun 10 21:07:19 2008 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
+
+ * test/ruby/test_float.rb: add tests. [ruby-dev:35009]
+
+Tue Jun 10 20:55:57 2008 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * complex.c (nucomp_s_convert): need not to initialize optional
+ argument for rb_scan_args().
+
+Tue Jun 10 20:13:56 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/extmk.rb: negate default of --without-ext if --with-ext is
+ given.
+
+ * ext/extmk.rb: negate default of --without-ext.
+
+Tue Jun 10 17:43:35 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * array.c (rb_ary_shuffle_bang): update RDoc. [ruby-dev:35034]
+
+Tue Jun 10 17:30:19 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * include/ruby/intern.h (rb_obj_instance_exec, rb_mod_module_exec):
+ added prototypes.
+
+Tue Jun 10 17:00:29 2008 wanabe <s.wanabe@gmail.com>
+
+ * util.c (ruby_strtod): ruby_strtod don't allow a trailing
+ decimal point like "7.". [ruby-dev:34835] [ruby-dev:35009]
+
+Tue Jun 10 13:48:38 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * rational.c (nurat_s_convert): need not to initialize optional
+ argument for rb_scan_args().
+
+Tue Jun 10 12:58:07 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/io/wait/wait.c (FIONREAD_POSSIBLE_P): suppress warnings.
+
+Tue Jun 10 12:43:19 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * include/ruby/ruby.h (CONST_ID_CACHE): fixed statement expression.
+
+Tue Jun 10 11:25:15 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ruby.c (rb_argv0): revised for ext/tk.
+
+ * include/ruby/encoding.h: not to use varargs.h since requiring C89.
+
+Tue Jun 10 00:50:51 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * include/ruby/ruby.h, vm_core.h: add a type rb_blockptr.
+
+ * vm_insnhelper.c (vm_yield_with_cfunc): vm_yield_with_cfunc receives
+ blockptr and passes it to iterating block.
+
+ * proc.c (rb_proc_call), include/ruby/intern.h: rb_proc_call receives
+ blockptr. "rb_proc_call(self, args, blockptr)" in C corresponds to
+ "self.call(*args, &block)" in Ruby.
+
+ * proc.c (proc_call): pass blockptr to block that is written in C.
+
+ * proc.c (curry): receive blockptr and pass it to original proc.
+ [ruby-core:15551]
+
+ * vm.c (invoke_block_from_c): fix for change of vm_yield_with_cfunc.
+
+ * thread.c (call_trace_proc), eval_jump.c (rb_call_end_proc): fix for
+ change of rb_proc_call.
+
+Tue Jun 10 00:10:49 2008 Tanaka Akira <akr@fsij.org>
+
+ * common.mk (test-knownbug): give $(OPTS) for bootstraptest/runner.rb.
+
+Mon Jun 9 23:10:50 2008 Tanaka Akira <akr@fsij.org>
+
+ * eval.c (Init_stack): don't declare. it is a macro now.
+
+Mon Jun 9 22:46:47 2008 wanabe <s.wanabe@gmail.com>
+
+ * compile.c : treat []&&= in virtually the same way as []||=.
+ [ruby-dev:34679]
+
+Mon Jun 9 21:17:26 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * enc/depend (clean): remove build directories.
+
+ * test_knownbug.rb -> KNOWNBUGS.rb: renamed.
+
+ * common.mk: apply above change.
+
+Mon Jun 9 21:14:26 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/mkmf.rb (configuration): set flags.
+
+Mon Jun 9 21:09:02 2008 Koichi Sasada <ko1@atdot.net>
+
+ * bootstraptest/test_knownbug.rb -> ./test_knownbug.rb: moved.
+
+ * common.mk: add a rule "test-knownbug".
+
+Mon Jun 9 21:00:32 2008 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * complex.c (nucomp_s_convert): can accept Complex('i').
+ [ruby-dev:34991]
+
+Mon Jun 9 18:25:30 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * include/ruby/ruby.h (CONST_ID): constant ID cache for non-gcc.
+
+ * *.c: no cache in init functions.
+
+Mon Jun 9 17:56:30 2008 Akinori MUSHA <knu@iDaemons.org>
+
+ * lib/set.rb (Set#delete_if): Call to_a.
+ (SortedSet#delete_if, TC_SortedSet#test_sortedset): Use super to
+ yield elements in sorted order; [ruby-core:17144] by Arthur
+ Schreiber.
+ (SortedSet#each, SortedSet#each, TC_Set#test_each)
+ (TC_SortedSet#test_sortedset): Return self; [ruby-dev:35002] by
+ Arthur Schreiber.
+
+Mon Jun 9 17:47:09 2008 Tanaka Akira <akr@fsij.org>
+
+ * io.c (fptr_finalize): close IO object if fd is already closed.
+ (rb_p): call rb_io_write just once.
+
+Mon Jun 9 15:37:38 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ruby.c (require_libraries): req_list may be NULL. [ruby-dev:35008]
+
+Mon Jun 9 14:18:01 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * vm_core.h (struct rb_vm_struct): moved src_encoding_index,
+ ruby_debug, ruby_verbose, and rb_progname.
+
+ * ruby.c (rb_argv0): no longer used.
+
+ * ruby.c (struct cmdline_options): moved setids and req_list, and the
+ latter is now an array, to prevent memory leak.
+
+ * ruby.c (cmdline_options_init): added.
+
+ * ruby.c (add_modules, require_libraries, init_ids, forbid_setid): use
+ struct cmdline_options.
+
+ * vm.c (vm_init2): initialize src_encoding_index.
+
+ * vm.c: getters/setters for ruby_{debug,verbose}.
+
+Mon Jun 9 09:54:13 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * include/ruby/intern.h (Init_stack): make to call ruby_init_stack.
+
+Mon Jun 9 08:12:40 2008 wanabe <s.wanabe@gmail.com>
+
+ * vm_insnhelper.c, vm.c, proc.c : revert r17021. [ruby-dev:34997]
+
+Mon Jun 9 03:12:23 2008 Koichi Sasada <ko1@atdot.net>
+
+ * bootstraptest/pending.rb: move/remove solved issues.
+
+ * bootstraptest/test_class.rb: ditto.
+
+Mon Jun 9 02:32:58 2008 Akinori MUSHA <knu@iDaemons.org>
+
+ * ext/zlib/zlib.c (rb_deflate_init_copy): Copy buffers as well.
+ [ruby-list:45018]
+
+Sun Jun 8 22:22:20 2008 wanabe <s.wanabe@gmail.com>
+
+ * vm_insnhelper.c, vm.c, proc.c (proc_call): allow call method with
+ block that both is written in C. [ruby-dev:34273] [ruby-core:15551]
+
+ * proc.c (curry): use proc_call instead of rb_proc_call.
+ [ruby-dev:34273] [ruby-core:15551]
+
+Sun Jun 8 21:50:27 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * test/zlib/test_zlib.rb: add tests to achieve over 90% test coverage
+ of zlib.
+
+Sun Jun 8 20:12:47 2008 wanabe <s.wanabe@gmail.com>
+
+ * vm_insnhelper.c (vm_throw): regard break as return in lambda.
+ [ruby-dev:34646]
+
+Sun Jun 8 19:17:59 2008 Koichi Sasada <ko1@atdot.net>
+
+ * gc.c: add a build option "CALC_EXACT_MALLOC_SIZE".
+ This option enables to calculate exact size of current
+ allocated size by malloc(). You can access these information
+ with GC.malloc_allocated_size and GC.malloc_allocations.
+ This option consume additional memory as a header of each memory
+ object. This option also helps to find out xmalloc()/xfree()
+ consistency. If you get trouble with this option, some extension
+ using "free()" instead of "xfree()".
+ This options is disabled by default.
+
+Sun Jun 8 18:15:38 2008 Koichi Sasada <ko1@atdot.net>
+
+ * array.c, bignum.c, cont.c, dir.c, dln.c, encoding.c, enumerator.c,
+ enumerator.c (enumerator_allocate), eval_jump.c, file.c, hash.c,
+ io.c, load.c, pack.c, proc.c, random.c, re.c, ruby.c, st.c,
+ string.c, thread.c, thread_pthread.c, time.c, util.c, variable.c,
+ vm.c, gc.c:
+ allocated memory objects by xmalloc (ruby_xmalloc) should be
+ freed by xfree (ruby_xfree).
+
+ * ext/curses/curses.c, ext/dbm/dbm.c, ext/digest/digest.c,
+ ext/gdbm/gdbm.c, ext/json/ext/parser/parser.c,
+ ext/json/ext/parser/unicode.c, ext/openssl/ossl_cipher.c,
+ ext/openssl/ossl_hmac.c, ext/openssl/ossl_pkey_ec.c,
+ ext/sdbm/init.c, ext/strscan/strscan.c, ext/zlib/zlib.c:
+ ditto.
+
+Sun Jun 8 01:15:11 2008 Tanaka Akira <akr@fsij.org>
+
+ * hash.c (hash_i): make Hash#hash order insensitive.
+ (rb_hash_dup): use DUPSETUP.
+
+Sat Jun 7 23:47:35 2008 Akinori MUSHA <knu@iDaemons.org>
+
+ * ext/zlib/zlib.c (rb_deflate_initialize, Init_zlib): Fix up
+ initialize_copy; [ruby-list:45016].
+
+Sat Jun 7 22:15:02 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (VENDOR_DIR): use LIBDIR instead of PREFIX as well as
+ SITE_DIR. a patch from Richard Brown <rbrown AT exherbo.org> in
+ [ruby-core:17129].
+
+Sat Jun 7 21:37:58 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * io.c (rb_f_open), re.c (rb_reg_search), transcode.c (str_transcode):
+ suppress warnings.
+
+ * util.c (quorem, rv_alloc, nrv_alloc): only used in dtoa().
+
+Sat Jun 7 16:06:14 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (CFLAGS, CXXFLAGS): append default flags.
+
+Sat Jun 7 01:23:59 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * io.c (rb_open_file, rb_io_s_sysopen): fmode should be unsigned int.
+ fixed [ruby-dev:34979]
+
+Fri Jun 6 23:46:19 2008 Koichi Sasada <ko1@atdot.net>
+
+ * vm_insnhelper.c (vm_callee_setup_arg): check simple flag before
+ calling setup_arg function(). this change reduce function call.
+
+Fri Jun 6 21:51:46 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/Makefile.sub (COMMON_HEADERS): include ws2tcpip.h.
+
+ * ext/socket/addrinfo.h (addrinfo, getaddrinfo, getnameinfo,
+ freehostent, freeaddrinfo): undef before define because these are
+ macros in some versions of Windows SDK.
+
+ merged from ruby_1_8.
+
+Fri Jun 6 18:25:43 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * test/iconv/utils.rb (default_test): override not to croak.
+
+Fri Jun 6 16:41:45 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * include/ruby/win32.h: include ws2tcpip.h. fixed [ruby-Bugs-20528]
+
+Fri Jun 6 15:05:02 2008 Tanaka Akira <akr@fsij.org>
+
+ * gc.c (count_objects): clear hash after counting objects.
+
+Fri Jun 6 12:43:41 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * test/ruby/test_dir.rb (TestDir::test_glob): glob file names not sorted.
+
+Fri Jun 6 00:05:33 2008 Tanaka Akira <akr@fsij.org>
+
+ * lib/time.rb (Time.xmlschema): don't use float. fix
+ http://rubyforge.org/tracker/index.php?func=detail&group_id=426&atid=1698&aid=20504
+
+Thu Jun 5 23:56:18 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * test/ruby/test_gc.rb: add tests to achieve over 90% test coverage of
+ gc.c.
+
+ * test/ruby/test_objectspace.rb: ditto.
+
+ * test/ruby/test_marshal.rb: ditto.
+
+Thu Jun 5 23:40:08 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * gc.c (rb_objspace_alloc): this function is needed only when
+ ENABLE_VM_OBJSPACE macro is defined.
+
+ * vm.c: ditto.
+
+Thu Jun 5 23:31:21 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * test/stringio/test_stringio.rb: add tests to achieve over 95% test
+ coverage of stringio.
+
+ * test/strscan/test_stringscanner.rb: ditto for strscan.
+
+Thu Jun 5 23:25:34 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * eval.c (ruby_finalize_0): clear trace_func after executing END
+ procs.
+
+ * thread.c: fix typo.
+
+Thu Jun 5 22:50:50 2008 Tanaka Akira <akr@fsij.org>
+
+ * gc.c (os_obj_of): heaps may be modified in yield.
+
+Thu Jun 5 21:46:50 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * st.c (st_reverse_foreach): comment out unused function.
+
+ * util.c (dtoa): ditto.
+
+Thu Jun 5 20:30:46 2008 Akinori MUSHA <knu@iDaemons.org>
+
+ * ext/openssl/ossl_ssl_session.c (ossl_ssl_session_initialize):
+ Add a null check for ssl; submitted by akira yamada
+ in [ruby-dev:34950].
+
+ * ext/openssl/ossl_ssl.c (Init_ossl_ssl): Define OP_NO_TICKET if
+ SSL_OP_NO_TICKET is present; submitted by akira yamada
+ in [ruby-dev:34944].
+
+ * test/openssl/test_ssl.rb (OpenSSL#test_server_session): Add a
+ workaround for the case where OpenSSL is configured with
+ --enable-tlsext; submitted by akira yamada in [ruby-dev:34944].
+
+Thu Jun 5 20:24:15 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * thread.c (thread_set_trace_func_m): fix check for proc argument.
+
+Thu Jun 5 20:17:29 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * lib/rexml/document.rb (REXML::Document:write): leaky modification
+ trans -> transitive. [ruby-dev:32040], r13686
+
+ * lib/rexml/text.rb (Text.check): fix check for illegal character.
+
+Thu Jun 5 14:03:44 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/iconv/iconv.c (iconv_create): find encoding without options.
+
+Thu Jun 5 07:48:32 2008 Koichi Sasada <ko1@atdot.net>
+
+ * string.c (hash): should be "static".
+
+Thu Jun 5 01:47:18 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * test/ruby/test_transcode.rb: add tests for iso-2022-jp.
+
+Thu Jun 5 01:27:42 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * test/ruby/test_process.rb: add tests.
+
+Wed Jun 4 23:10:08 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * ext/zlib/zlib.c (rb_gzfile_set_mtime): fix typo.
+
+Wed Jun 4 18:53:39 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * object.c (rb_obj_alloc): RDoc updated. a patch from Gaston
+ Ramos <ramos.gaston at gmail.com> in [ruby-core:17073].
+
+Wed Jun 4 18:36:11 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/rdoc.rb: massive spelling correction patch from Evan Farrar
+ <evanfarrar at gmail.com> in [ruby-doc:1382] applied.
+
+Wed Jun 4 17:52:18 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/iconv/iconv.c (iconv_iconv): fix for length argument and now
+ allows range. [ruby-core:17092]
+
+Wed Jun 4 15:45:41 2008 Akinori MUSHA <knu@iDaemons.org>
+
+ * enumerator.c (enumerator_with_index, enumerator_with_memo): Fix
+ grammo in rdoc.
+
+Wed Jun 4 13:06:58 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (CFLAGS, CXXFLAGS): include additional flags to
+ CFLAGS and CXXFLAGS while configuration.
+
+Tue Jun 3 23:06:35 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * ext/strscan/strscan.c (strscan_scan_full, strscan_search_full): fix
+ document.
+
+Tue Jun 3 22:37:26 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * ext/strscan/strscan.c (strscan_exist_p): fix document.
+
+Tue Jun 3 22:33:29 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * test/ruby/test_dir.rb: add tests to achieve over 90% test coverage
+ of dir.c.
+
+ * test/ruby/test_encoding.rb: add tests for dummy?, name_list and
+ aliases.
+
+ * test/ruby/test_marshal.rb: add some tests.
+
+Tue Jun 3 22:25:51 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * test/etc/test_etc.rb: new tests for etc.
+
+Tue Jun 3 19:35:02 2008 Akinori MUSHA <knu@iDaemons.org>
+
+ * enumerator.c (enumerator_with_memo): New method: with_memo().
+
+Tue Jun 3 20:04:03 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * win32/Makefile.sub (miniruby$(EXEEXT)): miniruby cannot be
+ written by miniruby itself.
+
+Tue Jun 3 19:33:22 2008 Akinori MUSHA <knu@iDaemons.org>
+
+ * enumerator.c (enumerator_init_copy): Take care of
+ initialize_copy as well as initialize.
+
+Tue Jun 3 16:06:09 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * file.c (file_expand_path): fix for non-existent files and SFN of
+ symlinks. [ruby-talk:303736]
+
+Tue Jun 3 15:12:01 2008 Akinori MUSHA <knu@iDaemons.org>
+
+ * lib/set.rb (Set#classify): Back out the `group_by' alias.
+ Better think twice.
+
+Tue Jun 3 15:00:22 2008 Akinori MUSHA <knu@iDaemons.org>
+
+ * lib/set.rb (Set#collect, Set#select): Back out. I thought it
+ was consistent but turned out to be wrong.
+
+Tue Jun 3 13:41:08 2008 Akinori MUSHA <knu@iDaemons.org>
+
+ * lib/set.rb (Set#collect, Set#select): Override Enumerable
+ methods and make them return a set. [ruby-core:17055]
+ (Set#delete_if, Set#collect!, Set#reject!, Set#classify)
+ (Set#divide, Set#delete_if): Return an enumerator if no block is
+ given.
+ (Set#classify): Define an alias `group_by' to override that of
+ Enumerable.
+
+Tue Jun 3 13:35:40 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * process.c (run_exec_pgroup): C99 ism.
+
+Tue Jun 3 12:51:57 2008 Akinori MUSHA <knu@iDaemons.org>
+
+ * enumerator.c (enumerator_allocate, enumerator_ptr): Properly
+ detect if the object is initialized and raise error when
+ appropriate.
+ (enumerator_initialize): Fix a typo in rdoc. [ruby-core:17052]
+
+Tue Jun 3 01:21:51 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * test/ruby/test_method.rb: add a test.
+
+Tue Jun 3 00:26:48 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * marshal.c (w_object): add a check for modification of array during
+ its dump.
+
+Mon Jun 2 22:27:57 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * enc/iso_8859_5.c: Large omicron should lowercase to small omicron.
+
+ * test/ruby/test_big5.rb, test/ruby/test_cp949.rb,
+ test/ruby/test_euc_jp.rb, test/ruby/test_euc_kr.rb,
+ test/ruby/test_euc_tw.rb, test/ruby/test_gb18030.rb,
+ test/ruby/test_gbk.rb, test/ruby/test_iso_8859.rb,
+ test/ruby/test_koi8.rb, test/ruby/test_shift_jis.rb,
+ test/ruby/test_windows_1251.rb: new tests for encoding.
+
+ * test/ruby/test_utf16.rb, test/ruby/test_utf32.rb,
+ test/ruby/test_regexp.rb: add tests.
+
+Mon Jun 2 21:56:47 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * test/ruby/test_file.rb: add tests for uninitialized object.
+
+ * test/ruby/test_class.rb: ditto.
+
+ * test/ruby/test_thread.rb: ditto.
+
+Mon Jun 2 21:44:15 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * re.c: fix SEGV by Regexp.allocate.names, Match.allocate.names, etc.
+
+ * test/ruby/test_regexp.rb: add tests for above.
+
+ * io.c: fix SEGV by IO.allocate.print, etc.
+
+ * test/ruby/test_io.rb: add tests for above.
+
+Mon Jun 2 19:17:47 2008 Tanaka Akira <akr@fsij.org>
+
+ * test/ruby/test_argf.rb (teardown): remove renamed temporary files.
+
+Mon Jun 2 18:51:15 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/un.rb (wait_writable): wait until target files can be
+ written actually.
+
+ * win32/Makefile.sub (LDSHARED_0, LINK_SO): get rid of failure of
+ mt.exe.
+
+Mon Jun 2 16:26:17 2008 Akinori MUSHA <knu@iDaemons.org>
+
+ * lib/delegate.rb (Delegator::MethodDelegation#respond_to):
+ respond_to? should now take optional second argument; submitted
+ by Jeremy Kemper <jeremy at bitsweat.net> in [ruby-core:17045].
+
+Mon Jun 2 16:14:18 2008 Akinori MUSHA <knu@iDaemons.org>
+
+ * lib/erb.rb (ERB::Compiler::TrimScanner#scan_line): Oops. This
+ change did not apply to trunk. Backed out.
+
+Mon Jun 2 16:08:24 2008 Akinori MUSHA <knu@iDaemons.org>
+
+ * lib/erb.rb (ERB::Compiler::TrimScanner#scan_line): Fix a bug
+ where tokens are not yielded one by one.
+
+ * test/erb/test_erb.rb (TestERBCore#_test_01)
+ (TestERBCore#test_02_safe_04): The expected value should come
+ first for assert_equal().
+
+Mon Jun 2 13:06:38 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * mkconfig.rb: hide build path from rbconfig.rb.
+
+Mon Jun 2 08:46:52 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * util.c (ruby_strtod, dtoa): initialize more variables for error
+ handling.
+
+Mon Jun 2 04:55:05 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * suppress warnings on cygwin, mingw and mswin.
+
+Mon Jun 2 04:35:32 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * enc/gb18030.c (gb18030_code_to_mbc): add 0x80000000
+ for 4bytes character.
+
+Mon Jun 2 03:52:04 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ruby.c (set_arg0): reverted used variable definition.
+
+Mon Jun 2 03:23:25 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * enc/gb18030.c (gb18030_mbc_to_code): mask by 0x7FFFFFFF
+ because OnigCodePoint will be used as 32bit signed int.
+ Masking by 0x7FFFFFFF is ok on GB18030;
+ Minimum 4bytes character is 0x81308130.
+
+Sun Jun 1 22:29:35 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * rational.c (string_to_r_internal): use rb_isdigit.
+
+ * marshal.c (long_toobig): use %zd.
+
+ * ruby.c (set_arg0): move unused variable definition.
+
+Sun Jun 1 12:18:12 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * insns.def (DEFINE_INSN): subtract of pointers is ptrdiff_t.
+ this is not int on 64bit system.
+
+ * vm_dump.c (control_frame_dump): ditto.
+
+ * vm_dump.c (stack_dump_each): ditto.
+
+ * vm_dump.c (debug_print_register): ditto.
+
+ * vm_dump.c (debug_print_pre): ditto.
+
+ * transcode.c (str_transcode): ditto.
+
+Sun Jun 1 10:32:18 2008 Tanaka Akira <akr@fsij.org>
+
+ * test/ruby/envutil.rb (assert_normal_exit): show coredump status.
+
+Sat May 31 23:33:34 2008 Akinori MUSHA <knu@iDaemons.org>
+
+ * README, README.ja: Add a note about default C flags.
+
+Sat May 31 23:02:00 2008 Tanaka Akira <akr@fsij.org>
+
+ * gc.c (count_objects): clear given hash.
+
+Sat May 31 20:28:10 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * test/ruby/test_regexp.rb: add tests.
+
+Sat May 31 19:11:39 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * enc/utf_16{be,le}.c (utf16{be,le}_code_to_mbc):
+ fix codepoint to bytes.
+
+Sat May 31 18:28:17 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * suppress warnings with -Wwrite-string.
+
+Sat May 31 18:26:33 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * array.c (rb_ary_delete_if): should return enumerator if no block
+ is given. [ruby-dev:34901]
+
+Sat May 31 15:58:08 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * Makefile.in, configure.in (warnflags): defaulted to -Wall
+ -Wno-parentheses with gcc. [ruby-dev:34810]
+
+Sat May 31 15:17:36 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * include/ruby/mvm.h: new header file for MVM, and moved rb_vm_t and
+ rb_thread_t from vm_core.h.
+
+Sat May 31 12:02:23 2008 Tanaka Akira <akr@fsij.org>
+
+ * test/ruby/envutil.rb (assert_normal_exit): show pid when fail.
+
+Fri May 30 23:55:56 2008 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
+
+ * test/ruby/test_rubyoptions.rb: add a test of RUBY_DESCRIPTION.
+
+Fri May 30 22:47:17 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * test/ruby/test_regexp.rb: add tests.
+
+Fri May 30 22:40:53 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * test/ruby/test_signal.rb: add tests to achieve over 80% test
+ coverage of signal.c.
+
+Fri May 30 22:28:03 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * signal.c (esignal_signo): fix SignalException#signo which returned
+ nil absolutely.
+
+ * signal.c (esignal_init): always prepend "SIG" to a string that is
+ returned by SignalException#signm.
+
+Fri May 30 22:17:39 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * test/ruby/test_argf.rb: rename a conflicting method name.
+
+ * test/ruby/test_string.rb: ditto.
+
+ * test/ruby/test_io.rb: ditto.
+
+Fri May 30 22:14:37 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * compile.c (defined_expr): fix SEGV by defined?([1]).
+
+Fri May 30 12:18:43 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * common.mk (prelude.c): simply depends on PREP. [ruby-dev:34877]
+
+ * enc/make_encdb.rb, enc/trans/make_transdb.rb: ditto.
+
+Fri May 30 10:55:42 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * vm_core.h (struct rb_unblock_callback), thread.c
+ (set_unblock_function), thread_{pthread,win32}.c (native_sleep):
+ extracted from struct rb_thread_struct.
+
+ * thread.c (reset_unblock_function): not check interrupts at leaving
+ blocking region. [ruby-dev:34874]
+
+Fri May 30 06:09:31 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * enc/utf_8.c: add UTF8-MAC (UTF-8-MAC).
+
+Fri May 30 04:17:13 2008 Akinori MUSHA <knu@iDaemons.org>
+
+ * enum.c (enum_count, count_all_i, Init_Enumerable),
+ array.c (rb_ary_count): If no argument or block is given, count
+ the number of all elements.
+
+Fri May 30 03:12:18 2008 Akinori MUSHA <knu@iDaemons.org>
+
+ * ext/openssl/ossl_bn.c (ossl_bn_s_rand, ossl_bn_s_pseudo_rand):
+ Int should be enough here.
+
+Fri May 30 02:35:00 2008 Akinori MUSHA <knu@iDaemons.org>
+
+ * ext/openssl/ossl_bn.c (ossl_bn_s_rand, ossl_bn_s_pseudo_rand),
+ ext/openssl/ossl_pkey_dh.c (ossl_dh_s_generate)
+ (ossl_dh_initialize),
+ ext/openssl/ossl_pkey_dsa.c (ossl_dsa_s_generate),
+ ext/openssl/ossl_rand.c (ossl_rand_bytes)
+ (ossl_rand_pseudo_bytes, ossl_rand_egd_bytes),
+ ext/openssl/ossl_x509store.c (ossl_x509stctx_set_error): Do not
+ use FIX2INT() without checking the value type. Use NUM2INT()
+ instead; found by akr in [ruby-dev:34890].
+
+Fri May 30 02:08:20 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * signal.c (esignal_init): handle a non-integer argument correctly,
+ allowing SignalException.new(:INT).
+
+Fri May 30 00:59:47 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * test/ruby/test_regexp.rb: add tests.
+
+Thu May 29 22:51:05 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * test/ruby/test_require.rb: add a test for load with wrap flag, to
+ achieve 100% test coverage of eval_jump.c.
+
+Thu May 29 22:47:53 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * test/ruby/test_argf.rb: new tests for ARGF, to achieve over 85% test
+ coverage of file.c.
+
+ * test/ruby/test_io.rb: add tests.
+
+Thu May 29 22:41:48 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * io.c (argf_readchar): raise EOFError, synchronizing IO#readchar.
+
+Thu May 29 22:29:39 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * io.c (argf_external_encoding, argf_internal_encoding): fix SEGV by
+ ARGF.external_encoding.
+
+Thu May 29 17:52:31 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/zlib/extconf.rb: search zlib1, and regard mswin32 later than VC6
+ as WIN32. [ruby-core:16984]
+
+Wed May 28 18:05:28 2008 Akinori MUSHA <knu@iDaemons.org>
+
+ * array.c (rb_ary_nitems, Init_Array): Axe Array#nitems().
+ cf. [ruby-dev:34676]-[ruby-dev:34713]
+
+Wed May 28 17:50:32 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * win32/mkexports.rb (Exports#objdump, Exports#each_line): extracted.
+
+Wed May 28 17:41:43 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * Makefile.in (MKPREP): appended $(RBCONFIG).
+
+ * common.mk (enc.mk, prelude.c): not depend on $(RBCONFIG) on mswin32
+ to get of compiling twice each time.
+
+ * win32/Makefile.sub (prelude.c): not depend on $(PREP).
+
+Wed May 28 17:37:07 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/mkexports.rb (Exports::Mswin#each_export): speed up.
+
+Wed May 28 16:41:59 2008 Akinori MUSHA <knu@iDaemons.org>
+
+ * array.c (rb_ary_slice_bang): Call rb_ary_modify_check() at the
+ beginning. [rubyspec]
+
+Wed May 28 16:12:44 2008 Akinori MUSHA <knu@iDaemons.org>
+
+ * lib/webrick/httpservlet/cgihandler.rb (WEBrick::HTTPServlet::CGIHandler#do_GET):
+ Set the HTTP status code to 302 if a Location header field is
+ present and the status code is not valid as a client
+ redirection. cf. RFC 3875 6.2.3, 6.2.4.
+
+Wed May 28 15:53:52 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * enc/trans/japanese.c (to_SHIFT_JIS_EF_infos): typo.
+
+Wed May 28 15:18:16 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/singleton.rb (SingletonClassMethods): _load should be public.
+
+Wed May 28 13:30:43 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * enc/trans/japanese.c: add workaround for Unicode to CP932.
+ U+2015->0x815C, U+2225->0x8161, U+FF0D->0x817C, U+FF3C->0x815F,
+ U+FF5E->0x8160, U+FFE0->0x8191, U+FFE1->0x8192, U+FFE2->0x81CA
+
+Wed May 28 12:52:41 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * marshal.c (w_object, marshal_dump, r_object0, marshal_load): search
+ private methods too. [ruby-dev:34671]
+
+ * object.c (convert_type): ditto.
+
+Wed May 28 08:42:51 2008 Tanaka Akira <akr@fsij.org>
+
+ * numeric.c: "%" is required before PRI?VALUE.
+
+Tue May 27 22:10:44 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval_error.c (error_handle): SystemExit and SignalException throws
+ TAG_RAISE but not TAG_FATAL.
+
+ * thread.c (rb_thread_execute_interrupts): delay interrupts during
+ raising exceptions. [ruby-dev:34855]
+
+Tue May 27 20:18:30 2008 Akinori MUSHA <knu@iDaemons.org>
+
+ * array.c (rb_ary_slice_bang): Return an empty array instead of
+ nil when pos is valid and len is adjusted from a valid value to
+ zero; caught by RubySpec.
+
+Tue May 27 19:12:37 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * Makefile.in (MKPREP), common.mk, win32/Makefile.sub (prelude.c): get
+ rid of depending PREP with nmake.
+
+ * common.mk (encs): depends on libruby.
+
+Tue May 27 19:00:22 2008 Akinori MUSHA <knu@iDaemons.org>
+
+ * ext/stringio/stringio.c (strio_each_char, Init_stringio): Add
+ StringIO#{each_char,chars}.
+ (Init_stringio): Fix StringIO#bytes.
+
+Tue May 27 17:54:35 2008 Akinori MUSHA <knu@iDaemons.org>
+
+ * ext/stringio/stringio.c (strio_each_byte): Return self instead
+ of nil as the rdoc says.
+
+Tue May 27 15:36:27 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * numeric.c (check_int): use PRIxVALUE format specifier.
+
+ * numeric.c (check_uint, rb_num2fix, int_chr): ditto.
+
+ * numeric.c (num_fdiv): fallback to_f should always return float
+ result. should not use #quo that may return rational.
+
+ * numeric.c (num_div): should raise ZeroDivisionError.
+
+ * numeric.c (fix_divide): ditto.
+
+ * test/ruby/test_numeric.rb (TestNumeric::test_divmod): avoid
+ ZeroDivisionError in tests.
+
+Tue May 27 13:14:53 2008 Akinori MUSHA <knu@iDaemons.org>
+
+ * enum.c (enum_to_a): Pass arguments through to #each().
+ (enum_sort): Follow the enum_to_a signature change.
+ (enum_reverse_each): Add #reverse_each().
+
+Tue May 27 13:12:37 2008 Akinori MUSHA <knu@iDaemons.org>
+
+ * io.c (Init_IO): Define ARGF.{lines,bytes,chars}.
+
+Tue May 27 12:06:37 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * file.c (BUFCHECK): wrong condition. [ruby-core:16921]
+
+ * file.c (file_expand_buf): shouldn't use buflen for length of string.
+
+Mon May 26 18:24:48 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * file.c (BUFCHECK): no resize if enough room.
+
+ * file.c (file_expand_path): use BUFCHECK.
+
+Mon May 26 17:48:42 2008 Akinori MUSHA <knu@iDaemons.org>
+
+ * enumerator.c (struct enumerator, enumerator_init)
+ (enumerator_init_copy, enumerator_each): Eliminate iter.
+ (enumerator_ptr): Do not hardcode the class name.
+ (enumerator_with_index): Delay variable initialization after
+ RETURN_ENUMERATOR().
+
+Mon May 26 17:23:49 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * file.c (file_expand_path): add more space for '/'.
+
+ * file.c (file_expand_path): should reset address of p after calling
+ rb_str_resize(). [ruby-dev:34800]
+
+Mon May 26 16:49:55 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * misc/ruby-mode.el (ruby-mode): use run-hooks if run-mode-hook is
+ not available. a patch from Kazuhiro NISHIYAMA <zn at mbf.nifty.com>
+ in [ruby-dev:34853].
+
+Mon May 26 16:41:35 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * file.c (ntfs_tail): filename which starts with '.' is valid.
+
+ * file.c (file_expand_path): cygwin symlink support.
+
+Mon May 26 07:15:52 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * vm_dump.c (rb_vm_bugreport): rb_make_backtrace has no arguments.
+
+Mon May 26 01:17:54 2008 Tanaka Akira <akr@fsij.org>
+
+ * test/ruby/envutil.rb (assert_normal_exit): signal description
+ refined.
+
+Mon May 26 00:52:52 2008 Akinori MUSHA <knu@iDaemons.org>
+
+ * hash.c (env_each_key, env_each_value, env_reject_bang)
+ (rb_env_clear, env_replace): Omit duplicated secure level check.
+
+Mon May 26 00:37:16 2008 Akinori MUSHA <knu@iDaemons.org>
+
+ * hash.c (env_each_value): Do not call env_values() twice.
+
+Sun May 25 17:54:36 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * compile.c (iseq_compile): set local_table for
+ ISEQ_TYPE_DEFINED_GUARD.
+
+Sun May 25 17:52:25 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * compile.c (iseq_build_body): remove side effect from
+ VM::InstructionSequence.load.
+
+Sun May 25 04:30:45 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * test/ruby/test_module.rb (remove_json_mixins): change judgment
+ condition.
+
+Sun May 25 03:54:39 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * test/ruby/test_module.rb (test_ancestors, test_included_modules):
+ ignore json mixins.
+
+Sun May 25 02:37:25 2008 Koichi Sasada <ko1@atdot.net>
+
+ * eval_method.c: renamed from vm_method.c. "vm_method.c" is included
+ by "vm.c".
+
+ * vm_eval.c: added. Some codes are moved from "eval.c"
+
+ * common.mk: fix for above changes.
+
+ * compile.c: make a vm_eval(0)
+
+ * eval.c, eval_error.c, eval_intern.h, eval_jump.c, proc.c, vm.c,
+ id.c, id.h, vm_core.h, vm_dump.c, vm_evalbody.c, vm_insnhelper.c,
+ blockinlining.c: fix for above changes. and do some refactoring.
+ this changes improve rb_yield() performance.
+
+Sat May 24 22:32:49 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * util.c (ruby_strtod): clear errno at the top of our own
+ implementation of strtod(3). [ruby-dev:34834] [ruby-dev:34839]
+
+Sat May 24 15:26:16 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * compile.c (iseq_set_exception_table, NODE_WHILE, NODE_NEXT): remove
+ special handling that decrements sp in CATCH_TYPE_NEXT for NODE_WHILE.
+
+ * vm.c (vm_eval_body), vm_insnhelper.c (vm_throw): remove unused code.
+
+Sat May 24 08:13:34 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * transcode.c (rb_str_transcode): argc is 1, and argv is &to.
+
+Fri May 23 17:55:11 2008 Akinori MUSHA <knu@iDaemons.org>
+
+ * array.c (rb_ary_slice_bang): Be consistent with Array#slice()
+ and String#slice!(). Just return nil when a negative length or
+ out of boundary index is given instead of raising an exception
+ via internal functions.
+
+Fri May 23 16:44:34 2008 Akinori MUSHA <knu@iDaemons.org>
+
+ * enumerator.c (Init_Enumerator): Override
+ Enumerable::Enumerator#each_with_index with #with_index.
+
+Fri May 23 12:23:05 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * vm_core.h (rb_num_t): moved form vm.h.
+
+ * tool/instruction.rb (RubyVM::Instruction#sp_increase_c_expr),
+ tool/instruction.rb (RubyVM::VmBodyGenerator#make_header_operands):
+ omit unused variables.
+
+Fri May 23 08:47:02 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * error.c (exc_equal): == operator should be transitional.
+ [ruby-dev:34808]
+
+ * error.c (syserr_eqq): === should be able to handle delegated
+ objects as well.
+
+Fri May 23 06:15:20 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * iseq.c (rb_iseq_compile_with_option): get rid of segv.
+
+Fri May 23 02:29:14 2008 Koichi Sasada <ko1@atdot.net>
+
+ * insns.def (opt_gt|ge|lt|le): use values directly to compare.
+
+Fri May 23 01:15:09 2008 Koichi Sasada <ko1@atdot.net>
+
+ * eval.c, eval_intern.h, include/ruby/intern.h, include/ruby/ruby.h,
+ vm.c, vm_core.h, vm_insnhelper.c: remove pointless "const".
+
+Thu May 22 23:45:17 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * compile.c (get_destination_insn, get_next_insn, get_prev_insn):
+ peephole optimization should not ignore ISEQ_ELEMENT_ADJUST.
+
+Thu May 22 20:20:54 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * marshal.c (check_dump_arg, check_load_arg): check if reentered.
+ [ruby-dev:34802]
+
+Thu May 22 20:14:28 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * iseq.c (iseq_load, iseq_data_to_ary): support
+ ISEQ_TYPE_DEFINED_GUARD.
+
+Thu May 22 19:01:29 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * vm.c (vm_get_ruby_level_cfp): moved from eval_intern.h.
+
+ * vm.c (sdr, nsdr): define methods only if VMDEBUG is defined.
+
+Thu May 22 17:18:35 2008 Tanaka Akira <akr@fsij.org>
+
+ * array.c (rb_ary_compact_bang): fix reallocation size.
+
+Thu May 22 15:20:20 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * eval_intern.h, vm_core.h, include/ruby/intern.h, include/ruby/ruby.h,
+ vm.c: need to add const to prototypes, of course.
+
+Thu May 22 13:24:43 2008 Koichi Sasada <ko1@atdot.net>
+
+ * eval.c, vm.c, vm_core.h, vm_insnhelper.c: specify "const".
+
+ * vm_opts.h: add a OPT_TOKEN_THREADED_CODE macro.
+
+Thu May 22 12:51:41 2008 Tanaka Akira <akr@fsij.org>
+
+ * insns.def (newhash): fix a variable definition: "const k".
+
+Thu May 22 12:40:54 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * array.c (flatten): check if reentered. [ruby-dev:34798]
+
+Thu May 22 11:39:59 2008 Tanaka Akira <akr@fsij.org>
+
+ * test/ruby/envutil.rb (assert_normal_exit): capture stdout and stderr
+ of the child process.
+
+Thu May 22 08:28:49 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * array.c (flatten): free memo hash table before raising exception.
+ [ruby-dev:34789]
+
+Thu May 22 06:30:10 2008 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * array.c (flatten): fix memory leak.
+
+Thu May 22 06:21:34 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * ext/nkf/nkf-utf8/nkf.c (nkf_str_caseeql): added.
+
+ * ext/nkf/nkf-utf8/nkf.c (nkf_enc_find_index): use nkf_str_caseeql.
+
+Thu May 22 05:45:30 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * proc.c (proc_dup): should copy safe_level from src proc
+ properly. a patch from Keita Yamaguchi
+ <keita.yamaguchi at gmail.com>
+
+Thu May 22 02:46:08 2008 Shugo Maeda <shugo@ruby-lang.org>
+
+ * lib/net/imap.rb: do not use Thread#raise. [ruby-dev:34739]
+
+Thu May 22 00:30:06 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * test/ruby/test_require.rb: new tests for library requiring, to
+ achieve over 90% test coverage of dln.c.
+
+ * test/ruby/test_class.rb: add tests to achieve over 90% test coverage
+ of class.c.
+
+ * test/ruby/test_module.rb: ditto.
+
+Thu May 22 00:15:44 2008 Koichi Sasada <ko1@atdot.net>
+
+ * insns.def, vm_insnhelper.c: specify "const".
+
+Wed May 21 23:20:21 2008 Koichi Sasada <ko1@atdot.net>
+
+ * bootstraptest/test_eval.rb: fix syntax.
+
+Wed May 21 17:46:17 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * ext/nkf/nkf-utf8/nkf.c (nkf_enc_find_index):
+ use strcasecmp. [ruby-dev:34787]
+
+Wed May 21 16:48:22 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * array.c (rb_ary_compact_bang): avoid forceful realloc.
+
+Wed May 21 07:42:28 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * string.c (rb_usascii_str_new): use rb_str_new.
+
+ * string.c (rb_enc_str_new): ditto.
+
+ * string.c (rb_usascii_str_new2): use rb_str_new2.
+
+Wed May 21 07:22:01 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * encoding.c, include/ruby/encoding.h
+ (rb_enc_associate, rb_enc_associate_index):
+ returns obj. [ruby-dev:34778]
+
+Wed May 21 04:20:20 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * encoding.c (rb_ascii8bit_encoding): use ENCINDEX_ASCII.
+
+ * encoding.c, include/ruby/encoding.h (rb_ascii8bit_encindex):
+ added.
+
+ * encoding.c (rb_locale_encoding): use rb_usascii_encoding().
+
+Wed May 21 01:45:58 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * test/ruby/test_file_exhaustive.rb (setup): workaround for Windows
+ Vista.
+
+ * test/ruby/envutil.rb (rubyexec): now Open3.open3 is supported on
+ Windows.
+
+ * test/ruby/test_process.rb: use ``||'' instead of ``;'' because
+ cmd.exe not support it.
+
+Wed May 21 01:28:47 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * transcode.c, include/ruby/encoding.h (rb_str_transcode):
+ C API of encoding conversion for Ruby object.
+ VALUE rb_str_transcode(VALUE str, VALUE to).
+
+ * transcode.c (str_encode, str_encode_bang):
+ rename from rb_tr_transcode or rb_str_transcode_bang.
+
+Tue May 20 23:26:05 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * test/ruby/test_array.rb: fix tests for 64bit CPU.
+
+Tue May 20 20:59:56 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * ext/nkf/nkf-utf8/nkf.c (rb_nkf_convert) (nkf_enc_without_bom):
+ reverted. nkf-utf8/nkf.c should be independent of ruby.
+
+ * ext/nkf/nkf.c (options):
+ moved from nkf-utf8/nkf.c.
+ override nkf's original settings for Unicode BOM.
+
+Tue May 20 13:20:51 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/nkf/nkf.c (rb_nkf_convert), ext/nkf/nkf-utf8/nkf.c
+ (nkf_enc_without_bom): BOM is not a part of encodings.
+
+ * ext/nkf/nkf.c (Init_nkf), ext/nkf/nkf-utf8/nkf.c (options):
+ UTF-{16,32} without endian have no sense.
+
+Tue May 20 12:13:50 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ruby.c (proc_options, process_options): --dump option.
+
+Tue May 20 11:36:06 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * include/ruby/ruby.h (PRI[diouxX]VALUE): printf format for VALUE.
+
+ * gc.c (assign_heap_slot): suppress a warning.
+
+Tue May 20 03:42:43 2008 Koichi Sasada <ko1@atdot.net>
+
+ * eval.c, vm_insnhelper.c: fix cref in instance_eval
+ and cvar_base search protocol.
+
+ * bootstraptest/test_knownbug.rb, test_eval.rb: move solved test
+ and add new tests.
+
+ * test/ruby/test_eval.rb: fix tests for spec.
+
+Tue May 20 01:43:44 2008 Koichi Sasada <ko1@atdot.net>
+
+ * bootstraptest/test_knownbug.rb: fix a test.
+ "block_given?" returns true if "yield" can be used.
+
+Tue May 20 01:07:19 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * parse.y (assignable_gen): when "self = 1" was evaluated, unnecessary
+ error message was output, which might cause null pointer access.
+
+Tue May 20 08:38:56 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (rb_enc_strlen_cr): need to set ENC_CODERANGE_7BIT if
+ search_nonascii() fails. [ruby-dev:34751]
+
+ * string.c (rb_str_reverse): preserve coderange info if the
+ receiver is 7bit string.
+
+ * string.c (rb_str_reverse_bang): ditto.
+
+ * string.c (rb_str_reverse_bang): should have called
+ single_byte_optimizable before rb_str_modify() that clears
+ coderange info.
+
+ * string.c (tr_trans): handle single bytes more eagerly.
+
+Mon May 19 23:32:12 2008 Koichi Sasada <ko1@atdot.net>
+
+ * vm.c (invoke_block_from_c): fix call flow.
+
+Mon May 19 23:19:35 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * regexec.c (slow_search): check the case when the length is 1.
+ The behavior of memcmp is undefined if the third argument is 0.
+
+Mon May 19 21:07:48 2008 Koichi Sasada <ko1@atdot.net>
+
+ * thread_pthread.c (native_thread_apply_priority):
+ fix argument range check. [ruby-dev:33124]
+
+Mon May 19 18:22:35 2008 Akinori MUSHA <knu@iDaemons.org>
+
+ * ext/openssl/ossl_pkcs5.c (ossl_pkcs5_pbkdf2_hmac): Fix the type
+ of md; pointed out by Takahiro Kambe <taca at back-street.net>
+ in [ruby-dev:34748].
+
+Mon May 19 17:23:55 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * regparse.c (PINC): use optimized enclen() instead of
+ ONIGENC_MBC_ENC_LEN().
+
+ * regparse.c (PFETCH): ditto.
+
+ * regparse.c (PFETCH): small optimization.
+
+ * regexec.c (slow_search): single byte encoding optimization.
+
+ * regenc.h (enclen): avoid calling function when encoding's
+ min_len == max_len.
+
+ * re.c (rb_reg_regsub): rb_enc_ascget() optimization for single
+ byte encoding.
+
+ * re.c (rb_reg_search): avoid allocating new re_registers if we
+ already have MatchData.
+
+ * re.c (match_init_copy): avoid unnecessary onig_region_free()
+ before onig_region_copy.
+
+ * encoding.c (rb_enc_get_index): remove implicit enc_capable check
+ each time.
+
+ * encoding.c (rb_enc_set_index): ditto.
+
+ * encoding.c (enc_compatible_p): small refactoring.
+
+ * include/ruby/encoding.h (rb_enc_dummy_p): inline
+ rb_enc_dummy_p() and export related code.
+
+Mon May 19 14:32:03 2008 Koichi Sasada <ko1@atdot.net>
+
+ * version.h: fix strange change by version.h update tool.
+
+Mon May 19 14:18:13 2008 Koichi Sasada <ko1@atdot.net>
+
+ * bootstraptest/test_knownbug.rb: move solved tests.
+
+ * bootstraptest/test_eval.rb, test_literal.rb, test_syntax.rb,
+ test_thread.rb: ditto.
+
+ * test/ruby/test_m17n.rb, test_proc.rb, test_sprintf.rb,
+ test_string.rb, test/ruby/test_struct.rb: ditto.
+
+Mon May 19 13:23:03 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * process.c (rb_spawn_internal): set last_status when status == -1
+ because there is no path to set it on win32. this patch is derived
+ from [ruby-core:16787], submitted by Luis Lavena <luislavena at
+ gmail.com>
+
+Mon May 19 11:32:47 2008 Koichi Sasada <ko1@atdot.net>
+
+ * vm.c, insns.def, eval.c, vm_insnhelper.c: fix CREF handling.
+ VM value stack frame of block contains cref information.
+ (dfp[-1] points CREF)
+
+ * compile.c, eval_intern.h, eval_method.c, load.c, proc.c,
+ vm_dump.h, vm_core.h: ditto.
+
+ * include/ruby/ruby.h, gc.c: remove T_VALUES because of above
+ changes.
+
+ * bootstraptest/test_eval.rb, test_knownbug.rb: move solved test.
+
+Sun May 18 22:26:51 2008 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * lib/webrick/httpservlet/filehandler.rb: should normalize path
+ name in path_info to prevent script disclosure vulnerability on
+ DOSISH filesystems. (fix: CVE-2008-1891)
+ Note: NTFS/FAT filesystem should not be published by the platforms
+ other than Windows. Pathname interpretation (including short
+ filename) is less than perfect.
+
+ * lib/webrick/httpservlet/abstract.rb
+ (WEBrick::HTTPServlet::AbstractServlet#redirect_to_directory_uri):
+ should escape the value of Location: header.
+
+ * lib/webrick/httpservlet/cgi_runner.rb: accept interpreter
+ command line arguments.
+
+Sun May 18 02:54:46 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * pack.c (pack_pack): check errno to detect error of ruby_strtoul.
+
+ * pack.c (pack_unpack): ditto.
+
+ * test/ruby/test_pack.rb: add a test for above.
+
+Sat May 17 23:53:57 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * file.c (file_expand_path): fix for short file name on Cygwin.
+
+Sat May 17 18:03:52 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * vm.c (Init_VM): removed the definition of Thread#initialize,
+ which is overwritten in Init_Thread and is never used.
+
+Sat May 17 14:01:50 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * array.c (rb_ary_sort_bang): should not free shared pointer, and set
+ shared. [ruby-dev:34732]
+
+Sat May 17 12:34:54 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * thread_pthread.c (Init_native_thread): Kernel#.sleep used never to
+ sleep on Mac OS X. Reported by arton <artonx AT yahoo.co.jp>.
+
+ * thread_pthread.c (native_sleep): added error checks.
+
+Sat May 17 11:29:11 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * file.c (rb_file_s_extname): first dot is not an extension name.
+
+Sat May 17 03:21:29 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * array.c (rb_ary_sort_bang): stop memory leak. [ruby-dev:34726]
+
+ * re.c (rb_reg_search): need to free allocated buffer in re_register.
+
+ * regexec.c (onig_region_new): more pedantic malloc check.
+
+ * regexec.c (onig_region_resize): ditto.
+
+ * regexec.c (STATE_CHECK_BUFF_INIT): ditto.
+
+ * regexec.c (onig_region_copy): use onig_region_resize.
+
+Fri May 16 12:48:33 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * math.c (to_flo): rb_Float() accepts even strings for input.
+
+ * complex.c (nucomp_to_f): fix wrong message.
+
+ * complex.c (nucomp_to_r): ditto.
+
+ * object.c (rb_Float): do not check NaN for error. NaN is a part
+ of valid float values.
+
+Thu May 15 23:36:09 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * test/ruby/test_string.rb: add tests to achieve over 90% test
+ coverage of string.c.
+
+ * test/ruby/test_m17n.rb: ditto.
+
+ * test/ruby/test_symbol.rb: ditto.
+
+ * test/ruby/test_pack.rb: ditto.
+
+Thu May 15 23:01:06 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * string.c (tr_find): String#delete returned wrong result when multiple
+ utf-8 arguments are passed.
+
+ * test/ruby/test_m17n.rb (test_delete): add a test for above.
+
+Thu May 15 22:37:56 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * parse.y (ripper_warningS): now used.
+
+Thu May 15 15:33:59 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * file.c (file_expand_path): support for alternative data stream
+ and ignored trailing garbage of NTFS.
+
+ * file.c (rb_file_s_basename): ditto.
+
+ * file.c (rb_file_s_extname): ditto.
+
+Thu May 15 13:43:36 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * object.c (rb_cstr_to_dbl): no need for forceful warning when
+ converting to float. overflow is a nature of float values.
+
+ * parse.y (parser_yylex): ditto.
+
+Thu May 15 13:23:20 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * re.c (rb_reg_prepare_enc): error condition was updated for non
+ ASCII compatible strings.
+
+Thu May 15 12:19:42 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ext/openssl/openssl_missing.c (HMAC_CTX_copy): adopted
+ prototype change in openssl bundled with newer OpenBSD.
+ a patch from Takahiro Kambe <taca at back-street.net> in
+ [ruby-dev:34691].
+
+Wed May 14 22:09:25 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * ChangeLog: fix typo.
+
+Wed May 14 21:49:14 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * test/ruby/test_object.rb: new tests to achieve over 90% test
+ coverage of object.c, eval.c and eval_method.c.
+
+ * test/ruby/test_module.rb: ditto.
+
+ * test/ruby/test_trace.rb: ditto.
+
+ * test/ruby/test_integer.rb: ditto.
+
+ * test/ruby/test_float.rb: ditto.
+
+ * test/ruby/test_method.rb: ditto.
+
+ * test/ruby/test_variable.rb: ditto.
+
+ * test/ruby/test_eval.rb: ditto.
+
+ * test/ruby/test_exception.rb: ditto.
+
+ * test/ruby/test_class.rb: ditto.
+
+Wed May 14 12:46:37 2008 Koichi Sasada <ko1@atdot.net>
+
+ * iseq.c (insn_operand_intern): remove Qundef related code.
+
+Wed May 14 12:42:36 2008 Akinori MUSHA <knu@iDaemons.org>
+
+ * array.c (rb_ary_count): Override Enumerable#count for better
+ performance.
+
+Wed May 14 11:29:06 2008 Koichi Sasada <ko1@atdot.net>
+
+ * insns.def: add a "putcbase" instruction.
+
+ * compile.c, insns.def: fix to use putcbase instruction for
+ class search. Qundef should not be used.
+
+Wed May 14 07:49:35 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (rb_call0): defer calling of rb_frame_self() until it
+ become really necessary.
+
+ * eval.c (rb_call): ditto.
+
+Wed May 14 00:55:56 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * test/ruby/test_io_m17n.rb: remove a duplicative method.
+
+ * test/ruby/test_utf16.rb: rename a conflicting method name.
+
+ * test/ruby/test_array.rb: ditto.
+
+ * test/ruby/test_file_exhaustive.rb: ditto.
+
+ * test/ruby/test_hash.rb: ditto.
+
+ * test/ruby/test_env.rb: ditto.
+
+ * test/ruby/test_fixnum.rb: ditto.
+
+ * test/ruby/test_rational.rb: ditto.
+
+Wed May 14 00:45:58 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * eval_method.c (rb_add_method): fix check for warning when
+ Object#initialize is redefined. (same as 1.8)
+
+Tue May 13 23:32:44 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * enum.c (enum_yield): use rb_yield_values2.
+
+ * enum.c (DEFINE_ENUMFUNCS): macro to define enumerator and yielding
+ functions.
+
+ * enum.c (enum_all_func, enum_any_func, enum_one_func,
+ enum_none_func): reduced duplicate code.
+
+Tue May 13 15:09:38 2008 Akinori MUSHA <knu@iDaemons.org>
+
+ * enumerator.c: Update rdoc.
+ (enumerator_initialize): Discourage the use.
+ (enum_each_slice, enum_each_cons, enumerator_each)
+ (enumerator_with_index): Add a note about a call without a block.
+
+Tue May 13 08:25:31 2008 Tanaka Akira <akr@fsij.org>
+
+ * io.c (rb_f_gets): re-enable rdoc.
+ (rb_f_readline): ditto.
+ (rb_f_readlines): ditto.
+
+Tue May 13 07:56:36 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (rb_str_cat): fixed buffer overrun reported by
+ Christopher Thompson <cthompson at nexopia.com> in [ruby-core:16746]
+
+Mon May 12 23:37:57 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * vm.c (collect_local_variables_in_env): remove unnecessary check
+ which causes: x=1;proc{local_variables}.call #=> []
+
+ * test/ruby/test_variable.rb: add a test for above.
+
+Mon May 12 23:05:24 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * process.c, include/ruby/intern.h (rb_run_exec_options): externed.
+
+ * process.c (save_redirect_fd, save_env_i, save_env, run_exec_dup2,
+ run_exec_open, run_exec_pgroup, run_exec_rlimit, rb_run_exec_options):
+ save parent's process environments.
+
+ * process.c (rb_spawn_internal): remove calling run_exec_options()
+ because cannot restore after spawn.
+
+ * io.c (pipe_open): ditto.
+
+ * test/ruby/test_process.rb (test_execopts_env): upcase environment
+ variable name for case insensitive platforms.
+
+ * win32/win32.c (init_env): set USER environment variable only when
+ USERNAME is available.
+
+Mon May 12 22:23:01 2008 Tanaka Akira <akr@fsij.org>
+
+ * lib/date.rb (once): use Object#object_id instead of Symbol#to_i.
+
+Mon May 12 21:34:46 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * test/ruby/envutil.rb (rubybin): return expanded rubyexe instead of
+ expanded ruby if available.
+
+Mon May 12 20:19:55 2008 Akinori MUSHA <knu@iDaemons.org>
+
+ * enum.c (grep_i): Be aware of multiple values;
+ fix [ruby-dev:34653].
+ (grep_iter_i): Ditto.
+ (count_i): Ditto.
+ (find_i): Ditto.
+ (find_index_i): Ditto.
+ (find_all_i): Ditto.
+ (reject_i): Ditto.
+ (inject_i): Ditto.
+ (inject_op_i): Ditto.
+ (partition_i): Ditto.
+ (group_by_i): Ditto.
+ (first_i): Ditto.
+ (sort_by_i): Ditto.
+ (all_i): Ditto.
+ (all_iter_i): Ditto.
+ (any_i): Ditto.
+ (any_iter_i): Ditto.
+ (one_i): Ditto.
+ (one_iter_i): Ditto.
+ (none_i): Ditto.
+ (none_iter_i): Ditto.
+ (min_i): Ditto.
+ (min_ii): Ditto.
+ (max_i): Ditto.
+ (max_ii): Ditto.
+ (minmax_i): Ditto.
+ (minmax_ii): Ditto.
+ (min_by_i): Ditto.
+ (max_by_i): Ditto.
+ (minmax_by_i): Ditto.
+ (member_i): Ditto.
+ (take_i): Ditto.
+ (take_while_i): Ditto.
+ (drop_i): Ditto.
+ (drop_while_i): Ditto.
+ (cycle_i): Ditto.
+
+ * enum.c (each_with_index): Update rdoc. each_with_index() takes
+ arguments that are passed through to each(), and a hash preserves
+ key order.
+
+Mon May 12 19:05:24 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * process.c (rb_spawn_internal): remove calling run_exec_options()
+ because cannot restore after spawn. we'll fix this later.
+
+Mon May 12 18:16:44 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * process.c (rb_spawn_internal): need to call run_exec_options() before
+ spawn if the platform doesn't have fork. [ruby-dev:34647]
+
+Mon May 12 15:20:02 2008 Tanaka Akira <akr@fsij.org>
+
+ * gc.c (ruby_vm_xmalloc): increase malloc_increase only if malloc
+ succeeds. failed malloc size can be huge. it may increase
+ malloc_limit too big which cause less GC and memory full.
+ (ruby_vm_xrealloc): ditto.
+ (rb_objspace): make params.limit and params.increase size_t.
+
+Mon May 12 15:04:58 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * re.c (rb_reg_prepare_re): made non static with small refactoring.
+
+ * ext/strscan/strscan.c (strscan_do_scan): should adjust encoding
+ before regex searching.
+
+Mon May 12 13:57:19 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (is_defined): add NODE_OP_ASGN_{OR,AND}. "defined?(a||=1)"
+ should not operate assignment. [ruby-dev:34645]
+
+Mon May 12 13:29:26 2008 Tanaka Akira <akr@fsij.org>
+
+ * bignum.c (bigzero_p): check from MSB to LSB. [ruby-dev:34649]
+
+Mon May 12 12:32:10 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * common.mk (RUBYOPT): affected BASERUBY too. [ruby-talk:301514]
+
+Mon May 12 12:27:55 2008 Tanaka Akira <akr@fsij.org>
+
+ * gc.c (assign_heap_slot): fix condition for number of objects in
+ a heap.
+
+Mon May 12 12:24:48 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (sym_to_i): really removed. [ruby-dev:34641]
+
+Mon May 12 11:15:55 2008 Yuki Sonoda (Yugui) <yugui@yugui.jp>
+
+ * gc.c (assign_heap_slot): put the binary search routine in order.
+
+Mon May 12 10:52:51 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ruby.c (ruby_init_gems), gem_prelude.rb: check if Gem is defined
+ instead of Gem::Enable.
+
+ * gem_prelude.rb (load_full_rubygems_library, const_missing): prevent
+ infinite recursion. [ruby-dev:34539]
+
+Sun May 11 23:19:39 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * enum.c (all_iter_i, any_iter_i): reduced duplicated code.
+
+Sun May 11 22:54:02 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * bootstraptest/runner.rb (main): leave -I options for purelib.rb
+ untouched.
+
+ * bootstraptest/runner.rb (main): handle relative path -r options.
+
+Sun May 11 19:04:06 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * test/ruby/test_thread.rb: kill and join temporal threads that are
+ created in each test.
+
+Sun May 11 17:58:45 2008 Tanaka Akira <akr@fsij.org>
+
+ * test/ruby/test_process.rb (TestProcess#with_stdin): defined.
+ (TestProcess#test_argv0_noarg): don't use redirect_fds.
+ [ruby-dev:34647]
+
+Sun May 11 17:57:36 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (MINIRUBY): should not include extension library path.
+
+Sun May 11 14:40:36 2008 Tanaka Akira <akr@fsij.org>
+
+ * include/ruby/ruby.h (SIZET2NUM): new macro.
+ (NUM2SIZET): new macro.
+
+ * gc.c (struct rb_objspace): use size_t for increment, length and
+ used for 64bit.
+ (allocate_heaps): ditto.
+ (assign_heap_slot): ditto.
+ (set_heaps_increment): ditto.
+ (gc_mark_all): ditto.
+ (is_pointer_to_heap): ditto.
+ (free_unused_heaps): ditto.
+ (gc_sweep): ditto.
+ (os_obj_of): ditto.
+ (rb_gc_call_finalizer_at_exit): ditto.
+ (count_objects): ditto.
+
+Sun May 11 13:14:09 2008 Tanaka Akira <akr@fsij.org>
+
+ * thread.c (thread_cleanup_func_before_exec): extracted from
+ thread_cleanup_func not to touch pthread data.
+ pthread_cond_destroy in forked process may cause deadlock on
+ Debian GNU/Linux Etch on x86, x86-64 and IA64.
+ this doesn't cause resource leak because the process will exec soon.
+ (terminate_atfork_before_exec_i): defined.
+ (rb_thread_atfork_before_exec): defined.
+
+ * include/ruby/intern.h (rb_thread_atfork_before_exec): declared.
+
+ * process.c (rb_exec_atfork): call rb_thread_atfork_before_exec
+ instead of rb_thread_atfork.
+
+ * io.c (popen_exec): call rb_thread_atfork_before_exec instead of
+ rb_thread_atfork.
+
+Sat May 10 22:14:03 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (tr_trans): single '^' does not mean negation.
+ [ruby-dev:34632]
+
+ * string.c (tr_trans): should check src size, not str size.
+ [ruby-dev:34637]
+
+ * string.c (tr_trans): should not turn on modify flag if no
+ modification happens. [ruby-dev:34631]
+
+Sat May 10 18:11:18 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (rb_str_each_line): zero length record separator should
+ split a string into paragraphs. [ruby-dev:34586]
+
+ * string.c (rb_str_each_line): RDoc updated.
+
+Sat May 10 11:36:20 2008 Tanaka Akira <akr@fsij.org>
+
+ * vm.c (env_mark): mark env->block.self. prevent SEGV when GC occur
+ in prepare_iseq_build with gcc version 3.4.6 [FreeBSD] 20060305 on
+ FreeBSD/amd64.
+
+Fri May 9 19:16:00 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * thread.c (timeofday): use monotonic clock. based on a patch
+ from zimbatm <zimbatm at oree.ch> in [ruby-core:16627].
+
+Fri May 9 07:47:07 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * cont.c (cont_restore_0): dynamic stack direction code should be
+ consistent with static one. [ruby-talk:301152]
+
+Fri May 9 00:03:50 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * parse.y (arg): operator assignment "a += b rescue c" should be
+ parsed as "a += (b rescue c)" just like normal assignment.
+ [ruby-talk:301000]
+
+Thu May 8 18:14:00 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * bignum.c (rb_big_and): bit-wise operation should not take float
+ values. [ruby-dev:34612]
+
+ * bignum.c (rb_big_or): ditto.
+
+ * bignum.c (rb_big_xor): ditto.
+
+Thu May 8 17:44:13 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * common.mk, ext/extmk.rb, lib/mkmf.rb: use absolute path for RUBYOPT.
+
+ * file.c (rb_find_file_ext): guard load_path from GC.
+ gcc version 4.1.2 20061115 (prerelease) (Debian 4.1.1-21) optimizes
+ load_path by holding only RARRAY_LEN(load_path) and
+ RARRAY_PTR(load_path) in registers on IA64 GNU/Linux Etch.
+
+Thu May 8 16:41:20 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (MINIRUBY), common.mk (RUBYOPT): add purelib.rb.
+ [ruby-core:16642]
+
+Thu May 8 16:00:41 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * parse.y (parser_yylex): ! and ? at the bottom are no longer part
+ of valid symbol names. [ruby-dev:34590]
+
+Thu May 8 15:36:11 2008 Tanaka Akira <akr@fsij.org>
+
+ * thread.c (rb_gc_save_machine_context): call FLUSH_REGISTER_WINDOWS
+ to mark the register stack from GC on another thread.
+
+Thu May 8 15:14:34 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * array.c (rb_ary_sort_bang): freeze temporary array.
+
+Thu May 8 13:19:18 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * vm.c (rb_thread_mark): mark stat_insn_usage only when ptr is not
+ null.
+
+Thu May 8 10:44:04 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * array.c (sort_reentered): reentered check may be called from
+ Array#sort.
+
+Thu May 8 09:51:52 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * array.c (sort_1, sort_2): check for reentered and if elements are
+ accessible. [ruby-core:16679]
+
+Thu May 8 06:43:52 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * dln.c (dln_find_exe_r, dln_find_file_r): reentrant versions.
+
+ * file.c (rb_find_file_ext, rb_find_file), process.c (proc_exec_v),
+ (rb_proc_exec, proc_spawn_v, proc_spawn), ruby.c (process_options):
+ use reentrant versions.
+
+Thu May 8 06:27:33 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * thread.c (rb_thread_key_p): thread local storage stores ID.
+
+Thu May 8 01:10:03 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (tr_trans): should squeeze properly. [ruby-dev:34587]
+
+ * string.c (tr_trans): had a bug in treating multi-byte character
+ replacement.
+
+ * string.c (rb_str_delete_bang): need not to do anything for empty
+ strings.
+
+ * test/ruby/test_m17n_comb.rb (TestM17NComb::test_str_delete): add
+ test for empty receiver.
+
+Wed May 7 20:19:18 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * ruby.c (process_options, ruby_set_argv): set encoding of rb_argv
+ after Init_prelude() because cannot load encoding extensions before
+ it.
+
+Wed May 7 20:00:21 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * numeric.c (bit_coerce): float should not be a valid operand of
+ bitwise operations. [ruby-dev:34583]
+
+Wed May 7 19:35:29 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * thread.c (rb_thread_key_p): should always convert symbol to ID.
+ [ruby-dev:34588]
+
+Wed May 7 19:30:34 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * numeric.c (fix_divide): float division should floor() before
+ rounding into integer. [ruby-dev:34584]
+
+Wed May 7 18:02:01 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (sym_to_i): remove obsolete method. preparation for
+ symbol GC.
+
+ * numeric.c (fix_to_sym): ditto.
+
+ * numeric.c (fix_id2name): ditto.
+
+Wed May 7 17:43:22 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * io.c (io_puts_ary): check recursion first. [ruby-dev:34580]
+
+Wed May 7 17:41:14 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * vm.c (vm_eval_body): initialize retval. [ruby-dev:34576]
+
+Wed May 7 13:02:56 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * bignum.c (rb_big_fdiv): flo.fdiv(NaN) should result NaN.
+
+ * numeric.c (num_quo): renamed and moved from bignum.c.
+ [ruby-dev:34582]
+
+ * bignum.c (rb_big_fdiv): update RDoc description
+
+ * rational.c (nurat_s_new_m): small refactoring.
+
+ * bignum.c (rb_big2dbl): no need for forceful warning when
+ converting to float. overflow is a nature of float values.
+
+Wed May 7 00:54:25 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ext/zlib/zlib.c (gzreader_gets): may cause infinite loop.
+ a patch from Kouya <kouyataifu4 at gmail.com> in
+ [ruby-reference-manual:762].
+
+Tue May 6 02:08:18 2008 Tanaka Akira <akr@fsij.org>
+
+ * test/io/nonblock/test_flush.rb: don't set Thread.abort_on_exception.
+
+ * test/net/imap/test_imap.rb: ensure disconnecting imap to terminate
+ receiver thread.
+
+Tue May 6 00:29:21 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * iseq.c (insn_operand_intern): should handle Qundef embedded in
+ operand. [ruby-core:16656]
+
+Tue May 6 00:00:02 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * compile.c (iseq_compile_each): should call compile_cpath() for
+ modules as well. [ruby-dev:34585]
+
+ * insns.def (defineclass): add undef handling.
+
+Mon May 5 23:49:40 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * insns.def (defineclass): was using wrong variable. [ruby-dev:34592]
+
+Mon May 5 20:07:59 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * io.c (io_fflush): IO#flush problem within threads. a patch from
+ <s.wanabe at gmail.com> in [ruby-dev:34595].
+
+Mon May 5 19:58:44 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * compile.c (defined_expr): protect some expression from
+ segmentation fault. a patch from wanabe <s.wanabe at gmail.com>
+ in [ruby-dev:34593].
+
+Mon May 5 19:49:59 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * struct.c (rb_struct_s_def): Struct.new(0) should not SEGV.
+ based on the patch from wanabe <s.wanabe at gmail.com> in
+ [ruby-dev:34594].
+
+ * struct.c (make_struct): call to_str on name object.
+
+Mon May 5 17:17:40 2008 Tanaka Akira <akr@fsij.org>
+
+ * eval.c (ruby_cleanup): wrap ruby_finalize_0 by SAVE_ROOT_JMPBUF to
+ avoid SEGV by at_exit { Fiber.new{}.resume } on IA64.
+
+Mon May 5 12:12:11 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * array.c (rb_ary_slice_bang): should adjust length before making
+ sub-array.
+
+Mon May 5 11:36:14 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * array.c (rb_ary_dup): should dupe corresponding information.
+ [ruby-dev:34581]
+
+Mon May 5 11:13:50 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * compile.c (compile_cpath): use Qundef to denote cbase lookup.
+
+ * insns.def (defineclass): Qundef is passed for cbase.
+
+ * insns.def (setconstant): ditto.
+
+ * vm_insnhelper.c (vm_check_if_namespace): use rb_inspect()
+ instead of rb_obj_as_string() for better description.
+
+Mon May 5 02:10:23 2008 Tanaka Akira <akr@fsij.org>
+
+ * gc.c (set_heaps_increment): fix memory allocation strategy by
+ determining heaps_inc from heaps_used, not objects_delta.
+ (struct rb_objspace): delta removed. change increment, length and
+ used to long for LP64.
+ (objects_delta): removed.
+ (allocate_heaps): add next_heaps_length argument.
+ (init_heap): renamed from add_heap.
+ (garbage_collect): use heaps_increment in dont_gc.
+
+Sun May 4 21:09:32 2008 Tanaka Akira <akr@fsij.org>
+
+ * lib/getoptlong.rb: use $stderr instead of $deferr.
+
+Sun May 4 16:04:28 2008 Tanaka Akira <akr@fsij.org>
+
+ * time.c (obj2nsec): fix string argument.
+
+Sun May 4 14:29:14 2008 Tanaka Akira <akr@fsij.org>
+
+ * eval.c (rb_obj_respond_to): check the result of respond_to? method
+ by RTEST.
+
+Sun May 4 12:57:58 2008 Tanaka Akira <akr@fsij.org>
+
+ * string.c (rb_str_each_line): return original string.
+
+Sat May 3 20:57:06 2008 Tanaka Akira <akr@fsij.org>
+
+ * test/ruby/envutil.rb (Test::Unit::Assertions#assert_normal_exit):
+ new method.
+
+Sat May 3 18:10:54 2008 Tanaka Akira <akr@fsij.org>
+
+ * time.c (time_timespec): raise TypeError for nil and other objects
+ which has no divmod method.
+
+Fri May 2 23:59:26 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * io.c (internal_read_func, internal_write_func): split from
+ internal_io_func.
+
+Fri May 2 23:55:15 2008 Tanaka Akira <akr@fsij.org>
+
+ * variable.c (rb_define_hooked_variable): guard *var from GC to
+ prevent collecting argf under RUBY_DEBUG=gc_stress.
+
+Fri May 2 17:29:59 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * range.c (range_step): call to_int if step is not a numeric
+ value. [ruby-dev:34575]
+
+Fri May 2 16:10:57 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * range.c (range_step): do not forcefully convert steps into
+ integers. [ruby-dev:34571]
+
+Fri May 2 14:52:33 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * misc/ruby-mode.el: move fontifying code from hook. a patch from
+ Phil Hagelberg <phil at hagelb.org> in [ruby-core:16636].
+
+Fri May 2 14:10:17 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * range.c (range_step): step may be bignum.
+
+Fri May 2 13:52:36 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * re.c (Init_Regexp): remove MatchData#select. [ruby-dev:34563]
+
+Thu May 1 23:59:59 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * bignum.c (rb_big_divide), numeric.c (fix_divide): check for result
+ domain. [ruby-dev:34559]
+
+Thu May 1 23:57:06 2008 James Edward Gray II <jeg2@ruby-lang.org>
+
+ * lib/net/telnet.rb: This patch from Brian Candler adds a FailEOF mode which
+ can be activated to have net/telnet raise EOFError exceptions when the
+ remote connection is closed. The default behavior remains unchanged though.
+
+Thu May 1 23:43:21 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * range.c (range_step): check if step can be converted to an integer.
+ [ruby-dev:34558]
+
+ * range.c (range_step): allow float step bigger than zero but less
+ than one. [ruby-dev:34557]
+
+Thu May 1 23:20:12 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * bignum.c (rb_big_divide): return an integer for idiv.
+ [ruby-dev:34553]
+
+Thu May 1 20:47:30 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * hash.c (rb_hash_s_create): should access converted hash value.
+ [ruby-dev:34555]
+
+Thu May 1 20:31:09 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * test/ruby/test_parse.rb (TestParse::test_void_expr_stmts_value):
+ shut up warning.
+
+ * rational.c (nurat_to_f): no need for forceful warning when
+ converting to float. overflow is a nature of float values.
+
+Thu May 1 16:10:21 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * hash.c (env_delete_if): return enumerator if no block given.
+ [ruby-dev:34554]
+
+Wed Apr 30 21:36:40 2008 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
+
+ * lib/erb.rb (url_encode): [ruby-dev:34497] ERB::Util#url_encode
+ bug fix. Reported by rubikitch.
+
+ * test/erb/test_erb.rb: ditto
+
+Wed Apr 30 20:11:36 2008 James Edward Gray II <jeg2@ruby-lang.org>
+
+ * lib/net/telnet.rb: Fixing a bug where line endings would not be properly
+ escaped when the two character ending was broken up into separate TCP
+ packets. Issue reported and patched by Brian Candler.
+
+Wed Apr 30 18:03:01 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * load.c (rb_load_path), vm_core.h (rb_vm_t): moved to VM.
+
+ * load.c (rb_get_load_path): returns absolute load path.
+
+ * load.c (load_path_getter): $LOAD_PATH getter.
+
+ * file.c (rb_find_file_ext, rb_find_file), ruby.c (push_include,
+ ruby_init_loadpath): use the accessor.
+
+ * vm.c (rb_vm_mark): mark load_path.
+
+Wed Apr 30 17:47:21 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * re.c (rb_reg_search): use local variable. a patch from wanabe
+ <s.wanabe AT gmail.com> in [ruby-dev:34537]. [ruby-dev:34492]
+
+Wed Apr 30 16:10:18 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * eval_intern.h: specify the values of the enumeration constants
+ explicitly. [ruby-dev:34489]
+
+Wed Apr 30 12:32:39 2008 Tanaka Akira <akr@fsij.org>
+
+ * process.c (check_exec_redirect_fd): prohibit duplex IO.
+ (check_exec_fds): record maxhint even if close_others is not
+ specified.
+ (rb_exec_arg_fixup): renamed from rb_exec_arg_fix.
+
+Mon Apr 28 20:24:27 2008 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * rational.c (nurat_marshal_load): checks the given
+ denominator. [ruby-dev:34536]
+
+Mon Apr 28 14:21:18 2008 Tanaka Akira <akr@fsij.org>
+
+ * include/ruby/ruby.h (POSFIXABLE): use FIXNUM_MAX+1 instead of
+ FIXNUM_MAX to make it possible to convert to double accurately on
+ environments with 64bit VALUE and 64bit double.
+ It assumes FLT_RADIX is 2.
+ fix RubyForge bug #14102.
+
+Mon Apr 28 12:48:57 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * process.c (rb_exec_arg_addopt, rb_exec_arg_addopt): now can specify
+ close_exec on having no fork environment (but still meaningless).
+
+Mon Apr 28 11:11:29 2008 Tanaka Akira <akr@fsij.org>
+
+ * process.c (run_exec_options): don't call FIX2INT for nil.
+
+Mon Apr 28 11:11:38 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * proc.c (method_name): should return symbols instead of strings.
+ [ruby-dev:34531]
+
+Mon Apr 28 09:02:43 2008 Tanaka Akira <akr@fsij.org>
+
+ * include/ruby/intern.h (rb_exec_arg_init): declared.
+ (rb_exec_arg_addopt): declared.
+ (rb_exec_arg_fix): declared.
+ (rb_exec_initarg): removed.
+ (rb_exec_getargs): removed.
+ (rb_exec_initarg2): removed.
+
+ * io.c (struct popen_arg): make execarg as a pointer.
+ (popen_exec): follow popen_arg change.
+ (pipe_open): add eargp argument. extract argc and argv from eargp.
+ use rb_exec_arg_addopt to add redirect options.
+ (pipe_open_v): set up struct rb_exec_arg.
+ (pipe_open_s): set up struct rb_exec_arg.
+
+ * process.c (rb_exec_arg_addopt): new function extracted from
+ check_exec_options_i.
+ (check_exec_options_i): use rb_exec_arg_addopt.
+ (rb_check_exec_options): opthash is always a hash now.
+ (rb_exec_getargs): make it static.
+ (rb_exec_fillarg): renamed from rb_exec_initarg2. don't set up
+ redirect_fds.
+ (rb_exec_arg_init): new function.
+ (rb_exec_arg_fix): new function.
+ (rb_f_exec): use rb_exec_arg_init and rb_exec_arg_fix. use
+ rb_exec_arg_addopt to set close_others option.
+ (run_exec_options): make close_others by default.
+ (rb_spawn_internal): use rb_exec_arg_init and rb_exec_arg_fix. use
+ rb_exec_arg_addopt to set close_others option.
+
+Sun Apr 27 18:59:04 2008 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * rational.c (nurat_expt): use f_rational_new2. [ruby-dev:34524]
+
+Sun Apr 27 15:23:40 2008 Koichi Sasada <ko1@atdot.net>
+
+ * gc.c (gc_count): add a GC.count method. This method returns
+ a GC invoking count.
+
+Sun Apr 27 12:20:33 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * vm_core.h (rb_vm_t), gc.c (rb_objspace, rb_newobj), vm.c
+ (Init_BareVM): per-VM object space support, which is disabled now.
+
+ * gc.c (rb_objspace_alloc), vm.c (Init_BareVM): should not use ruby
+ malloc here.
+
+ * gc.c (garbage_collect, etc): performance improvement by passing the
+ reference instead of referring the global variable in each functions.
+
+Sun Apr 27 08:06:15 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * ruby.c (ruby_set_argv): ARGV should be locale encoding.
+ [ruby-list:44861]
+
+Sun Apr 27 01:46:29 2008 Tanaka Akira <akr@fsij.org>
+
+ * lib/open3.rb (Open3.popen3w): removed.
+ (Open3.popen3): notice wait_thr.
+
+Sun Apr 27 01:13:05 2008 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rdoc, test/rdoc: Update to RDoc 2.0.0 r56.
+
+Sat Apr 26 21:30:40 2008 Tanaka Akira <akr@fsij.org>
+
+ * include/ruby/intern.h (rb_hash_dup): declared.
+
+ * hash.c (rb_hash_dup): new function.
+
+ * process.c (rb_spawn_internal): don't modify option hash.
+
+Sat Apr 26 18:36:31 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * io.c, signal.c, thread.c, thread_win32.c, include/ruby/intern.h:
+ suppress warnings.
+
+Sat Apr 26 17:42:30 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * error.c (builtin_types), gc.c (count_objects): added Complex and
+ Rational.
+
+Sat Apr 26 17:35:19 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * error.c (rb_eNOERROR): renamed.
+
+Sat Apr 26 17:30:11 2008 Koichi Sasada <ko1@atdot.net>
+
+ * include/ruby/ruby.h, gc.c: remove T_BLOCK.
+
+ * include/ruby/ruby.h: re-number T_xxx.
+
+Sat Apr 26 17:31:09 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * process.c (rb_cProcessTms, rb_cProcessStatus): renamed.
+
+ * error.c (builtin_types), signal.c (siglist), st.c (primes),
+ struct.c (ref_func), time.c (months): constified.
+
+Sat Apr 26 13:00:41 2008 Tanaka Akira <akr@fsij.org>
+
+ * lib/open3.rb: double fork is replaced by spawn with Process.detach.
+ (Open3.popen3w): new method to access the thread returned by
+ Process.detach.
+
+Sat Apr 26 00:47:43 2008 Tanaka Akira <akr@fsij.org>
+
+ * process.c (rb_spawn_internal): new function to specify
+ default_close_others.
+ (rb_spawn): specify default_close_others true.
+ (rb_f_system): call rb_spawn_internal with default_close_others as
+ false.
+
+Sat Apr 26 12:26:41 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * range.c (range_each): use INT2FIX() for fixnum values.
+
+Fri Apr 25 17:56:25 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * gc.c (free_unused_heaps): preserve last used heap segment to
+ reduce malloc() call.
+
+Fri Apr 25 17:54:10 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * gc.c (HEAP_SIZE): use smaller heap segment (2K) for more chance
+ to be freed. based on patch from authorNari <authornari at gmail.com>.
+
+ * gc.c (rb_newobj_from_heap): eventually allocate heap segments.
+
+Fri Apr 25 15:35:36 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * process.c (rb_spawn): rb_exec_initarg() returns new argc and argv in
+ earg.
+
+Fri Apr 25 12:37:54 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * array.c (flatten): returns an instance of same class.
+ [ruby-core:16554]
+
+Fri Apr 25 10:52:27 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * include/ruby/win32.h: define mode_t for umask.
+
+ * process.c (check_exec_options_i, check_exec_fds, run_exec_options):
+ support "close_others" only when fork(2) is available.
+
+Fri Apr 25 00:16:11 2008 Tanaka Akira <akr@fsij.org>
+
+ * process.c: include sys/stat.h for umask.
+
+Thu Apr 24 23:25:17 2008 Tanaka Akira <akr@fsij.org>
+
+ * include/ruby/intern.h (rb_env_clear): declared.
+ (rb_io_mode_modenum): declared.
+ (rb_close_before_exec): declared.
+ (struct rb_exec_arg): add options and redirect_fds field.
+ (rb_check_argv): removed.
+ (rb_exec_initarg): declared.
+ (rb_exec_getargs): declared.
+ (rb_exec_initarg2): declared.
+ (rb_fork): add third argument: fds.
+
+ * io.c (max_file_descriptor): new static variable to record maximum
+ file descriptor ruby used.
+ (UPDATE_MAXFD): new macro.
+ (UPDATE_MAXFD_PIPE): new macro.
+ (rb_io_mode_modenum): externed.
+ (rb_sysopen): update max_file_descriptor.
+ (rb_close_before_exec): new function.
+ (popen_exec): redirection removed because it is done by extended
+ spawn mechanism.
+ (pipe_open): generate a hash for spawn options to specify
+ redirections.
+ (pipe_open_v): use rb_exec_getargs.
+ (pipe_open_s): use rb_exec_getargs.
+ (rb_io_initialize): update max_file_descriptor.
+
+ * process.c (hide_obj): new function.
+ (check_exec_redirect_fd): new function.
+ (check_exec_redirect): new function.
+ (check_exec_options_i): new function.
+ (check_exec_fds): new function.
+ (rb_check_exec_options): new function.
+ (check_exec_env_i): new function.
+ (rb_check_exec_env): new function.
+ (rb_exec_getargs): new function.
+ (rb_exec_initarg2): new function.
+ (rb_exec_initarg): new function.
+ (rb_f_exec): use rb_exec_initarg.
+ (intcmp): new function.
+ (run_exec_dup2): new function.
+ (run_exec_close): new function.
+ (run_exec_open): new function.
+ (run_exec_pgroup): new function.
+ (run_exec_rlimit): new function.
+ (run_exec_options): new function.
+ (rb_exec): call run_exec_options.
+ (move_fds_to_avoid_crash): new function.
+ (pipe_nocrash): new function.
+ (rb_fork): use pipe_nocrash to avoid file descriptor conflicts.
+ (rb_spawn): use rb_exec_initarg.
+ (rlimit_resource_name2int): extracted from rlimit_resource_type.
+ (rlimit_type_by_hname): new function.
+ (rlimit_type_by_lname): new function.
+ (rlimit_resource_type): use rlimit_type_by_hname.
+ (proc_daemon): add fds argument for rb_fork.
+
+ * hash.c (rb_env_clear): renamed from env_clear and externed.
+
+ [ruby-dev:34086]
+
+Thu Apr 24 23:00:58 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * test/ruby/test_thread.rb: fix typos.
+
+ * test/ruby/envutil.rb (rubyexec): move Open3.popen3 call into timeout
+ block.
+
+Thu Apr 24 22:34:52 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * test/ruby/test_comparable.rb: new tests for Comparable, to achieve
+ 100% test coverage of compar.c.
+
+Thu Apr 24 17:19:01 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ruby.c (process_options): set safe_level before loading script.
+ [ruby-dev:34421]
+
+Thu Apr 24 14:15:11 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * dln.c (dln_find_1): prior files with extensions to files sans
+ extensions. [ruby-core:16517]
+
+Thu Apr 24 00:26:06 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * lib/rdoc/ri/descriptions.rb: fixed wrong class nestings.
+
+Thu Apr 24 00:20:01 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * test/ruby/test_settracefunc.rb: add a test for set_trace_func.
+
+ * test/ruby/envutil.rb: move "rubyexec" method from test_rubyoptions.rb.
+
+ * test/ruby/test_rubyoptions.rb: use rubyexec in envutil.rb.
+
+ * test/ruby/test_thread.rb: add tests to achieve over 90% test coverage
+ of thread.c.
+
+Wed Apr 23 15:28:52 2008 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
+
+ * test/gdbm/test_gdbm.rb (TestGDBM#test_s_open_no_create): failed
+ notice moved from comment to assertion message. [ruby-dev:29127]
+
+Wed Apr 23 11:49:54 2008 Akinori MUSHA <knu@iDaemons.org>
+
+ * lib/set.rb (Set#each, SortedSet#each, TC_Set#test_each): Return
+ an enumerator if no block is given.
+
+Wed Apr 23 00:36:03 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * test/openssl/test_ssl.rb (start_server): add timeout to server.join.
+
+Wed Apr 23 00:18:45 2008 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
+
+ * test/ruby/test_symbol.rb (TestSymbol#test_to_proc): Improve
+ tests of Symbol#to_proc.
+
+Tue Apr 22 22:40:57 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/drb/drb.rb (DRb::DRbServer::check_insecure_method): should
+ check method names by symbols, not by strings. a patch from
+ Kazuhiro NISHIYAMA <zn at mbf.nifty.com> in [ruby-dev:34487].
+
+Tue Apr 22 22:15:54 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * misc/ruby-style.el (ruby-style-{case,label}-indent): up list from
+ indentation point.
+
+Tue Apr 22 21:09:05 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * ext/nkf/nkf-utf8/nkf.c (score_table_A0, score_table_F0):
+ type of content is unsigned char.
+
+ * ext/nkf/nkf-utf8/nkf.c (push_broken_buf): 'c' is nkf_char.
+
+ * ext/nkf/nkf-utf8/nkf.c (push_broken_buf): enc is 0 or pointer.
+
+ * ext/nkf//nkf.c (options): type of option is unsigned char.
+
+Tue Apr 22 20:51:58 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * ext/nkf/nkf-utf8/nkf.c (z_conv): characters must be nkf_char.
+
+Tue Apr 22 19:23:05 2008 Akinori MUSHA <knu@iDaemons.org>
+
+ * enumerator.c (enumerator_initialize): Remove an undocumented
+ feature (passing a block to the constructor) that's broken.
+ This is not what I intended.
+
+Tue Apr 22 17:54:05 2008 URABE Shyouhei <shyouhei@ruby-lang.org>
+
+ * vm_core.h (exec_event_hooks): ``inline'' is a type modifier, not
+ a type itself.
+
+Tue Apr 22 16:24:27 2008 URABE Shyouhei <shyouhei@ruby-lang.org>
+
+ * string.c (rb_enc_cr_str_buf_cat): do not use C++ comments.
+
+Tue Apr 22 16:23:53 2008 URABE Shyouhei <shyouhei@ruby-lang.org>
+
+ * configure.in: use AC_USE_SYSTEM_EXTENSIONS.
+
+Tue Apr 22 16:23:16 2008 URABE Shyouhei <shyouhei@ruby-lang.org>
+
+ * vm_evalbody.c (DECL_SC_REG): use __asm__ instead.
+
+Tue Apr 22 16:18:30 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * vm_evalbody.c (DECL_SC_REG): typo fixed.
+
+Tue Apr 22 15:25:04 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (struct timespec): needs time.h according to POSIX.
+
+Tue Apr 22 13:19:48 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * thread.c (rb_thread_stop_timer_thread): should clear
+ timer_thread_id after stopping it.
+
+Tue Apr 22 13:12:58 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * thread.c (thread_join): remove the current thread from the join list
+ of the target thread.
+
+Tue Apr 22 12:03:50 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * vm_insnhelper.c (vm_get_ev_const): search from the base klass if it
+ is given.
+
+Tue Apr 22 09:58:13 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * ext/win32ole/win32ole.c: avoid warnings.
+
+Tue Apr 22 09:56:51 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * file.c (eaccess): workaround for recent msvcrt's behavior.
+ [ruby-core:16460]
+
+Mon Apr 21 19:08:32 2008 Tanaka Akira <akr@fsij.org>
+
+ * io.c (copy_stream_body): call rb_io_check_readable and
+ rb_io_check_writable.
+
+Mon Apr 21 17:45:27 2008 Akinori MUSHA <knu@iDaemons.org>
+
+ * ext/dbm/dbm.c (fdbm_each_value, fdbm_each_key, fdbm_each_pair):
+ GDBM#{each,each_pair,each_key,each_value}: Return an enumerator
+ if no block is given.
+
+ * ext/gdbm/gdbm.c (fgdbm_each_value, fgdbm_each_key,
+ fgdbm_each_pair): GDBM#{each,each_pair,each_key,each_value}:
+ Return an enumerator if no block is given.
+
+ * ext/openssl/ossl_config.c (ossl_config_each):
+ OpenSSL::Config#each: Return an enumerator if no block is given.
+
+ * ext/readline/readline.c (hist_each): Readline::HISTORY#each:
+ Return an enumerator if no block is given.
+
+ * ext/sdbm/init.c (fsdbm_each_value, fsdbm_each_key,
+ fsdbm_each_pair): SDBM#{each,each_pair,each_key,each_value}:
+ Return an enumerator if no block is given.
+
+ * ext/stringio/stringio.c (strio_each_byte, strio_each):
+ StringIO#{each,each_line,each_byte}: Return an enumerator if no
+ block is given.
+
+ * ext/stringio/stringio.c (Init_stringio): Add #lines and #bytes,
+ which are aliases to #each_line and #each_byte, respectively.
+
+ * ext/win32ole/win32ole.c (fole_each): WIN32OLE#each: Return an
+ enumerator if no block is given.
+
+ * ext/zlib/zlib.c (rb_gzreader_each_byte, rb_gzreader_each):
+ Zlib::GzipReader#{each,each_line,each_byte}: Return an
+ enumerator if no block is given.
+
+ * ext/zlib/zlib.c (Init_zlib): Add Zlib::GzipReader#lines and
+ #bytes, which are aliases to #each_line and #each_byte,
+ respectively.
+
+Mon Apr 21 17:01:44 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * iseq.c (rb_iseq_compile_with_option): check if src is a string.
+ [ruby-core:16453]
+
+Mon Apr 21 16:06:47 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * enumerator.c (enumerator_init): preserve the method name in ID.
+
+ * enumerator.c (enumerator_each): need not to call rb_to_id().
+
+ * enumerator.c (enumerator_with_index): ditto.
+
+Mon Apr 21 11:00:27 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * compile.c (defined_expr): capture exception during defined?
+ evaluation. a patch from wanabe <s.wanabe at gmail.com> in
+ [ruby-dev:34461]. [ruby-core:16010]
+
+Mon Apr 21 10:06:26 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * time.c: should include <errno.h> to refer to errno.
+
+Mon Apr 21 09:58:04 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * time.c (rb_strftime): check errno to detect strftime(3)'s error.
+ this is workaround for recent version of MSVCRT.
+ [ruby-dev:34456]
+
+Mon Apr 21 08:54:30 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * gc.c (ruby_xmalloc): use size_t for malloc argument instead of long.
+
+Sun Apr 20 21:00:21 2008 Akinori MUSHA <knu@iDaemons.org>
+
+ * enumerator.c, include/ruby/ruby.h: Export rb_cEnumerator.
+
+Sun Apr 20 20:47:50 2008 Akinori MUSHA <knu@iDaemons.org>
+
+ * enumerator.c: Resolve the method every time an enumeration
+ method is run, not once when the enumerator is initialized as it
+ was before, so that method_missing() and method (re)definition
+ afterwards are both in effect; pointed out in: [ruby-core:16441]
+
+Sun Apr 20 15:11:00 2008 Tanaka Akira <akr@fsij.org>
+
+ * io.c (copy_stream_rbuf_to_dst): removed.
+ (copy_stream_fallback_body): don't bypass write method.
+ (copy_stream_body): simplified.
+
+Sun Apr 20 15:01:25 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * vm_core.h (struct iseq_compile_data): moved label_no from
+ new_label_body().
+
+ * compile.c (iseq_set_exception_table): allocates catch_table only
+ when entries exist.
+
+ * compile.c (struct iseq_link_element, struct iseq_insn_data): made
+ enum for debuggers.
+
+Sun Apr 20 14:44:45 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * compile.c (iseq_compile_each): fix for splat in when and rescue.
+ a patch from wanabe <s.wanabe AT gmail.com> in [ruby-dev:34429].
+ [ruby-core:14537]
+
+Sun Apr 20 13:55:37 2008 Tanaka Akira <akr@fsij.org>
+
+ * io.c (copy_stream_fallback): write directly (bypassing write method)
+ if possible.
+
+Sun Apr 20 12:49:03 2008 Tanaka Akira <akr@fsij.org>
+
+ * io.c (copy_stream_fallback): read directly (bypassing readpartial
+ method) if possible.
+
+Sun Apr 20 04:45:13 2008 Tanaka Akira <akr@fsij.org>
+
+ * io.c (copy_stream_body): use readpartial and write method for
+ non-IOs such as StringIO and ARGF.
+
+Fri Apr 18 20:57:33 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * test/ruby/test_array.rb: add tests to achieve over 95% test coverage
+ of array.c.
+
+Fri Apr 18 17:37:48 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * gc.c (rb_gc_mark_locations): get rid of underflow.
+
+ * gc.c (mark_current_machine_context): check if the main thread stack
+ position may shrink under the initialized position. [ruby-core:16436]
+
+Thu Apr 17 22:20:52 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * enc/trans/utf_16_32.c (fun_so_to_utf_16be, fun_so_to_utf_16le): add
+ parentheses to remove warnings of gcc.
+
+ * io.c (rb_io_getc): remove unused variables.
+
+ * compile.c (NODE_NEXT, NODE_REDO): remove unused labels.
+
+ * ext/nkf/nkf.c (rb_nkf_convert): remove unused variables.
+
+ * ext/syck/rubyext.c (syck_resolver_initialize,
+ syck_resolver_detect_implicit, syck_emitter_emit): remove unused
+ variables.
+
+Thu Apr 17 20:12:47 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * test/ruby/test_rubyoptions.rb (test_search): enable some assertions.
+
+ * test/ruby/test_rubyoptions.rb: flunk message in win32.
+
+Thu Apr 17 16:07:12 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * test/ruby/test_rubyoptions.rb (ruby): run in C locale.
+
+ * test/ruby/test_rubyoptions.rb (test_encoding): --encoding does not
+ affect source code.
+
+Thu Apr 17 00:45:41 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * test/ruby/test_process.rb (test_rlimit_nofile): reset RLIMIT_NOFILE
+ before exit (for gcov).
+
+ * test/ruby/test_rubyoptions.rb: new tests for option of ruby
+ interpreter, to achieve over 95% test coverage of ruby.c.
+
+Wed Apr 16 02:40:44 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ruby.c (process_options): preludes and parser need to run in safe
+ level 0. [ruby-dev:34407]
+
+Wed Apr 16 02:26:27 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ruby.c (process_options): dln_find_file returns the pointer to a
+ static buffer, so should copy it. [ruby-dev:34409]
+
+Tue Apr 15 23:08:46 2008 Kouhei Sutou <kou@cozmixng.org>
+
+ * lib/xmlrpc/client.rb: fix cookie handling. [ruby-dev:34403]
+
+ * test/xmlrpc/test_cookie.rb: add a test for the above fix.
+
+Tue Apr 15 19:20:14 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * io.c: #undef rb_argv moved before #define.
+
+Tue Apr 15 18:02:17 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * include/ruby/intern.h (rb_argv): replaced with rb_get_argv().
+ [ruby-Bugs-19514]
+
+Tue Apr 15 17:10:59 2008 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
+
+ * lib/net/http.rb, lib/net/smtp.rb, lib/net/pop.rb: update
+ URLs of Japanese documents.
+
+Tue Apr 15 16:45:14 2008 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
+
+ * test/ruby/test_symbol.rb (TestSymbol#test_to_proc): add tests.
+
+Tue Apr 15 15:38:02 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * misc/ruby-mode.el (ruby-encoding-map): added shift-jis for older
+ versions.
+
+ * misc/ruby-mode.el (ruby-mode-set-encoding):
+ coding-system-to-mime-charset is not a standard function.
+ [carbon-emacs:795]
+ fix for the case that magic comment exists but coding system is
+ absent.
+
+ * misc/ruby-mode.el (ruby-mode): use write-contents-functions or
+ write-contents-hooks for older versions.
+
+Tue Apr 15 07:21:21 2008 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * complex.c (nucomp_div): [ruby-dev:34357]
+
+ * complex.c (nucomp_abs): use hypot.
+
+ * complex.c (nucomp_quo): do not force conversion.
+
+ * test/ruby/test_complex.rb: omitted some meaningless tests.
+
+Mon Apr 14 23:25:50 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * test/ruby/test_objectspace.rb: add a test for
+ ObjectSpace.count_objects.
+
+Mon Apr 14 22:44:24 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * file.c (SET_EXTERNAL_ENCODING): avoid call rb_enc_check() on
+ half-baked result string.
+
+ * re.c (rb_reg_search): make search reentrant. [ruby-dev:34223]
+
+ * test/ruby/test_parse.rb (TestParse::test_global_variable):
+ should preserve $& variable.
+
+Mon Apr 14 17:23:27 2008 Akinori MUSHA <knu@iDaemons.org>
+
+ * hash.c (rb_hash_delete_if, rb_hash_reject_bang, env_delete_if,
+ env_reject_bang): Return an enumerator if no block is given.
+
+Mon Apr 14 14:33:59 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * compile.c, compile.h (compile_debug): made runtime option.
+
+ * debug.c (ruby_debug_print_indent): returns if debug_level exceeds
+ the threshold.
+
+ * debug.c (ruby_debug_printf): printf to stderr.
+
+ * iseq.c (make_compile_option, make_compile_option_value): added
+ debug_level option.
+
+ * vm_core.h (rb_compile_option_t): added debug_level.
+
+ * vm_core.h (struct iseq_compile_data): added node_level.
+
+Mon Apr 14 12:52:25 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * gc.c (Init_stack): use ruby_init_stack. [ruby-dev:34350]
+
+ * gc.c (rb_objspace_t): packed globals. [ruby-dev:34348]
+
+ * gc.c (finalizers): removed. [ruby-dev:34349]
+
+Mon Apr 14 11:30:07 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * array.c (ary_new): new integer overflow check condition.
+ suggested by TOYOFUKU Chikanobu <nobu_toyofuku at nifty.com> in
+ [ruby-dev:34156].
+
+ * array.c (rb_ary_initialize): ditto.
+
+Mon Apr 14 00:51:40 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * test/ruby/test_parse.rb: add tests to achieve over 95% test coverage
+ of parse.y.
+
+Sun Apr 13 23:53:58 2008 Akinori MUSHA <knu@iDaemons.org>
+
+ * enum.c (enum_cycle): Make Enumerable#cycle do a finite loop when
+ the number of cycles is specified.
+
+ * array.c (rb_ary_cycle): Ditto for Array#cycle.
+
+Sun Apr 13 18:52:27 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * thread_pthread.c (lock_func): should not check interrupts in
+ blocking region. [ruby-dev:34378]
+
+Sat Apr 12 12:41:49 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (ruby_exec_node, ruby_run_node), ruby.c (process_options):
+ use iseq instead of NODE.
+
+ * gc.c (source_filenames): removed.
+
+ * include/ruby/intern.h, parse.y (yycompile, parser_mark, parser_free,
+ ripper_initialize): rb_source_filename() is no longer used.
+
+ * compile.c, compile.h (ERROR_ARGS), parse.y (node_newnode, fixpos,
+ parser_warn, e_option_supplied, warn_unless_e_option, range_op,
+ cond0): nd_file is no longer used.
+
+Sat Apr 12 12:17:31 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * prelude.rb (require_relative): move require_relative from
+ lib/require_relative.rb. [ruby-core:16356]
+
+ * lib/require_relative.rb: removed.
+
+Sat Apr 12 05:55:57 2008 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems*, test/rubygems*: Update to RubyGems 1.1.1 r1701.
+
+Sat Apr 12 03:13:38 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * file.c (file_expand_path): set external encoding.
+
+ * file.c (rb_file_s_basename, rb_file_s_dirname, rb_file_s_extname):
+ copy encoding.
+
+Fri Apr 11 17:35:06 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * enum.c (count_i): modified to shut warning up.
+
+Fri Apr 11 17:25:09 2008 Akinori MUSHA <knu@iDaemons.org>
+
+ * enum.c (count_i, count_iter_i, enum_count, enum_find_index):
+ Reduce code.
+
+Fri Apr 11 17:06:01 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * enum.c (find_index_i): modified to shut warning up.
+
+ * enum.c (find_index_iter_i): ditto.
+
+Fri Apr 11 16:44:43 2008 Akinori MUSHA <knu@iDaemons.org>
+
+ * enum.c (enum_find_index): Add support for find_index(obj);
+ [ruby-dev:34313].
+
+ * array.c (rb_ary_index): Define find_index as an alias to index.
+
+Fri Apr 11 16:42:33 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/yaml/store.rb (YAML::load): modified to support empty
+ database.
+
+Fri Apr 11 08:05:12 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * marshal.c (w_object): add volatile to avoid potential GC bug. a
+ patch from Tomoyuki Chikanaga <chikanag at nippon-control-system.co.jp>
+ in [ruby-dev:34312].
+
+Thu Apr 10 23:08:52 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/pstore.rb (PStore::dump, PStore::load): allow subclass
+ overriding. [ruby-dev:34305]
+
+ * lib/yaml/store.rb (YAML::Store::marshal_dump_supports_canonical_option?):
+ add a method to support faster PStore.
+
+Thu Apr 10 20:36:45 2008 Akinori MUSHA <knu@iDaemons.org>
+
+ * misc/rdebug.el, misc/README: Remove rdebug.el as per request
+ from the maintainer and mention the ruby-debug project at
+ RubyForge in README; bug#19043.
+
+Thu Apr 10 19:41:00 2008 Akinori MUSHA <knu@iDaemons.org>
+
+ * eval.c (rb_f_loop): Mention StopIteration in the document.
+
+Thu Apr 10 19:23:55 2008 Akinori MUSHA <knu@iDaemons.org>
+
+ * array.c (rb_ary_pop_m, rb_ary_shift_m): Update documents for
+ #pop() and #shift().
+
+ * array.c (rb_ary_slice_bang): Update document. Assigning
+ array[*args]= nil no longer removes elements.
+
+Thu Apr 10 16:58:44 2008 Tanaka Akira <akr@fsij.org>
+
+ * marshal.c (w_object): TYPE_USERDEF assigns id for ivars first.
+ [ruby-dev:34159] by nagachika.
+
+Thu Apr 10 15:03:47 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/generator.rb: removed obsolete library. [ruby-core:16233]
+
+ * test/test_generator.rb: removed as well. [ruby-dev:34306]
+
+ * lib/pstore.rb: replaced by Hongli Lai's faster version.
+
+Thu Apr 10 10:27:24 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * thread_pthread.c (native_sleep): sleep_cond is initialized at
+ creation. [ruby-Patches-19361].
+
+Wed Apr 9 14:43:26 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * thread.c (lock_func): optimized and checks for interrupt_flag.
+ based on a patch from Sylvain Joyeux in [ruby-Patches-19361] and
+ [ruby-Patches-19362].
+
+Wed Apr 9 12:12:01 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * test/ruby/test_thread.rb: new tests from Sylvain Joyeux in
+ [ruby-Patches-19361].
+
+Tue Apr 8 21:36:40 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * thread.c (rb_mutex_sleep): ensures to re-acquire at waking up.
+ [ruby-Patches-19361]
+
+Tue Apr 8 11:00:14 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/complex.rb: remove Math first before overwriting by CMath.
+
+Tue Apr 8 10:34:10 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * load.c (rb_require_safe): should check fname path after $SAFE is
+ properly set. [ruby-dev:34268]
+
+ * re.c (rb_reg_quote): should always copy the quoting string.
+ [ruby-core:16235]
+
+Tue Apr 8 10:30:29 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * common.mk (prelude.c): depends on enc/prelude.rb.
+
+ * enc/prelude.rb: fixed initial library names.
+
+Tue Apr 8 03:39:26 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * load.c (rb_provided): check expanded path for relative path
+ features, loading or loaded features are already expanded in 1.9.
+
+ * variable.c (rb_autoload_load): no needs to check if provided before
+ rb_require_safe. [ruby-dev:34266]
+
+Mon Apr 7 22:41:21 2008 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * numeric.c: cancelled recent changes (except to remove rdiv).
+
+ * bignum.c: ditto.
+
+ * bignum.c: added rb_big_idiv.
+
+Mon Apr 7 15:51:31 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * encoding.c (enc_init_db): moved to enc/encdb.c.
+
+ * transcode.c (init_transcoder_table): moved to enc/trans/transdb.c.
+
+ * enc/depend (enc/encdb.o enc/trans/transdb.o): depend on
+ corresponding headers.
+
+ * common.mk (COMMONOBJS): moved transcode.o from OBJS
+
+Mon Apr 7 12:26:32 2008 Koichi Sasada <ko1@atdot.net>
+
+ * bootstraptest/test_knownbug.rb: add a known-bug.
+
+Mon Apr 7 12:15:24 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * range.c (range_each_func): should not leave a variable
+ uninitialized, which could cause SEGV.
+
+ * range.c (range_step): removed duplicated and unreachable code.
+
+Mon Apr 7 02:12:27 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (rb_str_intern): need not to check if tainted.
+ [ruby-dev:34219]
+
+Sun Apr 6 09:45:00 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * dir.c (dir_tell): check if closed. [ruby-core:16223]
+
+Sat Apr 5 23:17:20 2008 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * lib/cmath.rb: new.
+
+ * lib/complex.rb: depends lib/cmath.rb.
+
+ * lib/rational.rb: added rdiv.
+
+ * complex.c: removed some math functions.
+
+Sat Apr 5 05:50:57 2008 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rdoc/parsers/parse_rb.rb: Fix uninitialized variable warnings.
+
+ * lib/rdoc/generator/html.rb: ditto.
+
+ * lib/rdoc/options.rb: Fix shadowed variable warning.
+
+ * lib/webrick/httprequest.rb: Fix redefined method warning.
+
+Sat Apr 5 02:13:52 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * bignum.c (rb_cmpint): moved from compar.c, to check bignum
+ zero.
+
+Fri Apr 4 23:24:06 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * re.c (rb_memsearch_qs): wrong boundary condition.
+
+ * re.c (rb_memsearch_qs_utf8): ditto.
+
+Fri Apr 4 14:11:36 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * re.c (rb_memsearch_qs): wrong boundary condition. a patch from
+ wanabe <s.wanabe AT gmail.com> in [ruby-dev:34248].
+
+Fri Apr 4 05:57:11 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/net/pop.rb (Net::POP3::do_finish): clear @n_mails and
+ @n_bytes as well. [ruby-core:16144]
+
+Fri Apr 4 01:59:30 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * range.c (range_step): add step for each iteration if begin and
+ end are numeric. [ruby-core:15990]
+
+Fri Apr 4 00:42:26 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * bignum.c (Init_Bignum): rdiv method removed. [ruby-dev:34242]
+
+ * complex.c (nucomp_quo): ditto.
+
+ * numeric.c (num_rdiv): ditto.
+
+ * rational.c (nurat_div): ditto.
+
+ * complex.c (nucomp_fdiv): fdiv implementation restored.
+
+ * numeric.c (num_quo): RDoc updated.
+
+Thu Apr 3 21:51:45 2008 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * complex.c (nucomp_int_check): function for DRY real check.
+
+ * complex.c (nucomp_{add,sub,mul,div,expt}): use rb_num_coerce_bin().
+
+Thu Apr 3 19:59:42 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * insns.def (defineclass): check if cbase is a class or a module.
+ [ruby-core:16118]
+
+Thu Apr 3 14:42:11 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * common.mk (INSNS): add insns_info.inc.
+
+ * common.mk (INSNS): make incs separately for nmake.
+
+Thu Apr 3 13:20:38 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * common.mk (endb.h, transdb.h, prelude.c): depend on $(PREP) and
+ check if really changed. [ruby-core:16102]
+
+ * Makefile.in, common.mk, configure.in, {win32,bcc32}/Makefile.sub
+ (MINIOBJS, ARCHMINIOBJS): separated.
+
+Thu Apr 3 09:00:45 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * compile.c (iseq_set_sequence, iseq_insns_unification,
+ insn_data_to_s_detail): constified.
+
+ * iseq.c (insn_operand_intern, ruby_iseq_disasm_insn): ditto.
+
+ * template/{insns_info,opt_sc,optunifs}.inc.tmpl: ditto.
+
+ * tool/instruction.rb (OptUnifsIncGenerator): ditto.
+
+Thu Apr 3 08:46:09 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * range.c (range_include): add RDoc to describe that comparison
+ for numeric is done according magnitude of values.
+ [ruby-core:15907]
+
+Wed Apr 2 22:29:35 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * rational.c (nurat_int_check): function for DRY integer check.
+
+ * numeric.c (num_rdiv): should always return rational number.
+
+ * rational.c (nurat_add, nurat_sub, nurat_mul, nurat_fdiv,
+ nurat_cmp): use rb_num_coerce_bin().
+
+ * rational.c (nurat_division): does / and rdiv.
+
+ * .gdbinit (rp): no longer use rb_p().
+
+Wed Apr 2 06:52:31 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * .gdbinit (rp): supports rational and complex numbers. it's
+ cheating since it uses rb_p().
+
+Wed Apr 2 06:24:06 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * include/ruby/node.h: add new constants for rb_call()'s scope.
+
+ * eval.c (iterate_method): use CALL_* scope constant to specify
+ proper scope value.
+
+ * eval.c (rb_each, rb_apply, rb_funcall, rb_funcall2, rb_funcall3):
+ ditto.
+
+Tue Apr 1 21:19:41 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * rational.c: need to include <float.h> just once.
+
+Tue Apr 1 16:40:21 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * bignum.c (big2dbl): more precise conversion at edge cases.
+ [ruby-dev:34195]
+
+Tue Apr 1 14:43:38 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in: get rid of empty expansion.
+
+ * configure.in: _setjmp is available but _longjmp is not on mingw.
+
+Tue Apr 1 09:41:22 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * {bcc,win}32/Makefile (config.h): need to define RUBY_SETJMP, etc.
+
+Tue Apr 1 07:31:58 2008 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems* test/rubygems*: Import RubyGems 1.1.0.
+
+Tue Apr 1 03:20:40 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (RUBY_SETJMP, RUBY_LONGJMP, RUBY_JMP_BUF): prefers
+ _setjmp over setjmp and sigsetjmp. [ruby-core:16023]
+ __builtin_setjmp cannot handle a variable.
+
+ * configure.in (--with-setjmp-type): new option to override the
+ default rule in the above.
+
+ * eval_intern.h (ruby_setjmp, ruby_longjmp), gc.c (rb_setjmp),
+ vm_core.h (rb_jmpbuf_t): use RUBY_SETJMP, RUBY_LONGJMP and
+ RUBY_JMP_BUF.
+
+Tue Apr 1 01:55:52 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/resolv.rb (Resolv::Config.default_config_hash): requires
+ win32/resolv to use Win32::Resolv. [ruby-dev:34138]
+
+Tue Apr 1 01:40:58 2008 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * complex.c: adopted the ruby's style.
+
+ * rational.c: ditto.
+
+Tue Apr 1 00:17:35 2008 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * rational.c: revert.
+
+Mon Mar 31 18:57:36 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * {bcc,win}32/Makefile.sub (config.h): define ssize_t.
+
+ * io.c (copy_stream_body): some platform don't have O_NOCTTY.
+
+Mon Mar 31 18:42:41 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in: check for ssize_t. [ruby-dev:34184]
+
+Mon Mar 31 14:45:00 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * numeric.c (num_quo): should convert its operand to Rational.
+
+ * rational.c (string_to_r_strict): should raise TypeError.
+
+ * bignum.c (Init_Bignum): should not redefine Bignum#div.
+ Numeric#div will do. [ruby-dev:34066]
+
+Mon Mar 31 04:05:15 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * io.c (io_getc): set coderange while getting characters.
+
+Sun Mar 30 23:16:49 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * proc.c (proc_dup): should copy is_lambda attribute as well.
+ [ruby-talk:296244]
+
+Sun Mar 30 15:33:29 2008 Tanaka Akira <akr@fsij.org>
+
+ * io.c: IO.copy_stream implemented. [ruby-dev:33843]
+
+ * thread.c (rb_fd_select): new function.
+
+ * configure.in (sys/sendfile.h): check the header file.
+ (sendfile): check the function.
+ (pread): check the function.
+
+Sat Mar 29 14:18:41 2008 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/*: full update Ruby/Tk to support Ruby(1.9|1.8) and Tc/Tk8.5.
+
+ * ext/tk/lib/tkextlib/tile.rb: [incompatible] remove TileWidgets'
+ instate/state/identify method to avoid the conflict with standard
+ widget options. Those methods are renamed to ttk_instate/ttk_state/
+ ttk_identify (tile_instate/tile_state/tile_identify are available
+ too). Although I don't recommend, if you really need old methods,
+ please define "Tk::USE_OBSOLETE_TILE_STATE_METHOD = true" before
+ "require 'tkextlib/tile'".
+
+ * ext/tk/lib/tkextlib/tile.rb: "Tk::Tile::__Import_Tile_Widgets__!"
+ is obsolete. It outputs warning. To control default widget set,
+ use "Tk.default_widget_set = :Ttk".
+
+ * ext/tk/lib/tk.rb: __IGNORE_UNKNOWN_CONFIGURE_OPTION__ method and
+ __set_IGNORE_UNKNOWN_CONFIGURE_OPTION__!(mode) method are defined
+ as module methods of TkConfigMethod. It may help users to wrap old
+ Ruby/Tk scripts (use standard widgets) to force to use Ttk widgets.
+ Ttk widgets don't have some options of standard widgets which are
+ control the view of widgets. When set ignore-mode true, configure
+ method tries to ignore such unknown options with no exception.
+ Of course, it may raise other troubles on the GUI design.
+ So, those are a little danger methods.
+
+ * ext/tk/lib/tk/itemconfig.rb: __IGNORE_UNKNOWN_CONFIGURE_OPTION__
+ method and __set_IGNORE_UNKNOWN_CONFIGURE_OPTION__!(mode) method
+ are defined as module methods of TkItemConfigMethod as the same
+ purpose as TkConfigMethod's ones.
+
+ * ext/tk/sample/ttk_wrapper.rb: A new example. This is a tool for
+ wrapping old Ruby/Tk scripts (which use standard widgets) to use
+ Ttk (Tile) widgets as default.
+
+ * ext/tk/sample/tkextlib/tile/demo.rb: use ttk_instate/ttk_state
+ method instead of instate/state method.
+
+ * ext/tk/lib/tk/root, ext/tk/lib/tk/namespace.rb,
+ ext/tk/lib/tk/text.rb, ext/tk/lib/tkextlib/*: some 'instance_eval's
+ are replaced to "instance_exec(self)".
+
+ * ext/tk/lib/tk/event.rb: bug fix on KEY_TBL and PROC_TBL (?x is not
+ a character code on Ruby1.9).
+
+ * ext/tk/lib/tk/variable.rb: support new style of operation argument
+ on Tcl/Tk's 'trace' command for variables.
+
+ * ext/tk/sample/demos-jp/widget, ext/tk/sample/demos-en/widget: bug fix
+
+ * ext/tk/sample/demos-jp/textpeer.rb,
+ ext/tk/sample/demos-en/textpeer.rb: new widget demo.
+
+ * ext/tk/tcltklib.c: decrease SEGV troubles (probably)
+
+ * ext/tk/lib/tk.rb: remove Thread.critical access if Ruby1.9
+
+ * ext/tk/lib/tk/multi-tk.rb: support Ruby1.9 (probably)
+
+ * ext/tk/lib/tkextlib/tile.rb: add method to define Tcl/Tk command
+ to make Tcl/Tk theme sources (based on different version of Tile
+ extension) available.
+ (Tk::Tile::__define_LoadImages_proc_for_compatibility__)
+
+ * ext/tk/lib/tk.rb, ext/tk/lib/tk/wm.rb: support dockable frames
+ (Tcl/Tk8.5 feature). 'wm' command can treat many kinds of widgets
+ as toplevel widgets.
+
+ * ext/tk/lib/tkextlib/tile/style.rb: ditto.
+ (Tk::Tile::Style.__define_wrapper_proc_for_compatibility__)
+
+ * ext/tk/lib/tk/font.rb: add actual_hash and metrics_hash to get
+ properties as a hash. metrics_hash method returns a boolean value
+ for 'fixed' option. But metrics method returns numeric value
+ (0 or 1) for 'fixed' option, because of backward compatibility.
+
+ * ext/tk/lib/tk/timer.rb: sometimes fail to set callback procedure.
+
+ * ext/tk/lib/tk.rb: add Tk.sleep and Tk.wakeup method. Tk.sleep
+ doesn't block the eventloop. It will be better to use the method
+ in event callbacks.
+
+ * ext/tk/sample/tksleep_sample.rb: sample script about Tk.sleep.
+
+Thu Mar 27 20:44:22 2008 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * complex.c (f_lcm): removed.
+
+ * rational.c (rb_lcm, rb_gcdlcm): added.
+
+ * lib/complex.rb (gcd, lcm, gcdlcm): removed.
+
+ * lib/rational.rb (gcd, lcm, gcdlcm): ditto.
+
+Wed Mar 26 18:11:26 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * variable.c (rb_mod_constants): rdoc updated. a patch from
+ Florian Gilcher <flo AT andersground.net> in [ruby-core:16009].
+
+Wed Mar 26 00:55:28 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * test/ruby/test_rand.rb: add tests to achieve over 95% test coverage
+ of random.c.
+
+Wed Mar 26 00:28:55 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * test/ruby/test_rational.rb: add tests to achieve over 90% test
+ coverage of rational.c.
+
+ * test/ruby/test_complex.rb: ditto for complex.c.
+
+Tue Mar 25 19:34:05 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * bootstraptest/test_knownbug.rb: add tests. [ruby-dev:34128]
+
+Tue Mar 25 19:09:04 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * array.c (ary_new): fix size check. [ruby-dev:34123]
+
+ * array.c (rb_ary_take, rb_ary_drop): check negative size and use
+ NUM2LONG instead of FIX2LONG. [ruby-dev:34123]
+
+ * enum.c (enum_take, enum_drop): check negative size.
+
+ * test/ruby/test_array.rb: add tests for above.
+
+Tue Mar 25 16:32:56 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ruby.c (proc_options): checks if the word is empty.
+
+ * ruby.c (process_options): typo fixed. [ruby-dev:34122]
+
+Tue Mar 25 15:26:30 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * compile.c (defined_expr): false short-circuit destination label may
+ be needed. [ruby-talk:295296]
+
+ * compile.c (iseq_compile_each): put nil if false short-circuit is
+ created.
+
+ * compile.c (compile_massign_opt): no need to use alloca.
+
+Mon Mar 24 19:23:52 2008 Akinori MUSHA <knu@iDaemons.org>
+
+ * parse.y (debug_lines): Always prepare a new array for each
+ file's SCRIPT_LINES__ storage, instead of appending source lines
+ every time a file is re-loaded; submitted by Rocky Bernstein in
+ #18517.
+
+Mon Mar 24 10:25:54 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in: sitearch should use target_cpu. [ruby-core:15986]
+
+Sun Mar 23 02:51:57 2008 Tanaka Akira <akr@fsij.org>
+
+ * process.c (rlimit_resource_value): use NUM2RLIM.
+
+Sun Mar 23 02:28:01 2008 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * complex.c: fixed. [ruby-dev:34109]
+
+ * rational.c: ditto.
+
+Fri Mar 21 21:32:25 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * io.c (rb_f_gets, rb_f_readline, rb_f_readlines): delegates to ARGF
+ as well as puts and putc. [ruby-dev:34100]
+
+Fri Mar 21 21:26:52 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/resolv.rb (Resolv::Hosts): should not use win32/resolv on cygwin.
+ [ruby-dev:29945], [ruby-dev:34095]
+
+ * lib/win32/registry.rb (Win32::Registry.expand_environ): try upcased
+ name too for cygwin. [ruby-dev:29945]
+
+ * lib/win32/resolv.rb (Win32::Resolv.get_hosts_path): use expand_path.
+
+Fri Mar 21 21:10:00 2008 Akinori MUSHA <knu@iDaemons.org>
+
+ * lib/ipaddr.rb: Say that I am the current maintainer.
+
+ * lib/set.rb: Ditto.
+
+ * lib/shellwords.rb: Ditto.
+
+ * ext/syslog/syslog.txt: Ditto.
+
+Fri Mar 21 09:24:28 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * instruby.rb (open_for_install): write block result and rewrite only
+ if changed from existing file.
+
+Fri Mar 21 08:29:33 2008 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * rational.c (nurat_to_f): rearrangement.
+
+Fri Mar 21 06:44:59 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * rational.c (nurat_to_f): C99.
+
+Fri Mar 21 01:40:27 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * complex.c (nucomp_sub, nucomp_expt): call corresponding functions.
+
+Fri Mar 21 01:21:43 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * missing/tgamma.c: include config.h before math.h. [ruby-dev:34075]
+
+Thu Mar 20 21:46:33 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * io.c (argf_getline): use receiver.
+
+Thu Mar 20 21:20:19 2008 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * rational.c: some improvements (include Shin-ichiro HARA's
+ effort).
+
+ * complex.c: some improvements.
+
+ * test/ruby/test_rational2.rb: new.
+
+Thu Mar 20 00:21:12 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * io.c (argf_initialize_copy): get rid of segfault.
+
+ * io.c (argf_tell, argf_seek_m, argf_set_pos, argf_rewind,
+ argf_fileno, argf_to_io, argf_eofl, argf_getc, argf_getbyte,
+ argf_readchar, argf_readbyte, argf_each_line): use receiver.
+
+Wed Mar 19 23:52:41 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * io.c (rb_io_putc, rb_io_puts): output directly if the receiver is
+ rb_stdout to get rid of infinite recursion. [ruby-dev:34059]
+
+Wed Mar 19 22:27:41 2008 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * rational.c: added rb_gcd.
+
+ * complex.c: use rb_gcd.
+
+Wed Mar 19 18:37:00 2008 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * complex.c: revert.
+
+ * rational.c: revert.
+
+Wed Mar 19 17:31:20 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval_intern.h (TH_EXEC_TAG): need not to FLUSH_REGISTER_WINDOWS.
+ [ruby-core:15871], [ruby-dev:34088]
+
+Wed Mar 19 14:53:03 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * complex.c (nucomp_to_s, nucomp_inspect): get rid of making
+ unnecessary intermediate objects.
+
+ * complex.c (make_patterns, string_to_c): do not treat successive
+ underscores as a part of numeric like as literals. [ruby-dev:34085]
+
+ * rational.c (make_patterns, string_to_r): ditto.
+
+Wed Mar 19 14:36:40 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * bignum.c (rb_cstr_to_inum): treat successive underscores as
+ nondigit. [ruby-dev:34089]
+
+Wed Mar 19 14:08:47 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * encoding.c (enc_check_encoding): should not load autoloaded encoding
+ directly, instead use rb_enc_find_index() which deal with alias and
+ replica. [ruby-core:15957]
+
+Wed Mar 19 11:49:47 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * regint.h (include): include ruby.h instead of defines.h and config.h.
+
+Wed Mar 19 10:17:12 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * regint.h (CHECK_INTERRUPT_IN_MATCH_AT): add interrupt check
+ during match. [ruby-talk:295002]
+
+Tue Mar 18 16:24:53 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (literal_concat_gen): bail out at different encoding.
+
+Tue Mar 18 04:00:27 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * re.c (rb_memsearch_ss): simple shift search.
+
+ * re.c (rb_memsearch_qs): quick search.
+
+ * re.c (rb_memsearch_qs_utf8): quick search for UTF-8 string.
+
+ * re.c (rb_memsearch_qs_utf8_hash): hash functions for above.
+
+ * re.c (rb_memsearch): use above functions.
+
+ * string.c (rb_str_index): give enc to rb_memsearch.
+
+ * include/ruby/intern.h (rb_memsearch): move to encoding.h.
+
+ * include/ruby/encoding.h (rb_memsearch): move from intern.h.
+
+ * common.mk (PREP): add dependency.
+
+Mon Mar 17 22:23:54 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * array.c (rb_ary_take, rb_ary_take_while, rb_ary_drop,
+ rb_ary_drop_while): new methods. [ruby-dev:34067]
+
+ * test/ruby/test_array.rb: add tests for above.
+
+Mon Mar 17 17:11:13 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * misc/ruby-mode.el (ruby-mode): should use `run-mode-hooks' instead
+ of calling `run-hooks' directly to run the mode hook. patch from
+ Chiyuan Zhang <pluskid AT gmail.com> in [ruby-core:15915]
+
+Mon Mar 17 16:41:08 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in: unset GREP_OPTIONS. [ruby-core:15918]
+
+Sun Mar 16 18:07:07 2008 Martin Duerst <duerst@it.aoyama.ac.jp>
+
+ * enc/trans/utf_16_32.c: bug fix (some invalid UTF-8 sequences
+ were legal)
+
+ * test/ruby/test_transcode.rb: test for above bug
+
+Sun Mar 16 17:28:07 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * common.mk (LIBRUBY_SO): add dependency to $(BUILTIN_ENCOBJS).
+
+Sun Mar 16 08:51:41 2008 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * include/ruby/intern.h: added some declarations.
+
+ * include/ruby/ruby.h: ditto.
+
+ * common.mk: added some entries.
+
+ * configure.in: added a check for signbit.
+
+ * lib/complex.rb: nearly all of core definitions have been removed.
+
+ * lib/rational.rb: ditto.
+
+ * lib/mathn.rb: some trivial adjustments.
+
+ * complex.c: new.
+
+ * rational.c: ditto.
+
+ * numeric.c (flo_{quo,rdiv}, fix_fdiv): added.
+
+ * numeric.c ({num,int}_{numerator,denominator}): ditto.
+
+ * bignum.c (rb_big_fdiv): ditto.
+
+ * numeric.c (fix_{quo,pow}): now may yield rational number.
+
+ * bignum.c (rb_big_{quo,pow}): ditto.
+
+ * numeric.c (rb_{int,flo}_induced_from): now can accept rational.
+
+ * gc.c (gc_mark_children, obj_free): now detects complex and rational.
+
+ * inits.c (rb_call_inits): now calls Init_{Complex,Rational}.
+
+ * test/ruby/test_complex.rb: new.
+
+ * test/ruby/test_rational.rb: ditto.
+
+Sat Mar 15 17:48:48 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * encoding.c (rb_enc_associate_index): pass unnecessary enc_capable().
+
+ * string.c (rb_str_cmp): reduce invocation of rb_enc_compatible().
+
+Fri Mar 14 17:04:43 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * include/ruby/ruby.h (inttypes.h): includes always if available.
+
+ * string.c, ext/digest/defs.h: moved inttypes.h to ruby.h.
+
+Fri Mar 14 16:59:23 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (RUBY_LIB_PREFIX): fix for prefix.
+
+Fri Mar 14 16:35:11 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/cgi.rb (CGI::Cookie::initialize): performance patch from
+ Makoto Kuwata <kwa@kuwata-lab.com> in [ruby-dev:34048].
+
+Fri Mar 14 15:49:05 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (RUBY_LIB_PREFIX): use libdir.
+
+Fri Mar 14 14:24:15 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/digest/defs.h: inttypes.h is still needed.
+
+Fri Mar 14 11:34:12 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * {bcc,win}32/Makefile.sub: follow below changes.
+
+Fri Mar 14 11:24:30 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * misc/ruby-mode.el (ruby-encoding-map, ruby-use-encoding-map): added
+ to customize.
+
+Fri Mar 14 10:37:15 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * configure.in (int8_t, uint8_t, int16_t, uint16_t int32_t,
+ uint32_t int64_t, uint64_t, int128_t, uint128_t,
+ intptr_t, uintptr_t): check if defined.
+
+ * win32/Makefile.sub: follow configure.in.
+
+ * ext/digest/defs.h: remove checks for uint8_t, uint32_t and uint64_t.
+
+Fri Mar 14 10:12:29 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (RUBY_CHECK_VARTYPE): should not indent preprocessor
+ directives.
+
+Fri Mar 14 10:03:59 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * string.c (UNALIGNED_WORD_ACCESS): IA64 cannot access unaligned word.
+
+Thu Mar 13 21:00:50 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * array.c (rb_ary_slice_bang): should not use rb_ary_subseq()
+ which shares internal pointer. splice modifies the receiver
+ right after subseq. [ruby-dev:34005]
+
+ * bootstraptest/test_struct.rb: some test moved from test to shut
+ warning up.
+
+Thu Mar 13 19:42:43 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * {bcc,win}32/Makefile.sub (config.h): define uint32_t.
+
+Thu Mar 13 14:14:19 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * trunk/configure.in (AC_CHECK_HEADERS): stdint.h is not needed to
+ check.
+
+ * trunk/configure.in (rb_cv_type_uint32_t): unquoted. [ruby-dev:34030]
+
+ * trunk/string.c (hash): use inttypes.h instead of stdint.h.
+
+Thu Mar 13 10:42:46 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * numeric.c (fix_divmod): should return integer division. [ruby-dev:34006]
+
+ * enum.c (zip_ary): wrong boundary condition.
+
+ * test/ruby/test_numeric.rb (TestNumeric::test_num2long): bit-and
+ should not raise RangeError.
+
+Thu Mar 13 03:12:48 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/irb/cmd/help.rb: should be updated for new ri structure.
+ [ruby-core:15825]
+
+ * lib/rdoc/ri/driver.rb (RDoc::initialize): allow options to be optional.
+
+ * lib/rdoc/ri/driver.rb (RDoc::class_cache): map_dirs may be
+ empty.
+
+ * lib/rdoc/ri/driver.rb (RDoc::get_info_for): revive get_info_for
+ method. maybe broken.
+
+ * lib/rdoc/ri/util.rb (RDoc::initialize): should not use RiError
+ no more.
+
+Thu Mar 13 01:45:25 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (stdint.h): check if presence.
+
+ * configure.in (uint32_t): check if defined.
+
+ * string.c (hash): fix for portability. [ruby-dev:34020]
+
+Wed Mar 12 17:33:34 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * object.c (rb_cstr_to_dbl): fix for a mere underscore.
+
+Wed Mar 12 14:47:07 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval_intern.h (rb_thread_raised_set): use generic flags.
+
+ * eval.c (rb_longjmp): clear all raised flags.
+
+ * eval.c (stack_check): leave clearing flag to rb_longjmp.
+
+ * gc.c (rb_memerror): use thread raised flag instead of static flag.
+
+Tue Mar 11 23:38:39 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * array.c (rb_ary_combination): argument check before creating
+ Enumerator.
+
+ * array.c (rb_ary_permutation): ditto.
+
+ * enum.c (enum_zip): optimize if all arguments are arrays.
+
+Tue Mar 11 19:48:09 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * numeric.c (fix_coerce): try conversion before type check.
+ [ruby-core:15838]
+
+Tue Mar 11 12:39:53 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * common.mk (clean-local): WINMAINOBJ is Windows specific.
+
+Tue Mar 11 10:19:10 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (hash): replaced by MurmurHash described in
+ <http://murmurhash.googlepages.com/>.
+
+Tue Mar 11 09:52:49 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (rb_str_comparable): empty strings in any encoding are
+ compatible each other.
+
+Tue Mar 11 00:46:29 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ruby.c (usage): remove some unimportant lines to fit -h message
+ in a page. [ruby-dev:34018]
+
+Mon Mar 10 17:11:00 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (rb_f_local_variables): local_variables should return an
+ array of symbols. [ruby-dev:34008]
+
+ * vm.c (collect_local_variables_in_env): ditto.
+
+Mon Mar 10 15:53:48 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * version.c (MKSTR): make US-ASCII. [ruby-dev:34010]
+
+Mon Mar 10 02:08:21 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * string.c (rb_str_index): if t == s + pos, the character beginning
+ from s + pos is valid.
+
+Sun Mar 9 13:51:21 2008 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rdoc/generator.rb: Restore missing line to #params. Patch by
+ Lincoln Stoll <lstoll at lstoll.net>
+
+Sun Mar 9 09:52:00 2008 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rdoc/code_objects.rb: Remove debugging Kernel#p. Patch by
+ Lincoln Stoll <lstoll at lstoll.net>
+ * lib/rdoc/generator/html.rb: Fully qualify AllReferences. Patch by
+ Lincoln Stoll <lstoll at lstoll.net>
+ * lib/rdoc/ri/writer.rb: Fix 1.8 backwards compatibility.
+
+Sat Mar 8 18:50:57 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * file.c (isdirsep): backslash is valid path separator on cygwin too.
+
+Sat Mar 8 06:53:48 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * string.c (search_nonascii): Use VALUE instead of unsigned long
+ because VALUE can be the fastest unsigned integer type.
+ On LLP64 unsigned long isn't the fastest.
+ * string.c (str_strlen): ditto.
+ * string.c (str_utf8_nth): ditto.
+ * string.c (count_utf8_lead_bytes_with_ulong): ditto.
+
+ * string.c (count_utf8_lead_bytes_with_word): renamed.
+
+Fri Mar 7 21:27:43 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * bignum.c: fix indent.
+
+Fri Mar 7 21:12:19 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * bignum.c (power_cache_init, power_cache_get_power0, Init_Bignum):
+ delayed initializing power cache per base. [ruby-dev:34003]
+
+Fri Mar 7 20:30:05 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * cont.c (cont_restore_0): fixed typo. [ruby-core:15821]
+
+Fri Mar 7 19:56:10 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/mkmf.rb: rdoc added. [ruby-Patches-9762]
+
+Thu Mar 6 17:26:53 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * sprintf.c (rb_str_format): space flag is in effect for Inf/NaN too.
+ [ruby-dev:34002]
+
+Thu Mar 6 15:44:20 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * sprintf.c (rb_str_format): casting double to long is undefined
+ if the integer part of double is out of the range of long.
+
+Thu Mar 6 15:11:40 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * sprintf.c (rb_str_format): ignore 0 flag for NaN and Inf.
+ [ruby-dev:33994]
+
+Thu Mar 6 15:05:25 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * {bcc32,win32}/Makefile.sub (RUNRUBY): use $(PROGRAM) instead of
+ ruby$(EXEEXT).
+ suggested by KIMURA Koichi <kimura.koichi at canon.co.jp>.
+ [ruby-dev:34000]
+
+Thu Mar 6 14:46:08 2008 Tanaka Akira <akr@fsij.org>
+
+ * missing/lgamma_r.c (loggamma): return 0 for 1 and 2.
+
+ * test/ruby/test_math.rb: accept errors by functions under missing/.
+
+Thu Mar 6 14:29:44 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * transcode.c (rb_str_transcode_bang): set coderange.
+
+ * transcode.c (rb_str_transcode): use rb_str_transcode_bang.
+
+Thu Mar 6 14:00:10 2008 Tanaka Akira <akr@fsij.org>
+
+ * include/ruby/missing.h (cbrt): add declaration.
+
+Thu Mar 6 11:14:14 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * misc/ruby-mode.el (ruby-add-log-current-method): use ruby style
+ method name format.
+
+Thu Mar 6 11:12:29 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * sprintf.c (rb_str_format): no need of loop.
+
+Thu Mar 6 08:30:42 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * object.c (rb_mod_freeze): call rb_class_name() directly.
+ [ruby-core:15802]
+
+Thu Mar 6 04:32:06 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * string.c (count_utf8_lead_bytes_with_ulong): fix shift size.
+ [ruby-dev:33993]
+
+ * string.c (str_utf8_nth) fix wrong counting.
+
+Thu Mar 6 00:34:00 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * sprintf.c (rb_str_format): size_t returned from strlen() can be
+ unsigned.
+
+Thu Mar 6 00:31:39 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * struct.c (make_struct): preserve encoding of struct name.
+
+Wed Mar 5 22:49:20 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * string.c (is_utf8_lead_byte, count_utf8_lead_bytes_with_ulong):
+ defined for UTF-8 optimization.
+
+ * string.c (str_strlen): use is_utf8_lead_byte and
+ count_utf8_lead_bytes_with_ulong.
+
+ * string.c (str_utf8_nth) ditto.
+
+Wed Mar 5 17:53:01 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * file.c (rb_file_flock): returns false on EAGAIN if non-blocking.
+ [ruby-core:15795]
+
+Wed Mar 5 17:43:43 2008 Martin Duerst <duerst@it.aoyama.ac.jp>
+
+ * transcode.c (transcode_loop): Adjusted detection of invalid
+ (ill-formed) UTF-8 sequences. Fixing potential security issue, see
+ http://www.unicode.org/versions/Unicode5.1.0/#Notable_Changes.
+
+ * test/ruby/test_transcode.rb: Added two tests for above fix.
+
+Wed Mar 5 14:00:49 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * numeric.c (fix_to_s): avoid rb_scan_args() when no argument
+ given.
+ * bignum.c (rb_big_to_s): ditto.
+ * enum.c (enum_first): ditto.
+ * eval_jump.c (rb_f_catch): ditto.
+ * io.c (rb_obj_display): ditto.
+ * class.c (rb_obj_singleton_methods): ditto.
+ * object.c (rb_class_initialize): ditto.
+ * random.c (rb_f_srand): ditto.
+ * range.c (range_step): ditto.
+ * re.c (rb_reg_s_last_match): ditto.
+ * string.c (rb_str_to_i): ditto.
+ * string.c (rb_str_each_line): ditto.
+ * string.c (rb_str_chomp_bang): ditto.
+ * string.c (rb_str_sum): ditto.
+
+ * string.c (str_modifiable): declare inline.
+ * string.c (str_independent): ditto.
+
+Wed Mar 5 11:50:32 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/debug.rb: require 'continuation' to implement "restart"
+ command. [ruby-dev:33992]
+
+ * lib/debug.rb (Context::debug_command): remove local variable
+ shadowing to shut up warnings. [ruby-dev:33992]
+
+ * lib/debug.rb (Context::display_list): ditto.
+
+ * lib/debug.rb (Context::resume): ditto.
+
+ * lib/debug.rb (Context::get_thread): no longer use #index for Hash.
+
+Tue Mar 4 21:35:59 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/irb.rb (IRB::Irb::eval_input): SyntaxError should not be
+ considered as IRB bug. [ruby-dev:33991]
+
+ * lib/irb/workspace.rb (IRB::WorkSpace::filter_backtrace): should
+ filter 'irb.rb' as well for context mode 2 and 3.
+
+Tue Mar 4 19:10:43 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * hash.c (rb_hash_aset): should not copy key string when
+ compare_by_identity is set. [ruby-dev:33604]
+
+ * hash.c (hash_equal): two hash tables are different when internal
+ comparison table differ. [ruby-dev:33989]
+
+Tue Mar 4 16:29:06 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * parse.y (parser_yylex): disallow non digits '0o' expression.
+
+Tue Mar 4 14:35:12 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * io.c (open_key_args): use rb_io_open_with_args instead of rb_f_open.
+ [ruby-core:15763]
+
+Tue Mar 4 13:41:46 2008 Tanaka Akira <akr@fsij.org>
+
+ * gc.c (add_heap): fix previous change. [ruby-dev:33988]
+
+Tue Mar 4 10:21:03 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * gc.c (add_heap): use binary search to find the place to insert the
+ new heap slot. [ruby-dev:33983]
+
+Tue Mar 4 05:30:31 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * io.c (open_key_args): use rb_io_open instead of rb_f_open.
+ [ruby-core:15746]
+
+Mon Mar 3 23:28:37 2008 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * lib/webrick/httpservlet/filehandler.rb: should normalize path
+ separators in path_info to prevent directory traversal
+ attacks on DOSISH platforms.
+ reported by Digital Security Research Group [DSECRG-08-026].
+
+ * lib/webrick/httpservlet/filehandler.rb: pathnames which have
+ not to be published should be checked case-insensitively.
+
+Mon Mar 3 17:25:45 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * gc.c (add_heap): sort heaps array in ascending order to use
+ binary search.
+
+ * gc.c (is_pointer_to_heap): use binary search to identify object
+ in heaps. works better when number of heap segments grow big.
+
+Mon Mar 3 17:15:09 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * re.c (rb_reg_regsub): remove too strict encoding check.
+ [ruby-dev:33966]
+
+Mon Mar 3 16:14:24 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * hash.c (rb_any_hash): shrinks all results in Fixnum range.
+ [ruby-core:15713]
+
+Sun Mar 2 23:03:59 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * io.c (rb_io_ungetc): reduce redundant call.
+
+Sun Mar 2 10:13:12 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ruby.c (load_file): parse shebang in us-ascii. a patch from
+ sheepman <sheepman AT sheepman.sakura.ne.jp> in [ruby-dev:33955]
+
+Sun Mar 2 00:08:10 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * object.c (rb_cstr_to_dbl): check for successive underscores.
+ [ruby-dev:33952]
+
+Sat Mar 1 17:59:01 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * io.c (struct argf): packed ARGF stuffs.
+
+ * ruby.c (proc_options): use ruby_set_inplace_mode().
+
+Sat Mar 1 17:51:34 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/test/unit/collector/dir.rb (recursive_collect): do not always
+ include all test_*.rb.
+
+Sat Mar 1 14:14:17 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * development snapshot 1.9.0-1 released.
+
+Sat Mar 1 13:46:26 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * tool/make-snapshot: make prereq uses MINIRUBY.
+
+ * tool/make-snapshot: allow packaging like 1.9.0-1 by second
+ command-line argument.
+
+Sat Mar 1 13:11:03 2008 Tanaka Akira <akr@fsij.org>
+
+ * test/ruby/allpairs.rb: new file for all pairs method.
+
+ * test/ruby/test_m17n_comb.rb: use allpairs.rb to reduce test cases.
+
+ * test/ruby/test_sprintf_comb.rb: ditto.
+
+Sat Mar 1 12:34:21 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (sym_inspect): use rb_str_inspect() instead of
+ rb_str_dump(). [ruby-dev:33946]
+
+Sat Mar 1 12:15:42 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval_method.c (rb_get_method_body): ent->method may be freed by
+ GC. [ruby-dev:31819]
+
+ * thread.c (remove_event_hook): should not access freed memory.
+ [ruby-dev:31820]
+
+Sat Mar 1 10:31:19 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * io.c (read_all, rb_io_getline_fast): encoding is io_input_encoding.
+
+Sat Mar 1 10:09:40 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * string.c (tr_setup_table, rb_str_split_m, rb_str_chomp_bang):
+ simplified with rb_enc_ascget(). [ruby-dev:33944]
+
+Sat Mar 1 10:01:30 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (rb_str_coderange_scan_restartable): should not return
+ offset in the middle of a character.
+
+ * string.c (rb_str_coderange_scan_restartable): should not return
+ invalid cr value.
+
+Sat Mar 1 09:36:08 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * sprintf.c (rb_str_format): "%#.0o" should keep prefix where
+ "%#.0x" should not.
+
+Sat Mar 1 02:35:08 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * bignum.c (big2str_find_n1): check integer overflow.
+
+Sat Mar 1 00:29:07 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * encoding.c (rb_enc_dummy_p): bootstrap encodings can not be dummy.
+
+ * encoding.c (rb_enc_ascget): no needs to call rb_enc_precise_mbclen()
+ twice.
+
+Fri Feb 29 23:14:38 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * test/ruby/test_m17n_comb.rb (TestM17NComb::test_str_chomp): test
+ updated.
+
+Fri Feb 29 20:58:09 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * test/ruby/test_iterator.rb (TestIterator::test_enumerator):
+ adjust test for zip behavior reversion.
+
+Fri Feb 29 20:25:07 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (rb_str_chomp_bang): now works on UTF-16.
+
+ * string.c (tr_setup_table): negation should work on non ASCII
+ compatible strings as well.
+
+ * string.c (rb_str_split_m): awk split should work on non ASCII
+ compatible strings as well.
+
+Fri Feb 29 18:08:43 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * time.c (time_strftime): format should be ascii compatible.
+
+ * parse.y (rb_intern3): non ASCII compatible symbols.
+
+ * re.c (rb_reg_regsub): add encoding check.
+
+ * string.c (rb_str_chomp_bang): ditto.
+
+ * test/ruby/test_utf16.rb (TestUTF16::test_chomp): raises exception.
+
+Fri Feb 29 15:16:31 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (rb_str_rpartition): calculation was done in byte indexing.
+
+ * test/ruby/test_m17n_comb.rb (TestM17NComb::test_str_start_with):
+ allow start_with? matching on broken strings.
+
+Fri Feb 29 15:12:43 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (opt_block_param): command can start just after block param
+ definition. [ruby-list:44479]
+
+Fri Feb 29 03:22:19 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * test/ruby/test_time.rb (test_readers): fix typo.
+ (test_strftime): "UTC" is also ok for time.gmtime.strftime("%Z").
+
+Fri Feb 29 02:50:07 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * string.c (str_new): remove encoding assumption of empty string.
+
+ * hash.c ( rb_f_getenv, env_fetch, env_inspect): result of ENV should
+ be always ASCII-8BIT.
+
+ * object.c (nil_to_s): nil.to_s should be US-ASCII.
+
+Fri Feb 29 02:24:22 2008 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/tk.rb: forgot to update RELEASE_DATE
+
+ * ext/tk/lib/tk.rb, ext/tk/lib/tk/text.rb,
+ ext/tk/lib/tkextlib/iwidgets/scrolledtext.rb: remove adhoc check
+ of Ruby's features (use existence of some classes instead of
+ comparing with RUBY_VERSION)
+
+ * ext/tk/lib/tk/root.rb, ext/tk/lib/tk/autoload.rb: make TkRoot
+ (Tk::Root) unswitchable
+
+ * ext/tk/lib/multi-tk.rb: partial bug fix (still not work!!)
+
+Thu Feb 28 23:37:12 2008 Tanaka Akira <akr@fsij.org>
+
+ * lib/open-uri.rb (OpenURI::Meta#meta_setup_encoding): use ASCII-8BIT
+ for charset unspecified non-text data.
+
+Thu Feb 28 22:19:14 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * encoding.c (enc_capable): IMMEDIATE_P doesn't include Qnil and Qfalse.
+ use SPECIAL_CONST_P.
+
+Thu Feb 28 19:45:52 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * encoding.c (enc_find): check type of argument and convert to String
+ if it is StringValue. [ruby-cvs:22866]
+
+Thu Feb 28 18:07:52 2008 Tanaka Akira <akr@fsij.org>
+
+ * lib/open-uri.rb (OpenURI::Meta#meta_setup_encoding): setup encoding
+ by charset.
+ (OpenURI::Meta#meta_add_field): call meta_setup_encoding when
+ content-type.
+
+Thu Feb 28 15:29:12 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * io.c (rb_io_getline_fast): scan coderange.
+
+Thu Feb 28 14:36:46 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * string.c (rb_enc_str_copy): removed.
+
+Thu Feb 28 13:51:59 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (stack_check): made flag per threads.
+
+ * thread.c (rb_thread_set_raised, rb_thread_reset_raised): prefixed.
+
+Thu Feb 28 11:43:56 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * file.c (rb_file_flock): immediately returns on EAGAIN if
+ non-blocking. [ruby-core:15672]
+
+Thu Feb 28 11:23:50 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * io.c (rb_io_getline_1): get rid of segfault. [ruby-dev:33938]
+
+Thu Feb 28 11:19:51 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * string.c (rb_str_reverse_bang): removed unused variables.
+
+ * include/ruby/encoding.h (rb_str_coderange_scan_restartable): added
+ prototype.
+
+ * string.c (rb_str_coderange_scan_restartable, rb_str_times): removed
+ unused variables.
+
+ * string.c (rb_str_reverse_bang): ditto
+
+ * string.c (rb_enc_str_copy): unused now. may be used in future?
+
+Thu Feb 28 03:03:32 2008 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/tk.rb, ext/tk/lib/*: make default widget set
+ switchable between Tk (standard Tcl/Tk widget set) and
+ Ttk (Tile). Initial default widget set is Tk. Now, toplevel
+ widget classes are removed and defined as aliases.
+ For example, "TkButton" is an alias of the "Tk::Button" class.
+ Those aliases are replaced when switching default widget set.
+ "Tk.default_widget_set=" is the method for switching default
+ widget set. "Tk.default_widget_set = :Ttk" defines Ttk (Tile)
+ widget set as default. It means that "TkButton" denotes
+ "Tk::Tile::Button" class. And then, "TkButton.new" creates
+ a Tk::Tile::Button widget. Of course, you can back to use
+ standard Tk widgets as the default widget set by calling
+ "Tk.default_widget_set = :Tk", whenever you want. Based on
+ the feature, you can use Ttk widget styling engine on your
+ old Ruby/Tk application without modifying its source, if you
+ don't use widget options unsupported on Ttk widgets (At first,
+ call "Tk.default_widget_set = :Ttk", and next load and run
+ your application).
+ This is one step for supporting Tcl/Tk8.5 features.
+
+Wed Feb 27 22:55:42 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * string.c (rb_str_coderange_scan_restartable): coderange scanning
+ for partial read.
+
+ * io.c (read_all): set coderange when not convert encoding.
+
+Wed Feb 27 03:55:58 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/extmk.rb, enc/make_encmake.rb: load current mkmf.rb even if
+ cross-compiling.
+
+ * ext/extmk.rb, enc/make_encmake.rb, lib/mkmf.rb: need to be 1.8
+ compatible for cross-compiling.
+
+Tue Feb 26 16:53:13 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * misc/ruby-mode.el (ruby-calculate-indent): should distinguish
+ comment and # in strings. [ruby-dev:33874]
+
+Tue Feb 26 16:41:27 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * array.c (combi_len, rb_ary_product): check for overflow.
+ [ruby-Bugs-18355]
+
+Tue Feb 26 16:38:10 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * array.c (recursive_cmp): compare minimal length parts.
+
+Tue Feb 26 16:06:00 2008 Technorama Ltd. <oss-ruby@technorama.net>
+
+ * ext/openssl/ossl_{ec,dh,dsa,rsa}.c: Remove useless warnings.
+
+ * ext/openssl/ossl_asn1.c: Simplify code.
+
+ * ext/openssl/ossl_ssl_session.c Fix compiler warnings.
+ Undefine #id if SSL_SESSION_get_id is not supported.
+
+Tue Feb 26 15:50:10 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (value_expr_gen): removed inappropriate warning.
+ [ruby-core:15660]
+
+Tue Feb 26 15:43:42 2008 Tanaka Akira <akr@fsij.org>
+
+ * parse.y (tokadd_escape): refactored. [ruby-core:15657]
+
+Tue Feb 26 15:30:36 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * array.c (rb_ary_eql, rb_ary_cmp): get rid of stack overflow with
+ self-recursive constructs. [ruby-Bugs-18356]
+
+Tue Feb 26 01:16:01 2008 Tanaka Akira <akr@fsij.org>
+
+ * include/ruby/ruby.h (ROBJECT_NUMIV): renamed from ROBJECT_LEN.
+ (ROBJECT_IVPTR): renamed from ROBJECT_PTR.
+
+ * variable.c: follow the above renaming.
+
+ * object.c: ditto.
+
+ * gc.c: ditto.
+
+ * marshal.c: ditto.
+
+Mon Feb 25 17:30:29 2008 Technorama Ltd. <oss-ruby@technorama.net>
+
+ * ext/openssl/digest.c ext/openssl/lib/openssl/digest.rb:
+ Commit patch #9280 from Akinori MUSHA.
+ Simplify the OpenSSL::Digest class and make use of the
+ existing Digest framework.
+ Enhance performance.
+
+Mon Feb 25 15:33:29 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * bignum.c (big2str_karatsuba): initialize cache if not initialized.
+
+ * bignum.c (Init_Bignum): delayed initializing cache.
+ [ruby-dev:33930]
+
+Mon Feb 25 13:40:03 2008 Tanaka Akira <akr@fsij.org>
+
+ * process.c (Init_process): share bignum objects for RLIM_INFINITY,
+ RLIM_SAVED_MAX and RLIM_SAVED_CUR if they are equal.
+
+Mon Feb 25 10:41:41 2008 Martin Duerst <duerst@it.aoyama.ac.jp>
+
+ * encoding.c (Encoding#dummy): minor grammatical fixes
+ in rdoc documentation.
+
+Mon Feb 25 00:01:03 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * cygwin/GNUmakefile.in (clean-local): should be double-colon.
+
+Sun Feb 24 23:39:59 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * common.mk, {bcc,win}32/Makefile.sub (clean-local): remove
+ intermediate files.
+
+ * cygwin/GNUmakefile.in (clean-local): remove def file.
+
+Sun Feb 24 06:49:12 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * debug.c (ruby_set_debug_option): separated ruby_each_words().
+
+ * util.c (ruby_each_words): extracted from ruby_set_debug_option().
+
+ * ruby.c (enable_option, disable_option): allow all for all known
+ features.
+
+ * ruby.c (proc_options): generalized enable/disable options.
+
+ * ruby.c (ruby_init_gems): take enabled flag. [ruby-core:14840]
+
+ * ruby.c (process_options): added --disable-rubyopt flag.
+
+ * include/ruby/util.h (ruby_each_words): prototype.
+
+Sun Feb 24 05:25:26 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ruby.c (proc_options): check if argument for -E exists.
+
+Sun Feb 24 05:09:43 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * misc/ruby-style.el (ruby-style-label-indent): fix for labels inside
+ blocks in switch.
+
+Sun Feb 24 03:52:58 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * util.c (valid_filename): use O_EXCL to get rid of clobbering
+ existing files in race conditions.
+
+Sat Feb 23 21:36:13 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * ext/win32ole/win32ole.c (ole_init_cp): should return value.
+
+Sat Feb 23 20:16:05 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * string.c (str_sublen): removed.
+
+ * string.c (rb_str_reverse, rb_str_reverse_bang): use
+ single_byte_optimizable.
+
+Sat Feb 23 19:25:18 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * string.c (rb_enc_cr_str_copy_for_substr): renamed from
+ rb_enc_cr_str_copy.
+
+ * string.c: use rb_enc_cr_str_copy_for_substr and keep coderange.
+
+Sat Feb 23 18:50:17 2008 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+
+ * ext/win32ole/win32ole.c (ole_encoding2cp): remove US-ASCII
+ mapping.
+
+Sat Feb 23 01:09:47 2008 Tanaka Akira <akr@fsij.org>
+
+ * process.c (rlimit_resource_type): new function.
+ (rlimit_resource_value): new function.
+ (proc_getrlimit): use rlimit_resource_type to accept
+ symbol and string as resource type.
+ (proc_setrlimit): use rlimit_resource_type and rlimit_resource_value
+ to accept symbol and string as resource type and values.
+
+Fri Feb 22 21:12:42 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * string.c (rb_enc_cr_str_copy): check string's coderange is 7bit or
+ valid.
+
+Fri Feb 22 19:50:19 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * bignum.c (BIGZEROP): fix for longer Bignum zeros. [ruby-Bugs-17454]
+
+Fri Feb 22 15:47:36 2008 Tanaka Akira <akr@fsij.org>
+
+ * encoding.c (rb_enc_mbclen): return minlen instead of 1 when
+ a character is not found properly.
+
+ * string.c (rb_enc_strlen): round up string length with fixed
+ multibyte encoding such as UTF-32.
+ (rb_enc_strlen_cr): ditto.
+ (rb_str_substr): fix substring with fixed multibyte encoding.
+ (rb_str_justify): check number of characters.
+
+Fri Feb 22 12:11:12 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * string.c (rb_str_inspect): string of ascii incompatible encoding
+ should be escaped and returned as US-ASCII encoding.
+
+Fri Feb 22 11:16:55 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * string.c (rb_str_substr): copy encoding although empty string.
+
+Fri Feb 22 04:48:22 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * string.c (rb_str_times): empty string's coderange is CODERANGE_7BIT.
+
+ * string.c (rb_str_substr): ditto.
+
+ * encoding.c (rb_enc_compatible): empty string is compatible with not
+ only nonasciicompatible strings. [ruby-dev:33895]
+
+Thu Feb 21 17:15:15 2008 Martin Duerst <duerst@it.aoyama.ac.jp>
+
+ * transcode.c: Added basic support for passing options to String#encode
+ via a hash. Currently only one option, with one value, is supported:
+ invalid: :ignore (dropping invalid byte sequences instead of
+ producing an error). Option naming is not yet stable!
+
+ * test/ruby/test_transcode.rb: Added a single test for invalid: :ignore
+ option. Not more tests because most data does not yet distinguish
+ between INVALID and UNKNOWN.
+
+Thu Feb 21 16:35:26 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * array.c (rb_ary_unshift_m): expands enough for argc. [ruby-dev:33880]
+
+Thu Feb 21 14:49:40 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * io.c (argf_set_encoding): uses current_file after check if next
+ input is available.
+
+Thu Feb 21 14:13:38 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * io.c (rb_f_putc): invoke stdout method so that redefining putc
+ may take effect. [ruby-talk:291844]
+
+ * io.c (rb_f_puts): ditto.
+
+Thu Feb 21 11:10:49 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * string.c: replace rb_enc_copy by rb_enc_cr_str_copy or
+ rb_enc_cr_str_exact_copy.
+
+Thu Feb 21 10:35:04 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * include/ruby/encoding.h (rb_enc_asciicompat): dummy encoding is not
+ ascii compatible. [ruby-dev:33878]
+
+Thu Feb 21 00:01:34 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (RPATHFLAG): -R option of HP-UX ld is not for runtime
+ load path. [ruby-list:44600]
+
+Wed Feb 20 23:55:19 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * win32/win32.c (rb_w32_map_errno): exported.
+
+Wed Feb 20 23:28:43 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * ext/readline/extconf.rb (rl_event_hook): workaround for native
+ windows.
+
+Wed Feb 20 19:42:03 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * encoding.c (rb_enc_associate_index): doesn't clear coderange
+ when new encoding equals to old one.
+
+Wed Feb 20 19:15:38 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * string.c (rb_enc_str_copy): added for wrapper for rb_enc_copy.
+ this also copy coderange when ptr and len is equal.
+
+ * string.c (rb_enc_cr_str_copy): added for wrapper for rb_enc_copy.
+ this always copy coderange.
+
+ * string.c (str_replace_shared): use rb_enc_str_copy.
+
+ * string.c (str_new3): don't rb_enc_copy because encoding is copied
+ at str_replace_shared.
+
+Wed Feb 20 13:08:52 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * instruby.rb (parse_args): added --dir-mode, --script-mode and
+ --cmd-type options. [ruby-dev:33816]
+
+ * instruby.rb (parse_args): added bin-arch and bin-comm to install
+ type, for compiled files and script files.
+
+ * instruby.rb (parse_args): deal with make style command line macros,
+ and count as long style options if prefixed with INSTALL_.
+
+ * instruby.rb (makedirs): use $dir_mode. [ruby-dev:33805]
+
+ * instruby.rb (open_for_install): set file mode, which is now
+ permission mode instead of access mode.
+
+ * instruby.rb (bin-comm): installs scripts with replacing shebang
+ lines.
+
+Wed Feb 20 10:04:22 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * io.c (open_key_args): set arg->io even if no options passed.
+ [ruby-dev:33072]
+
+Tue Feb 19 21:11:49 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * string.c (rb_enc_strlen_cr): get length with coderange scan.
+
+ * string.c (str_strlen): use rb_enc_strlen_cr. [ruby-dev:33849]
+
+Tue Feb 19 20:49:49 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (rb_raise_jump): moved adjustment for control frame.
+
+Tue Feb 19 18:34:32 2008 Tanaka Akira <akr@fsij.org>
+
+ * gc.c (STACK_LENGTH) [SPARC] : 0x80 offset removed. [ruby-dev:33857]
+
+Tue Feb 19 14:27:32 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/readline/readline.c (readline_event): prevent polling. based on
+ a patch from error errorsson in [ruby-Bugs-17675].
+
+Tue Feb 19 11:14:13 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (ruby_exec_node): no thread starts inside iseq compilation.
+
+ * eval.c (rb_f_raise): skip current control frame. [ruby-core:15589]
+
+ * insns.def (opt_div): raise as the ordinary method. [ruby-core:15589]
+
+Mon Feb 18 15:16:30 2008 Tanaka Akira <akr@fsij.org>
+
+ * string.c (rb_str_each_line): fix newline size.
+
+Mon Feb 18 13:06:37 2008 Tanaka Akira <akr@fsij.org>
+
+ * lib/irb/locale.rb (IRB::Locale#lc2kconv): check ja_JP.EUC-JP as well.
+
+Mon Feb 18 11:51:19 2008 Tanaka Akira <akr@fsij.org>
+
+ * re.c (re_warn): defined to restore warnings for /[a-c-e]/, etc.
+
+Mon Feb 18 10:17:42 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/pty/lib/expect.rb (IO#expect): check if peer is closed.
+ [ruby-Bugs-17940]
+
+Mon Feb 18 00:33:03 2008 Tanaka Akira <akr@fsij.org>
+
+ * re.c (rb_reg_regsub): don't repeat repl twice with
+ "X".sub!(/./, sprintf("\\%c", 255)).
+
+Sun Feb 17 23:06:55 2008 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
+
+ * lib/cgi.rb (CGI::escapeHTML): use gsub with Hash. [ruby-dev:33828]
+
+Sun Feb 17 21:38:21 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * encoding.c (ENC_CODERANGE_AND): fix broken case. [ruby-dev:33826]
+
+ * string.c (rb_str_times): fix broken case. [ruby-dev:33826]
+
+Sun Feb 17 20:45:10 2008 Tanaka Akira <akr@fsij.org>
+
+ * re.c (rb_reg_prepare_re): add enable_warning parameter.
+ (rb_reg_adjust_startpos): disable warning by rb_reg_prepare_re.
+ (rb_reg_search): follow rb_reg_prepare_re parameter change.
+
+Sun Feb 17 20:12:41 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * test/ruby/test_regexp.rb: add tests to achieve over 90% test
+ coverage of re.c.
+
+Sun Feb 17 15:25:08 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * encoding.c (ENC_CODERANGE_AND): added.
+
+ * string.c (rb_str_plus, rb_str_times): keep coderange.
+
+ * parse.y (STR_NEW0) use rb_usascii_str_new.
+
+Sun Feb 17 14:07:24 2008 Tanaka Akira <akr@fsij.org>
+
+ * string.c (str_strlen): rb_enc_strlen doesn't fail.
+
+Sun Feb 17 13:03:48 2008 Tanaka Akira <akr@fsij.org>
+
+ * string.c (str_sublen): use rb_enc_strlen.
+
+Sun Feb 17 12:17:52 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * enc/{euc_jp.c,gbk.c,iso_8859_1.c,iso_8859_11.c,iso_8859_13.c,
+ iso_8859_2.c,iso_8859_6.c,iso_8859_7.c,iso_8859_8.c,iso_8859_9.c,
+ shift_jis.c,windows_1251.c}: add document about encodings.
+
+ * enc/cp949.c: divided into new file.
+
+Sun Feb 17 10:59:04 2008 Tanaka Akira <akr@fsij.org>
+
+ * re.c (rb_reg_quote): return US-ASCII string consistently.
+
+Sun Feb 17 09:17:08 2008 Tanaka Akira <akr@fsij.org>
+
+ * string.c (rb_str_times): reduce loop overhead.
+
+Sun Feb 17 03:37:01 2008 Tanaka Akira <akr@fsij.org>
+
+ * include/ruby/re.h (struct rmatch_offset): new struct for character
+ offsets.
+ (struct rmatch): new struct.
+ (struct RMatch): reference struct rmatch.
+ (RMATCH_REGS): new macro.
+
+ * re.c (match_alloc): initialize struct rmatch.
+ (pair_byte_cmp): new function.
+ (update_char_offset): update character offsets.
+ (match_init_copy): copy regexp and character offsets.
+ (match_sublen): removed.
+ (match_offset): use update_char_offset.
+ (match_begin): ditto.
+ (match_end): ditto.
+ (rb_reg_search): make character offset updated flag false.
+ (match_size): use RMATCH_REGS.
+ (match_backref_number): ditto.
+ (rb_reg_nth_defined): ditto.
+ (rb_reg_nth_match): ditto.
+ (rb_reg_match_pre): ditto.
+ (rb_reg_match_post): ditto.
+ (rb_reg_match_last): ditto.
+ (match_array): ditto.
+ (match_aref): ditto.
+ (match_values_at): ditto.
+ (match_inspect): ditto.
+
+ * string.c (rb_str_subpat_set): use RMATCH_REGS.
+ (rb_str_sub_bang): ditto.
+ (str_gsub): ditto.
+ (rb_str_split_m): ditto.
+ (scan_once): ditto.
+
+ * gc.c (obj_free): free character offsets.
+
+Sun Feb 17 03:13:40 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/resource.rb: made version infos confirm to OS spec.
+
+ * {bcc32,win32}/Makefile.sub (*.rc): add dependency.
+
+Sat Feb 16 20:49:34 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * string.c (rb_str_substr): optimized for UTF-8.
+
+Sat Feb 16 18:13:53 2008 Tanaka Akira <akr@fsij.org>
+
+ * encoding.c (rb_enc_compatible): check encoding incapable arguments.
+
+Sat Feb 16 20:12:47 2008 Tanaka Akira <akr@fsij.org>
+
+ * re.c (match_inspect): avoid SEGV with MatchData.allocate.inspect.
+
+Sat Feb 16 19:04:17 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * string.c (str_strlen): revert r15507. [ruby-dev:33810]
+
+Sat Feb 16 18:25:14 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * string.c (str_strlen): little more optimization.
+ (rb_enc_nth): remove needless variable 'c'.
+
+Sat Feb 16 18:00:13 2008 Tanaka Akira <akr@fsij.org>
+
+ * encoding.c (rb_enc_compatible): empty strings are always compatible.
+
+ * string.c (rb_enc_cr_str_buf_cat): ditto.
+
+Sat Feb 16 16:14:35 2008 Tanaka Akira <akr@fsij.org>
+
+ * string.c (rb_enc_strlen): UTF-8 character count moved to str_strlen.
+ (str_strlen): UTF-8 character count is only applicable for valid
+ UTF-8 string. [ruby-dev:33807]
+
+Sat Feb 16 13:16:49 2008 Tanaka Akira <akr@fsij.org>
+
+ * string.c (rb_str_sub_bang): stringize replacing hash values.
+ (str_gsub): ditto.
+
+Sat Feb 16 13:01:33 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * string.c (rb_enc_strlen): add search_nonascii like character
+ counter for UTF-8.
+
+Sat Feb 16 11:53:35 2008 Tanaka Akira <akr@fsij.org>
+
+ * encoding.c (rb_enc_strlen): moved to string.c.
+
+ * string.c (rb_enc_strlen): use search_nonascii.
+ (str_strlen): don't use search_nonascii.
+
+Sat Feb 16 11:45:31 2008 Tanaka Akira <akr@fsij.org>
+
+ * lib/require_relative.rb: check require_relative call in eval.
+
+Sat Feb 16 08:00:01 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * ruby.c (process_options): set default_external before loading
+ libraries. [ruby-dev:33801]
+
+Sat Feb 16 05:49:54 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * enc/iso_8859_{4,13}.c: Windows-1257 is replica of ISO-8859-13.
+
+ * string.c (single_byte_optimizable): rb_enc_mbminlen must be 1
+ when rb_enc_mbmaxlen is 1.
+
+Sat Feb 16 03:43:18 2008 Tanaka Akira <akr@fsij.org>
+
+ * encoding.c (rb_enc_nth): moved to string.c.
+
+ * string.c (rb_enc_nth): moved from string.c. use search_nonascii
+ for ASCII compatible string.
+ (str_nth): wrong optimization removed to fix
+ "a".force_encoding("EUC-JP").slice!(0,10) returns
+ "a\x00\x00\x00\x00\x00\x00\x00\x00\x00"
+
+Sat Feb 16 00:21:49 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * range.c (rb_range_beg_len): check if responds to "begin" and "end"
+ methods for non-Range object.
+
+Fri Feb 15 20:29:42 2008 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+
+ * ext/win32ole/win32ole.c (ole_init_cp): initialize WIN32OLE.codepage
+ according to Encoding.default_external.
+
+ * test/win32ole/test_win32ole.rb: ditto.
+
+Fri Feb 15 19:31:23 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * include/ruby/node.h (NODE_FL_NEWLINE): renamed from NODE_NEWLINE
+ to denote its a flag. [ruby-core:15529]
+
+Fri Feb 15 18:23:54 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * string.c (rb_str_sub_bang, str_gsub): allows hash for replacement.
+
+Fri Feb 15 17:12:41 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (str_strlen): use search_nonascii() for performance.
+
+ * string.c (str_nth): ditto.
+
+Fri Feb 15 16:22:49 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * io.c (open_key_args): allow specifying both :mode and :encoding.
+
+Fri Feb 15 15:34:47 2008 Tanaka Akira <akr@fsij.org>
+
+ * string.c (rb_str_getbyte): new method.
+ (rb_str_setbyte): new method.
+
+Fri Feb 15 15:29:03 2008 Tanaka Akira <akr@fsij.org>
+
+ * lib/require_relative.rb: new file.
+
+Fri Feb 15 15:23:12 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/iconv/iconv.c (iconv_convert): check upper bound. a patch from
+ Daniel Luz at [ruby-Bugs-17910].
+
+Fri Feb 15 10:35:54 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * re.c (rb_reg_quote): set US-ASCII for ASCII-only string.
+ [ruby-dev:33785]
+
+Fri Feb 15 10:27:47 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * {win,bcc}32/Makefile.sub (config.h): added HAVE_FTRUNCATE.
+ [ruby-dev:33786]
+
+Fri Feb 15 09:44:11 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (reg_compile_gen): reg_fragment_setenc might not raise an
+ exception before rb_reg_compile.
+
+Fri Feb 15 07:37:40 2008 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rdoc/ri/paths.rb: Preserve compatibility with 1.8.
+
+Fri Feb 15 02:42:25 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (ftruncate): check if available.
+
+ * file.c (rb_file_truncate): check if ftruncate instead of truncate.
+
+Fri Feb 15 02:40:54 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (sigsetmask): check when signal semantics is not POSIX.
+
+ * signal.c (USE_TRAP_MASK): set true if sigprocmask or sigsetmask is
+ available.
+
+Thu Feb 14 23:56:38 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval_error.c (error_print): append a newline to rest lines.
+
+ * parse.y (reg_compile_gen): appends error message from
+ rb_reg_compile() to one from reg_fragment_setenc().
+
+Thu Feb 14 21:00:14 2008 Tanaka Akira <akr@fsij.org>
+
+ * io.c (io_reopen): check STDIN, STDOUT and STDERR mode according to
+ stdio streams.
+
+Thu Feb 14 16:07:40 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * test/ruby/test_math.rb: actual-expected argument ordering for
+ test_math.rb fixed. a patch from Tadashi Saito
+ <shiba AT mail2.accsnet.ne.jp> in [ruby-dev:33770].
+
+Thu Feb 14 16:02:51 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * file.c (rb_file_s_utime): inhibits with secure level 2 or higher.
+
+Thu Feb 14 12:30:02 2008 Tanaka Akira <akr@fsij.org>
+
+ * re.c (rb_reg_preprocess_dregexp): use non-preprocessed regexp source
+ for result.
+
+Thu Feb 14 01:43:16 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/timeout.rb (Timeout::timeout): made sensitive to location on the
+ stack. [ruby-core:15458]
+
+Thu Feb 14 00:49:53 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * common.mk (INSTRUBY_ARGS): pass mode to install. [ruby-dev:33766]
+
+ * instruby.rb (parse_args): added --data-mode and --prog-mode options.
+
+Thu Feb 14 00:02:19 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * eval.c (eval): allow to eval in a binding that has a singleton method.
+ [ruby-dev:33763]
+
+ * test/ruby/test_proc.rb: add tests to achieve over 70% test coverage
+ of proc.c.
+
+ * test/ruby/test_method.rb: ditto.
+
+Wed Feb 13 22:46:36 2008 Tanaka Akira <akr@fsij.org>
+
+ * lib/pathname.rb (Pathname#sub_ext): new method. [ruby-list:44608]
+
+Wed Feb 13 21:50:32 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * proc.c (proc_curry): new method. [ruby-dev:33676]
+
+ * test/ruby/test_proc.rb: add tests for above.
+
+Wed Feb 13 20:48:50 2008 Tanaka Akira <akr@fsij.org>
+
+ * include/ruby/ruby.h (RObject): add iv_index_tbl for shortcut of
+ RCLASS_IV_INDEX_TBL(rb_obj_class(obj)).
+ (ROBJECT_IV_INDEX_TBL): defined.
+
+ * object.c (init_copy): initialize iv_index_tbl in struct RObject.
+
+ * variable.c (ivar_get): use ROBJECT_IV_INDEX_TBL.
+ (rb_ivar_defined): ditto.
+ (obj_ivar_each): ditto.
+ (rb_obj_remove_instance_variable): ditto.
+ (rb_ivar_set): update iv_index_tbl in struct RObject.
+
+Wed Feb 13 16:21:48 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * lib/uri/generic.rb: revert r15442. 2nd argument of String#sub parse
+ escapes. [ruby-dev:33726]
+
+ * bootstraptest/test_method.rb, enc/depend, instruby.rb, lib/mkmf.rb,
+ mkconfig.rb: revert r15443. ditto.
+
+Wed Feb 13 11:20:26 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * enc/depend: fix typo.
+
+ * lib/mkmf.rb: revert r15443. "\\1#{sep}\\2" is wrong if sep is ended
+ with "\\".
+
+Wed Feb 13 08:57:21 2008 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rdoc/markup/inline.rb: Allow inline markup to have a leading
+ '#' or '\', or trailing punctuation. i.e. *#freeze?*, *\foo?*.
+
+Wed Feb 13 07:21:23 2008 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rdoc/to_html_hyperlink.rb: Moved linking to to_html.rb, move
+ crossref to to_html_crossref.rb
+
+Wed Feb 13 04:15:44 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (arg_concat_gen, arg_append_gen): optimize for array push.
+
+ * parse.y (arg_concat_gen): optimize for array concat.
+
+ * parse.y (arg_add_gen): removed since identical to arg_append_gen.
+
+Tue Feb 12 21:04:51 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (exc_list): should use mrhs if non array.
+
+Tue Feb 12 20:32:50 2008 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * lib/rational.rb (floor, ceil, truncate, round): do not use
+ definitions of Numeric.
+
+ * lib/rational.rb (to_i): should returns truncated self.
+
+ * lib/complex.rb (numerator): requires
+ Integer#{numerator,denominator}.
+
+ * lib/complex.rb (quo): do not use definition of Numeric.
+
+ * lib/complex.rb (>, >=, <, <=, between?, div, divmod, modulo,
+ floor, ceil, truncate, round): undef'ed.
+
+ * lib/mathn.rb (Rational#inspect): removed.
+
+Tue Feb 12 16:48:10 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (args, mrhs): flattens literal array splats.
+
+ * parse.y (exc_list): splat literal array.
+
+Tue Feb 12 15:27:19 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * bootstraptest/runner.rb, bootstraptest/test_method.rb, enc/depend,
+ instruby.rb, lib/mkmf.rb, lib/test/unit/util/procwrapper.rb,
+ mkconfig.rb, sample/test.rb, template/vm.inc.tmpl,
+ test/ruby/test_stringchar.rb: fixes around String#gsub.
+
+Tue Feb 12 15:11:47 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * ext/json/lib/json/pure/generator.rb,
+ ext/json/lib/json/pure/parser.rb, ext/openssl/lib/openssl/x509.rb,
+ ext/win32ole/sample/olegen.rb, lib/date/format.rb, lib/irb/context.rb,
+ lib/irb/workspace.rb, lib/net/http.rb, lib/net/imap.rb,
+ lib/rdoc/generator.rb, lib/rdoc/markup/to_html.rb,
+ lib/rdoc/markup/to_latex.rb, lib/rdoc/parsers/parse_c.rb,
+ lib/rdoc/ri/formatter.rb, lib/rexml/parsers/baseparser.rb,
+ lib/rexml/quickpath.rb, lib/rexml/text.rb, lib/rss/parser.rb,
+ lib/uri/common.rb, lib/uri/generic.rb, lib/webrick/httpresponse.rb,
+ lib/webrick/httpservlet/filehandler.rb, lib/yaml/baseemitter.rb,
+ lib/yaml/encoding.rb: performance tuning around String#gsub.
+
+Tue Feb 12 12:16:45 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (rb_str_hash_cmp): lighter version of rb_str_cmp() for
+ hash comparison function.
+
+ * hash.c (rb_any_cmp): use rb_str_hash_cmp().
+
+ * string.c (rb_str_casecmp): should return nil for incompatible
+ comparison.
+
+Tue Feb 12 12:13:25 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * instruby.rb: specify file mode to install. a patch from
+ pegacorn <subscriber.jp AT gmail.com> in [ruby-dev:33699].
+
+Tue Feb 12 11:38:57 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * numeric.c (rb_num_coerce_bin): add ID argument to specify
+ caller's method name. [ruby-dev:33663]
+
+ * numeric.c (rb_num_coerce_cmp): ditto.
+
+ * numeric.c (rb_num_coerce_relop): ditto.
+
+ * ext/bigdecimal/bigdecimal.c (DoSomeOne): add function name argument.
+
+Tue Feb 12 10:25:02 2008 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rdoc/rdoc.rb: Wrap parse_files' read in version check for
+ backwards compatibility.
+
+Tue Feb 12 10:15:14 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * ruby.c (load_file): enc must effect source encoding.
+ [ruby-core:15496]
+
+Tue Feb 12 10:16:47 2008 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rdoc/ri/paths.rb: Restore require rubygems check.
+
+Tue Feb 12 02:42:27 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * range.c (range_include): specialize single character string
+ case (e.g. (?a ..?z).include(?x)) for performance.
+ [ruby-core:15481]
+
+ * string.c (rb_str_upto): specialize single character case.
+
+ * string.c (rb_str_hash): omit coderange scan for performance.
+
+ * object.c (rb_check_to_integer): check Fixnum first.
+
+ * object.c (rb_to_integer): ditto.
+
+ * string.c (rb_str_equal): inline memcmp to avoid unnecessary
+ rb_str_comparable().
+
+ * parse.y (rb_intern2): use US-ASCII encoding.
+
+ * parse.y (rb_intern_str): ditto.
+
+Mon Feb 11 17:21:18 2008 Kouhei Sutou <kou@cozmixng.org>
+
+ * lib/rss/rss.rb (RSS::VERSION), test/rss/test_version.rb:
+ 0.2.3 -> 0.2.4.
+
+ * lib/rss/maker.rb, lib/rss/maker/, test/rss/test_maker_2.0.rb:
+ fixed a bug that RSS::Maker.make("0.9")'s item doesn't make some
+ elements if description is missed.
+ Reported by Michael Auzenne. Thanks!!!
+
+ * lib/rss/maker/0.9.rb, test/rss/test_maker_0.9.rb:
+ RSS::Maker.make("0.9") generates RSS 0.92 not RSS 0.91.
+
+Mon Feb 11 10:43:31 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * ruby.c (load_file): the encoding of DATA follows the source
+ file encoding. [ruby-dev:33693]
+
+Mon Feb 11 06:50:42 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * test/ruby/test_pack.rb: fix tests for 64bit CPU.
+
+ * test/ruby/test_bignum.rb: ditto.
+
+ * test/ruby/test_file_exhaustive.rb: ditto.
+
+ * test/ruby/test_integer.rb: ditto.
+
+ * test/ruby/test_time.rb: ditto.
+
+ * test/ruby/test_numeric.rb: ditto.
+
+ * test/ruby/test_fixnum.rb: ditto.
+
+Mon Feb 11 00:18:57 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * lib/benchmark.rb (Job::Benchmark#item): fix typo.
+
+Sun Feb 10 21:58:32 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * common.mk (encdb, transdb): depend on $(PREP).
+
+Sun Feb 10 16:58:20 2008 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems*, test/rubygems*, gem_prelude.rb: Import RubyGems
+ r1601. [ruby-core:15381]
+
+Sun Feb 10 15:07:23 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * {bcc32,win32,wince}/Makefile.sub (MISSING): added cbrt.obj.
+
+Sun Feb 10 12:58:33 2008 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rdoc/code_objects.rb: Make some attributes accessible for reuse.
+ * lib/rdoc/generator/html.rb: Pull out ContextUser classes and related
+ methods for reuse.
+ * lib/rdoc/generator.rb: Move ContextUser classes to
+ RDoc::Generator::Context for reuse.
+ * lib/rdoc/rdoc.rb: Make RDoc::RDoc initialization a little easier.
+ * lib/rdoc/options.rb: Make RDoc::Options easier to use without
+ parsing an ARGV.
+ * lib/rdoc/markup/to_*.rb: Subclass RDoc::Markup::Formatter.
+ * lib/rdoc/markup/formatter.rb: Add RDoc::Markup::Formatter to make
+ RDoc markup conversion easier.
+ * lib/rdoc/markup/fragments.rb: Make RDoc::Markup::ListItem easier to
+ test.
+ * lib/rdoc/markup/to_html_hyperlink.rb: Pulled out of the HTML
+ generator for easier reusability.
+ * lib/rdoc/markup.rb: Fix bug with labeled lists containing bullet
+ lists.
+ * lib/rdoc/generators/html/html.rb: Fix Constant display.
+
+Sat Feb 9 23:44:29 2008 Tanaka Akira <akr@fsij.org>
+
+ * missing/tgamma.c (tgamma): use lgamma_r if available.
+
+Sat Feb 9 23:22:52 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/bigdecimal/extconf.rb: simplified the condition.
+
+Sat Feb 9 21:20:28 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * test/ruby/test_math.rb: add tests for Math.gamma, Math.lgamma and
+ Math.cbrt, and use assert_in_delta instead of assert.
+
+Sat Feb 9 18:34:45 2008 Tanaka Akira <akr@fsij.org>
+
+ * math.c (math_cbrt): new method Math.cbrt.
+
+ * configure.in (cbrt): check for replacement functions.
+
+ * missing/cbrt.c: new file.
+
+Sat Feb 9 17:51:24 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/bigdecimal/bigdecimal.c (BigDecimal_to_f): use strtod() for more
+ precision. [ruby-talk:290296]
+
+ * ext/bigdecimal/bigdecimal.c (BASE_FIG): made constant.
+
+ * ext/bigdecimal/extconf.rb: ditto. [ruby-dev:33658]
+
+Sat Feb 9 12:06:45 2008 Tanaka Akira <akr@fsij.org>
+
+ * missing/tgamma.c (tgamma): add error check.
+
+Sat Feb 9 11:47:03 2008 Tanaka Akira <akr@fsij.org>
+
+ * math.c (math_gamma): add error check.
+ (math_lgamma): ditto.
+
+Sat Feb 9 11:09:26 2008 Tanaka Akira <akr@fsij.org>
+
+ * missing/lgamma_r.c (lgamma_r): return HUGE_VAL for non-positive
+ integers.
+
+Sat Feb 9 10:03:07 2008 Tanaka Akira <akr@fsij.org>
+
+ * string.c (rb_str_new4): copy encoding from orig, instead of shared
+ one.
+
+Sat Feb 9 01:01:38 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * file.c (lchmod_internal): fix warning cast from pointer to integer of
+ different size.
+
+Sat Feb 9 00:44:52 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/irb.rb (IRB::Irb::eval_input): rescues Interrupt and other than
+ SystemExit and SignalException. [ruby-core:15359]
+
+Fri Feb 8 23:51:36 2008 Tanaka Akira <akr@fsij.org>
+
+ * missing/lgamma_r.c (lgamma_r): use smaller argument for sin function.
+
+Fri Feb 8 22:10:36 2008 Tanaka Akira <akr@fsij.org>
+
+ * lib/open-uri.rb (OpenURI.open_http): rescue URI::InvalidURIError by
+ URI.parse for location URI.
+
+Fri Feb 8 19:22:13 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/iconv/iconv.c (rb_str_derive): uses rb_str_subseq() for byte
+ length. [ruby-dev:33653]
+
+ * ext/iconv/iconv.c (iconv_convert): added toidx argument to set
+ encoding of successfully converted string. [ruby-dev:33221]
+
+Fri Feb 8 15:09:21 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/mkmf.rb (xsystem): expand macros like as make.
+
+Fri Feb 8 09:27:57 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * lib/rdoc/ri/driver.rb (read_yaml): remove SM* for compatibility.
+
+Fri Feb 8 00:07:24 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * test/ruby/test_hash.rb: follow the change of Hash#flatten.
+
+ * test/ruby/test_time.rb: add tests to achieve over 70% test coverage
+ of time.c.
+
+ * test/ruby/test_prec.rb: ditto over 90% for prec.c.
+
+Thu Feb 7 19:11:39 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * string.c (rb_str_dup): reverted unneeded change. [ruby-dev:33634]
+
+ * string.c (rb_str_replace): makes frozen shared string before
+ sharing.
+
+Thu Feb 7 16:33:51 2008 Tanaka Akira <akr@fsij.org>
+
+ * io.c (io_reopen): don't change access mode for stdin, stdout and
+ stderr. [ruby-core:15360]
+
+Thu Feb 7 16:33:48 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * string.c (str_replace_shared): replaces string with sharing.
+
+ * string.c (rb_str_new4, rb_str_associate, rb_str_associated): allows
+ associated strings shared.
+
+ * string.c (rb_str_dup, rb_str_substr, rb_str_replace): shares memory.
+ [ruby-core:15400]
+
+Thu Feb 7 15:42:42 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * string.c (rb_str_end_with): compares with the suffix.
+
+Thu Feb 7 15:03:15 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * enc/trans/korean.c: add support for CP949 by Park Ji-In.
+ [ruby-dev:33626]
+
+Thu Feb 7 11:11:02 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * missing/lgamma_r.c (lgamma_r): some compilers don't permit dividing
+ by literal 0.0. use const variable instead.
+
+ * {bcc32,win32,wince}/Makefile.sub (MISSING): add lgamma_r.obj and
+ tgamma.obj.
+
+Thu Feb 7 10:39:21 2008 Tanaka Akira <akr@fsij.org>
+
+ * math.c (math_gamma): new method Math.gamma.
+ (math_lgamma): new method Math.lgamma.
+
+ * include/ruby/missing.h (tgamma): declared unless HAVE_TGAMMA.
+ (lgamma_r): declared unless HAVE_LGAMMA_R.
+
+ * configure.in (tgamma): check for replacement functions.
+ (lgamma_r): ditto.
+
+ * missing/tgamma.c: new file. based on gamma.c from
+ "C-gengo niyoru saishin algorithm jiten" (New Algorithm handbook
+ in C language) (Gijyutsu hyouron sha, Tokyo, 1991)
+ by Haruhiko Okumura.
+
+ * missing/lgamma_r.c: ditto.
+
+ * LEGAL (missing/tgamma.c): describe as public domain.
+ (missing/lgamma_r.c): ditto.
+
+Thu Feb 7 09:05:57 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ext/nkf/nkf-utf8/nkf.c (nkf_enc_from_index): BINARY does not
+ have in-bound encoding index.
+
+Thu Feb 7 04:26:28 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * enc/trans/korean.c: add EUC-KR conversion support by Park Ji-In.
+ [ruby-dev:33621]
+
+Wed Feb 6 01:47:39 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * hash.c (rb_hash_flatten): do not flatten recursively by default.
+ [ruby-dev:33603]
+
+Wed Feb 6 00:50:19 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * insns.def (adjuststack): never use INC_SP with minus value because
+ some compilers cannot deal it correctly. use DEC_SP instead.
+
+Wed Feb 6 00:48:41 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * test/ruby/test_hash.rb: add tests to achieve over 90% test coverage
+ of hash.c.
+
+ * test/ruby/test_env.rb: ditto.
+
+Wed Feb 6 00:24:49 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * hash.c (env_rassoc): remove access to free'd environment on mswin32.
+
+Tue Feb 5 21:57:34 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * vm.c (rb_call_super): pass a passed block when super is called via
+ rb_call_super. [ruby-dev:33598]
+
+Tue Feb 5 11:14:11 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/mkmf.rb (INSTALL_DIRS, install_dirs): added BINDIR.
+
+ * lib/mkmf.rb (install_files): rejects files matching to
+ $NONINSTALLFILES.
+
+ * lib/mkmf.rb (init_mkmf): defaults $NONINSTALLFILES to backup and
+ temporary files.
+
+Mon Feb 4 21:52:06 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/delegate.rb (DelegateClass): use define_method instead of
+ module_eval to improve performance. [ruby-dev:33586]
+
+Mon Feb 4 16:44:24 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (darwin): NSIG is not defined if _XOPEN_SOURCE > 500L.
+ [ruby-dev:33584]
+
+Mon Feb 4 14:51:19 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (rb_enc_symname2_p): support "!", "!=" and "!~".
+ [ruby-dev:33592]
+
+Mon Feb 4 13:58:42 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * lib/delegate.rb (Delegator.preserved, DelegateClass.methods): extend
+ shouldn't be delegated. [ruby-dev:32987], etc.
+
+Mon Feb 4 08:59:31 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/cgi.rb (CGI::QueryExtension::[]): no more transition
+ extend(CGI::Value). a patch from <tommy AT tmtm.org> in
+ [ruby-dev:33583].
+
+Sun Feb 3 21:13:13 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * test/ruby/test_numeric.rb: forgot to add this (at r15360).
+
+ * test/ruby/test_file_exhaustive.rb: add tests to achieve over 80% test
+ coverage of file.c.
+
+Sat Feb 2 20:06:42 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/benchmark.rb (Benchmark::realtime): make Benchmark#realtime
+ a bit faster. a patch from Alexander Dymo <dymo AT ukrpost.ua> in
+ [ruby-core:15337].
+
+Sat Feb 2 17:40:21 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * time.c (time_cmp): Time.<=> no longer supports comparison with
+ numeric. [ruby-core:15332]
+
+Sat Feb 2 09:53:39 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (darwin): disabled fat-binary support which confuses
+ configure much, since ``universal'' implies hidden cross-compiling.
+ TODO: ruby and libruby.bundle might be possible to bound with `lipo'
+ after builds for each archs. Anyway, config.h and rbconfig.rb must
+ be separated definitely at least.
+
+Sat Feb 2 09:28:36 2008 Tanaka Akira <akr@fsij.org>
+
+ * random.c (limited_big_rand): fix buffer overflow when SIZEOF_BDIGITS
+ is 2. fixed by Kenta Murata. [ruby-dev:33565]
+
+Fri Feb 1 21:42:37 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (darwin): _XOPEN_SOURCE is necessary to make ucontext_t
+ consistent with the library implementation of MacOS X 10.5.
+ [ruby-dev:33461]
+
+ * configure.in (darwin): ucontext on PowerPC MacOS X 10.5 is broken.
+
+Fri Feb 1 11:44:22 2008 Tanaka Akira <akr@fsij.org>
+
+ * tool/compile_prelude.rb (C_ESC): use octal escape to avoid
+ "\x09for (;;) ..." to be interpret the first character 0x9f.
+
+Thu Jan 31 23:06:42 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * test/ruby/test_bignum.rb: suppress warnings during test.
+
+ * test/ruby/test_enum.rb: ditto.
+
+ * test/ruby/test_integer.rb: add tests to achieve over 90% test
+ coverage of numeric.c.
+
+ * test/ruby/test_float.rb: ditto.
+
+ * test/ruby/test_fixnum.rb: ditto.
+
+ * test/ruby/test_numeric.rb: ditto.
+
+ * test/ruby/test_pack.rb: add tests to achieve over 90% test coverage
+ of pack.c.
+
+Thu Jan 31 17:30:42 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * marshal.c (r_object0): no need to call r_entry for immediate values.
+
+Thu Jan 31 15:46:30 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * lib/rdoc/ri/formatter.rb (output): add accessor.
+
+ * lib/rdoc/ri/display.rb (page): replace @formatter.output instead of
+ $stdout.
+
+Thu Jan 31 15:06:50 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * marshal.c (r_object0): call r_entry/r_leave to call proc when
+ TYPE_FIXNUM, TYPE_NIL, TYPE_TRUE, TYPE_FALSE, TYPE_SYMBOL.
+
+Thu Jan 31 14:03:38 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * lib/rdoc/ri/display.rb (display_method_list, display_class_list):
+ use @formatter.raw_print_line instead of puts.
+
+ * lib/rdoc/ri/driver.rb (select_methods): new method to collect all
+ instance/class methods which match with passed pattern.
+
+ * lib/rdoc/ri/driver.rb (run): use class_cache's result directly
+ instead of select_classes' because it's removed now.
+
+ * lib/rdoc/ri/driver.rb (run): search methods when passed name is not
+ class name. [ruby-core:15309]
+
+Thu Jan 31 08:31:19 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * common.mk (ext/extmk.rb, instruby.rb): inlined $(MAKE) so that can
+ be executed even with -n.
+
+Thu Jan 31 06:24:22 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * io.c (rb_io_close_read): replaces fptr with the tied writer if
+ duplex.
+
+ * io.c (rb_io_close_write): unties the tied IO for writing if duplex.
+ [ruby-dev:33532]
+
+Thu Jan 31 02:22:04 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * io.c (open_key_args): allow encoding key to take two encoding
+ names. a patch from <rubikitch AT ruby-lang.org>. [ruby-dev:33540]
+
+Thu Jan 31 02:15:49 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * parse.y (dsym): allow empty symbols. [ruby-core:15248]
+
+Thu Jan 31 00:01:51 2008 Tanaka Akira <akr@fsij.org>
+
+ * io.c (select_internal): fix SEGV by `select [STDIN],nil,[STDIN]'.
+ fixed by Petr Chromec.
+ http://rubyforge.org/tracker/index.php?func=detail&aid=17275&group_id=426&atid=1698
+
+Wed Jan 30 17:32:49 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * enc/*.c: add GB12345, UCS-{2,4}{BE,LE}.
+
+Wed Jan 30 14:32:18 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * lib/rdoc/ri/driver.rb (cache_file_for): shouldn't use `:' in filename.
+
+Wed Jan 30 14:27:19 2008 Tanaka Akira <akr@fsij.org>
+
+ * string.c (rb_str_succ): use wrapped character as a carry for
+ ASCII incompatible encoding.
+
+Wed Jan 30 12:26:59 2008 Tanaka Akira <akr@fsij.org>
+
+ * enc/utf_16be.c (UTF16_IS_SURROGATE_FIRST): avoid branch.
+ (UTF16_IS_SURROGATE_SECOND): ditto.
+ (UTF16_IS_SURROGATE): defined.
+ (utf16be_mbc_enc_len): validation implemented.
+
+ * enc/utf_16le.c (UTF16_IS_SURROGATE_FIRST): avoid branch.
+ (UTF16_IS_SURROGATE_SECOND): ditto.
+ (UTF16_IS_SURROGATE): defined.
+ (utf16le_mbc_enc_len): validation implemented.
+
+Wed Jan 30 12:06:43 2008 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * bignum.c (rb_cstr_to_inum): '0_2' is a valid representation.
+
+Wed Jan 30 11:57:50 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * bootstraptest/runner.rb: fix -I../../hoge case.
+
+Wed Jan 30 01:25:16 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * test/ruby/test_range.rb: add tests to achieve over 90% test coverage
+ of range.c.
+
+Wed Jan 30 00:09:37 2008 Tanaka Akira <akr@fsij.org>
+
+ * enc/euc_tw.c (euctw_mbc_enc_len): validation implemented.
+
+Tue Jan 29 22:58:11 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * test/ruby/test_enumerator.rb: add tests to achieve over 90% test
+ coverage of enumerator.c.
+
+ * test/ruby/test_enum.rb: add for enum.c.
+
+Tue Jan 29 22:29:48 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * enumerator.c: fix documents.
+
+Tue Jan 29 22:27:11 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * range.c: fix SEGV by ("a" .. "z").step(2 ** 30) { }.
+
+Tue Jan 29 21:59:16 2008 Tanaka Akira <akr@fsij.org>
+
+ * enc/euc_tw.c (euctw_islead): 0x8e is a leading byte.
+
+Tue Jan 29 21:55:35 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * bignum.c: move object allocation out of blocking_region.
+ [ruby-dev:33139]
+
+Tue Jan 29 20:37:36 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * enc/trans/make_transdb.rb: add for make transdb.h.
+
+ * dmytranscode.c: add for miniruby.
+
+ * enc/gbk.c (gbk_left_adjust_char_head, gbk_is_allowed_reverse_match):
+ fix odd regexp match. [ruby-dev:33502]
+
+Tue Jan 29 20:17:06 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * {bcc32,win32}/Makefile.sub (MINIOBJS): add dmytranscode.$(OBJEXT).
+
+Tue Jan 29 19:39:40 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * configure.in, common.mk: fix rule for dmytranscode.o.
+
+Tue Jan 29 19:03:16 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * enc/trans/japanese.c (rb_to_Windows_31J): to 'Windows-31J'.
+
+ * common.mk: add rules for transdb.h.
+
+ * transcode.c (init_transcoder_table): use transdb.h.
+
+Tue Jan 29 18:05:48 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * encoding.c (encdb_{replicate,alias,dummy,declare}): define only if
+ NO_ENCDB_H is not defined.
+
+Tue Jan 29 17:54:11 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * enc/gbk.c (EncLen_gbk): too short. [ruby-dev:33497]
+
+Tue Jan 29 17:25:22 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * dmyencoding.c, encoding.c (enc_init_db, NO_ENCDB_H):
+ miniruby doesn't use encdb.
+
+ * common.mk: encdb.h use miniruby.
+
+Tue Jan 29 17:37:36 2008 Tanaka Akira <akr@fsij.org>
+
+ * enc/gb18030.c (gb18030_mbc_enc_len): validation implemented.
+
+Tue Jan 29 17:01:07 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * tool/ifchange: remove $temp when unchanged.
+
+Tue Jan 29 16:59:01 2008 Tanaka Akira <akr@fsij.org>
+
+ * insns.def (toregexp): generate a regexp from strings instead of one
+ string.
+
+ * re.c (rb_reg_new_ary): defined for toregexp. it concatenates
+ strings after each string is preprocessed.
+
+ * compile.c (compile_dstr_fragments): split from compile_dstr.
+ (compile_dstr): call compile_dstr_fragments.
+ (compile_dregx): defined for dynamic regexp.
+ (iseq_compile_each): use compile_dregx for dynamic regexp.
+
+ [ruby-dev:33400]
+
+Tue Jan 29 16:25:26 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * common.mk, ext/extmk.rb: always make encdb.h.
+
+Tue Jan 29 12:53:39 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * enc/gbk.c: add GBK, CP936 and CP949.
+
+ * enc/euc_kr.c: remove CP949.
+
+ * enc/euc_cn.c: remove CP936 and rename to gb2312.c
+
+ * enc/gb2312.c: GB2312 is preferred MIME name.
+
+Tue Jan 29 03:01:29 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * parse.y (reg_fragment_setenc_gen): US-ASCII script special code.
+
+ * parse.y (reg_fragment_check_len, reg_compile_gen): no need such
+ trick.
+ [ruby-dev:33399]
+
+ * test/ruby/test_m17n.rb (test_regexp_usacii_literal): add tests.
+
+Tue Jan 29 01:38:02 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * common.mk ($(srcdir)/revision.h): no need to show ifchange execution
+ because ifchange echos updated or unchanged.
+
+Tue Jan 29 01:26:23 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * common.mk (up): use last changed revision.
+
+ * common.mk (up): force to update revision.h.
+
+Tue Jan 29 00:12:17 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * bignum.c (rb_big2str0): should be US-ASCII.
+
+Tue Jan 29 00:10:00 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * misc/ruby-mode.el (ruby-mode-set-encoding): updates magic comment.
+
+Mon Jan 28 23:47:52 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * parse.y (rb_id2str, ripper_initialize, Init_ripper):
+ use rb_usascii_str_new2. [ruby-dev:33449]
+
+Mon Jan 28 19:37:08 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * ext/win32ole/win32ole.c (ole_cp2encoding): new function.
+
+ * ext/win32ole/win32ole.c (ole_wc2vstr, ole_variant2val, fole_missing):
+ set encoding to result.
+
+ * ext/win32ole/win32ole.c (fole_s_set_code_page, Init_win32ole): set
+ default encoding.
+ [ruby-dev:33433]
+
+Mon Jan 28 11:17:28 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * string.c, parse.y, re.c: use rb_ascii8bit_encoding.
+
+Mon Jan 28 17:54:15 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * enc/utf_7.h: add dummy encoding UTF-7 and its alias CP65000.
+
+Mon Jan 28 17:41:19 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * enc/utf_8.c: add alias CP65001.
+
+Mon Jan 28 15:33:23 2008 Tanaka Akira <akr@fsij.org>
+
+ * enc/big5.c (big5_mbc_enc_len): validation implemented.
+
+Mon Jan 28 13:02:02 2008 Tanaka Akira <akr@fsij.org>
+
+ * enc/euc_kr.c (euckr_mbc_enc_len): validation implemented.
+
+Mon Jan 28 11:24:49 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * parse.y (parser_str_new): encoding of UTF-8 literal string in
+ US-ASCII script is UTF-8. [ruby-dev:33406]
+
+Mon Jan 28 10:25:59 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * test/ruby/test_m17n.rb (test_magic_comment): add test.
+
+Mon Jan 28 09:34:54 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * common.mk (help): use double quotes for nmake.
+
+Mon Jan 28 00:39:09 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (parser_set_encode): check if encoding is ASCII compatible.
+
+Mon Jan 28 01:21:15 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * io.c (rb_open_file): should check NUL in path.
+ <http://www.rubyist.net/~matz/20080125.html#c01>.
+
+ * io.c (rb_io_s_popen): ditto.
+
+ * io.c (rb_io_reopen): ditto.
+
+ * io.c (next_argv): ditto.
+
+Sun Jan 27 23:33:35 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * sprintf.c (rb_str_format): fix for left justify flag.
+
+ * sprintf.c (rb_str_format): zero-precision zero bug revised.
+ [ruby-dev:33419]
+
+Sun Jan 27 23:20:54 2008 Tanaka Akira <akr@fsij.org>
+
+ * include/ruby/oniguruma.h: precise mbclen API redesigned to avoid
+ inline functions.
+ (onigenc_mbclen_charfound): removed.
+ (onigenc_mbclen_needmore): removed.
+ (onigenc_mbclen_recover): removed.
+ (ONIGENC_MBCLEN_CHARFOUND): removed.
+ (ONIGENC_MBCLEN_CHARFOUND_P): defined.
+ (ONIGENC_MBCLEN_CHARFOUND_LEN): defined.
+ (ONIGENC_MBCLEN_INVALID): removed.
+ (ONIGENC_MBCLEN_INVALID_P): defined.
+ (ONIGENC_MBCLEN_NEEDMORE): removed.
+ (ONIGENC_MBCLEN_NEEDMORE_P): defined.
+ (ONIGENC_MBCLEN_NEEDMORE_LEN): defined.
+ (ONIGENC_MBC_ENC_LEN): use onigenc_mbclen_approximate.
+
+ * regenc.c (onigenc_mbclen_approximate): defined.
+
+ * include/ruby/encoding.h (MBCLEN_CHARFOUND): removed.
+ (MBCLEN_INVALID): removed.
+ (MBCLEN_NEEDMORE): removed.
+ (MBCLEN_CHARFOUND_P): defined.
+ (MBCLEN_INVALID_P): defined.
+ (MBCLEN_NEEDMORE_P): defined.
+ (MBCLEN_CHARFOUND_LEN): defined.
+ (MBCLEN_NEEDMORE_LEN): defined.
+
+ * encoding.c: use new API.
+
+ * re.c: ditto.
+
+ * string.c: ditto.
+
+ * parse.y: ditto.
+
+Sun Jan 27 22:55:27 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (value_expr_gen): reverted r12880. [ruby-dev:33388]
+
+Sun Jan 27 22:33:39 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * sprintf.c (rb_str_format): fix for octal with precision.
+ [ruby-dev:33411]
+
+Sun Jan 27 22:31:45 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * misc/ruby-mode.el (ruby-mode-set-encoding): automatically insert
+ encoding magic comment.
+
+ * misc/ruby-mode.el (ruby-mode): set ruby-mode-set-encoding to buffer
+ local before-save-hook.
+
+Sun Jan 27 19:51:15 2008 Tanaka Akira <akr@fsij.org>
+
+ * string.c (rb_str_inspect): avoid exception by
+ "\#\xa1".force_encoding("euc-jp").inspect.
+
+Sun Jan 27 19:07:33 2008 Tanaka Akira <akr@fsij.org>
+
+ * string.c (rb_str_succ): warning suppressed.
+
+Sun Jan 27 18:18:13 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * common.mk (help): show major targets.
+
+Sun Jan 27 17:54:48 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * ext/nkf/nkf.c: raise error when no output encoding is given.
+
+Sun Jan 27 17:20:10 2008 Tanaka Akira <akr@fsij.org>
+
+ * string.c (rb_str_succ): don't increment/decrement codepoint.
+
+Sun Jan 27 16:03:42 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * lib/irb/ruby-lex.rb (RubyLex#buf_input): use chars.to_a.
+
+Sun Jan 27 16:27:22 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * ext/nkf/nkf-utf8: update nkf.
+
+Sun Jan 27 16:25:27 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * re.c (rb_reg_source): set encoding as regexp encoding.
+
+Sun Jan 27 05:56:39 2008 Tanaka Akira <akr@fsij.org>
+
+ * re.c (rb_reg_preprocess): force fixed encoding when ASCII
+ incompatible source string.
+
+Sat Jan 26 23:46:33 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * sprintf.c (rb_str_format): zero-precision zero should be empty.
+ [ruby-dev:33363]
+
+ * sprintf.c (rb_str_format): not prepend octal prefix to negative or
+ zero value. [ruby-dev:33363], [ruby-dev:33367]
+
+Sat Jan 26 23:42:15 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (assignable_gen, keyword_to_name): __ENCODING__ was missing.
+
+Sat Jan 26 19:08:45 2008 Tanaka Akira <akr@fsij.org>
+
+ * marshal.c (w_object): dump string encoding in USERDEF.
+ [ruby-dev:33401]
+
+Sat Jan 26 17:42:23 2008 Koichi Sasada <ko1@atdot.net>
+
+ * compile.c (iseq_compile_each): validate argument expr of "next"
+ statement.
+
+ * bootstraptest/test_syntax.rb: add a test.
+
+Sat Jan 26 17:22:46 2008 Koichi Sasada <ko1@atdot.net>
+
+ * compile.c, compile.h: fix to calculate correct stack depth
+ at each instruction.
+
+Sat Jan 26 09:41:02 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * lib/rexml/doctype.rb, test/rss/test_maker_itunes.rb: replace
+ multi-byte string.
+
+ * test/json/{test_json.rb, test_json_unicode.rb}:
+ add magic comment.
+
+Sat Jan 26 09:30:26 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * include/ruby/encoding.h (rb_usascii_encindex): added prototype.
+
+ * include/ruby/intern.h (rb_usascii_str_new, rb_usascii_str_new2):
+ ditto.
+
+Sat Jan 26 09:17:13 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * string.c (rb_str_new): set US-ASCII and ENC_CODERANGE_7BIT when
+ empty string (len == 0).
+
+Sat Jan 26 03:41:53 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * parse.y (parser_initialize): set default script encoding as US-ASCII.
+
+ * ruby.c (load_file): ditto.
+
+ * ruby.c (process_options): set script encoding of -e from locale
+ except when -K is specified.
+
+ * ruby.c (load_file): set script encoding of stdin from locale except
+ when -K is specified. [ruby-dev:33375]
+
+Sat Jan 26 02:51:06 2008 Koichi Sasada <ko1@atdot.net>
+
+ * compile.c, compile.h: fix stack pointer issues.
+ calculate correct stack depth at compile time.
+
+ * insns.def (emptstack): remove it and add a new insn "adjuststack".
+
+ * bootstraptest/test_knownbug.rb: move/remove fixed test.
+
+ * bootstraptest/test_syntax.rb: ditto.
+
+Sat Jan 26 00:17:18 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * string.c (rb_str_usascii_new{,2}: defined.
+ (rb_str_new): set US-ASCII and ENC_CODERANGE_7BIT when empty
+ string.
+
+ * encoding.c (rb_usascii_encoding, rb_usascii_encindex): defined.
+ (rb_enc_inspect, enc_name, rb_locale_charmap, rb_enc_name_list_i):
+ use rb_str_ascii_new.
+
+ * array.c (recursive_join, inspect_ary): ditto.
+
+ * object.c (nil_to_s, nil_inspect, true_to_s, false_to_s,
+ rb_mod_to_s): ditto.
+
+ * hash.c (inspect_hash, rb_hash_inspect, rb_f_getenv, env_fetch,
+ env_clear, env_to_s, env_inspect): ditto.
+
+ * numeric.c (flo_to_s, int_chr, rb_fix2str): ditto.
+
+ * bignum.c (rb_big2str): ditto.
+
+ * file.c (rb_file_ftype, rb_file_s_dirname, rb_file_s_extname,
+ file_inspect_join, Init_file): ditto.
+
+ * test/ruby/test_ruby_m17n.rb: add checks for encoding of string.
+
+Sat Jan 26 01:35:46 2008 Tanaka Akira <akr@fsij.org>
+
+ * marshal.c (r_byte): use getbyte instead of getc.
+ (marshal_load): ditto.
+ [ruby-dev:33264]
+
+Sat Jan 26 00:43:40 2008 Tanaka Akira <akr@fsij.org>
+
+ * io.c (rb_io_getline_fast): don't care ASCII incompatible encoding.
+ (prepare_getline_args): generate a newline according to IO encoding
+ when necessary.
+ (rb_io_getline_1): call rb_io_getline_fast only for ASCII
+ compatible encoding.
+
+Fri Jan 25 21:49:36 2008 Tanaka Akira <akr@fsij.org>
+
+ * string.c (rb_str_buf_cat_ascii): use rb_enc_cr_str_buf_cat.
+
+Fri Jan 25 19:38:45 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * common.mk (version.$(OBJEXT)): depends on $(srcdir)/revision.h.
+
+ * common.mk (revision.h): extracts revision number with ``svn info''.
+
+ * common.mk (up): target to update from the repository.
+
+ * Makefile.in, {win,bcc}32/Makefile.sub (IFCHANGE): tool to update a
+ file if changed.
+
+ * tool/ifchange: for unixen.
+
+ * win32/ifchange.bat: some fix
+
+Fri Jan 25 17:12:13 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ruby.c (load_file): set default to ASCII-8BIT explicitly if -K
+ option is not given.
+
+Fri Jan 25 16:31:47 2008 Tanaka Akira <akr@fsij.org>
+
+ * include/ruby/intern.h (rb_str_buf_cat_ascii): declared.
+
+ * string.c (rb_str_buf_cat_ascii): defined.
+
+ * re.c (rb_reg_s_union): use rb_str_buf_cat_ascii to support ASCII
+ incompatible encoding.
+
+Fri Jan 25 16:11:16 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ruby.c (process_options, load_file, rb_load_file): propagates script
+ encoding by -K to libraries. [ruby-dev:33156]
+
+Fri Jan 25 15:56:48 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ruby.c (cmdline_arguments): split argc and argv from cmdline_options.
+
+ * ruby.c (process_options): not set encoding of -e option from -E
+ option if they are not compatible.
+
+Fri Jan 25 13:15:23 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * ruby.c (proc_options, process_options, load_file): shouldn't effect
+ --encoding to script encoding. [ruby-dev:33169]
+
+Fri Jan 25 10:31:58 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * */*.bat: set svn:mime-type to text/batch.
+
+Thu Jan 24 23:23:06 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * enum.c (enum_one, enum_take_while, enum_drop_while): fix documents.
+
+Thu Jan 24 21:46:24 2008 Tanaka Akira <akr@fsij.org>
+
+ * parse.y (reg_fragment_setenc_gen): associate ASCII-8BIT only if
+ str has only ASCII characters.
+
+Thu Jan 24 20:46:17 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * test/ruby/test_m17n.rb: follow to the following changes.
+
+Thu Jan 24 20:21:07 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * parser.y (parser_str_new): automatically update string literal's
+ encoding from US-ASCII to ASCII-8BIT when script encoding is US-ASCII
+ and the string includes non-ascii bytes. [ruby-dev:33348]
+
+ * parser.y (reg_fragment_check_gen, reg_compile_gen): automatically
+ update regexp literal's encoding from US-ASCII to ASCII-8BIT when
+ script encoding is US-ASCII, the regexp has no kcode option and the
+ regexp includes non-ascii bytes. [ruby-dev:33353]
+
+Thu Jan 24 19:36:22 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/uri/generic.rb (URI::Generic::inspect): use Kernel#to_s instead
+ object_id with printf. [ruby-dev:33347]
+
+Thu Jan 24 19:29:20 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * sprintf.c (remove_sign_bits): returns pointer to the first char to
+ be used, instead of copying.
+
+ * sprintf.c (rb_str_format): negative indicator dots should come
+ before sign digits always. [ruby-dev:33224]
+
+Thu Jan 24 18:19:42 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * include/ruby/encoding.h (rb_enc_is_newline): parenthesized arguments.
+
+Thu Jan 24 18:14:14 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * re.c (rb_reg_fixed_encoding_p): no need to treat ASCII-8BIT specially.
+
+Thu Jan 24 16:53:06 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * re.c (rb_reg_initialize): 7bit clean regexp should be US-ASCII.
+ [ruby-dev:33346]
+
+Thu Jan 24 16:31:04 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * io.c (rb_io_getline_fast): the end point of left_char_head()
+ must be the last character. [ruby-cvs:22445]
+
+Thu Jan 24 16:24:25 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * parse.y (reg_fragment_setenc_gen): recognize regexp with option n as
+ as ASCII-8BIT instead of US-ASCII. [ruby-dev:33339]
+
+Thu Jan 24 15:44:42 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * array.c (collect_bang_i): use rb_ary_store() to avoid potential
+ memory corruption. a patch from Yusuke Endoh <mame@tsg.ne.jp>
+ in [ruby-dev:33328].
+
+ * array.c (ITERATE): remove unnecessary macro.
+
+ * array.c (sort_1): remove ary_sort_check(). in-place sort keep
+ original elements even when it's modified.
+
+ * array.c (sort_2): ditto.
+
+Thu Jan 24 15:09:40 2008 Tanaka Akira <akr@fsij.org>
+
+ * time.c (make_time_t): revert round trip test. [ruby-dev:33058]
+
+Thu Jan 24 11:14:56 2008 Tanaka Akira <akr@fsij.org>
+
+ * string.c (rb_enc_cr_str_buf_cat): ASCII incompatible encoding is
+ not compatible with any other encoding.
+
+Thu Jan 24 07:34:34 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * parse.y (STR_NEW0): set encoding as US-ASCII.
+
+Thu Jan 24 03:47:41 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * lib/rexml/text.rb, lib/rubygems/open-uri.rb, lib/open-uri.rb,
+ test/logger/test_logger.rb, test/ruby/test_regexp.rb:
+ fix tests. [ruby-dev:33336]
+
+Thu Jan 24 03:23:44 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (rb_str_each_line): use memchr(3) for faster newline
+ search.
+
+ * io.c (appendline): remove unused arguments
+
+ * io.c (rb_io_getline_fast): make much simpler (and faster).
+
+Thu Jan 24 02:13:07 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * insns.def (expandarray): fix stack inc. [ruby-dev:32892]
+
+ * bootstraptest/test_knownbug.rb, test_massign.rb: move a fixed test.
+
+Thu Jan 24 01:00:34 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * encoding.{c, h} (rb_usascii_encoding): added.
+
+ * parse.y (parser_str_new, rb_intern3): ascii only string literal is
+ US-ASCII.
+
+ * ruby.c (proc_optionc): -Kn means ASCII-8BIT.
+
+Wed Jan 23 23:54:40 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * sprintf.c: fix comment. [ruby-dev:33275]
+
+ * math.c: fix comment. [ruby-dev:33276]
+
+Wed Jan 23 22:47:34 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * test/ruby/test_struct.rb: add tests to achieve over 90% test
+ coverage of struct.c.
+
+ * test/ruby/test_sprintf.rb: ditto for sprintf.c.
+
+ * test/ruby/test_math.rb: ditto for math.c.
+
+Wed Jan 23 22:14:28 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * enc/trans/japanese.c (rb_from_Windows_31J, rb_to_Windows_31J):
+ provisional workaround for Windows-31J. [ruby-dev:33320]
+
+Wed Jan 23 15:25:04 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * time.c (time_strftime): copy encoding from format. [ruby-dev:33303]
+
+Wed Jan 23 15:04:11 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * string.c (str_make_independent): should set length.
+
+ * string.c (rb_str_associate): hide associated array from ObjectSpace.
+
+ * string.c (rb_str_associated): return associated array with freezing
+ instead of false. [ruby-dev:33282]
+
+ * string.c (rb_str_freeze): freeze associated array together.
+
+Wed Jan 23 13:39:48 2008 Tanaka Akira <akr@fsij.org>
+
+ * re.c (rb_reg_prepare_re): fix SEGV by
+ /a/ =~ "aa".force_encoding("utf-16be").
+
+Wed Jan 23 11:53:26 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * string.c (str_mod_check, str_nth, str_offset): constified.
+
+ * string.c (rb_str_dump): dump in ASCII-8BIT always.
+
+Wed Jan 23 10:18:10 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval_method.c (rb_export_method): set ruby_vm_redefined_flag for
+ visibility change as well. reported by K.Kosako in
+ http://d.hatena.ne.jp/kkos/20080122#1201012720.
+
+Tue Jan 22 22:26:23 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * test/ruby/test_bignum.rb: change some tests because rational
+ redefines Bignum#quo and Bignum#**.
+
+Tue Jan 22 20:58:15 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * lib/mkmf.rb (create_makefile): need to output sodir rule.
+
+Tue Jan 22 19:37:16 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * lib/mkmf.rb (create_makefile): lib files shouldn't depend on install
+ dir because if the dir is newer than lib files, lib files will be
+ always copied.
+
+Tue Jan 22 17:52:52 2008 Martin Duerst <duerst@it.aoyama.ac.jp>
+
+ * enc/trans/utf_16_32.c: Streamline parentheses, add more
+ 'static' qualifiers.
+
+Tue Jan 22 12:57:07 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * configure.in (MINIRUBY): remove -I$(EXTOUT)/$(arch) from
+ MINIRUBY since miniruby might not be able to load DLL.
+
+ * test/ruby/test_m17n.rb: move tests from bootstrap test.
+
+ * encoding.c (enc_find): should check name if ASCII compatible.
+
+ * string.c (rb_str_end_with): should check character boundary.
+
+ * encoding.c (rb_enc_compatible): encoding must be ASCII
+ compatible before checking ENC_CODERANGE_7BIT.
+
+ * encoding.c (rb_enc_compatible): wrong compatibility condition.
+ [ruby-dev:33273]
+
+Tue Jan 22 09:26:47 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * string.c (rb_str_each_char): iterates over a shadow.
+ [ruby-dev:33243]
+
+Tue Jan 22 08:59:52 2008 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rdoc/ri/formatter.rb: Indent labeled lists like note lists.
+
+ * test/rdoc/test_rdoc_ri_overstrike_formatter.rb: Added.
+
+ * test/rdoc/test_rdoc_ri_formatter.rb: Added tests.
+
+Tue Jan 22 04:40:28 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * parse.y (rb_intern3): do not call rb_enc_mbclen() if *m is
+ ASCII. [ruby-talk:287225]
+
+ * string.c (rb_str_each_line): use rb_enc_is_newline() to gain
+ performance if the record separator ($/) is not modified.
+
+Tue Jan 22 01:15:51 2008 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
+
+ * ChangeLog: format-time-string under C locale. [ruby-dev:33261]
+
+Tue Jan 22 00:45:12 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * test/ruby/test_bignum.rb: add tests for bignum.c.
+
+Tue Jan 22 00:30:08 2008 Yusuke Endoh <mame@tsg.ne.jp>
+
+ * bignum.c (big_shift): fix a bug that caused infinite loop when
+ left shifting.
+
+Mon Jan 21 20:09:38 2008 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * lib/date.rb (marshal_load): initialize the cache.
+
+Mon Jan 21 19:42:42 2008 Martin Duerst <duerst@it.aoyama.ac.jp>
+
+ * transcode.c, enc/trans/utf_16_32.c, test/ruby/test_transcode.rb:
+ added UTF-32BE and UTF-32LE conversions.
+
+Mon Jan 21 14:36:14 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * transcode.c (str_transcode): initialize transcoder in
+ rb_transcoding. [ruby-dev:33234]
+
+ * transcode_data.h (rb_transcoding): transcoder constified.
+
+Mon Jan 21 12:50:02 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c, gc.c (setjmp): sigsetjmp is a macro on cygwin.
+
+Mon Jan 21 12:35:00 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * transcode.c (transcode_loop, str_transcoding_resize): use unsigned
+ char. [ruby-dev:33232]
+
+ * transcode_data.h (rb_transcoding, rb_transcoder): removed callback
+ parameters.
+
+ * enc/trans/japanese.c: ditto.
+
+ * enc/trans/utf_16_32.c: parenthesized bit-or operands.
+
+Mon Jan 21 11:59:00 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * string.c (rb_str_each_char): move forward. [ruby-dev:33231]
+
+Mon Jan 21 06:40:03 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * transcode.c (transcode_dispatch): constified return value.
+
+ * transcode_data.h (rb_transcoding): include pointer to rb_transcoder
+ and auxiliary data.
+
+ * transcode_data.h (rb_transcoder): all callback functions should have
+ their own parameters.
+
+ * enc/trans/{japanese,single_byte}.c: constified.
+
+Mon Jan 21 03:45:49 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * string.c (rb_str_each_char): advance offset before get next char
+ length. [ruby-dev:33211]
+
+Sun Jan 20 20:00:20 2008 Martin Duerst <duerst@it.aoyama.ac.jp>
+
+ * transcode.c, enc/trans/utf_16_32.c, test/ruby/test_transcode.rb:
+ added UTF-16LE conversions.
+
+ * fixed changelog for last commit
+
+Sun Jan 20 17:54:00 2008 Martin Duerst <duerst@it.aoyama.ac.jp>
+
+ * added changelog for last commit
+
+Sun Jan 20 15:08:08 2008 Martin Duerst <duerst@it.aoyama.ac.jp>
+
+ * enc/trans/utf_16_32.c: new file, currently implementing
+ UTF-16BE conversions only.
+
+ * test/ruby/test_transcode.rb: Added tests for UTF-16BE;
+ made check_both_ways() use force_encoding differently.
+
+ * transcode_data.h, transcode.c: Support for more conversion
+ functions.
+
+Sun Jan 20 13:06:01 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * string.c (rb_str_each_char): performance improvement, and stop if
+ shortened in the block. [ruby-dev:33189]
+
+Sun Jan 20 09:12:26 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * common.mk: use -Ks when read insns.def. [ruby-dev#33185]
+
+ * parse.y: fix -e and stdin strings aren't set encoding.
+
+Sun Jan 20 05:12:44 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * enc/make_encdb.rb: fix duplication check.
+
+Sun Jan 20 05:03:46 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * ascii.c: remove definition of replica KOI8-U.
+
+Sun Jan 20 00:33:59 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * enc/koi8_u.c: added.
+
+ * regenc.c, enc/utf_8.c, enc/unicode.c, enc/gb18030.c: add ARG_UNUSED.
+
+Sat Jan 19 22:41:39 2008 Tanaka Akira <akr@fsij.org>
+
+ * string.c (coderange_scan): don't call mbclen functions for ASCII
+ characters with ASCII compatible encoding.
+
+Sat Jan 19 21:00:34 2008 Tanaka Akira <akr@fsij.org>
+
+ * lib/rdoc/template.rb (RDoc): defined to avoid uninitialized constant
+ error by `./ruby test/rubygems/test_gem_server.rb'.
+
+Sat Jan 19 20:41:29 2008 Tanaka Akira <akr@fsij.org>
+
+ * encoding.c (enc_new): don't free rb_encoding to avoid SEGV by
+ `miniruby -e exit' on x86_64 GNU/Linux.
+
+Sat Jan 19 18:40:19 2008 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * lib/date.rb (once): use an instance variable which points a hash
+ as cache. [experimental]
+
+Sat Jan 19 17:21:29 2008 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * lib/date.rb, lib/date/format.rb: parse's hints as an
+ experimental function has been removed.
+
+Sat Jan 19 11:21:53 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (sigsetjmp): check if available.
+
+ * eval.c, gc.c (setjmp): do not use _setjmp if sigsetjmp is available.
+
+Sat Jan 19 11:10:11 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in: Remove wrong assumptions about Cygwin. a patch from
+ Corinna Vinschen in [ruby-Bugs-17018].
+
+Sat Jan 19 09:23:14 2008 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+
+ * ext/win32ole/win32ole.c (ole_set_safe_array): should not use
+ recursive calling.
+
+ * test/win32ole/test_win32ole_variant.rb: ditto.
+
+Sat Jan 19 08:58:47 2008 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rdoc/markup: Remove ListBase and Line constants.
+
+ * lib/rdoc/ri: Allow output IO to be specified.
+
+ * test/rdoc/parser/test_parse_c.rb: Move up one level, fixed.
+
+ * test/rdoc/parser/test_rdoc_markup_attribute_manager.rb: Renamed to
+ match new class name, updated to match new classes.
+
+ * test/rdoc/test_rdoc_ri_formatter.rb: Start of RI formatting tests.
+
+ * test/rdoc/test_rdoc_ri_attribute_manager.rb: Start of
+ RDoc::RI::AttributeManager tests.
+
+ * test/rdoc/test_simple_markup.rb: Moved to match new class name.
+
+Sat Jan 19 08:35:36 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (parser_prepare): get encoding from the first line.
+ [ruby-dev:33168]
+
+ * ruby.c (load_file): set encoding to input with set_encoding.
+
+Sat Jan 19 03:46:42 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * thread.c (thread_create_core): prohibit thread creation in the
+ frozen thread group. a patch in [ruby-dev:33176] from sheepman
+ <sheepman AT sheepman.sakura.ne.jp>.
+
+ * thread.c (thread_create_core): should inherit ThreadGroup from
+ the current thread.
+
+Sat Jan 19 00:37:19 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * sprintf.c (rb_str_format): set result encoding for wider width.
+
+Sat Jan 19 00:13:19 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * thread_win32.c (w32_wait_events): shouldn't invoke interrupt handle
+ by timer_thread.
+
+Fri Jan 18 23:49:41 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * thread.c (thread_create_core): set thread group before creating
+ thread.
+
+Fri Jan 18 20:19:51 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * parse.y (ripper_initialize): too early to set parser->enc.
+
+Fri Jan 18 20:03:05 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/setup.mak (BASERUBY): nmake cannot execute ruby correctly
+ if the path of ruby.exe is quoted.
+
+ * win32/setup.mak ($(ARCH)): if a macro is appended by $(APPEND),
+ a space will be inserted on the top of the line.
+
+Fri Jan 18 17:56:09 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval_intern.h, insnhelper.h, thread_pthread.h, vm_core.h, vm_opts.h:
+ prefixed include guards with RUBY.
+
+ * id.h: added include guard.
+
+ * regenc.h, regint.h, regparse.h: prefixed include guards with
+ ONIGURUMA.
+
+Fri Jan 18 15:57:05 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * thread.c (thread_cleanup_func): ignore errors from destroying mutex
+ of dead thread. [ruby-core:15069]
+
+ * thread_pthread.c, thread_win32.c (native_thread_destroy): ditto.
+
+Fri Jan 18 15:56:04 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * encoding.c (rb_enc_name_list_i, rb_enc_aliases_enc_i): freeze
+ element strings to be returned.
+
+Fri Jan 18 14:36:34 2008 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
+
+ * test/ruby/test_m17n.rb (test_str_dump): added test for
+ String#dump. [ruby-dev:33142]
+
+Fri Jan 18 12:25:13 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * encoding.c (load_encoding): check if successfully loaded.
+
+ * encoding.c (rb_enc_find_index): use original encoding name to
+ replicate loaded encoding instead alias.
+
+Fri Jan 18 09:43:02 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * re.c (rb_char_to_option_kcode): Regexp switch `s' should mean
+ Windows-31J, as wells as `-Ks'.
+
+Fri Jan 18 09:22:07 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * parse.y (parser_initialize): explicitly call rb_ascii8bit_encoding().
+
+ * parse.y (parser_prepare): lex_input may not be have encoding (e.g. IO).
+
+ * parse.y (rb_parser_compile_string): set encoding from input string.
+
+ * encoding.c (rb_enc_find_index): use ASCII-8BIT if loading known
+ encoding failed.
+
+ * parse.y (ripper_initialize): move parser->enc initialization.
+
+ * encoding.c (rb_enc_aliases_enc_i): exclude non alias names from
+ Encoding.aliases.
+
+ * encoding.c (rb_enc_find_index): use original encoding name to
+ load DLL.
+
+Fri Jan 18 07:06:25 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * io.c (Init_IO): stdin/stdout may not be duplex.
+
+Fri Jan 18 04:27:57 2008 Eric Hodel <drbrain@segment7.net>
+
+ * sample/rdoc/markup/rdoc2latex.rb: Fix for new namespacing.
+
+ * lib/rdoc/markup/to_latex.rb: Fix namespacing.
+
+Fri Jan 18 02:02:28 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * bootstraptest/runner.rb (assert_valid_syntax): added.
+
+ * bootstraptest/test_knownbug.rb: added test for [ruby-list:44479]
+
+Fri Jan 18 01:48:06 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * vm_insnhelper.c (vm_call_method): check argument number to
+ attr_reader. [ruby-core:15120]
+
+Fri Jan 18 00:49:31 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * io.c (rb_io_check_readable): flush tied write IO too.
+
+ * io.c (Init_IO): tie stdin with stdout. [ruby-core:15107]
+
+Fri Jan 18 00:23:31 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * encoding.c (enc_free): removed since rb_encoding may be used while
+ cleanup.
+
+Fri Jan 18 00:17:19 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * enc/euc_cn.c: split from enc/euc_kr.c.
+
+Fri Jan 18 00:03:54 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/stringio/stringio.c (strio_init): use default external encoding
+ if nothing is given. a patch from sheepman <sheepman AT
+ sheepman.sakura.ne.jp> in [ruby-dev:33159].
+
+Thu Jan 17 23:56:20 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * common.mk (encdb.h): give output file name to make_encdb.rb.
+
+ * encoding.c (enc_table): simplified.
+
+ * encoding.c (enc_register_at): lazy loading. [ruby-dev:33013]
+
+ * regenc.h (ENC_DUMMY): added.
+
+ * enc/make_encdb.rb: now emits macros only.
+
+ * enc/iso_2022_jp.h: split from encoding.c.
+
+Thu Jan 17 21:48:21 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * re.c (rb_char_to_option_kcode): fixed typo.
+
+Thu Jan 17 21:01:25 2008 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * lib/date.rb (Date::Infinity#<=>): didn't work. A patch from
+ Dirkjan Bussink <d.bussink AT gmail.com> [ruby-core:15098].
+ This is a bug obviously. However it didn't affect the library's
+ functions.
+
+ * lib/date.rb, lib/date/format.rb: some trivial changes.
+
+Thu Jan 17 13:07:18 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (rb_str_dump): preserve the encoding of source string
+ if it is ASCII compatible. otherwise, add '.force_encoding()'
+ for ugly work around. maybe we should implement some other way
+ to keep non ASCII encoding in dumped string. [ruby-dev:33142]
+
+Thu Jan 17 10:30:32 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * io.c (io_fwrite): always flush IO on tty, even without newlines.
+ [ruby-core:15107]
+
+Wed Jan 16 22:45:27 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * encoding.c (enc_register_at): make own copy. [ruby-dev:33136]
+
+Wed Jan 16 18:03:10 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * io.c (pipe_open, rb_io_s_popen): clear temporary object to release
+ and prevent from GC.
+
+Wed Jan 16 17:55:07 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * numeric.c (fix_quo): typo. a patch from Shin-ichiro HARA
+ <sinara AT blade.nagaokaut.ac.jp> in [ruby-dev:33130]
+
+Wed Jan 16 17:36:26 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * test/test_delegate.rb: add new test file for delegate.rb.
+
+Wed Jan 16 16:14:00 2008 Akinori MUSHA <knu@iDaemons.org>
+
+ * ruby.1: Fix grammar.
+
+Wed Jan 16 15:26:31 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * file.c (sys_fail2): get rid of unlimited alloca.
+
+ * io.c (mode_enc, pipe_open, rb_io_s_popen): ditto.
+
+ * load.c (rb_feature_p): ditto.
+
+ * object.c (rb_cstr_to_dbl): ditto.
+
+ * io.c (mode_enc): fixed uninitialized variable.
+
+Wed Jan 16 12:51:30 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * include/ruby/intern.h (rb_str_tmp_new, rb_str_shared_replace):
+ prototype moved.
+
+Tue Jan 15 23:52:51 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * enc/*: add ARG_UNUSED.
+
+ * enc/koi8_u.c: added.
+
+Tue Jan 15 23:00:08 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * enc/utf_{16,32}{be,le}.c: remove some ARG_UNUSED. replace struct
+ OnigEncodingST by OnigEncoding.
+
+Tue Jan 15 22:30:43 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * encoding.c (ENC_REGISTER): use &OnigEncoding*.
+ (ENCINDEX_UTF_8): renamed from ENCINDEX_UTF8.
+ (rb_enc_init): use ENC_REGISTER.
+
+ * include/ruby/oniguruma.h (OnigEncodingUTF8, ONIG_ENCODING_UTF8):
+ removed.
+
+ * enc/*.c: remove use of &encoding_*; use enc argument instead.
+
+Tue Jan 15 18:44:46 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * enc/utf_8.c: remove use of ONIG_ENCODING_UTF8 altogether; use
+ enc argument instead.
+
+Tue Jan 15 18:05:26 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * enc/utf_8.c (ONIG_ENCODING_UTF8): reverted.
+
+Tue Jan 15 18:01:55 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/Makefile.sub (MKFILES): add dependencies.
+
+Tue Jan 15 18:00:16 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * enc/utf_8.c (OnigEncodingDefine): encoding name should be kept
+ unchanged.
+
+Tue Jan 15 17:53:05 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * enc/utf_8.c: renamed as IANA name.
+
+ * enc/Makefile.in: ditto.
+
+Tue Jan 15 16:59:31 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ruby.c (proc_options): encoding libraries cannot be loaded until
+ load path is set.
+
+Tue Jan 15 15:09:28 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * win32/setup.mak: strip out empty lines from CPP output.
+
+Tue Jan 15 14:57:38 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * {win,bcc}32/setup.mak (-basic-vars-): expand BASERUBY to full path
+ to get rid of ./ruby.exe.
+
+ * win32/enc-setup.mak: workaround for Borland make.
+
+Tue Jan 15 14:44:53 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * encoding.c (rb_locale_charmap): use ASCII-8BIT in miniruby.
+
+Tue Jan 15 13:54:41 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * {bcc32,win32}/Makefile.sub (RUNRUBY): need to set archdir when
+ invoking ruby.
+
+Tue Jan 15 13:43:18 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * common.mk (us_ascii.o): add dependencies. [ruby-dev:33111]
+
+Tue Jan 15 03:41:42 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (eval): check if backtrace is empty. [ruby-core:15040]
+
+Tue Jan 15 01:28:47 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * common.mk: simplified dummy objects dependencies.
+
+Tue Jan 15 01:19:00 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * common.mk (OBJS): moved encoding.o from COMMONOBJS.
+
+ * common.mk (dmyencoding.o): added. [ruby-dev:33099]
+
+ * configure.in, {win,bcc}32/Makefile.sub (MINIOBJS): added
+ dmyencoding.o.
+
+ * dmyencoding.c (rb_locale_charmap): returns nil for miniruby.
+
+Tue Jan 15 00:05:50 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * io.c (appendline): specifying limit should not generate broken
+ byte sequence. strings should be rounded. [ruby-dev:33088]
+
+Mon Jan 14 23:33:02 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * ext/nkf/lib/kconv.rb (Kconv.tolocale): argument is str.
+
+Mon Jan 14 23:31:05 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * configure.in (setup): add -I$(EXTOUT)/$(arch) to MINIRUBY.
+
+ * bootstraptest/runner.rb (main): expand -I directory path.
+
+Mon Jan 14 23:28:10 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/enc-setup.mak (BUILTIN_ENCOBJS): depends on enc/Makefile.in.
+
+Mon Jan 14 22:48:16 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * re.c (rb_char_to_option_kcode): use rb_enc_find_index() instead
+ of using fixed index value.
+
+ * enc/Makefile.in (encsrcdir): make US-ASCII built-in.
+
+Mon Jan 14 22:25:02 2008 WATANABE Hirofumi <eban@ruby-lang.org>
+
+ * golf_prelude.rb: Shorter method name completion. Same method
+ used for const missing. do_while and do_until added. Enumerator
+ gains all of Array's abilities. Ex:
+ '123'.m{|i|i*2} #=> "112233"
+ '123'.pe #=> '123'.perm*' ' #=> "123 132 213 231 312 321"
+ base on a patch from Darren Smith <darrenks AT ml1.net>.
+
+Mon Jan 14 21:10:02 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * enc/us_ascii.c: wrong alias name: ANSI_X3.4-1986.
+
+ * rubytest.rb: add -I#{srcdir} to load encoding DLL.
+
+Mon Jan 14 18:53:58 2008 Koichi Sasada <ko1@atdot.net>
+
+ * thread.c: clear thread structure.
+ (TODO: survey that child process should clear mutex or not).
+
+ * bootstraptest/test_knownbug.rb, test_thread.rb: move a fixed test.
+
+Mon Jan 14 18:43:38 2008 Koichi Sasada <ko1@atdot.net>
+
+ * bootstraptest/runner.rb: add "flunk" method.
+
+ * bootstraptest/test_knownbug.rb: fix to use flunk.
+
+Mon Jan 14 18:10:59 2008 Koichi Sasada <ko1@atdot.net>
+
+ * vm.h: remove dangerous assembler sentence.
+
+Mon Jan 14 18:06:37 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * encoding.c (rb_locale_encoding): return US-ASCII when charmap is
+ nil.
+
+Mon Jan 14 16:12:58 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/shellwords.rb: scape should be an alias to shellescape. a
+ patch from Masahiro Kawato <m-kawato AT mwb.biglobe.ne.jp> in
+ [ruby-dev:33060].
+
+Mon Jan 14 16:09:16 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ruby.1: a patch to describe --encoding. a patch from Yugui
+ <yugui AT yugui.sakura.ne.jp> in [ruby-dev:33079].
+
+ * ruby.c: ditto.
+
+Mon Jan 14 13:49:26 2008 Tanaka Akira <akr@fsij.org>
+
+ * re.c (rb_reg_prepare_re): initialize error message buffer.
+ (rb_reg_search): ditto.
+ (rb_reg_check_preprocess): ditto.
+ (rb_reg_new_str): ditto.
+ (rb_enc_reg_new): ditto.
+ (rb_reg_compile): ditto.
+ (rb_reg_initialize_m): ditto.
+ (rb_reg_s_union_m): ditto.
+
+Mon Jan 14 12:33:07 2008 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rdoc/markup*: Renamespace from SM::SimpleMarkup to
+ RDoc::Markup.
+
+Mon Jan 14 10:45:45 2008 Martin Duerst <duerst@it.aoyama.ac.jp>
+
+ * enc/ascii.c: Exchanged order of arguments for one ENC_ALIAS
+
+Mon Jan 14 09:19:07 2008 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * lib/time.rb: do not reference Time directly from the inside of
+ definitions. [ruby-dev:33059]
+
+Mon Jan 14 05:44:44 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * enc/*.c: add replicas and aliases.
+
+ * enc/make_encdb.h: add duplicate and undefined check.
+
+Mon Jan 14 02:03:05 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * include/ruby/oniguruma.h: remove ONIG_ENCODING_* and OnigEncoding*
+ which are not builtin.
+
+ * regenc.{c,h} (onigenc_mb2_code_to_mbclen, onigenc_mb4_code_to_mbclen):
+ fix prototype.
+
+ * enc/big5.c, enc/euc_kr.c, enc/euc_tw.c, enc/gb18030.c,
+ enc/koi8_r.c, enc/windows_1251.c: imported from Oniguruma.
+
+Sun Jan 13 22:47:28 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * enc/make_encdb.h: sort encoding names by original name.
+
+ * encoding.c, enc/*.c: define replicas and aliases.
+
+Sun Jan 13 20:24:03 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * encoding.c: add documents.
+
+Sun Jan 13 18:41:48 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * encoding.c (Init_Encoding): moved initialization from encdb.h.
+
+ * enc/make_encdb.rb (enc_name_list): constified.
+
+ * enc/make_encdb.rb (enc_init_db): moved some functions to encoding.c.
+
+Sun Jan 13 13:53:00 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ruby.c (load_file): local variable was not initialized when -x flag
+ is given.
+
+ * ruby.c (load_file): script files should not be affected by locale.
+ [ruby-dev:33054]
+
+Sun Jan 13 12:01:32 2008 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rdoc/generators*: Reorganize RDoc generators.
+
+Sun Jan 13 11:41:11 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * encoding.c (ENCINDEX_EUC_JP, ENCINDEX_SJIS): removed.
+ (rb_enc_init): EUC-JP and Shift_JIS are not builtin now.
+
+ * enc/Makefile.in: ditto.
+
+ * common.mk: ditto.
+
+ * ruby.c (proc_options): ditto.
+
+ * enc/shift_jis.c, enc/euc_jp.c: fixes for remove from builtin.
+
+Sun Jan 13 10:21:40 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * encoding.c (enc_table): packed all enc_table stuff.
+
+Sun Jan 13 09:58:17 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * encoding.c (rb_enc_init): revert removing SJIS.
+
+ * enc/sjis.c: move to enc/shift_jis.c, to make encoding name equal to
+ filename for convenience of loading lib.
+
+ * enc/shift_jis.c: moved from enc/sjis.c.
+
+ * common.mk: follows enc/shift_jis.c.
+
+ * enc/Makefile.in: ditto.
+
+Sun Jan 13 09:22:33 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * common.mk (incs): includes encdb.h.
+
+Sun Jan 13 09:17:29 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * {bcc,win}32/Makefile.sub (MV): use move instead of ren. [ruby-Bugs-17019]
+
+Sun Jan 13 01:52:31 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * enc/make_encdb.rb: should work on Ruby 1.8. [ruby-dev:33069]
+
+ * common.mk (encdb.h): pass enc dir from outside to make_encdb.rb.
+
+Sun Jan 13 00:01:07 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * enc/make_encdb.rb: added. search enc/*.c and make encoding database.
+
+ * regenc.h (ENC_REPLICATE, ENC_ALIAS): added for defining replica
+ encoding and encoding alias.
+
+ * encoding.c (rb_enc_init): move alias definitions to enc/*.c.
+ (rb_enc_find_index): search original of replica and alias when no
+ encoding library.
+ (rb_enc_name_list, rb_enc_aliases_enc_i, rb_enc_aliases_str_i,
+ rb_enc_aliases, Encoding.name_list, Encoding.aliases): added.
+ (Init_Encoding): init encdb.
+
+ * enc/ascii.c, enc/us_ascii.c, enc/euc_jp.c, enc/sjis.c:
+ add replica encoding and encoding alias definition.
+
+ * common.mk (dist-clean-local): add rule for remove encdb.h.
+
+Sat Jan 12 18:27:41 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (rb_define_alloc_func, rb_undef_alloc_func): should
+ define/undef on a singleton class. [ruby-core:09959]
+
+Sat Jan 12 12:44:36 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * ext/nkf/nkf.c: rdoc update.
+
+Sat Jan 12 12:01:49 2008 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * lib/date.rb, lib/date/format.rb: tuning for performance.
+
+Sat Jan 12 11:29:45 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * bootstraptest/test_proc.rb: fixed wrong expected result. pointed
+ out by Kornelius "murphy" Kalnbach <murphy AT rubychan.de> in
+ [ruby-core:15022].
+
+Sat Jan 12 04:38:38 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * ruby.c (process_options): -e'script' is locale encoding by default.
+ (load_file): ruby script from stdin is locale encoding by default.
+
+Sat Jan 12 04:31:59 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * ext/nkf/nkf-utf8/nkf.c: fix bug: -m was -m0.
+
+Fri Jan 11 23:22:31 2008 Tanaka Akira <akr@fsij.org>
+
+ * string.c (string.c): call rb_str_buf_append to update encoding of
+ str1, even if str2 is empty.
+
+Fri Jan 11 20:20:16 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * proc.c (proc_mark): needs to mark the receiver too. a patch from
+ Chris Heath <chris AT heathens.co.nz> in [ruby-core:14983].
+ [ruby-core:14885]
+
+Fri Jan 11 18:28:49 2008 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rdoc/usage.rb: Removed.
+
+ * lib/getoptlong.rb: Update example to not use lib/rdoc/usage.rb.
+
+Fri Jan 11 18:17:10 2008 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rdoc/ri/driver.rb (read_yaml): Follow namespace change
+ [ruby-core:14964].
+
+Fri Jan 11 16:55:21 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * string.c (rb_str_append): performance improvement.
+
+Fri Jan 11 12:35:56 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in: moved broken syscall checks from process.c etc.
+
+ * defines.h (WORDS_BIGENDIAN): honor __BIG_ENDIAN__ than the result of
+ configure.
+
+ * lib/rdoc/options.rb (check_diagram): more precise check, darwin
+ is not Windows but mingw is on it.
+
+Fri Jan 11 09:59:05 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * ext/nkf/nkf-utf8/nkf.c: update to r1.163.
+
+ * ext/nkf/nkf.c: ASCII's canonical name is US-ASCII.
+
+ * ext/nkf/lib/kconv.rb (Kconv.isjis): force_encoding('BINARY').
+
+Fri Jan 11 09:23:31 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * encoding.c (set_base_encoding): must use rb_enc_dummy_p.
+
+Fri Jan 11 06:13:14 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * encoding.c (rb_to_encoding_index, rb_to_encoding): disallow nil.
+ [ruby-dev:33003]
+
+Fri Jan 11 01:08:01 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * thread.c (rb_mutex_unlock): proper error message for unlocking
+ mutex that is not locked. a patch from Yusuke ENDOH
+ <mame at tsg.ne.jp> in [ruby-dev:33010].
+
+Thu Jan 10 18:00:41 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * prelude.rb (Mutex::synchronize): capture exception from unlock.
+ [ruby-dev:32935]
+
+Thu Jan 10 10:15:03 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * io.c (io_encoding_set): IO.pipe("euc-jp", nil) should work as
+ IO.pipe("euc-jp", nil). [ruby-dev:33000]
+
+ * io.c (io_encoding_set): handle nil for v1.
+
+Thu Jan 10 02:41:22 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * io.c (rb_io_binmode): should not alter encoding. [ruby-dev:32918]
+
+ * io.c (io_read_encoding): need not to return ASCII-8BIT for
+ binary IO.
+
+Wed Jan 9 22:04:17 2008 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
+
+ * lib/mathn.rb (Prime#each): returns an enumerator if no block
+ given. [ruby-dev:32815]
+
+Wed Jan 9 22:03:26 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * encoding.c (rb_enc_replicate): replica of dummy is a dummy.
+
+Wed Jan 9 20:55:38 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/e2mmap.rb (Exception2MessageMapper::Raise): define fail.
+ [ruby-dev:32854]
+
+Wed Jan 9 20:35:42 2008 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * lib/webrick/httprequest.rb: support X-Forwarded-* header fields.
+ WEBrick::HTTPRequest#{host,port,request_uri} is derived having
+ regards to X-Forwarded-Proto and X-Forwarded-Host.
+
+ * lib/webrick/httprequest.rb
+ (WEBrick::HTTPRequest#server_name?): new method.
+ (WEBrick::HTTPRequest#remote_ip?): new method.
+ (WEBrick::HTTPRequest#ssl?): new method.
+
+Wed Jan 9 18:24:39 2008 WATANABE Hirofumi <eban@ruby-lang.org>
+
+ * golf_prelude.rb (Array#to_s): alias to join.
+
+ * golf_prelude.rb (FalseClass#to_s): return "".
+
+Wed Jan 9 16:59:54 2008 Tanaka Akira <akr@fsij.org>
+
+ * string.c (rb_enc_cr_str_buf_cat): fix self appending.
+
+Wed Jan 9 15:54:24 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ruby.c (process_options): give priority command line encoding option
+ to RUBYOPT, and enable -E option in RUBYOPT.
+
+ * ruby.c (load_file): deal with encoding option in shebang line if
+ nothing in command line and RUBYOPT.
+
+Wed Jan 9 14:55:36 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * parse.y (yycompile0): remove setting parser->enc because it is set
+ in parser_prepare() by previous change of parser_prepare().
+
+Wed Jan 9 14:52:18 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * string.c (rb_enc_cr_str_buf_cat, rb_str_buf_append): deal with self
+ appending.
+
+Wed Jan 9 14:44:57 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * parse.y (parser_prepare): set parser->enc from lex_input for ripper.
+
+Wed Jan 9 13:45:52 2008 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * lib/webrick/server.rb (WEBrick::HTTPServer#start):
+ :DoNotReverseLookup option had not been performed.
+
+Wed Jan 9 13:03:34 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (rb_enc_cr_str_buf_cat): do not recalculate coderange
+ value if it's given from outside.
+
+Wed Jan 9 08:42:01 2008 James Edward Gray II <jeg2@ruby-lang.org>
+
+ * enum.c: Updating the documentation of Enumerable#zip to reflect
+ the recent changes Matz made to the method.
+
+Wed Jan 9 01:35:10 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * enc/Makefile.in (BUILTIN_ENCS): UTF-{16,32}{BE,LE} are not builtin.
+
+Tue Jan 8 23:55:15 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * encoding.c (rb_enc_init): UTF-{16,32}{BE,LE} are not builtin.
+
+Tue Jan 8 22:33:03 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * encoding.c, Makefile.in, include/ruby/oniguruma.h,
+ enc/Makefile.in: fix rules for UTF-{16,32}{BE,LE}.
+
+Tue Jan 8 20:02:08 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * win{32,ce}/Makefile.sub: merged.
+
+Tue Jan 8 19:48:15 2008 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rdoc/ri/driver.rb: Speed up Marshal.load. Fix bug with nested
+ classes' methods.
+
+Tue Jan 8 19:17:29 2008 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rdoc/*: Clean up namespacing of RI's classes.
+
+Tue Jan 8 18:05:35 2008 Eric Hodel <drbrain@segment7.net>
+
+ * bin/ri, lib/rdoc/ri/*: Replace with Ryan Davis' cached ri.
+
+Tue Jan 8 17:32:07 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * enum.c (enum_zip): honor length of the receiver, not the
+ shortest length. [ruby-core:14738]
+
+ * enum.c (enum_zip): returns array not enumerator for no block
+ form. [ruby-core:14738]
+
+ * enumerator.c (next_ii): do not ignore multiple values yielded.
+
+ * array.c (rb_ary_zip): faster version without creating generators.
+
+Tue Jan 8 15:47:43 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * enc/utf{16,32}_{be,le}.c: use &OnigEncodingName(*) instead of
+ ONIG_ENCODING_*.
+
+Tue Jan 8 15:40:31 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * regenc.c (onigenc_strlen_null, onigenc_str_bytelen_null): suppressed
+ warnings.
+
+ * regenc.h, enc/unicode.c (onigenc_unicode_ctype_code_range): added
+ encoding argument.
+
+ * enc/utf{16,32}_{be,le}.c: added init functions.
+
+ * enc/utf{16,32}_{be,le}.c: imported from Oniguruma 5.9.1.
+
+Tue Jan 8 15:03:10 2008 Tanaka Akira <akr@fsij.org>
+
+ * string.c (str_gsub): avoid appending empty pre-match substr.
+
+Tue Jan 8 13:05:57 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * compile.c (iseq_build_from_ary), iseq.c (iseq_load): fix for format change.
+
+Tue Jan 8 07:56:11 2008 Tanaka Akira <akr@fsij.org>
+
+ * string.c (rb_str_buf_append): fix append itself.
+
+Tue Jan 8 01:13:50 2008 Tanaka Akira <akr@fsij.org>
+
+ * string.c (STR_ENC_GET): defined. same as rb_enc_get without
+ enc_capable.
+ (coderange_scan): ASCII-8BIT test refined.
+ (rb_enc_cr_str_buf_cat): new internal function to accumulate
+ strings with encoding.
+ (rb_enc_str_buf_cat): use rb_enc_cr_str_buf_cat.
+ (rb_str_buf_append): ditto
+ (str_gsub): use rb_str_buf_append.
+ (rb_str_hash): use ENCODING_GET.
+ (rb_str_comparable): ditto.
+ (rb_str_cmp): compare encoding index, not rb_encoding address.
+
+Mon Jan 7 20:37:55 2008 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * lib/webrick/httpservlet/cgihandler.rb: external encoding of
+ tempfiles is set to "ASCII-8BIT".
+
+Mon Jan 7 19:39:50 2008 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rdoc/template.rb: Use ERB instead of custom template language.
+
+ * lib/rdoc/generators/template/html/old_html.rb: Remove.
+
+ * lib/rdoc/generators/template/*: Convert to ERB.
+
+Mon Jan 7 19:11:30 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (Init_String): sym_match arity spec was wrong. a patch
+ from Hiroyuki Iwatsuki <don at na.rim.or.jp> in [ruby-dev:32957].
+
+Mon Jan 7 18:10:33 2008 Tanaka Akira <akr@fsij.org>
+
+ * string.c (str_gsub): move rb_enc_get(str) to out of loop.
+
+Mon Jan 7 15:52:10 2008 Tanaka Akira <akr@fsij.org>
+
+ * include/ruby/oniguruma.h (OnigEncodingType): new member
+ ruby_encoding_index to avoid linear search in rb_enc_to_index.
+
+ * include/ruby/encoding.h (rb_enc_to_index): macro defined to use
+ ruby_encoding_index.
+
+ * encoding.c (rb_enc_to_index): removed.
+ (enc_register_at): initialize ruby_encoding_index member.
+
+Mon Jan 7 16:10:35 2008 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rdoc/tokenstream.rb: Namespace under RDoc.
+
+Mon Jan 7 16:06:09 2008 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rdoc/dot.rb: Namespace under RDoc.
+
+ * lib/rdoc/diagram.rb: Clean up formatting.
+
+Mon Jan 7 15:51:35 2008 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rdoc/options.rb: Convert to OptionParser, clean up -h output,
+ namespace under RDoc.
+ * lib/rdoc/*: Namespace RDoc::Options.
+
+Mon Jan 7 15:42:46 2008 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * common.mk, Makefile.in, */Makefile.sub (distclean-local): move
+ removing rule of ext/ripper/y.output from common.mk to Makefiles
+ that depend on platforms.
+
+Mon Jan 7 13:54:57 2008 Tanaka Akira <akr@fsij.org>
+
+ * re.c (rb_reg_preprocess): fix fixed_enc condition.
+
+Mon Jan 7 11:51:49 2008 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rdoc/generators/ri_generator.rb: Merge documentation from the
+ same class on output. Fixes bug where documentation could
+ disappear.
+
+ * lib/rdoc/options.rb: Fix typo.
+
+ * lib/rdoc/generators/*: Clean up some namespacing and make RDoc
+ consistent.
+
+Mon Jan 7 11:44:45 2008 Tanaka Akira <akr@fsij.org>
+
+ * encoding.c (rb_enc_internal_get_index): extracted from
+ rb_enc_get_index.
+ (rb_enc_internal_set_index): extracted from rb_enc_associate_index
+
+ * include/ruby/encoding.h (ENCODING_SET): work over ENCODING_INLINE_MAX.
+ (ENCODING_GET): ditto.
+ (ENCODING_IS_ASCII8BIT): defined.
+ (ENCODING_CODERANGE_SET): defined.
+
+ * re.c (rb_reg_fixed_encoding_p): use ENCODING_IS_ASCII8BIT.
+
+ * string.c (rb_enc_str_buf_cat): use ENCODING_IS_ASCII8BIT.
+
+ * parse.y (reg_fragment_setenc_gen): use ENCODING_IS_ASCII8BIT.
+
+ * marshal.c (has_ivars): use ENCODING_IS_ASCII8BIT.
+
+Mon Jan 7 02:14:07 2008 Tanaka Akira <akr@fsij.org>
+
+ * string.c (coderange_scan): avoid rb_enc_to_index.
+ (rb_enc_str_buf_cat): ditto.
+ (str_cat_char): use rb_enc_str_buf_cat.
+ (rb_str_inspect): ditto.
+
+Mon Jan 7 01:36:49 2008 Tanaka Akira <akr@fsij.org>
+
+ * string.c (coderange_scan): optimize ASCII-8BIT string.
+ (rb_enc_str_buf_cat): don't call coderange_scan if possible.
+
+Mon Jan 7 01:05:45 2008 Tanaka Akira <akr@fsij.org>
+
+ * lib/erb.rb (ERB::Revision): cut off locale dependent string in Date
+ keyword.
+
+Mon Jan 7 00:48:02 2008 Tanaka Akira <akr@fsij.org>
+
+ * Date keyword removed to avoid inclusion of locale dependent
+ string. [ruby-dev:32940]
+
+Sun Jan 6 21:14:12 2008 Tanaka Akira <akr@fsij.org>
+
+ * re.c (rb_reg_initialize_str): forbid raw non ASCII character
+ for ASCII-8BIT regexp in non ASCII-8BIT script.
+
+Sun Jan 6 18:19:12 2008 Tanaka Akira <akr@fsij.org>
+
+ * include/ruby/encoding.h (rb_enc_str_buf_cat): declared.
+
+ * string.c (coderange_scan): extracted from rb_enc_str_coderange.
+ (rb_enc_str_coderange): use coderange_scan.
+ (rb_str_shared_replace): copy encoding and coderange.
+ (rb_enc_str_buf_cat): new function for linear complexity string
+ accumulation with encoding.
+ (rb_str_sub_bang): don't conflict substituted part and replacement.
+ (str_gsub): use rb_enc_str_buf_cat.
+ (rb_str_clear): clear coderange.
+
+ * re.c (rb_reg_regsub): use rb_enc_str_buf_cat.
+
+Sun Jan 6 17:55:44 2008 Technorama Ltd. <oss-ruby@technorama.net>
+
+ * lib/securerandom.rb: Add Win32 support.
+
+Sun Jan 6 09:32:58 2008 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * lib/date.rb, lib/date/format.rb: introduced some constants
+ (for internal use) and aliases (minute and second).
+
+ * sample/cal.rb: trivial adjustments.
+
+Sun Jan 6 01:38:07 2008 Tanaka Akira <akr@fsij.org>
+
+ * re.c (rb_reg_initialize_str): /\x80/n is not an error even if script
+ encoding is EUC-JP.
+
+Sun Jan 6 00:48:12 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * lib/resolv.rb (Resolv::DNS#each_address): get A record and then AAAA
+ record. [ruby-dev:32925]
+
+Sat Jan 5 21:48:03 2008 Tanaka Akira <akr@fsij.org>
+
+ * vm_insnhelper.c (vm_callee_setup_arg): it is not inlinable because
+ alloca is used.
+
+Sat Jan 5 16:50:48 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * string.c (rb_str_resize): copy if old data is not empty
+ [ruby-core:14785]
+
+Sat Jan 5 13:04:24 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ruby.c (proc_options): no need for intermediate object.
+
+Sat Jan 5 11:48:19 2008 Tanaka Akira <akr@fsij.org>
+
+ * encoding.c (Init_Encoding): alias csWindows31J to Windows-31J.
+ IE6 accepts csWindows31J but Windows-31J.
+
+Sat Jan 5 02:21:10 2008 Tanaka Akira <akr@fsij.org>
+
+ * include/ruby/ruby.h (rb_intern): memorize interned ID for constant
+ string, using gcc's __builtin_constant_p and statement expression.
+
+Sat Jan 5 02:14:45 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (trnext): should enable backslash escape.
+
+Sat Jan 5 01:50:32 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (Init_eval): move instance_eval and instance_exec to
+ BasicObject. [ruby-core:14747]
+
+ * lib/delegate.rb: should preserve new methods in BasicObject.
+
+Sat Jan 5 01:46:29 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ruby.c (proc_options): update according to the last API revert.
+
+Sat Jan 5 01:30:30 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * include/ruby/intern.h, re.c (rb_reg_new): keep interface same as
+ 1.8. [ruby-core:14583]
+
+ * include/ruby/intern.h, re.c (rb_reg_new_str): renamed, and defines
+ HAVE_RB_REG_NEW_STR macro to tell if it is available.
+
+ * include/ruby/encoding.h (rb_enc_reg_new): added.
+
+ * insns.def (toregexp), marshal.c (r_object0): use rb_reg_new_str().
+
+ * re.c (rb_reg_regcomp, rb_reg_s_union): ditto.
+
+Fri Jan 4 23:08:48 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * time.c (time_arg): use converted object. [ruby-core:14759]
+
+Fri Jan 4 16:24:58 2008 Tanaka Akira <akr@fsij.org>
+
+ * ext/digest/lib/digest/hmac.rb (Digest::HMAC#initialize): use
+ String#bytesize to avoid test errors on EUC-JP environment.
+
+Fri Jan 4 14:00:50 2008 Tanaka Akira <akr@fsij.org>
+
+ * re.c (rb_reg_prepare_re): check string encoding. Oniguruma doesn't
+ support invalid encoding.
+
+Fri Jan 4 10:22:25 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * re.c (rb_reg_search): avoid inner loop for reverse search.
+
+ * regexec.c: unset USE_MATCH_RANGE_MUST_BE_INSIDE_OF_SPECIFIED_RANGE
+ which is turned on since oniguruma 5.9.1.
+
+Fri Jan 4 02:53:31 2008 Tanaka Akira <akr@fsij.org>
+
+ * enc/euc_jp.c: remove eucjp_ prefix. breakpoint can be specified as
+ euc_jp.c:mbc_enc_len. avoid needless conflict by merge.
+
+ * enc/sjis.c: remove sjis_ prefix.
+
+ * enc/utf8.c: remove utf8_ prefix.
+
+ * enc/iso_8859_1.c: remove iso_8859_1_ prefix.
+
+ * enc/iso_8859_2.c: remove iso_8859_2_ prefix.
+
+ * enc/iso_8859_3.c: remove iso_8859_3_ prefix.
+
+ * enc/iso_8859_4.c: remove iso_8859_4_ prefix.
+
+ * enc/iso_8859_5.c: remove iso_8859_5_ prefix.
+
+ * enc/iso_8859_6.c: remove iso_8859_6_ prefix.
+
+ * enc/iso_8859_7.c: remove iso_8859_7_ prefix.
+
+ * enc/iso_8859_8.c: remove iso_8859_8_ prefix.
+
+ * enc/iso_8859_9.c: remove iso_8859_9_ prefix.
+
+ * enc/iso_8859_10.c: remove iso_8859_10_ prefix.
+
+ * enc/iso_8859_11.c: remove iso_8859_11_ prefix.
+
+ * enc/iso_8859_13.c: remove iso_8859_13_ prefix.
+
+ * enc/iso_8859_14.c: remove iso_8859_14_ prefix.
+
+ * enc/iso_8859_15.c: remove iso_8859_15_ prefix.
+
+ * enc/iso_8859_16.c: remove iso_8859_16_ prefix.
+
+Fri Jan 4 02:47:06 2008 Tanaka Akira <akr@fsij.org>
+
+ * re.c (rb_reg_search): iterate onig_match for reverse mode.
+
+Fri Jan 4 01:20:21 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * win32.h: only VC6 needs extern "C++" for math.h. [ruby-talk:285660]
+
+Fri Jan 4 00:54:43 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * include/ruby/oniguruma.h: Oniguruma 5.9.1 merged.
+
+Fri Jan 4 00:20:47 2008 Tanaka Akira <akr@fsij.org>
+
+ * io.c (io_ungetc): move data in buffer if it is required to store the
+ argument.
+
+Thu Jan 3 21:56:07 2008 Tanaka Akira <akr@fsij.org>
+
+ * include/ruby/ruby.h (st_strcasecmp): declared for STRCASECMP.
+ (st_strncasecmp): declared for STRNCASECMP.
+
+Thu Jan 3 20:24:48 2008 Koichi Sasada <ko1@atdot.net>
+
+ * eval_jump.c (rb_f_catch): Restore cfp if caught thrown object.
+
+Thu Jan 3 19:45:57 2008 Koichi Sasada <ko1@atdot.net>
+
+ * bootstraptest/test_eval.rb, test_knownbug.rb: move a fixed test.
+
+Thu Jan 3 18:39:12 2008 Tanaka Akira <akr@fsij.org>
+
+ * encoding.c: (rb_tolower, rb_toupper): body was exchanged.
+
+Thu Jan 3 17:54:01 2008 Tanaka Akira <akr@fsij.org>
+
+ * regenc.h (onigenc_ascii_is_code_ctype): put back.
+
+Thu Jan 3 17:33:09 2008 Tanaka Akira <akr@fsij.org>
+
+ * encoding.c (rb_isalnum): defined.
+ (rb_isalpha): ditto.
+ (rb_isblank): ditto.
+ (rb_iscntrl): ditto.
+ (rb_isdigit): ditto.
+ (rb_isgraph): ditto.
+ (rb_islower): ditto.
+ (rb_isprint): ditto.
+ (rb_ispunct): ditto.
+ (rb_isspace): ditto.
+ (rb_isupper): ditto.
+ (rb_isxdigit): ditto.
+ (rb_tolower): ditto.
+ (rb_toupper): ditto.
+
+ * include/ruby/ruby.h: don't include include/ruby/encoding.h.
+ (rb_isascii): defined.
+ (rb_isalnum): declared.
+ (rb_isalpha): ditto.
+ (rb_isblank): ditto.
+ (rb_iscntrl): ditto.
+ (rb_isdigit): ditto.
+ (rb_isgraph): ditto.
+ (rb_islower): ditto.
+ (rb_isprint): ditto.
+ (rb_ispunct): ditto.
+ (rb_isspace): ditto.
+ (rb_isupper): ditto.
+ (rb_isxdigit): ditto.
+ (rb_tolower): ditto.
+ (rb_toupper): ditto.
+ (ISASCII): simplified.
+ (ISPRINT): ditto.
+ (ISSPACE): ditto.
+ (ISUPPER): ditto.
+ (ISLOWER): ditto.
+ (ISALNUM): ditto.
+ (ISALPHA): ditto.
+ (ISDIGIT): ditto.
+ (ISXDIGIT): ditto.
+ (TOUPPER): ditto.
+ (TOLOWER): ditto.
+
+ * include/ruby/encoding.h (rb_isascii): removed.
+ (rb_isalnum): ditto.
+ (rb_isalpha): ditto.
+ (rb_isblank): ditto.
+ (rb_iscntrl): ditto.
+ (rb_isdigit): ditto.
+ (rb_isgraph): ditto.
+ (rb_islower): ditto.
+ (rb_isprint): ditto.
+ (rb_ispunct): ditto.
+ (rb_isspace): ditto.
+ (rb_isupper): ditto.
+ (rb_isxdigit): ditto.
+ (rb_tolower): ditto.
+ (rb_toupper): ditto.
+
+ * common.mk: dependency updated.
+
+Thu Jan 3 15:10:26 2008 Tanaka Akira <akr@fsij.org>
+
+ * include/ruby/encoding.h (rb_isascii): simplified.
+ (rb_isalnum): call onigenc_ascii_is_code_ctype without indirect call.
+ (rb_isalpha): ditto.
+ (rb_isblank): ditto.
+ (rb_iscntrl): ditto.
+ (rb_isdigit): ditto.
+ (rb_isgraph): ditto.
+ (rb_islower): ditto.
+ (rb_isprint): ditto.
+ (rb_ispunct): ditto.
+ (rb_isspace): ditto.
+ (rb_isupper): ditto.
+ (rb_isxdigit): ditto.
+
+ * include/ruby/oniguruma.h (onigenc_ascii_is_code_ctype): declaration
+ moved from regenc.h.
+
+Thu Jan 3 14:37:17 2008 Tanaka Akira <akr@fsij.org>
+
+ * parse.y (parser_magic_comment): use STRNCASECMP.
+ (set_file_encoding): ditto.
+
+Thu Jan 3 11:44:37 2008 Tanaka Akira <akr@fsij.org>
+
+ * time.c: don't mention an obsolete library, ParseDate.
+
+Thu Jan 3 11:28:58 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * io.c (fptr_finalize): clear errno first. [ruby-talk:284492]
+
+Thu Jan 3 05:02:36 2008 Tanaka Akira <akr@fsij.org>
+
+ * enc/us_ascii.c: add us_ascii_ prefix for functions to ease
+ setting breakpoint when debugging.
+
+ * enc/euc_jp.c: add eucjp_ prefix.
+
+ * enc/sjis.c: add sjis_ prefix.
+
+ * enc/iso_8859_1.c: add iso_8859_1_ prefix.
+
+ * enc/iso_8859_2.c: add iso_8859_2_ prefix.
+
+ * enc/iso_8859_3.c: add iso_8859_3_ prefix.
+
+ * enc/iso_8859_4.c: add iso_8859_4_ prefix.
+
+ * enc/iso_8859_5.c: add iso_8859_5_ prefix.
+
+ * enc/iso_8859_6.c: add iso_8859_6_ prefix.
+
+ * enc/iso_8859_7.c: add iso_8859_7_ prefix.
+
+Thu Jan 3 02:44:34 2008 Tanaka Akira <akr@fsij.org>
+
+ * bignum.c (conv_digit): use ISDIGIT, ISLOWER and ISUPPER.
+
+Wed Jan 2 23:50:15 2008 Tanaka Akira <akr@fsij.org>
+
+ * util.c (ruby_strtoul): "0x", "+" and "-" is not a valid integer.
+ end of integer should be just after "0", the beginning, the
+ beginning respectively.
+
+Wed Jan 2 15:23:15 2008 Tanaka Akira <akr@fsij.org>
+
+ * util.c (ruby_strtoul): locale independent strtoul is implemented to
+ avoid "i".to_i(36) cause 0 under tr_TR locale on Debian GNU/Linux
+ 4.0 (Etch).
+ This is newly implemented, not a copy of missing/strtoul.c.
+
+ * include/ruby/ruby.h (ruby_strtoul): declared.
+ (STRTOUL): defined to use ruby_strtoul.
+
+ * bignum.c, pack.c, ext/socket/socket.c: use STRTOUL.
+
+ * configure.in (strtoul): don't check.
+
+ * missing/strtoul.c: removed.
+
+ * include/ruby/missing.h (strtoul): removed.
+
+ * common.mk (strtoul.o): removed.
+
+ * LEGAL (missing/strtoul.c): removed.
+
+Wed Jan 2 14:41:08 2008 Tanaka Akira <akr@fsij.org>
+
+ * common.mk (strcasecmp.o): removed.
+ (strncasecmp.o): removed.
+
+ * include/ruby/missing.h (strcasecmp): removed.
+ (strncasecmp): removed.
+
+Wed Jan 2 11:34:57 2008 Tanaka Akira <akr@fsij.org>
+
+ * missing/strcasecmp.c: removed. Ruby don't use locale dependent
+ strcasecmp.
+
+ * missing/strncasecmp.c: ditto.
+
+ * configure.in: don't check strcasecmp and strncasecmp.
+
+ * LEGAL: missing/strcasecmp.c and missing/strncasecmp.c removed.
+
+Wed Jan 2 10:13:54 2008 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * sample/time.rb: use Process.times instead of Time.times.
+
+Wed Jan 2 09:09:53 2008 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * sample/goodfriday.rb: examples for date are enough. retired.
+
+Wed Jan 2 08:58:54 2008 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * sample/cal.rb: just updated with the newest version.
+
+Wed Jan 2 01:19:31 2008 Tanaka Akira <akr@fsij.org>
+
+ * enc/depend: dependency updated.
+
+Wed Jan 2 00:14:41 2008 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * ext/nkf/nkf-utf8/{nkf.c, utf8tbl.c}: Update nkf.
+
+ * ext/nkf/nkf.c: fix documents.
+
+ * ext/nkf/lib/kconv.rb: fix documents.
+ (Kconv.is*): use valid_encoding?.
+ (Kconv.isjis): defined.
+
+Tue Jan 1 23:17:03 2008 Tanaka Akira <akr@fsij.org>
+
+ * common.mk: dependency updated.
+
+Tue Jan 1 21:11:33 2008 Tanaka Akira <akr@fsij.org>
+
+ * include/ruby/encoding.h (rb_isascii): defined.
+ (rb_isalnum): ditto.
+ (rb_isalpha): ditto.
+ (rb_isblank): ditto.
+ (rb_iscntrl): ditto.
+ (rb_isdigit): ditto.
+ (rb_isgraph): ditto.
+ (rb_islower): ditto.
+ (rb_isprint): ditto.
+ (rb_ispunct): ditto.
+ (rb_isspace): ditto.
+ (rb_isupper): ditto.
+ (rb_isxdigit): ditto.
+ (rb_tolower): ditto.
+ (rb_toupper): ditto.
+
+ * include/ruby/st.h (st_strcasecmp): declared.
+ (st_strncasecmp): ditto.
+
+ * st.c (type_strcasehash): use st_strcasecmp instead of strcasecmp.
+ (st_strcasecmp): defined.
+ (st_strncasecmp): ditto.
+
+ * include/ruby/ruby.h: include include/ruby/encoding.h.
+ (ISASCII): use rb_isascii.
+ (ISPRINT): use rb_isprint.
+ (ISSPACE): use rb_isspace.
+ (ISUPPER): use rb_isupper.
+ (ISLOWER): use rb_islower.
+ (ISALNUM): use rb_isalnum.
+ (ISALPHA): use rb_isalpha.
+ (ISDIGIT): use rb_isdigit.
+ (ISXDIGIT): use rb_isxdigit.
+ (TOUPPER): defined.
+ (TOLOWER): ditto.
+ (STRCASECMP): ditto.
+ (STRNCASECMP): ditto.
+
+ * dir.c, encoding.c, file.c, hash.c, process.c, ruby.c, time.c,
+ transcode.c, ext/readline/readline.c: use locale insensitive
+ functions. [ruby-core:14662]
+
+Tue Jan 1 17:50:47 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * io.c (rb_io_mode_enc): encoding spec is not allowed in binary mode.
+ [ruby-dev:32913]
+
+Tue Jan 1 14:41:56 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/rexml: 1.9 patch from Sam Ruby mentioned in his blog:
+ <http://intertwingly.net/blog/2007/12/31/Porting-REXML-to-Ruby-1-9>
+ [ruby-core:14639]
+
+Tue Jan 1 14:15:04 2008 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (rb_str_substr): offset movement bug. a patch from
+ Vincent Isambart <vincent.isambart at gmail.com> in
+ [ruby-core:14647]. [ruby-core:14644]
+
+Tue Jan 1 01:29:04 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * encoding.c (rb_to_encoding): raises for non-nil, non-encoding,
+ non-string object. [ruby-core:14634]
+
+Tue Jan 1 01:04:06 2008 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ruby.c (process_options): rejects dummy encoding.
+
+Mon Dec 31 23:53:55 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ruby.c (proc_options, process_options): delays finding encoding
+ until load_path is set.
+
+Mon Dec 31 23:27:17 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * string.c (rb_str_resize): embeds if ptr is null. [ruby-dev:32819]
+
+Mon Dec 31 23:17:22 2007 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * lib/webrick/httpproxy.rb (WEBrick::HTTPProxyServer#proxy_service):
+ call do_XXX which correspond with request method.
+ (WEBrick::HTTPProxyServer#do_CONNECT,do_GET,do_POST,do_HEAD): added.
+
+ * test/webrick/test_httpproxy.rb: add test for WEBrick::HTTPProxyServer.
+
+Mon Dec 31 22:53:29 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * thread_pthread.c (native_sleep): timespec tv_sec may overflow on
+ some platform. a patch from zunda <zunda616e AT yahoo.co.jp> in
+ [ruby-dev:32904].
+
+Mon Dec 31 19:35:20 2007 Tanaka Akira <akr@fsij.org>
+
+ * string.c (IS_7BIT): removed.
+ (single_byte_optimizable): new function to test optimizationability
+ using single byte string.
+ (str_strlen): use single_byte_optimizable instead of
+ is_ascii_string.
+ (str_nth): rename argument: asc -> singlebyte.
+ (str_offset): ditto.
+ (rb_str_substr): use single_byte_optimizable instead of IS_7BIT.
+ (rb_str_index): ditto.
+ (rb_str_rindex): ditto.
+ (rb_str_splice): ditto.
+ (rb_str_justify): ditto.
+
+Mon Dec 31 07:39:31 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * main.c, goruby.c (RUBY_MAIN_INIT): removed.
+
+ * goruby.c (goruby_run_node): run after ruby_init_loadpath() so that
+ require works, and protect the call.
+
+Mon Dec 31 06:50:38 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * common.mk: not use -I$(srcdir)/lib with $(MINIRUBY) for cross
+ compiling.
+
+ * configure.in, {win,bcc}32/Makefile.sub (MINIRUBY): -I$(srcdir)/lib
+ moved.
+
+Mon Dec 31 06:08:34 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * include/ruby/encoding.h (rb_enc_sprintf, rb_enc_vsprintf): prototyped.
+
+ * sprintf.c (rb_enc_sprintf, rb_enc_vsprintf): new functions to format
+ arguments with encoding.
+
+Sun Dec 30 23:48:00 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * golf_prelude.rb (String#/): define / as split, as association of
+ Array#*.
+
+Sun Dec 30 23:19:06 2007 WATANABE Hirofumi <eban@ruby-lang.org>
+
+ * golf_prelude.rb (@@golf_hash): for performance improvement.
+
+Sun Dec 30 22:44:50 2007 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * lib/date.rb (_valid_time?): I'm not sure to recommend such an
+ expression. but anyway it is acceptable now. [ruby-core:14580]
+
+Sun Dec 30 21:54:26 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (program, yycompile0): too early to drop lex_lastline in
+ rules.
+
+Sun Dec 30 19:23:23 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * bootstraptest/test_knownbug.rb: support DOSISH.
+
+Sun Dec 30 17:43:54 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * encoding.c (Init_Encoding): registered rb_encoding differs from
+ ONIG_ENCODINGs.
+
+Sun Dec 30 13:56:15 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (program): clear input strings after all process.
+
+ * parse.y (parser_nextc, parser_yylex): should not drop lex_lastline
+ while lex_p is valid. [ruby-dev:32896]
+
+Sun Dec 30 10:54:49 2007 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * configure.in: rm largefile.h.
+
+ * common.mk: clean golf, conf*, preludes, and so on.
+
+ * enc/depend: silent and ignore error for rm.
+
+ * enc/Makefile.in: should define prefix and exec_prefix.
+
+Sun Dec 30 06:31:11 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * encoding.c (Init_encoding): register Windows-31J and its alias.
+ [ruby-dev:32843]
+
+ * ruby.c (proc_options): -Ks options means Windows-31J, not Shift_JIS.
+
+Sun Dec 30 06:27:38 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * lib/mkmf.rb (depend_rules): need to convert `/' to `\' for windows
+ native commands.
+
+Sun Dec 30 01:43:56 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * enc/Makefile.in (DLDFLAGS): like as extensions. [ruby-core:14567]
+
+Sat Dec 29 23:48:13 2007 Tanaka Akira <akr@fsij.org>
+
+ * io.c (io_fflush): don't retry when wbuf modified by other threads.
+
+Sat Dec 29 22:44:30 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * re.c (rb_reg_regsub): returns the given string itself if nothing
+ changed.
+
+ * string.c (rb_str_sub_bang): keeps code-range as possible.
+
+ * string.c (str_gsub): adjusts code-range. [ruby-core:14566]
+
+Sat Dec 29 21:54:37 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * common.mk (clean, distclean, realclean): should include clean-enc
+ and others. [ruby-dev:32887]
+
+Sat Dec 29 13:29:29 2007 Tanaka Akira <akr@fsij.org>
+
+ * bootstraptest/test_knownbug.rb: add a test reported by
+ Kazuhiro NISHIYAMA. [ruby-dev:32819].
+ add a test reported by Frederick Cheung. [ruby-core:14556].
+
+ * test/ruby/test_m17n.rb (test_gsub): add a test reported by
+ Sam Ruby. [ruby-core:14566]
+
+Sat Dec 29 04:46:58 2007 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * lib/test/unit/assertions.rb (Test::Unit::Assertions#assert_throws):
+ throw won't raise NameError nor ThreadError but ArgumentError on 1.9.
+ (Test::Unit::Assertions#assert_not_throws): ditto.
+
+ * test/testunit/test_assertions.rb: add assertions for throwing some
+ objects other than Symbol.
+
+Sat Dec 29 03:10:12 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * io.c (io_unread): fix typo.
+
+Sat Dec 29 02:18:45 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * io.c (io_unread): adhoc workaround for non-binary mode of some DOSish
+ platforms. this is not perfect and safety, but works with most cases.
+
+Fri Dec 28 23:53:18 2007 Tanaka Akira <akr@fsij.org>
+
+ * ext/strscan/strscan.c (str_new): new function for allocate an string
+ with encoding propagation.
+ (extract_range): use str_new.
+ (extract_beg_len): ditto.
+ (strscan_peek): ditto.
+ (strscan_rest): ditto.
+
+Fri Dec 28 20:18:42 2007 WATANABE Hirofumi <eban@ruby-lang.org>
+
+ * golf_prelude.rb (Object.say): derived from Perl 5.10.
+
+Fri Dec 28 19:39:34 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * encoding.c (rb_locale_encoding): should check return value from
+ rb_locale_charmap().
+
+ * ruby.c (locale_encoding): removed.
+
+ * ruby.c (process_options): use rb_locale_encoding() instead of
+ locale_encoding().
+
+ * ext/readline/readline.c (readline_readline): use locale encoding
+ instead of input IO's encoding. [ruby-dev:32872]
+
+Fri Dec 28 19:29:07 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * ext/readline/readline.c (readline_readline, readline_s_set_input):
+ use mReadline directly because self is not always same.
+
+Fri Dec 28 19:11:28 2007 Tanaka Akira <akr@fsij.org>
+
+ * encoding.c (rb_locale_encoding): defined.
+
+ * include/ruby/encoding.h (rb_locale_encoding): declared.
+
+Fri Dec 28 18:45:29 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * ext/readline/readline.c (readline_readline): set encoding to result.
+
+ * ext/readline/readline.c (readline_s_set_input, Init_readline): save
+ input IO to hidden instance variable.
+
+Fri Dec 28 01:55:04 2007 Martin Duerst <duerst@it.aoyama.ac.jp>
+
+ * transcode.c (transcode_dispatch): reverted some of the changes
+ in r14746.
+
+ * transcode.c, enc/trans/single_byte.c: Added conversions to/from
+ US-ASCII and ASCII-8BIT (using data tables).
+
+ * enc/trans/single_byte.c: Some spacing/ordering changes due to
+ automatic data file generation.
+
+ * transcode_data.h, transcode.c: Preliminary code for using
+ micro-conversion functions.
+
+ * test/ruby/test_transcode.rb: Added some tests for US-ASCII and
+ ASCII-8BIT conversions.
+
+Fri Dec 28 17:33:44 2007 Tanaka Akira <akr@fsij.org>
+
+ * time.c (make_time_t): verify mktime and timegm result.
+
+Fri Dec 28 16:36:33 2007 NARUSE, Yui <naruse@airemix.com>
+
+ * lib/resolv.rb (Resolv::DNS#each_address): now returns IPv6 address.
+
+Fri Dec 28 16:10:00 2007 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rdoc/dot/dot.rb: Move to lib/rdoc/dot.rb. Fix namespacing.
+
+ * lib/rdoc/diagram.rb: Update for 1.9.
+
+Fri Dec 28 15:38:29 2007 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rdoc/markup/sample/: Move to sample/rdoc/markup directory.
+
+Fri Dec 28 15:15:12 2007 Akinori MUSHA <knu@iDaemons.org>
+
+ * lib/irb/completion.rb: Remove garbage ("X=1").
+
+Fri Dec 28 15:12:05 2007 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rdoc, test/rdoc: Move RDoc tests out of lib/.
+
+Fri Dec 28 15:10:47 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * encoding.c (set_base_encoding, enc_base_encoding): renamed
+ based_encoding as base_encoding.
+
+Fri Dec 28 13:57:49 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * golf_prelude.rb (Integer#each): use alias simply.
+
+Fri Dec 28 13:45:21 2007 Akinori MUSHA <knu@iDaemons.org>
+
+ * golf_prelude.rb (Object.const_missing): No need to delegate to
+ superclass. Just raise a NameError when none matches.
+
+Fri Dec 28 13:18:47 2007 Kouhei Sutou <kou@cozmixng.org>
+
+ * lib/rss/rss.rb, test/rss/test_version.rb: 0.2.2 -> 0.2.3.
+
+ * lib/rss/parser.rb, test/rss/test_parser.rb: supported "-" in tag name.
+ Reported by Ray Chen. Thanks.
+
+Fri Dec 28 13:07:31 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * gc.c (os_obj_of): returns an enumerator if no block given. based on
+ a patch from Yugui <yugui AT yugui.sakura.ne.jp>. [ruby-dev:32828]
+
+Fri Dec 28 11:46:04 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * tool/ytab.sed: skip yydestruct hack unless yymsg exists, for bison
+ 1.8 series. [ruby-dev:32825]
+
+Fri Dec 28 11:39:02 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * golf_prelude.rb (Object.quine): need to join because SCRIPT_LINES__[]
+ returns an array of lines.
+
+Fri Dec 28 11:16:53 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * golf_prelude.rb (Object.quine): get the script itself.
+
+Fri Dec 28 10:06:54 2007 Akinori MUSHA <knu@iDaemons.org>
+
+ * golf_prelude.rb (Object.const_missing): Auto-complete constants.
+
+Fri Dec 28 01:55:04 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * transcode.c (transcode_dispatch): allows transcoding from/to
+ ASCII-8BIT.
+
+Fri Dec 28 01:47:25 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * golf_prelude.rb (Integer): Integer is now enumerable on goruby.
+
+Fri Dec 28 01:27:47 2007 Tanaka Akira <akr@fsij.org>
+
+ * lib/rdoc/rdoc.rb (parse_files): don't depend on the default external
+ encoding.
+
+Fri Dec 28 00:01:57 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * common.mk (golf_prelude.c): use MINIRUBY instead of BASERUBY because
+ tool/compile_prelude.rb requires rbconfig.rb.
+
+Thu Dec 27 23:56:01 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * mkconfig.rb: should not use the libraries under the source directory
+ at cross compiling.
+
+Thu Dec 27 23:43:35 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * cygwin/GNUmakefile.in (EXTOBJS): uses ruby.rc always for other than
+ rubyw.exe.
+
+Thu Dec 27 22:31:37 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * lib/rubygems/commands/update_command.rb (do_rubygems_update): use
+ portable and safely ENV operation. reported in
+ <http://slashdot.jp/developers/comments.pl?sid=384937&cid=1273085>.
+
+Thu Dec 27 21:47:04 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * mkconfig.rb (prefix): archdir is "1.9.0", not "1.9". reported in
+ <http://slashdot.jp/developers/comments.pl?sid=384937&cid=1273085>.
+
+Thu Dec 27 17:57:30 2007 Tanaka Akira <akr@fsij.org>
+
+ * parse.y, transcode_data.h, transcode.c, lib/weakref.rb,
+ lib/irb/ruby-lex.rb, lib/irb/lc/error.rb, enc/trans/japanese.c:
+ change "illegal" to "invalid" in a context which doesn't against
+ a law.
+
+Thu Dec 27 16:37:06 2007 Tanaka Akira <akr@fsij.org>
+
+ * re.c (rb_reg_s_union): show encodings in error message.
+
+Thu Dec 27 15:25:16 2007 Tanaka Akira <akr@fsij.org>
+
+ * encoding.c (rb_enc_codelen): show codepoint in error message.
+
+ * include/ruby/encoding.h (rb_enc_codelen): comment it returns
+ positive integer.
+
+ * string.c (rb_str_concat): rb_enc_codelen doesn't return 0.
+
+Thu Dec 27 15:18:44 2007 Tanaka Akira <akr@fsij.org>
+
+ * encoding.c (rb_enc_codelen): error message refined.
+
+Thu Dec 27 15:11:27 2007 Tanaka Akira <akr@fsij.org>
+
+ * encoding.c (rb_enc_check): show encodings in error message.
+
+Thu Dec 27 15:02:52 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * string.c (rb_str_casecmp): fixed using a wrong variable.
+ [ruby-list:44402]
+
+Thu Dec 27 14:34:38 2007 Tanaka Akira <akr@fsij.org>
+
+ * io.c (io_fflush): checks wbuf modification by other threads.
+ not perfect. it need locks.
+
+Thu Dec 27 10:44:03 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ext/socket/socket.c: a patch to support IRIX from Andrew
+ Thompson <andrew@hijacked.us> in [ruby-core:14447].
+
+Thu Dec 27 02:25:45 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * lib/mkmf.rb (create_tmpsrc): retry to create file if Errno::EACCES
+ occurs. this is a workaround for mswin32.
+
+Wed Dec 26 22:47:31 2007 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * lib/resolv.rb (Resolv::DNS::Name.==): fix for other is array of
+ Resolv::DNS::Label::Str.
+
+ * lib/resolv.rb (Resolv::DNS::MessageEncoder#put_label): String#string
+ is not defined, so replace to_s.
+
+ * lib/resolv.rb (Resolv::IPv6#to_name): ip6.int is obsoleted by
+ ip6.arpa.
+
+Wed Dec 26 21:27:02 2007 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * lib/date/format.rb (_xmlschema): some improvements.
+
+ * lib/date/format.rb (_parse): a new hint compfunc. [experimental]
+
+Wed Dec 26 17:31:08 2007 Tanaka Akira <akr@fsij.org>
+
+ * io.c (io_fflush): check closed fptr after rb_write_internal to avoid
+ SEGV on MacOS X.
+
+Wed Dec 26 16:10:17 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * string.c (Init_String): defines chars method.
+
+Wed Dec 26 14:38:43 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * instruby.rb: install goruby if exists.
+
+Wed Dec 26 13:55:02 2007 James Edward Gray II <jeg2@ruby-lang.org>
+
+ * lib/csv.rb: Cleaned up some code with Ruby 1.9 idioms.
+
+Wed Dec 26 13:29:35 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * array.c (tmpbuf): use rb_str_tmp_new().
+
+Wed Dec 26 00:57:53 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/json/ext/generator/generator.c (Init_generator): requires
+ json/common.rb for GeneratorError, when static linked. a patch from
+ Kenta Murata <muraken AT gmail.com> in [ruby-dev:32789].
+
+Tue Dec 25 23:33:55 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * development version 1.9.0 released.
+
+Tue Dec 25 23:25:29 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/rexml/node.rb (REXML::Node::indent): should initialize rv
+ variable. a patch from Tadayoshi Funaba <tadf AT dotrb.org> in
+ [ruby-dev:32783].
+
+Tue Dec 25 23:16:01 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ruby.c (proc_options): encoding option in shebang and RUBYOPT did not
+ work, do not store alloca()ed string in a parent scope struct.
+
+Tue Dec 25 22:56:52 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/Makefile.sub (config.status): keep this file.
+
+Tue Dec 25 22:55:42 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (TIMEZONE_VOID): typo.
+
+Tue Dec 25 22:45:10 2007 Koichi Sasada <ko1@atdot.net>
+
+ * insns2vm.rb: add encoding option to shebang.
+
+Tue Dec 25 22:13:51 2007 Koichi Sasada <ko1@atdot.net>
+
+ * bootstraptest/pending.rb: add pending issue.
+
+Tue Dec 25 22:12:40 2007 Koichi Sasada <ko1@atdot.net>
+
+ * thread.c: remove Thread.critical(=).
+
+Tue Dec 25 21:44:50 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * tool/make-snapshot: add version number.
+
+Tue Dec 25 21:32:54 2007 Koichi Sasada <ko1@atdot.net>
+
+ * compile.c (iseq_compile_each): fix stack consistency error
+ (break is compiled to throw instead of jump insn).
+ these problems are reported by Yusuke ENDOH <mame AT tsg.ne.jp>
+
+ * bootstraptest/test_knownbug.rb, test_syntax.rb: move fixed test.
+
+Tue Dec 25 21:32:44 2007 Tanaka Akira <akr@fsij.org>
+
+ * parse.y (struct parser_params): make parser_ruby_sourcefile common
+ field. it is used by node_newnode.
+ new field parser_ruby_sourcefile_string for ripper.
+ (parser_initialize): initialize parser_ruby_sourcefile in ripper.
+ (ripper_initialize): initialize parser_ruby_sourcefile_string.
+
+Tue Dec 25 21:26:09 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * common.mk (parse.c): depends on tool/ytab.sed.
+
+ * tool/ytab.sed: hack for bison 2.1.
+
+Tue Dec 25 20:24:58 2007 Technorama Ltd. <oss-ruby@technorama.net>
+
+ * ext/openssl/ossl_ssl.c: Only show a warning if the default
+ DH callback is actually used.
+
+ * ext/openssl/ossl_rand.c: New method: random_add().
+
+Tue Dec 25 20:24:48 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * tool/make-snapshot: argument check, and cleanup exported directory.
+
+Tue Dec 25 20:07:13 2007 WATANABE Hirofumi <eban@ruby-lang.org>
+
+ * tool/make-snapshot: more portable.
+
+Tue Dec 25 19:01:04 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * encoding.h (rb_enc_mbc_to_codepoint): wrapper for
+ ONIGENC_MBC_TO_CODE().
+
+ * string.c (rb_str_succ): deal with invalid sequence as binary.
+
+Tue Dec 25 18:40:46 2007 Koichi Sasada <ko1@atdot.net>
+
+ * iseq.c: all methods need $SAFE < 1.
+
+ vm.c: comment out debug functions.
+
+Tue Dec 25 18:37:42 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * io.c (appendline): move RS comparison to rb_io_getline_1().
+
+Tue Dec 25 18:27:51 2007 Tanaka Akira <akr@fsij.org>
+
+ * string.c (rb_str_each_line): don't call rb_enc_codepoint with empty
+ string.
+
+Tue Dec 25 18:06:04 2007 Tanaka Akira <akr@fsij.org>
+
+ * string.c (rb_str_inspect): don't call rb_enc_codepoint with empty
+ string. fix '#'.inspect.
+
+ * encoding.c (rb_enc_codepoint): raise on empty string.
+
+Tue Dec 25 17:48:28 2007 Shugo Maeda <shugo@ruby-lang.org>
+
+ * vm.c (rb_frame_method_id_and_class): new function to get the
+ method id and class of the current frame.
+
+Tue Dec 25 17:32:04 2007 Akinori MUSHA <knu@iDaemons.org>
+
+ * lib/mkmf.rb (create_makefile): Add a missing dependency on the
+ target directory for each .rb file. This will hopefully fix
+ parallel make (-jN). Tested on FreeBSD.
+
+Tue Dec 25 16:51:07 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * enc/trans/japanese.c (rb_{from,to}_{SHIFT_JIS,EUC_JP}): inversed
+ from_encoding and to_encoding.
+
+Tue Dec 25 16:41:57 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * golf_prelude.rb (h): add new method for all golfers.
+
+Tue Dec 25 16:37:12 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * enc/trans/japanese.c (rb_to_EUC_JP): fixed typo.
+
+Tue Dec 25 16:34:58 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * ext/dl/depend: add dependencies. [ruby-dev:32760]
+
+Tue Dec 25 16:26:48 2007 Koichi Sasada <ko1@atdot.net>
+
+ * include/ruby/ruby.h, thread.c: rename is_ruby_native_thread() to
+ ruby_native_thread_p().
+
+ * ext/tk/tcltklib.c: apply it.
+
+Tue Dec 25 16:15:15 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * common.mk (clean-enc): clean encoding objects.
+
+Tue Dec 25 16:04:28 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * common.mk, goruby.c, golf_prelude.rb: for golfers.
+
+ * main.c (main): hook for embedding applications.
+
+ * tool/compile_prelude.rb: can change initialize function name.
+
+Tue Dec 25 15:59:51 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * encoding.c (rb_enc_register): do not use based_encoding to check if
+ dummy encoding.
+
+Tue Dec 25 15:55:14 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * string.c (rb_str_succ): fix for string with non-alphanumeric chars.
+
+Tue Dec 25 15:42:49 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * io.c (rb_io_external_encoding): should return nil for
+ pass-through write IO. [ruby-dev:32740]
+
+Tue Dec 25 15:24:57 2007 Tanaka Akira <akr@fsij.org>
+
+ * io.c (appendline): initialize rslen to 1 if rsptr is 0.
+ rslen is the length of the delimiter.
+ if only delim is given, it should be 1.
+ [ruby-dev:32746]
+
+Tue Dec 25 15:21:33 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * transcode.c (transcode_dispatch): fix for multistep transcode.
+
+Tue Dec 25 15:07:51 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * enc/trans/single_byte.c (Init_single_byte): renamed.
+
+Tue Dec 25 15:00:33 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * enum.c (enum_yield): when multiple values yielded from #each
+ pack them into an array. [ruby-dev:32708]
+
+ * enum.c: all method but all?, any?, one? and none? passed packed
+ multiple values to the block.
+
+ * enum.c (collect_all): should pack all values. [ruby-core:14410]
+
+Tue Dec 25 14:57:00 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * common.mk (COMMONOBJS): transcode_data_*.c moved under enc/trans.
+
+ * transcode_data.h (rb_transcoding, rb_transcoder): prefixed.
+
+ * transcode.c (rb_register_transcoder, rb_declare_transcoder): split
+ declaration and registration. [ruby-dev:32704]
+
+ * transcode.c (transcode_dispatch): autoload pre-declared transcoder.
+
+ * transcode.c (str_transcode): use rb_define_dummy_encoding().
+
+ * transcode.c (Init_transcode): initialize transcoder tables.
+
+ * enc/trans/single_byte.c, enc/trans/japanese.c: moved from top.
+
+Tue Dec 25 14:20:13 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/mkmf.rb (map_dir): should generate path including $top_srcdir.
+
+Tue Dec 25 14:09:16 2007 James Edward Gray II <jeg2@ruby-lang.org>
+
+ * lib/csv.rb: Fixed test failures caused by changes to Ruby.
+
+ * test/csv/tc_serialization, test/csv/tc_csv_parsing, test/csv/tc_features:
+ Fixed test failures caused by changes to Ruby.
+
+Tue Dec 25 14:11:57 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * io.c (io_encoding_set): missing return type.
+
+Tue Dec 25 14:03:48 2007 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * test/rinda/test_rinda.rb (MockClock#{_forward, forward, sleep}):
+ Change default value of n as @reso from nil. If default value is
+ nil, n.+ is not defined.
+
+Tue Dec 25 13:54:01 2007 Tanaka Akira <akr@fsij.org>
+
+ * test/ruby/test_io_m17n.rb (test_pipe): fixed.
+ [ruby-dev:32743]
+
+Tue Dec 25 13:44:51 2007 Koichi Sasada <ko1@atdot.net>
+
+ * thread.c (rb_thread_wait_fd_rw): should check EBADF on select().
+
+Tue Dec 25 13:30:03 2007 Koichi Sasada <ko1@atdot.net>
+
+ * thread_pthread.c, thread_pthread.h, thread_win32.c,
+ thread_win32.c: make some functions static functions.
+ a patch from Tadashi Saito <shiba AT mail2.accsnet.ne.jp>
+ in [ruby-core:14407]
+
+Tue Dec 25 13:23:13 2007 Tanaka Akira <akr@fsij.org>
+
+ * test/ruby/test_io_m17n.rb (test_write_noenc): don't mix text and
+ binary mode. [ruby-dev:32743]
+
+Tue Dec 25 13:13:09 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * README.EXT.ja, dir.c, eval.c, eval_intern.h, lex.c.src,
+ lex.c.blt, keywords, load.c, thread.c: more ANSI'ize.
+ a patch from Tadashi Saito <shiba AT mail2.accsnet.ne.jp>
+ in [ruby-dev:32725]
+
+Tue Dec 25 13:07:56 2007 Koichi Sasada <ko1@atdot.net>
+
+ * vm_core.h, thread.c, cont.c: add RUBY_VM_SET_INTERRUPT(),
+ RUBY_VM_SET_TIMER_INTERRUPT(), RUBY_VM_INTERRUPTED().
+
+ * thread.c, thread_pthread.c, thread_win32.c: fix to ignore time slice
+ event until sleep.
+
+ * bootstraptest/test_thread.rb: add a test for time limited join test.
+
+Tue Dec 25 12:42:59 2007 Koichi Sasada <ko1@atdot.net>
+
+ * vm.c (Init_VM): remove unused code.
+ [ruby-dev:32732]
+
+Tue Dec 25 12:32:32 2007 Martin Duerst <duerst@it.aoyama.ac.jp>
+
+ * transcode.c: Moving a static counter from inside register_transcoder()
+ and register_functional_transcoder() to outside the functions, renaming
+ from n to next_transcoder_position. Fixes 3) in [ruby-dev:32715].
+
+Tue Dec 25 12:22:17 2007 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * sample/from.rb: follow Ruby 1.9 libraries.
+
+Tue Dec 25 12:21:56 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * proc.c (method_inspect): preserve encoding of the method name.
+
+Tue Dec 25 12:07:52 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (BASERUBY): delayed error until BASERUBY is used.
+
+Tue Dec 25 11:48:35 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * sample/README: removed obsoleted files: dbmtest.rb,
+ getopts.test, mrshtest.rb, regx.rb.
+
+Tue Dec 25 11:45:34 2007 James Edward Gray II <jeg2@ruby-lang.org>
+
+ * lib/csv.rb: Import the FasterCSV source as the new CSV class.
+
+ * test/csv/*: Added all applicable tests from FasterCSV.
+
+Tue Dec 25 11:33:52 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * error.c (report_bug): uses ruby_description.
+
+Tue Dec 25 11:20:38 2007 Koichi Sasada <ko1@atdot.net>
+
+ * compile.c (iseq_compile_each): fix stack consistency error.
+ a patch from Yusuke ENDOH <mame AT tsg.ne.jp> [ruby-dev:32720]
+
+ * bootstraptest/test_syntax.rb: add 2 tests for above.
+
+Tue Dec 25 11:14:20 2007 Koichi Sasada <ko1@atdot.net>
+
+ * iseq.c, vm_core.h: comment out unused fields.
+
+Tue Dec 25 11:02:10 2007 Koichi Sasada <ko1@atdot.net>
+
+ * vm.c: check frame is FINAL when creating env.
+ [ruby-core:14395]
+
+ * bootstraptest/test_block.rb: add a test for above.
+
+Tue Dec 25 09:12:13 2007 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rdoc/: Enable RDoc debugging only with $DEBUG_RDOC.
+
+Tue Dec 25 08:37:43 2007 James Edward Gray II <jeg2@ruby-lang.org>
+
+ * lib/csv.rb, test/csv/test_csv.rb: Removed in preparation for
+ FasterCSV code import.
+
+Tue Dec 25 08:27:43 2007 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems.rb: Fix test failures.
+
+ * test/rubygems/test_gem.rb: Fix test failure.
+
+Tue Dec 25 06:23:40 2007 Koichi Sasada <ko1@atdot.net>
+
+ * bootstraptest/test_knownbug.rb, test_literal.rb: move fixed test.
+
+Tue Dec 25 06:19:04 2007 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * sample/biorhythm.rb: follow Ruby 1.9 libraries.
+
+Tue Dec 25 06:15:01 2007 Koichi Sasada <ko1@atdot.net>
+
+ * vm.c: add dummy toplevel frame.
+
+Tue Dec 25 05:44:56 2007 Eric Hodel <drbrain@segment7.net>
+
+ * lib/net/http.rb: Fix uninitialized variable warning.
+ [ruby-talk:284582]
+
+ * lib/irb/output-method.rb: Remove unused #foo method.
+ [ruby-talk:284582]
+
+Tue Dec 25 05:24:12 2007 Koichi Sasada <ko1@atdot.net>
+
+ * compile.c (iseq_compile): clear local table if node == 0.
+ a patch from Yusuke ENDOH <mame AT tsg.ne.jp> [ruby-dev:32530]
+
+ * vm.c: clear VM stack.
+
+Tue Dec 25 04:23:32 2007 Tanaka Akira <akr@fsij.org>
+
+ * parse.y (rb_id2str): fill klass of returned string as rb_cString.
+ some strings are allocated before rb_cString is created.
+ This prevents a "called on terminated object" error by
+ ObjectSpace.each_object(Module) {|m| p m.name }.
+
+Tue Dec 25 03:51:55 2007 Koichi Sasada <ko1@atdot.net>
+
+ * compile.c (iseq_compile_each): fix stack consistency bug.
+ a patch from Yusuke ENDOH <mame AT tsg.ne.jp>
+
+Tue Dec 25 03:19:47 2007 WATANABE Hirofumi <eban@ruby-lang.org>
+
+ * tool/make-snapshot: must create configure and lex.c.
+
+Tue Dec 25 03:16:05 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * io.c (rb_io_s_pipe): now takes up to two arguments. allow its
+ external/internal encoding by Encoding objects.
+
+ * io.c (rb_io_set_encoding): new method to set encoding of the IO.
+
+ * io.c (argf_set_encoding): ditto.
+
+Tue Dec 25 03:08:53 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * pack.c (pack_pack): use NUM2LONG instead of NUM2INT.
+
+ * numeric.c (fix_lshift, fix_aref): use SIZEOF_LONG instead of
+ SIZEOF_VALUE.
+
+ * bignum.c (big2ulong, rb_big_aref): ditto.
+
+Tue Dec 25 02:55:26 2007 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * lib/rexml/element.rb (REXML::Elements#each): yield in each
+ should be called with one parameter. [ruby-dev:32708]
+
+Tue Dec 25 02:15:39 2007 Koichi Sasada <ko1@atdot.net>
+
+ * compile.c (iseq_compile_each): add a "pop" insn after break
+ to fix stack consistency error. [ruby-core:14385]
+
+ * bootstraptest/test_syntax.rb: add tests for above.
+
+ * bootstraptest/test_knownbug.rb: remove fixed bug.
+
+Tue Dec 25 01:54:36 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * id.c (Init_id): remove several unused symbols. [ruby-core:14362]
+
+ * compile.c (iseq_specialized_instruction): do not use
+ VM_CALL_SEND_BANG flag any longer.
+
+Tue Dec 25 01:42:41 2007 Tanaka Akira <akr@fsij.org>
+
+ * lib/rdoc/rdoc.rb (parse_files): interpret coding cookie.
+
+Tue Dec 25 01:38:04 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * proc.c (method_name): preserve Symbol's encoding.
+
+ * numeric.c (fix_id2name): ditto.
+
+Tue Dec 25 01:19:18 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * include/ruby/encoding.h (rb_enc_left_char_head): new utility macro.
+
+ * include/ruby/encoding.h (rb_enc_right_char_head): ditto.
+
+ * io.c (appendline): does multibyte RS search in the function.
+
+ * io.c (prepare_getline_args): RS may be nil.
+
+ * io.c (rb_io_getc): should process character based on external
+ encoding, when transcoding required.
+
+Tue Dec 25 01:07:57 2007 Tanaka Akira <akr@fsij.org>
+
+ * lib/irb/output-method.rb: translate a comment to English to
+ avoid mix of EUC-JP comment and UTF-8 Date keyword.
+ svn substitute Date keyword with UTF-8 weekday on UTF-8 locale.
+
+Tue Dec 25 00:27:28 2007 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * lib/webrick/httpservley/cgihandler.rb
+ (WEBrick::HTTPServlet::CGIHandler#do_GET): m17nized.
+
+Mon Dec 24 23:55:29 2007 Tanaka Akira <akr@fsij.org>
+
+ * lib/cgi.rb (CGI::escape): m17nized.
+ (CGI::unescape): ditto.
+ (CGI::escapeHTML): ditto.
+ (CGI::unescapeHTML): ditto.
+
+Mon Dec 24 23:32:24 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * transcode_data_japanese.c (select_iso_2022_mode): '\e' is not valid.
+
+Mon Dec 24 23:13:09 2007 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * lib/rdoc/diagram.rb (RDoc::Diagram#initialize): use fileuitls
+ instead of ftools.
+
+Mon Dec 24 23:04:57 2007 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * lib/ftools.rb: removed obsoleted lib. use fileutils instead (by eban).
+
+ * lib/rdoc/rdoc.rb, lib/rdoc/generators/*, lib/rake.rb: let it use
+ fileutils instead of ftools.
+
+ * lib/shell/command-processor.rb: removed unused references to ftools.
+
+ * lib/parsedate.rb: removed. see [ruby-core:12535], [ruby-dev:31969].
+
+ * lib/README: updated.
+
+Mon Dec 24 23:01:04 2007 Tanaka Akira <akr@fsij.org>
+
+ * lib/open-uri.rb (OpenURI::Buffer): use Meta ===. [ruby-core:14295]
+
+Mon Dec 24 22:46:42 2007 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * transcode.c: register_functional_transcoder() added.
+ (init_transcoder_table(: register ISO-2022-JP.
+ (str_transcode): add preprocessor and postprocessor.
+
+ * transcode_data_japanese.c: add ISO-2022-JP support.
+
+ * transcode_data.h: moved transcoder and transcoding definition from
+ transcode.c.
+
+Mon Dec 24 20:29:28 2007 Koichi Sasada <ko1@atdot.net>
+
+ * test/io/nonblock/test_flush.rb: fix test for 1.9.
+
+Mon Dec 24 20:23:44 2007 Koichi Sasada <ko1@atdot.net>
+
+ * test/rinda/test_rinda.rb: revert last commit because this test seems
+ to have timing problem to halt all tests.
+
+Mon Dec 24 20:18:52 2007 Koichi Sasada <ko1@atdot.net>
+
+ * test/rinda/test_rinda.rb: enable rinda test.
+
+Mon Dec 24 20:16:54 2007 Koichi Sasada <ko1@atdot.net>
+
+ * instruby.rb: fix rdoc install dir.
+
+Mon Dec 24 18:37:32 2007 Tanaka Akira <akr@fsij.org>
+
+ * re.c (rb_reg_prepare_re): show regexp encoding in the error message.
+
+Mon Dec 24 18:23:32 2007 Tanaka Akira <akr@fsij.org>
+
+ * eval.c (rb_exc_raise): ANSI style.
+ (rb_exc_fatal): ditto.
+ (rb_raise_jump): ditto.
+ (rb_jump_tag): ditto.
+ (rb_block_given_p): ditto.
+
+ * variable.c (original_module): ditto.
+
+Mon Dec 24 18:05:09 2007 Koichi Sasada <ko1@atdot.net>
+
+ * iseq.c (Init_ISeq): disable ISeq.load() because there is no verifier.
+
+ * iseq.c, proc.c: add ISeq.disasm(method).
+
+Mon Dec 24 18:06:03 2007 Tanaka Akira <akr@fsij.org>
+
+ * eval_method.c (Init_eval_method): extracted from Init_eval
+ for rdoc to find rb_mod_remove_method, rb_mod_undef_method and
+ rb_mod_alias_method.
+
+ * eval.c (Init_eval): call Init_eval_method.
+
+Mon Dec 24 17:59:29 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * load.c (load_lock): reverted.
+
+ * thread.c (rb_barrier_wait): check for recursive wait.
+
+Mon Dec 24 17:50:54 2007 Tanaka Akira <akr@fsij.org>
+
+ * eval.c (function_call_may_return_twice_jmp_buf): removed.
+ (function_call_may_return_twice_false): removed.
+ [ruby-core:14335]
+
+Mon Dec 24 17:40:57 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * common.mk (node_name.inc, miniprelude.c, prelude.c): nmake cannot
+ handle target vpath in other than implicit rules.
+
+Mon Dec 24 17:20:34 2007 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * lib/{mailread.rb,getopts.rb,parsearg.rb}: removed.
+ see [ruby-core:12535], [ruby-dev:31969].
+
+Mon Dec 24 17:12:57 2007 Tanaka Akira <akr@fsij.org>
+
+ * include/ruby/intern.h, random.c, array.c:
+ change exported name.
+ genrand_int32 -> rb_genrand_int32.
+ genrand_real -> rb_genrand_real.
+ [ruby-core:14335]
+
+Mon Dec 24 17:06:37 2007 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * {lib,test}/{soap,wsdl,xsd}: removed soap4r along to the discussion
+ at ruby-core and ruby-dev. see [ruby-core:12535], [ruby-dev:31969].
+
+Mon Dec 24 17:06:14 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * load.c (rb_feature_p): returns loading path name too.
+
+ * load.c (search_required): returns path too if feature is being
+ loaded. [ruby-dev:32048] [TODO: refactoring]
+
+Mon Dec 24 16:29:12 2007 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * sample/openssl: reviewed and remove dependency on getopts.rb.
+
+Mon Dec 24 16:18:57 2007 Koichi Sasada <ko1@atdot.net>
+
+ * mkconfig.rb: add teeny to CONFIG['ruby_version'].
+
+Mon Dec 24 15:55:50 2007 Koichi Sasada <ko1@atdot.net>
+
+ * tool/compile.rb, getrev.rb, runruby.rb: remove unused tools.
+
+Mon Dec 24 15:42:04 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in, cygwin/GNUmakefile.in, */Makefile.sub,
+ djgpp/config.hin.: version dependent directory names now contain
+ teeny.
+
+Mon Dec 24 15:29:13 2007 Tanaka Akira <akr@fsij.org>
+
+ * tool/serb.rb: removed.
+
+Mon Dec 24 13:55:35 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * proc.c (rb_proc_new), vm.c (invoke_block): removed u3.state magic.
+ [ruby-core:14310]
+
+ * test/ruby/test_symbol.rb (test_to_proc): a test from Frederick
+ Cheung <frederick.cheung AT gmail.com>.
+
+Mon Dec 24 13:43:36 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * thread.c (rb_thread_atfork): should not leave living_threads
+ referring freed table while allocating new table.
+
+Mon Dec 24 12:49:54 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * Makefile.in, configure.in, lib/mkmf.rb, */Makefile.sub: specify
+ compiled output file name explicitly.
+
+ * enc/Makefile.in, enc/depend: now makes compiler to put generated
+ files under directories corresponding to the each source.
+ enc/trans supported.
+
+ * enc/make_encmake.rb: evaluates depend file before Makefile.in so
+ that the former can influence to CONFIG.
+
+Mon Dec 24 12:35:03 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * win{32,ce}/Makefile.sub (MFLAGS): defaulted to -l.
+
+Mon Dec 24 12:08:10 2007 Eric Hodel <drbrain@segment7.net>
+
+ * /, ext/: Add svn:ignore for OS X Xcode 3's conftest.dSYM
+ directories.
+
+Mon Dec 24 11:56:31 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * common.mk: should not pass MAKEFLAGS to recursive make.
+ + normal make: MFLAGS are set and command line options and macros
+ are all passed silently.
+ + GNU make: ditto, and all options and macros in MAKEFLAGS are in
+ effect.
+ + nmake: MFLAGS is not set and MAKEFLAGS has only options without
+ hyphen, no macros exist in any variables.
+ + Borland make: ditto, and command line macros cannot override
+ macros in makefile, so passing them is vain.
+
+ * {bcc32,win{32,ce}}/Makefile.sub (SET_MAKE): set MFLAGS which is not
+ set by default, to get rid of chaotic situation of MFLAGS/MAKEFLAGS.
+
+Mon Dec 24 11:32:44 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (rb_str_comparable): fixed to keep transitivity.
+ [ruby-dev:32693]
+
+Mon Dec 24 11:20:31 2007 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rdoc/ri/ri_options.rb: Fix display of GEMDIRS, make command
+ examples match ri's name.
+
+ * lib/rdoc/ri/ri_paths.rb: Only allow latest ri dirs in ri output.
+
+Mon Dec 24 10:49:04 2007 Eric Hodel <drbrain@segment7.net>
+
+ * lib/uri/mailto.rb, lib/uri/common.rb: Fix Regexp warnings. Patch
+ #16524 from Kornelius Kalnbach, [ruby-core:14302].
+
+Mon Dec 24 10:37:38 2007 Eric Hodel <drbrain@segment7.net>
+
+ * gem_prelude.rb: Remove methods from Gem, not QuickLoader, to fix
+ warnings.
+
+Mon Dec 24 09:45:45 2007 Martin Duerst <duerst@it.aoyama.ac.jp>
+
+ * transcode.c, transcode_data_one_byte.c, transcode_data_japanese.c:
+ added rb_ prefix to external data symbols.
+
+Mon Dec 24 05:32:22 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * enum.c (enum_inject): updated documentation. a patch from Keita
+ Yamaguchi <keita.yamaguchi AT gmail.com> in [ruby-dev:32686].
+
+ * README.EXT: updated. a patch from Tadashi Saito
+ <shiba AT mail2.accsnet.ne.jp> in [ruby-core:14328].
+
+ * array.c (rb_ary_at): updated documentation. a patch from Tadashi
+ Saito <shiba AT mail2.accsnet.ne.jp> in [ruby-core:14330].
+
+Mon Dec 24 05:13:04 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (tr_trans): should associate new encoding if modified.
+
+Mon Dec 24 04:04:12 2007 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * test/net/http/test_https.rb: should rescue LoadError.
+
+Mon Dec 24 03:57:28 2007 Koichi Sasada <ko1@atdot.net>
+
+ * cont.c, vm.h: fix to support sparc machine.
+ a patch from Yusuke ENDOH <mame AT tsg.ne.jp>
+
+Mon Dec 24 03:35:19 2007 Koichi Sasada <ko1@atdot.net>
+
+ * common.mk: remove additional "-".
+
+Mon Dec 24 02:59:32 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * io.c (rb_io_check_readable): should not fill fptr->enc always.
+ read-write IO (e.g. socket) does not work. [ruby-dev:32685]
+
+ * io.c (io_read_encoding): retrieve reading encoding.
+
+ * io.c (prepare_getline_args): convert RS to external encoding.
+
+ * string.c (str_new_shared): was setting embedding flag of wrong
+ string object. [ruby-dev:32685]
+
+ * io.c (io_enc_str): should preserve default_external encoding.
+
+ * io.c (appendline): should do multibyte aware RS search.
+
+Mon Dec 24 02:06:35 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * io.c (rb_f_open): documentation update.
+
+ * io.c (rb_io_s_pipe): ditto.
+
+ * io.c (io_fwrite): wrong encoding destination.
+
+ * io.c (rb_io_external_encoding): should return the encoding of
+ the file reading.
+
+ * io.c (rb_io_internal_encoding): should return the encoding of
+ read string.
+
+Mon Dec 24 01:46:43 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * io.c (rb_io_s_pipe): allow specifying read-side encoding.
+
+ * io.c (io_enc_str): wrong encoding destination.
+
+Mon Dec 24 01:03:17 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (rb_str_comparable): comparison including broken
+ coderange strings do not consider encoding.
+
+Mon Dec 24 00:57:15 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * io.c (open_key_args): IO direct methods (foreach, readlines,
+ read) now takes keyword argument: encoding, mode, open_args.
+
+Mon Dec 24 00:52:15 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * io.c (rb_io_s_read): encoding argument reverted.
+
+ * io.c (mode_enc): independent function to share code.
+
+ * io.c (rb_io_internal_encoding): new method.
+
+Mon Dec 24 00:47:05 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * test/ruby/test_beginendblock.rb (TestBeginEndBlock::test_endblockwarn):
+ rename endblockwarn.rb to endblockwarn_rb to avoid unnecessary
+ warning in make test.
+
+Sun Dec 23 23:03:13 2007 Tanaka Akira <akr@fsij.org>
+
+ * encoding.c (rb_enc_codepoint): implemented to raise invalid
+ encoding.
+
+ * include/ruby/encoding.h (rb_enc_codepoint): macro is replaced as a
+ declaration.
+
+Sun Dec 23 19:45:22 2007 Tanaka Akira <akr@fsij.org>
+
+ * lib/time.rb (Time.httpdate): fix 2 digits year for 20xx.
+ reported by Tadayoshi Funaba. [ruby-dev:32687]
+
+Sun Dec 23 19:33:42 2007 Eric Hodel <drbrain@segment7.net>
+
+ * lib/open-uri.rb: Fix method redefined warning. [ruby-core:14304]
+
+Sun Dec 23 18:31:49 2007 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * ext/nkf/nkf.c (rb_nkf_enc_get): use rb_define_dummy_encoding.
+
+ * ext/nkf/nkf.c (Init_nkf): use rb_nkf_enc_get("ASCII").
+
+ * ext/nkf/nkf-utf8/nkf.c: Update 1.161.
+
+ * ext/nkf/nkf-utf9/config.h: default output encoding is now UTF-8.
+
+ * ext/nkf/lib/kconv.rb (Kconv.kconv): replace Encoding#name by
+ Encoding#to_s.
+
+Sun Dec 23 18:02:52 2007 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/gem_open_uri.rb: Fix version check.
+
+Sun Dec 23 17:24:48 2007 Tanaka Akira <akr@fsij.org>
+
+ * encoding.c (rb_enc_init): add eucJP as an alias of EUC-JP.
+
+Sun Dec 23 17:00:23 2007 Tanaka Akira <akr@fsij.org>
+
+ * lib/time.rb (Time.httpdate): use Time.utc for
+ "day-of-week, dd-mon-yy HH::MM:SS GMT" format.
+
+Sun Dec 23 16:12:40 2007 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rdoc: Fix 1.9 warnings.
+
+Sun Dec 23 15:28:37 2007 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems, test/rubygems: Fix new 1.9 warnings.
+
+Sun Dec 23 14:43:10 2007 Eric Hodel <drbrain@segment7.net>
+
+ * gem_prelude.rb: Use require to load rubygems.rb so the correct path
+ is in $LOADED_FEATURES on RubyGems upgrade.
+
+Sun Dec 23 11:26:43 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * string.c (sym_call): use exact argument array interface.
+ [ruby-core:14279]
+
+Sun Dec 23 11:01:35 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * io.c (rb_io_binmode_m): removed C99ism.
+
+Sun Dec 23 10:23:23 2007 Martin Duerst <duerst@it.aoyama.ac.jp>
+
+ * transcode_data_one_byte.c: Better (and more honest) optimization.
+
+ * transcode_data_japanese.c: First optimization step.
+
+Sun Dec 23 09:07:02 2007 Tanaka Akira <akr@fsij.org>
+
+ * include/ruby/encoding.h, encoding.c, re.c, io.c, parse.y, numeric.c,
+ ruby.c, transcode.c, ext/nkf/nkf.c: rename rb_ascii_encoding to
+ rb_ascii8bit_encoding. rb_ascii_encoding is ambiguous with
+ ASCII-8BIT and US-ASCII.
+
+Sun Dec 23 03:35:52 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * version.h: use patchlevel if revision is not set.
+
+ * {bcc32,win{32,ce}}/setup.mak (-version-): skip including revision.h.
+
+ * common.mk (srcs): new target to generated sources.
+
+ * common.mk (encs, ext/ripper/ripper.c): MAKEFLAGS needs -.
+
+ * enc/depend, enc/make_encmake.rb: use erb.
+
+Sun Dec 23 01:56:18 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * io.c (rb_io_mode_enc): do not set encoding unless explicitly
+ specified.
+
+ * io.c (rb_io_check_readable): fill fptr->enc by default_external
+ if it's empty.
+
+ * io.c (io_enc_str): fptr->enc is always set for reading IO (by
+ rb_io_check_readable(fptr)).
+
+Sun Dec 23 01:18:06 2007 David Flanagan <david@davidflanagan.com>
+
+ * io.c, io.h: temporary patch to partially implement
+ transcode-on-read and transcode-on-write
+
+Sun Dec 23 00:48:05 2007 Shugo Maeda <shugo@ruby-lang.org>
+
+ * test/net/imap/test_imap.rb: added tests for SSL.
+
+Sat Dec 22 21:10:53 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ext/syck/rubyext.c (syck_genericresolver_node_import): should
+ not set instance variable "@kind" before initializing it.
+ [ruby-dev:32677]
+
+Sat Dec 22 19:52:23 2007 Koichi Sasada <ko1@atdot.net>
+
+ * bootstraptest/test_objectspace.rb: fix condition.
+
+Sat Dec 22 19:17:10 2007 Koichi Sasada <ko1@atdot.net>
+
+ * ext/probeprofiler/: removed.
+
+Sat Dec 22 19:14:38 2007 Koichi Sasada <ko1@atdot.net>
+
+ * process.c (rb_f_fork): Unsupport Kernel.fork() on NetBSD.
+
+Sat Dec 22 18:20:13 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * common.mk (version.o): add dependency. [ruby-dev:32680]
+
+Sat Dec 22 17:45:11 2007 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * ext/nkf/nkf.c (Init_nkf): use rb_ascii_encoding() for
+ rb_nkf_enc_get("US-ASCII").
+ * if use rb_nkf_enc_get("US-ASCII"), ruby will crash - this is bug?
+
+Sat Dec 22 17:39:03 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * lib/mkmf.rb ($extmk): fixed broken condition.
+
+Sat Dec 22 17:35:59 2007 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * ext/nkf/nkf-utf8.c: Update nkf.c rev:1.157.
+
+ * ext/nkf/nkf.c (rb_nkf_enc_get): replicate proper based encoding.
+
+ * ext/nkf/kconv.c (Kconv#kconv, to*): use self.encoding as from_enc
+ when from_enc isn't given.
+
+Sat Dec 22 17:06:50 2007 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * ext/openssl/lib/net/ssl.rb (OpenSSL::SSL::SSLContext.build): removed.
+
+ * ext/openssl/lib/net/ssl.rb (OpenSSL::SSL::SSLContext#set_params):
+ new method to set suitable SSL parameters.
+
+ * lib/net/pop.rb, lib/net/http.rb, lib/net/imap.rb,
+ test/openssl/test_ssl.rb: follow above change.
+
+ * test/net/http/test_https.rb: refine error case.
+
+Sat Dec 22 16:58:49 2007 Shugo Maeda <shugo@ruby-lang.org>
+
+ * lib/net/imap.rb (encode_utf7): accept UTF-8 strings.
+
+ * lib/net/imap.rb (decode_utf7): return UTF-8 strings.
+
+Sat Dec 22 15:56:36 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * transcode_data_japanese: typo.
+
+Sat Dec 22 15:54:54 2007 Martin Duerst <duerst@it.aoyama.ac.jp>
+
+ * ChangeLog: Information for last patch got lost, fixed
+
+ * test/ruby/test_transcode.rb: Added simple tests for
+ EUC-JP and Shift_JIS and tests for ASCII-only range
+
+Sat Dec 22 15:45:45 2007 Martin Duerst <duerst@it.aoyama.ac.jp>
+
+ * transcode_data_one_byte: slightly optimized
+
+ * transcode_data_japanese: new data file for EUC-JP and SHIFT_JIS
+ (not yet optimized; tests to follow; data from
+ http://nkf.sourceforge.jp/ucm/{SJIS|eucJP}-nkf.ucm)
+
+ * common.mk, transcode.c: Adjusted for transcode_data_japanese
+
+Sat Dec 22 15:30:13 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * */Makefile.sub (MFLAGS): define unless defined.
+
+Sat Dec 22 15:17:40 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * lib/mkmf.rb ($extmk): set true only when under ext/ or tool/.
+
+Sat Dec 22 15:14:48 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * common.mk (encs, ext/ripper/ripper.c): needs MFLAGS.
+
+ * configure.in (STRINGIZE): stringizing macro.
+
+ * include/ruby/defines.h (STRINGIZE): fallback.
+
+ * tool/make-snapshot: new file.
+
+ * version.c (ruby_description, ruby_copyright): string constants for
+ -v option.
+
+Sat Dec 22 15:03:37 2007 Shugo Maeda <shugo@ruby-lang.org>
+
+ * lib/net/imap.rb (initialize): fixed documentation.
+
+Sat Dec 22 15:01:16 2007 Shugo Maeda <shugo@ruby-lang.org>
+
+ * lib/net/pop.rb (enable_ssl): use OpenSSL::SSL::SSLContext.build
+ instead of SSLContext.new (default verify mode is now
+ OpenSSL::SSL::VERIFY_PEER).
+
+Sat Dec 22 14:45:21 2007 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * lib/date.rb: shouldn't freeze nil. [ruby-dev:32677]
+
+Sat Dec 22 14:27:27 2007 Tanaka Akira <akr@fsij.org>
+
+ * regenc.c (onigenc_ascii_is_code_ctype): moved from enc/ascii.c.
+
+ * regenc.h (onigenc_ascii_is_code_ctype): declared.
+
+ * enc/ascii.c: use onigenc_ascii_is_code_ctype.
+
+ * enc/us_ascii.c: new file for US-ASCII.
+
+Sat Dec 22 14:30:34 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (reg_named_capture_assign_iter): allows non-ascii names and
+ get rid of reserved word IDs.
+
+Sat Dec 22 14:18:45 2007 Koichi Sasada <ko1@atdot.net>
+
+ * test/ruby/test_float.rb, test_sprintf.rb: fix test place.
+
+Sat Dec 22 14:17:02 2007 Koichi Sasada <ko1@atdot.net>
+
+ * bootstraptest/test_objectspace.rb: skip frozen string.
+
+Sat Dec 22 14:02:58 2007 Koichi Sasada <ko1@atdot.net>
+
+ * array.c (rb_ary_permutation): add volatile to avoid GC problem.
+
+Sat Dec 22 11:47:42 2007 Koichi Sasada <ko1@atdot.net>
+
+ * eval.c (rb_obj_instance_eval): use class of immediate objects.
+
+ * test/ruby/test_eval.rb: fix a test.
+
+Sat Dec 22 11:37:06 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * encoding.c (rb_locale_charmap): win32 support.
+
+Sat Dec 22 11:31:14 2007 Eric Hodel <drbrain@segment7.net>
+
+ * gem_prelude.rb: Place bin dir before lib dir so gem bin stubs work.
+
+Sat Dec 22 11:05:44 2007 Jim Weirich <jim@tardis.local>
+
+ * lib/rake.rb (Rake): Added Rake and related libraries to the
+ source code base.
+
+Sat Dec 22 10:30:45 2007 Koichi Sasada <ko1@atdot.net>
+
+ * tool/insns2vm.rb: moved from lib/vm/instruction.rb.
+
+Sat Dec 22 10:25:44 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * parse.y (reg_named_capture_assign_iter): captured name should
+ not be reserved word. a patch from Keita Yamaguchi
+ <keita.yamaguchi AT gmail.com> in [ruby-dev:32675].
+
+ * parse.y (reg_named_capture_assign_iter): just ignore the
+ captures that do not have valid local variable name.
+
+Sat Dec 22 10:19:08 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (rb_f_method_name): now __method__ and __callee__ are
+ aliases. [ruby-core:14244]
+
+Sat Dec 22 08:29:56 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * string.c (rb_str_buf_append): improvement for non-broken coded
+ strings.
+
+Sat Dec 22 06:30:04 2007 Koichi Sasada <ko1@atdot.net>
+
+ * bootstraptest/test_fork.rb: skip if fork is not unsupported.
+
+ * bootstraptest/test_io.rb: skip if require failed.
+
+Sat Dec 22 06:09:12 2007 David Flanagan <david@davidflanagan.com>
+
+ * io.c: fix typo in rdoc comment
+
+Sat Dec 22 05:09:43 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * parse.y (parser_str_new, rb_intern3): rb_default_encoding() renamed.
+
+ * ext/nkf/nkf.c (rb_nkf_putchar): ditto.
+
+Sat Dec 22 03:54:18 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * encoding.c (rb_ascii_encoding): renamed from previous
+ rb_default_encoding().
+
+Sat Dec 22 02:49:02 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * parse.y (command): block from cmd_brace_block was ignored.
+ [ruby-dev:32644]
+
+ * re.c (rb_reg_prepare_re): stop ENCODING_NONE warning if the
+ encoding of the str is ASCII-8BIT.
+
+Sat Dec 22 01:52:11 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * io.c (io_ungetc): avoid buffer relocation, which might cause
+ serious problem under concurrent situation.
+
+Sat Dec 22 01:35:41 2007 Tanaka Akira <akr@fsij.org>
+
+ * re.c (ARG_ENCODING_NONE): defined for /.../n option.
+ (REG_ENCODING_NONE): ditto.
+ (rb_char_to_option_kcode): return ARG_ENCODING_NONE for n.
+ (rb_reg_prepare_re): warn /ascii/n =~ "non-ascii".
+ (rb_reg_initialize): set REG_ENCODING_NONE from ARG_ENCODING_NONE.
+
+Sat Dec 22 01:23:10 2007 Shugo Maeda <shugo@ruby-lang.org>
+
+ * test/json/test_json_addition.rb (test_core): do not use Time.now
+ because JSON can't hold nsec.
+
+Sat Dec 22 01:10:30 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * ext/tk/sample/tkextlib/vu/canvSticker2.rb,
+ ext/tk/sample/demos-{en,jp}/bind.rb: fix typo. [ruby-dev:32668]
+
+Sat Dec 22 00:56:43 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * sample/test.rb (valid_syntax): force_encoding input script.
+
+Fri Dec 21 23:48:38 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * lib/mkmf.rb (depend_rules): suffixes list broken. fixed.
+
+Fri Dec 21 20:18:15 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * bignum.c (rb_big_mul0): remove unused variable.
+
+ * bignum.c (bigdivrem): ditto.
+
+Fri Dec 21 20:13:51 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * include/ruby/ruby.h (rb_catch_obj, rb_throw_obj): prototyped.
+
+ * include/ruby/intern.h (rb_fiber_alive_p): prototyped.
+
+Fri Dec 21 20:09:18 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * string.c (rb_str_succ): retry increasing until valid char is found.
+
+Fri Dec 21 20:00:02 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * encoding.c (rb_enc_replicate): now creates first class encoding.
+
+ * encoding.c (rb_define_dummy_encoding): always based on the default
+ encoding.
+
+ * encoding.c (rb_enc_dummy_p): check if dummy.
+
+ * encoding.c (enc_inspect): shows if dummy.
+
+ * encoding.c (Init_Encoding): added dummy? method
+
+ * include/ruby/encoding.h (ENCODING_INLINE_MAX): increased.
+
+Fri Dec 21 18:40:54 2007 Koichi Sasada <ko1@atdot.net>
+
+ * io.c: write() should be in blocking region.
+
+ * bootstraptest/test_io.rb, test_knownbug.rb: move a fixed test.
+
+Fri Dec 21 17:56:30 2007 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/tcltklib.c: provisional support on Ruby-VM.
+
+ * ext/tk/MANUAL_tcltklib.eng, ext/tk/MANUAL_tcltklib.eucj:
+ modify document about new functions.
+
+ * ext/tk/lib/tk.rb, ext/tk/lib/tk/labelframe.rb,
+ ext/tk/lib/tk/frame.rb, ext/tk/lib/tk/toplevel.rb,
+ ext/tk/lib/tk/scrollbar.rb, ext/tk/lib/tk/message.rb,
+ ext/tk/lib/tk/listbox.rb, ext/tk/lib/tk/text.rb,
+ ext/tk/lib/tk/scale.rb, ext/tk/lib/tk/entry.rb,
+ ext/tk/lib/tk/ttk_selector.rb, ext/tk/lib/tk/menu.rb,
+ ext/tk/lib/tk/label.rb, ext/tk/lib/tk/spinbox.rb,
+ ext/tk/lib/tk/textmark.rb, ext/tk/lib/tk/winpkg.rb,
+ ext/tk/lib/tk/checkbutton.rb, ext/tk/lib/tk/panedwindow.rb,
+ ext/tk/lib/tk/texttag.rb, ext/tk/lib/tk/root.rb,
+ ext/tk/lib/tk/textimage.rb, ext/tk/lib/tk/radiobutton.rb,
+ ext/tk/lib/tk/package.rb, ext/tk/lib/tk/macpkg.rb,
+ ext/tk/lib/tk/composite.rb, ext/tk/lib/tk/autoload.rb,
+ ext/tk/lib/tk/canvas.rb, ext/tk/lib/tk/button.rb,
+ ext/tk/lib/tk/textwindow.rb,
+ ext/tk/lib/tkextlib/iwidgets/scrolledtext.rb,
+ ext/tk/lib/tkextlib/tile/style.rb,
+ ext/tk/lib/tkextlib/tile/tscrollbar.rb,
+ ext/tk/lib/tkextlib/tile/tpaned.rb, ext/tk/lib/tkextlib/tile.rb,
+ ext/tk/extconf.rb: support Tcl/Tk8.5 (partial, not complete).
+
+ * ext/tk/sample/demos-jp/widget,
+ ext/tk/sample/demos-jp/pendulum.rb,
+ ext/tk/sample/demos-jp/bind.rb,
+ ext/tk/sample/tkextlib/vu/canvSticker2.rb,
+ ext/tk/sample/demos-en/pendulum.rb,
+ ext/tk/sample/demos-en/bind.rb: remove $KCODE and minor bug fix.
+
+Fri Dec 21 17:49:06 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * transcode.c (rb_str_transcode_bang): returns self if no conversion.
+ [ruby-dev:32662]
+
+Fri Dec 21 17:44:47 2007 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems*: Update to RubyGems 1.0.1, r1581
+
+Fri Dec 21 17:32:49 2007 Koichi Sasada <ko1@atdot.net>
+
+ * bootstraptest/pending.rb: renamed from featurebug.rb.
+ This file contains bugs which is known but will not be
+ fixed in days.
+
+Fri Dec 21 17:31:22 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * debug.c (dummy_gdb_enums.various): added ENCODING and CODERANGE
+ constants.
+
+ * .gdbinit: use enum constants.
+
+Fri Dec 21 17:28:17 2007 Koichi Sasada <ko1@atdot.net>
+
+ * bootstraptest/featurebug.rb: added.
+
+ * bootstraptest/test_knownbug.rb: move a feature bug.
+
+Fri Dec 21 17:25:22 2007 Koichi Sasada <ko1@atdot.net>
+
+ * thread.c (rb_thread_atfork): fix to mark thread object.
+ [ruby-dev:32404]
+
+ * bootstraptest/test_knownbug.rb, test_fork.rb: move a fixed test.
+
+Fri Dec 21 17:07:13 2007 Koichi Sasada <ko1@atdot.net>
+
+ * gc.h: extern variable should not be initialized.
+
+ * thread_pthread.c: add a parameter.
+
+Fri Dec 21 16:50:43 2007 Tanaka Akira <akr@fsij.org>
+
+ * encoding.c (Init_Encoding): use enc_name as to_s.
+ (enc_inspect): renamed from enc_to_s. add "#" at beginning.
+
+Fri Dec 21 16:37:43 2007 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * ext/nkf/nkf-utf8/config.h (MIME_DECODE_DEFAULT, X0201_DEFAULT):
+ defined as FALSE. nkf and kconv don't decode MIME encoded string
+ and don't convert JIS X 0201 Katakana.
+
+ * test/nkf/test_kconv.rb: fix tests.
+
+Fri Dec 21 16:33:28 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * enumerator.c (enumerator_iter_i): adjusted for rb_block_call_func.
+
+ * include/ruby/ruby.h (rb_block_call_func): function to be called back
+ as block.
+
+Fri Dec 21 16:25:25 2007 Martin Duerst <duerst@it.aoyama.ac.jp>
+
+ * common.mk, transcode_data_iso_8859.c: renamed to
+ transcode_data_one_byte.c.
+
+Fri Dec 21 16:10:30 2007 Shigeo Kobayashi <shigeo@tinyforest.jp>
+
+ * ext/bigdecimal/bigdecimal.c (VpMidRound): Round method bug
+ pointed by Ryan Platte fixed(Patch to the patch from "NATORI
+ Shin"). [ruby-talk:273360]
+
+Fri Dec 21 16:06:13 2007 Tanaka Akira <akr@fsij.org>
+
+ * re.c (append_utf8): use rb_utf8_encoding() instead of
+ rb_enc_find("utf-8").
+
+Fri Dec 21 15:59:46 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * encoding.c (rb_enc_init): use enc_register_at() directly.
+
+ * encoding.c (rb_utf8_encoding): returns utf-8 encoding.
+
+ * include/ruby/encoding.h (rb_utf8_encoding): prototyped.
+
+ * parse.y (UTF8_ENC): uses rb_utf8_encoding().
+
+Fri Dec 21 15:31:59 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * io.c (rb_io_s_read): allow specifying encoding explicitly.
+
+ * io.c (rb_io_binmode): specifies encoding to ASCII-8BIT (binary).
+
+ * io.c (rb_io_s_read): IO should be in binary mode when offset is
+ specified.
+
+ * encoding.c (rb_to_encoding): returns default encoding if no
+ corresponding encoding found.
+
+Fri Dec 21 15:24:22 2007 Shugo Maeda <shugo@ruby-lang.org>
+
+ * lib/net/imap.rb (initialize): accept service name. changed
+ the default value of the old style +verify+ argument to true.
+
+Fri Dec 21 15:15:44 2007 Tanaka Akira <akr@fsij.org>
+
+ * gc.c (rb_garbage_collect): new function for debugging.
+
+Fri Dec 21 15:16:00 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * encoding.c (rb_to_encoding_index): should return error instead of
+ exception even if type is incorrect.
+
+Fri Dec 21 14:58:27 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * enumerator.c (enumerator_init_copy): prohibit cloning of
+ generators since Fibers cannot be copied.
+
+ * enumerator.c (enumerator_init_copy): typo fixed.
+
+Fri Dec 21 14:46:07 2007 Tanaka Akira <akr@fsij.org>
+
+ * io.c (Init_IO): define IO::BINARY even if O_BINARY is not exist.
+
+Fri Dec 21 14:01:14 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * test/ruby/test_system.rb (TestSystem::valid_syntax): apply
+ ASCII-8BIT encoding explicitly.
+
+ * re.c (rb_reg_prepare_re): add encoding name in the message.
+
+Fri Dec 21 13:54:05 2007 Tanaka Akira <akr@fsij.org>
+
+ * re.c: change "character encodings differ" error messages.
+
+Fri Dec 21 13:46:58 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * encoding.c (rb_enc_register): set encoding constant.
+
+ * encoding.c (rb_enc_find_index): replace non-alphanumeric chars with
+ underscores, so that initialize function can be called.
+
+ * encoding.c (rb_enc_find_index): extension libraries have lower case
+ names conventionally.
+
+ * ruby.c (proc_options, process_options): finds encoding after
+ load_path is initialized.
+
+Fri Dec 21 13:10:57 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * io.c (rb_io_external_encoding): new method.
+
+ * encoding.c (rb_enc_from_encoding): returns Qnil for NULL
+ encoding.
+
+ * io.c (rb_io_external_encoding): should fill delayed
+ initialization for STDIN.
+
+Fri Dec 21 13:09:11 2007 Tanaka Akira <akr@fsij.org>
+
+ * encoding.c (rb_locale_charmap): return nil if no locale information.
+
+Fri Dec 21 12:55:39 2007 Tanaka Akira <akr@fsij.org>
+
+ * lib/runit, lib/rubyunit.rb, test/testunit/runit: removed.
+
+Fri Dec 21 12:45:49 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (rb_str_chomp_bang): avoid unnecessary loop using
+ ONIGENC_LEFT_ADJUST_CHAR_HEAD().
+
+Fri Dec 21 12:32:08 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * file.c (Init_File): File.exists? revived.
+
+ * dir.c (Init_Dir): Dir.exists? again.
+
+Fri Dec 21 12:26:36 2007 Koichi Sasada <ko1@atdot.net>
+
+ * compile.c: remove "illegal".
+
+Fri Dec 21 12:22:20 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * keywords, parse.y (__ENCODING__): represent script encoding.
+
+Fri Dec 21 12:16:50 2007 Tanaka Akira <akr@fsij.org>
+
+ * string.c (rb_str_is_ascii_only_p): new method ascii_only?.
+
+Fri Dec 21 12:11:57 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * io.c (rb_io_mode_enc): set default external encoding if no
+ encoding specified explicitly.
+
+Fri Dec 21 12:00:34 2007 Tanaka Akira <akr@fsij.org>
+
+ * configure.in: check langinfo.h and locale.h.
+
+ * encoding.c: use langinfo.h only if available.
+
+ * main.c: use locale.h only if available.
+
+Fri Dec 21 11:47:56 2007 Tanaka Akira <akr@fsij.org>
+
+ * encoding.c: include locale.h
+ (rb_locale_charmap): new method Encoding.locale_charmap for
+ nl_langinfo(CODESET).
+
+ * include/ruby/encoding.h (rb_locale_charmap): declared.
+
+ * main.c (main): call setlocale with LC_CTYPE.
+
+ * ruby.c (locale_encoding): use rb_locale_charmap.
+
+Fri Dec 21 11:35:10 2007 Koichi Sasada <ko1@atdot.net>
+
+ * vm.c, vm_dump.c: fix typo. Reported by Yuki Mitsui.
+
+Fri Dec 21 11:28:00 2007 Tanaka Akira <akr@fsij.org>
+
+ * regerror.c, string.c, io.c, lib/getoptlong.rb, lib/net/imap.rb,
+ compile.c, sprintf.c, parse.y, ext/win32ole/win32ole.c,
+ ext/tk/sample/demos-en/entry3.rb, ext/tk/lib/tcltk.rb,
+ ext/openssl/ossl_bn.c, numeric.c, vm.c,
+ benchmark/bm_so_meteor_contest.rb, bignum.c, ruby.c: don't "illegal"
+ for non law violation context.
+
+Fri Dec 21 11:23:24 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * common.mk (enc.mk): depends on $(RBCONFIG) instead of rbconfig.rb.
+
+ * encoding.c (Init_Encoding): ISO-8859-1 is no longer a replica.
+
+ * regenc.h (OnigEncodingDefine): names of extension and encoding can
+ differ.
+
+ * enc/Makefile.in: always shared.
+
+ * enc/depend (deffile): should not upcase.
+
+ * enc/{ascii,euc_jp,sjis,utf8,iso_8859_{1..16}}.c: fix for Init.
+
+Fri Dec 21 09:26:48 2007 Tanaka Akira <akr@fsij.org>
+
+ * tool/compile_prelude.rb: use erb.
+
+Fri Dec 21 08:07:35 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * enumerator.c (enumerator_next): should call next_init() if fiber
+ is dead already. [ruby-dev:32459]
+
+Fri Dec 21 01:21:49 2007 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * ext/openssl/lib/openssl/ssl.rb (OpenSSL::SSL::SSLContext.build):
+ enable CRL checking by default.
+
+Fri Dec 21 01:20:56 2007 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * lib/net/http.rb (Net::HTTP#connect): use
+ OpenSSL::SSL::SSLContext.build instead of SSLContext.new (default
+ verify mode is now OpenSSL::SSL::VERIFY_PEER).
+
+ * lib/net/https.rb: SSL parameters are defined by attr_accessor.
+
+ * test/net/http/test_https.rb: add test for HTTPS features.
+
+Fri Dec 21 01:11:37 2007 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * io.c (select_internal): should return original value.
+
+Fri Dec 21 00:26:39 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (tr_trans): wrong encoding check for tree strings.
+
+ * test/ruby/test_m17n.rb (TestM17N::test_tr_s): "invalid mbstring
+ sequence" is not an error to be tested.
+
+ * test/ruby/test_m17n.rb (TestM17N::test_tr): ditto.
+
+Thu Dec 20 19:29:07 2007 Shugo Maeda <shugo@ruby-lang.org>
+
+ * lib/net/imap.rb (initialize): the second argument is an option
+ hash now. use SSLContext.build to specify SSL parameters.
+
+Thu Dec 20 19:11:56 2007 Koichi Sasada <ko1@atdot.net>
+
+ * thread_pthread.c (native_thread_apply_priority): check
+ _POSIX_PRIORITY_SCHEDULING for OpenBSD.
+
+Thu Dec 20 18:33:54 2007 Koichi Sasada <ko1@atdot.net>
+
+ * configure.in: add libthr for FreeBSD.
+
+Thu Dec 20 18:17:14 2007 Koichi Sasada <ko1@atdot.net>
+
+ * common.mk, *.ci: renamed to *.c.
+
+ * eval_load.c: renamed to load.c.
+
+Thu Dec 20 17:36:01 2007 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems*: Import RubyGems 1.0.0, r1575.
+
+Thu Dec 20 17:18:38 2007 Koichi Sasada <ko1@atdot.net>
+
+ * proc.c: support Proc#binding.
+
+ * sample/test.rb: add a test.
+
+Thu Dec 20 17:15:15 2007 Martin Duerst <duerst@it.aoyama.ac.jp>
+
+ * pack.c: Slight change to documentation ('character' ->
+ 'byte (C char)'). [ruby-core:13126], see also [ruby-core:13998].
+
+Thu Dec 20 17:07:54 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * common.mk (enc.mk): depends on rbconfig.rb.
+
+ * regenc.h (OnigEncodingDefine): external encoding definition macro.
+
+ * enc/Makefile.in: fix for linking.
+
+ * enc/depend, enc/make_encmake.rb: fix for Windows.
+
+ * enc/{ascii,euc_jp,sjis,utf8,iso_8859_{1..16}}.c: renamed.
+
+Thu Dec 20 16:42:55 2007 Koichi Sasada <ko1@atdot.net>
+
+ * iseq.c (find_line_no): return 0 if not found.
+
+Thu Dec 20 16:04:17 2007 Koichi Sasada <ko1@atdot.net>
+
+ * insnhelper.ci, vm.c, vm_core.h: change interface of
+ vm_invoke_block() to specify block ptr. [ruby-talk:266422]
+
+ * cont.c, eval_jump.ci, insns.def, proc.c, signal.c, thread.c:
+ apply above change.
+
+ * bootstraptest/test_knownbug.rb: move fixed bug.
+
+ * bootstraptest/test_block.rb: ditto. and add a test.
+
+Thu Dec 20 15:47:13 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * enc/iso_8859_{1..16}.c: renamed.
+
+Thu Dec 20 09:59:27 2007 Koichi Sasada <ko1@atdot.net>
+
+ * insnhelper.ci (vm_expandarray): fix sp increase place.
+ a patch from Yusuke ENDOH <mame AT tsg.ne.jp> in [ruby-dev:32581].
+
+ * bootstraptest/test_massign.rb: add a test for above.
+
+ * bootstraptest/test_syntax.rb: fix last committed test.
+
+Thu Dec 20 09:47:58 2007 Koichi Sasada <ko1@atdot.net>
+
+ * bootstraptest/test_syntax.rb: add a test.
+
+Thu Dec 20 09:40:51 2007 Koichi Sasada <ko1@atdot.net>
+
+ * compile.c (iseq_compile_each/NODE_RETURN): fix stack consistency.
+
+Thu Dec 20 09:42:11 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * bignum.c (big2str_orig): access beyond memory region cause crash
+ on interrupt. a patch from Yusuke ENDOH <mame AT tsg.ne.jp> in
+ [ruby-dev:32651]. [ruby-dev:32641]
+
+Thu Dec 20 09:06:54 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (rb_str_index): wrong starting position.
+
+Thu Dec 20 06:34:27 2007 Koichi Sasada <ko1@atdot.net>
+
+ * compile.c (iseq_compile_each): add pop after throw as return.
+
+ * bootstraptest/test_knownbug.rb, test_syntax.rb: move resolved test.
+
+ * vm_core.h, iseq.c, compile.h: add debug output code.
+
+Thu Dec 20 04:57:18 2007 Koichi Sasada <ko1@atdot.net>
+
+ * compile.c (iseq_compile_each): remove unused retry entry.
+
+Thu Dec 20 04:15:41 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * */Makefile.sub (DEFS, RM): output to config.status.
+
+Thu Dec 20 02:59:05 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * common.mk (encs): create encoding directory.
+
+Thu Dec 20 02:50:28 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * enc/iso8859_{1..16}.c: adjust for ruby.
+
+Thu Dec 20 02:28:29 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * enc/iso8859_{1..16}.c: imported from Onigiruma 5.9.0.
+
+Thu Dec 20 02:23:22 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * enc/Makefile.in (RM): added.
+
+ * enc/depend (encs): sort in alpha-numeric order.
+
+ * enc/depend (clean, distclean): added.
+
+Thu Dec 20 01:10:52 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * compile.c (iseq_compile_each): should handle upper level eval iseq
+ from break/next, and COMPILE_ERROR() breaks only one block.
+ [ruby-dev:31372]
+
+Thu Dec 20 00:07:36 2007 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
+
+ * test/drb/drbtest.rb (test_07_public_private_protected_missing):
+ followed current Ruby specification.
+
+Wed Dec 19 23:57:37 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * dir.c (dir_inspect, dir_path, dir_tell): check for frozen and closed
+ is not needed. [ruby-dev:32640]
+
+Wed Dec 19 22:59:52 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (str_sublen): adjust position if position is not at the
+ head of a character.
+
+ * string.c (rb_str_chomp_bang): check if match start at the head
+ of a character.
+
+ * string.c (rb_str_chomp_bang): wrong adjust condition.
+
+ * string.c (rb_str_rindex): comparison length should be based on
+ bytes, not characters.
+
+ * string.c (rb_str_rindex_m): too much adjustment.
+
+ * re.c (reg_match_pos): pos adjustment should be based on
+ characters.
+
+ * test/ruby/test_m17n.rb (TestM17N::test_str_insert): test updated
+ to check negative offset behavior.
+
+ * string.c (rb_str_each_line): should consider rslen.
+
+ * string.c (rb_str_buf_append): should propagate encoding.
+
+ * string.c (rb_str_each_line): ditto.
+
+ * test/ruby/test_m17n.rb (TestM17N::test_str_each_line): should
+ check encoding as well.
+
+ * test/ruby/test_m17n.rb (TestM17N::test_str_each_line): empty
+ array can not propagate encoding; should not check.
+
+Wed Dec 19 21:42:18 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * re.c (rb_reg_regsub): should set checked encoding.
+
+ * string.c (rb_str_sub_bang): applied r14212 too.
+
+Wed Dec 19 20:40:01 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * bignum.c (bigmul1): C99ism.
+
+ * bignum.c (bigdivrem1): need dummy return value.
+
+Wed Dec 19 19:18:06 2007 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * ext/nkf/nkf-utf8/nkf.c: Updated.
+
+ * ext/nkf/nkf.c (rb_nkf_enc_get): added.
+ (find encoding or replicate default encoding)
+
+ * ext/nkf/nkf.c (NKF::<ENCODING>): redefine encoding constant.
+
+ * ext/nkf/lib/kconv.rb (Kconv::<ENCODING>): redefined as Encoding.
+
+ * ext/nkf/lib/kconv.rb: refactoring.
+
+Wed Dec 19 19:11:08 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * bignum.c (rb_big_mul0): blocking check for bigger numbers.
+ a patch from Yusuke ENDOH <mame AT tsg.ne.jp> in [ruby-dev:32632].
+
+ * bignum.c (bigdivrem): ditto.
+
+Wed Dec 19 17:34:50 2007 Koichi Sasada <ko1@atdot.net>
+
+ * compile.c (iseq_compile_each): remove "retry" in block.
+ ("iter{retry}" cause syntax error)
+ Currently, "begin; ...; rescue; iter{retry}; end" cause
+ syntax error too.
+
+ * bootstraptest/test_jump.rb: ditto.
+
+ * lib/drb/invokemethod.rb: ditto.
+
+ * sample/drb/darrayc.rb: ditto.
+
+ * sample/test.rb: ditto.
+
+ * test/drb/drbtest.rb: ditto.
+
+ * test/ruby/test_iterator.rb: ditto.
+
+ * sample/test.rb: add a 'test' directory on the SYSTEM test.
+
+Wed Dec 19 17:12:59 2007 Koichi Sasada <ko1@atdot.net>
+
+ * bootstraptest/test_knownbug.rb, test_block.rb:
+ move fixed bug.
+
+ * bootstraptest/test_m17n.rb: added.
+
+Wed Dec 19 16:59:55 2007 Koichi Sasada <ko1@atdot.net>
+
+ * eval.c (errinfo_place): skip if error is Fixnum. [ruby-dev:32608]
+
+ * bootstraptest/test_exception.rb, test_known_bug.rb: move fixed bug.
+
+Wed Dec 19 16:31:58 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (reg_named_capture_assign_iter): remove C99 dependency.
+
+ * parse.y (reg_named_capture_assign_iter): get rid of creating
+ unnecessary ID.
+
+ * parse.y (rb_enc_symname2_p): check for non-nul-terminated string.
+
+Wed Dec 19 15:37:06 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * insnhelper.ci (vm_yield_with_cfunc): call cfunc with
+ (argv[0], data, argc, argv) to pass all arguments.
+
+ * enumerator.c (enumerator_each_i): adapted to new calling
+ convention.
+
+Wed Dec 19 15:13:20 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (rb_str_justify): should propagate encoding from pad
+ string too.
+
+Wed Dec 19 13:57:43 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (TIMEZONE_VOID): check whether timezone requires zero
+ arguments. [ruby-dev:32631]
+
+Wed Dec 19 13:22:14 2007 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * ext/nkf/nkf.c (NKF::_ENCODING): removed.
+
+ * ext/nkf/nkf.c (rb_nkf_kconv): renamed to rb_nkf_convert.
+
+ * ext/nkf/nkf.c (rb_nkf_convert): set encoding.
+
+ * ext/nkf/nkf.c (rb_nkf_guess1): removed.
+
+ * ext/nkf/nkf.c (rb_nkf_guess2): renamed to rb_nkf_guess.
+
+ * ext/nkf/nkf.c (rb_nkf_guess):
+ guess method now returns encoding object.
+
+ * ext/nkf/nkf-utf8/nkf.c: Update to nkf 2.0.8 2007-12-19.
+
+Wed Dec 19 10:52:29 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * bignum.c (rb_cstr_to_inum): an underscore succeeding after octal
+ prefix is allowed. [ruby-core:14139]
+
+Wed Dec 19 00:09:19 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * bignum.c (rb_cstr_to_inum): wrong radix check. a patch from
+ Yusuke ENDOH <mame AT tsg.ne.jp> in [ruby-dev:32628].
+
+ * bignum.c (big2str_find_n1): ditto.
+
+Tue Dec 18 23:53:53 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * compile.c (iseq_compile_each): fix for segfault. [ruby-dev:31372]
+
+Tue Dec 18 23:44:32 2007 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * test/net/http/utils.rb: split TestNetHTTPUtils module from
+ test/net/http/test_http.rb. and start HTTP server in each test case.
+
+Tue Dec 18 23:27:51 2007 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * lib/webrick/server.rb (WEBrick::GenericServer#accept_client):
+ should rescue Errno::EINVAL from TCPServer#accept. this exception
+ might occur if the server socket is not in ready to listen.
+
+ * lib/webrick/server.rb (WEBrick::GenericServer#accept_client):
+ don't call TCPServer#close if the :ShutdownSocketWithoutClose is set.
+
+ * lib/webrick/config.rb (WEBrick::Config::General): add new parameter
+ :ShutdownSocketWithoutClose.
+
+Tue Dec 18 22:51:47 2007 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * ext/openssl/lib/openssl/ssl.rb (OpenSSL::SSL::SSLServer#shutdown):
+ new method which calls TCPSocket#shutdown of the underlying socket.
+
+Tue Dec 18 22:11:50 2007 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * lib/rss/parser.rb, lib/rss/atom.rb, lib/rss/rss.rb,
+ test/rss/rss-assertions.rb, test/rss/test_atom.rb: use
+ pack/unpack("m") instead of base64 library.
+
+ * lib/webrick/httpproxy.rb: use delete("\n") instead of chomp/chop
+ because the result of pack("m") might be multi-line.
+
+Tue Dec 18 22:12:35 2007 Koichi Sasada <ko1@atdot.net>
+
+ * insnhelper.ci, vm.c: rewrite sp manipulation around method/block
+ invocation. [ruby-dev:32547]
+
+Tue Dec 18 22:11:23 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * ext/dl/win32/lib/win32/sspi.rb: use pack/unpack("m") instead of
+ base64 library which was already removed.
+
+Tue Dec 18 21:09:23 2007 Koichi Sasada <ko1@atdot.net>
+
+ * vm.c (invoke_block): merge 2 stack overflow checks.
+
+Tue Dec 18 20:58:35 2007 Koichi Sasada <ko1@atdot.net>
+
+ * compile.c, insnhelper.ci, insns.def, object.c, vm.c, vm.h:
+ optimize !@, != method invocation.
+
+ * id.c, id.h: ditto.
+
+ * bootstraptest/test_syntax.rb: add tests for above.
+
+Tue Dec 18 18:10:05 2007 Koichi Sasada <ko1@atdot.net>
+
+ * bootstraptest/test_knownbug.rb: add issues.
+
+Tue Dec 18 20:22:44 2007 Tanaka Akira <akr@fsij.org>
+
+ * parse.y (arg tMATCH arg): call reg_named_capture_assign_gen if regexp
+ literal is used.
+ (reg_named_capture_assign_gen): assign the result of named capture
+ into local variables.
+ [ruby-dev:32588]
+
+ * re.c: document the assignment by named captures.
+
+Tue Dec 18 18:09:15 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (rb_str_splice): propagate encoding.
+
+ * string.c (rb_str_subpat_set): ditto.
+
+Tue Dec 18 17:27:12 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * object.c (rb_obj_freeze): preserve frozen state of immediate
+ values in internal hash table, a la generic_ivar.
+
+ * object.c (rb_obj_frozen_p): check immediate values too.
+
+ * variable.c (generic_ivar_set): add frozen check fro immediate
+ values.
+
+Tue Dec 18 17:04:25 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * transcode.c (rb_str_transcode_bang, rb_str_transcode): set new
+ encoding even if no conversion is done because of 7bit only.
+ [ruby-dev:32591]
+
+Tue Dec 18 15:43:59 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * common.mk (encs, ext/ripper/ripper.c): other options must come
+ before MAKEFLAGS in GNU make.
+
+Tue Dec 18 15:19:55 2007 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rdoc/parsers/parse_rb.rb: Don't call private fail anymore.
+
+Tue Dec 18 15:17:26 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * common.mk (encs, ext/ripper/ripper.c): pass MAKEFLAGS.
+
+Tue Dec 18 14:45:25 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * parse.y (op_tbl): remove duplication to avoid symbol aliases.
+
+Tue Dec 18 14:39:05 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (str_nth): need not to raise out-of-range exception.
+
+ * test/ruby/test_m17n.rb (TestM17N::test_str_aref_len): removed
+ debug print.
+
+Tue Dec 18 14:05:23 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * enc/depend: get rid of target expanded as empty for nmake.
+
+Tue Dec 18 07:56:57 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * proc.c (rb_obj_public_method): Object#public_method to retrieve
+ public method object.
+
+ * proc.c (rb_mod_public_instance_method): Module#public_instance_method
+ to retrieve public instance method from class / module.
+
+ * proc.c (mnew): visibility check added.
+
+ * eval_error.ci (rb_print_undef): add rb_ prefix.
+
+ * eval_error.ci (rb_print_undef): add visibility in the error
+ message.
+
+Tue Dec 18 05:54:26 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/Env.rb, lib/base64.rb, lib/importenv.rb, lib/eregex.rb: removed.
+
+ * lib/ping.rb, lib/readbytes.rb: removed
+
+Tue Dec 18 02:30:56 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (BUILTIN_ENCS): removed.
+
+ * common.mk (enc.mk): pass BUILTIN_ENCS from command line.
+
+ * enc/depend: ditto.
+
+ * enc/make_encmake.rb: ditto.
+
+Tue Dec 18 01:46:48 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * sprintf.c (rb_str_format): need to clear output buffer to avoid
+ broken encoding compatibility check.
+
+Tue Dec 18 01:40:20 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/mkmf.rb (depend_rules): inserts ruby to only headers.
+
+Tue Dec 18 01:21:19 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (parser_encode_length): chomp eol style modifiers.
+
+ * parse.y (parser_magic_comment): ditto.
+
+ * parse.y (set_file_encoding): ditto.
+
+Tue Dec 18 01:15:44 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * common.mk (encs): added dependencies.
+
+ * enc/Makefile.in, enc/depend, enc/make_encmake.rb: moved serb code.
+
+ * lib/mkmf.rb (depend_rules): now takes content string, not file name.
+
+ * win32/enc-setup.mak: overrides default target.
+
+Tue Dec 18 00:26:12 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * re.c (rb_reg_initialize): raise error if non-Unicode fixed
+ encoding option is specified for regexp literals with \u{}
+ escapes.
+
+ * string.c (rb_str_squeeze_bang): should squeeze multibyte
+ characters as well.
+
+Mon Dec 17 21:41:25 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * win32/enc-setup.mak: extracts BUILTIN_ENCOBJS.
+
+ * tool/compile_prelude.rb: needs srcdir.
+
+Mon Dec 17 21:24:04 2007 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * common.mk (miniprelude.c): add -I$(srcdir).
+
+Mon Dec 17 20:53:27 2007 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * ext/openssl/ossl_ssl.c (ossl_sslctx_set_ssl_version):
+ new method OpenSSL::SSL::SSLContext#ssl_version to wrap
+ SSL_CTX_set_ssl_version.
+
+ * ext/openssl/ossl_ssl.c (ossl_ssl_get_verify_result):
+ new method OpenSSL::SSL::SSLSocket#verify_result to wrap
+ SSL_get_verify_result.
+
+ * ext/openssl/lib/openssl/ssl.rb (OpenSSL::SSL::SSLContext.build):
+ new method to build OpenSSL::SSL::SSLContext with Hash parameters.
+ this method provides safety default parameters than SSLContext.new.
+
+ * ext/openssl/lib/openssl/ssl.rb (OpenSSL::SSL.verify_certificate_identity):
+ new module function: pull out identity verification process
+ from OpenSSL::SSL::SSLSocket#post_connection_check.
+
+Mon Dec 17 18:42:23 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (scan_once): need no encoding compatibility check.
+ it's done inside of re_reg_search().
+
+ * string.c (rb_str_split_m): ditto.
+
+ * re.c (rb_reg_regsub): ditto.
+
+Mon Dec 17 17:50:30 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (rb_str_index): check if substring is broken.
+
+ * string.c (rb_str_rindex): ditto.
+
+ * string.c (rb_str_succ): should carry over.
+
+Mon Dec 17 17:47:26 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * common.mk (encs): new target to compile external encodings.
+
+ * enc/Makefile.in: became a serb template.
+
+ * enc/make_encmake.rb: creates enc.mk from enc/Makefile.in using serb.
+
+ * lib/mkmf.rb (relative_from): moved from ext/extmk.rb.
+
+ * lib/mkmf.rb ($extmk): true if under to top source directory, not
+ only ext.
+
+ * lib/mkmf.rb (depend_rules): extracted from create_makefile.
+
+ * tool/serb.rb (serb): splitted from tool/compile_prelude.rb.
+
+Mon Dec 17 17:32:55 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (MAKEFILES): removed enc/Makefile.
+
+ * configure.in (EXTERNAL_ENCOBJS, ENCSOS): removed.
+
+ * enc/Makefile.in (BUILTIN_ENCS): includes .c suffix.
+
+ * enc/depend: splitted from Makefile.in.
+
+ * {bcc32,win32,wince}/setup.mak (-encs-): extracts BUILTIN_ENCOBJS.
+
+Mon Dec 17 17:07:53 2007 Tanaka Akira <akr@fsij.org>
+
+ * string.c (rb_enc_str_asciionly_p): use rb_enc_str_coderange.
+
+Mon Dec 17 16:39:25 2007 Tanaka Akira <akr@fsij.org>
+
+ * string.c (rb_enc_str_coderange): set ENC_CODERANGE_BROKEN using
+ rb_enc_precise_mbclen.
+ (rb_str_valid_encoding_p): just check coderange is
+ ENC_CODERANGE_BROKEN or not.
+
+Mon Dec 17 16:04:16 2007 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * ext/openssl/lib/openssl/buffering.rb (Buffering#gets): added second
+ optional argument to specify maximum length limit.
+
+Mon Dec 17 16:02:30 2007 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * lib/webrick/httprequest.rb, lib/webrick/cgi.rb: Request-Line or
+ header fields should be read with maximum length. [ruby-talk:231745]
+
+Mon Dec 17 14:03:39 2007 Tanaka Akira <akr@fsij.org>
+
+ * include/ruby/encoding.h (ENC_CODERANGE_VALID): rename from
+ ENC_CODERANGE_8BIT.
+
+ * string.c (rb_enc_str_coderange): follow the renaming.
+
+Mon Dec 17 13:56:53 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (tr_find): wrong condition fixed.
+
+ * sprintf.c (rb_str_format): check encoding based on result, not
+ the format string.
+
+ * string.c (rb_str_upto): add encoding check.
+
+Mon Dec 17 12:21:25 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * Makefile.in (RUNRUBY): added RUNRUBYOPT.
+
+Mon Dec 17 11:38:59 2007 Tanaka Akira <akr@fsij.org>
+
+ * thread_win32.ci (native_thread_create): initialize
+ th->machine_stack_maxsize as rb_gc_stack_maxsize.
+
+Sun Dec 16 17:07:35 2007 Martin Duerst <duerst@it.aoyama.ac.jp>
+
+ * transcode.c (transcode_loop): removed special case (-1)
+ for undefined conversions.
+
+ * transcode_data_iso_8859.c: Changed from character constants
+ ('\xC2') to integer constants (0xC2) for shorter files and
+ better readability; eliminated duplicated tables; changed
+ from -1 offset to actual UNDEF entry (not yet distinguishing
+ UNDEF and ILLEGAL correctly).
+
+ * test/ruby/test_transcode.rb: added a test for UNDEF conversion.
+
+Sun Dec 16 14:51:59 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (MAKEFILES): should be enc/Makefile, not GNUmakefile.
+ [ruby-dev:32609]
+
+ * configure.in (BUILTIN_ENCS): removed escapes for OpenBSD.
+
+Sat Dec 15 23:58:46 2007 Tanaka Akira <akr@fsij.org>
+
+ * test/openssl/test_pair.rb (SSLPair#ssl_pair): join the thread, even
+ on an error.
+
+Sat Dec 15 23:50:31 2007 Tanaka Akira <akr@fsij.org>
+
+ * test/xmlrpc/webrick_testing.rb: join webrick server thread.
+
+Sat Dec 15 22:27:39 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (BUILTIN_ENCS): splitted command line instead of
+ semicolons for Solaris.
+
+Sat Dec 15 21:38:24 2007 Tanaka Akira <akr@fsij.org>
+
+ * lib/timeout.rb: join the background thread to make sure it is dead.
+
+Sat Dec 15 20:20:48 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (enc/Makefile): add external encoding objects list.
+
+ * common.mk (BUILTIN_ENCOBJS): renamed from ENCOBJS.
+
+ * configure.in (BUILTIN_ENCS): [] needs to be enclosed because of m4.
+
+ * Makefile.in (BUILTIN_ENCOBJS): substituted by autoconf.
+
+ * enc/Makefile.in: new file to compile external encoding sources.
+
+ * encoding.c (rb_enc_find_index): auto-load external encoding objects
+ as "ext/ENCODING_NAME". [ruby-dev:32606]
+
+Sat Dec 15 13:04:30 2007 Tanaka Akira <akr@fsij.org>
+
+ * vm_core.h (rb_thread_t): new member machine_stack_maxsize and
+ machine_register_stack_maxsize.
+
+ * gc.c (rb_gc_stack_maxsize): new global variable for the thread size
+ of the main thread.
+ (STACK_LEVEL_MAX): use machine_stack_maxsize of current thread.
+ (ruby_stack_check): check IA64 register stack.
+ (ruby_set_stack_size): set rb_gc_stack_maxsize.
+ (Init_stack): set rb_gc_stack_maxsize.
+
+ * thread_pthread.ci (native_thread_create): initialize
+ th->machine_stack_maxsize and th->machine_register_stack_maxsize.
+
+ * vm.c (Init_BareVM): initialize th->machine_stack_maxsize and
+ th->machine_register_stack_maxsize.
+
+ * thread_win32.ci (native_thread_create): initialize
+ th->machine_stack_maxsize. not tested. just a guess at all.
+
+ [ruby-dev:32604]
+
+Sat Dec 15 12:58:00 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * encoding.c (rb_enc_register, rb_enc_replicate, rb_enc_alias): check
+ if already registered.
+
+Sat Dec 15 01:57:06 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/rdoc/options.rb (Options::parse): do not access $KCODE any
+ longer. [ruby-core:14079]
+
+ * lib/irb/init.rb (IRB::IRB.parse_opts): ditto.
+
+ * lib/cgi.rb (CGI::CGI): ditto.
+
+Fri Dec 14 18:18:31 2007 Tanaka Akira <akr@fsij.org>
+
+ * thread_pthread.ci (native_thread_create): twice the stack size.
+ 512KB is not enough to complete test-all on Debian GNU/Linux on
+ IA64.
+
+Fri Dec 14 16:10:50 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * io.c (rb_f_p): RDoc update. a patch from murphy <murphy AT rubychan.de>.
+ [ruby-core:14010]
+
+Fri Dec 14 16:06:18 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (rb_str_cmp): encoding aware comparison.
+
+ * string.c (rb_str_casecmp): ditto.
+
+Fri Dec 14 15:25:30 2007 Martin Duerst <duerst@it.aoyama.ac.jp>
+
+ * transcode.c (encoding_equal): new function.
+
+ * transcode.c (str_transcode, transcode_dispatch): added two-step
+ conversion logic via UTF-8.
+
+ * transcode.c: some minor formatting fixes
+
+ * transcode_data.h, transcode_data_iso_8859.c: Shortened
+ extremely frequently used macros to shorten file length.
+
+ * test/ruby/test_transcode.rb: Fixed name of test class;
+ added setup method to ensure all necessary encodings exist;
+ split tests into more test methods; added tests; fixed ordering
+ of arguments in assert_equal to have expected result first.
+
+Fri Dec 14 13:47:54 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * common.mk (ruby.imp): fix for circular dependency. a patch from
+ Yutaka Kanemoto <kinpoco AT gmail.com> in [ruby-dev:32590].
+
+ * regint.h, st.c, ext/json/ext/generator/generator.c: suppress
+ warnings on AIX.
+
+Fri Dec 14 12:36:35 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (RUBY_CHECK_VARTYPE): check if a variable is defined
+ and its type.
+
+ * configure.in (timezone, altzone): check for recent cygwin.
+
+ * missing/strftime.c (strftime): fix for timezone. [ruby-dev:32536]
+
+ * lib/mkmf.rb (try_var): should fail for functions.
+
+ * ext/readline/extconf.rb: should use have_func for functions instead
+ of have_var.
+
+Fri Dec 14 10:25:56 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/e2mmap.rb (Exception2MessageMapper::E2MM.Raise): $! no
+ longer modifiable in 1.9.
+
+Fri Dec 14 08:17:24 2007 Tanaka Akira <akr@fsij.org>
+
+ * eval.c (rb_protect): restore root_jmpbuf even if proc exits by
+ break such as dbm.delete_if { break }.
+
+Fri Dec 14 02:55:41 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (str_nth): direct jump if string is 7bit only. great
+ performance boost for worst case.
+
+ * string.c (str_strlen): direct size if string is 7bit only.
+
+Fri Dec 14 02:29:32 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * encoding.c (rb_enc_compatible): 1st argument (typically the
+ receiver) would have higher priority in encoding detection.
+
+Fri Dec 14 02:05:42 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * io.c (rb_io_synchronized): should check if initialized.
+ [ruby-dev:32585]
+
+Fri Dec 14 00:54:40 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * re.c (rb_reg_initialize): embedded string may override encoding
+ of the regular expression.
+
+ * re.c (rb_reg_initialize): fix encoding of regular expression if
+ embedded string has its own encoding specified.
+
+Thu Dec 13 22:16:46 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * encoding.c (rb_enc_compatible): encoding should never fall back
+ to ASCII-8BIT unless both encodings are ASCII-8BIT.
+
+Thu Dec 13 20:31:28 2007 Tanaka Akira <akr@fsij.org>
+
+ * string.c (rb_str_shared_replace): make str noembed after free.
+
+Thu Dec 13 20:09:09 2007 Tanaka Akira <akr@fsij.org>
+
+ * eval.c (rb_protect): restore root_jmpbuf to avoid SEGV by
+ 'IO.pipe; [].each.next' with gcc version 3.3.5 (Debian 1:3.3.5-13)
+ on IA64.
+
+Thu Dec 13 17:51:54 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (rb_str_split_m): need not to check encoding if regexp
+ is empty.
+
+ * string.c (rb_str_justify): associate encoding of original to the
+ result.
+
+ * string.c (rb_str_chomp_bang): need to check encoding of record
+ separator.
+
+ * string.c (str_gsub): should copy encoding to the result.
+
+ * sprintf.c (rb_str_format): ditto.
+
+ * string.c (rb_str_succ): should not enter infinite loop for
+ non-ASCII, non-alphanumeric character at the bottom.
+
+Thu Dec 13 17:03:29 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * encoding.c (rb_enc_compatible): should swap encoding indexes too.
+
+Thu Dec 13 16:41:37 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * encoding.c (rb_enc_compatible): should not judge compatibility
+ based on rb_enc_asciicompat().
+
+Thu Dec 13 13:09:03 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * include/ruby/io.h (MakeOpenFile): fptr->enc should be
+ initialized to zero. [ruby-dev:32569]
+
+Thu Dec 13 08:56:01 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * io.c (rb_io_getc): use default external encoding if fptr->enc is
+ not set. [ruby-dev:32565]
+
+ * lib/rubygems/package.rb (Gem::TarReader::Entry::rewind): typo fixed.
+ [ruby-dev:32565]
+
+Thu Dec 13 08:24:16 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * io.c (read_all): should associate default external encoding.
+
+ * io.c (io_read): should NOT associate default external encoding.
+
+Wed Dec 12 23:22:58 2007 Tanaka Akira <akr@fsij.org>
+
+ * re.c, regerror.c, string.c, parse.y, ruby.c, file.c:
+ use capital letter for \xHH notation. [ruby-dev:32511]
+
+Wed Dec 12 22:21:34 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * io.c (rb_io_mode_enc): allow specifying external encoding in
+ open mode, e.g. open(path, "r:utf-8").
+
+Wed Dec 12 21:26:03 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval_method.ci (rb_alias): no need to skip aliasing when new
+ equals to old. [ruby-core:13990]
+
+Wed Dec 12 16:34:53 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * io.c (rb_io_check_readable): set default external encoding to
+ STDIN.
+
+ * io.c (io_enc_str): associate encoding to output string.
+
+Wed Dec 12 12:44:39 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * parse.y (expr): 'not' and '!' should act as conditional
+ expression. [ruby-dev:32548]
+
+Wed Dec 12 12:11:42 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * re.c (rb_reg_regsub): should copy encoding.
+
+ * string.c (rb_str_sub_bang, str_gsub): should check and copy encoding
+ to be replaced.
+
+Tue Dec 11 23:04:17 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * pack.c (pack_pack): RDoc update. a patch from Gary Wright
+ <radar2002 AT gmail.com>. [ruby-core:13998]
+
+ * pack.c (pack_unpack): ditto.
+
+Tue Dec 11 16:37:47 2007 Tanaka Akira <akr@fsij.org>
+
+ * encoding.c (rb_enc_ascget): renamed from rb_enc_get_ascii.
+
+ * include/ruby/encoding.h: follow the renaming.
+
+ * re.c: ditto.
+
+Tue Dec 11 16:19:26 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * Makefile.in, */Makefile.sub (CP, MV): added.
+
+ * common.mk (.y.c): not discard the old target until successfully
+ created.
+
+Tue Dec 11 15:20:39 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * object.c (Init_Object): singleton_method_{added,removed,undefined}
+ hooks should be defined for BasicObject. [ruby-dev:32531]
+
+ * eval.c (Init_eval): method_missing should be defined for all
+ objects; moved to BasicObject.
+
+Tue Dec 11 14:27:50 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * transcode.c (transcode_loop): get rid of SEGV at sequence can not be
+ converted.
+
+ * transcode.c (rb_str_transcode_bang): copy encoding. [ruby-dev:32532]
+
+ * test/ruby/test_transcode.rb: added tests from Martin Duerst <duerst
+ AT it.aoyama.ac.jp>. [ruby-dev:32532]
+
+Tue Dec 11 12:05:51 2007 Tanaka Akira <akr@fsij.org>
+
+ * encoding.c (rb_enc_get_ascii): add an argument to provide the
+ length of the returned character.
+
+ * include/ruby/encoding.h (rb_enc_get_ascii): add the argument.
+
+ * re.c (rb_reg_expr_str): modify rb_enc_get_ascii call.
+ (rb_reg_quote): ditto.
+ (rb_reg_regsub): ditto.
+
+Tue Dec 11 09:40:21 2007 Tanaka Akira <akr@fsij.org>
+
+ * include/ruby/oniguruma.h (ONIGENC_CONSTRUCT_MBCLEN_NEEDMORE):
+ parenthesize an argument.
+
+Tue Dec 11 02:23:32 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (rb_method_missing): RDoc update patch from Hugh Sasse
+ <hgs AT dmu.ac.uk>. [ruby-core:12932]
+
+Tue Dec 11 01:51:34 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/net/http.rb (Net::HTTP::get): now supports gzip
+ content-encoding. a patch from Hugh Sasse <hgs AT dmu.ac.uk>.
+ [ruby-core:13451]
+
+Tue Dec 11 01:21:21 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * parse.y (shadowing_lvar_gen): no duplicate error for "_".
+
+Mon Dec 10 22:08:47 2007 Akinori MUSHA <knu@iDaemons.org>
+
+ * array.c (rb_ary_slice_bang): If an invalid range is given, do
+ not raise an exception but return nil just like slice() does.
+
+Mon Dec 10 21:47:53 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * transcode.c (str_transcode): allow non-registered encodings.
+ [ruby-dev:32520]
+
+Mon Dec 10 21:00:30 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * array.c (rb_ary_slice_bang): should return nil if position out
+ of range. a patch from Akinori MUSHA <knu AT iDaemons.org>.
+ [ruby-dev:32518]
+
+Mon Dec 10 19:02:52 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * re.c (rb_reg_match): should calculate offset by converted
+ operand. [ruby-cvs:21416]
+
+Mon Dec 10 18:28:06 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/uri/common.rb (URI::REGEXP::PATTERN): typo in REG_NAME
+ regular expression. a patch from Ueda Satoshi
+ <s-ueda AT livedoor.jp>. [ruby-dev:32514]
+
+Mon Dec 10 17:46:04 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * string.c (rb_str_tmp_new): creates hidden temporary buffer.
+
+ * transcode.c (transcoding): added a pointer to function to flush.
+
+ * transcode.c (transcode_loop): do not use string internal.
+ [ruby-dev:32512]
+
+ * transcode.c (str_transcode): allow Encoding objects.
+
+ * transcode_data.h (BYTE_LOOKUP): use actual struct name.
+
+Mon Dec 10 16:52:17 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * string.c (rb_str_insert): should not add length in bytes to index in
+ chars.
+
+Mon Dec 10 14:33:50 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (rb_f_public_send): rename invoke_method to public_send.
+ it now invokes public method only no matter how it's called.
+
+Mon Dec 10 14:00:43 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * transcode.c: new file to provide encoding conversion features.
+ code contributed by Martin Duerst.
+
+Mon Dec 10 13:50:33 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * re.c (rb_reg_search): return byte offset. [ruby-dev:32452]
+
+ * re.c (rb_reg_match, rb_reg_match2, rb_reg_match_m): convert byte
+ offset to char index.
+
+ * string.c (rb_str_index): return byte offset. [ruby-dev:32472]
+
+ * string.c (rb_str_split_m): calculate in byte offset.
+
+Mon Dec 10 09:56:29 2007 Koichi Sasada <ko1@atdot.net>
+
+ * benchmark/bm_vm1_neq.rb, bm_vm1_not.rb: added.
+
+Mon Dec 10 07:48:14 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * parse.y (parser_yylex): wrong token was generated. [ruby-dev:32498]
+
+ * object.c (rb_obj_not_match): wrong test.
+
+Mon Dec 10 06:44:47 2007 Tanaka Akira <akr@fsij.org>
+
+ * re.c (rb_reg_expr_str): use \xHH instead of \OOO.
+
+ * regerror.c (to_ascii): ditto.
+ (onig_snprintf_with_pattern): ditto.
+ (onig_snprintf_with_pattern): ditto.
+
+ * string.c (rb_str_inspect): ditto.
+ (rb_str_dump): ditto.
+
+ * parse.y (parser_yylex): ditto.
+
+ * ruby.c (proc_options): ditto.
+
+ * file.c (rb_f_test): ditto.
+
+ [ruby-dev:32495]
+
+Mon Dec 10 06:41:00 2007 Tanaka Akira <akr@fsij.org>
+
+ * re.c (rb_reg_names): new method Regexp#names.
+ (rb_reg_named_captures): new method Regexp#named_captures
+ (match_regexp): new method MatchData#regexp.
+ (match_names): new method MatchData#names.
+
+ * lib/pp.rb (MatchData#pretty_print): show names of named captures.
+
+ [ruby-dev:32493]
+
+Mon Dec 10 01:35:06 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * parse.y (expr): redefinable not (!) operator.
+
+ * parse.y (arg): ditto.
+
+ * object.c (rb_obj_not): new method "!".
+
+ * object.c (rb_obj_not_equal): new method "!=".
+
+ * object.c (rb_obj_not_match): new method "!~".
+
+Sun Dec 9 22:31:36 2007 Tanaka Akira <akr@fsij.org>
+
+ * re.c (rb_reg_s_last_match): accept named capture's name.
+
+Sun Dec 9 15:57:53 2007 Tanaka Akira <akr@fsij.org>
+
+ * re.c (match_backref_number): new function for converting a backref
+ name/number to an integer.
+ (match_offset): use match_backref_number.
+ (match_begin): ditto.
+ (match_end): ditto.
+ (name_to_backref_number): raise IndexError instead of RuntimeError.
+ (match_inspect): show capture index.
+
+Sun Dec 9 14:59:15 2007 Koichi Sasada <ko1@atdot.net>
+
+ * eval_intern.h (CHECK_STACK_OVERFLOW): reserve frame size.
+ [ruby-dev:32485]
+
+Sun Dec 9 14:38:25 2007 Koichi Sasada <ko1@atdot.net>
+
+ * vm.c (rb_thread_mark): use rb_gc_mark_maybe() for
+ VM stack specified by mark_stack_len. [ruby-dev:32462]
+
+ * insnhelper.ci: clear vm stack extended by opt value.
+
+Sun Dec 9 14:08:47 2007 Tanaka Akira <akr@fsij.org>
+
+ * include/ruby/ruby.h (FilePathStringValue): defined. similar to
+ FilePathValue but no taint check.
+
+ * file.c (rb_get_path_no_checksafe): implementation of
+ FilePathStringValue.
+ (rb_file_s_basename): use FilePathStringValue.
+ (rb_file_s_dirname): ditto.
+ (rb_file_s_extname): ditto.
+ (rb_file_s_split): ditto.
+ (rb_file_join): ditto.
+
+ * dir.c (file_s_fnmatch): ditto.
+
+Sun Dec 9 12:49:34 2007 Tanaka Akira <akr@fsij.org>
+
+ * re.c (append_utf8): check unicode range.
+
+Sun Dec 9 12:39:01 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/cgi.rb (read_multipart): exclude blanks from header values.
+ [ruby-list:44327]
+
+Sun Dec 9 12:18:19 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * file.c (rb_get_path): use the original object if to_path method is
+ not defined. [ruby-dev:32473]
+
+ * io.c (rb_f_open): call to_open on non-string objects, instead of
+ to_str. [ruby-dev:32473]
+
+Sun Dec 9 12:12:23 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * string.c (tr_find): returns true if no characters to be removed is
+ specified.
+
+Sun Dec 9 12:03:16 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (parser_magic_comment): delimits with a semicolon.
+
+Sun Dec 9 11:29:23 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * string.c (tr_trans): get rid of segfaults when has multibytes but
+ source sets have no multibytes.
+
+Sun Dec 9 04:01:28 2007 Tanaka Akira <akr@fsij.org>
+
+ * encoding.c (rb_enc_mbclen): return 1 if underlying implementation
+ returns a length longer than e-p.
+ (rb_enc_precise_mbclen): return needmore if underlying
+ implementation returns a length longer than e-p.
+
+Sat Dec 8 17:59:40 2007 Tanaka Akira <akr@fsij.org>
+
+ * signal.c (posix_signal): return value.
+
+Sat Dec 8 17:22:16 2007 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * test/openssl/test_pkcs7.rb: Remove redundant module namespace.
+
+Sat Dec 8 17:07:10 2007 Tanaka Akira <akr@fsij.org>
+
+ * ruby.c (proc_options): make rb_raise format as a string literal to
+ avoid warning.
+
+Sat Dec 8 16:18:16 2007 Tanaka Akira <akr@fsij.org>
+
+ * re.c (rb_reg_check_preprocess): new function for validating regexp
+ fragment.
+
+ * parse.y (regexp): invoke reg_fragment_check.
+ (reg_fragment_check): defined.
+ (reg_fragment_check_gen): defined.
+
+Sat Dec 8 11:06:29 2007 Tanaka Akira <akr@fsij.org>
+
+ * encoding.c (rb_enc_mbclen): make it never fail.
+ (rb_enc_nth): don't check the return value of rb_enc_mbclen.
+ (rb_enc_strlen): ditto.
+ (rb_enc_precise_mbclen): return needmore(1) if e <= p.
+ (rb_enc_get_ascii): new function for extracting ASCII character.
+
+ * include/ruby/encoding.h (rb_enc_get_ascii): declared.
+
+ * include/ruby/regex.h (ismbchar): removed.
+
+ * re.c (rb_reg_expr_str): use rb_enc_get_ascii.
+ (unescape_escaped_nonascii): use rb_enc_precise_mbclen to determine
+ the termination of escaped non-ASCII character.
+ (unescape_nonascii): use rb_enc_precise_mbclen.
+ (rb_reg_quote): use rb_enc_get_ascii.
+ (rb_reg_regsub): use rb_enc_get_ascii.
+
+ * string.c (rb_str_reverse) don't check the return value of
+ rb_enc_mbclen.
+ (rb_str_split_m): don't call rb_enc_mbclen with e <= p.
+
+ * parse.y (is_identchar): use ISASCII.
+ (parser_ismbchar): removed.
+ (parser_precise_mbclen): new macro.
+ (parser_isascii): new macro.
+ (parser_tokadd_mbchar): use parser_precise_mbclen to check invalid
+ character precisely.
+ (parser_tokadd_string): use parser_isascii.
+ (parser_yylex): ditto.
+ (is_special_global_name): don't call is_identchar with e <= p.
+ (rb_enc_symname_p): ditto.
+
+ [ruby-dev:32455]
+
+ * ext/tk/sample/tkextlib/vu/canvSticker2.rb: remove coding cookie
+ because the encoding is not UTF-8. [ruby-dev:32475]
+
+Fri Dec 7 20:21:35 2007 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * ext/openssl/lib/net/ftptls.rb, ext/openssl/lib/net/telnets.rb:
+ half-finished libraries are discontinued.
+
+Fri Dec 7 15:44:40 2007 Tanaka Akira <akr@fsij.org>
+
+ * lib/pp.rb: use Hash for recursion check as inspect.
+
+Fri Dec 7 15:04:01 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * array.c (flatten): some performance improvements, based on a patch
+ from Yusuke ENDOH <mame AT tsg.ne.jp> in [ruby-core:13877].
+ [ruby-core:13851]
+
+ * thread.c (rb_exec_recursive): use Hash instead of Array for
+ performance improvement. [ruby-core:13898]
+
+ * thread.c (recursive_pop): use object ID.
+
+Thu Dec 6 19:52:50 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * parse.y (arg): typo fixed ("!" -> "|") in the ripper code.
+
+Thu Dec 6 19:48:41 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * parse.y (arg): tUPLUS no longer works as identity operation any
+ more. inspired by [ruby-talk:265532].
+
+Thu Dec 6 18:22:11 2007 Tanaka Akira <akr@fsij.org>
+
+ * encoding.c (rb_enc_precise_mbclen): new function for mbclen with
+ validation.
+
+ * include/ruby/encoding.h (rb_enc_precise_mbclen): declared.
+ (MBCLEN_CHARFOUND): new macro.
+ (MBCLEN_INVALID): new macro.
+ (MBCLEN_NEEDMORE): new macro.
+
+ * include/ruby/oniguruma.h (OnigEncodingTypeST): replace mbc_enc_len
+ by precise_mbc_enc_len.
+ (ONIGENC_PRECISE_MBC_ENC_LEN): new macro.
+ (ONIGENC_CONSTRUCT_MBCLEN_CHARFOUND): new macro.
+ (ONIGENC_CONSTRUCT_MBCLEN_INVALID): new macro.
+ (ONIGENC_CONSTRUCT_MBCLEN_NEEDMORE): new macro.
+ (ONIGENC_MBCLEN_CHARFOUND): new macro.
+ (ONIGENC_MBCLEN_INVALID): new macro.
+ (ONIGENC_MBCLEN_NEEDMORE): new macro.
+ (ONIGENC_MBC_ENC_LEN): use ONIGENC_PRECISE_MBC_ENC_LEN.
+
+ * enc/euc_jp.c: validation implemented.
+
+ * enc/sjis.c: ditto.
+
+ * enc/utf8.c: ditto.
+
+ * string.c (rb_str_inspect): use rb_enc_precise_mbclen for invalid
+ encoding.
+ (rb_str_valid_encoding_p): new method String#valid_encoding?.
+
+ * io.c (rb_io_getc): use rb_enc_precise_mbclen.
+
+ [ruby-dev:32438]
+
+Thu Dec 6 01:37:23 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * regparse.c (i_apply_case_fold): fix for negative character class. a
+ patch from Yusuke ENDOH <mame AT tsg.ne.jp> in [ruby-core:13884].
+
+Thu Dec 6 01:00:38 2007 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * ext/iconv/iconv.c (iconv_s_list): support NetBSD/Citrus iconv.
+
+Wed Dec 5 16:18:50 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * proc.c (rb_proc_s_new): call initialize. [ruby-core:13824]
+
+ * proc.c (rb_proc_location): return file name and line number where
+ the proc is defined.
+
+ * thread.c (thread_s_new): call initialize. [ruby-core:13835]
+
+ * thread.c (thread_initialize): split initialize method.
+
+Wed Dec 5 15:25:55 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (rb_intern3): fix to changing encoding to default, and
+ uncommented r13835, which is rare but not impossible.
+
+Wed Dec 5 15:15:21 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * range.c (step_i, range_step): support non-fixnum steps.
+ [ruby-talk:282100]
+
+Wed Dec 5 14:25:11 2007 Koichi Sasada <ko1@atdot.net>
+
+ * compile.c (iseq_compile_each): fix typo.
+
+Wed Dec 5 13:41:25 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (yycompile): get rid of tracing while parsing.
+ [ruby-dev:31351]
+
+ * thread.c (ruby_suppress_tracing): added a new parameter, which
+ directs to call func always.
+
+Tue Dec 4 19:56:42 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/iconv/iconv.c (iconv_convert): should not set encoding unless
+ the target encoding is supported. [ruby-dev:32451]
+
+Tue Dec 4 17:34:17 2007 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * ext/nkf/lib/kconv.rb (tojis, tosjis, toeuc, toutf8):
+ set encoding. [ruby-dev:32447]
+
+Tue Dec 4 17:07:25 2007 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * lib/json.rb, lib/json/*: moved to ext/json/lib.
+
+Tue Dec 4 16:34:46 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/iconv/iconv.c (iconv_create): achieve target encoding.
+
+ * ext/iconv/iconv.c (iconv_convert, iconv_finish, iconv_iconv,
+ iconv_conv): set result string encoding. [ruby-dev:32446]
+
+ * ext/iconv/iconv.c (iconv_initialize, iconv_s_open): set encoding to
+ Iconv instance.
+
+Tue Dec 4 14:34:35 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ruby.c (process_options): reverted c flag.
+
+Tue Dec 4 11:23:50 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * bignum.c (rb_cstr_to_inum): trailing spaces may exist at squeezing
+ preceding 0s. [ruby-core:13873]
+
+Mon Dec 3 11:51:53 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * ext/Win32API/*: removed or moved to ext/dl/win32.
+
+ * ext/dl/win32/*: new. [ruby-dev:32387]
+
+Sun Dec 2 22:08:01 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (parser_tokadd_mbchar): fix for ASCII chars. [ruby-dev:32432]
+
+ * parse.y (parser_parse_string, parser_here_document): prevent false
+ error messages.
+
+Sun Dec 2 20:43:22 2007 Tanaka Akira <akr@fsij.org>
+
+ * re.c (unescape_escaped_nonascii): fix mbclen argument.
+
+Sun Dec 2 15:47:57 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (parser_tokadd_mbchar): check insufficient multibyte char.
+ [ruby-dev:32429]
+
+Sun Dec 2 15:42:16 2007 Kouhei Sutou <kou@cozmixng.org>
+
+ * lib/rss/rss.rb, test/rss/test_version.rb: 0.2.1 -> 0.2.2.
+
+ * lib/rss/maker/itunes.rb: fixed new_itunes_category.
+ * lib/rss/maker/taxonomy.rb: new_taxo_topic -> new_topic because
+ of consistency.
+
+ * test/rss/test_maker_itunes.rb, test/rss/test_itunes.rb: removed
+ needless UTF-8 characters.
+
+Sun Dec 2 15:18:37 2007 Koichi Sasada <ko1@atdot.net>
+
+ * insnhelper.ci (vm_callee_setup_arg): fix error message.
+ [ruby-dev:32430]
+
+Sun Dec 2 09:12:48 2007 Tanaka Akira <akr@fsij.org>
+
+ * parse.y (regexp): fix /#{}\xa1\xa2/e to be EUC-JP.
+ (reg_fragment_setenc_gen): extracted from reg_compile_gen.
+
+Sun Dec 2 01:39:51 2007 Tanaka Akira <akr@fsij.org>
+
+ * include/ruby/intern.h (rb_uv_to_utf8): declared.
+
+ * re.c (rb_reg_preprocess): new function for dynamic regexp with
+ \u{} such as Regexp.new("\\u{6666}").
+ (rb_reg_prepare_re): preprocess regexp for recompiling.
+ (read_escaped_byte): new function.
+ (unescape_escaped_nonascii): new function.
+ (append_utf8): new function.
+ (unescape_unicode_list): new function.
+ (unescape_unicode_bmp): new function.
+ (unescape_nonascii): new function.
+ (rb_reg_initialize): preprocess regexp.
+
+ * pack.c (rb_uv_to_utf8): renamed from uv_to_utf8.
+
+ * parse.y (STR_NEW3): take func instead of has8 and hasmb.
+ (parser_str_new): use default coderange mechanism except for regexp.
+ (parser_tokadd_utf8): copy regexp source as-is.
+ (parser_read_escape): UTF-8 stuff removed.
+ (parser_tokadd_escape): has8bit and hasmb removed.
+ (parser_tokadd_string): fix 8-bit single byte character with \u.
+ (parser_parse_string): has8bit and hasmb removed.
+ (parser_here_document): has8bit and hasmb removed.
+ (parser_yylex): call parser_tokadd_utf8 instead of read_escape for
+ UTF-8 character.
+
+Wed Dec 2 01:00:07 2007 James Edward Gray II <jeg2@ruby-lang.org>
+
+ * lib/xmlrpc/server.rb (XMLRPC::Server#server): Improve signal handling so
+ pressing control-c in the controlling terminal or sending SIGTERM stops
+ the XML-RPC server.
+
+Sat Dec 1 23:04:42 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * encoding.c: rename primary_encoding -> default_external (encoding).
+
+Sat Dec 1 19:52:57 2007 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * lib/date.rb (Time#to_datetime): use nsec instead of usec.
+
+ * lib/date.rb (DateTime#to_time): second minute as an argument to
+ Time::utc contains fractional part in rational; hence Time
+ object may keep resolution at most nanosecond.
+
+Sat Dec 1 14:36:05 2007 Koichi Sasada <ko1@atdot.net>
+
+ * bootstraptest/test_knownbug.rb: move fixed bugs.
+
+ * test/ruby/test_sprintf.rb: ditto.
+
+ * test/yaml/test_yaml.rb: ditto.
+
+Sat Dec 1 13:24:47 2007 Koichi Sasada <ko1@atdot.net>
+
+ * insnhelper.ci (vm_yield_with_cfunc): fix to passing argc on third
+ parameter of IFUNC. [ruby-dev:32329]
+
+ * enumerator.c: fix to pass exact number of argument.
+
+ * eval.c (rb_yield_values2): added.
+
+ * include/ruby/ruby.h: ditto.
+
+ * bootstraptest/test_knownbug.rb: move a fixed test.
+
+ * bootstraptest/test_block.rb: ditto.
+
+Sat Dec 1 10:45:56 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * io.c (rb_f_open): use to_open for every non-string object. path
+ object may use method_missing.
+
+Sat Dec 1 09:44:32 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * insns.def (concatarray, splatarray): use to_a instead of
+ to_splat.
+
+ * insnhelper.ci (caller_setup_args): ditto.
+
+Sat Dec 1 03:34:32 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (newline_node): always remove NODE_BEGIN.
+
+Fri Nov 30 23:48:07 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * signal.c (ruby_signal): use SA_SIGINFO if available.
+ [ ruby-Patches-6418 ]
+
+Fri Nov 30 22:52:54 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * signal.c (trap_signm): SIGVTALRM no longer used for green
+ thread. [ruby-talk:281318]
+
+ * signal.c (ruby_sig_finalize): do not install SIG_DFL handler if
+ previous handler is sighandler().
+
+Fri Nov 30 21:02:15 2007 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * lib/json.rb, lib/json/add/{core.rb, rails.rb},
+ test/json/test_json_rails.rb: additional files of JSON 1.1.2.
+ [ruby-dev:32405]
+
+Fri Nov 30 19:33:38 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ext/syck/rubyext.c (rb_syck_mktime): avoid segmentation fault.
+ [ruby-core:13735]
+
+Fri Nov 30 19:05:55 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * enum.c (enum_count): precise argument number check.
+
+ * enum.c (enum_count): return Enumerator if no block given.
+
+Fri Nov 30 16:42:50 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * enum.c (enum_take_while): returns Enumerator if no block given.
+
+ * enum.c (enum_drop_while): ditto.
+
+Thu Nov 29 16:59:10 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (stmt): remove unnecessary NODE_BEGIN. [ruby-core:13814]
+
+Thu Nov 29 06:45:48 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * hash.c (rb_hash_eql): recursive comparison should be based on
+ eql? [ruby-core:13803]
+
+Wed Nov 28 18:08:00 2007 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * ext/json, lib/json, test/json: Update to JSON 1.1.2.
+ (RubyForge#15447)
+
+ * math.c: fix typo.
+
+Wed Nov 28 16:29:35 2007 Koichi Sasada <ko1@atdot.net>
+
+ * insnhelper.ci (vm_invoke_block): should splat args.
+ [ruby-dev:32392]
+
+ * test/ruby/test_yield.rb: add tests for above.
+
+Wed Nov 28 14:43:14 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/extmk.rb (extract_makefile): use dldflags instead of DLDFLAGS to
+ get rid of mixing $LDFLAGS and $ARCH_FLAG.
+
+ * lib/mkmf.rb (configuration): ditto.
+
+ * lib/mkmf.rb (create_makefile): support for extensions which has no
+ shared object.
+
+Wed Nov 28 02:42:10 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * bignum.c (big2str_find_n1): removed extraneous element.
+ [ruby-dev:32351], [ruby-dev:32365]
+
+ * bignum.c (big2str_find_n1): returns necessary digits now.
+
+ * sprintf.c (remove_sign_bits): extends sign bit first.
+
+Tue Nov 27 15:53:43 2007 Koichi Sasada <ko1@atdot.net>
+
+ * compile.c (iseq_compile_each): "when *[],1" dumps core.
+ a patch from Yusuke ENDOH <mame AT tsg.ne.jp>. [ruby-dev:32350]
+
+ * bootstraptest/test_syntax.rb: add a test for above.
+
+Tue Nov 27 15:40:05 2007 Koichi Sasada <ko1@atdot.net>
+
+ * compile.c (iseq_compile_each): "a[*b] += 1" dumps core.
+ a patch from Yusuke ENDOH <mame AT tsg.ne.jp>. [ruby-dev:32354]
+
+ * bootstraptest/test_syntax.rb: add a test for above.
+
+Tue Nov 27 12:47:23 2007 Koichi Sasada <ko1@atdot.net>
+
+ * compile.c, insns.def: change return value of "defined?"
+ for $&, $1, ... . If such variables are defined,
+ return "global-variable".
+
+ * test/ruby/test_defined.rb: add tests.
+
+ * bootstraptest/test_syntax.rb: fix a test.
+
+Tue Nov 27 11:54:46 2007 Koichi Sasada <ko1@atdot.net>
+
+ * insns.def: fix typo.
+
+Tue Nov 27 11:23:20 2007 Koichi Sasada <ko1@atdot.net>
+
+ * test_beginendblock.rb: add loop to wait signal.
+ [ruby-dev:32332]
+
+Tue Nov 27 11:14:57 2007 Tanaka Akira <akr@fsij.org>
+
+ * include/ruby/encoding.h, encoding.c, re.c, string.c, parse.y:
+ rename ENC_CODERANGE_SINGLE to ENC_CODERANGE_7BIT.
+ rename ENC_CODERANGE_MULTI to ENC_CODERANGE_8BIT.
+ Because single byte 8bit character, such as Shift_JIS 1byte katakana,
+ is represented by ENC_CODERANGE_MULTI even if it is not multi byte.
+
+Tue Nov 27 10:45:45 2007 Koichi Sasada <ko1@atdot.net>
+
+ * eval.c (rb_method_missing): fix stack trace.
+
+ * bootstraptest/test_knownbug.rb: move solved tests.
+
+ * bootstraptest/test_method.rb, test/ruby/test_regexp.rb: ditto.
+
+Tue Nov 27 09:57:42 2007 Koichi Sasada <ko1@atdot.net>
+
+ * insns.def, compile.c: fix to allow dsym for alias/undef.
+ [ruby-dev:32355]
+
+ * bootstraptest/test_method.rb: add tests for above.
+
+Mon Nov 26 23:18:46 2007 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
+
+ * lib/drb/extserv.rb (initialize, stop_service): synchronize with
+ ExtServManager.
+
+ * test/drb/test_drb.rb (TestDRbEval): ignored.
+
+Mon Nov 26 17:32:16 2007 Tanaka Akira <akr@fsij.org>
+
+ * re.c (Init_Regexp): new method Regexp#fixed_encoding?
+ [ruby-dev:32361]
+
+Mon Nov 26 13:28:14 2007 Keiju Ishitsuka <keiju@ruby-lang.org>
+
+ * lib/complex.rb: be able to create Complex(0, -0.0). [ruby-list:44268]
+
+Mon Nov 26 11:24:04 2007 Tanaka Akira <akr@fsij.org>
+
+ * re.c (rb_reg_fixed_encoding_p): extracted from rb_reg_prepare_re and
+ rb_reg_s_union.
+ (rb_reg_s_union): refactored.
+
+Mon Nov 26 10:44:20 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * io.c (rb_read_internal, rb_sysopen_internal): remove C99 dependency.
+
+Sun Nov 25 22:21:35 2007 Tanaka Akira <akr@fsij.org>
+
+ * include/ruby/encoding.h (rb_enc_str_asciionly_p): declared.
+ (rb_enc_str_asciicompat_p): defined.
+
+ * re.c (rb_reg_initialize_str): use rb_enc_str_asciionly_p.
+ (rb_reg_quote): return ascii-8bit string if the argument is
+ ascii-only to generate encoding generic regexp if possible.
+ (rb_reg_s_union): fix encoding handling. [ruby-dev:32094]
+
+ * string.c (rb_enc_str_asciionly_p): defined.
+
+Sun Nov 25 12:12:03 2007 Eric Hodel <drbrain@segment7.net>
+
+ * gem_prelude.rb: Import fast-loading gem_prelude.rb from RubyGems.
+
+ * lib/rubygems*: Import RubyGems r1516.
+
+Sat Nov 24 23:25:52 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * test/ruby/test_eval.rb (TestEval::test_instance_eval_cvar):
+ updated not to modify class variable of Object class.
+
+Fri Nov 23 17:34:24 2007 Koichi Sasada <ko1@atdot.net>
+
+ * io.c: add rb_read_internal() as blocking function.
+
+Fri Nov 23 17:33:39 2007 Koichi Sasada <ko1@atdot.net>
+
+ * vm.c: fix comment.
+
+Fri Nov 23 17:26:11 2007 Koichi Sasada <ko1@atdot.net>
+
+ * bootstraptest/test_knownbug.rb: move solved tests.
+
+ * bootstraptest/test_io.rb, test_marshal.rb, test_objectspace.rb:
+ ditto.
+
+ * test/ruby/test_integer.rb, test_regexp.rb: ditto.
+
+Fri Nov 23 15:59:04 2007 Tanaka Akira <akr@fsij.org>
+
+ * struct.c (rb_struct_alloc_noinit): new function.
+ (rb_struct_define_without_accessor): add allocator to the arguments.
+
+ * range.c (range_alloc): re-introduced using rb_struct_alloc_noinit.
+
+Fri Nov 23 15:27:43 2007 Tanaka Akira <akr@fsij.org>
+
+ * re.c (REG_CASESTATE): unused macro removed.
+ (rb_reg_prepare_re): check encoding difference.
+ (rb_reg_initialize): check 8bit byte.
+
+ * parse.y (parser_tokadd_escape): fix has8bit.
+
+ [ruby-dev:32113]
+
+Fri Nov 23 15:16:48 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * variable.c (rb_f_global_variables): variable names should not
+ duplicate. [ruby-dev:32344]
+
+Fri Nov 23 13:34:08 2007 Tanaka Akira <akr@fsij.org>
+
+ * struct.c (rb_struct_define_without_accessor): new function.
+
+ * range.c (range_alloc): removed.
+ (Init_Range): use rb_struct_define_without_accessor.
+
+ based on [ruby-dev:32327].
+
+Fri Nov 23 11:01:54 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * re.c (match_begin): should return offset by character.
+ [ruby-dev:32331]
+
+ * re.c (match_end): ditto.
+
+ * re.c (rb_reg_search): ditto.
+
+Fri Nov 23 10:44:24 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * compile.c (defined_expr): defined(method(x)) dumped core. a
+ patch from Yusuke ENDOH <mame AT tsg.ne.jp>. [ruby-dev:32335]
+
+Wed Nov 21 18:03:49 2007 Koichi Sasada <ko1@atdot.net>
+
+ * vm.c: fix to recycle thread data (VM stack).
+
+ * thread.c: ditto.
+
+ * benchmark/bm_vm3_thread_create_join.rb: add loop count.
+
+Wed Nov 21 18:02:10 2007 Koichi Sasada <ko1@atdot.net>
+
+ * benchmark/driver.rb: add path to trunk/lib if driver runner is
+ in build directory.
+
+Wed Nov 21 16:39:21 2007 Tanaka Akira <akr@fsij.org>
+
+ * test/fileutils/fileasserts.rb (assert_equal_timestamp): new assert
+ to test tv_sec only for filestamp resolution portability.
+ (assert_same_entry): use assert_same_entry for mtime comparison.
+
+Wed Nov 21 14:55:13 2007 Koichi Sasada <ko1@atdot.net>
+
+ * array.c (rb_ary_permutation): add gc guard codes.
+
+Wed Nov 21 11:16:37 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * insnhelper.ci (vm_search_normal_superclass): rename function.
+
+ * insnhelper.ci (vm_search_superclass): ditto.
+
+ * proc.c (struct METHOD): rename rklass -> rclass.
+
+Wed Nov 21 03:12:50 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * process.c (rb_f_system): returns nil on execution failure.
+ [ruby-core:13715]
+
+Wed Nov 21 01:04:12 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * object.c (nil_plus): remove unused function. [ruby-core:13737]
+
+Tue Nov 20 21:46:46 2007 Tanaka Akira <akr@fsij.org>
+
+ * time.c (time_mload): ignore invalid digits in submicro.
+
+Tue Nov 20 20:33:32 2007 Koichi Sasada <ko1@atdot.net>
+
+ * include/ruby/ruby.h: rename RFloat#double_value -> float_value.
+
+ * numeric.c, parse.y: ditto.
+
+Tue Nov 20 19:36:21 2007 Koichi Sasada <ko1@atdot.net>
+
+ * gc.h, vm_core.h: decl of rb_gc_save_machine_context()
+ should be at vm_core.h.
+
+ * include/ruby/ruby.h, intern.h: remove type rb_thread_t.
+
+ * include/ruby/intern.h: change rb_unblock_function_t,
+ rb_unblock_function_t.
+
+ * file.c, process.c: apply above changes.
+
+ * thread.c, thread_pthread.ci, thread_win32.ci: ditto.
+
+ * io.c: support blocking open (2). [ruby-core:13614]
+
+Tue Nov 20 17:10:11 2007 Tanaka Akira <akr@fsij.org>
+
+ * io.c (rb_io_close_on_exec_p): new method IO#close_on_exec?.
+ (rb_io_set_close_on_exec): new method IO#close_on_exec=.
+ [ruby-dev:32323]
+
+Tue Nov 20 16:24:31 2007 Tanaka Akira <akr@fsij.org>
+
+ * gc.c (gc_mark_children): obj->as.file.fptr may be 0 for T_FILE.
+
+Tue Nov 20 15:09:00 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (parser_read_escape): has8bit flag may be set with control
+ escape. [ruby-core:13722]
+
+ * parse.y (parser_prepare): set begging after BOM if exists.
+ [ruby-core:13718]
+
+Tue Nov 20 14:55:37 2007 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems*: Update to RubyGems 0.9.5.
+
+Tue Nov 20 13:00:44 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * include/ruby/win32.h win32/win32.c (rb_w32_pipe_exec): use dual fd
+ instead of socketpair when mode is RDWR.
+
+ * io.c (pipe_open): pass &write_fd to rb_w32_pipe_exec().
+
+ * io.c (popen_redirect): define only when HAVE_FORK.
+
+Tue Nov 20 12:12:04 2007 Tanaka Akira <akr@fsij.org>
+
+ * include/ruby/io.h (rb_io_t): add tied_io_for_writing member.
+
+ * io.c: use tied_io_for_writing for duplex popen.
+
+ * gc.c: mark tied_io_for_writing.
+
+ * common.mk: gc.o depends io.h.
+
+ [ruby-dev:32205]
+
+Tue Nov 20 11:59:33 2007 Tanaka Akira <akr@fsij.org>
+
+ * test/drb/test_drb.rb: rename TestRubyYield to TestDRbRubyYield to
+ avoid name crash with test/ruby/test_yield.rb.
+ TestRuby18Yield is renamed to TestDRbRuby18Yield too.
+
+Tue Nov 20 03:24:42 2007 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
+
+ * lib/drb/extservm.rb: merged from ruby_1_8 branch.
+
+ * lib/drb/acl.rb: ditto.
+
+ * lib/drb/ssl.rb: ditto.
+
+ * lib/drb/unix.rb: ditto.
+
+ * lib/drb/drb.rb: ditto.
+
+ * lib/drb/observer.rb: ditto.
+
+ * lib/drb/invokemethod.rb: ditto.
+
+ * test/drb/test_drbssl.rb: ditto.
+
+ * test/drb/test_drb.rb: ditto.
+
+ * test/drb/drbtest.rb: ditto.
+
+ * test/drb/test_drbunix.rb: ditto.
+
+Tue Nov 20 00:52:46 2007 Tanaka Akira <akr@fsij.org>
+
+ * test/fileutils/fileasserts.rb (assert_equal_time): show nsec if
+ assertion fails but time.to_s equals.
+ (assert_same_entry): use assert_equal_time.
+
+ * test/fileutils/test_fileutils.rb (test_install): use
+ assert_equal_time.
+
+Mon Nov 19 18:46:49 2007 Tanaka Akira <akr@fsij.org>
+
+ * file.c (utime_internal): fallback utimensat to utimes.
+
+Mon Nov 19 17:51:27 2007 Tanaka Akira <akr@fsij.org>
+
+ * configure.in: check struct timespec, clock_gettime, utimensat,
+ struct stat.st_atim,
+ struct stat.st_atimespec,
+ struct stat.st_atimensec,
+ struct stat.st_mtim,
+ struct stat.st_mtimespec,
+ struct stat.st_mtimensec,
+ struct stat.st_ctim,
+ struct stat.st_ctimespec,
+ struct stat.st_ctimensec.
+
+ * include/ruby/missing.h: provide struct timespec if not available.
+
+ * time.c: support nanosecond-resolution using struct timespec.
+ (time_nsec): new method: Time#nsec and Time#tv_nsec.
+
+ * include/ruby/intern.h: provide rb_time_nano_new.
+
+ * file.c (utime_internal): use utimensat if available.
+ (rb_file_s_utime): refactored.
+ (rb_f_test): use stat_atime, stat_mtime, stat_ctime.
+ (rb_stat_cmp): check tv_nsec.
+ (stat_atimespec): new function.
+ (stat_atime): ditto.
+ (stat_mtimespec): ditto.
+ (stat_mtime): ditto.
+ (stat_ctimespec): ditto.
+ (stat_ctime): ditto.
+ (rb_stat_atime): use stat_atime.
+ (rb_file_s_atime): ditto.
+ (rb_file_atime): ditto.
+ (rb_stat_mtime): use stat_mtime.
+ (rb_file_s_mtime): ditto.
+ (rb_file_mtime): ditto.
+ (rb_file_ctime): use stat_ctime.
+ (rb_file_s_ctime): ditto.
+ (rb_stat_ctime): ditto.
+
+ * variable.c (rb_copy_generic_ivar): clear clone's instance variables
+ if obj has no instance variable.
+
+ * marshal.c (w_object): dump instance variables of generated string
+ for TYPE_USERDEF, even if original object has instance variables.
+
+ * lib/time.rb (Time#xmlschema): use nsec instead of usec.
+
+ [ruby-dev:32306]
+
+Mon Nov 19 17:48:30 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * object.c (rb_class_superclass): should not raise exception for
+ BasicObject. [ruby-Bugs-15668]
+
+Mon Nov 19 16:04:08 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * array.c (rb_ary_permutation): gives all permutations of elements
+ if no argument given. a patch from Yusuke ENDOH <mame AT tsg.ne.jp>.
+ [ruby-dev:32309]
+
+Mon Nov 19 02:44:07 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * compile.c (iseq_compile_each): alias and undef accept dsyms as well
+ as literals. [ruby-dev:32308]
+
+Mon Nov 19 02:31:36 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval_method.ci (rb_add_method): no redefinition warning for undef.
+
+Mon Nov 19 01:53:11 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (parser_read_escape): disallow control and meta modifiers
+ for non-ASCII characters. [ruby-core:13685]
+
+Sun Nov 18 20:47:41 2007 Tanaka Akira <akr@fsij.org>
+
+ * marshal.c (mark_dump_arg): it may be called after dump_ensure.
+
+Sun Nov 18 18:27:47 2007 Tanaka Akira <akr@fsij.org>
+
+ * time.c (time_minus): fix Time.at(2**60+1) - Time.at(2**60).
+
+Sun Nov 18 17:28:49 2007 Tanaka Akira <akr@fsij.org>
+
+ * time.c (time_arg): show actual year in 2-3 digits year warning.
+ (time_mdump): show actual year in "year too big to marshal" error.
+
+Sun Nov 18 14:03:44 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval_method.ci (rb_alias): do not call hook functions until
+ initialization finishes. [ruby-talk:279538]
+
+Sun Nov 18 09:09:48 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/mkmf.rb (String#tr_cpp): make preprocessor identifiers.
+
+Sun Nov 18 05:19:46 2007 Tanaka Akira <akr@fsij.org>
+
+ * lib/mkmf.rb (have_struct_member): define HAVE_type_member.
+
+Sat Nov 17 23:51:29 2007 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+
+ * ext/win32ole/win32ole.c (ole_invoke): bug fix. [ruby-talk:279100]
+
+Sat Nov 17 23:21:15 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * parse.y (parser_yylex): should clear parser->tokp as well.
+ [ruby-dev:32250]
+
+ * parse.y: remove NEED_ASSOC that break test_parser_events.
+
+ * parse.y (parser_yylex): should not decrement line numbers at the
+ end of file.
+
+ * file.c (rb_find_file_ext): search .rb files first through in the
+ loadpath.
+
+Fri Nov 16 23:31:18 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * bignum.c (rb_big_odd_p): new method added. a patch from Tadashi
+ Saito <shiba AT mail2.accsnet.ne.jp>. [ruby-dev:32305]
+
+ * bignum.c (rb_big_even_p): ditto.
+
+Fri Nov 16 17:41:34 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/iconv/iconv.c (Document-class): moved the simplest example to
+ the top.
+
+ * ext/iconv/iconv.c (iconv_s_iconv): Document-method: needs class
+ prefix for class method. [ruby-core:13542]
+
+ * ext/iconv/iconv.c (iconv_iconv): also instance method needs to be
+ qualified.
+
+Fri Nov 16 16:26:57 2007 Shugo Maeda <shugo@ruby-lang.org>
+
+ * include/ruby/ruby.h: added some declarations for event hooks.
+
+ * lib/profile.rb: set VM::InstructionSequence.compile_option.
+
+Fri Nov 16 11:16:41 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/yaml/rubytypes.rb (String#is_binary_data?): use Integer#fdiv.
+
+Fri Nov 16 03:36:01 2007 why the lucky stiff <why@ruby-lang.org>
+
+ * ext/syck/rubyext.c: Node#value defined twice.
+
+ * lib/yaml/: several method redefinitions causing warnings.
+
+Fri Nov 16 03:01:00 2007 why the lucky stiff <why@ruby-lang.org>
+
+ * lib/yaml/types.rb: Likewise, pass self to YAML::quick_emit.
+
+Fri Nov 16 02:51:59 2007 why the lucky stiff <why@ruby-lang.org>
+
+ * lib/yaml.rb (quick_emit): use combination of object_id and hash to
+ identify repeated object references, since GC will reuse memory of
+ objects during output of YAML. [ruby-Bugs-8548] [ruby-Bugs-3698]
+
+Thu Nov 15 19:49:03 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * ext/curses/extconf.rb: check macro if cannot find func.
+ [ruby-list:44224]
+
+Thu Nov 15 18:04:06 2007 Tanaka Akira <akr@fsij.org>
+
+ * tool/compile_prelude.rb: fix TMP_RUBY_PREFIX for relative load path
+ environment.
+
+Thu Nov 15 17:28:21 2007 Tanaka Akira <akr@fsij.org>
+
+ * tool/compile_prelude.rb: absolute path may not start with a slash.
+ pointed by usa.
+
+Thu Nov 15 17:07:54 2007 Tanaka Akira <akr@fsij.org>
+
+ * tool/compile_prelude.rb: fix first substitution.
+ use constant for prefix.
+ pointed by Richard Kilmer.
+
+Thu Nov 15 14:29:56 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * common.mk (prereq): added auto generated sources. [ruby-dev:32280]
+
+Thu Nov 15 12:31:13 2007 Tanaka Akira <akr@fsij.org>
+
+ * tool/compile_prelude.rb: use constant for prefix.
+
+Thu Nov 15 12:24:39 2007 Tanaka Akira <akr@fsij.org>
+
+ * tool/compile_prelude.rb: use simple template system for source
+ code generation.
+
+Thu Nov 15 12:19:14 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/cgi/session.rb (CGI::Session::FileStore::restore): use
+ lockfile for exclusive locks. a patch from <tommy AT tmtm.org>.
+ [ruby-dev:32296]
+
+Thu Nov 15 12:14:53 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * tool/compile_prelude.rb (c_esc): need to escape closing brace.
+
+Thu Nov 15 11:52:16 2007 Tanaka Akira <akr@fsij.org>
+
+ * tool/compile_prelude.rb: adjust RbConfig::CONFIG paths relative
+ to the installation path.
+
+Thu Nov 15 11:25:20 2007 Tanaka Akira <akr@fsij.org>
+
+ * ruby.c (usage): fix typo on --disable-gems option.
+ pointed by Richard Kilmer.
+
+Wed Nov 14 16:16:17 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * test/net/http/test_https_proxy.rb
+ (HTTPSProxyTest::test_https_proxy_authentication): initialize
+ local variable 't' first. [ruby-dev:32253]
+
+Wed Nov 14 15:39:24 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * test/socket/test_socket.rb: update not to use 1.8 assignment to
+ external local variable in the block parameters. [ruby-dev:32251]
+
+ * test/strscan/test_stringscanner.rb: avoid $KCODE, and use
+ String#force_encoding(). [ruby-dev:32251]
+
+Wed Nov 14 14:04:42 2007 Tanaka Akira <akr@fsij.org>
+
+ * common.mk, Makefile.in: rename prelude.c to miniprelude.c.
+ rename ext_prelude.c to prelude.c
+
+ * win32/Makefile.sub: ditto.
+
+ * bcc32/Makefile.sub: ditto.
+
+Wed Nov 14 07:09:48 2007 Koichi Sasada <ko1@atdot.net>
+
+ * blockinlining.c, compile.c, compile.h, debug.c, debug.h,
+ id.c, insnhelper.h, insns.def, thread.c, thread_pthread.ci,
+ thread_pthread.h, thread_win32.ci, thread_win32.h, vm.h,
+ vm_dump.c, vm_evalbody.ci, vm_opts.h: fix comments and
+ copyright year.
+
+Wed Nov 14 07:07:51 2007 Koichi Sasada <ko1@atdot.net>
+
+ * tool/makedocs.rb, template/insnstbl.html: removed.
+
+Wed Nov 14 02:50:43 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * common.mk (parse.c): dependency also needs vpath.
+
+ * common.mk (node_name.inc, prelude.c): VPATH in nmake does not
+ work for targets of explicit rules.
+
+Wed Nov 14 02:11:38 2007 Tanaka Akira <akr@fsij.org>
+
+ * missing/isinf.c (isinf): don't define if the macro is defined.
+
+ * configure.in: no need to set ac_cv_func_isinf=yes on non-gcc
+ solaris.
+
+Wed Nov 14 01:34:42 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * numeric.c (round): fallback definition.
+
+ * numeric.c (flo_divmod, flo_round): use round() always.
+ [ruby-dev:32269]
+
+Wed Nov 14 00:33:49 2007 Koichi Sasada <ko1@atdot.net>
+
+ * include/ruby/ruby.h: introduce 2 macros:
+ RFLOAT_VALUE(v), DOUBLE2NUM(dbl).
+ Rename RFloat#value -> RFloat#double_value.
+ Do not touch RFloat#double_value directly.
+
+ * bignum.c, insns.def, marshal.c, math.c, numeric.c, object.c,
+ pack.c, parse.y, process.c, random.c, sprintf.c, string.c,
+ time.c: apply above changes.
+
+ * ext/dl/mkcallback.rb, ext/json/ext/generator/generator.c:
+ ditto.
+
+Wed Nov 14 00:15:37 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * tool/ytab.sed: get rid of GNU sed feature. a patch from Laurent
+ Sansonetti <laurent.sansonetti AT gmail.com> in [ruby-core:13470].
+
+Tue Nov 13 21:41:39 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * common.mk (parse.c), ext/ripper/depend (ripper.c): process after
+ bison with sed. [ruby-dev:32204]
+
+ * ruby.c (proc_options): use yydebug in cmdline_options.
+
+ * ruby.c (process_options): set yydebug flag of parser.
+
+ * parse.y (yydebug): moved into struct parser_params.
+
+ * parse.y (rb_parser_get_yydebug, rb_parser_set_yydebug): parser
+ generic methods.
+
+ * */Makefile.sub (parse.c): moved to common.mk.
+
+ * tool/ytab.sed: comment out yydebug definition, and substitute
+ yyerror with parser_yyerror.
+
+Tue Nov 13 16:33:07 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * numeric.c (flodivmod): work around for infinity.
+
+ * numeric.c (flo_divmod): work around for platforms have no round().
+ [ruby-dev:32247]
+
+Tue Nov 13 15:26:33 2007 Tanaka Akira <akr@fsij.org>
+
+ * lex.c.blt: moved from lex.c.
+
+ * lex.c.src: copied from keywords. This is the source of lex.c.blt.
+
+ * Makefile.in (lex.c): use lex.c.blt if keywords is same as lex.c.src.
+
+ * win32/Makefile.sub (lex.c): re-introduce copy rule.
+
+ * bcc32/Makefile.sub (lex.c): ditto.
+
+ * wince/Makefile.sub (lex.c): ditto.
+
+Tue Nov 13 15:21:52 2007 Koichi Sasada <ko1@atdot.net>
+
+ * compile.c (iseq_specialized_instruction): check argc.
+
+Tue Nov 13 14:44:32 2007 why the lucky stiff <why@ruby-lang.org>
+
+ * test/yaml/test_yaml.rb: fixed the failing YAML Struct test
+ at ko1's request.
+
+Tue Nov 13 02:57:04 2007 URABE Shyouhei <shyouhei@ice.uec.ac.jp>
+
+ * numeric.c (flo_divmod): round to the nearest integer.
+ [ ruby-Bugs-14540 ]
+
+Tue Nov 13 00:36:16 2007 Shugo Maeda <shugo@ruby-lang.org>
+
+ * test/ruby/test_settracefunc.rb: fixed tests for set_trace_func.
+
+Mon Nov 12 19:47:29 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * thread.c (call_trace_proc): should return value.
+
+Mon Nov 12 19:45:18 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * {bcc,win}32/Makefile.sub (miniruby): use $(COMMONOBJS) and $(DMYEXT)
+ instead of $(LIBRUBY_A).
+
+Mon Nov 12 18:32:53 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * {bcc,win}32/Makefile.sub (MINIOBJS): added prelude.$(OBJEXT).
+
+Mon Nov 12 17:13:23 2007 Tanaka Akira <akr@fsij.org>
+
+ * Makefile.in, common.mk: add prelude.o to MINIOBJS.
+
+Mon Nov 12 16:52:29 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/mkmf.rb (create_makefile): rdoc about srcprefix. a patch from
+ Daniel Berger <djberg96 AT gmail.com> in [ruby-core:13378].
+
+Mon Nov 12 16:48:09 2007 Tanaka Akira <akr@fsij.org>
+
+ * Makefile.in, common.mk: add ext_prelude.o to OBJS.
+
+Mon Nov 12 13:57:39 2007 Tanaka Akira <akr@fsij.org>
+
+ * configure.in (MINIDLNOBJS): removed.
+ (MINIOBJS): set to dln.o if dmydln.o is not used.
+
+ * Makefile.in (miniruby): use MINIOBJS instead of MINIDLNOBJS.
+
+Mon Nov 12 13:53:06 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * misc/ruby-mode.el (ruby-parse-partial): handle stringified
+ symbols properly using ruby-forward-string.
+
+Mon Nov 12 12:17:59 2007 Tanaka Akira <akr@fsij.org>
+
+ * configure.in (MINIDLNOBJS): defined.
+
+ * Makefile.in (miniruby): use MINIDLNOBJS and COMMONOBJS instead of
+ MINIOBJS and OBJS to avoid linking both dmydln.o and dln.o.
+
+Sun Nov 11 20:32:45 2007 Tanaka Akira <akr@fsij.org>
+
+ * {win32,wince,bcc32}/Makefile.sub: delete lex.c rule.
+
+Sun Nov 11 19:40:52 2007 Tanaka Akira <akr@fsij.org>
+
+ * Makefile.in (lex.c): simplified.
+
+Sun Nov 11 18:31:48 2007 Tanaka Akira <akr@fsij.org>
+
+ * Makefile.in (lex.c): touch lex.c if gperf failed but lex.c exists.
+ Although this may cause non-updated lex.c,
+ svn co may generate keywords newer than lex.c especially on
+ a file system which can record fractional mtime such as XFS.
+
+Sun Nov 11 17:32:46 2007 Shugo Maeda <shugo@ruby-lang.org>
+
+ * insnhelper.ci (vm_call_method): pass mn->nd_clss to
+ vm_call_cfunc() instead of klass.
+
+ * vm.c (rb_thread_method_id_and_klass): traverse parent_iseq.
+
+ * thread.c (call_trace_proc): use rb_thread_method_id_and_klass().
+
+Sun Nov 11 16:54:25 2007 Tanaka Akira <akr@fsij.org>
+
+ * lex.c: renamed from lex.c.blt.
+
+ * Makefile.in (lex.c): use find command to check mtime.
+
+Sun Nov 11 05:34:13 2007 Eric Hodel <drbrain@segment7.net>
+
+ * bin/gem: Add forgotten gem command.
+
+Sat Nov 10 23:50:31 2007 Tanaka Akira <akr@fsij.org>
+
+ * string.c (tr_trans): cast to unsigned char after dereference
+ a pointer to a char to avoid SEGV with "\377".tr("a", "b").
+ on FreeBSD/amd64.
+
+Sat Nov 10 23:08:53 2007 Tanaka Akira <akr@fsij.org>
+
+ * configure.in, common.mk, Makefile.in: don't generate
+ libminiruby-static.a.
+
+Sat Nov 10 19:46:54 2007 Tanaka Akira <akr@fsij.org>
+
+ * configure.in, common.mk, Makefile.in: generate libminiruby-static.a
+ which contains prelude.o for miniruby.
+
+Sat Nov 10 18:10:07 2007 Tanaka Akira <akr@fsij.org>
+
+ * gem_prelude.rb: new file for gem libraries. currently empty.
+
+ * common.mk: generate ext_prelude.c by prelude.rb and gem_prelude.rb.
+ ruby (not miniruby) is linked with ext_prelude.o instead of
+ prelude.o.
+
+ * inits.c (rb_call_inits): don't call Init_prelude.
+
+ * ruby.c: support --disable-gems option.
+ (ruby_init_gems): new function to define Gem::Enable and
+ invoke Init_prelude.
+ (process_options): call ruby_init_gems just after
+ ruby_init_loadpath.
+
+ * tool/compile_prelude.rb: support multiple files.
+
+Sat Nov 10 17:27:55 2007 Shugo Maeda <shugo@ruby-lang.org>
+
+ * thread.c (call_trace_proc): don't call ID2SYM() for ID_ALLOCATOR
+ to avoid SEGV.
+
+Sat Nov 10 16:37:07 2007 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems: Import RubyGems revision 1493.
+
+ * lib/rubygems.rb: ditto.
+
+ * lib/ubygems.rb: ditto.
+
+ * lib/rbconfig/datadir.rb: ditto.
+
+ * test/rubygems: ditto.
+
+Sat Nov 10 16:34:21 2007 Eric Hodel <drbrain@segment7.net>
+
+ * lib/soap/property.rb: Don't override Enumerable#inject for 1.9.
+
+Sat Nov 10 14:43:30 2007 David Flanagan <davidflanagan@ruby-lang.org>
+
+ * parse.y: use ASCII encoding for string literals that are
+ 7-bit clean, fixing regression from my previous patch
+
+Sat Nov 10 13:18:54 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * {bcc32,win32}/Makefile.sub: vendor_ruby support.
+
+Fri Nov 9 23:33:16 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (parser_nextc): added single line read forward buffer.
+
+ * parse.y (parser_yylex): adjust line number for fluent interface.
+
+Fri Nov 9 22:04:21 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * vm.h (FRAME_MAGIC_MASK_BITS): bits of FRAME_MAGIC_MASK.
+
+ * insnhelper.ci (vm_call_cfunc, vm_cfunc_flags): use shift operations.
+
+Fri Nov 9 21:46:28 2007 Koichi Sasada <ko1@atdot.net>
+
+ * eval.c (eval): should be volatile value for GC.
+
+Fri Nov 9 17:48:22 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ruby.c (locale_encoding): guesstimate encoding from environment
+ variables. [ruby-core:13315]
+
+ * ruby.c (process_options): set primary encoding from environment.
+
+Fri Nov 9 16:51:42 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * io.c (rb_io_each_byte): should update rbuf_off and rbuf_len for
+ each iteration. [ruby-dev:31659][ruby-dev:32192]
+
+ * variable.c (rb_cvar_set): cvar assignment obey same rule to cvar
+ reference. [ruby-dev:32192]
+
+Fri Nov 9 15:52:00 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * encoding.c (enc_check_encoding, rb_set_primary_encoding): ENCODING
+ is no longer in FL_USERS flags.
+
+Fri Nov 9 15:20:13 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * string.c (rb_str_squeeze_bang): initialize squeezing table if no
+ arguments given.
+
+Fri Nov 9 13:57:50 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * enum.c (each_with_index_i): use rb_yield_values() for
+ compatibility with Enumerator#with_index(). a patch from Yusuke
+ ENDOH <mame AT tsg.ne.jp>. [ruby-dev:32195]
+
+Fri Nov 9 13:45:05 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * test/ruby/test_iterator.rb (TestIterator::IterTest::each):
+ #each_pair is now alias to #each. [ruby-dev:32192]
+
+ * test/ruby/test_iterator.rb (TestIterator::test_assoc_yield):
+ ditto
+
+Fri Nov 9 12:56:36 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval_load.c (loaded_feature_path): check with type of given feature.
+
+Fri Nov 9 12:43:02 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * test/ruby/test_basicinstructions.rb: updated for new class
+ behavior. [ruby-dev:32192]
+
+ * encoding.c (enc_name): Encoding should not rely on ENCODING in
+ the FL_USERS flags.
+
+ * encoding.c (rb_enc_from_encoding): do not call rb_enc_associate
+ for encoding itself.
+
+ * encoding.c (enc_register_at): ditto.
+
+ * marshal.c (r_ivar): do not set real instance variable for
+ encoding data associated.
+
+Fri Nov 9 10:43:55 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (send_internal): use self in the previous frame to check for
+ protected methods. [ruby-core:13254]
+
+ * insnhelper.ci (vm_call_method): send! method has gone.
+
+Fri Nov 9 10:38:13 2007 Koichi Sasada <ko1@atdot.net>
+
+ * marshal.c (w_object): should be SPECIAL_CONST_P() instead of
+ IMMEDIATE_P().
+
+Fri Nov 9 10:29:21 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (rb_invoke_method): check if invoked in function style.
+ [ruby-core:13245]
+
+ * insnhelper.ci (vm_call_cfunc, vm_cfunc_flags): stores and returns VM
+ calling flags.
+
+ * vm.c (rb_vm_cfunc_funcall_p): returns if the current method is
+ invoked in function style.
+
+Fri Nov 9 10:10:21 2007 Koichi Sasada <ko1@atdot.net>
+
+ * cont.c: add rb_context_t#type.
+
+Fri Nov 9 10:05:54 2007 Koichi Sasada <ko1@atdot.net>
+
+ * ruby.c (set_arg0): fix breaking environ bugs.
+
+Fri Nov 9 07:26:04 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * random.c: update MT URL.[ruby-core:13305].
+
+Thu Nov 8 17:09:55 2007 David Flanagan <davidflanagan@ruby-lang.org>
+
+ * object.c: improve docs for Object.tap
+
+ * ChangeLog: fix bogus dates on my previous entries
+
+Thu Nov 8 15:13:56 2007 David Flanagan <davidflanagan@ruby-lang.org>
+
+ * parse.y: fix segfault with \x escapes in regexps
+ delete unused #if 0 code regions from previous patch
+
+Thu Nov 8 12:12:10 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * parse.y (parser_read_escape): remove C99/gcc-ism.
+
+Thu Nov 8 07:54:22 2007 David Flanagan <davidflanagan@ruby-lang.org>
+
+ * parse.y: patch, based on Nobu's, work to support \u escapes
+ also modifications for better coderange detection
+
+ * test/ruby/test_unicode_escapes.rb: test cases
+
+ * test/ruby/test_mixed_unicode_escapes.rb: mixed encoding test cases
+
+Thu Nov 8 07:14:37 2007 David Flanagan <davidflanagan@ruby-lang.org>
+
+ * parse.y (rb_intern3): commented out broken code that prevented
+ correct interning of multi-byte symbols. Without this patch
+ :x==:x is false when x is a multi-byte character.
+
+Thu Nov 8 07:04:31 2007 David Flanagan <davidflanagan@ruby-lang.org>
+
+ * string.c (tr_setup_table, tr_trans): fix test failures
+ in test/ruby/test_string.rb
+
+Wed Nov 7 15:07:51 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * enum.c (enum_each_with_index): make different arrays at each
+ iteration. [ruby-dev:32181]
+
+Wed Nov 7 05:17:24 2007 David Flanagan <davidflanagan@ruby-lang.org>
+
+ * eval.c: fix typo in invoke_method documentation
+
+Wed Nov 7 03:52:26 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * array.c (rb_ary_product): core dumped with non array arguments.
+ a patch from Yusuke ENDOH <mame AT tsg.ne.jp>. [ruby-dev:32180]
+
+Wed Nov 7 03:32:38 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/rexml/encodings/SHIFT-JIS.rb (REXML::Encoding): place -x for
+ nkf conversion. a patch from <moonwolf AT moonwolf.com>.
+ [ruby-dev:32183]
+
+Wed Nov 7 02:59:49 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * array.c (rb_ary_each_index): should return meaningful value.
+
+Tue Nov 6 16:37:47 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval_load.c (loaded_feature_path): need to expand relative paths.
+
+ * eval_load.c (rb_feature_p): check if the feature is loading with
+ load path. [ruby-dev:31932]
+
+ * eval_load.c (load_lock): check the result of barrier waiting.
+
+ * thread.c (rb_barrier_wait): check if owned by the current thread.
+
+ * thread.c (rb_barrier_release): ditto.
+
+Mon Nov 5 08:01:22 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (Init_eval): move #send to Kernel module from BasicObject.
+
+Mon Nov 5 05:17:04 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/optparse.rb (OptionParser::Switch::summarize): fix for long form
+ option with very long argument. a patch from Kobayashi Noritada
+ <nori1 AT dolphin.c.u-tokyo.ac.jp> in [ruby-list:44179].
+
+Mon Nov 5 01:20:33 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * parse.y (call_args): remove "parenthesize argument(s) for future
+ version" warning. when I added this warning, I had a plan to
+ reimplement the parser that is simpler than the current one.
+ since we abandoned the plan, warning no longer required.
+
+Mon Nov 5 01:02:56 2007 Minero Aoki <aamine@loveruby.net>
+
+ * lib/net/http.rb (HTTPHeader#initialize): provide default
+ User-Agent to fix 500 error on some corrupted HTTP servers.
+ [ruby-core:13135]
+
+Mon Nov 5 00:32:32 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (rb_f_send): allow send/__send__ to call methods of all
+ visibility again. we no longer provide __send, __send!.
+
+ * eval.c (rb_invoke_method): new method to honor private
+ visibility. if it's invoked in a function call style, it calls
+ private methods as well (previous 1.9 send behavior).
+
+Mon Nov 5 00:24:24 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/Makefile.sub: vendor_ruby support.
+
+ * configure.in (RUBY_LIB): duplicated.
+
+Mon Nov 5 00:01:33 2007 Tanaka Akira <akr@fsij.org>
+
+ * re.c (rb_reg_quote): quote \v as well.
+
+Sun Nov 4 23:51:59 2007 Tanaka Akira <akr@fsij.org>
+
+ * re.c (rb_reg_initialize_m): use StringValuePtr instead of
+ StringValueCStr because \0 exists when Regexp.new("\0").
+
+Sun Nov 4 08:11:19 2007 Tanaka Akira <akr@fsij.org>
+
+ * gc.c (count_objects): count TOTAL.
+
+Sun Nov 4 03:58:32 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (tr_setup_table): use C array for characters that fit
+ in a byte to gain performance.
+
+ * string.c (rb_str_delete_bang): ditto.
+
+ * string.c (rb_str_squeeze_bang): ditto.
+
+ * string.c (rb_str_count): ditto.
+
+ * string.c (tr_trans): ditto.
+
+Sun Nov 4 00:06:40 2007 Tanaka Akira <akr@fsij.org>
+
+ * gc.c (count_objects): ObjectSpace.count_objects implemented.
+ [ruby-core:12301]
+
+Sat Nov 3 22:49:37 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * hash.c (rb_hash_each_pair): make Hash#each to be alias to
+ Hash#each_pair for compatibility and clarity.
+
+ * hash.c (env_each_pair): ditto.
+
+Sat Nov 3 22:41:05 2007 Tanaka Akira <akr@fsij.org>
+
+ * configure.in: --with-vendor-hdrdir implemented.
+
+ * lib/mkmf.rb: check --vendor argument.
+
+ * README.EXT: explain --vendor option for extconf.rb
+
+ * README.EXT.ja: ditto.
+
+Sat Nov 3 20:30:48 2007 Tanaka Akira <akr@fsij.org>
+
+ * configure.in: --with-vendordir implemented.
+
+ * mkconfig.rb: add config to vendorlibdir and vendorarchdir.
+
+ * instruby.rb: make vendor library directories.
+
+ * ruby.c: insert vendor library directories into load path.
+
+Fri Nov 2 20:55:49 2007 Kouhei Sutou <kou@cozmixng.org>
+
+ * lib/rss/content.rb, lib/rss/content/, lib/rss/maker/content.rb,
+ test/rss/test_content.rb, test/rss/test_maker_content.rb,
+ test/rss/rss-testcase.rb (RSS::TestCase): supported
+ content:encoded with RSS 2.0.
+ Suggested by Sam Lown. Thanks.
+
+Fri Nov 2 20:47:04 2007 Kouhei Sutou <kou@cozmixng.org>
+
+ * lib/rss/rss.rb, test/rss/test_version.rb: 0.2.0 -> 0.2.1.
+
+Thu Nov 1 21:56:45 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * error.c (Init_Exception): make NameError to be subclass of
+ StandardError again.
+
+ * error.c (Init_Exception): make SecurityError to be subclass of
+ Exception, since it's too important to be handled implicitly.
+
+Thu Nov 1 14:51:39 2007 David Flanagan <davidflanagan@ruby-lang.org>
+ * enum.c (take_while_i, drop_while_i) add RTEST to handle nil return
+
+Thu Nov 1 02:12:50 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * common.mk (prereq): update the path of prelude.c.
+
+ * common.mk (prelude.c): rollback a part of r13675, because it is not
+ documented and causes build error.
+
+Thu Nov 1 01:52:23 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * enum.c (enum_drop): fix typo.
+
+Thu Nov 1 01:51:01 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * vm_core.h (ruby_current_thread): RUBY_EXTERN'ed for probeprofiler.
+
+Thu Nov 1 00:46:30 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/configure.bat, setup.mak: now can recognize OS even if
+ the ``--target'' option of configure is omitted.
+
+ * win32/README.win32: update the descriptions about compiler.
+
+Wed Oct 31 03:13:41 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * enum.c (enum_take_while): separate with-block form.
+
+ * enum.c (drop_while_i): ditto.
+
+ * enum.c (enum_butfirst): abandon butfirst method. reverted.
+
+Tue Oct 30 10:03:43 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * enum.c (enum_butfirst): add a new method to iterates over
+ elements but first n. RDoc need to be updated.
+
+ * enumerator.c (Init_Enumerator): remove unnecessary symbol
+ initialization.
+
+Mon Oct 29 18:42:17 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (bvar): block-local variable can shadow outer variable.
+ [ruby-core:13036]
+
+Mon Oct 29 17:58:16 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * string.c (rb_str_substr): performance improvement. [ruby-dev:31806]
+
+Mon Oct 29 17:20:13 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * encoding.c (rb_enc_replicate): new function to replicate encoding.
+
+ * encoding.c (enc_based_encoding): Encoding#base_encoding returns
+ based encoding of replica.
+
+Mon Oct 29 17:18:36 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * encoding.c (rb_enc_compatible): ASCII encoding is compatible with
+ ASCII-compatible encoding, even for non-string objects.
+
+Sun Oct 28 21:50:02 2007 Tanaka Akira <akr@fsij.org>
+
+ * lib/open-uri.rb: :redirect option implemented to disable redirects.
+ (OpenURI::HTTPRedirect): new exception class for redirection.
+
+Fri Oct 26 17:38:13 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * numeric.c (int_chr): take an optional encoding parameter.
+ [ruby-core:12816]
+
+Fri Oct 26 17:14:14 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * numeric.c (fix_pow): returns 1.0 for 0**0.0.
+
+ * numeric.c (fix_pow): returns infinity for 0**-1. [ruby-dev:32084]
+
+Fri Oct 26 15:00:52 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * misc/ruby-style.el (ruby-style-{case,label}-indent): adjust for
+ labels inside switch block.
+
+Fri Oct 26 05:48:57 2007 David Flanagan <davidflanagan@ruby-lang.org>
+ * array.c: raise IndexError for negative length in rb_ary_fill
+
+Wed Oct 25 07:12:03 2007 James Edward Gray II <jeg2@ruby-lang.org>
+
+ * lib/net/telnet.rb (Net::Telnet#login): Allowing "passphrase" in
+ addition to "password" for Telnet login prompts. [ruby-Bugs-10746]
+
+Wed Oct 25 06:34:11 2007 James Edward Gray II <jeg2@ruby-lang.org>
+
+ * lib/net/telnet.rb (Net::Telnet#login): Making the password prompt
+ pattern case insensitive. [ruby-Bugs-10746]
+
+Fri Oct 26 04:21:36 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/net/pop.rb (Net::POP3::do_start): type fixed. a patch from
+ Dan Zwell <dzwell AT zwell.net> in [ruby-core:12941].
+
+Fri Oct 26 01:48:28 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * array.c (rb_ary_assoc): check and convert inner arrays (assocs)
+ using #to_ary.
+
+ * hash.c (rb_hash_s_create): check and convert argument hash
+ using #to_hash.
+
+ * hash.c (rb_hash_s_create): Hash#[] now takes assocs as source of
+ hash conversion.
+
+Thu Oct 25 16:46:05 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * parse.y (parser_yylex): dot at the head of the line denote line
+ continuation from previous one to support fluent interface.
+ [experimental]
+
+ * misc/ruby-mode.el (ruby-calculate-indent): support fluent dot.
+
+Thu Oct 25 14:19:33 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * io.c (rb_io_tell, rb_io_seek): check errno too. [ruby-dev:32093]
+
+Thu Oct 25 13:59:53 2007 David Flanagan <davidflanagan@ruby-lang.org>
+
+ * parse.y (parser_tokspace): increment tokidx
+ fixes test failure at [test/ruby/test_stringchar.rb:72]
+
+Thu Oct 25 09:49:49 2007 akira yamada <akira@ruby-lang.org>
+
+ * lib/uri.rb, lib/uri/ldaps.rb: added LDAPS
+ scheme. [ruby-dev:31896]
+
+Wed Oct 25 06:23:14 2007 James Edward Gray II <jeg2@ruby-lang.org>
+
+ * lib/xmlrpc/parser.rb (XMLRPC::Convert::dateTime): Fixing a bug that
+ caused time zone conversion to fail for some ISO 8601 date formats.
+ [ruby-Bugs-12677]
+
+Wed Oct 25 04:59:28 2007 James Edward Gray II <jeg2@ruby-lang.org>
+
+ * lib/xmlrpc/client.rb (XMLRPC::Client#do_rpc): Explicitly start
+ the HTTP connection to support keepalive requests. [ruby-Bugs-9353]
+
+Wed Oct 25 04:46:53 2007 James Edward Gray II <jeg2@ruby-lang.org>
+
+ * lib/xmlrpc/client.rb (XMLRPC::Client#do_rpc): Improving the error
+ message for Content-Type check failures. [ruby-core:12163]
+
+Wed Oct 25 03:45:08 2007 James Edward Gray II <jeg2@ruby-lang.org>
+
+ * lib/xmlrpc/utils.rb (XMLRPC::ParseContentType#parse_content_type):
+ Making Content-Type checks case insensitive. [ruby-Bugs-3367]
+
+Wed Oct 24 17:09:39 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (parser_tokspace): make space in token buffer.
+
+ * parse.y (parser_yylex): fix encoding of single character literal.
+
+Tue Oct 23 13:44:14 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (call_args2): nd_head of NODE_BLOCK_PASS should be a list.
+ [ruby-core:12850]
+
+Tue Oct 23 10:42:51 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ruby.c (process_options): encoding set by command line option takes
+ priority over the encoding in the source, as the primary encoding.
+
+Mon Oct 22 19:24:33 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ruby.c (proc_options): allow space after -E (encoding) option.
+
+Mon Oct 22 11:03:09 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * encoding.c (enc_check_encoding): returns index now.
+
+ * encoding.c (rb_enc_compatible): check if two objects have compatible
+ encodings.
+
+ * encoding.c (enc_compatible_p): added Encoding.compatible?.
+
+ * include/ruby/encoding.h (rb_enc_compatible): prototype.
+
+Sun Oct 21 18:29:17 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * encoding.c (rb_enc_default, rb_enc_primary): return pointers to
+ rb_encoding of default and primary respectively. [ruby-core:12795]
+
+ * encoding.c (set_primary_encoding): removed primary_encoding setter.
+
+Sat Oct 20 13:17:01 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * enum.c (enum_cycle): hide temporary array from ObjectSpace.
+ [ruby-core:12762]
+
+Sat Oct 20 11:49:20 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * file.c (rb_get_path): returns frozen string.
+
+ * file.c (rb_file_s_chown, rb_file_s_lchown): use uid_t and gid_t.
+
+Fri Oct 19 20:08:14 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * encoding.c (rb_id_encoding): returns ID "encoding".
+
+ * marshal.c (w_encoding): dump encoding name.
+
+ * marshal.c (r_ivar): load encoding.
+
+Fri Oct 19 16:41:00 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (parser_regx_options, reg_compile_gen): relaxened encoding
+ matching rule.
+
+ * re.c (rb_reg_initialize): always set encoding of Regexp.
+
+ * re.c (rb_reg_initialize_str): fix encoding for non 7bit-clean
+ strings.
+
+ * re.c (rb_reg_initialize_m): use ascii encoding for 'n' option.
+
+Fri Oct 19 11:09:56 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ruby.c (process_options): set primary encoding from the parser
+ always. [ruby-core:12758]
+
+ * ruby.c (load_file): should not discard the parser parameter.
+
+Fri Oct 19 10:55:42 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * range.c (range_last): removed unused variables.
+
+Thu Oct 18 17:08:57 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * enum.c (enum_find_index): update RDoc. a patch from David Flanagan
+ <david AT davidflanagan.com> in [ruby-core:12710].
+
+ * enum.c (enum_take, enum_drop): ditto.
+
+ * enum.c (enum_cycle): should not cause infinite loop for empty
+ arrays. [ruby-core:12710]
+
+ * range.c (Init_Range): typo fixed.
+
+Thu Oct 18 16:39:34 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/rexml/source.rb (REXML::SourceFactory::SourceFactory): more
+ duck typed. better performance on JRuby.
+ http://headius.blogspot.com/2007/10/another-performance-discovery-rexml.html
+
+Thu Oct 18 09:33:25 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * range.c (range_first): takes first n element if argument is
+ given. [ruby-core:12697]
+
+ * range.c (range_last): returns last n elements if argument is
+ given.
+
+ * array.c (rb_ary_subseq, rb_ary_last): export.
+
+Wed Oct 17 17:39:31 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ruby.c (proc_options): fixed reversed condition. [ruby-core:12722]
+
+Wed Oct 17 13:54:28 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * re.c (rb_reg_s_union): the last check was not complete.
+
+Wed Oct 17 11:30:55 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * encoding.c (rb_enc_from_encoding, rb_enc_register): associate index
+ to self.
+
+ * encoding.c (enc_capable): Encoding objects are encoding capable.
+
+ * re.c (rb_reg_s_union): check if encoding matching by exact encoding
+ objects.
+
+Wed Oct 17 06:18:06 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * encoding.c (rb_enc_alias, rb_enc_find_index): changed
+ enc_table_alias to a name-to-index hash.
+
+ * encoding.c (rb_enc_init): use upper case names for aliases to use as
+ constant names.
+
+ * encoding.c (enc_find): allow symbols.
+
+ * encoding.c (Init_Encoding): define encoding constants.
+
+ * st.c (strcasehash): fix wrong code range condition.
+
+Wed Oct 17 05:07:18 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * encoding.c (rb_primary_encoding): added Encoding.primary_encoding.
+
+ * parse.y (rb_parser_encoding): added.
+
+ * ruby.c (proc_options): added -E and --encoding options.
+
+ * ruby.c (process_options): set primary encoding from command line
+ option if set, or source encoding.
+
+ * include/ruby/encoding.h (rb_enc_from_encoding,
+ rb_get_primary_encoding, rb_set_primary_encoding): prototypes.
+
+ * include/ruby/node.h (rb_parser_encoding): prototype.
+
+Wed Oct 17 03:37:07 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * re.c (rb_reg_desc): set encoding.
+
+ * re.c (rb_reg_s_union): check encodings.
+
+ * enc/utf8.c (utf8_code_to_mbclen): 0xfe and 0xff are valid Unicode to
+ be encoded to 2bytes in UTF-8. [ruby-core:12700]
+
+Wed Oct 17 02:50:49 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * string.c (rb_str_ord): use encoding.
+
+Wed Oct 17 01:57:06 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * re.c (rb_reg_initialize_m): allow binary encoding option.
+ [ruby-dev:32083]
+
+Tue Oct 16 19:48:01 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * re.c (rb_reg_s_union): check for encoding of original object.
+
+Tue Oct 16 18:28:51 2007 Tanaka Akira <akr@fsij.org>
+
+ * debug.c: use enum for constants for gdb if possible.
+
+Tue Oct 16 18:20:10 2007 Tanaka Akira <akr@fsij.org>
+
+ * ruby.c, debug.c: move debug enum and constants to debug.c.
+
+Tue Oct 16 18:16:15 2007 Tanaka Akira <akr@fsij.org>
+
+ * ruby.c (RUBY_ENCODING_SHIFT): added as enum.
+
+ * .gdbinit (rp): show encoding and coderange for strings.
+
+Tue Oct 16 14:48:38 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (parser_regx_options): check if regexp encoding option
+ matches to current encoding.
+
+ * re.c (char_to_option, rb_char_to_option_kcode): 'n' is not kcode
+ option now.
+
+ * re.c (rb_reg_to_s, rb_reg_error_desc): copy encoding rather than
+ append as an option.
+
+ * re.c (make_regexp, rb_reg_prepare_re): use encoding of Regexp and
+ String instead of kcode.
+
+ * re.c (rb_reg_initialize): set fixed option if none is set.
+
+ * re.c (rb_reg_regcomp): ditto.
+
+ * re.c (rb_reg_equal): check if encodings are equal.
+
+ * re.c (rb_reg_initialize_m): encoding option is obsolete.
+
+ * re.c (rb_kcode, rb_get_kcode, rb_set_kcode): removed.
+
+ * re.c (Init_Regexp): removed Regexp#kcode method.
+
+ * ruby.c (proc_options): allow long encoding name.
+
+Tue Oct 16 14:03:09 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * re.c (rb_reg_s_union): encoding of all regexp objects should
+ match. [ruby-dev:32076]
+
+Tue Oct 16 13:49:41 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * encoding.c (enc_to_s): rename function.
+
+Tue Oct 16 13:25:46 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * string.c (rb_str_new4): should copy encoding. a patch from NARUSE,
+ Yui <naruse AT airemix.com>. [ruby-dev:32076]
+
+Tue Oct 16 01:31:23 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * enum.c (enum_inject): RDoc update. a patch from David Flanagan
+ <david AT davidflanagan.com> in [ruby-core:12710].
+
+Tue Oct 16 01:25:40 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * encoding.c (Init_Encoding): define #to_s to show encoding name
+ in to_s representation as well as #inspect.
+
+Mon Oct 15 13:24:08 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * numeric.c (flo_round): should be number but not rounding factor.
+ [ruby-dev:32060]
+
+Mon Oct 15 11:45:12 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * marshal.c (r_bytes0): refined length check. [ruby-dev:32059]
+
+Mon Oct 15 10:24:19 2007 Tanaka Akira <akr@fsij.org>
+
+ * process.c (pst_to_s): returns a string such as "pid 10220 exit 1"
+ instead of "256". [ruby-dev:32053]
+ (pst_inspect): change format
+ "#<Process::Status: pid=10220,exited(1)>" to
+ "#<Process::Status: pid 10220 exit 1>".
+
+Mon Oct 15 09:58:07 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * marshal.c (r_bytes0): check if source has enough data.
+ [ruby-dev:32054]
+
+Mon Oct 15 01:15:09 2007 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/socket.c (s_accept_nonblock): make accepted fd
+ nonblocking. [ruby-talk:274079]
+
+Sun Oct 14 17:31:48 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * encoding.c (rb_obj_encoding): rdoc update. a patch from David
+ Flanagan <david AT davidflanagan.com>. [ruby-core:12664]
+
+ * encoding.c (enc_dump, enc_load): marshaling feature. a patch from
+ David Flanagan. [ruby-core:12665]
+
+ * encoding.c (Init_Encoding): undefine allocator of Encoding.
+ [ruby-core:12665], [ruby-core:12666]
+
+ * test/ruby/test_encoding.rb: tests for Encoding from David Flanagan
+ [ruby-core:12665]
+
+Sun Oct 14 11:09:09 2007 Tanaka Akira <akr@fsij.org>
+
+ * lib/pp.rb (PP::PPMethods#pp_hash): don't sort keys because hash is
+ ordered.
+ (ENV.pretty_print): call pp_hash with sorted hash.
+
+Sun Oct 14 04:08:34 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (AC_SYS_LARGEFILE): keep results also in command
+ options, to vail out of mismatch. [ruby-list:44114]
+
+ * mkconfig.rb, lib/mkmf.rb (configuration): add DEFS.
+
+Sun Oct 14 03:55:52 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * win32/mkexports.rb: deal with __fastcall name decorations.
+ [ruby-list:44111]
+
+Sun Oct 14 02:20:40 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * encoding.c (rb_cEncoding): new Encoding class.
+
+ * encoding.c (rb_to_encoding, rb_to_encoding_index): helper functions.
+
+ * encoding.c (rb_obj_encoding): return Encoding object now.
+
+ * gc.c (garbage_collect): mark Encoding objects.
+
+ * inits.c (rb_call_inits): call Init_Encoding.
+
+ * string.c (rb_str_force_encoding): accept Encoding object as well as
+ encoding name.
+
+ * include/ruby/encoding.h (rb_to_encoding_index, rb_to_encoding):
+ prototypes.
+
+Sun Oct 14 01:03:30 2007 Tanaka Akira <akr@fsij.org>
+
+ * lib/open-uri.rb (OpenURI.open_http): fix :ssl_ca_cert option.
+
+Sat Oct 13 21:23:21 2007 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+
+ * ext/win32ole/win32ole.c (foletype_s_ole_classes,
+ foletype_s_typelibs): refactoring.
+
+ * test/win32ole/test_win32ole_type.rb: add some test.
+
+ * ext/win32ole/win32ole.c (Init_win32ole): change method name
+ WIN32OLE_TYPELIB.ole_types from WIN32OLE_TYPELIB.ole_classes.
+
+ * test/win32ole/test_win32ole_typelib.rb: ditto.
+
+ * test/win32ole/test_folderitem2_invokeverb.rb: check create
+ shortcut string more strictly (This test is invoked in Japanese
+ Windows environment).
+
+Sat Oct 13 09:11:58 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (set_file_encoding): case-insensitive search, a patch from
+ David Flanagan <david AT davidflanagan.com> [ruby-core:12629]
+
+Sat Oct 13 09:02:16 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * {bcc,win}32/mkexports.rb: explicit data. [ruby-list:44108]
+
+Sat Oct 13 00:17:49 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/rexml/document.rb (REXML::Document::write): leaky
+ modification trans -> transitive. [ruby-dev:32040]
+
+Sat Oct 13 00:00:33 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * parse.y: encoding specifier should work if the line matches
+ /coding[:=] ?/, a la Python PEP-263, so that VIM comments like
+ "# vim: set fileencoding=<encoding name>" should be recognized.
+
+Fri Oct 12 15:04:54 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (magic_comments): add "encoding" as same as "coding".
+
+ * parse.y (set_file_encoding): special file encoding handling.
+
+ * parse.y (parser_yylex): ditto.
+
+Fri Oct 12 12:44:11 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * array.c (rb_ary_combination): fixed memory corruption due to too
+ small memory allocation
+
+ * array.c (rb_ary_product): accessing out of memory bounds.
+ condition fixed.
+
+Fri Oct 12 11:22:15 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * re.c (match_values_at): make #select to be alias to #values_at
+ to adapt RDoc description. [ruby-core:12588]
+
+Thu Oct 11 21:10:17 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * include/ruby/node.h (NOEX_LOCAL): remove unused local visibility.
+
+ * class.c (ins_methods_push): ditto.
+
+ * class.c (rb_class_local_methods): method removed.
+
+Thu Oct 11 14:29:31 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * */Makefile.sub (COMMON_MACROS): workaround for old SDK's bug.
+ [ruby-core:12584]
+
+Thu Oct 11 06:35:43 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * Makefile.in, */Makefile.sub (VPATH): add enc directory.
+
+ * common.mk (ENCOBJS): encoding objects.
+
+ * enc: directory for encodings.
+
+Thu Oct 11 00:04:37 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * include/ruby/oniguruma.h (OnigEncodingTypeST): add OnigEncoding
+ parameter to every function members.
+
+ * include/ruby/oniguruma.h (OnigEncodingTypeST): add auxiliary
+ data member to provide user defined data for an encoding.
+
+Wed Oct 10 23:32:15 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * re.c (rb_reg_s_quote): no longer takes optional second argument
+ that has never been documented.
+
+Wed Oct 10 15:39:04 2007 Tanaka Akira <akr@fsij.org>
+
+ * encoding.c (rb_enc_init): don't alias iso-8859-1 to ascii.
+
+ * ascii.c (OnigEncodingASCII): change the name US-ASCII to ASCII-8BIT.
+
+Wed Oct 10 14:31:05 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * string.c (rb_enc_str_coderange): fixed check for non-ascii.
+
+Tue Oct 9 21:35:28 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * array.c (rb_ary_permutation, rb_ary_combination): missing type
+ names.
+
+ * array.c (rb_ary_permutation): used buffer should be t1.
+
+ * array.c (rb_ary_permutation): use frozen shared hidden array.
+ [ruby-dev:31985]
+
+Tue Oct 9 16:58:10 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * array.c: remove to_a completely.
+
+ * array.c (tmpbuf): keep DRY to clear klass of temporary objects.
+
+Tue Oct 9 16:33:32 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * array.c (rb_ary_permutation, rb_ary_combination, rb_ary_product):
+ hide internal buffer objects. [ruby-dev:31982]
+
+Tue Oct 9 16:00:32 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * parse.y (parser_read_escape, parser_tokadd_escape): check code range.
+ [ruby-dev:31980]
+
+Tue Oct 9 15:40:24 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (STR_NEW3): check for if single byte sequence.
+
+Mon Oct 8 20:06:29 2007 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * lib/net/imap.rb, lib/net/smtp.rb, lib/net/pop.rb: hostname should
+ be verified against server's identity as presented in the server's
+ certificate. [ruby-dev:31960]
+
+ * ext/openssl/lib/net/telnets.rb, ext/openssl/lib/net/ftptls.rb: ditto.
+
+Sun Oct 7 22:37:47 2007 Kouhei Sutou <kou@cozmixng.org>
+
+ * test/rss/test_taxonomy.rb, test/rss/test_parser_1.0.rb,
+ test/rss/test_image.rb, test/rss/rss-testcase.rb: ensured
+ declaring XML namespaces.
+
+Sun Oct 7 22:00:01 2007 Tanaka Akira <akr@fsij.org>
+
+ * include/ruby/node.h: make node flags as VALUE type.
+ enum ruby_node_flags removed.
+
+ * ruby.c: define RUBY_NODE_* as const for gdb.
+
+Sun Oct 7 18:57:12 2007 Tanaka Akira <akr@fsij.org>
+
+ * include/ruby/ruby.h: enum ruby_value_flags removed. [ruby-dev:31959]
+
+ * ruby.c: define RUBY_FL_* as const VALUE for gdb.
+
+Sun Oct 7 17:50:14 2007 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * lib/net/http.rb: remove enable_post_connection_check flag.
+
+ * lib/open-uri.rb: ditto.
+
+Sun Oct 7 15:48:40 2007 Koichi Sasada <ko1@atdot.net>
+
+ * insns.def (opt_eq): fix to use rb_str_equal().
+
+Sat Oct 6 23:14:54 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (rb_str_to_i): update RDoc since base can be any value
+ between 2 and 36. [ruby-talk:272879]
+
+Sat Oct 6 16:24:02 2007 Koichi Sasada <ko1@atdot.net>
+
+ * cont.c (cont_free): check Fiber or Continuation.
+
+ * bootstraptest/test_knownbug.rb: remove a fixed test.
+
+Sat Oct 6 14:56:02 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * encoding.c (rb_enc_register): returns new index or -1 if failed.
+
+ * encoding.c (rb_enc_alias): check if original name is registered.
+
+ * encoding.c (rb_enc_init): register in same order as kcode options in
+ re.c. added new aliases.
+
+ * string.c (rb_str_force_encoding): check if valid encoding name.
+
+Sat Oct 6 14:32:30 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * insns.def (opt_eq): get rid of gcc bug.
+
+Sat Oct 6 02:34:18 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * include/ruby/defines.h: no longer provide DEFAULT_KCODE.
+
+Fri Oct 5 21:24:59 2007 Tanaka Akira <akr@fsij.org>
+
+ * re.c (rb_reg_s_union_m): Regexp.union accepts single argument which
+ is an array of patterns. [ruby-list:44084]
+
+Fri Oct 5 16:42:27 2007 Tanaka Akira <akr@fsij.org>
+
+ * bootstraptest/runner.rb (assert_not_match): new method.
+
+Fri Oct 5 16:15:52 2007 Akinori MUSHA <knu@iDaemons.org>
+
+ * configure.in: Turn on --enable-pthread by default for FreeBSD
+ 5.2.1-RELEASE and later, and remove pthread support for older
+ versions which has never worked perfectly.
+
+Fri Oct 5 16:11:50 2007 Akinori MUSHA <knu@iDaemons.org>
+
+ * time.c (time_to_s): Fix documentation. Time format changed.
+
+Fri Oct 5 04:02:39 2007 Akinori MUSHA <knu@iDaemons.org>
+
+ * lib/ipaddr.rb (in_addr, in6_addr, addr_mask): Make some minor
+ code optimization.
+
+Fri Oct 5 03:25:51 2007 Akinori MUSHA <knu@iDaemons.org>
+
+ * lib/ipaddr.rb (<=>): Implement IPAddr#<=> and make IPAddr
+ comparable.
+
+ * lib/ipaddr.rb (succ): Implement IPAddr#succ. You can now create
+ a range between two IPAddr's, which (Range) object is
+ enumerable.
+
+ * lib/ipaddr.rb (to_range): A new method to create a Range object
+ for the (network) address.
+
+Fri Oct 5 03:14:45 2007 Akinori MUSHA <knu@iDaemons.org>
+
+ * lib/ipaddr.rb (coerce_other): Support type coercion and make &,
+ |, == and include? accept a string or an integer instead of an
+ IPAddr object as the argument.
+
+ * lib/ipaddr.rb (initialize): Give better error messages.
+
+ * lib/ipaddr.rb: Improve documentation.
+
+Thu Oct 4 20:45:53 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * process.c (Init_process): win32 has our own WNOHANG definition, so
+ remove unnecessary #ifdef guard.
+
+Thu Oct 4 20:17:19 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * array.c (rb_ary_permutation, rb_ary_product): support non C99
+ compilers.
+
+Thu Oct 4 17:33:18 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * re.c (kcode_setter): Perl-ish global variable `$=' no longer
+ effective.
+
+ * io.c (Init_IO): remove obsolete variables: $defout, $deferr.
+
+ * re.c (Init_Regexp): remove obsolete const alias: MatchingData.
+
+ * time.c (Init_Time): remove obsolete Time::times.
+
+ * re.c (ignorecase_setter): change warning message.
+
+ * re.c (ignorecase_getter): now gives warning.
+
+ * string.c (rb_str_cmp_m): update RDoc document.
+
+ * re.c (kcode_setter): restore erroneously removed setter.
+
+Thu Oct 4 16:28:33 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * encoding.c (rb_obj_encoding): returns encoding of the given object.
+
+ * parse.y (reg_compile_gen): copy encoding from source string if
+ non-empty.
+
+ * re.c (Init_Regexp): new method Regexp#encoding.
+
+ * string.c (str_encoding): moved to encoding.c
+
+Thu Oct 4 15:49:33 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * array.c (rb_ary_permutation): remove C99 dependency.
+ [ruby-dev:31934]
+
+ * array.c (rb_ary_product): ditto.
+
+Wed Oct 3 23:37:17 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ext/nkf/nkf.c, bin/ri, bin/irb: fixed typos in doc and comments.
+ a patch from Eugene Ossintsev <eugoss AT gmail.com>.
+ [ruby-core:12375]
+
+Wed Oct 3 17:56:22 2007 Koichi Sasada <ko1@atdot.net>
+
+ * benchmark/driver.rb: enable specify label to executable.
+ (-e "ruby1::/path/to/ruby1; ruby2::/path/to/ruby2; ...")
+
+Wed Oct 3 16:58:48 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (parser_str_new, parser_yylex, rb_intern3): set code-range
+ bits.
+
+ * parse.y (parser_tokadd_string): check code-range.
+
+ * parse.y (parser_parse_string, parser_here_document): ditto.
+
+ * parse.y (parser_set_encode): check if valid encoding.
+
+Wed Oct 3 15:43:15 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * variable.c (rb_cvar_set): check whether class variable is
+ defined in superclasses. root classes have higher priority.
+ removes lower class variable entry from IV_TBL (if it's defined
+ in classes, not modules).
+
+ * variable.c (rb_cvar_get): ditto.
+
+Wed Oct 3 10:06:53 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ruby.c (ruby_process_options): push frame with program name.
+ [ruby-core:12351]
+
+Tue Oct 2 20:16:55 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/win32.c (init_env): refactoring. remove unused code.
+
+Tue Oct 2 12:30:40 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * array.c (rb_ary_product): generalized product, now takes
+ arbitrary number of arrays. a patch from David Flanagan
+ <david AT davidflanagan.com>. [ruby-core:12346]
+
+Tue Oct 2 08:25:50 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * array.c (rb_ary_permutation): implementation contributed from
+ David Flanagan. [ruby-core:12344]
+
+ * array.c (rb_ary_combination): RDoc update to clarify. a patch
+ from David Flanagan. [ruby-core:12344]
+
+ * array.c (rb_ary_permutation): small dirty hack by Matz to avoid
+ arrays on stack.
+
+Tue Oct 2 07:01:05 2007 Koichi Sasada <ko1@atdot.net>
+
+ * proc.c (proc_dup): proc->block.proc should be self.
+
+ * bootstraptest/test_knownbug.rb, test_method.rb:
+ move a fixed test.
+
+Mon Oct 1 16:17:44 2007 Tanaka Akira <akr@fsij.org>
+
+ * bootstraptest/test_method.rb: use assert_normal_exit to test
+ [ruby-dev:31818].
+
+Mon Oct 1 15:57:49 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * gc.c (id2ref): skip ICLASS.
+
+Mon Oct 1 15:29:35 2007 Tanaka Akira <akr@fsij.org>
+
+ * bootstraptest/runner.rb (assert_normal_exit): use `` instead of
+ system.
+
+Mon Oct 1 15:17:48 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * gc.c (id2ref): T_VALUES is less than T_BLOCK. [ruby-dev:31911]
+
+Mon Oct 1 10:58:42 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ruby.c (require_libraries): use require method instead of calling
+ rb_require directly. [ruby-dev:31322]
+
+Mon Oct 1 10:52:30 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (ruby_options), ruby.c (proc_options, process_options): not
+ call exit(2) directly. [ruby-dev:31912]
+
+ * eval.c (ruby_run_node): deal with direct exit code.
+
+Sun Sep 30 17:12:53 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * string.c (rb_str_append): always set encoding, and coderange
+ cache bits.
+
+ * include/ruby/encoding.h (ENC_CODERANGE_SET): fixed a bug not to
+ set cache bits.
+
+Sun Sep 30 11:52:11 2007 Tanaka Akira <akr@fsij.org>
+
+ * bootstraptest/runner.rb (pretty): don't show beginning empty line.
+
+Sun Sep 30 11:32:34 2007 Tanaka Akira <akr@fsij.org>
+
+ * numeric.c: use #ifdef for test LONG_LONG_VALUE.
+
+Sun Sep 30 04:30:55 2007 Tanaka Akira <akr@fsij.org>
+
+ * bignum.c: use SIZEOF_LONG instead of SIZEOF_ULONG which is not
+ defined.
+
+Sun Sep 30 04:03:43 2007 Tanaka Akira <akr@fsij.org>
+
+ * re.c (Init_Regexp): test DEFAULT_KCODE in C code because
+ KCODE_EUC, etc. are enum.
+
+Sun Sep 30 00:55:40 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * variable.c (obj_ivar_each): get rid of warning.
+
+Sat Sep 29 17:45:22 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * main.c (main): use platform-independent per-process initialization.
+ [ruby-dev:31900]
+
+ * ruby.c (ruby_sysinit): new function for per-process initialization.
+
+ * include/ruby/ruby.h (RUBY_GLOBAL_SETUP): toplevel setup declaration.
+
+ * include/ruby/win32.h, win32/mkexports.rb: alias NtInitialize
+ ruby_sysinit.
+
+ * win32/win32.c (rb_w32_sysinit): renamed from NtInitialize.
+
+Sat Sep 29 17:31:04 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * array.c (rb_ary_combination): new method to give all combination
+ of elements from an array. [ruby-list:42671]
+
+ * array.c (rb_ary_product): a new method to get all combinations
+ of elements from two arrays. can be extended to combinations of
+ n-arrays, e.g. a.product(b,c,d). anyone volunteer?
+
+ * array.c (rb_ary_permutation): empty function body to calculate
+ permutations of array elements. need volunteer.
+
+Sat Sep 29 17:14:44 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * marshal.c (r_leave): move proc invocation from r_entry() to
+ avoid potential crash.
+
+Sat Sep 29 12:28:08 2007 Tanaka Akira <akr@fsij.org>
+
+ * bootstraptest/runner.rb (assert_normal_exit): new method.
+
+ * bootstraptest/test_knownbug.rb: add test for Marshal.load.
+
+Sat Sep 29 10:12:20 2007 Tanaka Akira <akr@fsij.org>
+
+ * variable.c (rb_ivar_set): fix class instance variable.
+
+ * object.c (rb_class_real): cl argument may be 0.
+
+Sat Sep 29 09:12:02 2007 Tanaka Akira <akr@fsij.org>
+
+ * object.c (rb_class_real): use BUILTIN_TYPE instead of TYPE.
+ access flags directly instead of FL_TEST.
+ they are enough because cl argument is a class.
+
+Sat Sep 29 08:57:15 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * include/ruby/win32.h (strcasecmp): needed for type_strcasehash.
+
+Sat Sep 29 06:47:29 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ruby.c (struct cmdline_options): static variables packed.
+
+Sat Sep 29 05:29:30 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * io.c (rb_io_fdopen): create IO object from fd.
+
+ * parse.y (yycompile): use encoding of the source as default.
+
+ * ruby.c (proc_options, load_file): ditto.
+
+Sat Sep 29 04:27:08 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * encoding.c (rb_enc_alias): allow encodings multiple aliases.
+
+ * encoding.c (rb_enc_find_index): search the encoding which has the
+ given name and return its index if found, or -1.
+
+ * st.c (type_strcasehash): case-insensitive string hash type.
+
+ * string.c (rb_str_force_encoding): force encoding of self. this name
+ comes from [ruby-dev:31894] by Martin Duerst. [ruby-dev:31744]
+
+ * include/ruby/encoding.h (rb_enc_find_index, rb_enc_associate_index):
+ prototyped.
+
+ * include/ruby/encoding.h (rb_enc_isctype): direct interface to ctype.
+
+ * include/ruby/st.h (st_init_strcasetable): prototyped.
+
+Sat Sep 29 03:53:26 2007 Koichi Sasada <ko1@atdot.net>
+
+ * cont.c: Thread local storage should be fiber local.
+
+ * bootstraptest/test_knownbug.rb, test/ruby/test_fiber.rb:
+ move a fixed test.
+
+Fri Sep 28 23:15:31 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * insnhelper.ci (vm_call_method): allow send! to call protected
+ methods as well. [ruby-core:12280]
+
+Fri Sep 28 22:33:47 2007 Koichi Sasada <ko1@atdot.net>
+
+ * benchmark/bm_so_fasta.rb: added.
+
+ * benchmark/bm_so_k_nucleotide.rb: added.
+
+ * benchmark/bm_so_reverse_complement.rb: added.
+
+ * benchmark/make_fasta_output.rb: added.
+
+ * benchmark/prepare_so_k_nucleotide.rb: added.
+
+ * benchmark/prepare_so_reverse_complement.rb: added.
+
+Fri Sep 28 19:14:51 2007 Koichi Sasada <ko1@atdot.net>
+
+ * benchmark/driver.rb: fix notations.
+
+ * benchmark/bm_loop_whileloop.rb: ditto.
+
+ * benchmark/bm_loop_whileloop2.rb: ditto.
+
+ * benchmark/bm_app_uri.rb: added.
+
+ * benchmark/bm_vm1_ivar_set.rb: ditto.
+
+ * benchmark/bm_so_binary_trees.rb: added from Computer Language
+ Benchmarks Game (http://shootout.alioth.debian.org/).
+
+ * benchmark/bm_so_fannkuch.rb: ditto.
+
+ * benchmark/bm_so_mandelbrot.rb: ditto.
+
+ * benchmark/bm_so_meteor_contest.rb: ditto.
+
+ * benchmark/bm_so_nbody.rb: ditto.
+
+ * benchmark/bm_so_nsieve.rb: ditto.
+
+ * benchmark/bm_so_nsieve_bits.rb: ditto.
+
+ * benchmark/bm_so_partial_sums.rb: ditto.
+
+ * benchmark/bm_so_pidigits.rb: ditto.
+
+ * benchmark/bm_so_spectralnorm.rb: ditto.
+
+Fri Sep 28 16:22:52 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * vm_core.h (rb_vm_struct): fix typo: bufferd -> buffered.
+
+Fri Sep 28 15:47:48 2007 Koichi Sasada <ko1@atdot.net>
+
+ * benchmark/driver.rb: fix to output benchmark results
+ to file "bmlog-#{Time.now.strftime('%Y%m%d-%H%M%S')}.#{$$}".
+
+ * benchmark/bm_io_file_create.rb: remove useless codes.
+
+ * benchmark/bm_vm2_eval.rb: added.
+
+Fri Sep 28 15:05:24 2007 Tanaka Akira <akr@fsij.org>
+
+ * include/ruby/intern.h: export rb_ivar_foreach.
+
+ * include/ruby/ruby.h: modify struct RObject and RClass for optimizing
+ T_OBJECT space. [ruby-dev:31853]
+ (ROBJECT_LEN, ROBJECT_PTR)
+ (RCLASS_IV_TBL, RCLASS_M_TBL, RCLASS_SUPER, RCLASS_IV_INDEX_TBL)
+ (RMODULE_IV_TBL, RMODULE_M_TBL, RMODULE_SUPER): abstract accessor
+ defined.
+
+ * variable.c: support the modified RObject and RClass.
+
+ * object.c: ditto.
+
+ * class.c: ditto.
+
+ * gc.c: ditto.
+
+ * marshal.c: ditto.
+
+ * eval_method.ci: use the abstract accessor.
+
+ * insns.def: ditto.
+
+ * proc.c: ditto.
+
+ * struct.c: ditto.
+
+ * eval.c: ditto.
+
+ * error.c: ditto.
+
+ * vm.c: ditto.
+
+ * insnhelper.ci: ditto.
+
+ * ext/digest/digest.c: ditto.
+
+Fri Sep 28 13:20:10 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * io.c (rb_io_getline_fast, rb_io_getline_1): set encoding to the
+ result string, as well as getc.
+
+Fri Sep 28 12:51:42 2007 Koichi Sasada <ko1@atdot.net>
+
+ * benchmark/bm_app_erb.rb: added.
+
+ * benchmark/bm_io_file_(create|read|write).rb: added.
+
+Fri Sep 28 12:49:05 2007 Koichi Sasada <ko1@atdot.net>
+
+ * benchmark/driver.rb: fix file selection algorithm.
+
+Fri Sep 28 02:05:42 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (rb_str_comparable): need not to check asciicompat here.
+
+ * encoding.c (rb_enc_check): ditto.
+
+ * string.c (rb_enc_str_coderange): tuned a bit; no broken check.
+
+ * encoding.c (rb_enc_check): new encoding comparison criteria.
+
+Thu Sep 27 17:36:28 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/REAMDE.win32: follow recent changes.
+
+Thu Sep 27 16:01:53 2007 Koichi Sasada <ko1@atdot.net>
+
+ * benchmark/driver.rb: fix to output some helpful messages.
+
+Thu Sep 27 15:44:51 2007 Koichi Sasada <ko1@atdot.net>
+
+ * benchmark/driver.rb: added.
+
+ * common.mk: fix to use above driver.
+
+ * benchmark/prepare_so_count_words.rb: added.
+
+ * benchmark/bm_so_count_words.rb: fix benchmark process.
+
+Thu Sep 27 15:42:34 2007 Koichi Sasada <ko1@atdot.net>
+
+ * ext/fiber/fiber.c: modify prototype declaration.
+ [ruby-core:12247]
+
+Thu Sep 27 09:42:50 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (strings, xstring, regexp, dsym): empty strings have
+ US-ASCII encoding.
+
+Thu Sep 27 07:39:13 2007 Tanaka Akira <akr@fsij.org>
+
+ * bootstraptest/runner.rb (assert_finish): new method.
+
+ * bootstraptest/test_knownbug.rb: add test for [ruby-dev:31866] using
+ assert_finish.
+
+Thu Sep 27 04:46:31 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * encoding.c (rb_enc_associate_index): deal with ASCII compatible
+ flags.
+
+ * encoding.c (rb_enc_check): allow ASCII compatible strings.
+
+ * parse.y (rb_intern_str): use ASCII encoding for ASCII string.
+
+ * string.c (rb_enc_str_coderange): check for code-range.
+
+ * string.c (rb_str_modify): clear code-range flags.
+
+ * string.c (rb_str_hash, rb_str_eql): ASCII compatible strings are
+ comparable.
+
+ * include/ruby/encoding.h: added code-range flags.
+
+Thu Sep 27 04:40:47 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * gc.c (rb_mark_set): new function to mark keys.
+
+ * marshal.c (struct dump_arg, struct load_arg): added wrappers to mark
+ data and compat_tbl entries. [ruby-dev:31870]
+
+Thu Sep 27 03:17:41 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * process.c (rb_waitpid): no needs to poll. [ruby-dev:31871]
+
+Wed Sep 26 20:11:46 2007 Koichi Sasada <ko1@atdot.net>
+
+ * bootstraptest/test_knownbug.rb: remove a fixed test.
+
+Wed Sep 26 20:00:12 2007 Koichi Sasada <ko1@atdot.net>
+
+ * bootstraptest/test_knownbug.rb: move fixed tests.
+
+ * bootstraptest/test_method.rb: ditto.
+
+ * test/ruby/test_io.rb: ditto.
+
+Wed Sep 26 19:36:26 2007 Koichi Sasada <ko1@atdot.net>
+
+ * eval.c (eval): fix to check stack overflow.
+ [ruby-dev:31850]
+
+ * eval_intern.h, vm.h: move CHECK_STACK_OVERFLOW() macro.
+
+Wed Sep 26 19:27:11 2007 Koichi Sasada <ko1@atdot.net>
+
+ * insnhelper.ci (vm_throw): fix to move increment point.
+ [ruby-dev:31840]
+
+Wed Sep 26 19:23:56 2007 Koichi Sasada <ko1@atdot.net>
+
+ * cont.c: Fiber as SemiCoroutine on default. [ruby-core:12146]
+
+ * ext/fiber/fiber.c: enable Fiber#transfer.
+
+Wed Sep 26 18:38:41 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * encoding.c (rb_enc_check): check for ASCII-compatibilities.
+
+ * parse.y (parser_tokadd_string, parser_parse_string,
+ parser_here_document, parser_yylex): set encoding to US-ASCII.
+
+ * parse.y (rb_enc_symname_p): check if valid with encoding.
+
+ * parse.y (rb_intern3): let symbols have encoding.
+
+ * string.c (rb_str_hash): add encoding index.
+
+ * string.c (rb_str_comparable, rb_str_equal, rb_str_eql): check if
+ compatible encoding.
+
+ * string.c (sym_inspect): made encoding aware.
+
+ * insns.def (opt_eq): compare with encoding.
+
+ * include/ruby/encoding.h (rb_enc_asciicompat): check if ASCII
+ compatible.
+
+ * include/ruby/encoding.h (rb_enc_get_index): added prototype.
+
+ * include/ruby/intern.h (rb_str_comparable, rb_str_equal): ditto.
+
+Wed Sep 26 15:01:16 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval_method.ci (rb_get_alloc_func): cast to suppress a warning.
+
+ * eval_method.ci (remove_method): local variable to be initialized.
+
+Wed Sep 26 08:36:31 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * Makefile.in (ext/extinit.o): use $(OUTFLAG) as well as other
+ objects. [ruby-Bugs-14228]
+
+Wed Sep 26 05:12:17 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (parser_yyerror): limit error message length.
+ [ruby-dev:31848]
+
+Tue Sep 25 15:11:32 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * io.c (io_ungetc): reallocate internal buffer if pushing data
+ excess capacity. [ruby-dev:31650]
+
+Tue Sep 25 13:43:03 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval_method.ci (remove_method): should not remove undef place
+ holder. [ruby-dev:31816], [ruby-dev:31817]
+
+Tue Sep 25 09:51:31 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (rb_longjmp): source file information may be NULL.
+ [ruby-dev:31849]
+
+ * eval.c (ruby_finalize_0): clear trace_func before finalization.
+
+Mon Sep 24 22:36:13 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * array.c (rb_ary_equal): should handle recursive array.
+
+ * hash.c (hash_equal): should handle recursive hash.
+
+Mon Sep 24 22:14:13 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/weakref.rb (WeakRef): remove debug print. [ruby-dev:31799]
+
+ * hash.c (hash_i): avoid too frequent hash conflict where key and
+ value are same. a patch from Yusuke ENDOH <mame AT tsg.ne.jp>.
+ [ruby-dev:31802]
+
+Mon Sep 24 17:56:21 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/strscan/strscan.c (strscan_initialize, strscan_getch): use the
+ encoding of the target string instead of setting to StringScanner
+ instance. [ruby-dev:31831]
+
+Mon Sep 24 16:52:11 2007 Urabe Shyouhei <shyouhei@ruby-lang.org>
+
+ * lib/net/http.rb: fix typo.
+
+Mon Sep 24 06:49:15 2007 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * lib/net/http.rb: an SSL verification (the server hostname should
+ be matched with its certificate's commonName) is added.
+ this verification can be skipped by
+ "Net::HTTP#enable_post_connection_check=(false)".
+ suggested by Chris Clark <cclark at isecpartners.com>
+
+ * lib/net/open-uri.rb: use Net::HTTP#enable_post_connection_check to
+ perform SSL post connection check.
+
+ * ext/openssl/lib/openssl/ssl.c
+ (OpenSSL::SSL::SSLSocket#post_connection_check): refine error message.
+
+Sun Sep 23 09:05:05 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * gc.c (os_obj_of, os_each_obj): hide objects to be finalized.
+ [ruby-dev:31810]
+
+Sun Sep 23 08:58:01 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval_method.ci (rb_attr): should not use alloca for unknown size
+ input. [ruby-dev:31818]
+
+ * parse.y (rb_intern_str): prevent str from optimization.
+
+Sun Sep 23 06:16:04 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval_method.ci (remove_method): check for undefined method.
+ [ruby-dev:31816]
+
+Sun Sep 23 05:42:35 2007 URABE Shyouhei <shyouhei@ruby-lang.org>
+
+ * lib/rdoc/options.rb (Options::check_diagram): dot -V output
+ changed. [ ruby-Bugs-11978 ], Thanks Florian Frank.
+
+Sat Sep 22 06:02:11 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/optparse.rb (OptionParser::List::summarize): use each_line if
+ defined rather than each. [ruby-Patches-14096]
+
+Sat Sep 22 05:19:49 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/stringio/stringio.c (strio_init): separate from strio_initialize
+ to share with strio_reopen properly. [ruby-Bugs-13919]
+
+Fri Sep 21 14:51:40 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * gc.c (gc_mark_rest): copy just used part.
+
+ * gc.c (gc_mark_children): mark u1 and u2 of NODE_ARGSCAT.
+
+ * gc.c (os_obj_of): hide T_VALUES too. [ruby-dev:31804]
+
+ * gc.c (run_final): freeze temporary argument array.
+
+Fri Sep 21 04:58:39 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * misc/ruby-style.el (ruby-style-label-indent): fix for function top
+ level labels.
+
+Fri Sep 21 02:11:22 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * re.c (rb_reg_match_m): evaluate a block if match. it would make
+ condition statement much shorter, if no else clause is needed.
+
+ * string.c (rb_str_match_m): ditto.
+
+Fri Sep 21 02:02:34 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * hash.c (hash_equal): should call rb_eql when argument eql is set.
+
+Thu Sep 20 17:28:00 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * io.c (popen_exec), process.c (rb_spawn): stop other threads before
+ exec. [ruby-core:08262]
+
+Tue Sep 18 22:08:42 2007 Keiju Ishitsuka <keiju@ruby-lang.org>
+
+ * lib/matrix.rb: fix a coerce bug of Vector. [ruby-core: 12190]
+
+Mon Sep 17 21:06:03 2007 Minero Aoki <aamine@loveruby.net>
+
+ * lib/net/http.rb (HTTP::GenericRequest#initialize): check path is
+ not nil. [ruby-dev:31149]
+
+Mon Sep 17 21:00:51 2007 Minero Aoki <aamine@loveruby.net>
+
+ * parse.y (ripper): rename event: arglist_* -> args_*.
+
+ * parse.y (ripper): rename event: restparam -> rest_param.
+
+ * parse.y (ripper): rename event: constpath_* -> const_path_*.
+
+ * parse.y (ripper): rename event: topconst_* -> top_const_*.
+
+ * parse.y (ripper): rename event: iter_block -> method_add_block.
+
+ * parse.y (ripper): support block local parameter declaration.
+
+ * parse.y (ripper): introduce new macro params_new.
+
+ * ext/ripper/lib/ripper/sexp.rb: should not dispose event
+ arguments whose name ends with "_new" but arity != 0.
+
+Sat Sep 15 23:36:31 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (struct parser_params): common members in the parser and
+ ripper must be placed at each same location.
+
+Sat Sep 15 18:25:15 2007 Kouhei Sutou <kou@cozmixng.org>
+
+ * string.c (rb_str_rstrip_bang): fixed too much rstrip. [ruby-dev:31786]
+
+Sat Sep 15 17:32:10 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (parser_initialize): set default encoding. [ruby-dev:31787]
+
+ * ruby.c (load_file): make new parse instance after processing shebang
+ line options.
+
+Sat Sep 15 17:04:08 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * encoding.c (rb_enc_associate_index, rb_enc_get_index): check if
+ object is encoding capable. [ruby-dev:31780]
+
+ * string.c (rb_str_subpat_set): check for if the argument is a String.
+
+Sat Sep 15 13:31:21 2007 Kouhei Sutou <kou@cozmixng.org>
+
+ * lib/rss.rb, lib/rss/, test/rss/:
+ - 0.1.9 -> 0.2.0.
+ - supported Slash module.
+
+Fri Sep 14 22:20:01 2007 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+
+ * ext/win32ole/win32ole.c (fev_unadvise): no needs to reset
+ event handlers.
+
+Fri Sep 14 17:28:32 2007 Koichi Sasada <ko1@atdot.net>
+
+ * test/ruby/test_io.rb: tests which cause SEGV should not be
+ added.
+
+ * bootstraptest/test_knownbug.rb: add above test to known bug.
+
+Fri Sep 14 16:24:04 2007 Koichi Sasada <ko1@atdot.net>
+
+ * insnhelper.ci (vm_expandarray): assignment should be placed
+ after creating new array.
+
+Fri Sep 14 16:17:30 2007 Koichi Sasada <ko1@atdot.net>
+
+ * bootstraptest/runner.rb: add a stress test (-s).
+
+Fri Sep 14 16:14:28 2007 Koichi Sasada <ko1@atdot.net>
+
+ * vm.h, eval_intern.h: move some macros to eval_intern.h.
+
+ * eval_jump.ci (rb_f_throw): fix to use NEW_THROW_OBJECT().
+
+ * eval.c (rb_f_loop): remove additional macro.
+
+Fri Sep 14 16:12:10 2007 Koichi Sasada <ko1@atdot.net>
+
+ * insnhelper.ci (vm_expandarray): should be volatile value for GC.
+
+Thu Sep 13 15:42:03 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * compile.c (iseq_compile_each): inline cache entries are overwritten
+ in iseq_build_body().
+
+Thu Sep 13 14:00:15 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (brace_block): should use compstmt. patch submitted by
+ Kirill A. Shutemov <k.shutemov AT gmail.com> [ruby-core:12154].
+
+Thu Sep 13 13:47:08 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (rb_id2str): fixed typo.
+
+Wed Sep 12 23:12:22 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ruby.c (proc_options): -W should be allowed in RUBYOPT
+ environment variable. [ruby-core:12118]
+
+Wed Sep 12 15:19:04 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * io.c (rb_io_s_sysopen): should not use alloca for unknown size
+ input. [ruby-dev:31775]
+
+ * parse.y (rb_id2str): ditto.
+
+ * marshal.c (w_float): use snprintf instead of sprintf.
+
+Tue Sep 11 17:28:00 2007 Akinori MUSHA <knu@iDaemons.org>
+
+ * lib/tempfile.rb (Tempfile::make_tmpname): Allow to specify a
+ suffix for a temporary file name.
+
+ * lib/tempfile.rb (Tempfile::make_tmpname): Make temporary file
+ names less predictable by including a random string.
+ [inspired by: akr]
+
+Tue Sep 11 17:25:59 2007 Akinori MUSHA <knu@iDaemons.org>
+
+ * lib/shellwords.rb: Add shellescape() and shelljoin().
+
+ * lib/shellwords.rb: Rename shellwords() to shellsplit() and make
+ the former an alias to the latter.
+
+ * lib/shellwords.rb: Add escape(), split(), join() as class
+ methods, which are aliases to their respective long names
+ prefixed with `shell'.
+
+ * lib/shellwords.rb: Add String#shellescape(), String#shellsplit()
+ and Array#shelljoin() for convenience.
+
+Mon Sep 10 15:48:31 2007 Tanaka Akira <akr@fsij.org>
+
+ * range.c: represent initialized state using EXCL instead of FL_USER3.
+
+ * range.c (range_dumper): make uninitialized range dumpable.
+ (range_loader): make uninitialized range loadable.
+
+Mon Sep 10 13:44:37 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * array.c (rb_ary_cycle): avoid infinite loop for empty array.
+ based on a patch from David Flanagan. [ruby-core:12085]
+
+Mon Sep 10 01:21:23 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * marshal.c (r_object0): struct allocation first to check if a
+ class is a struct. compatibility check should come next.
+
+Mon Sep 10 01:05:25 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * range.c (range_step): fixed integer overflow. [ruby-dev:31763]
+
+Sun Sep 9 08:57:27 2007 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * lib/date/format.rb (_strptime): now also attaches an element
+ which denotes leftover substring if exists.
+
+Sun Sep 9 01:59:08 2007 Tanaka Akira <akr@fsij.org>
+
+ * marshal.c (r_object0): check T_STRUCT type for structs.
+
+Sun Sep 9 01:17:05 2007 Tanaka Akira <akr@fsij.org>
+
+ * marshal.c (r_object0): don't call user-defined initialize for
+ T_STRUCT objects.
+
+ * include/ruby/intern.h (rb_struct_initialize): declared.
+
+ * struct.c (rb_struct_initialize): export.
+
+Sat Sep 8 23:55:56 2007 Tanaka Akira <akr@fsij.org>
+
+ * eval_method.ci (rb_get_alloc_func): new function to get allocation
+ function.
+
+ * include/ruby/intern.h (rb_alloc_func_t): declared.
+ (rb_define_alloc_func): declared.
+ (rb_marshal_define_compat): declared.
+
+ * range.c: use T_STRUCT for Range.
+
+ * inits.c: move Init_marshal() prior to Init_Range() because
+ Init_Range calls rb_marshal_define_compat which needs
+ marshal's compat_allocator_tbl initialized.
+
+ * marshal.c: support marshal format compatibility layer designed for
+ marshaling T_STRUCT Range using T_OBJECT format.
+ (rb_marshal_define_compat): defined.
+
+ [ruby-dev:31710]
+
+Sat Sep 8 10:05:14 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * struct.c (rb_struct_s_members): check if __members__ is an
+ array to prevent segmentation fault. [ruby-dev:31759]
+
+Sat Sep 8 09:33:09 2007 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * lib/date/format.rb (str[fp]time): now check specifications more
+ strictly.
+
+Sat Sep 8 02:56:31 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * test/ruby/test_fiber.rb (TestFiber::test_throw): uncaught throw
+ now raise ArgumentError exception.
+
+Sat Sep 8 02:45:33 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * struct.c (rb_struct_s_members): should raise TypeError instead
+ of call rb_bug(). [ruby-dev:31709]
+
+ * marshal.c (r_object0): no nil check require any more.
+
+Sat Sep 8 01:46:36 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * regenc.c, regenc.h (onigenc_single_byte_mbc_enc_len): should take
+ two arguments. [ruby-dev:31754]
+
+Fri Sep 7 00:58:16 2007 Koichi Sasada <ko1@atdot.net>
+
+ * common.mk: fix typo.
+
+Fri Sep 7 00:28:25 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * io.c (rb_io_getc): forgot to commit rb_enc_mbclen() fix.
+
+ * ext/stringio/stringio.c (strio_getc): rb_enc_mbclen() fix.
+
+ * ext/stringio/stringio.c (strio_ungetc): ditto.
+
+Thu Sep 6 22:57:01 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/fileutils.rb (FileUtils::Entry_::copy): prevent self copy of
+ directories.
+
+ * lib/fileutils.rb (FileUtils::fu_each_src_dest0): use try_convert.
+
+ * lib/fileutils.rb (FileUtils::fu_update_option): ditto.
+
+Thu Sep 6 21:36:33 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * include/ruby/oniguruma.h (OnigEncodingTypeST): add end parameter
+ to mbc_enc_len.
+
+ * euc_jp.c (mbc_enc_len), sjis.c (mbc_enc_len),
+ utf8.c (utf8_mbc_enc_len): ditto.
+
+ * encoding.c (rb_enc_mbclen): add end parameter.
+
+Thu Sep 6 21:31:49 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * array.c (rb_ary_cycle): typo in rdoc. a patch from Yugui
+ <yugui@yugui.sakura.ne.jp>. [ruby-dev:31748]
+
+Thu Sep 6 12:42:10 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * string.c (rb_str_succ, rb_str_chop_bang, rb_str_chop): m17n support.
+ [ruby-dev:31734]
+
+Wed Sep 5 22:02:27 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * array.c (rb_ary_subseq): need integer overflow check.
+ [ruby-dev:31736]
+
+ * array.c (rb_ary_splice): ditto. [ruby-dev:31737]
+
+ * array.c (rb_ary_fill): ditto. [ruby-dev:31738]
+
+ * string.c (rb_str_splice): integer overflow for length.
+ [ruby-dev:31739]
+
+Tue Sep 4 20:43:44 2007 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+
+ * ext/win32ole/win32ole.c: add WIN32OLE_EVENT#unadvise.
+
+ * test/win32ole/test_win32ole_event.rb: ditto.
+
+Mon Sep 3 15:37:09 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * common.mk (vm.o): depends on st.h too.
+
+Sun Sep 2 23:38:29 2007 Tanaka Akira <akr@fsij.org>
+
+ * include/ruby/st.h (struct st_table): make num_entries bitfield
+ instead of num_bins for speed. num_entries has less access.
+
+Sun Sep 2 00:37:57 2007 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * lib/date/format.rb (_parse): improved parsing of ordinal dates.
+
+ * lib/date/format.rb (_parse): use named character classes in some
+ regular expressions.
+
+Sat Sep 1 23:44:26 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval_jump.ci (rb_f_throw): wrap tag and TAG_THROW in a NODE_MEMO
+ node to make throw instruction to work well.
+
+Sat Sep 1 20:56:07 2007 Tanaka Akira <akr@fsij.org>
+
+ * include/ruby/ruby.h (struct RBignum): embed digits in RBignum for
+ small bignums.
+
+ * bignum.c: RBignum embedded digits implemented.
+
+ * include/ruby/intern.h: declare rb_big_resize.
+
+ * gc.c: don't free embedded digits.
+
+ * numeric.c: replace direct bignum field accessor by abstract field
+ accessor such as RBIGNUM(val)->sign to RBIGNUM_SIGN(val).
+
+ * sprintf.c: ditto.
+
+ * compar.c: ditto.
+
+ * marshal.c: ditto.
+
+ * random.c: ditto.
+
+ * .gdbinit: support embedded small bignums.
+
+ [ruby-dev:31689]
+
+Sat Sep 1 19:59:43 2007 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+
+ * ext/win32ole/win32ole.c (ole_event_free): IConnectionPoint should be
+ released.
+
+ * ext/win32ole/win32ole.c (EVENTSINK_Destructor): ITypeInfo should be
+ released.
+
+ * ext/win32ole/win32ole.c (fev_initialize): refactoring.
+
+Sat Sep 1 16:26:09 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * test/socket/test_tcp.rb (test_recvfrom): same as mswin32 on mswin64.
+
+Sat Sep 1 14:24:23 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * st.c (st_numcmp, st_numhash): use st_data_t instead of long, because
+ the former may be larger than the latter.
+
+ * include/ruby/st.h (CHAR_BIT): get rid of magic number.
+
+ * include/ruby/st.h (rb_index_t): use st_data_t for the platforms it
+ is larger than int.
+
+Sat Sep 1 10:43:30 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval_jump.ci (rb_f_catch): generate new tag object if no argument is
+ given. backported from MatzRuby. [ruby-dev:31609]
+
+ * eval_jump.ci (rb_catch): call #catch without arguments if tag
+ string is NULL.
+
+ * eval_jump.ci (rb_f_throw): allow throwing non-symbol object.
+
+ * eval_jump.ci (rb_catch_obj): new function to wait throw with arbitrary
+ object.
+
+ * eval_jump.ci (rb_throw_obj): new function to throw arbitrary object.
+
+ * variable.c (check_autoload_table): prevent multiple calls from
+ RSTRING_PTR().
+
+Fri Aug 31 07:12:24 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * numeric.c (SQRT_LONG_MAX): use SIZEOF_LONG instead of SIZEOF_VALUE
+ because SIZEOF_VALUE > SIZEOF_LONG on some platforms.
+
+Fri Aug 31 04:18:03 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (f_norm_arg, f_arg_item): not croak already erred names.
+ [ruby-dev:31687]
+
+ * parse.y (assignable_gen): ignore already erred names.
+
+ * parse.y (shadowing_lvar_gen): always make new block local variable
+ when shadowing outer local variable. [ruby-dev:31507]
+
+Thu Aug 30 19:40:33 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * regenc.h: check RUBY_EXTERN before including config.h and defines.h
+
+ * common.mk: update header dependency.
+
+Thu Aug 30 14:06:50 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * proc.c (rb_obj_define_method): reverted. [ruby-talk:266637]
+
+Thu Aug 30 13:49:25 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/mkmf.rb: initialize $top_srcdir always. [ruby-dev:31682]
+
+ * lib/mkmf.rb (try_const, have_const): check for a const is defined.
+ [ruby-core:04422]
+
+Thu Aug 30 08:00:12 2007 Tanaka Akira <akr@fsij.org>
+
+ * include/ruby/intern.h: declare rb_hash_tbl.
+
+ * include/ruby/ruby.h (RHash): delay st_table allocation.
+ rename tbl field to ntbl to detect direct reference to the st_table
+ as a compile error.
+ (RHASH_TBL): abstract accessor defined.
+ (RHASH_ITER_LEV): ditto.
+ (RHASH_IFNONE): ditto.
+ (RHASH_SIZE): ditto.
+ (RHASH_EMPTY_P): ditto.
+ (hash_alloc0, hash_alloc): unified because hash_alloc doesn't
+ allocate st_table now.
+
+ * hash.c: delay st_table allocation.
+
+ * gc.c: replace tbl by ntbl.
+
+ * array.c: replace direct field accessor by abstract field accessor
+ such as RHASH(hash)->tbl to RHASH_TBL(hash).
+
+ * marshal.c: ditto.
+
+ * insns.def: ditto.
+
+ * ext/iconv/iconv.c: ditto.
+
+ * ext/json/ext/generator/generator.c: ditto.
+
+ * ext/json/ext/parser/parser.c: ditto.
+
+ * ext/json/ext/parser/parser.rl: ditto.
+
+ * ext/syck/rubyext.c: ditto.
+
+ * ext/tk/tkutil/tkutil.c: ditto.
+
+ [ruby-dev:31678]
+
+Wed Aug 29 18:36:06 2007 Tanaka Akira <akr@fsij.org>
+
+ * lib/open-uri.rb: add :ftp_active_mode option. [ruby-dev:31677]
+
+Wed Aug 29 14:55:28 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (str_gsub): should not use mbclen2() which has broken API.
+
+ * re.c: remove rb_reg_mbclen2().
+
+Wed Aug 29 12:48:17 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (aref_args): args may not be a list. [ruby-dev:31592]
+
+Wed Aug 29 11:30:10 2007 Tanaka Akira <akr@fsij.org>
+
+ * include/ruby/st.h (struct st_table): add entries_packed 1-bit
+ bitfield. decrease num_bins 1-bit.
+
+ * st.c: pack numhash which have 5 or less entries in bins.
+ (st_init_table_with_size): setup entries_packed flag.
+ (st_clear): support packed mode.
+ (st_lookup): ditto.
+ (st_insert): ditto.
+ (st_add_direct): ditto.
+ (st_copy): ditto.
+ (st_delete): ditto.
+ (st_foreach): ditto.
+ (st_reverse_foreach): ditto.
+ (unpack_entries): new function for converting to unpacked mode.
+
+ [ruby-list:43954]
+
+Wed Aug 29 10:46:37 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * include/ruby/defines.h (flush_register_windows): call "ta 0x03"
+ even on Linux/Sparc. [ruby-dev:31674]
+
+Tue Aug 28 19:16:00 2007 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+
+ * ext/win32ole/win32ole.c (ole_type_progid): progid getted by
+ ProgIDFromCLSID should be freed by CoTaskMemFree. Thanks, arton.
+
+ * test/win32ole/test_win32ole.rb (test_raise_message): set negative
+ compareMode value to raise WIN32OLERuntimeError.
+
+ * test/win32ole/test_win32ole_type.rb (test_implemented_ole_types):
+ support some environment which returns IShellDispatch5 instead
+ of IShellDispatch.
+
+Tue Aug 28 15:42:09 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (rb_str_subseq): retrieve substring based on byte offset.
+
+ * string.c (rb_str_rindex_m): was confusing character offset and
+ byte offset.
+
+Tue Aug 28 14:23:31 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * string.c (rb_str_splice_0): should check to modify. [ruby-dev:31665]
+
+Tue Aug 28 14:21:46 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (parser_prepare): set parser encode too when BOM exists.
+
+Tue Aug 28 00:51:22 2007 Koichi Sasada <ko1@atdot.net>
+
+ * thread.c: fix Mutex to be interruptable lock.
+
+ * thread_win32.ci, thread_win32.h, thread_pthread.ci, thread_pthread.h:
+ prepare native_cond_*() which are based on pthread_cond_*() spec.
+
+ * prelude.rb: fix Mutex#synchronize method.
+
+ * vm_core.h, include/ruby/intern.h: change unblock function interface
+ (to pass some user data).
+
+ * file.c, process.c: ditto.
+
+ * benchmark/bm_vm2_mutex.rb: add a benchmark for mutex.
+
+ * benchmark/bm_vm3_thread_mutex.rb: add a benchmark for mutex
+ with contention.
+
+ * benchmark/run.rb: fix to remove ENV['RUBYLIB'] for matzruby.
+
+ * test/ruby/test_thread.rb: add a test.
+
+ * common.mk: fix benchmark options.
+
+Mon Aug 27 23:14:02 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (rb_str_rstrip_bang): wrong strip point. [ruby-dev:31652]
+
+ * string.c (rb_str_each_line): should swallow sequence of newlines
+ if rs (optional argument) is an empty string. [ruby-dev:31652]
+
+Mon Aug 27 22:39:08 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * encoding.c (rb_enc_codelen): raises invalid sequence exception
+ if ONIGENC_CODE_TO_MBCLEN() returns zero. [ruby-dev:31661]
+
+ * encoding.c (rb_enc_mbclen): check invalid sequence.
+
+Mon Aug 27 20:27:59 2007 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+
+ * ext/win32ole/win32ole.c (ole_type_progid): fix the bug.
+ [ruby-dev:31576]
+
+ * test/win32ole/test_win32ole_type.rb (test_initialize):
+ remove duplicate assertions.
+
+Mon Aug 27 19:10:50 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ext/etc/etc.c (etc_getlogin): update documentation to note
+ security issue. [ruby-Bugs-11821]
+
+Mon Aug 27 15:56:48 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * string.c (sym_encoding): return the encoding of a Symbol.
+
+Mon Aug 27 15:33:10 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * util.c (IEEE_BIG_ENDIAN): use configured value. [ruby-dev:31623]
+
+ * util.c (Llong): set to LONG_LONG if available.
+
+Mon Aug 27 13:11:56 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (tr_trans): wrong condition for mbmaxlen==1 strings.
+ [ruby-dev:31652]
+
+Mon Aug 27 00:41:13 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * io.c (rb_io_each_byte): caused infinite loop. [ruby-dev:31652]
+
+ * io.c (rb_io_getc): should return nil at EOF, not EOFError.
+
+ * lib/delegate.rb (SimpleDelegator::__setobj__): use raise
+ argument to specify backtrace.
+
+ * test/ruby/test_fnmatch.rb (TestFnmatch::bracket_test):
+ String#include? no longer works for Fixnum. use #chr.
+ [ruby-dev:31652]
+
+Sun Aug 26 12:27:14 2007 Koichi Sasada <ko1@atdot.net>
+
+ * cont.c: fix to remove Fiber.new until fiber.so is not loaded.
+
+ * test/ruby/test_continuation.rb: fix to use resume.
+
+Sun Aug 26 06:51:46 2007 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+
+ * ext/win32ole/win32ole.c (ole_wc2mb, reg_enum_key): allocate
+ buffer should be NULL terminated.
+
+Sun Aug 26 06:04:13 2007 Koichi Sasada <ko1@atdot.net>
+
+ * insnhelper.ci (vm_setup_method): reorder code for branch prediction.
+
+Sun Aug 26 05:54:49 2007 Koichi Sasada <ko1@atdot.net>
+
+ * insnhelper.ci (vm_call_method): fix to relaxant safe level check
+ ($SAFE > 2). [ruby-core:11998]
+
+ * bootstraptest/test_method.rb: add tests for above.
+
+Sun Aug 26 05:52:08 2007 Koichi Sasada <ko1@atdot.net>
+
+ * test/ruby/test_fiber.rb: fix to require 'continuation'.
+
+Sat Aug 25 23:52:14 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * enumerator.c (enumerator_next): message changed.
+
+Sat Aug 25 23:22:14 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * include/ruby/encoding.h: remove unused rb_enc_ismbchar().
+
+Sat Aug 25 22:50:14 2007 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+
+ * ext/win32ole/win32ole.c (ole_event_free, EVENTSINK_Destructor,
+ fev_initialize): remove the connection ole_event_free and
+ EVENTSINK_Destructor.
+
+Sat Aug 25 17:52:06 2007 Koichi Sasada <ko1@atdot.net>
+
+ * string.c, include/ruby/intern.h: export rb_str_length().
+
+ * insns.def: use rb_str_length() in opt_length.
+
+Sat Aug 25 17:48:51 2007 Koichi Sasada <ko1@atdot.net>
+
+ * cont.c: rename FIBER_STACK_SIZE to FIBER_VM_STACK_SIZE.
+
+Sat Aug 25 17:05:05 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * io.c (swallow): removed condition using an unset variable.
+
+ * parse.y, re.c: re-applied revision 13092.
+
+ * string.c (rb_str_splice): return from void function.
+
+ * include/ruby/encoding.h (rb_enc_str_new): prototype added.
+
+Sat Aug 25 11:45:37 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * encoding.c: provide basic features for M17N.
+
+ * parse.y: encoding aware parsing.
+
+ * parse.y (pragma_encoding): encoding specification pragma.
+
+ * parse.y (rb_intern3): encoding specified symbols.
+
+ * string.c (rb_str_length): length based on characters.
+ for older behavior, bytesize method added.
+
+ * string.c (rb_str_index_m): index based on characters. rindex as
+ well.
+
+ * string.c (succ_char): encoding aware succeeding string.
+
+ * string.c (rb_str_reverse): reverse based on characters.
+
+ * string.c (rb_str_inspect): encoding aware string description.
+
+ * string.c (rb_str_upcase_bang): encoding aware case conversion.
+ downcase, capitalize, swapcase as well.
+
+ * string.c (rb_str_tr_bang): tr based on characters. delete,
+ squeeze, tr_s, count as well.
+
+ * string.c (rb_str_split_m): split based on characters.
+
+ * string.c (rb_str_each_line): encoding aware each_line.
+
+ * string.c (rb_str_each_char): added. iteration based on
+ characters.
+
+ * string.c (rb_str_strip_bang): encoding aware whitespace
+ stripping. lstrip, rstrip as well.
+
+ * string.c (rb_str_justify): encoding aware justifying (ljust,
+ rjust, center).
+
+ * string.c (str_encoding): get encoding attribute from a string.
+
+ * re.c (rb_reg_initialize): encoding aware regular expression
+
+ * sprintf.c (rb_str_format): formatting (i.e. length count) based
+ on characters.
+
+ * io.c (rb_io_getc): getc to return one-character string.
+ for older behavior, getbyte method added.
+
+ * ext/stringio/stringio.c (strio_getc): ditto.
+
+ * io.c (rb_io_ungetc): allow pushing arbitrary string at the
+ current reading point.
+
+ * ext/stringio/stringio.c (strio_ungetc): ditto.
+
+ * ext/strscan/strscan.c: encoding support.
+
+Sat Aug 25 10:59:19 2007 Koichi Sasada <ko1@atdot.net>
+
+ * cont.c: separate Continuation and Fiber from core.
+
+ * ext/continuation/*, ext/fiber/*: ditto.
+
+ * include/ruby/ruby.h: remove rb_cFiber.
+
+ * include/ruby/intern.h: add the rb_fiber_new() declaration.
+
+ * enumerator.c (next_init): fix to use rb_fiber_new().
+
+ * test/ruby/test_enumerator.rb: remove next? tests.
+
+ * test/ruby/test_continuation.rb: add a require 'continuation'.
+
+ * test/ruby/test_fiber.rb: add a require 'fiber'.
+
+Sat Aug 25 10:20:28 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * common.mk (prelude.o): depends on vm_core.h now.
+
+ * common.mk (prelude.c): depends on tool/compile_prelude.rb too.
+
+ * common.mk (prereq): updates all auto-generated sources.
+
+ * tool/compile_prelude.rb: separated dynamic and static portions.
+
+Sat Aug 25 10:05:17 2007 Koichi Sasada <ko1@atdot.net>
+
+ * prelude.rb: add Thread.exclusive. This class method
+ is different from 1.8's. Thread.exclusive only does
+ synchronize with VM global mutex.
+
+Sat Aug 25 09:39:50 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * array.c (rb_ary_s_try_convert): more document description.
+
+ * re.c (rb_reg_s_try_convert): typo fixed.
+
+Sat Aug 25 08:54:12 2007 Koichi Sasada <ko1@atdot.net>
+
+ * id.h, id.c: remove idFuncall.
+
+ * compile.c (iseq_specialized_instruction): ditto.
+
+Sat Aug 25 08:47:28 2007 Koichi Sasada <ko1@atdot.net>
+
+ * tool/compile_prelude.rb: fix to include "vm_core.h".
+
+Sat Aug 25 03:49:14 2007 Tanaka Akira <akr@fsij.org>
+
+ * test/ruby/sentence.rb (Sentence): include Enumerable.
+ (Sentence#each): defined.
+
+ * test/ruby/test_assignment.rb: use Sentence#expand.
+
+Sat Aug 25 03:08:57 2007 Koichi Sasada <ko1@atdot.net>
+
+ * prelude.rb: fix Mutex#synchronize definition.
+
+Sat Aug 25 02:08:45 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * array.c (rb_ary_s_try_convert): a new class method to convert
+ object or nil if it's not target-type. this mechanism is used
+ to convert types in the C implemented methods.
+
+ * hash.c (rb_hash_s_try_convert): ditto.
+
+ * io.c (rb_io_s_try_convert): ditto.
+
+ * re.c (rb_reg_s_try_convert): ditto.
+
+ * string.c (rb_str_s_try_convert): ditto.
+
+Sat Aug 25 00:49:44 2007 Koichi Sasada <ko1@atdot.net>
+
+ * benchmark/bm_loop_generator.rb: added.
+
+Sat Aug 25 00:22:31 2007 Koichi Sasada <ko1@atdot.net>
+
+ * prelude.rb: added. run this script on startup.
+
+ * tool/compile_prelude.rb: compile prelude.rb to C string.
+ (prelude.rb -> prelude.c)
+
+ * common.mk: fix to build with prelude.c.
+
+ * inits.c (rb_call_inits): ditto.
+
+ * thread.c (Init_Thread): move definition of Mutex#synchronize
+ to prelude.rb.
+
+Sat Aug 25 00:08:43 2007 Koichi Sasada <ko1@atdot.net>
+
+ * compile.c (compile_massign_opt): fix to skip massign optimization
+ with global variables.
+
+ * bootstraptest/test_massign.rb: add some tests for above.
+
+Fri Aug 24 18:42:03 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * test/ruby/test_dir.rb (TestDir::setup): ?c now makes a string.
+
+ * lib/test/unit/autorunner.rb (Test::Unit::AutoRunner::initialize):
+ initialize @workdir to stop warning.
+
+Fri Aug 24 18:30:50 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/drb/drb.rb (DRb::DRbServer::InvokeMethod::perform_without_block):
+ replace funcall by send!. other files in the distribution as well.
+
+Fri Aug 24 17:06:56 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (rb_f_send_bang): abandon the name funcall for private
+ aware method call.
+
+Fri Aug 24 15:27:12 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * enumerator.c (enumerator_next): stop pre-fetching.
+
+ * enumerator.c (Init_Enumerator): remove next? method.
+
+Fri Aug 24 15:14:57 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (rb_f_loop): now handles StopIteration exception.
+
+Thu Aug 23 20:31:31 2007 Koichi Sasada <ko1@atdot.net>
+
+ * compile.c: optimize simple massign.
+
+Thu Aug 23 20:02:25 2007 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+
+ * ext/win32ole/win32ole.c (reg_get_value): use RegQueryValueEx instead
+ of RegQueryValueEx.
+
+ * ext/win32ole/win32ole.c (typelib_file_from_clsid): fix the bug
+ that the function always returns Qnil.
+
+ * test/win32ole/test_win32ole_type.rb (test_initialize): add some test.
+
+Thu Aug 23 17:25:05 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (group_member): check if presents.
+
+ * configure.in (XCFLAGS): add _GNU_SOURCE on linux.
+
+ * file.c (group_member): use system routine if available.
+
+ * process.c: moved _GNU_SOURCE macro to Makefile.
+
+Thu Aug 23 16:59:40 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * compile.c (compile_massign), insnhelper.ci (vm_throw): not use C99
+ comment.
+
+ * cont.c (rb_cont_call, fiber_switch, rb_fiber_resume, rb_fiber_yield):
+ suppress warnings.
+
+ * cont.c (rb_fiber_start): change on non-volatile variable between
+ setjmp and longjmp may not has an effect.
+
+ * enumerator.c (sym_call): initialize first.
+
+ * enumerator.c (enum_iter): typedefed.
+
+ * enumerator.c (next_i): suppress a warning.
+
+Thu Aug 23 16:04:11 2007 Koichi Sasada <ko1@atdot.net>
+
+ * compile.c, insns.def, parse.y: fix massign order. This change
+ causes performance problem. Try vm1_swap benchmark.
+ [ruby-dev:31522]
+
+ * insns.def, insnhelper.ci: move process body of expandarray insn to
+ vm_expandarray().
+
+ * bootstraptest/test_knownbug.rb, bootstraptest/test_massign.rb:
+ move a solved test.
+
+Thu Aug 23 15:51:19 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (f_norm_arg): ripper has no shadowing check.
+
+ * parse.y (f_block_arg): dispatch blkarg_mark.
+
+Thu Aug 23 15:48:26 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * compile.c (make_masgn_lhs, iseq_compile_each): fixed indent.
+
+ * compile.c (iseq_translate_threaded_code),
+ vm_evalbody.ci (get_insns_address_table),
+ template/vmtc.inc.tmpl (insns_address_table): constified.
+
+ * vm_evalbody.ci (vm_eval),
+ template/insns_info.inc.tmpl (insn_stack_increase, insn_ret_num):
+ suppress warnings.
+
+Thu Aug 23 13:19:43 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (f_norm_arg): check also nested arguments. [ruby-dev:31502]
+
+Thu Aug 23 00:06:48 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * util.c: updated for ANSI C only. applied a patch from
+ <snakagawa AT infoteria.co.jp>. [ruby-dev:31591]
+
+Thu Aug 23 00:04:45 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * missing/strtod.c: removed. [ruby-dev:31588]
+
+ * LEGAL: updated.
+
+Wed Aug 22 15:59:44 2007 Koichi Sasada <ko1@atdot.net>
+
+ * bootstraptest/test_knownbug.rb:
+ fix typo of filename (test_knownbug.rb).
+
+Wed Aug 22 14:04:53 2007 Koichi Sasada <ko1@atdot.net>
+
+ * bootstraptest/test_knownbug.rb: added. This file will contain
+ test cases which point out known bug. If bug is fixed, tests
+ should move to the suitable place.
+
+ * bootstraptest/test_massign.rb: move a test which show known bug
+ to test_knownbug.rb.
+
+Wed Aug 22 13:02:26 2007 Tanaka Akira <akr@fsij.org>
+
+ * bootstraptest/runner.rb (in_temporary_working_directory):
+ don't remove the directory specified by --dir.
+
+Wed Aug 22 05:51:23 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * util.c (ruby_strtod): replaced by the implementation by David
+ M. Gay inspired by William D. Clinger's paper "How to Read Floating
+ Point Numbers Accurately" [Proc. ACM SIGPLAN '90, pp. 92-101].
+ a patch from Satoshi Nakagawa <snakagawa AT infoteria.co.jp>.
+ [ruby-dev:31582]
+
+ * test/ruby/test_float.rb (TestFloat::test_float): add test for
+ precision.
+
+Wed Aug 22 03:51:07 2007 Koichi Sasada <ko1@atdot.net>
+
+ * cont.c: add Fiber#resume and Fiber.yield.
+ and Fiber::Core class to realize Coroutine.
+
+ * include/ruby/intern.h: declare rb_fiber_yield(), rb_fiber_resume().
+
+ * enumerator.c: use above api.
+
+ * test/ruby/test_fiber.rb: fix and add tests for above changes.
+
+Tue Aug 21 21:09:48 2007 Tanaka Akira <akr@fsij.org>
+
+ * lib/tmpdir.rb (Dir.mktmpdir): make directory suffix specifiable.
+ suggested by knu. [ruby-dev:31568]
+
+Tue Aug 21 15:00:23 2007 Koichi Sasada <ko1@atdot.net>
+
+ * st.c (st_clear): reset num_entries too.
+
+Tue Aug 21 13:57:04 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * hash.c (st_foreach_func, rb_foreach_func): typedefed.
+
+ * hash.c (rb_hash_clear): use st_clear() unless iterating.
+
+ * st.c (struct st_table_entry): add new members, fore and back, to
+ iterate in inserted order.
+
+ * include/ruby/st.h (struct st_table): ditto.
+
+Tue Aug 21 04:09:06 2007 Koichi Sasada <ko1@atdot.net>
+
+ * benchmark/bm_vm2_case.rb: add a new benchmark.
+ YARV optimize case/when syntax. If every conditions
+ are literal (such as Symbol, Fixnum, String), dispatch
+ calc order will be O(1).
+
+Tue Aug 21 04:08:07 2007 Koichi Sasada <ko1@atdot.net>
+
+ * test/ruby/test_enumerator.rb: fix last commit.
+
+Tue Aug 21 03:59:32 2007 Koichi Sasada <ko1@atdot.net>
+
+ * test_enumerator.rb (enum_test): fix to return sorted
+ array (for Hash test).
+
+Tue Aug 21 03:55:20 2007 Koichi Sasada <ko1@atdot.net>
+
+ * enumerator.c (next_i): fix to return with Fiber#yield at
+ the end of each block. [ruby-dev:31470]
+
+ * enumerator.c (enumerator_next_p): call init_next if not
+ initialized. [ruby-dev:31514]
+
+ * test/ruby/test_enumerator.rb: add tests for Enumerator.
+
+Mon Aug 20 23:28:39 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (Init_String): remove Symbol.intern and Symbol#dump.
+ [ruby-dev:31525]
+
+ * dir.c (dir_foreach): return Enumerator if no block given.
+ [ruby-dev:31525]
+
+ * io.c (rb_io_s_foreach): argument count check before making
+ Enumerator. [ruby-dev:31525]
+
+Mon Aug 20 23:17:14 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * vm_core.h (struct rb_thread_struct): removed first_func_arg and
+ reuse first_args instead.
+
+Sun Aug 19 13:31:40 2007 Tanaka Akira <akr@fsij.org>
+
+ * gc.c: use VALGRIND_MAKE_MEM_UNDEFINED to detect use of collected
+ objects if valgrind is available. It cannot detect first 2 words
+ because they are used as the free list.
+
+Sun Aug 19 13:13:52 2007 Koichi Sasada <ko1@atdot.net>
+
+ * compile.c (iseq_compile_each/NODE_RESBODY): fix to add
+ additional nop to prevent tailcall optimization.
+
+ * vm_opts.h: clean up comments.
+
+Sun Aug 19 12:58:39 2007 Koichi Sasada <ko1@atdot.net>
+
+ * insnhelper.ci (vm_call_bmethod): fix to propagate information
+ that this proc is "from Method". [ruby-dev:31490]
+
+ * proc.c (method_proc, rb_mod_define_method): ditto.
+
+ * vm.c (vm_invoke_proc_core): removed.
+
+ * vm_core.h: ditto.
+
+Sun Aug 19 12:36:11 2007 Tanaka Akira <akr@fsij.org>
+
+ * test/ruby/sentence.rb: new method Sentence().
+
+Sun Aug 19 12:32:39 2007 Koichi Sasada <ko1@atdot.net>
+
+ * insnhelper.ci (vm_callee_setup_arg): fix to mark enough VM stack.
+ [ruby-dev:31492]
+
+Sat Aug 18 19:02:34 2007 Tanaka Akira <akr@fsij.org>
+
+ * test/ruby/test_yield.rb (TestYieldGen): relax array size check
+ in nested parameters.
+ [ruby-dev:31485]
+
+Sat Aug 18 17:44:42 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/tk/tcltklib.c (Init_tcltklib): use rb_set_end_proc().
+
+Sat Aug 18 17:40:11 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * thread.c (is_ruby_native_thread): check properly. [ruby-dev:31166]
+
+Sat Aug 18 16:44:15 2007 Koichi Sasada <ko1@atdot.net>
+
+ * insnhelper.ci (vm_call_bmethod),
+ vm.c (vm_invoke_proc_core): fix to do not restore
+ $SAFE when proc invoked by bmethod.
+
+ * vm_core.h: ditto.
+
+Sat Aug 18 16:44:49 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval_error.ci (ruby_error_print): call error_print.
+
+ * eval_jump.ci, process.c (rb_exit, rb_f_exit, rb_f_abort): moved.
+
+Sat Aug 18 15:59:52 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * process.c (detach_process_watcher): should not pass the pointer
+ to an auto variable to the thread to be created. pointed and
+ fix by KUBO Takehiro <kubo at jiubao.org> [ruby-dev:30618]
+
+Sat Aug 18 15:52:50 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * insnhelper.ci (vm_send_optimize): use MEMMOVE to shift values inside
+ an array.
+
+Sat Aug 18 15:45:34 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * insnhelper.ci (vm_yield_setup_args): rsize and psize should not be
+ negative.
+
+Sat Aug 18 14:35:00 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * insnhelper.ci (vm_callee_setup_arg, vm_send_optimize,
+ vm_yield_setup_args): bulk copy for arguments.
+
+Sat Aug 18 13:55:58 2007 Koichi Sasada <ko1@atdot.net>
+
+ * compile.c (iseq_compile_each): fix to allow self.x=
+ if x= is private.
+
+ * bootstraptest/test_method.rb: add a test for above.
+
+Sat Aug 18 14:05:34 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (reg_compile_gen): obtain error info from errinfo.
+
+ * re.c (rb_reg_error_desc): make RegexpError for initialization error.
+
+ * re.c (rb_reg_compile): return nil and set errinfo if error.
+
+Sat Aug 18 13:23:01 2007 Koichi Sasada <ko1@atdot.net>
+
+ * eval.c: $! should not be writable.
+
+ * eval.c (rb_rubylevel_errinfo): added. rb_errinfo() returns
+ rb_thread_t#errinfo. rb_rubylevel_errinfo() returns $! value.
+
+Sat Aug 18 13:14:40 2007 Koichi Sasada <ko1@atdot.net>
+
+ * insnhelper.ci (vm_callee_setup_arg): fix to check arguments
+ correctly. [ruby-dev:31472]
+
+Sat Aug 18 13:13:06 2007 Koichi Sasada <ko1@atdot.net>
+
+ * bootstraptest/test_exception.rb: add escape character ("\") for
+ editors.
+
+Sat Aug 18 12:42:50 2007 Tanaka Akira <akr@fsij.org>
+
+ * test/ruby/test_yield.rb (TestYieldGen): add test for yielding to
+ lambda using lambda parameter passing emulator.
+
+Sat Aug 18 12:24:30 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * sample/test.rb, test/ruby/test_system.rb(valid_syntax?): keep
+ comment lines first.
+
+Sat Aug 18 11:44:59 2007 Koichi Sasada <ko1@atdot.net>
+
+ * compile.c (iseq_set_arguments), insnhelper.ci
+ (vm_callee_setup_arg, vm_yield_setup_args):
+ fix to cause raise on "lambda{|a|}.call(1, 2)".
+ [ruby-dev:31464]
+
+ * bootstraptest/test_block.rb: add tests for above.
+
+Sat Aug 18 01:12:01 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (frame_func_id): return proper method ID.
+
+Fri Aug 17 22:43:11 2007 Koichi Sasada <ko1@atdot.net>
+
+ * compile.c (iseq_compile_each): massign should return rvalue(s).
+
+Fri Aug 17 22:10:19 2007 Koichi Sasada <ko1@atdot.net>
+
+ * test/ruby/test_basicinstructions.rb: fix old tests.
+ class variables should be inherited.
+
+Fri Aug 17 21:20:44 2007 Koichi Sasada <ko1@atdot.net>
+
+ * eval.c (rb_call), eval_method.ci (rb_add_method, rb_alias),
+ insnhelper.ci (vm_call_method): fix to save safelevel for
+ method node.
+
+ * include/ruby/node.h: ditto.
+
+ * bootstraptest/test_method.rb: add a test for above.
+
+Fri Aug 17 16:02:50 2007 Koichi Sasada <ko1@atdot.net>
+
+ * thread.c (rb_thread_terminate_all): fix to ignore
+ exceptions.
+
+ * thread.c (thread_start_func_2): fix
+ abort_on_exception process. [ruby-dev:31394]
+
+Fri Aug 17 14:38:36 2007 Tanaka Akira <akr@fsij.org>
+
+ * bootstraptest/runner.rb (in_temporary_working_directory): use
+ Dir.mktmpdir to create and remove temporary directory.
+ (Dir.mktmpdir): define if not available.
+ [ruby-dev:31431]
+
+Fri Aug 17 03:07:37 2007 Koichi Sasada <ko1@atdot.net>
+
+ * compile.c (iseq_compile_each): fix throw insn option of next.
+
+Fri Aug 17 01:25:23 2007 Koichi Sasada <ko1@atdot.net>
+
+ * compile.c (iseq_set_arguments), insnhelper.ci
+ (vm_callee_setup_arg, vm_yield_setup_args): fix
+ block parameter problems. [ruby-dev:31437], [ruby-dev:31440]
+
+ * bootstraptest/test_block.rb: add a test of [ruby-dev:31440].
+
+Fri Aug 17 01:24:12 2007 Koichi Sasada <ko1@atdot.net>
+
+ * iseq.c (ruby_iseq_disasm): fix to show arg_simple value.
+
+Fri Aug 17 01:21:29 2007 Koichi Sasada <ko1@atdot.net>
+
+ * insns.def (throw): insert a RUBY_VM_CHECK_INTS(). [ruby-dev:31361]
+
+Thu Aug 16 20:40:50 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * bignum.c (bigtrunc): RBIGNUM(x)->len may be zero. out of bound
+ access. [ruby-dev:31404]
+
+ * sprintf.c (rb_str_format): small float should not call
+ rb_dbl2big().
+
+Thu Aug 16 22:10:06 2007 Koichi Sasada <ko1@atdot.net>
+
+ * compile.c (iseq_compile_each): fix next/redo stack consistency.
+ [ruby-dev:31373]
+
+ * bootstraptest/test_syntax.rb: add tests for above.
+
+ * sample/test.rb: fix to use __FILE__ instead of $0 to know basedir.
+
+Thu Aug 16 21:14:06 2007 WATANABE Hirofumi <eban@ruby-lang.org>
+
+ * configure.in (BASERUBY): need AC_SUBST. [ruby-dev:31438]
+
+Thu Aug 16 19:18:26 2007 Tanaka Akira <akr@fsij.org>
+
+ * test/ruby/sentence.rb: Sentence class implemented
+ based on sentgen.rb
+
+ * test/ruby/sentgen.rb: removed.
+
+ * test/ruby/test_assignment.rb: use sentence.rb.
+
+ * test/ruby/test_yield.rb: block parameter passing emulator
+ implemented.
+
+Thu Aug 16 16:48:47 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (BASERUBY): check if base ruby is runnable first.
+ [ruby-core:11900]
+
+Thu Aug 16 16:46:07 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (aix): enable shared by default.
+
+ * configure.in (aix): for 64bit-mode AIX. [ruby-dev:31401]
+ + use CC for LDSHARED if non-gcc,
+ + moved -G option from *LDFLAGS to LDSHARED,
+ + set -brtl only in XLDFLAGS.
+
+Thu Aug 16 13:06:08 2007 Tanaka Akira <akr@fsij.org>
+
+ * bignum.c (big_lshift): make shift offset long type.
+ (big_rshift): ditto.
+ (rb_big_lshift): ditto.
+ (big_rshift): ditto.
+ [ruby-dev:31434]
+
+Thu Aug 16 06:29:08 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * io.c (argf_readpartial): argf_forward needs argc and argv.
+
+Thu Aug 16 02:47:39 2007 Koichi Sasada <ko1@atdot.net>
+
+ * cont.c (rb_fiber_m_yield): added. use this function
+ for Fiber#yield instead of rb_fiber_yield.
+
+Thu Aug 16 00:36:52 2007 Tanaka Akira <akr@fsij.org>
+
+ * lib/tmpdir.rb (Dir.mktmpdir): new method. [ruby-dev:31416]
+
+Wed Aug 15 18:57:30 2007 Koichi Sasada <ko1@atdot.net>
+
+ * gc.c (os_live_obj): fix to skip T_VALUES.
+
+ * sample/test.rb: add an ObjectSpace test.
+
+Wed Aug 15 16:49:04 2007 Koichi Sasada <ko1@atdot.net>
+
+ * inits.c (rb_call_inits): change initializing order.
+ [ruby-dev:31420]
+
+Wed Aug 15 16:44:15 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * io.c (ARGF_FORWARD): wrongly compares with current_file with
+ rb_stdout. should be rb_stdin. [ruby-cvs:20177]
+
+Wed Aug 15 14:59:21 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * io.c (rb_io_initialize, argf_each_line, argf_each_byte): suppress
+ warnings.
+
+Wed Aug 15 14:22:05 2007 Koichi Sasada <ko1@atdot.net>
+
+ * parse.y: remove "//" type comment.
+
+Wed Aug 15 13:42:15 2007 Koichi Sasada <ko1@atdot.net>
+
+ * parse.y: fix rules around f_margs. "make test" passes all tests.
+
+ * bootstraptest/test_block.rb: add some tests for above.
+
+Wed Aug 15 13:50:10 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * hash.c (rb_hash_delete_key): delete the entry without calling block.
+
+ * hash.c (rb_hash_shift): should consider iter_lev too.
+
+ * hash.c (delete_if_i): use rb_hash_delete_key() so that the block
+ isn't called twice. [ruby-core:11556]
+
+Wed Aug 15 13:39:25 2007 Koichi Sasada <ko1@atdot.net>
+
+ * process.c (proc_geteuid): fix strange conversion. [ruby-dev:31417]
+
+Wed Aug 15 01:05:55 2007 Tanaka Akira <akr@fsij.org>
+
+ * bootstraptest/runner.rb (assert_check): don't call newtest.
+ (assert_equal): call newtest.
+ (assert_match): ditto.
+
+Tue Aug 14 21:43:39 2007 Tanaka Akira <akr@fsij.org>
+
+ * bootstraptest/runner.rb (assert_check): new method.
+ (assert_match): new method.
+ (assert_equal): use assert_check.
+ (pretty): give failure description as an argument.
+
+ * bootstraptest/test_exception.rb: use assert_match to describe the
+ test for [ruby-dev:31407]. [ruby-dev:31412]
+
+Tue Aug 14 19:53:15 2007 Koichi Sasada <ko1@atdot.net>
+
+ * proc.c (Init_Proc), eval.c (Init_eval), eval_intern.h: move
+ init place of exception_error.
+
+ * inits.c: ditto.
+
+ * eval.c (Init_eval): set exception_error#throwed_state as TAG_FATAL.
+ [ruby-dev:31407]
+
+ * bootstraptest/test_exception.rb: add a test for above.
+
+Tue Aug 14 19:51:20 2007 Koichi Sasada <ko1@atdot.net>
+
+ * common.mk: change test order (test -> btest).
+
+Tue Aug 14 00:04:27 2007 Kouhei Sutou <kou@cozmixng.org>
+
+ * lib/rss/rss.rb: 0.1.8 -> 0.1.9.
+
+ * test/rss/test_version.rb: followed the above change.
+
+ * lib/rss/parser.rb: fixed a bug that handles unintended elements.
+ Thanks to Takuo Yonezawa. [ruby-list:43841]
+
+Mon Aug 13 17:23:10 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (rb_clear_trace_func, rb_thread_stop_timer_thread):
+ declarations for forward references.
+
+ * eval.c (rb_longjmp, eval): use local variable.
+
+ * eval.c (rb_longjmp): string object not to be optimized.
+
+Mon Aug 13 13:21:58 2007 Tanaka Akira <akr@fsij.org>
+
+ * lib/open-uri.rb: make ftp passive mode to avoid NAT problem.
+ [ruby-dev:31377]
+
+Mon Aug 13 09:18:05 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ext/stringio/stringio.c (strio_getc): should returns
+ one-character string.
+
+ * ext/stringio/stringio.c: remove unnecessary prototypes.
+
+ * ext/stringio/stringio.c (strio_getbyte): new method.
+
+ * ext/stringio/stringio.c (strio_readbyte): new method.
+
+ * ext/stringio/stringio.c (strio_ungetc): should take a string as
+ an input.
+
+Mon Aug 13 08:19:43 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * io.c (argf_close): always close via method.
+
+ * io.c (Init_IO): remove obsolete Kernel#getc.
+
+Mon Aug 13 05:03:53 2007 Koichi Sasada <ko1@atdot.net>
+
+ * thread.c (rb_thread_raise): check if target thread is
+ thrown by another thread or not. [ruby-dev:31371]
+
+ * bootstraptest/test_thread.rb: add a test for above.
+
+Mon Aug 13 04:35:30 2007 Koichi Sasada <ko1@atdot.net>
+
+ * compile.c (iseq_peephole_optimize): fix peephole optimization
+ bug. [ruby-dev:31360]
+
+ * bootstraptest/test_syntax.rb: add a test for above.
+
+Mon Aug 13 04:02:29 2007 Koichi Sasada <ko1@atdot.net>
+
+ * vm_dump.c (debug_print_pre): fix to show control frame count.
+
+ * insns.def (opt_call_c_function): fix operand type.
+
+ * lib/vm/instruction.rb: ditto.
+
+ * insnhelper.ci (vm_push_frame, vm_pop_frame): fix to show
+ control stack status on if VMDEBUG == 2.
+
+ * vm.h: add a comment about VMDEBUG.
+
+ * iseq.c (find_prev_line_no): fix to skip bug report if
+ line is not found.
+
+ * lib/vm/instruction.rb: fix to use build_string() on
+ source code generators.
+
+Mon Aug 13 03:57:32 2007 Koichi Sasada <ko1@atdot.net>
+
+ * template/yasmdata.rb.tmpl: fix type and name.
+
+Sat Aug 11 23:27:37 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * io.c (argf_each_line): should use #each_line, not #each.
+
+ * io.c (argf_each_line): simplified.
+
+ * io.c (argf_getline): should handle non T_FILE object in ARGV.
+
+ * io.c (argf_each_byte): each_byte should yield bytes not
+ one-character strings. [ruby-dev:31374]
+
+Sat Aug 11 07:24:55 2007 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * lib/date/format.rb: reverted some wrongly erased "o" options
+ (pointed out by nobu).
+
+Sat Aug 11 00:01:12 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * thread.c (thread_start_func_2): not re-raise to main thread if it is
+ joining the current thread.
+
+Fri Aug 10 23:54:46 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * thread.c (thread_create_core): inherit the priority of creating
+ thread. submitted at [ruby-core:11873] by David Flanagan <david AT
+ davidflanagan.com>. [ruby-core:11876]
+
+Fri Aug 10 05:12:19 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * thread.c (thread_start_func_2): let abort_on_exception work.
+ [ruby-core:11873]
+
+Fri Aug 10 04:47:09 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (internal_id_gen): internal ID must be bigger than
+ tLAST_TOKEN.
+
+Thu Aug 9 16:04:55 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (stmt): check if rhs has value before assignment instead
+ inside node_assign_gen(). [ruby-dev:31293]
+
+ * parse.y (call_bin_op_gen, call_uni_op_gen): split call_op_gen.
+
+Thu Aug 9 14:01:36 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (f_marg_list): renamed from f_marg_head.
+
+ * parse.y (f_margs): allow multiple mandatory arguments after a splat.
+ [ruby-dev:31153]
+
+Thu Aug 9 02:02:02 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * enum.c (enum_cycle): typo fixed. a patch from Kazuhiro
+ NISHIYAMA <zn AT mbf.nifty.com>. [ruby-dev:31362]
+
+Wed Aug 8 19:17:40 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ext/dl/cptr.c (rb_dlptr_s_to_ptr): no longer check
+ HAVE_RB_IO_STDIO_FILE.
+
+Wed Aug 8 15:52:01 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * enumerator.c (enumerator_next_p): should check correctly even when
+ e.next has not been called before.
+
+ * enumerator.c (enumerator_next): raise StopIteration (name taken
+ from Python) instead of IndexError.
+
+ * enum.c (enum_zip): catch StopIteration exception.
+
+ * enumerator.c (enumerator_with_index): return Enumerator if no
+ block is given.
+
+ * test/ruby/test_iterator.rb (TestIterator::test_enumerator): add
+ test for enumerators.
+
+Wed Aug 8 11:48:37 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * bignum.c (rb_big2str0): should not use RTEST for non-VALUE.
+
+Wed Aug 8 11:25:25 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * bignum.c (rb_big2str0): should preserve sign mark.
+
+Wed Aug 8 11:02:43 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * common.mk (btest-miniruby, test-sample): split the test target
+ so that -k option works.
+
+Tue Aug 7 14:58:39 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/pty/pty.c (establishShell): handshaking before close slave
+ device. [ruby-talk:263410]
+
+ * ext/pty/pty.c (MasterDevice, SlaveDevice, deviceNo): constified.
+
+ * ext/pty/pty.c (SlaveName): removed static buffer.
+
+ * ext/pty/expect_sample.rb: support for autologin.
+
+Tue Aug 7 13:58:03 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * include/ruby/ruby.h (ruby_special_consts): added RUBY_SPECIAL_SHIFT.
+
+ * .gdbinit: some improvements.
+
+Tue Aug 7 13:28:32 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * common.mk (node_name.inc): use $? instead of $< for nmake.
+ [ruby-dev:31356]
+
+Tue Aug 7 12:45:13 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (ac_cv_func_isinf): set yes also on OpenSolaris.
+ [ruby-Bugs-12859]
+
+Tue Aug 7 12:31:51 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * io.c (pipe_open): fix for win32 platforms.
+
+Tue Aug 7 02:58:33 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * bignum.c (rb_big2str0): make Bignum#to_s even faster. a patch
+ from Kenta Murata <muraken AT gmail.com>. [ruby-dev:31354]
+
+Tue Aug 7 01:42:05 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * enum.c (enum_zip): zip no longer converts arguments into
+ arrays, uses enumerators.
+
+Tue Aug 7 01:27:47 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * cont.c (rb_fiber_yield): change argument ordering. export.
+
+ * cont.c (rb_fiber_current): export
+
+ * include/ruby/intern.h: export several functions from cont.c.
+
+ * enumerator.c (enumerator_next): new method to implement external
+ iterator (generator) using fiber.
+
+ * enumerator.c (enumerator_next_p): new method to check whether
+ any element is left in the generator sequence.
+
+ * enumerator.c (enumerator_rewind): a new method to rewind the
+ generator sequence.
+
+Tue Aug 7 01:15:24 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * enum.c (enum_cycle): new method to cycle enumerable forever.
+
+Tue Aug 7 00:05:38 2007 Keiju Ishitsuka <keiju@ruby-lang.org>
+
+ * irb/ruby-lex.rb: support for '\c'. [ruby-talk:263508]
+
+Mon Aug 6 20:29:22 2007 Koichi Sasada <ko1@atdot.net>
+
+ * insnhelper.ci, insns.def: move some statements to functions.
+
+ * vm.c, vm.h, vm_evalbody.ci: fix include/typedef places.
+
+Mon Aug 6 18:41:12 2007 Koichi Sasada <ko1@atdot.net>
+
+ * lib/vm/instruction.rb (make_header_analysys): fix last commit.
+
+Mon Aug 6 18:33:22 2007 Koichi Sasada <ko1@atdot.net>
+
+ * lib/vm/instruction.rb (make_header_analysys): add to separate
+ header addition process.
+
+Mon Aug 6 17:36:29 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/rexml/encodings/{ISO-8859-15,CP-1252}.rb: fixed invalid syntax.
+
+Mon Aug 6 16:57:08 2007 Koichi Sasada <ko1@atdot.net>
+
+ * sample/test.rb: fix to output file name if it contains
+ invalid syntax.
+
+Mon Aug 6 16:41:22 2007 Koichi Sasada <ko1@atdot.net>
+
+ * parse.y (value_expr_gen): fix to cause "void value expression"
+ when jump expression such as "next" are shown on value_expr().
+ [ruby-dev:31119]
+
+ * bootstraptest/test_syntax.rb: fix to above change.
+
+Mon Aug 6 14:36:30 2007 Koichi Sasada <ko1@atdot.net>
+
+ * parse.y: fix a f_marg rule. [ruby-dev:31160]
+
+Mon Aug 6 14:29:30 2007 Koichi Sasada <ko1@atdot.net>
+
+ * bootstraptest/runner.rb (assert_equal): add additional
+ message parameter.
+
+Mon Aug 6 13:34:09 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * common.mk (INSNS): not chdir to srcdir.
+
+ * common.mk (node_name.inc): auto-generate node name list.
+
+ * iseq.c (ruby_node_name): ditto.
+
+ * iseq.c (iseq_s_compile_option_get, Init_ISeq): added a new
+ method VM::InstructionSequence::compile_option.
+
+ * lib/vm/instruction.rb (RubyVM::SourceCodeGenerator): --destdir
+ option.
+
+ * tool/node_name.rb: to auto-generate node name list.
+
+Sun Aug 5 11:51:39 2007 Kouhei Sutou <kou@cozmixng.org>
+
+ * lib/rss, sample/rss, test/rss:
+ - 0.1.7 -> 0.1.8.
+ - supported <itunes:XXX>.
+ - reverted backward incompatibility API changes introduced 0.1.7.
+
+Sun Aug 5 04:56:25 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * io.c (pipe_open_v, pipe_open_s): separate array and string
+ cases. [ruby-dev:31344]
+
+Fri Aug 3 11:05:54 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/extmk.rb (extmake): save all CONFIG values.
+
+ * ext/extmk.rb (extmake): remove mkmf.log at clean, and extconf.h at
+ distclean, respectively.
+
+ * ext/extmk.rb: remove rdoc at clean, and installed list file at
+ distclean, respectively.
+
+Fri Aug 3 07:09:05 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/mkmf.rb: more verbose message. [ruby-Bugs-12766]
+
+ * lib/mkmf.rb (have_type): suppress a warning with -Wall.
+
+ * lib/mkmf.rb (find_type): new method.
+
+Fri Aug 3 00:00:20 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * bignum.c (big2str_table): base cannot be 0 or 1.
+
+Thu Aug 2 23:42:57 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (reg_compile_gen): set error if failed to compile regexp
+ literal. [ruby-dev:31336]
+
+ * re.c (option_to_str, arg_kcode, opt_kcode): options conversion
+ between int and string.
+
+ * re.c (rb_reg_compile): should not use regexp which could not get
+ initialized. [ruby-dev:31333]
+ return error message to let the parser know it.
+
+ * re.c (rb_reg_compile): append regexp options to error message.
+ [ruby-dev:31334]
+
+Thu Aug 2 22:05:32 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * bignum.c (rb_big2str0): faster Bignum#to_s using Karatsuba
+ algorithm. a patch from Yusuke ENDOH <mame AT tsg.ne.jp>
+ in [ruby-dev:31312], slightly modified by Kenta Murata
+ <muraken AT gmail.com> in [ruby-dev:31339].
+
+Thu Aug 2 13:46:39 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * sprintf.c (rb_f_sprintf): should not check positional number as
+ width. [ruby-core:11838]
+
+Wed Aug 1 12:40:05 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * generic.rb (URI::Generic::merge_path): behave as RFC 3986.
+ [ruby-talk:252052]
+
+Tue Jul 31 23:38:09 2007 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * lib/date/format.rb (_parse): now interprets slashed numerical
+ dates as a big endian (except dd/mm/yyyy). [experimental]
+
+Mon Jul 30 11:16:40 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * bignum.c (rb_big_aref): check for Bignum index range.
+ [ruby-dev:31271]
+
+Sat Jul 28 09:35:41 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ext/digest/lib/digest.rb (Digest::self.const_missing): avoid
+ infinite recursive const_missing call. [ruby-talk:262193]
+
+Thu Jul 26 20:40:25 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * range.c (range_eqq): call_super() in === does not work well
+ since Enumerable#=== has different behavior. [ruby-dev:31296]
+
+Thu Jul 26 13:57:45 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * dln.c (load_1, dln_find_1): constified.
+
+ * dln.c (conv_to_posix_path): removed.
+
+ * ruby.c (usage): constified.
+
+ * ruby.c (rubylib_mangled_path, rubylib_mangled_path2): return
+ VALUE instead of a pointer to static buffer.
+
+ * ruby.c (push_include_cygwin): fixed buffer overflow.
+ [ruby-dev:31297]
+
+ * ruby.c (ruby_init_loadpath): not convert built-in paths.
+
+Tue Jul 24 10:37:04 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * io.c (rb_f_p): return nil if no argument. [ruby-dev:31285]
+
+Tue Jul 24 01:05:07 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * regint.h (USE_MATCH_RANGE_IS_COMPLETE_RANGE): undef to achieve old
+ rindex behavior. [ruby-dev:31265]
+
+Mon Jul 23 18:37:14 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * include/ruby/oniguruma.h: upgrade to Oniguruma 5.9.0. fixes
+ some memory violation. [ruby-dev:31070]
+
+Sun Jul 22 20:09:49 2007 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * lib/date/format.rb (Date._parse): now accepts some new
+ hints. [experimental]
+
+ * lib/parsedate.rb: followed the changes on
+ lib/date/format.rb. [experimental]
+
+Sun Jul 22 16:06:56 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * thread.c (is_ruby_native_thread): made an int function as
+ well as version 1.8.
+
+ * include/ruby/ruby.h (is_ruby_native_thread): moved prototype
+ from intern.h as well as version 1.8.
+
+Sun Jul 22 14:33:46 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * file.c (rb_file_s_rename): deleted code to get rid of a bug of
+ old Cygwin.
+
+ * file.c (rb_file_truncate): added prototype of GetLastError()
+ on cygwin. [ruby-dev:31239]
+
+ * include/ruby/intern.h (is_ruby_native_thread): prototype.
+
+ * missing/strftime.c (strftime): fix printf format and actual
+ arguments.
+
+ * ext/Win32API/Win32API.c (Win32API_initialize): ditto.
+
+ * ext/tk/tcltklib.c (ip_finalize): ditto.
+
+ * ext/win32ole/win32ole.c (lcid_installed): ditto.
+
+ * ext/socket/getnameinfo.c: include stdio.h always.
+
+Sat Jul 21 21:39:12 2007 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * lib/date.rb, lib/date/format.rb (Date._parse): now can take some
+ hints (its aim must be mainly determination of endianness of
+ date). [experimental]
+
+ * lib/date.rb, lib/date/format.rb (Date._parse): now completes
+ truncated year as default action. [experimental]
+
+ * lib/date.rb, lib/date/format.rb: added ::iso8601, ::rfc3339,
+ ::xmlschema, ::rfc2822, ::httpdate, ::jisx0301, #xmlschema,
+ #httpdate. [experimental]
+
+Sat Jul 21 17:48:26 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * common.mk: inverted rules order.
+
+ * thread_win32.ci (w32_create_thread): bcc does not have
+ _beginthreadex().
+
+ * lib/mkmf.rb (create_makefile): make OBJS depend on RUBY_EXTCONF_H
+ only if extconf.h is created.
+
+ * bcc32/Makefile.sub: headers have moved.
+
+ * bcc32/{Makefile.sub,configure.bat,setup.mak: configure_args
+ support.
+
+ * bcc32/setup.mak: check runtime version.
+
+ * win32/win32.c (rb_w32_open_osfhandle): prototype has changed
+ in bcc 5.82.
+
+ * {win32,wince,bcc32}/setup.mak (-version-): no RUBY_EXTERN magic.
+
+ * win32/resource.rb: include patchlevel number.
+
+Sat Jul 21 12:06:48 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/mkmf.rb (init_mkmf): should remove mkmf.log too.
+
+Sat Jul 21 01:45:03 2007 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * lib/date/format.rb (Date._parse): completes calendar week based year.
+
+ * lib/date/format.rb (Date._parse): detects year of ordinal date in
+ extended format.
+
+Fri Jul 20 16:30:31 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * compile.c (iseq_set_sequence): raise SyntaxError instead of rb_bug
+ since this function can be called from VM::InstructionSequence.load.
+
+ * compile.c (insn_set_sc_state, iseq_set_sequence_stackcaching): ditto.
+
+Fri Jul 20 16:11:33 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * compile.c, compile.h (DECL_ANCHOR, INIT_ANCHOR): split not to
+ initialize aggregations with dynamic values. [ruby-talk:259306]
+
+ * eval.c (rb_protect): not to initialize aggregations with dynamic
+ values. [ruby-talk:259306]
+
+ * gc.c (mark_current_machine_context): ditto.
+
+ * thread.c (thgroup_list, call_trace_func): ditto.
+
+ * vm.c (vm_init_redefined_flag): ditto.
+
+Fri Jul 20 15:22:51 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/openssl/ossl_config.c (ossl_config_set_section): do not
+ initialize aggregations with dynamic values. [ruby-talk:259306]
+
+Fri Jul 20 10:39:28 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (stmt, mlhs_node, lhs, arg, var_ref): return dummy
+ NODE_BEGIN after errors. [ruby-dev:31100], [ruby-dev:31118]
+
+ * parse.y (remove_begin): keep empty NODE_BEGIN, instead of null.
+ [ruby-dev:31252], [ruby-dev:31263]
+
+Fri Jul 20 09:50:40 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * bootstraptest/runner.rb (get_result_string): check $?.coredump?
+ first.
+
+ * bootstraptest/runner.rb (cleanup_coredump, check_coredump): see
+ stackdump file too.
+
+Thu Jul 19 20:39:30 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * parse.y (value_expr_gen): warn for empty expression ().
+ [ruby-dev:31252]
+
+Thu Jul 19 19:24:14 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval_error.ci (get_backtrace): check the result more.
+ [ruby-dev:31261] [ruby-bugs-12398]
+
+Thu Jul 19 14:38:45 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * bignum.c (rb_big_lshift, rb_big_rshift): separated functions
+ to get rid of infinite recursion. fixed calculation in edge
+ cases. [ruby-dev:31244]
+
+ * numeric.c (rb_fix_lshift, rb_fix_rshift): ditto.
+
+Wed Jul 18 16:57:41 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * bignum.c (rb_big_pow): refine overflow check. [ruby-dev:31242]
+
+Wed Jul 18 09:19:07 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (rb_parser_append_print, rb_parser_while_loop): moved check
+ for node to the head.
+
+ * ruby.c (proc_options): do nothing for -p/-n options if tree is null.
+ submitted by Yusuke ENDOH <mame AT tsg.ne.jp> at [ruby-dev:31243].
+
+Wed Jul 18 08:47:09 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * time.c (time_succ): Time#succ should return a time object in the
+ same timezone mode to the original. [ruby-talk:260256]
+
+Mon Jul 16 23:07:51 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/base64.rb (Base64::b64encode): should not specify /o option
+ for regular expression. [ruby-dev:31221]
+
+Mon Jul 16 22:57:53 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * sprintf.c (rb_str_format): make %u behave like %d for negative
+ values, since decimal format does not work with preceding dots.
+ [ruby-core:11575]
+
+Mon Jul 16 18:29:33 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * string.c (rb_str_rindex_m): accept string-like object convertible
+ with #to_str method, as well as rb_str_index_m. [ruby-core:11692]
+
+Mon Jul 16 07:17:28 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * insns.def (getspecial): lfp_svar_get() requires int for special
+ global variables.
+
+Mon Jul 16 05:45:53 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * sprintf.c (rb_f_sprintf): more checks for format argument.
+ [ruby-core:11569], [ruby-core:11570], [ruby-core:11571],
+ [ruby-core:11573]
+
+Mon Jul 16 00:26:10 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * bignum.c (rb_big_pow): removed invariant variable. [ruby-dev:31236]
+
+Sun Jul 15 22:24:37 2007 pegacorn <subscriber.jp AT gmail.com>
+
+ * ext/dl/cfunc.c (rb_dlcfunc_call): adjust format. [ruby-dev:31222]
+
+ * ext/digest/digest.c (rb_digest_instance_update,
+ rb_digest_instance_finish, rb_digest_instance_reset,
+ rb_digest_instance_block_length): %s in rb_raise() expects char*.
+ [ruby-dev:31222]
+
+ * ext/openssl/ossl.h: include ossl_pkcs5.h. [ruby-dev:31231]
+
+ * ext/openssl/ossl_pkcs5.h: new file for PKCS5. [ruby-dev:31231]
+
+ * ext/openssl/ossl_x509name.c (ossl_x509name_to_s): use ossl_raise()
+ instead of rb_raise(). [ruby-dev:31222]
+
+ * ext/sdbm/_sdbm.c: DOSISH platforms need io.h. [ruby-dev:31232]
+
+ * ext/syck/syck.h: include stdlib.h for malloc() and free().
+ [ruby-dev:31232]
+
+ * ext/syck/syck.h (syck_parser_set_input_type): prototype added.
+ [ruby-dev:31231]
+
+ * win32/win32.c: include mbstring.h for _mbspbrk(). [ruby-dev:31232]
+
+ * include/ruby/win32.h (rb_w32_getcwd): prototype added.
+ [ruby-dev:31232]
+
+Sun Jul 15 21:07:43 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * bignum.c (bigtrunc): do not empty Bignum. [ruby-dev:31229]
+
+Sun Jul 15 19:05:28 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * bignum.c (rb_cstr_to_inum): check leading non-digits.
+ [ruby-core:11691]
+
+Sun Jul 15 04:42:20 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * bignum.c (get2comp): do nothing for empty Bignum. [ruby-dev:31225]
+
+Sat Jul 14 22:49:30 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * numeric.c (fix_pow): integer power calculation: 0**n => 0,
+ 1**n => 1, -1**n => 1 (n: even) / -1 (n: odd).
+
+ * test/ruby/test_fixnum.rb (TestFixnum::test_pow): update test
+ suite. pow(-3, 2^64) gives NaN when pow(3, 2^64) gives Inf.
+
+Sat Jul 14 18:46:35 2007 Tanaka Akira <akr@fsij.org>
+
+ * configure.in: add --with-valgrind.
+
+ * gc.h (SET_MACHINE_STACK_END): new macro to replace
+ rb_gc_set_stack_end. it find out accurate stack boundary by
+ asm using gcc on x86.
+
+ * thread.c (rb_gc_set_stack_end): don't define if asm-version
+ SET_MACHINE_STACK_END is available.
+
+ * gc.c (mark_current_machine_context): extracted from garbage_collect.
+ it use SET_MACHINE_STACK_END to not scan out of stack area.
+ it notify conservative GC information to valgrind if
+ --with-valgrind.
+
+Sat Jul 14 14:04:06 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * enum.c (sort_by_cmp): check if reentered. [ruby-dev:24291]
+
+Sat Jul 14 11:08:28 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ext/json/ext/generator/generator.c (check_max_nesting): wrong
+ format specifier. a patch from pegacorn <subscriber.jp AT gmail.com>.
+ [ruby-dev:31217]
+
+Sat Jul 14 02:27:43 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * numeric.c (int_pow): overflow detection using FIT_SQRT_LONG().
+ [ruby-dev:31215]
+
+Sat Jul 14 02:05:53 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * insns.def (opt_div): LONG2FIX() may not work for corner cases,
+ use LONG2NUM() instead. [ruby-dev:31210]
+
+Sat Jul 14 00:34:01 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * numeric.c (int_round): should not return false, but self.
+ [ruby-dev:31212]
+
+Fri Jul 13 18:31:27 2007 Koichi Sasada <ko1@atdot.net>
+
+ * include/ruby/intern.h: remove unused function declarations.
+
+ * include/ruby/ruby.h: ditto.
+
+Fri Jul 13 17:32:37 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * vm.c (vm_free): clear free'ed living_threads field.
+ [ruby-dev:31163]
+
+ * insns.def (opt_succ): use cast to shut a warning up.
+
+Fri Jul 13 16:10:00 2007 Tanaka Akira <akr@fsij.org>
+
+ * lib/open-uri.rb (URI::Generic#find_proxy): use ENV.to_hash to access
+ http_proxy environment variable to avoid case insensitive
+ environment search.
+
+Fri Jul 13 15:02:15 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * win32/win32.c (CreateChild): enclose command line except for
+ command.com which can not handle quotes. [ruby-talk:258939]
+
+Fri Jul 13 11:33:09 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * range.c (range_max, range_min): return nil for empty set as well as
+ 1.8 and Enumerable. [ruby-dev:31198]
+
+Fri Jul 13 11:28:37 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * parse.y (bvar): semicolon was lost for ripper description.
+ [ruby-dev:31140]
+
+Fri Jul 13 11:25:10 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (program, stmt, primary): reduced duplicated code.
+
+ * parse.y (dsym): convert also literals containing NUL to
+ symbol.
+
+ * parse.y (debug_lines): use rb_hash_lookup() to get rid of
+ call of Hash#default.
+
+ * parse.y (ripper_warningS): unused in ripper right now.
+
+Fri Jul 13 10:33:29 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * array.c (rb_ary_flatten_bang): check argument if valid
+ integer. [ruby-dev:31197]
+
+Fri Jul 13 10:10:46 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/mkmf.rb (link_command, cc_command, cpp_command): do not expand
+ ::CONFIG which is an alias of MAKEFILE_CONFIG.
+
+Thu Jul 12 21:38:02 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * insns.def (opt_succ): use LONG_MAX as maximum Fixnum VALUE.
+ [ruby-dev:31199]
+
+Thu Jul 12 18:42:18 2007 Tanaka Akira <akr@fsij.org>
+
+ * range.c (range_max): use FIX2LONG instead of FIX2INT to avoid
+ RangeError by ((-0x80000001)...(-0x80000001)).max on LP64.
+
+ * insns.def (opt_plus): use FIX2LONG instead of FIX2INT to avoid
+ RangeError by 0x3fffffffffffffff+1 on LP64.
+
+ * insns.def (opt_succ): don't use 0x80000000 which assumes 32bit VALUE.
+ use FIX2LONG instead of FIX2INT.
+ [ruby-dev:31190]
+
+Thu Jul 12 17:03:15 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * struct.c (rb_struct_init_copy): disallow changing the size.
+ [ruby-dev:31168]
+
+Thu Jul 12 12:58:21 2007 Koichi Sasada <ko1@atdot.net>
+
+ * blockinlining.c: remove "yarv" prefix.
+
+ * array.c, numeric.c: ditto.
+
+ * insnhelper.ci, insns.def, vm_evalbody.ci: ditto.
+
+ * yarvcore.c: removed.
+
+ * yarvcore.h: renamed to core.h.
+
+ * cont.c, debug.c, error.c, process.c, signal.c : ditto.
+
+ * ext/probeprofiler/probeprofiler.c: ditto.
+
+ * id.c, id.h: added.
+
+ * inits.c: ditto.
+
+ * compile.c: rename internal functions.
+
+ * compile.h: fix debug flag.
+
+ * eval.c, object.c, vm.c: remove ruby_top_self.
+ use rb_vm_top_self() instead.
+
+ * eval_intern.h, eval_load: ditto.
+
+ * gc.c: rename yarv_machine_stack_mark() to
+ rb_gc_mark_machine_stack().
+
+ * insnhelper.h: remove unused macros.
+
+ * iseq.c: add iseq_compile() to create iseq object
+ from source string.
+
+ * proc.c: rename a internal function.
+
+ * template/insns.inc.tmpl: remove YARV prefix.
+
+ * thread.c: use rb_iseq_eval() and rb_str_new2().
+
+ * vm.c (rb_iseq_eval): added.
+
+ * vm.c: move some functions from yarvcore.c.
+
+ * vm_dump.c: fix to remove compiler warning.
+
+Thu Jul 12 12:24:29 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * insns.def (opt_succ): fixed typo. [ruby-dev:31189]
+
+Thu Jul 12 10:30:46 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * thread.c (thread_start_func_2): moved prototye from thread_*.ci.
+
+ * thread_pthread.ci (thread_start_func_2): not use a directive
+ inside a macro argument. [ruby-talk:258763]
+
+ * thread.c (thread_join): pthread_t may not be pointer.
+
+ * thread_pthread.ci (ubf_select_each): ditto.
+
+Thu Jul 12 05:32:28 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * include/ruby/ruby.h (FIX2ULONG): drop sign bit for LLP64 platform.
+
+Tue Jul 10 19:34:45 2007 Koichi Sasada <ko1@atdot.net>
+
+ * hash.c (rb_hash_lookup): added. this function is similar to
+ rb_hash_aref(), but doesn't call Hash#default when no entry
+ exists.
+
+ * include/ruby/intern.h: ditto.
+
+ * insnhelper.ci (lfp_svar_get): use rb_hash_lookup().
+
+Tue Jul 10 19:16:28 2007 Koichi Sasada <ko1@atdot.net>
+
+ * eval.c, insnhelper.ci, vm.c: change cref index (-1 -> 2).
+
+Tue Jul 10 18:49:56 2007 Koichi Sasada <ko1@atdot.net>
+
+ * eval.c (exec_under): add proper casts.
+
+Tue Jul 10 16:58:16 2007 Koichi Sasada <ko1@atdot.net>
+
+ * vm.c, insnhelper.ci: fix svar interface.
+
+ * compile.c (iseq_compile_each), yarvcore.h: fix to use new
+ svar interface for flip flop.
+
+ * eval.c: ditto.
+
+ * insns.def: ditto.
+
+ * include/ruby/intern.h: remove "rb_svar()" declaration.
+
+Tue Jul 10 16:52:01 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * compile.c (rb_iseq_compile): formatted if/else to switch statement.
+
+Tue Jul 10 15:57:53 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * bootstraptest/test_flip.rb: new test for flip-flop operator.
+
+Tue Jul 10 14:50:01 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * bcc32/{Makefile.sub,setup.mak}: remove surplus slash from srcdir.
+
+Mon Jul 9 02:17:36 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * cont.c (cont_restore_1): workaround for x64-mswin64's SEH.
+
+Sun Jul 8 02:08:53 2007 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * lib/json.rb, lib/json/, ext/json/: import JSON 1.1.1
+
+Sat Jul 7 21:59:29 2007 Tanaka Akira <akr@fsij.org>
+
+ * lib/pp.rb (PP::PPMethods#pp_hash): sort condition changed:
+ all keys have a same class which is kind of Comparable.
+
+Sat Jul 7 17:12:37 2007 Koichi Sasada <ko1@atdot.net>
+
+ * compile.c: use rb_bug() instead of rb_compile_error().
+
+Sat Jul 7 16:12:48 2007 Koichi Sasada <ko1@atdot.net>
+
+ * parse.y: fix node construction (around f_margs).
+ [ruby-dev:31143]
+
+ * bootstraptest/test_block.rb: add a test for above.
+
+ * insnhelper.ci: fix indent.
+
+Sat Jul 7 15:36:50 2007 Tanaka Akira <akr@fsij.org>
+
+ * lib/pp.rb (PP::PPMethods#pp_hash): sort if
+ all keys are strings, symbols or integers.
+
+Sat Jul 7 15:30:05 2007 Koichi Sasada <ko1@atdot.net>
+
+ * insnhelper.ci (vm_yield_setup_args), vm.c, insns.def:
+ fix to pass nil as block parameter to yielded block.
+ [ruby-dev:31147]
+
+ * bootstraptest/test_block.rb: add a test for above.
+
+Fri Jul 6 19:55:10 2007 Keiju Ishitsuka <keiju@ruby-lang.org>
+
+ * lib/irb.rb: typo. Thanks, Giles Bowkett.
+
+ * lib/irb/completion.rb: support Ruby1.9 changing return value
+ String to Symbol for Object#methods, etc. [ruby-dev:31148].
+
+Fri Jul 6 18:20:50 2007 Koichi Sasada <ko1@atdot.net>
+
+ * bootstraptest/runner.rb: fix load path.
+
+ * common.mk: fix "test" rule to run with "btest".
+
+ * rubytest.rb, sample/test.rb: fix to show tests progress.
+
+Fri Jul 6 15:37:48 2007 Koichi Sasada <ko1@atdot.net>
+
+ * test/ruby/test_iterator.rb: fix test to 1.9 spec.
+
+Fri Jul 6 15:21:25 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (rb_interrupt): suppress a gcc's officious warning.
+
+Fri Jul 6 14:57:12 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (keyword_to_name): constified.
+
+ * ext/ripper/eventids2.c (token_to_eventid): ditto.
+
+Fri Jul 6 14:50:40 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * bootstraptest/runner.rb: added --quiet option.
+
+Fri Jul 6 14:35:25 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (f_marg): wrap f_norm_arg assignment node with NODE_LIST.
+ [ruby-dev:31141]
+
+Fri Jul 6 12:15:01 2007 Tanaka Akira <akr@fsij.org>
+
+ * test/ruby/sentgen.rb: new file.
+
+ * test/ruby/test_assignment.rb: tests implemented using assignment
+ generator and emulator.
+
+Fri Jul 6 03:06:58 2007 Koichi Sasada <ko1@atdot.net>
+
+ * insns.def: remove unused code.
+
+ * compile.c (compile_massign): fix to invoke to_splat on
+ splat rhs (example: *a = *nil). [ruby-dev:31136]
+
+ * bootstraptest/test_massign.rb: add tests for above.
+
+ * compile.c (iseq_compile_each): disable excess optimization.
+ [ruby-dev:31126]
+
+Fri Jul 6 02:08:25 2007 Koichi Sasada <ko1@atdot.net>
+
+ * insns.def: fix to invoke nil.to_splat on NODE_ARGSCAT.
+ [ruby-dev:31138].
+
+ * bootstraptest/test_literal.rb: add tests for above.
+
+Thu Jul 5 19:45:55 2007 Koichi Sasada <ko1@atdot.net>
+
+ * yarvcore.h: rename rb_control_frame_t#magic to flag.
+
+ * vm.h: add VM_FRAME_TYPE() and VM_FRAME_FLAG().
+
+ * cont.c, insnhelper.ci, insns.def, vm.c, vm_dump.c,
+ vm_evalbody.ci, yarvcore.c: apply above changes.
+
+Thu Jul 5 19:16:14 2007 Koichi Sasada <ko1@atdot.net>
+
+ * test/ruby/test_basicinstructions.rb: remove an assertion using
+ unsupported hash literal (such as {1, 2}).
+
+ * test/ruby/test_hash.rb: ditto.
+
+Thu Jul 5 19:12:22 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * ruby.c: Qfalse is VALUE, not pointer.
+
+Thu Jul 5 18:42:01 2007 Koichi Sasada <ko1@atdot.net>
+
+ * compile.c (iseq_compile_each): add break catch point.
+
+ * insns.def (throw): support correct "break" and "return".
+ this commit achieve that "make test" passes all tests.
+
+ * vm.c: ditto.
+
+Thu Jul 5 18:44:12 2007 Tanaka Akira <akr@fsij.org>
+
+ * parse.y (mlhs_basic): use mlhs_post after tSTAR.
+ [ruby-dev:31109]
+
+Thu Jul 5 18:27:58 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * include/ruby/{intern,ruby}.h, compile.[ch], error.c, eval.c,
+ eval_load.c, gc.c, iseq.c, main.c, parse.y, re.c, ruby.c,
+ yarvcore.[ch] (ruby_eval_tree, ruby_sourcefile, ruby_sourceline,
+ ruby_nerrs): purge global variables.
+
+ * ruby.c (proc_options): moved do_print and do_loop options
+ handling from ruby_process_options().
+
+Thu Jul 5 16:37:34 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * numeric.c (int_pow): fix previous nubu's commit.
+
+ * test/ruby/test_fixnum.rb: new test.
+
+Thu Jul 5 15:56:06 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * numeric.c (int_pow): even number multiplication never be negative.
+
+Thu Jul 5 10:42:07 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * include/ruby/{node,ruby}.h, ruby.c: added enum constants for gdb
+ support. [ruby-dev:31066]
+
+ * .gdbinit: some improvements.
+
+Thu Jul 5 10:13:08 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (global_symbols.last_id): reduce unused ID numbers.
+
+ * include/ruby/st.h, st.c (st_init_table, st_init_table_with_size):
+ constified.
+
+Wed Jul 4 23:36:27 2007 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * lib/webrick/httpauth/authenticator.rb
+ (WEBrick::HTTPAuth::Authenticator#check_scheme): auth-scheme must be
+ treated as a case-insensitive token according to RFC 2617 section 1.2.
+
+Wed Jul 4 18:30:04 2007 Tanaka Akira <akr@fsij.org>
+
+ * parse.y (mlhs_inner): new rule. [ruby-dev:31132]
+
+Wed Jul 4 05:11:57 2007 Koichi Sasada <ko1@atdot.net>
+
+ * iseq.c (set_relation): added.
+
+Wed Jul 4 04:58:30 2007 Koichi Sasada <ko1@atdot.net>
+
+ * insnhelper.ci (caller_setup_args): fix to show correct class
+ on an error message (ex: m(&1)). [ruby-dev:31101]
+
+Wed Jul 4 04:30:32 2007 Koichi Sasada <ko1@atdot.net>
+
+ * compile.c (compile_array, iseq_compile_each): fix about array
+ generation in void context. [ruby-dev:31102]
+
+ * bootstraptest/test_literal.rb: add a test for above.
+
+Wed Jul 4 04:07:00 2007 Koichi Sasada <ko1@atdot.net>
+
+ * compile.c (compile_array): ignore NODE_ZARRAY.
+ [ruby-dev:31110]
+
+ * bootstraptest/test_method.rb: add a test for above.
+
+Wed Jul 4 04:04:02 2007 Koichi Sasada <ko1@atdot.net>
+
+ * compile.h: fix debug print level.
+
+Wed Jul 4 03:52:55 2007 Koichi Sasada <ko1@atdot.net>
+
+ * compile.c (iseq_compile_each): support v[&b]= type method call.
+ [ruby-dev:31094]
+
+ * bootstraptest/test_method.rb: add a test for above.
+
+Wed Jul 4 03:43:29 2007 Koichi Sasada <ko1@atdot.net>
+
+ * compile.c (compile_massign): fix massign compilation
+ (example: a, *v, (*x) = ...). [ruby-dev:31107]
+
+ * bootstraptest/test_massign.rb: add tests for above.
+
+Tue Jul 3 23:12:29 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * include/ruby/onigiruma.h (ONIG_EXTERN): use RUBY_EXTERN if defined.
+
+ * regenc.h: include ruby/defines.h.
+
+ * regint.h: x64-mswin64 support.
+
+Tue Jul 3 13:47:44 2007 Koichi Sasada <ko1@atdot.net>
+
+ * cont.c (cont_save_machine_stack): clear saved_thread.machine_stack*.
+
+Mon Jul 2 21:45:53 2007 Koichi Sasada <ko1@atdot.net>
+
+ * compile.c: rename iseq_translate_direct_threaded_code()
+ to iseq_translate_threaded_code().
+
+ * eval_intern.h, yarvcore.h: mv EXEC_EVENT_HOOK() and
+ exec_event_hooks() to yarvcore.h.
+
+ * insnhelper.ci, vm.c: mv yarv_finish_insn_seq to vm.c.
+
+ * insns.def (opt_call_c_function): fix to use RESTORE_REGS().
+
+ * iseq.c (rb_iseq_build_for_ruby2cext): fix to allocate iseq.
+
+Mon Jul 2 11:59:34 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * insns.def (defineclass): suppress a warning.
+
+ * insns.def (opt_call_c_function): should raise the thrown exception
+ instead of returning it.
+
+Mon Jul 2 08:53:47 2007 Koichi Sasada <ko1@atdot.net>
+
+ * eval_intern.h, yarvcore.h: move declaration of sysstack_error
+ to yarvcore.h.
+
+ * iseq.c: fix symbol name (:toplevel -> :top).
+
+ * lib/vm/instruction.rb, template/vm.inc.tmpl: replaceable
+ current file name.
+
+Mon Jul 2 05:29:07 2007 Koichi Sasada <ko1@atdot.net>
+
+ * compile.c, iseq.c: fix iseq some of load/store process.
+
+Mon Jul 2 03:09:36 2007 Koichi Sasada <ko1@atdot.net>
+
+ * yarvcore.h, compile.c, insnhelper.ci, iseq.c, vm.c:
+ rename structure names and field names.
+
+ * insnhelper.h, insns.def: add GET_CONST_INLINE_CACHE().
+
+ * iseq.c: add rb_iseq_build_for_ruby2cext().
+
+ * yarvcore.h, vm.h: move declaration of rb_insn_func_t
+ to yarvcore.h.
+
+Sun Jul 1 03:25:53 2007 Koichi Sasada <ko1@atdot.net>
+
+ * insnhelper.h, vm.h: some refactoring.
+ remove useless comments, etc.
+
+Sun Jul 1 03:02:29 2007 Koichi Sasada <ko1@atdot.net>
+
+ * yarvcore.h: some refactoring on rb_iseq_t.
+ rename some variable names, add comments, etc.
+
+ * compile.c, iseq.c, proc.c, vm.c: ditto.
+
+Sun Jul 1 02:57:57 2007 Koichi Sasada <ko1@atdot.net>
+
+ * vm.h: rename insn_func_type to rb_insn_func_type.
+
+ * vm_evalbody.ci: ditto.
+
+ * insns.def: add opt_call_native_compiled instruction
+ instead of opt_call_native_compiled.
+
+Sat Jun 30 00:17:00 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (parser_yylex): return non-valid token for an invalid
+ instance/class variable name. a patch from Yusuke ENDOH
+ <mame AT tsg.ne.jp>. [ruby-dev:31095]
+
+Fri Jun 29 23:38:06 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (stmts): fix for ripper.
+
+Fri Jun 29 21:55:48 2007 Koichi Sasada <ko1@atdot.net>
+
+ * parse.y: fix to show line number of blank block.
+ [ruby-dev:31093]
+
+Fri Jun 29 20:51:04 2007 Tanaka Akira <akr@fsij.org>
+
+ * lib/cgi/session.rb (create_new_id): don't cut off md5.hexdigest to
+ follow Ruby 1.8.
+
+Fri Jun 29 17:10:14 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * debug.h: constified.
+
+ * debug.c (ruby_set_debug_option): separated from main.c.
+
+ * gc.c (ruby_gc_stress), signal.c (ruby_enable_coredump): prefixed.
+
+Fri Jun 29 16:39:06 2007 Koichi Sasada <ko1@atdot.net>
+
+ * proc.c (proc_new): fix to return a proc object
+ which block is contained ([ruby-dev:31056]).
+
+Fri Jun 29 15:43:59 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * numeric.c (fix_pow): get rid of division by zero. reported by
+ Yusuke ENDOH <mame AT tsg.ne.jp> [ruby-dev:31040]
+
+ * numeric.c (int_round): do nothing when rounding by zeroth digit.
+ check underflow. [ruby-dev:31043]
+
+Fri Jun 29 15:32:00 2007 Koichi Sasada <ko1@atdot.net>
+
+ * configure.in: add fastcall attribute check.
+
+Fri Jun 29 14:51:24 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * parse.y (assoc_list): remove expanded hash literal (no splat).
+
+ * lib/webrick/httpstatus.rb (WEBrick::HTTPStatus::EOFError): adapt
+ to new syntax.
+
+Fri Jun 29 14:48:18 2007 Koichi Sasada <ko1@atdot.net>
+
+ * tool/insns2vm.rb, lib/vm/instruction.rb: move process body
+ to lib/vm/instruction.rb.
+
+ * common.mk: fix aotc rule.
+ experimental. bin/ruby2cext is not added yet.
+
+Fri Jun 29 11:23:09 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (dsym): return non-null NODE even if yyerror(). based on a
+ patch from Yusuke ENDOH <mame AT tsg.ne.jp>. [ruby-dev:31085]
+
+Thu Jun 28 23:29:30 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * parse.y (assoc_list): odd number check only for NODE_ARRAY.
+ [ruby-dev:31082]
+
+Thu Jun 28 22:24:33 2007 Koichi Sasada <ko1@atdot.net>
+
+ * win32/Makefile.sub: define FUNC_FASTCALL macro.
+
+ * vm.h: fix to use FUNC_FASTCALL macro.
+ TODO: add FUNC_FASTCALL macro by configure.
+
+Thu Jun 28 19:38:53 2007 Koichi Sasada <ko1@atdot.net>
+
+ * compile.c: fix to remove -Wall warnings on gcc.
+
+ * compile.c (make_name_with_str): removed. use rb_sprintf() instead.
+
+Thu Jun 28 18:53:01 2007 Tanaka Akira <akr@fsij.org>
+
+ * bignum.c (rb_big_hash): fix hash area.
+
+Thu Jun 28 15:00:06 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/stringio/stringio.c (strio_getline): local variable to be
+ initialized. [ruby-dev:31077]
+
+Thu Jun 28 11:30:39 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * gc.c (rb_obj_id): use SIGNED_VALUE instead of long.
+
+Thu Jun 28 05:01:56 2007 Koichi Sasada <ko1@atdot.net>
+
+ * common.mk (run.gdb): fix to load $(srcdir)/.gdbinit
+
+ * vm.c (rb_vm_set_finish_env): add a cast.
+
+ * vm.h: support __fastcall for MSVC.
+
+Thu Jun 28 02:12:08 2007 Koichi Sasada <ko1@atdot.net>
+
+ * bootstraptest/runner.rb: fix to untouch $:.
+
+Thu Jun 28 02:03:07 2007 Koichi Sasada <ko1@atdot.net>
+
+ * compile.c (setup_args): change parameter type.
+
+Thu Jun 28 02:03:39 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * parse.y (rb_intern2): unconstify cast.
+
+Thu Jun 28 01:44:31 2007 Tanaka Akira <akr@fsij.org>
+
+ * parse.y (rb_intern2): don't allocate a string object at first.
+ [ruby-dev:31064]
+
+Thu Jun 28 01:24:02 2007 Koichi Sasada <ko1@atdot.net>
+
+ * bootstraptest/runner.rb: fix to show file name.
+
+ * bootstraptest/test_*.rb: add bootstrap tests.
+
+Thu Jun 28 01:22:15 2007 Koichi Sasada <ko1@atdot.net>
+
+ * include/ruby/node.h, parse.y, gc.c, iseq.c: remove NODE_CREF.
+
+Thu Jun 28 01:19:43 2007 Koichi Sasada <ko1@atdot.net>
+
+ * compile.c (iseq_compile_each): fix popped backref and others.
+ ([ruby-dev:31068]).
+
+ * compile.c (iseq_compile_each): remove needless statements.
+
+Wed Jun 27 23:51:33 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/win32.c: remove unused functions.
+
+Wed Jun 27 20:46:05 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * include/ruby/win32.h, win32/Makefile.sub, win32/configure.bat,
+ win32/mkexports.rb, win32/setup.mak, win32/win32.c: import
+ x64-mswin64 port.
+
+Wed Jun 27 20:31:07 2007 Koichi Sasada <ko1@atdot.net>
+
+ * compile.c (iseq_translate_direct_threaded_code): fix prototype
+ function name.
+
+ * vm.h: add correct cast.
+
+Wed Jun 27 17:08:42 2007 Koichi Sasada <ko1@atdot.net>
+
+ * vm_evalbody.ci: support OPT_CALL_THREADED_CODE.
+
+ * insns.def, vm.c, vm.h: ditto.
+
+ * vm.h: add VM_CFP_CNT() and VM_SP_CNT().
+
+Wed Jun 27 04:23:47 2007 Koichi Sasada <ko1@atdot.net>
+
+ * compile.c (iseq_compile_each): fix type error.
+
+Wed Jun 27 03:26:15 2007 Koichi Sasada <ko1@atdot.net>
+
+ * compile.c (compile_massign), insns.def (expandarray): support
+ postarg with massign (a, *b, c = ...).
+
+ * bootstraptest/test_massign.rb: add tests for above.
+
+ * compile.h: fix debug macro names.
+
+Wed Jun 27 00:18:41 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (rb_str_clear): need to check STR_EMBED_P() before
+ free()ing memory. a patch from Yusuke ENDOH <mame AT tsg.ne.jp>.
+ [ruby-dev:31062]
+
+Tue Jun 26 16:39:01 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * process.c (proc_getgroups): use GIDT2NUM for rb_gid_t.
+
+Tue Jun 26 16:28:24 2007 Koichi Sasada <ko1@atdot.net>
+
+ * thread.c (rb_thread_wait_fd_rw): terminate fdset.
+
+Tue Jun 26 16:26:58 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * regint.h: IL32LLP64 support.
+
+Tue Jun 26 16:22:45 2007 Koichi Sasada <ko1@atdot.net>
+
+ * iseq.c (ruby_node_name): update node names.
+
+Tue Jun 26 15:21:20 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * include/ruby/ruby.h: IL32LLP64 support.
+
+ * bignum.c (bigfixize, rb_cstr_to_inum): ditto.
+
+ * insns.def (opt_plus, opt_minus, opt_mult): ditto.
+
+Tue Jun 26 15:04:06 2007 Koichi Sasada <ko1@atdot.net>
+
+ * cont.c (rb_fiber_s_new): revert initializing VM stack.
+
+ * yarvcore.c (th_init2): ditto.
+
+ * vm.c, vm.h: fix to stop using Qundef on VM stack. According to
+ this change, VM stack should not include Qundef value.
+
+ * insns.def (putundef): removed.
+
+ * compile.c (iseq_compile_each): ditto.
+
+ * eval.c (eval): fix spacing.
+
+Tue Jun 26 04:03:50 2007 Koichi Sasada <ko1@atdot.net>
+
+ * insnhelper.ci (vm_yield_with_cfunc), proc.c: fix Method#to_proc
+ to return lambda Proc ([ruby-dev:31021], [ruby-dev:31037]).
+
+Tue Jun 26 03:46:08 2007 Koichi Sasada <ko1@atdot.net>
+
+ * cont.c (rb_fiber_s_new): fix to clear rb_thread_t#tag.
+ [ruby-dev:30995]
+
+Tue Jun 26 03:38:31 2007 Koichi Sasada <ko1@atdot.net>
+
+ * cont.c (rb_fiber_s_new), yarvcore.c (th_init2): fix to clear
+ VM stack ([ruby-dev:31046]).
+
+Tue Jun 26 03:15:27 2007 Koichi Sasada <ko1@atdot.net>
+
+ * compile.c: rename setup_arg() to setup_args().
+ fix to use setup_args() at processing NODE_YIELD.
+
+Tue Jun 26 02:50:24 2007 Koichi Sasada <ko1@atdot.net>
+
+ * compile.c (setup_arg): support kind of "m(*ary, x)" method call.
+ ([ruby-dev:31048]).
+
+Tue Jun 26 00:28:44 2007 Koichi Sasada <ko1@atdot.net>
+
+ * insnhelper.ci, vm.c: complete block parameter support.
+ post arguments, optional arguments, block argument.
+
+ * compile.c, parse.y: fix {|a|} parameter.
+
+ * insnshelper.ci, insns.def: revert caller_setup_args() option
+ (need_block_check) parameter.
+
+Mon Jun 25 20:18:44 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * gc.c (RVALUE): in RVALUE and RBasic, flags must be the same type.
+
+Mon Jun 25 18:02:55 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * ext/pty/extconf.rb: skip wince and win64.
+
+Mon Jun 25 17:59:32 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * include/ruby/node.h (NODE_LMASK, nd_line): shouldn't use int and/or
+ long carelessly.
+
+Mon Jun 25 11:36:35 2007 Koichi Sasada <ko1@atdot.net>
+
+ * gc.h: add RUBY_ prefix to debug macros.
+
+ * cont.c, proc.c, yarvcore.c,
+
+ * gc.c: define ruby_gc_debug_indent variable to debug mark/free.
+
+ * vm.c, insnhelper.ci: rename some functions to vm_* or rb_vm_*.
+ move some functions, definitions, declarations to suitable files.
+
+ * eval.c, yarvcore.h, eval_error.ci, insnhelper.ci: ditto.
+
+Mon Jun 25 09:45:46 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval_error.ci, eval_jump.ci, eval_method.ci, eval_safe.ci: c-mode.
+
+Mon Jun 25 05:27:54 2007 Koichi Sasada <ko1@atdot.net>
+
+ * eval.c: remove ruby_current_node and change eval() prototype.
+ fix to use rb_sourcefile/line() instead of ruby_sourcefile/line.
+
+ * error.c, eval_error.ci, eval_load.c, eval_safe.ci, gc.c,
+ include/ruby/intern.h, parse.y, process.c, ruby.c: ditto.
+
+ * vm.c: fix spaces.
+
+Mon Jun 25 04:20:14 2007 Koichi Sasada <ko1@atdot.net>
+
+ * eval_*.h: rename to eval_*.ci.
+
+ * common.mk: ditto.
+
+ * eval_error.ci: remove ruby_set_current_source().
+
+ * error.c, eval.c, ruby.c: ditto.
+
+ * eval_safe.c, proc.c: remove unused macros.
+
+Mon Jun 25 03:37:20 2007 Koichi Sasada <ko1@atdot.net>
+
+ * insnhelper.ci (caller_setup_args): add need_block_check option.
+
+ * insns.def: ditto.
+
+ * yarvcore.h: add GetCoreDataFromValue().
+
+Mon Jun 25 02:14:30 2007 Koichi Sasada <ko1@atdot.net>
+
+ * call_cfunc.ci: removed.
+
+ * insnhelper.ci: added. this function includes all functions that
+ vm insns need.
+
+ * common.mk: ditto.
+
+ * insnhelper.h, vm.h, vm.c: move some declaration.
+
+ * gc.h: remove GC_CHECK() macro because GC.stress is more useful.
+
+ * compile.c, iseq.c, vm_dump: ditto.
+
+ * gc.h, thread.c: move a prototype declaration.
+
+ * debug.c, debug.h: rename some functions.
+
+ * compile.h: ditto.
+
+Mon Jun 25 00:45:02 2007 Koichi Sasada <ko1@atdot.net>
+
+ * insns.def (invokesuper): fix error message.
+
+Mon Jun 25 00:14:13 2007 Koichi Sasada <ko1@atdot.net>
+
+ * vm.c: some refactoring.
+ * rename th_* to vm_*.
+ * remove unused variables functions.
+ * add prototypes.
+
+ * blockinlining.c, compile.c, cont.c, eval.c, eval_intern.h,
+ eval_jump.h, eval_load.c, inits.c, insns.def, iseq.c, parse.y,
+ proc.c, process.c, signal.c, thread.c, vm.c, vm_dump.c,
+ vm_evalbody.ci, yarvcore.c, yarvcore.h: ditto.
+
+Sun Jun 24 22:32:00 2007 Koichi Sasada <ko1@atdot.net>
+
+ * eval_method.h (rb_add_method): fix to check 0.
+
+Sun Jun 24 22:00:17 2007 Koichi Sasada <ko1@atdot.net>
+
+ * insn_send.ci: removed.
+
+ * common.mk: ditto.
+
+ * vm.c (vm_call_bmethod), isnsn.def: added. fix to use this
+ function instead of using goto.
+
+ * vm.c (vm_call_bmethod): renamed from th_invoke_bmethod().
+
+ * vm.c (vm_method_missing): renamed from eval_method_missing().
+
+ * vm_evalbody.ci: remove tmp_* variables.
+
+ * insnhelper.h: add some macros.
+
+ * insns.def: forbid zsuper from method defined by define_method().
+
+ * test/ruby/test_super.rb: ditto.
+
+Sun Jun 24 20:01:08 2007 Koichi Sasada <ko1@atdot.net>
+
+ * vm_macro.def: removed.
+
+ * insn_send.ci: added. this file includes send instruction body.
+
+ * common.mk: ditto.
+
+ * insns.def: ditto.
+
+ * tool/insns2vm.rb: ditto.
+
+ * vm.c: ditto.
+
+Sun Jun 24 19:30:37 2007 Koichi Sasada <ko1@atdot.net>
+
+ * insnhelper.h (RESTORE_REGS): add do/while(0) around macro.
+
+ * vm.c, vm_macro.def: remove macro_eval_invoke_func() and
+ add vm_setup_method(). use it instead.
+
+Sun Jun 24 19:02:33 2007 Koichi Sasada <ko1@atdot.net>
+
+ * vm.c, vm_macro.def : remove macro_eval_invoke_cfunc() and
+ add vm_call_cfunc().
+
+Sun Jun 24 17:54:13 2007 Koichi Sasada <ko1@atdot.net>
+
+ * insns.def, vm.c: add/fix stack overflow check.
+
+Sun Jun 24 17:28:52 2007 Koichi Sasada <ko1@atdot.net>
+
+ * insnhelper.h: change CHECK_STACK_OVERFLOW() to throw exception.
+
+ * vm.c (caller_setup_arg), vm_macro.def: remove
+ macro_eval_setup_send_arguments and add caller_setup_arg().
+
+ * insns.def: ditto.
+
+ * bootstraptest/test_method.rb: add splat arg tests.
+
+Sun Jun 24 16:35:46 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * proc.c (proc_to_s): used a variable before initialized.
+
+Sun Jun 24 16:05:45 2007 Koichi Sasada <ko1@atdot.net>
+
+ * vm.c (callee_setup_arg): added. support correct post arg.
+
+ * vm_macro.def (macro_eval_invoke_func): fix to use
+ callee_setup_arg.
+
+ * compile.c (set_arguments): adjust for above changes.
+
+ * compile.c (iseq_compile_each): ditto.
+
+ * iseq.c (ruby_iseq_disasm): ditto.
+
+ * yarvcore.h: add rb_iseq_t#post_arg_start and arg_size.
+
+ * bootstraptest/test_method.rb: add post arg tests.
+
+Sun Jun 24 16:10:43 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * proc.c (proc_to_s): suppress warning, and reduced duplicated code.
+
+Sun Jun 24 15:33:47 2007 Koichi Sasada <ko1@atdot.net>
+
+ * bootstraptest/runner.rb: set default directory to
+ '/tmp/bootstraptest.tmpwd' and add --dir option.
+ fix to output driver and target information.
+
+ * common.mk: fix to run btest on BASERUBY and
+ add OPTS to pass option ("make btest OPTS=...").
+
+Sun Jun 24 03:05:00 2007 Tanaka Akira <akr@fsij.org>
+
+ * enum.c (enum_minmax): fix SEGV by [].minmax.
+
+Sat Jun 23 17:18:19 2007 Tanaka Akira <akr@fsij.org>
+
+ * re.c (match_inspect): MatchData#inspect implemented.
+
+Sat Jun 23 15:00:16 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * enum.c (enum_minmax): new method to get the minimum and maximum
+ values from the enumerable at once.
+
+ * enum.c (enum_minmax_by): ditto.
+
+Sat Jun 23 01:25:40 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * hash.c (rb_hash_assoc): new method.
+
+ * hash.c (rb_hash_rassoc): ditto.
+
+ * hash.c (rb_hash_flatten): ditto.
+
+Fri Jun 22 23:55:59 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (rb_str_upto): add optional argument to specify
+ exclusiveness.
+
+ * range.c (range_step): use String#upto with optional argument.
+
+ * range.c (range_each): ditto.
+
+Fri Jun 22 19:55:51 2007 Tanaka Akira <akr@fsij.org>
+
+ * proc.c (proc_to_s): revert the change from %p to %lx at YARV
+ merge time.
+
+Fri Jun 22 19:33:49 2007 Tanaka Akira <akr@fsij.org>
+
+ * proc.c (proc_to_s): show is_lambda.
+
+Thu Jun 21 20:36:12 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * hash.c (rb_hash_sort): remove hash specific implementation.
+
+Thu Jun 21 20:28:05 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * hash.c (rb_hash_select): returns new hash, not assoc array.
+ [ruby-core:11504]
+
+ * hash.c (env_select): ditto.
+
+Thu Jun 21 23:08:19 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * parse.y (rb_intern2): ID_JUNK test based on len, not by NUL.
+
+Thu Jun 21 19:42:07 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * yarvcore.c (rb_thread_mark): mark also thrown_errinfo.
+
+Thu Jun 21 17:13:44 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (rb_intern2): name may not be NUL-terminated.
+
+Wed Jun 20 08:27:57 2007 Tanaka Akira <akr@fsij.org>
+
+ * eval_error.h (error_print): show full stacktrace on
+ non-SystemStackError.
+
+Wed Jun 20 04:45:39 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (rb_intern2): use rb_intern2 to intern without trailing
+ equal sign.
+
+ * parse.y (rb_intern2, ripper_id2sym): fixed indent.
+
+Tue Jun 19 10:55:05 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval_load.c (load_ext, rb_require_safe): pass VALUE instead of
+ pointer. [ruby-Bugs-11659]
+
+Mon Jun 18 08:47:54 2007 Technorama Ltd. <oss-ruby@technorama.net>
+
+ * ext/openssl/{extconf.rb,ossl_ssl_session.c}:
+ Fix ruby-Bugs-11513.
+
+ * ext/openssl/ossl_pkey_ec.c
+ New methods EC::Point.[eql,make_affine!,invert!,on_curve?,infinity?]
+ By default output the same key form as the openssl command.
+
+ * ext/openssl/ossl_rand.c
+ New method Random.status?
+
+ * test/openssl/test_ec.rb
+ New tests.
+
+Mon Jun 18 17:04:07 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval_load.c (rb_require_safe, ruby_init_ext): load with ruby level
+ cfp. [ruby-core:10779]
+
+ * eval_intern.h, vm.c (rb_vm_call_cfunc): new function to call a
+ function with ruby level cfp.
+
+Mon Jun 18 16:57:24 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (yycompile): disable trace while creating ruby_debug_lines.
+ [ruby-talk:253586]
+
+ * thread.c (ruby_suppress_tracing): new function to call a function
+ with suppressing trace.
+
+ * lib/debug.rb, lib/tracer.rb: for YARV.
+
+Mon Jun 18 13:54:36 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (ruby_cleanup): return EXIT_FAILURE if any exceptions occurred
+ in at_exit blocks. [ruby-core:11263]
+
+Mon Jun 18 02:49:16 2007 Koichi Sasada <ko1@atdot.net>
+
+ * vm.c (env_mark): fix to mark block.proc.
+
+ * vm.c (th_make_proc_from_block): set created proc to block->proc.
+
+Mon Jun 18 02:48:12 2007 Koichi Sasada <ko1@atdot.net>
+
+ * vm_dump.c (vm_stack_dump_raw): hide VM stack trace.
+
+Mon Jun 18 02:43:53 2007 Koichi Sasada <ko1@atdot.net>
+
+ * signal.c (sigsegv): clear gc_stress flag on SEGV.
+
+Mon Jun 18 01:14:10 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * variable.c (rb_path2class): get rid of dangling pointer caused by
+ optimized out value.
+
+ * variable.c (rb_global_entry, rb_f_untrace_var, rb_alias_variable,
+ rb_generic_ivar_table, generic_ivar_get, generic_ivar_set,
+ generic_ivar_defined, generic_ivar_remove, rb_mark_generic_ivar,
+ rb_free_generic_ivar, rb_copy_generic_ivar,
+ rb_obj_instance_variables): suppress warnings.
+
+Sun Jun 17 11:11:07 2007 Tanaka Akira <akr@fsij.org>
+
+ * eval.c (rb_method_missing): avoid a warning "too many arguments
+ for format string" on "./ruby -ve 'def m() super end; m'".
+
+Sat Jun 16 22:24:17 2007 Tanaka Akira <akr@fsij.org>
+
+ * gc.c (garbage_collect): re-introduce ruby_current_node marking code.
+ [ruby-dev:31005]
+
+Sat Jun 16 21:37:43 2007 Tanaka Akira <akr@fsij.org>
+
+ * gc.c (gc_sweep): re-introduce heap extension strategy change.
+ [ruby-dev:31005]
+
+Fri Jun 15 22:59:37 2007 Tanaka Akira <akr@fsij.org>
+
+ * .gdbinit: new file to ease debugging using gdb.
+
+Fri Jun 15 22:33:55 2007 Tanaka Akira <akr@fsij.org>
+
+ * signal.c (default_handler): func argument removed.
+ (trap_handler): support SYSTEM_DEFAULT. call default_handler
+ internally.
+ (sig_trap): don't call default_handler.
+ [ruby-dev:30999]
+
+Fri Jun 15 22:33:29 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * common.mk (realclean): separate local and ext.
+
+ * ext/extmk.rb: not remove unrelated directories.
+
+Fri Jun 15 20:50:02 2007 Tanaka Akira <akr@fsij.org>
+
+ * keywords: enclose C code in declaration section by %{ and %} to
+ avoid extra semicolon after #ifdef RIPPER.
+ pointed by eban.
+
+Fri Jun 15 18:56:52 2007 Tanaka Akira <akr@fsij.org>
+
+ * signal.c (trap_handler): trap("SIGSEGV", "DEFAULT") may cause wrong
+ trap error because SIG_DFL may be zero.
+
+Fri Jun 15 15:55:55 2007 Koichi Sasada <ko1@atdot.net>
+
+ * insns.def (setconstant, toregexp): fix to mark object correctly.
+
+Fri Jun 15 13:24:18 2007 Koichi Sasada <ko1@atdot.net>
+
+ * hash.c: exchange semantics of Hash#each and Hash#each_pair.
+ pointed out by [ruby-dev:30997].
+
+ * test/ruby/test_iterator.rb: ditto.
+
+ * test/ruby/test_yield.rb: ditto.
+
+Fri Jun 15 12:38:29 2007 Koichi Sasada <ko1@atdot.net>
+
+ * test/ruby/test_iterator.rb: remove debug code (GC.stress=true).
+
+Fri Jun 15 12:25:33 2007 Koichi Sasada <ko1@atdot.net>
+
+ * vm.c (th_yield_setup_args): |v| should work as |v,|.
+ ex) def m;yield 1, 2; end; m{|v| p v} #=> 1
+
+ * parse.y: apply above change for "for" statement.
+
+ * test/ruby/test_assignment.rb: ditto
+
+ * test/ruby/test_basicinstructions.rb: ditto.
+
+ * test/ruby/test_iterator.rb: ditto.
+
+ * test/ruby/test_yield.rb: ditto.
+
+ * compile.c (iseq_compile_each): fix debug.
+
+Fri Jun 15 12:22:10 2007 Koichi Sasada <ko1@atdot.net>
+
+ * eval.c (ruby_finalize_1): rb_thread_t#errinfo should be clear with
+ Qnil.
+
+Fri Jun 15 12:20:11 2007 Koichi Sasada <ko1@atdot.net>
+
+ * cont.c (rb_cont_call): forbid cross fiber continuation call.
+
+ * test/ruby/test_fiber.rb: ditto.
+
+Fri Jun 15 12:14:07 2007 Koichi Sasada <ko1@atdot.net>
+
+ * sample/test.rb: fix to show line information whether test succeeds.
+
+Thu Jun 14 17:16:05 2007 Tanaka Akira <akr@fsij.org>
+
+ * eval_load.c (Init_load): delay allocating an array for rb_load_path
+ to avoid GC problem in very early stage.
+ (RUBY_GC_STRESS causes GC in such stage.)
+
+ * variable.c (rb_gc_mark_global_tbl): rb_global_tbl may be 0 in
+ very early stage.
+
+ * thread.c (thread_cleanup_func) [IA64]: clear register stack position.
+ (thread_start_func_2) [IA64]: record the beginning of register
+ stack using extra argument.
+ (rb_gc_save_machine_context) [IA64]: record the end of register
+ stack.
+
+ * gc.c [IA64] (SET_STACK_END): record the end of register stack.
+ (garbage_collect) [IA64]: use recorded register stack area for
+ GC marking.
+ (yarv_machine_stack_mark) [IA64]: GC mark from the register stack
+ area.
+
+ * yarvcore.c [IA64] (rb_gc_register_stack_start): defined.
+ (Init_VM): store th->self on stack to fix GC problem.
+ (Init_yarv) [IA64]: initialize the beginning of register stack.
+
+ * yarvcore.h (struct rb_thread_struct) [IA64]: new members for
+ register stack area.
+
+ * thread_pthread.ci (thread_start_func_1) [IA64]: call
+ thread_start_func_2 with the end of register stack.
+
+ * cont.c (struct rb_context_struct) [IA64]: new members for register
+ stack area.
+ (cont_mark) [IA64]: GC mark from register stack area.
+ (cont_free) [IA64]: free saved register stack.
+ (cont_save_machine_stack) [IA64]: record the position and contents
+ of the register stack.
+ (cont_capture): store cont->self on stack to fix GC problem.
+ (cont_restore_1) [IA64]: restore the register stack.
+ [IA64] (register_stack_extend): new function.
+ (cont_restore_0) [IA64]: call register_stack_extend instead of
+ cont_restore_1.
+
+ [ruby-dev:30982]
+
+Thu Jun 14 17:09:48 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/rdoc/parsers/parse_c.rb (RDoc::C_Parser): handle more
+ extensions. [ruby-dev:30972]
+
+Thu Jun 14 14:40:42 2007 Tanaka Akira <akr@fsij.org>
+
+ * lib/securerandom.rb: document updated.
+ suggested by NaHi. [ruby-dev:30966]
+
+Wed Jun 13 22:42:06 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * gc.c (garbage_collect): update IA64 register stack code.
+ [ruby-dev:30971]
+
+Wed Jun 13 06:05:12 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (darwin): prohibit loading extension libraries to
+ miniruby.
+
+Tue Jun 12 21:50:51 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * parse.y (call_args): no allow splat after assocs. takes
+ consistency over compatibility.
+
+ * parse.y (call_args2): ditto
+
+Tue Jun 12 14:53:51 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/mkmf.rb (Logging.quiet, Logging.message): added quiet flag and
+ use it. [ruby-core:10909]
+
+ * lib/mkmf.rb (find_header): use header names in the message.
+
+Sun Jun 10 18:37:13 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/probeprofiler/probeprofiler.c: clean warnings.
+
+Sun Jun 10 18:32:24 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * missing/isinf.c, missing/dup2.c, missing/strtod.c, missing/x68.c,
+ missing/alloca.c: use "ruby/config.h".
+
+Sun Jun 10 17:49:20 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * instruby.rb (install_recursive): should check parent directories of
+ the destination. [ruby-dev:30947]
+
+Sun Jun 10 16:59:39 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (do_block, brace_block): fix line numbers. [ruby-dev:30831]
+
+Sun Jun 10 16:57:20 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * instruby.rb (install_recursive): add :glob option rather than
+ using FNM_DOTMACH.
+
+ * instruby.rb (ext-comm): make header directory first.
+
+Sun Jun 10 16:10:58 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * test/ruby/test_beginendblock.rb: typo.
+
+Sun Jun 10 16:07:10 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * instruby.rb (install_recursive): skip .svn directories.
+
+Sun Jun 10 15:44:43 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * win32/Makefile.sub (config.status): rubyhdrdir was missing.
+
+Sun Jun 10 15:26:36 2007 Tanaka Akira <akr@fsij.org>
+
+ * Makefile.in: use --output-file for gperf to not leave lex.c.tmp.
+
+Sun Jun 10 15:11:07 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * Makefile.in, win32/Makefile.sub (XCFLAGS): -I. is needed for *.inc.
+
+ * ext/extmk.rb: prepend also topdir to mflags at last.
+
+Sun Jun 10 13:47:36 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * test/ruby/test_beginendblock.rb (test_should_propagate_signaled):
+ get rid of invoking shell. [ruby-dev:30942]
+
+Sun Jun 10 12:56:46 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * include/ruby: moved public headers.
+
+ * instruby.rb (install_recursive): skip backup files.
+
+ * instruby.rb (ext-comm): install only current platform headers.
+
+Sun Jun 10 10:42:04 2007 Tanaka Akira <akr@fsij.org>
+
+ * lib/securerandom.rb: renamed from lib/secrand.rb.
+ suggested by NaHi. [ruby-dev:30934]
+
+Sat Jun 9 06:40:05 2007 Tanaka Akira <akr@fsij.org>
+
+ * lib/secrand.rb: rename SecRand() to SecRand.random_number.
+ suggested by NaHi. [ruby-dev:30934]
+
+Fri Jun 8 16:34:20 2007 Tanaka Akira <akr@fsij.org>
+
+ * ext/zlib/zlib.c (gzfile_s_open): use FilePathValue to support
+ to_path.
+
+Fri Jun 8 16:11:00 2007 Koichi Sasada <ko1@atdot.net>
+
+ * eval_jump.h: th->errinfo should clear with nil.
+
+Fri Jun 8 14:53:28 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * parse.y (call_args): allow splat argument after unpacked
+ assocs like 1.8 does.
+
+ * parse.y (call_args): ditto.
+
+Fri Jun 8 14:26:18 2007 Tanaka Akira <akr@fsij.org>
+
+ * lib/secrand.rb: new file for secure random interface.
+
+ * lib/cgi/session.rb: use secrand for generating cookies.
+
+Fri Jun 8 12:44:37 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * {win32,wince}/Makefile.sub: add lex.c rule.
+
+Fri Jun 8 11:54:18 2007 Tanaka Akira <akr@fsij.org>
+
+ * lex.c.blt: moved from lex.c.
+
+ * Makefile.in: use lex.c.blt if gperf is not available.
+ [ruby-list:8212], [ruby-list:8214], [ruby-list:24667],
+ [ruby-talk:120857], [ruby-dev:28102]
+
+Thu Jun 7 21:38:39 2007 Koichi Sasada <ko1@atdot.net>
+
+ * thread.c (rb_thread_execute_interrupts): invoke ensure when
+ main thread exits.
+
+Thu Jun 7 19:02:48 2007 Tanaka Akira <akr@fsij.org>
+
+ * lib/pp.rb: call original "method" method instead of redefined one.
+
+Thu Jun 7 17:20:57 2007 Koichi Sasada <ko1@atdot.net>
+
+ * iseq.c (prepare_iseq_build): freeze filename and name string.
+
+ * variable.c: freeze class name string.
+
+Thu Jun 7 12:48:33 2007 Koichi Sasada <ko1@atdot.net>
+
+ * cont.c (cont_restore_1): fix to check root fiber [ruby-dev:30911].
+
+ * test/ruby/test_fiber.rb: add a test.
+
+Thu Jun 7 07:24:36 2007 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * lib/json/common.rb: Ponder offering parse! method.
+
+ * lib/json/editor.rb: be a bit more robust while loading data.
+
+ * ext/json/ext/{generator,parser}/extconf.rb:
+ add a have_header directive for st.h
+
+ * test/json: fix some tests.
+
+Thu Jun 7 03:29:18 2007 Koichi Sasada <ko1@atdot.net>
+
+ * test_fiber.rb: add a test (Continuation and Fiber).
+
+Thu Jun 7 03:17:24 2007 Koichi Sasada <ko1@atdot.net>
+
+ * cont.c (cont_new): add debug message.
+
+ * cont.c (cont_restore_1): copy stack information from fiber.
+
+ * cont.c (rb_fiber_s_new): fix to mark created fiber.
+
+ * test/ruby/test_fiber.rb: add some tests around Thread and Fiber.
+
+ * yarvcore.c (thread_free): fix to skip freeing stack if root fiber
+ is available.
+
+Thu Jun 7 01:03:20 2007 Koichi Sasada <ko1@atdot.net>
+
+ * eval_intern.h, eval.c (ruby_init): remove POP_TAG_INIT().
+
+ * cont.c (rb_fiber_start): remove zero-clearing tag.
+
+Wed Jun 6 20:23:46 2007 Koichi Sasada <ko1@atdot.net>
+
+ * insns.def (invokeblock): fix of splat argument.
+ (splat same as normal method dispatch)
+
+Wed Jun 6 16:27:25 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * insns.def: fixed indentation.
+
+Wed Jun 6 10:58:23 2007 Koichi Sasada <ko1@atdot.net>
+
+ * eval.c (rb_yield): fix to check Qundef.
+
+Wed Jun 6 10:57:45 2007 Koichi Sasada <ko1@atdot.net>
+
+ * test/ruby/test_continuation.rb: add a test for last commit.
+
+Wed Jun 6 10:55:42 2007 Koichi Sasada <ko1@atdot.net>
+
+ * cont.c (rb_cont_call): forbid calling dead fiber with
+ Continuation#call.
+
+Wed Jun 6 10:50:01 2007 Koichi Sasada <ko1@atdot.net>
+
+ * compile.c (iseq_compile_each): fix around yield arguments
+ (with NODE_ARGSCAT).
+
+Wed Jun 6 02:50:53 2007 Koichi Sasada <ko1@atdot.net>
+
+ * cont.c (rb_fiber_start): clear th->tag and check error to fix
+ [ruby-dev:30888] and [ruby-dev:30889].
+
+ * eval_intern.h: fix rb_fiber_start() prototype.
+
+ * test/ruby/test_fiber.rb: add tests for above.
+
+Wed Jun 6 02:40:20 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * insnhelper.h, insns.def (DEC_SP): shouldn't use unary minus operator
+ in pointer operation. some compilers (such as VC++8 x64) cannot deal
+ it with expected way.
+
+Wed Jun 6 02:19:48 2007 Koichi Sasada <ko1@atdot.net>
+
+ * parse.y (new_yield), compile.c (iseq_compile_each): fix
+ passing parameter.
+
+ * eval.c, eval_jump.h: simplify rb_yield*.
+
+ * proc.c (proc_mark): fix to mark proc->block.proc.
+
+ * proc.c (Init_Proc): add Proc#lambda?
+
+ * test/ruby/test_lambda.rb: add some tests.
+
+ * vm.c (invoke_block): fix to check lambda block or not.
+
+ * vm.c (th_yield_setup_args): fix to check arguments size
+ when lambda block.
+
+Tue Jun 5 16:30:38 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * io.c (rb_f_p): returns arguments to intervene. [ruby-dev:29736]
+
+Tue Jun 5 14:07:55 2007 Koichi Sasada <ko1@atdot.net>
+
+ * insns.def (invokeblock): check block is created by lambda
+ or Proc.new.
+
+ * vm.c (block_proc_is_lambda): added.
+
+Tue Jun 5 14:47:52 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/pp.rb (PP::PPMethods::seplist): revert last change to work
+ around wrapper bug. [ruby-dev:30840]
+
+Tue Jun 5 14:11:15 2007 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * ext/nkf/nkf-utf8/nkf.c (kanji_convert): Fix guess fallback.
+
+Tue Jun 5 13:32:04 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * compile.c, dir.c, eval.c, eval_jump.h, eval_method.h, numeric.c,
+ pack.c, parse.y, re.c, thread.c, vm.c, vm_dump.c, call_cfunc.ci,
+ thread_pthread.ci, thread_win32.ci: fixed indentation.
+
+ * call_cfunc.ci: protoized.
+
+ * thread_win32.ci: fixed typo.
+
+Tue Jun 5 13:17:11 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * call_cfunc.ci, compile.c, dir.c, eval.c, eval_jump.h, numeric.c,
+ pack.c, re.c, thread.c, thread_win32.ci, vm.c, vm_dump.c: fixed
+ indentation.
+
+Mon Jun 4 21:15:45 2007 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * lib/json.rb, lib/json, ext/json, test/json:
+ import JSON library.
+
+ * ext/nkf: import nkf.c rev:1.124
+ Support CP10001.
+
+Mon Jun 4 20:52:58 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * numeric.c (int_round): should not just truncate.
+
+Sat Jun 2 16:48:55 2007 Koichi Sasada <ko1@atdot.net>
+
+ * cont.c (Fiber#pass): rename to Fiber#yield. Block parameter
+ of fiber body receive first yield values.
+ e.g.: Fiber.new{|x| p x}.yield(:ok) #=> :ok
+
+ * cont.c: rename rb_context_t#retval to rb_context_t#value.
+
+ * test/ruby/test_fiber.rb: ditto.
+
+Sat Jun 2 16:45:21 2007 Koichi Sasada <ko1@atdot.net>
+
+ * proc.c (Init_Proc): remove a line break.
+
+Sat Jun 2 01:27:27 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * numeric.c (int_round): small optimization to handle bignums.
+
+Fri Jun 1 13:02:35 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * insnhelper.h (INC_SP): shouldn't cast ``x'' to unsigned type because
+ it might be a negative value.
+
+ * insnhelper.h, insns.def: shouldn't use unary minus operator in index
+ operator. some compilers (such as VC++8 x64) cannot deal it with
+ expected way.
+
+Fri Jun 1 11:33:40 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * numeric.c (num_round): should convert self to Float.
+ [ruby-dev:30860]
+
+Fri Jun 1 02:01:13 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * numeric.c (flo_round): now takes optional argument to specify
+ number of digits, like round() in Python/PHP.
+
+ * numeric.c (num_round): ditto.
+
+Fri Jun 1 01:58:33 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * enum.c (each_with_index_i): should work well with continuation.
+ a patch from sheepman <sheepman AT sheepman.sakura.ne.jp>.
+ [ruby-dev:30846]
+
+Thu May 31 17:27:53 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/benchmark.rb (Benchmark::Job::item): avoid modifying the
+ argument unintentionally. [ruby-talk:253676]
+
+Wed May 30 14:43:00 2007 Koichi Sasada <ko1@atdot.net>
+
+ * cont.c (cont_capture): store all local variables in heap
+ ([ruby-dev:30832]).
+
+ * vm.c (th_stack_to_heap): added.
+
+ * test/ruby/test_continuation.rb: add a test for above.
+
+ * eval_intern.h (th_get_ruby_level_cfp): fix to clean code.
+
+Wed May 30 13:32:34 2007 Shugo Maeda <shugo@ruby-lang.org>
+
+ * lib/net/imap.rb (ResponseParser#next_token): fixed
+ error message.
+
+ * lib/net/imap.rb (ResponseParser#parse_error): fixed
+ the condition not to refer to @token.symbol unexpectedly.
+ Thanks, Dick Monahan.
+
+Wed May 30 13:24:33 2007 Shugo Maeda <shugo@ruby-lang.org>
+
+ * lib/net/ftp.rb (Net::FTP#transfercmd): skip 2XX
+ responses for some FTP servers.
+
+Wed May 30 04:18:37 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (rb_eval_cmd): just return if no exceptions.
+ [ruby-dev:30820]
+
+Wed May 30 02:14:25 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * signal.c (interrupt_init): needs to pass nil for Interrupt.
+ [ruby-core:11038]
+
+ * signal.c (trap): fixed segfaults. [ruby-dev:30830]
+
+Wed May 30 00:50:48 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * gc.c (rb_source_filename, obj_free): suppress warnings.
+
+ * gc.c (garbage_collect, yarv_machine_stack_mark): fixed typo.
+ http://bugs.debian.org/426267
+
+Wed May 30 00:24:09 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (open_args, arg_ambiguous, parser_warning): should not use
+ rb_warning in the parser.
+
+Tue May 29 12:31:33 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * win32/win32.c (rb_w32_opendir): removed duplicated code.
+
+Tue May 29 10:55:24 2007 Koichi Sasada <ko1@atdot.net>
+
+ * cont.c: fix bug around Continuation and Fiber.
+
+ * test/ruby/test_continuation.rb: add tests for Continuation.
+
+Tue May 29 10:54:34 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * win32/win32.c (rb_w32_opendir, rb_w32_readdir): eliminate magic
+ numbers.
+
+Mon May 28 10:27:14 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * cont.c: fixed a function name.
+
+Mon May 28 03:56:44 2007 Koichi Sasada <ko1@atdot.net>
+
+ * cont.c: support Fiber. Check test/ruby/test_fiber.rb for detail.
+ Fiber is known as "Micro Thread", "Coroutine", and other terms.
+ At this time, only Fiber#pass is supported to change context.
+ I want to know more suitable method name/API for Fiber (... do you
+ know more suitable class name instead of Fiber?) as "suspend/resume",
+ "call", "yield", "start/kick/stop/restart", ....
+
+ * eval.c, eval_intern.h, thread.c, yarvcore.c, yarvcore.h: ditto.
+
+Sat May 26 00:38:21 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (ruby_exec_internal): do nothing if no code.
+
+ * compile.c (rb_iseq_compile): check node if NULL before check
+ nd_type. [ruby-talk:252956]
+
+Sat May 26 00:05:22 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * test/ruby/test_beginendblock.rb (test_should_propagate_signaled):
+ skip tests for exitstatus and termsig on the platforms where
+ signals not supported.
+
+Fri May 25 16:04:47 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * yarvcore.c (Init_VM): wrap already initialized structs to use
+ it directly.
+
+Fri May 25 11:09:47 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * regint.h (include): on some platform, defines.h redefines
+ SIZE_OF_LONG_LONG so shouldn't re-include config.h after included
+ defines.h.
+
+ * regint.h (vsnprintf): ruby on windows already have vsnprintf macro.
+
+Thu May 24 12:07:27 2007 Koichi Sasada <ko1@atdot.net>
+
+ * cont.c: check across trap violation.
+
+ * eval.c, yarvcore.h: ditto.
+
+Thu May 24 11:46:55 2007 Koichi Sasada <ko1@atdot.net>
+
+ * gc.c, yarvcore.c: fix to mark VM structure on startup.
+
+ * yarvcore.h: disable USE_CACHED_VALUE.
+
+Thu May 24 01:54:53 2007 Koichi Sasada <ko1@atdot.net>
+
+ * cont.c: support callcc which everyone love.
+ incomplete. please give me bug reports.
+
+ * common.mk, inits.c, thread.c: ditto.
+
+ * yarvcore.c: export thread_mark().
+
+ * yarvcore.h: disable value cache option.
+
+ * eval_intern.h: set th_get_ruby_level_cfp to inline.
+
+Wed May 23 15:39:02 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * common.mk: add a rule for regsyntax.c.
+
+Wed May 23 10:31:53 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * oniguruma.h: updated to Oniguruma 5.7.0.
+
+ * regsyntax.c, unicode.c: new files along with Oniguruma 5.x.
+
+Wed May 23 06:51:46 2007 URABE Shyouhei <shyouhei@ruby-lang.org>
+
+ * lib/cgi.rb (CGI#[]): get rid of exceptions being raised.
+ [ruby-dev:30740], Thanks Kentaro KAWAMOTO.
+
+Wed May 23 05:49:49 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/extmk.rb, ext/purelib.rb, lib/mkmf.rb, runruby.rb: clear default
+ load path to get rid of load pre-installed extensions/libraries.
+ [ruby-core:11017]
+
+Tue May 22 16:37:36 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ruby.c (set_arg0): support RSTRING_LEN on HP-UX. a patch from
+ WATANABE Tetsuya <Tetsuya.WATANABE AT nifty.com>. [ruby-dev:30806]
+
+Mon May 21 13:40:00 2007 Koichi Sasada <ko1@atdot.net>
+
+ * compile.c, vm_macro.def: support tail call optimization
+ (on default, this feature is not enabled).
+
+ * iseq.c, compile.c, vm_opts.h: add "tailcall_optimization"
+ option.
+
+ * sample/test.rb (test_ok): fix to adjust tailcall stack layout.
+
+ * insns.def, vm.c, compile.c, yarvcore.c, yarvcore.h:
+ add opt_gt, opt_le instructions.
+
+Mon May 21 03:34:06 2007 Minero Aoki <aamine@loveruby.net>
+
+ * lib/net/smtp.rb: CRAM-MD5 authentication did not work.
+ [ruby-dev:30770]
+
+Sat May 19 10:26:01 2007 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * lib/date/format.rb (Date._parse): detects some OFX dates
+ (Of course not fully).
+
+Sat May 19 03:08:05 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * enum.c (enum_inject): minor improvement. [ruby-dev:30792]
+
+ * enum.c (one_i): no needs to iterate once the result became false.
+
+ * enum.c (enum_one): fix for an example.
+
+ * enum.c (one_iter_i, none_iter_i): DRY.;
+
+Sat May 19 01:07:42 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * enum.c (enum_inject): it is now can work without block. you
+ have to specify two argument method name as the first argument.
+
+ * enum.c (Init_Enumerable): reduce is new alias to inject.
+
+Sat May 19 01:05:33 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * file.c (Init_File): method definition mismatch.
+
+Fri May 18 16:44:04 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * file.c (Init_File): add to_path method to File objects.
+
+Fri May 18 11:12:39 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ruby.c (DllMain, ruby_init_loadpath): use DLL instance handle given
+ to DllMain instead of VirtualQuery so that loadpath becomes relative
+ from the DLL on WinCE too.
+
+Thu May 17 17:03:11 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * misc/ruby-style.el (ruby-style-label-indent): for yacc rules.
+
+Thu May 17 13:30:27 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * parse.y (f_arg): remove typo from ripper description.
+
+Thu May 17 13:23:38 2007 Koichi Sasada <ko1@atdot.net>
+
+ * parse.y, compile.c (set_arguments): fix to support in-paren
+ parameter (ex: def foo((a, b))).
+
+Thu May 17 13:01:52 2007 Koichi Sasada <ko1@atdot.net>
+
+ * iseq.c (ruby_iseq_disasm): fix to show post arg info.
+
+Thu May 17 12:56:52 2007 Koichi Sasada <ko1@atdot.net>
+
+ * debug.c (ruby_debug_node): fix to show node line.
+
+Wed May 16 21:48:44 2007 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * lib/logger.rb (Logger::Application): remove meaningless logdev
+ attribute and added logger attribute instead. [ruby-core:11143]
+ also added Logger#formatter rdoc comment.
+
+Tue May 15 16:40:07 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * test/ruby/test_beginendblock.rb (test_endblockwarn): now parser
+ warnings emit source names and line numbers.
+
+Tue May 15 15:01:38 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/win32.c (init_stdhandle): stderr should be without buffering,
+ but mswin32 use buffering when stderr is not connected to tty.
+
+Mon May 14 02:12:07 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * array.c (rb_ary_zip): a.zip(b,c) should return an array, not
+ enumerator.
+
+ * array.c (rb_ary_zip): a.zip(b,c) should return array with size
+ truncated to the size of its shortest argument array.
+ [incompatible]
+
+Mon May 14 01:54:15 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * array.c (rb_ary_choice): should return nil when the array is
+ empty.
+
+Sat May 12 18:26:36 2007 Minero Aoki <aamine@loveruby.net>
+
+ * lib/net/http.rb (tokens): forgot to add strip. [ruby-core:11120]
+
+ * test/net/http/test_http.rb: test Net::HTTP.post_form.
+
+Fri May 11 15:27:09 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * iseq.c (iseq_data_to_ary): internal IDs must not be exposed.
+ [ruby-core:11073]
+
+ * parse.y (internal_id_gen): now returns scope local ID instead of
+ global one.
+
+Thu May 10 15:15:53 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * test/ruby/test_super.rb: add tests.
+
+Thu May 10 15:14:05 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * ext/iconv/iconv.c (iconv_s_conv): rdoc fix.
+
+Thu May 10 15:09:23 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (POINTER_P): pointer may be larger than long.
+
+ * parse.y (vtable_size, vtable_included, vtable_tblcpy,
+ vtable_to_tbl): constified.
+
+Thu May 10 10:13:14 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * thread.c (rb_thread_priority): rdoc fix; the initial value is
+ inherited from the creating thread. [ruby-core:10607]
+
+Wed May 9 12:28:57 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * bignum.c (Init_Bignum), numeric.c (Init_Numeric): added fdiv as
+ aliases of quo. [ruby-dev:30771]
+
+Tue May 8 23:39:09 2007 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * lib/date/format.rb (Date._parse): revised treatment of
+ hyphened/separatorless dates.
+
+ * lib/date/format.rb: some trivial adjustments.
+
+Tue May 8 20:23:07 2007 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * lib/date/format.rb: reverted.
+
+Tue May 8 19:32:18 2007 Keiju Ishitsuka <keiju@ruby-lang.org>
+
+ * lib/rational.rb: fix high-precision Rationals cannot be
+ converted to Floats. [ruby-Bugs:10502], [ruby-core:11069],
+ [ruby-dev:30743]
+
+Mon May 7 10:59:55 2007 Kouhei Sutou <kou@cozmixng.org>
+
+ * lib/rss/image.rb, test/rss/test_image.rb: fixed Image module
+ namespace URI. reported by Dmitry Borodaenko. Thanks.
+
+Sun May 6 18:44:11 2007 Minero Aoki <aamine@loveruby.net>
+
+ * lib/net/http.rb (Net::HTTP.post_form): allow an Array of String
+ for pairs argument. [ruby-Bugs:10340]
+
+ * lib/net/http.rb (Net::HTTP#set_form_data): ditto.
+
+Sun May 6 17:54:36 2007 Minero Aoki <aamine@loveruby.net>
+
+ * lib/net/http.rb: Connection header field might include both of
+ "keep-alive" token and "close" token. [ruby-core:10818]
+
+Sat May 5 16:26:33 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/date/format.rb (Format::Bag#method_missing): get rid of
+ modifying original argument. [ruby-core:11090]
+
+Thu May 3 22:20:08 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in, defines.h, eval_load.c (rb_feature_p, rb_provided,
+ search_required, rb_require_safe), ext/extmk.rb: Fix
+ a bug where a statically linked extension cannot be autoloaded.
+ [ruby-dev:30023] / [ruby-dev:30239]
+
+ * thread.c: added an internal class, Barrier.
+
+ * thread.c: copied rdocs from fastthread.
+
+ * yarvcore.h (struct rb_vm_struct): moved loading_table from global.
+
+Thu May 3 18:10:12 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * vm_evalbody.ci, insns.def, vm.c, tool/insns2vm.rb (rb_num_t):
+ renamed to get rid of name clash. [ruby-dev:30504]
+
+ * yarvcore.c (ruby_thread_init): ditto.
+
+Wed May 2 18:52:58 2007 Koichi Sasada <ko1@atdot.net>
+
+ * vm.c, yarvcore.h, yarvcore.c, insns.def: fix to mark VM stack
+ in correct range.
+
+Wed May 2 17:13:26 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * bignum.c (rb_big_quo): now calculate in integer. [ruby-dev:30753]
+
+Wed May 2 15:14:56 2007 Koichi Sasada <ko1@atdot.net>
+
+ * eval_method.h: add redefine checks ([ruby-dev:30751]).
+
+Wed May 2 11:22:52 2007 Koichi Sasada <ko1@atdot.net>
+
+ * compile.c: use Qtrue instead of 2.
+
+ * vm.c, insns.def: support "lambda" calling convention.
+
+Wed May 2 06:46:43 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * error.c, parse.y, ruby.h (rb_compile_warn, rb_compile_warning): warn
+ for compilation. the parser should no longer use rb_warn() and
+ rb_warning(). [ruby-dev:30121]
+
+Wed May 2 05:45:21 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (assoc): result of assoc_new needs to be an assoc.
+
+Wed May 2 05:40:43 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * bignum.c (rb_big_pow): improvement by calculating from MSB and using
+ factorization. <http://yowaken.dip.jp/tdiary/20070426.html#p01>
+
+Tue May 1 18:45:45 2007 Koichi Sasada <ko1@atdot.net>
+
+ * sample/test.rb: import matzruby's sample/test.rb.
+
+Tue May 1 17:46:05 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * array.c (rb_ary_choice): a new method to choose an element
+ randomly from an array.
+
+ * array.c (rb_ary_choice): fixed mistake from RDoc.
+
+Tue May 1 13:59:18 2007 Koichi Sasada <ko1@atdot.net>
+
+ * proc.c (proc_arity): fix an arity bug ([ruby-core:11060]).
+
+Tue May 1 13:12:49 2007 Koichi Sasada <ko1@atdot.net>
+
+ * yarvcore.h, compile.c (set_arguments): support post arguments.
+
+ * test/ruby/test_method.rb: add tests for above.
+
+ * test/ruby/test_proc.rb: ditto.
+
+ * proc.c: fix an arity bug ([ruby-core:11029]).
+
+ * vm.c, vm.h, insns.def, vm_dump.h: fix bmethod process.
+
+ * vm.c: support block argument on block parameter.
+
+Fri Apr 27 17:05:41 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * numeric.c (int_pow): bugfix of overflow detection.
+
+ * numeric.c (int_pow): rb_big_pow() may return other than Bignum.
+
+Fri Apr 27 01:51:50 2007 Koichi Sasada <ko1@atdot.net>
+
+ * compile.c: support multiple splat (e.g, [a, *b, *c, e, *f]).
+
+Fri Apr 27 00:03:48 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * bignum.c (rb_big_pow): truncate all zero BDIGITs. [ruby-dev:30733]
+
+Thu Apr 26 17:31:00 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * bignum.c (rb_big_pow): reduce multiplying for even number.
+
+ * numeric.c (int_pow): calculate power in Fixnum as possible.
+ [ruby-dev:30726]
+
+Thu Apr 26 17:18:51 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y: fixes for ripper.
+
+ * parse.y (primary): reduced duplicated code.
+
+ * parse.y (f_arg_item): should not override by meaningless value.
+
+ * parse.y (f_arg, assocs): should not use $$ before assigned.
+
+ * parse.y (assoc_list): dispatch assoclist_from_args for assocs as
+ well as args.
+
+ * parse.y (assoc): return assoc if dispatched result is $1.
+
+Thu Apr 26 13:54:51 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * misc/ruby-style.el: new file. C/C++ style for ruby source code.
+
+Wed Apr 25 19:49:16 2007 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/socket.c (unix_send_io, unix_recv_io): use CMSG_DATA to
+ align file descriptor appropriately.
+
+Wed Apr 25 15:23:29 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/win32.c (NtInitialize, exit_handler): add initializing and
+ cleanup of critical section object for select.
+
+ * win32/win32.c (do_select): block reentrance.
+
+ * win32/win32.c (rb_w32_select): 0 sec polling of socket. this is
+ workaround because winsock cannot do select at same socket at the
+ same time by two or more threads.
+
+Wed Apr 25 14:10:47 2007 Koichi Sasada <ko1@atdot.net>
+
+ * ext/probeprofiler/probeprofiler.c: fix function name and
+ return value.
+
+Wed Apr 25 12:42:40 2007 Koichi Sasada <ko1@atdot.net>
+
+ * yarvcore.h: remove rb_control_frame_t#callee_id.
+
+ * vm_macro.def: ditto.
+
+ * eval_intern.h (exec_event_hooks): fix to check event flags
+
+ * eval_intern.h (EXEC_EVENT_HOOK): fix to re-check event flags.
+
+ * ext/probeprofiler : added. this profiler is sampling based
+ profiler.
+
+ * vm.c: add rb_thread_current_status() API for probeprofiler.
+
+ * thread.c (rb_thread_execute_interrupts): add comments.
+
+Wed Apr 25 10:36:03 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval_intern.h (PUSH_TAG): no argument now.
+
+ * eval.c, eval_error.h, eval_jump.h, eval_load.c, proc.c, thread.c:
+ ditto.
+
+ * thread.c (alloc_event_hook, rb_thread_remove_event_hook): should
+ return value.
+
+Tue Apr 24 09:33:57 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * dir.c (do_stat, do_lstat, do_opendir): should not warn ENOTDIR.
+ [ruby-talk:248288]
+
+Mon Apr 23 22:14:42 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/extmk.rb ($ruby): add extout directory to include path.
+ [ruby-core:11003]
+
+ * lib/mkmf.rb (libpathflag): not to append RPATHFLAG to current
+ directory.
+
+ * lib/mkmf.rb (init_mkmf): add current directory to default
+ library path with highest priority. [ruby-core:10960]
+
+ * lib/mkmf.rb (LINK_SO): LIBPATH to be placed before DLDFLAGS.
+
+Fri Apr 20 16:05:22 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (LIBPATHFLAG, RPATHFLAG): no needs to be quoted,
+ it is done by libpathflag in mkmf.rb.
+
+Fri Apr 20 12:27:04 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/optparse.rb: fix to override conv proc.
+
+Fri Apr 20 12:21:28 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (ruby_cleanup): fixed access to out of bound, and inverted
+ the order of errinfos.
+
+Fri Apr 20 10:33:23 2007 Koichi Sasada <ko1@atdot.net>
+
+ * eval_intern.h: add prototypes of rb_sourceline() and
+ rb_sourcefile().
+
+Fri Apr 20 02:37:48 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (ruby_cleanup): re-send signal. [ruby-dev:30516]
+
+ * eval_error.h (error_handle): no message when exiting by signal.
+
+ * intern.h (rb_thread_signal_raise, ruby_default_signal): prototypes.
+
+ * signal.c (esignal_init): takes a signal number and an optional
+ signal name.
+
+ * signal.c (interrupt_init): pass SIGINT always.
+
+ * signal.c (ruby_default_signal): invoke system default signal
+ handler.
+
+ * signal.c (rb_f_kill): use NUM2PIDT instead of NUM2INT.
+
+ * signal.c (rb_signal_exec, trap): handle SIGTERM. [ruby-dev:30505]
+
+ * thread.c (rb_thread_signal_raise): now takes signal number instead
+ of signal name.
+
+ * thread.c (rb_thread_signal_exit): since rb_make_exception() calls
+ #exception method, rb_class_new_instance() is not needed here.
+
+ * yarvcore.h (struct rb_vm_struct), eval_jump.h (terminate_process):
+ exit_code is no longer stored in VM.
+
+Thu Apr 19 18:37:49 2007 Koichi Sasada <ko1@atdot.net>
+
+ * eval.c, node.h, thread.c, yarvcore.[ch], eval_intern.h:
+ support set_trace_func (incomplete. id and klass
+ don't be passed). And support Thread#set_trace_func
+ which hook only specified thread and Thread#add_trace_func
+ which add new trace func instead of replace old one.
+ C level API was modified. See thread.c (logic) and
+ yarvcore.h (data structures).
+
+ * vm.c, vm_macro.def: add hook points.
+
+ * compile.c, insns.def: fix "trace" instruction.
+
+ * iseq.c, vm_macro.h: add compile option "trace_instruction".
+
+ * test/ruby/test_settracefunc.rb: hook "c-return" of set_trace_func.
+
+Thu Apr 19 20:57:50 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * parse.y (symbol): symbols should be followed by EXPR_ENDARG.
+
+ * parse.y (dsym): ditto.
+
+ * parse.y (parser_yylex): strings should be followed by
+ EXPR_ENDARG.
+
+ * parse.y (parser_yylex): ditto for numbers.
+
+ * parse.y (parser_yylex): EXPR_ENDARG after ']' and '}'.
+
+Thu Apr 19 17:46:36 2007 Koichi Sasada <ko1@atdot.net>
+
+ * lib/optparse.rb: fix to override conv proc.
+
+Wed Apr 18 10:41:21 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * util.c (ruby_strtod): exponent is radix 10. [ruby-talk:248272]
+
+Wed Apr 18 02:50:50 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * yarvcore.c (th_init2): push initial blockptr value for
+ rb_block_given_p() outside ruby_exec(). [ruby-core:10923]
+
+Wed Apr 18 02:30:24 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (LDFLAGS): prepend -L. instead appending it to
+ XLDFLAGS. [ruby-core:10933]
+
+ * configure.in (Makefile): remove $U for automake from MISSING.
+ [ruby-talk:248171]
+
+Mon Apr 16 22:56:01 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ext/pty/expect_sample.rb: avoid symbolic link representation for
+ expect. a patch from Kazuhiro NISHIYAMA <zn at mbf.nifty.com>.
+ [ruby-dev:30714]
+
+Mon Apr 16 22:51:11 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * sample: replace TRUE, FALSE with true, false respectively.
+ a patch from Kazuhiro NISHIYAMA <zn at mbf.nifty.com>.
+ [ruby-dev:30713]
+
+Mon Apr 16 17:08:02 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/optparse.rb (make_switch): do not clobber converter if pattern
+ has no convert method. reported by sheepman in [ruby-dev:30709].
+
+Mon Apr 16 16:49:32 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/stringio/stringio.c (strio_seek): consistent behavior with
+ IO#seek. patch by sheepman in [ruby-dev:30710].
+
+Mon Apr 16 16:34:08 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * parse.y (parser_yylex): should set command_start after block
+ starting "do"s and braces. [ruby-core:10916]
+
+Mon Apr 16 10:51:37 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * enum.c (enum_each_with_index): each_with_index to forward
+ arguments to each. [ruby-core:10921]
+
+Mon Apr 16 10:43:10 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * time.c (time_arg): should allow to specify 24:00.
+ [ruby-core:10915]
+
+Sun Apr 15 09:12:54 2007 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * lib/date/format.rb: added some zone names.
+
+ * lib/date/format.rb (_parse): now interprets doted numerical
+ dates as a big endian (except dd.mm.yyyy).
+
+Thu Apr 12 17:13:22 2007 Koichi Sasada <ko1@atdot.net>
+
+ * thread.c (mutex_try_lock): check and set owner thread.
+
+ * thread_pthread.ci: fix to show error code in error message.
+
+Thu Apr 12 17:11:54 2007 Koichi Sasada <ko1@atdot.net>
+
+ * eval.c (rb_rescue2): restore cfp ([ruby-dev:30582]).
+
+Thu Apr 12 16:06:48 2007 Koichi Sasada <ko1@atdot.net>
+
+ * eval.c (rb_protect): restore cfp ([ruby-dev:30671]).
+
+Thu Apr 12 16:04:31 2007 Koichi Sasada <ko1@atdot.net>
+
+ * compile.c (iseq_compile_each): check node->nd_state == 1, not !0.
+
+Wed Apr 11 16:35:16 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/win32.[ch] (rb_w32_enter_critical, rb_w32_leave_critical): no
+ need to reject reentrance. removed.
+
+ * rubysig.h (RUBY_CRITICAL): follow above changes.
+
+ * rubysig.h (TRAP_BEG, TRAP_END): no need to save errno.
+
+Tue Apr 10 17:02:17 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/win32.c (rb_w32_fclose, rb_w32_close): need to save errno
+ before calling original fclose()/close().
+
+Tue Apr 10 16:14:22 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * thread_win32.ci (w32_wait_events): check whether interrupt_event is
+ valid handle or not.
+
+ * thread_win32.ci (native_thread_destroy): clear interrupt_event when
+ close it.
+
+Tue Apr 10 15:53:17 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * thread_pthread.ci (native_thread_create): initialize sleep_cond.
+ fixed: [ruby-dev:30675]
+
+Mon Apr 9 18:48:57 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * thread.c (do_select): ubf_select() is not necessary. interrupt is
+ checked in the loop.
+
+Mon Apr 9 18:27:26 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * thread.c (do_select): use ubf_select() as UBF on windows.
+
+ * win32/win32.c (do_select): shouldn't call catch_interrupt() here.
+ fixed: [ruby-dev:30674], reported by wanabe.
+
+Mon Apr 9 09:24:32 2007 Shugo Maeda <shugo@ruby-lang.org>
+
+ * lib/net/imap.rb (disconnect): call shutdown for
+ SSLSocket. Thanks, Technorama Ltd.
+
+Sun Apr 8 13:28:17 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * compile.c (defined_expr): test arguments of NODE_CALL and so
+ on as well as NODE_ATTRASGN. [ruby-core:10886]
+
+Fri Apr 6 10:56:29 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * ext/openssl/ossl_pkey_ec.c (ossl_ec_key_get_group): get rid of
+ warning. we are aware of it.
+
+Fri Apr 6 04:00:24 2007 Technorama Ltd. <oss-ruby@technorama.net>
+
+ * ext/openssl/ossl_{bn,x509{attr,cert,name,store}}.c:
+ Add documentation.
+
+Thu Apr 5 17:59:19 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * compile.c (defined_expr): support for assignment.
+ [ruby-core:10867]
+
+ * compile.h (ADD_CATCH_ENTRY): removed temporary variable.
+
+Thu Apr 5 15:13:34 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * ext/openssl/ossl_ssl_session.c (ossl_ssl_session_alloc): should
+ return value.
+
+Thu Apr 5 14:58:49 2007 Technorama Ltd. <oss-ruby@technorama.net>
+
+ * ext/openssl/ossl_pkcs5.c: New module.
+
+ * ext/openssl/ossl_{cipher,digest,pkcs7,pkcs12}.c:
+ Remove redundant module namespace.
+
+ * ext/openssl/lib/openssl/{cipher,digest}.rb
+ Add backwards compatible classes for rearranged classes.
+
+ * ext/openssl/ossl_{pkcs7,pkcs12}.c: Add documentation.
+
+Thu Apr 5 00:42:48 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * error.c (rb_notimplement), io.c (pipe_open): removed definite
+ articles and UNIX manual section from messages. [ruby-dev:30690]
+
+Wed Apr 4 17:09:17 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * io.c (pipe_open): refined the message of NotImplementedError.
+ [ruby-dev:30685]
+
+Wed Apr 4 12:29:02 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * error.c (rb_notimplement): should show the name of this func,
+ not callee.
+
+Wed Apr 4 10:18:04 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * io.c (popen_exec): should not close close-on-exec FDs.
+ [ruby-dev:30679]
+
+ * io.c (pipe_open): raise NotImplementedError for command "-" on
+ platforms where fork(2) is not available. [ruby-dev:30681]
+
+Tue Apr 4 04:17:18 2007 Technorama Ltd. <oss-ruby@technorama.net>
+
+ * ext/openssl/ossl_ssl.c: Add documentation.
+
+Tue Apr 3 16:22:24 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/openssl/extconf.rb: check for functions added in 1.9.
+
+ * ext/openssl/ruby_missing.h: check per features instead by
+ checking version code. [ruby-core:10845]
+
+Tue Apr 3 16:02:44 2007 Technorama Ltd. <oss-ruby@technorama.net>
+
+ * ext/openssl/ossl_bn.c: More documentation.
+
+ * ext/openssl/lib/ossl_{pkey,pkey_ec}.[ch]: Add elliptic curves.
+
+Tue Apr 3 15:50:41 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * ext/socket/socket.c (s_recv, s_recvfrom): some systems (such as
+ windows) doesn't set fromlen if the socket is connection-oriented.
+ reported by Bram Whillock in [ruby-core:10512] [ruby-Bugs#9061]
+
+Tue Apr 3 09:36:55 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * ext/openssl/ruby_missing.h: need to include version.h to check
+ RUBY_VERSION_CODE.
+
+Mon Apr 3 07:10:12 2007 Technorama Ltd. <oss-ruby@technorama.net>
+
+ * ext/openssl/ossl_{ssl.[ch],ssl_session.c},
+ ext/openssl/lib/openssl/lib/openssl/ssl.rb:
+ New SSL::Session class. Add session cb's, getter/setters,
+ config, and statistics methods.
+
+Mon Apr 3 04:00:23 2007 Technorama Ltd. <oss-ruby@technorama.net>
+
+ * ext/openssl/{ossl.[ch],ossl_pkey.c} Add documentation.
+
+ * ext/openssl/ossl_hmac.c Add reset method.
+
+ * ext/openssl/ossl_cipher.c (Cipher#update) Take additional
+ buffer argument.
+
+ * ext/openssl/{ossl_bio.c,ossl_ssl.c,ruby_missing.h}
+ compatibility with 1.8.
+
+Mon Apr 2 21:55:12 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * insns.def (throw), thread.c, yarvcore.h (throwed_errinfo): fixed
+ typo.
+
+Fri Mar 30 11:46:51 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/win32.c (rb_w32_cmdvector): fixed buffer size. reported by
+ wanabe [ruby-dev:30672]
+
+ * win32/win32.c (init_env, insert, rb_w32_get_environ): use strdup
+ instead of malloc + strlcpy. suggested by nobu [ruby-dev:30673]
+
+Fri Mar 30 02:29:04 2007 Technorama <oss-ruby@technorama.net>
+
+ * ext/openssl/ossl_{bn,cipher,digest,hmac,rand,pkey_{dh,dsa,rsa}}.c:
+ Add Documentation for various methods.
+
+ * ext/openssl/lib/openssl/cipher.rb: Ditto
+
+ * ext/openssl/ossl_bn.c: add lshift! and rshift! methods.
+
+ * ext/openssl/ossl_digest.c: GetDigestPtr() also accept a string.
+
+Fri Mar 23 11:28:24 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/win32.c (init_env, insert, cmdglob, rb_w32_cmdvector,
+ rb_w32_opendir, rb_w32_readdir, rb_w32_strerror, rb_w32_stati64,
+ rb_w32_get_environ): use strlcpy() and strlcat().
+
+ * win32/win32.c (rb_w32_opendir): use realloc() instead of xrealloc().
+
+ * win32/win32.c (rb_w32_closedir): check NULL before free pointers.
+
+Fri Mar 23 00:24:52 2007 Keiju Ishitsuka <keiju@ruby-lang.org>
+
+ * lib/shell: commit miss(support for ruby 1.9(YARV) thread model).
+
+Thu Mar 22 13:32:17 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/Makefile.sub (LIBS): remove an unnecessary library.
+
+Thu Mar 22 10:27:58 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * test/ruby/test_bignum.rb (test_to_s): add tests for Bignum#to_s.
+
+Wed Mar 21 20:38:06 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * marshal.c (w_short, w_long, w_object): get rid of VC++ warnings.
+
+Wed Mar 21 20:05:07 2007 Koichi Sasada <ko1@atdot.net>
+
+ * compile.c, parse.y, eval.c, intern.h, iseq.c, lex.c, node.h,
+ proc.c, vm.c, vm_macro.def, vm_macro.def, yarvcore.c, yarvcore.h,
+ debug.c, debug.h: merge half-baked-1.9 changes. The biggest change
+ is to change node structure around NODE_SCOPE, NODE_ARGS. Every
+ scope (method/class/block) has own NODE_SCOPE node and NODE_ARGS
+ represents more details of arguments information. I'll write a
+ document about detail of node structure.
+
+Wed Mar 21 17:04:30 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * bignum.c (rb_big2str0): round up for the most significant digit.
+ [ruby-core:10686]
+
+Tue Mar 21 08:20:00 2007 Nathaniel Talbott <ntalbott@ruby-lang.org>
+
+ * test/testunit/collector/test_dir.rb: Fixed test/unit tests that
+ were breaking due to Module#public_instance_methods now
+ returning a Symbol instead of a String.
+
+ * test/testunit/collector/test_objectspace.rb: Ditto.
+
+Tue Mar 20 22:54:50 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * marshal.c (w_extended): erroneous check condition when dump
+ method is defined. [ruby-core:10646]
+
+Tue Mar 20 21:36:47 2007 Keiju Ishitsuka <keiju@ruby-lang.org>
+
+ * lib/shell.rb, lib/shell: support for ruby 1.9(YARV) thread model.
+
+Tue Mar 20 16:36:08 2007 URABE Shyouhei <shyouhei@ruby-lang.org>
+
+ * distruby.rb: Add zip generation.
+
+Tue Mar 20 16:20:49 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (rb_f_callee_name): add __method__ and __callee__ again.
+ __callee__ need to rework to adopt YARV. [ruby-core:10671]
+
+Tue Mar 20 11:09:00 2007 Akinori MUSHA <knu@iDaemons.org>
+
+ * lib/set.rb: Revise rdoc.
+
+ * lib/set.rb (Set#freeze, Set#taint, Set#untaint): Implement
+ Set#freeze, Set#taint, and Set#untaint; requested by: Dan
+ Hutchings <dan AT moltoagitato.com> in [ruby-bugs:PR#9359].
+
+Tue Mar 20 09:13:10 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * process.c (rb_fork): flush stdouts always before fork(2).
+ fixed: [ruby-dev:30612]
+
+Tue Mar 20 01:38:48 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * thread.c (thread_start_func_2): store the result of first_func
+ as well as first_proc.
+
+ * thread.c (thread_create_core): block is not used if first_func
+ is given.
+
+Mon Mar 19 16:58:52 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * missing/{strlcat,strlcpy}.c, missing.h: new functions.
+
+ * LEGAL: add copyright notice about above files.
+
+ * configure.in: check whether strlcat and strlcpy are exist or not.
+
+ * {bcc32,win32,wince}/Makefile.sub: use above files.
+
+Mon Mar 19 14:12:25 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/matrix.rb (Matrix::inverse_from): adding partial pivoting to
+ the Gauss-Jordan algorithm, making it stable. a patch from
+ Peter Vanbroekhoven. [ruby-core:10641]
+
+Mon Mar 19 12:13:36 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * regparse.c, etc.: K&R to ANSI code cleanup patch from Stefan
+ Huehner <stefan at huehner.org>. [ruby-core:10543]
+
+Mon Mar 19 11:27:13 2007 Minero Aoki <aamine@loveruby.net>
+
+ * lib/net/protocol.rb (rbuf_read): extend buffer size for speed.
+
+Sun Mar 18 08:31:51 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/dir.h, win32/win32.c (rb_w32_opendir, rb_w32_readdir,
+ rb_w32_closedir): get rid of possible buffer-overflows.
+
+Sat Mar 17 19:10:39 2007 Kouhei Sutou <kou@cozmixng.org>
+
+ * lib/rss, test/rss:
+ - supported Atom.
+ - bumped version 0.1.6 to 0.1.7.
+ * sample/rss/convert.rb: added new sample.
+
+Fri Mar 16 22:32:20 2007 Minero Aoki <aamine@loveruby.net>
+
+ * lib/net/pop.rb: change default verification mode from
+ VERIFY_PEER to VERIFY_NONE because most POPS server does not have
+ true certification.
+
+Fri Mar 16 22:19:24 2007 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+
+ * ext/win32ole/win32ole.c: add WIN32OLE#ole_activex_initialize,
+ a little bit supporting ActiveX control. [ruby-talk:241188]
+
+Fri Mar 16 22:16:58 2007 Minero Aoki <aamine@loveruby.net>
+
+ * lib/net/http.rb: merge Ruby-SSPI patch contributed by Justin
+ Bailey.
+
+ * ext/Win32API/lib/win32/sspi.rb: new file.
+
+Wed Mar 14 12:30:00 2007 Shigeo Kobayashi <shigeo@tinyforest.jp>
+
+ * ext/bigdecimal/bigdecimal.c: BigDecimal("-.31") is now
+ treated as ("-0.31") not as ("0.31").
+
+Tue Mar 13 19:04:30 2007 Keiju Ishitsuka <keiju@ruby-lang.org>
+
+ * lib/sync.rb: support for ruby 1.9(YARV) thread model.
+
+Tue Mar 13 09:25:10 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * common.mk (clear-installed-list): separated from install-prereq.
+
+Tue Mar 13 07:23:20 2007 Shugo Maeda <shugo@ruby-lang.org>
+
+ * lib/monitor.rb (mon_try_enter): call @mon_muetx.try_lock.
+ Thanks, Keiju ISHITSUKA. [ruby-dev:30507]
+
+Tue Mar 13 02:42:58 2007 Akinori MUSHA <knu@iDaemons.org>
+
+ * lib/cgi.rb (CGI::header): IIS >= 5.0 does not need the nph
+ assumption any more; submitted by MIYASAKA Masaru <alkaid AT
+ coral.ocn.ne.jp> in [ruby-dev:30537].
+
+Mon Mar 12 10:53:28 2007 Akinori MUSHA <knu@iDaemons.org>
+
+ * ext/openssl/ossl_asn1.c (Init_ossl_asn1): Let rdoc know about
+ externally defined modules; submitted by Technorama
+ Ltd. <oss-ruby AT technorama.net> in [ruby-bugs:PR#4704].
+
+ * ext/openssl/ossl_bn.c (Init_ossl_bn): Ditto.
+
+ * ext/openssl/ossl_cipher.c (Init_ossl_cipher): Ditto.
+
+ * ext/openssl/ossl_digest.c (Init_ossl_digest): Ditto.
+
+ * ext/openssl/ossl_hmac.c (Init_ossl_hmac): Ditto.
+
+ * ext/openssl/ossl_pkey.c (Init_ossl_pkey): Ditto.
+
+ * ext/openssl/ossl_pkey_dh.c (Init_ossl_dh): Ditto.
+
+ * ext/openssl/ossl_pkey_dsa.c (Init_ossl_dsa): Ditto.
+
+ * ext/openssl/ossl_pkey_rsa.c (Init_ossl_rsa): Ditto.
+
+ * ext/openssl/ossl_rand.c (Init_ossl_rand): Ditto.
+
+ * ext/openssl/ossl_ssl.c (Init_ossl_ssl): Ditto.
+
+Sun Mar 11 18:42:01 2007 Akinori MUSHA <knu@iDaemons.org>
+
+ * misc/ruby-mode.el (ruby-block-end-re): Support for the
+ experimental ';;' terminator had been dropped.
+
+Sun Mar 11 05:45:46 2007 Akinori MUSHA <knu@iDaemons.org>
+
+ * misc/README, misc/rdebug.el: Add rdebug.el, Emacs ruby-debug
+ interface based on rubydb3x.el; submitted by Martin Nordholts
+ <enselic AT gmail.com> in [ruby-bugs:PR#9023].
+
+Sat Mar 10 07:20:28 2007 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+
+ * ext/win32ole/win32ole.c: add WIN32OLE_TYPELIB#library_name,
+ WIN32OLE_TYPELIB#visible?.
+
+ * test/win32ole/test_win32ole_typelib.rb: ditto.
+
+Thu Mar 8 09:17:59 2007 Minero Aoki <aamine@loveruby.net>
+
+ * compile.c: iseq_compile -> rb_iseq_compile.
+
+ * iseq.c: ditto.
+
+ * intern.h: provide function prototype of Init_jump.
+
+ * eval_jump.h (Init_jump): declare function type.
+
+ * thread.c: platform-dependent functions should be surrounded by #ifdef.
+
+ * iseq.c (iseq_data_to_ary): remove unused variable.
+
+ * compile.c (set_arguments): ditto.
+
+ * thread.c (set_unblock_function): ditto.
+
+ * thread_pthread.ci: reduce printf warning.
+
+ * vm_dump.c: ditto.
+
+Tue Mar 6 16:35:04 2007 Keiju Ishitsuka <keiju@ruby-lang.org>
+
+ * lib/shell/process-controller.rb: fix thread synchronization problem for [ruby-dev:30477].
+
+Tue Mar 6 11:53:25 2007 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/sample/irbtkw.rbw: fails to exit process.
+
+Tue Mar 6 10:23:09 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * runruby.rb: added --pure (turned on by default) and --debugger
+ options.
+
+Mon Mar 5 09:19:33 2007 Minero Aoki <aamine@loveruby.net>
+
+ * lib/timeout.rb (Timeout.timeout): should return the block value
+ always.
+
+ * lib/timeout.rb (Timeout.timeout): should yield sec argument
+ always.
+
+ * lib/timeout.rb (Timeout.timeout): fix document.
+
+Mon Mar 5 09:16:40 2007 Minero Aoki <aamine@loveruby.net>
+
+ * lib/net/smtp.rb: support automatic STARTTLS.
+
+ * lib/net/smtp.rb: check server advertisement.
+
+ * lib/net/smtp.rb: introduce new class SMTP::Response.
+
+ * lib/net/smtp.rb (getok): should not use sprintf.
+
+ * lib/net/smtp.rb (get_response): ditto.
+
+ * lib/net/protocol.rb: reduce syntax warning on 1.9.
+
+Mon Mar 5 07:13:28 2007 Minero Aoki <aamine@loveruby.net>
+
+ * lib/net/smtp.rb: reconstruct SMTPS/STARTTLS interface. New
+ interface is incompatible from current 1.9 interface at all.
+
+ * lib/net/smtp.rb: All SSL-related class methods are removed; use
+ instance methods instead.
+
+ * lib/net/smtp.rb: rename methods: *ssl -> *tls (with alias
+ "ssl").
+
+ * lib/net/smtp.rb: rename methods: *tls -> *starttls.
+
+Mon Mar 5 01:36:41 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (parser_yylex), win32/win32.c (rb_w32_utime): fixed
+ indentation broken at YARV merger.
+
+Sun Mar 4 23:41:14 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * file.c (rb_stat_uid, rb_stat_gid, eaccess): use rb_uid_t and
+ rb_gid_t instead of int.
+
+ * file.c (rb_stat_s_utime): fixed a commit miss for the platforms
+ where utimes() does not exist.
+
+ * lib/fileutils.rb (touch): ditto.
+
+Sun Mar 4 14:46:56 2007 WATANABE Hirofumi <eban@ruby-lang.org>
+
+ * util.c (push_element): should return a int value.
+
+Sun Mar 4 01:01:25 2007 Akinori MUSHA <knu@iDaemons.org>
+
+ * lib/set.rb (Set#^, Set#&): Correct documentation. Those methods
+ return sets, not arrays; noted by Oliver Frank Wittich <nietz AT
+ mangabrain.de>.
+
+Sat Mar 3 22:54:33 2007 Minero Aoki <aamine@loveruby.net>
+
+ * lib/fileutils.rb (touch): last #touch change causes error when
+ :mtime option was not given.
+
+Sat Mar 3 22:51:29 2007 Minero Aoki <aamine@loveruby.net>
+
+ * lib/fileutils.rb (mv): could not move directory between
+ different file systems. [ruby-dev:30411]
+
+Sat Mar 3 22:37:02 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * file.c (rb_file_s_utime): allow nil to set the current time.
+
+ * lib/fileutils.rb (touch): ditto, and added :mtime and :nocreate
+ options. fixed: [ruby-talk:219037]
+
+Sat Mar 3 15:52:26 2007 Akinori MUSHA <knu@iDaemons.org>
+
+ * object.c (instance_variable_get): Restore rdoc markups lost in
+ the last commit.
+
+Fri Mar 2 21:17:14 2007 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+
+ * ext/win32ole/win32ole.c (get_ptr_of_variant, ole_set_safe_array,
+ ole_val2ptr_variant, ole_val2olevariantdata, ole_variant2val,
+ ): fix some bugs of WIN32OLE_VARIANT.new when variant type is
+ VT_ARRAY|VT_BSTR or VT_BYREF.
+
+ * ext/win32ole/win32ole.c (folevariant_s_array, folevariant_initialize):
+ WIN32OLE_VARIANT#[], WIN32OLE_VARIANT#[]=, WIN32OLE_VARIANT#value=
+ is defined as instance method of WIN32OLE_VARIANT.
+
+ * test/win32ole/test_win32ole_variant.rb: add some test for
+ VT_ARRAY, VT_BYREF variant type.
+
+Fri Mar 2 07:58:24 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * object.c (rb_obj_ivar_set): RDoc updated according to a
+ suggestion from Brian Candler <B.Candler AT pobox.com>.
+ [ruby-core:10469]
+
+Thu Mar 1 21:38:07 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (stmt, arg): should not omit lhs of OP_ASGN1 even if
+ empty. [ruby-dev:30455]
+
+Thu Mar 1 02:55:25 2007 Akinori MUSHA <knu@iDaemons.org>
+
+ * ext/digest/digest.c (get_digest_base_metadata): Allow inheriting
+ Digest::Base subclasses, which was unintentionally made
+ impossible while restructuring Digest classes.
+
+Thu Mar 1 02:05:17 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * mkconfig.rb (patchlevel): read from version.h.
+
+Wed Feb 28 21:15:00 2007 WATANABE Hirofumi <eban@ruby-lang.org>
+
+ * configure.in (ac_cv_func_fcntl): fcntl support for MinGW.
+
+ * missing/flock.c: workaround for MinGW.
+
+Wed Feb 28 20:51:32 2007 URABE Shyouhei <shyouhei@ruby-lang.org>
+
+ * pack.c (pack_unpack): properly ignore non-base64 octets such as
+ UTF-8 encoded BOMs; submitted by SOUMA Yutaka <holon@radastery.jp>
+ to fix [ruby-core:10437]
+
+Wed Feb 28 18:31:51 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * ext/openssl/extconf.rb: no need to check unistd.h and sys/time.h.
+ they are already checked at configure.
+ reported by KOBAYASHI Yasuhiro [ruby-list:43225]
+
+Wed Feb 28 18:23:43 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * lib/mkmf.rb ($DEFLIBPATH): default library paths ($(topdir), etc)
+ should be the first elements of library paths list.
+ reported by KOBAYASHI Yasuhiro [ruby-list:43225]
+
+Wed Feb 28 10:33:58 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * Makefile.in, configure.in, */Makefile.sub (THREAD_MODEL): system
+ specific thread model.
+
+ * compile.h, regint.h, vm.h, array.c: removed unnecessary #include.
+
+Wed Feb 28 04:03:03 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * enum.c (take_i): small cosmetic / documentation patch from
+ Tadashi Saito <shiba AT mail2.accsnet.ne.jp>. [ruby-dev:30446]
+
+Wed Feb 28 01:20:18 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * test/{dbm,gdbm}/test_{dbm,gdbm}.rb: shouldn't use host_os. use
+ target_os instead. reported by KOBAYASHI Yasuhiro [ruby-list:43225]
+
+Wed Feb 28 00:08:11 2007 URABE Shyouhei <shyouhei@ice.uec.ac.jp>
+
+ * mkconfig.rb (RbConfig): add CONFIG['PATCHLEVEL']
+
+ * common.mk: new target dist
+
+ * distruby.rb: new file
+
+Tue Feb 27 22:18:45 2007 WATANABE Hirofumi <eban@ruby-lang.org>
+
+ * configure.in (--enable-auto-image-base): avoid the necessity to
+ rebase the shared libs as much as possible;
+ submitted by Corinna Vinschen <spam at vinschen.de> in
+ [ruby-talk:240964].
+
+Tue Feb 27 21:36:47 2007 WATANABE Hirofumi <eban@ruby-lang.org>
+
+ * util.c (__crt0_glob_function): use ruby_glob() instead of rb_globi().
+
+Tue Feb 27 21:33:04 2007 WATANABE Hirofumi <eban@ruby-lang.org>
+
+ * configure.in (ac_cv_func_setrlimit): workaround for djgpp.
+
+Tue Feb 27 20:35:28 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * common.mk (error.c, process.c): depend on yarvcore.h and rubysig.h.
+
+Tue Feb 27 19:26:31 2007 Akinori MUSHA <knu@iDaemons.org>
+
+ * ext/nkf/nkf.c (rb_str_resize, rb_nkf_kconv, rb_nkf_guess1,
+ rb_nkf_guess2): Silence warnings regarding char * vs. unsigned
+ char * mismatch; submitted by Lyle Johnson
+ <lyle.johnson@gmail.com> in [ruby-core:10416].
+
+Tue Feb 27 19:15:01 2007 Akinori MUSHA <knu@iDaemons.org>
+
+ * lib/base64.rb (Base64::b64encode): Fix documentation; submitted
+ by David Symonds <dsymonds@gmail.com> in [ruby-core:10432].
+
+Tue Feb 27 18:59:42 2007 Akinori MUSHA <knu@iDaemons.org>
+
+ * ext/bigdecimal/bigdecimal.c (BigDecimal_load): Silence warnings
+ regarding char * vs. unsigned char * mismatch; submitted by Lyle
+ Johnson <lyle.johnson@gmail.com> in [ruby-core:10416].
+
+ * ext/digest/sha1/sha1ossl.c (SHA1_Finish): Ditto.
+
+ * ext/digest/rmd160/rmd160ossl.c (RMD160_Finish): Ditto.
+
+ * ext/digest/digest.c (rb_digest_base_finish,
+ rb_digest_base_update): Ditto.
+
+Tue Feb 27 18:12:05 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * enum.c (enum_take): new method. [ruby-dev:30407]
+
+ * enum.c (enum_drop): ditto.
+
+Tue Feb 27 07:47:24 2007 Koichi Sasada <ko1@atdot.net>
+
+ * yarvcore.h, vm.h: rename th_invoke_yield() to th_yield().
+
+ * blockinlining.c: ditto.
+
+ * eval.c: ditto.
+
+ * vm.c, insns.def: rename th_invoke_yield_cfunc()
+ to th_yield_with_cfunc().
+
+ * yarvcore.h, yarvcore.c: rename theYarvVM to ruby_current_vm and
+ yarvCurrentThread to ruby_current_thread. remove yarvVMArray.
+
+Tue Feb 27 00:45:23 2007 Minero Aoki <aamine@loveruby.net>
+
+ * test/ruby/test_optimization.rb: restore method before calling
+ assert_equal.
+
+Mon Feb 26 00:58:39 2007 Koichi Sasada <ko1@atdot.net>
+
+ * yarvcore.h: add rb_thread_t#top_wrapper, top_self.
+
+ * eval_load.c (rb_load): support eval in wrapper module
+ (load(file, true)).
+
+ * eval.c: ditto.
+
+ * eval_jump.h: ditto.
+
+ * iseq.c: ditto.
+
+ * vm.c: ditto.
+
+ * yarvcore.c: ditto.
+
+ * insns.def: add a empty line.
+
+Mon Feb 26 00:54:36 2007 Koichi Sasada <ko1@atdot.net>
+
+ * common.mk: change "gdb" rule. You can debug miniruby with
+ $(srcdir)/test.rb on gdb by this rule (type "make gdb").
+ If you write break points to "breakpoints.gdb" on $srcdir,
+ gdb runs with this file.
+
+Sun Feb 25 11:46:58 2007 Koichi Sasada <ko1@atdot.net>
+
+ * win32/Makefile.sub: enable -Zi (debug) option.
+
+Sun Feb 25 11:38:40 2007 Koichi Sasada <ko1@atdot.net>
+
+ * ruby.h: define RUBY_VM macro and remove NATIVETHREAD* macros.
+
+ * intern.h: ditto.
+
+ * signal.c (posix_signal): remove unused function
+ posix_nativethread_signal().
+
+Sun Feb 25 11:31:13 2007 Koichi Sasada <ko1@atdot.net>
+
+ * thread.c (rb_thread_run): fix to ANSI style.
+
+Sun Feb 25 11:09:16 2007 Minero Aoki <aamine@loveruby.net>
+
+ * bootstraptest/runner.rb: show source code in error message.
+
+Sun Feb 25 09:39:50 2007 Koichi Sasada <ko1@atdot.net>
+
+ * yarvcore.h:
+ rename:
+ rb_iseq_t#file_name -> filename
+ rb_iseq_t#local_tbl -> local_table
+ add:
+ rb_iseq_t#local_table_size
+
+ * compile.c: separate local_table_size and local_size
+ (local variable size)
+
+ * blockinlining.c: apply above rename.
+
+ * compile.h: ditto.
+
+ * eval.c: ditto.
+
+ * iseq.c: ditto.
+
+ * proc.c: ditto.
+
+ * vm.c: ditto.
+
+ * vm_dump.c: ditto.
+
+Sun Feb 25 10:27:17 2007 Minero Aoki <aamine@loveruby.net>
+
+ * bootstraptest/runner.rb: add lib/ to load path.
+
+Sat Feb 25 10:16:50 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * rubyio.h (HAVE_RB_IO_T): macro to tell if rb_io_t is defined.
+
+Sat Feb 24 19:39:16 2007 Minero Aoki <aamine@loveruby.net>
+
+ * common.mk: new target "btest", to run bootstraptests.
+
+Sat Feb 24 19:30:40 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * file.c, gc.c, io.c, ruby.h, rubyio.h, win32/win32.h (rb_io_t):
+ renamed from OpenFile.
+
+ * ext/dl/cptr.c, ext/io/wait/wait.c, ext/openssl/ossl.h,
+ ext/openssl/ossl_bio.c, ext/openssl/ossl_ssl.c, ext/pty/pty.c,
+ ext/readline/readline.c, ext/socket/socket.c: ditto.
+
+Sat Feb 24 19:28:23 2007 Minero Aoki <aamine@loveruby.net>
+
+ * bootstraptest/runner.rb: new option -v,--verbose.
+
+Sat Feb 24 18:55:50 2007 Minero Aoki <aamine@loveruby.net>
+
+ * yarvtest/test_method.rb: removed (merged to bootstraptest).
+
+ * yarvtest/test_class.rb: ditto.
+
+Sat Feb 24 18:44:39 2007 Minero Aoki <aamine@loveruby.net>
+
+ * bootstraptest/test_class.rb: new file.
+
+ * bootstraptest/test_method.rb: add tests.
+
+Sat Feb 24 18:44:30 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * intern.h (rb_thread_blocking_region): add prototype.
+
+ * file.c (rb_thread_flock, rb_file_flock): use UBF feature.
+
+ * process.c (rb_waitpid_blocking, rb_waitpid): use UBF feature.
+
+ * thread.c (rb_thread_debug): added runtime debugging flag.
+
+ * thread.c (BLOCKING_REGION): restore previous UBF.
+
+ * thread.c (rb_thread_blocking_region): default UBF to interrupt
+ in system dependent way by RB_UBF_DFL.
+ + ubf_select() on posix system
+ + ubf_handle() on Win32
+ + none on cygwin
+
+ * thread_win32.ci (rb_w32_wait_events_blocking): blocking version.
+
+ * win32/win32.c (waitpid): use rb_w32_wait_events_blocking().
+
+Sat Feb 24 17:45:48 2007 Minero Aoki <aamine@loveruby.net>
+
+ * parse.y (f_arg, opt_f_block_arg): ripper should export VALUE.
+
+Sat Feb 24 16:52:55 2007 Minero Aoki <aamine@loveruby.net>
+
+ * bootstraptest/runner.rb: fix syntax error.
+
+Sat Feb 24 16:51:09 2007 Minero Aoki <aamine@loveruby.net>
+
+ * bootstraptest/runner.rb: new option --help.
+
+Sat Feb 24 16:47:33 2007 Minero Aoki <aamine@loveruby.net>
+
+ * bootstraptest: new test suite.
+
+ * bootstraptest/runner.rb: new file.
+
+ * bootstraptest/test_literal.rb: new file.
+
+ * bootstraptest/test_method.rb: new file.
+
+Sat Feb 24 16:29:15 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/win32.c (StartSocket): remove unnecessary code.
+
+Sat Feb 24 16:04:30 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * parse.y (struct local_vars): remove unused nofree member from
+ struct.
+
+ * parse.y (parser_free): ditto.
+
+Sat Feb 24 15:57:19 2007 Shugo Maeda <shugo@ruby-lang.org>
+
+ * lib/thread.rb (ConditionVariable#broadcast): use Mutex
+ instead of Thread.exclusive.
+
+ * lib/monitor.rb (MonitorMixin#mon_exit): unset @mon_owner
+ before calling Mutex#unlock.
+
+Sat Feb 24 15:51:45 2007 Minero Aoki <aamine@loveruby.net>
+
+ * parse.y (program): remove useless assignment to reduce warning.
+
+Sat Feb 24 15:41:51 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * parse.y (lambda): remove unused clause from the rule to stop
+ warning.
+
+Sat Feb 24 15:41:22 2007 Shugo Maeda <shugo@ruby-lang.org>
+
+ * lib/thread.rb: do not redefine Mutex#synchronize.
+
+Sat Feb 24 15:14:02 2007 Shugo Maeda <shugo@ruby-lang.org>
+
+ * lib/monitor.rb: rewritten using Mutex/ConditionVariable.
+
+Sat Feb 24 13:25:32 2007 Koichi Sasada <ko1@atdot.net>
+
+ * lib/soap/mapping/factory.rb: catch up with spec changes (return
+ Symbols instead of Strings).
+
+ * lib/soap/mapping/mapping.rb: ditto.
+
+Sat Feb 24 10:49:55 2007 Koichi Sasada <ko1@atdot.net>
+
+ * parse.y, node.h, compile.c: change node tree structure. a purpose
+ of this change is to unify argument structure of method and block.
+ this change prohibits duplicate block parameter name.
+ new argument information:
+ NODE_ARGS [m: int, o: NODE_OPT_ARG, ->]
+ NODE_ARGS_AUX [r: ID, b: ID, ->]
+ NODE_ARGS_AUX [Pst: id, Plen: int, init: NODE*]
+ optarg information:
+ NODE_OPT_ARGS [idx, expr, ->]
+
+ * vm_macro.def: ditto.
+
+ * gc.c: ditto.
+
+ * iseq.c: ditto.
+
+ * compile.h: fix debug function name.
+
+ * test/ripper/test_scanner_events.rb: |_,_,foo| -> |_1,_2,foo|
+
+ * test/ruby/test_lambda.rb: disable test temporarily.
+
+Sat Feb 24 10:46:28 2007 Koichi Sasada <ko1@atdot.net>
+
+ * test/testunit/test_testcase.rb: catch up with current instance
+ variable spec.
+
+Sat Feb 24 10:32:59 2007 Koichi Sasada <ko1@atdot.net>
+
+ * common.mk: change vm_macro.def rule.
+
+Sat Feb 24 10:38:05 2007 Minero Aoki <aamine@loveruby.net>
+
+ * ext/racc/cparse/cparse.c (cparse_params_mark): remove useless
+ rb_gc_mark. Thanks Tomoyuki Chikanaga. [ruby-dev:30405]
+
+Sat Feb 24 07:31:35 2007 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+
+ * ext/win32ole/win32ole.c: add WIN32OLE_VARIANT.array,
+ WIN32OLE_VARIANT#value=, refactoring.
+
+ * test/win32ole/test_win32ole_variant.rb: add some test for
+ WIN32OLE_VARIANT.array, WIN32OLE_VARIANT#value=.
+
+Fri Feb 23 18:37:55 2007 Minero Aoki <aamine@loveruby.net>
+
+ * test/ruby/test_yield.rb: new test.
+
+ * yarvtest/test_yield.rb: removed (moved to test_yield.rb).
+
+Fri Feb 23 18:27:17 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * thread.c (rb_thread_polling): check interrupts here.
+
+ * thread_win32.ci (w32_wait_events): rename from w32_wait_event(), and
+ now receive multiple event handles.
+
+ * win32/win32.c (wait_events, rb_w32_main_context): removed.
+
+ * thread_win32.ci (rb_w32_wait_events): new function.
+
+ * thread_win32.ci, win32/win32.c (rb_w32_sleep, rb_w32_Sleep): move
+ from win32/win32.c to thread_win32.ci, and use w32_wait_events().
+
+Fri Feb 23 18:13:22 2007 Minero Aoki <aamine@loveruby.net>
+
+ * test/ruby/test_optimization.rb: new test (merges test_opts.rb).
+
+ * yarvtest/test_opts.rb: removed.
+
+Fri Feb 23 16:59:39 2007 Minero Aoki <aamine@loveruby.net>
+
+ * test/ruby/test_assignment.rb: merge yarvtest/test_massign.
+
+ * yarvtest/test_massign.rb: removed (merged to
+ test_assignment.rb).
+
+Fri Feb 23 15:58:20 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * signal.c (sighandler): need to re-install sighandler on some
+ platforms.
+
+Fri Feb 23 15:05:57 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/win32.c (set_pioinfo_extra): simplified.
+
+Fri Feb 23 14:23:20 2007 Minero Aoki <aamine@loveruby.net>
+
+ * test/ruby/test_literal.rb: new test.
+
+Fri Feb 23 12:40:12 2007 James Edward Gray II <james@grayproductions.net>
+
+ * lib/xmlrpc/client.rb (XMLRPC::Client::do_rpc): Make the
+ Content-Length parameter optional for responses in
+ xmlrpc/client.rb; suggested by Daniel Berger
+ <Daniel.Berger@qwest.com> and approved by the maintainer.
+
+ * lib/xmlrpc/create.rb (XMLRPC::Create::conv2value): Add DateTime
+ support to xmlrpc; approved by the maintainer.
+
+Fri Feb 23 12:24:46 2007 Minero Aoki <aamine@loveruby.net>
+
+ * parse.y (lambda): add ripper event. This fixes bus error on
+ "make test-all".
+
+ * ext/ripper/extconf.rb: do not stop build.
+
+Fri Feb 23 12:16:05 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * parse.y: remove dyna_check_gen() prototype.
+
+Fri Feb 23 11:41:21 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * parse.y, compile.c, gc.c, insns.def, intern.h, iseq.c, node.h,
+ object.c, string.c, variable.c, vm_macro.def: revert private
+ instance variable feature, which is postponed until next major
+ release.
+
+ * marshal.c: TYPE_SYMBOL2 removed; MARSHAL_MINOR reverted back to
+ 8th version.
+
+Fri Feb 23 10:53:21 2007 Shugo Maeda <shugo@ruby-lang.org>
+
+ * thread_pthread.ci (native_mutex_lock): do not call
+ pthread_mutex_trylock().
+
+Fri Feb 23 10:31:16 2007 Minero Aoki <aamine@loveruby.net>
+
+ * dln.c: use dlopen on Mac OS X 10.3 or later.
+
+Fri Feb 23 10:03:49 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (rb_str_ord): need not to check string length; ord
+ returns a codepoint for the first character in the string.
+
+Wed Feb 21 22:29:45 2007 Akinori MUSHA <knu@iDaemons.org>
+
+ * numeric.c (fix_equal): A bit more optimization.
+
+Wed Feb 21 17:40:37 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * numeric.c (fix_equal): remove FIX2LONG() to optimize. suggested
+ in http://t-a-w.blogspot.com/2007/02/making-ruby-faster.html.
+ [ruby-talk:240223]
+
+ * numeric.c (fix_cmp): ditto.
+
+Wed Feb 21 09:14:04 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval_load.c (rb_require_safe): should restore safe level.
+
+Tue Feb 20 21:19:29 2007 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+
+ * ext/win32ole/win32ole.c (installed_code_page_proc,
+ ole_variant2val): small refactoring.
+
+Tue Feb 20 15:11:42 2007 Koichi Sasada <ko1@atdot.net>
+
+ * eval.c, vm.c, yarvcore.h: move definition of rb_call_super() to
+ vm.c from eval.c. change th_call_super() to static function.
+
+Tue Feb 20 15:08:25 2007 Koichi Sasada <ko1@atdot.net>
+
+ * test/io/nonblock/test_flush.rb: YARV doesn't raise any errors if
+ another thread close IO object which current thread is blocking with.
+
+Tue Feb 20 15:03:29 2007 Koichi Sasada <ko1@atdot.net>
+
+ * thread.c (do_select, rb_thread_wait_fd_rw): raise sys error if
+ errno is not 0 and EBADF.
+
+Mon Feb 19 22:15:31 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (RUBY_REPLACE_TYPE): cache convertible type info.
+
+ * intern.h (rb_detach_process): use rb_pid_t instead of pid_t.
+
+ * ruby.h (PIDT2NUM, NUM2PIDT, UIDT2NUM, NUM2UIDT, GIDT2NUM, NUM2GIDT):
+ defaulted to conversion using long.
+
+Mon Feb 19 17:14:28 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ext/socket/socket.c (unix_peeraddr): wrong syscall name in error
+ message for #peeraddr. a patch from Sam Roberts
+ <sroberts at uniserve.com>. [ruby-core:10366]
+
+Sun Feb 18 22:56:07 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/etc/etc.c (etc_getgrgid): missed to replace a macro.
+
+Sun Feb 18 19:33:00 2007 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * lib/date/format.rb: updated based on date2 4.0.3.
+
+Sun Feb 18 13:11:51 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (pid_t, uid_t, gid_t): check if defined.
+
+ * intern.h, process.c, rubyio.h, ext/etc/etc.c, ext/pty/pty.c: use
+ rb_{pid,uid,gid}_t instead of plain int. [ruby-dev:30376]
+
+ * ext/etc/extconf.rb (PIDT2NUM, NUM2PIDT, UIDT2NUM, NUM2UIDT, GIDT2NUM,
+ NUM2GIDT): moved to configure.in.
+
+Fri Feb 16 21:34:33 2007 Koichi Sasada <ko1@atdot.net>
+
+ * object.c (rb_obj_ivar_set/get/defined): fix to check :@_v/C id.
+
+ * test/testunit/test_testcase.rb: fix to use instance_variable_get()
+ to access @_result.
+
+Fri Feb 16 20:59:10 2007 Koichi Sasada <ko1@atdot.net>
+
+ * intern.h: add a prototype of rb_sym_to_s().
+
+Fri Feb 16 19:24:22 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * math.c (math_log): update document to mention second optional
+ argument for logarithm base.
+
+Fri Feb 16 19:19:21 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * parse.y (mrhs): need to append by arg_append().
+ [ruby-talk:239385]
+
+Fri Feb 16 11:18:21 2007 Eric Hodel <drbrain@segment7.net>
+
+ * lib/.document: Apply patch for irb, e2mmap and README by Hugh Sasse
+ <hgs at dmu.ac.uk> from [ruby-core:10135]
+
+ * lib/prettyprint.rb: Suppress RDoc for PrettyPrint test suite.
+
+Thu Feb 15 20:48:36 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/win32.c (set_pioinfo_extra): new function for VC++8 SP1
+ workaround. [ruby-core:10259]
+
+ * win32/win32.c (NtInitialize): call above function.
+
+Thu Feb 15 16:25:54 2007 Akinori MUSHA <knu@iDaemons.org>
+
+ * lib/uri/generic.rb (URI::Generic::userinfo): Considering how
+ `scheme://user:@...', `scheme://:password@...' and
+ `scheme://:@...' are parsed, an empty user name or password
+ should be allowed and represented as it is.
+
+Thu Feb 15 01:52:53 2007 Koichi Sasada <ko1@atdot.net>
+
+ * vm.(c|h), yarvcore.(c|h) (yarvGlobalStateVersion): rename to
+ ruby_vm_global_state_version.
+
+Thu Feb 15 01:50:26 2007 Koichi Sasada <ko1@atdot.net>
+
+ * test/fileutils/test_fileutils.rb (check_singleton): fix to use
+ symbol instead of string.
+
+ * test/io/nonblock/test_flush.rb: enable tests.
+
+ * test/xmlrpc/test_webrick_server.rb: ditto.
+
+Thu Feb 15 01:43:45 2007 Koichi Sasada <ko1@atdot.net>
+
+ * lib/delegate.rb: catch up with class local variable (@_v) spec.
+
+ * lib/singleton.rb: ditto.
+
+Wed Feb 14 22:52:43 2007 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+
+ * ext/win32ole/win32ole.c (ole_variant2val): VC++6 does not
+ support VT_I8, VT_UI8.
+
+Wed Feb 14 22:10:21 2007 Koichi Sasada <ko1@atdot.net>
+
+ * configure.in: change stack limit to 2MB from 32MB.
+
+ * win32/Makefile.sub: ditto.
+
+Wed Feb 14 21:39:36 2007 Akinori MUSHA <knu@iDaemons.org>
+
+ * ext/digest/lib/digest.rb (Digest::self.const_missing): Drop
+ autoloads for sha2 classes in favor of handling in
+ const_missing(), to work around a problem exposed on OS X.
+
+Wed Feb 14 21:19:47 2007 Koichi Sasada <ko1@atdot.net>
+
+ * thread_pthread.ci (native_thread_create): adjust 4KB (page size)
+ alignment.
+
+Wed Feb 14 21:12:36 2007 Koichi Sasada <ko1@atdot.net>
+
+ * thread_pthread.ci (CHECK_ERR): call rb_bug()
+ instead of printf() and exit().
+
+Wed Feb 14 16:48:56 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/date/format.rb (Date::Format::Bag::method_missing): need not
+ to use instance variables corresponding each method; use Hash
+ instead.
+
+Wed Feb 14 13:12:06 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * re.c (reg_operand): allow symbols to be operands for regular
+ expression matches.
+
+ * string.c (Init_String): allow Symbol#===.
+
+ * lib/date/format.rb (Date::Format::Bag::to_hash): string
+ added prefixes.
+
+Wed Feb 14 12:58:38 2007 Koichi Sasada <ko1@atdot.net>
+
+ * thread.c (do_select): fix to iterate select().
+ on cygwin/mswin32, iterate in unblocking region.
+
+ * thread.c (rb_thread_select): don't iterate on this function.
+ (iterate in do_select).
+
+Wed Feb 14 11:39:18 2007 Koichi Sasada <ko1@atdot.net>
+
+ * thread.c (set_unblock_function): fix function interface.
+
+Wed Feb 14 11:12:02 2007 Koichi Sasada <ko1@atdot.net>
+
+ * eval_load.c, yarvcore.h: use rb_vm_t#loaded_features instead of
+ rb_features (global variable).
+
+ * yarvcore.c: mark rb_vm_t#loaded_features.
+
+Wed Feb 14 08:46:25 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * compile.c (defined_expr): no longer distinguish ordinary local
+ variables and in-block local variables in defined? value.
+
+Wed Feb 14 03:14:42 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/uri/generic.rb (URI::Generic::userinfo): should support
+ empty password. [ruby-core:10290]
+
+ * lib/uri/generic.rb (URI::Generic::set_password): password can be
+ cleared by nil. [ruby-core:10290]
+
+Wed Feb 14 03:10:33 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * parse.y (struct local_vars): no need to warn out-of-scope
+ variables; remove dnames member from struct.
+
+Wed Feb 14 03:04:10 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * parse.y: RVarmap no longer used as yytype; removed.
+
+ * parse.y (dyna_push_gen): no longer need return value.
+
+ * parse.y (dyna_pop_gen): no longer need argument.
+
+ * parse.y (local_push_gen): initialize nofree.
+
+Wed Feb 14 00:30:07 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ext/socket/socket.c (init_unixsock): path may contain NUL for
+ abstract unix sockets. [ruby-core:10288]
+
+Tue Feb 13 02:21:12 2007 Sam Roberts <sroberts@uniserve.com>
+
+ * io.c (rb_f_syscall): Fix buffer overflow with syscall
+ arguments. [ruby-bugs:PR#8541]
+
+Mon Feb 12 13:57:30 2007 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+
+ * ext/win32ole/win32ole.c (ole_variant2val): support VT_I8, VT_UI8.
+
+Mon Feb 12 11:48:52 2007 Kouhei Sutou <kou@cozmixng.org>
+
+ * lib/rss/dublincore.rb, lib/rss/maker/dublincore.rb: dc_rightses
+ -> dc_rights_list. dc_rightses still exists for backward
+ compatibility. [ruby-core:8350]
+
+ * test/rss/test_maker_dc.rb: added tests for dc_rights_list.
+
+Sun Feb 11 22:40:17 2007 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+
+ * ext/win32ole/win32ole.c (ole_ptrtype2val): ole_type, ole_type_detail
+ should not return "VARIANT,VARIANT".
+
+Sun Feb 11 22:11:05 2007 Kouhei Sutou <kou@cozmixng.org>
+
+ * lib/rss/xml-stylesheet.rb (RSS::XMLStyleSheet#initialize):
+ kept backward compatibility.
+
+Sun Feb 11 22:10:08 2007 Kouhei Sutou <kou@cozmixng.org>
+
+ * lib/rss/parser.rb (RSS::ListenerMixin#start_else_element): used
+ const_defined? instead of constants.include?.
+
+Sun Feb 11 18:47:14 2007 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+
+ * ext/win32ole/win32ole.c (ole_val2olevariantdata):
+ WIN32OLE_VARIANT#new accepts nil when variant type is VT_ARRAY.
+
+ * test/win32ole/test_win32ole_variant.rb: ditto.
+
+ * ext/win32ole/win32ole.c: small refactoring.
+
+Sun Feb 11 07:42:25 2007 Akinori MUSHA <knu@iDaemons.org>
+
+ * lib/cgi.rb (CGI::QueryExtension::read_multipart): Properly parse
+ a quoted-string in a Content-Disposition value.
+
+Sat Feb 10 20:21:29 2007 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+
+ * ext/win32ole/win32ole.c: add WIN32OLE#ole_query_interface.
+ thanks to Mikael Pahmp.
+
+ * test/win32ole/test_win32ole.rb: ditto.
+
+Sat Feb 10 17:46:52 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * common.mk: targets which depend on yarvcore.h now depend on
+ rubysig.h too.
+
+ * yarvcore.h (rb_vm_t): use rb_atomic_t instead of int.
+
+Sat Feb 10 00:13:11 2007 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/tk.rb: fix typo (TkConfigMethod::__confinfo_cmd,
+ __conv_keyonly_opts).
+
+Fri Feb 9 12:33:40 2007 Koichi Sasada <ko1@atdot.net>
+
+ * thread_win32.ci (w32_show_error_message): renamed to w32_error.
+ this function do rb_bug().
+
+ * thread_win32.ci (w32_set_event, w32_reset_event, w32_close_handle,
+ w32_resume_thread): added. fix to use these functions instead calling
+ win32api directly.
+
+ * thread_win32.ci (w32_create_thread): create suspend thread
+ (caller must call w32_resume_thread()).
+
+Fri Feb 9 11:03:40 2007 Koichi Sasada <ko1@atdot.net>
+
+ * test/ruby/test_readpartial.rb: tests are working on mswin32/cygwin.
+
+Fri Feb 9 05:08:17 2007 Koichi Sasada <ko1@atdot.net>
+
+ * thread.c, thread_pthread.ci, thread_win32.ci (thread_start_func_1):
+ move cleanup function to thread_start_func_2().
+
+ * thread.c, thread_pthread.ci, thread_win32.ci:
+ add more destruct functions.
+ (native_thread_destroy() and native_mutex_destroy())
+
+ * thread_pthread.ci, thread_pthread.h: make native_mutex_* functions
+ (check error, etc), it's not macro any more.
+
+ * thread_win32.ci (thread_start_func_1): store some values before
+ running thread (to release these after running thread).
+
+ * thread_win32.ci (native_thread_create): fix spaces.
+
+Thu Feb 8 22:44:04 2007 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+
+ * ext/win32ole/win32ole.c (ole_set_safe_array, ole_variant2val,
+ ole_val_ary2variant_ary): fix WIN32OLE_VARIANT.new bug when
+ 1st argument is empty array, and when 2nd argument is
+ VT_ARRAY|VT_BYREF.
+
+ * test/win32ole/test_win32ole_variant.rb: ditto.
+
+Thu Feb 8 22:39:09 2007 Koichi Sasada <ko1@atdot.net>
+
+ * yarvtest/yarvtest.rb: check target command names.
+
+Thu Feb 8 22:31:45 2007 Koichi Sasada <ko1@atdot.net>
+
+ * test/ruby/test_clone.rb: fix to current spec
+ (Module should not be occur many times in ancestors).
+
+Thu Feb 8 22:26:14 2007 Koichi Sasada <ko1@atdot.net>
+
+ * test/ruby/test_string.rb: ("foo" == :foo) and ("foo" === :foo)
+ should be false.
+
+ * ChangeLog: fix last messages.
+
+Thu Feb 8 22:24:06 2007 Koichi Sasada <ko1@atdot.net>
+
+ * test/ruby/test_module.rb: fix to use Symbol instead of String.
+
+ * test/ruby/test_module.rb: remove space before argument parentheses.
+
+Thu Feb 8 22:02:14 2007 Koichi Sasada <ko1@atdot.net>
+
+ * test/ruby/marshaltestlib.rb: eval(sym) -> eval(sym.to_s)
+
+Thu Feb 8 21:35:16 2007 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+
+ * test/win32ole/test_propertyputref.rb (setup): fix typo.
+
+ * test/win32ole/test_win32ole_event.rb: should not use
+ InternetExplorer.gohome to test.
+
+Thu Feb 8 21:02:07 2007 Koichi Sasada <ko1@atdot.net>
+
+ * thread.c (GVL_UNLOCK_RANGE): rename to BLOCKING_REGION().
+
+ * thread.c (rb_thread_run_parallel): rename to
+ rb_thread_blocking_region().
+
+Thu Feb 8 15:48:44 2007 Koichi Sasada <ko1@atdot.net>
+
+ * yarvcore.h, thread.c: fix to use pthread on cygwin.
+
+ * yarvcore.h, thread.c: move GVL_UNLOCK_BEGIN() and GVL_UNLOCK_END()
+ from yarvcore.h to thread.c.
+
+ * thread.c: change GVL_UNLOCK_RANGE() arguments
+ (adding ubf as 2nd argument).
+
+ * thread.c: fix to use polling in select on cygwin and mswin32.
+
+ * thread.c, thread_pthread.ci, thread_win32.ci, yarvcore.h:
+ rename:
+ * rb_thread_t#interrupt_function -> unblock_function
+ * rb_interrupt_function_t -> rb_unblock_function
+ * some interrupt function name -> ubf_*
+ * yarv_* -> *
+
+Thu Feb 8 16:08:02 2007 Koichi Sasada <ko1@atdot.net>
+
+ * common.mk: fix to use RUNRUBY instead of BASERUBY if possible.
+
+ * common.mk ($(INSNS) rule): remove $(PROGRAM) first.
+
+Thu Feb 8 15:43:05 2007 Koichi Sasada <ko1@atdot.net>
+
+ * process.c: fix to use rb_status_line_set/get/clear().
+
+ * eval_intern.h: fix line break.
+
+Thu Feb 8 15:00:14 2007 Koichi Sasada <ko1@atdot.net>
+
+ * blockinlining.c, error.c, eval.c, eval_error.h, eval_intern.h,
+ eval_jump.h, eval_load.c, eval_safe.h, gc.c, proc.c, signal.c,
+ thread.c, thread_pthread.ci, thread_win32.ci, vm.c, vm.h,
+ vm_dump.c, vm_evalbody.ci, yarvcore.c, yarvcore.h:
+ fix typo (rb_thead_t -> rb_thread_t).
+
+ * eval_intern.h: remove unused definitions.
+
+ * common.mk: fix around vm_opts.h path
+ and remove harmful argument passed to insns2vm.rb.
+
+Thu Feb 8 03:11:47 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/cgi.rb (CGI::unescapeHTML): invalid decoding for single
+ unescaped ampersand. a patch from Tietew
+ <tietew+ruby-dev at tietew.net> in [ruby-dev:30292].
+ fixed: [ruby-dev:30289]
+
+Wed Feb 7 23:25:31 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (specific_eval): suppress warning.
+
+ * thread_win32.h: undefine _WIN32 on cygwin. [ruby-dev:30303]
+
+Wed Feb 7 22:41:34 2007 Koichi Sasada <ko1@atdot.net>
+
+ * eval_intern.h: remove UNSUPPORTED() macro.
+
+ * thread.c: fix to define Continuation methods
+ (they only do rb_notimplement()).
+
+Wed Feb 7 22:33:58 2007 Koichi Sasada <ko1@atdot.net>
+
+ * eval_intern.h, yarvcore.h: remove unused macro definition.
+
+Wed Feb 7 22:30:28 2007 Koichi Sasada <ko1@atdot.net>
+
+ * eval.c: fixed to use ANSI function style.
+
+Wed Feb 7 09:35:32 2007 Koichi Sasada <ko1@atdot.net>
+
+ * this commit is a result of refactoring. only renaming functions,
+ moving definitions place, add/remove prototypes, deleting
+ unused variables and removing yarv.h.
+ This commit doesn't change any behavior of ruby/vm.
+
+ * yarv.h, common.mk: remove yarv.h (contents are moved to yarvcore.h).
+
+ * error.c, eval_intern.h: include yarvcore.h instead yarv.h
+
+ * rename some functions:
+ * debug.[ch]: debug_*() -> ruby_debug_*()
+ * iseq.c: iseq_*() -> rb_iseq_*(), ruby_iseq_disasm()
+ * iseq.c: node_name() -> ruby_node_name()
+ * vm.c: yarv_check_redefinition_opt_method() ->
+ rb_vm_check_redefinition_opt_method()
+
+ * some refactoring with checking -Wall.
+
+ * array.c: remove rb_ary_ptr() (unused) and remove unused
+ local variables.
+
+ * object.c: add a prototype of rb_mod_module_exec().
+
+ * eval_intern.h (ruby_cref): set it inline.
+
+ * eval_load.c (rb_load), yarvcore.c: yarv_load() -> rb_load_internal().
+
+ * parse.y: add a prototype of rb_parse_in_eval() (in eval.c).
+
+ * process.c: add a prototype of rb_thread_stop_timer_thread() (in thread.c).
+
+ * thread.c: remove raw_gets() function (unused) and fix some format
+ mismatch (format mismatches have remained yet. this is todo).
+
+ * thread.c (rb_thread_wait_fd_rw): fix typo on label name.
+
+ * thread_pthread.ci: comment out codes with USE_THREAD_CACHE.
+
+ * vm.c (rb_svar, rb_backref_get, rb_backref_get,
+ rb_lastline_get, rb_lastline_set) : moved from yarvcore.c.
+
+ * vm.c (yarv_init_redefined_flag): add a prototype and rename
+ yarv_opt_method_table to vm_opt_method_table.
+
+ * vm.c (rb_thread_eval): moved from yarvcore.c.
+
+ * yarvcore.c: remove unused global variables and fix to use nsdr().
+
+Wed Feb 7 03:39:32 2007 Koichi Sasada <ko1@atdot.net>
+
+ * blockinlining.c, compile.c, compile.h, error.c, eval.c,
+ eval_intern.h, eval_jump.h, eval_load.c, eval_method.h,
+ eval_safe.h, gc.c, insnhelper.h, insns.def, iseq.c, proc.c,
+ process.c, signal.c, thread.c, thread_pthread.ci, thread_win32.ci,
+ vm.c, vm.h, vm_dump.c, vm_evalbody.ci, vm_macro.def,
+ yarv.h, yarvcore.h, yarvcore.c: change type and macro names:
+ * yarv_*_t -> rb_*_t
+ * yarv_*_struct -> rb_*_struct
+ * yarv_tag -> rb_vm_tag
+ * YARV_* -> RUBY_VM_*
+
+ * proc.c, vm.c: move functions about env object creation
+ from proc.c to vm.c.
+
+ * proc.c, yarvcore.c: fix rb_cVM initialization place.
+
+ * inits.c: change Init_ISeq() order (after Init_VM).
+
+ * ruby.h, proc.c: change declaration place of rb_cEnv
+ from proc.c to ruby.c.
+
+Tue Feb 6 22:06:45 2007 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * ext/nkf/nkf-utf8/{nkf.c,utf8tbl.c}:
+ imported nkf 2007-01-28.
+ * Fixed: can't decode MIME encode JIS string.
+ * Fixed: Fullwidth-halfwidth conversion.
+ * Support DoCoMo's and Softbank's EMOJI
+ * Support CP932, CP5022x, eucJP-ms UDC
+ * Support UTF-32 encoding
+ * Support beyond BMP
+ [ruby-dev:29700] [ruby-dev:29922] [ruby-dev:30144]
+
+Tue Feb 6 20:36:19 2007 Kouhei Sutou <kou@cozmixng.org>
+
+ * lib/rss/rss.rb, lib/rss/parser.rb: followed current Ruby
+ specification. [ruby-dev:30274]
+
+Tue Feb 6 20:29:44 2007 Kouhei Sutou <kou@cozmixng.org>
+
+ * lib/rss/rss.rb, lib/rss/parser.rb: removed needless code for
+ backward compatibility.
+
+Tue Feb 6 18:43:17 2007 Shugo Maeda <shugo@ruby-lang.org>
+
+ * lib/net/ftp.rb: moved fixes for EPIPE to the correct
+ place. [ruby-core:10204]
+
+Tue Feb 6 16:38:08 2007 Koichi Sasada <ko1@atdot.net>
+
+ * vm_opts.h: set properties:
+ svn:keywords: Author Date Id Revision
+ svn:eol-style: native
+
+Tue Feb 6 15:55:46 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * variable.c (ivar_i): need to support class local instance
+ variables.
+
+Tue Feb 6 15:44:11 2007 Koichi Sasada <ko1@atdot.net>
+
+ * compile.c (iseq_compile_each): fix setting is_local flag.
+
+ * yarvtest/test_class.rb: add a test for class local instance variable.
+
+Tue Feb 6 14:15:34 2007 Koichi Sasada <ko1@atdot.net>
+
+ * compile.c, insns.def: remove (get|set)instancevariable2 and add a
+ operand is_local to (get|set)instancevariable.
+
+ * yarvtest/test_class.rb: add a test for class local instance variable.
+
+ * parse.y (rb_decompose_ivar2): remove unused variable oid.
+
+ * tool/insns2vm.rb: remove needless require.
+
+Tue Feb 6 11:18:41 2007 Shugo Maeda <shugo@ruby-lang.org>
+
+ * lib/net/ftp.rb: check the control connection on EPIPE.
+ Thanks, Simon Williams. [ruby-core:9547]
+
+Tue Feb 6 11:03:27 2007 Koichi Sasada <ko1@atdot.net>
+
+ * complement last commit.
+
+ * common.mk (*.inc): use VPATH.
+
+ * vm_opts.h: renamed from vm_opts.h.base.
+
+Tue Feb 6 10:02:41 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * tool/insns2vm.rb: use vm_opts.h in VPATH.
+
+Tue Feb 6 03:47:58 2007 Koichi Sasada <ko1@atdot.net>
+
+ * proc.c: support Binding#eval.
+
+ * yarvtest/test_eval.rb: add a test for above change.
+
+Tue Feb 6 03:13:33 2007 Koichi Sasada <ko1@atdot.net>
+
+ * proc.c: refactoring (remove K&R style, move Binding stuffs from
+ Init_Proc() to Init_Binding()).
+
+Tue Feb 6 01:07:14 2007 Koichi Sasada <ko1@atdot.net>
+
+ * intern.h: prepare rb_last_status_get() and rb_last_status_set().
+ Use these functions instead of rb_last_status ([ruby-dev:30264]).
+
+ * process.c: define above functions.
+
+ * ext/pty/pty.c: use above functions.
+
+ * io.c (pipe_finalize): ditto.
+
+ * process.c: ditto.
+
+Mon Feb 5 21:26:56 2007 Koichi Sasada <ko1@atdot.net>
+
+ * ruby.h: add a prototype of rb_id2str().
+
+Mon Feb 5 21:06:50 2007 Koichi Sasada <ko1@atdot.net>
+
+ * eval_thread.c, common.mk: remove eval_thread.c.
+
+ * yarvcore.c: rename cYarvThread to rb_cThread.
+
+ * gc.c: remove YARV_* prefix.
+
+ * gc.h: add an include guard and prototype of rb_gc_set_stack_end().
+
+ * inits.c: fix to ANSI prototype style and reorder Init_*().
+
+ * io.c (pipe_finalize): TODO: comment out last_status.
+
+ * process.c, yarvcore.h: fix to use yarv_vm_t#last_status instead of
+ rb_last_status and make last_status_get() to access $?.
+
+ * yarvcore.c (vm_mark): mark yarv_vm_t#last_status.
+
+ * ruby.h: add declarations of rb_cISeq and rb_cVM.
+
+ * thread.c: move eval_thread.c codes to thread.c and remove yarv_*
+ function prefix.
+
+ * thread.c (thread_start_func_2): use yarv_thread_t#first_func if
+ it is not null.
+
+ * vm.c: fix copyright year.
+
+ * yarvcore.c (Init_vm): rename to Init_VM().
+
+Mon Feb 5 04:09:48 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (rb_frame_callee): check if prev_cfp can be accessible.
+ a patch from Yoshinori Sano <yoshinori.sano at gmail.com> in
+ [ruby-dev:30252]. solves [ruby-dev:30200] and [ruby-core:9856].
+
+Sun Feb 4 20:34:41 2007 Kouhei Sutou <kou@cozmixng.org>
+
+ * test/rss/rss-assertions.rb: removed needless code for backward
+ compatibility.
+
+Sun Feb 4 02:22:59 2007 Akinori MUSHA <knu@iDaemons.org>
+
+ * lib/cgi.rb (CGI::QueryExtension::read_multipart): Remove a debug
+ print.
+
+Sat Feb 3 23:51:58 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * parse.y (rb_compose_ivar2): function to create a new ivar2
+ symbol from a symbol and a class. back-ported from matzruby.
+
+ * parse.y (rb_decompose_ivar2): reverse function of
+ rb_compose_ivar2().
+
+ * marshal.c (w_symbol): support class local instance variables.
+
+ * marshal.c (r_object0): ditto.
+
+ * compile.c (defined_expr): ditto.
+
+ * compile.c (iseq_compile_each): ditto.
+
+ * insns.def: add two new instructions: getinstancevariable2 and
+ setinstancevariable2.
+
+Sat Feb 3 23:21:13 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * insns.def (setclassvariable): remove unnecessary operand.
+
+ * compile.c (iseq_compile_each): ditto.
+
+ * common.mk (insns_info.inc): add dependency for insns_info.inc.
+
+Sat Feb 3 14:32:58 2007 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+
+ * ext/win32ole/win32ole.c (ole_val2olevariantdata, ole_val2variant):
+ fix the bug of WIN32OLE_VARIANT.new when variant type is
+ VT_ARRAY.
+
+ * ext/win32ole/sample/excel1.rb: rewrite using WIN32OLE_VARIANT.
+
+ * test/win32ole/test_win32ole.rb: add some test.
+
+ * test/win32ole/test_win32ole_variant.rb: ditto.
+
+Sat Feb 3 03:35:20 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * Makefile.in, */Makefile.sub, common.mk (vmasm): generalized.
+
+ * common.mk (runruby, benchmark, benchmark-each, tbench): use
+ PROGRAM for the file to be built.
+
+ * proc.c (yarv_proc_alloc): needs return.
+
+ * call_cfunc.ci, compile.c, compile.h, debug.h, eval.c,
+ eval_error.h, eval_jump.h, eval_load.c, eval_thread.c, gc.c,
+ insnhelper.h, insns.def, iseq.c, main.c, numeric.c, parse.y,
+ range.c, ruby.h, signal.c, thread.c, thread_win32.ci, vm.c,
+ vm.h, vm_dump.c, vm_evalbody.ci, yarvcore.c, yarvcore.h:
+ fixed indents and non-C90 comments.
+
+ * regenc.h: revert to before YARV.
+
+ * lib/mkmf.rb (create_makefile): make object files depend on
+ extconf.h even if depend file exists.
+
+Fri Feb 2 23:39:42 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * common.mk (bin): add more dependency. a patch from Tadashi
+ Saito <shiba at mail2.accsnet.ne.jp>. [ruby-dev:30245]
+
+Fri Feb 2 18:44:31 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * insns.def (setclassvariable): remove warn argument.
+
+Fri Feb 2 18:36:40 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * common.mk (compile.$(OBJEXT)): add config.h to vm.c and
+ compile.c.
+
+Fri Feb 2 18:27:54 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c: remove duplicated global variables rb_cProc and
+ rb_cBinding. [ruby-dev:30242]
+
+Fri Feb 2 00:13:44 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ruby.h (SYMBOL_P): make Symbol immediate again for performance.
+
+ * string.c: redesign symbol methods.
+
+Thu Feb 1 23:25:21 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (rb_id2str): store Strings for operator symbols.
+ [ruby-dev:30235]
+
+Thu Feb 1 21:04:39 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * parse.y (assignable_gen): no need to generate NODE_CVDECL.
+
+ * compile.c (iseq_compile_each): no NODE_CVDECL.
+
+Thu Feb 1 20:53:32 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * vm.c (eval_get_cvar_base): destination for class variable access
+ is now strictly innermost surrounding class or module. warned
+ if accessed from toplevel.
+
+ * variable.c (rb_cvar_get): new class variable look-up scheme:
+ 1) look up in the class. 2) if the class is singleton attached
+ to a class (i.e. metaclass) then start look up in the attached
+ class and its ancestors. 3) otherwise, look-up in ancestors of
+ the class.
+
+ * eval.c (cvar_cbase): destination for class variable access is
+ the class/module that holds the method, or cbase outside of
+ methods.
+
+Thu Feb 1 20:31:41 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * variable.c (rb_cvar_set): remove warn argument.
+
+Wed Jan 31 14:52:09 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * test/ruby/test_iterator.rb (TestIterator::test_block_given_within_iterator):
+ add new test. [ruby-core:10125]
+
+Tue Jan 30 17:01:21 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * string.c (rb_str_sub_bang): calling rb_str_modify() should be just
+ before actually modifying the string.
+ fixed: [ruby-dev:30211] (originally reported by zunda)
+
+Tue Jan 30 13:24:06 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * numeric.c (int_pred): add Integer#pred corresponding
+ Integer#succ. [RCR#5]
+
+Tue Jan 30 12:05:35 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * mkconfig.rb: autoconf 2.61 support. [ruby-core:10016]
+
+Mon Jan 29 23:52:32 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * tool/compile.rb: replace YARVCore by VM class.
+
+Mon Jan 29 17:52:44 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/date/format.rb (Date::Format::Bag::method_missing): add
+ prefix to avoid making t class-local instance variable.
+
+Mon Jan 29 21:32:37 2007 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+
+ * ext/win32ole/win32ole.c: add WIN32OLE.locale=, WIN32OLE.locale,
+ WIN32OLE_VARIANT#vartype.
+
+ * test/win32ole/test_win32ole.rb: add test for WIN32OLE.locale=,
+ WIN32OLE.locale.
+
+ * test/win32ole/test_win32ole_variant.rb: add test for
+ WIN32OLE_VARIANT#vartype.
+
+Mon Jan 29 14:14:35 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * tool/parse.rb: replace YARVCore by VM class.
+ http://d.hatena.ne.jp/ysano2005/20070128
+
+Sun Jan 28 08:41:49 2007 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+
+ * ext/win32ole/win32ole.c: refactoring.
+
+Sat Jan 27 18:36:33 2007 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+
+ * ext/win32ole/win32ole.c (ole_val2olevariantdata): bug fix.
+ WIN32OLE_VARIANT.new check that 1st argument should T_ARRAY
+ when variant type is VT_ARRAY.
+
+ * test/win32ole/test_win32ole_variant.rb: add some test.
+
+Fri Jan 26 23:55:56 2007 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+
+ * ext/win32ole/win32ole.c: bug fix of WIN32OLE_VARIANT when variant
+ type is VT_BYREF|VT_VARIANT.
+
+ * test/win32ole/test_win32ole_variant_with_ie.rb: ditto.
+
+Fri Jan 26 12:03:39 2007 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/tk.rb (TkConfigMethod#__confinfo_cmd,
+ __conv_keyonly_optkeys): make them private [ruby-dev:30074].
+
+ * ext/tk/lib/tk/txtwin_abst.rb: fix typo [ruby-dev:30073].
+
+ * ext/tk/lib/tk/canvas.rb (TkCanvas#scan_dragto): lack of an argument.
+
+ * ext/tk/lib/tk/canvas.rb: clarify the including module name
+ [ruby-dev:30080].
+
+ * ext/tk/lib/tk/scrollable.rb: change primary name of modules
+ [ruby-dev:30080].
+
+Fri Jan 26 07:48:57 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * enumerator.c (enumerator_init_copy): need to copy internal
+ structure on clone and dup. [ruby-dev:30192]
+
+Wed Jan 24 20:34:51 2007 Kouhei Sutou <kou@cozmixng.org>
+
+ * test/ruby/test_iterator.rb: removed a needless workaround.
+
+Wed Jan 24 18:05:39 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * misc/ruby-mode.el (ruby-font-lock-syntactic-keywords): fix
+ regexp font-lock bug. [ruby-talk:235758]
+
+Tue Jan 23 18:26:12 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/cgi.rb (CGI::QueryExtension::read_multipart): use == instead
+ of ===. [ruby-dev:30176]
+
+Tue Jan 23 15:39:25 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * Makefile.in, common.mk, configure.in, */{Makefile.sub, configure.bat,
+ setup.mak}: add --with-baseruby configure option.
+
+Mon Jan 22 14:57:25 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ext/socket/socket.c: fix errors in socket sample code.
+ [ruby-core:09992]
+
+Sat Jan 20 21:05:18 2007 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+
+ * ext/win32ole/win32ole.c (fole_s_set_code_page): WIN32OLE.codepage=
+ accepts installed codepage.
+
+ * test/win32ole/test_win32ole.rb (test_s_codepage_changed): ditto.
+
+Sat Jan 20 11:18:49 2007 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+
+ * ext/win32ole/win32ole.c (ole_invoke, ole_invoke2, ole_propertyput):
+ modify WIN32OLERuntimeError message.
+
+ * test/win32ole/test_win32ole.rb: ditto.
+
+Sat Jan 20 06:45:21 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval_proc.c (method_receiver): add new method to get the bound
+ receiver of the method object. [ruby-talk:234949]
+
+ * eval_proc.c (method_name): new method to get the name of a
+ method.
+
+ * eval_proc.c (method_owner): a new method to get the class or
+ module that defines the method.
+
+Fri Jan 19 17:12:23 2007 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+
+ * ext/win32ole/win32ole.c (Init_win32ole): add WIN32OLE_VARIANT::Empty,
+ WIN32OLE_VARIANT::Null, WIN32OLE_VARIANT::Nothing.
+
+ * test/win32ole/test_win32ole_variant.rb: ditto.
+
+ * test/win32ole/test_nil2vtempty.rb(test_openSchema): ditto.
+
+Fri Jan 19 06:53:38 2007 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+
+ * ext/win32ole/win32ole.c (olevariant_free): fix memory leak.
+
+ * ext/win32ole/win32ole.c (ole_val2olevariantdata):
+ WIN32OLE_VARIANT.new accepts nil as first argument for some VARIANT
+ TYPE.
+
+ * test/win32ole/test_win32ole_variant.rb: ditto.
+
+Wed Jan 17 17:31:28 2007 Koichi Sasada <ko1@atdot.net>
+
+ * some refactoring around yarvcore and proc.
+
+ * eval_proc.c: renamed to proc.c.
+
+ * common.mk: ditto.
+
+ * yarvcore.h, yarvcore.c: rename or remove some global variables
+ removed: mYarvCore, mYarvInsns
+ renamed: cYarvISeq -> rb_cISeq,
+ cYarvProc -> rb_cProc, cYarvBinding -> rb_cBinding
+ ::YarvCore module is removed and ::YarvCore::VM class becomes ::VM.
+ And change/remove some functions which added with YARV.
+
+ * compile.c: ditto.
+
+ * eval.c: ditto.
+
+ * iseq.c: ditto.
+
+ * vm.c: ditto.
+
+ * inits.c: rename Init_yarvcore to Init_vm.
+
+ * yarvcore.c, proc.c: move some functions and initialization
+ from yarvcore.c to proc.c.
+
+ * intern.h, proc.c: add global function rb_binding_new(void).
+
+Tue Jan 16 17:49:29 2007 Koichi Sasada <ko1@atdot.net>
+
+ * vm.c (eval_search_super_klass): rename to search_super_klass() and
+ use it by th_call_super().
+
+ * insns.def: ditto.
+
+Tue Jan 16 17:48:11 2007 Koichi Sasada <ko1@atdot.net>
+
+ * common.mk: fix ruby script path.
+
+Tue Jan 16 17:39:44 2007 Koichi Sasada <ko1@atdot.net>
+
+ * vm.c (invoke_block): fix to specify self.
+
+Tue Jan 16 12:12:27 2007 Koichi Sasada <ko1@atdot.net>
+
+ * env.h: removed
+
+Tue Jan 16 12:00:06 2007 Koichi Sasada <ko1@atdot.net>
+
+ * eval_proc.c (rb_proc_new): added.
+
+ * string.c (sym_to_proc): supported.
+
+ * vm.c (invoke_block, th_invoke_yield, th_invoke_proc): fix to support
+ rb_proc_new.
+
+ * yarvcore.c: add a test code.
+
+Sat Jan 13 23:24:59 2007 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+
+ * ext/win32ole/win32ole.c (ole_free, ole_type_free,
+ olemethod_free, olevariable_free, oleparam_free,
+ ole_event_free): fix memory leak. [ruby-core:09846]
+
+Wed Jan 10 00:10:23 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * array.c (rb_ary_replace): use ptr and len of orig instead of
+ shared. fixed: [ruby-dev:30116]
+
+Tue Jan 9 17:48:38 2007 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * file.c (rb_find_file): should not call fpath_check() with NULL.
+ fixed: [ruby-core:09867]
+
+Tue Jan 9 12:29:20 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/etc/etc.c (etc_getpwuid, etc_getgrgid): fix to correctly
+ convert uid/gid from VALUE.
+
+ * ext/etc/etc.c (etc_getpwuid): ditto.
+
+Tue Jan 9 03:54:38 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (rb_str_upto): String#upto from empty string makes
+ infinite loop. [ruby-core:09864]
+
+ * string.c (rb_str_upto): use RSTRING_LEN().
+
+Sun Jan 7 18:36:05 2007 Koichi Sasada <ko1@atdot.net>
+
+ * thread.c (rb_thread_stop_timer_thread(), rb_thread_reset_timer_thread(),
+ rb_thread_start_timer_thread()): added.
+
+ * thread_pthread.ci: add a native_thread_join() and move
+ rb_thread_reset_timer_thread() definition to thread.c.
+
+ * thread_win32.ci: ditto
+
+ * process.c: fix before_exec(), after_exec() to stop timer thread
+ (and restart timer thread if exec failed). and fix to reset
+ timer thread information when forked child process starts
+ (to fix [ruby-core:09822]).
+
+Sun Jan 7 18:28:17 2007 Koichi Sasada <ko1@atdot.net>
+
+ * common.mk: add a "compare" rule and fix MATZRUBY variable
+
+Sun Jan 7 17:47:16 2007 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+
+ * test/win32ole/test_win32ole.rb: add test for WIN32OLE#[],
+ WIN32OLE#[]=.
+
+ * ext/win32ole/win32ole.c: update comment for rdoc of
+ WIN32OLE#[] and WIN32OLE#[]=.
+
+Sun Jan 7 12:13:26 2007 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rdoc/parsers/parse_c.rb (RDoc::C_Parser#find_class_comment):
+ Look for class and module comments above rb_define_class and
+ rb_define_module. Patch by Daniel Berger <djberg96 at gmail.com>
+
+Sun Jan 7 10:32:12 2007 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rdoc/parsers/parse_c.rb (RDoc::C_Parser#handle_constants):
+ Properly handle escaping of : in comments.
+ * test/rdoc/parsers/test_parse_c.rb:
+ Test RDoc::C_Parser#do_classes and Rdoc::C_Parser#find_class_comment.
+
+Sun Jan 7 09:31:18 2007 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * lib/date/format.rb: updated based on date2 4.0.1.
+
+Sat Jan 6 18:46:34 2007 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * io.c (rb_io_getline_fast, rb_io_getline): increase lineno
+ when met the delimiter or EOF. fixed: [ruby-dev:30081]
+
+ * io.c (prepare_getline_args, rb_io_getline_1): split
+ preparation of arguments and reading. [ruby-dev:30085]
+
+Sat Jan 6 13:48:36 2007 Koichi Sasada <ko1@atdot.net>
+
+ * insns.def (send): fix to optimize send() with Symbol.
+
+ * yarvtest/test_method.rb: add another test.
+
+Sat Jan 6 13:43:55 2007 Koichi Sasada <ko1@atdot.net>
+
+ * common.mk: add PHONY dependency to some rules
+
+Sat Jan 6 11:50:33 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * io.c (argf_read): fix wrong replacement. [ruby-dev:30070]
+
+Sat Jan 6 09:10:52 2007 Koichi Sasada <ko1@atdot.net>
+
+ * insns.def: support direct method dispatch with "send" or "funcall".
+ This means that "obj.send :m" skips "BasicObject#send" invocation
+ (method frame creation, etc) and "obj.m" invokes directly.
+ If you make backtrace, there are no entries of "send" method.
+
+ * compile.c (iseq_specialized_instruction): fix to support above
+
+ * eval.c: ditto (remove "static" from rb_f_send and rb_f_funcall
+
+ * yarvcore.c: ditto (add a external IDs for compiler)
+
+ * yarvcore.h: ditto (add a VM_CALL_SEND_BIT macro)
+
+ * yarvtest/test_method.rb: add tests for above changes
+
+ * eval.c: remove unused "Kernel#send" declaration
+
+Sat Jan 6 08:29:17 2007 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+
+ * ext/win32ole/win32ole.c (Init_win32ole): add
+ WIN32OLE::VARIANT::VT_EMPTY, WIN32OLE::VARIANT::VT_NULL
+
+ * test/win32ole/test_win32ole_variant_m.rb (test_variant): ditto.
+
+Sat Jan 6 03:49:22 2007 Koichi Sasada <ko1@atdot.net>
+
+ * benchmark/run.rb: change option format
+
+ * common.mk: ditto
+
+Fri Jan 5 22:21:08 2007 Koichi Sasada <ko1@atdot.net>
+
+ * benchmark/bm_app_pentomino.rb: use Array#dup instead of
+ Array#clone
+
+ * benchmark/bmx_temp.rb: removed
+
+ * benchmark/run.rb: use run.rb instead of run_rite.rb
+
+ * common.mk: ditto
+
+ * benchmark/run_rite.rb: removed
+
+ * common.mk: use $(srcdir)/test.rb to run a test program
+ with "make run"
+
+ * benchmark/bmx_temp.rb: removed and
+ set svn:ignore (bmx_*.rb) to benchmark/
+
+ * test.rb: set svn:ignore
+
+Fri Jan 5 21:03:08 2007 Koichi Sasada <ko1@atdot.net>
+
+ * yarvtest/yarvtest.rb: fix to compare results
+
+Fri Jan 5 20:52:56 2007 Koichi Sasada <ko1@atdot.net>
+
+ * compile.c, compile.h: add ADD_CALL_RECEIVER() macro.
+
+ * insns.def (send): use GET_SELF() direct if FCALL.
+
+ * eval.c (rb_f_send): check method dispatch type to permit
+ invoking private method when dispatch type is FCALL/VCALL
+
+ * insns.def (opt_ltlt): remove useless statement.
+
+ * vm.h: remove unused macros.
+
+Fri Jan 5 20:50:31 2007 Koichi Sasada <ko1@atdot.net>
+
+ * benchmark/run_rite.rb: fix to use readlines instead of
+ read(...).lines (because 1.8 doesn't have String#lines).
+
+Fri Jan 5 20:28:19 2007 Koichi Sasada <ko1@atdot.net>
+
+ * thread_win32.ci (rb_thread_reset_timer_thread):
+ added ([ruby-dev:30086]).
+
+Fri Jan 5 20:20:36 2007 Koichi Sasada <ko1@atdot.net>
+
+ * common.mk: add .SUFFIXES rule
+
+Fri Jan 5 15:58:15 2007 Koichi Sasada <ko1@atdot.net>
+
+ * eval_method.h (rb_alias): fix to check search result
+
+Fri Jan 5 13:59:53 2007 Koichi Sasada <ko1@atdot.net>
+
+ * eval_method.h (rb_add_method): fix to check old_node
+
+Fri Jan 5 12:03:07 2007 Koichi Sasada <ko1@atdot.net>
+
+ * compile.c (iseq_compile_each, set_block_local_tbl):
+ support NODE_LAMBDA (partly).
+
+ * sample/test.rb: restore test of NODE_LAMBDA
+
+ * test/ruby/test_lambda.rb: ditto
+
+Fri Jan 5 12:31:23 2007 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * thread_pthread.ci (native_sleep): fix tv_nsec overflow.
+
+Thu Jan 4 20:01:29 2007 Koichi Sasada <ko1@atdot.net>
+
+ * common.mk: rename yarv-test-[all/each] to compare-test[/-each].
+ purpose of "compare-test" rule is to compare ruby (trunk) and
+ matzruby (branches/matzruby) binary in miniruby level. MATZRUBY
+ parameter means an path to miniruby of matzruby binary. to do this
+ comparison test, you should build matzruby branch.
+
+ * yarvtest/yarvtest.rb: fix to use command line option as
+ command names to be compared.
+
+ * yarvtest/runner.rb: remove a debug output.
+
+Thu Jan 4 19:12:27 2007 Koichi Sasada <ko1@atdot.net>
+
+ * common.mk: fix to use test.rb script in build directory.
+ ($(srcdir)/test.rb -> test.rb)
+
+Thu Jan 4 17:28:05 2007 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * lib/webrick/utils.rb (WEBrick::Utils::TimeoutHandler#initialize):
+ Arrays could not be modified in its each block. [ruby-dev:30063]
+
+Thu Jan 4 16:57:14 2007 Koichi Sasada <ko1@atdot.net>
+
+ * yarv_version.h: removed.
+
+ * common.mk: remove yarv_version.h from rules
+
+ * yarvcore.h (Init_yarvcore): remove useless constants
+
+Thu Jan 4 17:00:06 2007 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * ext/openssl/ossl_asn1.c (Init_ossl_asn1):
+ OpenSSL::ASN1::ASN1Data#value,#tag,#tag_class and
+ OpenSSL::ASN1::BitString#unused_bits should be public.
+
+Thu Jan 4 13:45:10 2007 Koichi Sasada <ko1@atdot.net>
+
+ * thread_pthread.ci: fix last changes around PTHREAD_STACK_MIN.
+
+Thu Jan 4 13:42:47 2007 Koichi Sasada <ko1@atdot.net>
+
+ * common.mk: restore changes.
+
+Thu Jan 4 10:33:54 2007 Koichi Sasada <ko1@atdot.net>
+
+ * thread_pthread.ci: fix to skip using PTHREAD_STACK_MIN.
+ [ruby-dev:30063]
+
+Thu Jan 4 10:30:11 2007 Koichi Sasada <ko1@atdot.net>
+
+ * benchmark/run_rite.rb (bm): fix to use lines.
+
+Wed Jan 3 18:49:15 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * io.c (rb_io_getline): lineno update condition was wrong.
+ [ruby-dev:30065]
+
+ * io.c (rb_io_getline_fast): ditto.
+
+Wed Jan 3 11:36:51 2007 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * io.c (ruby_dup): start GC on ENOMEM as well.
+
+Tue Jan 2 10:29:54 2007 Eric Hodel <drbrain@segment7.net>
+
+ * ext/zlib/zlib.c: fix to compile on YARV
+ ruby_errinfo -> rb_errinfo()
+
+Mon Jan 1 08:07:06 2007 Koichi Sasada <ko1@atdot.net>
+
+ * ext/tk/tcltklib.c: fix to compile on YARV
+ ruby_errinfo -> rb_errinfo(),
+ ruby_safe_level -> rb_safe_level().
+
+Mon Jan 1 07:57:17 2007 Koichi Sasada <ko1@atdot.net>
+
+ * test/drb/test_drbssl.rb: fix to skip drb tests.
+
+Mon Jan 1 06:13:11 2007 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rdoc/parsers/c_parser.rb: Make Rdoc accessible. Update constant
+ value information.
+
+ * ext/bigdecimal/bigdecimal.c: Update constant comments to provide
+ values for RDoc.
+
+Mon Jan 1 06:05:55 2007 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rdoc/parsers/parse_c.rb (RDoc::C_Parser#handle_constants):
+ Allow RDoc comment to give friendly value for rb_define_const. Patch
+ by Daniel Berger <djberg96 at gmail.com>, [ruby-patches-7499].
+ * lib/rdoc/parsers/parse_c.rb (RDoc::C_Parser#handle_constants): Fix
+ whitespace handling in constant comments.
+
+Mon Jan 1 00:00:00 2007 Koichi Sasada <ko1@atdot.net>
+
+ * Merge YARV
+
+Sun Dec 31 16:22:48 2006 Eric Hodel <drbrain@segment7.net>
+
+ * array.c: Fix Array#reject.
+
+Sun Dec 31 00:46:25 2006 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * lib/date2.rb: removed.
+
+Sun Dec 31 00:15:13 2006 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * lib/date.rb, lib/date/format.rb: updated based on date2 4.0.
+
+Sat Dec 30 04:38:23 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * enum.c (enum_each_with_index): reuse array for yield parameters.
+
+ * enum.c (enum_min, enum_max): ditto.
+
+Sat Dec 30 04:25:29 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * enum.c (enum_inject): reuse array for yield parameters.
+
+Sat Dec 30 02:54:22 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ext/stringio/stringio.c (strio_gets): accepts limit argument.
+
+ * ext/stringio/stringio.c (strio_readline, strio_each,
+ strio_readlines): ditto.
+
+Sat Dec 30 02:22:32 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ext/stringio/stringio.c (strio_getline): add limit capability.
+
+ * io.c (rb_io_gets_m): accepts limit argument. [ruby-talk:231563]
+
+ * io.c (rb_io_readline, rb_io_readlines, rb_io_each_line, argf_getline):
+ ditto.
+
+ * io.c (appendline): add limit capability.
+
+ * io.c (rb_io_getline_fast, rb_io_getline): ditto.
+
+ * io.c (rb_io_getline): small refactoring for DRY.
+
+ * io.c (rb_io_s_foreach, rb_io_s_readlines): small refactoring.
+
+Thu Dec 28 15:27:38 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/cgi.rb (CGI::Cookie::initialize): use Array() again.
+ [ruby-core:09781]
+
+Wed Dec 27 20:52:32 2006 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+
+ * ext/win32ole/win32ole.c: remove WIN32OLE::PROPERTY class.
+
+ * ext/win32ole/tests/testWIN32OLE.rb: ditto.
+
+Wed Dec 27 10:04:11 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * object.c (rb_Array): returns 1-element array if the argument
+ does not have to_ary nor to_a.
+
+Tue Dec 26 21:02:14 2006 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+
+ * test/win32ole/test_folderitem2_invokeverb.rb: The argument
+ of Shell.NameSpace should not be file path.
+
+Tue Dec 26 06:13:08 2006 Minero Aoki <aamine@loveruby.net>
+
+ * ext/bigdecimal/bigdecimal.c: remove useless method
+ BigDecimal#!=. [ruby-dev:30050]
+
+Thu Dec 21 15:37:17 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (rb_str_slice_bang): rdoc description bug fixed.
+ [ruby-core:09754]
+
+Wed Dec 20 12:54:31 2006 Koichi Sasada <ko1@atdot.net>
+
+ * Convert CVS repository to Subversion repository.
+
+Mon Dec 18 08:36:29 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/cgi.rb (CGI::Cookie::initialize): Array(string) no longer
+ works. [ruby-core:09738]
+
+Fri Dec 15 00:19:53 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * win32/Makefile.sub (COMPILE_RULES): latter rule has higher priority.
+
+ * lib/mkmf.rb (create_makefile): remove static library before update,
+ to get rid of sludge of Borland tlib.exe.
+
+Thu Dec 14 18:29:13 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ext/readline/readline.c: NetBSD editline does not have
+ rl_username_completion_function() and rl_completion_matches().
+ a patch from Takahiro Kambe <taca at back-street.net>.
+ [ruby-dev:30008]
+
+Thu Dec 14 18:20:43 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/irb/locale.rb (IRB::Locale::puts): typo fixed. a patch from
+ NAKAMURA Usaku <usa@ruby-lang.org>. [ruby-dev:30012]
+
+Tue Dec 12 23:33:53 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/optparse.rb (Switch#parse_arg, Switch#conv_arg): splat failures.
+
+Mon Dec 11 11:51:10 2006 Akinori MUSHA <knu@iDaemons.org>
+
+ * ext/digest/sha2/lib/sha2.rb: Moved one level up from under
+ the superfluous subdirectory digest/.
+
+Mon Dec 11 11:46:18 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * variable.c (rb_define_const): typo fixed.
+
+Mon Dec 11 09:36:29 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (rb_str_aset): index double decode problem.
+ [ruby-core:09695]
+
+Sat Dec 9 21:39:24 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (ruby_cleanup): keep the exception till after END blocks.
+ [ruby-core:09675]
+
+Sat Dec 9 11:22:00 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/irb/locale.rb (IRB::Locale::search_file): use File.exist?
+ instead of File.exists?. a patch from Yutaka Kanemoto
+ <kinpoco at gmail.com> in [ruby-dev:30000].
+
+Fri Dec 8 18:11:18 2006 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * lib/optparse.rb: cannot put :nodoc: before method definition.
+ put after it.
+
+Fri Dec 8 17:00:13 2006 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * bin/rdoc: use File.exist? instead of File.exists?.
+
+Thu Dec 7 23:50:21 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * object.c (Init_Object): new method Dir.exist?(path).
+ [ruby-core:09663]
+
+ * file.c (Init_File): remove File.exists?; use File.exist?
+ instead.
+
+ * file.c: rename functions to test_* to rb_file_*_p.
+
+Thu Dec 7 09:29:02 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/weakref.rb (WeakRef::__setobj__): should support
+ marshaling. [ruby-talk:228508]
+
+Wed Dec 6 23:58:36 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * Makefile.in, common.mk (NULLCMD): moved for platforms that empty
+ command does not run. fixed: [ruby-dev:29994]
+
+ * win32/win32.c (init_stdhandle): redirect unopened IOs to NUL.
+ [ruby-core:09572]
+
+Tue Dec 5 19:01:42 2006 WATANABE Hirofumi <eban@ruby-lang.org>
+
+ * configure.in (SITE_DIR): fixed to empty RUBY_SITE_LIB in config.h on
+ NetBSD. fixed: [ruby-dev:29358]
+
+Tue Dec 5 18:38:21 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/matrix.rb (Matrix::rank): use quo method to avoid integer
+ division problem. [ruby-core:09644]
+
+ * lib/matrix.rb (Matrix::rank_e): ditto.
+
+Tue Dec 5 00:59:05 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * misc/ruby-mode.el (ruby-parse-partial): need to parse "/=" as
+ self assignment operator, not regex. [ruby-talk:227324]
+
+Tue Dec 5 00:19:14 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * intern.h, object.c, variable.c (rb_mod_constants): added an optional
+ flag to search ancestors, which is defaulted to true, as well as
+ const_defined? and const_get. [ruby-dev:29989]
+
+Mon Dec 4 23:49:28 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * instruby.rb (install_recursive): get rid of warning.
+
+ * lib/optparse.rb (CompletingHash#match): get rid of splat failure.
+
+Mon Dec 4 19:16:39 2006 Akinori MUSHA <knu@iDaemons.org>
+
+ * ext/digest/lib/digest/hmac.rb: Do alias << update.
+
+Mon Dec 4 10:48:03 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ruby.h (OFFT2NUM): use LONG2NUM() if sizeof(long) equals to
+ sizeof(off_t).
+
+Mon Dec 4 08:32:25 2006 Shugo Maeda <shugo@ruby-lang.org>
+
+ * lib/cgi.rb (CGI::QueryExtension::read_multipart): should quote
+ boundary. JVN#84798830
+
+Sun Dec 3 16:16:53 2006 Akinori MUSHA <knu@iDaemons.org>
+
+ * ext/digest/lib/digest/hmac.rb: Fix problems with update
+ timing. [Reported by: oss-ruby@technorama.net]
+
+Sat Dec 2 07:33:53 2006 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * lib/webrick/httputils.rb (WEBrick::HTTPUtils::FormData::<<):
+ HTTPUtils::parse_header() takes a string. [ruby-dev:29931]
+
+ * lib/webrick/httputils.rb (WEBrick::HTTPUtils::parse_header):
+ String does no longer have each method.
+
+ * lib/webrick/httputils.rb (WEBrick::HTTPUtils::parse_form_data):
+ ditto.
+
+Sat Dec 2 07:09:04 2006 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * ext/openssl/ossl_ocsp.c: OpenSSL::OCSP::OSCPError should be
+ subclass of OpenSSL::OpenSSLError. [ruby-dev:29980]
+
+Fri Dec 1 16:31:53 2006 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/tcltklib.c: shouldn't run the killed thread at callback.
+ [ruby-talk: 227408]
+
+Tue Nov 28 17:25:11 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * array.c (ary_iter_check): should check modification (size
+ change) during iteration.
+
+ * array.c (rb_ary_initialize, rb_ary_shift, rb_ary_unshift,
+ rb_ary_splice, rb_ary_reverse, rb_ary_sort, rb_ary_delete,
+ rb_ary_delete_at, rb_ary_reject_bang, rb_ary_replace,
+ rb_ary_clear, rb_ary_fill, rb_ary_uniq_bang, rb_ary_compact,
+ rb_ary_shuffle): add iteration check.
+
+Mon Nov 27 09:00:15 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (rb_str_ord): typo fixed. reported from Kornelius
+ Kalnbach <murphy@rubychan.de>. [ruby-core:09621]
+
+Sun Nov 26 16:36:46 2006 URABE Shyouhei <shyouhei@ruby-lang.org>
+
+ * version.h: addition of RUBY_PATCHLEVEL.
+ * version.c: ditto.
+
+Wed Nov 22 16:00:49 2006 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/extconf.rb: support --with-X11/--without-X11 option.
+
+ * ext/tk/README.tcltklib: add description about --with-X11-* option
+ [ruby-talk:225166] and --with-X11/--without-X11 option.
+
+ * ext/tk/tkutil/extconf.rb: able to be called manually
+ [ruby-talk:225950].
+
+Sat Nov 18 23:39:20 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * object.c (rb_obj_tap): a new method. [ruby-talk:224013]
+
+Wed Nov 15 23:22:54 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * file.c (test_grpowned, rb_stat_grpowned): should honor
+ supplementary group IDs. [ruby-core:09546]
+
+Tue Nov 7 18:35:18 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (formal_assign): need to pack rest arg information in
+ argc.
+
+Tue Nov 7 18:05:01 2006 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/tk/itemconfig.rb: minor bug fix.
+
+Tue Nov 7 17:52:08 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * class.c (rb_include_module): revert duplicate inclusion of
+ modules. [ruby-dev:29793]
+
+Tue Nov 7 17:18:11 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (method_missing): update old argument adjustment.
+
+Tue Nov 7 16:41:21 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (when_check): need to splat for NODE_ARGSCAT as well.
+ [ruby-dev:29860]
+
+Mon Nov 6 22:23:52 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (Init_String): remove duplicated definition of
+ Symbol#to_s.
+
+Mon Nov 6 18:54:13 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (svalue_to_avalue): need to splat but no error.
+
+ * eval.c: new macros - YIELD_CALL, YIELD_VALUES.
+
+ * eval.c (rb_yield_values): specify YIELD_VALUES.
+
+ * eval.c (rb_yield_0): use new macros.
+
+ * eval.c (proc_invoke): slightly modified to separate YIELD_CALL
+ and YIELD_VALUES from YIELD_ARY_ARGS.
+
+ * object.c (Init_Object): add nil.to_splat => [].
+
+Mon Nov 6 15:41:55 2006 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/tk/itemconfig.rb: ext/tk/lib/tk/itemconfig.rb: bug
+ fix on 'itemconfiginfo' method, and modify to make it easy to
+ override 'itemconfiginfo' method.
+
+ * ext/tk/lib/tkextlib/tile/treeview.rb: support Tile 0.7.8.
+
+ * ext/tk/lib/tkextlib/version.rb: [new] add Tk::Tkextlib_RELEASE_DATE
+ to get the information from scripts.
+
+ * ext/tk/lib/tk.rb: load 'tkextlib/version.rb', and update RELEASE_DATE
+
+ * ext/tk/lib/tkextlib/SUPPORT_STATUS: update.
+
+ * ext/tk/sample/editable_listbox.rb: [new] the listbox with editable
+ items. It's one of the example about usage of Place geometry manager.
+
+ * ext/tk/sample/tktextio.rb: improve the functions of TkTextIO class.
+ Those are required by 'irbtkw.rbw'.
+
+ * ext/tk/sample/irbtkw.rbw: [new] IRB on Ruby/Tk. It doesn't need any
+ real console. IRB works on a text widget without I/O blocking. That
+ is, thread switching on IRB will work properly, even if on Windows.
+
+Mon Nov 6 00:42:05 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * parse.y (arg_dup_check): vid may be nameless internal id.
+
+Sun Nov 5 19:52:19 2006 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * lib/date.rb: updated based on date2 3.9.7.
+
+Sat Nov 4 13:09:31 2006 Shugo Maeda <shugo@ruby-lang.org>
+
+ * lib/net/imap.rb: accept NOMODSEQ. [ruby-core:9002]
+
+Fri Nov 3 00:16:37 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ext/socket/socket.c (ruby_getnameinfo__aix): AF_INET6 workaround
+ for AIX. a patch from Yutaka Kanemoto <kinpoco AT gmail.com>.
+ [ruby-dev:29744]
+
+Thu Nov 2 14:19:44 2006 Akinori MUSHA <knu@iDaemons.org>
+
+ * lib/set.rb (Set#^): Fix XOR operation against a container that
+ holds duplicate values. [ruby-core:9372]
+
+Thu Nov 2 10:00:06 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c: class Symbol is no longer subclass of String. also
+ covers [ruby-core:09366]
+
+Thu Nov 2 08:21:07 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/xmlrpc/create.rb (XMLRPC::Create::conv2value): Symbol should
+ come earlier than String.
+
+ * lib/soap/mapping/rubytypeFactory.rb (RubytypeFactory::obj2soap):
+ ditto.
+
+ * lib/set.rb (TC_Set::test_s_new): strings are no longer
+ Enumerable
+
+ * lib/soap/property.rb (Property::load): ditto.
+
+ * lib/webrick/httputils.rb (WEBrick::HTTPUtils::parse_header): ditto.
+
+ * lib/soap/mimemessage.rb (MIMEMessage::Headers::parse): ditto.
+
+Thu Nov 2 09:08:04 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * array.c: revert lfree shift/unshift boost patch to avoid unknown
+ memory error.
+
+Wed Nov 1 23:24:42 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ruby.h (struct RArray): revert embedding ptr in RVALUE.
+
+ * array.c: ditto.
+
+Wed Nov 1 23:01:55 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (hash): use Bob Jenkins' hash algorithm.
+
+Wed Nov 1 02:22:31 2006 Akinori MUSHA <knu@iDaemons.org>
+
+ * ext/digest/lib/digest/hmac.rb (Digest::HMAC::update): Minor
+ optimization.
+
+ * ext/digest/digest.c (rb_digest_instance_equal): Allow comparing
+ a digest instance with another of a different class.
+
+Wed Nov 1 01:05:13 2006 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * eval.c (rb_call0): fixed bug of zsuper with both of opt and rest.
+ fixed: [ruby-list:42928]
+
+Tue Oct 31 17:03:21 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * time.c (time_dup): duplicate the class of original time.
+ [ruby-core:09357]
+
+ * lib/time.rb (Time::make_time, Time::rfc2822, Time::httpdate):
+ should respect subclasses. [ruby-core:09357]
+
+Tue Oct 31 16:25:22 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * array.c (ary_shared_first): should address offset after
+ ary_shared_array(). [ruby-core:09358]
+
+Mon Oct 30 23:40:52 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * Makefile.in (miniruby): add XLDFLAGS.
+
+ * configure.in (aix): use -bE option for miniruby. [ruby-dev:29698]
+
+ * dir.c (glob_helper): get rid of possible memory leak.
+
+ * win32/win32.c (cmdglob, rb_w32_cmdvector, rb_w32_opendir,
+ rb_w32_get_environ): not to use GC before initialization.
+
+Mon Oct 30 19:28:02 2006 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * bignum.c (rb_big2str0): use better approximation.
+
+Mon Oct 30 18:35:33 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * bignum.c (rb_big2str0): wrong allocation length. a patch from
+ U.Nakamura <usa at garbagecollect.jp> [ruby-dev:29710]
+
+Mon Oct 30 12:34:02 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (rb_eval): fix commit miss. [ruby-dev:29707]
+
+Mon Oct 30 11:15:40 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * sprintf.c (rb_str_format): should preserve leading zero
+ information for negative %b and %x. [ruby-talk:221347]
+
+Sun Oct 29 19:51:31 2006 K.Kosako <sndgk393 AT ybb.ne.jp>
+
+ * regexec.c: invalid offset value was used in STATE_CHECK_BUFF_INIT().
+
+Sat Oct 28 20:13:18 2006 K.Kosako <sndgk393 AT ybb.ne.jp>
+
+ * oniguruma.h: Version 4.4.5
+
+ * regint.h: ditto.
+
+ * regerror.c: ditto.
+
+ * regexec.c: ditto.
+
+ * regcomp.c ditto.
+
+ * regparse.c ditto.
+
+Sat Oct 28 07:56:13 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * marshal.c (r_object0): missing break. [ruby-core:09345]
+
+Fri Oct 27 17:30:31 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * enumerator.c (enum_each_cons): move RETURN_ENUMERATOR() after
+ argument check.
+
+Thu Oct 26 21:05:48 2006 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * ext/openssl/ossl_pkcs7.c (ossl_pkcs7_verify): should clear error.
+ (fix http://bugs.debian.org/394336)
+
+ * ext/openssl/ossl_ns_spki.c (ossl_spki_initialize): ditto.
+
+Thu Oct 26 15:23:47 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * enumerator.c: remove by_slice and by_cons.
+
+Thu Oct 26 15:12:12 2006 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * ext/digest/digest.c (Init_digest): typo.
+
+Wed Oct 25 17:16:05 2006 Akinori MUSHA <knu@iDaemons.org>
+
+ * test/digest/test_digest_hmac.rb: added.
+
+Wed Oct 25 16:34:31 2006 Akinori MUSHA <knu@iDaemons.org>
+
+ * ext/digest/test.sh: make this script work again.
+
+Wed Oct 25 07:59:42 2006 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * lib/date/format.rb: updated based on date2 3.9.6.
+ [ruby-core:09323]
+
+Wed Oct 25 00:58:19 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * win32/mkexports.rb, win32/resource.rb: use unique variable names.
+
+Tue Oct 24 19:18:53 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * enumerator.c (enumerator_by_slice): new method added.
+
+ * enumerator.c (enumerator_by_cons): ditto.
+
+Tue Oct 24 18:56:13 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * enumerator.c (enum_each_slice, enum_each_cons): returns
+ Enumerable::Enumerator if no block is given. [ruby-dev:29246]
+
+ * enumerator.c: remove methods: enum_with_index, enum_slice,
+ enum_cons. [ruby-dev:29246]
+
+Tue Oct 24 18:51:27 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * enum.c (enum_zip): add RETURN_ENUMERATOR() to zip method.
+
+Mon Oct 23 04:30:04 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * marshal.c (r_object0): use return value from proc given as the
+ second argument to Marshal#load() to allow value replacement in
+ the restoring data.
+
+Sun Oct 22 14:48:31 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * signal.c (Init_signal): avoid duplicated installation of SIGCHLD
+ handler.
+
+Sun Oct 22 16:47:56 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * string.c (rb_str_substr): should be infected with only original
+ string, but not the shared string. fixed: [ruby-core:09152]
+
+ * string.c (rb_str_new4): keep shared string untainted when original
+ string is tainted. fixed: [ruby-dev:29672]
+
+Sun Oct 22 07:55:11 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (rb_str_upcase, rb_str_downcase, rb_str_downcase,
+ rb_str_upcase_bang, rb_str_downcase_bang, rb_str_swapcase_bang):
+ add RDoc description that case conversion to be effective only
+ in ASCII region.
+
+Sun Oct 22 05:20:34 2006 URABE Shyouhei <shyouhei@ice.uec.ac.jp>
+
+ * configure.in: alloca is broken; use C_ALLOCA instead.
+ [ruby-dev:29416]
+
+Sat Oct 21 17:50:40 2006 Akinori MUSHA <knu@iDaemons.org>
+
+ * ext/digest/lib/digest.rb: Follow the framework updates.
+
+Fri Oct 20 22:00:43 2006 Akinori MUSHA <knu@iDaemons.org>
+
+ * ext/digest/lib/digest/hmac.rb: Complete half-boiled updates.
+
+ * ext/digest/sha2/lib/digest/sha2.rb: Fix #initialize_clone().
+
+Fri Oct 20 20:28:37 2006 Akinori MUSHA <knu@iDaemons.org>
+
+ * ext/digest: Prefix C constants with RUBY_ and C type names with
+ rb_ to avoid name clash in writing extensions.
+
+ * ext/digest: Introduce Digest::Class and Digest::Instance for
+ ease of implementing subclasses and add-ons, inspired by
+ gotoyuzo.
+
+ * ext/digest: The Digest::Instance module now requires and assumes
+ that any instance be resettable and clonable, and add some
+ convenient instance methods such as "new()", for creating a new
+ copy, parameter taking "digest()" and "hexdigest()", for instant
+ calculation. These methods make digest instances work just like
+ digest classes.
+
+ * ext/digest/sha2/lib/digest/sha2.rb:
+ Add the Digest::SHA2 class to wrap up SHA2 variants: SHA256,
+ SHA384 and SHA512, hoping this module would make a decent
+ example of a digest subclass written in Ruby.
+
+ * ext/digest/lib/digest.rb: Adjust autoload entries for SHA2
+ classes.
+
+ * ext/digest/lib/digest/hmac.rb: Follow the framework updates.
+
+Fri Oct 20 10:47:43 2006 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * lib/mkmf.rb: fixed the bug of handling COMMON_MACROS.
+
+Fri Oct 20 08:42:38 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * common.mk (NULLCMD): dummy command.
+
+ * bcc32/Makefile.sub (post-install-*): Borland make cannot ignore
+ command-less double-colon rules. [ruby-dev:29676]
+
+Fri Oct 20 00:37:07 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * bcc32/Makefile.sub ($(LIBRUBY_SO)): execute pre-link hook.
+
+ * ext/extmk.rb: workaround for Borland make.
+
+Wed Oct 18 23:02:40 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * array.c (rb_ary_shift): shorten copy size. fixed: [ruby-list:42907]
+
+ * signal.c (Init_signal): handle SIGTERM. fixed: [ruby-list:42895]
+
+ * win32/win32.c (rb_w32_utime): allow NULL to set the current time.
+ [ruby-talk:219248]
+
+Wed Oct 18 13:25:50 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (rb_str_each_line): String#lines now works when a block
+ is given. in other words, lines become an alias to each_line.
+ [ruby-core:09218]
+
+ * string.c (rb_str_each_byte): ditto for bytes in place of lines.
+
+Wed Oct 18 00:55:33 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (parser_yylex): use particular enums. [ruby-core:09221]
+
+Tue Oct 17 22:03:08 2006 Minero Aoki <aamine@loveruby.net>
+
+ * lib/erb.rb: String#each was removed, use #each_line instead.
+
+Tue Oct 17 12:27:32 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * array.c (ary_shared_array): should set NOEMBED flag for a copied
+ array.
+
+Tue Oct 17 08:04:31 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (rb_str_lines): now takes optional argument for the
+ line separator.
+
+ * io.c (rb_io_lines, rb_io_bytes): new methods.
+
+Mon Oct 16 23:33:18 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * array.c (rb_ary_unshift_m): a bug in lfree shift length
+ calculation.
+
+Mon Oct 16 08:30:43 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * mkconfig.rb: *OBJS are not needed for extension libraries.
+
+ * {bcc32,wince,win32}/Makefile.sub (config.status): fixed typo,
+ missing comma.
+
+Mon Oct 16 00:44:26 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * pack.c (pack_unpack): execute block if given with unpacked value
+ instead of creating an array. an idea from Tim Bray.
+
+Sun Oct 15 01:03:08 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/test/unit/collector/dir.rb (Collector::Dir#collect): append base
+ directory but not prepend.
+
+ * lib/test/unit/collector/dir.rb (Collector::Dir#collect_file): do not
+ join with dot. fixed: [ruby-core:09179]
+
+Sat Oct 14 23:39:50 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * parse.y (singleton): no need to re-create NODE_SELF() again.
+ [ruby-core:09177]
+
+Sat Oct 14 23:25:31 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * parse.y (parser_warning, parser_warn): some error message may
+ contain format specifiers. a patch from Akinori MUSHA <knu at
+ iDaemons.org>. [ruby-dev:29657]
+
+ * regparse.c (onig_rb_warning, onig_rb_warn): ditto.
+
+ * ext/bigdecimal/bigdecimal.c (VpException): ditto.
+
+ * ext/dl/handle.c (rb_dlhandle_initialize): ditto.
+
+ * ext/gdbm/gdbm.c (rb_gdbm_fatal): ditto.
+
+Sat Oct 14 08:15:42 2006 Akinori MUSHA <knu@iDaemons.org>
+
+ * ext/digest/digest.c, ext/digest/digest.h,
+ ext/digest/md5/md5init.c, ext/digest/rmd160/rmd160init.c,
+ ext/digest/sha1/sha1init.c, ext/digest/sha2/sha2init.c:
+ Introduce API versioning.
+
+ * ext/digest/digest.c, ext/digest/digest.h,
+ ext/digest/md5/md5init.c, ext/digest/rmd160/rmd160init.c,
+ ext/digest/sha1/sha1init.c, ext/digest/sha2/sha2init.c: Remove
+ the constants DIGEST_LENGTH and BLOCK_LENGTH and turn them into
+ instance methods digest_length() and block_length(). Class
+ methods with the same names are also provided, which take extra
+ parameters for a digest method.
+
+ * ext/digest/lib/digest/hmac.rb: Completely redesign the somewhat
+ bizarre API, now that Digest classes can take hashing
+ parameters.
+
+Sat Oct 14 05:54:05 2006 Akinori MUSHA <knu@iDaemons.org>
+
+ * ext/digest/digest.c: Improve RDoc documentation further more.
+
+Sat Oct 14 04:33:33 2006 Akinori MUSHA <knu@iDaemons.org>
+
+ * ext/digest/digest.c: Improve RDoc documentation.
+
+ * ext/digest/digest.c (Init_digest, rb_digest_base_s_digest,
+ rb_digest_base_s_hexdigest): Make Digest::Base::digest() and
+ Digest::Base::hexdigest() take extra arguments, which are passed
+ through to the constructor in an internal call.
+
+ * ext/digest/bubblebabble/bubblebabble.c
+ (rb_digest_base_s_bubblebabble): Ditto for
+ Digest::Base::bubblebabble().
+
+Sat Oct 14 00:55:08 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * bcc32/Makefile.sub (post-install-ext): no longer needed.
+
+ * bcc32/configure.bat: get rid of a quirk of Borland make, which
+ sets empty macro in command line to "1".
+
+Fri Oct 13 22:49:02 2006 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * lib/date.rb: updated based on date2 3.9.5.
+
+Fri Oct 13 21:00:01 2006 Akinori MUSHA <knu@iDaemons.org>
+
+ * ext/digest/lib/digest.rb (Digest): Try to auto-load non-standard
+ digest modules when a specified digest class is missing.
+
+ * ext/digest/lib/digest.rb: Define Digest(name) for ease of
+ dynamically selecting a hashing algorithm.
+
+Fri Oct 13 20:53:37 2006 Akinori MUSHA <knu@iDaemons.org>
+
+ * ext/digest/digest.c (Init_digest): Digest::Base.new() does no
+ longer take an initial string to feed. This change allows
+ subclasses to take hashing parameters. A statement such as
+ ``md = Digest::MD5.new(s)'' can be easily rewritten as
+ ``md = Digest::MD5.new << s'' or
+ ``md = Digest::MD5.new.update(s)''.
+
+Fri Oct 13 20:51:55 2006 Akinori MUSHA <knu@iDaemons.org>
+
+ * ext/digest/digest.c, ext/digest/md5/md5init.c,
+ ext/digest/rmd160/rmd160init.c, ext/digest/sha1/sha1init.c,
+ ext/digest/sha2/sha2init.c: Add RDoc documentation.
+
+ * ext/digest/digest.txt, ext/digest/digest.txt.ja: Removed in
+ favor of embedded RDoc documentation.
+
+Fri Oct 13 20:38:12 2006 Akinori MUSHA <knu@iDaemons.org>
+
+ * ext/digest/bubblebabble, ext/digest/digest.c: Rip BubbleBabble
+ support out of the base class and have a separate module named
+ digest/bubblebabble.
+
+Fri Oct 13 19:53:59 2006 Akinori MUSHA <knu@iDaemons.org>
+
+ * ext/digest/digest.c (rb_digest_base_equal): Again, should call
+ digest() of a subclass instead of the one defined in the base
+ class.
+
+Fri Oct 13 18:19:31 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * object.c: Class#inherited RDoc added. a patch from Daniel
+ Berger <djberg96 at gmail.com> [ruby-core:08942]
+
+Fri Oct 13 02:42:00 2006 Akinori MUSHA <knu@iDaemons.org>
+
+ * ext/digest/digest.c (rb_digest_base_equal): Should call digest()
+ of a subclass instead of the one defined in the base class.
+
+Fri Oct 13 02:30:12 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/test/unit/collector/dir.rb (Collector::Dir#collect): prepend
+ base directory to load path.
+
+ * lib/test/unit/collector/dir.rb (Collector::Dir#collect_file): should
+ use the given File-like interface, but not File directly.
+
+ * test/testunit/collector/test_dir.rb (TestDir::FileSystem): implement
+ File-like methods correctly.
+
+Fri Oct 13 01:48:42 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/date.rb (Date::self.complete_hash): need to check if g is
+ nil before dereference. [ruby-core:09116]
+
+Fri Oct 13 01:05:58 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (rb_str_partition): RDoc update. a patch from
+ Mauricio Fernandez <mfp at acm.org>. [ruby-core:09160]
+
+ * hash.c (rb_hash_compare_by_id): ditto.
+
+Fri Oct 13 00:34:26 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * object.c (rb_mod_cvar_defined): wrong id check. a patch from
+ Mauricio Fernandez <mfp at acm.org>. [ruby-core:09158]
+
+ * object.c (rb_mod_cvar_get): typo fixed. [ruby-core:09168]
+
+ * object.c (rb_mod_cvar_set): ditto.
+
+Thu Oct 12 22:58:11 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * hash.c (rb_hash_compare_by_id): somehow we lost renaming from
+ Hash#identical. [ruby-core:09163]
+
+Thu Oct 12 18:25:40 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ext/tk/tkutil/tkutil.c (cbsubst_table_setup): need to handle new
+ character literal (1 char string).
+
+ * lib/mkmf.rb: shut up some warnings from tk's extconf.rb.
+
+Thu Oct 12 02:15:24 2006 Akinori MUSHA <knu@iDaemons.org>
+
+ * ext/digest/lib/digest/hmac.rb: Make use of String#bytes.
+
+Thu Oct 12 02:12:31 2006 Akinori MUSHA <knu@iDaemons.org>
+
+ * ext/digest/digest.c (get_digest_base_metadata): Use an instance
+ variable of a class object instead of a class variable for
+ metadata. This change is only crucial for ruby 1.8 because
+ class variables are inherited to subclasses prior to 1.9, but
+ applying it also to 1.9 will assure compatibilities.
+
+ * ext/digest/md5/md5init.c (Init_md5): Ditto.
+
+ * ext/digest/rmd160/rmd160init.c (Init_rmd160): Ditto.
+
+ * ext/digest/sha1/sha1init.c (Init_sha1): Ditto.
+
+ * ext/digest/sha2/sha2init.c (Init_sha2): Ditto.
+
+Wed Oct 11 21:36:47 2006 Akinori MUSHA <knu@iDaemons.org>
+
+ * ext/digest/digest.c (rb_digest_base_alloc,
+ rb_digest_base_equal): Simplify the equality check and just
+ compare resulted digests since state-level equality should
+ not be so significant.
+
+ * ext/digest/digest.h: Ditto.
+
+ * ext/digest/*/*.[ch]: Ditto.
+
+Wed Oct 11 17:11:03 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (rb_obj_define_method): add half boiled RDoc document.
+
+Wed Oct 11 16:57:46 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * array.c (rb_ary_replace): should shift lfree pointer before
+ calling xfree.
+
+Wed Oct 11 15:07:42 2006 Akinori MUSHA <knu@iDaemons.org>
+
+ * ext/digest/lib/digest/hmac.rb: Add digest/hmac, which implements
+ HMAC keyed-hashing algorithm.
+
+Wed Oct 11 15:03:55 2006 Akinori MUSHA <knu@iDaemons.org>
+
+ * ext/digest/digest.c (rb_digest_base_reset): Do not make
+ recursive calls, but call initialize() when reset() is not
+ defined in a subclass.
+
+Wed Oct 11 14:56:10 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ext/digest/sha1/sha1ossl.h: libssl 0.9.8c-3 defines no
+ SHA_BLOCK_LENGTH.
+
+Wed Oct 11 14:03:31 2006 Akinori MUSHA <knu@iDaemons.org>
+
+ * ext/digest/digest.c (rb_digest_base_reset, Init_digest): Add
+ Digest::Base#reset.
+
+ * ext/digest/digest.h: Update the header comment.
+
+ * ext/digest/md5/md5ossl.h, ext/digest/md5/md5init.c (Init_md5):
+ Define DIGEST_LENGTH and BLOCK_LENGTH.
+
+ * ext/digest/rmd160/rmd160init.c (Init_rmd160): Ditto.
+
+ * ext/digest/sha1/sha1init.c (Init_sha1): Ditto.
+
+ * ext/digest/sha2/sha2init.c (Init_sha2): Ditto.
+
+ * ext/digest/depend, ext/digest/extconf.rb: Use $INSTALLFILES
+ rather than adding make targets. [Pointed out by: nobu]
+
+Tue Oct 10 16:39:08 2006 Akinori MUSHA <knu@iDaemons.org>
+
+ * ext/digest/digest.c (hexdigest_str_new, bubblebabble_str_new):
+ Perform StringValue() checks properly.
+
+Tue Oct 10 13:21:21 2006 Akinori MUSHA <knu@iDaemons.org>
+
+ * ext/digest/sha1/depend, ext/digest/sha2/depend: Remove obsolete
+ dependencies.
+
+Mon Oct 9 23:46:29 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/parsedate.rb: documentation patch from Konrad Meyer
+ <konrad.meyer@gmail.com>. [ruby-doc:1238]
+
+ * lib/open3.rb, lib/ping.rb: ditto.
+
+Mon Oct 9 23:40:58 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/extmk.rb, lib/fileutils.rb, lib/mkmf.rb, lib/optparse.rb,
+ lib/shellwords.rb: get rid of shadowing outer local variable.
+
+Mon Oct 9 22:56:12 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/rexml/encoding.rb (REXML::Encoding::check_encoding): spaces
+ are allowed around equal sign. [ruby-core:09032]
+
+ * lib/rexml/parsers/baseparser.rb (REXML::Parsers::BaseParser): ditto.
+
+Mon Oct 9 01:56:34 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (rb_obj_define_method): add new method
+ Kernel#define_singleton_method. [ruby-list:42851]
+
+Sat Oct 7 23:53:08 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (rb_str_scan): small documentation fix.
+ [ruby-core:09007]
+
+Sat Oct 7 23:44:33 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * bignum.c (rb_big_rshift): a bug in right shift of negative
+ bignums. [ruby-core:09020]
+
+Sat Oct 7 23:33:02 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (formal_assign): packed post splat arguments may conflict
+ with normal arguments. [ruby-core:09021]
+
+ * eval.c (rb_call0): ditto.
+
+Sat Oct 7 11:53:04 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * object.c (rb_mod_initialize): since module_eval no longer passes
+ self, use module_exec instead. fixed: [ruby-dev:29637]
+
+Sat Oct 7 00:27:58 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * class.c (rb_include_module): remove unnecessary check.
+ [ruby-talk:218402]
+
+Fri Oct 6 15:19:59 2006 Akinori MUSHA <knu@iDaemons.org>
+
+ * ext/digest/depend: Fix header installation when the build
+ directory is different from srcdir. [Pointed out by: eban]
+
+Fri Oct 6 09:56:31 2006 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * {bcc32,win32,wince}/Makefile.sub (config.status): shouldn't use
+ copy command instead of install. use -run install.
+
+Fri Oct 6 06:53:46 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (rb_yield_0): small refactoring.
+
+ * parse.y (bparam_item): fixed bugs in handling parenthesized LHS.
+
+Fri Oct 6 04:47:07 2006 Akinori MUSHA <knu@iDaemons.org>
+
+ * ext/digest/depend: Install digest.h.
+
+Fri Oct 6 04:27:40 2006 Akinori MUSHA <knu@iDaemons.org>
+
+ * ext/digest/lib/md5.rb, ext/digest/lib/sha1.rb: Remove those
+ compatibility stub libraries.
+
+ * sample/openssl/c_rehash.rb: Use digest/md5 instead of obsolete md5.
+
+Fri Oct 6 04:09:51 2006 Akinori MUSHA <knu@iDaemons.org>
+
+ * ext/digest/digest.c: Make hexdigest() always call digest() internally.
+
+ * ext/digest/digest.c: Add bubblebabble().
+
+Fri Oct 6 02:38:42 2006 Akinori MUSHA <knu@iDaemons.org>
+
+ * ext/digest/digest.c: Allow subclassing in Ruby.
+
+Fri Oct 6 02:06:10 2006 Akinori MUSHA <knu@iDaemons.org>
+
+ * ext/digest/digest.c (hexdigest_str_new): Add a string size check.
+
+Thu Oct 5 19:28:35 2006 Akinori MUSHA <knu@iDaemons.org>
+
+ * ext/digest/digest.[ch]: Since the argument order of
+ hash_final_func_t was inconsistent with others, change it and
+ rename to hash_finish_func_t to avoid confusion.
+
+ * ext/digest/digest.[ch]: Remove and eliminate the use of
+ hash_end_func_t. Implement hexdigest conversion in the base
+ class.
+
+ * ext/digest/md5/md5.c, ext/digest/md5/md5.h,
+ ext/digest/md5/md5init.c, ext/digest/md5/md5ossl.c,
+ ext/digest/md5/md5ossl.h: Remove MD5_End() and change
+ MD5_Final() to MD5_Finish().
+
+ * ext/digest/rmd160/depend, ext/digest/rmd160/extconf.rb,
+ ext/digest/rmd160/rmd160.c, ext/digest/rmd160/rmd160.h,
+ ext/digest/rmd160/rmd160hl.c, ext/digest/rmd160/rmd160init.c,
+ ext/digest/rmd160/rmd160ossl.c, ext/digest/rmd160/rmd160ossl.h:
+ Remove unused functions RMD160_End(), RMD160_File(),
+ RMD160_Data() and change RMD160_Final() to RMD160_Finish().
+
+ * ext/digest/sha1/extconf.rb, ext/digest/sha1/sha1.c,
+ ext/digest/sha1/sha1.h, ext/digest/sha1/sha1hl.c,
+ ext/digest/sha1/sha1init.c, ext/digest/sha1/sha1ossl.c,
+ ext/digest/sha1/sha1ossl.h: Likewise.
+
+ * ext/digest/sha2/extconf.rb, ext/digest/sha2/sha2.c,
+ ext/digest/sha2/sha2.h, ext/digest/sha2/sha2hl.c,
+ ext/digest/sha2/sha2init.c: Likewise.
+
+Wed Oct 4 18:47:25 2006 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/tkextlib/*: bugfix and update
+ (see ext/tk/ChangeLog.tkextlib).
+
+Wed Oct 4 17:25:14 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (rb_call): check protected visibility based on real self,
+ not ruby_frame->self. [ruby-talk:217822]
+
+Wed Oct 4 15:46:32 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * parse.y (block_param): should interpret single parenthesized
+ left hand side expression.
+
+Wed Oct 4 08:52:30 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * test/optparse/test_getopts.rb: changed the class name of test case
+ to get rid of conflict with test_optparse.rb.
+
+Tue Oct 3 21:04:29 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * parse.y (dyna_in_block): inline using macro.
+
+ * parse.y (mlhs): simplifies the rule a bit.
+
+ * parse.y (block_param): restrict block parameters to be local
+ variables only.
+
+ * test/ruby/test_iterator.rb (TestIterator::test_nested_iterator):
+ update test suite to conform the last change.
+
+Tue Oct 3 02:31:13 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (splat_value): use "to_splat" instead of "to_ary" to
+ prepare splat values as an array.
+
+ * array.c (Init_Array): define to_splat.
+
+ * range.c (range_to_splat): new method.
+
+ * enumerator.c (enumerator_to_splat): ditto.
+
+Tue Oct 3 01:36:47 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (rb_str_lines): returns an Enumerator instead of an
+ array of lines.
+
+ * string.c (rb_str_bytes): a new method.
+
+Mon Oct 2 23:47:55 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/test/unit/autorunner.rb (Test::Unit::AutoRunner::COLLECTORS):
+ base directory should be lower precedence. fixed: [ruby-dev:29622]
+
+ * lib/test/unit/autorunner.rb (Test::Unit::AutoRunner#options): typo.
+
+ * lib/test/unit/collector/dir.rb (Test::Unit::Collector::Dir#collect_file):
+ load expanded path. fixed: [ruby-dev:29621]
+
+Mon Oct 2 15:47:55 2006 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * instruby.rb: batfile should be CRLF'ed.
+
+Mon Oct 2 01:24:26 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * common.mk (test-all): separate directory where running test cases
+ from source tree.
+
+ * lib/test/unit/autorunner.rb (options): added --basedir, --workdir
+ and --load-path options.
+
+ * lib/test/unit/collector/dir.rb (recursive_collect, collect_file):
+ base directory support.
+
+Sun Oct 1 23:56:52 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * Makefile.in, common.mk, ext/extmk.rb, win{32,ce}/Makefile.in: keep
+ LIBRUBY_SO unless need to be removed.
+
+Sun Oct 1 23:12:19 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/optparse.rb (OptionParser#make_switch): pass arguments directly.
+
+Sat Sep 30 15:11:26 2006 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * lib/date.rb, lib/date/format.rb: updated based on date2 3.9.4.
+
+Fri Sep 29 13:18:24 2006 Akinori MUSHA <knu@iDaemons.org>
+
+ * ext/digest/lib/digest.rb (Digest): Require digest.so and fix the
+ breakage. Point out by NAKAMURA Usaku in [ruby-dev:29619].
+
+Fri Sep 29 12:11:04 2006 WATANABE Hirofumi <eban@ruby-lang.org>
+
+ * jcode.rb (succ!): call original succ! if $KCODE == 'n'.
+ fixed: [ruby-talk:216845]
+
+Fri Sep 29 11:43:40 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/mkmf.rb (try_func): revert fallback checking undeclared function.
+ fixed: [ruby-core:08949]
+
+Fri Sep 29 09:56:56 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/extmk.rb: extout is needed for also clean.
+ fixed: [ruby-core:08944]
+
+ * lib/optparse.rb (OptionParser::Switch#conv_arg): unsplat by
+ Proc#call if no conversion is given.
+
+Thu Sep 28 23:59:31 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * node.h (struct thread): declare win32_exception_list on cygwin and
+ win32 regardless if it is implemented. Provisional fix for
+ [ruby-core:08917].
+
+Thu Sep 28 20:49:20 2006 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * lib/tmpdir.rb: use return value of getdir.call for length.
+
+Wed Sep 27 22:08:16 2006 Akinori MUSHA <knu@iDaemons.org>
+
+ * ext/digest/md5/md5init.c (Init_md5): Now that we have digest.rb,
+ require "digest" rather than "digest.so".
+
+ * ext/digest/rmd160/rmd160init.c (Init_rmd160): Ditto.
+
+ * ext/digest/sha1/sha1init.c (Init_sha1): Ditto.
+
+ * ext/digest/sha2/sha2init.c (Init_sha2): Ditto.
+
+Wed Sep 27 21:21:08 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (rb_str_startwith): rename startwith? to start_with?,
+ endwith? to endwith?, respectively. [ruby-talk:216685]
+
+Wed Sep 27 13:29:01 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/cgi.rb (CGI::TagMaker::nOE_element_def): replace to_s by
+ join. some other methods as well. [ruby-dev:29613]
+
+Wed Sep 27 01:04:49 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/mkmf.rb (try_func): check function pointer first and macro next.
+
+ * lib/mkmf.rb (have_type): simplified with typedef and sizeof.
+
+Wed Sep 27 00:08:12 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * array.c (rb_ary_shift): shift/unshift performance boost patch,
+ based on the patch from Eric Mahurin <eric_mahurin at yahoo.com>.
+ [ruby-core:05861]
+
+ * array.c (rb_ary_unshift_m): ditto.
+
+ * array.c (ary_make_shared): ditto.
+
+ * array.c (RESIZE_CAPA): ditto.
+
+ * array.c (rb_ary_free): new function to free memory. code moved
+ from gc.c.
+
+ * string.c (rb_str_free): ditto.
+
+Tue Sep 26 23:57:03 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/optparse.rb (OptionParser#getopts): use strings as key.
+ fixed: [ruby-dev:29614]
+
+Tue Sep 26 15:29:55 2006 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * {win32,wince}/Makefile.sub (CPP): check predefined value.
+
+Tue Sep 26 07:55:16 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * array.c (rb_ary_shift): should not move memory region if array
+ body is shared. a patch from Kent Sibilev <ksruby at gmail.com>.
+ [ruby-core:08922]
+
+Mon Sep 25 23:10:46 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * dir.c (rb_push_glob): need not to check by FilePathValue().
+ [ruby-dev:29599]
+
+ * dir.c (dir_globs): ditto.
+
+Mon Sep 25 22:26:26 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * file.c (rb_path_end): skip root directory. fixed: [ruby-core:08913]
+
+ * lib/mkmf.rb (rm_f): get rid of NUL.
+
+ * lib/mkmf.rb (init_mkmf): set default $LDFLAGS. Patch by Michal
+ Suchanek <hramrach at centrum.cz>. [ruby-talk:216256]
+
+Mon Sep 25 15:06:18 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * sample/test.rb: "print nil" now prints empty string.
+
+ * test/ruby/test_system.rb (TestSystem::test_system): ditto.
+
+Mon Sep 25 11:26:25 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * hash.c (recursive_hash): remove unused local variable.
+
+ * parse.y (parser_yylex): ditto.
+
+ * parse.y (rb_gc_mark_symbols): fix unmatched prototype .
+
+ * file.c (rb_get_path): check NUL byte in the path string.
+
+Mon Sep 25 08:14:43 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * array.c (rb_ary_shift): should clear shifting top element.
+ [ruby-talk:216055]
+
+ * array.c (rb_ary_shift): avoid creating shared object if array
+ size is small.
+
+Mon Sep 25 08:11:35 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * random.c (rb_f_rand): RDoc typo fix. a patch from Frederick
+ Cheung <fred at 82ask.com>. [ruby-talk:216047]
+
+Sun Sep 24 21:19:24 2006 Guy Decoux <ts@moulon.inra.fr>
+
+ * gc.c (gc_mark_children): NODE_POSTEXE holds Ruby VALUE.
+ [ruby-core:08912]
+
+Sun Sep 24 22:28:20 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * runruby.rb: extension library scripts moved into common directory.
+
+Sun Sep 24 12:10:04 2006 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * lib/date.rb, lib/date/format.rb: updated based on date2 3.9.3.
+
+Sun Sep 24 06:55:36 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * io.c (rb_io_print): no special handling for nil as well as puts.
+ fixed: [ruby-dev:29586]
+
+Sun Sep 24 06:25:53 2006 why the lucky stiff <why@ruby-lang.org>
+
+ * eval.c (rb_thread_save_context, rb_thread_restore_context):
+ sandbox hook to save and restore sandbox state.
+
+ * eval.c (thread_no_ensure): added THREAD_NO_ENSURE thread flag.
+
+ * eval.c (rb_thread_kill_bang): Thread#kill! uses the above flag
+ to circumvent ensure, in order to prevent endless loops.
+ contributed by MenTaLguY. [ruby-core:08768]
+
+ * eval.c (rb_thread_kill): fix Thread#kill docs, which returns
+ the thread object in all cases.
+
+ * node.h: expose the rb_jmpbuf_t and rb_thread_t structs, along
+ with the thread flags. used by the sandbox extension.
+
+ * ruby.h: extern rb_eThreadError, so sandbox can swap it.
+
+Sat Sep 23 21:34:15 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/cgi.rb (CGI::QueryExtension::read_multipart): CGI content
+ may be empty. a patch from Jamis Buck <jamis at 37signals.com>.
+
+Sat Sep 23 20:54:28 2006 K.Kosako <sndgk393 AT ybb.ne.jp>
+
+ * oniguruma.h: Version 4.4.4
+
+ * regexec.c: ditto.
+
+ * regcomp.c ditto.
+
+Sat Sep 23 08:35:53 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/rdoc/ri/ri_options.rb: prevent NameError. [ruby-dev:29597]
+
+Sat Sep 23 01:02:57 2006 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * lib/date.rb, lib/date/format.rb: updated based on date2 3.9.2.
+
+Fri Sep 22 18:07:17 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (rb_str_partition): no need to call rb_call_super(),
+ since String is no longer includes Enumerable.
+
+Fri Sep 22 17:33:29 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * hash.c (rb_hash_eql): new method to be used by Hash.
+
+ * hash.c (rb_hash_hash): ditto.
+
+Fri Sep 22 06:53:22 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * bignum.c (rb_big_hash): use rb_memhash().
+
+ * numeric.c (flo_hash): simplified. klass need not to affect
+ resulting hash value.
+
+Fri Sep 22 02:06:26 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * .cvsignore: ignore timestamp files and installed list file.
+
+Fri Sep 22 01:36:34 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * instruby.rb: include FileUtils unconditionally.
+
+Fri Sep 22 00:36:05 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * numeric.c (Init_Numeric): fix_odd_p and fix_even_p are for Fixnum.
+ patch from Ondrej Bilka <neleai at seznam.cz>. [ruby-core:08904]
+
+Thu Sep 21 22:56:20 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * common.mk (no-install): not install rdoc actually.
+
+ * common.mk (install-doc, no-install-doc): use instruby.rb.
+
+ * instruby.rb: rdoc installation.
+
+ * ext/extmk.rb: expand ruby executable names.
+
+Thu Sep 21 20:19:22 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (str_new3): embed shorter strings more eagerly.
+
+Thu Sep 21 17:44:49 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (rb_str_startwith): a new method to check if a string
+ starts with given prefix.
+
+ * string.c (rb_str_endwith): the opposite of String#startwith?.
+
+Thu Sep 21 16:29:02 2006 WATANABE Hirofumi <eban@ruby-lang.org>
+
+ * rubytest.rb: use each_line instead of each.
+
+Thu Sep 21 15:06:24 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * numeric.c (int_odd_p): a new method to check even or odd.
+ [RCR#337]
+
+ * numeric.c (int_even_p): ditto.
+
+Thu Sep 21 13:55:07 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ext/etc/etc.c (etc_getpwuid): uid integer should be wrapped in
+ uid_t value. [ruby-core:08897]
+
+ * ext/etc/etc.c (etc_getpwuid): uid_t may be bigger than plain
+ 'int' type.
+
+Thu Sep 21 10:07:09 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (rb_str_partition): RDoc typo fixed. [ruby-core:08898]
+
+ * string.c (rb_str_rpartition): fixed separation seek bug.
+
+Thu Sep 21 09:38:12 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (rb_str_lines): new method to split a string into lines.
+
+ * string.c (Init_String): Strings are no longer Enumerable. use
+ each_line or lines method explicitly.
+
+ * string.c (Init_String): remove each method. use each_lines.
+
+Wed Sep 20 23:17:41 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * common.mk (pre-install-doc): create data directory before install.
+
+ * lib/mkmf.rb (dir_re): fixed typo.
+
+ * lib/mkmf.rb (install_dirs): remove extra slash.
+
+Wed Sep 20 22:41:45 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * numeric.c (fix_mul): typo again. patch from Tadashi Saito
+ <shiba at mail2.accsnet.ne.jp>. fixed: [ruby-core:08893]
+
+Wed Sep 20 19:32:06 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (rb_str_partition): a new method to separate the string
+ by a separator. taken from Python 2.5.
+
+ * string.c (rb_str_rpartition): ditto.
+
+Wed Sep 20 09:49:40 2006 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * {bcc32,win32,wince}/Makefile.sub (INSTALLED_LIST): need to define
+ this macro to install.
+
+Wed Sep 20 09:43:10 2006 Shugo Maeda <shugo@ruby-lang.org>
+
+ * lib/net/imap.rb: allow extra spaces in responses.
+ Thanks, Tom Soderlund.
+
+Wed Sep 20 09:25:39 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ext/gdbm/gdbm.c: add RDoc documentation. a patch from Peter
+ Adolphs <futzilogik at users dot sourceforge dot net>.
+ [ruby-doc:1223]
+
+Tue Sep 19 00:42:15 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * object.c (rb_obj_ivar_defined, rb_mod_cvar_defined): new methods,
+ Kernel#instance_variable_defined? and Module#class_variable_defined?.
+ [ruby-dev:29587]
+
+ * lib/date/format.rb (Date::Bag#method_missing): use new method,
+ instance_variable_defined? to check if an instance variable is
+ defined. fixed: [ruby-dev:29554]
+ -- This didn't fix anything.
+
+Tue Sep 19 00:07:17 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (sym_eql): fail early to gain performance.
+
+ * string.c (sym_hash): cache hash value in aux.shared if possible.
+
+ * gc.c (rb_obj_id): no need to treat symbols specially.
+
+ * lib/fileutils.rb (FileUtils::FileUtils): singleton_methods() no
+ longer return an array of strings, but of symbols.
+
+ * lib/delegate.rb (DelegateClass): ditto.
+
+Mon Sep 18 15:29:21 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * dir.c (dir_s_glob): restore GC protection volatile variable.
+ [ruby-dev:29588]
+
+ * re.c (rb_reg_regcomp): ditto.
+
+Mon Sep 18 12:16:48 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * numeric.c (fix_mul): get rid of shift overflow.
+
+Mon Sep 18 10:47:49 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * dir.c (dir_s_glob): remove unused variable.
+
+ * math.c (math_log): ditto.
+
+ * re.c (rb_reg_regcomp): ditto.
+
+ * eval.c (break_jump): ditto.
+
+ * eval.c (rb_thread_yield_0): remove unused function.
+
+Sun Sep 17 23:44:58 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/rdoc/rdoc.rb (RDoc::RDoc#document): scan only files modified
+ after the previous generation.
+
+Sun Sep 17 17:42:13 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * common.mk (install-doc): reverted.
+
+ * instruby.rb: stores file name list without destdir prefix.
+
+ * lib/rdoc/generators/ri_generator.rb: do not chdir twice.
+
+Sun Sep 17 10:42:10 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * numeric.c (fix_mul): fixed typo. fixed: [ruby-core:08885]
+
+Sat Sep 16 19:47:16 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * README.EXT: should mention new macros: RSTRING_PTR, RSTRING_LEN,
+ RARRAY_PTR, RARRAY_LEN.
+
+ * README.EXT.ja: ditto.
+
+Sat Sep 16 16:39:23 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * Makefile.in, common.in, instruby.rb, ext/extmk.rb, lib/mkmf.rb:
+ use instruby.rb to install extensions instead of ext/extmk.rb.
+
+ * instruby.rb: store installed list into the file.
+
+ * ext/dbm/extconf.rb: allow multiple candidates for dbm-type.
+
+ * ext/io/wait/extconf.rb: suspicious checking_for.
+
+ * ext/pty/pty.c (establishShell): parent pid is not used.
+
+ * ext/pty/pty.c (freeDevice): not used.
+
+ * lib/mkmf.rb (checking_for): improved the messages.
+
+Sat Sep 16 11:03:49 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * array.c (ary_shared_first): should create embedded copies
+ instead of sharing memory region for smaller arrays.
+
+Sat Sep 16 09:37:39 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * struct.c (inspect_struct): do not display a class name for
+ anonymous struct. The member fields are sufficient.
+
+Fri Sep 15 20:22:15 2006 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * ext/nkf/nkf-8/nkf.c: imported nkf 2.0.8 rev.110.
+ * Fix: check_bom cuts \xfe\xff\xXX\xXX of UTF-32LE.
+ * Add support --ic=UTF-32.
+ * Fix: can't guess UTF-16 and UTF-32.
+ * Fix: can't decode beyond BMP of UTF-16LE.
+
+ * ext/nkf/nkf.c (guess): Support UTF-32.
+
+ * ext/nkf/lib/kconv.rb (kconv): Support UTF-32.
+
+ * ext/nkf/lib/kconv.rb (to_utf32): new method.
+
+Fri Sep 15 05:23:24 2006 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * ext/nkf/nkf-8/nkf.c: imported nkf 2.0.8 2006-09-15.
+ Add support for U+10000 - U+10FFFF
+ Add support UTF-32
+
+Fri Sep 15 00:03:07 2006 Tanaka Akira <akr@fsij.org>
+
+ * ext/digest/lib/digest.rb (Digest::Base.file): open a file in binary
+ mode. suggested by Kazuhiro NISHIYAMA. [ruby-dev:29579]
+
+Thu Sep 14 17:21:07 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * numeric.c (fix_mul): avoid bignum multiplication as far as
+ possible. a patch from Ondrej Bilka <neleai at seznam.cz>.
+ [ruby-core:08825]
+
+Thu Sep 14 16:34:55 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (rb_str_intern): allow zero length symbols.
+ [ruby-core:08861]
+
+Thu Sep 14 16:11:15 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (rb_str_intern): raise SecurityError only when $SAFE
+ level is greater than zero. [ruby-core:08862]
+
+ * parse.y (rb_interned_p): new function to check if a string is
+ already interned.
+
+ * string.c (str_to_id): use rb_str_intern().
+
+Thu Sep 14 14:37:45 2006 Tanaka Akira <akr@fsij.org>
+
+ * ext/digest/lib/digest.rb (Digest::Base.file): new method.
+ [ruby-dev:29572]
+
+Thu Sep 14 08:30:02 2006 Tanaka Akira <akr@fsij.org>
+
+ * ext/digest/digest.c (rb_digest_base_inspect): new method.
+ [ruby-dev:29573]
+
+Thu Sep 14 01:13:56 2006 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * gc.c (ruby_init_stack): decrease "stack level too deep" in Windows.
+ [ruby-dev:29569]
+
+Thu Sep 14 01:02:25 2006 Tanaka Akira <akr@fsij.org>
+
+ * ext/digest/lib/digest.rb: new file.
+ [ruby-dev:28689]
+
+Wed Sep 13 18:43:05 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * README.EXT: English adjustment. [ruby-core:08851] and
+ [ruby-core:08852]
+
+Wed Sep 13 18:25:18 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * misc/ruby-mode.el (ruby-parse-partial): better here-doc support.
+ a patch from Marshall T. Vandegrift <llasram at gmail.com>.
+ [ruby-core:08804]
+
+Wed Sep 13 16:43:36 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (rb_str_intern): prohibit interning tainted string.
+
+Wed Sep 13 01:14:02 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/optparse.rb (OptionParser#getopts): works with pre-registered
+ options. [ruby-core:08826]
+
+Tue Sep 12 03:58:39 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * hash.c (rb_hash_compare_by_identity): rename Hash#identical to
+ Hash#compare_by_identity.
+
+Mon Sep 11 16:52:37 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * hash.c (rb_hash_identical): a new method to make a hash to
+ compare keys by their identity.
+
+ * hash.c (rb_hash_identical_p): new method to tell if a hash is
+ identical or not.
+
+ * st.c (st_numcmp, st_numhash): export hash type functions.
+
+Mon Sep 11 11:42:21 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/rexml/source.rb (REXML::Source::encoding): should not
+ convert the body twice. [ruby-core:08828]
+
+ * lib/rexml/encoding.rb (REXML::Encoding::encoding):
+ Encoding#encoding= to return boolean value to tell if the body
+ is really converted or not.
+
+ * lib/rexml/encoding.rb (REXML::Encoding::encoding): Specific
+ conversion library (e.g. rexml/encodings/UTF-16.rb) to have
+ higher preceding.
+
+ * lib/rexml/encodings/UTF-16.rb (REXML::Encoding::decode_utf16):
+ UTF-16#decode_utf16 should work strings without BOM.
+
+Mon Sep 11 07:39:44 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (sym_equal): "sym == str" should compare them as
+ strings. [ruby-dev:29554]
+
+Sun Sep 10 22:59:43 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * instruby.rb (parse_args): remove splat.
+
+Sun Sep 10 20:25:30 2006 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * lib/date.rb, lib/date/format.rb: updated based on date2 3.9.1.
+
+Sun Sep 10 09:41:29 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * file.c: ISPRINT() needs ctype.h
+
+Sun Sep 10 09:19:47 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/optparse.rb: splat parsed arguments.
+
+Tue Jan 10 09:18:03 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (rb_require_safe): prevent extension from loading twice.
+ fixed: [ruby-dev:29523]
+
+Sat Sep 9 23:55:28 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * file.c (rb_f_test): test(0) should not have any special
+ meaning. [ruby-dev:29425]
+
+ * file.c (rb_f_test): properer error message.
+
+Sat Sep 9 14:08:38 2006 Eric Hodel <drbrain@segment7.net>
+
+ * lib/test/unit/testcase.rb (Test::Unit::TestCase#run): Rescue
+ Exception in Test::Unit::TestCase#run. [ruby-core:08783]
+
+Sat Sep 9 04:55:59 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/pstore.rb: open all in binary mode, and get rid of the quirk of
+ msvcrt. fixed: [ruby-dev:29518]
+
+Sat Sep 9 04:47:45 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * Makefile.in, win32/Makefile.sub (MINIRUBY): append MINIRUBYOPT.
+
+ * mkconfig.rb, ext/extmk.rb, lib/mkmf.rb, win32/mkexports.rb: suppress
+ warnings with $VERBOSE.
+
+ * win32/resource.rb: only file which has more than one icon is DLL.
+
+Fri Sep 8 16:53:30 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (str_alloc): should allocate a String object, even when
+ asked to allocate a Symbol object. [ruby-dev:29529]
+
+Fri Sep 8 16:36:27 2006 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * ext/extmk.rb (extmake): follow Array#to_s.
+
+ * lib/mkmf.rb (create_makefile): ditto.
+
+ * win32/resource.rb: ditto.
+
+Fri Sep 8 10:00:12 2006 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * lib/webrick/cookie.rb (WEBrick::Cookie.parse_set_cookies): new
+ method to parse multiple cookies per Set-Cookie header.
+ Thanks to Aaron Patterson <aaron_patterson at speakeasy.net>.
+ [ruby-core:08802]
+
+Fri Sep 8 08:59:30 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * win32/Makefile.sub, win32/configure.bat win32/setup.mak: program
+ name transform.
+
+Fri Sep 8 08:25:39 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/optparse.rb: suppress `assigning void value' warning.
+
+Fri Sep 8 01:16:34 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * array.c (Init_Array): #to_s to be an alias to #inspect.
+ [ruby-dev:29520]
+
+ * hash.c (Init_Hash): ditto.
+
+ * lib/mkmf.rb (create_makefile): replace "print array" by
+ "print *array".
+
+ * mkconfig.rb: ditto.
+
+Thu Sep 7 21:02:56 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * object.c (nil_to_s): returns the empty string again.
+ [ruby-dev:29520]
+
+Thu Sep 7 23:27:05 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * file.c (path_check_0, fpath_check): disable path check on cygwin.
+ [ruby-talk:213074]
+
+Thu Sep 7 02:03:45 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * time.c (time_to_s): adopt new date format using digits
+ e.g. "2006-09-07 02:03:45 +9000".
+
+Thu Sep 7 01:54:22 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (sym_equal): override. check equivalence.
+
+Wed Sep 6 13:25:04 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * parse.y (symbols_i): need to initialize early-created symbols.
+ [ruby-dev:29496]
+
+Wed Sep 6 12:05:19 2006 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * ext/nkf/lib/kconv.rb (Kconv::toeuc): remove -m0 [ruby-dev:29505]
+
+Tue Sep 5 22:06:43 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/tk/tcltklib.c: use rb_ary_new3() since RARRAY_LEN() is not l-value.
+
+ * ext/tk/tkutil/tkutil.c: use RARRAY_PTR() and RARRAY_LEN() and etc.
+ fixed: [ruby-dev:29473]
+
+Tue Sep 5 06:47:22 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * time.c (time_to_s): variable declaration after an execution
+ statement.
+
+Tue Sep 5 05:49:41 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * file.c (path_check_0): check if sticky bit is set on parent
+ directories for executable path. fixed: [ruby-dev:29415]
+
+Tue Sep 5 05:03:46 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * numeric.c (fix_plus): addition in Fixnum will never overflow
+ long. a patch from Ondrej Bilka <neleai at seznam.cz>.
+ [ruby-core:08794]
+
+ * numeric.c (fix_minus): ditto.
+
+ * bignum.c (rb_big_pow): eagerly truncate resulting bignum.
+ [ruby-core:08794]
+
+Mon Sep 4 23:15:34 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * time.c (time_to_s): make it conform to RFC2822 date format.
+ [ruby-dev:29467]
+
+Mon Sep 4 21:43:57 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/dbm/extconf.rb: create makefile according to the result of check
+ for dbm header. fixed: [ruby-dev:29445]
+
+Mon Sep 4 21:39:42 2006 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * lib/date.rb, lib/date/format.rb: updated based on date2 3.9.
+
+Mon Sep 4 21:14:20 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * time.c (time_strftime): include nul character. fixed: [ruby-dev:29422]
+
+Mon Sep 4 16:39:11 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/cgi.rb (CGI::out): specify -x option for nkf.
+
+ * lib/cgi.rb (CGI::out): should not convert utf-8 implicitly using
+ NKF. it is too Japanese centric.
+
+Mon Sep 4 14:23:10 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ext/dbm/extconf.rb (db_check): remove debug print.
+
+Mon Sep 4 06:46:08 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * parse.y (rb_id2sym): intern if id is attrset_id.
+ [ruby-dev:29420] [ruby-dev:29447]
+
+Mon Sep 4 01:25:16 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (rb_f_local_variables): list symbols.
+
+ * struct.c (rb_struct_s_members_m): ditto.
+
+ * variable.c (ivar_i): ditto.
+
+ * variable.c (gvar_i): ditto.
+
+ * variable.c (cv_i): ditto.
+
+Sun Sep 3 20:47:02 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ruby.h (SYMBOL_P): Qnil and Qfalse are not Symbol.
+
+Sun Sep 3 15:32:44 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/mkmf.rb: get rid of nil.to_s.
+
+Sun Sep 3 06:24:38 2006 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/socket.c (ruby_connect): sockerrlen should be socklen_t.
+
+Sun Sep 3 04:40:42 2006 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/extconf.rb: check arpa/inet.h for ntohs.
+
+ * ext/socket/socket.c: include arpa/inet.h if available.
+
+Sat Sep 2 23:59:58 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (Init_String): undef Symbol#new.
+
+ * struct.c (rb_struct_s_def): wrong symbol detection.
+
+Sat Sep 2 23:59:37 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (str_to_id): a bug caused by premature optimization.
+
+Sat Sep 2 23:53:28 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * object.c (Init_Object): move symbol related code to string.c
+
+ * string.c (Init_String): Symbol as subclass of String.
+
+ * parse.y (rb_intern2): handle symbol as strings.
+
+ * string.c (str_new): substring of symbols are mere strings, not
+ symbols.
+
+Sat Sep 2 23:37:29 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ruby.h (struct RArray): embed small arrays.
+ (RARRAY_LEN): defined for accessing array members.
+ (RARRAY_PTR): ditto.
+
+ * array.c: use RARRAY_LEN and RARRAY_PTR.
+
+Sat Sep 2 13:23:01 2006 Tanaka Akira <akr@fsij.org>
+
+ * common.mk (ia64.o): use the compiler driver to assemble ia64.s
+ to use appropriate ABI.
+
+Sat Sep 2 12:06:35 2006 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * lib/soap/generator.rb (SOAP::SOAPGenerator#encode_tag): do not dump
+ XML attribute which value is nil. value "" and nil both were dumped
+ as 'attr="value"'. [ruby-dev:29395]
+
+Sat Sep 2 12:00:32 2006 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * lib/csv.rb (CSV::IOReader#initialize): use String#[](pos, len)
+ instead of String#[](idx) to check utf BOM. follows String#[](idx)
+ behavior change of 1.9.
+
+Sat Sep 2 11:47:58 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (rb_eval): should handle when in else clause. a patch
+ from Eric Hodel <drbrain at segment7.net>. [ruby-core:08662]
+
+ * parse.y (primary): wrap with NODE_CASE. [ruby-core:08663]
+
+Fri Sep 1 22:07:04 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ruby.h (RSTRING_EMBED_LEN_MASK): uses 5 bits to support 64bit
+ environment. [ruby-dev:29369]
+
+Fri Sep 1 22:02:08 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (rb_str_resize): should copy embedded string to
+ malloc'ed buffer. a patch from <nobu at ruby-lang.org> in
+ [ruby-dev:29369]. fixed: [ruby-dev:29368]
+
+ * string.c (rb_str_ord): use %ld specifier since STRING_LEN() is a
+ long. [ruby-dev:29369]
+
+Fri Sep 1 21:41:12 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ext/socket/socket.c (socks_init): typo fixed. a patch from Sven
+ Klemm <sven at c3d2.de>. [ruby-core:08770]
+
+Fri Sep 1 14:22:42 2006 WATANABE Hirofumi <eban@ruby-lang.org>
+
+ * array.c (rb_ary_shuffle): RDoc fixed.
+
+Fri Sep 1 13:52:57 2006 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/tk/font.rb: TkFont#current_configinfo() doesn't work
+ on Tcl/Tk8.x.
+
+Fri Sep 1 09:32:55 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/irb/ruby-lex.rb (RubyLex::getc): should not push nil into
+ reading buffer (@readed). reported in
+ <http://jarp.does.notwork.org/diary/200608c.html#200608311>.
+
+Thu Aug 31 23:59:03 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/mkmf.rb (configuration): follow nil.to_s.
+
+Thu Aug 31 20:50:46 2006 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * lib/mkmf.rb (create_makefile): follow nil.to_s.
+
+ * win32/resource.rb: ditto.
+
+Thu Aug 31 20:21:47 2006 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * eval.c (search_required): use RSTRING_PTR and RSTRING_STR.
+
+ * file.c (test_identical, rb_file_s_truncate): ditto.
+
+ * io.c (pipe_open, rb_io_reopen): ditto.
+
+ * object.c (nil_plus): ditto.
+
+ * process.c (proc_spawn_n, rb_spawn): ditto.
+
+ * util.c (ruby_add_suffix): ditto.
+
+ * ext/Win32API/Win32API.c (Win32API_initialize): ditto.
+
+ * ext/dl/cptr.c (rb_dlptr_s_to_ptr): ditto.
+
+ * ext/openssl/ossl_x509ext.c (ossl_x509extfactory_create_ext): ditto.
+
+ * ext/tk/stubs.c, ext/tk/tcltklib.c, ext/tk/tkutil/tkutil.c: ditto.
+
+ * ext/win32ole/win32ole.c (ole_val2olevariantdata): ditto.
+
+Thu Aug 31 18:23:00 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ruby.h (struct RString): embed small strings.
+ (RSTRING_LEN): defined for accessing string members.
+ (RSTRING_PTR): ditto.
+
+ * string.c: use RSTRING_LEN and RSTRING_PTR.
+
+Thu Aug 31 17:16:19 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * array.c (rb_ary_shuffle_bang): new method.
+
+ * array.c (rb_ary_shuffle): ditto.
+
+ * random.c (genrand_real): ditto.
+
+ * random.c (genrand_int32): export the function.
+
+ * random.c (Init_Random): initialize random seed at the
+ beginning.
+
+Thu Aug 31 13:12:06 2006 why the lucky stiff <why@ruby-lang.org>
+
+ * eval.c (ruby_init): rename top_cref to ruby_top_cref and export,
+ along with ruby_cref, for use by the sandbox. [ruby-core:08762]
+
+ * node.h: ditto.
+
+Wed Aug 30 12:01:57 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * numeric.c (flo_hash): improve collision.
+
+ * string.c (rb_memhash): new generic function to calculate hash value
+ for memory chunk.
+
+Tue Aug 29 19:10:10 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * hash.c (rb_hash_s_create): fixed memory leak, based on the patch
+ by Kent Sibilev <ksruby at gmail.com>. fixed: [ruby-talk:211233]
+
+Mon Aug 28 11:29:46 2006 Eric Hodel <drbrain@segment7.net>
+
+ * eval.c, parse.y: Revert.
+ * ext/.document: Add digest.c.
+ * ext/digest/digest.c: Make RDoc show up.
+ * ext/io/wait.c: Fix call-seq in RDoc.
+
+Mon Aug 28 08:03:20 2006 Eric Hodel <drbrain@segment7.net>
+
+ * ext/.document: Add C files with RDoc.
+ * ext/digest/digest.c: Convert to RDoc.
+ * ext/io/wait.c: ditto.
+ * lib/rdoc/parsers/parse_rb.rb: Fix typo. Submitted by
+ <calamitas at gmail.com>. [ruby-core:08724]
+
+Mon Aug 28 07:21:47 2006 Eric Hodel <drbrain@segment7.net>
+
+ * file.c (File#size?): Fix documentation submitted by Rick Ohnemus.
+ ruby-Bugs-5529. [ruby-core:08725]
+
+Sun Aug 27 21:41:23 2006 K.Kosako <sndgk393 AT ybb.ne.jp>
+
+ * oniguruma.h: Version 4.4.0
+
+ * regint.h: ditto.
+
+ * regparse.h: ditto.
+
+ * regexec.c: ditto.
+
+ * regcomp.c ditto.
+
+ * regparse.c: ditto.
+
+Sat Aug 26 08:03:03 2006 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * lib/date.rb, lib/date/format.rb: updated based on date2 3.8.2.
+
+Fri Aug 25 21:15:22 2006 K.Kosako <sndgk393 AT ybb.ne.jp>
+
+ * common.mk: add regint.h and oniguruma.h to dependence.
+
+ * ext/strscan/depend: ditto.
+
+Fri Aug 25 20:35:57 2006 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * test/wsdl/document/echo.rb: removed.
+
+ * test/wsdl/document/test_rpc.rb: remove echo.rb after test.
+ [ruby-dev:29337]
+
+Fri Aug 25 17:02:06 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * gc.c (gc_sweep): typo fixed.
+
+Fri Aug 25 16:05:50 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * object.c (sym_call): check if the receiver is given.
+
+Fri Aug 25 01:10:11 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * object.c (rb_Integer): Integer(nil) should raise TypeError.
+ [ruby-talk:210205]
+
+ * object.c (nil_to_s): no longer returns empty string but "nil".
+ [ruby-talk:210205]
+
+ * lib/mkmf.rb: avoid COMMON_HEADERS being nil.
+
+Wed Aug 23 00:25:14 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/rexml/source.rb (REXML::IOSource#initialize): encoding have to
+ be set with the accessor. fixed: [ruby-list:42737]
+
+Tue Aug 22 19:21:00 2006 Minero Aoki <aamine@loveruby.net>
+
+ * lib/net/smtp.rb: parameter `to_addrs' might be an Array,
+ .flatten is required. [ruby-dev:29316]
+
+Tue Aug 22 18:47:51 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/rdoc/parsers/parse_c.rb (RDoc::C_Parser::handle_method):
+ rdoc documents C module methods as instance methods. a patch in
+ [ruby-core:08536].
+
+Tue Aug 22 12:35:57 2006 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * ext/nkf/lib/kconv.rb (Kconv::RegexpEucjp): fix regexp for
+ euc-jp [ruby-dev:29344]
+
+Sun Aug 20 11:46:52 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * numeric.c (num_step): also return an enumerator object if no block
+ is given.
+
+Sat Aug 19 16:47:51 2006 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+
+ * ext/win32ole/win32ole.c (hash2named_arg): accept hash argument
+ of symbol key.
+
+ * test/win32ole/test_win32ole.rb
+ ditto.
+
+Sat Aug 19 11:28:08 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * file.c (rb_file_s_rename): use errno if set properly.
+ fixed: [ruby-dev:29293]
+
+Fri Aug 18 01:05:57 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/cgi.rb (CGI::out): specify -m0 to disable MIME decode. a
+ patch from Fujioka <fuj at rabbix.jp>. [ruby-dev:29284]
+
+Thu Aug 17 19:15:16 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * file.c (rb_stat_[rRwWxX]): check for super user.
+ fixed: [ruby-core:08616]
+
+Thu Aug 17 14:47:06 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/mkmf.rb: added rdoc by Daniel Berger. [ruby-core:08177]
+
+Wed Aug 16 17:46:59 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * marshal.c (r_byte): IO#getc returns one byte string now.
+ fixed: [ruby-dev:29255]
+
+Wed Aug 16 17:22:44 2006 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * common.mk (pre-install-local): remove unnecessary code.
+ [ruby-dev:29249]
+
+Wed Aug 16 11:45:36 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * process.c (proc_setuid, proc_setgid, proc_seteuid, proc_setegid):
+ get rid of bogus implementations on Mac OS X.
+
+Wed Aug 16 11:09:26 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ruby.c (set_arg0): fill argv other than the first with an empty
+ string instead of NULL.
+
+Tue Aug 15 11:21:08 2006 Minero Aoki <aamine@loveruby.net>
+
+ * lib/net/smtp.rb: support SMTP/SSL. Thanks Kazuhiro NISHIYAMA.
+
+ * lib/net/smtp.rb: new method SMTP.use_ssl?
+
+ * lib/net/smtp.rb: new method SMTP.enable_ssl.
+
+ * lib/net/smtp.rb: new method SMTP.disable_ssl.
+
+ * lib/net/smtp.rb: new method SMTP.default_ssl_port.
+
+ * lib/net/smtp.rb: new method SMTP.default_tls_port.
+
+ * lib/net/smtp.rb: now SMTP#enable_tls accepts a SSLContext
+ object, instead of a verity and cert. [FEATURE CHANGE]
+
+ * lib/net/smtp.rb: new method SMTP.ssl_context.
+
+ * lib/net/smtp.rb: new method SMTP.default_ssl_context.
+
+ * lib/net/smtp.rb: export SMTP.authenticate.
+
+ * lib/net/smtp.rb: export SMTP.auth_plain.
+
+ * lib/net/smtp.rb: export SMTP.auth_login.
+
+ * lib/net/smtp.rb: export SMTP.auth_cram_md5.
+
+ * lib/net/smtp.rb: export SMTP.starttls.
+
+ * lib/net/smtp.rb: export SMTP.helo.
+
+ * lib/net/smtp.rb: export SMTP.ehlo.
+
+ * lib/net/smtp.rb: export SMTP.mailfrom.
+
+ * lib/net/smtp.rb: export SMTP.rcptto.
+
+ * lib/net/smtp.rb: export SMTP.rcptto_list.
+
+ * lib/net/smtp.rb: export SMTP.data.
+
+ * lib/net/smtp.rb: export SMTP.quit.
+
+Sat Aug 12 22:33:06 2006 Eric Hodel <drbrain@segment7.net>
+
+ * string.c (String#split): Describe grouping behavior. Patch by Jan
+ Svitok <jan.svitok at gmail.com>. [ruby-core:08603]
+
+Sun Aug 13 12:08:02 2006 Tanaka Akira <akr@fsij.org>
+
+ * ext/socket/socket.c: ANSIfied. [ruby-core:08601]
+
+Sat Aug 12 15:55:32 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in, bcc32/Makefile.sub, win32/Makefile.sub, win32/dir.h,
+ win32/win32.c, win32/win32.h: large file support for win32.
+
+Fri Aug 11 15:39:25 2006 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rdoc/parsers/parse_c.rb (RDoc::C_Parser#find_body): Make RDoc
+ ignore C function prototypes. Patch by Tilman Sauerbeck
+ <tilman at code-monkey.de>. [ruby-core:8574]
+ * lib/yaml/tag.rb: Replace nodoc with stopdoc so Module methods get
+ documented.
+
+Wed Aug 9 16:53:28 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/net/smtp.rb (Net::SMTP::auth_cram_md5): use ord to retrieve
+ bytes from strings. a patch from WATANABE Tetsuya
+ <Tetsuya.WATANABE at nifty.com>. [ruby-dev:29240]
+
+Tue Aug 8 23:49:06 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/irb/extend-command.rb (IRB::ExtendCommandBundle): pacify
+ RDoc. a patch from Eric Hodel <drbrain at segment7.net>.
+ [ruby-core:08522]
+
+Tue Aug 8 19:26:10 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/resolv.rb (Resolv::DNS::Message::MessageDecoder::get_string):
+ affected by str[0] returns 1 char string. [ruby-dev:29223]
+
+ * lib/resolv.rb (Resolv::DNS::Message::MessageDecoder::get_labels):
+ ditto.
+
+Tue Aug 8 12:28:43 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (arg): allow newlines before ternary colon. [ruby-dev:29189]
+
+Mon Aug 7 17:56:59 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ext/bigdecimal/bigdecimal.c, ext/digest/rmd160/rmd160ossl.c,
+ ext/digest/sha1/sha1ossl.c, ext/readline/readline.c: move
+ inclusion of config.h to pacify AIX. a patch from Yutaka
+ Kanemoto <kinpoco at gmail.com>. [ruby-dev:29197]
+
+Mon Aug 7 15:55:08 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ext/syck/syck.c (syck_move_tokens): should avoid negative
+ memmove. [ruby-list:42625]
+
+Mon Aug 7 14:37:48 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * configure.in, common.mk: AIX link issue. a patch from Yutaka
+ Kanemoto <kinpoco at gmail.com>. [ruby-dev:29190]
+
+ * ext/socket/socket.c: AIX socket support. [ruby-dev:29190]
+
+Mon Aug 7 12:05:28 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * dln.c, eval.c, gc.c, ruby.h: shut up AIX alloca warning.
+ a patch from Yutaka Kanemoto <kinpoco at gmail.com>.
+ [ruby-dev:29191]
+
+Sun Aug 6 20:34:24 2006 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * lib/date/format.rb (str[fp]time): %[EO]U didn't denote %U.
+
+Sun Aug 6 17:12:12 2006 Tanaka Akira <akr@fsij.org>
+
+ * io.c (io_reopen): STDERR.reopen(open("/dev/tty", "w")) should not
+ clear FMODE_PREP in STDERR.
+
+Sat Aug 5 22:53:41 2006 K.Kosako <sndgk393 AT ybb.ne.jp>
+
+ * oniguruma.h: Version 4.2.2
+
+ * regint.h: ditto.
+
+ * regparse.h: ditto.
+
+ * regexec.c: ditto.
+
+ * regcomp.c ditto.
+
+ * regerror.c: ditto.
+
+ * regparse.c: ditto.
+
+Sat Aug 5 17:07:43 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * parse.y (top_local_setup): local_vars[-1] should point
+ ruby_scope itself to protect local_tbl from garbage collection.
+ [ruby-dev:29049]
+
+Sat Aug 5 13:49:43 2006 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * lib/date/format.rb (str[fp]time): "%\n" means "\n".
+
+Fri Aug 4 12:13:22 2006 Eric Hodel <drbrain@segment7.net>
+
+ * lib: Clean up files for RDoc.
+ * lib/.document: Include most of the standard library in RDoc
+ generation.
+ * lib/rdoc/ri/ri_formatter.rb: Don't unescape HTML in HtmlFormatter.
+ Submitted by <ksruby at gmail.com>. [ruby-core:08392].
+ * lib/drb/ssl.rb: Close socket on SSLError [ruby-core:7197]
+
+Fri Aug 4 18:59:49 2006 Keiju Ishitsuka <keiju@ruby-lang.org>
+
+ * lib/irb/{init.rb,ruby-lex.rb,slex.rb}: can't input '\c' for
+ [ruby-core: 7122]. and support for ruby1.8.X
+
+Fri Aug 4 14:02:14 2006 James Edward Gray II <james@grayproductions.net>
+
+ * lib/date/format.rb (__strptime, strftime): allow multi-line patterns
+ in Date#strftime the same as Time#strftime accepts.
+ fixed: [ruby-core:08466]
+
+Fri Aug 4 13:56:51 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * pack.c (pack_pack): check argument overrun for 'P'. based on a
+ patch by rucila <rucila at yahoo.cojp>. fixed: [ruby-dev:29182]
+
+Fri Aug 4 02:42:29 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * sprintf.c (rb_str_format): a bug in %c type check.
+
+Fri Aug 4 01:28:19 2006 Tanaka Akira <akr@fsij.org>
+
+ * io.c (io_reopen): STDERR.reopen(File.open("/dev/null", "w")) should
+ not fclose stderr.
+
+Thu Aug 3 15:16:44 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * range.c (range_include): should always call Enumerable#include?
+ (not #===) for non numeric end points. [ruby-core:08477]
+ [ruby-core:08496]
+
+Mon Jul 31 16:51:40 2006 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/win32.c (exit_handler): new function; release winsock and
+ environment work area.
+
+ * win32/win32.c (NTInitialize): setup exit_handler.
+
+ * win32/win32.c (StartSockets): use exit_handler.
+
+ * win32/win32.c (rb_w32_getenv): use GetEnvironmentStrings() instead
+ of GetEnvironmentVariable(), because the latter cannot distinguish
+ whether a null environment variable exists or not.
+ fixed: [ruby-talk:205123]
+
+Mon Jul 31 16:15:13 2006 Tanaka Akira <akr@fsij.org>
+
+ * test/ruby/test_process.rb (TestProcess#test_rlimit_nofile):
+ setrlimit may fail with EINVAL.
+ reported by MIYAMUKO Katsuyuki. [ruby-dev:29174]
+
+Mon Jul 31 09:22:12 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ruby.h: use ifdef (or defined) for macro constants that may or
+ may not be defined to shut up gcc's -Wundef warnings.
+ [ruby-core:08447]
+
+Mon Jul 31 13:38:13 2006 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * lib/webrick/httprequest.rb (WEBrick::HTTPReuqest#parse_uri): improve
+ for the value of IPv6 address in the Host: header field.
+
+Sun Jul 30 23:26:12 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (rb_call0): trace call/return of method defined from block.
+ fixed: [ruby-core:08329]
+
+ * eval.c (rb_trap_eval): make the current thread runnable to deal with
+ exceptions which occurred within the trap. fixed: [ruby-dev:27729]
+
+ * lib/cgi/session.rb, lib/cgi/session/pstore.rb: suppress warnings.
+ fixed: [ruby-talk:204896]
+
+Sat Jul 29 06:12:06 2006 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/multi-tk.rb: freeze ip_name for security reason.
+
+Sat Jul 29 01:23:52 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/logger.rb: improves the amount of documentation that Rdoc
+ picks up when processing logger.rb by moving the require
+ statement back before the comment block. a patch from Hugh
+ Sasse <hgs at dmu.ac.uk>. [ruby-core:08422]
+
+Fri Jul 28 17:18:03 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/curses/curses.c (NUM2CH, CH2FIX): use single char strings.
+
+Fri Jul 28 14:09:14 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (rb_call): fixed typo in cache look-up. [ruby-dev:29167]
+
+Fri Jul 28 10:41:35 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (rb_call): a bug in method cache look-up.
+ http://www.rubyist.net/~matz/20060720.html#c04
+
+Fri Jul 28 10:19:28 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * sprintf.c (rb_f_sprintf): documentation update patch from Jacob
+ Fugal <lukfugl at gmail.com>. [ruby-core:08418]
+
+Fri Jul 28 09:41:45 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * time.c (time_to_s): fixed typo. [ruby-dev:29162]
+
+Fri Jul 28 00:26:47 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * math.c (domain_check): ANSI style function arguments
+
+ * math.c (math_log): too few argument to domain_check().
+
+Thu Jul 27 21:19:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * math.c (domain_check): a new function to check domain error
+ explicitly for systems that return NaN like FreeBSD.
+ [ruby-core:07019]
+
+ * math.c (math_acos, math_asin, math_acosh, math_atanh, math_log,
+ math_log10, math_sqrt): use domain_check().
+
+ * math.c (math_sqrt): fix documentation flaw.
+
+Thu Jul 27 22:21:52 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * time.c (time_to_s): fixed format mismatch.
+
+Thu Jul 27 18:12:12 2006 WATANABE Hirofumi <eban@ruby-lang.org>
+
+ * time.c: need to declare time_utc_offset.
+
+Thu Jul 27 17:01:01 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * io.c (io_close): always calls "close" method of the receiver.
+ [ruby-core:6911] [ruby-core:8112]
+
+Thu Jul 27 16:41:15 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ext/openssl/ossl.h: move <ruby.h> inclusion point to shut up
+ Solaris compiler. [ruby-core:08114]
+
+ * time.c (time_to_s): use +0900 style timezone string for local time.
+ [ruby-dev:29143]
+
+Wed Jul 26 22:20:59 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * configure.in: add support for as and ASFLAGS. [ruby-dev:29138]
+
+Wed Jul 26 21:59:33 2006 Minero Aoki <aamine@loveruby.net>
+
+ * lib/net/http.rb (Net::HTTP#post, request_post, request): should
+ set Content-Type: x-www-form-urlencoded by default.
+
+ * lib/net/http.rb (Net::HTTPHeader#content_type): should return
+ nil when there's no Content-Type.
+
+ * lib/net/http.rb (Net::HTTPHeader#sub_type): should return nil
+ when there's no sub Content-Type (e.g. "Content-Type: text").
+
+ * lib/net/http.rb (Net::HTTPHeader#type_params): wrongly failed
+ when there's no Content-Type.
+
+Wed Jul 26 18:38:13 2006 Minero Aoki <aamine@loveruby.net>
+
+ * ext/strscan/strscan.c (strscan_do_scan): always return nil if
+ p->curr exceeds string size.
+
+Wed Jul 26 18:33:31 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (Init_eval): rename #invoke_method and
+ #invoke_functional_method to __send and __send! respectively.
+
+ * eval.c (remove_method): prohibit removing __send and __send!.
+
+ * eval.c (rb_undef): prohibit undef'ing __send and __send!.
+
+ * eval.c (rb_eval): prohibit redefining __send and __send!.
+
+ * lib/delegate.rb (Delegator): preserve __send.
+
+Wed Jul 26 18:14:19 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/pty/pty.c (getDevice): retry once after GC on failure.
+ [ruby-core:08282]
+
+Wed Jul 26 17:43:20 2006 Minero Aoki <aamine@loveruby.net>
+
+ * ext/strscan/strscan.c (strscan_do_scan):
+ StringScanner.new("").scan(//) should return "". [ruby-Bugs:4361]
+
+Wed Jul 26 17:28:16 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * sprintf.c (rb_str_format): prepend ".." to %u for negative bignum,
+ but not "-". fixed: [ruby-core:08167]
+
+Wed Jul 26 16:39:07 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (rb_str_scan): add string modification check.
+ [ruby-core:7216]
+
+Wed Jul 26 16:06:03 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/cgi.rb (CGI::QueryExtension::read_multipart): check
+ multipart boundary end. a patch from Fujioka <fuj at rabbix.jp>
+ [ruby-dev:28470]
+
+Wed Jul 26 01:02:59 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in: suppress warnings by automake 1.8 or later.
+
+Tue Jul 25 14:46:14 2006 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * lib/mkmf.rb (configuration): typo.
+
+Tue Jul 25 13:14:32 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * process.c (rb_proc_times): rename hz to hertz to avoid name
+ crash on AIX. [ruby-dev:29126]
+
+Mon Jul 24 22:03:40 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (backtrace): skip frames successive on node and method name.
+
+Mon Jul 24 15:51:52 2006 Tanaka Akira <akr@fsij.org>
+
+ * ext/readline/readline.c (readline_readline): rl_deprep_term_function
+ may be NULL with libedit. reported by Ryan Davis. [ruby-dev:29070]
+
+Mon Jul 24 15:19:55 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (rb_call0): revert last change. [ruby-dev:29112]
+ [ruby-core:08374]
+
+Sun Jul 23 22:59:49 2006 Tanaka Akira <akr@fsij.org>
+
+ * test/socket/test_unix.rb: disabled on cygwin.
+ reported by Kouhei Yanagita. [ruby-dev:29080]
+
+Fri Jul 21 23:57:26 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ruby.c (proc_options): script is never used while recursing.
+
+Fri Jul 21 21:21:08 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (rb_call0): include funcalled methods in caller list.
+ fixed: [ruby-core:08290]
+
+Fri Jul 21 17:52:24 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * object.c (rb_cstr_to_dbl): "9_e8" should consider "_e8" as
+ trailing garbage so that it should return 9.0. [ruby-dev:29088]
+
+Fri Jul 21 12:11:00 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/extmk.rb, lib/mkmf.rb (with_destdir): remove drive letter before
+ prepending destdir on DOSISH.
+
+Fri Jul 21 04:17:22 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (rb_call): try local method look-up first for fcall, then
+ normal method look-up. [ruby-talk:202564]
+
+ * eval.c (rb_get_method_body): save local method cache separately.
+
+ * eval.c (search_method): export info whether method is local or
+ not.
+
+Thu Jul 20 20:27:07 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * object.c (rb_mod_attr): make Module#attr to be an alias to
+ attr_reader. [RCR#331]
+
+Thu Jul 20 15:07:14 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ruby.h: export classes/modules to implement sandbox.
+ [ruby-core:08283]
+
+Wed Jul 19 19:40:00 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (rb_yield_0): should check args_args before lambda
+ argument check. [ruby-dev:29029]
+
+Tue Jul 18 23:53:59 2006 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * process.c (rb_f_system): shouldn't block SIGCHLD if it's not
+ exist.
+
+Tue Jul 18 22:10:13 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * process.c (rb_f_system): block SIGCHLD during the process
+ execution, like glibc system(3) does. [ruby-talk:202361]
+
+Tue Jul 18 23:10:43 2006 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/win32.c (open_ifs_socket): should not use plain malloc.
+
+ * win32/win32.c (rb_w32_opendir): should not use plain realloc.
+
+Tue Jul 18 18:05:49 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * test/ruby/test_float.rb (TestFloat::test_strtod): update test to
+ conform strtod change.
+
+Tue Jul 18 16:52:29 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (yield_under_i): argument should be passed in avalue
+ form. [ruby-dev:29044]
+
+Tue Jul 18 15:49:42 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * pack.c (pack_unpack): propagate association array to copied
+ string. [ruby-core:08223]
+
+ * pack.c (pack_unpack): return referenced string itself if it has
+ same length as specified. a patch from <nobu at ruby-lang.org>
+ in [ruby-core:08225].
+
+ * pack.c (pack_pack): taint 'p' packed strings.
+
+Tue Jul 18 15:19:07 2006 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * intern.h (st_foreach_safe): fix prototype.
+
+ * node.h (NODE_LMASK): bigger than long on LLP64.
+
+ * missing/vsnprintf.c (BSD__uqtoa): new function to support LLP64.
+ all changes are derived from [ruby-dev:29045]
+
+Tue Jul 18 14:03:02 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/webrick/httpserver.rb (WEBrick::HTTPServer::unmount): remove
+ inpect argument from sprintf. [ruby-dev:29039]
+
+Tue Jul 18 10:53:37 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * object.c (rb_cstr_to_dbl): limit out-of-range message.
+
+ * util.c (ruby_strtod): return end pointer even if ERANGE occurred.
+ fixed: [ruby-dev:29041]
+
+Mon Jul 18 00:43:05 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * util.c (ruby_strtod): stop at dot not followed by digits.
+ fixed: [ruby-dev:29036]
+
+Tue Jul 18 00:01:27 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/extmk.rb: remove LIBRUBY_SO if static linked extensions exist.
+
+Mon Jul 17 23:30:46 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (rb_cv_msvcrt): defaulted to msvcrt. Workaround for a
+ bug of cygwin 1.5.20.
+
+Mon Jul 17 22:55:31 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ext/io/wait/wait.c (io_ready_p): protoize.
+
+Mon Jul 17 13:43:05 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * pack.c (define_swapx): should not use plain malloc.
+
+ * ext/curses/curses.c (curses_getmouse): ditto.
+
+Mon Jul 17 12:58:41 2006 WATANABE Hirofumi <eban@ruby-lang.org>
+
+ * configure.in: should use ac_cv_lib_dl_dlopen=no on MinGW.
+
+Mon Jul 17 11:47:35 2006 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * st.c: still need to include config.h on some platforms.
+
+Sat Jul 15 01:09:22 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * st.c (malloc): use xmalloc/xcalloc instead of plain
+ malloc/calloc, to detect memory allocation failure. see
+ <http://www.nongnu.org/failmalloc/>.
+
+Fri Jul 14 13:08:13 2006 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/tk.rb: add methods for new features of latest Tcl/Tk8.5.
+
+ * ext/tk/lib/tk/namespace.rb: ditto.
+
+Fri Jul 14 02:30:12 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/monitor.rb: document patch from Hugh Sasse <hgs at dmu.ac.uk>.
+ [ruby-core:08205]
+
+Fri Jul 14 00:10:15 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * array.c (rb_ary_pop): may cause realloc oscillation. a patch
+ from MORITA Naoyuki <mlgetter at kidou.sakura.ne.jp>.
+ [ruby-dev:29028]
+
+Thu Jul 13 22:23:56 2006 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/tk/composite.rb: improve handling of the classname on the
+ option database for the widget class which includes TkComposite.
+
+Thu Jul 13 00:40:57 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ruby.h (FIX2LONG): returns integer of size of VALUE.
+ [ruby-dev:29024]
+
+ * ruby.h (FIX2ULONG): ditto.
+
+Wed Jul 12 20:05:23 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * parse.y (f_args): allow post mandatory arguments after optional
+ arguments. [ruby-dev:29014]
+
+ * parse.y (new_args_gen): allow post_args without rest_args.
+
+ * eval.c (formal_assign): ditto.
+
+ * parse.y (new_args_gen): check post argument duplication.
+
+Tue Jul 11 20:58:18 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ruby.h: export rb_cMethod. [ruby-talk:201259]
+
+Tue Jul 11 19:13:33 2006 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/multi-tk.rb: remove restriction on the class of
+ pseudo-toplevel.
+
+Tue Jul 11 18:00:57 2006 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/multi-tk.rb: security fix.
+
+Tue Jul 11 17:28:08 2006 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * string.c (rb_str_dump): need to extend len for \b.
+
+Tue Jul 11 15:29:15 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * bignum.c (rb_int2big): use SIGNED_VALUE. [ruby-dev:29019]
+
+ * bignum.c (rb_int2inum, rb_uint2inum): use VALUE sized integer.
+
+ * bignum.c (rb_big2long, rb_big2ulong): ditto.
+
+ * numeric.c (rb_num2long, rb_num2ulong): ditto.
+
+ * numeric.c (check_int, check_uint): ditto.
+
+ * bignum.c (rb_quad_pack): typo fixed.
+
+Tue Jul 11 13:40:52 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * bignum.c (bignorm): sizeof(long) may be smaller than
+ sizeof(VALUE). [ruby-dev:29013]
+
+ * ruby.h (FIXNUM_MAX): fixnum may be bigger than long.
+
+ * ruby.h (SIGNED_VALUE): signed integer of size of VALUE.
+
+Mon Jul 10 23:37:14 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/soap/rpc/proxy.rb (Proxy::Operation::response_doc): remove
+ splat star from return statements.
+
+ * lib/soap/rpc/proxy.rb (Proxy::Operation::response_obj): retrieve
+ the first value from the result array if response has only one
+ value.
+
+Mon Jul 10 22:00:00 2006 Shigeo Kobayashi <shigek@ruby-lang.org>
+
+ * ext/bigdecimal/bigdecimal.c: Allows '_' to appear within
+ digits. [ruby-dev:28872]
+
+ * ext/bigdecimal/lib/bigdecimal/util.rb: Bug in to_r reported by
+ [ruby-list:42533] fixed.
+
+Mon Jul 10 19:22:19 2006 Tanaka Akira <akr@fsij.org>
+
+ * gc.c (gc_sweep): expand heap earlier.
+ reported by MORITA Naoyuki. [ruby-dev:28960]
+
+Mon Jul 10 18:59:34 2006 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/tk/font.rb: sorry. mistaken to patch.
+
+Mon Jul 10 18:46:52 2006 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/tcltklib.c: make SEGV risk lower at exit.
+
+ * ext/tk/lib/tk.rb: ditto.
+
+ * ext/tk/lib/multi-tk.rb: fail to call function-style methods on slave
+ interpreters. The strategy (MultiTkIp_PseudoToplevel_Evaluable) to
+ fix the problem is a little tricky. You may have to take care of
+ conflicting with it.
+
+ * ext/tk/lib/tk.rb: a little change for the pseudo-toplevel strategy.
+
+ * ext/tk/lib/tk/font.rb: ditto.
+
+ * ext/tk/lib/tk/msgcat.rb: ditto.
+
+ * ext/tk/lib/tkextlib/itk/incr_tk.rb: ditto.
+
+ * ext/tk/sample/demos-en/widget: fail to call function-style methods
+ on sample scripts. To fix it, a strategy which similar to the way
+ on MultiTiIp is used. Please take care when re-write and re-run a
+ demo script on the Widget-Demo code viewer.
+
+ * ext/tk/sample/demos-jp/widget: ditto.
+
+Mon Jul 10 17:32:38 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * sample/test.rb: update test suites.
+
+ * test/ruby/test_assignment.rb (TestAssignment::test_yield): ditto.
+
+ * test/ruby/test_iterator.rb (TestIterator::test_itertest): ditto.
+
+Mon Jul 10 14:43:47 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (rb_call): remove erroneously restored prot_tag->blkid
+ initialization. [ruby-dev:28997] [ruby-dev:29000]
+
+Mon Jul 10 13:58:08 2006 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * signal.c (install_nativethread_sighandler): commented out.
+
+Mon Jul 10 09:29:12 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (rb_clear_cache_for_remove): clear entries for included
+ module. fixed: [ruby-core:08180]
+
+Mon Jul 10 02:22:58 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (proc_invoke): should not overwrite block information in
+ current frame. [ruby-dev:28957]
+
+ * eval.c (rb_yield_0): retrieve proper block object from the frame
+ record.
+
+ * eval.c (proc_alloc): return preserved block object if it's
+ available.
+
+Mon Jul 10 01:48:38 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * st.h (st_data_t): use pointer sized integer for st_data_t.
+ [ruby-dev:28988]
+
+Sun Jul 9 18:06:47 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/mkmf.rb (try_constant): fix for value 1 at cross compiling.
+
+ * lib/mkmf.rb (create_makefile): prevent substitution of macro
+ definition. fixed: http://www.yotabanana.com/lab/20060624.html#p02
+
+Sun Jul 9 07:58:48 2006 Ryan Davis <ryand-ruby@zenspider.com>
+
+ * lib/rdoc/parsers/parse_f95.rb: massive overhaul from Yasuhiro
+ Morikawa including new file suffixes, function support, public
+ variables and constants, derived-types, defined operators and
+ assignments, namelists, and subroutine and function
+ arguments. Truly massive.
+
+ * lib/rdoc/diagram.rb: diagrams are now cached.
+
+ * lib/irb/completion.rb: fixed a crasher when completing against
+ an unnamed class/module.
+
+ * lib/rdoc/parsers/parse_c.rb: private comment (--/++) support in
+ C-file rdoc.
+
+ * lib/debug.rb: minor clarification in help.
+
+ * lib/pp.rb: minor clarification on exception.
+
+Sun Jul 9 00:54:11 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (next_jump): deal with destination of next.
+ fixed: [ruby-core:08169]
+
+Fri Jul 7 17:49:16 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * string.c (rb_str_ord): extract lower byte. fixed: [ruby-dev:28980]
+
+ * lib/jcode.rb (String#succ!): fix for 1.9. fixed: [ruby-dev:28979]
+
+Fri Jul 7 14:05:03 2006 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/Makefile.sub (config.h): define FUNC_STDCALL/FUNC_CDECL.
+ from [ruby-dev:28970].
+
+Fri Jul 7 00:38:49 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * hash.c (rb_hash_default): should not call default procedure if
+ no key is given. [ruby-list:42541]
+
+Thu Jul 6 23:30:04 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * process.c (rb_proc_times): use sysconf(_SC_CLK_TCK) value prior to
+ HZ and CLK_TCK. fixed: [ruby-talk:200293]
+
+Thu Jul 6 21:50:06 2006 Minero Aoki <aamine@loveruby.net>
+
+ * ext/racc/cparse/cparse.c: sync with original code, rev 1.8.
+
+ * ext/racc/cparse/cparse.c: should mark CparseParams objects.
+
+ * lib/racc/parser.rb: sync with original code, rev 1.8.
+
+ * lib/racc/parser.rb: update coding style.
+
+Wed Jul 5 05:28:45 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * parse.y (block_param): should allow block argument after splat
+ and post splat args.
+
+Wed Jul 5 01:12:19 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * test/ruby/test_lambda.rb (TestLambdaParameters::test_lambda_as_iterator):
+ -> style block no longer available. [ruby-dev:28958]
+
+Tue Jul 4 21:48:56 2006 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * ruby.c (proc_options): suppress warning on DOSISH.
+
+Tue Jul 4 15:12:49 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (rb_call): should not set prot_tag->blkid since it would
+ never catch breaks at this level. [ruby-dev:28922]
+
+Tue Jul 4 04:48:36 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * bignum.c: ruby 1.9 HEAD 64 bit warnings clean up from
+ <ville.mattila at stonesoft.com>. [ruby-core:08120]
+
+Mon Jul 3 19:04:38 2006 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/tcltklib.c (ip_make_menu_embeddable): help to make a menu
+ widget embeddable (pack, grid, and so on) like as a general widget.
+ However, an embeddable menu may require to be defined some event
+ bindings for general use.
+
+ * ext/tk/lib/tk/event.rb: [bug fix] Tk.callback_break and
+ Tk.callback_continue don't work on MultiTkIp.
+
+ * ext/tk/lib/multi-tk.rb: ditto.
+
+ * ext/tk/lib/tk.rb: lack of Tk.callback_return.
+
+ * ext/tk/lib/tk/menu.rb: improve creating clone menus.
+
+Mon Jul 3 14:42:06 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/etc/extconf.rb (PW_UID2VAL, PW_GID2VAL): defaulted to conversion
+ from int, and sys/types.h needs to be included before grp.h.
+ fixed: [ruby-dev:28938]
+
+Mon Jul 3 10:44:01 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * io.c (popen_exec): close file descriptors other than standard I/Os.
+ fixed: [ruby-dev:28924]
+
+Mon Jul 3 05:15:29 2006 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * test/openssl/test_asn1.c: String#[]= doesn't accept Integer.
+
+Mon Jul 3 01:14:15 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (rb_str_inspect): encode \b (\010) for escape.
+ [ruby-dev:28927]
+
+ * string.c (rb_str_dump): ditto.
+
+Sun Jul 2 19:03:30 2006 Minero Aoki <aamine@loveruby.net>
+
+ * ext/racc/cparse/cparse.c: sync with original code, rev 1.7.
+
+ * ext/racc/cparse/cparse.c: must require version.h to get
+ RUBY_VERSION_CODE.
+
+Sun Jul 2 18:42:27 2006 Minero Aoki <aamine@loveruby.net>
+
+ * ext/racc/cparse/cparse.c: sync with original source code, rev
+ 1.6.
+
+ * ext/racc/cparse/cparse.c: do not use rb_iterate to give a block
+ to the method, use rb_block_call instead. [ruby-dev:28445]
+
+Sun Jul 2 11:22:03 2006 Tanaka Akira <akr@m17n.org>
+
+ * io.c (io_reopen): STDOUT.reopen(filename, "w+") didn't work.
+ (rb_io_reopen): STDOUT.reopen(File.open(filename, "w+")) didn't work.
+
+Sat Jul 1 23:55:42 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (PUSH_FRAME): initialize frame->self. [ruby-dev:28911]
+
+Sat Jul 1 17:00:42 2006 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * test/webrick/utils.rb: use Proc#yield instead of Proc#call.
+ [ruby-dev:28914]
+
+Sat Jul 1 15:15:49 2006 Tanaka Akira <akr@m17n.org>
+
+ * test/socket/test_nonblock.rb: add timeout to send/receive
+ an empty UDP packet.
+ [ruby-dev:28820]
+
+Fri Jun 30 23:46:23 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * configure.in: should test isinf for Solaris with GCC compiler.
+ a patch from <ville.mattila at stonesoft.com>. [ruby-core:07791]
+
+ * configure.in: -shared patch from Andrew Morrow
+ <andrew.c.morrow at gmail.com>. [ruby-core:08100]
+
+Fri Jun 30 19:35:41 2006 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * lib/webrick/httputils.rb (WEBrick::HTTPUtils._escape): should
+ use String#ord to get ascii code from the one-character string.
+ [ruby-dev:28901]
+
+Thu Jun 29 23:56:01 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * gc.c (gc_mark_children): a bug in NODE_BLOCK_PASS marking.
+ [ruby-dev:28908]
+
+Thu Jun 29 23:04:36 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * parse.y: use ARGSPUSH instead of ARGSCAT to prevent too much
+ splat expansion.
+
+ * eval.c (when_check): need to handle ARGSPUSH as well.
+
+ * eval.c (block_orphan): lambda and proc from method are always
+ orphan.
+
+ * gc.c (gc_mark_children): proper marking for NODE_LAMBDA.
+
+Thu Jun 29 22:47:30 2006 Tanaka Akira <akr@m17n.org>
+
+ * eval.c (SETUP_ARGS0): avoid GC problem.
+ [ruby-dev:28902]
+
+Thu Jun 29 18:58:51 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ext/bigdecimal/bigdecimal.c (BigDecimal_version): fix patch
+ failure.
+
+Thu Jun 29 18:00:51 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ext/bigdecimal/bigdecimal.c: add RDoc document. a patch from
+ mathew <meta at pobox.com>. [ruby-core:07050]
+
+Wed Jun 28 14:53:09 2006 Eric Hodel <drbrain@segment7.net>
+
+ * lib/optparse.rb: RDoc patch from Robin Stocker <robin@nibor.org>
+ [ruby-core:08087]
+
+Wed Jun 28 23:23:48 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * object.c (rb_cstr_to_dbl): underscores should appear only
+ between digits. [ruby-dev:28891]
+
+Wed Jun 28 19:04:34 2006 Tanaka Akira <akr@m17n.org>
+
+ * test/socket/test_unix.rb: test_seqpacket_pair removed.
+ [ruby-dev:28846]
+
+Wed Jun 28 13:51:21 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (when_check): arbitrary values are allowed after splats.
+ fixed: [ruby-dev:28879]
+
+Wed Jun 28 09:16:18 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * parse.y (primary): remove meaningless else-only case statement
+ syntax.
+
+Wed Jun 28 08:08:13 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (rb_eval): problem to handle else part. [ruby-dev:28873]
+
+Wed Jun 28 01:48:23 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (rb_eval): support splat in when expression list.
+ [ruby-dev:28822]
+
+ * eval.c (when_check): a new auxiliary function for case match.
+
+ * eval.c (when_cond): ditto.
+
+Wed Jun 28 01:05:37 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * object.c (rb_cstr_to_dbl): should not skip '_' at the beginning
+ of a string. [ruby-dev:28830]
+
+ * bignum.c (rb_cstr_to_inum): ditto.
+
+Tue Jun 27 23:03:49 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c: RDoc update for =~ method. a patch from Alex Young
+ <alex at blackkettle.org>. [ruby-core:08068]
+
+Tue Jun 27 22:47:18 2006 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/tcltklib.c: forgot to update TCLTKLIB_RELEASE_DATE.
+
+ * ext/tk/lib/tk.rb (tk_tcl2ruby): [bug fix] sometimes fail to convert
+ a tcl string to a ruby object if the tcl string includes "\n".
+
+Tue Jun 27 20:05:14 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * io.c (pipe_open): backout unnecessary fix on 2006-06-26.
+ [ruby-dev:28865]
+
+ * eval.c (rb_yield_0): exact argument number check now done only
+ for lambda Proc.
+
+ * eval.c (rb_yield_0): add check for number of arguments, if
+ there's one lambda block parameter.
+
+Tue Jun 27 16:04:05 2006 WATANABE Hirofumi <eban@ruby-lang.org>
+
+ * win32/win32.h: define isascii on MinGW for msvcrt compatibility.
+
+ * configure.in: set ac_cv_header_sys_time_h=no on MinGW
+ for msvcrt compatibility.
+
+Tue Jun 27 11:36:02 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/etc/etc.c (setup_passwd, setup_group): allow bignum uid, gid and
+ so on. [ruby-talk:199102]
+
+Tue Jun 27 10:46:53 2006 Tanaka Akira <akr@m17n.org>
+
+ * eval.c (rb_yield_0): avoid core dump. [ruby-dev:28840]
+
+Mon Jun 26 11:03:00 2006 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rdoc/ri: Add options to limit the ri search path.
+
+Tue Jun 27 01:31:59 2006 Tanaka Akira <akr@m17n.org>
+
+ * ext/socket/socket.c (bsock_recv_nonblock): new method
+ BasicSocket#recv_nonblock.
+ (udp_recvfrom_nonblock): renamed from ip_recvfrom_nonblock.
+ IPSocket#recvfrom_nonblock is moved to UDPSocket#recvfrom_nonblock.
+ (unix_recvfrom_nonblock): removed.
+ UNIXSocket#recvfrom_nonblock is removed.
+
+Tue Jun 27 00:52:40 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/ripper/eventids2.c (token_assoc): added tCHAR, which is not
+ under 256 now. fixed: [ruby-dev:28832]
+
+Mon Jun 26 23:42:57 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (call_trace_func): no check for argument number of the
+ callback. fixed: [ruby-dev:28812]
+
+Mon Jun 26 18:37:44 2006 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/tcltklib.c (ip_delete): fix SEGV when a slave-ip is
+ deleted on callback.
+
+Mon Jun 26 15:40:26 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ext/socket/socket.c (sock_accept): revert to avoid ambiguity of
+ argument evaluation order. [ruby-dev:28861]
+
+ * ext/socket/socket.c (sock_accept_nonblock): ditto.
+
+Mon Jun 26 10:47:42 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * io.c (pipe_open): avoid closing uninitialized file descriptors.
+ a patch from <tommy at tmtm.org> [ruby-dev:28600]
+
+Sun Jun 25 23:02:12 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * Makefile.in, mkconfig.rb: catch-up for latest autoconf.
+
+Sun Jun 25 17:44:16 2006 Tanaka Akira <akr@m17n.org>
+
+ * parse.y (paren_args): wrap $2 by escape_Qundef because it may be
+ Qundef. [ruby-dev:28843]
+
+Sun Jun 25 17:18:33 2006 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+
+ * ext/win32ole/win32ole.c(ole_invoke): support some kind of
+ method of word. [ruby-Bugs#3237]
+
+ * test/win32ole/test_word.rb: ditto.
+
+Sat Jun 24 23:48:08 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * parse.y: replace terminal token names with more descriptive
+ name, i.e. kEND to keyword_end. [ruby-list:42477]
+
+Sat Jun 24 23:37:41 2006 Tanaka Akira <akr@m17n.org>
+
+ * eval.c (rb_eval): use rb_ary_new2 instead of rb_ary_new4 to avoid
+ GC problem.
+ (rb_yield_values): use rb_ary_new2 instead of rb_ary_new4.
+
+ * array.c (rb_ary_new4): don't set len as n if contents is not
+ initialized. make it safe with GC.
+
+ [ruby-dev:28826]
+
+Fri Jun 23 23:35:32 2006 Tanaka Akira <akr@m17n.org>
+
+ * ruby.h, lib/drb/drb.rb, lib/drb/invokemethod.rb: remove Values class.
+ [ruby-dev:28805]
+
+Fri Jun 23 17:27:52 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (rb_block_pass): removed.
+
+ * eval.c (rb_thread_start_1): use rb_proc_yield() instead of
+ rb_block_pass(). fixed: [ruby-dev:28794]
+
+Thu Jun 22 11:52:02 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/net/http.rb (Net::HTTPResponse): duplicated error 501;
+ HTTPInternalServerError should be error 500. [ruby-core:08037]
+
+Thu Jun 22 11:47:52 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * variable.c (rb_mod_name): returns nil for anonymous modules.
+ [ruby-talk:198440]
+
+Thu Jun 22 10:31:39 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (rb_str_aref): "abc"[3] should not return an empty
+ string but nil. [ruby-dev:28786]
+
+Thu Jun 22 05:15:58 2006 Tanaka Akira <akr@m17n.org>
+
+ * ext/socket/socket.c (sock_s_socketpair): try GC only once.
+ [ruby-dev:28778]
+
+Wed Jun 21 21:20:31 2006 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * lib/date.rb (jd_to_commercial): now works fine even if in
+ mathn-ized context.
+
+Wed Jun 21 17:29:57 2006 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * ext/socket/getaddrinfo.c (freeaddrinfo, get_name): fixed typo.
+
+ * ext/tk/tcltklib.c (tcl_eval, tcl_global_eval): ditto.
+
+ * ext/zlib/zlib.c (rscheck): constified.
+
+Wed Jun 21 17:18:55 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/pp.rb (PP::PPMethods::seplist): should have preserved
+ original reference to the array. [ruby-dev:28747]
+
+Wed Jun 21 14:35:06 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * parse.y (block_param): do not use multiple assignment for a sole
+ block parameter. [ruby-dev:28710]
+
+ * eval.c (rb_yield_0): pass a raw yielded value to a sole block
+ parameter if a value is passed by yield.
+
+ * eval.c (proc_invoke): args may not be an array.
+
+ * eval.c (rb_proc_yield): pass original value without wrapping
+ it in an array.
+
+Wed Jun 21 14:06:47 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * parse.y (method_call): remove (fn)(args) style lambda
+ invocation, add fn.(args) instead.
+
+Wed Jun 21 08:39:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/xmlrpc/create.rb (XMLRPC::Create::conv2value): merge Date
+ and Time processing. [ruby-core:08033]
+
+Wed Jun 21 03:01:10 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c, file.c, etc.: code-cleanup patch from Stefan Huehner
+ <stefan at huehner.org>. [ruby-core:08029]
+
+Wed Jun 21 01:40:25 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (reswords): modifier token is no longer returned in fname
+ state. fixed: [ruby-dev:28775]
+
+Tue Jun 20 23:28:34 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/extmk.rb (parse_args): provisional catch-up for the recent changes.
+
+ * lib/optparse.rb (OptionParser::List#summarize, OptionParser#order!): ditto.
+
+Tue Jun 20 11:07:55 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (proc_invoke): intercept break and return from lambda
+ Proc objects. [ruby-dev:28742]
+
+ * eval.c (proc_invoke): remove unnecessary YIELD_PROC_CALL flag.
+
+ * eval.c (YIELD_EXACT_ARGS): renamed from YIELD_LAMBDA_CALL, which
+ is no longer related to the behavior turned on by this flag.
+
+ * eval.c (return_jump): no need to care about PROT_YIELD.
+
+ * eval.c (break_jump): no jump to toplevel PROT_THREAD tag.
+
+ * eval.c (rb_yield_0): fix confusion between lambda (which is a
+ property of a proc) and pcall (which depends on whether it's
+ called via yield or call).
+
+ * eval.c (rb_thread_yield): no need to specify YIELD_LAMBDA_CALL.
+
+ * eval.c (rb_block_pass): update blkid in prot_tag.
+
+Mon Jun 19 23:40:59 2006 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * ext/nkf/lib/kconv.rb: remove default -m0 and fix document.
+
+ * ext/nkf/nkf-8/{nkf.c, config.h, utf8tbl.c, utf8tbl.h}:
+ imported nkf 2.0.7.
+
+Mon Jun 19 17:02:14 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * sample/test.rb (proc_return3): return within non lambda block
+ should terminate surrounding method. [ruby-dev:28741]
+
+Mon Jun 19 13:22:48 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ext/socket/socket.c (unix_sysaccept): typo fixed.
+
+ * ext/socket/socket.c (sock_connect): remove an unused local
+ variable tmpaddr.
+
+Mon Jun 19 02:10:32 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ext/socket/socket.c (tcp_accept_nonblock): forgot to remove
+ abandoned hacks. [ruby-dev:28740]
+
+Mon Jun 19 00:00:17 2006 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/multi-tk.rb: fix bug: initialize improper tables.
+
+Sun Jun 18 20:28:43 2006 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+
+ * ext/win32ole/win32ole.c (fole_methods): The return value
+ of WIN32OLE#ole_methods should include PROPERTYPUTREF methods.
+
+ * ext/win32ole/win32ole.c (fole_put_methods): The return value
+ of WIN32OLE#ole_put_methods should include PROPERTYPUTREF methods.
+
+ * test/win32ole/test_ole_methods.rb: ditto.
+
+ * ext/win32ole/win32ole.c (ole_propertyput): support
+ PROPERTYPUTREF. [ruby-talk:183042]
+
+ * test/win32ole/test_propertyputref.rb: ditto.
+
+Sat Jun 17 23:42:26 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (Init_eval): add aliases invoke_method and
+ invoke_functional_method corresponding send and funcall
+ respectively. [ruby-talk:197512]
+
+ * parse.y (parser_yylex): returns the most typical keyword token
+ on EXPR_FNAME. [ruby-core:7995]
+
+ * ext/socket/socket.c: protoize.
+
+Sat Jun 17 22:17:17 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/mathn.rb (Integer::prime_division): raise ZeroDivisionError
+ on zeros. [ruby-dev:28739]
+
+Sat Jun 17 14:53:32 2006 Tanaka Akira <akr@m17n.org>
+
+ * lib/pathname.rb (Kernel#Pathname): new method.
+
+Sat Jun 17 02:01:00 2006 Tanaka Akira <akr@m17n.org>
+
+ * lib/pp.rb (Kernel#pretty_inspect): defined for pretty printed
+ string.
+
+Fri Jun 16 01:41:00 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (rb_proc_arity): get rid of segfault for mere splat.
+
+ * gc.c (gc_mark_children): NODE_BLOCK_PASS needs u3 to be marked.
+
+Thu Jun 15 22:06:56 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * parse.y (then): remove ':' from 'then' and 'do' rules.
+
+Wed Jun 14 18:00:20 2006 Eric Hodel <drbrain@segment7.net>
+
+ * enum.c (enum_any): Documentation typo.
+
+Wed Jun 14 15:01:09 2006 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rdoc/parsers/parse_rb.rb (RDoc::RubyParser#warn): Don't print
+ warnings when -q is set.
+
+Wed Jun 14 16:11:37 2006 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * eval.c (rb_f_method_name, rb_f_callee_name): document typo.
+
+Wed Jun 14 15:19:14 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * hash.c (env_aset): raise TypeError on nil with more descriptive
+ message. [ruby-core:07990]
+
+Tue Jun 13 17:22:19 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ext/socket/socket.c (Init_socket): remove obsolete constants:
+ IPsocket, TCPsocket, SOCKSsocket, TCPserver, UDPsocket,
+ UNIXsocket, UNIXserver.
+
+Tue Jun 13 09:07:27 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (formal_assign): post splat arguments should have had
+ higher priority than optional arguments, since they are
+ mandatory. [ruby-dev:28715]
+
+ * eval.c (VIS_MASK): broken. should be 15. [ruby-dev:28715]
+
+ * io.c (argf_getc): should return one-character string.
+ [ruby-dev:28715]
+
+ * io.c (rb_io_readchar): ditto.
+
+Sun Jun 11 23:20:07 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * object.c (sym_call): disallow to call private methods.
+
+ * lib/optparse.rb (OptionParser::Arguable#getopts): pass self to the
+ parser.
+
+Sun Jun 11 09:56:41 2006 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/win32.h (write): not need to define on bcc.
+
+Sun Jun 11 08:30:33 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/optparse.rb (OptionParser#getopts): new methods.
+
+Sun Jun 11 07:27:11 2006 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * lib/rdoc/ri/ri_writer.rb: use String#ord.
+
+Sun Jun 11 04:38:20 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * object.c (sym_to_proc): imported Symbol#to_proc from ActiveSupport.
+
+Sat Jun 10 18:02:40 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ext/bigdecimal/lib/bigdecimal/newton.rb (Newton::nlsolve): typo
+ fixed: raize -> raise. [ruby-talk:196608]
+
+Sat Jun 10 17:49:53 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (rb_str_ord): new method.
+
+ * parse.y (rbracket): allow optional newline before closing
+ brackets.
+
+Sat Jun 10 15:12:29 2006 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * eval.c (rb_f_method_name, rb_f_callee_name): new functions.
+ new global method `__method__' and `__callee__'.
+
+Sat Jun 10 10:13:13 2006 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * lib/getoptlong.rb (GetoptLong#set_options): receive arguments
+ as Array.
+
+ * lib/irb/slex.rb: use Proc#yield.
+
+ * lib/rdoc/markup/simple_markup/inline.rb: follow the new behavior
+ of String#[].
+
+ * lib/rdoc/ri/ri_writer.rb: ditto.
+
+Sat Jun 10 08:17:23 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * math.c (log2): may be a macro.
+
+ * parse.y (args, block_param, f_args): pass f_post_arg to #params.
+
+ * util.c (powersOf10): constified.
+
+ * ext/readline/readline.c: include extconf.h first.
+
+ * ext/ripper/eventids2.c: removed tLAMBDA_ARG.
+
+ * ext/tk/tcltklib.c (lib_fromUTF8_core): removed conflict.
+
+ * ext/tk/tkutil/tkutil.c (cbsubst_get_subst_arg): rb_id2name() is
+ defined as const now.
+
+ * ext/win32ole/win32ole.c (fole_missing): ditto.
+
+ * lib/mkmf.rb (create_makefile): force to create extconf header.
+
+ * lib/optparse.rb (order!): use Proc#yield.
+
+Sat Jun 10 06:53:22 2006 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * eval.c (CALLARGS): remove last semicolon. C90 compiler doesn't
+ allow any lines (even if they're empty) within variable
+ declarations.
+
+Fri Jun 9 09:56:32 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * sprintf.c (rb_str_format): allow %c to print one character
+ string (e.g. ?x).
+
+Thu Jun 8 14:00:02 2006 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/win32.[ch] (rb_w32_read, rb_w32_write): new functions.
+ use recv() and send() when fd is socket. fixed: [ruby-dev:28694]
+
+Wed Jun 7 16:22:51 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/tempfile.rb (Tempfile::make_tmpname): put dot between
+ basename and pid. [ruby-talk:196272]
+
+Wed Jun 7 16:16:29 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * parse.y (do_block): remove -> style block.
+
+ * parse.y (parser_yylex): remove tLAMBDA_ARG.
+
+Wed Jun 7 14:51:22 2006 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/win32.c (errmap): add some winsock errors.
+
+Wed Jun 7 09:14:44 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (rb_call0): binding for the return event hook should have
+ consistent scope. [ruby-core:07928]
+
+Tue Jun 6 23:25:49 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (proc_invoke): return behavior should depend whether it
+ is surrounded by a lambda or a mere block.
+
+Mon Jun 5 18:12:12 2006 Tanaka Akira <akr@m17n.org>
+
+ * ext/socket/socket.c (sock_s_unpack_sockaddr_in): reject
+ non-AF_INET/AF_INET6 sockaddr.
+ (sock_s_unpack_sockaddr_un): reject non-AF_UNIX sockaddr.
+ [ruby-dev:28691]
+
+Sun Jun 4 20:40:19 2006 Tanaka Akira <akr@m17n.org>
+
+ * ext/socket/socket.c: fix sockaddr_un handling.
+ [ruby-dev:28677]
+
+Sat Jun 3 23:53:18 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (formal_assign): handles post splat arguments.
+
+ * eval.c (rb_call0): ditto.
+
+Sat Jun 3 13:10:41 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * st.c (strhash): use FNV-1a hash.
+
+Fri Jun 2 20:01:24 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * parse.y (parser_yylex): removed experimental ';;' terminator.
+
+Fri Jun 2 19:00:40 2006 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * ext/openssl/extconf.rb: use create_header.
+
+ * ext/openssl/ossl.h, ext/openssl/openssl_missing.h:
+ include RUBY_EXTCONF_H.
+
+Fri Jun 2 17:16:52 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/mkmf.rb (CLEANINGS): remove extconf.h by distclean if created.
+
+Fri Jun 2 00:11:19 2006 Tanaka Akira <akr@m17n.org>
+
+ * ext/socket/socket.c (s_recvfrom): alen may be zero with UNIXSocket
+ too. (tested on NetBSD 3.0)
+ (s_recvfrom_nonblock): extracted from sock_recvfrom_nonblock.
+ (sock_recvfrom_nonblock): use s_recvfrom_nonblock.
+ (ip_recvfrom_nonblock): new method: IPSocket#recvfrom_nonblock
+ (unix_recvfrom_nonblock): new method: UNIXSocket#recvfrom_nonblock
+ (s_accept_nonblock): extracted from sock_accept_nonblock.
+ (sock_accept_nonblock): use s_accept_nonblock.
+ (tcp_accept_nonblock): new method: TCPServer#accept_nonblock
+ (unix_accept_nonblock): new method: UNIXServer#accept_nonblock
+
+Thu Jun 1 19:12:37 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * win32/win32.c (rb_w32_cmdvector): backslashes inside single-quotes
+ no longer has special meanings. fixed: [ruby-list:42311]
+
+Thu Jun 1 17:55:42 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (rb_node_arity): should be aware of post splat arguments.
+
+ * eval.c (rb_proc_arity): ditto.
+
+Thu Jun 1 16:17:26 2006 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/win32.c (rb_w32_getcwd): runtime's getcwd() will not success
+ if the length of the cwd is longer than MAX_PATH.
+ fixed [ruby-list:42335]
+
+Thu Jun 1 16:07:48 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * parse.y (f_args): syntax rule enhanced to support arguments
+ after the splat.
+
+ * parse.y (mlhs_basic): ditto for multiple assignments
+
+ * parse.y (block_param): ditto for block parameters.
+
+ * parse.y (f_post_arg): mandatory formal arguments after the splat
+ argument.
+
+ * parse.y (new_args_gen): generate nodes for mandatory formal
+ arguments after the splat argument.
+
+ * eval.c (rb_eval): dispatch mandatory formal arguments after the
+ splat argument.
+
+Thu Jun 1 11:33:32 2006 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/win32.c (rb_w32_getcwd): set errno if not set.
+ fixed [ruby-list:42346]
+
+Thu Jun 1 00:45:52 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * parse.y (args): allow more than one splat in the argument list.
+
+Wed May 31 18:38:11 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * parse.y (method_call): allow aref [] to accept all kind of
+ method argument, including assocs, splat, and block argument.
+
+ * eval.c (SETUP_ARGS0): prepare block argument as well.
+
+Tue May 30 18:13:53 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/mathn.rb (Integer): remove Integer#gcd2. [ruby-core:07931]
+
+Mon May 29 22:40:13 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (error_line): print receivers true/false/nil specially.
+
+ * eval.c (rb_proc_yield): handles parameters in yield semantics.
+
+ * eval.c (nil_yield): gives LocalJumpError to denote no block
+ error.
+
+ * io.c (rb_io_getc): now takes one-character string.
+
+Sat May 27 22:46:38 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (proc_invoke): save and restore block in the current frame.
+ fixed: [ruby-core:07833], [ruby-talk:191639]
+
+Sat May 27 11:29:46 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/extmk.rb (extmake): remove extinit files if no statically linked
+ extensions.
+
+Fri May 26 19:56:46 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (rb_str_hash): use FNV-1a hash from Fowler/Noll/Vo
+ hashing algorithm.
+
+Fri May 26 09:05:11 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ruby.h, lib/mkmf.rb (create_header): clear command line options for
+ macros moved to extconf.h.
+
+ * ext/extmk.rb (extract_makefile, extmk): made RUBY_EXTCONF_H and
+ EXTSTATIC permanent.
+
+ * ext/{dbm,digest/*,socket,zlib}/extconf.rb: used $defs and $INCFLAGS.
+
+ * {bcc32,win32,wince}/Makefile.sub (COMPILE_C, COMPILE_CXX): added
+ $(INCFLAGS).
+
+ * lib/mkmf.rb (configuration): add $defs unless extconf.h was created.
+
+Thu May 25 01:52:07 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/mkmf.rb (pkg_config): particular config commands support.
+
+ * ext/extmk.rb: deal with $static set in extconf.rb.
+
+ * mkconfig.rb: merge multiple entries to an entry with multiple lines.
+
+ * lib/mkmf.rb: allow a series of commands to link.
+
+ * win32/Makefile.sub: embed manifests.
+
+ * win32/setup.mak: suffix OS name by runtime version.
+
+Wed May 24 23:52:11 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (ac_install_sh): ignore dummy install-sh.
+ [ruby-talk:193876]
+
+Wed May 24 17:55:13 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (rb_str_aref): str[0] now returns 1 character string,
+ instead of a fixnum. [Ruby2]
+
+ * parse.y (parser_yylex): ?c now returns 1 character string,
+ instead of a fixnum. [Ruby2]
+
+ * string.c (rb_str_aset): no longer support fixnum insertion.
+
+Wed May 24 03:10:44 2006 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * ext/openssl/lib/openssl/ssl.rb
+ (OpenSSL::SSL::SocketForwarder#setsockopt,getsockopt): typo fixed.
+
+Mon May 22 16:32:03 2006 Tanaka Akira <akr@m17n.org>
+
+ * rubyio.h (rb_io_set_nonblock): declared.
+
+ * io.c (rb_io_set_nonblock): new function.
+ (io_getpartial): nonblocking read support.
+ (io_read_nonblock): new method: IO#read_nonblock.
+ (io_write_nonblock): new method: IO#write_nonblock.
+
+ * ext/socket/socket.c (s_accept): retry for EWOULDBLOCK.
+ revert [ruby-talk:113807].
+ (sock_connect_nonblock): new method: Socket#connect_nonblock.
+ (sock_accept_nonblock): new method: Socket#accept_nonblock.
+ (sock_recvfrom_nonblock): new method: Socket#recvfrom_nonblock.
+
+ [ruby-core:7917]
+
+Mon May 22 15:57:39 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (umethod_bind): should not update original class.
+ [ruby-dev:28636]
+
+Mon May 22 13:38:57 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (ev_const_get): should support constant access from
+ within instance_eval(). [ruby-dev:28327]
+
+Sun May 21 09:50:31 2006 K.Kosako <sndgk393 AT ybb.ne.jp>
+
+ * regexec.c: add STK_NULL_CHECK_END to IS_TO_VOID_TARGET().
+ [ruby-list:42234]
+
+Thu May 18 22:37:20 2006 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * lib/webrick/config.rb (WEBrick::Config::HTTP): add new parameters,
+ :InputBufferSize and :OutputBufferSize.
+
+ * lib/webrick/utils.rb (WEBrick::Utils.timeout): add new timeout
+ method. this implementation is expected to be compatible with
+ timeout.rb and faster than timeout.rb.
+
+ * lib/webrick/httprequest.rb (WEBrick::HTTPRequest#_read_data):
+ Timeout.timeout is replaced by WEBrick::Utils.timeout.
+
+ * lib/webrick/httprequest.rb: WEBrick::HTTPRequest::BUFSIZE is
+ replaced by config[:InputBufferSize].
+
+ * lib/webrick/httpresposne.rb: WEBrick::HTTPResponse::BUFSIZE is
+ replaced by config[:OutputBufferSize].
+
+ * lib/webrick/server.rb: get rid of unnecessary require.
+
+ * test/webrick/test_utils.rb: test for WEBrick::Utils.timeout.
+
+Thu May 18 17:51:32 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * time.c (time_timeval): should round for usec floating
+ number. [ruby-core:07896]
+
+ * time.c (time_add): ditto.
+
+Thu May 18 00:42:12 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/extmk.rb, lib/mkmf.rb: use BUILD_FILE_SEPARATOR in Makefiles.
+
+Wed May 17 17:55:26 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * dir.c (sys_warning): should not call a vararg function
+ rb_sys_warning() indirectly. [ruby-core:07886]
+
+Tue May 16 17:23:19 2006 Shin-ichiro HARA <sinara@blade.nagaokaut.ac.jp>
+
+ * numeric.c (flo_divmod): the first element of Float#divmod should
+ be an integer. [ruby-dev:28589]
+
+ * test/ruby/test_float.rb: add tests for divmod, div, modulo and remainder.
+
+Tue May 16 15:34:18 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * re.c (rb_reg_initialize): should not allow modifying literal
+ regexps. frozen check moved from rb_reg_initialize_m as well.
+
+Tue May 16 09:20:16 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * re.c (rb_reg_initialize): should not modify untainted objects in
+ safe levels higher than 3.
+
+ * re.c (rb_memcmp): type change from char* to const void*.
+
+ * dir.c (dir_close): should not close untainted dir stream.
+
+ * dir.c (GetDIR): add tainted/frozen check for each dir operation.
+
+Mon May 15 21:37:12 2006 K.Kosako <sndgk393 AT ybb.ne.jp>
+
+ * re.c (rb_reg_prepare_re): don't use onig_recompile().
+
+Mon May 15 17:42:39 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/rdoc/parsers/parse_rb.rb (RDoc::RubyParser::parse_symbol_arg):
+ typo fixed. a patch from Florian Gross <florg at florg.net>.
+
+Sat May 13 16:14:05 2006 Tanaka Akira <akr@m17n.org>
+
+ * lib/pp.rb (PP.mcall): new method.
+ (Struct#pretty_print): call Kernel#class and Struct#members even if
+ overridden.
+ (Struct#pretty_print_cycle): ditto.
+ [ruby-core:7865]
+
+Fri May 12 15:54:48 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (EXEC_EVENT_HOOK): trace_func may remove itself from
+ event_hooks. no guarantee for arbitrary hook deletion.
+ [ruby-dev:28632]
+
+Thu May 11 19:57:00 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * util.c (ruby_strtod): differ addition to minimize error.
+ [ruby-dev:28619]
+
+Thu May 11 18:30:11 2006 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * ext/openssl/ossl_cipher.c (add_cipher_name_to_ary): should return
+ value. [ruby-dev:28627]
+
+Thu May 11 18:10:43 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * util.c (ruby_strtod): should not raise ERANGE when the input
+ string does not have any digits. [ruby-dev:28629]
+
+Wed May 10 23:40:21 2006 K.Kosako <sndgk393 AT ybb.ne.jp>
+
+ * oniguruma.h: Version 4.0.3
+
+ * regexec.c: ditto.
+
+Mon May 8 09:10:31 2006 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * ext/openssl/extconf.rb: add check for OBJ_NAME_do_all_sorted.
+
+ * ext/openssl/ossl_cipher.c (ossl_s_ciphers): new method
+ OpenSSL::Cipher.ciphers. it returns all the cipher names.
+
+ * ext/openssl/ossl_cipher.c (ossl_cipher_init): refine warning message.
+
+ * ext/openssl/lib/openssl/cipher.rb: reimplement without eval() and
+ add constants AES128, AES192, AES256. [ruby-dev:28610]
+
+ * ext/openssl/lib/openssl/digest.rb: reimplement without eval().
+
+ * test/openssl/test_cipher.rb, test_digest: fix about reimplemented
+ features.
+
+ * sample/openssl/cipher.rb: rewrite all.
+
+Sun May 7 03:09:51 2006 Stephan Maka <stephan@spaceboyz.net>
+
+ * lib/resolv.rb (Resolv::DNS::Requester::ConnectedUDP#initialize):
+ Use AF_INET6 for nameservers containing colons.
+
+Sat May 6 23:40:03 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (proc_invoke): should restore old ruby_frame->block.
+ thanks to ts <decoux at moulon.inra.fr>. [ruby-core:07833]
+ also fix [ruby-dev:28614] as well.
+
+Sat May 6 00:38:42 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * signal.c (trap): sig should be less then NSIG. Coverity found
+ this bug. a patch from Kevin Tew <tewk at tewk.com>.
+ [ruby-core:07823]
+
+Thu May 4 22:13:22 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * math.c (math_log2): add new method inspired by
+ [ruby-talk:191237].
+
+ * math.c (math_log): add optional base argument to Math::log().
+ [ruby-talk:191308]
+
+Thu May 4 02:24:16 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ext/syck/emitter.c (syck_scan_scalar): avoid accessing
+ uninitialized array element. a patch from Pat Eyler
+ <rubypate at gmail.com>. [ruby-core:07809]
+
+ * array.c (rb_ary_fill): initialize local variables first. a
+ patch from Pat Eyler <rubypate at gmail.com>. [ruby-core:07810]
+
+ * ext/syck/yaml2byte.c (syck_yaml2byte_handler): need to free
+ type_tag. a patch from Pat Eyler <rubypate at gmail.com>.
+ [ruby-core:07808]
+
+Wed May 3 02:12:07 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ext/socket/socket.c (make_hostent_internal): accept ai_family
+ check from Sam Roberts <sroberts at uniserve.com>.
+ [ruby-core:07691]
+
+Mon May 1 17:58:16 2006 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+
+ * ext/win32ole/win32ole.c (add_event_call_back): should not
+ delete event handler when the event name is not entried.
+
+Mon May 1 08:32:10 2006 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+
+ * ext/win32ole/win32ole.c (ole_param_ole_type): should return
+ "unknown type" string when ITypeInfo::GetFuncDesc failed.
+
+Sat Apr 29 22:43:37 2006 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * ext/openssl/ossl_asn1.c (ossl_asn1_decode0): should initialize
+ flag. [ruby-core:07785]
+
+Fri Apr 28 10:53:16 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * util.c (ruby_strtod): should not cut off 18 digits for no
+ reason. [ruby-core:07796]
+
+Thu Apr 27 01:38:10 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * array.c (rb_ary_fill): internalize local variable "beg" to
+ pacify Coverity. [ruby-core:07770]
+
+Wed Apr 26 16:59:24 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * pack.c (pack_unpack): now supports CRLF newlines. a patch from
+ <tommy at tmtm.org>. [ruby-dev:28601]
+
+Wed Apr 26 16:55:19 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * applied code clean-up patch from Stefan Huehner
+ <stefan at huehner.org>. [ruby-core:07764]
+
+Tue Apr 25 18:00:05 2006 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/tcltklib.c (delete_slaves): maybe increment the reference
+ count of a NULL Tcl_Obj [ruby-core:07759].
+
+Tue Apr 25 07:55:31 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/jcode.rb (String::tr_s): should have translated non
+ squeezing character sequence (i.e. a character) as well. thanks
+ to Hiroshi Ichikawa <gimite at gimite.ddo.jp> [ruby-list:42090]
+
+Fri Apr 21 15:19:13 2006 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/tcltklib.c (lib_eventloop_ensure): avoid dereferencing
+ freed pointer [ruby-core:07744] and memory leak.
+
+Fri Apr 21 12:14:52 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ext/socket/socket.c: document update patch from Sam Roberts
+ <sroberts at uniserve.com>. [ruby-core:07701]
+
+Thu Apr 20 08:43:54 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/mathn.rb (Integer): need not to remove gcd2. a patch from
+ NARUSE, Yui <naruse at airemix.com>. [ruby-dev:28570]
+
+Wed Apr 19 13:55:27 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * parse.y (arg): too much NEW_LIST()
+
+ * eval.c (SETUP_ARGS0): remove unnecessary access to nd_alen.
+
+Wed Apr 19 11:57:04 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (rb_eval): use ARGSCAT for NODE_OP_ASGN1.
+ [ruby-dev:28585]
+
+ * parse.y (arg): use NODE_ARGSCAT for placeholder.
+
+Wed Apr 19 11:13:17 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/getoptlong.rb (GetoptLong::get): RDoc update patch from
+ mathew <meta at pobox.com>. [ruby-core:07738]
+
+Wed Apr 19 10:13:27 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * variable.c (rb_const_set): raise error when no target klass is
+ supplied. [ruby-dev:28582]
+
+Tue Apr 18 17:40:37 2006 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/multi-tk.rb: add a binding to a container for a slave IP.
+
+ * ext/tk/lib/tk.rb: update RELEASE_DATE.
+
+ * ext/tk/tcltklib.c: forget to reset a Tcl interpreter.
+
+ * ext/tk/stubs.c: fix potential bugs about handling rb_argv0.
+
+Mon Apr 10 01:03:10 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * prec.c (prec_prec_f): documentation patch from
+ <gerardo.santana at gmail.com>. [ruby-core:07689]
+
+Sat Apr 8 02:34:34 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * bignum.c (rb_big_pow): second operand may be too big even if
+ it's a Fixnum. [ruby-talk:187984]
+
+Sat Apr 8 02:12:38 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * README.EXT: update symbol description. [ruby-talk:188104]
+
+Sat Apr 8 18:06:28 2006 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+
+ * ext/win32ole/win32ole.c: add WIN32OLE_METHOD#inspect,
+ WIN32OLE_PARAM#inspect.
+
+ * test/win32ole/test_win32ole_method.rb: ditto.
+
+ * add test/win32ole/test_win32ole_param.rb.
+
+Fri Apr 7 22:11:30 2006 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+
+ * ext/win32ole/win32ole.c(foletypelib_initialize): WIN32OLE_TYPELIB.new
+ accepts OLE file.
+
+ * test/win32ole/test_win32ole_typelib.rb(test_initialize): ditto.
+
+Thu Apr 6 23:28:47 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * COPYING: explicitly note GPLv2. [ruby-talk:187922]
+
+Thu Apr 6 16:43:06 2006 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * intern.h (rb_obj_instance_exec, rb_mod_module_exec): add declaration.
+
+Thu Apr 6 11:18:37 2006 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/tk/panedwindow.rb: lack of arguments. [ruby-core:7681]
+
+Thu Apr 6 01:04:47 2006 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/tcltklib.c: fix SEGV when embedding to an application.
+ [ruby-core:7600]
+
+ * ext/tk/tcltklib.c: fix SEGV at exit. [ruby-talk:186489]
+
+ * ext/tk/tkutil/tkutil.c: follow to changing specification of
+ instance_eval on ruby-1.9.x.
+
+ * ext/tk/lib/tk.rb: ditto.
+
+ * ext/tk/lib/multi-tk.rb: ditto.
+
+ * ext/tk/lib/tk.rb: remove warning about redefinition of methods.
+
+ * ext/tk/lib/tk/variable.rb: remove warning about unseting Tcl
+ variables.
+
+Wed Apr 5 00:22:54 2006 Tanaka Akira <akr@m17n.org>
+
+ * lib/pathname.rb: use a subclass for instantiation except
+ methods take pathname argument. suggested by Evan Phoenix.
+ [ruby-core:7618]
+
+Tue Apr 4 22:15:41 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * parse.y: remove some obsolete syntax rules (unparenthesized
+ method calls in argument list).
+
+Sat Apr 1 15:11:27 2006 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+
+ * ext/win32ole/win32ole.c: add WIN32OLE_TYPE#inspect,
+ WIN32OLE_VARIABLE#inspect
+
+ * remove ext/win32ole/tests/testOLEVARIABLE.rb, testOLETYPE.rb
+ testOLETYPELIB.rb.
+
+ * testall.rb: ditto.
+
+ * add test/win32ole
+
+Fri Mar 31 14:24:55 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * enumerator.c (enumerator_with_index): removed suspicious return
+ statement.
+
+Wed Mar 29 23:06:48 2006 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+
+ * ext/win32ole/win32ole.c (ole_invoke): change the behavior of
+ WIN32OLE#[], WIN32OLE#[]=. These methods invoke DISPID_VALUE.
+
+ * ext/win32ole/sample/excel2.rb: ditto.
+
+ * ext/win32ole/tests/testWIN32OLE.rb: ditto.
+
+Wed Mar 29 10:11:31 2006 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * ext/nkf/nkf-utf8/nkf.c (nkf_each_char_to_hex, encode_fallback_subchar,
+ e2w_conv): support C90 compiler.
+
+Mon Mar 27 22:45:37 2006 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * ext/nkf/nkf-utf8/{nkf.c, utf8tbl.c}: imported nkf 2.0.6.
+ * Add --ic / --oc option and mapping tables.
+ * Add fallback option.
+ * Add --no-best-fit-chars option.
+ * Fix some bugs.
+
+ * ext/nkf/nkf.c (nkf_split_options): added for parse option string.
+
+ * ext/nkf/lib/kconv.rb (Kconv.to*): add -m0.
+ Note that Kconv.to* still imply -X.
+
+ * ext/nkf/test.rb: Removed. Obsolete by test/nkf.
+
+ * ext/.document: enabled documents in nkf and kconv
+
+ * ext/nkf/nkf.c, ext/nkf/lib/kconv.rb: Add rdoc.
+
+Mon Mar 27 03:17:21 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (rb_call0): insecure calling should be checked for non
+ NODE_SCOPE method invocations too.
+
+ * eval.c (rb_alias): should preserve the current safe level as
+ well as method definition.
+
+Sun Mar 26 22:02:51 2006 K.Kosako <sndgk393 AT ybb.ne.jp>
+
+ * re.c: refactoring for options.
+
+ * parse.y: ditto.
+
+Fri Mar 24 21:11:02 2006 K.Kosako <sndgk393 AT ybb.ne.jp>
+
+ * re.c (match_aref): RDoc description updated.
+
+ * string.c (rb_str_sub): ditto.
+
+ * string.c (rb_str_gsub): ditto.
+
+Fri Mar 24 17:20:03 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * process.c (rb_f_sleep): remove RDoc description about SIGALRM
+ which is not valid on the current implementation. [ruby-dev:28464]
+
+Thu Mar 23 21:40:47 2006 K.Kosako <sndgk393 AT ybb.ne.jp>
+
+ * re.c (rb_reg_regsub): prohibit \1, \2 ...\9 in replaced string
+ for named regex pattern.
+
+Thu Mar 23 21:06:23 2006 K.Kosako <sndgk393 AT ybb.ne.jp>
+
+ * oniguruma.h: Version 4.0.2
+
+ * regparse.c: ditto.
+
+ * regcomp.c ditto.
+
+ * regerror.c: ditto.
+
+Thu Mar 23 10:47:03 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (method_missing): should support argument splat in
+ super. a bug in combination of super, splat and
+ method_missing. [ruby-talk:185438]
+
+Thu Mar 23 00:01:32 2006 K.Kosako <sndgk393 AT ybb.ne.jp>
+
+ * re.c (rb_reg_regsub): add back reference by name \k<name> in
+ replace string.
+
+ * re.h: add regexp argument to rb_reg_regsub().
+
+ * string.c (rb_str_sub_bang): ditto.
+
+ * string.c (str_gsub): ditto.
+
+Tue Mar 21 22:14:01 2006 K.Kosako <sndgk393 AT ybb.ne.jp>
+
+ * re.c (match_alloc): initialize member regexp.
+
+ * re.c (match_aref): add String and Symbol argument. [ruby-dev:28448]
+
+ * re.h: add member regexp to RMatch.
+
+ * gc.c (gc_mark_children): add gc_mark() to regexp member.
+
+Mon Mar 20 12:05:18 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * configure.in: Solaris SunPro compiler -rapth patch from
+ <kuwa at labs.fujitsu.com>. [ruby-dev:28443]
+
+Mon Mar 20 11:12:38 2006 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * ext/win32ole/win32ole.c (folevariant_value): could not compile
+ with C90 compiler.
+
+Mon Mar 20 09:40:23 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * configure.in: remove enable_rpath=no for Solaris.
+ [ruby-dev:28440]
+
+Sun Mar 19 09:46:30 2006 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+
+ * ext/win32ole/win32ole.c (ole_val2olevariantdata): change behavior
+ of converting OLE Variant object with VT_ARRAY|VT_UI1 and Ruby
+ String object.
+
+ * ext/win32ole/win32ole.c (folevariant_value): ditto.
+
+ * ext/win32ole/tests/testOLEVARIANT.rb: ditto.
+
+Wed Mar 15 16:51:11 2006 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * lib/mkmf.rb (create_makefile): support libraries without *.so.
+
+Wed Mar 15 16:39:29 2006 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * ext/openssl/ossl_ssl.c, ext/openssl/ossl_nsspki.c: should use
+ "rb_str_new(0, 0)" to make empty string.
+
+Sun Mar 12 17:02:10 2006 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+
+ * ext/win32ole/win32ole.c(ole_val2olevariantdata): support VT_ARRAY in
+ WIN32OLE_VARIANT.new().
+
+ * ext/win32ole/tests/testOLEVARIANT.rb: ditto.
+
+ * ext/win32ole/tests/testOLEPARAM.rb: test method name should not be
+ duplicated.
+
+Sat Mar 11 14:24:06 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ruby.1: a clarification patch from David Lutterkort
+ <dlutter at redhat.com>. [ruby-core:7508]
+
+Sun Mar 5 18:40:58 2006 Minero Aoki <aamine@loveruby.net>
+
+ * lib/fileutils.rb: do not repeat command options.
+
+Sun Mar 5 18:35:03 2006 Minero Aoki <aamine@loveruby.net>
+
+ * lib/net/http.rb (send_request_with_body): #content_type never
+ return false, use #main_type instead. [ruby-core:07476]
+
+Sat Mar 4 15:26:40 2006 Tanaka Akira <akr@m17n.org>
+
+ * gc.c (id2ref): fix symbol test.
+
+Sat Mar 4 01:08:07 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/rdoc/ri/ri_paths.rb (RI::Paths): adding paths from rubygems
+ directories. a patch from Eric Hodel <drbrain at segment7.net>.
+ [ruby-core:07423]
+
+Fri Mar 3 17:59:00 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (rb_clear_cache_by_class): clearing wrong cache.
+
+Fri Mar 3 21:22:42 2006 Tanaka Akira <akr@m17n.org>
+
+ * lib/fileutils.rb (FileUtils.cp_r): implement :remove_destination
+ option.
+
+ * ext/extmk.rb: use :remove_destination to install extension libraries
+ to avoid SEGV. [ruby-dev:28417]
+
+Fri Mar 3 14:41:04 2006 Minero Aoki <aamine@loveruby.net>
+
+ * ext/dl/.cvsignore: ignore callback.h.
+
+ * ext/ripper/.cvsignore: ignore eventids2table.c.
+
+ * ext/socket/.cvsignore: ignore constants.h.
+
+Thu Mar 2 18:58:18 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (rb_thread_fd_writable): should not re-schedule output
+ from KILLED thread (must be error printing).
+
+Thu Mar 2 09:12:05 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * array.c (rb_ary_flatten_bang): allow specifying recursion
+ level. [ruby-talk:182170]
+
+ * array.c (rb_ary_flatten): ditto.
+
+Thu Mar 2 08:02:42 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * gc.c (add_heap): a heap_slots may overflow. a patch from Stefan
+ Weil <weil at mail.berlios.de>.
+
+Wed Mar 1 17:13:37 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (rb_call): use separate cache for fcall/vcall
+ invocation.
+
+ * eval.c (rb_eval): NODE_FCALL, NODE_VCALL can call local
+ functions.
+
+ * eval.c (rb_mod_local): a new method to specify newly added
+ visibility "local".
+
+ * eval.c (search_method): search for local methods which are
+ visible only from the current class.
+
+ * class.c (rb_class_local_methods): a method to list local methods.
+
+Thu Mar 2 17:54:45 2006 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * gc.c: commited magic for reducing RVALUE size on windows. (24->20byte)
+ [ruby-core:7474]
+
+Thu Mar 2 14:12:26 2006 Tanaka Akira <akr@m17n.org>
+
+ * gc.c: align VALUE with sizeof(RVALUE) globally.
+ (is_pointer_to_heap): check alignment out of loop.
+ (id2ref): avoid collision between symbols and objects.
+ (rb_obj_id): ditto. moved from object.c.
+ [ruby-talk:178364] [ruby-core:7305]
+
+Thu Mar 2 12:55:16 2006 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * win32/win32.c (filetime_to_unixtime): should set tm_isdst to -1.
+ stat() didn't treat daylight saving time property on WinNT.
+ [ruby-talk:182100]
+
+Wed Mar 1 00:15:51 2006 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * lib/rdoc/parsers/parse_rb.rb (read_escape): could not handle /\^/.
+ merged Mr. Ishizuka's lib/irb/ruby-lex.rb 's patch rev 1.29.
+ [ruby-talk:181631] [ruby-dev:28404]
+
+Tue Feb 28 19:32:14 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * object.c (Init_Object): add BasicObject class as a top level
+ BlankSlate class.
+
+Mon Feb 27 00:19:16 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ruby.h (SYM2ID): should not cast to signed long.
+ [ruby-core:07414]
+
+Fri Feb 24 20:21:38 2006 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
+
+ * test/drb/drbtest.rb (add_service_command): quote pathnames in the
+ server's command line for space contained directory names.
+ Thanks, arton. [ruby-dev:28386]
+
+Fri Feb 24 12:10:07 2006 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * instruby.rb: install *.exe.manifest and *.dll.manifest if exist.
+ It's for VC++8.
+
+Fri Feb 24 11:17:45 2006 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/win32.c (NtInitialize): need to set a handler for VC++8.
+
+Thu Feb 23 22:39:59 2006 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * bcc32/Makefile.sub: use borlndmm.dll if possible. bcc32's RTL internal
+ memory manager cannot handle large memory block properly.
+ ex: 10000.times { "" << "." * 529671; GC.start } # crash
+ [ruby-dev:28230]
+
+Thu Feb 23 13:23:03 2006 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * eval.c (SETUP_ARGS0): fixed memory corruption. [ruby-dev:28360]
+
+Wed Feb 22 21:16:55 2006 Tanaka Akira <akr@m17n.org>
+
+ * lib/pathname.rb (Pathname#each_filename): use split_names properly.
+
+Wed Feb 22 16:24:05 2006 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * test/webrick/test_cgi.rb: should support platforms which search
+ library path from the interpreter's path.
+ And, support test without install incidentally.
+
+Wed Feb 22 14:21:03 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * bignum.c (bignorm): x may not be a bignum. [ruby-dev:28367]
+
+Wed Feb 22 09:22:40 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (proc_alloc): add proper check for creation of a lambda
+ without a block.
+
+Tue Feb 21 02:07:39 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * parse.y (f_arglist): should set command_start = Qtrue for
+ command body. [ruby-talk:180648]
+
+Mon Feb 20 22:30:17 2006 Tanaka Akira <akr@m17n.org>
+
+ * mkconfig.rb: alias Config to RbConfig for compatibility.
+
+Mon Feb 20 18:21:41 2006 Tanaka Akira <akr@m17n.org>
+
+ * io.c (rb_io_reopen): flush before reopening a file.
+ reported by Mathieu Bouchard. [ruby-core:7396]
+
+Mon Feb 20 17:29:50 2006 Tanaka Akira <akr@m17n.org>
+
+ * mkconfig.rb: generate RbConfig instead of Config.
+
+ * instruby.rb, rubytest.rb, runruby.rb, bcc32/Makefile.sub,
+ ext/extmk.rb, ext/dl/extconf.rb, ext/iconv/charset_alias.rb,
+ lib/mkmf.rb, lib/rdoc/ri/ri_paths.rb,
+ lib/webrick/httpservlet/cgihandler.rb,
+ test/dbm/test_dbm.rb, test/gdbm/test_gdbm.rb,
+ test/ruby/envutil.rb, test/soap/calc/test_calc_cgi.rb,
+ test/soap/header/test_authheader_cgi.rb, test/soap/ssl/test_ssl.rb,
+ win32/mkexports.rb, win32/resource.rb: Use RbConfig instead of
+ Config.
+
+Mon Feb 20 13:46:19 2006 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * lib/find.rb: should raise ENOENT if root entry does not exist,
+ without opening it. [ruby-dev:28345]
+
+Mon Feb 20 12:27:53 2006 Kent Sibilev <ksruby@gmail.com>
+
+ * lib/rational.rb (Integer::gcd): small typo fix.
+ [ruby-core:07395]
+
+Mon Feb 20 10:03:59 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * variable.c (rb_const_get_0): Object should have been the lowest
+ in const lookup precedence. [ruby-dev:28343]
+
+Mon Feb 20 09:17:11 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/delegate.rb (Delegator): should not delegate "funcall".
+
+Mon Feb 20 09:13:42 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/webrick/httpservlet/cgihandler.rb (WEBrick::HTTPServlet::CGIHandler):
+ qualify the access for Config constant. [ruby-dev:28338]
+
+ * lib/resolv.rb (Resolv::DNS::Resource::IN::A): qualify
+ ClassValue. [ruby-dev:28338]
+
+Mon Feb 20 01:05:27 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/rational.rb (Integer::gcd): replaced by gcd4 in
+ [ruby-core:07390]. [ruby-core:07377]
+
+Mon Feb 20 00:57:02 2006 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * ext/openssl/ossl.h (OSSL_Debug): should not use __func__.
+ [ruby-dev:28339]
+
+Mon Feb 20 00:13:49 2006 Tanaka Akira <akr@m17n.org>
+
+ * lib/open-uri.rb: add :ssl_verify_mode option.
+ suggested by Will Glynn.
+
+ * lib/open-uri.rb: add :ssl_ca_cert option.
+
+Sun Feb 19 04:46:29 2006 Guy Decoux <ts@moulon.inra.fr>
+
+ * eval.c: initial value for block_unique must be 1.
+ [ruby-talk:180420]
+
+Sat Feb 18 23:58:26 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/tracer.rb (Tracer::Tracer.add_filter): turn on tracer mode
+ only when caller() level size is one. [ruby-core:07389]
+
+ * lib/rdoc/parsers/parse_rb.rb: need not to require "tracer".
+ [ruby-core:07389]
+
+ * sample/rtags.rb: ditto.
+
+Sat Feb 18 21:16:27 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (rb_obj_instance_eval): RDoc description updated. a
+ patch from Ozgur Murat Homurlu <ozgurmurath at gmail.com>.
+ [ruby-core:07381]
+
+Sat Feb 18 01:01:17 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * variable.c (rb_const_get_0): skip ruby_wrapper in const search
+ to give it lower priority (just above Object). need not to
+ change rb_const_defined_0() since it's only a precedence matter;
+ they are defined anyway.
+
+Sat Feb 18 00:22:39 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/tracer.rb: merged a minor clarification patch from Daniel
+ Berger <Daniel.Berger at qwest.com>. [ruby-core:07376]
+
+Fri Feb 17 17:30:20 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (ev_const_get): simplified using rb_const_get_fallback().
+
+ * eval.c (ev_const_defined): adopt to ev_const_get() using
+ rb_const_defined_fallback().
+
+ * variable.c (rb_const_get_fallback): new function to implement
+ constant search.
+
+ * variable.c (rb_const_defined_fallback): new function to
+ implement constant definition check.
+
+ * variable.c (rb_const_get_0): adopt to new behavior. constants
+ are looked up in the order of: current class, super classes (but
+ Object), lexically external classes/modules, and Object.
+
+ * variable.c (rb_const_defined_0): ditto.
+
+Fri Feb 17 11:20:53 2006 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * util.c (ruby_strtod): Float("1e") should fail. [ruby-core:7330]
+
+ * pack.c (EXTEND32): unpack("l") did not work where sizeof(long) != 4.
+ [ruby-talk:180024]
+
+ * pack.c (pack_unpack): fixed integer overflow on template "w".
+ [ruby-talk:180126]
+
+Fri Feb 17 09:39:29 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (rb_thread_wait_for): sleep should always sleep for
+ specified amount of time. [ruby-talk:180067]
+
+Wed Feb 15 16:52:52 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (rb_eval): NODE_OP_ASGN1 should allow splat in its
+ argument list. [ruby-core:07366]
+
+ * parse.y (arg): avoid unnecessary extra argument.
+ [ruby-core:07366]
+
+ * eval.c (rb_eval): honor visibility on OP_ASGN1 and
+ OP_ASGN2. [ruby-core:07366]
+
+Wed Feb 15 15:20:23 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (error_line): remove void control path. [ruby-dev:28335]
+
+Wed Feb 15 10:09:51 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (yield_under_i): should not pass self as an argument to
+ the block for instance_eval. [ruby-core:07364]
+
+Wed Feb 15 09:20:35 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (rb_obj_instance_eval): should be no singleton classes for
+ true, false, and nil. [ruby-dev:28186]
+
+Tue Feb 14 20:26:00 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * enumerator.c (enumerator_each): return self if no block is
+ given. [yarv-dev:882]
+
+Tue Feb 14 18:48:33 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (DMETHOD_P): accessing wrong frame. [ruby-dev:28181]
+
+ * eval.c (proc_invoke): preserve FRAME_DMETH flag.
+
+Tue Feb 14 15:15:22 2006 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * ext/zlib/zlib.c: suppress warning on test/zlib. [ruby-dev:28323]
+
+Tue Feb 14 13:47:22 2006 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/win32.c (rb_w32_utime): drop read-only attribute before
+ changing file time.
+
+Tue Feb 14 13:38:01 2006 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/Makefile.sub (config.h): should define HAVE_LONG_LONG with
+ VC++8.
+
+Tue Feb 14 11:42:38 2006 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * time.c (search_time_t): support non 32bit time_t environments.
+
+ * win32/Makefile.sub (config.h): VC++8 has ``long long'' type.
+
+ * win32/Makefile.sub (config.h): VC++8's time_t is 64bit value.
+
+Mon Feb 13 18:01:52 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (copy_node_scope): remove duplicated semicolons at end.
+ a patch from KIMURA Koichi <kimura.koichi at canon.co.jp>.
+ [ruby-dev:28332]
+
+ * eval.c (VIS_MODE): remove unnecessary argument.
+ [ruby-dev:28332]
+
+Mon Feb 13 13:49:48 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * parse.y (parser_parse_string): mention "regexp" in a error
+ message. a patch from Mauricio Fernandez <mfp at acm.org>
+ [ruby-core:07340]
+
+Mon Feb 13 00:01:32 2006 K.Kosako <sndgk393 AT ybb.ne.jp>
+
+ * oniguruma.h: Version 4.0.1
+
+ * regparse.c (onig_free_shared_cclass_table): fix memory leaks.
+
+ * regcomp.c (optimize_node_left): change from IS_POSIXLINE() to IS_MULTILINE().
+
+ * regint.h: rename ANCHOR_ANYCHAR_STAR_PL to ANCHOR_ANYCHAR_STAR_ML.
+
+ * regparse.h: ditto.
+
+ * regexec.c: ditto.
+
+Sat Feb 11 21:57:29 2006 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+
+ * ext/win32ole/win32ole.c: add WIN32OLE.create_guid.
+
+ * ext/win32ole/tests/testWIN32OLE.rb: ditto.
+
+Sat Feb 11 01:57:44 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (rb_f_autoload): check if ruby_cbase is nil (during
+ instance_eval for objects cannot have singleton classes,
+ e.g. fixnums and symbols). [ruby-dev:28178]
+
+Fri Feb 10 12:31:05 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (rb_eval): should support NODE_ZSUPER in NODE_ITER.
+ [ruby-dev:28326]
+
+ * eval.c (ZSUPER_ARGS): support macro.
+
+Wed Feb 8 10:26:06 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * gc.c (rb_gc_call_finalizer_at_exit): turn on during_gc while
+ invoking finalizers.
+
+ * gc.c (rb_gc_finalize_deferred): ditto.
+
+Tue Feb 7 23:03:13 2006 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * ext/zlib/zlib.c: should not access ruby objects in finalizer.
+ [ruby-dev:28286]
+
+Tue Feb 7 18:42:00 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * io.c (rb_write_error2): use fwrite(3) if rb_stderr is not
+ updated or is already freed. [ruby-dev:28313]
+
+Mon Feb 6 16:02:51 2006 WATANABE Hirofumi <eban@ruby-lang.org>
+
+ * file.c (rb_thread_flock): ERROR_NOT_LOCKED is not an error on Cygwin.
+ In such situation, flock() should return 0.
+
+Mon Feb 6 14:36:29 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (error_line): include the class name of a surrounding
+ method in error position description.
+
+Mon Feb 6 00:14:57 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * enum.c (enum_find_index): a new method Enumerable#find_index.
+ [ruby-talk:178495]
+
+Sun Feb 5 23:29:31 2006 Tanaka Akira <akr@m17n.org>
+
+ * ruby.h (struct RStruct): embed 3 or less elements structs.
+ (RSTRUCT_LEN): defined for accessing struct members.
+ (RSTRUCT_PTR): ditto.
+
+ * struct.c: use RSTRUCT_LEN and RSTRUCT_PTR.
+ (struct_alloc): allocate small structs in embedded format.
+ (rb_struct_init_copy): ditto.
+
+ * gc.c (gc_mark_children): use RSTRUCT_LEN and RSTRUCT_PTR.
+ (obj_free): ditto.
+
+ * marshal.c (w_object): use RSTRUCT_LEN and RSTRUCT_PTR.
+
+Sun Feb 5 21:01:49 2006 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * numeric.c (fix_to_s): removed workaround for radix 2. Historically,
+ rb_fix2str could only handle radix 8, 10, 16. (Rev1.37) But for now,
+ it can handle radix 2..36. [ruby-Bugs#3438] [ruby-core:7300]
+
+Sun Feb 5 18:49:00 2006 Minero Aoki <aamine@loveruby.net>
+
+ * lib/net/http.rb (add_field, get_fields): keep 1.8.2
+ compatibility. This patch is contributed by Rob Pitt.
+
+Sun Feb 5 16:33:50 2006 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * lib/mkmf.rb (create_makefile): Kernel#sub! was removed on HEAD.
+
+Sun Feb 5 14:26:54 2006 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * lib/pstore.rb: should return default value if name is not found.
+ [ruby-core:7304]
+
+ * lib/pstore.rb: should raise PStore::Error if not in transaction.
+
+Sat Feb 4 22:51:43 2006 Tanaka Akira <akr@m17n.org>
+
+ * eval.c: apply the FreeBSD getcontext/setcontext workaround
+ only before FreeBSD 7-CURRENT.
+
+Sat Feb 4 21:10:06 2006 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/win32.c (LK_ERR): ERROR_NOT_LOCKED is not an error.
+ In such situation, flock() should return 0.
+
+Sat Feb 4 15:52:56 2006 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * numeric.c (fix_to_s): (2**32).to_s(2) fails with exception where
+ sizeof(int) == 4 < sizeof(long). [ruby-core:7300]
+
+Sat Feb 4 15:02:05 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * oniguruma.h: merge Oniguruma 4.0.0 [ruby-dev:28290]
+
+Fri Feb 3 19:25:53 2006 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * ruby.h: fixed prototype.
+
+ * ext/syck/rubyext.c: defined symbol ID as global variable as others.
+
+Fri Feb 3 17:57:02 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c: unify ruby_class (for method definition) and ruby_cbase
+ (for constant reference).
+
+Fri Feb 3 15:02:10 2006 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * ext/syck/syck.c (syck_move_tokens): should reset p->cursor or etc
+ even if skip == 0. This causes buffer overrun.
+ (ex: YAML.load('--- "..' + '\x82\xA0' * 511 + '"'))
+
+Fri Feb 3 00:01:31 2006 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * ext/syck/emitter.c (syck_emitter_write): should not set '\0' on
+ emitter's marker. if marker points to the end of buffer, this is
+ buffer overrun. (ex: YAML.dump("." * 12288))
+
+Thu Feb 2 17:13:01 2006 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * lib/rdoc/parsers/parse_rb.rb (RDoc::RubyParser#get_tk): added
+ support of :'string' style Symbol.
+
+Thu Feb 2 16:01:24 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (rb_call0): use TMP_ALLOC() instead of allocating
+ a temporary array object.
+
+ * eval.c (eval): need not to protect $SAFE value.
+ [ruby-core:07177]
+
+ * error.c (Init_Exception): change NameError to direct subclass of
+ Exception so that default rescue do not handle it silently.
+
+Thu Feb 2 14:45:53 2006 Ville Mattila <ville.mattila@stonesoft.com>
+
+ * configure.in: The isinf is not recognized by autoconf
+ library guesser on solaris 10. [ruby-core:7138]
+
+Wed Feb 1 22:01:47 2006 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * configure.in, hash.c (ruby_setenv): use setenv(3) and unsetenv(3)
+ where they are supported. modifying environ variable seems to
+ segfault solaris 10. [ruby-core:7276] [ruby-dev:28270]
+
+ * ruby.c (set_arg0): if use setenv(3), environ space cannot be used
+ for altering argv[0].
+
+Tue Jan 31 14:46:28 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * struct.c (rb_struct_select): update RDoc description.
+ [ruby-core:7254]
+
+Tue Jan 31 11:58:51 2006 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/multi-tk.rb: add MultiTkIp#eval and bg_eval.
+
+ * ext/tk/lib/tk/namespace.rb: TkNamespace#eval was enbugged at the
+ last commit. Now it will return a proper object.
+
+Tue Jan 31 08:07:02 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * numeric.c (int_upto): return an enumerator if no block is
+ attached to the method.
+
+ * numeric.c (int_downto): ditto.
+
+ * numeric.c (int_dotimes): ditto.
+
+ * enum.c (enum_first): new method Enumerable#first to take first n
+ elements from an enumerable.
+
+ * enum.c (enum_group_by): new method Enumerable#group_by that
+ groups enumerable values according to their block values.
+
+Tue Jan 31 00:08:22 2006 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * ext/syck/rubyext.c (syck_resolver_transfer): workaround for SEGV.
+ ex: ruby -ryaml -e 'YAML.load("!map:B {}")' [ruby-core:7217]
+
+Sat Jan 28 07:49:30 2006 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * lib/rdoc/usage.rb: support "a:0:33" style caller[-1]. In this case
+ file name is "a:0". I don't know this really happens though...
+ [ruby-Bugs:3344]
+
+Thu Jan 26 15:55:52 2006 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ext/socket/socket.c: turn on do_not_reverse_lookup by default.
+
+Wed Jan 25 22:29:04 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in, dln.c, file.c, intern.h, missing.h (eaccess): use
+ system routine if provided. fixed: [ruby-core:07195]
+
+Sun Jan 22 23:27:13 2006 Go Noguchi <gonoguti@yahoo.co.jp>
+
+ * lib/test/unit/autorunner.rb (process_args): ignore arguments after
+ '--' so that test scripts can handle them. fixed: [ruby-dev:28258]
+
+Sun Jan 22 22:09:52 2006 Tanaka Akira <akr@m17n.org>
+
+ * eval.c (POST_GETCONTEXT): define separately from PRE_GETCONTEXT on
+ IA64 to avoid reusing variable address.
+
+Sun Jan 22 20:03:35 2006 Tanaka Akira <akr@m17n.org>
+
+ * eval.c (ruby_setjmp): define PRE_GETCONTEXT and POST_GETCONTEXT
+ instead of FUNCTION_CALL_MAY_RETURN_TWICE.
+ define PRE_GETCONTEXT to clear carry flag for workaround of
+ FreeBSD/i386 getcontext/setcontext bug.
+ [ruby-dev:28263]
+
+Thu Jan 19 22:19:18 2006 Minero Aoki <aamine@loveruby.net>
+
+ * lib/fileutils.rb (mv): should remove file after copying.
+ [ruby-dev:28223]
+
+Wed Jan 18 23:37:06 2006 Tanaka Akira <akr@m17n.org>
+
+ * eval.c (FUNCTION_CALL_MAY_RETURN_TWICE): don't clobber %l7 of SPARC
+ if enable-shared.
+ (ruby_setjmp): call FUNCTION_CALL_MAY_RETURN_TWICE after getcontext
+ too.
+ reported by Pav Lucistnik and Marius Strobl.
+ http://lists.freebsd.org/pipermail/freebsd-sparc64/2006-January/003739.html
+
+Tue Jan 17 23:59:56 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * object.c (rb_mod_const_get, rb_mod_const_defined): added optional
+ flag to search ancestors, which is defaulted to true.
+ fixed: [ruby-talk:175899]
+
+ * eval.c (rb_mod_method_defined): ditto.
+
+Tue Jan 17 11:31:47 2006 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/setup.mak (MAKE): workaround for nmake 8.
+
+Tue Jan 17 11:06:19 2006 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/Makefile.sub: invoke .bat via shell. workaround for nmake 8.
+
+Mon Jan 16 10:13:38 2006 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * ext/syck/emitter.c (syck_emit_seq, syck_emit_map, syck_emit_item):
+ should output complex key mark even if map's key is empty seq/map.
+ [ruby-core:7129]
+
+Sat Jan 14 03:38:54 2006 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * file.c (rb_file_s_chmod): avoid warning where sizeof(int) !=
+ sizeof(void*).
+
+Fri Jan 13 19:26:15 2006 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * lib/rdoc/diagram.rb:
+ - properly quote bare element attributes
+ - terminates dangling elements (e.g. <img>, <br>, <link>, etc)
+ - converts "CVS" to the more HTML-friendly acronym element
+ - adds missing type attributes to style elements
+
+ based on Paul Duncan's patch <pabs@pablotron.org> [ruby-core:7028]
+
+ * lib/rdoc/generators/html_generator.rb: ditto.
+ * lib/rdoc/generators/template/html/hefss.rb: ditto.
+ * lib/rdoc/generators/template/html/html.rb: ditto.
+ * lib/rdoc/generators/template/html/kilmer.rb: ditto.
+
+Thu Jan 12 11:53:08 2006 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/sample/tkballoonhelp.rb: [bug fix] couldn't add to a widget
+ which is constructed with TkComposite module.
+ [new feature] support 'command' option which is called just before
+ popping up the balloon help.
+
+Wed Jan 11 00:12:29 2006 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
+
+ * lib/erb.rb (ERB::Compiler): add instance variable @insert_cmd to
+ change <%='s behavior.
+
+Tue Jan 10 19:42:33 2006 Tanaka Akira <akr@m17n.org>
+
+ * gc.c (garbage_collect): mark ruby_current_node.
+ if an exception is raised in a finalizer written in C called by
+ rb_gc_call_finalizer_at_exit, ruby_set_current_source may use
+ collected ruby_current_node and mark_source_filename may corrupt
+ memory.
+
+Tue Jan 10 13:30:34 2006 akira yamada <akira@ruby-lang.org>
+
+ * ext/syck/rubyext.c (syck_resolver_transfer): should be able to load
+ !ruby/object:Bignum syntax 1.8.3 dumped. [ruby-core:6159]
+
+Tue Jan 10 12:47:41 2006 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * lib/yaml/rubytypes.rb (Fixnum): Bignum could not be loaded in
+ ruby 1.8.3/1.8.4. [ruby-core:6115]
+
+ * lib/yaml/rubytypes.rb (Numeric): Subclass of Numeric could not
+ be dumped properly. [ruby-core:7047]
+
+Tue Jan 10 12:00:48 2006 Aaron Schrab <aaron @nospam@ schrab.com>
+
+ * lib/yaml/rubytypes.rb (Symbol#yaml_new): YAML loading of quoted
+ Symbols broken. [ruby-Bugs:2535]
+
+Tue Jan 10 07:26:52 2006 Tanaka Akira <akr@m17n.org>
+
+ * gc.c (gc_stress): renamed from always_gc and enabled by default.
+ (gc_stress_get): new function for GC.stress.
+ (gc_stress_set): new function for GC.stress=.
+
+Mon Jan 9 19:58:56 2006 arton <artonx@yahoo.co.jp>
+
+ * ext/zlib/extconf.rb: zlib compiled DLL version 1.2.3 distributed by
+ http://www.zlib.net/ has zdll.lib. [ruby-dev:28209]
+
+Mon Jan 9 14:25:00 2006 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * win32/Makefile.sub (OPTFLAGS): I have experienced trouble on y- flag,
+ (VisualC++6) so use -O2b2xg- if $(MSC_VER) < 1400. [ruby-core:7040]
+
+Mon Jan 9 14:25:00 2006 Kero van Gelder <rubyforge @nospam@ kero.tmfweb.nl>
+
+ * lib/webrick/httpservlet/filehandler.rb: fixed typo. [ruby-core:7075]
+
+Sun Jan 8 14:15:27 2006 Tanaka Akira <akr@m17n.org>
+
+ * eval.c (GCC_VERSION_BEFORE): check __INTEL_COMPILER.
+ Intel C++ Compiler defines __GNUC__.
+ http://www.intel.com/software/products/compilers/clin/docs/ug_cpp/lin1077.htm
+
+Sat Jan 7 15:40:07 2006 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (singleton): get rid of segfault on syntax error.
+ fixed: [ruby-core:07070]
+
+Sat Jan 7 06:24:18 2006 Tanaka Akira <akr@m17n.org>
+
+ * eval.c (rb_fd_isset): compare the result of FD_ISSET with 0 to
+ avoid FreeBSD bug. FreeBSD defines FD_ISSET as just a bitmap of
+ unsigned long. So returning the value from rb_fd_isset discards
+ upper 32bits on LP64 environment.
+ http://www.freebsd.org/cgi/query-pr.cgi?pr=ia64/91421
+
+Fri Jan 6 02:20:18 2006 Tanaka Akira <akr@m17n.org>
+
+ * configure.in: don't force getcontext on IA64.
+
+ * eval.c (ruby_setjmp): add an argument for just before getcontext.
+ (THREAD_SAVE_CONTEXT): call rb_thread_save_context just
+ before getcontext.
+ [ruby-dev:28205]
+
+Sun Jan 1 15:28:46 2006 Tanaka Akira <akr@m17n.org>
+
+ * missing.h (isinf): avoid macro expansion
+ "extern int isinf(double);" to
+ "extern int ((sizeof(double)==sizeof(float))?_Isinff(double):_Isinf(double));" on
+ HP-UX.
+
+Sun Jan 1 14:42:54 2006 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * win32/win32.c (rb_w32_seekdir): should not segfault even if passed
+ the location which rb_w32_telldir didn't return. (and should change
+ `bits' position) [ruby-core:7035]
+
+ * win32/dir.h: ditto. (stores `loc' instead of `bitpos')
+
+ * test/ruby/test_dir.rb: added.
+
+Sat Dec 31 22:57:00 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (rb_thread_save_context): should not recycle scope object used
+ in a thread. fixed: [ruby-dev:28177]
+
+Sat Dec 31 19:50:38 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * ext/syck/rubyext.c: attribute name was truncated with Rev1.64.
+
+Sat Dec 31 11:53:16 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * lib/generator.rb: (Generator#initialize): should kill @loop_thread
+ before starting new thread. (occurs when called via Generator#rewind)
+ [ruby-dev:28184]
+
+Fri Dec 30 18:22:42 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * gc.c (garbage_collect): mark objects referred from aborting threads.
+ [ruby-dev:28190]
+
+ * win32/Makefile.sub: VC++8 support.
+
+Fri Dec 30 15:17:35 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * lib/generator.rb (Generator#initialize): ensured to stop @loop_thread.
+ Mr. Tanaka pointed out one Thread.pass is not enough. [ruby-dev:28185]
+
+Fri Dec 30 12:20:57 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * lib/generator.rb (Generator#initialize): fixed dead lock. this occurred
+ when end? was called before @loop_thread was stopped. [ruby-core:7029]
+
+Fri Dec 30 01:04:52 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * lib/generator.rb: should work with another thread. (more robust code)
+ [ruby-dev:28177]
+
+Thu Dec 29 23:59:37 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (rb_gc_mark_threads): keep unmarked threads which won't wake
+ up alone, and mark threads in the loading table. [ruby-dev:28154]
+
+ * eval.c (rb_gc_abort_threads), gc.c (gc_sweep): kill unmarked
+ threads. [ruby-dev:28172]
+
+Thu Dec 29 17:02:07 2005 Tanaka Akira <akr@m17n.org>
+
+ * test/ruby/envutil.rb (EnvUtil.rubybin): search "ruby" instead of
+ "miniruby". [ruby-dev:28140]
+
+Thu Dec 29 14:35:10 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (rb_mod_define_method): should save safe_level in the
+ proc object. [ruby-dev:28146]
+
+Thu Dec 29 11:22:34 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * lib/generator.rb: reimplemented Generator class with Thread instead of
+ callcc, in order to fix memory leak. [ruby-dev:28142]
+
+Wed Dec 28 14:10:05 2005 Tanaka Akira <akr@m17n.org>
+
+ * ia64.s: remove .pred.safe_across_calls directive.
+ reported by WATANABE Tetsuya. [ruby-dev:28141]
+
+Wed Dec 28 01:32:39 2005 Tanaka Akira <akr@m17n.org>
+
+ * eval.c (struct thread): add bstr_max.
+ (rb_thread_save_context): use realloc instead of REALLOC_N
+ to avoid GC.
+
+Tue Dec 27 23:59:53 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/optparse.rb (CompletingHash#match): fix for 1.9.
+
+Tue Dec 27 16:59:52 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * test/drb/drbtest.rb (DRbService::self.ext_service): increase
+ timeout limit. a patch from Kazuhiro NISHIYAMA
+ <zn at mbf.nifty.com>. [ruby-dev:28132]
+
+Tue Dec 27 14:17:55 2005 Tanaka Akira <akr@m17n.org>
+
+ * configure.in: define IA64 for portability. (HP aC++/ANSI C doesn't
+ define __ia64__.)
+ don't check libunwind stuff.
+ check __libc_ia64_register_backing_store_base.
+
+ * defines.h: declare rb_ia64_bsp and rb_ia64_flushrs.
+ (flush_register_windows): call rb_ia64_flushrs on IA64.
+
+ * ia64.s: new file for IA64.
+ it is separated from C program files because
+ Intel C++ Compiler for IA64 doesn't support inline assembly.
+
+ * common.mk (ia64.$(OBJEXT)): new target.
+
+ * ruby.h (RUBY_INIT_STACK): defined.
+ (ruby_init_stack): declared for RUBY_INIT_STACK.
+
+ * main.c (main): precedes RUBY_INIT_STACK before ruby_init.
+
+ * gc.c (rb_gc_register_stack_start): new global variable on IA64.
+ (garbage_collect): simplify register stack marking code.
+ don't use libunwind.
+ (Init_stack): initialize rb_gc_register_stack_start.
+ (ruby_init_stack): new function for RUBY_INIT_STACK.
+
+ * eval.c (struct thread): add bstr_pos member for original position of
+ register stack.
+ (rb_thread_save_context): simplify register stack saving code.
+ don't use libunwind.
+ (rb_thread_restore_context_0): new function. moved from
+ rb_thread_restore_context except the stack position checking code.
+ don't use libunwind for IA64 register stack.
+ (register_stack_extend): new function.
+ (stack_extend): make it self-recursive with
+ the stack position checking code in old rb_thread_restore_context.
+ (rb_thread_restore_context): just call stack_extend.
+ (flush_register_windows): removed.
+
+ [ruby-dev:28127]
+
+Tue Dec 27 14:09:39 2005 Minero Aoki <aamine@loveruby.net>
+
+ * process.c: new method Process.exec. [ruby-dev:28107]
+
+Tue Dec 27 08:22:15 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * ext/openssl/lib/openssl/ssl.rb (OpenSSL::SSL::SSLSocket#post_connection_check):
+ treat wildcard character in commonName. [ruby-dev:28121]
+
+Mon Dec 26 08:50:36 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (ev_const_get): fixed a bug in constant reference during
+ instance_eval. [yarv-dev:707]
+
+ * eval.c (ev_const_defined): ditto.
+
+ * lib/yaml.rb (YAML::add_domain_type): typo fixed. a patch from
+ Joel VanderWerf <vjoel at path.berkeley.edu>.
+ [ruby-talk:165285] [ruby-core:6995]
+
+Fri Dec 23 10:30:23 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ext/digest/sha2/sha2.c (ULL): support AIX C. a patch from
+ Kailden <kailden at gmail.com>. [ruby-core:06984]
+
+Wed Dec 21 16:47:35 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * file.c (w32_io_info): should return handle because FileIndex is
+ valid only while file is open. [ruby-dev:28088]
+
+Wed Dec 21 12:12:21 2005 Tanaka Akira <akr@m17n.org>
+
+ * test/pathname/test_pathname.rb (test_kernel_open): use
+ File.identical?.
+ [ruby-talk:171804]
+
+Tue Dec 20 22:41:17 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (eval_under_i): evaluate source in caller's frame.
+ [ruby-dev:28076]
+
+Tue Dec 20 12:53:23 2005 why the lucky stiff <why@ruby-lang.org>
+
+ * ext/syck/rubyext.c (syck_emitter_reset): to ensure compatibility
+ with previous Ruby versions, documents are no longer headless.
+
+Tue Dec 20 12:33:01 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * ext/syck/rubyext.c (syck_node_transform): ruby object holding
+ explicitly freed SyckNode caused SEGV. [ruby-dev:28067]
+
+ ... I think syck GC problem was solved now!
+
+Tue Dec 20 01:46:48 2005 Tanaka Akira <akr@m17n.org>
+
+ * io.c (rb_f_backquote): fix a GC problem on
+ IA64 with gcc 4.0.3 20051216 (prerelease) -O3.
+
+Mon Dec 19 23:32:39 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * Makefile.in (XCFLAGS): separated as well as win32/Makefile.sub.
+
+ * main.c (always_gc): dllimport is required for VC to import a DLL
+ symbol. fixed: [ruby-dev:28051]
+
+ * parse.y (rb_symname_p): fixed wrong validation. [ruby-dev:28047]
+
+Mon Dec 19 23:09:24 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * st.c: uses malloc instead of xmalloc to avoid GC. syck uses st_insert
+ in gram.c to insert node from rb_syck_bad_anchor_handler into
+ SyckParser's hash table. if GC occurs in st_insert, it's not under
+ SyckParser's mark system yet. so RString can be released wrongly.
+
+ * ext/syck/syck.h (S_FREE): small hack. no need to check if pointer is
+ NULL or not before S_FREE.
+
+ * ext/syck/rubyext.c (syck_parser_assign_io): rb_check_string_type can
+ return new RString. if so, it becomes unreachable from GC after
+ returns syck_parser_assign_io, and can be freed by GC. (dangling
+ in syck io system) so extends its life time till syck_parse is called.
+
+ * ext/syck/rubyext.c (syck_parser_s_alloc): always allocates bonus,
+ so no need to check if NULL, and "volatile VALUE hash"
+ is not needed. (bonus->port was not protected in syck_emitter_reset)
+
+ * ext/syck/rubyext.c (syck_mark_parser): ditto.
+
+ * ext/syck/rubyext.c (syck_parser_load): ditto.
+
+ * ext/syck/rubyext.c (syck_parser_load_documents): ditto.
+
+ * ext/syck/rubyext.c (syck_emitter_s_alloc): ditto.
+
+ * ext/syck/rubyext.c (syck_mark_emitter): ditto.
+
+ * ext/syck/rubyext.c (syck_emitter_reset): ditto.
+
+ * ext/syck/rubyext.c (syck_scalar_value_set): "should set newly
+ allocated memory instead of RString's internal storage" stuff again.
+ by this, should call syck_free_node instead of rb_syck_free_node.
+
+ * ext/syck/rubyext.c (syck_node_type_id_set): ditto.
+
+ ... I believe syck GC problem was solved by this.
+
+Mon Dec 19 12:20:59 2005 Tanaka Akira <akr@m17n.org>
+
+ * eval.c (FUNCTION_CALL_MAY_RETURN_TWICE): activate only
+ before gcc 4.0.3 on SPARC and IA64.
+
+Mon Dec 19 11:37:47 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * ext/syck/rubyext.c: sorry, I reverted my "should set newly
+ allocated memory instead of RString's internal storage" stuff.
+ node allocated in rubyext.c seems to be freed by rb_syck_free_node
+ not syck_free_node, and it won't free data.str->ptr and type_id.
+
+ (I still think this is unsafe because RString(foo)->ptr becomes
+ dangling pointer when RString is modified or freed, but anyway
+ I misunderstood, so go back to original code for now)
+
+Sat Dec 17 21:50:41 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * ext/syck/rubyext.c (syck_emitter_reset): should initialize
+ emitter->bonus->oid. otherwise rb_gc_mark crashes.
+
+ * ext/syck/rubyext.c (syck_mark_parser): should mark anchor nodes
+ because they hold ruby objects. (ie: rb_syck_bad_anchor_handler)
+
+Sat Dec 17 11:00:17 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ext/syck/rubyext.c (rb_syck_compile): avoid potential memory
+ leak.
+
+ * ext/syck/rubyext.c (syck_set_ivars): avoid potential memory
+ leak by explicit symbol allocation.
+
+Sat Dec 17 03:57:01 2005 Tanaka Akira <akr@m17n.org>
+
+ * bignum.c (rb_big_rshift): fix a GC problem on
+ IA64 with gcc 4.0.3 20051216 (prerelease).
+
+Sat Dec 17 03:30:23 2005 Tanaka Akira <akr@m17n.org>
+
+ * eval.c (bmcall): fix a GC problem by tail call on
+ IA64 with gcc 4.0.3 20051216 (prerelease).
+
+Fri Dec 16 17:53:45 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * ext/syck/rubyext.c (rb_syck_compile): fixed memory leak.
+
+ * ext/syck/rubyext.c: should protect global variable from GC.
+
+Fri Dec 16 11:44:43 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * ext/syck/rubyext.c (syck_resolver_tagurize): fixed memory leak.
+
+ * ext/syck/rubyext.c (syck_node_type_id_set): should set newly
+ allocated memory instead of RString's internal storage.
+
+ * ext/syck/rubyext.c (syck_scalar_value_set): ditto.
+
+ ... these fixes won't fix [ruby-dev:27839]. more work is needed.
+
+Fri Dec 16 04:38:55 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/delegate.rb (Delegator::method_missing): should delegate
+ block as well.
+
+Thu Dec 15 19:57:12 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/cgi.rb (CGI::QueryExtension::MorphingBody): fix criteria to
+ use Tempfile. A fix from Zev Blut <rubyzbibd at ubit.com>.
+ [ruby-core:06076]
+
+ * string.c: remove global functions work on $_.
+
+Thu Dec 15 12:35:14 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/tmpdir.rb: merged RDoc patch from Eric Hodel <drbrain at
+ segment7.net>. [ruby-core:06894]
+
+Thu Dec 15 01:33:31 2005 Tanaka Akira <akr@m17n.org>
+
+ * ext/zlib/zlib.c (zstream_run): fix a GC problem by tail call on
+ x86_64 with gcc 4.0.3 20051111 (prerelease) (Debian 4.0.2-4)
+
+Wed Dec 14 23:50:20 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/rdoc/parsers/parse_c.rb (find_class_comment): fix for class
+ document with prototypes. [ruby-core:06863]
+
+Wed Dec 14 23:39:53 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * dir.c (has_magic): glob names contain alphabets to enable case fold
+ search. [ruby-dev:27735]
+
+ * dir.c (Init_Dir): FNM_SYSCASE which is default case fold flag.
+ [ruby-dev:23296]
+
+Wed Dec 14 12:01:26 2005 Tanaka Akira <akr@m17n.org>
+
+ * marshal.c (r_object0): fix a GC problem for reading a bignum on
+ IA64 with gcc 3.3.5 (Debian 1:3.3.5-13).
+
+Tue Dec 13 12:23:47 2005 Tanaka Akira <akr@m17n.org>
+
+ * re.c (rb_reg_regcomp): fix a GC problem on x86_64 with
+ gcc 3.3.5 (Debian 1:3.3.5-13).
+
+Tue Dec 13 01:44:16 2005 Tanaka Akira <akr@m17n.org>
+
+ * array.c (rb_ary_diff): fix a GC problem on IA64 with
+ gcc 3.3.5 (Debian 1:3.3.5-13).
+ When rb_ary_push is called, there was no register which contains
+ `hash' but `&RHASH(hash)->tbl' instead.
+
+Tue Dec 13 00:08:09 2005 Tanaka Akira <akr@m17n.org>
+
+ * sprintf.c (rb_str_format): fix a GC problem.
+ [ruby-dev:28001]
+
+Mon Dec 12 15:51:22 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * test/openssl/test_ssl.rb (test_parallel): call GC.start to close
+ unused files. [ruby-dev:27981]
+
+Mon Dec 12 09:58:09 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * range.c (range_cover): new method Range#cover? added. the
+ method name might be changed. thanks to takano32 at
+ http://www.rubyist.net/~matz/20051210.html#c08 for name
+ suggestion. [ruby-talk:167182]
+
+Mon Dec 12 00:33:56 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ext/digest/digest.c (rb_digest_base_s_digest): add volatile to
+ protect temporary context object. [ruby-dev:27979]
+
+ * ext/iconv/iconv.c (Init_iconv): rb_gc_register_address() should
+ be called before actual variable initialization.
+ [ruby-dev:27986]
+
+Sun Dec 11 23:54:07 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/*: update to support libraries in ActiveTcl8.4.12.0
+ (see ext/tk/ChangeLog.tkextlib).
+
+ * ext/tk/sample/scrollframe.rb: add a new sample.
+
+Sun Dec 11 22:07:58 2005 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
+
+ * test/rinda/test_rinda.rb (test_remote_array_and_hash): pseudo remote
+ objects are protected against GC. [ruby-dev:27911]
+
+Sat Dec 10 01:06:06 2005 Keiju Ishitsuka <keiju@ruby-lang.org>
+
+ * lib/matrix.rb: add Matrix#determinant_e, Matrix#rank_e.
+ [ruby-dev:27820] and related thread.
+
+Sat Dec 10 00:31:42 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (calling_scope_t): gave names to magic numbers for rb_call().
+ [ruby-dev:27978]
+
+Fri Dec 9 23:31:02 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/rexml/encoding.rb (encoding=): give priority to particular
+ conversion to iconv. [ruby-core:06520]
+
+Fri Dec 9 23:16:51 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * range.c (range_include): return false unless included in numeric
+ range. fixed: [ruby-dev:27975]
+
+Thu Dec 8 02:07:19 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (umethod_bind): adjust invoking class for module method.
+ [ruby-dev:27964]
+
+Thu Dec 8 00:40:52 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (call_trace_func): klass parameter should be a
+ class/module that defines calling method. [ruby-talk:169307]
+
+Wed Dec 7 17:10:27 2005 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
+
+ * sprintf.c (rb_f_sprintf): [ruby-dev:27967]
+
+Wed Dec 7 16:39:18 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * range.c (range_include): use discrete membership for non Numeric
+ values, for example, String.
+
+ * numeric.c (num_scalar_p): new method. [ruby-dev:27936]
+
+ * lib/complex.rb (Complex#scalar?): ditto.
+
+Wed Dec 7 15:31:35 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * sprintf.c (rb_str_format): integer overflow check added.
+
+ * sprintf.c (GETASTER): ditto.
+
+Wed Dec 7 01:02:04 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/README.macosx-aqua: [new document] tips to avoid the known
+ bug on platform specific dialogs of Tcl/Tk Aqua on MacOS X.
+
+ * ext/tk/tcltklib.c: fix bug on switching threads and waiting on the
+ deleted interpreter on vwait and tkwait command.
+
+ * ext/tk/lib/multi-tk.rb: kill the meaningless loop for the deleted Tk
+ interpreter.
+
+ * ext/tk/sample/demos-jp/image3.rb: [bug fix] wrong argument.
+
+ * ext/tk/sample/demos-en/image3.rb: ditto.
+
+ * ext/tk/sample/demos-jp/menu.rb: fix message for MacOS X.
+
+ * ext/tk/sample/demos-jp/menu8x.rb: ditto.
+
+ * ext/tk/sample/demos-en/menu.rb: ditto.
+
+Tue Dec 6 16:48:40 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * gc.c (ruby_xmalloc2): change check condition for integer
+ overflow. [ruby-dev:27399]
+
+ * gc.c (ruby_xrealloc2): ditto.
+
+Tue Dec 6 16:37:57 2005 Yuya Nishida <yuya@j96.org>
+
+ * eval.c (exec_under): avoid accessing ruby_frame->prev.
+ [ruby-dev:27948]
+
+Fri Dec 2 19:06:06 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * dir.c (Compare): should not fold double byte alphabet on win9x.
+
+Thu Dec 1 00:50:33 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (rb_funcall2): allow to call protected methods.
+ fixed: [ruby-dev:27890]
+
+Wed Nov 30 23:52:17 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (struct parser_params): fields common to ripper must be
+ placed at each same offset.
+
+ * parse.y (NEWHEAP, ADD2HEAP): set count after pointer was set.
+ fixed: [ruby-dev:27896]
+
+Wed Nov 30 13:43:07 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * misc/ruby-mode.el (ruby-expr-beg): support $! at the end of
+ expression. [ruby-dev:27868]
+
+Tue Nov 29 23:57:05 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (struct parser_params): heap must be placed at same offset
+ also in ripper.y. fixed: [ruby-dev:27846]
+
+ * parse.y (yycompile): prevent vparser from tail call optimization.
+ fixed: [ruby-dev:27851]
+
+ * parse.y (parser_mark): value needs to be marked.
+ fixed: [ruby-dev:27845]
+
+Tue Nov 29 22:45:30 2005 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
+
+ * lib/drb/observer.rb (notify_observers): follow change of observer.rb.
+ fixed: [ruby-core:6796]
+
+Mon Nov 28 20:24:22 2005 Tanaka Akira <akr@m17n.org>
+
+ * lib/pp.rb (PP::PPMethods#object_address_group): mask an address with
+ word size.
+
+ * lib/pp.rb (PP::PPMethods#object_address_group): adjust address format.
+
+Mon Nov 28 18:55:22 2005 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * ext/socket/socket.c (init_inetsock_internal): remove setting
+ SO_REUSEADDR option on server socket on Cygwin.
+ fixed: [ruby-core:6765] ([ ruby-Bugs-2872 ])
+
+Mon Nov 28 13:11:45 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * win32/win32.c (rb_w32_strerror): remove all CR and LF. (avoid broken
+ error message on bccwin32 + winsock)
+
+Mon Nov 28 09:15:50 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * lib/mkmf.rb (create_makefile): should not change sodir with
+ dir.gsub!. (bccwin32 failed to install third party extensions)
+ [ruby-dev:27834]
+
+Sun Nov 27 05:37:20 2005 Tanaka Akira <akr@m17n.org>
+
+ * lib/pathname.rb: use File.basename to decompose pathnames.
+ experimental Windows support.
+
+Sun Nov 27 00:56:13 2005 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * lib/wsdl/xmlSchema/complexContent.rb: missing
+ ComplexContent#elementformdefault method.
+
+Sat Nov 26 19:57:45 2005 WATANABE Hirofumi <eban@ruby-lang.org>
+
+ * dln.c (conv_to_posix_path): should initialize posix.
+
+Fri Nov 25 20:34:56 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/xmlrpc/datetime.rb (DateTime::to_a): comparison with non
+ array-convertible object must return false.
+
+Fri Nov 25 14:34:09 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * range.c (range_max): treat end exclusion without iteration if
+ the end value is an integer. [ruby-talk:167433]
+
+Fri Nov 25 12:52:57 2005 Kouhei Sutou <kou@cozmixng.org>
+
+ * lib/rss/rss.rb: added backward compatibility codes.
+ * lib/rss/parser.rb: ditto.
+ * test/rss/test_parser.rb: ditto.
+ * test/rss/test_2.0.rb: ditto.
+
+ * test/rss/test_content.rb: use #__send__ instead of #funcall for
+ no private method.
+
+Fri Nov 25 12:39:56 2005 Kouhei Sutou <kou@cozmixng.org>
+
+ * lib/rss/rss.rb: improved type conversion.
+ * lib/rss/1.0.rb: ditto.
+ * lib/rss/0.9.rb: ditto.
+ * lib/rss/2.0.rb: ditto.
+ * lib/rss/image.rb: ditto.
+ * lib/rss/syndication.rb: ditto.
+
+ * test/rss/test_2.0.rb: added type conversion tests.
+ * test/rss/test_accessor.rb: ditto.
+ * test/rss/test_to_s.rb: ditto.
+ * test/rss/test_syndication.rb: ditto.
+ * test/rss/test_setup_maker_2.0.rb: ditto.
+ * test/rss/test_setup_maker_1.0.rb: ditto.
+ * test/rss/test_setup_maker_0.9.rb: ditto.
+ * test/rss/test_maker_sy.rb: ditto.
+ * test/rss/test_maker_image.rb: ditto.
+ * test/rss/test_maker_2.0.rb: ditto.
+ * test/rss/test_maker_0.9.rb: ditto.
+ * test/rss/test_image.rb: ditto.
+
+ * test/rss/test_maker_1.0.rb: use assert instead of assert_equal.
+
+ * test/rss/rss-assertions.rb: improved type conversion assertions.
+
+Fri Nov 25 10:38:20 2005 Kouhei Sutou <kou@cozmixng.org>
+
+ * lib/rss/image.rb: added Image prefix.
+
+ * lib/rss/maker/image.rb: ditto.
+
+Fri Nov 25 10:33:02 2005 Kouhei Sutou <kou@cozmixng.org>
+
+ * test/rss/test_2.0.rb: added RSS 2.0 tests.
+
+ * test/rss/rss-assertions.rb: extended XML stylesheet assertion.
+
+ * lib/rss/0.9.rb: added initialize method.
+
+ * test/rss/test_1.0.rb: cleanup.
+
+Fri Nov 25 10:29:48 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * range.c (range_min): use <=> comparison rather than iteration.
+ [ruby-talk:167420]
+
+ * range.c (range_max): ditto.
+
+Thu Nov 24 01:31:44 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * file.c (w32_io_info): CreateFile failed on Win9x if file was already
+ opened. (FILE_SHARE_READ was needed, but actually I don't understand
+ the flags of CreateFile well...)
+
+Wed Nov 23 23:52:35 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * numeric.c (num_div): use floor rather than rb_Integer().
+ [ruby-dev:27674]
+
+Wed Nov 23 22:34:15 2005 Kouhei Sutou <kou@cozmixng.org>
+
+ * lib/rss/parser.rb: added entity handling type predicate.
+ * lib/rss/rexmlparser.rb: ditto.
+ * lib/rss/xmlparser.rb: ditto.
+ * lib/rss/xmlscanner.rb: ditto.
+
+ * lib/rss/xmlscanner.rb: more robust entity handling.
+
+ * test/rss/test_parser.rb: added an entity handling test.
+
+Wed Nov 23 20:59:01 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/tk.rb: add Tk.pkgconfig_list and Tk.pkgconfig_get
+ [Tk8.5 feature].
+
+ * ext/tk/lib/tk/text.rb: supports new indices modifiers on a Text
+ widget [Tk8.5 feature].
+
+ * ext/tk/lib/tk/virtevent.rb: add TkNamedVirtualEvent.
+
+ * ext/tk/lib/tk/autoload.rb: ditto.
+
+ * ext/tk/lib/tk/event.rb: add :data key for virtual events [Tk8.5
+ feature].
+
+Wed Nov 23 18:52:45 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * file.c (w32_io_info): should not call GetFileInformationByHandle
+ for pipe.
+
+ * file.c (w32_io_info): checks return value from rb_w32_get_osfhandle.
+
+ * file.c (w32_io_info): now can identify directory on WinNT.
+
+Wed Nov 23 18:46:53 2005 Kouhei Sutou <kou@cozmixng.org>
+
+ * lib/rss/: use #__send__ instead of #send.
+ * test/rss/: ditto.
+
+Wed Nov 23 18:32:56 2005 Kouhei Sutou <kou@cozmixng.org>
+
+ * test/rss/test_taxonomy.rb: use #reject directory.
+
+Wed Nov 23 18:26:00 2005 Kouhei Sutou <kou@cozmixng.org>
+
+ * lib/rss/taxonomy.rb: changed class or module prefix to
+ Taxonomy from Taxo.
+ * lib/rss/maker/taxonomy.rb: ditto.
+
+Wed Nov 23 18:21:11 2005 Kouhei Sutou <kou@cozmixng.org>
+
+ * lib/rss/maker/taxonomy.rb: implemented taxonomy module for RSS
+ Maker.
+ * lib/rss/taxonomy.rb: supported RSS Maker.
+ * lib/rss/maker.rb: added taxonomy module support.
+
+ * lib/rss/rss.rb: adjusted to other element API.
+ * lib/rss/1.0.rb: adjusted to other element API but backward
+ compatibility is reserved.
+ * lib/rss/0.9.rb: ditto.
+
+ * test/rss/test_maker_taxo.rb: added test case for taxonomy module
+ for RSS Maker.
+ * test/rss/test_setup_maker_1.0.rb: added tests for taxo:topic.
+
+ * test/rss/test_setup_maker_1.0.rb: added backward compatibility
+ test.
+ * test/rss/test_setup_maker_0.9.rb: ditto.
+ * test/rss/test_setup_maker_2.0.rb: ditto.
+
+ * test/rss/rss-testcase.rb: added convenience method for setting
+ up taxo:topic.
+ * test/rss/rss-assertions.rb: added assertion for taxo:topic.
+
+ * sample/rss/blend.rb: followed new API.
+
+Wed Nov 23 17:42:24 2005 Kouhei Sutou <kou@cozmixng.org>
+
+ * lib/rss/rss.rb: fixed a indentation bug.
+
+ * lib/rss/taxonomy.rb: fixed <taxo:topic> #to_s bug.
+
+ * test/rss/test_taxonomy.rb: added a #to_s test.
+
+Wed Nov 23 03:40:49 2005 Guy Decoux <ts@moulon.inra.fr>
+
+ * re.c (KR_REHASH): should cast to unsigned for 64bit CPU.
+ [ruby-core:06721]
+
+Wed Nov 23 07:26:44 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * ext/openssl/extconf.rb: check for X509V3_EXT_nconf_nid.
+
+ * ext/openssl/ossl_x509ext.c (MakeX509ExtFactory): should use
+ OPENSSL_malloc to allocate X509V3_CTX.
+
+ * ext/openssl/ossl_x509ext.c (ossl_x509extfactory_create_ext): use
+ X509V3_EXT_nconf_nid to avoid SEGV (and to build extensions which
+ values are placed in separate section).
+
+ * test/openssl/test_x509ext.rb: new file.
+
+Wed Nov 23 01:22:57 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * file.c (test_identical): test if two files are identical.
+
+ * file.c (rb_f_test): support DOSISH systems where st_ino is not
+ reliable. fixed: [ruby-core:06672]
+
+ * win32.h, win32.c (rb_w32_osid): check the running platform.
+
+Tue Nov 22 23:52:06 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/optparse.rb: match incomplete (in current enconding) multibyte
+ string. http://inamode6.tokuhirom.dnsalias.org/show/1551
+
+Tue Nov 22 18:36:11 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * win32/win32.c (winnt_stat): set mapped errno instead of ENOENT.
+
+Tue Nov 22 14:36:54 2005 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * file.c (rb_file_s_basename): skip slashes just after UNC top slashes.
+
+ * test/ruby/test_path.rb (test_dirname, test_basename): follow new
+ spec. and add new tests.
+
+Tue Nov 22 13:30:15 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * win32/win32.c (rb_w32_stat): Dir.chdir('//server/shared');
+ p Dir.glob('*') should work on WinNT. (implemented our own
+ stat(2) on WinNT) [ruby-list:41552] [ruby-dev:27711]
+
+Tue Nov 22 02:31:53 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/tkextlib/tile.rb: bug fix (Tk::Tile::USE_TTK_NAMESPACE
+ is not defined).
+
+Tue Nov 22 01:45:21 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * file.c (rb_file_s_basename): DOSISH_UNC is defined on cygwin but
+ DOSISH is not. fixed: [ruby-dev:27797]
+
+Mon Nov 21 22:50:48 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * file.c (rb_path_skip_prefix, rb_file_s_basename): UNC without path
+ should not be splitted. fixed: [ruby-dev:27776] [ruby-dev:27786]
+
+ * parse.y (dsym): prohibit empty symbol literal by interpolation.
+ fixed: [ruby-talk:166529]
+
+Mon Nov 21 16:03:48 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * win32/setup.mk: findstr doesn't exist on win9x.
+ fixed: [ruby-dev:27756]
+
+Sun Nov 20 21:39:27 2005 K.Kosako <sndgk393 AT ybb.ne.jp>
+
+ * regparse.c (fetch_token_in_cc): tok->escaped should be
+ initialized. [ruby-dev:27763]
+
+Sun Nov 20 22:34:06 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (rb_symname_p): [ not followed by ] is not valid symbol.
+ fixed: [ruby-talk:166520]
+
+Sat Nov 19 19:57:54 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/fileutils.rb (FileUtils::ln): ln documentation fix.
+ [ruby-core:06661]
+
+Sat Nov 19 08:19:38 2005 Zach Dennis <zdennis@mktec.com>
+
+ * ext/socket/socket.c: Socket Documentation. [ruby-core:6552]
+
+Sat Nov 19 07:34:32 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/tk/font.rb: remove dependency on Ruby's version (1.8
+ or 1.9).
+
+ * ext/tk/lib/tkextlib/ICONS/icons.rb: ditto.
+
+ * ext/tk/sample/tkextlib/treectrl/demo.rb: ditto.
+
+Fri Nov 18 18:07:05 2005 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * file.c (rb_file_s_dirname): should use skipprefix for UNC path.
+ pointed out by nobu ([ruby-dev:27744]). fixed: [ruby-core:5076]
+
+Fri Nov 18 17:35:09 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/multi-tk.rb: add restriction to access the entried
+ command table and manipulate other IPs (for reason of security).
+ Now, a IP object can be controlled by only its master IP or the
+ default IP.
+
+ * ext/tk/lib/remote-tk.rb: add restriction to manipulate.
+
+ * ext/tk/tcltklib.c (ip_is_slave_of_p): add TclTkIp#slave_of?(ip)
+ to check manipulability.
+
+ * ext/tk/lib/tk.rb: bug fix on handling of Tcl's namespaces.
+
+ * ext/tk/lib/tk/namespace.rb: ditto.
+
+Fri Nov 18 16:47:33 2005 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * file.c (rb_file_s_dirname): added checks for some patterns with drive
+ letter. fixed: [ruby-dev:27738]
+
+ * test/ruby/test_path.rb (test_dirname): added tests for above
+ patterns.
+
+Fri Nov 18 12:19:16 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * win32/win32.h (S_IFIFO): r,w = IO.pipe; r.stat.pipe? now
+ returns true on VisualC++6.
+
+Thu Nov 17 17:58:00 2005 Kouhei Sutou <kou@cozmixng.org>
+
+ * lib/rss/1.0.rb: added convenience method 'resources'.
+
+ * lib/rss/taxonomy.rb: ditto.
+
+ * test/rss/rss-assertions.rb: added test for 'resources'.
+
+ * test/rss/test_taxonomy.rb: ditto.
+
+Thu Nov 17 17:53:30 2005 Kouhei Sutou <kou@cozmixng.org>
+
+ * lib/rss/taxonomy.rb: implemented taxonomy module.
+
+ * test/rss/test_taxonomy.rb: added tests for taxonomy support.
+
+Thu Nov 17 17:40:19 2005 Kouhei Sutou <kou@cozmixng.org>
+
+ * lib/rss/1.0.rb: added rdf:Bag.
+
+Thu Nov 17 13:52:00 2005 Kouhei Sutou <kou@cozmixng.org>
+
+ * lib/rss/rss.rb: removed needless argument 'prefix'.
+
+ * lib/rss/parser.rb: ditto.
+
+Wed Nov 16 23:24:17 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * common.mk (static-ruby): overridable.
+
+ * ext/extmk.rb (parse_args): force to link extensions statically only
+ if static is given for extstatic.
+
+ * ext/extmk.rb (RUBY, RUBYW): overridable.
+
+Wed Nov 16 01:29:31 2005 Kouhei Sutou <kou@cozmixng.org>
+
+ * lib/rss/trackback.rb: added TrackBack prefix.
+
+ * lib/rss/maker/trackback.rb: ditto.
+
+Wed Nov 16 01:26:13 2005 Kouhei Sutou <kou@cozmixng.org>
+
+ * lib/rss/rss.rb (RSS::VERSION): 0.1.5 -> 0.1.6.
+
+ * test/rss/test_version.rb (RSS::TestVersion#test_version): ditto.
+
+Tue Nov 15 23:54:24 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * file.c (file_load_ok): eaccess() returns 0 on success.
+ fixed: [ruby-dev:27713]
+
+Tue Nov 15 16:36:03 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * array.c (rb_ary_fill): previous commit disabled this usage:
+
+ a = [0,1,2,3,4,5,6,7,8,9]
+ a.fill {|i| a[i] * 10} #=> [nil, nil, ...., nil]
+
+ previous commit has the advantage of early garbage collection, but
+ potentially this would break some script. so I reverted behavior.
+
+Tue Nov 15 16:15:23 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * file.c (file_load_ok): use eaccess() instead of actually opening
+ the file. [ruby-talk:156378]
+
+ * lib/jcode.rb (String::reverse): add new methods.
+ [ruby-list:41245]
+
+Tue Nov 15 15:49:34 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * array.c (rb_ary_fill): tail elements were vanished when the middle
+ part of array was filled. (ie: [0,1,2,3,4].fill(-1,2,1) => [0,1,-1])
+
+ * test/ruby/test_array.rb (test_fill): added.
+
+Tue Nov 15 14:39:16 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * array.c (rb_ary_fill): should adjust array length correctly when
+ an array is expanded in the fill process. [ruby-core:06625]
+
+Mon Nov 14 23:49:57 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * file.c (rb_file_s_readlink): ERANGE will occur only on GPFS.
+ [ruby-dev:27699]
+
+Mon Nov 14 17:36:22 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * array.c (rb_ary_first): RDoc update from Daniel Berger
+ <djberg96@yahoo.com>. [ruby-core:06577].
+
+Sun Nov 13 10:55:24 2005 Minero Aoki <aamine@loveruby.net>
+
+ * lib/uri/common.rb (escape): regard second argument as a
+ character set. [ruby-dev:27692]
+
+Sat Nov 12 08:36:40 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in, eval.c, intern.h: check fd_mask type.
+
+ * configure.in (socketpair): need to be checked.
+
+Fri Nov 11 19:53:47 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * eval.c, intern.h: failed to compile where NFDBITS is defined but
+ howmany() is not defined. [ruby-dev:27680]
+
+ * io.c (is_socket): failed to compile where S_ISSOCK is not defined.
+
+ * io.c (pipe_open): failed to compile where socketpair is not supported.
+
+Fri Nov 11 08:20:56 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * Makefile.in (OUTFLAG): keep trailing spaces. [ruby-dev:27666]
+
+ * mkconfig.rb: substitution references added.
+
+Fri Nov 11 07:39:49 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * configure.in: undef HAVE_LINK on BeOS. (link(2) always returns
+ EINVAL, and this causes error in test/fileutils.)
+
+ * file.c: override chown(2) and fchown(2) on BeOS. (these functions
+ should not change user/group id if -1 is passed as corresponding
+ argument, and this causes error in test/fileutils too)
+ [ruby-dev:27672]
+
+Thu Nov 10 21:05:03 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/shellwords.rb: fix for blank but not empty string.
+ fixed: [ruby-dev:27663]
+
+Wed Nov 9 08:39:38 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/shellwords.rb: refactored. [ruby-core:06581]
+
+Tue Nov 8 17:35:53 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * intern.h, eval.c (rb_thread_signal_raise): constified.
+
+ * signal.c: cosmetic change.
+
+Tue Nov 8 15:32:27 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * lib/drb/ssl.rb (DRb::SSLConfig#accept): fixed typo.
+ [ruby-dev:27560] [ruby-core:4627]
+
+Mon Nov 7 20:54:57 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/iconv/iconv.c: iconvctl() support. [EXPERIMENTAL]
+
+Mon Nov 7 16:23:23 2005 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * ext/openssl/ossl.h: need to include winsock2.h before including
+ windows.h by some openssl headers.
+
+Mon Nov 7 13:43:51 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/stubs.c (_nativethread_consistency_check): use simpler
+ (low cost) way to check whether the Tcl interpreter was compiled
+ with threads enabled of not.
+
+ * ext/tk/tcltklib.c: reduce warnings.
+
+ * ext/tk/tkutil/tkutil.c: ditto.
+
+Mon Nov 7 00:06:12 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * lib/yaml.rb: removed :nodoc: to generate Kernel doc. [ruby-core:6324]
+
+Sun Nov 6 23:39:13 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/iconv/iconv.c (Iconv::BrokenLibrary): exception when detected a
+ bug of underlying library.
+
+Sun Nov 6 21:43:22 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * ext/tk/stubs.c (ruby_tcl_create_ip_and_stubs_init): should touch
+ interpreter after initialization is done. [ruby-dev:27638]
+
+Sun Nov 6 20:13:27 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * file.c (rb_file_s_readlink): readlink(2) on AIX fails with ERANGE if
+ buffer size is less than required. fixed: [ruby-dev:27634]
+
+Sat Nov 5 13:42:50 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in, cygwin/GNUmakefile.in (mingw): use def file to alias
+ symbols. [ruby-dev:27532]
+
+ * bcc32/mkexports.rb, win32/mkexports.rb: make aliases in DLL.
+
+ * win32/win32.c, win32/win32.h: replace symbols only when RUBY_EXPORT
+ is defined.
+
+Thu Nov 3 07:57:39 2005 Minero Aoki <aamine@loveruby.net>
+
+ * lib/open-uri.rb (open_loop): find_proxy should return nil when
+ proxy does not exist. [ruby-dev:27630]
+
+Wed Nov 2 20:25:28 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/extconf.rb: ext/tk/extconf.rb: change the check parameter
+ for Win32.
+
+Wed Nov 2 19:03:06 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/tcltklib.c (ip_rbUpdateObjCmd, ip_rb_threadUpdateObjCmd):
+ passed improper flags to DoOneEvent().
+
+ * ext/tk/tkutil/tkutil.c: use rb_obj_respond_to() instead of
+ rb_respond_to().
+
+Tue Nov 1 14:20:11 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (rb_call_super): should call method_missing if super is
+ called from Kernel method.
+
+ * eval.c (exec_under): frame during eval should preserve external
+ information.
+
+Tue Nov 1 10:48:49 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * ext/openssl/extconf.rb: should check ERR_peek_last_error().
+ [ruby-dev:27597]
+
+ * ext/openssl/ossl.c (ossl_raise): ditto.
+
+Mon Oct 31 17:34:46 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * configure.in: use proper option for Sun linker. A patch from
+ Shinya Kuwamura <kuwa at labs.fujitsu.com>. [ruby-dev:27603]
+
+Mon Oct 31 05:46:08 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * ext/openssl/ossl_cipher.c (ossl_cipher_update): input data must
+ not be empty. [ruby-talk:161220]
+
+ * test/openssl/test_cipher.rb: add test for Cipher#update("").
+
+Mon Oct 31 05:38:26 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * lib/webrick/httpservlet/cgihandler.rb
+ (WEBrick::HTTPServlet::CGIHandler#do_GET): the value of Set-Cookie:
+ header field should be splited into each cookie. [ruby-Bugs:2199]
+
+ * lib/webrick/cookie.rb (WEBrick::Cookie.parse_set_cookie): new method
+ to parse the value of Set-Cookie: header field.
+
+ * test/webrick/test_cookie.rb, test/webrick/test_cgi.rb,
+ test/webrick/webrick.cgi: add some test for cookie.
+
+Mon Oct 31 02:33:25 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * numeric.c (fix_rshift): RDoc fix. [ruby-core:6351]
+
+ * util.h (strtod): add #undef for platforms defines strtod()
+ macro. [ruby-dev:27563]
+
+Mon Oct 31 02:31:41 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * test/ruby/test_float.rb (test_precision): test by assert_in_delta.
+ [ruby-dev:27575]
+
+Sat Oct 29 01:58:25 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ext/etc/etc.c: document update from mathew <meta@pobox.com>.
+ [ruby-core:06473]
+
+ * ext/fcntl/fcntl.c: ditto.
+
+Sat Oct 29 16:56:03 2005 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * lib/date.rb: added seven predicates sunday? to saturday?.
+
+ * lib/date.rb: added two methods {prev,next}_month,
+ that are almost same as << and >>.
+
+Thu Oct 27 20:34:43 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * enumerator.c (enumerator_allocate): allow subclassing.
+
+Thu Oct 27 16:45:31 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (scan_once): wrong condition to use mbclen2().
+ [ruby-dev:27535]
+
+Thu Oct 27 11:53:17 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * missing.h, missing/memcmp.c, missing/memmove.c:
+ ANSI compatible interface.
+
+Wed Oct 26 09:15:48 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * ext/syck/implicit.c (syck_type_id_to_uri): should return
+ newly allocated memory. otherwise, type_id will be freed
+ twice. [ruby-dev:27384] [ruby-core:6385]
+
+Wed Oct 26 01:58:19 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (RUBY_EXTERN): macro to export symbols in shared
+ library. [ruby-core:05528]
+
+ * defines.h, {bcc32,win32,wince}/Makefile.sub (RUBY_EXTERN): moved to
+ configuration pass.
+
+ * ext/extmk.rb (extmake): RUBY_EXTERN for static linked extensions.
+
+Tue Oct 25 20:06:59 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * ruby.h (Qfalse, Qtrue, Qnil, Qundef): make sure these immediate
+ values have VALUE type. there is an environment where sizeof(VALUE)
+ != sizeof(int) like IA64. if 32bit integer (Qtrue) is passed to ANYARGS
+ and received by 64bit integer (VALUE), upper bits may have garbage value.
+ [ruby-dev:27513]
+
+Tue Oct 25 15:32:00 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/rational.rb: applied documentation patch from Gavin Sinclair
+ <gsinclair@gmail.com>. [ruby-core:06364]
+
+ * lib/irb.rb (IRB::Irb::eval_input): handle prompts with newlines
+ in irb auto-indentation mode. [ruby-core:06358]
+
+Tue Oct 25 14:21:46 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * gc.c (garbage_collect): sorry, previous commit was incorrect.
+ [ruby-core:6386]
+
+Tue Oct 25 13:40:16 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * gc.c (garbage_collect): return now whether there're rooms for new
+ objects, rather than whether GC run. fixed: [ruby-core:6376]
+
+Tue Oct 25 02:12:08 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/rdoc/markup/simple_markup.rb (SM::SimpleMarkup::LABEL_LIST_RE):
+ reduce redundant backtrack. [ruby-talk:161771]
+
+Tue Oct 25 00:35:33 2005 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
+
+ * lib/rinda/*: RDoc documentation from Eric Hodel
+ <drbrain@segment7.net> added.
+
+Mon Oct 24 21:14:29 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in, io.c: use sys/syscall.h if syscall.h is not available.
+ [ruby-core:06247]
+
+Mon Oct 24 20:38:25 2005 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * ext/Win32API/lib/win32/resolv.rb (get_info): support multiple DNS.
+ fixed: [ruby-list:40058], [ruby-dev:27479]
+
+Mon Oct 24 11:01:11 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/tk/canvas.rb (TkCanvasItemConfig::__item_val2ruby_optkeys):
+ typo fixed. [ruby-talk:162187]
+
+ * ext/tk/lib/tk/menu.rb (TkMenuEntryConfig::__item_val2ruby_optkeys):
+ ditto. [ruby-core:06359]
+
+Mon Oct 24 07:57:56 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ext/tk/lib/tk/canvas.rb (TkCanvasItemConfig::__item_val2ruby_optkeys):
+ typo fixed. [ruby-talk:162187]
+
+ * ext/tk/lib/tk/menu.rb (TkMenuEntryConfig::__item_val2ruby_optkeys):
+ ditto. [ruby-core:06359]
+
+ * lib/matrix.rb (Matrix::initialize): use funcall instead of send
+ to allow private methods to be called. A report from
+ Jean-Claude Arbaut <jcarbaut@laposte.net>. [ruby-core:06359]
+
+Mon Oct 24 00:41:18 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * time.c (time_sunday): added predicate methods for the days of the
+ week. [ruby-list:41340]
+
+Sun Oct 23 07:11:11 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/extconf.rb: improve messages [ruby-core:06325].
+
+ * ext/tk/lib/tk.rb, ext/tk/lib/tk/canvas.rb, ext/tk/lib/tk/entry.rb,
+ ext/tk/lib/tk/frame.rb, ext/tk/lib/tk/image.rb,
+ ext/tk/lib/tk/itemconfig.rb, ext/tk/lib/tk/labelframe.rb,
+ ext/tk/lib/tk/listbox.rb, ext/tk/lib/tk/menu.rb,
+ ext/tk/lib/tk/radiobutton.rb, ext/tk/lib/tk/scale.rb,
+ ext/tk/lib/tk/spinbox.rb, ext/tk/lib/tk/text.rb,
+ ext/tk/lib/tk/toplevel.rb: improve conversion of option values.
+
+ * ext/tk/lib/tkextlib/*: ditto.
+
+ * ext/tk/lib/tkextlib/*: update to support ActiveTcl8.4.11.2.
+
+ * ext/tk/lib/tkextlib/trofs/*: support Trofs 0.4.3.
+
+ * ext/tk/lib/tkextlib/tile/*: support Tile 0.7.2.
+
+ * ext/tk/lib/tkextlib/vu/*: support vu 2.3.0.
+
+ * ext/tk/lib/tkextlib/tcllib/*: support Tcllib 1.8 (Tklib 0.3).
+
+Sat Oct 22 23:54:07 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/extmk.rb, lib/mkmf.rb (with_config): support --with-extension
+ options. [ruby-dev:27449]
+
+Sat Oct 22 14:25:43 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * util.[hc] (ruby_add_suffix): constified.
+
+ * util.[hc] (ruby_scan_{oct,hex}): fixed typo. (renamed from
+ scan_{oct,hex})
+
+ * util.c: almostly ANSI styled. (except for functions depending on
+ macro and K&R technique)
+
+Sat Oct 22 13:26:57 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * object.c (sym_inspect), parse.y (parser_yylex, rb_symname_p): check
+ if valid as a symbol name more strictly. [ruby-dev:27478]
+
+ * test/ruby/test_symbol.rb: tests for [ruby-core:03573].
+
+ * time.c (rb_strftime): removed meaningless volatile modifiers, and
+ concatenate successive nul characters at once. [ruby-dev:27472]
+
+ * ext/tk/lib/tk/font.rb, ext/tk/lib/tkextlib/ICONS/icons.rb,
+ ext/tk/sample/tkextlib/treectrl/demo.rb, lib/net/imap.rb,
+ lib/rss/parser.rb, test/rss/test_content.rb,
+ test/rss/test_dublincore.rb, test/rss/test_syndication.rb,
+ test/rss/test_trackback.rb, test/ruby/test_eval.rb,
+ test/socket/test_socket.rb, test/socket/test_udp.rb:
+ Object#fcall was renamed as Object#funcall.
+
+Sat Oct 22 10:08:28 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * missing.h, missing/*.c: SUSv3 compatible strcasecmp and strncasecmp,
+ ANSI compatible strtol and strtoul, and ANSI styled other functions.
+
+Fri Oct 21 19:16:08 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * rubysig.h (CHECK_INTS): fixed typo. (I believe bit-or is improper)
+
+Fri Oct 21 17:49:32 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * bin/erb (ERB::Main::run): typo fixed. [ruby-core:06337]
+
+Fri Oct 21 15:42:28 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * intern.h, struct.c (rb_struct_iv_get): constified.
+
+ * marshal.c: avoid one VC++6 warning for implicit conversion
+ from int to char.
+
+ * ruby.h: ANSI styled.
+
+ * bcc32/Makefile.sub (HAVE_HYPOT): added.
+
+ * ext/socket/extconf.rb: BeOS is only one platform should call
+ closesocket, so check __BEOS__ macro directly. (I was worried
+ accidently HAVE_CLOSESOCKET is defined on windows again because
+ it has it)
+
+ * ext/socket/{getaddrinfo.c,socket.c}: ditto.
+
+ ... these are all cosmetic changes.
+
+Fri Oct 21 15:23:23 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * bignum.c (bignew_1): convertion from `int' to `char' discards
+ upper bits, (ie. (char)0xff00 -> 0) so it's better to test if
+ nonzero and set 0 or 1 instead of simply casting ... as a flag usage.
+ (but I believe this won't cause actual bug in current implementation)
+ [ruby-dev:27055]
+
+ * time.c: should use LONG_LONG instead of `long long'.
+
+Thu Oct 20 22:22:49 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parser.y (struct parser_params): parser never modify input string.
+
+ * ext/ripper/tools/preproc.rb (prelude): do not append surplus
+ newlines to fix line numbers.
+
+Thu Oct 20 11:41:57 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * class.c, eval.c, hash.c, st.c, variable.c: changed /* ??? */ stuff
+ protoize generated to ANYARGS.
+
+Thu Oct 20 11:18:11 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * eval.c, file.c, ruby.c: removed strchr, strrchr, strstr definition
+ because they are defined in missing.h.
+
+ * missing.h, missing/strchr.c, missing/strstr.c: ANSI styled.
+
+Thu Oct 20 09:36:06 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * lib/mkmf.rb (create_makefile): Borland make seems not to allow
+ empty dependency list. If this change is not good, please correct
+ it.
+
+Thu Oct 20 07:55:09 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/mkmf.rb (create_makefile): get rid of a restriction
+ of Borland make. fixed: [ruby-dev:27460]
+
+ * ext/ripper/depend: ditto.
+
+Wed Oct 19 23:58:03 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/mkmf.rb (create_makefile): do not create unnecessary empty
+ directories. fixed: [ruby-dev:27451]
+
+Wed Oct 19 08:28:32 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * file.c (rb_file_join): elements may contain null pointer strings.
+ report and fixed by Lloyd Zusman (hippoman): [ruby-core:06326]
+
+Wed Oct 19 02:34:33 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * enumerator.c, eval.c, gc.c, parse.y, regparse.c, sjis.c, time.c:
+ made internal symbols static. [ruby-dev:27435]
+
+Tue Oct 18 10:58:27 2005 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * ext/dl/depend, ext/dl/extconf.rb, ext/socket/depend,
+ ext/socket/extconf.rb: shouldn't define DESTCLEANFILES in depend,
+ use $distcleanfiles in extconf.rb.
+
+ * win32/Makefile.sub (distclean-local): should remove .config.h.time.
+
+Mon Oct 17 09:42:50 2005 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * mkconfig.rb: fixup configure_args for mswin32 configure.
+
+ * win32/configure.bat (srcdir, target): ditto.
+
+Mon Oct 17 05:01:50 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * env.h: move struct METHOD and struct BLOCK from eval.c to
+ support NodeWrap and ParseTree.
+
+Sun Oct 16 22:16:51 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/extmk.rb: omit non-existing directories.
+
+Sun Oct 16 14:40:54 2005 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
+
+ * lib/rinda/rinda.rb (Rinda::Tuple#initialize): check remote hash
+ tuple. fixed: [ruby-list:41227]
+
+ * test/rinda/test_rinda.rb: test it.
+
+Sun Oct 16 03:38:07 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * rubysig.h (CHECK_INTS): prevent signal handler to run during
+ critical section. [ruby-core:04039]
+
+ * eval.c (load_wait): need not to call rb_thread_schedule()
+ explicitly. [ruby-core:04039]
+
+ * eval.c (rb_thread_schedule): clear rb_thread_critical.
+ [ruby-core:04039]
+
+Sun Oct 16 00:13:14 2005 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/configure.bat: remove unnecessary line which prevents
+ creating Makefile.
+
+Sat Oct 15 23:52:07 2005 Shugo Maeda <shugo@ruby-lang.org>
+
+ * lib/net/ftp.rb: (getbinaryfile): allow nil for localfile, and
+ returns retrieved data if localfile is nil.
+
+ * lib/net/ftp.rb: (gettextfile): ditto.
+
+Sat Oct 15 19:51:29 2005 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
+
+ * bin/erb: typo fixed, again. thanks, Doug Kearns.
+
+Fri Oct 14 23:09:31 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * win32/Makefile.sub (MKFILES): update MKFILES if configure files get
+ changed.
+
+ * win32/configure.bat, win32/setup.mak (configure_args): store
+ arguments to configure files.
+
+Fri Oct 14 22:05:45 2005 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/win32.c (ioctl): should set errno.
+
+Fri Oct 14 16:39:37 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * lib/webrick/config.rb (Config::FileHandler): :UserDir should be nil.
+ It is harmful to permit the access to ~/public_html by default.
+ suggested by Hiroyuki Iwatsuki.
+
+Fri Oct 14 04:58:38 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (rb_obj_instance_exec): create instance_exec and
+ module_exec which pass arguments to the block.
+
+ * eval.c (rb_f_funcall): rename fcall to funcall to follow
+ tradition.
+
+Thu Oct 13 23:29:51 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (HEAPCNT): bison allocates indivisible size.
+ fixed: [ruby-core:06261]
+
+ * io.c, pack.c, ext/syck/rubyext.c, ext/syck/syck.h, missing/isinf.c:
+ get rid of warnings. fixed: [ruby-core:06247]
+
+Wed Oct 12 12:51:56 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * ext/openssl/ossl.c (Init_openssl): should call
+ OpenSSL_add_ssl_algorithms().
+
+Wed Oct 12 11:08:54 2005 WATANABE Hirofumi <eban@ruby-lang.org>
+
+ * file.c (rb_f_test): typo in RDoc comments.
+
+Tue Oct 11 21:41:58 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (RUBY_FUNC_ATTRIBUTE): check prefixed attribute form
+ first. [ruby-dev:27398]
+
+ * array.c, enum.c, eval.c, util.c: safer function pointer usage.
+ fixed: [ruby-core:06143]
+
+ * util.h (qsort): removed the definition incompatible to ANSI.
+ fixed: [ruby-core:06147]
+
+ * eval.c (rb_obj_respond_to): check if obj responds to the given
+ method with the given visibility. [ruby-dev:27408]
+
+ * eval.c (rb_respond_to): conform to Object#respond_to?. [ruby-dev:27411]
+
+Tue Oct 11 00:01:21 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * st.c (st_free_table): do not call free() but xfree().
+ [ruby-core:06205]
+
+Sat Oct 8 19:49:42 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (Init_Binding): add Binding#dup method. [yarv-dev:666]
+
+ * io.c (rb_io_init_copy): clear PREP flag for copied IO.
+ fixed: [ruby-dev:27371]
+
+ * parse.y (rb_parser_malloc, rb_parser_free): manage parser stack on
+ heap. [ruby-list:41199]
+
+ * parse.y (ripper_initialize): use rb_respond_to().
+
+ * ext/ripper/depend (check): get rid of re-generating ripper.y always.
+
+ * ext/iconv/charset_alias.rb: parse config.charset_alias file directly.
+
+ * ext/nkf/lib/kconv.rb (Kconv.conv): get rid of nil.to_a.
+
+ * lib/scanf.rb (Scanf::FormatSpecifier#letter, #width): use matched
+ substring directly.
+
+ * test/ruby/test_assignment.rb, test/ruby/test_iterator.rb: followed
+ change of sample/test.rb.
+
+ * test/net/http/test_http.rb: removed superfluous splatting stars.
+
+Fri Oct 7 16:41:43 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (splat_value): call rb_Array() to convert svalue to
+ values. [ruby-dev:27397]
+
+Fri Oct 7 09:54:00 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/cgi.rb (CGI::Cookie::parse): Cookies from Nokia devices may
+ not be parsed correctly. A patch from August Z. Flatby
+ (augustzf) in [ruby-Patches-2595]. [ruby-core:06183]
+
+Thu Oct 6 22:51:30 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * object.c (rb_Array): Array() to raise error for objects without
+ to_ary, nor to_a.
+
+ * object.c (nil_to_a): revert NilClass#to_a.
+
+Thu Oct 6 20:10:38 2005 Minero Aoki <aamine@loveruby.net>
+
+ * ext/strscan/strscan.c (strscan_free): remove useless code.
+ [ruby-dev:26368] [ruby-dev:27389]
+
+Thu Oct 6 01:02:19 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * range.c (rb_range_beg_len): should return Qfalse for non-range
+ object.
+
+Wed Oct 5 04:42:38 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * lib/xmlrpc/server.rb (XMLRPC::Server#initialize): should mount the
+ servlet on "/".
+
+Wed Oct 5 04:06:49 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * lib/xmlrpc/server.rb (XMLRPC::Server#serve): delete wrong call
+ of "join".
+
+Mon Oct 3 00:04:00 2005 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
+
+ * pack.c (EXTEND16): [ruby-dev:27383]
+
+Sat Oct 1 23:55:24 2005 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/win32.c (do_select, rb_w32_select): brush up.
+
+Sat Oct 1 12:57:02 2005 Tanaka Akira <akr@m17n.org>
+
+ * bignum.c (rb_big_rand): removed. [ruby-dev:25405]
+
+Sat Oct 1 01:46:51 2005 Tanaka Akira <akr@m17n.org>
+
+ * lib/open-uri.rb (OpenURI.open_loop): prohibit multiple proxy
+ options.
+
+Thu Sep 29 10:26:18 2005 Tanaka Akira <akr@m17n.org>
+
+ * ext/dl/cptr.c (rb_dlptr_s_to_ptr): abolish sizeof(FILE).
+ [ruby-dev:27317]
+
+Thu Sep 29 10:15:14 2005 Tanaka Akira <akr@m17n.org>
+
+ * lib/open-uri.rb (:proxy_http_basic_authentication): new option.
+
+Thu Sep 29 07:22:05 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (rb_f_send): underscores need to be escaped.
+ fixed by Doug Kearns. [ruby-core:06053]
+
+Thu Sep 29 00:57:35 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (ev_const_get), variable.c (rb_const_get_0): retry only when
+ autoload succeeded.
+
+ * variable.c (rb_autoload_load): now return true if autoload
+ succeeded. fixed: [ruby-dev:27331]
+
+Wed Sep 28 23:40:04 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * file.c (rb_stat_inspect): constified.
+
+Wed Sep 28 15:12:28 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * lib/webrick/cgi.rb (WEBrick::CGI#start): req.query_string should
+ refer to the value of QUERY_STRING. [ruby-list:41186]
+
+ * lib/webrick/httprequest.rb (WEBrick::HTTPRequest#query_string=):
+ add new method.
+
+Wed Sep 28 10:45:44 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/tcltklib.c: cannot compile with Tcl/Tk8.0.x [ruby-dev:27335].
+
+Wed Sep 28 07:56:52 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/yaml/basenode.rb (YAML::BaseNode::match_segment): fix typo.
+ [ruby-dev:27237], [ruby-core:05854]
+
+ * lib/yaml/tag.rb (Module#yaml_as): suppress warnings.
+
+ * lib/yaml/types.rb (YAML::PrivateType, YAML::DomainType): ditto.
+
+Wed Sep 28 03:16:41 2005 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * rubysig.h: fixed build problem with --enable-pthread on platforms
+ which don't have setitimer().
+
+Mon Sep 26 22:32:13 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (set_trace_func): add rb_secure(4) to prevent adding
+ tracing function.
+
+Mon Sep 26 20:59:28 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * parse.y: changed to ANSI function style.
+
+Sun Sep 25 12:02:04 2005 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
+
+ * bin/erb: typo fixed.
+
+Sun Sep 25 11:54:11 2005 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
+
+ * lib/rinda/tuplespace.rb (Rinda::TemplateEntry::initialize): pull
+ up method. Tabs converted to spaces.
+
+Sun Sep 25 09:34:22 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * parse.y: replaced `foo _((boo))' with `foo(boo)'.
+
+Sun Sep 25 08:19:53 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * test/rss/test_content.rb, test/rss/test_syndication.rb: use fcall
+ instead of send in order to override visibility.
+
+Sun Sep 25 01:46:43 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * misc/ruby-mode.el (ruby-calculate-indent): arrange deep-indent
+ closing parenthesis at same column as the opening.
+
+Sun Sep 25 01:33:41 2005 Tanaka Akira <akr@m17n.org>
+
+ * process.c (proc_setrlimit): make the third argument (rlim_max)
+ optional.
+
+Sun Sep 25 00:42:11 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * misc/ruby-mode.el (ruby-expr-beg): deal with heredoc separately.
+ fixed: [ruby-list:41168]
+
+ * misc/ruby-mode.el (ruby-calculate-indent): not to deepen indent
+ level for continuous line inside parentheses.
+ http://nabeken.tdiary.net/20050915.html#p02
+
+Sat Sep 24 21:19:39 2005 Minero Aoki <aamine@loveruby.net>
+
+ * ext/strscan/strscan.c: document enhancement.
+
+ * ext/strscan/strscan.c: update copyright year.
+
+ * ext/strscan/strscan.c: update coding style.
+
+Sat Sep 24 20:20:05 2005 Minero Aoki <aamine@loveruby.net>
+
+ * test/net/http/test_http.rb (teardown): Net::HTTP.version_1_1 breaks
+ many other tests; ensure that Net::HTTP is version 1.2 after test.
+ [ruby-dev:27312]
+
+Sat Sep 24 11:44:28 2005 Minero Aoki <aamine@loveruby.net>
+
+ * test/net/http/test_http.rb: new file.
+
+Sat Sep 24 08:54:05 2005 Minero Aoki <aamine@loveruby.net>
+
+ * lib/fileutils.rb (cd): no longer accept :noop option, related
+ code is useless. [ruby-core:05858] [ruby-Bugs:2494]
+
+Sat Sep 24 08:30:00 2005 Tanaka Akira <akr@m17n.org>
+
+ * lib/pathname.rb (Pathname#sub): new method.
+
+Sat Sep 24 08:29:36 2005 Minero Aoki <aamine@loveruby.net>
+
+ * lib/fileutils.rb: fix visibility of FileUtils::NoWrite, Verbose,
+ DryRun. [ruby-core:05954]
+
+ * test/fileutils/test_nowrite.rb: test it.
+
+ * test/fileutils/test_dryrun.rb: new file.
+
+ * test/fileutils/test_verbose.rb: new file.
+
+Sat Sep 24 07:59:01 2005 Minero Aoki <aamine@loveruby.net>
+
+ * sample/ripper/colorize.rb: removed (replaced by ruby2html.rb).
+
+ * sample/ripper/ruby2html.rb: added.
+
+Sat Sep 24 06:35:15 2005 Minero Aoki <aamine@loveruby.net>
+
+ * ext/ripper: no longer generates .rb files.
+
+ * parse.y (Init_ripper): ripper_init_eventids*() takes 1 argument,
+ self (class Ripper).
+
+ * ext/ripper/depend: target removed: `lib/ripper/core.rb'.
+
+ * ext/ripper/depend: new target `eventids2table.c'.
+
+ * ext/ripper/depend: new target `check'.
+
+ * ext/ripper/eventids2.c: include eventids2table.c.
+
+ * ext/ripper/eventids2.c: initialize SCANNER_EVENT_TABLE.
+
+ * ext/ripper/extconf.rb: update $cleanfiles list.
+
+ * ext/ripper/tools/generate.rb: no longer generate ripper/core.rb.
+
+ * ext/ripper/tools/generate.rb: new mode `check'.
+
+ * ext/ripper/tools/generate.rb: new mode `eventids2table'.
+
+ * ext/ripper/lib/ripper/core.rb.in: removed.
+
+ * ext/ripper/lib/ripper/core.rb: added.
+
+ * ext/ripper/lib/ripper/filter.rb: update copyright year.
+
+ * ext/ripper/lib/ripper/lexer.rb: ditto.
+
+ * ext/ripper/lib/ripper/sexp.rb: ditto.
+
+Sat Sep 24 02:40:20 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/delegate.rb: document update from James Edward Gray II
+ <james@grayproductions.net>. [ruby-core:05942]
+
+Sat Sep 24 02:05:51 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * process.c (proc_daemon): should restrict execution on levels
+ higher than $SAFE=2. suggested by URABE Shyouhei
+ <shyouhei@ice.uec.ac.jp>.
+
+Fri Sep 23 20:10:35 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/ripper/tools/generate.rb, ext/ripper/tools/preproc.rb: StringIO
+ is not available for miniruby. fixed: [ruby-dev:27307]
+
+Fri Sep 23 17:36:48 2005 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+
+ * ext/win32ole/win32ole.c: avoid core dump with WIN32OLE_EVENT.
+ [ruby-dev:27133]
+
+Fri Sep 23 16:27:39 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/forwardable.rb: replaced by new implementation from
+ <Daniel.Berger@qwest.com>. [ruby-core:05899]
+
+Fri Sep 23 07:07:47 2005 Minero Aoki <aamine@loveruby.net>
+
+ * test/ripper/depend: use --output option instead of redirect;
+ nmake does not remove a target when the target file is created by
+ redirect. [ruby-dev:26466]
+
+ * test/ripper/tools/preproc.rb: new option --output.
+
+Fri Sep 23 06:57:52 2005 Minero Aoki <aamine@loveruby.net>
+
+ * test/ripper/tools/generate.rb: check parser event arity.
+
+ * test/ripper/tools/generate.rb: detect crash of parser-event-IDs
+ and scanner-event-IDs.
+
+Fri Sep 23 06:01:30 2005 Minero Aoki <aamine@loveruby.net>
+
+ * test/ruby/test_file.rb: check File#chown(nil,nil).
+ [ruby-dev:27140]
+
+Fri Sep 23 05:57:23 2005 Minero Aoki <aamine@loveruby.net>
+
+ * ext/ripper: refactoring code generation tools. [ruby-dev:27247]
+ [ruby-dev:27273]
+
+ * ext/ripper/depend: use generate.rb.
+
+ * ext/ripper/lib/ripper/core.rb: removed.
+
+ * ext/ripper/tools/generate-eventids1.rb: removed (code moved to
+ generate.rb).
+
+ * ext/ripper/tools/generate-ripper_rb.rb: removed (code moved to
+ generate.rb).
+
+ * ext/ripper/tools/list-parse-event-ids.rb: removed (code moved to
+ generate.rb).
+
+ * ext/ripper/tools/list-scan-event-ids.rb: removed (code moved to
+ generate.rb).
+
+ * ext/ripper/lib/ripper/core.rb: removed.
+
+ * ext/ripper: refactoring tests. [ruby-dev:27273]
+
+ * ext/ripper/test/check-event-arity.rb: removed (code moved to
+ tools/generate.rb).
+
+ * ext/ripper/test/check-event-coverage.rb: removed (code moved to
+ test/ripper/test_parser_events.rb).
+
+ * ext/ripper/test/check-scanner-event-coverage.rb: removed (code
+ moved to test/ripper/test_scanner_events.rb).
+
+ * ext/ripper/test/list-called-events.rb: removed.
+
+ * ext/ripper/test/src_rb: removed.
+
+ * ext/ripper/test/validate.rb: removed.
+
+ * test/ripper/test_scanner_events.rb: check event coverage.
+
+ * ext/ripper/lib/ripper/core.rb.in: update copyright year.
+
+Thu Sep 22 23:40:19 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/mkmf.rb (find_executable0): default path if environment is not
+ set. [ruby-dev:27281]
+
+ * ext/ripper/extconf.rb (have_command): replaced with find_executable.
+
+Thu Sep 22 17:31:48 2005 Shugo Maeda <shugo@ruby-lang.org>
+
+ * test/readline/test_readline.rb (TestReadline::replace_stdio):
+ merged the patch of [ruby-dev:25232] instead of [ruby-dev:25223].
+ (merged from ruby_1_8 branch)
+
+Wed Sep 21 23:30:44 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/mkmf.rb (configuration): generalized nmake dependent code.
+
+Wed Sep 21 14:16:30 2005 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * ext/ripper/depend (SUFFIXES): no longer needed.
+
+ * ext/ripper/depend (c): avoid nmake problem. fixed [ruby-dev:27191]
+
+Wed Sep 21 08:52:25 2005 why the lucky stiff <why@ruby-lang.org>
+
+ * ext/syck/token.c: correctly compute indentation of a block
+ scalar's parent node. [ruby-talk:150620]
+
+Wed Sep 21 08:20:24 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * README.EXT, README.EXT.ja: add new features.
+
+Wed Sep 21 07:43:58 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/optparse.rb (default_argv, Arguable#options): defaults strings
+ to be parsed to Arguable instance.
+
+Wed Sep 21 02:44:09 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * file.c (path_check_0): disallow sticky world writable directory
+ in PATH (and $LOAD_PATH). [ruby-dev:27226]
+
+Wed Sep 21 00:32:22 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * numeric.c (fix_idiv): 1.div(1.0) should return integer value.
+ [ruby-dev:27235]
+
+Tue Sep 20 22:25:43 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/io/wait/lib/nonblock.rb: disable on platforms non-blocking flag
+ is not available. fixed: [ruby-dev:27187]
+
+ * file.c (rb_stat_inspect): protoized function pointer.
+
+Tue Sep 20 18:23:04 2005 Tanaka Akira <akr@m17n.org>
+
+ * eval.c (thread_mark): mark th->last_status. [ruby-dev:27179]
+
+Tue Sep 20 18:20:33 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/yaml.rb: require 'yaml/constants'. [ruby-core:5776]
+
+Tue Sep 20 17:48:34 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/xmlrpc/client.rb (XMLRPC::Client::do_rpc): add charset
+ information to content-type header.[ruby-core:5127]
+
+ * lib/xmlrpc/server.rb (CGIServer::serve): ditto.
+
+ * lib/xmlrpc/server.rb (ModRubyServer::serve): ditto.
+
+ * lib/xmlrpc/server.rb (WEBrickServlet::service): ditto.
+
+Tue Sep 20 17:26:42 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * test/webrick/test_cgi.rb: set ENV["PATH"] to CGIEnvPath on
+ windows. bcc32's runtime is not installed into system directory,
+ so it cannot be found without this setting. [ruby-dev:27166]
+
+Tue Sep 20 17:14:10 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * io.c: PIPE_BUF is not defined on BeOS. use _POSIX_PIPE_BUF instead.
+ [ruby-dev:27185]
+
+Tue Sep 20 17:10:38 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * test/dbm/test_dbm.rb (TestDBM::test_s_open_error): remove
+ test_s_open_error test to detect duplicate open.
+ [ruby-dev:27202]
+
+Tue Sep 20 15:39:40 2005 why the lucky stiff <why@ruby-lang.org>
+
+ * ext/syck/emitter.c (syck_scan_scalar): prevent indicators from
+ appearing alone or at the end of plain scalars. [ruby-core:5826]
+
+ * ext/syck/emitter.c (syck_emit_scalar): treat typed scalar nodes
+ as complex keys.
+
+ * lib/syck.h: version 0.60.
+
+ * lib/yaml/basenode.rb (YAML::BaseNode#at): transform keys during
+ key searches.
+
+ * ext/syck/rubyext.c: loading of binary-typed nodes. prevent
+ emission of plain strings that look like symbols, but which aren't.
+
+Tue Sep 20 05:48:26 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * test/xmlrpc/test_webrick_server.rb (setup_http_server):
+ should not include 'webrick/https' unless 'use_ssl' because
+ it fails where openssl is not installed.
+
+Tue Sep 20 01:24:45 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (splat_value): use to_a to splat non Array object.
+
+ * object.c (nil_to_a): remove nil.to_a. [experimental]
+
+Tue Sep 20 01:01:41 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/mathn.rb (Fixnum): remove debug print.
+
+ * lib/rational.rb (Rational): ditto.
+
+Tue Sep 20 00:34:07 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * io.c (io_close): call rb_io_close() directly if io is a T_FILE
+ object. [ruby-dev:27156]
+
+Mon Sep 19 18:58:10 2005 Minero Aoki <aamine@loveruby.net>
+
+ * file.c (rb_file_chown): should accept nil. [ruby-dev:27171]
+
+Mon Sep 19 18:29:54 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * file.c (file_expand_path): allow pathnames to expand.
+ [ruby-dev:27152]
+
+Mon Sep 19 15:12:15 2005 Minero Aoki <aamine@loveruby.net>
+
+ * ext/ripper/depend: do not make ripper/core.rb. [ruby-dev:26462]
+
+Mon Sep 19 14:49:19 2005 Minero Aoki <aamine@loveruby.net>
+
+ * ext/ripper/eventids2.c: add prefix `t' to tLAMBDA-related lexer
+ events.
+
+ * ext/ripper/lib/ripper/core.rb: updated.
+
+Mon Sep 19 14:39:46 2005 Minero Aoki <aamine@loveruby.net>
+
+ * parse.y (do_block): do_block event dispatches 2 args.
+ [ruby-dev:26964]
+
+ * ext/ripper/lib/ripper/core.rb: updated.
+
+ * ext/ripper/tools/list-parser-event-ids.rb: check arity mismatch.
+
+Mon Sep 19 07:45:37 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * ext/openssl/ossl_pkey.h, ossl_pkey_rsa.c, ossl_pkey_dsa.c:
+ an instance variable "private" is added to OpenSSL::PKey class.
+ this ivar is a flag that shows whether there is a private key
+ in the instance.
+
+ * ext/openssl/ossl_engine.c: (ossl_engine_load_privkey): set private
+ key flag.
+
+ * test/openssl/test_pkey_rsa.rb: add test about private detection.
+
+Mon Sep 19 06:38:03 2005 Minero Aoki <aamine@loveruby.net>
+
+ * lib/fileutils.rb: method renaming: collect_methods ->
+ collect_method.
+
+Mon Sep 19 05:58:59 2005 Minero Aoki <aamine@loveruby.net>
+
+ * lib/fileutils.rb: use module_function instead of single extend.
+
+ * test/fileutils/test_fileutils.rb: test existence of singleton
+ methods.
+
+Mon Sep 19 05:32:41 2005 Minero Aoki <aamine@loveruby.net>
+
+ * lib/fileutils.rb (remove_entry_secure): does not use chdir(2).
+
+Mon Sep 19 03:17:48 2005 Tanaka Akira <akr@m17n.org>
+
+ * file.c (rb_thread_flock): wrap the flock system call by
+ TRAP_BEG/TRAP_END to enable signals. [ruby-dev:27122]
+
+ * ext/socket/socket.c (bsock_send): wrap the sendto and send system
+ call by TRAP_BEG/TRAP_END to enable signals when writing to a socket
+ which is full. [ruby-dev:27132]
+
+ * io.c (rb_io_syswrite): wrap the write system call by
+ TRAP_BEG/TRAP_END to run signal handler in syswrite method.
+ [ruby-dev:27134]
+
+Mon Sep 19 01:07:38 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * numeric.c (Init_Numeric): should define Fixnum#div.
+ [ruby-dev:27129]
+
+ * file.c (rb_thread_flock): wrap flock(2) by TRAP_BEG and
+ TRAP_END. [ruby-dev:27122]
+
+ * file.c (rb_file_join): call FilePathValue() to all Pathnames to
+ join. [ruby-dev:27127]
+
+ * file.c (rb_get_path): call StringValueCStr() to ensure no nul
+ bytes in path strings.
+
+ * gc.c (garbage_collect): need value for return. [ruby-dev:27127]
+
+Sun Sep 18 02:10:47 2005 why the lucky stiff <why@ruby-lang.org>
+
+ * lib/yaml/rubytypes.rb: remove comments that are bungling up
+ the rdoc and ri output. output symbols as plain scalars.
+
+ * ext/syck/rubyext.c (syck_emitter_reset): emit headless
+ documents always.
+
+ * ext/syck/emitter.c (syck_scan_scalar): quote scalars with any
+ kind of surrounding line space, tabs or spaces alike.
+
+ * ext/syck/token.c: accept tabs as whitespace, not for indentation,
+ but strip from plain scalars.
+
+ * test/yaml/test_yaml.rb: remove outdated tests.
+
+Sun Sep 18 01:10:37 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * gc.c (garbage_collect): return false if no GC run.
+
+Sat Sep 17 23:25:04 2005 sheepman <sheepman@sheepman.sakura.ne.jp>
+
+ * lib/mathn.rb (Rational::inspect): should preserve original
+ operand. [ruby-core:05806]
+
+Sat Sep 17 23:20:27 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/cgi.rb (CGI::Cookie): should handle multiple values for a
+ cookie name. [ruby-talk:156140]
+
+ * test/socket/test_tcp.rb (TestTCPSocket::test_recvfrom): typo
+ fixed. [ruby-dev:27123]
+
+Sat Sep 17 20:58:56 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * win32/win32.c (rb_w32_select): fixed deadlock bug.
+ because select(2) modifies its fd_set arguments, it must be
+ restored sometimes.
+
+ * win32/win32.c (rb_w32_select): performance improvement when
+ 'always readable/writable handles' and sockets are passed.
+ sockets should be polled every time.
+
+ require "net/http"
+
+ Thread.new {
+ loop do
+ STDOUT.write(".") # busy on console (this is worst case though)
+ end
+ }
+
+ # socket operation took long time. (sometimes timed out)
+ Net::HTTP.start("www.ruby-lang.org") do |http|
+ http.get("/cgi-bin/cvsweb.cgi/ruby/array.c?rev=1.179")
+ end
+
+Sat Sep 17 14:54:40 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * test/ruby/test_readpartial.rb (test_open_pipe, test_with_stdio):
+ these tests are working now, so turned on. (windows)
+
+Sat Sep 17 14:18:15 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * win32/win32.c (rb_w32_select): I hope performance problem was
+ solved.
+
+Sat Sep 17 13:45:22 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * win32/win32.c (rb_w32_select): console support is back.
+ but still has performance problem because I loosely took 1 second
+ for wait time. I'll fix it later. (The reason I drastically changed
+ the code is that I wanted to implement the fileset management as
+ single function, and I was worried that if pipe or console
+ was always available, socket may not be processed any time)
+
+Sat Sep 17 11:24:16 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * win32/win32.c (rb_w32_select): select for socket didn't work.
+ this caused deadlock in drb test. this happened because GetFileType
+ for socket handle returns FILE_TYPE_PIPE. Of course, it's not a
+ pipe. So socket handle didn't reach winsock's select function.
+
+ * win32/win32.c (rb_w32_select): read for pipe was still blocked
+ even if writer handle was closed.
+
+ r,w = IO.pipe
+
+ Thread.new {
+ sleep 3; puts "------- 1"
+ w.puts("foo")
+ sleep 3; puts "------- 2"
+ w.puts("boo")
+ sleep 3; puts "------- 3"
+ w.close
+ }
+
+ until r.eof? # should break by w.close but didn't.
+ puts r.gets
+ end
+
+ * win32/win32.c (rb_w32_select): temporary reverted console support
+ but it'll be back soon.
+
+Sat Sep 17 10:42:13 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/multi-tk.rb: MultiTkIp#eval_string and bg_eval_string
+ should call Kernel.eval on caller's safe-level instead of slave's
+ safe-level (Of course, the given script should be evaluated on
+ slave's safe-level).
+
+Sat Sep 17 09:45:26 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (rb_str_substr): should propagate taintness even for
+ empty strings. [ruby-dev:27121]
+
+ * string.c (rb_str_aref): should infect result if range argument
+ is tainted. [ruby-dev:27121]
+
+Sat Sep 17 08:35:39 2005 Kouhei Sutou <kou@cozmixng.org>
+
+ * lib/rss/maker/base.rb (RSS::Maker::ItemsBase#normalize): fixed
+ strange RSS::Maker::Item#max_size behavior.
+ Thanks to Kazuhiko <kazuhiko@fdiary.net>.
+
+ * test/rss/test_maker_1.0.rb (RSS::TestMaker10#test_items): ditto.
+
+Sat Sep 17 08:02:53 2005 Shugo Maeda <shugo@ruby-lang.org>
+
+ * lib/net/imap.rb: supported DIGEST-MD5. Thanks, Mathieu Arnold.
+
+ * lib/net/imap.rb: use fcall instead of send. Thanks, Satoru
+ Takabayashi.
+
+Fri Sep 16 22:45:49 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * file.c (rb_file_s_extname): empty string for path name ending with a
+ period. fixed: [ruby-core:05651]
+
+ * file.c (rb_file_join): smarter behavior at edge cases.
+ fixed: [ruby-core:05706]
+
+ * gc.c (rb_memerror, ruby_xmalloc, ruby_xrealloc, rb_newobj): just
+ abandon if no memory available, when interpreter is not running.
+ [ruby-dev:27104]
+
+ * gc.c (garbage_collect): return whether GC could run.
+
+ * dir.c (rb_push_glob): fix delimiter bug. fixed: [ruby-dev:27105]
+
+ * dir.c (dir_s_aref, dir_s_glob): allow multiple patterns.
+ [ruby-dev:27110]
+
+ * win32/win32.c (cmdglob): enable brace expansion.
+
+Fri Sep 16 18:34:01 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ext/syck/node.c (syck_replace_str): was using return from the
+ void function. a patch from MIYAMUKO Katsuyuki
+ <miyamuko at mtb.biglobe.ne.jp>. [ruby-dev:27111]
+
+Fri Sep 16 14:48:48 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/multi-tk.rb: fix typo on MultiTkIp#bg_eval_string
+
+Fri Sep 16 12:02:12 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ext/syck/rubyext.c (syck_resolver_transfer): remove C++ style
+ comment (//). [ruby-core:05793]
+
+Fri Sep 16 00:17:03 2005 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * test/logger/test_logger.rb: unintentionally overwritten changes by
+ Usa. reverted.
+
+Fri Sep 16 00:03:11 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * lib/webrick/cgi.rb (WEBrick::CGI::Socket#initialize): should set
+ $stdout.binmode.
+
+Thu Sep 15 23:25:21 2005 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * lib/{soap,wsdl,xsd}, test/{soap,wsdl,xsd}: imported soap4r/1.5.5.
+
+ #nnn is a ticket number at http://dev.ctor.org/soap4r
+
+ * SOAP
+
+ * allow to configure an envelope namespace of SOAP request. (#124)
+ TemporaryNamespace = 'http://www.w3.org/2003/05/soap-envelope'
+ @client.options["soap.envelope.requestnamespace"] =
+ TemporaryNamespace
+ @client.options["soap.envelope.responsenamespace"] =
+ TemporaryNamespace
+ @client.do_proc(...)
+
+ * let SOAP request XML indent space configurable. see
+ "soap.envelope.no_indent" option. (#130)
+
+ * let external CES configurable.
+ ex. client["soap.mapping.external_ces"] = 'SJIS'. $KCODE is used
+ by default. (#133)
+ external CES ::= CES used in Ruby object of client and server
+ internal CES ::= CES used in SOAP/OM
+
+ * add iso-8859-1 external CES support. (#106)
+
+ * fixed illegal 'qualified' handling of elements. it caused
+ ASP.NET interoperability problem. (#144)
+
+ * added 'soap.envelope.use_numeric_character_reference' (boolean)
+ option to let query XML use numeric character reference in XML,
+ not plain UTF-8 character. !GoogleSearch server seems to not
+ allow plain UTF-8 character since 2005-08-15 update. (#147)
+
+ * SOAP::Header::SimpleHeader (de)serialization throws an exception
+ on !SimpleHeader.on_(in|out)bound when header is a String. so we
+ could not use a simple single element headerItem. fixed. thanks
+ to emil. (#129)
+
+ * out parameter of rpc operation did not work. (#132)
+
+ * follow HTTP redirect only if using http-access2. (#125) (#145)
+
+ * add a workaround for importing an WSDL whose path begins with
+ drive letter. (#115)
+
+ * WSDL
+
+ * SOAP Data which is defined as a simpletype was not mapped
+ correctly to Ruby obj when using wsdl2ruby.rb generated classdef
+ file. (#123)
+
+ * rpc/literal support. (#118)
+
+ * re-implemented local element qualify/unqualify control. handles
+ elementFormDefault and form in WSDL. (#119)
+
+ * Array of an element which has simpleType causes a crash. (#128)
+
+ * parameterOrder may not contain return part so it can be shorter
+ than parts size. Thanks to Hugh. (#139)
+
+ * Samples
+
+ * added !BasicAuth client sample. (#117)
+
+ * added Base64 client/server sample.
+
+ * added Flickr SOAP interface client sample. (#122)
+
+ * added !SalesForce client sample. (#135)
+
+ * updated Thawte CA certificate for !GoogleAdWords sample.
+
+ * updated a client script with the newer version made by Johan.
+ thanks!
+
+ * shortened long file names. (#120)
+
+ * fixed typo in authheader sample. (#129)
+
+ * updated deprecated method usage. (#138)
+
+Thu Sep 15 22:40:27 2005 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * test/ruby/test_signal.rb (test_exit_action): skip the test using
+ fork on fork-less platforms.
+
+Thu Sep 15 13:54:33 2005 Tanaka Akira <akr@m17n.org>
+
+ * lib/open-uri.rb: add :read_timeout option.
+ [ruby-core:4848]
+
+Thu Sep 15 11:39:18 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/tk/dialog.rb: If a dialog does not show up yet,
+ TkDialogObj#name raises an exception. [ruby-talk:156109]
+
+Thu Sep 15 11:01:58 2005 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/win32.c (rb_w32_pipe_exec): remove unnecessary CloseHandle().
+
+ * win32/win32.c (extract_console_fd, peek_console): new functions.
+
+ * win32/win32.c (rb_w32_select): check consoles by polling them.
+
+Thu Sep 15 00:18:24 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/net/telnet.rb (Net::Telnet::waitfor): replace sysread with
+ readpartial. [ruby-talk:127641]
+
+Wed Sep 14 23:28:28 2005 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/win32.c (collect_file_fd): rename from extract_file_fd.
+
+ * win32/win32.c (extract_pipe_fd, peek_pipe): new functions.
+
+ * win32/win32.c (rb_w32_select): check pipes by polling them.
+
+Wed Sep 14 22:40:26 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * dir.c (ruby_glob): glob function not using ruby exception system.
+
+Wed Sep 14 17:24:22 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * dir.c: changed `foo (*bar)_((boo))' to `foo (*bar)(boo)`.
+
+ * enumerator.c, eval.c, gc.c, intern.h, io.c, process.c, ruby.c,
+ ruby.h, signal.c: ditto.
+
+Wed Sep 14 15:06:22 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * bignum.c: changed `foo _((boo))' to `foo(boo)`. [ruby-dev:27056]
+
+ * defines.h, dir.c, dln.h, enumerator.c, env.h, error.c, eval.c, file.c,
+ gc.c, hash.c, inits.c, intern.h, io.c, lex.c, marshal.c, missing.h,
+ node.h, numeric.c, pack.c, process.c, re.h, ruby.c, ruby.h, rubyio.h,
+ rubysig.h, signal.c, sprintf.c, st.h, string.c, struct.c, time.c,
+ util.c, util.h, variable.c: ditto.
+
+Tue Sep 13 22:09:40 2005 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * lib/logger.rb (Logger): added formatter accessor to logger for
+ dictating the way in which the logger should format the messages it
+ displays. Thanks to Nicholas Seckar (cf. [ruby-talk:153391]) and
+ Daniel Berger.
+
+ * lib/logger.rb (Logger): added VERSION constant.
+
+ * lib/logger.rb: removed document for LogDevice. It is an
+ implementation detail and is not a public interface.
+
+ * test/logger/test_logger.rb: added tests.
+
+Tue Sep 13 21:47:17 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (BEGIN_CALLARGS): pop halfly pushed status.
+ fixed: [ruby-dev:26881]
+
+Tue Sep 13 20:24:37 2005 Tanaka Akira <akr@m17n.org>
+
+ * ruby.h (PRINTF_ARGS): new macro for printf style argument checking.
+
+Tue Sep 13 15:41:29 2005 Minero Aoki <aamine@loveruby.net>
+
+ * lib/net/http.rb: wrote documentation of HTTPRequest/HTTPResponse
+ classes.
+
+Tue Sep 13 14:27:47 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * string.c, missing.h: failed to build on powerpc-apple-darwin7.9.0
+ because of crypt argument's constness mismatch. (I hope this works)
+ (http://mput.dip.jp/autobuild/ruby-trunk/log/20050913T110001.gz)
+
+Tue Sep 13 12:33:05 2005 why the lucky stiff <why@ruby-lang.org>
+
+ * lib/yaml.rb: reworking YAML::Stream to use the new
+ emitter.
+
+ * lib/yaml/stream.rb: ditto.
+
+ * lib/yaml/rubytypes.rb: added Object#yaml_new.
+
+ * lib/yaml/tag.rb: the tag_subclasses? method now
+ shows up in the class. allow taguri to be set using an accessor.
+ continue support of Object#to_yaml_type.
+
+ * ext/syck/rubyext.c: new emitter code. yaml_new and yaml_initialize
+ get called, should they be present. consolidated all the diaspora of internal node types into the family below YAML::Syck::Node -- Map,
+ Seq, Scalar -- all of whom are SyckNode structs pointing to
+ Ruby data. moved Object#yaml_new into the node_import and made it
+ the default behavior. the target_class is always called with
+ yaml_new, prepended a parameter, which is the klass. loaded nodes
+ through GenericResolver show their style.
+ new Resolver#tagurize converts type ids to taguris.
+
+ * ext/syck/implicit.re: were 'y' and 'n' seriously omitted??
+
+ * ext/syck/emitter.c: renovated emitter, walks the tree in advance.
+ consolidated redundant block_styles struct into
+ the scalar_style struct. (this means loaded nodes can now
+ be sent back to emitter and preserve at least its very basic
+ formatting.)
+
+ * ext/syck/gram.c: headless documents of any kind allowed.
+
+ * ext/syck/node.c: new syck_replace_str methods and syck_empty_*
+ methods for rewriting node contents, while keeping the ID
+ and other setup info. added syck_seq_assign.
+
+ * ext/syck/syck.h: reflect block_styles and new node functions.
+
+Tue Sep 13 08:09:18 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/ostruct.rb (new_ostruct_member): Object#send no longer call
+ private methods. [ruby-dev:27044]
+
+ * test/rss/test_dublincore.rb, test/rss/test_trackback.rb,
+ test/ruby/test_eval.rb, test/socket/test_socket.rb: ditto.
+
+ * test/ruby/test_lambda (test_call_with_block): lambda makes new scope
+ for formal block parameter.
+
+Tue Sep 13 01:17:45 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (proc_save_safe_level): no need to restrict safe level
+ memoize in $SAFE>=3. [ruby-dev:27050]
+
+Tue Sep 13 00:02:33 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * file.c (apply2files): stricter callback definition.
+
+ * file.c (rb_path_check): constified.
+
+Mon Sep 12 20:53:06 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * test/openssl/test_pkcs7.rb (test_enveloped): skip this test
+ to avoid a bug of PKCS7_encrypt() (only if ext/openssl is
+ compiled with OpenSSL-0.9.7d or earlier versions).
+ http://www.mail-archive.com/openssl-dev@openssl.org/msg17376.html
+
+Mon Sep 12 20:32:00 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * win32/win32.[hc] (rb_w32_argv_size, ...): reverted my latest change
+ to avoid incompatible pointer warning. (mingw32)
+
+Mon Sep 12 19:58:53 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * dln.c: avoid warning of const to non-const convertion.
+ [ruby-dev:27041]
+
+ * eval.c, io.c, ruby.c: ditto.
+
+Mon Sep 12 19:26:29 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * array.c: moved to ANSI function style from K&R function style.
+ (used protoize on windows, so still K&R remains on #ifdef part of
+ other platforms. And `foo _((boo))' stuff is still there)
+ [ruby-dev:26975]
+
+ * bignum.c, class.c, compar.c, dir.c, dln.c, dmyext.c, enum.c,
+ enumerator.c, error.c, eval.c, file.c, gc.c, hash.c, inits.c,
+ io.c, main.c, marshal.c, math.c, numeric.c, object.c, pack.c,
+ prec.c, process.c, random.c, range.c, re.c, regcomp.c, regenc.c,
+ regerror.c, regexec.c, regparse.c, regparse.h, ruby.c, signal.c,
+ sprintf.c, st.c, string.c, struct.c, time.c, util.h, variable.c,
+ version.c: ditto.
+
+Mon Sep 12 14:03:33 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * test/dbm/test_dbm.rb: remove locking test, which may not be
+ supported on some platforms. [ruby-dev:27030]
+
+Sun Sep 11 23:23:02 2005 Shugo Maeda <shugo@ruby-lang.org>
+
+ * lib/net/imap.rb (starttls): supported the STARTTLS command.
+
+Sun Sep 11 22:18:07 2005 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
+
+ * bin/erb (ERB::Main#run): set ERB#filename so that it is used
+ when reporting syntax/runtime errors. Tabs converted to spaces.
+
+Sat Sep 10 22:34:19 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * array.c, bignum.c: protoize.
+
+Sat Sep 10 00:23:01 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (splat_value): simpler and consistent array conversion
+ for argument splat. [yarv-dev:599]
+
+Fri Sep 9 16:45:25 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * string.c (rb_str_times): make empty strings to keep taintness,
+ and a little improvement. [ruby-dev:26900]
+
+ * ext/iconv/iconv.c (iconv_try), ext/iconv/extconf.rb: get rid of meta
+ characters in command line option. fixed: [ruby-talk:155369]
+
+ * ext/iconv/iconv.c: protoized.
+
+Thu Sep 8 14:58:11 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * merged a patch from Takahiro Kambe <taca at back-street.net> to
+ support DragonFly BSD. [ruby-dev:26984]
+
+Thu Sep 8 13:14:57 2005 Tadashi Saito <shiba@mail2.accsnet.ne.jp>
+
+ * missing/strchr.c (strrchr): fixed a bug in detecting NUL in a
+ string. [ruby-dev:26985]
+
+Wed Sep 7 17:29:27 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * ext/openssl/ossl_engine.c (ossl_engine_s_by_id):
+ OpenSSL::Engine.by_id calls given block before calling
+ ENGINE_init (block parameter is the return value of this method
+ itself). this functionality is useful to load dynamic shared
+ engines.
+
+ require "openssl"
+ pkcs11 = OpenSSL::Engine.by_id("dynamic"){|e|
+ e.ctrl_cmd("SO_PATH", "/usr/lib/opensc/engine_pkcs11.so")
+ e.ctrl_cmd("LIST_ADD", "1")
+ e.ctrl_cmd("LOAD")
+ }
+ pkcs11.ctrl_cmd("PIN", "secret")
+ key = pkcs11.load_private_key
+
+ * ext/openssl/ossl_engine.c (ossl_engine_ctrl_cmd): new method
+ OpenSSL::Engine#ctrl_cmd. it wraps ENGINE_ctrl_cmd_string.
+
+ * ext/openssl/ossl_engine.c (ossl_engine_get_cmds): new method
+ OpenSSL::Engine#cmds. it returns engine command definitions.
+
+Wed Sep 7 15:48:37 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * ext/openssl/ossl_asn1.c (asn1str_to_str): new function.
+
+ * ext/openssl/ossl_pkcs7.c: new class OpenSSL::PKCS7::RecipientInfo.
+ this class wraps PKCS7_RECIP_INFO struct.
+
+ * ext/openssl/ossl_pkcs7.c: OpenSSL::PKCS7::Signer is renamed to
+ OpenSSL::PKCS7::SignerInfo. ("Signer" remains as an alias of
+ SignerInfo.)
+
+ * test/openssl/test_pkcs7.rb: new file.
+
+Wed Sep 7 12:55:08 2005 Tanaka Akira <akr@m17n.org>
+
+ * lib/open-uri.rb: abolish mod === tempfile to avoid a problem
+ [ruby-dev:26967].
+
+Wed Sep 7 10:45:15 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (rb_thread_switch): convert all exceptions to
+ SystemExit. fixed: [ruby-core:05724]
+
+ * eval.c (rb_thread_terminated): show backtrace before propagate
+ exceptions to main thread.
+
+Wed Sep 7 09:21:41 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * win32/win32.[hc] (rb_w32_utime): constified.
+
+ * win32/win32.h (rb_w32_stat): added prototype.
+
+ * win32/win32.[hc] (rb_w32_argv_size,rb_w32_join_argv,rb_w32_aspawn):
+ changed `char *const *' to `const char *const *'. (constify string)
+
+Wed Sep 7 08:35:04 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * Makefile.in, configure.in (MINIOBJS): miniruby on HP-UX can not load
+ extension libraries.
+
+ * bignum.c (bignew_1, bigadd): K&R style argument actually can't be
+ defined as char.
+
+ * missing/vsnprintf.c: ANSI compiler supports const keyword.
+
+ * ext/digest/sha2/extconf.rb: reject platforms which has inttypes.h
+ but no 64bit integer.
+
+ * lib/mkmf.rb (what_type?): guesstimate type.
+
+ * ext/etc/etc.c (setup_passwd), ext/etc/extconf.rb: pw_age might be
+ char*. fixed: [ruby-core:05470]
+
+Wed Sep 7 08:32:07 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (rb_str_times): should taint empty strings as well.
+
+ * object.c (Init_Object): make class_variable_{get,set} public.
+ [ruby-dev:26965]
+
+Mon Sep 5 22:28:46 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (stmt, mlhs_node, lhs, arg, method_call): aref_args might be
+ nothing. fixed: [ruby-dev:26952]
+
+ * ext/ripper/eventids2.c: added new tokens. fixed: [ruby-dev:26952]
+
+Mon Sep 5 17:03:07 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/find.rb: should raise ENOENT if root entry does not exist.
+ [ruby-list:41054]
+
+ * lib/ostruct.rb: a patch from Florian Gross <florgro at gmail.com>
+ merged to allow recursive inspect (and to_s) for OpenStruct.
+ [ruby-core:05532]
+
+Mon Sep 5 08:20:19 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/observer.rb: a patch from nornagon <nornagon at gmail.com>
+ merged to allow arbitrary names for update methods.
+ [ruby-core:05416]
+
+Mon Sep 5 07:01:12 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * ext/openssl/openssl/lib/openssl/buffering.rb (Buffering#do_write):
+ should clear data from the buffer which already been output.
+
+Sun Sep 4 15:01:35 2005 Minero Aoki <aamine@loveruby.net>
+
+ * parse.y (f_arg): Ripper should not do semantic check.
+ [ruby-dev:26948]
+
+Sat Sep 3 23:52:35 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (rb_f_fcall): new method to avoid inefficiency of
+ obj.instance_eval{send(...)} tricks.
+
+Sat Sep 3 13:59:31 2005 Tanaka Akira <akr@m17n.org>
+
+ * lib/pathname.rb (Pathname#descend): Pathname.new("./a/b/c").descend
+ didn't yield "."
+ (Pathname#ascend): ditto.
+
+Fri Sep 2 23:51:54 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (f_arg): f_norm_arg is a VALUE in ripper, not an ID.
+ fixed: [ruby-dev:26942]
+
+ * lib: do not use __send__ to access private methods. [ruby-dev:26935]
+
+Thu Sep 1 17:11:25 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (rb_call0): wrong condition for $SAFE restoration.
+
+Thu Sep 1 14:12:45 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/multi-tk.rb: On Tcl8.5, MultiTkIp#invoke_hidden doesn't
+ work (gives wrong order of arguments).
+
+ * ext/tk/lib/multi-tk.rb: add MultiTkIp#invoke_hidden_on_namespace
+ to support '-namespace' option of 'interp invokehidden' command
+ on Tcl8.5.
+
+Wed Aug 31 14:41:30 2005 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/Makefile.sub (OPTFLAGS): default global optimization to
+ disabled for all VC++ versions. fixed: [ruby-dev:26897]
+
+Wed Aug 31 10:36:09 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * process.c (proc_detach, proc_setmaxgroups): missing argument type
+ declaration. (I recommend ANSI-style function)
+
+Wed Aug 31 06:59:01 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * string.c (rb_str_scan): already String#scan behaves differently
+ regarding if block is given.
+
+Tue Aug 30 23:49:34 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * array.c, dir.c, enum.c, hash.c, io.c, range.c, string.c, struct.c:
+ let enumerable methods return Enumerator. [ruby-dev:26924]
+
+ * intern.h (RETURN_ENUMERATOR): utility macro for enumerable methods.
+
+Tue Aug 30 23:25:45 2005 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * lib/debug.rb: no need to restart at exit.
+
+Tue Aug 30 23:20:19 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (rb_rescue2): initialization miss. fixed: [ruby-dev:26917]
+
+ * lib/mkmf.rb (xsystem, xpopen): no longer expand by Config.
+
+ * lib/mkmf.rb (link_command, cc_command, cpp_command): expand
+ variables at once, and quote hdrdir. fixed: [ruby-core:05680]
+
+ * lib/mkmf.rb (libpathflag): quote paths.
+
+Tue Aug 30 19:34:27 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * ext/digest/md5/md5ossl.h, ext/digest/rmd160/rmd160ossl.h,
+ ext/digest/sha1/sha1ossl.h: include <stddef.h> to avoid
+ error in compilation with OpenSSL-0.9.8. [ruby-list:41068]
+
+Tue Aug 30 16:19:40 2005 Keiju Ishitsuka <keiju@ruby-lang.org>
+
+ * lib/irb/init.rb: bug fix. [ruby-dev: 26920]
+
+Tue Aug 30 16:13:00 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * enum.c (enum_count): new method. [ruby-dev:26895]
+
+Tue Aug 30 12:45:15 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (rb_f_send): do not call private methods if the receiver
+ is specified. [ruby-talk:153672]
+
+Mon Aug 29 19:47:18 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * lib/rdoc/usage.rb: improper exceptions. [ruby-dev:26870]
+
+ * lib/rdoc/usage.rb: support the case when non-ruby code exists before
+ shebang. (this is needed when ri.bat is executed on windows)
+
+Mon Aug 29 18:58:05 2005 Keiju Ishitsuka <keiju@ruby-lang.org>
+
+ * lib/irb/init.rb: make IRB -I option that is same behavior for ruby.
+ [ruby-dev:26872]
+
+ * lib/irb/locale.rb: support to print help message when OS locale is
+ ja_JP.utf-8. [ruby-dev:26872]
+
+Mon Aug 29 01:43:05 2005 Tanaka Akira <akr@m17n.org>
+
+ * lib/pathname.rb (Pathname#descend): new method.
+ (Pathname#ascend): ditto.
+
+Mon Aug 29 00:35:09 2005 Tanaka Akira <akr@m17n.org>
+
+ * lib/time.rb: require 'date/format' instead of 'parsedate'.
+ (Time.parse): extract fractional seconds using Date._parse.
+ (Time.strptime): extract fractional seconds using Date._strptime.
+ [ruby-talk:153859]
+
+Sat Aug 27 20:13:31 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * ext/curses/curses.c ({curses,window}_clrtoeol): added. suggested
+ by Reyn Vlietstra.
+
+ * ext/curses/curses.c: chtype in curses is not `char', rather `long'.
+ [ruby-Bugs:2298]
+
+ * ext/curses/view.rb: String =~ String is deprecated.
+
+Thu Aug 25 15:48:58 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * ext/win32ole/win32ole.c: suppress warnings. (win32)
+
+Wed Aug 24 11:01:26 2005 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * test/logger/test_logger.rb (test_shifting_size): should close log
+ device before unlink, since some platform cannot unlink opened
+ file.
+
+Tue Aug 23 06:07:02 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * ext/openssl/lib/digest.rb: added SHA224, SHA256, SHA384 and SHA512.
+ these features are enabled if this library is compiled with
+ OpenSSL 0.9.8 or later.
+
+ * test/openssl/test_digest.rb: add test for new digests.
+
+Tue Aug 23 05:47:04 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * ext/openssl/ossl_ns_spki.c (ossl_spki_initialize): try to decode
+ the argument as a string.
+
+ * ext/openssl/ossl_ns_pki.c (ossl_spki_to_der): new method.
+
+ * ext/openssl/ossl_x509store.c (ossl_x509store_initialize): should
+ set @time to avoid warning.
+
+ * ext/openssl/ossl_x509store.c (ossl_x509store_set_default_paths,
+ X509_STORE_add_cert, X509_STORE_add_crl): should raise error if
+ wrapped functions fails.
+
+ * ext/openssl/ossl_ssl.c (ossl_sslctx_set_ciphers): fix error message.
+
+ * ext/openssl/ossl_x509req.c (ossl_x509req_set_attributes): get rid
+ of unused variable.
+
+ * test/openssl/test_ns_spki.rb: add new file.
+
+ * test/openssl/test_x509store.rb: add test for error.
+
+Tue Aug 23 01:11:40 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * sprintf.c (ruby__sfvwrite): should move `buf' to the end of
+ `result'. [ruby-dev:26859]
+
+Mon Aug 22 23:51:19 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * parse.y: ONIG_OPTION_CAPTURE_GROUP conflicts with
+ RE_OPTION_ONCE. [ruby-dev:26852]
+
+Mon Aug 22 20:11:35 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * missing/vsnprintf.c (BSD__sprint): needs to call vwrite function
+ pointer. fixed: [ruby-dev:26854]
+
+Sat Aug 20 23:55:25 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * parse.y (parser_yylex): update paren_nest for brackets [].
+
+Sun Aug 21 00:10:23 2005 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * lib/wsdl/xmlSchema/importer.rb (WSDL::XMLSchema::Importer#fetch): add
+ a workaround for importing an WSDL whose path begins with drive
+ letter. [ruby-dev:26242]
+
+Sat Aug 20 22:05:25 2005 K.Kosako <sndgk393 AT ybb.ne.jp>
+
+ * regexec.c (code_is_in_cclass_node): check code size.
+ [ruby-dev:26840]
+
+Sat Aug 20 22:37:13 2005 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * lib/logger.rb (write, shift_log?, shift_log): file shifting race
+ condition bug fixed. [ruby-dev:26764]
+
+ * test/logger/test_logger.rb: tests.
+
+Fri Aug 19 18:13:39 2005 Tanaka Akira <akr@m17n.org>
+
+ * lib/time.rb (Time.apply_offset): fix a problem with last day of
+ month. reported by Lucas Nussbaum. [ruby-talk:152866]
+
+Thu Aug 18 11:05:36 2005 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/win32.c (socketpair_internal): need to call open_ifs_socket()
+ to create sockets instead of winsock's socket().
+ fixed: [yarv-dev:581]
+
+Wed Aug 17 23:58:05 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (terminate_process): take String message.
+
+ * eval.c (rb_thread_switch): propagate the exception caused thread
+ termination directly. fixed: [ruby-core:05552]
+
+Wed Aug 17 21:20:05 2005 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * ext/nkf/lib/kconv.rb: ensure that symbol_to_option is private_class_method
+ and all other methods are module_function
+ fixed: [ruby-dev:26808]
+
+Wed Aug 17 00:05:46 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (rb_add_method): preserve safe level in the environment
+ where a method is defined .
+
+ * eval.c (rb_call0): restore preserved safe level in the method
+ execution.
+
+ * parse.y (lambda): need separate block variable stack
+ manipulation and lpar_beg maintenance. based on a patch found
+ in [ruby-core:05551] from Mauricio Fernandez <mfp at acm.org>.
+
+ * parse.y (parser_yylex): adjust lpar_beg after tLAMBEG and
+ kDO_LAMBDA. [ruby-core:05551]
+
+Mon Aug 15 07:24:38 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * intern.h (rb_check_to_integer): add declaration.
+
+ * object.c (rb_to_integer, rb_check_to_integer): argument constified.
+
+Mon Aug 15 00:38:51 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (rb_rescue2): reduce PUSH_TAG() as well as NODE_RESCUE.
+ [ruby-dev:26800]
+
+ * range.c (range_check, range_init): reduce useless exceptions.
+
+Mon Aug 15 00:34:11 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * parse.y (yycompile): remove unreachable code. [yarv-dev:570]
+
+Sat Aug 13 22:16:12 2005 Minero Aoki <aamine@loveruby.net>
+
+ * lib/fileutils.rb (remove_entry_secure): forgot final chdir.
+
+Sat Aug 13 22:07:49 2005 Minero Aoki <aamine@loveruby.net>
+
+ * lib/fileutils.rb (remove_entry_secure): uses chdir(2) and check
+ if current directory is correct. [ruby-dev:26100] [ruby-dev:26226]
+
+Sat Aug 13 21:11:05 2005 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+
+ * ext/win32ole/win32ole.c: add WIN32OLE_VARIANT class.
+
+ * ext/win32ole/tests/testall.rb: ditto.
+
+ * ext/win32ole/tests/testOLEVARIANT.rb: ditto.
+
+Sat Aug 13 18:51:26 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (rb_block_pass): distinguish current block from others.
+ fixed: [ruby-dev:26274]
+
+ * ext/stringio/stringio.c (strio_set_string): disallow nil.
+ http://www.rubyist.net/~nobu/t/20050811.html#c05
+
+Sat Aug 13 08:01:59 2005 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * ext/nkf/lib/kconv.rb: Kconv.kconv is now alias of Kconv.conv
+ * ext/nkf/lib/kconv.rb: remove nkf dependent symbols from SYMBOL_TO_OPTION
+
+Fri Aug 12 17:06:53 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * parse.y (f_larglist): allow optional arguments even when
+ parentheses are omitted. based on Nobu's patch from
+ http://www.rubyist.net/~nobu/t/20050805.html
+
+ * parse.y (parser_yylex): update & maintain lpar_beg for detect
+ lambda parameters.
+
+Thu Aug 11 23:29:03 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/stringio/stringio.c: keep holding string after closed.
+
+Thu Aug 11 20:48:40 2005 Tadashi Saito <shiba@mail2.accsnet.ne.jp>
+
+ * numeric.c (fix_equal, fix_cmp, fix_gt, fix_ge, fix_lt, fix_le):
+ reduce coercing when a method knows about a operand type.
+ [ruby-dev:26789]
+
+Thu Aug 11 13:01:48 2005 Kouhei Sutou <kou@cozmixng.org>
+
+ * lib/rss: fixed sort bug. [ruby-list:41018]
+
+ * lib/rss/1.0.rb (RSS::RDF::Channel#setup_maker_attributes):
+ removed self.
+
+ * lib/rss/maker/base.rb (RSS::Maker::ItemsBase#<=>): use #date
+ instead of @date.
+ (RSS::Maker::Base::self.def_array_element): added #size.
+
+ * lib/rss/maker/1.0.rb
+ (RSS::Maker::RSS10::Channel#to_rss,
+ RSS::Maker::RSS10::Items::Item#to_rss): cleared dc_dates set
+ upped by using #date.
+
+ * lib/rss/maker/dublincore.rb
+ (RSS::Maker::ChannelBase, RSS::Maker::ItemsBase::ItemBase):
+ fixed opposite alias.
+
+ * test/rss/test_setup_maker_1.0.rb
+ (RSS::TestSetupMaker10::test_setup_maker_items_sort): added some
+ tests for RSS::Maker::ItemsBase#do_sort.
+
+Wed Aug 10 12:01:20 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/delegate.rb: simplifies Delegator classes; SimpleDelegator
+ now uses method_missing for all methods.
+
+Wed Aug 10 10:38:50 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * bignum.c (rb_big_mul0): multiply two numbers (x, y) without
+ normalizing the result. x should be a big number.
+ [ruby-dev:26778]
+
+ * bignum.c (rb_big_pow): use rb_big_mul0() instead of
+ rb_big_mul().
+
+ * array.c (rb_ary_or, rb_ary_and, rb_ary_plus, rb_ary_diff):
+ revert the change on 2005-08-03. Set operation on other item
+ should have in separate methods.
+
+ * parse.y (shadowing_lvar_gen): warn when arguments shadows
+ external local variables.
+
+ * parse.y (f_opt): optional arguments should not clobber external
+ local variables.
+
+ * parse.y (f_rest_arg): rest arguments should not clobber external
+ local variables.
+
+Wed Aug 10 10:29:40 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/tk.rb: fix bug on handling __ruby2val_optkeys().
+
+ * ext/tk/lib/tk/itemconfig.rb: fix bug on handling
+ __item_ruby2val_optkeys().
+
+ * ext/tk/lib/tk/canvas.rb: didn't check __item_ruby2val_optkeys().
+
+ * ext/tk/lib/tkextlib/blt/component.rb: ditto.
+
+Tue Aug 9 21:53:17 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (formal_assign): let default values override
+ arguments to zsuper. fixed: [ruby-dev:26743]
+
+Tue Aug 9 20:30:19 2005 Tadashi Saito <shiba@mail2.accsnet.ne.jp>
+
+ * bignum.c (rb_big_coerce): allow bignum x bignum coercing.
+ [ruby-dev:26778]
+
+Tue Aug 9 15:12:04 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/tcltklib.c: remove dangerous 'rb_jump_tag's.
+
+ * ext/tk/lib/tk.rb: add __val2ruby_optkeys and __ruby2val_optkeys to
+ help to convert option values between ruby and tcl.
+
+ * ext/tk/lib/tk/itemconfig.rb: add __item_val2ruby_optkeys and
+ __item_ruby2val_optkeys to help to convert option values between
+ ruby and tcl.
+
+ * ext/tk/lib/tk/radiobutton.rb: use __ruby2val_optkeys for 'variable'
+ option (for the reason of backward compatibility).
+
+ * ext/tk/lib/tk/composite.rb: clarify the arguments of super().
+
+ * ext/tk/lib/tk/spinbox.rb: ditto.
+
+ * ext/tk/lib/tk/text.rb: ditto.
+
+ * ext/tk/lib/tk/validation.rb: ditto.
+
+ * ext/tk/lib/tkextlib/*: support to treat tkvariable-type
+ configure options.
+
+Tue Aug 9 08:24:05 2005 Mauricio Fernandez <mfp@acm.org>
+
+ * parse.y (f_block_arg), eval.c (rb_yield_0): deal with dynamic
+ variable lambda arguments. [ruby-core:05540]
+
+Mon Aug 8 22:13:48 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (assign): deal with new block argument.
+ fixed: [ruby-core:05536]
+
+ * eval.c (rb_node_arity): follow change of NODE_ARGS.
+ fixed: [ruby-dev:26761]
+
+Mon Aug 8 21:28:13 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * test/ruby/test_fnmatch.rb: separated from test_file.rb.
+
+Mon Aug 8 20:40:35 2005 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * test/ruby/test_method.rb: added. [ruby-dev:26761]
+
+Mon Aug 8 01:26:37 2005 Mauricio Fernandez <mfp@acm.org>
+
+ * parse.y (f_larglist): mistake in syntax rule. [ruby-core:05535]
+
+Mon Aug 8 05:16:55 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * ext/openssl/ossl.c (ossl_raise): should use ERR_peek_last_error
+ to get last error on the current thread. And should report
+ if errors are on the stack while OpenSSL.debug is true.
+
+ * ext/openssl/ossl.c (ossl_get_errors): new method for debugging
+ this library.
+
+Mon Aug 8 05:15:19 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * lib/webrick/httpproxy.rb (HTTPProxyServer#initialize),
+ lib/webrick/httpserver.rb (HTTPServer#initialize),
+ lib/webrick/httpservlet/cgihandler.rb (CGIHandler#initialize),
+ lib/webrick/httpservlet/erbhandler.rb (ERBHandler#initialize),
+ lib/webrick/httpservlet/filehandler.rb(DefaultFileHandler#initialize):
+ super (called with no arguments) takes default value of optional
+ arguments. [ruby-dev:26743]
+
+ * lib/webrick/httputils.rb: add a media-type "text/html" for .xhtml.
+
+Sun Aug 7 23:52:39 2005 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * test/ruby/test_super.rb: added optional arg tests. [ruby-dev:26743]
+ the tests expects 1.8 behavior at this time.
+
+Sat Aug 6 12:35:24 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/{tk.rb,tk/itemconfig.rb}: configure creates
+ TkVariable if key name is 'variable' or 'textvariable'
+ by default. [ruby-dev:26749]
+
+ * ext/tk/lib/tk/{label,radiobutton}.rb: removed its own
+ {variable,textvariable} function.
+
+ * ext/tk/lib/tk/variable.rb: retains backward compatibility.
+
+Fri Aug 5 12:48:31 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * ext/tk/tcltklib.c: fixed memory leak when tk_funcall raised
+ exception. (copies argv into heap in tk_funcall instead of
+ caller)
+
+Fri Aug 5 12:36:40 2005 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * lib/mkmf.rb (create_makefile): need to convert path separator
+ before invoking install command.
+
+Fri Aug 5 08:08:05 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (return_jump): fix "can't across thread" error message
+ when no thread associated.
+ http://www.namikilab.tuat.ac.jp/~sasada/diary/200507.html#d31
+
+Fri Aug 5 00:25:12 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * ext/tk/tcltklib.c: refactoring - extract ruby string <->
+ tcl object conversion as get_str_from_obj and get_obj_from_str.
+
+Fri Aug 5 00:19:33 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * enumerator.c (Init_Enumerator): provided features should have
+ extensions.
+
+ * eval.c (rb_feature_p): returns type of the feature instead of
+ extension.
+
+ * eval.c (search_required): ruby library should be prior to statically
+ linked extensions. fixed: [ruby-dev:26711]
+
+ * eval.c (formal_assign): returns position of rest arguments variable.
+
+ * parse.y (f_rest_arg): use anonymous variable for rest arguments.
+ fixed: [ruby-dev:26647]
+
+ * extmk.rb (extmake): needs to be wrapped in an Array.
+
+Thu Aug 4 20:03:18 2005 Tadashi Saito <shiba@mail2.accsnet.ne.jp>
+
+ * numeric.c (Init_Numeric): do not share implementation among
+ Fixnum#/ and Fixnum#div. [ruby-core:05531]
+
+Thu Aug 4 18:38:36 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/tcltklib.c: cannot compile for Tcl7.6/Tk4.2.
+
+ * ext/tk/tcltklib.c: add nativethread consistency check.
+
+ * ext/tk/stubs.c: ditto.
+
+ * ext/tk/lib/tk.rb: forgot to define TclTkIp.encoding and encoding=
+ when Tcl is 7.6 or 8.0.
+
+ * ext/tk/lib/tk/wm.rb: support to make some methods as options of
+ root or toplevel widget. [ruby-talk:150336]
+
+ * ext/tk/lib/tk/root.rb: ditto.
+
+ * ext/tk/lib/tk/toplevel.rb: ditto.
+
+ * ext/tk/lib/tkextlib/SUPPORT_STATUS: update RELEASE_DATE
+
+Thu Aug 4 13:30:15 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * numeric.c (fix_div): should not convert the result into
+ integer. [ruby-core:05524]
+
+Thu Aug 4 08:03:39 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/extmk.rb (extmake): should not modify $mflags for each
+ extensions.
+
+Thu Aug 4 00:25:48 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * common.mk, Makefile.in, {bcc32,win32,wince}/Makefile.sub: integrated
+ macro definitions.
+
+ * bcc32/Makefile.sub: LIBRUBY_SO should use DLDOBJS, not EXTOBJS.
+
+ * {win32,wince}/Makefile.sub: separate config.h for compiler versions.
+
+Thu Aug 4 00:24:59 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * sprintf.c: replacing is no longer needed.
+
+Wed Aug 3 21:59:16 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/tk/variable.rb: TkVariable#trace didn't work on
+ TkVariable retrieved from TkVariable.new_hash.ref. [ruby-dev:26721]
+
+Wed Aug 3 12:40:28 2005 Tadashi Saito <shiba@mail2.accsnet.ne.jp>
+
+ * numeric.c (fix_plus): reduce coercing when a method knows about
+ a operand type. [ruby-dev:26723]
+
+ * numeric.c (fix_minus, fix_mul, fix_quo, fix_div, fix_mod,
+ fix_divmod, fix_pow): ditto.
+
+ * bignum.c (rb_big_div, rb_big_modulo): export to reduce
+ coercing.
+
+Wed Aug 3 10:13:52 2005 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * configure.in, {bcc32,win32,wince}/Makefile.sub (HAVE_SNPRINTF,
+ HAVE_VSNPRINTF): use win32/win32.c's implementation instead of
+ missing/vsnprintf.c's.
+
+ * win32/win32.[ch] (rb_w32_snprintf, rb_w32_vsnprintf): reverted.
+
+Wed Aug 3 10:05:08 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in: check vsnprintf() and snprintf().
+
+ * sprintf.c, missing/vsnprintf.c: made vsnprintf() and snprintf()
+ private. fixed: [ruby-dev:26651]
+
+Wed Aug 3 08:22:13 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ext/socket/socket.c (ruby_connect): revert [ruby-talk:111654]
+ changes at 2004-09-07. [ruby-dev:26656]
+
+Wed Aug 3 06:53:35 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * array.c (rb_ary_or): wraps the operand in an array if it is not
+ an array. [ruby-talk:150495] [EXPERIMENTAL]
+
+ * array.c (rb_ary_and, rb_ary_plus, rb_ary_diff): ditto.
+
+Tue Aug 2 10:23:12 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * ext/tk/tcltklib.c: use Tcl_[GS]etVar2Ex instead of
+ Tcl_Obj[GS]etVar2. (avoid Tcl_NewStringObj on supported platforms)
+
+ * ext/tk/tcltklib.c: use ip_{get,set,unset}_variable2_core from
+ ip_{get,set,unset}_variable.
+
+ * ext/tk/tcltklib.c: replaced Tcl_Panic with rb_bug.
+
+Tue Aug 2 01:40:38 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * lib/ping.rb (Ping.pingecho): should rescue StandardError.
+ [ruby-dev:26677]
+
+Mon Aug 1 19:02:23 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * ext/tk/tcltklib.c: refactoring - replaced rb_ivar_defined &
+ rb_ivar_get with single rb_attr_get call.
+
+Mon Aug 1 18:44:08 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * ext/tk/tcltklib.c (Tcl_GetStringResult): refactoring - define
+ alternative macro on Tcl7.x or earlier.
+
+Mon Aug 1 13:53:55 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * ext/tk/tcltklib.c (deleted_ip): refactoring - interpreter
+ deletion check. [ruby-dev:26664]
+
+Mon Aug 1 01:08:21 2005 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
+
+ * lib/drb/drb.rb (check_insecure_method): use private_methods and
+ protected_methods instead of respond_to? to check method visibility.
+ [ruby-dev:26616]
+
+ * test/drb/drbtest.rb: ditto.
+
+ * test/drb/ut_drb.rb: ditto.
+
+Sat Jul 30 18:49:44 2005 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+
+ * ext/win32ole/win32ole.c: add WIN32OLE_TYPE#ole_typelib,
+ WIN32OLE_TYPE#implemented_ole_types.
+
+ * ext/win32ole/tests/testOLETYPE.rb: ditto.
+
+Fri Jul 29 16:12:02 2005 Keiju Ishitsuka <keiju@ruby-lang.org>
+
+ * lib/irb/context.rb: fix `irb --readline` option. [ruby-dev:40955]
+
+Fri Jul 29 09:59:38 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (rb_call0): fix calling zsuper from a method with anonymous
+ rest argument. [ruby-dev:26639]
+
+ * eval.c (rb_yield_0): push yielded node instead of yielding.
+ fixed: [yarv-dev:549]
+
+Thu Jul 28 21:49:17 2005 IWATSUKI Hiroyuki <don@na.rim.or.jp>
+
+ * parse.y (rb_parser_end_seen_p): exclude from ripper.
+ <http://moonrock.jp/~don/d/200507.html#d28_t2>
+
+ * sprintf.c (clearerr): remove standard macro before re-definition.
+ <http://moonrock.jp/~don/d/200507.html#d28_t3>
+
+Thu Jul 28 18:09:55 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/stubs.c: When --enable-tcltk-stubs, the initialize
+ routine creates a Tcl/Tk interpreter and deletes it. However,
+ init cost of Tk's MainWindow is not so small. And that makes it
+ impossible to use libraries written with Tcl functions only on
+ an environment without a graphical display. This changes support
+ delaying initialization of Tk_Stubs until the script needs Tk.
+
+ * ext/tk/stubs.h: New file. Define prototypes and return codes of
+ functions on stubs.c.
+
+ * ext/tk/tcltklib.c: Support delaying initialization of Tk_Stubs
+ until the script needs Tk.
+
+ * ext/tk/tcltklib.c: Show friendly error messages for errors on
+ initialization.
+
+ * ext/tk/tcltklib.c: Avoid SEGV on ip_finalize() when ruby is
+ exiting and $DEBUG is true. (Not fix. If you know the reason of
+ why, please fix it.)
+
+ * ext/tk/tkutil/tkutil.c (ary2list, ary2list2): bug fix on handling
+ of encoding.
+
+ * ext/tk/lib/multi-tk.rb: MultiTkIp#eval_string and bg_eval_string
+ don't work properly.
+
+ * ext/tk/lib/tk.rb: Forget extending Tk::Encoding module to Tk.
+
+ * ext/tk/lib/tk/variable.rb: TkVarAccess fails to initialize the
+ object for an element of a Tcl's array variable.
+
+Thu Jul 28 17:23:37 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * parse.y (f_larglist): allow block argument in lambda parameter
+ list without parenthesis.
+
+Thu Jul 28 17:14:01 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * hash.c (each_i): typo fixed. [ruby-dev:26622]
+
+Thu Jul 28 15:04:11 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * parse.y (f_arg): better argument name duplication check
+
+ * parse.y (new_args_gen): factored out name duplication check for
+ optional and rest arguments.
+
+ * parse.y (new_bv_gen): allow shadowing outer local variables;
+ warning remains.
+
+Thu Jul 28 13:46:06 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (ripper_warningS): the argument was omitted.
+ [ruby-dev:26621]
+
+Thu Jul 28 11:30:57 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * parse.y (f_larglist): allow bv_decl at the end of lambda
+ argument list. [EXPERIMENTAL]
+
+ * parse.y (new_bv_gen): allow local variable shadowing, with
+ warning in verbose mode.
+
+Wed Jul 27 23:23:54 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * gc.c (obj_free): make message format consistent with one from
+ gc_mark(). [ruby-talk:149668]
+
+ * sprintf.c (quad_t): prepare quad_t as well. [ruby-talk:149668]
+
+Wed Jul 27 22:11:37 2005 Kouhei Sutou <kou@cozmixng.org>
+
+ * sample/rss/tdiary_plugin: removed. because the plugin
+ is imported in the tDiary plugin packages.
+
+Wed Jul 27 19:11:53 2005 Minero Aoki <aamine@loveruby.net>
+
+ * lib/fileutils.rb (cd): follow :noop option change. (This patch
+ is contributed by Doug Kearns)
+
+Wed Jul 27 16:25:59 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * parse.y (lambda): Perl6 style -> lambda expression. [NEW]
+ [VERY EXPERIMENTAL]
+
+Wed Jul 27 10:43:14 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * gc.c (id2ref): must not assign pointers to long int. use
+ LONG_LONG instead if SIZEOF_LONG < SIZEOF_VOIDP.
+ [ruby-talk:149645]
+
+ * ruby.h: use LONG_LONG to simplify the change.
+ [ruby-talk:149645]
+
+Wed Jul 27 10:59:02 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * dir.c (dir_each): rewinddir(3) before iteration.
+ [ruby-talk:149628]
+
+Wed Jul 27 02:34:58 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (rb_f_throw): replace all '0x%lx' by '%p'.
+ [ruby-talk:149553]
+
+ * missing/vsnprintf.c (BSD_vfprintf): '%p' need to handle 64bit
+ size pointer. [ruby-talk:149553]
+
+Tue Jul 26 22:41:28 2005 Minero Aoki <aamine@loveruby.net>
+
+ * ext/ripper/lib/ripper/sexp.rb: new method Ripper.sexp_raw.
+
+ * ext/ripper/lib/ripper/sexp.rb (Ripper.sexp): returns more
+ readable tree. This is suggested by Kirill A. Shutemov.
+
+Tue Jul 26 22:05:12 2005 Minero Aoki <aamine@loveruby.net>
+
+ * lib/net/http.rb: merge a patch contributed by Daniel Berger,
+ with some modification. (RubyForge #2128)
+
+Tue Jul 26 18:11:33 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ruby.h: support LLP64 model. [ruby-talk:149524]
+
+Tue Jul 26 12:57:40 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * ext/openssl/openssl_missing.c: include <openssl/engine.h> before
+ <openssl/x509_vfy.h> to avoid compilation error of mswin32.
+ suggested by NAKAMURA Usaku.
+
+Mon Jul 25 23:48:55 2005 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/win32.[ch]: (rb_w32_vsnprintf, rb_w32_snprintf): removed.
+
+Mon Jul 25 21:30:46 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * common.mk: Borland MAKE doesn't look for file names which have paths
+ from VPATH. fixed: [ruby-dev:26604]
+
+ * ruby.h (NORETURN, DEPRECATED): moved just after config.h.
+
+ * {win32,wince}/Makefile.sub: vsnprintf() is in missing now.
+
+ * {bcc32,win32,wince}/Makefile.sub: moved CPPFLAGS only for ruby
+ source to XCFLAGS.
+
+Mon Jul 25 14:10:02 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/multi-tk.rb: fix en-bugged part in the last commit.
+
+Mon Jul 25 13:45:18 2005 NAJIMA Hiroki <najima@mickey.ai.kyutech.ac.jp>
+
+ * io.c: check HAVE_SYS_IOCTL_H before including the header.
+ [ruby-dev:26610]
+
+Sat Jul 23 16:48:12 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * ext/openssl/ossl_engine.c (ossl_engine_s_load): should check
+ OPENSSL_NO_STATIC_ENGINE.
+
+Sat Jul 23 11:46:30 2005 Tanaka Akira <akr@m17n.org>
+
+ * eval.c (rb_fd_select): the all three fd_sets must be long enough for
+ select. fixed: [ruby-talk:149059]
+
+Sat Jul 23 10:01:41 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * sprintf.c (rb_vsprintf, rb_sprintf): new functions return new String,
+ using missing/vsnprintf.c. [ruby-dev:26580]
+
+ * missing/vsnprintf.c: made the output changeable.
+
+Fri Jul 22 21:06:08 2005 Tadashi Saito <shiba@mail2.accsnet.ne.jp>
+
+ * bignum.c (rb_big_eq): reduce isnan(). [ruby-dev:26600]
+
+ * numeric.c (flo_eq, flo_gt, flo_ge, flo_lt, flo_le): ditto.
+
+Fri Jul 22 15:02:39 2005 Kouhei Sutou <kou@cozmixng.org>
+
+ * lib/rss/rss.rb: moved copyright description to lib/rss.rb.
+
+ * lib/rss.rb: added for convenience.
+
+ * sample/rss/re_read.rb: added #to_s sample.
+
+ * sample/rss/blend.rb: use 'require "rss"' instead of
+ 'require "rss/*"'.
+ * sample/rss/list_description.rb: ditto.
+ * sample/rss/rss_recent.rb: ditto.
+ * sample/rss/tdiary-plugin/rss-recent.rb: ditto.
+
+ * sample/rss/tdiary-plugin/rss-recent.rb: 0.0.6 -> 0.0.7.
+
+Fri Jul 22 14:37:43 2005 Kouhei Sutou <kou@cozmixng.org>
+
+ * lib/rss/parser.rb (RSS::Parser#initialize): accept HTTP/FTP
+ URI and local file path too.
+
+ * test/rss/test_parser.rb (RSS::TestParser#test_parse): test
+ for the above.
+
+Fri Jul 22 07:01:42 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/tkutil/tkutil.c (tk_conv_args): forget to revert
+ thread_critical and gc_disable when raise ArgumentError.
+
+ * ext/tk/lib/remote-tk.rb: RemoteTkIp doesn't need to include TkUtil.
+
+ * ext/tk/tcltklib.c: add TclTkIp#has_mainwindow? method.
+
+ * ext/tk/lib/tk.rb: add Tk.has_mainwindow? method.
+
+ * ext/tk/lib/multi-tk.rb: add MultiTkIp#has_mainwindow? method.
+
+ * ext/tk/lib/remote-tk.rb: add RemoteTkIp#has_mainwindow? method.
+
+ * ext/tk/lib/multi-tk.rb: slave IP fail to exit itself when $SAFE==4.
+
+ * ext/tk/lib/multi-tk.rb: remove constants from MultiTkIp module to
+ avoid access from external.
+
+ * ext/tk/lib/multi-tk.rb: check_root flag is ignored on slave IPs'
+ mainloop.
+
+ * ext/tk/lib/multi-tk.rb: hang-up Tk.mainloop called on a slave IP
+ with $SAFE==4.
+
+ * ext/tk/lib/multi-tk.rb: MultiTkIp#bg_eval_proc doesn't work
+ properly.
+
+ * ext/tk/lib/multi-tk.rb: add MultiTkIp#set_cb_error(proc) and
+ cb_error(exc) to log errors at callbacks on safe slave IPs.
+
+ * ext/tk/lib/multi-tk.rb: fail to get an available slave IP object
+ when call Tk.mainloop in the block which is given to new_* method,
+ because cannot finish initialize while the root widget is alive.
+
+ * ext/tk/lib/multi-tk.rb: fail to control a slave IP when Tk.mainloop
+ runs on the IP.
+
+Thu Jul 21 01:00:00 2005 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * ext/nkf/nkf-utf8/{nkf.c,utf8tbl.c,config.h}:
+ import 1.76
+ [ruby-dev:26592] nkf constification
+
+Wed Jul 20 19:18:52 2005 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * io.c (S_ISREG): need to define S_ISREG before it is used first.
+
+Wed Jul 20 18:33:15 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * io.c (wsplit_p): patch for the environment where
+ fcntl(F_GETFL, O_NONBLOCK) is not supported. in that case,
+ set FMODE_WSPLIT without fcntl check. [ruby-dev:26566]
+
+Wed Jul 20 18:07:11 2005 Tanaka Akira <akr@m17n.org>
+
+ * io.c (rb_io_ctl): update FMODE_WSPLIT_INITIALIZED and FMODE_WSPLIT
+ by F_SETFL.
+
+Wed Jul 20 10:04:51 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * variable.c (rb_class_path): need to adjust snprintf() len for
+ terminating NUL. [ruby-dev:26581]
+
+Wed Jul 20 03:58:52 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * ext/socket/socket.c: sorry, BeOS also uses HAVE_CLOSESOCKET,
+ so reverted.
+
+ * ext/socket/extconf.rb: should not define HAVE_CLOSESOCKET
+ on windows.
+
+Wed Jul 20 03:12:21 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * ext/socket/socket.c: should not undef close() on win32.
+ it's defined to rb_w32_close(), otherwise handle leaks.
+ [ruby-Bugs-2131]
+
+Wed Jul 20 00:48:16 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * error.c (syserr_initialize): don't use str before StringValue()
+ check. [ruby-dev:26579]
+
+Tue Jul 19 22:47:29 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * error.c (syserr_initialize): add 1 byte for snprintf() size for
+ NUL at the end. [ruby-dev:26574]
+
+Tue Jul 19 17:16:34 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * signal.c (trap): remove sigexit(); handle "EXIT" via sig_exec().
+ [ruby-dev:26440]
+
+ * io.c (rb_io_inspect): replace sprintf() with "%s" format all
+ over the place by snprintf() to avoid integer overflow.
+
+Tue Jul 19 14:10:50 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * ext/tk/tcltklib.c: rbtk_eventloop_depth is used as int.
+
+ * ext/tk/tcltklib.c: rbtk_pending_exception is tested with
+ NIL_P, so should assign Qnil instead of 0 (Qfalse).
+
+ * ext/tk/tcltklib.c (ip_invoke_real): fixed memory leak when
+ ip is deleted.
+
+Tue Jul 19 13:19:46 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/tk/variable.rb: For symmetry, add TkVariable#string. It
+ returns a string even if the default value type of the TkVariable
+ object is not "string".
+
+Mon Jul 18 21:39:18 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * eval.c (rb_call0): make the pointer to NODE volatile
+ instead of NODE itself.
+
+Mon Jul 18 14:32:21 2005 Tanaka Akira <akr@m17n.org>
+
+ * eval.c (rb_call0): make body volatile to avoid possible optimization
+ problem.
+ [ruby-dev:26195]
+
+Mon Jul 18 12:23:27 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * ext/io/wait/wait.c: wrong backport from trunk, and compile error on
+ platforms fd_set is not a bit set. fixed: [ruby-dev:26562]
+
+Mon Jul 18 09:36:25 2005 Tanaka Akira <akr@m17n.org>
+
+ * rubyio.h (FMODE_WSPLIT, FMODE_WSPLIT_INITIALIZED): new constant.
+
+ * io.c (wsplit_p): new function.
+ (io_fflush): split writing data by PIPE_BUF if wsplit_p is true in
+ multi-threaded mode.
+ (io_fwrite): ditto.
+ [ruby-dev:26540]
+
+Mon Jul 18 05:00:00 2005 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * ext/nkf/nkf-utf8/nkf.c: import nkf.c 1.73
+ fix: TestKconv 1F
+
+Sun Jul 17 13:46:54 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/io/wait/extconf.rb, ext/io/wait/wait.c: Win32 platforms support.
+
+Sat Jul 16 23:43:16 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * enumerator.c (Init_Enumerator): wrong argument specs.
+ [ruby-core:05481]
+
+Sat Jul 16 15:52:50 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * win32/win32.[hc]: constified socket functions. [ruby-dev:26553]
+
+Fri Jul 15 23:59:03 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/rdoc/parsers/parse_c.rb (handle_class_module): handle a
+ module enclosed in a built-in module. fixed: [ruby-talk:148239]
+
+ * lib/rdoc/parsers/parse_c.rb (find_body): allow macros as methods.
+
+ * lib/rdoc/parsers/parse_c.rb (find_call_seq): allow :nodoc: modifier
+ in C. [ruby-core:04572]
+
+Fri Jul 15 23:20:03 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * enumerator.c (Init_Enumerator): use an internal directly.
+
+Fri Jul 15 07:58:10 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * lib/webrick/server.rb (WEBrick::GenericServer#accept_client):
+ sockets should be non-blocking mode. [ruby-dev:26405]
+
+ * lib/webrick/utils.rb (WEBrick::Utils.set_non_blocking): new method.
+
+Fri Jul 15 00:11:36 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * enum.c (enumeratorize): create new enumerator for current method if
+ no block is given.
+
+ * enumerator.c: moved from ext/enumerator.
+
+Thu Jul 14 18:27:35 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * win32/win32.c (rb_w32_strerror): should return correct message
+ for ENAMETOOLONG and ENOTEMPTY. (bcc32) [ruby-dev:26533]
+
+ * win32/win32.c (rb_w32_strerror): stripped CR LF on the tail.
+ (bcc32) [ruby-dev:26533]
+
+Thu Jul 14 00:45:42 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * LEGAL (ext/nkf/nkf-utf8): updated from nkf1.7 to nkf-utf8.
+
+Wed Jul 13 22:44:00 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y: remove static variables. [ruby-dev:26530]
+
+Wed Jul 13 19:36:29 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * win32/win32.c (rb_w32_mkdir): should set EEXIST (not EACCES)
+ if file or directory already exists. (bcc32) [ruby-dev:26508]
+
+ * win32/win32.c (rb_w32_rmdir): should set ENOTDIR (not EINVAL)
+ if it is not directory. (bcc32, win32)
+
+ * win32/win32.c (rb_w32_rmdir, rb_w32_unlink): restore
+ FILE_ATTRIBUTE_READONLY flag on function failure.
+
+Wed Jul 13 12:40:00 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/tcltklib.c: TclTkLib.do_one_event doesn't work.
+
+ * ext/tk/lib/tk.rb: Tk.thread_update is available.
+
+Tue Jul 12 23:32:11 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/mkmf.rb: keep curdir unexpanded.
+
+Mon Jul 11 23:50:17 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c, intern.h (rb_proc_call, rb_obj_method, rb_method_call):
+ export.
+
+ * ext/enumerator/enumerator.c (enumerator_with_index): [EXPERIMENTAL]
+ added a new method Enumerator#with_index. [ruby-talk:147728]
+
+Mon Jul 11 08:31:29 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * regparse.c (fetch_escaped_value): mask values following \c in
+ regexp. fixed: [ruby-dev:26500]
+
+Sun Jul 11 05:18:17 2005 Michael Neumann <mneumann@ruby-lang.org>
+
+ * lib/xmlrpc/server.rb (XMLRPC::Server): Switch from GServer over to
+ WEBrick. This makes file lib/xmlrpc/httpserver.rb obsolete (at least it is
+ no further used by the XML-RPC library).
+
+Mon Jul 11 02:50:23 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * lib/webrick/cgi.rb (WEBrick::CGI::Socket#request_line):
+ mistook to merge the patch of [ruby-dev:26235] at
+ revision 1.11.
+
+Sun Jul 10 23:58:04 2005 Tanaka Akira <akr@m17n.org>
+
+ * lib/pathname.rb (Pathname#unlink): try Dir.unlink first to
+ avoid unlink a directory by root.
+ cf. [ruby-dev:26237]
+
+Sun Jul 10 12:47:01 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/debug.rb (debug_command): added a deficient format specifier.
+ fixed: [ruby-core:05419]
+
+Sat Jul 9 22:02:37 2005 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+
+ * ext/win32ole/win32ole.c (ole_method_dispid): convert dispid
+ in Ruby and C by INT2NUM and NUM2INT.
+
+ * ext/win32ole/win32ole.c (ole_invoke2): ditto.
+
+ * ext/win32ole/test/testWIN32OLE.rb: ditto.
+
+ * ext/win32ole/test/testOLEMETHOD.rb: ditto.
+
+Fri Jul 8 15:45:04 2005 Kouhei Sutou <kou@cozmixng.org>
+
+ * lib/rss/rss.rb (RSS::VERSION): 0.1.4 -> 0.1.5.
+
+ * test/rss/test_version.rb (RSS::TestVersion#test_version):
+ ditto.
+
+ * lib/rss/0.9.rb (RSS::Rss::Channel::Item::Category):
+ domain attribute of <category> is optional. Thanks to
+ Chris Lee <clee@kde.org>.
+
+ * test/rss/test_parser.rb (RSS::TestParser#test_category20):
+ adjusted test case.
+
+Wed Jul 6 18:45:53 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * object.c (rb_obj_pattern_match): now returns nil.
+ [ruby-core:05391]
+
+Mon Jul 4 14:35:52 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * sample/svr.rb: service can be stopped by ill-behaved client; use
+ tsvr.rb instead.
+
+Mon Jul 4 13:25:21 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * missing/erf.c: original erf.c by prof. Okumura is confirmed to
+ be public domain. reverted BSD implementation.
+
+Wed Jul 6 11:15:21 2005 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/win32.c (open_ifs_socket): new function.
+
+ * win32/win32.c (StartSockets, rb_w32_socket): use open_ifs_socket()
+ instead of socket().
+ all changes are derived from [ruby-core:5388].
+
+Wed Jul 6 00:15:00 2005 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * ext/nkf/nkf-utf8/{nkf.c,utf8tbl.c,config.h}:
+ imported nkf.c 1.70 (support UTF-8-MAC)
+
+ * ext/nkf/lib/kconv.rb: add :utf8mac and :internalunicode
+
+Tue Jul 5 23:44:06 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * instruby.rb: expand source library path.
+
+Tue Jul 5 23:27:14 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * array.c (sort_2): get rid of yet another bcc's bug.
+ fixed: [ruby-core:05152]
+
+ * eval.c (rb_thread_save_context): must not switch contexts during
+ re-allocating stack. fixed: [ruby-core:05219]
+
+Tue Jul 5 15:15:10 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/tkutil.c: fix typo.
+
+Tue Jul 5 14:52:56 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/tcltklib.c: bug fix on treating Unicode strings.
+
+ * ext/tk/tcltklib.c: add methods to treat encoding mode.
+
+ * ext/tk/MANUAL_tcltklib.eng: add description of TclTkLib#encoding,
+ encoding_system, and so on.
+
+ * ext/tk/MANUAL_tcltklib.eucj: ditto.
+
+ * ext/tk/tkutil/tkutil.c: fail to create a Tcl's list string from
+ an array including multiple kind of encoded strings.
+
+ * ext/tk/lib/tk.rb: ditto.
+
+ * ext/tk/lib/multi-tk.rb: 2nd arg of _{to|from}UTF8 is omissible.
+
+ * ext/tk/lib/remote-tk.rb: ditto.
+
+ * ext/tk/lib/tk.rb: override TclTkLib#encoding and encoding= to
+ use TkCore::INTERP.encoding and encoding=.
+
+ * ext/tk/lib/tk.rb: when "require 'tk'" and $KCODE=='NONE', check
+ DEFAULT_TK_ENCODING to decide Ruby/Tk's system encoding mode.
+
+ * ext/tk/lib/tk/encodedstr.rb: check both of Tk.encoding and
+ Tk.encoding_system. Tk.encoding has higher priority.
+
+ * ext/tk/lib/tk/optiondb.rb: ditto.
+
+ * ext/tk/lib/tk/spinbox.rb: ditto.
+
+ * ext/tk/lib/tk/validation.rb: ditto.
+
+ * ext/tk/lib/tk/namespace.rb: arguemnts for TclTkIp#_merge_tklist
+ should be UTF-8 strings.
+
+Mon Jul 4 19:29:32 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * lib/set.rb: test change to follow revision 1.28. (duck typing?)
+
+Mon Jul 4 11:23:50 2005 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * test/{dbm,gdbm,sdbm}/test_{dbm,gdbm,sdbm}.rb: skip some tests
+ which using fork on fork-less platforms.
+
+Sun Jul 3 23:26:30 2005 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * test/wsdl/document/test_rpc.rb: compare formatted time string of
+ Time objects instead of comparing Time objects itself to avoid
+ unintended conflict of usec part. [ruby-dev:26220]
+
+Sat Jul 2 22:41:04 2005 Tanaka Akira <akr@m17n.org>
+
+ * ext/socket/socket.c (unix_send_io, unix_recv_io): support x86-64 and
+ IA64.
+
+Sat Jul 2 17:06:23 2005 Tanaka Akira <akr@m17n.org>
+
+ * defines.h (FLUSH_REGISTER_WINDOWS): defined for IA64.
+ (flush_register_windows): declare flush_register_windows.
+
+ * eval.c (flush_register_windows): new function.
+
+ * ruby.h (NOINLINE): move up to be effective in defines.h.
+
+Sat Jul 2 15:19:41 2005 Tanaka Akira <akr@m17n.org>
+
+ * configure.in: check select_large_fdset.
+
+ * eval.c: use select_large_fdset to support large file descriptors
+ on Solaris. [ruby-dev:26404]
+
+Fri Jul 1 17:55:08 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * bignum.c (rb_big_neg): may be accessing bogus pointer value.
+
+Fri Jul 1 15:50:12 2005 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * missing/erf.c: need to include some headers for some platforms.
+
+ * win32/win32.h (copysign, scalb): define for compatibility with
+ other platforms. [ruby-dev:26430]
+
+Fri Jul 1 15:37:42 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * missing/crypt.c: modified to make it compilable on platforms
+ other than BSD. [ruby-dev:26430]
+
+ * missing/erf.c: ditto. code from <exp.c> merged.
+
+Fri Jul 1 12:44:56 2005 Tanaka Akira <akr@m17n.org>
+
+ * lib/open-uri.rb (OpenURI.open_http): refine post_connection_check
+ call.
+
+Fri Jul 1 11:34:08 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * missing/crypt.c: replaced with 4.4BSD version.
+
+ * missing/erf.c: ditto.
+
+ * missing/vsnprintf.c: removed the third provision from the old
+ BSD license. [ruby-core:05177]
+
+Fri Jul 1 01:45:21 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * enum.c (enum_min, enum_max): must not return Qundef.
+ fixed: [ruby-core:05299]
+
+Fri Jul 1 00:18:40 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/delegate.rb (Delegator::respond_to): respond_to? must check
+ destination object. [ruby-talk:146894]
+
+Thu Jun 30 23:52:12 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * signal.c (trap): non-string trap hander was ignored.
+ fixed: [ruby-dev:26417]
+
+Thu Jun 30 19:00:21 2005 Keiju Ishitsuka <keiju@ruby-lang.org>
+
+ * lib/irb/ruby-lex.rb (RubyLex::identify_number): alternative implements
+ for [ruby-dev:26410]. And support a numeric form of 0d99999.
+
+Thu Jun 30 17:28:10 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/irb/ruby-lex.rb (RubyLex::identify_number): should not treat
+ plain zero as an octal number. [ruby-dev:26410]
+
+Thu Jun 30 15:13:16 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (rb_eval): pre-evaluate argument for unambiguous
+ evaluation order. [ruby-dev:26383]
+
+Thu Jun 30 14:48:23 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * lib/net/http.rb (Net::HTTP#connect, Net::HTTP#request): should
+ not send proxy username and password to origin servers.
+ [ruby-dev:25673]
+
+ * lib/net/http.rb (Net::HTTP::ProxyDelta#edit_path): should not
+ send HTTPS scheme URL to origine servers. [ruby-dev:25689]
+
+Thu Jun 30 09:53:56 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/delegate.rb (Delegator::method_missing): forward unknown
+ method to the destination. suggested by
+ <christophe.poucet@gmail.com>. [ruby-talk:146776]
+
+Wed Jun 29 00:03:20 2005 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
+
+ * regparse.c (fetch_token): avoid warning of unused goto tag.
+ [ruby-dev:26389]
+
+Tue Jun 28 21:59:29 2005 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
+
+ * dir.c, eval.c, parse.y, process.c, ruby.c: avoid warning "unused
+ variable" [ruby-dev:26387]
+
+ * dir.c (glob_helper): avoid warning "enumeration value `RECURSIVE'
+ not handled in switch" [ruby-dev:26392]
+
+Tue Jun 28 01:52:00 2005 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * ext/nkf/lib/kconv.rb: add Kconv::VERSION
+ * ext/nkf/lib/kconv.rb (conv): can process arrayed options
+ * ext/nkf/nkf-utf8/nkf.c: imported Revision 1.69
+ * ext/nkf/nkf-utf8/utf8tbl.c: imported Revision 1.9
+
+Sat Jun 25 23:30:51 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * process.c (detach_process_watcher): terminate process watcher
+ thread right after rb_waitpid() succeed. [ruby-talk:146430]
+
+Sat Jun 25 17:12:20 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * lib/webrick/httputils.rb (WEBrick::HTTPUtils.parse_query): should
+ discard if key=val pair is empty. patch from Gary Wright.
+
+Sat Jun 25 15:49:18 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * enum.c (enum_min, enum_max, enum_min_by, enum_max_by): do not ignore
+ nil as the first element.
+
+Sat Jun 25 15:13:54 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * lib/set.rb (Set#==): [ruby-dev:25206] (ported from ruby_1_8 branch)
+
+Sat Jun 25 11:37:00 2005 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * ext/nkf/lib/kconv.rb: remove constants
+ Iconv_Shift_JIS, Uconv_EUC_JP, Iconv_UTF8
+ * ext/nkf/lib/kconv.rb: add module functions to Kconv
+ conv, {eucjp, shiftjis, utf8}?, guess_as_symbol
+ * ext/nkf/lib/kconv.rb: add instance methods to String
+ conv, {eucjp, shiftjis, utf8}?
+ * ext/nkf/lib/kconv.rb: add aliases Kconv.to_* and String#to_*
+
+Fri Jun 24 17:00:00 2005 Shigeo Kobayashi <shigeo@tinyforest.jp>
+
+ * ext/bigdecimal/bigdecimal.c: patch from "NATORI Shin"
+ (u-tokyo.ac.jp) applied to fix rounding bug.
+
+Fri Jun 24 13:17:45 2005 akira yamada <akira@ruby-lang.org>
+
+ * lib/uri/common.rb, lib/uri/generic.rb: fixed typo in documents and
+ replaced some existent domain name with "example.com".
+
+Fri Jun 24 12:23:19 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/tk.rb: fix typo on Tk.grid_propagate.
+
+ * ext/tk/lib/tk.rb: Tk.event_generate and TkWindow#event_generate
+ accept TkEvent::Event object as context argument.
+
+ * ext/tk/lib/tk/event.rb: add TkEvent::Event#valid_fields and
+ valid_for_generate to get field parameters of event_generate.
+
+Thu Jun 23 23:55:59 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * runruby.rb: should load built rbconfig.rb.
+
+Thu Jun 23 16:53:15 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/tk/canvastag.rb: TkcGroup.new cannot include given items.
+ TkcGroup#exclude calls wrong method.
+ Add alias TkcGroup#add [ruby-talk:146049].
+
+ * ext/tk/lib/tk/canvas.rb: TkCanvas#dtag and some subcommands of
+ TkCanvas#addtag fail to treat a TkcTag argument.
+
+ * ext/tk/lib/tk/event.rb: add TkEvent::Event#generate to help to send
+ current event to other widgets.
+
+Mon Jun 20 18:44:04 2005 Tanaka Akira <akr@m17n.org>
+
+ * eval.c (FUNCTION_CALL_MAY_RETURN_TWICE): DUMMY_SETJMP is replaced
+ because setjmp is not enough to fix getcontext and SPARC register
+ window problem.
+
+Mon Jun 20 17:15:51 2005 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * ext/dbm/dbm.c (fdbm_closed): new method DBM#closed?
+
+ * ext/gdbm/gdbm.c (fgdbm_closed): new method GDBM#closed?
+
+ * ext/sdbm/init.c (fsdbm_closed): new method SDBM#closed?
+
+ * test/dbm/test_dbm.rb, test/gdbm/test_gdbm.rb, test/sdbm/test_sdbm.rb
+ (teardown): close all db objects before deleting data files.
+
+ * win32/win32.{ch} (unlink): hook runtime function to change
+ file attribute before unlinking.
+ merge from 1.8, see [ruby-dev:26360]
+
+Mon Jun 20 02:15:35 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * gc.c (define_final): document fix: finalizers never get called
+ before target object is destroyed.
+
+Mon Jun 20 01:26:49 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * ext/openssl/openssl_missing.c, ext/openssl/ossl.h,
+ ext/openssl/ossl_asn1.c, ext/openssl/ossl_bio.c,
+ ext/openssl/ossl_pkcs12.h, ext/openssl/ossl_x509req.c: avoid
+ compiler warnings. suggested by Michal Rokos.
+
+Sun Jun 20 00:22:02 2005 Michael Neumann <mneumann@ruby-lang.org>
+
+ * lib/xmlrpc/utils.rb: Patch by Nobuhiro IMAI fixes the following
+ problem: Default value modification on
+ Module#public_instance_methods (false -> true) breaks
+ s.add_handler(XMLRPC::iPIMethods("sample"), MyHandler.new) style
+ security protection.
+
+ * lib/xmlrpc/client.rb: Aliased XMLRPC::Client#new2 as
+ XMLRPC::Client#new_from_uri, and #new3 as #new_from_hash.
+
+Sun Jun 19 14:09:07 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * gc.c (run_final): reduce unnecessary object allocation during
+ finalization.
+
+ * gc.c (rb_gc_call_finalizer_at_exit): deferred finalizers list should
+ be cleared before calling them. fixed: [ruby-talk:145790]
+
+Sat Jun 18 01:15:36 2005 Shugo Maeda <shugo@ruby-lang.org>
+
+ * ext/readline/readline.c (readline_readline): do not set
+ rl_{in,out}stream.
+
+ * ext/readline/readline.c (readline_s_set_input): new method.
+
+ * ext/readline/readline.c (readline_s_set_output): new method.
+
+ * lib/irb/input-method.rb: set Readline.input and Readline.output.
+
+Fri Jun 17 13:01:40 2005 Tanaka Akira <akr@m17n.org>
+
+ * lib/time.rb (Time.parse): fix previous leap seconds support.
+ (Time.rfc2822): ditto.
+ (Time.xmlschema): ditto.
+
+Thu Jun 16 15:41:32 2005 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * ruby.c (load_file): '!' is already read. reported by gotoyuzo.
+
+Thu Jun 16 15:09:38 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * ext/tk/tcltklib.c (ip_rb_threadVwaitCommand): Tcl_Release
+ was missing.
+
+Thu Jun 16 13:34:48 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/tk.rb: add Tk.getMultiple{Open|Save}File() which return
+ an Array of selected files.
+
+Thu Jun 16 12:53:24 2005 Tanaka Akira <akr@m17n.org>
+
+ * lib/time.rb (Time.parse): "Fri Jan 1 08:59:60 +0900 1999" was
+ parsed as "Fri Jan 01 09:00:00 JST 1999" even on an environment
+ which supports leap seconds.
+ (Time.rfc2822): ditto.
+ (Time.xmlschema): ditto.
+
+Thu Jun 16 00:13:41 2005 Tanaka Akira <akr@m17n.org>
+
+ * lib/resolv.rb (Resolv::DNS::Resource#ttl): new attribute.
+ (Resolv::DNS::Resource#==): ignore @ttl.
+ (Resolv::DNS::Resource#hash): ditto.
+ (Resolv::DNS::Message::MessageDecoder#get_rr): save TTL in a
+ Resource object.
+ based on [ruby-core:5190] by Eric Hodel.
+
+Wed Jun 15 18:26:39 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/tk.rb: support "tk inactive" sub-command [for Tcl/Tk8.5a3]
+
+ * ext/tk/lib/tk/namespace.rb: support "namespace path" sub-command and
+ 'namespace ensemble' sub-command [for Tcl/Tk8.5a3]
+
+Tue Jun 14 02:02:43 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/tkutil/tkutil.c: add TkUtil::CallbackSubst.subst_arg(m, ...)
+ & _define_attribute_aliases(hash) to get substitution-argument from
+ attributes (e.g. subst_arg(:x,:y,:num,:button) --> "%x %y %b %b ").
+
+ * ext/tk/lib/tk/event.rb: use _define_attribute_aliases().
+
+Mon Jun 13 13:03:08 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * hash.c (ruby_setenv): fixed SEGV. [ruby-dev:26186]
+
+Mon Jun 13 01:54:20 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * signal.c (sigexit): call rb_thread_signal_exit() instead of
+ rb_exit(). [ruby-dev:26347]
+
+ * eval.c (rb_thread_signal_exit): a new function to exit on main
+ thread.
+
+ * eval.c (rb_thread_switch): exit status should be retrieved from
+ ruby_errinfo.
+
+ * eval.c (rb_f_exit): ensure exit(0) should call
+ exit(EXIT_SUCCESS).
+
+Mon Jun 13 01:20:02 2005 Tanaka Akira <akr@m17n.org>
+
+ * eval.c (rb_gc_mark_threads): curr_thread may not be part of the
+ thread list. [ruby-dev:26312]
+
+Sat Jun 11 22:34:44 2005 Minero Aoki <aamine@loveruby.net>
+
+ * parse.y: missing arg_paren event. This patch is contributed by
+ Mitchell N Charity.
+
+Fri Jun 10 23:55:17 2005 Tanaka Akira <akr@m17n.org>
+
+ * eval.c (unknown_node): show more information. [ruby-dev:26196]
+
+Fri Jun 10 23:35:34 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * missing/mkdir.c: remove. [ruby-core:05177]
+
+Fri Jun 10 22:54:18 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * missing.h: fd_set stuffs need sys/types.h. fixed: [ruby-core:05179]
+
+Thu Jun 9 23:58:12 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/Win32API/Win32API.c (Win32API_Call): disable global
+ optimization. fixed: [ruby-core:05143]
+
+Thu Jun 9 23:35:22 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * enum.c (enum_inject): default the result value to Qundef to use
+ first element as initial value if not given.
+
+Thu Jun 9 19:55:41 2005 Tanaka Akira <akr@m17n.org>
+
+ * eval.c (ruby_longjmp): new macro to call longjmp, setcontext, etc.
+ (ruby_setjmp): new macro to call setjmp, getcontext, etc.
+ (ruby_setjmp): call setjmp before getcontext to avoid IA64 register
+ stack problem.
+ [ruby-talk:144939]
+
+ * gc.c (Init_stack): remove IA64_MAGIC_STACK_LIMIT.
+
+Thu Jun 9 18:24:16 2005 Tanaka Akira <akr@m17n.org>
+
+ * configure.in, eval.c, gc.c: use libunwind only on HP-UX.
+ [ruby-dev:26297]
+
+Thu Jun 9 14:46:32 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * hash.c (env_aset): do not treat nil as key-removing value.
+ [ruby-list:40865]
+
+ * parse.y (method_call): allow aref expression ([]) to take a
+ block.
+
+ * parse.y (block_dup_check): a function to check duplication of
+ a block argument and an actual block.
+
+Thu Jun 9 11:55:34 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/delegate.rb (SimpleDelegator::__setobj__): need check for
+ recursive delegation. [ruby-core:04940]
+
+Thu Jun 9 11:50:43 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/cgi.rb: add underscore aliases CGI::escape_html,
+ CGI::unescape_html, CGI::escape_element, CGI::unescape_element.
+ [ruby-core:05058]
+
+Wed Jun 8 18:47:10 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * misc/ruby-mode.el (ruby-expr-beg): fix looking point drift.
+
+Wed Jun 8 12:25:59 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * array.c (rb_ary_nitems): add the block feature to Array#nitems.
+ suggested by Bertram Scharpf <lists@bertram-scharpf.de> in
+ [ruby-talk:134083].
+
+Wed Jun 8 11:11:34 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * bignum.c (get2comp): revert all prior changes, and calculate
+ proper 2's complement for negative numbers.
+
+Wed Jun 8 08:33:10 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * enum.c (enum_min_by, enum_max_by): return nil if no iteration.
+ fixed: [ruby-dev:26245]
+
+ * eval.c (rb_need_block): ensure a block is given.
+
+ * eval.c (backtrace): skip successive frames sharing same node.
+
+Wed Jun 8 01:27:06 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * bignum.c (bignorm): fixed a bug in normalizing negative numbers
+ reported from Honda Hiroki <hhonda@ipflex.com>. normalizing
+ should not trim leading zeros from negative numbers.
+
+ * bignum.c (rb_cstr_to_inum): must remove leading zeros for this
+ case.
+
+Wed Jun 8 00:15:08 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ext/socket/socket.c (ruby_getaddrinfo__aix): merged a patch from
+ KUBO Takehiro <kubo at jiubao.org> to support AIX. [ruby-list:40832]
+
+Wed Jun 8 00:09:01 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/yaml/rubytypes.rb (Array::to_yaml): merged a patch from
+ Tilman Sauerbeck <tilman at code-monkey.de>. [ruby-core:05055]
+
+ * lib/yaml/rubytypes.rb (Hash::to_yaml): ditto.
+
+Wed Jun 8 00:00:01 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ext/curses/curses.c (curses_insertln): merged a patch from
+ TAKAHASHI Tamotsu <ttakah at lapis.plala.or.jp>. [ruby-ext:02305]
+
+Tue Jun 7 19:34:15 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/irb/init.rb (IRB::IRB.rc_file_generators): more flexible
+ IRB.rc_file_generators. [ruby-core:05163]
+
+Tue Jun 7 18:39:31 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/thread.rb: RDoc documentation from Eric Hodel
+ <drbrain@segment7.net> added. [ruby-core:05148]
+
+Tue Jun 7 18:30:04 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/mkmf.rb (create_makefile): add .SUFFIXES from depend file.
+ fixed: [ruby-dev:26294]
+
+Tue Jun 7 17:20:39 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * parse.y (parser_yylex): allow ';;' to be block terminator in
+ place of 'end'. [highly experimental]
+
+ * misc/ruby-mode.el (ruby-block-end-re): allow ';;' to be a
+ negative indent trigger. [highly experimental]
+
+ * parse.y (parser_yylex): small error fixed.
+
+Tue Jun 7 16:45:49 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * parse.y (parser_yylex): "respond_to?:foo" should be interpreted
+ as "respond_to? :foo" at the command level. [ruby-talk:144303]
+
+Tue Jun 7 16:32:53 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * sprintf.c (rb_f_sprintf): raise exception on debug mode (-d),
+ not verbose mode (-v/-w). [ruby-core:05123]
+
+ * sprintf.c (rb_f_sprintf): warn always on verbose mode.
+
+Tue Jun 7 10:30:49 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/multi-tk.rb: slave-ip fails to call procedures
+ delegated by master-ip.
+
+Mon Jun 6 16:35:18 2005 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * ext/ripper/depend: add .y to .SUFFIXES for nmake.
+
+Sun Jun 5 23:00:35 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/tk/console.rb: create console when required
+
+ * ext/tk/sample/tkextlib/tile/demo.rb: fix TypeError & create Console
+
+Sun Jun 5 10:23:52 2005 Tanaka Akira <akr@m17n.org>
+
+ * signal.c (ruby_signal): don't set SA_RESTART.
+ [ruby-dev:26276]
+
+Sat Jun 4 14:55:18 2005 Tanaka Akira <akr@m17n.org>
+
+ * test/dbm/test_dbm.rb: merged from ext/dbm/testdbm.rb.
+
+ * test/gdbm/test_gdbm.rb: merged from ext/gdbm/testgdbm.rb.
+
+ * test/sdbm/test_sdbm.rb: renamed from ext/sdbm/testsdbm.rb with
+ modification to use test/unit.
+
+Fri Jun 3 23:23:02 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * intern.h (rb_fdset_t): deal with fd bit sets over FD_SETSIZE.
+ fixed: [ruby-dev:26187]
+
+ * eval.c (rb_fd_init, rb_fd_term, rb_fd_zero, rb_fd_set, rb_fd_clr,
+ rb_fd_isset, rb_fd_copy): ditto.
+
+ * io.c (rb_io_wait_readable, rb_io_wait_writable, rb_f_select): ditto.
+
+ * ext/io/wait/wait.c (io_wait): ditto.
+
+ * ext/socket/socket.c (wait_connectable, unix_recv_io): ditto.
+
+Fri Jun 3 14:06:12 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/multi-tk.rb: fix typo.
+
+Thu Jun 2 23:42:57 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y: pragma support on ripper. [ruby-dev:26266]
+
+Thu Jun 2 00:02:16 2005 Minero Aoki <aamine@loveruby.net>
+
+ * struct.c: accessing >10 member caused segmentation fault.
+ [ruby-dev:26247]
+
+ * test/ruby/test_struct.rb: test it.
+
+Wed Jun 1 11:30:09 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * bcc32/Makefile.sub: can use single quote character in DESTDIR.
+ [ruby-dev:26205]
+
+ * bcc32/Makefile.sub: Dir.glob in 1.9 doesn't treat \ as path separator.
+ [ruby-dev:26254]
+
+Wed Jun 1 00:11:06 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * parse.y (method_call): new experiment: "(expr)(args...)" to
+ invoke "expr.call(args...)". [EXPERIMENTAL]
+
+Tue May 31 23:43:41 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * parse.y (command): revert implicit "call" for local variables.
+
+Tue May 31 15:52:45 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * lib/webrick/httpserver.rb (WEBrick::HTTPServer#run): should
+ break the loop if the socket reached to EOF. [ruby-talk:142285]
+
+ * lib/webrick/httpserver.rb (WEBrick::HTTPServer#run): send response
+ without reading the whole request body if keep-alive is diabled.
+ [experimental]
+
+Mon May 30 23:48:29 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/tk/macpkg.rb: add PACKAGE_NAME information of Tcl/Tk
+ Extension.
+
+ * ext/tk/lib/tk/msgcat.rb: ditto.
+
+ * ext/tk/lib/tk/winpkg.rb: ditto.
+
+ * ext/tk/lib/tkextlib/*: ditto.
+
+Sat May 28 16:39:21 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * test/openssl/test_x509store.rb: add test for expired CRL
+ and refine some assertions.
+
+Sat May 28 05:15:44 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * ext/openssl/ossl_x509store.c (ossl_x509stctx_set_time): should
+ not set internal flag directry.
+
+Sat May 28 02:00:11 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * lib/webrick/cgi.rb (WEBrick::CGI::Socket#request_line):
+ ENV["REQUEST_URI"] is better to get correct Request-URI
+ than ENV["SCRIPT_NAME"] + ENV["PATH_INFO"]. [ruby-dev:26235]
+
+Fri May 27 16:32:04 2005 WATANABE Hirofumi <eban@ruby-lang.org>
+
+ * lib/mkmf.rb: use the semicolon as the path separator
+ in the environment of MSYS. fixed: [ruby-dev:26232]
+
+Thu May 26 20:31:21 2005 Minero Aoki <aamine@loveruby.net>
+
+ * lib/fileutils.rb (remove_entry_secure): add documentation.
+
+ * lib/fileutils.rb (remove_entry_secure): should not invoke
+ unlink(2) against a directory.
+
+Thu May 26 08:29:19 2005 Akiyoshi, Masamichi <akiyoshi@hp.com>
+
+ * vms/vmsruby_private.c, vms/vmsruby_private.h: private routines
+ for VMS port are added.
+
+ * eval.c (ruby_init): change to call VMS private intialization routine.
+
+Thu May 26 07:39:07 2005 Minero Aoki <aamine@loveruby.net>
+
+ * lib/fileutils.rb (rm_r): use lchown(2), not chown(2).
+ [ruby-dev:26226]
+
+ * lib/fileutils.rb (cd): remove :noop option. (feature change)
+
+ * lib/fileutils.rb (cp_r): should copy symlink as symlink, for
+ also tree root. (feature change)
+
+ * lib/fileutils.rb (cp_r): new option :dereference_root.
+
+ * lib/fileutils.rb: new method remove_entry.
+
+ * lib/fileutils.rb: new method remove_entry_secure.
+
+ * lib/fileutils.rb: add documentation.
+
+Thu May 26 06:08:11 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/tk.rb: add shortcut-methods of tk_call + tk_split_list
+
+Wed May 25 20:06:27 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/tk.rb: TkComm#tk_split_*list fail to split a kind of SJIS
+ strings. To avoid the trouble, add arguments to control converting
+ encoding, and do split on a UTF8 string.
+
+ * ext/tk/lib/multi-tk.rb: modify to attend encoding.
+
+ * ext/tk/lib/remote-tk.rb: ditto.
+
+ * ext/tk/lib/tk/itemconfig.rb: ditto.
+
+ * ext/tk/lib/tk/listbox.rb: ditto.
+
+ * ext/tk/lib/tk/namespace.rb: ditto.
+
+ * ext/tk/lib/tk/panedwindow.rb: ditto.
+
+ * ext/tk/lib/tk/text.rb: ditto.
+
+ * ext/tk/lib/tk/textmark.rb: ditto.
+
+ * ext/tk/lib/tk/texttag.rb: ditto.
+
+ * ext/tk/lib/tk/variable.rb: ditto.
+
+ * ext/tk/lib/tk/winfo.rb: ditto.
+
+ * ext/tk/lib/tkextlib/iwidgets/scrolledlistbox.rb: ditto.
+
+ * ext/tk/lib/tkextlib/iwidgets/scrolledtext.rb: ditto.
+
+ * ext/tk/lib/tk.rb: add TkWindow#lower_window/raise_window and
+ Tk#lower_window/raise_window by reason of method-name conflict
+
+ * ext/tk/lib/tk/canvas.rb: bug fix on TkCanvas#delete when given
+ non-TkcItem arguments.
+
+ * ext/tk/lib/tkextlib/iwidgets/scrolledcanvas.rb: ditto.
+
+Wed May 25 19:48:12 2005 Minero Aoki <aamine@loveruby.net>
+
+ * lib/fileutils.rb (rm_r): does chown(2). [ruby-dev:26199]
+
+Wed May 25 12:59:48 2005 Tanaka Akira <akr@m17n.org>
+
+ * lib/open-uri.rb (OpenURI::Meta::RE_QUOTED_STRING): a content of
+ quoted-string should be zero or more characters.
+
+Tue May 24 23:42:16 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * numeric.c (fix_pow): support Fixnum ** Float case directly
+ without coercing. [ruby-talk:142697] [ruby-talk:143054]
+
+Tue May 24 16:57:24 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ruby.c (require_libraries): caused SEGV when continuation jumped
+ in to the required library code.
+
+Tue May 24 17:45:59 2005 Shugo Maeda <shugo@ruby-lang.org>
+
+ * test/readline/test_readline.rb: do not test libedit.
+ fixed: [ruby-dev:26217]
+
+Tue May 24 06:45:31 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * misc/ruby-mode.el (ruby-font-lock-syntactic-keywords): string
+ literals to be matched non-greedy.
+
+Tue May 24 00:39:14 2005 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * test/soap/calc: method name 'set' was able to crash with a class Set.
+ [ruby-dev:26210]
+
+ * test/wsdl/document/test_rpc.rb: dateTime comparison failed under
+ TZ=right/Asia/Tokyo (with leap second.) [ruby-dev:26208]
+
+Mon May 23 16:23:06 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/extconf.rb: Framework support on MacOS X Tiger.
+
+ * ext/tk/README.tcltklib: add description of Framework support options.
+
+Mon May 23 15:07:34 2005 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/Makefile.sub ($(PROGRAM)): add dependency on $(LIBRUBY_SO).
+ [experimental]
+
+Mon May 23 12:21:37 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * re.c (make_regexp): should not return junk address during
+ compile time. [ruby-dev:26206]
+
+Sun May 22 21:54:06 2005 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * lib/{soap,wsdl,xsd}, test/{soap,wsdl,xsd}: imported soap4r/1.5.4.
+
+ == SOAP client and server ==
+
+ === for both client side and server side ===
+
+ * improved document/literal service support.
+ style(rpc,document)/use(encoding, literal) combination are all
+ supported. for the detail about combination, see
+ test/soap/test_style.rb.
+
+ * let WSDLEncodedRegistry#soap2obj map SOAP/OM to Ruby according to
+ WSDL as well as obj2soap. closes #70.
+
+ * let SOAP::Mapping::Object handle XML attribute for doc/lit service.
+ you can set/get XML attribute via accessor methods which as a name
+ 'xmlattr_' prefixed (<foo name="bar"/> -> Foo#xmlattr_name).
+
+ === client side ===
+
+ * WSDLDriver capitalized name operation bug fixed. from
+ 1.5.3-ruby1.8.2, operation which has capitalized name (such as
+ KeywordSearchRequest in AWS) is defined as a method having
+ uncapitalized name. (converted with GenSupport.safemethodname
+ to handle operation name 'foo-bar'). it introduced serious
+ incompatibility; in the past, it was defined as a capitalized.
+ define capitalized method as well under that circumstance.
+
+ * added new factory interface 'WSDLDriverFactory#create_rpc_driver'
+ to create RPC::Driver, not WSDLDriver (RPC::Driver and WSDLDriver
+ are merged). 'WSDLDriverFactory#create_driver' still creates
+ WSDLDriver for compatibility but it warns that the method is
+ deprecated. please use create_rpc_driver instead of create_driver.
+
+ * allow to use an URI object as an endpoint_url even with net/http,
+ not http-access2.
+
+ === server side ===
+
+ * added mod_ruby support to SOAP::CGIStub. rename a CGI script
+ server.cgi to server.rb and let mod_ruby's RubyHandler handles the
+ script. CGIStub detects if it's running under mod_ruby environment
+ or not.
+
+ * added fcgi support to SOAP::CGIStub. see the sample at
+ sample/soap/calc/server.fcgi. (almost same as server.cgi but has
+ fcgi handler at the bottom.)
+
+ * allow to return a SOAPFault object to respond customized SOAP fault.
+
+ * added the interface 'generate_explicit_type' for server side
+ (CGIStub, HTTPServer). call 'self.generate_explicit_type = true'
+ if you want to return simplified XML even if it's rpc/encoded
+ service.
+
+ == WSDL ==
+
+ === WSDL definition ===
+
+ * improved XML Schema support such as extension, restriction,
+ simpleType, complexType + simpleContent, ref, length, import,
+ include.
+
+ * reduced "unknown element/attribute" warnings (warn only 1 time for
+ each QName).
+
+ * importing XSD file at schemaLocation with xsd:import.
+
+ === code generation from WSDL ===
+
+ * generator crashed when there's '-' in defined element/attribute
+ name.
+
+ * added ApacheMap WSDL definition.
+
+ * sample/{soap,wsdl}: removed.
+
+Sun May 22 19:11:35 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * ext/openssl/lib/openssl/ssl.rb (OpenSSL::SSL::SSLServer#intialize):
+ should initialize session id context. [ruby-core:4663]
+
+ * ext/openssl/ossl_ssl.c (ossl_sslctx_setup): add session id support.
+
+Sun May 22 12:30:58 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * intern.h, parse.y (ruby_pragma): removed. fixed: [ruby-dev:26198]
+
+ * parse.y (parser_pragma): pragma name was ignored.
+
+Sun May 22 02:39:57 2005 Minero Aoki <aamine@loveruby.net>
+
+ * lib/fileutils.rb (rm_r): new option :secure to avoid
+ time-to-check-to-time-to-use security problem. [ruby-dev:26100]
+
+ * lib/fileutils.rb (remove_file, remove_dir): try chmod(700) only
+ on Windows.
+
+ * lib/fileutils.rb: does not depend on find.rb.
+
+ * lib/fileutils.rb: new method chmod_R.
+
+ * lib/fileutils.rb (chown_R): did not work.
+
+Sat May 21 10:23:21 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * bcc32/Makefile.sub: tds files were not deleted when DESTDIR
+ included '\' path delimiter. [ruby-dev:26193]
+
+Fri May 20 15:52:18 2005 Shugo Maeda <shugo@ruby-lang.org>
+
+ * ext/readline/readline.c (readline_attempted_completion_function):
+ return 2 items if completion_proc returns only 1 item (for libedit).
+
+Fri May 20 01:24:33 2005 Shugo Maeda <shugo@ruby-lang.org>
+
+ * ext/readline/extconf.rb: check rl_vi_editing_mode() and
+ rl_emacs_editing_mode().
+
+Thu May 19 23:33:09 2005 Shugo Maeda <shugo@ruby-lang.org>
+
+ * ext/readline/readline.c: supported libedit. fixed: [ruby-core:4858]
+
+ * ext/readline/extconf.rb: added new option --enable-libedit.
+
+ * test/readline/test_readline.rb: added assertions for
+ Readline::HISTORY.
+
+ * lib/irb/input-method.rb: do not use Readline::HISTORY.pop.
+
+Wed May 18 23:42:25 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * error.c (exc_exception): reverted to call Exception#initialize
+ directly. fixed: [ruby-dev:26177]
+
+Wed May 18 17:38:51 2005 WATANABE Hirofumi <eban@ruby-lang.org>
+
+ * dir.c (glob_helper): check whether path is "" before calling
+ do_opendir. [ruby-dev:26183]
+
+Wed May 18 13:40:48 2005 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/win32.c (NtInitialize): fix typo.
+
+Wed May 18 11:07:47 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * dir.c (glob_helper): get rid of using String. [ruby-dev:26180]
+
+ * eval.c (ruby_options), win32/win32.c (NtInitialize): move argument
+ intialization back. [ruby-dev:26180]
+
+Tue May 17 11:49:18 2005 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/win32.c (unixtime_to_filetime): use localtime() instead of
+ gmtime() when using FileLocalTimeToFileTime().
+
+Mon May 16 22:42:52 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * win32/win32.h, {bcc32,win32,wince}/Makefile.sub: moved rb_[ugp]id_t
+ to get rid of redefinition warnings on mingw.
+
+ * class.c (rb_class_init_copy): singleton class is disallowed to copy,
+ from its definition. fixed: [ruby-talk:142749]
+
+ * parse.y (pragma_encoding): add prototype to suppress false warning
+ by VC.
+
+ * process.c (proc_spawn_v): use rb_w32_aspawn on Win32.
+
+Mon May 16 03:29:01 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * win32/win32.{h,c}: define rb_[pgu]id_t.
+
+Mon May 16 00:21:02 2005 Tanaka Akira <akr@m17n.org>
+
+ * lib/pathname.rb (Pathname#unlink): use SystemCallError instead of
+ Errno::EISDIR because EISDIR is not portable.
+ [ruby-core:5001]
+
+Sun May 15 22:28:10 2005 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
+
+ * lib/drb/drb.rb (DRbObject#method_missing): use raise(exception).
+ [ruby-dev:26164]
+
+Sun May 15 18:56:35 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in, ruby.h: define rb_[pgu]id_t macros instead of typedefs
+ to get rid of types which might not be defined yet. [ruby-dev:26165]
+
+Sun May 15 14:35:46 2005 Tanaka Akira <akr@m17n.org>
+
+ * lib/pathname.rb (Pathname#unlink): unlink a symlink to a directory
+ was failed. [ruby-core:4992]
+
+Sun May 15 09:57:30 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * win32/win32.c (unixtime_to_filetime): deal with DST.
+ [ruby-talk:141817]
+
+Sat May 14 23:59:11 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * error.c (exc_exception, {exit,name_err,syserr}_initialize): call
+ Execption#initialize. fixed: [ruby-talk:142593]
+
+Sat May 14 23:56:41 2005 Erik Huelsmann <ehuels@gmail.com>
+
+ * configure.in: Check for the availability of pid_t, gid_t and uid_t and
+ remove AC_TYPE_UID_T. fixed: [ruby-core:04745]
+
+ * defines.h: Remove pid_t typedef.
+
+ * ruby.h: Define rb_pid_t, rb_gid_t and rb_uid_t in accordance with
+ the available system types.
+
+ * process.c: Change instances of pid_t and gid_t to their rb_*
+ counterparts.
+
+ * ext/pty/pty.c: Change pid_t to rb_pid_t.
+
+ * vms/config.h: Define HAVE_{P,G,U}ID_T to 1.
+
+ * win32/Makefile.sub: Remove #define for {g,u}id_t.
+
+ * win32/win32.c: Change pid_t to rb_pid_t.
+
+ * wince/Makefile.sub: Remove #define for {g,u}id_t.
+
+ * wince/sys/types.h: Remove definitions of {p,g,u}id_t.
+
+Sat May 14 11:47:57 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * intern.h (ruby_pragma): prototype. [ruby-core:04881]
+
+ * parse.y (parser_pragma): parse Emacsen hack.
+
+ * parse.y (parser_prepare): deal with specific syntax at the top.
+
+ * ruby.c (load_file): read the first line iff it started with shebang.
+
+Fri May 13 23:44:22 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/extmk.rb: keep srcdir unexpanded.
+
+ * lib/mkmf.rb (create_makefile): quote topdir and hdrdir if necessary.
+ fixed: [ruby-core:04932]
+
+ * lib/mkmf.rb (configuration), {bcc32,win32,wince}/Makefile.sub: make
+ also INSTALL_PROG and INSTALL_DATA system dependent.
+ fixed: [ruby-core:04931]
+
+Fri May 13 23:32:55 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (unknown_node): add volatile directive to prototype.
+
+Fri May 13 17:50:49 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * variable.c (generic_ivar_get): rb_attr_get should not warn.
+ [ruby-dev:26010]
+
+Thu May 12 17:41:00 2005 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * ext/nkf/nkf-utf8/nkf.c: follow nkf 2.0.5
+
+Thu May 12 16:50:40 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * lib/rdoc/parsers/parse_c.rb: more readability for mixing
+ progress "c..." and warning message.
+
+Thu May 12 15:50:56 2005 Tilman Sauerbeck <tilman@code-monkey.de>
+
+ * lib/rdoc/parsers/parse_c.rb: show parsing progress for C files.
+ [ruby-core:4341]
+
+Thu May 12 09:53:57 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * version.c (ruby_show_version): flush for non-tty stdout.
+
+Thu May 12 01:23:55 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (unknown_node): ignore broken NODE to get rid of accessing
+ possibly inaccessible address. fixed: [ruby-dev:26122]
+ should emit more useful information like [ruby-dev:26126], though.
+
+Wed May 11 15:58:39 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (break_jump): break should not cross functions.
+ [ruby-list:40818]
+
+Wed May 11 10:41:54 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * lib/tempfile.rb (Tempfile#unlink): fixed typo.
+
+Wed May 11 01:03:36 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (TMP_ALLOC): use macro NEW_NODE() to get rid of warnings on
+ platforms which have no alloca(). fixed: [ruby-talk:141301]
+
+Sun May 8 23:17:47 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/tk/timer.rb: fix typo.
+
+Sun May 8 21:00:50 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * hash.c (Init_Hash): remove custom "hash" and "eql?".
+ (ported from 1.8) [ruby-dev:26132]
+
+Sun May 8 16:50:25 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * lib/profiler.rb: fixed "undefined method `[]' for nil:NilClass"
+ [ruby-core:4775] [ruby-talk:140401] [ruby-dev:26118]
+
+Sat May 7 22:58:00 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/mkmf.rb (have_var): no libs argument is given.
+
+Fri May 6 08:08:37 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * hash.c:rb_hash_hash_i() should be static. [ruby-core:04815]
+
+ * re.c should include regint.h for declarations of oniguruma
+ functions. [ruby-core:04815]
+
+Sun May 1 09:15:17 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ruby.c (process_sflag): replace '-' in variable names with '_'.
+ [ruby-dev:26107]
+
+ * eval.c (rb_eval), parse.y (arg): reduce fixnum range literal at
+ parser. fixed: [ruby-dev:26113]
+
+Sat Apr 30 11:59:25 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (RUBY_FUNC_ATTRIBUTE): check for function attribute.
+ [ruby-dev:26109]
+
+ * eval.c, gc.c: moved noinline to configure.in.
+
+ * rubyio.h (DEPRECATED): moved to configure.in.
+
+ * ruby.h (DEPRECATED, NOINLINE): default definition.
+
+ * win{32,ce}/Makefile.sub (config.h): deprecated and noinline for
+ __declspec() are available for VC++7 or later.
+
+Sat Apr 30 06:57:39 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * lib/webrick/cgi.rb: new methods WEBrick::CGI#[], WEBrick::CGI#logger
+ and WEBrick::CGI#config. these are necessary to use an instance of
+ WEBrick::CGI as the first argument of HTTPServlet#get_instance.
+ (suggested by Tatsuki Sugiura)
+
+ * lib/webrick/cgi.rb
+ (WEBrick::CGI#initalize): set a dummy to @config[:ServerSoftware]
+ if SERVER_SOFTWARE environment variable is not given.
+ (WEBrick::CGI#start): req.path_info must be a String.
+ (WEBrick::CGI::Socket#request_line): treat REQUEST_METHOD, PATH_INFO
+ and SCRIPT_NAME to run in console.
+
+ * lib/webrick/httputils.rb (WEBrick::HTTPUtils.escape_path): should
+ not use String#split("/"). it removes trailing empty path component.
+
+Thu Apr 28 08:21:51 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ruby.c (set_arg0): use also environment variable space for setting
+ $0. [ruby-core:04774]
+
+Wed Apr 27 23:42:22 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * win32/Makefile.sub (OPTFLAGS): default global optimization to
+ disabled only for VC++6.
+
+Tue Apr 26 22:58:00 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/tcltklib.c (ip_invoke_core): call Tcl's "::unknown"
+ command when can't get information of target command.
+
+Mon Apr 25 13:54:55 2005 speakillof <speakillof@yahoo.co.jp>
+
+ * lib/rexml/encodings/SHIFT-JIS.rb: encoding and decoding were
+ swapped. [ruby-core:4772]
+
+Mon Apr 25 01:18:43 2005 Tanaka Akira <akr@m17n.org>
+
+ * oniguruma.h (OnigWarnFunc): add a variadic argument.
+ [ruby-core:4751]
+
+Sat Apr 23 19:49:21 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * ext/tk/tcltklib.c (ip_RubyExitCommand): exit with status code
+ via TclTkIp#_eval didn't work. [ruby-talk:139390]
+
+Sat Apr 23 11:45:29 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (rb_provided): should check also path name to be loaded.
+ fixed: [ruby-dev:26093]
+
+Fri Apr 22 16:55:35 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * ext/tk/tcltklib.c (ip_set_exc_message): fixed memory leak.
+
+ * ext/tk/tcltklib.c: eTkCallbackReturn was not initialized.
+
+Thu Apr 21 06:45:28 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ruby.c (ruby_incpush_expand, proc_options): expand relative path
+ given with -I option. [ruby-dev:26090]
+
+ * configure.in, lib/mkmf.rb, {bcc32,win32,wince}/Makefile.sub: improve
+ C++ support. [ruby-dev:26089]
+
+Thu Apr 21 01:53:09 2005 Minero Aoki <aamine@loveruby.net>
+
+ * lib/net/http.rb: add rdoc.
+
+Thu Apr 21 00:07:50 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/mkmf.rb (create_makefile): support platforms have file separator
+ other than /.
+
+ * {bcc32,win32,wince}/Makefile.sub (BUILD_FILE_SEPARATOR): separator
+ of building platform.
+
+ * {bcc32,win32,wince}/Makefile.sub (CP, INSTALL): use COPY command.
+
+Wed Apr 20 23:22:39 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * Makefile.in, common.mk: miniruby depends on MINIOBJS.
+
+ * dmydln.c (dln_load): dummy function to raise LoadError.
+
+ * cygwin/GNUmakefile.in, {bcc32,win32,wince}/Makefile.sub: miniruby
+ can't load extensions on Windows.
+
+Wed Apr 20 23:01:35 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * win32/ifchange.bat: delete testing files.
+
+Wed Apr 20 22:54:54 2005 Minero Aoki <aamine@loveruby.net>
+
+ * lib/net/http.rb: new method Net::HTTP.post_form.
+
+ * lib/net/http.rb: new method Net::HTTPHeader#set_form_data and
+ its alias #form_data=.
+
+ * lib/net/http.rb: Net::HTTPHeader#add_header -> add_field
+ (adjustted to Ruby 1.8).
+
+Wed Apr 20 10:53:30 2005 WATANABE Hirofumi <eban@ruby-lang.org>
+
+ * lib/rdoc/parsers/parse_rb.rb (lex_init): use IRB module.
+ [ruby-core:04737]
+
+Wed Apr 20 07:27:18 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * {bcc32,win32,wince}/configure.bat, {bcc32,win32,wince}/setup.mak:
+ add extout option.
+
+ * bcc32/setup.mak: make configuration variables overridable.
+
+Tue Apr 19 23:37:09 2005 WATANABE Hirofumi <eban@ruby-lang.org>
+
+ * lib/ftools.rb (File.safe_unlink): do not modify a symlinked file.
+
+Tue Apr 19 23:02:40 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (search_required): deal with features with path too.
+
+ * intern.h (rb_file_expand_path): prototype. fixed: [ruby-dev:26082]
+
+Tue Apr 19 08:38:07 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (search_required, rb_require_safe): expand path in
+ rb_features. [ruby-dev:26079]
+
+ * file.c (rb_find_file_ext): return absolute path.
+
+ * ext/extmk.rb: expand path for ext/**/extconf.rb.
+
+ * eval.c (search_required): handle static linked extensions.
+
+Mon Apr 18 15:37:35 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (rb_attr): attribute name check added.
+
+ * numeric.c (flo_plus): small typo fix.
+
+Mon Apr 18 11:25:14 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * ext/zlib/zlib.c (zstream_run): fixed SEGV. [ruby-core:4712]
+
+Sun Apr 17 23:57:49 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/extmk.rb (extmake, parse_args): do not expand destdir.
+
+ * ext/extmk.rb (relative_from): treat mere drive letter as an absolute
+ path.
+
+Sat Apr 16 17:01:16 2005 Kouhei Sutou <kou@cozmixng.org>
+
+ * sample/rss/tdiary_plugin/rss-recent.rb (rss_recent_cache_rss):
+ use the first date information of items as site date information
+ if channel doesn't have date information.
+
+Sat Apr 16 15:27:03 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (RUBY_PROG_INSTALL): not add -p option to INSTALL.
+ files need timestamps to be kept are only ar-archive on a few
+ platforms, and be installed by instruby.rb but not INSTALL.
+ fixed: [ruby-core:04721]
+
+ * mkconfig.rb: purge autoconf value variables.
+
+Sat Apr 16 10:33:48 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * bcc32/Makefile.sub: quick hack... prepend DESTDIR.
+ still have restriction on DESTDIR ("", "/", "e:")
+
+Sat Apr 16 03:59:42 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * ext/openssl/extconf.rb: check for OPENSSL_cleanse.
+
+ * ext/openssl/openssl_missing.h: ditto.
+
+Fri Apr 15 22:40:19 2005 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+
+ * ext/win32ole/tests/testWIN32OLE.rb: add test for WIN32OLE.codepage=
+
+ * ext/win32ole/tests/testOLETYPELIB.rb: correct expected message.
+
+Fri Apr 15 22:04:07 2005 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+
+ * ext/win32ole/win32ole.c(ole_invoke): retry after converting Qnil
+ to VT_EMPTY.
+
+Thu Apr 14 19:05:06 2005 Minero Aoki <aamine@loveruby.net>
+
+ * parse.y [ripper] (regexp): dispatch regexp option.
+ [ruby-Bugs:1688]
+
+ * ext/ripper/lib/core.rb: regenerated (interface changed).
+
+Thu Apr 14 18:59:43 2005 Minero Aoki <aamine@loveruby.net>
+
+ * lib/fileutils.rb (remove_file): ignore exceptions caused by
+ chmod.
+
+ * lib/fileutils.rb (remove_dir): try to get rights to rmdir.
+ [ruby-Bugs:1502]
+
+Thu Apr 14 18:51:02 2005 Keiju Ishitsuka <keiju@ruby-lang.org>
+
+ * lib/irb/ruby-lex.rb, lib/irb/slex.rb: bug fix of [ruby-Bugs-1745]
+
+ * lib/irb/ext/loader.rb, lib/irb/ext/save-history.rb:
+ fix location of @RCS_ID
+
+ * lib/irb/cmd/help.rb: a lost of release IRB 0.9.5.
+
+Thu Apr 14 15:10:30 2005 Keiju Ishitsuka <keiju@ruby-lang.org>
+
+ * lib/irb/notifier.rb, lib/irb/output-method.rb, lib/irb/ext/history.rb
+ fixed warning of 'ruby -w'
+
+Thu Apr 14 05:35:45 2005 Keiju Ishitsuka <keiju@ruby-lang.org>
+
+ * doc/irb/irb.rd.ja: a lost of release IRB 0.9.5.
+
+ * lib/irb/slex.rb: bug fix by [ruby-core:04707].
+
+Thu Apr 14 00:20:31 2005 Keiju Ishitsuka <keiju@ruby-lang.org>
+
+ * bin/irb lib/irb.rb lib/irb/...: IRB 0.9.5.
+
+Wed Apr 13 23:40:21 2005 Kouhei Sutou <kou@cozmixng.org>
+
+ * lib/rss/rss.rb (RSS::VERSION): 0.1.3 -> 0.1.4.
+
+ * lib/rss/rss.rb (RSS::Element#converter): fixed converter
+ transmission bug.
+
+Wed Apr 13 22:12:16 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/optparse.rb (OptionParser#order!): call handlers iff matches
+ non-switch.
+
+Wed Apr 13 21:20:35 2005 WATANABE Hirofumi <eban@ruby-lang.org>
+
+ * configure.in (mingw32): extract msvcr*.dll from objdump result.
+
+Wed Apr 13 19:25:31 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (mingw32): use actual runtime DLL name as ruby DLL
+ name and default load path.
+
+ * win32/Makefile.sub, win32/setup.mak: ditto.
+
+Tue Apr 12 19:30:36 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/optparse.rb (OptionParser#make_switch, OptionParser#order!):
+ added non-option and end-of-args handler. [ruby-talk:136878]
+ [EXPERIMENTAL]
+
+Tue Apr 12 15:33:09 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/tcltklib.c (ip_finalize): better modification than the
+ previous commit [ruby-dev:26029].
+
+Tue Apr 12 12:38:06 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/tcltklib.c (ip_finalize): fix SEGV when Tcl_GlobalEval()
+ modifies the argument string to eval.
+
+Tue Apr 12 02:21:55 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/tcltklib.c (ip_finalize): add existence check of
+ Tcl commands before calling Tcl_GlobalEval().
+
+Mon Apr 11 23:36:04 2005 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
+
+ * lib/drb/drb.rb: [druby-ja:123] fix: When reference of my object is
+ loaded, the object is tainted.
+
+ * test/drb/test_drb.rb: ditto.
+
+Mon Apr 11 22:18:23 2005 WATANABE Hirofumi <eban@ruby-lang.org>
+
+ * dir.c, file.c (lstat): avoid warnings for mingw.
+
+Mon Apr 11 20:11:06 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/tcltklib.c (ip_finalize): adhoc patch to avoid SEGV when exit
+ on Tcl/Tk8.3.x.
+
+Mon Apr 11 15:24:20 2005 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * lib/mkmf.rb (configuration): shouldn't output hdrdir twice.
+
+Sat Apr 9 18:20:31 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/tk/image.rb: support to create TkImage object without
+ creating a new image object on Tk.
+
+ * ext/tk/lib/tk/menu.rb: use TkCommandNames on create_self()
+
+ * ext/tk/lib/tk/root.rb: TkRoot.to_eval() returns '.'.
+
+ * ext/tk/lib/tk/text.rb: add methods to create a TkText::IndexString
+ from (x, y) coords.
+
+ * ext/tk/lib/tkextlib/tile/: add demo and update support status.
+
+Sat Apr 9 14:42:29 2005 Kouhei Sutou <kou@cozmixng.org>
+
+ * sample/rss/tdiary_plugin/rss-recent.rb: supported configuration
+ via Web browser.
+
+Fri Apr 8 20:17:48 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/extmk.rb (extmake): hdrdir needs to be defined also in
+ Config::CONFIG.
+
+ * lib/mkmf.rb (configuration, create_makefile): get rid of recursive
+ macro reference.
+
+Fri Apr 8 01:55:20 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/sample/demos-{en,jp}/goldberg.rb: reduced window size.
+ [ruby-dev:25992]
+
+Thu Apr 7 23:58:40 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/extmk.rb (extmake): keep directory names in Makefile as macros.
+
+ * lib/mkmf.rb (configuration, create_makefile): ditto.
+
+ * lib/mkmf.rb (CXX_EXT): separate C++ extensions.
+
+Thu Apr 7 17:24:17 2005 Shugo Maeda <shugo@ruby-lang.org>
+
+ * eval.c (rb_call0): "return" event hook should be always executed
+ if event_hooks is set.
+
+Thu Apr 7 14:33:09 2005 Kouhei Sutou <kou@cozmixng.org>
+
+ * test/rss/test_maker_dc.rb (test_date): added a test for #date=
+ and #dc_date=.
+
+Thu Apr 7 11:49:53 2005 Kouhei Sutou <kou@cozmixng.org>
+
+ * lib/rss/maker/dublincore.rb: _really_ supported multiple Dublin
+ Core items.
+
+ * test/rss/rss-assertions.rb (assert_multiple_dublin_core): added
+ an assertion for testing multiple Dublin Core items.
+
+ * test/rss/test_maker_dc.rb (test_rss10_multiple): added a test
+ for making multiple Dublin Core items.
+
+Wed Apr 6 16:06:30 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * test/ruby/test_env.rb (test_key): should test ENV.key instead of
+ ENV.index. [ruby-dev:25994]
+
+Tue Apr 5 16:01:12 2005 Kouhei Sutou <kou@cozmixng.org>
+
+ * lib/rss/*: refactored.
+ - gave a name to 'x'.
+ - undef_method -> remove_method for avoiding a warning in ruby 1.6.
+
+Tue Apr 5 15:45:33 2005 Kouhei Sutou <kou@cozmixng.org>
+
+ * sample/rss/tdiary_plugin/rss-recent.rb:
+ new option: @options['rss-recent.use-image-link']:
+ use image as link instread of text if available.
+
+ * sample/rss/tdiary_plugin/rss-recent.rb (RSS_RECENT_VERSION):
+ 0.0.5 -> 0.0.6.
+
+Tue Apr 5 15:15:26 2005 Kouhei Sutou <kou@cozmixng.org>
+
+ * lib/rss/dublincore.rb: supported multiple Dublin Core items.
+
+ * lib/rss/parser.rb: added class name registry for complex model
+ elements. (ex. have childlen elements, have some attributes and
+ a child element and so on.)
+
+ * lib/rss/maker/base.rb: added default current_element implementation.
+
+ * lib/rss/maker/dublincore.rb: supported multiple Dublin Core
+ items.
+
+ * lib/rss/maker/image.rb: supproted new Dublin Core API.
+
+ * lib/rss/trackback.rb (RSS::TrackBackUtils.new_with_value_if_need):
+ moved to RSS::Utils.
+
+ * lib/rss/utils.rb (RSS::Utils.new_with_value_if_need):
+ moved from RSS::TrackBackUtils.
+
+ * lib/rss/maker/image.rb: fixed invalid argument of
+ add_need_initialize_variable bug.
+
+ * lib/rss/maker/trackback.rb: ditto.
+
+ * lib/rss/rss.rb (Hash#merge): added for ruby 1.6.
+
+ * lib/rss/rss.rb (RSS::BaseModel.date_writer): changed to accept nil
+ for date value.
+
+ * test/test_dublincore.rb: added tests for plural accessor and
+ multiple Dublin Core items.
+
+ * test/test_setup_maker_1.0.rb: fixed swapped actual and expected
+ values.
+
+Mon Apr 4 23:17:52 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/tk.rb (TkComm#array2tk_list): accept enc-mode argument to
+ decide whether convert encoding of each element or not.
+
+ * ext/tk/lib/tk/variable.rb (TkVariable#value=): fail to convert the
+ encoding of array elements when assign an array to an TkVariable
+ object.
+
+Mon Apr 4 10:26:48 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * ext/tk/lib/tk/dialog.rb: fixed typo.
+
+Sat Apr 2 23:38:54 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (CP, INSTALL): get rid of less portable options.
+
+ * lib/mkmf.rb (configuration, create_makefile): correct configuration
+ variable.
+
+ * wince/configure.bat, wince/setup.mak: add prefix, extstatic and
+ rdoc options.
+
+ * lib/mkmf.rb (create_makefile): ensure library directories get made
+ before copying libraries there.
+
+Sat Apr 2 16:59:46 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/tk.rb: forgot to update RELEASE_DATE
+
+ * ext/tk/lib/tk/variable.rb: fix namespace trouble when autoloading
+
+ * ext/tk/lib/tk/palette.rb: define Tcl variable 'tkPalette' as global
+
+ * ext/tk/lib/tk/dialog.rb: use array2tk_list method when calling
+ Tk.ip_eval.
+
+ * ext/tk/lib/tk/autoload.rb: add autoload entry 'TkDialogObj' and
+ 'TkWarningObj'
+
+Sat Apr 2 13:23:17 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * hash.c (env_key): ENV.index is deprecated as well as Hash#index.
+ use ENV.key instead. [ruby-dev:25974]
+
+Sat Apr 2 02:19:11 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/tk.rb (TkWindow.initialize): accept 'without_creating'
+ option without 'widgetname' option to allow creating a widget object
+ which is used as an argument of Tcl/Tk's widget allocation commands.
+
+ * ext/tk/lib/tk/image.rb (TkImage.initialize): accept 'imagename'
+ option to create a image object by the given name.
+
+Thu Mar 31 22:23:51 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/mkmf.rb (SRC_EXT): exclude just case different suffixes on case
+ insensitive file system platforms.
+
+ * README.EXT, README.EXT.ja (Appendix C): utility functions.
+
+Thu Mar 31 14:08:43 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * ext/openssl/ossl_engine.c (ossl_engine_s_load): should return
+ value. [ruby-dev:25971]
+
+Thu Mar 31 11:07:50 2005 Kouhei Sutou <kou@cozmixng.org>
+
+ * lib/rss/parser.rb: @@setter -> @@setters.
+
+ * lib/rss/parser.rb
+ (RSS::BaseListener.register_uri)
+ (RSS::BaseListener.uri_registered?)
+ (RSS::BaseListener.install_get_text_element):
+ swapped the first argument and the second argument.
+
+ * lib/rss/taxonomy.rb: swapped the first argument and the second
+ argument for RSS::BaseListener.install_get_text_element.
+ * lib/rss/image.rb: ditto.
+ * lib/rss/syndication.rb: ditto.
+ * lib/rss/dublincore.rb: ditto.
+ * lib/rss/parser.rb: ditto.
+ * lib/rss/1.0.rb: ditto.
+ * lib/rss/2.0.rb: ditto.
+ * lib/rss/0.9.rb: ditto.
+ * lib/rss/content.rb: ditto.
+
+Thu Mar 31 11:00:36 2005 Kouhei Sutou <kou@cozmixng.org>
+
+ * lib/rss/parser.rb
+ (RSS::BaseListener.install_setter)
+ (RSS::BaseListener.register_uri): changed fallback way.
+
+Thu Mar 31 08:25:40 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * common.mk (RUBYOPT): clear for the environment RubyGems installed.
+
+ * common.mk (clean-local): keep $(PREP) files till distclean.
+
+ * common.mk (check): do all tests.
+
+Thu Mar 31 06:00:20 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * ext/openssl/ossl_engine.c (ossl_engine_s_load): should not raise
+ error even if the specified engine could not be loaded. (Dynamic
+ engines don't have fixed name to load.)
+
+Wed Mar 30 17:41:48 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/tcltklib.c: add TclTkIp#_create_console() method to create
+ a Tcl/Tk's console window.
+
+ * ext/tk/lib/multi-tk.rb: support TclTkIp#_create_console() method.
+
+ * ext/tk/lib/remote-tk.rb: ditto.
+
+ * ext/tk/lib/tk/console.rb: ditto.
+
+ * ext/tk/lib/tk.rb: update RELEASE_DATE
+
+ * ext/tk/sample/demo-*/check2.rb: use 'return' in the Proc object.
+
+ * ext/tk/sample/tkextlib/**: ditto.
+
+Tue Mar 29 22:20:49 2005 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
+
+ * test/rinda/test_rinda.rb: use DRbObject.new_with instead of reinit.
+ [ruby-dev:25961]
+
+Tue Mar 29 00:04:57 2005 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
+
+ * lib/drb/drb.rb: move method DRbObject#reinit to DRbObject.new_with.
+ extract method DRbObject.prepare_backtrace. add DRb.regist_server,
+ remove_server, fetch_server. change server in thread variable if
+ in-proc server. [druby-ja:113]
+
+ * lib/drb/gw.rb: ditto.
+
+Mon Mar 28 20:53:44 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/extmk.rb (extract_makefile): nothing to be removed when no file
+ was deleted.
+
+ * ext/extmk.rb (extmake): restore srcdir.
+
+Mon Mar 28 08:39:49 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/iconv/iconv.c (iconv_create): Iconv::Failure requires 3
+ arguments. (pointed out by NaHi)
+
+Sun Mar 27 00:56:58 2005 Minero Aoki <aamine@loveruby.net>
+
+ * lib/fileutils.rb (remove_file): ignore Errno::E* if force option
+ is set. [ruby-dev:25944]
+
+Sat Mar 26 22:51:33 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/tk.rb (_callback_entry_class?): add for checking whether
+ a class is available for a callback entry.
+
+ * ext/tk/lib/tk.rb (after_cancel): add Tk.after_cancel(afterID) method.
+
+ * ext/tk/lib/tk.rb (array2tk_list): change from private module method
+ of TkComm to public module method.
+
+ * ext/tk/lib/tk.rb (cget): add check that slot argument is not
+ empty string.
+
+ * ext/tk/lib/tk.rb (configinfo): ditto.
+
+ * ext/tk/lib/tk/itemconfig.rb (itemcget): add check that slot argument
+ is not empty string.
+
+ * ext/tk/lib/tk/itemconfig.rb (itemconfiginfo): ditto.
+
+ * ext/tk/lib/tk/entry.rb: add TkEntry#icursor and icursor= (alias of
+ cursor and cursor= method).
+
+ * ext/tk/lib/tk/font.rb: improve font treatment when the font name is
+ empty string.
+
+ * ext/tk/lib/tk/variable.rb: add :variable, :window and :procedure
+ type.
+
+ * ext/tk/lib/tk/variable.rb: improve treatment of array-type
+ tkvariable.
+
+ * ext/tk/lib/tkextlib/blt.rb: add commands for zooming.
+
+ * ext/tk/lib/tkextlib/blt/*: bug fix.
+
+ * ext/tk/lib/tkextlib/treectrl/tktreectrl.rb: bug fix and add methods
+ to call TreeCtrl commands for bindings.
+
+ * ext/tk/sample/tkextlib/blt/*: new sample scripts.
+
+ * ext/tk/sample/tkextlib/treectrl/*: ditto.
+
+Fri Mar 25 10:53:16 2005 WATANABE Hirofumi <eban@ruby-lang.org>
+
+ * configure.in (WIN32_LEAN_AND_MEAN): removed because a lot of
+ troubles. [ruby-list:40721]
+
+Thu Mar 24 23:10:44 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/mkmf.rb (macro_defined?): try to compile for an old compiler
+ which doesn't bail out at #error directive. [ruby-dev:25818]
+
+ * lib/mkmf.rb (check_sizeof): refine logging messages.
+
+Wed Mar 23 19:08:10 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * lib/webrick/utils.rb (WEBrick::Utils.create_listeners):
+ - should raise ArgumentError if no port is specified.
+ - even if the specified port is 0, all TCPServers should be
+ initialized with the port given to the first one.
+
+ * lib/webrick/server.rb (WEBrick::GenericServer#initialize): if :Port
+ parameter is 0, it should be updated with the port number which
+ ectually listened.
+
+Wed Mar 23 16:12:40 2005 Shugo Maeda <shugo@ruby-lang.org>
+
+ * parse.y (primary): fix lineno of rescue and ensure.
+
+Wed Mar 23 00:39:05 2005 Shugo Maeda <shugo@ruby-lang.org>
+
+ * test/ruby/test_settracefunc.rb (test_event): added tests for
+ "class" and "end" and "raise".
+
+Sun Mar 20 22:51:19 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/mkmf.rb (mkmf_failed): check if Makefile is created without
+ create_makefile.
+
+Sat Mar 19 23:48:10 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * misc/ruby-mode.el (ruby-expr-beg): returned true always.
+ fixed: [ruby-list:40683]
+
+Sat Mar 19 00:41:02 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/tk/font.rb: add some TkFont class methods to get font
+ information without creating a TkFont object.
+
+ * ext/tk/lib/tkextlib/treectrl/tktreectrl.rb: bug fix and define some
+ classes for components of Tk::TreeCtrl
+
+Thu Mar 17 17:42:13 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * struct.c (make_struct): allow non local-id field
+ names. [ruby-core:04575]
+
+ * struct.c (inspect_struct): ditto.
+
+Wed Mar 16 23:39:13 2005 Shugo Maeda <shugo@ruby-lang.org>
+
+ * test/ruby/test_settracefunc.rb: added test for c-return.
+
+Wed Mar 16 22:57:43 2005 Shugo Maeda <shugo@ruby-lang.org>
+
+ * eval.c (rb_call0): call_cfunc() should be protected.
+
+ * eval.c (rb_add_event_hook): use K&R style.
+
+ * eval.c (rb_remove_event_hook): ditto.
+
+Wed Mar 16 22:03:15 2005 Shugo Maeda <shugo@ruby-lang.org>
+
+ * eval.c (rb_add_event_hook): new function to add a hook function for
+ interpreter events.
+
+Wed Mar 16 18:08:32 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (rb_call0): reorganize "return" event post.
+
+ * eval.c (return_jump): no need to post "return" event here.
+
+Tue Mar 15 23:49:19 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/iconv/iconv.c (Init_iconv): InvalidEncoding also should include
+ Iconv::Failure.
+
+Tue Mar 15 23:12:36 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (recursive_check, recursive_push): more restrictive check.
+ fixed: [ruby-dev:25916]
+
+Tue Mar 15 16:38:31 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/tkutil/tkutil.c (ary2list): give wrong arguments to hash2kv()
+
+Mon Mar 14 19:39:33 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/tk/timer.rb (TkTimer): forgot to clear @return_value
+ when restarting
+
+ * ext/tk/lib/tk/sample/cd_timer.rb: new sample of TkRTTimer
+
+Mon Mar 14 12:21:03 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/tk/timer.rb (TkRTTimer): forgot to reset the callback
+ time. So, 'continue' do all callbacks between 'stop' and 'continue'.
+
+Mon Mar 14 08:14:56 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * object.c (str_to_id): raise ArgumentError for NUL containing
+ strings.
+
+Mon Mar 14 00:13:49 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/tk/timer.rb (TkRTTimer): correct calculation of offset
+ value. get a little better accuracy.
+
+ * ext/tk/sample/demos-en/widget: use a binding with no local variables
+ when eval a sample script.
+
+ * ext/tk/sample/demos-en/bind.rb: ditto.
+
+ * ext/tk/sample/demos-en/tcolor: ditto.
+
+ * ext/tk/sample/demos-jp/widget: ditto.
+
+ * ext/tk/sample/demos-jp/bind.rb: ditto.
+
+ * ext/tk/sample/demos-jp/tcolor: ditto.
+
+Sun Mar 13 22:19:17 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (recursive_pop): raise TypeError instead of fatal error.
+ fixed: [ruby-dev:25843]
+
+Sun Mar 13 10:09:17 2005 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
+
+ * test/rinda/test_rinda.rb: remove test_gc. [ruby-dev:25871]
+
+Sun Mar 13 02:32:54 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * ext/openssl/ossl_ssl.c (ossl_tmp_dh_callback): should get DH
+ parameter from the current SSL object.
+
+Sun Mar 13 02:09:03 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * ext/openssl/ossl_pkey_dh.c (ossl_create_dh): fix typo.
+ patch from IWATSUKI Hiroyuki. [ruby-dev:25867]
+
+ * ext/openssl/ossl_ssl.c (ossl_tmp_dh_callback): ditto.
+ (ossl_call_tmp_dh_callback): ditto
+
+Fri Mar 11 03:24:59 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * parse.y (primary): wrong var node was set for NODE_LAMBDA.
+ [ruby-core:04555]
+
+Thu Mar 10 19:10:29 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/tcltklib.c (lib_eventloop_ensure): mis-delete a timer handler
+ when exit from a recursive called eventloop
+
+ * ext/tk/lib/tk/timer.rb: new TkRTTimer class, which can works for a
+ realtime operation
+
+ * ext/tk/sample/tkrttimer.rb: sample of TkRTTimer class
+
+ * ext/tk/lib/tk/textmark.rb: move TkTextMark#+ and TkTextMark#- to
+ TkText::IndexModMethods
+
+ * ext/tk/lib/tk/text.rb: improve TkTextMark#+ and TkTextMark#-, and
+ add them to TkText::IndexModMethods module
+
+ * ext/tk/sample/tktextio.rb: add test part of "seek by text index
+ modifiers"
+
+Thu Mar 10 08:10:11 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * re.c (make_regexp): need to free internal regexp structure when
+ compilation fails. [ruby-talk:133228]
+
+Thu Mar 10 01:08:20 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * parse.y (bv_decl): remove initialize rule from block local
+ variable declaration.
+
+Wed Mar 9 23:55:34 2005 Tanaka Akira <akr@m17n.org>
+
+ * lib/pp.rb (PP::PPMethods#guard_inspect_key): support
+ __recursive_key__. [ruby-dev:25821]
+
+Wed Mar 9 19:42:21 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * ext/openssl/ossl_ssl.c: OpenSSL::SSL::SSLContexts suports callbacks:
+ - SSLContext#client_cert_cb is a Proc. it is called when a client
+ certificate is requested by a server and no certificate was yet
+ set for the SSLContext. it must return an Array which includes
+ OpenSSL::X509::Certificate and OpenSSL::PKey::RSA/DSA objects.
+ - SSLContext#tmp_dh_callback is called in key exchange with DH
+ algorithm. it must return an OpenSSL::PKey::DH object.
+
+ * ext/openssl/ossl_ssl.c:
+ (ossl_sslctx_set_ciphers): ignore the argument if it's nil.
+ (ossl_start_ssl, ossl_ssl_write): call rb_sys_fail if errno isn't 0.
+ [ruby-dev:25831]
+
+ * ext/openssl/ossl_pkey.c
+ (GetPrivPKeyPtr, ossl_pkey_sign): should call rb_funcall first.
+ (DupPrivPKeyPtr): new function.
+
+ * ext/openssl/ossl_pkey_dh.c: add default DH parameters.
+
+ * ext/openssl/ossl_pkey.h: ditto.
+
+ * ext/openssl/lib/openssl/cipher.rb: fix typo. [ruby-dev:24285]
+
+Wed Mar 9 18:09:51 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * parse.y (gettable_gen): warns if VCALL name is used as
+ out-of-scope block local variable. [EXPERIMENTAL]
+
+ * parse.y (opt_bv_decl): add explicit block local variable
+ declaration. raises error for name conflicts. [EXPERIMENTAL]
+
+Wed Mar 9 13:37:57 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/sample/tktextio.rb: fix bug of handling 'end' position.
+ support initial text, overwrite setting and pos_gravity control.
+
+Tue Mar 8 18:16:55 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/sample/tktextio.rb: New sample script. TkTextIO class in this
+ sample supports to use a text widget as if it is a I/O stream (such
+ like as StringIO class).
+
+Tue Mar 8 13:39:25 2005 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * ext/socket/mkconstants.rb: workaround for some of 4.4BSD-Lite
+ derived OSs.
+
+Tue Mar 8 12:36:17 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ext/socket/socket.c: document from Sam Roberts
+ <sroberts@uniserve.com> for getsockopt and setsockopt is merged.
+ [ruby-doc:824]
+
+Tue Mar 8 10:48:53 2005 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * eval.c (rb_exec_recursive): declaration should precede statements
+ before C99.
+
+Tue Mar 8 10:05:40 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * error.c (errno_missing): Errno.const_missing to allow references
+ to SyscallError exceptions not defined on the platform.
+ [ruby-core:04522]
+
+ * error.c (Init_syserr): Errno::NOERROR(0) for fallback exception.
+
+Tue Mar 8 01:19:00 2005 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * ext/nkf/nkf-utf8/nkf.c: follow nkf 1.66
+ fixed: [ruby-dev:25828]
+
+Mon Mar 7 21:29:40 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * lib/webrick/server.rb (WEBrick::GenericServer#start): should
+ restore @token if accept failure. suggested by Dominique Brezinski.
+ [ruby-core:04518]
+
+ * sample/webrick/httpsd.rb: fix typo in comment. suggested by
+ Kazuhiko Shiozaki.
+
+Mon Mar 7 21:01:37 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (rb_require_safe): get actual path string under safe level
+ when requested. fixed: [ruby-dev:25815]
+
+Mon Mar 7 16:46:02 2005 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * ext/openssl/ossl_ssl.c (ossl_start_ssl, ossl_ssl_read,
+ ossl_ssl_write): need to set errno on Win32 platform.
+
+Mon Mar 7 14:55:43 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (block_pass): should not push unique number if a block is
+ not an orphan. [ruby-dev:25808]
+
+Mon Mar 7 14:13:23 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * ext/openssl/lib/openssl/buffering.rb (Buffering#initialize):
+ should set @eof and @rbuffer.
+
+Mon Mar 7 10:28:00 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * object.c (inspect_obj): unintended space removal.
+ [ruby-dev:25810]
+
+ * eval.c (rb_exec_recursive): should not use NODE in disclosed
+ context. [ruby-dev:25812]
+
+ * io.c (rb_f_open): need not to check if to_open value is a
+ T_FILE. [ruby-dev:25812]
+
+Mon Mar 7 01:21:01 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/tkutil/tkutil.c: follow the change of st.c (committed
+ at Fri, 4 Mar 2005 15:47:47 +0900 by matz)
+
+Mon Mar 7 00:01:55 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/tcltklib.c: fail to call TclTkLib.mainloop when $SAFE==4
+
+Sun Mar 6 13:04:10 2005 Dee Zsombor <zsombor@ruby-lang.org>
+
+ * misc/ruby-electric.el: added.
+ * misc/Readme: updated.
+
+Sun Mar 6 11:47:10 2005 Sam Roberts <sroberts@uniserve.com>
+
+ * lib/pp.rb: rdoced. [ruby-core:4490]
+
+Sun Mar 6 11:36:37 2005 Tanaka Akira <akr@m17n.org>
+
+ * lib/pp.rb (File::Stat#pretty_print): Etc.getpwuid and Etc.getgrgid
+ may return nil. [ruby-talk:129826]
+ reported by Daniel Berger.
+
+Sun Mar 6 06:34:31 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * ext/openssl/ossl_ssl.c (ossl_start_ssl): should wait for that
+ the underlying IO become readable or writable if the error was
+ SSL_ERROR_WANT_READ or SSL_ERROR_WANT_WRITE. [ruby-dev:25795]
+
+ * ext/openssl/ossl_ssl.c (ossl_ssl_read, ossl_ssl_write): ditto.
+
+ * ext/openssl/lib/openssl/buffering.rb
+ (Buffering#consume_rbuf): pointless eof flag resetting is deleted.
+ (Buffering#read): should return an empty string if the specified
+ size is zero.
+ (Buffering#readpartial): new method.
+ (Buffering#readline): fix typo.
+ (Buffering#getc): return the first character of string correctly.
+ (Buffering#readchar): fix typo.
+ (Buffering#eof?): should read again it the input buffer is empty.
+ (Buffering#do_write): should rescue Errno::EAGAIN.
+ (Buffering#puts): use "\n" as the output field separator.
+
+ * ext/openssl/extconf.rb: get rid of GNUmakefile generation.
+
+ * text/openssl/test_pair.rb: test for IO like methods.
+
+ * test/ruby/ut_eof.rb: test about empty file.
+
+Sat Mar 5 17:48:31 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * dir.c (rb_glob): fixed mismatch of argument.
+
+ * dir.c (fnmatch): removed unnecessary code. (by string.c 1.219)
+
+ * win32/win32.c (NtInitialize): ditto. (by numeric.c 1.117)
+
+Sat Mar 5 16:50:00 2005 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * ext/nkf/nkf-utf8/nkf.c: follow nkf 1.65
+
+Sat Mar 5 16:29:26 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/multi-tk.rb: freeze callback-entry objects
+
+ * ext/tk/lib/tkextlib/tile.rb: support tile-0.6
+
+Sat Mar 5 12:52:08 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/mkmf.rb (create_makefile): allow putting spaces between target
+ and colon in depend file.
+
+Sat Mar 5 02:41:00 2005 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * file.c (eaccess): workaround for VC++8 runtime.
+
+ * win32/win32.c (ioinfo): VC++8 support.
+
+Fri Mar 4 19:39:55 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/rdoc/parsers/parse_c.rb (RDoc::C_Parser#do_includes): replace
+ also locally defined modules.
+
+ * ext/iconv/iconv.c: rdocified.
+
+ * ext/strscan/strscan.c: moved misplaced rdoc.
+
+Fri Mar 4 16:11:20 2005 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * eval.c (rb_exec_recursive): matched the declaration to prototype.
+
+ * ext/curses/curses.c: don't need to check HAVE_WCOLOR_SET excluding
+ window_color_set().
+
+ * ext/tk/tcltklib.c: fixed commit mistakes.
+
+Fri Mar 4 12:45:17 2005 Tilman Sauerbeck <tilman@code-monkey.de>
+
+ * lib/rdoc/parsers/parse_c.rb: allow whitespace after function names.
+ [ruby-core:4296]
+
+ * lib/rdoc/parsers/parse_simple.rb: adds support for private comments
+ in the "simple" parser. [ruby-core:4301]
+
+Fri Mar 4 12:45:17 2005 Charles Mills <cmills@freeshell.org>
+
+ * lib/rdoc/parsers/parse_c.rb: adds support for constants
+ (rb_define_const), accessors (rb_define_attr), and makes a
+ couple fixes. [ruby-core:4307]
+
+Fri Mar 4 12:45:17 2005 Florian Gross <florgro@gmail.com>
+
+ * lib/rdoc/parsers/parse_rb.rb: Logic for def Builtin.method() end
+ [ruby-core:4302]
+
+Fri Mar 4 12:45:17 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * array.c: replace rb_protect_inspect() and rb_inspecting_p() by
+ rb_exec_recursive() in eval.c.
+
+ * eval.c (rb_exec_recursive): new function.
+
+ * array.c (rb_ary_join): use rb_exec_recursive().
+
+ * array.c (rb_ary_inspect, rb_ary_hash): ditto.
+
+ * file.c (rb_file_join): ditto.
+
+ * hash.c (rb_hash_inspect, rb_hash_to_s, rb_hash_hash): ditto.
+
+ * io.c (rb_io_puts): ditto.
+
+ * object.c (rb_obj_inspect): ditto
+
+ * struct.c (rb_struct_inspect): ditto.
+
+Fri Mar 4 10:15:30 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/set.rb (SortedSet::setup): a hack to shut up warning.
+ [ruby-talk:132866]
+
+Fri Mar 4 09:37:12 2005 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * common.mk (install-nodoc, pre-install-doc, post-install-doc):
+ fix some omissions.
+
+Fri Mar 4 08:09:12 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/time.rb (Time::strptime): add new function. inspired by
+ [ruby-talk:132815].
+
+ * lib/parsedate.rb (ParseDate::strptime): ditto.
+
+Fri Mar 4 07:07:00 2005 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * ext/nkf/nkf-utf8/nkf.c: follow nkf 1.63
+
+Thu Mar 3 23:24:00 2005 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * ext/nkf/nkf-utf8/nkf.c: follow nkf 1.62
+
+Thu Mar 3 18:47:18 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * {bcc32,win32,wince}/Makefile.sub (config.h): check if affected
+ when makefiles are modified.
+
+ * {bcc32,win32,wince}/Makefile.sub (config.status): add variables
+ for tests.
+
+ * win32/ifchange.bat: try to update a file only if modified.
+
+ * win32/resource.rb: more descriptions.
+
+ * common.mk: add {pre,post}-install targets.
+
+ * instruby.rb (install?): install particular part.
+
+ * bcc32/Makefile.sub (post-install-ext): remove debug information
+ files after installation.
+
+ * ext/tk/tcltklib.c (ip_rbUpdateCommand, ip_rb_threadUpdateCommand):
+ get rid of warnings with Tcl/Tk 8.3 or former.
+
+Thu Mar 3 11:49:51 2005 Kouhei Sutou <kou@cozmixng.org>
+
+ * sample/rss/tdiary_plugin/rss-recent.rb: added site information.
+
+Wed Mar 2 19:53:44 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/extmk.rb (parse_args): return false if nothing matched.
+
+Wed Mar 2 17:15:08 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/tcltklib.c (lib_eventloop_core): fix typo
+
+Wed Mar 2 16:59:50 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * eval.c (ruby_native_thread_kill): call pthread_kill() to send a
+ signal to ruby's native thread
+
+ * ruby.h: add definition of ruby_native_thread_kill()
+
+ * signal.c (sigsend_to_ruby_thread): send the signal to ruby's
+ native thread ([ruby-dev:25744], [ruby-dev:25754]), and set
+ signal mask to the current native thread
+
+Wed Mar 2 16:03:08 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/tcltklib.c: enforce thread-check and exception-handling to
+ avoid SEGV trouble.
+
+ * ext/tk/tkutil/tkutil.c: fix a bug on converting a SJIS string array
+ to a Tcl's list string.
+
+ * ext/tk/tcltklib.c: wrap Tcl's original "namespace" command to
+ protect from namespace crash.
+
+ * ext/tk/lib/multi-tk.rb: enforce exception-handling.
+
+ * ext/tk/lib/multi-tk.rb: catch IRB_EXIT to work on irb.
+
+ * ext/tk/lib/tk.rb: ditto.
+
+ * ext/tk/tcltklib.c: add TclTkLib.mainloop_thread?
+
+ * ext/tk/lib/multi-tk.rb: (bug fix) callback returns a value.
+
+ * ext/tk/lib/tk/canvas.rb (delete): bug fix when multiple arguments.
+
+ * ext/tk/lib/clock.rb: fix 'no method error'.
+
+ * ext/tk/lib/clock.rb (self.clicks): accept a Symbol argument.
+
+ * ext/tk/lib/variable.rb: be able to set default_value_type; :numeric,
+ :bool, :string, :symbol, :list, :numlist or nil (default; same to
+ :string). If set a type, TkVariable#value returns a value of the
+ type.
+
+ * ext/tk/lib/tkextlib/tclx/tclx.rb: add Tk::TclX.signal to warn the
+ risk of using TclX extension's 'signal' command.
+
+ * ext/tk/sample/irbtk.rb: irb with Ruby/Tk.
+
+ * ext/tk/sample/demos-*/anilabel.rb: bug fix on 'show code'
+
+ * ext/tk/sample/demos-*/aniwave.rb: new Ruby/Tk animation demo.
+
+ * ext/tk/sample/demos-*/pendulum.rb: ditto.
+
+ * ext/tk/sample/demos-*/goldberg.rb: ditto.
+
+ * ext/tk/sample/demos-*/widget: add entries of animation demos.
+
+Wed Mar 2 12:21:18 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (rb_eval): [EXPERIMENTAL] NODE_LAMBDA implemented.
+ [ruby-dev:25780]
+
+ * node.h (NODE_LAMBDA): for literal Proc object.
+
+ * parse.y (expr): interpret mere do...end block as proc object.
+
+ * parse.y (primary): ditto, for brace block.
+
+Tue Mar 1 21:16:54 2005 K.Kosako <sndgk393 AT ybb.ne.jp>
+
+ * regcomp.c (optimize_node_left): uninitialized member
+ (OptEnv.backrefed_status) was used. [ruby-dev:25778]
+
+Tue Mar 1 16:50:37 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * regparse.c: move st_*_strend() functions from st.c. fixed some
+ potential memory leaks.
+
+Tue Mar 1 00:40:35 2005 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
+
+ * lib/rinda/tuplespace.rb (Rinda::TupleSpace): improved keeper thread.
+
+ * test/rinda/test_rinda.rb: ditto.
+
+Mon Feb 28 23:10:13 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * ext/socket/socket.c (Init_socket): IPv6 is not supported although
+ AF_INET6 is defined on bcc32. (rev1.108 again)
+
+ * ext/socket/mkconstants.rb: ditto.
+
+Mon Feb 28 21:55:49 2005 K.Kosako <sndgk393 AT ybb.ne.jp>
+
+ * ext/strscan/strscan.c (strscan_s_allocate):
+ use onig_region_init().
+
+ * ext/strscan/strscan.c (adjust_registers_to_matched):
+ use onig_region_set().
+
+Mon Feb 28 15:12:06 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * ext/socket/socket.c (Init_socket): ported more Socket::Constants
+ from ruby_1_8, and made it easy to add new constants.
+ [ruby-dev:25771]
+
+ * ext/socket/depend: ditto.
+
+ * ext/socket/mkconstants.rb: ditto. (added)
+
+Mon Feb 28 11:42:23 2005 Ian Macdonald <ian@caliban.org>
+
+ * exception error messages updated. [ruby-core:04497]
+
+Mon Feb 28 09:03:09 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ext/socket/socket.c (Init_socket): add bunch of Socket
+ constants. Patch from Sam Roberts <sroberts@uniserve.com>.
+ [ruby-core:04409]
+
+Sun Feb 27 05:55:38 2005 Minero Aoki <aamine@loveruby.net>
+
+ * parse.y [ripper]: fix typo. [ruby-core:04494]
+
+Sat Feb 26 16:58:20 2005 K.Kosako <sndgk393 AT ybb.ne.jp>
+
+ * parse.y, re.c, regex.h, LEGAL, ext/strscan/strscan.c:
+ remove oniggnu.h (GNU regex API).
+
+Wed Feb 23 22:08:16 2005 Kazuo Saito <ksaito@uranus.dti.ne.jp>
+
+ * st.c, st.h: imported additional file changes on
+ Oniguruma 3.7.0.
+
+Wed Feb 23 21:45:29 2005 Kazuo Saito <ksaito@uranus.dti.ne.jp>
+
+ * ascii.c, euc_jp.c, oniggnu.h, oniguruma.h, regcomp.c,
+ regenc.c, regenc.h, regerror.c, regexec.c, regint.h,
+ regparse.c, regparse.h, sjis.c, utf8.c: imported Oni Guruma
+ 3.7.0.
+
+Wed Feb 23 15:04:32 2005 akira yamada <akira@ruby-lang.org>
+
+ * lib/uri/generic.rb (split_userinfo): should split ":pass" into ""
+ and "pass". [ruby-dev:25667]
+
+Wed Feb 23 08:00:18 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * array.c (rb_ary_s_create): no need for negative argc check.
+ [ruby-core:04463]
+
+ * array.c (rb_ary_unshift_m): ditto.
+
+Wed Feb 23 01:53:29 2005 Shugo Maeda <shugo@ruby-lang.org>
+
+ * lib/net/imap.rb (initialize): handle certs correctly. Thanks,
+ NABEYA Kenichi.
+
+Wed Feb 23 00:37:34 2005 Kouhei Sutou <kou@cozmixng.org>
+
+ * lib/mkmf.rb (mkmf_failed): fixed typo.
+
+Tue Feb 22 23:52:45 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in, lib/mkmf.rb: use simple commands if available.
+
+ * mkconfig.rb: remove autoconf internal variables from rbconfig.rb.
+
+ * lib/mkmf.rb (create_makefile): substitute implicit rules in depend
+ file.
+
+ * {bcc32,win32,wince}/Makefile.sub (COMPILE_RULES, RULE_SUBST):
+ include $(topdir) and $(hdrdir) to search path.
+
+Tue Feb 22 23:51:45 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/syck/rubyext.c: get rid of warnings caused by a bug of VC.
+
+Tue Feb 22 23:50:26 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * signal.c (ruby_signal, ruby_nativethread_signal): must be valid as
+ expressions, not only statements.
+
+Tue Feb 22 12:54:13 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (rb_thread_start_0): update curr_thread before raising
+ TAG_THREAD. [ruby-dev:25712]
+
+Tue Feb 22 07:24:57 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (parser_yylex): identifier after dot must not be a variable.
+
+Mon Feb 21 18:31:12 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * signal.c: Standard signal handlers ignore signals on non-Ruby native
+ threads. When a handler is entried with ruby_signal() (like as the
+ standard signal handlers), the handler for the signal is marked as
+ it cannot accept non-Ruby native threads. If a handler can treat all
+ signals on all native threads, please use ruby_nativethread_signal()
+ to entry it.
+
+Sun Feb 20 00:48:48 2005 Tanaka Akira <akr@m17n.org>
+
+ * lib/open-uri.rb (URI::FTP#buffer_open): access mechanism
+ re-implemented according to RFC 1738.
+ reported by Guillaume Marcais. [ruby-talk:131650]
+
+Sat Feb 19 18:46:56 2005 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
+
+ * lib/drb/drb.rb (DRbObject#respond_to?): take two arguments.
+ [ruby-dev:25722]
+
+ * test/drb/drbtest.rb: ditto.
+
+Sat Feb 19 13:52:02 2005 Tanaka Akira <akr@m17n.org>
+
+ * lib/open-uri.rb: call OpenSSL::SSL::SSLSocket#post_connection_check
+ after connection is made.
+
+Sat Feb 19 13:31:28 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/extmk.rb (extract_makefile): remove no longer existing installed
+ files.
+
+ * lib/mkmf.rb (install_dirs): return installation directory list.
+
+ * lib/mkmf.rb (create_makefile): reverted wrongly removed lines.
+
+Sat Feb 19 01:28:56 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * ext/bigdecimal/lib/bigdecimal/newton.rb: resolved LoadError.
+ [ruby-dev:25685]
+
+ * ext/bigdecimal/sample/linear.rb: ditto.
+
+ * ext/bigdecimal/sample/nlsolve.rb: ditto.
+
+ * ext/bigdecimal/lib/bigdecimal/nlsolve.rb: removed because this file
+ is sample script and same file exists in ext/bigdecimal/sample.
+
+Fri Feb 18 17:14:00 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/xmlrpc/parser.rb (XMLRPC::FaultException): make it subclass
+ of StandardError class, not Exception class. [ruby-core:04429]
+
+Fri Feb 18 04:06:41 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * parse.y (fcall_gen): lvar(arg) will be evaluated as
+ lvar.call(arg) when lvar is a defined local variable. [new]
+
+Thu Feb 17 22:15:34 2005 K.Kosako <sndgk393 AT ybb.ne.jp>
+
+ * ext/strscan/strscan.c: calls Oniguruma API directly.
+
+Thu Feb 17 21:53:12 2005 K.Kosako <sndgk393 AT ybb.ne.jp>
+
+ * common.mk, LEGAL: remove reggnu.c.
+
+Thu Feb 17 21:53:12 2005 Kazuo Saito <ksaito@uranus.dti.ne.jp>
+
+ * gc.c, re.c: now ruby calls Oniguruma API directly, bypassing
+ GNU compatible APIs.
+
+Thu Feb 17 20:09:23 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * lib/drb/drb.rb (DRbServer.default_safe_level): fix typo.
+
+Thu Feb 17 20:09:23 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * test/digest/test_digest.rb: separate test case for each algorithms.
+ [ruby-dev:25412]
+
+Thu Feb 17 14:31:52 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * object.c (rb_class_initialize): call inherited method before
+ calling initializing block.
+
+ * eval.c (rb_thread_start_1): initialize newly pushed frame.
+ fixed: [ruby-dev:25707]
+
+Thu Feb 17 13:46:00 2005 Nathaniel Talbott <ntalbott@ruby-lang.org>
+
+ * lib/test/unit/collector.rb (collect_file): now deletes paths added
+ to $LOAD_PATH instead of restoring it verbatim.
+
+ * lib/test/unit/autorunner.rb (AutoRunner.run): fixed so that
+ 'ruby -rtest/unit -rtest1 -rtest2 -e0' will use the objectspace
+ collector again. Also tried to simplify the calling convention.
+
+ * test/runner.rb: adjusted for new AutoRunner semantics.
+
+ * lib/test/unit.rb: ditto.
+
+Thu Feb 17 04:21:47 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/open3.rb (Open3::popen3): $? should not be EXIT_FAILURE.
+ fixed: [ruby-core:04444]
+
+Thu Feb 17 00:31:21 2005 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
+
+ * test/drb/test_drb.rb, ut_safe1.rb: port from 1.8
+
+Thu Feb 17 00:02:27 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (is_defined): NODE_IASGN is an assignment.
+
+Wed Feb 16 23:54:14 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (rb_thread_start_1): outer block variables wasn't linked to
+ threads. fixed: [ruby-dev:25700]
+
+Wed Feb 16 15:11:43 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * ext/openssl/lib/openssl/ssl.rb (OpenSSL::Nonblock#initialize):
+ native win32 platform doesn't have F_GETFL.
+
+Wed Feb 16 02:47:45 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * ext/openssl/ossl_ssl.c (ossl_ssl_read, ossl_ssl_write): should
+ call rb_sys_fail instead of raising SSLError if SSL_ERROR_SYSCALL
+ occurred.
+
+ * ext/openssl/lib/openssl/buffering.rb (Buffering#fill_rbuff):
+ should rescue Errno::EAGAIN.
+
+ * ext/openssl/lib/openssl/buffering.rb (Buffering#each): fix typo.
+ suggested by Brian Ollenberger.
+
+ * ext/openssl/lib/openssl/ssl.rb: set non-blocking flag to the
+ underlying IO.
+
+Tue Feb 15 22:14:34 2005 sheepman <sheepman@tcn.zaq.ne.jp>
+
+ * ext/readline/readline.c (Readline.readline): use rl_outstream
+ and rl_instream. [ruby-dev:25699]
+
+Mon Feb 14 23:58:17 2005 Kouhei Sutou <kou@cozmixng.org>
+
+ * lib/rss/parser.rb (RSS::ListenerMixin::tag_end):
+ fixed invalid namespace handling bug.
+
+Mon Feb 14 13:12:38 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * ext/openssl/lib/openssl/ssl.rb
+ (OpenSSL::SSL::SSLSocket#post_connection_check): new method.
+
+Mon Feb 14 00:10:17 2005 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
+
+ * lib/drb/drb.rb (DRbServer): add default_safe_level, safe_level,
+ config[:safe_level] ([druby-ja:120])
+
+ * test/drb/test_drb.rb, ut_eval.rb, ut_safe1.rb: ditto.
+
+Sun Feb 13 23:13:46 2005 Kouhei Sutou <kou@cozmixng.org>
+
+ * lib/rss/dublincore.rb (RSS::DublicCoreModel#date{,=}): added
+ convenient methods.
+
+ * lib/rss/0.9.rb (RSS::Rss::Channel#date{,=}): ditto.
+
+ * lib/rss/2.0.rb (RSS::Rss::Channel::Item#date{,=}): ditto.
+
+ * test/rss/: added tests for the convenient methods.
+
+Sun Feb 13 23:12:47 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (rb_thread_start_0): restore prot_tag before rewinding.
+
+Sun Feb 13 16:56:52 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * lib/webrick/cgi.rb (WEBrick::CGI.start): should set reason-phrase
+ to the value of status header field. ([ruby-dev:40617])
+
+Sun Feb 13 11:38:40 2005 Kazuo Saito <ksaito@uranus.dti.ne.jp>
+
+ * regparse.c (type_cclass_hash): (Thanks Nobu) fixed
+ overrun. ([ruby-dev:25676]).
+
+Sun Feb 13 10:53:08 2005 Kazuo Saito <ksaito@uranus.dti.ne.jp>
+
+ * oniggnu.h, oniguruma.h, regcomp.c, st.c: imported
+ Oni Guruma 3.6.0.
+
+Sun Feb 13 01:33:19 2005 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
+
+ * lib/erb.rb (ERB::Util.h, u): make it module_function.
+
+Sat Feb 12 22:17:11 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (TAG_THREAD): to start a new thread.
+
+ * eval.c (ruby_init, ruby_options, ruby_cleanup, rb_protect,
+ rb_load_protect, rb_thread_start_0): make thread anchor.
+
+ * eval.c (proc_alloc): clone proc object if klass is not Proc or
+ created in different thread.
+
+ * eval.c (rb_block_pass): call a function with a block. [new]
+
+ * eval.c (rb_f_throw): raise NameError in main thread.
+
+Sat Feb 12 17:29:19 2005 Tanaka Akira <akr@m17n.org>
+
+ * lib/open-uri.rb (OpenURI.open_loop): send authentication only for
+ the URI directly specified.
+
+Sat Feb 12 15:07:23 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * random.c (rand_init): suppress warning.
+
+Sat Feb 12 14:10:24 2005 Tanaka Akira <akr@m17n.org>
+
+ * lib/open-uri.rb (OpenURI.open_http): reject userinfo explicitly.
+
+Sat Feb 12 13:54:03 2005 Tanaka Akira <akr@m17n.org>
+
+ * lib/open-uri.rb: support https if the platform provides CA
+ certificates.
+
+Sat Feb 12 06:18:28 2005 URABE Shyouhei <shyouhei@ice.uec.ac.jp>
+
+ * ext/etc/etc.c (Init_etc): sGroup needs HAVE_ST_GR_PASSWD check
+ [ruby-dev:25675]
+
+Fri Feb 11 17:37:50 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * ext/openssl/ossl_x509store.c (ossl_x509store_set_default_paths):
+ new method OpenSSL::X509::Store#set_default_paths.
+
+Fri Feb 11 11:33:53 2005 Tanaka Akira <akr@m17n.org>
+
+ * lib/open-uri.rb (URI::HTTP#proxy_open): new option supported:
+ :http_basic_authentication.
+ suggested by Kent Sibilev. [ruby-core:4392]
+
+Fri Feb 11 06:30:07 2005 George Ogata <g_ogata@optushome.com.au>
+
+ * misc/ruby-mode.el: ignore parenthesis inside heredoc.
+ [ruby-core:04415]
+
+Fri Feb 11 04:54:13 2005 Tilman Sauerbeck <tilman@code-monkey.de>
+
+ * lib/rdoc/generators/html_generator.rb: [ruby-core:04412]
+
+ * lib/rdoc/generators/ri_generator.rb: ditto.
+
+Thu Feb 10 13:52:42 2005 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * configure.in, win32/Makefile.sub (LIBS, COMMON_HEADERS): use
+ winsock2 on mswin32/mingw.
+
+ * ext/socket/extconf.rb: ditto.
+
+ * win32/win32.c (StartSockets): ditto.
+
+ * win32/win32.h: ditto.
+
+Thu Feb 10 12:09:16 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/extmk.rb (extract_makefile): default to true if not compiled
+ previously.
+
+ * ext/extmk.rb (extmake): create dummy makefile if extconf failed.
+
+Thu Feb 10 12:07:10 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * win32/win32.c (init_stdhandle): assign standard file handles.
+
+ * bcc32/Makefile.sub (COMMON_LIBS): add libraries included in
+ import32.lib.
+
+ * lib/mkmf.rb (create_makefile): restrict prefixing with srcdir to
+ rule lines, add search path to implicit rules, and set Borland make
+ special macros for search path.
+
+ * win32/win32.c, win32/win32.h (read): avoid a BCC runtime bug.
+
+Thu Feb 10 00:47:25 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * struct.c (make_struct): fixed: [ruby-core:04402]
+
+Wed Feb 9 16:33:05 2005 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * ext/socket/socket.c (wait_connectable): fixed wrong condition.
+
+Wed Feb 9 14:42:28 2005 URABE Shyouhei <shyouhei@ice.uec.ac.jp>
+
+ * eval.c (scope_dup): add volatile not to optimize tbl.
+
+Wed Feb 9 10:02:02 2005 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * ext/tk/make-tkutil, ext/tk/tkutil/subconf.rb: no longer used.
+
+ * ext/tk/tkutil/extconf.rb: need to compile tkutil. [ruby-dev:25607]
+
+Wed Feb 9 08:07:08 2005 Paul Duncan <pabs@pablotron.org>
+
+ * ext/curses/curses.c (window_color_set): [ruby-core:04393]
+
+Tue Feb 8 23:48:36 2005 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
+
+ * lib/drb/drb.rb: reject :instance_eval, :class_eval, :module_eval
+ [druby-ja:117]
+
+Tue Feb 8 22:38:28 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * keywords, parse.y: separate EXPR_VALUE from EXPR_BEG.
+ fixed: [ruby-core:04310], [ruby-core:04368]
+
+Tue Feb 8 13:06:12 2005 Sam Roberts <sroberts@uniserve.com>
+
+ * ext/socket/socket.c (Init_socket): SO_REUSEPORT added.
+ [ruby-talk:130092]
+
+Tue Feb 8 00:19:02 2005 Tanaka Akira <akr@m17n.org>
+
+ * lib/resolv.rb (Resolv::DNS::Name#subdomain_of?): new method.
+ (Resolv::DNS::Name#inspect): ditto.
+ Suggested by Sam Roberts. [ruby-talk:129086]
+
+Mon Feb 7 23:14:11 2005 Tanaka Akira <akr@m17n.org>
+
+ * io.c (io_getc): flush rb_stdout before read from stdin, which is
+ connected to a tty. [ruby-core:4378]
+
+ * rubyio.h (FMODE_TTY): renamed from FMODE_LINEBUF.
+
+Mon Feb 7 10:06:30 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * object.c: [ruby-doc:818]
+
+Mon Feb 7 02:13:05 2005 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * ext/socket/extconf.rb (sockaddr_storage): winsock2.h have the
+ definition of struct sockaddr_storage, but socket.c doesn't
+ include it because this version of ruby still has binary level
+ compatibility with winsock1.
+
+Mon Feb 7 01:22:50 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/extmk.rb (extract_makefile): extract previously collected
+ informations from existing Makefile.
+
+ * ext/socket/extconf.rb: check if getaddrinfo() works fine only when
+ wide-getaddrinfo option is not given. fixed: [ruby-dev:25422]
+
+ * ext/tk/extconf.rb: separate tkutil configuration.
+
+ * lib/mkmf.rb ($extmk): check if under ext directory.
+
+ * lib/mkmf.rb (Logging.postpone): allow recursive operation.
+
+ * lib/mkmf.rb (try_constant): make sure if really a constant, reduce
+ the number of times of compile.
+
+ * lib/mkmf.rb (have_macro, have_var, byte_order): new functions.
+
+ * lib/mkmf.rb (find_library): allow directory list with separators.
+
+ * lib/mkmf.rb (arg_config): manage provided configuration options.
+
+ * lib/mkmf.rb (dir_config): accept arrays of directory names as
+ default values.
+
+ * lib/mkmf.rb (with_cppflags, with_cflags, with_ldflags): keep flags
+ modified if the block returned true.
+
+Sun Feb 6 19:20:05 2005 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * eval.c (stack_extend): add prototype because VC++8 doesn't
+ accept __declspec(noinline) with K&R style function definitions.
+
+Sun Feb 6 13:56:19 2005 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * lib/date.rb (new_with_hash): changed messages of exception.
+
+ * lib/date/format.rb (str[fp]time): undocumented conversion
+ specifications %[1-3] are now deprecated.
+
+Sun Feb 6 11:27:37 2005 Tanaka Akira <akr@m17n.org>
+
+ * ext/dl/dl.c (Init_dl): function declaration should precede
+ statements before C99.
+
+Sun Feb 6 03:24:20 2005 Tanaka Akira <akr@m17n.org>
+
+ * lib/resolv.rb (Resolv::DNS::Resource::TXT): multiple strings was not
+ handled.
+ (Resolv::DNS::Resource::TXT#strings): new method to return all
+ strings.
+ (Resolv::DNS::Message::MessageEncoder#put_string_list): new method.
+ (Resolv::DNS::Message::MessageDecoder#get_string_list): ditto.
+ based on [ruby-talk:129732] by Sam Roberts.
+
+Sat Feb 5 02:24:06 2005 Minero Aoki <aamine@loveruby.net>
+
+ * test/ripper/test_scanner_events.rb: fix test.
+
+Fri Feb 4 18:44:35 2005 Minero Aoki <aamine@loveruby.net>
+
+ * ext/ripper/lib/ripper/lexer.rb: last Lexer fix was incomplete;
+ test all green.
+
+Fri Feb 4 15:57:06 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * parse.y (open_args): fix too verbose warnings for the space
+ before argument parentheses. [ruby-dev:25492]
+
+ * parse.y (parser_yylex): ditto.
+
+Fri Feb 4 14:33:25 2005 Minero Aoki <aamine@loveruby.net>
+
+ * ext/ripper/lib/ripper/filter.rb: ripper/tokenizer ->
+ ripper/lexer. [ruby-dev:25632]
+
+Fri Feb 4 00:24:15 2005 Kouhei Sutou <kou@cozmixng.org>
+
+ * lib/rss: supported Image module.
+ http://web.resource.org/rss/1.0/modules/image/
+
+Thu Feb 3 23:42:36 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/stringio/stringio.c (strio_close, strio_close_read, strio_close_write):
+ should return nil instead of self as well as IO. [ruby-dev:25623]
+
+ * ext/stringio/stringio.c (strio_extend, strio_putc): fill with zero
+ extended portion. [ruby-dev:25626]
+
+Thu Feb 3 16:12:57 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * parse.y (parser_yylex): the first expression in the parentheses
+ should not be a command. [ruby-dev:25492]
+
+Thu Feb 3 03:31:20 2005 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * ext/nkf/nkf-utf8/nkf.c: follow original v 1.57
+
+ * ext/nkf/nkf-utf8/utf8tbl.c: follow original v 1.8
+
+ * ext/nkf/nkf-utf8/config.h: follow original v 1.7
+
+Wed Feb 2 23:52:53 2005 sheepman <sheepman@tcn.zaq.ne.jp>
+
+ * ext/stringio/stringio.c (strio_truncate): should MEMZERO an extended
+ part. [ruby-dev:25618]
+
+Wed Feb 2 21:56:01 2005 Kouhei Sutou <kou@cozmixng.org>
+
+ * lib/rss/rss.rb (RSS::Element#convert): added.
+
+ * lib/rss/rss.rb: convert -> need_convert.
+
+ * lib/rss/1.0.rb: ditto.
+
+ * lib/rss/0.9.rb: ditto.
+
+ * lib/rss/2.0.rb: ditto.
+
+ * lib/rss/trackback.rb: ditto.
+
+Wed Feb 2 03:30:58 2005 Minero Aoki <aamine@loveruby.net>
+
+ * ext/ripper/lib/ripper/tokenizer.rb -> lexer.rb.
+
+ * ext/ripper/lib/ripper/lexer.rb: new method Ripper.slice.
+ [experimental]
+
+ * ext/ripper/lib/ripper/sexp.rb: new file. [experimental]
+
+ * ext/ripper/lib/ripper.rb: require ripper/lexer and ripper/sexp.
+
+Tue Feb 1 21:49:24 2005 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
+
+ * lib/drb/drb.rb (DRb::DRbObject#respond_to?): check marshal_dump and
+ _dump.
+
+Tue Feb 1 00:20:23 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * Makefile.in, configure.in: made EXTOUT configurable.
+
+ * ext/extmk.rb (extmake), lib/mkmf.rb: keep topdir as relative style.
+
+ * lib/mkmf.rb: make extensions in depth order. [ruby-dev:25522]
+
+ * configure.in (aix): fix linker flags on AIX. [ruby-talk:125460]
+
+Mon Jan 31 13:16:39 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/extconf.rb: add tkutil configuration step (remove old schema)
+
+ * ext/tk/depend: remove the information of tkutil
+
+ * ext/tk/make-tkutil: sub-part of Makefile to compile tkutil
+
+ * ext/tk/tkutil/tkutil.c: move tkutil.c to subdirectory
+
+ * ext/tk/tkutil/subconf.rb: configuration file for tkutil.c
+
+ * ext/tk/tkutil/depend: ditto
+
+Mon Jan 31 13:13:35 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/tcltklib.c: add invalid namespace check
+
+ * ext/tk/lib/multi-tk.rb: add invalid_namespace? method
+
+ * ext/tk/lib/remote-tk.rb: ditto
+
+Mon Jan 31 10:29:18 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/irb/context.rb (IRB::Context::initialize): [ruby-core:04330]
+
+Mon Jan 31 09:44:03 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * object.c (Init_Object): remove Object#type. [ruby-core:04335]
+
+Sat Jan 29 09:42:12 2005 Sam Roberts <sroberts@uniserve.com>
+
+ * lib/resolv.rb (Resolv::DNS::Resource::IN::SRV): Added RFC2782 SRV
+ resource record for specifying location of services.
+
+Sat Jan 29 00:10:33 2005 Kazuo Saito <ksaito@uranus.dti.ne.jp>
+
+ * ascii.c, euc_jp.c, hash.c, oniggnu.h, oniguruma.h, regcomp.c,
+ regenc.c, regenc.h, regerror.c, regexec.c, reggnu.c, regint.h,
+ regparse.c, regparse.h, sjis.c, st.c, st.h, utf8.c: imported
+ Oni Guruma 3.5.4.
+
+Fri Jan 28 17:16:55 2005 Tanaka Akira <akr@m17n.org>
+
+ * lib/resolv.rb (Resolv::DNS::Config.parse_resolv_conf):
+ parse options line for ndots option.
+ (Resolv::Hosts#lazy_initialize): return self.
+ (Resolv::DNS#lazy_initialize): ditto.
+ (Resolv::DNS::Config#lazy_initialize): ditto.
+ Suggested by Sam Roberts.
+
+Thu Jan 27 17:15:03 2005 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * ext/tk/extconf.rb: support new tk scheme on bccwin32.
+ fixed: [ruby-dev:25546]
+
+Thu Jan 27 13:18:03 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * st.c (st_foreach): report success/failure by return value.
+ [ruby-Bugs-1396]
+
+Thu Jan 27 00:12:19 2005 Minero Aoki <aamine@loveruby.net>
+
+ * test/fileutils/test_fileutils.rb (setup): support BSD style
+ directory group inheritance (again).
+
+Thu Jan 27 00:02:40 2005 Minero Aoki <aamine@loveruby.net>
+
+ * test/fileutils/test_fileutils.rb (setup): support BSD style
+ directory group inheritance. [ruby-dev:25440]
+
+ * test/fileutils/fileasserts.rb (assert_same_entry): show entry
+ difference.
+
+Wed Jan 26 17:12:50 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * parse.y: forgot to initialize parser struct. [ruby-dev:25492]
+
+ * parse.y (parser_yylex): no tLABEL on EXPR_BEG.
+ [ruby-talk:127711]
+
+Wed Jan 26 14:12:58 2005 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * ext/Setup*: remove tcltklib.
+
+Wed Jan 26 12:45:16 2005 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * ext/tk/extconf.rb: support new tk scheme on mswin32.
+ fixed: [ruby-dev:25535]
+
+Wed Jan 26 10:45:19 2005 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/win32.c (flock_winnt, flock_win95): unlock file even if
+ LOCK_NB is specified.
+
+Tue Jan 25 23:10:48 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk: merge tcltklib for Ruby/Tk installation control
+
+ * ext/tcltklib: remove
+
+Tue Jan 25 17:05:15 2005 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * ruby.c (proc_options): correct -T option in RUBYOPT.
+ fixed: [ruby-dev:25512]
+
+Tue Jan 25 14:05:52 2005 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tcltklib/tcltklib.c: fix SEGV bug; trouble on canceling remained
+ after scripts [ruby-dev:25479]: NULL current namespace when deleting
+ Tk interpreter [ruby-talk:126225]
+
+ * ext/tcltklib/extconf.rb: bug fix; TCL_ENABLE_THREAD flag is inverted
+ [ruby-talk:126360]
+
+ * ext/tcltklib/extconf.rb: add yet another native-thread check
+
+ * ext/tk/tkutil.c: fix SEGV bug; NULL string pointer when finalize
+ Ruby interpreter
+
+ * ext/tk/lib/multi-tk.rb: avoid warning for deleted safeTk ip frame
+
+ * ext/tk/lib/tk/bindtag.rb: bug fix; new method of named bindtag
+ doesn't return the created object [ruby-dev:25479]
+
+ * ext/tk/lib/tk/menu.rb: bug on treating arguments [ruby-dev:25479]
+
+ * ext/tk/lib/tk.rb: bug fix; cannot accept a callback ID string for
+ a command argument [ruby-dev:25479]
+
+ * ext/tk/lib/multi-tk.rb: ditto
+
+ * ext/tk/lib/tk/*.rb: ditto
+
+ * ext/tk/lib/tkextlib/*.rb: ditto
+
+ * ext/tk/sample/demos-jp/anilabel.rb: new demo script
+
+ * ext/tk/sample/demos-en/anilabel.rb: ditto
+
+ * ext/tk/sample/tkHTML/ss.rb: local variable scope bug fix
+ [ruby-dev:25479]
+
+Mon Jan 24 16:00:53 2005 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * ext/nkf/lib/kconv.rb (guess_old): not use NKF.guess_old
+ but NKF.guess1. fixed: [ruby-dev:25491]
+
+Mon Jan 24 15:44:25 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * document updates - [ruby-core:04296], [ruby-core:04301],
+ [ruby-core:04302], [ruby-core:04307]
+
+Sun Jan 23 12:38:01 2005 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * lib/soap/wsdlDriver.rb: from 1.5.3-ruby1.8.2, operation which has
+ capitalized name (such as KeywordSearchRequest in AWS) is defined as
+ a method having uncapitalized name. (converted with
+ GenSupport.safemethodname to handle operation name 'foo-bar'). it
+ introduced serious incompatibility; in the past, it was defined as a
+ capitalized.
+
+ define capitalized method as well under that circumstance.
+
+Sun Jan 23 05:24:42 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * ext/openssl/ossl_ocsp.c (ossl_ocspreq_to_der): should call
+ GetOCSPReq at first.
+
+Sat Jan 22 22:59:08 2005 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
+
+ * lib/drb/ssl.rb (accept): rescue SSLError. [druby-ja:110]
+
+Sat Jan 22 22:27:28 2005 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
+
+ * lib/drb/unix.rb: fail if UNIXFileOwner is set. [druby-ja:111]
+
+Fri Jan 21 20:07:02 2005 Tanaka Akira <akr@m17n.org>
+
+ * lib/resolv.rb (Resolv::DNS::Config.resolv): don't raise ResolvError.
+ reported by Sam Roberts. [ruby-talk:127133]
+
+Fri Jan 21 17:09:44 2005 Shugo Maeda <shugo@ruby-lang.org>
+
+ * lib/net/imap.rb (decode_utf7): use pack("U*") to encode UTF-8.
+
+ * lib/net/imap.rb (encode_utf7): use unpack("U*") to decode UTF-8.
+
+ * test/net/imap/test_imap.rb: added tests for Net::IMAP.
+
+Fri Jan 21 16:58:10 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * dir.c (rb_push_glob): should work for NUL delimited patterns.
+
+ * dir.c (rb_glob2): should aware of offset in the pattern.
+
+Fri Jan 21 13:58:37 2005 Shugo Maeda <shugo@ruby-lang.org>
+
+ * lib/net/imap.rb (u8tou16): fixed typo. fixed: [ruby-list:40546]
+
+Fri Jan 21 00:37:09 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * ext/syck/rubyext.c (syck_parser_bufsize_set): avoid VC++ warning
+ "local variable 'size' used without having been initialized".
+
+Thu Jan 20 11:42:02 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (rb_str_new4): should propagate taintedness.
+
+ * env.h: rename member names in struct FRAME; last_func -> callee,
+ orig_func -> this_func, last_class -> this_class.
+
+ * struct.c (rb_struct_set): use original method name, not callee
+ name, to retrieve member slot. [ruby-core:04268]
+
+ * time.c (time_strftime): protect from format modification from GC
+ finalizers.
+
+Thu Jan 20 02:01:10 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * object.c (Init_Object): remove rb_obj_id_obsolete()
+
+Wed Jan 19 18:02:19 2005 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * lib/ipaddr.rb (to_s, test_to_s): too many colons with some cases.
+
+Wed Jan 19 01:16:30 2005 Tanaka Akira <akr@m17n.org>
+
+ * lib/resolv.rb (Resolv::DNS::Config.parse_resolv_conf): ignore
+ domain and search directive without an argument.
+ reported by Sam Roberts. [ruby-talk:126781]
+
+Mon Jan 17 23:33:46 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (aix): fix typo. [ruby-talk:126401]
+
+Mon Jan 17 07:08:51 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/readline/readline.c: suppress warnings.
+
+ * lib/irb/extend-command.rb (IRB::ContextExtender.def_extend_command):
+ ditto.
+
+ * lib/irb/ext/history.rb (IRB::Context::set_last_value): ditto.
+
+ * lib/irb/ext/history.rb (IRB::Context::eval_history): ditto.
+
+ * lib/irb/locale.rb (IRB::Locale::real_load): ditto.
+
+ * lib/irb/slex.rb (SLex::Node::create_subnode): remove garbage.
+
+Mon Jan 17 00:09:42 2005 WATANABE Hirofumi <eban@ruby-lang.org>
+
+ * lib/uri/common.rb (PORT): typo fix. fixed: [ruby-core:04256]
+
+Sat Jan 15 14:57:22 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ruby.c (proc_options): ignore trailing CRs at the end of short
+ options as well as long options. fixed: [ruby-core:04232]
+
+Sat Jan 15 13:44:22 2005 Kouhei Sutou <kou@cozmixng.org>
+
+ * lib/rss/rss.rb (RSS::VERSION): 0.1.2 -> 0.1.3.
+
+ * lib/rss/rss.rb: accept inheritance. [ruby-talk:126104]
+
+Wed Jan 12 12:29:28 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (rb_mod_define_method): incomplete subclass check.
+ [ruby-dev:25464]
+
+ * class.c (rb_make_metaclass): class of metaclasses should be
+ plain Class. [ruby-list:40524]
+
+Tue Jan 11 20:58:52 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * io.c (remain_size): use buffered data instead of unreading to avoid
+ inconsistency of text mode. fixed: [ruby-dev:25446]
+
+Tue Jan 11 09:37:53 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * numeric.c (Init_Numeric): turn off floating point exceptions
+ on bcc32. "1e300".to_f had crashed by overflow.
+
+Mon Jan 10 15:28:51 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * lib/webrick/cgi.rb (WEBrick::CGI::Socket#request_line): should
+ escape SCRIPT_NAME and PATH_INFO before being parsed as a URI.
+
+ * lib/webrick/httputils.rb (WEBrick::HTTPUtils#escape_path): add
+ new method to escape URI path component.
+
+ * lib/webrick/ssl.rb (WEBrick::Config::SSL): the default value
+ of :SSLEnable is false.
+
+ * test/webrick/{test_cgi.rb,webrick.cgi}: new file.
+
+ * test/webrick/utils.rb: require "webrick/https.h".
+
+Mon Jan 10 01:22:55 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * gc.c (rb_data_object_alloc): klass may be NULL.
+ [ruby-list:40498]
+
+Sun Jan 9 14:12:17 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * io.c (rb_f_select): IO list could be altered. [ruby-dev:25312]
+
+Sun Jan 9 04:08:40 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * test/webrick/test_server.rb (test_daemon): delete an assertion
+ which has possibility to fail by race condition.
+
+Sun Jan 9 03:22:46 2005 Minero Aoki <aamine@loveruby.net>
+
+ * test/fileutils/test_fileutils.rb (test_copy_entry): copy_entry
+ copies only file type, not mtime. [ruby-dev:25383]
+
+Sat Jan 8 04:38:47 2005 why the lucky stiff <why@ruby-lang.org>
+
+ * lib/yaml.rb: Kernel#y requires an argument.
+
+Fri Jan 7 21:12:29 2005 TAMURA Takashi <sheepman@tcn.zaq.ne.jp>
+
+ * random.c (rand_init): use ALLOC_N instead of ALLOCA_N
+ [ruby-dev:25426]
+
+Fri Jan 7 20:01:31 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * lib/webrick/httpproxy.rb (WEBrick::HTTPProxyServer#proxy_service):
+ should delete trailing LF from the result of pack("m*").
+
+ * lib/webrick/httpproxy.rb (WEBrick::HTTPProxyServer#proxy_connect):
+ - should delete trailing LF from the result of pack("m*").
+ - clear Request-Line not to send the response by HTTPServer#run.
+
+ * lib/webrick/httputils (WEBrick::HTTPUtils.parse_qvalues):
+ refine regexp (and change the name of a local variable).
+
+ * lib/webrick/server.rb (WEBrick::Daemon.start): prepared stdio
+ don't allow changing its mode.
+
+ * test/webrick/*, sample/webrick/httpproxy.rb: add new files.
+
+Fri Jan 7 18:03:35 2005 Tanaka Akira <akr@m17n.org>
+
+ * gc.c (mark_locations_array): avoid core dump with -O3.
+ [ruby-dev:25424]
+
+Thu Jan 6 20:29:18 2005 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * ext/zlib/zlib.c (zstream_end): should return value.
+
+Thu Jan 6 19:59:03 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * win32/win32.c (rb_w32_close): didn't close socket handle.
+ [ruby-dev:25414]
+
+ * win32/win32.c (rb_w32_open_osfhandle): bcc32's _open_osfhandle
+ never set EMFILE.
+
+Thu Jan 6 17:22:41 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * random.c (random_seed): O_NONBLOCK isn't defined on some
+ platforms. [ruby-dev:25417]
+
+Thu Jan 6 13:45:35 2005 Tanaka Akira <akr@m17n.org>
+
+ * lib/time.rb: recognize +00:00 and GMT as a localtime.
+
+Thu Jan 6 07:58:28 2005 Dave Thomas <dave@pragprog.com>
+
+ * lib/rdoc/usage.rb (RDoc::RDoc.usage_no_exit): Allow for colons
+ in path names on DOS machines. (thanks to Johan Nilsson)
+
+Thu Jan 6 00:02:35 2005 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
+
+ * test/rinda/test_rinda.rb: use MockClock.sleep instead of Kernel.sleep
+ [ruby-dev:25387]
+
+Wed Jan 5 20:16:32 2005 Tanaka Akira <akr@m17n.org>
+
+ * random.c (limited_big_rand): didn't work if SIZEOF_BDIGITS == 2.
+ [ruby-dev:25408]
+
+ * random.c (random_seed): refined.
+
+Wed Jan 5 16:39:54 2005 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * parse.y (BITSTACK_POP): workaround for bcc32 compiler's bug.
+ shift assignment operator '>>=' for __int64 in struct may
+ generate collapsed code. [ruby-dev:25342]
+
+ * win32/win32.[ch]: failed to compile on bcc32 (and probably wince)
+ [ruby-dev:25306]
+
+Wed Jan 5 12:49:39 2005 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (rb_thread_initialize): Thread objects cannot be initialized
+ again. fixed: [ruby-core:04067]
+
+Wed Jan 5 02:30:11 2005 Tanaka Akira <akr@m17n.org>
+
+ * random.c (init_by_array): imported from mt19937ar-cok.tgz.
+ (genrand_int32): ditto.
+ (genrand_real): replaced with genrand_res53 in mt19937ar-cok.
+ (rand_init): support bignum for longer seed.
+ (random_seed): generate longer seed.
+ (make_mask): new function.
+ (limited_rand): ditto.
+ (limited_big_rand): ditto.
+ (rb_f_rand): call limited_rand and limited_big_rand.
+ [ruby-dev:25403]
+
+Tue Jan 4 23:25:29 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * bignum.c (rb_big_rand): should return positive random number.
+ [ruby-dev:25401]
+
+Tue Jan 4 21:25:43 2005 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
+
+ * test/drb/{test_drbssl.rb,test_drbunix.rb,ut_drb.rb}: use
+ DRbService.ext_service. reduce sleep.
+
+Mon Jan 3 14:01:54 2005 Tanaka Akira <akr@m17n.org>
+
+ * random.c (random_seed): don't use /dev/urandom if it is not
+ character device.
+
+Mon Jan 3 11:37:42 2005 Tanaka Akira <akr@m17n.org>
+
+ * random.c (random_seed): use /dev/urandom if available.
+ [ruby-dev:25392]
+
+Tue Jan 4 11:15:29 2005 TAMURA Takashi <sheepman@tcn.zaq.ne.jp>
+
+ * bignum.c (rb_big_rand): do not use rb_big_modulo to generate
+ random bignums. [ruby-dev:25396]
+
+Mon Jan 3 11:03:37 2005 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
+
+ * test/drb/test_drb.rb: move TestDRbReusePort to new file.
+ [ruby-dev:25238]
+
+ * test/drb/drbtest.rb: change timeout.
+
+ * test/drb/ignore_test_drb.rb: new file.
+
+Mon Jan 3 07:27:46 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * lib/webrick/httpauth/htpasswd.rb (WEBrick::Htpasswd#reload):
+ raise NotImplementedError if password is encrypted by digest
+ algorithms. This patch is contributed by sheepman. [ruby-list:40467]
+
+ * lib/webrick/httpauth/digestauth.rb
+ (WEBrick::HTTPAuth::DigestAuth#_authenticate): fix digest calculation.
+ This patch is contributed by sheepman. [ruby-list:40482]
+
+ * lib/webrick/{httpauth.rb,httpauth/basicauth.rb,httpproxy.rb}: use
+ pack/unpack-template char "m" instead of lib/base64.rb to do base64
+ encoding/decoding. fixed: [ruby-dev:25336]
+
+ * test/webrick/test_httpauth.rb: new file.
+
+Sun Jan 2 15:42:10 2005 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
+
+ * lib/drb/drb.rb: add lazy stop_service.
+
+ * lib/drb/extserv.rb: ditto.
+
+Sun Jan 2 01:17:17 2005 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
+
+ * test/drb/drbtest.rb: add method DRbService.ext_service.
+
+ * test/drb/test_drb.rb: ditto.
+
+ * test/drb/test_drbssl.rb: ditto.
+
+Sat Jan 1 20:23:02 2005 Tanaka Akira <akr@m17n.org>
+
+ * io.c (argf_readpartial): new method ARGF.readpartial.
+ (io_getpartial): extracted from io_readpartial.
+ (io_readpartial): call io_getpartial.
+
+Sat Jan 1 17:44:54 2005 Minero Aoki <aamine@loveruby.net>
+
+ * lib/net/http.rb (each_capitalized): should join header field
+ value. This patch is contributed sheepman [ruby-list:40478]
+
+ * test/net/http/test_httpheader.rb: test it.
+
+Sat Jan 1 16:21:29 2005 Minero Aoki <aamine@loveruby.net>
+
+ * lib/fileutils.rb (copy_stream): use read/write instead of
+ sysread/syswrite, which allows duck typing. [ruby-dev:25369]
+
+ * lib/fileutils.rb (copy_stream): does NOT support nonblocking IO.
+ [ruby-dev:25370]
+
+ * lib/fileutils.rb (copy_entry): could not copy symlink.
+
+ * test/fileutils/test_fileutils.rb: test copy_entry, copy_file,
+ copy_stream.
+
+Sat Jan 1 04:20:23 2005 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * ext/openssl/ossl_ns_spki.c (ossl_spki_set_challenge): should call
+ StringValue before GetSPKI. fixed: [ruby-dev:25359].
+
+Sat Jan 1 01:13:28 2005 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * variable.c (rb_autoload): [ruby-dev:25373]
+
+Fri Dec 31 14:10:43 2004 Dave Thomas <dave@pragprog.com>
+
+ * lib/rdoc/ri/ri_formatter.rb (RI::TextFormatter::display_flow_item):
+ Fix problem if heading contains formatting.
+
+Fri Dec 31 00:08:02 2004 Tanaka Akira <akr@m17n.org>
+
+ * configure.in (HAVE_RLIM_T): removed because not used.
+
+Thu Dec 30 22:45:39 2004 Tanaka Akira <akr@m17n.org>
+
+ * rubyio.h: don't deprecate rb_read_check.
+
+ * io.c (STDIO_READ_DATA_PENDING): reverted from old READ_DATA_PENDING
+ to check stdio read buffer.
+ (rb_read_check): use STDIO_READ_DATA_PENDING.
+ (rb_read_pending): ditto.
+ (rb_getc): ditto.
+
+Thu Dec 30 05:39:35 2004 Minero Aoki <aamine@loveruby.net>
+
+ * parse.y: eliminate unused members in struct parser_params.
+ [ruby-dev:25258] (again)
+
+ * parse.y: make parser_new() static.
+
+Thu Dec 30 00:41:42 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (svalue_to_avalue): [ruby-dev:25366]
+
+ * string.c (rb_str_justify): [ruby-dev:25367]
+
+Wed Dec 29 11:07:07 2004 Dave Thomas <dave@pragprog.com>
+
+ * lib/rdoc/generators/template/html/kilmer.rb: Update to use new
+ sections.
+
+Tue Dec 28 22:31:46 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * string.c (rb_str_justify): create buffer string after argument type
+ conversion. fixed: [ruby-dev:25341]
+
+Tue Dec 28 17:18:17 2004 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * lib/net/telnet.rb (preprocess): remove NULL unless binmode.
+ fixed: [ruby-list:40320]
+
+Tue Dec 28 15:41:48 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/nkf/nkf-utf8/nkf.c (reinit): should initialize all static
+ variables. fixed: [ruby-list:40445]
+
+Tue Dec 28 15:25:20 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/nkf/lib/kconv.rb (Kconv::RegexpEucjp): second byte is up to
+ 0xfe.
+
+ * ext/nkf/lib/kconv.rb (Kconv#kconv): should handle UTF8 and UTF16
+ properly.
+
+Tue Dec 28 13:35:20 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/zlib/zlib.c (rb_deflate_s_deflate, rb_inflate_s_inflate): ensure
+ freeing internal zstreams. fixed: [ruby-dev:25309]
+
+ * ext/zlib/zlib.c (rb_deflate_init_copy): replace rb_deflate_clone.
+
+Mon Dec 27 20:02:14 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tcltklib/tcltklib.c: fix SEGV bug when deleting Tk interp
+
+ * ext/tk/lib/multi-tk.rb: ditto
+
+Mon Dec 27 16:54:05 2004 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * ext/openssl/ossl_x509name.c (Init_ossl_x509name): should use
+ rb_hash_new to get exactly a Hash. fix [ruby-dev:25325].
+
+Mon Dec 27 15:29:12 2004 Minero Aoki <aamine@loveruby.net>
+
+ * test/fileutils/test_fileutils.rb (cp_r): tested wrong file name.
+ [ruby-dev:25339]
+
+Mon Dec 27 15:15:18 2004 Minero Aoki <aamine@loveruby.net>
+
+ * lib/fileutils.rb (mv): should raise error when moving a
+ directory to the (empty) directory. [ruby-talk:124368]
+
+ * lib/fileutils.rb (mv): wrongly did not overwrite file on Win32
+ platforms.
+
+Mon Dec 27 14:36:20 2004 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * process.c (NUM2RLIM, RLIM2NUM): Without SIZEOF_RLIM_T is not error.
+ fixed: [ruby-dev:25346]
+
+Sun Dec 26 16:21:39 2004 Shugo Maeda <shugo@ruby-lang.org>
+
+ * lib/net/imap.rb (Net::IMAP::PlainAuthenticator): added a new class
+ to support the PLAIN authentication mechanism. Thanks, Benjamin
+ Stiglitz.
+
+Sat Dec 25 01:28:23 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * io.c (rb_f_select): [ruby-dev:25312]
+
+Fri Dec 24 23:27:18 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/tk/image.rb: TkPhotoImage#cget bug fix
+
+Fri Dec 24 03:06:13 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * io.c (io_reopen, rb_io_reopen): prohibit to change access mode for
+ special IO ports. [ruby-dev:25225]
+
+ * io.c (next_argv): reduce use of stdio.
+
+Fri Dec 24 02:22:53 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/syck/rubyext.c (syck_loader_transfer): check type conversion.
+
+ * ext/syck/rubyext.c (syck_parser_assign_io, rb_new_syck_node): duck
+ typing.
+
+ * ext/syck/rubyext.c (syck_parser_s_alloc, syck_parser_initialize):
+ allocation framework.
+
+ * ext/syck/rubyext.c (syck_emitter_s_alloc, syck_emitter_initialize):
+ ditto.
+
+Fri Dec 24 01:21:00 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/tkextlib/blt.rb: add BLT extension support
+
+ * ext/tk/lib/tkextlib/blt/*.rb: ditto
+
+ * ext/tk/lib/tkextlib/blt/tile/*.rb: ditto
+
+Thu Dec 23 23:43:24 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * process.c (proc_setgroups): check if the argument length is
+ modified. fixed: [ruby-dev:25285]
+
+ * process.c (SIZEOF_RLIM_T): err if size of rlim_t is not set.
+
+Thu Dec 23 19:08:41 2004 Tanaka Akira <akr@m17n.org>
+
+ * rubyio.h: rename FMODE_UNSEEKABLE to FMODE_DUPLEX.
+
+ * io.c (io_check_tty): extracted function to set FMODE_LINEBUF and
+ FMODE_DUPLEX.
+
+Thu Dec 23 13:13:33 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tcltklib/tcltklib.c: define TclTkLib::COMPILE_INFO and
+ RELEASE_DATE
+
+ * ext/tcltklib/extconf.rb: ditto
+
+ * ext/tk/tkutil.c: define TkUtil::RELEASE_DATE
+
+ * ext/tk/lib/tk.rb: define Tk::RELEASE_DATE
+
+Thu Dec 23 00:16:32 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (bsdi): use $(CC) for LDSHARED. fixed [ruby-dev:25270]
+
+Wed Dec 22 11:14:55 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * io.c (rb_io_mode_modenum): replace O_ACCMODE with O_RDWR.
+ fixed: [ruby-dev:25273]
+
+Wed Dec 22 08:34:32 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/dl/sym.c (rb_dlsym_initialize): extract internal pointers after
+ all argument conversion. fixed: [ruby-dev:25271]
+
+Tue Dec 21 16:15:21 2004 Michael Neumann <mneumann@ruby-lang.org>
+
+ * lib/xmlrpc/client.rb: use "" instead of "." if prefix argument is
+ nil in proxy methods. nil is default value.
+
+ * test/xmlrpc/test_webrick_server.rb, test/xmlrpc/webrick_testing.rb:
+ use threads instead of forking. this should fix issue #1208
+ (http://rubyforge.org/tracker/?func=detail&atid=1698&aid=1208&group_id=426).
+ removed testing of SSL enabled servlet as this hangs.
+
+Wed Dec 22 00:05:10 2004 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * lib/soap/*, test/soap/*, sample/soap/authheader/*: eval cleanup.
+
+Tue Dec 21 22:07:41 2004 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * ext/openssl/ossl_asn1.c (ossl_asn1_decode_all): use rb_str_new4
+ to avoid SEGV.
+
+ * ext/openssl/ossl_asn1.c (ossl_asn1_traverse, ossl_asn1_decode,
+ ossl_asn1_decode_all): temporary value should be marked volatile.
+
+Tue Dec 21 12:42:34 2004 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * ext/openssl/ossl_asn1.c (ossl_asn1_traverse, ossl_asn1_decode):
+ use rb_str_new4 to avoid SEGV. fix [ruby-dev:25261]
+
+ * test/openssl/test_asn1.rb: add tests for OpenSSL::ASN1.
+
+Tue Dec 21 12:10:04 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/tk/grid.rb: rescue bug of 'grid configure' on Tcl/Tk8.3-
+
+Mon Dec 20 22:52:29 2004 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * added samples for the previous soap4r's commit.
+
+Mon Dec 20 22:56:39 2004 Tanaka Akira <akr@m17n.org>
+
+ * gc.c (set_stack_end): gcc noinline attribute is available since
+ gcc-3.1.
+
+Mon Dec 20 22:40:31 2004 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * added files:
+ * lib/soap/mapping/wsdl*.rb
+ * lib/wsdl/soap/element.rb
+ * lib/wsdl/xmlSchema/simpleContent.rb
+
+ * modified files:
+ * lib/soap/*
+ * lib/wsdl/*
+ * lib/xsd/*
+ * test/soap/*
+ * test/wsdl/*
+ * test/xsd/*
+
+ * summary
+ * imported from the soap4r repository. Version: 1.5.3-ruby1.8.2
+
+ * added several XSD basetype support: nonPositiveInteger,
+ negativeInteger, nonNegativeInteger, unsignedLong, unsignedInt,
+ unsignedShort, unsignedByte, positiveInteger
+
+ * HTTP client connection/send/receive timeout support.
+
+ * HTTP client/server gzipped content encoding support.
+
+ * improved WSDL schema definition support; still is far from
+ complete, but is making step by step improvement.
+
+Mon Dec 20 14:45:19 2004 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * lib/net/https.rb: delete descriptions about key_file and cert_file.
+ fixed: [ruby-dev:25243]
+
+ * ext/openssl/lib/net/telnets.rb: ditto.
+
+Mon Dec 20 14:07:02 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/multi-tk.rb: supports new features of Tcl/Tk8.5a2
+
+ * ext/tk/lib/tk/clock.rb: ditto
+
+ * ext/tk/lib/tk/text.rb: ditto
+
+ * ext/tk/lib/tk/panedwindow.rb: ditto
+
+Mon Dec 20 13:51:40 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ext/socket/socket.c (sock_s_getservbyport): [ruby-talk:124072]
+
+Mon Dec 20 10:51:58 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (special_local_set): prevent the parser object from GC.
+ fixed: [ruby-dev:25252]
+
+Mon Dec 20 03:30:40 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/cgi/session.rb (CGI::Session#initialize): empty session id was
+ used if request had no session key. fixed: [ruby-core:03981]
+
+Mon Dec 20 01:51:01 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * struct.c (make_struct): [ruby-dev:25249]
+
+Mon Dec 20 00:16:54 2004 Kouhei Sutou <kou@cozmixng.org>
+
+ * lib/rexml/encodings/SHIFT_JIS.rb: fixed LoadError bug.
+ [ruby-core:3958]
+
+Sun Dec 19 17:24:59 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (enable_rpath): use rpath flag to embed the library
+ path into extensions on ELF environment. [ruby-dev:25035]
+
+Sun Dec 19 11:01:25 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/test/unit.rb: use standalone runner for -e.
+
+ * lib/test/unit/autorunner.rb (Test::Unit::AutoRunner#options): accept
+ multiple -p and -x options.
+
+ * lib/test/unit/collector/dir.rb (Test::Unit::Collector::Dir#recursive_collect):
+ ditto.
+
+Sat Dec 18 16:36:23 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/zlib/zlib.c (rb_deflate_s_deflate, rb_inflate_s_inflate):
+ disallow interrupt by type conversion. fixed: [ruby-dev:25226]
+
+Sat Dec 18 15:09:02 2004 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * lib/webrick/httpauth.rb,
+ lib/webrick/httpauth/{basicauth.rb,digestauth.rb}: use
+ pack/unpack-template char "m" instead of lib/base64.rb to do base64
+ encoding/decoding.
+
+Sat Dec 18 10:51:01 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * dir.c (dir_open_dir): new function. [ruby-dev:25242]
+
+ * io.c (rb_f_open): add type check for return value from to_open.
+
+Fri Dec 17 16:44:26 2004 Tanaka Akira <akr@m17n.org>
+
+ * configure.in (ac_cv_sizeof_rlim_t): set 8 for BSD/OS.
+ Reported by OHARA Shigeki. [ruby-dev:25236]
+
+Fri Dec 17 16:28:12 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/tk.rb: fix bug on setting up system encoding
+
+ * ext/tk/lib/tk/event.rb: fix error on require process
+
+ * ext/tk/lib/tk/font.rb: fix abnormal termination error on Windows
+
+ * ext/tk/lib/tk/virtevent.rb: TkVirtualEvent::PreDefVirtEvent.new()
+ accepts event-sequence arguments
+
+ * ext/tk/lib/tk/text.rb: fail to dump embedded images
+
+ * ext/tk/lib/tk/text.rb: tag_nextrange and tag_prevrange returns wrong
+ types of values
+
+ * ext/tk/lib/tk/texttag.rb: nextrange and prevrange returns wrong
+ types of values
+
+ * ext/tk/lib/tk/text.rb: add TkText::IndexModMethods module and
+ TkText::IndexString class to treat text index modifiers
+
+ * ext/tk/lib/tk/texttag.rb: use TkText::IndexModMethods module
+
+ * ext/tk/lib/tk/textmark.rb: ditto
+
+ * ext/tk/lib/tk/textimage.rb: ditto
+
+ * ext/tk/lib/tk/textwindow.rb: ditto
+
+ * ext/tk/lib/tk/textimage.rb: wrong gravity of text mark for embedded
+ image
+
+ * ext/tk/lib/tk/textwindow.rb: wrong gravity of text mark for
+ embedded window
+
+Fri Dec 17 13:33:58 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/cgi/session.rb (CGI::Session#initialize): control adding
+ session_id hidden fields. fixed: [ruby-talk:123850]
+
+Fri Dec 17 00:01:48 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (rb_proc_arity, rb_node_arity, rb_mod_method_arity,
+ rb_obj_method_arity): new functions to obtain method arity.
+ [ruby-dev:25143]
+
+Thu Dec 16 23:31:13 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/mkmf.rb (create_makefile): create RUBYARCHDIR also when no extension
+ is installed. fixed: [ruby-dev:25215]
+
+Thu Dec 16 22:36:57 2004 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
+
+ * test/drb/test_drb.rb: adjust and reduce sleep.
+
+Thu Dec 16 18:37:08 2004 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * ext/openssl/ossl.c (ossl_raise): refine message format.
+
+Thu Dec 16 16:29:44 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/sample/demos-en/widget: modify version check for
+ supporting features
+
+Thu Dec 16 16:03:50 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/tk/bindtag.rb: bug fix [ruby-talk: 123667]
+
+ * ext/tk/lib/tk/timer.rb: accept :idle for the interval argument
+
+ * ext/tk/lib/tk.rb: add TkComm._callback_entry?()
+
+ * ext/tk/lib/multi-tk.rb: add MultiTkIp.cb_entry_class
+
+ * ext/tk/lib/tk/canvas.rb: use TkComm._callback_entry?()
+
+ * ext/tk/lib/tk/canvastag.rb: ditto
+
+ * ext/tk/lib/tk/dialog.rb: ditto
+
+ * ext/tk/lib/tk/optiondb.rb: ditto
+
+ * ext/tk/lib/tk/text.rb: ditto
+
+ * ext/tk/lib/tk/texttag.rb: ditto
+
+ * ext/tk/lib/tk/textwindow.rb: ditto
+
+ * ext/tk/lib/tk/timer.rb: ditto
+
+ * ext/tk/lib/tk/validation.rb: ditto
+
+ * ext/tk/lib/tkextlib/*: ditto
+
+Thu Dec 16 04:02:28 2004 Minero Aoki <aamine@loveruby.net>
+
+ * ext/ripper/extconf.rb: bison is not needed if ripper.c exists.
+ [ruby-dev:25191]
+
+Thu Dec 16 03:27:10 2004 Minero Aoki <aamine@loveruby.net>
+
+ * lib/net/http.rb: remove junk.
+
+Thu Dec 16 00:57:30 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ext/syck/rubyext.c (rb_syck_io_str_read): [ruby-core:03973]
+
+Thu Dec 16 00:43:29 2004 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
+
+ * lib/drb/drb.rb: changed default binded address family to use an
+ available address family of host name. [druby-ja:101]
+
+ * lib/drb/ssl.rb: ditto
+
+Wed Dec 15 17:47:17 2004 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * lib/webrick/server.rb (WEBrick::GenericServer#start_thread):
+ should log about all accepted socket. [ruby-core:03962]
+
+ * lib/webrick/accesslog.rb (WEBrick::AccessLog#setup_params):
+ "%%" and "%u" are supported. [webricken:135]
+
+ * lib/webrick/httpservlet/filehandler.rb
+ (WEBrick::HTTPServlet::FileHandler#check_filename):
+ :NondisclosureName is acceptable if it is Enumerable.
+
+ * lib/webrick/config.rb (WEBrick::Config::FileHandler):
+ default value of :NondisclosureName is [".ht*", "*~"].
+
+Wed Dec 15 16:10:23 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * object.c (rb_obj_id_obsolete): warn always.
+
+Wed Dec 15 15:31:02 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/set.rb (Set#==): [ruby-dev:25206]
+
+Wed Dec 15 14:32:18 2004 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/win32.c (rb_w32_fdisset): check whether the handle is valid.
+
+Wed Dec 15 10:30:37 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ext/openssl/ossl_digest.c (ossl_digest_initialize): [ruby-dev:25198]
+
+Tue Dec 14 19:17:15 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * utf8.c (utf8_is_mbc_ambiguous): [ruby-talk:123561]
+
+ * utf8.c (utf8_mbc_to_normalize): ditto.
+
+Tue Dec 14 17:08:15 2004 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/win32.c (rb_w32_close): need to reset osfhnd().
+
+Tue Dec 14 14:03:57 2004 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * ext/openssl/ossl.c (ossl_raise): avoid buffer overrun.
+ [ruby-dev:25187]
+
+Tue Dec 14 12:36:04 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/cgi/session.rb (CGI::Session::initialize): generate new
+ session if given session_id does not exist. [ruby-list:40368]
+
+Tue Dec 14 08:47:45 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (Init_eval): should mark ruby_eval_tree. [ruby-dev:25189]
+
+Mon Dec 13 18:13:52 2004 Tanaka Akira <akr@m17n.org>
+
+ * gc.c (set_stack_end): new function to obtain stack end address.
+ set_stack_end obtains a stack end address by an address of local
+ variable in the function.
+ (SET_STACK_END, STACK_END): use set_stack_end. don't use alloca.
+ This makes the conservative garbage collector to scan a stack frame
+ of the garbage_collect function itself. This is required because
+ callee-save registers may be stored in the frame.
+ [ruby-dev:25158]
+
+Mon Dec 13 02:45:51 2004 Shugo Maeda <shugo@ruby-lang.org>
+
+ * ext/curses/curses.c (window_subwin): call NUM2INT() before
+ GetWINDOW(). fixed: [ruby-dev:25161]
+
+Mon Dec 13 00:58:02 2004 Tanaka Akira <akr@m17n.org>
+
+ * lib/pathname.rb (cleanpath_aggressive): make it private.
+ (cleanpath_conservative): ditto.
+ Suggested by Daniel Berger. [ruby-core:3914]
+
+Sun Dec 12 21:32:14 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * test/ruby/test_super.rb (TestSuper#test_define_method): now methods
+ from procs can call super.
+
+Sun Dec 12 10:35:10 2004 Dave Thomas <dave@pragprog.com>
+
+ * lib/rdoc/generators/template/html/html.rb (RDoc::Page): Don't
+ show an accessor's r/w flag if none was specified
+
+Sun Dec 12 10:14:03 2004 Dave Thomas <dave@pragprog.com>
+
+ * lib/rdoc/rdoc.rb (RDoc::RDoc::parse_files): Never exclude files
+ explicitly given on the command line.
+
+Sat Dec 11 21:10:16 2004 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
+
+ * lib/drb/drb.rb: add DRbRemoteError. [ruby-list:40348],
+ [ruby-list:40390]
+
+ * test/drb/drbtest.rb: ditto.
+
+ * test/drb/ut_drb.rb: ditto.
+
+Sat Dec 11 13:08:28 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * sample/optparse/subcommand.rb: a sample for sub commands like
+ cvs. contributed by Minero Aoki.
+
+Fri Dec 10 08:39:48 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/socket/socket.c (sock_listen): get OpenFile just before calling
+ listen(2).
+
+Thu Dec 9 16:28:35 2004 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * ext/sdbm/init.c (GetDBM): typo.
+
+Thu Dec 9 16:21:51 2004 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * lib/webrick/cgi.rb (WEBrick::CGI#setup_header): avoid
+ SecurityError. [ruby-dev:24970]
+
+ * lib/webrick/httpserver.rb (WEBrick::HTTPServer#run): should wait
+ for reading request till data arrive. [ruby-talk:121068]
+
+Thu Dec 9 14:38:35 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * string.c (rb_str_inspect): escape # which starts an expression
+ substitution. fixed: [ruby-core:03922]
+
+ * string.c (rb_str_dump): not escape # which isn't a substitution.
+
+Thu Dec 9 12:31:53 2004 WATANABE Hirofumi <eban@ruby-lang.org>
+
+ * io.c (pipe_open): should set prog if argc != 0.
+
+Thu Dec 9 10:54:36 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ext/dbm/dbm.c (fdbm_select): [ruby-dev:25132]
+
+ * ext/sdbm/init.c: ditto.
+
+ * ext/gdbm/gdbm.c: ditto.
+
+Thu Dec 9 10:19:18 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * test/socket/test_socket.rb (test_setsockopt): use SO_LINGER instead
+ of SO_BINDTODEVICE. fixed: [ruby-dev:25133]
+
+Thu Dec 9 03:08:36 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tcltklib/tcltklib.c (ip_init): set root-win title to "ruby" when
+ the running script is '-e one-liner' or '-' (stdin).
+
+ * ext/tcltklib/extconf.rb: add find_library("#{lib}#{ver}",..) for
+ stub libs
+
+ * ext/tk/lib/tk/textmark.rb: TkTextMarkCurrent and TkTextMarkAnchor
+ have a wrong parent class.
+
+ * ext/tk/lib/tk/dialog.rb: rename TkDialog2 --> TkDialogObj and
+ TkWarning2 --> TkWarningObj (old names are changed to alias names)
+
+ * ext/tk/lib/tk/dialog.rb: bug fix of treatment of 'prev_command'
+ option and hashes for configuration
+
+ * ext/tk/lib/tk/dialog.rb: add TkDialogObj#name to return the
+ button name
+
+ * ext/tk/lib/tk/radiobutton.rb: rename enbugged method value() ==>
+ get_value() and value=(val) ==> set_value(val).
+
+ * ext/tk/lib/tk/menu.rb: add TkMenu.new_menuspec
+
+ * ext/tk/lib/tk/menu.rb: add alias (TkMenuButton = TkMenubutton,
+ TkOptionMenuButton = TkOptionMenubutton)
+
+ * ext/tk/lib/tk/event.rb: new method aliases (same as option keys of
+ event_generate) for Event object
+
+ * ext/tk/lib/tk/font.rb: configinfo returns proper types of values
+
+ * ext/tk/lib/tk.rb: bind methods accept subst_args + block
+
+ * ext/tk/lib/tk/canvas.rb: ditto
+
+ * ext/tk/lib/tk/canvastag.rb: ditto
+
+ * ext/tk/lib/tk/frame.rb: ditto
+
+ * ext/tk/lib/tk/text.rb: ditto
+
+ * ext/tk/lib/tk/texttag.rb: ditto
+
+ * ext/tk/lib/tk/toplevel.rb: ditto
+
+ * ext/tk/lib/tkextlib/*: ditto and bug fix
+
+Wed Dec 8 23:54:29 2004 Dave Thomas <dave@pragprog.com>
+
+ * lib/rdoc/generators/template/html/html.rb (RDoc::Page): Typo
+ meant that h2 tag was invisible.
+
+Wed Dec 8 22:10:02 2004 Tanaka Akira <akr@m17n.org>
+
+ * rubyio.h, io.c, ext/dl/dl.c, ext/pty/pty.c, ext/socket/socket.c:
+ create FILE object only when required: popen(3) and DL's IO#to_ptr.
+ [ruby-dev:25122]
+
+ * io.c (rb_io_binmode): use setmode for Human68k. [ruby-dev:25121]
+
+Wed Dec 8 20:13:06 2004 WATANABE Hirofumi <eban@ruby-lang.org>
+
+ * process.c (rb_spawn): support for DJGPP.
+
+ * lib/mkmf.rb (VPATH): specify the implicit path separator for DJGPP.
+
+Wed Dec 8 17:48:22 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (proc_invoke): merge Guy Decoux's argument preserve
+ patch in [ruby-core:03874].
+
+Wed Dec 8 17:37:33 2004 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/win32.c (rb_w32_pipe_exec): need to close original socket
+ handle.
+
+Wed Dec 8 14:31:36 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * sprintf.c (rb_f_sprintf): [ruby-dev:25104]
+
+Wed Dec 8 13:49:46 2004 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/win32.c (rb_w32_pipe_exec): must close original handle
+ before exec. fixed: [ruby-dev:25112]
+
+Wed Dec 8 11:46:26 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (string_content): get rid of segfault at empty evstr.
+ fixed: [ruby-dev:25113]
+
+Wed Dec 8 03:26:51 2004 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * ext/openssl/ossl_bio.c (ossl_obj2bio): should not use fptr->f.
+ [ruby-dev:25101]
+
+Wed Dec 8 03:26:41 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * runruby.rb: prepend LIBRUBY_SO to LD_PRELOAD as well as rubytest.rb.
+
+Wed Dec 8 01:35:44 2004 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/win32.c (is_socket): reorder of function definitions.
+
+Wed Dec 8 00:44:31 2004 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * io.c (pipe_open): win32 bidirectional pipe support.
+
+ * win32/win32.[ch] (rb_w32_pipe_exec): ditto.
+
+ * win32/win32.[ch] (socketpair): new function. POSIX socketpair
+ emulation.
+
+ * win32/win32.c (socketpair_internal): ditto.
+
+Wed Dec 8 00:25:07 2004 Kouhei Sutou <kou@cozmixng.org>
+
+ * test/rss/test_version.rb: added version check test.
+ [ruby-dev:25053]
+
+Tue Dec 7 15:40:38 2004 Tanaka Akira <akr@m17n.org>
+
+ * io.c (io_fwrite): avoid context switch before writing to stderr.
+ [ruby-dev:25080]
+
+ * rubyio.h: refine deprecated declaration.
+
+ * configure.in, file.c, io.c: remove useless check: fseeko, etc.
+
+Tue Dec 7 13:42:07 2004 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * dir.c (dir_s_mkdir): win32 special processing doesn't need any
+ longer.
+
+ * win32/win32.[ch] (rb_w32_mkdir): new function. POSIX.1 compatible
+ interface.
+
+ * win32/win32.[ch] (rb_w32_rmdir): new function.
+
+Tue Dec 7 00:27:37 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * process.c (proc_setgroups): [ruby-dev:25081]
+
+Mon Dec 6 23:07:57 2004 Tanaka Akira <akr@m17n.org>
+
+ * configure.in: check -lsocket for socketpair and shutdown.
+ reported by Ville Mattila. [ruby-core:03903]
+
+Mon Dec 6 23:00:45 2004 WATANABE Hirofumi <eban@ruby-lang.org>
+
+ * configure.in (ac_cv_sizeof_rlim_t): setup for DJGPP.
+
+ * io.c (is_socket, shutdown): define dummy macros for DJGPP.
+
+ * process.c: use SIZEOF_RLIM_T instead of HAVE_RLIM_T for DJGPP.
+
+Mon Dec 6 21:19:40 2004 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * io.c (is_socket): fix typos. [ruby-core:03900]
+
+Mon Dec 6 20:13:28 2004 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * io.c (is_socket): new function.
+
+ * io.c (rb_io_close_read, rb_io_close_write): use is_socket().
+
+ * io.c (rb_io_fptr_finalize): need to check fptr->f before calling
+ rb_io_fptr_cleanup().
+
+ * io.c (pipe_open): win32 pipe support (experimental).
+
+ * win32/win32.[ch] (rb_w32_pipe_exec): return file descriptors
+ instead of FILE structure objects.
+
+ * win32/win32.[ch] (rb_w32_is_socket): new function.
+
+Mon Dec 6 19:40:40 2004 WATANABE Hirofumi <eban@ruby-lang.org>
+
+ * Makefile.in (.y.c): simplify the rule.
+
+Mon Dec 6 18:08:10 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * re.c (rb_reg_eqq): document fix. [ruby-talk:122541]
+
+Mon Dec 6 17:49:30 2004 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * eval.c (run_trap_eval): add prototype for Microsoft compiler.
+
+Mon Dec 6 17:32:38 2004 Tanaka Akira <akr@m17n.org>
+
+ * rubyio.h, intern.h, io.c, file.c, process.c, ext/socket/socket.c,
+ ext/pty/pty.c, ext/io/wait/wait.c, ext/openssl/ossl_ssl.c:
+ Use own buffering mechanism instead of stdio. [ruby-dev:25056]
+
+ * io.c, ext/stringio/stringio.c, test/ruby/ut_eof.rb:
+ EOF flag removed.
+
+Mon Dec 6 17:15:17 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * test/socket/test_socket.rb (TestBasicSocket#test_setsockopt):
+ BasicSocket#setsockopt dumps core. [ruby-dev:25039]
+
+ * test/socket/test_tcp.rb (TestTCPSocket#test_recvfrom):
+ TCPSocket#recvfrom dumps core. [ruby-dev:24705]
+
+ * test/socket/test_udp.rb (TestUDPSocket#test_connect):
+ UDPSocket#connect dumps core. [ruby-dev:25045]
+
+ * test/socket/test_udp.rb (TestUDPSocket#test_bind):
+ UDPSocket#bind dumps core. [ruby-dev:25057]
+
+Mon Dec 6 09:59:23 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * io.c (io_fread): take VALUE argument.
+
+ * ext/socket/socket.c (sock_connect): use rb_str_new4().
+ [ruby-dev:25052]
+
+ * eval.c (rb_yield_0): [ruby-dev:25051]
+
+Mon Dec 6 01:32:31 2004 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * ext/openssl/ossl_pkey_rsa.c (ossl_rsa_public_encrypt,
+ ossl_rsa_public_decrypt, ossl_rsa_private_encrypt,
+ ossl_rsa_private_decrypt): should take an optional argument
+ to specify padding mode. [ruby-talk:122539]
+
+ * ext/openssl/ossl_pkey_rsa.c (Init_ossl_rsa): add new constants
+ PKCS1_PADDING, SSLV23_PADDING, NO_PADDING and PKCS1_OAEP_PADDING
+ under OpenSSL::PKey::RSA.
+
+ * test/openssl/test_pkey_rsa.rb: new file.
+
+Sun Dec 5 19:39:17 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/optparse.rb (OptionParser::Completion#complete): new parameter
+ to direct case insensitiveness.
+
+ * lib/optparse.rb (OptionParser#order!): ignore case only for long
+ option. [ruby-dev:25048]
+
+Sun Dec 5 00:54:32 2004 WATANABE Hirofumi <eban@ruby-lang.org>
+
+ * mkconfig.rb: setup library paths before requiring library.
+ [ruby-core:03892]
+
+Sat Dec 4 22:54:15 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * io.c (io_write): remove rb_str_locktmp(). [ruby-dev:25050]
+
+ * io.c (io_fwrite): takes VALUE string as an argument.
+ [ruby-dev:25050]
+
+ * ext/socket/socket.c (sock_connect): remove rb_str_locktmp().
+ [ruby-dev:25050]
+
+ * ext/socket/socket.c (udp_connect): [ruby-dev:25045]
+
+ * ext/socket/socket.c (udp_bind): ditto.
+
+ * ext/socket/socket.c (udp_send): ditto.
+
+ * ext/socket/socket.c (bsock_send): ditto.
+
+ * ext/socket/socket.c (s_recvfrom): ditto.
+
+ * hash.c (rb_hash_hash): should provide "hash" method where "eql?"
+ is redefined. [ruby-talk:122482]
+
+Sat Dec 4 21:29:05 2004 Minero Aoki <aamine@loveruby.net>
+
+ * lib/fileutils.rb: (In previous commit) new method chown.
+
+ * lib/fileutils.rb: (In previous commit) new method chown_R.
+
+ * lib/fileutils.rb: (In previous commit) new method chmod_R
+ wrongly added. Removed now.
+
+Sat Dec 4 20:45:52 2004 Minero Aoki <aamine@loveruby.net>
+
+ * lib/fileutils.rb (mkdir, mkdir_p): should chmod explicitly.
+ [ruby-core:03881]
+
+Sat Dec 4 18:54:09 2004 Kouhei Sutou <kou@cozmixng.org>
+
+ * lib/rss/rss.rb: removed empty lines from output.
+
+Sat Dec 4 18:49:09 2004 Kouhei Sutou <kou@cozmixng.org>
+
+ * lib/rss/rss.rb (RSS::VERSION): 0.1.1 -> 0.1.2
+
+ * lib/rss/rss.rb: #item=/#set_item and so on are obsolete.
+
+Sat Dec 4 14:28:56 2004 Dave Thomas <dave@pragprog.com>
+
+ * lib/rdoc/code_objects.rb (RDoc::Context::Section::set_comment):
+ Section comments may now be bracketed by lines which are
+ ignored. You can now write
+ # -----------
+ # :section: Dave's Section
+ # comment material
+ # -----------
+ The lines before :section: are removed, and identical lines at the end are
+ also removed if present.
+
+Sat Dec 4 00:35:08 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ext/socket/socket.c (bsock_setsockopt): [ruby-dev:25039]
+
+Fri Dec 3 12:25:21 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * st.h: fix prototype for C++.
+
+Fri Dec 3 01:55:24 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/tk.rb: widget configuration by TkWindow#method_missing
+ returns proper object. "widget.option = val" returns val, and
+ "widget.option(val)" returns self.
+
+ * ext/tk/lib/tk/font.rb: TkFont#replace accepts only one font argument.
+
+ * ext/tk/lib/tk/radiobutton.rb: add TkRadiobutton#value and
+ TkRadiobutton#value=(val).
+
+ * ext/tk/lib/tk/spinbox.rb: callback substitution support on
+ command option.
+
+ * ext/tk/sample/demos-en/widget: bug fix (wrong image height)
+
+ * ext/tk/sample/demos-jp/widget: ditto.
+
+Fri Dec 3 00:21:05 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (proc_invoke): prepare to pass a block from "call" method
+ to a Proc generated by Method#to_proc. [ruby-dev:25031]
+
+ * eval.c (rb_yield_0): actually passes a block given to "call".
+
+ * object.c (convert_type): use rb_respond_to() again. this fix is
+ based on [ruby-dev:25021]
+
+ * eval.c (rb_respond_to): funcall respond_to? if it's redefined.
+ [ruby-dev:25021]
+
+Thu Dec 2 15:13:53 2004 Michael Neumann <mneumann@ruby-lang.org>
+
+ * test/xmlrpc/test_parser.rb, test/xmlrpc/data/*.expected: Expected
+ values are now stored in YAML instead of using #inspect. This fixes
+ false hash order.
+
+Fri Dec 3 00:11:48 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * io.c (rb_file_initialize): [ruby-dev:25032]
+
+Thu Dec 2 16:41:03 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (rb_protect): prevent continuations created inside from being
+ called from the outside. [ruby-dev:25003]
+
+ * eval.c (rb_callcc, rb_cont_call): prohibit calling from different
+ signal contexts. [ruby-dev:25022]
+
+Thu Dec 2 10:45:02 2004 Shugo Maeda <shugo@ruby-lang.org>
+
+ * test/readline/test_readline.rb: fix for NetBSD.
+
+Thu Dec 2 09:57:24 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/ostruct.rb (OpenStruct::Marshaler): OpenStruct can be
+ marshaled again. [ruby-core:03862]
+
+Thu Dec 2 09:30:58 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (thread_mark): mark thread group. [ruby-dev:25020]
+
+ * eval.c (thgroup_add): check whether the argument is really a Thread.
+
+Thu Dec 2 07:57:16 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * io.c (rb_io_ctl): [ruby-dev:25019]
+
+Wed Dec 1 06:13:00 2004 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * ext/nkf/nkf.c: add constant NKF::VERSION
+
+ * ext/nkf/nkf.c(guess): this becomes an alias of guess2
+
+ * ext/nkf/test.rb: add --no-cp932
+
+ * ext/nkf/nkf-utf8/nkf.c: original nkf2 revision 1.47
+
+Wed Dec 1 02:21:02 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * signal.c (sighandler): call handler immediately only for default
+ handlers. [ruby-dev:25003]
+
+Tue Nov 30 23:49:12 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * io.c (pipe_open): errno should be preserved for rb_sys_fail() when
+ fork failed.
+
+Tue Nov 30 16:18:50 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * io.c (io_fread): need not to null terminate. [ruby-dev:24998]
+
+ * eval.c (rb_eval): should check previous frame for ZSUPER.
+
+ * io.c (read_all): remove unnecessary rb_str_resize().
+ [ruby-dev:24996]
+
+ * io.c (io_readpartial): ditto.
+
+ * io.c (io_read): ditto.
+
+Tue Nov 30 14:58:33 2004 WATANABE Hirofumi <eban@ruby-lang.org>
+
+ * instruby.rb (install): add arguments explicitly to "super".
+
+Tue Nov 30 00:49:08 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (PUSH_FRAME): flags should have been initialized.
+
+ * eval.c (rb_eval): [ruby-core:03856]
+
+ * io.c (rb_io_sysread): use temporary lock. [ruby-dev:24992]
+
+Tue Nov 30 00:12:57 2004 Kazuo Saito <ksaito@uranus.dti.ne.jp>
+
+ * regparse.c: now handles many alternatives (over 500000)
+ in regexp. [ruby-dev:24773]
+
+Mon Nov 29 16:06:04 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/stringio/stringio.c (strio_write): insufficiently filled string
+ being extended when overwriting. [ruby-core:03836]
+
+Mon Nov 29 15:59:05 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/ostruct.rb (OpenStruct::method_missing): check method
+ duplication for -d.
+
+ * lib/ostruct.rb (OpenStruct::initialize): ditto.
+
+Mon Nov 29 15:22:28 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * test/io/nonblock/test_flush.rb: abandon tests when io/nonblock is
+ not supported.
+
+Mon Nov 29 13:37:54 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * io.c (fptr_finalize): must not use FILE after fclose().
+ [ruby-dev:24985]
+
+Mon Nov 29 13:13:13 2004 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/win32.c (CreateChild): push back the last space before next
+ loop because CharNext() eats it.
+
+Mon Nov 29 03:08:30 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * object.c (convert_type): [ruby-core:03845]
+
+ * eval.c (rb_funcall_rescue): new function.
+
+ * object.c (rb_Array): avoid using rb_respond_to().
+
+ * object.c (rb_Integer): ditto.
+
+ * eval.c (get_backtrace): no conversion for nil.
+
+ * parse.y (reduce_nodes): empty body should return nil.
+
+Mon Nov 29 01:18:18 2004 Tanaka Akira <akr@m17n.org>
+
+ * io.c (rb_io_check_writable): call io_seek regardless of
+ NEED_IO_SEEK_BETWEEN_RW. [ruby-dev:24986]
+
+Sun Nov 28 15:57:58 2004 Kouhei Sutou <kou@cozmixng.org>
+
+ * lib/rss/rss.rb (RSS::Element#tag): not use block_given? for
+ working with ruby 1.6 again.
+
+ * lib/rss/{0.9,2.0,trackback}.rb, lib/rss/maker/base.rb:
+ undef -> remove_method for working with ruby 1.6 again.
+
+Sun Nov 28 15:51:40 2004 Kouhei Sutou <kou@cozmixng.org>
+
+ * lib/rss/rss.rb (RSS::NotSetError): added.
+
+ * lib/rss/maker/{1.0,0.9,2.0}.rb: changed RSS Maker to raise
+ RSS::NotSetError if required values of maker.channel are not
+ set. [ruby-talk:120061]
+
+ * test/rss/test_maker_{1.0,0.9,2.0}.rb: changed tests to check RSS
+ Maker raises or not.
+
+Sun Nov 28 12:14:47 2004 Kazuo Saito <ksaito@uranus.dti.ne.jp>
+
+ * regparse.c (fetch_token): fixed test failure on HP-UX ia64
+ ([ruby-dev:24859]).
+
+Sun Nov 28 12:08:15 2004 Kazuo Saito <ksaito@uranus.dti.ne.jp>
+
+ * regparse.c, test/ruby/test_regexp.rb: fixed problem with UTF-8
+ characters that have U+00FE or invalid characters.
+
+Sun Nov 28 12:07:04 2004 Kazuo Saito <ksaito@uranus.dti.ne.jp>
+
+ * regexec.c, test/ruby/test_regexp.rb: fixed segmentation fault
+ ([ruby-dev:24887]).
+
+Sun Nov 28 12:05:48 2004 Kazuo Saito <ksaito@uranus.dti.ne.jp>
+
+ * regcomp.c, regint.h: fixed PLATFORM_UNALIGNED_WORD_ACCESS
+ problem ([ruby-dev:24802] and [ruby-core:3733])
+
+Sat Nov 27 23:43:39 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * io.c (rb_io_initialize): [ruby-dev:24972]
+
+Sat Nov 27 21:43:39 2004 Tanaka Akira <akr@m17n.org>
+
+ * io.c: avoid data lost with nonblocking fd and
+ stdio buffering in sync mode. [ruby-dev:24966]
+ based on matz's patch [ruby-dev:24967]
+ (io_fwrite): new primitive writing function which writes
+ directly if sync mode.
+ (rb_io_fwrite): wrapper for io_fwrite now.
+ (io_write): call io_fwrite instead of rb_io_fwrite.
+
+Sat Nov 27 17:43:21 2004 Kouhei Sutou <kou@cozmixng.org>
+
+ * lib/rss/{0.9,1.0,2.0,trackback,xml-stylesheet}.rb: added
+ #setup_maker.
+
+ * test/rss/test_setup_maker_*.rb: added tests for #setup_maker.
+
+ * lib/rss/maker/base.rb(RSS::Maker::Items#max_size=): supported
+ output item size limitation.
+
+ * sample/rss/blend.rb: added sample for RSS Maker.
+
+Sat Nov 27 17:41:35 2004 Kouhei Sutou <kou@cozmixng.org>
+
+ * lib/rss/maker/0.9.rb: supported RSS::Maker.make("0.91"). Now,
+ "0.9" is just alias of "0.91."
+
+ * test/rss/test_maker_0.9.rb: make("0.9") -> maker("0.91").
+
+ * test/rss/test_to_s.rb: ditto.
+
+Sat Nov 27 17:21:30 2004 Kouhei Sutou <kou@cozmixng.org>
+
+ * sample/rss/list_description.rb: untabified.
+
+ * sample/rss/rss_recent.rb: ditto.
+
+Sat Nov 27 14:44:15 2004 Kent Sibilev <ksibilev@bellsouth.net>
+
+ * lib/cgi/session.rb (CGI::Session::initialize): [ruby-core:03832]
+
+Sat Nov 27 09:41:21 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * io.c (io_fread): old rb_io_fread with file closing checking.
+ (rb_io_fread): wrapper for io_fread now.
+ [ruby-dev:24964]
+
+Fri Nov 26 18:02:44 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/tk.rb: Tk.destroy uses TkWindow#epath
+
+ * ext/tk/lib/tk/image.rb: bug fix
+
+ * ext/tk/lib/tk/wm.rb: add 'iconphoto' method(Windows only)
+
+ * ext/tk/lib/tkextlib/*: some methods uses TkWindow#epath
+
+Fri Nov 26 14:29:39 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * io.c (rb_io_initialize): uninitialized fd was checked to see open
+ mode. [ruby-dev:24963]
+
+ * io.c (rb_io_initialize): uninitialized fd was used. [ruby-dev:24962]
+
+Fri Nov 26 13:49:06 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * io.c (rb_io_initialize): should retrieve flags from copying file
+ descriptor. [ruby-dev:24961]
+
+ * eval.c (method_missing): raise TypeError for classes do not
+ have allocators. [ruby-core:03752]
+
+ * lib/erb.rb: add RDoc by James Edward Gray II. [ruby-core:03786]
+
+Fri Nov 26 13:29:02 2004 Dave Thomas <dave@pragprog.com>
+
+ * lib/rdoc/parsers/parse_rb.rb (RDoc::RubyParser::look_for_directives_in): Break
+ out of preprocessing when we find a :section: directive (previously cleared out the
+ comment, but this apparently now generates an error in gsub!)
+
+Fri Nov 26 00:17:40 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * io.c (io_read): move StringValue() check before GetOpenFile().
+ [ruby-dev:24959]
+
+Thu Nov 25 20:14:57 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/thwait.rb (ThreadsWait#join_nowait): abnormally terminated
+ threads should be also processed. [ruby-talk:121320]
+
+Thu Nov 25 18:06:37 2004 Tanaka Akira <akr@m17n.org>
+
+ * configure.in: AC_CHECK_SIZEOF(rlim_t) to include stdio.h to fix
+ problem with autoconf 2.52 or earlier.
+ revert AC_PREREQ to 2.50.
+ [ruby-core:3809]
+
+Thu Nov 25 07:59:41 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * configure.in: AC_PREREQ(2.53) [ruby-core:03800]
+
+ * io.c (read_all): stringify non-nil buffer argument, and always
+ taint the result. [ruby-dev:24955]
+
+Wed Nov 24 01:01:31 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * io.c (io_read): integer conversion should be prior to
+ GetOpenFile(). [ruby-dev:24952]
+
+ * configure.in, io.c: cancel [ ruby-Patches-1074 ].
+
+Tue Nov 23 08:09:50 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/tk/menu.rb: improve usability of TkOptionMenubutton
+
+Tue Nov 23 02:00:21 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * file.c (rb_file_chown): integer conversion should be prior to
+ GetOpenFile(). [ruby-dev:24949]
+
+Tue Nov 23 00:10:48 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * file.c (rb_file_chown): integer conversion should be prior to
+ GetOpenFile(). [ruby-dev:24947]
+
+ * file.c (rb_file_truncate): ditto.
+
+ * file.c (rb_file_s_truncate): ditto.
+
+ * dir.c (dir_seek): use NUM2OFFT().
+
+ * misc/ruby-mode.el (ruby-non-block-do-re): [ruby-core:03719]
+
+Mon Nov 22 22:33:02 2004 Dave Thomas <dave@pragprog.com>
+
+ * lib/rdoc/parsers/parse_rb.rb (RDoc::parse_require): Don't use names
+ of variables or constants when parsing 'require'
+
+Mon Nov 22 00:13:35 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * dir.c (dir_seek): should retrieve dir_data after NUM2INT().
+ [ruby-dev:24941]
+
+Sat Nov 20 23:57:33 2004 Dave Thomas <dave@pragprog.com>
+
+ * lib/rdoc/README (et al): Add a new directive, :section:, and
+ change the output format to accommodate. :section: allows to to
+ group together methods, attributes, constants, etc under
+ headings in the output. If used, a table of contents is
+ generated.
+
+Sat Nov 20 23:56:54 2004 Dave Thomas <dave@pragprog.com>
+
+ * lib/rdoc/options.rb (Options::parse): Force --inline-source if
+ --one-file option given
+
+Sat Nov 20 23:55:19 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (rb_str_splice): should place index wrapping after
+ possible modification. [ruby-dev:24940]
+
+Sat Nov 20 23:25:12 2004 Minero Aoki <aamine@loveruby.net>
+
+ * io.c (rb_io_getline): f.gets("") did not work. [ruby-core:03771]
+
+ * test/ruby/test_io.rb (test_gets_rs): test it.
+
+Sat Nov 20 22:55:09 2004 WATANABE Hirofumi <eban@ruby-lang.org>
+
+ * test/runner.rb (CROSS_COMPILING): need to require rbconfig.rb before
+ using CROSS_COMPILNG.
+
+Sat Nov 20 20:42:42 2004 Minero Aoki <aamine@loveruby.net>
+
+ * ext/ripper/depend: fix ripper.o dependency.
+
+Sat Nov 20 17:48:29 2004 WATANABE Hirofumi <eban@ruby-lang.org>
+
+ * io.c (io_reopen): work around problem with Cygwin fseeko
+ returning ESPIPE.
+
+Sat Nov 20 05:34:24 2004 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * ext/nkf/nkf-utf8/nkf.c: original nkf.c rev:1.40
+
+ * ext/nkf/test.rb: add test for mime encode/decode
+
+Sat Nov 20 01:45:04 2004 WATANABE Hirofumi <eban@ruby-lang.org>
+
+ * test/xmlrpc/test_webrick_server.rb: move `requrie "webrick/https"'
+ into #setup_http_server method to avoid soap test errors.
+
+Sat Nov 20 01:37:34 2004 Johan Holmberg <holmberg@iar.se>
+
+ * eval.c (error_print): nicer traceback at interrupt.
+ [ruby-core:03774]
+
+Sat Nov 20 00:07:16 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (str_gsub): internal buffer should not be listed by
+ ObjectSpace.each_object() by String#gsub. [ruby-dev:24931]
+
+Fri Nov 19 22:44:43 2004 WATANABE Hirofumi <eban@ruby-lang.org>
+
+ * lib/test/unit/collector/dir.rb: better support for -p/-x option.
+
+Fri Nov 19 17:46:56 2004 Kouhei Sutou <kou@cozmixng.org>
+
+ * lib/rss/maker/0.9.rb (RSS::Maker::RSS09::Image#have_required_values):
+ changed /rss/channel/image to be optional. [ruby-Bugs:1047]
+
+ * test/rss/test_maker_0.9.rb: added tests for the above.
+
+Fri Nov 19 17:18:17 2004 Kouhei Sutou <kou@cozmixng.org>
+
+ * lib/rss/rss.rb (RSS::VERSION): 0.1.0 -> 0.1.1.
+
+ * lib/rss: #to_s used #tag.
+
+ * test/rss/test_to_s.rb: added.
+
+ * lib/rss/maker.rb (RSS::Maker.make): changed API. It's not
+ received modules which is used as the second argument.
+
+ * lib/rss/xml-stylesheet.rb (RSS::XMLStyleSheet#alternate):
+ changed return value type which is not String but Boolean.
+
+ * lib/rss/2.0.rb (RSS::Rss::Channel#ttl): changed return value
+ type which is not String but Integer.
+
+ * lib/rss/0.9.rb (RSS::Rss::Channel): <skipDays> has <day>s and
+ <skipHours> has <hour>s.
+
+ * lib/rss/maker/0.9.rb (RSS::Maker::RSS09::Channel): ditto.
+
+ * lib/rss/0.9.rb (RSS::Rss::Channel::Item): <item> has <category>s.
+
+ * lib/rss/maker/2.0.rb (RSS::Maker::Rss20::Channel::Item): ditto.
+
+ * lib/rss/2.0.rb (RSS::Rss::Channel): <channel> has <category>s.
+
+ * lib/rss/maker/2.0.rb (RSS::Maker::RSS20::Channel): ditto.
+
+ * lib/rss/trackback.rb: parent element has <trackback:about>s.
+
+ * lib/rss/maker/trackback.rb: ditto.
+
+Fri Nov 19 11:10:16 2004 WATANABE Hirofumi <eban@ruby-lang.org>
+
+ * lib/test/unit/collector/dir.rb: add support for directory name
+ with -p/-x options.
+
+ * test/testunit/collector/test_dir.rb: ditto.
+
+ * lib/xmlrpc/datetime.rb (XMLRPC::DateTime#==): should use Array()
+ instead of to_a.
+
+Fri Nov 19 10:32:36 2004 Shugo Maeda <shugo@ruby-lang.org>
+
+ * ext/readline/readline.c (readline_s_set_completion_append_character):
+ accept nil. [ruby-core:03765]
+
+Fri Nov 19 01:20:22 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/cgi/session.rb (CGI::Session::FileStore::initialize): raise
+ exception if data corresponding to session specified from the
+ client does not exist.
+
+Fri Nov 19 00:59:31 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (str_gsub): internal buffer should not be listed by
+ ObjectSpace.each_object(). [ruby-dev:24919]
+
+Thu Nov 18 23:42:36 2004 Minero Aoki <aamine@loveruby.net>
+
+ * ext/ripper/depend: Never regenerate lib/ripper/core.rb
+ automatically. [ruby-dev:24911]
+
+Thu Nov 18 20:47:24 2004 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/win32.[ch] (rb_w32_isatty): new function to replace MSVCRT's
+ isatty because it never sets errno.
+
+Thu Nov 18 18:41:08 2004 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
+
+ * test/ruby/test_stringchar.rb (test_bang): added.
+
+ * string.c (rb_str_upcase_bang, rb_str_capitalize_bang)
+ (rb_str_swapcase_bang): missing rb_str_modify().
+
+Thu Nov 18 17:05:01 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (f_rest_arg): store rest args into invisible local variable
+ in order to get rid of SEGV at ZSUPER. [ruby-dev:24913]
+
+Thu Nov 18 15:39:52 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * hash.c (rb_f_getenv): prohibit for $SAFE=4. [ruby-dev:24908]
+
+Thu Nov 18 14:58:42 2004 Shugo Maeda <shugo@ruby-lang.org>
+
+ * ext/readline/readline.c: check $SAFE.
+
+ * test/readline/test_readline.rb: added tests for readline.
+
+Thu Nov 18 00:21:15 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * process.c (proc_getpgrp): prohibit for $SAFE=2.
+ [ruby-dev:24899]
+
+ * process.c (get_pid): ditto. [ruby-dev:24904]
+
+ * process.c (get_ppid): ditto.
+
+ * array.c (rb_ary_delete): defer rb_ary_modify() until actual
+ modification. [ruby-dev:24901]
+
+Thu Nov 18 10:10:14 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * io.c, rubyio.h (rb_io_modenum_flags): exported.
+
+ * ext/stringio/stringio.c (strio_initialize): allow Fixnum as mode as
+ well as IO.new does. [ruby-dev:24896]
+
+Wed Nov 17 23:47:30 2004 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * test/ruby/test_settracefunc.rb: added. [ruby-dev:24884]
+
+Wed Nov 17 18:59:16 2004 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
+
+ * process.c (proc_getrlimit, proc_setrlimit): add rb_secure(2) to
+ methods of Process.{getrlimit,setrlimit}
+
+Wed Nov 17 13:56:57 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * parse.y (newline_node): should not use FL_SET. [ruby-dev:24874]
+
+ * parse.y (string_content): should not use FL_UNSET.
+
+ * node.h (NODE_NEWLINE): remove unused bit to utilize flag field
+ in nodes.
+
+Wed Nov 17 13:05:10 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * dir.c (rb_push_glob): fix overrun. [ruby-dev:24886]
+
+Wed Nov 17 11:48:17 2004 Michael Neumann <mneumann@ruby-lang.org>
+
+ * lib/xmlrpc/parser.rb, test/xmlrpc/test_features.rb: fixed "assigning
+ to constants" warnings
+
+Wed Nov 17 09:38:18 2004 Johan Holmberg <holmberg@iar.se>
+
+ * re.c (rb_reg_initialize_m): should raise exception instead of
+ compile error. [ruby-core:03755]
+
+Wed Nov 17 03:42:45 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (rb_str_splice): move rb_str_modify() after
+ StringValue(), which may alter the receiver. [ruby-dev:24878]
+
+ * error.c (rb_error_frozen): now raise RuntimeError instead of
+ TypeError.
+
+Tue Nov 16 21:22:47 2004 Michael Neumann <mneumann@ruby-lang.org>
+
+ * lib/xmlrpc/server.rb (CGIServer): fixed bug when client sends
+ "Content-typ: text/xml; ..."
+
+Tue Nov 16 23:45:07 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * numeric.c (flo_divmod): protect float values from GC by
+ assignment to local variables. [ruby-dev:24873]
+
+Tue Nov 16 14:31:54 2004 Michael Neumann <mneumann@ruby-lang.org>
+
+ * test/xmlrpc/*: imported and refactored original test cases.
+
+ * test/xmlrpc/test_webrick_server.rb, test/xmlrpc/webrick_testing.rb:
+ added test case that starts up a WEBrick XML-RPC server and performs
+ some tests on it (both http and https servers are started).
+
+ * lib/xmlrpc/create.rb (XMLWriter::each_installed_writer),
+ lib/xmlrpc/parser.rb (XMLParser::each_installed_parser):
+ added methods to simply original test cases
+
+ * lib/xmlrpc/parser.rb, lib/xmlrpc/datetime.rb: applied patch by
+ MoonWolf <moonwolf@moonwolf.com> to allow parsing datetime.iso8601
+ (e.g. 20041105T01:15:23Z).
+
+ * lib/xmlrpc/server.rb: fixed issue #998
+ (http://rubyforge.org/tracker/?func=detail&atid=1700&aid=998&group_id=426)
+
+ * lib/xmlrpc/create.rb, lib/xmlrpc/utils.rb: when marshalling/loading
+ user-defined data structures, use Class#allocate instead of defining
+ an empty #initialize method. module XMLRPC::Marshallable is now only
+ used for tagging.
+
+ * lib/xmlrpc/.document, lib/xmlrpc/README.rdoc: added howto
+
+Tue Nov 16 16:26:12 2004 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * {bcc32,win32,wince}/setup.mak (-epilogue-): remove config.h and
+ config.status to force updating them.
+
+Tue Nov 16 16:20:45 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/stringio/stringio.c (strio_read): position was ignored when a
+ buffer was passed. http://www.yo.rim.or.jp/~nov/d/?date=20041116#p03
+
+Tue Nov 16 13:35:54 2004 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * lib/test/unit/autorunner.rb (Test::Unit::AutoRunner::options): add
+ new option --exclude (-x) to skip some tests. [ruby-core:3363],
+ [ruby-dev:24865]
+
+ * lib/test/unit/collector/dir.rb (Test::Unit::Collector::Dir.exclude):
+ ditto.
+
+Tue Nov 16 11:19:07 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/test/unit/autorunner.rb (Test::Unit::AutoRunner::options): use
+ Regexp conversion.
+
+Tue Nov 16 01:41:31 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (str_mod_check): frozen check should be separated.
+ [ruby-core:3742]
+
+ * array.c (rb_ary_update): pedantic check to detect
+ rb_ary_to_ary() to modify the receiver. [ruby-dev:24861]
+
+Mon Nov 15 18:58:05 2004 Tanaka Akira <akr@m17n.org>
+
+ * configure.in: check rlim_t more portably. [ruby-core:3735]
+
+Mon Nov 15 11:50:32 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * misc/ruby-mode.el (ruby-special-char-p, ruby-parse-partial): handle
+ operator symbols. [ruby-talk:120177]
+
+Mon Nov 15 08:58:55 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (Init_Proc): make proc as an alias to Proc.new.
+ [ruby-dev:24848]
+
+Mon Nov 15 00:46:03 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (rb_yield_0): lambda{}.call(1) should raise exception.
+ [ruby-talk:120253]
+
+Mon Nov 15 00:33:40 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (rb_str_clear): avoid revealing NULL pointer.
+ [ruby-dev:24766]
+
+ * string.c (str_gsub): add paranoid check. [ruby-dev:24827]
+
+ * string.c (str_mod_check): check frozen status as well.
+ [ruby-dev:24801]
+
+Sun Nov 14 18:59:03 2004 Tanaka Akira <akr@m17n.org>
+
+ * process.c (proc_getrlimit): new function for Process.getrlimit.
+ (proc_setrlimit): new function for Process.setrlimit.
+ [ruby-dev:24834]
+
+ * configure.in: check rlim_t and its size. check setrlimit.
+
+ * ruby.h (NUM2ULL): new macro.
+
+Sun Nov 14 13:27:03 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/pp.rb (PP#object_address_group): remove odd number of 'f'
+ prefixed to negative address.
+
+Sun Nov 14 10:48:21 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/mathn.rb (Integer::gcd2): faster implementation by
+ <erlercw@siu.edu>. [ruby-talk:120232]
+
+Sun Nov 14 08:46:33 2004 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * test/logger/test_logger.rb: Logger just expects
+ Logger#datetime_format to be used for Time#strftime independently of
+ locale. [ruby-dev:24828]
+
+Fri Nov 12 17:32:07 2004 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * bcc32/README.bcc32, win32/README.win32: need bison instead of
+ byacc.
+
+Fri Nov 12 15:15:06 2004 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * eval.c (ruby_options): now we cannot call rb_glob() before
+ ruby_init(), so call rb_w32_cmdvector() at ruby_options().
+
+ * win32/win32.{c,h} (rb_w32_cmdvector): rename make_cmdvector() and
+ export it.
+
+Fri Nov 12 14:08:01 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/tk/event.rb: remove $LOADED_FEATURES trick
+
+ * ext/tk/lib/tk.rb: ditto
+
+Fri Nov 12 00:31:05 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ext/gdbm/gdbm.c (fgdbm_store): StringValue() may alter string
+ pointer. [ruby-dev:24783]
+
+Thu Nov 11 17:58:19 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * dir.c (rb_glob): should have called rb_glob_caller().
+ [ruby-dev:24773]
+
+Thu Nov 11 16:56:10 2004 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * test/ruby/test_file.rb (test_truncate_wbuf): we want to test
+ only File#truncate, not behavior of seek(2).
+
+Thu Nov 11 01:52:52 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * error.c (syserr_initialize): use stringified object.
+ [ruby-dev:24768]
+
+Wed Nov 10 22:49:01 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/delegate.rb (SimpleDelegator::dup): wrong number of
+ arguments.
+
+ * lib/delegate.rb (DelegateClass::dup): ditto.
+
+Wed Nov 10 19:47:55 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * dir.c (glob_helper): path is a string object now.
+
+Wed Nov 10 12:31:21 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * README.EXT (Example): extconf.rb is indispensable now.
+
+Wed Nov 10 03:33:36 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tcltklib/tcltklib.c: fix SEGV when compiled with Tcl/Tk8.3.x
+ or older
+
+ * ext/tk/lib/tkextlib/tile/style.rb: bug fix
+
+Tue Nov 9 22:24:07 2004 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * ext/nkf: original nkf.c rev:1.38
+
+ * ext/nkf/nkf.c: fix bug: can't parse long-name options
+
+ * ext/nkf/test.rb: fix bug: mime tests fail
+
+Tue Nov 9 14:27:18 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/optparse.rb (OptionParser::Officious): moved from DefaultList.
+
+Tue Nov 9 00:50:06 2004 Dave Thomas <dave@pragprog.com>
+
+ * lib/rdoc/rdoc.rb: Change version numbering of RDoc and ri
+
+Tue Nov 9 01:05:04 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * dir.c (rb_glob2): do not allocate buffer from heap to avoid
+ memory leaks. use string object for buffering instead.
+ [ruby-dev:24738]
+
+ * dir.c (join_path): ditto.
+
+ * io.c (io_read): external input buffer may be modified even after
+ rb_str_locktmp(). [ruby-dev:24735]
+
+ * dir.c (fnmatch): p or s may be NULL. [ruby-dev:24749]
+
+Tue Nov 9 00:36:26 2004 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
+
+ * lib/drb/extservm.rb: add DRb::ExtServManager#uri=.
+ [ruby-dev:24743]
+
+Mon Nov 8 22:20:19 2004 Dave Thomas <dave@pragprog.com>
+
+ * lib/rdoc/parsers/parse_rb.rb (RDoc::RubyParser::parse_class):
+ Fix bug where parent class wasn't being detected if the
+ child class was defined using the A::B notation.
+
+Mon Nov 8 00:14:13 2004 WATANABE Hirofumi <eban@ruby-lang.org>
+
+ * configure.in: add setup for mingw32 cross compiling.
+ [ruby-talk:119413]
+
+Sun Nov 7 23:49:26 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/tk.rb: bind-event methods accept multi substitution
+ arguments.
+
+ * ext/tk/lib/tk/canvas.rb: ditto.
+
+ * ext/tk/lib/tk/canvastag.rb: ditto.
+
+ * ext/tk/lib/tk/text.rb: ditto.
+
+ * ext/tk/lib/tk/texttag.rb: ditto.
+
+ * ext/tk/lib/tkextlib: ditto.
+
+Sat Nov 6 20:40:16 2004 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+
+ * ext/win32ole/win32ole.c: rename WIN32OLE#ole_obj_help to
+ WIN32OLE#ole_type. alias ole_obj_help to ole_type.
+
+ * ext/win32ole/tests/testWIN32OLE.rb: ditto.
+
+Sat Nov 6 11:18:59 2004 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * lib/date.rb (_parse): checks whether zone was given.
+
+Sat Nov 6 00:46:27 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (rb_str_locktmp): check STR_TMPLOCK flag before
+ locking. [ruby-dev:24727]
+
+Fri Nov 5 19:07:16 2004 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * ext/nkf: follow CVS Head of original nkf.
+
+Fri Nov 5 18:12:42 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/tk/scrollable.rb: divide Scrollable module into
+ X_Scrollable and Y_Scrollable
+
+ * ext/tk/lib/tk/entry.rb: include X_Scrollable instead of Scrollable
+
+ * ext/tk/lib/tk/autoload.rb: define autoload for X_Scrollable and
+ Y_Scrollable
+
+Fri Nov 5 16:05:32 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/tk.rb: TkComm._at() supprts both of "@x,y" and "@x"
+
+Fri Nov 5 13:22:58 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/tk/text.rb: sorry. bug fix again.
+
+Fri Nov 5 13:17:54 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/tk/text.rb: bug fix
+
+Fri Nov 5 08:52:48 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * gc.c (gc_mark): stricter GC stack check.
+
+Fri Nov 5 08:34:43 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (str_gsub): should have removed rb_str_unlocktmp(str).
+ [ruby-dev:24708]
+
+ * ext/socket/socket.c (s_recvfrom): buffer modification check.
+ [ruby-dev:24708]
+
+Thu Nov 4 23:54:21 2004 Kazuo Saito <ksaito@uranus.dti.ne.jp>
+
+ * regexec.c, regparse.c, regint.h: fixed conflicts between
+ vendor branch.
+
+Thu Nov 4 23:41:55 2004 Kazuo Saito <ksaito@uranus.dti.ne.jp>
+
+ * ascii.c, euc_jp.c, oniggnu.h, oniguruma.h, regcomp.c,
+ regenc.c, regenc.h, regerror.c, regexec.c, reggnu.c,
+ regint.h, regparse.c, regparse.h, sjis.c, utf8.c:
+ imported Oni Guruma 3.4.0.
+
+ * parse.y, re.c: Now mbclen() takes unsigned char as
+ its argument.
+
+Thu Nov 4 21:25:38 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (str_gsub): string modify check no longer based on
+ tmplock. [ruby-dev:24706]
+
+Thu Nov 4 21:13:48 2004 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+
+ * ext/win32ole/win32ole.c(typelib_file_from_typelib): search "win16"
+ entry to get library path.
+
+ * ext/win32ole/win32ole.c(oletypelib_path): ditto.
+
+ * ext/win32ole/win32ole.c(ole_typedesc2val): add VT_LPWSTR, VT_LPSTR,
+ VT_ERROR case.
+
+Thu Nov 4 15:02:14 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/tk/variable.rb: forget to initialize instance_variables
+ of TkVarAccess objects
+
+Thu Nov 4 09:11:35 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * gc.c (gc_mark): enable GC stack checking.
+
+Thu Nov 4 03:11:33 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (str_gsub): lock strings temporarily. [ruby-dev:24687]
+
+ * ext/socket/socket.c (s_recvfrom): tmplock input buffer.
+ [ruby-dev:24705]
+
+Wed Nov 3 22:24:17 2004 Daigo Moriwaki <techml@sgtpepper.net>
+
+ * lib/webrick/httpauth/digestauth.rb: use Base64.encode64 to
+ avoid warnings.
+
+Wed Nov 3 17:19:59 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * array.c (rb_ary_uniq_bang): do not push frozen string from hash
+ table. [ruby-dev:24695]
+
+ * array.c (rb_ary_and): ditto.
+
+ * array.c (rb_ary_or): ditto.
+
+Wed Nov 3 17:02:48 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/tk.rb: support to use different Tcl commands between
+ configure and configinfo
+
+ * ext/tk/lib/font.rb: ditto.
+
+ * ext/tk/lib/itemconfig.rb: support to use different Tcl commands
+ between item_configure and item_configinfo
+
+ * ext/tk/lib/itemfont.rb: ditto.
+
+ * ext/tk/extconf.rb: install SUPPORT_STATUS
+
+ * ext/tk/lib/tkextlib: some bug fixes (see ext/tk/ChangeLog.tkextlib)
+
+Wed Nov 3 15:38:28 2004 Kouhei Sutou <kou@cozmixng.org>
+
+ * test/rss/*.rb: removed tab width configuration headers.
+
+ * test/rss/test_maker_{0.9,1.0}.rb: sort -> do_sort.
+
+ * lib/rss/maker/*.rb: changed API to RSS version independence.
+
+ * lib/rss/maker/base.rb
+ (RSS::Maker::XMLStyleSheets::XMLStyleSheet): checked required
+ (pseudo) attributes.
+
+ * lib/rss/maker/base.rb (RSS::Maker::Items): sort -> do_sort.
+
+ * lib/rss/rss.rb (RSS::BaseModel.install_date_element): avoided
+ warning.
+
+ * lib/rss/0.9.rb (RSS::Rss#textinput): added convenience method.
+
+Tue Nov 2 16:35:57 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ext/enumerator/enumerator.c (each_cons_i): pass copy of an
+ internal consequent array. [ruby-talk:118691]
+
+Tue Nov 2 14:54:02 2004 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * io.c (pipe_open): need to set cmd if argc == 0 (win32).
+
+Tue Nov 2 01:20:09 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * io.c (pipe_open): IO.popen should take array as 1st argument for
+ a command line. [ruby-dev:24678]
+
+ * eval.c (proc_invoke): nail down dyna_var node when Proc object
+ or continuation is created. [ruby-dev:24671]
+
+ * io.c (rb_io_s_popen): do not expand argv array. [ruby-dev:24670]
+
+Mon Nov 1 22:25:56 2004 Kouhei Sutou <kou@cozmixng.org>
+
+ * lib/rss/maker/base.rb: changed xml-stylesheet's API of RSS Maker
+ like to item's one.
+
+ * lib/rss/xml-stylesheet.rb (RSS::XMLStyleSheet#guess_type): fixed
+ regular expression bug.
+
+ * test/rss/test_maker_xml-stylesheet.rb: updated tests for
+ xml-stylesheet.
+
+Mon Nov 1 13:59:28 2004 WATANABE Hirofumi <eban@ruby-lang.org>
+
+ * ext/extmk.rb (MANIFEST): do not use anymore, use extconf.rb instead.
+
+ * ext/enumerator/extconf.rb, ext/fcntl/extconf.rb,
+ ext/stringio/extconf.rb: added.
+
+ * MANIFEST, ext/**/MANIFEST: removed.
+
+ * README.EXT, README.EXT.ja: remove MANIFEST stuff.
+
+Mon Nov 1 11:52:18 2004 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * io.c (pipe_open): avoid conflict of variable name. [ruby-dev:24662]
+
+Mon Nov 1 11:46:19 2004 WATANABE Hirofumi <eban@ruby-lang.org>
+
+ * process.c (rb_f_exec): should check whether prog is NULL.
+
+Mon Nov 1 09:37:19 2004 Kouhei Sutou <kou@cozmixng.org>
+
+ * lib/rss/maker.rb: added entry point of RSS Maker.
+
+Mon Nov 1 03:14:14 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (rb_get_method_body): store ICLASS in the cache.
+ [ruby-core:03672]
+
+ * eval.c (rb_provided): should return true for loading library
+ too for autoloading. [ruby-core:03655]
+
+Mon Nov 1 01:14:52 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * io.c (rb_f_open): create copy of popen specifier. [ruby-dev:24656]
+
+ * string.c (rb_str_locktmp): lock string temporarily.
+
+ * string.c (str_independent): add tmplock check.
+
+ * io.c (io_write): lock output string temporarily.
+ [ruby-dev:24649]
+
+ * io.c (io_write): use rb_str_locktmp().
+
+ * io.c (read_all): ditto.
+
+Sun Oct 31 23:37:00 2004 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * process.c: on NetBSD don't use setruid() and setrgid().
+
+Sun Oct 31 23:12:10 2004 Kouhei Sutou <kou@cozmixng.org>
+
+ * lib/rss/maker/*.rb: added RSS Maker.
+
+ * test/rss/test_maker_*.rb: added tests for RSS Maker.
+
+Sun Oct 31 16:58:12 2004 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+
+ * ext/win32ole/win32ole.c: add WIN32OLE.codepage, WIN32OLE.codepage=.
+
+ * ext/win32ole/tests/testWIN32OLE.rb: ditto.
+
+Sun Oct 31 14:35:26 2004 WATANABE Hirofumi <eban@ruby-lang.org>
+
+ * ext/nkf/nkf-utf8/nkf.c: add "\075?UTF-8?Q?" for Gmail.
+
+Sun Oct 31 14:18:56 2004 Minero Aoki <aamine@loveruby.net>
+
+ * parse.y [ripper]: emit lexer-event values to the parser
+ (still incomplete).
+
+Sat Oct 30 15:24:41 2004 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+
+ * ext/win32ole/win32ole.c: add WIN32OLE_TYPELIB class. add
+ WIN32OLE#ole_typelib method.
+
+ * ext/win32ole/tests/testOLETYPELIB.rb: add WIN32OLE_TYPELIB class.
+
+Sat Oct 30 06:53:24 2004 Peter Vanbroekhoven <peter.vanbroekhoven@cs.kuleuven.ac.be>
+
+ * eval.c (rb_eval): NODE_XSTR should pass copy of literal string.
+
+Sat Oct 30 00:19:40 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * array.c (rb_ary_update): a[n,m]=nil no longer works as element
+ deletion.
+
+ * enum.c (enum_sort_by): protect continuation jump in.
+ [ruby-dev:24642]
+
+ * eval.c (rb_eval), gc.c (gc_mark_children), node.h (NEW_ALIAS,
+ NEW_VALIAS), parse.y (fitem): allow dynamic symbols to
+ NODE_UNDEF and NODE_ALIAS.
+
+Fri Oct 29 21:27:51 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * io.c (rb_io_check_initialized): new function to check uninitialized
+ object. [ruby-talk:118234]
+
+ * file.c (rb_file_path), io.c (rb_io_closed): check if initialized.
+
+Fri Oct 29 19:05:33 2004 NARUSE, Yui <naruse@ruby-lang.org>
+
+ * ext/nkf: follow nkf2.0.
+
+Fri Oct 29 17:18:22 2004 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * parse.y (ripper_s_allocate): add prototype for Microsoft compiler.
+
+ * range.c (range_step, range_each): need cast.
+
+Fri Oct 29 16:34:19 2004 Daiki Ueno <ueno@unixuser.org>
+
+ * misc/ruby-mode.el (ruby-parse-partial): Parse the rest of the
+ line after opening heredoc identifier. [ruby-dev:24635]
+
+Fri Oct 29 11:35:04 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (rb_parser_append_print, rb_parser_while_loop): body node
+ can be empty. [ruby-dev:24628]
+
+Fri Oct 29 10:00:30 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (rb_thread_start_0): forget to free some memory chunks.
+ [ruby-core:03611]
+
+ * eval.c (ruby_cleanup): ruby_finalize_1 may cause exception,
+ should be wrapped by PUSH_TAG/POP_TAG(). [ruby-dev:24627]
+
+Thu Oct 28 08:42:02 2004 Tanaka Akira <akr@m17n.org>
+
+ * io.c (argf_forward): use ANSI style.
+ (argf_read): call argf_forward with argv argument.
+ [ruby-dev:24624]
+
+Wed Oct 27 09:17:30 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * string.c (str_gsub): use a string object for exception safeness.
+ [ruby-dev:24601]
+
+Wed Oct 27 07:38:55 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * node.h (NODE_TYPESHIFT): allow 4 more bits for line numbers.
+ [ruby-talk:117841]
+
+ * ruby.h (FL_ABLE): nodes are not subject for flag operations.
+
+ * io.c (ARGF_FORWARD): should have specified argv explicitly,
+ since we no longer have frame->argv saved. [ruby-dev:24602]
+
+Tue Oct 26 23:30:39 2004 Dave Thomas <dave@pragprog.com>
+
+ * lib/rdoc/code_objects.rb (RDoc::Context::add_class_or_module):
+ Restore correct :nopdoc: behavior with nested classes and modules.
+
+Tue Oct 26 18:21:29 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (RESIZE_CAPA): check string attribute before modifying
+ capacity member of string structure. [ruby-dev:24594]
+
+Tue Oct 26 11:33:26 2004 David G. Andersen <dga@lcs.mit.edu>
+
+ * ext/zlib/zlib.c (gzreader_gets): use memchr() to to gain
+ performance. [ruby-talk:117701]
+
+Tue Oct 26 10:56:55 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * sprintf.c (rb_f_sprintf): raise ArgumentError for extra
+ arguments, unless (digit)$ style used.
+
+Mon Oct 25 18:35:39 2004 WATANABE Hirofumi <eban@ruby-lang.org>
+
+ * win32/win32.c (isUNCRoot): should check NUL after '.'.
+ [ruby-dev:24590]
+
+ * win32/win32.c (isUNCRoot): fixed buffer overrun.
+
+Mon Oct 25 08:03:26 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (get_backtrace): ignore illegal backtrace. [ruby-dev:24587]
+
+Sun Oct 24 00:40:50 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (rb_load, search_required, rb_require_safe, rb_require): use
+ frozen shared string to avoid outside modification. [ruby-dev:24580]
+
+Sat Oct 23 23:40:34 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * io.c (rb_io_fptr_finalize): leave stdin/stdout/stderr open in
+ interpreter termination. [ruby-dev:24579]
+
+Sat Oct 23 22:18:32 2004 Guy Decoux <ts@moulon.inra.fr>
+
+ * eval.c (frame_free): Guy Decoux solved the leak problem.
+ Thanks. [ruby-core:03549]
+
+Sat Oct 23 00:20:55 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ext/zlib/zlib.c (zstream_append_input): clear klass for z->input
+ to avoid potential vulnerability.
+
+ * ext/zlib/zlib.c (zstream_run): always use zstream_append_input()
+ to avoid SEGV. [ruby-dev:24568]
+
+Fri Oct 22 12:02:28 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (rb_alias): was warning for wrong condition.
+ [ruby-dev:24565]
+
+Fri Oct 22 10:36:37 2004 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * lib/webrick/httprequest.rb (WEBrick::HTTPRequest#meta_vars):
+ should check if path_info is not nil.
+
+Fri Oct 22 00:22:31 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ext/zlib/zlib.c (zstream_shift_buffer): should restore class
+ field of a buffer. [ruby-dev:24562]
+
+Fri Oct 22 00:20:33 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * string.c (rb_str_include): should not treat char as negative value.
+ [ruby-dev:24558]
+
+Thu Oct 21 21:32:30 2004 IWATSUKI Hiroyuki <don@na.rim.or.jp>
+
+ * lib/pstore.rb (PStore#transaction): Use the empty content when a
+ file is not found. [ruby-dev:24561]
+
+Thu Oct 21 19:06:15 2004 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * lib/webrick/httpresponse.rb (WEBrick::HTTPResponse#send_body_io):
+ ensure to close @body. (http://bugs.debian.org/277520)
+
+Thu Oct 21 13:11:31 2004 WATANABE Hirofumi <eban@ruby-lang.org>
+
+ * io.c (pipe_open): variable name "fpw" is conflicted.
+
+Thu Oct 21 00:36:41 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (rb_alias): should warn on method discarding.
+ [ruby-dev:24546]
+
+ * ext/zlib/zlib.c (zstream_expand_buffer_into): hide internal
+ string buffer by clearing klass. [ruby-dev:24548]
+
+ * parse.y (lex_getline): should not touch ruby_debug_lines if
+ RIPPER is defined. [ruby-dev:24547]
+
+Wed Oct 20 19:45:13 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (str_gsub): reentrant check. [ruby-dev:24432]
+
+Wed Oct 20 12:42:53 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * io.c (rb_io_getline): rs modification check should not interfere
+ in the loop.
+
+Wed Oct 20 10:31:33 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * parse.y (lex_getline): should update ruby_debug_lines.
+
+Wed Oct 20 04:17:55 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ext/dbm/dbm.c (fdbm_delete_if): should check if deleting element
+ is a string. [ruby-dev:24490]
+
+ * ext/sdbm/init.c (fsdbm_delete_if): ditto.
+
+Wed Oct 20 01:37:18 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * array.c (rb_ary_times): Array#* should return an instance of
+ the class of right operand. [ruby-dev:24526]
+
+ * ext/zlib/zlib.c (zstream_detach_buffer): should not expose
+ class-less object to Ruby world. [ruby-dev:24530]
+
+ * eval.c (proc_dup): provide Proc#dup as well. [ruby-talk:116915]
+
+ * eval.c (ruby_exec): stack marking position may be higher than
+ expected. thanks to Guy Decoux. [ruby-core:03527]
+
+Wed Oct 20 00:25:41 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (search_required): required name must not be changed before
+ loading. [ruby-dev:24492]
+
+Tue Oct 19 23:59:46 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (rb_require_safe): provide the feature after loaded.
+ [ruby-list:40085]
+
+Tue Oct 19 22:43:12 2004 Dave Thomas <dave@pragprog.com>
+
+ * lib/rdoc/parsers/parse_rb.rb (RDoc::RubyParser::parse_attr): If
+ we come across 'attr' in a context where it isn't
+ followed by a symbol, just issue a warning.
+
+Tue Oct 19 20:32:50 2004 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+
+ * ext/win32ole.c(ole_invoke): retrieve the result value when
+ retrying the IDispatch::invoke.
+
+Tue Oct 19 17:24:11 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * io.c (read_all): block string buffer modification during
+ rb_io_fread() by freezing it temporarily. [ruby-dev:24479]
+
+ * dir.c (rb_push_glob): block call at once the end of method.
+ [ruby-dev:24487]
+
+ * ext/enumerator/enumerator.c (enum_each_slice): remove
+ rb_gc_force_recycle() to prevent potential SEGV.
+ [ruby-dev:24499]
+
+ * ext/zlib/zlib.c (zstream_expand_buffer): hide internal string
+ buffer by clearing klass. [ruby-dev:24510]
+
+Tue Oct 19 08:47:21 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * string.c (rb_str_upto): method result must be checked. [ruby-dev:24504]
+
+ * eval.c (error_print): ditto. [ruby-dev:24519]
+
+Mon Oct 18 23:37:05 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * marshal.c (r_object0): check inheritance by the internal function.
+ [ruby-dev:24515]
+
+Mon Oct 18 11:29:32 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * io.c (rb_io_flags_mode, rb_io_mode_flags): distinguish whether file
+ not existing is created. [ruby-dev:24505]
+
+Mon Oct 18 07:26:21 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * file.c (rb_file_truncate): discard read buffer before truncation.
+ [ruby-dev:24197]
+
+Mon Oct 18 01:56:03 2004 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * lib/webrick/httprequest.rb (WEBrick::HTTPRequest#initialize):
+ initial value of accpet-* should be array.
+
+Mon Oct 18 00:42:45 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ext/socket/socket.c (sock_s_getservbyaname): protocol string
+ might be altered. [ruby-dev:24503]
+
+ * string.c (rb_str_upto): check if return value from succ is a
+ string. [ruby-dev:24504]
+
+Sun Oct 17 23:03:48 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/tk/timer.rb: TkTimer#start and restart accept a block
+
+Sun Oct 17 12:53:46 2004 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+
+ * ext/win32ole/win32ole.c (fole_func_methods): correct argument mismatch.
+ * ext/win32ole/win32ole.c (fole_get_methods): ditto.
+ * ext/win32ole/win32ole.c (fole_put_methods): ditto.
+ * ext/win32ole/tests/testWIN32OLE.rb: add test for WIN32OLE#ole_func_methods
+ WIN32OLE#ole_get_methods, WIN32OLE#ole_put_methods
+
+Sat Oct 16 14:45:28 2004 Kouhei Sutou <kou@cozmixng.org>
+
+ * lib/rss/0.9.rb (RSS::Rss#to_s): removed garbage.
+
+Sat Oct 16 13:42:49 2004 Kouhei Sutou <kou@cozmixng.org>
+
+ * lib/rss/: untabified.
+ * test/rss/: untabified.
+ * lib/rss/0.9.rb (RSS::Rss#to_s): inent -> indent.
+
+Sat Oct 16 13:34:56 2004 Kouhei Sutou <kou@cozmixng.org>
+
+ * lib/rss: supported prety print.
+ * test/rss/test_1.0.rb: added test for calculating default indent size.
+
+Sat Oct 16 10:56:36 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/mkmf.rb (create_makefile): install-rb is needed for statically
+ linked extensions. [ruby-dev:24491]
+
+Fri Oct 15 18:07:08 2004 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * ext/openssl/ossl_x509store.c
+ (ossl_x509stctx_initialize): setup OpenSSL::X509::StoreContext with
+ ossl_x509stctx_* functions instead of X509_STORE_CTX_*.
+ (ossl_x509store_set_time): add OpenSSL::X509::Store#time=.
+ (ossl_x509stctx_set_time): add OpenSSL::X509::StoreContext#time=.
+
+ * test/openssl/ossl_x509store.rb: test certificate validity times.
+
+Fri Oct 15 18:04:35 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/tk/timer.rb: TkTimer.new(interval, loop){ ... } is
+ acceptable. Add TkTimer.start ( == new + start ).
+
+Fri Oct 15 12:43:09 2004 Tanaka Akira <akr@m17n.org>
+
+ * eval.c (Init_stack): make prototype declaration consistent with
+ the definition in gc.c.
+
+Thu Oct 14 13:33:59 2004 Kouhei Sutou <kou@cozmixng.org>
+
+ * lib/rss/rss.rb: added link to Tutorial.
+
+Tue Oct 12 21:22:50 2004 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * lib/webrick/config.rb:
+ add WEBrick::Config::FileHandler[:AcceptableLanguages].
+
+ * lib/webrick/httpservlet/filehandler.rb
+ (WEBrick::HTTPServlet::FileHandler#set_filename): search files
+ having suffix of language-name which Accept-Language header field
+ includes if :AcceptableLanguages options is present.
+
+ * lib/webrick/httpservlet/filehandler.rb
+ (WEBrick::HTTPServlet::FileHandler#get_servlet): new method to
+ search servlet correspond to the suffix of filename.
+
+ * lib/webrick/httprequest.rb: add attributes access methods: accept,
+ accept_charset, accept_encoding, accept_language, content_length
+ and content_type.
+
+ * lib/webrick/httpresponse.rb: add attribute access methods:
+ content_length, content_length=, content_type and content_type=.
+
+ * lib/webrick/httputils.rb (WEBrick::HTTPUtils.mime_types):
+ use the second suffix to detect media type. (the first suffix
+ may be a language name.)
+
+ * lib/webrick/httputils.rb (WEBrick::HTTPUtils.parse_qvalues):
+ add method to parse Accept header field. it returns an Array of
+ values sorted by the qvalues.
+
+Tue Oct 12 15:05:32 2004 WATANABE Hirofumi <eban@ruby-lang.org>
+
+ * io.c (MODE_BINMODE, MODE_BINARY): fixed reversed condition.
+
+Mon Oct 11 17:51:34 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * io.c (rb_io_popen): get mode string via rb_io_flags_mode() to
+ avoid mode string modification. [ruby-dev:24454]
+
+ * io.c (rb_io_getline_fast): should take delim as unsigned char to
+ distinguish EOF and '\377'. [ruby-dev:24460]
+
+ * io.c (rb_io_getline): add check for RS modification.
+ [ruby-dev:24461]
+
+ * enum.c (enum_sort_by): use qsort() directly instead using
+ rb_iterate(). [ruby-dev:24462]
+
+ * enum.c (enum_each_with_index): remove rb_gc_force_recycle() to
+ prevent access to recycled object (via continuation for
+ example). [ruby-dev:24463]
+
+Mon Oct 11 13:48:20 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/tk/*: untabify
+
+Sun Oct 10 12:32:08 2004 Dave Thomas <dave@pragprog.com>
+
+ * lib/rdoc/parsers/parse_rb.rb (RDoc::parse_require): Allow 'require'
+ to be used as a variable name
+
+Sun Oct 10 02:49:14 2004 Minero Aoki <aamine@loveruby.net>
+
+ * ext/ripper/lib/ripper/filter.rb: require ripper/tokenizer.
+
+ * ext/ripper/lib/ripper/filter.rb (parse): argument is optional.
+
+Sun Oct 10 02:43:13 2004 Minero Aoki <aamine@loveruby.net>
+
+ * parse.y [ripper]: \n between two comments disappeared.
+
+Sat Oct 9 21:23:37 2004 Kouhei Sutou <kou@cozmixng.org>
+
+ * lib/rss/converter.rb: changed to try to use Iconv for default
+ conversion.
+
+ * lib/rss/rss.rb: 0.0.9 -> 0.1.0.
+
+Sat Oct 9 19:50:36 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * io.c (rb_io_getline): should not treat char as negative value.
+ [ruby-dev:24460]
+
+Sat Oct 9 00:25:39 2004 Tanaka Akira <akr@m17n.org>
+
+ * io.c (rb_io_fread): rb_thread_wait_fd() was lost.
+ [ruby-dev:24457]
+
+Fri Oct 8 21:36:56 2004 Minero Aoki <aamine@loveruby.net>
+
+ * lib/fileutils.rb (fu_traverse): return value of Dir.entries is
+ reliable. (pass $SAFE=1)
+
+ * lib/fileutils.rb (remove_dir): return value of Dir.foreach is
+ reliable. (pass $SAFE=1)
+
+Fri Oct 8 09:49:32 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * pack.c (pack_pack): pointer modification check before each
+ iteration. [ruby-dev:24445]
+
+Fri Oct 8 01:13:05 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/tk/optiondb.rb: make it more secure
+
+Thu Oct 7 23:47:57 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/tk/scrollbar.rb: When 'set' operation, a scrollbar
+ cannot propagate view port information from the source widget
+ (that calls 'set') to other assigned widgets.
+
+Thu Oct 7 17:36:25 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/tk.rb: When CHILDKILLED and so on, Tk.errorCode returns
+ a Fixnum for 2nd element (it's pid) of the return value.
+
+Thu Oct 7 12:55:04 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * io.c (io_read): should freeze buffer before thread context
+ switch. [ruby-dev:24442]
+
+ * pack.c (pack_unpack): string conversion should at the top of the
+ method. [ruby-dev:24439]
+
+ * io.c (io_read): buffer should be frozen only after the length
+ check. [ruby-dev:24440]
+
+Thu Oct 7 02:56:43 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/stringio/stringio.c: use FMODE_APPEND.
+
+Thu Oct 7 01:05:33 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/tk.rb: add Tk.errorInfo and Tk.errorCode
+
+Thu Oct 7 00:08:37 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * io.c (rb_io_s_sysopen): preserve path in the buffer allocated by
+ ALLOCA_N() to prevent modification. [ruby-dev:24438]
+
+Wed Oct 6 09:21:00 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * io.c (rb_io_mode_flags): preserve append mode flag.
+ [ruby-dev:24436]
+
+ * io.c (rb_io_modenum_mode): do not use external output buffer.
+
+ * string.c (rb_str_justify): differ pointer retrieval to prevent
+ padding string modification. [ruby-dev:24434]
+
+ * range.c (range_each_func): allow func to terminate loop by
+ returning RANGE_EACH_BREAK.
+
+ * range.c (member_i): use RANGE_EACH_BREAK. [ruby-talk:114959]
+
+Tue Oct 5 09:53:22 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * io.c (rb_fopen): mode string copy at the lowest level.
+
+ * io.c (rb_io_flags_mode): requires output buffer no more. no
+ allocation needed.
+
+ * array.c (rb_ary_index): takes a block to compare items in an
+ array. [ruby-talk:113069] [Ruby2]
+
+ * array.c (rb_ary_rindex): ditto.
+
+Mon Oct 4 14:03:40 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * io.c (rb_file_open_internal, rb_io_reopen): fname might be altered
+ while GC. [ruby-dev:24408]
+
+Mon Oct 4 12:53:45 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/tk/optiondb.rb: support definition of command
+ resources on widgets
+
+ * ext/tk/lib/tk/image.rb: bug fix
+
+Sun Oct 3 21:16:05 2004 Shugo Maeda <shugo@ruby-lang.org>
+
+ * lib/net/imap.rb (TEXT_REGEXP): allow 8-bit characters for the german
+ version of Microsoft Exchange Server.
+
+ * lib/net/imap.rb (RTEXT_REGEXP): ditto.
+
+ * lib/net/imap.rb (CTEXT_REGEXP): ditto.
+
+Sat Oct 2 20:34:05 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (local_vars): moved to struct parser_params.
+ [ruby-dev:24391]
+
+ * parser.y (stmts): remove suspicious NODE_BEGIN. [ruby-dev:24390]
+
+ * node.h (NEW_DVAR): extra semicolon.
+
+Sat Oct 2 00:42:20 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * marshal.c (r_byte): retrieve pointer from string value for each
+ time. [ruby-dev:24404]
+
+ * marshal.c (r_bytes0): ditto.
+
+ * enum.c (sort_by_i): re-entrance check added. [ruby-dev:24399]
+
+ * io.c (io_read): should freeze all reading buffer.
+ [ruby-dev:24400]
+
+ * string.c (rb_str_sum): should use bignums when bits is greater
+ than or equals to sizeof(long)*CHAR_BITS. [ruby-dev:24395]
+
+ * eval.c (specific_eval): defer pointer retrieval to prevent
+ unsafe sourcefile string modification. [ruby-dev:24382]
+
+ * string.c (rb_str_sum): wrong cast caused wrong result.
+ [ruby-dev:24385]
+
+ * enum.c (enum_sort_by): hide temporary array from
+ ObjectSpace.each_object. [ruby-dev:24386]
+
+ * string.c (rb_str_sum): check was done with false pointer.
+ [ruby-dev:24383]
+
+ * string.c (rb_str_sum): string may be altered. [ruby-dev:24381]
+
+Fri Oct 1 11:40:14 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (rb_f_eval): defer pointer retrieval to prevent unsafe
+ sourcefile string modification. [ruby-dev:24373]
+
+ * io.c (io_read): block string buffer modification during
+ rb_io_fread() by freezing it temporarily. [ruby-dev:24366]
+
+ * io.c (rb_io_s_popen): mode argument may be altered.
+ [ruby-dev:24375]
+
+ * file.c (rb_file_s_basename): ext argument may be altered.
+ [ruby-dev:24377]
+
+ * enum.c (enum_sort_by): use NODE instead of 2 element arrays.
+ [ruby-dev:24378]
+
+ * string.c (rb_str_chomp_bang): StringValue() may change the
+ receiver. [ruby-dev:24371]
+
+Fri Oct 1 11:25:20 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/tk/grid.rb: revive TkGrid.grid
+
+ * ext/tk/lib/tk/pack.rb: revive TkPack.pack
+
+ * ext/tk/lib/tk/place.rb: revive TkPlace.place
+
+Thu Sep 30 00:50:44 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tcltklib/tcltklib.c (ip_init): bug fix
+
+ * ext/tk/tkutil.c (get_eval_string_core): accept a Regexp object
+
+ * ext/tk/lib/multi-tk.rb: fix bug on 'exit' operation
+
+ * ext/tk/lib/tk/text.rb: 'tksearch' accepts a Regexp object as a
+ matting pattern argument
+
+Wed Sep 29 10:58:07 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * enum.c (sort_by_i): internally used object must not be changed
+ outside. [ruby-dev:24368]
+
+Mon Sep 27 21:25:12 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (rb_call0): invoke finalizers periodically.
+
+ * gc.c (gc_sweep): defer running finalizers. [ruby-dev:24354]
+
+ * gc.c (rb_gc_finalize_deferred): run deferred finalizers.
+
+Mon Sep 27 15:01:59 2004 Minero Aoki <aamine@loveruby.net>
+
+ * parse.y [ripper]: missing ';'.
+
+Mon Sep 27 13:46:45 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * intern.h, struct.c (rb_struct_s_members, rb_struct_members): public
+ accessors. [ruby-dev:24342]
+
+ * marshal.c (w_object, r_object0): use accessors.
+
+Mon Sep 27 09:14:03 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * array.c (rb_ary_delete): comparison may change the capacity.
+ [ruby-dev:24348]
+
+ * array.c (rb_ary_fill): fill should honor length argument.
+ [ruby-dev:24346]
+
+ * array.c (rb_ary_replace): should not use ptr from shared array.
+ [ruby-dev:24345]
+
+ * ext/socket/socket.c (s_accept): don't retry for EWOULDBLOCK.
+ [ruby-talk:113807]
+
+Sun Sep 26 08:05:10 2004 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * lib/date.rb: provides {Time,Date,DateTime}#to_{time,date,datetime}.
+
+ * sample/cal.rb: uses getoptlong instead of getopts.
+
+Sat Sep 25 18:39:22 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * array.c (flatten): element size might change during comparison.
+ [ruby-dev:24343]
+
+Sat Sep 25 01:52:49 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * struct.c (rb_struct_s_members): wrong call of struct_members.
+ [ruby-dev:24333]
+
+Fri Sep 24 16:09:42 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (proc_invoke): propagate DVAR_DONT_RECYCLE on termination
+ to avoid double call to rb_gc_force_recycle(). [ruby-dev:24311]
+
+Fri Sep 24 08:29:45 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * parse.y (rb_parser_append_print): should handle prelude.
+ [llama@u01.gate0]
+
+ * parse.y (rb_parser_while_loop): ditto.
+
+ * array.c (rb_ary_subseq): original object might be modified after
+ sharing data creation. [ruby-dev:24327]
+
+ * array.c (rb_ary_replace): ditto.
+
+ * array.c (ary_make_shared): freeze shared array. [ruby-dev:24325]
+
+ * struct.c (struct_members): always check struct size and size of
+ members list in the class. [ruby-dev:24320]
+
+Thu Sep 23 19:48:14 2004 Minero Aoki <aamine@loveruby.net>
+
+ * ext/ripper/Makefile.dev: removed.
+
+ * ext/ripper/ripper.rb.in: moved to lib/ripper/core.rb.in.
+
+ * ext/ripper/lib/ripper/core.rb: new file.
+
+ * ext/ripper/lib/ripper/core.rb.in: new file.
+
+ * ext/ripper/tools/generate-ripper_rb.rb: change comment.
+
+ * test/ripper/*.rb: on__scan event removed.
+
+ * test/ripper/*.rb: event name is changed: on__XXX -> on_XXX.
+
+Thu Sep 23 09:29:14 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (rb_str_sub_bang): check if string is not modified
+ during iteration. [ruby-dev:24315]
+
+ * hash.c (rb_hash_rehash): replace st_foreach() by its deep
+ checking counterpart. [ruby-dev:24310]
+
+Wed Sep 22 14:21:54 2004 Minero Aoki <aamine@loveruby.net>
+
+ * parse.y [ripper]: on__scan event removed.
+
+ * parse.y [ripper]: event name is changed: on__XXX -> on_XXX.
+
+ * ext/ripper/eventids2.c: ditto.
+
+ * ext/ripper/ripper.rb.in: ditto.
+
+ * ext/ripper/lib/ripper.rb: sync with ripper.rb.in.
+
+ * ext/ripper/lib/ripper/tokenizer: ditto.
+
+ * ext/ripper/lib/ripper/filter: new file.
+
+ * sample/ripper/colorize.rb: new file.
+
+ * sample/ripper/strip-comment.rb: new file.
+
+Wed Sep 22 13:50:49 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * hash.c (hash_alloc): was using tbl pointer without
+ initialization.
+
+Wed Sep 22 13:38:12 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * hash.c (rb_hash_rehash): add iteration check. [ruby-dev:24301]
+
+ * st.c (st_foreach): add deep check.
+
+ * hash.c (rb_hash_fetch): returns KeyError instead of IndexError.
+
+ * hash.c (env_fetch): ditto.
+
+Wed Sep 22 13:02:02 2004 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/win32.c (rb_w32_call_handler): workaround for Ctrl-C.
+
+Wed Sep 22 09:04:41 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * parse.y: remove global variables ruby_eval_tree and
+ ruby_eval_tree_begin.
+
+ * array.c (rb_ary_collect_bang): element size might change during
+ comparison. [ruby-dev:24300]
+
+ * array.c (rb_ary_reject_bang): ditto. [ruby-dev:24300]
+
+ * array.c (rb_ary_eql): ditto. [ruby-dev:24300]
+
+Wed Sep 22 00:11:12 2004 Dave Thomas <dave@pragprog.com>
+
+ * process.c: Add documentation for fork()
+
+Tue Sep 21 18:29:49 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * array.c (rb_ary_uniq_bang): element size might change during
+ comparison. [ruby-dev:24298]
+
+Mon Sep 20 17:46:51 2004 Minero Aoki <aamine@loveruby.net>
+
+ * ext/ripper/lib/ripper/tokenizer.rb: fix typo.
+
+Mon Sep 20 17:38:43 2004 Minero Aoki <aamine@loveruby.net>
+
+ * test/ripper/test_scanner_events.rb: tokens must be reordered.
+
+ * ext/ripper/lib/ripper/tokenizer.rb: ditto.
+
+Mon Sep 20 16:58:16 2004 Minero Aoki <aamine@loveruby.net>
+
+ * parse.y [ripper]: do not delay dispatching.
+
+ * ext/ripper/lib/ripper/tokenizer.rb: sort tokens by right order.
+
+Mon Sep 20 15:17:47 2004 Minero Aoki <aamine@loveruby.net>
+
+ * ext/ripper/lib/ripper/tokenizer.rb: new file.
+
+Mon Sep 20 15:13:52 2004 Minero Aoki <aamine@loveruby.net>
+
+ * test/ripper/test_scanner_events.rb: test #lineno and #column.
+
+Mon Sep 20 14:50:17 2004 Minero Aoki <aamine@loveruby.net>
+
+ * parse.y [ripper]: delayed heredocument events should be
+ dispatched after EOF.
+
+Mon Sep 20 14:39:42 2004 Minero Aoki <aamine@loveruby.net>
+
+ * parse.y [ripper]: adjust lineno and columns for multi-line
+ strings.
+
+ * parse.y [ripper]: delay heredocument events until seeing
+ end-of-line.
+
+ * parse.y [ripper]: event on__heredoc_contentn ->
+ on__tstring_content.
+
+ * ext/ripper/eventids2.c: ditto.
+
+ * ext/ripper/lib/ripper.rb: sync with eventids2.c.
+
+ * test/ripper/test_scanner_events.rb: test it.
+
+ * ext/ripper/tools/generate-ripper_rb.rb: show basename of input.
+
+ * ext/ripper/Makefile.dev: support objdir build.
+
+Mon Sep 20 13:22:55 2004 Minero Aoki <aamine@loveruby.net>
+
+ * parse.y [ripper]: remove Ripper#pos.
+
+ * parse.y [ripper]: Ripper#column should return the column of the
+ current token.
+
+Mon Sep 20 12:02:41 2004 Minero Aoki <aamine@loveruby.net>
+
+ * parse.y [ripper]: unify old_lex_p and token_head.
+
+ * test/ripper/test_scanner_events.rb: now \r\n is saved correctly.
+
+ * parse.y: new macro lex_goto_eol() for next change.
+
+Mon Sep 20 11:01:55 2004 Minero Aoki <aamine@loveruby.net>
+
+ * parse.y [ripper]: adjust line number for heredoc. [ruby-dev:24272]
+
+Mon Sep 20 04:49:22 2004 Minero Aoki <aamine@loveruby.net>
+
+ * ext/ripper/ripper.rb.in: new const Ripper::PARSER_EVENT_TABLE.
+
+ * ext/ripper/ripper.rb.in: new const Ripper::SCANNER_EVENT_TABLE.
+
+ * ext/ripper/lib/ripper.rb: sync with ripper.rb.in.
+
+Mon Sep 20 04:13:00 2004 Minero Aoki <aamine@loveruby.net>
+
+ * test/ripper/test_scanner_events.rb: test spaces before heredoc
+ mark.
+
+Mon Sep 20 03:46:54 2004 Minero Aoki <aamine@loveruby.net>
+
+ * parse.y [ripper]: spaces before heredoc marker was lost.
+ [ruby-dev:24272]
+
+ * keywords: rb_reserved_word() should be defined only in ruby
+ core. [ruby-dev:24272]
+
+ * lex.c: sync with keywords.
+
+ * ext/ripper/ripper.rb.in (parse): fix typo.
+
+ * ext/ripper/lib/ripper.rb: sync with ripper.rb.in.
+
+Mon Sep 20 03:37:59 2004 Tanaka Akira <akr@m17n.org>
+
+ * ext/zlib/zlib.c (gzfile_read_raw): call readpartial at first.
+ (Zlib::GzipReader#readpartial): new method.
+
+Mon Sep 20 00:24:19 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * enum.c (enum_sort_by): do not use qsort directly. use
+ rb_ary_sort_bang() instead. [ruby-dev:24291]
+
+ * enum.c (enum_sort_by): pedantic type check added.
+ [ruby-dev:24291]
+
+ * hash.c (rb_hash_foreach_iter): check iter_lev after each
+ iteration. [ruby-dev:24289]
+
+ * array.c (rb_ary_and): element size might change during
+ comparison. [ruby-dev:24290]
+
+ * array.c (rb_ary_or): ditto. [ruby-dev:24292]
+
+ * array.c (rb_ary_equal): wrong fix. [ruby-dev:24286]
+
+Sat Sep 18 15:02:22 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * array.c (rb_ary_equal): element size might change during
+ comparison. [ruby-dev:24254]
+
+ * array.c (rb_ary_diff): ditto. [ruby-dev:24274]
+
+ * array.c (rb_ary_select): ditto. [ruby-dev:24278]
+
+ * array.c (rb_ary_delete): ditto. [ruby-dev:24283]
+
+ * array.c (rb_ary_rindex): ditto. [ruby-dev:24275]
+
+ * array.c (rb_ary_initialize): element size might change during
+ initializing block. [ruby-dev:24284]
+
+Sat Sep 18 14:10:23 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * dir.c (dir_s_chdir): avoid memory leak and unnecessary chdir to
+ the original directory when exception has caused in changing
+ direcotry or within block. thanks to Johan Holmberg
+ <holmberg@iar.se> [ruby-core:03446]
+
+Fri Sep 17 20:29:33 2004 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * parse.y: add prototypes for Microsoft compiler.
+
+ * ext/ripper/depend (parse.obj): lex.c exists at hdrdir.
+
+ * {bcc32,win32,wince}/Makefile.sub (YACC, YFLAGS, parse.c):
+ use bison.
+
+Fri Sep 17 17:11:08 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * array.c (rb_ary_delete): element comparison might change array
+ size. [ruby-dev:24273]
+
+ * parse.y: make ruby parser reentrant. merge ripper parser to the
+ real one. this change makes ruby require bison.
+
+ * file.c (rb_file_truncate): clear stdio buffer before truncating
+ the file. [ruby-dev:24191]
+
+ * ext/digest/digest.c: use rb_obj_class() instead of CLASS_OF
+ which might return singleton class. [ruby-dev:24202]
+
+Fri Sep 17 16:07:09 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/multi-tk.rb: improve exit operation
+
+Fri Sep 17 15:01:57 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tcltklib/tcltklib.c: fix SEGV when (thread_)vwait or
+ (thread_)tkwait
+
+ * ext/tk/lib/tk.rb: add alias wait_window to wait_destroy
+
+ * ext/tk/lib/multi-tk.rb: support calling 'mainloop' on slave
+ interpreters (however, the 'real' eventloop must be run on the
+ Default Master IP)
+
+ * ext/tk/lib/remote-tk.rb: follow the changes of ext/tk/lib/multi-tk.rb
+
+ * ext/tk/sample/remote-ip_sample2.rb: ditto
+
+ * ext/tk/sample/tkoptdb-safeTk.rb: ditto
+
+Thu Sep 16 18:12:13 2004 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * lib/webrick/cgi.rb (WEBrick::CGI#start): should set REMOTE_USER
+ to request.user attribute.
+
+ * lib/webrick/httpservlet/filehandler.rb
+ (WEBrick::HTTPServlet::FileHandler#initialize): should expand
+ the pathname of document root directory.
+
+Thu Sep 16 15:49:28 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (rb_str_intern): protect string argument from GC.
+ [ruby-core:03411]
+
+Wed Sep 15 20:22:23 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/sample/tkoptdb-safeTk.rb: fix a bug depend on the changes
+ of MultiTkIp
+
+Tue Sep 14 23:54:11 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/multi-tk.rb: MultiTkIp#eval_string was en-bugged by
+ the previous changes.
+
+Tue Sep 14 23:45:44 2004 Dave Thomas <dave@pragprog.com>
+
+ * lib/rdoc/ri/ri_formatter.rb (RI::TextFormatter::TextFormatter.for):
+ Add Eric Hodel's simpleformatter.
+
+Tue Sep 14 22:11:08 2004 Minero Aoki <aamine@loveruby.net>
+
+ * parse.y [ripper]: Add rdoc.
+
+Tue Sep 14 20:24:49 2004 Minero Aoki <aamine@loveruby.net>
+
+ * parse.y [ripper]: space event is on__sp, not on__lwsp.
+ [ruby-dev:24257]
+
+ * ext/ripper/eventids2.c: ditto.
+
+ * ext/ripper/lib/ripper.rb: ditto.
+
+ * ext/ripper/depend (ripper.o): No action is needed.
+ [ruby-dev:24260]
+
+ * ext/ripper/depend: Borland make does not accept pipes in
+ Makefile rules. [ruby-dev:24589]
+
+ * ext/ripper/depend: separate rules for developpers.
+
+ * ext/ripper/Makefile.dev: new file.
+
+ * ext/ripper/MANIFEST: add Makefile.dev.
+
+ * ext/ripper/tools/generate-eventids1.rb: read from file, not
+ stdin.
+
+ * ext/ripper/extconf.rb: clean ripper.E.
+
+ * ext/ripper/tools/generate-ripper_rb.rb: #include ids1/ids2
+ function was lost.
+
+ * ext/ripper/tools/generate-ripper_rb.rb: SCANNER_EVENTS wrongly
+ contained parser events.
+
+ * ext/ripper/lib/ripper.rb: ditto.
+
+Tue Sep 14 16:59:37 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tcltklib/tcltklib.c: fix SEGV
+
+ * ext/tk/lib/multi-tk.rb: improve safe-level handling of argument proc
+
+ * ext/tk/sample/multi-ip_sample.rb: rename of old 'safe-tk.rb'
+
+ * ext/tk/sample/safe-tk.rb: new sample script
+
+Mon Sep 13 21:33:40 2004 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * ext/openssl/ossl_x509name.c (ossl_x509name_to_s): add optional
+ second argument to specify the output format (see also
+ X509_NAME_print_ex).
+
+ * ext/openssl/ossl_x509name.c (ossl_x509name_init): new constants:
+ OpenSSL::X509::Name::COMPAT, OpenSSL::X509::Name::RFC2253,
+ OpenSSL::X509::ONELINE, OpenSSL::X509::MULTILINE.
+
+ * ext/openssl/lib/openssl/x509.rb (OpenSSL::X509::Name::RFC2253DN):
+ new module to provide the parse for RFC2253 DN format.
+
+ * ext/openssl/lib/openssl/x509.rb (OpenSSL::X509::Name.parse_rfc2253):
+ new method to parse RFC2253 DN format.
+
+Mon Sep 13 19:16:33 2004 WATANABE Hirofumi <eban@ruby-lang.org>
+
+ * eval.c (blk_copy_prev): need frame_dup(). [ruby-dev:24103]
+
+Mon Sep 13 16:23:27 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/multi-tk.rb: MultiTkIp.new_master and new_slave accept
+ safe-level value argument
+
+Mon Sep 13 10:48:37 2004 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/win32.c (rb_w32_getpid): don't need to use _getpid() on
+ mswin32 and mingw32.
+
+Mon Sep 13 10:22:05 2004 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * object.c (nil_inspect): fix typo.
+
+Mon Sep 13 09:29:58 2004 Minero Aoki <aamine@loveruby.net>
+
+ * ext/ripper/depend: (nmake hack) prepend "./" to ripper.c to
+ avoid {$(srcdir)}.
+
+Mon Sep 13 06:43:42 2004 Minero Aoki <aamine@loveruby.net>
+
+ * ext/ripper/tools/list-parse-event-ids.rb: does not use getopts.
+
+ * ext/ripper/tools/list-scan-event-ids.rb: ditto.
+
+Mon Sep 13 02:42:28 2004 Minero Aoki <aamine@loveruby.net>
+
+ * ext/Setup: add ripper.
+
+ * ext/Setup.atheos: ditto.
+
+ * ext/Setup.dj: ditto.
+
+ * ext/Setup.emx: ditto.
+
+ * ext/Setup.nt: ditto.
+
+ * ext/Setup.x68: ditto.
+
+Mon Sep 13 02:26:31 2004 Minero Aoki <aamine@loveruby.net>
+
+ * ext/ripper: ripper extension added.
+
+ * ext/ripper/MANIFEST: new file.
+
+ * ext/ripper/README: new file.
+
+ * ext/ripper/depend: new file.
+
+ * ext/ripper/extconf.rb: new file.
+
+ * ext/ripper/eventids2.c: new file.
+
+ * ext/ripper/ripper.rb.in: new file.
+
+ * ext/ripper/lib/ripper.rb: new file.
+
+ * ext/ripper/test/check-event-arity.rb: new file.
+
+ * ext/ripper/test/check-event-coverage.sh: new file.
+
+ * ext/ripper/test/check-scanner-event-coverage.rb: new file.
+
+ * ext/ripper/test/list-called-events.rb: new file.
+
+ * ext/ripper/test/src_rb: new file.
+
+ * ext/ripper/test/validate.rb: new file.
+
+ * ext/ripper/tools/generate-eventids1.rb: new file.
+
+ * ext/ripper/tools/generate-param-macros.rb: new file.
+
+ * ext/ripper/tools/generate-ripper_rb.rb: new file.
+
+ * ext/ripper/tools/list-parse-event-ids.rb: new file.
+
+ * ext/ripper/tools/list-scan-event-ids.rb: new file.
+
+ * ext/ripper/tools/preproc.rb: new file.
+
+ * ext/ripper/tools/strip.rb: new file.
+
+ * test/ripper: ripper tests added.
+
+ * test/ripper/dummyparser.rb: new file.
+
+ * test/ripper/test_parser_events.rb: new file.
+
+ * test/ripper/test_scanner_events.rb: new file.
+
+Mon Sep 13 01:03:02 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tcltklib/tcltklib.c: improve control of preserv/release tcltkip
+
+ * ext/tcltklib/tcltklib.c: store original 'exit' command
+
+ * ext/tk/tkutil.c: fix(?) SEGV
+
+Mon Sep 13 00:22:53 2004 Minero Aoki <aamine@loveruby.net>
+
+ * parse.y: fix file header.
+
+Mon Sep 13 00:20:39 2004 Minero Aoki <aamine@loveruby.net>
+
+ * parse.y: ripper merged.
+
+ * lex.c: ditto.
+
+ * keywords: ditto.
+
+Sun Sep 12 23:53:17 2004 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * util.c (ruby_strdup): remove unnecessary code. (xmalloc never
+ returns NULL.)
+
+ * util.c (ruby_getcwd): fix memory leak on failure.
+
+Sun Sep 12 02:41:58 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tcltklib/tcltklib.c: add TclTkIp#allow_ruby_exit? and
+ allow_ruby_exit=
+
+ * ext/tk/lib/multi-tk.rb: ditto.
+
+ * ext/tk/lib/remote-tk.rb: ditto.
+
+ * ext/tcltklib/MANUAL.euc: ditto.
+
+ * ext/tcltklib/MANUAL.eng: ditto.
+
+ * ext/tcltklib/tcltklib.c: fix some reasons of SEGV
+
+ * ext/tk/tkutil.c: ditto.
+
+ * ext/tk/lib/multi-tk.rb: ditto.
+
+ * ext/tk/lib/tk/timer.rb: ditto.
+
+Sat Sep 11 16:09:46 2004 Dave Thomas <dave@pragprog.com>
+
+ * lib/rdoc/parsers/parse_rb.rb: Fix up cross-file class merging.
+
+Fri Sep 10 20:18:05 2004 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * ext/tcltklib/tcltklib.c (lib_merge_tklist): fix suspicious
+ pointer conversion.
+
+Fri Sep 10 19:16:24 2004 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * bcc32/Makefile.sub: bccwin32 port starts to use RTL dll.
+ (need to rebuild all) [ruby-dev:24138]
+
+ * win32/win32.{h,c}: ditto.
+
+Fri Sep 10 15:55:59 2004 Minero Aoki <aamine@loveruby.net>
+
+ * lib/fileutils.rb (mkdir_p): should pass mode argument to
+ Dir.mkdir. [ruby-dev:24242]
+
+ * test/fileutils/test_fileutils.rb: test it.
+
+Fri Sep 10 02:43:54 2004 Dave Thomas <dave@pragprog.com>
+
+ * lib/rdoc/generators/template/kilmer.rb: James Buck's
+ patch for call-seq.
+
+Thu Sep 9 13:58:56 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tcltklib/tcltklib.c (ip_init): change flag value for setting
+ 'argv' and 'argv0' variable
+
+ * ext/tk/lib/remote-tk.rb: follow changes of multi-tk.rb
+
+Thu Sep 9 11:46:18 2004 Dave Thomas <dave@pragprog.com>
+
+ * lib/rdoc/parsers/parse_c.rb (RDoc::C_Parser::do_classes): Allow
+ spaces aroun parameter to define_method_under (James Buck)
+
+Wed Sep 8 18:44:03 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/stringio/stringio.c (strio_write): zero fill a gap if exsts.
+ [ruby-dev:24190]
+
+Wed Sep 8 15:19:49 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tcltklib/tcltklib.c (ip_init): cannot create a IP at level 4
+
+ * ext/tk/lib/multi-tk.rb: improve 'exit' operation, security check,
+ and error treatment
+
+ * ext/tk/lib/multi-tk.rb: allow a trusted slave IP to create slave IPs
+
+ * ext/tk/lib/tk/listbox.rb: add TkListbox#value, value=, clear, and
+ erase
+
+ * ext/tk/lib/tk/text.rb: add TkText#clear and erase
+
+Tue Sep 7 15:17:49 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/socket/socket.c (ruby_connect): break immediately if a
+ socket is non-blocking. [ruby-talk:111654]
+
+Tue Sep 7 12:48:22 2004 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * {bcc32,win32,wince}/Makefile.sub (config.h): add fcntl.
+
+ * win32/win32.[ch] (fcntl): ditto.
+
+ * win32/win32.c (rb_w32_connect): support nonblocking mode.
+
+ * ext/socket/socket.c (wait_connectable, ruby_connect): support
+ nonblocking connect on various platforms.
+
+Mon Sep 6 11:00:47 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * dir.c (dir_s_chdir): the patch to shut up false warning when
+ exception occurred within a block. a patch was given from Johan
+ Holmberg <holmberg at iar.se>. [ruby-core:03292]
+
+Mon Sep 6 10:57:40 2004 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * ext/tk/lib/tk/menu.rb(TkOptionMenubutton#insert): call correct method
+
+Mon Sep 6 07:51:42 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (cvar_cbase): singletons should refer to outer cvar scope.
+ [ruby-dev:24223]
+
+ * eval.c (rb_load): should preserve previous ruby_wrapper value.
+ [ruby-dev:24226]
+
+Sat Sep 4 01:14:57 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (cvar_cbase): class variables cause SEGV in
+ instance_eval() for fixnums and symbols. [ruby-dev:24213]
+
+Fri Sep 3 17:47:58 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * struct.c (make_struct): remove redefining constant when
+ conflict. [ruby-dev:24210]
+
+Fri Sep 3 11:31:44 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/tk.rb: Tk.after makes TkCore::INTERP.tk_cmd_tbl grow
+ [ruby-dev:24207]
+
+Fri Sep 3 02:12:48 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tcltklib/tcltklib.c: fix typo [ruby-talk:111266]
+
+ * ext/tk/lib/tk/text.rb: fix typo
+
+ * ext/tk/lib/multi-tk.rb: improve safe-level treatment on slave IPs
+
+Fri Sep 3 01:54:20 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/extmk.rb (extmake): extact target prefix from Makefiles.
+
+ * ext/extmk.rb: already built-in libraries satisfy dependencies.
+ [ruby-dev:24028]
+
+Wed Sep 1 21:16:50 2004 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * ext/tk/lib/tk/spinbox.rb: fix typo
+
+Wed Sep 1 19:28:37 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * process.c (rb_proc_exec): label cannot precede variable declarations.
+
+Tue Aug 31 18:20:49 2004 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * ext/tk/tkutil.c (cbsubst_init): fix memory leak
+
+ * ext/tk/tkutil.c (cbsubst_get_all_subst_keys): fix SEGV
+
+Tue Aug 31 16:04:22 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tcltklib/tcltklib.c (ip_delete): when a tcltkip is deleted,
+ destroy its root widget
+
+Tue Aug 31 12:30:36 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tcltklib/tcltklib.c (del_root): fix SEGV
+
+Mon Aug 30 21:50:14 2004 Dave Thomas <dave@pragprog.com>
+
+ * object.c: Add RDoc for Module.included.
+
+Mon Aug 30 23:11:06 2004 Dave Thomas <dave@pragprog.com>
+
+ * lib/rdoc/ri/ri_driver.rb (and others): ri now merges documentation
+ if it finds the same class in multiple places.
+
+Mon Aug 30 22:40:30 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/multi-tk.rb: 'restart' method accepts arguments
+
+Mon Aug 30 15:10:46 2004 WATANABE Hirofumi <eban@ruby-lang.org>
+
+ * configure.in (GNU/k*BSD): fixed FTBFS on GNU/k*BSD. [ruby-dev:24051]
+
+Sun Aug 29 14:08:56 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tcltklib/tcltklib.c: compile error on bcc32 [ruby-dev:24081]
+
+ * ext/tk/lib/multi-tk.rb: MultiTkIp#eval_string does not work
+
+Sat Aug 28 23:04:41 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * bignum.c (rb_big_and): protect parameters from GC.
+ [ruby-talk:110664]
+
+Fri Aug 27 12:13:50 2004 Tanaka Akira <akr@m17n.org>
+
+ * ext/stringio/stringio.c (Init_stringio): add StringIO#readpartial as
+ an alias for StringIO#sysread.
+
+Fri Aug 27 10:14:21 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * process.c (rb_proc_exec): strip trailing spaces. [ruby-dev:24143]
+
+ * win32/win32.c (CreateChild): ditto.
+
+Thu Aug 26 04:38:29 2004 Dave Thomas <dave@pragprog.com>
+
+ * eval.c (return_jump): Minor typo in error message. Now reads
+ "return can't jump across threads".
+
+Wed Aug 25 15:18:52 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (rb_longjmp): Exception#to_str is no longer defined.
+
+Wed Aug 25 11:39:10 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * error.c (exc_equal): exceptions are equal if they share same
+ class, message and backtrace. [ruby-talk:110354]
+
+ * error.c (name_err_mesg_equal): ditto.
+
+Tue Aug 24 16:41:48 2004 Shugo Maeda <shugo@ruby-lang.org>
+
+ * lib/cgi/session.rb (CGI::Session::FileStore#initialize): do not
+ use a session id as a filename.
+
+ * lib/cgi/session/pstore.rb (CGI::Session::PStore#initialize): ditto.
+
+ * lib/cgi/session/pstore.rb (CGI::Session::PStore#initialize): use
+ Dir::tmpdir.
+
+Tue Aug 24 14:32:17 2004 Shugo Maeda <shugo@ruby-lang.org>
+
+ * lib/cgi/session.rb (CGI::Session::FileStore#initialize): untaint
+ session id after check.
+
+Tue Aug 24 08:57:51 2004 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * ext/openssl/ossl_x509attr.c (ossl_x509attr_initialize): d2i
+ functions may replace the pointer indicated by the first argument.
+
+ * ext/openssl/ossl_x509ext.c (ossl_x509ext_initialize): ditto.
+
+ * ext/openssl/ossl_x509name.c (ossl_x509name_initialize): ditto.
+
+Mon Aug 23 12:43:32 2004 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * lib/resolv.rb (Config.default_config_hash): when multiple domains
+ are set, Win32::Resolv.get_resolv_info returns Array.
+
+Sun Aug 22 16:27:38 2004 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * ext/openssl/ossl_ssl.c (ossl_ssl_read):
+ - should return an empty string if specified length to read is 0.
+ - should check for pending data and wait for fd before reading.
+ - call underlying IO's sysread if SSL session is not started.
+ [ruby-dev:24072], [ruby-dev:24075]
+
+ * ext/openssl/ossl_ssl.c (ossl_ssl_write):
+ - call underlying IO's syswrite if SSL session is not started.
+
+ * ext/openssl/ossl_ssl.c (ossl_ssl_pending): new method
+ OpenSSL::SSL#pending.
+
+ * ext/openssl/lib/openssl/buffering.rb: should not use select.
+
+Sun Aug 22 01:10:36 2004 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * lib/webrick/httpproxy.rb (WEBrick::HTTPProxyServer#proxy_connect):
+ should call :ProxyContentHandler before finishing CONNECT.
+
+Sat Aug 21 06:41:16 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/tcltklib/extconf.rb (find_tcl, find_tk): find stub library.
+
+ * lib/mkmf.rb (arg_config, with_config): deal with '-' and '_'
+ uniformly. [ruby-dev:24118]
+
+Fri Aug 20 14:49:42 2004 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * io.c (rb_io_check_writable): no need to check read buffer if
+ already changed to write mode.
+
+Fri Aug 20 11:46:43 2004 UENO Katsuhiro <katsu@blue.sky.or.jp>
+
+ * ext/zlib/zlib.c: GzipReader#ungetc caused crc error.
+
+Thu Aug 19 16:29:45 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/tk.rb: Fail to treat a hash value of 'font' option.
+
+ * ext/tk/lib/tk.rb: bindinfo cannot return '%' substiturion infomation.
+
+ * ext/tk/lib/menu.rb: typo bug.
+
+Thu Aug 19 15:15:24 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * dir.c (free_dir): fix memory leak. reported by yamamoto
+ madoka.
+
+Thu Aug 19 09:19:27 2004 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * configure.in, win32/Makefile.sub (LIBS): need to link shell32
+ library for SH* functions on mswin32 and mingw32.
+
+ * wince/Makefile.sub (LIBS): need to link ceshell library for SH*
+ functions on mswince.
+
+Thu Aug 19 03:07:00 2004 why the lucky stiff <why@ruby-lang.org>
+
+ * lib/yaml/baseemitter.rb: folding now handles double-quoted strings,
+ fixed problem with extra line feeds at end of folding, whitespace
+ opening scalar blocks.
+
+ * lib/yaml/rubytypes.rb: subtelties in handling strings with
+ non-printable characters and odd whitespace patterns.
+
+Wed Aug 18 23:44:20 2004 Minero Aoki <aamine@loveruby.net>
+
+ * lib/net/protocol.rb (rbuf_fill): OpenSSL::SSLSocket has its own
+ buffer, select(2) might not work. [ruby-dev:24072]
+
+Wed Aug 18 17:10:12 2004 WATANABE Hirofumi <eban@ruby-lang.org>
+
+ * ext/tcltklib/stubs.c (ruby_tcltk_stubs): need to call
+ Tcl_FindExecutable() for Tcl/Tk 8.4.
+
+Wed Aug 18 12:52:55 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (rb_obj_instance_eval): evaluates under special singleton
+ classes as for special constants.
+
+Wed Aug 18 11:22:52 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * win32/win32.c (init_env): initialize HOME and USER environment
+ variables unless set.
+
+Wed Aug 18 10:17:21 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (bind_eval): new method. [RCR 251]
+
+ * string.c (rb_str_clear): new method. [ruby-dev:24104]
+
+Tue Aug 17 17:20:59 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * io.c (rb_io_reopen): should clear allocated OpenFile. pointed
+ out by Guy Decoux. [ruby-core:03288]
+
+Tue Aug 17 01:36:32 2004 Dave Thomas <dave@pragprog.com>
+
+ * lib/rdoc/usage.rb: Remove extra indent. Tidy 'ri' option
+ parsing so RDoc::usage plays better with OptionParser.
+
+Sat Aug 14 02:48:16 2004 Dave Thomas <dave@pragprog.com>
+
+ * lib/rdoc/usage.rb: Added. Allows command line programs
+ to report usage using their initial RDoc comment.
+
+Sat Aug 14 01:25:48 2004 why the lucky stiff <why@ruby-lang.org>
+
+ * ext/syck/token.c: re2c no longer compiled with bit vectors. caused
+ problems for non-ascii characters. [ruby-core:03280]
+ * ext/syck/implicit.c: ditto.
+ * ext/syck/bytecode.c: ditto.
+
+Fri Aug 13 12:55:20 2004 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * lib/webrick/httputils.rb (WEBrick::HTTPUtils.parse_range_header):
+ fix regex for range-spec.
+
+ * lib/webrick/httpservlet/filehandler.rb
+ (WEBrick::HTTPServlet::DefaultFileHandler#make_partial_content):
+ multipart/byteranges response was broken.
+
+ * lib/xmlrpc/server.rb: refine example code.
+
+Thu Aug 12 10:54:17 2004 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * rubyio.h (rb_eof_error): should mark as NORETURN.
+
+ * win32/win32.c (make_cmdvector): adjust escaped successive
+ double-quote handling.
+
+Thu Aug 12 01:53:10 2004 Tanaka Akira <akr@m17n.org>
+
+ * io.c (read_buffered_data): extracted from rb_io_fread.
+ (io_readpartial): new method IO#readpartial.
+ [ruby-dev:24055]
+
+Wed Aug 11 17:17:50 2004 WATANABE Hirofumi <eban@ruby-lang.org>
+
+ * configure.in (RPATHFLAG): stop setting RPATHFLAG on Interix.
+
+Mon Aug 9 15:03:20 2004 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * lib/webrick/httpservlet/erbhandler.rb
+ (WEBrick::HTTPServlet::ERBHandler#do_GET): should select media type
+ by suffix of script filename.
+
+Mon Aug 9 12:51:43 2004 Dave Thomas <dave@pragprog.com>
+
+ * dir.c (dir_s_glob): Roll in Austin Ziegler's Dir.glob and
+ fnmatch updates.
+
+Mon Aug 9 06:33:06 2004 Minero Aoki <aamine@loveruby.net>
+
+ * lib/fileutils.rb (cp_r): copies symlink to symlink, except
+ root entries of cp_r.
+
+ * lib/fileutils.rb: new method FileUtils.copy_entry.
+
+ * test/fileutils/test_fileutils.rb: more cp_r tests.
+
+Sun Aug 8 00:43:31 2004 why the lucky stiff <why@ruby-lang.org>
+
+ * lib/implicit.c: added sexagecimal float#base60.
+
+ * ext/syck/rubyext.c (yaml_org_handler): ditto.
+
+ * lib/token.c: indentation absolutely ignored when processing flow
+ collections. plain scalars are trimmed if indentation follows in
+ an ambiguous flow collection.
+
+Sat Aug 7 03:08:21 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * process.c (proc_daemon): new method. should be modified for
+ platforms without /dev/null.
+
+Sat Aug 7 00:50:01 2004 Tanaka Akira <akr@m17n.org>
+
+ * ext/zlib/zlib.c: Zlib::GzipReader#read(0) returns "" instead of nil.
+
+Wed Aug 4 13:26:00 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * marshal.c (r_bytes0): optimize out read(0). [ruby-talk:108276]
+
+Tue Aug 3 13:49:12 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/tk/namespace.rb: bug fix
+
+ * ext/tk/lib/tkextlib/treectrl/tktreectrl.rb: add Tk::TreeCtrl.loupe
+
+Mon Aug 2 23:33:48 2004 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * test/ruby/test_file.rb (test_fnmatch): added more tests.
+
+Mon Aug 2 18:04:21 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/tk/msgcat.rb (set_translation): bug fix (fail to set
+ trans_str to the same as src_str when trans_str is not given.)
+
+Mon Aug 2 17:40:44 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (blk_free): fixed serious memory leak. [ruby-dev:24013]
+
+Mon Aug 2 11:53:06 2004 Dave Thomas <dave@pragprog.com>
+
+ * lib/rdoc/code_objects.rb (RDoc::Context::find_symbol): Fix infinite recursion
+ looking up some top level symbols (batsman)
+
+Mon Aug 2 11:48:29 2004 Dave Thomas <dave@pragprog.com>
+
+ * lib/rdoc/parsers/parse_c.rb (RDoc::C_Parser::do_methods): Allow '.'s in
+ variable names to support SWIG generated files (Hans Fugal)
+
+Sat Jul 31 23:08:00 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (is_defined): stupid mistakes fixed. [ruby-dev:24006]
+
+Sat Jul 31 17:39:47 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * misc/ruby-mode.el (ruby-expr-beg, ruby-parse-partial,
+ ruby-calculate-indent, ruby-move-to-block, ruby-forward-sexp,
+ ruby-backward-sexp): keywords must match word-wise.
+
+Sat Jul 31 13:37:51 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (is_defined): avoid unnecessary method invocations.
+
+Sat Jul 31 05:35:37 2004 why the lucky stiff <why@ruby-lang.org>
+
+ * lib/yaml/rubytypes.rb: exceptions were using an older
+ YAML.object_maker. [ruby-core:03080]
+
+ * ext/syck/token.c (sycklex_yaml_utf8): using newline_len to
+ handline CR-LFs. "\000" was showing up on folded blocks which
+ stopped at EOF.
+
+Sat Jul 31 01:25:11 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (is_defined): call is_defined() before invoking
+ rb_eval(). [ruby-talk:107867]
+
+Fri Jul 30 16:10:54 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tcltklib/tcltklib.c (lib_fromUTF8_core): raise ArgumentError when
+ the unknown encoding name is given.
+
+ * ext/tcltklib/tcltklib.c (lib_toUTF8_core): ditto.
+
+ * ext/tk/lib/tk.rb (Tk::Encoding.encoding_convertfrom): bug fix.
+
+ * ext/tk/lib/tk.rb (Tk::Encoding.encoding_convertto): ditto.
+
+Wed Jul 28 18:59:17 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/cgi.rb (CGI::initialize): remove at_exit code for CGI_PARAMS
+ and CGI_COOKIES. they will no longer be used.
+
+Wed Jul 28 15:44:08 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (rb_call0): should call rb_call_super() directly for
+ visibility overriding. [ruby-dev:23989]
+
+Wed Jul 28 01:04:44 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * env.h: remove argv from ruby_frame.
+
+ * eval.c (rb_eval): no more copy on write.
+
+ * eval.c (assign): ditto.
+
+ * eval.c (rb_call0): can receive *rest by specifying negative
+ argc. (-1 means 0 arg and *rest, -2 means 1 arg and *rest...)
+
+ * eval.c (rb_call0): properly set frame's argc counter.
+
+ * gc.c (rb_gc_mark_frame): need not to mark frame's argv
+
+ * gc.c (run_final): wrong order of data. [ruby-dev:23984]
+
+Tue Jul 27 07:05:04 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (rb_eval): copy on write for argument local variable
+ assignment.
+
+ * eval.c (assign): ditto.
+
+ * eval.c (rb_call0): update ruby_frame->argv with the default
+ value used for the optional arguments.
+
+ * object.c (Init_Object): "===" calls rb_obj_equal() directly.
+ [ruby-list:39937]
+
+Mon Jul 26 11:22:55 2004 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * lib/webrick/httputils.rb (WEBrick::HTTPUtils.escape): should
+ escape space.
+
+Sun Jul 25 10:56:28 2004 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * win32/win32.{h,c} (rb_w32_{f,fd,fs}open): workaround for bcc32's
+ {f,fd,fs}open bug. set errno EMFILE and EBADF. [ruby-dev:23963]
+
+ * test/drb/drbtest.rb: fix method duplication.
+
+Sat Jul 24 13:32:47 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * range.c (rb_range_beg_len): returns Qnil only when "beg" points
+ outside of a range. No boundary check for "end".
+
+Fri Jul 23 16:40:25 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * gc.c (define_final): should not disclose NODE* to Ruby world.
+ [ruby-dev:23957]
+
+Fri Jul 23 08:52:22 2004 Shugo Maeda <shugo@ruby-lang.org>
+
+ * lib/net/imap.rb (disconnected?): new method.
+
+Thu Jul 22 16:41:54 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/cgi/session.rb (CGI::Session::FileStore#update): sets the
+ permission of the session data file to 0600.
+
+ * lib/cgi/session/pstore.rb (CGI::Session::Pstore#initialize):
+ ditto.
+
+Mon Jul 19 00:53:46 2004 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * lib/webrick/httpservlet/cgihandler.rb
+ (WEBrick::HTTPServlet::CGIhandler#do_GET): set SystemRoot environment
+ variable to CGI process on Windows native platforms. [ruby-dev:23936]
+
+Sun Jul 18 16:14:29 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/tk/msgcat.rb (TkMsgCatalog.callback): bug fix
+ ( wrong number of argument )
+
+Sun Jul 18 08:13:58 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * sprintf.c (rb_f_sprintf): remove extra sign digit.
+
+Sun Jul 18 03:19:14 2004 Akinori MUSHA <knu@iDaemons.org>
+
+ * dir.c (bracket): use NULL instead of 0.
+
+Sun Jul 18 02:35:30 2004 Shugo Maeda <shugo@ruby-lang.org>
+
+ * lib/net/imap.rb (receive_responses): return if a LOGOUT response
+ received.
+
+Sat Jul 17 23:59:01 2004 Shugo Maeda <shugo@ruby-lang.org>
+
+ * lib/net/imap.rb (send_string_data): wait command continuation
+ requests before sending octet data of literals.
+
+Sat Jul 17 23:54:59 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/tk/variable.rb: TkVariable#ref returns a TkVariable object
+
+Sat Jul 17 22:04:44 2004 akira yamada <akira@ruby-lang.org>
+
+ * lib/uri/ldap.rb: method hierarchical? should be in URI::LDAP.
+
+Sat Jul 17 18:29:07 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (stmt): not to show same error messages twice.
+
+Sat Jul 17 14:18:11 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (rb_str_match_m): String#match should also take
+ optional argument. [ruby-core:03205]
+
+ * re.c (rb_reg_match_m): add optional second argugment "pos" to
+ specify match start point. [ruby-core:03203]
+
+Sat Jul 17 13:13:32 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/irb/ruby-lex.rb (RubyLex::identify_string): %s string do not
+ process expression interpolation. [ruby-talk:106691]
+
+Sat Jul 17 05:26:27 2004 Dave Thomas <dave@pragprog.com>
+
+ * lib/rdoc/diagram.rb: Incorporate Micheal Neumann's
+ client-side imagemao patch
+
+Sat Jul 17 01:57:03 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (THREAD_ALLOC): th->thread should be initialized to NULL.
+ [ruby-talk:106657] The solution was found by Guy Decoux.
+
+Fri Jul 16 22:30:28 2004 Michael Neumann <mneumann@ntecs.de>
+
+ * file.c (rb_stat_dev_major): new methods File::Stat#dev_major and
+ #dev_minor. [ruby-core:03195]
+
+Fri Jul 16 11:17:38 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * error.c (exit_initialize): use EXIT_SUCCESS instead of 0.
+ [ruby-dev:23913]
+
+ * error.c (exit_success_p): new method SystemExit#success?.
+ [ruby-dev:23912]
+
+ * error.c (syserr_initialize): initialization for subclasses.
+ [ruby-dev:23912]
+
+Thu Jul 15 23:53:38 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/optparse.rb (OptionParser#warn, OptionParser#abort): Exception
+ no longer has to_str method.
+
+Thu Jul 15 22:59:48 2004 Shugo Maeda <shugo@ruby-lang.org>
+
+ * ext/readline/extconf.rb: added dir_config for curses, ncurses,
+ termcap.
+
+Thu Jul 15 20:44:46 2004 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * class.c: rdoc patch
+
+Thu Jul 15 14:12:34 2004 why the lucky stiff <why@ruby-lang.org>
+
+ * lib/yaml.rb (YAML::load_file, YAML::parse_file): added.
+
+ * ext/syck/token.c: re2c compiled with bit vectors now.
+ * ext/syck/implicit.c: ditto.
+ * ext/syck/bytecode.c: ditto.
+
+Thu Jul 15 10:15:04 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/, ext/tcltklib/: bug fix
+
+ * ext/tk/lib/tk.rb: better operation for SIGINT when processing
+ callbacks.
+ * ext/tk/lib/tk/msgcat.rb: ditto.
+ * ext/tk/lib/tk/variable.rb: ditto.
+ * ext/tk/lib/tk/timer.rb: ditto.
+
+ * ext/tk/lib/tk/validation.rb: add Tk::ValidateConfigure.__def_validcmd
+ to define validatecommand methods easier
+
+ * ext/tk/lib/tk.rb (_genobj_for_tkwidget): support autoload Tk ext
+ classes
+
+ * ext/tk/lib/tk/canvas.rb and so on: remove the parent widget type
+ check for items (e.g. canvas items; depends on the class) to
+ avoid some troubles on Tk extension widget class definition.
+
+ * ext/tk/lib/tkextlib/: add Iwidget and TkTable extension support
+
+ * ext/tk/sample/tkextlib/: add samples of Iwidget and TkTable
+
+Wed Jul 14 23:49:30 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * enum.c (enum_min_by): new method Enum#min_by. added Enum#max_by
+ as well.
+
+Wed Jul 14 18:05:21 2004 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * ext/openssl/ossl_asn1.c (ossl_asn1cons_to_der): fix type of
+ argument. [ruby-dev:23891]
+
+ * test/openssl/test_x509store.rb: prune tests for CRL checking
+ unless X509::V_FLAG_CRL_CHECK is defined.
+
+Wed Jul 14 12:20:05 2004 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * util.c (ruby_strtod): should not convert string in the form of
+ "-I.FE-X" which both "I" and "F" are ommitted. [ruby-dev:23883]
+
+ * test/ruby/test_float.rb (test_strtod): add test for bug fix.
+
+Wed Jul 14 00:33:48 2004 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * array.c: rdoc patch. merged patch from Johan Holmberg
+ <holmberg@iar.se> [ruby-core:3170]
+
+Tue Jul 13 19:39:12 2004 akira yamada <akira@ruby-lang.org>
+
+ * lib/uri/generic.rb (URI::Generic#merge_path):
+ "URI('http://www.example.com/foo/..') + './'" should return
+ "URI('http://www.example.com/')". [ruby-list:39838]
+ "URI('http://www.example.com/') + './foo/bar/..'" should return
+ "URI('http://www.example.com/foo/')". [ruby-list:39844]
+
+ * test/uri/test_generic.rb (TestGeneric#test_merge): added tests.
+
+Tue Jul 13 15:48:56 2004 Akinori MUSHA <knu@iDaemons.org>
+
+ * lib/mkmf.rb (init_mkmf): Do not add $(libdir) to $LIBPATH in
+ extmk mode.
+
+ * lib/mkmf.rb (dir_config): Prepend a new library path instead of
+ appending so it is tried first.
+
+Tue Jul 13 00:50:48 2004 Dave Thomas <dave@pragprog.com>
+
+ * lib/rdoc/parsers/parse_rb.rb: Support call-seq: for Ruby files.
+
+Mon Jul 12 21:20:51 2004 Dave Thomas <dave@pragprog.com>
+
+ * html_generator.rb: Support hyperlinks of the form {any text}[xxx]
+ as well as stuff[xxx]
+
+Sat Jul 10 09:30:24 2004 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * test/soap/marshal/test_struct.rb: use qualified built-in class name
+ (::Struct) to avoid name crash.
+
+Sat Jul 10 04:21:56 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/tk.rb: better operation for SIGINT when processing
+ callbacks.
+ * ext/tk/lib/tk/msgcat.rb: ditto.
+ * ext/tk/lib/tk/variable.rb: ditto.
+ * ext/tk/lib/tk/timer.rb: ditto.
+
+ * ext/tk/lib/tk/validation.rb (__def_validcmd): add a module
+ function of Tk::ValidateConfigure to define validatecommand
+ methods easier
+
+Fri Jul 9 22:18:59 2004 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * array.c, enum.c, pack.c: rdoc patch from Johan Holmberg
+ <holmberg@iar.se> [ruby-core:3132] [ruby-core:3136]
+
+ * numeric.c: rdoc patch.
+
+Fri Jul 9 19:26:39 2004 Tanaka Akira <akr@m17n.org>
+
+ * lib/open-uri.rb (URI::HTTPS#proxy_open): raise ArgumentError to
+ notice https is not supported.
+
+Fri Jul 9 14:28:54 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (rb_thread_raise): accept third argument as well as
+ Kernel#raise, and evaluate the arguments to create an exception in
+ the caller's context. [ruby-talk:105507]
+
+Fri Jul 9 01:47:08 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib: bug fix
+ * ext/tk/lib/tkextlib/itcl: add [incr Tcl] support
+ * ext/tk/lib/tkextlib/itk: add [incr Tk] support
+ * ext/tk/lib/tkextlib/iwidgets: midway point of [incr Widgets] support
+ * ext/tk/sample/tkextlib/iwidgets: very simple examples of
+ [incr Widgets]
+
+Thu Jul 8 19:27:16 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (rb_cv_stack_end_address): detect stack end address
+ variable supplied by system. [ruby-core:03115]
+
+ * gc.c (Init_stack): use system provided address if possible.
+
+Thu Jul 8 00:05:23 2004 akira yamada <akira@ruby-lang.org>
+
+ * lib/tempfile.rb (Tempfile::initialize): got out code of
+ generating tmpname. [ruby-dev:23832][ruby-dev:23837]
+
+Wed Jul 7 02:31:41 2004 Kouhei Sutou <kou@cozmixng.org>
+
+ * lib/rss/{rss,parser,0.9,1.0,2.0}.rb: supported RSS 0.9x/2.0
+ validation and validation which disregard order of elements.
+ * test/rss/test_parser.rb: added tests for RSS 0.9x/2.0
+ validation.
+ * test/rss/{test_trackback,rss-testcase}.rb: fixed no good method
+ name.
+
+Wed Jul 7 00:48:34 2004 WATANABE Hirofumi <eban@ruby-lang.org>
+
+ * ext/tk/lib/tkextlib/tktrans.rb,
+ ext/tk/lib/tkextlib/treectrl.rb: fix syntax errors.
+
+Tue Jul 6 18:38:45 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib: improve framework of developping Tcl/Tk extension
+ wrappers
+
+Mon Jul 5 23:56:42 2004 Kouhei Sutou <kou@cozmixng.org>
+
+ * lib/rss/{trackback,syndication,dublincore,content}.rb: worked
+ with ruby 1.6 again.
+
+ * test/rss/rss-assertions.rb: ditto.
+
+Mon Jul 5 22:54:39 2004 Tanaka Akira <akr@m17n.org>
+
+ * lib/uri/common.rb (Kernel#URI): new global method for parsing URIs.
+
+Mon Jul 5 09:02:52 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (rb_thread_yield, rb_f_catch): 4th argument to rb_yield_0()
+ is a set of bit flags. [ruby-dev:23859]
+
+Mon Jul 5 01:20:17 2004 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * lib/drb/drb.rb(DRbConn self.open): If socket pool is full, close
+ the socket whose last-access-time is oldest. (and add new one)
+ [ruby-dev:23860]
+
+Sun Jul 4 12:24:50 2004 Kouhei Sutou <kou@cozmixng.org>
+
+ * lib/rss/rss.rb: added copyright header.
+
+Sat Jul 3 22:25:27 2004 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * added files:
+ * lib/soap/header/*
+ * lib/soap/rpc/httpserver.rb
+ * lib/wsdl/soap/cgiStubCreator.rb
+ * lib/wsdl/soap/classDefCreator.rb
+ * lib/wsdl/soap/classDefCreatorSupport.rb
+ * lib/wsdl/soap/clientSkeltonCreator.rb
+ * lib/wsdl/soap/driverCreator.rb
+ * lib/wsdl/soap/mappingRegistryCreator.rb
+ * lib/wsdl/soap/methodDefCreator.rb
+ * lib/wsdl/soap/servantSkeltonCreator.rb
+ * lib/wsdl/soap/standaloneServerStubCreator.rb
+ * lib/wsdl/xmlSchema/enumeration.rb
+ * lib/wsdl/xmlSchema/simpleRestriction.rb
+ * lib/wsdl/xmlSchema/simpleType.rb
+ * lib/xsd/codegen/*
+ * lib/xsd/codegen.rb
+ * sample/soap/authheader/*
+ * sample/soap/raa2.4/*
+ * sample/soap/ssl/*
+ * sample/soap/swa/*
+ * sample/soap/whois.rb
+ * sample/wsdl/raa2.4/*
+ * test/soap/header/*
+ * test/soap/ssl/*
+ * test/soap/struct/*
+ * test/soap/swa/*
+ * test/soap/wsdlDriver/*
+ * test/wsdl/multiplefault.wsdl
+ * test/wsdl/simpletype/*
+ * test/wsdl/test_multiplefault.rb
+
+ * modified files:
+ * lib/soap/baseData.rb
+ * lib/soap/element.rb
+ * lib/soap/generator.rb
+ * lib/soap/netHttpClient.rb
+ * lib/soap/parser.rb
+ * lib/soap/property.rb
+ * lib/soap/soap.rb
+ * lib/soap/streamHandler.rb
+ * lib/soap/wsdlDriver.rb
+ * lib/soap/encodingstyle/handler.rb
+ * lib/soap/encodingstyle/literalHandler.rb
+ * lib/soap/encodingstyle/soapHandler.rb
+ * lib/soap/mapping/factory.rb
+ * lib/soap/mapping/mapping.rb
+ * lib/soap/mapping/registry.rb
+ * lib/soap/mapping/rubytypeFactory.rb
+ * lib/soap/mapping/wsdlRegistry.rb
+ * lib/soap/rpc/cgistub.rb
+ * lib/soap/rpc/driver.rb
+ * lib/soap/rpc/proxy.rb
+ * lib/soap/rpc/router.rb
+ * lib/soap/rpc/soaplet.rb
+ * lib/soap/rpc/standaloneServer.rb
+ * lib/wsdl/data.rb
+ * lib/wsdl/definitions.rb
+ * lib/wsdl/operation.rb
+ * lib/wsdl/parser.rb
+ * lib/wsdl/soap/definitions.rb
+ * lib/wsdl/xmlSchema/complexContent.rb
+ * lib/wsdl/xmlSchema/complexType.rb
+ * lib/wsdl/xmlSchema/data.rb
+ * lib/wsdl/xmlSchema/parser.rb
+ * lib/wsdl/xmlSchema/schema.rb
+ * lib/xsd/datatypes.rb
+ * lib/xsd/qname.rb
+ * sample/soap/sampleStruct/server.rb
+ * sample/wsdl/amazon/AmazonSearch.rb
+ * sample/wsdl/amazon/AmazonSearchDriver.rb
+ * test/soap/test_property.rb
+ * test/soap/calc/test_calc_cgi.rb
+ * test/wsdl/test_emptycomplextype.rb
+
+ * summary
+ * add SOAP Header mustUnderstand support.
+
+ * add HTTP client SSL configuration and Cookies support (works
+ completely with http-access2).
+
+ * add header handler for handling sending/receiving SOAP Header.
+
+ * map Ruby's anonymous Struct to common SOAP Struct in SOAP Object
+ Model. it caused error.
+
+ * add WSDL simpleType support to restrict lexical value space.
+
+Sat Jul 3 17:19:44 2004 WATANABE Hirofumi <eban@ruby-lang.org>
+
+ * ext/tk/lib/tkextlib/tkDND.rb: fix syntax error.
+
+Thu Jul 1 18:36:08 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/tcltklib: bug fix
+
+ * ext/tk/lib/tk: bug fix and add Tcl/Tk extension support libraries
+
+Thu Jul 1 18:31:31 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/pstore.rb (PStore#transaction): get rid of opening in write mode
+ when read only transaction. [ruby-dev:23842]
+
+Thu Jul 1 00:44:42 2004 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * ext/openssl/ossl_cipher.c (ossl_cipher_encrypt, ossl_cipher_decrypt):
+ re-implemnt (the arguments for this method is ).
+
+ * ext/openssl/ossl_cipher.c (ossl_cipher_pkcs5_keyivgen): new method
+ OpenSSL::Cipher::Cipher#pkcs5_keyivgen. it calls EVP_BytesToKey().
+
+ * ext/openssl/ossl_cipher.c (ossl_cipher_set_key_length): new method
+ OpenSSL::Cipher::Cipher#key_len=.
+
+Wed Jun 30 19:48:09 2004 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * ext/openssl/extconf.rb: check for EVP_CIPHER_CTX_copy, ENGINE_add,
+ EVP_CIPHER_CTX_set_padding, EVP_CipherFinal_ex, EVP_CipherInit_ex,
+ EVP_DigestFinal_ex and EVP_DigestInit_ex.
+
+ * ext/openssl/openssl_missing.c (EVP_CIPHER_CTX_copy): new function.
+
+ * ext/openssl/openssl_missing.h (EVP_DigestInit_ex, EVP_DigestFinal_ex,
+ EVP_CipherInit_ex, EVP_CipherFinal_ex, HMAC_Init_ex): new macro for
+ OpenSSL 0.9.6.
+
+ * ext/openssl/ossl_cipher.c (ossl_cipher_alloc, ossl_cipher_initialize,
+ ossl_cipher_copy, ossl_cipher_reset, ossl_cipher_encrypt,
+ ossl_cipher_decrypt, ossl_cipher_final, ossl_cipher_set_key,
+ ossl_cipher_set_iv): replace all EVP_CipherInit and
+ EVP_CipherFinal into EVP_CipherInit_ex and EVP_CipherFinal_ex.
+ and EVP_CIPHER_CTX_init should only be called once.
+
+ * ext/openssl/ossl_cipher.c (ossl_cipher_set_padding): check for
+ EVP_CIPHER_CTX_set_padding.
+
+ * ext/openssl/ossl_cipher.c (Init_ossl_cipher): Cipher#<< is deprecated.
+
+ * ext/openssl/ossl_digest.c: replace all EVP_DigestInit and
+ EVP_DigestFinal into EVP_DigestInit_ex and EVP_DigestFinal_ex.
+ and EVP_MD_CTX_init should only be called once.
+
+ * ext/openssl/ossl_digest.c (digest_final): should call
+ EVP_MD_CTX_cleanup to avoid memory leak.
+
+ * ext/openssl/ossl_hmac.c (ossl_hmac_initialize): repalce HMAC_init
+ into HMAC_init_ex. and HMAC_CTX_init is moved to ossl_hmac_alloc.
+
+ * ext/openssl/ossl_hmac.c (hmac_final): should call
+ HMAC_CTX_cleanup to avoid memory leak.
+
+ * test/openssl/test_cipher.rb, test/openssl/test_digest.rb,
+ test/openssl/test_hmac.rb: new file.
+
+Wed Jun 30 16:59:39 2004 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * test/ruby/test_file.rb (test_fnmatch): some tests for File.fnmatch
+ are added.
+
+Wed Jun 30 11:38:51 2004 Mikael Brockman <phubuh@phubuh.org>
+
+ * parse.y (primary): should not be NULL. [ruby-core:03098]
+
+Wed Jun 30 02:41:10 2004 why the lucky stiff <why@ruby-lang.org>
+
+ * ext/syck/rubyext.c (syck_emitter_new): set buffer after
+ Data_Wrap_Struct to avoid possible GC. [ruby-talk:104835]
+
+Tue Jun 29 10:31:19 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (rb_eval_cmd, rb_thread_trap_eval): restore safe level.
+
+ * gc.c (define_final, run_final): preserve and restore safe level for
+ finalizers. [ruby-core:03058]
+
+ * signal.c (signal_exec, rb_trap_exit, trap): preserve and restore
+ safe level for signal handlers. [ruby-dev:23829]
+
+Mon Jun 28 14:57:56 2004 Jeff Mitchell <quixoticsycophant@yahoo.com>
+
+ * configure.in, lib/mkmf.rb (LIBPATHFLAG): use double quotes due to
+ DOSISH compilers. [ruby-core:03107]
+
+Mon Jun 28 00:35:29 2004 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
+
+ * sample/drb/*.rb: using 'DRb.thread.join' instead of 'gets'
+
+Sun Jun 27 22:36:47 2004 Kouhei Sutou <kou@cozmixng.org>
+
+ * sample/rss/tdiary_plugin/rss-recent.rb: supported Hiki.
+
+Sat Jun 26 15:17:11 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * variable.c (rb_mod_class_variables): class variables are no longer
+ inherited. [ruby-dev:23808]
+
+Sat Jun 26 11:07:20 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (aix): -b must come at the start of the command line,
+ and -e must not appear while testing libraries. [ruby-talk:104501]
+
+ * lib/mkmf.rb (find_header, dir_config): quote directory names if
+ necessary. [ruby-talk:104505]
+
+Sat Jun 26 00:13:08 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * io.c (rb_fopen, rb_fdopen, rb_io_reopen): setvbuf() may return
+ positive value on failure. [ruby-dev:23792]
+
+Fri Jun 25 18:07:15 2004 Michal Rokos <michal@ruby-lang.org>
+
+ * gc.c: bring back _stklen for DJGPP [ruby-core:3084]
+
+Fri Jun 25 15:33:01 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/iconv/extconf.rb: check stricter. [ruby-talk:104501]
+
+Fri Jun 25 01:58:01 2004 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * {bcc32,win32,wince}/setup.mak: remove RUBY_EXTERN lines when
+ including version.h. [ruby-talk:104456]
+
+Thu Jun 24 14:23:29 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * io.c (rb_io_fread): return already read data when system call is
+ interrupted. [ruby-talk:97206]
+
+Thu Jun 24 01:25:21 2004 Shugo Maeda <shugo@ruby-lang.org>
+
+ * version.h: added declarations of ruby_version,
+ ruby_release_date, ruby_platform.
+
+Thu Jun 24 01:07:15 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ext/socket/socket.c (sock_sockaddr): Socket#gethostbyname()
+ should give us packed address, not struct sockaddr.
+ [ruby-core:03053]
+
+Wed Jun 23 22:19:10 2004 Dave Thomas <dave@pragprog.com>
+
+ * ext/socket/socket.c (sock_s_gethostbyaddr): Work around problem
+ with OS X not returning 'from' parameter to recvfrom for
+ connection-oriented sockets.
+
+Wed Jun 23 22:16:16 2004 Michal Rokos <michal@ruby-lang.org>
+
+ * io.c: io_seek()'s retval should be checked [ruby-core:03045]
+
+Wed Jun 23 21:48:27 2004 Michal Rokos <michal@ruby-lang.org>
+
+ * time.c: Fix indentation.
+
+ * main.c: Remove _stklen, and _CRT_glob. Move _stacksize for
+ __human68k__ to gc.c where the others are.
+
+ * gc.c: put _stacksize in place and clean the #ifdefs macros.
+
+Wed Jun 23 17:37:54 2004 Shugo Maeda <shugo@ruby-lang.org>
+
+ * lib/net/imap.rb: added new option --ssl.
+
+Wed Jun 23 01:45:27 2004 Dave Thomas <dave@pragprog.com>
+
+ * lib/rdoc/parsers/parse_rb.rb (RubyLex::identify_quotation):
+ Fix problem with the 'r' being dropped from %r{xxx}
+
+Wed Jun 23 00:10:17 2004 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * ext/win32ole/win32ole.c (ole_hresult2msg): remove trailing
+ CRs and LFs. (doesn't depend on CR+LF) [ruby-dev:23749]
+
+Wed Jun 23 00:00:25 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (return_jump, break_jump): raise unexpected local jump
+ exception directly. [ruby-dev:23740]
+
+ * io.c (rb_io_initialize): should check fcntl result. [ruby-dev:23742]
+
+Tue Jun 22 23:35:43 2004 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * sprintf.c (rb_f_sprintf): support FZERO and FSPACE with NaN/Inf.
+
+ * test/ruby/test_sprintf.rb (test_nan, test_inf): add tests.
+
+Tue Jun 22 21:11:36 2004 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+
+ * ext/win32ole/win32ole.c (OLE_FREE): should not call CoFreeUnuse-
+ dLibraries().
+
+ * ext/win32ole/win32ole.c (ole_event_free): ditto.
+
+ * ext/win32ole/win32ole.c (ole_hresult2msg): truncate error message
+ before CR.
+
+Tue Jun 22 19:24:59 2004 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * sprintf.c (rb_f_sprintf): unify output of NaN, Inf and -Inf with
+ "%f" or etc on all platform. [ruby-dev:23704], [ruby-dev:23747]
+
+Tue Jun 22 15:28:12 2004 Michal Rokos <michal@ruby-lang.org>
+
+ * compar.c: Remove explicit NIL_P() checks since rb_cmpint() does it
+ again in the exactly same manner.
+
+Tue Jun 22 01:32:40 2004 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * ext/openssl/ossl_pkey_dh.c (ossl_dh_initialize): should create
+ empty pkey object if no argument is passed. [ruby-talk:103328]
+
+ * ext/openssl/ossl_pkey_dsa.c (ossl_dsa_initialize): ditto.
+
+ * ext/openssl/ossl_pkey_rsa.c (ossl_rsa_initialize): ditto.
+
+ * ext/openssl/ossl_pkey_dh.c: add new methods: OpenSSL::PKey::DH#p,
+ OpenSSL::PKey::DH#p=, OpenSSL::PKey::DH#g, OpenSSL::PKey::DH#g=,
+ OpenSSL::PKey::DH#pub_key, OpenSSL::PKey::DH#pub_key=,
+ OpenSSL::PKey::DH#priv_key and OpenSSL::PKey::DH#priv_key=.
+
+ * ext/openssl/ossl_pkey_dsa.c: add new methods: OpenSSL::PKey::DSA#p,
+ OpenSSL::PKey::DSA#p=, OpenSSL::PKey::DSA#q, OpenSSL::PKey::DSA#q=,
+ OpenSSL::PKey::DSA#g, OpenSSL::PKey::DSA#g=,
+ OpenSSL::PKey::DSA#pub_key, OpenSSL::PKey::DSA#pub_key=,
+ OpenSSL::PKey::DSA#priv_key and OpenSSL::PKey::DSA#priv_key=.
+
+Mon Jun 21 09:24:51 2004 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/win32.c (rb_w32_opendir): should set errno if error occurs
+ when calling OS API.
+
+Sun Jun 20 21:12:54 2004 Shugo Maeda <shugo@ruby-lang.org>
+
+ * lib/net/ftp.rb (binary=): send TYPE commands only once.
+
+Sat Jun 19 13:27:01 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (method_call): allow changing $SAFE. [ruby-dev:23713]
+
+ * eval.c (proc_set_safe_level, proc_invoke, rb_mod_define_method): not
+ set $SAFE for methods defined from Proc. [ruby-dev:23697]
+
+Sat Jun 19 01:10:12 2004 Kouhei Sutou <kou@cozmixng.org>
+
+ * sample/rss/tdiary_plugin/rss-recent.rb: added more information.
+
+Fri Jun 18 23:12:22 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (proc_save_safe_level, rb_set_safe_level, safe_setter): limit
+ safe level.
+
+Wed Jun 16 23:05:57 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * object.c (rb_mod_freeze): prepare string representation before
+ freezing. [ruby-talk:103646]
+
+Wed Jun 16 19:57:24 2004 Michal Rokos <michal@ruby-lang.org>
+
+ * test/ruby/test_array.rb: extend testcase to check #first, #last,
+ #shift, #unshift, #pop, #push
+
+Wed Jun 16 16:05:17 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * array.c (ary_new): move alloc behind checks. [ruby-core:02982]
+
+ * array.c (rb_ary_pop_m, rb_ary_shift_m): take arg to behave as push
+ and unshift.
+
+ * array.c (rb_ary_first, rb_ary_last): make shared array for result
+ array, and correct doc for Array#first(n) and Array#last(n)
+
+ * array.c (rb_ary_select): not accept any arg.
+
+Wed Jun 16 16:03:59 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * object.c (rb_class_inherited_p): singleton class inherits Class
+ rather than its object's class. [ruby-dev:23690]
+
+Wed Jun 16 16:01:17 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * gc.c (stack_grow_direction): memoize the direction.
+
+ * gc.c (Init_stack): should always move to end of VALUE.
+
+Tue Jun 15 12:10:04 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/tk.rb: bug fix (TkWindow#grab)
+
+Mon Jun 14 18:23:27 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/remote-tk.rb: bug fix
+
+Sun Jun 13 00:23:04 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tcltklib/extconf.rb: [EXPERIMENTAL] MacOS X (darwin) support
+
+ * ext/tcltklib/tcltklib.c: fix thread trouble on callback proc, and
+ eliminate warning about instance variable access
+
+ * ext/tk/lib/tk/menubar.rb: improve supported menu_spec
+
+ * ext/tk/lib/tk/menuspec.rb: [add] menu_spec support library
+
+ * ext/tk/lib/tk/root.rb: add menu_spec support
+
+ * ext/tk/lib/tk/text.rb: bug fix
+
+ * ext/tk/lib/tk/toplevel.rb: add menu_spec support
+
+ * ext/tk/sample/menubar?.rb: [add] sample of menu_spec usage
+
+Sat Jun 12 14:15:20 2004 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * dir.c: RDOC for File::FNM_CASEFOLD was missed.
+
+Sat Jun 12 11:15:53 2004 WATANABE Hirofumi <eban@ruby-lang.org>
+
+ * configure.in (target_os): strip -gnu suffix on Linux.
+
+Fri Jun 11 22:08:50 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * array.c: remove #indexes, #indices.
+
+ * hash.c: ditto.
+
+ * ext/dbm/dbm.c: remove #indexes, #indices, "values_at" warning
+ from #select.
+
+ * ext/gdbm/gdbm.c: ditto.
+
+ * ext/sdbm/init.c: ditto.
+
+ * ext/dbm/dbm.c (Init_dbm): set VERSION constant as "unknown" when
+ DB_VERSION_STRING is not available.
+
+Thu Jun 10 19:19:41 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ext/sdbm/init.c (fsdbm_store): sdbm should use StringValue().
+ [ruby-talk:103062]
+
+Wed Jun 9 16:09:01 2004 akira yamada <akira@ruby-lang.org>
+
+ * lib/uri/generic.rb (URI::Generic::merge,
+ URI::Generic::route_from): accepts non-hierarchical URI.
+ [ruby-dev:23631]
+
+ * test/uri/test_generic.rb (TestGeneric::test_route,
+ TestGeneric::test_merge): added tests for above changes.
+
+Wed Jun 9 15:39:55 2004 Akinori MUSHA <knu@iDaemons.org>
+
+ * configure.in: Add support for DragonFly BSD.
+
+Wed Jun 9 15:07:06 2004 Akinori MUSHA <knu@iDaemons.org>
+
+ * config.guess, config.sub: Update to a more recent version as of
+ 2004-01-20.
+
+Wed Jun 9 11:20:05 2004 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/win32.c: remove unused functions and variables.
+
+Wed Jun 2 20:16:03 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * string.c (str_new4): should share shared instance if it already
+ exists. [ruby-dev:23665]
+
+Wed Jun 2 12:41:53 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * io.c (rb_io_gets_m): set lastline ($_) even when read line is
+ nil. [ruby-dev:23663]
+
+Fri May 28 11:20:31 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (rb_eval): bad influence on frame node.
+
+ * eval.c (eval): reverted wrongly removed condition. [ruby-dev:23638]
+
+Thu May 27 21:37:50 2004 Tanaka Akira <akr@m17n.org>
+
+ * lib/pathname.rb (Pathname#initialize): fix pathname initialization
+ by pathname.
+
+Thu May 27 20:02:09 2004 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * io.c (rb_io_fwrite): check all case errno != 0 [ruby-dev:23648]
+
+Thu May 27 15:54:02 2004 Shugo Maeda <shugo@ruby-lang.org>
+
+ * lib/net/ftp.rb (MDTM_REGEXP): fix for demon's ftp server.
+ Thanks, Rutger Nijlunsing.
+
+Thu May 27 14:53:13 2004 WATANABE Hirofumi <eban@ruby-lang.org>
+
+ * io.c (rb_io_fwrite): workaround for bcc32's fwrite bug.
+ add errno checking. [ruby-dev:23627]
+
+ * io.c (rb_io_fwrite): should check if errno == ENOENT, too.
+
+Thu May 27 11:25:03 2004 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * test/csv/test_csv.rb: illegal require module name (../lib/csv.rb).
+
+Wed May 26 23:12:13 2004 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * lib/csv.rb (CSV.read, CSV.readlines): added. works as IO.read and
+ IO.readlines in CSV format.
+
+ * lib/csv.rb (CSV.parse): [CAUTION] behavior changed. in the past,
+ CSV.parse accepts a filename to be read-opened (it was just a
+ shortcut of CSV.open(filename, 'r')). now CSV.parse accepts a
+ string or a stream to be parsed e.g.
+ CSV.parse("1,2\n3,r") #=> [['1', '2'], ['3', '4']]
+
+ * test/csv/test_csv.rb: follow above changes.
+
+Wed May 26 14:19:42 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (rb_eval, eval): make line number consistent on eval with
+ Proc. [ruby-talk:101253]
+
+Wed May 26 13:59:17 2004 Dave Thomas <dave@pragprog.com>
+
+ * lib/rdoc/parsers/parse_rb.rb (RDoc::RubyParser::skip_for_variable): Allow for
+ 'do' after for statement
+
+Wed May 26 13:56:03 2004 Dave Thomas <dave@pragprog.com>
+
+ * lib/rdoc/generators/html_generator.rb (Generators::MarkUp::style_url): Fix
+ relative path to code CSS file
+
+Wed May 26 13:14:52 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * io.c (rb_io_init_copy): copy also positions. [ruby-talk:100910]
+
+Wed May 26 00:00:00 2004 why the lucky stiff <why@ruby-lang.org>
+
+ * ext/syck/syck.c (syck_new_parser): clear parser on init.
+ thanks, ts. [ruby-core:02931]
+
+ * ext/syck/token.c (sycklex_yaml_utf8): buffer underflow.
+ thanks, ts. [ruby-core:02929]
+
+ * lib/yaml/baseemitter.rb (indent_text): simpler flow block code.
+
+Tue May 25 11:54:13 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (rb_yield_0, proc_invoke, proc_arity): allow passing a block
+ to a Proc. [ruby-dev:23533]
+
+ * parse.y (block_par, block_var): ditto.
+
+Tue May 25 01:50:17 2004 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * ext/openssl/ossl_asn1.c (ossl_i2d_ASN1_TYPE, ossl_ASN1_TYPE_free):
+ workaround for the versions earlier than OpenSSL-0.9.7.
+
+Mon May 24 10:46:26 2004 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
+
+ * lib/rdoc/generators/template/html/html.rb: SYSTEM identifiers
+ must be absolute URIs
+
+Sun May 23 04:53:50 2004 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
+
+ * lib/pstore.rb (transaction): allow overriding dump and load.
+ [ruby-dev:23567]
+
+ * lib/yaml/store.rb: follow lib/pstore.rb's change.
+
+Sat May 22 11:54:10 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * MANIFEST: add test/openssl/test_x509store.rb.
+
+ * ext/tk/MANIFEST: add recent files.
+
+Sat May 22 05:37:11 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/remote-tk.rb: (NEW library) controll Tk interpreters
+ on the other processes by Tcl/Tk's 'send' command
+
+Fri May 21 09:22:05 2004 Dave Thomas <dave@pragprog.com>
+
+ * lib/rdoc/parsers/parse_rb.rb (RDoc::RubyParser::parse_method_parameters):
+ Add ()'s around parameters that don't have them
+
+Fri May 21 02:21:11 2004 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * lib/csv.rb: fixed a few bugs around multi char record/field separator.
+
+ * test/csv/test_csv.rb: added boundary test for above feature.
+
+Thu May 20 17:02:03 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/mkmf.rb (check_sizeof): define result size. [ruby-core:02911]
+
+ * lib/mkmf.rb (create_header): macro name should not include equal
+ sign.
+
+Thu May 20 14:35:52 2004 Tanaka Akira <akr@m17n.org>
+
+ * ext/socket/socket.c: check SCM_RIGHTS macro addition to
+ the msg_control field to test existence of file descriptor passing
+ by msg_control.
+
+Thu May 20 12:38:06 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * numeric.c (flo_eq): always check if operands are NaN.
+ [ruby-list:39685]
+
+Thu May 20 12:34:39 2004 Dave Thomas <dave@pragprog.com>
+
+ * lib/rdoc/parsers/parse_rb.rb (RDoc::RubyParser::parse_visibility):
+ At Ryan Davis' suggestion, honor visibility modifers if guarded by a
+ statement modifier
+
+Thu May 20 12:22:13 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/mkmf.rb (have_type): do not check pointer to incomplete type,
+ which always get compiled.
+ [ruby-list:39683]
+
+Wed May 19 23:45:43 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * test/inlinetest.rb (InlineTest::loadtest): requiring library with
+ replaced $0 can make $0 == __FILE__ block be evaluated twice.
+
+ * test/ruby/envutil.rb (EnvUtil::rubybin): give priority to
+ environment variable. [ruby-dev:23538]
+
+Wed May 19 11:08:10 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/tk.rb: change permition of TkObject#tk_send from
+ private to public
+
+Wed May 19 02:29:36 2004 Minero Aoki <aamine@loveruby.net>
+
+ * lib/net/http.rb: support TRACE.
+
+Wed May 19 02:21:53 2004 Minero Aoki <aamine@loveruby.net>
+
+ * lib/net/http.rb: do not use class variables.
+
+Tue May 18 21:21:43 2004 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * lib/csv.rb: writes lines with "\n" when row separator is not given.
+ formerly it was "\r\n".
+
+ * lib/csv.rb: [CAUTION] API change
+
+ * CSV::Row removed. a row is represented as just an Array. since
+ CSV::Row was a subclass of Array, it won't hurt almost all programs
+ except one which depended CSV::Row#match.
+
+ * CSV::Cell removed. a cell is represented as just a String or
+ nil(NULL). this change will cause widespread destruction.
+
+ CSV.open("foo.csv", "r") do |row|
+ row.each do |cell|
+ if cell.is_null # Cell#is_null
+ p "(NULL)"
+ else
+ p cell.data # Cell#data
+ end
+ end
+ end
+
+ must be just;
+
+ CSV.open("foo.csv", "r") do |row|
+ row.each do |cell|
+ if cell.nil?
+ p "(NULL)"
+ else
+ p cell
+ end
+ end
+ end
+
+ * lib/csv.rb: [CAUTION] record separator(CR, LF, CR+LF) behavior
+ change. CSV.open, CSV.parse, and CSV,generate now do not force
+ opened file binmode. formerly it set binmode explicitly.
+
+ with CSV.open, binmode of opened file depends the given mode
+ parameter "r", "w", "rb", and "wb". CSV.parse and CSV.generate open
+ file with "r" and "w".
+
+ setting mode properly is user's responsibility now.
+
+ * lib/csv.rb: accepts String as a fs (field separator/column separator)
+ and rs (record separator/row separator)
+
+ * lib/csv.rb: added CSV.foreach(path, rs = nil, &block). CSV.foreach
+ now does not handle "| cmd" as a path different from IO.foreach.
+ needed?
+
+ * test/csv/test_csv.rb: updated.
+
+Tue May 18 14:24:20 2004 why the lucky stiff <why@ruby-lang.org>
+
+ * lib/yaml.rb: added rdoc to beginning of lib.
+
+Tue May 18 14:00:46 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * node.h (NEW_DSTR): adjust list length.
+
+ * parse.y (literal_concat): ditto.
+
+Tue May 18 09:30:25 2004 SASADA Koichi <ko1@atdot.net>
+
+ * eval.c (rb_method_node): search cache entry first.
+
+Mon May 17 16:04:06 2004 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * numeric.c (flo_to_s): it's preferable that "p 0.0" outputs "0.0"
+ instead of "0.0e+00". [ruby-dev:23480]
+
+ * numeric.c (flo_to_s): it's preferable that "p 0.00000000000000000001"
+ outputs "1.0e-20" instead of "9.999999999999999e-21". (the precision
+ is considered, but there is assumption DBL_DIG == 15 in current
+ implementation)
+
+Mon May 17 10:13:33 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ext/socket/socket.c (setup_domain_and_type): honor duck typing.
+ [ruby-dev:23522]
+
+ * ext/socket/socket.c (sock_s_getnameinfo): ditto.
+
+Mon May 17 00:36:21 2004 why the lucky stiff <why@ruby-lang.org>
+
+ * lib/yaml/baseemitter.rb (indent_text): was forcing a mod value
+ of zero at times, which kept some blocks from getting indentation.
+
+Mon May 17 00:07:00 2004 Gavin Sinclair <gsinclair@soyabean.com.au>
+
+ * lib/drb/drb.rb: Cosmetic documentation changes.
+
+Sun May 16 20:55:49 2004 Tanaka Akira <akr@m17n.org>
+
+ * ext/dbm/dbm.c (fdbm_initialize): accept optional 3rd argument to
+ specify an open flag.
+ (Init_dbm): define open flags: DBM::READER, DBM::WRITER, DBM::WRCREAT
+ and DBM::NEWDB.
+
+Sat May 15 17:52:24 2004 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * test/ruby/test_float.rb(test_strtod): Add test for signed 0.000...1
+
+Sat May 15 14:20:13 2004 WATANABE Hirofumi <eban@ruby-lang.org>
+
+ * ext/syck/depend: add ruby's headers.
+
+Sat May 15 13:38:33 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/syck/MANIFEST, ext/syck/depend: new file.
+
+ * lib/yaml/rubytypes.rb: range of exponential floats. [ruby-core:02824]
+
+ * test/yaml/test_yaml.rb: tests for strings start with colon and some
+ round trip.
+
+Sat May 15 12:04:58 2004 why the lucky stiff <why@ruby-lang.org>
+
+ * lib/yaml.rb: removed fallback to pure Ruby parser.
+
+ * lib/yaml/baseemitter.rb (node_text): rewriting folded scalars.
+
+ * ext/syck/syck.h: reports style of scalars now, be they plain, block
+ single-, or double-quoted.
+
+ * ext/syck/syck.c: ditto.
+
+ * ext/syck/gram.c: ditto.
+
+ * ext/syck/node.c: ditto.
+
+ * ext/syck/token.c: ditto.
+
+ * ext/syck/rubyext.c (yaml_org_handler): symbols loaded only
+ if scalar style is plain.
+
+ * test/yaml/test_yaml.rb (test_perl_regexp): updated test to
+ match new regexp serialization.
+
+Sat May 15 01:41:34 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (eval): forgot to restore $SAFE value before evaluating
+ compiled node. [ruby-core:02872]
+
+Sat May 15 01:33:12 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * range.c (range_each_func): terminates loop if generating value
+ is same to @end. [ruby-talk:100269]
+
+Fri May 14 22:08:38 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (rb_str_new4): should not reuse frozen shared string if
+ the original is not an instance of String. [ruby-talk:100193]
+
+Fri May 14 21:29:26 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * time.c (time_mdump): preserve GMT bit in the marshal data.
+ [ruby-talk:100213]
+
+Fri May 14 18:37:49 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/tk/canvas.rb: improve coords support for canvas
+ items. Now, supports all of the followings.
+ TkcLine.new(c, 0, 0, 100, 100, :fill=>'red')
+ TkcLine.new(c, [0, 0, 100, 100], :fill=>'red')
+ TkcLine.new(c, [0, 0], [100, 100], :fill=>'red')
+ TkcLine.new(c, [[0, 0], [100, 100]], :fill=>'red')
+ TkcLine.new(c, :coords=>[0, 0, 100, 100], :fill=>'red')
+ TkcLine.new(c, :coords=>[[0, 0], [100, 100]], :fill=>'red')
+
+Fri May 14 13:30:39 2004 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * test/ruby/test_float.rb: Add test for util.c revision 1.42.
+
+Fri May 14 12:13:46 2004 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * util.c (ruby_strtod): strtod("0", &end); => end should point '\0'.
+ [ruby-dev:23498]
+
+Thu May 13 15:47:30 2004 akira yamada <akira@ruby-lang.org>
+
+ * lib/net/telnet.rb (Net::Telnet::login): "options" can specify
+ regexps for login prompt and/or password prompt.
+
+Thu May 13 14:17:57 2004 why the lucky stiff <why@ruby-lang.org>
+
+ * ext/syck/rubyext.c (yaml_org_handler): some empty strings were
+ loaded as symbols.
+
+Thu May 13 11:04:08 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * pack.c (pack_pack): always add with null for 'Z'.
+
+ * pack.c (pack_unpack): terminated by null for 'Z'. [ruby-talk:98281]
+
+Wed May 12 19:59:43 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/mkmf.rb (have_type, check_sizeof): replace unusable characters.
+ [ruby-talk:99788]
+
+Wed May 12 17:41:42 2004 Tanaka Akira <akr@m17n.org>
+
+ * lib/resolv.rb (Resolv::DNS::Config): make it configurable without
+ external file such as /etc/resolv.conf.
+
+Wed May 12 14:37:27 2004 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * ext/openssl/ossl_x509name.c: attribute value of DC (short name of
+ domainComponent) should be IA5String.
+
+Wed May 12 13:20:19 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/tk/composite.rb: improve configure methods (based on
+ the proposal of [ruby-talk:99671]).
+
+Wed May 12 11:51:08 2004 Dave Thomas <dave@pragprog.com>
+
+ * class.c (rb_obj_singleton_methods): fix rdoc
+
+Tue May 11 07:09:42 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (is_defined): do not protect exception during receiver
+ evaluation.
+
+Mon May 10 22:28:14 2004 Minero Aoki <aamine@loveruby.net>
+
+ * lib/net/protocol.rb (each_crlf_line): remove junk line.
+
+Mon May 10 21:44:42 2004 Dave Thomas <dave@pragprog.com>
+
+ * lib/rdoc/generators/html_generator.rb: Change scheme for
+ looking up symbols in HTML generator.
+
+Mon May 10 16:45:21 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (eval): warning during eval should not cause deadlock.
+ [ruby-talk:98651]
+
+ * eval.c (rb_eval): raise TypeError exception for superclass
+ mismatch. [ruby-list:39567]
+
+Mon May 10 12:11:37 2004 Dave Thomas <dave@pragprog.com>
+
+ * lib/rdoc/generators/html_generator.rb: Hack to search parents
+ for unqualified constant names.
+
+Mon May 10 01:18:15 2004 Minero Aoki <aamine@loveruby.net>
+
+ * lib/net/pop.rb (logging): append "\n".
+
+Sun May 9 23:38:00 2004 Gavin Sinclair <gsinclair@soyabean.com.au>
+
+ * lib/net/ftp.rb: ported documentation improvement from 1.8 branch
+
+ * lib/net/imap.rb: ditto
+
+ * lib/net/pop.rb: ditto
+
+ * lib/net/smtp.rb: ditto
+
+ * lib/net/telnet.rb: ditto
+
+Sun May 9 23:34:51 2004 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * test/ruby/test_float.rb: added test_strtod to test Float("0").
+
+Sun May 9 13:24:24 2004 WATANABE Hirofumi <eban@ruby-lang.org>
+
+ * lib/yaml/store.rb: use FileUtils::copy.
+
+Sun May 9 12:34:26 2004 Kazuo Saito <ksaito@uranus.dti.ne.jp>
+
+ * regex.c: removed unused file.
+
+Sat May 8 10:53:30 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * io.c (rb_f_open): open should not ignore block when "to_open"
+ method is used. [ruby-dev:23478]
+
+Fri May 7 22:07:39 2004 Minero Aoki <aamine@loveruby.net>
+
+ * lib/fileutils.rb (mv): new option `force'. [ruby-talk:99457]
+
+ * lib/fileutils.rb: new method for command option reflection:
+ FileUtils.commands, .options, .have_option?, .options_of,
+ .collect_methods.
+
+ * lib/fileutils.rb: module Verbose, NoWrite, DryRun do not have
+ option flags @fileutils_verbose and @fileutils_noop, they make no
+ sense.
+
+Fri May 7 21:50:21 2004 Dave Thomas <dave@pragprog.com>
+
+ * lib/rdoc/parsers/parse_rb.rb (RDoc::parse_include): Allow
+ multiple arguments to 'include'
+
+Fri May 7 21:03:51 2004 Minero Aoki <aamine@loveruby.net>
+
+ * lib/fileutils.rb (fu_list): Array() breaks pathes including "\n".
+ [ruby-core:02843]
+
+ * test/fileutils/test_fileutils.rb (mkdir): test "\n" in path.
+
+Fri May 7 20:53:25 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ext/dbm/dbm.c (fdbm_modify): typo fixed. [ruby-dev:23473]
+
+Fri May 7 11:17:27 2004 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * util.c (ruby_strtod): "0.0000000000000000001" should be converted
+ to 1.0e-19 instead of 0.0. (leading zeros aren't significant digits)
+ [ruby-talk:99318] [ruby-dev:23465]
+
+Thu May 6 22:27:32 2004 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
+
+ * ext/socket/socket.c (ippaddr): use NUMERICHOST if can not resolve
+ hostname.
+
+Thu May 6 22:09:29 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/tkutil.c (get_eval_string_core): bug fix. [ruby-dev:23466]
+
+Thu May 6 14:22:29 2004 why the lucky stiff <why@ruby-lang.org>
+
+ * lib/yaml/rubytypes.rb (to_yaml): added instance variable handling
+ for Ranges, Strings, Structs, Regexps.
+
+ * lib/yaml/rubytypes.rb (to_yaml_fold): new method for setting a
+ String's flow style.
+
+ * lib/yaml.rb (YAML::object_maker): now uses Object.allocate.
+
+ * ext/syck/gram.c: fixed transfer methods on structs, broke it
+ last commit.
+
+Thu May 6 14:38:02 2004 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * dir.c (rb_push_glob): simplified code (not change behavior)
+
+Thu May 6 13:32:44 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/extmk.rb: get rid of side effect of Config.expand, patched by
+ <tttt01@infoseek.jp> (ruby-bugs:PR#597)
+
+Thu May 6 11:40:28 2004 Shugo Maeda <shugo@ruby-lang.org>
+
+ * lib/net/imap.rb (string): accept NIL.
+
+ * lib/net/imap.rb (body_type_basic): allow body-fields omissions.
+
+Thu May 6 01:59:04 2004 Dave Thomas <dave@pragprog.com>
+
+ * lib/rdoc/generators/html_generator.rb (Generators::HtmlMethod::params):
+ Don't include the &block parameter if we have explicit
+ yield parameters.
+
+Wed May 5 03:52:31 2004 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
+
+ * lib/rinda/ring.rb: use recv instead of recvfrom.
+
+Wed May 5 00:38:00 2004 Gavin Sinclair <gsinclair@soyabean.com.au>
+
+ * lib/gserver.rb: documented
+ * lib/xmlrpc/README.txt: introduced for documentation purposes
+
+Mon May 3 09:47:24 2004 Dave Thomas <dave@pragprog.com>
+
+ * lib/rdoc/parsers/parse_rb.rb (RDoc::RubyParser::parse_method_or_yield_parameters):
+ Fix parsing bug if yield called within 1 line block
+
+Sun May 2 21:56:48 2004 Minero Aoki <aamine@loveruby.net>
+
+ * test/fileutils/test_fileutils.rb (rm_f, rm_r): test :force flag.
+
+Sun May 2 01:04:38 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tcltklib, ext/tk: renewal Ruby/Tk
+
+Fri Apr 30 20:08:41 2004 WATANABE Hirofumi <eban@ruby-lang.org>
+
+ * time.c (SIZEOF_TIME_T): support SIZEOF_TIME_T == SIZEOF_INT.
+
+Wed Apr 28 01:26:11 2004 Kazuo Saito <ksaito@uranus.dti.ne.jp>
+
+ * oniguruma.h, regparse.c: imported Oni Guruma 2.2.8.
+
+Wed Apr 28 01:16:23 2004 Kazuo Saito <ksaito@uranus.dti.ne.jp>
+
+ * oniguruma.h, regparse.c: imported Oni Guruma 2.2.7.
+
+Tue Apr 27 14:43:32 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * common.mk: LIBURUBY_A is needed for extconf.rb even when
+ cross-compiling.
+
+Tue Apr 27 13:33:50 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * parse.y (string_content): turn off NODE_NEWLINE flag to avoid
+ unnecessary line trace for inlined expression.
+ (ruby-bugs PR#1320)
+
+Tue Apr 27 08:15:13 2004 why the lucky stiff <why@ruby-lang.org>
+
+ * lib/yaml/rubytypes.rb: passing Range tests.
+
+ * ext/syck/syck.h: version 0.44.
+
+ * ext/syck/gram.c: transfers no longer open an indentation.
+ fixed transfers which precede blocks.
+
+ * ext/syck/token.c: ditto.
+
+ * ext/syck/syck.c: fixed segfault if an anchor has been released already.
+
+ * ext/syck/node.c (syck_free_members): organized order of free'd nodes.
+
+ * ext/syck/rubyext.c (syck_emitter_write_m): test for proper string with
+ StringValue.
+
+Mon Apr 26 23:56:54 2004 Daniel Kelley <news-1082945587@dkelley.gmp.san-jose.ca.us>
+
+ * README.EXT, README.EXT.ja: fixed wrong function signature.
+ [ruby-talk:98349]
+
+Mon Apr 26 21:40:09 2004 Dave Thomas <dave@pragprog.com>
+
+ * lib/rdoc/code_objects.rb (RDoc::Context::add_alias): Only alias
+ to instance methods.
+
+Sun Apr 25 18:26:23 2004 WATANABE Hirofumi <eban@ruby-lang.org>
+
+ * configure.in (ac_cv_func_fork): set to no on DJGPP.
+
+Sat Apr 24 14:32:03 2004 Kazuo Saito <ksaito@uranus.dti.ne.jp>
+
+ * re.c: applied stack error handling patch. [ruby-dev:23431]
+
+Sat Apr 24 10:38:31 2004 Dave Thomas <dave@pragprog.com>
+
+ * lib/rdoc/markup/simple_markup.rb (SM::SimpleMarkup::group_lines):
+ Fix bug where consecutive headings are merged.
+
+Fri Apr 23 23:24:47 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/mkmf.rb: $hdrdir should not contain macros, for backward
+ compatibility. [bruby-dev:28]
+
+ * lib/mkmf.rb (create_makefile): in the case of extout, just copy
+ script files, without comparison.
+
+Fri Apr 23 16:38:46 2004 Tanaka Akira <akr@m17n.org>
+
+ * lib/pathname.rb: sync taint/freeze flag between
+ a pathname object and its internal string object.
+
+Fri Apr 23 14:52:14 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (stmt, arg, aref_args): should not make sole splat into
+ array, in aref_args other than aref with op_asgn.
+
+Fri Apr 23 14:14:38 2004 Tanaka Akira <akr@m17n.org>
+
+ * lib/resolv.rb: don't use Regexp#source to embed regexps.
+ [ruby-dev:23432]
+
+Thu Apr 22 18:25:10 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * common.mk, ext/extmk.rb: make ext and .ext get removed by distclean.
+
+Thu Apr 22 10:07:01 2004 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * */Makefile.sub (distclean-local): should remove $(RBCONFIG).
+
+Thu Apr 22 04:17:57 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (rb_mod_define_method): allow binding methods to modules.
+ [ruby-dev:23410]
+
+ * parse.y (aref_args): should pass expanded list. [ruby-core:02793]
+
+Thu Apr 22 01:12:57 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * numeric.c (flo_to_s): tweak output string based to preserve
+ decimal point and to remove trailing zeros. [ruby-talk:97891]
+
+ * string.c (rb_str_index_m): use unsigned comparison for T_FIXNUM
+ search. [ruby-talk:97342]
+
+Wed Apr 21 23:04:42 2004 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
+
+ * lib/rinda/rinda.rb, test/rinda/test_rinda.rb: check Hash tuple size.
+
+Wed Apr 21 20:05:00 2004 Tanaka Akira <akr@m17n.org>
+
+ * lib/open-uri.rb (URI::HTTP#proxy_open): set Host: field explicitly.
+ [ruby-list:39542]
+
+Wed Apr 21 18:39:46 2004 Minero Aoki <aamine@loveruby.net>
+
+ * lib/net/smtp.rb: merge SMTP-TLS patch. This patch is
+ contributed by Daniel Hob. [ruby-core:02789]
+
+Wed Apr 21 18:23:45 2004 Minero Aoki <aamine@loveruby.net>
+
+ * lib/net/smtp.rb: change coding style: def m( a ) -> def m(a).
+
+Wed Apr 21 18:01:47 2004 Minero Aoki <aamine@loveruby.net>
+
+ * lib/net/pop.rb: do not use class variables.
+
+ * lib/net/pop.rb (do_start): ensure to clean up connection when
+ authentication failed.
+
+Wed Apr 21 17:23:59 2004 Minero Aoki <aamine@loveruby.net>
+
+ * lib/net/http.rb (HTTP#connect): CONNECT must precede SSL connect.
+ [ruby-dev:23379]
+
+ * lib/net/http.rb (HTTP.new): class variables are not inherited
+ now.
+
+Wed Apr 21 15:56:43 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/test/unit/ui/console/testrunner.rb (test_started): restore $0
+ after changing process title. [ruby-talk:97426]
+
+Wed Apr 21 10:18:06 2004 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * process.c(rb_spawn): fix SEGV at "p system('command line here')"
+ (may happen only in bccwin32) [ruby-dev:23380]
+
+Mon Apr 19 20:58:44 2004 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * dir.c: Updated RDocs.
+
+Mon Apr 19 18:11:15 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * hash.c (rb_hash_equal): returns true if two hashes have same set
+ of key-value set. [ruby-talk:97559]
+
+ * hash.c (rb_hash_eql): returns true if two hashes are equal and
+ have same default values.
+
+Mon Apr 19 08:19:11 2004 Doug Kearns <djkea2@mugca.its.monash.edu.au>
+
+ * dln.c, io.c, pack.c, lib/benchmark.rb, lib/cgi.rb, lib/csv.rb,
+ lib/date.rb, lib/ftools.rb, lib/getoptlong.rb, lib/logger.rb,
+ lib/matrix.rb, lib/monitor.rb, lib/set.rb, lib/thwait.rb,
+ lib/timeout.rb, lib/yaml.rb, lib/drb/drb.rb, lib/irb/workspace.rb,
+ lib/net/ftp.rb, lib/net/http.rb, lib/net/imap.rb, lib/net/pop.rb,
+ lib/net/telnet.rb, lib/racc/parser.rb, lib/rinda/rinda.rb,
+ lib/rinda/tuplespace.rb, lib/shell/command-processor.rb,
+ lib/soap/rpc/soaplet.rb, lib/test/unit/testcase.rb,
+ lib/test/unit/testsuite.rb: typo fix.
+
+Mon Apr 19 08:14:18 2004 Dave Thomas <dave@pragprog.com>
+
+ * lib/rdoc/parsers/parse_c.rb (RDoc::C_Parser::find_body): Allow for
+ #ifdef HAVE_PROTOTYPES
+
+Fri Apr 16 17:04:07 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (rb_str_equal): always returns true or false, never
+ returns nil. [ruby-dev:23404]
+
+Fri Apr 16 12:38:48 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/drb/drb.rb (DRb::DRbUnknown::initialize): Exception#to_str is
+ deprecated.
+
+ * lib/drb/drb.rb (DRb::DRbServer::InvokeMethod::perform): multiple
+ value class changed.
+
+ * lib/drb/invokemethod.rb (DRb::DRbServer::InvokeMethod18Mixin::block_yield):
+ ditto.
+
+Fri Apr 16 08:27:08 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/extmk.rb: skip linking when libraries to be preloaded not
+ compiled. [ruby-list:39561]
+
+Thu Apr 15 19:57:11 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * process.c (pst_success_p): new method Process::Status#success?.
+ [ruby-dev:23385]
+
+ * rubytest.rb: do nothing while cross-compiling, return status in
+ system independent style.
+
+Thu Apr 15 19:26:54 2004 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * dir.c (rb_push_glob): Dir.glob() should return nil if block is given.
+ (http://www.ruby-lang.org/ja/man/index.cgi?cmd=view;name=Dir)
+
+ * dir.c (push_braces): Dir.glob() should handle '{ }' nested more than
+ 3 times.
+
+ * dir.c (push_braces, rb_push_glob): Dir.glob() should handle escaped
+ '{' and '}' and ','.
+
+ [ruby-dev:23376]
+
+Thu Apr 15 17:12:13 2004 Tanaka Akira <akr@m17n.org>
+
+ * ext/gdbm/gdbm.c (Init_gdbm): define GDBM::READER, GDBM::WRITER,
+ GDBM::WRCREAT and GDBM::NEWDB.
+ (fgdbm_initialize): use specified read/write flag.
+
+Wed Apr 14 13:06:09 2004 Doug Kearns <djkea2@mugca.its.monash.edu.au>
+
+ * array.c, enum.c, eval.c, file.c, io.c, numeric.c, object.c, prec.c,
+ process.c, re.c, string.c: typos in RDoc comments. [ruby-core:02783]
+
+Wed Apr 14 11:29:56 2004 WATANABE Hirofumi <eban@ruby-lang.org>
+
+ * numeric.c (flo_eq): workaround for bcc32's bug.
+ (ruby-bugs-ja:PR#594)
+
+Wed Apr 14 11:06:38 2004 Dave Thomas <dave@pragprog.com>
+
+ * lib/rdoc/parsers/parse_rb.rb (RDoc::RubyParser::scan): Changed
+ behavior of :enddoc: -- it now unconditionally terminates
+ processing of the current file.
+
+Wed Apr 14 10:57:40 2004 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * defines.h: include <net/socket.h> to get fd_set definition in BeOS.
+
+Tue Apr 13 23:00:55 2004 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
+
+ * lib/rinda/rinda.rb: change pattern matching.
+ a === b -> a == b || a === b. [druby-ja:98]
+
+ * test/rinda/test_rinda.rb: ditto.
+
+Tue Apr 13 21:50:57 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * bcc32/Makefile.sub (PHONY): Borland make disallows empty command
+ rules.
+
+Tue Apr 13 17:55:16 2004 Minero Aoki <aamine@loveruby.net>
+
+ * lib/net/http.rb (begin_transport): should not overwrite HTTP
+ request header. [ruby-list:39543]
+
+Tue Apr 13 16:48:00 2004 Minero Aoki <aamine@loveruby.net>
+
+ * lib/net/pop.rb: merge POP3S patch. This patch is contributed by
+ Daniel Hobe.
+
+Tue Apr 13 02:56:29 2004 Kazuo Saito <ksaito@uranus.dti.ne.jp>
+
+ * common.mk: changed the order of ascii.c alphabetically.
+
+Mon Apr 12 19:11:21 2004 Eric Hodel <drbrain@segment7.net>
+
+ * gc.c (rb_gc_copy_finalizer): typo. [ruby-core:02774]
+
+Mon Apr 12 18:45:58 2004 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * ext/openssl/ossl_x509name.c (ossl_x509name_init_i): should return
+ a value.
+
+Mon Apr 12 10:39:50 2004 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * dir.c (rb_glob2, rb_glob, push_globs, push_braces, rb_push_glob):
+ fix memory leak. (leaked when block was interrupted)
+
+Sun Apr 11 19:10:13 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ruby.c (require_libraries): restore source file/line after
+ statically linked extensions initialized. [ruby-dev:23357]
+
+Sun Apr 11 10:47:04 2004 Dave Thomas <dave@pragprog.com>
+
+ * lib/rdoc/code_objects.rb (RDoc::TopLevel::add_class_or_module): Toplevel
+ classes and modules are a special case too... (handle extending existing
+ classes with or without :enddoc:)
+
+Sat Apr 10 23:51:13 2004 Dave Thomas <dave@pragprog.com>
+
+ * lib/rdoc/code_objects.rb (RDoc::Context::add_to): Implementation of :enddoc:
+ made one too many assumptions...
+
+Sat Apr 10 00:00:19 2004 Dave Thomas <dave@pragprog.com>
+
+ * lib/rdoc/markup/simple_markup/inline.rb: Fix problem
+ with \_cat_<b>dog</b>
+
+Fri Apr 9 17:05:21 2004 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * dir.c (has_magic, find_dirsep): incomplete '[' matches no character
+ in Dir.glob. (follows File.fnmatch's behavior)
+
+ * dir.c (fnmatch_helper): incomplete escape is ignored in File.fnmatch.
+ (follows Dir.glob's behavior)
+
+ * dir.c (find_dirsep): '/' between '[' and ']' is ignored in Dir.glob.
+ (follows File.fnmatch with File::FNM_PATHNAME 's behavior)
+
+ * dir.c (find_dirsep): escaped slash '\/' loses its meaning as
+ directory separator in Dir.glob.
+
+ [ruby-dev:23291]
+
+Thu Apr 8 20:25:19 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/extmk.rb (extmake): skip uncompiled extensions.
+
+ * lib/mkmf.rb (create_makefile): emit no rules for static library if
+ $static is nil, e.g., outside of ext/.
+
+ * lib/test/unit/ui/console/testrunner.rb (test_started): show test
+ name via $0.
+
+ * runruby.rb: set environments to use the compiled binary.
+
+ * test/runner.rb: do nothing while cross-compiling.
+
+ * test/drb/drbtest.rb, test/soap/calc/test_calc_cgi.rb: use envutil to
+ know ruby binary, and restore $: after require.
+
+ * test/ruby/envutil.rb: give priority to RUBY environment variable to
+ use just compiled binary and libraries.
+
+Thu Apr 8 19:03:33 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * io.c (rb_io_binmode): inverted condition. [ruby-dev:23349]
+
+Thu Apr 8 18:22:00 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/iconv/iconv.c (iconv_s_list): return encoding list if no block
+ is given. [ruby-dev:23063]
+
+Wed Apr 7 15:29:24 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * pack.c (pack_pack): use NUM2INT() instead of num2i32().
+
+Wed Apr 7 12:32:02 2004 Kouhei Sutou <kou@cozmixng.org>
+
+ * lib/rss/parser.rb, lib/rss/1.0.rb: accepted rdf:resource or
+ resource attribute in rdf:li.
+ * test/rss/test_parser.rb: added test for above change.
+
+ * lib/rss/dublincore.rb: reverted style.
+
+ * lib/rss/xmlparser.rb: normalized XMLParser class hierarchy.
+
+Wed Apr 7 10:43:17 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * Makefile.in, common.mk, */Makefile.sub (ext/extinit.o): OUTFLAG
+ doesn't work for object files on VC.
+
+ * */Makefile.sub (config.h): need SIZEOF_TIME_T now.
+
+Wed Apr 7 00:24:34 2004 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
+
+ * lib/rinda/rinda.rb: fix hash tuple bug.
+
+ * lib/rinda/tuplespace.rb: ditto.
+
+ * test/rinda/test_rinda.rb
+
+Tue Apr 6 18:24:18 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * file.c (rb_get_path): get path string via "to_path" method if
+ path object is not a string. [Ruby2]
+
+ * gc.c (rb_gc_call_finalizer_at_exit): do not free threads in the
+ exit finalizers.
+
+ * io.c (rb_io_reopen): should use rb_io_check_io().
+
+Tue Apr 6 16:46:09 2004 Tanaka Akira <akr@m17n.org>
+
+ * configure.in: check the size of time_t.
+
+ * time.c (time_add): new function.
+ (time_plus): use time_add.
+ (time_minus): use time_add.
+
+Tue Apr 6 13:11:48 2004 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * ext/socket/socket.c (raise_socket_error): never return.
+
+ * ext/socket/socket.c (make_hostent): must return value.
+
+Tue Apr 6 00:14:43 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * error.c (Init_Exception): remove Exception#to_str. [Ruby2]
+
+ * eval.c (error_print): should no call "to_str" anymore use
+ "message" method instead.
+
+ * io.c (rb_f_open): Kernel#open() calls "to_open" if the first
+ argument responds to it. [Ruby2]
+
+Tue Apr 6 00:13:43 2004 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
+
+ * lib/rinda/rinda.rb: add require 'drb/drb'
+
+Mon Apr 5 22:25:32 2004 Tanaka Akira <akr@m17n.org>
+
+ * test/zlib/test_zlib.rb: new file.
+ (TestZlibGzipWriter#test_new_nil): test for [ruby-dev:23228].
+
+Mon Apr 5 22:16:23 2004 Minero Aoki <aamine@loveruby.net>
+
+ * parse.y (assoc_list): {a: 1, b: 2} should be allowed.
+ [ruby-dev:23328]
+
+Mon Apr 5 19:43:40 2004 Kazuo Saito <ksaito@uranus.dti.ne.jp>
+
+ * regexec.c: imported Oni Guruma 2.2.6.
+
+Mon Apr 5 19:39:10 2004 Kazuo Saito <ksaito@uranus.dti.ne.jp>
+
+ * regparse.c, oniguruma.h: imported Oni Guruma 2.2.6.
+
+Mon Apr 5 12:12:09 2004 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * ext/socket/socket.c (raise_socket_error): some platforms don't have
+ EAI_SYSTEM.
+
+Mon Apr 5 08:18:23 2004 Dave Thomas <dave@pragprog.com>
+
+ * lib/rdoc/rdoc.rb: Remove leading ./ from file names so that cross
+ references work properly.
+
+Sun Apr 4 14:01:20 2004 Dave Thomas <dave@pragprog.com>
+
+ * lib/rdoc/options.rb (Options::parse): Allow multiple -x options to
+ RDoc. Fix bug where files weren't being excluded properly
+
+Sat Apr 3 09:36:38 2004 why the lucky stiff <why@ruby-lang.org>
+
+ * ext/syck/syck.h: version 0.43.
+
+Sat Apr 3 08:28:47 2004 why the lucky stiff <why@ruby-lang.org>
+
+ * ext/syck/lib/gram.c: allow root-level inline collections.
+ [ruby-talk:94922]
+
+ * lib/yaml/rubytypes.rb (Symbol#to_yaml): emit symbols as implicits.
+ [ruby-talk:94930]
+
+Fri Apr 2 19:28:48 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * bcc32/Makefile.sub (OUTFLAG): needed for static-linked-ext.
+
+Fri Apr 2 18:00:05 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/extmk.rb (extmake): extract necessary variables for static link
+ from Makefile.
+
+ * lib/mkmf.rb (create_makefile): save preload and libpath for next
+ compile.
+
+Fri Apr 2 17:27:17 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (top_include): include in the wrapped load is done for
+ the wrapper, not for a singleton class for wrapped main.
+ [ruby-dev:23305]
+
+Fri Apr 2 15:13:44 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * bignum.c (rb_big_eq): use temporary double variable to save the
+ result (internal float register may be bigger than 64 bits, for
+ example, 80 bits on x86). [ruby-dev:23311]
+
+Fri Apr 2 14:35:26 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (block_pass): should generate unique identifier of the
+ pushing block. [ruby-talk:96363]
+
+Fri Apr 2 11:36:20 2004 Minero Aoki <aamine@loveruby.net>
+
+ * eval.c (Init_load): make $LOADED_FEATURES built-in.
+ [ruby-dev:23299]
+
+ * ruby.c (ruby_prog_init): make $PROGRAM_NAME built-in.
+
+ * lib/English.rb: remove $LOADED_FEATURES and $PROGRAM_NAME.
+
+Fri Apr 2 07:31:38 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ext/socket/socket.c: mistakingly removed do_not_reverse_lookup.
+ [ruby-list:39475]
+
+ * ext/socket/socket.c (make_hostent): fix memory leak, based on
+ the patch from HORIKAWA Hisashi <vzw00011@nifty.ne.jp>.
+
+Thu Apr 1 22:55:33 2004 Dave Thomas <dave@pragprog.com>
+
+ * lib/rdoc/parsers/parse_rb.rb: Allow rdoc comments in
+ =begin rdoc/=end
+
+ * lib/rdoc/parsers/parse_rb.rb: Fix problem with comment in
+ top-level method being taken as file comment.
+
+Thu Apr 1 22:55:04 2004 Dave Thomas <dave@pragprog.com>
+
+ * lib/rdoc/ri/ri_options.rb: Fix undefined variable warning.
+
+Thu Apr 1 19:58:37 2004 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * lib/soap/mapping/{factory.rb,registry.rb}: fixed illegal mapped URI
+ object with soap/marshal.
+ added URIFactory class for URI mapping. BasetypeFactory checks
+ instance_variables when original mapping is not allowed (ivar must
+ be empty). Instance of URI have instance_variables but it must be
+ llowed whenever original mapping is allowed or not.
+
+Wed Mar 31 19:06:23 2004 Tanaka Akira <akr@m17n.org>
+
+ * time.c (year_leap_p): new function.
+ (timegm_noleapsecond): ditto.
+ (search_time_t): use timegm_noleapsecond instead of
+ mktime for first guess.
+
+Wed Mar 31 12:05:17 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/delegate.rb (DelegateClass): define internal methods of the
+ result class, but not metaclass of the caller. [ruby-talk:96156]
+
+ * intern.h: provide proper prototypes. [ruby-core:02724]
+
+ * ruby.h: missing.h is now prerequisite to intern.h.
+
+Wed Mar 31 11:17:16 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * pack.c (pack_pack): raises RangeError if uv is out of UTF8 value
+ range. [ruby-dev:23281]
+
+ * io.c (rb_io_binmode): stdio buffer should be empty when calling
+ IO#binmode. [ruby-talk:96155]
+
+Tue Mar 30 20:25:34 2004 Tanaka Akira <akr@m17n.org>
+
+ * time.c (search_time_t): limit guess range by mktime if it is
+ available. [ruby-dev:23274]
+
+Tue Mar 30 18:19:00 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (rb_eval): fix SEGV at retry in iterator's receiver.
+ [ruby-dev:23227]
+
+Mon Mar 29 20:17:16 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * process.c (rb_exec): follow older behavior if close-on-exec is not
+ available.
+
+ * process.c (rb_fork): protect from exceptions while waiting failed
+ process, if status is given.
+
+Sun Mar 28 16:25:37 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * cygwin/GNUmakefile.in (clean-local, distclean-local): remove
+ work files.
+
+ * win32/Makefile.sub (clean-local): ditto.
+
+Sun Mar 28 14:23:02 2004 Minero Aoki <aamine@loveruby.net>
+
+ * lib/net/pop.rb: def m( arg ) -> def m(arg).
+
+Sun Mar 28 14:09:13 2004 Minero Aoki <aamine@loveruby.net>
+
+ * lib/net/pop.rb (auth): failed when account/password include "%".
+ [ruby-talk:95933]
+
+Sat Mar 27 21:40:41 2004 Tanaka Akira <akr@m17n.org>
+
+ * lib/open-uri.rb: permit extra semicolon in content-type field.
+
+Sat Mar 27 10:40:48 2004 Tanaka Akira <akr@m17n.org>
+
+ * (lib/pp.rb, lib/prettyprint.rb): define seplist in PP::PPMethods
+ instead of PrettyPrint.
+
+Sat Mar 27 01:47:09 2004 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * lib/logger.rb: trim tail space of each line. no user visible change.
+
+ * lib/rss/dublincore.rb: fixed class definition mismatch.
+
+ * sample/openssl/gen_csr.rb: fixed wrong usage text.
+
+Thu Mar 25 23:15:24 2004 Dave Thomas <dave@pragprog.com>
+
+ * lib/rdoc/ri/ri_options.rb (RI::Options::show_version):
+ Add --version option
+
+Thu Mar 25 21:45:00 2004 Shigeo Kobayashi <shigek@ruby-lang.org>
+
+ * ext/bigdecimal/bigdecimal.c: Bug in + and - reported by Bret Jolly
+ fixed.
+
+Thu Mar 25 21:01:32 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * version.c (ruby_show_copyright): obtain copyright year from
+ RUBY_RELEASE_YEAR.
+
+ * win32/resource.rb: ditto.
+
+Thu Mar 25 19:37:35 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * win32/resource.rb: default rubyw icon to ruby.ico, and let DLL also
+ include them.
+
+ * win32/resource.rb: include winver.h for older WindowsCE.
+
+Thu Mar 25 14:01:03 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * common.mk, */Makefile.sub (lib, dll): phony targets.
+
+ * configure.in (ruby, miniruby): ditto.
+
+ * cygwin/GNUmakefile.in (rubyw): ditto.
+
+Thu Mar 25 04:16:18 2004 Dave Thomas <dave@pragprog.com>
+
+ * lib/rdoc/ri/ri_options.rb (RI::Options): Add the --list-names option,
+ which dumps our all known names
+
+Thu Mar 25 03:57:47 2004 Dave Thomas <dave@pragprog.com>
+
+ * lib/rdoc/ri/ri_util.rb (NameDescriptor::initialize): No longer
+ allow nested classes to be designated using "."--you must
+ now use "::"
+
+Thu Mar 25 02:00:18 2004 Dave Thomas <dave@pragprog.com>
+
+ * lib/rdoc/generators/template/html/one_page_html.rb (Page):
+ Fix to work with C modules.
+
+Wed Mar 24 20:49:00 2004 Gavin Sinclair <gsinclair@soyabean.com.au>
+
+ * lib/uri.rb: Documented (thanks Dmitry V. Sabanin).
+ * lib/uri/common.rb: Ditto.
+ * lib/uri/ftp.rb: Ditto.
+ * lib/uri/generic.rb: Ditto.
+ * lib/uri/http.rb: Ditto.
+ * lib/uri/https.rb: Ditto.
+ * lib/uri/ldap.rb: Ditto.
+ * lib/uri/mailto.rb: Ditto.
+
+Wed Mar 24 18:48:05 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/mkmf.rb ($ruby, $topdir, $hdrdir): should not be affected by
+ DESTDIR after installed.
+
+ * lib/mkmf.rb (dummy_makefile): default file lists to be cleaned.
+
+Wed Mar 24 12:32:56 2004 Dave Thomas <dave@pragprog.com>
+
+ * lib/rdoc/parsers/parse_c.rb (RDoc::C_Parser::handle_class_module):
+ Don't document methods if we don't know for sure the
+ class or module.
+
+ * lib/rdoc/parsers/parse_rb.rb (RDoc::RubyParser::parse_class):
+ Don't store documentation for singleton classes if we
+ don't know the real class.
+
+Wed Mar 24 11:11:26 2004 Dave Thomas <dave@pragprog.com>
+
+ * lib/rdoc/generators/html_generator.rb (Generators::HTMLGenerator::load_html_template):
+ Allow non-RDoc templates by putting a slash in the template name
+
+Wed Mar 24 10:05:22 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/tempfile.rb (Tempfile::_close): should not clear @tmpname
+ until the file is really removed. [ruby-core:02684]
+
+Wed Mar 24 04:12:44 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * object.c (rb_mod_cvar_get): new method Module#class_variable_get.
+
+ * object.c (rb_mod_cvar_set): ditto (Module#class_variable_set).
+
+Tue Mar 23 17:45:22 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (rb_thread_atfork): 1.9 warns no more for thread
+ termination. [ruby-dev:23212]
+
+Tue Mar 23 14:46:10 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * Makefile.in, */Makefile.sub, common.mk (clean-local, distclean-local):
+ separate files under directories due to directory separator.
+
+ * */Makefile.sub (MKFILES): common.mk and */Makefile.sub should not be
+ removed.
+
+ * win32/Makefile.sub, wince/Makefile.sub: $* cannot appear in explicit
+ rules.
+
+ * cygwin/GNUmakefile.in: some mingw stuffs were missed.
+
+ * lib/mkmf.rb (create_makefile): Borland make wrongly removes braces
+ from command lines.
+
+ * bcc32/Makefile.sub: needs bcc32/mkexports.rb.
+
+Mon Mar 22 08:21:17 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * Makefile.in, */Makefile.sub, common.mk: extract common portions.
+
+ * Makefile.in, cygwin/GNUmakefile.in, */Makefile.sub (RBCONFIG):
+ separated time stamp file for rbconfig.rb.
+
+ * configure.in: append common.mk to Makefile.
+
+ * mkconfig.rb: keep mtime of rbconfig.rb if unchanged.
+
+ * win32/rm.bat: remove multiple files.
+
+ * wince/mkconfig_wce.rb: use fake.rb instead.
+
+Sun Mar 21 22:17:35 2004 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * lib/webrick/httpserver.rb (WEBrick::HTTPServer#virtual_host):
+ sort @virtual_hosts in address, port, host order.
+
+ * lib/webrick/httpserver.rb (WEBrick::HTTPServer#lookup_server):
+ hostname should not be match if :ServerAlias is not given.
+
+Sun Mar 21 21:11:16 2004 Keiju Ishitsuka <keiju@ishitsuka.com>
+
+ * lib/shell/*: bug fix for Shell#system(command_line_string).
+
+Sun Mar 21 21:04:42 2004 WATANABE Hirofumi <eban@ruby-lang.org>
+
+ * ruby.1: add -width option to .Bl for old groff.
+
+Sun Mar 21 18:57:37 2004 Kouhei Sutou <kou@cozmixng.org>
+
+ * test/rss/*: Test::Unit::TestCase -> RSS::TestCase and
+ Test::Unit::Assertions -> RSS::Assertions.
+
+Sun Mar 21 18:48:20 2004 Kouhei Sutou <kou@cozmixng.org>
+
+ * lib/rss/{rss,dublincore,syndication}.rb: handled W3CDTF correctly.
+
+Sun Mar 21 18:15:29 2004 Kouhei Sutou <kou@cozmixng.org>
+
+ * test/rss/test_xml-stylesheet.rb: added tests for xml-stylesheet.
+
+ * lib/rss/xml-stylesheet.rb: added xml-stylesheet parsing
+ function.
+
+Sat Mar 20 23:51:03 2004 WATANABE Hirofumi <eban@ruby-lang.org>
+
+ * eval.c (rb_require_safe): preserve old ruby_errinfo.
+ [ruby-talk:95409]
+
+ * eval.c (rb_f_raise): should not clear backtrace information if
+ exception object already have one.
+
+Sat Mar 20 21:21:03 2004 WATANABE Hirofumi <eban@ruby-lang.org>
+
+ * ext/extmk.rb: rm -rf $extout, not extout.
+
+Sat Mar 20 15:25:36 2004 Dave Thomas <dave@pragprog.com>
+
+ * lib/rdoc/generators/template/html/html.rb (RDoc::Page): Force
+ page background to white.
+
+Sat Mar 20 09:33:36 2004 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * lib/date.rb, lib/date/format.rb: _parse() now accepts fractional
+ part of second minute that follows a comma or a full stop.
+
+Fri Mar 19 21:06:21 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * parse.y (assoc_list): allow {sym: val} style Hash. [Ruby2]
+ this change is done by Nobuyoshi Nakada <nobu@ruby-lang.org>.
+
+Fri Mar 19 15:15:15 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * variable.c (rb_cvar_set): class variables become private to the
+ particular class/module. [Ruby2]
+
+ * variable.c (rb_cvar_get): ditto.
+
+ * variable.c (rb_cvar_defined): ditto.
+
+Fri Mar 19 11:31:32 2004 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * lib/mkmf.rb ($beos, $solaris): add OS flags.
+
+ * lib/mkmf.rb (RUBY): / is not recognized as path separator on
+ nmake/bmake. [ruby-list:39388]
+
+ * lib/mkmf.rb (CLEANLIBS, CLEANOBJS): should remove *.exp with *.so.
+
+Fri Mar 19 01:55:57 2004 Mauricio Fernandez <batsman.geo@yahoo.com>
+
+ * io.c (rb_io_sync): need not to check writable. [ruby-core:02674]
+
+Thu Mar 18 19:47:44 2004 WATANABE Hirofumi <eban@ruby-lang.org>
+
+ * instruby.rb, rubytest.rb: do not depend on srcdir.
+
+Thu Mar 18 18:50:06 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * mkconfig.rb: no longer embed srcdir and compile_dir into
+ rbconfig.rb.
+
+ * ext/extmk.rb, lib/mkmf.rb: obtain top_srcdir and topdir from library
+ paths.
+
+Thu Mar 18 17:46:35 2004 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
+
+ * lib/drb/drb.rb: do not undef :to_a.
+
+Thu Mar 18 16:22:38 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (proc_eq): avoid false positive by using scope and
+ dyna_vars. no longer use frame.uniq.
+
+ * eval.c (proc_arity): arity is now defined as number of
+ parameters that would not be ignored. i.e. Proc.new{}.arity
+ returns zero. update test suites too.
+
+Thu Mar 18 15:27:25 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c: remove specialized version of rb_Array(). use simple
+ one defined in object.c.
+
+ * object.c (Init_Object): remove Kernel#to_a.
+
+ * enum.c (enum_zip): use "to_a" instead of "to_ary".
+
+Wed Mar 17 00:22:03 2004 Kazuo Saito <ksaito@uranus.dti.ne.jp>
+
+ * oniguruma.h: imported Oniguruma 2.2.5.
+ * regparse.c: ditto.
+
+Tue Mar 16 11:14:17 2004 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * dir.c (fnmatch_helper): File.fnmatch('\.', '.') should return true.
+ (Rev1.112 lost compatiblity)
+
+ * dir.c (fnmatch_helper): File.fnmatch('\/', '/', File::FNM_PATHNAME)
+ should return true. (Rev1.112 lost compatiblity)
+
+ * dir.c (fnmatch): File.fnmatch('**/.boo', '.foo/.boo',
+ File::FNM_PATHNAME) should return false because of leading period.
+
+Mon Mar 15 17:01:07 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * error.c (exc_initialize): calling 'to_str' each time just for
+ type checking is too heavy. [ruby-core:02661]
+
+Mon Mar 15 10:14:51 2004 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * ext/openssl/lib/openssl/ssl.rb (OpenSSL::SSL::SocketForwarder):
+ add do_not_reverse_lookup.
+
+Mon Mar 15 07:39:13 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (rb_yield_0): should not re-submit TAG_BREAK if this
+ yield is not break destination. [ruby-dev:23197]
+
+Sun Mar 14 22:07:38 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (rb_thread_raise): err at unstarted thread. (PR#1302)
+
+Sat Mar 13 14:56:32 2004 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
+
+ * test/drb/ut_drb.rb: use 'druby://localhost:0'. [ruby-dev:23078]
+
+ * test/drb/ut_eval.rb: ditto.
+
+ * test/drb/ut_large.rb: ditto.
+
+ * test/drb/ut_safe1.rb: ditto.
+
+ * test/drb/ut_drb_drbssl.rb: use 'drbssl://localhost:0'.
+
+Fri Mar 12 23:52:56 2004 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * dir.c (fnmatch): directory recursion '**/' can be used with
+ File::FNM_PATHNAME. [ruby-dev:22901]
+
+ * dir.c (fnmatch, fnmatch_helper): only '/' is accepted as path
+ separator even in DOSISH environment. [ruby-dev:22974]
+ [ruby-list:39337]
+
+ * dir.c (fnmatch_helper): faster '*' matching.
+
+Fri Mar 12 20:19:16 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (rb_cv_noreturn): default for platforms not support
+ prototypes.
+
+ * ruby.c (ruby_init_loadpath): buffer for path name should have
+ MAXPATHLEN.
+
+ * lib/mkmf.rb (configuration): include topdir and hdrdir in VPATH.
+
+ * lib/mkmf.rb (create_makefile): default dependency rule.
+
+Fri Mar 12 07:35:36 2004 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * lib/webrick/config.rb (WEBrick::Config::General): add
+ :DoNotReverseLookup.
+
+ * lib/webrick/server.rb (WEBrick::GenericServer#accept): call
+ do_not_reverse_lookup for each socket if :DoNotReverseLookup
+ is set. [ruby-code:02357]
+
+Wed Mar 10 22:26:25 2004 Minero Aoki <aamine@loveruby.net>
+
+ * lib/fileutils.rb (remove_dir): should handle symlink correctly.
+ This patch is contributed by Christian Loew. [ruby-talk:94635]
+
+Wed Mar 10 16:28:42 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (return_jump): set return value to the return
+ destination. separated from localjump_destination().
+
+ * eval.c (break_jump): break innermost loop (or thread or proc).
+
+ * eval.c (rb_yield_0): set exit_value for block break.
+
+Wed Mar 10 16:00:14 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * struct.c (rb_struct_s_def): Struct::new executes block with
+ generated struct class. [ruby-talk:02606]
+
+Wed Mar 10 15:58:43 2004 Ryan Davis <ryand-ruby@zenspider.com>
+
+ * eval.c (eval): Only print backtrace if generating the backtrace
+ doesn't generate an exception. [ruby-core:02621]
+
+Wed Mar 10 10:15:16 2004 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * ruby.c (opt_W_getter): get rid of warning.
+
+ * bcc32/Makefile.sub, win32/Makefile.sub, wince/Makefile.sub:
+ fixed dependency.
+
+Tue Mar 9 13:04:26 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * io.c (rb_io_ungetc): raise IOError instead of calling
+ rb_sys_fail(). [ruby-talk:23181]
+
+Tue Mar 9 10:03:40 2004 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * bcc32/Makefile.sub, win32/Makefile.sub, wince/Makefile.sub:
+ replaced regex.c entry with Oniguruma files.
+
+Tue Mar 9 01:09:46 2004 Kazuo Saito <ksaito@uranus.dti.ne.jp>
+
+ * Makefile.in: replaced regex.c entry with Oniguruma files.
+
+Mon Mar 8 23:16:07 2004 Minero Aoki <aamine@loveruby.net>
+
+ * lib/net/http.rb: HTTPHeader did not initialized correctly.
+
+ * lib/net/http.rb (connect): does same debug output.
+
+Mon Mar 8 21:38:18 2004 Minero Aoki <aamine@loveruby.net>
+
+ * lib/net/http.rb (add_header): remove warning. [ruby-dev:23170]
+
+Mon Mar 8 21:09:39 2004 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * dir.c (range): Cancel change for incomplete '['. More discussion
+ is needed.
+
+Mon Mar 8 19:35:13 2004 akira yamada <akira@arika.org>
+
+ * lib/uri/common.rb (URI::REGEXP::PATTERN::HOSTPORT): (?:#{PORT})
+ -> (?::#{PORT}). [ruby-dev:23170]
+
+Mon Mar 8 15:03:24 2004 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * dir.c (range): treat incomplete '[' as ordinary character (like
+ has_magic does). fix buffer overrun at incomplete escape like '[\'.
+
+Mon Mar 8 13:35:32 2004 WATANABE Hirofumi <eban@ruby-lang.org>
+
+ * regparse.c (parse_exp): need to separate initialization for bcc32.
+ [ruby-dev:23169]
+
+ * oniguruma.h (ONIG_EXTERN): check __GNUC__ instead of __CYGWIN__.
+
+Mon Mar 8 01:05:55 2004 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * lib/webrick/config.rb (WEBrick::Config::HTTP): rename :RequestHander
+ to :RequestCallback and add new option :ServerAlias.
+
+ * lib/webrick/httpserver.rb (WEBrick::HTTPServer#run): use
+ :RequestCallback and warn if :RequestHandler is in server's option.
+
+ * lib/webrick/httpserver.rb (WEBrick::HTTPServer#run): should print
+ error message for WEBrick::HTTPSataus::Error.
+
+ * lib/webrick/httpserver.rb (WEBrick::HTTPServer#lookup_server):
+ lookup for hostname from :ServerAlias if the req.host is not match
+ to :ServerName.
+
+ * lib/webrick/httpservlet.rb (WEBrick::HTTPServlet::CGIHandler#do_GET):
+ use $?.exitstatus and refine log message.
+
+Sun Mar 7 16:22:26 2004 WATANABE Hirofumi <eban@ruby-lang.org>
+
+ * Makefile.in (lex.c): use $? instead of $<.
+
+ * lib/pstore.rb (commit_new): use FileUtils.copy_stream for Cygwin.
+ [ruby-dev:23157]
+
+Sun Mar 7 05:34:42 2004 Minero Aoki <aamine@loveruby.net>
+
+ * lib/net/http.rb: HTTPHeader keeps its header fields as an array.
+
+ * lib/net/http.rb: new method HTTPHeader#add_header, get_fields.
+
+ * lib/net/http.rb: new method HTTPHeader#content_length=.
+
+ * lib/net/http.rb: new method HTTPHeader#content_type, main_type,
+ sub_type, type_params, content_type=, set_content_type.
+
+ * lib/net/http.rb (HTTPHeader#basic_encode): result of pack(m) may
+ contain multiple LFs.
+
+Sun Mar 7 03:11:00 2004 Minero Aoki <aamine@loveruby.net>
+
+ * lib/net/http.rb: new method Net::HTTPRequest#body(=).
+
+ * lib/net/http.rb: new method Net::HTTPRequest#body_stream(=).
+
+Sun Mar 7 02:06:07 2004 Minero Aoki <aamine@loveruby.net>
+
+ * lib/net/http.rb: spin off https code again.
+
+ * lib/net/https.rb: new file.
+
+ * ext/openssl/lib/net/https.rb: removed. moved to net/https with
+ slight modifications.
+
+ * ext/openssl/lib/net/protocols.rb: removed. merged with net/http.
+
+ * lib/net/protocol.rb: new class BufferedIO.
+
+ * lib/net/protocol.rb: InternetMessageIO < BufferedIO.
+
+ * lib/net/protocol.rb: BufferedIO.new takes an IO.
+
+ * lib/net/smtp.rb: follow InternetMessageIO's change.
+
+ * lib/net/pop.rb: ditto.
+
+Sun Mar 7 00:55:03 2004 Minero Aoki <aamine@loveruby.net>
+
+ * lib/net/protocol.rb: remove method: InternetMessageIO#address,
+ port, ip_address, read_timeout(=), socket.
+
+ * lib/net/protocol.rb: simplify code.
+
+ * lib/net/protocol.rb: apply latest coding style.
+
+Sat Mar 6 15:15:05 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/strscan/depend: depends on re.h and regex.h.
+
+ * ext/strscan/strscan.c: no version check needed.
+
+ * ext/strscan/strscan.c (strscan_init_copy): struct re_registers must
+ not be bitwise copied.
+
+Sat Mar 6 11:14:33 2004 David Black <dblack@wobblini.net>
+
+ * lib/scanf.rb: refixed the previous fix in IO#block_scanf
+
+Sat Mar 6 10:49:40 2004 David Black <dblack@wobblini.net>
+
+ * lib/scanf.rb: fixed a logic glitch in IO#block_scanf
+
+Sat Mar 6 02:00:19 2004 Minero Aoki <aamine@loveruby.net>
+
+ * lib/net/http.rb: net/https is merged.
+
+ * ext/openssl/lib/net/https.rb: ditto.
+
+Sat Mar 6 00:39:21 2004 Kazuo Saito <ksaito@uranus.dti.ne.jp>
+
+ * oniggnu.h: imported from Oniguruma library.
+ * oniguruma.h: ditto.
+ * regcomp.c: ditto.
+ * regenc.c: ditto.
+ * regenc.h: ditto.
+ * regerror.c: ditto.
+ * regex.c: ditto.
+ * regexec.c: ditto.
+ * reggnu.c: ditto.
+ * regint.h: ditto.
+ * regparse.c: ditto.
+ * regparse.h: ditto.
+ * ascii.c: ditto.
+ * euc_jp.c: ditto.
+ * sjis.c: ditto.
+ * utf8.c: ditto.
+
+ * MANIFEST: added Oniguruma files listed above.
+
+ * LEGAL: added Oniguruma license.
+
+ * regex.h: now includes oniggnu.h.
+
+ * re.c: applied Oniguruma patch.
+
+Fri Mar 5 23:13:08 2004 Minero Aoki <aamine@loveruby.net>
+
+ * lib/net/http.rb: support WebDAV methods, PROPPATCH, LOCK,
+ UNLOCK, OPTIONS, PROPFIND, DELETE, MOVE, COPY, MKCOL.
+ This patch is contributed by Tatsuki Sugiura.
+
+Fri Mar 5 20:58:37 2004 Minero Aoki <aamine@loveruby.net>
+
+ * lib/net/http.rb: Net::HTTPResponse#response is obsolete.
+ [ruby-core:02592]
+
+ * lib/net/http.rb: Net::HTTPResponse#header is obsolete.
+
+ * lib/net/http.rb: Net::HTTPResponse#read_header is obsolete.
+
+Fri Mar 5 20:10:57 2004 Minero Aoki <aamine@loveruby.net>
+
+ * ext/strscan/strscan.c: new method StringScanner#initialize_copy
+ to allow #dup and #clone.
+
+ * test/strscan/test_strscan.rb: test StringScanner#dup.
+
+Fri Mar 5 19:42:09 2004 Minero Aoki <aamine@loveruby.net>
+
+ * lib/net/http.rb (HTTPResponse#to_ary): should return an object
+ which does not respond to #to_ary. It causes infinite loop in
+ puts. [ruby-core:02578]
+
+Fri Mar 5 00:51:35 2004 Dave Thomas <dave@pragprog.com>
+
+ * lib/test/unit.rb: Move RDoc documentation so that you can
+ now say 'ri Test::Unit'
+
+Thu Mar 4 22:31:40 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * Makefile.in: miniruby is not needed for cross compile.
+
+ * configure.in (PREP): miniruby for native compile.
+
+Thu Mar 4 11:46:32 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/drb/extservm.rb (DRb::ExtServManager#invoke_service_command):
+ detach server processes to get rid of zombies.
+
+Thu Mar 4 10:41:25 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ruby.h (T_MASK): save 1 bit in flags bits by shifting T_xxx
+ values.
+
+Thu Mar 4 08:08:36 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/syck/rubyext.c: get rid of warnings.
+
+ * lib/rss/taxonomy.rb: ditto.
+
+ * lib/rdoc/ri/ri_formatter.rb: ditto.
+
+ * test/ruby/test_assignment.rb: ditto.
+
+Thu Mar 4 01:17:28 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/rdoc/ri/ri_display.rb (DefaultDisplay::page): wait until the
+ pager terminates.
+
+Wed Mar 3 13:10:56 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (method_hash): new method. [ruby-talk:93968]
+
+ * eval.c (proc_eq): do not compare dyna_vars.
+
+ * eval.c (proc_hash): new method.
+
+ * eval.c (rb_yield_0): protect break/return from within orphan (or
+ lambda) Proc object.
+
+Wed Mar 3 09:52:05 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/mkmf.rb ($topdir): use compile_dir only when not installed yet.
+ [ruby-talk:94098]
+
+Wed Mar 3 01:18:52 2004 Kouhei Sutou <kou@cozmixng.org>
+
+ * lib/rss/converter.rb: handled Uconv::Error.
+
+ * lib/rss/dublincore.rb: DublincoreModel -> DublinCoreModel
+
+Wed Mar 3 00:59:30 2004 David Black <dblack@wobblini.net>
+
+ * lib/scanf.rb: soak_up_spaces only ungetc's non-space last
+ character
+
+ * lib/scanf.rb: IO#block_scanf now returns partial last iteration
+ array if format string matches partly
+
+Tue Mar 2 16:30:21 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * io.c (pipe_open): erred program name should be reported by
+ exceptions, instead of the first argument.
+
+ * process.c (rb_spawn): ditto.
+
+ * process.c (proc_spawn_v): use first argument as program name.
+
+ * win32/win32.c (rb_w32_aspawn): ditto.
+
+ * win32/win32.c (CreateChild): search executable file if no program
+ name given.
+
+ * lib/drb/extservm.rb (invoke_service_command): use Process.spawn.
+ [ruby-dev:23103]
+
+ * lib/rdoc/ri/ri_display.rb (setup_pager): use IO.popen.
+ [ruby-dev:23086], [ruby-dev:23103]
+
+ * lib/rdoc/diagram.rb (convert_to_png): ditto.
+
+ * lib/rdoc/generators/chm_generator.rb (compile_project): ditto.
+
+Tue Mar 2 12:24:03 2004 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/Makefile.sub, wince/Makefile.sub (config.h): shouldn't check
+ defined? NORETURN. [ruby-dev:23100]
+
+Tue Mar 2 11:28:40 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * test/ruby/test_iterator.rb (test_ljump): cannot use
+ assert_nothing_raised due to passing block.
+
+Tue Mar 2 06:23:14 2004 David Black <dblack@wobblini.net>
+
+ * lib/scanf.rb: fixed Kernel#scanf to propagate code block
+
+Mon Mar 1 23:25:40 2004 David Black <dblack@wobblini.net>
+
+ * lib/scanf.rb: Partial fix so STDIN#scanf works with new
+ STDIN#pos behavior
+
+Mon Mar 1 19:42:05 2004 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * bcc32/setup.mak: configure's default is "--enable-install-doc"
+
+ * win32/setup.mak: ditto.
+
+Mon Mar 1 12:24:10 2004 Dave Thomas <dave@pragprog.com>
+
+ * lib/rdoc/parsers/parse_rb.rb (RDoc::RubyParser::parse_alias):
+ Allow aliases to have parentheses
+
+Sun Feb 29 23:14:53 2004 Dave Thomas <dave@pragprog.com>
+
+ * lib/rdoc/parsers/parse_rb.rb (RDoc::RubyParser::parse_class):
+ Handle :nodoc: on singleton classes.
+
+Sat Feb 28 21:50:20 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * bcc32/Makefile.sub, bcc32/README.bcc32, bcc32/configure.bat,
+ bcc32/setup.mak: new configure scheme. use ``configure --prefix=dir''
+ instead of ``make DESTDIR=dir install''.
+ --with-static-linked-ext support on bccwin32. [ruby-dev:23034]
+
+Sat Feb 28 21:50:20 2004 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * bcc32/setup.mak: "configure --disable-install-doc" is now working.
+
+ * win32/setup.mak: ditto.
+
+Sat Feb 28 15:09:49 2004 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * bcc32/configure.bat: append missing label ":exit".
+
+ * bcc32/configure.bat: fix typo.
+
+Sat Feb 28 10:31:03 2004 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
+
+ * MANIFEST: add test_erb.rb
+
+ * lib/erb.rb, test/erb/test_erb.rb: don't forget filename,
+ if both filename and safe_level given. [ruby-dev:23050]
+
+Sat Feb 28 01:08:40 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * parse.y (yylex): should not allow symbol for invalid global
+ variable (e.g. `:$-)`). [ruby-core:02518]
+
+Fri Feb 27 20:37:09 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (proc_invoke): no orphan block check is needed when pcall
+ is true.
+
+ * eval.c (localjump_destination): update localjump condition.
+
+Fri Feb 27 02:10:49 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (localjump_destination): lambda should not interfere
+ return from the yielded block.
+
+Fri Feb 27 00:53:49 2004 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
+
+ * lib/drb/drb.rb, test/drb/drbtest.rb: require drb/eq.rb by default
+
+Thu Feb 26 12:15:02 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * win32/win32.c (make_cmdvector): adjust successive double-quote
+ handling.
+
+Thu Feb 26 09:42:56 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * hash.c (delete_if_i): use st_delete_safe() (via
+ rb_hash_delete()) instead of returning ST_DELETE.
+
+Thu Feb 26 02:35:10 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * process.c (rb_f_exec): get rid of SEGV when exec failed for command
+ in single string.
+
+Wed Feb 25 21:17:33 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * gc.c (obj_free), io.c (rb_io_fptr_finalize), rubyio.h (OpenFile):
+ sharing OpenFile.
+
+ * io.c (rb_io_initialize): accept IO instance. [ruby-dev:22195]
+
+Wed Feb 25 21:16:10 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * instruby.rb (with_destdir): should return the given argument if no
+ DESTDIR is given.
+
+ * instruby.rb: use path name expansion of cmd.exe.
+
+Wed Feb 25 20:44:45 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/cgi-lib.rb, lib/getopts.rb, lib/importenv.rb, lib/parsearg.rb:
+ warn with caller position.
+
+ * test/rss/test_content.rb, test/rss/test_dublincore.rb,
+ test/rss/test_syndication.rb, test/rss/test_trackback.rb: use cgi
+ instead of cgi-lib.
+
+Tue Feb 24 18:42:03 2004 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * dir.c (glob_helper): '**/' should not match leading period
+ unless File::FNM_DOTMATCH is set. (like '*/') [ruby-dev:23014]
+
+Tue Feb 24 18:03:14 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * test/ruby/test_file.rb (test_fnmatch): test for dir.c:1.108.
+
+Tue Feb 24 17:07:17 2004 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * dir.c (fnmatch): File.fnmatch with File::FNM_PATHNAME was broken
+ for the pattern including '*' followed by '/'.
+
+Tue Feb 24 13:22:21 2004 Dave Thomas <dave@pragprog.com>
+
+ * lib/rdoc/rdoc.rb (RDoc::RDoc::normalized_file_list): Attempt to get better
+ heuristics on which files to include and exclude. Now only include
+ non-standard files if they are explicitly named in ARGV.
+
+Tue Feb 24 07:23:30 2004 Dave Thomas <dave@pragprog.com>
+
+ * lib/rdoc/generators/html_generator.rb: Deal with :stopdoc: when
+ choosing a default main page to display (ie. don't select a page
+ if we don't have documentation for it).
+
+Tue Feb 24 06:40:14 2004 Dave Thomas <dave@pragprog.com>
+
+ * lib/rdoc/parsers/parse_rb.rb (RubyLex::identify_identifier): Handle
+ class variables in code listings
+
+Tue Feb 24 06:32:27 2004 Dave Thomas <dave@pragprog.com>
+
+ * lib/rdoc/parsers/parse_c.rb (RDoc::C_Parser::do_aliases): Handle
+ aliases in C files.
+
+Tue Feb 24 06:16:22 2004 Dave Thomas <dave@pragprog.com>
+
+ * lib/rdoc/rdoc.rb (RDoc::RDoc::document): Now create op dir _before_
+ parsing files.
+
+Tue Feb 24 06:08:47 2004 Dave Thomas <dave@pragprog.com>
+
+ * lib/rdoc/parsers/parse_rb.rb (RDoc::RubyParser::parse_constant):
+ Start collecting text of constant values earlier: was missing
+ values in output if there was no space after '='
+
+Tue Feb 24 06:08:25 2004 Dave Thomas <dave@pragprog.com>
+
+ * lib/rdoc/generators/html_generator.rb: Escape contant values.
+
+Tue Feb 24 03:45:06 2004 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * ext/openssl/ossl_config.c (ossl_config_each): add new method
+ OpenSSL::Config#each. it iterates with section name, field name
+ and value.
+
+ * ext/openssl/ossl_config.c (Init_ossl_config): include Enumerable.
+
+Mon Feb 23 09:09:44 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * instruby.rb (parse_args): use optparse instead of getopts.
+
+ * instruby.rb (DOSISH): embedded path in batch files should not be
+ prefixed by DESTDIR. [ruby-core:02186]
+
+Sun Feb 22 14:58:04 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/extmk.rb: $extstatic is Array or nil now. [ruby-talk:93383]
+
+ * Makefile.in, bcc32/Makefile.sub, win32/Makefile.sub: terminate options.
+
+ * lib/mkmf.rb (init_mkmf): $INCFLAGS also should be lazy-evaluated.
+
+Sun Feb 22 13:05:37 2004 akira yamada <akira@ruby-lang.org>
+
+ * lib/uri/mailto.rb (URI::MailTo::to_s): should include fragment.
+
+Sun Feb 22 12:58:35 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/extmk.rb: use optparse instead of getopts.
+
+ * Makefile.in, bcc32/Makefile.sub, win32/Makefile.sub: ditto.
+
+Sun Feb 22 09:51:00 2004 Gavin Sinclair <gsinclair@soyabean.com.au>
+
+ * re.c: corrected documentation format (rb_reg_initialize_m)
+
+Sat Feb 21 22:41:00 2004 Gavin Sinclair <gsinclair@soyabean.com.au>
+
+ * ext/zlib/zlib.c: documented, but needs more effort.
+
+Sat Feb 21 14:33:20 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/extmk.rb: prefer relative path. [ruby-talk:93037]
+
+Sat Feb 21 11:12:08 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * missing/os2.c, missing/x68.c: typo fix. pointed out by greentea.
+
+Fri Feb 20 19:11:20 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/ostruct.rb (OpenStruct#initialize_copy): should not share
+ members. [ruby-dev:22966]
+
+Fri Feb 20 18:59:47 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/irb/init.rb (IRB::IRB.parse_opts): add -I option to
+ irb. [ruby-dev:39243]
+
+Fri Feb 20 12:55:27 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * io.c (pipe_open): fix typo.
+
+ * win32/win32.c (CreateChild): first argument to CreateProcess() must
+ have path, not just basename.
+
+Thu Feb 19 23:24:16 2004 Dave Thomas <dave@pragprog.com>
+
+ * lib/rdoc/generators/html_generator.rb (Generators::HtmlClass::build_attribute_list):
+ Support visibility modifiers for attributes
+
+Thu Feb 19 22:39:00 2004 Gavin Sinclair <gsinclair@soyabean.com.au>
+
+ * lib/ostruct.rb: documented
+
+Thu Feb 19 22:39:04 2004 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * test/rinda/test_rinda.rb: DRb.start_service only once in testsuites.
+ DRb.start_service could handle this.
+
+Thu Feb 19 22:24:04 2004 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * lib/soap/mapping/rubytypeFactory.rb: should not dump singleton class.
+ [ruby-dev:22588]
+ c = class << Object.new; class C; self; end; end; SOAPMarshal.dump(c)
+
+Thu Feb 19 18:08:18 2004 Gavin Sinclair <gsinclair@soyabean.com.au>
+
+ * ext/strscan/strscan.c: improved documentation
+
+Thu Feb 19 18:08:18 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * win32/win32.c, win32/win32.h: fixed prototypes.
+
+ * win32/win32.c (wait): same as waitpid() with -1.
+
+Thu Feb 19 02:34:28 2004 Dave Thomas <dave@pragprog.com>
+
+ * lib/rdoc/markup/simple_markup/preprocess.rb (SM::PreProcess::include_file):
+ Only strip comment markers if all lines start with comments.
+
+Thu Feb 19 03:05:49 2004 Minero Aoki <aamine@loveruby.net>
+
+ * ext/strscan/strscan.c: StringScanner#restsize is obsolete;
+ use #rest_size instead.
+
+ * ext/strscan/strscan.c: StringScanner#matchedsize is obsolete;
+ use #matched_size instead.
+
+Thu Feb 19 02:42:19 2004 Minero Aoki <aamine@loveruby.net>
+
+ * ext/strscan/strscan.c: don't use rb_eval_string, it defines
+ classes under the module when required in module clauses.
+ [ruby-dev:22951]
+
+Thu Feb 19 02:37:28 2004 Minero Aoki <aamine@loveruby.net>
+
+ * ext/strscan/strscan.c: merge documentation from 1.8 branch.
+ Thanks Gavin Sinclair.
+
+Thu Feb 19 00:20:00 2004 Gavin Sinclair <gsinclair@soyabean.com.au>
+
+ * lib/cgi-lib.rb: deprecated after 1.8.1
+
+ * lib/getopts.rb: ditto
+
+ * lib/importenv.rb: ditto
+
+ * lib/parsearg.rb: ditto
+
+Thu Feb 19 00:11:05 2004 Dave Thomas <dave@pragprog.com>
+
+ * lib/rdoc/markup/simple_markup/preprocess.rb (SM::PreProcess::handle):
+ Strip extraneous space from filenames in :include:
+
+Wed Feb 18 22:53:41 2004 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
+
+ * lib/drb/unix.rb: remove O_NONBLOCk, thanks \ay
+
+Wed Feb 18 22:42:19 2004 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
+
+ * test/rinda/test_rinda.rb: improt test_rinda.rb
+
+Wed Feb 18 22:03:11 2004 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * test/*: should not depend on $KCODE.
+
+Wed Feb 18 18:07:09 2004 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * test/ruby/test_sprintf.rb: added tests.
+
+Wed Feb 18 17:18:01 2004 WATANABE Hirofumi <eban@ruby-lang.org>
+
+ * ext/win32ole/win32ole.c: need to include <olectl.h> on Cygwin.
+
+Wed Feb 18 10:40:38 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * sprintf.c (rb_f_sprintf): sign bit extension should not be done
+ if FPLUS flag is specified. [ruby-list:39224]
+
+ * sprintf.c (rb_f_sprintf): do not prepend dots for negative
+ numbers if FZERO is specified. [ruby-dev:39218]
+
+Wed Feb 18 10:23:34 2004 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * sprintf.c (rb_f_sprintf): clean up.
+
+Tue Feb 17 23:40:34 2004 Guy Decoux <ts@moulon.inra.fr>
+
+ * sprintf.c (rb_f_sprintf): preserve original val for
+ format_integer. [ruby-talk:92975]
+
+Tue Feb 17 23:28:45 2004 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * test/soap/marshal/test_marshal.rb, test/ruby/test_marshal.rb: do $:
+ trick to share the testcase test/ruby/marshaltestlib.rb.
+
+Tue Feb 17 23:13:23 2004 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * test/ruby/marshaltestlib.rb: common marshal testcase added.
+
+ * test/ruby/test_marshal.rb: use above testsuite.
+
+ * test/soap/marshal/test_marshal.rb: ditto.
+
+ * test/soap/marshal/cmarshal.rb: removed (not used).
+
+Tue Feb 17 19:34:26 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/extmk.rb (extmake): $extout_prefix doesn't vary for libraries.
+
+ * ext/extmk.rb (extmake): remove compile directory if empty.
+
+ * ext/extmk.rb (parse_args) lib/mkmf.rb (create_makefile): move
+ initialization of $extout_prefix from lib/mkmf.rb. [ruby-dev:22928]
+
+ * ext/extmk.rb: clear ext and extout directory when cleaning.
+
+ * lib/mkmf.rb (CLEANLIBS): should be under $(arch) directory.
+
+Tue Feb 17 18:02:10 2004 Minero Aoki <aamine@loveruby.net>
+
+ * ext/strscan/strscan.c: ScanError may be (wrongly) garbage
+ collected. (thanks Gavin Sinclair)
+
+ * ext/strscan/strscan.c: move ::ScanError to StringScanner::Error.
+ ::ScanError is also defined for backward compatibility.
+
+ * ext/strscan/strscan.c: #peep is obsolete, use #peek.
+
+ * ext/strscan/strscan.c: #empty? is obsolete, use #eos?.
+
+ * ext/strscan/strscan.c: #clear is obsolete, use #terminate.
+
+ * ext/strscan/strscan.c: #getbyte is obsolete, use #get_byte.
+
+Tue Feb 17 12:12:47 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/extmk.rb (parse_args): delay expanding $(extout) until invoking
+ make.
+
+ * lib/mkmf.rb (CLEANLIBS): should remove files have specific
+ extensions.
+
+Tue Feb 17 11:33:30 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/rss/rexmlparser.rb: REXML version may be 4 digits.
+
+Tue Feb 17 10:45:59 2004 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * ext/syck/rubyext.c (syck_emitter_end_object): takes only one arg.
+
+Tue Feb 17 07:48:21 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/rexml/encodings/SHIFT_JIS: wrong library name.
+
+Tue Feb 17 01:35:28 2004 Tanaka Akira <akr@m17n.org>
+
+ * eval.c (rb_eval): care that another thread replace NODE_DREGX_ONCE
+ to NODE_LIT. [ruby-dev:22920]
+
+Tue Feb 17 01:20:57 2004 Minero Aoki <aamine@loveruby.net>
+
+ * lib/fileutils.rb: new module FileUtils::DryRun.
+
+Mon Feb 16 23:28:14 2004 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * lib/csv.rb: document reduction. [ruby-core:02429]
+
+ * test/yaml/test_yaml.rb: added 0..1 test with "0".."1" on display.
+ it should be defined that the specification about what kind of Range
+ is supported in ruby's custom type in YAML.
+
+Mon Feb 16 22:22:00 2004 Gavin Sinclair <gsinclair@soyabean.com.au>
+
+ * lib/generator.rb: corrected doc format
+
+ * lib/rinda/rinda.rb: added documentation (from Hugh Sasse)
+
+ * lib/rinda/tuplespace.rb: ditto
+
+ [Note: rinda files actually committed Wed Feb 18 07:27:00 2004]
+
+Mon Feb 16 20:28:52 2004 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * bcc32/Makefile.sub: show more warnings. (refering to mingw)
+
+ * bcc32/setup.mak: ditto.
+
+Mon Feb 16 18:35:58 2004 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/Makefile.sub (config.status): should create *.pdb on ext/,
+ not .ext/.
+
+ * win32/Makefile.sub (config.status): convert the name of import
+ library.
+
+ * lib/mkmf.rb (create_makefile): now don't need to remove
+ $(TARGET).lib.
+
+Mon Feb 16 15:45:22 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in: check functions, fork spawnv.
+
+ * io.c (rb_io_s_popen): accept argv not only single command line.
+
+ * process.c (rb_proc_exec_n): export.
+
+ * process.c (rb_check_argv): check if arguments are safe to invoke.
+
+ * process.c (rb_fork): retry to fork.
+
+ * process.c (rb_spawn): spawn child process asynchronously.
+
+ * process.c (rb_f_system): raise an exception if the command could not
+ execute.
+
+ * win32/win32.c (rb_w32_argv_size): count necessary size for joined
+ arguments.
+
+ * win32/win32.c (rb_w32_join_argv): join arguments with quoting.
+
+ * win32/win32.c (rb_w32_pipe_exec, rb_w32_spawn, rb_w32_aspawn):
+ accept program name adding to command line.
+
+Mon Feb 16 15:18:33 2004 Minero Aoki <aamine@loveruby.net>
+
+ * lib/racc/parser.rb: add note for Racc full package.
+
+Mon Feb 16 15:13:01 2004 Minero Aoki <aamine@loveruby.net>
+
+ * ext/racc/cparse/README: new file.
+
+ * ext/racc/cparse/MANIFEST: add README.
+
+Mon Feb 16 12:29:10 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/iconv/iconv.c (iconv_s_list): new method Iconv.list
+ (libiconv only).
+
+Mon Feb 16 10:29:52 2004 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * dir.c (CompareImpl): File.fnmatch and Dir.glob get better performance
+ in Win32. This is achived by calling downcase() for single-byte
+ characters. (CharLower() is slower than downcase())
+
+Mon Feb 16 02:14:29 2004 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * bcc32/Makefile.sub: should warn suspicious pointer conversion.
+
+ * bcc32/setup.mak: ditto.
+
+Sun Feb 15 20:56:22 2004 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * dir.c (push_braces): remove wrong const. [ruby-dev:22891]
+
+Sun Feb 15 20:41:15 2004 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * sample/soap/calc/httpd.rb, sample/soap/exchange/httpd.rb,
+ sample/soap/sampleStruct/httpd.rb, sample/wsdl/googleSearch/httpd.rb:
+ use soap/property instead of getopts for configuring DocumentRoot
+ and port# of httpd. see samplehttpd.conf below.
+
+ * sample/soap/calc/samplehttpd.conf,
+ sample/soap/exchange/samplehttpd.conf,
+ sample/soap/sampleStruct/samplehttpd.conf,
+ sample/wsdl/googleSearch/samplehttpd.conf: added.
+
+Sun Feb 15 19:13:33 2004 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
+
+ * lib/rinda/tuplespace.rb: read(tpl,0), raise RequestExpiredError
+ if not found.
+
+Sun Feb 15 15:48:57 2004 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+
+ * ext/win32ole/win32ole.c: add IDispatch wrapper in val2variant.
+ Thanks, arton.
+
+Sun Feb 15 15:23:29 2004 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * ruby.h, dir.c (rb_glob): add const.
+
+Sun Feb 15 01:46:05 2004 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * lib/mkmf.rb: absolute path of ruby is assigned to $(RUBY).
+ [ruby-dev:22870]
+
+Sat Feb 14 23:59:11 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * mkconfig.rb: use fileutils.rb instead of ftools.rb.
+
+ * bcc32/Makefile.sub, win32/Makefile.sub (config.h): define
+ STACK_GROW_DIRECTION.
+
+ * bcc32/Makefile.sub (config.h): add newer checks.
+
+ * wince/Makefile.sub (config.h): define NEED_IO_SEEK_BETWEEN_RW.
+
+Sat Feb 14 23:26:27 2004 WATANABE Hirofumi <eban@ruby-lang.org>
+
+ * lib/un.rb: use OptionParser instead of getopts.
+
+Sat Feb 14 11:28:14 2004 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
+
+ * sample/drb/*: import lib/drb/sample
+
+Sat Feb 14 11:14:12 2004 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
+
+ * lib/drb/drb.rb: add pretty_print, thanks gotoken.
+
+Fri Feb 13 21:51:00 2004 Gavin Sinclair <gsinclair@soyabean.com.au>
+
+ * lib/fileutils.rb: slighly improved documentation (sync with 1.8)
+
+Fri Feb 13 19:57:01 2004 Kouhei Sutou <kou@cozmixng.org>
+
+ * test/rss/test_trackback.rb: added tests for TrackBack with RSS
+ 2.0.
+
+ * test/rss/common.rb: added methods make RSS 2.0.
+
+ * lib/rss/trackback.rb: TrackBack API is decided.
+
+ * lib/rss/rss.rb: RSS::VERSION 0.0.7 -> 0.0.8.
+
+ * lib/rss/parser.rb, lib/rss/rss.rb: replaced $DEBUG by RSS::DEBUG.
+
+ * lib/rss/2.0.rb: removed RSS 2.0 URI. Because RSS 2.0 doesn't
+ have URI.
+
+Fri Feb 13 14:41:00 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/tk.rb: en-bugged at last commit (Feb 11 23:24:22 2004)
+
+Fri Feb 13 12:26:37 2004 Minero Aoki <aamine@loveruby.net>
+
+ * test/fileutils/test_fileutils.rb: rescue SystemCallError instead
+ of EINVAL. File.link may raise EACCES on network file systems.
+
+Fri Feb 13 05:18:58 2004 Minero Aoki <aamine@loveruby.net>
+
+ * test/fileutils/test_fileutils.rb: File.link raises EINVAL on
+ Win9x. [ruby-dev:22713]
+
+Thu Feb 12 21:49:00 2004 Gavin Sinclair <gsinclair@soyabean.com.au>
+
+ * lib/ftools.rb: documented
+
+Thu Feb 12 21:19:00 2004 Gavin Sinclair <gsinclair@soyabean.com.au>
+
+ * lib/base64.rb: added and tidied documentation
+
+Thu Feb 12 20:45:01 2004 Minero Aoki <aamine@loveruby.net>
+
+ * lib/net/protocol.rb (WriteAdapater#puts): must append "\n" to
+ the string, don't prepend. (ruby-bugs:PR#1280)
+
+Thu Feb 12 20:31:43 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/mkmf.rb (create_tmpsrc): cpp32 of Borland C++ ignores #error
+ directives in DOS line-ending files at all.
+
+Thu Feb 12 15:23:20 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (rparen): ignore preceding newlines to right parentheses.
+ (ruby-bugs:PR#1221) [ruby-dev:22858]
+
+Thu Feb 12 14:17:43 2004 WATANABE Hirofumi <eban@ruby-lang.org>
+
+ * configure.in: set ac_cv_func_link to yes to enable link() on MinGW.
+ [ruby-dev:22241]
+
+Thu Feb 12 13:32:49 2004 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/win32.c (link): raise NotImplementedError on Win9X.
+ contributed by Tietew. [ruby-dev:22713]
+
+ * win32/win32.c, win32/win32.h (link): add const.
+
+Thu Feb 12 09:56:19 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/tk/lib/tk.rb (TkComm::tk_split_list): suppress a warning.
+
+Thu Feb 12 02:23:56 2004 Tanaka Akira <akr@m17n.org>
+
+ * lib/pathname.rb: use assert_raise instead of assert_raises.
+
+ * lib/pp.rb: ditto.
+
+ * lib/time.rb: ditto.
+
+ * lib/tsort.rb: ditto.
+ use TSortHash and TSortArray instead of Hash and Array in test.
+
+Wed Feb 11 23:24:22 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/tk.rb: properly treat a Tcl/Tk's string with escaping
+ special characters.
+
+Tue Feb 10 20:49:07 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (method_proc): return bound Proc object. [ruby-dev:22854]
+
+ * eval.c (rb_mod_define_method): bind method body itself for Method
+ object.
+
+ * node.h (NODE_DMETHOD): deprecated.
+
+ * object.c (rb_class_inherited_p): export.
+
+Tue Feb 10 16:43:50 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (umethod_bind): purge unused check. [ruby-dev:22850]
+
+Tue Feb 10 14:33:08 2004 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * string.c (rb_str_match): raise TypeError when both arguments are
+ strings. [ruby-dev:22851]
+
+ * string.c (rb_str_match2): removed.
+
+ * Makefile.in, bcc32/Makefile.sub, win32/Makefile.sub,
+ wince/Makefile.sub (string.c): now not depend on version.h.
+
+Mon Feb 9 17:46:07 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * Makefile.in, bcc32/Makefile.sub, win32/Makefile.sub, configure.in,
+ runruby.rb: run rdoc, test and so on with compiled extension
+ libraries. [ruby-dev:22688]
+
+ * ext/extmk.rb, lib/mkmf.rb: make extension libraries in separated
+ directory, similar to the actual directory structure.
+
+ * lib/fileutils.rb (FileUtils.copy_file): use the mode of the original
+ file to create new file.
+
+ * lib/rdoc/ri/ri_paths.rb (RI::Paths::SYSDIR): get rid of unexpected
+ influence by environment variable.
+
+ * bcc32/configure.bat, win32/configure.bat: add install-doc options.
+
+ * win32/win32.c, win32/win32.h (rb_w32_fstat): fix Borland C runtime
+ bug which returns wrong mode. [ruby-dev:22846]
+
+Mon Feb 9 16:30:12 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * process.c (detach_process_watcher): return the last status.
+ [ruby-dev:22841]
+
+Sun Feb 8 16:46:08 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/pp.rb (PP::PPMethods::object_address_group): suppress negative
+ sign for higher heap areas.
+
+Sun Feb 8 16:18:27 2004 akira yamada <akira@ruby-lang.org>
+
+ * test/yaml/test_yaml.rb (YAML_Unit_Tests::test_range_cycle):
+ added tests.
+
+Sun Feb 8 15:51:57 2004 akira yamada <akira@ruby-lang.org>
+
+ * test/ruby/test_file.rb (TestFile::test_fnmatch): added tests for
+ File.fnmatch. [ruby-dev:22815][ruby-dev:22819]
+
+Sun Feb 8 15:41:45 2004 akira yamada <akira@ruby-lang.org>
+
+ * test/yaml/test_yaml.rb (YAML_Unit_Tests::test_range_cycle):
+ added tests. [ruby-core:02306] [ruby-core:02311]
+
+Sun Feb 8 14:24:35 2004 Minero Aoki <aamine@loveruby.net>
+
+ * lib/net/http.rb (HTTP#request): should not overwrite Connection
+ header. (ruby-bugs:PR#1274)
+
+Sun Feb 8 10:11:21 2004 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * dir.c (glob_helper): Dir.glob('**/') did not work. [ruby-dev:22832]
+
+Sun Feb 8 00:29:26 2004 Hirokazu Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * dir.c (fnmatch): File.fnmatch('*?', 'a') should return true.
+ [ruby-dev:22815]
+
+ * dir.c (fnmatch): File.fnmatch('\[1\]' , '[1]') should return true.
+ [ruby-dev:22819]
+
+ * dir.c: Did some styles (no change to behavior)
+
+Sat Feb 7 19:56:11 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/irb/init.rb (IRB.rc_files): yield possible rc file names.
+
+ * lib/irb/input-method.rb (IRB::ReadlineInputMethod::initialize):
+ load and save history automatically. [ruby-core:02352]
+
+Fri Feb 6 22:48:16 2004 Dave Thomas <dave@pragprog.com>
+
+ * lib/rdoc/generators/html_generator.rb (gen_url): Support
+ https in RDoc hyperlinks
+
+Fri Feb 6 22:41:22 2004 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * lib/pp.rb (PPInspectTest#test_to_s_with_iv): rollback the previous
+ commit. [ruby-dev:22813]
+
+Fri Feb 6 22:22:50 2004 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * lib/pp.rb (PPInspectTest#test_to_s_with_iv): remove instance
+ variable which is defined in the test.
+
+Fri Feb 6 18:54:18 2004 akira yamada <akira@ruby-lang.org>
+
+ * test/ruby/test_proc.rb (TestProc::test_eq): added a
+ test. [ruby-dev:22599]
+
+Fri Feb 6 18:26:00 2004 akira yamada <akira@ruby-lang.org>
+
+ * test/ruby/test_proc.rb (TestProc::test_eq): added tests for
+ Proc#==. [ruby-dev:22592], [ruby-dev:22601]
+
+Fri Feb 6 10:12:06 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/socket/socket.c (bsock_do_not_reverse_lookup): control reverse
+ lookup for every instance. [ruby-core:02346]
+
+Fri Feb 6 09:15:11 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/irb/extend-command.rb: add irb_help command. [ruby-talk:91610]
+
+ * lib/irb/cmd/help.rb (IRB::ExtendCommand::Help): show RDoc.
+
+Fri Feb 6 00:48:37 2004 Tanaka Akira <akr@m17n.org>
+
+ * lib/prettyprint.rb (PrettyPrint#first?): obsoleted.
+
+Thu Feb 5 23:56:55 2004 Tanaka Akira <akr@m17n.org>
+
+ * lib/prettyprint.rb (PrettyPrint#seplist): added.
+
+ * lib/pp.rb (PPMethods#pp_object): use seplist.
+ (PPMethods#pp_hash): ditto.
+ (Array#pretty_print): ditto.
+ (Struct#pretty_print): ditto.
+ (MatchData#pretty_print): ditto.
+
+ * lib/set.rb (Set#pretty_print): use seplist.
+
+Wed Feb 4 22:39:46 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * file.c (rb_stat_mode): should not sign-expand, so backout.
+
+Wed Feb 4 02:12:06 2004 Tanaka Akira <akr@m17n.org>
+
+ * file.c (test_l): fix wrong method name in document.
+ (test_S): ditto.
+ (test_b): ditto.
+ (test_c): ditto.
+ (test_suid): ditto.
+ (test_sgid): ditto.
+ (test_sticky): ditto.
+
+Tue Feb 3 22:36:25 2004 Kouhei Sutou <kou@cozmixng.org>
+
+ * lib/rss/2.0.rb, lib/rss/content.rb, lib/rss/dublincore.rb,
+ lib/rss/rss.rb, lib/rss/syndication.rb: removed warnings.
+
+ * lib/rss/converter.rb: removed handling load error of nkf.
+
+ * test/rss/test_syndication.rb, test/rss/test_trackback.rb,
+ test/rss/test_dublincore.rb, test/rss/test_content.rb: replaced
+ 'require "rss/parser"' by 'require "rss/1.0"'.
+
+ * test/rss/test_parser.rb, test/rss/test_accessor.rb: removed
+ 'require "rss/parser"'.
+
+Tue Feb 3 11:23:17 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (reduce_nodes): remove tail returns. [ruby-talk:90934]
+
+Tue Feb 3 08:04:57 2004 Tanaka Akira <akr@m17n.org>
+
+ * lib/pp.rb (Struct#pretty_print_cycle): follow 1.8 style.
+
+Mon Feb 2 22:06:31 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (block_append, new_evstr, void_expr0): remove no longer used
+ labels.
+
+Mon Feb 2 18:45:50 2004 WATANABE Hirofumi <eban@ruby-lang.org>
+
+ * dln.c (dln_load): don't specify RTLD_GLOBAL on Interix,
+ because it caused SEGV when running runner.rb.
+
+Mon Feb 2 01:54:00 2004 Tanaka Akira <akr@m17n.org>
+
+ * lib/pp.rb (Struct#pretty_print): make it 1.8 style.
+ (Numeric#pretty_print, FalseClass#pretty_print)
+ (TrueClass#pretty_print, Module#pretty_print): fix pp for objects
+ with instance variables. [ruby-talk:91157]
+
+ * lib/open-uri.rb (URI::Generic#find_proxy): return nil on loopback
+ address.
+
+ * lib/resolv-replace.rb (BasicSocket#send): don't replace because
+ it has no hostname argument.
+ (IPSocket.getaddress): raise SocketError instead of
+ Resolv::ResolvError for errors.
+ (TCPSocket#initialize, UDPSocket#bind, UDPSocket#connect)
+ (SOCKSSocket#initialize): use IPSocket.getaddress instead of
+ Resolv.getaddress.
+ (UDPSocket#send): recognize 3 arguments form. try all addresses on
+ 4 arguments form.
+
+Sun Feb 1 23:00:00 2004 Shigeo Kobayashi <shigek@ruby-lang.org>
+
+ * ext/bigdecimal.c: Bug in BigDecimal("1e#{n}").add BigDecimal('.5'),n)
+ reported and fixed by Javier Goizueta.
+
+Sun Feb 1 18:21:00 2004 Gavin Sinclair <gsinclair@soyabean.com.au>
+
+ From ruby_1_8 branch:
+ * lib/test/unit.rb: rearranged documentation for RDoc's sake.
+ * lib/matrix.rb: improved documentation.
+ * lib/net/http.rb: slight documentation formatting improvement.
+
+Sun Feb 1 05:30:06 2004 Tanaka Akira <akr@m17n.org>
+
+ * lib/open-uri.rb (URI::Generic#find_proxy): warn HTTP_PROXY.
+ raise an errror on non-http proxy URI.
+ (OpenURI::Buffer#<<): make a tempfile binmode. [ruby-talk:90793]
+
+Sun Feb 1 00:57:41 2004 Kouhei Sutou <kou@cozmixng.org>
+
+ * lib/rss/parser.rb (RSS::Parser): added @@default_parser. Used
+ XML parser became selectable.
+ * test/rss/test_parser.rb: added tests for
+ RSS::Parser.default_parser.
+
+Sat Jan 31 02:28:15 2004 WATANABE Hirofumi <eban@ruby-lang.org>
+
+ * configure.in (RPATHFLAG): set to -Wl,-R like NetBSD on Interix.
+
+Sat Jan 31 01:09:41 2004 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * lib/logger.rb: leading 0 padding of timestamp usec part.
+
+Fri Jan 30 18:53:23 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * re.c (KR_REHASH): wrong hash value on sizeof(long) > sizeof(int).
+
+Thu Jan 29 23:11:57 2004 WATANABE Hirofumi <eban@ruby-lang.org>
+
+ * configure.in (DLEXT2): removed. Ruby does not treat
+ ".dll" as a extension library anymore.
+
+ * bcc32/Makefile.sub, win32/Makefile.sub, wince/Makefile.sub (DLEXT2):
+ ditto.
+
+ * util.c (mblen): fix overrun. [ruby-dev:22672]
+
+Thu Jan 29 22:41:53 2004 Dave Thomas <dave@pragprog.com>
+
+ * lib/rdoc/generators/html_generator.rb: Allow 'link:' in Tidylinks.
+ THis means you can write "see f1[link:files/f1_rb.html]".
+
+Thu Jan 29 22:24:47 2004 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * sample/openssl/gen_csr.rb: follow OpenSSL::X509::Name change.
+ ASN.1 type of subject DN elements were wrong.
+
+Thu Jan 29 22:19:51 2004 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * test/*: remove $: trick. [ruby-dev:22763] use test/runner.rb to
+ run test.
+
+Thu Jan 29 19:28:16 2004 Minero Aoki <aamine@loveruby.net>
+
+ * lib/net/http.rb (Request#initialize): reject only when a path is
+ empty. [ruby-dev:22771]
+
+Thu Jan 29 18:54:08 2004 H.Yamamoto <ocean@m2.ccsnet.ne.jp>
+
+ * dir.c (glob_helper): infinite loop bug in win32 code.
+ [ruby-dev:22770]
+
+Thu Jan 29 17:03:49 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * dir.c: merge tuning from H.Yamamoto <ocean@m2.ccsnet.ne.jp>.
+ [ruby-dev:22761]
+
+Thu Jan 29 11:32:14 2004 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * test/rss/test_*: do $: trick while searching a module in the current
+ directory.
+
+ * test/xsd/test_xmlschemaparser.rb, test/wsdl/test_emptycomplextype.rb,
+ test/soap/helloworld/test_helloworld.rb,
+ test/soap/calc/{test_calc.rb,test_calc2.rb}: do File.expand_path
+ before using __FILE__.
+
+ * test/yaml/test_yaml.rb: assert_equals -> assert_equal.
+
+Thu Jan 29 01:56:02 2004 why the lucky stiff <why@ruby-lang.org>
+
+ * ext/syck/rubyext.c: usec round-tripping skew. [ruby-core:2305]
+
+ * lib/yaml/rubytypes.rb: character Range now round-trips. [ruby-core:2306]
+
+ * test/yaml/test_yaml.rb: add Time and Range tests.
+
+Thu Jan 29 00:00:46 2004 Kouhei Sutou <kou@cozmixng.org>
+
+ * lib/rss: rss/parser.rb is always required.
+
+Wed Jan 28 15:09:14 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * test/rss/*.rb: remove "test/" prefix.
+
+Wed Jan 28 13:07:02 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/iconv/extconf.rb: include iconv.h for libiconv. [ruby-dev:22715]
+
+Wed Jan 28 12:43:07 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/rss: rss library imported. [ruby-dev:22726]
+
+Wed Jan 28 04:29:41 2004 Eric Schwartz <emschwar@fc.hp.com>
+
+ * lib/cgi/session.rb: use LOCK_SH to read, and a few other
+ improvements. [ruby-core:02328]
+
+Tue Jan 27 15:00:14 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * misc/ruby-mode.el: better support for general delimited
+ strings. [ruby-dev:22695]
+
+Tue Jan 27 11:04:40 2004 FUKUMOTO Atsushi <fukumoto@nospam.imasy.or.jp>
+
+ * ext/socket/socket.c (s_recvfrom): sending length should be an
+ invariant while retrying on EAGAIN. [ruby-talk:89962]
+
+Tue Jan 27 10:31:28 2004 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * ext/win32ole/win32ole.c (set_argv): fix condition.
+
+Tue Jan 27 02:26:31 2004 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * lib/webrick/httputils.rb (WEBrick:HTTPUtils::parse_header):
+ refine regex for header-name.
+
+Mon Jan 26 22:53:04 2004 Dave Thomas <dave@pragprog.com>
+
+ * io.c: Remove documentation references to $defout.
+
+Mon Jan 26 14:41:46 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/weakref.rb (WeakRef::initialize): set up @__id before
+ calling "super".
+
+ * lib/delegate.rb (Delegator::initialize): preserve
+ singleton_method_added method [ruby-dev:22685]
+
+ * lib/delegate.rb (Delegator::initialize): use Kernel::raise
+ instead of mere raise. [ruby-dev:22681]
+
+Mon Jan 26 12:45:23 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tcltklib/tcltklib.c: define CONST84 when TCL_MAJOR_VERSION == 7
+
+Mon Jan 26 11:30:58 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/extmk.rb: Makefiles should depend on also rbconfig.rb.
+ (ruby-bugs:PR#1256)
+
+ * ext/win32ole/win32ole.c (set_argv): set real arguments to
+ WIN32OLE::ARGV. [ruby-list:39073]
+
+Sun Jan 25 18:25:26 2004 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * ext/openssl/ossl_x509name.c (ossl_x509name_add_entry): third
+ argument become optional.
+
+ * ext/openssl/ossl_x509name.c (ossl_x509name_initialize): ditto.
+
+ * ext/openssl/ossl_x509name.c (Init_x509name): emailAddress and
+ domainComponent should be IA5String.
+
+Sun Jan 25 01:45:38 2004 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * lib/webrick/httpserver.rb (WEBrick::HTTPServer#run): support
+ virtual host.
+
+ * lib/webrick/httpserver.rb (WEBrick::HTTPServer#virtual_host): add
+ new method to register virtual hosting server.
+
+ * lib/webrick/httpserver.rb (WEBrick::HTTPServer#lookup_server): add
+ new method to lookup virtual hosting server.
+
+Sat Jan 24 13:06:26 2004 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * ext/openssl/ossl_x509hame.c (ossl_x509name_initialize): change
+ second argument. it expected to be a Hash not an Integer.
+
+ * ext/openssl/ossl_x509name.c (ossl_x509name_add_entry): add new
+ function for OpenSSL::X509::Name#add_entry.
+
+ * ext/openssl/ossl_x509name.c (Init_ossl_x509name): add constants
+ OpenSSL::X509::Name::DEFAULT_OBJECT_TYPE and OBJECT_TYPE_TEMPLATE.
+
+ * ext/openssl/lib/openssl/x509.rb (OpenSSL::X509::Name#initialize):
+ second argument takes OBJECT_TYPE_TEMPLATE by default.
+
+Fri Jan 23 02:26:30 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * pack.c (num2i32): pack should not raise RangeError.
+ [ruby-dev:22654]
+
+ * pack.c (pack_pack): do not auto convert nil to zero.
+
+Thu Jan 22 22:54:53 2004 Shugo Maeda <shugo@ruby-lang.org>
+
+ * lib/net/imap.rb (BEG_REGEXP): allow 8-bit characters in quoted
+ strings for Novell GroupWise Internet Agent.
+
+ * lib/net/imap.rb (DATA_REGEXP): ditto.
+
+Thu Jan 22 18:35:49 2004 WATANABE Hirofumi <eban@ruby-lang.org>
+
+ * lib/e2mmap.rb (VERSION): remove unnecessary version checking.
+
+Thu Jan 22 16:21:02 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (string_content): reset lexical states at the beginning of
+ string contents. [ruby-list:39061]
+
+Thu Jan 22 08:08:50 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * parse.y (opt_rescue): use NODE_ERRINFO() instead of
+ NODE_GVAR("$!"), to avoid confusion from variable aliasing.
+ [ruby-talk:90074]
+
+ * version.c (Init_version): remove obsolete constants VERSION
+ etc. [ruby-dev:22643]
+
+Thu Jan 22 01:46:32 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * parse.y (newline_node): do not use NODE_NEWLINE node anymore,
+ use NEWLINE flag instead.
+
+Thu Jan 22 01:12:12 2004 Siena. <siena@faculty.chiba-u.jp>
+
+ * missing/os2.c (chdir, getcwd):
+ use _chdir2 and _getcwd2 supporting multiple drives in OS/2 with EMX.
+
+Thu Jan 22 00:33:52 2004 Siena. <siena@faculty.chiba-u.jp>
+
+ * configure.in: check availability of link(). [ruby-dev:22237]
+ * file.c (rb_file_s_link): raise an exception when link() is unavailable.
+ * missing/os2.c (link): removed. File#link isn't supported.
+ * bcc32/Makefile.sub: define HAVE_LINK to enable link(). [ruby-dev:22241]
+ * win32/Makefile.sub: ditto.
+
+Thu Jan 22 00:26:25 2004 Siena. <siena@faculty.chiba-u.jp>
+
+ * ChangeLog: typo: RUBY_MBCHAR_MAX was RUBY_MBCHAR_MAXSIZE.
+
+Thu Jan 22 00:12:51 2004 Siena. <siena@faculty.chiba-u.jp>
+
+ * defines.h: define RUBY_MBCHAR_MAX instead of MB_CUR_MAX.
+ * dir.c (Next, emx_mblen): use RUBY_MBCHAR_MAX for mblen().
+ * file.c (CharNext): ditto.
+ * ruby.c (translate_char): ditto.
+ * util.c (__crt0_glob_function): ditto.
+
+Thu Jan 22 00:10:01 2004 Dave Thomas <dave@pragprog.com>
+
+ * lib/base64.rb: :nodoc: the Deprecated module
+
+Wed Jan 21 23:52:39 2004 WATANABE Hirofumi <eban@ruby-lang.org>
+
+ * configure.in: Interix(SFU) support.
+
+Wed Jan 21 23:03:45 2004 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
+
+ * lib/drb/drb.rb: remove O_NONBLOCK, thanks \ay
+ * lib/drb/extserv.rb: typo
+
+Wed Jan 21 17:57:56 2004 Shugo Maeda <shugo@ruby-lang.org>
+
+ * lib/net/imap.rb (envelope): allow NIL.
+ * lib/net/imap.rb (body): ditto.
+ * lib/net/imap.rb (number): ditto.
+ * lib/net/imap.rb (ensure_nz_number): show a detailed error
+ message.
+
+Wed Jan 21 16:44:15 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/mkmf.rb (merge_libs): squeeze successive same libraries.
+ [ruby-dev:22652]
+
+Wed Jan 21 16:10:36 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/base64.rb: enclosed in a module. [ruby-core:02285]
+
+Wed Jan 21 16:01:26 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/digest/rmd160/extconf.rb: have_library appends found library.
+
+Wed Jan 21 11:36:00 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ext/socket/socket.c (sock_gethostbyname): returns host if
+ ai_canonname is NULL. (ruby-bugs PR#1243)
+
+ * parse.y (block_append): update nd_end for "real" head node.
+ [ruby-list:39058]
+
+Tue Jan 20 14:48:28 2004 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * ext/openssl/extconf.rb: should check <openssl/conf_api.h> instead
+ of OPENSSL_VERSION_NUMBER. [ruby-list:39056]
+
+Tue Jan 20 14:43:17 2004 Dave Thomas <dave@pragprog.com>
+
+ * lib/base64.rb: Add RDoc
+
+Tue Jan 20 14:25:51 2004 Dave Thomas <dave@pragprog.com>
+
+ * lib/abbrev.rb: Add RDoc
+
+Tue Jan 20 13:22:39 2004 Dave Thomas <dave@pragprog.com>
+
+ * lib/rdoc/generators/html_generator.rb: Document aliases at
+ top-most level.
+
+ * lib/English.rb: Document English.rb.
+
+Tue Jan 20 04:41:58 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * test/ruby/test_marshal.rb (MarshalTestLib::test_exception): test
+ for [ruby-dev:22604].
+
+ * test/ruby/test_marshal.rb (MarshalTestLibtest_singleton): test
+ for [ruby-dev:22588].
+
+Tue Jan 20 02:38:13 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * marshal.c (w_class): should not dump singleton class.
+ [ruby-dev:22631]
+
+Tue Jan 20 02:49:22 2004 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * ext/openssl/extconf.rb: add check for OpenSSL version.
+ [ruby-list:39054]
+
+Mon Jan 19 23:56:20 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * error.c (name_err_mesg_to_str): inverted condition for result of
+ inspection. [ruby-dev:22628]
+
+Mon Jan 19 22:24:28 2004 WATANABE Hirofumi <eban@ruby-lang.org>
+
+ * sample/exyacc.rb: escape '}' to avoid warning.
+
+ * lib/rdoc/parsers/parse_c.rb: escape '{' and '}' to avoid warnings.
+
+Mon Jan 19 21:28:06 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/digest/defs.h, win32/win3.c, win32/win32.h, file.c: remove
+ useless casts for Borland C.
+
+Mon Jan 19 17:39:38 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * error.c (NameError::message): internal use only.
+
+ * eval.c (rb_method_missing): use hidden constant.
+
+Mon Jan 19 16:30:53 2004 akira yamada <akira@ruby-lang.org>
+
+ * test/ruby/test_time.rb: added tests for [ruby-dev:22614] and
+ [ruby-dev:22617].
+
+Mon Jan 19 13:09:21 2004 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * ext/extmk.rb, win32/Makefile.sub, win32/configure.bat,
+ win32/setup.mak: --with-static-linked-ext support on mswin32.
+
+Mon Jan 19 06:49:07 2004 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * lib/date.rb: zone was wrong when it was behind UTC.
+ Thanks Mark J. Reed.
+
+ * lib/date/format.rb: %z is now always replaced by four digits
+ with a leading plus or minus sign.
+
+ * sample/cal.rb: added a class, anyway.
+
+Mon Jan 19 01:08:39 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * class.c, error.c, eval.c, intern.h, object.c, variable.c:
+ do not set path if it is a singleton class. [ruby-dev:22588]
+
+ * lib/cgi.rb (CGI::QueryExtension): give extended string, not a
+ delegater object.
+
+Sun Jan 18 23:59:44 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/iconv/charset_alias.rb: prefer us_EN locale encodings or
+ former. [ruby-dev:22609]
+
+ * ext/iconv/iconv.c (iconv_create): raise InvalidEncoding
+ exception when EINVAL.
+
+Sun Jan 18 23:16:34 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * class.c, error.c, file.c, io.c, numeric.c, object.c, re.c, struct.c,
+ time.c: marked init_copy functions nodoc.
+
+Sun Jan 18 20:47:35 2004 WATANABE Hirofumi <eban@ruby-lang.org>
+
+ * ruby.c: use translate_char() on Cygwin.
+
+Sun Jan 18 20:00:16 2004 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * lib/soap/wsdlDriver.rb, lib/wsdl/soap/operation.rb: add support of
+ "parts" attribute of soap:body element in WSDL.
+
+ * lib/wsdl/xmlSchema/schema.rb: friendly warning message for
+ simpleType element which is not supported for now.
+
+ * test/wsdl/soap/{soapbodyparts.wsdl,test_soapbodyparts.wsdl}: new
+ files.
+
+Sun Jan 18 16:46:48 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * time.c (time_overflow_p): should return results. [ruby-dev:22614]
+
+Sun Jan 18 12:07:24 2004 Siena. <siena@faculty.chiba-u.jp>
+
+ * test/ruby/test_time.rb: new test case to test Time#[+-].
+
+ * time.c (time_plus, time_minus): fix RangeError for a negative
+ argument in environments whose time_t is unsigned. [ruby-dev:22608]
+
+Sun Jan 18 02:33:26 2004 WATANABE Hirofumi <eban@ruby-lang.org>
+
+ * defines.h (_WIN32): undef _WIN32 on Cygwin before defining DOSISH.
+
+Sun Jan 18 00:23:55 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * marshal.c (class2path): check anonymous class/module before
+ checking referable, and allow singleton classes.
+
+Sat Jan 17 23:58:51 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * error.c (NameError::Message): new class for lazy evaluation of
+ message to ensure replaced before marshalling. [ruby-dev:22604]
+
+ * eval.c (rb_method_missing): use NameError::Message.
+
+Sat Jan 17 21:49:50 2004 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * lib/time.rb (test_rfc2822, test_rfc3339, test_encode_xmlschema):
+ should not expect that all platforms handle negative time_t value.
+
+Fri Jan 16 23:53:09 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (proc_eq): compare also arguments and environment
+ (including local variables). [ruby-dev:22590]
+
+Fri Jan 16 14:33:35 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * marshal.c (class2path): get class path and check referable.
+ [ruby-dev:22588]
+
+Thu Jan 15 12:58:26 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * io.c (argf_read): do not append EOF. (ruby-bugs-ja:PR#585)
+
+ * io.c (rb_io_fwrite): ad-hockery hack to get rid of HP-UX stdio
+ weird behavior. [ruby-dev:22424]
+
+Wed Jan 14 21:13:06 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * test/inlinetest.rb (InlineTest::eval_part): eval under the top
+ level environment.
+
+Wed Jan 14 17:54:17 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * test/inlinetest.rb (InlineTest::loadtest): require instead of
+ load, to get rid of multiple loading.
+
+Wed Jan 14 13:30:52 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/iconv/extconf.rb: wrapper iconv.rb is dependent on platform.
+
+Wed Jan 14 09:32:02 2004 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * MANIFEST: add test/net/test_httpheader.rb. (commit miss?)
+
+Wed Jan 14 00:58:35 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (Init_Proc): move SystemStackError from under
+ StandardError to Exception. [ruby-talk:89782]
+
+Tue Jan 13 18:03:02 2004 Ian Macdonald <ian@caliban.org>
+
+ * file.c (rb_stat_wr, rb_stat_ww): New functions
+ implementing new methods (File::Stat#world_readable?,
+ File::Stat#world_writable?).
+
+Tue Jan 13 16:53:25 2004 why the lucky stiff <why@ruby-lang.org>
+
+ * ext/syck/rubyext.c: omission of Date library code caused
+ test suite failure. [ruby-core:2251]
+
+Tue Jan 13 16:50:03 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/tk.rb: use $0 as the default application class name.
+
+Tue Jan 13 14:48:00 2004 Ian Macdonald <ian@caliban.org>
+
+ * lib/pathname.rb: New methods (Pathname#world_readable?,
+ Pathname#world_writable?).
+
+Tue Jan 13 14:48:01 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * parse.y (primary): allow no "when" case. [ruby-dev:22578]
+
+ * ruby.h (rb_class_of): reduce branch. [ruby-dev:22577]
+
+ * ruby.h (rb_type): ditto.
+
+Tue Jan 13 14:26:59 2004 Kazuhiro NISHIYAMA <zn@mbf.nifty.com>
+
+ * lib/test/unit/ui/testrunnerutilities.rb (TestRunnerUtilities):
+ moved run method which allows output level. [ruby-dev:22554]
+
+Tue Jan 13 13:04:24 2004 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * test/test_*.rb: Pathname#parent -> Pathname#dirname.
+
+Tue Jan 13 11:38:58 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * test/yaml/test_yaml.rb (YAML_Unit_Tests::test_spec_type_{int,float}):
+ fix syntax error.
+
+Tue Jan 13 07:52:40 2004 why the lucky stiff <why@ruby-lang.org>
+
+ * ext/syck/bytecode.c: turn off default implicit typing.
+
+ * ext/syck/implicit.c: detect base60 integers.
+
+ * ext/syck/rubyext.c: handle base60, as well as hex and octal
+ with commas. implicit typing of ruby symbols.
+
+ * test/yaml/test_yaml.rb: add test.
+
+Tue Jan 13 04:29:52 2004 Dave Thomas <dave@pragprog.com>
+
+ * lib/rdoc/ri/ri_driver.rb (RiDriver::report_method_stuff):
+ Show fully-qualified class names in class list.
+
+Tue Jan 13 01:24:17 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * file.c (test_wr): Rdoc fix. [ruby-core:02225]
+
+Tue Jan 13 01:04:37 2004 Dave Thomas <dave@pragprog.com>
+
+ * lib/rdoc/ri/ri_paths.rb (RI::Paths): First attempt at
+ incorporating DESTDIR in the rdoc installation.
+
+Mon Jan 12 23:26:21 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (primary): fix position after FCALL. [ruby-dev:22574]
+
+Mon Jan 12 18:00:11 2004 Ian Macdonald <ian@caliban.org>
+
+ * file.c (test_wr, test_ww): New functions implementing new
+ methods (File::world_readable?, File::world_writable?).
+
+ * file.c (S_IRUGO, S_IGUGO): New macros.
+
+Mon Jan 12 12:07:22 2004 Dave Thomas <dave@pragprog.com>
+
+ * lib/rdoc/parsers/parse_c.rb (RDoc::C_Parser::do_methods):
+ Someone changed the "// in eval.c" comments to "/*...*/" style,
+ so the parsing of the source file name broke.
+
+ * object.c: Remove spurious space in TrueClass documentation.
+
+ * lib/rdoc/parsers/parse_c.rb (RDoc::C_Parser::find_body): Fix
+ bad regexp: if the code before a documented method contained
+ a comment that wasn't terminated by whitespace, that comment
+ and all intervening code was included in the following
+ method's documentation.
+
+ * lib/rdoc/ri/ri_formatter.rb (RI::HtmlFormatter::break_to_newline):
+ HTML formats need explicit line breaks.
+
+Mon Jan 12 02:24:07 2004 Dave Thomas <dave@pragprog.com>
+
+ * lib/rdoc/ri/ri_formatter.rb (RI::HtmlFormatter): Add HTML
+ generation support to ri (Elliot Hughes)
+
+Sun Jan 11 23:54:41 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * env.h (ruby_frame, ruby_scope, ruby_in_eval, ruby_class,
+ ruby_dyna_vars): export. [ruby-dev:22566]
+
+Sun Jan 11 02:35:53 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ext/socket/socket.c (make_hostent): a bug in brace position.
+
+ * configure.in: install rdoc by default. if you do not want to
+ install rdoc, specify --disable-install-doc.
+
+Sun Jan 11 02:07:47 2004 Dave Thomas <dave@pragprog.com>
+
+ * lib/rdoc/ri/ri_options.rb (RI::Options::OptionList::OptionList):
+ Also accept command line options via the 'RI' environment variable.
+
+Sat Jan 10 21:27:41 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (eval): need to add message delimiter. [ruby-dev:22561]
+
+Sat Jan 10 01:54:50 2004 Eric Sunshine <sunshine@sunshineco.com>
+
+ * defines.h (__NeXT__): Ensure that all standard S_IRUSR, S_IWGRP,
+ S_IRWXO, etc. macros are defined since future code might require
+ them (even though present code only requires a subset).
+
+ * defines.h (__NeXT__): Bug fix: WORDS_BIGENDIAN was not being set
+ correctly on Rhapsody when -arch compiler flag was used (via
+ configure's --enable-fat-binary option).
+
+Sat Jan 10 23:01:41 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (LIBPATHFLAG, RPATHFLAG): enclose paths with single
+ quotes. [ruby-dev:22564]
+
+ * lib/mkmf.rb (libpathflag): do not enclose with quotes always.
+
+ * {bcc32,win32,wince}/Makefile.sub (LIBPATHFLAG): quoted.
+
+Sat Jan 10 22:46:18 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * dir.c (dir_inspect): new method, Dir#inspect. [ruby-dev:22562]
+
+Fri Jan 9 17:36:51 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ext/socket/socket.c (make_hostent): getaddrinfo(3) on BSD do not
+ fill ai_canonname if serv is not supplied. (ruby-bugs PR#1243)
+
+Fri Jan 9 13:14:59 2004 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * lib/test/unit/collector/dir.rb: do not ignore exceptions(LoadError
+ and SystemExitError) while loading a testcase. smell of bug.
+
+ * test/testunit/collector/test_dir.rb: add new test of the LoadError.
+
+ * test/drb/{test_drbssl.rb,test_drbunix.rb}: do not define testcase if
+ openssl is not installed.
+
+ * test/testunit/collector/test_dir.rb: assert_raises -> assert_raise.
+
+Fri Jan 9 11:52:16 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * rubysig.h: <errno.h> is needed to use errno which may be a macro.
+
+Fri Jan 9 11:20:24 2004 Siena. <siena@faculty.chiba-u.jp>
+
+ * ext/extmk.rb (extmake): should not reduce necessary libraries.
+ [ruby-dev:22440]
+
+ * lib/mkmf.rb (merge_libs): merge libraries according to
+ dependency.
+
+Fri Jan 9 10:05:23 2004 Siena. <siena@faculty.chiba-u.jp>
+
+ * lib/mkmf.rb (libpathflag): use single quotes. [ruby-dev:22440]
+
+Thu Jan 8 23:49:21 2004 WATANABE Hirofumi <eban@ruby-lang.org>
+
+ * configure.in (RDOCTARGET): new macro. if you want to install
+ rdoc documentation, you need to run configure with
+ --enable-install-doc.
+
+Thu Jan 8 21:17:43 2004 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * ext/openssl/ossl_pkey.c (ossl_pkey_to_der): removed; it returns
+ public key only.
+
+ * ext/openssl/ossl_pkey_dh.c (ossl_dh_to_der): new function for
+ OpenSSL::PKey::DH#to_der.
+
+ * ext/openssl/ossl_pkey_dsa.c (ossl_dsa_to_der): new function for
+ OpenSSL::PKey::DSA#to_der.
+
+ * ext/openssl/ossl_pkey_rsa.c (ossl_rsa_to_der): new function for
+ OpenSSL::PKey::RSA#to_der.
+
+Thu Jan 8 18:25:29 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * dir.c (glob_helper): should not recurse in exceptional status.
+
+Thu Jan 8 16:51:04 2004 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * test/wsdl/datetime/test_datetime.rb: fixed a stupid testcase which
+ dumps "E" at month-end.
+
+Thu Jan 8 11:20:01 2004 WATANABE Hirofumi <eban@ruby-lang.org>
+
+ * eval.c, object.c, process.c, re.c: don't use C++ style comments.
+
+Thu Jan 8 08:46:14 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/syck/rubyext.c (yaml_org_handler): lazy-load Date for
+ static-ext.
+
+Thu Jan 8 07:06:30 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/extmk.rb: preserve order in Setup. [ruby-dev:22503]
+
+ * ext/extmk.rb: move dependent libraries just after depended
+ libraries.
+
+ * ext/digest/*/extconf.rb: depend on digest.
+
+Thu Jan 8 04:36:17 2004 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * lib/webrick/cgi.rb (WEBrick::CGI#initialize): should create
+ @config[:Logger] if it was not given.
+
+Wed Jan 7 22:28:12 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * dir.c (glob_helper): fix memory leak.
+
+Wed Jan 7 21:15:07 2004 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * sample/webrick/*: new files.
+
+ * MANIFEST: add sample/webrick/*
+
+Wed Jan 7 20:51:51 2004 Minero Aoki <aamine@loveruby.net>
+
+ * test/net/test_httpheader.rb: new file.
+
+ * MANIFEST: add test/net/test_httpheader.rb.
+
+Wed Jan 7 20:42:06 2004 Minero Aoki <aamine@loveruby.net>
+
+ * lib/net/http.rb (HTTPHeader#content_length): should return nil
+ unless header exists. [ruby-dev:22519]
+
+Wed Jan 7 14:26:05 2004 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/tk.rb (TkPanedWindow): use epath for embedded windows.
+
+ * ext/tk/lib/tktext.rb: use epath for embedded windows.
+
+ * ext/tk/lib/tkcanvas.rb: use epath for window items.
+
+Wed Jan 7 14:24:04 2004 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * lib/soap/{attachment.rb,mimemessage.rb}: added from soap4r/1.5.2.
+
+Wed Jan 7 13:00:18 2004 Dave Thomas <dave@pragprog.com>
+
+ * lib/rdoc/ri/ri_driver.rb: Fix problem where ri was
+ being too eager to find matches of ambiguous method
+ names (such as "ri Thread.join" would return both
+ Thread.join and ThreadsWait.join)
+
+Wed Jan 7 12:35:41 2004 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * lib/debug.rb: revert command parse regexps. [ruby-list:39014] by
+ Shirai,Kaoru.
+
+Wed Jan 7 08:21:04 2004 Dave Thomas <dave@pragprog.com>
+
+ * lib/rdoc/parsers/parserfactory.rb: Check for shebang
+ line in files that would otherwise be treated as
+ plain text.
+
+Tue Jan 6 22:13:34 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (rb_mod_modfunc): should break if m has no super class.
+ [ruby-dev:22498]
+
+Tue Jan 6 21:51:37 2004 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * io.c (fptr_finalize): should save errno just after failure.
+ [ruby-dev:22492]
+
+Tue Jan 6 20:51:10 2004 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * lib/logger.rb(Logger#msg2str): no special treatment for the object
+ which responds to :to_str.
+
+ * lib/logger.rb(LogDevice#initialize): remove type checking if the
+ given object is a String. Kernel.open handles it correctly.
+
+ * test/logger/test_logger.rb: follow above change (ArgumentError ->
+ TypeError.)
+
+Tue Jan 6 14:53:14 2004 Dave Thomas <dave@pragprog.com>
+
+ * bin/ri: split out the display side, making it pluggable. Added
+ new ri_driver and ri_display files in lib/rdoc/ri.
+
+Tue Jan 6 11:29:43 2004 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * test/inlinetest.rb, test/{test_generator.rb,test_ipaddr.rb,
+ test_pathname.rb,test_pp.rb,test_prettyprint.rb,test_set.rb,
+ test_time.rb,test_tsort.rb: added.
+
+Tue Jan 6 09:38:27 2004 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * import soap4r/1.5.2;
+
+ * lib/soap/{attachment.rb,baseData.rb,encodingstyle/soapHandler.rb}:
+ introduce SOAPExternalReference class as a referenct to SOAPEnvelope
+ external content.
+
+ * lib/soap/{attachment.rb,mimemessage.rb}: great SwA (SOAP messages
+ with Attachments) support code by Jamie Herre.
+
+ * lib/soap/{element.rb,marshal.rb,parser.rb,processor.rb,
+ streamHandler.rb,wsdlDriver.rb}: SwA support.
+
+ * lib/soap/rpc/{cgistub.rb,driver.rb,element.rb,proxy.rb,router.rb,
+ soaplet.rb}: SwA support and refactoring.
+
+ * lib/soap/generator.rb, lib/soap/mapping/mapping.rb: follow
+ SOAPReference#initialize signature change.
+
+ * lib/soap/mapping/factory.rb: deleted unused methods.
+
+ * lib/soap/mapping/rubytypeFactory.rb: do no ignore case while xsi:type
+ string <-> Ruby class name matching.
+
+ * lib/xsd/datatypes.rb: check the smallest positive non-zero
+ single-precision float exactly instead of packing with "f".
+ [ruby-talk:88822]
+
+ * test/soap/test_basetype.rb, test/xsd/test_xsd.rb: use 1.402e-45, not
+ 1.4e-45. 1.4e-45 is smaller than 2 ** -149...
+
+ * test/soap/test_basetype.rb, test/soap/marshal/test_marshal.rb,
+ test/xsd/test_xsd.rb: use "(-1.0 / (1.0 / 0.0))" instead of "-0.0".
+
+ * test/soap/test_streamhandler.rb: revert to the previous test that
+ warns "basic_auth unsupported under net/http".
+
+Tue Jan 6 06:37:53 2004 Dave Thomas <dave@pragprog.com>
+
+ * bin/rdoc: Add --ri-system switch
+
+ * lib/.document: Update with list of files that seem to have
+ documentation
+
+ * lib/test/unit.rb: Reorder comment to make it RDoc friendly.
+
+ * Makefile.in: add install-nodoc target, and make it
+ generate RDoc on default install.
+
+ * lib/rdoc/ri/ri_options.rb (RI::Options::parse): Add
+ --doc-dir option to ri.
+
+Tue Jan 6 00:04:40 2004 Dave Thomas <dave@pragprog.com>
+
+ * lib/rdoc/parsers/parse_rb.rb (RDoc::RubyParser::parse_method_or_yield_parameters):
+ fix parsing if there are braces in a method parameter list
+
+Tue Jan 6 01:01:04 2004 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/dir.h, win32/win32.c: fix patch miss.
+
+ * win32/Makefile.sub: fix file dependency.
+
+Mon Jan 5 20:32:00 2004 Gavin Sinclair <gsinclair@soyabean.com.au>
+
+ * lib/logger.rb: enhanced documentation.
+
+Mon Jan 5 18:58:47 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * dir.c: merge tuning from H.Yamamoto <ocean@m2.ccsnet.ne.jp>.
+ [ruby-dev:22486]
+
+ * pack.c (pack_unpack): unpack requires big endian offet (OFF16B
+ and OFF32B). The patch is from Minero Aoki in [ruby-dev:22489]
+
+ * pack.c (OFF16B): add big-endian offset again.
+
+Mon Jan 5 03:00:53 2004 Minero Aoki <aamine@loveruby.net>
+
+ * test/ruby/test_pack.rb: new test test_unpack_N.
+
+Mon Jan 5 01:47:53 2004 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * lib/mkmf.rb (create_makefile): remove duplicated object files
+ from $objs on DOSISH platforms.
+
+Sat Jan 3 02:44:48 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * rubysig.h (TRAP_END): preserve errno before switching context.
+ [ruby-core:02137]
+
+Sat Jan 3 01:18:08 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * dir.c: merge tuning from H.Yamamoto <ocean@m2.ccsnet.ne.jp>.
+ [ruby-dev:22476]
+
+Fri Jan 2 14:54:11 2004 Dave Thomas <dave@pragprog.com>
+
+ * bin/ri: Add new --classes option, and arrange for
+ help messages to be paged too.
+
+ * bin/rdoc: Add statistics.
+
+ * process.c: (MG) Added Process documentation
+
+ * lib/rdoc/ri/ri_formatter.rb (RI::AttributeFormatter::wrap):
+ Fix problem with labels not displaying in RI labeled
+ lists using BS and ANSI modes.
+
+Fri Jan 2 01:50:13 2004 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * io.c (argf_eof): ARGF.eof? should not have any side effect.
+ [ruby-dev:22469]
+
+Thu Jan 1 09:03:20 2004 Dave Thomas <dave@pragprog.com>
+
+ * bin/ri (report_class_stuff): Fix problem with ambiguous nested
+ classes not matching.
+
+Wed Dec 31 17:25:17 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * io.c (argf_each_byte): should return self. [ruby-dev:22465]
+
+Wed Dec 31 15:05:00 2003 Gavin Sinclair <gsinclair@soyabean.com.au>
+
+ * lib/pathname.rb: Corrected small coding error.
+
+Wed Dec 31 15:00:00 2003 Gavin Sinclair <gsinclair@soyabean.com.au>
+
+ * lib/pathname.rb: Completed documentation.
+
+Wed Dec 31 11:20:34 2003 Dave Thomas <dave@pragprog.com>
+
+ * lib/rdoc/parsers/parse_c.rb (RDoc::C_Parser::do_methods): Make
+ file referenced in "// in sss.c" relative to current file.
+
+Wed Dec 31 11:17:37 2003 Dave Thomas <dave@pragprog.com>
+
+ * lib/rdoc/generators/html_generator.rb: Fix problem when
+ a public method was aliased, but the alias is then
+ made private, and hence doesn't appear in RDoc output.
+
+Wed Dec 31 01:33:05 2003 Dave Thomas <dave@pragprog.com>
+
+ * array.c, error.c, eval.c, io.c, prec.c, range.c, re.c,
+ string.c, time.c: Add RDoc for Kernel functions, and tidy.
+
+Tue Dec 30 19:39:14 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * io.c (rb_f_readline): should raise EOFError at the end of
+ files. [ruby-dev:22458]
+
+ * io.c (argf_read): should concatenate input files when length
+ argument is nil. [ruby-dev:22450]
+
+ * io.c (argf_read): should update supplied string buffer (2nd
+ argument) even when IO#read is called multiple times.
+
+ * io.c: should initialize lineno by zero. [ruby-dev:22460]
+
+Tue Dec 30 12:30:30 2003 Dave Thomas <dave@pragprog.com>
+
+ * lib/rdoc/code_objects.rb (RDoc::Context::find_symbol): If a
+ class and a method have the same name, finding Xxx.abc was trying
+ to find 'abc' in method 'Xxx', not class 'Xxx'.
+
+Tue Dec 30 08:32:32 2003 Dave Thomas <dave@pragprog.com>
+
+ * lib/rdoc/parsers/parse_rb.rb (RDoc::RubyParser::parse_method):
+ Handle undoing nsting of yield parameters correctly for:
+
+ def each_entry(&b) Dir.foreach(@path) {|f| yield P.new(f) } end
+
+Tue Dec 30 07:30:00 2003 Gavin Sinclair <gsinclair@soyabean.com.au>
+
+ * lib/pathname.rb: Added documentation.
+
+Mon Dec 29 20:08:17 2003 Minero Aoki <aamine@loveruby.net>
+
+ * lib/net/http.rb (GenericRequest#initialize): check if path
+ begins with '/'.
+
+ * lib/net/http.rb: def m( arg ) -> def m(arg)
+
+Mon Dec 29 12:51:02 2003 Dave Thomas <dave@pragprog.com>
+
+ * eval.c: Add RDoc for Kernel global functions.
+
+Mon Dec 29 11:00:16 2003 Dave Thomas <dave@pragprog.com>
+
+ * array.c: Tidy up RDoc loose ends.
+
+Mon Dec 29 05:05:51 2003 Dave Thomas <dave@pragprog.com>
+
+ * struct.c, random: Add RDoc comments
+
+Mon Dec 29 02:25:00 2003 Gavin Sinclair <gsinclair@soyabean.com.au>
+
+ * lib/optparse.rb: Improved documentation.
+
+Mon Dec 29 02:20:54 2003 Dave Thomas <dave@pragprog.com>
+
+ * eval.c: Add RDoc for class Proc, Method, UnboundMethod
+
+Mon Dec 29 02:20:26 2003 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * instruby.rb: fix install directory if destdir and compile_dir are
+ not in the same drive.
+
+ * ext/extmk.rb: ditto. [ruby-list:39009]
+
+ * win32/Makefile.sub, win32/README.win32, win32/configure.bat,
+ win32/setup.mak: new configure scheme. use ``configure --prefix=dir''
+ instead of ``nmake DESTDIR=dir install''.
+
+Mon Dec 29 00:41:44 2003 Dave Thomas <dave@pragprog.com>
+
+ * math.c: Add RDoc comments
+
+Sun Dec 28 20:19:11 2003 Tanaka Akira <akr@m17n.org>
+
+ * ext/stringio/stringio.c (strio_sysread): StringIO.new.sysread didn't
+ raise EOFError.
+
+ * ext/zlib/zlib.c (gzreader_gets): don't increment lineno when
+ gzfile_read_all returns "".
+
+Sun Dec 28 15:25:08 2003 Dave Thomas <dave@pragprog.com>
+
+ * class.c,object.c,parse.y,sprintf.c,variable.c: Document classes
+ Object, Module, etc...
+
+Sun Dec 28 11:55:29 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * test/csv/test_csv.rb: generate bom.csv and mac.csv files on the fly.
+ [ruby-talk:88852]
+
+ * test/csv/{bom.csv,mac.csv}: removed.
+
+Sun Dec 28 08:56:51 2003 Dave Thomas <dave@pragprog.com>
+
+ * eval.c: Thead[Group] RDoc (thanks to MG)
+
+Sun Dec 28 03:50:05 2003 Dave Thomas <dave@pragprog.com>
+
+ * lib/rdoc/parsers/parse_c.rb (RDoc::C_Parser::find_override_comment):
+ Escape method names used in regexp
+
+Sun Dec 28 01:46:02 2003 Dave Thomas <dave@wireless_3.local.thomases.com>
+
+ * lib/rdoc/ri/ri_formatter.rb (RI::TextFormatter::display_flow_item):
+ Add support for rules in 'ri' output.
+
+Sun Dec 28 01:35:35 2003 Dave Thomas <dave@pragprog.com>
+
+ * lib/rdoc/parsers/parse_c.rb (RDoc::C_Parser::find_body):
+ Sometimes the Ruby source aliases two otherwise
+ unrelated methods (for example Kernel#object_id and
+ Kernel#hash are both the same C function). Provide a
+ facility to allow the methods to be documented
+ separately.
+
+Sun Dec 28 01:05:31 2003 Dave Thomas <dave@pragprog.com>
+
+ * marshal.c, signal.c: RDoc collemts added by Elliott Hughes
+
+Sun Dec 28 00:46:25 2003 Dave Thomas <dave@pragprog.com>
+
+ * lib/rdoc/parsers/parse_c.rb (RDoc::C_Parser::find_class_comment):
+ Some Ruby source uses lower-case class names for the
+ Init_Xxx C function name.
+
+Sat Dec 27 23:41:46 2003 WATANABE Hirofumi <eban@ruby-lang.org>
+
+ * configure.in: fix "test: too many arguments" error.
+
+Sat Dec 27 15:32:40 2003 Dave Thomas <dave@wireless_3.local.thomases.com>
+
+ * time.c: Add RDoc comments for Time class.
+
+Sat Dec 27 15:07:26 2003 Dave Thomas <dave@pragprog.com>
+
+ * object.c: Add RDoc comments for Symbol class.
+
+Sat Dec 27 14:39:53 2003 Dave Thomas <dave@pragprog.com>
+
+ * numeric.c (Init_Numeric): Add RDoc comments.
+
+Sat Dec 27 00:44:00 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * io.c (next_argv): warn always for stdin on inplace edit mode.
+
+ * io.c (read_all): need to check string value.
+
+ * io.c (argf_read): allow ARGF.read(nil). [ruby-dev:22433]
+
+Fri Dec 26 23:02:09 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * io.c (rb_f_backquote): need not to check nil result.
+ [ruby-core:02078]
+
+ * io.c (rb_io_getline): should return nil when read_all gives
+ empty string, even when nil rs is specified. [ruby-core:02077]
+
+Fri Dec 26 18:33:54 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in: check if getcontext and setcontext are available.
+
+ * eval.c: use presence of getcontext/setcontext.
+
+Fri Dec 26 16:40:53 2003 Tanaka Akira <akr@m17n.org>
+
+ * lib/pathname.rb (PathnameTest#test_plus): add 2 assertions.
+
+Fri Dec 26 14:05:13 2003 Minero Aoki <aamine@loveruby.net>
+
+ * test/ruby/test_pack.rb: new test test_pack_N.
+
+Fri Dec 26 12:53:26 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * pack.c (pack_pack): add sign check for 'i', and 'l'.
+ [ruby-dev:22427]
+
+ * bignum.c (rb_quad_pack): add range check for 'quad int'.
+
+Fri Dec 26 10:58:58 2003 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * MANIFEST: add vms/config.h and remove vms/config.h_in.
+
+Fri Dec 26 10:42:00 2003 AKIYOSHI, Masamichi <masamichi.akiyoshi@hp.com>
+
+ * io.c: [VMS] "rfm=stmlf" is specified for open() and fopen().
+
+Thu Dec 25 22:29:53 2003 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * string.c (rb_str_update): don't return any value.
+
+Thu Dec 25 15:30:17 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (rb_str_update): call rb_str_modify().
+
+Thu Dec 25 05:08:09 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (search_required): search actual file name once when no
+ extension specified.
+
+Thu Dec 25 04:00:44 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * stable version 1.8.1 released.
+
+Thu Dec 25 00:17:53 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * configure.in: check for nanosleep, -lrt if required.
+ [ruby-core:02059]
+
+ * eval.c (thread_timer): use select(2) if nanosleep(2) is not
+ available.
+
+ * eval.c: check __stub_getcontext for glibc on some platforms.
+ [ruby-list:38984]
+
+Wed Dec 24 23:48:04 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * test/soap/test_basetype.rb, test/soap/marshal/test_marshal.rb
+ test/xsd/test_xsd.rb: use "(-1.0 / (1.0 / 0.0))" instead of "-0.0"
+ to express -0.0. [ruby-talk:88786]
+
+Wed Dec 24 23:29:30 2003 Tanaka Akira <akr@m17n.org>
+
+ * lib/tsort.rb (test_orphaned_break): removed.
+
+Wed Dec 24 20:53:06 2003 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/sample/tkmulticolumnlist.rb: new sample
+
+ * ext/tk/sample/tkmultilistframe.rb: bug fix
+
+Wed Dec 24 20:37:37 2003 Eric Sunshine <sunshine@sunshineco.com>
+
+ * configure.in (LDSHARED): Fixed typographical error in assignment of
+ LDSHARED for Rhapsody which caused linking of extension modules to
+ fail.
+
+Wed Dec 24 17:51:18 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * file.c (rb_thread_flock): enable thread support again.
+
+Wed Dec 24 16:46:08 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (catch_timer): do not call rb_thread_schedule() inside to
+ avoid pthread_mutex_lock() deadlock. interrupts to system calls
+ are detected by TRAP_END via EINTR error.
+
+ * eval.c (thread_timer): do not post signal unless it is
+ absolutely necessary.
+
+ * rubysig.h (TRAP_END): add CHECK_INTS to switch thread.
+
+ * regex.c (re_compile_pattern): check if nextp is smaller than
+ pend. [ruby-dev:22372]
+
+ * eval.c (umethod_bind): remove method overridden check.
+ [ruby-dev:22366]
+
+Wed Dec 24 16:13:05 2003 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * ext/openssl/ossl_ssl.c (ossl_ssl_read): should check for error
+ status by SSL_get_error().
+
+ * ext/openssl/ossl_ssl.c (ossl_ssl_write): ditto.
+
+Wed Dec 24 14:23:27 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/stringio/stringio.c (strio_read): clear the buffer argument
+ when returning nil. [ruby-dev:22363]
+
+ * test/ruby/ut_eof.rb (TestEOF::test_eof_0, TestEOF::test_eof_1):
+ add buffer argument tests.
+
+Wed Dec 24 14:07:55 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/test/unit/assertions.rb: Modules are allowed to rescue.
+
+ * lib/test/unit/autorunner.rb: show output_level in order.
+
+ * lib/test/unit/collector/dir.rb: get rid of successive same
+ directories in load path.
+
+ * test/testunit/test_assertions.rb (test_assert_nothing_raised,
+ test_assert_raise): test for modules.
+
+Wed Dec 24 13:43:34 2003 Shugo Maeda <shugo@ruby-lang.org>
+
+ * lib/net/imap.rb (authenticate): remove "\n" from base64 encoded
+ strings.
+
+Wed Dec 24 11:26:41 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * test/fileutils/test_fileutils.rb: should not create any
+ files or directories in current directory. [ruby-talk:88724]
+
+Wed Dec 24 10:29:53 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/stringio/stringio.c (strio_read): never return nil at
+ unlimited read. [ruby-dev:22334]
+
+ * ext/stringio/stringio.c (strio_read): support second
+ argument. [ruby-dev:22350]
+
+Wed Dec 24 09:38:49 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (arg): should return 0 after error. [ruby-dev:22360]
+
+Wed Dec 24 00:56:54 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * io.c (read_all): do not return nil at the end of file.
+ [ruby-dev:22334]
+
+ * io.c (argf_read): do not depend on nil at eof behavior of
+ IO#read().
+
+ * eval.c (rb_thread_join): dup exception before re-raising it.
+
+ * io.c (rb_io_eof): call clearerr() to prevent side effect. this
+ patch is supplied by Masahiro Sakai <sakai@tom.sfc.keio.ac.jp>.
+ [ruby-dev:22234]
+
+ * pack.c (OFF16): get offset for big endian machines.
+
+ * pack.c (pack_pack): use OFF16 instead of OFF16B.
+ [ruby-dev:22344]
+
+ * pack.c (pack_unpack): ditto.
+
+Tue Dec 23 22:47:14 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * io.c (rb_io_check_readable): set FMODE_RBUF always, even if
+ NEED_IO_SEEK_BETWEEN_RW is not defined. [ruby-dev:22340]
+
+ * io.c (rb_io_check_writable): clear FMODE_RBUF before writing
+ something.
+
+Tue Dec 23 22:25:00 2003 Gavin Sinclair <gsinclair@soyabean.com.au>
+
+ * lib/optparse.rb: incomplete RDoc documentation added in place of
+ existing RD comments. Tabs converted to spaces.
+
+Tue Dec 23 19:44:47 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * test/soap/test_streamhandler.rb (test_basic_auth): removed.
+ soap4r + basic_auth is not officially supported in ruby/1.8.1 even
+ though soap4r + basic_auth + http-access2 should run fine.
+
+Tue Dec 23 19:42:59 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * io.c (rb_io_ungetc): raise an exception at unread stream to
+ avoid unspecified behavior. [ruby-dev:22330]
+
+ * test/ruby/test_system.rb (test_syntax): glob relatively from
+ __FILE__.
+
+Tue Dec 23 18:09:40 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * pack.c (pack_pack): remove unnecessary negative value check.
+ [ruby-dev:22329]
+
+Tue Dec 23 17:26:55 2003 KONISHI Hiromasa <konishih@fd6.so-net.ne.jp>
+
+ * bcc32/Makefile.sub (config.h): bcc has finite(). [ruby-list:38940]
+
+Tue Dec 23 16:08:16 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * lib/rexml/encodings/US-ASCII.rb: typo. [ruby-talk:88650]
+
+ * test/ruby/test_system.rb: num of asserts depended on running dir.
+
+ * test/xsd/test_noencoding.rb: rexml + without iconv/uconv cannot
+ handle euc-jp. install iconv, uconv or xmlscan.
+
+Tue Dec 23 14:13:51 2003 akira yamada <akira@ruby-lang.org>
+
+ * lib/uri/generic.rb (URI::Generic::check_userinfo,
+ URI::Generic::check_user, URI::Generic::check_password): tests
+ conflicts/depends with other components closely.
+
+ * test/uri/test_generic.rb (TestGeneric::test_set_component):
+ added tets.
+
+Tue Dec 23 11:08:34 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * test/xsd/test_noencoding.rb: rescue Errno::EINVAL and do not test.
+ "euc-jp" might not be in supported encoding name list.
+ [ruby-talk:88650]
+
+Tue Dec 23 06:10:31 2003 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * lib/webrick/cgi.rb (CGI): add support for mod_ruby.
+
+ * lib/webrick/cgi.rb (CGI::Socket): add check for existence of
+ OpenSSL module in all HTTPS related methods.
+
+ * lib/webrick/cgi.rb (CGI::Socket#cipher): should create similar
+ value to OpenSSL::SSLSocket#cipher.
+
+ * lib/webrick/httpresponse.rb (HTTPResponse#setup_header): should
+ set "connection: close" if @keep_alive is false.
+
+ * lib/webrick/https.rb (HTTPrequest#meta_vars): add supprt for
+ SSL_PROTOCOL, SSL_CIPHER_USEKEYSIZE and SSL_CIPHER_ALGKEYSIZE.
+
+Mon Dec 22 23:00:05 2003 akira yamada <akira@ruby-lang.org>
+
+ * lib/uri/generic.rb (URI::Generic::check_opaque): fixed typo.
+
+Mon Dec 22 21:59:24 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/iconv/iconv.c (map_charset): always ensure code is a String.
+
+Mon Dec 22 21:15:29 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * class.c (rb_mod_init_copy): always copy singleton class.
+ [ruby-dev:22325]
+
+Mon Dec 22 20:44:36 2003 akira yamada <akira@ruby-lang.org>
+
+ * lib/uri/generic.rb (URI::Generic#route_from): accepts urls which
+ has no host-part.
+
+ * test/uri/test_generic.rb (TestGeneric::test_route): added a test.
+
+Mon Dec 22 20:38:44 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/cgi.rb: reduce eval.
+
+ * lib/cgi.rb (CGI::QueryExtension::read_multipart): alias path to
+ local_path. [ruby-list:38883]
+
+Mon Dec 22 20:09:31 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * test/soap/test_property.rb: remove duplicated test method.
+
+Mon Dec 22 18:22:04 2003 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * bcc32/Makefile.sub, win32/Makefile.sub (config.h): remove
+ HAVE_ISINF definition to follow previous commits of missing.h
+ and win32/win32.h.
+
+Mon Dec 22 17:23:42 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (ac_cv_func_setitimer): moved from defines.h
+
+ * defines.h, rubysig.h, signal.c: removed macro handling which
+ should be done in configure.
+
+ * configure.in (intrinsics.h): check if present.
+
+ * ruby.h: include intrinsics.h if available.
+
+ * bignum.c, marshal.c: include ieeefp.h if available.
+
+ * missing.h (isinf): define as a macro if finite() and isnan()
+ are available. [ruby-core:02032]
+
+Mon Dec 22 17:07:31 2003 WATANABE Hirofumi <eban@ruby-lang.org>
+
+ * configure.in (mingw): set isnan, finite and isinf to yes.
+
+Mon Dec 22 13:40:19 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * lib/soap/property.rb: passing block by reference.
+
+Mon Dec 22 00:32:43 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (rb_with_disable_interrupt): use ENABLE_INTS instead of
+ ALLOW_INTS which may switch context. [ruby-dev:22319]
+
+ * ext/syck/emitter.c (syck_emitter_write): str bigger than
+ e->bufsize causes buffer overflow. [ruby-dev:22307]
+
+Sun Dec 21 17:29:00 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * class.c (rb_check_inheritable): new function. [ruby-dev:22316]
+
+ * intern.h: add prototype.
+
+ * eval.c (superclass): use rb_check_inheritable().
+
+ * object.c (rb_class_initialize): check argument validity.
+
+Sun Dec 21 16:25:10 2003 Tanaka Akira <akr@m17n.org>
+
+ * lib/pathname.rb (Pathname#+): re-implemented to resolve ".." in
+ beginning of the argument.
+ (Pathname#join): concatenate from the last argument.
+ (Pathname#parent): just use Pathname#+.
+
+Sun Dec 21 00:12:37 2003 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/tk.rb: add new methods (TkScrollbar#assign, assign_list)
+
+ * ext/tk/sample/tkmultilistframe.rb: use TkScrollbar#assign method
+
+Sat Dec 20 21:59:03 2003 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * lib/webrick/httprequest.rb (HTTPRequest#meta_vars): refine regexp.
+
+ * lib/webrick/cgi.rb (CGI#start): NPH scripts return status line
+ instead of Status: header field.
+
+ * lib/webrick/cgi.rb (CGI::Socket): refine some coditions.
+
+Sat Dec 20 16:07:14 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/optparse.rb (OptionParser::Completion::complete): wrong
+ Regexp for word boundary. pointed out by Gavin Sinclair.
+
+ * lib/optparse.rb (OptionParser::make_switch): [no-] prefix was
+ missing.
+
+Sat Dec 20 11:40:10 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/yaml.rb (YAML::YAML): adjust Marshal version.
+
+Sat Dec 20 03:56:02 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (rb_with_disable_interrupt): prohibit thread context
+ switch during proc execution. [ruby-dev:21899]
+
+Sat Dec 20 02:41:02 2003 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * lib/webrick/cgi.rb: add file. (yet another CGI library)
+
+ * MANIFEST: add lib/webrick/cgi.rb.
+
+Sat Dec 20 02:18:31 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * misc/ruby-mode.el (ruby-calculate-indent): proper indentation
+ inside of parentheses. [ruby-dev:22308]
+
+Fri Dec 19 21:24:22 2003 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * lib/webrick/httprequest.rb (HTTPRequest#meta_vars): should not set
+ HTTP_CONTENT_TYPE and HTTP_CONTENT_LENGTH.
+
+ * lib/webrick/https.rb (HTTPRequest#parse): should check presence
+ of cert() method to detect SSLSocket.
+
+Fri Dec 19 22:56:46 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * lib/soap/property.rb (SOAP::Property#load): new method for loading
+ property value into existing property tree.
+
+ * test/soap/test_property.rb: add test.
+
+Fri Dec 19 19:21:49 2003 akira yamada <akira@ruby-lang.org>
+
+ * lib/runit/cui/testrunner.rb (RUNIT::CUI::TestRunner::run):
+ should use Test::Unit::UI::{PROGRESS_ONLY,VERBOSE}.
+
+Fri Dec 19 17:36:49 2003 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/sample/tkmultilistbox.rb: bug fix
+
+ * ext/tk/sample/tkmultilistframe.rb: new sample script
+
+Fri Dec 19 03:44:27 2003 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * lib/webrick/httputils.rb (parse_form_data): should return an
+ empty Hash if the body is empty.
+
+Thu Dec 18 21:47:35 2003 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * lib/mkmf.rb (create_makefile): should remove deffile if it's
+ made by miniruby. based on nobu's patch.
+
+Thu Dec 18 21:44:21 2003 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * eval.c (stack_extend): ignore inline optimization on VC7.
+
+ * win32/Makefile.sub (OS, RT): can override.
+
+ * win32/Makefile.sub (LDFLAGS): ditto. shouldn't use pdb:none
+ option. based on Tietew's patch [ruby-dev:22289]
+
+Thu Dec 18 16:38:44 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * dir.c (fnmatch): unlike find_dirsep(), rb_path_next() never
+ return NULL.
+
+Thu Dec 18 15:27:59 2003 WATANABE Hirofumi <eban@ruby-lang.org>
+
+ * lib/ipaddr.rb (IPSocket::getaddress): merge usa's patch.
+ [ruby-dev:21678]
+
+Wed Dec 17 15:15:30 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/cgi.rb (CGI::QueryExtension::Value::[]): should work like
+ String#[] if more than one arguments are specified.
+
+ * lib/delegate.rb: avoid using common instance name as "@obj".
+
+ * lib/cgi.rb (CGI::QueryExtension::Value): Value is no longer
+ subclass of String, but DelegateClass(String).
+
+ * ext/curses/extconf.rb: restore function check for init_color.
+ [ruby-list:38905]
+
+ * Makefile.in: need to specify $(MAINLIBS) for the miniruby
+ generation rule.
+
+ * configure.in: better FreeBSD -lc_r support.
+
+Wed Dec 17 00:16:14 2003 Minero Aoki <aamine@loveruby.net>
+
+ * ext/strscan/strscan.c: new method
+ StringScanner#beginning_of_line? (alias #bol?)
+
+ * ext/strscan/strscan.c: new method StringScanner#concat and #<<.
+
+ * ext/strscan/strscan.c: StringScanner#new(str) does not duplicate
+ nor freeze STR (allow destructive modification).
+
+ * test/strscan/test_stringscanner.rb: test new methods above.
+
+ * test/strscan/test_stringscanner.rb: test destructive string
+ modification.
+
+Tue Dec 16 21:20:47 2003 Tanaka Akira <akr@m17n.org>
+
+ * lib/pp.rb: don't use local variable `pp'.
+
+ * lib/prettyprint.rb: ditto.
+
+Tue Dec 16 13:20:43 2003 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/tk.rb: condition bug of if statement on
+ {pack,grid}_propagate methods
+
+Tue Dec 16 03:17:29 2003 why the lucky stiff <why@ruby-lang.org>
+
+ * lib/yaml/rubytypes.rb: comments in strings. [ruby-talk:88012]
+
+ * test/yaml/test_yaml.rb: add test.
+
+Tue Dec 16 01:14:44 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (catch_timer): check rb_thread_crtical in main native
+ thread.
+
+ * eval.c (thread_timer): just sends signals periodically, to
+ prevent main native thread from receiving them in critical
+ section. [ruby-core:01959]
+
+Mon Dec 15 13:32:22 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * dir.c (check_dirname): check string safety and remove extraneous
+ trailing directory separators. [ruby-dev:22279]
+
+ * file.c: renamed and externalized rb_path_next,
+ rb_path_skip_prefix, rb_path_last_separator, rb_path_end.
+
+ * intern.h: prototypes for rb_path_next, rb_path_skip_prefix,
+ rb_path_last_separator, rb_path_end.
+
+Mon Dec 15 09:27:46 2003 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * ext/openssl/ossl_pkcs12.c (ossl_pkcs12_initialize): first argument
+ of rb_protect should take an argument of VALUE.
+
+Sun Dec 14 18:46:48 2003 WATANABE Hirofumi <eban@ruby-lang.org>
+
+ * ext/socket/socket.c (Init_socket): IPv6 is not supported although
+ AF_INET6 is defined on MinGW.
+
+ * lib/ipaddr.rb (AF_INET6): workaround in the environment which does
+ not support IPv6.
+
+Sat Dec 13 18:55:16 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/iconv/charset_alias.rb: preserve original order.
+
+ * ext/iconv/extconf.rb: remove wrapper file at clean.
+
+Sat Dec 13 18:09:42 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (thread_timer): use timer by sub-thread and nanosleep.
+ [ruby-talk:87519]
+
+ * gc.c (Init_stack): no stack adjustment for THREAD_SAFE.
+
+Sat Dec 13 17:17:59 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (proc_alloc): cache the created object at first time.
+ [ruby-talk:61288], [ruby-dev:22240]
+
+Sat Dec 13 09:01:23 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in: check ucontext.h.
+
+ * eval.c: use getcontext/setcontext() instead of setjmp/longjmp()
+ on ia64 or with native thread enabled. [ruby-core:01932]
+
+Sat Dec 13 03:09:14 2003 why the lucky stiff <why@ruby-lang.org>
+
+ * lib/yaml/rubytypes.rb: anonymous struct fix. [ruby-core:01946]
+
+ * test/yaml/test_yaml.rb: add test.
+
+Fri Dec 12 22:36:44 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * lib/csv.rb: add Cell#to_str and Cell#to_s for /.../ =~ aCell,
+ "#{aCell}" and so on.
+
+ * test/csv/test_csv.rb: add tests.
+
+Fri Dec 12 19:33:06 2003 Minero Aoki <aamine@loveruby.net>
+
+ * lib/fileutils.rb (mkdir): remove trailing `/' from pathes.
+
+ * lib/fileutils.rb (rmdir): ditto. [ruby-dev:22238]
+
+ * lib/fileutils.rb (rmdir_r): ditto.
+
+ * lib/fileutils.rb (fu_copy_dir): check if it is a directory after
+ mkdir(2).
+
+Fri Dec 12 06:06:09 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (proc_invoke): fix class name in warning message for
+ define_method. [ruby-dev:22235]
+
+Thu Dec 11 21:24:43 2003 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * ext/openssl/ossl_pkcs12.[ch]: new files. add OpenSSL::PKCS12.
+
+ * ext/openssl/ossl.[ch]: ditto.
+
+ * ext/openssl/MANIFEST: add ossl_pkcs12.[ch].
+
+Thu Dec 11 20:54:28 2003 Minero Aoki <aamine@loveruby.net>
+
+ * lib/fileutils.rb (mkdir_p): remove trailing `/' befere mkdir(2).
+ mkdir("nonexistdir/") does not work on NetBSD/Alpha 1.6.1.
+
+ * lib/fileutils.rb (fu_list): call to_str for all arguments.
+
+Thu Dec 11 20:07:01 2003 WATANABE Hirofumi <eban@ruby-lang.org>
+
+ * lib/ftools.rb (makedirs): sync with fileutils.
+
+Thu Dec 11 19:53:03 2003 Minero Aoki <aamine@loveruby.net>
+
+ * lib/fileutils.rb (mkdir_p): catch all SystemCallErrors.
+ (mkdir("C:\") causes EACCESS on Windows 2000/NTFS)
+
+Thu Dec 11 19:08:02 2003 Minero Aoki <aamine@loveruby.net>
+
+ * lib/fileutils.rb (mkdir_p): check if it is a directory after
+ mkdir(2) instead of before mkdir(2), to avoid race condition.
+ [ruby-talk:87730]
+ Refer: mkinstalldirs sh script, GNU mkdir(1) (coreutils 5.0)
+
+Thu Dec 11 18:49:30 2003 Minero Aoki <aamine@loveruby.net>
+
+ * lib/fileutils.rb: def m( arg ) -> def m(arg).
+
+Thu Dec 11 11:39:43 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (ieeefp.h), numeric.c: needed for finite() on
+ Solaris. [ruby-core:01921]
+
+ * file.c (rb_stat_inspect): adjust format specifier.
+
+ * parse.c (arg_prepend): nodetype() is for debug use.
+
+ * ruby.h (ISASCII, etc): cast to int to get rid of warning.
+
+ * ruby.h (alloca.h): include even in GCC. [ruby-core:01925]
+
+ * ext/bigdecimal/bigdecimal.c (GetVpValue): adjust format
+ specifier.
+
+ * ext/bigdecimal/bigdecimal.c (BigDecimal_prec, BigDecimal_coerce,
+ BigDecimal_divmod): use rb_assoc_new() to suppress memory usage.
+
+ * ext/bigdecimal/bigdecimal.c (BigDecimal_split): ditto.
+
+ * ext/dl/sym.c (rb_dlsym_guardcall): guard itself should be
+ volatile.
+
+ * ext/iconv/iconv.c (iconv_convert): ensure actual parameter with
+ format specifier.
+
+ * ext/pty/pty.c (MasterDevice, SlaveDevice, deviceNo): do not
+ define unless used.
+
+ * ext/pty/pty.c (getDevice): get rid of warning.
+
+ * ext/socket/socket.c (port_str, sock_s_getaddrinfo,
+ sock_s_getnameinfo): FIX2INT() now returns long.
+
+ * ext/socket/socket.c (init_inetsock_internal): uninitialized
+ variable.
+
+ * ext/syck/rubyext.c (syck_parser_assign_io): add prototype.
+
+ * ext/syck/rubyext.c (rb_syck_mktime, yaml_org_handler): use
+ ISDIGIT() instead of isdigit() to avoid warnings and for
+ platforms which don't support non-ascii charater.
+
+Wed Dec 10 19:28:56 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/stringio/stringio.c (strio_read): set EOF flag at short read.
+ [ruby-dev:22223], [ruby-dev:22224]
+
+Wed Dec 10 18:07:25 2003 Minero Aoki <aamine@loveruby.net>
+
+ * lib/erb.rb: new method ERB#filename(=). [ruby-dev:22208]
+
+Wed Dec 10 17:54:51 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/stringio/stringio.c (strio_read): do not set EOF flag when
+ requested length is zero. [ruby-dev:22214]
+
+Wed Dec 10 17:17:18 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * io.c (read_all): should return given string even if data read is
+ empty. [ruby-dev:22207]
+
+Wed Dec 10 17:16:06 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/stringio/stringio.c (strio_read): adjust behavior at reading
+ beyond EOF to IO. [ruby-dev:22205]
+
+ * test/ruby/ut_eof.rb (TestEOF::Seek): test behaviors at reading
+ beyond EOF.
+
+ * test/ruby/test_file.rb, test/stringio/test_stringio.rb: include
+ TestEOF::Seek test case.
+
+Wed Dec 10 15:01:19 2003 Shugo Maeda <shugo@ruby-lang.org>
+
+ * test/monitor/test_monitor.rb (test_cond): use Queue#deq
+ instead of sleep.
+
+Wed Dec 10 14:45:39 2003 WATANABE Hirofumi <eban@ruby-lang.org>
+
+ * ext/pty/pty.c (HAVE_SYS_IOCTL_H): need to include <sys/ioctl.h>
+ for TIOCSCTTY on *BSD. based on gotoyuzo's patch.
+ (ruby-bugs:PR#1211)
+
+ * ext/pty/pty.c (establishShell): should close descriptors if fork
+ failed.
+
+Wed Dec 10 12:53:05 2003 WATANABE Hirofumi <eban@ruby-lang.org>
+
+ * win32/win32.h: define execv() using do_aspawn().
+
+ * process.c (proc_exec_v): remove #ifdef's which stopped needing.
+
+Tue Dec 9 23:32:23 2003 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/tk.rb, ext/tk/lib/tkcanvas.rb, ext/tk/lib/tkdialog.rb,
+ ext/tk/lib/tkentry.rb, ext/tk/lib/tkscrollbox.rb, ext/tk/lib/tktext.rb,
+ ext/tk/sample/tkalignbox.rb, ext/tk/sample/tkcombobox.rb,
+ ext/tk/sample/tkmultilistbox.rb, ext/tk/sample/tkoptdb.rb, ext/tk/sample/tktextframe.rb,
+ ext/tk/sample/demos-en/dialog1.rb, ext/tk/sample/demos-en/dialog2.rb,
+ ext/tk/sample/demos-jp/dialog1.rb, ext/tk/sample/demos-jp/dialog2.rb:
+ overrided instance methods, which are private methods on the super
+ class, are changed to 'private'
+
+Tue Dec 9 19:53:02 2003 akira yamada <akira@ruby-lang.org>
+
+ * lib/uri/generic.rb (URI::Generic#route_from0): make case insensitive
+ for host-part.
+
+ * test/uri/test_generic.rb (test_route): added tests for the above
+ change.
+
+Tue Dec 9 14:10:48 2003 Tanaka Akira <akr@m17n.org>
+
+ * io.c (rb_io_check_readable): don't call io_seek if EOF flag is set,
+ to avoid clearing EOF flag.
+ (rb_io_check_writable): ditto.
+
+Tue Dec 9 02:53:55 2003 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/sample/tkalignbox.rb: new sample script
+
+Tue Dec 9 00:45:00 2003 Nathaniel Talbott <ntalbott@ruby-lang.org>
+
+ * lib/test/unit/assertions.rb: renamed #assert_raises to #assert_raise
+ and made the former call the latter. [ruby-core:01890]
+
+ * test/testunit/test_assertions.rb: ditto.
+
+Tue Dec 9 00:07:35 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * lib/soap/rpc/standaloneServer.rb: add 'shutdown' and 'status'
+ methods as delegates to WEBrick.
+
+ * test/soap/calc/{test_calc.rb,test_calc2.rb},
+ test/soap/helloworld/test_helloworld.rb,
+ test/wsdl/datetime/test_datetime.rb, test/wsdl/raa/test_raa.rb:
+ follow the change.
+
+Mon Dec 8 22:48:03 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/test/unit/autorunner.rb: remove dependency to a particular
+ runner. [ruby-core:01901], [ruby-list:38869]
+
+ * lib/test/unit/ui/testrunnerutilities.rb: moved output level
+ constants from Console.
+
+ * lib/test/unit/ui/console/testrunner.rb: ditto.
+
+ * lib/test/unit/ui/{fox,gtk,gtk2,tk}/testrunner.rb (initialize):
+ accept output_level.
+
+Mon Dec 8 15:03:30 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/syck/syck.c (syck_io_str_read): get rid of buffer overflow.
+
+Mon Dec 8 13:02:11 2003 Minero Aoki <aamine@loveruby.net>
+
+ * lib/uri/common.rb: new method URI.regexp. [ruby-dev:22121]
+
+ * test/uri/test_common.rb: add test for URI.regexp.
+
+Mon Dec 8 12:44:14 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * pack.c: define swap16 and swap32 only if they are not
+ defined. OpenBSD defines these macros. [ruby-dev:22181]
+
+Sun Dec 7 20:54:17 2003 Tanaka Akira <akr@m17n.org>
+
+ * ext/iconv/iconv.c (map_charset): make case sensitive.
+ ext/iconv/charset_alias.rb (charset_alias): don't ignore
+ config.charset's information. sort aliases.
+
+Sat Dec 6 22:58:03 2003 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * ext/openssl/ossl_ssl.c (ossl_start_ssl): new function to wrap
+ SSL_connect and SSL_accept; if SSL_connect (or SSL_accept) returned
+ but not finished the handshake process, we should retry it.
+
+ * ext/openssl/ossl_ssl.c (ossl_ssl_connect): call ossl_start_ssl.
+
+ * ext/openssl/ossl_ssl.c (ossl_ssl_accept): ditto.
+
+ * ext/openssl/ossl_ssl.c (ossl_ssl_read): allow signal traps.
+
+Sat Dec 6 21:45:10 2003 WATANABE Hirofumi <eban@ruby-lang.org>
+
+ * io.c (flush_before_seek): flush before seek on any platform.
+
+ * configure.in: ditto.
+
+Sat Dec 6 17:23:00 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * lib/soap/soap.rb(SOAP::Env.getenv): allow upcase environment variable
+ as well as downcase one.
+
+ * lib/soap/netHttpClient.rb(SOAP::NetHttpClient#proxy=): check URI.
+
+Fri Dec 5 23:22:30 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/test/unit/assertions.rb (Test::Unit::Assertions::assert_raises,
+ Test::Unit::Assertions::assert_nothing_raised): use the last
+ argument as message unless class object.
+
+ * test/testunit/test_assertions.rb (test_assert_raises): test for
+ multiple exception list. [ruby-core:01891]
+
+ * test/testunit/test_assertions.rb (test_assert_nothing_raised): test
+ for non-exception classes.
+
+Fri Dec 5 22:23:04 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * lib/soap/netHttpClient.rb: proxy support did not work. fixed.
+
+ * lib/soap/property.rb: add class methods for loading property from
+ stream/file/propertyfile. propertyfile is a file which is located at
+ somedir in $:.
+
+ * lib/soap/soap.rb, lib/soap/wsdlDriver.rb, lib/soap/rpc/driver.rb,
+ lib/wsdl/importer.rb: load property from propertyfile 'soap/property'
+ e.g. /usr/local/lib/ruby/site_ruby/1.8/soap/property.
+
+ * test/soap/test_property.rb, test/soap/test_streamhandler.rb: new file.
+
+Fri Dec 5 17:26:23 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (rb_exec_end_proc): maintain tmp_end_procs.
+ [ruby-dev:22154]
+
+Fri Dec 5 13:36:59 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (rb_exec_end_proc): should not clear end_procs and
+ ephemeral_end_procs before execution. [ruby-dev:22144]
+
+ * eval.c (rb_obj_extend): call Module#extended hook after
+ extended_object. [ruby-list:38866]
+
+ * object.c (Init_Object): Module#extended defined.
+
+Fri Dec 5 13:17:30 2003 Tanaka Akira <akr@m17n.org>
+
+ * test/ruby/test_pipe.rb: use IO.pipe instead of IO.popen.
+
+Fri Dec 5 11:54:45 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/stringio/stringio.c (strio_read): follow IO#read.
+
+ * test/ruby/ut_eof.rb, test/ruby/test_file.rb, test/ruby/test_pipe.rb,
+ test/stringio/test_stringio.rb: add EOF test.
+
+Fri Dec 5 02:49:35 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/test/unit/assertions.rb (Test::Unit::Assertions::assert_raises):
+ allow multiple exception list. [ruby-core:01884]
+
+ * lib/test/unit/assertions.rb (Test::Unit::Assertions::assert_nothing_raised):
+ check whether arguments are subclass of Exception.
+
+Thu Dec 4 23:54:00 2003 Rick Ohnemus <rick.ohnemus@systemware.com>
+
+ * dln.c (aix_loaderror): should not use member named 'errno' which
+ might be a macro (e.g. on AIX).
+
+Thu Dec 4 23:32:26 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * io.c (read_all): do not depend on lseek position.
+ [ruby-dev:22026]
+
+Thu Dec 4 22:37:26 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (rb_eval): preserve $! value when retry happens in the
+ rescue clause. [ruby-talk:86697]
+
+Thu Dec 4 21:50:07 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/drb/drb.rb (DRb::DRbMessage::send_request, send_reply):
+ should rescue errors and re-raise DRbConnError on write too.
+ [ruby-dev:22132]
+
+Thu Dec 4 16:41:17 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (exc_list): allow expanding list. [ruby-dev:22134]
+
+Thu Dec 4 14:09:24 2003 Minero Aoki <aamine@loveruby.net>
+
+ * test/fileutils/test_fileutils.rb (test_cp): test if the error is
+ kind of SystemCallError. It is needless details that which errno
+ is set on each systems.
+
+Thu Dec 4 13:24:13 2003 Shugo Maeda <shugo@ruby-lang.org>
+
+ * lib/monitor.rb: use Object#__send__ instead of Object#send.
+
+Thu Dec 4 13:17:45 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * lib/soap/streamHandler.rb: support latest released version of
+ http-access2.
+
+Thu Dec 4 13:04:44 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * lib/soap/soap.rb: add SOAP::Env module for environment repository
+ such as HTTP_PROXY.
+
+ * lib/soap/property.rb: property implementation.
+
+ * lib/soap/streamHandler.rb, lib/soap/wsdlDriver.rb,
+ lib/soap/rpc/driver.rb: use soap/property.rb.
+
+ * lib/wsdl/importer.rb, lib/soap/wsdlDriver.rb, lib/soap/rpc/driver.rb:
+ use SOAP::Env.
+
+ * lib/soap/netHttpClient.rb: add basic_auth, ssl_config, and cookie
+ management interface, but ignored for now.
+
+ * lib/xsd/charset.rb: add XSD::Charset.encoding= interface to set
+ wiredump charset explicitly. it was fixed to 'utf-8' when iconv or
+ uconv module was found.
+
+Thu Dec 4 10:43:58 2003 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * ext/dl/sym.c (rb_dlsym_guardcall): __declspec(noinline) is VC7
+ feature.
+
+Thu Dec 4 10:27:12 2003 Minero Aoki <aamine@loveruby.net>
+
+ * lib/net/http.rb: update hyperlink to the Japanese document.
+
+Thu Dec 4 09:12:43 2003 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * ext/openssl/ossl_asn1.c (asn1time_to_time): should check that
+ the underlying value of ASN1_TIME isn't NULL. [ruby-core:01881]
+
+Thu Dec 4 08:29:43 2003 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * lib/webrick/server.rb (GenericServer#start): should rescue
+ Exception to avoid unexpected aborting. [ruby-core:01853]
+
+ * lib/webrick/server.rb (GenericServer#start_thread): should check
+ that peeraddr isn't nil before printing.
+
+ * lib/webrick/httpresponse.rb (HTTPResponse#start_thread): should
+ rescue Exception to avoid unexpected aborting of thread.
+
+Thu Dec 4 03:48:59 2003 Tanaka Akira <akr@m17n.org>
+
+ * lib/pathname.rb (Pathname#link, Pathname#symlink): obsoleted.
+ (Pathname#make_link, Pathname#make_symlink): new method.
+
+Thu Dec 4 01:45:24 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * io.c (argf_read): should not terminate on empty string; wait
+ until real EOF. [ruby-dev:21969]
+
+ * io.c (argf_read): should adjust length to read, when length is
+ specified and read spans command line argument files.
+
+Wed Dec 3 19:38:36 2003 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
+
+ * lib/drb/drb.rb: correct fcntl parameter. [ruby-dev:22120]
+
+Wed Dec 3 13:49:07 2003 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/tk.rb: 'format'==>'Kernel.format' (avoid override trouble)
+
+ * ext/tk/lib/tkafter.rb: ditto.
+
+ * ext/tk/lib/tkcanvas.rb: ditto.
+
+ * ext/tk/lib/tkdialog.rb: ditto.
+
+ * ext/tk/lib/tktext.rb: ditto.
+
+Wed Dec 3 13:28:13 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * Makefile.in (lex.c): try gperf first, and copy from the source
+ directory if failed. [ruby-dev:22123]
+
+ * ext/extmk.rb (MTIMES): let makefiles depend to mkmf.rb.
+
+ * lib/mkmf.rb (configuration): DLDFLAGS was duplicated.
+
+Tue Dec 2 23:18:12 2003 Minero Aoki <aamine@loveruby.net>
+
+ * lib/net/http.rb: wrote the warning about HTTP_PROXY environment
+ variable.
+
+Tue Dec 2 21:31:42 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * bin/testrb: new test runner. [ruby-core:01845]
+
+ * lib/test/unit/autorunner.rb (Test::Unit::AutoRunner.run,
+ Test::Unit::AutoRunner#process_args): take test list to run and
+ options.
+
+ * lib/test/unit/autorunner.rb (Test::Unit::AutoRunner::RUNNERS,
+ Test::Unit::AutoRunner#run): should not exit inside a library,
+ just return the result instead.
+
+ * lib/test/unit.rb: ditto.
+
+ * test/runner.rb: exit with the test result.
+
+Tue Dec 2 20:18:48 2003 Eric Sunshine <sunshine@sunshineco.com>
+
+ * configure.in (AC_PROG_YACC): AC_DEFINE(OLD_YACC) if Yacc is found
+ instead of Bison or byacc.
+
+ * parse.y: If OLD_YACC is defined, ensure that YYMAXDEPTH is at least
+ 10000 (Bison's default) since some old versions of Yacc define it as
+ low as 150 by default, which is too low for Ruby to parse some files,
+ such as date/format.rb. Among other issues, the parse problem causes
+ "make test" to fail.
+
+Tue Dec 2 20:03:20 2003 Minero Aoki <aamine@loveruby.net>
+
+ * test/fileutils/test_fileutils.rb: check if Pathnames are usable
+ for arguments.
+
+Tue Dec 2 04:22:00 2003 Nathaniel Talbott <ntalbott@ruby-lang.org>
+
+ * lib/test/unit/assertions.rb: fixed #assert_no_match message.
+
+ * test/testunit/test_assertions.rb: ditto.
+
+Tue Dec 2 00:43:00 2003 why the lucky stiff <why@ruby-lang.org>
+
+ * ext/syck/syck.c: string buffering bug. decrementing by full
+ max_size now. [ruby-core:01834]
+
+Mon Dec 1 21:33:08 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * numeric.c (num_sadded): prohibit singleton method definition for
+ Numerics. fill yet another gap between Fixnum and Bignum.
+
+Mon Dec 1 17:33:47 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * pack.c (htov16): converts endian using swap16. htov32(), hton16,
+ hton32 as well. [ruby-talk:85377]
+
+ * pack.c (swap16): swap 2 bytes no matter how big short is on the
+ platform. swap32() is also prepared.
+
+ * numeric.c (rb_num2int): returns long to preserve information.
+ rb_fix2int(), rb_num2uint(), rb_fix2uint() as well.
+ [ruby-talk:85377]
+
+ * numeric.c (rb_num2uint): should not check for value range if the
+ source value is negative.
+
+Mon Dec 1 17:14:34 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * sample/optparse/opttest.rb: added.
+
+Mon Dec 1 16:10:52 2003 Dave Thomas <dave@pragprog.com>
+
+ * lib/rdoc/rdoc.rb: (etc) initial merge into main tree.
+
+Mon Dec 1 14:17:49 2003 Minero Aoki <aamine@loveruby.net>
+
+ * lib/fileutils.rb (fu_each_src_dest0): call #to_str to allow
+ Pathname for arguments. [ruby-core:01795]
+
+ * test/fileutils/test_fileutils.rb: does much strict test on
+ "same" files detecting.
+
+Mon Dec 1 09:28:14 2003 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * bcc32/Makefile.sub, win32/Makefile.sub, wince/Makefile.sub
+ (XCFLAGS): re-export $(XCFLAGS).
+
+ * bcc32/Makefile.sub, win32/Makefile.sub, wince/Makefile.sub
+ (ARCH_FLAG): export $(ARCH_FLAG) (perhaps empty value).
+
+Mon Dec 1 01:03:27 2003 WATANABE Hirofumi <eban@ruby-lang.org>
+
+ * lib/mkmf.rb (TRY_LINK, link_command): added support for DLDFLAGS
+ and ARCH_FLAG. [ruby-dev:22085]
+
+Sun Nov 30 20:18:07 2003 WATANABE Hirofumi <eban@ruby-lang.org>
+
+ * configure.in: keep ARCH_FLAG separate. export ARCH_FLAG.
+ [ruby-core:01819]
+
+ * Makefile.in: add ARCH_FLAG to CFLAGS.
+
+ * Makefile.in: add @CPPFLAGS@ to CPPFLAGS.
+
+ * lib/mkmf.rb (link_command, cc_command): use ARCH_FLAG.
+
+ * lib/mkmf.rb (configuration): add ARCH_FLAG to DLDFLAGS.
+
+ * Makefile.in: add ARCH_FLAG to DLDFLAGS.
+
+ * configure.in: should put getcwd in AC_CHECK_FUNCS, not
+ AC_REPLACE_FUNCS. [ruby-core:01826]
+
+Sun Nov 30 18:22:48 2003 WATANABE Hirofumi <eban@ruby-lang.org>
+
+ * configure.in: do not override CCDLDFLAGS, LDFLAGS, XLDFLAGS,
+ DLDFLAGS and LDSHARED.
+
+ * configure.in: XCFLAGS for compiling ruby itself. ARCH_FLAG is
+ reflected in CFLAGS.
+
+ * lib/mkmf.rb: ditto. do not import XCFLAGS from config.status.
+
+Sun Nov 30 17:37:36 2003 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/tk.rb: bug fix [ruby-talk:86746]
+
+Sun Nov 30 13:02:00 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * lib/soap/encodingstyle/soapHandler.rb: refactoring - Simplifying
+ Conditional Expressions.
+
+ * lib/wsdl/soap/definitions.rb: refactoring - Move Method.
+
+ * test/xsd/{test_noencoding.rb,noencoding.xml}: new files. test for
+ encoding unspecified XML file parsing.
+
+ * test/wsdl/{test_fault.rb,map,datetime}: new files. test of
+ SOAPFault, dateTime and Apache's Map.
+
+Sun Nov 30 09:35:14 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * string.c (rb_str_update): get rid of SEGV at just allocated String.
+ [ruby-core:01812]
+
+Fri Nov 28 23:19:34 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * gc.c (gc_mark): explicitly check mark recursion levels, instead
+ of unreliable stack length.
+
+Fri Nov 28 22:49:56 2003 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
+
+ * lib/rinda/rinda.rb: fix TupleSpaceProxy#read, read_all.
+
+Fri Nov 28 21:44:40 2003 WATANABE Hirofumi <eban@ruby-lang.org>
+
+ * test/fileutils/test_fileutils.rb (test_ln_s): should be a file, not
+ a directory for FreeBSD.
+
+Fri Nov 28 19:37:56 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * hash.c (env_has_value, env_index): must match exactly.
+
+ * test/ruby/test_env.rb (test_has_value, test_index): condition for
+ aboves.
+
+Fri Nov 28 17:59:20 2003 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * test/ruby/test_env.rb: add tests for ENV.
+
+Fri Nov 28 17:47:46 2003 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
+
+ * lib/drb/drb.rb (DRbMessage#load): rescue Errno::* and raise
+ DRbConnError.
+
+Fri Nov 28 15:41:15 2003 Tanaka Akira <akr@m17n.org>
+
+ * lib/pathname.rb (Pathname#realpath): obsolete the force_absolute
+ argument.
+
+Fri Nov 28 14:41:52 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * lib/soap/streamHandler.rb: drop unused http parameters.
+
+ * lib/soap/encodingstyle/soapHandler.rb, lib/soap/mapping/factory.rb,
+ lib/soap/mapping/mapping.rb, lib/soap/mapping/registry.rb,
+ lib/wsdl/soap/complexType.rb: ApacheSOAP's map support was broken
+ under WSDL dynanic client environment. fixed.
+
+ * test/wsdl/raa/*: add tests.
+
+ * lib/xsd/datatypes.rb: dateTime precision bug fix (at least, I hope.)
+ bug of soap4r. XSDDateTimeImple.to_time passed a Float to
+ Time.local/Time.gm as an usec, and NUM2LONG(rb_num2long for Float)
+ causes rounding error.
+
+ * test/soap/test_basetype.rb, test/xsd/test_xsd.rb: add tests.
+
+Fri Nov 28 04:15:24 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (method_arity): used wrong Proc object. [ruby-talk:86504]
+
+Fri Nov 28 00:47:29 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (rb_f_exit), process.c (rb_f_exit_bang): treat true as
+ success, false as failure. [ruby-dev:22067]
+
+ * eval.c (rb_f_abort, rb_thread_switch), process.c (rb_f_system): use
+ ANSI macro instead of hard coded value.
+
+ * eval.c (rb_f_exit), process.c (rb_f_exit_bang): use VALUEs not but
+ TYPEs.
+
+Thu Nov 27 22:05:48 2003 Akinori MUSHA <knu@iDaemons.org>
+
+ * eval.c, gc.c: FreeBSD/ia64 currently does not have a way for a
+ process to get the base address for the RSE backing store, so
+ hardcode it for the moment.
+ [submitted by: Marcel Moolenaar <marcel@FreeBSD.org>]
+
+Thu Nov 27 17:36:42 2003 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/tkafter.rb: bug fix on TkTimer#cancel_on_exception=(mode).
+ TkTimer#wait recieves the exception of the callback.
+ The exception is kept on @return_value.
+
+Thu Nov 27 16:58:48 2003 WATANABE Hirofumi <eban@ruby-lang.org>
+
+ * win32/win32.c (rb_w32_stat): remove _fullpath() for NUL: device.
+
+Wed Nov 26 15:38:47 2003 WATANABE Hirofumi <eban@ruby-lang.org>
+
+ * test/fileutils/test_fileutils.rb (test_ln_s): should take the
+ existing symbolic link for OpenBSD.
+
+Wed Nov 26 04:48:42 2003 why the lucky stiff <why@ruby-lang.org>
+
+ * ext/syck/token.c: removed YYTOKTMP references which
+ were causing buffer overflows on large block scalars,
+ comments, quoted scalars and plain scalars.
+
+ * ext/syck/rubyext.c: dynamic changing of buffer size.
+
+ * ext/syck/syck.h: default buffer size of 4k.
+
+Wed Nov 26 00:55:30 2003 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * lib/webrick/httpresponse.rb: add HTTPResponse#keep_alive=.
+
+ * lib/webrick/httpserver.rb (HTTPServer#run): should pass the
+ request's keep_alive flag to the response.
+
+Tue Nov 25 21:41:35 2003 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * defines.h (ENV_IGNORECASE): should define when DOSISH without
+ human68k. [ruby-dev:22047]
+
+ * hash.c (env_has_value, env_index): don't ignore case of value.
+ [ruby-dev:22048]
+
+Tue Nov 25 21:39:37 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * file.c (path_check_1): honor sticky bits always.
+ [ruby-talk:86273]
+
+Tue Nov 25 20:02:14 2003 Minero Aoki <aamine@loveruby.net>
+
+ * test/fileutils/test_fileutils.rb: do test in more deep
+ directory.
+
+ * test/fileutils/test_nowrite.rb: ditto.
+
+Tue Nov 25 19:04:23 2003 Tanaka Akira <akr@m17n.org>
+
+ * lib/open-uri.rb (URI::Generic#find_proxy): ENV case sensitivity test
+ refined.
+
+Tue Nov 25 18:13:30 2003 Minero Aoki <aamine@loveruby.net>
+
+ * test/fileutils/test_fileutils.rb: chdir Dir.tmpdir before each
+ test. [ruby-dev:22045]
+
+ * test/fileutils/test_nowrite.rb: ditto.
+
+Tue Nov 25 17:52:11 2003 Tanaka Akira <akr@m17n.org>
+
+ * lib/open-uri.rb (URI::Generic#find_proxy): use http_proxy under CGI
+ if the environment variable is case sensitive.
+
+Tue Nov 25 16:41:33 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * test/wsdl/multiplefault.wsdl, test/wsdl/test_multiplefault.rb:
+ removed. this test requires extra libraries in soap4r/1.5.*.
+
+Tue Nov 25 16:24:42 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * lib/soap/**/*.rb, lib/wsdl/**/*.rb, lib/xsd/**/*.rb: changed license;
+ GPL2 -> Ruby's.
+
+ * lib/soap/rpc/driver.rb, lib/soap/wsdlDriver.rb,
+ lib/soap/streamHandler.rb: add interface to streamhandler.
+
+ * lib/soap/marshal.rb: raise error if parse fails.
+
+ * lib/soap/netHttpClient.rb: add https support. Patched by
+ Oliver M. Bolzer.
+
+ * lib/soap/netHttpClient.rb: dump HTTP response message body by itself.
+
+ * lib/soap/rpc/driver.rb, lib/soap/rpc/proxy.rb,
+ lib/soap/wsdlDriver.rb: add driver#mandatorycharset interface to foce
+ using charset for parsing response from buggy server.
+
+ * lib/soap/encodingstyle/soapHandler.rb: support Apache Axis's half
+ typed multi-ref array.
+
+ * lib/soap/mapping/factory.rb, lib/soap/mapping/registry.rb: map
+ SOAPStruct which has multi-accessors which name are the same, to an
+ array.
+
+ * lib/soap/rpc/element.rb: fixed illegal parameter order.
+
+ * lib/soap/rpc/element.rb: element name of response message could have
+ the name other than 'return'.
+
+ * lib/wsdl/operation.rb, lib/wsdl/operationBinding.rb,
+ lib/wsdl/soap/classDefCreator.rb, lib/wsdl/soap/methodDefCreator.rb,
+ lib/wsdl/soap/methodDefCreatorSupport.rb: WSDL/1.1 allows plural
+ fault definition in a operation. [ruby-talk:84948]
+
+ * test/wsdl/multiplefault.wsdl, test/wsdl/test_multiplefault.rb: add
+ test for above fix.
+
+ * lib/wsdl/soap/complexType.rb: support WSDL array definition with
+ maxOccures="unbound".
+
+ * lib/xsd/charset.rb: use cp932 under emx. Patched by
+ Siena. / SHINAGAWA, Norihide in [ruby-dev:21972]
+
+ * lib/xsd/xmlparser/parser.rb: set @charset nil by default. Nil means
+ 'follow encoding declaration in XML'.
+
+ * sample/soap/digraph.rb, sample/wsdl/amazon/wsdlDriver.rb,
+ sample/wsdl/googleSearch/sampleClient.rb,
+ sample/wsdl/googleSearch/wsdlDriver.rb,
+ test/wsdl/test_emptycomplextype.rb,
+ test/wsdl/marshal/test_wsdlmarshal.rb,
+ test/xsd/test_xmlschemaparser.rb: use File.open(...) { |f| f.read }
+ instead of File.open(...).read. [ruby-dev:21964]
+
+ * test/wsdl/emptycomplextype.wsdl, test/wsdl/test_emptycomplextype.rb:
+ simplify the test case.
+
+ * test/wsdl/axisArray/*: add tests for axis's array encoding.
+
+Tue Nov 25 16:15:29 2003 WATANABE Hirofumi <eban@ruby-lang.org>
+
+ * ruby.h: don't treat Cygwin as Windows.
+
+Tue Nov 25 15:18:28 2003 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * configure.in: change default value of --enable-pthread (default: no)
+
+Tue Nov 25 07:31:16 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (primary): allow newlines just before right argument
+ parenthesis. (ruby-bugs:PR#1221)
+
+Mon Nov 24 23:32:06 2003 Tanaka Akira <akr@m17n.org>
+
+ * lib/open-uri.rb (OpenURI.open_loop, URI::HTTP#proxy_open): use
+ catch/throw for redirection instead of exception.
+ (OpenURI.open_loop, OpenURI.redirectable?): restrict redirection.
+
+Mon Nov 24 19:59:48 2003 Tanaka Akira <akr@m17n.org>
+
+ * lib/open-uri.rb (URI::Generic#find_proxy): use CGI_HTTP_PROXY
+ instead of HTTP_PROXY in the CGI environment.
+
+Mon Nov 24 19:32:55 2003 WATANABE Hirofumi <eban@ruby-lang.org>
+
+ * ext/etc/extconf.rb: check for pw_passwd in struct passwd and
+ gr_passwd in struct group for DJGPP.
+
+ * ext/etc/etc.c: ditto.
+
+ * ext/Setup.dj: support for curses, etc, zlib.
+
+Mon Nov 24 17:00:00 2003 Tanaka Akira <akr@m17n.org>
+
+ * lib/open-uri.rb: validate option names.
+ :content_length_proc and :progress_proc option implemented.
+
+Mon Nov 24 14:53:10 2003 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * bcc32/Makefile.sub, win32/Makefile.sub, wince/Makefile.sub
+ (XCFLAGS): output empty value instead of `-DRUBY_EXPORT'.
+
+Sat Nov 22 23:09:45 2003 WATANABE Hirofumi <eban@ruby-lang.org>
+
+ * configure.in: set enable_pthread to no on MinGW.
+
+Sat Nov 22 22:56:20 2003 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * configure.in: add --enable-pthread option (default: yes)
+
+Sat Nov 22 22:48:46 2003 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/tk.rb: add Tk.grab_release and fix bug of TkComposite
+
+ * ext/tk/lib/tkafter.rb: bug fix of TkAfter#start
+
+ * ext/tk/sample/tkcombobox.rb: new sample script
+
+ * ext/tcltklib/tcltklib.c: add native thread check
+
+Sat Nov 22 18:49:47 2003 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * ext/curses/curses.c (window_nodelay): nodelay() of NetBSD's
+ libcruses returns no value, just like keypad().
+
+Sat Nov 22 17:36:36 2003 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * bcc32/Makefile.sub, win32/Makefile.sub, wince/Makefile.sub
+ (HAVE_GETCWD): output to config.h.
+
+ * bcc32/Makefile.sub, win32/Makefile.sub, wince/Makefile.sub
+ (XCFLAGS): output to config.status.
+
+Sat Nov 22 13:10:10 2003 Minero Aoki <aamine@loveruby.net>
+
+ * lib/fileutils.rb (have_st_ino?): djgpp has valid st_ino.
+
+Sat Nov 22 11:28:48 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * gc.c (Init_stack): stack region is far smaller than usual if
+ pthread is used.
+
+Sat Nov 22 07:30:00 2003 Nathaniel Talbott <ntalbott@ruby-lang.org>
+
+ * lib/test/unit/util/backtracefilter.rb: fixed a bug that occurred
+ when an exception had no backtrace.
+
+ * test/testunit/util/test_backtracefilter.rb: ditto.
+
+Fri Nov 21 16:44:18 2003 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/tkentry.rb: fix the encoding trouble of percent
+ substitutions on validatecommand option of TkEntry widget
+
+ * ext/tk/lib/tk.rb: fix bug on {pack|grid}_propagate() method
+
+Fri Nov 21 16:12:11 2003 Akinori MUSHA <knu@iDaemons.org>
+
+ * ruby.1: Fix markups and grammar.
+
+Fri Nov 21 14:49:42 2003 Minero Aoki <aamine@loveruby.net>
+
+ * ruby.1: wrote about ruby related environment variables.
+
+Fri Nov 21 12:28:03 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * marshal.c (w_extended): singleton methods should not be checked
+ when dumping via marshal_dump() or _dump(). [ruby-talk:85909]
+
+Fri Nov 21 01:40:00 2003 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * configure.in: check <pthread.h>
+
+ * ruby.h: include pthread.h if existence.
+ define is_ruby_native() macro when not HAVE_NATIVETHREAD
+
+ * eval.c: undef is_ruby_native() function when not HAVE_NATIVETHREAD
+
+Fri Nov 21 00:43:00 2003 Nathaniel Talbott <ntalbott@ruby-lang.org>
+
+ * lib/test/unit/assertions.rb: use #__send__ instead of #send.
+
+ * lib/test/unit/testcase.rb: ditto.
+
+Thu Nov 20 19:19:22 2003 WATANABE Hirofumi <eban@ruby-lang.org>
+
+ * configure.in: don't find the Cygwin's pthread library on MinGW.
+
+Thu Nov 20 19:15:50 2003 Minero Aoki <aamine@loveruby.net>
+
+ * lib/fileutils.rb (have_st_ino?): emx (OS/2 with EMX) does not
+ have st_ino (always 0). [ruby-dev:21972]
+
+ * lib/fileutils.rb (rename_cannot_overwrite_file?): emx does not
+ allow overwriting files by rename(2).
+
+ * test/fileutils/test_fileutils.rb: windows? ->
+ have_drive_letter?, have_file_perm?
+
+Thu Nov 20 17:50:58 2003 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/sample/tkballoonhelp.rb: new sample script
+
+ * ext/tk/sample/tkmultilistbox.rb: ditto
+
+ * ext/tk/sample/tktextframe.rb: ditto
+
+Thu Nov 20 13:37:34 2003 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ruby.h: define is_ruby_native_thread() for no native thread
+ environment
+
+ * eval.c: ditto
+
+Thu Nov 20 12:42:47 2003 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * configure.in: always check existence of the pthread library
+
+ * ruby.h: define macros for ruby's native thread check
+
+ * eval.c: add ruby's native thread check
+
+ * gc.c: ditto
+
+Wed Nov 19 14:45:18 2003 Minero Aoki <aamine@loveruby.net>
+
+ * lib/net/http.rb (to_ary): print more friendly warning message.
+
+Wed Nov 19 14:32:08 2003 Minero Aoki <aamine@loveruby.net>
+
+ * lib/fileutils.rb (fu_same?): add djgpp and wince.
+
+ * lib/fileutils.rb (cannot_overwrite_file?): add wince.
+
+Wed Nov 19 11:04:47 2003 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * lib/fileutils.rb (cannot_overwrite_file?, have_st_ino?): bccwin32
+ is same as mswin32.
+
+Wed Nov 19 07:54:00 2003 Nathaniel Talbott <ntalbott@ruby-lang.org>
+
+ * lib/test/unit.rb: do not run tests if $! is set.
+
+ * lib/test/unit/assertionfailederror.rb: extend StandardError instead
+ Exception (irb catches the former but not the latter).
+
+Tue Nov 18 23:31:36 2003 WATANABE Hirofumi <eban@ruby-lang.org>
+
+ * missing/memmove.c (memmove): take void *, not char *.
+
+ * missing.h (memmove): ditto.
+
+ * missing.h (strchr, strrchr): return char *, not int.
+
+Tue Nov 18 22:20:10 2003 Minero Aoki <aamine@loveruby.net>
+
+ * lib/fileutils.rb (fu_same?): temporal fix for windows.
+
+Tue Nov 18 19:05:04 2003 Minero Aoki <aamine@loveruby.net>
+
+ * lib/fileutils.rb (fu_same?): check by inode instead of path
+ name, to detect two hard links pointing to the same content.
+
+ * test/fileutils.rb: did not create correctly looped symlinks.
+
+Tue Nov 18 18:23:05 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/stringio/stringio.c (strio_read): behave as IO at empty string.
+ [ruby-dev:21939], [ruby-dev:21941]
+
+ * ext/stringio/stringio.c (strio_getc, strio_getline): set EOF flag.
+
+ * ext/stringio/stringio.c (strio_rewind, strio_seek, strio_ungetc):
+ clear EOF flag.
+
+ * test/stringio/test_stringio.rb: imported from [ruby-dev:21941].
+
+Tue Nov 18 14:06:35 2003 Minero Aoki <aamine@loveruby.net>
+
+ * lib/fileutils.rb (fu_each_src_dest): raise if src==dest.
+ [ruby-talk:85344] [ruby-core:01699]
+
+ * lib/fileutils.rb: use Object#is_a? instead of Class#=== to allow
+ e.g. remote objects for receivers.
+
+ * lib/fileutils.rb: FileTest -> File.
+
+ * lib/fileutils.rb: put parentheses for arguments of File.xxxx?
+
+ * test/fileutils/test_fileutils.rb (test_cp): test "cp a a".
+
+ * test/fileutils/test_fileutils.rb (test_mv): test "mv a a".
+
+ * test/fileutils/test_fileutils.rb (test_ln): test "ln a a".
+
+ * test/fileutils/test_fileutils.rb (test_ln_s): test "ln_s a a".
+
+ * test/fileutils/test_fileutils.rb (test_install): test "install a a".
+
+ * test/fileutils/fileasserts.rb: new method assert_symlink.
+
+ * test/fileutils/fileasserts.rb: assert_is_directory -> assert_directory.
+
+Mon Nov 17 19:38:49 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * file.c (getcwdofdrv): avoid using getcwd() directly, use
+ my_getcwd() instead.
+
+ * merged NeXT, OpenStep, Rhapsody ports patch from Eric Sunshine
+ <sunshine@sunshineco.com>. [ruby-core:01596]
+
+Mon Nov 17 10:50:27 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/optparse.rb (OptionParser::Completion::complete): allow least
+ common completion for three or more candidates.
+
+Mon Nov 17 09:41:38 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/test/unit/ui/tk/testrunner.rb,
+ lib/test/unit/ui/gtk/testrunner.rb:
+ run GUI main loop in sub thread.
+
+ * lib/test/unit/ui/gtk2/testrunner.rb: imported from rough.
+
+ * lib/test/unit/autorunner.rb (keyword_display): sort keywords.
+
+Sun Nov 16 18:10:57 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (rb_eval): iterator should return value from next inside
+ begin/rescue/end. (ruby-bugs:PR#1218)
+
+Sun Nov 16 13:26:07 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * marshal.c (w_object): LINK check earlier than anything else,
+ i.e. do not dump TYPE_IVAR for already dumped objects.
+ (ruby-bugs:PR#1220)
+
+ * eval.c (rb_eval): call "inherited" only when a new class is
+ generated; not on reopening.
+
+ * eval.c (eval): prepend error position in evaluating string to
+ "mesg" attribute string only when it's available and is a
+ string.
+
+Sun Nov 16 12:16:10 2003 Minero Aoki <aamine@loveruby.net>
+
+ * lib/net/protocol.rb: logging response body. [experimental]
+ [ruby-list:38800]
+
+Sun Nov 16 10:49:38 2003 Gavin Sinclair <gsinclair@soyabean.com.au>
+
+ * lib/thread.rb (Thread.exclusive): wrap method definition in
+ class Thread to enable rdoc to process.
+
+Sun Nov 16 09:45:23 2003 Minero Aoki <aamine@loveruby.net>
+
+ * lib/net/http.rb (set_debug_output): warn if method is called
+ after #start. [ruby-dev:38798]
+
+Sun Nov 16 04:41:33 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (eval): do not re-raise exception to avoid unnecessary
+ exception copying, instead modify exception and internal
+ information to adjust eval().
+
+ * eval.c (backtrace): can return the current frame information
+ only if lev < -1.
+
+Sat Nov 15 22:16:42 2003 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * /ext/openssl/ossl_x509ext.c (ossl_x509extfactory_create_ext):
+ refine error message.
+
+Sat Nov 15 10:05:40 2003 Tanaka Akira <akr@m17n.org>
+
+ * lib/open-uri.rb (OpenURI.open_loop, OpenURI::HTTP#proxy_open):
+ refactored to support options.
+ (Buffer): maintain size by this class.
+
+Sat Nov 15 07:40:14 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (rb_method_node): new API to retrieve method body.
+
+Fri Nov 14 13:21:30 2003 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tcltklib/tcltklib.c: fix (en-bugged at 2003/11/07)
+
+ * ext/tk/lib/tkdialog.rb: TkDialog.new accepts a parent widget
+ argument [ruby-talk:85066]
+
+Thu Nov 13 20:53:35 2003 Tanaka Akira <akr@m17n.org>
+
+ * lib/open-uri.rb (Kernel[#.]open): hard coded URI schemes removed.
+ [ruby-ext:02251]
+
+Thu Nov 13 19:17:00 2003 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * lib/test/unit/ui/tk/testrunner.rb: use grid and panedwindow
+ (if available)
+
+Thu Nov 13 17:56:41 2003 Tanaka Akira <akr@m17n.org>
+
+ * lib/open-uri.rb (OpenURI.open_uri): use File::RDONLY.
+ reported by Take_tk <ggb03124@nifty.ne.jp>.
+ [ruby-ext:02245]
+
+Thu Nov 13 16:45:53 2003 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * ext/openssl/ossl_x509req.c (ossl_x509req_to_der): add function for
+ X509::Request#to_der.
+
+Thu Nov 13 11:31:14 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/optparse.rb (OptionParser::Completion#complete): prior shorter
+ name to containing longer name.
+
+Thu Nov 13 06:08:54 2003 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/tk.rb: stop freezing some classes
+
+ * ext/tk/lib/multi-tk.rb: ditto.
+
+Wed Nov 12 17:32:49 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/test/unit/assertions.rb (assert_throws, assert_nothing_thrown):
+ uncaught throw in sub thread raises ThreadError.
+
+ * lib/test/unit/ui/tk/testrunner.rb (setup_ui): "expand" is not
+ necessary.
+
+Wed Nov 12 14:09:43 2003 Shugo Maeda <shugo@ruby-lang.org>
+
+ * test/monitor/test_monitor.rb: fix the timing problem by Queue.
+
+Wed Nov 12 12:59:44 2003 Shugo Maeda <shugo@ruby-lang.org>
+
+ * test/monitor/test_monitor.rb: added.
+
+Wed Nov 12 10:14:28 2003 Shugo Maeda <shugo@ruby-lang.org>
+
+ * lib/monitor.rb: refactored. Thanks, Gennady Bystritsky.
+
+Wed Nov 12 06:11:39 2003 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * ext/openssl/ossl.c (ossl_x509_sk2ary, ossl_x509crl_sk2ary):
+ add functions to convert STACK into Array.
+
+ * ext/openssl/ossl.h: add prototypes.
+
+ * ext/openssl/ossl_pkcs7.c (ossl_pkcs7_set_certificates,
+ ossl_pkcs7_get_certificates, ossl_pkcs7_get_crls,
+ ossl_pkcs7_set_crls): add functions for PKCS7#certificates=
+ PKCS7#certificates, PKCS7#crls= and PKCS7#crls.
+
+Wed Nov 12 00:47:00 2003 Nathaniel Talbott <ntalbott@ruby-lang.org>
+
+ * lib/test/unit/ui/testrunnermediator.rb: should require 'test/unit'.
+
+Tue Nov 11 23:54:00 2003 Nathaniel Talbott <ntalbott@ruby-lang.org>
+
+ * lib/test/unit/ui/gtk/testrunner.rb: added a rescue clause to handle
+ the case when the requested font is not available.
+
+Tue Nov 11 22:44:08 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * io.c (appendline): file may not end with newline. a bug if
+ READ_DATA_PENDING_PTR is defined. [ruby-talk:84925]
+
+Tue Nov 11 10:42:41 2003 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/tk.rb: raise an exception when creating TkWindow
+ object, because TkWindow class is an abstract class.
+
+Tue Nov 11 03:30:43 2003 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * lib/ext/openssl/ossl_conf.c (ossl_config_get_value): return nil
+ if the specified value doesn't exist.
+
+ * lib/ext/openssl/ossl_conf.c (ossl_config_get_section): return
+ a empty hash if the specified section doesn't exist.
+
+Mon Nov 10 11:40:29 2003 Shugo Maeda <shugo@ruby-lang.org>
+
+ * lib/monitor.rb (wait): return true on signal/broadcastfalse and
+ false on timeout. Thanks Gennady Bystritsky.
+
+Mon Nov 10 00:07:10 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (primary): primary_value may be 0 when syntax error.
+ [ruby-talk:84893]
+
+Sun Nov 9 02:05:00 2003 Nathaniel Talbott <ntalbott@ruby-lang.org>
+
+ * lib/test/unit/assertions.rb: un-deprecated #assert_not_nil to
+ maintain symmetry with #assert_nil. Also added better output for
+ #assert_kind_of.
+
+ * test/testunit/tc_assertions.rb: ditto.
+
+Sat Nov 8 18:50:20 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * test/wsdl/raa/*: add new testcase for WSDL loading, parsing and
+ reading.
+
+ * test/soap/marshal/*: backport from soap4r/1.5.1. all differences are
+ for ruby/1.6.
+
+ * lib/soap/*: backport from soap4r/1.5.1. all differences are for
+ ruby/1.6.
+
+ * lib/wsdl/data.rb, lib/wsdl/xmlSchema/data.rb: move definition of
+ ArrayTypeAttrName from ::WSDL::XMLSchema::* to ::WSDL::*.
+ [ruby-talk:84813]
+
+ * lib/wsdl/soap/definitions.rb: element name typo in custom exception
+ struct definition which is needed for wsdlDriver; camelCase ->
+ underscore_name.
+
+Sat Nov 8 13:49:50 2003 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * configure.in: improvement of pthread check
+
+Sat Nov 8 13:28:46 2003 Takaaki Tateishi <ttate@ttsky.net>
+
+ * ext/dl/sym.c: Add DL.win32_last_error and DL.last_error.
+ Thanks, Kaoru Shirai.
+
+Sat Nov 8 06:19:38 2003 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tcltklib/tcltklib.c: To fix 'pthread-enabled Tcl/Tk' problem,
+ TclTkIp#_eval calls Tcl_Eval() on the mainloop thread only
+ (queueing a handler to the EventQueue).
+
+ * ext/tcltklib/README.1st: edit the description of '--with-pthread-ext'
+
+Fri Nov 7 23:23:04 2003 Tanaka Akira <akr@m17n.org>
+
+ * lib/pathname.rb (Pathname#+): if self or the argument is `.', return
+ another.
+ (Pathname#parent): if self is `.', return `..'.
+ (Pathname#children): if self is `.', don't prepend self for a
+ pathname in a result.
+ (Pathname#join): re-implemented using Pathname#+.
+ (Pathname#find): if self is `.', remove `./' prefix of yielding
+ pathname.
+
+Fri Nov 7 10:23:24 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/socket/socket.c (make_hostent): get rid of SEGV on aliases
+ lookup failure. (ruby-bugs:PR#1215)
+
+Fri Nov 7 04:08:05 2003 UENO Katsuhiro <katsu@blue.sky.or.jp>
+
+ * ext/zlib/zlib.c (Init_zlib): define Zlib::GzipReader#each_line as
+ an alias of Zlib::GzipReader#each.
+
+Fri Nov 7 01:03:16 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (rb_load): save and restore rb_prohibit_interrupt.
+ [ruby-dev:21857]
+
+Thu Nov 6 18:05:07 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * io.c (rb_io_inspect): show the path also at a closed file.
+ [ruby-dev:21851]
+
+Thu Nov 6 11:42:07 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/stringio/stringio.c (strio_set_string, strio_reopen): check
+ tainted.
+
+ * ext/stringio/stringio.c (strio_copy, strio_ungetc, strio_write,
+ strio_putc): add infection.
+
+ * ext/stringio/stringio.c (strio_path): just nil. [ruby-dev:21846]
+
+ * ruby.c (proc_options): reserve searched script path in the
+ source file name table. [ruby-list:38765]
+
+ * lib/optparse.rb (OptionParser::Completion#complete): default not to
+ ignore case on completion. [ruby-talk:84726]
+
+ * win32/win32.c (make_cmdvector): process backslashes even if a quote
+ is not enclosed.
+
+Wed Nov 5 23:49:45 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * sample/openssl/gen_csr.rb: there (at least) is a CA which does not
+ accept DN in UTF8STRING format. it's a sample.
+
+Wed Nov 5 22:55:16 2003 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * configure.in, eval.c, signal.c: : add '--with-pthread-ext'
+ option to fix the pthread trouble on 'tcltklib'
+
+ * ext/tcltklib/README.1st: add the description of '--with-pthread-ext'
+
+ * ext/tk/lib/tktext.rb: add TkText#text_copy, text_cut, text_paste
+ to support Tcl/Tk8.4's tk_textCopy, tk_textCut, tk_textPaste
+
+ * ext/tk/lib/tk.rb: add TkMenu#set_focus support Tcl/Tk's
+ tk_menuSetFocus
+
+Wed Nov 5 17:33:45 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (rb_load): allow interrupt during loaded program
+ evaluation. [ruby-dev:21834]
+
+ * hash.c (rb_hash_fetch): always warn if default argument and a
+ block are supplied at the same time. [ruby-dev:21842]
+
+ * hash.c (env_fetch): ditto.
+
+ * array.c (rb_ary_fetch): ditto.
+
+Wed Nov 5 19:08:47 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/optparse.rb (OptionParser::Switch::PlacedArgument::parse):
+ do not remove next argument if empty value is placed.
+
+ * test/optparse: added.
+
+Wed Nov 5 17:05:18 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/test/unit/ui/gtk/testrunner.rb: typo.
+
+Wed Nov 5 11:13:32 2003 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * string.c: add #include "version.h". this file still depends on it.
+
+ * Makefile.in, bcc32/Makefile.sub, win32/Makefile.sub,
+ wince/Makefile.sub: add version.h dependency to string.c.
+
+Wed Nov 5 09:14:23 2003 Shugo Maeda <shugo@ruby-lang.org>
+
+ * lib/monitor.rb: revert to the previous revision.
+
+Wed Nov 5 08:39:51 2003 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * lib/webrick/https.rb (HTTPRequest#parse): set @client_cert_chain.
+
+ * lib/webrick/https.rb (HTTPRequest#meta_vars): create
+ SSL_CLIENT_CERT_CHAIN_n from @client_cert_chain.
+
+ * ext/openssl/ossl_ssl.c (ossl_ssl_get_peer_cert_chain): return nil
+ if no cert-chain was given.
+
+Tue Nov 4 23:44:48 2003 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * bcc32/Makefile.sub, win32/Makefile.sub, wince/Makefile.sub:
+ remove needless version.h dependency.
+
+Tue Nov 4 23:38:43 2003 WATANABE Hirofumi <eban@ruby-lang.org>
+
+ * class.c, hash.c, string.c: remove #include "version.h".
+
+ * Makefile.in: remove needless version.h dependency.
+
+Tue Nov 4 06:54:52 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * io.c (read_all): fptr->f may be NULL, if IO is closed in the
+ signal handler.
+
+ * io.c (io_read): ditto.
+
+ * string.c (get_pat): remove 1.8.0 warning code.
+
+ * string.c (rb_str_match): extend warning until 1.8.2.
+
+ * string.c (rb_str_match2): ditto.
+
+ * class.c (class_instance_method_list): remove 1.8.0 warnings.
+ method_list now recurs. [ruby-dev:21816]
+
+ * class.c (rb_obj_singleton_methods): ditto.
+
+ * array.c (rb_ary_select): remove select with block.
+ [ruby-dev:21824]
+
+ * hash.c (rb_hash_select): ditto.
+
+ * hash.c (env_select): ditto.
+
+ * re.c (match_select): ditto.
+
+ * struct.c (rb_struct_select): ditto.
+
+Mon Nov 3 22:53:21 2003 Minero Aoki <aamine@loveruby.net>
+
+ * lib/racc/parser.rb: synchronize with Racc 1.4.4.
+
+ * ext/racc/cparse/cparse.c: ditto.
+
+ * ext/racc/cparse/cparse.c (parse_main): should abort when
+ the length of LR state stack <=1, not ==0.
+
+Mon Nov 3 08:50:47 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * process.c (check_uid_switch): remove duplicated error messages.
+
+ * process.c (check_gid_switch): ditto.
+
+Sun Nov 2 02:28:33 2003 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * lib/webrick/ssl.rb: new option :SSLExtraChainCert.
+
+Sun Nov 2 01:02:04 2003 Akinori MUSHA <knu@iDaemons.org>
+
+ * string.c (rb_str_hash): Update the HASH_PERL alternative hash
+ algorithm in sync with Perl 5.8.
+
+ * st.c (strhash): Ditto.
+
+Sat Nov 1 18:21:09 2003 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * ext/openssl/ossl_ssl.c (ossl_ssl_peer_cert_chain): add new method
+ SSLSocket#peer_cert_chain.
+
+ * ext/openssl/ossl_x509req.c (GetX509ReqPtr): new function
+ which returns underlying X509_REQ.
+
+ * ext/openssl/ossl_x509ext.c (ossl_x509extfactory_set_issuer_cert,
+ ossl_x509extfactory_set_subject_cert, ossl_x509extfactory_set_crl,
+ ossl_x509extfactory_set_subject_req, ossl_x509extfactory_set_config):
+ use underlying C struct without duplication not to leak momory.
+
+Sat Nov 1 01:49:03 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * lib/soap/mapping/factory.rb: mark marshalled basetype objects when
+ @allow_original_mapping is true. multi-referencing basetype node is
+ prohibited in SOAP/1.1 encoding but soap4r's original ruby object
+ mapping requires basetype to be marked to detect self referencing
+ loop. e.g. o = 1; o.instance_eval { @iv = o } soap4r's original
+ mapping is only used through soap/marshal API.
+
+ * test/soap/marshal/test_marshal.rb: add tests for self referencing
+ immutable objects.
+
+ * test/soap/calc/test_calc_cgi.rb: fix test name.
+
+Fri Oct 31 22:26:29 2003 Takaaki Uematsu <uema2x@jcom.home.ne.jp>
+
+ * wince/string_wce.c (strrchr): should decrement pointer.
+
+ * wince/Makefile.sub: correct a range of isdigit().
+
+Fri Oct 31 12:55:24 2003 WATANABE Hirofumi <eban@ruby-lang.org>
+
+ * configure.in, lib/mkmf.rb: add RPATHFLAG for NetBSD.
+ [ruby-dev:21791]
+
+ * bcc32/Makefile.sub, win32/Makefile.sub, win32/Makefile.sub: ditto.
+
+Fri Oct 31 01:38:14 2003 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * wince/Makefile.sub, win32/Makefile.sub (.y.c): allow white spaces
+ at the beginning of line to remove by sed. (ruby-bugs-ja:PR#580)
+
+Fri Oct 31 01:02:24 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * compar.c (cmp_equal): protect exceptions from <=> comparison
+ again. returns nil if any exception or error happened during
+ comparison.
+
+ * eval.c (search_required): should update *featurep when DLEXT2 is
+ defined. (ruby-bugs-ja:PR#581)
+
+Thu Oct 30 23:41:04 2003 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
+
+ * lib/drb/drb.rb: add DRbArray
+
+ * lib/drb/invokemethod.rb: fix Hash#each problem. [ruby-dev:21773]
+
+ * lib/drb/unix.rb: add LoadError. [ruby-dev:21743]
+
+Thu Oct 30 23:19:11 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * lib/soap/generator.rb: better XML pretty printing.
+
+ * lib/soap/encodingstyle/soapHandler.rb: remove unnecessary namespace
+ assignment in the element which has "encodingStyle" attribute, and
+ add necessary namespace assignment for "arrayType" attribute.
+
+ * test/soap/calc/test_calc_cgi.rb: take over $DEBUG to ruby process
+ through CGI.
+
+Thu Oct 30 22:59:39 2003 why the lucky stiff <why@ruby-lang.org>
+
+ * ext/syck/yaml2byte.c: HASH const too long. Thanks, matz.
+
+Thu Oct 30 19:13:53 2003 Akinori MUSHA <knu@iDaemons.org>
+
+ * ext/syck/MANIFEST: Add yamlbyte.h.
+
+Thu Oct 30 14:25:31 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * io.c (READ_DATA_BUFFERED): new macro to detect whether stdio
+ buffer filled.
+
+ * io.c (rb_io_fptr_cleanup): move path deallocation to
+ rb_io_fptr_finalize (finalizer called by GC).
+
+Thu Oct 30 13:23:39 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * parse.y (logop): left may be NULL. [ruby-talk:84539]
+
+ * eval.c (rb_eval): NODE_CASE nd_head may be NULL.
+
+Thu Oct 30 10:14:51 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * lib/test/unit/autorunner.rb: make fox runner work.
+
+Thu Oct 30 09:32:26 2003 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * process.c (rb_f_system): fixed lack of security check before
+ calling do_spawn() on win32. [ruby-talk:84555]
+
+Thu Oct 30 02:46:35 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (proc_invoke): single array value to normal Proc#call
+ (i.e. not via lambda call), should be treated just like yield.
+ [ruby-dev:21726]
+
+Thu Oct 30 02:25:48 2003 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * ext/openssl/lib/openssl/buffering.rb (Buffering#initialize):
+ add new method to inherit @sync from @io.sync.
+
+ * ext/openssl/lib/net/protocols.rb (SSLIO#ssl_connect): no need to
+ set sync flag explicitly.
+
+ * ext/openssl/ossl_ssl.c (ossl_sslctx_initialize): call super.
+
+ * ext/openssl/ossl_ssl.c (ossl_sslctx_setup): set extra chain
+ certificates in @extra_chain_cert.
+
+Wed Oct 29 22:02:04 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * test/drb/drbtest.rb: use rbconfig.rb to make the path of ruby
+ interpreter to exec, instead of test/ruby/envutil.rb,
+
+Wed Oct 29 19:58:59 2003 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * ext/tcltklib/tcltklib.c (CONST84): define CONST84 when it is not
+ defined and TCL_MAJOR_VERSION >= 8.
+
+ * ext/tcltklib/tcltklib.c (VwaitVarProc, WaitVariableProc,
+ rb_threadVwaitProc): use CONST84 instead of CONST.
+
+ * ext/tcltklib/tcltklib.c (ip_rbTkWaitCommand,
+ ip_rb_threadTkWaitCommand): use CONST84 always.
+
+Wed Oct 29 17:27:05 2003 Tanaka Akira <akr@m17n.org>
+
+ * re.c (rb_reg_s_union, Init_Regexp): new method `Regexp.union'.
+
+ * lib/pathname.rb (realpath): examine Dir.pwd because it may have
+ symlinks.
+
+Wed Oct 29 17:16:31 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (rb_longjmp): must not disturb original jump.
+ [ruby-dev:21733]
+
+Wed Oct 29 15:28:34 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (Init_Proc): taint preallocated exception object
+ sysstack_error. [ruby-talk:84534]
+
+Wed Oct 29 11:27:39 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * parse.y (ret_args): node may be NULL. [ruby-talk:84530]
+
+Tue Oct 28 15:20:12 2003 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * ext/tcltklib/tcltklib.c (VwaitVarProc, ip_rbVwaitObjCmd,
+ WaitVariableProc, WaitVisibilityProc, WaitWindowProc,
+ ip_rbTkWaitObjCmd, ip_rbTkWaitCommand, rb_threadVwaitProc,
+ rb_threadWaitVisibilityProc, rb_threadWaitWindowProc,
+ ip_rb_threadVwaitObjCmd, ip_rb_threadTkWaitObjCmd): prototype;
+ avoid VC++ warnings.
+
+Mon Oct 27 19:19:55 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (rb_longjmp): ignore reentering error while warning.
+ [ruby-dev:21730]
+
+Mon Oct 27 00:23:50 2003 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tcltklib/tcltklib.c (ip_ruby): bug fix on Win : hang-up when
+ calling 'exit' in the Tk callback procedure. [ruby-list:38656]
+
+Sat Oct 25 09:18:04 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (rb_method_missing): protect exception from within
+ "inspect". (ruby-bugs:PR#1204)
+
+Fri Oct 24 23:26:34 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * hash.c (rb_hash_each): Hash#each should yield single value.
+ [ruby-talk:84420]
+
+ * hash.c (env_each): ditto for ENV.each.
+
+Thu Oct 23 20:25:32 2003 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * lib/webrick/server.rb (GenericServer#start): should rescue
+ IOError from IO::accept. [ruby-dev:21692]
+
+Thu Oct 23 17:59:36 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (ruby_cleanup): initialize stack bottom for embedding.
+ [ruby-dev:21686]
+
+ * ext/dl/extconf.rb: move list of files to clean from DEPEND file,
+ to get rid of macro redefinitions.
+
+Thu Oct 23 13:44:00 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y: integrate operations for stack_type. [ruby-dev:21681]
+
+Thu Oct 23 00:41:45 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * test/soap/calc/*, test/soap/helloworld/*: set logging threshold
+ to ERROR.
+
+Wed Oct 22 12:53:31 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/test/unit/collector/dir.rb (Test::Unit::Collector::Dir#collect_file):
+ ignore tests which raised LoadError.
+
+ * test/drb/drbtest.rb, test/ruby/test_beginendblock.rb,
+ test/ruby/test_system.rb: avoid requiring same file twice.
+
+ * test/drb/test_drbssl.rb, test/drb/test_drbunix.rb: should not use
+ ARGV unless invoked directly. do not create test cases unless
+ required libraries are available.
+
+Wed Oct 22 02:31:34 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (ruby_cleanup): should not ignore exit_value in END
+ execution. [ruby-dev:21670]
+
+Tue Oct 21 23:16:26 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (ruby_cleanup): call finalizers and exit procs before
+ terminating threads.
+
+ * eval.c (ruby_cleanup): preserve ruby_errinfo before ruby_finalize_0().
+
+Tue Oct 21 15:57:11 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/test/unit/collector/dir.rb (Test::Unit::Collector::Dir#collect_file):
+ prepend the directory of target file to the load path.
+
+Tue Oct 21 15:08:53 2003 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/win32.c (do_spawn, do_aspawn): should wait child process even
+ if callded with P_OVERLAY.
+
+ * win32/win32.c (do_spawn, do_aspawn): should return child's exit
+ status to parent.
+
+Tue Oct 21 00:35:02 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * test/soap/calc/*, test/soap/helloworld/*: catch the exception from
+ test server thread and recover.
+
+Tue Oct 21 00:22:57 2003 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
+
+ * test/drb/*: import drb/runit.
+
+Mon Oct 20 23:55:47 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (rb_eval): set current node after arguments evaluation.
+ [ruby-dev:21632]
+
+ * eval.c (rb_yield_0): set current node and keep it at local jump.
+
+Mon Oct 20 22:01:18 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (rb_thread_cleanup): keep thread group for main thread.
+ [ruby-dev:21644]
+
+Mon Oct 20 18:28:10 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (rb_catch): backout.
+
+Mon Oct 20 17:31:46 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (PUSH_FRAME): generate unique number to be TAG_JUMP()
+ destination.
+
+ * eval.c (localjump_destination): use unique number in ruby_frame
+ for localjump destination.
+
+Mon Oct 20 11:31:44 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * test/ruby/test_signal.rb (test_signal): restore old trap.
+
+Mon Oct 20 11:00:46 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * gc.c (gc_sweep): loosen page free condition to avoid add_heap()
+ race condition. [ruby-dev:21633]
+
+ * gc.c (gc_sweep): do not update malloc_limit when malloc_increase
+ is smaller than malloc_limit.
+
+Mon Oct 20 09:45:12 2003 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * lib/debug.rb (debug_command): remove debug print.
+
+Sun Oct 19 13:12:30 2003 Tanaka Akira <akr@m17n.org>
+
+ * lib/pathname.rb (foreachline, dir_foreach): add obsolete warning.
+
+Sun Oct 19 00:14:22 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * test/soap/calc/*, test/soap/helloworkd/*: changed port# of test
+ server. (17171)
+
+Sat Oct 18 23:01:32 2003 WATANABE Hirofumi <eban@ruby-lang.org>
+
+ * missing/acosh.c (DBL_MANT_DIG): typo fix(ifdef -> ifndef).
+
+Sat Oct 18 05:48:59 2003 why the lucky stiff <why@ruby-lang.org>
+
+ * ext/syck/rubyext.c: YAML::Syck::compile method.
+
+ * ext/syck/syck.c: Buffer edge bug.
+
+ * ext/syck/yaml2byte.c: YAML to bytecode converter.
+
+ * ext/syck/yamlbyte.h: Ditto.
+
+ * ext/syck/bytecode.c: Bytecode parser fixes to empty collections
+ and empty strings.
+
+ * ext/syck/token.c: Ditto.
+
+Fri Oct 17 23:07:38 2003 Akinori MUSHA <knu@iDaemons.org>
+
+ * ext/enumerator/enumerator.c, ext/enumerator/enumerator.txt:
+ Provide Kernel#to_enum as an alias for Kernel#enum_for. Maybe
+ this is a better name.
+
+Fri Oct 17 23:00:30 2003 Akinori MUSHA <knu@iDaemons.org>
+
+ * lib/generator.rb: Add rdoc documentation.
+
+Fri Oct 17 22:16:42 2003 Akinori MUSHA <knu@iDaemons.org>
+
+ * lib/set.rb: Reword and fix Overview.
+
+ * lib/set.rb: It is not necessary to require
+ 'test/unit/ui/console/testrunner'.
+
+Fri Oct 17 11:15:22 2003 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * test/ruby/test_range.rb: added.
+
+ * MANIFEST: add test/ruby/test_range.rb.
+
+Fri Oct 17 03:21:23 2003 William Sobel <will.sobel@barra.com>
+
+ * ext/socket/socket.c (make_hostent): h_aliases may be NULL.
+ (ruby-bugs:PR#1195)
+
+ * ext/socket/socket.c (sock_s_gethostbyaddr): ditto.
+
+Fri Oct 17 00:12:41 2003 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/tk.rb: (bug fix) instance variable @frame was used
+ without initializing on TkComposite module.
+
+Thu Oct 16 23:51:04 2003 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/tk.rb: If $DEBUG == true and some exception is caused
+ in a callback operation, Ruby/Tk shows a (verbose) backtrace
+ information on the callback process.
+
+Thu Oct 16 17:09:19 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/debug.rb (DEBUGGER__::Context::debug_command): do not call
+ debug_silent_eval() when $1 is not set. (ruby-bugs:PR#1194)
+
+Thu Oct 16 16:54:57 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (rb_str_upto): ("a"..."a").to_a should return [].
+ [ruby-core:01634]
+
+Thu Oct 16 16:40:51 2003 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/tk.rb:
+ Add Tk::EncodedString and Tk::UTF8_String class to support
+ characters using the \uXXXX escape to the UNICODE string.
+
+ * ext/tk/sample/{demos-en,demos-jp}/unicodeout.rb
+ new demo-scripts (samples of Tk::UTF8_String)
+
+ * ext/tk/sample/{demos-en,demos-jp}/widget
+ add entries for 'unicodeout.rb'
+
+Thu Oct 16 08:38:06 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * test/digest/test_digest.rb (test_eq): show failed class.
+
+ * test/ruby/test_iterator.rb (test_break, test_return_trace_func):
+ test localjump destination.
+
+Wed Oct 15 20:22:31 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * lib/soap/netHttpClient.rb: use URI::HTTP#request_uri instead of
+ instance_eval('path_query'). [ruby-list:38575]
+
+Wed Oct 15 17:24:45 2003 URABE Shyouhei <root@mput.dip.jp>
+
+ * lib/cgi.rb (CGI::Cookie): tiny typo fix.
+
+Wed Oct 15 15:00:54 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (ruby_run): just return FAILURE instead of parse error
+ count. [ruby-list:38569]
+
+Wed Oct 15 13:17:02 2003 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * ext/digest/digest.c (rb_digest_base_alloc): need to initialize
+ buffer. [ruby-dev:21622]
+
+Wed Oct 15 11:23:05 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * marshal.c (w_object): dump extended modules as well.
+
+ * marshal.c (r_object0): TYPE_USRMARSHAL should restore extended
+ modules before invoking marshal_load. these two fixes are done
+ by Masatoshi Seki <m_seki@mva.biglobe.ne.jp>.
+
+Wed Oct 15 09:30:34 2003 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * ext/enumerator/enumerator.c (enumerator_each): avoid VC++ warning.
+
+ * ext/syck/syck.h: include stdio.h for definition of FILE.
+
+Wed Oct 15 08:09:07 2003 why the lucky stiff <why@ruby-lang.org>
+
+ * ext/syck/bytecode.c: Checkin of YAML bytecode support.
+
+ * ext/syck/gram.c: Ditto.
+
+ * ext/syck/syck.c: Ditto.
+
+ * ext/syck/token.c: Ditto.
+
+ * ext/syck/handler.c: Ditto.
+
+ * ext/syck/handler.c: Now using 'tag' rather than 'taguri' in type URIs.
+
+ * ext/syck/rubyext.c: Ditto (on both counts).
+
+Wed Oct 15 05:05:53 2003 Akinori MUSHA <knu@iDaemons.org>
+
+ * lib/generator.rb: A new library which converts an internal
+ iterator to an external iterator.
+
+ * lib/abbrev.rb: A new library which creates an abbreviation table
+ from a list.
+
+Wed Oct 15 04:31:51 2003 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/sample/demos-en/entry3.rb, ext/tk/sample/demos-jp/entry3.rb:
+ new demo-scripts
+
+ * ext/tk/sample/demos-en/widget, ext/tk/sample/demos-jp/widget:
+ add entries for 'entry3.rb'
+
+Wed Oct 15 04:31:47 2003 Akinori MUSHA <knu@iDaemons.org>
+
+ * test/digest/test_digest.rb: Moved from ext/digest/test.rb.
+
+Wed Oct 15 03:53:20 2003 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/tk.rb: fixed trouble on auto-load Tcl commands (enbug
+ on the last commit).
+
+Wed Oct 15 00:25:00 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * parse.y (yylex): argument parentheses preceded by spaces should
+ be warned; not error. [ruby-talk:84103]
+
+Wed Oct 15 00:20:15 2003 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tcltklib/tcltklib.c: replace Tcl/Tk's vwait and tkwait to
+ switch on threads smoothly and avoid seg-fault.
+
+ * ext/tcltklib/tcltklib.c: add TclTkIp._thread_vwait and
+ _thread_tkwait for waiting on a thread. (Because Tcl/Tk's vwait
+ and tkwait command wait on an eventloop.)
+
+ * ext/tk/lib/multi-tk.rb: support TclTkIp._thread_vwait and
+ _thread_tkwait.
+
+ * ext/tk/lib/tk.rb: now, TkVariable#wait has 2 arguments.
+ If 1st argument is true, waits on a thread. If false, waits on
+ an eventloop. If 2nd argument is true, checks existence of
+ rootwidgets. If false, doesn't. Default is wait(true, false).
+
+ * ext/tk/lib/tk.rb: add TkVariable#tkwait(arg) which is equal to
+ TkVariable#wait(arg, true). wait_visibility and wait_destroy
+ have an argument for waiting on a thread or an eventloop.
+
+ * ext/tk/lib/tk.rb: improve of accessing Tcl/Tk's special variables.
+
+ * ext/tk/lib/tkafter.rb: support 'wait on a thread' and 'wait on
+ an eventloop'.
+
+Wed Oct 15 00:10:24 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * lib/soap/baseData.rb: Introduce SOAPType as the common ancestor of
+ SOAPBasetype and SOAPCompoundtype.
+
+ * lib/soap/generator.rb, lib/soap/element.rb, lib/soap/encodingstyle/*:
+ Encoding methods signature change. Pass SOAPGenerator as a parameter.
+
+ * lib/soap/mapping/*, test/soap/marshal/test_marshal.rb: Refactoring
+ for better marshalling/unmarshalling support. Now I think SOAP
+ marshaller supports all kind of object graph which is supported by
+ Ruby's original marshaller. Of course there could be bugs as always.
+ Find it. :-)
+
+ * lib/soap/rpc/standaloneServer.rb: Set severity threshould to INFO.
+ DEBUG is too noisy.
+
+ * lib/xsd/datatypes.rb: DateTime#of is obsoleted. Use DateTime#offset.
+
+ * test/wsdl/emptycomplextype.wsdl, test/xsd/xmlschema.xml: Avoid
+ useless warning.
+
+Tue Oct 14 19:09:35 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (ruby_finalize_0): return the given exit status unless
+ SystemExit got raised.
+
+Tue Oct 14 11:53:49 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * intern.h (ruby_stop): never return.
+
+ * ruby.h (ruby_run): ditto.
+
+Tue Oct 14 04:43:55 2003 Tanaka Akira <akr@m17n.org>
+
+ * lib/pathname.rb (realpath): make ELOOP check bit more robust.
+ (children): prepend self by default.
+ (chroot): obsoleted.
+
+Tue Oct 14 02:29:31 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (rb_require_safe): segfault after loading .so.
+
+Tue Oct 14 02:05:23 2003 Akinori MUSHA <knu@iDaemons.org>
+
+ * ext/Setup*, ext/enumerator/*: Add ext/enumerator, a helper
+ module for the Enumerable interface.
+
+Mon Oct 13 23:55:59 2003 WATANABE Hirofumi <eban@ruby-lang.org>
+
+ * test/ruby/envutil.rb: use Config::CONFIG["ruby_install_name"],
+ not "ruby".
+
+Mon Oct 13 23:57:29 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (rb_feature_p): match by classified suffix.
+
+ * eval.c (rb_require_safe): require library in the specified safe
+ level.
+
+ * variable.c (rb_autoload, rb_autoload_load): restore safe level
+ when autoload was called. [ruby-dev:21338]
+
+ * intern.h: prototypes; rb_require_safe.
+
+ * test/runner.rb: accept non-option arguments.
+
+Mon Oct 13 20:49:51 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (str_new4): should not preserve FL_TAINT status in the
+ internal shared string. [ruby-dev:21601]
+
+ * string.c (rb_str_new4): ditto.
+
+ * eval.c: use EXIT_SUCCESS and EXIT_FAILURE for exit values.
+
+ * process.c: ditto. [ruby-list:38521]
+
+Mon Oct 13 19:51:02 2003 Koji Arai <jca02266@nifty.ne.jp>
+
+ * lib/debug.rb (debug_command): should enter emacs mode when
+ assigned any value to the environment variable "EMACS".
+ On Meadow, (getenv "EMACS") is "meadow".
+
+Sun Oct 12 14:45:03 2003 WATANABE Hirofumi <eban@ruby-lang.org>
+
+ * ext/win32ole/extconf.rb: check "windows.h", not "windows".
+ [ruby-talk:84051]
+
+Sat Oct 11 20:41:03 2003 Corinna Vinschen <corinna@vinschen.de>
+
+ * file.c (eaccess): Use access(2) on Cygwin.
+
+Sat Oct 11 17:09:21 2003 WATANABE Hirofumi <eban@ruby-lang.org>
+
+ * lib/rexml/quickpath.rb (REXML::QuickPath::match):
+ escape '[' to avoid warning.
+
+Sat Oct 11 16:08:41 2003 Tanaka Akira <akr@m17n.org>
+
+ * lib/pathname.rb (realpath): check existence of the file.
+
+ * lib/pathname.rb (realpath): re-implemented.
+ (realpath_root?, realpath_rec): removed
+
+Sat Oct 11 10:19:39 2003 Shugo Maeda <shugo@ruby-lang.org>
+
+ * lib/monitor.rb: handle exceptions correctly. Thanks, Gennady
+ Bystritsky.
+
+Fri Oct 10 07:50:54 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (is_defined): inheritance line adjustment as like as
+ rb_call_super().
+
+Fri Oct 10 01:19:00 2003 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * ext/openssl/ossl_x509name.c (ossl_x509name_initialize): add
+ optional argument to specify the DirectoryString type
+ (ASN1::UTF8STRING by default). RFC3280 deprecates PrintableString
+ for DirectoryString, and strongly requires to use UTF8String for
+ all certificates issued after December, 31 2003.
+
+ * ext/openssl/lib/openssl/x509.rb (X509::Name::parse): ditto.
+
+Thu Oct 9 23:50:21 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (rb_thread_start_0): prevent thread from GC.
+ [ruby-dev:21572]
+
+Thu Oct 9 19:11:44 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (rb_thread_start_0): non-volatile should be restored from
+ volatile.
+
+Thu Oct 9 17:43:36 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (proc_save_safe_level, proc_get_safe_level,
+ proc_set_safe_level): save/restore safe level 1..4.
+
+Thu Oct 9 16:33:23 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * marshal.c (r_object0): remove unnecessary iv restoration for
+ USRMARSHAL. [ruby-dev:21582]
+
+ * marshal.c (w_object): dump generic instance variables from
+ a string from '_dump'.
+
+ * variable.c (rb_generic_ivar_table): return 0 if obj's FL_EXIVAR
+ is not set.
+
+ * time.c (time_dump): copy instance variables to dumped string, to
+ be included in the marshaled data.
+
+ * bignum.c (rb_big2ulong): add range check to ensure round trip.
+
+Thu Oct 9 15:45:27 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * pack.c (uv_to_utf8): change message to "out of range", since
+ negative values are not "too big". [ruby-dev:21567]
+
+Thu Oct 9 14:05:38 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (rb_set_end_proc, rb_exec_end_proc): restore safe level.
+ [ruby-dev:21557]
+
+Thu Oct 9 10:51:04 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (rb_yield_0): no error if block is empty.
+
+Thu Oct 9 06:43:33 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (localjump_error): id should be ID.
+
+ * eval.c (rb_eval): nd_rval is set in copy_node_scope().
+
+ * eval.c (rb_yield_0): unused variable.
+
+ * eval.c (rb_yield_0): nothing to do for empty node.
+
+ * eval.c (call_end_proc, proc_invoke): adjust backtrace in END.
+ [ruby-dev:21551]
+
+ * eval.c (rb_thread_start_0): set the value by break as the result.
+ [ruby-dev:21552]
+
+ * eval.c (rb_thread_start_0, rb_thread_raise, rb_callcc): save
+ variables across THREAD_SAVE_CONTEXT.
+
+Thu Oct 9 12:05:46 2003 Eric Sunshine <sunshine@sunshineco.com>
+
+ * configure.in: revived NextStep, OpenStep, and Rhapsody ports which
+ had become unbuildable; enhanced --enable-fat-binary option so that
+ it accepts a list of desired architectures (rather than assuming a
+ fixed list), or defaults to a platform-appropriate list if user does
+ not provide an explicit list; made the default list of architectures
+ for MAB (fat binary) more comprehensive; now uses -fno-common even
+ when building the interpreter (in addition to using it for
+ extensions), thus allowing the interpreter to be embedded into a
+ plugin module of an external project (in addition to allowing
+ embedding directly into an application); added checks for
+ <netinet/in_systm.h> (needed by `socket' extension) and getcwd(); now
+ ensures that -I/usr/local/include is employed when extensions'
+ extconf.rb scripts invoke have_header() since extension checks on
+ NextStep and OpenStep will fail without it if the desired resource
+ resides in the /usr/local tree; fixed formatting of --help message.
+
+ * Makefile.in: $(LIBRUBY_A) rule now deletes the archive before
+ invoking $(AR) since `ar' on Apple/NeXT can not "update" MAB archives
+ (see configure's --enable-fat-binary option); added rule for new
+ missing/getcwd.c.
+
+ * defines.h: fixed endian handling during MAB build (see configure's
+ --enable-fat-binary option) to ensure that all portions of the
+ project see the correct WORDS_BIGENDIAN value (some extension modules
+ were getting the wrong endian setting); added missing constants
+ GETPGRP_VOID, WNOHANG, WUNTRACED, X_OK, and type pid_t for NextStep
+ and OpenStep; removed unnecessary and problematic HAVE_SYS_WAIT_H
+ define in NeXT section.
+
+ * dir.c: do not allow NAMLEN() macro to trust dirent::d_namlen on
+ NextStep since, on some installations, this value always resolves
+ uselessly to zero.
+
+ * dln.c: added error reporting to NextStep extension loader since the
+ previous behavior of failing silently was not useful; now ensures
+ that NSLINKMODULE_OPTION_BINDNOW compatibility constant is defined
+ for OpenStep and Rhapsody; no longer includes <mach-o/dyld.h> twice
+ on Rhapsody since this header lacks multiple-include protection,
+ which resulted in "redefinition" compilation errors.
+
+ * main.c: also create hard reference to objc_msgSend() on NeXT
+ platforms (in addition to Apple platforms).
+
+ * lib/mkmf.rb: now exports XCFLAGS from configure script to extension
+ makefiles so that extensions can be built MAB (see configure's
+ --enable-fat-binary option); also utilize XCFLAGS in cc_command()
+ (but not cpp_command() because MAB flags are incompatible with
+ direct invocation of `cpp').
+
+ * ext/curses/extconf.rb: now additionally checks for presence of these
+ curses functions which are not present on NextStep or Openstep:
+ bkgd(), bkgdset(), color(), curs(), getbkgd(), init(), scrl(), set(),
+ setscrreg(), wattroff(), wattron(), wattrset(), wbkgd(), wbkgdset(),
+ wscrl(), wsetscrreg()
+
+ * ext/curses/curses.c: added appropriate #ifdef's for additional set of
+ curses functions now checked by extconf.rb; fixed curses_bkgd() and
+ window_bkgd() to correctly return boolean result rather than numeric
+ result; fixed window_getbkgd() to correctly signal an error by
+ returning nil rather than -1.
+
+ * ext/etc/etc.c: setup_passwd() and setup_group() now check for null
+ pointers before invoking rb_tainted_str_new2() upon fields extracted
+ from `struct passwd' and `struct group' since null pointers in some
+ fields are common on NextStep/OpenStep (especially so for the
+ `pw_comment' field) and rb_tainted_str_new2() throws an exception
+ when it receives a null pointer.
+
+ * ext/pty/pty.c: include "util.h" for strdup()/ruby_strdup() for
+ platforms such as NextStep and OpenStep which lack strdup().
+
+ * ext/socket/getaddrinfo.c: cast first argument of getservbyname(),
+ gethostbyaddr(), and gethostbyname() from (const char*) to non-const
+ (char*) for older platforms such as NextStep and OpenStep.
+
+ * ext/socket/socket.c: include "util.h" for strdup()/ruby_strdup() for
+ platforms such as NextStep and OpenStep which lack strdup(); include
+ <netinet/in_systm.h> if present for NextStep and OpenStep; cast first
+ argument of gethostbyaddr() and getservbyname() from (const char*) to
+ non-const (char*) for older platforms.
+
+ * ext/syslog/syslog.c: include "util.h" for strdup()/ruby_strdup() for
+ platforms such as NextStep and OpenStep which lack strdup().
+
+Wed Oct 8 22:19:00 2003 Nathaniel Talbott <ntalbott@ruby-lang.org>
+
+ * lib/test/unit.rb: removed installation instructions.
+
+ * lib/test/unit/ui/testrunnermediator.rb: moved the run flag to a more
+ central location.
+
+ * lib/test/unit.rb: ditto.
+
+ * lib/test/unit.rb: extracted the running code in to AutoRunner.
+
+ * lib/test/unit/autorunner.rb: added.
+
+ * lib/test/unit/collector/objectspace.rb: extracted common test
+ collection functionality in to a module.
+
+ * lib/test/unit/collector.rb: ditto; added.
+
+ * test/testunit/collector/test_objectspace.rb: ditto.
+
+ * lib/test/unit/collector/dir.rb: added. Supports collecting tests out
+ of a directory structure.
+
+ * test/testunit/collector/test_dir.rb: added.
+
+ * test/runner.rb: simplified to use the new capabilities.
+
+Tue Oct 7 15:23:09 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * test/ruby/test_beginendblock.rb: add tests for nested BEGIN/END.
+
+ * test/ruby/beginmainend.rb: add tests for nested BEGIN/END.
+
+ * test/ruby/endblockwarn.rb: new file added to test of END-in-method
+ warning.
+
+Tue Oct 7 12:23:47 2003 Tanaka Akira <akr@m17n.org>
+
+ * ext/fcntl/fcntl.c (Init_fcntl): define Fcntl::O_ACCMODE.
+
+ * ext/socket/extconf.rb: useless assignment removed.
+
+Tue Oct 7 09:13:24 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * test/ruby/test_beginendblock.rb (test_endinmethod): END{} is now
+ allowed in eval.
+
+Tue Oct 7 04:15:25 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (stmt): should not expand mrhs if lhs is solely starred.
+
+Tue Oct 7 02:57:53 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * parse.y (stmt): rhs of multiple assignment should not be
+ expanded using "to_a". [ruby-dev:21527]
+
+Tue Oct 7 01:42:34 2003 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * ext/openssl/ossl_asn1.c (ossl_asn1_get_asn1type): use appropriate
+ free function for ASN1_OBJECT.
+
+ * ext/openssl/ossl_asn1.c (ossl_asn1obj_get_sn): add new function for
+ ASN1::ObjectId#sn; it returns short name text representation of OID.
+
+ * ext/openssl/ossl_asn1.c (ossl_asn1obj_get_ln): add new function for
+ ASN1::ObjectId#ln; it returns long name text representation of OID.
+
+ * ext/openssl/ossl_asn1.c (ossl_asn1obj_get_oid): add new function for
+ ASN1::ObjectId#oid; it returns numerical representation of OID.
+
+Mon Oct 6 22:59:46 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * lib/csv.rb (IOReader, BasicWriter): call binmode when a given IO
+ respond_to?(:binmode). record separator was wrong when you gave
+ text mode IO to Reader.parse and Writer.generate.
+
+ * test/csv/test_csv.rb: add tests for above change.
+
+Mon Oct 6 16:23:38 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * marshal.c (w_object): wrong method name in the message.
+
+Mon Oct 6 16:02:05 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * parse.y (stmt): END in method should cause warning.
+ [ruby-dev:21519]
+
+Mon Oct 6 15:17:23 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * test/ruby/test_iterator.rb (test_block_argument_without_paren):
+ added. (follows sample/test.rb)
+
+Mon Oct 6 11:57:06 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * test/ruby/test_beginendblock.rb, test/ruby/beginmainend.rb: added
+ test for eval-ed BEGIN END order.
+
+Mon Oct 6 09:19:54 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * marshal.c (w_object): should pass "weak" value to next level.
+ [ruby-dev:21496]
+
+ * eval.c (proc_alloc): should not use cached object if klass is
+ different. [ruby-talk:83685]
+
+Sun Oct 5 23:27:09 2003 Tanaka Akira <akr@m17n.org>
+
+ * ext/socket/extconf.rb: check recvmsg even if sendmsg is exists.
+
+ * ext/socket/socket.c (thread_read_select): restored.
+
+ * lib/pathname.rb: version information is added in document.
+
+Sun Oct 5 23:07:03 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (rb_f_END): block should be given. [ruby-dev:21497]
+
+Sun Oct 5 22:51:23 2003 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * lib/ext/openssl/extconf.rb: add check for some engine functions
+ unavailable in OpenSSL-0.9.6.
+
+ * lib/ext/openssl/ossl_engine.c: ditto.
+
+Sun Oct 5 17:56:30 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (rb_eval): fix evaluation order. [ruby-list:38431]
+
+Sun Oct 5 15:05:06 2003 akira yamada <akira@ruby-lang.org>
+
+ * test/uri/*: translated RUNIT to Test::Unit.
+
+Sun Oct 5 14:37:39 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * lib/xsd/datatypes.rb: Rational -> Decimal string bug fix.
+
+ * test/soap/marshal/test_marshal.rb: ditto.
+
+ * test/soap/calc/test_calc_cgi.rb: add Config::CONFIG["EXEEXT"] to
+ RUBYBIN.
+
+Sun Oct 5 13:47:22 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * test/ruby/test_beginendblock.rb, test/ruby/beginmainend.rb: add tests
+ about scope, order and allowed syntax.
+
+Sun Oct 5 11:54:29 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * test/ruby/envutil.rb: added. split "rubybin" from test_system.rb.
+
+ * test/ruby/test_system.rb: use envutil.rb
+
+ * test/ruby/test_beginendblock.rb: added.
+
+ * test/ruby/beginmainend.rb: added. used in test_beginendblock.rb.
+
+Sun Oct 5 11:23:00 2003 Nathaniel Talbott <ntalbott@ruby-lang.org>
+
+ * test/testunit/runit/test_testresult.rb: removed some unnecessary
+ cruft.
+
+Sun Oct 5 11:14:00 2003 Nathaniel Talbott <ntalbott@ruby-lang.org>
+
+ * lib/rubyunit.rb: aliasing TestCase into the top level is
+ problematic.
+
+ * lib/runit/assert.rb: fixed a couple of bugs caused by recent
+ refactoring in Test::Unit.
+
+ * test/testunit/runit/*: added.
+
+Sun Oct 5 10:55:29 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * lib/open-uri.rb (URI::Generic#find_proxy): no_proxy support did not
+ work. [ruby-dev:21484]
+
+Sun Oct 5 09:52:00 2003 Nathaniel Talbott <ntalbott@ruby-lang.org>
+
+ * lib/test/unit/assertions.rb: will use pp for output if available.
+ Can be disabled by setting Assertions.use_pp = false.
+
+ * test/testunit/test_assertions.rb: made a small change to exception
+ formatting.
+
+Sun Oct 5 07:42:00 2003 Nathaniel Talbott <ntalbott@ruby-lang.org>
+
+ * lib/test/unit/assertions.rb: made small improvements to assertion
+ messages. Deprecated Assertions#assert_not_nil; use #assert instead.
+
+ * test/testunit/test_assertions.rb: ditto.
+
+ * test/testunit/util/test_procwrapper.rb: use #assert instead of
+ #assert_not_nil.
+
+Sun Oct 5 04:10:00 2003 Nathaniel Talbott <ntalbott@ruby-lang.org>
+
+ * lib/test/unit/assertions.rb: refactored message building.
+
+Sun Oct 5 03:40:22 2003 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * ext/openssl/ossl_asn1.h: global symbols should be declared
+ as external.
+
+Sun Oct 5 03:03:20 2003 akira yamada <akira@ruby-lang.org>
+
+ * test/ruby/test_exception.rb (test_else): added.
+
+Sun Oct 5 02:12:00 2003 Nathaniel Talbott <ntalbott@ruby-lang.org>
+
+ * lib/test/unit/assertions.rb: changed assertion messages to rely more
+ heavily on #inspect. Added backtrace filtering for exceptions in
+ assertion messages.
+
+ * test/testunit/test_assertions.rb: ditto.
+
+Sun Oct 5 02:12:00 2003 Masatoshi SEKI <m_seki@mva.biglobe.ne.jp>
+
+ * lib/drb/acl.rb, lib/drb/ssl.rb: added.
+
+ * lib/drb/drb.rb: exit from a thread using 'break'.
+
+Sat Oct 4 21:49:14 2003 WATANABE Hirofumi <eban@ruby-lang.org>
+
+ * gc.c (Init_stack): the type of space is changed to unsigned int
+ from double. [ruby-dev:21483]
+
+Sat Oct 4 17:52:59 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * lib/soap/netHttpClient.rb: follow http-access2. hosts which matches
+ ENV['no_proxy'] or ENV['NO_PROXY'] are not proxyed.
+ - [,:] separated. ("ruby-lang.org:rubyist.net")
+ - no regexp. (give "ruby-lang.org", not "*.ruby-lang.org")
+ - if you want specify host by IP address, give full address.
+ ("192.168.1.1, 192.168.1.2")
+
+ * lib/soap/rpc/cgistub.rb: return "Status: XXX MMM" line.
+
+ * test/runner.rb: give testsuite name.
+
+Sat Oct 4 15:16:02 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * marshal.c (w_object): instance variable dump do not cause error
+ for objects that cannot be dumped, if they traversed from
+ marshal_dump. they are just ignored.
+
+ * gc.c (Init_stack): cast "space" (doble value) into unsigned
+ int. should run on PowerPC.
+
+ * eval.c (rb_eval): should not execute else part if any exception
+ is caught. [ruby-dev:21482]
+
+ * parse.y (f_args): should allow unparenthesized block argument.
+
+ * parse.y (f_rest_arg): should allow unparenthesized rest
+ argument.
+
+Sat Oct 4 14:59:51 2003 Tanaka Akira <akr@m17n.org>
+
+ * lib/pathname.rb (initialize): raise ArgumentError if argument has
+ '\0' character.
+ (relative_path_from): new method.
+ (each_entry): new method for replacement of dir_foreach.
+ (foreach, foreachline, dir_foreach, chdir): obsoleted.
+
+Sat Oct 4 12:58:48 2003 akira yamada <akira@ruby-lang.org>
+
+ * test/uri/* (6 files): added.
+
+Sat Oct 4 12:44:45 2003 akira yamada <akira@ruby-lang.org>
+
+ * lib/uri/ftp.rb, lib/uri/mailto.rb: renamed to #to_s from #to_str.
+
+Sat Oct 4 07:33:00 2003 Nathaniel Talbott <ntalbott@ruby-lang.org>
+
+ * lib/test/unit/testsuite.rb: changed #<< to return self, and added
+ #delete.
+
+ * test/testunit/test_testsuite.rb: ditto. Also slightly refactored
+ #test_size.
+
+ * lib/test/unit/collector/objectspace.rb: collector now preserves the
+ hierarchy of suites.
+
+ * test/testunit/collector/test_objectspace.rb: ditto.
+
+Sat Oct 4 04:48:49 2003 why the lucky stiff <why@ruby-lang.org>
+
+ * ext/syck/rubyext.c: default keys handled.
+
+ * ext/syck/syck.h: lowered default buffer size to 16k for increased
+ performance.
+
+ * test/yaml: checkin of basic unit tests.
+
+Sat Oct 4 04:24:19 2003 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * ext/openssl/extconf.rb: add check for X509V3_set_nconf.
+
+ * ext/openssl/ossl_x509ext.c (ossl_x509extfactory_set_config):
+ cannot implement if X509V3_set_nconf doesn't exist.
+
+Sat Oct 4 02:12:44 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * lib/xsd/datatypes.rb: dump sign by itself. under the problematic
+ platform, sprintf("%+.10g", -0.0) => +0. sigh.
+
+ * sample/wsdl/amazon/*: update schema ver2 to ver3.
+
+Sat Oct 4 01:33:46 2003 Tanaka Akira <akr@m17n.org>
+
+ * lib/pathname.rb (initialize): duplicate and freeze argument.
+ (to_s): return duplicated string.
+ (children): new method.
+ (each_line): new alias to foreachline.
+
+Fri Oct 3 16:13:19 2003 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * ext/openssl/ossl_asn1.c: add DER encoder and decoder.
+
+ * ext/openssl/ossl_asn1.h: add OpenSSL::ASN1 module.
+
+ * ext/openssl/ossl.c (Init_openssl): call Init_ossl_asn1.
+
+ * ext/openssl/extconf.rb: check if X509_ATTRIBUTE has field "single".
+
+ * ext/openssl/ossl_x509attr.c (ossl_x509attr_set_value): accept
+ DER encoded data argument.
+
+ * ext/openssl/ossl_x509attr.c (ossl_x509attr_get_value): return
+ DER encoded data in OpenSSL::ASN1 types.
+
+Fri Oct 3 13:02:00 2003 Nathaniel Talbott <ntalbott@ruby-lang.org>
+
+ * lib/test/unit.rb: refactored to use optparse.
+
+ * lib/test/unit.rb: added support for selecting the output
+ level from the command-line.
+
+ * lib/test/unit.rb: added a command-line switch to stop processing
+ the command-line, allowing arguments to be passed to tests.
+
+ * lib/test/unit.rb: changed the method for specifying a runner or a
+ filter from the command-line.
+
+ * lib/test/unit/collector/objectspace.rb: fixed a bug causing all
+ tests to be excluded when the filter was set to an empty array.
+
+ * test/testunit/collector/test_objectspace.rb: ditto.
+
+Fri Oct 3 08:14:32 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/irb/ruby-lex.rb (RubyLex::identify_identifier): support
+ 'class ::Foo' syntax. [ruby-talk:83514]
+
+Fri Oct 3 08:01:00 2003 Nathaniel Talbott <ntalbott@ruby-lang.org>
+
+ * lib/test/unit/assertions.rb: added a default message for #assert,
+ #assert_block, and #flunk.
+
+ * test/testunit/test_assertions.rb: ditto.
+
+ * lib/test/unit/failure.rb: failures now show a better trace of where
+ they occurred.
+
+ * test/testunit/test_failure.rb: ditto (added).
+
+ * lib/test/unit/testcase.rb: ditto.
+
+ * test/testunit/test_testcase.rb: ditto.
+
+ * lib/test/unit/util/backtracefilter.rb: added.
+
+ * test/testunit/util/test_backtracefilter.rb: added.
+
+ * lib/test/unit/error.rb: changed to use BacktraceFilter and improved
+ output.
+
+ * test/testunit/test_error.rb: ditto.
+
+Thu Oct 2 20:33:49 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/iconv/iconv.c (iconv_failure_initialize): conform with
+ orthodox initialization method.
+
+ * ext/iconv/iconv.c (iconv_fail): initialize exception instance
+ from the class, and do not share instance variables with the
+ others. [ruby-dev:21470]
+
+Thu Oct 2 18:20:27 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * time.c (Init_Time): define initialize. [ruby-dev:21469]
+
+Thu Oct 2 17:39:38 2003 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * ext/openssl/ossl_engine.c: add a new module OpenSSL::Engine.
+ it supports OpenSSL hardware cryptographic engine interface.
+
+ * ext/openssl/ossl_engine.h: ditto.
+
+ * ext/openssl/MANIFEST: add ossl_engine.c and ossl_engine.h.
+
+ * ext/openssl/extconf.rb: add check for openssl/engine.h.
+
+ * ext/openssl/ossl.c: call Init_ossl_engine().
+
+ * ext/openssl/ossl.h: include openssl/engine.h.
+
+ * ext/openssl/ossl_pkey_{rsa,dsa,dh}.c: check if underlying
+ EVP_PKEY referes engine.
+
+Thu Oct 2 17:22:37 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * time.c (time_load): restore instance variables (if any) before
+ loading from marshaled data.
+
+Thu Oct 2 14:19:15 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/iconv/iconv.c (iconv_fail): now yield erred substring, and
+ set error object to $!.
+
+ * ext/iconv/iconv.c (iconv_convert): error handler block should
+ return appended part and the rest. if rest is nil, the
+ conversion stops.
+
+Thu Oct 2 12:00:18 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * variable.c (rb_const_defined_0): look up constants in Object as
+ well. [ruby-dev:21458]
+
+ * test/ruby/test_defined.rb (TestDefined::test_defined): test for
+ constants.
+
+Thu Oct 2 11:17:00 2003 Nathaniel Talbott <ntalbott@ruby-lang.org>
+
+ * lib/test/unit/assertions.rb: should not capture an
+ AssertionFailedError unless explicitly requested.
+
+ * test/testunit/test_assertions.rb: ditto.
+
+ * test/testunit/collector/test_objectspace.rb: fixed a test failure
+ caused by methods being returned in different orders on different
+ platforms by moving test sorting from TestSuite into the locations
+ where suites are constructed. [ruby-talk:83156]
+
+ * lib/test/unit/testcase.rb: ditto.
+
+ * lib/test/unit/testsuite.rb: ditto.
+
+ * lib/test/unit/collector/objectspace.rb: ditto.
+
+Thu Oct 2 03:25:01 2003 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * eval.c (rb_thread_raise): prototype; avoid VC++ warning.
+
+Thu Oct 2 01:37:34 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * time.c (time_mdump): new marshal dumper. _dump is still
+ available for compatibility.
+
+ * time.c (time_mload): new marshal loader.
+
+ * marshal.c (w_object): preserve instance variables for objects
+ with marshal_dump.
+
+ * marshal.c (r_object0): restore instance variables before calling
+ marshal_load.
+
+ * error.c (rb_warn_m): always return nil.
+
+Thu Oct 2 01:32:46 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (rb_f_block_given_p): real required condition is
+ ruby_frame->prev->iter == ITER_CUR.
+
+ * eval.c (rb_block_given_p): ditto.
+
+ * eval.c (block_pass): update ruby_frame->iter only when previous
+ value is ITER_NOT.
+
+Thu Oct 2 01:02:35 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * variable.c (rb_const_defined_at): should exclude constants from
+ Object when TYPE(klass) == T_MODULE *and* exclude is on.
+ [ruby-dev:21458]
+
+ * variable.c (rb_const_get_0): do not lookup constants from Object
+ when TYPE(klass) == T_MODULE *and* exclude is on.
+
+Thu Oct 2 00:21:11 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * test/logger/test_logger.rb: unlinking file before close causes
+ problem under win32 box.
+
+ * lib/xsd/datatypes.rb(XSDFloat, XSDDouble): add +/- sign explicitly
+ when stringified and embedded into XML instance. Ruby's sprintf may
+ format -0.0 as "0.0" (no minus sign) depending on underlying C
+ sprintf implementation.
+
+ * test/xsd/test_xsd.rb, test/soap/test_basetype.rb: follow above change.
+
+ * test/soap/calc/*: give httpd config param "CGIInterpreter".
+ "/usr/bin/env ruby" thing does not work under non-Unix boxes.
+
+Thu Oct 2 00:25:21 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * signal.c (ruby_signal_name): adjust to the prototype.
+
+ * process.c (pst_inspect): ditto.
+
+ * ext/etc/etc.c (etc_getgrent, Init_etc): typo.
+
+Wed Oct 1 20:49:41 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * gc.c (heaps): manage slots and limits together. [ruby-dev:21453]
+
+ * gc.c (add_heap): should not clear heaps slot even if realloc()
+ failed.
+
+Wed Oct 1 20:36:49 2003 WATANABE Hirofumi <eban@ruby-lang.org>
+
+ * MANIFEST: add wince/mkconfig_wce.rb.
+
+Wed Oct 1 17:22:33 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ext/etc/etc.c: add new functions: setpwent, getpwent, endpwent,
+ setgrent, getgrent, endgrent.
+
+ * ext/socket/socket.c (sock_s_gethostbyname): do not reverse lookup.
+
+Wed Oct 1 17:01:30 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (rb_load): Object scope had priority over required file
+ scope. [ruby-dev:21415]
+
+Wed Oct 1 14:09:53 2003 Takaaki Uematsu <uema2x@jcom.home.ne.jp>
+
+ * wince/mkconfig_wce.rb: sorry, forget to commit.
+
+Wed Oct 1 10:08:42 2003 Takaaki Uematsu <uema2x@jcom.home.ne.jp>
+
+ * wince/setup.mak: add sigmarionIII SDK support.
+
+ * wince/Makefile.sub: ditto.
+
+ * wince/mkexports.rb: fix linker error in SH4.
+
+ * wince/mkconfig_wce.rb: camouflage RUBY_PLATFORM for compiling ext.
+
+Wed Oct 1 08:02:52 2003 Takaaki Uematsu <uema2x@jcom.home.ne.jp>
+
+ * wince/time_wce.c (time): add zero check.
+
+Tue Sep 30 16:11:05 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * Makefile.in: copy lex.c from $(srcdir) if it's not the current
+ directory. [ruby-dev:21437]
+
+Tue Sep 30 11:29:23 2003 Tanaka Akira <akr@m17n.org>
+
+ * process.c (pst_inspect): describe stopped process "stopped".
+
+Tue Sep 30 09:31:56 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * test/runner.rb: glob for directories.
+
+Tue Sep 30 09:11:43 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (rb_eval): while/until should not capture break unless
+ they are destination of the break.
+
+Tue Sep 30 03:12:02 2003 Minero Aoki <aamine@loveruby.net>
+
+ * lib/net/http.rb (finish): revert to 1.93.
+
+ * lib/net/pop.rb (finish): revert to 1.60.
+
+ * lib/net/smtp.rb (finish): revert to 1.67.
+
+ * lib/net/http.rb (do_start): ensure to close socket if failed to
+ start session.
+
+ * lib/net/pop.rb (do_start): ditto.
+
+ * lib/net/smtp.rb (do_start): ditto.
+
+ * lib/net/smtp.rb: SMTP#started? wrongly returned false always.
+
+Tue Sep 30 02:54:49 2003 Minero Aoki <aamine@loveruby.net>
+
+ * test/ruby/test_iterator.rb: new test
+ test_break__nested_loop[123].
+
+Mon Sep 29 23:39:13 2003 Minero Aoki <aamine@loveruby.net>
+
+ * lib/net/http.rb (finish): does not raise IOError even if
+ !started?, to allow closing socket which was opened before
+ session started.
+
+ * lib/net/pop.rb (finish): ditto.
+
+ * lib/net/smtp.rb (finish): ditto.
+
+Mon Sep 29 19:06:51 2003 WATANABE Hirofumi <eban@ruby-lang.org>
+
+ * ext/win32ole/extconf.rb: add windows.h checking.
+ (ruby-bugs:PR#1185)
+
+Mon Sep 29 16:18:30 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * lib/logger.rb: check if the given logdevice object respond_to :write
+ and :close, not is_a? IO. duck duck.
+
+ * test/logger/test_logger.rb: self IO.pipe reading/writing may be
+ locked by the flood. use tempfile.
+
+ * lib/wsdl/xmlSchema/data.rb: wrong constant reference.
+
+Mon Sep 29 16:11:23 2003 Minero Aoki <aamine@loveruby.net>
+
+ * test/fileutils/test_fileutils.rb: clean up temporary symlink.
+ Patched by NaHi. [ruby-dev:21420]
+
+Mon Sep 29 11:16:55 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (rb_thread_atfork): wrong format specifier.
+ [ruby-dev:21428]
+
+ * process.c (pst_inspect): better description.
+
+Mon Sep 29 02:31:44 2003 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * lib/webrick/utils.rb (Utils::su): use setgid and setuid to
+ set real and effective IDs. and setup group access list by
+ initgroups.
+
+Sun Sep 28 11:14:19 2003 Koji Arai <jca02266@nifty.ne.jp>
+
+ * ext/digest/digest.c (Init_digest): `copy_object' was deprecated.
+ `initialize_copy' should be defined.
+
+ * ext/stringio/stringio.c (Init_stringio): ditto.
+
+Sat Sep 27 18:25:13 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * lib/xsd/charset.rb: XSD::Charset.is_ces did return always true under
+ $KCODE = "NONE" environment. check added.
+
+ * test/xsd/test_xsd.rb: add tests for above fix.
+
+Sat Sep 27 15:58:50 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * lib/soap/rpc/cgistub.rb: make logging severity threshold higher.
+
+ * lib/soap/rpc/standaloneServer.rb: defer WEBrick server start to give
+ a chance to reset logging severity threshold.
+
+ * test/soap/calc/test_*, test/soap/helloworld/test_helloworld.rb: run
+ silent.
+
+Sat Sep 27 09:44:18 2003 Minero Aoki <aamine@loveruby.net>
+
+ * test/fileutils/test_fileutils.rb: clear all errors on Windows.
+ [ruby-dev:21417]
+
+ * test/fileutils/test_nowrite.rb: ditto.
+
+Sat Sep 27 04:57:07 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * test/ruby/test_file.rb: new file. only asserts unlink-before-close
+ behaviour now.
+
+ * test/soap/marshal/test_digraph.rb: should close before unlink.
+ unlink-before-close pattern is not needed here.
+
+Sat Sep 27 03:32:37 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * test/soap/*, test/wsdl/*, test/xsd/*: move TestCase classes into
+ each module namespace. TestMarshal in
+ test/soap/marshal/test_marshal.rb crashed with
+ test/ruby/test_marshal.rb.
+
+Sat Sep 27 01:30:59 2003 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * ext/socket/socket.c (ruby_connect): on win32, type of the 4th
+ argument of getsockopt is char *.
+
+Fri Sep 26 18:35:40 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/resolv-replace.rb: 1.8 compliance. [ruby-talk:82946]
+
+Fri Sep 26 17:39:27 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * test/ruby/test_marshal.rb: add test for ruby's objects.
+
+Fri Sep 26 09:52:44 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * defines.h (flush_register_windows): use volatile only for gcc on
+ Solaris. [ruby-dev:21403]
+
+ * lib/mkmf.rb (xsystem): use system directly to honor shell meta
+ charaters.
+
+Fri Sep 26 00:10:13 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * lib/README: updated.
+
+Thu Sep 25 17:48:10 2003 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * ext/openssl/ossl.c (ossl_buf2str): fix type of 1st argument for
+ rb_protect.
+
+ * ext/openssl/ossl_hmac.c (ossl_hmac_digest): should return meaningful
+ value.
+
+Thu Sep 25 09:00:00 2003 Nathaniel Talbott <ntalbott@ruby-lang.org>
+
+ * lib/ostruct.rb: Added OpenStruct#==.
+
+ * test/ostruct/test_ostruct.rb: Added.
+
+Thu Sep 25 07:55:26 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/win32ole/win32ole.c, ext/openssl/ossl_pkey_dsa.c,
+ ext/openssl/ossl_pkey_rsa.c, ext/bigdecimal/bigdecimal.h: must
+ not use C++ or C99 style comment yet. (ruby-bugs:PR#1184)
+
+Thu Sep 25 00:23:22 2003 WATANABE Hirofumi <eban@ruby-lang.org>
+
+ * MANIFEST: add SOAP4R.
+
+Thu Sep 25 00:13:15 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * lib/soap/* (29 files): SOAP4R added.
+
+ * lib/wsdl/* (42 files): WSDL4R added.
+
+ * lib/xsd/* (12 files): XSD4R added.
+
+ * test/soap/* (16 files): added.
+
+ * test/wsdl/* (2 files): added.
+
+ * test/xsd/* (3 files): added.
+
+ * sample/soap/* (27 files): added.
+
+ * sample/wsdl/* (13 files): added.
+
+Wed Sep 24 02:08:11 2003 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * lib/webrick/httpservlet/cgihandler.rb: conform to mswin32.
+ [ruby-talk:82735], [ruby-talk:82748], [ruby-talk:82818]
+
+Tue Sep 23 23:10:16 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * lib/logger.rb: add Logger#<<(msg) for writing msg without any
+ formatting.
+
+ * test/logger/test_logger.rb: ditto.
+
+Tue Sep 23 20:47:51 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * error.c (rb_warn_m): should not warn if -W0 is specified.
+ [ruby-talk:82675]
+
+Mon Sep 22 21:28:57 2003 WATANABE Hirofumi <eban@ruby-lang.org>
+
+ * MANIFEST: updated.
+
+Mon Sep 22 19:22:26 2003 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * configure.in (AC_CHECK_FUNCS): add setuid and setgid.
+
+Mon Sep 22 12:34:55 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * util.c (ruby_strtod): skip preceding zeros before counting
+ digits in the mantissa. (ruby-bugs:PR#1181)
+
+Sun Sep 21 04:12:36 2003 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * ext/openssl/ossl_ocsp.c (ossl_ocspreq_initialize): the argument
+ should be a String.
+
+ * ext/openssl/ossl_ocsp.c (ossl_ocspres_initialize): ditt.
+
+ * ext/openssl/ossl_x509attr.c (ossl_x509attr_initialize): ditto.
+
+ * ext/openssl/ossl_x509ext.c (ossl_x509ext_initialize): ditto.
+
+ * ext/openssl/ossl_x509ext.c (ossl_x509ext_set_value): ditto.
+
+Sat Sep 20 11:49:05 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * lib/logger.rb: typo fixed.
+
+ * test/logger/test_logger.rb: new file.
+
+Fri Sep 19 11:39:00 2003 Nathaniel Talbott <ntalbott@ruby-lang.org>
+
+ * test/testunit/*: Added.
+
+ * lib/test/unit.rb: Documentation update.
+
+ * lib/test/unit/ui/console/testrunner.rb (TestRunner#initialize):
+ Ditto.
+
+ * lib/test/unit.rb: Factored out an ObjectSpace collector.
+
+ * lib/test/unit/collector/objectspace.rb: Ditto.
+
+ * sample/testunit/*: Added.
+
+Fri Sep 19 01:00:48 2003 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * lib/webrick/log.rb (BasicLog#log): get rid of as ineffectual
+ condition.
+
+ * lib/webrick/log.rb (BasicLog#format): add "\n" to message.
+
+Thu Sep 18 22:43:20 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (proc_invoke): should push PROT_PCALL tag for orphans.
+
+ * eval.c (proc_invoke): should update "result" for orphans.
+
+Thu Sep 18 20:33:03 2003 Tietew <tietew-ml-ruby-list@tietew.net>
+
+ * parse.y (str_xquote): do not prepend escapes in
+ backqoute literals. [ruby-list:38409]
+
+Thu Sep 18 20:30:17 2003 Tanaka Akira <akr@m17n.org>
+
+ * lib/pathname.rb: update document.
+
+Thu Sep 18 15:27:05 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * lib/logger.rb: new file. Logger, formerly called devel-logger or
+ Devel::Logger.
+
+ * sample/logger/*: new file. samples of logger.rb.
+
+Wed Sep 17 23:41:45 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (localjump_destination): should not raise ThreadError
+ exception for "break". [ruby-dev:21348]
+
+ * eval.c (proc_invoke): use result instead of prot_tag->retval.
+ retval is no longer propagated to the ancestors.
+
+Wed Sep 17 20:34:00 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (tokadd_string, parse_string, yylex): escaped terminator
+ is now interpreted as is. [ruby-talk:82206]
+
+Wed Sep 17 18:52:36 2003 Minero Aoki <aamine@loveruby.net>
+
+ * test/fileutils/fileassertions.rb: new file.
+
+ * test/fileutils/test_fileutils.rb: new file.
+
+ * test/fileutils/test_nowrite.rb: new file.
+
+Wed Sep 17 18:51:02 2003 Minero Aoki <aamine@loveruby.net>
+
+ * test/strscan/test_stringscanner.rb: require test/unit.
+
+Wed Sep 17 18:35:34 2003 Minero Aoki <aamine@loveruby.net>
+
+ * test/strscan/test_stringscanner.rb: new file.
+
+Wed Sep 17 18:03:30 2003 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * ext/openssl: all files are reviewed to simplify and avoid memory leak.
+
+ * ext/openssl/extconf.rb: add check for assert.h.
+
+ * ext/openssl/ossl.c (ossl_buf2str): new function to convert
+ C buffer to String and free buffer.
+
+ * ext/openssl/ossl.c (ossl_x509_ary2sk): new function to convert
+ Array of OpenSSL::X509 to STACK_OF(X509) with exception safe.
+
+ * ext/openssl/ossl.c (ossl_to_der, ossl_to_der_if_possible): new
+ functions to convert object to DER string.
+
+ * ext/openssl/ossl.h: ditto.
+
+ * ext/openssl/ossl_bio.c (ossl_membio2str): new function to convert
+ BIO to String object and free BIO.
+
+ * ext/openssl/ossl_bio.h: ditto.
+
+ * ext/openssl/ossl_pkcs7.c (ossl_pkcs7_to_der): add for "to_der".
+
+ * ext/openssl/ossl_x509name.c (ossl_x509name_to_der): ditto.
+
+ * ext/openssl/ossl_x509ext.c (ossl_x509ext_to_der): ditto.
+
+ * ext/openssl/ossl_x509ext.c (create_ext_from_array): removed
+ and reimplement in openssl/x509.rb.
+
+ * ext/openssl/ossl_x509attr.c: reimplemented and disable some
+ method temporarily. this class doesn't work fine without ASN.1
+ data support;-) I'll rewrite in near future.
+
+ * ext/openssl/lib/openssl/x509.c (X509::Attribute): get rid off
+ unused code.
+
+ * ext/openssl/lib/openssl/x509.c (X509::ExtensionFactory): refine all.
+
+Tue Sep 16 22:25:06 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * test/csv/test_csv.rb: add negative tests of row_sep.
+
+Tue Sep 16 18:02:36 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * regex.c (re_compile_pattern): should not translate character
+ class range edge. [ruby-list:38393]
+
+Tue Sep 16 16:47:56 2003 WATANABE Hirofumi <eban@ruby-lang.org>
+
+ * MANIFEST: add test/csv/mac.csv.
+
+ * win32/Makefile.sub, bcc32/Makefile.sub (test): add phony NUL target.
+
+Mon Sep 15 19:02:52 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * lib/csv.rb: add extra pamameter to specify row(record) separater
+ character. To parse Mac's CR separated CSV, do like this.
+ CSV.open("mac.csv", "r", ?,, ?\r) { |row| p row.to_a }
+ The 3rd parameter in this example ?, is for column separater and the
+ 4th ?\r is for row separater. Row separater is nil by default. Nil
+ separater means "\r\n" or "\n".
+
+ * test/csv/test_csv.rb: add tests for above feature.
+
+ * test/csv/mac.csv: added. Sample CR separated CSV file.
+
+Fri Sep 12 22:41:48 2003 Michal Rokos <m.rokos@sh.cvut.cz>
+
+ * ext/openssl/ossl.c: move ASN.1 stuff to ossl_asn1.[ch]
+
+ * ext/openssl/ossl.c: move BIO stuff to ossl_bio.[ch]
+
+ * ext/openssl/ossl_asn1.[ch]: new files
+
+ * ext/openssl/ossl_bio.[ch]: new files
+
+Fri Sep 12 12:30:41 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * intern.h (rb_disable_super, rb_enable_super): replace with dummy
+ expressions instead of prototypes. the functions remain yet for
+ binary compatibility. [ruby-talk:81758]
+
+Fri Sep 12 12:09:54 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * bignum.c (rb_big_and): convert argument using 'to_int'.
+
+ * bignum.c (rb_big_or): ditto.
+
+ * bignum.c (rb_big_xor): ditto.
+
+Fri Sep 12 07:06:14 2003 David Black <dblack@superlink.net>
+
+ * lib/scanf.rb: Took out useless @matched_item variable; some small
+ refactoring.
+
+Thu Sep 11 08:43:44 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (rb_f_require): allow "require" on $SAFE>0, if feature
+ name is not tainted.
+
+ * lib/rexml/parsers/baseparser.rb (REXML::Parsers::BaseParser::stream):
+ Supports StringIO.
+
+Wed Sep 10 22:47:30 2003 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * ext/openssl/ossl.h: add a workaround for win32 platform.
+ libeay32.dll doesn't export functions defined in conf_api.h.
+
+ * ext/openssl/ossl_config.c (ossl_config_initialize): ditto.
+
+ * ext/openssl/ossl_config.c (ossl_config_add_value): ditto.
+
+ * ext/openssl/ossl_config.c (set_conf_section_i): should check
+ if the argument is Array.
+
+Wed Sep 10 22:41:54 2003 Tietew <tietew@tietew.net>
+
+ * eval.c (win32_get_exception_list): avoid VC7 warning.
+ [ruby-win32:577]
+
+Tue Sep 9 10:39:51 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (struct tag): dst should be VALUE.
+
+ * eval.c (localjump_destination): stop at the scope where the current
+ block was created. [ruby-dev:21353]
+
+Tue Sep 9 05:17:04 2003 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * ext/openssl/ossl_config.rb: avoid compile error in OpenSSL-0.9.6.
+
+Tue Sep 9 02:41:35 2003 Michal Rokos <m.rokos@sh.cvut.cz>
+
+ * ext/openssl/ossl_config.c: Refine compatibility.
+
+Tue Sep 9 01:50:45 2003 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * lib/webrick/httpserver.rb (HTTPServer#access_log): add "\n" to
+ the message.
+
+ * lib/webrick/log.rb (BasicLog#log): add "\n" only if needed.
+
+Mon Sep 8 22:15:33 2003 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/multi-tk.rb: modify security check at creating
+ a new interpreter
+
+Mon Sep 8 20:00:12 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/optparse.rb, lib/optparse/version.rb: search also all
+ capital versions.
+
+Mon Sep 8 19:26:33 2003 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * ext/openssl/ossl.h: include openssl/conf.h and openssl/conf_api.h.
+
+ * ext/openssl/ossl_config.c: refine all with backward compatibility.
+
+ * ext/openssl/ossl_config.h: export GetConfigPtr() and DupConfigPtr().
+
+ * ext/openssl/ossl_x509.c: added new constants under X509 module.
+ DEFAULT_CERT_AREA, DEFAULT_CERT_DIR, DEFAULT_CERT_FILE,
+ DEFAULT_CERT_DIR_ENV, DEFAULT_CERT_FILE_ENV and DEFAULT_PRIVATE_DIR.
+
+ * ext/openssl/ossl_x509ext.c (ossl_x509extfactory_free): don't free
+ the members of the struct. it's left to GC.
+
+ * ext/openssl/ossl_x509ext.c (ossl_x509_set_config): add for config=.
+
+ * ext/openssl/ossl_x509ext.c (Xossl_x509extfactory_initialize):
+ add attr readers: issuer_certificate, subject_certificate,
+ subject_request, crl and config.
+
+Mon Sep 8 18:26:41 2003 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * lib/webrick/accesslog.rb (AccessLog::setup_params): use req.port
+ instead of config[:Port] or req.request_uri.port.
+
+ * lib/webrick/httprequest.rb (HTTPRequest#meta_vars): ditto.
+
+ * lib/webrick/httpservlet/filehandler.rb (FileHandler#dir_list): ditto.
+
+ * lib/webrick/config.rb: :Listen option never be used.
+
+ * lib/webrick/server.rb (GenericServer#initialize): don't use :Listen
+ option and add warning message.
+
+ * lib/webrick/log.rb (BasicLog#<<): shortcut of log(INFO, ...).
+
+ * lib/webrick/httpserver.rb (HTTPServer#accesslog): use << for logging.
+
+Sun Sep 7 16:08:28 2003 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tcltklib/tcltklib.c (lib_mainloop_core): fixed signal-trap bug
+
+ * ext/tk/lib/*.rb: Ruby/Tk works at $SAFE == 4
+
+Sat Sep 6 02:26:34 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * test/ruby/test_*.rb: assert_same, assert_match, and so on.
+
+Sat Sep 6 18:45:46 2003 Mauricio Fernandez <batsman.geo@yahoo.com>
+
+ * parse.y (assignable): call rb_compile_error(), not rb_bug().
+ [ruby-core:01523]
+
+Sat Sep 6 17:40:41 2003 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * ext/openssl/ruby_missing.c: rid of unnecessary backward
+ compatibility stuff. and remove DEFINE_ALLOC_WRAPPER from
+ all sources.
+
+ * ext/openssl/ossl_x509ext.c (X509::Extension.new): new method.
+
+ * ext/openssl/ossl_x509ext.c (X509::Extension#oid=): new method.
+
+ * ext/openssl/ossl_x509ext.c (X509::Extension#value=): new method.
+
+ * ext/openssl/ossl_x509ext.c (X509::Extension#critical=): new method.
+
+Sat Sep 6 01:23:22 2003 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/win32.c (CreateChild): need to quote cmd if RUBYSHELL is set.
+
+ * win32/win32.c (CreateChild): fix condition about whether to call
+ shell or not.
+
+Sat Sep 6 00:36:20 2003 Nobuyoshi Nakada <nobu.nokada@softhome.net>
+
+ * Makefile.in (test): phony target.
+
+ * lib/mkmf.rb (have_library, find_library): configure by library
+ name.
+
+ * lib/optparse.rb (OptionParser#order, #permute, #parse): allow an
+ array as argument.
+
+ * test/ruby/test_*.rb: moved invariants to left side in
+ assert_equal, and use assert_nil, assert_raises and so on.
+
+ * win32/win32.c (isInternalCmd): distinguish command.com and
+ cmd.exe.
+
+ * win32/win32.c (make_cmdvector): a character just after wildcard
+ was ignored. [ruby-core:01518]
+
+Fri Sep 5 20:27:08 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * test/ruby/test_*.rb: replace 'assert(a == b)' with assert_equal(a, b)'
+
+Fri Sep 5 18:00:51 2003 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * ext/openssl/lib/openssl/x509.rb: new method X509::Name::parse.
+
+ * ext/openssl/ossl_digest.c: add ossl_digest_new().
+
+ * ext/openssl/ossl_digest.h: ditto.
+
+ * ext/openssl/ossl_cipher.c: add ossl_cipher_new().
+
+ * ext/openssl/ossl_cipher.h: ditto.
+
+Fri Sep 5 15:32:04 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * misc/ruby-mode.el (ruby-font-lock-maybe-here-docs): should not
+ search delimiter forward if found in backward.
+
+Fri Sep 5 13:32:48 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * test/runner.rb: arguments should be keys.
+
+Fri Sep 5 12:09:55 2003 WATANABE Hirofumi <eban@ruby-lang.org>
+
+ * test/ruby/test_system.rb (test_system): check existence of ruby
+ interpreter.
+
+Fri Sep 5 11:32:17 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/optparse.rb (--version): fix assignment/reference order.
+
+ * lib/optparse.rb (OptionParser#help): new; OptionParser#to_s may
+ be deprecated in future.
+
+ * lib/optparse/version.rb (OptionParser#show_version): hide Object.
+
+ * test/runner.rb: fix optparse usage.
+
+ * test/runner.rb: glob all testsuits if no tests given.
+
+Fri Sep 5 10:42:58 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * test/runner.rb: added. gets testcases from command line and runs it.
+
+ * test/ruby/test_gc.rb: remove useless part which was for dumping test
+ result.
+
+Fri Sep 5 09:28:59 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * test/ruby/test_gc.rb: added. splitter.rb which I made to split
+ sample/test.rb into test/ruby/test_* kindly removed GC test (the
+ last section in the original test) to reduce things to be worried.
+
+Fri Sep 5 03:00:04 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * test/ruby/test_iterator.rb (test_block_in_arg): add no block
+ given tests.
+
+ * test/ruby/test_iterator.rb (test_ljump): uncomment LocalJumpError
+ test.
+
+Fri Sep 5 01:10:11 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * test/ruby: tests for ruby itself.
+
+ * test/ruby/test_*.rb: split sample/test.rb into 28 test/unit testcases.
+ some tests could not be translates... search '!!' mark to see it.
+
+ * test/csv/test_csv.rb: should require 'csv', not '../lib/csv'. test
+ runner should set load path correctly.
+
+Fri Sep 5 01:03:59 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * test/csv/test_csv.rb: close opened files for CSV::IOBuf explicitly.
+ opened file cannot be removed under win32 box.
+
+Thu Sep 4 23:59:40 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * parse.y (tokadd_string): newlines have no special meanings in
+ %w/%W, otherwise they are ignored only when interpolation is
+ enabled. [ruby-dev:21325]
+
+Thu Sep 4 19:38:25 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * ext/io/wait/.cvsignore: added.
+
+ * ext/openssl/.cvsignore: added.
+
+Thu Sep 4 19:28:24 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * sample/openssl: added. Sample of standard distribution library
+ should be locate in sample/{module_name}/*.
+
+ * ext/openssl/sample/*: removed. move to sample/openssl/*.
+
+Thu Sep 4 18:02:15 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * test/csv/test_csv.rb: use remove_const to reduce warnings. use
+ Dir.tmpdir to locate working files.
+
+Thu Sep 4 17:41:31 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * misc/ruby-mode.el (ruby-here-doc-beg-re): underscore also is
+ valid delimiter.
+
+ * misc/ruby-mode.el (ruby-here-doc-end-match): must quote
+ arbitrary string to use as regexp.
+
+ * misc/ruby-mode.el (ruby-font-lock-maybe-here-docs): must not
+ call `ruby-here-doc-end-match' unless `ruby-here-doc-beg-re'
+ matched.
+
+Thu Sep 4 15:40:07 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * test/csv/test_csv.rb: run on test/unit original layer.
+
+Thu Sep 4 12:54:50 2003 why the lucky stiff <why@ruby-lang.org>
+
+ * ext/syck/token.c: headerless documents with root-level spacing now
+ honored.
+
+Thu Sep 4 00:06:14 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (mark_frame_adj): need to adjust argv pointer if using
+ system's alloca. [ruby-core:01503]
+
+Wed Sep 3 21:33:20 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * test: add test directory. Test::Unit aware testcases and needed
+ files should be located in this directory. dir/file name convention;
+ test/{module_name}/test_{testcase_name}.rb
+ test/{module_name}/{needed_files}
+ someday, someone will write testrunner which searches test_*.rb and
+ run testcases automatically.
+
+ * test/csv/*: add testcase for lib/csv.rb.
+
+Wed Sep 3 01:37:09 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * io.c (rb_f_gets): should call next_argv() before type check
+ current_file. [ruby-list:38336]
+
+Tue Sep 2 20:37:15 2003 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * ext/openssl/lib/net/protocols.rb (SSLIO#ssl_connect): warning
+ for skipping server verification.
+
+Tue Sep 2 23:36:57 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (proc_invoke): should retrieve retval when pcall is true.
+
+Tue Sep 2 14:09:20 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * ext/socket/extconf.rb: check s6_addr8 in in6_addr (Tru64 UNIX).
+ the patch is submitted by nmu <nmu@users.sourceforge.jp>.
+
+ * ext/socket/getaddrinfo.c (getaddrinfo): should use in6_addr8 on
+ some platforms.
+
+ * ext/socket/getnameinfo.c (getnameinfo): ditto.
+
+Tue Sep 2 14:02:19 2003 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tcltklib/tcltklib.c (ip_invoke): fixed bug on passing a exception
+
+ * ext/tk/lib/{tk.rb, tkcanvas.rb, tkfont.rb, tktext.rb}:
+ bug fix and improvement of font control
+
+Tue Sep 2 09:51:36 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (rb_eval): should not handle exceptions within rescue
+ argument. [ruby-talk:80804]
+
+Tue Sep 2 00:44:37 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * re.c (rb_memsearch): fix overrun. [ruby-talk:80759]
+
+Tue Sep 2 00:41:27 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/iconv/iconv.c (map_charset): use lower case keys.
+
+ * ext/iconv/iconv.c (iconv_fail): just yield error and return the
+ result if a block is given.
+
+ * ext/iconv/iconv.c (iconv_convert): yield error and append the
+ result if a block is given.
+
+ * ext/iconv/charset_alias.rb (charset_alias): optional third
+ argument.
+
+ * ext/iconv/charset_alias.rb (charset_alias): use CP932 instead of
+ SHIFT_JIS on cygwin.
+
+Mon Sep 1 18:34:25 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (rb_eval): make tail recursion in ELSE clause of
+ RESCUE a jump.
+
+Mon Sep 1 18:00:02 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * parse.y (aref_args): forgot to call NEW_SPLAT(). reported by
+ Dave Butcher.
+
+ * eval.c (Init_Thread): protect thgroup_default. suggested by Guy
+ Decoux in [ruby-talk:80623]
+
+Mon Sep 1 16:59:10 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (rb_thread_switch): add RESTORE_EXIT; exit by another
+ thread termination.
+
+ * eval.c (rb_thread_start_0): should not error_print() within
+ terminated thread, because $stderr used by it might be
+ overriden now. [ruby-dev:21280]
+
+Sun Aug 31 22:46:55 2003 WATANABE Hirofumi <eban@ruby-lang.org>
+
+ * eval.c (TAG_DST()): take no argument.
+
+ * process.c (p_gid_sw_ensure): return VALUE.
+
+Sun Aug 31 22:27:10 2003 Hidetoshi NAGAI <nagai@dumbo.ai.kyutech.ac.jp>
+
+ * process.c (p_gid_sw_ensure): lack of function type
+
+Sun Aug 31 12:25:06 2003 Nobuyoshi Nakada <nobu.nokada@softhome.net>
+
+ * lib/optparse.rb: --version takes an optional argument; "all" or
+ a list of package names.
+
+Sun Aug 31 10:17:02 2003 Tadayoshi Funaba <tadf@dotrb.org>
+
+ * lib/date/format.rb: yyyy/mm is not an acceptable format.
+
+ * lib/time.rb: follow above.
+
+Sat Aug 30 14:25:43 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (rb_iter_break): should not call TAG_JUMP directly.
+
+Sat Aug 30 03:58:21 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (struct BLOCK): remove BLOCKTAG, use scope instead.
+
+ * eval.c (POP_TAG): no longer propagate retval. retval is now set
+ directly by localjump_destination().
+
+ * eval.c (localjump_destination): new function to cast
+ return/break local jump.
+
+ * eval.c (rb_yield_0): stop TAG_RETURN/TAG_BREAK escaping.
+
+Fri Aug 29 22:35:00 2003 Shigeo Kobayashi <shigek@ruby-lang.org>
+
+ * bigdecimal.c *.html: The 2nd arg. for add,sub,mult, and div is 0,
+ then result will be the same as +,-,*,/ respectively.
+
+Fri Aug 29 17:30:15 2003 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * process.c: bug fix
+
+ * process.c: add rb_secure(2) to methods of Process::{UID,GID,Sys}
+
+ * process.c: deny handling IDs during evaluating the block given to
+ the Process::{UID,GID}.switch method
+
+ * ext/tcltklib/tcltklib.c: some methods have no effect if on slave-IP
+
+ * ext/tcltklib/tcltklib.c: can create a interpreter without Tk
+
+ * ext/tcltklib/tcltklib.c: bug fix on handling exceptions
+
+ * ext/tcltklib/MANUAL.euc: modify
+
+ * ext/tk/lib/tk.rb: freeze some core modules
+
+ * ext/tk/lib/multi-tk.rb: more secure
+
+ * ext/tk/lib/tk.rb: TkVariable.new(array) --> treat the array as the
+ Tk's list
+
+ * ext/tk/lib/tk.rb: improve accessibility of TkVariable object
+
+ * ext/tk/lib/tk.rb, ext/tk/lib/tkfont.rb, ext/tk/lib/tkcanvas.rb,
+ ext/tk/lib/tktext.rb: fix bug of font handling
+
+ * ext/tk/lib/tkfont.rb: TkFont.new() accepts compound fonts
+
+Thu Aug 28 22:07:12 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * variable.c (rb_autoload_load): call const_missing if autoloading
+ constant is not defined to allow hook.
+
+ * eval.c (rb_eval): use rb_const_get_from() instead of
+ rb_const_get_at().
+
+ * eval.c (is_defined): forgot to check NODE_COLON3.
+
+Thu Aug 28 17:30:24 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * variable.c (rb_const_get_0): should check constants defined in
+ included modules, if klass is Object. [ruby-talk:79302]
+
+ * numeric.c (check_uint): check should be done using UINT_MAX, not
+ INT_MAX. this fix is submitted by Lyle Johnson
+ <lyle@knology.net> in [ruby-core:01486]
+
+Thu Aug 28 05:02:52 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * parse.y (singleton): typo fixed (ruby-bugs-ja:PR#562)
+
+Thu Aug 28 02:37:45 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (rb_eval): *a = [1,2] now assigns [[1,2]] to a.
+ consistent with *a = [1], which set [[1]] to a.
+
+ * node.h: merge NODE_RESTARY to NODE_SPLAT.
+
+ * parse.y: rules simplified a bit by removing NODE_RESTARY.
+
+ * sample/test.rb: updated for new assignment behavior.
+
+Wed Aug 27 22:33:24 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * error.c (rb_bug): should not use other methods; this function is
+ not for ordinary use. [ruby-dev:21259]
+
+Wed Aug 27 15:07:57 2003 Minero Aoki <aamine@loveruby.net>
+
+ * lib/net/smtp.rb (check_response): AUTH CRAM-MD5 returns 334
+ response. [ruby-list:38279]
+
+Wed Aug 27 05:10:15 2003 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * win32/win32.c (map_errno): support winsock error.
+
+ * win32/win32.c (pipe_exec, CreateChild, poll_child_status, waitpid,
+ kill, link, rb_w32_rename, unixtime_to_filetime, rb_w32_utime):
+ pass errno to map_errno().
+
+ * win32/win32.c (rb_w32_select, rb_w32_accept, rb_w32_bind,
+ rb_w32_connect, rb_w32_getpeername, rb_w32_getsockname,
+ rb_w32_getsockopt, rb_w32_ioctlsocket, rb_w32_listen, rb_w32_recv,
+ rb_w32_recvfrom, rb_w32_send, rb_w32_sendto, rb_w32_setsockopt,
+ rb_w32_shutdown, rb_w32_socket, rb_w32_gethostbyaddr,
+ rb_w32_gethostbyname, rb_w32_gethostname, rb_w32_getprotobyname,
+ rb_w32_getprotobynumber, rb_w32_getservbyname, rb_w32_getservbyport,
+ rb_w32_fclose, rb_w32_close): use map_errno().
+
+ * win32/win32.h: add winsock errors.
+
+Tue Aug 26 23:53:23 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * lib/ostruct.rb (OpenStruct::method_missing): prohibit modifying
+ frozen OpenStruct. [ruby-talk:80214]
+
+Tue Aug 26 20:03:50 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * lib/mkmf.rb (create_tmpsrc): add the hook for source.
+ [ruby-list:38122]
+
+Tue Aug 26 15:59:53 2003 why the lucky stiff <why@ruby-lang.org>
+
+ * implicit.c (syck_type_id_to_taguri): corrected detection of
+ x-private types.
+
+Sun Aug 24 01:02:48 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * file.c (file_expand_path): performance improvement.
+ [ruby-talk:79748]
+
+Sat Aug 23 23:41:16 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * file.c (rb_file_s_expand_path): avoid calling rb_scan_args() for
+ apparent cases. [ruby-talk:79748]
+
+Sat Aug 23 18:56:53 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/nkf/nkf.c (rb_nkf_putchar): should use rb_str_resize() to just
+ resize a string, rb_str_cat() disallows NULL. [ruby-dev:21237]
+
+Sat Aug 23 16:48:41 2003 Keiju Ishitsuka <keiju@ishitsuka.com>
+
+ * lib/irb/ruby-lex.rb: bug fix for "foo" !~ /bar/. [ruby-talk:79942]
+
+Sat Aug 23 15:59:58 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (rb_eval, rb_iterate, block_pass): reduce PUSH/POP_TAG and
+ EXEC_TAG() for retry. [ruby-dev:21216]
+
+Sat Aug 23 02:32:33 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (rb_yield_splat): should check if "values" is array.
+
+ * enum.c (each_with_index_i): typo.
+
+Fri Aug 22 17:07:05 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * enum.c (inject_i): use rb_yield_values.
+
+ * enum.c (each_with_index_i): ditto.
+
+ * eval.c (rb_yield_splat): new function to call "yield *values".
+
+ * string.c (rb_str_scan): use rb_yield_splat().
+
+Fri Aug 22 06:13:22 2003 why the lucky stiff <why@ruby-lang.org>
+
+ * ext/syck/rubyext.c: refactoring of the transfer method
+ dispatch. added yaml_org_handler for faster dispatch of
+ transfers to base types.
+
+ * lib/yaml/rubytypes.rb: removed handling of builtins from
+ Ruby library.
+
+ * ext/syck/token.c: quoted and block scalars are now implicit !str
+
+ * ext/syck/implicit.c: empty string detected as !null.
+
+Fri Aug 22 01:00:31 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (block_pass): improve passing current block.
+
+Fri Aug 22 00:13:00 2003 Shigeo Kobayashi <shigek@ruby-lang.org>
+
+ * ext/bigdecimal/bigdecimal.c: Int. overflow bug in multiplication
+ fixed, and VpNmlz() speed up.
+
+Wed Aug 20 16:44:49 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/socket/socket.c (ruby_connect): many systems seem to have
+ a problem in select() after EINPROGRESS. [ruby-list:38080]
+
+Wed Aug 20 01:31:17 2003 why the lucky stiff <why@ruby-lang.org>
+
+ * ext/syck/syck.h: Parser definition problems on HP-UX.
+ [ruby-talk:79389]
+
+ * ext/syck/handler.c (syck_hdlr_get_anchor): Memory leak.
+
+ * ext/syck/syck.s (syck_io_file_read): Bad arguments to fread.
+
+ * ext/syck/rubyext.c: Tainting issues.
+
+Tue Aug 19 23:20:00 2003 Shigeo Kobayashi <shigek@ruby-lang.org>
+
+ * ext/bigdecimal/bigdecimal.c .h .html: to_s("+") implemented.
+
+ * ext/bigdecimal/lib/bigdecimal/math.rb: E implemented.
+
+Tue Aug 19 11:19:33 2003 Shugo Maeda <shugo@ruby-lang.org>
+
+ * io.c (next_argv): should not call GetOpenFile() if rb_stdout is
+ not a IO (T_FILE).
+
+Tue Aug 19 07:47:10 2003 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * lib/webrick/ssl.rb: new file; SSL/TLS enhancement for GenericServer.
+
+ * lib/webrick/https.rb: SSLSocket handling is moved to webrick/ssl.rb.
+
+ * lib/webrick/compat.rb (File::fnmatch): remove old migration code.
+
+ * lib/webrick/httpserver.rb (HTTPServer#run): ditto.
+
+ * lib/webrick/server.rb (GenericServer#listen): the body of this
+ method is pull out as Utils::create_lisnteners.
+
+ * lib/webrick/utils.rb (Utils::create_lisnteners): new method.
+
+ * lib/webrick/server.rb (GenericServer#start): should rescue
+ unknown errors. and refine comments.
+
+ * ext/openssl/lib/openssl/ssl.rb (SSLServer#accept): should close
+ socket if SSLSocket raises error.
+
+Tue Aug 19 07:47:09 2003 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * ext/openssl/ossl_ssl.c: sync_close is moved to SSLSocket as
+ a builtin.
+
+ * ext/openssl/lib/openssl/buffering.rb (Buffering#close): ditto.
+
+ * ext/openssl/lib/openssl/buffering.rb (Buffering#puts): should
+ add a return to the tails of each line.
+
+ * ext/openssl/lib/openssl/ssl.rb: new class OpenSSL::SSL::SSLServer.
+
+ * ext/openssl/lib/net/protocols.rb (SSLIO#ssl_connect): use sync_close.
+
+ * ext/openssl/sample/echo_svr.rb: use SSLServer.
+
+ * ext/openssl/sample/echo_cli.rb: add example of SSLSocket#sync_close.
+
+Tue Aug 19 01:24:34 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/curses/curses.c (_XOPEN_SOURCE_EXTENDED): Mac OS X standard
+ headers are inconsistent at this macro. [ruby-core:01432]
+
+ * ext/curses/extconf.rb: check if _XOPEN_SOURCE_EXTENDED breaks.
+
+ * ext/tcltklib/stubs.c: Status macro in X11/Xthreads.h bothers
+ winspool.h
+
+ * instruby.rb: make list at first instead of iterator.
+ [ruby-talk:79347]
+
+Mon Aug 18 11:23:11 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * dir.c (glob_helper): preserve raw order for **.
+
+Sun Aug 17 23:39:55 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/openssl/extconf.rb (HAVE_VA_ARGS_MACRO): need to compile.
+
+Sun Aug 17 17:10:03 2003 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * ext/openssl/lib/openssl/ssl.rb (SSLSocket#sync_close=): add a
+ method to specify if the underlying IO will be closed in
+ SSLSocket#close.
+
+ * ext/openssl/lib/openssl/buffering.rb: add forwarders to
+ setsockopt, getsockopt and fcntl.
+
+ * ext/openssl/lib/net/protocols.rb: enable sync for SSLSocket.
+
+Sun Aug 17 11:32:04 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/extmk.rb (extmake): should not force to remake Makefile when
+ installation and so on.
+
+Sat Aug 16 23:58:18 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * marshal.c (w_symbol, w_object): get rid of warnings.
+
+ * re.c (rb_memsearch): ditto.
+
+ * time.c (time_dump): ditto.
+
+ * ext/extmk.rb (extmake): not continue making when extconf.rb
+ failed.
+
+ * ext/openssl/extconf.rb: check __VA_ARGS__ macro more precisely.
+
+ * ext/openssl/ossl.h: remove version.h dependency.
+
+ * ext/openssl/ruby_missing.h: ditto.
+
+ * lib/mkmf.rb (pkg_config): use --libs output except with
+ only-L for other options. [ruby-list:38099]
+
+ * lib/mkmf.rb (create_makefile): separate rule for static
+ library from shared object.
+
+ * win32/Makefile.sub, bcc32/Makefile.sub, wince/Makefile.sub:
+ define exec_prefix and libdir.
+
+Fri Aug 15 23:15:00 2003 Shigeo Kobayashi <shigek@ruby-lang.org>
+
+ * ext/bigdecimal/bigdecimal.c .h: Bug in combination of limit & div
+ method fixed.
+
+ * ext/bigdecimal/lib/bigdecimal/math.rb: atan() & sqrt() added.
+
+Fri Aug 15 12:01:44 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * configure.in (HUGE_ST_INO): check whether struct stat.st_ino
+ is larger than long. [ruby-dev:21194]
+ http://www.geocities.co.jp/SiliconValley-PaloAlto/1409/ruby/beos.html
+
+ * error.c (syserr_eqq): errno might exceed Fixnum limit.
+
+ * error.c (Init_Exception): moved base initialization from
+ init_syserr().
+
+ * inits.c (rb_call_inits): postpone initializing errnos until
+ Bignum is available.
+
+Fri Aug 15 12:01:43 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/curses/curses.c (_XOPEN_SOURCE_EXTENDED): needed to let
+ keyname() and so on be declared.
+
+ * ext/curses/curses.c (curses_resizeterm, window_resize):
+ arguments conflicted with macros in term.h.
+
+ * ext/curses/curses.c (Curses module methods): ensure
+ initialized. [ruby-dev:21191]
+
+Fri Aug 15 02:08:53 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * gc.c (id2ref): recycle check should be done by klass == 0.
+ [ruby-core:01408]
+
+Fri Aug 15 01:34:23 2003 Michal Rokos <m.rokos@sh.cvut.cz>
+
+ * ext/openssl/ossl_pkey.c: move generate_cb here
+
+ * ext/openssl/ossl_pkey_{dh|dsa|rsa}.c: adapt to this cb
+
+ * ext/openssl/openssl_missing.[ch]: add (0.9.6x, x<j) missing BN funcs
+
+ * ext/openssl/ossl_bn.c: use supplied funcs from openssl_missing.c
+
+Fri Aug 15 00:38:00 2003 Shigeo Kobayashi <shigek@ruby-lang.org>
+
+ * ext/bigdecimal/bigdecimal.c: Bug in div method fixed.
+
+ * ext/bigdecimal/lib/bigdecimal/math.rb: Newly added.
+
+ * ext/bigdecimal/sample/pi.rb: Changed so as to use math.rb.
+
+Thu Aug 14 21:19:14 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (Init_Thread): Continuation#[] added. [ruby-talk:79028]
+
+Thu Aug 14 20:03:34 2003 Masaki Suketa <masaki.suketa@nifty.ne.jp>
+
+ * ext/win32ole/win32ole.c (OLE_FREE): should not call
+ ole_message_loop.
+
+ * ext/win32ole/win32ole.c (ole_event_free): ditto.
+
+ * ext/win32ole/win32ole.c (ole_initialize): stop calling
+ OleUninitialize at exit.
+
+Thu Aug 14 11:27:37 2003 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * gc.c (rb_data_object_alloc): check type of 1st argument.
+ [ruby-dev:21192]
+
+Thu Aug 14 00:21:14 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * parse.y (mlhs_node): should allow "::Foo" (colon3) as lhs.
+
+ * parse.y (lhs): ditto.
+
+ * parse.y (yylex): should return tCOLON3 right after kCLASS.
+ [ruby-talk:78918]
+
+ * error.c (exc_initialize): was converting argument to string too
+ eagerly. Only check was needed. [ruby-talk:78958]
+
+Wed Aug 13 23:31:00 2003 Shigeo Kobayashi <shigek@ruby-lang.org>
+
+ * ext/bigdecimal/bigdecimal.c .h .html: Ambiguity of
+ BigDecimal::limit removed.
+
+Wed Aug 13 19:21:34 2003 Christian Neukirchen <chneukirchen@yahoo.de>
+
+ * lib/webrick/https.rb (HTTPServer#run): should set syncing-mode
+ to SSLSocket. [ruby-talk:78919]
+
+Wed Aug 13 18:13:49 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (POP_BLOCK): turn on BLOCK_LEFT flag when leaving block.
+
+ * eval.c (proc_invoke): unpack return/break destination when block
+ is already left.
+
+Wed Aug 13 15:58:31 2003 WATANABE Hirofumi <eban@ruby-lang.org>
+
+ * object.c (rb_class_s_alloc): add function prototype to avoid VC++
+ warning.
+
+Wed Aug 13 13:50:59 2003 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * ext/Win32API/Win32API.c (Win32API_initialize): should pass some
+ class to first argument of Data_Wrap_Struct(). (ruby-bugs:PR#1109)
+
+Tue Aug 12 16:55:11 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * Makefile.in: static link libraries to LIBRUBY_SO with static linked
+ ext. [ruby-dev:21157]
+
+ * ext/extmk.rb (extmake): sort extension library initialization order.
+
+ * ext/extmk.rb (extmake): compact $extlibs.
+
+Tue Aug 12 02:48:56 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (THREAD_SAVE_CONTEXT): should explicitly turn off the
+ flag before calling getcontext(2).
+
+ * eval.c (struct thread): add member to save backing store on
+ IA64. (ruby-bugs PR1086)
+
+ * eval.c (thread_mark): mark IA64 backing store region.
+
+ * eval.c (thread_free): free saved IA64 backing store.
+
+ * eval.c (rb_thread_save_context): save IA64 backing store as well.
+
+ * eval.c (rb_thread_restore_context): restore IA64 backing store.
+
+ * eval.c (THREAD_ALLOC): initialize IA64 members.
+
+Mon Aug 11 22:31:50 2003 NAKAMURA, Hiroshi <nahi@ruby-lang.org>
+
+ * lib/debug.rb(debug_command): inspection command should inspect
+ resulting value even if it's nil. [ruby-dev:21180] by OMAE, jun
+ <jun66j5@ybb.ne.jp>.
+
+ * lib/debug.rb(debug_command): incomplete regexp.
+
+Mon Aug 11 17:33:07 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (rb_call_super): do not use rb_block_given_p() for
+ check. [ruby-talk:78656]
+
+ * eval.c (BEGIN_CALLARGS): push ITER_NOT only when ITER_PRE.
+
+Sun Aug 10 10:43:05 2003 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * ext/openssl/lib/openssl/buffering.rb: increase BLOCK_SIZE
+ from 1k to 16k bytes. [ruby-talk:78603]
+
+ * ext/openssl/ossl_ssl.c (ossl_sslctx_s_alloc): enable
+ partial write to allow interruption in SSLSocket#write.
+
+Sun Aug 10 00:34:16 2003 WATANABE Hirofumi <eban@ruby-lang.org>
+
+ * cygwin/GNUmakefile: remove unnecessary '--drive-name=$(CC)'
+ for ccache.
+
+Sat Aug 9 10:36:21 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * marshal.c (w_object): do not dump generic instance variable when
+ marshal_dump is defined.
+
+Sat Aug 9 00:35:00 2003 Shigeo Kobayashi <shigek@ruby-lang.org>
+
+ * ext/bigdecimal.c: F style output(like 1234.56789) implemented
+ to to_s method.
+ * ext/bigdecimal_??.html: F style output(like 1234.56789)
+ implemented to to_s method.
+
+Fri Aug 8 12:33:17 2003 WATANABE Hirofumi <eban@ruby-lang.org>
+
+ * bcc32/Makefile.sub: rubyw.exe should be a Windows GUI program.
+ add the -aa option to WLDFLAGS.
+
+Fri Aug 8 11:29:26 2003 Koji Arai <jca02266@nifty.ne.jp>
+
+ * marshal.c (w_object): should set `c_arg' at first.
+
+Fri Aug 8 03:22:28 2003 GOTOU Yuuzou <gotoyuzo@notwork.org>
+
+ * lib/webrick/httputils.rb (FormData#list): should not take
+ a side effect for the receiver.
+
+Thu Aug 7 14:40:37 2003 WATANABE Hirofumi <eban@ruby-lang.org>
+
+ * cygwin/GNUmakefile: better --disbale-shared option support.
+
+ * cygwin/GNUmakefile: add forwarding DLL target for cygwin.
+
+Thu Aug 7 14:21:05 2003 Corinna Vinschen <vinschen@redhat.com>
+
+ * configure.in: Fix Cygwin specific naming of libraries to
+ be net distribution compliant. (ruby-bugs:PR#1077)
+ cygwin-ruby18.dll -> cygruby18.dll
+
+Thu Aug 7 12:51:38 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (rb_f_at_exit): should not be called without a block.
+ block_given check added.
+
+Thu Aug 7 06:46:06 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (rb_call0): forgot to pop ruby_class.
+
+ * eval.c (rb_call0): update ruby_class as well as ruby_cref.
+ (ruby-bugs-ja:PR#540)
+
+Thu Aug 7 04:52:50 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (rb_yield_0): remove ruby_frame->cbase and unify to
+ ruby_cref. [ruby-talk:78141]
+
+Thu Aug 7 04:19:15 2003 Akinori MUSHA <knu@iDaemons.org>
+
+ * gc.c: FreeBSD/ia64's mcontext_t is a bit different from that of
+ Linux/ia64. This makes gc.c compile but miniruby coredumps for
+ the moment.
+
+Thu Aug 7 00:15:00 2003 Shigeo Kobayashi <shigek@ruby-lang.org>
+
+ * ext/bigdecimal.c: Comparison results adjusted to Float's.
+ * ext/bigdecimal.c: Use rb_num_coerce_????(x,y) instead of own.
+
+Wed Aug 6 22:58:00 2003 Nathaniel Talbott <ntalbott@ruby-lang.org>
+
+ * lib/test/unit/testcase.rb: Added equality checking.
+ * lib/test/unit/testsuite.rb: Added equality checking.
+ * lib/test/unit/assertions.rb: Fixed a warning.
+
+Wed Aug 6 17:28:10 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * ext/extmk.rb (extmake): pass LIBPATH to make ruby. [ruby-dev:21137]
+
+ * ext/extmk.rb (extmake): set library name as source file name in
+ Init_ext(). [ruby-dev:21137]
+
+ * lib/mkmf.rb (Logging::postpone): postpone logging messages after
+ heading message as the result of the block.
+
+ * lib/mkmf.rb (macro_defined?): append newline to src unless ended
+ with it.
+
+ * lib/mkmf.rb (have_library): treat nil function name as "main".
+ (ruby-bugs:PR#1083)
+
+ * lib/mkmf.rb (pkg_config): should append additional libraries to
+ $libs but not $LIBS. [ruby-dev:21137]
+
+ * ext/io/wait/extconf.rb: check DOSISH macro instead of platform.
+
+ * ext/digest/sha1/extconf.rb: have_library already appends library
+ name.
+
+Wed Aug 6 17:23:57 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c: initialize /* OK */ variables by Qnil to stop warnings.
+
+Wed Aug 6 04:58:32 2003 NAKAMURA Usaku <usa@ruby-lang.org>
+
+ * ext/Setup*: add io/wait and openssl.
+
+Wed Aug 6 01:13:38 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * eval.c (rb_f_autoload): use ruby_cbase instead of ruby_class.
+
+ * eval.c (rb_f_autoload_p): ditto.
+
+ * class.c (rb_mod_init_copy): no longer implements independent
+ clone and dup methods. override "initialize_copy" instead.
+ [ruby-core:01352]
+
+ * object.c (rb_class_s_alloc): define Class allocation function.
+ this makes Classes to follow clone framework that uses
+ initialize_copy.
+
+ * object.c (rb_class_initialize): separate instantiation and
+ initialization.
+
+ * object.c (rb_obj_alloc): prohibit instantiation from
+ uninitialized class.
+
+ * object.c (rb_class_superclass): check uninitialized class.
+
+ * array.c (rb_ary_fill): wrong index processing with block. this
+ fix was done by Koji Arai <JCA02266@nifty.ne.jp> [ruby-list:38029]
+
+ * marshal.c (w_object): should preserve generic ivar for nil,
+ true, false, symbols, and fixnums.
+
+ * marshal.c (w_uclass): base_klass check should be done after
+ rb_class_real().
+
+Wed Aug 6 01:18:50 2003 Minero Aoki <aamine@loveruby.net>
+
+ * lib/net/http.rb: update document.
+
+ * lib/net/pop.rb: ditto.
+
+ * lib/net/protocol.rb: ditto.
+
+Wed Aug 6 00:48:37 2003 Koji Arai <jca02266@nifty.ne.jp>
+
+ * marshal.c (w_object): should recommend marshal_dump rather than
+ _dump_data.
+
+Tue Aug 5 17:58:57 2003 WATANABE Hirofumi <eban@ruby-lang.org>
+
+ * lib/fileutils.rb (install): should preserve timestamp only.
+
+Tue Aug 5 17:31:59 2003 Ian Macdonald <ian@caliban.org>
+
+ * lib/shell/command-processor.rb (Shell::CommandProcessor::rmdir):
+ simple typo.
+
+Tue Aug 5 15:47:34 2003 Nobuyoshi Nakada <nobu@ruby-lang.org>
+
+ * eval.c (rb_load): should preserve current source file/line.
+
+Tue Aug 5 10:04:42 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * string.c (str_new4): ptr may refer to null_str.
+
+Mon Aug 4 17:25:18 2003 Yukihiro Matsumoto <matz@ruby-lang.org>
+
+ * stable version 1.8.0 released.
+
+For the changes before 1.8.0, see doc/ChangeLog-1.8.0
+
+Local variables:
+add-log-time-format: (lambda ()
+ (let* ((time (current-time))
+ (system-time-locale "C")
+ (diff (+ (cadr time) 32400))
+ (lo (% diff 65536))
+ (hi (+ (car time) (/ diff 65536))))
+ (format-time-string "%a %b %e %H:%M:%S %Y" (list hi lo) t)))
+indent-tabs-mode: t
+tab-width: 8
+end:
diff --git a/doc/ChangeLog-YARV b/doc/ChangeLog-YARV
index c9d32916cf..cbc51c5593 100644
--- a/doc/ChangeLog-YARV
+++ b/doc/ChangeLog-YARV
@@ -4538,7 +4538,7 @@ Sun Dec 31 17:42:05 2006 Koichi Sasada <ko1@atdot.net>
2005-11-15(Tue) 00:42:49 +0900 Koichi Sasada <ko1@atdot.net>
* eval.c : support rb_frame_pop() and rb_frame_callee(),
- add rb_sourcefile(), rb_souceline(),
+ add rb_sourcefile(), rb_sourceline(),
* compile.c : support postposition while/until,
diff --git a/doc/NEWS-1.8.7 b/doc/NEWS-1.8.7
index 6a7a77211d..460a7c9328 100644
--- a/doc/NEWS-1.8.7
+++ b/doc/NEWS-1.8.7
@@ -52,7 +52,7 @@ with all sufficient information, see the ChangeLog file.
* Array#flatten
* Array#flatten!
- Takes an optional argument that determines the level of recursion
+ Take an optional argument that determines the level of recursion
to flatten.
* Array#eql?
@@ -65,7 +65,7 @@ with all sufficient information, see the ChangeLog file.
* Array#index
* Array#rindex
- Take a block instead of an argument.
+ Use a given block if no argument is given.
* Array#collect!
* Array#map!
@@ -623,6 +623,19 @@ with all sufficient information, see the ChangeLog file.
# After (works with any version)
hd = Digest::MD5.hexdigest("string")
+ * Digest::Base#==
+
+ * self == string
+
+ Automatic detection between binary digest values and hexadecimal
+ digest values has been dropped. It is always assumed that a
+ hexadecimal digest value is given for comparison.
+
+ * self == md
+
+ Digest objects are compared by the resulting digest values, not
+ by the exact vector states.
+
* fileutils
* A minor implementation change breaks Rake <=0.7.1.
diff --git a/doc/NEWS-1.9.1 b/doc/NEWS-1.9.1
index 05752330eb..f2afa00bdc 100644
--- a/doc/NEWS-1.9.1
+++ b/doc/NEWS-1.9.1
@@ -391,6 +391,8 @@ See doc/NEWS-1.8.7 for changes between 1.8.6 and 1.8.7.
* RDoc
o Updated to version 2.2.2. See:
http://rubyforge.org/frs/shownotes.php?group_id=627&release_id=26434
+ * json
+ o JSON (JavaScript Object Notation) encoder/decoder
* commandline options
* -E, --encoding
diff --git a/doc/NEWS-1.9.2 b/doc/NEWS-1.9.2
new file mode 100644
index 0000000000..11e5c82c58
--- /dev/null
+++ b/doc/NEWS-1.9.2
@@ -0,0 +1,499 @@
+# -*- rd -*-
+= NEWS
+
+This document is a list of user visible feature changes made between
+releases except for bug fixes.
+
+Note that each entry is kept so brief that no reason behind or
+reference information is supplied with. For a full list of changes
+with all sufficient information, see the ChangeLog file.
+
+== Changes since the 1.9.1 release
+=== Library updates (outstanding ones only)
+
+* builtin classes
+
+ * Array
+ * new method:
+ * Array#keep_if
+ * Array#repeated_combination
+ * Array#repeated_permutation
+ * Array#rotate
+ * Array#rotate!
+ * Array#select!
+ * Array#sort_by!
+
+ * extended methods:
+ * Array#{uniq,uniq!,product} can take a block.
+
+ * Complex
+ * new methods:
+ * Complex#rationalize
+
+ * Dir
+ * new method:
+ * Dir.home
+
+ * Encoding
+ * new encodings:
+ * Big5
+ * Big5-UAO
+ * ISO-2022-JP-KDDI
+ * SJIS-DoCoMo
+ * SJIS-KDDI
+ * SJIS-SoftBank
+ * UTF8-DoCoMo
+ * UTF8-KDDI
+ * UTF8-SoftBank
+
+ * new method:
+ * ascii_compatible?
+
+ * Enumerable
+ * New methods:
+ * Enumerable#chunk
+ * Enumerable#collect_concat
+ * Enumerable#each_entry
+ * Enumerable#flat_map
+ * Enumerable#slice_before
+
+ * Enumerator
+ * new methods:
+ * Enumerator#peek
+ * Enumerator#next_values
+ * Enumerator#peek_values
+ * Enumerator#feed
+ * StopIteration#result
+
+ * extended methods:
+ * #with_index accepts an optional argument that specifies the
+ index number to start with, defaulted to 0.
+
+ * incompatible changes:
+ * #rewind now calls the "rewind" method of the enclosed object
+ if defined.
+ * #next doesn't clear the position at end.
+
+ * ENV
+ * Uses locale's encoding
+ * ENV.[]= raises Errno::{EINVAL,ENOMEM} etc. on failure.
+ * new methods:
+ * ENV.keep_if
+ * ENV.select!
+
+ * Float
+ * new constants:
+ * Float::INFINITY
+ * Float::NAN
+ * new methods:
+ * Float#rationalize
+
+ * File
+ * new methods:
+ * File.realpath
+ * File.realdirpath
+ * File#size
+
+ * GC::Profiler
+ * new method:
+ * GC::Profiler.total_time
+
+ * Hash
+ * new methods:
+ * Hash#keep_if
+ * Hash#select!
+
+ * IO
+ * new method:
+ * IO#autoclose=
+ * IO#autoclose?
+ * IO#fdatasync
+ * IO#codepoints
+ * IO#each_codepoint
+
+ * extended methods:
+ * IO.pipe can take a block.
+
+ * new modules:
+ * IO::WaitReadable
+ * IO::WaitWritable
+ They are used to extend non-blocking exceptions.
+
+ * Integer
+ * new methods:
+ * Integer#rationalize
+
+ * Kernel
+ * new methods:
+ * Kernel#respond_to_missing?
+ * Kernel#singleton_class
+ * Kernel#require_relative
+
+ * extended methods:
+ * Kernel#respond_to? can be used to detect methods not implemented.
+ For example, Process.respond_to?(:fork) returns false on Windows.
+
+ * incompatible changes:
+ * Kernel#instance_eval yields the receiver.
+
+ * Kernel#exec
+ * Kernel#spawn
+ * Kernel#system
+ * Kernel#` (`...`)
+ ..etc.
+
+ On Windows, the current directory is no longer implicitly
+ prepended to the default command search path, just like other
+ platforms.
+
+ * MatchData
+ * New method:
+ * MatchData#==
+
+ * NilClass
+ * new methods:
+ * NilClass#rationalize
+
+ * Object
+ * extended methods:
+ * Float() supports hexadecimal floating point format.
+ * printf() supports %a/%A format.
+
+ * Proc
+ * extended method:
+ * Proc#source_location returns location even if receiver is a method
+ defined by attr_reader / attr_writer / attr_accessor.
+
+ * Process
+ * extended methods:
+ * Process.spawn accepts [:child, FD] for a redirect target.
+
+ * Random (new class to generate pseudo-random numbers)
+
+ * Rational
+ * new methods:
+ * Rational#rationalize
+
+ * String
+ * extended methods:
+ * string[regexp, name] is supported for named capture.
+
+ * Thread
+ * new methods:
+ * Thread#add_trace_func
+ * Thread#set_trace_func
+
+ * Time
+ * extended feature:
+ * time_t restriction is removed to represent before 1901 and after 2038.
+ Proleptic Gregorian calendar is used for old dates.
+ * Time.new have optional arguments to specify date with time offset.
+ * Time#getlocal, Time#localtime have optional time offset argument.
+
+ * new method:
+ * Time#to_r
+ * Time#subsec
+ * Time#round
+
+ * incompatible changes:
+ * The year argument of Time.{utc,gm,local,mktime} is now interpreted as
+ the value itself. For example, Time.utc(99) means the year 99 AD,
+ not 1999 AD.
+
+* digest
+ * new methods:
+ * Digest::Class.base64digest
+ * Digest::Instance#base64digest
+ * Digest::Instance#base64digest!
+
+ * Digest::HMAC (digest/hmac) has been marked as deprecated because
+ it was unintentional for the experimental library to be included
+ in the final release of 1.9.1. Please use OpenSSL::HMAC instead.
+
+* rss
+
+ * 0.2.4 -> 0.2.7.
+
+ * RSS::Maker.make
+ * raise an exception not returns nil for invalid feed making.
+ * requires block.
+
+ * RSS::Maker.[]
+ * new method to return maker class.
+
+ * RSS::Maker.supported?(version)
+ * new method to check whether given version is supported.
+
+ * RSS::Maker: item.guid.permanent_link?
+ * new alias of item.guid.isPermaLink
+ * RSS::Maker: item.guid.permanent_link=
+ * new alias of item.guid.isPermaLink=
+
+* DL
+ * Now uses libffi as a backend if avaiable.
+ It means DL works fine on more platforms.
+
+* Fiddle
+ * A lightweight wrapper for libffi.
+
+* YAML
+ * Now uses libyaml as a backend if available.
+ It means YAML library supports new standards for YAML.
+
+* Psych
+ * A wrapper for libyaml.
+
+* JSON
+ * Update to JSON 1.1.9
+
+* REXML
+
+ * REXML::Document.entity_expansion_limit=
+
+ New method to set the entity expansion limit. By default the limit is
+ set to 10000. See the following URL for details.
+
+ http://www.ruby-lang.org/en/news/2008/08/23/dos-vulnerability-in-rexml/
+
+* RDoc
+
+ * Updated to RDoc 2.5.8
+
+* RubyGems
+
+ * Updated to RubyGems 1.3.7
+
+* logger
+
+ * imported upstream version (logger/1.2.7)
+ * do not raise an exception even if log writing failed.
+ * do not raise ShiftingError if an aged file already exists.
+ (no ShiftingError will be raised from 1.2.7, just warn() instead)
+
+* matrix
+ * API change to adhere strictly to mathematical definitions:
+ * Matrices must now be rectangular.
+ * trace, regular?, singular? are defined only for square matrices
+ * support for empty matrices
+ * all integer matrices now have the right determinant (also an integer)
+
+ * Matrix and Vector include Enumerable.
+
+ * new methods:
+ * Matrix.build
+ * Matrix.empty
+ * Matrix#conj
+ * Matrix#conjugate
+ * Matrix#each
+ * Matrix#each_with_index
+ * Matrix#empty?
+ * Matrix#imag
+ * Matrix#imaginary
+ * Matrix#real
+ * Matrix#real?
+ * Matrix#rect
+ * Matrix#rectangular
+
+* net/http
+ * merged net/https.
+
+* open3
+ * new methods:
+ * Open3.popen2
+ * Open3.popen2e
+ * Open3.capture3
+ * Open3.capture2
+ * Open3.capture2e
+ * Open3.pipeline_rw
+ * Open3.pipeline_r
+ * Open3.pipeline_w
+ * Open3.pipeline_start
+ * Open3.pipeline
+
+* pty
+ * new methods:
+ * PTY.open
+ * PTY.check
+ * deprecated methods:
+ * protect_signal
+ * reset_signal
+
+* openssl
+ * new methods:
+ * OpenSSL::Buffering#read_nonblock
+ * OpenSSL::Buffering#write_nonblock
+ * OpenSSL::SSL::SSLSocket#connect_nonblock
+ * OpenSSL::SSL::SSLSocket#accept_nonblock
+
+* scanf
+ * support %a/%A format.
+
+
+* socket
+
+ * incompatible changes:
+ * Socket#{recvfrom,recvfrom_nonblock,accept,accept_nonblock,sysaccept}
+ returns a sender address as Addrinfo object instead of a binary sockaddr string.
+ Addrinfo#to_s returns the old binary sockaddr string.
+ * BasicSocket#getsockopt returns Socket::Option object instead of a binary string.
+ Socket::Option#to_s returns the old binary string.
+ * Socket.do_not_reverse_lookup is turned on by default now.
+
+ * new class:
+ * Addrinfo
+ * Socket::Option
+ * Socket::AncillaryData
+
+ * new methods:
+ * Socket.ip_address_list
+ * Socket.tcp
+ * Socket.tcp_server_loop
+ * Socket.tcp_server_sockets
+ * Socket.udp_server_sockets
+ * Socket.udp_server_loop_on
+ * Socket.udp_server_loop
+ * Socket.unix
+ * Socket.unix_server_loop
+ * Socket.unix_server_socket
+ * Socket.accept_loop
+ * Socket#ipv6only!
+ * BasicSocket#local_address
+ * BasicSocket#remote_address
+ * BasicSocket#connect_address
+ * BasicSocket#sendmsg
+ * BasicSocket#sendmsg_nonblock
+ * BasicSocket#recvmsg
+ * BasicSocket#recvmsg_nonblock
+ * BasicSocket#getpeereid
+
+ * extended methods:
+ * Socket.new's 3rd argument is optional now.
+ * Socket.pair's 3rd argument is optional now.
+ * Socket.pair and UNIXSocket.pair can take a block.
+ * BasicSocket#send, UDPSocket#send, Socket.getnameinfo, Socket#bind, and
+ Socket#{connect,connect_nonblock} accepts an Addrinfo object as sockaddr.
+ * BasicSocket#getsockopt accepts a Socket::Option object.
+ * Socket.getaddrinfo and IPSocket#{addr,peeraddr} accept an optional
+ argument to turn reverse lookup on/off.
+
+ * constant names can be accepted as well as constant values.
+ i.e. Socket.new(:PF_INET, :SOCK_STREAM, 0)
+ The constant names can be specified without the prefix.
+ i.e. Socket.new(:INET, :STREAM, 0)
+ * protocol/address family
+ * socket type
+ * socket option protocol level
+ * socket option name
+ * shutdown's argument
+
+* stringio
+ * new methods:
+ * StringIO#read_nonblock
+ * StringIO#write_nonblock
+* pathname
+ * new methods:
+ * Pathname#binread
+ * Pathname#realdirpath
+ * Pathname#each_child
+
+ * extended methods:
+ * Pathname#realpath and Pathname#realdirpath takes optional basedir
+ argument.
+
+* Readline
+ * new methods:
+ * Readline.set_screen_size
+ * Readline.get_screen_size
+
+ * extended methods:
+ * Readline.completion_proc= accepts nil.
+ nil means to use default completion proc.
+
+* set
+ * new methods:
+ * Set#keep_if
+ * Set#select!
+
+* time
+ * incompatible changes:
+ * Time.parse raises ArgumentError when no date information.
+
+* thread
+ * extended method:
+ * ConditionVariable#wait takes timeout argument.
+
+* securerandom
+ * new methods:
+ * SecureRandom.urlsafe_base64
+
+* URI
+ * new methods:
+ * URI.encode_www_form
+ * URI.decode_www_form
+ * URI.encode_www_form_component
+ * URI.decode_www_form_component
+ * Obsoleted methods:
+ * URI.decode
+ * URI.encode
+ * URI.escape
+ * URI.unescape
+
+* etc
+ * new methods:
+ * Etc::Passwd.each
+ * Etc::Group.each
+
+* zlib
+ * new methods:
+ * Zlib::GzipFile#path
+ * Zlib.#adler32_combine
+ * Zlib.#crc32_combine
+
+* rbconfig
+ * new methods:
+ * RbConfig.ruby
+
+=== Language changes
+
+* Regexp properties (\p{}) names now ignore underscores, spaces, and case, so
+ \p{ol chiki} is the same as \p{Ol_Chiki}
+* Regexps now support Unicode 5.2 (new characters and scripts)
+* \d, \s, and \w are now ASCII only; use POSIX bracket classes and \p{} for
+ Unicode semantics
+* $: no longer includes the current directory, use require_relative
+* Symbol with an invalid encoding is forbidden to exist.
+
+=== Compilation options
+
+* --program-prefix and --program-suffix no longer act on the shared object
+ names nor paths to libraries.
+
+ use --with-rubylibprefix='${libruby}/${RUBY_INSTALL_NAME}' and
+ --with-soname='${RUBY_INSTALL_NAME}' for the same result as Ruby 1.9.1.
+
+* --with-arch is added for universal binary, instead of
+ --enable-fat-binary option.
+
+=== Compatibility issues (excluding feature bug fixes)
+
+ * Enumerator#rewind
+ * Socket#recvfrom
+ * Socket#recvfrom_nonblock
+ * Socket#accept
+ * Socket#accept_nonblock
+ * Socket#sysaccept
+ * BasicSocket#getsockopt
+ * Time.utc
+ * Time.gm
+ * Time.local
+ * Time.mktime
+ * Time.parse
+ * --program-prefix and --program-suffix
+ * --enable-fat-binary
+ * $:
+
+ See above.
+
+ * Digest::HMAC
+
+ Deprecated. See above.
diff --git a/ext/etc/etc.txt b/doc/etc.rd
index 534790172c..b69f9884ad 100644
--- a/ext/etc/etc.txt
+++ b/doc/etc.rd
@@ -1,18 +1,19 @@
-.\" etc.txt - -*- Indented-Text -*- created at: Fri Jul 14 00:47:15 JST 1995
+# etc.rd - -*- mode: rd; coding: us-ascii -*- created at: Fri Jul 14 00:47:15 JST 1995
+=begin
-** Etc(Module)
+= Etc(Module)
-The module to retrieve information under /etc directory. Available
-only on UNIX platforms. All operations defined in this module are
-module functions, so that you can include Etc module into your class.
+The module to retrieve information from running OS. All operations
+defined in this module are module functions, so that you can include
+Etc module into your class.
-Module Function:
+== Module Function
- getlogin
+--- getlogin
returns login name of the user. It this fails, try getpwuid().
- getpwnam(name)
+--- getpwnam(name)
searches in /etc/passwd file (or equivalent database), and
returns password entry for the user. The return value is an
@@ -37,13 +38,13 @@ Module Function:
See getpwnam(3) for detail.
- getpwuid([uid])
+--- getpwuid([uid])
returns passwd entry for the specified user id. If uid is
ommitted, use the value from getuid(). See getpwuid(3) for
detail.
- getgrgid(gid)
+--- getgrgid(gid)
searches in /etc/group file (or equivalent database), and
returns group entry for the group id. The return value is an
@@ -58,15 +59,17 @@ Module Function:
See getgrgid(3) for detail.
- getgrnam(name)
+--- getgrnam(name)
returns the group entry for the specified name. The return
value is the group structure. See getgrnam(3) for detail.
- group
+--- group
iterates over all group entries.
- passwd
+--- passwd
iterates over all passwd entries.
+
+=end
diff --git a/ext/etc/etc.txt.ja b/doc/etc.rd.ja
index 2dddcfb036..39a1efbff1 100644
--- a/ext/etc/etc.txt.ja
+++ b/doc/etc.rd.ja
@@ -1,18 +1,19 @@
-.\" etc.txt.ja - -*- Indented-Text -*- created at: Fri Jul 14 00:47:15 JST 1995
+# etc.rd.ja - -*- mode: rd; coding: euc-jp; -*- created at: Fri Jul 14 00:47:15 JST 1995
+=begin
-** Etc(¥â¥¸¥å¡¼¥ë)
+= Etc(¥â¥¸¥å¡¼¥ë)
-/etc¥Ç¥£¥ì¥¯¥È¥ê°Ê²¼¤Î¾ðÊó¤òÆÀ¤ë¤¿¤á¤Î¥â¥¸¥å¡¼¥ë¡¥¥¯¥é¥¹¤Ë¥¤¥ó¥¯¥ë¡¼¥É
+¼Â¹Ô¤·¤Æ¤¤¤ëOS¤«¤é¤Î¾ðÊó¤òÆÀ¤ë¤¿¤á¤Î¥â¥¸¥å¡¼¥ë¡¥¥¯¥é¥¹¤Ë¥¤¥ó¥¯¥ë¡¼¥É
¤·¤Æ»È¤¦¤³¤È¤â¤Ç¤­¤ë¡¥
-Module Function:
+== Module Function
- getlogin
+--- getlogin
¼«Ê¬¤Îlogin̾¤òÊÖ¤¹¡¥¤³¤ì¤¬¼ºÇÔ¤·¤¿¾ì¹ç¤Ïgetpwuid()¤òÍѤ¤¤ë¤È
Îɤ¤¡¥
- getpwnam(name)
+--- getpwnam(name)
/etc/passwd¥Õ¥¡¥¤¥ë(¤¢¤ë¤¤¤ÏDBM¥Õ¥¡¥¤¥ë¤äNIS¥Ç¡¼¥¿¥Ù¡¼¥¹)¤ò¸¡
º÷¤·¡¤name¤Î̾Á°¤ò»ý¤Äpasswd¥¨¥ó¥È¥ê¤òÊÖ¤¹¡¥Ìá¤êÃͤÏpasswd¹½Â¤
@@ -37,13 +38,13 @@ Module Function:
¾ÜºÙ¤Ïgetpwnam(3)¤ò»²¾È¤Î¤³¤È¡¥
- getpwuid([uid])
+--- getpwuid([uid])
uid¤ò¥æ¡¼¥¶ID¤È¤¹¤ëpasswd¥¨¥ó¥È¥ê¤òÊÖ¤¹¡¥Ìá¤êÃͤÏgetpwnam()¤È
ƱÍͤǤ¢¤ë¡¥°ú¿ô¤ò¾Êά¤·¤¿¾ì¹ç¤Ë¤Ïgetuid()¤ÎÃͤòÍѤ¤¤ë¡¥¾ÜºÙ¤Ï
getpwuid(3)¤ò»²¾È¤Î¤³¤È¡¥
- getgrgid(gid)
+--- getgrgid(gid)
/etc/group¥Õ¥¡¥¤¥ë(¤¢¤ë¤¤¤Ï¡Ägetpwnam»²¾È)¤ò¸¡º÷¤·¡¤gid¤ò¥°¥ë¡¼
¥×ID¤È¤¹¤ë¥°¥ë¡¼¥×¥¨¥ó¥È¥ê¤òÊÖ¤¹¡¥Ìá¤êÃͤÏgroup¹½Â¤ÂΤǰʲ¼¤Î
@@ -58,15 +59,17 @@ Module Function:
¾ÜºÙ¤Ïgetgrgid(3)¤ò»²¾È¤Î¤³¤È¡¥
- getgrnam(name)
+--- getgrnam(name)
name¤È¤¤¤¦Ì¾Á°¤Î¥°¥ë¡¼¥×¥¨¥ó¥È¥ê¤òÊÖ¤¹¡¥Ìá¤êÃͤÏgetgrgid()¤ÈƱ
ÍͤǤ¢¤ë¡¥¾ÜºÙ¤Ïgetgrnam(3)¤ò»²¾È¡¥
- group
+--- group
Á´¤Æ¤Î¥°¥ë¡¼¥×¥¨¥ó¥È¥ê¤ò½ç¤Ë¥¢¥¯¥»¥¹¤¹¤ë¤¿¤á¤Î¥¤¥Æ¥ì¡¼¥¿¡¥
- passwd
+--- passwd
Á´¤Æ¤Îpasswd¥¨¥ó¥È¥ê¤ò½ç¤Ë¥¢¥¯¥»¥¹¤¹¤ë¤¿¤á¤Î¥¤¥Æ¥ì¡¼¥¿¡¥
+
+=end
diff --git a/doc/images/boottime-classes.png b/doc/images/boottime-classes.png
new file mode 100644
index 0000000000..b5fab75c41
--- /dev/null
+++ b/doc/images/boottime-classes.png
Binary files differ
diff --git a/doc/irb/irb.rd b/doc/irb/irb.rd
index 8468809d2b..75274006e1 100644
--- a/doc/irb/irb.rd
+++ b/doc/irb/irb.rd
@@ -252,7 +252,7 @@ For irb commands, both simple name and `irb_'-prefixed name are prepared.
--- kill n, irb_kill n
Kill subirb. The means of n is as same as the case of irb_fg.
---- souce, irb_source path
+--- source, irb_source path
This is a like UNIX-shell command source. evaluate script in path
on current context.
diff --git a/doc/irb/irb.rd.ja b/doc/irb/irb.rd.ja
index 53f76180ec..6e3abd7b3c 100644
--- a/doc/irb/irb.rd.ja
+++ b/doc/irb/irb.rd.ja
@@ -266,7 +266,7 @@ irb³ÈÄ¥¥³¥Þ¥ó¥É¤Ï, ´Êñ¤Ê̾Á°¤ÈƬ¤Ë`irb_'¤ò¤Ä¤±¤¿Ì¾Á°¤ÈξÊýÄêµÁ¤µ¤ì¤Æ
--- kill n, irb_kill n
¥µ¥Öirb¤òkill¤¹¤ë. n¤Ïfg¤ÈƱ¤¸.
---- souce, irb_source path
+--- source, irb_source path
UNIX¥·¥§¥ë¥³¥Þ¥ó¥É¤Îsource¤È»÷¤Æ¤¤¤ë. ¸½ºß¤Î´Ä¶­¾å¤ÇpathÆâ¤Î¥¹¥¯¥ê
¥×¥È¤òɾ²Á¤¹¤ë.
diff --git a/ext/pty/README b/doc/pty/README
index 42c7d4f891..d6368f3758 100644
--- a/ext/pty/README
+++ b/doc/pty/README
@@ -43,6 +43,25 @@ following module fungtions:
These functions are obsolete in this version of pty.
+ PTY.open
+
+ Allocates a pty (pseudo-terminal).
+
+ It returns an array which contains an IO object and a File object.
+ The former is the master of the pty.
+ The latter is the slave of the pty.
+
+ If a block is given, it yields the array instead of return.
+ The value of the block is returned.
+ master_io and slave_file is closed when return if they are not closed.
+
+ PTY.check(pid[, raise=false])
+
+ checks the status of the child process specified by pid, and
+ returns nil if the process is still alive and active.
+ Otherwise, returns Process::Status about the process if raise is
+ false, or PTY::ChildExited exception is raised.
+
4. License
(C) Copyright 1998 by Akinori Ito.
diff --git a/ext/pty/README.expect b/doc/pty/README.expect
index fddbb6fdad..fddbb6fdad 100644
--- a/ext/pty/README.expect
+++ b/doc/pty/README.expect
diff --git a/ext/pty/README.expect.ja b/doc/pty/README.expect.ja
index db84695ee5..db84695ee5 100644
--- a/ext/pty/README.expect.ja
+++ b/doc/pty/README.expect.ja
diff --git a/ext/pty/README.ja b/doc/pty/README.ja
index 5ae4fb06a0..ca2a01442a 100644
--- a/ext/pty/README.ja
+++ b/doc/pty/README.ja
@@ -30,43 +30,30 @@ pty ³ÈÄ¥¥â¥¸¥å¡¼¥ë version 0.3 by A.ito
¥»¥¹ID¤Ç¤¹¡¥¤³¤Î´Ø¿ô¤¬¥¤¥Æ¥ì¡¼¥¿¤È¤·¤Æ¸Æ¤Ð¤ì¤¿¾ì¹ç¡¤¤³¤ì¤é¤Î
Í×ÁǤϥ֥í¥Ã¥¯¥Ñ¥é¥á¡¼¥¿¤È¤·¤ÆÅϤµ¤ì¡¤´Ø¿ô¼«ÂΤÏnil¤òÊÖ¤·¤Þ¤¹¡¥
- ¤³¤Î´Ø¿ô¤Ë¤è¤Ã¤Æºî¤é¤ì¤¿¥µ¥Ö¥×¥í¥»¥¹¤¬Æ°¤¤¤Æ¤¤¤ë´Ö¡¤»Ò¥×¥í¥»¥¹
- ¤Î¾õÂÖ¤ò´Æ»ë¤¹¤ë¤¿¤á¤Ë SIGCHLD ¥·¥°¥Ê¥ë¤òÊ᪤·¤Þ¤¹¡¥»Ò¥×¥í¥»¥¹
- ¤¬½ªÎ»¤·¤¿¤êÄä»ß¤·¤¿¾ì¹ç¤Ë¤Ï¡¤Îã³°¤¬È¯À¸¤·¤Þ¤¹¡¥¤³¤Î´Ö¡¤¤¹¤Ù¤Æ¤Î
- SIGCHLD ¤¬ PTY ¥â¥¸¥å¡¼¥ë¤Î¥·¥°¥Ê¥ë¥Ï¥ó¥É¥é¤ËÊ᪤µ¤ì¤ë¤Î¤Ç¡¤
- ¥µ¥Ö¥×¥í¥»¥¹¤òÀ¸À®¤¹¤ë¾¤Î´Ø¿ô(system() ¤È¤« IO.popen()¤Ê¤É)¤ò
- »È¤¦¤È¡¤Í½´ü¤·¤Ê¤¤Îã³°¤¬È¯À¸¤¹¤ë¤³¤È¤¬¤¢¤ê¤Þ¤¹¡¥¤³¤ì¤òËɤ°¤¿¤á
- ¤Ë¤Ï¡¤²¼µ­¤Îprotect_signal()¤ò»²¾È¤·¤Æ¤¯¤À¤µ¤¤¡¥
-
- ¤³¤Î´Ø¿ô¤¬¥Ö¥í¥Ã¥¯¥Ñ¥é¥á¡¼¥¿ÉÕ¤­¤Ç¸Æ¤Ð¤ì¤¿¾ì¹ç¤Ë¤Ï¡¤¤½¤Î¥Ö¥í¥Ã¥¯
- ¤ÎÃæ¤Ç¤Î¤ß SIGCHLD ¤¬Ê᪤µ¤ì¤Þ¤¹¡¥¤·¤¿¤¬¤Ã¤Æ¡¤¥Ö¥í¥Ã¥¯¥Ñ¥é¥á¡¼¥¿
- ¤È¤·¤ÆÅϤµ¤ì¤¿IO¥ª¥Ö¥¸¥§¥¯¥È¤ò¡¤¥Ö¥í¥Ã¥¯¤Î³°¤Ë»ý¤Á½Ð¤·¤Æ»È¤¦¤Î
- ¤Ï´«¤á¤é¤ì¤Þ¤»¤ó¡¥
-
-
+ »Ò¥×¥í¥»¥¹¤¬½ªÎ»¤·¤¿¤êÄä»ß¤·¤¿¾ì¹ç¤Ë¤Ï¡¤Îã³°¤¬È¯À¸¤·¤Þ¤¹¡¥¤³¤Î´Ø
+ ¿ô¤¬¥Ö¥í¥Ã¥¯¥Ñ¥é¥á¡¼¥¿ÉÕ¤­¤Ç¸Æ¤Ð¤ì¤¿¾ì¹ç¤Ë¤Ï¡¤¤½¤Î¥Ö¥í¥Ã¥¯¤ÎÃæ¤Ç
+ ¤Î¤ßÎã³°¤¬È¯À¸¤·¤Þ¤¹¡¥»Ò¥×¥í¥»¥¹¤ò¥â¥Ë¥¿¡¼¤·¤Æ¤¤¤ë¥¹¥ì¥Ã¥É¤Ï¥Ö¥í¥Ã
+ ¥¯¤òÈ´¤±¤ë¤È¤­¤Ë½ªÎ»¤·¤Þ¤¹¡¥
+
protect_signal
+ reset_signal
- ¤³¤Î´Ø¿ô¤Ï¥¤¥Æ¥ì¡¼¥¿¤Ç¤¹¡¥¤³¤³¤Ç»ØÄꤵ¤ì¤¿¥Ö¥í¥Ã¥¯¤ÎÃæ¤Ç¤Ï¡¤
- »Ò¥×¥í¥»¥¹¤¬½ªÎ»¤·¤Æ¤âÎã³°¤òȯÀ¸¤·¤Þ¤»¤ó¡¥¤³¤Î´Ø¿ô¤ò»È¤¦¤³¤È¤Ç¡¤
- PTY¤Î»Ò¥×¥í¥»¥¹¤¬Æ°¤¤¤Æ¤¤¤ë´Ö¤Ç¤â¡¤system()¤ä IO.popen()¤Ê¤É¤Î
- ´Ø¿ô¤ò°ÂÁ´¤Ë»È¤¦¤³¤È¤¬¤Ç¤­¤Þ¤¹¡¥Î㤨¤Ð¡¤
+ ÇÑ»ßͽÄê¤Ç¤¹¡¥
- PTY.spawn("command_foo") do |r,w|
- ...
- ...
- PTY.protect_signal do
- system "some other commands"
- end
- ...
- end
+ PTY.open
- ¤³¤Î¤è¤¦¤Êµ­½Ò¤Ë¤è¤ê¡¤"some other commands" ¤¬½ªÎ»¤·¤¿¤È¤­¤Ë
- Îã³°¤¬È¯À¸¤¹¤ë¤Î¤òËɤ²¤Þ¤¹¡¥
+ ²¾ÁÛtty¤ò³ÎÊݤ·¡¤¥Þ¥¹¥¿¡¼Â¦¤ËÂбþ¤¹¤ëIO¥ª¥Ö¥¸¥§¥¯¥È¤È¥¹¥ì¡¼¥Ö¦¤Ë
+ Âбþ¤¹¤ëFile¥ª¥Ö¥¸¥§¥¯¥È¤ÎÇÛÎó¤òÊÖ¤·¤Þ¤¹¡¥¥Ö¥í¥Ã¥¯ÉÕ¤­¤Ç¸Æ¤Ó½Ð¤µ
+ ¤ì¤¿¾ì¹ç¤Ï¡¤¤³¤ì¤é¤ÎÍ×ÁǤϥ֥í¥Ã¥¯¥Ñ¥é¥á¡¼¥¿¤È¤·¤ÆÅϤµ¤ì¡¤¥Ö¥í¥Ã
+ ¥¯¤«¤éÊÖ¤µ¤ì¤¿·ë²Ì¤òÊÖ¤·¤Þ¤¹¡¥¤Þ¤¿¡¢¤³¤Î¥Þ¥¹¥¿¡¼IO¤È¥¹¥ì¡¼¥ÖFile
+ ¤Ï¡¢¥Ö¥í¥Ã¥¯¤òÈ´¤±¤ë¤È¤­¤Ë¥¯¥í¡¼¥ººÑ¤ß¤Ç¤Ê¤±¤ì¤Ð¥¯¥í¡¼¥º¤µ¤ì¤Þ¤¹¡¥
- reset_signal
+ PTY.check(pid[, raise=false])
- PTY ¤Î»Ò¥×¥í¥»¥¹¤¬Æ°¤¤¤Æ¤¤¤Æ¤â¡¤¤½¤Î¥×¥í¥»¥¹¤Î½ªÎ»»þ¤ËÎã³°¤¬È¯À¸
- ¤·¤Ê¤¤¤è¤¦¤Ë¤·¤Þ¤¹¡¥
+ pid¤Ç»ØÄꤵ¤ì¤¿»Ò¥×¥í¥»¥¹¤Î¾õÂÖ¤ò¥Á¥§¥Ã¥¯¤·¡¤¼Â¹ÔÃæ¤Ç¤¢¤ì¤Ðnil¤ò
+ ÊÖ¤·¤Þ¤¹¡¥½ªÎ»¤·¤Æ¤¤¤ë¤«Ää»ß¤·¤Æ¤¤¤ë¾ì¹ç¡¢ÂèÆó°ú¿ô¤¬µ¶¤Ç¤¢¤ì¤Ð¡¢
+ Âбþ¤¹¤ëProcess::Status¥ª¥Ö¥¸¥§¥¯¥È¤òÊÖ¤·¤Þ¤¹¡£¿¿¤Ç¤¢¤ì¤Ð
+ PTY::ChildExitedÎã³°¤¬È¯À¸¤·¤Þ¤¹¡¥
4. ÍøÍѤˤĤ¤¤Æ
diff --git a/doc/rake/CHANGES b/doc/rake/CHANGES
new file mode 100644
index 0000000000..3b1a02b812
--- /dev/null
+++ b/doc/rake/CHANGES
@@ -0,0 +1,440 @@
+
+= Rake Changelog
+
+== Version 0.8.7
+
+* Fixed EXEEXT for JRuby on windows.
+
+== Version 0.8.6
+
+* Minor fixes to the RDoc generation (removed dependency on darkfish
+ and removed inline source option).
+
+== Version 0.8.5
+
+* Better support for the system command on Windows.
+
+== Version 0.8.4
+
+* Preserve case when locating rakefiles (patch from James
+ M. Lawrence/quix)
+
+* Better support for windows paths in the test task (patch from Simon
+ Chiang/bahuvrihi)
+
+* Windows system dir search order is now: HOME, HOMEDRIVE + HOMEPATH,
+ APPDATA, USERPROFILE (patch from Luis Lavena)
+
+* MingGW is now recognized as a windows platform. (patch from Luis
+ Lavena)
+
+* Numerous fixes to the windows test suite (patch from Luis Lavena).
+
+* Improved Rakefile case insensitivity testing (patch from Luis
+ Lavena).
+
+* Fixed stray ARGV option problem that was interfering with
+ Test::Unit::Runner.
+
+* Fixed default verbose mode (was accidently changed to false).
+
+* Removed reference to manage_gem to fix the warning produced by the
+ gem package task.
+
+== Version 0.8.3
+
+* Enhanced the system directory detection in windows. We now check
+ HOMEDRIVE/HOMEPATH and USERPROFILE if APPDATA isn't found. (Patch
+ supplied by James Tucker). Rake no long aborts if it can't find the
+ directory.
+
+* Added fix to handle ruby installations in directories with spaces in
+ their name.
+
+== Version 0.8.2
+
+* Fixed bug in package task so that it will include the subdir
+ directory in the package for testing. (Bug found by Adam Majer)
+
+* Added ENV var to rakefile to prevent OS X from including extended
+ attribute junk in a tar file. (Bug found by Adam Majer)
+
+* Fixed filename dependency order bug in test_inspect_pending and
+ test_to_s_pending. (Bug found by Adam Majer)
+
+* Fixed check for file utils options to make them immune to the
+ symbol/string differences. (Patch supplied by Edwin Pratomo)
+
+* Fixed bug with rules involving multiple source (Patch supplied by
+ Emanuel Indermühle)
+
+* Switched from getoptlong to optparse (patches supplied by Edwin
+ Pratomo)
+
+* The -T option will now attempt to dynamically sense the size of the
+ terminal. RAKE_COLUMNS will override any dynamic sensing.
+
+* FileList#clone and FileList#dup have better sematics w.r.t. taint
+ and freeze.
+
+* Added ability clear prerequisites, and/or actions from an existing
+ task.
+
+* Added the ability to reenable a task to be invoked a second time.
+
+* Changed RDoc test task to have no default template. This makes it
+ easier for the tempate to pick up the template from the environment.
+
+* Changed from using Mutex to Monitor. Evidently Mutex causes thread
+ join errors when Ruby is compiled with -disable-pthreads. (Patch
+ supplied by Ittay Dror)
+
+* Fixed bug in makefile parser that had problems with extra spaces in
+ file task names. (Patch supplied by Ittay Dror)
+
+* Added a performance patch for reading large makefile dependency
+ files. (Patch supplied by Ittay Dror)
+
+* Default values for task arguments can easily be specified with the
+ :with_defaults method. (Idea for default argument merging supplied
+ by (Adam Q. Salter)
+
+* The -T output will only self-truncate if the output is a tty.
+ However, if RAKE_COLUMNS is explicitly set, it will be honored in
+ any case. (Patch provided by Gavin Stark).
+
+* Numerous fixes for running under windows. A big thanks to Bheeshmar
+ Redheendran for spending a good part of the afternoon at the
+ Lonestar Ruby Conference to help me work out these issues.
+
+== Version 0.8.1
+
+* Removed requires on parsedate.rb (in Ftptools)
+* Removed ftools from rake.rb. Made it options in sys.rb
+
+== Version 0.8.0
+
+* Added task parameters (e.g. "rake build[version7]")
+* Made task parameters passable to prerequisites.
+* Comments are limited to 80 columns or so (suggested by Jamis Buck).
+* Added -D to display full comments (suggested by Jamis Buck).
+* The rake program will set the status value used in any explicit
+ exit(n) calls. (patch provided by Stephen Touset)
+* Fixed error in functional tests that were not including session (and
+ silently skipping the functionl tests.
+* Removed --usage and make -h the same as -H.
+* Make a prettier inspect for tasks.
+
+== Version 0.7.3
+
+* Added existing and existing! methods to FileList
+* FileLists now claim to be Arrays (via is_a?) to get better support
+ from the FileUtil module.
+* Added init and top_level for custom rake applications.
+
+== Version 0.7.2
+
+* Error messages are now send to stderr rather than stdout (from
+ Payton Quackenbush).
+* Better error handling on invalid command line arguments (from Payton
+ Quackenbush).
+* Added rcov task and updated unit testing for better code coverage.
+* Fixed some bugs where the application object was going to the global
+ appliation instead of using its own data.
+* Added square and curly bracket patterns to FileList#include (Tilman
+ Sauerbeck).
+* Added plain filename support to rule dependents (suggested by Nobu
+ Nakada).
+* Added pathmap support to rule dependents.
+* Added a 'tasks' method to a namespace to get a list of tasks
+ associated with the namespace.
+* Fixed the method name leak from FileUtils (bug found by Glenn
+ Vanderburg).
+* Added rake_extension to handle detection of extension collisions.
+* Added test for noop, bad_option and verbose flags to sh command.
+* Removed dependency on internal fu_xxx functions from FileUtils.
+* Added a 'shame' task to the Rakefile.
+* Added tar_command and zip_command options to the Package task.
+* Added a description to the gem task in GemPackageTask.
+* Fixed a bug when rules have multiple prerequisites (patch by Joel
+ VanderWerf)
+* Added a protected 'require "rubygems"' to test/test_application to
+ unbreak cruisecontrol.rb.
+* Added the handful of RakeFileUtils to the private method as well.
+* Added block based exclusion.
+* The clean task will no longer delete 'core' if it is a directory.
+* Removed rake_dup. Now we just simply rescue a bad dup.
+* Refactored the FileList reject logic to remove duplication.
+* Removed if __FILE__ at the end of the rake.rb file.
+
+== Version 0.7.1
+
+* Added optional filter parameter to the --tasks command line option.
+* Added flatten to allow rule transform procs to return lists of
+ prereqs (Joel VanderWerf provided patch).
+* Added pathmap to String and FileList.
+* The -r option will now load .rake files (but a straight require
+ doesn't yet). NOTE: This is experimental ... it may be
+ discontinued.
+* The -f option without a value will disable the search for a
+ Rakefile. The assumption is that the -r files are adequate.
+* Fixed the safe_ln function to fall back to cp in more error
+ scenarios.
+
+== Version 0.7.0
+
+* Added Rake.original_dir to return the original starting directory of
+ the rake application.
+* Added safe_ln support for openAFS (from Ludvig Omholt).
+* Added --trace reminder on short exception messages (David Heinemeier
+ Hansson suggestion).
+* Added multitask declaration that executes prerequisites in
+ parallel. (Doug Young providied an initial implementation).
+* Fixed missing_const hack to be compatible with Rails. (Jamis Buck
+ supplied test case).
+* Made the RDoc task default to internal (in-process) RDoc formatting.
+ The old behavior is still available by setting the +external+ flag
+ to true.
+* Rakefiles are now loaded with the expanded path to prevent
+ accidental polution from the Ruby load path.
+* The +namespace+ command now returns a NameSpace object that can be
+ used to lookup tasks defined in that namespace. This allows for
+ better anonymous namespace behavior.
+* Task objects my now be used in prerequisite lists directly.
+
+== Version 0.6.1
+
+* Rebuilt 0.6.0 gem without signing.
+
+== Version 0.6.0
+
+* Fixed file creation bug in the unit tests (caused infinite loop on
+ windows).
+* Fixed bug where session based functional tests were run under
+ windows.
+* Fixed bug in directory tasks so that updating a directory will not
+ retrigger file tasks depending on the directory (see
+ FileCreationTask and EarlyTime).
+* Added egrep to FileList
+* ruby command now runs same ruby version as rake.
+* Added investigation to task object. (suggested by Martin Fowler)
+* Added ruby_opts to the test task to allow arbitrary ruby options to
+ be passed to the test script. (Greg Fast)
+* Fixed the test loader to ignore options. (Greg Fast)
+* Moved Task, FileTask, FileCreationTask and RakeApp into the Rake
+ module namespace. Old style namespace behavior can be invoked via
+ the --classic-namespace option. (requested by Kelly Felkins).
+* GemTask is now sensitive to the gem platform (Masao Mutoh).
+* A non-existing file prerequisite will no longer cause an exception
+ (Philipp Neubeck).
+* Multiple prerequisites on Rake rules now allowed (initial patch
+ supplied by Stuart Jansen).
+
+== Version 0.5.4
+
+* Added double quotes to the test runner.
+* Added .svn to default ignore list.
+* Updated FileList#include to support nested arrays and filelists.
+
+== Version 0.5.3
+
+* Added support for importing Rakefile and other dependencies.
+* Fixed bug so that now rules can chain off of existing tasks as well
+ as existing files.
+* Fixed verbose flag bug in the testing task. Shortened some failure
+ messages.
+* Make FileUtils methods private at the top level module to avoid
+ accidental method leaking into other objects.
+* Added test loader option to test task. "testrb" is no longer the
+ default test loader. It is now eating syntax errors that should
+ halt the unit tests.
+* Revamped FileList so that it works more like and array (addressed
+ flatten bug). Added many tests around file list.
+* Added +ext+ method to both String and FileList.
+
+== Version 0.5.0
+
+* Fixed documentation that was lacking the Rake module name (Tilman
+ Sauerbeck).
+* Added tar.gz and tar.bz2 support to package task (Tilman Sauerbeck).
+* Recursive rules are now supported (Tilman Sauerbeck).
+* Added warning option for the Test Task (requested by Eric Hodel).
+* The jamis rdoc template is only used if it exists.
+* Added fix for Ruby 1.8.2 test/unit and rails problem.
+* Added contributed rake man file (Jani Monoses).
+* Added Brian Candler's fix for problems in --trace and --dry-run
+ mode.
+
+== Version 0.4.15
+
+* Fixed a bug that prevented the TESTOPTS flag from working with the
+ revised for 1.8.2 test task.
+* Updated the docs on --trace to indicate that it also enables a full
+ backtrace on errors.
+
+== Version 0.4.14
+
+* Modified the TestTask to workaround the Ruby 1.8.2 change in
+ autoexecuting unit tests.
+
+== Version 0.4.13
+
+* Fixed the dry-run flag so it is operating again.
+* Multiple arguments to sh and ruby commands will not be interpreted
+ by the shell (patch provided by Jonathan Paisley).
+
+== Version 0.4.12
+
+* Added --silent (-s) to suppress the (in directory) rake message.
+
+== Version 0.4.11
+
+* Changed the "don't know how to rake" message (finally)
+* Changes references to a literal "Rakefile" to reference the global
+ variable $rakefile (which contains the actual name of the rakefile).
+
+== Version 0.4.10
+
+* Added block support to the "sh" command, allowing users to take
+ special actions on the result of the system call. E.g.
+
+ sh "shell_command" do |ok, res|
+ puts "Program returned #{res.exitstatus}" if ! ok
+ end
+
+== Version 0.4.9
+
+* Switched to Jamis Buck's RDoc template.
+* Removed autorequire from Rake's gem spec. This prevents the Rake
+ libraries from loading while using rails.
+
+== Version 0.4.8
+
+* Added support for .rb versions of Rakefile.
+* Removed \\\n's from test task.
+* Fixed Ruby 1.9 compatibility issue with FileList.
+
+== Version 0.4.7
+
+* Fixed problem in FileList that caused Ruby 1.9 to go into infinite
+ recursion. Since to_a was removed from Object, it does not need to
+ added back into the list of methods to rewrite in FileList. (Thanks
+ to Kent Sibilev for pointing this out).
+
+== Version 0.4.6
+* Removed test version of ln in FileUtils that prevented safe_ln from
+ using ln.
+
+== Version 0.4.5
+* Upgraded comments in TestTask.
+* FileList to_s and inspect now automatically resolve pending changes.
+* FileList#exclude properly returns the FileList.
+
+== Version 0.4.4
+* Fixed initialization problem with @comment.
+* Now using multi -r technique in TestTask. Switch Rakefile back to
+ using the built-in test task macros because the rake runtime is no
+ longer needed.
+* Added 'TEST=filename' and 'TESTOPTS=options' to the Test Task
+ macros.
+* Allow a +test_files+ attribute in test tasks. This allows more
+ flexibility in specifying test files.
+
+== Version 0.4.3
+* Fixed Comment leakage.
+
+== Version 0.4.2
+* Added safe_ln that falls back to a copy if a file link is not supported.
+* Package builder now uses safe_ln.
+
+== Version 0.4.1
+* Task comments are now additive, combined with "/".
+* Works with (soon to be released) rubygems 0.6.2 (or 0.7.0)
+
+== Version 0.4.0
+* FileList now uses deferred loading. The file system is not searched
+ until the first call that needs the file names.
+* VAR=VALUE options are now accepted on the command line and are
+ treated like environment variables. The values may be tested in a
+ Rakefile by referencing ENV['VAR'].
+* File.mtime is now used (instead of File.new().mtime).
+
+== Version 0.3.2.x
+
+* Removed some hidden dependencies on rubygems. Tests now will test
+ gems only if they are installed.
+* Removed Sys from some example files. I believe that is that last
+ reference to Sys outside of the contrib area.
+* Updated all copyright notices to include 2004.
+
+== Version 0.3.2
+
+* GEM Installation now works with the application stub.
+
+== Version 0.3.1
+
+* FileLists now automatically ignore CVS, .bak, !
+* GEM Installation now works.
+
+== Version 0.3.0
+
+Promoted 0.2.10.
+
+== Version 0.2.10
+General
+
+* Added title to Rake's rdocs
+* Contrib packages are no longer included in the documentation.
+
+RDoc Issues
+
+* Removed default for the '--main' option
+* Fixed rendering of the rdoc options
+* Fixed clean/clobber confusion with rerdoc
+* 'title' attribute added
+
+Package Task Library Issues
+
+* Version (or explicit :noversion) is required.
+* +package_file+ attribute is now writable
+
+FileList Issues
+
+* Dropped bang version of exclude. Now using ant-like include/exclude semantics.
+* Enabled the "yield self" idiom in FileList#initialize.
+
+== Version 0.2.9
+
+This version contains numerous changes as the RubyConf.new(2003)
+presentation was being prepared. The changes include:
+
+* The monolithic rubyapp task library is in the process of being
+ dropped in favor of lighter weight task libraries.
+
+== Version 0.2.7
+
+* Added "desc" for task descriptions.
+* -T will now display tasks with descriptions.
+* -P will display tasks and prerequisites.
+* Dropped the Sys module in favor of the 1.8.x FileUtils module. Sys
+ is still supported in the contrib area.
+
+== Version 0.2.6
+
+* Moved to RubyForge
+
+== Version 0.2.5
+
+* Switched to standard ruby app builder.
+* Added no_match option to file matcher.
+
+== Version 0.2.4
+
+* Fixed indir, which neglected to actually change directories.
+
+== Version 0.2.3
+
+* Added rake module for a help target
+* Added 'for_files' to Sys
+* Added a $rakefile constant
+* Added test for selecting proper rule with multiple targets.
diff --git a/doc/rake/README b/doc/rake/README
new file mode 100644
index 0000000000..41668dd727
--- /dev/null
+++ b/doc/rake/README
@@ -0,0 +1,196 @@
+= RAKE -- Ruby Make
+
+Supporting Rake version: 0.8.6
+
+This package contains Rake, a simple ruby build program with
+capabilities similar to make.
+
+Rake has the following features:
+
+* Rakefiles (rake's version of Makefiles) are completely defined in
+ standard Ruby syntax. No XML files to edit. No quirky Makefile
+ syntax to worry about (is that a tab or a space?)
+
+* Users can specify tasks with prerequisites.
+
+* Rake supports rule patterns to synthesize implicit tasks.
+
+* Flexible FileLists that act like arrays but know about manipulating
+ file names and paths.
+
+* A library of prepackaged tasks to make building rakefiles easier. For example,
+ tasks for building tarballs, gems and RDoc output are provided.
+
+* Supports parallel execution of tasks.
+
+
+== Installation
+
+=== Gem Installation
+
+Download and install rake with the following.
+
+ gem install rake
+
+=== Normal Installation
+
+You can download the source tarball of the latest version of Rake from
+
+* http://rubyforge.org/project/showfiles.php?group_id=50
+
+Extract the tarball and run
+
+ % ruby install.rb
+
+from its distribution directory.
+
+== Usage
+
+=== Simple Example
+
+First, you must write a "Rakefile" file which contains the build rules. Here's
+a simple example:
+
+ task :default => [:test]
+
+ task :test do
+ ruby "test/unittest.rb"
+ end
+
+This Rakefile has two tasks:
+
+* A task named "test", which - upon invocation - will run a unit test file in
+ Ruby.
+* A task named "default". This task does nothing by itself, but it has exactly
+ one dependency, namely the "test" task. Invoking the "default" task will
+ cause Rake to invoke the "test" task as well.
+
+Running the "rake" command without any options will cause it to run the
+"default" task in the Rakefile:
+
+ % ls
+ Rakefile test/
+ % rake
+ (in /home/some_user/Projects/rake)
+ ruby test/unittest.rb
+ ....unit test output here...
+
+Type "rake --help" for all available options.
+
+
+=== More Information
+
+* For details on Rake's command-line invocation, read
+ doc/command_line_usage.rdoc[http://rake.rubyforge.org/files/doc/command_line_usage_rdoc.html]
+* For details on writing Rakefiles, see
+ doc/rakefile.rdoc[http://rake.rubyforge.org/files/doc/rakefile_rdoc.html].
+* For the original announcement of Rake, see
+ doc/rational.rdoc[http://rake.rubyforge.org/files/doc/rational_rdoc.html].
+* For a glossary of terms, see
+ doc/glossary.rdoc[http://rake.rubyforge.org/files/doc/glossary_rdoc.html].
+
+
+== Development
+
+=== Source Repository
+
+Rake is currently hosted at github. The github web page is
+http://github.com/jimweirich/rake. The public git clone URL is
+
+* git://github.com/jimweirich/rake.git
+
+=== Running the Rake Test Suite
+
+If you wish to run the unit and functional tests that come with Rake:
+
+* Install the 'session' gem in order to run the functional tests.
+* CD into the top project directory of rake.
+* Type one of the following:
+
+ rake # If you have a version of rake installed
+ ruby -Ilib bin/rake # If you do not have a version of rake installed.
+
+=== Issues and Bug Reports
+
+Bugs, features requests and other issues can be logged at
+
+* http://onestepback.org/redmine/projects/show/rake
+
+You will need an account to before you can post issues. Register at
+http://onestepback.org/redmine/account/register. Or you can send me
+an email (at jim dot weirich at gmail dot com)
+
+
+== Online Resources
+
+=== Rake References
+
+* Rake Documentation Home: http://docs.rubyrake.org
+* Rake Project Page: http://rubyforge.org/projects/rake
+* Rake API Documents: http://rake.rubyforge.org
+* Rake Source Code Repo: http://github.com/jimweirich/rake
+* Rake Git Repo Clone URL: git://github.com/jimweirich/rake.git
+
+=== Presentations and Articles about Rake
+
+* Jim Weirich's 2003 RubyConf presentation: http://onestepback.org/articles/buildingwithrake/
+* Martin Fowler's article on Rake: http://martinfowler.com/articles/rake.html
+
+== Other Make Reinvisionings ...
+
+Rake is a late entry in the make replacement field. Here are links to
+other projects with similar (and not so similar) goals.
+
+* http://directory.fsf.org/bras.html -- Bras, one of earliest
+ implementations of "make in a scripting language".
+* http://www.a-a-p.org -- Make in Python
+* http://www.aromatic.com/tools/jam.txt -- JAM, Java Automated Make
+* http://ant.apache.org -- The Ant project
+* http://ppt.perl.org/commands/make/index.html -- Make from the Perl
+ Power Tools implementation.
+* http://search.cpan.org/search?query=PerlBuildSystem -- The Perl Build System
+* http://make.rubyforge.org -- Rant, another Ruby make tool.
+
+== Credits
+
+[<b>Ryan Dlugosz</b>] For the initial conversation that sparked Rake.
+
+[<b>nobu.nokada@softhome.net</b>] For the initial patch for rule support.
+
+[<b>Tilman Sauerbeck <tilman@code-monkey.de></b>] For the recursive rule patch.
+
+== License
+
+Rake is available under an MIT-style license.
+
+:include: MIT-LICENSE
+
+== Support
+
+The Rake homepage is http://rake.rubyforge.org. You can find the Rake
+RubyForge page at http://rubyforge.org/projects/rake.
+
+Feel free to submit commits or feature requests. If you send a patch,
+remember to update the corresponding unit tests. If fact, I prefer
+new feature to be submitted in the form of new unit tests.
+
+For other information, feel free to ask on the ruby-talk mailing list
+(which is mirrored to comp.lang.ruby) or contact
+jim dot weirich at gmail.com.
+
+---
+
+= Other stuff
+
+Author:: Jim Weirich <jim.weirich@gmail.com>
+Requires:: Ruby 1.8.0 or later
+License:: Copyright 2003-2008 by Jim Weirich.
+ Released under an MIT-style license. See the LICENSE file
+ included in the distribution.
+
+== Warranty
+
+This software is provided "as is" and without any express or
+implied warranties, including, without limitation, the implied
+warranties of merchantibility and fitness for a particular
+purpose.
diff --git a/doc/rake/command_line_usage.rdoc b/doc/rake/command_line_usage.rdoc
new file mode 100644
index 0000000000..c60e53f51a
--- /dev/null
+++ b/doc/rake/command_line_usage.rdoc
@@ -0,0 +1,102 @@
+= Rake Command Line Usage
+
+Rake is invoked from the command line using:
+
+ % rake [<em>options</em> ...] [<em>VAR</em>=<em>VALUE</em>] [<em>targets</em> ...]
+
+Options are:
+
+[<tt><em>name</em>=<em>value</em></tt>]
+ Set the environment variable <em>name</em> to <em>value</em>
+ during the execution of the <b>rake</b> command. You can access
+ the value by using ENV['<em>name</em>'].
+
+[<tt>--classic-namespace</tt> (-n)]
+ Import the Task, FileTask, and FileCreateTask into the top-level
+ scope to be compatible with older versions of Rake. Alternatively
+ you can include the line <code>require
+ 'rake/classic_namespace'</code> in your Rakefile to get the
+ classic behavior.
+
+[<tt>--describe</tt> _pattern_ (-D)]
+ Describe the tasks (matching optional PATTERN), then exit.
+
+[<tt>--dry-run</tt> (-n)]
+ Do a dry run. Print the tasks invoked and executed, but do not
+ actually execute any of the actions.
+
+[<tt>--execute</tt> _code_ (-e)]
+ Execute some Ruby code and exit.
+
+[<tt>--execute-print</tt> _code_ (-p)]
+ Execute some Ruby code, print the result, and exit.
+
+[<tt>--execute-continue</tt> _code_ (-p)]
+ Execute some Ruby code, then continue with normal task processing.
+
+[<tt>--help</tt> (-H)]
+ Display some help text and exit.
+
+[<tt>--libdir</tt> _directory_ (-I)]
+ Add _directory_ to the list of directories searched for require.
+
+[<tt>--nosearch</tt> (-N)]
+ Do not search for a Rakefile in parent directories.
+
+[<tt>--prereqs</tt> (-P)]
+ Display a list of all tasks and their immediate prerequisites.
+
+[<tt>--quiet</tt> (-q)]
+ Do not echo commands from FileUtils.
+
+[<tt>--rakefile</tt> _filename_ (-f)]
+ Use _filename_ as the name of the rakefile. The default rakefile
+ names are +rakefile+ and +Rakefile+ (with +rakefile+ taking
+ precedence). If the rakefile is not found in the current
+ directory, +rake+ will search parent directories for a match. The
+ directory where the Rakefile is found will become the current
+ directory for the actions executed in the Rakefile.
+
+[<tt>--rakelibdir</tt> _rakelibdir_ (-R)]
+ Auto-import any .rake files in RAKELIBDIR. (default is 'rakelib')
+
+[<tt>--require</tt> _name_ (-r)]
+ Require _name_ before executing the Rakefile.
+
+[<tt>--rules</tt>]
+ Trace the rules resolution.
+
+[<tt>--silent (-s)</tt>]
+ Like --quiet, but also suppresses the 'in directory' announcement.
+
+[<tt>--system</tt> (-g)]
+ Use the system wide (global) rakefiles. The project Rakefile is
+ ignored. By default, the system wide rakefiles are used only if no
+ project Rakefile is found. On Unix-like system, the system wide
+ rake files are located in $HOME/.rake. On a windows system they
+ are stored in $APPDATA/Rake.
+
+[<tt>--no-system</tt> (-G)]
+ Use the project level Rakefile, ignoring the system-wide (global)
+ rakefiles.
+
+[<tt>--tasks</tt> (-T)]
+ Display a list of the major tasks and their comments. Comments
+ are defined using the "desc" command.
+
+[<tt>--trace</tt> (-t)]
+ Turn on invoke/execute tracing. Also enable full backtrace on
+ errors.
+
+[<tt>--usage</tt> (-h)]
+ Display a usage message and exit.
+
+[<tt>--verbose</tt> (-v)]
+ Echo the Sys commands to standard output.
+
+[<tt>--version</tt> (-V)]
+ Display the program version and exit.
+
+In addition, any command line option of the form
+<em>VAR</em>=<em>VALUE</em> will be added to the environment hash
+<tt>ENV</tt> and may be tested in the Rakefile.
diff --git a/doc/rake/example/Rakefile1 b/doc/rake/example/Rakefile1
new file mode 100644
index 0000000000..39f8bcceb0
--- /dev/null
+++ b/doc/rake/example/Rakefile1
@@ -0,0 +1,38 @@
+# Example Rakefile -*- ruby -*-
+
+task :default => [:main]
+
+file "a.o" => ["a.c"] do |t|
+ src = t.name.sub(/\.o$/, '.c')
+ sh "gcc #{src} -c -o #{t.name}"
+end
+
+file "b.o" => ["b.c"] do |t|
+ src = t.name.sub(/\.o$/, '.c')
+ sh "gcc #{src} -c -o #{t.name}"
+end
+
+file "main.o" => ["main.c"] do |t|
+ src = t.name.sub(/\.o$/, '.c')
+ sh "gcc #{src} -c -o #{t.name}"
+end
+
+OBJFILES = ["a.o", "b.o", "main.o"]
+task :obj => OBJFILES
+
+file "main" => OBJFILES do |t|
+ sh "gcc -o #{t.name} main.o a.o b.o"
+end
+
+task :clean do
+ rm_f FileList['*.o']
+ Dir['*~'].each { |fn| rm_f fn }
+end
+
+task :clobber => [:clean] do
+ rm_f "main"
+end
+
+task :run => ["main"] do
+ sh "./main"
+end
diff --git a/doc/rake/example/Rakefile2 b/doc/rake/example/Rakefile2
new file mode 100644
index 0000000000..35310eceb5
--- /dev/null
+++ b/doc/rake/example/Rakefile2
@@ -0,0 +1,35 @@
+# Example Rakefile -*- ruby -*-
+# Using the power of Ruby
+
+task :default => [:main]
+
+def ext(fn, newext)
+ fn.sub(/\.[^.]+$/, newext)
+end
+
+SRCFILES = Dir['*.c']
+OBJFILES = SRCFILES.collect { |fn| ext(fn,".o") }
+
+OBJFILES.each do |objfile|
+ srcfile = ext(objfile, ".c")
+ file objfile => [srcfile] do |t|
+ sh "gcc #{srcfile} -c -o #{t.name}"
+ end
+end
+
+file "main" => OBJFILES do |t|
+ sh "gcc -o #{t.name} main.o a.o b.o"
+end
+
+task :clean do
+ rm_f FileList['*.o']
+ Dir['*~'].each { |fn| rm_f fn }
+end
+
+task :clobber => [:clean] do
+ rm_f "main"
+end
+
+task :run => ["main"] do
+ sh "./main"
+end
diff --git a/doc/rake/example/a.c b/doc/rake/example/a.c
new file mode 100644
index 0000000000..620e6f8007
--- /dev/null
+++ b/doc/rake/example/a.c
@@ -0,0 +1,6 @@
+#include <stdio.h>
+
+void a()
+{
+ printf ("In function a\n");
+}
diff --git a/doc/rake/example/b.c b/doc/rake/example/b.c
new file mode 100644
index 0000000000..9b24aa1273
--- /dev/null
+++ b/doc/rake/example/b.c
@@ -0,0 +1,6 @@
+#include <stdio.h>
+
+void b()
+{
+ printf ("In function b\n");
+}
diff --git a/doc/rake/example/main.c b/doc/rake/example/main.c
new file mode 100644
index 0000000000..a04558a251
--- /dev/null
+++ b/doc/rake/example/main.c
@@ -0,0 +1,11 @@
+#include <stdio.h>
+
+extern void a();
+extern void b();
+
+int main ()
+{
+ a();
+ b();
+ return 0;
+}
diff --git a/doc/rake/glossary.rdoc b/doc/rake/glossary.rdoc
new file mode 100644
index 0000000000..0ca1869306
--- /dev/null
+++ b/doc/rake/glossary.rdoc
@@ -0,0 +1,51 @@
+= Glossary
+
+[<b>action</b>]
+ Code to be executed in order to perform a task. Actions in a
+ rakefile are specified in a code block (usually delimited by
+ +do+/+end+ pairs.
+
+[<b>execute</b>]
+ When a task is executed, all of its actions are performed, in
+ the order they were defined. Note that unlike
+ <tt>invoke</tt>, <tt>execute</tt> always executes the actions
+ (without invoking or executing the prerequisites).
+
+[<b>file task</b> (FileTask)]
+ A file task is a task whose purpose is to create a file
+ (which has the same name as the task). When invoked, a file
+ task will only execute if one or more of the following
+ conditions are true.
+
+ 1. The associated file does not exist.
+ 2. A prerequisite has a later time stamp than the existing file.
+
+ Because normal Tasks always have the current time as
+ timestamp, a FileTask that has a normal Task prerequisite
+ will always execute.
+
+[<b>invoke</b>]
+ When a task is invoked, first we check to see if it has been
+ invoked before. if it has been, then nothing else is done.
+ If this is the first time its been invoked, then we invoke
+ each of its prerequisites. Finally, we check to see if we
+ need to execute the actions of this task by calling
+ <tt>needed?</tt>. Finally, if the task is needed, we execute
+ its actions.
+
+ NOTE: Currently prerequisites are invoked even if the task is
+ not needed. This may change in the future.
+
+[<b>prerequisites</b>]
+ Every task has a set (possiblity empty) of prerequisites. A
+ prerequisite P to Task T is itself a task that must be invoked
+ before Task T.
+
+[<b>rule</b>]
+ A rule is a recipe for synthesizing a task when no task is
+ explicitly defined. Rules generally synthesize file tasks.
+
+[<b>task</b> (Task)]
+ Basic unit of work in a rakefile. A task has a name, a set of
+ prerequisites and a list of actions to be performed.
+
diff --git a/doc/rake/jamis.rb b/doc/rake/jamis.rb
new file mode 100644
index 0000000000..c7bc84ac5b
--- /dev/null
+++ b/doc/rake/jamis.rb
@@ -0,0 +1,591 @@
+module RDoc
+module Page
+
+FONTS = "\"Bitstream Vera Sans\", Verdana, Arial, Helvetica, sans-serif"
+
+STYLE = <<CSS
+a {
+ color: #00F;
+ text-decoration: none;
+}
+
+a:hover {
+ color: #77F;
+ text-decoration: underline;
+}
+
+body, td, p {
+ font-family: %fonts%;
+ background: #FFF;
+ color: #000;
+ margin: 0px;
+ font-size: small;
+}
+
+#content {
+ margin: 2em;
+}
+
+#description p {
+ margin-bottom: 0.5em;
+}
+
+.sectiontitle {
+ margin-top: 1em;
+ margin-bottom: 1em;
+ padding: 0.5em;
+ padding-left: 2em;
+ background: #005;
+ color: #FFF;
+ font-weight: bold;
+ border: 1px dotted black;
+}
+
+.attr-rw {
+ padding-left: 1em;
+ padding-right: 1em;
+ text-align: center;
+ color: #055;
+}
+
+.attr-name {
+ font-weight: bold;
+}
+
+.attr-desc {
+}
+
+.attr-value {
+ font-family: monospace;
+}
+
+.file-title-prefix {
+ font-size: large;
+}
+
+.file-title {
+ font-size: large;
+ font-weight: bold;
+ background: #005;
+ color: #FFF;
+}
+
+.banner {
+ background: #005;
+ color: #FFF;
+ border: 1px solid black;
+ padding: 1em;
+}
+
+.banner td {
+ background: transparent;
+ color: #FFF;
+}
+
+h1 a, h2 a, .sectiontitle a, .banner a {
+ color: #FF0;
+}
+
+h1 a:hover, h2 a:hover, .sectiontitle a:hover, .banner a:hover {
+ color: #FF7;
+}
+
+.dyn-source {
+ display: none;
+ background: #FFE;
+ color: #000;
+ border: 1px dotted black;
+ margin: 0.5em 2em 0.5em 2em;
+ padding: 0.5em;
+}
+
+.dyn-source .cmt {
+ color: #00F;
+ font-style: italic;
+}
+
+.dyn-source .kw {
+ color: #070;
+ font-weight: bold;
+}
+
+.method {
+ margin-left: 1em;
+ margin-right: 1em;
+ margin-bottom: 1em;
+}
+
+.description pre {
+ padding: 0.5em;
+ border: 1px dotted black;
+ background: #FFE;
+}
+
+.method .title {
+ font-family: monospace;
+ font-size: large;
+ border-bottom: 1px dashed black;
+ margin-bottom: 0.3em;
+ padding-bottom: 0.1em;
+}
+
+.method .description, .method .sourcecode {
+ margin-left: 1em;
+}
+
+.description p, .sourcecode p {
+ margin-bottom: 0.5em;
+}
+
+.method .sourcecode p.source-link {
+ text-indent: 0em;
+ margin-top: 0.5em;
+}
+
+.method .aka {
+ margin-top: 0.3em;
+ margin-left: 1em;
+ font-style: italic;
+ text-indent: 2em;
+}
+
+h1 {
+ padding: 1em;
+ border: 1px solid black;
+ font-size: x-large;
+ font-weight: bold;
+ color: #FFF;
+ background: #007;
+}
+
+h2 {
+ padding: 0.5em 1em 0.5em 1em;
+ border: 1px solid black;
+ font-size: large;
+ font-weight: bold;
+ color: #FFF;
+ background: #009;
+}
+
+h3, h4, h5, h6 {
+ padding: 0.2em 1em 0.2em 1em;
+ border: 1px dashed black;
+ color: #000;
+ background: #AAF;
+}
+
+.sourcecode > pre {
+ padding: 0.5em;
+ border: 1px dotted black;
+ background: #FFE;
+}
+
+CSS
+
+XHTML_PREAMBLE = %{<?xml version="1.0" encoding="%charset%"?>
+<!DOCTYPE html
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+}
+
+HEADER = XHTML_PREAMBLE + <<ENDHEADER
+<html>
+ <head>
+ <title>%title%</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=%charset%" />
+ <link rel="stylesheet" href="%style_url%" type="text/css" media="screen" />
+
+ <script language="JavaScript" type="text/javascript">
+ // <![CDATA[
+
+ function toggleSource( id )
+ {
+ var elem
+ var link
+
+ if( document.getElementById )
+ {
+ elem = document.getElementById( id )
+ link = document.getElementById( "l_" + id )
+ }
+ else if ( document.all )
+ {
+ elem = eval( "document.all." + id )
+ link = eval( "document.all.l_" + id )
+ }
+ else
+ return false;
+
+ if( elem.style.display == "block" )
+ {
+ elem.style.display = "none"
+ link.innerHTML = "show source"
+ }
+ else
+ {
+ elem.style.display = "block"
+ link.innerHTML = "hide source"
+ }
+ }
+
+ function openCode( url )
+ {
+ window.open( url, "SOURCE_CODE", "width=400,height=400,scrollbars=yes" )
+ }
+ // ]]>
+ </script>
+ </head>
+
+ <body>
+ENDHEADER
+
+FILE_PAGE = <<HTML
+<table border='0' cellpadding='0' cellspacing='0' width="100%" class='banner'>
+ <tr><td>
+ <table width="100%" border='0' cellpadding='0' cellspacing='0'><tr>
+ <td class="file-title" colspan="2"><span class="file-title-prefix">File</span><br />%short_name%</td>
+ <td align="right">
+ <table border='0' cellspacing="0" cellpadding="2">
+ <tr>
+ <td>Path:</td>
+ <td>%full_path%
+IF:cvsurl
+ &nbsp;(<a href="%cvsurl%">CVS</a>)
+ENDIF:cvsurl
+ </td>
+ </tr>
+ <tr>
+ <td>Modified:</td>
+ <td>%dtm_modified%</td>
+ </tr>
+ </table>
+ </td></tr>
+ </table>
+ </td></tr>
+</table><br>
+HTML
+
+###################################################################
+
+CLASS_PAGE = <<HTML
+<table width="100%" border='0' cellpadding='0' cellspacing='0' class='banner'><tr>
+ <td class="file-title"><span class="file-title-prefix">%classmod%</span><br />%full_name%</td>
+ <td align="right">
+ <table cellspacing=0 cellpadding=2>
+ <tr valign="top">
+ <td>In:</td>
+ <td>
+START:infiles
+HREF:full_path_url:full_path:
+IF:cvsurl
+&nbsp;(<a href="%cvsurl%">CVS</a>)
+ENDIF:cvsurl
+END:infiles
+ </td>
+ </tr>
+IF:parent
+ <tr>
+ <td>Parent:</td>
+ <td>
+IF:par_url
+ <a href="%par_url%">
+ENDIF:par_url
+%parent%
+IF:par_url
+ </a>
+ENDIF:par_url
+ </td>
+ </tr>
+ENDIF:parent
+ </table>
+ </td>
+ </tr>
+ </table>
+HTML
+
+###################################################################
+
+METHOD_LIST = <<HTML
+ <div id="content">
+IF:diagram
+ <table cellpadding='0' cellspacing='0' border='0' width="100%"><tr><td align="center">
+ %diagram%
+ </td></tr></table>
+ENDIF:diagram
+
+IF:description
+ <div class="description">%description%</div>
+ENDIF:description
+
+IF:requires
+ <div class="sectiontitle">Required Files</div>
+ <ul>
+START:requires
+ <li>HREF:aref:name:</li>
+END:requires
+ </ul>
+ENDIF:requires
+
+IF:toc
+ <div class="sectiontitle">Contents</div>
+ <ul>
+START:toc
+ <li><a href="#%href%">%secname%</a></li>
+END:toc
+ </ul>
+ENDIF:toc
+
+IF:methods
+ <div class="sectiontitle">Methods</div>
+ <ul>
+START:methods
+ <li>HREF:aref:name:</li>
+END:methods
+ </ul>
+ENDIF:methods
+
+IF:includes
+<div class="sectiontitle">Included Modules</div>
+<ul>
+START:includes
+ <li>HREF:aref:name:</li>
+END:includes
+</ul>
+ENDIF:includes
+
+START:sections
+IF:sectitle
+<div class="sectiontitle"><a nem="%secsequence%">%sectitle%</a></div>
+IF:seccomment
+<div class="description">
+%seccomment%
+</div>
+ENDIF:seccomment
+ENDIF:sectitle
+
+IF:classlist
+ <div class="sectiontitle">Classes and Modules</div>
+ %classlist%
+ENDIF:classlist
+
+IF:constants
+ <div class="sectiontitle">Constants</div>
+ <table border='0' cellpadding='5'>
+START:constants
+ <tr valign='top'>
+ <td class="attr-name">%name%</td>
+ <td>=</td>
+ <td class="attr-value">%value%</td>
+ </tr>
+IF:desc
+ <tr valign='top'>
+ <td>&nbsp;</td>
+ <td colspan="2" class="attr-desc">%desc%</td>
+ </tr>
+ENDIF:desc
+END:constants
+ </table>
+ENDIF:constants
+
+IF:attributes
+ <div class="sectiontitle">Attributes</div>
+ <table border='0' cellpadding='5'>
+START:attributes
+ <tr valign='top'>
+ <td class='attr-rw'>
+IF:rw
+[%rw%]
+ENDIF:rw
+ </td>
+ <td class='attr-name'>%name%</td>
+ <td class='attr-desc'>%a_desc%</td>
+ </tr>
+END:attributes
+ </table>
+ENDIF:attributes
+
+IF:method_list
+START:method_list
+IF:methods
+<div class="sectiontitle">%type% %category% methods</div>
+START:methods
+<div class="method">
+ <div class="title">
+IF:callseq
+ <a name="%aref%"></a><b>%callseq%</b>
+ENDIF:callseq
+IFNOT:callseq
+ <a name="%aref%"></a><b>%name%</b>%params%
+ENDIF:callseq
+IF:codeurl
+[ <a href="javascript:openCode('%codeurl%')">source</a> ]
+ENDIF:codeurl
+ </div>
+IF:m_desc
+ <div class="description">
+ %m_desc%
+ </div>
+ENDIF:m_desc
+IF:aka
+<div class="aka">
+ This method is also aliased as
+START:aka
+ <a href="%aref%">%name%</a>
+END:aka
+</div>
+ENDIF:aka
+IF:sourcecode
+<div class="sourcecode">
+ <p class="source-link">[ <a href="javascript:toggleSource('%aref%_source')" id="l_%aref%_source">show source</a> ]</p>
+ <div id="%aref%_source" class="dyn-source">
+<pre>
+%sourcecode%
+</pre>
+ </div>
+</div>
+ENDIF:sourcecode
+</div>
+END:methods
+ENDIF:methods
+END:method_list
+ENDIF:method_list
+END:sections
+</div>
+HTML
+
+FOOTER = <<ENDFOOTER
+ </body>
+</html>
+ENDFOOTER
+
+BODY = HEADER + <<ENDBODY
+ !INCLUDE! <!-- banner header -->
+
+ <div id="bodyContent">
+ #{METHOD_LIST}
+ </div>
+
+ #{FOOTER}
+ENDBODY
+
+########################## Source code ##########################
+
+SRC_PAGE = XHTML_PREAMBLE + <<HTML
+<html>
+<head><title>%title%</title>
+<meta http-equiv="Content-Type" content="text/html; charset=%charset%">
+<style>
+.ruby-comment { color: green; font-style: italic }
+.ruby-constant { color: #4433aa; font-weight: bold; }
+.ruby-identifier { color: #222222; }
+.ruby-ivar { color: #2233dd; }
+.ruby-keyword { color: #3333FF; font-weight: bold }
+.ruby-node { color: #777777; }
+.ruby-operator { color: #111111; }
+.ruby-regexp { color: #662222; }
+.ruby-value { color: #662222; font-style: italic }
+ .kw { color: #3333FF; font-weight: bold }
+ .cmt { color: green; font-style: italic }
+ .str { color: #662222; font-style: italic }
+ .re { color: #662222; }
+</style>
+</head>
+<body bgcolor="white">
+<pre>%code%</pre>
+</body>
+</html>
+HTML
+
+########################## Index ################################
+
+FR_INDEX_BODY = <<HTML
+!INCLUDE!
+HTML
+
+FILE_INDEX = XHTML_PREAMBLE + <<HTML
+<html>
+<head>
+<meta http-equiv="Content-Type" content="text/html; charset=%charset%">
+<style>
+<!--
+ body {
+ background-color: #EEE;
+ font-family: #{FONTS};
+ color: #000;
+ margin: 0px;
+ }
+ .banner {
+ background: #005;
+ color: #FFF;
+ padding: 0.2em;
+ font-size: small;
+ font-weight: bold;
+ text-align: center;
+ }
+ .entries {
+ margin: 0.25em 1em 0 1em;
+ font-size: x-small;
+ }
+ a {
+ color: #00F;
+ text-decoration: none;
+ white-space: nowrap;
+ }
+ a:hover {
+ color: #77F;
+ text-decoration: underline;
+ }
+-->
+</style>
+<base target="docwin">
+</head>
+<body>
+<div class="banner">%list_title%</div>
+<div class="entries">
+START:entries
+<a href="%href%">%name%</a><br>
+END:entries
+</div>
+</body></html>
+HTML
+
+CLASS_INDEX = FILE_INDEX
+METHOD_INDEX = FILE_INDEX
+
+INDEX = XHTML_PREAMBLE + <<HTML
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+ <title>%title%</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=%charset%">
+</head>
+
+<frameset cols="20%,*">
+ <frameset rows="15%,35%,50%">
+ <frame src="fr_file_index.html" title="Files" name="Files" />
+ <frame src="fr_class_index.html" name="Classes" />
+ <frame src="fr_method_index.html" name="Methods" />
+ </frameset>
+IF:inline_source
+ <frame src="%initial_page%" name="docwin">
+ENDIF:inline_source
+IFNOT:inline_source
+ <frameset rows="80%,20%">
+ <frame src="%initial_page%" name="docwin">
+ <frame src="blank.html" name="source">
+ </frameset>
+ENDIF:inline_source
+ <noframes>
+ <body bgcolor="white">
+ Click <a href="html/index.html">here</a> for a non-frames
+ version of this page.
+ </body>
+ </noframes>
+</frameset>
+
+</html>
+HTML
+
+end
+end
+
+
diff --git a/doc/rake/proto_rake.rdoc b/doc/rake/proto_rake.rdoc
new file mode 100644
index 0000000000..39b9b88c1f
--- /dev/null
+++ b/doc/rake/proto_rake.rdoc
@@ -0,0 +1,127 @@
+= Original Prototype Rake
+
+This is the original 100 line prototype rake program.
+
+---
+ #!/usr/bin/env ruby
+
+ require 'ftools'
+
+ class Task
+ TASKS = Hash.new
+
+ attr_reader :prerequisites
+
+ def initialize(task_name)
+ @name = task_name
+ @prerequisites = []
+ @actions = []
+ end
+
+ def enhance(deps=nil, &block)
+ @prerequisites |= deps if deps
+ @actions << block if block_given?
+ self
+ end
+
+ def name
+ @name.to_s
+ end
+
+ def invoke
+ @prerequisites.each { |n| Task[n].invoke }
+ execute if needed?
+ end
+
+ def execute
+ return if @triggered
+ @triggered = true
+ @actions.collect { |act| result = act.call(self) }.last
+ end
+
+ def needed?
+ true
+ end
+
+ def timestamp
+ Time.now
+ end
+
+ class << self
+ def [](task_name)
+ TASKS[intern(task_name)] or fail "Don't know how to rake #{task_name}"
+ end
+
+ def define_task(args, &block)
+ case args
+ when Hash
+ fail "Too Many Target Names: #{args.keys.join(' ')}" if args.size > 1
+ fail "No Task Name Given" if args.size < 1
+ task_name = args.keys[0]
+ deps = args[task_name]
+ else
+ task_name = args
+ deps = []
+ end
+ deps = deps.collect {|d| intern(d) }
+ get(task_name).enhance(deps, &block)
+ end
+
+ def get(task_name)
+ name = intern(task_name)
+ TASKS[name] ||= self.new(name)
+ end
+
+ def intern(task_name)
+ (Symbol === task_name) ? task_name : task_name.intern
+ end
+ end
+ end
+
+ class FileTask < Task
+ def needed?
+ return true unless File.exist?(name)
+ latest_prereq = @prerequisites.collect{|n| Task[n].timestamp}.max
+ return false if latest_prereq.nil?
+ timestamp < latest_prereq
+ end
+
+ def timestamp
+ File.new(name.to_s).mtime
+ end
+ end
+
+ def task(args, &block)
+ Task.define_task(args, &block)
+ end
+
+ def file(args, &block)
+ FileTask.define_task(args, &block)
+ end
+
+ def sys(cmd)
+ puts cmd
+ system(cmd) or fail "Command Failed: [#{cmd}]"
+ end
+
+ def rake
+ begin
+ here = Dir.pwd
+ while ! File.exist?("Rakefile")
+ Dir.chdir("..")
+ fail "No Rakefile found" if Dir.pwd == here
+ here = Dir.pwd
+ end
+ puts "(in #{Dir.pwd})"
+ load "./Rakefile"
+ ARGV.push("default") if ARGV.size == 0
+ ARGV.each { |task_name| Task[task_name].invoke }
+ rescue Exception => ex
+ puts "rake aborted ... #{ex.message}"
+ puts ex.backtrace.find {|str| str =~ /Rakefile/ } || ""
+ end
+ end
+
+ if __FILE__ == $0 then
+ rake
+ end
diff --git a/doc/rake/rakefile.rdoc b/doc/rake/rakefile.rdoc
new file mode 100644
index 0000000000..f8ae72c32a
--- /dev/null
+++ b/doc/rake/rakefile.rdoc
@@ -0,0 +1,534 @@
+= Rakefile Format (as of version 0.8.3)
+
+First of all, there is no special format for a Rakefile. A Rakefile
+contains executable Ruby code. Anything legal in a ruby script is
+allowed in a Rakefile.
+
+Now that we understand there is no special syntax in a Rakefile, there
+are some conventions that are used in a Rakefile that are a little
+unusual in a typical Ruby program. Since a Rakefile is tailored to
+specifying tasks and actions, the idioms used in a Rakefile are
+designed to support that.
+
+So, what goes into a Rakefile?
+
+== Tasks
+
+Tasks are the main unit of work in a Rakefile. Tasks have a name
+(usually given as a symbol or a string), a list of prerequisites (more
+symbols or strings) and a list of actions (given as a block).
+
+=== Simple Tasks
+
+A task is declared by using the +task+ method. +task+ takes a single
+parameter that is the name of the task.
+
+ task :name
+
+=== Tasks with Prerequisites
+
+Any prerequisites are given as a list (inclosed in square brackets)
+following the name and an arrow (=>).
+
+ task :name => [:prereq1, :prereq2]
+
+<b>NOTE:</b> Although this syntax looks a little funky, it is legal
+Ruby. We are constructing a hash where the key is :name and the value
+for that key is the list of prerequisites. It is equivalent to the
+following ...
+
+ hash = Hash.new
+ hash[:name] = [:prereq1, :prereq2]
+ task(hash)
+
+=== Tasks with Actions
+
+Actions are defined by passing a block to the +task+ method. Any Ruby
+code can be placed in the block. The block may reference the task
+object via the block paramter..
+
+ task :name => [:prereq1, :prereq2] do |t|
+ # actions (may reference t)
+ end
+
+=== Multiple Definitions
+
+A task may be specified more than once. Each specification adds its
+prerequisites and actions to the existing definition. This allows one
+part of a rakefile to specify the actions and a different rakefile
+(perhaps separately generated) to specify the dependencies.
+
+For example, the following is equivalent to the single task
+specification given above.
+
+ task :name
+ task :name => [:prereq1]
+ task :name => [:prereq2]
+ task :name do |t|
+ # actions
+ end
+
+== File Tasks
+
+Some tasks are designed to create a file from one or more other files.
+Tasks that generate these files may be skipped if the file already
+exists. File tasks are used to specify file creation tasks.
+
+File tasks are declared using the +file+ method (instead of the +task+
+method). In addition, file tasks are usually named with a string
+rather than a symbol.
+
+The following file task creates a executable program (named +prog+)
+given two object files name <tt>a.o</tt> and <tt>b.o</tt>. The tasks
+for creating <tt>a.o</tt> and <tt>b.o</tt> are not shown.
+
+ file "prog" => ["a.o", "b.o"] do |t|
+ sh "cc -o #{t.name} #{t.prerequisites.join(' ')}"
+ end
+
+== Directory Tasks
+
+It is common to need to create directories upon demand. The
++directory+ convenience method is a short-hand for creating a FileTask
+that creates the directory. For example, the following declaration
+...
+
+ directory "testdata/examples/doc"
+
+is equivalent to ...
+
+ file "testdata" do |t| mkdir t.name end
+ file "testdata/examples" do |t| mkdir t.name end
+ file "testdata/examples/doc" do |t| mkdir t.name end
+
+The +directory+ method does not accept prerequisites or actions, but
+both prerequisites and actions can be added later. For example ...
+
+ directory "testdata"
+ file "testdata" => ["otherdata"]
+ file "testdata" do
+ cp Dir["standard_data/*.data"], "testdata"
+ end
+
+== Tasks with Parallel Prerequisites
+
+Rake allows parallel execution of prerequisites using the following syntax:
+
+ multitask :copy_files => [:copy_src, :copy_doc, :copy_bin] do
+ puts "All Copies Complete"
+ end
+
+In this example, +copy_files+ is a normal rake task. Its actions are
+executed whereever all of its prerequisites are done. The big
+difference is that the prerequisites (+copy_src+, +copy_bin+ and
++copy_doc+) are executed in parallel. Each of the prerequisites are
+run in their own Ruby thread, possibly allowing faster overall runtime.
+
+=== Secondary Prerequisites
+
+If any of the primary prerequites of a multitask have common secondary
+prerequisites, all of the primary/parallel prerequisites will wait
+until the common prerequisites have been run.
+
+For example, if the <tt>copy_<em>xxx</em></tt> tasks have the
+following prerequisites:
+
+ task :copy_src => [:prep_for_copy]
+ task :copy_bin => [:prep_for_copy]
+ task :copy_doc => [:prep_for_copy]
+
+Then the +prep_for_copy+ task is run before starting all the copies in
+parallel. Once +prep_for_copy+ is complete, +copy_src+, +copy_bin+,
+and +copy_doc+ are all run in parallel. Note that +prep_for_copy+ is
+run only once, even though it is referenced in multiple threads.
+
+=== Thread Safety
+
+The Rake internal data structures are thread-safe with respect
+to the multitask parallel execution, so there is no need for the user
+to do extra synchronization for Rake's benefit. However, if there are
+user data structures shared between the parallel prerequisites, the
+user must do whatever is necessary to prevent race conditions.
+
+== Tasks with Arguments
+
+Prior to version 0.8.0, rake was only able to handle command line
+arguments of the form NAME=VALUE that were passed into Rake via the
+ENV hash. Many folks had asked for some kind of simple command line
+arguments, perhaps using "--" to separate regular task names from
+argument values on the command line. The problem is that there was no
+easy way to associate positional arguments on the command line with
+different tasks. Suppose both tasks :a and :b expect a command line
+argument: does the first value go with :a? What if :b is run first?
+Should it then get the first command line argument.
+
+Rake 0.8.0 solves this problem by explicitly passing values directly
+to the tasks that need them. For example, if I had a release task
+that required a version number, I could say:
+
+ rake release[0.8.2]
+
+And the string "0.8.2" will be passed to the :release task. Multiple
+arguments can be passed by separating them with a comma, for example:
+
+ rake name[john,doe]
+
+Just a few words of caution. The rake task name and its arguments
+need to be a single command line argument to rake. This generally
+means no spaces. If spaces are needed, then the entire rake +
+argument string should be quoted. Something like this:
+
+ rake "name[billy bob, smith]"
+
+(Quoting rules vary between operating systems and shells, so make sure
+you consult the proper docs for your OS/shell).
+
+=== Tasks that Expect Parameters
+
+Parameters are only given to tasks that are setup to expect them. In
+order to handle named parameters, the task declaration syntax for
+tasks has been extended slightly.
+
+For example, a task that needs a first name and last name might be
+declared as:
+
+ task :name, [:first_name, :last_name]
+
+The first argument is still the name of the task (:name in this case).
+The next to argumements are the names of the parameters expected by
+:name in an array (:first_name and :last_name in the example).
+
+To access the values of the paramters, the block defining the task
+behaviour can now accept a second parameter:
+
+ task :name, [:first_name, :last_name] do |t, args|
+ puts "First name is #{args.first_name}"
+ puts "Last name is #{args.last_name}"
+ end
+
+The first argument of the block "t" is always bound to the current
+task object. The second argument "args" is an open-struct like object
+that allows access to the task arguments. Extra command line
+arguments to a task are ignored. Missing command line arguments are
+given the nil value.
+
+If you wish to specify default values for the arguments, you can use
+the with_defaults method in the task body. Here is the above example
+where we specify default values for the first and last names:
+
+ task :name, [:first_name, :last_name] do |t, args|
+ args.with_defaults(:first_name => "John", :last_name => "Dough")
+ puts "First name is #{args.first_name}"
+ puts "Last name is #{args.last_name}"
+ end
+
+=== Tasks that Expect Parameters and Have Prerequisites
+
+Tasks that use parameters have a slightly different format for
+prerequisites. Use the arrow notation to indicate the prerequisites
+for tasks with arguments. For example:
+
+ task :name, [:first_name, :last_name] => [:pre_name] do |t, args|
+ args.with_defaults(:first_name => "John", :last_name => "Dough")
+ puts "First name is #{args.first_name}"
+ puts "Last name is #{args.last_name}"
+ end
+
+=== Deprecated Task Parameters Format
+
+There is an older format for declaring task parameters that omitted
+the task argument array and used the :needs keyword to introduce the
+dependencies. That format is still supported for compatibility, but
+is not recommended for use.
+
+== Accessing Task Programatically
+
+Sometimes it is useful to manipulate tasks programatically in a
+Rakefile. To find a task object, use the <tt>:[]</tt> operator on the
+<tt>Rake::Task</tt>.
+
+=== Programmatic Task Example
+
+For example, the following Rakefile defines two tasks. The :doit task
+simply prints a simple "DONE" message. The :dont class will lookup
+the doit class and remove (clear) all of its prerequisites and
+actions.
+
+ task :doit do
+ puts "DONE"
+ end
+
+ task :dont do
+ Rake::Task[:doit].clear
+ end
+
+Running this example:
+
+ $ rake doit
+ (in /Users/jim/working/git/rake/x)
+ DONE
+ $ rake dont doit
+ (in /Users/jim/working/git/rake/x)
+ $
+
+The ability to programmatically manipulate tasks gives rake very
+powerful meta-programming capabilities w.r.t. task execution, but
+should be used with cation.
+
+== Rules
+
+When a file is named as a prerequisite, but does not have a file task
+defined for it, Rake will attempt to synthesize a task by looking at a
+list of rules supplied in the Rakefile.
+
+Suppose we were trying to invoke task "mycode.o", but no task is
+defined for it. But the rakefile has a rule that look like this ...
+
+ rule '.o' => ['.c'] do |t|
+ sh "cc #{t.source} -c -o #{t.name}"
+ end
+
+This rule will synthesize any task that ends in ".o". It has a
+prerequisite a source file with an extension of ".c" must exist. If
+Rake is able to find a file named "mycode.c", it will automatically
+create a task that builds "mycode.o" from "mycode.c".
+
+If the file "mycode.c" does not exist, rake will attempt
+to recursively synthesize a rule for it.
+
+When a task is synthesized from a rule, the +source+ attribute of the
+task is set to the matching source file. This allows us to write
+rules with actions that reference the source file.
+
+=== Advanced Rules
+
+Any regular expression may be used as the rule pattern. Additionally,
+a proc may be used to calculate the name of the source file. This
+allows for complex patterns and sources.
+
+The following rule is equivalent to the example above.
+
+ rule( /\.o$/ => [
+ proc {|task_name| task_name.sub(/\.[^.]+$/, '.c') }
+ ]) do |t|
+ sh "cc #{t.source} -c -o #{t.name}"
+ end
+
+<b>NOTE:</b> Because of a _quirk_ in Ruby syntax, parenthesis are
+required on *rule* when the first argument is a regular expression.
+
+The following rule might be used for Java files ...
+
+ rule '.java' => [
+ proc { |tn| tn.sub(/\.class$/, '.java').sub(/^classes\//, 'src/') }
+ ] do |t|
+ java_compile(t.source, t.name)
+ end
+
+<b>NOTE:</b> +java_compile+ is a hypothetical method that invokes the
+java compiler.
+
+== Importing Dependencies
+
+Any ruby file (including other rakefiles) can be included with a
+standard Ruby +require+ command. The rules and declarations in the
+required file are just added to the definitions already accumulated.
+
+Because the files are loaded _before_ the rake targets are evaluated,
+the loaded files must be "ready to go" when the rake command is
+invoked. This make generated dependency files difficult to use. By
+the time rake gets around to updating the dependencies file, it is too
+late to load it.
+
+The +import+ command addresses this by specifying a file to be loaded
+_after_ the main rakefile is loaded, but _before_ any targets on the
+command line are specified. In addition, if the file name matches an
+explicit task, that task is invoked before loading the file. This
+allows dependency files to be generated and used in a single rake
+command invocation.
+
+=== Example:
+
+ require 'rake/loaders/makefile'
+
+ file ".depends.mf" => [SRC_LIST] do |t|
+ sh "makedepend -f- -- #{CFLAGS} -- #{t.prerequisites} > #{t.name}"
+ end
+
+ import ".depends.mf"
+
+If ".depends" does not exist, or is out of date w.r.t. the source
+files, a new ".depends" file is generated using +makedepend+ before
+loading.
+
+== Comments
+
+Standard Ruby comments (beginning with "#") can be used anywhere it is
+legal in Ruby source code, including comments for tasks and rules.
+However, if you wish a task to be described using the "-T" switch,
+then you need to use the +desc+ command to describe the task.
+
+=== Example:
+
+ desc "Create a distribution package"
+ task :package => [ ... ] do ... end
+
+The "-T" switch (or "--tasks" if you like to spell things out) will
+display a list of tasks that have a defined comment. If you use
++desc+ to describe your major tasks, you have a semi-automatic way of
+generating a summary of your Rake file.
+
+ traken$ rake -T
+ (in /home/.../rake)
+ rake clean # Remove any temporary products.
+ rake clobber # Remove any generated file.
+ rake clobber_rdoc # Remove rdoc products
+ rake contrib_test # Run tests for contrib_test
+ rake default # Default Task
+ rake install # Install the application
+ rake lines # Count lines in the main rake file
+ rake rdoc # Build the rdoc HTML Files
+ rake rerdoc # Force a rebuild of the RDOC files
+ rake test # Run tests
+ rake testall # Run all test targets
+
+Only tasks with descriptions will be displayed with the "-T" switch.
+Use "-P" (or "--prereqs") to get a list of all tasks and their
+prerequisites.
+
+== Namespaces
+
+As projects grow (and along with it, the number of tasks), it is
+common for task names to begin to clash. For example, if you might
+have a main program and a set of sample programs built by a single
+Rakefile. By placing the tasks related to the main program in one
+namespace, and the tasks for building the sample programs in a
+different namespace, the task names will not will not interfer with
+each other.
+
+For example:
+
+ namespace "main"
+ task :build do
+ # Build the main program
+ end
+ end
+
+ namespace "samples" do
+ task :build do
+ # Build the sample programs
+ end
+ end
+
+ task :build => ["main:build", "samples:build"]
+
+Referencing a task in a separate namespace can be achieved by
+prefixing the task name with the namespace and a colon
+(e.g. "main:build" refers to the :build task in the +main+ namespace).
+Nested namespaces are supported, so
+
+Note that the name given in the +task+ command is always the unadorned
+task name without any namespace prefixes. The +task+ command always
+defines a task in the current namespace.
+
+=== FileTasks
+
+File task names are not scoped by the namespace command. Since the
+name of a file task is the name of an actual file in the file system,
+it makes little sense to include file task names in name space.
+Directory tasks (created by the +directory+ command) are a type of
+file task and are also not affected by namespaces.
+
+=== Name Resolution
+
+When looking up a task name, rake will start with the current
+namespace and attempt to find the name there. If it fails to find a
+name in the current namespace, it will search the parent namespaces
+until a match is found (or an error occurs if there is no match).
+
+The "rake" namespace is a special implicit namespace that refers to
+the toplevel names.
+
+If a task name begins with a "^" character, the name resolution will
+start in the parent namespace. Multiple "^" characters are allowed.
+
+Here is an example file with multiple :run tasks and how various names
+resolve in different locations.
+
+ task :run
+
+ namespace "one" do
+ task :run
+
+ namespace "two" do
+ task :run
+
+ # :run => "one:two:run"
+ # "two:run" => "one:two:run"
+ # "one:two:run" => "one:two:run"
+ # "one:run" => "one:run"
+ # "^run" => "one:run"
+ # "^^run" => "rake:run" (the top level task)
+ # "rake:run" => "rake:run" (the top level task)
+ end
+
+ # :run => "one:run"
+ # "two:run" => "one:two:run"
+ # "^run" => "rake:run"
+ end
+
+ # :run => "rake:run"
+ # "one:run" => "one:run"
+ # "one:two:run" => "one:two:run"
+
+== FileLists
+
+FileLists are the way Rake manages lists of files. You can treat a
+FileList as an array of strings for the most part, but FileLists
+support some additional operations.
+
+=== Creating a FileList
+
+Creating a file list is easy. Just give it the list of file names:
+
+ fl = FileList['file1.rb', file2.rb']
+
+Or give it a glob pattern:
+
+ fl = FileList['*.rb']
+
+== Odds and Ends
+
+=== do/end verses { }
+
+Blocks may be specified with either a +do+/+end+ pair, or with curly
+braces in Ruby. We _strongly_ recommend using +do+/+end+ to specify the
+actions for tasks and rules. Because the rakefile idiom tends to
+leave off parenthesis on the task/file/rule methods, unusual
+ambiguities can arise when using curly braces.
+
+For example, suppose that the method +object_files+ returns a list of
+object files in a project. Now we use +object_files+ as the
+prerequistes in a rule specified with actions in curly braces.
+
+ # DON'T DO THIS!
+ file "prog" => object_files {
+ # Actions are expected here (but it doesn't work)!
+ }
+
+Because curly braces have a higher precedence than +do+/+end+, the
+block is associated with the +object_files+ method rather than the
++file+ method.
+
+This is the proper way to specify the task ...
+
+ # THIS IS FINE
+ file "prog" => object_files do
+ # Actions go here
+ end
+
+----
+
+== See
+
+* README -- Main documentation for Rake.
diff --git a/doc/rake/rational.rdoc b/doc/rake/rational.rdoc
new file mode 100644
index 0000000000..f741e65bf8
--- /dev/null
+++ b/doc/rake/rational.rdoc
@@ -0,0 +1,151 @@
+= Why rake?
+
+Ok, let me state from the beginning that I never intended to write this
+code. I'm not convinced it is useful, and I'm not convinced anyone
+would even be interested in it. All I can say is that Why's onion truck
+must by been passing through the Ohio valley.
+
+What am I talking about? ... A Ruby version of Make.
+
+See, I can sense you cringing already, and I agree. The world certainly
+doesn't need yet another reworking of the "make" program. I mean, we
+already have "ant". Isn't that enough?
+
+It started yesterday. I was helping a coworker fix a problem in one of
+the Makefiles we use in our project. Not a particularly tough problem,
+but during the course of the conversation I began lamenting some of the
+shortcomings of make. In particular, in one of my makefiles I wanted to
+determine the name of a file dynamically and had to resort to some
+simple scripting (in Ruby) to make it work. "Wouldn't it be nice if you
+could just use Ruby inside a Makefile" I said.
+
+My coworker (a recent convert to Ruby) agreed, but wondered what it
+would look like. So I sketched the following on the whiteboard...
+
+ "What if you could specify the make tasks in Ruby, like this ..."
+
+ task "build" do
+ java_compile(...args, etc ...)
+ end
+
+ "The task function would register "build" as a target to be made,
+ and the block would be the action executed whenever the build
+ system determined that it was time to do the build target."
+
+We agreed that would be cool, but writing make from scratch would be WAY
+too much work. And that was the end of that!
+
+... Except I couldn't get the thought out of my head. What exactly
+would be needed to make the about syntax work as a make file? Hmmm, you
+would need to register the tasks, you need some way of specifying
+dependencies between tasks, and some way of kicking off the process.
+Hey! What if we did ... and fifteen minutes later I had a working
+prototype of Ruby make, complete with dependencies and actions.
+
+I showed the code to my coworker and we had a good laugh. It was just
+about a page worth of code that reproduced an amazing amount of the
+functionality of make. We were both truely stunned with the power of
+Ruby.
+
+But it didn't do everything make did. In particular, it didn't have
+timestamp based file dependencies (where a file is rebuilt if any of its
+prerequisite files have a later timestamp). Obviously THAT would be a
+pain to add and so Ruby Make would remain an interesting experiment.
+
+... Except as I walked back to my desk, I started thinking about what
+file based dependecies would really need. Rats! I was hooked again,
+and by adding a new class and two new methods, file/timestamp
+dependencies were implemented.
+
+Ok, now I was really hooked. Last night (during CSI!) I massaged the
+code and cleaned it up a bit. The result is a bare-bones replacement
+for make in exactly 100 lines of code.
+
+For the curious, you can see it at ...
+* doc/proto_rake.rdoc
+
+Oh, about the name. When I wrote the example Ruby Make task on my
+whiteboard, my coworker exclaimed "Oh! I have the perfect name: Rake ...
+Get it? Ruby-Make. Rake!" He said he envisioned the tasks as leaves
+and Rake would clean them up ... or something like that. Anyways, the
+name stuck.
+
+Some quick examples ...
+
+A simple task to delete backup files ...
+
+ task :clean do
+ Dir['*~'].each {|fn| rm fn rescue nil}
+ end
+
+Note that task names are symbols (they are slightly easier to type
+than quoted strings ... but you may use quoted string if you would
+rather). Rake makes the methods of the FileUtils module directly
+available, so we take advantage of the <tt>rm</tt> command. Also note
+the use of "rescue nil" to trap and ignore errors in the <tt>rm</tt>
+command.
+
+To run it, just type "rake clean". Rake will automatically find a
+Rakefile in the current directory (or above!) and will invoke the
+targets named on the command line. If there are no targets explicitly
+named, rake will invoke the task "default".
+
+Here's another task with dependencies ...
+
+ task :clobber => [:clean] do
+ rm_r "tempdir"
+ end
+
+Task :clobber depends upon task :clean, so :clean will be run before
+:clobber is executed.
+
+Files are specified by using the "file" command. It is similar to the
+task command, except that the task name represents a file, and the task
+will be run only if the file doesn't exist, or if its modification time
+is earlier than any of its prerequisites.
+
+Here is a file based dependency that will compile "hello.cc" to
+"hello.o".
+
+ file "hello.cc"
+ file "hello.o" => ["hello.cc"] do |t|
+ srcfile = t.name.sub(/\.o$/, ".cc")
+ sh %{g++ #{srcfile} -c -o #{t.name}}
+ end
+
+I normally specify file tasks with string (rather than symbols). Some
+file names can't be represented by symbols. Plus it makes the
+distinction between them more clear to the casual reader.
+
+Currently writing a task for each and every file in the project would be
+tedious at best. I envision a set of libraries to make this job
+easier. For instance, perhaps something like this ...
+
+ require 'rake/ctools'
+ Dir['*.c'].each do |fn|
+ c_source_file(fn)
+ end
+
+where "c_source_file" will create all the tasks need to compile all the
+C source files in a directory. Any number of useful libraries could be
+created for rake.
+
+That's it. There's no documentation (other than whats in this
+message). Does this sound interesting to anyone? If so, I'll continue
+to clean it up and write it up and publish it on RAA. Otherwise, I'll
+leave it as an interesting excerise and a tribute to the power of Ruby.
+
+Why /might/ rake be interesting to Ruby programmers. I don't know,
+perhaps ...
+
+* No weird make syntax (only weird Ruby syntax :-)
+* No need to edit or read XML (a la ant)
+* Platform independent build scripts.
+* Will run anywhere Ruby exists, so no need to have "make" installed.
+ If you stay away from the "sys" command and use things like
+ 'ftools', you can have a perfectly platform independent
+ build script. Also rake is only 100 lines of code, so it can
+ easily be packaged along with the rest of your code.
+
+So ... Sorry for the long rambling message. Like I said, I never
+intended to write this code at all.
diff --git a/doc/rake/release_notes/rake-0.8.7.rdoc b/doc/rake/release_notes/rake-0.8.7.rdoc
new file mode 100644
index 0000000000..fb0c5d4e36
--- /dev/null
+++ b/doc/rake/release_notes/rake-0.8.7.rdoc
@@ -0,0 +1,55 @@
+= Rake 0.8.7 Released
+
+Rake version 0.8.5 introduced greatly improved support for executing
+commands on Windows. The "sh" command now has the same semantics on
+Windows that it has on Unix based platforms.
+
+Rake version 0.8.6 includes minor fixes the the RDoc generation.
+Rake version 0.8.7 includes a minor fix for JRuby running on windows.
+
+== Changes
+
+=== New Features / Enhancements in Version 0.8.5
+
+* Improved implementation of the Rake system command for Windows.
+ (patch from James M. Lawrence/quix)
+
+* Support for Ruby 1.9's improved system command. (patch from James
+ M. Lawrence/quix)
+
+* Rake now includes the configured extension when invoking an
+ executable (Config::CONFIG['EXEEXT])
+
+=== Bug Fixes in Version 0.8.5
+
+* Environment variable keys are now correctly cased (it matters in
+ some implementations).
+
+== What is Rake
+
+Rake is a build tool similar to the make program in many ways. But
+instead of cryptic make recipes, Rake uses standard Ruby code to
+declare tasks and dependencies. You have the full power of a modern
+scripting language built right into your build tool.
+
+== Availability
+
+The easiest way to get and install rake is via RubyGems ...
+
+ gem install rake (you may need root/admin privileges)
+
+Otherwise, you can get it from the more traditional places:
+
+Home Page:: http://rake.rubyforge.org/
+Download:: http://rubyforge.org/project/showfiles.php?group_id=50
+GitHub:: git://github.com/jimweirich/rake.git
+
+== Thanks
+
+As usual, it was input from users that drove a alot of these changes. The
+following people either contributed patches, made suggestions or made
+otherwise helpful comments. Thanks to ...
+
+* Charles Nutter
+
+-- Jim Weirich
diff --git a/doc/re.rdoc b/doc/re.rdoc
new file mode 100644
index 0000000000..d629a4a79e
--- /dev/null
+++ b/doc/re.rdoc
@@ -0,0 +1,582 @@
+# -*- mode: rdoc; coding: utf-8; fill-column: 74; -*-
+
+Regular expressions (<i>regexp</i>s) are patterns which describe the
+contents of a string. They're used for testing whether a string contains a
+given pattern, or extracting the portions that match. They are created
+with the <tt>/</tt><i>pat</i><tt>/</tt> and
+<tt>%r{</tt><i>pat</i><tt>}</tt> literals or the <tt>Regexp.new</tt>
+constructor.
+
+A regexp is usually delimited with forward slashes (<tt>/</tt>). For
+example:
+
+ /hay/ =~ 'haystack' #=> 0
+ /y/.match('haystack') #=> #<MatchData "y">
+
+If a string contains the pattern it is said to <i>match</i>. A literal
+string matches itself.
+
+ # 'haystack' does not contain the pattern 'needle', so doesn't match.
+ /needle/.match('haystack') #=> nil
+ # 'haystack' does contain the pattern 'hay', so it matches
+ /hay/.match('haystack') #=> #<MatchData "hay">
+
+Specifically, <tt>/st/</tt> requires that the string contains the letter
+_s_ followed by the letter _t_, so it matches _haystack_, also.
+
+== Metacharacters and Escapes
+
+The following are <i>metacharacters</i> <tt>(</tt>, <tt>)</tt>,
+<tt>[</tt>, <tt>]</tt>, <tt>{</tt>, <tt>}</tt>, <tt>.</tt>, <tt>?</tt>,
+<tt>+</tt>, <tt>*</tt>. They have a specific meaning when appearing in a
+pattern. To match them literally they must be backslash-escaped. To match
+a backslash literally backslash-escape that: <tt>\\\\\\</tt>.
+
+ /1 \+ 2 = 3\?/.match('Does 1 + 2 = 3?') #=> #<MatchData "1 + 2 = 3?">
+
+Patterns behave like double-quoted strings so can contain the same
+backslash escapes.
+
+ /\s\u{6771 4eac 90fd}/.match("Go to æ±äº¬éƒ½")
+ #=> #<MatchData " æ±äº¬éƒ½">
+
+Arbitrary Ruby expressions can be embedded into patterns with the
+<tt>#{...}</tt> construct.
+
+ place = "æ±äº¬éƒ½"
+ /#{place}/.match("Go to æ±äº¬éƒ½")
+ #=> #<MatchData "æ±äº¬éƒ½">
+
+== Character Classes
+
+A <i>character class</i> is delimited with square brackets (<tt>[</tt>,
+<tt>]</tt>) and lists characters that may appear at that point in the
+match. <tt>/[ab]/</tt> means _a_ or _b_, as opposed to <tt>/ab/</tt> which
+means _a_ followed by _b_.
+
+ /W[aeiou]rd/.match("Word") #=> #<MatchData "Word">
+
+Within a character class the hyphen (<tt>-</tt>) is a metacharacter
+denoting an inclusive range of characters. <tt>[abcd]</tt> is equivalent
+to <tt>[a-d]</tt>. A range can be followed by another range, so
+<tt>[abcdwxyz]</tt> is equivalent to <tt>[a-dw-z]</tt>. The order in which
+ranges or individual characters appear inside a character class is
+irrelevant.
+
+ /[0-9a-f]/.match('9f') #=> #<MatchData "9">
+ /[9f]/.match('9f') #=> #<MatchData "9">
+
+If the first character of a character class is a caret (<tt>^</tt>) the
+class is inverted: it matches any character _except_ those named.
+
+ /[^a-eg-z]/.match('f') #=> #<MatchData "f">
+
+A character class may contain another character class. By itself this
+isn't useful because <tt>[a-z[0-9]]</tt> describes the same set as
+<tt>[a-z0-9]</tt>. However, character classes also support the <tt>&&</tt>
+operator which performs set intersection on its arguments. The two can be
+combined as follows:
+
+ /[a-w&&[^c-g]z]/ # ([a-w] AND ([^c-g] OR z))
+ # This is equivalent to:
+ /[abh-w]/
+
+The following metacharacters also behave like character classes:
+
+* <tt>/./</tt> - Any character except a newline.
+* <tt>/./m</tt> - Any character (the +m+ modifier enables multiline mode)
+* <tt>/\w/</tt> - A word character (<tt>[a-zA-Z0-9_]</tt>)
+* <tt>/\W/</tt> - A non-word character (<tt>[^a-zA-Z0-9_]</tt>)
+* <tt>/\d/</tt> - A digit character (<tt>[0-9]</tt>)
+* <tt>/\D/</tt> - A non-digit character (<tt>[^0-9]</tt>)
+* <tt>/\h/</tt> - A hexdigit character (<tt>[0-9a-fA-F]</tt>)
+* <tt>/\H/</tt> - A non-hexdigit character (<tt>[^0-9a-fA-F]</tt>)
+* <tt>/\s/</tt> - A whitespace character: <tt>/[ \t\r\n\f]/</tt>
+* <tt>/\S/</tt> - A non-whitespace character: <tt>/[^ \t\r\n\f]/</tt>
+
+POSIX <i>bracket expressions</i> are also similar to character classes.
+They provide a portable alternative to the above, with the added benefit
+that they encompass non-ASCII characters. For instance, <tt>/\d/</tt>
+matches only the ASCII decimal digits (0-9); whereas <tt>/[[:digit:]]/</tt>
+matches any character in the Unicode _Nd_ category.
+
+* <tt>/[[:alnum:]]/</tt> - Alphabetic and numeric character
+* <tt>/[[:alpha:]]/</tt> - Alphabetic character
+* <tt>/[[:blank:]]/</tt> - Space or tab
+* <tt>/[[:cntrl:]]/</tt> - Control character
+* <tt>/[[:digit:]]/</tt> - Digit
+* <tt>/[[:graph:]]/</tt> - Non-blank character (excludes spaces, control
+ characters, and similar)
+* <tt>/[[:lower:]]/</tt> - Lowercase alphabetical character
+* <tt>/[[:print:]]/</tt> - Like [:graph:], but includes the space character
+* <tt>/[[:punct:]]/</tt> - Punctuation character
+* <tt>/[[:space:]]/</tt> - Whitespace character (<tt>[:blank:]</tt>, newline,
+ carriage return, etc.)
+* <tt>/[[:upper:]]/</tt> - Uppercase alphabetical
+* <tt>/[[:xdigit:]]/</tt> - Digit allowed in a hexadecimal number (i.e.,
+ 0-9a-fA-F)
+
+Ruby also supports the following non-POSIX character classes:
+
+* <tt>/[[:word:]]/</tt> - A character in one of the following Unicode
+ general categories _Letter_, _Mark_, _Number_,
+ <i>Connector_Punctuation</i>
+* <tt>/[[:ascii:]]/</tt> - A character in the ASCII character set
+
+ # U+06F2 is "EXTENDED ARABIC-INDIC DIGIT TWO"
+ /[[:digit:]]/.match("\u06F2") #=> #<MatchData "\u{06F2}">
+ /[[:upper:]][[:lower:]]/.match("Hello") #=> #<MatchData "He">
+ /[[:xdigit:]][[:xdigit:]]/.match("A6") #=> #<MatchData "A6">
+
+== Repetition
+
+The constructs described so far match a single character. They can be
+followed by a repetition metacharacter to specify how many times they need
+to occur. Such metacharacters are called <i>quantifiers</i>.
+
+* <tt>*</tt> - Zero or more times
+* <tt>+</tt> - One or more times
+* <tt>?</tt> - Zero or one times (optional)
+* <tt>{</tt><i>n</i><tt>}</tt> - Exactly <i>n</i> times
+* <tt>{</tt><i>n</i><tt>,}</tt> - <i>n</i> or more times
+* <tt>{,</tt><i>m</i><tt>}</tt> - <i>m</i> or less times
+* <tt>{</tt><i>n</i><tt>,</tt><i>m</i><tt>}</tt> - At least <i>n</i> and
+ at most <i>m</i> times
+
+ # At least one uppercase character ('H'), at least one lowercase
+ # character ('e'), two 'l' characters, then one 'o'
+ "Hello".match(/[[:upper:]]+[[:lower:]]+l{2}o/) #=> #<MatchData "Hello">
+
+Repetition is <i>greedy</i> by default: as many occurrences as possible
+are matched while still allowing the overall match to succeed. By
+contrast, <i>lazy</i> matching makes the minimal amount of matches
+necessary for overall success. A greedy metacharacter can be made lazy by
+following it with <tt>?</tt>.
+
+ # Both patterns below match the string. The first uses a greedy
+ # quantifier so '.+' matches '<a><b>'; the second uses a lazy
+ # quantifier so '.+?' matches '<a>'.
+ /<.+>/.match("<a><b>") #=> #<MatchData "<a><b>">
+ /<.+?>/.match("<a><b>") #=> #<MatchData "<a>">
+
+A quantifier followed by <tt>+</tt> matches <i>possessively</i>: once it
+has matched it does not backtrack. They behave like greedy quantifiers,
+but having matched they refuse to "give up" their match even if this
+jeopardises the overall match.
+
+== Capturing
+
+Parentheses can be used for <i>capturing</i>. The text enclosed by the
+<i>n</i><sup>th</sup> group of parentheses can be subsequently referred to
+with <i>n</i>. Within a pattern use the <i>backreference</i>
+<tt>\</tt><i>n</i>; outside of the pattern use
+<tt>MatchData[</tt><i>n</i><tt>]</tt>.
+
+ # 'at' is captured by the first group of parentheses, then referred to
+ # later with \1
+ /[csh](..) [csh]\1 in/.match("The cat sat in the hat")
+ #=> #<MatchData "cat sat in" 1:"at">
+ # Regexp#match returns a MatchData object which makes the captured
+ # text available with its #[] method.
+ /[csh](..) [csh]\1 in/.match("The cat sat in the hat")[1] #=> 'at'
+
+Capture groups can be referred to by name when defined with the
+<tt>(?<</tt><i>name</i><tt>>)</tt> or <tt>(?'</tt><i>name</i><tt>')</tt>
+constructs.
+
+ /\$(?<dollars>\d+)\.(?<cents>\d+)/.match("$3.67")
+ => #<MatchData "$3.67" dollars:"3" cents:"67">
+ /\$(?<dollars>\d+)\.(?<cents>\d+)/.match("$3.67")[:dollars] #=> "3"
+
+Named groups can be backreferenced with <tt>\k<</tt><i>name</i><tt>></tt>,
+where _name_ is the group name.
+
+ /(?<vowel>[aeiou]).\k<vowel>.\k<vowel>/.match('ototomy')
+ #=> #<MatchData "ototo" vowel:"o">
+
+*Note*: A regexp can't use named backreferences and numbered
+backreferences simultaneously.
+
+When named capture groups are used with a literal regexp on the left-hand
+side of an expression and the <tt>=~</tt> operator, the captured text is
+also assigned to local variables with corresponding names.
+
+ /\$(?<dollars>\d+)\.(?<cents>\d+)/ =~ "$3.67" #=> 0
+ dollars #=> "3"
+
+== Grouping
+
+Parentheses also <i>group</i> the terms they enclose, allowing them to be
+quantified as one <i>atomic</i> whole.
+
+ # The pattern below matches a vowel followed by 2 word characters:
+ # 'aen'
+ /[aeiou]\w{2}/.match("Caenorhabditis elegans") #=> #<MatchData "aen">
+ # Whereas the following pattern matches a vowel followed by a word
+ # character, twice, i.e. <tt>[aeiou]\w[aeiou]\w</tt>: 'enor'.
+ /([aeiou]\w){2}/.match("Caenorhabditis elegans")
+ #=> #<MatchData "enor" 1:"or">
+
+The <tt>(?:</tt>...<tt>)</tt> construct provides grouping without
+capturing. That is, it combines the terms it contains into an atomic whole
+without creating a backreference. This benefits performance at the slight
+expense of readabilty.
+
+ # The group of parentheses captures 'n' and the second 'ti'. The
+ # second group is referred to later with the backreference \2
+ /I(n)ves(ti)ga\2ons/.match("Investigations")
+ #=> #<MatchData "Investigations" 1:"n" 2:"ti">
+ # The first group of parentheses is now made non-capturing with '?:',
+ # so it still matches 'n', but doesn't create the backreference. Thus,
+ # the backreference \1 now refers to 'ti'.
+ /I(?:n)ves(ti)ga\1ons/.match("Investigations")
+ #=> #<MatchData "Investigations" 1:"ti">
+
+=== Atomic Grouping
+
+Grouping can be made <i>atomic</i> with
+<tt>(?></tt><i>pat</i><tt>)</tt>. This causes the subexpression <i>pat</i>
+to be matched independently of the rest of the expression such that what
+it matches becomes fixed for the remainder of the match, unless the entire
+subexpression must be abandoned and subsequently revisited. In this
+way <i>pat</i> is treated as a non-divisible whole. Atomic grouping is
+typically used to optimise patterns so as to prevent the regular
+expression engine from backtracking needlesly.
+
+ # The <tt>"</tt> in the pattern below matches the first character of
+ # the string, then <tt>.*</tt> matches <i>Quote"</i>. This causes the
+ # overall match to fail, so the text matched by <tt>.*</tt> is
+ # backtracked by one position, which leaves the final character of the
+ # string available to match <tt>"</tt>
+ /".*"/.match('"Quote"') #=> #<MatchData "\"Quote\"">
+ # If <tt>.*</tt> is grouped atomically, it refuses to backtrack
+ # <i>Quote"</i>, even though this means that the overall match fails
+ /"(?>.*)"/.match('"Quote"') #=> nil
+
+== Subexpression Calls
+
+The <tt>\g<</tt><i>name</i><tt>></tt> syntax matches the previous
+subexpression named _name_, which can be a group name or number, again.
+This differs from backreferences in that it re-executes the group rather
+than simply trying to re-match the same text.
+
+ # Matches a <i>(</i> character and assigns it to the <tt>paren</tt>
+ # group, tries to call that the <tt>paren</tt> sub-expression again
+ # but fails, then matches a literal <i>)</i>.
+ /\A(?<paren>\(\g<paren>*\))*\z/ =~ '()'
+
+
+ /\A(?<paren>\(\g<paren>*\))*\z/ =~ '(())' #=> 0
+ # ^1
+ # ^2
+ # ^3
+ # ^4
+ # ^5
+ # ^6
+ # ^7
+ # ^8
+ # ^9
+ # ^10
+
+1. Matches at the beginning of the string, i.e. before the first
+ character.
+2. Enters a named capture group called <tt>paren</tt>
+3. Matches a literal <i>(</i>, the first character in the string
+4. Calls the <tt>paren</tt> group again, i.e. recurses back to the
+ second step
+5. Re-enters the <tt>paren</tt> group
+6. Matches a literal <i>(</i>, the second character in the
+ string
+7. Try to call <tt>paren</tt> a third time, but fail because
+ doing so would prevent an overall successful match
+8. Match a literal <i>)</i>, the third character in the string.
+ Marks the end of the second recursive call
+9. Match a literal <i>)</i>, the fourth character in the string
+10. Match the end of the string
+
+== Alternation
+
+The vertical bar metacharacter (<tt>|</tt>) combines two expressions into
+a single one that matches either of the expressions. Each expression is an
+<i>alternative</i>.
+
+ /\w(and|or)\w/.match("Feliformia") #=> #<MatchData "form" 1:"or">
+ /\w(and|or)\w/.match("furandi") #=> #<MatchData "randi" 1:"and">
+ /\w(and|or)\w/.match("dissemblance") #=> nil
+
+== Character Properties
+
+The <tt>\p{}</tt> construct matches characters with the named property,
+much like POSIX bracket classes.
+
+* <tt>/\p{Alnum}/</tt> - Alphabetic and numeric character
+* <tt>/\p{Alpha}/</tt> - Alphabetic character
+* <tt>/\p{Blank}/</tt> - Space or tab
+* <tt>/\p{Cntrl}/</tt> - Control character
+* <tt>/\p{Digit}/</tt> - Digit
+* <tt>/\p{Graph}/</tt> - Non-blank character (excludes spaces, control
+ characters, and similar)
+* <tt>/\p{Lower}/</tt> - Lowercase alphabetical character
+* <tt>/\p{Print}/</tt> - Like <tt>\p{Graph}</tt>, but includes the space character
+* <tt>/\p{Punct}/</tt> - Punctuation character
+* <tt>/\p{Space}/</tt> - Whitespace character (<tt>[:blank:]</tt>, newline,
+ carriage return, etc.)
+* <tt>/\p{Upper}/</tt> - Uppercase alphabetical
+* <tt>/\p{XDigit}/</tt> - Digit allowed in a hexadecimal number (i.e., 0-9a-fA-F)
+* <tt>/\p{Word}/</tt> - A member of one of the following Unicode general
+ category <i>Letter</i>, <i>Mark</i>, <i>Number</i>,
+ <i>Connector\_Punctuation</i>
+* <tt>/\p{ASCII}/</tt> - A character in the ASCII character set
+* <tt>/\p{Any}/</tt> - Any Unicode character (including unassigned
+ characters)
+* <tt>/\p{Assigned}/</tt> - An assigned character
+
+A Unicode character's <i>General Category</i> value can also be matched
+with <tt>\p{</tt><i>Ab</i><tt>}</tt> where <i>Ab</i> is the category's
+abbreviation as described below:
+
+* <tt>/\p{L}/</tt> - 'Letter'
+* <tt>/\p{Ll}/</tt> - 'Letter: Lowercase'
+* <tt>/\p{Lm}/</tt> - 'Letter: Mark'
+* <tt>/\p{Lo}/</tt> - 'Letter: Other'
+* <tt>/\p{Lt}/</tt> - 'Letter: Titlecase'
+* <tt>/\p{Lu}/</tt> - 'Letter: Uppercase
+* <tt>/\p{Lo}/</tt> - 'Letter: Other'
+* <tt>/\p{M}/</tt> - 'Mark'
+* <tt>/\p{Mn}/</tt> - 'Mark: Nonspacing'
+* <tt>/\p{Mc}/</tt> - 'Mark: Spacing Combining'
+* <tt>/\p{Me}/</tt> - 'Mark: Enclosing'
+* <tt>/\p{N}/</tt> - 'Number'
+* <tt>/\p{Nd}/</tt> - 'Number: Decimal Digit'
+* <tt>/\p{Nl}/</tt> - 'Number: Letter'
+* <tt>/\p{No}/</tt> - 'Number: Other'
+* <tt>/\p{P}/</tt> - 'Punctuation'
+* <tt>/\p{Pc}/</tt> - 'Punctuation: Connector'
+* <tt>/\p{Pd}/</tt> - 'Punctuation: Dash'
+* <tt>/\p{Ps}/</tt> - 'Punctuation: Open'
+* <tt>/\p{Pe}/</tt> - 'Punctuation: Close'
+* <tt>/\p{Pi}/</tt> - 'Punctuation: Initial Quote'
+* <tt>/\p{Pf}/</tt> - 'Punctuation: Final Quote'
+* <tt>/\p{Po}/</tt> - 'Punctuation: Other'
+* <tt>/\p{S}/</tt> - 'Symbol'
+* <tt>/\p{Sm}/</tt> - 'Symbol: Math'
+* <tt>/\p{Sc}/</tt> - 'Symbol: Currency'
+* <tt>/\p{Sc}/</tt> - 'Symbol: Currency'
+* <tt>/\p{Sk}/</tt> - 'Symbol: Modifier'
+* <tt>/\p{So}/</tt> - 'Symbol: Other'
+* <tt>/\p{Z}/</tt> - 'Separator'
+* <tt>/\p{Zs}/</tt> - 'Separator: Space'
+* <tt>/\p{Zl}/</tt> - 'Separator: Line'
+* <tt>/\p{Zp}/</tt> - 'Separator: Paragraph'
+* <tt>/\p{C}/</tt> - 'Other'
+* <tt>/\p{Cc}/</tt> - 'Other: Control'
+* <tt>/\p{Cf}/</tt> - 'Other: Format'
+* <tt>/\p{Cn}/</tt> - 'Other: Not Assigned'
+* <tt>/\p{Co}/</tt> - 'Other: Private Use'
+* <tt>/\p{Cs}/</tt> - 'Other: Surrogate'
+
+Lastly, <tt>\p{}</tt> matches a character's Unicode <i>script</i>. The
+following scripts are supported: <i>Arabic</i>, <i>Armenian</i>,
+<i>Balinese</i>, <i>Bengali</i>, <i>Bopomofo</i>, <i>Braille</i>,
+<i>Buginese</i>, <i>Buhid</i>, <i>Canadian_Aboriginal</i>, <i>Carian</i>,
+<i>Cham</i>, <i>Cherokee</i>, <i>Common</i>, <i>Coptic</i>,
+<i>Cuneiform</i>, <i>Cypriot</i>, <i>Cyrillic</i>, <i>Deseret</i>,
+<i>Devanagari</i>, <i>Ethiopic</i>, <i>Georgian</i>, <i>Glagolitic</i>,
+<i>Gothic</i>, <i>Greek</i>, <i>Gujarati</i>, <i>Gurmukhi</i>, <i>Han</i>,
+<i>Hangul</i>, <i>Hanunoo</i>, <i>Hebrew</i>, <i>Hiragana</i>,
+<i>Inherited</i>, <i>Kannada</i>, <i>Katakana</i>, <i>Kayah_Li</i>,
+<i>Kharoshthi</i>, <i>Khmer</i>, <i>Lao</i>, <i>Latin</i>, <i>Lepcha</i>,
+<i>Limbu</i>, <i>Linear_B</i>, <i>Lycian</i>, <i>Lydian</i>,
+<i>Malayalam</i>, <i>Mongolian</i>, <i>Myanmar</i>, <i>New_Tai_Lue</i>,
+<i>Nko</i>, <i>Ogham</i>, <i>Ol_Chiki</i>, <i>Old_Italic</i>,
+<i>Old_Persian</i>, <i>Oriya</i>, <i>Osmanya</i>, <i>Phags_Pa</i>,
+<i>Phoenician</i>, <i>Rejang</i>, <i>Runic</i>, <i>Saurashtra</i>,
+<i>Shavian</i>, <i>Sinhala</i>, <i>Sundanese</i>, <i>Syloti_Nagri</i>,
+<i>Syriac</i>, <i>Tagalog</i>, <i>Tagbanwa</i>, <i>Tai_Le</i>,
+<i>Tamil</i>, <i>Telugu</i>, <i>Thaana</i>, <i>Thai</i>, <i>Tibetan</i>,
+<i>Tifinagh</i>, <i>Ugaritic</i>, <i>Vai</i>, and <i>Yi</i>.
+
+ # Unicode codepoint U+06E9 is named "ARABIC PLACE OF SAJDAH" and
+ # belongs to the Arabic script.
+ /\p{Arabic}/.match("\u06E9") #=> #<MatchData "\u06E9">
+
+All character properties can be inverted by prefixing their name with a
+caret (<tt>^</tt>).
+
+ # Letter 'A' is not in the Unicode Ll (Letter; Lowercase) category, so
+ # this match succeeds
+ /\p{^Ll}/.match("A") #=> #<MatchData "A">
+
+== Anchors
+
+Anchors are metacharacter that match the zero-width positions between
+characters, <i>anchoring</i> the match to a specific position.
+
+* <tt>^</tt> - Matches beginning of line
+* <tt>$</tt> - Matches end of line
+* <tt>\A</tt> - Matches beginning of string.
+* <tt>\Z</tt> - Matches end of string. If string ends with a newline,
+ it matches just before newline
+* <tt>\z</tt> - Matches end of string
+* <tt>\G</tt> - Matches point where last match finished
+* <tt>\b</tt> - Matches word boundaries when outside brackets;
+ backspace (0x08) when inside brackets
+* <tt>\B</tt> - Matches non-word boundaries
+* <tt>(?=</tt><i>pat</i><tt>)</tt> - <i>Positive lookahead</i> assertion:
+ ensures that the following characters match <i>pat</i>, but doesn't
+ include those characters in the matched text
+* <tt>(?!</tt><i>pat</i><tt>)</tt> - <i>Negative lookahead</i> assertion:
+ ensures that the following characters do not match <i>pat</i>, but
+ doesn't include those characters in the matched text
+* <tt>(?<=</tt><i>pat</i><tt>)</tt> - <i>Positive lookbehind</i>
+ assertion: ensures that the preceding characters match <i>pat</i>, but
+ doesn't include those characters in the matched text
+* <tt>(?<!</tt><i>pat</i><tt>)</tt> - <i>Negative lookbehind</i>
+ assertion: ensures that the preceding characters do not match
+ <i>pat</i>, but doesn't include those characters in the matched text
+
+ # If a pattern isn't anchored it can begin at any point in the string
+ /real/.match("surrealist") #=> #<MatchData "real">
+ # Anchoring the pattern to the beginning of the string forces the
+ # match to start there. 'real' doesn't occur at the beginning of the
+ # string, so now the match fails
+ /\Areal/.match("surrealist") #=> nil
+ # The match below fails because although 'Demand' contains 'and', the
+ pattern does not occur at a word boundary.
+ /\band/.match("Demand")
+ # Whereas in the following example 'and' has been anchored to a
+ # non-word boundary so instead of matching the first 'and' it matches
+ # from the fourth letter of 'demand' instead
+ /\Band.+/.match("Supply and demand curve") #=> #<MatchData "and curve">
+ # The pattern below uses positive lookahead and positive lookbehind to
+ # match text appearing in <b></b> tags without including the tags in the
+ # match
+ /(?<=<b>)\w+(?=<\/b>)/.match("Fortune favours the <b>bold</b>")
+ #=> #<MatchData "bold">
+
+== Options
+
+The end delimiter for a regexp can be followed by one or more single-letter
+options which control how the pattern can match.
+
+* <tt>/pat/i</tt> - Ignore case
+* <tt>/pat/m</tt> - Treat a newline as a character matched by <tt>.</tt>
+* <tt>/pat/x</tt> - Ignore whitespace and comments in the pattern
+* <tt>/pat/o</tt> - Perform <tt>#{}</tt> interpolation only once
+
+<tt>i</tt>, <tt>m</tt>, and <tt>x</tt> can also be applied on the
+subexpression level with the
+<tt>(?</tt><i>on</i><tt>-</tt><i>off</i><tt>)</tt> construct, which
+enables options <i>on</i>, and disables options <i>off</i> for the
+expression enclosed by the parentheses.
+
+ /a(?i:b)c/.match('aBc') #=> #<MatchData "aBc">
+ /a(?i:b)c/.match('abc') #=> #<MatchData "abc">
+
+== Free-Spacing Mode and Comments
+
+As mentioned above, the <tt>x</tt> option enables <i>free-spacing</i>
+mode. Literal white space inside the pattern is ignored, and the
+octothorpe (<tt>#</tt>) character introduces a comment until the end of
+the line. This allows the components of the pattern to be organised in a
+potentially more readable fashion.
+
+ # A contrived pattern to match a number with optional decimal places
+ float_pat = /\A
+ [[:digit:]]+ # 1 or more digits before the decimal point
+ (\. # Decimal point
+ [[:digit:]]+ # 1 or more digits after the decimal point
+ )? # The decimal point and following digits are optional
+ \Z/x
+ float_pat.match('3.14') #=> #<MatchData "3.14" 1:".14">
+
+*Note*: To match whitespace in an <tt>x</tt> pattern use an escape such as
+<tt>\s</tt> or <tt>\p{Space}</tt>.
+
+Comments can be included in a non-<tt>x</tt> pattern with the
+<tt>(?#</tt><i>comment</i><tt>)</tt> construct, where <i>comment</i> is
+arbitrary text ignored by the regexp engine.
+
+== Encoding
+
+Regular expressions are assumed to use the source encoding. This can be
+overridden with one of the following modifiers.
+
+* <tt>/</tt><i>pat</i><tt>/u</tt> - UTF-8
+* <tt>/</tt><i>pat</i><tt>/e</tt> - EUC-JP
+* <tt>/</tt><i>pat</i><tt>/s</tt> - Windows-31J
+* <tt>/</tt><i>pat</i><tt>/n</tt> - ASCII-8BIT
+
+A regexp can be matched against a string when they either share an
+encoding, or the regexp's encoding is _US-ASCII_ and the string's encoding
+is ASCII-compatible.
+
+If a match between incompatible encodings is attempted an
+<tt>Encoding::CompatibilityError</tt> exception is raised.
+
+The <tt>Regexp#fixed_encoding?</tt> predicate indicates whether the regexp
+has a <i>fixed</i> encoding, that is one incompatible with ASCII. A
+regexp's encoding can be explicitly fixed by supplying
+<tt>Regexp::FIXEDENCODING</tt> as the second argument of
+<tt>Regexp.new</tt>:
+
+ r = Regexp.new("a".force_encoding("iso-8859-1"),Regexp::FIXEDENCODING)
+ r =~"a\u3042"
+ #=> Encoding::CompatibilityError: incompatible encoding regexp match
+ (ISO-8859-1 regexp with UTF-8 string)
+
+== Performance
+
+Certain pathological combinations of constructs can lead to abysmally bad
+performance.
+
+Consider a string of 25 <i>a</i>s, a <i>d</i>, 4 <i>a</i>s, and a
+<i>c</i>.
+
+ s = 'a' * 25 + 'd' 'a' * 4 + 'c'
+ #=> "aaaaaaaaaaaaaaaaaaaaaaaaadadadadac"
+
+The following patterns match instantly as you would expect:
+
+ /(b|a)/ =~ s #=> 0
+ /(b|a+)/ =~ s #=> 0
+ /(b|a+)*\/ =~ s #=> 0
+
+However, the following pattern takes appreciably longer:
+
+ /(b|a+)*c/ =~ s #=> 32
+
+This happens because an atom in the regexp is quantified by both an
+immediate <tt>+</tt> and an enclosing <tt>*</tt> with nothing to
+differentiate which is in control of any particular character. The
+nondeterminism that results produces super-linear performance. (Consult
+<i>Mastering Regular Expressions</i> (3rd ed.), pp 222, by
+<i>Jeffery Friedl</i>, for an in-depth analysis). This particular case
+can be fixed by use of atomic grouping, which prevents the unnecessary
+backtracking:
+
+ (start = Time.now) && /(b|a+)*c/ =~ s && (Time.now - start)
+ #=> 24.702736882
+ (start = Time.now) && /(?>b|a+)*c/ =~ s && (Time.now - start)
+ #=> 0.000166571
+
+A similar case is typified by the following example, which takes
+approximately 60 seconds to execute for me:
+
+ # Match a string of 29 <i>a</i>s against a pattern of 29 optional
+ # <i>a</i>s followed by 29 mandatory <i>a</i>s.
+ Regexp.new('a?' * 29 + 'a' * 29) =~ 'a' * 29
+
+The 29 optional <i>a</i>s match the string, but this prevents the 29
+mandatory <i>a</i>s that follow from matching. Ruby must then backtrack
+repeatedly so as to satisfy as many of the optional matches as it can
+while still matching the mandatory 29. It is plain to us that none of the
+optional matches can succeed, but this fact unfortunately eludes Ruby.
+
+One approach for improving performance is to anchor the match to the
+beginning of the string, thus significantly reducing the amount of
+backtracking needed.
+
+ Regexp.new('\A' 'a?' * 29 + 'a' * 29).match('a' * 29)
+ #=> #<MatchData "aaaaaaaaaaaaaaaaaaaaaaaaaaaaa">
+
diff --git a/doc/rubygems/ChangeLog b/doc/rubygems/ChangeLog
new file mode 100644
index 0000000000..2e67a4c2c5
--- /dev/null
+++ b/doc/rubygems/ChangeLog
@@ -0,0 +1,5689 @@
+# -*- coding: utf-8 -*-
+
+2010-02-20 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems.rb: 1.3.6.
+ * test/*: Windows test fixes
+ * lib/rubygems/remote_fetcher.rb: Fix same file detection on windows.
+
+2010-02-15 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/config_file.rb: Fix use of ConfigFile#api_key= vs
+ #rubygems_api_key=. Patch by Nick Quaranto.
+
+2010-02-12 Eric Hodel <drbrain@segment7.net>
+
+ * Rakefile: RubyGems doesn't depend on previous RubyGems.
+
+2010-02-11 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems.rb: http://rubygems.org is now the default source.
+ * lib/rubygems/dependency.rb: Only warn once about
+ #version_requirement
+
+2010-02-09 Eric Hodel <drbrain@segment7.net>
+
+ * bin/update_rubygems: Use system, exec more correctly, remove
+ useless puts.
+ * lib/rubygems/commands/query_command.rb: List every version when
+ --prerelease --all is given.
+
+2010-02-08 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/commands/dependency_command.rb: Support --prerelease.
+ * lib/rubygems/commands/fetch_command.rb: Support --prerelease.
+ * lib/rubygems/format.rb: Don't crash on empty files. Bug #27292 by
+ Ian Ragsdale.
+ * lib/rubygems/server.rb: Fix markup. Bug #27045 by Eric Young.
+ * History.txt: RubyGems 1.3.6 release notes.
+
+2010-02-07 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/dependency_installer.rb: Allow prerelease gems to
+ depend on non-prerelease gems.
+
+2010-02-06 Eric Hodel <drbrain@segment7.net>
+
+ * test/test_gem_commands_specification_command.rb: Don't enforce YAML
+ format. Patch #27791 by Aaron Patterson.
+ * lib/rubygems/version.rb: Allow captial letters in prerelease
+ versions.
+ * lib/rubygems/config_file.rb: Explain format of ~/.gemrc. Bug
+ #27698 by J Smith.
+ * lib/rubygems/gem_path_searcher.rb: Handle nil require_paths.
+ Patch #27334 by Roger Pack.
+ * lib/rubygems/server.rb: Handle --bind option. Patch #27357 by
+ Bruno Michel.
+ * lib/rubygems/doc_manager: gem rdoc --overwrite to preserve built
+ rdoc. Patch #25982 by Akinori MUSHA.
+ * lib/rubygems/commands/which_command.rb: Fail if no paths were
+ found. Adapted patch #27681 by Caio Chassot.
+ * lib/rubygems/remote_fetcher.rb: Don't copy if the file is where we
+ want it. Patch #27409 by Jakub Šťastný.
+
+2010-02-01 John Barnette <jbarnette@rubygems.org>
+
+ * lib/rubygems/command*: Add 'gem push' and 'gem owner' for
+ interacting with modern/Gemcutter sources [Nick Quaranto]
+
+2010-01-18 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/dependency_list.rb: Ignore development dependencies
+ unless explicitly needed. Bug #27608 by Roger Pack.
+
+2010-01-12 John Barnette <jbarnette@rubygems.org>
+
+ * Rakefile: Don't add development deps when building the
+ rubygems-update gem, it borks older versions when they're updating
+ from a stub index.
+
+2009-12-22 Evan Phoenix <evan@fallingsnow.net>
+
+ * lib/rubygems/spec_fetcher.rb: Don't bother re-Marshaling the spec
+ YAML list.
+
+2009-11-04 John Barnette <jbarnette@rubygems.org>
+
+ * lib/rubygems/timer.rb: Removed. The deprecation sun set in July.
+
+2009-10-14 John Barnette <jbarnette@rubygems.org>
+
+ * lib/rubygems/dependency.rb: Burndown/cleanup. Refactored code
+ and tests. Gem::Dependency.version_requirement(s) is deprecated in
+ favor of Gem::Dependency.requirement.
+
+ * lib/rubygems/requirement.rb: Burndown/cleanup. Refactored code
+ and tests. See test/support/shortcuts.rb for some new test helpers.
+
+2009-10-13 John Barnette <jbarnette@rubygems.org>
+
+ * lib/rubygems/local_remote_options.rb: Make --source additive,
+ not exclusive. If exclusive sources are desired, use
+ --clear-sources first.
+
+2009-09-29 John Barnette <jbarnette@rubyforge.org>
+
+ * lib/rubygems/spec_fetcher.rb: Be slightly more robust when faced
+ with corrupted indexes.
+
+2009-09-03 John Barnette <jbarnette@rubyforge.org>
+
+ * LOTS: Use "raise" consistently, not "fail".
+
+2009-09-01 John Barnette <jbarnette@rubyforge.org>
+
+ * lib/rubygems/version.rb: Gem::Version immutability
+ burndown. Changed canonical internal representation to an
+ Array. Refactored significant amounts of the internals for
+ clarity. Breaking change: Gem::Version::Requirement is no longer
+ available, use Gem::Requirement instead. Breaking change: custom
+ YAML marshaling is gone. Credit to Yehuda Katz for certain bits of
+ a related patch.
+ * test/test_gem_dependency.rb: Moved a bunch of tests over from
+ test_gem_version.rb. Work in progress.
+ * test/test_gem_specification.rb: Removed a failing YAML
+ test. Many more will be going away shortly.
+ * test/test_gem_version.rb: Significant refactoring for
+ maintainability and clarity. Moved a ton of poorly-placed tests to
+ test_gem_dependency.rb for future refactoring.
+
+2009-08-19 Ryan Davis <ryand-ruby@zenspider.com>
+
+ * lib/rubygems.rb: Cleanup of rdoc and file layout.
+ * lib/rubygems/versions.rb: Added Version#spermy_recommendation
+ and fixed bug in Version::Part#inspect. General cleanup.
+
+2009-07-29 John Barnette <jbarnette@rubyforge.org>
+
+ * lib/rubygems/package/tar_input.rb: Add Maglev to the list of
+ implementations with working Zlib. Bug #26790 by Peter McLain.
+
+2009-07-21 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems.rb: 1.3.5.
+ * lib/rubygems/package.rb: Remove dangling digest require. Reported
+ by Jeremy Kemper.
+
+2009-06-25 Eric Hodel <drbrain@segment7.net>
+
+ * release_notes/: Merged into History.txt for Hoe.
+ * lib/rubygems/commands/setup_command.rb: Streamlined install text.
+
+2009-06-23 Eric Hodel <drbrain@segment7.net>
+
+ * release_notes/rel_1_3_5.rdoc: RubyGems 1.3.5 release notes.
+ * lib/rubygems/builder.rb: Only print out with verbose.
+ * lib/rubygems/package_task.rb: Only print out with -t.
+
+2009-06-12 Ryan Davis <ryand@zenspider.com>
+
+ * Rakefile: Switched to Hoe.
+
+2009-06-10 Phil Hagelberg <technomancy@gmail.com>
+
+ * lib/rubygems/installer.rb: --user-install is no longer enabled by
+ default.
+ * lib/rubygems/source_index.rb: Fix use of prerelease gems.
+
+2009-06-04 Eric Hodel <drbrain@segment7.net>
+
+ * util/gem_prelude.rb.template: Backports from 1.9.
+
+2009-06-03 Eric Hodel <drbrain@segment7.net>
+
+ * bin/gem: Support 1.8.6+
+ * lib/rubygems/digest*: Removed, support dropped for Ruby < 1.8.6
+ * lib/rubygems/installer.rb: Support env(1) in wrong path, use
+ /bin/sh if shebang has options. By Nobu, ruby trunk r22853.
+ * lib/rubygems/config_file.rb: Switch to stdcall for appdata folder.
+ [ruby-core:22601].
+ * lib/rubygems.rb: Use only File::expand_path on 1.9 for home dir.
+ Don't recklessly create directories. Simplify RbConfig::datadir
+ definition.
+
+2009-05-30 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/commands/which_command.rb: Only print out directory
+ information to a TTY.
+ * lib/rubygems/rubygems_version.rb: 1.3.4.
+ * doc/release_notes/rel_1_3_4.rdoc: RubyGems 1.3.4 release notes.
+
+2009-05-28 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/commands/setup_command.rb: Fix --format-executable
+ option name.
+ * lib/rubygems/requirement.rb: Fix typo in #parse. Bug #26000 by
+ Mike Gunderloy.
+
+2009-05-21 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems.rb: Add 'dev' and svn revision for -1 RUBY_PATCHLEVEL
+ and RUBY_REVISION.
+
+2009-05-20 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/defaults.rb: Restore 1.9.1 path behavior.
+ * lib/rubygems/specification.rb: Fix undefined ivar warning.
+ * lib/rubygems/indexer.rb: Force loading of builder gem.
+ * test/gemutilities.rb: Remove gem_prelude code by hand to avoid 1.9
+ warnings.
+
+2009-05-19 Luis Lavena <luislavena@gmail.com>
+
+ * test/test_gem_specification.rb: skip symlinks tests on Windows.
+ * test/test_gem_commands_install_command.rb: skip chmod test on
+ Windows.
+
+2009-05-15 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems*: Fix 1.9 warnings about circular require.
+
+2009-05-12 Daniel Berger <djberg96@gmail.com>
+
+ * lib/rubygems/remote_fetcher.rb: Fixed the download method in the
+ remote_fetcher.rb file so that it handles local installs on MS
+ Windows when using explicit paths that aren't on the 'C:' drive.
+ Bug #25882 by Lars Christensen.
+ * lib/rubygems/commands/update_command.rb: Replaced deprecated
+ Gem::SourceIndex method 'search' with 'find_name' in the 'execute'
+ method.
+
+2009-05-07 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/commands/query_command.rb: Support prerelease version
+ listing (--prerelease), list locally installed prereleases.
+ * lib/rubygems/source_info_cache.rb: Gem::SourceInfoCache is
+ officially unsupported, maintaining its tests is hard.
+ * lib/rubygems/source_index.rb: Add #all_gems, fix #remove_spec,
+ #search to work with it. Prerelease gems can now be used.
+
+2009-05-04 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/rubygems_version.rb: 1.3.3.
+ * doc/release_notes/rel_1_3_3.rdoc: RubyGems 1.3.3 release notes.
+ * lib/rubygems/specification.rb: Default has_rdoc to true, ignore
+ its value.
+ * lib/rubygems/doc_manager.rb: Always generate RDoc regardless of
+ #has_rdoc?
+ * lib/rubygems.rb: Raise Gem::LoadError if Kernel#gem fails due to
+ previously-loaded gem. Bug reported by Alf Mikula.
+
+2009-05-02 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/commands/server_command.rb: Allow port names with
+ --port.
+ * lib/rubygems/requirement.rb: Match prerelease versions and ~>
+ correctly. Patch #25759 by Yossef Mendelssohn.
+
+2009-05-01 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/specification.rb: Check bindir for executables, not
+ root. Bug reported by David Chelimsky. Remove Time.today, no way
+ to override it before RubyGems loads. Bug #25564 by Emanuele
+ Vicentini. Raise Gem::Exception for #installation_path when not
+ installed. Bug #25741 by Daniel Berger. Don't error in #validate
+ when homepage is nil. Bug #25677 by Mike Burrows.
+ * lib/rubygems/commands/cleanup_command.rb: Clean up --user-install
+ gems. Bug #25516 by Brett Eisenberg.
+ * lib/rubygems/uninstaller.rb: Uninstall executables from the correct
+ directory. Bug #25555 by Brett Eisenberg.
+ * lib/rubygems/server.rb: Add search that jumps to RDoc. Patch
+ #22959 by Vladimir Dobriakov.
+
+2009-05-01 James Tucker <jftucker@gmail.com>
+
+ * lib/rubygems.rb: Gem.bin_path now escapes paths with spaces.
+
+2009-04-30 Daniel Berger <djberg96@gmail.com>
+
+ * lib/rubygems/commands/install_command.rb: Replaced deprecated
+ Gem::SourceIndex method 'search' with 'find_name' when using
+ the -t option. Fixes bug # 25632 by Daniel Berger.
+
+2009-04-30 James Tucker <jftucker@gmail.com>
+
+ * lib/rubygems/ext/rake_builder.rb: Use explicit ruby command loading
+ rubygems to invoke rake.
+
+2009-04-24 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/commands/specification_command.rb: Added requesting
+ single fields from a spec.
+
+2009-04-23 James Tucker <jftucker@gmail.com>
+
+ * lib/rubygems/ext/configure_builder.rb: Support Gem::Command.build_args.
+
+2009-04-15 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/rubygems_version.rb: 1.3.2.
+
+2009-04-14 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/specification.rb: Complain when summary and
+ description are identical.
+
+2009-04-08 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/specification.rb: Strip directories, complain for
+ non-files in #validate.
+
+2009-04-07 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/specification.rb: Implement #initialize_copy.
+ * lib/rubygems/commands/contents_command.rb: Add --no-prefix and
+ --all.
+
+2009-04-06 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/defaults.rb: Don't allow gem to overwrite ruby on
+ install. Fixes bug #24958 by Michael Soulier.
+ * doc/release_notes/rel_1_3_2.rdoc: Preliminary 1.3.2 release notes.
+ * Rakefile: Trim off some stale code, switch to Manifest.txt, one
+ step closer to Hoe!
+
+2009-04-06 Daniel Berger <djberg96@gmail.com>
+
+ * test/test_gem_ext_configure_builder.rb: Better handling for MS
+ Windows.
+ * test/gemutilities.rb: Added the make_command and vc_windows? helper
+ methods.
+
+2009-04-03 Eric Hodel <drbrain@segment7.net>
+
+ * lib/: RDoc improvements.
+
+2009-04-02 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/commands/setup_command.rb: Fix --destdir. Patch
+ #24970 by Richard Brown.
+
+2009-04-02 Phil Hagelberg <technomancy@gmail.com>
+
+ * lib/rubygems/version.rb: Documentation of prerelease
+ versions. See http://technomancy.us/123 for details.
+
+2009-03-31 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/spec_fetcher.rb: If the cached specs file won't load,
+ refetch. Bug #24961 by Dylan Stamat.
+ * lib/rubygems/defaults.rb: Add a sanity check to
+ Gem.default_exec_format. Workaround for bug #24958 by Michael
+ Soulier.
+ * lib/rubygems/commands/setup_command.rb: Fix confusion with option
+ names. Patch #24971 by Richard Brown.
+ * lib/rubygems/specification.rb: Make #validate complain about
+ not-files.
+ * lib/gauntlet_rubygems.rb: For verification of the validator.
+
+2009-03-27 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems.rb: RubyGems now loads plugins from rubygems_plugin.rb
+ in installed gems. This can be used to add commands (See
+ Gem::CommandManager) or add install/uninstall hooks (See
+ Gem::Installer and Gem::Uninstaller).
+ * setup.rb: Ensure we're in a RubyGems dir when installing.
+
+2009-03-26 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/package_task.rb: Import from Rake's
+ rake/gempackagetask.rb
+ * Rakefile: Switched to RDoc::Task from RDoc 2.4.2.
+ * lib/rubygems.rb: Gem.find_files now returns paths in $LOAD_PATH.
+ * lib/rubygems/commands/sources_command.rb: Allow sources to be added
+ behind proxies. Bug #24785 by Elia Schito.
+
+2009-03-25 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/commands/install_command.rb: Fix typo. Patch #24446
+ by Luis Parravicini.
+ * lib/rubygems/version.rb: Handle non-String versions by calling
+ #to_s. Patch #24392 by Stephen Bannasch.
+
+2009-03-22 Daniel Berger <djberg96@gmail.com>
+
+ * lib/rubygems/remote_fetcher.rb: Always escape URI's to deal with spaces
+ and such, regardless of platform.
+ * lib/rubygesm/validator.rb: Use the test-unit gem if installed.
+ Part of the fix for RF #24261 by Daniel Berger
+ * lib/rubygems/commands/install_command.rb: Explictly require
+ rubygems/uninstaller.rb if the user wants to bail because of failed
+ tests.
+ Part of the fix for RF #24261 by Daniel Berger
+
+2009-03-17 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/commands/query_command.rb: Make `gem unpack` work with
+ more than one gem name, fix warning about installation location.
+
+2009-03-16 James Tucker <jftucker@gmail.com>
+
+ * lib/rubygems.rb: Deprecate ConfigMap[:RUBY_INSTALL_NAME]
+ * lib/rubygems/defaults.rb: Gem.default_exec_format to use
+ ConfigMap[:ruby_install_name].
+ Fixes Bug #24457
+ * util/gem_prelude.rb.template: Fix potential bug in
+ Gem.default_exec_format when ConfigMap[:BASERUBY] is not 'ruby'.
+
+2009-03-14 Luis Lavena <luislavena@gmail.com>
+
+ * lib/rubygems/installer.rb: Cleanup quotes on Windows stub scripts.
+ Fixes Bug #24039.
+ * lib/rubygems/commands/setup_command.rb: ditto.
+
+2008-03-13 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/commands/uninstall_command.rb: Add --user-install to
+ allow uninstallation from ~/.gem. Bug #23760 by Roger Pack.
+ * lib/rubygems/uninstaller.rb: Automatically uninstall from
+ Gem.user_dir.
+ * lib/rubygems/commands/update_command.rb: Rescue InstallError
+ and continue. Bug #19268 by Gabriel Wilkins.
+ * lib/rubygems/doc_manager.rb: Remove some options from the args list
+ that RDoc no longer supports.
+
+2008-03-12 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/specification.rb: #description no longer removes
+ newlines.
+ * lib/rubygems/indexer.rb: Wrap description in a pre and force-wrap
+ lines to 78 characters for prettier display.
+ * lib/rubygems/commands/setup_command.rb: Clarify RubyGems RDoc
+ installation location. Bug #22656 by Gian Marco Gherardi.
+
+2008-03-09 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/commands/query_command.rb: Add platforms to gem list
+ -d.
+ * lib/rubygems/commands/setup_command.rb: Allow setup to run from
+ read-only location. Patch #21862 by Luis Herrera.
+ * lib/rubygems/package/tar_input.rb: Use real File methods. Bug
+ #23966 by Mike Furr.
+ * lib/rubygems.rb: Don't add PATCHLEVEL if it's -1. Patch #24048 by
+ Jeremy Kemper.
+ * lib/rubygems/package/tar_input.rb: Choose security policy
+ correctly. Bug #24001 by Mike Furr.
+ * lib/rubygems/remote_fetcher.rb: Handle local paths with spaces.
+ Bug #24169 by Ryan Davis.
+ * lib/rubygems/specification.rb: Removed Gem::Specification::list,
+ causes leaks. Bug #23668 by Steve Purcell.
+
+2008-03-07 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/installer.rb: Use Gem::bin_path in executable stubs to
+ work around Kernel#load bug.
+ * lib/rubygems/commands/install_command.rb: Copy user_install down to
+ Gem::DependencyInstaller. Patch #23573 by Alf Mikula.
+ * lib/rubygems/command.rb: Add info on gem server directly to `gem
+ help`. Patch #22271 by Hugh Sasse.
+
+2008-03-06 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/specification.rb: Don't allow FIXME in specs.
+ * lib/rubygems/commands/spec_command.rb: Add --ruby and --marshal
+ formats.
+ * lib/rubygems.rb: Add Gem::bin_path. Patch #24114 by James Tucker.
+
+2008-03-04 Eric Hodel <drbrain@segment7.net>
+
+ * setup.rb: Moved guts to lib/rubygems/commands/setup_command.rb.
+ * lib/rubygems/indexer.rb: Added RSS feed generation on full index
+ update.
+
+2008-03-04 Phil Hagelberg <technomancy@gmail.com>
+
+ * lib/*: Prerelease gems go into their own index now and are excluded
+ from other indices. InstallCommand only gets prereleases if explicitly
+ requested. Thanks to Alex Vollmer.
+
+2008-03-04 Eric Hodel <drbrain@segment7.net>
+
+ * lib/*: Add lots of pretty pretty_print stuff!
+
+2008-02-25 Ryan Davis <ryand@zenspider.com>
+
+ * lib/rubygems/commands/check_command.rb: Fix various usability
+ issues.
+
+2009-02-10 Daniel Berger <djberg96@gmail.com>
+ * lib/rubygems/specification: Refactored and fixed the installation_path
+ method. It was overwrought and it now no longer uses File::SEPARATOR
+ explicitly.
+ [RubyForge: bug #23879 by Daniel Berger]
+
+2009-02-10 Daniel Berger <djberg96@gmail.com>
+ * lib/rubygems/validator.rb: The Gem::Validator#verify_gem_file method
+ now explicitly rescues Errno::EINVAL as well as Errno::ENOENT because
+ MS Windows raises a different SystemCallError for empty paths.
+
+2009-01-21 Daniel Berger <djberg96@gmail.com>
+ * lib/rubygems/remote_fetcher.rb: Split out nil and file handling in
+ the download method. Modified file URI handling to work properly.
+ [RubyForge: bug #16495 by Paul Sadauskas]
+
+2009-01-19 Daniel Berger <djberg96@gmail.com>
+ * lib/rubygems/remote_fetcher.rb: Added uri scheme validation back
+ into the open_uri_or_path method, though it now accepts 'https' and
+ 'file' as well.
+ * test/test_gem_remote_fetcher.rb: Updated the test_fetch_size_bad_uri
+ to reflect the updated error message.
+
+2009-01-15 Daniel Berger <djberg96@gmail.com>
+ * lib/rubygems/remote_fetcher.rb: Removed the open_file_uri_path method
+ since the URI#path method already does the same thing, and changed
+ the file_uri? method so that it explicitly calls .to_s.
+ * lib/rubygems/local_remote_options.rb: Allow file urls.
+
+2009-01-15 Daniel Berger <djberg96@gmail.com>
+ * lib/rubygems/commands/generate_index_command.rb: Fixed a typo in
+ the description.
+ * test/test_gem_doc_manager.rb: The test_uninstall_doc_unwritable
+ test is now skipped on Windows.
+ * test/test_gem_install_update_options.rb: The
+ test_user_install_disabled_read_only test is now skipped on Windows.
+ * test/test_gem_installer.rb: The test_generate_bin_symlink_no_perms
+ and test_generate_bin_script_no_perms tests are now skipped on Windows.
+
+2009-01-14 Daniel Berger <djberg96@gmail.com>
+ * lib/rubygems/specification.rb: Added support for a license attribute.
+ [RubyForge: feature #11041 (partial) by Kevin Williams]
+ * lib/rubygems/commands/query_command.rb: Gem detail information now
+ includes license information.
+ * test/test_gem_specification.rb: Added tests for the license attribute.
+
+2009-01-05 Chad Woolley <thewoolleyman@gmail.com>
+
+ * move processing of build args out of gem binary so they are handled correctly via API usage.
+ * lib/rubygems/command.rb: Add class accessor for build_args.
+ * lib/rubygems/ext/rake_builder.rb: Use Gem::Command.build_args instead of ARGV.
+ * lib/rubygems/ext/ext_conf_builder.rb: Use Gem::Command.build_args instead of ARGV.
+ * lib/rubygems/gem_runner.rb: Move build arg processing from gem binary.
+ * lib/rubygems/commands/contents_command.rb: Use nonzero return code (required to make tests pass).
+ * bin/gem: Move build arg processing to gem_runner.rb.
+ [RubyForge: bug #23210]
+
+ * lib/rubygems/config_file.rb: Fix --config-file option with no
+ equals and subsequent options to properly assign config file.
+ Previously config file was overwritten by subsequent option.
+ Fixes bug #16688.
+
+2009-1-4 Daniel Berger <djberg96@gmail.com>
+ * lib/rubygems/installer.rb: Remove existing path if it already
+ exists before installing.
+ [RubyForge: patch #22837 by Eric Wong]
+ * lib/rubygems.rb: Minor modification to the location_of_caller
+ method - deal with possible characters after line number
+
+2009-1-3 Daniel Berger <djberg96@gmail.com>
+ * lib/rubygems.rb: Better activation error message.
+ [RubyForge: patch #23082 by Tim Carey-Smith]
+
+2009-1-2 Daniel Berger <djberg96@gmail.com>
+ * lib/rubygems/ext/rake_builder.rb: Quote path if it contains spaces
+ [RubyForge: patch #23003 by Charlie Savage]
+ * lib/rubygems/local_remote_options.rb: Ignore duplicate sources
+ [RubyForge: bug #22277 by Elliot Temple]
+ * lib/rubygems/remote_fetcher.rb: Automatically normalize the URI
+ [RubyForge: bug #22151 by Alex Legler]
+ * lib/rubygems/specification.rb: Ensure that specification_version is
+ a Fixnum [RubyForge: bug #22598 by Tsutomu Kuroda]
+ * lib/rubygems/specification.rb: Bumped the CURRENT_SPECIFICATION_VERSION
+ and added an entry to the SPECIFICATION_VERSION_HISTORY
+
+2009-1-1 Daniel Berger <djberg96@gmail.com>
+
+ * test/test_gem_dependency.rb: Removed a duplicate "def dep" that
+ was causing a warning.
+ * lib/rubygems/platform.rb: Added an empty? method in order to
+ better handle gem indexing when dealing with gems created
+ prior to 0.9.5. [Rubyforge: bug #22603 by Johnathan Conley]
+ * lib/rubygems.rb: Added an explicit 'require "etc"'.
+ [RubyForge: bug #22313 by Matthew Boedicker]
+
+2008-12-31 Daniel Berger <djberg96@gmail.com>
+
+ * lib/rubygems/local_remote_options: Allow 'https' as a valid scheme
+ in addition to 'http' [RubyForge: patch #22485 by Duarte Henriques]
+ * setup.rb: Deal with extraneous quotation mark when autogenerating
+ .bat file on MS Windows [RubyForge: bug #22712 Takayuki Ishikawa]
+ * lib/rubygems/commands/unpack_command.rb: Fixed the --target option
+ [RubyForge: patch #22532 by Bryan Ash]
+
+2008-12-30 Daniel Berger <djberg96@gmail.com>
+
+ * lib/rubygems/builder.rb: Don't allow .gem file to be added back
+ onto itself [RubyForge: bug #19136, patch #23346 by Daniel Berger]
+ * lib/rubygems/defaults.rb: The default_path now only returns the
+ default_dir if the Gem.user_home doesn't exist
+ [RubyForge: bug #23037 by Pierre PLR]
+ * lib/rubygems.rb: Handle the possibility that Etc.getpwuid might
+ return nil on platforms other than Windows
+ [RubyForge: bug #22764 by Dudley Flanders]
+
+2008-12-16 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/doc_manager.rb: Set title for generated documentation.
+ * lib/rubygems/dependency.rb: Make #=~ work with Gem::Specification.
+
+2008-12-15 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/installer.rb: Fix documentation for
+ Gem::Installer#write_spec. Issue by okkez.
+
+2008-12-12 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/local_remote_options.rb: Merge documentation fix by
+ okkez [ruby-dev:37271].
+ * lib/rubygems/source_info_cache_entry.rb: Merge documentation fix
+ from [ruby-dev:37255].
+
+2008-12-08 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems.rb: Add Gem::promote_load_path
+
+2008-12-01 Ryan Davis <ryand-ruby@zenspider.com>
+
+ * lib/rubygems/remote_fetcher.rb: made threadsafe.
+
+2008-11-25 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/commands/install_command.rb: Don't do any post-install
+ stuff if no gems were installed. Issue by Daniel Berger.
+
+2008-11-20 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/source_index.rb: Read the file outside the exception
+ block so we raise a sane error.
+ * lib/rubygems/indexer.rb: Allow the modern index to be updated
+ incrementally. Allow the legacy and modern indicies to be updated
+ separately.
+
+2008-11-17 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/indexer.rb: Added ability to only generate modern or
+ legacy indicies.
+
+2008-11-14 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/timer.rb: Deprecate and move methods to Gem and
+ Gem::StreamUI.
+
+2008-11-11 Phil Hagelberg <technomancy@gmail.com>
+
+ * lib/rubygems/, test/: Make Version understand prerelease
+ versions using letters. (eg. '1.2.1.b') Thanks to Josh Susser and
+ Alex Vollmer.
+
+2008-11-03 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/specification.rb: Gem name must be a String.
+
+2008-10-31 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/defaults.rb: Update to support 1.9 libdir.
+ * util/gem_prelude.rb: Move to .template, automatically fold in
+ defaults.
+
+2008-10-29 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems.rb: Handle nonexistent home directory. Bug #22229 by
+ Alexey Verkhovsky.
+
+2008-10-25 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems.rb, lib/rubygems/custom_require.rb: Make kernel
+ methods private. Patch #20801 by James M. Lawrence. Expose
+ our kernel extensions to RDoc. Make Gem::location_of_caller behave on
+ Windows. Patch by Daniel Berger.
+ * doc/release_notes/rel_1_3_1.rdoc: Final release notes for 1.3.1.
+ * lib/rubygems/rubygems_version.rb: 1.3.1.
+
+2008-10-10 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/commands/unpack_command.rb: Silence PATH warning.
+
+2008-10-09 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems.rb: Fix requires for inflate, deflate, etc.
+ * test/*: Convert to minitest/unit.
+ * lib/rubygems/validator.rb: Fix for MiniTest instead of test/unit
+ classic in 1.9.
+
+2008-10-03 Phil Hagelberg <technomancy@gmail.com>
+
+ * lib/rubygems.rb: Make Gem.dir respect :gemhome value from config.
+ * lib/rubygems/config_file.rb: Expose :gemhome value.
+
+2008-09-26 Luis Lavena <luislavena@gmail.com>
+
+ * lib/rubygems.rb: Disregard ownership of ~ under Windows while
+ creating ~/.gem. Fixes issues related to no uid support under
+ Windows.
+
+2008-09-24 Eric Hodel <drbrain@segment7.net>
+
+ * doc/release_notes/rel_1_3_0.rdoc: Final release notes for 1.3.0.
+ * lib/rubygems/rubygems_version.rb: 1.3.0.
+ * lib/rubygems/builder.rb: Examine process status correctly. Patch
+ by Nobu.
+ * test/test_gem_ext_rake_builder.rb: Override Gem.ruby and
+ ENV['rake'] for 1.9 integration. Patch by Nobu.
+
+2008-09-16 Phil Hagelberg <technomancy@gmail.com>
+
+ * lib/rubygems.rb: Use the path set in the config file if
+ applicable.
+ * lib/rubygems/config_file.rb: Expose the path.
+
+2008-09-16 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems.rb: Only create ~/.gem by user owning ~. Bug #21561
+ by Neil Wilson.
+
+2008-09-15 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/source_index.rb: Autoload SpecFetcher to improve load
+ time. Patch #21577 by Simon Chiang.
+ * lib/rubygems/commands/lock_command.rb: Modernize. Fix --strict.
+ Patch #21814 by Sven Engelhardt.
+ * lib/rubygems/platform.rb: Fix for solaris platform. Patch #21911
+ by Bob Remeika.
+
+2008-09-10 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/commands/install_command.rb: Describe _version_ in `gem
+ help install`.
+ * lib/rubygems/commands/environment_command.rb: Describe environment
+ variables and gemrc in `gem help env`.
+ * lib/rubygems.rb: Warn when executing Gem::manage_gems.
+ * lib/rubygems/doc_manager.rb: Have RubyGems update the ri cache.
+ * lib/rubygems/source_index.rb: Ensure specs are read as UTF-8.
+ * lib/rubygems/specification.rb: Add magic comment to .gemspec files
+ so they are read in as UTF-8.
+
+2008-08-22 Luis Lavena <luislavena@gmail.com>
+
+ * lib/rubygems.rb: Corrected usage of HOMEDRIVE and HOMEPATH on Windows.
+ Escape Gem.ruby if spaces in the path are present. Solves bug related to
+ extensions compile process.
+ * test/test_gem.rb: Added test to verify both conditions.
+
+2008-08-17 Eric Hodel <drbrain@segment7.net>
+
+ * doc/release_notes/rel_1_3_0.rdoc: Initial release notes for 1.3.0.
+ * util/CL2notes: Release note creation helper script.
+
+2008-08-16 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/local_remote_options.rb: Added #both? to complement
+ #local? and #remote?.
+ * lib/rubygems/commands/query_command.rb: Print out LOCAL/REMOTE with
+ --both, even without a TTY.
+ * lib/rubygems.rb: Add Gem.find_files, allows a gem to discover
+ features provided by other gems.
+
+2008-08-14 Wilson Bilkovich <wilson@supremetyrant.com>
+
+ * lib/rubygems/source_index.rb: Deprecate options to 'search' other than
+ Gem::Dependency instances and issue warning until November 2008.
+ * lib/rubygems/platform.rb: Remove deprecated constant warnings
+ and really deprecate them.
+ * Rakefile: If the SETUP_OPTIONS environment variable is set, pass its
+ contents as arguments to setup.rb
+ * test/test_gem_commands_uninstall_command.rb: Added
+
+2008-08-13 Wilson Bilkovich <wilson@supremetyrant.com>
+
+ * lib/rubygems/uninstaller.rb: Fix binary script uninstallation.
+ Bug #21234 by Neil Wilson.
+ * test/test_gem_commands_uninstall_command.rb: Added
+
+2008-08-12 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/installer.rb: Try to create directory before diverting
+ to ~/.gems.
+ * lib/rubygems/uninstaller.rb: Fix uninstallation with -i. Bug
+ #20812 by John Clayton. Have #remove_all call #uninstall_gem so hooks
+ get called. Bug #21242 by Neil Wilson.
+ * lib/rubygems/commands/update_command.rb: Fix updating RubyGems when
+ no previous rubygems-update is installed. Bug #20775 by Hemant Kumar.
+
+2008-08-11 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/remote_fetcher.rb: Fix HTTPS support. Patch #21072 by
+ Alex Arnell. Fix Not Modified handling. Bug #21310 by Gordon
+ Thiesfeld.
+
+2008-07-11 Luis Lavena <luislavena@gmail.com>
+
+ * setup.rb: Properly build --destdir folder structure using Pathname.
+ * test/mockgemui.rb: Fix warnings about instance variables in a module.
+
+2008-07-02 Phil Hagelberg <technomancy@gmail.com>
+
+ * lib/rubygems/defaults.rb: Add Gem.user_dir to use paths like
+ ~/.gem/ruby/1.8/gems and the like instead of just ~/.gem. Update
+ remote fetcher and installer to use it.
+
+2008-07-01 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/installer.rb: Add #gem_home, #bin_dir for hooks. Use
+ DependencyInstaller's source_index so reinstallation via -i does not
+ fail.
+ * lib/rubygems/uninstaller.rb: Add #gem_home, #bin_dir for hooks.
+ * lib/rubygems/commands/query_command.rb: Don't print LOCAL/REMOTE
+ gems if stdout is not a TTY.
+ * lib/rubygems/commands/query_command.rb: Use the regexp we already
+ have for `gem list --installed`. Bug #20876 by Nick Hoffman.
+ * lib/rubygems/commands/which_command.rb: Clarify what `gem which` is
+ for.
+
+2008-06-30 Eric Hodel <drbrain@segment7.net>
+
+ * test/test_ext_configure_builder.rb: Locale-free patch by Yusuke
+ Endoh [ruby-core:17444].
+ * lib/rubygems.rb: Add pre/post (un)install hooks.
+ * lib/rubygems/installer.rb: Call pre/post install hooks as
+ appropriate.
+ * lib/rubygems/uninstaller.rb: Call pre/post uninstall hooks as
+ appropriate. Minor refactoring of #uninstall.
+ * lib/rubygems/package/tar_reader.rb: Some OSs raise EINVAL on seek.
+ Based on patch in bug #20791 by Neil Wilson.
+ * lib/rubygems/specification.rb: Correctly check for support of
+ development dependencies for #to_ruby. Bug #20778 by Evan Weaver.
+ * lib/rubygems/spec_fetcher.rb: Correctly load all cache file even if
+ latest has been loaded. Bug #20776 by Uwe Kubosch.
+
+2008-06-25 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/config_file.rb: Add Gem::ConfigFile constants for
+ packagers and implementors to override defaults.
+ * test/*: Fixes to run tests when under test/rubygems/. Patch by
+ Yusuke ENDOH [ruby-core:17353].
+
+2008-06-24 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/remote_fetcher.rb: Cleanup to support
+ if-modified-since requests. pair: Ryan Davis
+ * lib/rubygems/indexer: Force platform to Gem::Platform::RUBY when
+ nil or blank. Fixes various uninstallable gems.
+
+2008-06-24 Phil Hagelberg <technomancy@gmail.com>
+
+ * lib/rubygems/installer.rb: Fall back on ~/.gem if GEM_HOME is
+ not writable.
+ * lib/rubygems/install_update_options.rb: Allow --user-install or
+ --no-user-install command-line switch to explicitly force whether
+ or not ~/.gem should be used.
+ * lib/rubygems/remote_fetcher.rb: Use ~/.gem/cache if cache dir is
+ not writable.
+ * test/gemutilities.rb: Use MockGemUi for all tests.
+
+2008-06-21 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/specification.rb: Load specifications from the future.
+ Roll back specification version change.
+ * lib/rubygems/remote_fetcher.rb: Reset connection when an HTTP
+ server misbehaves.
+ * setup.rb: Fix --destdir for windows.
+ * doc/release_notes/rel_1_2_0.rdoc: Bugs in RubyGems were
+ unintentionally added, order bug fixes by importance.
+ * lib/rubygems/rubygems_version.rb: 1.2.0.
+
+2008-06-20 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/uninstaller.rb: Improve output when a gem to uninstall
+ isn't found. Bug #20746 reported by Chad Wooley.
+ * setup.rb: Fix rdoc installation with --destdir. Patch #20739 by
+ Matthew Kent.
+ * lib/rubygems/commands/install_command.rb: Don't reset GEM_PATH when
+ installing. Fixes Bug #20746 by Chad Wooley.
+
+2008-06-20 Luis Lavena <luislavena@gmail.com>
+
+ * setup.rb: Only prepend install_destdir when especified. Fixes
+ installation issues related to Windows paths (/C:/...)
+
+2008-06-19 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/dependency_installer.rb: Ensure that the entire
+ dependency chain is installed. Fixes bug reported by Chad Woolley.
+
+2008-06-18 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/commands/dependency_command.rb: Restore matching
+ everything when no name is specified, regexp matching. Fixes bug
+ #20716, bug #20717 by Chad Woolley.
+
+2008-06-18 Chad Woolley <thewoolleyman@gmail.com>
+
+ * lib/rubygems/config_file.rb: Fix --config-file option with no
+ equals and subsequent options to properly assign config file.
+ Previously config file was overwritten by subsequent option.
+ Fixes bug #16688.
+
+2008-06-17 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/version.rb: Gem::Version #hash and #eql? now operate
+ on the version string, terms of the version string, so "1" and "1.0"
+ no longer correspond to the same slot. Fixes indexer bug reported by
+ Chad Woolley.
+ * setup.rb: Fix --format-executable. Patch #20698 by Richard Brown.
+ * util/gem_prelude.rb: Prevent infinite recursion, check for Gem now.
+ Patch from ruby trunk by nobu.
+ * lib/*: Spelling cleanup. Patch from trunk by Evan Farrar.
+ * test/*: Fixes for win32 test failures reported by Luis Lavena.
+ * util/gem_prelude.rb: Only remove methods added by gem_prelude.rb.
+
+2008-06-16 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/indexer.rb: Fix quick_index generation.
+ * lib/rubygems/specification.rb: Correctly guard new spec features
+ for older RubyGems.
+ * lib/rubygems/config_file.rb: Add system-wide config file
+ (/etc/gemrc). Patch #14723 by Phil Hagelberg. Add windows code to
+ use appropriate directory. Code by Daniel Berger.
+ * doc/release_notes/rel_1_2_0.rdoc: Draft of 1.2.0 release notes.
+
+2008-06-15 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/server.rb: Store off if we are returning Marshal
+ format before running =~ again. Fixes bug reported by Chad Woolley.
+ * lib/rubygems/commands/stale_command.rb: `gem stale` lists gems by
+ last access time. Patch #20593 by Aaron Patterson.
+ * lib/rubygems/setup.rb: Add --vendor and --destdir to setup.rb for
+ packagers. Patch #20610 by Richard Brown. Don't look for stub
+ files to remove any more.
+ * lib/rubygems/specification.rb: Bump specification version and be
+ backwards compatible with type 2 specs.
+ * lib/rubygems/commands/query_command.rb: Add installed location to
+ details for installed gems.
+
+2008-06-09 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/dependency_installer.rb: Only install all dependencies
+ when install_dir option is set. Don't include satisfied dependencies
+ when gathering dependencies.
+ * lib/rubygems/commands/query_command.rb: Display authors, rubyforge
+ and homepage urls with details.
+ * lib/rubygems/commands/environment_command.rb: Add executable
+ directory (from Rubinius).
+ * lib/rubygems/commands/install_command.rb: Don't set install_dir by
+ default.
+ * lib/rubygems/commands/update_command.rb: Don't set install_dir by
+ default. Use #find_missing for efficiency.
+
+2008-06-07 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/server.rb: Fully mirror Gem::Indexer indexes, set
+ correct content-type headers, always refresh the source index.
+ * lib/rubygems/source_index.rb: Add spec_dirs so that #refresh! will
+ always reload from the same locations. #refresh! on manually-built
+ SourceIndex now raises. Fixes #20509 by Chad Woolley.
+
+2008-06-06 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/installer.rb: Remove previous bin_script_path in case
+ it is a symlink.
+ * lib/rubygems/commands/pristine_command.rb: Force reinstallation of
+ the gem using the installer. Fixes bug #20387 by Erik Persson.
+ * lib/rubygems/doc_manager.rb: Ensure args to RDoc are all strings.
+ * lib/rubygems/source_index.rb: Use find_matching to discover updated
+ specs instead of fetch.
+ * lib/rubygems/commands/query_command.rb: Platform, not name in spec
+ tuples.
+
+2008-06-05 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/local_remote_options.rb: Ensure remote repository URLs
+ reference directories. Fixes bug #20134 by Neil Wilson.
+ * lib/rubygems/source_index.rb: Gracefully handle ^C or explicit exit
+ while loading .gemspec files from disk. Fixes bug #20523 by Joel
+ VanderWerf.
+ * lib/rubygems/specification.rb: Use File#expand_path in
+ installation_path. Fixes bug #19317 by Hemant Kumar.
+ * lib/rubygems/spec_fetcher.rb: Fix legacy test against URI.
+ * lib/rubygems/remote_fetcher.rb: Always raise FetchError from
+ RemoteFetcher. Fix FetchErrors without URIs. Refactor Net::HTTP
+ request code to use persistent connections for HEAD requests. Feature
+ Request #7973 by Christian Schachtzabel.
+ * lib/rubygems.rb: Don't load custom_require until after the OS and
+ implementation have had a chance to set paths.
+
+2008-06-04 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/commands/source_index.rb: Only fetch specs we need in
+ #outdated.
+ * lib/rubygems.rb: Fix typo in ::activate exception.
+ * lib/rubygems/dependency.rb: For #to_s, display dependency type when
+ nil.
+ * lib/rubygems/dependency_installer.rb: Reset #installed_gems for
+ every #install. Fixes bug #19444 by Glenn Rempe.
+ * lib/rubygems/installer.rb: Don't re-read the disk to check for new
+ gems, add them by hand on install.
+
+2008-06-03 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems.rb: Add ::gzip, ::gunzip, ::deflate and ::inflate.
+ * lib/rubygems/server.rb: Add specs and latest_specs indicies.
+ * setup.rb: Don't require rdoc until needed. Patch #20414 by Brian
+ Candler.
+ * lib/uninstaller.rb: Correctly uninstall gems installed with a
+ legacy platform. Patch #19877 by Luis Lavena.
+ * lib/rubygems/commands/update_command.rb: Only fetch remote specs
+ when we know what we're looking for.
+
+2008-06-02 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/specification.rb: Remove double slash in
+ #installation_path. Fixes bug #19896 by Heiko Seebach.
+ * lib/rubygems/remote_fetcher.rb: Require StringIO. Fixes bug #19866
+ by Caleb Land.
+ * lib/rubygems.rb: Require rubygems/defaults/#{RBX_ENGINE}.rb and
+ rubygem/defaults/operating_system.rb if they exist. (OS require comes
+ first and may be overridden by operating system.)
+
+2008-06-01 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/indexer.rb: Ensure identical names, versions and
+ platforms are identical for a smaller index.
+ * lib/rubygems/spec_fetcher.rb: Only write to cache when we own it.
+ * lib/rubygems.rb: Honor default_path if GEM_PATH environment
+ variable is not set. Patch #19502 by Donavan Pantke.
+ * lib/rubygems/installer.rb: Set file mode indicated by tar file.
+ Patch #19737 by Jason Roelofs.
+
+2008-06-01 John Barnette <jbarnette@rubyforge.org>
+
+ * lib/rubygems.rb: Add Gem.available?(gem, *specs) for easy availability
+ checks at runtime.
+
+2008-05-31 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/commands/dependency_command.rb: Delay fetching specs
+ until needed. Reverse dependencies can no longer be calculated for
+ remote sources. Add backwards compatibility.
+ * lib/rubygems/commands/fetch_command.rb: Add backwards
+ compatibility.
+
+2008-05-30 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/local_remote_options.rb: --sources option should not
+ add URIs to Gem.sources.
+ * lib/rubygems/spec_fetcher.rb: Add #warn_legacy to help handling
+ legacy sources.
+ * luby/rubygems/commands/query_command.rb: Add backwards
+ compatibility with legacy sources.
+
+2008-05-28 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/remote_fetcher.rb: Add #uri to
+ Gem::RemoteFetcher::FetchError.
+ * lib/rubygems/user_interaction.rb: Improve RDoc slightly.
+ * lib/rubygems/spec_fetcher.rb: Introduce backwards compatibility for
+ legacy (pre 1.2) repositories
+ * lib/rubygems/commands/sources_command.rb: Backwards compatibility
+ and restoration of --update.
+ * lib/rubygems/specification.rb: Ensure nil-typed dependencies become
+ runtime dependencies.
+
+2008-05-27 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/spec_fetcher.rb: Switch #fetch, #find_matching to be
+ compatible with Gem::SourceInfoCache#search_with_source. Add caching
+ for .gemspec files.
+ * lib/rubygems/dependency_installer.rb: Switch to SpecFetcher.
+ * lib/rubygems/source_index.rb: Switch #outdated to use SpecFetcher.
+ * lib/rubygems/commands/dependency_command.rb: Switch to SpecFetcher.
+ * lib/rubygems/commands/outdated_command.rb: Switch to SpecFetcher.
+ * lib/rubygems/commands/query_command.rb: Switch to SpecFetcher.
+ * lib/rubygems/commands/sources_command.rb: Switch to SpecFetcher.
+ * lib/rubygems/commands/update_command.rb: Switch to SpecFetcher.
+ * lib/rubygems/version.rb: Handle comparisons with non-Gem::Version
+ objects.
+
+2008-05-13 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/spec_fetcher.rb: Add caching of specs, latest_specs
+ files.
+ * test/gemutilities.rb: Ensure Gem.user_home doesn't point to ~.
+
+2008-05-09 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/indexer.rb: Add Marshal format index of spec names,
+ versions and platforms. WIP.
+ * lib/rubygems/spec_fetcher.rb: WIP for replacement of
+ Gem::SourceInfoCache and SourceInfoCacheEntry.
+ * lib/rubygems/dependency.rb: Add #=~.
+
+2008-05-07 John Barnette <jbarnette@gmail.com>
+
+ * lib/rubygems/specification.rb, et. al: Let gems have development
+ dependencies, which aren't installed (except when --development is
+ supplied) or activated.
+
+2008-05-02 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/indexer.rb: Refactored into simpler more imperative
+ code.
+ * lib/rubygems.rb: Leave rbconfig/datadir.rb for non-RubyGems use.
+
+2008-04-16 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/server.rb: Refresh the source index per request so new
+ gems will be found after server startup.
+
+2008-04-15 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/source_index.rb: Only print out "Bulk updating" when
+ verbose, fix #latest_specs documentation.
+ * lib/rubygems/dependency_installer.rb: Add :cache_dir option for
+ Tinderbox.
+
+2008-04-14 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/test_utilities.rb: Expose some internal testing
+ utilities that are of general use.
+
+2008-04-10 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems.rb: Fix Gem.prefix so it reports nil when rubygems.rb
+ is in sitelibdir, libdir, or doesn't have 'lib' as a parent directory.
+ * doc/release_notes/rel_1_1_1.rdoc: RubyGems 1.1.1 release notes.
+ * lib/rubygems/rubygems_version.rb: 1.1.1.
+
+2008-04-07 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/server.rb: Fix fragment URIs. Patch by James Tucker.
+ * lib/rubygems/commands/update_command.rb: Pass
+ --no-format-executable to setup.rb. Patch by Stephen Bannasch.
+
+2008-04-06 Chad Woolley <thewoolleyman@gmail.com>
+
+ * lib/rubygems.rb: Add setter Gems.platforms=, to allow platforms
+ to be set/reset when invoking or testing RubyGems programatically.
+ Also force Gems.platforms to automatically reset to default of
+ [Gem::Platform::RUBY, Gem::Platform.local] if cleared.
+ * lib/rubygems/version_option.rb: Change add_platform_option
+ to initialize Gem.platforms to contain only Gem::Platform::RUBY
+
+2008-04-04 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/source_index.rb: Make Gem::SourceIndex#refresh!
+ more-correct. Reported by Paul Haddad.
+ * lib/rubygems.rb: Add Gem::refresh. Bug #19176 by Hongli Lai.
+ * lib/rubygems/dependency_installer.rb: Put downloaded gems into
+ install_dir's cache. Patch #19182 by Richard Brown.
+
+2008-04-03 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/source_info_cache.rb: Merge full cache file into
+ latest data. Don't write cache files when checking for them. Only
+ update full cache file when we've read it. Refresh all data when
+ loading all data.
+ * lib/rubygems/dependency_installer.rb: Fix --force to work without
+ network for dependent gems. Fix all-fetching test.
+ * lib/rubygems/commands/query_command.rb: Obey --all flag for gem
+ query.
+ * lib/rubygems/commands/environment_command.rb: Don't display
+ RubyGemsPackageVersion.
+ * lib/rubygems/indexer.rb: Fix typo. Patch by Tom Copeland.
+ * lib/rubygems/command_manager.rb: Display RubyGemsVersion with
+ --version.
+ * lib/rubygems/commands/pristine_command.rb: Rebuild extensions along
+ with everything else. Patch #19281 by Dr. Nic Williams.
+
+2008-04-01 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems.rb: Fix prefix to point to directory above RubyGems,
+ so RubyGems will be installed into lib/.
+ * setup.rb: Work around apple's libdir-installed RubyGems, by
+ installing into sitelibdir.
+ * Rakefile: Add svnversion to RubyGems version number for `rake
+ install`.
+
+2008-03-31 Luis Lavena <luislavena@gmail.com>
+
+ * test/: Allow tests to use a random (but controlled) port number
+ instead of a hardcoded one. This helps CI tools when running
+ parallels builds.
+
+2008-03-30 Luis Lavena <luislavena@gmail.com>
+
+ * test/test_gem.rb: Leave APPLE_GEM_HOME tests only to *nixes.
+ * lib/rubygems/remote_fetcher.rb: Errno::ECONNABORTED raised on Windows
+ on closed Keep-Alive connections.
+
+2008-03-29 Eric Hodel <drbrain@segment7.net>
+
+ * gemspecs/: Removed.
+ * examples/: Removed.
+ * doc/design/: Removed.
+ * doc/rdoc_templates/: Removed.
+ * Rakefile: Package doc/release_notes/.
+ * setup.rb: Use full path to release_notes, ensure RDoc can be
+ both removed and installed.
+
+2008-03-28 Eric Hodel <drbrain@segment7.net>
+
+ * bin/gem, Rakefile: RubyGems now requires Ruby > 1.8.3.
+ * lib/rubygems.rb: Added Gem.ruby_version, Gem.read_binary,
+ Gem.binary_mode.
+ * lib/, test/: Read files in binary mode for windows and ruby 1.9.
+ * lib/rubygems/commands/update_command.rb: Only update once.
+ * lib/rubygems/commands/sources_command.rb: Ditto.
+ * lib/rubygems/source_index.rb: Fix #remove_extra, #find_missing so
+ legacy platform gems don't get updated repeatedly.
+ * doc/release_notes/rel_1_1_0.rdoc: RubyGems 1.1.0 release notes.
+ * lib/rubygems/rubygems_version.rb: 1.1.0.
+
+2008-03-28 Ryan Woodrum <rwoodrum@avvo.com>
+
+ * lib/rubygems/commands/query_command.rb: Add --installed
+ subcommand to check if a gem and/or version is installed.
+ * test/test_gem_commands_query_command.rb: Add relevant tests.
+ * test/gemutilities.rb: Override exit() for query tests.
+ * test/mockgemui.rb: Add =() to manipulate output values (clear).
+
+2008-03-28 Chad Woolley <thewoolleyman@gmail.com>
+
+ * lib/rubygems/source_info_cache.rb: Add reset_cache_file.
+
+2008-03-27 Chad Woolley <thewoolleyman@gmail.com>
+
+ * lib/rubygems/user_interaction.rb: Raise Gem::SystemExitException
+ instead of exiting, kill unused terminate_interaction!.
+ * lib/rubygems/exceptions.rb: Add Gem::SystemExitException.
+ * lib/rubygems/commands/install_command.rb: Raise
+ Gem::SystemExitException instead of exiting.
+ * bin/gem: Rescue Gem::SystemExitException and exit with
+ specified exit_code.
+ * test/test_gem_commands_install_command.rb: Assert on
+ Gem::SystemExitException and exit_code in tests.
+
+2008-03-27 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/commands/sources_command.rb: Allow sources to be
+ removed without network. Fixes bug #18644 by Mikel Lindsaar.
+
+2008-03-27 Luis Lavena <luislavena@gmail.com>
+
+ * lib/rubygems/commands/environment_command.rb: Use platform specific
+ PATH_SEPARATOR instead of hardcoded ':'
+ * test/test_gem_commands_unpack_command.rb: Ditto.
+ * test/test_gem_commands_environment_command.rb: Ditto.
+ * test/gemutilities.rb: Fix binary file reads being truncated on
+ Windows.
+ * test/test_gem_commands_install_command.rb: Switch to read_binary.
+ * test/test_gem_commands_update_command.rb: Ditto.
+ * test/test_gem_commands_server_command.rb: Consider full path when
+ evaluating location (instead of hardcoded or missing drive leter).
+ * test/test_gem_installer.rb: Ditto.
+ * test/test_gem_dependency_installer.rb: exclude no-wrapper tests for
+ Windows.
+
+2008-03-26 Luis Lavena <luislavena@gmail.com>
+
+ * lib/rubygems.rb: Handle backslashes that came from GEM_HOME and
+ GEM_PATH on Windows.
+
+2008-03-25 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/source_index.rb: Add updating from latest index,
+ default to updating from latest index. Reduces common-case update
+ to under 3,000 gems at present.
+ * lib/rubygems/remote_fetcher: Fix error reporting from net/http.
+ * lib/rubygems.rb: Sort methods, remove last vestiges of autorequire,
+ RDoc cleanup.
+
+2008-03-23 Luis Lavena <luislavena@gmail.com>
+
+ * setup.rb: generated Windows stubs will honors prefix using Gem.ruby
+ instead of hardcoded 'ruby.exe'
+ * lib/rubygems/installer.rb: generated Windows stubs scripts will now
+ work from differnt directories than Gem::bindir. Fixes bug #16259 by
+ Claus Folke Brobak
+
+2008-03-20 Eric Hodel <drbrain@segment7.net>
+
+ * test/test_gem_source_info_cache.rb: Test with real objects now.
+ * lib/rubygems/source_index.rb: #latest_specs now has latest specs
+ for all platforms.
+ * lib/rubygems/source_info_cache.rb: Add latest cache data, only load
+ full cache data when needed.
+
+2008-03-20 Luis Lavena <luislavena@gmail.com>
+
+ * test/gemutilities.rb: Change all the file processing mechanism to
+ enable binary mode by default (required for Windows file operations
+ dealing with non-printable characters).
+
+2008-03-19 Luis Lavena <luislavena@gmail.com>
+
+ * lib/rubygems/package/tar_output.rb: Adapted code to use #wrap instead
+ of #new when dealing with Zlib::GzipWriter (fixes SEGV and warnings due
+ GzipWriter object not being closed explicitly).
+
+2008-03-12 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/indexer.rb: Add latest_index.
+
+2008-03-09 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/defaults.rb: Add special case for RUBY_ENGINE constant
+ when setting default gem dir.
+ * Rakefile: Add update_rubinius and diff_rubinius.
+
+2008-03-08 Lincoln Stoll <lstoll@lstoll.net>
+
+ * lib/rubygems/server.rb: Drop use of RDoc's TemplatePage in favor of
+ ERB.
+
+2008-03-04 Ryan Davis <ryan@wrath.local>
+
+ * lib/rubygems/remote_fetcher.rb: Moved #download from
+ DependencyInstaller.
+ * lib/rubygems/commands/fetch_command.rb: Updated to use #download.
+ * lib/rubygems/dependency_installer.rb: install now takes name or dep.
+ Renamed gather_specs_to_download to find_spec_by_name_and_version.
+ Modifed #initialize to not take gem name or version.
+
+2008-03-04 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/package*: Removed #open_from_io and friends, switched
+ to #open, no special handling for file names.
+ * lib/rubygems/package/tar_output.rb: Refactored ::open to use
+ instance methods.
+ * lib/rubygems/remote_fetcher.rb: Print out number of requests made
+ before connection reset.
+
+2008-02-29 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/package/tar_reader/entry.rb: Removed is_directory and
+ is_file? in favor of file? and directory?.
+
+2008-02-28 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/package.rb: Broke up Tar bits into separate files.
+ * lib/rubygems/package/tar_reader/entry.rb: Don't copy TarHeader data
+ into Entry, go through #header instead. Better tests for
+ TarReader::Entry.
+
+2008-02-27 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/dependency_installer.rb: Automatically fall back to
+ local-only install on network error. Fixes bug #15759 by Chauk-Mean P.
+ * lib/rubygems/source_index.rb: Process spec dirs so that earlier
+ dirs override later dirs. Fixes bug #14816 by Kurt Stephens.
+
+2008-02-26 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/commands/update_command.rb: Only update gems that need
+ updates. Fixes bug #14780 by Mathieu Lajugie. Don't force
+ remote-only updates. Properly handle dependencies when updating.
+ Fixes bug #17488 by Hongli Lai.
+ * lib/rubygems/commands/environment_command.rb: Display path as a
+ usable path.
+ * lib/rubygems.rb: Don't add APPLE_GEM_HOME with ENV['GEM_HOME'].
+
+2008-02-25 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems.rb: Expand sitelibdir when checking prefix. Fixes bug
+ #17983 by Hemant Kumar.
+ * setup.rb: Print release notes on installation. Tell people where
+ `gem` was installed.
+ * bin/update_rubygems: Added --help output to explain how to install
+ earlier versions of RubyGems. Added --version option workaround.
+ Fixes bug #16842 by Chad Woolley.
+ * lib/rubygems/install_command.rb: Give proper exit code on failure.
+ Fixes bug #17438 by Josh Nichols.
+
+2008-02-23 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/remote_fetcher.rb: Change hosts correctly when
+ redirecting. Handle EOFError from Net::HTTP.
+ * lib/rubygems/commands/specification_command.rb: Pull specifications
+ from gem files.
+ * lib/rubygems/uninstaller.rb: When :executable is set, don't ask the
+ user. Fixes bug #16812 by Matt Mower. Raise exception instead of
+ printing message when gem is not in GEM_HOME.
+ * lib/rubygems/uninstall_command.rb: Print message when gem is not in
+ GEM_HOME.
+ * lib/rubygems/commands/cleanup_command.rb: Clean up all old gems.
+ * lib/rubygems/commands/unpack_command.rb: Scan every gem path when
+ unpacking. Fixes bug #17602 by Ryan Davis.
+
+2008-02-20 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/install_update_options.rb: Add --bindir option to
+ specify destination to install executables into. Patch #17937 by
+ Donavan Pantke.
+ * lib/rubygems/specification.rb: Fix Time.today == Time.today. Bug
+ #17413 by Andrei Bocan.
+ * setup.rb: Properly check for deletablitily of user and system
+ caches. Bug #17869 by Alexey Verkhovsky. Fix --no-format-executable.
+ Fixes bug #16879 by Charles Nutter.
+
+2008-02-19 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/remote_fetcher.rb: Add persistent connection support.
+ Patch #18180 by Aaron Patterson.
+ * lib/rubygems/installer.rb: Fix #shebang to use the ruby install
+ name. Patch #16878 by Donavan Pantke.
+ * lib/rubygems/defaults.rb, lib/rubygems.rb: Enable defaults for
+ Gem.path and Gem.bindir. Patch #17886 by Donavan Pantke.
+ * test/test_gem_ext_configure_builder.rb: Make test_self_build_fail
+ more platform independent. Patch #17599 by Martin Krauskopf.
+
+2008-02-14 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/commands/fetch_command.rb: Fix a bug when fetching
+ from non-default sources. Report non-existent gems instead of
+ crashing.
+
+2008-01-09 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/commands/update_command.rb: Use portable and safe ENV
+ operation. Patch by usa in ruby SVN revision 14739.
+ * lib/rubygems/open-uri.rb: Fix tests. Patch by NARUSE Yui.
+ [ruby-dev:33336]
+
+2007-12-23 Eric Hodel <drbrain@segment7.net>
+
+ * util/gem_prelude.rb: Remove methods from Gem, not QuickLoader, to
+ fix warnings.
+
+2007-12-22 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/commands/environment_command.rb: Put GEM PATHS in the
+ correct order.
+ * lib/rubygems/commands/uninstall_command.rb: Add --install-dir to
+ specify which local repository to uninstall from. Patch #15151 by
+ Donavan Pantke.
+ * lib/rubygems/uninstaller.rb: Only allow uninstallation of gems from
+ specified directory. Properly clean up executables on uninstall.
+ Patch #15151 by Donavan Pantke.
+ * lib/rubygems/install_update_options.rb: Add --no-env-shebang
+ option. Patch #16508 by Donavan Pantke.
+ * util/gem_prelude.rb: Use require to load rubygems.rb to make
+ $LOADED_FEATURES correct on RubyGems update.
+
+2007-12-21 Eric Hodel <drbrain@segment7.net>
+
+ * util/gem_prelude.rb: Place bin before lib so bin stubs work.
+
+2007-12-20 Eric Hodel <drbrain@segment7.net>
+
+ * Rakefile: Require Ruby > 1.8.2. Enable CERT_DIR.
+ * lib/rubygems.rb: Work with RbConfig and Config. Bug #16457 by
+ Christian Ramilo, John Barnette.
+ * lib/rubygems/commands/build_command.rb: Relax yaml? test to work
+ with Ruby 1.8.3.
+ * lib/rubygems/rubygems_version.rb: 1.0.1.
+ * doc/release_notes/rel_1_0_1.rdoc: RubyGems 1.0.1 release notes.
+
+2007-12-19 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/installer.rb: Revert change that only wrapped
+ executables with #!.
+ * lib/rubygems/specification.rb: Warn about a lot of things that
+ could be wrong with gemspecs on build, including missing #!. Use
+ 'x86-mswin32' for legacy 'mswin32' platform, fix CURRENT platform.
+ Paired with Luis Lavena.
+ * lib/rubygems/remote_installer.rb: Deleted.
+ * lib/rubygems.rb: Removed Kernel#require_gem.
+ * doc/release_notes/rel_1_0_0.rdoc: RubyGems 1.0 release notes.
+ * lib/rubygems/rubygems_version.rb: 1.0.0.
+
+2007-12-18 Luis Lavena <luislavena@gmail.com>
+
+ * lib/rubygems/commands/mirror_command.rb: Work around URI::parse
+ processing file:// scheme and drive paths on Windows.
+ * test/test_gem_commands_mirror_command.rb: ditto.
+
+2007-12-17 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/installer.rb: Copy files into bindir if they don't
+ have a shebang. Bug reported by Luis Lavena.
+ * lib/rubygems/server.rb: Handle platforms in Gem::Server#quick.
+ Exactly match gem names. Bugs reported by Chad Woolley.
+ * lib/rubygems/platform.rb: Remove platform constants in favor of
+ Gem::Platform::CURRENT. Bug reported by Luis Lavena.
+ * lib/rubygems/dependency_installer.rb: Work around Dir::glob not
+ understanding File::ALT_SEPARATOR. Bug submitted by Luis Lavena.
+
+2007-12-16 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/remote_fetcher.rb: Be more verbose in error messages
+ from OpenURI.
+ * lib/rubygems/server.rb: Be more verbose in error/missing responses.
+
+2007-12-15 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/installer.rb: Output extension build results when
+ really verbose. From bug #15853 John Croisant.
+ * lib/rubygems/specification.rb: Fix backwards compatibility with
+ 0.9.4, don't allow the platform to be nil or an empty string. Bug
+ #16177 by Dan Manges.
+ * setup.rb: Re-exec setup.rb if rubygems is loaded and RUBYOPT is
+ set. Fixes bug #15974 by Joshua Sierles.
+ * lib/rubygems/update_command.rb: Tweak formatting of updated
+ message. Bug #15625 by Bil Kleb.
+ * lib/rubygems/remote_fetcher.rb: Add URI to exception message for
+ Gem::RemoteFetcher#fetch_size. Bug #14801 by Bil Kleb.
+
+2007-12-14 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/commands/query_command.rb: Don't display duplicate
+ version numbers. Bug #15828 by Tim Fletcher.
+ * setup.rb: Fix my stupidity with --help. Patch #16308 by Stephen
+ Bannasch. Fix --prefix= argument. Bug #16002 by Piglop.
+
+2007-12-13 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/commands/server_command.rb: Fix --no-daemon. Bug by
+ Chad Woolley.
+ * lib/rubygems/server.rb: Fix Marshal quick index. Bug by Chad
+ Woolley.
+ * lib/rubygems/installer.rb: Respect Gem::Specification#bindir. Bug
+ #16202 by Suraj Kurapati.
+ * lib/rubygems/commands/update_command.rb: Fix `gem update mysql`.
+ Bug #16244 by Stephen Bannasch.
+
+2007-12-12 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/installer.rb: Add --format-executable option to
+ install executables with ruby's program-suffix and prefix. Patch
+ #14688 by Jeremy Kemper. Also, installing in really-verbose mode
+ prints out written files.
+ * setup.rb: Add --format-executable option to install gem with ruby's
+ program-suffix and prefix. Add --help. Fixes bug #16056 by Chad
+ Woolley.
+ * lib/rubygems/uninstaller.rb: Fallback to original_platform_name
+ correctly. Patch #15960 by Nicola Piccinini's friend.
+
+2007-12-11 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/validator.rb: Correct test run failures when no tests
+ are provided. Patch #15701 by Jérémy Zurcher.
+ * lib/rubygems/commands/mirror_command.rb: Don't File.join a
+ URI::HTTP. Patch #16116 by Morgan Nelson.
+ * lib/rubygems/commands/unpack_command.rb: Add --target option to
+ `gem unpack`. Patch #16154 by Kevin Barnes.
+
+2007-12-10 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/dependency_installer.rb: Revert to nil for the default
+ security policy to avoid requiring OpenSSL.
+ * lib/rubygems/defaults.rb: Consolidate defaults for easier editing.
+ Patch #15150 by Donavan Pantke.
+
+2007-11-27 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/source_index.rb: Remove dependency on forwadable.
+ Patch by Koichi Sasada.
+ * lib/rubygems/specification.rb: Reduce dependency on time.rb. Patch
+ by Koichi Sasada.
+
+2007-11-26 Rich Kilmer <rich@infoether.com>
+
+ * lib/rubygems/version.rb: Fix bug 15948 with version bump
+ * test/test_gem_version.rb: Test for bug 15948 with version bump
+ * util/gem_prelude.rb: wrap init code with exception handler
+ and skip badly formed directory names
+
+2007-11-23 Rich Kilmer <rich@infoether.com>
+
+ * lib/rubygems.rb: Centralize all CONFIG options into Hash
+ Gem::ConfigMap with keys as symbols, change all references
+ to CONFIG to ConfigMap
+ * lib/rubygems/require_paths_builder.rb: Added to support
+ building .require_paths file
+ * lib/rubygems/installer.rb: Add building of .require_paths if
+ needed
+ * lib/rubygems/platform.rb: Use new ConfigMap hash for arch
+ * lib/rubygems
+ * util/gem_prelude.rb: new gem prelude for Ruby 1.9
+ * test/test_gem_installer.rb: change to use ConfigMap hash
+ * test/gemutilities.rb: change to use ConfigMap hash
+
+2007-11-21 Daniel Berger <djberg96@gmail.com>
+
+ * lib/rubygems/platform.rb: Gem::Platform.new now returns
+ Gem::Platform.local if the arch matches Gem::Platform::CURRENT.
+ Bugs #15815 and #15782 submitted by Daniel Berger.
+
+2007-11-20 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/platform.rb: Handle bare 'mswin32' platform's CPU.
+
+2007-11-19 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/rubygems_version.rb: 0.9.5.
+
+2007-11-16 Eric Hodel <drbrain@segment7.net>
+
+ * test/gemutilities: Add a legacy platform gem to the default test
+ gems list.
+ * lib/rubygems/specification.rb: Add Gem::Specification#original_name
+ for legacy purposes
+ * lib/rubygems/indexer.rb: Use #original_name to make the indexer
+ backwards compatible.
+ * lib/rubygems/master_index_builder.rb: Reduce memory consumption.
+
+2007-11-13 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/rubygems_version.rb: 0.9.4.7 beta.
+ * lib/rubygems.rb: Patch for RUBY_FRAMEWORK for OS X 10.5. Patch
+ submitted by Laurent Sansonetti.
+ * lib/rubygems.rb: cygwin, djgpp, mingw are Windows platforms. Fixes
+ bug #15537 by Roger Pack.
+
+2007-11-11 Eric Hodel <drbrain@segment7.net>
+
+ * Rakefile: Tasks for maintaining ruby trunk export of RubyGems.
+ * lib/rubygems/specification.rb: Preserve original platform across
+ serialization.
+ * lib/rubygems/dependency_installer.rb: Retry with original platform
+ name on fetch error.
+
+2007-11-09 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/specification.rb: Set #original_platform only once.
+ * lib/rubygems/indexer.rb: Handle legacy platforms.
+ * lib/rubygems/platform.rb: Gem::Platform is a valid argument. Bug
+ #15511 submitted by Daniel Berger.
+ * lib/rubygems/custom_require.rb: Fix compatibility with 1.8.2. Bug
+ #14933 submitted by Aaron Patterson.
+ * lib/rubygems/command.rb: Now '-V' enables verbose. Bug #14951
+ submitted by Sasa Ebach.
+ * lib/rubygems/commands/check_command.rb: Change use of '-v', '-V' to
+ match above.
+ * lib/rubygems/package.rb: #send! is gone again.
+ * lib/rubygems.rb: Don't add custom_require for 1.9.
+ * test/*: Make compatible with 1.9 import.
+
+2007-10-30 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/specification.rb: Don't re-use @platform to maintain
+ backwards compatibility.
+ * lib/rubygems/platform.rb: Handle nil and 'ruby' platforms in ::new.
+
+2007-10-20 Daniel Berger <djberg96@gmail.com>
+
+ * lib/rubygems/uninstaller.rb: Changed '.cmd' to '.bat' in the
+ remove_executables method for MS Windows. Patch from Luis Lavena.
+
+2007-10-18 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/rubygems_version.rb: 0.9.4.6 beta.
+
+2007-10-19 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/commands/update_command.rb: Don't install with
+ dependencies when updating. This is a hack.
+
+2007-10-19 Daniel Berger <djberg96@gmail.com>
+
+ * setup.rb: gem.cmd stub is now gem.cmd, and the stub generation was
+ changed - now better for NT. Patch #14725 (Luis Lavena).
+ * lib/rubygems/installer.rb: Same as for setup.rb.
+
+2007-10-18 Daniel Berger <djberg96@gmail.com>
+
+ * lib/rubygems/platform.rb: Modified the Platform.local method for MS
+ Windows for versions built with VC++ 6. Patch #14727 (Luis Lavena).
+ * test/test_gem_specification.rb: Added version independent tests for
+ MS Windows. Patch #14727 (Luis Lavena).
+
+2007-10-18 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/remote_fetcher.rb: Add platform to User-Agent.
+ * lib/rubygems/commands/install_command.rb: Fix typo. Debian bug
+ #443135 submitted by Reuben Thomas.
+ * lib/rubygems/dependency_installer.rb: Don't install dropped
+ dependencies. Fixes bug #14724 submitted by Luis Lavena.
+
+2007-10-17 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/commands/update_command.rb: Unset RUBYOPT when running
+ setup.rb
+ * setup.rb: Re-exec without RUBYOPT if it is set. Fixes bug #14683
+ submitted by Lyle Johnson.
+
+2007-10-16 Daniel Berger <djberg96@gmail.com>
+
+ * lib/rubygems/indexer/abstract_index_builder.rb: The compress method
+ now does a binary read to make MS Windows happy.
+
+2007-10-16 Eric Hodel <drbrain@segment7.net>
+
+ * setup.rb: Installs bin stubs that warn when you try to use the old
+ commands. Simple mswin deprecation stubs by Luis Lavena.
+
+2007-10-12 Eric Hodel <drbrain@segment7.net>
+
+ * setup.rb: Remove source caches on install.
+ * doc/release_notes/rel_0_9_5.rdoc: Draft added.
+ * lib/rubygems/rubygems_version.rb: 0.9.4.5 beta.
+
+2007-10-10 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/dependency_installer.rb: Fix small bug found by Alan C.
+ Francis.
+
+2007-10-09 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/dependency_installer.rb: Use install_dir so custom gem
+ repos can be used.
+ * lib/rubygems/specification.rb: Always set required attributes, even
+ if they match the default.
+
+2007-10-08 Ryan Davis <ryan@wrath.local>
+
+ * lib/rubygems.rb: Fixed require order so custom_require is
+ last. Added HACK tag to remind Jim to release rake.
+ * test/test_gem_source_index.rb: Fixed latest_specs' tests so
+ failures were much more readable.
+ * lib/rubygems/source_index.rb: Fixed latest_specs to deal with
+ platforms appropriately. Returns array again.
+
+2007-10-08 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/config_file.rb: Boost bulk_threshold to 1000, Marshal
+ format is smaller than yaml format quick index.
+ * lib/rubygems/installer.rb: Make #shebang correctly rewrite env
+ shebangs.
+ * lib/rubygems/specification.rb: Mark Time.today for removal, too much
+ depends upon it now.
+
+2007-10-07 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/specification.rb: Sped up ::_load.
+ * lib/rubygems/source_index.rb: Sped up #search.
+ * lib/rubygems/version.rb: Replace #to_ints with #ints, and cache
+ result.
+ * lib/rubygems/source_info_cache.rb: Only flush cache when it changes.
+
+2007-10-05 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/user_interaction.rb: Allow customization of completion
+ message for progress reporters.
+ * lib/rubygems/command.rb: Add --quiet option.
+ * lib/rubygems/commands/generate_index_command.rb: Add description.
+
+2007-10-04 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/uninstaller.rb: Also check and uninstall old platform
+ name to ensure legacy platform gems are uninstalled.
+ * lib/rubygems/doc_manager.rb: Remove existing rdoc and ri directory
+ so regenerating docs succeeds even if previously interrupted.
+
+2007-10-02 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/source_index.rb: Make #outdated search only for gems
+ matching the current platform.
+ * lib/rubygems/commands/dependency_command.rb: Add --platform.
+ * lib/rubygems/commands/outdated_command.rb: Ditto.
+ * lib/rubygems/commands/specification_command.rb: Ditto.
+ * lib/rubygems/commands/update_command.rb: Ditto.
+
+2007-10-02 Wilson Bilkovich <wilson@supremetyrant.com>
+
+ * lib/rubygems/specification.rb: Custom Marshal format to reduce index
+ size.
+ * lib/rubygems/requirement.rb: Ditto
+ * lib/rubygems/version.rb: Ditto
+
+2007-10-01 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/platform.rb: Handle mswin32 on VC6. Partial patch and
+ assistance by Luis Lavena. Handle cpu-os-version style platforms for
+ command-line arguments.
+
+2007-09-30 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/specification.rb: Gem::Specification is now
+ forward-compatible while loading.
+
+2007-09-29 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/source_info_cache_entry.rb: Correctly handle URIs.
+ * lib/rubygems/remote_fetcher.rb: ditto.
+ * lib/rubygems/remote_options.rb: Add --update-sources option. Patch
+ #14246 submitted by Alan Francis.
+ * lib/rubygems/config_file.rb: Add update_sources setting to control
+ automatic refreshing of sources (patch #14246). Fix bug where things
+ would be overwritten in ~/.gemrc when they shouldn't.
+
+2007-09-28 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/rubygems.rb: Gem.ruby now returns the full path. Added
+ Gem.prefix to make self updating work right.
+ * setup.rb, pre-install.rb, post-install.rb: Replace with a small,
+ simple setup script that works.
+ * lib/rubygems/commands/update_command.rb: Pass rdoc, ri and prefix
+ flags down to setup.rb when self updating.
+
+2007-09-26 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/version_option.rb: Always include RUBY platform,
+ allow RUBY platform as an option.
+ * lib/rubygems/specification.rb: Gems with non-ruby platform sort
+ last (first in preference for installation).
+ * lib/rubygems/platform.rb: Allow matching of legacy platforms.
+ * lib/rubygems/source_index.rb: Add only_platform option to #search.
+
+2007-09-24 Wilson Bilkovich <wilson@supremetyrant.com>
+ * lib/rubygems/indexer.rb: Generate a Marshal index in parallel to YAML
+ * lib/rubygems/source_index.rb: Fetch a Marshal index if it exists, to
+ avoid the memory cost of parsing a huge YAML file
+ * lib/rubygems/commands/mirror_command.rb: Check for Marshal first
+ * lib/rubygems/indexer/abstract_index_builder.rb: Index refactoring
+ * lib/rubygems/indexer/marshal_index_builder.rb: Build Marshal index
+ * lib/rubygems/indexer/master_index_builder.rb: Simplify YAML generation
+ * lib/rubygems/indexer/quick_index_builder.rb: Build Marshal quickindex
+ * lib/rubygems/server.rb: Serve up Marshal index as well as YAML
+ * lib/rubygems/source_info_cache_entry.rb: Expect a Marshal index
+
+2007-09-23 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/commands/fetch_command.rb: `gem fetch` downloads a gem
+ to the current directory. Feature request #10752 by Bret Pettichord.
+ * lib/rubygems/commands/local_remote_options.rb, etc.: Fix spelling of
+ 'threshold'.
+ * lib/rubygems/installer.rb: Revert feature request #8818, it
+ interferes with `ruby -S` and multiple versions of ruby (1.8 and 1.9).
+ * lib/rubygems/dependency_installer.rb: Fix a bug where the wrong
+ platform gem would be installed.
+ * lib/rubygems/version_option.rb: Add --platform.
+ * lib/rubygems/install_update_options.rb: Verify --security-policy.
+ * lib/rubygems/local_remote_options.rb: Verify --source, --http-proxy.
+
+2007-09-22 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/open-uri.rb: Don't document our OpenURI.
+ * lib/rubygems/commands/generate_index_command.rb: Fix Indexer class
+ change.
+ * lib/rubygems/commands/mirror_command.rb: Fix for 1.9.
+ * lib/rubygems/commands/pristine_command.rb: Have `gem pristine`
+ give a better report of what it accomplished.
+ * lib/rubygems/command.rb: Add optional description field.
+ * lib/rubygems/installer.rb: Hack around broken Pathname#absolute? on
+ windows. Patch #14139 by Jim Hughes.
+
+2007-09-20 Eric Hodel <drbrain@segment7.net>
+
+ * misc files: Tests pass on 1.9.
+ * test/gemutilities.rb: Added Object#send! stub for 1.8.
+ * test/test_open_uri.rb: Require gem_open_uri.rb to avoid warnings.
+ * lib/rubygems/commands/sources_command.rb: Clarify `gem sources -c`
+ and what `gem sources` does. Patch by Hugh Sasse.
+
+2007-09-19 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/platform.rb: Make Gem::Platform a class.
+ * lib/rubygems/specification.rb: Gem::Specification#validate returns
+ true, non-Gem::Platform platforms are no longer allowed.
+ * test/gemutilities.rb: 1.9 compatiblity fixes.
+ * lib/rubygems/dependency_installer.rb: Work around a bug in URI.parse
+ which misinterprets "C:/". Patch #13537 submitted by Daniel Berger.
+ * lib/rubygems/format.rb: Ensure file handles are closed. Patch
+ #13533 submitted by Daniel Berger.
+ * test/test_gem_installer.rb: Win32 path fix. Patch #13528 submitted
+ by Daniel Berger.
+ * test/gemutilities.rb: Make the platform be a win32 platform on
+ win32. Fixes confusion in generate_bin_symlink tests. Patch #13529
+ submitted by Daniel Berger.
+ * test/test_gem_specification.rb: Sequel to above. Patch
+ #13535 submitted by Daniel Berger.
+ * lib/rubygems/source_index.rb: Make the updating cache message more
+ clear. Patch #12778 submitted by Bil Kleb.
+ * lib/rubygems/server.rb: Allow gem's rdoc-style.css to be used.
+ Patch #13589 by Stephen Bannasch.
+ * lib/rubygems/indexer.rb: Fail on missing builder gem only when
+ trying to use the indexer. Fixes bug #13939 by Bryan Stearns.
+ * lib/rubygems/indexer/indexer.rb: Move Indexer up one level in
+ nesting.
+ * lib/rubygems/indexer/compressor.rb: Only used in
+ Gem::Indexer::AbstractIndexBuilder subclasses, merged there.
+ * lib/rubygems/command_aids.rb: Merged Gem::CommandAids into
+ Gem::Command since that's the only place it gets used.
+ * misc other files: mswin fixes. Paired with Daniel Berger.
+
+2007-08-24 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/specification.rb: Fix #full_name for versionless
+ platforms.
+ * lib/rubygems/command_manager.rb: We're only looking for NameError.
+ * lib/rubygems/command.rb: 1.9 fix.
+ * lib/rubygems/format.rb: ditto.
+ * lib/rubygems/installer.rb: ditto.
+
+2007-08-24 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/rubygems_version.rb: 0.9.4.4
+
+2007-08-23 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/platform.rb: Add HPUX, AIX and NetBSD. Thanks to
+ Daniel Berger, Yutaka KANEMOTO and Andre Nathan respectively.
+ * lib/rubygems/installer.rb: Move all option setting to #initialize to
+ make `gem pristine` work again.
+ * lib/rubygems/commands/environment_command.rb: Include platforms.
+ * lib/rubygems/dependency_installer.rb: Support local non-root
+ installation.
+
+2007-08-22 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/dependency_installer.rb: Don't reinstall dependencies
+ existing in the install dir. Don't install dependencies for older
+ versions of the gem we're installing. #installed_gems now contains
+ loaded gemspecs. Always prefer local gems. Handle globs correctly.
+ All deps are now installed into the install_dir.
+ * lib/rubygems/commands/install_command.rb: Switch to
+ Gem::DependencyInstaller. Warn when -y is given, it will be removed.
+ Try our best to install everything the user asked.
+ * lib/rubygems.rb: Gem.bindir now handles Pathname correctly.
+ * lib/rubygems/remote_fetcher.rb: Don't downcase anymore.
+
+2007-08-21 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/dependency_installer.rb: Add installation from local
+ gems. Install gems in the correct order. Handle -E, -f,
+ --ignore-dependencies, -i, -r, -l, -b, -P, -w, -v options for `gem
+ install`
+ * test/gemutilities.rb: Work around OS X /private/tmp.
+ * lib/rubygems/platform.rb: Switch to using arch instead of target_*
+ for JRuby compatibility. Thanks to Nick Sieger.
+
+2007-08-20 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/dependency_installer.rb: Add working but unfinished
+ Gem::DependencyInstaller.
+ * lib/rubygems/source_info_cache.rb: Add #search_with_source.
+ * lib/rubygems/dependency_list.rb: Move #fill_dependencies to
+ Gem::DependencyInstaller
+ * lib/rubygems/platform.rb: Split from specification.rb. Add methods
+ to recognize platforms from Config::CONFIG.
+ * lib/rubygems.rb: Add Gem::platforms.
+ * lib/rubygems/specification.rb: Disallow String platforms.
+
+2007-08-18 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/source_info_cache.rb: Search by Gem::Dependenency.
+ * lib/rubygems/source_index: Search by Gem::Dependenency.
+ * lib/rubygems/version.rb: Version can be String or Integer.
+ Gem::Requirement::default is now >= 0. Gem::Requirement can be built
+ from a Gem::Dependency.
+ * lib/rubygems/dependency_list.rb: Uses TSort now. Add
+ Gem::DependencyList#fill_dependencies.
+ * lib/rubygems/server.rb: Support quick index.
+
+2007-08-17 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/dependency_list.rb: For diamond dependencies with
+ different versions on the bottom of the diamond, trim all but the
+ latest dependency. This will prevent gems like hoe from being
+ installed multiple times.
+
+2007-08-15 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/installer.rb: Support building mkrf extensions. Fixes
+ bug #11313. Patch by Jeremy Hinegardner.
+ * lib/rubygems/installer.rb: Ensure bin files are executable. Fixes
+ bug #8985 submitted by Ara Howard.
+ * lib/rubygems/installer.rb: Insert installing gem home dir into bin
+ wrapper. Patch #8818 by Ara Howard.
+
+2007-08-13 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/commands/uninstall_command.rb: Gems with version of 0
+ can now be uninstalled.
+
+2007-08-11 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/config_file.rb: Command-line args override ~/.gemrc
+ now. Gem.sources is pulled from ~/.gemrc now. Gem::ConfigFile can
+ write itself out now.
+ * lib/rubygems/commands/sources_command.rb: Now writes out
+ Gem.configuration on changes. No longer checks source cache on
+ --list.
+
+2007-08-09 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/source_info_cache.rb: Make Gem::SourceInfoCache#search
+ only search gems in Gem.sources.
+ * lib/rubygems.rb: Make Gem::configuration a real Gem::ConfigFile
+ object.
+ * lib/rubygems/commands/query_command.rb: Fix `gem query --details`.
+ Add `gem query --no-versions`.
+ * lib/rubygems/local_remote_options.rb: Make `gem mumble --source URL`
+ only use that source.
+ * lib/rubygems/config_file.rb: Fix Gem::ConfigFile#[]= to match
+ Gem::ConfigFile#[].
+
+2007-08-08 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/commands/specification_command.rb: Match only exact gem
+ names. Fixes bug #9681. Patch by Michael DeCandia.
+ * lib/rubygems/commands/unpack_command.rb: Match only exact gem names.
+ Fixes bug #9681. Patch by Michael DeCandia.
+ * lib/rubygems/commands/contents_command.rb: Match only exact gem
+ names. Fixes bug #9681. Patch by Michael DeCandia
+ * lib/rubygems/remote_fetcher.rb: Perform a GET request if the HEAD
+ request doesn't have Content-Length. Fixes bug #9771. Patch by Ben
+ Bleything.
+ * lib/rubygems.rb: Clear Gem::searcher when we Gem::clear_paths.
+ Fixes bug #12886. Submitted by Peter Williams.
+ * lib/rubygems.rb: Add #default_sources and rework #sources to use it.
+ * post-install.rb: No longer runs install_sources.
+ * pkgs/sources: Updated to something what a 0.0.2 would look like, if
+ we ever make one.
+
+2007-08-02 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/gem_commands.rb: Removed and broken up into individual
+ files.
+ * lib/rubygems/command_manager.rb: Lazily loads gem commands. Now to
+ use CommandManager just "require 'rubygems/command_manager'" and
+ everything will be there.
+
+2007-08-01 Eric Hodel <drbrain@segment7.net>
+
+ * lib/*, test/*: Pushed down dependencies as far as reasonable.
+ Removed Gem::manage_gems. Now only 14 files are loaded with "require
+ 'rubygems'". Added tests for `gem build` and `gem cert`.
+ * lib/rubygems/extensions.rb: Added common place for all extensions.
+
+2007-07-26 Eric Hodel <drbrain@segment7.net>
+
+ * test/test_gem_ext_configure_builder.rb: Linux has different behavior
+ for `sh ./configure` when configure is missing. Fix adapted from
+ Patch #10019 by Donavan Pantke.
+ * lib/rubygems/commands/pristine_command.rb: Compare fully-qualified
+ paths. Fixes bug #7976 by Lyle Johnson.
+ * lib/rubygems/config_file.rb: Add ConfigFile#[]=, so --proxy
+ command-line option works. Fixes #8152 by Justin Sabelkko.
+ * lib/rubygems/post-install.rb: Make sure we use the
+ latest-and-greatest RubyGems when running post-install.rb. Fixes Bug
+ #8411 by Duy Nguyen.
+ * lib/rubygems/remote_fetcher.rb: An empty HTTP_PROXY means no proxy.
+ Fixes Bug #9042 by Michael Brodhead.
+ * lib/rubygems/version.rb: Disallow newlines in version string. Strip
+ spaces from version string. Fixes Bug #9499 by Bryce Kerley.
+ * lib/rubygems/commands/sources_command.rb: Fix spelling error. Fixes
+ Bug #11064 by Chris Eskow.
+
+2007-07-25 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/indexer.rb: Create the index in /tmp, then move it into
+ place when we're done. This will prevent spurious bulk index updates
+ from occurring while the quick index is missing. Remove the option to
+ not build the quick index.
+ * lib/rubygems/commands/generate_index_command.rb: --no-quick is gone.
+ * lib/rubygems/user_interaction.rb: If stdin is not a tty, it is
+ unlikely that gem is going to get a response when asking a question.
+ Patch #10660 by Paul Brannan.
+ * lib/rubygems/validator.rb: Output test failures when using install
+ -t. Patch #10659 by Paul Brannan.
+ * lib/rubygems/custom_require.rb (Kernel#require): Only rescue a
+ LoadError that matches the file we are requiring. Patch #10723 by
+ Tyler Rick.
+ * lib/rubygems/remote_fetcher.rb: Support HTTP basic authentication.
+ Patch #8121 by Max Dunn.
+ * lib/rubygems/commands/install_command.rb: Don't raise an error when
+ a gem has no tests. Patch #11824 by Katsuyuki MIYAMUKO.
+
+2007-07-23 Eric Hodel <drbrain@segment7.net>
+
+ * lib/commands/contents_command.rb: Add --lib-only option, remove
+ useless --list option. Feature request #9498 by Martin DeMello.
+ * lib/rubygems/specification.rb: Restrict to only files in
+ #require_paths. Add #required_rubygems_version. Feature request
+ #7780 by Eric Hodel.
+ * lib/rubygems/commands/dependency_command.rb: Display dependencies for
+ remote gems. Feature request #12133 by Eric Hodel. -r for reverse
+ dependencies is now -R.
+ * lib/rubygems/commands/specification_command.rb: Display
+ specifications for remote gems. Feature request #12133 by Eric Hodel.
+ * lib/rubygems/installer.rb (Gem::Installer#install): Check
+ required_rubygems_version.
+ * lib/rubygems/user_interaction.rb
+ (Gem::UserInteraction#choose_from_list): Check result for EOF. Fixes
+ bug #8018. Patch by Jos Backus.
+ * post-install.rb: Install using absolute path. Fixes bug #10675.
+ Patch by Jeremy Burks.
+ * lib/rubygems/commands/environment_command.rb: Add RUBY VERSION to
+ environment output.
+ * lib/rubygems/command.rb: Don't worry about duplicated command-line
+ options, OptionParser takes care of them for us.
+
+2007-07-22 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/specification.rb (Gem::Specification#files): Make it
+ faster
+ * lib/rubygems/command.rb: Better documentation. -v flag now lets you
+ get to "really verbose" mode which makes the verbose progress meter
+ work. Add command groups to separate types of commands easily.
+ * lib/rubygems/commands/which_command.rb, bin/gemwhich: Move `gemwhich`
+ under `gem`.
+ * lib/rubygems/commands/mirror_command.rb, bin/gem_mirror: Move
+ `gem_mirror` under `gem`.
+ * lib/rubygems/commands/lock_command.rb, bin/gemlock: Move `gemlock`
+ under `gem`.
+ * lib/rubygems/commands/server_command.rb, bin/gem_server: Move
+ `gem_server` under `gem`.
+ * lib/rubygems/doc_manager.rb (Gem::DocManager#initialize): Only raise
+ when operating on the filesystem.
+ * lib/rubygems/server.rb: Remove option processing, now in
+ Gem::Commands::ServerCommand.
+ * lib/rubygems/commands/generate_index.rb, bin/index_gem_repository.rb:
+ Move `index_gem_repository.rb` to `gem generate_index`.
+ * lib/rubygems/indexer (Gem::Indexer): Extract from
+ index_gem_repository.rb and merge RubyForge changes.
+ * lib/rubygems/command_manager.rb (Gem::CommandManager#run): Print
+ backtrace when --debug is set too.
+ * lib/rubygems/command_manager.rb (Gem::CommandManager#load_and_instantiate):
+ Don't infinitely loop in retry.
+ * bin/gemri: Removed. Everybody should have ri integration now.
+ * lib/rubygems/config_file.rb: Allow settings to be examined. Pull
+ settings from .gemrc.
+ * lib/rubygems/commands/environment_command.rb: Add ruby executable
+ and configuration settings to `gem env`.
+ * lib/rubygems/indexer/indexer.rb (Gem::Indexer::Indexer#build_index):
+ Now uses UserInteraction.
+ * various: Use UserInteraction for output.
+ * lib/gemconfigure.rb: Removed. Same as multiple gem commands.
+ * lib/rubygems/commands/contents_command.rb: Removed extra --verbose
+ option.
+ * lib/rubygems/gem_commands.rb (Gem::LocalRemoteOptions): Moved -B,
+ --source, -p from Gem::Commands::common_options.
+
+2007-07-22 Chad Fowler <chad@chadfowler.com>
+
+ * lib/rubygems/gem_commands.rb: Added another example to the gem
+ example output (Gile Bowkett)
+ * test/test_documentation_generation.rb, lib/rubygems/doc_manager.rb:
+ Added a test for documentation generation and fixed a bug when doc
+ location is not writable.
+
+2007-06-16 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/gem_path_searcher.rb (Gem::GemPathSearcher): Moved out
+ of lib/rubygems/custom_require.rb and added tests.
+
+2007-06-02 Jim Weirich <jim@weirichhouse.org>
+
+ * lib/rubygems/source_info_cache.rb (Gem::try_file): Fix for issue
+ where a non-existing source cache file causes the gem command to
+ not find a gem. This fixes it by marshalling out an empty
+ hash. (Thanks to Nick Sieger for this fix).
+
+2007-06-01 Jim Weirich <jim@weirichhouse.org>
+
+ * lib/rubygems.rb
+ (Gem::OperationNotSupportedError::latest_partials): Changed from
+ match data style to $1 style regexp (on the recommendation of
+ better performance).
+
+2007-05-30 Jim Weirich <jim@weirichhouse.org>
+
+ * lib/rubygems/source_index.rb (Gem::SourceIndex::update):
+ Modified to get the bulk_threshhold from the configuration.
+ (Gem::SourceIndex::convert_specs): Ryan removed the "reduce_specs"
+ method because it is not needed any more and is creating memory
+ overhead.
+
+ * lib/rubygems/config_file.rb (Gem::ConfigFile): Added
+ bulk_threshhold field to ConfigFile.
+ (Gem::ConfigFile::initialize): Initialize bulk threshhold to 500.
+
+ * lib/rubygems/command.rb
+ (Gem::Command::specific_extra_args_hash): Added
+ -B (--bulk-threshhold) option to allow user specified bulk
+ download threshhold.
+
+2007-05-23 Jim Weirich <jim@weirichhouse.org>
+
+ * lib/rubygems/commands/sources_command.rb
+ (Gem::Commands::SourcesCommand::initialize): Added a --clear-all
+ option to the sources subcommand. Clear-all will remove the cache
+ files.
+
+ * lib/rubygems/source_info_cache.rb (Gem): Moved system_cache_file
+ and user_cache_file to class methods so that we can get the file
+ names without creating a SourceInfoCache instance.
+
+2007-05-23 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/source_info_cache.rb: Teach SIC to repair itself
+ when it encounters a bad cache file.
+
+2007-05-14 Chad Fowler <chad@chadfowler.com>
+ * lib/rubygems/command_manager.rb: Re-added registration for
+ gem cleanup command which I accidentally removed during refactoring.
+
+2007-05-10 Jim Weirich <jim@weirichhouse.org>
+
+ * lib/rubygems/remote_installer.rb: Uncommented the require
+ 'sources' line.
+
+ * lib/rubygems/source_info_cache.rb: Uncommented the require
+ 'sources' line.
+
+ * lib/rubygems/rubygems_version.rb (Gem): Bumped to version 0.9.3
+ in preparation for release.
+
+ * lib/rubygems/package.rb (Gem::TarInput::zipped_stream):
+ Zipped_stream now always uses the in memory string IO buffer.
+ There were just too many problems with ZLib (on windows)
+ otherwise.
+
+2007-03-26 Jim Weirich <jim@weirichhouse.org>
+
+ * (Index): new digest technique.
+
+ * lib/rubygems/validator.rb (Gem::Validator::verify_gem): Removed
+ really old MD5 and replaced with gem based digests.
+
+ * experimental/deployment.rb (Gem::Deployment::Manager::initialize):
+ New digest technique.
+
+ * experimental/test_deployment.rb (TestDeployment::test_deployed_file):
+ New digest technique.
+
+2007-03-26 Chad Fowler <chad@chadfowler.com>
+
+ * Extracted the big ball of mud that was gem_commands.rb into
+ separate files.
+
+2007-03-17 Chad Fowler <chad@chadfowler.com>
+
+ * Various ruby 1.8.6 fixes for failing tests.
+
+ * Updated setup.rb to 3.4.1
+
+ * Renamed cmd_manager to command_manager to keep names consistent
+
+ * lib/installer.rb: Rework path checking to use Pathname (ara howard bug #8811)
+
+2007-03-02 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems.rb: Add bin directory before library directory,
+ otherwise gems like rake don't work.
+
+2007-03-01 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/open-uri.rb: Fix all the infinite loop errors.
+
+ * lib/rubygems.rb: Add dirs from activate after -I and ENV['RUBYLIB']
+ dirs. Otherwise gems won't allow -I to work when #gem is called.
+
+2007-02-11 Chad Fowler <chad@chadfowler.com>
+
+ * test/gemutilities.rb: Fix to make Windows tests pass. (Anatol Pomozov)
+
+2007-02-05 Jim Weirich <jim@weirichhouse.org>
+
+ * lib/rubygems/rubygems_version.rb (Gem): Bumped to version 0.9.2
+ and made a release.
+
+2007-02-04 Chad Fowler <chad@chadfowler.com>
+
+ * Fixed failing tests (changed from assert_equal to assert_match to
+ deal with ARGV inconsistencies in test vs. production).
+
+2007-02-03 Jim Weirich <jim@weirichhouse.org>
+
+ * Bumped version to 0.9.1.1.
+
+ * lib/rubygems/gem_open_uri.rb: Added the patched open-uri back
+ into the gems software. Evidently, the 1.8 version of open-uri
+ does not handle authenticating proxies with username and password.
+
+ * lib/rubygems/source_info_cache.rb (Gem::cache_data): Added
+ rescue block to capture bad file loads. The original rescue was
+ only around the marshal load (bug was probably introduced when the
+ file data was preloaded into a string).
+ (Gem::set_cache_data): Added set_cache_data to be used during
+ testing to avoid reload the cache file over and over.
+
+ * lib/rubygems/gem_commands.rb: Added require for command class so
+ that this file can be loaded independently.
+
+ * lib/rubygems/source_index.rb (Gem::SourceIndex::outdated): Minor
+ cleanup.
+
+ * test/gemutilities.rb
+ (RubyGemTestCase::util_setup_source_info_cache): Minor cleanup
+
+ * test/test_gem_source_info_cache.rb
+ (TestGemSourceInfoCache::test_write_cache_user): Switched to using
+ set_cache_data here and several other places to avoid rereading
+ the cache data over and over again.
+
+2007-02-02 Chad Fowler <chad@chadfowler.com>
+
+ * lib/rubygems/gem_commands.rb:
+ Fixed gem unpack (broken since 0.9.1)
+
+2007-01-20 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/source_info_cache.rb (Gem::SourceInfoCache#cache_data):
+ Read the source_cache in binary mode for mswin.
+
+2007-01-16 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/rubygems_version.rb (Gem): Released 0.9.1.
+
+2007-01-15 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/installer.rb (Gem::Installer#extract_files): Only allow
+ installation to absolute directories. (Call File::expand_path first).
+ More informative message for attempting to install with bad path.
+ * post-install.rb: Install sources first, since its rather important.
+
+2007-01-14 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/source_info_cache.rb: require 'fileutils', as its
+ needed.
+
+2007-01-12 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/installer.rb (Gem::Installer#extract_files): Don't
+ allow gems to place files outside the installation directory. Fixes
+ bug 7751 by Gavin Sinclair.
+
+2007-01-08 Jim Weirich <jim@weirichhouse.org>
+
+ * lib/rubygems/specification.rb
+ (Gem::Specification::test_suite_file): Added rescue clause for
+ default_executable.
+ (Gem::Specification::add_bindir): Added rescue clause for
+ add_bindir.
+
+ * test/test_specification.rb
+ (TestSpecification::test_pathologically_bad_non_array_stuff_doesnt_goof_up_files):
+ Added a sanity check on hash for some pathologically bad case.
+ (TestSpecification::test_pathologically_bad_exectuables_doesnt_goof_up_hash):
+ Added sanity check for pathologically bad executables field.
+
+2007-01-08 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/gem_commands.rb (Gem::PristineCommand#execute): Better
+ messaging.
+ * lib/rubygems.rb, lib/rubygems/custom_require.rb: Correctly include
+ documentation for methods added to Kernel.
+
+2007-01-07 Eric Hodel <drbrain@segment7.net>
+
+ * Rakefile: Include GPL.txt. Fixes bug #7572 by David Lee.
+
+2007-01-06 Jim Weirich <jim@weirichhouse.org>
+
+ * lib/rubygems/rubygems_version.rb (Gem): Bumped to version
+ 0.9.0.9.
+
+ * lib/rubygems/specification.rb
+ (Gem::Specification::test_suite_file): Rewrote default_executable
+ to be a bit more explicit.
+ (Gem::Specification::add_bindir): Rewrote the 'files' accessor to
+ handle pathologically bad input.
+ (Gem::Specification::copy_of): Added as_array private method.
+
+ * Rakefile (package_version): Added '*.out' to clobber list.
+ Removed the broken-1.0.0.gem file from the clobber list.
+
+ * test/test_specification.rb
+ (TestSpecification::test_default_executable):
+ Seriously beefed up tests for certain specification issues.
+
+ * test/gemenvironment.rb (TestEnvironment::create): Added the 'f'
+ flag to deleting 'gemhome'.
+
+2006-12-30 Eric Hodel <drbrain@segment7.net>
+
+ * post-install.rb, lib/rubygems/server.rb: RubyGems now installs RDoc
+ and ri for itself.
+
+2006-12-28 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/installer.rb (Gem::Installer#build_extensions):
+ Extension build failures now raise Gem::Installer::ExtensionBuildErrors.
+
+2006-12-26 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/package.rb (Gem::Package::TarInput#initialize): Bad
+ packages now raise FormatError instead of a generic RuntimeError.
+ * lib/rubygems/installer.rb (Gem::Installer#install): Raise an
+ InstallError when we have a bad gem file.
+
+2006-12-25 Jim Weirich <jim@weirichhouse.org>
+
+ * lib/rubygems/custom_require.rb (Gem::GemPathSearcher::find):
+ Removed SUFFIX_PATTERN. Evidently this was miss during an earlier
+ attempt to remove it.
+ (Gem::GemPathSearcher::matching_file): Changed reference to
+ SUFFIX_PATTERN into a call to Gem.suffix_pattern.
+
+ * Removed tab characters from numerous source files.
+
+ * lib/rubygems/installer.rb (Gem::Uninstaller::uninstall): Removed
+ stray tab characters.
+
+ * lib/rubygems.rb (Kernel::require_gem): Added file and line
+ number information to require_gem worning (makes it easier to
+ track down those offending lines of code).
+ (Kernel::location_of_caller): Added helper function to determine
+ file and line number of caller.
+
+2006-12-25 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/installer.rb (Gem::Installer#app_script_text):
+ Simpler, more readable bin script.
+ * lib/rubygems/gem_commands.rb (Gem::PristineCommand#execute):
+ Regenerate bin scripts. This will clean up require_gem in scripts.
+
+2006-12-24 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/remote_fetcher.rb (Gem::RemoteFetcher#fetch_path):
+ Rescue various errors and return a more-friendly error.
+
+2006-12-23 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/command.rb lib/rubygems/gem_commands.rb: Make help
+ output fit in 80 columns.
+ * lib/rubygems/rubygems_version.rb: Bump version to 0.9.0.8, beta
+ time! (Oops, didn't go into beta.)
+
+2006-12-20 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/remote_fetcher.rb (Gem::RemoteFetcher#fetch_size): Give
+ a sensible error on bad URIs.
+ * lib/rubygems/gem_commands.rb (Gem::SourceCommand): Allow management
+ of sources in source_cache. Fixes bug #1128.
+ * lib/rubygems.rb (Kernel#require_gem): Add deprecation warning in
+ favor of gem.
+
+2006-12-19 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/installer.rb (Gem::ExtBuilder): Refactored for
+ uniformity.
+ * lib/rubygems/remote_installer.rb
+ (Gem::RemoteInstaller#specs_n_sources_matching): Don't display gems
+ that can't be installed.
+ * lib/rubygems.rb, pre-install.rb: Fix installation errors on 1.9.
+ Fixes bug #4536 by Ryan Davis.
+ * lib/rubygems/source_index.rb, lib/rubygems/gem_commands.rb,
+ lib/rubygems-custom_require.rb: Use File.join with glob strings.
+ Fixes bug #1096 submitted by Chad Fowler.
+ * lib/rubygems/remote_installer.rb
+ (Gem::RemoteInstaller#install_dependencies): Make --force actually
+ force. Fixes bug #7365 by Robert James.
+
+2006-12-18 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/gem_commands (Gem::OutdatedCommand): Add a way to see
+ which gems are out-of-date.
+
+ * setup.rb: Ignore errors for .config and InstalledFiles when
+ the source path is read-only/NFS. Fixes bugs #1395 and #1374. Patch
+ by Ryan Davis.
+
+ * bin/gem_server: Pull code out into lib/rubygems/server.rb for
+ reusability. Closes Feature Request #2220 by Chris Morris.
+
+2006-12-16 Chad Fowler <chad@chadfowler.com>
+
+ * test/: Added functional test for extension gems proving that
+ non-compiling extensions don't result in success message.
+
+ * lib/rubygems/specification.rb: Raise exception if loaded spec is
+ nil. Closes bug #7299.
+
+ * test/gemenvironment.rb: Clean out gemhome every time to avoid dirty
+ directory failing tests.
+
+ * lib/rubygems/installer.rb: Change uninstall to require a full gem
+ name (not a partial match). Fixes bug #6007 and related unreported
+ issues.
+
+2006-12-15 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/installer.rb (Gem::Uninstaller): Correctly uninstall
+ executables if GEM_HOME is set. Patch #2264 by Sylvain Joyeux.
+
+ * lib/rubygems.rb (Gem::loaded_specs): Expose list of currently loaded
+ gems.
+
+ * lib/rubygems/gem_commands (Gem::UninstallCommand): Allow multiple
+ gems to be uninstalled at once.
+
+2006-12-14 Eric Hodel <drbrain@segment7.net>
+
+ * post-install.rb: Don't attempt to read unreadable files. Fixes
+ bug #2851.
+
+2006-12-13 Eric Hodel <drbrain@segment7.net>
+
+ * pre-install.rb.rb, post-install.rb: Don't call manage_gems because
+ we don't have sources installed yet. Bump version requirement to
+ 1.8.2 since rubygems/open-uri.rb was removed. Should fix bug #6206.
+
+ * lib/rubygems/installer.rb (Gem::Installer#build_extensions): Capture
+ stderr into results when building extensions.
+
+ * lib/rubygems/gem_commands.rb (Gem::ContentsCommand): Allow version
+ to be passed to gem contents. Not backwards compatible, -v now -V and
+ vice versa. Select newest gem for contents. Fixes bugs #2723, #7225.
+ Patches by Sava Chankov, Tom Pollard.
+
+ * lib/rubygems/gem_commands.rb (Gem::InstallCommand#execute): Allow
+ install errors to result in non-zero exit code. Fixes bug #2773.
+
+2006-12-03 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/remote_installer.rb (Gem::RemoteInstaller#install):
+ Add :cache_dir option to override the default.
+
+ * lib/rubygems/remote_installer.rb (Gem::RemoteInstaller#download_gem):
+ Check cache to see if the gem has been cached before downloading.
+
+2006-12-02 Jim Weirich <jim@weirichhouse.org>
+
+ * lib/rubygems.rb (Gem::OperationNotSupportedError::suffixes,
+ Gem::OperationNotSupportedError::suffix_pattern): Removed
+ duplicate copies of the SUFFIX_PATTERN by providing a global
+ method Gem.suffixes and Gem.suffix_pattern.
+
+ * lib/rubygems/remote_fetcher.rb (Gem::open_uri_or_path): Reworked
+ the connection options for the open-uri call. Since we are not
+ using the rubygems supplied open_uri, we can use some new options
+ available that make proxy handling much easier.
+ (Gem::file_uri): Renamed is_file_uri to file_uri?.
+
+ * lib/rubygems/loadpath_manager.rb (Gem::LoadPathManager::self):
+ Added .jar to list of suffixes.
+
+ * test/functional.rb (FunctionalTest::test_env_remotesources):
+ Changed test to uses Gem.sources (the sources method on
+ remote_fetcher was removed).
+
+ * test/test_remote_fetcher.rb (TestRemoteFetcher): Renamed some of
+ the test constants and instance variables so that they were more
+ consistent and explained the tests a wee bit better.
+ (TestRemoteFetcher::test_no_proxy): Added assert_data_from_server
+ and assert_data_from_proxy to make it clear what the test was
+ doing and give better error messages on errors.
+ (TestRemoteFetcher::assert_data_from_server): Added
+ assert_data_from_server.
+ (TestRemoteFetcher::assert_data_from_proxy): Added
+ assert_data_from_proxy.
+
+2006-11-30 Chad Fowler <chad@chadfowler.com>
+
+ * lib/rubygems/open-uri.rb: Removed the duplicated library.
+
+2006-11-30 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/specification (Gem::Specification#eql?): Allow gemspecs
+ to be used intelligently with Array#- and Array#uniq.
+
+ * lib/rubygems/installer.rb: Return extension-building results in
+ Exception on build failure.
+
+ * lib/rubygems/remote_installer.rb: Ensure gems with similar names
+ cannot be matched for install. (Broken when searching was removed
+ from RemoteInstaller.)
+
+2006-11-29 Eric Hodel <drbrain@segment7.net>
+
+ * post-install.rb: Now requires rbconfig.
+
+ * lib/rubygems/specification.rb, lib/rubygems/version.rb: Fixed many
+ ivar warnings due to YAML specs.
+
+ * lib/rubygems/validator.rb, lib/rubygems/validator.rb
+ (Gem::Validator#unit_test Gem::RemoteInstaller::): Ensure the
+ current directory is restored.
+
+ * lib/rubygems/remote_fetcher.rb, lib/rubygems/remote_installer.rb,
+ lib/rubygems/installer.rb: Raise more-friendly and less-deadly errors.
+
+ * lib/rubygems/remote_installer.rb (Gem::RemoteInstaller#install):
+ Create version requirement correctly.
+
+ * lib/rubygems/remote_installer.rb
+ (Gem::RemoteInstaller#find_gem_to_install): Allow RemoteInstaller to
+ work with SilentUI.
+
+ * lib/rubygems/remote_fetcher.rb (RemoteFetcher#open_uri_or_path):
+ Don't double-require open-uri.
+
+2006-11-27 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/specification.rb
+ (Gem::Specification#default_executable): Fixed bug where @executables
+ could be nil when loaded from index.
+
+2006-11-21 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/source_index.rb (Gem::SourceIndex#latest_specs): Grab
+ the latest versions of everything in the index. Written by Ryan
+ Davis.
+
+2006-11-20 Rich Kilmer <rich@infoether.com>
+
+ * lib/rubygems/cmd_manager.rb: Added PristineCommand
+
+ * lib/rubygems/gem_commands.rb: Added PristineCommand to restore
+ gems to pristine condition in the event of files begin deleted
+ based on the cached .gem file
+
+2006-11-19 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/*_fetcher.rb: Removed code specific to remote source
+ index updating.
+
+ * lib/rubygems/remote_installer.rb (Gem::RemoteInstaller#search):
+ Moved to Gem::SourceInfoCache#search
+
+ * lib/rubygems/source_info_cache.rb: Taught to update itself
+
+ * lib/rubygems/source_info_cache_entry.rb: Taught to update itself
+
+ * lib/rubygems/source_index.rb: Taught to update itself from a uri.
+
+2006-11-18 Chad Fowler <chad@chadfowler.com>
+
+ * lib/rubygems/installer.rb: Applied Kevin Clark's patch to make
+ RubyGems recognize mkrf files.
+
+2006-11-17 Eric Hodel <drbrain@segment7.net>
+
+ * test/test_remote_fetcher.rb: Don't allow files in Dir.pwd to make
+ tests fail. Spotted by Chad Fowler.
+
+ * lib/rubygems/remote_installer.rb (Gem::RemoteFetcher,
+ Gem::CacheFetcher): Break out of remote_installer.rb into separate
+ files.
+
+ * lib/rubygems/remote_installer.rb (Gem::SourceInfoCache,
+ Gem::SourceInfoCacheEntry): Allow requiring just the source cache
+ without the remote fetcher.
+
+2006-11-16 Eric Hodel <drbrain@segment7.net>
+
+ * test/test_local_cache.rb: Moved to better name
+
+ * test/test_gem_source_info_cache.rb: Renamed test methods to match
+ implementations. Sorted test names.
+
+ * lib/rubygems/remote_installer (Gem::SourceInfoCache): cache_data no
+ longer resets dirty flag. Sped up source cache loading. Exposed
+ cache file name in use.
+
+2006-11-15 Eric Hodel <drbrain@segment7.net>
+
+ * test/, lib/: Made files -w clean.
+
+ * test/: Made tests run independently.
+
+ * Rakefile: Tests now run with warnings on.
+
+2006-11-14 Eric Hodel <drbrain@segment7.net>
+
+ * lib/rubygems/user_interaction.rb (Gem::StreamUI#progress_reporter):
+ Fix for Gem.configuration.verbose = nil, false
+
+ * lib/rubygems.rb (Gem::configuration): Fix RakeFileUtils pollution.
+
+2006-10-05 Jim Weirich <jim@weirichhouse.org>
+
+ * lib/rubygems/installer.rb (Gem::Installer::shebang): Updated to
+ optionally call env_shebang if the command line option is set.
+ (Gem::Installer::shebang_env): Added this method.
+
+2006-09-25 Jim Weirich <jim@weirichhouse.org>
+
+ * lib/rubygems/rubygems_version.rb (Gem): Bumped to version
+ 0.9.0.6.
+
+ * lib/rubygems/security.rb (Gem::Security::Exception): Added
+ permissions for cert files and directories.
+ (Gem::Security::Policy::verify_gem): File.exists? => File.exist?
+ (Gem::Security::self.verify_trust_dir): Beefed up code to create
+ trust directory structure.
+ (Gem::Security::self): Apply permissions when creating trust
+ files.
+
+ * lib/rubygems/package.rb (TarInput::initialize): File.exists? =>
+ File.exist?
+
+2006-09-24 Jim Weirich <jim@weirichhouse.org>
+
+ * lib/rubygems.rb
+ (Gem::OperationNotSupportedError::configuration): Added
+ method_missing to configuration hash to allow nicer reference
+ syntax.
+
+2006-09-22 Jim Weirich <jim@weirichhouse.org>
+
+ * lib/rubygems/remote_installer.rb
+ (Gem::RemoteSourceFetcher::initialize): Proxy patch fixup to
+ escape user/password from Anatol Pomozov.
+ (Gem::RemoteSourceFetcher::connect_to): Proxy patch fixup to
+ escape user/password from Anatol Pomozov.
+
+ * test/test_remote_fetcher.rb (TestRemoteFetcher::setup): Proxy
+ patch fixup to escape user/password from Anatol Pomozov.
+ (TestRemoteFetcher::test_no_proxy): Proxy patch fixup to escape
+ user/password from Anatol Pomozov.
+
+ * test/io_capture.rb (Gem::IoCapture): Created new IoCapture
+ module to handle capturing output of code under test.
+
+ * test/test_installer.rb
+ (TestInstaller::test_generate_bin_symlinks_win32): Removed ugly
+ $TESTING hack and substituted new io capture module.
+ (TestInstaller::test_install_with_message): Removed one-off stdout
+ capture and replaced with new IO Capture module.
+
+2006-09-19 Jim Weirich <jim@weirichhouse.org>
+
+ * lib/rubygems/rubygems_version.rb (Gem): Bumped to version
+ 0.9.0.3.
+
+ * test/test_version_comparison.rb (TestRequirementEquality): Added
+ more tests for Dependency equality testing and one additions check
+ for requirement vs non-requirement equality.
+
+ * lib/rubygems/version.rb (Gem::Dependency::==) Fixed '=' bug in
+ '==' code.
+
+2006-09-18 Chad Fowler <chad@chadfowler.com>
+
+ * lib/rubygems/remote_installer.rb
+ Only show the last 3 gem versions on a multiplatform remote
+ install list.
+
+2006-09-18 Jim Weirich <jim@weirichhouse.org>
+
+ * lib/rubygems/remote_installer.rb
+ (Gem::RemoteInstaller::install): Added Hugh Sasse's patch for
+ skipping gems on install.
+
+ * lib/rubygems/rubygems_version.rb (Gem): Bumped to 0.9.0.2.
+
+ * lib/rubygems/version.rb (Gem::Dependency::hash): Added hash code
+ --http-proxy, the ENV var http_proxy and with no proxy.
+
+2006-08-26 Jim Weirich <jim@weirichhouse.org>
+ * lib/rubygems/remote_installer.rb
+ (Gem::RemoteInstaller::download_gem): Fixed download_gems so that
+ it properly passes the proxy option to the fetcher class. (based
+ on patch by Andy Shen).
+
+2006-08-12 Jim Weirich <jim@weirichhouse.org>
+
+ * bin/index_gem_repository.rb (Indexer::sanitize): Added a
+ sanitize step to the gem index generation in the hope of avoiding
+ problems with non-ASCII names in the yaml data.
+
+2006-06-14 Jim Weirich <jim@weirichhouse.org>
+
+ * Rakefile (announce): Added 1.9 hack for ENV['CERT_DIR']. Remove
+ this in the future if 1.9 behavior changes.
+
+2006-06-13 Jim Weirich <jim@weirichhouse.org>
+
+ * Rakefile: ENV['CERT_DIR'] is now '' rather than nil.
+
+ * lib/rubygems/specification.rb (Gem::Specification::initialize):
+ Eric added some 1.9 compatibility code (funcall vs send).
+
+ * lib/rubygems/package.rb (TarOutput::self): Eric added some 1.9
+ compatibility code (funcall vs send).
+
+ * experimental/deployment.rb (Gem::Deployment): Moved the
+ deployment code out of the live code base into the experimental
+ directory. The code wasn't used and the tests were not all
+ passing.
+
+2006-06-11 Jim Weirich <jim@weirichhouse.org>
+
+ * bin/gemri: Added gemri to bin directory.
+
+ * lib/rubygems/custom_require.rb (Gem::GemPathSearcher::find):
+ Added .rbw to suffix pattern in custom_require.
+
+2006-06-07 Jim Weirich <jim@weirichhouse.org>
+
+ * lib/rubygems.rb: Added copyright notices to all Ruby files.
+
+2006-04-07 Jim Weirich <jim@weirichhouse.org>
+
+ * lib/rubygems/gem_commands.rb (Gem::RDocCommand::execute): Added
+ RI option to the rdoc subcommand.
+
+2006-04-05 Jim Weirich <jim@weirichhouse.org>
+
+ * test/test_parse_commands.rb
+ (TestParseCommands::test_parsing_update_options): Fixed unit tests
+ to assert that the install dir is expanded.
+
+ * lib/rubygems/doc_manager.rb (Gem::DocManager::generate_ri):
+ Break out from generate_rdoc to support installing all RI docs
+ first.
+
+ * lib/rubygems/gem_commands.rb
+ (Gem::InstallUpdateOptions::add_install_update_options): Expanded
+ repository directory to absolute path.
+ (Gem::InstallCommand::execute): Make sure that *all* of the RI
+ documents are generated before generating any RDocs (due to a bug
+ in the RDoc library).
+
+ * lib/rubygems/installer.rb (Gem::ExtExtConfBuilder::self): Fixed
+ typo in ExtExtConfBuilder that prevented C based gems to install.
+ (Gem::ExtExtConfBuilder::self): Installed patch to prevent the
+ overriding of target_prefix in native extensions (thanks to Aaron
+ Patterson for the patch).
+
+2006-04-04 Jim Weirich <jim@weirichhouse.org>
+
+ * lib/rubygems/rubygems_version.rb (Gem): Bumped to version
+ 0.8.11.10.
+
+ * lib/rubygems/incremental_fetcher.rb
+ (Gem::IncrementalFetcher::update_cache): Now falls back to bulk
+ updates if the number of gems if over 50.
+
+ * lib/rubygems/remote_installer.rb
+ (Gem::RemoteSourceFetcher::source_index): Added "bulk" to the
+ update message to differentiate it from the incremental message.
+
+ * lib/rubygems/specification.rb
+ (Gem::Specification::Specification): Modified to add dashes to
+ gemspecs generated under Ruby 1.8.3. This makes it easier to run
+ RubyGems on a 1.8.2 system.
+
+2006-04-01 Jim Weirich <jim@weirichhouse.org>
+
+ * lib/rubygems/doc_manager.rb (Gem::DocManager::run_rdoc): Changed
+ exception handler to print error message if document generation
+ fails, but then to continue with the rest of the installation.
+ Permission errors still terminate the install because if one
+ install fails because of permission problems, chances are that all
+ will fail.
+ (Gem::DocManager::install_ri): Removed wrapping of exceptions with
+ DocumentError. Most exceptions now don't propagate out of
+ run_rdoc.
+ (Gem::DocManager::install_rdoc): Removed wrapping of exceptions
+ with DocumentError. Most exceptions now don't propagate out of
+ run_rdoc.
+
+2006-02-23 Jim Weirich <jim@weirichhouse.org>
+
+ * bin/index_gem_repository.rb (MasterIndexBuilder::cleanup): Fixed
+ bug where we were trying to read the index file (to compress it)
+ before it was closed, often leading to a truncated index file.
+
+Tue Jan 24 16:26:13 2006 Chad Fowler <chad@chadfowler.com>
+ * lib/rubygems/config_file.rb
+ Luca Pireddu reported a fatal error when permissions on
+ .gemrc were too restrictive. Fixed.
+
+Tue Dec 6 14:51:13 2005 Jim Weirich <jim@tardis>
+
+ * lib/rubygems/source_index.rb
+ (Gem::SourceIndex::load_specification): Added an untaint call to
+ make the code run in SAFE=1 mode under 1.8.3.
+ (Gem::SourceIndex::load_gems_in): Untaint here too.
+
+ * lib/rubygems/installer.rb (Gem::Installer::install): Untaint
+ here too.
+ (Gem::Installer::extract_files): Untaint here too.
+
+ * lib/rubygems/custom_require.rb
+ (Gem::GemPathSearcher::matching_file): Untaint here too.
+
+ * test/gemenvironment.rb: Added $SAFE=1 to the test environment to
+ make sure we can run in $SAFE mode.
+
+2005-12-03 Jim Weirich <jim@tardis>
+
+ * lib/rubygems/rubygems_version.rb (Gem): Bumped version to
+ 0.8.11.6'
+
+ * lib/rubygems/user_interaction.rb
+ (Gem::StreamUI::SimpleProgressReporter::done): Added several new
+ progress reporters.
+
+ * lib/rubygems/command.rb
+ (Gem::Command::specific_extra_args_hash): Added --verbose
+ processing.
+
+ * lib/rubygems/config_file.rb (Gem::ConfigFile::handle_arguments):
+ Added --traceback as alias for --backtrace (I always get them
+ confused).
+ (Gem::ConfigFile::initialize): Added a verbose option.
+
+2005-11-28 Jim Weirich <jim@tardis>
+
+ * lib/rubygems/remote_installer.rb
+ (Gem::SourceInfoCacheEntry::replace_source_index): Fixed the
+ SourceIndexCacheEntry so that it will manufacture an empty source
+ index if given a nil value for the +si+ value.
+
+2005-11-08 Chad Fowler <chad@chadfowler.com>
+ * lib/rubygems.rb: Ara Howard's fix to allow 0.0.0 to be a valid gem
+ version.
+
+2005-11-08 Chad Fowler <chad@chadfowler.com>
+ * lib/rubygems/gem_commands.rb: Fixed bug in gem unpack. It was
+ sorting incorrectly, resulting in the wrong version being unpacked in
+ some edge cases. Thanks to Jakob Skjerning for the detailed bug report.
+
+2005-11-03 Chad Fowler <chad@chadfowler.com>
+ * lib/rubygems/installer.rb: Fixed bug that would cause the executables
+ from the wrong gem to be uninstalled if the names matched the same
+ regex. Thanks Eric Hodel.
+
+2005-11-01 Jim Weirich <jim@tardis>
+ * lib/rubygems/gem_commands.rb (Gem::UpdateCommand::initialize):
+ Upgrade => Update change.
+ (Gem::UpdateCommand::execute): Upgrade => Update change.
+ (Gem::UpdateCommand::execute): Upgrade => Update change.
+
+2005-11-01 Chad Fowler <chad@chadfowler.com>
+ * lib/rubygems/gem_commands.rb: Allow gem unpack to accept a gem file
+ path instead of gem name: gem unpack mygem-1.0.0.gem.
+
+2005-10-31 Chad Fowler <chad@chadfowler.com>
+ * lib/rubygems/installer.rb: Tilman Sauerbeck's patch to support
+ extensions built with Rake!
+
+2005-09-13 Jim Weirich <jim@weirichhouse.org>
+
+ * lib/rubygems/package.rb (TarInput::initialize): Removed
+ requirement for SSL when signatures are found in a gem. Only
+ require SSL if the security policy requires checking the
+ signatures.
+
+ * lib/rubygems/custom_require.rb (Kernel::require): Disabled
+ autorequire during custom require.
+
+2005-09-07 Jim Weirich <jim@weirichhouse.org>
+
+ * lib/rubygems/gem_openssl.rb (Gem::ensure_ssl_available): Added a
+ test in gem_openssl to make sure the ruby portion of ssl is also
+ loaded.
+
+2005-08-31 Jim Weirich <jim@weirichhouse.org>
+
+ * Rakefile (install): Changed the rake install task to use setup.rb.
+
+2005-07-08 Chad Fowler <chad@chadfowler.com>
+
+ * lib/rubygems/remote_installer.rb: Applied Daniel Roux's patch
+ to make RubyGems work with authenticating proxies.
+
+2005-07-08 Jim Weirich <jim@weirichhouse.org>
+
+ * Preparing for release 0.8.11.
+
+2005-06-12 Jim Weirich <jim@weirichhouse.org>
+
+ * lib/rubygems/installer.rb
+ (Gem::Installer::installation_satisfies_dependency): Refactored
+ dependency check into ensure_dependency! and
+ installation_satisfies_dependency?.
+
+2005-06-12 Chad Fowler <chad@chadfowler.com>
+ * lib/rubygems.rb,lib/rubygems/installer.rb: Applied Mark Hubbart's
+ * lib/rubygems/remote_installer.rb: Applied David Glasser's install-
+ * Applied Paul Duncan's incredibly complete gem signing patch.
+ Thanks, Paul!
+ * lib/rubygems/installer.rb: Fixed bug in installer that caused
+ dependency installation not to work.
+
+2005-06-06 Chad Fowler <chad@chadfowler.com>
+ * lib/rubygems/specification.rb: Fixed Erik hatcher's reported bug
+ of gem directories having "-" at the end of their names (e.g.
+ "BlueCloth-1.0.0-".
+
+2005-06-01 Jim Weirich <jim@weirichhouse.org>
+
+ * scripts/specdoc.rb (_resolve_links): Updated to generate hieraki
+ format so it can be included in the docs.rubygems.org site.
+
+ * test/test_specification.rb (TestSpecification::test_to_ruby):
+ Fixed test on date that hard-coded a specific date.
+
+2005-05-29 Jim Weirich <jim@weirichhouse.org>
+
+ * Changes from the Seattle Code fest: (1) Package list command
+ (e.g. gem inspect GEM). (2) .gemrc settings now allow cvsrc like
+ options to set defaults per subcommand. (3) The autorequire spec
+ attribute will now accept a list. (4) Binwrappers vs symlinks
+ (more info to follow). (5) Substituted Time for Date in specs,
+ increasing performance dramatically in an important area.
+
+2005-05-04 Jim Weirich <jim@weirichhouse.org>
+
+ * lib/rubygems.rb (Gem::Exception::find_home): Changed rescue
+ clause from Exception to StandardError. Exception doesn't seem to
+ catch everything ... I'm not sure I understand why.
+
+2005-04-29 Chad Fowler <chad@chadfowler.com>
+ * lib/rubygems/specifiation.rb: Marcel Molina's patch to discover
+ which attributes in the spec are Array attributes.
+
+2005-04-27 Chad Fowler <chad@chadfowler.com>
+ * lib/rubygems/gem_commands.rb: -y is now a synonym for
+ --include-dependencies
+
+2005-04-21 Chad Fowler <chad@chadfowler.com>
+ * lib/rubygems/installer.rb: Added non-require_gem dependency check
+ for installation.
+
+2005-04-03 Chad Fowler <chad@chadfowler.com>
+
+ * pre-install.rb: Added version check to RubyGems installation.
+
+2005-03-25 Jim Weirich <jim@weirichhouse.org>
+
+ * lib/rubygems/rubygems_version.rb (Gem): Created release for
+ 0.8.10.
+
+ * lib/rubygems/gem_commands.rb
+ (Gem::UpdateCommand::do_rubygems_update): Update --system now runs
+ the ruby command directly rather than trying to load the
+ update-rubygems command. There were too many things to go wrong
+ with the old way.
+
+2005-03-24 Jim Weirich <jim@weirichhouse.org>
+
+ * lib/rubygems/remote_installer.rb
+ (Gem::RemoteInstaller::find_dependencies_not_installed): Fixed to
+ reload source index before attempting to detect dependencies.
+
+2005-03-23 Jim Weirich <jim@weirichhouse.org>
+
+ * lib/rubygems/remote_installer.rb
+ (Gem::RemoteInstaller::find_dependencies_not_installed): Switched
+ to using SourceIndex#find_name to detect missing dependencies,
+ avoiding a gem activation during an install.
+
+ * lib/rubygems/installer.rb (Gem::Installer::install): Removed
+ activate call from install step. If we need to do something about
+ dependencies at this time, then we need a better way to do them.
+
+ * lib/rubygems.rb: Removed the require for rubygems/timer.
+
+2005-03-16 Jim Weirich <jim@weirichhouse.org>
+
+ * test/gemenvironment.rb (TestEnvironment::create): Added require
+ on gem/builder.
+
+ * lib/rubygems/source_index.rb (Gem::SourceIndex::initialize):
+ Allowing default argument to new to be an empty hash.
+ (Gem::SourceIndex::from_installed_gems): Refactored into a class
+ method that invokes a instance method.
+ (Gem::SourceIndex::refresh): Refresh now does a complete reload
+ from disk. This should be more accurate that the earlier version.
+
+ * lib/rubygems/installer.rb (Gem::Uninstaller::uninstall): removed
+ unneeded refresh!.
+
+ * lib/rubygems.rb (Gem::Exception::source_index): Removed
+ automatic refresh from Gem.source_index ... it wasn't reliable
+ when removing installed gems.
+ (Gem::Exception::activate): Added detection of previously loaded
+ gems.
+
+2005-03-15 Chad Fowler <chad@chadfowler.com>
+
+ * bin/gem_server: (htonl) rdoc opens in existing browser window.
+
+2005-03-14 Jim Weirich <jim@weirichhouse.org>
+
+ * Released 0.8.8
+
+2005-03-14 Jim Weirich <jim@weirichhouse.org>
+
+ * Released 0.8.7
+
+2005-03-13 Gavin Sinclair <gsinclair@soyabean.com.au>
+
+ * lib/rubygems/installer.rb (Gem::Installer#shebang): Refactored and
+ stripped result to avoid ^M issues.
+
+2005-03-11 Jim Weirich <jim@weirichhouse.org>
+
+ * lib/rubygems/gem_commands.rb (Gem::DependencyCommand): Added a
+ new command "gem dependency" to show the dependencies of an
+ installed gem.
+
+ * lib/rubygems/cmd_manager.rb (Gem::CommandManager::initialize):
+ Added DependencyCommand to the command manager registrar.
+
+ * lib/rubygems/version.rb (Gem::Requirement): Unnested Requirement
+ from the Version class. There was no benefit to having it nested.
+ Gem::Version::Requirement is set to point to the new class so to
+ be compatible with old gems.
+
+ * lib/rubygems/installer.rb (Gem::Uninstaller::ask_if_ok): Changed
+ uninstaller confirm message to read 'Continue with uninstall'.
+ Its clearer that way.
+
+ * lib/rubygems.rb (Gem::Exception::required_location): Switch to
+ use SourceIndex#find_name rather than search. Made sure a nil
+ value is returned with a path is not found.
+
+ * lib/rubygems/source_index.rb (Gem::SourceIndex::search): Changed
+ parameter name to gem_pattern to emphasize using Regex in search.
+ (Gem::SourceIndex::find_name): Added find_name to handle the
+ common case of searching for an exact match on the short name.
+
+ * lib/rubygems.rb (Gem::Exception::activate): Make sure that
+ activate more closely adheres to honoring the auto_require=>false
+ request.
+ (Gem::Exception::report_activate_error): Out of line error
+ reporting for activate.
+
+ * lib/rubygems/remote_installer.rb
+ (Gem::RemoteInstaller::find_dependencies_not_installed): Found
+ another location that was using require_gem with auto_require.
+ Fixed to use :auto_require=>false.
+
+ * lib/rubygems/gem_commands.rb
+ (Gem::InstallUpdateOptions::add_install_update_options): Added
+ --ignore-dependencies option. Still needs to be wired to logic.
+
+ * lib/rubygems/installer.rb (Gem::Installer::install): Added call
+ to require_gem_with_options.
+
+ * lib/rubygems.rb (Kernel::require_gem_with_options): Added to
+ allow easier specification of the autorequire flag for
+ Gem.activate.
+
+2005-03-10 Jim Weirich <jim@weirichhouse.org>
+
+ * lib/rubygems/remote_installer.rb
+ (Gem::RemoteSourceFetcher::normalize_uri): Normialize a URI to
+ start with http:// if it does not already.
+
+ * test/test_deployment.rb (TestDeployment::xtest_deploy_sources):
+ Disabled this test. It is part of the new deployment software and
+ is not working yet.
+
+2005-03-09 Jim Weirich <jim@weirichhouse.org>
+
+ * lib/gemconfigure.rb (Gem::self): Added to aid dynamic
+ versioning.
+
+ * lib/rubygems/command.rb (Gem::Command::command_manager): Moved
+ command_manager to base class.
+
+ * lib/rubygems/gem_commands.rb (Gem::CleanupCommand::execute):
+ Both implicit and explicit gems now work with cleanup.
+
+2005-03-08 Jim Weirich <jim@weirichhouse.org>
+
+ * lib/rubygems/installer.rb (Gem::Uninstaller::ok_to_remove):
+ Fixed source index to be loaded from the installed gems when doing
+ an "OK TO REMOVE" dependency check.
+
+2005-03-06 Rich Kilmer <rich@infoether.com>
+ * lib/rubygems/deployment.rb: beginning of a deployment capability
+
+ * test/test_deployment.rb: first tests of new deployment system
+
+2005-03-04 Chad Fowler <chad@chadfowler.com>
+ * lib/rubygems/gem_commands.rb: Small bugfix for the case when you
+ pass in a gem name (or more) to cleanup for the cleanup command.
+
+2005-03-04 Jim Weirich <jim@weirichhouse.org>
+
+ * lib/rubygems/installer.rb (Gem::Uninstaller::ok_to_remove):
+ Reworked logic in uninstall to be intelligent about dependencies.
+ We only complain about dependencies if removing a gem will cause a
+ dependency error. The uninstaller now checks for :ignore, :all
+ and :executables options.
+
+ * lib/rubygems/cmd_manager.rb (Gem::CommandManager::initialize):
+ Registered Cleanup command.
+
+ * lib/rubygems/gem_commands.rb (Gem::CleanupCommand): Added
+ Cleanup command to gem.
+ (Gem::UninstallCommand::initialize): Added --all, --ignore and
+ --executables options to uninstall. This helps to avoid excessive
+ YESes all the time.
+
+2005-02-28 Jim Weirich <jim@weirichhouse.org>
+
+ * lib/rubygems/remote_installer.rb
+ (Gem::LocalSourceInfoCache::write_cache): Open cache file in
+ binary mode.
+
+2005-02-28 Chad Fowler <chad@chadfowler.com>
+ * lib/rubygems/config_file.rb: don't warn about not being able to
+ find config file.
+ * lib/rubygems/doc_manager.rb: (for DHH) don't install rdoc docs for
+ * lib/rubygems/gem_commands.rb: Print which gems are updated on 'gem
+ update'. If --system is used, report that the rubygems system
+ software has been updated.
+ * lib/rubygems/installer.rb: Cleaned up the uninstall has_dependents
+ logic and output. It was misleading and buggy before.
+
+2005-02-27 Jim Weirich <jim@weirichhouse.org>
+
+ * lib/rubygems/config_file.rb
+ (Gem::ConfigFile::default_config_file_name): Fixed bug in finding
+ home directory for the .gemrc file.
+
+2005-02-27 Chad Fowler <chad@chadfowler.com>
+
+ * Released 0.8.6
+
+ * Fixed a small bug with shebang construction
+
+2005-02-26 Jim Weirich <jim@weirichhouse.org>
+
+ * Released 0.8.5
+
+ * lib/rubygems/doc_manager.rb (Gem::DocManager::generate_rdoc):
+ Removed warning about generating rdocs on gems w/o an rdoc flag.
+
+ * lib/rubygems/gem_commands.rb
+ (Gem::UpdateCommand::do_rubygems_update): Added --system option to
+ update to specifically update the version of rubygems.
+ (Gem::UpdateCommand::which_to_update): Fixed some refactoring bugs
+ in the which_to_update method.
+
+ * lib/rubygems/remote_installer.rb
+ (Gem::LocalSourceInfoCache::read_cache): switched to Marshal
+ rather than Yaml for local cache.
+
+ * bin/gem: Added requirement for Ruby >= 1.8.0.
+
+2005-02-10 Chad Fowler <chad@chadfowler.com>
+ * bin/gem_server: Added Martin Ankerl's wonderful new gem_server
+ template
+
+2005-01-27 Chad Fowler <chad@chadfowler.com>
+ * lib/rubygems/gem_commands.rb: Fixed
+ `gem update` so it accepts a list of gems to update and _only_
+ updates those.
+ * lib/rubygems/installer.rb: Fixed a bug in the new shebang code.
+ * lib/rubygems/remote_installer.rb: Attempt to fix Curt Hibbs'
+ reported Proxy bug without actually having a proxy to test with.
+
+2005-01-22 Chad Fowler <chad@chadfowler.com>
+ * lib/rubygems/custom_require.rb: Lyle Johnson's fix for Bug #1379
+
+2005-01-20 Chad Fowler <chad@chadfowler.com>
+ * lib/rubygems/validator.rb: Applied Austin Ziegler/Kasper Schiess's
+ patch to fix unit test running bug.
+
+2005-01-14 Chad Fowler <chad@chadfowler.com>
+ * lib/rubygems/installer.rb: attempt at fixing Ryan Davis's
+ reported Shebang bug. STILL NOT WORKING, because it doesn't work
+ with ^M characters.
+ * lib/rubygems/config_file.rb: small but ugly error fixed if no
+ config file exists.
+ * lib/rubygems/remote_installer.rb: Fixed bug http://rubyforge.org/tracker/index.php?func=detail&aid=1331&group_id=126&atid=575.
+
+2005-01-01 Chad Fowler <chad@chadfowler.com>
+ * Released 0.8.4
+
+2004-12-31 Jim Weirich <jim@weirichhouse.org>
+
+ * Rakefile: Switch to standard Rake test tasks.
+
+ * lib/rubygems/remote_installer.rb
+ (Gem::RemoteSourceFetcher::read_data): Added a retry to try a
+ lower case gem name if the open failed. This fixes a problem
+ where case differences are preventing some gems from installing.
+
+2004-12-29 Jim Weirich <jim@weirichhouse.org>
+
+ * lib/rubygems/gem_commands.rb (Gem::InstallCommand::execute):
+ Changed the RemoteInstaller to take an options hash rather than
+ individual options. This will leave the interface more resilient
+ to changes as more options are added
+ (e.g. --install_dependencies).
+
+ * lib/rubygems/specification.rb (Gem::Specification): Marked array
+ attributes explicitly. This allows for explicit conversion to
+ arrays when assigned.
+
+ * test/test_specification.rb
+ (TestSimpleSpecification::test_array_attributes): Added test for
+ array_attributes forcing values to arrays.
+
+2004-12-28 Jim Weirich <jim@tardis>
+
+ * lib/rubygems.rb (Gem::Exception::ensure_gem_subdirectories):
+ Fixed the Ryan Davis patch to work correctly when directories are
+ not writable.
+
+2004-12-18 Chad Fowler <chad@chadfowler.com>
+ * lib/rubygems/version.rb: Erik Veenstra's sort patch.
+ * lib/rubygems.rb: Ryan Davis's installation bug fix.
+
+2004-12-14 Gavin Sinclair <gsinclair@soyabean.com.au>
+
+ * test/test_loadmanager.rb: invalidated it as a unit test; it's
+ incompatible with custom_require.rb.
+
+2004-12-12 Gavin Sinclair <gsinclair@soyabean.com.au>
+
+ * lib/rubygems/custom_require.rb: simple bug fix.
+
+2004-12-12 Gavin Sinclair <gsinclair@soyabean.com.au>
+
+ * lib/rubygems/custom_require.rb: new file to replace
+ loadpath_manager.rb and speed up the custom require functionality.
+
+ * lib/rubygems/timer.rb: new file; simple benchmarking tool that's
+ useful at the moment but needn't stay in RubyGems permanently.
+
+ * lib/rubygems/source_index.rb: include Enumerable and implement #size
+ and #length.
+
+ * lib/rubygems/specification.rb: removed lazy initialisation of
+ attributes to reduce #copy_of invocations; folded
+ Specification.copy_of into Specification#copy_of.
+
+ * lib/rubygems.rb: require 'rubygems/custom_require' instead of
+ 'rubygems/loadpath_manager'; removed out of date documentation; added
+ "require 'rubygems/timer'" to temporarily assist with benchmarks.
+
+2004-12-07 Jim Weirich <jim@weirichhouse.org>
+
+ * Released 0.8.3
+
+2004-12-06 Jim Weirich <jim@weirichhouse.org>
+
+ * test/test_specification.rb
+ (TestLegacyYamlSpecification::test_load): Fixed test to avoid the
+ __FILE__ stuff. Running tests from rakefile guarantees that the
+ file paths start from the right location.
+
+ * pkgs/sources/sources.gemspec: Made Gem.sources_spec idempotent.
+
+ * lib/rubygems/specification.rb (Gem::Specification::initialize):
+ Added @@gather to Gem::Specification to facilitate proper loads.
+ (Gem::Specification::Specification): Added Specification.load.
+
+ * lib/rubygems/source_index.rb (Gem::SourceIndex): Fixed comments
+ 'long name' => 'full name'.
+
+ * lib/rubygems/gem_commands.rb (Gem::BuildCommand::load_gemspecs):
+ Changed to use Gem.Specification.load.
+
+ * Rakefile: Added sources-*.gem to clobber list.
+ (egrep): Upgraded the DBG finder to include breakpoint.
+
+ * post-install.rb (install_sources): Using block version of chdir.
+
+ * lib/rubygems/remote_installer.rb
+ (Gem::LocalSourceInfoCache::read_cache): Fixed initialization of
+ cache.
+
+ * lib/rubygems.rb: Updated version to 0.8.2.
+
+2004-12-04 Jim Weirich <jim@weirichhouse.org>
+
+ * lib/rubygems/remote_installer.rb
+ (Gem::LocalSourceInfoCache::writable_file): Now just returns the
+ selected cache file (which was selected based on writability).
+ (Gem::LocalSourceInfoCache::try_file): Added try_file to determine
+ if a file is a candidate for a cache file.
+ (Gem::LocalSourceInfoCache::select_cache_file): Added failure if
+ there are not valid cache file candidates.
+
+ * lib/rubygems.rb (Gem::Exception): Renamed @@cache to
+ @@source_index.
+ (Gem::Exception::source_index): Renamed Gem.cache to
+ Gem.source_index (but left cache as an alias).
+
+2004-12-03 Jim Weirich <jim@weirichhouse.org>
+
+ * lib/rubygems/remote_installer.rb (Gem::LocalSourceInfoCache):
+ Added a local cache manager object to implement the read/write
+ policies on the system and user cache files.
+ (Gem::LocalSourceInfoCache::update): Added update and flush to the
+ caching fetcher so that it knows when it needs to update the local
+ cache files.
+ (Gem::RemoteInstaller::initialize): Switched to using a cached
+ fetcher in the remote installer. All the caching logic was
+ removed from the installer. User writable cache files are now
+ supported.
+ (Gem::RemoteInstaller::write_gem_to_file): write_gem_to_file now
+ will create the path if needed.
+
+2004-12-02 Jim Weirich <jim@weirichhouse.org>
+
+ * lib/rubygems/package.rb (TarInput::zipped_stream): To workaround
+ a problem with earlier than 1.2.1, we read the zipped data into a
+ string, and then return an IO object on that string.
+ (TarInput::each): Refactored getting a stream to the zipped data
+ into <tt>zipped_stream</tt>.
+
+2004-12-01 Jim Weirich <jim@weirichhouse.org>
+
+ * lib/rubygems/remote_installer.rb
+ (Gem::RemoteSourceFetcher::convert_spec): We now proprocess the
+ yaml string data to reduce it in size. This was done to
+ workaround a problem with large YAML files (although it is just a
+ temporary fix because our yaml data keeps growing and growing).
+
+ * Rakefile: Added more targets to the clobber target.
+
+ * test/test_remote_fetcher.rb
+ (TestRemoteFetcher::test_explicit_proxy): Added tests for proxy
+ support.
+
+ * lib/rubygems/remote_installer.rb
+ (Gem::RemoteSourceFetcher::connect_to): Refactored to add proxy
+ support.
+
+2004-11-28 Chad Fowler <chad@chadfowler.com>
+ * lib/rubygems/loadpath_manager.rb: Added Mauricio's patch to work
+ around string contains null byte issue.
+
+2004-11-27 Jim Weirich <jim@weirichhouse.org>
+
+ * lib/rubygems/remote_installer.rb
+ (Gem::RemoteSourceFetcher::get_size): Switched from open-uri with
+ early abort to an HTTP.head call to get the size of the yaml file
+ on the server.
+
+2004-11-26 Jim Weirich <jim@weirichhouse.org>
+
+ * test/test_specification.rb
+ (TestDefaultSpecification::test_defaults): Added test for some
+ basic defaults in a gem spec.
+
+ * test/test_remote_installer.rb (MockFetcher::source_info): Made
+ the fake test data more realistic.
+ (TestRemoteInstaller::test_source_info): Improved tests.
+
+2004-11-26 Jim Weirich <jim@tardis>
+
+ * test/test_remote_installer.rb (MockFetcher): Added MockFetcher
+ to make testing the remote installer easier. Currently there are
+ two remote installer test classes. Eventually TestRemoteInstaller
+ will succeed RemoteInstallerTest, which is very incomplete.
+
+ * test/test_package.rb (TC_TarReader::TC_TarInput): Made the unit
+ test ignore the setgid bit. The setgid bit doesn't work on my
+ laptop for some reason. This may be a problem with my laptop
+ rather than with this code. Should investigate further.
+
+ * lib/rubygems/remote_installer.rb (Gem::RemoteSourceFetcher):
+ Added a Fetcher object to the remote installer to handle all the
+ details of getting the remote information. This allows testing
+ the logic of the remote installer without actually doing remote
+ calls.
+ (Gem::RemoteInstaller::sources): Renamed get_caches to
+ source_info. The problem is that cache is too generic and there
+ are actually several things that we will cache in the system.
+
+ * lib/rubygems/cache.rb (Gem::Cache::self): Changed interface to
+ from_installed_gems slightly.
+ (Gem::Cache::self): Reordered rescue clauses so that the syntax
+ exception might actually be handled.
+
+ * lib/rubygems.rb (Gem::Exception::ensure_gem_subdirectories):
+ Dumped the check_gem_subdirectories method to use the almost
+ identical ensure_gem_subdirectories method.
+ (Gem::Exception::ensure_gem_subdirectories): Only attempt to
+ create the gem subdirectories if we can actually write them.
+
+ * bin/gem_server: Added date of last file modification to header
+ of /yaml. This is in preparation for using a head command with
+ date/time stamping in fetching the source cache.
+
+2004-11-25 Ryan Davis <ryand@zenspider.com>
+ * lib/rubygems.rb: Added GEM_SKIP functionality, which will tell
+ loadpath_manager not to load specific libs from gems. For
+ testing/ development purposes. Created by Ryan Davis.
+
+2004-11-24 Chad Fowler <chad@chadfowler.com>
+ * lib/rubygems/specification.rb: Allow multiple authors per gem.
+ * lib/rubygems/gem_commands.rb: command line error message if you
+ run 'gem install' with no args.
+ * lib/rubygems/loadpath_manager.rb: Fixed @specs bug as reported by
+ Lothar Schulz on ruby-talk.
+
+2004-11-07 Chad Fowler <chad@chadfowler.com>
+ * lib/rubygems.rb,lib/rubygems/installer.rb,lib/rubygems/cache.rb
+ lib/rubygems/remote_installer.rb,lib/rubygems/gem_commands.rb:
+ Fixes to make non-root installation work properly. Still need to
+ fix uninstallation.
+ * lib/rubygems/gem_commands.rb: Allow multiple gems/gem names on the
+ command line for install.
+
+2004-10-31 Chad Fowler <chad@chadfowler.com>
+ * lib/rubygems/version.rb,test/test_version_comparison.rb: Patrick May's
+ * post-install.rb: Patrick May's fix for rubygems lib not being found
+ during install.
+
+2004-10-29 Chad Fowler <chad@chadfowler.com>
+ * packages/,pkgs,install.rb: renamed "packages" to "pkgs" to avoid
+ * remote_installer.rb: Added user-agent reporting for remote
+ operations
+ * setup.rb,install.rb,bin/update_rubygems: removed install.rb and
+ added setup.rb and post-install.rb. Changed update_rubygems so that
+ params passed to it can be passed on to setup.rb
+
+2004-10-25 Jim Weirich <jim@weirichhouse.org>
+
+ * lib/rubygems/installer.rb
+ (Gem::Uninstaller::remove_executables): Corrected spelling of
+ "addtion".
+
+2004-10-24 Jim Weirich <jim@weirichhouse.org>
+
+ * lib/rubygems/version.rb (Gem::Version::Requirement::self): Now
+ properly handles arrays of version constraints.
+
+ * lib/rubygems/loadpath_manager.rb
+ (Gem::LoadPathManager::Gem::Specification): Added comments
+ describing the fast Spec class purpose. Added to_s to
+ Gem::Specification (both fast and slow versions).
+ (Gem::LoadPathManager.paths): Returns (cached) list of gem paths.
+ (Gem::LoadPathManager::self): Refactored to use glob_over in
+ search_loadpaths and search_gempaths.
+
+ * lib/rubygems/installer.rb: Added some requires.
+
+ * lib/rubygems/cache.rb (Gem::Cache::refresh): Fixed refresh! to
+ call load_specification on the Cache class, not on itself.
+
+ * lib/rubygems.rb (Gem::Exception::activate): added comments to
+ activate. Also made sure that partial name matches in the gem
+ cache search were avoided.
+ (Gem::Exception::clear_paths): Added code to clear the gem cache
+ when reseting the gem paths.
+ (Gem::Exception::require): Added a function to take a gem name and
+ a library file name (in that gem) and return a path to the library
+ in the gem. David HH was interested in this in order to speed up
+ some require statements under ModRuby. Eventually I hope we won't
+ need these special tricks.
+ (Gem::Exception::latest_partials): Fixed bug that assumed exactly
+ three digits in a version number.
+
+ * Rakefile (egrep): Added two tasks to find all the FIXME/TODO
+ markers in the source code comments and to find the DBG print
+ lines.
+
+2004-10-23 Jim Weirich <jim@weirichhouse.org>
+
+ * test/test_specification.rb
+ (TestSimpleSpecification::test_add_bindir_to_list_of_files):
+ Verify that an executable doesn't need the bindir if bindir is
+ set.
+ (TestSimpleSpecification::test_no_bindir_in_list_of_files): Added
+ test the verify that exectuable can be written without a default
+ binder.
+
+ * lib/rubygems/installer.rb
+ (Gem::Installer::generate_bin_scripts): Added check so that the
+ bindir is access only when there are actually executables to
+ install. Checking for an installable bindir was giving permission
+ errors when installing test gems.
+
+2004-10-21 Chad Fowler <chad@chadfowler.com>
+ * lib/rubygems/installer.rb: Show extension build errors during install
+ in addition to logging them to gem_make.out
+
+2004-10-02 Chad Fowler <chad@chadfowler.com>
+
+ * lib/rubygems/validator.rb,lib/rubygems/gem_commands.rb: Added
+ --test option for "gem check" that runs unit tests on already-
+ installed gems.
+
+2004-09-30 Rich Kilmer <rich@infoether.com>
+
+ * lib/rubygems/specification.rb - externalized the loaded_from runtime
+ var on specification
+ * lib/rubygems/cache.rb - optimized cache refresh! method and refactored
+ processing of files when building cache.
+ * lib/rubygems/loadpath_manager.rb - fixed bug in loadpath manager in
+ finding native extensions that have ext on os x, win32 and solaris
+
+2004-09-20 Chad Fowler <chad@chadfowler.com>
+ * lib/rubygems/gem_commands.rb: If file match during local install is
+ a directory, don't try to treat it erroneously as a gem (bug reported
+ by Rich).
+ * lib/rubygems.rb: Fixed small bug in #latest_load_paths
+
+ (NOTE: It looks like 0.8.0/0.8.1 was released in this timeframe)
+
+2004-09-14 Chad Fowler <chad@chadfowler.com>
+ * lib/rubygems.rb: Fixed bug in require_gem (thanks Jamis Buck!)
+ that would require a gem based on an inexact search of its name
+ in the local cache. This caused copland-webrick to be loaded
+ when a request was made for "copland".
+
+2004-09-12 Chad Fowler <chad@chadfowler.com>
+ * lib/rubygems/specification.rb, test/test_specification.rb: Removed
+ library_stubs attribute.
+
+2004-09-12 Gavin Sinclair <gsinclair@soyabean.com.au>
+
+ * scripts/specdoc.rb: Check that all attributes are documented; and
+ improved formatting.
+ * scripts/specdoc.yaml: test_suite_file -> test_files; finished
+ documentation.
+ * scripts/specdoc.data: misc changes.
+
+2004-09-11 Chad Fowler <chad@chadfowler.com>
+
+ * test/test_parse_commands.rb: Fix failing unit tests due to Rich's fix from
+
+ * lib/rubygems/specification.rb: Add bindir to executable path on file list
+
+2004-09-11 Rich Kilmer <rich@infoether.com>
+
+ * lib/rubygems/gem_commands.rb - got rid of stub options
+
+ * lib/rubygems/install.rb - changed output of messages so the UI would format
+ better
+
+ * bin/gem_server - exit! from ^c
+
+2004-09-09 Chad Fowler <chad@chadfowler.com>
+ * lib/rubygems/loadpath_manager.rb: Small bug when gem specs have ruby
+ version requirements.
+ * lib/rubygems/specification.rb, lib/rubygems/gem_commands.rb: Fixed failing
+ functional test.
+
+2004-09-08 Chad Fowler <chad@chadfowler.com>
+ * install.rb: added stub removal to the install process
+
+2004-09-06 Chad Fowler <chad@chadfowler.com>
+ * test/test_package.rb: Fixed failing unit test as per Mauricio's email to
+ the rubygems list.
+ * Fixed minor issues with Windows cmd file generation.
+
+2004-09-06 Rich Kilmer <rich@infoether.com>
+ * lib/rubygems/remote_installer.rb - enabled caching of source caches
+ based on the size of the yaml.Z/yaml file.
+
+2004-08-29 Chad Fowler <chad@chadfowler.com>
+ * /lib/rubygems/gem_command.rb: small big fix for local gem installs
+ on Windows.
+
+2004-08-28 Rich Kilmer <rich@infoether.com>
+
+ * /lib/rubygems/installer.rb, /lib/rubygems/doc_manager.rb,
+ /lib/rubygems/cmd_manager.rb - Added an exception: FilePermissionError
+ which checks to ensure write access to the install/uninstall/rdoc
+ destination directories and raises a nice error instead of the standard
+ one.
+
+2004-08-28 Rich Kilmer <rich@infoether.com>
+
+ * /lib/rubygems/installer.rb - commented out stub addition and removal
+
+2004-08-28 Rich Kilmer <rich@infoether.com>
+
+ * /lib/rubygems.rb, /lib/rubygems/loadpath_manager.rb -
+ this adds all the loadpath_manager stuff with the 'ultimate require hack' to
+ rubygems.rb. Also, require_gem methods body has been extracted into a method
+ Gem.activate that differs in the calling signature in that the second param is
+ a boolean that determines whether to autorequire or not.
+
+2004-08-27 Rich Kilmer <rich@infoether.com>
+
+ * lib/rubygems/user_interaction - added ask_yes_no as a method
+ which returns true/false and formats/processes the [yn] stuff.
+ it also has an optional second parameter of true/false for the
+ default value.
+
+ * lib/rubygems/installer.rb, lib/rubygems/remote_installer.rb,
+ lib/rubygems/command_manager.rb - changed all places where ask
+ was used with [Yn] to ask_yes_no
+
+2004-08-24 Gavin Sinclair <gsinclair@soyabean.com.au>
+
+ * lib/rubygems/installer.rb: Library stubs are now installed as per
+ 'library_stubs' gemspec attribute. A stub is (still) also installed
+ for the 'autorequire' attribute. All library stub handling
+ refactored into two new classes: LibraryStubs and LibraryStub.
+
+ * test/test_parse_commands.rb: as per 2004-08-17 below, the 'update'
+ command takes --rdoc as its default now.
+
+2004-08-22 Rich Kilmer <rich@infoether.com>
+ * lib/rubygems/installer.rb: fixed stub generation...i added the version
+ stuff that only app stubs should have...sorry!
+
+2004-08-17 Gavin Sinclair <gsinclair@soyabean.com.au>
+
+ * lib/rubygems/gem_commands.rb: --rdoc is default on 'update' command,
+ consistent with 'install'. 'default_str' methods changed to reflect
+ --rdoc being default now.
+
+2004-08-21 Chad Fowler <chad@chadfowler.com>
+ * lib/rubygems/gem_commands.rb: Proper checking for gems in local
+ directory on local install. rescue Gem::LoadError to avoid ugly
+ backtrace.
+ * lib/rubygems/installer.rb: created Gem::LoadError to hold extra
+ metadata. Setting up for proper dependency installation on local
+ installs.
+
+2004-08-20 Chad Fowler <chad@chadfowler.com>
+
+ * lib/rubygems/specification.rb: Fixed small bug in the previous spec
+ change commit.
+
+ * lib/rubygems/cache.rb: Prevent catastrophic failure if a gemspec is
+ corrupted.
+
+ * lib/rubygems/installer.rb: Fixed (in not a great way) a bug that would
+ cause a zero-length spec file to be written to the gem specifications
+ directory.
+
+2004-08-19 Chad Fowler <chad@chadfowler.com>
+
+ * lib/rubygems/specification.rb: #files auto-includes any #extensions,
+ #extra_rdoc_files, #test_files, etc. that weren't explicitly added
+ to the file list.
+
+2004-08-18 Chad Fowler <chad@chadfowler.com>
+
+ * lib/rubygems/specification.rb: One more bug with #test_files.
+ Default value of [] wasn't set, resulting in an attempt to call
+ #empty? on nil.
+
+ * lib/rubygems/gem_commands.rb: Unit tests appear to be working now.
+ Still more testing to do.
+
+ * lib/rubygems/remote_installer.rb, lib/rubygems/installer.rb: Fixed
+ minor bugs in default selections for questions asked during
+ installation and uninstallation
+
+2004-08-17 Gavin Sinclair <gsinclair@soyabean.com.au>
+
+ * lib/rubygems/specification.rb:
+ - #test_suite_file and #test_files now work on older gems.
+ - Added Specification.from_yaml for loading YAML gemspecs
+ - #to_ruby doesn't emit 'specification_version'
+
+ * lib/rubygems/gem_commands.rb: Updated test-on-install code to use
+ Specification#test_files instead of #unit_test_suite.
+
+ * lib/rubygems/old_format.rb: Use Specification.from_yaml
+ * lib/rubygems/package.rb: Ditto
+
+2004-08-17 Gavin Sinclair <gsinclair@soyabean.com.au>
+
+ * lib/rubygems/command.rb: --debug option to turn on $DEBUG
+ * lib/rubygems/config_file.rb: ditto
+
+2004-08-11 Rich Kilmer <rich@infoether.com>
+ * lib/rubygems/installer.rb: The application stub now defaults to
+ the latest version of the library, and optionally allows an initial
+ parameter conforming to _VERSION_ to be passed to select a prior
+ version of the library (this initial parameter, if present, is shifted
+ off of ARGV). This change was re-added...I erased it somehow :(
+
+2004-08-11 Gavin Sinclair <gsinclair@soyabean.com.au>
+
+ * lib/rubygems/gem_commands.rb:
+ - 'gem spec X' displays spec for _latest_ version of X. Added
+ '--all' option if you want to see all versions.
+ - RDocCommand code cleanup and slight change: document _all_
+ versions of the gem by default, not just the first.
+
+ * lib/rubygems/doc_manager.rb: removed 'kilmer' default template
+ option and obsolete error message.
+
+2004-08-12 Chad Fowler <chad@chadfowler.com>
+ * Added "gem rdoc" command for generating docs for already-installed
+ gems
+
+2004-08-11 Rich Kilmer <rich@infoether.com>
+ * bin/generate_yaml_index: updated to work with new gem format (and use the Gem::Format
+ class to read). Will deploy after testing on RubyForge.
+ * lib/rubygems/gem_commands.rb: generate rdoc by default on installs (I think this is
+ just good practice.
+ * lib/rubygems/remote_install.rb: raise an exception if dependent gems cannot be found
+ on remote_install
+
+2004-08-11 Chad Fowler <chad@chadfowler.com>
+ * lib/rubygems/gem_commands.rb: query is now case insensitive (as it used to be)
+ * lib/rubygems/installer.rb: gem_make.out wasn't being written when an extension failed to compile.
+
+2004-08-11 Rich Kilmer <rich@infoether.com>
+
+ * removed String.to_requirement...we should not modify
+ base classes in Ruby! modified to get rid of said to_requirement
+ with Gem::Version::Requirement.create(obj)
+
+ * specification.rb - fixed constructor bug of version requirement...
+ it now defaults to Requirement.default
+
+2004-08-11 Chad Fowler <chad@chadfowler.com>
+
+ * One more specification.rb bug fixed.
+
+2004-08-11 Gavin Sinclair <gsinclair@soyabean.com.au>
+
+ * lib/rubygems/specification.rb:
+ - Added convenience class methods: attribute_names,
+ attribute_defaults, default_value, required_attributes, and
+ required_attribute?.
+
+ - IMPORTANT: attribute readers now use lazy initialization, just
+ like some of them did before the 2004-08-01 change. This was done
+ to fix the breakage when loading older gemspecs.
+
+ - IMPORTANT: replaced instance variable access with attribute reader
+ method calls in many cases. This is in line with the above change.
+
+ - Good documentation for the "attribute" method.
+
+ - Renamed _copy -> _copy_of.
+
+ * lib/rubygems/cache.rb:
+ - Some fairly shallow changes. Exception handling needs improvement.
+
+ * lib/rubygems/version.rb:
+ - (Version.create) new method (for convenience)
+ - (Version::Requirement.create) new method (for convenience)
+ - (Version::Requirement.default) new method (for consistency)
+
+ * test/test_specification.rb: test attribute_names instead of
+ attributes. Other "class convenience" methods remain to be tested
+ at this stage. Also added test classes for legacy gemspecs.
+
+ * test/data/legacy/keyedlist-0.4.0.ruby: added.
+ * test/data/legacy/keyedlist-0.4.0.yaml: added.
+
+2004-08-06 Gavin Sinclair <gsinclair@soyabean.com.au>
+
+ * lib/rubygems/specification.rb:
+ - Added convenience class methods: attribute_names,
+ attribute_defaults, default_value, required_attributes, and
+ required_attribute?.
+
+ - IMPORTANT: attribute readers now use lazy initialization, just
+ like some of them did before the 2004-08-01 change. This was done
+ to fix the breakage when loading older gemspecs.
+
+ - Good documentation for the "attribute" method.
+
+ - Renamed _copy -> _copy_of.
+
+ * test/test_specification.rb: test attribute_names instead of
+ attributes. Other "class convenience" methods remain to be tested
+ at this stage.
+
+2004-08-01 Gavin Sinclair <gsinclair@soyabean.com.au>
+
+ * lib/rubygems/specification.rb:
+ - (Re)defined class methods: attribute, attributes,
+ required_attribute, read_only, overwrite_accessor. @@attributes
+ contains a list of attribute names and default values. This
+ allows higher-level specification of gemspec attributes, and the
+ handling of them in a DRY fashion.
+
+ - to_yaml_properties now includes all properties, to ensure
+ correct deserialization of a Gem::Specification object.
+
+ - #to_ruby and #to_yaml_properties rewritten to use @@attributes
+
+ - Introduced 'specification_version' attribute and three constants:
+ NONEXISTENT_SPECIFICATION_VERSION, CURRENT_SPECIFICATION_VERSION, and
+ SPECIFICATION_VERSION_HISTORY. This allows us to track changes to
+ the spec format.
+
+ - Refactored several "helper" methods, using the new class method
+ 'attribute_alias_singular', which provides a "singular" alias for
+ a "plural" attribute (e.g. require_path and require_paths).
+
+ - All gemspec attributes now defined in a uniform fashion, which
+ implies that they all have valid instance variables on
+ initialization. Previously, some attributes were lazily
+ initialized.
+
+ - Introduced attribute 'library_stubs', to allow the specification
+ of several stub files. (That feature not implemented, though.)
+
+ - Introduced attribute 'test_files' and deprecated 'test_suite_file'.
+
+ - Provided #warn_deprecated stub of a method, but don't know what to
+ do with it.
+
+ - Deprecated #has_test_suite? in favour of (new) #has_unit_tests?
+
+ - Used overwrite_accessor to provide special behaviour for the
+ setting of some attributes.
+
+ - The 'date' attribute is now a Date object. We don't need high
+ resolution, and Time objects, being system-dependent, are not nice
+ to deal with.
+
+ - Various code style changes.
+
+ - Summary: uniform treatment of gemspec attributes; reduced code by
+ refactoring; 'test_suite_file' deprecated for 'test_files';
+ 'library_stubs' introduced; spec versioning introduced.
+
+ * lib/rubygems/version.rb: (Dependency) added #to_s, #==, and an
+ alias (requirements_list -> requirement_list).
+
+ * test/test_specification.rb: several new tests: _singular_attributes,
+ _deprecated_attributes, _defaults, _to_{yaml,ruby}_and_back,
+ _directly_setting_dependencies_doesnt_work, and more. Plus a new
+ class to give Specification a more thorough workout (TestSpecificationComplex).
+
+ * scripts/runtest.rb: require 'pp' so it's always available in unit
+ tests.
+
+2004-07-30 Rich Kilmer <rich@infoether.com>
+
+ * lib/rubygems/installer.rb The application stub now defaults
+ to the latest version of the library, and optionally allows
+ an initial parameter conforming to _VERSION_ to be passed
+ to select a prior version of the library (this initial
+ parameter, if present, is shifted off of ARGV).
+
+ * lib/rubygems/version.rb correct? is now a class method on
+ Version enabling Gem::Version.correct?(...)
+
+ * lib/rubygems/install.rb make it so uninstalling a gem will
+ not remove executables if another version of that gem is
+ installed and needs those executables
+
+2004-07-26 Jim Weirich <jim@tardis>
+
+ * lib/rubygems.rb (Gem::Exception::latest_load_paths): Added
+ latest_load_paths and refactored all_load_paths to use common
+ code.
+
+2004-07-25 Rich Kilmer <rich@infoether.com>
+ * fixed bug in using --source in command.rb (removed short -s version)
+
+ * changed spec to use the RUBY_PLATFORM for Platform::CURRENT
+
+ * added ability to choose from list of available gems on remote install
+ if (1) some of the gems are binary and (2) there are move than one.
+ If the gems are all source gems, the latest is selected.
+
+2004-07-25 Jim Weirich <jim@weirichhouse.org>
+
+ * lib/rubygems.rb (Gem::Exception::all_load_paths): Added
+ all_load_paths utility function.
+
+ * bin/update_rubygems: Added a command to update the gem
+ installation based on a update gem.
+
+ * Rakefile: Pulled package file list out into a constant so it can
+ be reused between the package command and the gem package command.
+ Added a gem package target to support rubygems updates.
+
+2004-07-22 Gavin Sinclair <gsinclair@soyabean.com.au>
+
+ * lib/rubygems/version.rb:
+ * (Requirement#initialize) initialize @version to avoid warning
+ * (Dependency#initialize) initialize @version_requirement to avoid
+ warning
+
+2004-07-19 Chad Fowler <chad@chadfowler.com>
+ * install.rb: Shebang line should point to the ruby version used during
+ installation.
+
+2004-07-19 Assaph Mehr <assaph@avaya.com>
+ * lib/rubygems/command.rb, packages/sources/lib/sources.rb: Added
+ command-line-configurable sources.
+
+2004-07-18 Chad Fowler <chad@chadfowler.com>
+ * lib/rubygems/validator.rb: Fixed a bug that would cause "managed"
+ files to appear to be unmanaged due to differences in how the paths
+ were formatted.
+
+2004-07-17 Gavin Sinclair <gsinclair@soyabean.com.au>
+
+ * lib/rubygems/gem_commands.rb (InstallCommand#execute): removed clear
+ bug (name -> gem.name).
+
+2004-07-14 Rich Kilmer <rich@infoether.com>
+ * added old_format.rb which is used in the (hack) in format.rb
+ to detect the older version of a gem, and if present, switches
+ to that class instead.
+ * fixed the ARGV passing in bin/gem to ingore args past -- which
+ are used for passing params to source gems (extconf.rb)
+
+2004-07-13 Chad Fowler <chad@chadfowler.com>
+ * lib/rubygems/installer.rb, lib/rubygems/package.rb,
+ lib/rubygems/format.rb, test/test_package.rb: Added Mauricio
+ Fernandez's patch to replace old gem format with tar.gz format.
+ Fixed some failing unit tests that resulted. Still a couple left.
+ * lib/rubygems.rb: Fixed a bug introduced by the previous patch.
+
+2004-07-13 Gavin Sinclair <gsinclair@soyabean.com.au>
+
+ * lib/rubygems.rb: (#require_gem) added the ability to do
+ "require_gem 'rake/packagetask'", for instance, which is a
+ shortcut for "require_gem 'rake'; require 'rake/packagetask'".
+
+2004-07-13 Gavin Sinclair <gsinclair@soyabean.com.au>
+
+ * lib/rubygems/gem_commands.rb: refactored --version option
+ in all cases to the new VersionOption module.
+
+2004-07-13 Gavin Sinclair <gsinclair@soyabean.com.au>
+
+ * lib/rubygems/cmd_manager.rb: added 'unpack' command.
+
+ * lib/rubygems/gem_commands.rb (UnpackCommand): added.
+
+ * lib/rubygems/installer.rb (Installer#unpack): added.
+
+2004-07-09 Jim Weirich <jim@weirichhouse.org>
+
+ * lib/rubygems/user_interaction.rb (Gem::StreamUI::ask and
+ Gem::StreamUI::choose_from_list): Added flush before each gets.
+
+2004-07-05 Gavin Sinclair <gsinclair@soyabean.com.au>
+
+ * lib/rubygems/command.rb (Gem::Command#defaults_str): added.
+
+ * lib/rubygems/command.rb (Gem::Command#create_option_parser):
+ Defaults for the options are included in the parser output.
+
+ * lib/rubygems/gem_commands.rb: all commands which have options
+ and defaults now have #defaults_str implemented.
+
+2004-07-05 Jim Weirich <jim@weirichhouse.org>
+
+ * lib/rubygems/command.rb (Gem::Command#create_option_parser):
+ Make the argument and option sections optional. They are only
+ printed if there are options or arguments defined.
+
+2004-07-05 Gavin Sinclair <gsinclair@soyabean.com.au>
+
+ * lib/rubygems/gem_commands.rb:
+ - scrubbed up the 'help' command a bit, removing its options
+ - added information to 'help commands'
+
+2004-07-04 Gavin Sinclair <gsinclair@soyabean.com.au>
+
+ * lib/rubygems/gem_commands.rb:
+ - modified generic help and examples
+ - improved 'list' and 'search' help, and fixed bug in 'search'
+
+ * lib/rubygems/cmd_manager.rb:
+ - explicit support for top-level commands --help and --version
+ - no more support for --examples and --commands
+
+2004-07-04 Gavin Sinclair <gsinclair@soyabean.com.au>
+
+ * lib/rubygems/gem_commands.rb:
+ - added 'list' and 'search' commands ('list' is no longer an alias
+ for 'query')
+ - modified return value from all 'arguments' methods (see command.rb)
+
+ * lib/rubygems/cmd_manager.rb: added 'search' command.
+
+ * lib/rubygems/command.rb:
+ (Command#create_option_parser): enhanced the option parser for 'help'
+ display
+ (Command#remove_option): added (to support 'list' and 'search')
+
+ * Rakefile: added 'gem' target. Runs "local" (not installed) command
+ and libraries.
+
+2004-07-04 Gavin Sinclair <gsinclair@soyabean.com.au>
+
+ * Rakefile: added 'install' target.
+
+ * lib/rubygems/cmd_manager.rb: code formatting.
+
+ * lib/rubygems/gem_commands.rb:
+ - refactored common install and update options into new module
+ InstallUpdateOptions
+ . consolidated option pairs (e.g. --test & --no-test ==> --[no-]test)
+ . --gen-rdoc is now --rdoc
+ - (UninstallCommand) corrected typo
+ - (InstallCommand) corrected output with local install
+
+ * test/test_parse_commands.rb: :%s/--gen-rdoc/--rdoc/g
+
+2004-07-03 Jim Weirich <jim@weirichhouse.org>
+
+ * lib/rubygems/gem_commands.rb (Gem::InstallCommand::initialize):
+ Added --no-gen-rdoc and --no-test to allow the user to override
+ .gemrc default options.
+
+ * lib/rubygems/doc_manager.rb (Gem::DocManager::generate_rdoc):
+ Concatenate the local rdoc options to the end of the spec's rdoc
+ options.
+ (Gem::DocManager::configured_args): Added configured_args as a
+ place to store local rdoc options.
+
+ * lib/rubygems/gem_runner.rb (Gem::GemRunner::do_configuration):
+ Configuration handled in do_configuration now.
+ (Gem::GemRunner::do_configuration): Set the local rdoc
+ configuration from the config file.
+
+ * lib/rubygems/command.rb (Gem::Command::handles): Added a
+ handles? method to Command so that we can detect which extra
+ arguments can be used with a command.
+ (Gem::Command::add_extra_args): New method to add the config
+ file's extra arguments to the front of the argument list.
+ (Gem::Command::extra_args): Added extra_args to Command class to
+ hold the extra args discovered in the config file.
+
+ * Rakefile: Added TEST=filename option to all the test targets.
+
+ * test/functional.rb (FunctionalTest::test_gemrc): Added
+ functional test for gemrc.
+
+ * scripts/gemdoc.data: Added an example to the specification command.
+
+ * lib/rubygems.rb (Gem::Exception::manage_gems): Added gem_runner
+ and config_file to manage_gems.
+ (Gem::Exception::use_paths): use_paths now accepts (and ignores)
+ nil parameters.
+
+ * bin/gem: Make Gem::GemRunner the top level object. It now
+ creates and calls the CommandManager /after/ the arguments are
+ processed.
+
+ * Rakefile: Added test/data/gemhome to clobber list.
+
+2004-07-01 Jim Weirich <jim@weirichhouse.org>
+
+ * test/test_specification.rb
+ (TestSpecification::test_rdoc_files_included): Test for rdoc files
+ included in file list. Test for redundent file removal.
+
+ * lib/rubygems/specification.rb (Gem::Specification::validate):
+ Added gem version to validation requirement. Added normalize to
+ remove redundent files in lists.
+
+ * lib/rubygems/gem_commands.rb (Gem::InfoCommand::usage): Added
+ usage and arguments methods for InfoCommand.
+ (Gem::SpecificationCommand::usage): Fixed several usage comments.
+
+2004-06-30 Jim Weirich <jim@weirichhouse.org>
+
+ * lib/rubygems/gem_commands.rb (Gem::InstallCommand::usage):
+ Upcased the comment on the usage statement (and corresponding
+ option). This makes the variable part of the command
+ (e.g. GEMNAME) stand out from the static parts.
+
+ * lib/rubygems/cmd_manager.rb (Gem::CommandManager::process_args):
+ Downcased commands before searching (allows upper case or mixed
+ case for commands on command line).
+
+ * install.rb (install_rb): Fixed bug where the installer falsely
+ triggered the old repository upgrade when the directory part of
+ the file contained the matching "-digits." pattern. Now the
+ pattern must be in the file's base name.
+
+2004-06-26 Gavin Sinclair <gsinclair@soyabean.com.au>
+
+ * scripts/specdoc.rb: added (to generate gem specificiation document)
+ * scripts/specdoc.data: added (supports specdoc.rb)
+ * scripts/specdoc.yaml: added (supports specdoc.rb)
+
+2004-06-27 Jim Weirich <jim@weirichhouse.org>
+
+ * scripts/gemdoc.data Removed extraneous <em> marker.
+
+ * lib/rubygems/specification.rb
+ (Gem::Specification::satisfies_requirement): HA! Caught another
+ version_requirement vs version_requirements error. (I really
+ regret the decision to change that name.)
+
+ * lib/rubygems/installer.rb (Gem::Uninstaller::has_dependents):
+ Changed call to alert to alert_warning.
+
+ * lib/rubygems/gem_commands.rb (Gem::UninstallCommand::execute):
+ Again, remove local error handling to allow the error to perculate
+ up the chain to the top level.
+
+ * lib/rubygems/doc_manager.rb (Gem::DocManager::generate_rdoc):
+ Removed one level of exception handling. Only catching RDocErrors
+ at the outermost level. And instead of reporting the error and
+ swallowing it, I convert it to a Gem::DocumentError (with the same
+ error message). This is for better error handling.
+
+ * lib/rubygems/command.rb (Gem::Command::handle_options): Removed
+ exception handling from handle_options. This allows errors to be
+ handled at the top level. Makes for a more consistent error
+ interface.
+
+ * lib/rubygems/doc_manager.rb (Gem::DocumentError): Added
+ DocumentError to wrap RDocErrors (which derive from Exception
+ ... yuck).
+
+ * lib/rubygems/cmd_manager.rb (Gem::RemoteError): RemoteError and
+ LocalInstallationError are now Gem::Exceptions (rather than
+ StandardErrors).
+
+ * lib/rubygems.rb (Gem::Exception): Changed base of Gem::Exception
+ to RuntimeError (was ::Exception). Apps using gem as a library
+ would have to catch Gem::Exceptions explicitly (yuck), or catch
+ Exceptions generically. Catching Exceptions will catch
+ EVERYTHING, including things like SystemExit. By makeing
+ Gem::Exception a RuntimeError, apps can catch RuntimeError or even
+ StandardError.
+
+2004-06-26 Jim Weirich <jim@weirichhouse.org>
+
+ * test/functional.rb (FunctionalTest::test_all_command_helps):
+ Added functional test to show all commands have usage messaegs.
+
+ * lib/rubygems/gem_commands.rb (Gem::HelpCommand::execute): Added
+ version option to help (gem help version).
+ (Gem): Cleaned up the help text. Dropped unneeded verbage.
+
+ * lib/rubygems/cmd_manager.rb
+ (Gem::CommandManager::find_command_possibilities): Added
+ find_command_possibilities to help the Help command look for
+ commands.
+
+ * lib/rubygems/installer.rb (Gem::Uninstaller::uninstall): Fixed
+ null pointer bug where a list was destroyed in a method.
+
+ * lib/rubygems/gem_commands.rb (Gem::BuildCommand::load_gemspecs):
+ yaml gemspec files are now accepted by the build command.
+
+ * lib/rubygems/command.rb (Gem::Command::parser): Created an
+ on-demand option parser for all commands.
+ (Gem::Command::handle_options): Command line option hash is now
+ and instance variable with a reader.
+
+ * Rakefile: Linked package version to the value in the rubygems.rb
+ file. The gem env command now shows both gem version (e.g. 0.6)
+ and the package version (e.g. 0.6.1).
+
+2004-06-25 Jim Weirich <jim@weirichhouse.org>
+
+ * lib/rubygems/gem_commands.rb (Gem::InfoCommand): Dropped the
+ version command (its available via gem env). Added a gem info
+ command to extract the yaml from a gemfile.
+ (Gem::LocalRemoteOptions): Refactored the local/remote options
+ (adding and testing) into a mixin module.
+
+ * test/test_version_comparison.rb
+ (TestDependencies::test_normalization): Added some tests for the
+ normalization issues mentions below.
+
+ * lib/rubygems/version.rb (Gem::Dependency::normalize): Old gems
+ have requirements and dependencies incoded in the Yaml spec in an
+ out of date format. When loaded, they have incorrect instance
+ variables for modern objects. I added a normalize call to handle
+ transforming out dated objects in to modern objects. (Remember
+ this next time we change the data structure of something in the
+ spec file.)
+ (Gem::Version::Requirement::parse): Requirements are comparable
+ now, just so that we can test them with asserts.
+
+ * lib/rubygems/remote_installer.rb
+ (Gem::RemoteInstaller::find_dependencies_not_installed): Fixed
+ recursive call to require_gem to properly pass dependency
+ information.
+
+ * lib/rubygems/installer.rb (Gem::Uninstaller::has_dependents):
+ Fixed reference to version_requirement (needs to be plural).
+
+ * lib/rubygems/command.rb (Gem::Command::invoke): Command now
+ handles it own help messages. Commands no longer have to return
+ true/false to trigger help messages.
+
+ * lib/rubygems/cmd_manager.rb (Gem::CommandManager::process_args):
+ Moved help handling into the help command.
+
+ * lib/rubygems/gem_commands.rb (Gem::HelpCommand): Renamed the
+ base command to HelpCommand and made it handle a lot of the help
+ options. Still need work on individual command helps.
+
+ * test/functional.rb (FunctionalTest::test_env_version): Added a
+ bunch of new functional tests for the environment command.
+
+ * lib/rubygems/gem_commands.rb (Gem::InstallCommand::execute):
+ Made multiple gem names an error for now. Should look at later.
+
+ * lib/rubygems/cmd_manager.rb (Gem::ListCommand): Added list as an
+ alias to query.
+ (Gem::UpdateCommand::initialize): Corrected spelling of install
+ (intall) in several places.
+
+ * bin/gem_server: Added Gem.manage_gems to the gem_server to fix
+ missing requirements.
+
+ * lib/rubygems/cmd_manager.rb (Gem::InstallCommand::initialize):
+ Added missing --both option to install.
+
+ * test/test_command.rb
+ (TestCommand::test_invode_with_bad_options): Catch the termination
+ request.
+
+ * test/mockgemui.rb (MockGemUi::terminate_interaction): Make the
+ mock UI throw an exception when a termination is requested. This
+ makes sure that we don't miss accidental terminations.
+
+ * lib/rubygems/cmd_manager.rb (Gem::CommandManager::find_command):
+ Added find_command to handle best matching command names.
+
+ * test/functional.rb (FunctionalTest::test_build): Updated
+ functional tests to use the new command structure.
+
+ * lib/rubygems/version.rb (Gem::Version::Requirement): Changed the
+ pessimistic version comparison operator to "~>". I like to think
+ of it as "approximately greater than". (It was ">*").
+
+ * bin/gem: Moved gem2 into the standard gem script location. It
+ is now stable enough to use as the standard command.
+
+ * lib/rubygems/cmd_manager.rb (Gem::CommandManager::run): Added
+ run method to trap errors while running commands. Makes for
+ prettier output.
+ (Gem::CommandManager): Move *all* commands to their own classes.
+ Simplified CommandManager. Lowered the coupling between
+ CommandManager and the Commands (the commands don't even need to
+ know about the manager anymore). CommandManager maybe created
+ with "new" for testing (the script will continue to use
+ "instance").
+ (Gem::RubyGemsInfoCommand): New command.
+ (Gem::VersionCommand): New command.
+
+2004-06-24 Jim Weirich <jim@weirichhouse.org>
+
+ * lib/rubygems/user_interaction.rb (Gem::UserInteraction):
+ Significantly rewrote the whole user interaction scheme. We are
+ now using an UI object that responds to the standard list of UI
+ commands (e.g. say, alert, ask). The UserInteraction module
+ defines all the interaction methods to be forwarded to the default
+ UI objects. The "ui" method returns that default object (and you
+ can use self.ui=(new_ui) to change it). Also the use_ui(new_ui) {
+ } command is convienent for switching the UI object for a short
+ period of time.
+
+2004-06-18 Rich Kilmer <rich@infoether.com>
+ * broke test_cmd_manager.rb into test_parse_commands and
+ test_process_commands to test the parsing of command line options
+ and the funtionality, respectively.
+
+2004-06-18 Rich Kilmer <rich@infoether.com>
+ * added new unit test file: test/test_cmd_manager.rb to test the
+ command manager classes. this is just the first few tests which
+ will be expanded to a full test suite.
+
+2004-06-17 Chad FOwler <chad@chadfowler.com>
+
+ * lib/rubygems/installer.rb: Fixed bug in windows batch file generation
+ which was causing file not found errors.
+ * lib/rubygems/installer.rb: Uninstall now removes scripts and batch
+ * lib/rubygems/specification.rb: Fixed install bug. Thanks to Mark
+ Sparshatt for the fix (via the rubyforge bug tracker).
+
+2004-06-17 Jim Weirich <jim@weirichhouse.org>
+
+ * lib/rubygems/doc_manager.rb (Gem::DocManager::generate_rdoc):
+ Changed rdoc generation to do a chdir into the base source
+ directory and then to use a relative path for all the source
+ files. This makes the generated RDOC html look better and may fix
+ the windows drive/rdoc bug as a side effect.
+
+2004-06-17 Rich Kilmer <rich@infoether.com>
+ * Added ability to capture the UserInteraction with:
+ c = Gem::UserInteraction.capture
+ and then you can override specific methods like 'say':
+ c.on_say {|statement| puts "you said: #{statement}"}
+
+2004-06-15 Rich Kilmer <rich@infoether.com>
+ * Added refactored command handling in rubygems/cmd_manager.rb and a
+ (temporary) bin/gem2 command file to test things out. Once we feel
+ comfortable, we can replace gem with gem2.
+
+2004-06-10 Rich Kilmer <rich@infoether.com>
+ * Isolated all user interaction to pass through module methods on a new
+ Gem::UserInteraction module. Those methods will be the method of abstracting
+ the interaction of RubyGems for use in a GUI-based solution.
+
+2004-06-10 Rich Kilmer <rich@infoether.com>
+ * require 'rubygems' now minimally requires only the files needed
+ for runtime access to gems...not management of gems. To manage
+ gems you now additionally need to execute Gem::manage_gems prior
+ to using the builder/installer/etc. This makes gemspecs not
+ backward compatible unless they add that line to the gemspec
+ after the require 'rubygems' line.
+
+2004-06-10 Gavin Sinclair <gsinclair@soyabean.com.au>
+ * bin/gem: --upgrade-all was broken, probably as a result of the
+ search changes listed below.
+
+2004-06-09 Chad Fowler <chad@chadfowler.com>
+ * lib/rubygems/remote_install.rb: delegate search functionality to
+ Cache class, bringing remote and local search and list together into
+ one piece of code.
+ * bin/gem, lib/rubygems/validator.rb: move all STDIO work to bin/gem.
+ Validator.alien now returns a hash of ErrorData objects.
+ * bin/gem, lib/rubygems/installer.rb: move most of the STDIO stuff to
+ bin/gem, communicating via exceptions in this case.
+
+2004-06-08 Rich Kilmer <rich@infoether.com>
+ * Fixed the drive problem on win32 (hopefully) so multiple drives
+ should now work. Its still a hack until rdoc is fixed.
+
+2004-06-08 Chad Fowler <chad@chadfowler.com>
+ * Fixed bug caused by method change on Version::Requirement
+
+2004-06-08 Rich Kilmer <rich@infoether.com>
+ * fixed bug in doc_manager.rb whereby the extra_rdoc_files should
+ be appended to the list of directories prior to prepending the
+ full path.
+
+2004-06-08 Gavin Sinclair <gsinclair@soyabean.com.au>
+ * bin/gem_server: List installed gems in [name,version] order.
+
+2004-06-08 Gavin Sinclair <gsinclair@soyabean.com.au>
+ * lib/rubygems/installer.rb: don't warn about not being able to
+ install a library stub if a library stub is already installed.
+ Still warn if it's not a library stub that's there already.
+
+2004-06-08 Gavin Sinclair <gsinclair@soyabean.com.au>
+ * bin/gem: renamed --upgrade-dist to --upgrade--all and fixed bug.
+ * lib/rubygems/installer.rb: fixed bug with Ruby version assertion.
+
+2004-06-07 Chad Fowler <chad@chadfowler.com>
+ * lib/rubygems/remote_installer.rb, lib/rubygems/version.rb: Fixed old
+ dependency on #version method for Gem::Version::Requirement
+ * bin/gem: new --upgrade-dist option allows one to upgrade every
+ installed gem
+ * lib/rubygems/specification.rb,lib/rubygems/installer.rb: new
+ #required_ruby_version attribute added to gem specification for specifying a
+ dependency on which version of ruby the gem needs. Format it accepts is
+ the same as the Gem::Version::Requirement format.
+
+2004-06-06 Chad Fowler <chad@chadfowler.com>
+ * bin/gem: install_stub is once again the default due to requests.
+
+2004-06-04 Chad Fowler <chad@chadfowler.com>
+ * lib/rubygems/specification.rb, lib/rubygems/doc_manager.rb:
+ Allow arbitrary files to be added for rdoc to run over them (as per
+ Jim's request).
+
+2004-06-04 Chad Fowler <chad@chadfowler.com>
+ * bin/gem: Reformatted --search and --list output such that
+ multiple versions of a gem are compressed into a single entry
+ (with version numbers in parentheses)
+
+2004-05-31 Jim Weirich <jweirich@one.net>
+
+ * lib/rubygems/version.rb (Gem::Dependency): Dependency attribute
+ renamed to version_requirements (made plural).
+ (Gem::Version::bump): Added bump to implement pessimistic
+ operator.
+ (Gem::Version::Requirement): Added pessimistic operator to list of
+ operators. Operators now implemented using lambda.
+
+ * lib/rubygems.rb (Kernel::require_gem): require_gem now takes an
+ array of requirement strings.
+
+ * lib/rubygems/version.rb (Gem::Version::Requirement::initialize):
+ Simplified initialization by making parse a bit smarter.
+ (Gem::Version::Requirement::satisfied_by): Simplified by using
+ all?
+ (Gem::Version::Requirement::satisfy): Added explicit one
+ requirement satisfy test.
+ (Gem::Version::Requirement::parse): parse now returns a two
+ element string array (operator and version string). We don't
+ bother converting to an integer array during parsing.
+
+2004-05-31 18:38 chadfowler
+
+ * gemspec now supports #rdoc_options, to which you can append
+ strings that will be passed to rdoc as additional options.
+
+2004-05-08 21:57 chadfowler
+
+ * Using Gem::RubyGemsVersion to match the release number. If we
+ need to use this as an internal version format specifier in the
+ future, we can use the Gem::Version semantics.
+
+2004-05-30 14:33 gsinclair
+
+ * bin/gem: Split --help into --help (basic), --help-options (what
+ --help used to be), and --help-examples.
+
+2004-04-30 15:57 chadfowler
+
+ * bin/gem: --install-stub is no longer the default ;)
+
+2004-04-30 15:51 chadfowler
+
+ * lib/rubygems/installer.rb: Rich Kilmer (who kicks butt) figured
+ out how to fix the library stub stuff.
+
+2004-04-29 19:12 chadfowler
+
+ * lib/rubygems/doc_manager.rb: Dick Davies fixed a bug in the doc
+ generator.
+
+2004-04-29 13:41 gsinclair
+
+ * lib/rubygems/installer.rb: Added skeleton code and comments to
+ uninstall stub apps and libs
+
+2004-04-29 12:20 gsinclair
+
+ * install.rb: Don't install library stub for 'sources'
+
+2004-04-29 12:20 gsinclair
+
+ * lib/rubygems/installer.rb: Improvements to library stub
+ installation: * don't overwrite existing file (emit warning) *
+ nice warning if there's a permission problem * observe
+ --[no-]install-stub flag (rather, observe the argument to
+ #install)
+
+2004-04-29 12:16 gsinclair
+
+ * bin/gem: --install-stub is now the default
+
+2004-04-26 20:20 chadfowler
+
+ * test/test_remote_installer.rb: Cleaning up after Gavin and his
+ test-breaking self. ;)
+
+2004-04-26 12:06 gsinclair
+
+ * bin/gem, lib/rubygems/installer.rb,
+ lib/rubygems/remote_installer.rb: Installing a gem now causes a
+ library stub to be installed as well, allowing you to require
+ 'package' without knowing it's a gem.
+
+2004-04-25 23:18 chadfowler
+
+ * lib/rubygems/: installer.rb, specification.rb: Prompt user if
+ trying to uninstall a gem that other gems *may* depend on.
+
+2004-04-25 09:27 chadfowler
+
+ * test/test_remote_installer.rb: Changed expected test results to
+ match new (old) gem naming scheme--"ruby" doesn't appear as a
+ platform in the gem name.
+
+2004-04-25 05:50 gsinclair
+
+ * bin/gem: Changed @directory -> @install_dir for clarity
+
+2004-04-25 05:47 gsinclair
+
+ * bin/gem: Improved display of gems, platform-wise
+
+2004-04-25 05:46 gsinclair
+
+ * lib/rubygems/specification.rb: Added documentation
+
+2004-04-25 04:17 jimweirich
+
+ * test/functional.rb: Fixed functional test to properly name a Ruby
+ platform gem.
+
+2004-04-25 04:17 jimweirich
+
+ * packages/sources/.cvsignore, test/data/one/.cvsignore: Ignore the
+ proper gem name.
+
+2004-04-25 04:17 jimweirich
+
+ * lib/rubygems/specification.rb: Undefined several attributes that
+ were redefined to avoid warnings.
+
+2004-04-25 04:17 jimweirich
+
+ * lib/rubygems.rb: Need to initialize @gem_home and @gem_path with
+ ||= to avoid warning.
+
+2004-04-25 03:40 gsinclair
+
+ * lib/rubygems.rb, test/test_gempaths.rb: RUBY_GEMS -> GEM_PATH
+ (environment variable)
+
+2004-04-25 03:33 gsinclair
+
+ * lib/rubygems/specification.rb: Pretty-print the specification
+
+2004-04-25 03:18 gsinclair
+
+ * lib/rubygems/specification.rb: Handle platform in a (hopefully)
+ consistent manner
+
+2004-04-25 03:16 gsinclair
+
+ * install.rb: Use return value from Builder#build to locate gem
+ file
+
+2004-04-25 03:09 gsinclair
+
+ * lib/rubygems/builder.rb: Return file name from #build
+
+2004-04-25 02:32 gsinclair
+
+ * lib/rubygems/specification.rb: Platform goes at the *end* of the
+ full name now.
+
+2004-04-22 06:19 chadfowler
+
+ * test/test_remote_installer.rb: Fixed test to reflect fewer cache
+ sources :(
+
+2004-04-21 17:19 rich
+
+ * lib/rubygems/remote_installer.rb: added support to download the
+ yaml index as a .Z (zlib compressed) file if it exists, then move
+ on to the plain yaml file if it does not
+
+2004-04-20 20:23 chadfowler
+
+ * examples/application/an-app.gemspec, lib/rubygems/format.rb,
+ packages/sources/lib/sources.rb: Committed Dick Davies' patch to
+ fix broken tests.
+
+2004-04-18 01:51 gsinclair
+
+ * bin/gem, lib/rubygems/doc_manager.rb: RDoc generation observes
+ 'rdoc' config file value
+
+2004-04-17 12:15 gsinclair
+
+ * bin/gem: Improved 'build' error output
+
+2004-04-17 12:12 gsinclair
+
+ * lib/: rubygems.rb, rubygems/remote_installer.rb,
+ rubygems/specification.rb, rubygems/validator.rb: All
+ gems-related exceptions now extend Gem::Exception
+
+2004-04-17 12:11 gsinclair
+
+ * lib/rubygems/specification.rb: Improved handling of summary and
+ decription strings - convert to single line
+
+2004-04-17 01:09 gsinclair
+
+ * bin/gem: Prevent remote install attempt if local install was
+ successful
+
+2004-04-17 00:49 gsinclair
+
+ * lib/rubygems/builder.rb: Better formatted the output code
+
+2004-04-16 21:31 gsinclair
+
+ * lib/rubygems/remote_installer.rb: Stoopid coding error (thanks
+ Kent Sibilev)
+
+2004-04-16 00:00 rich
+
+ * lib/rubygems/installer.rb: added code to optionally use nmake
+ instead of make on win32 systems
+
+2004-04-15 20:12 gsinclair
+
+ * bin/gem, lib/rubygems/remote_installer.rb: Clarified proxy
+ handling and interface: --[no-]http-proxy [URL]
+
+2004-04-13 00:16 jimweirich
+
+ * bin/gem, test/bogussources.rb, test/functional.rb: Oops, missed
+ an instance of GEM_PATH in the gem binary.
+
+2004-04-12 21:28 jimweirich
+
+ * lib/rubygems/cache.rb: Oops. Missed a GEM_PATH.
+
+2004-04-12 21:11 jimweirich
+
+ * test/test_remote_installer.rb: removed setting of environment
+ variable for now.
+
+2004-04-12 21:09 jimweirich
+
+ * Rakefile, lib/rubygems.rb, lib/rubygems/cache.rb,
+ lib/rubygems/installer.rb, packages/sources/.cvsignore,
+ scripts/runtest.rb, test/.cvsignore, test/bogussources.rb,
+ test/test_format.rb, test/test_gempaths.rb,
+ test/test_remote_installer.rb, test/test_validator.rb: Added
+ test/temp to the clobber list. Broke out tests into inline to
+ avoid test dependencies on rubygem.
+
+2004-04-12 07:52 chadfowler
+
+ * lib/: rubygems.rb, rubygems/installer.rb,
+ rubygems/remote_installer.rb: Cleaning up output strings wrt
+ formating of "gem (version)".
+
+2004-04-12 07:41 chadfowler
+
+ * lib/rubygems/installer.rb: Gavin Sinclair's uninstall bug.
+
+2004-04-11 15:26 jimweirich
+
+ * test/data/one/: .cvsignore, one-ruby-0.0.1.gem: removed
+ one-ruby*.gem from source control. This gem is automatically
+ generated in testing.
+
+2004-04-11 10:50 chadfowler
+
+ * bin/gem: Gavin Sinclair's test code enhancements
+
+2004-04-11 07:50 chadfowler
+
+ * bin/gem, lib/rubygems/installer.rb,
+ lib/rubygems/remote_installer.rb, lib/rubygems/specification.rb,
+ test/insure_session.rb, test/test_remote_installer.rb,
+ test/data/one/one-ruby-0.0.1.gem: Gavin Sinclair patches to make
+ installer return types less ambiguous.
+
+2004-04-09 10:29 chadfowler
+
+ * lib/rubygems/installer.rb, test/data/one/one-ruby-0.0.1.gem: gem
+ -u input validation patch by Ville Aine
+
+2004-04-07 07:49 chadfowler
+
+ * bin/gem, lib/rubygems/cache.rb, test/data/one/one-ruby-0.0.1.gem:
+ Finally have passing tests.
+
+2004-04-07 07:24 chadfowler
+
+ * lib/rubygems/remote_installer.rb,
+ test/data/one/one-ruby-0.0.1.gem: Allow default option to work on
+ remote dependency prompt.
+
+2004-04-07 07:05 chadfowler
+
+ * lib/rubygems/remote_installer.rb, test/test_remote_installer.rb,
+ test/data/one/one-ruby-0.0.1.gem: Applied George Marrows' patch
+ to remote_install
+
+2004-04-07 06:23 chadfowler
+
+ * bin/gem, test/data/one/one-ruby-0.0.1.gem: No longer "seeing"
+ double on remote searches
+
+2004-04-05 07:39 chadfowler
+
+ * Rakefile, test/test_remote_installer.rb,
+ test/data/one/one-ruby-0.0.1.gem: remote_installer tests aren't
+ completely hosed anymore.
+
+2004-04-05 06:16 chadfowler
+
+ * Rakefile, test/data/one/one-ruby-0.0.1.gem: Rake target for
+ running all tests (unit + functional) "alltests"
+
+2004-04-05 00:48 jimweirich
+
+ * test/: insure_session.rb, data/one/README.one,
+ data/one/one-ruby-0.0.1.gem, data/one/one.gemspec,
+ data/one/lib/one.rb: added for functional tests
+
+2004-04-05 00:48 jimweirich
+
+ * test/functional.rb: Moved session gem detection to insure_session
+ file. Modified functional tests to use gem command. Removed
+ some directory stuff because rake guarantees the starting
+ directory. Added test_info functional test. Added test_build
+ functional test. Added assert status.
+
+2004-04-05 00:48 jimweirich
+
+ * lib/rubygems/remote_installer.rb: Changed exceptions to inherit
+ from RunTimeError
+
+2004-04-05 00:48 jimweirich
+
+ * bin/gem: Changed Installer to RemoteInstaller in rubygems-info.
+
+2004-04-05 00:48 jimweirich
+
+ * Rakefile: Added generated test gem to clobber list. Added
+ functional test target to rakefile.
+
+2004-04-04 21:17 chadfowler
+
+ * packages/sources/lib/sources.rb: Added gems mirror at
+ http://gems.chadfowler.com
+
+2004-04-04 20:51 chadfowler
+
+ * bin/gem, lib/rubygems/remote_installer.rb, test/functional.rb:
+ More improved error messages (don't show stack trace when using
+ bin/gem)
+
+2004-04-04 20:43 chadfowler
+
+ * lib/rubygems/cache.rb: Only read specs that end in "gemspec".
+ The code doesn't handle non-gemspecs very well at all.
+
+2004-04-04 20:15 chadfowler
+
+ * test/mock/gems/specifications/sources-0.0.1.gemspec: [no log
+ message]
+
+2004-04-04 20:09 chadfowler
+
+ * test/mock/gems/gems/sources-0.0.1/lib/sources.rb: Rearranging
+ things a bit
+
+2004-04-04 20:02 chadfowler
+
+ * bin/gem, lib/rubygems/remote_installer.rb, test/bogussources.rb,
+ test/functional.rb: Better error messages on unresolvable host.
+
+2004-04-04 12:50 chadfowler
+
+ * redist/session.gem, test/bogussources.rb, test/functional.rb:
+ Added the beginnings of a functional test suite.
+
+2004-04-03 22:02 chadfowler
+
+ * lib/rubygems/validator.rb: Just had to explicitly rescue
+ VerificationError. All is well.
+
+2004-04-03 22:01 chadfowler
+
+ * lib/rubygems/validator.rb: Mauricio fixed a problem with alien
+ (just failed to update it when we changed the gem directory), but
+ now there's another issue I can't find. Anyway, this fix is
+ obviously needed. But alien is broken anyway.
+
+2004-04-03 21:57 chadfowler
+
+ * install.rb, lib/rubygems/builder.rb: Batsman's bug report and
+ code for the bugs I introduced today. :)
+
+2004-04-03 09:50 chadfowler
+
+ * lib/rubygems/specification.rb: Defaulting a spec's require_path
+ to [] to avoid downstream errors.
+
+2004-04-03 09:06 chadfowler
+
+ * lib/rubygems/builder.rb, test/test_builder.rb: builder now
+ validates the gemspec.
+
+2004-04-03 08:48 chadfowler
+
+ * lib/rubygems/specification.rb, test/test_specification.rb: Added
+ checking for gem specs to make sure they have all required
+ attributes.
+
+2004-04-03 08:06 chadfowler
+
+ * gemspecs/rublog.gemspec: My original rublog gem was broken, in
+ that it didn't have a require_path.
+
+2004-04-02 07:48 chadfowler
+
+ * lib/rubygems/remote_installer.rb: Prompt for installation of
+ dependencies.
+
+ For now, there is a puts/gets in the middle of
+ remote_installer.rb This should probably be cleaned up later
+ (return control flow to the gem program to install the
+ dependencies, for example.
+
+2004-04-02 07:37 chadfowler
+
+ * TODO: [no log message]
+
+2004-04-02 07:34 chadfowler
+
+ * test/: simple_gem.rb, test_format.rb: Some things I forgot to cvs
+ add earlier.
+
+2004-04-02 07:29 chadfowler
+
+ * example/: test.gemspec, lib/test.rb, lib/test/wow.rb: Removing
+ example directory in favor of "examples" directory (just better
+ organized).
+
+2004-04-02 07:26 chadfowler
+
+ * test/test_all.rb: Removed test_all.rb. Rake is obviously a
+ better way to do it.
+
+2004-03-31 19:13 chadfowler
+
+ * lib/rubygems/format.rb, lib/rubygems/installer.rb,
+ lib/rubygems/validator.rb, test/test_all.rb,
+ test/test_validator.rb: More tests and refactoring to support
+ them.
+
+2004-03-30 02:41 rich
+
+ * lib/rubygems/installer.rb: allow passing parameters to extconf.rb
+ with:
+
+ ruby -i blah.gem --local -- --with-option
+
+ everything past the -- will go to the extconf.rb...just like
+ setup.rb
+
+2004-03-30 02:34 rich
+
+ * lib/rubygems/: installer.rb, specification.rb: very initial
+ capability to build source gems. this only lets you build native
+ extensions so long as you do not have to specify --with-
+ directories
+
+2004-03-29 08:31 rich
+
+ * install.rb: switched migration of old gems to new ./gems subdir
+ to use FileUtils rather than ftools...hope to fix reported win32
+ error.
+
+2004-03-29 01:04 rich
+
+ * lib/rubygems/doc_manager.rb: fixed bug in pathing based on new
+ directory structure
+
+2004-03-29 01:03 rich
+
+ * lib/rubygems/remote_installer.rb: fixed bug in default for proxy
+ (should default to nil not true)
+
+2004-03-29 01:03 rich
+
+ * bin/gem: updated with patch to allow for config file with minor
+ difference from gavin's patch which passes a nil to the
+ RemoteInstaller if the proxy does not exist
+
+2004-03-28 23:22 rich
+
+ * install.rb: added code to migrate gems if they are in the old
+ directory structure
+
+2004-03-28 21:30 rich
+
+ * install.rb, lib/rubygems.rb, lib/rubygems/installer.rb,
+ lib/rubygems/specification.rb: changed path of installed gems to
+ be:
+
+ ruby/gems/1.8/gems
+
+ which cleans up the root.
+
+2004-03-28 18:53 chadfowler
+
+ * test/test_all.rb: This is the file to run for all of the tests.
+
+ test_remote_installer is commented out for now. The open URI
+ patch that George gave us makes the code a lot nicer to look at,
+ but a little harder to test.
+
+2004-03-28 18:50 chadfowler
+
+ * lib/rubygems/remote_installer.rb, test/test_cache.rb,
+ test/test_remote_installer.rb: Added some tests for cache search
+
+2004-03-28 12:19 chadfowler
+
+ * bin/gem, lib/rubygems/validator.rb, test/test_validator.rb: Some
+ tests for the validator.
+
+ Made the validator more testable.
+
+2004-03-28 09:30 chadfowler
+
+ * bin/gem, lib/rubygems/validator.rb: Fixed a problem with false
+ alarms in the validator.
+
+2004-03-27 08:23 chadfowler
+
+ * bin/gem: No longer have an option to pass http proxy host into
+ the gem program. Only reads it from the environment. This is
+ because George's patch (and open-uri) work this way, and I'm lazy
+ right now.
+
+2004-03-27 08:17 chadfowler
+
+ * lib/rubygems/remote_installer.rb: George Marrows' nice patch to
+ remove a bunch of code from remote_installer.
+
+ Our remote_installer tests are failing. We really need to start
+ paying attention to the test directory. :(`
+
+2004-03-24 23:26 jimweirich
+
+ * install.rb: Do not install commands ending in ~.
+
+2004-03-24 23:25 jimweirich
+
+ * lib/rubygems/specification.rb: Changed executables from accessor
+ to writer to avoid redefinition.
+
+2004-03-21 21:10 jimweirich
+
+ * bin/gem: fixed uninitialized directory option
+
+2004-03-21 15:34 jimweirich
+
+ * bin/gem: removed carriage returns that screwed up the #! line
+
+2004-03-21 09:02 chadfowler
+
+ * bin/gem: Gavin's bin/gem refactoring.
+
+2004-03-20 17:03 jimweirich
+
+ * bin/gem: added wrapping to gem listing
+
+2004-03-20 12:22 chadfowler
+
+ * install.rb: More cleaning by Gavin Sinclair
+
+2004-03-20 12:08 chadfowler
+
+ * examples/application/an-app.gemspec,
+ examples/application/bin/myapp,
+ examples/application/lib/somefunctionality.rb, lib/rubygems.rb,
+ lib/rubygems/installer.rb, lib/rubygems/specification.rb: Added
+ functionality for installing applications into the system bindir.
+ Needs cleaning and refactoring.
+
+2004-03-20 07:53 chadfowler
+
+ * bin/gem: [no log message]
+
+2004-03-19 23:03 chadfowler
+
+ * bin/gem: More intuitive default.
+
+2004-03-19 10:45 chadfowler
+
+ * bin/gem: * Some minor rearranging of the test stuff so that
+ installation errors will also abort the test run * Don't try to
+ run tests if none are included with the gem
+
+2004-03-18 22:27 chadfowler
+
+ * bin/gem, example/lib/test.rb, lib/rubygems/cache.rb,
+ lib/rubygems/specification.rb: * Preliminary support for: gem -i
+ blah-0.0.1.gem --run-tests Needs to be cleaned up considerably.
+ * Introduction of new gemspec metadata "unit_test_suite", which
+ will be require'd in order to load all unit tests
+
+2004-03-17 09:33 chadfowler
+
+ * bin/gem: Applied Gavin Sinclair's patch to make help output
+ better.
+
+2004-03-16 21:55 chadfowler
+
+ * bin/gem: Added --remote-list option for gem command to display
+ all gems on server.
+
+2004-03-16 21:50 chadfowler
+
+ * bin/gem, doc/UserDoc.html: Fixed --help case inconsistencies and
+ documentation typos as per Scott Harper's email.
+
+2004-03-16 21:41 chadfowler
+
+ * bin/gem: --list and --search display are the same.
+
+2004-03-16 21:33 chadfowler
+
+ * bin/gem: Implemented some of Scott Harper's search suggestions:
+ case insensitive sort of returned gems and display description
+ with gem name in search results.
+
+2004-03-16 21:20 chadfowler
+
+ * bin/gem, lib/rubygems/remote_installer.rb: http_proxy option
+ implemented
+
+2004-03-15 07:19 chadfowler
+
+ * lib/rubygems/remote_installer.rb: Installation is now case
+ insensitive (like search)
+
+2004-03-15 07:07 chadfowler
+
+ * TODO, bin/gem, lib/rubygems/remote_installer.rb: Better error
+ messages. updated TODO list.
+
+2004-03-14 21:02 chadfowler
+
+ * bin/gem, lib/rubygems/remote_installer.rb: --dir didn't work with
+ remote-install. Now it does.
+
+2004-03-14 17:48 rich
+
+ * bin/gem: fixed uninstall bug
+
+2004-03-14 17:18 rich
+
+ * lib/rubygems/doc_manager.rb: changed to remove <drive>: on
+ win32...ug
+
+2004-03-14 16:15 rich
+
+ * install.rb: fixed typo
+
+2004-03-14 16:13 rich
+
+ * install.rb: generate cmd files
+
+2004-03-14 16:13 rich
+
+ * bin/: gem.cmd, gem_server.cmd: now generate cmd files
+
+2004-03-14 15:52 chadfowler
+
+ * bin/gem: Fixed a small bug with --gen-rdoc and the remote
+ installer.
+
+2004-03-14 15:38 chadfowler
+
+ * lib/rubygems.rb: Back to version 1.0 ;)
+
+2004-03-14 15:36 chadfowler
+
+ * lib/rubygems.rb: Updated rubygemsversion
+
+2004-03-14 15:31 chadfowler
+
+ * README: credits
+
+2004-03-14 15:24 rich
+
+ * README: initial readme
+
+2004-03-14 15:12 rich
+
+ * doc/UserDoc.html: updated w/doc on documentation ;-)
+
+2004-03-14 15:01 rich
+
+ * gemspecs/jabber4r.gemspec: added jabber4r gemspec
+
+2004-03-14 14:58 rich
+
+ * bin/gem_server: change the documentation path to /
+
+2004-03-14 14:57 rich
+
+ * install.rb: remove installing .rb files from ./bin
+
+2004-03-14 14:32 rich
+
+ * doc/: DevDoc.txt, GemSpecification.txt, UserDoc.html,
+ UserDoc.txt: updated with latest docs
+
+2004-03-14 12:05 chadfowler
+
+ * test/test_remote_installer.rb: Fixed tests.
+
+2004-03-14 11:31 chadfowler
+
+ * lib/rubygems/specification.rb: Fixed bug that would manifest
+ itself if a gem creator put apostrophes/single-quotes in the gem
+ spec.
+
+2004-03-14 00:04 rich
+
+ * doc/: UserDoc.html, UserDoc.txt: finished user's guide
+
+2004-03-13 21:48 rich
+
+ * doc/: DevDoc.html, UserDoc.html, UserDoc.txt: updated user's
+ guide...will finish section on ruby's library mgt soon ;-)
+
+2004-03-13 20:48 chadfowler
+
+ * doc/DevDoc.txt: Added documentation on making and distributing
+ gems
+
+2004-03-13 20:20 chadfowler
+
+ * TODO: [no log message]
+
+2004-03-13 19:51 rich
+
+ * doc/: DevDoc.html, DevDoc.txt, GemSpecification.html,
+ GemSpecification.txt, UserDoc.html, UserDoc.txt, doc.css,
+ makedoc.rb: added these doc (wiki) files from
+ http://rubygems.rubyforge.org/
+
+2004-03-13 17:56 chadfowler
+
+ * TODO, gemspecs/README, gemspecs/cgikit-1.1.0.gemspec,
+ gemspecs/linguistics.gemspec, gemspecs/ook.gemspec,
+ gemspecs/progressbar.gemspec, gemspecs/redcloth.gemspec,
+ gemspecs/rublog.gemspec, gemspecs/ruby-doom.gemspec,
+ gemspecs/rubyjdwp.gemspec, gemspecs/statistics.gemspec: Added
+ some gemspecs for actual RAA packages.
+
+2004-03-13 14:35 chadfowler
+
+ * TODO, lib/rubygems/remote_installer.rb: Preliminary HTTP Proxy
+ support. Untested.
+
+2004-03-13 09:11 chadfowler
+
+ * packages/sources/lib/sources.rb: Changed to point to rubyforge
+
+2004-03-12 22:40 rich
+
+ * bin/generate_yaml_index.rb: generates a yaml index for a gems
+ repository
+
+2004-03-12 22:02 chadfowler
+
+ * bin/gem_server: No longer serving gem specs.
+
+2004-03-12 21:42 chadfowler
+
+ * TODO, bin/gem_server.cgi: We decided to trash gem_server.cgi in
+ favor of the static content generator Rich is working on.
+
+2004-03-12 21:15 chadfowler
+
+ * TODO: [no log message]
+
+2004-03-12 20:11 chadfowler
+
+ * bin/gem, lib/rubygems/installer.rb,
+ lib/rubygems/remote_installer.rb: Basic search funtionality in.
+
+ Slight refactoring of Installer and RemoteInstaller
+
+2004-03-12 18:28 chadfowler
+
+ * TODO: [no log message]
+
+2004-03-12 16:37 chadfowler
+
+ * TODO: [no log message]
+
+2004-03-12 16:14 chadfowler
+
+ * TODO: More TODO items
+
+2004-03-08 13:50 chadfowler
+
+ * TODO, bin/gem_server, example/test.gemspec: Use rdoc templates
+ for HTML. Nearly XHTML compliant.
+
+2004-03-08 08:21 chadfowler
+
+ * TODO: Added TODO list
+
+2004-03-08 08:12 chadfowler
+
+ * lib/rubygems/validator.rb: Fixed a small (but crippling) bug in
+ the validator.
+
+2004-01-24 13:49 chadfowler
+
+ * bin/gem, lib/rubygems.rb, lib/rubygems/cache.rb,
+ lib/rubygems/validator.rb, lib/rubygems/version.rb: More cleanup.
+
+2004-01-24 13:29 chadfowler
+
+ * bin/gem, lib/rubygems/remote_installer.rb: A little cleaning of
+ (Remote)Installer inconsistencies
+
+2004-01-24 13:23 chadfowler
+
+ * bin/gem: Removed the weird instance variable thing we had going
+ on. :)
+
+2004-01-07 17:34 chadfowler
+
+ * bin/gem: removed old cruft
+
+2003-12-24 11:32 chadfowler
+
+ * lib/rubygems/validator.rb: Gem validation was returning false
+ negatives (corrupted gems were not reporting their corruption).
+
+2003-12-18 14:18 chadfowler
+
+ * lib/rubygems/cache.rb: Lyle noticed some out of date rdoc
+ documentation. Thanks Lyle!
+
+2003-12-03 08:05 chadfowler
+
+ * install.rb: Gavin's patch for installing the files in bin/ on
+ rubygems installation.
+
+2003-11-30 00:36 chadfowler
+
+ * lib/rubygems/specification.rb: Little warnings adjustment
+
+2003-11-29 17:27 jimweirich
+
+ * Rakefile: added Rakefile to package
+
+2003-11-29 16:23 jimweirich
+
+ * lib/rubygems/specification.rb: Removed defined? and initialized
+ @platform
+
+2003-11-29 16:08 jimweirich
+
+ * lib/rubygems/specification.rb: Initialized @loaded and check
+ defined?(@platform) to silence some -w warnings.
+
+2003-11-29 09:26 rich
+
+ * bin/gem_server, lib/rubygems/doc_manager.rb: updated to support
+ /doc URL to generate list of installed gems w/doc link for rdoc
+ generated links.
+
+2003-11-29 08:30 rich
+
+ * lib/rubygems/doc_manager.rb: minor format change of error message
+
+2003-11-29 08:29 rich
+
+ * bin/gem, lib/rubygems/builder.rb, lib/rubygems/doc_manager.rb,
+ lib/rubygems/installer.rb: instantiates DocManager now. errors
+ out on no install of RDoc. warns if .gemspec does not specify
+ having rdoc, but rdoc is generated
+
+2003-11-29 02:13 rich
+
+ * bin/gem, lib/rubygems.rb, lib/rubygems/doc_manager.rb,
+ lib/rubygems/format.rb, lib/rubygems/installer.rb,
+ lib/rubygems/specification.rb: added capability to generate rdoc
+ on install of gem (--gen-rdoc). this doc is placed in
+ Gem.dir+doc+gem.full_name fixed but in installer when moving to
+ format (not calling each) added doc manager to add/remove
+ documenatation (right now only rdoc)
+
+2003-11-29 01:28 rich
+
+ * lib/rubygems/specification.rb: should not define the attr_readers
+ for requirements/dependencies so undef is unnecessary
+
+2003-11-29 00:12 jimweirich
+
+ * lib/rubygems/specification.rb: Undefing dependencies and
+ requirements removes warning when used with -w.
+
+2003-11-29 00:12 jimweirich
+
+ * lib/rubygems.rb: Using defined?($GEM_PATH) avoids warning when
+ used with -w switch.
+
+2003-11-28 15:58 chadfowler
+
+ * bin/gem, example/test.gemspec, lib/rubygems.rb,
+ lib/rubygems/installer.rb, lib/rubygems/validator.rb,
+ lib/rubygems/format.rb: Separated gem file reading into a
+ separate class/file.
+
+2003-11-28 15:20 rich
+
+ * lib/rubygems/specification.rb: added has_rdoc?/has_rdoc methods
+ ... will be used to autogenerate rdoc
+
+2003-11-28 12:30 chadfowler
+
+ * lib/rubygems/validator.rb: Rdoc added
+
+2003-11-28 11:51 chadfowler
+
+ * bin/gem, lib/rubygems.rb, lib/rubygems/validator.rb: A little
+ rearranging of the validation/alien code. It's still ugly, but
+ at least it's in its own file now. :)
+
+2003-11-28 11:40 chadfowler
+
+ * bin/gem: Removed a little cruft.
+
+2003-11-27 11:04 chadfowler
+
+ * bin/gem: Print success message for each gem *not* containing
+ errors.
+
+2003-11-27 11:00 chadfowler
+
+ * bin/gem, lib/rubygems/installer.rb: Preliminary support for gem
+ directory validation (--alien). Looks for bad or missing gem
+ files, missing spec files, files installed that aren't part of
+ the gem, checksum mismatches, etc.
+
+ Very ugly code. Very ugly output. Work in progress.
+
+2003-11-24 11:58 rich
+
+ * lib/rubygems/specification.rb: change full_name to include
+ platform
+
+2003-11-24 09:15 chadfowler
+
+ * bin/gem: Option for HTTP Proxy server for remote-install. Not
+ yet implemented.
+
+2003-11-23 20:22 chadfowler
+
+ * lib/rubygems/builder.rb: Removed a stray \" in builder's success
+ message
+
+2003-11-23 20:16 chadfowler
+
+ * lib/rubygems/specification.rb: Leaving escape in but commenting
+ out its functionality because it hosed some other things up.
+ Need to revisit this for the case where:
+
+ s.summary = "Chad's Thing" # It's the apostrophe
+
+2003-11-23 20:08 chadfowler
+
+ * lib/rubygems/specification.rb: Escape quotes to avoid invalid
+ gemspecs in the #{Gem.dir}/specifications directory
+
+2003-11-23 19:21 chadfowler
+
+ * bin/gem: Less ugly error message on file IO problems.
+
+2003-11-22 22:34 chadfowler
+
+ * bin/gem: Very simple support for validating a gem. Will probably
+ move this into the libs eventually.
+
+2003-11-22 20:53 chadfowler
+
+ * example/test.gemspec, lib/rubygems/builder.rb: Generate MD5
+ checksum for gem and store it in the file. Will be used to
+ validate gem file before installation.
+
+2003-11-22 13:58 chadfowler
+
+ * install.rb, lib/rubygems/remote_installer.rb,
+ packages/sources/sources.gemspec,
+ packages/sources/lib/sources.rb: remote-install sources are now
+ installed as a ruby gem at the time of rubygems installation.
+ sources gemspec included in the rubygems distribution.
+
+2003-11-22 12:52 chadfowler
+
+ * bin/gem: Allow gem info by --version
+
+2003-11-22 11:50 chadfowler
+
+ * lib/: rubygems.rb, rubygems/cache.rb: Fixed the bug I introduced
+ by fixing Rich's bug with gem cache caching. ;)
+
+ Gem::Cache now has a #refresh! method.
+
+2003-11-22 10:16 chadfowler
+
+ * bin/gem, lib/rubygems.rb, lib/rubygems/installer.rb,
+ lib/rubygems/remote_installer.rb: - Fixed bug in Gem.cache
+ (though we may want to revisit it for in-memory caching - Command
+ line configurable version for uninstall
+
+2003-11-22 00:28 rich
+
+ * lib/rubygems/cache.rb: rdoc'd search method
+
+2003-11-22 00:24 rich
+
+ * bin/gem, lib/rubygems/cache.rb, lib/rubygems/version.rb,
+ test/test_version_comparison.rb: removed search_by_name because
+ search does the same thing. version::requirement was updated to
+ that if you did not specific a version operation, it assumes an =
+ sign. updated tests accordingly
+
+2003-11-21 23:58 rich
+
+ * lib/rubygems/: cache.rb, installer.rb: allow version to be
+ specified in uninstall (if called programatically)
+
+2003-11-21 23:52 rich
+
+ * lib/: rubygems.rb, rubygems/cache.rb, rubygems/installer.rb,
+ rubygems/specification.rb: > moved all searching into cache..and
+ now search by name/version and return an
+ ordered list (.last == highest version).
+ > modified uninstaller to allow selecting a specific version to
+ uninstall if
+ multiple versions are installed.
+ > implemented comparison function on specification.
+ > changed require_gem to use new search of cache function
+
+2003-11-21 21:06 chadfowler
+
+ * bin/gem, lib/rubygems/remote_installer.rb: Added ability to
+ specify optional version requirement for remote installations
+
+2003-11-21 20:25 chadfowler
+
+ * test/test_remote_installer.rb: Removed carriage returns
+
+2003-11-21 19:04 chadfowler
+
+ * bin/gem_server: Converted from getopts to optparse.
+
+2003-11-21 18:31 rich
+
+ * lib/rubygems.rb: changed the order in which operations are
+ performed in require_gem. it now requires dependent gems prior
+ to adding the require_paths to a gem. otherwise we could have
+ had a LoadError on a dependent gem but the paths were already
+ added...potential problem
+
+2003-11-21 18:21 rich
+
+ * lib/rubygems/installer.rb: updated to ensure
+ (specifications/cache) directories exist for a provided path
+
+2003-11-21 18:01 rich
+
+ * lib/rubygems/specification.rb: updated rdoc
+
+2003-11-21 17:59 rich
+
+ * bin/gem, lib/rubygems/builder.rb, lib/rubygems/installer.rb,
+ lib/rubygems/specification.rb: fixed various bugs with the
+ $GEM_PATH stuff, specifically on uninstall. Also, changed to
+ allow specifying a directory on install (--dir) and force install
+ (--force). Changed the builder generated ruby header to use
+ optparse.
+
+2003-11-21 07:03 chadfowler
+
+ * lib/: rubygems.rb, rubygems/cache.rb,
+ rubygems/remote_installer.rb: Remote installation of dependencies
+ now works. It downloads all dependent gems or errors out.
+
+ Fixed bug in require_gem. Wrong call to cache.
+
+2003-11-21 00:59 rich
+
+ * bin/gem, example/test.gemspec, lib/rubygems.rb,
+ lib/rubygems/cache.rb, lib/rubygems/installer.rb,
+ lib/rubygems/specification.rb: added capability to support
+ multiple paths $GEM_PATH in Ruby and RUBY_GEMS in the ARGV. Lots
+ of changes were needed to support this. also added the --force
+ and --dir options to gem installtion
+
+2003-11-20 22:50 chadfowler
+
+ * bin/gem: Switched to optparse. Not a whole lot gained, but it
+ seems to be the way Ruby is going. It's nice not to have to do
+ the "when" stuff, I guess.
+
+2003-11-19 23:41 chadfowler
+
+ * lib/rubygems/: installer.rb, remote_installer.rb: Added
+ chadfowler.com to the hardcoded remote install list.
+
+ Fixed a dangling YAML.load that broke uninstall.
+
+2003-11-19 22:56 rich
+
+ * lib/rubygems.rb: fixed bug in loading rubygems
+
+2003-11-19 22:51 chadfowler
+
+ * bin/: gem_server, gem_server.cgi: require 'yaml' :)
+
+2003-11-19 22:44 rich
+
+ * lib/: rubygems.rb, rubygems/cache.rb, rubygems/specification.rb:
+ changed the format of stuff stored in the spec directory to ruby
+ instead of YAML. This allows us to not have to load yaml in
+ 'require_gem'. switched the specification list to a Cache
+ object.
+
+2003-11-19 21:56 rich
+
+ * lib/rubygems/installer.rb: write the spec file in ruby and not in
+ yaml format (in the spec dir)
+
+2003-11-19 20:32 rich
+
+ * lib/rubygems/specification.rb: added to_ruby method to generate a
+ ruby string that can be eval'ed in to build a Gem Specification
+
+2003-11-17 21:37 jimweirich
+
+ * bin/: gem_server, gem_server.cgi: removed carriage returns
+
+2003-11-17 21:19 chadfowler
+
+ * install.rb: Accidentally left some junk in the file.
+
+2003-11-17 19:50 dblack
+
+ * test/test_version_comparison.rb: * Test cases for Version.rb
+
+2003-11-17 19:50 dblack
+
+ * lib/rubygems/version.rb: * Split off tests into
+ rubygems/tests/test_version_comparison.rb
+
+2003-11-17 12:37 chadfowler
+
+ * install.rb: Create File.join(Config::CONFIG['libdir'], "ruby",
+ "gems") + "specifications" and + "cache" during installation.
+
+ Need to remove this from rubygems.rb and replace with
+ ensure_directory call.
+
+2003-11-17 12:29 rich
+
+ * lib/rubygems/version.rb: rdoc added
+
+2003-11-17 11:31 rich
+
+ * lib/rubygems/specification.rb: rdoc added
+
+2003-11-17 10:38 rich
+
+ * lib/rubygems/: cache.rb, installer.rb: made rdoc comments and
+ renamed some variables
+
+2003-11-17 08:48 dblack
+
+ * lib/rubygems/version.rb: * Added stricter checking of incoming
+ Requirement string
+
+ * Added unit tests at end of file
+
+2003-11-17 07:32 chadfowler
+
+ * bin/: gem_server, gem_server.cgi: Refactored gem_server program
+ and added an equivalent CGI version.
+
+2003-11-17 00:14 rich
+
+ * lib/: rubygems.rb, rubygems/builder.rb, rubygems/cache.rb: added
+ rdoc documentation
+
+2003-11-16 17:15 chadfowler
+
+ * bin/: gem.cmd, gem_server.cmd: Added some batch files for Windows
+
+2003-11-16 17:08 rich
+
+ * install.rb, bin/gem, bin/gem_server, example/test.gemspec,
+ example/lib/test.rb, example/lib/test/wow.rb, lib/rubygems.rb,
+ lib/rubygems/builder.rb, lib/rubygems/cache.rb,
+ lib/rubygems/installer.rb, lib/rubygems/remote_installer.rb,
+ lib/rubygems/specification.rb, lib/rubygems/version.rb,
+ test/test_remote_installer.rb: Initial import developed at
+ RubyConf 2003 by:
+
+ Rich Kilmer Chad Fowler David Black Paul Brannon Jim Weirich
+
+2003-11-16 17:08 rich
+
+ * install.rb, bin/gem, bin/gem_server, example/test.gemspec,
+ example/lib/test.rb, example/lib/test/wow.rb, lib/rubygems.rb,
+ lib/rubygems/builder.rb, lib/rubygems/cache.rb,
+ lib/rubygems/installer.rb, lib/rubygems/remote_installer.rb,
+ lib/rubygems/specification.rb, lib/rubygems/version.rb,
+ test/test_remote_installer.rb: Initial revision
+
+Local variables:
+indent-tabs-mode: t
+tab-width: 8
+end:
diff --git a/doc/rubygems/History.txt b/doc/rubygems/History.txt
new file mode 100644
index 0000000000..4a80b1bfb4
--- /dev/null
+++ b/doc/rubygems/History.txt
@@ -0,0 +1,852 @@
+# -*- coding: utf-8 -*-
+
+=== 1.3.6 / 2010-02-17
+
+NOTE:
+
+http://rubygems.org is now the default source for downloading gems.
+
+You may have sources set via ~/.gemrc, so you should replace
+http://gems.rubyforge.org with http://rubygems.org
+
+http://gems.rubyforge.org will continue to work for the forseeable future.
+
+New features:
+
+* `gem` commands
+ * Added `gem push` and `gem owner` for interacting with modern/Gemcutter
+ sources
+ * `gem dep` now supports --prerelease.
+ * `gem fetch` now supports --prerelease.
+ * `gem server` now supports --bind. Patch #27357 by Bruno Michel.
+ * `gem rdoc` no longer overwrites built documentation. Use --overwrite
+ force rebuilding. Patch #25982 by Akinori MUSHA.
+* Captial letters are now allowed in prerelease versions.
+
+Bug fixes:
+
+* Development deps are no longer added to rubygems-update gem so older
+ versions can update sucessfully.
+* Installer bugs:
+ * Prerelease gems can now depend on non-prerelease gems.
+ * Development dependencies are ignored unless explicitly needed. Bug #27608
+ by Roger Pack.
+* `gem` commands
+ * `gem which` now fails if no paths were found. Adapted patch #27681 by
+ Caio Chassot.
+ * `gem server` no longer has invalid markup. Bug #27045 by Eric Young.
+ * `gem list` and friends show both prerelease and regular gems when
+ --prerelease --all is given
+* Gem::Format no longer crashes on empty files. Bug #27292 by Ian Ragsdale.
+* Gem::GemPathSearcher handles nil require_paths. Patch #27334 by Roger Pack.
+* Gem::RemoteFetcher no longer copies the file if it is where we want it.
+ Patch #27409 by Jakub Šťastný.
+
+Deprecation Notices:
+
+* lib/rubygems/timer.rb has been removed.
+* Gem::Dependency#version_requirements is deprecated and will be removed on or
+ after August 2010.
+* Bulk index update is no longer supported.
+* Gem::manage_gems was removed in 1.3.3.
+* Time::today was removed in 1.3.3.
+
+=== 1.3.5 / 2009-07-21
+
+Bug fixes:
+
+* Fix use of prerelease gems.
+* Gem.bin_path no longer escapes path with spaces. Bug #25935 and #26458.
+
+Deprecation Notices:
+
+* Bulk index update is no longer supported (the code currently remains, but not
+ the tests)
+* Gem::manage_gems was removed in 1.3.3.
+* Time::today was removed in 1.3.3.
+
+=== 1.3.4 / 2009-05-03
+
+Bug Fixes:
+
+* Fixed various warnings
+* Gem::ruby_version works correctly for 1.8 branch and trunk
+* Prerelease gems now show up in `gem list` and can be used
+* Fixed option name for `gem setup --format-executable`
+* RubyGems now matches Ruby > 1.9.1 gem paths
+* Gem::RemoteFetcher#download now works for explicit Windows paths across
+ drives. Bug #25882 by Lars Christensen
+* Fix typo in Gem::Requirement#parse. Bug #26000 by Mike Gunderloy.
+
+Deprecation Notices:
+
+* Bulk index update is no longer supported (the code currently remains, but not
+ the tests)
+* Gem::manage_gems was removed in 1.3.3.
+* Time::today was removed in 1.3.3.
+
+=== 1.3.3 / 2009-05-04
+
+New Features:
+
+* `gem server` allows port names (from /etc/services) with --port.
+* `gem server` now has search that jumps to RDoc. Patch #22959 by Vladimir
+ Dobriakov.
+* `gem spec` can retrieve single fields from a spec (like `gem spec rake
+ authors`).
+* Gem::Specification#has_rdoc= is deprecated and ignored (defaults to true)
+* RDoc is now generated regardless of Gem::Specification#has_rdoc?
+
+Bug Fixes:
+
+* `gem clean` now cleans up --user-install gems. Bug #25516 by Brett
+ Eisenberg.
+* Gem.bin_path now escapes paths with spaces.
+* Rake extension builder uses explicit correctly loads rubygems when invoking
+ rake.
+* Prerelease versions now match "~>" correctly. Patch #25759 by Yossef
+ Mendelssohn.
+* Check bindir for executables, not root when validating. Bug reported by
+ David Chelimsky.
+* Remove Time.today, no way to override it before RubyGems loads. Bug #25564
+ by Emanuele Vicentini
+* Raise Gem::Exception for #installation_path when not installed. Bug #25741
+ by Daniel Berger.
+* Don't raise in Gem::Specification#validate when homepage is nil. Bug #25677
+ by Mike Burrows.
+* Uninstall executables from the correct directory. Bug #25555 by Brett
+ Eisenberg.
+* Raise Gem::LoadError if Kernel#gem fails due to previously-loaded gem. Bug
+ reported by Alf Mikula.
+
+Deprecation Notices:
+
+* Gem::manage_gems has been removed.
+* Time::today has been removed early. There was no way to make it warn and be
+ easy to override with user code.
+
+=== 1.3.2 / 2009-04-15
+
+Select New Features:
+
+* RubyGems now loads plugins from rubygems_plugin.rb in installed gems.
+ This can be used to add commands (See Gem::CommandManager) or add
+ install/uninstall hooks (See Gem::Installer and Gem::Uninstaller).
+* Gem::Version now understands prerelease versions using letters. (eg.
+ '1.2.1.b') Thanks to Josh Susser, Alex Vollmer and Phil Hagelberg.
+* RubyGems now includes a Rake task for creating gems which replaces rake's
+ Rake::GemPackageTask. See Gem::PackageTask.
+* Gem::find_files now returns paths in $LOAD_PATH.
+* Added Gem::promote_load_path for use with Gem::find_files
+* Added Gem::bin_path to make finding executables easier. Patch #24114 by
+ James Tucker.
+* Various improvements to build arguments for installing gems.
+* `gem contents` added --all and --no-prefix.
+* Gem::Specification
+ * #validate strips directories and errors on not-files.
+ * #description no longer removes newlines.
+ * #name must be a String.
+ * FIXME and TODO are no longer allowed in various fields.
+ * Added support for a license attribute. Feature #11041 (partial).
+ * Removed Gem::Specification::list, too much process growth. Bug #23668 by
+ Steve Purcell.
+* `gem generate_index`
+ * Can now generate an RSS feed.
+ * Modern indicies can now be updated incrementally.
+ * Legacy indicies can be updated separately from modern.
+
+Select Bugs Fixed:
+
+* Better gem activation error message. Patch #23082.
+* Kernel methods are now private. Patch #20801 by James M. Lawrence.
+* Fixed various usability issues with `gem check`.
+* `gem update` now rescues InstallError and continues. Bug #19268 by Gabriel
+ Wilkins.
+* Allow 'https', 'file' as a valid schemes for --source. Patch #22485.
+* `gem install`
+ * Now removes existing path before installing. Bug #22837.
+ * Uses Gem::bin_path in executable stubs to work around Kernel#load bug in
+ 1.9.
+ * Correctly handle build args (after --) via the API. Bug #23210.
+* --user-install
+ * `gem install --no-user-install` now works. Patch #23573 by Alf Mikula.
+ * `gem uninstall` can now uninstall from ~/.gem. Bug #23760 by Roger Pack.
+* setup.rb
+ * Clarify RubyGems RDoc installation location. Bug #22656 by Gian Marco
+ Gherardi.
+ * Allow setup to run from read-only location. Patch #21862 by Luis Herrera.
+ * Fixed overwriting ruby executable when BASERUBY was not set. Bug #24958
+ by Michael Soulier.
+ * Ensure we're in a RubyGems dir when installing.
+ * Deal with extraneous quotation mark when autogenerating .bat file on MS
+ Windows. Bug #22712.
+
+Deprecation Notices:
+
+* Gem::manage_gems has been removed.
+* Time::today will be removed in RubyGems 1.4.
+
+Special thanks to Chad Wooley for backwards compatibility testing and Luis
+Lavena and Daniel Berger for continuing windows support.
+
+=== 1.3.1 / 2008-10-28
+
+Bugs fixed:
+
+* Disregard ownership of ~ under Windows while creating ~/.gem. Fixes
+ issues related to no uid support under Windows.
+* Fix requires for Gem::inflate, Gem::deflate, etc.
+* Make Gem.dir respect :gemhome value from config. (Note: this feature may be
+ removed since it is hard to implement on 1.9.)
+* Kernel methods are now private. Patch #20801 by James M. Lawrence.
+* Gem::location_of_caller now behaves on Windows. Patch by Daniel Berger.
+* Silence PATH warning.
+
+Deprecation Notices:
+
+* Gem::manage_gems will be removed on or after March 2009.
+
+=== 1.3.0 / 2008-09-25
+
+New features:
+
+* RubyGems doesn't print LOCAL/REMOTE titles for `gem query` and friends if
+ stdout is not a TTY, except with --both.
+* Added Gem.find_files, allows a gem to discover features provided by other
+ gems.
+* Added pre/post (un)install hooks for packagers of RubyGems. (Not for gems
+ themselves).
+* RubyGems now installs gems into ~/.gem if GEM_HOME is not writable. Use
+ --no-user-install command-line switch to disable this behavior.
+* Fetching specs for update now uses If-Modified-Since requests.
+* RubyGems now updates the ri cache when the rdoc gem is installed and
+ documentation is generated.
+
+Deprecation Notices:
+
+* Gem::manage_gems now warns when called. It will be removed on or after March
+ 2009.
+
+Bugs Fixed:
+
+* RubyGems 1.3.0+ now updates when no previous rubygems-update is installed.
+ Bug #20775 by Hemant Kumar.
+* RubyGems now uses the regexp we already have for `gem list --installed`. Bug
+ #20876 by Nick Hoffman.
+* Platform is now forced to Gem::Platform::RUBY when nil or blank in the
+ indexer. Fixes various uninstallable gems.
+* Handle EINVAL on seek. Based on patch in bug #20791 by Neil Wilson.
+* Fix HTTPS support. Patch #21072 by Alex Arnell.
+* RubyGems now loads all cache files even if latest has been loaded. Bug
+ #20776 by Uwe Kubosch.
+* RubyGems checks for support of development dependencies for #to_ruby. Bug
+ #20778 by Evan Weaver.
+* Now specifications from the future can be loaded.
+* Binary script uninstallation fixed. Bug #21234 by Neil Wilson.
+* Uninstallation with -i fixed. Bug #20812 by John Clayton.
+* Gem::Uninstaller#remove_all now calls Gem::Uninstaller#uninstall_gem so hooks
+ get called. Bug #21242 by Neil Wilson.
+* Gem.ruby now properly escaped on windows. Fixes problem with extension
+ compilation.
+* `gem lock --strict` works again. Patch #21814 by Sven Engelhardt.
+* Platform detection for Solaris was improved. Patch #21911 by Bob Remeika.
+
+Other Changes Include:
+
+* `gem help install` now describes _version_ argument to executable stubs
+* `gem help environment` describes environment variables and ~/.gemrc and
+ /etc/gemrc
+* On-disk gemspecs are now read in UTF-8 and written with a UTF-8 magic comment
+* Rakefile
+ * If the SETUP_OPTIONS environment variable is set, pass its contents as
+ arguments to setup.rb
+* lib/rubygems/platform.rb
+ * Remove deprecated constant warnings and really deprecate them. (WIN32,
+ etc).
+* lib/rubygems/remote_fetcher.rb
+ * Now uses ~/.gem/cache if the cache dir in GEM_HOME is not writable.
+* lib/rubygems/source_index.rb
+ * Deprecate options to 'search' other than Gem::Dependency instances and
+ issue warning until November 2008.
+* setup.rb
+ * --destdir folder structure now built using Pathname, so it works for
+ Windows platforms.
+* test/*
+ * Fixes to run tests when under test/rubygems/. Patch by Yusuke ENDOH
+ [ruby-core:17353].
+* test/test_ext_configure_builder.rb
+ * Locale-free patch by Yusuke Endoh [ruby-core:17444].
+
+=== 1.2.0 / 2008-06-21
+
+New features:
+
+* RubyGems no longer performs bulk updates and instead only fetches the gemspec
+ files it needs. Alternate sources will need to upgrade to RubyGems 1.2 to
+ allow RubyGems to take advantage of the new metadata updater. If a pre 1.2
+ remote source is in the sources list, RubyGems will revert to the bulk update
+ code for compatibility.
+* RubyGems now has runtime and development dependency types. Use
+ #add_development_dependency and #add_runtime_dependency. All typeless
+ dependencies are considered to be runtime dependencies.
+* RubyGems will now require rubygems/defaults/operating_system.rb and
+ rubygems/defaults/#{RBX_ENGINE}.rb if they exist. This allows packagers and
+ ruby implementers to add custom behavior to RubyGems via these files. (If
+ the RubyGems API is insufficient, please suggest improvements via the
+ RubyGems list.)
+* /etc/gemrc (and windows equivalent) for global settings
+* setup.rb now handles --vendor and --destdir for packagers
+* `gem stale` command that lists gems by last access time
+
+Bugs Fixed:
+
+* File modes from gems are now honored, patch #19737
+* Marshal Gem::Specification objects from the future can now be loaded.
+* A trailing / is now added to remote sources when missing, bug #20134
+* Gems with legacy platforms will now be correctly uninstalled, patch #19877
+* `gem install --no-wrappers` followed by `gem install --wrappers` no longer
+ overwrites executables
+* `gem pristine` now forces reinstallation of gems, bug #20387
+* RubyGems gracefully handles ^C while loading .gemspec files from disk, bug
+ #20523
+* Paths are expanded in more places, bug #19317, bug #19896
+* Gem::DependencyInstaller resets installed gems every install, bug #19444
+* Gem.default_path is now honored if GEM_PATH is not set, patch #19502
+
+Other Changes Include:
+
+* setup.rb
+ * stub files created by RubyGems 0.7.x and older are no longer removed. When
+ upgrading from these ancient versions, upgrade to 1.1.x first to clean up
+ stubs.
+ * RDoc is no longer required until necessary, patch #20414
+* `gem server`
+ * Now completely matches the output of `gem generate_index` and
+ has correct content types
+ * Refreshes from source directories for every hit. The server will no longer
+ need to be restarted after installing gems.
+* `gem query --details` and friends now display author, homepage, rubyforge url
+ and installed location
+* `gem install` without -i no longer reinstalls dependencies if they are in
+ GEM_PATH but not in GEM_HOME
+* Gem::RemoteFetcher now performs persistent connections for HEAD requests,
+ bug #7973
+
+=== 1.1.1 / 2008-04-11
+
+Bugs Fixed:
+
+* Gem.prefix now returns non-nil only when RubyGems was installed outside
+ sitelibdir or libdir.
+* The `gem server` gem list now correctly links to gem details.
+* `gem update --system` now passes --no-format-executable to setup.rb.
+* Gem::SourceIndex#refresh! now works with multiple gem repositories.
+* Downloaded gems now go into --install-dir's cache directory.
+* Various fixes to downloading gem metadata.
+* `gem install --force` now ignores network errors too.
+* `gem pristine` now rebuilds extensions.
+* `gem update --system` now works on virgin Apple ruby.
+* Gem::RemoteFetcher handles Errno::ECONNABORTED.
+* Printing of release notes fixed.
+
+=== 1.1.0 / 2008-03-29
+
+New features:
+
+* RubyGems now uses persistent connections on index updates. Index updates are
+ much faster now.
+* RubyGems only updates from a latest index by default, cutting candidate gems
+ for updates to roughly 1/4 (at present). Index updates are even faster
+ still.
+ * `gem list -r` may only show the latest version of a gem, add --all to see
+ all gems.
+* `gem spec` now extracts specifications from .gem files.
+* `gem query --installed` to aid automation of checking for gems.
+
+Bugs Fixed:
+
+* RubyGems works with both Config and RbConfig now.
+* Executables are now cleaned upon uninstall.
+* You can now uninstall from a particular directory.
+* Updating from non-default sources fixed.
+* Executable stubs now use ruby install name in shebang.
+* `gem unpack` checks every directory in Gem.path now.
+* `gem install` now exits with non-zero exit code when appropriate.
+* `gem update` only updates gems that need updates.
+* `gem update` doesn't force remote-only updates.
+* `gem update` handles dependencies properly when updating.
+* Gems are now loaded in Gem.path order.
+* Gem stub scripts on windows now work outside Gem.bindir.
+* `gem sources -r` now works without network access.
+
+Other Changes Include:
+
+* RubyGems now requires Ruby > 1.8.3.
+* Release notes are now printed upon installation.
+* `gem env path` now prints a usable path.
+* `gem install` reverts to local-only installation upon network error.
+* Tar handling code refactoring and cleanup.
+* Gem::DependencyInstaller's API has changed.
+
+For a full list of changes to RubyGems, see the ChangeLog file.
+
+=== 1.0.1 / 2007-12-20
+
+Bugs Fixed:
+
+* Installation on Ruby 1.8.3 through 1.8.5 fixed
+* `gem build` on 1.8.3 fixed
+
+Other Changes Include:
+
+* Since RubyGems 0.9.5, RubyGems is no longer supported on Ruby 1.8.2 or older,
+ this is official in RubyGems 1.0.1.
+
+=== 1.0.0 / 2007-12-20
+
+Major New Features Include:
+
+* RubyGems warns about various problems with gemspecs during gem building
+* More-consistent versioning for the RubyGems software
+
+Other Changes Include:
+
+* Fixed various bugs and problems with installing gems on Windows
+* Fixed using `gem server` for installing gems
+* Various operations are even more verbose with --verbose
+* Built gems are now backwards compatible with 0.9.4
+* Improved detection of RUBYOPT loading rubygems
+* `ruby setup.rb` now has a --help option
+* Gem::Specification#bindir is now respected on installation
+* Executable stubs can now be installed to match ruby's name, so if ruby is
+ installed as 'ruby18', foo_exec will be installed as 'foo_exec18'
+* `gem unpack` can now unpack into a specific directory with --target
+* OpenSSL is no longer required by default
+
+Deprecations and Deletions:
+
+* Kernel#require_gem has been removed
+* Executables without a shebang will not be wrapped in a future version, this
+ may cause such executables to fail to operate on installation
+* Gem::Platform constants other than RUBY and CURRENT have been removed
+* Gem::RemoteInstaller was removed
+* Gem::Specification#test_suite_file and #test_suite_file= are deprecated in
+ favor of #test_file and #test_file=
+* Gem::Specification#autorequire= has been deprecated
+* Time::today will be removed in a future version
+
+=== 0.9.5 / 2007-11-19
+
+Major New Features Include:
+
+* Platform support
+* Automatic installation of platform gems
+* New bandwidth and memory friendlier index file format
+* "Offline" mode (--no-update-sources)
+* Bulk update threshold can be specified (-B, --bulk-threshold)
+* New `gem fetch` command
+* `gem` now has "really verbose" output when you specify -v
+* Improved stubs and `gem.bat` on mswin, including better compatiblity
+ with the One-Click Installer.
+
+Other Changes Include:
+
+* Time::today is deprecated and will be removed at a future date
+* Gem::manage_gems is deprecated and will be removed at a future date
+* `gem install --include-dependencies` (-y) is now deprecated since it is the
+ default, use --ignore-dependencies to turn off automatic dependency
+ installation
+* Multi-version diamond dependencies only are installed once
+* Processing a YAML bulk index update takes less memory
+* `gem install -i` makes sure all depenencies are installed
+* `gem update --system` reinstalls into the prefix it was originally installed
+ in
+* `gem update --system` respects --no-rdoc and --no-ri flags
+* HTTP basic authentication support for proxies
+* Gem::Specification#platforms should no longer be a String, use
+ Gem::Platform::CURRENT when building binary gems instead
+* `gem env` has more diagnostic information
+* require 'rubygems' loads less code
+* sources.gem is gone, RubyGems now uses built-in defaults
+* `gem install --source` will no longer add --source by default, use `gem
+ sources --add` to make it a permanent extra source
+* `gem query` (list) no longer prints details by default
+* Exact gem names are matched in various places
+* mkrf extensions are now supported
+* A gem can depend on a specific RubyGems version
+* `gem_server` is now `gem server`
+* `gemlock` is now `gem lock`
+* `gem_mirror` is now `gem mirror`
+* `gemwhich` is now `gem which`
+* `gemri` is no longer included with RubyGems
+* `index_gem_repository.rb` is now `gem generate_index`
+* `gem` performs more validation of parameters
+* Custom rdoc styles are now supported
+* Gem indexer no longer removes quick index during index creation
+* Kernel#require only rescues a LoadError for the file being required now
+* `gem dependencies` can now display some information for remote gems
+* Updating RubyGems now works with RUBYOPT=-rubygems
+
+Special thanks to:
+
+* Daniel Berger
+* Luis Lavena
+* Tom Copeland
+* Wilson Bilkovich
+
+=== 0.9.4 / 2007-05-23
+
+If you are experiencing problems with the source index (e.g. strange
+"No Method" errors), or problems with zlib (e.g. "Buffer Error"
+messsage), we recommend upgrading to RubyGems 0.9.4.
+
+Bug Fixes Include:
+
+* Several people have been experiencing problems with no method errors
+ on the source index cache. The source index cache is now a bit more
+ self healing. Furthermore, if the source index cache is
+ irreparable, then it is automatically dropped and reloaded.
+* The source cache files may now be dropped with the "gem sources
+ --clear-all" command. (This command may require root is the system
+ source cache is in a root protected area).
+* Several sub-commands were accidently dropped from the "gem" command.
+ These commands have been restored.
+
+=== 0.9.3 / 2007-05-10
+
+Bug Fixes Include:
+
+The ZLib library on Windows will occasionally complains about a buffer error
+when unpacking gems. The Gems software has a workaround for that problem, but
+the workaround was only enabled for versions of ZLib 1.2.1 or earlier. We
+have received several reports of the error occuring with ZLib 1.2.3, so we
+have permanently enabled the work around on all versions.
+
+=== 0.9.2 / 2007-02-05
+
+Bug Fixes Include:
+
+* The "unpack" command now works properly.
+* User name and password are now passed properly to the authenticating
+ proxy when downloading gems.
+
+=== 0.9.1 / 2007-01-16
+
+See ChangeLog
+
+=== 0.9.0 / 2006-06-28
+
+Finally, the much anticipated RubyGems version 0.9.0 is now available.
+This release includes a number of new features and bug fixes. The
+number one change is that we can now download the gem index
+incrementally. This will greatly speed up the gem command when only a
+few gems are out of date.
+
+Major Enhancments include:
+
+* The gem index is now downloaded incrementally, only updating entries
+ that are out of date. If more than 50 entries are out of date, we
+ revert back to a bulk download.
+* Several patches related to allowing RubyGems to work with
+ authenticating proxies (from Danie Roux and Anatol Pomozov). Just
+ put the user and password in the proxy URL (e.g. -p
+ http://user:password@proxy.address.com:8080) or use the
+ HTTP_PROXY_USER and HTTP_PROXY_PASS environment variables.
+* The gem unpack command can now accept a file path rather than just a
+ install gem name.
+* Both RI and RDOC documents are now generated by default.
+* A gemri command is included to read gem RI docs (only needed for
+ Ruby 1.8.4 or earlier).
+
+Minor enhancements include:
+
+* Verison 0.0.0 is now a valid gem version.
+* Better detection of missing SSL functionality.
+* SSL is not required if the security policy does not require
+ signature checking.
+* Rake built extensions are now supported (Tilman Sauerbeck).
+* Several autorequire bug fixes.
+* --traceback is now an alias for --backtrace (I can never remember
+ which one it is).
+* SAFE=1 compatibility fixes.
+* .rbw is now a supported suffix for RubyGem's custom require.
+* Several Ruby 1.9 compatibility fixes (Eric Hodel).
+
+Bug Fixes:
+
+* Added dashes to gemspecs generated in Ruby 1.8.3. This solves some
+ cross-Ruby version compatibility issues.
+* Fixed bug where the wrong executables could be uninstalled (Eric
+ Hodel).
+* Fixed bug where gem unpack occasionally unpacked the wrong gem.
+* Fixed bug where a fatal error occured when permissions on .gemrc
+ were too restrictive (reported by Luca Pireddu).
+* Fixed prefix handling for native expressions (patch by Aaron Patterson).
+* Fixed several Upgrade => Update typos.
+
+=== 0.8.11 / 2005-07-13
+
+* -y is a synonym for --include-dependencies.
+* Better handling of errors in the top level rescue clause.
+* Package list command (e.g. gem inspect GEM).
+* .gemrc now allows cvsrc-like options to set defaults per subcommand.
+* The autorequire gem spec field will now accept a list.
+* Substituted Time for Date in specs, increasing performance
+ dramatically.
+* Fixed reported bug of gem directories ending in "-" (reported by
+ Erik Hatcher).
+* Fixed but in installer that caused dependency installation to not
+ work.
+* Added Paul Duncan's gem signing patch.
+* Added Mark Hubbart's Framework patch (for better integration with OS
+ X).
+* Added David Glasser's install-from-mirror patch.
+* Additional internal structural cleanup and test reorganization.
+
+=== 0.8.10 / 2005-03-27
+
+* In multi-user environments, it is common to supply mulitple versions of gems
+ (for example Rails), allowing individual users to select the version of the
+ gem they desire. This allows a user to be insulated from updates to that
+ gem. RubyGems 0.8.10 fixes a problem where gems could occasionally become
+ confused about the current versions of libraries selected by the user.
+* The other annoying bug is that if there are any existing rubygems-update gems
+ installed, then the "gem update --system" command will download a new
+ update, but install the latest update prior to the download.
+
+=== 0.8.9
+
+Never released
+
+=== 0.8.8 / 2005-03-14
+
+* Moved the master definition of class Requirement back under version.
+ Kept the body of Requirement under Gem.
+
+=== 0.8.7 / 2005-03-14
+
+Even though it has only been a few weeks since that last release,
+there are quite a number of new features in 0.8.7. A complete list of
+new features will be given below, but here is a summary of the hot
+items.
+
+* The bug that prevented some users from installing rails has been
+ squashed. A big thanks to Bill Guindon (aGorilla) for helping track
+ that one down.
+
+There are several new commands available on the gem command:
+
+* gem cleanup GEMNAME -- Cleanup (uninstall) all the old versions of
+ gem. If the gem name is omitted, the entire repository is cleaned.
+* gem dependency GEMNAME -- Show the dependencies for the named gems.
+ This is really helpful when trying to figure out what gem needs what
+ other gem.
+
+There changes to the existing commands as well.
+
+* gem uninstall is much smarter about removing gems from the
+ repository. Lists of gems are now uninstalled in proper dependency
+ order (ie. if A depends on B, A is uninstalled first). Also,
+ warnings about broken dependencies occur only when removing the
+ *last* gem that supports a dependency is removed.
+
+Both gem install and gem uninstall support some new command line
+options that can reduce the amount of yes/no queries given the user.
+For install we have:
+
+* --ignore-dependencies -- Only install requests gems, no
+ dependendecies are automatically installed.
+* --include-dependencies -- Automatically install dependencies,
+ without confirmation.
+
+For gem uninstall, the new options are:
+
+* --all -- Uninstall all matching gems without confirmation.
+* --ignore-dependencies -- Uninstall, even if dependencies are broken.
+* --executables -- Remove executables without confirmation
+
+Under general cleanup, gems will not, by default, run RDoc on packages
+that do not have the RDoc flag set.
+
+And finally there is a new library file 'gemconfigure' to aid in
+writing version sensitive applications (without undue dependencies on
+RubyGems); and 'gemwhich', a short script to locate libraries in the
+file system. You can read more about them here:
+
+* gemconfigure: http://docs.rubygems.org/read/chapter/4#page73
+* gemwhich: http://docs.rubygems.org/read/chapter/17
+
+=== 0.8.6 / 2005-02-27
+
+* Fixed a small bug with shebang construction
+
+=== 0.8.5 / 2005-02-26
+
+Do you know how you used to dread getting the following message while
+installing gems?
+
+ Updating Gem source index for: http://gems.rubyforge.org
+
+It could take up to 30 seconds (on my machine, even worse on others) for
+that crazy source index to update.
+
+This latest release of RubyGems speeds that wait time up considerably.
+The following table gives the following times for installing RedCloth
+with a required source index update on three system we had available to
+us. No RDoc generation was included in the following times.
+
+ RubyGems Linux Mac OSX Windows
+ 0.8.4 33 secs 73 secs 58 secs
+ 0.8.5 8 secs 14 secs 21 secs
+
+The new caching code is at least 3x faster than previous versions. Woo
+Hoo!
+
+=== 0.8.4 / 2005-01-01
+
+* Rubygems 0.8.3's installer was broken unless you already had an older
+ version of RubyGems installed. That's fixed.
+* Change in the way Gem::Specification internally deals with lazy attributes
+ and defaults, bringing (with some loadpath_manager changes) a fairly
+ significant increase in speed.
+* Support for lower-cased Gem file names (for you, Paul Duncan :)
+* Erik Veenstra's patch for making Gem versions sortable.
+
+=== 0.8.3 / 2004-12-07
+
+No real earth shattering news here, but there were a number of really
+annoying issues involving other libraries that RubyGems depends upon.
+0.8.3 contains some workarounds for these issues. In particular:
+
+* Added workaround for the null byte in Dir string issue. (see
+ http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/121702).
+ (Thanks to Mauricio Fernández for the quick response on this one).
+* Added workaround for old version of Zlib on windows that caused
+ Ruwiki to fail to install. (see
+ http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-talk/121770)
+* Added workaround for large YAML file issues. (We dynamically cut
+ down the size of the source index YAML file and seem to have worked
+ around immediate issues.
+
+There has been some minor usability enhancements and changes ...
+
+* A user specific source index cache can be used when the site-wide
+ cache is unwritable (i.e. because you are running as a non-admin).
+ This *greatly* speeds up gem commands run in non-admin mode when the
+ site-wide cache is out of date.
+* The gem command now used an HTTP HEAD command to detect if the
+ server's source index needs to be downloaed.
+* gem check gemname --test will run unit tests on installed gems that
+ have unit tests.
+* Multiple gem names are allowed on the gem install command line.
+ This means you can do:
+
+ gem install rake rails needle postgres-pr pimki
+
+ (Ok, you get the idea)
+* Multiple authors my be specified in a Gem spec.
+* Switched to using setup.rb (rather than a custom install script) for
+ the installation of RubyGems itself. If you have installed RubyGems
+ before, double check the installation instructions and make sure you
+ use setup.rb instead of install.rb.
+* Ryan Davis has provided a patch so you can use an env variable
+ (GEM_SKIP), to tell loadpath_manager not to load gems of those
+ names. This was useful for him while testing libs that he had in
+ development.
+
+=== 0.8.1 / 2009-09-14
+
+* Quick release to capture some bug fixes.
+
+=== 0.8.0 / 2009-09-12
+
+* Remove need for library stubs. Set the RUBYOPT environment variable to
+ include "rrubygems", and a normal require will find gem files. Continue to
+ use 'require_gem gem_name, version' to specify gem versions.
+* Deprecated "test_suite_file" gemspec attribute in favor of "test_files" array.
+* Generates rdoc by default on installs.
+* Adopted tar/gzip file format, thanks to Mauricio Fernandez.
+* "gem rdoc" allows generation of rdoc after gem installation (will add a "gem
+ test"
+* Application stubs can now accept an optional parameter of _VERSION_ that will
+ run an arbitrary version of the application requested.
+* Various bug fixes
+* Various platform-independency improvements
+* "gem spec --all" displays spec info for all installed version of a given gem.
+* Dynamic caching of sources
+* Support for user-definable sources on the command line (thanks Assaph Mehr)
+* More intelligent support for platform-dependent gems. Use Platform::CURRENT
+ when building a gem to set its platform to the one you're building on.
+ Installation displays a choice of platform-dependent gems, allowing the user
+ to pick.
+* Added "gem unpack" for "unpacking" a gem to the current directory
+
+=== 0.7.0 / 2004-07-09
+
+See ChangeLog
+
+=== 0.6.0 / 2004-06-08
+
+* Collapse output of --search and --list (and gem_server) operations so that
+ each gem is listed only once, with each of its versions listed on the same
+ line.
+* bin/gem: new --upgrade-all option allows one to upgrade every installed gem
+* new #required_ruby_version attribute added to gem specification for
+ specifying a dependency on which version of ruby the gem needs. Format it
+ accepts is the same as the Gem::Version::Requirement format:
+
+ spec.required_ruby_version = "> 1.8.0"
+* --install-stub defaults to true, so library stubs are created
+
+=== 0.5.0 / 2004-06-06
+
+* Jim added the ability to specify version constraints to avoid API
+ incompatibilities. This has been the subject of much debate for the past
+ couple of months, with many ideas and code contributed by Eivind Eklund and
+ Mauricio Fernandez. The following set of assertions shows how it works:
+
+ assert_inadequate("1.3", "~> 1.4")
+ assert_adequate( "1.4", "~> 1.4")
+ assert_adequate( "1.5", "~> 1.4")
+ assert_inadequate("2.0", "~> 1.4") # This one is key--the new operator
+ # disallows major version number
+ # differences.
+* Group gem search output when multiple versions exist for a given gem:
+
+ activerecord (0.7.8, 0.7.7, 0.7.6, 0.7.5)
+ Implements the ActiveRecord pattern for ORM.
+* Add arbitrary RDoc-able files via gemspec (not just Ruby source files) for
+ people who have, for example, README.rdoc in their distributions. Add to
+ gemspec via: spec.extra_rdoc_files = ["list", "of", "files"]. Ruby files are
+ automatically included.
+* Some small bug fixes
+
+=== 0.4.0 / 2004-05-31
+
+* Minor bug fixes including Windows compatability issues
+
+=== 0.3.0 / 2004-04-30
+
+* Cleanup of command-line arguments and handling. Most commands accept a
+ --local or --remote modifier.
+* Creation of Application Gems (packages that include executable programs).
+ See http://rubygems.rubyforge.org/wiki/wiki.pl?DeveloperGuide for information
+ on how to use it.
+* Basic functionality for installing binary gems from source (:extensions
+ property of gem specification holds an array of paths to extconf.rb files to
+ be used for compilation)
+* Install library "stub" allowing a normal 'require' to work (which then does
+ the rubygems require and 'require_gem'
+* --run-tests runs the test suite specified by the "test_suite_file" property
+ of a gem specification
+* HTTP Proxy support works. Rewrite of HTTP code.
+* Unit and functional tests added (see Rakefile).
+* Prompt before remote-installing dependencies during gem installation.
+* Config file for storing preferences for 'gem' command usage.
+* Generally improved error messages (still more work to do)
+* Rearranged gem directory structure for cleanliness.
+
+=== 0.2.0 / 2004-03-14
+
+* Initial public release
+
diff --git a/doc/rubygems/LICENSE.txt b/doc/rubygems/LICENSE.txt
new file mode 100644
index 0000000000..db88c5e118
--- /dev/null
+++ b/doc/rubygems/LICENSE.txt
@@ -0,0 +1,53 @@
+RubyGems is copyrighted free software by Chad Fowler, Rich Kilmer, Jim
+Weirich and others. You can redistribute it and/or modify it under
+either the terms of the GPL (see the GPL.txt file), or the conditions
+below:
+
+ 1. You may make and give away verbatim copies of the source form of the
+ software without restriction, provided that you duplicate all of the
+ original copyright notices and associated disclaimers.
+
+ 2. You may modify your copy of the software in any way, provided that
+ you do at least ONE of the following:
+
+ a) place your modifications in the Public Domain or otherwise
+ make them Freely Available, such as by posting said
+ modifications to Usenet or an equivalent medium, or by allowing
+ the author to include your modifications in the software.
+
+ b) use the modified software only within your corporation or
+ organization.
+
+ c) rename any non-standard executables so the names do not conflict
+ with standard executables, which must also be provided.
+
+ d) make other distribution arrangements with the author.
+
+ 3. You may distribute the software in object code or executable
+ form, provided that you do at least ONE of the following:
+
+ a) distribute the executables and library files of the software,
+ together with instructions (in the manual page or equivalent)
+ on where to get the original distribution.
+
+ b) accompany the distribution with the machine-readable source of
+ the software.
+
+ c) give non-standard executables non-standard names, with
+ instructions on where to get the original software distribution.
+
+ d) make other distribution arrangements with the author.
+
+ 4. You may modify and include the part of the software into any other
+ software (possibly commercial).
+
+ 5. The scripts and library files supplied as input to or produced as
+ output from the software do not automatically fall under the
+ copyright of the software, but belong to whomever generated them,
+ and may be sold commercially, and may be aggregated with this
+ software.
+
+ 6. THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
+ IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ PURPOSE.
diff --git a/doc/rubygems/README b/doc/rubygems/README
new file mode 100644
index 0000000000..68a52593d4
--- /dev/null
+++ b/doc/rubygems/README
@@ -0,0 +1,41 @@
+= RubyGems
+
+* http://rubygems.org/
+* http://docs.rubygems.org/
+* http://rubygems.rubyforge.org/
+* http://rubyforge.org/projects/rubygems
+
+== DESCRIPTION
+
+RubyGems is a package management framework for Ruby.
+
+This gem is an update for the RubyGems software. You must have an
+installation of RubyGems before this update can be applied.
+
+See Gem for information on RubyGems (or `ri Gem`)
+
+To upgrade to the latest RubyGems, run:
+
+ $ gem update --system # you might need to be an administrator or root
+
+NOTE: RubyGems 1.1 and 1.2 have problems upgrading when there is no
+rubygems-update installed. You will need to use the following instructions
+if you see "Nothing to update".
+
+If you have an older version of RubyGems installed, then you can still
+do it in two steps:
+
+ $ gem install rubygems-update # again, might need to be admin/root
+ $ update_rubygems # ... here too
+
+If you don't have any RubyGems install, there is still the pre-gem approach to
+getting software, doing it manually:
+
+1. Download from: http://rubyforge.org/frs/?group_id=126
+2. Unpack into a directory and cd there
+3. Install with: ruby setup.rb # you may need admin/root privilege
+
+For more details and other options, see:
+
+ ruby setup.rb --help
+
diff --git a/enc/Makefile.in b/enc/Makefile.in
index 8ba04f374a..203a83dbfd 100644
--- a/enc/Makefile.in
+++ b/enc/Makefile.in
@@ -1,3 +1,10 @@
+V = 0
+Q1 = $(V:1=)
+Q = $(Q1:0=@)
+n=$(NULLCMD)
+ECHO1 = $(V:1=@$n)
+ECHO = $(ECHO1:0=@echo)
+
encsrcdir = @srcdir@
topdir = .
prefix = @prefix@
@@ -45,9 +52,12 @@ archflag = @ARCH_FLAG@
DLDFLAGS = $(ldflags) $(dldflags) $(archflag)
RUBY = $(MINIRUBY)
-WORKDIRS = $(ENCSODIR) $(TRANSSODIR) enc enc/trans
+WORKDIRS = @WORKDIRS@
+NULLCMD = @NULLCMD@
RM = @RM@
+RMDIR = @RMDIR@
+RMDIRS = @RMDIRS@
MAKEDIRS = @MAKEDIRS@
.SUFFIXES: .trans
@@ -55,9 +65,10 @@ MAKEDIRS = @MAKEDIRS@
all: make-workdir
make-workdir:
- $(MAKEDIRS) $(WORKDIRS)
+ $(Q)$(MAKEDIRS) $(WORKDIRS)
clean:
-distclean: clean clean-srcs
- @$(RM) enc.mk
+distclean: clean
+ $(Q)$(RM) enc.mk
+realclean: distclean clean-srcs
diff --git a/enc/big5.c b/enc/big5.c
index 9993f472e1..c39329170e 100644
--- a/enc/big5.c
+++ b/enc/big5.c
@@ -47,6 +47,45 @@ static const int EncLen_BIG5[] = {
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1
};
+static const int EncLen_BIG5_HKSCS[] = {
+ /* LEN 0 1 2 3 4 5 6 7 8 9 A B C D E F */
+ /* 0 */ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ /* 1 */ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ /* 2 */ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ /* 3 */ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ /* 4 */ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ /* 5 */ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ /* 6 */ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ /* 7 */ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ /* 8 */ 1, 1, 1, 1, 1, 1, 1, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ /* 9 */ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ /* A */ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ /* B */ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ /* C */ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ /* D */ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ /* E */ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ /* F */ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1,
+};
+
+static const int EncLen_BIG5_UAO[] = {
+ /* LEN 0 1 2 3 4 5 6 7 8 9 A B C D E F */
+ /* 0 */ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ /* 1 */ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ /* 2 */ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ /* 3 */ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ /* 4 */ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ /* 5 */ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ /* 6 */ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ /* 7 */ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ /* 8 */ 1, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ /* 9 */ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ /* A */ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ /* B */ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ /* C */ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ /* D */ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ /* E */ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2,
+ /* F */ 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 2, 1,
+};
typedef enum { FAILURE = -2, ACCEPT = -1, S0 = 0, S1 } state_t;
#define A ACCEPT
@@ -68,7 +107,7 @@ static const signed char trans[][0x100] = {
/* c */ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
/* d */ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
/* e */ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- /* f */ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, F
+ /* f */ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, F
},
{ /* S1 0 1 2 3 4 5 6 7 8 9 a b c d e f */
/* 0 */ F, F, F, F, F, F, F, F, F, F, F, F, F, F, F, F,
@@ -86,27 +125,63 @@ static const signed char trans[][0x100] = {
/* c */ A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A,
/* d */ A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A,
/* e */ A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A,
- /* f */ A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, F
+ /* f */ A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, F
+ },
+ { /* S2 0 1 2 3 4 5 6 7 8 9 a b c d e f */
+ /* 0 */ A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A,
+ /* 1 */ A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A,
+ /* 2 */ A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A,
+ /* 3 */ A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A,
+ /* 4 */ A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A,
+ /* 5 */ A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A,
+ /* 6 */ A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A,
+ /* 7 */ A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A,
+ /* 8 */ F, F, F, F, F, F, F, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ /* 9 */ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ /* a */ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ /* b */ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ /* c */ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ /* d */ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ /* e */ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
+ /* f */ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, F
}
};
#undef A
#undef F
static int
-big5_mbc_enc_len(const UChar* p, const UChar* e, OnigEncoding enc ARG_UNUSED)
+big5_mbc_enc_len0(const UChar* p, const UChar* e, int tridx, const int tbl[])
{
int firstbyte = *p++;
- state_t s = trans[0][firstbyte];
+ state_t s = trans[tridx][firstbyte];
#define RETURN(n) \
return s == ACCEPT ? ONIGENC_CONSTRUCT_MBCLEN_CHARFOUND(n) : \
ONIGENC_CONSTRUCT_MBCLEN_INVALID()
if (s < 0) RETURN(1);
- if (p == e) return ONIGENC_CONSTRUCT_MBCLEN_NEEDMORE(EncLen_BIG5[firstbyte]-1);
+ if (p == e) return ONIGENC_CONSTRUCT_MBCLEN_NEEDMORE(tbl[firstbyte]-1);
s = trans[s][*p++];
RETURN(2);
#undef RETURN
}
+static int
+big5_mbc_enc_len(const UChar* p, const UChar* e, OnigEncoding enc ARG_UNUSED)
+{
+ return big5_mbc_enc_len0(p, e, 0, EncLen_BIG5);
+}
+
+static int
+big5_hkscs_mbc_enc_len(const UChar* p, const UChar* e, OnigEncoding enc ARG_UNUSED)
+{
+ return big5_mbc_enc_len0(p, e, 2, EncLen_BIG5_HKSCS);
+}
+
+static int
+big5_uao_mbc_enc_len(const UChar* p, const UChar* e, OnigEncoding enc ARG_UNUSED)
+{
+ return big5_mbc_enc_len0(p, e, 2, EncLen_BIG5_UAO);
+}
+
static OnigCodePoint
big5_mbc_to_code(const UChar* p, const UChar* end, OnigEncoding enc)
{
@@ -161,7 +236,13 @@ static const char BIG5_CAN_BE_TRAIL_TABLE[256] = {
1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 0
};
-#define BIG5_ISMB_FIRST(byte) (EncLen_BIG5[byte] > 1)
+#define BIG5_HKSCS_P(enc) ((enc)->precise_mbc_enc_len == big5_hkscs_mbc_enc_len)
+#define BIG5_UAO_P(enc) ((enc)->precise_mbc_enc_len == big5_uao_mbc_enc_len)
+
+#define BIG5_ISMB_FIRST(byte) ( \
+ BIG5_HKSCS_P(enc) ? EncLen_BIG5_HKSCS[byte] > 1 : \
+ EncLen_BIG5[byte] > 1 \
+ )
#define BIG5_ISMB_TRAIL(byte) BIG5_CAN_BE_TRAIL_TABLE[(byte)]
static UChar*
@@ -179,7 +260,7 @@ big5_left_adjust_char_head(const UChar* start, const UChar* s, const UChar* end,
p++;
break;
}
- }
+ }
}
len = enclen(enc, p, end);
if (p + len > s) return (UChar* )p;
@@ -195,6 +276,13 @@ big5_is_allowed_reverse_match(const UChar* s, const UChar* end ARG_UNUSED, OnigE
return (BIG5_ISMB_TRAIL(c) ? FALSE : TRUE);
}
+/*
+ * Name: Big5 (preferred MIME name)
+ * MIBenum: 2026
+ * Source: Chinese for Taiwan Multi-byte set.
+ * PCL Symbol Set Id: 18T
+ * Alias: csBig5
+ */
OnigEncodingDefine(big5, BIG5) = {
big5_mbc_enc_len,
"Big5", /* name */
@@ -213,4 +301,67 @@ OnigEncodingDefine(big5, BIG5) = {
big5_left_adjust_char_head,
big5_is_allowed_reverse_match
};
-ENC_ALIAS("CP950", "BIG5")
+
+/*
+ * Name: CP950
+ * Source: http://msdn.microsoft.com/en-us/goglobal/cc305155.aspx
+ */
+ENC_REPLICATE("CP950", "Big5")
+
+/*
+ * Name: Big5-HKSCS
+ * MIBenum: 2101
+ * Source: http://www.iana.org/assignments/charset-reg/Big5-HKSCS
+ * Source: http://www.ogcio.gov.hk/ccli/eng/hkscs/mapping_table_2008.html
+ * Alias: None
+ */
+OnigEncodingDefine(big5_hkscs, BIG5_HKSCS) = {
+ big5_hkscs_mbc_enc_len,
+ "Big5-HKSCS", /* name */
+ 2, /* max enc length */
+ 1, /* min enc length */
+ onigenc_is_mbc_newline_0x0a,
+ big5_mbc_to_code,
+ onigenc_mb2_code_to_mbclen,
+ big5_code_to_mbc,
+ big5_mbc_case_fold,
+ onigenc_ascii_apply_all_case_fold,
+ onigenc_ascii_get_case_fold_codes_by_str,
+ onigenc_minimum_property_name_to_ctype,
+ big5_is_code_ctype,
+ onigenc_not_support_get_ctype_code_range,
+ big5_left_adjust_char_head,
+ big5_is_allowed_reverse_match
+};
+ENC_ALIAS("Big5-HKSCS:2008", "Big5-HKSCS")
+
+/*
+ * Name: CP951
+ * Source: http://www.microsoft.com/hk/hkscs/default.aspx
+ * Source: http://www.microsoft.com/downloads/en/details.aspx?FamilyID=0e6f5ac8-7baa-4571-b8e8-78b3b776afd7&DisplayLang=en
+ * Source: http://blogs.msdn.com/b/shawnste/archive/2007/03/12/cp-951-hkscs.aspx
+ */
+ENC_REPLICATE("CP951", "Big5-HKSCS")
+
+/*
+ * Name: Big5-UAO [NOT registered by IANA!]
+ * Source: http://moztw.org/docs/big5/table/big5_2003-b2u.txt
+ */
+OnigEncodingDefine(big5_uao, BIG5_UAO) = {
+ big5_uao_mbc_enc_len,
+ "Big5-UAO", /* name */
+ 2, /* max enc length */
+ 1, /* min enc length */
+ onigenc_is_mbc_newline_0x0a,
+ big5_mbc_to_code,
+ onigenc_mb2_code_to_mbclen,
+ big5_code_to_mbc,
+ big5_mbc_case_fold,
+ onigenc_ascii_apply_all_case_fold,
+ onigenc_ascii_get_case_fold_codes_by_str,
+ onigenc_minimum_property_name_to_ctype,
+ big5_is_code_ctype,
+ onigenc_not_support_get_ctype_code_range,
+ big5_left_adjust_char_head,
+ big5_is_allowed_reverse_match
+};
diff --git a/enc/cp949.c b/enc/cp949.c
index 009443aed4..3eb46c976a 100644
--- a/enc/cp949.c
+++ b/enc/cp949.c
@@ -90,7 +90,7 @@ static const signed char trans[][0x100] = {
/* c */ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
/* d */ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
/* e */ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- /* f */ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, F
+ /* f */ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, F
},
{ /* S1 0 1 2 3 4 5 6 7 8 9 a b c d e f */
/* 0 */ F, F, F, F, F, F, F, F, F, F, F, F, F, F, F, F,
@@ -108,7 +108,7 @@ static const signed char trans[][0x100] = {
/* c */ A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A,
/* d */ A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A,
/* e */ A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A,
- /* f */ A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, F
+ /* f */ A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, F
}
};
#undef A
@@ -179,7 +179,7 @@ cp949_left_adjust_char_head(const UChar* start, const UChar* s, const UChar* end
p++;
break;
}
- }
+ }
}
len = enclen(enc, p, end);
if (p + len > s) return (UChar* )p;
diff --git a/enc/depend b/enc/depend
index 7186179ef0..8e930d5053 100644
--- a/enc/depend
+++ b/enc/depend
@@ -1,3 +1,6 @@
+% inplace = File.identical?($srcdir, ".")
+% workdirs = %w"$(ENCSODIR) $(TRANSSODIR) enc enc/trans"
+% CONFIG["WORKDIRS"] = workdirs.join(' ')
% CONFIG["DLDFLAGS"].sub!(/(\A|\s)(-\S+(?:\s*\w*)?\$\(TARGET\)\S*)/, '\1')
% dldflags = $2
% enable_shared = CONFIG['ENABLE_SHARED'] == 'yes'
@@ -80,7 +83,8 @@ trans: $(TRANSSOS)
srcs: $(TRANSCSRCS)
<%=transvpath_prefix%>.trans<%=transvpath_prefix%>.c:
- $(MINIRUBY) "$(srcdir)/tool/transcode-tblgen.rb" -vo "$@" "$<"
+ $(ECHO) generating table from $@
+ $(Q)$(MINIRUBY) "$(srcdir)/tool/transcode-tblgen.rb" -vo "$@" "$<"
% unless encs.empty? or trans.empty?
@@ -104,24 +108,33 @@ $(TRANSOBJS): ruby.h intern.h config.h defines.h missing.h encoding.h oniguruma.
% dependencies.each do |e|
% obj = "enc/#{e}.$(OBJEXT)"
% df = ("enc/#{e}.def" if deffile)
-$(ENCSODIR)/<%=e%>.$(DLEXT): <%=obj%>
+% target = e.dup
+% if target.sub!(/\Atrans\//, '$(TRANSSODIR)/')
+% mesg = "transcoder"
+% else
+% target = "$(ENCSODIR)/#{e}"
+% mesg = "encoding"
+% end
+<%=target%>.$(DLEXT): <%=obj%>
+ $(ECHO) linking <%=mesg%> $(@F)
% cmd = link_so.sub(/\$\(OBJS\)/) {obj}
% base = File.basename(e)
% cmd.sub!(/(?=\$\(DLDFLAGS\))/) {dldflags.sub(/\$\(TARGET\)/) {base} + " "} if dldflags
% if df
- echo> <%=df%> EXPORTS
- echo>> <%=df%> <%=EXPORT_PREFIX%>Init_<%=base%>
+ $(Q)echo> <%=df%> EXPORTS
+ $(Q)echo>> <%=df%> <%=EXPORT_PREFIX%>Init_<%=base%>
% cmd.sub!(/\$\(DEFFILE\)/) {df}
% cmd.gsub!(/-(?:implib|pdb):/) {|s|"#{s}enc/#{e.sub(/[^\/]+\z/, '')}"}
% end
- @$(MAKEDIRS) "$(@D)"
- <%=cmd%>
+ $(Q)$(MAKEDIRS) "$(@D)"
+ $(Q)<%=cmd%>
% end
% dependencies.each do |e|
<%="enc/#{e}.$(OBJEXT)"%>: <%="$(encsrcdir)/#{e}.c"%>
- -@$(MAKEDIRS) "$(@D)"
- <%=COMPILE_C.gsub(/\$(\()?<(\:[^)]+)?(\))?/){"$(encsrcdir)/#{e}.c"}%>
+ -$(Q)$(MAKEDIRS) "$(@D)"
+ $(ECHO) compiling <%= "$(encsrcdir)/#{e}.c"%>
+ $(Q)<%=COMPILE_C.gsub(/\$(\()?<(\:[^)]+)?(\))?/){"$(encsrcdir)/#{e}.c"}%>
% end
@@ -130,14 +143,20 @@ enc/trans/transdb.$(OBJEXT): transdb.h
clean:
% %w[$(ENCSOS) $(ENCOBJS) $(ENCCLEANOBJS) $(ENCCLEANLIBS) $(TRANSSOS) $(TRANSOBJS) $(TRANSCLEANOBJS) $(TRANSCLEANLIBS)].each do |clean|
- @$(RM) <%=pathrep[clean]%>
+ $(Q)$(RM) <%=pathrep[clean]%>
+% end
+% @ignore_error = $nmake ? '' : ' 2> /dev/null || true'
+% unless inplace
+ $(Q)$(RM) enc/unicode/name2ctype.h
+ -$(Q)$(RMDIR) enc/unicode<%=@ignore_error%>
% end
-% %w[$(TRANSSODIR) $(ENCSODIR)].each do|dir|
- @-rmdir <%=pathrep[dir]%>
+% workdirs.reverse_each do|dir|
+ -$(Q)$(RMDIR) <%=pathrep[dir]%><%=@ignore_error%>
% end
clean-srcs:
- @$(RM) <%=pathrep['$(TRANSCSRCS)']%>
-% %w[enc/trans enc].each do|dir|
- @-rmdir <%=pathrep[dir]%>
-% end
+ $(Q)$(RM) <%=pathrep['$(TRANSCSRCS)']%>
+ -$(Q)$(RMDIR) <%=pathrep['enc/trans']%><%=@ignore_error%>
+ $(Q)$(RM) enc/unicode/name2ctype.h
+ -$(Q)$(RMDIR) <%=pathrep['enc/unicode']%><%=@ignore_error%>
+ -$(Q)$(RMDIR) <%=pathrep['enc']%><%=@ignore_error%>
diff --git a/enc/emacs_mule.c b/enc/emacs_mule.c
index be7f842259..e75e40b168 100644
--- a/enc/emacs_mule.c
+++ b/enc/emacs_mule.c
@@ -30,7 +30,7 @@
#include "regint.h"
-#define emacsmule_islead(c) ((UChar )((c) - 0x81) > 0x9d - 0x81)
+#define emacsmule_islead(c) ((UChar )(c) < 0x9e)
/*
CHARACTER := ASCII_CHAR | MULTIBYTE_CHAR
@@ -103,7 +103,7 @@ static const signed char trans[][0x100] = {
/* c */ A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A,
/* d */ A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A,
/* e */ A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A,
- /* f */ A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A
+ /* f */ A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A
},
{ /* S2 0 1 2 3 4 5 6 7 8 9 a b c d e f */
/* 0 */ F, F, F, F, F, F, F, F, F, F, F, F, F, F, F, F,
@@ -121,7 +121,7 @@ static const signed char trans[][0x100] = {
/* c */ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
/* d */ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
/* e */ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- /* f */ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1
+ /* f */ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1
},
{ /* S3 0 1 2 3 4 5 6 7 8 9 a b c d e f */
/* 0 */ F, F, F, F, F, F, F, F, F, F, F, F, F, F, F, F,
@@ -264,7 +264,7 @@ code_to_mbc(OnigCodePoint code, UChar *buf, OnigEncoding enc)
if (enclen(enc, buf, p) != (p - buf))
return ONIGERR_INVALID_CODE_POINT_VALUE;
- return p - buf;
+ return (int)(p - buf);
}
static int
diff --git a/enc/encdb.c b/enc/encdb.c
index 35f4c93b55..958b33504e 100644
--- a/enc/encdb.c
+++ b/enc/encdb.c
@@ -13,10 +13,12 @@ int rb_encdb_replicate(const char *alias, const char *orig);
int rb_encdb_alias(const char *alias, const char *orig);
int rb_encdb_dummy(const char *name);
void rb_encdb_declare(const char *name);
-#define ENC_REPLICATE(name, orig) rb_encdb_replicate(name, orig)
-#define ENC_ALIAS(name, orig) rb_encdb_alias(name, orig)
+void rb_enc_set_base(const char *name, const char *orig);
+#define ENC_REPLICATE(name, orig) rb_encdb_replicate((name), (orig))
+#define ENC_ALIAS(name, orig) rb_encdb_alias((name), (orig))
#define ENC_DUMMY(name) rb_encdb_dummy(name)
#define ENC_DEFINE(name) rb_encdb_declare(name)
+#define ENC_SET_BASE(name, orig) rb_enc_set_base((name), (orig))
void
Init_encdb(void)
diff --git a/enc/euc_jp.c b/enc/euc_jp.c
index 21f30ad2f3..7667c5800e 100644
--- a/enc/euc_jp.c
+++ b/enc/euc_jp.c
@@ -71,7 +71,7 @@ static const signed char trans[][0x100] = {
/* c */ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
/* d */ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
/* e */ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- /* f */ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, F
+ /* f */ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, F
},
{ /* S1 0 1 2 3 4 5 6 7 8 9 a b c d e f */
/* 0 */ F, F, F, F, F, F, F, F, F, F, F, F, F, F, F, F,
@@ -89,7 +89,7 @@ static const signed char trans[][0x100] = {
/* c */ A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A,
/* d */ A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A,
/* e */ A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A,
- /* f */ A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, F
+ /* f */ A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, F
},
{ /* S2 0 1 2 3 4 5 6 7 8 9 a b c d e f */
/* 0 */ F, F, F, F, F, F, F, F, F, F, F, F, F, F, F, F,
@@ -107,7 +107,7 @@ static const signed char trans[][0x100] = {
/* c */ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
/* d */ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
/* e */ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- /* f */ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, F
+ /* f */ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, F
},
};
@@ -154,9 +154,10 @@ static int
code_to_mbclen(OnigCodePoint code, OnigEncoding enc ARG_UNUSED)
{
if (ONIGENC_IS_CODE_ASCII(code)) return 1;
- else if (code > 0xffffff) return 0;
- else if ((code & 0xff0000) >= 0x800000) return 3;
- else if ((code & 0xff00) >= 0x8000) return 2;
+ else if (code > 0xffffff)
+ return ONIGERR_TOO_BIG_WIDE_CHAR_VALUE;
+ else if (code & 0x800000) return 3;
+ else if (code & 0x8000) return 2;
else
return ONIGERR_INVALID_CODE_POINT_VALUE;
}
@@ -192,8 +193,8 @@ code_to_mbc(OnigCodePoint code, UChar *buf, OnigEncoding enc)
#if 1
if (enclen(enc, buf, p) != (p - buf))
return ONIGERR_INVALID_CODE_POINT_VALUE;
-#endif
- return p - buf;
+#endif
+ return (int)(p - buf);
}
static int
@@ -274,8 +275,8 @@ init_property_list(void)
{
int r;
- PROPERTY_LIST_ADD_PROP("Hiragana", CR_Hiragana);
- PROPERTY_LIST_ADD_PROP("Katakana", CR_Katakana);
+ PROPERTY_LIST_ADD_PROP("hiragana", CR_Hiragana);
+ PROPERTY_LIST_ADD_PROP("katakana", CR_Katakana);
PropertyInited = 1;
end:
@@ -286,14 +287,20 @@ static int
property_name_to_ctype(OnigEncoding enc, UChar* p, UChar* end)
{
st_data_t ctype;
+ UChar *s, *e;
PROPERTY_LIST_INIT_CHECK;
- if (onig_st_lookup_strend(PropertyNameTable, p, end, &ctype) == 0) {
- return onigenc_minimum_property_name_to_ctype(enc, p, end);
+ s = e = ALLOCA_N(UChar, end-p+1);
+ for (; p < end; p++) {
+ *e++ = ONIGENC_ASCII_CODE_TO_LOWER_CASE(*p);
+ }
+
+ if (onig_st_lookup_strend(PropertyNameTable, s, e, &ctype) == 0) {
+ return onigenc_minimum_property_name_to_ctype(enc, s, e);
}
- return ctype;
+ return (int)ctype;
}
static int
@@ -367,6 +374,7 @@ OnigEncodingDefine(euc_jp, EUC_JP) = {
* MIBenum: 18
* Link: http://www.iana.org/assignments/character-sets
* Link: http://home.m05.itscom.net/numa/cde/sjis-euc/sjis-euc.html
+ * Link: http://home.m05.itscom.net/numa/uocjleE.pdf
*/
ENC_ALIAS("eucJP", "EUC-JP") /* UI-OSF Application Platform Profile for Japanese Environment Version 1.1 */
@@ -381,6 +389,8 @@ ENC_ALIAS("euc-jp-ms", "eucJP-ms")
/*
* Name: CP51932
+ * MIBenum: 2108
+ * Link: http://www.iana.org/assignments/charset-reg/CP51932
* Link: http://search.cpan.org/src/NARUSE/Encode-EUCJPMS-0.07/ucm/cp51932.ucm
* Link: http://legacy-encoding.sourceforge.jp/wiki/index.php?cp51932
* Link: http://msyk.at.webry.info/200511/article_2.html
diff --git a/enc/euc_kr.c b/enc/euc_kr.c
index f20a57e69a..af5f7828f0 100644
--- a/enc/euc_kr.c
+++ b/enc/euc_kr.c
@@ -68,7 +68,7 @@ static const signed char trans[][0x100] = {
/* c */ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
/* d */ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
/* e */ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- /* f */ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, F
+ /* f */ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, F
},
{ /* S1 0 1 2 3 4 5 6 7 8 9 a b c d e f */
/* 0 */ F, F, F, F, F, F, F, F, F, F, F, F, F, F, F, F,
@@ -86,7 +86,7 @@ static const signed char trans[][0x100] = {
/* c */ A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A,
/* d */ A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A,
/* e */ A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A,
- /* f */ A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, F
+ /* f */ A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, F
}
};
#undef A
diff --git a/enc/euc_tw.c b/enc/euc_tw.c
index d025a0dd45..5fed8a893d 100644
--- a/enc/euc_tw.c
+++ b/enc/euc_tw.c
@@ -2,7 +2,7 @@
euc_tw.c - Oniguruma (regular expression library)
**********************************************************************/
/*-
- * Copyright (c) 2002-2007 K.Kosako <sndgk393 AT ybb DOT ne DOT jp>
+ * Copyright (c) 2002-2008 K.Kosako <sndgk393 AT ybb DOT ne DOT jp>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -68,7 +68,7 @@ static const signed char trans[][0x100] = {
/* c */ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
/* d */ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
/* e */ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- /* f */ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, F
+ /* f */ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, F
},
{ /* S1 0 1 2 3 4 5 6 7 8 9 a b c d e f */
/* 0 */ F, F, F, F, F, F, F, F, F, F, F, F, F, F, F, F,
@@ -86,7 +86,7 @@ static const signed char trans[][0x100] = {
/* c */ A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A,
/* d */ A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A,
/* e */ A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A,
- /* f */ A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, F
+ /* f */ A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, F
},
{ /* S2 0 1 2 3 4 5 6 7 8 9 a b c d e f */
/* 0 */ F, F, F, F, F, F, F, F, F, F, F, F, F, F, F, F,
@@ -104,7 +104,7 @@ static const signed char trans[][0x100] = {
/* c */ F, F, F, F, F, F, F, F, F, F, F, F, F, F, F, F,
/* d */ F, F, F, F, F, F, F, F, F, F, F, F, F, F, F, F,
/* e */ F, F, F, F, F, F, F, F, F, F, F, F, F, F, F, F,
- /* f */ F, F, F, F, F, F, F, F, F, F, F, F, F, F, F, F
+ /* f */ F, F, F, F, F, F, F, F, F, F, F, F, F, F, F, F
},
{ /* S3 0 1 2 3 4 5 6 7 8 9 a b c d e f */
/* 0 */ F, F, F, F, F, F, F, F, F, F, F, F, F, F, F, F,
@@ -122,7 +122,7 @@ static const signed char trans[][0x100] = {
/* c */ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
/* d */ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
/* e */ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- /* f */ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, F
+ /* f */ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, F
}
};
#undef A
@@ -169,15 +169,6 @@ euctw_mbc_case_fold(OnigCaseFoldType flag, const UChar** pp, const UChar* end,
pp, end, lower);
}
-#if 0
-static int
-euctw_is_mbc_ambiguous(OnigCaseFoldType flag,
- const UChar** pp, const UChar* end, OnigEncoding enc)
-{
- return onigenc_mbn_is_mbc_ambiguous(enc, flag, pp, end);
-}
-#endif
-
static int
euctw_is_code_ctype(OnigCodePoint code, unsigned int ctype, OnigEncoding enc)
{
diff --git a/enc/gb18030.c b/enc/gb18030.c
index 16c8c1c17f..36e60af6b5 100644
--- a/enc/gb18030.c
+++ b/enc/gb18030.c
@@ -82,7 +82,7 @@ static const signed char trans[][0x100] = {
/* c */ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
/* d */ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
/* e */ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- /* f */ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, F
+ /* f */ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, F
},
{ /* S1 0 1 2 3 4 5 6 7 8 9 a b c d e f */
/* 0 */ F, F, F, F, F, F, F, F, F, F, F, F, F, F, F, F,
@@ -100,7 +100,7 @@ static const signed char trans[][0x100] = {
/* c */ A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A,
/* d */ A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A,
/* e */ A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A,
- /* f */ A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, F
+ /* f */ A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, F
},
{ /* S2 0 1 2 3 4 5 6 7 8 9 a b c d e f */
/* 0 */ F, F, F, F, F, F, F, F, F, F, F, F, F, F, F, F,
@@ -118,7 +118,7 @@ static const signed char trans[][0x100] = {
/* c */ 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
/* d */ 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
/* e */ 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3,
- /* f */ 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, F
+ /* f */ 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, F
},
{ /* S3 0 1 2 3 4 5 6 7 8 9 a b c d e f */
/* 0 */ F, F, F, F, F, F, F, F, F, F, F, F, F, F, F, F,
@@ -136,7 +136,7 @@ static const signed char trans[][0x100] = {
/* c */ F, F, F, F, F, F, F, F, F, F, F, F, F, F, F, F,
/* d */ F, F, F, F, F, F, F, F, F, F, F, F, F, F, F, F,
/* e */ F, F, F, F, F, F, F, F, F, F, F, F, F, F, F, F,
- /* f */ F, F, F, F, F, F, F, F, F, F, F, F, F, F, F, F
+ /* f */ F, F, F, F, F, F, F, F, F, F, F, F, F, F, F, F
}
};
#undef A
@@ -575,6 +575,11 @@ gb18030_is_allowed_reverse_match(const UChar* s, const UChar* end ARG_UNUSED, On
return GB18030_MAP[*s] == C1 ? TRUE : FALSE;
}
+/*
+ * Name: GB18030
+ * MIBenum: 114
+ * Link: http://www.iana.org/assignments/charset-reg/GB18030
+ */
OnigEncodingDefine(gb18030, GB18030) = {
gb18030_mbc_enc_len,
"GB18030", /* name */
diff --git a/enc/gbk.c b/enc/gbk.c
index 3efb1bf636..ace7f378af 100644
--- a/enc/gbk.c
+++ b/enc/gbk.c
@@ -90,7 +90,7 @@ static const signed char trans[][0x100] = {
/* c */ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
/* d */ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
/* e */ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
- /* f */ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, F
+ /* f */ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, F
},
{ /* S1 0 1 2 3 4 5 6 7 8 9 a b c d e f */
/* 0 */ F, F, F, F, F, F, F, F, F, F, F, F, F, F, F, F,
@@ -108,7 +108,7 @@ static const signed char trans[][0x100] = {
/* c */ A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A,
/* d */ A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A,
/* e */ A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, A,
- /* f */ A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, F
+ /* f */ A, A, A, A, A, A, A, A, A, A, A, A, A, A, A, F
}
};
#undef A
@@ -179,7 +179,7 @@ gbk_left_adjust_char_head(const UChar* start, const UChar* s, const UChar* end,
p++;
break;
}
- }
+ }
}
len = enclen(enc, p, end);
if (p + len > s) return (UChar* )p;
diff --git a/enc/iso_2022_jp.h b/enc/iso_2022_jp.h
index 8ba272bfa2..8cfad0be06 100644
--- a/enc/iso_2022_jp.h
+++ b/enc/iso_2022_jp.h
@@ -5,16 +5,34 @@ ENC_ALIAS("ISO2022-JP", "ISO-2022-JP");
ENC_REPLICATE("ISO-2022-JP-2", "ISO-2022-JP");
ENC_ALIAS("ISO2022-JP2", "ISO-2022-JP-2");
-/* Windows Codepage 50221
+/* Windows Codepage 50220
* a ISO-2022-JP variant.
* This includes
* * US-ASCII
+ * * JIS X 0201 Latin
* * JIS X 0201 Katakana
* * JIS X 0208
* * NEC special characters
* * NEC selected IBM extended characters
* and this implementation doesn't include
+ * * User Defined Characters
+ *
+ * So this CP50220 has the same characters of CP51932.
+ *
+ * See http://legacy-encoding.sourceforge.jp/wiki/index.php?cp50220
+ */
+ENC_REPLICATE("CP50220", "ISO-2022-JP");
+
+/* Windows Codepage 50221
+ * a ISO-2022-JP variant.
+ * This includes
+ * * US-ASCII
* * JIS X 0201 Latin
+ * * JIS X 0201 Katakana
+ * * JIS X 0208
+ * * NEC special characters
+ * * NEC selected IBM extended characters
+ * and this implementation doesn't include
* * User Defined Characters
*
* So this CP50221 has the same characters of CP51932.
diff --git a/enc/iso_8859_1.c b/enc/iso_8859_1.c
index b73f8ca379..a10a7679b8 100644
--- a/enc/iso_8859_1.c
+++ b/enc/iso_8859_1.c
@@ -29,6 +29,8 @@
#include "regenc.h"
+#define numberof(array) (int)(sizeof(array) / sizeof((array)[0]))
+
#define ENC_IS_ISO_8859_1_CTYPE(code,ctype) \
((EncISO_8859_1_CtypeTable[code] & CTYPE_TO_BIT(ctype)) != 0)
@@ -107,7 +109,7 @@ apply_all_case_fold(OnigCaseFoldType flag,
OnigEncoding enc ARG_UNUSED)
{
return onigenc_apply_all_case_fold_with_map(
- sizeof(CaseFoldMap)/sizeof(OnigPairCaseFoldCodes), CaseFoldMap, 1,
+ numberof(CaseFoldMap), CaseFoldMap, 1,
flag, f, arg);
}
diff --git a/enc/iso_8859_2.c b/enc/iso_8859_2.c
index 9783f1cd02..6c0d2d7dc1 100644
--- a/enc/iso_8859_2.c
+++ b/enc/iso_8859_2.c
@@ -29,6 +29,8 @@
#include "regenc.h"
+#define numberof(array) (int)(sizeof(array) / sizeof((array)[0]))
+
#define ENC_ISO_8859_2_TO_LOWER_CASE(c) EncISO_8859_2_ToLowerCaseTable[c]
#define ENC_IS_ISO_8859_2_CTYPE(code,ctype) \
((EncISO_8859_2_CtypeTable[code] & CTYPE_TO_BIT(ctype)) != 0)
@@ -195,7 +197,7 @@ apply_all_case_fold(OnigCaseFoldType flag,
OnigEncoding enc ARG_UNUSED)
{
return onigenc_apply_all_case_fold_with_map(
- sizeof(CaseFoldMap)/sizeof(OnigPairCaseFoldCodes), CaseFoldMap, 1,
+ numberof(CaseFoldMap), CaseFoldMap, 1,
flag, f, arg);
}
@@ -206,7 +208,7 @@ get_case_fold_codes_by_str(OnigCaseFoldType flag,
OnigEncoding enc ARG_UNUSED)
{
return onigenc_get_case_fold_codes_by_str_with_map(
- sizeof(CaseFoldMap)/sizeof(OnigPairCaseFoldCodes), CaseFoldMap, 1,
+ numberof(CaseFoldMap), CaseFoldMap, 1,
flag, p, end, items);
}
diff --git a/enc/iso_8859_5.c b/enc/iso_8859_5.c
index 1550763323..81cc8e5b32 100644
--- a/enc/iso_8859_5.c
+++ b/enc/iso_8859_5.c
@@ -2,7 +2,7 @@
iso8859_5.c - Oniguruma (regular expression library)
**********************************************************************/
/*-
- * Copyright (c) 2002-2007 K.Kosako <sndgk393 AT ybb DOT ne DOT jp>
+ * Copyright (c) 2002-2008 K.Kosako <sndgk393 AT ybb DOT ne DOT jp>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/enc/koi8_r.c b/enc/koi8_r.c
index fb6e10eadc..f5b7d22349 100644
--- a/enc/koi8_r.c
+++ b/enc/koi8_r.c
@@ -2,7 +2,7 @@
koi8_r.c - Oniguruma (regular expression library)
**********************************************************************/
/*-
- * Copyright (c) 2002-2007 K.Kosako <sndgk393 AT ybb DOT ne DOT jp>
+ * Copyright (c) 2002-2008 K.Kosako <sndgk393 AT ybb DOT ne DOT jp>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/enc/koi8_u.c b/enc/koi8_u.c
index 9bd363df12..dfbaa9ac36 100644
--- a/enc/koi8_u.c
+++ b/enc/koi8_u.c
@@ -2,7 +2,7 @@
koi8_u.c - Oniguruma (regular expression library)
**********************************************************************/
/*-
- * Copyright (c) 2002-2007 K.Kosako <sndgk393 AT ybb DOT ne DOT jp>
+ * Copyright (c) 2002-2008 K.Kosako <sndgk393 AT ybb DOT ne DOT jp>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
diff --git a/enc/make_encmake.rb b/enc/make_encmake.rb
index 107a387571..ed3680313f 100644..100755
--- a/enc/make_encmake.rb
+++ b/enc/make_encmake.rb
@@ -9,7 +9,7 @@ if $".grep(/mkmf/).empty?
end
require 'erb'
-CONFIG["MAKEDIRS"] ||= '@$(MINIRUBY) -run -e mkdir -- -p'
+CONFIG["MAKEDIRS"] ||= '$(MINIRUBY) -run -e mkdir -- -p'
BUILTIN_ENCS = []
BUILTIN_TRANSES = []
diff --git a/enc/prelude.rb b/enc/prelude.rb
index a5c78b7e64..8ce59f957a 100644
--- a/enc/prelude.rb
+++ b/enc/prelude.rb
@@ -1,4 +1,4 @@
-%w'enc/encdb enc/trans/transdb'.each do |init|
+%w'enc/encdb.so enc/trans/transdb.so'.each do |init|
begin
require(init)
rescue LoadError
diff --git a/enc/shift_jis.c b/enc/shift_jis.c
index b4d8592a27..9dcacb584d 100644
--- a/enc/shift_jis.c
+++ b/enc/shift_jis.c
@@ -2,7 +2,7 @@
sjis.c - Oniguruma (regular expression library)
**********************************************************************/
/*-
- * Copyright (c) 2002-2007 K.Kosako <sndgk393 AT ybb DOT ne DOT jp>
+ * Copyright (c) 2002-2008 K.Kosako <sndgk393 AT ybb DOT ne DOT jp>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -135,13 +135,13 @@ code_to_mbclen(OnigCodePoint code, OnigEncoding enc ARG_UNUSED)
if (EncLen_SJIS[(int )code] == 1)
return 1;
else
- return 0;
+ return ONIGERR_INVALID_CODE_POINT_VALUE;
}
else if (code <= 0xffff) {
return 2;
}
else
- return ONIGERR_INVALID_CODE_POINT_VALUE;
+ return ONIGERR_TOO_BIG_WIDE_CHAR_VALUE;
}
static OnigCodePoint
@@ -175,7 +175,7 @@ code_to_mbc(OnigCodePoint code, UChar *buf, OnigEncoding enc)
if (enclen(enc, buf) != (p - buf))
return REGERR_INVALID_CODE_POINT_VALUE;
#endif
- return p - buf;
+ return (int)(p - buf);
}
static int
@@ -208,7 +208,7 @@ is_mbc_ambiguous(OnigCaseFoldType flag,
const UChar** pp, const UChar* end)
{
return onigenc_mbn_is_mbc_ambiguous(enc, flag, pp, end);
-
+
}
#endif
@@ -243,7 +243,7 @@ left_adjust_char_head(const UChar* start, const UChar* s, const UChar* end, Onig
p++;
break;
}
- }
+ }
}
len = enclen(enc, p, end);
if (p + len > s) return (UChar* )p;
@@ -283,8 +283,8 @@ init_property_list(void)
{
int r;
- PROPERTY_LIST_ADD_PROP("Hiragana", CR_Hiragana);
- PROPERTY_LIST_ADD_PROP("Katakana", CR_Katakana);
+ PROPERTY_LIST_ADD_PROP("hiragana", CR_Hiragana);
+ PROPERTY_LIST_ADD_PROP("katakana", CR_Katakana);
PropertyInited = 1;
end:
@@ -294,15 +294,21 @@ init_property_list(void)
static int
property_name_to_ctype(OnigEncoding enc, UChar* p, UChar* end)
{
- st_data_t ctype;
+ hash_data_type ctype;
+ UChar *s, *e;
PROPERTY_LIST_INIT_CHECK;
- if (onig_st_lookup_strend(PropertyNameTable, p, end, &ctype) == 0) {
- return onigenc_minimum_property_name_to_ctype(enc, p, end);
+ s = e = ALLOCA_N(UChar, end-p+1);
+ for (; p < end; p++) {
+ *e++ = ONIGENC_ASCII_CODE_TO_LOWER_CASE(*p);
}
- return ctype;
+ if (onig_st_lookup_strend(PropertyNameTable, s, e, &ctype) == 0) {
+ return onigenc_minimum_property_name_to_ctype(enc, s, e);
+ }
+
+ return (int)ctype;
}
static int
@@ -376,7 +382,6 @@ OnigEncodingDefine(shift_jis, Shift_JIS) = {
* Link: http://www.iana.org/assignments/character-sets
* Link: http://ja.wikipedia.org/wiki/Shift_JIS
*/
-ENC_ALIAS("SJIS", "Shift_JIS")
/*
* Name: Windows-31J
@@ -385,10 +390,27 @@ ENC_ALIAS("SJIS", "Shift_JIS")
* Link: http://www.microsoft.com/globaldev/reference/dbcs/932.mspx
* Link: http://ja.wikipedia.org/wiki/Windows-31J
* Link: http://source.icu-project.org/repos/icu/data/trunk/charset/data/ucm/windows-932-2000.ucm
+ *
+ * Windows Standard Character Set and its mapping to Unicode by Microsoft.
+ * Since 1.9.3, SJIS is the alias of Windows-31J because its character
+ * set is usually this one even if its mapping may differ.
*/
ENC_REPLICATE("Windows-31J", "Shift_JIS")
ENC_ALIAS("CP932", "Windows-31J")
ENC_ALIAS("csWindows31J", "Windows-31J") /* IANA. IE6 don't accept Windows-31J but csWindows31J. */
+ENC_ALIAS("SJIS", "Windows-31J")
+
+/*
+ * Name: PCK
+ * Link: http://download.oracle.com/docs/cd/E19253-01/819-0606/x-2chn0/index.html
+ * Link: http://download.oracle.com/docs/cd/E19253-01/819-0606/appb-pckwarn-1/index.html
+ *
+ * Solaris's SJIS variant. Its set is Windows Standard Character Set; it
+ * consists JIS X 0201 Latin (US-ASCII), JIS X 0201 Katakana, JIS X 0208, NEC
+ * special characters, NEC-selected IBM extended characters, and IBM extended
+ * characters. Solaris's iconv seems to use SJIS-open.
+ */
+ENC_ALIAS("PCK", "Windows-31J")
/*
* Name: MacJapanese
diff --git a/enc/trans/EMOJI/EMOJI_ISO-2022-JP-KDDI%UCS.src b/enc/trans/EMOJI/EMOJI_ISO-2022-JP-KDDI%UCS.src
new file mode 100644
index 0000000000..69520f75de
--- /dev/null
+++ b/enc/trans/EMOJI/EMOJI_ISO-2022-JP-KDDI%UCS.src
@@ -0,0 +1,658 @@
+# DO NOT EDIT THIS FILE DIRECTLY
+
+TYPE ROWCOL
+NAME EMOJI_ISO-2022-JP-KDDI/UCS
+SRC_ZONE 0x21-0x7E / 0x21-0x7E / 8
+OOB_MODE ILSEQ
+DST_ILSEQ 0xFFFE
+DST_UNIT_BITS 16
+
+BEGIN_MAP
+0x7521 = 0xE468
+0x7522 = 0xE469
+0x7523 = 0xE46A
+0x7524 = 0xE46B
+0x7525 = 0xE46C
+0x7526 = 0xE46D
+0x7527 = 0xE46E
+0x7528 = 0xE46F
+0x7529 = 0xE470
+0x752A = 0xE471
+0x752B = 0xE472
+0x752C = 0xE473
+0x752D = 0xE474
+0x752E = 0xE475
+0x752F = 0xE476
+0x7530 = 0xE477
+0x7531 = 0xE478
+0x7532 = 0xE479
+0x7533 = 0xE47A
+0x7534 = 0xE47B
+0x7535 = 0xE47C
+0x7536 = 0xE47D
+0x7537 = 0xE47E
+0x7538 = 0xE47F
+0x7539 = 0xE480
+0x753A = 0xE481
+0x753B = 0xE482
+0x753C = 0xE483
+0x753D = 0xE484
+0x753E = 0xE485
+0x753F = 0xE486
+0x7540 = 0xE487
+0x7541 = 0xE488
+0x7542 = 0xE489
+0x7543 = 0xE48A
+0x7544 = 0xE48B
+0x7545 = 0xE48C
+0x7546 = 0xE48D
+0x7547 = 0xE48E
+0x7548 = 0xE48F
+0x7549 = 0xE490
+0x754A = 0xE491
+0x754B = 0xE492
+0x754C = 0xE493
+0x754D = 0xE494
+0x754E = 0xE495
+0x754F = 0xE496
+0x7550 = 0xE497
+0x7551 = 0xE498
+0x7552 = 0xE499
+0x7553 = 0xE49A
+0x7554 = 0xE49B
+0x7555 = 0xE49C
+0x7556 = 0xE49D
+0x7557 = 0xE49E
+0x7558 = 0xE49F
+0x7559 = 0xE4A0
+0x755A = 0xE4A1
+0x755B = 0xE4A2
+0x755C = 0xE4A3
+0x755D = 0xE4A4
+0x755E = 0xE4A5
+0x755F = 0xE4A6
+0x7560 = 0xE4A7
+0x7561 = 0xE4A8
+0x7562 = 0xE4A9
+0x7563 = 0xE4AA
+0x7564 = 0xE4AB
+0x7565 = 0xE4AC
+0x7566 = 0xE4AD
+0x7567 = 0xE4AE
+0x7568 = 0xE4AF
+0x7569 = 0xE4B0
+0x756A = 0xE4B1
+0x756B = 0xE4B2
+0x756C = 0xE4B3
+0x756D = 0xE4B4
+0x756E = 0xE4B5
+0x756F = 0xE4B6
+0x7570 = 0xE4B7
+0x7571 = 0xE4B8
+0x7572 = 0xE4B9
+0x7573 = 0xE4BA
+0x7574 = 0xE4BB
+0x7575 = 0xE4BC
+0x7576 = 0xE4BD
+0x7577 = 0xE4BE
+0x7578 = 0xE4BF
+0x7579 = 0xE4C0
+0x757A = 0xE4C1
+0x757B = 0xE4C2
+0x757C = 0xE4C3
+0x757D = 0xE4C4
+0x757E = 0xE4C5
+0x7621 = 0xE4C6
+0x7622 = 0xE4C7
+0x7623 = 0xE4C8
+0x7624 = 0xE4C9
+0x7625 = 0xE4CA
+0x7626 = 0xE4CB
+0x7627 = 0xE4CC
+0x7628 = 0xE4CD
+0x7629 = 0xE4CE
+0x762A = 0xE4CF
+0x762B = 0xE4D0
+0x762C = 0xE4D1
+0x762D = 0xE4D2
+0x762E = 0xE4D3
+0x762F = 0xE4D4
+0x7630 = 0xE4D5
+0x7631 = 0xE4D6
+0x7632 = 0xE4D7
+0x7633 = 0xE4D8
+0x7634 = 0xE4D9
+0x7635 = 0xE4DA
+0x7636 = 0xE4DB
+0x7637 = 0xE4DC
+0x7638 = 0xE4DD
+0x7639 = 0xE4DE
+0x763A = 0xE4DF
+0x763B = 0xE4E0
+0x763C = 0xE4E1
+0x763D = 0xE4E2
+0x763E = 0xE4E3
+0x763F = 0xE4E4
+0x7640 = 0xE4E5
+0x7641 = 0xE4E6
+0x7642 = 0xE4E7
+0x7643 = 0xE4E8
+0x7644 = 0xE4E9
+0x7645 = 0xE4EA
+0x7646 = 0xE4EB
+0x7647 = 0xE4EC
+0x7648 = 0xE4ED
+0x7649 = 0xE4EE
+0x764A = 0xE4EF
+0x764B = 0xE4F0
+0x764C = 0xE4F1
+0x764D = 0xE4F2
+0x764E = 0xE4F3
+0x764F = 0xE4F4
+0x7650 = 0xE4F5
+0x7651 = 0xE4F6
+0x7652 = 0xE4F7
+0x7653 = 0xE4F8
+0x7654 = 0xE4F9
+0x7655 = 0xE4FA
+0x7656 = 0xE4FB
+0x7657 = 0xE4FC
+0x7658 = 0xE4FD
+0x7659 = 0xE4FE
+0x765A = 0xE4FF
+0x765B = 0xE500
+0x765C = 0xE501
+0x765D = 0xE502
+0x765E = 0xE503
+0x765F = 0xE504
+0x7660 = 0xE505
+0x7661 = 0xE506
+0x7662 = 0xE507
+0x7663 = 0xE508
+0x7664 = 0xE509
+0x7665 = 0xE50A
+0x7666 = 0xE50B
+0x7667 = 0xE50C
+0x7668 = 0xE50D
+0x7669 = 0xE50E
+0x766A = 0xE50F
+0x766B = 0xE510
+0x766C = 0xE511
+0x766D = 0xE512
+0x766E = 0xE513
+0x766F = 0xE514
+0x7670 = 0xE515
+0x7671 = 0xE516
+0x7672 = 0xE517
+0x7673 = 0xE518
+0x7674 = 0xE519
+0x7675 = 0xE51A
+0x7676 = 0xE51B
+0x7677 = 0xE51C
+0x7678 = 0xE51D
+0x7679 = 0xE51E
+0x767A = 0xE51F
+0x767B = 0xE520
+0x767C = 0xE521
+0x767D = 0xE522
+0x767E = 0xE523
+0x7721 = 0xE524
+0x7722 = 0xE525
+0x7723 = 0xE526
+0x7724 = 0xE527
+0x7725 = 0xE528
+0x7726 = 0xE529
+0x7727 = 0xE52A
+0x7728 = 0xE52B
+0x7729 = 0xE52C
+0x772A = 0xE52D
+0x772B = 0xE52E
+0x772C = 0xE52F
+0x772D = 0xE530
+0x772E = 0xE531
+0x772F = 0xE532
+0x7730 = 0xE533
+0x7731 = 0xE534
+0x7732 = 0xE535
+0x7733 = 0xE536
+0x7734 = 0xE537
+0x7735 = 0xE538
+0x7736 = 0xE539
+0x7737 = 0xE53A
+0x7738 = 0xE53B
+0x7739 = 0xE53C
+0x773A = 0xE53D
+0x773B = 0xE53E
+0x773C = 0xE53F
+0x773D = 0xE540
+0x773E = 0xE541
+0x773F = 0xE542
+0x7740 = 0xE543
+0x7741 = 0xE544
+0x7742 = 0xE545
+0x7743 = 0xE546
+0x7744 = 0xE547
+0x7745 = 0xE548
+0x7746 = 0xE549
+0x7747 = 0xE54A
+0x7748 = 0xE54B
+0x7749 = 0xE54C
+0x774A = 0xE54D
+0x774B = 0xE54E
+0x774C = 0xE54F
+0x774D = 0xE550
+0x774E = 0xE551
+0x774F = 0xE552
+0x7750 = 0xE553
+0x7751 = 0xE554
+0x7752 = 0xE555
+0x7753 = 0xE556
+0x7754 = 0xE557
+0x7755 = 0xE558
+0x7756 = 0xE559
+0x7757 = 0xE55A
+0x7758 = 0xE55B
+0x7759 = 0xE55C
+0x775A = 0xE55D
+0x775B = 0xE55E
+0x775C = 0xE55F
+0x775D = 0xE560
+0x775E = 0xE561
+0x775F = 0xE562
+0x7760 = 0xE563
+0x7761 = 0xE564
+0x7762 = 0xE565
+0x7763 = 0xE566
+0x7764 = 0xE567
+0x7765 = 0xE568
+0x7766 = 0xE569
+0x7767 = 0xE56A
+0x7768 = 0xE56B
+0x7769 = 0xE56C
+0x776A = 0xE56D
+0x776B = 0xE56E
+0x776C = 0xE56F
+0x776D = 0xE570
+0x776E = 0xE571
+0x776F = 0xE572
+0x7770 = 0xE573
+0x7771 = 0xE574
+0x7772 = 0xE575
+0x7773 = 0xE576
+0x7774 = 0xE577
+0x7775 = 0xE578
+0x7776 = 0xE579
+0x7777 = 0xE57A
+0x7778 = 0xE57B
+0x7779 = 0xE57C
+0x777A = 0xE57D
+0x777B = 0xE57E
+0x777C = 0xE57F
+0x777D = 0xE580
+0x777E = 0xE581
+0x7821 = 0xE582
+0x7822 = 0xE583
+0x7823 = 0xE584
+0x7824 = 0xE585
+0x7825 = 0xE586
+0x7826 = 0xE587
+0x7827 = 0xE588
+0x7828 = 0xE589
+0x7829 = 0xE58A
+0x782A = 0xE58B
+0x782B = 0xE58C
+0x782C = 0xE58D
+0x782D = 0xE58E
+0x782E = 0xE58F
+0x782F = 0xE590
+0x7830 = 0xE591
+0x7831 = 0xE592
+0x7832 = 0xE593
+0x7833 = 0xE594
+0x7834 = 0xE595
+0x7835 = 0xE596
+0x7836 = 0xE597
+0x7837 = 0xE598
+0x7838 = 0xE599
+0x7839 = 0xE59A
+0x783A = 0xE59B
+0x783B = 0xE59C
+0x783C = 0xE59D
+0x783D = 0xE59E
+0x783E = 0xE59F
+0x783F = 0xE5A0
+0x7840 = 0xE5A1
+0x7841 = 0xE5A2
+0x7842 = 0xE5A3
+0x7843 = 0xE5A4
+0x7844 = 0xE5A5
+0x7845 = 0xE5A6
+0x7846 = 0xE5A7
+0x7847 = 0xE5A8
+0x7848 = 0xE5A9
+0x7849 = 0xE5AA
+0x784A = 0xE5AB
+0x784B = 0xE5AC
+0x784C = 0xE5AD
+0x784D = 0xE5AE
+0x784E = 0xE5AF
+0x784F = 0xE5B0
+0x7850 = 0xE5B1
+0x7851 = 0xE5B2
+0x7852 = 0xE5B3
+0x7853 = 0xE5B4
+0x7854 = 0xEAFB
+0x7855 = 0xEAFC
+0x7856 = 0xEAFD
+0x7857 = 0xEAFE
+0x7858 = 0xEAFF
+0x7859 = 0xEB00
+0x785A = 0xEB01
+0x785B = 0xEB02
+0x785C = 0xEB03
+0x785D = 0xEB04
+0x785E = 0xEB05
+0x785F = 0xEB06
+0x7860 = 0xEB07
+0x7861 = 0xEB08
+0x7862 = 0xEB09
+0x7863 = 0xEB0A
+0x7864 = 0xEB0B
+0x7865 = 0xEB0C
+0x7866 = 0xEB0D
+0x7867 = 0xE5B5
+0x7868 = 0xE5B6
+0x7869 = 0xE5B7
+0x786A = 0xE5B8
+0x786B = 0xE5B9
+0x786C = 0xE5BA
+0x786D = 0xE5BB
+0x786E = 0xE5BC
+0x786F = 0xE5BD
+0x7870 = 0xE5BE
+0x7871 = 0xE5BF
+0x7872 = 0xE5C0
+0x7873 = 0xE5C1
+0x7874 = 0xE5C2
+0x7875 = 0xE5C3
+0x7876 = 0xE5C4
+0x7877 = 0xE5C5
+0x7878 = 0xE5C6
+0x7879 = 0xE5C7
+0x787A = 0xE5C8
+0x787B = 0xE5C9
+0x787C = 0xE5CA
+0x787D = 0xE5CB
+0x787E = 0xE5CC
+0x7921 = 0xE5CD
+0x7922 = 0xE5CE
+0x7923 = 0xE5CF
+0x7924 = 0xE5D0
+0x7925 = 0xE5D1
+0x7926 = 0xE5D2
+0x7927 = 0xE5D3
+0x7928 = 0xE5D4
+0x7929 = 0xE5D5
+0x792A = 0xE5D6
+0x792B = 0xE5D7
+0x792C = 0xE5D8
+0x792D = 0xE5D9
+0x792E = 0xE5DA
+0x792F = 0xE5DB
+0x7930 = 0xE5DC
+0x7931 = 0xE5DD
+0x7932 = 0xE5DE
+0x7933 = 0xE5DF
+0x7934 = 0xEA80
+0x7935 = 0xEA81
+0x7936 = 0xEA82
+0x7937 = 0xEA83
+0x7938 = 0xEA84
+0x7939 = 0xEA85
+0x793A = 0xEA86
+0x793B = 0xEA87
+0x793C = 0xEA88
+0x793D = 0xEA89
+0x793E = 0xEA8A
+0x793F = 0xEA8B
+0x7940 = 0xEA8C
+0x7941 = 0xEA8D
+0x7942 = 0xEA8E
+0x7943 = 0xEA8F
+0x7944 = 0xEA90
+0x7945 = 0xEA91
+0x7946 = 0xEA92
+0x7947 = 0xEA93
+0x7948 = 0xEA94
+0x7949 = 0xEA95
+0x794A = 0xEA96
+0x794B = 0xEA97
+0x794C = 0xEA98
+0x794D = 0xEA99
+0x794E = 0xEA9A
+0x794F = 0xEA9B
+0x7950 = 0xEA9C
+0x7951 = 0xEA9D
+0x7952 = 0xEA9E
+0x7953 = 0xEA9F
+0x7954 = 0xEAA0
+0x7955 = 0xEAA1
+0x7956 = 0xEAA2
+0x7957 = 0xEAA3
+0x7958 = 0xEAA4
+0x7959 = 0xEAA5
+0x795A = 0xEAA6
+0x795B = 0xEAA7
+0x795C = 0xEAA8
+0x795D = 0xEAA9
+0x795E = 0xEAAA
+0x795F = 0xEAAB
+0x7960 = 0xEAAC
+0x7961 = 0xEAAD
+0x7962 = 0xEAAE
+0x7963 = 0xEAAF
+0x7964 = 0xEAB0
+0x7965 = 0xEAB1
+0x7966 = 0xEAB2
+0x7967 = 0xEAB3
+0x7968 = 0xEAB4
+0x7969 = 0xEAB5
+0x796A = 0xEAB6
+0x796B = 0xEAB7
+0x796C = 0xEAB8
+0x796D = 0xEAB9
+0x796E = 0xEABA
+0x796F = 0xEABB
+0x7970 = 0xEABC
+0x7971 = 0xEABD
+0x7972 = 0xEABE
+0x7973 = 0xEABF
+0x7974 = 0xEAC0
+0x7975 = 0xEAC1
+0x7976 = 0xEAC2
+0x7977 = 0xEAC3
+0x7978 = 0xEAC4
+0x7979 = 0xEAC5
+0x797A = 0xEAC6
+0x797B = 0xEAC7
+0x797C = 0xEAC8
+0x797D = 0xEAC9
+0x797E = 0xEACA
+0x7A21 = 0xEACB
+0x7A22 = 0xEACC
+0x7A23 = 0xEACD
+0x7A24 = 0xEACE
+0x7A25 = 0xEACF
+0x7A26 = 0xEAD0
+0x7A27 = 0xEAD1
+0x7A28 = 0xEAD2
+0x7A29 = 0xEAD3
+0x7A2A = 0xEAD4
+0x7A2B = 0xEAD5
+0x7A2C = 0xEAD6
+0x7A2D = 0xEAD7
+0x7A2E = 0xEAD8
+0x7A2F = 0xEAD9
+0x7A30 = 0xEADA
+0x7A31 = 0xEADB
+0x7A32 = 0xEADC
+0x7A33 = 0xEADD
+0x7A34 = 0xEADE
+0x7A35 = 0xEADF
+0x7A36 = 0xEAE0
+0x7A37 = 0xEAE1
+0x7A38 = 0xEAE2
+0x7A39 = 0xEAE3
+0x7A3A = 0xEAE4
+0x7A3B = 0xEAE5
+0x7A3C = 0xEAE6
+0x7A3D = 0xEAE7
+0x7A3E = 0xEAE8
+0x7A3F = 0xEAE9
+0x7A40 = 0xEAEA
+0x7A41 = 0xEAEB
+0x7A42 = 0xEAEC
+0x7A43 = 0xEAED
+0x7A44 = 0xEAEE
+0x7A45 = 0xEAEF
+0x7A46 = 0xEAF0
+0x7A47 = 0xEAF1
+0x7A48 = 0xEAF2
+0x7A49 = 0xEAF3
+0x7A4A = 0xEAF4
+0x7A4B = 0xEAF5
+0x7A4C = 0xEAF6
+0x7A4D = 0xEAF7
+0x7A4E = 0xEAF8
+0x7A4F = 0xEAF9
+0x7A50 = 0xEAFA
+0x7A51 = 0xEB0E
+0x7A52 = 0xEB0F
+0x7A53 = 0xEB10
+0x7A54 = 0xEB11
+0x7A55 = 0xEB12
+0x7A56 = 0xEB13
+0x7A57 = 0xEB14
+0x7A58 = 0xEB15
+0x7A59 = 0xEB16
+0x7A5A = 0xEB17
+0x7A5B = 0xEB18
+0x7A5C = 0xEB19
+0x7A5D = 0xEB1A
+0x7A5E = 0xEB1B
+0x7A5F = 0xEB1C
+0x7A60 = 0xEB1D
+0x7A61 = 0xEB1E
+0x7A62 = 0xEB1F
+0x7A63 = 0xEB20
+0x7A64 = 0xEB21
+0x7A65 = 0xEB22
+0x7A66 = 0xEB23
+0x7A67 = 0xEB24
+0x7A68 = 0xEB25
+0x7A69 = 0xEB26
+0x7A6A = 0xEB27
+0x7A6B = 0xEB28
+0x7A6C = 0xEB29
+0x7A6D = 0xEB2A
+0x7A6E = 0xEB2B
+0x7A6F = 0xEB2C
+0x7A70 = 0xEB2D
+0x7A71 = 0xEB2E
+0x7A72 = 0xEB2F
+0x7A73 = 0xEB30
+0x7A74 = 0xEB31
+0x7A75 = 0xEB32
+0x7A76 = 0xEB33
+0x7A77 = 0xEB34
+0x7A78 = 0xEB35
+0x7A79 = 0xEB36
+0x7A7A = 0xEB37
+0x7A7B = 0xEB38
+0x7A7C = 0xEB39
+0x7A7D = 0xEB3A
+0x7A7E = 0xEB3B
+0x7B21 = 0xEB3C
+0x7B22 = 0xEB3D
+0x7B23 = 0xEB3E
+0x7B24 = 0xEB3F
+0x7B25 = 0xEB40
+0x7B26 = 0xEB41
+0x7B27 = 0xEB42
+0x7B28 = 0xEB43
+0x7B29 = 0xEB44
+0x7B2A = 0xEB45
+0x7B2B = 0xEB46
+0x7B2C = 0xEB47
+0x7B2D = 0xEB48
+0x7B2E = 0xEB49
+0x7B2F = 0xEB4A
+0x7B30 = 0xEB4B
+0x7B31 = 0xEB4C
+0x7B32 = 0xEB4D
+0x7B33 = 0xEB4E
+0x7B34 = 0xEB4F
+0x7B35 = 0xEB50
+0x7B36 = 0xEB51
+0x7B37 = 0xEB52
+0x7B38 = 0xEB53
+0x7B39 = 0xEB54
+0x7B3A = 0xEB55
+0x7B3B = 0xEB56
+0x7B3C = 0xEB57
+0x7B3D = 0xEB58
+0x7B3E = 0xEB59
+0x7B3F = 0xEB5A
+0x7B40 = 0xEB5B
+0x7B41 = 0xEB5C
+0x7B42 = 0xEB5D
+0x7B43 = 0xEB5E
+0x7B44 = 0xEB5F
+0x7B45 = 0xEB60
+0x7B46 = 0xEB61
+0x7B47 = 0xEB62
+0x7B48 = 0xEB63
+0x7B49 = 0xEB64
+0x7B4A = 0xEB65
+0x7B4B = 0xEB66
+0x7B4C = 0xEB67
+0x7B4D = 0xEB68
+0x7B4E = 0xEB69
+0x7B4F = 0xEB6A
+0x7B50 = 0xEB6B
+0x7B51 = 0xEB6C
+0x7B52 = 0xEB6D
+0x7B53 = 0xEB6E
+0x7B54 = 0xEB6F
+0x7B55 = 0xEB70
+0x7B56 = 0xEB71
+0x7B57 = 0xEB72
+0x7B58 = 0xEB73
+0x7B59 = 0xEB74
+0x7B5A = 0xEB75
+0x7B5B = 0xEB76
+0x7B5C = 0xEB77
+0x7B5D = 0xEB78
+0x7B5E = 0xEB79
+0x7B5F = 0xEB7A
+0x7B60 = 0xEB7B
+0x7B61 = 0xEB7C
+0x7B62 = 0xEB7D
+0x7B63 = 0xEB7E
+0x7B64 = 0xEB7F
+0x7B65 = 0xEB80
+0x7B66 = 0xEB81
+0x7B67 = 0xEB82
+0x7B68 = 0xEB83
+0x7B69 = 0xEB84
+0x7B6A = 0xEB85
+0x7B6B = 0xEB86
+0x7B6C = 0xEB87
+0x7B6D = 0xEB88
+0x7B6E = 0xEB89
+0x7B6F = 0xEB8A
+0x7B70 = 0xEB8B
+0x7B71 = 0xEB8C
+0x7B72 = 0xEB8D
+0x7B73 = 0xEB8E
+END_MAP
diff --git a/enc/trans/EMOJI/EMOJI_SHIFT_JIS-DOCOMO%UCS.src b/enc/trans/EMOJI/EMOJI_SHIFT_JIS-DOCOMO%UCS.src
new file mode 100644
index 0000000000..942624a3fa
--- /dev/null
+++ b/enc/trans/EMOJI/EMOJI_SHIFT_JIS-DOCOMO%UCS.src
@@ -0,0 +1,293 @@
+# DO NOT EDIT THIS FILE DIRECTLY
+
+TYPE ROWCOL
+NAME EMOJI_SHIFT_JIS-DOCOMO/UCS
+SRC_ZONE 0xF8-0xFC / 0x40-0xFC / 8
+OOB_MODE ILSEQ
+DST_ILSEQ 0xFFFE
+DST_UNIT_BITS 16
+
+BEGIN_MAP
+0x9021 = 0xE63E
+0x9022 = 0xE63F
+0x9023 = 0xE640
+0x9024 = 0xE641
+0x9025 = 0xE642
+0x9026 = 0xE643
+0x9027 = 0xE644
+0x9028 = 0xE645
+0x9029 = 0xE646
+0x902A = 0xE647
+0x902B = 0xE648
+0x902C = 0xE649
+0x902D = 0xE64A
+0x902E = 0xE64B
+0x902F = 0xE64C
+0x9030 = 0xE64D
+0x9031 = 0xE64E
+0x9032 = 0xE64F
+0x9033 = 0xE650
+0x9034 = 0xE651
+0x9035 = 0xE652
+0x9036 = 0xE653
+0x9037 = 0xE654
+0x9038 = 0xE655
+0x9039 = 0xE656
+0x903A = 0xE657
+0x903B = 0xE658
+0x903C = 0xE659
+0x903D = 0xE65A
+0x903E = 0xE65B
+0x903F = 0xE65C
+0x9040 = 0xE65D
+0x9041 = 0xE65E
+0x9042 = 0xE65F
+0x9043 = 0xE660
+0x9044 = 0xE661
+0x9045 = 0xE662
+0x9046 = 0xE663
+0x9047 = 0xE664
+0x9048 = 0xE665
+0x9049 = 0xE666
+0x904A = 0xE667
+0x904B = 0xE668
+0x904C = 0xE669
+0x904D = 0xE66A
+0x904E = 0xE66B
+0x904F = 0xE66C
+0x9050 = 0xE66D
+0x9051 = 0xE66E
+0x9052 = 0xE66F
+0x9053 = 0xE670
+0x9054 = 0xE671
+0x9055 = 0xE672
+0x9056 = 0xE673
+0x9057 = 0xE674
+0x9058 = 0xE675
+0x9059 = 0xE676
+0x905A = 0xE677
+0x905B = 0xE678
+0x905C = 0xE679
+0x905D = 0xE67A
+0x905E = 0xE67B
+0x905F = 0xE67C
+0x9060 = 0xE67D
+0x9061 = 0xE67E
+0x9062 = 0xE67F
+0x9063 = 0xE680
+0x9064 = 0xE681
+0x9065 = 0xE682
+0x9066 = 0xE683
+0x9067 = 0xE684
+0x9068 = 0xE685
+0x9069 = 0xE686
+0x906A = 0xE687
+0x906B = 0xE688
+0x906C = 0xE689
+0x906D = 0xE68A
+0x906E = 0xE68B
+0x906F = 0xE68C
+0x9070 = 0xE68D
+0x9071 = 0xE68E
+0x9072 = 0xE68F
+0x9073 = 0xE690
+0x9074 = 0xE691
+0x9075 = 0xE692
+0x9076 = 0xE693
+0x9077 = 0xE694
+0x9078 = 0xE695
+0x9079 = 0xE696
+0x907A = 0xE697
+0x907B = 0xE698
+0x907C = 0xE699
+0x907D = 0xE69A
+0x907E = 0xE69B
+0x9121 = 0xE69C
+0x9122 = 0xE69D
+0x9123 = 0xE69E
+0x9124 = 0xE69F
+0x9125 = 0xE6A0
+0x9126 = 0xE6A1
+0x9127 = 0xE6A2
+0x9128 = 0xE6A3
+0x9129 = 0xE6A4
+0x912A = 0xE6A5
+0x912B = 0xE6A6
+0x912C = 0xE6A7
+0x912D = 0xE6A8
+0x912E = 0xE6A9
+0x912F = 0xE6AA
+0x9130 = 0xE6AB
+0x9131 = 0xE6AC
+0x9132 = 0xE6AD
+0x9133 = 0xE6AE
+0x9134 = 0xE6AF
+0x9135 = 0xE6B0
+0x9136 = 0xE6B1
+0x9137 = 0xE6B2
+0x9138 = 0xE6B3
+0x9139 = 0xE6B4
+0x913A = 0xE6B5
+0x913B = 0xE6B6
+0x913C = 0xE6B7
+0x913D = 0xE6B8
+0x913E = 0xE6B9
+0x913F = 0xE6BA
+0x9140 = 0xE6BB
+0x9141 = 0xE6BC
+0x9142 = 0xE6BD
+0x9143 = 0xE6BE
+0x9144 = 0xE6BF
+0x9145 = 0xE6C0
+0x9146 = 0xE6C1
+0x9147 = 0xE6C2
+0x9148 = 0xE6C3
+0x9149 = 0xE6C4
+0x914A = 0xE6C5
+0x914B = 0xE6C6
+0x914C = 0xE6C7
+0x914D = 0xE6C8
+0x914E = 0xE6C9
+0x914F = 0xE6CA
+0x9150 = 0xE6CB
+0x9151 = 0xE6CC
+0x9152 = 0xE6CD
+0x9153 = 0xE6CE
+0x9154 = 0xE6CF
+0x9155 = 0xE6D0
+0x9156 = 0xE6D1
+0x9157 = 0xE6D2
+0x9158 = 0xE6D3
+0x9159 = 0xE6D4
+0x915A = 0xE6D5
+0x915B = 0xE6D6
+0x915C = 0xE6D7
+0x915D = 0xE6D8
+0x915E = 0xE6D9
+0x915F = 0xE6DA
+0x9160 = 0xE6DB
+0x9161 = 0xE6DC
+0x9162 = 0xE6DD
+0x9163 = 0xE6DE
+0x9164 = 0xE6DF
+0x9165 = 0xE6E0
+0x9166 = 0xE6E1
+0x9167 = 0xE6E2
+0x9168 = 0xE6E3
+0x9169 = 0xE6E4
+0x916A = 0xE6E5
+0x916B = 0xE6E6
+0x916C = 0xE6E7
+0x916D = 0xE6E8
+0x916E = 0xE6E9
+0x916F = 0xE6EA
+0x9170 = 0xE6EB
+0x9171 = 0xE6EC
+0x9172 = 0xE6ED
+0x9173 = 0xE6EE
+0x9174 = 0xE6EF
+0x9175 = 0xE6F0
+0x9176 = 0xE6F1
+0x9177 = 0xE6F2
+0x9178 = 0xE6F3
+0x9179 = 0xE6F4
+0x917A = 0xE6F5
+0x917B = 0xE6F6
+0x917C = 0xE6F7
+0x917D = 0xE6F8
+0x917E = 0xE6F9
+0x9221 = 0xE6FA
+0x9222 = 0xE6FB
+0x9223 = 0xE6FC
+0x9224 = 0xE6FD
+0x9225 = 0xE6FE
+0x9226 = 0xE6FF
+0x9227 = 0xE700
+0x9228 = 0xE701
+0x9229 = 0xE702
+0x922A = 0xE703
+0x922B = 0xE704
+0x922C = 0xE705
+0x922D = 0xE706
+0x922E = 0xE707
+0x922F = 0xE708
+0x9230 = 0xE709
+0x9231 = 0xE70A
+0x9232 = 0xE70B
+0x9233 = 0xE70C
+0x9234 = 0xE70D
+0x9235 = 0xE70E
+0x9236 = 0xE70F
+0x9237 = 0xE710
+0x9238 = 0xE711
+0x9239 = 0xE712
+0x923A = 0xE713
+0x923B = 0xE714
+0x923C = 0xE715
+0x923D = 0xE716
+0x923E = 0xE717
+0x923F = 0xE718
+0x9240 = 0xE719
+0x9241 = 0xE71A
+0x9242 = 0xE71B
+0x9243 = 0xE71C
+0x9244 = 0xE71D
+0x9245 = 0xE71E
+0x9246 = 0xE71F
+0x9247 = 0xE720
+0x9248 = 0xE721
+0x9249 = 0xE722
+0x924A = 0xE723
+0x924B = 0xE724
+0x924C = 0xE725
+0x924D = 0xE726
+0x924E = 0xE727
+0x924F = 0xE728
+0x9250 = 0xE729
+0x9251 = 0xE72A
+0x9252 = 0xE72B
+0x9253 = 0xE72C
+0x9254 = 0xE72D
+0x9255 = 0xE72E
+0x9256 = 0xE72F
+0x9257 = 0xE730
+0x9258 = 0xE731
+0x9259 = 0xE732
+0x925A = 0xE733
+0x925B = 0xE734
+0x925C = 0xE735
+0x925D = 0xE736
+0x925E = 0xE737
+0x925F = 0xE738
+0x9260 = 0xE739
+0x9261 = 0xE73A
+0x9262 = 0xE73B
+0x9263 = 0xE73C
+0x9264 = 0xE73D
+0x9265 = 0xE73E
+0x9266 = 0xE73F
+0x9267 = 0xE740
+0x9268 = 0xE741
+0x9269 = 0xE742
+0x926A = 0xE743
+0x926B = 0xE744
+0x926C = 0xE745
+0x926D = 0xE746
+0x926E = 0xE747
+0x926F = 0xE748
+0x9270 = 0xE749
+0x9271 = 0xE74A
+0x9272 = 0xE74B
+0x9273 = 0xE74C
+0x9274 = 0xE74D
+0x9275 = 0xE74E
+0x9276 = 0xE74F
+0x9277 = 0xE750
+0x9278 = 0xE751
+0x9279 = 0xE752
+0x927A = 0xE753
+0x927B = 0xE754
+0x927C = 0xE755
+0x927D = 0xE756
+0x927E = 0xE757
+END_MAP
diff --git a/enc/trans/EMOJI/EMOJI_SHIFT_JIS-KDDI%UCS.src b/enc/trans/EMOJI/EMOJI_SHIFT_JIS-KDDI%UCS.src
new file mode 100644
index 0000000000..b975ddb894
--- /dev/null
+++ b/enc/trans/EMOJI/EMOJI_SHIFT_JIS-KDDI%UCS.src
@@ -0,0 +1,658 @@
+# DO NOT EDIT THIS FILE DIRECTLY
+
+TYPE ROWCOL
+NAME EMOJI_SHIFT_JIS-KDDI/UCS
+SRC_ZONE 0xF3-0xFC / 0x40-0xFC / 8
+OOB_MODE ILSEQ
+DST_ILSEQ 0xFFFE
+DST_UNIT_BITS 16
+
+BEGIN_MAP
+0x8521 = 0xE5CD
+0x8522 = 0xE5CE
+0x8523 = 0xE5CF
+0x8524 = 0xE5D0
+0x8525 = 0xE5D1
+0x8526 = 0xE5D2
+0x8527 = 0xE5D3
+0x8528 = 0xE5D4
+0x8529 = 0xE5D5
+0x852A = 0xE5D6
+0x852B = 0xE5D7
+0x852C = 0xE5D8
+0x852D = 0xE5D9
+0x852E = 0xE5DA
+0x852F = 0xE5DB
+0x8530 = 0xE5DC
+0x8531 = 0xE5DD
+0x8532 = 0xE5DE
+0x8533 = 0xE5DF
+0x8534 = 0xEA80
+0x8535 = 0xEA81
+0x8536 = 0xEA82
+0x8537 = 0xEA83
+0x8538 = 0xEA84
+0x8539 = 0xEA85
+0x853A = 0xEA86
+0x853B = 0xEA87
+0x853C = 0xEA88
+0x853D = 0xEA89
+0x853E = 0xEA8A
+0x853F = 0xEA8B
+0x8540 = 0xEA8C
+0x8541 = 0xEA8D
+0x8542 = 0xEA8E
+0x8543 = 0xEA8F
+0x8544 = 0xEA90
+0x8545 = 0xEA91
+0x8546 = 0xEA92
+0x8547 = 0xEA93
+0x8548 = 0xEA94
+0x8549 = 0xEA95
+0x854A = 0xEA96
+0x854B = 0xEA97
+0x854C = 0xEA98
+0x854D = 0xEA99
+0x854E = 0xEA9A
+0x854F = 0xEA9B
+0x8550 = 0xEA9C
+0x8551 = 0xEA9D
+0x8552 = 0xEA9E
+0x8553 = 0xEA9F
+0x8554 = 0xEAA0
+0x8555 = 0xEAA1
+0x8556 = 0xEAA2
+0x8557 = 0xEAA3
+0x8558 = 0xEAA4
+0x8559 = 0xEAA5
+0x855A = 0xEAA6
+0x855B = 0xEAA7
+0x855C = 0xEAA8
+0x855D = 0xEAA9
+0x855E = 0xEAAA
+0x855F = 0xEAAB
+0x8560 = 0xEAAC
+0x8561 = 0xEAAD
+0x8562 = 0xEAAE
+0x8563 = 0xEAAF
+0x8564 = 0xEAB0
+0x8565 = 0xEAB1
+0x8566 = 0xEAB2
+0x8567 = 0xEAB3
+0x8568 = 0xEAB4
+0x8569 = 0xEAB5
+0x856A = 0xEAB6
+0x856B = 0xEAB7
+0x856C = 0xEAB8
+0x856D = 0xEAB9
+0x856E = 0xEABA
+0x856F = 0xEABB
+0x8570 = 0xEABC
+0x8571 = 0xEABD
+0x8572 = 0xEABE
+0x8573 = 0xEABF
+0x8574 = 0xEAC0
+0x8575 = 0xEAC1
+0x8576 = 0xEAC2
+0x8577 = 0xEAC3
+0x8578 = 0xEAC4
+0x8579 = 0xEAC5
+0x857A = 0xEAC6
+0x857B = 0xEAC7
+0x857C = 0xEAC8
+0x857D = 0xEAC9
+0x857E = 0xEACA
+0x8621 = 0xEACB
+0x8622 = 0xEACC
+0x8623 = 0xEACD
+0x8624 = 0xEACE
+0x8625 = 0xEACF
+0x8626 = 0xEAD0
+0x8627 = 0xEAD1
+0x8628 = 0xEAD2
+0x8629 = 0xEAD3
+0x862A = 0xEAD4
+0x862B = 0xEAD5
+0x862C = 0xEAD6
+0x862D = 0xEAD7
+0x862E = 0xEAD8
+0x862F = 0xEAD9
+0x8630 = 0xEADA
+0x8631 = 0xEADB
+0x8632 = 0xEADC
+0x8633 = 0xEADD
+0x8634 = 0xEADE
+0x8635 = 0xEADF
+0x8636 = 0xEAE0
+0x8637 = 0xEAE1
+0x8638 = 0xEAE2
+0x8639 = 0xEAE3
+0x863A = 0xEAE4
+0x863B = 0xEAE5
+0x863C = 0xEAE6
+0x863D = 0xEAE7
+0x863E = 0xEAE8
+0x863F = 0xEAE9
+0x8640 = 0xEAEA
+0x8641 = 0xEAEB
+0x8642 = 0xEAEC
+0x8643 = 0xEAED
+0x8644 = 0xEAEE
+0x8645 = 0xEAEF
+0x8646 = 0xEAF0
+0x8647 = 0xEAF1
+0x8648 = 0xEAF2
+0x8649 = 0xEAF3
+0x864A = 0xEAF4
+0x864B = 0xEAF5
+0x864C = 0xEAF6
+0x864D = 0xEAF7
+0x864E = 0xEAF8
+0x864F = 0xEAF9
+0x8650 = 0xEAFA
+0x8651 = 0xEB0E
+0x8652 = 0xEB0F
+0x8653 = 0xEB10
+0x8654 = 0xEB11
+0x8655 = 0xEB12
+0x8656 = 0xEB13
+0x8657 = 0xEB14
+0x8658 = 0xEB15
+0x8659 = 0xEB16
+0x865A = 0xEB17
+0x865B = 0xEB18
+0x865C = 0xEB19
+0x865D = 0xEB1A
+0x865E = 0xEB1B
+0x865F = 0xEB1C
+0x8660 = 0xEB1D
+0x8661 = 0xEB1E
+0x8662 = 0xEB1F
+0x8663 = 0xEB20
+0x8664 = 0xEB21
+0x8665 = 0xEB22
+0x8666 = 0xEB23
+0x8667 = 0xEB24
+0x8668 = 0xEB25
+0x8669 = 0xEB26
+0x866A = 0xEB27
+0x866B = 0xEB28
+0x866C = 0xEB29
+0x866D = 0xEB2A
+0x866E = 0xEB2B
+0x866F = 0xEB2C
+0x8670 = 0xEB2D
+0x8671 = 0xEB2E
+0x8672 = 0xEB2F
+0x8673 = 0xEB30
+0x8674 = 0xEB31
+0x8675 = 0xEB32
+0x8676 = 0xEB33
+0x8677 = 0xEB34
+0x8678 = 0xEB35
+0x8679 = 0xEB36
+0x867A = 0xEB37
+0x867B = 0xEB38
+0x867C = 0xEB39
+0x867D = 0xEB3A
+0x867E = 0xEB3B
+0x8721 = 0xEB3C
+0x8722 = 0xEB3D
+0x8723 = 0xEB3E
+0x8724 = 0xEB3F
+0x8725 = 0xEB40
+0x8726 = 0xEB41
+0x8727 = 0xEB42
+0x8728 = 0xEB43
+0x8729 = 0xEB44
+0x872A = 0xEB45
+0x872B = 0xEB46
+0x872C = 0xEB47
+0x872D = 0xEB48
+0x872E = 0xEB49
+0x872F = 0xEB4A
+0x8730 = 0xEB4B
+0x8731 = 0xEB4C
+0x8732 = 0xEB4D
+0x8733 = 0xEB4E
+0x8734 = 0xEB4F
+0x8735 = 0xEB50
+0x8736 = 0xEB51
+0x8737 = 0xEB52
+0x8738 = 0xEB53
+0x8739 = 0xEB54
+0x873A = 0xEB55
+0x873B = 0xEB56
+0x873C = 0xEB57
+0x873D = 0xEB58
+0x873E = 0xEB59
+0x873F = 0xEB5A
+0x8740 = 0xEB5B
+0x8741 = 0xEB5C
+0x8742 = 0xEB5D
+0x8743 = 0xEB5E
+0x8744 = 0xEB5F
+0x8745 = 0xEB60
+0x8746 = 0xEB61
+0x8747 = 0xEB62
+0x8748 = 0xEB63
+0x8749 = 0xEB64
+0x874A = 0xEB65
+0x874B = 0xEB66
+0x874C = 0xEB67
+0x874D = 0xEB68
+0x874E = 0xEB69
+0x874F = 0xEB6A
+0x8750 = 0xEB6B
+0x8751 = 0xEB6C
+0x8752 = 0xEB6D
+0x8753 = 0xEB6E
+0x8754 = 0xEB6F
+0x8755 = 0xEB70
+0x8756 = 0xEB71
+0x8757 = 0xEB72
+0x8758 = 0xEB73
+0x8759 = 0xEB74
+0x875A = 0xEB75
+0x875B = 0xEB76
+0x875C = 0xEB77
+0x875D = 0xEB78
+0x875E = 0xEB79
+0x875F = 0xEB7A
+0x8760 = 0xEB7B
+0x8761 = 0xEB7C
+0x8762 = 0xEB7D
+0x8763 = 0xEB7E
+0x8764 = 0xEB7F
+0x8765 = 0xEB80
+0x8766 = 0xEB81
+0x8767 = 0xEB82
+0x8768 = 0xEB83
+0x8769 = 0xEB84
+0x876A = 0xEB85
+0x876B = 0xEB86
+0x876C = 0xEB87
+0x876D = 0xEB88
+0x876E = 0xEB89
+0x876F = 0xEB8A
+0x8770 = 0xEB8B
+0x8771 = 0xEB8C
+0x8772 = 0xEB8D
+0x8773 = 0xEB8E
+0x8B21 = 0xE468
+0x8B22 = 0xE469
+0x8B23 = 0xE46A
+0x8B24 = 0xE46B
+0x8B25 = 0xE46C
+0x8B26 = 0xE46D
+0x8B27 = 0xE46E
+0x8B28 = 0xE46F
+0x8B29 = 0xE470
+0x8B2A = 0xE471
+0x8B2B = 0xE472
+0x8B2C = 0xE473
+0x8B2D = 0xE474
+0x8B2E = 0xE475
+0x8B2F = 0xE476
+0x8B30 = 0xE477
+0x8B31 = 0xE478
+0x8B32 = 0xE479
+0x8B33 = 0xE47A
+0x8B34 = 0xE47B
+0x8B35 = 0xE47C
+0x8B36 = 0xE47D
+0x8B37 = 0xE47E
+0x8B38 = 0xE47F
+0x8B39 = 0xE480
+0x8B3A = 0xE481
+0x8B3B = 0xE482
+0x8B3C = 0xE483
+0x8B3D = 0xE484
+0x8B3E = 0xE485
+0x8B3F = 0xE486
+0x8B40 = 0xE487
+0x8B41 = 0xE488
+0x8B42 = 0xE489
+0x8B43 = 0xE48A
+0x8B44 = 0xE48B
+0x8B45 = 0xE48C
+0x8B46 = 0xE48D
+0x8B47 = 0xE48E
+0x8B48 = 0xE48F
+0x8B49 = 0xE490
+0x8B4A = 0xE491
+0x8B4B = 0xE492
+0x8B4C = 0xE493
+0x8B4D = 0xE494
+0x8B4E = 0xE495
+0x8B4F = 0xE496
+0x8B50 = 0xE497
+0x8B51 = 0xE498
+0x8B52 = 0xE499
+0x8B53 = 0xE49A
+0x8B54 = 0xE49B
+0x8B55 = 0xE49C
+0x8B56 = 0xE49D
+0x8B57 = 0xE49E
+0x8B58 = 0xE49F
+0x8B59 = 0xE4A0
+0x8B5A = 0xE4A1
+0x8B5B = 0xE4A2
+0x8B5C = 0xE4A3
+0x8B5D = 0xE4A4
+0x8B5E = 0xE4A5
+0x8B5F = 0xE4A6
+0x8B60 = 0xE4A7
+0x8B61 = 0xE4A8
+0x8B62 = 0xE4A9
+0x8B63 = 0xE4AA
+0x8B64 = 0xE4AB
+0x8B65 = 0xE4AC
+0x8B66 = 0xE4AD
+0x8B67 = 0xE4AE
+0x8B68 = 0xE4AF
+0x8B69 = 0xE4B0
+0x8B6A = 0xE4B1
+0x8B6B = 0xE4B2
+0x8B6C = 0xE4B3
+0x8B6D = 0xE4B4
+0x8B6E = 0xE4B5
+0x8B6F = 0xE4B6
+0x8B70 = 0xE4B7
+0x8B71 = 0xE4B8
+0x8B72 = 0xE4B9
+0x8B73 = 0xE4BA
+0x8B74 = 0xE4BB
+0x8B75 = 0xE4BC
+0x8B76 = 0xE4BD
+0x8B77 = 0xE4BE
+0x8B78 = 0xE4BF
+0x8B79 = 0xE4C0
+0x8B7A = 0xE4C1
+0x8B7B = 0xE4C2
+0x8B7C = 0xE4C3
+0x8B7D = 0xE4C4
+0x8B7E = 0xE4C5
+0x8C21 = 0xE4C6
+0x8C22 = 0xE4C7
+0x8C23 = 0xE4C8
+0x8C24 = 0xE4C9
+0x8C25 = 0xE4CA
+0x8C26 = 0xE4CB
+0x8C27 = 0xE4CC
+0x8C28 = 0xE4CD
+0x8C29 = 0xE4CE
+0x8C2A = 0xE4CF
+0x8C2B = 0xE4D0
+0x8C2C = 0xE4D1
+0x8C2D = 0xE4D2
+0x8C2E = 0xE4D3
+0x8C2F = 0xE4D4
+0x8C30 = 0xE4D5
+0x8C31 = 0xE4D6
+0x8C32 = 0xE4D7
+0x8C33 = 0xE4D8
+0x8C34 = 0xE4D9
+0x8C35 = 0xE4DA
+0x8C36 = 0xE4DB
+0x8C37 = 0xE4DC
+0x8C38 = 0xE4DD
+0x8C39 = 0xE4DE
+0x8C3A = 0xE4DF
+0x8C3B = 0xE4E0
+0x8C3C = 0xE4E1
+0x8C3D = 0xE4E2
+0x8C3E = 0xE4E3
+0x8C3F = 0xE4E4
+0x8C40 = 0xE4E5
+0x8C41 = 0xE4E6
+0x8C42 = 0xE4E7
+0x8C43 = 0xE4E8
+0x8C44 = 0xE4E9
+0x8C45 = 0xE4EA
+0x8C46 = 0xE4EB
+0x8C47 = 0xE4EC
+0x8C48 = 0xE4ED
+0x8C49 = 0xE4EE
+0x8C4A = 0xE4EF
+0x8C4B = 0xE4F0
+0x8C4C = 0xE4F1
+0x8C4D = 0xE4F2
+0x8C4E = 0xE4F3
+0x8C4F = 0xE4F4
+0x8C50 = 0xE4F5
+0x8C51 = 0xE4F6
+0x8C52 = 0xE4F7
+0x8C53 = 0xE4F8
+0x8C54 = 0xE4F9
+0x8C55 = 0xE4FA
+0x8C56 = 0xE4FB
+0x8C57 = 0xE4FC
+0x8C58 = 0xE4FD
+0x8C59 = 0xE4FE
+0x8C5A = 0xE4FF
+0x8C5B = 0xE500
+0x8C5C = 0xE501
+0x8C5D = 0xE502
+0x8C5E = 0xE503
+0x8C5F = 0xE504
+0x8C60 = 0xE505
+0x8C61 = 0xE506
+0x8C62 = 0xE507
+0x8C63 = 0xE508
+0x8C64 = 0xE509
+0x8C65 = 0xE50A
+0x8C66 = 0xE50B
+0x8C67 = 0xE50C
+0x8C68 = 0xE50D
+0x8C69 = 0xE50E
+0x8C6A = 0xE50F
+0x8C6B = 0xE510
+0x8C6C = 0xE511
+0x8C6D = 0xE512
+0x8C6E = 0xE513
+0x8C6F = 0xE514
+0x8C70 = 0xE515
+0x8C71 = 0xE516
+0x8C72 = 0xE517
+0x8C73 = 0xE518
+0x8C74 = 0xE519
+0x8C75 = 0xE51A
+0x8C76 = 0xE51B
+0x8C77 = 0xE51C
+0x8C78 = 0xE51D
+0x8C79 = 0xE51E
+0x8C7A = 0xE51F
+0x8C7B = 0xE520
+0x8C7C = 0xE521
+0x8C7D = 0xE522
+0x8C7E = 0xE523
+0x8D21 = 0xE524
+0x8D22 = 0xE525
+0x8D23 = 0xE526
+0x8D24 = 0xE527
+0x8D25 = 0xE528
+0x8D26 = 0xE529
+0x8D27 = 0xE52A
+0x8D28 = 0xE52B
+0x8D29 = 0xE52C
+0x8D2A = 0xE52D
+0x8D2B = 0xE52E
+0x8D2C = 0xE52F
+0x8D2D = 0xE530
+0x8D2E = 0xE531
+0x8D2F = 0xE532
+0x8D30 = 0xE533
+0x8D31 = 0xE534
+0x8D32 = 0xE535
+0x8D33 = 0xE536
+0x8D34 = 0xE537
+0x8D35 = 0xE538
+0x8D36 = 0xE539
+0x8D37 = 0xE53A
+0x8D38 = 0xE53B
+0x8D39 = 0xE53C
+0x8D3A = 0xE53D
+0x8D3B = 0xE53E
+0x8D3C = 0xE53F
+0x8D3D = 0xE540
+0x8D3E = 0xE541
+0x8D3F = 0xE542
+0x8D40 = 0xE543
+0x8D41 = 0xE544
+0x8D42 = 0xE545
+0x8D43 = 0xE546
+0x8D44 = 0xE547
+0x8D45 = 0xE548
+0x8D46 = 0xE549
+0x8D47 = 0xE54A
+0x8D48 = 0xE54B
+0x8D49 = 0xE54C
+0x8D4A = 0xE54D
+0x8D4B = 0xE54E
+0x8D4C = 0xE54F
+0x8D4D = 0xE550
+0x8D4E = 0xE551
+0x8D4F = 0xE552
+0x8D50 = 0xE553
+0x8D51 = 0xE554
+0x8D52 = 0xE555
+0x8D53 = 0xE556
+0x8D54 = 0xE557
+0x8D55 = 0xE558
+0x8D56 = 0xE559
+0x8D57 = 0xE55A
+0x8D58 = 0xE55B
+0x8D59 = 0xE55C
+0x8D5A = 0xE55D
+0x8D5B = 0xE55E
+0x8D5C = 0xE55F
+0x8D5D = 0xE560
+0x8D5E = 0xE561
+0x8D5F = 0xE562
+0x8D60 = 0xE563
+0x8D61 = 0xE564
+0x8D62 = 0xE565
+0x8D63 = 0xE566
+0x8D64 = 0xE567
+0x8D65 = 0xE568
+0x8D66 = 0xE569
+0x8D67 = 0xE56A
+0x8D68 = 0xE56B
+0x8D69 = 0xE56C
+0x8D6A = 0xE56D
+0x8D6B = 0xE56E
+0x8D6C = 0xE56F
+0x8D6D = 0xE570
+0x8D6E = 0xE571
+0x8D6F = 0xE572
+0x8D70 = 0xE573
+0x8D71 = 0xE574
+0x8D72 = 0xE575
+0x8D73 = 0xE576
+0x8D74 = 0xE577
+0x8D75 = 0xE578
+0x8D76 = 0xE579
+0x8D77 = 0xE57A
+0x8D78 = 0xE57B
+0x8D79 = 0xE57C
+0x8D7A = 0xE57D
+0x8D7B = 0xE57E
+0x8D7C = 0xE57F
+0x8D7D = 0xE580
+0x8D7E = 0xE581
+0x8E21 = 0xE582
+0x8E22 = 0xE583
+0x8E23 = 0xE584
+0x8E24 = 0xE585
+0x8E25 = 0xE586
+0x8E26 = 0xE587
+0x8E27 = 0xE588
+0x8E28 = 0xE589
+0x8E29 = 0xE58A
+0x8E2A = 0xE58B
+0x8E2B = 0xE58C
+0x8E2C = 0xE58D
+0x8E2D = 0xE58E
+0x8E2E = 0xE58F
+0x8E2F = 0xE590
+0x8E30 = 0xE591
+0x8E31 = 0xE592
+0x8E32 = 0xE593
+0x8E33 = 0xE594
+0x8E34 = 0xE595
+0x8E35 = 0xE596
+0x8E36 = 0xE597
+0x8E37 = 0xE598
+0x8E38 = 0xE599
+0x8E39 = 0xE59A
+0x8E3A = 0xE59B
+0x8E3B = 0xE59C
+0x8E3C = 0xE59D
+0x8E3D = 0xE59E
+0x8E3E = 0xE59F
+0x8E3F = 0xE5A0
+0x8E40 = 0xE5A1
+0x8E41 = 0xE5A2
+0x8E42 = 0xE5A3
+0x8E43 = 0xE5A4
+0x8E44 = 0xE5A5
+0x8E45 = 0xE5A6
+0x8E46 = 0xE5A7
+0x8E47 = 0xE5A8
+0x8E48 = 0xE5A9
+0x8E49 = 0xE5AA
+0x8E4A = 0xE5AB
+0x8E4B = 0xE5AC
+0x8E4C = 0xE5AD
+0x8E4D = 0xE5AE
+0x8E4E = 0xE5AF
+0x8E4F = 0xE5B0
+0x8E50 = 0xE5B1
+0x8E51 = 0xE5B2
+0x8E52 = 0xE5B3
+0x8E53 = 0xE5B4
+0x8E54 = 0xEAFB
+0x8E55 = 0xEAFC
+0x8E56 = 0xEAFD
+0x8E57 = 0xEAFE
+0x8E58 = 0xEAFF
+0x8E59 = 0xEB00
+0x8E5A = 0xEB01
+0x8E5B = 0xEB02
+0x8E5C = 0xEB03
+0x8E5D = 0xEB04
+0x8E5E = 0xEB05
+0x8E5F = 0xEB06
+0x8E60 = 0xEB07
+0x8E61 = 0xEB08
+0x8E62 = 0xEB09
+0x8E63 = 0xEB0A
+0x8E64 = 0xEB0B
+0x8E65 = 0xEB0C
+0x8E66 = 0xEB0D
+0x8E67 = 0xE5B5
+0x8E68 = 0xE5B6
+0x8E69 = 0xE5B7
+0x8E6A = 0xE5B8
+0x8E6B = 0xE5B9
+0x8E6C = 0xE5BA
+0x8E6D = 0xE5BB
+0x8E6E = 0xE5BC
+0x8E6F = 0xE5BD
+0x8E70 = 0xE5BE
+0x8E71 = 0xE5BF
+0x8E72 = 0xE5C0
+0x8E73 = 0xE5C1
+0x8E74 = 0xE5C2
+0x8E75 = 0xE5C3
+0x8E76 = 0xE5C4
+0x8E77 = 0xE5C5
+0x8E78 = 0xE5C6
+0x8E79 = 0xE5C7
+0x8E7A = 0xE5C8
+0x8E7B = 0xE5C9
+0x8E7C = 0xE5CA
+0x8E7D = 0xE5CB
+0x8E7E = 0xE5CC
+END_MAP
diff --git a/enc/trans/EMOJI/EMOJI_SHIFT_JIS-KDDI-UNDOC%UCS.src b/enc/trans/EMOJI/EMOJI_SHIFT_JIS-KDDI-UNDOC%UCS.src
new file mode 100644
index 0000000000..85e5650b58
--- /dev/null
+++ b/enc/trans/EMOJI/EMOJI_SHIFT_JIS-KDDI-UNDOC%UCS.src
@@ -0,0 +1,658 @@
+# DO NOT EDIT THIS FILE DIRECTLY
+
+TYPE ROWCOL
+NAME EMOJI_SHIFT_JIS-KDDI-UNDOC/UCS
+SRC_ZONE 0xF3-0xFC / 0x40-0xFC / 8
+OOB_MODE ILSEQ
+DST_ILSEQ 0xFFFE
+DST_UNIT_BITS 16
+
+BEGIN_MAP
+0x8521 = 0xEC40
+0x8522 = 0xEC41
+0x8523 = 0xEC42
+0x8524 = 0xEC43
+0x8525 = 0xEC44
+0x8526 = 0xEC45
+0x8527 = 0xEC46
+0x8528 = 0xEC47
+0x8529 = 0xEC48
+0x852A = 0xEC49
+0x852B = 0xEC4A
+0x852C = 0xEC4B
+0x852D = 0xEC4C
+0x852E = 0xEC4D
+0x852F = 0xEC4E
+0x8530 = 0xEC4F
+0x8531 = 0xEC50
+0x8532 = 0xEC51
+0x8533 = 0xEC52
+0x8534 = 0xEC53
+0x8535 = 0xEC54
+0x8536 = 0xEC55
+0x8537 = 0xEC56
+0x8538 = 0xEC57
+0x8539 = 0xEC58
+0x853A = 0xEC59
+0x853B = 0xEC5A
+0x853C = 0xEC5B
+0x853D = 0xEC5C
+0x853E = 0xEC5D
+0x853F = 0xEC5E
+0x8540 = 0xEC5F
+0x8541 = 0xEC60
+0x8542 = 0xEC61
+0x8543 = 0xEC62
+0x8544 = 0xEC63
+0x8545 = 0xEC64
+0x8546 = 0xEC65
+0x8547 = 0xEC66
+0x8548 = 0xEC67
+0x8549 = 0xEC68
+0x854A = 0xEC69
+0x854B = 0xEC6A
+0x854C = 0xEC6B
+0x854D = 0xEC6C
+0x854E = 0xEC6D
+0x854F = 0xEC6E
+0x8550 = 0xEC6F
+0x8551 = 0xEC70
+0x8552 = 0xEC71
+0x8553 = 0xEC72
+0x8554 = 0xEC73
+0x8555 = 0xEC74
+0x8556 = 0xEC75
+0x8557 = 0xEC76
+0x8558 = 0xEC77
+0x8559 = 0xEC78
+0x855A = 0xEC79
+0x855B = 0xEC7A
+0x855C = 0xEC7B
+0x855D = 0xEC7C
+0x855E = 0xEC7D
+0x855F = 0xEC7E
+0x8560 = 0xEC80
+0x8561 = 0xEC81
+0x8562 = 0xEC82
+0x8563 = 0xEC83
+0x8564 = 0xEC84
+0x8565 = 0xEC85
+0x8566 = 0xEC86
+0x8567 = 0xEC87
+0x8568 = 0xEC88
+0x8569 = 0xEC89
+0x856A = 0xEC8A
+0x856B = 0xEC8B
+0x856C = 0xEC8C
+0x856D = 0xEC8D
+0x856E = 0xEC8E
+0x856F = 0xEC8F
+0x8570 = 0xEC90
+0x8571 = 0xEC91
+0x8572 = 0xEC92
+0x8573 = 0xEC93
+0x8574 = 0xEC94
+0x8575 = 0xEC95
+0x8576 = 0xEC96
+0x8577 = 0xEC97
+0x8578 = 0xEC98
+0x8579 = 0xEC99
+0x857A = 0xEC9A
+0x857B = 0xEC9B
+0x857C = 0xEC9C
+0x857D = 0xEC9D
+0x857E = 0xEC9E
+0x8621 = 0xEC9F
+0x8622 = 0xECA0
+0x8623 = 0xECA1
+0x8624 = 0xECA2
+0x8625 = 0xECA3
+0x8626 = 0xECA4
+0x8627 = 0xECA5
+0x8628 = 0xECA6
+0x8629 = 0xECA7
+0x862A = 0xECA8
+0x862B = 0xECA9
+0x862C = 0xECAA
+0x862D = 0xECAB
+0x862E = 0xECAC
+0x862F = 0xECAD
+0x8630 = 0xECAE
+0x8631 = 0xECAF
+0x8632 = 0xECB0
+0x8633 = 0xECB1
+0x8634 = 0xECB2
+0x8635 = 0xECB3
+0x8636 = 0xECB4
+0x8637 = 0xECB5
+0x8638 = 0xECB6
+0x8639 = 0xECB7
+0x863A = 0xECB8
+0x863B = 0xECB9
+0x863C = 0xECBA
+0x863D = 0xECBB
+0x863E = 0xECBC
+0x863F = 0xECBD
+0x8640 = 0xECBE
+0x8641 = 0xECBF
+0x8642 = 0xECC0
+0x8643 = 0xECC1
+0x8644 = 0xECC2
+0x8645 = 0xECC3
+0x8646 = 0xECC4
+0x8647 = 0xECC5
+0x8648 = 0xECC6
+0x8649 = 0xECC7
+0x864A = 0xECC8
+0x864B = 0xECC9
+0x864C = 0xECCA
+0x864D = 0xECCB
+0x864E = 0xECCC
+0x864F = 0xECCD
+0x8650 = 0xECCE
+0x8651 = 0xECCF
+0x8652 = 0xECD0
+0x8653 = 0xECD1
+0x8654 = 0xECD2
+0x8655 = 0xECD3
+0x8656 = 0xECD4
+0x8657 = 0xECD5
+0x8658 = 0xECD6
+0x8659 = 0xECD7
+0x865A = 0xECD8
+0x865B = 0xECD9
+0x865C = 0xECDA
+0x865D = 0xECDB
+0x865E = 0xECDC
+0x865F = 0xECDD
+0x8660 = 0xECDE
+0x8661 = 0xECDF
+0x8662 = 0xECE0
+0x8663 = 0xECE1
+0x8664 = 0xECE2
+0x8665 = 0xECE3
+0x8666 = 0xECE4
+0x8667 = 0xECE5
+0x8668 = 0xECE6
+0x8669 = 0xECE7
+0x866A = 0xECE8
+0x866B = 0xECE9
+0x866C = 0xECEA
+0x866D = 0xECEB
+0x866E = 0xECEC
+0x866F = 0xECED
+0x8670 = 0xECEE
+0x8671 = 0xECEF
+0x8672 = 0xECF0
+0x8673 = 0xECF1
+0x8674 = 0xECF2
+0x8675 = 0xECF3
+0x8676 = 0xECF4
+0x8677 = 0xECF5
+0x8678 = 0xECF6
+0x8679 = 0xECF7
+0x867A = 0xECF8
+0x867B = 0xECF9
+0x867C = 0xECFA
+0x867D = 0xECFB
+0x867E = 0xECFC
+0x8721 = 0xED40
+0x8722 = 0xED41
+0x8723 = 0xED42
+0x8724 = 0xED43
+0x8725 = 0xED44
+0x8726 = 0xED45
+0x8727 = 0xED46
+0x8728 = 0xED47
+0x8729 = 0xED48
+0x872A = 0xED49
+0x872B = 0xED4A
+0x872C = 0xED4B
+0x872D = 0xED4C
+0x872E = 0xED4D
+0x872F = 0xED4E
+0x8730 = 0xED4F
+0x8731 = 0xED50
+0x8732 = 0xED51
+0x8733 = 0xED52
+0x8734 = 0xED53
+0x8735 = 0xED54
+0x8736 = 0xED55
+0x8737 = 0xED56
+0x8738 = 0xED57
+0x8739 = 0xED58
+0x873A = 0xED59
+0x873B = 0xED5A
+0x873C = 0xED5B
+0x873D = 0xED5C
+0x873E = 0xED5D
+0x873F = 0xED5E
+0x8740 = 0xED5F
+0x8741 = 0xED60
+0x8742 = 0xED61
+0x8743 = 0xED62
+0x8744 = 0xED63
+0x8745 = 0xED64
+0x8746 = 0xED65
+0x8747 = 0xED66
+0x8748 = 0xED67
+0x8749 = 0xED68
+0x874A = 0xED69
+0x874B = 0xED6A
+0x874C = 0xED6B
+0x874D = 0xED6C
+0x874E = 0xED6D
+0x874F = 0xED6E
+0x8750 = 0xED6F
+0x8751 = 0xED70
+0x8752 = 0xED71
+0x8753 = 0xED72
+0x8754 = 0xED73
+0x8755 = 0xED74
+0x8756 = 0xED75
+0x8757 = 0xED76
+0x8758 = 0xED77
+0x8759 = 0xED78
+0x875A = 0xED79
+0x875B = 0xED7A
+0x875C = 0xED7B
+0x875D = 0xED7C
+0x875E = 0xED7D
+0x875F = 0xED7E
+0x8760 = 0xED80
+0x8761 = 0xED81
+0x8762 = 0xED82
+0x8763 = 0xED83
+0x8764 = 0xED84
+0x8765 = 0xED85
+0x8766 = 0xED86
+0x8767 = 0xED87
+0x8768 = 0xED88
+0x8769 = 0xED89
+0x876A = 0xED8A
+0x876B = 0xED8B
+0x876C = 0xED8C
+0x876D = 0xED8D
+0x876E = 0xED8E
+0x876F = 0xED8F
+0x8770 = 0xED90
+0x8771 = 0xED91
+0x8772 = 0xED92
+0x8773 = 0xED93
+0x8B21 = 0xEF40
+0x8B22 = 0xEF41
+0x8B23 = 0xEF42
+0x8B24 = 0xEF43
+0x8B25 = 0xEF44
+0x8B26 = 0xEF45
+0x8B27 = 0xEF46
+0x8B28 = 0xEF47
+0x8B29 = 0xEF48
+0x8B2A = 0xEF49
+0x8B2B = 0xEF4A
+0x8B2C = 0xEF4B
+0x8B2D = 0xEF4C
+0x8B2E = 0xEF4D
+0x8B2F = 0xEF4E
+0x8B30 = 0xEF4F
+0x8B31 = 0xEF50
+0x8B32 = 0xEF51
+0x8B33 = 0xEF52
+0x8B34 = 0xEF53
+0x8B35 = 0xEF54
+0x8B36 = 0xEF55
+0x8B37 = 0xEF56
+0x8B38 = 0xEF57
+0x8B39 = 0xEF58
+0x8B3A = 0xEF59
+0x8B3B = 0xEF5A
+0x8B3C = 0xEF5B
+0x8B3D = 0xEF5C
+0x8B3E = 0xEF5D
+0x8B3F = 0xEF5E
+0x8B40 = 0xEF5F
+0x8B41 = 0xEF60
+0x8B42 = 0xEF61
+0x8B43 = 0xEF62
+0x8B44 = 0xEF63
+0x8B45 = 0xEF64
+0x8B46 = 0xEF65
+0x8B47 = 0xEF66
+0x8B48 = 0xEF67
+0x8B49 = 0xEF68
+0x8B4A = 0xEF69
+0x8B4B = 0xEF6A
+0x8B4C = 0xEF6B
+0x8B4D = 0xEF6C
+0x8B4E = 0xEF6D
+0x8B4F = 0xEF6E
+0x8B50 = 0xEF6F
+0x8B51 = 0xEF70
+0x8B52 = 0xEF71
+0x8B53 = 0xEF72
+0x8B54 = 0xEF73
+0x8B55 = 0xEF74
+0x8B56 = 0xEF75
+0x8B57 = 0xEF76
+0x8B58 = 0xEF77
+0x8B59 = 0xEF78
+0x8B5A = 0xEF79
+0x8B5B = 0xEF7A
+0x8B5C = 0xEF7B
+0x8B5D = 0xEF7C
+0x8B5E = 0xEF7D
+0x8B5F = 0xEF7E
+0x8B60 = 0xEF80
+0x8B61 = 0xEF81
+0x8B62 = 0xEF82
+0x8B63 = 0xEF83
+0x8B64 = 0xEF84
+0x8B65 = 0xEF85
+0x8B66 = 0xEF86
+0x8B67 = 0xEF87
+0x8B68 = 0xEF88
+0x8B69 = 0xEF89
+0x8B6A = 0xEF8A
+0x8B6B = 0xEF8B
+0x8B6C = 0xEF8C
+0x8B6D = 0xEF8D
+0x8B6E = 0xEF8E
+0x8B6F = 0xEF8F
+0x8B70 = 0xEF90
+0x8B71 = 0xEF91
+0x8B72 = 0xEF92
+0x8B73 = 0xEF93
+0x8B74 = 0xEF94
+0x8B75 = 0xEF95
+0x8B76 = 0xEF96
+0x8B77 = 0xEF97
+0x8B78 = 0xEF98
+0x8B79 = 0xEF99
+0x8B7A = 0xEF9A
+0x8B7B = 0xEF9B
+0x8B7C = 0xEF9C
+0x8B7D = 0xEF9D
+0x8B7E = 0xEF9E
+0x8C21 = 0xEF9F
+0x8C22 = 0xEFA0
+0x8C23 = 0xEFA1
+0x8C24 = 0xEFA2
+0x8C25 = 0xEFA3
+0x8C26 = 0xEFA4
+0x8C27 = 0xEFA5
+0x8C28 = 0xEFA6
+0x8C29 = 0xEFA7
+0x8C2A = 0xEFA8
+0x8C2B = 0xEFA9
+0x8C2C = 0xEFAA
+0x8C2D = 0xEFAB
+0x8C2E = 0xEFAC
+0x8C2F = 0xEFAD
+0x8C30 = 0xEFAE
+0x8C31 = 0xEFAF
+0x8C32 = 0xEFB0
+0x8C33 = 0xEFB1
+0x8C34 = 0xEFB2
+0x8C35 = 0xEFB3
+0x8C36 = 0xEFB4
+0x8C37 = 0xEFB5
+0x8C38 = 0xEFB6
+0x8C39 = 0xEFB7
+0x8C3A = 0xEFB8
+0x8C3B = 0xEFB9
+0x8C3C = 0xEFBA
+0x8C3D = 0xEFBB
+0x8C3E = 0xEFBC
+0x8C3F = 0xEFBD
+0x8C40 = 0xEFBE
+0x8C41 = 0xEFBF
+0x8C42 = 0xEFC0
+0x8C43 = 0xEFC1
+0x8C44 = 0xEFC2
+0x8C45 = 0xEFC3
+0x8C46 = 0xEFC4
+0x8C47 = 0xEFC5
+0x8C48 = 0xEFC6
+0x8C49 = 0xEFC7
+0x8C4A = 0xEFC8
+0x8C4B = 0xEFC9
+0x8C4C = 0xEFCA
+0x8C4D = 0xEFCB
+0x8C4E = 0xEFCC
+0x8C4F = 0xEFCD
+0x8C50 = 0xEFCE
+0x8C51 = 0xEFCF
+0x8C52 = 0xEFD0
+0x8C53 = 0xEFD1
+0x8C54 = 0xEFD2
+0x8C55 = 0xEFD3
+0x8C56 = 0xEFD4
+0x8C57 = 0xEFD5
+0x8C58 = 0xEFD6
+0x8C59 = 0xEFD7
+0x8C5A = 0xEFD8
+0x8C5B = 0xEFD9
+0x8C5C = 0xEFDA
+0x8C5D = 0xEFDB
+0x8C5E = 0xEFDC
+0x8C5F = 0xEFDD
+0x8C60 = 0xEFDE
+0x8C61 = 0xEFDF
+0x8C62 = 0xEFE0
+0x8C63 = 0xEFE1
+0x8C64 = 0xEFE2
+0x8C65 = 0xEFE3
+0x8C66 = 0xEFE4
+0x8C67 = 0xEFE5
+0x8C68 = 0xEFE6
+0x8C69 = 0xEFE7
+0x8C6A = 0xEFE8
+0x8C6B = 0xEFE9
+0x8C6C = 0xEFEA
+0x8C6D = 0xEFEB
+0x8C6E = 0xEFEC
+0x8C6F = 0xEFED
+0x8C70 = 0xEFEE
+0x8C71 = 0xEFEF
+0x8C72 = 0xEFF0
+0x8C73 = 0xEFF1
+0x8C74 = 0xEFF2
+0x8C75 = 0xEFF3
+0x8C76 = 0xEFF4
+0x8C77 = 0xEFF5
+0x8C78 = 0xEFF6
+0x8C79 = 0xEFF7
+0x8C7A = 0xEFF8
+0x8C7B = 0xEFF9
+0x8C7C = 0xEFFA
+0x8C7D = 0xEFFB
+0x8C7E = 0xEFFC
+0x8D21 = 0xF040
+0x8D22 = 0xF041
+0x8D23 = 0xF042
+0x8D24 = 0xF043
+0x8D25 = 0xF044
+0x8D26 = 0xF045
+0x8D27 = 0xF046
+0x8D28 = 0xF047
+0x8D29 = 0xF048
+0x8D2A = 0xF049
+0x8D2B = 0xF04A
+0x8D2C = 0xF04B
+0x8D2D = 0xF04C
+0x8D2E = 0xF04D
+0x8D2F = 0xF04E
+0x8D30 = 0xF04F
+0x8D31 = 0xF050
+0x8D32 = 0xF051
+0x8D33 = 0xF052
+0x8D34 = 0xF053
+0x8D35 = 0xF054
+0x8D36 = 0xF055
+0x8D37 = 0xF056
+0x8D38 = 0xF057
+0x8D39 = 0xF058
+0x8D3A = 0xF059
+0x8D3B = 0xF05A
+0x8D3C = 0xF05B
+0x8D3D = 0xF05C
+0x8D3E = 0xF05D
+0x8D3F = 0xF05E
+0x8D40 = 0xF05F
+0x8D41 = 0xF060
+0x8D42 = 0xF061
+0x8D43 = 0xF062
+0x8D44 = 0xF063
+0x8D45 = 0xF064
+0x8D46 = 0xF065
+0x8D47 = 0xF066
+0x8D48 = 0xF067
+0x8D49 = 0xF068
+0x8D4A = 0xF069
+0x8D4B = 0xF06A
+0x8D4C = 0xF06B
+0x8D4D = 0xF06C
+0x8D4E = 0xF06D
+0x8D4F = 0xF06E
+0x8D50 = 0xF06F
+0x8D51 = 0xF070
+0x8D52 = 0xF071
+0x8D53 = 0xF072
+0x8D54 = 0xF073
+0x8D55 = 0xF074
+0x8D56 = 0xF075
+0x8D57 = 0xF076
+0x8D58 = 0xF077
+0x8D59 = 0xF078
+0x8D5A = 0xF079
+0x8D5B = 0xF07A
+0x8D5C = 0xF07B
+0x8D5D = 0xF07C
+0x8D5E = 0xF07D
+0x8D5F = 0xF07E
+0x8D60 = 0xF080
+0x8D61 = 0xF081
+0x8D62 = 0xF082
+0x8D63 = 0xF083
+0x8D64 = 0xF084
+0x8D65 = 0xF085
+0x8D66 = 0xF086
+0x8D67 = 0xF087
+0x8D68 = 0xF088
+0x8D69 = 0xF089
+0x8D6A = 0xF08A
+0x8D6B = 0xF08B
+0x8D6C = 0xF08C
+0x8D6D = 0xF08D
+0x8D6E = 0xF08E
+0x8D6F = 0xF08F
+0x8D70 = 0xF090
+0x8D71 = 0xF091
+0x8D72 = 0xF092
+0x8D73 = 0xF093
+0x8D74 = 0xF094
+0x8D75 = 0xF095
+0x8D76 = 0xF096
+0x8D77 = 0xF097
+0x8D78 = 0xF098
+0x8D79 = 0xF099
+0x8D7A = 0xF09A
+0x8D7B = 0xF09B
+0x8D7C = 0xF09C
+0x8D7D = 0xF09D
+0x8D7E = 0xF09E
+0x8E21 = 0xF09F
+0x8E22 = 0xF0A0
+0x8E23 = 0xF0A1
+0x8E24 = 0xF0A2
+0x8E25 = 0xF0A3
+0x8E26 = 0xF0A4
+0x8E27 = 0xF0A5
+0x8E28 = 0xF0A6
+0x8E29 = 0xF0A7
+0x8E2A = 0xF0A8
+0x8E2B = 0xF0A9
+0x8E2C = 0xF0AA
+0x8E2D = 0xF0AB
+0x8E2E = 0xF0AC
+0x8E2F = 0xF0AD
+0x8E30 = 0xF0AE
+0x8E31 = 0xF0AF
+0x8E32 = 0xF0B0
+0x8E33 = 0xF0B1
+0x8E34 = 0xF0B2
+0x8E35 = 0xF0B3
+0x8E36 = 0xF0B4
+0x8E37 = 0xF0B5
+0x8E38 = 0xF0B6
+0x8E39 = 0xF0B7
+0x8E3A = 0xF0B8
+0x8E3B = 0xF0B9
+0x8E3C = 0xF0BA
+0x8E3D = 0xF0BB
+0x8E3E = 0xF0BC
+0x8E3F = 0xF0BD
+0x8E40 = 0xF0BE
+0x8E41 = 0xF0BF
+0x8E42 = 0xF0C0
+0x8E43 = 0xF0C1
+0x8E44 = 0xF0C2
+0x8E45 = 0xF0C3
+0x8E46 = 0xF0C4
+0x8E47 = 0xF0C5
+0x8E48 = 0xF0C6
+0x8E49 = 0xF0C7
+0x8E4A = 0xF0C8
+0x8E4B = 0xF0C9
+0x8E4C = 0xF0CA
+0x8E4D = 0xF0CB
+0x8E4E = 0xF0CC
+0x8E4F = 0xF0CD
+0x8E50 = 0xF0CE
+0x8E51 = 0xF0CF
+0x8E52 = 0xF0D0
+0x8E53 = 0xF0D1
+0x8E54 = 0xF0D2
+0x8E55 = 0xF0D3
+0x8E56 = 0xF0D4
+0x8E57 = 0xF0D5
+0x8E58 = 0xF0D6
+0x8E59 = 0xF0D7
+0x8E5A = 0xF0D8
+0x8E5B = 0xF0D9
+0x8E5C = 0xF0DA
+0x8E5D = 0xF0DB
+0x8E5E = 0xF0DC
+0x8E5F = 0xF0DD
+0x8E60 = 0xF0DE
+0x8E61 = 0xF0DF
+0x8E62 = 0xF0E0
+0x8E63 = 0xF0E1
+0x8E64 = 0xF0E2
+0x8E65 = 0xF0E3
+0x8E66 = 0xF0E4
+0x8E67 = 0xF0E5
+0x8E68 = 0xF0E6
+0x8E69 = 0xF0E7
+0x8E6A = 0xF0E8
+0x8E6B = 0xF0E9
+0x8E6C = 0xF0EA
+0x8E6D = 0xF0EB
+0x8E6E = 0xF0EC
+0x8E6F = 0xF0ED
+0x8E70 = 0xF0EE
+0x8E71 = 0xF0EF
+0x8E72 = 0xF0F0
+0x8E73 = 0xF0F1
+0x8E74 = 0xF0F2
+0x8E75 = 0xF0F3
+0x8E76 = 0xF0F4
+0x8E77 = 0xF0F5
+0x8E78 = 0xF0F6
+0x8E79 = 0xF0F7
+0x8E7A = 0xF0F8
+0x8E7B = 0xF0F9
+0x8E7C = 0xF0FA
+0x8E7D = 0xF0FB
+0x8E7E = 0xF0FC
+END_MAP
diff --git a/enc/trans/EMOJI/EMOJI_SHIFT_JIS-SOFTBANK%UCS.src b/enc/trans/EMOJI/EMOJI_SHIFT_JIS-SOFTBANK%UCS.src
new file mode 100644
index 0000000000..015107413f
--- /dev/null
+++ b/enc/trans/EMOJI/EMOJI_SHIFT_JIS-SOFTBANK%UCS.src
@@ -0,0 +1,496 @@
+# DO NOT EDIT THIS FILE DIRECTLY
+
+TYPE ROWCOL
+NAME EMOJI_SHIFT_JIS-SOFTBANK/UCS
+SRC_ZONE 0xF3-0xFC / 0x40-0xFC / 8
+OOB_MODE ILSEQ
+DST_ILSEQ 0xFFFE
+DST_UNIT_BITS 16
+
+BEGIN_MAP
+0x8D22 = 0xE101
+0x8D23 = 0xE102
+0x8D24 = 0xE103
+0x8D25 = 0xE104
+0x8D26 = 0xE105
+0x8D27 = 0xE106
+0x8D28 = 0xE107
+0x8D29 = 0xE108
+0x8D2A = 0xE109
+0x8D2B = 0xE10A
+0x8D2C = 0xE10B
+0x8D2D = 0xE10C
+0x8D2E = 0xE10D
+0x8D2F = 0xE10E
+0x8D30 = 0xE10F
+0x8D31 = 0xE110
+0x8D32 = 0xE111
+0x8D33 = 0xE112
+0x8D34 = 0xE113
+0x8D35 = 0xE114
+0x8D36 = 0xE115
+0x8D37 = 0xE116
+0x8D38 = 0xE117
+0x8D39 = 0xE118
+0x8D3A = 0xE119
+0x8D3B = 0xE11A
+0x8D3C = 0xE11B
+0x8D3D = 0xE11C
+0x8D3E = 0xE11D
+0x8D3F = 0xE11E
+0x8D40 = 0xE11F
+0x8D41 = 0xE120
+0x8D42 = 0xE121
+0x8D43 = 0xE122
+0x8D44 = 0xE123
+0x8D45 = 0xE124
+0x8D46 = 0xE125
+0x8D47 = 0xE126
+0x8D48 = 0xE127
+0x8D49 = 0xE128
+0x8D4A = 0xE129
+0x8D4B = 0xE12A
+0x8D4C = 0xE12B
+0x8D4D = 0xE12C
+0x8D4E = 0xE12D
+0x8D4F = 0xE12E
+0x8D50 = 0xE12F
+0x8D51 = 0xE130
+0x8D52 = 0xE131
+0x8D53 = 0xE132
+0x8D54 = 0xE133
+0x8D55 = 0xE134
+0x8D56 = 0xE135
+0x8D57 = 0xE136
+0x8D58 = 0xE137
+0x8D59 = 0xE138
+0x8D5A = 0xE139
+0x8D5B = 0xE13A
+0x8D5C = 0xE13B
+0x8D5D = 0xE13C
+0x8D5E = 0xE13D
+0x8D5F = 0xE13E
+0x8D60 = 0xE13F
+0x8D61 = 0xE140
+0x8D62 = 0xE141
+0x8D63 = 0xE142
+0x8D64 = 0xE143
+0x8D65 = 0xE144
+0x8D66 = 0xE145
+0x8D67 = 0xE146
+0x8D68 = 0xE147
+0x8D69 = 0xE148
+0x8D6A = 0xE149
+0x8D6B = 0xE14A
+0x8D6C = 0xE14B
+0x8D6D = 0xE14C
+0x8D6E = 0xE14D
+0x8D6F = 0xE14E
+0x8D70 = 0xE14F
+0x8D71 = 0xE150
+0x8D72 = 0xE151
+0x8D73 = 0xE152
+0x8D74 = 0xE153
+0x8D75 = 0xE154
+0x8D76 = 0xE155
+0x8D77 = 0xE156
+0x8D78 = 0xE157
+0x8D79 = 0xE158
+0x8D7A = 0xE159
+0x8D7B = 0xE15A
+0x8E23 = 0xE201
+0x8E24 = 0xE202
+0x8E25 = 0xE203
+0x8E26 = 0xE204
+0x8E27 = 0xE205
+0x8E28 = 0xE206
+0x8E29 = 0xE207
+0x8E2A = 0xE208
+0x8E2B = 0xE209
+0x8E2C = 0xE20A
+0x8E2D = 0xE20B
+0x8E2E = 0xE20C
+0x8E2F = 0xE20D
+0x8E30 = 0xE20E
+0x8E31 = 0xE20F
+0x8E32 = 0xE210
+0x8E33 = 0xE211
+0x8E34 = 0xE212
+0x8E35 = 0xE213
+0x8E36 = 0xE214
+0x8E37 = 0xE215
+0x8E38 = 0xE216
+0x8E39 = 0xE217
+0x8E3A = 0xE218
+0x8E3B = 0xE219
+0x8E3C = 0xE21A
+0x8E3D = 0xE21B
+0x8E3E = 0xE21C
+0x8E3F = 0xE21D
+0x8E40 = 0xE21E
+0x8E41 = 0xE21F
+0x8E42 = 0xE220
+0x8E43 = 0xE221
+0x8E44 = 0xE222
+0x8E45 = 0xE223
+0x8E46 = 0xE224
+0x8E47 = 0xE225
+0x8E48 = 0xE226
+0x8E49 = 0xE227
+0x8E4A = 0xE228
+0x8E4B = 0xE229
+0x8E4C = 0xE22A
+0x8E4D = 0xE22B
+0x8E4E = 0xE22C
+0x8E4F = 0xE22D
+0x8E50 = 0xE22E
+0x8E51 = 0xE22F
+0x8E52 = 0xE230
+0x8E53 = 0xE231
+0x8E54 = 0xE232
+0x8E55 = 0xE233
+0x8E56 = 0xE234
+0x8E57 = 0xE235
+0x8E58 = 0xE236
+0x8E59 = 0xE237
+0x8E5A = 0xE238
+0x8E5B = 0xE239
+0x8E5C = 0xE23A
+0x8E5D = 0xE23B
+0x8E5E = 0xE23C
+0x8E5F = 0xE23D
+0x8E60 = 0xE23E
+0x8E61 = 0xE23F
+0x8E62 = 0xE240
+0x8E63 = 0xE241
+0x8E64 = 0xE242
+0x8E65 = 0xE243
+0x8E66 = 0xE244
+0x8E67 = 0xE245
+0x8E68 = 0xE246
+0x8E69 = 0xE247
+0x8E6A = 0xE248
+0x8E6B = 0xE249
+0x8E6C = 0xE24A
+0x8E6D = 0xE24B
+0x8E6E = 0xE24C
+0x8E6F = 0xE24D
+0x8E70 = 0xE24E
+0x8E71 = 0xE24F
+0x8E72 = 0xE250
+0x8E73 = 0xE251
+0x8E74 = 0xE252
+0x8E75 = 0xE253
+0x8E76 = 0xE254
+0x8E77 = 0xE255
+0x8E78 = 0xE256
+0x8E79 = 0xE257
+0x8E7A = 0xE258
+0x8E7B = 0xE259
+0x8E7C = 0xE25A
+0x9122 = 0xE001
+0x9123 = 0xE002
+0x9124 = 0xE003
+0x9125 = 0xE004
+0x9126 = 0xE005
+0x9127 = 0xE006
+0x9128 = 0xE007
+0x9129 = 0xE008
+0x912A = 0xE009
+0x912B = 0xE00A
+0x912C = 0xE00B
+0x912D = 0xE00C
+0x912E = 0xE00D
+0x912F = 0xE00E
+0x9130 = 0xE00F
+0x9131 = 0xE010
+0x9132 = 0xE011
+0x9133 = 0xE012
+0x9134 = 0xE013
+0x9135 = 0xE014
+0x9136 = 0xE015
+0x9137 = 0xE016
+0x9138 = 0xE017
+0x9139 = 0xE018
+0x913A = 0xE019
+0x913B = 0xE01A
+0x913C = 0xE01B
+0x913D = 0xE01C
+0x913E = 0xE01D
+0x913F = 0xE01E
+0x9140 = 0xE01F
+0x9141 = 0xE020
+0x9142 = 0xE021
+0x9143 = 0xE022
+0x9144 = 0xE023
+0x9145 = 0xE024
+0x9146 = 0xE025
+0x9147 = 0xE026
+0x9148 = 0xE027
+0x9149 = 0xE028
+0x914A = 0xE029
+0x914B = 0xE02A
+0x914C = 0xE02B
+0x914D = 0xE02C
+0x914E = 0xE02D
+0x914F = 0xE02E
+0x9150 = 0xE02F
+0x9151 = 0xE030
+0x9152 = 0xE031
+0x9153 = 0xE032
+0x9154 = 0xE033
+0x9155 = 0xE034
+0x9156 = 0xE035
+0x9157 = 0xE036
+0x9158 = 0xE037
+0x9159 = 0xE038
+0x915A = 0xE039
+0x915B = 0xE03A
+0x915C = 0xE03B
+0x915D = 0xE03C
+0x915E = 0xE03D
+0x915F = 0xE03E
+0x9160 = 0xE03F
+0x9161 = 0xE040
+0x9162 = 0xE041
+0x9163 = 0xE042
+0x9164 = 0xE043
+0x9165 = 0xE044
+0x9166 = 0xE045
+0x9167 = 0xE046
+0x9168 = 0xE047
+0x9169 = 0xE048
+0x916A = 0xE049
+0x916B = 0xE04A
+0x916C = 0xE04B
+0x916D = 0xE04C
+0x916E = 0xE04D
+0x916F = 0xE04E
+0x9170 = 0xE04F
+0x9171 = 0xE050
+0x9172 = 0xE051
+0x9173 = 0xE052
+0x9174 = 0xE053
+0x9175 = 0xE054
+0x9176 = 0xE055
+0x9177 = 0xE056
+0x9178 = 0xE057
+0x9179 = 0xE058
+0x917A = 0xE059
+0x917B = 0xE05A
+0x9223 = 0xE301
+0x9224 = 0xE302
+0x9225 = 0xE303
+0x9226 = 0xE304
+0x9227 = 0xE305
+0x9228 = 0xE306
+0x9229 = 0xE307
+0x922A = 0xE308
+0x922B = 0xE309
+0x922C = 0xE30A
+0x922D = 0xE30B
+0x922E = 0xE30C
+0x922F = 0xE30D
+0x9230 = 0xE30E
+0x9231 = 0xE30F
+0x9232 = 0xE310
+0x9233 = 0xE311
+0x9234 = 0xE312
+0x9235 = 0xE313
+0x9236 = 0xE314
+0x9237 = 0xE315
+0x9238 = 0xE316
+0x9239 = 0xE317
+0x923A = 0xE318
+0x923B = 0xE319
+0x923C = 0xE31A
+0x923D = 0xE31B
+0x923E = 0xE31C
+0x923F = 0xE31D
+0x9240 = 0xE31E
+0x9241 = 0xE31F
+0x9242 = 0xE320
+0x9243 = 0xE321
+0x9244 = 0xE322
+0x9245 = 0xE323
+0x9246 = 0xE324
+0x9247 = 0xE325
+0x9248 = 0xE326
+0x9249 = 0xE327
+0x924A = 0xE328
+0x924B = 0xE329
+0x924C = 0xE32A
+0x924D = 0xE32B
+0x924E = 0xE32C
+0x924F = 0xE32D
+0x9250 = 0xE32E
+0x9251 = 0xE32F
+0x9252 = 0xE330
+0x9253 = 0xE331
+0x9254 = 0xE332
+0x9255 = 0xE333
+0x9256 = 0xE334
+0x9257 = 0xE335
+0x9258 = 0xE336
+0x9259 = 0xE337
+0x925A = 0xE338
+0x925B = 0xE339
+0x925C = 0xE33A
+0x925D = 0xE33B
+0x925E = 0xE33C
+0x925F = 0xE33D
+0x9260 = 0xE33E
+0x9261 = 0xE33F
+0x9262 = 0xE340
+0x9263 = 0xE341
+0x9264 = 0xE342
+0x9265 = 0xE343
+0x9266 = 0xE344
+0x9267 = 0xE345
+0x9268 = 0xE346
+0x9269 = 0xE347
+0x926A = 0xE348
+0x926B = 0xE349
+0x926C = 0xE34A
+0x926D = 0xE34B
+0x926E = 0xE34C
+0x926F = 0xE34D
+0x9522 = 0xE401
+0x9523 = 0xE402
+0x9524 = 0xE403
+0x9525 = 0xE404
+0x9526 = 0xE405
+0x9527 = 0xE406
+0x9528 = 0xE407
+0x9529 = 0xE408
+0x952A = 0xE409
+0x952B = 0xE40A
+0x952C = 0xE40B
+0x952D = 0xE40C
+0x952E = 0xE40D
+0x952F = 0xE40E
+0x9530 = 0xE40F
+0x9531 = 0xE410
+0x9532 = 0xE411
+0x9533 = 0xE412
+0x9534 = 0xE413
+0x9535 = 0xE414
+0x9536 = 0xE415
+0x9537 = 0xE416
+0x9538 = 0xE417
+0x9539 = 0xE418
+0x953A = 0xE419
+0x953B = 0xE41A
+0x953C = 0xE41B
+0x953D = 0xE41C
+0x953E = 0xE41D
+0x953F = 0xE41E
+0x9540 = 0xE41F
+0x9541 = 0xE420
+0x9542 = 0xE421
+0x9543 = 0xE422
+0x9544 = 0xE423
+0x9545 = 0xE424
+0x9546 = 0xE425
+0x9547 = 0xE426
+0x9548 = 0xE427
+0x9549 = 0xE428
+0x954A = 0xE429
+0x954B = 0xE42A
+0x954C = 0xE42B
+0x954D = 0xE42C
+0x954E = 0xE42D
+0x954F = 0xE42E
+0x9550 = 0xE42F
+0x9551 = 0xE430
+0x9552 = 0xE431
+0x9553 = 0xE432
+0x9554 = 0xE433
+0x9555 = 0xE434
+0x9556 = 0xE435
+0x9557 = 0xE436
+0x9558 = 0xE437
+0x9559 = 0xE438
+0x955A = 0xE439
+0x955B = 0xE43A
+0x955C = 0xE43B
+0x955D = 0xE43C
+0x955E = 0xE43D
+0x955F = 0xE43E
+0x9560 = 0xE43F
+0x9561 = 0xE440
+0x9562 = 0xE441
+0x9563 = 0xE442
+0x9564 = 0xE443
+0x9565 = 0xE444
+0x9566 = 0xE445
+0x9567 = 0xE446
+0x9568 = 0xE447
+0x9569 = 0xE448
+0x956A = 0xE449
+0x956B = 0xE44A
+0x956C = 0xE44B
+0x956D = 0xE44C
+0x9623 = 0xE501
+0x9624 = 0xE502
+0x9625 = 0xE503
+0x9626 = 0xE504
+0x9627 = 0xE505
+0x9628 = 0xE506
+0x9629 = 0xE507
+0x962A = 0xE508
+0x962B = 0xE509
+0x962C = 0xE50A
+0x962D = 0xE50B
+0x962E = 0xE50C
+0x962F = 0xE50D
+0x9630 = 0xE50E
+0x9631 = 0xE50F
+0x9632 = 0xE510
+0x9633 = 0xE511
+0x9634 = 0xE512
+0x9635 = 0xE513
+0x9636 = 0xE514
+0x9637 = 0xE515
+0x9638 = 0xE516
+0x9639 = 0xE517
+0x963A = 0xE518
+0x963B = 0xE519
+0x963C = 0xE51A
+0x963D = 0xE51B
+0x963E = 0xE51C
+0x963F = 0xE51D
+0x9640 = 0xE51E
+0x9641 = 0xE51F
+0x9642 = 0xE520
+0x9643 = 0xE521
+0x9644 = 0xE522
+0x9645 = 0xE523
+0x9646 = 0xE524
+0x9647 = 0xE525
+0x9648 = 0xE526
+0x9649 = 0xE527
+0x964A = 0xE528
+0x964B = 0xE529
+0x964C = 0xE52A
+0x964D = 0xE52B
+0x964E = 0xE52C
+0x964F = 0xE52D
+0x9650 = 0xE52E
+0x9651 = 0xE52F
+0x9652 = 0xE530
+0x9653 = 0xE531
+0x9654 = 0xE532
+0x9655 = 0xE533
+0x9656 = 0xE534
+0x9657 = 0xE535
+0x9658 = 0xE536
+0x9659 = 0xE537
+0x965A = 0xE538
+0x965B = 0xE539
+0x965C = 0xE53A
+0x965D = 0xE53B
+0x965E = 0xE53C
+0x965F = 0xE53D
+0x9660 = 0xE53E
+END_MAP
diff --git a/enc/trans/EMOJI/UCS%EMOJI_ISO-2022-JP-KDDI-UNDOC.src b/enc/trans/EMOJI/UCS%EMOJI_ISO-2022-JP-KDDI-UNDOC.src
new file mode 100644
index 0000000000..562583344c
--- /dev/null
+++ b/enc/trans/EMOJI/UCS%EMOJI_ISO-2022-JP-KDDI-UNDOC.src
@@ -0,0 +1,658 @@
+# DO NOT EDIT THIS FILE DIRECTLY
+
+TYPE ROWCOL
+NAME UCS/EMOJI_ISO-2022-JP-KDDI-UNDOC
+SRC_ZONE 0x21-0x7E / 0x21-0x7E / 8
+OOB_MODE ILSEQ
+DST_ILSEQ 0xFFFE
+DST_UNIT_BITS 16
+
+BEGIN_MAP
+0xEC40 = 0x7921
+0xEC41 = 0x7922
+0xEC42 = 0x7923
+0xEC43 = 0x7924
+0xEC44 = 0x7925
+0xEC45 = 0x7926
+0xEC46 = 0x7927
+0xEC47 = 0x7928
+0xEC48 = 0x7929
+0xEC49 = 0x792A
+0xEC4A = 0x792B
+0xEC4B = 0x792C
+0xEC4C = 0x792D
+0xEC4D = 0x792E
+0xEC4E = 0x792F
+0xEC4F = 0x7930
+0xEC50 = 0x7931
+0xEC51 = 0x7932
+0xEC52 = 0x7933
+0xEC53 = 0x7934
+0xEC54 = 0x7935
+0xEC55 = 0x7936
+0xEC56 = 0x7937
+0xEC57 = 0x7938
+0xEC58 = 0x7939
+0xEC59 = 0x793A
+0xEC5A = 0x793B
+0xEC5B = 0x793C
+0xEC5C = 0x793D
+0xEC5D = 0x793E
+0xEC5E = 0x793F
+0xEC5F = 0x7940
+0xEC60 = 0x7941
+0xEC61 = 0x7942
+0xEC62 = 0x7943
+0xEC63 = 0x7944
+0xEC64 = 0x7945
+0xEC65 = 0x7946
+0xEC66 = 0x7947
+0xEC67 = 0x7948
+0xEC68 = 0x7949
+0xEC69 = 0x794A
+0xEC6A = 0x794B
+0xEC6B = 0x794C
+0xEC6C = 0x794D
+0xEC6D = 0x794E
+0xEC6E = 0x794F
+0xEC6F = 0x7950
+0xEC70 = 0x7951
+0xEC71 = 0x7952
+0xEC72 = 0x7953
+0xEC73 = 0x7954
+0xEC74 = 0x7955
+0xEC75 = 0x7956
+0xEC76 = 0x7957
+0xEC77 = 0x7958
+0xEC78 = 0x7959
+0xEC79 = 0x795A
+0xEC7A = 0x795B
+0xEC7B = 0x795C
+0xEC7C = 0x795D
+0xEC7D = 0x795E
+0xEC7E = 0x795F
+0xEC80 = 0x7960
+0xEC81 = 0x7961
+0xEC82 = 0x7962
+0xEC83 = 0x7963
+0xEC84 = 0x7964
+0xEC85 = 0x7965
+0xEC86 = 0x7966
+0xEC87 = 0x7967
+0xEC88 = 0x7968
+0xEC89 = 0x7969
+0xEC8A = 0x796A
+0xEC8B = 0x796B
+0xEC8C = 0x796C
+0xEC8D = 0x796D
+0xEC8E = 0x796E
+0xEC8F = 0x796F
+0xEC90 = 0x7970
+0xEC91 = 0x7971
+0xEC92 = 0x7972
+0xEC93 = 0x7973
+0xEC94 = 0x7974
+0xEC95 = 0x7975
+0xEC96 = 0x7976
+0xEC97 = 0x7977
+0xEC98 = 0x7978
+0xEC99 = 0x7979
+0xEC9A = 0x797A
+0xEC9B = 0x797B
+0xEC9C = 0x797C
+0xEC9D = 0x797D
+0xEC9E = 0x797E
+0xEC9F = 0x7A21
+0xECA0 = 0x7A22
+0xECA1 = 0x7A23
+0xECA2 = 0x7A24
+0xECA3 = 0x7A25
+0xECA4 = 0x7A26
+0xECA5 = 0x7A27
+0xECA6 = 0x7A28
+0xECA7 = 0x7A29
+0xECA8 = 0x7A2A
+0xECA9 = 0x7A2B
+0xECAA = 0x7A2C
+0xECAB = 0x7A2D
+0xECAC = 0x7A2E
+0xECAD = 0x7A2F
+0xECAE = 0x7A30
+0xECAF = 0x7A31
+0xECB0 = 0x7A32
+0xECB1 = 0x7A33
+0xECB2 = 0x7A34
+0xECB3 = 0x7A35
+0xECB4 = 0x7A36
+0xECB5 = 0x7A37
+0xECB6 = 0x7A38
+0xECB7 = 0x7A39
+0xECB8 = 0x7A3A
+0xECB9 = 0x7A3B
+0xECBA = 0x7A3C
+0xECBB = 0x7A3D
+0xECBC = 0x7A3E
+0xECBD = 0x7A3F
+0xECBE = 0x7A40
+0xECBF = 0x7A41
+0xECC0 = 0x7A42
+0xECC1 = 0x7A43
+0xECC2 = 0x7A44
+0xECC3 = 0x7A45
+0xECC4 = 0x7A46
+0xECC5 = 0x7A47
+0xECC6 = 0x7A48
+0xECC7 = 0x7A49
+0xECC8 = 0x7A4A
+0xECC9 = 0x7A4B
+0xECCA = 0x7A4C
+0xECCB = 0x7A4D
+0xECCC = 0x7A4E
+0xECCD = 0x7A4F
+0xECCE = 0x7A50
+0xECCF = 0x7A51
+0xECD0 = 0x7A52
+0xECD1 = 0x7A53
+0xECD2 = 0x7A54
+0xECD3 = 0x7A55
+0xECD4 = 0x7A56
+0xECD5 = 0x7A57
+0xECD6 = 0x7A58
+0xECD7 = 0x7A59
+0xECD8 = 0x7A5A
+0xECD9 = 0x7A5B
+0xECDA = 0x7A5C
+0xECDB = 0x7A5D
+0xECDC = 0x7A5E
+0xECDD = 0x7A5F
+0xECDE = 0x7A60
+0xECDF = 0x7A61
+0xECE0 = 0x7A62
+0xECE1 = 0x7A63
+0xECE2 = 0x7A64
+0xECE3 = 0x7A65
+0xECE4 = 0x7A66
+0xECE5 = 0x7A67
+0xECE6 = 0x7A68
+0xECE7 = 0x7A69
+0xECE8 = 0x7A6A
+0xECE9 = 0x7A6B
+0xECEA = 0x7A6C
+0xECEB = 0x7A6D
+0xECEC = 0x7A6E
+0xECED = 0x7A6F
+0xECEE = 0x7A70
+0xECEF = 0x7A71
+0xECF0 = 0x7A72
+0xECF1 = 0x7A73
+0xECF2 = 0x7A74
+0xECF3 = 0x7A75
+0xECF4 = 0x7A76
+0xECF5 = 0x7A77
+0xECF6 = 0x7A78
+0xECF7 = 0x7A79
+0xECF8 = 0x7A7A
+0xECF9 = 0x7A7B
+0xECFA = 0x7A7C
+0xECFB = 0x7A7D
+0xECFC = 0x7A7E
+0xED40 = 0x7B21
+0xED41 = 0x7B22
+0xED42 = 0x7B23
+0xED43 = 0x7B24
+0xED44 = 0x7B25
+0xED45 = 0x7B26
+0xED46 = 0x7B27
+0xED47 = 0x7B28
+0xED48 = 0x7B29
+0xED49 = 0x7B2A
+0xED4A = 0x7B2B
+0xED4B = 0x7B2C
+0xED4C = 0x7B2D
+0xED4D = 0x7B2E
+0xED4E = 0x7B2F
+0xED4F = 0x7B30
+0xED50 = 0x7B31
+0xED51 = 0x7B32
+0xED52 = 0x7B33
+0xED53 = 0x7B34
+0xED54 = 0x7B35
+0xED55 = 0x7B36
+0xED56 = 0x7B37
+0xED57 = 0x7B38
+0xED58 = 0x7B39
+0xED59 = 0x7B3A
+0xED5A = 0x7B3B
+0xED5B = 0x7B3C
+0xED5C = 0x7B3D
+0xED5D = 0x7B3E
+0xED5E = 0x7B3F
+0xED5F = 0x7B40
+0xED60 = 0x7B41
+0xED61 = 0x7B42
+0xED62 = 0x7B43
+0xED63 = 0x7B44
+0xED64 = 0x7B45
+0xED65 = 0x7B46
+0xED66 = 0x7B47
+0xED67 = 0x7B48
+0xED68 = 0x7B49
+0xED69 = 0x7B4A
+0xED6A = 0x7B4B
+0xED6B = 0x7B4C
+0xED6C = 0x7B4D
+0xED6D = 0x7B4E
+0xED6E = 0x7B4F
+0xED6F = 0x7B50
+0xED70 = 0x7B51
+0xED71 = 0x7B52
+0xED72 = 0x7B53
+0xED73 = 0x7B54
+0xED74 = 0x7B55
+0xED75 = 0x7B56
+0xED76 = 0x7B57
+0xED77 = 0x7B58
+0xED78 = 0x7B59
+0xED79 = 0x7B5A
+0xED7A = 0x7B5B
+0xED7B = 0x7B5C
+0xED7C = 0x7B5D
+0xED7D = 0x7B5E
+0xED7E = 0x7B5F
+0xED80 = 0x7B60
+0xED81 = 0x7B61
+0xED82 = 0x7B62
+0xED83 = 0x7B63
+0xED84 = 0x7B64
+0xED85 = 0x7B65
+0xED86 = 0x7B66
+0xED87 = 0x7B67
+0xED88 = 0x7B68
+0xED89 = 0x7B69
+0xED8A = 0x7B6A
+0xED8B = 0x7B6B
+0xED8C = 0x7B6C
+0xED8D = 0x7B6D
+0xED8E = 0x7B6E
+0xED8F = 0x7B6F
+0xED90 = 0x7B70
+0xED91 = 0x7B71
+0xED92 = 0x7B72
+0xED93 = 0x7B73
+0xEF40 = 0x7521
+0xEF41 = 0x7522
+0xEF42 = 0x7523
+0xEF43 = 0x7524
+0xEF44 = 0x7525
+0xEF45 = 0x7526
+0xEF46 = 0x7527
+0xEF47 = 0x7528
+0xEF48 = 0x7529
+0xEF49 = 0x752A
+0xEF4A = 0x752B
+0xEF4B = 0x752C
+0xEF4C = 0x752D
+0xEF4D = 0x752E
+0xEF4E = 0x752F
+0xEF4F = 0x7530
+0xEF50 = 0x7531
+0xEF51 = 0x7532
+0xEF52 = 0x7533
+0xEF53 = 0x7534
+0xEF54 = 0x7535
+0xEF55 = 0x7536
+0xEF56 = 0x7537
+0xEF57 = 0x7538
+0xEF58 = 0x7539
+0xEF59 = 0x753A
+0xEF5A = 0x753B
+0xEF5B = 0x753C
+0xEF5C = 0x753D
+0xEF5D = 0x753E
+0xEF5E = 0x753F
+0xEF5F = 0x7540
+0xEF60 = 0x7541
+0xEF61 = 0x7542
+0xEF62 = 0x7543
+0xEF63 = 0x7544
+0xEF64 = 0x7545
+0xEF65 = 0x7546
+0xEF66 = 0x7547
+0xEF67 = 0x7548
+0xEF68 = 0x7549
+0xEF69 = 0x754A
+0xEF6A = 0x754B
+0xEF6B = 0x754C
+0xEF6C = 0x754D
+0xEF6D = 0x754E
+0xEF6E = 0x754F
+0xEF6F = 0x7550
+0xEF70 = 0x7551
+0xEF71 = 0x7552
+0xEF72 = 0x7553
+0xEF73 = 0x7554
+0xEF74 = 0x7555
+0xEF75 = 0x7556
+0xEF76 = 0x7557
+0xEF77 = 0x7558
+0xEF78 = 0x7559
+0xEF79 = 0x755A
+0xEF7A = 0x755B
+0xEF7B = 0x755C
+0xEF7C = 0x755D
+0xEF7D = 0x755E
+0xEF7E = 0x755F
+0xEF80 = 0x7560
+0xEF81 = 0x7561
+0xEF82 = 0x7562
+0xEF83 = 0x7563
+0xEF84 = 0x7564
+0xEF85 = 0x7565
+0xEF86 = 0x7566
+0xEF87 = 0x7567
+0xEF88 = 0x7568
+0xEF89 = 0x7569
+0xEF8A = 0x756A
+0xEF8B = 0x756B
+0xEF8C = 0x756C
+0xEF8D = 0x756D
+0xEF8E = 0x756E
+0xEF8F = 0x756F
+0xEF90 = 0x7570
+0xEF91 = 0x7571
+0xEF92 = 0x7572
+0xEF93 = 0x7573
+0xEF94 = 0x7574
+0xEF95 = 0x7575
+0xEF96 = 0x7576
+0xEF97 = 0x7577
+0xEF98 = 0x7578
+0xEF99 = 0x7579
+0xEF9A = 0x757A
+0xEF9B = 0x757B
+0xEF9C = 0x757C
+0xEF9D = 0x757D
+0xEF9E = 0x757E
+0xEF9F = 0x7621
+0xEFA0 = 0x7622
+0xEFA1 = 0x7623
+0xEFA2 = 0x7624
+0xEFA3 = 0x7625
+0xEFA4 = 0x7626
+0xEFA5 = 0x7627
+0xEFA6 = 0x7628
+0xEFA7 = 0x7629
+0xEFA8 = 0x762A
+0xEFA9 = 0x762B
+0xEFAA = 0x762C
+0xEFAB = 0x762D
+0xEFAC = 0x762E
+0xEFAD = 0x762F
+0xEFAE = 0x7630
+0xEFAF = 0x7631
+0xEFB0 = 0x7632
+0xEFB1 = 0x7633
+0xEFB2 = 0x7634
+0xEFB3 = 0x7635
+0xEFB4 = 0x7636
+0xEFB5 = 0x7637
+0xEFB6 = 0x7638
+0xEFB7 = 0x7639
+0xEFB8 = 0x763A
+0xEFB9 = 0x763B
+0xEFBA = 0x763C
+0xEFBB = 0x763D
+0xEFBC = 0x763E
+0xEFBD = 0x763F
+0xEFBE = 0x7640
+0xEFBF = 0x7641
+0xEFC0 = 0x7642
+0xEFC1 = 0x7643
+0xEFC2 = 0x7644
+0xEFC3 = 0x7645
+0xEFC4 = 0x7646
+0xEFC5 = 0x7647
+0xEFC6 = 0x7648
+0xEFC7 = 0x7649
+0xEFC8 = 0x764A
+0xEFC9 = 0x764B
+0xEFCA = 0x764C
+0xEFCB = 0x764D
+0xEFCC = 0x764E
+0xEFCD = 0x764F
+0xEFCE = 0x7650
+0xEFCF = 0x7651
+0xEFD0 = 0x7652
+0xEFD1 = 0x7653
+0xEFD2 = 0x7654
+0xEFD3 = 0x7655
+0xEFD4 = 0x7656
+0xEFD5 = 0x7657
+0xEFD6 = 0x7658
+0xEFD7 = 0x7659
+0xEFD8 = 0x765A
+0xEFD9 = 0x765B
+0xEFDA = 0x765C
+0xEFDB = 0x765D
+0xEFDC = 0x765E
+0xEFDD = 0x765F
+0xEFDE = 0x7660
+0xEFDF = 0x7661
+0xEFE0 = 0x7662
+0xEFE1 = 0x7663
+0xEFE2 = 0x7664
+0xEFE3 = 0x7665
+0xEFE4 = 0x7666
+0xEFE5 = 0x7667
+0xEFE6 = 0x7668
+0xEFE7 = 0x7669
+0xEFE8 = 0x766A
+0xEFE9 = 0x766B
+0xEFEA = 0x766C
+0xEFEB = 0x766D
+0xEFEC = 0x766E
+0xEFED = 0x766F
+0xEFEE = 0x7670
+0xEFEF = 0x7671
+0xEFF0 = 0x7672
+0xEFF1 = 0x7673
+0xEFF2 = 0x7674
+0xEFF3 = 0x7675
+0xEFF4 = 0x7676
+0xEFF5 = 0x7677
+0xEFF6 = 0x7678
+0xEFF7 = 0x7679
+0xEFF8 = 0x767A
+0xEFF9 = 0x767B
+0xEFFA = 0x767C
+0xEFFB = 0x767D
+0xEFFC = 0x767E
+0xF040 = 0x7721
+0xF041 = 0x7722
+0xF042 = 0x7723
+0xF043 = 0x7724
+0xF044 = 0x7725
+0xF045 = 0x7726
+0xF046 = 0x7727
+0xF047 = 0x7728
+0xF048 = 0x7729
+0xF049 = 0x772A
+0xF04A = 0x772B
+0xF04B = 0x772C
+0xF04C = 0x772D
+0xF04D = 0x772E
+0xF04E = 0x772F
+0xF04F = 0x7730
+0xF050 = 0x7731
+0xF051 = 0x7732
+0xF052 = 0x7733
+0xF053 = 0x7734
+0xF054 = 0x7735
+0xF055 = 0x7736
+0xF056 = 0x7737
+0xF057 = 0x7738
+0xF058 = 0x7739
+0xF059 = 0x773A
+0xF05A = 0x773B
+0xF05B = 0x773C
+0xF05C = 0x773D
+0xF05D = 0x773E
+0xF05E = 0x773F
+0xF05F = 0x7740
+0xF060 = 0x7741
+0xF061 = 0x7742
+0xF062 = 0x7743
+0xF063 = 0x7744
+0xF064 = 0x7745
+0xF065 = 0x7746
+0xF066 = 0x7747
+0xF067 = 0x7748
+0xF068 = 0x7749
+0xF069 = 0x774A
+0xF06A = 0x774B
+0xF06B = 0x774C
+0xF06C = 0x774D
+0xF06D = 0x774E
+0xF06E = 0x774F
+0xF06F = 0x7750
+0xF070 = 0x7751
+0xF071 = 0x7752
+0xF072 = 0x7753
+0xF073 = 0x7754
+0xF074 = 0x7755
+0xF075 = 0x7756
+0xF076 = 0x7757
+0xF077 = 0x7758
+0xF078 = 0x7759
+0xF079 = 0x775A
+0xF07A = 0x775B
+0xF07B = 0x775C
+0xF07C = 0x775D
+0xF07D = 0x775E
+0xF07E = 0x775F
+0xF080 = 0x7760
+0xF081 = 0x7761
+0xF082 = 0x7762
+0xF083 = 0x7763
+0xF084 = 0x7764
+0xF085 = 0x7765
+0xF086 = 0x7766
+0xF087 = 0x7767
+0xF088 = 0x7768
+0xF089 = 0x7769
+0xF08A = 0x776A
+0xF08B = 0x776B
+0xF08C = 0x776C
+0xF08D = 0x776D
+0xF08E = 0x776E
+0xF08F = 0x776F
+0xF090 = 0x7770
+0xF091 = 0x7771
+0xF092 = 0x7772
+0xF093 = 0x7773
+0xF094 = 0x7774
+0xF095 = 0x7775
+0xF096 = 0x7776
+0xF097 = 0x7777
+0xF098 = 0x7778
+0xF099 = 0x7779
+0xF09A = 0x777A
+0xF09B = 0x777B
+0xF09C = 0x777C
+0xF09D = 0x777D
+0xF09E = 0x777E
+0xF09F = 0x7821
+0xF0A0 = 0x7822
+0xF0A1 = 0x7823
+0xF0A2 = 0x7824
+0xF0A3 = 0x7825
+0xF0A4 = 0x7826
+0xF0A5 = 0x7827
+0xF0A6 = 0x7828
+0xF0A7 = 0x7829
+0xF0A8 = 0x782A
+0xF0A9 = 0x782B
+0xF0AA = 0x782C
+0xF0AB = 0x782D
+0xF0AC = 0x782E
+0xF0AD = 0x782F
+0xF0AE = 0x7830
+0xF0AF = 0x7831
+0xF0B0 = 0x7832
+0xF0B1 = 0x7833
+0xF0B2 = 0x7834
+0xF0B3 = 0x7835
+0xF0B4 = 0x7836
+0xF0B5 = 0x7837
+0xF0B6 = 0x7838
+0xF0B7 = 0x7839
+0xF0B8 = 0x783A
+0xF0B9 = 0x783B
+0xF0BA = 0x783C
+0xF0BB = 0x783D
+0xF0BC = 0x783E
+0xF0BD = 0x783F
+0xF0BE = 0x7840
+0xF0BF = 0x7841
+0xF0C0 = 0x7842
+0xF0C1 = 0x7843
+0xF0C2 = 0x7844
+0xF0C3 = 0x7845
+0xF0C4 = 0x7846
+0xF0C5 = 0x7847
+0xF0C6 = 0x7848
+0xF0C7 = 0x7849
+0xF0C8 = 0x784A
+0xF0C9 = 0x784B
+0xF0CA = 0x784C
+0xF0CB = 0x784D
+0xF0CC = 0x784E
+0xF0CD = 0x784F
+0xF0CE = 0x7850
+0xF0CF = 0x7851
+0xF0D0 = 0x7852
+0xF0D1 = 0x7853
+0xF0D2 = 0x7854
+0xF0D3 = 0x7855
+0xF0D4 = 0x7856
+0xF0D5 = 0x7857
+0xF0D6 = 0x7858
+0xF0D7 = 0x7859
+0xF0D8 = 0x785A
+0xF0D9 = 0x785B
+0xF0DA = 0x785C
+0xF0DB = 0x785D
+0xF0DC = 0x785E
+0xF0DD = 0x785F
+0xF0DE = 0x7860
+0xF0DF = 0x7861
+0xF0E0 = 0x7862
+0xF0E1 = 0x7863
+0xF0E2 = 0x7864
+0xF0E3 = 0x7865
+0xF0E4 = 0x7866
+0xF0E5 = 0x7867
+0xF0E6 = 0x7868
+0xF0E7 = 0x7869
+0xF0E8 = 0x786A
+0xF0E9 = 0x786B
+0xF0EA = 0x786C
+0xF0EB = 0x786D
+0xF0EC = 0x786E
+0xF0ED = 0x786F
+0xF0EE = 0x7870
+0xF0EF = 0x7871
+0xF0F0 = 0x7872
+0xF0F1 = 0x7873
+0xF0F2 = 0x7874
+0xF0F3 = 0x7875
+0xF0F4 = 0x7876
+0xF0F5 = 0x7877
+0xF0F6 = 0x7878
+0xF0F7 = 0x7879
+0xF0F8 = 0x787A
+0xF0F9 = 0x787B
+0xF0FA = 0x787C
+0xF0FB = 0x787D
+0xF0FC = 0x787E
+END_MAP
diff --git a/enc/trans/EMOJI/UCS%EMOJI_ISO-2022-JP-KDDI.src b/enc/trans/EMOJI/UCS%EMOJI_ISO-2022-JP-KDDI.src
new file mode 100644
index 0000000000..0ee6180a7b
--- /dev/null
+++ b/enc/trans/EMOJI/UCS%EMOJI_ISO-2022-JP-KDDI.src
@@ -0,0 +1,658 @@
+# DO NOT EDIT THIS FILE DIRECTLY
+
+TYPE ROWCOL
+NAME UCS/EMOJI_ISO-2022-JP-KDDI
+SRC_ZONE 0x21-0x7E / 0x21-0x7E / 8
+OOB_MODE ILSEQ
+DST_ILSEQ 0xFFFE
+DST_UNIT_BITS 16
+
+BEGIN_MAP
+0xE468 = 0x7521
+0xE469 = 0x7522
+0xE46A = 0x7523
+0xE46B = 0x7524
+0xE46C = 0x7525
+0xE46D = 0x7526
+0xE46E = 0x7527
+0xE46F = 0x7528
+0xE470 = 0x7529
+0xE471 = 0x752A
+0xE472 = 0x752B
+0xE473 = 0x752C
+0xE474 = 0x752D
+0xE475 = 0x752E
+0xE476 = 0x752F
+0xE477 = 0x7530
+0xE478 = 0x7531
+0xE479 = 0x7532
+0xE47A = 0x7533
+0xE47B = 0x7534
+0xE47C = 0x7535
+0xE47D = 0x7536
+0xE47E = 0x7537
+0xE47F = 0x7538
+0xE480 = 0x7539
+0xE481 = 0x753A
+0xE482 = 0x753B
+0xE483 = 0x753C
+0xE484 = 0x753D
+0xE485 = 0x753E
+0xE486 = 0x753F
+0xE487 = 0x7540
+0xE488 = 0x7541
+0xE489 = 0x7542
+0xE48A = 0x7543
+0xE48B = 0x7544
+0xE48C = 0x7545
+0xE48D = 0x7546
+0xE48E = 0x7547
+0xE48F = 0x7548
+0xE490 = 0x7549
+0xE491 = 0x754A
+0xE492 = 0x754B
+0xE493 = 0x754C
+0xE494 = 0x754D
+0xE495 = 0x754E
+0xE496 = 0x754F
+0xE497 = 0x7550
+0xE498 = 0x7551
+0xE499 = 0x7552
+0xE49A = 0x7553
+0xE49B = 0x7554
+0xE49C = 0x7555
+0xE49D = 0x7556
+0xE49E = 0x7557
+0xE49F = 0x7558
+0xE4A0 = 0x7559
+0xE4A1 = 0x755A
+0xE4A2 = 0x755B
+0xE4A3 = 0x755C
+0xE4A4 = 0x755D
+0xE4A5 = 0x755E
+0xE4A6 = 0x755F
+0xE4A7 = 0x7560
+0xE4A8 = 0x7561
+0xE4A9 = 0x7562
+0xE4AA = 0x7563
+0xE4AB = 0x7564
+0xE4AC = 0x7565
+0xE4AD = 0x7566
+0xE4AE = 0x7567
+0xE4AF = 0x7568
+0xE4B0 = 0x7569
+0xE4B1 = 0x756A
+0xE4B2 = 0x756B
+0xE4B3 = 0x756C
+0xE4B4 = 0x756D
+0xE4B5 = 0x756E
+0xE4B6 = 0x756F
+0xE4B7 = 0x7570
+0xE4B8 = 0x7571
+0xE4B9 = 0x7572
+0xE4BA = 0x7573
+0xE4BB = 0x7574
+0xE4BC = 0x7575
+0xE4BD = 0x7576
+0xE4BE = 0x7577
+0xE4BF = 0x7578
+0xE4C0 = 0x7579
+0xE4C1 = 0x757A
+0xE4C2 = 0x757B
+0xE4C3 = 0x757C
+0xE4C4 = 0x757D
+0xE4C5 = 0x757E
+0xE4C6 = 0x7621
+0xE4C7 = 0x7622
+0xE4C8 = 0x7623
+0xE4C9 = 0x7624
+0xE4CA = 0x7625
+0xE4CB = 0x7626
+0xE4CC = 0x7627
+0xE4CD = 0x7628
+0xE4CE = 0x7629
+0xE4CF = 0x762A
+0xE4D0 = 0x762B
+0xE4D1 = 0x762C
+0xE4D2 = 0x762D
+0xE4D3 = 0x762E
+0xE4D4 = 0x762F
+0xE4D5 = 0x7630
+0xE4D6 = 0x7631
+0xE4D7 = 0x7632
+0xE4D8 = 0x7633
+0xE4D9 = 0x7634
+0xE4DA = 0x7635
+0xE4DB = 0x7636
+0xE4DC = 0x7637
+0xE4DD = 0x7638
+0xE4DE = 0x7639
+0xE4DF = 0x763A
+0xE4E0 = 0x763B
+0xE4E1 = 0x763C
+0xE4E2 = 0x763D
+0xE4E3 = 0x763E
+0xE4E4 = 0x763F
+0xE4E5 = 0x7640
+0xE4E6 = 0x7641
+0xE4E7 = 0x7642
+0xE4E8 = 0x7643
+0xE4E9 = 0x7644
+0xE4EA = 0x7645
+0xE4EB = 0x7646
+0xE4EC = 0x7647
+0xE4ED = 0x7648
+0xE4EE = 0x7649
+0xE4EF = 0x764A
+0xE4F0 = 0x764B
+0xE4F1 = 0x764C
+0xE4F2 = 0x764D
+0xE4F3 = 0x764E
+0xE4F4 = 0x764F
+0xE4F5 = 0x7650
+0xE4F6 = 0x7651
+0xE4F7 = 0x7652
+0xE4F8 = 0x7653
+0xE4F9 = 0x7654
+0xE4FA = 0x7655
+0xE4FB = 0x7656
+0xE4FC = 0x7657
+0xE4FD = 0x7658
+0xE4FE = 0x7659
+0xE4FF = 0x765A
+0xE500 = 0x765B
+0xE501 = 0x765C
+0xE502 = 0x765D
+0xE503 = 0x765E
+0xE504 = 0x765F
+0xE505 = 0x7660
+0xE506 = 0x7661
+0xE507 = 0x7662
+0xE508 = 0x7663
+0xE509 = 0x7664
+0xE50A = 0x7665
+0xE50B = 0x7666
+0xE50C = 0x7667
+0xE50D = 0x7668
+0xE50E = 0x7669
+0xE50F = 0x766A
+0xE510 = 0x766B
+0xE511 = 0x766C
+0xE512 = 0x766D
+0xE513 = 0x766E
+0xE514 = 0x766F
+0xE515 = 0x7670
+0xE516 = 0x7671
+0xE517 = 0x7672
+0xE518 = 0x7673
+0xE519 = 0x7674
+0xE51A = 0x7675
+0xE51B = 0x7676
+0xE51C = 0x7677
+0xE51D = 0x7678
+0xE51E = 0x7679
+0xE51F = 0x767A
+0xE520 = 0x767B
+0xE521 = 0x767C
+0xE522 = 0x767D
+0xE523 = 0x767E
+0xE524 = 0x7721
+0xE525 = 0x7722
+0xE526 = 0x7723
+0xE527 = 0x7724
+0xE528 = 0x7725
+0xE529 = 0x7726
+0xE52A = 0x7727
+0xE52B = 0x7728
+0xE52C = 0x7729
+0xE52D = 0x772A
+0xE52E = 0x772B
+0xE52F = 0x772C
+0xE530 = 0x772D
+0xE531 = 0x772E
+0xE532 = 0x772F
+0xE533 = 0x7730
+0xE534 = 0x7731
+0xE535 = 0x7732
+0xE536 = 0x7733
+0xE537 = 0x7734
+0xE538 = 0x7735
+0xE539 = 0x7736
+0xE53A = 0x7737
+0xE53B = 0x7738
+0xE53C = 0x7739
+0xE53D = 0x773A
+0xE53E = 0x773B
+0xE53F = 0x773C
+0xE540 = 0x773D
+0xE541 = 0x773E
+0xE542 = 0x773F
+0xE543 = 0x7740
+0xE544 = 0x7741
+0xE545 = 0x7742
+0xE546 = 0x7743
+0xE547 = 0x7744
+0xE548 = 0x7745
+0xE549 = 0x7746
+0xE54A = 0x7747
+0xE54B = 0x7748
+0xE54C = 0x7749
+0xE54D = 0x774A
+0xE54E = 0x774B
+0xE54F = 0x774C
+0xE550 = 0x774D
+0xE551 = 0x774E
+0xE552 = 0x774F
+0xE553 = 0x7750
+0xE554 = 0x7751
+0xE555 = 0x7752
+0xE556 = 0x7753
+0xE557 = 0x7754
+0xE558 = 0x7755
+0xE559 = 0x7756
+0xE55A = 0x7757
+0xE55B = 0x7758
+0xE55C = 0x7759
+0xE55D = 0x775A
+0xE55E = 0x775B
+0xE55F = 0x775C
+0xE560 = 0x775D
+0xE561 = 0x775E
+0xE562 = 0x775F
+0xE563 = 0x7760
+0xE564 = 0x7761
+0xE565 = 0x7762
+0xE566 = 0x7763
+0xE567 = 0x7764
+0xE568 = 0x7765
+0xE569 = 0x7766
+0xE56A = 0x7767
+0xE56B = 0x7768
+0xE56C = 0x7769
+0xE56D = 0x776A
+0xE56E = 0x776B
+0xE56F = 0x776C
+0xE570 = 0x776D
+0xE571 = 0x776E
+0xE572 = 0x776F
+0xE573 = 0x7770
+0xE574 = 0x7771
+0xE575 = 0x7772
+0xE576 = 0x7773
+0xE577 = 0x7774
+0xE578 = 0x7775
+0xE579 = 0x7776
+0xE57A = 0x7777
+0xE57B = 0x7778
+0xE57C = 0x7779
+0xE57D = 0x777A
+0xE57E = 0x777B
+0xE57F = 0x777C
+0xE580 = 0x777D
+0xE581 = 0x777E
+0xE582 = 0x7821
+0xE583 = 0x7822
+0xE584 = 0x7823
+0xE585 = 0x7824
+0xE586 = 0x7825
+0xE587 = 0x7826
+0xE588 = 0x7827
+0xE589 = 0x7828
+0xE58A = 0x7829
+0xE58B = 0x782A
+0xE58C = 0x782B
+0xE58D = 0x782C
+0xE58E = 0x782D
+0xE58F = 0x782E
+0xE590 = 0x782F
+0xE591 = 0x7830
+0xE592 = 0x7831
+0xE593 = 0x7832
+0xE594 = 0x7833
+0xE595 = 0x7834
+0xE596 = 0x7835
+0xE597 = 0x7836
+0xE598 = 0x7837
+0xE599 = 0x7838
+0xE59A = 0x7839
+0xE59B = 0x783A
+0xE59C = 0x783B
+0xE59D = 0x783C
+0xE59E = 0x783D
+0xE59F = 0x783E
+0xE5A0 = 0x783F
+0xE5A1 = 0x7840
+0xE5A2 = 0x7841
+0xE5A3 = 0x7842
+0xE5A4 = 0x7843
+0xE5A5 = 0x7844
+0xE5A6 = 0x7845
+0xE5A7 = 0x7846
+0xE5A8 = 0x7847
+0xE5A9 = 0x7848
+0xE5AA = 0x7849
+0xE5AB = 0x784A
+0xE5AC = 0x784B
+0xE5AD = 0x784C
+0xE5AE = 0x784D
+0xE5AF = 0x784E
+0xE5B0 = 0x784F
+0xE5B1 = 0x7850
+0xE5B2 = 0x7851
+0xE5B3 = 0x7852
+0xE5B4 = 0x7853
+0xE5B5 = 0x7867
+0xE5B6 = 0x7868
+0xE5B7 = 0x7869
+0xE5B8 = 0x786A
+0xE5B9 = 0x786B
+0xE5BA = 0x786C
+0xE5BB = 0x786D
+0xE5BC = 0x786E
+0xE5BD = 0x786F
+0xE5BE = 0x7870
+0xE5BF = 0x7871
+0xE5C0 = 0x7872
+0xE5C1 = 0x7873
+0xE5C2 = 0x7874
+0xE5C3 = 0x7875
+0xE5C4 = 0x7876
+0xE5C5 = 0x7877
+0xE5C6 = 0x7878
+0xE5C7 = 0x7879
+0xE5C8 = 0x787A
+0xE5C9 = 0x787B
+0xE5CA = 0x787C
+0xE5CB = 0x787D
+0xE5CC = 0x787E
+0xE5CD = 0x7921
+0xE5CE = 0x7922
+0xE5CF = 0x7923
+0xE5D0 = 0x7924
+0xE5D1 = 0x7925
+0xE5D2 = 0x7926
+0xE5D3 = 0x7927
+0xE5D4 = 0x7928
+0xE5D5 = 0x7929
+0xE5D6 = 0x792A
+0xE5D7 = 0x792B
+0xE5D8 = 0x792C
+0xE5D9 = 0x792D
+0xE5DA = 0x792E
+0xE5DB = 0x792F
+0xE5DC = 0x7930
+0xE5DD = 0x7931
+0xE5DE = 0x7932
+0xE5DF = 0x7933
+0xEA80 = 0x7934
+0xEA81 = 0x7935
+0xEA82 = 0x7936
+0xEA83 = 0x7937
+0xEA84 = 0x7938
+0xEA85 = 0x7939
+0xEA86 = 0x793A
+0xEA87 = 0x793B
+0xEA88 = 0x793C
+0xEA89 = 0x793D
+0xEA8A = 0x793E
+0xEA8B = 0x793F
+0xEA8C = 0x7940
+0xEA8D = 0x7941
+0xEA8E = 0x7942
+0xEA8F = 0x7943
+0xEA90 = 0x7944
+0xEA91 = 0x7945
+0xEA92 = 0x7946
+0xEA93 = 0x7947
+0xEA94 = 0x7948
+0xEA95 = 0x7949
+0xEA96 = 0x794A
+0xEA97 = 0x794B
+0xEA98 = 0x794C
+0xEA99 = 0x794D
+0xEA9A = 0x794E
+0xEA9B = 0x794F
+0xEA9C = 0x7950
+0xEA9D = 0x7951
+0xEA9E = 0x7952
+0xEA9F = 0x7953
+0xEAA0 = 0x7954
+0xEAA1 = 0x7955
+0xEAA2 = 0x7956
+0xEAA3 = 0x7957
+0xEAA4 = 0x7958
+0xEAA5 = 0x7959
+0xEAA6 = 0x795A
+0xEAA7 = 0x795B
+0xEAA8 = 0x795C
+0xEAA9 = 0x795D
+0xEAAA = 0x795E
+0xEAAB = 0x795F
+0xEAAC = 0x7960
+0xEAAD = 0x7961
+0xEAAE = 0x7962
+0xEAAF = 0x7963
+0xEAB0 = 0x7964
+0xEAB1 = 0x7965
+0xEAB2 = 0x7966
+0xEAB3 = 0x7967
+0xEAB4 = 0x7968
+0xEAB5 = 0x7969
+0xEAB6 = 0x796A
+0xEAB7 = 0x796B
+0xEAB8 = 0x796C
+0xEAB9 = 0x796D
+0xEABA = 0x796E
+0xEABB = 0x796F
+0xEABC = 0x7970
+0xEABD = 0x7971
+0xEABE = 0x7972
+0xEABF = 0x7973
+0xEAC0 = 0x7974
+0xEAC1 = 0x7975
+0xEAC2 = 0x7976
+0xEAC3 = 0x7977
+0xEAC4 = 0x7978
+0xEAC5 = 0x7979
+0xEAC6 = 0x797A
+0xEAC7 = 0x797B
+0xEAC8 = 0x797C
+0xEAC9 = 0x797D
+0xEACA = 0x797E
+0xEACB = 0x7A21
+0xEACC = 0x7A22
+0xEACD = 0x7A23
+0xEACE = 0x7A24
+0xEACF = 0x7A25
+0xEAD0 = 0x7A26
+0xEAD1 = 0x7A27
+0xEAD2 = 0x7A28
+0xEAD3 = 0x7A29
+0xEAD4 = 0x7A2A
+0xEAD5 = 0x7A2B
+0xEAD6 = 0x7A2C
+0xEAD7 = 0x7A2D
+0xEAD8 = 0x7A2E
+0xEAD9 = 0x7A2F
+0xEADA = 0x7A30
+0xEADB = 0x7A31
+0xEADC = 0x7A32
+0xEADD = 0x7A33
+0xEADE = 0x7A34
+0xEADF = 0x7A35
+0xEAE0 = 0x7A36
+0xEAE1 = 0x7A37
+0xEAE2 = 0x7A38
+0xEAE3 = 0x7A39
+0xEAE4 = 0x7A3A
+0xEAE5 = 0x7A3B
+0xEAE6 = 0x7A3C
+0xEAE7 = 0x7A3D
+0xEAE8 = 0x7A3E
+0xEAE9 = 0x7A3F
+0xEAEA = 0x7A40
+0xEAEB = 0x7A41
+0xEAEC = 0x7A42
+0xEAED = 0x7A43
+0xEAEE = 0x7A44
+0xEAEF = 0x7A45
+0xEAF0 = 0x7A46
+0xEAF1 = 0x7A47
+0xEAF2 = 0x7A48
+0xEAF3 = 0x7A49
+0xEAF4 = 0x7A4A
+0xEAF5 = 0x7A4B
+0xEAF6 = 0x7A4C
+0xEAF7 = 0x7A4D
+0xEAF8 = 0x7A4E
+0xEAF9 = 0x7A4F
+0xEAFA = 0x7A50
+0xEAFB = 0x7854
+0xEAFC = 0x7855
+0xEAFD = 0x7856
+0xEAFE = 0x7857
+0xEAFF = 0x7858
+0xEB00 = 0x7859
+0xEB01 = 0x785A
+0xEB02 = 0x785B
+0xEB03 = 0x785C
+0xEB04 = 0x785D
+0xEB05 = 0x785E
+0xEB06 = 0x785F
+0xEB07 = 0x7860
+0xEB08 = 0x7861
+0xEB09 = 0x7862
+0xEB0A = 0x7863
+0xEB0B = 0x7864
+0xEB0C = 0x7865
+0xEB0D = 0x7866
+0xEB0E = 0x7A51
+0xEB0F = 0x7A52
+0xEB10 = 0x7A53
+0xEB11 = 0x7A54
+0xEB12 = 0x7A55
+0xEB13 = 0x7A56
+0xEB14 = 0x7A57
+0xEB15 = 0x7A58
+0xEB16 = 0x7A59
+0xEB17 = 0x7A5A
+0xEB18 = 0x7A5B
+0xEB19 = 0x7A5C
+0xEB1A = 0x7A5D
+0xEB1B = 0x7A5E
+0xEB1C = 0x7A5F
+0xEB1D = 0x7A60
+0xEB1E = 0x7A61
+0xEB1F = 0x7A62
+0xEB20 = 0x7A63
+0xEB21 = 0x7A64
+0xEB22 = 0x7A65
+0xEB23 = 0x7A66
+0xEB24 = 0x7A67
+0xEB25 = 0x7A68
+0xEB26 = 0x7A69
+0xEB27 = 0x7A6A
+0xEB28 = 0x7A6B
+0xEB29 = 0x7A6C
+0xEB2A = 0x7A6D
+0xEB2B = 0x7A6E
+0xEB2C = 0x7A6F
+0xEB2D = 0x7A70
+0xEB2E = 0x7A71
+0xEB2F = 0x7A72
+0xEB30 = 0x7A73
+0xEB31 = 0x7A74
+0xEB32 = 0x7A75
+0xEB33 = 0x7A76
+0xEB34 = 0x7A77
+0xEB35 = 0x7A78
+0xEB36 = 0x7A79
+0xEB37 = 0x7A7A
+0xEB38 = 0x7A7B
+0xEB39 = 0x7A7C
+0xEB3A = 0x7A7D
+0xEB3B = 0x7A7E
+0xEB3C = 0x7B21
+0xEB3D = 0x7B22
+0xEB3E = 0x7B23
+0xEB3F = 0x7B24
+0xEB40 = 0x7B25
+0xEB41 = 0x7B26
+0xEB42 = 0x7B27
+0xEB43 = 0x7B28
+0xEB44 = 0x7B29
+0xEB45 = 0x7B2A
+0xEB46 = 0x7B2B
+0xEB47 = 0x7B2C
+0xEB48 = 0x7B2D
+0xEB49 = 0x7B2E
+0xEB4A = 0x7B2F
+0xEB4B = 0x7B30
+0xEB4C = 0x7B31
+0xEB4D = 0x7B32
+0xEB4E = 0x7B33
+0xEB4F = 0x7B34
+0xEB50 = 0x7B35
+0xEB51 = 0x7B36
+0xEB52 = 0x7B37
+0xEB53 = 0x7B38
+0xEB54 = 0x7B39
+0xEB55 = 0x7B3A
+0xEB56 = 0x7B3B
+0xEB57 = 0x7B3C
+0xEB58 = 0x7B3D
+0xEB59 = 0x7B3E
+0xEB5A = 0x7B3F
+0xEB5B = 0x7B40
+0xEB5C = 0x7B41
+0xEB5D = 0x7B42
+0xEB5E = 0x7B43
+0xEB5F = 0x7B44
+0xEB60 = 0x7B45
+0xEB61 = 0x7B46
+0xEB62 = 0x7B47
+0xEB63 = 0x7B48
+0xEB64 = 0x7B49
+0xEB65 = 0x7B4A
+0xEB66 = 0x7B4B
+0xEB67 = 0x7B4C
+0xEB68 = 0x7B4D
+0xEB69 = 0x7B4E
+0xEB6A = 0x7B4F
+0xEB6B = 0x7B50
+0xEB6C = 0x7B51
+0xEB6D = 0x7B52
+0xEB6E = 0x7B53
+0xEB6F = 0x7B54
+0xEB70 = 0x7B55
+0xEB71 = 0x7B56
+0xEB72 = 0x7B57
+0xEB73 = 0x7B58
+0xEB74 = 0x7B59
+0xEB75 = 0x7B5A
+0xEB76 = 0x7B5B
+0xEB77 = 0x7B5C
+0xEB78 = 0x7B5D
+0xEB79 = 0x7B5E
+0xEB7A = 0x7B5F
+0xEB7B = 0x7B60
+0xEB7C = 0x7B61
+0xEB7D = 0x7B62
+0xEB7E = 0x7B63
+0xEB7F = 0x7B64
+0xEB80 = 0x7B65
+0xEB81 = 0x7B66
+0xEB82 = 0x7B67
+0xEB83 = 0x7B68
+0xEB84 = 0x7B69
+0xEB85 = 0x7B6A
+0xEB86 = 0x7B6B
+0xEB87 = 0x7B6C
+0xEB88 = 0x7B6D
+0xEB89 = 0x7B6E
+0xEB8A = 0x7B6F
+0xEB8B = 0x7B70
+0xEB8C = 0x7B71
+0xEB8D = 0x7B72
+0xEB8E = 0x7B73
+END_MAP
diff --git a/enc/trans/EMOJI/UCS%EMOJI_SHIFT_JIS-DOCOMO.src b/enc/trans/EMOJI/UCS%EMOJI_SHIFT_JIS-DOCOMO.src
new file mode 100644
index 0000000000..9983962c5f
--- /dev/null
+++ b/enc/trans/EMOJI/UCS%EMOJI_SHIFT_JIS-DOCOMO.src
@@ -0,0 +1,293 @@
+# DO NOT EDIT THIS FILE DIRECTLY
+
+TYPE ROWCOL
+NAME UCS/EMOJI_SHIFT_JIS-DOCOMO
+SRC_ZONE 0xF8-0xFC / 0x40-0xFC / 8
+OOB_MODE ILSEQ
+DST_ILSEQ 0xFFFE
+DST_UNIT_BITS 16
+
+BEGIN_MAP
+0xE63E = 0x9021
+0xE63F = 0x9022
+0xE640 = 0x9023
+0xE641 = 0x9024
+0xE642 = 0x9025
+0xE643 = 0x9026
+0xE644 = 0x9027
+0xE645 = 0x9028
+0xE646 = 0x9029
+0xE647 = 0x902A
+0xE648 = 0x902B
+0xE649 = 0x902C
+0xE64A = 0x902D
+0xE64B = 0x902E
+0xE64C = 0x902F
+0xE64D = 0x9030
+0xE64E = 0x9031
+0xE64F = 0x9032
+0xE650 = 0x9033
+0xE651 = 0x9034
+0xE652 = 0x9035
+0xE653 = 0x9036
+0xE654 = 0x9037
+0xE655 = 0x9038
+0xE656 = 0x9039
+0xE657 = 0x903A
+0xE658 = 0x903B
+0xE659 = 0x903C
+0xE65A = 0x903D
+0xE65B = 0x903E
+0xE65C = 0x903F
+0xE65D = 0x9040
+0xE65E = 0x9041
+0xE65F = 0x9042
+0xE660 = 0x9043
+0xE661 = 0x9044
+0xE662 = 0x9045
+0xE663 = 0x9046
+0xE664 = 0x9047
+0xE665 = 0x9048
+0xE666 = 0x9049
+0xE667 = 0x904A
+0xE668 = 0x904B
+0xE669 = 0x904C
+0xE66A = 0x904D
+0xE66B = 0x904E
+0xE66C = 0x904F
+0xE66D = 0x9050
+0xE66E = 0x9051
+0xE66F = 0x9052
+0xE670 = 0x9053
+0xE671 = 0x9054
+0xE672 = 0x9055
+0xE673 = 0x9056
+0xE674 = 0x9057
+0xE675 = 0x9058
+0xE676 = 0x9059
+0xE677 = 0x905A
+0xE678 = 0x905B
+0xE679 = 0x905C
+0xE67A = 0x905D
+0xE67B = 0x905E
+0xE67C = 0x905F
+0xE67D = 0x9060
+0xE67E = 0x9061
+0xE67F = 0x9062
+0xE680 = 0x9063
+0xE681 = 0x9064
+0xE682 = 0x9065
+0xE683 = 0x9066
+0xE684 = 0x9067
+0xE685 = 0x9068
+0xE686 = 0x9069
+0xE687 = 0x906A
+0xE688 = 0x906B
+0xE689 = 0x906C
+0xE68A = 0x906D
+0xE68B = 0x906E
+0xE68C = 0x906F
+0xE68D = 0x9070
+0xE68E = 0x9071
+0xE68F = 0x9072
+0xE690 = 0x9073
+0xE691 = 0x9074
+0xE692 = 0x9075
+0xE693 = 0x9076
+0xE694 = 0x9077
+0xE695 = 0x9078
+0xE696 = 0x9079
+0xE697 = 0x907A
+0xE698 = 0x907B
+0xE699 = 0x907C
+0xE69A = 0x907D
+0xE69B = 0x907E
+0xE69C = 0x9121
+0xE69D = 0x9122
+0xE69E = 0x9123
+0xE69F = 0x9124
+0xE6A0 = 0x9125
+0xE6A1 = 0x9126
+0xE6A2 = 0x9127
+0xE6A3 = 0x9128
+0xE6A4 = 0x9129
+0xE6A5 = 0x912A
+0xE6A6 = 0x912B
+0xE6A7 = 0x912C
+0xE6A8 = 0x912D
+0xE6A9 = 0x912E
+0xE6AA = 0x912F
+0xE6AB = 0x9130
+0xE6AC = 0x9131
+0xE6AD = 0x9132
+0xE6AE = 0x9133
+0xE6AF = 0x9134
+0xE6B0 = 0x9135
+0xE6B1 = 0x9136
+0xE6B2 = 0x9137
+0xE6B3 = 0x9138
+0xE6B4 = 0x9139
+0xE6B5 = 0x913A
+0xE6B6 = 0x913B
+0xE6B7 = 0x913C
+0xE6B8 = 0x913D
+0xE6B9 = 0x913E
+0xE6BA = 0x913F
+0xE6BB = 0x9140
+0xE6BC = 0x9141
+0xE6BD = 0x9142
+0xE6BE = 0x9143
+0xE6BF = 0x9144
+0xE6C0 = 0x9145
+0xE6C1 = 0x9146
+0xE6C2 = 0x9147
+0xE6C3 = 0x9148
+0xE6C4 = 0x9149
+0xE6C5 = 0x914A
+0xE6C6 = 0x914B
+0xE6C7 = 0x914C
+0xE6C8 = 0x914D
+0xE6C9 = 0x914E
+0xE6CA = 0x914F
+0xE6CB = 0x9150
+0xE6CC = 0x9151
+0xE6CD = 0x9152
+0xE6CE = 0x9153
+0xE6CF = 0x9154
+0xE6D0 = 0x9155
+0xE6D1 = 0x9156
+0xE6D2 = 0x9157
+0xE6D3 = 0x9158
+0xE6D4 = 0x9159
+0xE6D5 = 0x915A
+0xE6D6 = 0x915B
+0xE6D7 = 0x915C
+0xE6D8 = 0x915D
+0xE6D9 = 0x915E
+0xE6DA = 0x915F
+0xE6DB = 0x9160
+0xE6DC = 0x9161
+0xE6DD = 0x9162
+0xE6DE = 0x9163
+0xE6DF = 0x9164
+0xE6E0 = 0x9165
+0xE6E1 = 0x9166
+0xE6E2 = 0x9167
+0xE6E3 = 0x9168
+0xE6E4 = 0x9169
+0xE6E5 = 0x916A
+0xE6E6 = 0x916B
+0xE6E7 = 0x916C
+0xE6E8 = 0x916D
+0xE6E9 = 0x916E
+0xE6EA = 0x916F
+0xE6EB = 0x9170
+0xE6EC = 0x9171
+0xE6ED = 0x9172
+0xE6EE = 0x9173
+0xE6EF = 0x9174
+0xE6F0 = 0x9175
+0xE6F1 = 0x9176
+0xE6F2 = 0x9177
+0xE6F3 = 0x9178
+0xE6F4 = 0x9179
+0xE6F5 = 0x917A
+0xE6F6 = 0x917B
+0xE6F7 = 0x917C
+0xE6F8 = 0x917D
+0xE6F9 = 0x917E
+0xE6FA = 0x9221
+0xE6FB = 0x9222
+0xE6FC = 0x9223
+0xE6FD = 0x9224
+0xE6FE = 0x9225
+0xE6FF = 0x9226
+0xE700 = 0x9227
+0xE701 = 0x9228
+0xE702 = 0x9229
+0xE703 = 0x922A
+0xE704 = 0x922B
+0xE705 = 0x922C
+0xE706 = 0x922D
+0xE707 = 0x922E
+0xE708 = 0x922F
+0xE709 = 0x9230
+0xE70A = 0x9231
+0xE70B = 0x9232
+0xE70C = 0x9233
+0xE70D = 0x9234
+0xE70E = 0x9235
+0xE70F = 0x9236
+0xE710 = 0x9237
+0xE711 = 0x9238
+0xE712 = 0x9239
+0xE713 = 0x923A
+0xE714 = 0x923B
+0xE715 = 0x923C
+0xE716 = 0x923D
+0xE717 = 0x923E
+0xE718 = 0x923F
+0xE719 = 0x9240
+0xE71A = 0x9241
+0xE71B = 0x9242
+0xE71C = 0x9243
+0xE71D = 0x9244
+0xE71E = 0x9245
+0xE71F = 0x9246
+0xE720 = 0x9247
+0xE721 = 0x9248
+0xE722 = 0x9249
+0xE723 = 0x924A
+0xE724 = 0x924B
+0xE725 = 0x924C
+0xE726 = 0x924D
+0xE727 = 0x924E
+0xE728 = 0x924F
+0xE729 = 0x9250
+0xE72A = 0x9251
+0xE72B = 0x9252
+0xE72C = 0x9253
+0xE72D = 0x9254
+0xE72E = 0x9255
+0xE72F = 0x9256
+0xE730 = 0x9257
+0xE731 = 0x9258
+0xE732 = 0x9259
+0xE733 = 0x925A
+0xE734 = 0x925B
+0xE735 = 0x925C
+0xE736 = 0x925D
+0xE737 = 0x925E
+0xE738 = 0x925F
+0xE739 = 0x9260
+0xE73A = 0x9261
+0xE73B = 0x9262
+0xE73C = 0x9263
+0xE73D = 0x9264
+0xE73E = 0x9265
+0xE73F = 0x9266
+0xE740 = 0x9267
+0xE741 = 0x9268
+0xE742 = 0x9269
+0xE743 = 0x926A
+0xE744 = 0x926B
+0xE745 = 0x926C
+0xE746 = 0x926D
+0xE747 = 0x926E
+0xE748 = 0x926F
+0xE749 = 0x9270
+0xE74A = 0x9271
+0xE74B = 0x9272
+0xE74C = 0x9273
+0xE74D = 0x9274
+0xE74E = 0x9275
+0xE74F = 0x9276
+0xE750 = 0x9277
+0xE751 = 0x9278
+0xE752 = 0x9279
+0xE753 = 0x927A
+0xE754 = 0x927B
+0xE755 = 0x927C
+0xE756 = 0x927D
+0xE757 = 0x927E
+END_MAP
diff --git a/enc/trans/EMOJI/UCS%EMOJI_SHIFT_JIS-KDDI-UNDOC.src b/enc/trans/EMOJI/UCS%EMOJI_SHIFT_JIS-KDDI-UNDOC.src
new file mode 100644
index 0000000000..3de41a5912
--- /dev/null
+++ b/enc/trans/EMOJI/UCS%EMOJI_SHIFT_JIS-KDDI-UNDOC.src
@@ -0,0 +1,658 @@
+# DO NOT EDIT THIS FILE DIRECTLY
+
+TYPE ROWCOL
+NAME UCS/EMOJI_SHIFT_JIS-KDDI-UNDOC
+SRC_ZONE 0xF3-0xFC / 0x40-0xFC / 8
+OOB_MODE ILSEQ
+DST_ILSEQ 0xFFFE
+DST_UNIT_BITS 16
+
+BEGIN_MAP
+0xEC40 = 0x8521
+0xEC41 = 0x8522
+0xEC42 = 0x8523
+0xEC43 = 0x8524
+0xEC44 = 0x8525
+0xEC45 = 0x8526
+0xEC46 = 0x8527
+0xEC47 = 0x8528
+0xEC48 = 0x8529
+0xEC49 = 0x852A
+0xEC4A = 0x852B
+0xEC4B = 0x852C
+0xEC4C = 0x852D
+0xEC4D = 0x852E
+0xEC4E = 0x852F
+0xEC4F = 0x8530
+0xEC50 = 0x8531
+0xEC51 = 0x8532
+0xEC52 = 0x8533
+0xEC53 = 0x8534
+0xEC54 = 0x8535
+0xEC55 = 0x8536
+0xEC56 = 0x8537
+0xEC57 = 0x8538
+0xEC58 = 0x8539
+0xEC59 = 0x853A
+0xEC5A = 0x853B
+0xEC5B = 0x853C
+0xEC5C = 0x853D
+0xEC5D = 0x853E
+0xEC5E = 0x853F
+0xEC5F = 0x8540
+0xEC60 = 0x8541
+0xEC61 = 0x8542
+0xEC62 = 0x8543
+0xEC63 = 0x8544
+0xEC64 = 0x8545
+0xEC65 = 0x8546
+0xEC66 = 0x8547
+0xEC67 = 0x8548
+0xEC68 = 0x8549
+0xEC69 = 0x854A
+0xEC6A = 0x854B
+0xEC6B = 0x854C
+0xEC6C = 0x854D
+0xEC6D = 0x854E
+0xEC6E = 0x854F
+0xEC6F = 0x8550
+0xEC70 = 0x8551
+0xEC71 = 0x8552
+0xEC72 = 0x8553
+0xEC73 = 0x8554
+0xEC74 = 0x8555
+0xEC75 = 0x8556
+0xEC76 = 0x8557
+0xEC77 = 0x8558
+0xEC78 = 0x8559
+0xEC79 = 0x855A
+0xEC7A = 0x855B
+0xEC7B = 0x855C
+0xEC7C = 0x855D
+0xEC7D = 0x855E
+0xEC7E = 0x855F
+0xEC80 = 0x8560
+0xEC81 = 0x8561
+0xEC82 = 0x8562
+0xEC83 = 0x8563
+0xEC84 = 0x8564
+0xEC85 = 0x8565
+0xEC86 = 0x8566
+0xEC87 = 0x8567
+0xEC88 = 0x8568
+0xEC89 = 0x8569
+0xEC8A = 0x856A
+0xEC8B = 0x856B
+0xEC8C = 0x856C
+0xEC8D = 0x856D
+0xEC8E = 0x856E
+0xEC8F = 0x856F
+0xEC90 = 0x8570
+0xEC91 = 0x8571
+0xEC92 = 0x8572
+0xEC93 = 0x8573
+0xEC94 = 0x8574
+0xEC95 = 0x8575
+0xEC96 = 0x8576
+0xEC97 = 0x8577
+0xEC98 = 0x8578
+0xEC99 = 0x8579
+0xEC9A = 0x857A
+0xEC9B = 0x857B
+0xEC9C = 0x857C
+0xEC9D = 0x857D
+0xEC9E = 0x857E
+0xEC9F = 0x8621
+0xECA0 = 0x8622
+0xECA1 = 0x8623
+0xECA2 = 0x8624
+0xECA3 = 0x8625
+0xECA4 = 0x8626
+0xECA5 = 0x8627
+0xECA6 = 0x8628
+0xECA7 = 0x8629
+0xECA8 = 0x862A
+0xECA9 = 0x862B
+0xECAA = 0x862C
+0xECAB = 0x862D
+0xECAC = 0x862E
+0xECAD = 0x862F
+0xECAE = 0x8630
+0xECAF = 0x8631
+0xECB0 = 0x8632
+0xECB1 = 0x8633
+0xECB2 = 0x8634
+0xECB3 = 0x8635
+0xECB4 = 0x8636
+0xECB5 = 0x8637
+0xECB6 = 0x8638
+0xECB7 = 0x8639
+0xECB8 = 0x863A
+0xECB9 = 0x863B
+0xECBA = 0x863C
+0xECBB = 0x863D
+0xECBC = 0x863E
+0xECBD = 0x863F
+0xECBE = 0x8640
+0xECBF = 0x8641
+0xECC0 = 0x8642
+0xECC1 = 0x8643
+0xECC2 = 0x8644
+0xECC3 = 0x8645
+0xECC4 = 0x8646
+0xECC5 = 0x8647
+0xECC6 = 0x8648
+0xECC7 = 0x8649
+0xECC8 = 0x864A
+0xECC9 = 0x864B
+0xECCA = 0x864C
+0xECCB = 0x864D
+0xECCC = 0x864E
+0xECCD = 0x864F
+0xECCE = 0x8650
+0xECCF = 0x8651
+0xECD0 = 0x8652
+0xECD1 = 0x8653
+0xECD2 = 0x8654
+0xECD3 = 0x8655
+0xECD4 = 0x8656
+0xECD5 = 0x8657
+0xECD6 = 0x8658
+0xECD7 = 0x8659
+0xECD8 = 0x865A
+0xECD9 = 0x865B
+0xECDA = 0x865C
+0xECDB = 0x865D
+0xECDC = 0x865E
+0xECDD = 0x865F
+0xECDE = 0x8660
+0xECDF = 0x8661
+0xECE0 = 0x8662
+0xECE1 = 0x8663
+0xECE2 = 0x8664
+0xECE3 = 0x8665
+0xECE4 = 0x8666
+0xECE5 = 0x8667
+0xECE6 = 0x8668
+0xECE7 = 0x8669
+0xECE8 = 0x866A
+0xECE9 = 0x866B
+0xECEA = 0x866C
+0xECEB = 0x866D
+0xECEC = 0x866E
+0xECED = 0x866F
+0xECEE = 0x8670
+0xECEF = 0x8671
+0xECF0 = 0x8672
+0xECF1 = 0x8673
+0xECF2 = 0x8674
+0xECF3 = 0x8675
+0xECF4 = 0x8676
+0xECF5 = 0x8677
+0xECF6 = 0x8678
+0xECF7 = 0x8679
+0xECF8 = 0x867A
+0xECF9 = 0x867B
+0xECFA = 0x867C
+0xECFB = 0x867D
+0xECFC = 0x867E
+0xED40 = 0x8721
+0xED41 = 0x8722
+0xED42 = 0x8723
+0xED43 = 0x8724
+0xED44 = 0x8725
+0xED45 = 0x8726
+0xED46 = 0x8727
+0xED47 = 0x8728
+0xED48 = 0x8729
+0xED49 = 0x872A
+0xED4A = 0x872B
+0xED4B = 0x872C
+0xED4C = 0x872D
+0xED4D = 0x872E
+0xED4E = 0x872F
+0xED4F = 0x8730
+0xED50 = 0x8731
+0xED51 = 0x8732
+0xED52 = 0x8733
+0xED53 = 0x8734
+0xED54 = 0x8735
+0xED55 = 0x8736
+0xED56 = 0x8737
+0xED57 = 0x8738
+0xED58 = 0x8739
+0xED59 = 0x873A
+0xED5A = 0x873B
+0xED5B = 0x873C
+0xED5C = 0x873D
+0xED5D = 0x873E
+0xED5E = 0x873F
+0xED5F = 0x8740
+0xED60 = 0x8741
+0xED61 = 0x8742
+0xED62 = 0x8743
+0xED63 = 0x8744
+0xED64 = 0x8745
+0xED65 = 0x8746
+0xED66 = 0x8747
+0xED67 = 0x8748
+0xED68 = 0x8749
+0xED69 = 0x874A
+0xED6A = 0x874B
+0xED6B = 0x874C
+0xED6C = 0x874D
+0xED6D = 0x874E
+0xED6E = 0x874F
+0xED6F = 0x8750
+0xED70 = 0x8751
+0xED71 = 0x8752
+0xED72 = 0x8753
+0xED73 = 0x8754
+0xED74 = 0x8755
+0xED75 = 0x8756
+0xED76 = 0x8757
+0xED77 = 0x8758
+0xED78 = 0x8759
+0xED79 = 0x875A
+0xED7A = 0x875B
+0xED7B = 0x875C
+0xED7C = 0x875D
+0xED7D = 0x875E
+0xED7E = 0x875F
+0xED80 = 0x8760
+0xED81 = 0x8761
+0xED82 = 0x8762
+0xED83 = 0x8763
+0xED84 = 0x8764
+0xED85 = 0x8765
+0xED86 = 0x8766
+0xED87 = 0x8767
+0xED88 = 0x8768
+0xED89 = 0x8769
+0xED8A = 0x876A
+0xED8B = 0x876B
+0xED8C = 0x876C
+0xED8D = 0x876D
+0xED8E = 0x876E
+0xED8F = 0x876F
+0xED90 = 0x8770
+0xED91 = 0x8771
+0xED92 = 0x8772
+0xED93 = 0x8773
+0xEF40 = 0x8B21
+0xEF41 = 0x8B22
+0xEF42 = 0x8B23
+0xEF43 = 0x8B24
+0xEF44 = 0x8B25
+0xEF45 = 0x8B26
+0xEF46 = 0x8B27
+0xEF47 = 0x8B28
+0xEF48 = 0x8B29
+0xEF49 = 0x8B2A
+0xEF4A = 0x8B2B
+0xEF4B = 0x8B2C
+0xEF4C = 0x8B2D
+0xEF4D = 0x8B2E
+0xEF4E = 0x8B2F
+0xEF4F = 0x8B30
+0xEF50 = 0x8B31
+0xEF51 = 0x8B32
+0xEF52 = 0x8B33
+0xEF53 = 0x8B34
+0xEF54 = 0x8B35
+0xEF55 = 0x8B36
+0xEF56 = 0x8B37
+0xEF57 = 0x8B38
+0xEF58 = 0x8B39
+0xEF59 = 0x8B3A
+0xEF5A = 0x8B3B
+0xEF5B = 0x8B3C
+0xEF5C = 0x8B3D
+0xEF5D = 0x8B3E
+0xEF5E = 0x8B3F
+0xEF5F = 0x8B40
+0xEF60 = 0x8B41
+0xEF61 = 0x8B42
+0xEF62 = 0x8B43
+0xEF63 = 0x8B44
+0xEF64 = 0x8B45
+0xEF65 = 0x8B46
+0xEF66 = 0x8B47
+0xEF67 = 0x8B48
+0xEF68 = 0x8B49
+0xEF69 = 0x8B4A
+0xEF6A = 0x8B4B
+0xEF6B = 0x8B4C
+0xEF6C = 0x8B4D
+0xEF6D = 0x8B4E
+0xEF6E = 0x8B4F
+0xEF6F = 0x8B50
+0xEF70 = 0x8B51
+0xEF71 = 0x8B52
+0xEF72 = 0x8B53
+0xEF73 = 0x8B54
+0xEF74 = 0x8B55
+0xEF75 = 0x8B56
+0xEF76 = 0x8B57
+0xEF77 = 0x8B58
+0xEF78 = 0x8B59
+0xEF79 = 0x8B5A
+0xEF7A = 0x8B5B
+0xEF7B = 0x8B5C
+0xEF7C = 0x8B5D
+0xEF7D = 0x8B5E
+0xEF7E = 0x8B5F
+0xEF80 = 0x8B60
+0xEF81 = 0x8B61
+0xEF82 = 0x8B62
+0xEF83 = 0x8B63
+0xEF84 = 0x8B64
+0xEF85 = 0x8B65
+0xEF86 = 0x8B66
+0xEF87 = 0x8B67
+0xEF88 = 0x8B68
+0xEF89 = 0x8B69
+0xEF8A = 0x8B6A
+0xEF8B = 0x8B6B
+0xEF8C = 0x8B6C
+0xEF8D = 0x8B6D
+0xEF8E = 0x8B6E
+0xEF8F = 0x8B6F
+0xEF90 = 0x8B70
+0xEF91 = 0x8B71
+0xEF92 = 0x8B72
+0xEF93 = 0x8B73
+0xEF94 = 0x8B74
+0xEF95 = 0x8B75
+0xEF96 = 0x8B76
+0xEF97 = 0x8B77
+0xEF98 = 0x8B78
+0xEF99 = 0x8B79
+0xEF9A = 0x8B7A
+0xEF9B = 0x8B7B
+0xEF9C = 0x8B7C
+0xEF9D = 0x8B7D
+0xEF9E = 0x8B7E
+0xEF9F = 0x8C21
+0xEFA0 = 0x8C22
+0xEFA1 = 0x8C23
+0xEFA2 = 0x8C24
+0xEFA3 = 0x8C25
+0xEFA4 = 0x8C26
+0xEFA5 = 0x8C27
+0xEFA6 = 0x8C28
+0xEFA7 = 0x8C29
+0xEFA8 = 0x8C2A
+0xEFA9 = 0x8C2B
+0xEFAA = 0x8C2C
+0xEFAB = 0x8C2D
+0xEFAC = 0x8C2E
+0xEFAD = 0x8C2F
+0xEFAE = 0x8C30
+0xEFAF = 0x8C31
+0xEFB0 = 0x8C32
+0xEFB1 = 0x8C33
+0xEFB2 = 0x8C34
+0xEFB3 = 0x8C35
+0xEFB4 = 0x8C36
+0xEFB5 = 0x8C37
+0xEFB6 = 0x8C38
+0xEFB7 = 0x8C39
+0xEFB8 = 0x8C3A
+0xEFB9 = 0x8C3B
+0xEFBA = 0x8C3C
+0xEFBB = 0x8C3D
+0xEFBC = 0x8C3E
+0xEFBD = 0x8C3F
+0xEFBE = 0x8C40
+0xEFBF = 0x8C41
+0xEFC0 = 0x8C42
+0xEFC1 = 0x8C43
+0xEFC2 = 0x8C44
+0xEFC3 = 0x8C45
+0xEFC4 = 0x8C46
+0xEFC5 = 0x8C47
+0xEFC6 = 0x8C48
+0xEFC7 = 0x8C49
+0xEFC8 = 0x8C4A
+0xEFC9 = 0x8C4B
+0xEFCA = 0x8C4C
+0xEFCB = 0x8C4D
+0xEFCC = 0x8C4E
+0xEFCD = 0x8C4F
+0xEFCE = 0x8C50
+0xEFCF = 0x8C51
+0xEFD0 = 0x8C52
+0xEFD1 = 0x8C53
+0xEFD2 = 0x8C54
+0xEFD3 = 0x8C55
+0xEFD4 = 0x8C56
+0xEFD5 = 0x8C57
+0xEFD6 = 0x8C58
+0xEFD7 = 0x8C59
+0xEFD8 = 0x8C5A
+0xEFD9 = 0x8C5B
+0xEFDA = 0x8C5C
+0xEFDB = 0x8C5D
+0xEFDC = 0x8C5E
+0xEFDD = 0x8C5F
+0xEFDE = 0x8C60
+0xEFDF = 0x8C61
+0xEFE0 = 0x8C62
+0xEFE1 = 0x8C63
+0xEFE2 = 0x8C64
+0xEFE3 = 0x8C65
+0xEFE4 = 0x8C66
+0xEFE5 = 0x8C67
+0xEFE6 = 0x8C68
+0xEFE7 = 0x8C69
+0xEFE8 = 0x8C6A
+0xEFE9 = 0x8C6B
+0xEFEA = 0x8C6C
+0xEFEB = 0x8C6D
+0xEFEC = 0x8C6E
+0xEFED = 0x8C6F
+0xEFEE = 0x8C70
+0xEFEF = 0x8C71
+0xEFF0 = 0x8C72
+0xEFF1 = 0x8C73
+0xEFF2 = 0x8C74
+0xEFF3 = 0x8C75
+0xEFF4 = 0x8C76
+0xEFF5 = 0x8C77
+0xEFF6 = 0x8C78
+0xEFF7 = 0x8C79
+0xEFF8 = 0x8C7A
+0xEFF9 = 0x8C7B
+0xEFFA = 0x8C7C
+0xEFFB = 0x8C7D
+0xEFFC = 0x8C7E
+0xF040 = 0x8D21
+0xF041 = 0x8D22
+0xF042 = 0x8D23
+0xF043 = 0x8D24
+0xF044 = 0x8D25
+0xF045 = 0x8D26
+0xF046 = 0x8D27
+0xF047 = 0x8D28
+0xF048 = 0x8D29
+0xF049 = 0x8D2A
+0xF04A = 0x8D2B
+0xF04B = 0x8D2C
+0xF04C = 0x8D2D
+0xF04D = 0x8D2E
+0xF04E = 0x8D2F
+0xF04F = 0x8D30
+0xF050 = 0x8D31
+0xF051 = 0x8D32
+0xF052 = 0x8D33
+0xF053 = 0x8D34
+0xF054 = 0x8D35
+0xF055 = 0x8D36
+0xF056 = 0x8D37
+0xF057 = 0x8D38
+0xF058 = 0x8D39
+0xF059 = 0x8D3A
+0xF05A = 0x8D3B
+0xF05B = 0x8D3C
+0xF05C = 0x8D3D
+0xF05D = 0x8D3E
+0xF05E = 0x8D3F
+0xF05F = 0x8D40
+0xF060 = 0x8D41
+0xF061 = 0x8D42
+0xF062 = 0x8D43
+0xF063 = 0x8D44
+0xF064 = 0x8D45
+0xF065 = 0x8D46
+0xF066 = 0x8D47
+0xF067 = 0x8D48
+0xF068 = 0x8D49
+0xF069 = 0x8D4A
+0xF06A = 0x8D4B
+0xF06B = 0x8D4C
+0xF06C = 0x8D4D
+0xF06D = 0x8D4E
+0xF06E = 0x8D4F
+0xF06F = 0x8D50
+0xF070 = 0x8D51
+0xF071 = 0x8D52
+0xF072 = 0x8D53
+0xF073 = 0x8D54
+0xF074 = 0x8D55
+0xF075 = 0x8D56
+0xF076 = 0x8D57
+0xF077 = 0x8D58
+0xF078 = 0x8D59
+0xF079 = 0x8D5A
+0xF07A = 0x8D5B
+0xF07B = 0x8D5C
+0xF07C = 0x8D5D
+0xF07D = 0x8D5E
+0xF07E = 0x8D5F
+0xF080 = 0x8D60
+0xF081 = 0x8D61
+0xF082 = 0x8D62
+0xF083 = 0x8D63
+0xF084 = 0x8D64
+0xF085 = 0x8D65
+0xF086 = 0x8D66
+0xF087 = 0x8D67
+0xF088 = 0x8D68
+0xF089 = 0x8D69
+0xF08A = 0x8D6A
+0xF08B = 0x8D6B
+0xF08C = 0x8D6C
+0xF08D = 0x8D6D
+0xF08E = 0x8D6E
+0xF08F = 0x8D6F
+0xF090 = 0x8D70
+0xF091 = 0x8D71
+0xF092 = 0x8D72
+0xF093 = 0x8D73
+0xF094 = 0x8D74
+0xF095 = 0x8D75
+0xF096 = 0x8D76
+0xF097 = 0x8D77
+0xF098 = 0x8D78
+0xF099 = 0x8D79
+0xF09A = 0x8D7A
+0xF09B = 0x8D7B
+0xF09C = 0x8D7C
+0xF09D = 0x8D7D
+0xF09E = 0x8D7E
+0xF09F = 0x8E21
+0xF0A0 = 0x8E22
+0xF0A1 = 0x8E23
+0xF0A2 = 0x8E24
+0xF0A3 = 0x8E25
+0xF0A4 = 0x8E26
+0xF0A5 = 0x8E27
+0xF0A6 = 0x8E28
+0xF0A7 = 0x8E29
+0xF0A8 = 0x8E2A
+0xF0A9 = 0x8E2B
+0xF0AA = 0x8E2C
+0xF0AB = 0x8E2D
+0xF0AC = 0x8E2E
+0xF0AD = 0x8E2F
+0xF0AE = 0x8E30
+0xF0AF = 0x8E31
+0xF0B0 = 0x8E32
+0xF0B1 = 0x8E33
+0xF0B2 = 0x8E34
+0xF0B3 = 0x8E35
+0xF0B4 = 0x8E36
+0xF0B5 = 0x8E37
+0xF0B6 = 0x8E38
+0xF0B7 = 0x8E39
+0xF0B8 = 0x8E3A
+0xF0B9 = 0x8E3B
+0xF0BA = 0x8E3C
+0xF0BB = 0x8E3D
+0xF0BC = 0x8E3E
+0xF0BD = 0x8E3F
+0xF0BE = 0x8E40
+0xF0BF = 0x8E41
+0xF0C0 = 0x8E42
+0xF0C1 = 0x8E43
+0xF0C2 = 0x8E44
+0xF0C3 = 0x8E45
+0xF0C4 = 0x8E46
+0xF0C5 = 0x8E47
+0xF0C6 = 0x8E48
+0xF0C7 = 0x8E49
+0xF0C8 = 0x8E4A
+0xF0C9 = 0x8E4B
+0xF0CA = 0x8E4C
+0xF0CB = 0x8E4D
+0xF0CC = 0x8E4E
+0xF0CD = 0x8E4F
+0xF0CE = 0x8E50
+0xF0CF = 0x8E51
+0xF0D0 = 0x8E52
+0xF0D1 = 0x8E53
+0xF0D2 = 0x8E54
+0xF0D3 = 0x8E55
+0xF0D4 = 0x8E56
+0xF0D5 = 0x8E57
+0xF0D6 = 0x8E58
+0xF0D7 = 0x8E59
+0xF0D8 = 0x8E5A
+0xF0D9 = 0x8E5B
+0xF0DA = 0x8E5C
+0xF0DB = 0x8E5D
+0xF0DC = 0x8E5E
+0xF0DD = 0x8E5F
+0xF0DE = 0x8E60
+0xF0DF = 0x8E61
+0xF0E0 = 0x8E62
+0xF0E1 = 0x8E63
+0xF0E2 = 0x8E64
+0xF0E3 = 0x8E65
+0xF0E4 = 0x8E66
+0xF0E5 = 0x8E67
+0xF0E6 = 0x8E68
+0xF0E7 = 0x8E69
+0xF0E8 = 0x8E6A
+0xF0E9 = 0x8E6B
+0xF0EA = 0x8E6C
+0xF0EB = 0x8E6D
+0xF0EC = 0x8E6E
+0xF0ED = 0x8E6F
+0xF0EE = 0x8E70
+0xF0EF = 0x8E71
+0xF0F0 = 0x8E72
+0xF0F1 = 0x8E73
+0xF0F2 = 0x8E74
+0xF0F3 = 0x8E75
+0xF0F4 = 0x8E76
+0xF0F5 = 0x8E77
+0xF0F6 = 0x8E78
+0xF0F7 = 0x8E79
+0xF0F8 = 0x8E7A
+0xF0F9 = 0x8E7B
+0xF0FA = 0x8E7C
+0xF0FB = 0x8E7D
+0xF0FC = 0x8E7E
+END_MAP
diff --git a/enc/trans/EMOJI/UCS%EMOJI_SHIFT_JIS-KDDI.src b/enc/trans/EMOJI/UCS%EMOJI_SHIFT_JIS-KDDI.src
new file mode 100644
index 0000000000..5dd1e0f17e
--- /dev/null
+++ b/enc/trans/EMOJI/UCS%EMOJI_SHIFT_JIS-KDDI.src
@@ -0,0 +1,658 @@
+# DO NOT EDIT THIS FILE DIRECTLY
+
+TYPE ROWCOL
+NAME UCS/EMOJI_SHIFT_JIS-KDDI
+SRC_ZONE 0xF3-0xFC / 0x40-0xFC / 8
+OOB_MODE ILSEQ
+DST_ILSEQ 0xFFFE
+DST_UNIT_BITS 16
+
+BEGIN_MAP
+0xE468 = 0x8B21
+0xE469 = 0x8B22
+0xE46A = 0x8B23
+0xE46B = 0x8B24
+0xE46C = 0x8B25
+0xE46D = 0x8B26
+0xE46E = 0x8B27
+0xE46F = 0x8B28
+0xE470 = 0x8B29
+0xE471 = 0x8B2A
+0xE472 = 0x8B2B
+0xE473 = 0x8B2C
+0xE474 = 0x8B2D
+0xE475 = 0x8B2E
+0xE476 = 0x8B2F
+0xE477 = 0x8B30
+0xE478 = 0x8B31
+0xE479 = 0x8B32
+0xE47A = 0x8B33
+0xE47B = 0x8B34
+0xE47C = 0x8B35
+0xE47D = 0x8B36
+0xE47E = 0x8B37
+0xE47F = 0x8B38
+0xE480 = 0x8B39
+0xE481 = 0x8B3A
+0xE482 = 0x8B3B
+0xE483 = 0x8B3C
+0xE484 = 0x8B3D
+0xE485 = 0x8B3E
+0xE486 = 0x8B3F
+0xE487 = 0x8B40
+0xE488 = 0x8B41
+0xE489 = 0x8B42
+0xE48A = 0x8B43
+0xE48B = 0x8B44
+0xE48C = 0x8B45
+0xE48D = 0x8B46
+0xE48E = 0x8B47
+0xE48F = 0x8B48
+0xE490 = 0x8B49
+0xE491 = 0x8B4A
+0xE492 = 0x8B4B
+0xE493 = 0x8B4C
+0xE494 = 0x8B4D
+0xE495 = 0x8B4E
+0xE496 = 0x8B4F
+0xE497 = 0x8B50
+0xE498 = 0x8B51
+0xE499 = 0x8B52
+0xE49A = 0x8B53
+0xE49B = 0x8B54
+0xE49C = 0x8B55
+0xE49D = 0x8B56
+0xE49E = 0x8B57
+0xE49F = 0x8B58
+0xE4A0 = 0x8B59
+0xE4A1 = 0x8B5A
+0xE4A2 = 0x8B5B
+0xE4A3 = 0x8B5C
+0xE4A4 = 0x8B5D
+0xE4A5 = 0x8B5E
+0xE4A6 = 0x8B5F
+0xE4A7 = 0x8B60
+0xE4A8 = 0x8B61
+0xE4A9 = 0x8B62
+0xE4AA = 0x8B63
+0xE4AB = 0x8B64
+0xE4AC = 0x8B65
+0xE4AD = 0x8B66
+0xE4AE = 0x8B67
+0xE4AF = 0x8B68
+0xE4B0 = 0x8B69
+0xE4B1 = 0x8B6A
+0xE4B2 = 0x8B6B
+0xE4B3 = 0x8B6C
+0xE4B4 = 0x8B6D
+0xE4B5 = 0x8B6E
+0xE4B6 = 0x8B6F
+0xE4B7 = 0x8B70
+0xE4B8 = 0x8B71
+0xE4B9 = 0x8B72
+0xE4BA = 0x8B73
+0xE4BB = 0x8B74
+0xE4BC = 0x8B75
+0xE4BD = 0x8B76
+0xE4BE = 0x8B77
+0xE4BF = 0x8B78
+0xE4C0 = 0x8B79
+0xE4C1 = 0x8B7A
+0xE4C2 = 0x8B7B
+0xE4C3 = 0x8B7C
+0xE4C4 = 0x8B7D
+0xE4C5 = 0x8B7E
+0xE4C6 = 0x8C21
+0xE4C7 = 0x8C22
+0xE4C8 = 0x8C23
+0xE4C9 = 0x8C24
+0xE4CA = 0x8C25
+0xE4CB = 0x8C26
+0xE4CC = 0x8C27
+0xE4CD = 0x8C28
+0xE4CE = 0x8C29
+0xE4CF = 0x8C2A
+0xE4D0 = 0x8C2B
+0xE4D1 = 0x8C2C
+0xE4D2 = 0x8C2D
+0xE4D3 = 0x8C2E
+0xE4D4 = 0x8C2F
+0xE4D5 = 0x8C30
+0xE4D6 = 0x8C31
+0xE4D7 = 0x8C32
+0xE4D8 = 0x8C33
+0xE4D9 = 0x8C34
+0xE4DA = 0x8C35
+0xE4DB = 0x8C36
+0xE4DC = 0x8C37
+0xE4DD = 0x8C38
+0xE4DE = 0x8C39
+0xE4DF = 0x8C3A
+0xE4E0 = 0x8C3B
+0xE4E1 = 0x8C3C
+0xE4E2 = 0x8C3D
+0xE4E3 = 0x8C3E
+0xE4E4 = 0x8C3F
+0xE4E5 = 0x8C40
+0xE4E6 = 0x8C41
+0xE4E7 = 0x8C42
+0xE4E8 = 0x8C43
+0xE4E9 = 0x8C44
+0xE4EA = 0x8C45
+0xE4EB = 0x8C46
+0xE4EC = 0x8C47
+0xE4ED = 0x8C48
+0xE4EE = 0x8C49
+0xE4EF = 0x8C4A
+0xE4F0 = 0x8C4B
+0xE4F1 = 0x8C4C
+0xE4F2 = 0x8C4D
+0xE4F3 = 0x8C4E
+0xE4F4 = 0x8C4F
+0xE4F5 = 0x8C50
+0xE4F6 = 0x8C51
+0xE4F7 = 0x8C52
+0xE4F8 = 0x8C53
+0xE4F9 = 0x8C54
+0xE4FA = 0x8C55
+0xE4FB = 0x8C56
+0xE4FC = 0x8C57
+0xE4FD = 0x8C58
+0xE4FE = 0x8C59
+0xE4FF = 0x8C5A
+0xE500 = 0x8C5B
+0xE501 = 0x8C5C
+0xE502 = 0x8C5D
+0xE503 = 0x8C5E
+0xE504 = 0x8C5F
+0xE505 = 0x8C60
+0xE506 = 0x8C61
+0xE507 = 0x8C62
+0xE508 = 0x8C63
+0xE509 = 0x8C64
+0xE50A = 0x8C65
+0xE50B = 0x8C66
+0xE50C = 0x8C67
+0xE50D = 0x8C68
+0xE50E = 0x8C69
+0xE50F = 0x8C6A
+0xE510 = 0x8C6B
+0xE511 = 0x8C6C
+0xE512 = 0x8C6D
+0xE513 = 0x8C6E
+0xE514 = 0x8C6F
+0xE515 = 0x8C70
+0xE516 = 0x8C71
+0xE517 = 0x8C72
+0xE518 = 0x8C73
+0xE519 = 0x8C74
+0xE51A = 0x8C75
+0xE51B = 0x8C76
+0xE51C = 0x8C77
+0xE51D = 0x8C78
+0xE51E = 0x8C79
+0xE51F = 0x8C7A
+0xE520 = 0x8C7B
+0xE521 = 0x8C7C
+0xE522 = 0x8C7D
+0xE523 = 0x8C7E
+0xE524 = 0x8D21
+0xE525 = 0x8D22
+0xE526 = 0x8D23
+0xE527 = 0x8D24
+0xE528 = 0x8D25
+0xE529 = 0x8D26
+0xE52A = 0x8D27
+0xE52B = 0x8D28
+0xE52C = 0x8D29
+0xE52D = 0x8D2A
+0xE52E = 0x8D2B
+0xE52F = 0x8D2C
+0xE530 = 0x8D2D
+0xE531 = 0x8D2E
+0xE532 = 0x8D2F
+0xE533 = 0x8D30
+0xE534 = 0x8D31
+0xE535 = 0x8D32
+0xE536 = 0x8D33
+0xE537 = 0x8D34
+0xE538 = 0x8D35
+0xE539 = 0x8D36
+0xE53A = 0x8D37
+0xE53B = 0x8D38
+0xE53C = 0x8D39
+0xE53D = 0x8D3A
+0xE53E = 0x8D3B
+0xE53F = 0x8D3C
+0xE540 = 0x8D3D
+0xE541 = 0x8D3E
+0xE542 = 0x8D3F
+0xE543 = 0x8D40
+0xE544 = 0x8D41
+0xE545 = 0x8D42
+0xE546 = 0x8D43
+0xE547 = 0x8D44
+0xE548 = 0x8D45
+0xE549 = 0x8D46
+0xE54A = 0x8D47
+0xE54B = 0x8D48
+0xE54C = 0x8D49
+0xE54D = 0x8D4A
+0xE54E = 0x8D4B
+0xE54F = 0x8D4C
+0xE550 = 0x8D4D
+0xE551 = 0x8D4E
+0xE552 = 0x8D4F
+0xE553 = 0x8D50
+0xE554 = 0x8D51
+0xE555 = 0x8D52
+0xE556 = 0x8D53
+0xE557 = 0x8D54
+0xE558 = 0x8D55
+0xE559 = 0x8D56
+0xE55A = 0x8D57
+0xE55B = 0x8D58
+0xE55C = 0x8D59
+0xE55D = 0x8D5A
+0xE55E = 0x8D5B
+0xE55F = 0x8D5C
+0xE560 = 0x8D5D
+0xE561 = 0x8D5E
+0xE562 = 0x8D5F
+0xE563 = 0x8D60
+0xE564 = 0x8D61
+0xE565 = 0x8D62
+0xE566 = 0x8D63
+0xE567 = 0x8D64
+0xE568 = 0x8D65
+0xE569 = 0x8D66
+0xE56A = 0x8D67
+0xE56B = 0x8D68
+0xE56C = 0x8D69
+0xE56D = 0x8D6A
+0xE56E = 0x8D6B
+0xE56F = 0x8D6C
+0xE570 = 0x8D6D
+0xE571 = 0x8D6E
+0xE572 = 0x8D6F
+0xE573 = 0x8D70
+0xE574 = 0x8D71
+0xE575 = 0x8D72
+0xE576 = 0x8D73
+0xE577 = 0x8D74
+0xE578 = 0x8D75
+0xE579 = 0x8D76
+0xE57A = 0x8D77
+0xE57B = 0x8D78
+0xE57C = 0x8D79
+0xE57D = 0x8D7A
+0xE57E = 0x8D7B
+0xE57F = 0x8D7C
+0xE580 = 0x8D7D
+0xE581 = 0x8D7E
+0xE582 = 0x8E21
+0xE583 = 0x8E22
+0xE584 = 0x8E23
+0xE585 = 0x8E24
+0xE586 = 0x8E25
+0xE587 = 0x8E26
+0xE588 = 0x8E27
+0xE589 = 0x8E28
+0xE58A = 0x8E29
+0xE58B = 0x8E2A
+0xE58C = 0x8E2B
+0xE58D = 0x8E2C
+0xE58E = 0x8E2D
+0xE58F = 0x8E2E
+0xE590 = 0x8E2F
+0xE591 = 0x8E30
+0xE592 = 0x8E31
+0xE593 = 0x8E32
+0xE594 = 0x8E33
+0xE595 = 0x8E34
+0xE596 = 0x8E35
+0xE597 = 0x8E36
+0xE598 = 0x8E37
+0xE599 = 0x8E38
+0xE59A = 0x8E39
+0xE59B = 0x8E3A
+0xE59C = 0x8E3B
+0xE59D = 0x8E3C
+0xE59E = 0x8E3D
+0xE59F = 0x8E3E
+0xE5A0 = 0x8E3F
+0xE5A1 = 0x8E40
+0xE5A2 = 0x8E41
+0xE5A3 = 0x8E42
+0xE5A4 = 0x8E43
+0xE5A5 = 0x8E44
+0xE5A6 = 0x8E45
+0xE5A7 = 0x8E46
+0xE5A8 = 0x8E47
+0xE5A9 = 0x8E48
+0xE5AA = 0x8E49
+0xE5AB = 0x8E4A
+0xE5AC = 0x8E4B
+0xE5AD = 0x8E4C
+0xE5AE = 0x8E4D
+0xE5AF = 0x8E4E
+0xE5B0 = 0x8E4F
+0xE5B1 = 0x8E50
+0xE5B2 = 0x8E51
+0xE5B3 = 0x8E52
+0xE5B4 = 0x8E53
+0xE5B5 = 0x8E67
+0xE5B6 = 0x8E68
+0xE5B7 = 0x8E69
+0xE5B8 = 0x8E6A
+0xE5B9 = 0x8E6B
+0xE5BA = 0x8E6C
+0xE5BB = 0x8E6D
+0xE5BC = 0x8E6E
+0xE5BD = 0x8E6F
+0xE5BE = 0x8E70
+0xE5BF = 0x8E71
+0xE5C0 = 0x8E72
+0xE5C1 = 0x8E73
+0xE5C2 = 0x8E74
+0xE5C3 = 0x8E75
+0xE5C4 = 0x8E76
+0xE5C5 = 0x8E77
+0xE5C6 = 0x8E78
+0xE5C7 = 0x8E79
+0xE5C8 = 0x8E7A
+0xE5C9 = 0x8E7B
+0xE5CA = 0x8E7C
+0xE5CB = 0x8E7D
+0xE5CC = 0x8E7E
+0xE5CD = 0x8521
+0xE5CE = 0x8522
+0xE5CF = 0x8523
+0xE5D0 = 0x8524
+0xE5D1 = 0x8525
+0xE5D2 = 0x8526
+0xE5D3 = 0x8527
+0xE5D4 = 0x8528
+0xE5D5 = 0x8529
+0xE5D6 = 0x852A
+0xE5D7 = 0x852B
+0xE5D8 = 0x852C
+0xE5D9 = 0x852D
+0xE5DA = 0x852E
+0xE5DB = 0x852F
+0xE5DC = 0x8530
+0xE5DD = 0x8531
+0xE5DE = 0x8532
+0xE5DF = 0x8533
+0xEA80 = 0x8534
+0xEA81 = 0x8535
+0xEA82 = 0x8536
+0xEA83 = 0x8537
+0xEA84 = 0x8538
+0xEA85 = 0x8539
+0xEA86 = 0x853A
+0xEA87 = 0x853B
+0xEA88 = 0x853C
+0xEA89 = 0x853D
+0xEA8A = 0x853E
+0xEA8B = 0x853F
+0xEA8C = 0x8540
+0xEA8D = 0x8541
+0xEA8E = 0x8542
+0xEA8F = 0x8543
+0xEA90 = 0x8544
+0xEA91 = 0x8545
+0xEA92 = 0x8546
+0xEA93 = 0x8547
+0xEA94 = 0x8548
+0xEA95 = 0x8549
+0xEA96 = 0x854A
+0xEA97 = 0x854B
+0xEA98 = 0x854C
+0xEA99 = 0x854D
+0xEA9A = 0x854E
+0xEA9B = 0x854F
+0xEA9C = 0x8550
+0xEA9D = 0x8551
+0xEA9E = 0x8552
+0xEA9F = 0x8553
+0xEAA0 = 0x8554
+0xEAA1 = 0x8555
+0xEAA2 = 0x8556
+0xEAA3 = 0x8557
+0xEAA4 = 0x8558
+0xEAA5 = 0x8559
+0xEAA6 = 0x855A
+0xEAA7 = 0x855B
+0xEAA8 = 0x855C
+0xEAA9 = 0x855D
+0xEAAA = 0x855E
+0xEAAB = 0x855F
+0xEAAC = 0x8560
+0xEAAD = 0x8561
+0xEAAE = 0x8562
+0xEAAF = 0x8563
+0xEAB0 = 0x8564
+0xEAB1 = 0x8565
+0xEAB2 = 0x8566
+0xEAB3 = 0x8567
+0xEAB4 = 0x8568
+0xEAB5 = 0x8569
+0xEAB6 = 0x856A
+0xEAB7 = 0x856B
+0xEAB8 = 0x856C
+0xEAB9 = 0x856D
+0xEABA = 0x856E
+0xEABB = 0x856F
+0xEABC = 0x8570
+0xEABD = 0x8571
+0xEABE = 0x8572
+0xEABF = 0x8573
+0xEAC0 = 0x8574
+0xEAC1 = 0x8575
+0xEAC2 = 0x8576
+0xEAC3 = 0x8577
+0xEAC4 = 0x8578
+0xEAC5 = 0x8579
+0xEAC6 = 0x857A
+0xEAC7 = 0x857B
+0xEAC8 = 0x857C
+0xEAC9 = 0x857D
+0xEACA = 0x857E
+0xEACB = 0x8621
+0xEACC = 0x8622
+0xEACD = 0x8623
+0xEACE = 0x8624
+0xEACF = 0x8625
+0xEAD0 = 0x8626
+0xEAD1 = 0x8627
+0xEAD2 = 0x8628
+0xEAD3 = 0x8629
+0xEAD4 = 0x862A
+0xEAD5 = 0x862B
+0xEAD6 = 0x862C
+0xEAD7 = 0x862D
+0xEAD8 = 0x862E
+0xEAD9 = 0x862F
+0xEADA = 0x8630
+0xEADB = 0x8631
+0xEADC = 0x8632
+0xEADD = 0x8633
+0xEADE = 0x8634
+0xEADF = 0x8635
+0xEAE0 = 0x8636
+0xEAE1 = 0x8637
+0xEAE2 = 0x8638
+0xEAE3 = 0x8639
+0xEAE4 = 0x863A
+0xEAE5 = 0x863B
+0xEAE6 = 0x863C
+0xEAE7 = 0x863D
+0xEAE8 = 0x863E
+0xEAE9 = 0x863F
+0xEAEA = 0x8640
+0xEAEB = 0x8641
+0xEAEC = 0x8642
+0xEAED = 0x8643
+0xEAEE = 0x8644
+0xEAEF = 0x8645
+0xEAF0 = 0x8646
+0xEAF1 = 0x8647
+0xEAF2 = 0x8648
+0xEAF3 = 0x8649
+0xEAF4 = 0x864A
+0xEAF5 = 0x864B
+0xEAF6 = 0x864C
+0xEAF7 = 0x864D
+0xEAF8 = 0x864E
+0xEAF9 = 0x864F
+0xEAFA = 0x8650
+0xEAFB = 0x8E54
+0xEAFC = 0x8E55
+0xEAFD = 0x8E56
+0xEAFE = 0x8E57
+0xEAFF = 0x8E58
+0xEB00 = 0x8E59
+0xEB01 = 0x8E5A
+0xEB02 = 0x8E5B
+0xEB03 = 0x8E5C
+0xEB04 = 0x8E5D
+0xEB05 = 0x8E5E
+0xEB06 = 0x8E5F
+0xEB07 = 0x8E60
+0xEB08 = 0x8E61
+0xEB09 = 0x8E62
+0xEB0A = 0x8E63
+0xEB0B = 0x8E64
+0xEB0C = 0x8E65
+0xEB0D = 0x8E66
+0xEB0E = 0x8651
+0xEB0F = 0x8652
+0xEB10 = 0x8653
+0xEB11 = 0x8654
+0xEB12 = 0x8655
+0xEB13 = 0x8656
+0xEB14 = 0x8657
+0xEB15 = 0x8658
+0xEB16 = 0x8659
+0xEB17 = 0x865A
+0xEB18 = 0x865B
+0xEB19 = 0x865C
+0xEB1A = 0x865D
+0xEB1B = 0x865E
+0xEB1C = 0x865F
+0xEB1D = 0x8660
+0xEB1E = 0x8661
+0xEB1F = 0x8662
+0xEB20 = 0x8663
+0xEB21 = 0x8664
+0xEB22 = 0x8665
+0xEB23 = 0x8666
+0xEB24 = 0x8667
+0xEB25 = 0x8668
+0xEB26 = 0x8669
+0xEB27 = 0x866A
+0xEB28 = 0x866B
+0xEB29 = 0x866C
+0xEB2A = 0x866D
+0xEB2B = 0x866E
+0xEB2C = 0x866F
+0xEB2D = 0x8670
+0xEB2E = 0x8671
+0xEB2F = 0x8672
+0xEB30 = 0x8673
+0xEB31 = 0x8674
+0xEB32 = 0x8675
+0xEB33 = 0x8676
+0xEB34 = 0x8677
+0xEB35 = 0x8678
+0xEB36 = 0x8679
+0xEB37 = 0x867A
+0xEB38 = 0x867B
+0xEB39 = 0x867C
+0xEB3A = 0x867D
+0xEB3B = 0x867E
+0xEB3C = 0x8721
+0xEB3D = 0x8722
+0xEB3E = 0x8723
+0xEB3F = 0x8724
+0xEB40 = 0x8725
+0xEB41 = 0x8726
+0xEB42 = 0x8727
+0xEB43 = 0x8728
+0xEB44 = 0x8729
+0xEB45 = 0x872A
+0xEB46 = 0x872B
+0xEB47 = 0x872C
+0xEB48 = 0x872D
+0xEB49 = 0x872E
+0xEB4A = 0x872F
+0xEB4B = 0x8730
+0xEB4C = 0x8731
+0xEB4D = 0x8732
+0xEB4E = 0x8733
+0xEB4F = 0x8734
+0xEB50 = 0x8735
+0xEB51 = 0x8736
+0xEB52 = 0x8737
+0xEB53 = 0x8738
+0xEB54 = 0x8739
+0xEB55 = 0x873A
+0xEB56 = 0x873B
+0xEB57 = 0x873C
+0xEB58 = 0x873D
+0xEB59 = 0x873E
+0xEB5A = 0x873F
+0xEB5B = 0x8740
+0xEB5C = 0x8741
+0xEB5D = 0x8742
+0xEB5E = 0x8743
+0xEB5F = 0x8744
+0xEB60 = 0x8745
+0xEB61 = 0x8746
+0xEB62 = 0x8747
+0xEB63 = 0x8748
+0xEB64 = 0x8749
+0xEB65 = 0x874A
+0xEB66 = 0x874B
+0xEB67 = 0x874C
+0xEB68 = 0x874D
+0xEB69 = 0x874E
+0xEB6A = 0x874F
+0xEB6B = 0x8750
+0xEB6C = 0x8751
+0xEB6D = 0x8752
+0xEB6E = 0x8753
+0xEB6F = 0x8754
+0xEB70 = 0x8755
+0xEB71 = 0x8756
+0xEB72 = 0x8757
+0xEB73 = 0x8758
+0xEB74 = 0x8759
+0xEB75 = 0x875A
+0xEB76 = 0x875B
+0xEB77 = 0x875C
+0xEB78 = 0x875D
+0xEB79 = 0x875E
+0xEB7A = 0x875F
+0xEB7B = 0x8760
+0xEB7C = 0x8761
+0xEB7D = 0x8762
+0xEB7E = 0x8763
+0xEB7F = 0x8764
+0xEB80 = 0x8765
+0xEB81 = 0x8766
+0xEB82 = 0x8767
+0xEB83 = 0x8768
+0xEB84 = 0x8769
+0xEB85 = 0x876A
+0xEB86 = 0x876B
+0xEB87 = 0x876C
+0xEB88 = 0x876D
+0xEB89 = 0x876E
+0xEB8A = 0x876F
+0xEB8B = 0x8770
+0xEB8C = 0x8771
+0xEB8D = 0x8772
+0xEB8E = 0x8773
+END_MAP
diff --git a/enc/trans/EMOJI/UCS%EMOJI_SHIFT_JIS-SOFTBANK.src b/enc/trans/EMOJI/UCS%EMOJI_SHIFT_JIS-SOFTBANK.src
new file mode 100644
index 0000000000..b00620294a
--- /dev/null
+++ b/enc/trans/EMOJI/UCS%EMOJI_SHIFT_JIS-SOFTBANK.src
@@ -0,0 +1,496 @@
+# DO NOT EDIT THIS FILE DIRECTLY
+
+TYPE ROWCOL
+NAME UCS/EMOJI_SHIFT_JIS-SOFTBANK
+SRC_ZONE 0xF3-0xFC / 0x40-0xFC / 8
+OOB_MODE ILSEQ
+DST_ILSEQ 0xFFFE
+DST_UNIT_BITS 16
+
+BEGIN_MAP
+0xE001 = 0x9122
+0xE002 = 0x9123
+0xE003 = 0x9124
+0xE004 = 0x9125
+0xE005 = 0x9126
+0xE006 = 0x9127
+0xE007 = 0x9128
+0xE008 = 0x9129
+0xE009 = 0x912A
+0xE00A = 0x912B
+0xE00B = 0x912C
+0xE00C = 0x912D
+0xE00D = 0x912E
+0xE00E = 0x912F
+0xE00F = 0x9130
+0xE010 = 0x9131
+0xE011 = 0x9132
+0xE012 = 0x9133
+0xE013 = 0x9134
+0xE014 = 0x9135
+0xE015 = 0x9136
+0xE016 = 0x9137
+0xE017 = 0x9138
+0xE018 = 0x9139
+0xE019 = 0x913A
+0xE01A = 0x913B
+0xE01B = 0x913C
+0xE01C = 0x913D
+0xE01D = 0x913E
+0xE01E = 0x913F
+0xE01F = 0x9140
+0xE020 = 0x9141
+0xE021 = 0x9142
+0xE022 = 0x9143
+0xE023 = 0x9144
+0xE024 = 0x9145
+0xE025 = 0x9146
+0xE026 = 0x9147
+0xE027 = 0x9148
+0xE028 = 0x9149
+0xE029 = 0x914A
+0xE02A = 0x914B
+0xE02B = 0x914C
+0xE02C = 0x914D
+0xE02D = 0x914E
+0xE02E = 0x914F
+0xE02F = 0x9150
+0xE030 = 0x9151
+0xE031 = 0x9152
+0xE032 = 0x9153
+0xE033 = 0x9154
+0xE034 = 0x9155
+0xE035 = 0x9156
+0xE036 = 0x9157
+0xE037 = 0x9158
+0xE038 = 0x9159
+0xE039 = 0x915A
+0xE03A = 0x915B
+0xE03B = 0x915C
+0xE03C = 0x915D
+0xE03D = 0x915E
+0xE03E = 0x915F
+0xE03F = 0x9160
+0xE040 = 0x9161
+0xE041 = 0x9162
+0xE042 = 0x9163
+0xE043 = 0x9164
+0xE044 = 0x9165
+0xE045 = 0x9166
+0xE046 = 0x9167
+0xE047 = 0x9168
+0xE048 = 0x9169
+0xE049 = 0x916A
+0xE04A = 0x916B
+0xE04B = 0x916C
+0xE04C = 0x916D
+0xE04D = 0x916E
+0xE04E = 0x916F
+0xE04F = 0x9170
+0xE050 = 0x9171
+0xE051 = 0x9172
+0xE052 = 0x9173
+0xE053 = 0x9174
+0xE054 = 0x9175
+0xE055 = 0x9176
+0xE056 = 0x9177
+0xE057 = 0x9178
+0xE058 = 0x9179
+0xE059 = 0x917A
+0xE05A = 0x917B
+0xE101 = 0x8D22
+0xE102 = 0x8D23
+0xE103 = 0x8D24
+0xE104 = 0x8D25
+0xE105 = 0x8D26
+0xE106 = 0x8D27
+0xE107 = 0x8D28
+0xE108 = 0x8D29
+0xE109 = 0x8D2A
+0xE10A = 0x8D2B
+0xE10B = 0x8D2C
+0xE10C = 0x8D2D
+0xE10D = 0x8D2E
+0xE10E = 0x8D2F
+0xE10F = 0x8D30
+0xE110 = 0x8D31
+0xE111 = 0x8D32
+0xE112 = 0x8D33
+0xE113 = 0x8D34
+0xE114 = 0x8D35
+0xE115 = 0x8D36
+0xE116 = 0x8D37
+0xE117 = 0x8D38
+0xE118 = 0x8D39
+0xE119 = 0x8D3A
+0xE11A = 0x8D3B
+0xE11B = 0x8D3C
+0xE11C = 0x8D3D
+0xE11D = 0x8D3E
+0xE11E = 0x8D3F
+0xE11F = 0x8D40
+0xE120 = 0x8D41
+0xE121 = 0x8D42
+0xE122 = 0x8D43
+0xE123 = 0x8D44
+0xE124 = 0x8D45
+0xE125 = 0x8D46
+0xE126 = 0x8D47
+0xE127 = 0x8D48
+0xE128 = 0x8D49
+0xE129 = 0x8D4A
+0xE12A = 0x8D4B
+0xE12B = 0x8D4C
+0xE12C = 0x8D4D
+0xE12D = 0x8D4E
+0xE12E = 0x8D4F
+0xE12F = 0x8D50
+0xE130 = 0x8D51
+0xE131 = 0x8D52
+0xE132 = 0x8D53
+0xE133 = 0x8D54
+0xE134 = 0x8D55
+0xE135 = 0x8D56
+0xE136 = 0x8D57
+0xE137 = 0x8D58
+0xE138 = 0x8D59
+0xE139 = 0x8D5A
+0xE13A = 0x8D5B
+0xE13B = 0x8D5C
+0xE13C = 0x8D5D
+0xE13D = 0x8D5E
+0xE13E = 0x8D5F
+0xE13F = 0x8D60
+0xE140 = 0x8D61
+0xE141 = 0x8D62
+0xE142 = 0x8D63
+0xE143 = 0x8D64
+0xE144 = 0x8D65
+0xE145 = 0x8D66
+0xE146 = 0x8D67
+0xE147 = 0x8D68
+0xE148 = 0x8D69
+0xE149 = 0x8D6A
+0xE14A = 0x8D6B
+0xE14B = 0x8D6C
+0xE14C = 0x8D6D
+0xE14D = 0x8D6E
+0xE14E = 0x8D6F
+0xE14F = 0x8D70
+0xE150 = 0x8D71
+0xE151 = 0x8D72
+0xE152 = 0x8D73
+0xE153 = 0x8D74
+0xE154 = 0x8D75
+0xE155 = 0x8D76
+0xE156 = 0x8D77
+0xE157 = 0x8D78
+0xE158 = 0x8D79
+0xE159 = 0x8D7A
+0xE15A = 0x8D7B
+0xE201 = 0x8E23
+0xE202 = 0x8E24
+0xE203 = 0x8E25
+0xE204 = 0x8E26
+0xE205 = 0x8E27
+0xE206 = 0x8E28
+0xE207 = 0x8E29
+0xE208 = 0x8E2A
+0xE209 = 0x8E2B
+0xE20A = 0x8E2C
+0xE20B = 0x8E2D
+0xE20C = 0x8E2E
+0xE20D = 0x8E2F
+0xE20E = 0x8E30
+0xE20F = 0x8E31
+0xE210 = 0x8E32
+0xE211 = 0x8E33
+0xE212 = 0x8E34
+0xE213 = 0x8E35
+0xE214 = 0x8E36
+0xE215 = 0x8E37
+0xE216 = 0x8E38
+0xE217 = 0x8E39
+0xE218 = 0x8E3A
+0xE219 = 0x8E3B
+0xE21A = 0x8E3C
+0xE21B = 0x8E3D
+0xE21C = 0x8E3E
+0xE21D = 0x8E3F
+0xE21E = 0x8E40
+0xE21F = 0x8E41
+0xE220 = 0x8E42
+0xE221 = 0x8E43
+0xE222 = 0x8E44
+0xE223 = 0x8E45
+0xE224 = 0x8E46
+0xE225 = 0x8E47
+0xE226 = 0x8E48
+0xE227 = 0x8E49
+0xE228 = 0x8E4A
+0xE229 = 0x8E4B
+0xE22A = 0x8E4C
+0xE22B = 0x8E4D
+0xE22C = 0x8E4E
+0xE22D = 0x8E4F
+0xE22E = 0x8E50
+0xE22F = 0x8E51
+0xE230 = 0x8E52
+0xE231 = 0x8E53
+0xE232 = 0x8E54
+0xE233 = 0x8E55
+0xE234 = 0x8E56
+0xE235 = 0x8E57
+0xE236 = 0x8E58
+0xE237 = 0x8E59
+0xE238 = 0x8E5A
+0xE239 = 0x8E5B
+0xE23A = 0x8E5C
+0xE23B = 0x8E5D
+0xE23C = 0x8E5E
+0xE23D = 0x8E5F
+0xE23E = 0x8E60
+0xE23F = 0x8E61
+0xE240 = 0x8E62
+0xE241 = 0x8E63
+0xE242 = 0x8E64
+0xE243 = 0x8E65
+0xE244 = 0x8E66
+0xE245 = 0x8E67
+0xE246 = 0x8E68
+0xE247 = 0x8E69
+0xE248 = 0x8E6A
+0xE249 = 0x8E6B
+0xE24A = 0x8E6C
+0xE24B = 0x8E6D
+0xE24C = 0x8E6E
+0xE24D = 0x8E6F
+0xE24E = 0x8E70
+0xE24F = 0x8E71
+0xE250 = 0x8E72
+0xE251 = 0x8E73
+0xE252 = 0x8E74
+0xE253 = 0x8E75
+0xE254 = 0x8E76
+0xE255 = 0x8E77
+0xE256 = 0x8E78
+0xE257 = 0x8E79
+0xE258 = 0x8E7A
+0xE259 = 0x8E7B
+0xE25A = 0x8E7C
+0xE301 = 0x9223
+0xE302 = 0x9224
+0xE303 = 0x9225
+0xE304 = 0x9226
+0xE305 = 0x9227
+0xE306 = 0x9228
+0xE307 = 0x9229
+0xE308 = 0x922A
+0xE309 = 0x922B
+0xE30A = 0x922C
+0xE30B = 0x922D
+0xE30C = 0x922E
+0xE30D = 0x922F
+0xE30E = 0x9230
+0xE30F = 0x9231
+0xE310 = 0x9232
+0xE311 = 0x9233
+0xE312 = 0x9234
+0xE313 = 0x9235
+0xE314 = 0x9236
+0xE315 = 0x9237
+0xE316 = 0x9238
+0xE317 = 0x9239
+0xE318 = 0x923A
+0xE319 = 0x923B
+0xE31A = 0x923C
+0xE31B = 0x923D
+0xE31C = 0x923E
+0xE31D = 0x923F
+0xE31E = 0x9240
+0xE31F = 0x9241
+0xE320 = 0x9242
+0xE321 = 0x9243
+0xE322 = 0x9244
+0xE323 = 0x9245
+0xE324 = 0x9246
+0xE325 = 0x9247
+0xE326 = 0x9248
+0xE327 = 0x9249
+0xE328 = 0x924A
+0xE329 = 0x924B
+0xE32A = 0x924C
+0xE32B = 0x924D
+0xE32C = 0x924E
+0xE32D = 0x924F
+0xE32E = 0x9250
+0xE32F = 0x9251
+0xE330 = 0x9252
+0xE331 = 0x9253
+0xE332 = 0x9254
+0xE333 = 0x9255
+0xE334 = 0x9256
+0xE335 = 0x9257
+0xE336 = 0x9258
+0xE337 = 0x9259
+0xE338 = 0x925A
+0xE339 = 0x925B
+0xE33A = 0x925C
+0xE33B = 0x925D
+0xE33C = 0x925E
+0xE33D = 0x925F
+0xE33E = 0x9260
+0xE33F = 0x9261
+0xE340 = 0x9262
+0xE341 = 0x9263
+0xE342 = 0x9264
+0xE343 = 0x9265
+0xE344 = 0x9266
+0xE345 = 0x9267
+0xE346 = 0x9268
+0xE347 = 0x9269
+0xE348 = 0x926A
+0xE349 = 0x926B
+0xE34A = 0x926C
+0xE34B = 0x926D
+0xE34C = 0x926E
+0xE34D = 0x926F
+0xE401 = 0x9522
+0xE402 = 0x9523
+0xE403 = 0x9524
+0xE404 = 0x9525
+0xE405 = 0x9526
+0xE406 = 0x9527
+0xE407 = 0x9528
+0xE408 = 0x9529
+0xE409 = 0x952A
+0xE40A = 0x952B
+0xE40B = 0x952C
+0xE40C = 0x952D
+0xE40D = 0x952E
+0xE40E = 0x952F
+0xE40F = 0x9530
+0xE410 = 0x9531
+0xE411 = 0x9532
+0xE412 = 0x9533
+0xE413 = 0x9534
+0xE414 = 0x9535
+0xE415 = 0x9536
+0xE416 = 0x9537
+0xE417 = 0x9538
+0xE418 = 0x9539
+0xE419 = 0x953A
+0xE41A = 0x953B
+0xE41B = 0x953C
+0xE41C = 0x953D
+0xE41D = 0x953E
+0xE41E = 0x953F
+0xE41F = 0x9540
+0xE420 = 0x9541
+0xE421 = 0x9542
+0xE422 = 0x9543
+0xE423 = 0x9544
+0xE424 = 0x9545
+0xE425 = 0x9546
+0xE426 = 0x9547
+0xE427 = 0x9548
+0xE428 = 0x9549
+0xE429 = 0x954A
+0xE42A = 0x954B
+0xE42B = 0x954C
+0xE42C = 0x954D
+0xE42D = 0x954E
+0xE42E = 0x954F
+0xE42F = 0x9550
+0xE430 = 0x9551
+0xE431 = 0x9552
+0xE432 = 0x9553
+0xE433 = 0x9554
+0xE434 = 0x9555
+0xE435 = 0x9556
+0xE436 = 0x9557
+0xE437 = 0x9558
+0xE438 = 0x9559
+0xE439 = 0x955A
+0xE43A = 0x955B
+0xE43B = 0x955C
+0xE43C = 0x955D
+0xE43D = 0x955E
+0xE43E = 0x955F
+0xE43F = 0x9560
+0xE440 = 0x9561
+0xE441 = 0x9562
+0xE442 = 0x9563
+0xE443 = 0x9564
+0xE444 = 0x9565
+0xE445 = 0x9566
+0xE446 = 0x9567
+0xE447 = 0x9568
+0xE448 = 0x9569
+0xE449 = 0x956A
+0xE44A = 0x956B
+0xE44B = 0x956C
+0xE44C = 0x956D
+0xE501 = 0x9623
+0xE502 = 0x9624
+0xE503 = 0x9625
+0xE504 = 0x9626
+0xE505 = 0x9627
+0xE506 = 0x9628
+0xE507 = 0x9629
+0xE508 = 0x962A
+0xE509 = 0x962B
+0xE50A = 0x962C
+0xE50B = 0x962D
+0xE50C = 0x962E
+0xE50D = 0x962F
+0xE50E = 0x9630
+0xE50F = 0x9631
+0xE510 = 0x9632
+0xE511 = 0x9633
+0xE512 = 0x9634
+0xE513 = 0x9635
+0xE514 = 0x9636
+0xE515 = 0x9637
+0xE516 = 0x9638
+0xE517 = 0x9639
+0xE518 = 0x963A
+0xE519 = 0x963B
+0xE51A = 0x963C
+0xE51B = 0x963D
+0xE51C = 0x963E
+0xE51D = 0x963F
+0xE51E = 0x9640
+0xE51F = 0x9641
+0xE520 = 0x9642
+0xE521 = 0x9643
+0xE522 = 0x9644
+0xE523 = 0x9645
+0xE524 = 0x9646
+0xE525 = 0x9647
+0xE526 = 0x9648
+0xE527 = 0x9649
+0xE528 = 0x964A
+0xE529 = 0x964B
+0xE52A = 0x964C
+0xE52B = 0x964D
+0xE52C = 0x964E
+0xE52D = 0x964F
+0xE52E = 0x9650
+0xE52F = 0x9651
+0xE530 = 0x9652
+0xE531 = 0x9653
+0xE532 = 0x9654
+0xE533 = 0x9655
+0xE534 = 0x9656
+0xE535 = 0x9657
+0xE536 = 0x9658
+0xE537 = 0x9659
+0xE538 = 0x965A
+0xE539 = 0x965B
+0xE53A = 0x965C
+0xE53B = 0x965D
+0xE53C = 0x965E
+0xE53D = 0x965F
+0xE53E = 0x9660
+END_MAP
diff --git a/enc/trans/big5-hkscs-tbl.rb b/enc/trans/big5-hkscs-tbl.rb
new file mode 100644
index 0000000000..aa9f3b55fa
--- /dev/null
+++ b/enc/trans/big5-hkscs-tbl.rb
@@ -0,0 +1,37302 @@
+BIG5_HKSCS_TO_UCS_TBL= [
+ ["A246",0xA2],
+ ["A247",0xA3],
+ ["A244",0xA5],
+ ["A1B1",0xA7],
+ ["C6D8",0xA8],
+ ["A258",0xB0],
+ ["A1D3",0xB1],
+ ["A150",0xB7],
+ ["8859",0xC0],
+ ["8857",0xC1],
+ ["885D",0xC8],
+ ["885B",0xC9],
+ ["8866",0xCA],
+ ["8861",0xD2],
+ ["885F",0xD3],
+ ["A1D1",0xD7],
+ ["886A",0xE0],
+ ["8868",0xE1],
+ ["886F",0xE8],
+ ["886D",0xE9],
+ ["88A7",0xEA],
+ ["8873",0xEC],
+ ["8871",0xED],
+ ["8877",0xF2],
+ ["8875",0xF3],
+ ["A1D2",0xF7],
+ ["C8FB",0xF8],
+ ["887B",0xF9],
+ ["8879",0xFA],
+ ["88A2",0xFC],
+ ["8856",0x100],
+ ["8867",0x101],
+ ["885A",0x112],
+ ["886C",0x113],
+ ["885C",0x11A],
+ ["886E",0x11B],
+ ["8870",0x12B],
+ ["C8FC",0x14B],
+ ["885E",0x14C],
+ ["8874",0x14D],
+ ["C8FA",0x153],
+ ["8878",0x16B],
+ ["8858",0x1CD],
+ ["8869",0x1CE],
+ ["8872",0x1D0],
+ ["8860",0x1D1],
+ ["8876",0x1D2],
+ ["887A",0x1D4],
+ ["887C",0x1D6],
+ ["887D",0x1D8],
+ ["887E",0x1DA],
+ ["88A1",0x1DC],
+ ["C8F6",0x250],
+ ["886B",0x251],
+ ["C8F8",0x254],
+ ["C8F7",0x25B],
+ ["88A8",0x261],
+ ["C8FE",0x26A],
+ ["C8F9",0x275],
+ ["C8F5",0x283],
+ ["C8FD",0x28A],
+ ["C6D9",0x2C6],
+ ["A3BE",0x2C7],
+ ["A3BC",0x2C9],
+ ["A3BD",0x2CA],
+ ["A3BF",0x2CB],
+ ["A3BB",0x2D9],
+ ["A344",0x391],
+ ["A345",0x392],
+ ["A346",0x393],
+ ["A347",0x394],
+ ["A348",0x395],
+ ["A349",0x396],
+ ["A34A",0x397],
+ ["A34B",0x398],
+ ["A34C",0x399],
+ ["A34D",0x39A],
+ ["A34E",0x39B],
+ ["A34F",0x39C],
+ ["A350",0x39D],
+ ["A351",0x39E],
+ ["A352",0x39F],
+ ["A353",0x3A0],
+ ["A354",0x3A1],
+ ["A355",0x3A3],
+ ["A356",0x3A4],
+ ["A357",0x3A5],
+ ["A358",0x3A6],
+ ["A359",0x3A7],
+ ["A35A",0x3A8],
+ ["A35B",0x3A9],
+ ["A35C",0x3B1],
+ ["A35D",0x3B2],
+ ["A35E",0x3B3],
+ ["A35F",0x3B4],
+ ["A360",0x3B5],
+ ["A361",0x3B6],
+ ["A362",0x3B7],
+ ["A363",0x3B8],
+ ["A364",0x3B9],
+ ["A365",0x3BA],
+ ["A366",0x3BB],
+ ["A367",0x3BC],
+ ["A368",0x3BD],
+ ["A369",0x3BE],
+ ["A36A",0x3BF],
+ ["A36B",0x3C0],
+ ["A36C",0x3C1],
+ ["A36D",0x3C3],
+ ["A36E",0x3C4],
+ ["A36F",0x3C5],
+ ["A370",0x3C6],
+ ["A371",0x3C7],
+ ["A372",0x3C8],
+ ["A373",0x3C9],
+ ["C7F9",0x401],
+ ["C7F3",0x410],
+ ["C7F4",0x411],
+ ["C7F5",0x412],
+ ["C7F6",0x413],
+ ["C7F7",0x414],
+ ["C7F8",0x415],
+ ["C7FA",0x416],
+ ["C7FB",0x417],
+ ["C7FC",0x418],
+ ["C7FD",0x419],
+ ["C7FE",0x41A],
+ ["C840",0x41B],
+ ["C841",0x41C],
+ ["C842",0x41D],
+ ["C843",0x41E],
+ ["C844",0x41F],
+ ["C845",0x420],
+ ["C846",0x421],
+ ["C847",0x422],
+ ["C848",0x423],
+ ["C849",0x424],
+ ["C84A",0x425],
+ ["C84B",0x426],
+ ["C84C",0x427],
+ ["C84D",0x428],
+ ["C84E",0x429],
+ ["C84F",0x42A],
+ ["C850",0x42B],
+ ["C851",0x42C],
+ ["C852",0x42D],
+ ["C853",0x42E],
+ ["C854",0x42F],
+ ["C855",0x430],
+ ["C856",0x431],
+ ["C857",0x432],
+ ["C858",0x433],
+ ["C859",0x434],
+ ["C85A",0x435],
+ ["C85C",0x436],
+ ["C85D",0x437],
+ ["C85E",0x438],
+ ["C85F",0x439],
+ ["C860",0x43A],
+ ["C861",0x43B],
+ ["C862",0x43C],
+ ["C863",0x43D],
+ ["C864",0x43E],
+ ["C865",0x43F],
+ ["C866",0x440],
+ ["C867",0x441],
+ ["C868",0x442],
+ ["C869",0x443],
+ ["C86A",0x444],
+ ["C86B",0x445],
+ ["C86C",0x446],
+ ["C86D",0x447],
+ ["C86E",0x448],
+ ["C86F",0x449],
+ ["C870",0x44A],
+ ["C871",0x44B],
+ ["C872",0x44C],
+ ["C873",0x44D],
+ ["C874",0x44E],
+ ["C875",0x44F],
+ ["C85B",0x451],
+ ["8863",0x1EBE],
+ ["88A4",0x1EBF],
+ ["8865",0x1EC0],
+ ["88A6",0x1EC1],
+ ["A156",0x2013],
+ ["A158",0x2014],
+ ["A1A5",0x2018],
+ ["A1A6",0x2019],
+ ["A1A7",0x201C],
+ ["A1A8",0x201D],
+ ["A145",0x2022],
+ ["A14C",0x2025],
+ ["A14B",0x2026],
+ ["A1AC",0x2032],
+ ["A1AB",0x2035],
+ ["A1B0",0x203B],
+ ["A1C2",0x203E],
+ ["A24A",0x2103],
+ ["A1C1",0x2105],
+ ["A24B",0x2109],
+ ["C8D2",0x2116],
+ ["C8D3",0x2121],
+ ["A2B9",0x2160],
+ ["A2BA",0x2161],
+ ["A2BB",0x2162],
+ ["A2BC",0x2163],
+ ["A2BD",0x2164],
+ ["A2BE",0x2165],
+ ["A2BF",0x2166],
+ ["A2C0",0x2167],
+ ["A2C1",0x2168],
+ ["A2C2",0x2169],
+ ["C6B5",0x2170],
+ ["C6B6",0x2171],
+ ["C6B7",0x2172],
+ ["C6B8",0x2173],
+ ["C6B9",0x2174],
+ ["C6BA",0x2175],
+ ["C6BB",0x2176],
+ ["C6BC",0x2177],
+ ["C6BD",0x2178],
+ ["C6BE",0x2179],
+ ["A1F6",0x2190],
+ ["A1F4",0x2191],
+ ["A1F7",0x2192],
+ ["A1F5",0x2193],
+ ["A1F8",0x2196],
+ ["A1F9",0x2197],
+ ["A1FB",0x2198],
+ ["A1FA",0x2199],
+ ["C877",0x21B8],
+ ["C878",0x21B9],
+ ["C876",0x21E7],
+ ["A1D4",0x221A],
+ ["A1DB",0x221E],
+ ["A1E8",0x221F],
+ ["A1E7",0x2220],
+ ["A1FD",0x2223],
+ ["A1FC",0x2225],
+ ["A1E4",0x2229],
+ ["A1E5",0x222A],
+ ["A1EC",0x222B],
+ ["A1ED",0x222E],
+ ["A1EF",0x2234],
+ ["A1EE",0x2235],
+ ["A1E3",0x223C],
+ ["A1DC",0x2252],
+ ["A1DA",0x2260],
+ ["A1DD",0x2261],
+ ["A1D8",0x2266],
+ ["A1D9",0x2267],
+ ["A1E6",0x22A5],
+ ["A1E9",0x22BF],
+ ["88A9",0x23DA],
+ ["88AA",0x23DB],
+ ["C6A1",0x2460],
+ ["C6A2",0x2461],
+ ["C6A3",0x2462],
+ ["C6A4",0x2463],
+ ["C6A5",0x2464],
+ ["C6A6",0x2465],
+ ["C6A7",0x2466],
+ ["C6A8",0x2467],
+ ["C6A9",0x2468],
+ ["C6AA",0x2469],
+ ["C6AB",0x2474],
+ ["C6AC",0x2475],
+ ["C6AD",0x2476],
+ ["C6AE",0x2477],
+ ["C6AF",0x2478],
+ ["C6B0",0x2479],
+ ["C6B1",0x247A],
+ ["C6B2",0x247B],
+ ["C6B3",0x247C],
+ ["C6B4",0x247D],
+ ["A277",0x2500],
+ ["A278",0x2502],
+ ["A27A",0x250C],
+ ["A27B",0x2510],
+ ["A27C",0x2514],
+ ["A27D",0x2518],
+ ["A275",0x251C],
+ ["A274",0x2524],
+ ["A273",0x252C],
+ ["A272",0x2534],
+ ["A271",0x253C],
+ ["A2A4",0x2550],
+ ["F9F8",0x2551],
+ ["F9E6",0x2552],
+ ["F9EF",0x2553],
+ ["F9DD",0x2554],
+ ["F9E8",0x2555],
+ ["F9F1",0x2556],
+ ["F9DF",0x2557],
+ ["F9EC",0x2558],
+ ["F9F5",0x2559],
+ ["F9E3",0x255A],
+ ["F9EE",0x255B],
+ ["F9F7",0x255C],
+ ["F9E5",0x255D],
+ ["A2A5",0x255E],
+ ["F9F2",0x255F],
+ ["F9E0",0x2560],
+ ["A2A7",0x2561],
+ ["F9F4",0x2562],
+ ["F9E2",0x2563],
+ ["F9E7",0x2564],
+ ["F9F0",0x2565],
+ ["F9DE",0x2566],
+ ["F9ED",0x2567],
+ ["F9F6",0x2568],
+ ["F9E4",0x2569],
+ ["A2A6",0x256A],
+ ["F9F3",0x256B],
+ ["F9E1",0x256C],
+ ["A27E",0x256D],
+ ["A2A1",0x256E],
+ ["A2A3",0x256F],
+ ["A2A2",0x2570],
+ ["A2AC",0x2571],
+ ["A2AD",0x2572],
+ ["A2AE",0x2573],
+ ["A262",0x2581],
+ ["A263",0x2582],
+ ["A264",0x2583],
+ ["A265",0x2584],
+ ["A266",0x2585],
+ ["A267",0x2586],
+ ["A268",0x2587],
+ ["A269",0x2588],
+ ["A270",0x2589],
+ ["A26F",0x258A],
+ ["A26E",0x258B],
+ ["A26D",0x258C],
+ ["A26C",0x258D],
+ ["A26B",0x258E],
+ ["A26A",0x258F],
+ ["A276",0x2594],
+ ["A279",0x2595],
+ ["A1BD",0x25A0],
+ ["A1BC",0x25A1],
+ ["A1B6",0x25B2],
+ ["A1B5",0x25B3],
+ ["A1BF",0x25BC],
+ ["A1BE",0x25BD],
+ ["A1BB",0x25C6],
+ ["A1BA",0x25C7],
+ ["A1B3",0x25CB],
+ ["A1B7",0x25CE],
+ ["A1B4",0x25CF],
+ ["A2A8",0x25E2],
+ ["A2A9",0x25E3],
+ ["A2AB",0x25E4],
+ ["A2AA",0x25E5],
+ ["A1B9",0x2605],
+ ["A1B8",0x2606],
+ ["A1F3",0x2609],
+ ["A1F0",0x2640],
+ ["A1F2",0x2641],
+ ["A1F1",0x2642],
+ ["C6E6",0x273D],
+ ["C8D6",0x2E80],
+ ["C8D7",0x2E84],
+ ["C8D8",0x2E86],
+ ["C8D9",0x2E87],
+ ["C8DA",0x2E88],
+ ["C8DB",0x2E8A],
+ ["C8DC",0x2E8C],
+ ["C8DD",0x2E8D],
+ ["C8DE",0x2E95],
+ ["C8DF",0x2E9C],
+ ["C8E0",0x2E9D],
+ ["C8E1",0x2EA5],
+ ["C8E2",0x2EA7],
+ ["C8E3",0x2EAA],
+ ["C8E4",0x2EAC],
+ ["C8E5",0x2EAE],
+ ["C8E6",0x2EB6],
+ ["C8E7",0x2EBC],
+ ["C8E8",0x2EBE],
+ ["C8E9",0x2EC6],
+ ["C8EA",0x2ECA],
+ ["C8EB",0x2ECC],
+ ["C8EC",0x2ECD],
+ ["C8ED",0x2ECF],
+ ["C8EE",0x2ED6],
+ ["C8EF",0x2ED7],
+ ["C8F0",0x2EDE],
+ ["C8F1",0x2EE3],
+ ["C6CD",0x2F33],
+ ["A140",0x3000],
+ ["A142",0x3001],
+ ["A143",0x3002],
+ ["A1B2",0x3003],
+ ["C6E0",0x3005],
+ ["C6E1",0x3006],
+ ["C6E2",0x3007],
+ ["A171",0x3008],
+ ["A172",0x3009],
+ ["A16D",0x300A],
+ ["A16E",0x300B],
+ ["A175",0x300C],
+ ["A176",0x300D],
+ ["A179",0x300E],
+ ["A17A",0x300F],
+ ["A169",0x3010],
+ ["A16A",0x3011],
+ ["A245",0x3012],
+ ["A165",0x3014],
+ ["A166",0x3015],
+ ["A1A9",0x301D],
+ ["A1AA",0x301E],
+ ["A2C3",0x3021],
+ ["A2C4",0x3022],
+ ["A2C5",0x3023],
+ ["A2C6",0x3024],
+ ["A2C7",0x3025],
+ ["A2C8",0x3026],
+ ["A2C9",0x3027],
+ ["A2CA",0x3028],
+ ["A2CB",0x3029],
+ ["C6E7",0x3041],
+ ["C6E8",0x3042],
+ ["C6E9",0x3043],
+ ["C6EA",0x3044],
+ ["C6EB",0x3045],
+ ["C6EC",0x3046],
+ ["C6ED",0x3047],
+ ["C6EE",0x3048],
+ ["C6EF",0x3049],
+ ["C6F0",0x304A],
+ ["C6F1",0x304B],
+ ["C6F2",0x304C],
+ ["C6F3",0x304D],
+ ["C6F4",0x304E],
+ ["C6F5",0x304F],
+ ["C6F6",0x3050],
+ ["C6F7",0x3051],
+ ["C6F8",0x3052],
+ ["C6F9",0x3053],
+ ["C6FA",0x3054],
+ ["C6FB",0x3055],
+ ["C6FC",0x3056],
+ ["C6FD",0x3057],
+ ["C6FE",0x3058],
+ ["C740",0x3059],
+ ["C741",0x305A],
+ ["C742",0x305B],
+ ["C743",0x305C],
+ ["C744",0x305D],
+ ["C745",0x305E],
+ ["C746",0x305F],
+ ["C747",0x3060],
+ ["C748",0x3061],
+ ["C749",0x3062],
+ ["C74A",0x3063],
+ ["C74B",0x3064],
+ ["C74C",0x3065],
+ ["C74D",0x3066],
+ ["C74E",0x3067],
+ ["C74F",0x3068],
+ ["C750",0x3069],
+ ["C751",0x306A],
+ ["C752",0x306B],
+ ["C753",0x306C],
+ ["C754",0x306D],
+ ["C755",0x306E],
+ ["C756",0x306F],
+ ["C757",0x3070],
+ ["C758",0x3071],
+ ["C759",0x3072],
+ ["C75A",0x3073],
+ ["C75B",0x3074],
+ ["C75C",0x3075],
+ ["C75D",0x3076],
+ ["C75E",0x3077],
+ ["C75F",0x3078],
+ ["C760",0x3079],
+ ["C761",0x307A],
+ ["C762",0x307B],
+ ["C763",0x307C],
+ ["C764",0x307D],
+ ["C765",0x307E],
+ ["C766",0x307F],
+ ["C767",0x3080],
+ ["C768",0x3081],
+ ["C769",0x3082],
+ ["C76A",0x3083],
+ ["C76B",0x3084],
+ ["C76C",0x3085],
+ ["C76D",0x3086],
+ ["C76E",0x3087],
+ ["C76F",0x3088],
+ ["C770",0x3089],
+ ["C771",0x308A],
+ ["C772",0x308B],
+ ["C773",0x308C],
+ ["C774",0x308D],
+ ["C775",0x308E],
+ ["C776",0x308F],
+ ["C777",0x3090],
+ ["C778",0x3091],
+ ["C779",0x3092],
+ ["C77A",0x3093],
+ ["C8D4",0x309B],
+ ["C8D5",0x309C],
+ ["C6DC",0x309D],
+ ["C6DD",0x309E],
+ ["C77B",0x30A1],
+ ["C77C",0x30A2],
+ ["C77D",0x30A3],
+ ["C77E",0x30A4],
+ ["C7A1",0x30A5],
+ ["C7A2",0x30A6],
+ ["C7A3",0x30A7],
+ ["C7A4",0x30A8],
+ ["C7A5",0x30A9],
+ ["C7A6",0x30AA],
+ ["C7A7",0x30AB],
+ ["C7A8",0x30AC],
+ ["C7A9",0x30AD],
+ ["C7AA",0x30AE],
+ ["C7AB",0x30AF],
+ ["C7AC",0x30B0],
+ ["C7AD",0x30B1],
+ ["C7AE",0x30B2],
+ ["C7AF",0x30B3],
+ ["C7B0",0x30B4],
+ ["C7B1",0x30B5],
+ ["C7B2",0x30B6],
+ ["C7B3",0x30B7],
+ ["C7B4",0x30B8],
+ ["C7B5",0x30B9],
+ ["C7B6",0x30BA],
+ ["C7B7",0x30BB],
+ ["C7B8",0x30BC],
+ ["C7B9",0x30BD],
+ ["C7BA",0x30BE],
+ ["C7BB",0x30BF],
+ ["C7BC",0x30C0],
+ ["C7BD",0x30C1],
+ ["C7BE",0x30C2],
+ ["C7BF",0x30C3],
+ ["C7C0",0x30C4],
+ ["C7C1",0x30C5],
+ ["C7C2",0x30C6],
+ ["C7C3",0x30C7],
+ ["C7C4",0x30C8],
+ ["C7C5",0x30C9],
+ ["C7C6",0x30CA],
+ ["C7C7",0x30CB],
+ ["C7C8",0x30CC],
+ ["C7C9",0x30CD],
+ ["C7CA",0x30CE],
+ ["C7CB",0x30CF],
+ ["C7CC",0x30D0],
+ ["C7CD",0x30D1],
+ ["C7CE",0x30D2],
+ ["C7CF",0x30D3],
+ ["C7D0",0x30D4],
+ ["C7D1",0x30D5],
+ ["C7D2",0x30D6],
+ ["C7D3",0x30D7],
+ ["C7D4",0x30D8],
+ ["C7D5",0x30D9],
+ ["C7D6",0x30DA],
+ ["C7D7",0x30DB],
+ ["C7D8",0x30DC],
+ ["C7D9",0x30DD],
+ ["C7DA",0x30DE],
+ ["C7DB",0x30DF],
+ ["C7DC",0x30E0],
+ ["C7DD",0x30E1],
+ ["C7DE",0x30E2],
+ ["C7DF",0x30E3],
+ ["C7E0",0x30E4],
+ ["C7E1",0x30E5],
+ ["C7E2",0x30E6],
+ ["C7E3",0x30E7],
+ ["C7E4",0x30E8],
+ ["C7E5",0x30E9],
+ ["C7E6",0x30EA],
+ ["C7E7",0x30EB],
+ ["C7E8",0x30EC],
+ ["C7E9",0x30ED],
+ ["C7EA",0x30EE],
+ ["C7EB",0x30EF],
+ ["C7EC",0x30F0],
+ ["C7ED",0x30F1],
+ ["C7EE",0x30F2],
+ ["C7EF",0x30F3],
+ ["C7F0",0x30F4],
+ ["C7F1",0x30F5],
+ ["C7F2",0x30F6],
+ ["C6E3",0x30FC],
+ ["C6DA",0x30FD],
+ ["C6DB",0x30FE],
+ ["A374",0x3105],
+ ["A375",0x3106],
+ ["A376",0x3107],
+ ["A377",0x3108],
+ ["A378",0x3109],
+ ["A379",0x310A],
+ ["A37A",0x310B],
+ ["A37B",0x310C],
+ ["A37C",0x310D],
+ ["A37D",0x310E],
+ ["A37E",0x310F],
+ ["A3A1",0x3110],
+ ["A3A2",0x3111],
+ ["A3A3",0x3112],
+ ["A3A4",0x3113],
+ ["A3A5",0x3114],
+ ["A3A6",0x3115],
+ ["A3A7",0x3116],
+ ["A3A8",0x3117],
+ ["A3A9",0x3118],
+ ["A3AA",0x3119],
+ ["A3AB",0x311A],
+ ["A3AC",0x311B],
+ ["A3AD",0x311C],
+ ["A3AE",0x311D],
+ ["A3AF",0x311E],
+ ["A3B0",0x311F],
+ ["A3B1",0x3120],
+ ["A3B2",0x3121],
+ ["A3B3",0x3122],
+ ["A3B4",0x3123],
+ ["A3B5",0x3124],
+ ["A3B6",0x3125],
+ ["A3B7",0x3126],
+ ["A3B8",0x3127],
+ ["A3B9",0x3128],
+ ["A3BA",0x3129],
+ ["8840",0x31C0],
+ ["8841",0x31C1],
+ ["8842",0x31C2],
+ ["8843",0x31C3],
+ ["8844",0x31C4],
+ ["8846",0x31C5],
+ ["8849",0x31C6],
+ ["884A",0x31C7],
+ ["884D",0x31C8],
+ ["884F",0x31C9],
+ ["8850",0x31CA],
+ ["8851",0x31CB],
+ ["8852",0x31CC],
+ ["8854",0x31CD],
+ ["8855",0x31CE],
+ ["C879",0x31CF],
+ ["C8D1",0x3231],
+ ["A1C0",0x32A3],
+ ["A255",0x338E],
+ ["A256",0x338F],
+ ["A250",0x339C],
+ ["A251",0x339D],
+ ["A252",0x339E],
+ ["A254",0x33A1],
+ ["A257",0x33C4],
+ ["A253",0x33CE],
+ ["A1EB",0x33D1],
+ ["A1EA",0x33D2],
+ ["A24F",0x33D5],
+ ["9277",0x3435],
+ ["96DF",0x3440],
+ ["8CF4",0x344A],
+ ["89D5",0x344C],
+ ["93CD",0x3464],
+ ["9BDF",0x3473],
+ ["FA68",0x347A],
+ ["89DA",0x347D],
+ ["8F59",0x347E],
+ ["89DB",0x3493],
+ ["8F5D",0x3496],
+ ["89DC",0x34A5],
+ ["96F7",0x34AF],
+ ["8ADA",0x34BC],
+ ["8BDC",0x34C1],
+ ["97DB",0x34C8],
+ ["9E53",0x34DF],
+ ["9DAA",0x34E4],
+ ["9BEA",0x34FB],
+ ["8A6E",0x3506],
+ ["8BC8",0x353E],
+ ["89E8",0x3551],
+ ["89EA",0x3553],
+ ["8C4B",0x3559],
+ ["FB70",0x3561],
+ ["89ED",0x356D],
+ ["94DD",0x3570],
+ ["89EE",0x3572],
+ ["9EB4",0x3577],
+ ["8AD3",0x3578],
+ ["92DB",0x3584],
+ ["94DB",0x3597],
+ ["89F9",0x3598],
+ ["FB7A",0x35A1],
+ ["89FB",0x35A5],
+ ["9EFC",0x35AD],
+ ["89FC",0x35BF],
+ ["89BF",0x35C1],
+ ["89FE",0x35C5],
+ ["89E6",0x35C7],
+ ["9D46",0x35CA],
+ ["9DEE",0x35CE],
+ ["A07E",0x35D2],
+ ["A068",0x35D6],
+ ["98E9",0x35DB],
+ ["8B68",0x35DD],
+ ["8DFD",0x35F1],
+ ["8BBE",0x35F2],
+ ["9FD9",0x35F3],
+ ["8AEB",0x35FB],
+ ["9FD7",0x35FE],
+ ["8B6A",0x3609],
+ ["9C5C",0x3618],
+ ["8BB1",0x361A],
+ ["FB5E",0x3623],
+ ["8770",0x3625],
+ ["9DF3",0x362D],
+ ["A0D0",0x3635],
+ ["FC66",0x3639],
+ ["92E9",0x363E],
+ ["9AEC",0x3647],
+ ["8FAB",0x3648],
+ ["FA48",0x3649],
+ ["8E45",0x364E],
+ ["9C6F",0x365F],
+ ["8D5C",0x3661],
+ ["9EDE",0x367A],
+ ["89EF",0x3681],
+ ["96E9",0x369A],
+ ["9EBB",0x36A5],
+ ["94DE",0x36AA],
+ ["9EB8",0x36AC],
+ ["97BA",0x36B0],
+ ["FB65",0x36B1],
+ ["95D6",0x36B5],
+ ["9CBB",0x36B9],
+ ["97DA",0x36BC],
+ ["8F45",0x36C1],
+ ["FB7D",0x36C3],
+ ["9158",0x36C4],
+ ["FE64",0x36C5],
+ ["9856",0x36C7],
+ ["9B4D",0x36C8],
+ ["935B",0x36D3],
+ ["95C7",0x36D4],
+ ["97E7",0x36D6],
+ ["9359",0x36DD],
+ ["91F5",0x36E1],
+ ["97B8",0x36E2],
+ ["FDA2",0x36E5],
+ ["FBB6",0x36E6],
+ ["92FA",0x36F5],
+ ["9357",0x3701],
+ ["8BA6",0x3703],
+ ["FBB9",0x3708],
+ ["97B0",0x370A],
+ ["FDC4",0x370D],
+ ["9CA1",0x371C],
+ ["91F2",0x3722],
+ ["91F9",0x3723],
+ ["8FF1",0x3725],
+ ["9745",0x372C],
+ ["9853",0x372D],
+ ["FE78",0x3730],
+ ["FBC1",0x3732],
+ ["9251",0x3733],
+ ["9DAD",0x373A],
+ ["FD6C",0x3740],
+ ["FA6B",0x3743],
+ ["9BC2",0x3762],
+ ["9A7B",0x376F],
+ ["8B60",0x3797],
+ ["934B",0x37A0],
+ ["9ABD",0x37B9],
+ ["91B7",0x37BE],
+ ["8D4B",0x37D6],
+ ["95B4",0x37F2],
+ ["FEC5",0x37F8],
+ ["9EF0",0x37FB],
+ ["8D64",0x380F],
+ ["9269",0x3819],
+ ["8D67",0x3820],
+ ["FBEA",0x382D],
+ ["FBEF",0x3836],
+ ["8D68",0x3838],
+ ["93EB",0x3863],
+ ["FC42",0x38A0],
+ ["9166",0x38C3],
+ ["FACD",0x38CC],
+ ["93DD",0x38D1],
+ ["8D52",0x38D4],
+ ["8BCC",0x38FA],
+ ["8D6D",0x3908],
+ ["8D6E",0x3914],
+ ["96A8",0x3927],
+ ["FCA6",0x3932],
+ ["8D6F",0x393F],
+ ["8D70",0x394D],
+ ["FC64",0x3963],
+ ["8CF3",0x3978],
+ ["9060",0x3980],
+ ["8D74",0x3989],
+ ["97C3",0x398A],
+ ["8AD0",0x3992],
+ ["9274",0x3999],
+ ["9BBE",0x399B],
+ ["9CC8",0x39A1],
+ ["9CBA",0x39A4],
+ ["8D78",0x39B8],
+ ["9EB9",0x39DC],
+ ["955A",0x39E2],
+ ["91B4",0x39E5],
+ ["8A48",0x39EC],
+ ["8D7D",0x39F8],
+ ["8A7D",0x39FB],
+ ["8AC2",0x39FE],
+ ["FD4A",0x3A01],
+ ["8DA1",0x3A03],
+ ["8AD1",0x3A06],
+ ["FCB4",0x3A17],
+ ["8B47",0x3A18],
+ ["93A4",0x3A29],
+ ["9EDA",0x3A2A],
+ ["8A51",0x3A34],
+ ["8DA6",0x3A4B],
+ ["9EC5",0x3A52],
+ ["FCC4",0x3A57],
+ ["A078",0x3A5C],
+ ["94B5",0x3A5E],
+ ["FCC2",0x3A66],
+ ["8A6B",0x3A67],
+ ["8DAB",0x3A97],
+ ["FAE8",0x3AAB],
+ ["8DAD",0x3ABD],
+ ["FC49",0x3ADE],
+ ["93C1",0x3AE0],
+ ["906F",0x3AF0],
+ ["8DB0",0x3AF2],
+ ["947E",0x3AFB],
+ ["90FA",0x3B0E],
+ ["9479",0x3B19],
+ ["8DB2",0x3B22],
+ ["FCEE",0x3B2B],
+ ["997B",0x3B39],
+ ["8DB4",0x3B42],
+ ["8DB7",0x3B58],
+ ["91B3",0x3B60],
+ ["8DBB",0x3B71],
+ ["8DBA",0x3B72],
+ ["8DBC",0x3B7B],
+ ["9044",0x3B7C],
+ ["FD4C",0x3B80],
+ ["874B",0x3B95],
+ ["93E4",0x3B96],
+ ["93E0",0x3B99],
+ ["FD53",0x3BA1],
+ ["8DC3",0x3BBC],
+ ["9BB8",0x3BBE],
+ ["FBF0",0x3BC2],
+ ["93E9",0x3BC4],
+ ["93F6",0x3BD7],
+ ["8DC5",0x3BDD],
+ ["8DCA",0x3BEC],
+ ["8DCC",0x3BF2],
+ ["FD5D",0x3BF3],
+ ["93B5",0x3BF4],
+ ["FD61",0x3C0D],
+ ["9CF8",0x3C11],
+ ["9252",0x3C15],
+ ["A0E8",0x3C18],
+ ["9CA5",0x3C54],
+ ["8C56",0x3C8B],
+ ["8DD6",0x3CCB],
+ ["97C0",0x3CCD],
+ ["A0DE",0x3CD1],
+ ["97D2",0x3CD6],
+ ["FAA5",0x3CDC],
+ ["FDA3",0x3CEB],
+ ["8DDB",0x3CEF],
+ ["8CEA",0x3D12],
+ ["8EAF",0x3D13],
+ ["91B5",0x3D1D],
+ ["FD49",0x3D32],
+ ["FDD1",0x3D3B],
+ ["8DEB",0x3D46],
+ ["97C6",0x3D4C],
+ ["FDCE",0x3D4E],
+ ["90FC",0x3D51],
+ ["FC59",0x3D5F],
+ ["96D6",0x3D62],
+ ["97C5",0x3D69],
+ ["8DEF",0x3D6A],
+ ["97D7",0x3D6F],
+ ["8DF0",0x3D75],
+ ["96A6",0x3D7D],
+ ["FBBF",0x3D85],
+ ["8CDF",0x3D88],
+ ["8DF3",0x3D8A],
+ ["9449",0x3D8F],
+ ["8DF5",0x3D91],
+ ["9872",0x3DA5],
+ ["8E6B",0x3DAD],
+ ["FAFD",0x3DB4],
+ ["8F50",0x3DBF],
+ ["9DCC",0x3DC6],
+ ["FC65",0x3DC7],
+ ["8C44",0x3DC9],
+ ["996E",0x3DCC],
+ ["94A1",0x3DCD],
+ ["8F63",0x3DD3],
+ ["A0DA",0x3DDB],
+ ["9253",0x3DE7],
+ ["FDE9",0x3DE8],
+ ["9DB5",0x3DEB],
+ ["9879",0x3DF3],
+ ["876A",0x3DF4],
+ ["9D5D",0x3DF7],
+ ["8D63",0x3DFC],
+ ["9669",0x3DFD],
+ ["9F70",0x3E06],
+ ["FC6A",0x3E40],
+ ["8AC7",0x3E43],
+ ["89D7",0x3E48],
+ ["FE4D",0x3E55],
+ ["9EDD",0x3E74],
+ ["FEFB",0x3EA8],
+ ["98BC",0x3EA9],
+ ["FACC",0x3EAA],
+ ["95B0",0x3EAD],
+ ["9464",0x3EB1],
+ ["936F",0x3EB8],
+ ["94B9",0x3EBF],
+ ["95EC",0x3EC2],
+ ["91EE",0x3EC7],
+ ["98C3",0x3ECA],
+ ["95F6",0x3ECC],
+ ["8FFD",0x3ED0],
+ ["98C5",0x3ED1],
+ ["9766",0x3ED6],
+ ["FE6E",0x3ED7],
+ ["97DD",0x3EDA],
+ ["8CAA",0x3EDB],
+ ["92D2",0x3EDE],
+ ["9761",0x3EE1],
+ ["98CB",0x3EE2],
+ ["95F0",0x3EE7],
+ ["975D",0x3EE9],
+ ["91E3",0x3EEB],
+ ["98CC",0x3EF0],
+ ["9469",0x3EF3],
+ ["98CD",0x3EF4],
+ ["98CE",0x3EFA],
+ ["95FC",0x3EFC],
+ ["94A3",0x3EFF],
+ ["9662",0x3F00],
+ ["FEB6",0x3F04],
+ ["9463",0x3F06],
+ ["8D47",0x3F07],
+ ["98D0",0x3F0E],
+ ["98D1",0x3F53],
+ ["9475",0x3F58],
+ ["FAE0",0x3F59],
+ ["9472",0x3F63],
+ ["98D6",0x3F7C],
+ ["8AF0",0x3F93],
+ ["98D9",0x3FC0],
+ ["8D5A",0x3FC8],
+ ["98DB",0x3FD7],
+ ["98DD",0x3FDC],
+ ["98A8",0x3FE5],
+ ["8A6D",0x3FED],
+ ["8AFB",0x3FF9],
+ ["8AAE",0x3FFA],
+ ["FBC9",0x4004],
+ ["8C5D",0x4009],
+ ["98E4",0x401D],
+ ["98E6",0x4039],
+ ["98E8",0x4045],
+ ["8A4D",0x4053],
+ ["9257",0x4057],
+ ["95DF",0x4062],
+ ["A0AC",0x4065],
+ ["98EB",0x406A],
+ ["98EC",0x406F],
+ ["8CC3",0x4071],
+ ["98F4",0x40A8],
+ ["8AB8",0x40BB],
+ ["9EE7",0x40BF],
+ ["94BC",0x40C8],
+ ["FCD1",0x40D8],
+ ["9CC6",0x40DF],
+ ["8D4A",0x40F8],
+ ["9E7E",0x40FA],
+ ["8D44",0x4102],
+ ["98FE",0x4103],
+ ["FDE8",0x4104],
+ ["9940",0x4109],
+ ["94C9",0x410E],
+ ["94D3",0x4132],
+ ["9946",0x4167],
+ ["90C0",0x416C],
+ ["94D1",0x416E],
+ ["8D4E",0x417C],
+ ["9573",0x417F],
+ ["93C2",0x4190],
+ ["9948",0x41B2],
+ ["994B",0x41C4],
+ ["8E55",0x41CA],
+ ["994E",0x41CF],
+ ["8EFE",0x41DB],
+ ["8D5F",0x41ED],
+ ["8E59",0x41EF],
+ ["94EC",0x41F9],
+ ["94EF",0x4211],
+ ["8C60",0x4223],
+ ["8F74",0x4240],
+ ["9955",0x4260],
+ ["9544",0x426A],
+ ["8CCB",0x4276],
+ ["9956",0x427A],
+ ["9959",0x428C],
+ ["995B",0x4294],
+ ["8CC4",0x42A2],
+ ["FA45",0x42B5],
+ ["90B7",0x42B9],
+ ["9743",0x42BC],
+ ["95CD",0x42F4],
+ ["97C9",0x42FB],
+ ["FD50",0x42FC],
+ ["8EB9",0x432B],
+ ["95C6",0x436E],
+ ["9967",0x4397],
+ ["8CE3",0x439A],
+ ["8AB9",0x43BA],
+ ["8DFC",0x43C1],
+ ["8A76",0x43D9],
+ ["9D51",0x43DF],
+ ["9973",0x43ED],
+ ["8740",0x43F0],
+ ["9D4F",0x43F2],
+ ["997A",0x4401],
+ ["9564",0x4402],
+ ["99A1",0x4413],
+ ["99A5",0x4425],
+ ["99A7",0x442D],
+ ["8EED",0x447A],
+ ["99AD",0x448F],
+ ["C87E",0x4491],
+ ["946E",0x449F],
+ ["8F70",0x44A0],
+ ["FAD0",0x44A2],
+ ["99B3",0x44B0],
+ ["A053",0x44B7],
+ ["8D5E",0x44BD],
+ ["965C",0x44C0],
+ ["8CE0",0x44C3],
+ ["FD7A",0x44C5],
+ ["97FE",0x44CE],
+ ["92BD",0x44DD],
+ ["8D5D",0x44DE],
+ ["97FD",0x44DF],
+ ["8F64",0x44E4],
+ ["FCF7",0x44E9],
+ ["9562",0x44EA],
+ ["97CD",0x44EB],
+ ["9E64",0x44EC],
+ ["924C",0x44F4],
+ ["8EC9",0x4503],
+ ["99BC",0x4504],
+ ["9DA5",0x4509],
+ ["8F54",0x450B],
+ ["8F7C",0x4516],
+ ["8D55",0x451B],
+ ["8EA2",0x451D],
+ ["8F7A",0x4527],
+ ["97AE",0x452E],
+ ["96C8",0x4533],
+ ["8CE4",0x4536],
+ ["99C3",0x453B],
+ ["90D6",0x453D],
+ ["9CBE",0x453F],
+ ["8F76",0x4543],
+ ["9470",0x4551],
+ ["FB4B",0x4552],
+ ["FDCA",0x4555],
+ ["8CEF",0x4558],
+ ["8EC7",0x455C],
+ ["8D54",0x4561],
+ ["A0F9",0x4562],
+ ["8FA9",0x456A],
+ ["8D51",0x456D],
+ ["99C7",0x4577],
+ ["8744",0x4578],
+ ["90D7",0x4585],
+ ["8743",0x45A6],
+ ["8747",0x45B3],
+ ["8758",0x45DA],
+ ["9EDF",0x45E9],
+ ["8D59",0x45EA],
+ ["8742",0x4603],
+ ["99CE",0x4606],
+ ["8FBA",0x460F],
+ ["8FEB",0x4615],
+ ["99CF",0x4617],
+ ["8FC2",0x465B],
+ ["92C9",0x467A],
+ ["97DC",0x4680],
+ ["875D",0x46A1],
+ ["8D45",0x46BB],
+ ["95B3",0x46CF],
+ ["9C79",0x46D0],
+ ["95B2",0x46F5],
+ ["8D4C",0x46F7],
+ ["8FDB",0x4713],
+ ["9BE3",0x4718],
+ ["874C",0x4736],
+ ["874D",0x4744],
+ ["9E7A",0x474E],
+ ["8757",0x474F],
+ ["9BEE",0x477C],
+ ["99DE",0x4798],
+ ["FAFA",0x47A6],
+ ["8A52",0x47D5],
+ ["99E1",0x47ED],
+ ["8A67",0x47F4],
+ ["8BB5",0x4800],
+ ["8AAC",0x480B],
+ ["99E9",0x4837],
+ ["FBCA",0x485D],
+ ["97DE",0x4871],
+ ["95D1",0x489B],
+ ["99F5",0x48AD],
+ ["FC4A",0x48AE],
+ ["9BA9",0x48D0],
+ ["FBDC",0x48DD],
+ ["FE56",0x48ED],
+ ["9EA4",0x48F3],
+ ["9D49",0x48FA],
+ ["95DB",0x4906],
+ ["89C5",0x4911],
+ ["99F8",0x491E],
+ ["9664",0x4925],
+ ["9055",0x492A],
+ ["96D4",0x492D],
+ ["977C",0x4935],
+ ["964D",0x493C],
+ ["97E1",0x493E],
+ ["9A48",0x4945],
+ ["9A49",0x4951],
+ ["FE7D",0x4953],
+ ["90AA",0x4965],
+ ["9A50",0x496A],
+ ["9347",0x4972],
+ ["8ED8",0x4989],
+ ["90C9",0x49A1],
+ ["9A55",0x49A7],
+ ["90BC",0x49DF],
+ ["9A58",0x49E5],
+ ["8BB8",0x49E7],
+ ["90D5",0x4A0F],
+ ["9641",0x4A1D],
+ ["9A5A",0x4A24],
+ ["9A5C",0x4A35],
+ ["97C2",0x4A96],
+ ["875C",0x4AA4],
+ ["8ABB",0x4AB4],
+ ["9BAA",0x4AB8],
+ ["90F5",0x4AD1],
+ ["9A60",0x4AE4],
+ ["9145",0x4AFF],
+ ["8C58",0x4B10],
+ ["9A63",0x4B19],
+ ["8C49",0x4B20],
+ ["8BB6",0x4B2C],
+ ["FCCF",0x4B37],
+ ["966B",0x4B6F],
+ ["9A6E",0x4B70],
+ ["914F",0x4B72],
+ ["9746",0x4B7B],
+ ["A0E6",0x4B7E],
+ ["92D7",0x4B8E],
+ ["9675",0x4B90],
+ ["93D4",0x4B93],
+ ["91BB",0x4B96],
+ ["9679",0x4B97],
+ ["9A70",0x4B9D],
+ ["9678",0x4BBD],
+ ["91CD",0x4BBE],
+ ["9C4A",0x4BC0],
+ ["A06F",0x4C04],
+ ["A06A",0x4C07],
+ ["915F",0x4C0E],
+ ["8741",0x4C32],
+ ["9FA5",0x4C3B],
+ ["89BA",0x4C3E],
+ ["874F",0x4C40],
+ ["874E",0x4C47],
+ ["8755",0x4C57],
+ ["9ECD",0x4C5B],
+ ["9A79",0x4C6D],
+ ["8CF2",0x4C77],
+ ["8D57",0x4C7B],
+ ["9DCE",0x4C7D],
+ ["8CD2",0x4C81],
+ ["8759",0x4C85],
+ ["9D73",0x4CA4],
+ ["96B9",0x4CAE],
+ ["96BC",0x4CB0],
+ ["9CD1",0x4CB7],
+ ["89B7",0x4CCD],
+ ["9EEE",0x4CE1],
+ ["8749",0x4CE2],
+ ["FB43",0x4CED],
+ ["875B",0x4D07],
+ ["9EC9",0x4D09],
+ ["FBD3",0x4D10],
+ ["91AE",0x4D34],
+ ["8D58",0x4D76],
+ ["8746",0x4D77],
+ ["8D56",0x4D89],
+ ["9D78",0x4D91],
+ ["9D7B",0x4D9C],
+ ["A440",0x4E00],
+ ["A442",0x4E01],
+ ["A443",0x4E03],
+ ["9EB3",0x4E04],
+ ["C945",0x4E07],
+ ["A456",0x4E08],
+ ["A454",0x4E09],
+ ["A457",0x4E0A],
+ ["A455",0x4E0B],
+ ["C946",0x4E0C],
+ ["A4A3",0x4E0D],
+ ["C94F",0x4E0E],
+ ["C94D",0x4E0F],
+ ["A4A2",0x4E10],
+ ["A4A1",0x4E11],
+ ["A542",0x4E14],
+ ["A541",0x4E15],
+ ["A540",0x4E16],
+ ["A543",0x4E18],
+ ["A4FE",0x4E19],
+ ["9EB2",0x4E1A],
+ ["9DD6",0x4E1C],
+ ["A5E0",0x4E1E],
+ ["A5E1",0x4E1F],
+ ["994F",0x4E21],
+ ["89CE",0x4E24],
+ ["A8C3",0x4E26],
+ ["8BC0",0x4E28],
+ ["9FC4",0x4E2A],
+ ["A458",0x4E2B],
+ ["8BD4",0x4E2C],
+ ["A4A4",0x4E2D],
+ ["C950",0x4E2E],
+ ["8C72",0x4E2F],
+ ["A4A5",0x4E30],
+ ["C963",0x4E31],
+ ["A6EA",0x4E32],
+ ["CBB1",0x4E33],
+ ["C6BF",0x4E36],
+ ["8BF9",0x4E37],
+ ["A459",0x4E38],
+ ["A4A6",0x4E39],
+ ["A544",0x4E3B],
+ ["C964",0x4E3C],
+ ["8946",0x4E3D],
+ ["C6C0",0x4E3F],
+ ["C940",0x4E42],
+ ["A444",0x4E43],
+ ["A45B",0x4E45],
+ ["C947",0x4E47],
+ ["A45C",0x4E48],
+ ["FAE5",0x4E49],
+ ["A4A7",0x4E4B],
+ ["A545",0x4E4D],
+ ["A547",0x4E4E],
+ ["A546",0x4E4F],
+ ["A5E2",0x4E52],
+ ["A5E3",0x4E53],
+ ["A8C4",0x4E56],
+ ["ADBC",0x4E58],
+ ["A441",0x4E59],
+ ["C87B",0x4E5A],
+ ["8BC6",0x4E5B],
+ ["C941",0x4E5C],
+ ["A445",0x4E5D],
+ ["A45E",0x4E5E],
+ ["A45D",0x4E5F],
+ ["A5E4",0x4E69],
+ ["9C57",0x4E6A],
+ ["A8C5",0x4E73],
+ ["9AFB",0x4E78],
+ ["B0AE",0x4E7E],
+ ["D44B",0x4E7F],
+ ["89D0",0x4E80],
+ ["89CF",0x4E81],
+ ["B6C3",0x4E82],
+ ["DCB1",0x4E83],
+ ["DCB2",0x4E84],
+ ["C6C1",0x4E85],
+ ["A446",0x4E86],
+ ["89D1",0x4E87],
+ ["A4A9",0x4E88],
+ ["89E2",0x4E89],
+ ["A8C6",0x4E8B],
+ ["A447",0x4E8C],
+ ["C948",0x4E8D],
+ ["A45F",0x4E8E],
+ ["A4AA",0x4E91],
+ ["A4AC",0x4E92],
+ ["C951",0x4E93],
+ ["A4AD",0x4E94],
+ ["A4AB",0x4E95],
+ ["927E",0x4E98],
+ ["A5E5",0x4E99],
+ ["9DBA",0x4E9A],
+ ["A8C7",0x4E9B],
+ ["A8C8",0x4E9E],
+ ["AB45",0x4E9F],
+ ["C6C2",0x4EA0],
+ ["A460",0x4EA1],
+ ["A4AE",0x4EA2],
+ ["8C6F",0x4EA3],
+ ["A5E6",0x4EA4],
+ ["A5E8",0x4EA5],
+ ["A5E7",0x4EA6],
+ ["A6EB",0x4EA8],
+ ["A8C9",0x4EAB],
+ ["A8CA",0x4EAC],
+ ["AB46",0x4EAD],
+ ["AB47",0x4EAE],
+ ["ADBD",0x4EB3],
+ ["DCB3",0x4EB6],
+ ["FBF8",0x4EB7],
+ ["F6D6",0x4EB9],
+ ["A448",0x4EBA],
+ ["8BC7",0x4EBB],
+ ["926B",0x4EBC],
+ ["89D2",0x4EBF],
+ ["A4B0",0x4EC0],
+ ["A4AF",0x4EC1],
+ ["C952",0x4EC2],
+ ["A4B1",0x4EC3],
+ ["A4B7",0x4EC4],
+ ["A4B2",0x4EC6],
+ ["A4B3",0x4EC7],
+ ["C954",0x4EC8],
+ ["C953",0x4EC9],
+ ["A4B5",0x4ECA],
+ ["A4B6",0x4ECB],
+ ["A4B4",0x4ECD],
+ ["9FCF",0x4ECE],
+ ["A54A",0x4ED4],
+ ["A54B",0x4ED5],
+ ["A54C",0x4ED6],
+ ["A54D",0x4ED7],
+ ["A549",0x4ED8],
+ ["A550",0x4ED9],
+ ["C96A",0x4EDA],
+ ["C966",0x4EDC],
+ ["C969",0x4EDD],
+ ["A551",0x4EDE],
+ ["A561",0x4EDF],
+ ["C968",0x4EE1],
+ ["A54E",0x4EE3],
+ ["A54F",0x4EE4],
+ ["A548",0x4EE5],
+ ["C965",0x4EE8],
+ ["C967",0x4EE9],
+ ["9DA9",0x4EEA],
+ ["89D3",0x4EEB],
+ ["99E2",0x4EEE],
+ ["A5F5",0x4EF0],
+ ["C9B0",0x4EF1],
+ ["A5F2",0x4EF2],
+ ["A5F6",0x4EF3],
+ ["C9BA",0x4EF4],
+ ["C9AE",0x4EF5],
+ ["A5F3",0x4EF6],
+ ["C9B2",0x4EF7],
+ ["9267",0x4EF8],
+ ["A5F4",0x4EFB],
+ ["A5F7",0x4EFD],
+ ["A5E9",0x4EFF],
+ ["C9B1",0x4F00],
+ ["A5F8",0x4F01],
+ ["C9B5",0x4F02],
+ ["92A4",0x4F03],
+ ["C9B9",0x4F04],
+ ["C9B6",0x4F05],
+ ["C9B3",0x4F08],
+ ["A5EA",0x4F09],
+ ["A5EC",0x4F0A],
+ ["A5F9",0x4F0B],
+ ["A5EE",0x4F0D],
+ ["C9AB",0x4F0E],
+ ["A5F1",0x4F0F],
+ ["A5EF",0x4F10],
+ ["A5F0",0x4F11],
+ ["C9BB",0x4F12],
+ ["C9B8",0x4F13],
+ ["C9AF",0x4F14],
+ ["A5ED",0x4F15],
+ ["8C73",0x4F17],
+ ["C9AC",0x4F18],
+ ["A5EB",0x4F19],
+ ["894E",0x4F1A],
+ ["C9B4",0x4F1D],
+ ["C9B7",0x4F22],
+ ["894F",0x4F28],
+ ["9278",0x4F29],
+ ["C9AD",0x4F2C],
+ ["CA66",0x4F2D],
+ ["A742",0x4F2F],
+ ["A6F4",0x4F30],
+ ["91B6",0x4F32],
+ ["CA67",0x4F33],
+ ["A6F1",0x4F34],
+ ["A744",0x4F36],
+ ["89D4",0x4F37],
+ ["A6F9",0x4F38],
+ ["9FD2",0x4F39],
+ ["A6F8",0x4F3A],
+ ["CA5B",0x4F3B],
+ ["A6FC",0x4F3C],
+ ["A6F7",0x4F3D],
+ ["CA60",0x4F3E],
+ ["CA68",0x4F3F],
+ ["CA64",0x4F41],
+ ["92A7",0x4F42],
+ ["A6FA",0x4F43],
+ ["95A2",0x4F45],
+ ["A6FD",0x4F46],
+ ["A6EE",0x4F47],
+ ["A747",0x4F48],
+ ["CA5D",0x4F49],
+ ["926E",0x4F4B],
+ ["CBBD",0x4F4C],
+ ["A6EC",0x4F4D],
+ ["A743",0x4F4E],
+ ["A6ED",0x4F4F],
+ ["A6F5",0x4F50],
+ ["A6F6",0x4F51],
+ ["CA62",0x4F52],
+ ["CA5E",0x4F53],
+ ["A6FB",0x4F54],
+ ["A6F3",0x4F55],
+ ["CA5A",0x4F56],
+ ["A6EF",0x4F57],
+ ["CA65",0x4F58],
+ ["A745",0x4F59],
+ ["A748",0x4F5A],
+ ["A6F2",0x4F5B],
+ ["A740",0x4F5C],
+ ["A746",0x4F5D],
+ ["A6F0",0x4F5E],
+ ["CA63",0x4F5F],
+ ["A741",0x4F60],
+ ["CA69",0x4F61],
+ ["CA5C",0x4F62],
+ ["A6FE",0x4F63],
+ ["CA5F",0x4F64],
+ ["CA61",0x4F67],
+ ["A8D8",0x4F69],
+ ["CBBF",0x4F6A],
+ ["CBCB",0x4F6B],
+ ["A8D0",0x4F6C],
+ ["CBCC",0x4F6E],
+ ["A8CB",0x4F6F],
+ ["A8D5",0x4F70],
+ ["96EA",0x4F72],
+ ["A8CE",0x4F73],
+ ["CBB9",0x4F74],
+ ["A8D6",0x4F75],
+ ["CBB8",0x4F76],
+ ["CBBC",0x4F77],
+ ["CBC3",0x4F78],
+ ["CBC1",0x4F79],
+ ["A8DE",0x4F7A],
+ ["A8D9",0x4F7B],
+ ["CBB3",0x4F7C],
+ ["CBB5",0x4F7D],
+ ["A8DB",0x4F7E],
+ ["A8CF",0x4F7F],
+ ["CBB6",0x4F80],
+ ["CBC2",0x4F81],
+ ["CBC9",0x4F82],
+ ["A8D4",0x4F83],
+ ["CBBB",0x4F84],
+ ["CBB4",0x4F85],
+ ["A8D3",0x4F86],
+ ["CBB7",0x4F87],
+ ["A8D7",0x4F88],
+ ["CBBA",0x4F89],
+ ["926F",0x4F8A],
+ ["A8D2",0x4F8B],
+ ["A8CD",0x4F8D],
+ ["A8DC",0x4F8F],
+ ["CBC4",0x4F90],
+ ["A8DD",0x4F91],
+ ["CBC8",0x4F92],
+ ["CBC6",0x4F94],
+ ["CBCA",0x4F95],
+ ["A8DA",0x4F96],
+ ["CBBE",0x4F97],
+ ["CBB2",0x4F98],
+ ["CBC0",0x4F9A],
+ ["A8D1",0x4F9B],
+ ["CBC5",0x4F9C],
+ ["A8CC",0x4F9D],
+ ["CBC7",0x4F9E],
+ ["92A3",0x4FA2],
+ ["8950",0x4FA8],
+ ["FA57",0x4FAB],
+ ["AB56",0x4FAE],
+ ["AB4A",0x4FAF],
+ ["9866",0x4FB0],
+ ["CDE0",0x4FB2],
+ ["CDE8",0x4FB3],
+ ["8CF8",0x4FB4],
+ ["AB49",0x4FB5],
+ ["AB51",0x4FB6],
+ ["AB5D",0x4FB7],
+ ["CDEE",0x4FB9],
+ ["CDEC",0x4FBA],
+ ["CDE7",0x4FBB],
+ ["89D6",0x4FBD],
+ ["AB4B",0x4FBF],
+ ["CDED",0x4FC0],
+ ["CDE3",0x4FC1],
+ ["AB59",0x4FC2],
+ ["AB50",0x4FC3],
+ ["AB58",0x4FC4],
+ ["CDDE",0x4FC5],
+ ["CDEA",0x4FC7],
+ ["98B2",0x4FC8],
+ ["CDE1",0x4FC9],
+ ["AB54",0x4FCA],
+ ["CDE2",0x4FCB],
+ ["92AB",0x4FCC],
+ ["CDDD",0x4FCD],
+ ["AB5B",0x4FCE],
+ ["AB4E",0x4FCF],
+ ["AB57",0x4FD0],
+ ["AB4D",0x4FD1],
+ ["CDDF",0x4FD3],
+ ["CDE4",0x4FD4],
+ ["CDEB",0x4FD6],
+ ["AB55",0x4FD7],
+ ["AB52",0x4FD8],
+ ["CDE6",0x4FD9],
+ ["AB5A",0x4FDA],
+ ["CDE9",0x4FDB],
+ ["CDE5",0x4FDC],
+ ["AB4F",0x4FDD],
+ ["AB5C",0x4FDE],
+ ["AB53",0x4FDF],
+ ["AB4C",0x4FE0],
+ ["AB48",0x4FE1],
+ ["96DE",0x4FE4],
+ ["92AC",0x4FE5],
+ ["CDEF",0x4FEC],
+ ["ADD7",0x4FEE],
+ ["ADC1",0x4FEF],
+ ["8C70",0x4FF0],
+ ["ADD1",0x4FF1],
+ ["9F6E",0x4FF2],
+ ["ADD6",0x4FF3],
+ ["D0D0",0x4FF4],
+ ["D0CF",0x4FF5],
+ ["D0D4",0x4FF6],
+ ["D0D5",0x4FF7],
+ ["ADC4",0x4FF8],
+ ["8EF2",0x4FF9],
+ ["ADCD",0x4FFA],
+ ["9F6C",0x4FFD],
+ ["ADDA",0x4FFE],
+ ["ADCE",0x5000],
+ ["89D8",0x5003],
+ ["D0C9",0x5005],
+ ["ADC7",0x5006],
+ ["D0CA",0x5007],
+ ["FA59",0x5008],
+ ["ADDC",0x5009],
+ ["ADD3",0x500B],
+ ["ADBE",0x500C],
+ ["ADBF",0x500D],
+ ["D0DD",0x500E],
+ ["B0BF",0x500F],
+ ["ADCC",0x5011],
+ ["ADCB",0x5012],
+ ["D0CB",0x5013],
+ ["ADCF",0x5014],
+ ["D45B",0x5015],
+ ["ADC6",0x5016],
+ ["D0D6",0x5017],
+ ["ADD5",0x5018],
+ ["ADD4",0x5019],
+ ["ADCA",0x501A],
+ ["D0CE",0x501B],
+ ["D0D7",0x501C],
+ ["D0C8",0x501E],
+ ["ADC9",0x501F],
+ ["D0D8",0x5020],
+ ["ADD2",0x5021],
+ ["D0CC",0x5022],
+ ["ADC0",0x5023],
+ ["ADC3",0x5025],
+ ["ADC2",0x5026],
+ ["D0D9",0x5027],
+ ["ADD0",0x5028],
+ ["ADC5",0x5029],
+ ["ADD9",0x502A],
+ ["ADDB",0x502B],
+ ["D0D3",0x502C],
+ ["ADD8",0x502D],
+ ["92A8",0x502E],
+ ["D0DB",0x502F],
+ ["D0CD",0x5030],
+ ["D0DC",0x5031],
+ ["D0D1",0x5033],
+ ["9163",0x5034],
+ ["D0DA",0x5035],
+ ["D0D2",0x5037],
+ ["8C40",0x503B],
+ ["ADC8",0x503C],
+ ["D463",0x5040],
+ ["D457",0x5041],
+ ["B0B3",0x5043],
+ ["D45C",0x5045],
+ ["D462",0x5046],
+ ["B0B2",0x5047],
+ ["D455",0x5048],
+ ["B0B6",0x5049],
+ ["D459",0x504A],
+ ["D452",0x504B],
+ ["B0B4",0x504C],
+ ["D456",0x504D],
+ ["B0B9",0x504E],
+ ["B0BE",0x504F],
+ ["D467",0x5051],
+ ["D451",0x5053],
+ ["B0BA",0x5055],
+ ["9F73",0x5056],
+ ["D466",0x5057],
+ ["92AD",0x5058],
+ ["B0B5",0x505A],
+ ["D458",0x505B],
+ ["B0B1",0x505C],
+ ["D453",0x505D],
+ ["D44F",0x505E],
+ ["D45D",0x505F],
+ ["D450",0x5060],
+ ["D44E",0x5061],
+ ["D45A",0x5062],
+ ["D460",0x5063],
+ ["D461",0x5064],
+ ["B0B7",0x5065],
+ ["9BE9",0x5066],
+ ["D85B",0x5068],
+ ["D45E",0x5069],
+ ["D44D",0x506A],
+ ["D45F",0x506B],
+ ["92A9",0x506C],
+ ["B0C1",0x506D],
+ ["D464",0x506E],
+ ["B0C0",0x506F],
+ ["D44C",0x5070],
+ ["D454",0x5072],
+ ["D465",0x5073],
+ ["B0BC",0x5074],
+ ["B0BB",0x5075],
+ ["B0B8",0x5076],
+ ["B0BD",0x5077],
+ ["B0AF",0x507A],
+ ["B0B0",0x507D],
+ ["B3C8",0x5080],
+ ["92AA",0x5081],
+ ["D85E",0x5082],
+ ["D857",0x5083],
+ ["B3C5",0x5085],
+ ["D85F",0x5087],
+ ["89D9",0x5088],
+ ["D855",0x508B],
+ ["D858",0x508C],
+ ["B3C4",0x508D],
+ ["D859",0x508E],
+ ["FD56",0x5090],
+ ["B3C7",0x5091],
+ ["D85D",0x5092],
+ ["D853",0x5094],
+ ["D852",0x5095],
+ ["B3C9",0x5096],
+ ["B3CA",0x5098],
+ ["B3C6",0x5099],
+ ["B3CB",0x509A],
+ ["D851",0x509B],
+ ["D85C",0x509C],
+ ["D85A",0x509D],
+ ["D854",0x509E],
+ ["B3C3",0x50A2],
+ ["D856",0x50A3],
+ ["9FA8",0x50A6],
+ ["B6CA",0x50AC],
+ ["B6C4",0x50AD],
+ ["DCB7",0x50AE],
+ ["B6CD",0x50AF],
+ ["DCBD",0x50B0],
+ ["DCC0",0x50B1],
+ ["B6C6",0x50B2],
+ ["B6C7",0x50B3],
+ ["DCBA",0x50B4],
+ ["B6C5",0x50B5],
+ ["DCC3",0x50B6],
+ ["B6CB",0x50B7],
+ ["DCC4",0x50B8],
+ ["DCBF",0x50BA],
+ ["B6CC",0x50BB],
+ ["8C71",0x50BC],
+ ["DCB4",0x50BD],
+ ["B6C9",0x50BE],
+ ["DCB5",0x50BF],
+ ["DCBE",0x50C1],
+ ["DCBC",0x50C2],
+ ["DCB8",0x50C4],
+ ["B6C8",0x50C5],
+ ["DCB6",0x50C6],
+ ["B6CE",0x50C7],
+ ["DCBB",0x50C8],
+ ["DCC2",0x50C9],
+ ["DCB9",0x50CA],
+ ["DCC1",0x50CB],
+ ["92A1",0x50CD],
+ ["B9B6",0x50CE],
+ ["B9B3",0x50CF],
+ ["90E3",0x50D0],
+ ["B9B4",0x50D1],
+ ["E0F9",0x50D3],
+ ["E0F1",0x50D4],
+ ["B9B2",0x50D5],
+ ["B9AF",0x50D6],
+ ["E0F2",0x50D7],
+ ["A0A6",0x50D9],
+ ["B9B1",0x50DA],
+ ["E0F5",0x50DB],
+ ["E0F7",0x50DD],
+ ["94AB",0x50DF],
+ ["E0FE",0x50E0],
+ ["FC72",0x50E1],
+ ["E0FD",0x50E3],
+ ["E0F8",0x50E4],
+ ["B9AE",0x50E5],
+ ["E0F0",0x50E6],
+ ["B9AC",0x50E7],
+ ["E0F3",0x50E8],
+ ["B9B7",0x50E9],
+ ["E0F6",0x50EA],
+ ["E0FA",0x50EC],
+ ["B9B0",0x50ED],
+ ["B9AD",0x50EE],
+ ["E0FC",0x50EF],
+ ["E0FB",0x50F0],
+ ["B9B5",0x50F1],
+ ["E0F4",0x50F3],
+ ["97C4",0x50F4],
+ ["BBF8",0x50F5],
+ ["E4EC",0x50F6],
+ ["E4E9",0x50F8],
+ ["BBF9",0x50F9],
+ ["BBF7",0x50FB],
+ ["92AE",0x50FC],
+ ["E4F0",0x50FD],
+ ["E4ED",0x50FE],
+ ["E4E6",0x50FF],
+ ["BBF6",0x5100],
+ ["FA67",0x5101],
+ ["BBFA",0x5102],
+ ["E4E7",0x5103],
+ ["BBF5",0x5104],
+ ["BBFD",0x5105],
+ ["E4EA",0x5106],
+ ["E4EB",0x5107],
+ ["BBFB",0x5108],
+ ["BBFC",0x5109],
+ ["E4F1",0x510A],
+ ["E4EE",0x510B],
+ ["E4EF",0x510C],
+ ["92A2",0x510D],
+ ["FA69",0x510E],
+ ["BEAA",0x5110],
+ ["E8F8",0x5111],
+ ["BEA7",0x5112],
+ ["E8F5",0x5113],
+ ["BEA9",0x5114],
+ ["BEAB",0x5115],
+ ["E8F6",0x5117],
+ ["BEA8",0x5118],
+ ["E8F7",0x511A],
+ ["E8F4",0x511C],
+ ["C076",0x511F],
+ ["ECBD",0x5120],
+ ["C077",0x5121],
+ ["ECBB",0x5122],
+ ["ECBC",0x5124],
+ ["ECBA",0x5125],
+ ["ECB9",0x5126],
+ ["ECBE",0x5129],
+ ["C075",0x512A],
+ ["9268",0x512B],
+ ["EFB8",0x512D],
+ ["EFB9",0x512E],
+ ["E4E8",0x5130],
+ ["EFB7",0x5131],
+ ["C078",0x5132],
+ ["C35F",0x5133],
+ ["F1EB",0x5134],
+ ["F1EC",0x5135],
+ ["C4D7",0x5137],
+ ["C4D8",0x5138],
+ ["F5C1",0x5139],
+ ["F5C0",0x513A],
+ ["C56C",0x513B],
+ ["C56B",0x513C],
+ ["F7D0",0x513D],
+ ["A449",0x513F],
+ ["A461",0x5140],
+ ["A4B9",0x5141],
+ ["A4B8",0x5143],
+ ["A553",0x5144],
+ ["A552",0x5145],
+ ["A5FC",0x5146],
+ ["A5FB",0x5147],
+ ["A5FD",0x5148],
+ ["A5FA",0x5149],
+ ["A74A",0x514B],
+ ["A749",0x514C],
+ ["A74B",0x514D],
+ ["A8E0",0x5152],
+ ["A8DF",0x5154],
+ ["A8E1",0x5155],
+ ["8951",0x5156],
+ ["AB5E",0x5157],
+ ["A259",0x5159],
+ ["D0DE",0x515A],
+ ["A25A",0x515B],
+ ["B0C2",0x515C],
+ ["A25C",0x515D],
+ ["A25B",0x515E],
+ ["D860",0x515F],
+ ["FA6F",0x5160],
+ ["A25D",0x5161],
+ ["B9B8",0x5162],
+ ["A25E",0x5163],
+ ["A44A",0x5165],
+ ["A4BA",0x5167],
+ ["A5FE",0x5168],
+ ["A8E2",0x5169],
+ ["FA71",0x516A],
+ ["A44B",0x516B],
+ ["A4BD",0x516C],
+ ["A4BB",0x516D],
+ ["A4BC",0x516E],
+ ["A640",0x5171],
+ ["8952",0x5174],
+ ["A74C",0x5175],
+ ["A8E4",0x5176],
+ ["A8E3",0x5177],
+ ["A8E5",0x5178],
+ ["945A",0x5179],
+ ["ADDD",0x517C],
+ ["BEAC",0x5180],
+ ["C6C3",0x5182],
+ ["89DD",0x5186],
+ ["C94E",0x5187],
+ ["C8A2",0x5188],
+ ["A554",0x5189],
+ ["A555",0x518A],
+ ["A641",0x518D],
+ ["CA6A",0x518F],
+ ["AB60",0x5191],
+ ["AB5F",0x5192],
+ ["D0E0",0x5193],
+ ["D0DF",0x5194],
+ ["B0C3",0x5195],
+ ["C6C4",0x5196],
+ ["A4BE",0x5197],
+ ["C955",0x5198],
+ ["9E52",0x519A],
+ ["8953",0x519C],
+ ["CBCD",0x519E],
+ ["AB61",0x51A0],
+ ["ADE0",0x51A2],
+ ["ADDE",0x51A4],
+ ["ADDF",0x51A5],
+ ["9E55",0x51A7],
+ ["92BA",0x51A8],
+ ["BEAD",0x51AA],
+ ["C6C5",0x51AB],
+ ["A556",0x51AC],
+ ["8C5B",0x51AE],
+ ["A642",0x51B0],
+ ["C9BC",0x51B1],
+ ["FA7D",0x51B2],
+ ["FAA8",0x51B3],
+ ["9A68",0x51B4],
+ ["FA47",0x51B5],
+ ["A74D",0x51B6],
+ ["A74E",0x51B7],
+ ["FA7E",0x51B8],
+ ["CA6B",0x51B9],
+ ["CBCE",0x51BC],
+ ["A8E6",0x51BD],
+ ["CBCF",0x51BE],
+ ["92BB",0x51C3],
+ ["D0E2",0x51C4],
+ ["D0E3",0x51C5],
+ ["ADE3",0x51C6],
+ ["FDB6",0x51C7],
+ ["D0E4",0x51C8],
+ ["FAA2",0x51C9],
+ ["D0E1",0x51CA],
+ ["ADE4",0x51CB],
+ ["ADE2",0x51CC],
+ ["ADE1",0x51CD],
+ ["D0E5",0x51CE],
+ ["FAA3",0x51CF],
+ ["D468",0x51D0],
+ ["FAA4",0x51D1],
+ ["9BB4",0x51D2],
+ ["FAA6",0x51D3],
+ ["D861",0x51D4],
+ ["DCC5",0x51D7],
+ ["E140",0x51D8],
+ ["89DF",0x51DB],
+ ["BBFE",0x51DC],
+ ["BEAE",0x51DD],
+ ["E8F9",0x51DE],
+ ["FDDB",0x51DF],
+ ["A44C",0x51E0],
+ ["A45A",0x51E1],
+ ["FAA9",0x51E2],
+ ["8954",0x51E4],
+ ["FAAB",0x51ED],
+ ["B0C4",0x51F0],
+ ["B3CD",0x51F1],
+ ["B9B9",0x51F3],
+ ["FC7A",0x51F4],
+ ["C942",0x51F5],
+ ["A4BF",0x51F6],
+ ["A559",0x51F8],
+ ["A557",0x51F9],
+ ["A558",0x51FA],
+ ["89E0",0x51FC],
+ ["A8E7",0x51FD],
+ ["9F4F",0x51FE],
+ ["A44D",0x5200],
+ ["A44E",0x5201],
+ ["C87D",0x5202],
+ ["A462",0x5203],
+ ["89E1",0x5205],
+ ["A4C0",0x5206],
+ ["A4C1",0x5207],
+ ["A4C2",0x5208],
+ ["C9BE",0x5209],
+ ["A55A",0x520A],
+ ["FAB0",0x520B],
+ ["C96B",0x520C],
+ ["A646",0x520E],
+ ["C9BF",0x5210],
+ ["A644",0x5211],
+ ["A645",0x5212],
+ ["C9BD",0x5213],
+ ["A647",0x5216],
+ ["A643",0x5217],
+ ["CA6C",0x521C],
+ ["AAEC",0x521D],
+ ["CA6D",0x521E],
+ ["9FCD",0x521F],
+ ["A0E7",0x5220],
+ ["CA6E",0x5221],
+ ["A750",0x5224],
+ ["A74F",0x5225],
+ ["FAB1",0x5226],
+ ["89A6",0x5227],
+ ["A753",0x5228],
+ ["A751",0x5229],
+ ["A752",0x522A],
+ ["A8ED",0x522E],
+ ["A8EC",0x5230],
+ ["CBD4",0x5231],
+ ["CBD1",0x5232],
+ ["CBD2",0x5233],
+ ["9EFA",0x5234],
+ ["CBD0",0x5235],
+ ["A8EE",0x5236],
+ ["A8EA",0x5237],
+ ["A8E9",0x5238],
+ ["A8EB",0x523A],
+ ["A8E8",0x523B],
+ ["FAB2",0x523C],
+ ["A8EF",0x5241],
+ ["AB63",0x5243],
+ ["CDF0",0x5244],
+ ["CBD3",0x5246],
+ ["AB68",0x5247],
+ ["CDF1",0x5249],
+ ["AB64",0x524A],
+ ["AB67",0x524B],
+ ["AB66",0x524C],
+ ["AB65",0x524D],
+ ["AB62",0x524E],
+ ["D0E8",0x5252],
+ ["ADE7",0x5254],
+ ["D0EB",0x5255],
+ ["ADE5",0x5256],
+ ["FAB4",0x5257],
+ ["92C4",0x5259],
+ ["D0E7",0x525A],
+ ["ADE8",0x525B],
+ ["ADE6",0x525C],
+ ["ADE9",0x525D],
+ ["D0E9",0x525E],
+ ["D0EA",0x525F],
+ ["9F6F",0x5260],
+ ["D0E6",0x5261],
+ ["D0EC",0x5262],
+ ["8BB0",0x5268],
+ ["B3D1",0x5269],
+ ["B0C5",0x526A],
+ ["D469",0x526B],
+ ["D46B",0x526C],
+ ["D46A",0x526D],
+ ["D46C",0x526E],
+ ["B0C6",0x526F],
+ ["B3CE",0x5272],
+ ["9FAC",0x5273],
+ ["B3CF",0x5274],
+ ["B3D0",0x5275],
+ ["B6D0",0x5277],
+ ["DCC7",0x5278],
+ ["89E3",0x5279],
+ ["DCC6",0x527A],
+ ["DCC8",0x527B],
+ ["DCC9",0x527C],
+ ["B6D1",0x527D],
+ ["B6CF",0x527F],
+ ["E141",0x5280],
+ ["E142",0x5281],
+ ["B9BB",0x5282],
+ ["B9BA",0x5283],
+ ["E35A",0x5284],
+ ["BC40",0x5287],
+ ["BC41",0x5288],
+ ["BC42",0x5289],
+ ["BC44",0x528A],
+ ["E4F2",0x528B],
+ ["E4F3",0x528C],
+ ["BC43",0x528D],
+ ["9BD3",0x528F],
+ ["89E4",0x5290],
+ ["BEAF",0x5291],
+ ["BEB0",0x5293],
+ ["FAB5",0x5294],
+ ["F1ED",0x5296],
+ ["F5C3",0x5297],
+ ["F5C2",0x5298],
+ ["F7D1",0x5299],
+ ["9FD5",0x529A],
+ ["A44F",0x529B],
+ ["A55C",0x529F],
+ ["A55B",0x52A0],
+ ["8955",0x52A1],
+ ["A648",0x52A3],
+ ["92C5",0x52A4],
+ ["C9C0",0x52A6],
+ ["8956",0x52A8],
+ ["A755",0x52A9],
+ ["A756",0x52AA],
+ ["A754",0x52AB],
+ ["A757",0x52AC],
+ ["CA6F",0x52AD],
+ ["CA70",0x52AE],
+ ["FAB3",0x52B5],
+ ["FAB6",0x52B9],
+ ["A8F1",0x52BB],
+ ["CBD5",0x52BC],
+ ["A8F0",0x52BE],
+ ["CDF2",0x52C0],
+ ["AB6C",0x52C1],
+ ["CDF3",0x52C2],
+ ["AB6B",0x52C3],
+ ["FAB7",0x52C5],
+ ["AB69",0x52C7],
+ ["AB6A",0x52C9],
+ ["9EDC",0x52CC],
+ ["D0ED",0x52CD],
+ ["FBC4",0x52D0],
+ ["9F71",0x52D1],
+ ["B0C7",0x52D2],
+ ["D46E",0x52D3],
+ ["B0CA",0x52D5],
+ ["D46D",0x52D6],
+ ["B1E5",0x52D7],
+ ["B0C9",0x52D8],
+ ["B0C8",0x52D9],
+ ["B3D4",0x52DB],
+ ["B3D3",0x52DD],
+ ["B3D2",0x52DE],
+ ["B6D2",0x52DF],
+ ["FABA",0x52E0],
+ ["92C7",0x52E1],
+ ["B6D5",0x52E2],
+ ["B6D6",0x52E3],
+ ["B6D4",0x52E4],
+ ["B6D3",0x52E6],
+ ["E143",0x52E9],
+ ["E144",0x52EB],
+ ["E4F5",0x52EF],
+ ["BC45",0x52F0],
+ ["E4F4",0x52F1],
+ ["BEB1",0x52F3],
+ ["ECBF",0x52F4],
+ ["C079",0x52F5],
+ ["F1EE",0x52F7],
+ ["C455",0x52F8],
+ ["C6C6",0x52F9],
+ ["A463",0x52FA],
+ ["A4C3",0x52FB],
+ ["C956",0x52FC],
+ ["A4C4",0x52FE],
+ ["A4C5",0x52FF],
+ ["9A4C",0x5301],
+ ["A55D",0x5305],
+ ["A55E",0x5306],
+ ["A649",0x5308],
+ ["CA71",0x5309],
+ ["CBD6",0x530A],
+ ["CBD7",0x530B],
+ ["AB6D",0x530D],
+ ["D0EE",0x530E],
+ ["B0CC",0x530F],
+ ["B0CB",0x5310],
+ ["D863",0x5311],
+ ["D862",0x5312],
+ ["A450",0x5315],
+ ["A4C6",0x5316],
+ ["A55F",0x5317],
+ ["B0CD",0x5319],
+ ["C943",0x531A],
+ ["C96C",0x531C],
+ ["A560",0x531D],
+ ["C9C2",0x531F],
+ ["A64B",0x5320],
+ ["A64A",0x5321],
+ ["C9C1",0x5322],
+ ["A758",0x5323],
+ ["8C68",0x5324],
+ ["89E5",0x5327],
+ ["ADEA",0x532A],
+ ["9F7D",0x532C],
+ ["D46F",0x532D],
+ ["B6D7",0x532F],
+ ["E145",0x5330],
+ ["B9BC",0x5331],
+ ["A0A9",0x5332],
+ ["FAC4",0x5333],
+ ["E8FA",0x5334],
+ ["F3FD",0x5337],
+ ["C6C7",0x5338],
+ ["A4C7",0x5339],
+ ["8957",0x533B],
+ ["CBD8",0x533C],
+ ["CDF4",0x533D],
+ ["B0D0",0x533E],
+ ["B0CE",0x533F],
+ ["B0CF",0x5340],
+ ["A451",0x5341],
+ ["FAAA",0x5342],
+ ["A464",0x5343],
+ ["A2CD",0x5344],
+ ["A4CA",0x5345],
+ ["A4C9",0x5347],
+ ["A4C8",0x5348],
+ ["A563",0x5349],
+ ["A562",0x534A],
+ ["C96D",0x534C],
+ ["C9C3",0x534D],
+ ["8958",0x534E],
+ ["A8F5",0x5351],
+ ["A8F2",0x5352],
+ ["A8F4",0x5353],
+ ["A8F3",0x5354],
+ ["AB6E",0x5357],
+ ["B3D5",0x535A],
+ ["A452",0x535C],
+ ["8BE3",0x535D],
+ ["A4CB",0x535E],
+ ["8B61",0x535F],
+ ["A565",0x5360],
+ ["A564",0x5361],
+ ["CA72",0x5363],
+ ["9AF1",0x5364],
+ ["A8F6",0x5366],
+ ["9EB7",0x5367],
+ ["C6C8",0x5369],
+ ["C957",0x536C],
+ ["FAD1",0x536D],
+ ["A567",0x536E],
+ ["A566",0x536F],
+ ["A64C",0x5370],
+ ["A64D",0x5371],
+ ["CA73",0x5372],
+ ["A759",0x5373],
+ ["FAD2",0x5374],
+ ["A75A",0x5375],
+ ["A8F7",0x5377],
+ ["A8F8",0x5378],
+ ["A8F9",0x5379],
+ ["AB6F",0x537B],
+ ["CDF5",0x537C],
+ ["9EBA",0x537D],
+ ["FAD4",0x537E],
+ ["ADEB",0x537F],
+ ["C944",0x5382],
+ ["A4CC",0x5384],
+ ["C9C4",0x538A],
+ ["CA74",0x538E],
+ ["CA75",0x538F],
+ ["CBD9",0x5392],
+ ["FAD9",0x5393],
+ ["CBDA",0x5394],
+ ["CDF7",0x5396],
+ ["CDF6",0x5397],
+ ["CDF9",0x5398],
+ ["CDF8",0x5399],
+ ["AB70",0x539A],
+ ["D470",0x539C],
+ ["ADED",0x539D],
+ ["D0EF",0x539E],
+ ["ADEC",0x539F],
+ ["FADB",0x53A0],
+ ["9CE0",0x53A2],
+ ["D864",0x53A4],
+ ["B3D6",0x53A5],
+ ["FBF7",0x53A6],
+ ["D865",0x53A7],
+ ["FBFA",0x53A8],
+ ["89E7",0x53A9],
+ ["A07A",0x53AA],
+ ["FADC",0x53AB],
+ ["E146",0x53AC],
+ ["B9BD",0x53AD],
+ ["FADD",0x53AE],
+ ["89E9",0x53B0],
+ ["BC46",0x53B2],
+ ["F1EF",0x53B4],
+ ["C6C9",0x53B6],
+ ["C958",0x53B9],
+ ["A568",0x53BB],
+ ["FAE2",0x53C1],
+ ["89EB",0x53C2],
+ ["B0D1",0x53C3],
+ ["FAE3",0x53C5],
+ ["A453",0x53C8],
+ ["A465",0x53C9],
+ ["A4CE",0x53CA],
+ ["A4CD",0x53CB],
+ ["90C8",0x53CC],
+ ["A4CF",0x53CD],
+ ["92DA",0x53D0],
+ ["8959",0x53D1],
+ ["9CF5",0x53D2],
+ ["A8FB",0x53D4],
+ ["A8FA",0x53D6],
+ ["A8FC",0x53D7],
+ ["895A",0x53D8],
+ ["FAE7",0x53D9],
+ ["9FA2",0x53DA],
+ ["AB71",0x53DB],
+ ["ADEE",0x53DF],
+ ["FAEA",0x53E0],
+ ["E8FB",0x53E1],
+ ["C24F",0x53E2],
+ ["A466",0x53E3],
+ ["A56A",0x53E4],
+ ["A579",0x53E5],
+ ["A574",0x53E6],
+ ["A56F",0x53E8],
+ ["A56E",0x53E9],
+ ["A575",0x53EA],
+ ["A573",0x53EB],
+ ["A56C",0x53EC],
+ ["A57A",0x53ED],
+ ["A56D",0x53EE],
+ ["A569",0x53EF],
+ ["A578",0x53F0],
+ ["A577",0x53F1],
+ ["A576",0x53F2],
+ ["A56B",0x53F3],
+ ["A572",0x53F5],
+ ["FAED",0x53F6],
+ ["8FAD",0x53F7],
+ ["A571",0x53F8],
+ ["A57B",0x53FB],
+ ["A570",0x53FC],
+ ["FB59",0x53FE],
+ ["A653",0x5401],
+ ["A659",0x5403],
+ ["A655",0x5404],
+ ["A65B",0x5406],
+ ["C9C5",0x5407],
+ ["A658",0x5408],
+ ["A64E",0x5409],
+ ["A651",0x540A],
+ ["A654",0x540B],
+ ["A650",0x540C],
+ ["A657",0x540D],
+ ["A65A",0x540E],
+ ["A64F",0x540F],
+ ["A652",0x5410],
+ ["A656",0x5411],
+ ["A65C",0x5412],
+ ["FAEF",0x5413],
+ ["96EF",0x5414],
+ ["9DEC",0x5416],
+ ["CA7E",0x5418],
+ ["CA7B",0x5419],
+ ["9DCA",0x541A],
+ ["A767",0x541B],
+ ["CA7C",0x541C],
+ ["A75B",0x541D],
+ ["A75D",0x541E],
+ ["A775",0x541F],
+ ["A770",0x5420],
+ ["FD6D",0x5421],
+ ["89EC",0x5423],
+ ["CAA5",0x5424],
+ ["CA7D",0x5425],
+ ["A75F",0x5426],
+ ["A761",0x5427],
+ ["CAA4",0x5428],
+ ["A768",0x5429],
+ ["CA78",0x542A],
+ ["A774",0x542B],
+ ["A776",0x542C],
+ ["A75C",0x542D],
+ ["A76D",0x542E],
+ ["FB44",0x542F],
+ ["CA76",0x5430],
+ ["A773",0x5431],
+ ["9DE2",0x5432],
+ ["A764",0x5433],
+ ["8C75",0x5434],
+ ["A76E",0x5435],
+ ["A76F",0x5436],
+ ["CA77",0x5437],
+ ["A76C",0x5438],
+ ["A76A",0x5439],
+ ["A76B",0x543B],
+ ["A771",0x543C],
+ ["CAA1",0x543D],
+ ["A75E",0x543E],
+ ["A772",0x5440],
+ ["CAA3",0x5441],
+ ["A766",0x5442],
+ ["A763",0x5443],
+ ["CA7A",0x5445],
+ ["A762",0x5446],
+ ["CAA6",0x5447],
+ ["A765",0x5448],
+ ["A769",0x544A],
+ ["9EC0",0x544B],
+ ["9E56",0x544D],
+ ["A760",0x544E],
+ ["CAA2",0x544F],
+ ["CA79",0x5454],
+ ["CBEB",0x5460],
+ ["CBEA",0x5461],
+ ["A94F",0x5462],
+ ["CBED",0x5463],
+ ["CBEF",0x5464],
+ ["CBE4",0x5465],
+ ["CBE7",0x5466],
+ ["CBEE",0x5467],
+ ["A950",0x5468],
+ ["9F79",0x5469],
+ ["9AC7",0x546A],
+ ["CBE1",0x546B],
+ ["CBE5",0x546C],
+ ["FAF4",0x546D],
+ ["CBE9",0x546F],
+ ["CE49",0x5470],
+ ["A94B",0x5471],
+ ["CE4D",0x5472],
+ ["A8FD",0x5473],
+ ["CBE6",0x5474],
+ ["A8FE",0x5475],
+ ["A94C",0x5476],
+ ["A945",0x5477],
+ ["A941",0x5478],
+ ["CBE2",0x547A],
+ ["A944",0x547B],
+ ["A949",0x547C],
+ ["A952",0x547D],
+ ["CBE3",0x547E],
+ ["CBDC",0x547F],
+ ["A943",0x5480],
+ ["CBDD",0x5481],
+ ["CBDF",0x5482],
+ ["A946",0x5484],
+ ["98A1",0x5485],
+ ["A948",0x5486],
+ ["CBDB",0x5487],
+ ["CBE0",0x5488],
+ ["A951",0x548B],
+ ["A94D",0x548C],
+ ["CBE8",0x548D],
+ ["A953",0x548E],
+ ["FAF8",0x548F],
+ ["A94A",0x5490],
+ ["CBDE",0x5491],
+ ["A947",0x5492],
+ ["89F0",0x5493],
+ ["9E47",0x5494],
+ ["A942",0x5495],
+ ["A940",0x5496],
+ ["9DF7",0x5497],
+ ["CBEC",0x5498],
+ ["A94E",0x549A],
+ ["9FD3",0x549C],
+ ["9ACA",0x549E],
+ ["CE48",0x54A0],
+ ["CDFB",0x54A1],
+ ["CE4B",0x54A2],
+ ["89F1",0x54A3],
+ ["FAF9",0x54A4],
+ ["CDFD",0x54A5],
+ ["AB78",0x54A6],
+ ["ABA8",0x54A7],
+ ["AB74",0x54A8],
+ ["ABA7",0x54A9],
+ ["AB7D",0x54AA],
+ ["ABA4",0x54AB],
+ ["AB72",0x54AC],
+ ["CDFC",0x54AD],
+ ["CE43",0x54AE],
+ ["ABA3",0x54AF],
+ ["CE4F",0x54B0],
+ ["ABA5",0x54B1],
+ ["8E5A",0x54B2],
+ ["AB79",0x54B3],
+ ["89F2",0x54B4],
+ ["CE45",0x54B6],
+ ["CE42",0x54B7],
+ ["AB77",0x54B8],
+ ["89F3",0x54B9],
+ ["CDFA",0x54BA],
+ ["ABA6",0x54BB],
+ ["CE4A",0x54BC],
+ ["AB7C",0x54BD],
+ ["CE4C",0x54BE],
+ ["ABA9",0x54BF],
+ ["AB73",0x54C0],
+ ["AB7E",0x54C1],
+ ["AB7B",0x54C2],
+ ["CE40",0x54C3],
+ ["ABA1",0x54C4],
+ ["CE46",0x54C5],
+ ["CE47",0x54C6],
+ ["AB7A",0x54C7],
+ ["ABA2",0x54C8],
+ ["AB76",0x54C9],
+ ["925D",0x54CB],
+ ["8B51",0x54CC],
+ ["92E0",0x54CD],
+ ["AB75",0x54CE],
+ ["CDFE",0x54CF],
+ ["89F4",0x54D0],
+ ["CE44",0x54D6],
+ ["9FD4",0x54DA],
+ ["CE4E",0x54DE],
+ ["D144",0x54E0],
+ ["ADFB",0x54E1],
+ ["D0F1",0x54E2],
+ ["8A79",0x54E3],
+ ["D0F6",0x54E4],
+ ["ADF4",0x54E5],
+ ["AE40",0x54E6],
+ ["D0F4",0x54E7],
+ ["ADEF",0x54E8],
+ ["ADF9",0x54E9],
+ ["ADFE",0x54EA],
+ ["D0FB",0x54EB],
+ ["ADFA",0x54ED],
+ ["ADFD",0x54EE],
+ ["89F5",0x54EF],
+ ["D0FE",0x54F1],
+ ["ADF5",0x54F2],
+ ["D0F5",0x54F3],
+ ["D142",0x54F7],
+ ["D143",0x54F8],
+ ["ADF7",0x54FA],
+ ["D141",0x54FB],
+ ["ADF3",0x54FC],
+ ["AE43",0x54FD],
+ ["D0F8",0x54FF],
+ ["ADF1",0x5501],
+ ["97A7",0x5502],
+ ["D146",0x5503],
+ ["D0F9",0x5504],
+ ["D0FD",0x5505],
+ ["ADF6",0x5506],
+ ["AE42",0x5507],
+ ["D0FA",0x5508],
+ ["ADFC",0x5509],
+ ["D140",0x550A],
+ ["D147",0x550B],
+ ["D4A1",0x550C],
+ ["93BA",0x550D],
+ ["D145",0x550E],
+ ["AE44",0x550F],
+ ["ADF0",0x5510],
+ ["D0FC",0x5511],
+ ["D0F3",0x5512],
+ ["9E58",0x5513],
+ ["ADF8",0x5514],
+ ["D0F2",0x5517],
+ ["89F6",0x5518],
+ ["D0F7",0x551A],
+ ["9E57",0x551E],
+ ["89F7",0x5523],
+ ["8A41",0x5525],
+ ["D0F0",0x5526],
+ ["AE41",0x5527],
+ ["89F8",0x5528],
+ ["D477",0x552A],
+ ["FAF1",0x552B],
+ ["B0E4",0x552C],
+ ["D4A7",0x552D],
+ ["B0E2",0x552E],
+ ["B0DF",0x552F],
+ ["D47C",0x5530],
+ ["B0DB",0x5531],
+ ["D4A2",0x5532],
+ ["B0E6",0x5533],
+ ["D476",0x5534],
+ ["D47B",0x5535],
+ ["D47A",0x5536],
+ ["ADF2",0x5537],
+ ["B0E1",0x5538],
+ ["D4A5",0x5539],
+ ["D4A8",0x553B],
+ ["D473",0x553C],
+ ["B3E8",0x553E],
+ ["89FA",0x553F],
+ ["D4A9",0x5540],
+ ["B0E7",0x5541],
+ ["B0D9",0x5543],
+ ["B0D6",0x5544],
+ ["D47E",0x5545],
+ ["B0D3",0x5546],
+ ["FB42",0x5547],
+ ["D4A6",0x5548],
+ ["FABF",0x5549],
+ ["B0DA",0x554A],
+ ["D4AA",0x554B],
+ ["D474",0x554D],
+ ["D4A4",0x554E],
+ ["B0DD",0x554F],
+ ["D475",0x5550],
+ ["D478",0x5551],
+ ["D47D",0x5552],
+ ["FBA3",0x5553],
+ ["B0DE",0x5555],
+ ["B0DC",0x5556],
+ ["B0E8",0x5557],
+ ["B0E3",0x555C],
+ ["FAF7",0x555D],
+ ["B0D7",0x555E],
+ ["B1D2",0x555F],
+ ["B0D8",0x5561],
+ ["D479",0x5562],
+ ["B0E5",0x5563],
+ ["B0E0",0x5564],
+ ["D4A3",0x5565],
+ ["B0D5",0x5566],
+ ["9E4E",0x5569],
+ ["B0D4",0x556A],
+ ["94DC",0x556B],
+ ["95DA",0x5571],
+ ["9DF8",0x5572],
+ ["9F6A",0x5573],
+ ["D471",0x5575],
+ ["D472",0x5576],
+ ["D86A",0x5577],
+ ["8AB7",0x5579],
+ ["B3D7",0x557B],
+ ["B3DA",0x557C],
+ ["D875",0x557D],
+ ["B3EE",0x557E],
+ ["D878",0x557F],
+ ["B3D8",0x5580],
+ ["D871",0x5581],
+ ["B3DE",0x5582],
+ ["B3E4",0x5583],
+ ["B5BD",0x5584],
+ ["FB46",0x5586],
+ ["B3E2",0x5587],
+ ["D86E",0x5588],
+ ["B3EF",0x5589],
+ ["B3DB",0x558A],
+ ["B3E3",0x558B],
+ ["D876",0x558C],
+ ["DCD7",0x558D],
+ ["D87B",0x558E],
+ ["D86F",0x558F],
+ ["8A46",0x5590],
+ ["D866",0x5591],
+ ["D873",0x5592],
+ ["D86D",0x5593],
+ ["B3E1",0x5594],
+ ["D879",0x5595],
+ ["B3DD",0x5598],
+ ["B3F1",0x5599],
+ ["B3EA",0x559A],
+ ["B3DF",0x559C],
+ ["B3DC",0x559D],
+ ["B3E7",0x559F],
+ ["D87A",0x55A1],
+ ["D86C",0x55A2],
+ ["D872",0x55A3],
+ ["D874",0x55A4],
+ ["D868",0x55A5],
+ ["D877",0x55A6],
+ ["B3D9",0x55A7],
+ ["D867",0x55A8],
+ ["FB47",0x55A9],
+ ["B3E0",0x55AA],
+ ["B3F0",0x55AB],
+ ["B3EC",0x55AC],
+ ["D869",0x55AD],
+ ["B3E6",0x55AE],
+ ["9148",0x55B0],
+ ["B3ED",0x55B1],
+ ["B3E9",0x55B2],
+ ["B3E5",0x55B3],
+ ["92DE",0x55B4],
+ ["D870",0x55B5],
+ ["8B53",0x55B9],
+ ["9DF6",0x55BA],
+ ["B3EB",0x55BB],
+ ["9BDA",0x55BC],
+ ["DCD5",0x55BF],
+ ["DCD1",0x55C0],
+ ["9D7E",0x55C1],
+ ["DCE0",0x55C2],
+ ["DCCA",0x55C3],
+ ["DCD3",0x55C4],
+ ["B6E5",0x55C5],
+ ["B6E6",0x55C6],
+ ["B6DE",0x55C7],
+ ["DCDC",0x55C8],
+ ["B6E8",0x55C9],
+ ["DCCF",0x55CA],
+ ["DCCE",0x55CB],
+ ["DCCC",0x55CC],
+ ["DCDE",0x55CD],
+ ["B6DC",0x55CE],
+ ["DCD8",0x55CF],
+ ["DCCD",0x55D0],
+ ["B6DF",0x55D1],
+ ["DCD6",0x55D2],
+ ["B6DA",0x55D3],
+ ["DCD2",0x55D4],
+ ["DCD9",0x55D5],
+ ["DCDB",0x55D6],
+ ["89FD",0x55D7],
+ ["99E4",0x55D8],
+ ["DCDF",0x55D9],
+ ["B6E3",0x55DA],
+ ["DCCB",0x55DB],
+ ["B6DD",0x55DC],
+ ["DCD0",0x55DD],
+ ["9E43",0x55DE],
+ ["B6D8",0x55DF],
+ ["B6E4",0x55E1],
+ ["DCDA",0x55E2],
+ ["B6E0",0x55E3],
+ ["B6E1",0x55E4],
+ ["B6E7",0x55E5],
+ ["B6DB",0x55E6],
+ ["A25F",0x55E7],
+ ["B6D9",0x55E8],
+ ["DCD4",0x55E9],
+ ["9DE9",0x55EA],
+ ["8F52",0x55EC],
+ ["B6E2",0x55EF],
+ ["9DF5",0x55F0],
+ ["9DF0",0x55F1],
+ ["DCDD",0x55F2],
+ ["99E7",0x55F5],
+ ["B9CD",0x55F6],
+ ["B9C8",0x55F7],
+ ["E155",0x55F9],
+ ["E151",0x55FA],
+ ["8BBD",0x55FB],
+ ["E14B",0x55FC],
+ ["B9C2",0x55FD],
+ ["B9BE",0x55FE],
+ ["E154",0x55FF],
+ ["B9BF",0x5600],
+ ["E14E",0x5601],
+ ["E150",0x5602],
+ ["E153",0x5604],
+ ["9DEF",0x5605],
+ ["B9C4",0x5606],
+ ["B9CB",0x5608],
+ ["B9C5",0x5609],
+ ["E149",0x560C],
+ ["B9C6",0x560D],
+ ["B9C7",0x560E],
+ ["E14C",0x560F],
+ ["B9CC",0x5610],
+ ["9FB7",0x5611],
+ ["E14A",0x5612],
+ ["E14F",0x5613],
+ ["B9C3",0x5614],
+ ["E148",0x5615],
+ ["B9C9",0x5616],
+ ["B9C1",0x5617],
+ ["B9C0",0x561B],
+ ["E14D",0x561C],
+ ["E152",0x561D],
+ ["9DD0",0x561E],
+ ["B9CA",0x561F],
+ ["9FEB",0x5620],
+ ["8DA9",0x5621],
+ ["9DCF",0x5622],
+ ["98E1",0x5623],
+ ["9DE5",0x5625],
+ ["E147",0x5627],
+ ["BC4D",0x5629],
+ ["E547",0x562A],
+ ["E544",0x562C],
+ ["9DC8",0x562D],
+ ["BC47",0x562E],
+ ["BC53",0x562F],
+ ["BC54",0x5630],
+ ["BC4A",0x5632],
+ ["E542",0x5633],
+ ["BC4C",0x5634],
+ ["E4F9",0x5635],
+ ["BC52",0x5636],
+ ["FB4F",0x5637],
+ ["E546",0x5638],
+ ["BC49",0x5639],
+ ["E548",0x563A],
+ ["BC48",0x563B],
+ ["E543",0x563D],
+ ["E545",0x563E],
+ ["BC4B",0x563F],
+ ["E541",0x5640],
+ ["E4FA",0x5641],
+ ["E4F7",0x5642],
+ ["9DEB",0x5643],
+ ["D86B",0x5645],
+ ["E4FD",0x5646],
+ ["E4F6",0x5648],
+ ["E4FC",0x5649],
+ ["E4FB",0x564A],
+ ["E4F8",0x564C],
+ ["FB54",0x564D],
+ ["BC4F",0x564E],
+ ["FB55",0x564F],
+ ["9AA2",0x5650],
+ ["8AD6",0x5652],
+ ["BC4E",0x5653],
+ ["9A5F",0x5654],
+ ["BC50",0x5657],
+ ["E4FE",0x5658],
+ ["BEB2",0x5659],
+ ["E540",0x565A],
+ ["9EF5",0x565D],
+ ["E945",0x565E],
+ ["E8FD",0x5660],
+ ["8FB7",0x5661],
+ ["BEBE",0x5662],
+ ["E942",0x5663],
+ ["BEB6",0x5664],
+ ["BEBA",0x5665],
+ ["E941",0x5666],
+ ["BEB9",0x5668],
+ ["BEB5",0x5669],
+ ["BEB8",0x566A],
+ ["BEB3",0x566B],
+ ["BEBD",0x566C],
+ ["E943",0x566D],
+ ["E8FE",0x566E],
+ ["BEBC",0x566F],
+ ["E8FC",0x5670],
+ ["BEBB",0x5671],
+ ["E944",0x5672],
+ ["E940",0x5673],
+ ["BC51",0x5674],
+ ["BEBF",0x5676],
+ ["E946",0x5677],
+ ["BEB7",0x5678],
+ ["BEB4",0x5679],
+ ["9AD2",0x567A],
+ ["9E6A",0x567B],
+ ["9EE8",0x567C],
+ ["ECC6",0x567E],
+ ["ECC8",0x567F],
+ ["C07B",0x5680],
+ ["ECC9",0x5681],
+ ["ECC7",0x5682],
+ ["ECC5",0x5683],
+ ["ECC4",0x5684],
+ ["C07D",0x5685],
+ ["ECC3",0x5686],
+ ["C07E",0x5687],
+ ["8BBF",0x5689],
+ ["91C2",0x568A],
+ ["9D62",0x568B],
+ ["ECC1",0x568C],
+ ["ECC2",0x568D],
+ ["C07A",0x568E],
+ ["C0A1",0x568F],
+ ["C07C",0x5690],
+ ["9260",0x5692],
+ ["ECC0",0x5693],
+ ["C250",0x5695],
+ ["EFBC",0x5697],
+ ["EFBA",0x5698],
+ ["EFBF",0x5699],
+ ["EFBD",0x569A],
+ ["EFBB",0x569C],
+ ["EFBE",0x569D],
+ ["925E",0x569E],
+ ["91C1",0x569F],
+ ["8AC5",0x56A1],
+ ["97A3",0x56A4],
+ ["C360",0x56A5],
+ ["F1F2",0x56A6],
+ ["F1F3",0x56A7],
+ ["C456",0x56A8],
+ ["F1F4",0x56AA],
+ ["F1F0",0x56AB],
+ ["F1F5",0x56AC],
+ ["F1F1",0x56AD],
+ ["C251",0x56AE],
+ ["8B6C",0x56AF],
+ ["8D7E",0x56B1],
+ ["F3FE",0x56B2],
+ ["F441",0x56B3],
+ ["C459",0x56B4],
+ ["F440",0x56B5],
+ ["C458",0x56B6],
+ ["C457",0x56B7],
+ ["9C54",0x56B9],
+ ["C45A",0x56BC],
+ ["F5C5",0x56BD],
+ ["F5C6",0x56BE],
+ ["9DBD",0x56BF],
+ ["C4DA",0x56C0],
+ ["C4D9",0x56C1],
+ ["C4DB",0x56C2],
+ ["F5C4",0x56C3],
+ ["F6D8",0x56C5],
+ ["F6D7",0x56C6],
+ ["C56D",0x56C8],
+ ["C56F",0x56C9],
+ ["C56E",0x56CA],
+ ["F6D9",0x56CB],
+ ["C5C8",0x56CC],
+ ["F8A6",0x56CD],
+ ["C5F1",0x56D1],
+ ["F8A5",0x56D3],
+ ["F8EE",0x56D4],
+ ["9CC5",0x56D6],
+ ["C949",0x56D7],
+ ["A57D",0x56DA],
+ ["A57C",0x56DB],
+ ["A65F",0x56DD],
+ ["A65E",0x56DE],
+ ["C9C7",0x56DF],
+ ["A65D",0x56E0],
+ ["C9C6",0x56E1],
+ ["895B",0x56E2],
+ ["A779",0x56E4],
+ ["CAA9",0x56E5],
+ ["CAA8",0x56E7],
+ ["A777",0x56EA],
+ ["A77A",0x56EB],
+ ["FB5C",0x56ED],
+ ["CAA7",0x56EE],
+ ["FB5B",0x56EF],
+ ["A778",0x56F0],
+ ["FB57",0x56F1],
+ ["CBF0",0x56F7],
+ ["CBF1",0x56F9],
+ ["A954",0x56FA],
+ ["8765",0x56FB],
+ ["98C7",0x56FD],
+ ["ABAA",0x56FF],
+ ["FB5A",0x5700],
+ ["D148",0x5701],
+ ["D149",0x5702],
+ ["AE45",0x5703],
+ ["AE46",0x5704],
+ ["D4AC",0x5707],
+ ["B0E9",0x5708],
+ ["B0EB",0x5709],
+ ["D4AB",0x570A],
+ ["B0EA",0x570B],
+ ["D87C",0x570C],
+ ["B3F2",0x570D],
+ ["B6E9",0x5712],
+ ["B6EA",0x5713],
+ ["DCE1",0x5714],
+ ["9CEE",0x5715],
+ ["B9CF",0x5716],
+ ["B9CE",0x5718],
+ ["E549",0x571A],
+ ["E948",0x571B],
+ ["E947",0x571C],
+ ["92E2",0x571D],
+ ["F96B",0x571E],
+ ["A467",0x571F],
+ ["C959",0x5720],
+ ["C96E",0x5722],
+ ["C96F",0x5723],
+ ["A662",0x5728],
+ ["A666",0x5729],
+ ["C9C9",0x572A],
+ ["A664",0x572C],
+ ["A663",0x572D],
+ ["C9C8",0x572E],
+ ["A665",0x572F],
+ ["A661",0x5730],
+ ["94A7",0x5732],
+ ["A660",0x5733],
+ ["C9CA",0x5734],
+ ["A7A6",0x573B],
+ ["8CCC",0x573D],
+ ["A7A3",0x573E],
+ ["9BD4",0x573F],
+ ["A77D",0x5740],
+ ["CAAA",0x5741],
+ ["FB64",0x5742],
+ ["FB76",0x5743],
+ ["CAAB",0x5745],
+ ["FB60",0x5746],
+ ["A7A1",0x5747],
+ ["CAAD",0x5749],
+ ["A77B",0x574A],
+ ["CAAE",0x574B],
+ ["CAAC",0x574C],
+ ["A77E",0x574D],
+ ["A7A2",0x574E],
+ ["A7A5",0x574F],
+ ["A7A4",0x5750],
+ ["A77C",0x5751],
+ ["CAAF",0x5752],
+ ["99E5",0x5754],
+ ["9AC2",0x5757],
+ ["91FB",0x575B],
+ ["A073",0x575F],
+ ["A959",0x5761],
+ ["CBFE",0x5762],
+ ["A95B",0x5764],
+ ["A95A",0x5766],
+ ["9F72",0x5767],
+ ["CC40",0x5768],
+ ["A958",0x5769],
+ ["A957",0x576A],
+ ["CBF5",0x576B],
+ ["CBF4",0x576D],
+ ["CBF2",0x576F],
+ ["CBF7",0x5770],
+ ["CBF6",0x5771],
+ ["CBF3",0x5772],
+ ["CBFC",0x5773],
+ ["CBFD",0x5774],
+ ["CBFA",0x5775],
+ ["CBF8",0x5776],
+ ["A956",0x5777],
+ ["9FCC",0x577A],
+ ["CBFB",0x577B],
+ ["A95C",0x577C],
+ ["CC41",0x577D],
+ ["98A5",0x577E],
+ ["92E8",0x577F],
+ ["CBF9",0x5780],
+ ["ABAB",0x5782],
+ ["A955",0x5783],
+ ["9BBC",0x5788],
+ ["96F3",0x578A],
+ ["ABAC",0x578B],
+ ["CE54",0x578C],
+ ["92E7",0x578D],
+ ["CE5A",0x578F],
+ ["FC67",0x5790],
+ ["ABB2",0x5793],
+ ["CE58",0x5794],
+ ["CE5E",0x5795],
+ ["CE55",0x5797],
+ ["CE59",0x5798],
+ ["CE5B",0x5799],
+ ["CE5D",0x579A],
+ ["CE57",0x579B],
+ ["8B7D",0x579C],
+ ["CE56",0x579D],
+ ["CE51",0x579E],
+ ["CE52",0x579F],
+ ["ABAD",0x57A0],
+ ["9BF4",0x57A1],
+ ["ABAF",0x57A2],
+ ["ABAE",0x57A3],
+ ["CE53",0x57A4],
+ ["CE5C",0x57A5],
+ ["9EF7",0x57A7],
+ ["9EC1",0x57AA],
+ ["ABB1",0x57AE],
+ ["996F",0x57B4],
+ ["CE50",0x57B5],
+ ["D153",0x57B6],
+ ["D152",0x57B8],
+ ["D157",0x57B9],
+ ["D14E",0x57BA],
+ ["96F1",0x57BB],
+ ["D151",0x57BC],
+ ["D150",0x57BD],
+ ["8E41",0x57BE],
+ ["D154",0x57BF],
+ ["D158",0x57C1],
+ ["AE47",0x57C2],
+ ["AE4A",0x57C3],
+ ["954A",0x57C4],
+ ["D14F",0x57C6],
+ ["D155",0x57C7],
+ ["97E6",0x57C8],
+ ["AE49",0x57CB],
+ ["D14A",0x57CC],
+ ["ABB0",0x57CE],
+ ["D4BA",0x57CF],
+ ["D156",0x57D0],
+ ["D14D",0x57D2],
+ ["AE48",0x57D4],
+ ["D14C",0x57D5],
+ ["96F5",0x57D7],
+ ["D4B1",0x57DC],
+ ["92E6",0x57DD],
+ ["9F42",0x57DE],
+ ["B0EC",0x57DF],
+ ["B0F0",0x57E0],
+ ["D4C1",0x57E1],
+ ["D4AF",0x57E2],
+ ["D4BD",0x57E3],
+ ["B0F1",0x57E4],
+ ["D4BF",0x57E5],
+ ["FB67",0x57E6],
+ ["D4C5",0x57E7],
+ ["D4C9",0x57E9],
+ ["D4C0",0x57EC],
+ ["D4B4",0x57ED],
+ ["D4BC",0x57EE],
+ ["99A9",0x57EF],
+ ["D4CA",0x57F0],
+ ["D4C8",0x57F1],
+ ["D4BE",0x57F2],
+ ["D4B9",0x57F3],
+ ["D4B2",0x57F4],
+ ["D8A6",0x57F5],
+ ["D4B0",0x57F6],
+ ["B0F5",0x57F7],
+ ["D4B7",0x57F8],
+ ["B0F6",0x57F9],
+ ["B0F2",0x57FA],
+ ["D4AD",0x57FB],
+ ["D4C3",0x57FC],
+ ["D4B5",0x57FD],
+ ["FAE6",0x57FE],
+ ["D4B3",0x5800],
+ ["D4C6",0x5801],
+ ["B0F3",0x5802],
+ ["FB69",0x5803],
+ ["D4CC",0x5804],
+ ["B0ED",0x5805],
+ ["B0EF",0x5806],
+ ["D4BB",0x5807],
+ ["D4B6",0x5808],
+ ["AE4B",0x5809],
+ ["B0EE",0x580A],
+ ["D4B8",0x580B],
+ ["D4C7",0x580C],
+ ["D4CB",0x580D],
+ ["D4C2",0x580E],
+ ["D4C4",0x5810],
+ ["97E5",0x5812],
+ ["D4AE",0x5814],
+ ["D8A1",0x5819],
+ ["D8AA",0x581B],
+ ["D8A9",0x581C],
+ ["B3FA",0x581D],
+ ["D8A2",0x581E],
+ ["B3FB",0x5820],
+ ["B3F9",0x5821],
+ ["967D",0x5822],
+ ["D8A4",0x5823],
+ ["B3F6",0x5824],
+ ["D8A8",0x5825],
+ ["FB6C",0x5826],
+ ["D8A3",0x5827],
+ ["D8A5",0x5828],
+ ["D87D",0x5829],
+ ["B3F4",0x582A],
+ ["D8B2",0x582C],
+ ["D8B1",0x582D],
+ ["D8AE",0x582E],
+ ["B3F3",0x582F],
+ ["B3F7",0x5830],
+ ["B3F8",0x5831],
+ ["D14B",0x5832],
+ ["D8AB",0x5833],
+ ["B3F5",0x5834],
+ ["B0F4",0x5835],
+ ["D8AD",0x5836],
+ ["D87E",0x5837],
+ ["D8B0",0x5838],
+ ["D8AF",0x5839],
+ ["99A2",0x583A],
+ ["D8B3",0x583B],
+ ["DCEF",0x583D],
+ ["D8AC",0x583F],
+ ["9ABB",0x5840],
+ ["9A65",0x5844],
+ ["944E",0x5847],
+ ["D8A7",0x5848],
+ ["DCE7",0x5849],
+ ["B6F4",0x584A],
+ ["B6F7",0x584B],
+ ["B6F2",0x584C],
+ ["DCE6",0x584D],
+ ["DCEA",0x584E],
+ ["DCE5",0x584F],
+ ["B6EC",0x5851],
+ ["B6F6",0x5852],
+ ["DCE2",0x5853],
+ ["B6F0",0x5854],
+ ["DCE9",0x5855],
+ ["B6EE",0x5857],
+ ["B6ED",0x5858],
+ ["DCEC",0x5859],
+ ["B6EF",0x585A],
+ ["DCEE",0x585B],
+ ["FB6E",0x585C],
+ ["DCEB",0x585D],
+ ["B6EB",0x585E],
+ ["99DF",0x585F],
+ ["B6F5",0x5862],
+ ["DCF0",0x5863],
+ ["DCE4",0x5864],
+ ["DCED",0x5865],
+ ["DCE3",0x5868],
+ ["98E3",0x5869],
+ ["B6F1",0x586B],
+ ["9254",0x586C],
+ ["B6F3",0x586D],
+ ["DCE8",0x586F],
+ ["DCF1",0x5871],
+ ["967B",0x5872],
+ ["8AAF",0x5873],
+ ["E15D",0x5874],
+ ["B9D0",0x5875],
+ ["E163",0x5876],
+ ["B9D5",0x5879],
+ ["E15F",0x587A],
+ ["E166",0x587B],
+ ["E157",0x587C],
+ ["B9D7",0x587D],
+ ["B9D1",0x587E],
+ ["E15C",0x587F],
+ ["BC55",0x5880],
+ ["E15B",0x5881],
+ ["E164",0x5882],
+ ["B9D2",0x5883],
+ ["B9D6",0x5885],
+ ["E15A",0x5886],
+ ["E160",0x5887],
+ ["E165",0x5888],
+ ["E156",0x5889],
+ ["B9D4",0x588A],
+ ["E15E",0x588B],
+ ["E162",0x588E],
+ ["E168",0x588F],
+ ["E158",0x5890],
+ ["E161",0x5891],
+ ["8C77",0x5892],
+ ["B9D3",0x5893],
+ ["E167",0x5894],
+ ["E159",0x5898],
+ ["8BAF",0x5899],
+ ["9EBD",0x589A],
+ ["BC59",0x589C],
+ ["E54B",0x589D],
+ ["BC57",0x589E],
+ ["BC56",0x589F],
+ ["E54D",0x58A0],
+ ["E552",0x58A1],
+ ["E54E",0x58A3],
+ ["E551",0x58A5],
+ ["BC5C",0x58A6],
+ ["9EE6",0x58A7],
+ ["BEA5",0x58A8],
+ ["BC5B",0x58A9],
+ ["FB6F",0x58AA],
+ ["E54A",0x58AB],
+ ["E550",0x58AC],
+ ["BC5A",0x58AE],
+ ["E54F",0x58AF],
+ ["8EE1",0x58B0],
+ ["E54C",0x58B1],
+ ["BC58",0x58B3],
+ ["9B7D",0x58B5],
+ ["9C7E",0x58B6],
+ ["E94D",0x58BA],
+ ["F9D9",0x58BB],
+ ["E94F",0x58BC],
+ ["E94A",0x58BD],
+ ["BEC1",0x58BE],
+ ["E94C",0x58BF],
+ ["BEC0",0x58C1],
+ ["E94E",0x58C2],
+ ["BEC3",0x58C5],
+ ["E950",0x58C6],
+ ["BEC2",0x58C7],
+ ["E949",0x58C8],
+ ["E94B",0x58C9],
+ ["92EA",0x58CB],
+ ["C0A5",0x58CE],
+ ["ECCC",0x58CF],
+ ["8C78",0x58D0],
+ ["C0A4",0x58D1],
+ ["ECCD",0x58D2],
+ ["C0A3",0x58D3],
+ ["ECCB",0x58D4],
+ ["C0A2",0x58D5],
+ ["ECCA",0x58D6],
+ ["C253",0x58D8],
+ ["C252",0x58D9],
+ ["F1F6",0x58DA],
+ ["F1F8",0x58DB],
+ ["FB72",0x58DC],
+ ["F1F7",0x58DD],
+ ["C361",0x58DE],
+ ["C362",0x58DF],
+ ["FB71",0x58E0],
+ ["C363",0x58E2],
+ ["F442",0x58E3],
+ ["C45B",0x58E4],
+ ["F7D3",0x58E7],
+ ["F7D2",0x58E8],
+ ["C5F2",0x58E9],
+ ["A468",0x58EB],
+ ["A4D0",0x58EC],
+ ["A7A7",0x58EF],
+ ["895C",0x58F0],
+ ["98F0",0x58F2],
+ ["96F2",0x58F3],
+ ["CE5F",0x58F4],
+ ["B3FC",0x58F9],
+ ["B3FD",0x58FA],
+ ["FB74",0x58FB],
+ ["DCF2",0x58FC],
+ ["B9D8",0x58FD],
+ ["E169",0x58FE],
+ ["E553",0x58FF],
+ ["8BC1",0x5902],
+ ["C95A",0x5903],
+ ["895D",0x5904],
+ ["89DE",0x5905],
+ ["CAB0",0x5906],
+ ["895E",0x5907],
+ ["C6CA",0x590A],
+ ["CC42",0x590C],
+ ["CE60",0x590D],
+ ["D159",0x590E],
+ ["AE4C",0x590F],
+ ["FE42",0x5911],
+ ["F1F9",0x5912],
+ ["C4DC",0x5914],
+ ["A469",0x5915],
+ ["A57E",0x5916],
+ ["C970",0x5917],
+ ["A667",0x5919],
+ ["A668",0x591A],
+ ["A95D",0x591C],
+ ["8768",0x591D],
+ ["FB7B",0x591F],
+ ["B0F7",0x5920],
+ ["B9DA",0x5922],
+ ["B9DB",0x5924],
+ ["B9D9",0x5925],
+ ["A46A",0x5927],
+ ["A4D1",0x5929],
+ ["A4D3",0x592A],
+ ["A4D2",0x592B],
+ ["C95B",0x592C],
+ ["A4D4",0x592D],
+ ["A5A1",0x592E],
+ ["C971",0x592F],
+ ["A5A2",0x5931],
+ ["895F",0x5932],
+ ["8960",0x5934],
+ ["A669",0x5937],
+ ["A66A",0x5938],
+ ["C9CB",0x593C],
+ ["A7A8",0x593E],
+ ["CAB1",0x5940],
+ ["A961",0x5944],
+ ["CC43",0x5945],
+ ["A95F",0x5947],
+ ["A960",0x5948],
+ ["A95E",0x5949],
+ ["D15A",0x594A],
+ ["ABB6",0x594E],
+ ["ABB5",0x594F],
+ ["ABB7",0x5950],
+ ["ABB4",0x5951],
+ ["CE61",0x5953],
+ ["A962",0x5954],
+ ["ABB3",0x5955],
+ ["AE4D",0x5957],
+ ["AE4E",0x5958],
+ ["AE4F",0x595A],
+ ["D4CD",0x595C],
+ ["B3FE",0x5960],
+ ["D8B4",0x5961],
+ ["B0F8",0x5962],
+ ["9BCD",0x5965],
+ ["B6F8",0x5967],
+ ["B9DD",0x5969],
+ ["B9DC",0x596A],
+ ["E16A",0x596B],
+ ["BC5D",0x596D],
+ ["BEC4",0x596E],
+ ["EFC0",0x5970],
+ ["F6DA",0x5971],
+ ["F7D4",0x5972],
+ ["A46B",0x5973],
+ ["A5A3",0x5974],
+ ["9DD3",0x5975],
+ ["A5A4",0x5976],
+ ["C9D1",0x5977],
+ ["A66C",0x5978],
+ ["A66F",0x5979],
+ ["C9CF",0x597B],
+ ["C9CD",0x597C],
+ ["A66E",0x597D],
+ ["C9D0",0x597E],
+ ["C9D2",0x597F],
+ ["C9CC",0x5980],
+ ["A671",0x5981],
+ ["A670",0x5982],
+ ["A66D",0x5983],
+ ["A66B",0x5984],
+ ["C9CE",0x5985],
+ ["984C",0x5989],
+ ["A7B3",0x598A],
+ ["A7B0",0x598D],
+ ["CAB6",0x598E],
+ ["CAB9",0x598F],
+ ["CAB8",0x5990],
+ ["A7AA",0x5992],
+ ["A7B2",0x5993],
+ ["9752",0x5994],
+ ["A7AF",0x5996],
+ ["CAB5",0x5997],
+ ["CAB3",0x5998],
+ ["A7AE",0x5999],
+ ["95C3",0x599A],
+ ["A7A9",0x599D],
+ ["A7AC",0x599E],
+ ["9BB6",0x599F],
+ ["CAB4",0x59A0],
+ ["CABB",0x59A1],
+ ["CAB7",0x59A2],
+ ["A7AD",0x59A3],
+ ["A7B1",0x59A4],
+ ["A7B4",0x59A5],
+ ["CAB2",0x59A6],
+ ["CABA",0x59A7],
+ ["A7AB",0x59A8],
+ ["9AB9",0x59AC],
+ ["A967",0x59AE],
+ ["A96F",0x59AF],
+ ["97B3",0x59B0],
+ ["CC4F",0x59B1],
+ ["CC48",0x59B2],
+ ["A970",0x59B3],
+ ["CC53",0x59B4],
+ ["CC44",0x59B5],
+ ["CC4B",0x59B6],
+ ["9F74",0x59B7],
+ ["92F1",0x59B8],
+ ["A966",0x59B9],
+ ["CC45",0x59BA],
+ ["A964",0x59BB],
+ ["CC4C",0x59BC],
+ ["CC50",0x59BD],
+ ["A963",0x59BE],
+ ["8CFA",0x59BF],
+ ["CC51",0x59C0],
+ ["CC4A",0x59C1],
+ ["CC4D",0x59C3],
+ ["97DF",0x59C4],
+ ["A972",0x59C5],
+ ["A969",0x59C6],
+ ["CC54",0x59C7],
+ ["CC52",0x59C8],
+ ["FBA6",0x59C9],
+ ["A96E",0x59CA],
+ ["A96C",0x59CB],
+ ["CC49",0x59CC],
+ ["A96B",0x59CD],
+ ["CC47",0x59CE],
+ ["CC46",0x59CF],
+ ["A96A",0x59D0],
+ ["A968",0x59D1],
+ ["A971",0x59D2],
+ ["A96D",0x59D3],
+ ["A965",0x59D4],
+ ["CC4E",0x59D6],
+ ["ABB9",0x59D8],
+ ["FBAB",0x59D9],
+ ["ABC0",0x59DA],
+ ["CE6F",0x59DB],
+ ["ABB8",0x59DC],
+ ["CE67",0x59DD],
+ ["CE63",0x59DE],
+ ["CE73",0x59E0],
+ ["CE62",0x59E1],
+ ["ABBB",0x59E3],
+ ["CE6C",0x59E4],
+ ["ABBE",0x59E5],
+ ["ABC1",0x59E6],
+ ["ABBC",0x59E8],
+ ["CE70",0x59E9],
+ ["ABBF",0x59EA],
+ ["9877",0x59EB],
+ ["AE56",0x59EC],
+ ["CE76",0x59ED],
+ ["CE64",0x59EE],
+ ["9854",0x59EF],
+ ["95C5",0x59F0],
+ ["CE66",0x59F1],
+ ["CE6D",0x59F2],
+ ["CE71",0x59F3],
+ ["CE75",0x59F4],
+ ["CE72",0x59F5],
+ ["CE6B",0x59F6],
+ ["CE6E",0x59F7],
+ ["9D55",0x59F8],
+ ["FBB2",0x59F9],
+ ["CE68",0x59FA],
+ ["ABC3",0x59FB],
+ ["CE6A",0x59FC],
+ ["CE69",0x59FD],
+ ["CE74",0x59FE],
+ ["ABBA",0x59FF],
+ ["CE65",0x5A00],
+ ["ABC2",0x5A01],
+ ["957E",0x5A02],
+ ["ABBD",0x5A03],
+ ["AE5C",0x5A09],
+ ["D162",0x5A0A],
+ ["9742",0x5A0B],
+ ["AE5B",0x5A0C],
+ ["94E6",0x5A0D],
+ ["D160",0x5A0F],
+ ["AE50",0x5A11],
+ ["92F5",0x5A12],
+ ["AE55",0x5A13],
+ ["D15F",0x5A15],
+ ["D15C",0x5A16],
+ ["D161",0x5A17],
+ ["AE51",0x5A18],
+ ["D15B",0x5A19],
+ ["8CC5",0x5A1A],
+ ["AE54",0x5A1B],
+ ["AE52",0x5A1C],
+ ["D163",0x5A1E],
+ ["AE53",0x5A1F],
+ ["AE57",0x5A20],
+ ["92FD",0x5A21],
+ ["AE58",0x5A23],
+ ["FBA2",0x5A24],
+ ["AE5A",0x5A25],
+ ["9C51",0x5A27],
+ ["AE59",0x5A29],
+ ["94E9",0x5A2A],
+ ["985C",0x5A2B],
+ ["92F0",0x5A2C],
+ ["D15D",0x5A2D],
+ ["D15E",0x5A2E],
+ ["D164",0x5A33],
+ ["D4D4",0x5A35],
+ ["B0F9",0x5A36],
+ ["D8C2",0x5A37],
+ ["D4D3",0x5A38],
+ ["D4E6",0x5A39],
+ ["B140",0x5A3C],
+ ["944C",0x5A3D],
+ ["D4E4",0x5A3E],
+ ["B0FE",0x5A40],
+ ["B0FA",0x5A41],
+ ["D4ED",0x5A42],
+ ["D4DD",0x5A43],
+ ["D4E0",0x5A44],
+ ["916B",0x5A45],
+ ["B143",0x5A46],
+ ["D4EA",0x5A47],
+ ["D4E2",0x5A48],
+ ["B0FB",0x5A49],
+ ["B144",0x5A4A],
+ ["D4E7",0x5A4C],
+ ["D4E5",0x5A4D],
+ ["D4D6",0x5A50],
+ ["D4EB",0x5A51],
+ ["D4DF",0x5A52],
+ ["D4DA",0x5A53],
+ ["8B78",0x5A54],
+ ["D4D0",0x5A55],
+ ["D4EC",0x5A56],
+ ["D4DC",0x5A57],
+ ["D4CF",0x5A58],
+ ["94E2",0x5A59],
+ ["B142",0x5A5A],
+ ["D4E1",0x5A5B],
+ ["D4EE",0x5A5C],
+ ["D4DE",0x5A5D],
+ ["D4D2",0x5A5E],
+ ["D4D7",0x5A5F],
+ ["D4CE",0x5A60],
+ ["984F",0x5A61],
+ ["B141",0x5A62],
+ ["FBB5",0x5A63],
+ ["D4DB",0x5A64],
+ ["D4D8",0x5A65],
+ ["B0FC",0x5A66],
+ ["D4D1",0x5A67],
+ ["9271",0x5A68],
+ ["D4E9",0x5A69],
+ ["B0FD",0x5A6A],
+ ["9365",0x5A6B],
+ ["D4D9",0x5A6C],
+ ["D4D5",0x5A6D],
+ ["985B",0x5A6E],
+ ["D4E8",0x5A70],
+ ["9850",0x5A71],
+ ["B440",0x5A77],
+ ["D8BB",0x5A78],
+ ["97BC",0x5A79],
+ ["D8B8",0x5A7A],
+ ["D8C9",0x5A7B],
+ ["D8BD",0x5A7C],
+ ["D8CA",0x5A7D],
+ ["92F3",0x5A7E],
+ ["B442",0x5A7F],
+ ["9340",0x5A81],
+ ["984D",0x5A82],
+ ["D8C6",0x5A83],
+ ["D8C3",0x5A84],
+ ["9572",0x5A86],
+ ["FDEF",0x5A88],
+ ["D8C4",0x5A8A],
+ ["D8C7",0x5A8B],
+ ["D8CB",0x5A8C],
+ ["D4E3",0x5A8E],
+ ["D8CD",0x5A8F],
+ ["DD47",0x5A90],
+ ["FDC1",0x5A91],
+ ["B443",0x5A92],
+ ["D8CE",0x5A93],
+ ["D8B6",0x5A94],
+ ["D8C0",0x5A95],
+ ["FBBA",0x5A96],
+ ["D8C5",0x5A97],
+ ["92EB",0x5A99],
+ ["B441",0x5A9A],
+ ["B444",0x5A9B],
+ ["D8CC",0x5A9C],
+ ["D8CF",0x5A9D],
+ ["D8BA",0x5A9E],
+ ["D8B7",0x5A9F],
+ ["FC73",0x5AA0],
+ ["97B7",0x5AA1],
+ ["D8B9",0x5AA2],
+ ["876F",0x5AA4],
+ ["D8BE",0x5AA5],
+ ["D8BC",0x5AA6],
+ ["B445",0x5AA7],
+ ["D8C8",0x5AA9],
+ ["FBB4",0x5AAB],
+ ["D8BF",0x5AAC],
+ ["D8C1",0x5AAE],
+ ["D8B5",0x5AAF],
+ ["DCFA",0x5AB0],
+ ["DCF8",0x5AB1],
+ ["B742",0x5AB2],
+ ["B740",0x5AB3],
+ ["DD43",0x5AB4],
+ ["DCF9",0x5AB5],
+ ["DD44",0x5AB6],
+ ["DD40",0x5AB7],
+ ["DCF7",0x5AB8],
+ ["DD46",0x5AB9],
+ ["DCF6",0x5ABA],
+ ["DCFD",0x5ABB],
+ ["B6FE",0x5ABC],
+ ["B6FD",0x5ABD],
+ ["B6FC",0x5ABE],
+ ["DCFB",0x5ABF],
+ ["DD41",0x5AC0],
+ ["B6F9",0x5AC1],
+ ["B741",0x5AC2],
+ ["90A7",0x5AC3],
+ ["DCF4",0x5AC4],
+ ["DCFE",0x5AC6],
+ ["DCF3",0x5AC7],
+ ["DCFC",0x5AC8],
+ ["B6FA",0x5AC9],
+ ["DD42",0x5ACA],
+ ["DCF5",0x5ACB],
+ ["B6FB",0x5ACC],
+ ["DD45",0x5ACD],
+ ["9741",0x5ACE],
+ ["92F4",0x5ACF],
+ ["8772",0x5AD1],
+ ["FBBC",0x5AD3],
+ ["E16E",0x5AD5],
+ ["B9E2",0x5AD6],
+ ["B9E1",0x5AD7],
+ ["B9E3",0x5AD8],
+ ["E17A",0x5AD9],
+ ["E170",0x5ADA],
+ ["E176",0x5ADB],
+ ["E16B",0x5ADC],
+ ["E179",0x5ADD],
+ ["E178",0x5ADE],
+ ["E17C",0x5ADF],
+ ["E175",0x5AE0],
+ ["B9DE",0x5AE1],
+ ["E174",0x5AE2],
+ ["B9E4",0x5AE3],
+ ["9577",0x5AE4],
+ ["E16D",0x5AE5],
+ ["B9DF",0x5AE6],
+ ["E17B",0x5AE8],
+ ["B9E0",0x5AE9],
+ ["E16F",0x5AEA],
+ ["E172",0x5AEB],
+ ["E177",0x5AEC],
+ ["E171",0x5AED],
+ ["E16C",0x5AEE],
+ ["9EE2",0x5AF0],
+ ["8F78",0x5AF2],
+ ["E173",0x5AF3],
+ ["E555",0x5AF4],
+ ["BC61",0x5AF5],
+ ["E558",0x5AF6],
+ ["E557",0x5AF7],
+ ["E55A",0x5AF8],
+ ["E55C",0x5AF9],
+ ["F9DC",0x5AFA],
+ ["BC5F",0x5AFB],
+ ["E556",0x5AFD],
+ ["9672",0x5AFE],
+ ["E554",0x5AFF],
+ ["E55D",0x5B01],
+ ["E55B",0x5B02],
+ ["E559",0x5B03],
+ ["E55F",0x5B05],
+ ["E55E",0x5B07],
+ ["BC63",0x5B08],
+ ["BC5E",0x5B09],
+ ["BC60",0x5B0B],
+ ["BC62",0x5B0C],
+ ["9EB5",0x5B0D],
+ ["E560",0x5B0F],
+ ["E957",0x5B10],
+ ["964B",0x5B11],
+ ["E956",0x5B13],
+ ["E955",0x5B14],
+ ["8CAC",0x5B15],
+ ["E958",0x5B16],
+ ["E951",0x5B17],
+ ["E952",0x5B19],
+ ["E95A",0x5B1A],
+ ["E953",0x5B1B],
+ ["BEC5",0x5B1D],
+ ["E95C",0x5B1E],
+ ["A0FA",0x5B1F],
+ ["E95B",0x5B20],
+ ["E954",0x5B21],
+ ["ECD1",0x5B23],
+ ["C0A8",0x5B24],
+ ["ECCF",0x5B25],
+ ["ECD4",0x5B26],
+ ["ECD3",0x5B27],
+ ["E959",0x5B28],
+ ["C0A7",0x5B2A],
+ ["9575",0x5B2B],
+ ["ECD2",0x5B2C],
+ ["ECCE",0x5B2D],
+ ["ECD6",0x5B2E],
+ ["ECD5",0x5B2F],
+ ["C0A6",0x5B30],
+ ["ECD0",0x5B32],
+ ["BEC6",0x5B34],
+ ["C254",0x5B38],
+ ["EFC1",0x5B3C],
+ ["F1FA",0x5B3D],
+ ["F1FB",0x5B3E],
+ ["F1FC",0x5B3F],
+ ["C45C",0x5B40],
+ ["90DA",0x5B41],
+ ["C45D",0x5B43],
+ ["9367",0x5B44],
+ ["F443",0x5B45],
+ ["FEA4",0x5B46],
+ ["F5C8",0x5B47],
+ ["F5C7",0x5B48],
+ ["90DF",0x5B4A],
+ ["F6DB",0x5B4B],
+ ["F6DC",0x5B4C],
+ ["F7D5",0x5B4D],
+ ["F8A7",0x5B4E],
+ ["9354",0x5B4F],
+ ["A46C",0x5B50],
+ ["A46D",0x5B51],
+ ["A46E",0x5B53],
+ ["A4D5",0x5B54],
+ ["A5A5",0x5B55],
+ ["C9D3",0x5B56],
+ ["A672",0x5B57],
+ ["A673",0x5B58],
+ ["A7B7",0x5B5A],
+ ["A7B8",0x5B5B],
+ ["A7B6",0x5B5C],
+ ["A7B5",0x5B5D],
+ ["A973",0x5B5F],
+ ["CC55",0x5B62],
+ ["A975",0x5B63],
+ ["A974",0x5B64],
+ ["CC56",0x5B65],
+ ["8961",0x5B66],
+ ["8BB4",0x5B68],
+ ["ABC4",0x5B69],
+ ["AE5D",0x5B6B],
+ ["D165",0x5B6C],
+ ["9DC0",0x5B6D],
+ ["D4F0",0x5B6E],
+ ["B145",0x5B70],
+ ["B447",0x5B71],
+ ["D4EF",0x5B72],
+ ["B446",0x5B73],
+ ["8E48",0x5B74],
+ ["B9E5",0x5B75],
+ ["FBC5",0x5B76],
+ ["E17D",0x5B77],
+ ["BEC7",0x5B78],
+ ["C0A9",0x5B7A],
+ ["ECD7",0x5B7B],
+ ["FBC7",0x5B7C],
+ ["C45E",0x5B7D],
+ ["C570",0x5B7F],
+ ["C6CB",0x5B80],
+ ["C972",0x5B81],
+ ["FA79",0x5B82],
+ ["A5A6",0x5B83],
+ ["C973",0x5B84],
+ ["A676",0x5B85],
+ ["A674",0x5B87],
+ ["A675",0x5B88],
+ ["A677",0x5B89],
+ ["A7BA",0x5B8B],
+ ["A7B9",0x5B8C],
+ ["CABC",0x5B8E],
+ ["A7BB",0x5B8F],
+ ["9E67",0x5B90],
+ ["CABD",0x5B92],
+ ["CC57",0x5B93],
+ ["CC58",0x5B95],
+ ["8CD9",0x5B96],
+ ["A976",0x5B97],
+ ["A978",0x5B98],
+ ["A97A",0x5B99],
+ ["A977",0x5B9A],
+ ["A97B",0x5B9B],
+ ["A979",0x5B9C],
+ ["FBD2",0x5B9D],
+ ["8962",0x5B9E],
+ ["8963",0x5B9F],
+ ["ABC8",0x5BA2],
+ ["ABC5",0x5BA3],
+ ["ABC7",0x5BA4],
+ ["ABC9",0x5BA5],
+ ["ABC6",0x5BA6],
+ ["D166",0x5BA7],
+ ["CE77",0x5BA8],
+ ["FC7D",0x5BAA],
+ ["D168",0x5BAC],
+ ["D167",0x5BAD],
+ ["AE63",0x5BAE],
+ ["AE5F",0x5BB0],
+ ["AE60",0x5BB3],
+ ["AE62",0x5BB4],
+ ["AE64",0x5BB5],
+ ["AE61",0x5BB6],
+ ["8773",0x5BB7],
+ ["AE66",0x5BB8],
+ ["AE65",0x5BB9],
+ ["B14A",0x5BBF],
+ ["D4F2",0x5BC0],
+ ["D4F1",0x5BC1],
+ ["B149",0x5BC2],
+ ["9F6B",0x5BC3],
+ ["B148",0x5BC4],
+ ["B147",0x5BC5],
+ ["B14B",0x5BC6],
+ ["B146",0x5BC7],
+ ["D8D5",0x5BCA],
+ ["D8D2",0x5BCB],
+ ["B449",0x5BCC],
+ ["D8D1",0x5BCD],
+ ["D8D6",0x5BCE],
+ ["B44B",0x5BD0],
+ ["D8D4",0x5BD1],
+ ["B448",0x5BD2],
+ ["B44A",0x5BD3],
+ ["D8D3",0x5BD4],
+ ["FBCC",0x5BD5],
+ ["DD48",0x5BD6],
+ ["FEAE",0x5BD7],
+ ["DD49",0x5BD8],
+ ["DD4A",0x5BD9],
+ ["876D",0x5BDB],
+ ["B9E6",0x5BDE],
+ ["B9EE",0x5BDF],
+ ["E17E",0x5BE0],
+ ["B9E8",0x5BE1],
+ ["B9EC",0x5BE2],
+ ["E1A1",0x5BE3],
+ ["B9ED",0x5BE4],
+ ["B9E9",0x5BE5],
+ ["B9EA",0x5BE6],
+ ["B9E7",0x5BE7],
+ ["B9EB",0x5BE8],
+ ["BC66",0x5BE9],
+ ["D8D0",0x5BEA],
+ ["BC67",0x5BEB],
+ ["BC65",0x5BEC],
+ ["BC64",0x5BEE],
+ ["E95D",0x5BEF],
+ ["BEC8",0x5BF0],
+ ["ECD8",0x5BF1],
+ ["ECD9",0x5BF2],
+ ["FBD1",0x5BF3],
+ ["C364",0x5BF5],
+ ["C45F",0x5BF6],
+ ["A46F",0x5BF8],
+ ["A678",0x5BFA],
+ ["FB75",0x5BFF],
+ ["ABCA",0x5C01],
+ ["D169",0x5C03],
+ ["AE67",0x5C04],
+ ["FBD4",0x5C05],
+ ["B14E",0x5C07],
+ ["B14D",0x5C08],
+ ["B14C",0x5C09],
+ ["B44C",0x5C0A],
+ ["B44D",0x5C0B],
+ ["D8D7",0x5C0C],
+ ["B9EF",0x5C0D],
+ ["BEC9",0x5C0E],
+ ["A470",0x5C0F],
+ ["C95C",0x5C10],
+ ["A4D6",0x5C11],
+ ["C974",0x5C12],
+ ["FBD6",0x5C13],
+ ["FBD8",0x5C14],
+ ["C9D4",0x5C15],
+ ["A679",0x5C16],
+ ["A97C",0x5C1A],
+ ["8B5D",0x5C1C],
+ ["934C",0x5C1E],
+ ["DD4B",0x5C1F],
+ ["9AE2",0x5C20],
+ ["A471",0x5C22],
+ ["8BC9",0x5C23],
+ ["A4D7",0x5C24],
+ ["C9D5",0x5C25],
+ ["CABE",0x5C28],
+ ["CABF",0x5C2A],
+ ["A7BC",0x5C2C],
+ ["D8D8",0x5C30],
+ ["B44E",0x5C31],
+ ["DD4C",0x5C33],
+ ["C0AA",0x5C37],
+ ["A472",0x5C38],
+ ["A4A8",0x5C39],
+ ["A4D8",0x5C3A],
+ ["C975",0x5C3B],
+ ["A5A7",0x5C3C],
+ ["A7C0",0x5C3E],
+ ["A7BF",0x5C3F],
+ ["A7BD",0x5C40],
+ ["A7BE",0x5C41],
+ ["CC59",0x5C44],
+ ["A97E",0x5C45],
+ ["A9A1",0x5C46],
+ ["CC5A",0x5C47],
+ ["A97D",0x5C48],
+ ["FBDB",0x5C49],
+ ["9FC9",0x5C4A],
+ ["ABCE",0x5C4B],
+ ["CE78",0x5C4C],
+ ["ABCD",0x5C4D],
+ ["ABCB",0x5C4E],
+ ["ABCC",0x5C4F],
+ ["AE6A",0x5C50],
+ ["AE68",0x5C51],
+ ["9F44",0x5C53],
+ ["D16B",0x5C54],
+ ["AE69",0x5C55],
+ ["D16A",0x5C56],
+ ["AE5E",0x5C58],
+ ["D4F3",0x5C59],
+ ["B150",0x5C5C],
+ ["B151",0x5C5D],
+ ["98ED",0x5C5E],
+ ["B14F",0x5C60],
+ ["B9F0",0x5C62],
+ ["E1A2",0x5C63],
+ ["BC68",0x5C64],
+ ["BC69",0x5C65],
+ ["E561",0x5C67],
+ ["C0AB",0x5C68],
+ ["EFC2",0x5C69],
+ ["EFC3",0x5C6A],
+ ["C4DD",0x5C6C],
+ ["F8A8",0x5C6D],
+ ["C94B",0x5C6E],
+ ["A4D9",0x5C6F],
+ ["A473",0x5C71],
+ ["C977",0x5C73],
+ ["C976",0x5C74],
+ ["8CE9",0x5C78],
+ ["A67A",0x5C79],
+ ["C9D7",0x5C7A],
+ ["C9D8",0x5C7B],
+ ["C9D6",0x5C7C],
+ ["C9D9",0x5C7E],
+ ["FBDD",0x5C85],
+ ["CAC7",0x5C86],
+ ["CAC2",0x5C88],
+ ["CAC4",0x5C89],
+ ["CAC6",0x5C8A],
+ ["CAC3",0x5C8B],
+ ["A7C4",0x5C8C],
+ ["CAC0",0x5C8D],
+ ["CAC1",0x5C8F],
+ ["A7C1",0x5C90],
+ ["A7C2",0x5C91],
+ ["CAC5",0x5C92],
+ ["CAC8",0x5C93],
+ ["A7C3",0x5C94],
+ ["CAC9",0x5C95],
+ ["8DF2",0x5C99],
+ ["8964",0x5C9A],
+ ["FDF2",0x5C9C],
+ ["CC68",0x5C9D],
+ ["934D",0x5C9E],
+ ["CC62",0x5C9F],
+ ["CC5D",0x5CA0],
+ ["A9A3",0x5CA1],
+ ["CC65",0x5CA2],
+ ["CC63",0x5CA3],
+ ["CC5C",0x5CA4],
+ ["CC69",0x5CA5],
+ ["CC6C",0x5CA6],
+ ["CC67",0x5CA7],
+ ["CC60",0x5CA8],
+ ["A9A5",0x5CA9],
+ ["CC66",0x5CAA],
+ ["A9A6",0x5CAB],
+ ["CC61",0x5CAC],
+ ["CC64",0x5CAD],
+ ["CC5B",0x5CAE],
+ ["CC5F",0x5CAF],
+ ["CC6B",0x5CB0],
+ ["A9A7",0x5CB1],
+ ["A9A8",0x5CB3],
+ ["CC5E",0x5CB5],
+ ["CC6A",0x5CB6],
+ ["A9A2",0x5CB7],
+ ["A9A4",0x5CB8],
+ ["FBE7",0x5CBA],
+ ["A0F2",0x5CC1],
+ ["9868",0x5CC2],
+ ["CEAB",0x5CC6],
+ ["CEA4",0x5CC7],
+ ["CEAA",0x5CC8],
+ ["CEA3",0x5CC9],
+ ["CEA5",0x5CCA],
+ ["CE7D",0x5CCB],
+ ["CE7B",0x5CCC],
+ ["CEAC",0x5CCE],
+ ["CEA9",0x5CCF],
+ ["CE79",0x5CD0],
+ ["9F58",0x5CD1],
+ ["ABD0",0x5CD2],
+ ["CEA7",0x5CD3],
+ ["CEA8",0x5CD4],
+ ["8CE6",0x5CD5],
+ ["CEA6",0x5CD6],
+ ["CE7C",0x5CD7],
+ ["CE7A",0x5CD8],
+ ["ABCF",0x5CD9],
+ ["CEA2",0x5CDA],
+ ["CE7E",0x5CDB],
+ ["CEA1",0x5CDE],
+ ["CEAD",0x5CDF],
+ ["8D73",0x5CE5],
+ ["AE6F",0x5CE8],
+ ["FBDE",0x5CE9],
+ ["AE6E",0x5CEA],
+ ["D16C",0x5CEC],
+ ["AE6B",0x5CED],
+ ["D16E",0x5CEE],
+ ["FBDF",0x5CEF],
+ ["AE70",0x5CF0],
+ ["D16F",0x5CF1],
+ ["AE73",0x5CF4],
+ ["8C48",0x5CF5],
+ ["AE71",0x5CF6],
+ ["D170",0x5CF7],
+ ["CEAE",0x5CF8],
+ ["D172",0x5CF9],
+ ["AE6D",0x5CFB],
+ ["8774",0x5CFC],
+ ["AE6C",0x5CFD],
+ ["D16D",0x5CFF],
+ ["D171",0x5D00],
+ ["AE72",0x5D01],
+ ["B153",0x5D06],
+ ["B152",0x5D07],
+ ["D4F5",0x5D0B],
+ ["D4F9",0x5D0C],
+ ["D4FB",0x5D0D],
+ ["B154",0x5D0E],
+ ["D4FE",0x5D0F],
+ ["FBE3",0x5D10],
+ ["B158",0x5D11],
+ ["D541",0x5D12],
+ ["B15A",0x5D14],
+ ["8DA8",0x5D15],
+ ["B156",0x5D16],
+ ["B15E",0x5D17],
+ ["FBE4",0x5D18],
+ ["B15B",0x5D19],
+ ["D4F7",0x5D1A],
+ ["B155",0x5D1B],
+ ["D4F6",0x5D1D],
+ ["D4F4",0x5D1E],
+ ["D543",0x5D1F],
+ ["D4F8",0x5D20],
+ ["B157",0x5D22],
+ ["D542",0x5D23],
+ ["B15C",0x5D24],
+ ["D4FD",0x5D25],
+ ["D4FC",0x5D26],
+ ["B15D",0x5D27],
+ ["D4FA",0x5D28],
+ ["B159",0x5D29],
+ ["9C75",0x5D2C],
+ ["D544",0x5D2E],
+ ["9878",0x5D2F],
+ ["D540",0x5D30],
+ ["D8E7",0x5D31],
+ ["D8EE",0x5D32],
+ ["D8E3",0x5D33],
+ ["B451",0x5D34],
+ ["D8DF",0x5D35],
+ ["D8EF",0x5D36],
+ ["D8D9",0x5D37],
+ ["D8EC",0x5D38],
+ ["D8EA",0x5D39],
+ ["D8E4",0x5D3A],
+ ["D8ED",0x5D3C],
+ ["D8E6",0x5D3D],
+ ["8D60",0x5D3E],
+ ["D8DE",0x5D3F],
+ ["D8F0",0x5D40],
+ ["D8DC",0x5D41],
+ ["D8E9",0x5D42],
+ ["D8DA",0x5D43],
+ ["D8F1",0x5D45],
+ ["FBE5",0x5D46],
+ ["B452",0x5D47],
+ ["8D61",0x5D48],
+ ["D8EB",0x5D49],
+ ["DD4F",0x5D4A],
+ ["D8DD",0x5D4B],
+ ["B44F",0x5D4C],
+ ["D8E1",0x5D4E],
+ ["B450",0x5D50],
+ ["D8E0",0x5D51],
+ ["D8E5",0x5D52],
+ ["D8E2",0x5D55],
+ ["8D62",0x5D56],
+ ["A0A1",0x5D57],
+ ["D8E8",0x5D59],
+ ["9C40",0x5D5B],
+ ["DD53",0x5D5E],
+ ["DD56",0x5D62],
+ ["DD4E",0x5D63],
+ ["DD50",0x5D65],
+ ["DD55",0x5D67],
+ ["DD54",0x5D68],
+ ["B743",0x5D69],
+ ["D8DB",0x5D6B],
+ ["DD52",0x5D6C],
+ ["B744",0x5D6F],
+ ["98AD",0x5D70],
+ ["DD4D",0x5D71],
+ ["DD51",0x5D72],
+ ["9EEA",0x5D74],
+ ["E1A9",0x5D77],
+ ["8CEC",0x5D78],
+ ["E1B0",0x5D79],
+ ["E1A7",0x5D7A],
+ ["8CD4",0x5D7B],
+ ["E1AE",0x5D7C],
+ ["E1A5",0x5D7D],
+ ["E1AD",0x5D7E],
+ ["E1B1",0x5D7F],
+ ["E1A4",0x5D80],
+ ["E1A8",0x5D81],
+ ["E1A3",0x5D82],
+ ["B9F1",0x5D84],
+ ["9CEB",0x5D85],
+ ["E1A6",0x5D86],
+ ["B9F2",0x5D87],
+ ["E1AC",0x5D88],
+ ["E1AB",0x5D89],
+ ["E1AA",0x5D8A],
+ ["FBE0",0x5D8B],
+ ["E1AF",0x5D8D],
+ ["9F51",0x5D8E],
+ ["E565",0x5D92],
+ ["E567",0x5D93],
+ ["BC6B",0x5D94],
+ ["E568",0x5D95],
+ ["E563",0x5D97],
+ ["E562",0x5D99],
+ ["E56C",0x5D9A],
+ ["E56A",0x5D9C],
+ ["BC6A",0x5D9D],
+ ["E56D",0x5D9E],
+ ["E564",0x5D9F],
+ ["E569",0x5DA0],
+ ["E56B",0x5DA1],
+ ["E566",0x5DA2],
+ ["8D65",0x5DA4],
+ ["E961",0x5DA7],
+ ["E966",0x5DA8],
+ ["E960",0x5DA9],
+ ["E965",0x5DAA],
+ ["9CF1",0x5DAB],
+ ["E95E",0x5DAC],
+ ["E968",0x5DAD],
+ ["E964",0x5DAE],
+ ["E969",0x5DAF],
+ ["E963",0x5DB0],
+ ["E95F",0x5DB1],
+ ["E967",0x5DB2],
+ ["E96A",0x5DB4],
+ ["E962",0x5DB5],
+ ["FC58",0x5DB6],
+ ["ECDA",0x5DB7],
+ ["C0AF",0x5DB8],
+ ["8D66",0x5DB9],
+ ["C0AD",0x5DBA],
+ ["C0AC",0x5DBC],
+ ["C0AE",0x5DBD],
+ ["EFC4",0x5DC0],
+ ["9654",0x5DC1],
+ ["F172",0x5DC2],
+ ["F1FD",0x5DC3],
+ ["F444",0x5DC6],
+ ["F445",0x5DC7],
+ ["C460",0x5DC9],
+ ["F5C9",0x5DCB],
+ ["C4DE",0x5DCD],
+ ["F5CA",0x5DCF],
+ ["F6DE",0x5DD1],
+ ["C572",0x5DD2],
+ ["C571",0x5DD4],
+ ["F6DD",0x5DD5],
+ ["C5C9",0x5DD6],
+ ["FBE8",0x5DD7],
+ ["F7D6",0x5DD8],
+ ["C6CC",0x5DDB],
+ ["A474",0x5DDD],
+ ["A67B",0x5DDE],
+ ["C9DA",0x5DDF],
+ ["CACA",0x5DE0],
+ ["A8B5",0x5DE1],
+ ["B15F",0x5DE2],
+ ["A475",0x5DE5],
+ ["A5AA",0x5DE6],
+ ["A5A9",0x5DE7],
+ ["A5A8",0x5DE8],
+ ["A7C5",0x5DEB],
+ ["AE74",0x5DEE],
+ ["DD57",0x5DF0],
+ ["A476",0x5DF1],
+ ["A477",0x5DF2],
+ ["A478",0x5DF3],
+ ["A4DA",0x5DF4],
+ ["9FCE",0x5DF5],
+ ["ABD1",0x5DF7],
+ ["CEAF",0x5DF9],
+ ["B453",0x5DFD],
+ ["A479",0x5DFE],
+ ["C95D",0x5DFF],
+ ["A5AB",0x5E02],
+ ["A5AC",0x5E03],
+ ["C978",0x5E04],
+ ["A67C",0x5E06],
+ ["FBFC",0x5E09],
+ ["CACB",0x5E0A],
+ ["9AE4",0x5E0B],
+ ["A7C6",0x5E0C],
+ ["CACC",0x5E0E],
+ ["A9AE",0x5E11],
+ ["9F75",0x5E12],
+ ["CC6E",0x5E14],
+ ["A9AC",0x5E15],
+ ["A9AB",0x5E16],
+ ["CC6D",0x5E17],
+ ["A9A9",0x5E18],
+ ["CC6F",0x5E19],
+ ["A9AA",0x5E1A],
+ ["A9AD",0x5E1B],
+ ["ABD2",0x5E1D],
+ ["ABD4",0x5E1F],
+ ["CEB3",0x5E20],
+ ["CEB0",0x5E21],
+ ["CEB1",0x5E22],
+ ["CEB2",0x5E23],
+ ["CEB4",0x5E24],
+ ["ABD3",0x5E25],
+ ["D174",0x5E28],
+ ["D173",0x5E29],
+ ["AE76",0x5E2B],
+ ["AE75",0x5E2D],
+ ["FBF1",0x5E2E],
+ ["B162",0x5E33],
+ ["D546",0x5E34],
+ ["B161",0x5E36],
+ ["B163",0x5E37],
+ ["B160",0x5E38],
+ ["B455",0x5E3D],
+ ["D545",0x5E3E],
+ ["B456",0x5E40],
+ ["D8F3",0x5E41],
+ ["8D69",0x5E42],
+ ["B457",0x5E43],
+ ["D8F2",0x5E44],
+ ["B454",0x5E45],
+ ["934F",0x5E48],
+ ["DD5A",0x5E4A],
+ ["DD5C",0x5E4B],
+ ["B745",0x5E4C],
+ ["DD5B",0x5E4D],
+ ["DD59",0x5E4E],
+ ["DD58",0x5E4F],
+ ["E1B4",0x5E53],
+ ["B9F7",0x5E54],
+ ["B9F5",0x5E55],
+ ["B9F6",0x5E57],
+ ["E1B2",0x5E58],
+ ["E1B3",0x5E59],
+ ["B9F3",0x5E5B],
+ ["E571",0x5E5C],
+ ["E56F",0x5E5D],
+ ["934E",0x5E5E],
+ ["BC6D",0x5E5F],
+ ["E570",0x5E60],
+ ["BC6E",0x5E61],
+ ["BC6C",0x5E62],
+ ["B9F4",0x5E63],
+ ["E96D",0x5E66],
+ ["E96B",0x5E67],
+ ["E96C",0x5E68],
+ ["E56E",0x5E69],
+ ["ECDC",0x5E6A],
+ ["C0B0",0x5E6B],
+ ["ECDB",0x5E6C],
+ ["EFC5",0x5E6D],
+ ["EFC6",0x5E6E],
+ ["E96E",0x5E6F],
+ ["F1FE",0x5E70],
+ ["A47A",0x5E72],
+ ["A5AD",0x5E73],
+ ["A67E",0x5E74],
+ ["C9DB",0x5E75],
+ ["A67D",0x5E76],
+ ["A9AF",0x5E78],
+ ["B746",0x5E79],
+ ["FBF4",0x5E7A],
+ ["A4DB",0x5E7B],
+ ["A5AE",0x5E7C],
+ ["ABD5",0x5E7D],
+ ["B458",0x5E7E],
+ ["C6CE",0x5E7F],
+ ["C979",0x5E80],
+ ["C97A",0x5E82],
+ ["FBC3",0x5E83],
+ ["C9DC",0x5E84],
+ ["8965",0x5E86],
+ ["A7C8",0x5E87],
+ ["CAD0",0x5E88],
+ ["CACE",0x5E89],
+ ["A7C9",0x5E8A],
+ ["CACD",0x5E8B],
+ ["CACF",0x5E8C],
+ ["CAD1",0x5E8D],
+ ["A7C7",0x5E8F],
+ ["8C7A",0x5E92],
+ ["A9B3",0x5E95],
+ ["A9B4",0x5E96],
+ ["A9B1",0x5E97],
+ ["8C7B",0x5E99],
+ ["A9B0",0x5E9A],
+ ["CEB8",0x5E9B],
+ ["A9B2",0x5E9C],
+ ["ABD6",0x5EA0],
+ ["CEB7",0x5EA2],
+ ["CEB9",0x5EA3],
+ ["CEB6",0x5EA4],
+ ["CEBA",0x5EA5],
+ ["ABD7",0x5EA6],
+ ["AE79",0x5EA7],
+ ["D175",0x5EA8],
+ ["D177",0x5EAA],
+ ["AE77",0x5EAB],
+ ["D178",0x5EAC],
+ ["AE78",0x5EAD],
+ ["D176",0x5EAE],
+ ["CEB5",0x5EB0],
+ ["D547",0x5EB1],
+ ["D54A",0x5EB2],
+ ["D54B",0x5EB3],
+ ["D548",0x5EB4],
+ ["B167",0x5EB5],
+ ["B166",0x5EB6],
+ ["B164",0x5EB7],
+ ["B165",0x5EB8],
+ ["D549",0x5EB9],
+ ["8D6A",0x5EBD],
+ ["B168",0x5EBE],
+ ["B45A",0x5EC1],
+ ["B45B",0x5EC2],
+ ["B45C",0x5EC4],
+ ["DD5D",0x5EC5],
+ ["DD5F",0x5EC6],
+ ["DD61",0x5EC7],
+ ["B748",0x5EC8],
+ ["B747",0x5EC9],
+ ["B459",0x5ECA],
+ ["DD60",0x5ECB],
+ ["DD5E",0x5ECC],
+ ["9353",0x5ECD],
+ ["E1B8",0x5ECE],
+ ["9DFB",0x5ED0],
+ ["E1B6",0x5ED1],
+ ["E1BC",0x5ED2],
+ ["B9F8",0x5ED3],
+ ["E1BD",0x5ED4],
+ ["E1BA",0x5ED5],
+ ["B9F9",0x5ED6],
+ ["E1B7",0x5ED7],
+ ["E1B5",0x5ED8],
+ ["E1BB",0x5ED9],
+ ["BC70",0x5EDA],
+ ["E573",0x5EDB],
+ ["E1B9",0x5EDC],
+ ["BC72",0x5EDD],
+ ["E574",0x5EDE],
+ ["BC71",0x5EDF],
+ ["BC74",0x5EE0],
+ ["E575",0x5EE1],
+ ["BC6F",0x5EE2],
+ ["BC73",0x5EE3],
+ ["E973",0x5EE5],
+ ["E971",0x5EE6],
+ ["E970",0x5EE7],
+ ["E972",0x5EE8],
+ ["E96F",0x5EE9],
+ ["C366",0x5EEC],
+ ["F446",0x5EEE],
+ ["F447",0x5EEF],
+ ["F5CB",0x5EF1],
+ ["F6DF",0x5EF2],
+ ["C655",0x5EF3],
+ ["FBFD",0x5EF4],
+ ["A9B5",0x5EF6],
+ ["A7CA",0x5EF7],
+ ["9059",0x5EF8],
+ ["FC40",0x5EF9],
+ ["ABD8",0x5EFA],
+ ["FC41",0x5EFB],
+ ["FC43",0x5EFC],
+ ["A47B",0x5EFE],
+ ["A4DC",0x5EFF],
+ ["A5AF",0x5F01],
+ ["C9DD",0x5F02],
+ ["A7CB",0x5F04],
+ ["CAD2",0x5F05],
+ ["CEBB",0x5F07],
+ ["ABD9",0x5F08],
+ ["B9FA",0x5F0A],
+ ["A47C",0x5F0B],
+ ["9361",0x5F0C],
+ ["FC46",0x5F0D],
+ ["9362",0x5F0E],
+ ["A6A1",0x5F0F],
+ ["B749",0x5F12],
+ ["A47D",0x5F13],
+ ["A4DD",0x5F14],
+ ["A4DE",0x5F15],
+ ["A5B1",0x5F17],
+ ["A5B0",0x5F18],
+ ["C9DE",0x5F1A],
+ ["A6A2",0x5F1B],
+ ["CAD3",0x5F1D],
+ ["A7CC",0x5F1F],
+ ["CC71",0x5F22],
+ ["CC72",0x5F23],
+ ["CC73",0x5F24],
+ ["8D6B",0x5F25],
+ ["A9B6",0x5F26],
+ ["A9B7",0x5F27],
+ ["CC70",0x5F28],
+ ["A9B8",0x5F29],
+ ["ABDA",0x5F2D],
+ ["CEBC",0x5F2E],
+ ["D17A",0x5F30],
+ ["AE7A",0x5F31],
+ ["D179",0x5F33],
+ ["B169",0x5F35],
+ ["D54C",0x5F36],
+ ["B16A",0x5F37],
+ ["D54D",0x5F38],
+ ["FC4C",0x5F3A],
+ ["8CFE",0x5F3B],
+ ["B45D",0x5F3C],
+ ["DD62",0x5F40],
+ ["E1BF",0x5F43],
+ ["E1BE",0x5F44],
+ ["B9FB",0x5F46],
+ ["BC75",0x5F48],
+ ["E576",0x5F49],
+ ["BECA",0x5F4A],
+ ["E974",0x5F4B],
+ ["C0B1",0x5F4C],
+ ["95B8",0x5F4D],
+ ["C573",0x5F4E],
+ ["F7D8",0x5F4F],
+ ["C6D0",0x5F50],
+ ["8BCA",0x5F51],
+ ["CC74",0x5F54],
+ ["CEBD",0x5F56],
+ ["B16B",0x5F57],
+ ["D8F4",0x5F58],
+ ["B74A",0x5F59],
+ ["987A",0x5F5C],
+ ["C255",0x5F5D],
+ ["C6D1",0x5F61],
+ ["A7CE",0x5F62],
+ ["FC51",0x5F63],
+ ["A7CD",0x5F64],
+ ["ABDB",0x5F65],
+ ["D17B",0x5F67],
+ ["B16D",0x5F69],
+ ["B343",0x5F6A],
+ ["B16E",0x5F6B],
+ ["B16C",0x5F6C],
+ ["B45E",0x5F6D],
+ ["E1C0",0x5F6F],
+ ["B9FC",0x5F70],
+ ["BC76",0x5F71],
+ ["FC54",0x5F72],
+ ["C94C",0x5F73],
+ ["C9DF",0x5F74],
+ ["CAD5",0x5F76],
+ ["A7CF",0x5F77],
+ ["CAD4",0x5F78],
+ ["A7D0",0x5F79],
+ ["FAAF",0x5F7B],
+ ["A9BC",0x5F7C],
+ ["CC77",0x5F7D],
+ ["CC76",0x5F7E],
+ ["A9BB",0x5F7F],
+ ["A9B9",0x5F80],
+ ["A9BA",0x5F81],
+ ["CC75",0x5F82],
+ ["8D6C",0x5F83],
+ ["ABDD",0x5F85],
+ ["CEBE",0x5F86],
+ ["ABE0",0x5F87],
+ ["ABDC",0x5F88],
+ ["ABE2",0x5F89],
+ ["ABDE",0x5F8A],
+ ["ABDF",0x5F8B],
+ ["ABE1",0x5F8C],
+ ["AE7D",0x5F90],
+ ["AE7C",0x5F91],
+ ["AE7B",0x5F92],
+ ["D54F",0x5F96],
+ ["B16F",0x5F97],
+ ["B172",0x5F98],
+ ["B170",0x5F99],
+ ["D54E",0x5F9B],
+ ["B175",0x5F9C],
+ ["B171",0x5F9E],
+ ["D550",0x5F9F],
+ ["B174",0x5FA0],
+ ["B173",0x5FA1],
+ ["FA61",0x5FA4],
+ ["D8F6",0x5FA5],
+ ["D8F5",0x5FA6],
+ ["FC57",0x5FA7],
+ ["B461",0x5FA8],
+ ["B45F",0x5FA9],
+ ["B460",0x5FAA],
+ ["D8F7",0x5FAB],
+ ["B74B",0x5FAC],
+ ["DD64",0x5FAD],
+ ["B74C",0x5FAE],
+ ["DD63",0x5FAF],
+ ["9B70",0x5FB1],
+ ["E577",0x5FB2],
+ ["BC78",0x5FB5],
+ ["E1C1",0x5FB6],
+ ["BC77",0x5FB7],
+ ["B9FD",0x5FB9],
+ ["A051",0x5FBA],
+ ["ECDE",0x5FBB],
+ ["E975",0x5FBC],
+ ["C0B2",0x5FBD],
+ ["ECDD",0x5FBE],
+ ["F240",0x5FBF],
+ ["F448",0x5FC0],
+ ["F449",0x5FC1],
+ ["8C7C",0x5FC2],
+ ["A4DF",0x5FC3],
+ ["8BCB",0x5FC4],
+ ["A5B2",0x5FC5],
+ ["C97B",0x5FC9],
+ ["A7D2",0x5FCC],
+ ["A7D4",0x5FCD],
+ ["C9E2",0x5FCF],
+ ["CAD8",0x5FD0],
+ ["CAD7",0x5FD1],
+ ["CAD6",0x5FD2],
+ ["C9E1",0x5FD4],
+ ["C9E0",0x5FD5],
+ ["A6A4",0x5FD6],
+ ["A7D3",0x5FD7],
+ ["A7D1",0x5FD8],
+ ["A6A3",0x5FD9],
+ ["936E",0x5FDB],
+ ["A9BD",0x5FDD],
+ ["CC78",0x5FDE],
+ ["FCD5",0x5FDF],
+ ["A9BE",0x5FE0],
+ ["CADD",0x5FE1],
+ ["CADF",0x5FE3],
+ ["CADE",0x5FE4],
+ ["CC79",0x5FE5],
+ ["CADA",0x5FE8],
+ ["A7D8",0x5FEA],
+ ["A7D6",0x5FEB],
+ ["CAD9",0x5FED],
+ ["CADB",0x5FEE],
+ ["CAE1",0x5FEF],
+ ["A7D5",0x5FF1],
+ ["CADC",0x5FF3],
+ ["CAE5",0x5FF4],
+ ["A9C0",0x5FF5],
+ ["CAE2",0x5FF7],
+ ["A7D7",0x5FF8],
+ ["CAE0",0x5FFA],
+ ["CAE3",0x5FFB],
+ ["A9BF",0x5FFD],
+ ["A9C1",0x5FFF],
+ ["CAE4",0x6000],
+ ["CCAF",0x6009],
+ ["CCA2",0x600A],
+ ["CC7E",0x600B],
+ ["CCAE",0x600C],
+ ["CCA9",0x600D],
+ ["ABE7",0x600E],
+ ["A9C2",0x600F],
+ ["CCAA",0x6010],
+ ["CCAD",0x6011],
+ ["ABE3",0x6012],
+ ["CCAC",0x6013],
+ ["A9C3",0x6014],
+ ["A9C8",0x6015],
+ ["A9C6",0x6016],
+ ["CCA3",0x6017],
+ ["CC7C",0x6019],
+ ["CCA5",0x601A],
+ ["A9CD",0x601B],
+ ["CCB0",0x601C],
+ ["ABE4",0x601D],
+ ["CCA6",0x601E],
+ ["ABE5",0x6020],
+ ["A9C9",0x6021],
+ ["CCA8",0x6022],
+ ["FCA9",0x6023],
+ ["CECD",0x6024],
+ ["ABE6",0x6025],
+ ["CC7B",0x6026],
+ ["A9CA",0x6027],
+ ["ABE8",0x6028],
+ ["A9CB",0x6029],
+ ["A9C7",0x602A],
+ ["A9CC",0x602B],
+ ["CCA7",0x602C],
+ ["CC7A",0x602D],
+ ["CCAB",0x602E],
+ ["A9C4",0x602F],
+ ["FC61",0x6031],
+ ["CC7D",0x6032],
+ ["CCA4",0x6033],
+ ["CCA1",0x6034],
+ ["A9C5",0x6035],
+ ["CEBF",0x6037],
+ ["CEC0",0x6039],
+ ["8966",0x603B],
+ ["CECA",0x6040],
+ ["D1A1",0x6041],
+ ["CECB",0x6042],
+ ["ABEE",0x6043],
+ ["CECE",0x6044],
+ ["CEC4",0x6045],
+ ["ABED",0x6046],
+ ["CEC6",0x6047],
+ ["CEC7",0x6049],
+ ["FACB",0x604A],
+ ["CEC9",0x604C],
+ ["ABE9",0x604D],
+ ["AEA3",0x6050],
+ ["F9DA",0x6052],
+ ["CEC5",0x6053],
+ ["CEC1",0x6054],
+ ["AEA4",0x6055],
+ ["CECF",0x6058],
+ ["AE7E",0x6059],
+ ["D17D",0x605A],
+ ["CEC8",0x605B],
+ ["D17C",0x605D],
+ ["CEC3",0x605E],
+ ["CECC",0x605F],
+ ["ABEC",0x6062],
+ ["AEA1",0x6063],
+ ["ABF2",0x6064],
+ ["AEA2",0x6065],
+ ["CED0",0x6066],
+ ["D17E",0x6067],
+ ["ABEB",0x6068],
+ ["AEA6",0x6069],
+ ["ABF1",0x606A],
+ ["ABF0",0x606B],
+ ["ABEF",0x606C],
+ ["AEA5",0x606D],
+ ["CED1",0x606E],
+ ["AEA7",0x606F],
+ ["ABEA",0x6070],
+ ["CEC2",0x6072],
+ ["937A",0x6075],
+ ["A0E0",0x6077],
+ ["936B",0x607E],
+ ["B176",0x607F],
+ ["D1A4",0x6080],
+ ["D1A6",0x6081],
+ ["D1A8",0x6083],
+ ["AEA8",0x6084],
+ ["AEAE",0x6085],
+ ["D553",0x6086],
+ ["D1AC",0x6087],
+ ["D1A3",0x6088],
+ ["B178",0x6089],
+ ["D551",0x608A],
+ ["AEAD",0x608C],
+ ["AEAB",0x608D],
+ ["D1AE",0x608E],
+ ["D552",0x6090],
+ ["D1A5",0x6092],
+ ["AEAC",0x6094],
+ ["D1A9",0x6095],
+ ["AEAF",0x6096],
+ ["D1AB",0x6097],
+ ["AEAA",0x609A],
+ ["D1AA",0x609B],
+ ["D1AD",0x609C],
+ ["D1A7",0x609D],
+ ["FC6B",0x609E],
+ ["AEA9",0x609F],
+ ["B179",0x60A0],
+ ["D1A2",0x60A2],
+ ["B177",0x60A3],
+ ["A0DC",0x60A4],
+ ["9468",0x60A7],
+ ["B17A",0x60A8],
+ ["D555",0x60B0],
+ ["D55E",0x60B1],
+ ["B464",0x60B2],
+ ["FC6D",0x60B3],
+ ["B17C",0x60B4],
+ ["B1A3",0x60B5],
+ ["B465",0x60B6],
+ ["D560",0x60B7],
+ ["B1AA",0x60B8],
+ ["D8F9",0x60B9],
+ ["D556",0x60BA],
+ ["B1A2",0x60BB],
+ ["B1A5",0x60BC],
+ ["B17E",0x60BD],
+ ["D554",0x60BE],
+ ["D562",0x60BF],
+ ["D565",0x60C0],
+ ["D949",0x60C1],
+ ["D563",0x60C3],
+ ["D8FD",0x60C4],
+ ["B1A1",0x60C5],
+ ["B1A8",0x60C6],
+ ["B1AC",0x60C7],
+ ["D55D",0x60C8],
+ ["D8F8",0x60C9],
+ ["D561",0x60CA],
+ ["B17B",0x60CB],
+ ["D8FA",0x60CC],
+ ["D564",0x60CD],
+ ["D8FC",0x60CE],
+ ["D559",0x60CF],
+ ["B462",0x60D1],
+ ["D557",0x60D3],
+ ["D558",0x60D4],
+ ["B1A7",0x60D5],
+ ["8D71",0x60D7],
+ ["B1A6",0x60D8],
+ ["D55B",0x60D9],
+ ["B1AB",0x60DA],
+ ["D55F",0x60DB],
+ ["B1A4",0x60DC],
+ ["D55C",0x60DD],
+ ["FD64",0x60DE],
+ ["B1A9",0x60DF],
+ ["B466",0x60E0],
+ ["B463",0x60E1],
+ ["D8FB",0x60E2],
+ ["99BA",0x60E3],
+ ["D55A",0x60E4],
+ ["B17D",0x60E6],
+ ["9AD0",0x60E7],
+ ["9A61",0x60E8],
+ ["A0E5",0x60E9],
+ ["B46B",0x60F0],
+ ["B46F",0x60F1],
+ ["D940",0x60F2],
+ ["B751",0x60F3],
+ ["B46D",0x60F4],
+ ["D944",0x60F5],
+ ["B471",0x60F6],
+ ["DD65",0x60F7],
+ ["D946",0x60F8],
+ ["B753",0x60F9],
+ ["B469",0x60FA],
+ ["B46C",0x60FB],
+ ["D947",0x60FC],
+ ["A05B",0x60FD],
+ ["D948",0x60FE],
+ ["D94E",0x60FF],
+ ["B473",0x6100],
+ ["B754",0x6101],
+ ["D94A",0x6103],
+ ["D94F",0x6104],
+ ["D943",0x6105],
+ ["B75E",0x6106],
+ ["96AC",0x6107],
+ ["B755",0x6108],
+ ["B472",0x6109],
+ ["D941",0x610A],
+ ["D950",0x610B],
+ ["9740",0x610C],
+ ["B75D",0x610D],
+ ["B470",0x610E],
+ ["B74E",0x610F],
+ ["D94D",0x6110],
+ ["B474",0x6112],
+ ["D945",0x6113],
+ ["D8FE",0x6114],
+ ["B46A",0x6115],
+ ["D942",0x6116],
+ ["D94B",0x6118],
+ ["9EF1",0x6119],
+ ["B74D",0x611A],
+ ["B752",0x611B],
+ ["B467",0x611C],
+ ["D94C",0x611D],
+ ["B750",0x611F],
+ ["8C4D",0x6122],
+ ["B468",0x6123],
+ ["B75C",0x6127],
+ ["E1C3",0x6128],
+ ["DD70",0x6129],
+ ["DD68",0x612B],
+ ["E1C2",0x612C],
+ ["DD6C",0x612E],
+ ["DD6E",0x612F],
+ ["9F7E",0x6130],
+ ["DD6B",0x6132],
+ ["B75B",0x6134],
+ ["DD6A",0x6136],
+ ["B75F",0x6137],
+ ["E1D2",0x613B],
+ ["8D72",0x613D],
+ ["B75A",0x613E],
+ ["BA40",0x613F],
+ ["DD71",0x6140],
+ ["E1C4",0x6141],
+ ["FC76",0x6142],
+ ["B758",0x6144],
+ ["DD69",0x6145],
+ ["DD6D",0x6146],
+ ["B9FE",0x6147],
+ ["B74F",0x6148],
+ ["DD66",0x6149],
+ ["DD67",0x614A],
+ ["BA41",0x614B],
+ ["B757",0x614C],
+ ["B759",0x614D],
+ ["B756",0x614E],
+ ["DD6F",0x614F],
+ ["96A9",0x6150],
+ ["E1C8",0x6152],
+ ["E1C9",0x6153],
+ ["E1CE",0x6154],
+ ["BC7D",0x6155],
+ ["E1D5",0x6156],
+ ["BA47",0x6158],
+ ["A06E",0x6159],
+ ["BA46",0x615A],
+ ["E1D0",0x615B],
+ ["FCAA",0x615C],
+ ["BC7C",0x615D],
+ ["E1C5",0x615E],
+ ["BA45",0x615F],
+ ["FBCD",0x6160],
+ ["E1D4",0x6161],
+ ["BA43",0x6162],
+ ["BA44",0x6163],
+ ["FC74",0x6164],
+ ["E1D1",0x6165],
+ ["E5AA",0x6166],
+ ["BC7A",0x6167],
+ ["B46E",0x6168],
+ ["E1D3",0x616A],
+ ["BCA3",0x616B],
+ ["E1CB",0x616C],
+ ["BC7B",0x616E],
+ ["A074",0x616F],
+ ["BCA2",0x6170],
+ ["E1C6",0x6171],
+ ["E1CA",0x6172],
+ ["E1C7",0x6173],
+ ["E1CD",0x6174],
+ ["BA48",0x6175],
+ ["BC79",0x6176],
+ ["BA42",0x6177],
+ ["E57A",0x6179],
+ ["E1CF",0x617A],
+ ["BCA1",0x617C],
+ ["A071",0x617D],
+ ["BCA4",0x617E],
+ ["E1CC",0x6180],
+ ["FC79",0x6181],
+ ["BC7E",0x6182],
+ ["E579",0x6183],
+ ["FC7C",0x6187],
+ ["E57E",0x6189],
+ ["BECE",0x618A],
+ ["E578",0x618B],
+ ["E9A3",0x618C],
+ ["E5A9",0x618D],
+ ["BCA8",0x618E],
+ ["BCA6",0x6190],
+ ["BECC",0x6191],
+ ["E5A6",0x6192],
+ ["E5A2",0x6193],
+ ["BCAC",0x6194],
+ ["9C50",0x6195],
+ ["E978",0x6196],
+ ["9379",0x6198],
+ ["9378",0x6199],
+ ["BCAA",0x619A],
+ ["E5A1",0x619B],
+ ["A0DD",0x619C],
+ ["E976",0x619D],
+ ["E5A5",0x619F],
+ ["E5A8",0x61A1],
+ ["E57D",0x61A2],
+ ["BCAB",0x61A4],
+ ["BCA5",0x61A7],
+ ["E977",0x61A8],
+ ["BECD",0x61A9],
+ ["E5A7",0x61AA],
+ ["BCA7",0x61AB],
+ ["BCA9",0x61AC],
+ ["E5A4",0x61AD],
+ ["BCAD",0x61AE],
+ ["E5A3",0x61AF],
+ ["E57C",0x61B0],
+ ["E57B",0x61B1],
+ ["BECB",0x61B2],
+ ["E5AB",0x61B3],
+ ["E97A",0x61B4],
+ ["ECE0",0x61B5],
+ ["BED0",0x61B6],
+ ["8D75",0x61B7],
+ ["E9A2",0x61B8],
+ ["8D76",0x61B9],
+ ["E97E",0x61BA],
+ ["ECE1",0x61BC],
+ ["BED1",0x61BE],
+ ["E9A1",0x61BF],
+ ["9374",0x61C0],
+ ["E97C",0x61C1],
+ ["C0B4",0x61C2],
+ ["ECDF",0x61C3],
+ ["E979",0x61C5],
+ ["E97B",0x61C6],
+ ["C0B5",0x61C7],
+ ["BED3",0x61C8],
+ ["C0B3",0x61C9],
+ ["BED2",0x61CA],
+ ["C0B7",0x61CB],
+ ["E97D",0x61CC],
+ ["BECF",0x61CD],
+ ["8D77",0x61CF],
+ ["FCA5",0x61D0],
+ ["FCA2",0x61D3],
+ ["EFCF",0x61D6],
+ ["EFC7",0x61D8],
+ ["90C3",0x61DA],
+ ["ECE7",0x61DE],
+ ["EFC8",0x61DF],
+ ["ECE3",0x61E0],
+ ["A079",0x61E2],
+ ["C256",0x61E3],
+ ["ECE5",0x61E4],
+ ["ECE4",0x61E5],
+ ["C0B6",0x61E6],
+ ["ECE2",0x61E7],
+ ["ECE6",0x61E8],
+ ["EFD0",0x61E9],
+ ["EFCC",0x61EA],
+ ["EFCE",0x61EB],
+ ["EFC9",0x61ED],
+ ["EFCA",0x61EE],
+ ["EFCD",0x61F0],
+ ["EFCB",0x61F1],
+ ["C367",0x61F2],
+ ["C36A",0x61F5],
+ ["C369",0x61F6],
+ ["C368",0x61F7],
+ ["C461",0x61F8],
+ ["F44A",0x61F9],
+ ["C462",0x61FA],
+ ["F241",0x61FB],
+ ["C4DF",0x61FC],
+ ["F5CC",0x61FD],
+ ["C4E0",0x61FE],
+ ["C574",0x61FF],
+ ["C5CA",0x6200],
+ ["F7D9",0x6201],
+ ["F7DA",0x6203],
+ ["F7DB",0x6204],
+ ["F9BA",0x6207],
+ ["A4E0",0x6208],
+ ["C97C",0x6209],
+ ["A5B3",0x620A],
+ ["A6A6",0x620C],
+ ["A6A7",0x620D],
+ ["A6A5",0x620E],
+ ["A6A8",0x6210],
+ ["A7DA",0x6211],
+ ["A7D9",0x6212],
+ ["CCB1",0x6214],
+ ["A9CF",0x6215],
+ ["A9CE",0x6216],
+ ["D1AF",0x6219],
+ ["B1AD",0x621A],
+ ["B1AE",0x621B],
+ ["B475",0x621F],
+ ["DD72",0x6220],
+ ["B760",0x6221],
+ ["B761",0x6222],
+ ["DD74",0x6223],
+ ["DD76",0x6224],
+ ["DD75",0x6225],
+ ["E1D7",0x6227],
+ ["E1D6",0x6229],
+ ["BA49",0x622A],
+ ["E1D8",0x622B],
+ ["8D79",0x622C],
+ ["E5AC",0x622D],
+ ["BCAE",0x622E],
+ ["BED4",0x6230],
+ ["C0B8",0x6232],
+ ["C257",0x6233],
+ ["C0B9",0x6234],
+ ["A4E1",0x6236],
+ ["8BFC",0x6237],
+ ["A076",0x6239],
+ ["CAE6",0x623A],
+ ["CCB2",0x623D],
+ ["A9D1",0x623E],
+ ["A9D0",0x623F],
+ ["A9D2",0x6240],
+ ["ABF3",0x6241],
+ ["CED2",0x6242],
+ ["CED3",0x6243],
+ ["D1B0",0x6246],
+ ["AEB0",0x6247],
+ ["B1AF",0x6248],
+ ["B476",0x6249],
+ ["D951",0x624A],
+ ["A4E2",0x624B],
+ ["8BCD",0x624C],
+ ["A47E",0x624D],
+ ["A4E3",0x624E],
+ ["C97D",0x6250],
+ ["A5B7",0x6251],
+ ["A5B6",0x6252],
+ ["A5B4",0x6253],
+ ["A5B5",0x6254],
+ ["A6AB",0x6258],
+ ["C9E9",0x6259],
+ ["C9EB",0x625A],
+ ["A6AA",0x625B],
+ ["C9E3",0x625C],
+ ["C9E4",0x625E],
+ ["C9EA",0x6260],
+ ["C9E6",0x6261],
+ ["C9E8",0x6262],
+ ["A6A9",0x6263],
+ ["C9E5",0x6264],
+ ["C9EC",0x6265],
+ ["C9E7",0x6266],
+ ["9F5A",0x6268],
+ ["A7E1",0x626D],
+ ["A7EA",0x626E],
+ ["A7E8",0x626F],
+ ["CAF0",0x6270],
+ ["CAED",0x6271],
+ ["CAF5",0x6272],
+ ["A7E6",0x6273],
+ ["CAF6",0x6274],
+ ["A7DF",0x6276],
+ ["CAF3",0x6277],
+ ["A7E5",0x6279],
+ ["CAEF",0x627A],
+ ["CAEE",0x627B],
+ ["A7E3",0x627C],
+ ["CAF4",0x627D],
+ ["A7E4",0x627E],
+ ["A9D3",0x627F],
+ ["A7DE",0x6280],
+ ["CAF1",0x6281],
+ ["9FF4",0x6282],
+ ["CAE7",0x6283],
+ ["A7DB",0x6284],
+ ["9FBA",0x6285],
+ ["A7EE",0x6286],
+ ["CAEC",0x6287],
+ ["CAF2",0x6288],
+ ["A7E0",0x6289],
+ ["A7E2",0x628A],
+ ["CAE8",0x628C],
+ ["CAE9",0x628E],
+ ["CAEA",0x628F],
+ ["8D7A",0x6290],
+ ["A7ED",0x6291],
+ ["A7E7",0x6292],
+ ["A7EC",0x6293],
+ ["CAEB",0x6294],
+ ["A7EB",0x6295],
+ ["A7DD",0x6296],
+ ["A7DC",0x6297],
+ ["A7E9",0x6298],
+ ["9E45",0x629D],
+ ["93B0",0x62A4],
+ ["A075",0x62A6],
+ ["A9E1",0x62A8],
+ ["CCBE",0x62A9],
+ ["CCB7",0x62AA],
+ ["A9DC",0x62AB],
+ ["A9EF",0x62AC],
+ ["CCB3",0x62AD],
+ ["CCBA",0x62AE],
+ ["CCBC",0x62AF],
+ ["CCBF",0x62B0],
+ ["A9EA",0x62B1],
+ ["CCBB",0x62B3],
+ ["CCB4",0x62B4],
+ ["A9E8",0x62B5],
+ ["CCB8",0x62B6],
+ ["CCC0",0x62B8],
+ ["A9D9",0x62B9],
+ ["CCBD",0x62BB],
+ ["A9E3",0x62BC],
+ ["A9E2",0x62BD],
+ ["CCB6",0x62BE],
+ ["A9D7",0x62BF],
+ ["A9D8",0x62C2],
+ ["9B46",0x62C3],
+ ["A9D6",0x62C4],
+ ["FCAE",0x62C5],
+ ["A9EE",0x62C6],
+ ["A9E6",0x62C7],
+ ["A9E0",0x62C8],
+ ["A9D4",0x62C9],
+ ["CCB9",0x62CA],
+ ["A9DF",0x62CB],
+ ["A9D5",0x62CC],
+ ["A9E7",0x62CD],
+ ["A9F0",0x62CE],
+ ["CED4",0x62CF],
+ ["A9E4",0x62D0],
+ ["CCB5",0x62D1],
+ ["A9DA",0x62D2],
+ ["A9DD",0x62D3],
+ ["A9DE",0x62D4],
+ ["FCB0",0x62D5],
+ ["A9EC",0x62D6],
+ ["A9ED",0x62D7],
+ ["A9EB",0x62D8],
+ ["A9E5",0x62D9],
+ ["A9E9",0x62DA],
+ ["A9DB",0x62DB],
+ ["ABF4",0x62DC],
+ ["FA51",0x62DF],
+ ["8D7B",0x62E5],
+ ["CEDA",0x62EB],
+ ["AC41",0x62EC],
+ ["ABF8",0x62ED],
+ ["ABFA",0x62EE],
+ ["AC40",0x62EF],
+ ["CEE6",0x62F0],
+ ["ABFD",0x62F1],
+ ["D1B1",0x62F2],
+ ["AEB1",0x62F3],
+ ["AC43",0x62F4],
+ ["CED7",0x62F5],
+ ["CEDF",0x62F6],
+ ["ABFE",0x62F7],
+ ["CEDE",0x62F8],
+ ["CEDB",0x62F9],
+ ["CEE3",0x62FA],
+ ["CEE5",0x62FB],
+ ["ABF7",0x62FC],
+ ["ABFB",0x62FD],
+ ["AC42",0x62FE],
+ ["AEB3",0x62FF],
+ ["CEE0",0x6300],
+ ["ABF9",0x6301],
+ ["AC45",0x6302],
+ ["CED9",0x6303],
+ ["ABFC",0x6307],
+ ["AEB2",0x6308],
+ ["ABF6",0x6309],
+ ["CED6",0x630B],
+ ["CEDD",0x630C],
+ ["CED5",0x630D],
+ ["CED8",0x630E],
+ ["CEDC",0x630F],
+ ["D1B2",0x6310],
+ ["AC44",0x6311],
+ ["CEE1",0x6313],
+ ["CEE2",0x6314],
+ ["CEE4",0x6315],
+ ["ABF5",0x6316],
+ ["8D7C",0x6318],
+ ["AEC1",0x6328],
+ ["D1BE",0x6329],
+ ["AEBF",0x632A],
+ ["AEC0",0x632B],
+ ["D1B4",0x632C],
+ ["D1C4",0x632D],
+ ["9ED6",0x632E],
+ ["AEB6",0x632F],
+ ["93AC",0x6331],
+ ["D566",0x6332],
+ ["D1C6",0x6333],
+ ["D1C0",0x6334],
+ ["9F5B",0x6335],
+ ["D1B7",0x6336],
+ ["93A9",0x6337],
+ ["D1C9",0x6338],
+ ["D1BA",0x6339],
+ ["AEBC",0x633A],
+ ["D57D",0x633B],
+ ["D1BD",0x633C],
+ ["AEBE",0x633D],
+ ["AEB5",0x633E],
+ ["D1CB",0x6340],
+ ["D1BF",0x6341],
+ ["AEB8",0x6342],
+ ["D1B8",0x6343],
+ ["D1B5",0x6344],
+ ["D1B6",0x6345],
+ ["AEB9",0x6346],
+ ["D1C5",0x6347],
+ ["D1CC",0x6348],
+ ["AEBB",0x6349],
+ ["D1BC",0x634A],
+ ["D1BB",0x634B],
+ ["AEC3",0x634C],
+ ["AEC2",0x634D],
+ ["AEB4",0x634E],
+ ["AEBA",0x634F],
+ ["AEBD",0x6350],
+ ["D1C8",0x6351],
+ ["D1C2",0x6354],
+ ["AEB7",0x6355],
+ ["D1B3",0x6356],
+ ["D1CA",0x6357],
+ ["D1C1",0x6358],
+ ["D1C3",0x6359],
+ ["D1C7",0x635A],
+ ["A07C",0x6364],
+ ["D567",0x6365],
+ ["B1B7",0x6367],
+ ["B1CB",0x6368],
+ ["B1CA",0x6369],
+ ["B1BF",0x636B],
+ ["FCB2",0x636C],
+ ["D579",0x636D],
+ ["D575",0x636E],
+ ["D572",0x636F],
+ ["D5A6",0x6370],
+ ["B1BA",0x6371],
+ ["B1B2",0x6372],
+ ["D577",0x6375],
+ ["B4A8",0x6376],
+ ["B1B6",0x6377],
+ ["D5A1",0x6378],
+ ["8AC1",0x6379],
+ ["B1CC",0x637A],
+ ["B1C9",0x637B],
+ ["D57B",0x637C],
+ ["D56A",0x637D],
+ ["9FB4",0x637F],
+ ["B1C8",0x6380],
+ ["D5A3",0x6381],
+ ["D569",0x6382],
+ ["B1BD",0x6383],
+ ["B1C1",0x6384],
+ ["D5A2",0x6385],
+ ["D573",0x6387],
+ ["B1C2",0x6388],
+ ["B1BC",0x6389],
+ ["D568",0x638A],
+ ["FCAC",0x638B],
+ ["B478",0x638C],
+ ["D5A5",0x638D],
+ ["D571",0x638E],
+ ["B1C7",0x638F],
+ ["D574",0x6390],
+ ["D5A4",0x6391],
+ ["B1C6",0x6392],
+ ["D952",0x6394],
+ ["B1B3",0x6396],
+ ["D56F",0x6397],
+ ["B1B8",0x6398],
+ ["B1C3",0x6399],
+ ["B1BE",0x639B],
+ ["D578",0x639C],
+ ["D56E",0x639D],
+ ["D56C",0x639E],
+ ["D57E",0x639F],
+ ["B1B0",0x63A0],
+ ["B1C4",0x63A1],
+ ["B1B4",0x63A2],
+ ["B477",0x63A3],
+ ["D57C",0x63A4],
+ ["B1B5",0x63A5],
+ ["B1B1",0x63A7],
+ ["B1C0",0x63A8],
+ ["B1BB",0x63A9],
+ ["B1B9",0x63AA],
+ ["D570",0x63AB],
+ ["B1C5",0x63AC],
+ ["D56D",0x63AD],
+ ["D57A",0x63AE],
+ ["D576",0x63AF],
+ ["D954",0x63B0],
+ ["D953",0x63B1],
+ ["9E4C",0x63B9],
+ ["D56B",0x63BD],
+ ["D964",0x63BE],
+ ["B47A",0x63C0],
+ ["8FC5",0x63C1],
+ ["D96A",0x63C2],
+ ["D959",0x63C3],
+ ["D967",0x63C4],
+ ["DD77",0x63C5],
+ ["B47D",0x63C6],
+ ["D96B",0x63C7],
+ ["D96E",0x63C8],
+ ["B47C",0x63C9],
+ ["D95C",0x63CA],
+ ["D96D",0x63CB],
+ ["D96C",0x63CC],
+ ["B47E",0x63CD],
+ ["D955",0x63CE],
+ ["B479",0x63CF],
+ ["B4A3",0x63D0],
+ ["93AD",0x63D1],
+ ["B4A1",0x63D2],
+ ["D969",0x63D3],
+ ["D95F",0x63D5],
+ ["B4A5",0x63D6],
+ ["D970",0x63D7],
+ ["D968",0x63D8],
+ ["D971",0x63D9],
+ ["B4AD",0x63DA],
+ ["B4AB",0x63DB],
+ ["D966",0x63DC],
+ ["D965",0x63DD],
+ ["9DC3",0x63DE],
+ ["D963",0x63DF],
+ ["D95D",0x63E0],
+ ["B4A4",0x63E1],
+ ["8DA2",0x63E2],
+ ["B4A2",0x63E3],
+ ["D1B9",0x63E4],
+ ["D956",0x63E5],
+ ["9D4A",0x63E6],
+ ["DDB7",0x63E7],
+ ["D957",0x63E8],
+ ["B47B",0x63E9],
+ ["B4AA",0x63EA],
+ ["DD79",0x63EB],
+ ["B4A6",0x63ED],
+ ["B4A7",0x63EE],
+ ["D958",0x63EF],
+ ["D96F",0x63F0],
+ ["DD78",0x63F1],
+ ["D960",0x63F2],
+ ["D95B",0x63F3],
+ ["B4A9",0x63F4],
+ ["D961",0x63F5],
+ ["D95E",0x63F6],
+ ["FCB6",0x63F8],
+ ["B4AE",0x63F9],
+ ["8DA3",0x63FB],
+ ["9E4B",0x63FC],
+ ["9E4D",0x63FE],
+ ["B770",0x6406],
+ ["8DA4",0x6407],
+ ["DD7C",0x6409],
+ ["DDB1",0x640A],
+ ["DDB6",0x640B],
+ ["DDAA",0x640C],
+ ["B76C",0x640D],
+ ["DDBB",0x640E],
+ ["B769",0x640F],
+ ["DD7A",0x6410],
+ ["DD7B",0x6412],
+ ["B762",0x6413],
+ ["B76B",0x6414],
+ ["DDA4",0x6415],
+ ["B76E",0x6416],
+ ["B76F",0x6417],
+ ["DDA5",0x6418],
+ ["DDB2",0x641A],
+ ["DDB8",0x641B],
+ ["B76A",0x641C],
+ ["B764",0x641E],
+ ["DDA3",0x641F],
+ ["DD7D",0x6420],
+ ["DDBA",0x6421],
+ ["DDA8",0x6422],
+ ["DDA9",0x6423],
+ ["DD7E",0x6424],
+ ["DDB4",0x6425],
+ ["DDAB",0x6426],
+ ["DDB5",0x6427],
+ ["DDAD",0x6428],
+ ["B765",0x642A],
+ ["E1D9",0x642B],
+ ["B768",0x642C],
+ ["B766",0x642D],
+ ["DDB9",0x642E],
+ ["DDB0",0x642F],
+ ["DDAC",0x6430],
+ ["8AFD",0x6432],
+ ["DDA1",0x6433],
+ ["BA53",0x6434],
+ ["DDAF",0x6435],
+ ["B76D",0x6436],
+ ["DDA7",0x6437],
+ ["FCB5",0x6438],
+ ["DDA6",0x6439],
+ ["FCC3",0x643A],
+ ["93B2",0x643B],
+ ["B767",0x643D],
+ ["B763",0x643E],
+ ["E1EE",0x643F],
+ ["DDB3",0x6440],
+ ["DDAE",0x6441],
+ ["DDA2",0x6443],
+ ["E1E9",0x644B],
+ ["E1DA",0x644D],
+ ["E1E5",0x644E],
+ ["E1EC",0x6450],
+ ["BA51",0x6451],
+ ["B4AC",0x6452],
+ ["E1EA",0x6453],
+ ["BA4C",0x6454],
+ ["BA4B",0x6458],
+ ["E1F1",0x6459],
+ ["8DA5",0x645A],
+ ["E1DB",0x645B],
+ ["E1E8",0x645C],
+ ["E1DC",0x645D],
+ ["E1E7",0x645E],
+ ["BA4F",0x645F],
+ ["E1EB",0x6460],
+ ["D962",0x6461],
+ ["E1F2",0x6465],
+ ["E1E3",0x6466],
+ ["BA52",0x6467],
+ ["E5BA",0x6468],
+ ["BCAF",0x6469],
+ ["E1F0",0x646B],
+ ["E1EF",0x646C],
+ ["BA54",0x646D],
+ ["E5AD",0x646E],
+ ["BCB0",0x646F],
+ ["E5AE",0x6470],
+ ["93A1",0x6471],
+ ["E1DF",0x6472],
+ ["E1E0",0x6473],
+ ["E1DD",0x6474],
+ ["E1E2",0x6475],
+ ["E1DE",0x6476],
+ ["E1F3",0x6477],
+ ["BA4E",0x6478],
+ ["BCB1",0x6479],
+ ["BA50",0x647A],
+ ["BA55",0x647B],
+ ["8AC6",0x647C],
+ ["E1E1",0x647D],
+ ["E1ED",0x647F],
+ ["E1E6",0x6482],
+ ["E5B1",0x6485],
+ ["BA4A",0x6487],
+ ["BCB4",0x6488],
+ ["E9AA",0x6489],
+ ["E5B6",0x648A],
+ ["E5B5",0x648B],
+ ["E5B7",0x648C],
+ ["8A5B",0x648D],
+ ["E5B4",0x648F],
+ ["BCB5",0x6490],
+ ["894D",0x6491],
+ ["BCBB",0x6492],
+ ["BCB8",0x6493],
+ ["BCB9",0x6495],
+ ["E5AF",0x6496],
+ ["E5B2",0x6497],
+ ["E5BC",0x6498],
+ ["BCC1",0x6499],
+ ["BCBF",0x649A],
+ ["E5B3",0x649C],
+ ["D95A",0x649D],
+ ["BCB2",0x649E],
+ ["E5B9",0x649F],
+ ["E5B0",0x64A0],
+ ["BCC2",0x64A2],
+ ["E5B8",0x64A3],
+ ["BA4D",0x64A4],
+ ["BCB7",0x64A5],
+ ["E1E4",0x64A6],
+ ["BCBA",0x64A9],
+ ["BCBE",0x64AB],
+ ["BCC0",0x64AC],
+ ["BCBD",0x64AD],
+ ["BCBC",0x64AE],
+ ["FED4",0x64AF],
+ ["BCB6",0x64B0],
+ ["E5BB",0x64B1],
+ ["BCB3",0x64B2],
+ ["BCC3",0x64B3],
+ ["8A78",0x64B4],
+ ["93AB",0x64B6],
+ ["BED8",0x64BB],
+ ["BED9",0x64BC],
+ ["E9A9",0x64BD],
+ ["BEE2",0x64BE],
+ ["BEDF",0x64BF],
+ ["8DA7",0x64C0],
+ ["BED6",0x64C1],
+ ["BEDD",0x64C2],
+ ["E9AB",0x64C3],
+ ["BEDB",0x64C4],
+ ["BED5",0x64C5],
+ ["BEDC",0x64C7],
+ ["E9A8",0x64C9],
+ ["C0BB",0x64CA],
+ ["BED7",0x64CB],
+ ["BEDE",0x64CD],
+ ["C0BA",0x64CE],
+ ["E9A7",0x64CF],
+ ["E9A6",0x64D0],
+ ["BEE0",0x64D2],
+ ["9F45",0x64D3],
+ ["BEE1",0x64D4],
+ ["E9A5",0x64D6],
+ ["E9A4",0x64D7],
+ ["C0BC",0x64D8],
+ ["E9AE",0x64D9],
+ ["BEDA",0x64DA],
+ ["E9AC",0x64DB],
+ ["8A56",0x64DD],
+ ["C0BD",0x64E0],
+ ["FCBF",0x64E1],
+ ["C0C2",0x64E2],
+ ["ECEA",0x64E3],
+ ["ECEC",0x64E4],
+ ["FCC0",0x64E5],
+ ["C0BF",0x64E6],
+ ["8EE6",0x64E7],
+ ["ECED",0x64E8],
+ ["ECE9",0x64E9],
+ ["8AA4",0x64EA],
+ ["ECEB",0x64EB],
+ ["C0C0",0x64EC],
+ ["C0C3",0x64ED],
+ ["ECE8",0x64EF],
+ ["C0BE",0x64F0],
+ ["C0C1",0x64F1],
+ ["C259",0x64F2],
+ ["E9AD",0x64F3],
+ ["C258",0x64F4],
+ ["C25E",0x64F7],
+ ["EFD4",0x64F8],
+ ["C25C",0x64FA],
+ ["C25D",0x64FB],
+ ["EFD7",0x64FC],
+ ["EFD3",0x64FD],
+ ["C25A",0x64FE],
+ ["EFD1",0x64FF],
+ ["C36B",0x6500],
+ ["EFD5",0x6501],
+ ["EFD6",0x6503],
+ ["EFD2",0x6504],
+ ["C25B",0x6506],
+ ["F242",0x6507],
+ ["F245",0x6509],
+ ["8943",0x650A],
+ ["F246",0x650C],
+ ["F244",0x650D],
+ ["F247",0x650E],
+ ["C36C",0x650F],
+ ["F243",0x6510],
+ ["93F3",0x6511],
+ ["F44E",0x6513],
+ ["C464",0x6514],
+ ["F44D",0x6515],
+ ["F44C",0x6516],
+ ["F44B",0x6517],
+ ["C463",0x6518],
+ ["C465",0x6519],
+ ["F5CD",0x651B],
+ ["C4E2",0x651C],
+ ["C4E1",0x651D],
+ ["FCAB",0x651E],
+ ["9EA2",0x651F],
+ ["F6E1",0x6520],
+ ["F6E0",0x6521],
+ ["F6E3",0x6522],
+ ["C5CB",0x6523],
+ ["C575",0x6524],
+ ["F7DD",0x6525],
+ ["F6E2",0x6526],
+ ["F7DC",0x6529],
+ ["C5CD",0x652A],
+ ["C5CC",0x652B],
+ ["C5F3",0x652C],
+ ["F8A9",0x652D],
+ ["F8EF",0x652E],
+ ["A4E4",0x652F],
+ ["9DC7",0x6530],
+ ["D972",0x6532],
+ ["E9AF",0x6533],
+ ["C6D2",0x6534],
+ ["8BCE",0x6535],
+ ["A6AC",0x6536],
+ ["CAF7",0x6537],
+ ["A7F1",0x6538],
+ ["A7EF",0x6539],
+ ["A7F0",0x653B],
+ ["CCC1",0x653D],
+ ["A9F1",0x653E],
+ ["AC46",0x653F],
+ ["CEE7",0x6541],
+ ["CEE8",0x6543],
+ ["AC47",0x6545],
+ ["D1CE",0x6546],
+ ["AEC4",0x6548],
+ ["AEC5",0x6549],
+ ["D1CD",0x654A],
+ ["FCC5",0x654D],
+ ["B1D3",0x654F],
+ ["B1CF",0x6551],
+ ["D5A7",0x6553],
+ ["B1D6",0x6554],
+ ["B1D5",0x6555],
+ ["B1CE",0x6556],
+ ["B1D1",0x6557],
+ ["B1D4",0x6558],
+ ["B1D0",0x6559],
+ ["D976",0x655C],
+ ["B1CD",0x655D],
+ ["B4AF",0x655E],
+ ["FCCB",0x655F],
+ ["B4B1",0x6562],
+ ["B4B2",0x6563],
+ ["D975",0x6564],
+ ["D978",0x6565],
+ ["B4B0",0x6566],
+ ["D973",0x6567],
+ ["D977",0x6568],
+ ["D974",0x656A],
+ ["93B3",0x656B],
+ ["B771",0x656C],
+ ["FCCA",0x656D],
+ ["DDBC",0x656F],
+ ["BA56",0x6572],
+ ["E1F4",0x6573],
+ ["BEE3",0x6574],
+ ["BCC4",0x6575],
+ ["E5BD",0x6576],
+ ["BCC5",0x6577],
+ ["BCC6",0x6578],
+ ["E5BF",0x6579],
+ ["E5BE",0x657A],
+ ["E5C0",0x657B],
+ ["E9B1",0x657C],
+ ["E9B0",0x657F],
+ ["ECEF",0x6580],
+ ["ECEE",0x6581],
+ ["C0C4",0x6582],
+ ["C0C5",0x6583],
+ ["F248",0x6584],
+ ["FCC9",0x6585],
+ ["8DAC",0x6586],
+ ["A4E5",0x6587],
+ ["FBC6",0x6588],
+ ["8967",0x6589],
+ ["8C7E",0x658B],
+ ["D979",0x658C],
+ ["B4B4",0x6590],
+ ["B4B3",0x6591],
+ ["DDBD",0x6592],
+ ["EFD8",0x6594],
+ ["C4E3",0x6595],
+ ["F7DE",0x6596],
+ ["A4E6",0x6597],
+ ["AEC6",0x6599],
+ ["B1D8",0x659B],
+ ["B1D7",0x659C],
+ ["D97A",0x659D],
+ ["D97B",0x659E],
+ ["B772",0x659F],
+ ["E1F5",0x65A0],
+ ["BA57",0x65A1],
+ ["E9B2",0x65A2],
+ ["A4E7",0x65A4],
+ ["A5B8",0x65A5],
+ ["A9F2",0x65A7],
+ ["CCC2",0x65A8],
+ ["CEE9",0x65AA],
+ ["AC48",0x65AB],
+ ["B1D9",0x65AC],
+ ["D97C",0x65AE],
+ ["B4B5",0x65AF],
+ ["B773",0x65B0],
+ ["E5C1",0x65B2],
+ ["E5C2",0x65B3],
+ ["FCCD",0x65B5],
+ ["ECF0",0x65B6],
+ ["C25F",0x65B7],
+ ["F8F0",0x65B8],
+ ["A4E8",0x65B9],
+ ["CCC3",0x65BB],
+ ["A9F3",0x65BC],
+ ["AC49",0x65BD],
+ ["9CF3",0x65BE],
+ ["CEEA",0x65BF],
+ ["AEC7",0x65C1],
+ ["D1D2",0x65C2],
+ ["D1D0",0x65C3],
+ ["D1D1",0x65C4],
+ ["AEC8",0x65C5],
+ ["D1CF",0x65C6],
+ ["B1DB",0x65CB],
+ ["B1DC",0x65CC],
+ ["D5A8",0x65CD],
+ ["B1DD",0x65CE],
+ ["B1DA",0x65CF],
+ ["D97D",0x65D0],
+ ["FCD0",0x65D1],
+ ["D97E",0x65D2],
+ ["DDBE",0x65D3],
+ ["95BB",0x65D4],
+ ["BA59",0x65D6],
+ ["BA58",0x65D7],
+ ["ECF1",0x65DA],
+ ["EFD9",0x65DB],
+ ["F24A",0x65DD],
+ ["F249",0x65DE],
+ ["F44F",0x65DF],
+ ["FCD3",0x65E0],
+ ["C95E",0x65E1],
+ ["AC4A",0x65E2],
+ ["FCD4",0x65E3],
+ ["A4E9",0x65E5],
+ ["A5B9",0x65E6],
+ ["A6AE",0x65E8],
+ ["A6AD",0x65E9],
+ ["A6AF",0x65EC],
+ ["A6B0",0x65ED],
+ ["C9EE",0x65EE],
+ ["C9ED",0x65EF],
+ ["CAF8",0x65F0],
+ ["A7F2",0x65F1],
+ ["CAFB",0x65F2],
+ ["CAFA",0x65F3],
+ ["CAF9",0x65F4],
+ ["CAFC",0x65F5],
+ ["A9F4",0x65FA],
+ ["CCC9",0x65FB],
+ ["CCC5",0x65FC],
+ ["CCCE",0x65FD],
+ ["8DAE",0x65FF],
+ ["A9FB",0x6600],
+ ["A9F9",0x6602],
+ ["CCCA",0x6603],
+ ["CCC6",0x6604],
+ ["CCCD",0x6605],
+ ["A9F8",0x6606],
+ ["AA40",0x6607],
+ ["CCC8",0x6608],
+ ["CCC4",0x6609],
+ ["A9FE",0x660A],
+ ["CCCB",0x660B],
+ ["A9F7",0x660C],
+ ["CCCC",0x660D],
+ ["A9FA",0x660E],
+ ["A9FC",0x660F],
+ ["CCD0",0x6610],
+ ["CCCF",0x6611],
+ ["CCC7",0x6612],
+ ["A9F6",0x6613],
+ ["A9F5",0x6614],
+ ["A9FD",0x6615],
+ ["FCD7",0x6618],
+ ["CEEF",0x661C],
+ ["CEF5",0x661D],
+ ["93DB",0x661E],
+ ["AC50",0x661F],
+ ["AC4D",0x6620],
+ ["CEEC",0x6621],
+ ["CEF1",0x6622],
+ ["FE63",0x6623],
+ ["AC53",0x6624],
+ ["AC4B",0x6625],
+ ["CEF0",0x6626],
+ ["AC4E",0x6627],
+ ["AC51",0x6628],
+ ["CEF3",0x662B],
+ ["AC4C",0x662D],
+ ["CEF8",0x662E],
+ ["AC4F",0x662F],
+ ["93D5",0x6630],
+ ["AC52",0x6631],
+ ["CEED",0x6632],
+ ["CEF2",0x6633],
+ ["CEF6",0x6634],
+ ["CEEE",0x6635],
+ ["CEEB",0x6636],
+ ["CEF7",0x6639],
+ ["CEF4",0x663A],
+ ["AED0",0x6641],
+ ["AEC9",0x6642],
+ ["AECC",0x6643],
+ ["FCDA",0x6644],
+ ["AECF",0x6645],
+ ["D1D5",0x6647],
+ ["9B71",0x6648],
+ ["AECA",0x6649],
+ ["D1D3",0x664A],
+ ["FCDD",0x664B],
+ ["AECE",0x664C],
+ ["8764",0x664D],
+ ["AECB",0x664F],
+ ["D1D6",0x6651],
+ ["AECD",0x6652],
+ ["8DAF",0x6653],
+ ["FAF2",0x6657],
+ ["D5AC",0x6659],
+ ["B1DF",0x665A],
+ ["D5AB",0x665B],
+ ["D5AD",0x665C],
+ ["B1DE",0x665D],
+ ["B1E3",0x665E],
+ ["D1D4",0x665F],
+ ["D5AA",0x6661],
+ ["D5AE",0x6662],
+ ["93D8",0x6663],
+ ["B1E0",0x6664],
+ ["D5A9",0x6665],
+ ["B1E2",0x6666],
+ ["FCDF",0x6667],
+ ["B1E1",0x6668],
+ ["D9A7",0x666A],
+ ["93D3",0x666B],
+ ["D9A2",0x666C],
+ ["B4B6",0x666E],
+ ["B4BA",0x666F],
+ ["B4B7",0x6670],
+ ["D9A5",0x6671],
+ ["D9A8",0x6672],
+ ["FCE1",0x6673],
+ ["B4B8",0x6674],
+ ["B4B9",0x6676],
+ ["B4BE",0x6677],
+ ["DDC7",0x6678],
+ ["D9A6",0x6679],
+ ["B4BC",0x667A],
+ ["D9A3",0x667B],
+ ["D9A1",0x667C],
+ ["8E76",0x667D],
+ ["B4BD",0x667E],
+ ["D9A4",0x6680],
+ ["B779",0x6684],
+ ["FC62",0x6685],
+ ["DDBF",0x6686],
+ ["B776",0x6687],
+ ["B777",0x6688],
+ ["B775",0x6689],
+ ["DDC4",0x668A],
+ ["DDC3",0x668B],
+ ["DDC0",0x668C],
+ ["B77B",0x668D],
+ ["93D1",0x668E],
+ ["DDC2",0x6690],
+ ["B4BB",0x6691],
+ ["8DB1",0x6692],
+ ["DDC6",0x6694],
+ ["DDC1",0x6695],
+ ["B778",0x6696],
+ ["B774",0x6697],
+ ["B77A",0x6698],
+ ["DDC5",0x6699],
+ ["9859",0x669A],
+ ["BA5C",0x669D],
+ ["E1F8",0x669F],
+ ["E1F7",0x66A0],
+ ["E1F6",0x66A1],
+ ["BA5A",0x66A2],
+ ["FB52",0x66A4],
+ ["BA5B",0x66A8],
+ ["E5C5",0x66A9],
+ ["E5C8",0x66AA],
+ ["BCC8",0x66AB],
+ ["FB53",0x66AD],
+ ["BCC7",0x66AE],
+ ["E5C9",0x66AF],
+ ["E5C4",0x66B0],
+ ["BCCA",0x66B1],
+ ["E5C6",0x66B2],
+ ["FB4D",0x66B3],
+ ["BCC9",0x66B4],
+ ["E5C3",0x66B5],
+ ["9CBF",0x66B6],
+ ["E5C7",0x66B7],
+ ["BEE9",0x66B8],
+ ["BEE6",0x66B9],
+ ["E9BB",0x66BA],
+ ["E9BA",0x66BB],
+ ["E9B9",0x66BD],
+ ["E9B4",0x66BE],
+ ["9B72",0x66BF],
+ ["E9B5",0x66C0],
+ ["BEE7",0x66C4],
+ ["BEE4",0x66C6],
+ ["BEE8",0x66C7],
+ ["E9B3",0x66C8],
+ ["BEE5",0x66C9],
+ ["E9B6",0x66CA],
+ ["E9B7",0x66CB],
+ ["E9BC",0x66CC],
+ ["FB50",0x66CD],
+ ["93BE",0x66CE],
+ ["E9B8",0x66CF],
+ ["ECF2",0x66D2],
+ ["C0C7",0x66D6],
+ ["EFDC",0x66D8],
+ ["C0C6",0x66D9],
+ ["EFDA",0x66DA],
+ ["EFDB",0x66DB],
+ ["C260",0x66DC],
+ ["C36E",0x66DD],
+ ["F24B",0x66DE],
+ ["C36D",0x66E0],
+ ["F451",0x66E3],
+ ["F452",0x66E4],
+ ["C466",0x66E6],
+ ["8CDB",0x66E7],
+ ["F450",0x66E8],
+ ["C4E4",0x66E9],
+ ["F7DF",0x66EB],
+ ["C5CE",0x66EC],
+ ["F8AA",0x66ED],
+ ["F8AB",0x66EE],
+ ["A4EA",0x66F0],
+ ["9DF1",0x66F1],
+ ["A6B1",0x66F2],
+ ["A6B2",0x66F3],
+ ["A7F3",0x66F4],
+ ["CCD1",0x66F6],
+ ["AC54",0x66F7],
+ ["AED1",0x66F8],
+ ["B1E4",0x66F9],
+ ["B0D2",0x66FC],
+ ["B4BF",0x66FE],
+ ["B4C0",0x66FF],
+ ["B3CC",0x6700],
+ ["D9A9",0x6701],
+ ["FCEB",0x6702],
+ ["B77C",0x6703],
+ ["E1FA",0x6704],
+ ["E1F9",0x6705],
+ ["A4EB",0x6708],
+ ["A6B3",0x6709],
+ ["CCD2",0x670A],
+ ["AA42",0x670B],
+ ["A0BB",0x670C],
+ ["AA41",0x670D],
+ ["9B7E",0x670E],
+ ["CEF9",0x670F],
+ ["CEFA",0x6710],
+ ["D1D7",0x6712],
+ ["D1D8",0x6713],
+ ["AED2",0x6714],
+ ["AED3",0x6715],
+ ["8DB3",0x6716],
+ ["AED4",0x6717],
+ ["D5AF",0x6718],
+ ["8C52",0x6719],
+ ["B1E6",0x671B],
+ ["B4C2",0x671D],
+ ["9AE8",0x671E],
+ ["B4C1",0x671F],
+ ["DDC8",0x6720],
+ ["DF7A",0x6721],
+ ["E1FB",0x6722],
+ ["E9BD",0x6723],
+ ["8EDC",0x6725],
+ ["C261",0x6726],
+ ["C467",0x6727],
+ ["A4EC",0x6728],
+ ["A5BC",0x672A],
+ ["A5BD",0x672B],
+ ["A5BB",0x672C],
+ ["A5BE",0x672D],
+ ["A5BA",0x672E],
+ ["A6B6",0x6731],
+ ["C9F6",0x6733],
+ ["A6B5",0x6734],
+ ["A6B7",0x6735],
+ ["9CF9",0x6736],
+ ["C9F1",0x6738],
+ ["C9F0",0x6739],
+ ["C9F3",0x673A],
+ ["C9F2",0x673B],
+ ["C9F5",0x673C],
+ ["A6B4",0x673D],
+ ["C9EF",0x673E],
+ ["C9F4",0x673F],
+ ["FA50",0x6744],
+ ["CAFD",0x6745],
+ ["A7FD",0x6746],
+ ["CAFE",0x6747],
+ ["CB43",0x6748],
+ ["A7FC",0x6749],
+ ["CB47",0x674B],
+ ["CB42",0x674C],
+ ["CB45",0x674D],
+ ["A7F5",0x674E],
+ ["A7F6",0x674F],
+ ["A7F7",0x6750],
+ ["A7F8",0x6751],
+ ["A840",0x6753],
+ ["CB41",0x6755],
+ ["A7FA",0x6756],
+ ["A841",0x6757],
+ ["CB40",0x6759],
+ ["CB46",0x675A],
+ ["A7F9",0x675C],
+ ["CB44",0x675D],
+ ["A7FB",0x675E],
+ ["A7F4",0x675F],
+ ["A7FE",0x6760],
+ ["98E7",0x6761],
+ ["FCF3",0x6762],
+ ["FCF2",0x6767],
+ ["AA57",0x676A],
+ ["8CCA",0x676B],
+ ["CCD4",0x676C],
+ ["AA43",0x676D],
+ ["8775",0x676E],
+ ["AA4D",0x676F],
+ ["AA4E",0x6770],
+ ["AA46",0x6771],
+ ["AA58",0x6772],
+ ["AA48",0x6773],
+ ["CCDC",0x6774],
+ ["AA53",0x6775],
+ ["CCD7",0x6776],
+ ["AA49",0x6777],
+ ["CCE6",0x6778],
+ ["CCE7",0x6779],
+ ["CCDF",0x677A],
+ ["CCD8",0x677B],
+ ["AA56",0x677C],
+ ["CCE4",0x677D],
+ ["AA51",0x677E],
+ ["AA4F",0x677F],
+ ["CCE5",0x6781],
+ ["CCE3",0x6783],
+ ["CCDB",0x6784],
+ ["CCD3",0x6785],
+ ["CCDA",0x6786],
+ ["AA4A",0x6787],
+ ["AA50",0x6789],
+ ["AA44",0x678B],
+ ["CCDE",0x678C],
+ ["CCDD",0x678D],
+ ["CCD5",0x678E],
+ ["93E5",0x678F],
+ ["AA52",0x6790],
+ ["CCE1",0x6791],
+ ["CCD6",0x6792],
+ ["AA55",0x6793],
+ ["CCE8",0x6794],
+ ["AA45",0x6795],
+ ["AA4C",0x6797],
+ ["CCD9",0x6798],
+ ["CCE2",0x6799],
+ ["AA54",0x679A],
+ ["AA47",0x679C],
+ ["AA4B",0x679D],
+ ["CCE0",0x679F],
+ ["9A59",0x67A0],
+ ["8DB5",0x67A4],
+ ["FD4D",0x67AC],
+ ["CF5B",0x67AE],
+ ["AC5C",0x67AF],
+ ["AC69",0x67B0],
+ ["FD5E",0x67B1],
+ ["CF56",0x67B2],
+ ["CF4C",0x67B3],
+ ["AC62",0x67B4],
+ ["CF4A",0x67B5],
+ ["AC5B",0x67B6],
+ ["CF45",0x67B7],
+ ["AC65",0x67B8],
+ ["CF52",0x67B9],
+ ["CEFE",0x67BA],
+ ["CF41",0x67BB],
+ ["8F7D",0x67BF],
+ ["CF44",0x67C0],
+ ["CEFB",0x67C1],
+ ["CF51",0x67C2],
+ ["CF61",0x67C3],
+ ["AC60",0x67C4],
+ ["CF46",0x67C5],
+ ["CF58",0x67C6],
+ ["CEFD",0x67C8],
+ ["CF5F",0x67C9],
+ ["CF60",0x67CA],
+ ["CF63",0x67CB],
+ ["CF5A",0x67CC],
+ ["CF4B",0x67CD],
+ ["CF53",0x67CE],
+ ["AC66",0x67CF],
+ ["AC59",0x67D0],
+ ["AC61",0x67D1],
+ ["AC6D",0x67D2],
+ ["AC56",0x67D3],
+ ["AC58",0x67D4],
+ ["9547",0x67D6],
+ ["FCF6",0x67D7],
+ ["CF43",0x67D8],
+ ["AC6A",0x67D9],
+ ["AC63",0x67DA],
+ ["CF5D",0x67DB],
+ ["CF40",0x67DC],
+ ["AC6C",0x67DD],
+ ["AC67",0x67DE],
+ ["CF49",0x67DF],
+ ["AC6B",0x67E2],
+ ["CF50",0x67E3],
+ ["CF48",0x67E4],
+ ["AC64",0x67E5],
+ ["CF5C",0x67E6],
+ ["CF54",0x67E7],
+ ["AC5E",0x67E9],
+ ["CF62",0x67EA],
+ ["CF47",0x67EB],
+ ["AC5A",0x67EC],
+ ["CF59",0x67ED],
+ ["CF4F",0x67EE],
+ ["AC5F",0x67EF],
+ ["CF55",0x67F0],
+ ["AC57",0x67F1],
+ ["CEFC",0x67F2],
+ ["AC68",0x67F3],
+ ["AEE3",0x67F4],
+ ["AC5D",0x67F5],
+ ["CF4E",0x67F6],
+ ["CF4D",0x67F7],
+ ["CF42",0x67F8],
+ ["9250",0x67F9],
+ ["CF5E",0x67FA],
+ ["CF57",0x67FC],
+ ["8968",0x67FE],
+ ["AC55",0x67FF],
+ ["8DB6",0x6800],
+ ["FCFB",0x6801],
+ ["A07D",0x6802],
+ ["98FC",0x6803],
+ ["8969",0x6804],
+ ["FE4F",0x680D],
+ ["9256",0x6810],
+ ["D1EC",0x6812],
+ ["AEEA",0x6813],
+ ["D1ED",0x6814],
+ ["D1E1",0x6816],
+ ["AEDF",0x6817],
+ ["AEEB",0x6818],
+ ["D1DA",0x681A],
+ ["FAC9",0x681B],
+ ["D1E3",0x681C],
+ ["D1EB",0x681D],
+ ["93E8",0x681E],
+ ["D1D9",0x681F],
+ ["D1F4",0x6820],
+ ["AED5",0x6821],
+ ["FCF8",0x6822],
+ ["D1F3",0x6825],
+ ["D1EE",0x6826],
+ ["D1EF",0x6828],
+ ["AEDD",0x6829],
+ ["AEE8",0x682A],
+ ["D1E5",0x682B],
+ ["D1E6",0x682D],
+ ["D1F0",0x682E],
+ ["D1E7",0x682F],
+ ["D1E2",0x6831],
+ ["D1DC",0x6832],
+ ["D1DD",0x6833],
+ ["D1EA",0x6834],
+ ["D1E4",0x6835],
+ ["9CE3",0x6836],
+ ["FDA9",0x6837],
+ ["AED6",0x6838],
+ ["AEDA",0x6839],
+ ["D1F2",0x683A],
+ ["D1DE",0x683B],
+ ["AEE6",0x683C],
+ ["AEE2",0x683D],
+ ["FC44",0x683E],
+ ["AEE5",0x6840],
+ ["AEEC",0x6841],
+ ["AEDB",0x6842],
+ ["AEE7",0x6843],
+ ["D1E9",0x6844],
+ ["AEE9",0x6845],
+ ["AED8",0x6846],
+ ["9640",0x6847],
+ ["AED7",0x6848],
+ ["D1DB",0x6849],
+ ["8DB8",0x684A],
+ ["D1DF",0x684B],
+ ["AEE0",0x684C],
+ ["D1F1",0x684D],
+ ["D1E8",0x684E],
+ ["D1E0",0x684F],
+ ["AEE4",0x6850],
+ ["AEE1",0x6851],
+ ["AED9",0x6853],
+ ["AEDC",0x6854],
+ ["9B4A",0x6855],
+ ["8FB9",0x6856],
+ ["FCFE",0x685D],
+ ["896A",0x6865],
+ ["D5C4",0x686B],
+ ["D5B4",0x686D],
+ ["D5B5",0x686E],
+ ["D5B9",0x686F],
+ ["D5C8",0x6871],
+ ["D5C5",0x6872],
+ ["D5BE",0x6874],
+ ["D5BD",0x6875],
+ ["B1ED",0x6876],
+ ["D5C1",0x6877],
+ ["D5D0",0x6878],
+ ["D5B0",0x6879],
+ ["D5D1",0x687B],
+ ["D5C3",0x687C],
+ ["D5D5",0x687D],
+ ["D5C9",0x687E],
+ ["B1EC",0x687F],
+ ["D5C7",0x6880],
+ ["B1E7",0x6881],
+ ["B1FC",0x6882],
+ ["B1F2",0x6883],
+ ["8DB9",0x6884],
+ ["B1F6",0x6885],
+ ["B1F5",0x6886],
+ ["D5B1",0x6887],
+ ["917E",0x6888],
+ ["D5CE",0x6889],
+ ["D5D4",0x688A],
+ ["D5CC",0x688B],
+ ["D5D3",0x688C],
+ ["D5C0",0x688F],
+ ["D5B2",0x6890],
+ ["D5D2",0x6891],
+ ["D5C2",0x6892],
+ ["B1EA",0x6893],
+ ["B1F7",0x6894],
+ ["D5CB",0x6896],
+ ["B1F0",0x6897],
+ ["93F4",0x6898],
+ ["D5CA",0x689B],
+ ["D5B3",0x689C],
+ ["B1F8",0x689D],
+ ["B1FA",0x689F],
+ ["D5CD",0x68A0],
+ ["B1FB",0x68A1],
+ ["B1E9",0x68A2],
+ ["D5BA",0x68A3],
+ ["D5CF",0x68A4],
+ ["FB7C",0x68A6],
+ ["B1EF",0x68A7],
+ ["B1F9",0x68A8],
+ ["D5BC",0x68A9],
+ ["D5C6",0x68AA],
+ ["D5B7",0x68AB],
+ ["D5BB",0x68AC],
+ ["B1F4",0x68AD],
+ ["D5B6",0x68AE],
+ ["B1E8",0x68AF],
+ ["B1F1",0x68B0],
+ ["B1EE",0x68B1],
+ ["D5BF",0x68B2],
+ ["AEDE",0x68B3],
+ ["D9C0",0x68B4],
+ ["B1EB",0x68B5],
+ ["93E7",0x68B6],
+ ["97EF",0x68B9],
+ ["FE4A",0x68BD],
+ ["FD45",0x68C3],
+ ["B1F3",0x68C4],
+ ["96A5",0x68C5],
+ ["D9C3",0x68C6],
+ ["D9D9",0x68C7],
+ ["D9CE",0x68C8],
+ ["B4D6",0x68C9],
+ ["FEE0",0x68CA],
+ ["B4D1",0x68CB],
+ ["D9BD",0x68CC],
+ ["B4D2",0x68CD],
+ ["D9CD",0x68CE],
+ ["D9C6",0x68D0],
+ ["D9D3",0x68D1],
+ ["B4CE",0x68D2],
+ ["D9AB",0x68D3],
+ ["D9D5",0x68D4],
+ ["B4C4",0x68D5],
+ ["D9B3",0x68D6],
+ ["B4C7",0x68D7],
+ ["B4C6",0x68D8],
+ ["B4D7",0x68DA],
+ ["D9AD",0x68DC],
+ ["D9CF",0x68DD],
+ ["D9D0",0x68DE],
+ ["B4C9",0x68DF],
+ ["B4C5",0x68E0],
+ ["D9BB",0x68E1],
+ ["B4D0",0x68E3],
+ ["D9B6",0x68E4],
+ ["D9D1",0x68E6],
+ ["B4CC",0x68E7],
+ ["D9C9",0x68E8],
+ ["D9D6",0x68E9],
+ ["D9B0",0x68EA],
+ ["D9B5",0x68EB],
+ ["D9AF",0x68EC],
+ ["B4CB",0x68EE],
+ ["D9C2",0x68EF],
+ ["DDDE",0x68F0],
+ ["D9B1",0x68F1],
+ ["B4CF",0x68F2],
+ ["D9BA",0x68F3],
+ ["D9D2",0x68F4],
+ ["B4CA",0x68F5],
+ ["D9B7",0x68F6],
+ ["D9B4",0x68F7],
+ ["D9C5",0x68F8],
+ ["B4CD",0x68F9],
+ ["B4C3",0x68FA],
+ ["B4D9",0x68FB],
+ ["D9C8",0x68FC],
+ ["D9C7",0x68FD],
+ ["FD48",0x6900],
+ ["FD47",0x6901],
+ ["FEF2",0x6902],
+ ["FE6A",0x6903],
+ ["D9AC",0x6904],
+ ["B4C8",0x6905],
+ ["D9D4",0x6906],
+ ["D9BC",0x6907],
+ ["D9BE",0x6908],
+ ["8DBD",0x6909],
+ ["D9CB",0x690A],
+ ["D9CA",0x690B],
+ ["D9AA",0x690C],
+ ["B4D3",0x690D],
+ ["B4D5",0x690E],
+ ["D9B2",0x690F],
+ ["D9B9",0x6910],
+ ["D9C1",0x6911],
+ ["B4D4",0x6912],
+ ["D9B8",0x6913],
+ ["D9C4",0x6914],
+ ["D9D7",0x6915],
+ ["D9CC",0x6917],
+ ["9BA1",0x6918],
+ ["8CA2",0x6919],
+ ["9AB7",0x691A],
+ ["8EFC",0x691B],
+ ["D9D8",0x6925],
+ ["D9AE",0x692A],
+ ["9FA1",0x692C],
+ ["DDF2",0x692F],
+ ["B7A6",0x6930],
+ ["DDF0",0x6932],
+ ["DDDB",0x6933],
+ ["DDE0",0x6934],
+ ["DDD9",0x6935],
+ ["FD51",0x6936],
+ ["DDEC",0x6937],
+ ["DDCB",0x6938],
+ ["DDD2",0x6939],
+ ["DDEA",0x693B],
+ ["DDF4",0x693C],
+ ["DDDC",0x693D],
+ ["FAAD",0x693E],
+ ["DDCF",0x693F],
+ ["DDE2",0x6940],
+ ["DDE7",0x6941],
+ ["DDD3",0x6942],
+ ["8DBE",0x6943],
+ ["DDE4",0x6944],
+ ["DDD0",0x6945],
+ ["89A4",0x6946],
+ ["DDD7",0x6948],
+ ["DDD8",0x6949],
+ ["B7A8",0x694A],
+ ["DDEB",0x694B],
+ ["DDE9",0x694C],
+ ["DDCC",0x694E],
+ ["DDEE",0x694F],
+ ["DDEF",0x6951],
+ ["DDF1",0x6952],
+ ["B7AC",0x6953],
+ ["B7A4",0x6954],
+ ["9AD9",0x6955],
+ ["D5B8",0x6956],
+ ["DDD4",0x6957],
+ ["DDE6",0x6958],
+ ["DDD5",0x6959],
+ ["B7A1",0x695A],
+ ["B7B1",0x695B],
+ ["DDED",0x695C],
+ ["B7AF",0x695D],
+ ["B7AB",0x695E],
+ ["DDCA",0x695F],
+ ["B7A3",0x6960],
+ ["FD4E",0x6961],
+ ["DDCD",0x6962],
+ ["B7B0",0x6963],
+ ["8DC0",0x6964],
+ ["DDDD",0x6965],
+ ["DDC9",0x6966],
+ ["97F0",0x6967],
+ ["B7A9",0x6968],
+ ["DDE1",0x6969],
+ ["DDD1",0x696A],
+ ["B7AA",0x696B],
+ ["DDDA",0x696C],
+ ["B77E",0x696D],
+ ["B4D8",0x696E],
+ ["DDE3",0x696F],
+ ["D9BF",0x6970],
+ ["DDCE",0x6971],
+ ["93B4",0x6972],
+ ["FD44",0x6973],
+ ["DDE8",0x6974],
+ ["B7A5",0x6975],
+ ["DDE5",0x6976],
+ ["B7A2",0x6977],
+ ["DDDF",0x6978],
+ ["B7AD",0x6979],
+ ["DDD6",0x697A],
+ ["DDF3",0x697B],
+ ["9FA7",0x6980],
+ ["B7A7",0x6982],
+ ["DEC6",0x6983],
+ ["8DC2",0x6985],
+ ["B7AE",0x6986],
+ ["99B6",0x698A],
+ ["E24A",0x698D],
+ ["E248",0x698E],
+ ["E25E",0x6990],
+ ["E246",0x6991],
+ ["E258",0x6993],
+ ["B77D",0x6994],
+ ["BA5F",0x6995],
+ ["E242",0x6996],
+ ["E25D",0x6997],
+ ["FD52",0x6998],
+ ["E247",0x6999],
+ ["E255",0x699A],
+ ["BA64",0x699B],
+ ["BA5D",0x699C],
+ ["E25B",0x699E],
+ ["8DC1",0x699F],
+ ["E240",0x69A0],
+ ["E25A",0x69A1],
+ ["8E46",0x69A2],
+ ["BA6F",0x69A3],
+ ["E251",0x69A4],
+ ["E261",0x69A5],
+ ["BA6D",0x69A6],
+ ["E249",0x69A7],
+ ["BA5E",0x69A8],
+ ["E24B",0x69A9],
+ ["E259",0x69AA],
+ ["BA67",0x69AB],
+ ["E244",0x69AC],
+ ["BA6B",0x69AD],
+ ["BA61",0x69AE],
+ ["E24D",0x69AF],
+ ["E243",0x69B0],
+ ["E1FC",0x69B1],
+ ["A0D1",0x69B2],
+ ["E257",0x69B3],
+ ["BA68",0x69B4],
+ ["E260",0x69B5],
+ ["E1FD",0x69B6],
+ ["BA65",0x69B7],
+ ["E253",0x69B9],
+ ["BA66",0x69BB],
+ ["E245",0x69BC],
+ ["E250",0x69BD],
+ ["E24C",0x69BE],
+ ["E24E",0x69BF],
+ ["9FCA",0x69C0],
+ ["BA60",0x69C1],
+ ["E25F",0x69C2],
+ ["BA6E",0x69C3],
+ ["E24F",0x69C4],
+ ["E262",0x69C6],
+ ["E1FE",0x69C9],
+ ["E254",0x69CA],
+ ["BA63",0x69CB],
+ ["BA6C",0x69CC],
+ ["BA6A",0x69CD],
+ ["E241",0x69CE],
+ ["E256",0x69CF],
+ ["BA69",0x69D0],
+ ["92CF",0x69D1],
+ ["BA62",0x69D3],
+ ["E252",0x69D4],
+ ["9CF4",0x69D5],
+ ["8DC4",0x69D6],
+ ["E25C",0x69D9],
+ ["FD41",0x69E1],
+ ["E5D5",0x69E2],
+ ["E5D1",0x69E4],
+ ["E5CD",0x69E5],
+ ["E5E1",0x69E6],
+ ["E5DE",0x69E7],
+ ["BCCD",0x69E8],
+ ["9B4C",0x69E9],
+ ["E5E5",0x69EB],
+ ["E5D4",0x69EC],
+ ["BCD8",0x69ED],
+ ["E5DB",0x69EE],
+ ["E5D0",0x69F1],
+ ["E5DA",0x69F2],
+ ["BCD5",0x69F3],
+ ["E5EE",0x69F4],
+ ["E5EB",0x69F6],
+ ["E5DD",0x69F7],
+ ["E5CE",0x69F8],
+ ["FD57",0x69F9],
+ ["FCEF",0x69FA],
+ ["E5E2",0x69FB],
+ ["E5E4",0x69FC],
+ ["BCD1",0x69FD],
+ ["E5D8",0x69FE],
+ ["E5D3",0x69FF],
+ ["E5CA",0x6A00],
+ ["BCCE",0x6A01],
+ ["BCD6",0x6A02],
+ ["9CDE",0x6A03],
+ ["E5E7",0x6A04],
+ ["BCD7",0x6A05],
+ ["E5CB",0x6A06],
+ ["E5ED",0x6A07],
+ ["E5E0",0x6A08],
+ ["E5E6",0x6A09],
+ ["BCD4",0x6A0A],
+ ["FD42",0x6A0B],
+ ["986C",0x6A0C],
+ ["E5E3",0x6A0D],
+ ["E5EA",0x6A0F],
+ ["BCD9",0x6A11],
+ ["BCD3",0x6A13],
+ ["E5DC",0x6A14],
+ ["E5CF",0x6A15],
+ ["E5EF",0x6A16],
+ ["E5CC",0x6A17],
+ ["E5E8",0x6A18],
+ ["BCD0",0x6A19],
+ ["97F9",0x6A1A],
+ ["E5D6",0x6A1B],
+ ["9558",0x6A1C],
+ ["E5D7",0x6A1D],
+ ["BCCF",0x6A1E],
+ ["BCCC",0x6A1F],
+ ["E5D2",0x6A20],
+ ["BCD2",0x6A21],
+ ["BCCB",0x6A23],
+ ["E5E9",0x6A25],
+ ["E5EC",0x6A26],
+ ["E5D9",0x6A27],
+ ["E9CA",0x6A28],
+ ["985E",0x6A2B],
+ ["FE7B",0x6A2C],
+ ["94CD",0x6A2D],
+ ["E9C2",0x6A32],
+ ["93EE",0x6A33],
+ ["E9BE",0x6A34],
+ ["BEF6",0x6A35],
+ ["BEEB",0x6A38],
+ ["BEF0",0x6A39],
+ ["BEEC",0x6A3A],
+ ["E9CC",0x6A3B],
+ ["E9D7",0x6A3C],
+ ["BEEA",0x6A3D],
+ ["E9C4",0x6A3E],
+ ["E9CD",0x6A3F],
+ ["E5DF",0x6A40],
+ ["E9CE",0x6A41],
+ ["8CA3",0x6A43],
+ ["BEF1",0x6A44],
+ ["FD5A",0x6A45],
+ ["E9DD",0x6A46],
+ ["BEF5",0x6A47],
+ ["BEF8",0x6A48],
+ ["E9C0",0x6A49],
+ ["BEF4",0x6A4B],
+ ["93F5",0x6A4C],
+ ["E9DB",0x6A4D],
+ ["E9DC",0x6A4E],
+ ["E9D2",0x6A4F],
+ ["E9D1",0x6A50],
+ ["E9C9",0x6A51],
+ ["93EF",0x6A52],
+ ["8EEA",0x6A53],
+ ["E9D3",0x6A54],
+ ["E9DA",0x6A55],
+ ["E9D9",0x6A56],
+ ["8F5B",0x6A57],
+ ["BEEF",0x6A58],
+ ["BEED",0x6A59],
+ ["E9CB",0x6A5A],
+ ["E9C8",0x6A5B],
+ ["E9C5",0x6A5D],
+ ["E9D8",0x6A5E],
+ ["BEF7",0x6A5F],
+ ["E9D6",0x6A60],
+ ["BEF3",0x6A61],
+ ["BEF2",0x6A62],
+ ["8C5E",0x6A63],
+ ["E9D0",0x6A64],
+ ["8DC6",0x6A65],
+ ["E9BF",0x6A66],
+ ["E9C1",0x6A67],
+ ["E9C3",0x6A68],
+ ["E9D5",0x6A69],
+ ["E9CF",0x6A6A],
+ ["BEEE",0x6A6B],
+ ["E9C6",0x6A6D],
+ ["E9D4",0x6A6F],
+ ["8DC8",0x6A71],
+ ["8DC7",0x6A74],
+ ["E9C7",0x6A76],
+ ["93F7",0x6A7A],
+ ["C0CF",0x6A7E],
+ ["ED45",0x6A7F],
+ ["C0C8",0x6A80],
+ ["ECF5",0x6A81],
+ ["8DC9",0x6A82],
+ ["ED41",0x6A83],
+ ["C0CA",0x6A84],
+ ["ED48",0x6A85],
+ ["ECFC",0x6A87],
+ ["ECF7",0x6A89],
+ ["FBF2",0x6A8A],
+ ["ED49",0x6A8C],
+ ["ECF3",0x6A8D],
+ ["ECFE",0x6A8E],
+ ["9670",0x6A8F],
+ ["C0D1",0x6A90],
+ ["ED44",0x6A91],
+ ["ED4A",0x6A92],
+ ["ECFD",0x6A93],
+ ["C0C9",0x6A94],
+ ["ED40",0x6A95],
+ ["ECF4",0x6A96],
+ ["C0D0",0x6A97],
+ ["8DCB",0x6A99],
+ ["ED47",0x6A9A],
+ ["ECF9",0x6A9B],
+ ["C0CC",0x6A9C],
+ ["FD5C",0x6A9D],
+ ["ECFB",0x6A9E],
+ ["ECF8",0x6A9F],
+ ["C0D2",0x6AA0],
+ ["ECFA",0x6AA1],
+ ["C0CB",0x6AA2],
+ ["C0CE",0x6AA3],
+ ["ED43",0x6AA4],
+ ["ECF6",0x6AA5],
+ ["ED46",0x6AA6],
+ ["8F65",0x6AA7],
+ ["ED42",0x6AA8],
+ ["8DCD",0x6AAB],
+ ["C263",0x6AAC],
+ ["EFE7",0x6AAD],
+ ["C268",0x6AAE],
+ ["C269",0x6AAF],
+ ["9DA8",0x6AB1],
+ ["94F9",0x6AB2],
+ ["C262",0x6AB3],
+ ["EFE6",0x6AB4],
+ ["8DCE",0x6AB5],
+ ["EFE3",0x6AB6],
+ ["EFE4",0x6AB7],
+ ["C266",0x6AB8],
+ ["EFDE",0x6AB9],
+ ["EFE2",0x6ABA],
+ ["C265",0x6ABB],
+ ["EFDF",0x6ABD],
+ ["93EA",0x6ABE],
+ ["C267",0x6AC2],
+ ["C264",0x6AC3],
+ ["EFDD",0x6AC5],
+ ["EFE1",0x6AC6],
+ ["EFE5",0x6AC7],
+ ["FD5F",0x6AC8],
+ ["93F0",0x6AC9],
+ ["9FB6",0x6ACA],
+ ["F251",0x6ACB],
+ ["F24E",0x6ACC],
+ ["F257",0x6ACD],
+ ["F256",0x6ACF],
+ ["F254",0x6AD0],
+ ["F24F",0x6AD1],
+ ["C372",0x6AD3],
+ ["8DCF",0x6AD4],
+ ["9763",0x6AD8],
+ ["F250",0x6AD9],
+ ["C371",0x6ADA],
+ ["C0CD",0x6ADB],
+ ["F253",0x6ADC],
+ ["C370",0x6ADD],
+ ["F258",0x6ADE],
+ ["F252",0x6ADF],
+ ["F24D",0x6AE0],
+ ["EFE0",0x6AE1],
+ ["C36F",0x6AE5],
+ ["F24C",0x6AE7],
+ ["F456",0x6AE8],
+ ["F455",0x6AEA],
+ ["F255",0x6AEB],
+ ["C468",0x6AEC],
+ ["F459",0x6AEE],
+ ["F45A",0x6AEF],
+ ["F454",0x6AF0],
+ ["F458",0x6AF1],
+ ["F453",0x6AF3],
+ ["8DD0",0x6AF6],
+ ["F5D1",0x6AF8],
+ ["F457",0x6AF9],
+ ["C4E7",0x6AFA],
+ ["C4E5",0x6AFB],
+ ["F5CF",0x6AFC],
+ ["F5D2",0x6B00],
+ ["F5CE",0x6B02],
+ ["F5D0",0x6B03],
+ ["C4E6",0x6B04],
+ ["93F1",0x6B05],
+ ["F6E5",0x6B08],
+ ["F6E6",0x6B09],
+ ["C576",0x6B0A],
+ ["F6E4",0x6B0B],
+ ["F7E2",0x6B0F],
+ ["C5CF",0x6B10],
+ ["F7E0",0x6B11],
+ ["F7E1",0x6B12],
+ ["F8AC",0x6B13],
+ ["C656",0x6B16],
+ ["F8F3",0x6B17],
+ ["F8F1",0x6B18],
+ ["F8F2",0x6B19],
+ ["F8F4",0x6B1A],
+ ["FD62",0x6B1D],
+ ["F9BB",0x6B1E],
+ ["A4ED",0x6B20],
+ ["A6B8",0x6B21],
+ ["AA59",0x6B23],
+ ["CCE9",0x6B25],
+ ["CF64",0x6B28],
+ ["D1F5",0x6B2C],
+ ["D1F7",0x6B2D],
+ ["D1F6",0x6B2F],
+ ["D1F8",0x6B31],
+ ["B1FD",0x6B32],
+ ["D5D7",0x6B33],
+ ["D1F9",0x6B34],
+ ["FD65",0x6B35],
+ ["D5D6",0x6B36],
+ ["D5D8",0x6B37],
+ ["D5D9",0x6B38],
+ ["D9DA",0x6B39],
+ ["B4DB",0x6B3A],
+ ["D9DB",0x6B3B],
+ ["D9DD",0x6B3C],
+ ["B4DC",0x6B3D],
+ ["B4DA",0x6B3E],
+ ["D9DC",0x6B3F],
+ ["DDFA",0x6B41],
+ ["DDF8",0x6B42],
+ ["DDF7",0x6B43],
+ ["DDF6",0x6B45],
+ ["DDF5",0x6B46],
+ ["B7B2",0x6B47],
+ ["DDF9",0x6B48],
+ ["BA70",0x6B49],
+ ["E263",0x6B4A],
+ ["E265",0x6B4B],
+ ["BA71",0x6B4C],
+ ["E264",0x6B4D],
+ ["BCDB",0x6B4E],
+ ["BCDA",0x6B50],
+ ["E5F0",0x6B51],
+ ["9FDB",0x6B52],
+ ["E9DF",0x6B54],
+ ["E9DE",0x6B55],
+ ["E9E0",0x6B56],
+ ["93F8",0x6B57],
+ ["BEF9",0x6B59],
+ ["ED4B",0x6B5B],
+ ["C0D3",0x6B5C],
+ ["EFE8",0x6B5E],
+ ["C26A",0x6B5F],
+ ["F259",0x6B60],
+ ["C577",0x6B61],
+ ["A4EE",0x6B62],
+ ["A5BF",0x6B63],
+ ["A6B9",0x6B64],
+ ["A842",0x6B65],
+ ["AA5A",0x6B66],
+ ["AA5B",0x6B67],
+ ["AC6E",0x6B6A],
+ ["D1FA",0x6B6D],
+ ["8BF7",0x6B6F],
+ ["B7B3",0x6B72],
+ ["FD66",0x6B74],
+ ["E6D1",0x6B76],
+ ["BEFA",0x6B77],
+ ["C26B",0x6B78],
+ ["A4EF",0x6B79],
+ ["8BCF",0x6B7A],
+ ["A6BA",0x6B7B],
+ ["CCEB",0x6B7E],
+ ["AA5C",0x6B7F],
+ ["CCEA",0x6B80],
+ ["8DD1",0x6B81],
+ ["CF65",0x6B82],
+ ["AC6F",0x6B83],
+ ["CF66",0x6B84],
+ ["AC70",0x6B86],
+ ["D1FC",0x6B88],
+ ["AEEE",0x6B89],
+ ["AEED",0x6B8A],
+ ["D5DE",0x6B8C],
+ ["D5DC",0x6B8D],
+ ["D5DD",0x6B8E],
+ ["D5DB",0x6B8F],
+ ["D5DA",0x6B91],
+ ["D9DE",0x6B94],
+ ["D9E1",0x6B95],
+ ["B4DE",0x6B96],
+ ["D9DF",0x6B97],
+ ["B4DD",0x6B98],
+ ["D9E0",0x6B99],
+ ["DDFB",0x6B9B],
+ ["E266",0x6B9E],
+ ["E267",0x6B9F],
+ ["E268",0x6BA0],
+ ["E5F3",0x6BA2],
+ ["E5F2",0x6BA3],
+ ["BCDC",0x6BA4],
+ ["E5F1",0x6BA5],
+ ["E5F4",0x6BA6],
+ ["E9E1",0x6BA7],
+ ["E9E2",0x6BAA],
+ ["E9E3",0x6BAB],
+ ["ED4C",0x6BAD],
+ ["C0D4",0x6BAE],
+ ["C26C",0x6BAF],
+ ["F25A",0x6BB0],
+ ["C4E8",0x6BB2],
+ ["C95F",0x6BB3],
+ ["AC71",0x6BB5],
+ ["CF67",0x6BB6],
+ ["AEEF",0x6BB7],
+ ["B1FE",0x6BBA],
+ ["B4DF",0x6BBC],
+ ["D9E2",0x6BBD],
+ ["B7B5",0x6BBF],
+ ["B7B4",0x6BC0],
+ ["8DD2",0x6BC1],
+ ["E269",0x6BC3],
+ ["E26A",0x6BC4],
+ ["BCDD",0x6BC5],
+ ["BCDE",0x6BC6],
+ ["E9E5",0x6BC7],
+ ["E9E4",0x6BC8],
+ ["EFE9",0x6BC9],
+ ["F7E3",0x6BCA],
+ ["A4F0",0x6BCB],
+ ["C960",0x6BCC],
+ ["A5C0",0x6BCD],
+ ["A843",0x6BCF],
+ ["CB48",0x6BD0],
+ ["AC72",0x6BD2],
+ ["B7B6",0x6BD3],
+ ["A4F1",0x6BD4],
+ ["CF68",0x6BD6],
+ ["AC73",0x6BD7],
+ ["CF69",0x6BD8],
+ ["C0D5",0x6BDA],
+ ["A4F2",0x6BDB],
+ ["FD71",0x6BDC],
+ ["CCEC",0x6BDE],
+ ["CF6A",0x6BE0],
+ ["FD6F",0x6BE1],
+ ["D242",0x6BE2],
+ ["D241",0x6BE3],
+ ["D1FE",0x6BE4],
+ ["D1FD",0x6BE6],
+ ["D243",0x6BE7],
+ ["D240",0x6BE8],
+ ["8DD3",0x6BEA],
+ ["B240",0x6BEB],
+ ["B241",0x6BEC],
+ ["B4E0",0x6BEF],
+ ["D9E3",0x6BF0],
+ ["D9E4",0x6BF2],
+ ["D9E5",0x6BF3],
+ ["DE41",0x6BF7],
+ ["DE42",0x6BF8],
+ ["DE40",0x6BF9],
+ ["9FE7",0x6BFA],
+ ["DDFD",0x6BFB],
+ ["DDFE",0x6BFC],
+ ["B7B7",0x6BFD],
+ ["E26B",0x6BFE],
+ ["E5F7",0x6BFF],
+ ["E5F6",0x6C00],
+ ["E5F5",0x6C01],
+ ["E5F8",0x6C02],
+ ["E9E7",0x6C03],
+ ["E9E6",0x6C04],
+ ["BEFB",0x6C05],
+ ["E9E8",0x6C06],
+ ["C0D6",0x6C08],
+ ["ED4D",0x6C09],
+ ["EFEA",0x6C0B],
+ ["F25B",0x6C0C],
+ ["F6E7",0x6C0D],
+ ["A4F3",0x6C0F],
+ ["A5C2",0x6C10],
+ ["A5C1",0x6C11],
+ ["AA5D",0x6C13],
+ ["C961",0x6C14],
+ ["C97E",0x6C15],
+ ["A6BB",0x6C16],
+ ["C9F7",0x6C18],
+ ["CB49",0x6C19],
+ ["CB4A",0x6C1A],
+ ["AA5E",0x6C1B],
+ ["90BD",0x6C1C],
+ ["CCED",0x6C1D],
+ ["AC74",0x6C1F],
+ ["CF6B",0x6C20],
+ ["CF6C",0x6C21],
+ ["AEF0",0x6C23],
+ ["AEF4",0x6C24],
+ ["D244",0x6C25],
+ ["AEF3",0x6C26],
+ ["AEF1",0x6C27],
+ ["AEF2",0x6C28],
+ ["D5DF",0x6C2A],
+ ["B242",0x6C2B],
+ ["B4E3",0x6C2C],
+ ["B4E1",0x6C2E],
+ ["B4E2",0x6C2F],
+ ["D9E6",0x6C30],
+ ["9FD0",0x6C31],
+ ["BA72",0x6C33],
+ ["A4F4",0x6C34],
+ ["8BD0",0x6C35],
+ ["C9A1",0x6C36],
+ ["FD72",0x6C37],
+ ["A5C3",0x6C38],
+ ["9CAE",0x6C39],
+ ["8BD1",0x6C3A],
+ ["C9A4",0x6C3B],
+ ["8ADB",0x6C3D],
+ ["A5C6",0x6C3E],
+ ["C9A3",0x6C3F],
+ ["A5C5",0x6C40],
+ ["A5C4",0x6C41],
+ ["A844",0x6C42],
+ ["C9A2",0x6C43],
+ ["C9F8",0x6C46],
+ ["FAE4",0x6C49],
+ ["C9FC",0x6C4A],
+ ["C9FE",0x6C4B],
+ ["CA40",0x6C4C],
+ ["A6C5",0x6C4D],
+ ["A6C6",0x6C4E],
+ ["C9FB",0x6C4F],
+ ["A6C1",0x6C50],
+ ["C9F9",0x6C52],
+ ["C9FD",0x6C54],
+ ["A6C2",0x6C55],
+ ["A6BD",0x6C57],
+ ["95CE",0x6C58],
+ ["A6BE",0x6C59],
+ ["FD76",0x6C5A],
+ ["A6C4",0x6C5B],
+ ["C9FA",0x6C5C],
+ ["A6BC",0x6C5D],
+ ["A845",0x6C5E],
+ ["A6BF",0x6C5F],
+ ["A6C0",0x6C60],
+ ["A6C3",0x6C61],
+ ["CB5B",0x6C65],
+ ["CB59",0x6C66],
+ ["CB4C",0x6C67],
+ ["A851",0x6C68],
+ ["CB53",0x6C69],
+ ["A84C",0x6C6A],
+ ["CB4D",0x6C6B],
+ ["CB55",0x6C6D],
+ ["FB62",0x6C6E],
+ ["CB52",0x6C6F],
+ ["A84F",0x6C70],
+ ["CB51",0x6C71],
+ ["A856",0x6C72],
+ ["CB5A",0x6C73],
+ ["A858",0x6C74],
+ ["8DD4",0x6C75],
+ ["A85A",0x6C76],
+ ["CB4B",0x6C78],
+ ["FD78",0x6C79],
+ ["A84D",0x6C7A],
+ ["CB5C",0x6C7B],
+ ["A854",0x6C7D],
+ ["A857",0x6C7E],
+ ["8EE3",0x6C7F],
+ ["CD45",0x6C80],
+ ["A847",0x6C81],
+ ["A85E",0x6C82],
+ ["A855",0x6C83],
+ ["CB4E",0x6C84],
+ ["A84A",0x6C85],
+ ["A859",0x6C86],
+ ["CB56",0x6C87],
+ ["A848",0x6C88],
+ ["A849",0x6C89],
+ ["CD43",0x6C8A],
+ ["CB4F",0x6C8B],
+ ["A850",0x6C8C],
+ ["A85B",0x6C8D],
+ ["CB5D",0x6C8E],
+ ["CB50",0x6C8F],
+ ["A84E",0x6C90],
+ ["A853",0x6C92],
+ ["CCEE",0x6C93],
+ ["A85C",0x6C94],
+ ["CB57",0x6C95],
+ ["A852",0x6C96],
+ ["A85D",0x6C98],
+ ["A846",0x6C99],
+ ["CB54",0x6C9A],
+ ["A84B",0x6C9B],
+ ["CB58",0x6C9C],
+ ["CD44",0x6C9D],
+ ["9076",0x6C9F],
+ ["98C6",0x6CA2],
+ ["8DD5",0x6CAA],
+ ["AA6A",0x6CAB],
+ ["AA7A",0x6CAC],
+ ["CCF5",0x6CAD],
+ ["AA71",0x6CAE],
+ ["97D1",0x6CAF],
+ ["CD4B",0x6CB0],
+ ["AA62",0x6CB1],
+ ["9EB6",0x6CB2],
+ ["AA65",0x6CB3],
+ ["CD42",0x6CB4],
+ ["CCF3",0x6CB6],
+ ["CCF7",0x6CB7],
+ ["AA6D",0x6CB8],
+ ["AA6F",0x6CB9],
+ ["CCFA",0x6CBA],
+ ["AA76",0x6CBB],
+ ["AA68",0x6CBC],
+ ["AA66",0x6CBD],
+ ["AA67",0x6CBE],
+ ["AA75",0x6CBF],
+ ["CD47",0x6CC0],
+ ["AA70",0x6CC1],
+ ["CCF9",0x6CC2],
+ ["CCFB",0x6CC3],
+ ["AA6E",0x6CC4],
+ ["AA73",0x6CC5],
+ ["CCFC",0x6CC6],
+ ["CD4A",0x6CC7],
+ ["AC75",0x6CC9],
+ ["AA79",0x6CCA],
+ ["FAC7",0x6CCB],
+ ["AA63",0x6CCC],
+ ["CD49",0x6CCD],
+ ["A042",0x6CCE],
+ ["CD4D",0x6CCF],
+ ["CCF8",0x6CD0],
+ ["CD4F",0x6CD1],
+ ["CD40",0x6CD2],
+ ["AA6C",0x6CD3],
+ ["CCF4",0x6CD4],
+ ["AA6B",0x6CD5],
+ ["AA7D",0x6CD6],
+ ["AA72",0x6CD7],
+ ["CCF2",0x6CD9],
+ ["CF75",0x6CDA],
+ ["AA78",0x6CDB],
+ ["AA7C",0x6CDC],
+ ["CD41",0x6CDD],
+ ["CD46",0x6CDE],
+ ["9873",0x6CDF],
+ ["AA7E",0x6CE0],
+ ["AA77",0x6CE1],
+ ["AA69",0x6CE2],
+ ["AA5F",0x6CE3],
+ ["AA64",0x6CE5],
+ ["CCF6",0x6CE7],
+ ["AA60",0x6CE8],
+ ["CD4E",0x6CE9],
+ ["9FFC",0x6CEA],
+ ["CCF0",0x6CEB],
+ ["CCEF",0x6CEC],
+ ["CCFD",0x6CED],
+ ["CCF1",0x6CEE],
+ ["AA7B",0x6CEF],
+ ["AEF5",0x6CF0],
+ ["AA74",0x6CF1],
+ ["CCFE",0x6CF2],
+ ["AA61",0x6CF3],
+ ["ACA6",0x6CF5],
+ ["CD4C",0x6CF9],
+ ["8CA5",0x6CFF],
+ ["CF7C",0x6D00],
+ ["CFA1",0x6D01],
+ ["8DD7",0x6D02],
+ ["CFA4",0x6D03],
+ ["CF77",0x6D04],
+ ["92FB",0x6D05],
+ ["8DD8",0x6D06],
+ ["CFA7",0x6D07],
+ ["CFAA",0x6D08],
+ ["CFAC",0x6D09],
+ ["CF74",0x6D0A],
+ ["AC76",0x6D0B],
+ ["AC7B",0x6D0C],
+ ["D249",0x6D0D],
+ ["ACAD",0x6D0E],
+ ["CFA5",0x6D0F],
+ ["CFAD",0x6D10],
+ ["CF7B",0x6D11],
+ ["CF73",0x6D12],
+ ["D264",0x6D16],
+ ["AC7E",0x6D17],
+ ["CFA2",0x6D18],
+ ["CF78",0x6D19],
+ ["CF7A",0x6D1A],
+ ["ACA5",0x6D1B],
+ ["CF7D",0x6D1D],
+ ["AC7D",0x6D1E],
+ ["CF70",0x6D1F],
+ ["CFA8",0x6D20],
+ ["CFAB",0x6D22],
+ ["944F",0x6D24],
+ ["AC7A",0x6D25],
+ ["8DD9",0x6D26],
+ ["ACA8",0x6D27],
+ ["CF6D",0x6D28],
+ ["ACAA",0x6D29],
+ ["AC78",0x6D2A],
+ ["ACAE",0x6D2B],
+ ["CFA9",0x6D2C],
+ ["CF6F",0x6D2D],
+ ["ACAB",0x6D2E],
+ ["D25E",0x6D2F],
+ ["CD48",0x6D30],
+ ["AC7C",0x6D31],
+ ["AC77",0x6D32],
+ ["CF76",0x6D33],
+ ["CF6E",0x6D34],
+ ["ACAC",0x6D35],
+ ["ACA4",0x6D36],
+ ["CFA3",0x6D37],
+ ["ACA9",0x6D38],
+ ["ACA7",0x6D39],
+ ["CF79",0x6D3A],
+ ["ACA1",0x6D3B],
+ ["CF71",0x6D3C],
+ ["ACA2",0x6D3D],
+ ["ACA3",0x6D3E],
+ ["CF72",0x6D3F],
+ ["CFA6",0x6D40],
+ ["AC79",0x6D41],
+ ["CF7E",0x6D42],
+ ["896B",0x6D4E],
+ ["97CE",0x6D57],
+ ["D24C",0x6D58],
+ ["AEFD",0x6D59],
+ ["AF43",0x6D5A],
+ ["FAF3",0x6D5B],
+ ["FDAE",0x6D5C],
+ ["D255",0x6D5E],
+ ["D25B",0x6D5F],
+ ["D257",0x6D60],
+ ["D24A",0x6D61],
+ ["D24D",0x6D62],
+ ["D246",0x6D63],
+ ["D247",0x6D64],
+ ["AF4A",0x6D65],
+ ["AEFA",0x6D66],
+ ["D256",0x6D67],
+ ["D25F",0x6D68],
+ ["AF45",0x6D69],
+ ["AEF6",0x6D6A],
+ ["AF40",0x6D6C],
+ ["D24E",0x6D6D],
+ ["AF42",0x6D6E],
+ ["D24F",0x6D6F],
+ ["D259",0x6D70],
+ ["FBAF",0x6D71],
+ ["92B7",0x6D72],
+ ["AF44",0x6D74],
+ ["D268",0x6D75],
+ ["D248",0x6D76],
+ ["AEFC",0x6D77],
+ ["AEFB",0x6D78],
+ ["AF48",0x6D79],
+ ["D245",0x6D7A],
+ ["D266",0x6D7B],
+ ["D25A",0x6D7C],
+ ["D267",0x6D7D],
+ ["D261",0x6D7E],
+ ["D253",0x6D7F],
+ ["D262",0x6D80],
+ ["8DDA",0x6D81],
+ ["D25C",0x6D82],
+ ["D265",0x6D83],
+ ["D263",0x6D84],
+ ["AF49",0x6D85],
+ ["D254",0x6D86],
+ ["AEF9",0x6D87],
+ ["AEF8",0x6D88],
+ ["AF41",0x6D89],
+ ["AF47",0x6D8A],
+ ["D260",0x6D8B],
+ ["AF46",0x6D8C],
+ ["D251",0x6D8D],
+ ["B243",0x6D8E],
+ ["9C5A",0x6D8F],
+ ["D269",0x6D90],
+ ["D250",0x6D91],
+ ["D24B",0x6D92],
+ ["AEFE",0x6D93],
+ ["AF4B",0x6D94],
+ ["AEF7",0x6D95],
+ ["FDAD",0x6D96],
+ ["D258",0x6D97],
+ ["D25D",0x6D98],
+ ["8DDC",0x6DA4],
+ ["9444",0x6DA5],
+ ["B265",0x6DAA],
+ ["D5E1",0x6DAB],
+ ["D5E5",0x6DAC],
+ ["B252",0x6DAE],
+ ["B250",0x6DAF],
+ ["8DDD",0x6DB1],
+ ["B247",0x6DB2],
+ ["D5E3",0x6DB3],
+ ["D5E2",0x6DB4],
+ ["B25B",0x6DB5],
+ ["D5E8",0x6DB7],
+ ["B255",0x6DB8],
+ ["A0D6",0x6DB9],
+ ["D5FA",0x6DBA],
+ ["D647",0x6DBB],
+ ["B244",0x6DBC],
+ ["D5F7",0x6DBD],
+ ["D5F0",0x6DBE],
+ ["B267",0x6DBF],
+ ["D5E0",0x6DC0],
+ ["D5FC",0x6DC2],
+ ["B264",0x6DC4],
+ ["B258",0x6DC5],
+ ["B263",0x6DC6],
+ ["B24E",0x6DC7],
+ ["D5EC",0x6DC8],
+ ["D5FE",0x6DC9],
+ ["D5F6",0x6DCA],
+ ["B24F",0x6DCB],
+ ["B249",0x6DCC],
+ ["D645",0x6DCD],
+ ["D5FD",0x6DCF],
+ ["D640",0x6DD0],
+ ["B251",0x6DD1],
+ ["B259",0x6DD2],
+ ["D642",0x6DD3],
+ ["D5EA",0x6DD4],
+ ["D5FB",0x6DD5],
+ ["D5EF",0x6DD6],
+ ["D644",0x6DD7],
+ ["B25E",0x6DD8],
+ ["B246",0x6DD9],
+ ["B25C",0x6DDA],
+ ["D5F4",0x6DDB],
+ ["D5F2",0x6DDC],
+ ["D5F3",0x6DDD],
+ ["B253",0x6DDE],
+ ["D5EE",0x6DDF],
+ ["D5ED",0x6DE0],
+ ["B248",0x6DE1],
+ ["D5E7",0x6DE2],
+ ["D646",0x6DE3],
+ ["B24A",0x6DE4],
+ ["D5F1",0x6DE5],
+ ["B268",0x6DE6],
+ ["B262",0x6DE8],
+ ["D5E6",0x6DE9],
+ ["B25F",0x6DEA],
+ ["B25D",0x6DEB],
+ ["B266",0x6DEC],
+ ["D5F8",0x6DED],
+ ["B261",0x6DEE],
+ ["D252",0x6DEF],
+ ["D5F9",0x6DF0],
+ ["B260",0x6DF1],
+ ["D641",0x6DF2],
+ ["B245",0x6DF3],
+ ["D5F5",0x6DF4],
+ ["B257",0x6DF5],
+ ["D5E9",0x6DF6],
+ ["B256",0x6DF7],
+ ["B254",0x6DF9],
+ ["B24C",0x6DFA],
+ ["B24B",0x6DFB],
+ ["D9E7",0x6DFC],
+ ["D643",0x6DFD],
+ ["8C41",0x6DFE],
+ ["D5EB",0x6E00],
+ ["97D5",0x6E02],
+ ["D9FC",0x6E03],
+ ["944A",0x6E04],
+ ["B24D",0x6E05],
+ ["944D",0x6E0A],
+ ["97CB",0x6E0F],
+ ["8DDE",0x6E15],
+ ["8DDF",0x6E18],
+ ["B541",0x6E19],
+ ["B25A",0x6E1A],
+ ["B4EE",0x6E1B],
+ ["D9F6",0x6E1C],
+ ["B4FC",0x6E1D],
+ ["D9EA",0x6E1F],
+ ["B4EB",0x6E20],
+ ["B4E7",0x6E21],
+ ["DA49",0x6E22],
+ ["B4ED",0x6E23],
+ ["B4F1",0x6E24],
+ ["B4EC",0x6E25],
+ ["B4F5",0x6E26],
+ ["DA4D",0x6E27],
+ ["DA44",0x6E28],
+ ["8DE0",0x6E29],
+ ["FEF9",0x6E2A],
+ ["D9F1",0x6E2B],
+ ["B4FA",0x6E2C],
+ ["B4F4",0x6E2D],
+ ["D9FD",0x6E2E],
+ ["B4E4",0x6E2F],
+ ["DA4A",0x6E30],
+ ["DA43",0x6E31],
+ ["B4E8",0x6E32],
+ ["D9F7",0x6E33],
+ ["B4F7",0x6E34],
+ ["DA55",0x6E35],
+ ["DA56",0x6E36],
+ ["B4E5",0x6E38],
+ ["DA48",0x6E39],
+ ["B4F9",0x6E3A],
+ ["D9FB",0x6E3B],
+ ["D9ED",0x6E3C],
+ ["D9EE",0x6E3D],
+ ["B4FD",0x6E3E],
+ ["D9F2",0x6E3F],
+ ["D9F9",0x6E40],
+ ["D9F3",0x6E41],
+ ["B4FB",0x6E43],
+ ["B544",0x6E44],
+ ["D9EF",0x6E45],
+ ["D9E8",0x6E46],
+ ["D9E9",0x6E47],
+ ["D9EB",0x6E49],
+ ["B4EA",0x6E4A],
+ ["D9F8",0x6E4B],
+ ["B4F8",0x6E4D],
+ ["B542",0x6E4E],
+ ["FDC0",0x6E4F],
+ ["FCF9",0x6E50],
+ ["D9FA",0x6E51],
+ ["DA53",0x6E52],
+ ["DA4B",0x6E53],
+ ["B4E6",0x6E54],
+ ["DA51",0x6E55],
+ ["B4F2",0x6E56],
+ ["8CDD",0x6E57],
+ ["B4F0",0x6E58],
+ ["FB7E",0x6E59],
+ ["DA57",0x6E5A],
+ ["B4EF",0x6E5B],
+ ["DA41",0x6E5C],
+ ["D9F4",0x6E5D],
+ ["D9FE",0x6E5E],
+ ["B547",0x6E5F],
+ ["DA45",0x6E60],
+ ["DA42",0x6E61],
+ ["D9F0",0x6E62],
+ ["B543",0x6E63],
+ ["DA4F",0x6E64],
+ ["DA4C",0x6E65],
+ ["DA54",0x6E66],
+ ["B4E9",0x6E67],
+ ["DA40",0x6E68],
+ ["B546",0x6E69],
+ ["DA47",0x6E6B],
+ ["B4F3",0x6E6E],
+ ["B4F6",0x6E6F],
+ ["DA46",0x6E71],
+ ["B545",0x6E72],
+ ["D9F5",0x6E73],
+ ["D5E4",0x6E74],
+ ["92B3",0x6E76],
+ ["DA50",0x6E77],
+ ["DA4E",0x6E78],
+ ["DA52",0x6E79],
+ ["FDAF",0x6E7C],
+ ["8DE1",0x6E86],
+ ["D9EC",0x6E88],
+ ["B540",0x6E89],
+ ["95D3",0x6E8B],
+ ["DE61",0x6E8D],
+ ["DE60",0x6E8E],
+ ["DE46",0x6E8F],
+ ["B7BD",0x6E90],
+ ["DE5F",0x6E92],
+ ["DE49",0x6E93],
+ ["DE4A",0x6E94],
+ ["B7C7",0x6E96],
+ ["DE68",0x6E97],
+ ["B7C2",0x6E98],
+ ["DE5E",0x6E99],
+ ["89C1",0x6E9A],
+ ["DE43",0x6E9B],
+ ["B7C8",0x6E9C],
+ ["B7BE",0x6E9D],
+ ["DE52",0x6E9E],
+ ["DE48",0x6E9F],
+ ["DE4B",0x6EA0],
+ ["DE63",0x6EA1],
+ ["B7B8",0x6EA2],
+ ["DE6A",0x6EA3],
+ ["DE62",0x6EA4],
+ ["B7C1",0x6EA5],
+ ["DE57",0x6EA6],
+ ["B7CC",0x6EA7],
+ ["B7CB",0x6EAA],
+ ["B7C5",0x6EAB],
+ ["DE69",0x6EAE],
+ ["B7B9",0x6EAF],
+ ["DE55",0x6EB0],
+ ["DE4C",0x6EB1],
+ ["DE59",0x6EB2],
+ ["DE65",0x6EB3],
+ ["B7CD",0x6EB4],
+ ["FD68",0x6EB5],
+ ["B7BB",0x6EB6],
+ ["DE54",0x6EB7],
+ ["9CB7",0x6EB8],
+ ["DE4D",0x6EB9],
+ ["B7C4",0x6EBA],
+ ["8DE3",0x6EBB],
+ ["B7C3",0x6EBC],
+ ["DE50",0x6EBD],
+ ["DE5A",0x6EBE],
+ ["DE64",0x6EBF],
+ ["DE47",0x6EC0],
+ ["DE51",0x6EC1],
+ ["B7BC",0x6EC2],
+ ["DE5B",0x6EC3],
+ ["B7C9",0x6EC4],
+ ["B7C0",0x6EC5],
+ ["DE4E",0x6EC6],
+ ["B7BF",0x6EC7],
+ ["DE45",0x6EC8],
+ ["DE53",0x6EC9],
+ ["DE67",0x6ECA],
+ ["B4FE",0x6ECB],
+ ["BAB0",0x6ECC],
+ ["DE56",0x6ECD],
+ ["E26C",0x6ECE],
+ ["DE58",0x6ECF],
+ ["DE66",0x6ED0],
+ ["B7C6",0x6ED1],
+ ["DE4F",0x6ED2],
+ ["B7BA",0x6ED3],
+ ["B7CA",0x6ED4],
+ ["BCF0",0x6ED5],
+ ["DE44",0x6ED6],
+ ["DE5D",0x6ED8],
+ ["FAC0",0x6ED9],
+ ["8DE5",0x6EDA],
+ ["FA64",0x6EDB],
+ ["DE5C",0x6EDC],
+ ["8947",0x6EDD],
+ ["8DE4",0x6EE2],
+ ["8DE7",0x6EE8],
+ ["8DE8",0x6EE9],
+ ["E2AA",0x6EEB],
+ ["BAAD",0x6EEC],
+ ["E27D",0x6EED],
+ ["E2A4",0x6EEE],
+ ["BAA2",0x6EEF],
+ ["E26E",0x6EF1],
+ ["BAAF",0x6EF2],
+ ["BA77",0x6EF4],
+ ["E26D",0x6EF5],
+ ["E2B0",0x6EF6],
+ ["BAB1",0x6EF7],
+ ["E271",0x6EF8],
+ ["E2A3",0x6EF9],
+ ["FDC7",0x6EFA],
+ ["E273",0x6EFB],
+ ["E2B3",0x6EFC],
+ ["E2AF",0x6EFD],
+ ["BA75",0x6EFE],
+ ["BAA1",0x6EFF],
+ ["E653",0x6F00],
+ ["BAAE",0x6F01],
+ ["BA7D",0x6F02],
+ ["E26F",0x6F03],
+ ["FDB0",0x6F04],
+ ["E2AE",0x6F05],
+ ["BAA3",0x6F06],
+ ["E2AB",0x6F07],
+ ["E2B8",0x6F08],
+ ["E275",0x6F09],
+ ["E27E",0x6F0A],
+ ["9445",0x6F0B],
+ ["97D6",0x6F0C],
+ ["E2B6",0x6F0D],
+ ["E2AC",0x6F0E],
+ ["BA7C",0x6F0F],
+ ["E27C",0x6F12],
+ ["BA76",0x6F13],
+ ["BA74",0x6F14],
+ ["BAA8",0x6F15],
+ ["FCC6",0x6F16],
+ ["9844",0x6F17],
+ ["E27A",0x6F18],
+ ["E277",0x6F19],
+ ["E278",0x6F1A],
+ ["E2B2",0x6F1C],
+ ["E2B7",0x6F1E],
+ ["E2B5",0x6F1F],
+ ["BA7A",0x6F20],
+ ["E2B9",0x6F21],
+ ["BA7E",0x6F22],
+ ["BAA7",0x6F23],
+ ["8DE9",0x6F24],
+ ["E270",0x6F25],
+ ["E5FA",0x6F26],
+ ["E279",0x6F27],
+ ["BA78",0x6F29],
+ ["BAAC",0x6F2A],
+ ["BAA9",0x6F2B],
+ ["BA7B",0x6F2C],
+ ["E2A5",0x6F2D],
+ ["E274",0x6F2E],
+ ["BAAA",0x6F2F],
+ ["E2A7",0x6F30],
+ ["BAA4",0x6F31],
+ ["BAA6",0x6F32],
+ ["BA73",0x6F33],
+ ["8DEA",0x6F34],
+ ["E2A9",0x6F35],
+ ["E2A1",0x6F36],
+ ["E272",0x6F37],
+ ["BAA5",0x6F38],
+ ["E2B1",0x6F39],
+ ["E2B4",0x6F3A],
+ ["E27B",0x6F3B],
+ ["E2A8",0x6F3C],
+ ["FE50",0x6F3D],
+ ["BA79",0x6F3E],
+ ["BCDF",0x6F3F],
+ ["E2A6",0x6F40],
+ ["E5F9",0x6F41],
+ ["E2AD",0x6F43],
+ ["FDCC",0x6F44],
+ ["E276",0x6F4E],
+ ["E644",0x6F4F],
+ ["E64E",0x6F50],
+ ["BCE2",0x6F51],
+ ["E64D",0x6F52],
+ ["E659",0x6F53],
+ ["BCE4",0x6F54],
+ ["E64B",0x6F55],
+ ["9DA7",0x6F56],
+ ["E64F",0x6F57],
+ ["BCEF",0x6F58],
+ ["E646",0x6F5A],
+ ["BCE7",0x6F5B],
+ ["FDCD",0x6F5C],
+ ["E652",0x6F5D],
+ ["E9F0",0x6F5E],
+ ["BCF3",0x6F5F],
+ ["BCF2",0x6F60],
+ ["E654",0x6F61],
+ ["E643",0x6F62],
+ ["E65E",0x6F63],
+ ["BCED",0x6F64],
+ ["BCE3",0x6F66],
+ ["E657",0x6F67],
+ ["E65B",0x6F69],
+ ["E660",0x6F6A],
+ ["E655",0x6F6B],
+ ["E649",0x6F6C],
+ ["BCE6",0x6F6D],
+ ["BCE9",0x6F6E],
+ ["BCF1",0x6F6F],
+ ["BCEC",0x6F70],
+ ["E64C",0x6F72],
+ ["E2A2",0x6F73],
+ ["FDCF",0x6F74],
+ ["E648",0x6F76],
+ ["E65F",0x6F77],
+ ["BCE8",0x6F78],
+ ["95D2",0x6F79],
+ ["BCEB",0x6F7A],
+ ["E661",0x6F7B],
+ ["BCE0",0x6F7C],
+ ["E656",0x6F7D],
+ ["E5FB",0x6F7E],
+ ["E65C",0x6F7F],
+ ["C0DF",0x6F80],
+ ["8DED",0x6F81],
+ ["E64A",0x6F82],
+ ["BCE1",0x6F84],
+ ["E645",0x6F85],
+ ["BCE5",0x6F86],
+ ["E5FC",0x6F87],
+ ["BAAB",0x6F88],
+ ["E641",0x6F89],
+ ["FCBA",0x6F8A],
+ ["E65A",0x6F8B],
+ ["E642",0x6F8C],
+ ["E640",0x6F8D],
+ ["BCEA",0x6F8E],
+ ["E658",0x6F90],
+ ["E5FE",0x6F92],
+ ["E651",0x6F93],
+ ["E650",0x6F94],
+ ["E65D",0x6F95],
+ ["E647",0x6F96],
+ ["BCEE",0x6F97],
+ ["FDC5",0x6F9D],
+ ["E9F3",0x6F9E],
+ ["FDD2",0x6F9F],
+ ["BF49",0x6FA0],
+ ["BEFE",0x6FA1],
+ ["EA40",0x6FA2],
+ ["E9EB",0x6FA3],
+ ["BF41",0x6FA4],
+ ["E9F7",0x6FA5],
+ ["BF48",0x6FA6],
+ ["BF43",0x6FA7],
+ ["E9F5",0x6FA8],
+ ["ED4F",0x6FA9],
+ ["E9FB",0x6FAA],
+ ["EA42",0x6FAB],
+ ["E9FA",0x6FAC],
+ ["E9E9",0x6FAD],
+ ["E9F8",0x6FAE],
+ ["EA44",0x6FAF],
+ ["EA46",0x6FB0],
+ ["BEFD",0x6FB1],
+ ["EA45",0x6FB2],
+ ["BF44",0x6FB3],
+ ["BF4A",0x6FB4],
+ ["9CDC",0x6FB5],
+ ["BF47",0x6FB6],
+ ["E9FE",0x6FB8],
+ ["BF46",0x6FB9],
+ ["E9F9",0x6FBA],
+ ["95CF",0x6FBB],
+ ["E9ED",0x6FBC],
+ ["E9F2",0x6FBD],
+ ["8DEE",0x6FBE],
+ ["E9FD",0x6FBF],
+ ["BF45",0x6FC0],
+ ["BF42",0x6FC1],
+ ["BEFC",0x6FC2],
+ ["BF40",0x6FC3],
+ ["E9F1",0x6FC4],
+ ["E5FD",0x6FC6],
+ ["E9EC",0x6FC7],
+ ["E9EF",0x6FC8],
+ ["EA41",0x6FC9],
+ ["E9F4",0x6FCA],
+ ["E9EA",0x6FCB],
+ ["ED4E",0x6FCC],
+ ["EA43",0x6FCD],
+ ["E9EE",0x6FCE],
+ ["E9FC",0x6FCF],
+ ["FDD4",0x6FD3],
+ ["ED51",0x6FD4],
+ ["C0E3",0x6FD5],
+ ["C0D7",0x6FD8],
+ ["96EC",0x6FD9],
+ ["96EB",0x6FDA],
+ ["C0DB",0x6FDB],
+ ["ED53",0x6FDC],
+ ["ED59",0x6FDD],
+ ["ED57",0x6FDE],
+ ["C0D9",0x6FDF],
+ ["C0DA",0x6FE0],
+ ["C0E1",0x6FE1],
+ ["ED5A",0x6FE2],
+ ["ED52",0x6FE3],
+ ["C0DC",0x6FE4],
+ ["ED56",0x6FE6],
+ ["ED55",0x6FE7],
+ ["ED5B",0x6FE8],
+ ["C0E2",0x6FE9],
+ ["C0DD",0x6FEB],
+ ["C0E0",0x6FEC],
+ ["ED54",0x6FED],
+ ["C0E4",0x6FEE],
+ ["C0DE",0x6FEF],
+ ["C0E5",0x6FF0],
+ ["C0D8",0x6FF1],
+ ["ED58",0x6FF2],
+ ["ED50",0x6FF4],
+ ["90B6",0x6FF6],
+ ["EFF7",0x6FF7],
+ ["FDC3",0x6FF8],
+ ["C271",0x6FFA],
+ ["EFF4",0x6FFB],
+ ["EFF6",0x6FFC],
+ ["C26F",0x6FFE],
+ ["EFF2",0x6FFF],
+ ["EFF3",0x7000],
+ ["EFEE",0x7001],
+ ["98AB",0x7003],
+ ["E9F6",0x7004],
+ ["EFEF",0x7005],
+ ["C270",0x7006],
+ ["EFEB",0x7007],
+ ["C26D",0x7009],
+ ["EFF8",0x700A],
+ ["C26E",0x700B],
+ ["EFEC",0x700C],
+ ["EFED",0x700D],
+ ["EFF1",0x700E],
+ ["C273",0x700F],
+ ["C272",0x7011],
+ ["EFF0",0x7014],
+ ["C378",0x7015],
+ ["F25F",0x7016],
+ ["F265",0x7017],
+ ["C379",0x7018],
+ ["F25C",0x7019],
+ ["C376",0x701A],
+ ["C373",0x701B],
+ ["F267",0x701C],
+ ["C377",0x701D],
+ ["96EE",0x701E],
+ ["C374",0x701F],
+ ["F25E",0x7020],
+ ["F261",0x7021],
+ ["F262",0x7022],
+ ["F263",0x7023],
+ ["F266",0x7024],
+ ["EFF5",0x7026],
+ ["F25D",0x7027],
+ ["C375",0x7028],
+ ["F264",0x7029],
+ ["F268",0x702A],
+ ["F260",0x702B],
+ ["8DF4",0x702C],
+ ["F45D",0x702F],
+ ["C46A",0x7030],
+ ["F460",0x7031],
+ ["C46B",0x7032],
+ ["F468",0x7033],
+ ["F45F",0x7034],
+ ["F45C",0x7035],
+ ["F45E",0x7037],
+ ["F462",0x7038],
+ ["F465",0x7039],
+ ["F464",0x703A],
+ ["F467",0x703B],
+ ["F45B",0x703C],
+ ["C469",0x703E],
+ ["F463",0x703F],
+ ["F466",0x7040],
+ ["F469",0x7041],
+ ["F461",0x7042],
+ ["F5D3",0x7043],
+ ["F5D4",0x7044],
+ ["F5D8",0x7045],
+ ["F5D9",0x7046],
+ ["F5D6",0x7048],
+ ["F5D7",0x7049],
+ ["F5D5",0x704A],
+ ["FDE0",0x704B],
+ ["C4E9",0x704C],
+ ["8C67",0x704D],
+ ["8DF6",0x7050],
+ ["C578",0x7051],
+ ["F6EB",0x7052],
+ ["8DF7",0x7054],
+ ["F6E8",0x7055],
+ ["F6E9",0x7056],
+ ["F6EA",0x7057],
+ ["C579",0x7058],
+ ["F7E5",0x705A],
+ ["F7E4",0x705B],
+ ["8FFA",0x705C],
+ ["F8AF",0x705D],
+ ["C5F4",0x705E],
+ ["F8AD",0x705F],
+ ["F8B0",0x7060],
+ ["F8AE",0x7061],
+ ["F8F5",0x7062],
+ ["C657",0x7063],
+ ["C665",0x7064],
+ ["F9A3",0x7065],
+ ["F96C",0x7066],
+ ["97D0",0x7067],
+ ["F9A2",0x7068],
+ ["F9D0",0x7069],
+ ["F9D1",0x706A],
+ ["A4F5",0x706B],
+ ["8BD2",0x706C],
+ ["8DF8",0x706F],
+ ["A6C7",0x7070],
+ ["CA41",0x7071],
+ ["CB5E",0x7074],
+ ["90D9",0x7075],
+ ["A85F",0x7076],
+ ["8C47",0x7077],
+ ["A862",0x7078],
+ ["FAF0",0x7079],
+ ["CB5F",0x707A],
+ ["A860",0x707C],
+ ["A861",0x707D],
+ ["FDE1",0x707E],
+ ["8DF9",0x707F],
+ ["FDE3",0x7081],
+ ["CD58",0x7082],
+ ["CD5A",0x7083],
+ ["CD55",0x7084],
+ ["CD52",0x7085],
+ ["CD54",0x7086],
+ ["8DFA",0x7089],
+ ["AAA4",0x708A],
+ ["FB63",0x708B],
+ ["AAA2",0x708E],
+ ["90A6",0x708F],
+ ["CD56",0x7091],
+ ["AAA3",0x7092],
+ ["CD53",0x7093],
+ ["CD50",0x7094],
+ ["AAA1",0x7095],
+ ["CD57",0x7096],
+ ["CD51",0x7098],
+ ["AAA5",0x7099],
+ ["CD59",0x709A],
+ ["CFAF",0x709F],
+ ["9970",0x70A0],
+ ["CFB3",0x70A1],
+ ["91EB",0x70A3],
+ ["ACB7",0x70A4],
+ ["9770",0x70A5],
+ ["986F",0x70A6],
+ ["FDE2",0x70A7],
+ ["CFB6",0x70A9],
+ ["ACAF",0x70AB],
+ ["ACB2",0x70AC],
+ ["ACB4",0x70AD],
+ ["ACB6",0x70AE],
+ ["ACB3",0x70AF],
+ ["CFB2",0x70B0],
+ ["CFB1",0x70B1],
+ ["ACB1",0x70B3],
+ ["CFB4",0x70B4],
+ ["CFB5",0x70B5],
+ ["CFAE",0x70B7],
+ ["ACB5",0x70B8],
+ ["98F2",0x70B9],
+ ["ACB0",0x70BA],
+ ["9AFC",0x70BB],
+ ["896C",0x70BC],
+ ["FDFD",0x70BD],
+ ["CFB0",0x70BE],
+ ["995E",0x70C0],
+ ["95BD",0x70C4],
+ ["D277",0x70C5],
+ ["D278",0x70C6],
+ ["D279",0x70C7],
+ ["AF50",0x70C8],
+ ["AF4C",0x70CA],
+ ["D26E",0x70CB],
+ ["FDE4",0x70CC],
+ ["D276",0x70CD],
+ ["D27B",0x70CE],
+ ["AF51",0x70CF],
+ ["91E6",0x70D0],
+ ["D26C",0x70D1],
+ ["D272",0x70D2],
+ ["D26B",0x70D3],
+ ["D275",0x70D4],
+ ["FDE5",0x70D5],
+ ["FDE6",0x70D6],
+ ["D271",0x70D7],
+ ["AF4D",0x70D8],
+ ["AF4F",0x70D9],
+ ["D27A",0x70DA],
+ ["D26A",0x70DC],
+ ["D26D",0x70DD],
+ ["D273",0x70DE],
+ ["FDE7",0x70DF],
+ ["D274",0x70E0],
+ ["D27C",0x70E1],
+ ["D270",0x70E2],
+ ["AF4E",0x70E4],
+ ["B26D",0x70EF],
+ ["D64E",0x70F0],
+ ["9454",0x70F1],
+ ["D650",0x70F3],
+ ["D64C",0x70F4],
+ ["99B8",0x70F5],
+ ["D658",0x70F6],
+ ["D64A",0x70F7],
+ ["D657",0x70F8],
+ ["B269",0x70F9],
+ ["D648",0x70FA],
+ ["DA5B",0x70FB],
+ ["D652",0x70FC],
+ ["B26C",0x70FD],
+ ["97E9",0x70FE],
+ ["D653",0x70FF],
+ ["D656",0x7100],
+ ["D65A",0x7102],
+ ["D64F",0x7104],
+ ["9346",0x7105],
+ ["D654",0x7106],
+ ["B26A",0x7109],
+ ["B26B",0x710A],
+ ["D659",0x710B],
+ ["D64D",0x710C],
+ ["D649",0x710D],
+ ["D65B",0x710E],
+ ["D651",0x7110],
+ ["D655",0x7113],
+ ["D64B",0x7117],
+ ["B548",0x7119],
+ ["B549",0x711A],
+ ["DA65",0x711B],
+ ["B54F",0x711C],
+ ["9863",0x711D],
+ ["DA59",0x711E],
+ ["DA62",0x711F],
+ ["DA58",0x7120],
+ ["B54C",0x7121],
+ ["DA60",0x7122],
+ ["DA5E",0x7123],
+ ["DA5F",0x7125],
+ ["B54A",0x7126],
+ ["DA63",0x7128],
+ ["95BC",0x7129],
+ ["FDED",0x712B],
+ ["FDF7",0x712C],
+ ["DA5C",0x712E],
+ ["DA5A",0x712F],
+ ["B54B",0x7130],
+ ["DA5D",0x7131],
+ ["DA61",0x7132],
+ ["9870",0x7133],
+ ["96F6",0x7134],
+ ["8EA9",0x7135],
+ ["B54D",0x7136],
+ ["DA64",0x713A],
+ ["9451",0x713B],
+ ["8E43",0x713E],
+ ["8B5A",0x7140],
+ ["DE70",0x7141],
+ ["DE77",0x7142],
+ ["DE79",0x7143],
+ ["DEA1",0x7144],
+ ["FDEE",0x7145],
+ ["B7DA",0x7146],
+ ["DE6B",0x7147],
+ ["B7D2",0x7149],
+ ["FDF0",0x714A],
+ ["DE7A",0x714B],
+ ["B7D7",0x714C],
+ ["DEA2",0x714D],
+ ["B7CE",0x714E],
+ ["FDF4",0x714F],
+ ["DE7D",0x7150],
+ ["9BF5",0x7151],
+ ["DE6D",0x7152],
+ ["DE7E",0x7153],
+ ["DE6C",0x7154],
+ ["B7DC",0x7156],
+ ["8CEE",0x7157],
+ ["DE78",0x7158],
+ ["B7CF",0x7159],
+ ["DEA3",0x715A],
+ ["B7D4",0x715C],
+ ["DE71",0x715D],
+ ["B7D9",0x715E],
+ ["DE7C",0x715F],
+ ["DE6F",0x7160],
+ ["DE76",0x7161],
+ ["DE72",0x7162],
+ ["DE6E",0x7163],
+ ["B7D1",0x7164],
+ ["B7D8",0x7165],
+ ["B7D6",0x7166],
+ ["B7D3",0x7167],
+ ["B7DB",0x7168],
+ ["B7D0",0x7169],
+ ["DE75",0x716A],
+ ["977E",0x716B],
+ ["B7D5",0x716C],
+ ["B54E",0x716E],
+ ["DE7B",0x7170],
+ ["9BD5",0x7171],
+ ["DE73",0x7172],
+ ["9AC3",0x7173],
+ ["97C8",0x7175],
+ ["A0DB",0x7176],
+ ["91D0",0x7177],
+ ["DE74",0x7178],
+ ["9FE4",0x717A],
+ ["E2C1",0x717B],
+ ["8FDD",0x717C],
+ ["BAB4",0x717D],
+ ["91E9",0x717E],
+ ["E2BD",0x7180],
+ ["E2C3",0x7181],
+ ["E2BF",0x7182],
+ ["BAB6",0x7184],
+ ["E2BE",0x7185],
+ ["E2C2",0x7186],
+ ["E2BA",0x7187],
+ ["98E0",0x7188],
+ ["E2BC",0x7189],
+ ["BAB5",0x718A],
+ ["92CA",0x718C],
+ ["9857",0x718E],
+ ["E2C0",0x718F],
+ ["E2BB",0x7190],
+ ["8C51",0x7191],
+ ["BAB7",0x7192],
+ ["BAB2",0x7194],
+ ["FDEB",0x7196],
+ ["E2C4",0x7197],
+ ["9B49",0x7198],
+ ["BAB3",0x7199],
+ ["E667",0x719A],
+ ["E664",0x719B],
+ ["E670",0x719C],
+ ["E66A",0x719D],
+ ["E66C",0x719E],
+ ["BCF4",0x719F],
+ ["E666",0x71A0],
+ ["E66E",0x71A1],
+ ["9D76",0x71A2],
+ ["9EAF",0x71A3],
+ ["E66D",0x71A4],
+ ["E66B",0x71A5],
+ ["E671",0x71A7],
+ ["BCF7",0x71A8],
+ ["E668",0x71A9],
+ ["E66F",0x71AA],
+ ["BCF5",0x71AC],
+ ["9CCC",0x71AD],
+ ["E663",0x71AF],
+ ["E665",0x71B0],
+ ["BCF6",0x71B1],
+ ["E662",0x71B2],
+ ["E672",0x71B3],
+ ["FDEA",0x71B4],
+ ["E669",0x71B5],
+ ["8DF1",0x71B7],
+ ["EA4A",0x71B8],
+ ["BF51",0x71B9],
+ ["FDFB",0x71BA],
+ ["EA55",0x71BC],
+ ["EA53",0x71BD],
+ ["BF4B",0x71BE],
+ ["EA49",0x71BF],
+ ["EA4C",0x71C0],
+ ["EA4D",0x71C1],
+ ["EA48",0x71C2],
+ ["BF55",0x71C3],
+ ["BF56",0x71C4],
+ ["EA47",0x71C5],
+ ["EA56",0x71C6],
+ ["EA51",0x71C7],
+ ["BF4F",0x71C8],
+ ["BF4C",0x71C9],
+ ["EA50",0x71CA],
+ ["EA4E",0x71CB],
+ ["BF52",0x71CE],
+ ["EA52",0x71CF],
+ ["BF4D",0x71D0],
+ ["8E53",0x71D1],
+ ["BF4E",0x71D2],
+ ["EA4F",0x71D4],
+ ["BF50",0x71D5],
+ ["EA4B",0x71D6],
+ ["EA54",0x71D8],
+ ["BF53",0x71D9],
+ ["EA57",0x71DA],
+ ["EA58",0x71DB],
+ ["BF54",0x71DC],
+ ["FACF",0x71DD],
+ ["C0E7",0x71DF],
+ ["C0EE",0x71E0],
+ ["ED5C",0x71E1],
+ ["ED62",0x71E2],
+ ["ED60",0x71E4],
+ ["C0EA",0x71E5],
+ ["C0E9",0x71E6],
+ ["C0E6",0x71E7],
+ ["ED5E",0x71E8],
+ ["96F9",0x71EB],
+ ["C0EC",0x71EC],
+ ["C0EB",0x71ED],
+ ["C0E8",0x71EE],
+ ["ED61",0x71F0],
+ ["ED5D",0x71F1],
+ ["ED5F",0x71F2],
+ ["C0ED",0x71F4],
+ ["98BF",0x71F5],
+ ["9E49",0x71F6],
+ ["C277",0x71F8],
+ ["EFFB",0x71F9],
+ ["C274",0x71FB],
+ ["C275",0x71FC],
+ ["EFFD",0x71FD],
+ ["C276",0x71FE],
+ ["EFFA",0x71FF],
+ ["8CA7",0x7200],
+ ["EFF9",0x7201],
+ ["F26C",0x7202],
+ ["EFFC",0x7203],
+ ["F26D",0x7205],
+ ["C37A",0x7206],
+ ["F26B",0x7207],
+ ["9BCA",0x7209],
+ ["F26A",0x720A],
+ ["F269",0x720C],
+ ["C37B",0x720D],
+ ["FDFE",0x720E],
+ ["92DC",0x720F],
+ ["C46C",0x7210],
+ ["F46A",0x7213],
+ ["F46B",0x7214],
+ ["FE41",0x7215],
+ ["91CC",0x7216],
+ ["91E2",0x7217],
+ ["F5DC",0x7219],
+ ["F5DB",0x721A],
+ ["C4EA",0x721B],
+ ["F5DA",0x721D],
+ ["F6EC",0x721E],
+ ["F6ED",0x721F],
+ ["F7E6",0x7222],
+ ["F8B1",0x7223],
+ ["FE44",0x7224],
+ ["875F",0x7225],
+ ["F8F6",0x7226],
+ ["F9BC",0x7227],
+ ["C679",0x7228],
+ ["F9C6",0x7229],
+ ["A4F6",0x722A],
+ ["8BD3",0x722B],
+ ["AAA6",0x722C],
+ ["AAA7",0x722D],
+ ["FE47",0x722E],
+ ["ACB8",0x7230],
+ ["C0EF",0x7235],
+ ["A4F7",0x7236],
+ ["AAA8",0x7238],
+ ["AF52",0x7239],
+ ["B7DD",0x723A],
+ ["A4F8",0x723B],
+ ["B26E",0x723D],
+ ["BAB8",0x723E],
+ ["C962",0x723F],
+ ["FE48",0x7240],
+ ["CFB7",0x7241],
+ ["D27D",0x7242],
+ ["E2C5",0x7244],
+ ["C0F0",0x7246],
+ ["A4F9",0x7247],
+ ["AAA9",0x7248],
+ ["CFB8",0x7249],
+ ["CFB9",0x724A],
+ ["DA66",0x724B],
+ ["B550",0x724C],
+ ["DEA4",0x724F],
+ ["9455",0x7250],
+ ["B7DE",0x7252],
+ ["E2C6",0x7253],
+ ["FE4B",0x7255],
+ ["BCF8",0x7256],
+ ["FE4C",0x7257],
+ ["C37C",0x7258],
+ ["A4FA",0x7259],
+ ["DA67",0x725A],
+ ["A4FB",0x725B],
+ ["8DBF",0x725C],
+ ["A6C9",0x725D],
+ ["CA42",0x725E],
+ ["A6C8",0x725F],
+ ["A865",0x7260],
+ ["A864",0x7261],
+ ["A863",0x7262],
+ ["CB60",0x7263],
+ ["9E78",0x7266],
+ ["AAAA",0x7267],
+ ["AAAB",0x7269],
+ ["CD5B",0x726A],
+ ["CFBA",0x726C],
+ ["CFBD",0x726E],
+ ["ACBA",0x726F],
+ ["CFBB",0x7270],
+ ["ACB9",0x7272],
+ ["CFBC",0x7273],
+ ["ACBB",0x7274],
+ ["D2A2",0x7276],
+ ["D2A1",0x7277],
+ ["D27E",0x7278],
+ ["AF53",0x7279],
+ ["D65D",0x727B],
+ ["D65E",0x727C],
+ ["B26F",0x727D],
+ ["D65C",0x727E],
+ ["D65F",0x727F],
+ ["B552",0x7280],
+ ["B270",0x7281],
+ ["FE51",0x7282],
+ ["B551",0x7284],
+ ["DA6B",0x7285],
+ ["DA6A",0x7286],
+ ["9456",0x7287],
+ ["DA68",0x7288],
+ ["DA69",0x7289],
+ ["DA6C",0x728B],
+ ["DEA6",0x728C],
+ ["DEA5",0x728D],
+ ["DEA9",0x728E],
+ ["9D61",0x728F],
+ ["DEA8",0x7290],
+ ["DEA7",0x7291],
+ ["BAB9",0x7292],
+ ["E2C9",0x7293],
+ ["9457",0x7294],
+ ["E2C8",0x7295],
+ ["BABA",0x7296],
+ ["E2C7",0x7297],
+ ["E673",0x7298],
+ ["E674",0x729A],
+ ["BCF9",0x729B],
+ ["EA59",0x729D],
+ ["EA5A",0x729E],
+ ["9966",0x729F],
+ ["F272",0x72A1],
+ ["C37D",0x72A2],
+ ["F271",0x72A3],
+ ["F270",0x72A4],
+ ["F26E",0x72A5],
+ ["F26F",0x72A6],
+ ["C4EB",0x72A7],
+ ["F46C",0x72A8],
+ ["F6EE",0x72A9],
+ ["F8F7",0x72AA],
+ ["A4FC",0x72AC],
+ ["8BD5",0x72AD],
+ ["C9A5",0x72AE],
+ ["A5C7",0x72AF],
+ ["C9A6",0x72B0],
+ ["A069",0x72B2],
+ ["CA43",0x72B4],
+ ["CA44",0x72B5],
+ ["CB66",0x72BA],
+ ["CB62",0x72BD],
+ ["CB61",0x72BF],
+ ["AAAC",0x72C0],
+ ["CB65",0x72C1],
+ ["A867",0x72C2],
+ ["CB63",0x72C3],
+ ["A866",0x72C4],
+ ["CB67",0x72C5],
+ ["CB64",0x72C6],
+ ["CD5F",0x72C9],
+ ["CFBE",0x72CA],
+ ["CD5D",0x72CB],
+ ["CD64",0x72CC],
+ ["98B4",0x72CD],
+ ["AAAD",0x72CE],
+ ["AAB0",0x72D0],
+ ["CD65",0x72D1],
+ ["CD61",0x72D2],
+ ["CD62",0x72D4],
+ ["CD5C",0x72D6],
+ ["AAAF",0x72D7],
+ ["CD5E",0x72D8],
+ ["AAAE",0x72D9],
+ ["CD63",0x72DA],
+ ["CD60",0x72DC],
+ ["CFC2",0x72DF],
+ ["ACBD",0x72E0],
+ ["ACBE",0x72E1],
+ ["A049",0x72E2],
+ ["CFC5",0x72E3],
+ ["CFBF",0x72E4],
+ ["CFC4",0x72E6],
+ ["CFC0",0x72E8],
+ ["ACBC",0x72E9],
+ ["CFC3",0x72EA],
+ ["CFC1",0x72EB],
+ ["D2A8",0x72F3],
+ ["D2A5",0x72F4],
+ ["D2A7",0x72F6],
+ ["AF58",0x72F7],
+ ["AF57",0x72F8],
+ ["AF55",0x72F9],
+ ["D2A4",0x72FA],
+ ["D2A9",0x72FB],
+ ["AF54",0x72FC],
+ ["AF56",0x72FD],
+ ["D2A6",0x72FE],
+ ["D667",0x72FF],
+ ["D2A3",0x7300],
+ ["D2AA",0x7301],
+ ["A04C",0x7302],
+ ["9E65",0x7304],
+ ["D662",0x7307],
+ ["D666",0x7308],
+ ["D665",0x730A],
+ ["DA6E",0x730B],
+ ["DA79",0x730C],
+ ["D668",0x730F],
+ ["98B5",0x7310],
+ ["D663",0x7311],
+ ["DA6D",0x7312],
+ ["B274",0x7313],
+ ["B273",0x7316],
+ ["D661",0x7317],
+ ["D664",0x7318],
+ ["B275",0x7319],
+ ["B272",0x731B],
+ ["B271",0x731C],
+ ["D660",0x731D],
+ ["D669",0x731E],
+ ["DA70",0x7322],
+ ["DA77",0x7323],
+ ["B554",0x7325],
+ ["DA76",0x7326],
+ ["DA73",0x7327],
+ ["FE58",0x7328],
+ ["B556",0x7329],
+ ["9975",0x732A],
+ ["FE53",0x732B],
+ ["A065",0x732C],
+ ["DA75",0x732D],
+ ["FE59",0x732E],
+ ["DA6F",0x7330],
+ ["DA71",0x7331],
+ ["DA74",0x7332],
+ ["DA72",0x7333],
+ ["B555",0x7334],
+ ["DA78",0x7335],
+ ["B553",0x7336],
+ ["B7DF",0x7337],
+ ["98B7",0x7338],
+ ["98B8",0x7339],
+ ["DEAD",0x733A],
+ ["DEAC",0x733B],
+ ["DEAA",0x733C],
+ ["B7E2",0x733E],
+ ["B7E1",0x733F],
+ ["DEAE",0x7340],
+ ["98BA",0x7341],
+ ["DEAB",0x7342],
+ ["E2CA",0x7343],
+ ["BABB",0x7344],
+ ["B7E0",0x7345],
+ ["98BB",0x7348],
+ ["DEB0",0x7349],
+ ["DEAF",0x734A],
+ ["E2CD",0x734C],
+ ["E2CB",0x734D],
+ ["BCFA",0x734E],
+ ["9FBC",0x734F],
+ ["BABC",0x7350],
+ ["E2CC",0x7351],
+ ["E676",0x7352],
+ ["BCFB",0x7357],
+ ["E675",0x7358],
+ ["E67E",0x7359],
+ ["E67D",0x735A],
+ ["E67B",0x735B],
+ ["E67A",0x735D],
+ ["E677",0x735E],
+ ["E678",0x735F],
+ ["E679",0x7360],
+ ["E67C",0x7361],
+ ["E6A1",0x7362],
+ ["EA5F",0x7365],
+ ["EA5C",0x7366],
+ ["EA5D",0x7367],
+ ["BF57",0x7368],
+ ["EA5B",0x7369],
+ ["EA61",0x736A],
+ ["EA60",0x736B],
+ ["EA5E",0x736C],
+ ["ED64",0x736E],
+ ["ED65",0x736F],
+ ["C0F1",0x7370],
+ ["A04A",0x7371],
+ ["C0F2",0x7372],
+ ["ED63",0x7373],
+ ["9EC7",0x7374],
+ ["C279",0x7375],
+ ["EFFE",0x7376],
+ ["C278",0x7377],
+ ["C37E",0x7378],
+ ["C3A1",0x737A],
+ ["C46D",0x737B],
+ ["F46E",0x737C],
+ ["F46D",0x737D],
+ ["F5DD",0x737E],
+ ["F6EF",0x737F],
+ ["C57A",0x7380],
+ ["F7E8",0x7381],
+ ["F7E7",0x7382],
+ ["F7E9",0x7383],
+ ["A5C8",0x7384],
+ ["CFC6",0x7385],
+ ["AF59",0x7386],
+ ["B276",0x7387],
+ ["D66A",0x7388],
+ ["A5C9",0x7389],
+ ["C9A7",0x738A],
+ ["A4FD",0x738B],
+ ["8CA9",0x738C],
+ ["CA45",0x738E],
+ ["98AE",0x738F],
+ ["CB6C",0x7392],
+ ["CB6A",0x7393],
+ ["CB6B",0x7394],
+ ["CB68",0x7395],
+ ["A868",0x7396],
+ ["CB69",0x7397],
+ ["92D6",0x7398],
+ ["FAE1",0x739C],
+ ["CD6D",0x739D],
+ ["91D4",0x739E],
+ ["AAB3",0x739F],
+ ["CD6B",0x73A0],
+ ["CD67",0x73A1],
+ ["CD6A",0x73A2],
+ ["CD66",0x73A4],
+ ["AAB5",0x73A5],
+ ["CD69",0x73A6],
+ ["FADE",0x73A7],
+ ["AAB2",0x73A8],
+ ["AAB1",0x73A9],
+ ["FE5B",0x73AA],
+ ["AAB4",0x73AB],
+ ["CD6C",0x73AC],
+ ["CD68",0x73AD],
+ ["ACC2",0x73B2],
+ ["ACC5",0x73B3],
+ ["CFCE",0x73B4],
+ ["CFCD",0x73B5],
+ ["CFCC",0x73B6],
+ ["ACBF",0x73B7],
+ ["CFD5",0x73B8],
+ ["CFCB",0x73B9],
+ ["8C53",0x73BA],
+ ["ACC1",0x73BB],
+ ["D2AF",0x73BC],
+ ["CFD2",0x73BE],
+ ["CFD0",0x73BF],
+ ["ACC4",0x73C0],
+ ["CFC8",0x73C2],
+ ["CFD3",0x73C3],
+ ["CFCA",0x73C5],
+ ["CFD4",0x73C6],
+ ["CFD1",0x73C7],
+ ["CFC9",0x73C8],
+ ["FE5E",0x73C9],
+ ["ACC0",0x73CA],
+ ["CFD6",0x73CB],
+ ["CFC7",0x73CC],
+ ["ACC3",0x73CD],
+ ["FBD7",0x73CE],
+ ["FE5A",0x73CF],
+ ["94C5",0x73D0],
+ ["D2B4",0x73D2],
+ ["D2AB",0x73D3],
+ ["D2B6",0x73D4],
+ ["FACA",0x73D5],
+ ["D2AE",0x73D6],
+ ["D2B9",0x73D7],
+ ["D2BA",0x73D8],
+ ["D2AC",0x73D9],
+ ["D2B8",0x73DA],
+ ["D2B5",0x73DB],
+ ["D2B3",0x73DC],
+ ["D2B7",0x73DD],
+ ["AF5F",0x73DE],
+ ["AF5D",0x73E0],
+ ["98C1",0x73E1],
+ ["975C",0x73E2],
+ ["D2B1",0x73E3],
+ ["FE74",0x73E4],
+ ["D2AD",0x73E5],
+ ["9773",0x73E6],
+ ["D2B0",0x73E7],
+ ["D2BB",0x73E8],
+ ["D2B2",0x73E9],
+ ["AF5E",0x73EA],
+ ["CFCF",0x73EB],
+ ["AF5A",0x73ED],
+ ["AF5C",0x73EE],
+ ["FA46",0x73EF],
+ ["9764",0x73F3],
+ ["D678",0x73F4],
+ ["D66D",0x73F5],
+ ["D66B",0x73F6],
+ ["FE68",0x73F7],
+ ["D66C",0x73F8],
+ ["964E",0x73F9],
+ ["D673",0x73FA],
+ ["9765",0x73FB],
+ ["D674",0x73FC],
+ ["D670",0x73FD],
+ ["B27B",0x73FE],
+ ["D675",0x73FF],
+ ["D672",0x7400],
+ ["D66F",0x7401],
+ ["8C5A",0x7402],
+ ["B279",0x7403],
+ ["D66E",0x7404],
+ ["B277",0x7405],
+ ["B27A",0x7406],
+ ["D671",0x7407],
+ ["D679",0x7408],
+ ["AF5B",0x7409],
+ ["B278",0x740A],
+ ["D677",0x740B],
+ ["D676",0x740C],
+ ["B27C",0x740D],
+ ["89A1",0x7411],
+ ["95FA",0x7412],
+ ["92D4",0x7414],
+ ["FE69",0x7415],
+ ["DA7E",0x7416],
+ ["FB45",0x7417],
+ ["98C8",0x7419],
+ ["DAA1",0x741A],
+ ["B560",0x741B],
+ ["90EF",0x741C],
+ ["DAA7",0x741D],
+ ["98C9",0x741E],
+ ["98CA",0x741F],
+ ["DAA9",0x7420],
+ ["DAA2",0x7421],
+ ["B55A",0x7422],
+ ["DAA6",0x7423],
+ ["DAA5",0x7424],
+ ["B55B",0x7425],
+ ["B561",0x7426],
+ ["B562",0x7428],
+ ["DAA8",0x7429],
+ ["B558",0x742A],
+ ["DA7D",0x742B],
+ ["DA7B",0x742C],
+ ["DAA3",0x742D],
+ ["DA7A",0x742E],
+ ["B55F",0x742F],
+ ["DA7C",0x7430],
+ ["DAA4",0x7431],
+ ["DAAA",0x7432],
+ ["B559",0x7433],
+ ["B55E",0x7434],
+ ["B55C",0x7435],
+ ["B55D",0x7436],
+ ["946D",0x7437],
+ ["94B7",0x7438],
+ ["FE6C",0x7439],
+ ["B557",0x743A],
+ ["946B",0x743C],
+ ["B7E9",0x743F],
+ ["DEB7",0x7440],
+ ["B7E8",0x7441],
+ ["DEBB",0x7442],
+ ["92FC",0x7443],
+ ["DEB1",0x7444],
+ ["95EB",0x7445],
+ ["DEBC",0x7446],
+ ["FE73",0x7447],
+ ["976E",0x7448],
+ ["FE5F",0x7449],
+ ["DEB2",0x744A],
+ ["DEB3",0x744B],
+ ["DEBD",0x744D],
+ ["DEBA",0x744E],
+ ["DEB8",0x744F],
+ ["DEB9",0x7450],
+ ["DEB5",0x7451],
+ ["DEB4",0x7452],
+ ["FDBD",0x7453],
+ ["DEBE",0x7454],
+ ["B7E5",0x7455],
+ ["92D5",0x7456],
+ ["DEB6",0x7457],
+ ["B7EA",0x7459],
+ ["B7E4",0x745A],
+ ["B7EB",0x745B],
+ ["B7EC",0x745C],
+ ["FEB9",0x745D],
+ ["B7E7",0x745E],
+ ["B7E6",0x745F],
+ ["FE71",0x7460],
+ ["8778",0x7461],
+ ["E2CE",0x7462],
+ ["BABE",0x7463],
+ ["BABD",0x7464],
+ ["FBBB",0x7465],
+ ["E2D3",0x7467],
+ ["947A",0x7468],
+ ["BCFC",0x7469],
+ ["BABF",0x746A],
+ ["95FB",0x746B],
+ ["FE77",0x746C],
+ ["BAC1",0x746D],
+ ["E2D4",0x746E],
+ ["B7E3",0x746F],
+ ["BAC0",0x7470],
+ ["E2D0",0x7471],
+ ["E2D2",0x7472],
+ ["E2CF",0x7473],
+ ["FE79",0x7474],
+ ["E2D1",0x7475],
+ ["FE75",0x7476],
+ ["E6AB",0x7479],
+ ["945D",0x747A],
+ ["E6AA",0x747C],
+ ["E6A7",0x747D],
+ ["BD40",0x747E],
+ ["EA62",0x747F],
+ ["BD41",0x7480],
+ ["E6A6",0x7481],
+ ["FE7C",0x7482],
+ ["BCFE",0x7483],
+ ["E6A8",0x7485],
+ ["E6A5",0x7486],
+ ["E6A2",0x7487],
+ ["E6A9",0x7488],
+ ["E6A3",0x7489],
+ ["E6A4",0x748A],
+ ["BCFD",0x748B],
+ ["9344",0x748C],
+ ["8EA6",0x748D],
+ ["ED69",0x7490],
+ ["EA66",0x7492],
+ ["EA65",0x7494],
+ ["EA67",0x7495],
+ ["ED66",0x7497],
+ ["BF5A",0x7498],
+ ["92D3",0x7499],
+ ["EA63",0x749A],
+ ["94B8",0x749B],
+ ["BF58",0x749C],
+ ["8779",0x749D],
+ ["BF5C",0x749E],
+ ["BF5B",0x749F],
+ ["EA64",0x74A0],
+ ["EA68",0x74A1],
+ ["BF59",0x74A3],
+ ["FC71",0x74A4],
+ ["ED6D",0x74A5],
+ ["C0F5",0x74A6],
+ ["C27A",0x74A7],
+ ["C0F6",0x74A8],
+ ["C0F3",0x74A9],
+ ["ED6A",0x74AA],
+ ["ED68",0x74AB],
+ ["ED6B",0x74AD],
+ ["ED6E",0x74AF],
+ ["C0F4",0x74B0],
+ ["ED6C",0x74B1],
+ ["ED67",0x74B2],
+ ["975E",0x74B4],
+ ["F042",0x74B5],
+ ["F045",0x74B6],
+ ["F275",0x74B7],
+ ["F040",0x74B8],
+ ["8CAD",0x74B9],
+ ["F46F",0x74BA],
+ ["F046",0x74BB],
+ ["C3A2",0x74BD],
+ ["F044",0x74BE],
+ ["C27B",0x74BF],
+ ["F041",0x74C0],
+ ["F043",0x74C1],
+ ["F047",0x74C2],
+ ["F276",0x74C3],
+ ["F274",0x74C5],
+ ["FEA7",0x74C8],
+ ["C3A3",0x74CA],
+ ["F273",0x74CB],
+ ["946A",0x74CC],
+ ["C46E",0x74CF],
+ ["93E3",0x74D0],
+ ["98CF",0x74D3],
+ ["C4ED",0x74D4],
+ ["F6F1",0x74D5],
+ ["C4EC",0x74D6],
+ ["F6F3",0x74D7],
+ ["F6F0",0x74D8],
+ ["F6F2",0x74D9],
+ ["C5D0",0x74DA],
+ ["F8B2",0x74DB],
+ ["A5CA",0x74DC],
+ ["CD6E",0x74DD],
+ ["D2BC",0x74DE],
+ ["D2BD",0x74DF],
+ ["B27D",0x74E0],
+ ["DEBF",0x74E1],
+ ["BF5D",0x74E2],
+ ["C3A4",0x74E3],
+ ["C57B",0x74E4],
+ ["F8B3",0x74E5],
+ ["A5CB",0x74E6],
+ ["A0D9",0x74E7],
+ ["CD6F",0x74E8],
+ ["A260",0x74E9],
+ ["CFD7",0x74EC],
+ ["CFD8",0x74EE],
+ ["A0BF",0x74F0],
+ ["A04D",0x74F1],
+ ["A0B8",0x74F2],
+ ["D2BE",0x74F4],
+ ["D2BF",0x74F5],
+ ["B27E",0x74F6],
+ ["B2A1",0x74F7],
+ ["A0CE",0x74F8],
+ ["DAAB",0x74FB],
+ ["DEC2",0x74FD],
+ ["DEC1",0x74FE],
+ ["DEC0",0x74FF],
+ ["E2D5",0x7500],
+ ["E2D6",0x7502],
+ ["E2D7",0x7503],
+ ["BAC2",0x7504],
+ ["A0B7",0x7505],
+ ["E6AD",0x7507],
+ ["E6AC",0x7508],
+ ["EA69",0x750B],
+ ["BF5E",0x750C],
+ ["BF5F",0x750D],
+ ["FEA9",0x750E],
+ ["ED72",0x750F],
+ ["ED6F",0x7510],
+ ["ED70",0x7511],
+ ["ED71",0x7512],
+ ["F049",0x7513],
+ ["F048",0x7514],
+ ["C27C",0x7515],
+ ["F277",0x7516],
+ ["F5DE",0x7517],
+ ["A5CC",0x7518],
+ ["89C3",0x7519],
+ ["ACC6",0x751A],
+ ["B2A2",0x751C],
+ ["DEC3",0x751D],
+ ["FEAB",0x751E],
+ ["A5CD",0x751F],
+ ["D2C0",0x7521],
+ ["B2A3",0x7522],
+ ["B563",0x7525],
+ ["B564",0x7526],
+ ["A5CE",0x7528],
+ ["A5CF",0x7529],
+ ["CA46",0x752A],
+ ["A86A",0x752B],
+ ["A869",0x752C],
+ ["ACC7",0x752D],
+ ["CFD9",0x752E],
+ ["DAAC",0x752F],
+ ["A5D0",0x7530],
+ ["A5D1",0x7531],
+ ["A5D2",0x7532],
+ ["A5D3",0x7533],
+ ["9DF4",0x7534],
+ ["896D",0x7535],
+ ["A86B",0x7537],
+ ["A86C",0x7538],
+ ["CB6E",0x7539],
+ ["CB6D",0x753A],
+ ["9C7B",0x753B],
+ ["AAB6",0x753D],
+ ["CD72",0x753E],
+ ["CD70",0x753F],
+ ["CD71",0x7540],
+ ["98D2",0x7542],
+ ["9FA9",0x7546],
+ ["CFDA",0x7547],
+ ["CFDB",0x7548],
+ ["FEB2",0x754A],
+ ["ACCB",0x754B],
+ ["ACC9",0x754C],
+ ["FEB1",0x754D],
+ ["ACCA",0x754E],
+ ["ACC8",0x754F],
+ ["97D9",0x7551],
+ ["A0C4",0x7553],
+ ["AF60",0x7554],
+ ["9476",0x7555],
+ ["AF64",0x7559],
+ ["AF63",0x755A],
+ ["D2C1",0x755B],
+ ["AF62",0x755C],
+ ["AF61",0x755D],
+ ["D2C2",0x755F],
+ ["9978",0x7560],
+ ["B2A6",0x7562],
+ ["D67B",0x7563],
+ ["D67A",0x7564],
+ ["B2A4",0x7565],
+ ["B2A5",0x7566],
+ ["FEB3",0x7567],
+ ["B566",0x756A],
+ ["B565",0x756B],
+ ["DAAE",0x756C],
+ ["98D3",0x756D],
+ ["FEB4",0x756E],
+ ["DAAD",0x756F],
+ ["B2A7",0x7570],
+ ["98D4",0x7572],
+ ["B7ED",0x7576],
+ ["DEC5",0x7577],
+ ["B7EE",0x7578],
+ ["DEC4",0x7579],
+ ["9FB9",0x757A],
+ ["E2D8",0x757D],
+ ["E6AE",0x757E],
+ ["BD42",0x757F],
+ ["EA6A",0x7580],
+ ["9471",0x7583],
+ ["ED73",0x7584],
+ ["C3A6",0x7586],
+ ["C3A5",0x7587],
+ ["C57C",0x758A],
+ ["A5D4",0x758B],
+ ["CD73",0x758C],
+ ["98D5",0x758D],
+ ["FEB8",0x758E],
+ ["B2A8",0x758F],
+ ["E2D9",0x7590],
+ ["BAC3",0x7591],
+ ["C6D4",0x7592],
+ ["CB6F",0x7594],
+ ["CB70",0x7595],
+ ["CD74",0x7598],
+ ["AAB8",0x7599],
+ ["AAB9",0x759A],
+ ["AAB7",0x759D],
+ ["FEBA",0x759E],
+ ["ACCF",0x75A2],
+ ["ACD0",0x75A3],
+ ["ACCD",0x75A4],
+ ["ACCE",0x75A5],
+ ["CFDC",0x75A7],
+ ["CFDD",0x75AA],
+ ["ACCC",0x75AB],
+ ["D2C3",0x75B0],
+ ["9E5C",0x75B1],
+ ["AF68",0x75B2],
+ ["AF69",0x75B3],
+ ["FEBB",0x75B4],
+ ["B2AB",0x75B5],
+ ["D2C9",0x75B6],
+ ["AF6E",0x75B8],
+ ["AF6C",0x75B9],
+ ["D2CA",0x75BA],
+ ["D2C5",0x75BB],
+ ["AF6B",0x75BC],
+ ["AF6A",0x75BD],
+ ["AF65",0x75BE],
+ ["D2C8",0x75BF],
+ ["D2C7",0x75C0],
+ ["D2C4",0x75C1],
+ ["AF6D",0x75C2],
+ ["A044",0x75C3],
+ ["D2C6",0x75C4],
+ ["AF66",0x75C5],
+ ["AF67",0x75C7],
+ ["98D7",0x75C8],
+ ["B2AC",0x75CA],
+ ["D6A1",0x75CB],
+ ["D6A2",0x75CC],
+ ["B2AD",0x75CD],
+ ["D67C",0x75CE],
+ ["D67E",0x75CF],
+ ["D6A4",0x75D0],
+ ["D6A3",0x75D1],
+ ["D67D",0x75D2],
+ ["B2A9",0x75D4],
+ ["B2AA",0x75D5],
+ ["DAB6",0x75D7],
+ ["B56B",0x75D8],
+ ["B56A",0x75D9],
+ ["DAB0",0x75DA],
+ ["B568",0x75DB],
+ ["98D8",0x75DC],
+ ["DAB3",0x75DD],
+ ["B56C",0x75DE],
+ ["DAB4",0x75DF],
+ ["B56D",0x75E0],
+ ["DAB1",0x75E1],
+ ["B567",0x75E2],
+ ["B569",0x75E3],
+ ["DAB5",0x75E4],
+ ["DAB2",0x75E6],
+ ["DAAF",0x75E7],
+ ["DED2",0x75ED],
+ ["DEC7",0x75EF],
+ ["B7F0",0x75F0],
+ ["B7F3",0x75F1],
+ ["B7F2",0x75F2],
+ ["B7F7",0x75F3],
+ ["B7F6",0x75F4],
+ ["DED3",0x75F5],
+ ["DED1",0x75F6],
+ ["DECA",0x75F7],
+ ["DECE",0x75F8],
+ ["DECD",0x75F9],
+ ["B7F4",0x75FA],
+ ["DED0",0x75FB],
+ ["DECC",0x75FC],
+ ["DED4",0x75FD],
+ ["DECB",0x75FE],
+ ["B7F5",0x75FF],
+ ["B7EF",0x7600],
+ ["B7F1",0x7601],
+ ["FEBC",0x7602],
+ ["DEC9",0x7603],
+ ["9FFE",0x7607],
+ ["E2DB",0x7608],
+ ["BAC7",0x7609],
+ ["E2DF",0x760A],
+ ["BAC6",0x760B],
+ ["E2DC",0x760C],
+ ["BAC5",0x760D],
+ ["DEC8",0x760F],
+ ["DECF",0x7610],
+ ["E2DE",0x7611],
+ ["BAC8",0x7613],
+ ["E2E0",0x7614],
+ ["E2DD",0x7615],
+ ["E2DA",0x7616],
+ ["E6B1",0x7619],
+ ["E6B5",0x761A],
+ ["E6B7",0x761B],
+ ["E6B3",0x761C],
+ ["E6B2",0x761D],
+ ["E6B0",0x761E],
+ ["BD45",0x761F],
+ ["BD43",0x7620],
+ ["BD48",0x7621],
+ ["BD49",0x7622],
+ ["E6B4",0x7623],
+ ["BD46",0x7624],
+ ["E6AF",0x7625],
+ ["BD47",0x7626],
+ ["BAC4",0x7627],
+ ["E6B6",0x7628],
+ ["BD44",0x7629],
+ ["FEBD",0x762C],
+ ["EA6C",0x762D],
+ ["EA6B",0x762F],
+ ["EA73",0x7630],
+ ["EA6D",0x7631],
+ ["EA72",0x7632],
+ ["EA6F",0x7633],
+ ["BF60",0x7634],
+ ["EA71",0x7635],
+ ["BF61",0x7638],
+ ["BF62",0x763A],
+ ["9DDD",0x763B],
+ ["EA70",0x763C],
+ ["EA6E",0x763D],
+ ["9EE1",0x7640],
+ ["C0F8",0x7642],
+ ["ED74",0x7643],
+ ["C0F7",0x7646],
+ ["ED77",0x7647],
+ ["ED75",0x7648],
+ ["ED76",0x7649],
+ ["C0F9",0x764C],
+ ["98DA",0x764D],
+ ["9DDF",0x764E],
+ ["FEBF",0x764F],
+ ["F04D",0x7650],
+ ["FEBE",0x7651],
+ ["C2A1",0x7652],
+ ["F04E",0x7653],
+ ["9EEB",0x7654],
+ ["C27D",0x7656],
+ ["F04F",0x7657],
+ ["C27E",0x7658],
+ ["F04C",0x7659],
+ ["F050",0x765A],
+ ["F04A",0x765C],
+ ["C3A7",0x765F],
+ ["F278",0x7660],
+ ["C3A8",0x7661],
+ ["C46F",0x7662],
+ ["F04B",0x7664],
+ ["C470",0x7665],
+ ["9E59",0x7666],
+ ["A05C",0x7667],
+ ["C4EE",0x7669],
+ ["F5DF",0x766A],
+ ["C57E",0x766C],
+ ["F6F4",0x766D],
+ ["C57D",0x766E],
+ ["FEC0",0x766F],
+ ["F7EA",0x7670],
+ ["C5F5",0x7671],
+ ["C5F6",0x7672],
+ ["9477",0x7673],
+ ["98DC",0x7674],
+ ["F9CC",0x7675],
+ ["FEC1",0x7676],
+ ["ACD1",0x7678],
+ ["CFDE",0x7679],
+ ["98DE",0x767A],
+ ["B56E",0x767B],
+ ["B56F",0x767C],
+ ["A5D5",0x767D],
+ ["A6CA",0x767E],
+ ["CA47",0x767F],
+ ["CB71",0x7681],
+ ["A86D",0x7682],
+ ["AABA",0x7684],
+ ["ACD2",0x7686],
+ ["ACD3",0x7687],
+ ["ACD4",0x7688],
+ ["D6A6",0x7689],
+ ["D2CB",0x768A],
+ ["AF6F",0x768B],
+ ["B2AE",0x768E],
+ ["D6A5",0x768F],
+ ["FEC3",0x7690],
+ ["DAB8",0x7692],
+ ["B571",0x7693],
+ ["DAB7",0x7695],
+ ["B570",0x7696],
+ ["DED5",0x7699],
+ ["BD4A",0x769A],
+ ["E6BB",0x769B],
+ ["E6B8",0x769C],
+ ["E6B9",0x769D],
+ ["E6BA",0x769E],
+ ["FEC8",0x76A1],
+ ["ED78",0x76A4],
+ ["FEC9",0x76A5],
+ ["F051",0x76A6],
+ ["F471",0x76AA],
+ ["F470",0x76AB],
+ ["F6F5",0x76AD],
+ ["A5D6",0x76AE],
+ ["CD75",0x76AF],
+ ["AF70",0x76B0],
+ ["B572",0x76B4],
+ ["DED6",0x76B5],
+ ["FECA",0x76B7],
+ ["E2E1",0x76B8],
+ ["BD4B",0x76BA],
+ ["EA74",0x76BB],
+ ["F052",0x76BD],
+ ["F472",0x76BE],
+ ["A5D7",0x76BF],
+ ["AABB",0x76C2],
+ ["ACD7",0x76C3],
+ ["CFDF",0x76C4],
+ ["ACD8",0x76C5],
+ ["ACD6",0x76C6],
+ ["ACD5",0x76C8],
+ ["D2CC",0x76C9],
+ ["AF71",0x76CA],
+ ["FECB",0x76CC],
+ ["AF72",0x76CD],
+ ["AF73",0x76CE],
+ ["B2B0",0x76D2],
+ ["D6A7",0x76D3],
+ ["B2AF",0x76D4],
+ ["9FC2",0x76D6],
+ ["8C6B",0x76D9],
+ ["DAB9",0x76DA],
+ ["B2B1",0x76DB],
+ ["B573",0x76DC],
+ ["DED7",0x76DD],
+ ["B7F8",0x76DE],
+ ["B7F9",0x76DF],
+ ["BAC9",0x76E1],
+ ["BACA",0x76E3],
+ ["BD4C",0x76E4],
+ ["BF64",0x76E5],
+ ["EA75",0x76E6],
+ ["BF63",0x76E7],
+ ["ED79",0x76E9],
+ ["C0FA",0x76EA],
+ ["F053",0x76EC],
+ ["F473",0x76ED],
+ ["A5D8",0x76EE],
+ ["A86E",0x76EF],
+ ["CD78",0x76F0],
+ ["CD77",0x76F1],
+ ["AABC",0x76F2],
+ ["CD76",0x76F3],
+ ["AABD",0x76F4],
+ ["CD79",0x76F5],
+ ["CFE5",0x76F7],
+ ["ACDB",0x76F8],
+ ["ACDA",0x76F9],
+ ["CFE7",0x76FA],
+ ["CFE6",0x76FB],
+ ["ACDF",0x76FC],
+ ["ACDE",0x76FE],
+ ["ACD9",0x7701],
+ ["CFE1",0x7703],
+ ["CFE2",0x7704],
+ ["CFE3",0x7705],
+ ["ACE0",0x7707],
+ ["CFE0",0x7708],
+ ["ACDC",0x7709],
+ ["CFE4",0x770A],
+ ["ACDD",0x770B],
+ ["98C4",0x770C],
+ ["94B0",0x770E],
+ ["94B1",0x770F],
+ ["D2CF",0x7710],
+ ["D2D3",0x7711],
+ ["D2D1",0x7712],
+ ["D2D0",0x7713],
+ ["D2D4",0x7715],
+ ["D2D5",0x7719],
+ ["D2D6",0x771A],
+ ["D2CE",0x771B],
+ ["D2CD",0x771D],
+ ["FED1",0x771E],
+ ["AF75",0x771F],
+ ["AF76",0x7720],
+ ["D2D7",0x7722],
+ ["D2D2",0x7723],
+ ["A0C1",0x7724],
+ ["D6B0",0x7725],
+ ["FED2",0x7726],
+ ["D2D8",0x7727],
+ ["AF77",0x7728],
+ ["AF74",0x7729],
+ ["A0CD",0x772B],
+ ["D6AA",0x772D],
+ ["D6A9",0x772F],
+ ["D6AB",0x7731],
+ ["D6AC",0x7732],
+ ["D6AE",0x7733],
+ ["D6AD",0x7734],
+ ["D6B2",0x7735],
+ ["B2B5",0x7736],
+ ["B2B2",0x7737],
+ ["B2B6",0x7738],
+ ["D6A8",0x7739],
+ ["B2B7",0x773A],
+ ["D6B1",0x773B],
+ ["B2B4",0x773C],
+ ["D6AF",0x773D],
+ ["B2B3",0x773E],
+ ["FED3",0x7740],
+ ["98E5",0x7743],
+ ["DABC",0x7744],
+ ["DABE",0x7745],
+ ["DABA",0x7746],
+ ["DABB",0x7747],
+ ["DABF",0x774A],
+ ["DAC1",0x774B],
+ ["DAC2",0x774C],
+ ["DABD",0x774D],
+ ["DAC0",0x774E],
+ ["B574",0x774F],
+ ["DEDB",0x7752],
+ ["DEE0",0x7754],
+ ["DED8",0x7755],
+ ["DEDC",0x7756],
+ ["FED6",0x7758],
+ ["DEE1",0x7759],
+ ["DEDD",0x775A],
+ ["B7FA",0x775B],
+ ["B843",0x775C],
+ ["B7FD",0x775E],
+ ["DED9",0x775F],
+ ["DEDA",0x7760],
+ ["BACE",0x7761],
+ ["B846",0x7762],
+ ["B7FE",0x7763],
+ ["B844",0x7765],
+ ["B7FC",0x7766],
+ ["DEDF",0x7767],
+ ["B845",0x7768],
+ ["DEDE",0x7769],
+ ["B841",0x776A],
+ ["B7FB",0x776B],
+ ["B842",0x776C],
+ ["DEE2",0x776D],
+ ["E2E6",0x776E],
+ ["E2E8",0x776F],
+ ["91E4",0x7772],
+ ["8FC7",0x7777],
+ ["94AE",0x7778],
+ ["B840",0x7779],
+ ["8A4F",0x777A],
+ ["94B2",0x777B],
+ ["E2E3",0x777C],
+ ["BACC",0x777D],
+ ["E2E9",0x777E],
+ ["BACD",0x777F],
+ ["E2E7",0x7780],
+ ["E2E2",0x7781],
+ ["E2E5",0x7782],
+ ["E2EA",0x7783],
+ ["BACB",0x7784],
+ ["E2E4",0x7785],
+ ["BD4E",0x7787],
+ ["E6BF",0x7788],
+ ["E6BE",0x7789],
+ ["BD51",0x778B],
+ ["BD4F",0x778C],
+ ["E6BC",0x778D],
+ ["BD4D",0x778E],
+ ["E6BD",0x778F],
+ ["BD50",0x7791],
+ ["8FD4",0x7793],
+ ["EA7D",0x7795],
+ ["EAA1",0x7797],
+ ["98EA",0x7798],
+ ["EA7E",0x7799],
+ ["EA76",0x779A],
+ ["EA7A",0x779B],
+ ["EA79",0x779C],
+ ["EA77",0x779D],
+ ["BF66",0x779E],
+ ["BF67",0x779F],
+ ["BF65",0x77A0],
+ ["EA78",0x77A1],
+ ["EA7B",0x77A2],
+ ["EA7C",0x77A3],
+ ["BF68",0x77A5],
+ ["C140",0x77A7],
+ ["EDA3",0x77A8],
+ ["C0FC",0x77AA],
+ ["ED7B",0x77AB],
+ ["C0FE",0x77AC],
+ ["C141",0x77AD],
+ ["FED8",0x77AF],
+ ["C0FD",0x77B0],
+ ["EDA2",0x77B1],
+ ["ED7C",0x77B2],
+ ["C0FB",0x77B3],
+ ["EDA1",0x77B4],
+ ["ED7A",0x77B5],
+ ["ED7E",0x77B6],
+ ["ED7D",0x77B7],
+ ["9DE0",0x77B9],
+ ["F055",0x77BA],
+ ["C2A4",0x77BB],
+ ["C2A5",0x77BC],
+ ["C2A2",0x77BD],
+ ["98EE",0x77BE],
+ ["C2A3",0x77BF],
+ ["F054",0x77C2],
+ ["95C4",0x77C3],
+ ["F27B",0x77C4],
+ ["FCE8",0x77C5],
+ ["C3A9",0x77C7],
+ ["F279",0x77C9],
+ ["F27A",0x77CA],
+ ["98EF",0x77CB],
+ ["F474",0x77CC],
+ ["F477",0x77CD],
+ ["F475",0x77CE],
+ ["F476",0x77CF],
+ ["F5E0",0x77D0],
+ ["C4EF",0x77D3],
+ ["F7EB",0x77D4],
+ ["F8B4",0x77D5],
+ ["C5F7",0x77D7],
+ ["F8F8",0x77D8],
+ ["F8F9",0x77D9],
+ ["C666",0x77DA],
+ ["A5D9",0x77DB],
+ ["ACE1",0x77DC],
+ ["8C6E",0x77DD],
+ ["DAC3",0x77DE],
+ ["DEE3",0x77E0],
+ ["A5DA",0x77E2],
+ ["A86F",0x77E3],
+ ["AABE",0x77E5],
+ ["FAD8",0x77E6],
+ ["CFE8",0x77E7],
+ ["CFE9",0x77E8],
+ ["AF78",0x77E9],
+ ["DAC4",0x77EC],
+ ["B575",0x77ED],
+ ["B847",0x77EE],
+ ["C142",0x77EF],
+ ["EDA4",0x77F0],
+ ["F27C",0x77F1],
+ ["F478",0x77F2],
+ ["A5DB",0x77F3],
+ ["FEDC",0x77F4],
+ ["CDA1",0x77F7],
+ ["CD7A",0x77F8],
+ ["CD7C",0x77F9],
+ ["CD7E",0x77FA],
+ ["CD7D",0x77FB],
+ ["CD7B",0x77FC],
+ ["AABF",0x77FD],
+ ["A0AE",0x77FE],
+ ["ACE2",0x7802],
+ ["CFF2",0x7803],
+ ["CFED",0x7805],
+ ["CFEA",0x7806],
+ ["9D4C",0x7808],
+ ["CFF1",0x7809],
+ ["ACE4",0x780C],
+ ["ACE5",0x780D],
+ ["CFF0",0x780E],
+ ["CFEF",0x780F],
+ ["CFEE",0x7810],
+ ["CFEB",0x7811],
+ ["CFEC",0x7812],
+ ["CFF3",0x7813],
+ ["ACE3",0x7814],
+ ["98F1",0x7818],
+ ["98F3",0x781C],
+ ["AF7C",0x781D],
+ ["94C1",0x781E],
+ ["AFA4",0x781F],
+ ["AFA3",0x7820],
+ ["D2E1",0x7821],
+ ["D2DB",0x7822],
+ ["D2D9",0x7823],
+ ["AFA1",0x7825],
+ ["D6B9",0x7826],
+ ["AF7A",0x7827],
+ ["D2DE",0x7828],
+ ["D2E2",0x7829],
+ ["D2E4",0x782A],
+ ["D2E0",0x782B],
+ ["D2DA",0x782C],
+ ["AFA2",0x782D],
+ ["D2DF",0x782E],
+ ["D2DD",0x782F],
+ ["AF79",0x7830],
+ ["D2E5",0x7831],
+ ["AFA5",0x7832],
+ ["D2E3",0x7833],
+ ["AF7D",0x7834],
+ ["D2DC",0x7835],
+ ["AF7E",0x7837],
+ ["AF7B",0x7838],
+ ["98F5",0x7839],
+ ["FA4F",0x783C],
+ ["96E2",0x783D],
+ ["9450",0x7842],
+ ["B2B9",0x7843],
+ ["96A2",0x7844],
+ ["D6BA",0x7845],
+ ["98F6",0x7847],
+ ["D6B3",0x7848],
+ ["D6B5",0x7849],
+ ["D6B7",0x784A],
+ ["96E5",0x784B],
+ ["D6B8",0x784C],
+ ["D6B6",0x784D],
+ ["B2BA",0x784E],
+ ["D6BB",0x7850],
+ ["98F7",0x7851],
+ ["D6B4",0x7852],
+ ["A046",0x7853],
+ ["96E3",0x7854],
+ ["DAC8",0x785C],
+ ["B576",0x785D],
+ ["DAD0",0x785E],
+ ["DAC5",0x7860],
+ ["DAD1",0x7862],
+ ["DAC6",0x7864],
+ ["DAC7",0x7865],
+ ["98F8",0x7866],
+ ["DACF",0x7868],
+ ["DACE",0x7869],
+ ["DACB",0x786A],
+ ["B2B8",0x786B],
+ ["B577",0x786C],
+ ["DAC9",0x786D],
+ ["DACC",0x786E],
+ ["B578",0x786F],
+ ["DACD",0x7870],
+ ["DACA",0x7871],
+ ["DEEE",0x7879],
+ ["9EE4",0x787A],
+ ["DEF2",0x787B],
+ ["B84E",0x787C],
+ ["E2F0",0x787E],
+ ["B851",0x787F],
+ ["DEF0",0x7880],
+ ["F9D6",0x7881],
+ ["DEED",0x7883],
+ ["DEE8",0x7884],
+ ["DEEA",0x7885],
+ ["DEEB",0x7886],
+ ["DEE4",0x7887],
+ ["94C3",0x7888],
+ ["B84D",0x7889],
+ ["B84C",0x788C],
+ ["94C2",0x788D],
+ ["B848",0x788E],
+ ["DEE7",0x788F],
+ ["B84F",0x7891],
+ ["B850",0x7893],
+ ["DEE6",0x7894],
+ ["DEE9",0x7895],
+ ["DEF1",0x7896],
+ ["B84A",0x7897],
+ ["B84B",0x7898],
+ ["DEEF",0x7899],
+ ["DEE5",0x789A],
+ ["E2F2",0x789E],
+ ["BAD0",0x789F],
+ ["E2F4",0x78A0],
+ ["DEEC",0x78A1],
+ ["E2F6",0x78A2],
+ ["BAD4",0x78A3],
+ ["E2F7",0x78A4],
+ ["E2F3",0x78A5],
+ ["BAD1",0x78A7],
+ ["E2EF",0x78A8],
+ ["BAD3",0x78A9],
+ ["E2EC",0x78AA],
+ ["E2F1",0x78AB],
+ ["E2F5",0x78AC],
+ ["E2EE",0x78AD],
+ ["FEE1",0x78AF],
+ ["B849",0x78B0],
+ ["FEE9",0x78B1],
+ ["E2EB",0x78B2],
+ ["BAD2",0x78B3],
+ ["E2ED",0x78B4],
+ ["96E4",0x78B6],
+ ["89AC",0x78B8],
+ ["96DB",0x78B9],
+ ["BD54",0x78BA],
+ ["E6C1",0x78BB],
+ ["BD58",0x78BC],
+ ["BD56",0x78BE],
+ ["BACF",0x78C1],
+ ["E6C8",0x78C3],
+ ["E6C9",0x78C4],
+ ["BD53",0x78C5],
+ ["FEE2",0x78C7],
+ ["E6C7",0x78C8],
+ ["E6CA",0x78C9],
+ ["BD55",0x78CA],
+ ["BD52",0x78CB],
+ ["E6C3",0x78CC],
+ ["E6C0",0x78CD],
+ ["E6C5",0x78CE],
+ ["E6C2",0x78CF],
+ ["BD59",0x78D0],
+ ["E6C4",0x78D1],
+ ["94C4",0x78D2],
+ ["FEE3",0x78D3],
+ ["E6C6",0x78D4],
+ ["BD57",0x78D5],
+ ["FEE7",0x78D7],
+ ["9FFB",0x78D8],
+ ["BF6A",0x78DA],
+ ["EAA8",0x78DB],
+ ["EAA2",0x78DD],
+ ["EAA6",0x78DE],
+ ["EAAC",0x78DF],
+ ["EAAD",0x78E0],
+ ["EAA9",0x78E1],
+ ["EAAA",0x78E2],
+ ["EAA7",0x78E3],
+ ["8C59",0x78E4],
+ ["EAA4",0x78E5],
+ ["BF6C",0x78E7],
+ ["BF69",0x78E8],
+ ["EAA3",0x78E9],
+ ["EAA5",0x78EA],
+ ["BF6B",0x78EC],
+ ["EAAB",0x78ED],
+ ["93C9",0x78EE],
+ ["C146",0x78EF],
+ ["94E8",0x78F0],
+ ["FB56",0x78F1],
+ ["EDAA",0x78F2],
+ ["EDA5",0x78F3],
+ ["C145",0x78F4],
+ ["90C5",0x78F5],
+ ["C143",0x78F7],
+ ["EDAC",0x78F9],
+ ["C144",0x78FA],
+ ["EDA8",0x78FB],
+ ["EDA9",0x78FC],
+ ["EDA6",0x78FD],
+ ["EDAD",0x78FE],
+ ["F056",0x78FF],
+ ["C147",0x7901],
+ ["EDA7",0x7902],
+ ["EDAE",0x7904],
+ ["EDAB",0x7905],
+ ["A0A8",0x7906],
+ ["F05A",0x7909],
+ ["F057",0x790C],
+ ["C2A6",0x790E],
+ ["F05B",0x7910],
+ ["F05D",0x7911],
+ ["F05C",0x7912],
+ ["F058",0x7913],
+ ["F059",0x7914],
+ ["F2A3",0x7917],
+ ["C3AA",0x7919],
+ ["F27E",0x791B],
+ ["F2A2",0x791C],
+ ["F27D",0x791D],
+ ["F2A4",0x791E],
+ ["F2A1",0x7921],
+ ["F47A",0x7923],
+ ["F47D",0x7924],
+ ["F479",0x7925],
+ ["C471",0x7926],
+ ["F47B",0x7927],
+ ["F47C",0x7928],
+ ["F47E",0x7929],
+ ["C472",0x792A],
+ ["C474",0x792B],
+ ["C473",0x792C],
+ ["F5E1",0x792D],
+ ["FEE5",0x792E],
+ ["F5E3",0x792F],
+ ["F5E2",0x7931],
+ ["98FD",0x7932],
+ ["98FB",0x7933],
+ ["FEE8",0x7934],
+ ["F6F6",0x7935],
+ ["8EBF",0x7936],
+ ["F8B5",0x7938],
+ ["F8FA",0x7939],
+ ["A5DC",0x793A],
+ ["8BD8",0x793B],
+ ["FEF7",0x793C],
+ ["CB72",0x793D],
+ ["AAC0",0x793E],
+ ["CDA3",0x793F],
+ ["AAC1",0x7940],
+ ["AAC2",0x7941],
+ ["CDA2",0x7942],
+ ["CFF8",0x7944],
+ ["CFF7",0x7945],
+ ["ACE6",0x7946],
+ ["ACE9",0x7947],
+ ["ACE8",0x7948],
+ ["ACE7",0x7949],
+ ["CFF4",0x794A],
+ ["CFF6",0x794B],
+ ["CFF5",0x794C],
+ ["D2E8",0x794F],
+ ["AFA7",0x7950],
+ ["D2EC",0x7951],
+ ["D2EB",0x7952],
+ ["D2EA",0x7953],
+ ["D2E6",0x7954],
+ ["AFA6",0x7955],
+ ["AFAA",0x7956],
+ ["AFAD",0x7957],
+ ["8F68",0x7958],
+ ["94C6",0x7959],
+ ["AFAE",0x795A],
+ ["D2E7",0x795B],
+ ["D2E9",0x795C],
+ ["AFAC",0x795D],
+ ["AFAB",0x795E],
+ ["AFA9",0x795F],
+ ["AFA8",0x7960],
+ ["D6C2",0x7961],
+ ["9DEA",0x7962],
+ ["D6C0",0x7963],
+ ["D6BC",0x7964],
+ ["B2BB",0x7965],
+ ["D6BD",0x7967],
+ ["B2BC",0x7968],
+ ["D6BE",0x7969],
+ ["D6BF",0x796A],
+ ["D6C1",0x796B],
+ ["B2BD",0x796D],
+ ["DAD5",0x7970],
+ ["FC69",0x7971],
+ ["DAD4",0x7972],
+ ["DAD3",0x7973],
+ ["DAD2",0x7974],
+ ["DEF6",0x7979],
+ ["B852",0x797A],
+ ["DEF3",0x797C],
+ ["DEF5",0x797D],
+ ["9CDA",0x797E],
+ ["B853",0x797F],
+ ["FEF3",0x7980],
+ ["B854",0x7981],
+ ["DEF4",0x7982],
+ ["9C72",0x7983],
+ ["FEF0",0x7986],
+ ["89C9",0x7987],
+ ["E341",0x7988],
+ ["E2F9",0x798A],
+ ["E2FA",0x798B],
+ ["BAD7",0x798D],
+ ["BAD5",0x798E],
+ ["BAD6",0x798F],
+ ["E343",0x7990],
+ ["9941",0x7991],
+ ["E342",0x7992],
+ ["E2FE",0x7993],
+ ["E2FD",0x7994],
+ ["E2FC",0x7995],
+ ["E2FB",0x7996],
+ ["E340",0x7997],
+ ["E2F8",0x7998],
+ ["9942",0x7999],
+ ["E6CB",0x799A],
+ ["E6D0",0x799B],
+ ["E6CE",0x799C],
+ ["FEF5",0x799D],
+ ["91D7",0x799F],
+ ["E6CD",0x79A0],
+ ["E6CC",0x79A1],
+ ["E6CF",0x79A2],
+ ["EAAE",0x79A4],
+ ["94CC",0x79A5],
+ ["BF6D",0x79A6],
+ ["C148",0x79A7],
+ ["EDB0",0x79A8],
+ ["FEF8",0x79A9],
+ ["C149",0x79AA],
+ ["EDAF",0x79AB],
+ ["F05F",0x79AC],
+ ["F05E",0x79AD],
+ ["C2A7",0x79AE],
+ ["F2A5",0x79B0],
+ ["C3AB",0x79B1],
+ ["F4A1",0x79B2],
+ ["C5A1",0x79B3],
+ ["F6F7",0x79B4],
+ ["F8B7",0x79B6],
+ ["F8B6",0x79B7],
+ ["C9A8",0x79B8],
+ ["ACEA",0x79B9],
+ ["ACEB",0x79BA],
+ ["D6C3",0x79BB],
+ ["B856",0x79BD],
+ ["A5DD",0x79BE],
+ ["A872",0x79BF],
+ ["A871",0x79C0],
+ ["A870",0x79C1],
+ ["97A8",0x79C4],
+ ["CDA4",0x79C5],
+ ["FEFC",0x79C6],
+ ["AAC4",0x79C8],
+ ["AAC3",0x79C9],
+ ["8CDE",0x79CA],
+ ["ACEE",0x79CB],
+ ["FDBF",0x79CC],
+ ["CFFA",0x79CD],
+ ["CFFD",0x79CE],
+ ["CFFB",0x79CF],
+ ["ACEC",0x79D1],
+ ["ACED",0x79D2],
+ ["FEFE",0x79D4],
+ ["CFF9",0x79D5],
+ ["CFFC",0x79D6],
+ ["AFB5",0x79D8],
+ ["D2F3",0x79DC],
+ ["D2F5",0x79DD],
+ ["D2F4",0x79DE],
+ ["AFB2",0x79DF],
+ ["D2EF",0x79E0],
+ ["96D1",0x79E2],
+ ["AFB0",0x79E3],
+ ["AFAF",0x79E4],
+ ["AFB3",0x79E6],
+ ["AFB1",0x79E7],
+ ["AFB4",0x79E9],
+ ["D2F2",0x79EA],
+ ["D2ED",0x79EB],
+ ["D2EE",0x79EC],
+ ["D2F1",0x79ED],
+ ["D2F0",0x79EE],
+ ["94D5",0x79F1],
+ ["94D0",0x79F4],
+ ["D6C6",0x79F6],
+ ["D6C7",0x79F7],
+ ["D6C5",0x79F8],
+ ["D6C4",0x79FA],
+ ["B2BE",0x79FB],
+ ["B57D",0x7A00],
+ ["DAD6",0x7A02],
+ ["DAD8",0x7A03],
+ ["DADA",0x7A04],
+ ["B57C",0x7A05],
+ ["9944",0x7A06],
+ ["B57A",0x7A08],
+ ["DAD7",0x7A0A],
+ ["B57B",0x7A0B],
+ ["DAD9",0x7A0C],
+ ["B579",0x7A0D],
+ ["DF41",0x7A10],
+ ["DEF7",0x7A11],
+ ["DEFA",0x7A12],
+ ["DEFE",0x7A13],
+ ["B85A",0x7A14],
+ ["DEFC",0x7A15],
+ ["DEFB",0x7A17],
+ ["DEF8",0x7A18],
+ ["DEF9",0x7A19],
+ ["B858",0x7A1A],
+ ["DF40",0x7A1B],
+ ["B857",0x7A1C],
+ ["B85C",0x7A1E],
+ ["B85B",0x7A1F],
+ ["B859",0x7A20],
+ ["DEFD",0x7A22],
+ ["E349",0x7A26],
+ ["E348",0x7A28],
+ ["8C63",0x7A2A],
+ ["E344",0x7A2B],
+ ["A0B3",0x7A2D],
+ ["BAD8",0x7A2E],
+ ["E347",0x7A2F],
+ ["E346",0x7A30],
+ ["BAD9",0x7A31],
+ ["BD5E",0x7A37],
+ ["E6D2",0x7A39],
+ ["94CF",0x7A3A],
+ ["BD5F",0x7A3B],
+ ["BD5B",0x7A3C],
+ ["BD5D",0x7A3D],
+ ["9FFA",0x7A3E],
+ ["BD5A",0x7A3F],
+ ["BD5C",0x7A40],
+ ["91E5",0x7A43],
+ ["EAAF",0x7A44],
+ ["9C6A",0x7A45],
+ ["BF70",0x7A46],
+ ["EAB1",0x7A47],
+ ["EAB0",0x7A48],
+ ["8E49",0x7A49],
+ ["E345",0x7A4A],
+ ["BF72",0x7A4B],
+ ["BF71",0x7A4C],
+ ["BF6E",0x7A4D],
+ ["BF6F",0x7A4E],
+ ["EDB5",0x7A54],
+ ["EDB3",0x7A56],
+ ["C14A",0x7A57],
+ ["EDB4",0x7A58],
+ ["EDB6",0x7A5A],
+ ["EDB2",0x7A5B],
+ ["EDB1",0x7A5C],
+ ["F060",0x7A5F],
+ ["C2AA",0x7A60],
+ ["C2A8",0x7A61],
+ ["C2A9",0x7A62],
+ ["8E4C",0x7A65],
+ ["F2A6",0x7A67],
+ ["F2A7",0x7A68],
+ ["C3AD",0x7A69],
+ ["C3AC",0x7A6B],
+ ["F4A3",0x7A6C],
+ ["F4A4",0x7A6D],
+ ["F4A2",0x7A6E],
+ ["F6F8",0x7A70],
+ ["F6F9",0x7A71],
+ ["A5DE",0x7A74],
+ ["CA48",0x7A75],
+ ["A873",0x7A76],
+ ["CDA5",0x7A78],
+ ["AAC6",0x7A79],
+ ["AAC5",0x7A7A],
+ ["CDA6",0x7A7B],
+ ["8E4D",0x7A7D],
+ ["D040",0x7A7E],
+ ["ACEF",0x7A7F],
+ ["CFFE",0x7A80],
+ ["ACF0",0x7A81],
+ ["9A73",0x7A83],
+ ["AFB6",0x7A84],
+ ["D2F8",0x7A85],
+ ["D2F6",0x7A86],
+ ["D2FC",0x7A87],
+ ["AFB7",0x7A88],
+ ["D2F7",0x7A89],
+ ["D2FB",0x7A8A],
+ ["D2F9",0x7A8B],
+ ["D2FA",0x7A8C],
+ ["D6C8",0x7A8F],
+ ["D6CA",0x7A90],
+ ["9947",0x7A91],
+ ["B2BF",0x7A92],
+ ["8CB1",0x7A93],
+ ["D6C9",0x7A94],
+ ["B2C0",0x7A95],
+ ["B5A2",0x7A96],
+ ["B5A1",0x7A97],
+ ["B57E",0x7A98],
+ ["DADB",0x7A99],
+ ["DF44",0x7A9E],
+ ["B85D",0x7A9F],
+ ["B85E",0x7AA0],
+ ["DF43",0x7AA2],
+ ["DF42",0x7AA3],
+ ["E34A",0x7AA8],
+ ["BADB",0x7AA9],
+ ["BADA",0x7AAA],
+ ["E34B",0x7AAB],
+ ["E34C",0x7AAC],
+ ["BD61",0x7AAE],
+ ["BD60",0x7AAF],
+ ["8E50",0x7AB0],
+ ["EAB5",0x7AB1],
+ ["E6D3",0x7AB2],
+ ["E6D5",0x7AB3],
+ ["E6D4",0x7AB4],
+ ["EAB4",0x7AB5],
+ ["EAB2",0x7AB6],
+ ["EAB6",0x7AB7],
+ ["EAB3",0x7AB8],
+ ["BF73",0x7ABA],
+ ["8E4F",0x7ABB],
+ ["9949",0x7ABC],
+ ["EDB7",0x7ABE],
+ ["C14B",0x7ABF],
+ ["EDB8",0x7AC0],
+ ["EDB9",0x7AC1],
+ ["8E51",0x7AC2],
+ ["8E52",0x7AC3],
+ ["C2AB",0x7AC4],
+ ["C2AC",0x7AC5],
+ ["C475",0x7AC7],
+ ["9AB2",0x7AC8],
+ ["89A5",0x7AC9],
+ ["C5D1",0x7ACA],
+ ["A5DF",0x7ACB],
+ ["994C",0x7ACF],
+ ["D041",0x7AD1],
+ ["9FF8",0x7AD3],
+ ["D2FD",0x7AD8],
+ ["AFB8",0x7AD9],
+ ["8E56",0x7ADA],
+ ["994D",0x7ADB],
+ ["91CA",0x7ADC],
+ ["8E57",0x7ADD],
+ ["B3BA",0x7ADF],
+ ["B3B9",0x7AE0],
+ ["94E1",0x7AE2],
+ ["B5A4",0x7AE3],
+ ["DADD",0x7AE4],
+ ["B5A3",0x7AE5],
+ ["DADC",0x7AE6],
+ ["9047",0x7AE7],
+ ["8FD8",0x7AE9],
+ ["8E58",0x7AEA],
+ ["DF45",0x7AEB],
+ ["BADC",0x7AED],
+ ["E34D",0x7AEE],
+ ["BADD",0x7AEF],
+ ["C476",0x7AF6],
+ ["F4A5",0x7AF7],
+ ["A6CB",0x7AF9],
+ ["AAC7",0x7AFA],
+ ["CDA7",0x7AFB],
+ ["ACF2",0x7AFD],
+ ["94EB",0x7AFE],
+ ["ACF1",0x7AFF],
+ ["D042",0x7B00],
+ ["D043",0x7B01],
+ ["D340",0x7B04],
+ ["D342",0x7B05],
+ ["AFB9",0x7B06],
+ ["D344",0x7B08],
+ ["D347",0x7B09],
+ ["D345",0x7B0A],
+ ["8E5C",0x7B0B],
+ ["9553",0x7B0C],
+ ["D346",0x7B0E],
+ ["D343",0x7B0F],
+ ["D2FE",0x7B10],
+ ["AFBA",0x7B11],
+ ["D348",0x7B12],
+ ["D341",0x7B13],
+ ["9FE5",0x7B14],
+ ["D6D3",0x7B18],
+ ["B2C6",0x7B19],
+ ["D6DC",0x7B1A],
+ ["B2C3",0x7B1B],
+ ["D6D5",0x7B1D],
+ ["B2C7",0x7B1E],
+ ["9F56",0x7B1F],
+ ["B2C1",0x7B20],
+ ["D6D0",0x7B22],
+ ["D6DD",0x7B23],
+ ["D6D1",0x7B24],
+ ["D6CE",0x7B25],
+ ["B2C5",0x7B26],
+ ["954F",0x7B27],
+ ["B2C2",0x7B28],
+ ["8E5E",0x7B29],
+ ["D6D4",0x7B2A],
+ ["D6D7",0x7B2B],
+ ["B2C4",0x7B2C],
+ ["D6D8",0x7B2D],
+ ["B2C8",0x7B2E],
+ ["D6D9",0x7B2F],
+ ["D6CF",0x7B30],
+ ["D6D6",0x7B31],
+ ["D6DA",0x7B32],
+ ["D6D2",0x7B33],
+ ["D6CD",0x7B34],
+ ["D6CB",0x7B35],
+ ["D6DB",0x7B38],
+ ["996A",0x7B39],
+ ["DADF",0x7B3B],
+ ["DAE4",0x7B40],
+ ["9C64",0x7B42],
+ ["9CD9",0x7B43],
+ ["DAE0",0x7B44],
+ ["DAE6",0x7B45],
+ ["B5A7",0x7B46],
+ ["D6CC",0x7B47],
+ ["DAE1",0x7B48],
+ ["B5A5",0x7B49],
+ ["DADE",0x7B4A],
+ ["B5AC",0x7B4B],
+ ["DAE2",0x7B4C],
+ ["B5AB",0x7B4D],
+ ["DAE3",0x7B4E],
+ ["B5AD",0x7B4F],
+ ["B5A8",0x7B50],
+ ["B5AE",0x7B51],
+ ["B5A9",0x7B52],
+ ["B5AA",0x7B54],
+ ["8E5D",0x7B55],
+ ["B5A6",0x7B56],
+ ["DAE5",0x7B58],
+ ["B861",0x7B60],
+ ["DF50",0x7B61],
+ ["9950",0x7B62],
+ ["DF53",0x7B63],
+ ["DF47",0x7B64],
+ ["DF4C",0x7B65],
+ ["DF46",0x7B66],
+ ["B863",0x7B67],
+ ["DF4A",0x7B69],
+ ["9951",0x7B6C],
+ ["DF48",0x7B6D],
+ ["B862",0x7B6E],
+ ["8E62",0x7B6F],
+ ["DF4F",0x7B70],
+ ["DF4E",0x7B71],
+ ["DF4B",0x7B72],
+ ["DF4D",0x7B73],
+ ["DF49",0x7B74],
+ ["BAE1",0x7B75],
+ ["DF52",0x7B76],
+ ["B85F",0x7B77],
+ ["DF51",0x7B78],
+ ["9952",0x7B7B],
+ ["E35D",0x7B82],
+ ["BAE8",0x7B84],
+ ["E358",0x7B85],
+ ["BAE7",0x7B87],
+ ["E34E",0x7B88],
+ ["E350",0x7B8A],
+ ["BAE0",0x7B8B],
+ ["E355",0x7B8C],
+ ["E354",0x7B8D],
+ ["E357",0x7B8E],
+ ["BAE5",0x7B8F],
+ ["E352",0x7B90],
+ ["E351",0x7B91],
+ ["8E68",0x7B92],
+ ["BAE4",0x7B94],
+ ["BADF",0x7B95],
+ ["E353",0x7B96],
+ ["BAE2",0x7B97],
+ ["E359",0x7B98],
+ ["E35B",0x7B99],
+ ["E356",0x7B9B],
+ ["E34F",0x7B9C],
+ ["BAE3",0x7B9D],
+ ["BD69",0x7BA0],
+ ["BADE",0x7BA1],
+ ["8E61",0x7BA2],
+ ["9F59",0x7BA3],
+ ["E35C",0x7BA4],
+ ["E6D9",0x7BAC],
+ ["BD62",0x7BAD],
+ ["E6DB",0x7BAF],
+ ["BD63",0x7BB1],
+ ["8BB3",0x7BB2],
+ ["BD65",0x7BB4],
+ ["E6DE",0x7BB5],
+ ["E6D6",0x7BB7],
+ ["BAE6",0x7BB8],
+ ["E6DC",0x7BB9],
+ ["E6D8",0x7BBE],
+ ["B860",0x7BC0],
+ ["BD68",0x7BC1],
+ ["BD64",0x7BC4],
+ ["BD66",0x7BC6],
+ ["BD67",0x7BC7],
+ ["BF76",0x7BC9],
+ ["E6DD",0x7BCA],
+ ["E6D7",0x7BCB],
+ ["BD6A",0x7BCC],
+ ["E6DA",0x7BCE],
+ ["9F5D",0x7BCF],
+ ["8E66",0x7BD0],
+ ["EAC0",0x7BD4],
+ ["EABB",0x7BD5],
+ ["EAC5",0x7BD8],
+ ["BF74",0x7BD9],
+ ["EABD",0x7BDA],
+ ["BF78",0x7BDB],
+ ["EAC3",0x7BDC],
+ ["EABA",0x7BDD],
+ ["EAB7",0x7BDE],
+ ["EAC6",0x7BDF],
+ ["C151",0x7BE0],
+ ["BF79",0x7BE1],
+ ["EAC2",0x7BE2],
+ ["EAB8",0x7BE3],
+ ["BF77",0x7BE4],
+ ["EABC",0x7BE5],
+ ["BF7B",0x7BE6],
+ ["EAB9",0x7BE7],
+ ["EABE",0x7BE8],
+ ["BF7A",0x7BE9],
+ ["EAC1",0x7BEA],
+ ["EAC4",0x7BEB],
+ ["8CB2",0x7BEC],
+ ["EDCB",0x7BF0],
+ ["EDCC",0x7BF1],
+ ["EDBC",0x7BF2],
+ ["EDC3",0x7BF3],
+ ["EDC1",0x7BF4],
+ ["C14F",0x7BF7],
+ ["EDC8",0x7BF8],
+ ["EABF",0x7BF9],
+ ["8E6E",0x7BFA],
+ ["EDBF",0x7BFB],
+ ["9F64",0x7BFC],
+ ["EDC9",0x7BFD],
+ ["C14E",0x7BFE],
+ ["EDBE",0x7BFF],
+ ["EDBD",0x7C00],
+ ["EDC7",0x7C01],
+ ["EDC4",0x7C02],
+ ["EDC6",0x7C03],
+ ["EDBA",0x7C05],
+ ["EDCA",0x7C06],
+ ["C14C",0x7C07],
+ ["EDC5",0x7C09],
+ ["EDCE",0x7C0A],
+ ["EDC2",0x7C0B],
+ ["C150",0x7C0C],
+ ["C14D",0x7C0D],
+ ["EDC0",0x7C0E],
+ ["EDBB",0x7C0F],
+ ["EDCD",0x7C10],
+ ["BF75",0x7C11],
+ ["9953",0x7C12],
+ ["FAB8",0x7C15],
+ ["F063",0x7C19],
+ ["9954",0x7C1B],
+ ["F061",0x7C1C],
+ ["F067",0x7C1D],
+ ["C2B0",0x7C1E],
+ ["F065",0x7C1F],
+ ["F064",0x7C20],
+ ["C2B2",0x7C21],
+ ["F06A",0x7C22],
+ ["C2B1",0x7C23],
+ ["F06B",0x7C25],
+ ["F068",0x7C26],
+ ["C2AE",0x7C27],
+ ["F069",0x7C28],
+ ["F062",0x7C29],
+ ["C2AF",0x7C2A],
+ ["C2AD",0x7C2B],
+ ["F2AB",0x7C2C],
+ ["F066",0x7C2D],
+ ["F06C",0x7C30],
+ ["F2A8",0x7C33],
+ ["8E70",0x7C35],
+ ["C3B2",0x7C37],
+ ["C3B0",0x7C38],
+ ["F2AA",0x7C39],
+ ["F2AC",0x7C3B],
+ ["F2A9",0x7C3C],
+ ["C3B1",0x7C3D],
+ ["C3AE",0x7C3E],
+ ["C3AF",0x7C3F],
+ ["C3B3",0x7C40],
+ ["9F61",0x7C42],
+ ["C478",0x7C43],
+ ["8E72",0x7C44],
+ ["F4AA",0x7C45],
+ ["F4A9",0x7C47],
+ ["F4A7",0x7C48],
+ ["F4A6",0x7C49],
+ ["F4A8",0x7C4A],
+ ["C477",0x7C4C],
+ ["C479",0x7C4D],
+ ["C4F0",0x7C50],
+ ["A06B",0x7C51],
+ ["F5E5",0x7C53],
+ ["F5E4",0x7C54],
+ ["9F40",0x7C56],
+ ["F6FA",0x7C57],
+ ["F6FC",0x7C59],
+ ["F6FE",0x7C5A],
+ ["F6FD",0x7C5B],
+ ["F6FB",0x7C5C],
+ ["94ED",0x7C5D],
+ ["C5A3",0x7C5F],
+ ["C5A2",0x7C60],
+ ["C5D3",0x7C63],
+ ["C5D2",0x7C64],
+ ["C5D4",0x7C65],
+ ["F7ED",0x7C66],
+ ["F7EC",0x7C67],
+ ["F8FB",0x7C69],
+ ["F8B8",0x7C6A],
+ ["F8FC",0x7C6B],
+ ["C658",0x7C6C],
+ ["94EE",0x7C6D],
+ ["C659",0x7C6E],
+ ["F96D",0x7C6F],
+ ["9FBD",0x7C70],
+ ["C67E",0x7C72],
+ ["A6CC",0x7C73],
+ ["8E7B",0x7C74],
+ ["CDA8",0x7C75],
+ ["D045",0x7C78],
+ ["D046",0x7C79],
+ ["D044",0x7C7A],
+ ["9957",0x7C7B],
+ ["94F7",0x7C7C],
+ ["ACF3",0x7C7D],
+ ["9F5F",0x7C7E],
+ ["D047",0x7C7F],
+ ["D048",0x7C80],
+ ["D049",0x7C81],
+ ["8E73",0x7C83],
+ ["D349",0x7C84],
+ ["D34F",0x7C85],
+ ["9F62",0x7C86],
+ ["D34D",0x7C88],
+ ["AFBB",0x7C89],
+ ["D34B",0x7C8A],
+ ["D34C",0x7C8C],
+ ["D34E",0x7C8D],
+ ["94F6",0x7C8E],
+ ["D34A",0x7C91],
+ ["B2C9",0x7C92],
+ ["D6DE",0x7C94],
+ ["B2CB",0x7C95],
+ ["D6E0",0x7C96],
+ ["B2CA",0x7C97],
+ ["D6DF",0x7C98],
+ ["9958",0x7C9C],
+ ["DAE8",0x7C9E],
+ ["B5AF",0x7C9F],
+ ["DAEA",0x7CA1],
+ ["DAE7",0x7CA2],
+ ["D6E1",0x7CA3],
+ ["B5B0",0x7CA5],
+ ["8E75",0x7CA6],
+ ["F9DB",0x7CA7],
+ ["DAE9",0x7CA8],
+ ["9072",0x7CAC],
+ ["94F8",0x7CAE],
+ ["DF56",0x7CAF],
+ ["B864",0x7CB1],
+ ["DF54",0x7CB2],
+ ["B865",0x7CB3],
+ ["DF55",0x7CB4],
+ ["B866",0x7CB5],
+ ["995A",0x7CB8],
+ ["BAE9",0x7CB9],
+ ["E361",0x7CBA],
+ ["E35E",0x7CBB],
+ ["E360",0x7CBC],
+ ["BAEA",0x7CBD],
+ ["BAEB",0x7CBE],
+ ["E35F",0x7CBF],
+ ["A0B0",0x7CC2],
+ ["8CB3",0x7CC3],
+ ["E6DF",0x7CC5],
+ ["8E79",0x7CC7],
+ ["E6E0",0x7CC8],
+ ["8E78",0x7CC9],
+ ["BD6B",0x7CCA],
+ ["E6E2",0x7CCB],
+ ["E6E1",0x7CCC],
+ ["94F3",0x7CCD],
+ ["A261",0x7CCE],
+ ["EACA",0x7CD0],
+ ["EACB",0x7CD1],
+ ["EAC7",0x7CD2],
+ ["98AF",0x7CD3],
+ ["EAC8",0x7CD4],
+ ["BF7C",0x7CD5],
+ ["BF7D",0x7CD6],
+ ["EAC9",0x7CD7],
+ ["C157",0x7CD9],
+ ["A0B2",0x7CDA],
+ ["C153",0x7CDC],
+ ["C158",0x7CDD],
+ ["C154",0x7CDE],
+ ["C156",0x7CDF],
+ ["C152",0x7CE0],
+ ["C155",0x7CE2],
+ ["8E7A",0x7CE6],
+ ["C2B3",0x7CE7],
+ ["EDCF",0x7CE8],
+ ["F2AE",0x7CEA],
+ ["F2AD",0x7CEC],
+ ["995C",0x7CED],
+ ["F4AB",0x7CEE],
+ ["C47A",0x7CEF],
+ ["C47B",0x7CF0],
+ ["F741",0x7CF1],
+ ["F5E6",0x7CF2],
+ ["8E7C",0x7CF3],
+ ["F740",0x7CF4],
+ ["8E7D",0x7CF5],
+ ["F8FD",0x7CF6],
+ ["F9A4",0x7CF7],
+ ["A6CD",0x7CF8],
+ ["8BD9",0x7CF9],
+ ["A874",0x7CFB],
+ ["89A2",0x7CFC],
+ ["CDA9",0x7CFD],
+ ["AAC8",0x7CFE],
+ ["ACF6",0x7D00],
+ ["D04C",0x7D01],
+ ["ACF4",0x7D02],
+ ["D04A",0x7D03],
+ ["ACF9",0x7D04],
+ ["ACF5",0x7D05],
+ ["ACFA",0x7D06],
+ ["ACF8",0x7D07],
+ ["D04B",0x7D08],
+ ["ACF7",0x7D09],
+ ["AFBF",0x7D0A],
+ ["AFBE",0x7D0B],
+ ["D35A",0x7D0C],
+ ["AFC7",0x7D0D],
+ ["D353",0x7D0E],
+ ["D359",0x7D0F],
+ ["AFC3",0x7D10],
+ ["D352",0x7D11],
+ ["D358",0x7D12],
+ ["D356",0x7D13],
+ ["AFC2",0x7D14],
+ ["AFC4",0x7D15],
+ ["D355",0x7D16],
+ ["AFBD",0x7D17],
+ ["D354",0x7D18],
+ ["AFC8",0x7D19],
+ ["AFC5",0x7D1A],
+ ["AFC9",0x7D1B],
+ ["AFC6",0x7D1C],
+ ["D351",0x7D1D],
+ ["D350",0x7D1E],
+ ["D357",0x7D1F],
+ ["AFC0",0x7D20],
+ ["AFBC",0x7D21],
+ ["AFC1",0x7D22],
+ ["9ED7",0x7D25],
+ ["D6F0",0x7D28],
+ ["D6E9",0x7D29],
+ ["B5B5",0x7D2B],
+ ["D6E8",0x7D2C],
+ ["B2CF",0x7D2E],
+ ["B2D6",0x7D2F],
+ ["B2D3",0x7D30],
+ ["B2D9",0x7D31],
+ ["B2D8",0x7D32],
+ ["B2D4",0x7D33],
+ ["D6E2",0x7D35],
+ ["D6E5",0x7D36],
+ ["D6E4",0x7D38],
+ ["B2D0",0x7D39],
+ ["D6E6",0x7D3A],
+ ["D6EF",0x7D3B],
+ ["B2D1",0x7D3C],
+ ["D6E3",0x7D3D],
+ ["D6EC",0x7D3E],
+ ["D6ED",0x7D3F],
+ ["B2D2",0x7D40],
+ ["D6EA",0x7D41],
+ ["B2D7",0x7D42],
+ ["B2CD",0x7D43],
+ ["B2D5",0x7D44],
+ ["D6E7",0x7D45],
+ ["B2CC",0x7D46],
+ ["D6EB",0x7D47],
+ ["D6EE",0x7D4A],
+ ["A0B6",0x7D4D],
+ ["DAFB",0x7D4E],
+ ["DAF2",0x7D4F],
+ ["B5B2",0x7D50],
+ ["DAF9",0x7D51],
+ ["DAF6",0x7D52],
+ ["DAEE",0x7D53],
+ ["DAF7",0x7D54],
+ ["B5B4",0x7D55],
+ ["DAEF",0x7D56],
+ ["DAEB",0x7D58],
+ ["9E42",0x7D5A],
+ ["B86C",0x7D5B],
+ ["DAF4",0x7D5C],
+ ["8EA4",0x7D5D],
+ ["B5B1",0x7D5E],
+ ["DAFA",0x7D5F],
+ ["B5B8",0x7D61],
+ ["B5BA",0x7D62],
+ ["DAED",0x7D63],
+ ["B5B9",0x7D66],
+ ["DAF0",0x7D67],
+ ["B5B3",0x7D68],
+ ["DAF8",0x7D69],
+ ["DAF1",0x7D6A],
+ ["DAF5",0x7D6B],
+ ["DAF3",0x7D6D],
+ ["B5B6",0x7D6E],
+ ["DAEC",0x7D6F],
+ ["B5BB",0x7D70],
+ ["B2CE",0x7D71],
+ ["B5B7",0x7D72],
+ ["B5BC",0x7D73],
+ ["B868",0x7D79],
+ ["DF5D",0x7D7A],
+ ["DF5F",0x7D7B],
+ ["DF61",0x7D7C],
+ ["DF65",0x7D7D],
+ ["DF5B",0x7D7F],
+ ["DF59",0x7D80],
+ ["B86A",0x7D81],
+ ["DF60",0x7D83],
+ ["DF64",0x7D84],
+ ["DF5C",0x7D85],
+ ["DF58",0x7D86],
+ ["DF57",0x7D88],
+ ["8EA7",0x7D89],
+ ["8C76",0x7D8B],
+ ["DF62",0x7D8C],
+ ["DF5A",0x7D8D],
+ ["DF5E",0x7D8E],
+ ["B86B",0x7D8F],
+ ["B869",0x7D91],
+ ["DF66",0x7D92],
+ ["B867",0x7D93],
+ ["DF63",0x7D94],
+ ["8767",0x7D95],
+ ["E372",0x7D96],
+ ["9542",0x7D97],
+ ["BAEE",0x7D9C],
+ ["E36A",0x7D9D],
+ ["BD78",0x7D9E],
+ ["E374",0x7D9F],
+ ["BAF1",0x7DA0],
+ ["E378",0x7DA1],
+ ["BAF7",0x7DA2],
+ ["E365",0x7DA3],
+ ["987D",0x7DA4],
+ ["E375",0x7DA6],
+ ["E362",0x7DA7],
+ ["9755",0x7DA8],
+ ["E377",0x7DA9],
+ ["E366",0x7DAA],
+ ["8EA8",0x7DAB],
+ ["BAFE",0x7DAC],
+ ["BAFB",0x7DAD],
+ ["E376",0x7DAE],
+ ["E370",0x7DAF],
+ ["BAED",0x7DB0],
+ ["BAF5",0x7DB1],
+ ["BAF4",0x7DB2],
+ ["8EAA",0x7DB3],
+ ["BAF3",0x7DB4],
+ ["BAF9",0x7DB5],
+ ["E363",0x7DB7],
+ ["BAFA",0x7DB8],
+ ["E371",0x7DB9],
+ ["BAF6",0x7DBA],
+ ["BAEC",0x7DBB],
+ ["E373",0x7DBC],
+ ["BAEF",0x7DBD],
+ ["BAF0",0x7DBE],
+ ["BAF8",0x7DBF],
+ ["E368",0x7DC0],
+ ["E367",0x7DC1],
+ ["E364",0x7DC2],
+ ["E36C",0x7DC4],
+ ["E369",0x7DC5],
+ ["E36D",0x7DC6],
+ ["BAFD",0x7DC7],
+ ["E379",0x7DC9],
+ ["BAF2",0x7DCA],
+ ["E36E",0x7DCB],
+ ["E36F",0x7DCC],
+ ["89A3",0x7DCD],
+ ["E36B",0x7DCE],
+ ["9960",0x7DCF],
+ ["9962",0x7DD0],
+ ["BAFC",0x7DD2],
+ ["94FC",0x7DD3],
+ ["9961",0x7DD4],
+ ["E6E7",0x7DD7],
+ ["BD70",0x7DD8],
+ ["BD79",0x7DD9],
+ ["BD75",0x7DDA],
+ ["E6E4",0x7DDB],
+ ["94FA",0x7DDC],
+ ["BD72",0x7DDD],
+ ["BD76",0x7DDE],
+ ["E6F0",0x7DDF],
+ ["BD6C",0x7DE0],
+ ["E6E8",0x7DE1],
+ ["BD74",0x7DE3],
+ ["8EAE",0x7DE4],
+ ["8EB2",0x7DE5],
+ ["E6EB",0x7DE6],
+ ["E6E6",0x7DE7],
+ ["BD73",0x7DE8],
+ ["BD77",0x7DE9],
+ ["E6E5",0x7DEA],
+ ["BD71",0x7DEC],
+ ["E6EF",0x7DEE],
+ ["BD6E",0x7DEF],
+ ["E6EE",0x7DF0],
+ ["E6ED",0x7DF1],
+ ["BD7A",0x7DF2],
+ ["E572",0x7DF3],
+ ["BD6D",0x7DF4],
+ ["8EB0",0x7DF5],
+ ["E6EC",0x7DF6],
+ ["E6E3",0x7DF7],
+ ["BD7B",0x7DF9],
+ ["E6EA",0x7DFA],
+ ["BD6F",0x7DFB],
+ ["9963",0x7DFD],
+ ["97AA",0x7DFE],
+ ["E6E9",0x7E03],
+ ["94FB",0x7E07],
+ ["BFA2",0x7E08],
+ ["BFA7",0x7E09],
+ ["BF7E",0x7E0A],
+ ["EAD8",0x7E0B],
+ ["EACF",0x7E0C],
+ ["EADB",0x7E0D],
+ ["EAD3",0x7E0E],
+ ["EAD9",0x7E0F],
+ ["BFA8",0x7E10],
+ ["BFA1",0x7E11],
+ ["EACC",0x7E12],
+ ["EAD2",0x7E13],
+ ["EADC",0x7E14],
+ ["EAD5",0x7E15],
+ ["EADA",0x7E16],
+ ["EACE",0x7E17],
+ ["EAD6",0x7E1A],
+ ["BFA3",0x7E1B],
+ ["EAD4",0x7E1C],
+ ["BFA6",0x7E1D],
+ ["BFA5",0x7E1E],
+ ["EAD0",0x7E1F],
+ ["EAD1",0x7E20],
+ ["EACD",0x7E21],
+ ["EAD7",0x7E22],
+ ["BFA4",0x7E23],
+ ["EADE",0x7E24],
+ ["EADD",0x7E25],
+ ["8EBB",0x7E27],
+ ["EDDA",0x7E29],
+ ["EDD6",0x7E2A],
+ ["C15F",0x7E2B],
+ ["EDD0",0x7E2D],
+ ["C159",0x7E2E],
+ ["C169",0x7E2F],
+ ["EDDC",0x7E30],
+ ["C161",0x7E31],
+ ["C15D",0x7E32],
+ ["EDD3",0x7E33],
+ ["C164",0x7E34],
+ ["C167",0x7E35],
+ ["EDDE",0x7E36],
+ ["C15C",0x7E37],
+ ["EDD5",0x7E38],
+ ["C165",0x7E39],
+ ["EDE0",0x7E3A],
+ ["EDDD",0x7E3B],
+ ["EDD1",0x7E3C],
+ ["C160",0x7E3D],
+ ["C15A",0x7E3E],
+ ["C168",0x7E3F],
+ ["EDD8",0x7E40],
+ ["C163",0x7E41],
+ ["EDD2",0x7E42],
+ ["C15E",0x7E43],
+ ["EDDF",0x7E44],
+ ["C162",0x7E45],
+ ["C15B",0x7E46],
+ ["EDD9",0x7E47],
+ ["C166",0x7E48],
+ ["EDD7",0x7E49],
+ ["EDDB",0x7E4C],
+ ["F06E",0x7E50],
+ ["F074",0x7E51],
+ ["C2B9",0x7E52],
+ ["F077",0x7E53],
+ ["C2B4",0x7E54],
+ ["C2B5",0x7E55],
+ ["F06F",0x7E56],
+ ["F076",0x7E57],
+ ["F071",0x7E58],
+ ["C2BA",0x7E59],
+ ["C2B7",0x7E5A],
+ ["8CDC",0x7E5B],
+ ["F06D",0x7E5C],
+ ["C2B6",0x7E5E],
+ ["F073",0x7E5F],
+ ["F075",0x7E60],
+ ["C2B8",0x7E61],
+ ["F072",0x7E62],
+ ["F070",0x7E63],
+ ["9876",0x7E65],
+ ["8EA1",0x7E67],
+ ["F2B8",0x7E68],
+ ["C3B7",0x7E69],
+ ["C3B8",0x7E6A],
+ ["C3B4",0x7E6B],
+ ["8CB4",0x7E6C],
+ ["C3B5",0x7E6D],
+ ["8EB7",0x7E6E],
+ ["F2B4",0x7E6F],
+ ["F2B2",0x7E70],
+ ["F2B6",0x7E72],
+ ["C3BA",0x7E73],
+ ["F2B7",0x7E74],
+ ["F2B0",0x7E75],
+ ["F2AF",0x7E76],
+ ["F2B3",0x7E77],
+ ["F2B1",0x7E78],
+ ["C3B6",0x7E79],
+ ["F2B5",0x7E7A],
+ ["F4AC",0x7E7B],
+ ["C47E",0x7E7C],
+ ["C47D",0x7E7D],
+ ["F4AD",0x7E7E],
+ ["9DA6",0x7E7F],
+ ["F4AF",0x7E80],
+ ["F4AE",0x7E81],
+ ["C4A1",0x7E82],
+ ["F5EB",0x7E86],
+ ["F5E8",0x7E87],
+ ["F5E9",0x7E88],
+ ["F5E7",0x7E8A],
+ ["F5EA",0x7E8B],
+ ["C4F2",0x7E8C],
+ ["F5EC",0x7E8D],
+ ["9EB0",0x7E8E],
+ ["C4F1",0x7E8F],
+ ["F742",0x7E91],
+ ["8EB8",0x7E92],
+ ["C5D5",0x7E93],
+ ["C5D7",0x7E94],
+ ["F7EE",0x7E95],
+ ["C5D6",0x7E96],
+ ["F8B9",0x7E97],
+ ["F940",0x7E98],
+ ["F942",0x7E99],
+ ["F8FE",0x7E9A],
+ ["F941",0x7E9B],
+ ["C66C",0x7E9C],
+ ["9D70",0x7E9F],
+ ["896E",0x7EA4],
+ ["896F",0x7EAC],
+ ["8970",0x7EBA],
+ ["8971",0x7EC7],
+ ["8972",0x7ECF],
+ ["8973",0x7EDF],
+ ["8974",0x7F06],
+ ["A6CE",0x7F36],
+ ["8975",0x7F37],
+ ["ACFB",0x7F38],
+ ["D26F",0x7F39],
+ ["AFCA",0x7F3A],
+ ["B2DA",0x7F3D],
+ ["DAFC",0x7F3E],
+ ["DAFD",0x7F3F],
+ ["8EBC",0x7F40],
+ ["8EBD",0x7F41],
+ ["EADF",0x7F43],
+ ["C16A",0x7F44],
+ ["EDE1",0x7F45],
+ ["8EBE",0x7F47],
+ ["C2BB",0x7F48],
+ ["9DD1",0x7F49],
+ ["F2BA",0x7F4A],
+ ["F2B9",0x7F4B],
+ ["C4A2",0x7F4C],
+ ["F5ED",0x7F4D],
+ ["94FD",0x7F4E],
+ ["F743",0x7F4F],
+ ["C5F8",0x7F50],
+ ["CA49",0x7F51],
+ ["8BD7",0x7F52],
+ ["8BDA",0x7F53],
+ ["AAC9",0x7F54],
+ ["A875",0x7F55],
+ ["D04D",0x7F58],
+ ["D360",0x7F5B],
+ ["D35B",0x7F5C],
+ ["D35F",0x7F5D],
+ ["D35D",0x7F5E],
+ ["AFCB",0x7F5F],
+ ["D35E",0x7F60],
+ ["D35C",0x7F61],
+ ["D6F1",0x7F63],
+ ["DAFE",0x7F65],
+ ["DB40",0x7F66],
+ ["DF69",0x7F67],
+ ["DF6A",0x7F68],
+ ["B86E",0x7F69],
+ ["B86F",0x7F6A],
+ ["DF68",0x7F6B],
+ ["DF6B",0x7F6C],
+ ["DF67",0x7F6D],
+ ["B86D",0x7F6E],
+ ["BB40",0x7F70],
+ ["A0E2",0x7F71],
+ ["B870",0x7F72],
+ ["E37A",0x7F73],
+ ["BD7C",0x7F75],
+ ["E6F1",0x7F76],
+ ["BD7D",0x7F77],
+ ["9FE9",0x7F78],
+ ["BFA9",0x7F79],
+ ["EAE2",0x7F7A],
+ ["EAE0",0x7F7B],
+ ["EAE1",0x7F7C],
+ ["EDE4",0x7F7D],
+ ["EDE3",0x7F7E],
+ ["EDE2",0x7F7F],
+ ["F2BB",0x7F83],
+ ["C3B9",0x7F85],
+ ["F2BC",0x7F86],
+ ["F744",0x7F87],
+ ["C5F9",0x7F88],
+ ["F8BA",0x7F89],
+ ["A6CF",0x7F8A],
+ ["AACB",0x7F8B],
+ ["AACA",0x7F8C],
+ ["D04F",0x7F8D],
+ ["ACFC",0x7F8E],
+ ["FDA8",0x7F8F],
+ ["D04E",0x7F91],
+ ["D362",0x7F92],
+ ["8AE7",0x7F93],
+ ["AFCC",0x7F94],
+ ["D6F2",0x7F95],
+ ["D361",0x7F96],
+ ["8EC2",0x7F97],
+ ["B2DC",0x7F9A],
+ ["D6F5",0x7F9B],
+ ["D6F3",0x7F9C],
+ ["D6F4",0x7F9D],
+ ["B2DB",0x7F9E],
+ ["DB42",0x7FA0],
+ ["DB43",0x7FA1],
+ ["DB41",0x7FA2],
+ ["8EC4",0x7FA3],
+ ["B873",0x7FA4],
+ ["DF6D",0x7FA5],
+ ["DF6C",0x7FA6],
+ ["DF6E",0x7FA7],
+ ["B872",0x7FA8],
+ ["B871",0x7FA9],
+ ["E6F2",0x7FAC],
+ ["E6F4",0x7FAD],
+ ["9964",0x7FAE],
+ ["BD7E",0x7FAF],
+ ["E6F3",0x7FB0],
+ ["EAE3",0x7FB1],
+ ["BFAA",0x7FB2],
+ ["F079",0x7FB3],
+ ["9965",0x7FB4],
+ ["F078",0x7FB5],
+ ["C3BB",0x7FB6],
+ ["F2BD",0x7FB7],
+ ["C3BD",0x7FB8],
+ ["C3BC",0x7FB9],
+ ["F4B0",0x7FBA],
+ ["F5EE",0x7FBB],
+ ["C4F3",0x7FBC],
+ ["A6D0",0x7FBD],
+ ["D050",0x7FBE],
+ ["ACFD",0x7FBF],
+ ["D365",0x7FC0],
+ ["AFCE",0x7FC1],
+ ["D364",0x7FC2],
+ ["D363",0x7FC3],
+ ["AFCD",0x7FC5],
+ ["D6FB",0x7FC7],
+ ["D6FD",0x7FC9],
+ ["D6F6",0x7FCA],
+ ["D6F7",0x7FCB],
+ ["B2DD",0x7FCC],
+ ["D6F8",0x7FCD],
+ ["B2DE",0x7FCE],
+ ["D6FC",0x7FCF],
+ ["D6F9",0x7FD0],
+ ["D6FA",0x7FD1],
+ ["B2DF",0x7FD2],
+ ["B5BE",0x7FD4],
+ ["B5BF",0x7FD5],
+ ["DB44",0x7FD7],
+ ["DF6F",0x7FDB],
+ ["DF70",0x7FDC],
+ ["954E",0x7FDD],
+ ["E37E",0x7FDE],
+ ["BB43",0x7FDF],
+ ["BB41",0x7FE0],
+ ["BB42",0x7FE1],
+ ["E37B",0x7FE2],
+ ["E37C",0x7FE3],
+ ["E37D",0x7FE5],
+ ["E6F9",0x7FE6],
+ ["98B3",0x7FE7],
+ ["E6FA",0x7FE8],
+ ["BDA1",0x7FE9],
+ ["E6F7",0x7FEA],
+ ["E6F6",0x7FEB],
+ ["E6F8",0x7FEC],
+ ["E6F5",0x7FED],
+ ["BFAD",0x7FEE],
+ ["EAE4",0x7FEF],
+ ["BFAB",0x7FF0],
+ ["BFAC",0x7FF1],
+ ["EDE6",0x7FF2],
+ ["C16B",0x7FF3],
+ ["EDE5",0x7FF4],
+ ["EFA8",0x7FF5],
+ ["F07A",0x7FF7],
+ ["F07B",0x7FF8],
+ ["C2BC",0x7FF9],
+ ["8ECB",0x7FFA],
+ ["C2BD",0x7FFB],
+ ["C16C",0x7FFC],
+ ["F2BE",0x7FFD],
+ ["F2BF",0x7FFE],
+ ["F4B1",0x7FFF],
+ ["C4A3",0x8000],
+ ["A6D1",0x8001],
+ ["8BDF",0x8002],
+ ["A6D2",0x8003],
+ ["ACFE",0x8004],
+ ["AACC",0x8005],
+ ["AFCF",0x8006],
+ ["D051",0x8007],
+ ["8ECE",0x8008],
+ ["B5C0",0x800B],
+ ["A6D3",0x800C],
+ ["AD41",0x800D],
+ ["D052",0x800E],
+ ["D053",0x800F],
+ ["AD40",0x8010],
+ ["AD42",0x8011],
+ ["A6D4",0x8012],
+ ["D054",0x8014],
+ ["AFD1",0x8015],
+ ["D366",0x8016],
+ ["AFD3",0x8017],
+ ["AFD0",0x8018],
+ ["AFD2",0x8019],
+ ["D741",0x801B],
+ ["B2E0",0x801C],
+ ["8ECF",0x801D],
+ ["D740",0x801E],
+ ["D6FE",0x801F],
+ ["9968",0x8020],
+ ["DF71",0x8021],
+ ["E3A1",0x8024],
+ ["9969",0x8025],
+ ["BDA2",0x8026],
+ ["BFAE",0x8028],
+ ["EAE6",0x8029],
+ ["EAE5",0x802A],
+ ["EDE7",0x802C],
+ ["996B",0x802E],
+ ["8ED1",0x802F],
+ ["F5EF",0x8030],
+ ["996C",0x8031],
+ ["A6D5",0x8033],
+ ["CB73",0x8034],
+ ["CDAA",0x8035],
+ ["AD43",0x8036],
+ ["D055",0x8037],
+ ["D368",0x8039],
+ ["8ED4",0x803B],
+ ["8ED5",0x803C],
+ ["AFD4",0x803D],
+ ["D367",0x803E],
+ ["AFD5",0x803F],
+ ["D743",0x8043],
+ ["B2E2",0x8046],
+ ["D742",0x8047],
+ ["D744",0x8048],
+ ["B2E1",0x804A],
+ ["DB46",0x804F],
+ ["DB47",0x8050],
+ ["DB45",0x8051],
+ ["B5C1",0x8052],
+ ["996D",0x8054],
+ ["B874",0x8056],
+ ["B875",0x8058],
+ ["BB45",0x805A],
+ ["A0BE",0x805B],
+ ["E3A3",0x805C],
+ ["E3A2",0x805D],
+ ["BB44",0x805E],
+ ["8ED6",0x8061],
+ ["A0BC",0x8062],
+ ["A0B5",0x8063],
+ ["E6FB",0x8064],
+ ["A0B4",0x8066],
+ ["E6FC",0x8067],
+ ["EAE7",0x806C],
+ ["C170",0x806F],
+ ["C16F",0x8070],
+ ["C16D",0x8071],
+ ["C16E",0x8072],
+ ["C171",0x8073],
+ ["F07C",0x8075],
+ ["C2BF",0x8076],
+ ["C2BE",0x8077],
+ ["F2C0",0x8078],
+ ["F4B2",0x8079],
+ ["C5A5",0x807D],
+ ["C5A4",0x807E],
+ ["A6D6",0x807F],
+ ["8BE0",0x8080],
+ ["D1FB",0x8082],
+ ["B877",0x8084],
+ ["B5C2",0x8085],
+ ["B876",0x8086],
+ ["BB46",0x8087],
+ ["A6D7",0x8089],
+ ["C9A9",0x808A],
+ ["A6D8",0x808B],
+ ["A6D9",0x808C],
+ ["CDAB",0x808F],
+ ["CB76",0x8090],
+ ["CB77",0x8092],
+ ["A877",0x8093],
+ ["CB74",0x8095],
+ ["A876",0x8096],
+ ["A879",0x8098],
+ ["CB75",0x8099],
+ ["A87B",0x809A],
+ ["A87A",0x809B],
+ ["CB78",0x809C],
+ ["A878",0x809D],
+ ["89B5",0x809F],
+ ["AAD1",0x80A1],
+ ["AACF",0x80A2],
+ ["CDAD",0x80A3],
+ ["AACE",0x80A5],
+ ["8EDD",0x80A7],
+ ["AAD3",0x80A9],
+ ["AAD5",0x80AA],
+ ["AAD2",0x80AB],
+ ["CDB0",0x80AD],
+ ["CDAC",0x80AE],
+ ["AAD6",0x80AF],
+ ["AAD0",0x80B1],
+ ["A87C",0x80B2],
+ ["AAD4",0x80B4],
+ ["CDAF",0x80B5],
+ ["9E5D",0x80B6],
+ ["9971",0x80B7],
+ ["CDAE",0x80B8],
+ ["AACD",0x80BA],
+ ["89AE",0x80BC],
+ ["9DE8",0x80BD],
+ ["D05B",0x80C2],
+ ["AD47",0x80C3],
+ ["AD48",0x80C4],
+ ["D05D",0x80C5],
+ ["9565",0x80C6],
+ ["D057",0x80C7],
+ ["D05A",0x80C8],
+ ["D063",0x80C9],
+ ["D061",0x80CA],
+ ["AD49",0x80CC],
+ ["D067",0x80CD],
+ ["AD4C",0x80CE],
+ ["D064",0x80CF],
+ ["D05C",0x80D0],
+ ["D059",0x80D1],
+ ["DB49",0x80D4],
+ ["D062",0x80D5],
+ ["AD44",0x80D6],
+ ["D065",0x80D7],
+ ["D056",0x80D8],
+ ["D05F",0x80D9],
+ ["AD46",0x80DA],
+ ["AD4B",0x80DB],
+ ["D060",0x80DC],
+ ["AD4F",0x80DD],
+ ["AD4D",0x80DE],
+ ["D058",0x80E0],
+ ["AD4A",0x80E1],
+ ["D05E",0x80E3],
+ ["AD4E",0x80E4],
+ ["AD45",0x80E5],
+ ["D066",0x80E6],
+ ["9972",0x80E9],
+ ["8B5C",0x80EC],
+ ["AFDA",0x80ED],
+ ["AFE3",0x80EF],
+ ["AFD8",0x80F0],
+ ["AFD6",0x80F1],
+ ["D36A",0x80F2],
+ ["AFDE",0x80F3],
+ ["AFDB",0x80F4],
+ ["D36C",0x80F5],
+ ["89B1",0x80F6],
+ ["AFDD",0x80F8],
+ ["D36B",0x80F9],
+ ["D369",0x80FA],
+ ["D36E",0x80FB],
+ ["AFE2",0x80FC],
+ ["AFE0",0x80FD],
+ ["DB48",0x80FE],
+ ["D36F",0x8100],
+ ["D36D",0x8101],
+ ["AFD7",0x8102],
+ ["A0C0",0x8103],
+ ["AFD9",0x8105],
+ ["AFDC",0x8106],
+ ["8EDF",0x8107],
+ ["AFDF",0x8108],
+ ["9566",0x8109],
+ ["AFE1",0x810A],
+ ["9974",0x810C],
+ ["9976",0x810E],
+ ["9977",0x8112],
+ ["9979",0x8114],
+ ["D74E",0x8115],
+ ["B2E4",0x8116],
+ ["9DDA",0x8117],
+ ["D745",0x8118],
+ ["D747",0x8119],
+ ["8EE0",0x811A],
+ ["D748",0x811B],
+ ["D750",0x811D],
+ ["D74C",0x811E],
+ ["D74A",0x811F],
+ ["D74D",0x8121],
+ ["D751",0x8122],
+ ["B2E5",0x8123],
+ ["B2E9",0x8124],
+ ["D746",0x8125],
+ ["D74F",0x8127],
+ ["B2E7",0x8129],
+ ["935C",0x812A],
+ ["B2E6",0x812B],
+ ["D74B",0x812C],
+ ["D749",0x812D],
+ ["B2E3",0x812F],
+ ["B2E8",0x8130],
+ ["9DE6",0x8132],
+ ["8B5F",0x8134],
+ ["9563",0x8137],
+ ["B5C8",0x8139],
+ ["DB51",0x813A],
+ ["DB4F",0x813D],
+ ["B5CA",0x813E],
+ ["9567",0x8142],
+ ["DB4A",0x8143],
+ ["DFA1",0x8144],
+ ["B5C9",0x8146],
+ ["DB4E",0x8147],
+ ["9DE3",0x8148],
+ ["DB4B",0x814A],
+ ["B5C5",0x814B],
+ ["B5CB",0x814C],
+ ["DB50",0x814D],
+ ["B5C7",0x814E],
+ ["DB4D",0x814F],
+ ["BB47",0x8150],
+ ["B5C6",0x8151],
+ ["DB4C",0x8152],
+ ["B5CC",0x8153],
+ ["B5C4",0x8154],
+ ["B5C3",0x8155],
+ ["997C",0x8156],
+ ["997D",0x8159],
+ ["997E",0x815A],
+ ["DF77",0x815B],
+ ["DF75",0x815C],
+ ["DF7B",0x815E],
+ ["DF73",0x8160],
+ ["DFA2",0x8161],
+ ["DF78",0x8162],
+ ["DF72",0x8164],
+ ["B87B",0x8165],
+ ["B8A3",0x8166],
+ ["DF7D",0x8167],
+ ["DF76",0x8169],
+ ["B87E",0x816B],
+ ["8CFB",0x816C],
+ ["8B5B",0x816D],
+ ["B87C",0x816E],
+ ["DF7E",0x816F],
+ ["B879",0x8170],
+ ["B878",0x8171],
+ ["DF79",0x8172],
+ ["B87D",0x8173],
+ ["B5CD",0x8174],
+ ["DF7C",0x8176],
+ ["DF74",0x8177],
+ ["B87A",0x8178],
+ ["B8A1",0x8179],
+ ["B8A2",0x817A],
+ ["99A3",0x817C],
+ ["BB4C",0x817F],
+ ["BB48",0x8180],
+ ["BB4D",0x8182],
+ ["E3A6",0x8183],
+ ["99A4",0x8184],
+ ["E3A5",0x8186],
+ ["E3A7",0x8187],
+ ["BB4A",0x8188],
+ ["E3A4",0x8189],
+ ["BB4B",0x818A],
+ ["E3AA",0x818B],
+ ["E3A9",0x818C],
+ ["E3A8",0x818D],
+ ["BB49",0x818F],
+ ["99A6",0x8193],
+ ["E741",0x8195],
+ ["E744",0x8197],
+ ["BDA8",0x8198],
+ ["E743",0x8199],
+ ["BDA7",0x819A],
+ ["BDA3",0x819B],
+ ["BDA4",0x819C],
+ ["BDA5",0x819D],
+ ["E740",0x819E],
+ ["E6FE",0x819F],
+ ["BDA6",0x81A0],
+ ["E742",0x81A2],
+ ["E6FD",0x81A3],
+ ["99A8",0x81A5],
+ ["EAE9",0x81A6],
+ ["EAF3",0x81A7],
+ ["BFB1",0x81A8],
+ ["BFB0",0x81A9],
+ ["8ABE",0x81AA],
+ ["EAED",0x81AB],
+ ["EAEF",0x81AC],
+ ["EAEA",0x81AE],
+ ["EAEE",0x81B0],
+ ["EAE8",0x81B1],
+ ["EAF1",0x81B2],
+ ["BFAF",0x81B3],
+ ["EAF0",0x81B4],
+ ["EAEC",0x81B5],
+ ["9E61",0x81B6],
+ ["EAF2",0x81B7],
+ ["EAEB",0x81B9],
+ ["C174",0x81BA],
+ ["EDE8",0x81BB],
+ ["EDEE",0x81BC],
+ ["C178",0x81BD],
+ ["C17A",0x81BE],
+ ["C177",0x81BF],
+ ["C176",0x81C0],
+ ["99AA",0x81C1],
+ ["C175",0x81C2],
+ ["C173",0x81C3],
+ ["EDE9",0x81C4],
+ ["EDEC",0x81C5],
+ ["C172",0x81C6],
+ ["EDED",0x81C7],
+ ["A0C8",0x81C8],
+ ["C179",0x81C9],
+ ["EDEB",0x81CA],
+ ["EDEA",0x81CC],
+ ["C2C0",0x81CD],
+ ["C2C1",0x81CF],
+ ["F0A1",0x81D0],
+ ["F07D",0x81D1],
+ ["F07E",0x81D2],
+ ["F2C2",0x81D5],
+ ["F2C1",0x81D7],
+ ["C3BE",0x81D8],
+ ["F4B4",0x81D9],
+ ["C4A4",0x81DA],
+ ["F4B3",0x81DB],
+ ["F5F0",0x81DD],
+ ["F745",0x81DE],
+ ["C5A6",0x81DF],
+ ["F943",0x81E0],
+ ["F944",0x81E1],
+ ["C5D8",0x81E2],
+ ["A6DA",0x81E3],
+ ["99AB",0x81E4],
+ ["AAD7",0x81E5],
+ ["DB52",0x81E6],
+ ["BB4E",0x81E7],
+ ["C17B",0x81E8],
+ ["EDEF",0x81E9],
+ ["A6DB",0x81EA],
+ ["AFE5",0x81EC],
+ ["AFE4",0x81ED],
+ ["DB53",0x81EE],
+ ["FEC4",0x81EF],
+ ["EAF4",0x81F2],
+ ["A6DC",0x81F3],
+ ["AD50",0x81F4],
+ ["98C2",0x81F6],
+ ["DB54",0x81F7],
+ ["DB55",0x81F8],
+ ["DB56",0x81F9],
+ ["BB4F",0x81FA],
+ ["BFB2",0x81FB],
+ ["A6DD",0x81FC],
+ ["AAD8",0x81FE],
+ ["D068",0x81FF],
+ ["AFE6",0x8200],
+ ["D370",0x8201],
+ ["B2EA",0x8202],
+ ["DB57",0x8204],
+ ["B8A4",0x8205],
+ ["BB50",0x8207],
+ ["BFB3",0x8208],
+ ["C17C",0x8209],
+ ["C2C2",0x820A],
+ ["F4B5",0x820B],
+ ["A6DE",0x820C],
+ ["AAD9",0x820D],
+ ["AFE7",0x8210],
+ ["D752",0x8211],
+ ["B5CE",0x8212],
+ ["BB51",0x8214],
+ ["E3AB",0x8215],
+ ["E745",0x8216],
+ ["8EE8",0x8218],
+ ["A0BA",0x821A],
+ ["A6DF",0x821B],
+ ["B5CF",0x821C],
+ ["DFA3",0x821D],
+ ["BB52",0x821E],
+ ["A6E0",0x821F],
+ ["CDB1",0x8220],
+ ["D069",0x8221],
+ ["AD51",0x8222],
+ ["D372",0x8225],
+ ["FD77",0x8226],
+ ["AFEA",0x8228],
+ ["8EEE",0x8229],
+ ["AFE8",0x822A],
+ ["AFE9",0x822B],
+ ["AFEB",0x822C],
+ ["9EBF",0x822D],
+ ["D371",0x822F],
+ ["D757",0x8232],
+ ["D754",0x8233],
+ ["D756",0x8234],
+ ["B2EB",0x8235],
+ ["B2ED",0x8236],
+ ["B2EC",0x8237],
+ ["D753",0x8238],
+ ["B2EE",0x8239],
+ ["D755",0x823A],
+ ["DB58",0x823C],
+ ["DB59",0x823D],
+ ["89C2",0x823E],
+ ["DB5A",0x823F],
+ ["DFA6",0x8240],
+ ["DFA7",0x8242],
+ ["DFA5",0x8244],
+ ["DFA8",0x8245],
+ ["B8A5",0x8247],
+ ["DFA4",0x8249],
+ ["BB53",0x824B],
+ ["E74A",0x824E],
+ ["E746",0x824F],
+ ["E749",0x8250],
+ ["E74B",0x8251],
+ ["E748",0x8252],
+ ["E747",0x8253],
+ ["99AC",0x8254],
+ ["EAF5",0x8255],
+ ["EAF6",0x8256],
+ ["EAF7",0x8257],
+ ["BFB4",0x8258],
+ ["BFB5",0x8259],
+ ["EDF1",0x825A],
+ ["EDF0",0x825B],
+ ["EDF2",0x825C],
+ ["F0A3",0x825E],
+ ["F0A2",0x825F],
+ ["F2C4",0x8261],
+ ["956B",0x8262],
+ ["F2C5",0x8263],
+ ["F2C3",0x8264],
+ ["956C",0x8265],
+ ["C4A5",0x8266],
+ ["F4B6",0x8268],
+ ["F4B7",0x8269],
+ ["F746",0x826B],
+ ["F7EF",0x826C],
+ ["F8BB",0x826D],
+ ["A6E1",0x826E],
+ ["A87D",0x826F],
+ ["C17D",0x8271],
+ ["A6E2",0x8272],
+ ["D758",0x8274],
+ ["DB5B",0x8275],
+ ["99AF",0x8276],
+ ["C641",0x8277],
+ ["CA4A",0x8278],
+ ["994A",0x8279],
+ ["8976",0x827A],
+ ["8F48",0x827B],
+ ["CA4B",0x827C],
+ ["CA4D",0x827D],
+ ["A6E3",0x827E],
+ ["CA4E",0x827F],
+ ["CA4C",0x8280],
+ ["CBA2",0x8283],
+ ["CBA3",0x8284],
+ ["CB7B",0x8285],
+ ["FBEE",0x8287],
+ ["CBA1",0x828A],
+ ["A8A1",0x828B],
+ ["A8A2",0x828D],
+ ["CB7C",0x828E],
+ ["CB7A",0x828F],
+ ["CB79",0x8290],
+ ["CB7D",0x8291],
+ ["A87E",0x8292],
+ ["CB7E",0x8293],
+ ["D06A",0x8294],
+ ["CDB6",0x8298],
+ ["AADC",0x8299],
+ ["CDB5",0x829A],
+ ["CDB7",0x829B],
+ ["AADB",0x829D],
+ ["CDBC",0x829E],
+ ["AADF",0x829F],
+ ["CDB2",0x82A0],
+ ["CDC0",0x82A1],
+ ["CDC6",0x82A2],
+ ["AAE6",0x82A3],
+ ["CDC3",0x82A4],
+ ["AAE3",0x82A5],
+ ["99AE",0x82A6],
+ ["CDB9",0x82A7],
+ ["CDBF",0x82A8],
+ ["CDC1",0x82A9],
+ ["8EFB",0x82AA],
+ ["CDB4",0x82AB],
+ ["AAE2",0x82AC],
+ ["AADD",0x82AD],
+ ["CDBA",0x82AE],
+ ["AAE4",0x82AF],
+ ["AAE7",0x82B0],
+ ["AAE1",0x82B1],
+ ["AADA",0x82B3],
+ ["CDBE",0x82B4],
+ ["CDB8",0x82B5],
+ ["CDC5",0x82B6],
+ ["AAE9",0x82B7],
+ ["AAE5",0x82B8],
+ ["AAE0",0x82B9],
+ ["CDBD",0x82BA],
+ ["AFEC",0x82BB],
+ ["CDBB",0x82BC],
+ ["AADE",0x82BD],
+ ["AAE8",0x82BE],
+ ["8CD0",0x82BF],
+ ["CDB3",0x82C0],
+ ["CDC2",0x82C2],
+ ["CDC4",0x82C3],
+ ["8B52",0x82C4],
+ ["99B0",0x82CA],
+ ["8977",0x82CF],
+ ["8F41",0x82D0],
+ ["AD62",0x82D1],
+ ["AD5C",0x82D2],
+ ["AD64",0x82D3],
+ ["AD61",0x82D4],
+ ["D071",0x82D5],
+ ["D074",0x82D6],
+ ["AD5D",0x82D7],
+ ["99B1",0x82D8],
+ ["D06B",0x82D9],
+ ["AD56",0x82DB],
+ ["AD60",0x82DC],
+ ["AD63",0x82DE],
+ ["AD65",0x82DF],
+ ["D0A2",0x82E0],
+ ["D077",0x82E1],
+ ["8F49",0x82E2],
+ ["AD55",0x82E3],
+ ["D0A1",0x82E4],
+ ["AD59",0x82E5],
+ ["AD57",0x82E6],
+ ["AD52",0x82E7],
+ ["D06F",0x82E8],
+ ["D07E",0x82EA],
+ ["D073",0x82EB],
+ ["D076",0x82EC],
+ ["D0A5",0x82ED],
+ ["FA4D",0x82EE],
+ ["AD66",0x82EF],
+ ["D07D",0x82F0],
+ ["AD5E",0x82F1],
+ ["D078",0x82F2],
+ ["D0A4",0x82F3],
+ ["D075",0x82F4],
+ ["D079",0x82F5],
+ ["D07C",0x82F6],
+ ["9DE4",0x82F7],
+ ["8CB5",0x82F8],
+ ["D06D",0x82F9],
+ ["D0A3",0x82FA],
+ ["D07B",0x82FB],
+ ["FBE9",0x82FC],
+ ["9B54",0x82FD],
+ ["D06C",0x82FE],
+ ["99B2",0x82FF],
+ ["D070",0x8300],
+ ["AD5F",0x8301],
+ ["AD5A",0x8302],
+ ["AD53",0x8303],
+ ["AD58",0x8304],
+ ["AD54",0x8305],
+ ["AD67",0x8306],
+ ["D06E",0x8307],
+ ["D3A5",0x8308],
+ ["AD5B",0x8309],
+ ["9E68",0x830B],
+ ["D07A",0x830C],
+ ["CE41",0x830D],
+ ["D3A8",0x8316],
+ ["AFFA",0x8317],
+ ["8F4A",0x8318],
+ ["D376",0x8319],
+ ["8F42",0x831A],
+ ["D3A3",0x831B],
+ ["D37D",0x831C],
+ ["8F51",0x831D],
+ ["D3B2",0x831E],
+ ["D3AA",0x8320],
+ ["D37E",0x8322],
+ ["D3A9",0x8324],
+ ["D378",0x8325],
+ ["D37C",0x8326],
+ ["D3B5",0x8327],
+ ["AFFD",0x8328],
+ ["D3AD",0x8329],
+ ["D3A4",0x832A],
+ ["AFED",0x832B],
+ ["D3B3",0x832C],
+ ["D374",0x832D],
+ ["D3AC",0x832F],
+ ["AFFC",0x8331],
+ ["AFF7",0x8332],
+ ["D373",0x8333],
+ ["AFF5",0x8334],
+ ["AFF4",0x8335],
+ ["AFF9",0x8336],
+ ["D3AB",0x8337],
+ ["AFF1",0x8338],
+ ["AFF8",0x8339],
+ ["D072",0x833A],
+ ["DB5C",0x833B],
+ ["D3A6",0x833C],
+ ["9846",0x833D],
+ ["D37A",0x833F],
+ ["AFFB",0x8340],
+ ["D37B",0x8341],
+ ["D3A1",0x8342],
+ ["AFFE",0x8343],
+ ["D375",0x8344],
+ ["D3AF",0x8345],
+ ["D3AE",0x8347],
+ ["D3B6",0x8348],
+ ["AFF3",0x8349],
+ ["AFF0",0x834A],
+ ["D3B4",0x834B],
+ ["D3B0",0x834C],
+ ["D3A7",0x834D],
+ ["D3A2",0x834E],
+ ["AFF6",0x834F],
+ ["AFF2",0x8350],
+ ["D377",0x8351],
+ ["AFEE",0x8352],
+ ["D3B1",0x8353],
+ ["AFEF",0x8354],
+ ["D379",0x8356],
+ ["99B4",0x8357],
+ ["8EF5",0x8362],
+ ["FD55",0x8363],
+ ["9CCD",0x8366],
+ ["8978",0x836F],
+ ["D75E",0x8373],
+ ["D760",0x8374],
+ ["D765",0x8375],
+ ["D779",0x8376],
+ ["B2FC",0x8377],
+ ["B2F2",0x8378],
+ ["D75D",0x837A],
+ ["B2FD",0x837B],
+ ["B2FE",0x837C],
+ ["D768",0x837D],
+ ["D76F",0x837E],
+ ["D775",0x837F],
+ ["D762",0x8381],
+ ["D769",0x8383],
+ ["8F53",0x8385],
+ ["B340",0x8386],
+ ["D777",0x8387],
+ ["D772",0x8388],
+ ["B2FA",0x8389],
+ ["B2F8",0x838A],
+ ["D76E",0x838B],
+ ["D76A",0x838C],
+ ["D75C",0x838D],
+ ["B2EF",0x838E],
+ ["D761",0x838F],
+ ["D759",0x8390],
+ ["8F6F",0x8391],
+ ["B2F7",0x8392],
+ ["B2F9",0x8393],
+ ["D766",0x8394],
+ ["D763",0x8395],
+ ["B2F4",0x8396],
+ ["D773",0x8397],
+ ["B2F1",0x8398],
+ ["D764",0x8399],
+ ["D77A",0x839A],
+ ["D76C",0x839B],
+ ["8E63",0x839C],
+ ["D76B",0x839D],
+ ["B2F0",0x839E],
+ ["B2FB",0x83A0],
+ ["B2F3",0x83A2],
+ ["D75A",0x83A3],
+ ["D75F",0x83A4],
+ ["D770",0x83A5],
+ ["D776",0x83A6],
+ ["B341",0x83A7],
+ ["D75B",0x83A8],
+ ["D767",0x83A9],
+ ["D76D",0x83AA],
+ ["B2F6",0x83AB],
+ ["8F56",0x83AC],
+ ["D778",0x83AE],
+ ["D771",0x83AF],
+ ["D774",0x83B0],
+ ["FE76",0x83B9],
+ ["B2F5",0x83BD],
+ ["9FC6",0x83BE],
+ ["DB6C",0x83BF],
+ ["DB60",0x83C0],
+ ["B5D7",0x83C1],
+ ["DB7D",0x83C2],
+ ["DBA7",0x83C3],
+ ["DBAA",0x83C4],
+ ["B5D5",0x83C5],
+ ["DB68",0x83C6],
+ ["DBA3",0x83C7],
+ ["DB69",0x83C8],
+ ["DB77",0x83C9],
+ ["B5E2",0x83CA],
+ ["DB73",0x83CB],
+ ["B5DF",0x83CC],
+ ["FAAC",0x83CD],
+ ["DB74",0x83CE],
+ ["DB5D",0x83CF],
+ ["DBA4",0x83D1],
+ ["8F58",0x83D3],
+ ["B5E8",0x83D4],
+ ["DBA1",0x83D5],
+ ["DB75",0x83D6],
+ ["DBAC",0x83D7],
+ ["DB70",0x83D8],
+ ["DFC8",0x83D9],
+ ["DBAF",0x83DB],
+ ["B5E6",0x83DC],
+ ["DB6E",0x83DD],
+ ["DB7A",0x83DE],
+ ["B5E9",0x83DF],
+ ["B5D4",0x83E0],
+ ["DB72",0x83E1],
+ ["DBAD",0x83E2],
+ ["DB6B",0x83E3],
+ ["DB64",0x83E4],
+ ["DB6F",0x83E5],
+ ["DB63",0x83E7],
+ ["DB61",0x83E8],
+ ["B5D0",0x83E9],
+ ["DBA5",0x83EA],
+ ["DB6A",0x83EB],
+ ["DBA8",0x83EC],
+ ["9848",0x83ED],
+ ["DBA9",0x83EE],
+ ["B5D8",0x83EF],
+ ["B5DD",0x83F0],
+ ["B5D9",0x83F1],
+ ["B5E1",0x83F2],
+ ["DB7E",0x83F3],
+ ["B5DA",0x83F4],
+ ["DB76",0x83F5],
+ ["DB66",0x83F6],
+ ["B5D2",0x83F8],
+ ["DB5E",0x83F9],
+ ["DBA2",0x83FA],
+ ["DBAB",0x83FB],
+ ["DB65",0x83FC],
+ ["B5E0",0x83FD],
+ ["DBB0",0x83FE],
+ ["DB71",0x83FF],
+ ["DB6D",0x8401],
+ ["B5D1",0x8403],
+ ["B5E5",0x8404],
+ ["99B7",0x8405],
+ ["DB7C",0x8406],
+ ["B5E7",0x8407],
+ ["DB78",0x8409],
+ ["B5DC",0x840A],
+ ["B5D6",0x840B],
+ ["B5DE",0x840C],
+ ["B5D3",0x840D],
+ ["B5E4",0x840E],
+ ["DB79",0x840F],
+ ["DB67",0x8410],
+ ["DB7B",0x8411],
+ ["DB62",0x8412],
+ ["DBA6",0x8413],
+ ["9665",0x8414],
+ ["FA6C",0x8416],
+ ["9DE7",0x8418],
+ ["DBAE",0x841B],
+ ["9E62",0x841C],
+ ["96CC",0x8420],
+ ["8E67",0x8421],
+ ["DB5F",0x8423],
+ ["FC75",0x8424],
+ ["987E",0x8426],
+ ["DFC7",0x8429],
+ ["DFDD",0x842B],
+ ["B855",0x842C],
+ ["DFCC",0x842D],
+ ["FDB9",0x842E],
+ ["DFCA",0x842F],
+ ["DFB5",0x8430],
+ ["B8A9",0x8431],
+ ["DFC5",0x8432],
+ ["DFD9",0x8433],
+ ["DFC1",0x8434],
+ ["B8B1",0x8435],
+ ["DFD8",0x8436],
+ ["DFBF",0x8437],
+ ["B5E3",0x8438],
+ ["DFCF",0x8439],
+ ["DFC0",0x843A],
+ ["DFD6",0x843B],
+ ["B8B0",0x843C],
+ ["B8A8",0x843D],
+ ["97FC",0x843E],
+ ["DFAA",0x843F],
+ ["DFB2",0x8440],
+ ["DFCB",0x8442],
+ ["DFC3",0x8443],
+ ["DFDC",0x8444],
+ ["DFC6",0x8445],
+ ["B8B6",0x8446],
+ ["DFD7",0x8447],
+ ["98F9",0x8448],
+ ["B8AD",0x8449],
+ ["8F66",0x844A],
+ ["DFC9",0x844B],
+ ["DFD1",0x844C],
+ ["DFB6",0x844D],
+ ["DFD0",0x844E],
+ ["DFE1",0x8450],
+ ["DFB1",0x8451],
+ ["DFD2",0x8452],
+ ["956E",0x8453],
+ ["DFDF",0x8454],
+ ["9245",0x8455],
+ ["DFAB",0x8456],
+ ["B5DB",0x8457],
+ ["8F60",0x8458],
+ ["DFB9",0x8459],
+ ["DFB8",0x845A],
+ ["B8AF",0x845B],
+ ["9ED1",0x845C],
+ ["DFBC",0x845D],
+ ["DFBE",0x845E],
+ ["DFCD",0x845F],
+ ["DFDE",0x8460],
+ ["B8B2",0x8461],
+ ["FECD",0x8462],
+ ["B8B3",0x8463],
+ ["99B9",0x8464],
+ ["DFB0",0x8465],
+ ["B8AB",0x8466],
+ ["DFB4",0x8467],
+ ["DFDA",0x8468],
+ ["B8B4",0x8469],
+ ["B8AC",0x846B],
+ ["B8AE",0x846C],
+ ["B8B5",0x846D],
+ ["DFE0",0x846E],
+ ["DFD3",0x846F],
+ ["DFCE",0x8470],
+ ["8F62",0x8471],
+ ["974C",0x8472],
+ ["DFBB",0x8473],
+ ["DFBA",0x8474],
+ ["B8AA",0x8475],
+ ["DFAC",0x8476],
+ ["B8A7",0x8477],
+ ["DFC4",0x8478],
+ ["DFAD",0x8479],
+ ["DFC2",0x847A],
+ ["DFB7",0x847D],
+ ["DFDB",0x847E],
+ ["91C7",0x847F],
+ ["955F",0x8480],
+ ["B8A6",0x8482],
+ ["DFB3",0x8486],
+ ["99BB",0x8488],
+ ["DFAF",0x848D],
+ ["DFD5",0x848E],
+ ["DFAE",0x848F],
+ ["BB60",0x8490],
+ ["E3D3",0x8491],
+ ["8E6D",0x8492],
+ ["8F71",0x8493],
+ ["E3C2",0x8494],
+ ["94CB",0x8496],
+ ["E3AC",0x8497],
+ ["E3CA",0x8498],
+ ["BB58",0x8499],
+ ["E3BB",0x849A],
+ ["E3C5",0x849B],
+ ["BB5B",0x849C],
+ ["E3BE",0x849D],
+ ["BB59",0x849E],
+ ["E3AF",0x849F],
+ ["E3CD",0x84A0],
+ ["E3AE",0x84A1],
+ ["E3C1",0x84A2],
+ ["95B1",0x84A3],
+ ["E3AD",0x84A4],
+ ["E3BF",0x84A7],
+ ["E3C8",0x84A8],
+ ["E3C6",0x84A9],
+ ["E3BA",0x84AA],
+ ["E3B5",0x84AB],
+ ["E3B3",0x84AC],
+ ["9AF2",0x84AD],
+ ["E3B4",0x84AE],
+ ["E3C7",0x84AF],
+ ["E3D2",0x84B0],
+ ["E3BC",0x84B1],
+ ["BB5A",0x84B2],
+ ["E3B7",0x84B4],
+ ["E3CB",0x84B6],
+ ["BB5D",0x84B8],
+ ["E3B6",0x84B9],
+ ["E3B0",0x84BA],
+ ["E3C0",0x84BB],
+ ["BB61",0x84BC],
+ ["96C3",0x84BD],
+ ["99BD",0x84BE],
+ ["BB55",0x84BF],
+ ["BB5E",0x84C0],
+ ["E3B8",0x84C1],
+ ["E3B2",0x84C2],
+ ["BB57",0x84C4],
+ ["DFD4",0x84C5],
+ ["BB56",0x84C6],
+ ["E3C3",0x84C7],
+ ["BB54",0x84C9],
+ ["BB63",0x84CA],
+ ["BB5C",0x84CB],
+ ["E3C4",0x84CC],
+ ["E3B9",0x84CD],
+ ["E3B1",0x84CE],
+ ["E3CC",0x84CF],
+ ["E3BD",0x84D0],
+ ["BB62",0x84D1],
+ ["E3D0",0x84D2],
+ ["BB5F",0x84D3],
+ ["E3CF",0x84D4],
+ ["E3C9",0x84D6],
+ ["E3CE",0x84D7],
+ ["A0CF",0x84DA],
+ ["E3D1",0x84DB],
+ ["8F6D",0x84DE],
+ ["99BE",0x84E1],
+ ["8EF4",0x84E2],
+ ["8F72",0x84E4],
+ ["95E4",0x84E5],
+ ["E773",0x84E7],
+ ["E774",0x84E8],
+ ["E767",0x84E9],
+ ["E766",0x84EA],
+ ["E762",0x84EB],
+ ["BDB4",0x84EC],
+ ["BDAC",0x84EE],
+ ["E776",0x84EF],
+ ["E775",0x84F0],
+ ["DFA9",0x84F1],
+ ["E75F",0x84F2],
+ ["E763",0x84F3],
+ ["E75D",0x84F4],
+ ["E770",0x84F6],
+ ["E761",0x84F7],
+ ["99BF",0x84F8],
+ ["E777",0x84F9],
+ ["E75A",0x84FA],
+ ["E758",0x84FB],
+ ["E764",0x84FC],
+ ["E76E",0x84FD],
+ ["E769",0x84FE],
+ ["BDB6",0x84FF],
+ ["E74F",0x8500],
+ ["E76D",0x8502],
+ ["9242",0x8503],
+ ["FBA5",0x8505],
+ ["BDB7",0x8506],
+ ["DFBD",0x8507],
+ ["E75B",0x8508],
+ ["E752",0x8509],
+ ["E755",0x850A],
+ ["E77B",0x850B],
+ ["E75C",0x850C],
+ ["E753",0x850D],
+ ["E751",0x850E],
+ ["E74E",0x850F],
+ ["99C0",0x8510],
+ ["BDB0",0x8511],
+ ["E765",0x8512],
+ ["BDAF",0x8513],
+ ["BDB3",0x8514],
+ ["E760",0x8515],
+ ["E768",0x8516],
+ ["BDA9",0x8517],
+ ["E778",0x8518],
+ ["E77C",0x8519],
+ ["BDAB",0x851A],
+ ["E757",0x851C],
+ ["E76B",0x851D],
+ ["E76F",0x851E],
+ ["E754",0x851F],
+ ["E779",0x8520],
+ ["BDB2",0x8521],
+ ["BDB1",0x8523],
+ ["E74C",0x8524],
+ ["BDB5",0x8525],
+ ["E772",0x8526],
+ ["E756",0x8527],
+ ["E76A",0x8528],
+ ["E750",0x8529],
+ ["E75E",0x852A],
+ ["E759",0x852B],
+ ["BDAD",0x852C],
+ ["BDAE",0x852D],
+ ["E76C",0x852E],
+ ["E77D",0x852F],
+ ["E77A",0x8530],
+ ["E771",0x8531],
+ ["FDB4",0x8533],
+ ["8F77",0x8534],
+ ["99C1",0x8538],
+ ["E74D",0x853B],
+ ["BDAA",0x853D],
+ ["EB49",0x853E],
+ ["EB40",0x8540],
+ ["EB43",0x8541],
+ ["FAB9",0x8542],
+ ["BFBB",0x8543],
+ ["EB45",0x8544],
+ ["EAF9",0x8545],
+ ["EB41",0x8546],
+ ["EB47",0x8547],
+ ["BFB8",0x8548],
+ ["BFBC",0x8549],
+ ["BFB6",0x854A],
+ ["8F40",0x854B],
+ ["FA44",0x854C],
+ ["EAFB",0x854D],
+ ["EB4C",0x854E],
+ ["EB46",0x8551],
+ ["99C2",0x8552],
+ ["EAFC",0x8553],
+ ["EB55",0x8554],
+ ["EB4F",0x8555],
+ ["EAF8",0x8556],
+ ["EE46",0x8557],
+ ["EAFE",0x8558],
+ ["BFB7",0x8559],
+ ["8F5C",0x855A],
+ ["EB4A",0x855B],
+ ["EB54",0x855D],
+ ["BFBF",0x855E],
+ ["8CBD",0x855F],
+ ["EB51",0x8560],
+ ["EAFD",0x8561],
+ ["EB44",0x8562],
+ ["EB48",0x8563],
+ ["EB42",0x8564],
+ ["EB56",0x8565],
+ ["EB53",0x8566],
+ ["EB50",0x8567],
+ ["BFB9",0x8568],
+ ["BFBA",0x8569],
+ ["BFBE",0x856A],
+ ["EAFA",0x856B],
+ ["EB57",0x856C],
+ ["BFBD",0x856D],
+ ["EB4D",0x856E],
+ ["99C4",0x856F],
+ ["99C5",0x8570],
+ ["EB4B",0x8571],
+ ["8F7B",0x8573],
+ ["EB4E",0x8575],
+ ["EE53",0x8576],
+ ["EE40",0x8577],
+ ["EE45",0x8578],
+ ["EE52",0x8579],
+ ["EE44",0x857A],
+ ["EDFB",0x857B],
+ ["EE41",0x857C],
+ ["C1A2",0x857E],
+ ["EDF4",0x8580],
+ ["EE4D",0x8581],
+ ["EE4F",0x8582],
+ ["EDF3",0x8583],
+ ["C1A1",0x8584],
+ ["EE51",0x8585],
+ ["EE49",0x8586],
+ ["C1A8",0x8587],
+ ["EE50",0x8588],
+ ["EE42",0x8589],
+ ["C1AA",0x858A],
+ ["EDF9",0x858B],
+ ["EB52",0x858C],
+ ["EE4A",0x858D],
+ ["EE47",0x858E],
+ ["EDF5",0x858F],
+ ["EE55",0x8590],
+ ["C1A4",0x8591],
+ ["8776",0x8593],
+ ["C1A5",0x8594],
+ ["EDF7",0x8595],
+ ["EE48",0x8596],
+ ["8CB6",0x8597],
+ ["EE54",0x8598],
+ ["EE4B",0x8599],
+ ["EDFD",0x859A],
+ ["C1A7",0x859B],
+ ["C1A3",0x859C],
+ ["EE4C",0x859D],
+ ["EDFE",0x859E],
+ ["EE56",0x859F],
+ ["EDF8",0x85A0],
+ ["EE43",0x85A1],
+ ["EE4E",0x85A2],
+ ["EDFA",0x85A3],
+ ["EDFC",0x85A4],
+ ["C2CB",0x85A6],
+ ["EDF6",0x85A7],
+ ["C1A9",0x85A8],
+ ["C2C4",0x85A9],
+ ["C17E",0x85AA],
+ ["C1A6",0x85AF],
+ ["C2C8",0x85B0],
+ ["F0B3",0x85B1],
+ ["F0A9",0x85B3],
+ ["F0A4",0x85B4],
+ ["F0AA",0x85B5],
+ ["F0B4",0x85B6],
+ ["F0B8",0x85B7],
+ ["F0B7",0x85B8],
+ ["C2CA",0x85B9],
+ ["C2C9",0x85BA],
+ ["F0AB",0x85BD],
+ ["F0B9",0x85BE],
+ ["F0AE",0x85BF],
+ ["F0A6",0x85C0],
+ ["8FA3",0x85C1],
+ ["F0A8",0x85C2],
+ ["F0A7",0x85C3],
+ ["F0AD",0x85C4],
+ ["F0B2",0x85C5],
+ ["F0A5",0x85C6],
+ ["F0AC",0x85C7],
+ ["F0B1",0x85C8],
+ ["C2C7",0x85C9],
+ ["F0AF",0x85CB],
+ ["C2C5",0x85CD],
+ ["F0B0",0x85CE],
+ ["C2C3",0x85CF],
+ ["C2C6",0x85D0],
+ ["F2D5",0x85D1],
+ ["F0B5",0x85D2],
+ ["C3C2",0x85D5],
+ ["8CCE",0x85D6],
+ ["F2CD",0x85D7],
+ ["F2D1",0x85D8],
+ ["F2C9",0x85D9],
+ ["F2CC",0x85DA],
+ ["F2D4",0x85DC],
+ ["C3C0",0x85DD],
+ ["F2D9",0x85DE],
+ ["F2D2",0x85DF],
+ ["99C6",0x85E0],
+ ["F2CA",0x85E1],
+ ["F2DA",0x85E2],
+ ["F2D3",0x85E3],
+ ["C3C3",0x85E4],
+ ["C3C4",0x85E5],
+ ["F2D7",0x85E6],
+ ["F2CB",0x85E8],
+ ["C3BF",0x85E9],
+ ["C3C1",0x85EA],
+ ["F2C6",0x85EB],
+ ["F2CE",0x85EC],
+ ["F2C8",0x85ED],
+ ["96CD",0x85EE],
+ ["F2D8",0x85EF],
+ ["F2D6",0x85F0],
+ ["F2C7",0x85F1],
+ ["F2CF",0x85F2],
+ ["F4BE",0x85F6],
+ ["C3C5",0x85F7],
+ ["F2D0",0x85F8],
+ ["C4A7",0x85F9],
+ ["C4A9",0x85FA],
+ ["C4A6",0x85FB],
+ ["96C7",0x85FC],
+ ["F4C3",0x85FD],
+ ["F4BB",0x85FE],
+ ["F4B9",0x85FF],
+ ["F4BD",0x8600],
+ ["F4BA",0x8601],
+ ["8FA5",0x8602],
+ ["F4BF",0x8604],
+ ["F4C1",0x8605],
+ ["C4AA",0x8606],
+ ["C4AC",0x8607],
+ ["F4C0",0x8609],
+ ["C4AD",0x860A],
+ ["C4AB",0x860B],
+ ["F4C2",0x860C],
+ ["FABB",0x860D],
+ ["8C61",0x860F],
+ ["9570",0x8610],
+ ["C4A8",0x8611],
+ ["9368",0x8614],
+ ["8F7E",0x8616],
+ ["C4F4",0x8617],
+ ["F5F1",0x8618],
+ ["F5F7",0x8619],
+ ["C4F6",0x861A],
+ ["F4BC",0x861B],
+ ["F5F6",0x861C],
+ ["F5FD",0x861E],
+ ["F5F4",0x861F],
+ ["F5FB",0x8620],
+ ["F5FA",0x8621],
+ ["F4B8",0x8622],
+ ["F5F5",0x8623],
+ ["F0B6",0x8624],
+ ["F5FE",0x8625],
+ ["F5F3",0x8626],
+ ["F5F8",0x8627],
+ ["8FAA",0x8628],
+ ["F5FC",0x8629],
+ ["F5F2",0x862A],
+ ["F74A",0x862C],
+ ["C4F5",0x862D],
+ ["F5F9",0x862E],
+ ["A050",0x862F],
+ ["F7F4",0x8631],
+ ["F74B",0x8632],
+ ["F749",0x8633],
+ ["F747",0x8634],
+ ["F748",0x8635],
+ ["F74C",0x8636],
+ ["C5D9",0x8638],
+ ["F7F2",0x8639],
+ ["F7F0",0x863A],
+ ["F7F5",0x863B],
+ ["F7F3",0x863C],
+ ["F7F6",0x863E],
+ ["C5DA",0x863F],
+ ["F7F1",0x8640],
+ ["90D3",0x8642],
+ ["F8BC",0x8643],
+ ["9556",0x8645],
+ ["F945",0x8646],
+ ["F946",0x8647],
+ ["F947",0x8648],
+ ["F9C7",0x864B],
+ ["F9BD",0x864C],
+ ["CA4F",0x864D],
+ ["AAEA",0x864E],
+ ["AD68",0x8650],
+ ["D3B8",0x8652],
+ ["D3B7",0x8653],
+ ["B040",0x8654],
+ ["B342",0x8655],
+ ["D77C",0x8656],
+ ["D77B",0x8659],
+ ["B5EA",0x865B],
+ ["B8B8",0x865C],
+ ["B8B7",0x865E],
+ ["B8B9",0x865F],
+ ["E3D4",0x8661],
+ ["E77E",0x8662],
+ ["EB58",0x8663],
+ ["EB5A",0x8664],
+ ["EB59",0x8665],
+ ["C1AB",0x8667],
+ ["EE57",0x8668],
+ ["F0BA",0x8669],
+ ["F9A5",0x866A],
+ ["A6E4",0x866B],
+ ["8FB8",0x866C],
+ ["CDC9",0x866D],
+ ["CDCA",0x866E],
+ ["CDC8",0x866F],
+ ["CDC7",0x8670],
+ ["AAEB",0x8671],
+ ["99C8",0x8672],
+ ["D0A9",0x8673],
+ ["D0A7",0x8674],
+ ["D0A6",0x8677],
+ ["AD69",0x8679],
+ ["AD6B",0x867A],
+ ["AD6A",0x867B],
+ ["D0A8",0x867C],
+ ["8FAF",0x867E],
+ ["D3C4",0x8685],
+ ["D3C1",0x8686],
+ ["D3BF",0x8687],
+ ["B041",0x868A],
+ ["D3C2",0x868B],
+ ["B046",0x868C],
+ ["D3BC",0x868D],
+ ["D3CB",0x868E],
+ ["D3CD",0x8690],
+ ["D3BD",0x8691],
+ ["99C9",0x8692],
+ ["B043",0x8693],
+ ["D3CE",0x8694],
+ ["D3C9",0x8695],
+ ["D3BB",0x8696],
+ ["D3C0",0x8697],
+ ["D3CA",0x8698],
+ ["D3C6",0x8699],
+ ["D3C3",0x869A],
+ ["B048",0x869C],
+ ["D3CC",0x869D],
+ ["D3BE",0x869E],
+ ["9579",0x86A0],
+ ["D3C7",0x86A1],
+ ["D3B9",0x86A2],
+ ["B047",0x86A3],
+ ["B044",0x86A4],
+ ["D3C5",0x86A5],
+ ["D3C8",0x86A7],
+ ["D3BA",0x86A8],
+ ["B045",0x86A9],
+ ["B042",0x86AA],
+ ["9F49",0x86AD],
+ ["B34C",0x86AF],
+ ["D7A5",0x86B0],
+ ["B34B",0x86B1],
+ ["99CA",0x86B2],
+ ["D7A8",0x86B3],
+ ["D7AB",0x86B4],
+ ["B348",0x86B5],
+ ["B346",0x86B6],
+ ["D77E",0x86B7],
+ ["D7A9",0x86B8],
+ ["D7A7",0x86B9],
+ ["D7A4",0x86BA],
+ ["D7AC",0x86BB],
+ ["D7AD",0x86BC],
+ ["D7AF",0x86BD],
+ ["D7B0",0x86BE],
+ ["D77D",0x86BF],
+ ["B345",0x86C0],
+ ["D7A2",0x86C1],
+ ["D7A1",0x86C2],
+ ["D7AE",0x86C3],
+ ["B347",0x86C4],
+ ["D7A3",0x86C5],
+ ["B349",0x86C6],
+ ["B344",0x86C7],
+ ["D7A6",0x86C8],
+ ["B34D",0x86C9],
+ ["B34A",0x86CB],
+ ["D7AA",0x86CC],
+ ["B5F1",0x86D0],
+ ["DBBF",0x86D1],
+ ["DBB4",0x86D3],
+ ["B5EE",0x86D4],
+ ["DFE7",0x86D6],
+ ["DBBD",0x86D7],
+ ["DBB1",0x86D8],
+ ["B5EC",0x86D9],
+ ["DBB6",0x86DA],
+ ["B5EF",0x86DB],
+ ["DBBA",0x86DC],
+ ["DBB8",0x86DD],
+ ["B5F2",0x86DE],
+ ["B5EB",0x86DF],
+ ["DBB2",0x86E2],
+ ["DBB5",0x86E3],
+ ["B5F0",0x86E4],
+ ["DBB3",0x86E6],
+ ["DBBE",0x86E8],
+ ["DBBC",0x86E9],
+ ["DBB7",0x86EA],
+ ["DBB9",0x86EB],
+ ["DBBB",0x86EC],
+ ["B5ED",0x86ED],
+ ["99CB",0x86EF],
+ ["DFE8",0x86F5],
+ ["DFEE",0x86F6],
+ ["DFE4",0x86F7],
+ ["DFEA",0x86F8],
+ ["B8BA",0x86F9],
+ ["DFE6",0x86FA],
+ ["B8C0",0x86FB],
+ ["B8BF",0x86FE],
+ ["B8BE",0x8700],
+ ["DFED",0x8701],
+ ["B8C1",0x8702],
+ ["B8C2",0x8703],
+ ["DFE3",0x8704],
+ ["DFF0",0x8705],
+ ["B8C3",0x8706],
+ ["B8BD",0x8707],
+ ["B8BC",0x8708],
+ ["DFEC",0x8709],
+ ["B8C4",0x870A],
+ ["DFE2",0x870B],
+ ["DFE5",0x870C],
+ ["DFEF",0x870D],
+ ["DFEB",0x870E],
+ ["E3F4",0x8711],
+ ["E3E9",0x8712],
+ ["B8BB",0x8713],
+ ["BB6A",0x8718],
+ ["E3DD",0x8719],
+ ["E3F2",0x871A],
+ ["E3DE",0x871B],
+ ["BB65",0x871C],
+ ["E3DB",0x871E],
+ ["E3E4",0x8720],
+ ["E3DC",0x8721],
+ ["BB67",0x8722],
+ ["E3D6",0x8723],
+ ["E3F1",0x8724],
+ ["BB68",0x8725],
+ ["E3EE",0x8726],
+ ["E3EF",0x8727],
+ ["E3D7",0x8728],
+ ["BB6D",0x8729],
+ ["E3E6",0x872A],
+ ["E3E0",0x872C],
+ ["E3E7",0x872D],
+ ["E3DA",0x872E],
+ ["E3F3",0x8730],
+ ["E3EB",0x8731],
+ ["E3E5",0x8732],
+ ["E3D5",0x8733],
+ ["BB69",0x8734],
+ ["E3EC",0x8735],
+ ["BB6C",0x8737],
+ ["E3F0",0x8738],
+ ["E3EA",0x873A],
+ ["BB66",0x873B],
+ ["E3E8",0x873C],
+ ["E3E2",0x873E],
+ ["BB64",0x873F],
+ ["E3D9",0x8740],
+ ["E3E1",0x8741],
+ ["E3ED",0x8742],
+ ["E3DF",0x8743],
+ ["E3E3",0x8746],
+ ["BDC1",0x874C],
+ ["DFE9",0x874D],
+ ["E7B2",0x874E],
+ ["E7BB",0x874F],
+ ["E7B1",0x8750],
+ ["E7AD",0x8751],
+ ["E7AA",0x8752],
+ ["BDC2",0x8753],
+ ["E7A8",0x8754],
+ ["BB6B",0x8755],
+ ["E7A1",0x8756],
+ ["BDC0",0x8757],
+ ["E7A7",0x8758],
+ ["BDBF",0x8759],
+ ["E7AC",0x875A],
+ ["E7A9",0x875B],
+ ["E7B9",0x875C],
+ ["E7B4",0x875D],
+ ["E7AE",0x875E],
+ ["E7B3",0x875F],
+ ["BDBB",0x8760],
+ ["E7AB",0x8761],
+ ["E7BE",0x8762],
+ ["E7A2",0x8763],
+ ["E7A3",0x8764],
+ ["E7BA",0x8765],
+ ["BDBC",0x8766],
+ ["E7BF",0x8767],
+ ["BDBE",0x8768],
+ ["E7C0",0x8769],
+ ["E7B0",0x876A],
+ ["E3D8",0x876B],
+ ["E7B6",0x876C],
+ ["E7AF",0x876D],
+ ["E7B8",0x876E],
+ ["E7B5",0x876F],
+ ["9DD5",0x8770],
+ ["8FB0",0x8771],
+ ["E7A6",0x8773],
+ ["BDB9",0x8774],
+ ["E7BD",0x8775],
+ ["BDBA",0x8776],
+ ["E7A4",0x8777],
+ ["BDBD",0x8778],
+ ["EB64",0x8779],
+ ["E7B7",0x877A],
+ ["E7BC",0x877B],
+ ["FA7A",0x877D],
+ ["EB61",0x8781],
+ ["BDB8",0x8782],
+ ["BFC0",0x8783],
+ ["EB6B",0x8784],
+ ["EB67",0x8785],
+ ["9E5F",0x8786],
+ ["EB65",0x8787],
+ ["EB60",0x8788],
+ ["EB6F",0x8789],
+ ["99CD",0x878B],
+ ["A0C9",0x878C],
+ ["BFC4",0x878D],
+ ["EB5C",0x878F],
+ ["EB68",0x8790],
+ ["EB69",0x8791],
+ ["EB5F",0x8792],
+ ["EB5E",0x8793],
+ ["EB6C",0x8794],
+ ["EB62",0x8796],
+ ["EB5D",0x8797],
+ ["EB63",0x8798],
+ ["EB6E",0x879A],
+ ["EB5B",0x879B],
+ ["EB6D",0x879C],
+ ["EB6A",0x879D],
+ ["BFC2",0x879E],
+ ["BFC1",0x879F],
+ ["BFC3",0x87A2],
+ ["EB66",0x87A3],
+ ["F0CB",0x87A4],
+ ["9ADB",0x87A5],
+ ["A0C6",0x87A9],
+ ["EE59",0x87AA],
+ ["C1B1",0x87AB],
+ ["EE5D",0x87AC],
+ ["EE5A",0x87AD],
+ ["EE61",0x87AE],
+ ["EE67",0x87AF],
+ ["EE5C",0x87B0],
+ ["8FB4",0x87B1],
+ ["EE70",0x87B2],
+ ["C1AE",0x87B3],
+ ["EE6A",0x87B4],
+ ["EE5F",0x87B5],
+ ["EE6B",0x87B6],
+ ["EE66",0x87B7],
+ ["EE6D",0x87B8],
+ ["EE5E",0x87B9],
+ ["C1B3",0x87BA],
+ ["C1B2",0x87BB],
+ ["EE60",0x87BC],
+ ["EE6E",0x87BD],
+ ["EE58",0x87BE],
+ ["EE6C",0x87BF],
+ ["C1AC",0x87C0],
+ ["A0D7",0x87C1],
+ ["EE64",0x87C2],
+ ["EE63",0x87C3],
+ ["EE68",0x87C4],
+ ["EE5B",0x87C5],
+ ["C1B0",0x87C6],
+ ["C1B4",0x87C8],
+ ["EE62",0x87C9],
+ ["EE69",0x87CA],
+ ["C1B5",0x87CB],
+ ["EE65",0x87CC],
+ ["A0C7",0x87CE],
+ ["C1AD",0x87D1],
+ ["C1AF",0x87D2],
+ ["F0C7",0x87D3],
+ ["F0C5",0x87D4],
+ ["A043",0x87D6],
+ ["F0CC",0x87D7],
+ ["F0C9",0x87D8],
+ ["F0CD",0x87D9],
+ ["8FB5",0x87DA],
+ ["F0BE",0x87DB],
+ ["F0C6",0x87DC],
+ ["F0D1",0x87DD],
+ ["EE6F",0x87DE],
+ ["F0C2",0x87DF],
+ ["C2CF",0x87E0],
+ ["E7A5",0x87E1],
+ ["F0BD",0x87E2],
+ ["F0CA",0x87E3],
+ ["F0C4",0x87E4],
+ ["F0C1",0x87E5],
+ ["F0BC",0x87E6],
+ ["F0BB",0x87E7],
+ ["F0D0",0x87E8],
+ ["F0C0",0x87EA],
+ ["F0BF",0x87EB],
+ ["C2CD",0x87EC],
+ ["F0C8",0x87ED],
+ ["8FB2",0x87EE],
+ ["C2CC",0x87EF],
+ ["C2CE",0x87F2],
+ ["F0C3",0x87F3],
+ ["F0CF",0x87F4],
+ ["A061",0x87F5],
+ ["F2DE",0x87F6],
+ ["F2DF",0x87F7],
+ ["C3C9",0x87F9],
+ ["F2DC",0x87FA],
+ ["C3C6",0x87FB],
+ ["F2E4",0x87FC],
+ ["C3CA",0x87FE],
+ ["F2E6",0x87FF],
+ ["F2DB",0x8800],
+ ["F0CE",0x8801],
+ ["F2E8",0x8802],
+ ["F2DD",0x8803],
+ ["9E5E",0x8804],
+ ["C3C7",0x8805],
+ ["F2E3",0x8806],
+ ["F2E5",0x8808],
+ ["F2E0",0x8809],
+ ["F2E7",0x880A],
+ ["F2E2",0x880B],
+ ["F2E1",0x880C],
+ ["C3C8",0x880D],
+ ["8FB6",0x880F],
+ ["F4C5",0x8810],
+ ["F4C6",0x8811],
+ ["F4C8",0x8813],
+ ["C4AE",0x8814],
+ ["C4AF",0x8815],
+ ["F4C9",0x8816],
+ ["F4C7",0x8817],
+ ["9FE8",0x8818],
+ ["F4C4",0x8819],
+ ["F642",0x881B],
+ ["F645",0x881C],
+ ["F641",0x881D],
+ ["C4FA",0x881F],
+ ["F643",0x8820],
+ ["C4F9",0x8821],
+ ["C4F8",0x8822],
+ ["C4F7",0x8823],
+ ["F644",0x8824],
+ ["F751",0x8825],
+ ["F74F",0x8826],
+ ["9CB2",0x8827],
+ ["F74E",0x8828],
+ ["F640",0x8829],
+ ["F750",0x882A],
+ ["F646",0x882B],
+ ["F74D",0x882C],
+ ["957C",0x882D],
+ ["F7F9",0x882E],
+ ["F7D7",0x882F],
+ ["F7F7",0x8830],
+ ["C5DB",0x8831],
+ ["F7F8",0x8832],
+ ["F7FA",0x8833],
+ ["F8BF",0x8835],
+ ["C5FA",0x8836],
+ ["F8BE",0x8837],
+ ["F8BD",0x8838],
+ ["C5FB",0x8839],
+ ["C65A",0x883B],
+ ["F96E",0x883C],
+ ["F9A7",0x883D],
+ ["F9A6",0x883E],
+ ["F9A8",0x883F],
+ ["A6E5",0x8840],
+ ["D0AA",0x8841],
+ ["9FC7",0x8842],
+ ["D3CF",0x8843],
+ ["D3D0",0x8844],
+ ["8FBB",0x8845],
+ ["8FBC",0x8846],
+ ["DBC0",0x8848],
+ ["F647",0x884A],
+ ["F8C0",0x884B],
+ ["A6E6",0x884C],
+ ["AD6C",0x884D],
+ ["D0AB",0x884E],
+ ["8FEC",0x884F],
+ ["D7B1",0x8852],
+ ["B34E",0x8853],
+ ["DBC2",0x8855],
+ ["DBC1",0x8856],
+ ["B5F3",0x8857],
+ ["B8C5",0x8859],
+ ["E7C1",0x885A],
+ ["BDC3",0x885B],
+ ["BDC4",0x885D],
+ ["8FC0",0x885E],
+ ["936A",0x8860],
+ ["BFC5",0x8861],
+ ["C5FC",0x8862],
+ ["A6E7",0x8863],
+ ["8BE4",0x8864],
+ ["9C7C",0x8865],
+ ["D0AC",0x8867],
+ ["AAED",0x8868],
+ ["D0AE",0x8869],
+ ["D0AD",0x886A],
+ ["AD6D",0x886B],
+ ["D3D1",0x886D],
+ ["95A1",0x886E],
+ ["D3D8",0x886F],
+ ["B049",0x8870],
+ ["D3D6",0x8871],
+ ["D3D4",0x8872],
+ ["D3DB",0x8874],
+ ["D3D2",0x8875],
+ ["D3D3",0x8876],
+ ["B04A",0x8877],
+ ["B04E",0x8879],
+ ["D3DC",0x887C],
+ ["B04D",0x887D],
+ ["D3DA",0x887E],
+ ["D3D7",0x887F],
+ ["D3D5",0x8880],
+ ["B04B",0x8881],
+ ["B04C",0x8882],
+ ["D3D9",0x8883],
+ ["FEEC",0x8884],
+ ["95A3",0x8887],
+ ["B350",0x8888],
+ ["D7B2",0x8889],
+ ["B355",0x888B],
+ ["D7C2",0x888C],
+ ["B354",0x888D],
+ ["D7C4",0x888E],
+ ["8C45",0x888F],
+ ["8CB8",0x8890],
+ ["D7B8",0x8891],
+ ["B352",0x8892],
+ ["D7C3",0x8893],
+ ["D7B3",0x8895],
+ ["B353",0x8896],
+ ["D7BF",0x8897],
+ ["D7BB",0x8898],
+ ["D7BD",0x8899],
+ ["D7B7",0x889A],
+ ["D7BE",0x889B],
+ ["8FC1",0x889C],
+ ["B34F",0x889E],
+ ["D7BA",0x889F],
+ ["A052",0x88A0],
+ ["D7B9",0x88A1],
+ ["D7B5",0x88A2],
+ ["D7C0",0x88A4],
+ ["D7BC",0x88A7],
+ ["D7B4",0x88A8],
+ ["D7B6",0x88AA],
+ ["B351",0x88AB],
+ ["D7C1",0x88AC],
+ ["99D0",0x88AE],
+ ["B5F6",0x88B1],
+ ["DBCD",0x88B2],
+ ["8FC3",0x88B4],
+ ["8FC4",0x88B5],
+ ["DBC9",0x88B6],
+ ["DBCB",0x88B7],
+ ["DBC6",0x88B8],
+ ["DBC5",0x88B9],
+ ["DBC3",0x88BA],
+ ["DBCA",0x88BC],
+ ["DBCC",0x88BD],
+ ["DBC8",0x88BE],
+ ["95A4",0x88BF],
+ ["DBC7",0x88C0],
+ ["B5F4",0x88C1],
+ ["B5F5",0x88C2],
+ ["8FC6",0x88C5],
+ ["9E60",0x88C7],
+ ["DBCF",0x88C9],
+ ["B8CD",0x88CA],
+ ["DFF2",0x88CB],
+ ["DFF8",0x88CC],
+ ["DFF3",0x88CD],
+ ["DFF4",0x88CE],
+ ["F9D8",0x88CF],
+ ["DFF9",0x88D0],
+ ["B8CF",0x88D2],
+ ["B8C7",0x88D4],
+ ["B8CE",0x88D5],
+ ["DFF1",0x88D6],
+ ["DBC4",0x88D7],
+ ["B8CA",0x88D8],
+ ["B8C8",0x88D9],
+ ["DFF7",0x88DA],
+ ["DFF6",0x88DB],
+ ["B8C9",0x88DC],
+ ["B8CB",0x88DD],
+ ["DFF5",0x88DE],
+ ["B8C6",0x88DF],
+ ["B8CC",0x88E1],
+ ["95A5",0x88E6],
+ ["E3F6",0x88E7],
+ ["BB74",0x88E8],
+ ["E442",0x88EB],
+ ["E441",0x88EC],
+ ["E3FB",0x88EE],
+ ["BB76",0x88EF],
+ ["E440",0x88F0],
+ ["E3F7",0x88F1],
+ ["E3F8",0x88F2],
+ ["BB6E",0x88F3],
+ ["BB70",0x88F4],
+ ["9CB3",0x88F5],
+ ["E3FD",0x88F6],
+ ["E3F5",0x88F7],
+ ["BB72",0x88F8],
+ ["BB71",0x88F9],
+ ["E3F9",0x88FA],
+ ["E3FE",0x88FB],
+ ["E3FC",0x88FC],
+ ["BB73",0x88FD],
+ ["E3FA",0x88FE],
+ ["99D1",0x88FF],
+ ["FEF1",0x8900],
+ ["DBCE",0x8901],
+ ["BB6F",0x8902],
+ ["E7C2",0x8905],
+ ["E7C9",0x8906],
+ ["BDC6",0x8907],
+ ["E7CD",0x8909],
+ ["BDCA",0x890A],
+ ["E7C5",0x890B],
+ ["E7C3",0x890C],
+ ["E7CC",0x890E],
+ ["BDC5",0x8910],
+ ["E7CB",0x8911],
+ ["BDC7",0x8912],
+ ["BDC8",0x8913],
+ ["E7C4",0x8914],
+ ["BDC9",0x8915],
+ ["E7CA",0x8916],
+ ["E7C6",0x8917],
+ ["E7C7",0x8918],
+ ["E7C8",0x8919],
+ ["BB75",0x891A],
+ ["EB70",0x891E],
+ ["EB7C",0x891F],
+ ["BFCA",0x8921],
+ ["EB77",0x8922],
+ ["EB79",0x8923],
+ ["99D2",0x8924],
+ ["BFC8",0x8925],
+ ["EB71",0x8926],
+ ["EB75",0x8927],
+ ["EB78",0x8929],
+ ["BFC6",0x892A],
+ ["BFC9",0x892B],
+ ["EB7B",0x892C],
+ ["EB73",0x892D],
+ ["EB74",0x892E],
+ ["EB7A",0x892F],
+ ["EB72",0x8930],
+ ["EB76",0x8931],
+ ["BFC7",0x8932],
+ ["EE72",0x8933],
+ ["EE71",0x8935],
+ ["C1B7",0x8936],
+ ["EE77",0x8937],
+ ["C1B9",0x8938],
+ ["C1B6",0x893B],
+ ["EE73",0x893C],
+ ["C1BA",0x893D],
+ ["EE74",0x893E],
+ ["EE75",0x8941],
+ ["EE78",0x8942],
+ ["9CC2",0x8943],
+ ["C1B8",0x8944],
+ ["F0D6",0x8946],
+ ["99D3",0x8947],
+ ["F0D9",0x8949],
+ ["F0D3",0x894B],
+ ["F0D5",0x894C],
+ ["95A7",0x894D],
+ ["F0D4",0x894F],
+ ["F0D7",0x8950],
+ ["F0D8",0x8951],
+ ["EE76",0x8952],
+ ["F0D2",0x8953],
+ ["95A9",0x8954],
+ ["C3CD",0x8956],
+ ["F2EC",0x8957],
+ ["F2EF",0x8958],
+ ["F2F1",0x8959],
+ ["F2EA",0x895A],
+ ["F2EB",0x895B],
+ ["F2EE",0x895C],
+ ["F2F0",0x895D],
+ ["C3CE",0x895E],
+ ["C3CC",0x895F],
+ ["C3CB",0x8960],
+ ["F2ED",0x8961],
+ ["F2E9",0x8962],
+ ["F4CA",0x8963],
+ ["C4B0",0x8964],
+ ["95A6",0x8965],
+ ["F4CB",0x8966],
+ ["F649",0x8969],
+ ["C4FB",0x896A],
+ ["F64B",0x896B],
+ ["C4FC",0x896C],
+ ["F648",0x896D],
+ ["F64A",0x896E],
+ ["C5A8",0x896F],
+ ["F752",0x8971],
+ ["C5A7",0x8972],
+ ["F7FD",0x8973],
+ ["F7FC",0x8974],
+ ["F7FB",0x8976],
+ ["9C5D",0x8977],
+ ["F948",0x8979],
+ ["F949",0x897A],
+ ["F94B",0x897B],
+ ["F94A",0x897C],
+ ["CA50",0x897E],
+ ["A6E8",0x897F],
+ ["98E2",0x8980],
+ ["AD6E",0x8981],
+ ["D7C5",0x8982],
+ ["B5F7",0x8983],
+ ["DFFA",0x8985],
+ ["C2D0",0x8986],
+ ["8FC9",0x8987],
+ ["F2F2",0x8988],
+ ["A0C2",0x8989],
+ ["8FCA",0x898A],
+ ["A8A3",0x898B],
+ ["B357",0x898F],
+ ["99D4",0x8991],
+ ["B356",0x8993],
+ ["A0B9",0x8994],
+ ["DBD0",0x8995],
+ ["B5F8",0x8996],
+ ["DBD2",0x8997],
+ ["DBD1",0x8998],
+ ["DFFB",0x899B],
+ ["B8D0",0x899C],
+ ["E443",0x899D],
+ ["E446",0x899E],
+ ["E445",0x899F],
+ ["E444",0x89A1],
+ ["E7CE",0x89A2],
+ ["E7D0",0x89A3],
+ ["E7CF",0x89A4],
+ ["9B58",0x89A5],
+ ["BFCC",0x89A6],
+ ["8FCD",0x89A7],
+ ["A0D4",0x89A9],
+ ["BFCB",0x89AA],
+ ["C1BB",0x89AC],
+ ["EE79",0x89AD],
+ ["EE7B",0x89AE],
+ ["EE7A",0x89AF],
+ ["C2D1",0x89B2],
+ ["F2F4",0x89B6],
+ ["F2F3",0x89B7],
+ ["F4CC",0x89B9],
+ ["C4B1",0x89BA],
+ ["8FCE",0x89BC],
+ ["C4FD",0x89BD],
+ ["F754",0x89BE],
+ ["F753",0x89BF],
+ ["C65B",0x89C0],
+ ["8BE5",0x89C1],
+ ["8979",0x89C6],
+ ["A8A4",0x89D2],
+ ["D0AF",0x89D3],
+ ["AD6F",0x89D4],
+ ["D7C8",0x89D5],
+ ["D7C6",0x89D6],
+ ["D7C7",0x89D9],
+ ["DBD4",0x89DA],
+ ["DBD5",0x89DB],
+ ["E043",0x89DC],
+ ["DBD3",0x89DD],
+ ["DFFC",0x89DF],
+ ["E041",0x89E0],
+ ["E040",0x89E1],
+ ["E042",0x89E2],
+ ["B8D1",0x89E3],
+ ["DFFE",0x89E4],
+ ["DFFD",0x89E5],
+ ["E044",0x89E6],
+ ["8FD0",0x89E7],
+ ["E449",0x89E8],
+ ["E447",0x89E9],
+ ["E448",0x89EB],
+ ["E7D3",0x89EC],
+ ["E7D1",0x89ED],
+ ["E7D2",0x89F0],
+ ["EB7D",0x89F1],
+ ["EE7C",0x89F2],
+ ["EE7D",0x89F3],
+ ["C2D2",0x89F4],
+ ["F2F5",0x89F6],
+ ["F4CD",0x89F7],
+ ["C4B2",0x89F8],
+ ["F64C",0x89FA],
+ ["F755",0x89FB],
+ ["C5A9",0x89FC],
+ ["F7FE",0x89FE],
+ ["F94C",0x89FF],
+ ["A8A5",0x8A00],
+ ["AD71",0x8A02],
+ ["AD72",0x8A03],
+ ["D0B0",0x8A04],
+ ["D0B1",0x8A07],
+ ["AD70",0x8A08],
+ ["B054",0x8A0A],
+ ["B052",0x8A0C],
+ ["B051",0x8A0E],
+ ["B058",0x8A0F],
+ ["B050",0x8A10],
+ ["B059",0x8A11],
+ ["D3DD",0x8A12],
+ ["B056",0x8A13],
+ ["B053",0x8A15],
+ ["B057",0x8A16],
+ ["B055",0x8A17],
+ ["B04F",0x8A18],
+ ["B35F",0x8A1B],
+ ["95B6",0x8A1C],
+ ["B359",0x8A1D],
+ ["D7CC",0x8A1E],
+ ["B35E",0x8A1F],
+ ["B360",0x8A22],
+ ["B35A",0x8A23],
+ ["B35B",0x8A25],
+ ["D7CA",0x8A27],
+ ["99D6",0x8A29],
+ ["B358",0x8A2A],
+ ["95E5",0x8A2B],
+ ["D7CB",0x8A2C],
+ ["B35D",0x8A2D],
+ ["D7C9",0x8A30],
+ ["B35C",0x8A31],
+ ["B644",0x8A34],
+ ["B646",0x8A36],
+ ["99D7",0x8A38],
+ ["DBD8",0x8A39],
+ ["B645",0x8A3A],
+ ["B5F9",0x8A3B],
+ ["B5FD",0x8A3C],
+ ["95B5",0x8A3D],
+ ["B8E4",0x8A3E],
+ ["E049",0x8A3F],
+ ["DBDA",0x8A40],
+ ["B5FE",0x8A41],
+ ["DBDD",0x8A44],
+ ["DBDE",0x8A45],
+ ["B643",0x8A46],
+ ["DBE0",0x8A48],
+ ["A0CA",0x8A49],
+ ["DBE2",0x8A4A],
+ ["DBE3",0x8A4C],
+ ["DBD7",0x8A4D],
+ ["DBD6",0x8A4E],
+ ["DBE4",0x8A4F],
+ ["B642",0x8A50],
+ ["DBE1",0x8A51],
+ ["DBDF",0x8A52],
+ ["B640",0x8A54],
+ ["B5FB",0x8A55],
+ ["B647",0x8A56],
+ ["DBDB",0x8A57],
+ ["DBDC",0x8A58],
+ ["DBD9",0x8A59],
+ ["B641",0x8A5B],
+ ["B5FC",0x8A5E],
+ ["B5FA",0x8A60],
+ ["E048",0x8A61],
+ ["B8DF",0x8A62],
+ ["B8DA",0x8A63],
+ ["B8D5",0x8A66],
+ ["9FFD",0x8A67],
+ ["B8E5",0x8A68],
+ ["B8D6",0x8A69],
+ ["B8D2",0x8A6B],
+ ["B8E1",0x8A6C],
+ ["B8DE",0x8A6D],
+ ["B8E0",0x8A6E],
+ ["B8D7",0x8A70],
+ ["B8DC",0x8A71],
+ ["B8D3",0x8A72],
+ ["B8D4",0x8A73],
+ ["E050",0x8A74],
+ ["E04D",0x8A75],
+ ["E045",0x8A76],
+ ["E04A",0x8A77],
+ ["B8E2",0x8A79],
+ ["E051",0x8A7A],
+ ["B8E3",0x8A7B],
+ ["B8D9",0x8A7C],
+ ["A058",0x8A7E],
+ ["E047",0x8A7F],
+ ["E04F",0x8A81],
+ ["E04B",0x8A82],
+ ["E04E",0x8A83],
+ ["E04C",0x8A84],
+ ["B8DD",0x8A85],
+ ["E046",0x8A86],
+ ["B8D8",0x8A87],
+ ["E44C",0x8A8B],
+ ["BB78",0x8A8C],
+ ["BB7B",0x8A8D],
+ ["E44E",0x8A8F],
+ ["8FD6",0x8A90],
+ ["BBA5",0x8A91],
+ ["E44D",0x8A92],
+ ["BB7D",0x8A93],
+ ["99D8",0x8A94],
+ ["BDCF",0x8A95],
+ ["E44F",0x8A96],
+ ["BBA4",0x8A98],
+ ["E44B",0x8A99],
+ ["BBA6",0x8A9A],
+ ["8FD3",0x8A9C],
+ ["BB79",0x8A9E],
+ ["B8DB",0x8AA0],
+ ["BB7C",0x8AA1],
+ ["BB7A",0x8AA3],
+ ["BB7E",0x8AA4],
+ ["BBA2",0x8AA5],
+ ["BB77",0x8AA6],
+ ["BBA7",0x8AA7],
+ ["BBA3",0x8AA8],
+ ["8FE5",0x8AA9],
+ ["BBA1",0x8AAA],
+ ["E44A",0x8AAB],
+ ["8FE9",0x8AAF],
+ ["BDD6",0x8AB0],
+ ["BDD2",0x8AB2],
+ ["99D9",0x8AB4],
+ ["BDD9",0x8AB6],
+ ["E7D6",0x8AB8],
+ ["BDDA",0x8AB9],
+ ["E7E2",0x8ABA],
+ ["E7DB",0x8ABB],
+ ["BDCB",0x8ABC],
+ ["E7E3",0x8ABD],
+ ["E7DD",0x8ABE],
+ ["BDD5",0x8ABF],
+ ["E7DE",0x8AC0],
+ ["BDD4",0x8AC2],
+ ["E7E1",0x8AC3],
+ ["BDCE",0x8AC4],
+ ["E7DF",0x8AC5],
+ ["E7D5",0x8AC6],
+ ["BDCD",0x8AC7],
+ ["EBAA",0x8AC8],
+ ["BDD3",0x8AC9],
+ ["BDD0",0x8ACB],
+ ["8CF7",0x8ACC],
+ ["BDD8",0x8ACD],
+ ["E7D4",0x8ACF],
+ ["E7D8",0x8AD1],
+ ["BDCC",0x8AD2],
+ ["E7D7",0x8AD3],
+ ["E7D9",0x8AD4],
+ ["E7DA",0x8AD5],
+ ["BDD7",0x8AD6],
+ ["E7DC",0x8AD7],
+ ["E7E0",0x8AD8],
+ ["E7E4",0x8AD9],
+ ["927C",0x8ADA],
+ ["BDDB",0x8ADB],
+ ["BFD2",0x8ADC],
+ ["EBA5",0x8ADD],
+ ["EBAB",0x8ADE],
+ ["EBA8",0x8ADF],
+ ["EB7E",0x8AE0],
+ ["EBAC",0x8AE1],
+ ["EBA1",0x8AE2],
+ ["EBA7",0x8AE4],
+ ["BFCD",0x8AE6],
+ ["BFD3",0x8AE7],
+ ["EBAD",0x8AE8],
+ ["9C45",0x8AEA],
+ ["BFCF",0x8AEB],
+ ["BFD9",0x8AED],
+ ["BFD4",0x8AEE],
+ ["EBAF",0x8AEF],
+ ["EBA9",0x8AF0],
+ ["BFD0",0x8AF1],
+ ["EBA2",0x8AF2],
+ ["BFDA",0x8AF3],
+ ["EBA3",0x8AF4],
+ ["EBA4",0x8AF5],
+ ["BFDB",0x8AF6],
+ ["BFD8",0x8AF7],
+ ["BDD1",0x8AF8],
+ ["8CE8",0x8AF9],
+ ["BFCE",0x8AFA],
+ ["EBB0",0x8AFB],
+ ["BFDC",0x8AFC],
+ ["BFD5",0x8AFE],
+ ["EBAE",0x8AFF],
+ ["BFD1",0x8B00],
+ ["BFD6",0x8B01],
+ ["BFD7",0x8B02],
+ ["C1C3",0x8B04],
+ ["EEA4",0x8B05],
+ ["EEAD",0x8B06],
+ ["EEAA",0x8B07],
+ ["EEAC",0x8B08],
+ ["C1C0",0x8B0A],
+ ["EEA5",0x8B0B],
+ ["8FDE",0x8B0C],
+ ["EEAB",0x8B0D],
+ ["C1BC",0x8B0E],
+ ["EEA7",0x8B0F],
+ ["C1C4",0x8B10],
+ ["EEA3",0x8B11],
+ ["EEA8",0x8B12],
+ ["EEAF",0x8B13],
+ ["EBA6",0x8B14],
+ ["EEA9",0x8B15],
+ ["EEA2",0x8B16],
+ ["C1BD",0x8B17],
+ ["EEA1",0x8B18],
+ ["C1BE",0x8B19],
+ ["EEB0",0x8B1A],
+ ["C1BF",0x8B1B],
+ ["EEAE",0x8B1C],
+ ["C1C2",0x8B1D],
+ ["EE7E",0x8B1E],
+ ["8FDF",0x8B1F],
+ ["C1C1",0x8B20],
+ ["EEA6",0x8B22],
+ ["F0DC",0x8B23],
+ ["F0EA",0x8B24],
+ ["F0E5",0x8B25],
+ ["F0E7",0x8B26],
+ ["F0DB",0x8B27],
+ ["C2D3",0x8B28],
+ ["F0DA",0x8B2A],
+ ["C2D6",0x8B2B],
+ ["C2D5",0x8B2C],
+ ["A04B",0x8B2D],
+ ["F0E9",0x8B2E],
+ ["F0E1",0x8B2F],
+ ["F0DE",0x8B30],
+ ["F0E4",0x8B31],
+ ["F0DD",0x8B33],
+ ["F0DF",0x8B35],
+ ["F0E8",0x8B36],
+ ["F0E6",0x8B37],
+ ["C2D4",0x8B39],
+ ["F0ED",0x8B3A],
+ ["F0EB",0x8B3B],
+ ["F0E2",0x8B3C],
+ ["F0EC",0x8B3D],
+ ["F0E3",0x8B3E],
+ ["8FE2",0x8B3F],
+ ["F2F9",0x8B40],
+ ["C3CF",0x8B41],
+ ["F341",0x8B42],
+ ["A0CC",0x8B43],
+ ["F64F",0x8B45],
+ ["C3D6",0x8B46],
+ ["F0E0",0x8B47],
+ ["F2F7",0x8B48],
+ ["C3D2",0x8B49],
+ ["F2F8",0x8B4A],
+ ["F2FD",0x8B4B],
+ ["8FE3",0x8B4C],
+ ["8FE4",0x8B4D],
+ ["C3D4",0x8B4E],
+ ["C3D5",0x8B4F],
+ ["F2F6",0x8B50],
+ ["F340",0x8B51],
+ ["F342",0x8B52],
+ ["F2FA",0x8B53],
+ ["F2FC",0x8B54],
+ ["F2FE",0x8B55],
+ ["F2FB",0x8B56],
+ ["F343",0x8B57],
+ ["C3D1",0x8B58],
+ ["C3D7",0x8B59],
+ ["C3D3",0x8B5A],
+ ["C3D0",0x8B5C],
+ ["F4D0",0x8B5D],
+ ["9BC4",0x8B5E],
+ ["C4B7",0x8B5F],
+ ["F4CE",0x8B60],
+ ["9BFC",0x8B62],
+ ["F4D2",0x8B63],
+ ["F4D3",0x8B65],
+ ["C4B5",0x8B66],
+ ["F4D4",0x8B67],
+ ["F4D1",0x8B68],
+ ["964C",0x8B69],
+ ["F4CF",0x8B6A],
+ ["C4B8",0x8B6B],
+ ["C4B4",0x8B6C],
+ ["F4D5",0x8B6D],
+ ["C4B6",0x8B6F],
+ ["C4B3",0x8B70],
+ ["C4FE",0x8B74],
+ ["C540",0x8B77],
+ ["F64E",0x8B78],
+ ["F64D",0x8B79],
+ ["F650",0x8B7A],
+ ["F651",0x8B7B],
+ ["C541",0x8B7D],
+ ["F756",0x8B7E],
+ ["F75B",0x8B7F],
+ ["C5AA",0x8B80],
+ ["9AF6",0x8B81],
+ ["F758",0x8B82],
+ ["8CAE",0x8B83],
+ ["F757",0x8B84],
+ ["F75A",0x8B85],
+ ["F759",0x8B86],
+ ["F843",0x8B88],
+ ["C5DC",0x8B8A],
+ ["F842",0x8B8B],
+ ["F840",0x8B8C],
+ ["F841",0x8B8E],
+ ["8FE7",0x8B90],
+ ["C5FE",0x8B92],
+ ["C5FD",0x8B93],
+ ["F8C1",0x8B94],
+ ["F8C2",0x8B95],
+ ["C640",0x8B96],
+ ["F94D",0x8B98],
+ ["F94E",0x8B99],
+ ["C667",0x8B9A],
+ ["8FE8",0x8B9B],
+ ["C66D",0x8B9C],
+ ["F9A9",0x8B9E],
+ ["F9C8",0x8B9F],
+ ["8BE7",0x8BA0],
+ ["897A",0x8BBE],
+ ["897B",0x8BE2],
+ ["A8A6",0x8C37],
+ ["D7CD",0x8C39],
+ ["D7CE",0x8C3B],
+ ["E052",0x8C3C],
+ ["E450",0x8C3D],
+ ["E7E5",0x8C3E],
+ ["C1C6",0x8C3F],
+ ["C1C5",0x8C41],
+ ["F0EE",0x8C42],
+ ["F344",0x8C43],
+ ["F844",0x8C45],
+ ["A8A7",0x8C46],
+ ["D3DE",0x8C47],
+ ["B05A",0x8C48],
+ ["B361",0x8C49],
+ ["E054",0x8C4A],
+ ["E053",0x8C4B],
+ ["BDDC",0x8C4C],
+ ["E7E6",0x8C4D],
+ ["BDDD",0x8C4E],
+ ["EEB1",0x8C4F],
+ ["C2D7",0x8C50],
+ ["99DA",0x8C51],
+ ["C676",0x8C54],
+ ["A8A8",0x8C55],
+ ["CDCB",0x8C56],
+ ["D3DF",0x8C57],
+ ["B362",0x8C5A],
+ ["D7CF",0x8C5C],
+ ["D7D0",0x8C5D],
+ ["DBE5",0x8C5F],
+ ["B648",0x8C61],
+ ["B8E6",0x8C62],
+ ["E056",0x8C64],
+ ["E055",0x8C65],
+ ["E057",0x8C66],
+ ["E451",0x8C68],
+ ["E452",0x8C69],
+ ["BBA8",0x8C6A],
+ ["BFDD",0x8C6B],
+ ["BDDE",0x8C6C],
+ ["BFDE",0x8C6D],
+ ["EEB5",0x8C6F],
+ ["EEB2",0x8C70],
+ ["EEB4",0x8C71],
+ ["EEB3",0x8C72],
+ ["C1C7",0x8C73],
+ ["F0EF",0x8C75],
+ ["F346",0x8C76],
+ ["F345",0x8C77],
+ ["CBA4",0x8C78],
+ ["B05C",0x8C79],
+ ["B05B",0x8C7A],
+ ["D3E0",0x8C7B],
+ ["D7D1",0x8C7D],
+ ["DBE7",0x8C80],
+ ["DBE6",0x8C81],
+ ["B649",0x8C82],
+ ["E059",0x8C84],
+ ["E05A",0x8C85],
+ ["E058",0x8C86],
+ ["B8E8",0x8C89],
+ ["B8E7",0x8C8A],
+ ["BBAA",0x8C8C],
+ ["BBA9",0x8C8D],
+ ["E7E7",0x8C8F],
+ ["EBB3",0x8C90],
+ ["EBB1",0x8C91],
+ ["EBB2",0x8C92],
+ ["BFDF",0x8C93],
+ ["EEB7",0x8C94],
+ ["EEB6",0x8C95],
+ ["F0F2",0x8C97],
+ ["F0F1",0x8C98],
+ ["F0F0",0x8C99],
+ ["F347",0x8C9A],
+ ["8FED",0x8C9B],
+ ["F9AA",0x8C9C],
+ ["A8A9",0x8C9D],
+ ["AD73",0x8C9E],
+ ["95C0",0x8C9F],
+ ["AD74",0x8CA0],
+ ["B05D",0x8CA1],
+ ["B05E",0x8CA2],
+ ["D3E2",0x8CA3],
+ ["D3E1",0x8CA4],
+ ["D7D2",0x8CA5],
+ ["B368",0x8CA7],
+ ["B366",0x8CA8],
+ ["B363",0x8CA9],
+ ["B367",0x8CAA],
+ ["B365",0x8CAB],
+ ["B364",0x8CAC],
+ ["A0CB",0x8CAD],
+ ["B64A",0x8CAF],
+ ["DBEA",0x8CB0],
+ ["B8ED",0x8CB2],
+ ["B64C",0x8CB3],
+ ["B651",0x8CB4],
+ ["DBEC",0x8CB5],
+ ["B653",0x8CB6],
+ ["B652",0x8CB7],
+ ["B655",0x8CB8],
+ ["DBEB",0x8CB9],
+ ["DBE8",0x8CBA],
+ ["B64F",0x8CBB],
+ ["B64B",0x8CBC],
+ ["B64D",0x8CBD],
+ ["DBE9",0x8CBE],
+ ["B654",0x8CBF],
+ ["B650",0x8CC0],
+ ["B64E",0x8CC1],
+ ["B8EF",0x8CC2],
+ ["B8EE",0x8CC3],
+ ["B8EC",0x8CC4],
+ ["B8F0",0x8CC5],
+ ["B8EA",0x8CC7],
+ ["B8EB",0x8CC8],
+ ["B8E9",0x8CCA],
+ ["E05B",0x8CCC],
+ ["9E48",0x8CCD],
+ ["E454",0x8CCF],
+ ["BBAC",0x8CD1],
+ ["BBAD",0x8CD2],
+ ["BBAB",0x8CD3],
+ ["99DB",0x8CD4],
+ ["E453",0x8CD5],
+ ["8FF3",0x8CD6],
+ ["E455",0x8CD7],
+ ["E7EA",0x8CD9],
+ ["E7EC",0x8CDA],
+ ["8FF9",0x8CDB],
+ ["BDE7",0x8CDC],
+ ["E7ED",0x8CDD],
+ ["BDE0",0x8CDE],
+ ["E7E9",0x8CDF],
+ ["BDDF",0x8CE0],
+ ["BDE9",0x8CE1],
+ ["BDE5",0x8CE2],
+ ["BDE6",0x8CE3],
+ ["BDE2",0x8CE4],
+ ["E7E8",0x8CE5],
+ ["BDE1",0x8CE6],
+ ["E7EE",0x8CE7],
+ ["E7EB",0x8CE8],
+ ["95C1",0x8CE9],
+ ["BDE8",0x8CEA],
+ ["A04E",0x8CEB],
+ ["BDE3",0x8CEC],
+ ["BDE4",0x8CED],
+ ["EBB5",0x8CEE],
+ ["EBB7",0x8CF0],
+ ["EBB6",0x8CF1],
+ ["99DC",0x8CF2],
+ ["EBB8",0x8CF3],
+ ["BFE0",0x8CF4],
+ ["EBB4",0x8CF5],
+ ["A064",0x8CF7],
+ ["C1CB",0x8CF8],
+ ["EEB8",0x8CF9],
+ ["C1C8",0x8CFA],
+ ["C1CC",0x8CFB],
+ ["C1CA",0x8CFC],
+ ["C1C9",0x8CFD],
+ ["F0F3",0x8CFE],
+ ["F0F6",0x8D00],
+ ["F0F5",0x8D02],
+ ["8FF7",0x8D03],
+ ["F0F4",0x8D04],
+ ["C2D8",0x8D05],
+ ["F348",0x8D06],
+ ["F349",0x8D07],
+ ["C3D8",0x8D08],
+ ["F34A",0x8D09],
+ ["C3D9",0x8D0A],
+ ["89B0",0x8D0B],
+ ["A048",0x8D0C],
+ ["C4BA",0x8D0D],
+ ["C4B9",0x8D0F],
+ ["F652",0x8D10],
+ ["8FFB",0x8D11],
+ ["8FF6",0x8D12],
+ ["C542",0x8D13],
+ ["F653",0x8D14],
+ ["F75C",0x8D15],
+ ["C5AB",0x8D16],
+ ["C5AC",0x8D17],
+ ["9DDC",0x8D18],
+ ["F845",0x8D19],
+ ["C642",0x8D1B],
+ ["99DD",0x8D1C],
+ ["8BE8",0x8D1D],
+ ["A8AA",0x8D64],
+ ["B36A",0x8D66],
+ ["B369",0x8D67],
+ ["E05C",0x8D68],
+ ["E05D",0x8D69],
+ ["BBAE",0x8D6B],
+ ["EBB9",0x8D6C],
+ ["BDEA",0x8D6D],
+ ["EBBA",0x8D6E],
+ ["EEB9",0x8D6F],
+ ["A8AB",0x8D70],
+ ["D0B2",0x8D72],
+ ["AD76",0x8D73],
+ ["AD75",0x8D74],
+ ["D3E3",0x8D76],
+ ["B05F",0x8D77],
+ ["D3E4",0x8D78],
+ ["D7D5",0x8D79],
+ ["92C1",0x8D7A],
+ ["D7D4",0x8D7B],
+ ["D7D3",0x8D7D],
+ ["DBEE",0x8D80],
+ ["B658",0x8D81],
+ ["9FD6",0x8D82],
+ ["DBED",0x8D84],
+ ["B657",0x8D85],
+ ["DBEF",0x8D89],
+ ["B656",0x8D8A],
+ ["E05F",0x8D8C],
+ ["E062",0x8D8D],
+ ["E060",0x8D8E],
+ ["E061",0x8D8F],
+ ["E065",0x8D90],
+ ["E05E",0x8D91],
+ ["E066",0x8D92],
+ ["E063",0x8D93],
+ ["E064",0x8D94],
+ ["BBB0",0x8D95],
+ ["E456",0x8D96],
+ ["BBAF",0x8D99],
+ ["E7F2",0x8D9B],
+ ["E7F0",0x8D9C],
+ ["BDEB",0x8D9F],
+ ["E7EF",0x8DA0],
+ ["E7F1",0x8DA1],
+ ["BDEC",0x8DA3],
+ ["EBBB",0x8DA5],
+ ["A0D2",0x8DA6],
+ ["EBBC",0x8DA7],
+ ["C1CD",0x8DA8],
+ ["9040",0x8DA9],
+ ["F34C",0x8DAA],
+ ["F34E",0x8DAB],
+ ["F34B",0x8DAC],
+ ["F34D",0x8DAD],
+ ["F4D6",0x8DAE],
+ ["F654",0x8DAF],
+ ["F96F",0x8DB2],
+ ["A8AC",0x8DB3],
+ ["AD77",0x8DB4],
+ ["D3E5",0x8DB5],
+ ["D3E7",0x8DB6],
+ ["D3E6",0x8DB7],
+ ["D7D8",0x8DB9],
+ ["B36C",0x8DBA],
+ ["D7D6",0x8DBC],
+ ["B36B",0x8DBE],
+ ["D7D9",0x8DBF],
+ ["8AC4",0x8DC0],
+ ["D7DA",0x8DC1],
+ ["D7D7",0x8DC2],
+ ["99E0",0x8DC3],
+ ["DBFB",0x8DC5],
+ ["B660",0x8DC6],
+ ["DBF3",0x8DC7],
+ ["DBF9",0x8DC8],
+ ["B65B",0x8DCB],
+ ["B65E",0x8DCC],
+ ["DBF2",0x8DCD],
+ ["B659",0x8DCE],
+ ["DBF6",0x8DCF],
+ ["E06C",0x8DD0],
+ ["B65D",0x8DD1],
+ ["DBF1",0x8DD3],
+ ["9FF0",0x8DD4],
+ ["DBF7",0x8DD5],
+ ["DBF4",0x8DD6],
+ ["DBFA",0x8DD7],
+ ["DBF0",0x8DD8],
+ ["DBF8",0x8DD9],
+ ["B65C",0x8DDA],
+ ["B65F",0x8DDB],
+ ["DBF5",0x8DDC],
+ ["B65A",0x8DDD],
+ ["B8F2",0x8DDF],
+ ["E068",0x8DE0],
+ ["B8F1",0x8DE1],
+ ["E06F",0x8DE2],
+ ["E06E",0x8DE3],
+ ["B8F8",0x8DE4],
+ ["B8F9",0x8DE6],
+ ["E070",0x8DE7],
+ ["B8F3",0x8DE8],
+ ["E06D",0x8DE9],
+ ["B8F7",0x8DEA],
+ ["E072",0x8DEB],
+ ["E069",0x8DEC],
+ ["E06B",0x8DEE],
+ ["B8F4",0x8DEF],
+ ["E067",0x8DF0],
+ ["E06A",0x8DF1],
+ ["E071",0x8DF2],
+ ["B8F5",0x8DF3],
+ ["E073",0x8DF4],
+ ["B8F6",0x8DFA],
+ ["BBB1",0x8DFC],
+ ["E45B",0x8DFD],
+ ["E461",0x8DFE],
+ ["E459",0x8DFF],
+ ["E462",0x8E00],
+ ["9FF3",0x8E01],
+ ["E458",0x8E02],
+ ["E45D",0x8E03],
+ ["E463",0x8E04],
+ ["E460",0x8E05],
+ ["E45F",0x8E06],
+ ["E45E",0x8E07],
+ ["E457",0x8E09],
+ ["E45C",0x8E0A],
+ ["E45A",0x8E0D],
+ ["9DBF",0x8E0E],
+ ["BDF1",0x8E0F],
+ ["BDEE",0x8E10],
+ ["E7FB",0x8E11],
+ ["E841",0x8E12],
+ ["E843",0x8E13],
+ ["E840",0x8E14],
+ ["E7F8",0x8E15],
+ ["E7FA",0x8E16],
+ ["E845",0x8E17],
+ ["E842",0x8E18],
+ ["E7FC",0x8E19],
+ ["E846",0x8E1A],
+ ["E7F9",0x8E1B],
+ ["E844",0x8E1C],
+ ["BDEF",0x8E1D],
+ ["BDF5",0x8E1E],
+ ["BDF3",0x8E1F],
+ ["E7F3",0x8E20],
+ ["BDF4",0x8E21],
+ ["BDF0",0x8E22],
+ ["E7F4",0x8E23],
+ ["E7F6",0x8E24],
+ ["E7F5",0x8E25],
+ ["E7FD",0x8E26],
+ ["E7FE",0x8E27],
+ ["9FF6",0x8E28],
+ ["BDF2",0x8E29],
+ ["95C8",0x8E2A],
+ ["BDED",0x8E2B],
+ ["9E5A",0x8E2D],
+ ["E7F7",0x8E2E],
+ ["EBC6",0x8E30],
+ ["BFE2",0x8E31],
+ ["EBBD",0x8E33],
+ ["BFE3",0x8E34],
+ ["BFE6",0x8E35],
+ ["EBC2",0x8E36],
+ ["EBBF",0x8E38],
+ ["BFE5",0x8E39],
+ ["99E3",0x8E3A],
+ ["EBC3",0x8E3C],
+ ["EBC4",0x8E3D],
+ ["EBBE",0x8E3E],
+ ["EBC7",0x8E3F],
+ ["EBC0",0x8E40],
+ ["EBC5",0x8E41],
+ ["BFE4",0x8E42],
+ ["BFE1",0x8E44],
+ ["EBC1",0x8E45],
+ ["8A4A",0x8E46],
+ ["EEBF",0x8E47],
+ ["C1D0",0x8E48],
+ ["C1CE",0x8E49],
+ ["C1D1",0x8E4A],
+ ["C1CF",0x8E4B],
+ ["EEBE",0x8E4C],
+ ["EEBB",0x8E4D],
+ ["EEBA",0x8E4E],
+ ["9FF1",0x8E4F],
+ ["EEBD",0x8E50],
+ ["EEBC",0x8E53],
+ ["F145",0x8E54],
+ ["C2DE",0x8E55],
+ ["F0FB",0x8E56],
+ ["F0FA",0x8E57],
+ ["C2D9",0x8E59],
+ ["F141",0x8E5A],
+ ["F140",0x8E5B],
+ ["F0F7",0x8E5C],
+ ["F143",0x8E5D],
+ ["F0FC",0x8E5E],
+ ["C2DD",0x8E5F],
+ ["F0F9",0x8E60],
+ ["F142",0x8E61],
+ ["F0F8",0x8E62],
+ ["C2DA",0x8E63],
+ ["C2DC",0x8E64],
+ ["F0FD",0x8E65],
+ ["C2DB",0x8E66],
+ ["F0FE",0x8E67],
+ ["8AA7",0x8E68],
+ ["F144",0x8E69],
+ ["F352",0x8E6A],
+ ["C3DE",0x8E6C],
+ ["F34F",0x8E6D],
+ ["F353",0x8E6F],
+ ["99E6",0x8E71],
+ ["C3DB",0x8E72],
+ ["F351",0x8E73],
+ ["C3E0",0x8E74],
+ ["9FF7",0x8E75],
+ ["C3DD",0x8E76],
+ ["9FED",0x8E77],
+ ["F350",0x8E78],
+ ["C3DF",0x8E7A],
+ ["F354",0x8E7B],
+ ["C3DA",0x8E7C],
+ ["8A5C",0x8E7E],
+ ["9DAE",0x8E80],
+ ["C4BC",0x8E81],
+ ["C4BE",0x8E82],
+ ["F4D9",0x8E84],
+ ["C4BD",0x8E85],
+ ["F4D7",0x8E86],
+ ["C3DC",0x8E87],
+ ["F4D8",0x8E88],
+ ["C4BB",0x8E89],
+ ["C543",0x8E8A],
+ ["C545",0x8E8B],
+ ["F656",0x8E8C],
+ ["C544",0x8E8D],
+ ["F655",0x8E8E],
+ ["F761",0x8E90],
+ ["C5AD",0x8E91],
+ ["F760",0x8E92],
+ ["C5AE",0x8E93],
+ ["F75E",0x8E94],
+ ["F75D",0x8E95],
+ ["F762",0x8E96],
+ ["F763",0x8E97],
+ ["F846",0x8E98],
+ ["F75F",0x8E9A],
+ ["F8C6",0x8E9D],
+ ["F8C3",0x8E9E],
+ ["F8C4",0x8E9F],
+ ["F8C5",0x8EA0],
+ ["C65C",0x8EA1],
+ ["F951",0x8EA3],
+ ["F950",0x8EA4],
+ ["F94F",0x8EA5],
+ ["F970",0x8EA6],
+ ["95C9",0x8EA7],
+ ["F9BE",0x8EA8],
+ ["F9AB",0x8EA9],
+ ["C66E",0x8EAA],
+ ["A8AD",0x8EAB],
+ ["B060",0x8EAC],
+ ["9048",0x8EAD],
+ ["99E8",0x8EB0],
+ ["B8FA",0x8EB2],
+ ["9049",0x8EB6],
+ ["8CBA",0x8EB9],
+ ["BDF6",0x8EBA],
+ ["90B1",0x8EBC],
+ ["EBC8",0x8EBD],
+ ["C2DF",0x8EC0],
+ ["F355",0x8EC2],
+ ["904A",0x8EC3],
+ ["F9AC",0x8EC9],
+ ["A8AE",0x8ECA],
+ ["AAEE",0x8ECB],
+ ["AD79",0x8ECC],
+ ["AD78",0x8ECD],
+ ["99EA",0x8ECE],
+ ["B063",0x8ECF],
+ ["D3E8",0x8ED1],
+ ["B061",0x8ED2],
+ ["D3E9",0x8ED3],
+ ["B062",0x8ED4],
+ ["D7DF",0x8ED7],
+ ["D7DB",0x8ED8],
+ ["9BD1",0x8EDA],
+ ["B36D",0x8EDB],
+ ["D7DE",0x8EDC],
+ ["D7DD",0x8EDD],
+ ["D7DC",0x8EDE],
+ ["B36E",0x8EDF],
+ ["D7E0",0x8EE0],
+ ["D7E1",0x8EE1],
+ ["99EB",0x8EE2],
+ ["99EC",0x8EE4],
+ ["DC43",0x8EE5],
+ ["DC41",0x8EE6],
+ ["DC45",0x8EE7],
+ ["DC46",0x8EE8],
+ ["DC4C",0x8EE9],
+ ["DC48",0x8EEB],
+ ["DC4A",0x8EEC],
+ ["99ED",0x8EED],
+ ["DC42",0x8EEE],
+ ["DBFC",0x8EEF],
+ ["DC49",0x8EF1],
+ ["99EE",0x8EF2],
+ ["DC4B",0x8EF4],
+ ["DC44",0x8EF5],
+ ["DC47",0x8EF6],
+ ["DBFD",0x8EF7],
+ ["B662",0x8EF8],
+ ["DC40",0x8EF9],
+ ["DBFE",0x8EFA],
+ ["B661",0x8EFB],
+ ["B663",0x8EFC],
+ ["B8FD",0x8EFE],
+ ["E075",0x8EFF],
+ ["E077",0x8F00],
+ ["E076",0x8F01],
+ ["E07B",0x8F02],
+ ["B8FB",0x8F03],
+ ["E078",0x8F05],
+ ["E074",0x8F06],
+ ["E079",0x8F07],
+ ["E07A",0x8F08],
+ ["B8FC",0x8F09],
+ ["B8FE",0x8F0A],
+ ["E07C",0x8F0B],
+ ["E467",0x8F0D],
+ ["E466",0x8F0E],
+ ["E464",0x8F10],
+ ["E465",0x8F11],
+ ["BBB3",0x8F12],
+ ["BBB5",0x8F13],
+ ["BBB2",0x8F14],
+ ["BBB4",0x8F15],
+ ["E84D",0x8F16],
+ ["E84E",0x8F17],
+ ["E849",0x8F18],
+ ["904C",0x8F19],
+ ["E84A",0x8F1A],
+ ["BDF8",0x8F1B],
+ ["BDFD",0x8F1C],
+ ["BDF7",0x8F1D],
+ ["BDFE",0x8F1E],
+ ["BDF9",0x8F1F],
+ ["E84B",0x8F20],
+ ["E84C",0x8F23],
+ ["E848",0x8F24],
+ ["BE40",0x8F25],
+ ["BDFB",0x8F26],
+ ["BDFA",0x8F29],
+ ["BDFC",0x8F2A],
+ ["E847",0x8F2C],
+ ["904D",0x8F2D],
+ ["EBCA",0x8F2E],
+ ["BFE8",0x8F2F],
+ ["95CB",0x8F30],
+ ["EBCC",0x8F32],
+ ["BFEA",0x8F33],
+ ["EBCF",0x8F34],
+ ["EBCB",0x8F35],
+ ["EBC9",0x8F36],
+ ["EBCE",0x8F37],
+ ["BFE9",0x8F38],
+ ["EBCD",0x8F39],
+ ["BFE7",0x8F3B],
+ ["C1D3",0x8F3E],
+ ["C1D6",0x8F3F],
+ ["EEC1",0x8F40],
+ ["97E2",0x8F41],
+ ["C1D4",0x8F42],
+ ["EEC0",0x8F43],
+ ["C1D2",0x8F44],
+ ["C1D5",0x8F45],
+ ["F146",0x8F46],
+ ["F147",0x8F47],
+ ["F148",0x8F48],
+ ["C2E0",0x8F49],
+ ["95CC",0x8F4A],
+ ["F149",0x8F4B],
+ ["C2E1",0x8F4D],
+ ["C3E2",0x8F4E],
+ ["F358",0x8F4F],
+ ["F359",0x8F50],
+ ["F357",0x8F51],
+ ["F356",0x8F52],
+ ["F35A",0x8F53],
+ ["C3E1",0x8F54],
+ ["F4DD",0x8F55],
+ ["F4DB",0x8F56],
+ ["F4DC",0x8F57],
+ ["F4DE",0x8F58],
+ ["F4DA",0x8F59],
+ ["F4DF",0x8F5A],
+ ["F658",0x8F5B],
+ ["9F78",0x8F5C],
+ ["F659",0x8F5D],
+ ["F657",0x8F5E],
+ ["C546",0x8F5F],
+ ["F764",0x8F60],
+ ["C5AF",0x8F61],
+ ["F765",0x8F62],
+ ["F848",0x8F63],
+ ["F847",0x8F64],
+ ["897C",0x8F66],
+ ["897D",0x8F67],
+ ["897E",0x8F6E],
+ ["995D",0x8F93],
+ ["A8AF",0x8F9B],
+ ["B664",0x8F9C],
+ ["B940",0x8F9F],
+ ["9B5A",0x8FA0],
+ ["BBB6",0x8FA3],
+ ["9050",0x8FA5],
+ ["BFEC",0x8FA6],
+ ["8C4F",0x8FA7],
+ ["BFEB",0x8FA8],
+ ["C3E3",0x8FAD],
+ ["C47C",0x8FAE],
+ ["C547",0x8FAF],
+ ["A8B0",0x8FB0],
+ ["B064",0x8FB1],
+ ["B941",0x8FB2],
+ ["9054",0x8FB3],
+ ["F35B",0x8FB4],
+ ["C6D6",0x8FB5],
+ ["9AA8",0x8FB6],
+ ["99EF",0x8FB7],
+ ["FEEB",0x8FB8],
+ ["9DA3",0x8FB9],
+ ["9DA1",0x8FBA],
+ ["9943",0x8FBB],
+ ["9945",0x8FBC],
+ ["9D7D",0x8FBE],
+ ["CBA6",0x8FBF],
+ ["99F0",0x8FC1],
+ ["A8B1",0x8FC2],
+ ["A8B4",0x8FC4],
+ ["A8B3",0x8FC5],
+ ["A8B2",0x8FC6],
+ ["CBA5",0x8FC9],
+ ["99F1",0x8FCA],
+ ["CDCD",0x8FCB],
+ ["99F2",0x8FCC],
+ ["CDCF",0x8FCD],
+ ["AAEF",0x8FCE],
+ ["8CBC",0x8FCF],
+ ["9D60",0x8FD0],
+ ["AAF1",0x8FD1],
+ ["CDCC",0x8FD2],
+ ["CDCE",0x8FD3],
+ ["AAF0",0x8FD4],
+ ["CDD1",0x8FD5],
+ ["CDD0",0x8FD6],
+ ["CDD2",0x8FD7],
+ ["A0A3",0x8FDA],
+ ["D0B6",0x8FE0],
+ ["D0B4",0x8FE1],
+ ["AD7C",0x8FE2],
+ ["D0B3",0x8FE3],
+ ["ADA3",0x8FE4],
+ ["AD7E",0x8FE5],
+ ["AD7B",0x8FE6],
+ ["ADA4",0x8FE8],
+ ["AD7D",0x8FEA],
+ ["ADA2",0x8FEB],
+ ["ADA1",0x8FED],
+ ["D0B5",0x8FEE],
+ ["AD7A",0x8FF0],
+ ["B06A",0x8FF4],
+ ["D3EB",0x8FF5],
+ ["D3F1",0x8FF6],
+ ["B067",0x8FF7],
+ ["B06E",0x8FF8],
+ ["905B",0x8FF9],
+ ["B069",0x8FFA],
+ ["D3EE",0x8FFB],
+ ["D3F0",0x8FFC],
+ ["B06C",0x8FFD],
+ ["D3EA",0x8FFE],
+ ["D3ED",0x8FFF],
+ ["B068",0x9000],
+ ["B065",0x9001],
+ ["D3EC",0x9002],
+ ["B06B",0x9003],
+ ["D3EF",0x9004],
+ ["B06D",0x9005],
+ ["B066",0x9006],
+ ["9EDB",0x9008],
+ ["D7E3",0x900B],
+ ["D7E6",0x900C],
+ ["B370",0x900D],
+ ["B37A",0x900F],
+ ["B376",0x9010],
+ ["D7E4",0x9011],
+ ["9D79",0x9012],
+ ["B37E",0x9014],
+ ["B377",0x9015],
+ ["B37C",0x9016],
+ ["B372",0x9017],
+ ["B36F",0x9019],
+ ["B371",0x901A],
+ ["B37D",0x901B],
+ ["D7E5",0x901C],
+ ["B375",0x901D],
+ ["B378",0x901E],
+ ["B374",0x901F],
+ ["B379",0x9020],
+ ["D7E7",0x9021],
+ ["B37B",0x9022],
+ ["B373",0x9023],
+ ["D7E2",0x9024],
+ ["DC4D",0x902D],
+ ["B665",0x902E],
+ ["DC4F",0x902F],
+ ["B667",0x9031],
+ ["B669",0x9032],
+ ["99F3",0x9033],
+ ["DC4E",0x9034],
+ ["B666",0x9035],
+ ["B66A",0x9036],
+ ["9062",0x9037],
+ ["B668",0x9038],
+ ["B947",0x903C],
+ ["E0A3",0x903D],
+ ["B94F",0x903E],
+ ["E07E",0x903F],
+ ["B950",0x9041],
+ ["B945",0x9042],
+ ["E0A1",0x9044],
+ ["B94A",0x9047],
+ ["E0A2",0x9049],
+ ["B943",0x904A],
+ ["B942",0x904B],
+ ["9F55",0x904C],
+ ["B94D",0x904D],
+ ["B94C",0x904E],
+ ["B94B",0x904F],
+ ["B949",0x9050],
+ ["B94E",0x9051],
+ ["E07D",0x9052],
+ ["B944",0x9053],
+ ["B946",0x9054],
+ ["B948",0x9055],
+ ["9BF9",0x9056],
+ ["BBB8",0x9058],
+ ["BBBB",0x9059],
+ ["BBBF",0x905B],
+ ["BBB9",0x905C],
+ ["BBBE",0x905D],
+ ["BBBC",0x905E],
+ ["BBB7",0x9060],
+ ["9065",0x9061],
+ ["BBBD",0x9062],
+ ["BBBA",0x9063],
+ ["96E0",0x9064],
+ ["E852",0x9067],
+ ["BE43",0x9068],
+ ["BE41",0x9069],
+ ["E853",0x906B],
+ ["98BE",0x906C],
+ ["BE44",0x906D],
+ ["BE42",0x906E],
+ ["E851",0x906F],
+ ["E850",0x9070],
+ ["BFF0",0x9072],
+ ["E84F",0x9073],
+ ["BFEE",0x9074],
+ ["BFED",0x9075],
+ ["EBD0",0x9076],
+ ["BE45",0x9077],
+ ["BFEF",0x9078],
+ ["EBD1",0x9079],
+ ["BFF2",0x907A],
+ ["EBD2",0x907B],
+ ["BFF1",0x907C],
+ ["C1D8",0x907D],
+ ["EEC3",0x907E],
+ ["C1D7",0x907F],
+ ["C1DC",0x9080],
+ ["C1DA",0x9081],
+ ["C1DB",0x9082],
+ ["C2E3",0x9083],
+ ["C1D9",0x9084],
+ ["EEC2",0x9085],
+ ["EBD3",0x9086],
+ ["C2E2",0x9087],
+ ["C2E4",0x9088],
+ ["C3E4",0x908A],
+ ["C3E5",0x908B],
+ ["F4E0",0x908D],
+ ["C5DE",0x908F],
+ ["C5DD",0x9090],
+ ["A8B6",0x9091],
+ ["CA55",0x9094],
+ ["B06F",0x9095],
+ ["CA52",0x9097],
+ ["CA53",0x9098],
+ ["CA51",0x9099],
+ ["CA54",0x909B],
+ ["CBAA",0x909E],
+ ["CBA7",0x909F],
+ ["CBAC",0x90A0],
+ ["CBA8",0x90A1],
+ ["A8B7",0x90A2],
+ ["A8BA",0x90A3],
+ ["CBA9",0x90A5],
+ ["A8B9",0x90A6],
+ ["CBAB",0x90A7],
+ ["9068",0x90A8],
+ ["A8B8",0x90AA],
+ ["906C",0x90AE],
+ ["CDD5",0x90AF],
+ ["CDD7",0x90B0],
+ ["AAF4",0x90B1],
+ ["CDD3",0x90B2],
+ ["CDD6",0x90B3],
+ ["CDD4",0x90B4],
+ ["AAF2",0x90B5],
+ ["AAF5",0x90B6],
+ ["AAF3",0x90B8],
+ ["95D8",0x90BB],
+ ["D0B8",0x90BD],
+ ["D0BC",0x90BE],
+ ["D0B9",0x90BF],
+ ["ADA7",0x90C1],
+ ["ADA8",0x90C3],
+ ["906A",0x90C4],
+ ["D0BB",0x90C5],
+ ["D0BD",0x90C7],
+ ["D0BF",0x90C8],
+ ["ADA5",0x90CA],
+ ["D0BE",0x90CB],
+ ["ADA6",0x90CE],
+ ["D7EE",0x90D4],
+ ["D0BA",0x90D5],
+ ["D3F2",0x90D6],
+ ["D3FB",0x90D7],
+ ["D3F9",0x90D8],
+ ["D3F4",0x90D9],
+ ["D3F5",0x90DA],
+ ["D3FA",0x90DB],
+ ["D3FC",0x90DC],
+ ["B071",0x90DD],
+ ["D3F7",0x90DF],
+ ["D3F3",0x90E0],
+ ["B070",0x90E1],
+ ["B072",0x90E2],
+ ["D3F6",0x90E3],
+ ["D3FD",0x90E4],
+ ["D3F8",0x90E5],
+ ["B3A1",0x90E8],
+ ["D7F1",0x90E9],
+ ["D7E9",0x90EA],
+ ["D7EF",0x90EB],
+ ["D7F0",0x90EC],
+ ["B3A2",0x90ED],
+ ["D7E8",0x90EF],
+ ["D7EA",0x90F0],
+ ["D0B7",0x90F1],
+ ["D7EC",0x90F2],
+ ["D7ED",0x90F3],
+ ["D7EB",0x90F4],
+ ["B66C",0x90F5],
+ ["DC56",0x90F9],
+ ["EBD4",0x90FA],
+ ["DC57",0x90FB],
+ ["DC54",0x90FC],
+ ["B3A3",0x90FD],
+ ["B66E",0x90FE],
+ ["DC53",0x90FF],
+ ["DC59",0x9100],
+ ["DC58",0x9101],
+ ["B66B",0x9102],
+ ["DC5C",0x9103],
+ ["DC52",0x9104],
+ ["DC5B",0x9105],
+ ["DC50",0x9106],
+ ["DC5A",0x9107],
+ ["DC55",0x9108],
+ ["B66D",0x9109],
+ ["E0AA",0x910B],
+ ["E0A5",0x910D],
+ ["E0AB",0x910E],
+ ["E0A6",0x910F],
+ ["E0A4",0x9110],
+ ["E0A7",0x9111],
+ ["B951",0x9112],
+ ["E0A9",0x9114],
+ ["E0A8",0x9116],
+ ["B952",0x9117],
+ ["BBC1",0x9118],
+ ["BBC0",0x9119],
+ ["E46E",0x911A],
+ ["E471",0x911B],
+ ["E469",0x911C],
+ ["E46D",0x911D],
+ ["BBC2",0x911E],
+ ["E46C",0x911F],
+ ["E46A",0x9120],
+ ["E470",0x9121],
+ ["E46B",0x9122],
+ ["E468",0x9123],
+ ["E46F",0x9124],
+ ["E859",0x9126],
+ ["BE48",0x9127],
+ ["F14A",0x9128],
+ ["E856",0x9129],
+ ["E857",0x912A],
+ ["E855",0x912B],
+ ["DC51",0x912C],
+ ["BE47",0x912D],
+ ["E85A",0x912E],
+ ["E854",0x912F],
+ ["BE46",0x9130],
+ ["BE49",0x9131],
+ ["E858",0x9132],
+ ["EBD5",0x9133],
+ ["BFF3",0x9134],
+ ["EBD6",0x9135],
+ ["EBD7",0x9136],
+ ["EEC4",0x9138],
+ ["C1DD",0x9139],
+ ["F14B",0x913A],
+ ["F14C",0x913B],
+ ["F14D",0x913E],
+ ["F35D",0x913F],
+ ["F35C",0x9140],
+ ["F4E2",0x9141],
+ ["F4E1",0x9143],
+ ["F65B",0x9144],
+ ["F65C",0x9145],
+ ["F65A",0x9146],
+ ["F766",0x9147],
+ ["C5B0",0x9148],
+ ["A8BB",0x9149],
+ ["ADAA",0x914A],
+ ["ADA9",0x914B],
+ ["B075",0x914C],
+ ["B074",0x914D],
+ ["D440",0x914E],
+ ["D441",0x914F],
+ ["D3FE",0x9150],
+ ["9FB2",0x9151],
+ ["B073",0x9152],
+ ["D7F5",0x9153],
+ ["D7F6",0x9155],
+ ["D7F2",0x9156],
+ ["B3A4",0x9157],
+ ["D7F3",0x9158],
+ ["9FAE",0x9159],
+ ["D7F4",0x915A],
+ ["9FB0",0x915C],
+ ["89AD",0x915E],
+ ["DC5F",0x915F],
+ ["DC61",0x9160],
+ ["DC5D",0x9161],
+ ["DC60",0x9162],
+ ["B66F",0x9163],
+ ["DC5E",0x9164],
+ ["B670",0x9165],
+ ["906E",0x9167],
+ ["DD73",0x9168],
+ ["B955",0x9169],
+ ["B954",0x916A],
+ ["B953",0x916C],
+ ["E0AC",0x916E],
+ ["E0AD",0x916F],
+ ["9E71",0x9170],
+ ["E473",0x9172],
+ ["E475",0x9173],
+ ["BBC6",0x9174],
+ ["BBC3",0x9175],
+ ["9E4A",0x9176],
+ ["BBC5",0x9177],
+ ["BBC4",0x9178],
+ ["E474",0x9179],
+ ["E472",0x917A],
+ ["9FDC",0x917C],
+ ["E861",0x9180],
+ ["E85E",0x9181],
+ ["E85F",0x9182],
+ ["BE4D",0x9183],
+ ["E860",0x9184],
+ ["E85B",0x9185],
+ ["E85C",0x9186],
+ ["BE4A",0x9187],
+ ["BE4B",0x9189],
+ ["E85D",0x918A],
+ ["BE4C",0x918B],
+ ["89AB",0x918C],
+ ["EBDB",0x918D],
+ ["9FB8",0x918E],
+ ["EBDC",0x918F],
+ ["EBD9",0x9190],
+ ["EBDA",0x9191],
+ ["BFF4",0x9192],
+ ["EBD8",0x9193],
+ ["EEC8",0x9199],
+ ["EEC5",0x919A],
+ ["EEC7",0x919B],
+ ["C1E0",0x919C],
+ ["EECB",0x919D],
+ ["C1DF",0x919E],
+ ["EEC9",0x919F],
+ ["EECC",0x91A0],
+ ["EECA",0x91A1],
+ ["EEC6",0x91A2],
+ ["C1DE",0x91A3],
+ ["F14F",0x91A5],
+ ["F150",0x91A7],
+ ["F14E",0x91A8],
+ ["9070",0x91A9],
+ ["F152",0x91AA],
+ ["C2E5",0x91AB],
+ ["C2E6",0x91AC],
+ ["F35F",0x91AD],
+ ["C3E7",0x91AE],
+ ["F151",0x91AF],
+ ["F35E",0x91B0],
+ ["C3E6",0x91B1],
+ ["F4E5",0x91B2],
+ ["F4E6",0x91B3],
+ ["C4BF",0x91B4],
+ ["F4E4",0x91B5],
+ ["8B63",0x91B6],
+ ["F4E3",0x91B7],
+ ["F65D",0x91B9],
+ ["C548",0x91BA],
+ ["95DC",0x91BB],
+ ["F849",0x91BC],
+ ["F8C8",0x91BD],
+ ["F8C7",0x91BE],
+ ["C643",0x91C0],
+ ["C65D",0x91C1],
+ ["F8C9",0x91C2],
+ ["F971",0x91C3],
+ ["9071",0x91C4],
+ ["C66F",0x91C5],
+ ["A8BC",0x91C6],
+ ["AAF6",0x91C7],
+ ["B956",0x91C9],
+ ["C4C0",0x91CB],
+ ["A8BD",0x91CC],
+ ["ADAB",0x91CD],
+ ["B3A5",0x91CE],
+ ["B671",0x91CF],
+ ["C2E7",0x91D0],
+ ["AAF7",0x91D1],
+ ["D0C1",0x91D3],
+ ["D0C0",0x91D4],
+ ["D442",0x91D5],
+ ["FC5E",0x91D6],
+ ["B078",0x91D7],
+ ["B076",0x91D8],
+ ["B07A",0x91D9],
+ ["D444",0x91DA],
+ ["B079",0x91DC],
+ ["B077",0x91DD],
+ ["8949",0x91DF],
+ ["D443",0x91E2],
+ ["B3A8",0x91E3],
+ ["D7FC",0x91E4],
+ ["965B",0x91E5],
+ ["B3A7",0x91E6],
+ ["B3A9",0x91E7],
+ ["D842",0x91E8],
+ ["B3AB",0x91E9],
+ ["D7FE",0x91EA],
+ ["D840",0x91EB],
+ ["D7F7",0x91EC],
+ ["B3AA",0x91ED],
+ ["D843",0x91EE],
+ ["D7F9",0x91F1],
+ ["D7FA",0x91F3],
+ ["D7F8",0x91F4],
+ ["B3A6",0x91F5],
+ ["8C50",0x91F6],
+ ["D841",0x91F7],
+ ["D7FB",0x91F8],
+ ["D7FD",0x91F9],
+ ["94A6",0x91FA],
+ ["DC6D",0x91FD],
+ ["8FD5",0x91FE],
+ ["DC6C",0x91FF],
+ ["DC6A",0x9200],
+ ["DC62",0x9201],
+ ["DC71",0x9202],
+ ["DC65",0x9203],
+ ["DC6F",0x9204],
+ ["DC76",0x9205],
+ ["DC6E",0x9206],
+ ["B679",0x9207],
+ ["9E73",0x9208],
+ ["B675",0x9209],
+ ["DC63",0x920A],
+ ["DC69",0x920C],
+ ["B677",0x920D],
+ ["9075",0x920E],
+ ["DC68",0x920F],
+ ["B678",0x9210],
+ ["B67A",0x9211],
+ ["DC6B",0x9212],
+ ["99F7",0x9213],
+ ["B672",0x9214],
+ ["B673",0x9215],
+ ["DC77",0x9216],
+ ["DC75",0x9217],
+ ["DC74",0x9219],
+ ["DC66",0x921A],
+ ["DC72",0x921C],
+ ["B676",0x921E],
+ ["8CBF",0x9221],
+ ["B674",0x9223],
+ ["DC73",0x9224],
+ ["DC64",0x9225],
+ ["DC67",0x9226],
+ ["DC70",0x9227],
+ ["99F9",0x9228],
+ ["9663",0x922A],
+ ["95B9",0x922B],
+ ["E4BA",0x922D],
+ ["E0B7",0x922E],
+ ["E0B0",0x9230],
+ ["E0C3",0x9231],
+ ["E0CC",0x9232],
+ ["E0B3",0x9233],
+ ["B961",0x9234],
+ ["94D4",0x9235],
+ ["E0C0",0x9236],
+ ["B957",0x9237],
+ ["B959",0x9238],
+ ["B965",0x9239],
+ ["E0B1",0x923A],
+ ["FCFA",0x923C],
+ ["B95A",0x923D],
+ ["B95C",0x923E],
+ ["B966",0x923F],
+ ["B95B",0x9240],
+ ["9077",0x9241],
+ ["90AB",0x9244],
+ ["B964",0x9245],
+ ["E0B9",0x9246],
+ ["E0AE",0x9248],
+ ["B962",0x9249],
+ ["E0B8",0x924A],
+ ["B95E",0x924B],
+ ["E0CA",0x924C],
+ ["B963",0x924D],
+ ["E0C8",0x924E],
+ ["E0BC",0x924F],
+ ["E0C6",0x9250],
+ ["B960",0x9251],
+ ["E0AF",0x9252],
+ ["E0C9",0x9253],
+ ["E0C4",0x9254],
+ ["9D4D",0x9255],
+ ["E0CB",0x9256],
+ ["B958",0x9257],
+ ["99FA",0x9258],
+ ["B967",0x925A],
+ ["B95D",0x925B],
+ ["92E3",0x925D],
+ ["E0B5",0x925E],
+ ["97BB",0x925F],
+ ["E0BD",0x9260],
+ ["E0C1",0x9261],
+ ["9078",0x9262],
+ ["E0C5",0x9263],
+ ["B95F",0x9264],
+ ["E0B4",0x9265],
+ ["E0B2",0x9266],
+ ["E0BE",0x9267],
+ ["99FB",0x926B],
+ ["E0BB",0x926C],
+ ["E0BA",0x926D],
+ ["97E0",0x926E],
+ ["E0BF",0x926F],
+ ["E0C2",0x9270],
+ ["E0C7",0x9272],
+ ["E478",0x9276],
+ ["96DC",0x9277],
+ ["BBC7",0x9278],
+ ["E4A4",0x9279],
+ ["E47A",0x927A],
+ ["BBCC",0x927B],
+ ["BBD0",0x927C],
+ ["E4AD",0x927D],
+ ["E4B5",0x927E],
+ ["E4A6",0x927F],
+ ["BBC8",0x9280],
+ ["9CA8",0x9281],
+ ["E4AA",0x9282],
+ ["E0B6",0x9283],
+ ["9772",0x9284],
+ ["BBC9",0x9285],
+ ["E4B1",0x9286],
+ ["E4B6",0x9287],
+ ["E4AE",0x9288],
+ ["9440",0x9289],
+ ["E4B0",0x928A],
+ ["E4B9",0x928B],
+ ["E4B2",0x928C],
+ ["E47E",0x928D],
+ ["E4A9",0x928E],
+ ["92F2",0x928F],
+ ["BBD1",0x9291],
+ ["BBCD",0x9293],
+ ["E47C",0x9294],
+ ["E4AB",0x9295],
+ ["BBCB",0x9296],
+ ["E4A5",0x9297],
+ ["BBCA",0x9298],
+ ["E4B3",0x9299],
+ ["E4A2",0x929A],
+ ["E479",0x929B],
+ ["BBCE",0x929C],
+ ["E4B8",0x929D],
+ ["E47B",0x92A0],
+ ["E4AF",0x92A1],
+ ["E4AC",0x92A2],
+ ["E4A7",0x92A3],
+ ["E477",0x92A4],
+ ["E476",0x92A5],
+ ["E4A1",0x92A6],
+ ["E4B4",0x92A7],
+ ["BBCF",0x92A8],
+ ["E4B7",0x92A9],
+ ["E47D",0x92AA],
+ ["E4A3",0x92AB],
+ ["BE52",0x92AC],
+ ["99FD",0x92AE],
+ ["99FC",0x92B1],
+ ["BE5A",0x92B2],
+ ["BE55",0x92B3],
+ ["E8A4",0x92B4],
+ ["E8A1",0x92B5],
+ ["E867",0x92B6],
+ ["BE50",0x92B7],
+ ["F9D7",0x92B9],
+ ["964A",0x92BA],
+ ["BE4F",0x92BB],
+ ["BE56",0x92BC],
+ ["96D8",0x92BE],
+ ["99FE",0x92BF],
+ ["E865",0x92C0],
+ ["BE54",0x92C1],
+ ["E871",0x92C2],
+ ["E863",0x92C3],
+ ["E864",0x92C4],
+ ["BE4E",0x92C5],
+ ["E8A3",0x92C6],
+ ["BE58",0x92C7],
+ ["E874",0x92C8],
+ ["E879",0x92C9],
+ ["E873",0x92CA],
+ ["EBEE",0x92CB],
+ ["E86F",0x92CC],
+ ["E877",0x92CD],
+ ["E875",0x92CE],
+ ["E868",0x92CF],
+ ["E862",0x92D0],
+ ["E87D",0x92D1],
+ ["BE57",0x92D2],
+ ["E87E",0x92D3],
+ ["904B",0x92D4],
+ ["E878",0x92D5],
+ ["E86D",0x92D7],
+ ["E86B",0x92D8],
+ ["E866",0x92D9],
+ ["FA41",0x92DB],
+ ["E86E",0x92DD],
+ ["E87B",0x92DE],
+ ["E86A",0x92DF],
+ ["E87A",0x92E0],
+ ["E8A2",0x92E1],
+ ["9A40",0x92E3],
+ ["BE53",0x92E4],
+ ["975B",0x92E5],
+ ["E876",0x92E6],
+ ["E87C",0x92E7],
+ ["E872",0x92E8],
+ ["E86C",0x92E9],
+ ["BE51",0x92EA],
+ ["9A41",0x92EB],
+ ["91DD",0x92EC],
+ ["E4A8",0x92EE],
+ ["E870",0x92EF],
+ ["BE59",0x92F0],
+ ["E869",0x92F1],
+ ["93FC",0x92F2],
+ ["9A42",0x92F3],
+ ["9A43",0x92F4],
+ ["9659",0x92F6],
+ ["EBF4",0x92F7],
+ ["BFF7",0x92F8],
+ ["EBF3",0x92F9],
+ ["EBF0",0x92FA],
+ ["EC44",0x92FB],
+ ["BFFB",0x92FC],
+ ["9A44",0x92FD],
+ ["EC41",0x92FE],
+ ["EBF8",0x92FF],
+ ["EC43",0x9300],
+ ["EBE9",0x9301],
+ ["EBF6",0x9302],
+ ["9051",0x9303],
+ ["BFFD",0x9304],
+ ["EBE1",0x9306],
+ ["94BF",0x9307],
+ ["EBDF",0x9308],
+ ["EC42",0x9309],
+ ["EC40",0x930B],
+ ["EBFE",0x930C],
+ ["EBED",0x930D],
+ ["EBEC",0x930E],
+ ["EBE2",0x930F],
+ ["C040",0x9310],
+ ["EBE8",0x9312],
+ ["EBF2",0x9313],
+ ["EBFD",0x9314],
+ ["C043",0x9315],
+ ["EC45",0x9316],
+ ["C1E8",0x9318],
+ ["C045",0x9319],
+ ["BFFE",0x931A],
+ ["EBE6",0x931B],
+ ["EBEF",0x931D],
+ ["EBDE",0x931E],
+ ["EBE0",0x931F],
+ ["BFF5",0x9320],
+ ["C042",0x9321],
+ ["BFFA",0x9322],
+ ["EBE7",0x9323],
+ ["EBF7",0x9324],
+ ["EBF1",0x9325],
+ ["C041",0x9326],
+ ["EBDD",0x9327],
+ ["C1E3",0x9328],
+ ["EBF9",0x9329],
+ ["EBFC",0x932A],
+ ["BFFC",0x932B],
+ ["90A2",0x932C],
+ ["EBEB",0x932D],
+ ["C044",0x932E],
+ ["BFF9",0x932F],
+ ["9CAB",0x9330],
+ ["9776",0x9331],
+ ["BFF8",0x9333],
+ ["EBF5",0x9334],
+ ["EBFB",0x9335],
+ ["BFF6",0x9336],
+ ["EBE4",0x9338],
+ ["EBFA",0x9339],
+ ["EBE5",0x933C],
+ ["FC55",0x9340],
+ ["FE45",0x9341],
+ ["94A8",0x9342],
+ ["9A45",0x9343],
+ ["FA4B",0x9344],
+ ["9DE1",0x9345],
+ ["EBEA",0x9346],
+ ["EED2",0x9347],
+ ["96D9",0x9348],
+ ["EED7",0x9349],
+ ["C1E5",0x934A],
+ ["C1E7",0x934B],
+ ["EEDD",0x934C],
+ ["C1E1",0x934D],
+ ["EEEC",0x934E],
+ ["EEE3",0x934F],
+ ["EED8",0x9350],
+ ["EED9",0x9351],
+ ["EEE2",0x9352],
+ ["C1EE",0x9354],
+ ["EEE1",0x9355],
+ ["EED1",0x9356],
+ ["EEE0",0x9357],
+ ["EED4",0x9358],
+ ["EEED",0x9359],
+ ["C1ED",0x935A],
+ ["C1EB",0x935B],
+ ["EED5",0x935C],
+ ["EEE8",0x935E],
+ ["9774",0x935F],
+ ["EEDA",0x9360],
+ ["EEE7",0x9361],
+ ["FDF5",0x9362],
+ ["EEE9",0x9363],
+ ["EED0",0x9364],
+ ["C1E6",0x9365],
+ ["92E5",0x9366],
+ ["EEEA",0x9367],
+ ["9645",0x9368],
+ ["91DA",0x9369],
+ ["EEDE",0x936A],
+ ["90A3",0x936B],
+ ["C1EA",0x936C],
+ ["EEDB",0x936D],
+ ["A05F",0x936E],
+ ["C1EC",0x9370],
+ ["EEE4",0x9371],
+ ["90AF",0x9373],
+ ["97BF",0x9374],
+ ["C1E4",0x9375],
+ ["EED6",0x9376],
+ ["EEE5",0x9377],
+ ["914C",0x9378],
+ ["EEDF",0x9379],
+ ["EBE3",0x937A],
+ ["EEE6",0x937B],
+ ["EED3",0x937C],
+ ["967A",0x937D],
+ ["C1E9",0x937E],
+ ["EEEB",0x9380],
+ ["91DE",0x9381],
+ ["C1E2",0x9382],
+ ["EECE",0x9383],
+ ["9A46",0x9384],
+ ["FEB0",0x9385],
+ ["9779",0x9386],
+ ["946C",0x9387],
+ ["F160",0x9388],
+ ["F159",0x9389],
+ ["C2E9",0x938A],
+ ["F154",0x938C],
+ ["F163",0x938D],
+ ["F15B",0x938E],
+ ["EEDC",0x938F],
+ ["9858",0x9390],
+ ["F165",0x9391],
+ ["F155",0x9392],
+ ["C2E8",0x9394],
+ ["F15F",0x9395],
+ ["C2EA",0x9396],
+ ["C2F2",0x9397],
+ ["C2F0",0x9398],
+ ["F161",0x9399],
+ ["C2F1",0x939A],
+ ["F157",0x939B],
+ ["9266",0x939C],
+ ["F158",0x939D],
+ ["F15D",0x939E],
+ ["F162",0x939F],
+ ["93FB",0x93A0],
+ ["EECD",0x93A1],
+ ["C2EB",0x93A2],
+ ["F16A",0x93A3],
+ ["F167",0x93A4],
+ ["F16B",0x93A5],
+ ["F15E",0x93A6],
+ ["F15A",0x93A7],
+ ["F168",0x93A8],
+ ["F36A",0x93A9],
+ ["F15C",0x93AA],
+ ["C2EE",0x93AC],
+ ["9A47",0x93AD],
+ ["C2ED",0x93AE],
+ ["EECF",0x93AF],
+ ["C2EF",0x93B0],
+ ["F164",0x93B1],
+ ["F166",0x93B2],
+ ["C2EC",0x93B3],
+ ["F169",0x93B4],
+ ["F153",0x93B5],
+ ["F156",0x93B7],
+ ["9749",0x93B8],
+ ["9748",0x93BB],
+ ["934A",0x93BD],
+ ["9CE2",0x93BF],
+ ["F373",0x93C0],
+ ["F363",0x93C2],
+ ["C3EB",0x93C3],
+ ["F371",0x93C4],
+ ["9264",0x93C6],
+ ["F361",0x93C7],
+ ["C3EC",0x93C8],
+ ["F36C",0x93CA],
+ ["91DF",0x93CB],
+ ["F368",0x93CC],
+ ["C3F1",0x93CD],
+ ["F372",0x93CE],
+ ["F362",0x93CF],
+ ["F365",0x93D0],
+ ["C3E9",0x93D1],
+ ["F374",0x93D2],
+ ["FB79",0x93D3],
+ ["F36D",0x93D4],
+ ["F370",0x93D5],
+ ["C3EF",0x93D6],
+ ["C3F4",0x93D7],
+ ["C3F2",0x93D8],
+ ["F369",0x93D9],
+ ["F364",0x93DA],
+ ["96D7",0x93DB],
+ ["C3ED",0x93DC],
+ ["C3EE",0x93DD],
+ ["F360",0x93DE],
+ ["C3EA",0x93DF],
+ ["9343",0x93E0],
+ ["C3E8",0x93E1],
+ ["C3F0",0x93E2],
+ ["F36F",0x93E3],
+ ["C3F3",0x93E4],
+ ["F36B",0x93E6],
+ ["F375",0x93E7],
+ ["C3F5",0x93E8],
+ ["F367",0x93EC],
+ ["F36E",0x93EE],
+ ["FDCB",0x93F0],
+ ["FE7A",0x93F1],
+ ["91DB",0x93F3],
+ ["8C6A",0x93F4],
+ ["F4F3",0x93F5],
+ ["F542",0x93F6],
+ ["F4F5",0x93F7],
+ ["F4FC",0x93F8],
+ ["F366",0x93F9],
+ ["F4FA",0x93FA],
+ ["F4E9",0x93FB],
+ ["F540",0x93FC],
+ ["C4C3",0x93FD],
+ ["F4ED",0x93FE],
+ ["F4FE",0x93FF],
+ ["F4F4",0x9400],
+ ["97AF",0x9401],
+ ["C4C2",0x9403],
+ ["95DD",0x9404],
+ ["F544",0x9406],
+ ["F4F6",0x9407],
+ ["9348",0x9408],
+ ["F4FB",0x9409],
+ ["F4FD",0x940A],
+ ["F4E7",0x940B],
+ ["F541",0x940C],
+ ["F4F2",0x940D],
+ ["F4F7",0x940E],
+ ["F4EB",0x940F],
+ ["F4EF",0x9410],
+ ["F543",0x9411],
+ ["F4F9",0x9412],
+ ["F4E8",0x9413],
+ ["F4EC",0x9414],
+ ["F4EE",0x9415],
+ ["F4F8",0x9416],
+ ["9A4B",0x9417],
+ ["C4C1",0x9418],
+ ["F4F1",0x9419],
+ ["FC45",0x941B],
+ ["9A4D",0x941D],
+ ["F4EA",0x9420],
+ ["91BC",0x9424],
+ ["90E2",0x9425],
+ ["90B4",0x9426],
+ ["95E1",0x9427],
+ ["F4F0",0x9428],
+ ["F661",0x9429],
+ ["F666",0x942A],
+ ["C54F",0x942B],
+ ["F668",0x942C],
+ ["9A4E",0x942D],
+ ["C549",0x942E],
+ ["F664",0x9430],
+ ["F66A",0x9431],
+ ["C54E",0x9432],
+ ["C54A",0x9433],
+ ["C54B",0x9435],
+ ["F660",0x9436],
+ ["F667",0x9437],
+ ["C54D",0x9438],
+ ["F665",0x9439],
+ ["C54C",0x943A],
+ ["F65F",0x943B],
+ ["F663",0x943C],
+ ["F662",0x943D],
+ ["9A4F",0x943E],
+ ["F65E",0x943F],
+ ["F669",0x9440],
+ ["FE40",0x9442],
+ ["FE43",0x9443],
+ ["C5B1",0x9444],
+ ["F76D",0x9445],
+ ["F770",0x9446],
+ ["F76C",0x9447],
+ ["F76E",0x9448],
+ ["F76F",0x9449],
+ ["F769",0x944A],
+ ["F76A",0x944B],
+ ["F767",0x944C],
+ ["96DD",0x944D],
+ ["F76B",0x944F],
+ ["F768",0x9450],
+ ["C5B2",0x9451],
+ ["C5B3",0x9452],
+ ["9A51",0x9454],
+ ["F84B",0x9455],
+ ["F84D",0x9457],
+ ["96A7",0x9458],
+ ["90B0",0x945B],
+ ["F84C",0x945D],
+ ["F84E",0x945E],
+ ["C5E0",0x9460],
+ ["F84A",0x9462],
+ ["C5DF",0x9463],
+ ["C5E1",0x9464],
+ ["9C4E",0x9465],
+ ["9443",0x9467],
+ ["F8CB",0x9468],
+ ["F8CC",0x9469],
+ ["C644",0x946A],
+ ["F8CA",0x946B],
+ ["8EBA",0x946C],
+ ["F953",0x946D],
+ ["F952",0x946E],
+ ["F954",0x946F],
+ ["C65F",0x9470],
+ ["F955",0x9471],
+ ["C65E",0x9472],
+ ["F956",0x9473],
+ ["F972",0x9474],
+ ["F975",0x9475],
+ ["F974",0x9476],
+ ["C668",0x9477],
+ ["F973",0x9478],
+ ["9A52",0x9479],
+ ["FCC1",0x947B],
+ ["C672",0x947C],
+ ["C670",0x947D],
+ ["C671",0x947E],
+ ["C677",0x947F],
+ ["F9C0",0x9480],
+ ["F9C1",0x9481],
+ ["F9BF",0x9482],
+ ["F9C9",0x9483],
+ ["8BE9",0x9485],
+ ["9CAF",0x949F],
+ ["8BFD",0x94A2],
+ ["9ABC",0x94C1],
+ ["9AB8",0x94C3],
+ ["9AAE",0x94DC],
+ ["9AA7",0x94F6],
+ ["9A53",0x952D],
+ ["9D74",0x9547],
+ ["AAF8",0x9577],
+ ["8BEA",0x9578],
+ ["D844",0x957A],
+ ["DC78",0x957B],
+ ["E8A5",0x957C],
+ ["F376",0x957D],
+ ["8BEB",0x957F],
+ ["AAF9",0x9580],
+ ["ADAC",0x9582],
+ ["B07B",0x9583],
+ ["90B2",0x9585],
+ ["D845",0x9586],
+ ["D846",0x9588],
+ ["B3AC",0x9589],
+ ["B67D",0x958B],
+ ["DC7A",0x958C],
+ ["DC79",0x958D],
+ ["B6A3",0x958E],
+ ["B67C",0x958F],
+ ["DC7B",0x9590],
+ ["B67E",0x9591],
+ ["B6A2",0x9592],
+ ["B6A1",0x9593],
+ ["B67B",0x9594],
+ ["95E9",0x9596],
+ ["95E8",0x9597],
+ ["B968",0x9598],
+ ["95E6",0x9599],
+ ["E0D0",0x959B],
+ ["E0CE",0x959C],
+ ["E0CF",0x959E],
+ ["E0CD",0x959F],
+ ["90B5",0x95A0],
+ ["BBD2",0x95A1],
+ ["9A54",0x95A2],
+ ["BBD5",0x95A3],
+ ["BBD7",0x95A4],
+ ["BBD6",0x95A5],
+ ["90B3",0x95A6],
+ ["95E7",0x95A7],
+ ["BBD3",0x95A8],
+ ["BBD4",0x95A9],
+ ["8B50",0x95AA],
+ ["E8A7",0x95AB],
+ ["E8A6",0x95AC],
+ ["BE5B",0x95AD],
+ ["E8A8",0x95AE],
+ ["E8A9",0x95B0],
+ ["BE5C",0x95B1],
+ ["EC4D",0x95B5],
+ ["EC4B",0x95B6],
+ ["EEF3",0x95B7],
+ ["EC49",0x95B9],
+ ["EC4A",0x95BA],
+ ["C046",0x95BB],
+ ["EC46",0x95BC],
+ ["EC4E",0x95BD],
+ ["EC48",0x95BE],
+ ["EC4C",0x95BF],
+ ["EEEF",0x95C0],
+ ["EEF1",0x95C3],
+ ["EEF2",0x95C5],
+ ["C1F3",0x95C6],
+ ["EEEE",0x95C7],
+ ["C1F2",0x95C8],
+ ["EEF0",0x95C9],
+ ["C1EF",0x95CA],
+ ["C1F0",0x95CB],
+ ["C1F1",0x95CC],
+ ["EC47",0x95CD],
+ ["C2F5",0x95D0],
+ ["F16E",0x95D1],
+ ["F16C",0x95D2],
+ ["F16D",0x95D3],
+ ["C2F3",0x95D4],
+ ["C2F6",0x95D5],
+ ["C2F4",0x95D6],
+ ["F377",0x95DA],
+ ["F378",0x95DB],
+ ["C3F6",0x95DC],
+ ["F545",0x95DE],
+ ["F547",0x95DF],
+ ["F546",0x95E0],
+ ["C4C4",0x95E1],
+ ["C550",0x95E2],
+ ["F66D",0x95E3],
+ ["F66C",0x95E4],
+ ["F66B",0x95E5],
+ ["8BEC",0x95E8],
+ ["9A56",0x95F4],
+ ["AAFA",0x961C],
+ ["8BFB",0x961D],
+ ["C9AA",0x961E],
+ ["CA58",0x9620],
+ ["A6E9",0x9621],
+ ["CA56",0x9622],
+ ["CA59",0x9623],
+ ["CA57",0x9624],
+ ["CBAE",0x9628],
+ ["A8C1",0x962A],
+ ["A8C2",0x962C],
+ ["CBB0",0x962D],
+ ["A8BF",0x962E],
+ ["CBAF",0x962F],
+ ["CBAD",0x9630],
+ ["A8C0",0x9631],
+ ["A8BE",0x9632],
+ ["9A57",0x9633],
+ ["A0AA",0x9638],
+ ["CDD8",0x9639],
+ ["CDDB",0x963A],
+ ["AAFD",0x963B],
+ ["CDDA",0x963C],
+ ["CDD9",0x963D],
+ ["AAFC",0x963F],
+ ["AAFB",0x9640],
+ ["9FA6",0x9641],
+ ["AB40",0x9642],
+ ["CDDC",0x9643],
+ ["AAFE",0x9644],
+ ["99CC",0x9645],
+ ["D0C6",0x964A],
+ ["ADAE",0x964B],
+ ["ADAF",0x964C],
+ ["ADB0",0x964D],
+ ["D0C7",0x964E],
+ ["D0C3",0x964F],
+ ["ADAD",0x9650],
+ ["D0C4",0x9651],
+ ["D0C5",0x9653],
+ ["D0C2",0x9654],
+ ["9C59",0x9656],
+ ["B0A4",0x9658],
+ ["B0A1",0x965B],
+ ["D445",0x965C],
+ ["B0A2",0x965D],
+ ["B0A5",0x965E],
+ ["D446",0x965F],
+ ["B07E",0x9661],
+ ["B07C",0x9662],
+ ["B07D",0x9663],
+ ["B0A3",0x9664],
+ ["99B5",0x9669],
+ ["B3AD",0x966A],
+ ["D849",0x966B],
+ ["B3B5",0x966C],
+ ["D848",0x966D],
+ ["D84B",0x966F],
+ ["B3B1",0x9670],
+ ["D84A",0x9671],
+ ["B6AB",0x9672],
+ ["B3AF",0x9673],
+ ["B3B2",0x9674],
+ ["B3AE",0x9675],
+ ["B3B3",0x9676],
+ ["B3B4",0x9677],
+ ["B3B0",0x9678],
+ ["90BE",0x967B],
+ ["D847",0x967C],
+ ["B6A7",0x967D],
+ ["DC7D",0x967E],
+ ["DCA3",0x9680],
+ ["9FAF",0x9681],
+ ["DCA2",0x9683],
+ ["B6AC",0x9684],
+ ["B6A8",0x9685],
+ ["B6A9",0x9686],
+ ["DC7C",0x9687],
+ ["DC7E",0x9688],
+ ["DCA1",0x9689],
+ ["B6A4",0x968A],
+ ["B6A6",0x968B],
+ ["B6AA",0x968D],
+ ["B6A5",0x968E],
+ ["95F2",0x968F],
+ ["E0D3",0x9691],
+ ["E0D1",0x9692],
+ ["E0D2",0x9693],
+ ["B96A",0x9694],
+ ["B96B",0x9695],
+ ["90BF",0x9696],
+ ["E0D4",0x9697],
+ ["B969",0x9698],
+ ["BBD8",0x9699],
+ ["BBDA",0x969B],
+ ["BBD9",0x969C],
+ ["E4BB",0x969E],
+ ["E4BC",0x96A1],
+ ["E8AB",0x96A2],
+ ["90C1",0x96A3],
+ ["E8AA",0x96A4],
+ ["FEE4",0x96A5],
+ ["C047",0x96A7],
+ ["C048",0x96A8],
+ ["EC4F",0x96A9],
+ ["C049",0x96AA],
+ ["EEF6",0x96AC],
+ ["EEF4",0x96AE],
+ ["EEF5",0x96B0],
+ ["C1F4",0x96B1],
+ ["F16F",0x96B3],
+ ["C3F7",0x96B4],
+ ["90C4",0x96B6],
+ ["C1F5",0x96B8],
+ ["AB41",0x96B9],
+ ["B0A6",0x96BB],
+ ["D447",0x96BC],
+ ["90C7",0x96BD],
+ ["D84C",0x96BF],
+ ["B3B6",0x96C0],
+ ["B6AD",0x96C1],
+ ["DCA4",0x96C2],
+ ["DCA6",0x96C3],
+ ["B6AF",0x96C4],
+ ["B6AE",0x96C5],
+ ["B6B0",0x96C6],
+ ["B6B1",0x96C7],
+ ["DCA5",0x96C8],
+ ["B96E",0x96C9],
+ ["B96F",0x96CA],
+ ["B96D",0x96CB],
+ ["BBDB",0x96CC],
+ ["B96C",0x96CD],
+ ["E0D5",0x96CE],
+ ["BBDC",0x96D2],
+ ["E8AC",0x96D3],
+ ["EC50",0x96D4],
+ ["C04A",0x96D5],
+ ["C1F6",0x96D6],
+ ["F170",0x96D7],
+ ["F174",0x96D8],
+ ["C2F9",0x96D9],
+ ["F171",0x96DA],
+ ["C2FA",0x96DB],
+ ["C2F8",0x96DC],
+ ["F175",0x96DD],
+ ["C2FB",0x96DE],
+ ["F173",0x96DF],
+ ["F379",0x96E1],
+ ["C2F7",0x96E2],
+ ["C3F8",0x96E3],
+ ["F8CD",0x96E5],
+ ["AB42",0x96E8],
+ ["B3B8",0x96E9],
+ ["B3B7",0x96EA],
+ ["B6B2",0x96EF],
+ ["DCA8",0x96F0],
+ ["DCA7",0x96F1],
+ ["B6B3",0x96F2],
+ ["92E4",0x96F4],
+ ["E0D9",0x96F5],
+ ["B973",0x96F6],
+ ["B970",0x96F7],
+ ["E0D8",0x96F8],
+ ["B972",0x96F9],
+ ["E0D6",0x96FA],
+ ["B971",0x96FB],
+ ["E0D7",0x96FD],
+ ["E4BD",0x96FF],
+ ["BBDD",0x9700],
+ ["E8AF",0x9702],
+ ["9F52",0x9703],
+ ["BE5D",0x9704],
+ ["E8AD",0x9705],
+ ["BE5E",0x9706],
+ ["BE5F",0x9707],
+ ["E8AE",0x9708],
+ ["BE60",0x9709],
+ ["EC51",0x970B],
+ ["C04E",0x970D],
+ ["C04B",0x970E],
+ ["C050",0x970F],
+ ["EC53",0x9710],
+ ["C04C",0x9711],
+ ["EC52",0x9712],
+ ["C04F",0x9713],
+ ["C04D",0x9716],
+ ["EEF9",0x9718],
+ ["EEFB",0x9719],
+ ["90DB",0x971B],
+ ["C1F7",0x971C],
+ ["EEFA",0x971D],
+ ["C1F8",0x971E],
+ ["EEF8",0x971F],
+ ["EEF7",0x9720],
+ ["A066",0x9721],
+ ["F177",0x9722],
+ ["F176",0x9723],
+ ["C2FC",0x9724],
+ ["F178",0x9725],
+ ["F37E",0x9726],
+ ["C3FA",0x9727],
+ ["F37D",0x9728],
+ ["F37A",0x9729],
+ ["C3F9",0x972A],
+ ["F37B",0x972B],
+ ["F37C",0x972C],
+ ["F548",0x972E],
+ ["F549",0x972F],
+ ["C4C5",0x9730],
+ ["90D2",0x9731],
+ ["C553",0x9732],
+ ["876B",0x9734],
+ ["F66E",0x9735],
+ ["90D4",0x9736],
+ ["C551",0x9738],
+ ["C552",0x9739],
+ ["F66F",0x973A],
+ ["C5B4",0x973D],
+ ["C5B5",0x973E],
+ ["F771",0x973F],
+ ["9A5B",0x9740],
+ ["95FD",0x9741],
+ ["C645",0x9742],
+ ["F8CF",0x9743],
+ ["C647",0x9744],
+ ["F8CE",0x9746],
+ ["F8D0",0x9747],
+ ["C646",0x9748],
+ ["F957",0x9749],
+ ["F9AD",0x974B],
+ ["8BC4",0x9751],
+ ["AB43",0x9752],
+ ["8C66",0x9755],
+ ["B974",0x9756],
+ ["90DE",0x9757],
+ ["E4BE",0x9758],
+ ["E8B0",0x975A],
+ ["C051",0x975B],
+ ["C052",0x975C],
+ ["9CE4",0x975D],
+ ["AB44",0x975E],
+ ["90E1",0x975F],
+ ["BE61",0x9760],
+ ["C3FB",0x9761],
+ ["ADB1",0x9762],
+ ["C053",0x9766],
+ ["C5E2",0x9768],
+ ["ADB2",0x9769],
+ ["D84D",0x976A],
+ ["DCA9",0x976C],
+ ["9E46",0x976D],
+ ["DCAB",0x976E],
+ ["DCAA",0x9770],
+ ["9651",0x9771],
+ ["E0DD",0x9772],
+ ["E0DA",0x9773],
+ ["B975",0x9774],
+ ["B976",0x9776],
+ ["E0DB",0x9777],
+ ["E0DC",0x9778],
+ ["E4C0",0x977A],
+ ["E4C5",0x977B],
+ ["BBDE",0x977C],
+ ["E4BF",0x977D],
+ ["E4C1",0x977E],
+ ["E4C8",0x977F],
+ ["E4C3",0x9780],
+ ["E4C7",0x9781],
+ ["E4C4",0x9782],
+ ["E4C2",0x9783],
+ ["E4C6",0x9784],
+ ["BBDF",0x9785],
+ ["FB58",0x9787],
+ ["E8B3",0x9788],
+ ["90E6",0x9789],
+ ["E8B1",0x978A],
+ ["BE63",0x978B],
+ ["BE62",0x978D],
+ ["E8B2",0x978E],
+ ["BE64",0x978F],
+ ["EC56",0x9794],
+ ["EC55",0x9797],
+ ["C054",0x9798],
+ ["EC54",0x9799],
+ ["EEFC",0x979A],
+ ["9650",0x979B],
+ ["EEFE",0x979C],
+ ["EF41",0x979D],
+ ["EF40",0x979E],
+ ["90E7",0x979F],
+ ["C1F9",0x97A0],
+ ["EEFD",0x97A1],
+ ["F1A1",0x97A2],
+ ["C2FD",0x97A3],
+ ["F17D",0x97A4],
+ ["F1A2",0x97A5],
+ ["C2FE",0x97A6],
+ ["F17B",0x97A8],
+ ["F17E",0x97AA],
+ ["F17C",0x97AB],
+ ["F179",0x97AC],
+ ["C340",0x97AD],
+ ["F17A",0x97AE],
+ ["90E8",0x97B1],
+ ["9A5D",0x97B2],
+ ["F3A1",0x97B3],
+ ["9F7A",0x97B4],
+ ["F3A3",0x97B6],
+ ["F3A2",0x97B7],
+ ["9B5C",0x97B8],
+ ["F54A",0x97B9],
+ ["9F7C",0x97BA],
+ ["F54B",0x97BB],
+ ["FC52",0x97BD],
+ ["90E9",0x97BE],
+ ["F670",0x97BF],
+ ["90EA",0x97C0],
+ ["C5B7",0x97C1],
+ ["9A5E",0x97C2],
+ ["C5B6",0x97C3],
+ ["F84F",0x97C4],
+ ["F850",0x97C5],
+ ["C648",0x97C6],
+ ["F8D1",0x97C7],
+ ["9F76",0x97C8],
+ ["C669",0x97C9],
+ ["ADB3",0x97CB],
+ ["B6B4",0x97CC],
+ ["E4CA",0x97CD],
+ ["E4C9",0x97CE],
+ ["E8B5",0x97CF],
+ ["E8B4",0x97D0],
+ ["90EB",0x97D2],
+ ["C1FA",0x97D3],
+ ["EF43",0x97D4],
+ ["EF42",0x97D5],
+ ["F1A5",0x97D6],
+ ["F1A3",0x97D7],
+ ["F1A6",0x97D8],
+ ["F1A4",0x97D9],
+ ["C3FC",0x97DC],
+ ["F3A4",0x97DD],
+ ["F3A5",0x97DE],
+ ["F3A6",0x97DF],
+ ["90EC",0x97E0],
+ ["F671",0x97E1],
+ ["F772",0x97E3],
+ ["F8D2",0x97E5],
+ ["8BEE",0x97E6],
+ ["ADB4",0x97ED],
+ ["90EE",0x97EE],
+ ["EC57",0x97F0],
+ ["EF44",0x97F1],
+ ["91C6",0x97F2],
+ ["ADB5",0x97F3],
+ ["90F2",0x97F5],
+ ["BBE0",0x97F6],
+ ["EC58",0x97F8],
+ ["C341",0x97F9],
+ ["F1A7",0x97FA],
+ ["C3FD",0x97FB],
+ ["F54C",0x97FD],
+ ["F54D",0x97FE],
+ ["C554",0x97FF],
+ ["F851",0x9800],
+ ["ADB6",0x9801],
+ ["B3BB",0x9802],
+ ["B3BC",0x9803],
+ ["D84E",0x9804],
+ ["B6B5",0x9805],
+ ["B6B6",0x9806],
+ ["DCAC",0x9807],
+ ["B6B7",0x9808],
+ ["B97A",0x980A],
+ ["B97C",0x980C],
+ ["E0DF",0x980D],
+ ["E0E0",0x980E],
+ ["E0DE",0x980F],
+ ["B977",0x9810],
+ ["B978",0x9811],
+ ["B97B",0x9812],
+ ["B979",0x9813],
+ ["FCBC",0x9814],
+ ["8A74",0x9815],
+ ["E4CB",0x9816],
+ ["BBE1",0x9817],
+ ["BBE2",0x9818],
+ ["E8BC",0x981B],
+ ["BE67",0x981C],
+ ["E8B7",0x981D],
+ ["E8B6",0x981E],
+ ["9657",0x981F],
+ ["E8BB",0x9820],
+ ["BE65",0x9821],
+ ["9CEF",0x9823],
+ ["C05B",0x9824],
+ ["E8B8",0x9826],
+ ["E8BD",0x9827],
+ ["E8BA",0x9828],
+ ["E8B9",0x9829],
+ ["BE66",0x982B],
+ ["C059",0x982D],
+ ["9FDF",0x982E],
+ ["EC5A",0x982F],
+ ["C055",0x9830],
+ ["EC5B",0x9832],
+ ["90F7",0x9833],
+ ["90F6",0x9834],
+ ["EC59",0x9835],
+ ["C058",0x9837],
+ ["C056",0x9838],
+ ["C05A",0x9839],
+ ["C057",0x983B],
+ ["EF45",0x9841],
+ ["EF4A",0x9843],
+ ["EF46",0x9844],
+ ["EF49",0x9845],
+ ["C1FB",0x9846],
+ ["9B5E",0x9847],
+ ["EDD4",0x9848],
+ ["EF48",0x9849],
+ ["EF47",0x984A],
+ ["90F8",0x984B],
+ ["C344",0x984C],
+ ["C342",0x984D],
+ ["C345",0x984E],
+ ["C343",0x984F],
+ ["F1A8",0x9850],
+ ["F1A9",0x9851],
+ ["F1AA",0x9852],
+ ["C346",0x9853],
+ ["8CFC",0x9856],
+ ["F3AA",0x9857],
+ ["C440",0x9858],
+ ["F3A8",0x9859],
+ ["C441",0x985B],
+ ["F3A7",0x985C],
+ ["F3A9",0x985D],
+ ["C3FE",0x985E],
+ ["F551",0x985F],
+ ["F54E",0x9860],
+ ["F54F",0x9862],
+ ["F550",0x9863],
+ ["F672",0x9864],
+ ["C556",0x9865],
+ ["90F9",0x9866],
+ ["C555",0x9867],
+ ["8CC9",0x9868],
+ ["F774",0x9869],
+ ["F773",0x986A],
+ ["C5B8",0x986B],
+ ["FA6A",0x986C],
+ ["C5E3",0x986F],
+ ["C649",0x9870],
+ ["C660",0x9871],
+ ["F958",0x9872],
+ ["F9AE",0x9873],
+ ["F9AF",0x9874],
+ ["8BEF",0x9875],
+ ["ADB7",0x98A8],
+ ["DCAD",0x98A9],
+ ["E0E1",0x98AC],
+ ["E4CC",0x98AD],
+ ["E4CD",0x98AE],
+ ["BBE3",0x98AF],
+ ["BBE4",0x98B1],
+ ["E8BE",0x98B2],
+ ["BE68",0x98B3],
+ ["9FE0",0x98B4],
+ ["C1FC",0x98B6],
+ ["9142",0x98B7],
+ ["F1AB",0x98B8],
+ ["9A62",0x98B9],
+ ["C347",0x98BA],
+ ["F3AD",0x98BB],
+ ["C442",0x98BC],
+ ["F3AC",0x98BD],
+ ["F3AE",0x98BE],
+ ["F3AB",0x98BF],
+ ["F675",0x98C0],
+ ["F552",0x98C1],
+ ["F553",0x98C2],
+ ["9569",0x98C3],
+ ["C4C6",0x98C4],
+ ["F674",0x98C6],
+ ["9144",0x98C7],
+ ["9143",0x98C8],
+ ["F673",0x98C9],
+ ["9141",0x98CA],
+ ["F775",0x98CB],
+ ["F9B0",0x98CC],
+ ["8BF0",0x98CE],
+ ["ADB8",0x98DB],
+ ["9660",0x98DC],
+ ["8BF1",0x98DE],
+ ["ADB9",0x98DF],
+ ["99F6",0x98E0],
+ ["9149",0x98E1],
+ ["B0A7",0x98E2],
+ ["D448",0x98E3],
+ ["D84F",0x98E5],
+ ["914A",0x98E6],
+ ["B6B8",0x98E7],
+ ["B6BB",0x98E9],
+ ["B6B9",0x98EA],
+ ["DCAE",0x98EB],
+ ["914B",0x98EC],
+ ["B6BD",0x98ED],
+ ["B6BA",0x98EF],
+ ["9A64",0x98F1],
+ ["B6BC",0x98F2],
+ ["B97E",0x98F4],
+ ["8ABF",0x98F5],
+ ["E0E2",0x98F6],
+ ["E0E3",0x98F9],
+ ["E8C0",0x98FA],
+ ["B97D",0x98FC],
+ ["B9A1",0x98FD],
+ ["B9A2",0x98FE],
+ ["E4CF",0x9900],
+ ["E4CE",0x9902],
+ ["BBE5",0x9903],
+ ["BBE6",0x9905],
+ ["E4D0",0x9907],
+ ["E8BF",0x9908],
+ ["BBE8",0x9909],
+ ["BE69",0x990A],
+ ["BBE7",0x990C],
+ ["9A66",0x990E],
+ ["C05C",0x9910],
+ ["E8C1",0x9911],
+ ["BE6B",0x9912],
+ ["BE6A",0x9913],
+ ["E8C2",0x9914],
+ ["E8C5",0x9915],
+ ["E8C3",0x9916],
+ ["E8C4",0x9917],
+ ["BE6C",0x9918],
+ ["9A67",0x9919],
+ ["C061",0x991A],
+ ["C05F",0x991B],
+ ["9A69",0x991C],
+ ["C05E",0x991E],
+ ["EC5D",0x991F],
+ ["C060",0x9921],
+ ["EC5C",0x9924],
+ ["EF4B",0x9925],
+ ["EC5E",0x9927],
+ ["C05D",0x9928],
+ ["EC5F",0x9929],
+ ["EF4E",0x992A],
+ ["EF4C",0x992B],
+ ["EF4D",0x992C],
+ ["EF52",0x992D],
+ ["C34B",0x992E],
+ ["EF51",0x992F],
+ ["EF54",0x9930],
+ ["EF53",0x9931],
+ ["EF50",0x9932],
+ ["EF4F",0x9933],
+ ["C1FD",0x9935],
+ ["9A6A",0x9937],
+ ["9652",0x9938],
+ ["914D",0x9939],
+ ["F1AE",0x993A],
+ ["9666",0x993B],
+ ["F1AD",0x993C],
+ ["C34A",0x993D],
+ ["C348",0x993E],
+ ["C349",0x993F],
+ ["9F7B",0x9940],
+ ["F1AC",0x9941],
+ ["9A6B",0x9942],
+ ["F3B1",0x9943],
+ ["C443",0x9945],
+ ["F3B0",0x9947],
+ ["F3AF",0x9948],
+ ["C444",0x9949],
+ ["A06C",0x994A],
+ ["F558",0x994B],
+ ["F557",0x994C],
+ ["9667",0x994D],
+ ["F555",0x994E],
+ ["F554",0x9950],
+ ["C4C8",0x9951],
+ ["C4C7",0x9952],
+ ["F559",0x9953],
+ ["F776",0x9954],
+ ["C5B9",0x9955],
+ ["F677",0x9956],
+ ["C557",0x9957],
+ ["F676",0x9958],
+ ["F556",0x9959],
+ ["F777",0x995B],
+ ["C5E4",0x995C],
+ ["9A6C",0x995D],
+ ["C661",0x995E],
+ ["F959",0x995F],
+ ["F9B1",0x9961],
+ ["9A6D",0x9962],
+ ["8BF2",0x9963],
+ ["ADBA",0x9996],
+ ["D850",0x9997],
+ ["EF55",0x9998],
+ ["ADBB",0x9999],
+ ["966A",0x999B],
+ ["E4D2",0x999C],
+ ["E4D1",0x999D],
+ ["EC60",0x999E],
+ ["EF57",0x99A1],
+ ["EF56",0x99A3],
+ ["FCEA",0x99A4],
+ ["C34C",0x99A5],
+ ["F3B2",0x99A6],
+ ["F3B3",0x99A7],
+ ["C4C9",0x99A8],
+ ["966C",0x99AA],
+ ["F9B2",0x99AB],
+ ["B0A8",0x99AC],
+ ["B6BF",0x99AD],
+ ["B6BE",0x99AE],
+ ["E0E4",0x99AF],
+ ["E0E6",0x99B0],
+ ["B9A4",0x99B1],
+ ["E0E5",0x99B2],
+ ["B9A3",0x99B3],
+ ["B9A5",0x99B4],
+ ["E0E7",0x99B5],
+ ["91C4",0x99B8],
+ ["E4D4",0x99B9],
+ ["E4D6",0x99BA],
+ ["E4D5",0x99BB],
+ ["9677",0x99BC],
+ ["E4D8",0x99BD],
+ ["BBE9",0x99C1],
+ ["E4D7",0x99C2],
+ ["E4D3",0x99C3],
+ ["99F4",0x99C4],
+ ["9A6F",0x99C5],
+ ["E4D9",0x99C7],
+ ["E8CC",0x99C9],
+ ["E8CF",0x99CB],
+ ["E8D1",0x99CC],
+ ["E8C7",0x99CD],
+ ["E8CB",0x99CE],
+ ["E8C8",0x99CF],
+ ["BE6E",0x99D0],
+ ["BE71",0x99D1],
+ ["BE73",0x99D2],
+ ["E8C9",0x99D3],
+ ["E8CA",0x99D4],
+ ["BE72",0x99D5],
+ ["E8CD",0x99D6],
+ ["E8D0",0x99D7],
+ ["E8CE",0x99D8],
+ ["BE74",0x99D9],
+ ["9FAB",0x99DA],
+ ["BE70",0x99DB],
+ ["E8C6",0x99DC],
+ ["BE6D",0x99DD],
+ ["BE6F",0x99DF],
+ ["8CBE",0x99E0],
+ ["8EC1",0x99E1],
+ ["C063",0x99E2],
+ ["EC66",0x99E3],
+ ["EC64",0x99E4],
+ ["EC63",0x99E5],
+ ["9555",0x99E6],
+ ["EC69",0x99E7],
+ ["EC68",0x99E9],
+ ["EC67",0x99EA],
+ ["EC62",0x99EC],
+ ["C062",0x99ED],
+ ["EC61",0x99EE],
+ ["EC65",0x99F0],
+ ["C064",0x99F1],
+ ["EF5A",0x99F4],
+ ["9152",0x99F5],
+ ["EF5E",0x99F6],
+ ["EF5B",0x99F7],
+ ["EF5D",0x99F8],
+ ["EF5C",0x99F9],
+ ["EF59",0x99FA],
+ ["EF5F",0x99FB],
+ ["EF62",0x99FC],
+ ["EF60",0x99FD],
+ ["EF61",0x99FE],
+ ["C240",0x99FF],
+ ["C1FE",0x9A01],
+ ["EF58",0x9A02],
+ ["EF63",0x9A03],
+ ["F1B3",0x9A04],
+ ["F1B6",0x9A05],
+ ["F1B8",0x9A06],
+ ["F1B7",0x9A07],
+ ["F1B1",0x9A09],
+ ["F1B5",0x9A0A],
+ ["F1B0",0x9A0B],
+ ["9153",0x9A0C],
+ ["F1B2",0x9A0D],
+ ["C34D",0x9A0E],
+ ["F1AF",0x9A0F],
+ ["9155",0x9A10],
+ ["F1B4",0x9A11],
+ ["F3C0",0x9A14],
+ ["F3B5",0x9A15],
+ ["C445",0x9A16],
+ ["C446",0x9A19],
+ ["F3B4",0x9A1A],
+ ["F3B9",0x9A1B],
+ ["F3BF",0x9A1C],
+ ["F3B7",0x9A1D],
+ ["F3BE",0x9A1E],
+ ["955D",0x9A1F],
+ ["F3BB",0x9A20],
+ ["9671",0x9A21],
+ ["F3BA",0x9A22],
+ ["F3BD",0x9A23],
+ ["F3B8",0x9A24],
+ ["F3B6",0x9A25],
+ ["9C6D",0x9A26],
+ ["F3BC",0x9A27],
+ ["F560",0x9A29],
+ ["F55E",0x9A2A],
+ ["C4CA",0x9A2B],
+ ["F55D",0x9A2C],
+ ["F563",0x9A2D],
+ ["F561",0x9A2E],
+ ["9673",0x9A2F],
+ ["C4CB",0x9A30],
+ ["F55C",0x9A31],
+ ["F55A",0x9A32],
+ ["F55B",0x9A34],
+ ["C4CD",0x9A35],
+ ["F55F",0x9A36],
+ ["C4CC",0x9A37],
+ ["F562",0x9A38],
+ ["F678",0x9A39],
+ ["F67E",0x9A3A],
+ ["9154",0x9A3B],
+ ["9A71",0x9A3C],
+ ["F679",0x9A3D],
+ ["C55B",0x9A3E],
+ ["F6A1",0x9A3F],
+ ["C55A",0x9A40],
+ ["F67D",0x9A41],
+ ["F67C",0x9A42],
+ ["C559",0x9A43],
+ ["F67B",0x9A44],
+ ["C558",0x9A45],
+ ["F67A",0x9A46],
+ ["F77D",0x9A48],
+ ["F7A1",0x9A49],
+ ["F77E",0x9A4A],
+ ["F77B",0x9A4C],
+ ["C5BB",0x9A4D],
+ ["F778",0x9A4E],
+ ["F77C",0x9A4F],
+ ["F7A3",0x9A50],
+ ["F7A2",0x9A52],
+ ["F779",0x9A53],
+ ["F77A",0x9A54],
+ ["C5BA",0x9A55],
+ ["F852",0x9A56],
+ ["C5E7",0x9A57],
+ ["9156",0x9A58],
+ ["F853",0x9A59],
+ ["C5E5",0x9A5A],
+ ["C5E6",0x9A5B],
+ ["966D",0x9A5C],
+ ["F8D3",0x9A5E],
+ ["C64A",0x9A5F],
+ ["F976",0x9A60],
+ ["C66A",0x9A62],
+ ["9557",0x9A63],
+ ["F9B3",0x9A64],
+ ["C66B",0x9A65],
+ ["F9B4",0x9A66],
+ ["F9B5",0x9A67],
+ ["F9C3",0x9A68],
+ ["F9C2",0x9A69],
+ ["C67A",0x9A6A],
+ ["F9CD",0x9A6B],
+ ["89C6",0x9A6C],
+ ["89C7",0x9A8F],
+ ["B0A9",0x9AA8],
+ ["E0E9",0x9AAB],
+ ["E0E8",0x9AAD],
+ ["BBEA",0x9AAF],
+ ["BBEB",0x9AB0],
+ ["E4DA",0x9AB1],
+ ["8A6A",0x9AB2],
+ ["E8D2",0x9AB3],
+ ["EC6C",0x9AB4],
+ ["8B57",0x9AB6],
+ ["BE75",0x9AB7],
+ ["C065",0x9AB8],
+ ["EC6A",0x9AB9],
+ ["9FE1",0x9ABA],
+ ["EC6D",0x9ABB],
+ ["C066",0x9ABC],
+ ["9B5F",0x9ABD],
+ ["EF64",0x9ABE],
+ ["EC6B",0x9ABF],
+ ["F1B9",0x9AC0],
+ ["C34E",0x9AC1],
+ ["F3C1",0x9AC2],
+ ["F566",0x9AC6],
+ ["F564",0x9AC7],
+ ["F565",0x9ACA],
+ ["F6A2",0x9ACD],
+ ["C55C",0x9ACF],
+ ["F7A4",0x9AD0],
+ ["C5EA",0x9AD1],
+ ["C5BC",0x9AD2],
+ ["C5E8",0x9AD3],
+ ["C5E9",0x9AD4],
+ ["F8D4",0x9AD5],
+ ["C662",0x9AD6],
+ ["A05D",0x9AD7],
+ ["B0AA",0x9AD8],
+ ["F1BA",0x9ADC],
+ ["D449",0x9ADF],
+ ["915B",0x9AE0],
+ ["B9A6",0x9AE1],
+ ["915C",0x9AE2],
+ ["E4DB",0x9AE3],
+ ["BBEC",0x9AE6],
+ ["E4DC",0x9AE7],
+ ["E8D4",0x9AEB],
+ ["E8D3",0x9AEC],
+ ["C068",0x9AED],
+ ["BE76",0x9AEE],
+ ["BE77",0x9AEF],
+ ["E8D7",0x9AF1],
+ ["E8D6",0x9AF2],
+ ["E8D5",0x9AF3],
+ ["915E",0x9AF4],
+ ["EC6E",0x9AF6],
+ ["EC71",0x9AF7],
+ ["EC70",0x9AF9],
+ ["EC6F",0x9AFA],
+ ["C067",0x9AFB],
+ ["EF68",0x9AFC],
+ ["EF66",0x9AFD],
+ ["EF65",0x9AFE],
+ ["9F5C",0x9AFF],
+ ["EF67",0x9B01],
+ ["9F57",0x9B02],
+ ["C34F",0x9B03],
+ ["F1BC",0x9B04],
+ ["F1BD",0x9B05],
+ ["C350",0x9B06],
+ ["F1BB",0x9B08],
+ ["9F65",0x9B09],
+ ["F3C3",0x9B0A],
+ ["F3C2",0x9B0B],
+ ["F3C5",0x9B0C],
+ ["C447",0x9B0D],
+ ["F3C4",0x9B0E],
+ ["9A72",0x9B0F],
+ ["F567",0x9B10],
+ ["F569",0x9B11],
+ ["F568",0x9B12],
+ ["9160",0x9B14],
+ ["F6A3",0x9B15],
+ ["F6A6",0x9B16],
+ ["F6A4",0x9B17],
+ ["F6A5",0x9B18],
+ ["F7A5",0x9B19],
+ ["C5BD",0x9B1A],
+ ["F854",0x9B1E],
+ ["F855",0x9B1F],
+ ["F856",0x9B20],
+ ["C64B",0x9B22],
+ ["C663",0x9B23],
+ ["F9B6",0x9B24],
+ ["B0AB",0x9B25],
+ ["BE78",0x9B27],
+ ["C069",0x9B28],
+ ["F1BE",0x9B29],
+ ["9F5E",0x9B2A],
+ ["F7A6",0x9B2B],
+ ["9161",0x9B2D],
+ ["F9C4",0x9B2E],
+ ["D44A",0x9B2F],
+ ["C67B",0x9B31],
+ ["B0AC",0x9B32],
+ ["EC72",0x9B33],
+ ["9164",0x9B34],
+ ["F1BF",0x9B35],
+ ["F3C6",0x9B37],
+ ["9F41",0x9B39],
+ ["F6A7",0x9B3A],
+ ["F7A7",0x9B3B],
+ ["B0AD",0x9B3C],
+ ["E4DD",0x9B3E],
+ ["E4DE",0x9B3F],
+ ["9169",0x9B40],
+ ["BBED",0x9B41],
+ ["BBEE",0x9B42],
+ ["E8D9",0x9B43],
+ ["BE7A",0x9B44],
+ ["BE79",0x9B45],
+ ["E8D8",0x9B46],
+ ["EF69",0x9B48],
+ ["F1C0",0x9B4A],
+ ["F1C2",0x9B4B],
+ ["F1C1",0x9B4C],
+ ["C353",0x9B4D],
+ ["C352",0x9B4E],
+ ["C351",0x9B4F],
+ ["9168",0x9B50],
+ ["C55E",0x9B51],
+ ["F6A8",0x9B52],
+ ["C55D",0x9B54],
+ ["F7A9",0x9B55],
+ ["F7A8",0x9B56],
+ ["C64C",0x9B58],
+ ["F8D5",0x9B59],
+ ["B3BD",0x9B5A],
+ ["E0EA",0x9B5B],
+ ["E4E1",0x9B5F],
+ ["E4DF",0x9B60],
+ ["E4E0",0x9B61],
+ ["E8E2",0x9B64],
+ ["E8DD",0x9B66],
+ ["E8DA",0x9B67],
+ ["E8E1",0x9B68],
+ ["9A74",0x9B69],
+ ["E8E3",0x9B6C],
+ ["BE7C",0x9B6F],
+ ["E8E0",0x9B70],
+ ["E8DC",0x9B71],
+ ["E8DB",0x9B74],
+ ["E8DF",0x9B75],
+ ["E8DE",0x9B76],
+ ["BE7B",0x9B77],
+ ["EC7D",0x9B7A],
+ ["EC78",0x9B7B],
+ ["EC76",0x9B7C],
+ ["ECA1",0x9B7D],
+ ["EC77",0x9B7E],
+ ["96B2",0x9B7F],
+ ["EC73",0x9B80],
+ ["9A75",0x9B81],
+ ["EC79",0x9B82],
+ ["FDA5",0x9B83],
+ ["EC74",0x9B85],
+ ["EF72",0x9B86],
+ ["EC75",0x9B87],
+ ["ECA2",0x9B88],
+ ["9EE9",0x9B8B],
+ ["8BBA",0x9B8D],
+ ["916D",0x9B8E],
+ ["A060",0x9B8F],
+ ["EC7C",0x9B90],
+ ["C06A",0x9B91],
+ ["EC7B",0x9B92],
+ ["EC7A",0x9B93],
+ ["EC7E",0x9B95],
+ ["9FDE",0x9B97],
+ ["EF6A",0x9B9A],
+ ["EF6D",0x9B9B],
+ ["9FC3",0x9B9D],
+ ["EF6C",0x9B9E],
+ ["96B5",0x9B9F],
+ ["EF74",0x9BA0],
+ ["EF6F",0x9BA1],
+ ["EF73",0x9BA2],
+ ["EF71",0x9BA4],
+ ["EF70",0x9BA5],
+ ["EF6E",0x9BA6],
+ ["EF6B",0x9BA8],
+ ["C243",0x9BAA],
+ ["C242",0x9BAB],
+ ["C244",0x9BAD],
+ ["C241",0x9BAE],
+ ["EF75",0x9BAF],
+ ["A067",0x9BB0],
+ ["F1C8",0x9BB5],
+ ["F1CB",0x9BB6],
+ ["F1C9",0x9BB8],
+ ["F1CD",0x9BB9],
+ ["F1CE",0x9BBD],
+ ["F1C6",0x9BBF],
+ ["C358",0x9BC0],
+ ["F1C7",0x9BC1],
+ ["F1C5",0x9BC3],
+ ["F1CC",0x9BC4],
+ ["F1C4",0x9BC6],
+ ["F1C3",0x9BC7],
+ ["C357",0x9BC8],
+ ["C355",0x9BC9],
+ ["C354",0x9BCA],
+ ["96B3",0x9BCF],
+ ["F1CA",0x9BD3],
+ ["F3CF",0x9BD4],
+ ["F3D5",0x9BD5],
+ ["C44A",0x9BD6],
+ ["F3D0",0x9BD7],
+ ["F3D3",0x9BD9],
+ ["F3D7",0x9BDA],
+ ["C44B",0x9BDB],
+ ["F3D2",0x9BDC],
+ ["9A76",0x9BDD],
+ ["F3CA",0x9BDE],
+ ["F3C9",0x9BE0],
+ ["F3D6",0x9BE1],
+ ["F3CD",0x9BE2],
+ ["F3CB",0x9BE4],
+ ["F3D4",0x9BE5],
+ ["F3CC",0x9BE6],
+ ["C449",0x9BE7],
+ ["C448",0x9BE8],
+ ["95D5",0x9BE9],
+ ["F3C7",0x9BEA],
+ ["F3C8",0x9BEB],
+ ["F3D1",0x9BEC],
+ ["9ECA",0x9BED],
+ ["F3CE",0x9BF0],
+ ["9A77",0x9BF1],
+ ["9A78",0x9BF4],
+ ["F56C",0x9BF7],
+ ["F56F",0x9BF8],
+ ["C356",0x9BFD],
+ ["9170",0x9BFF],
+ ["916F",0x9C02],
+ ["F56D",0x9C05],
+ ["F573",0x9C06],
+ ["F571",0x9C07],
+ ["F56B",0x9C08],
+ ["F576",0x9C09],
+ ["9FA3",0x9C0A],
+ ["F56A",0x9C0B],
+ ["9171",0x9C0C],
+ ["C4CF",0x9C0D],
+ ["F572",0x9C0E],
+ ["96B1",0x9C10],
+ ["F56E",0x9C12],
+ ["C4CE",0x9C13],
+ ["F575",0x9C14],
+ ["9F63",0x9C15],
+ ["F574",0x9C17],
+ ["9F67",0x9C1B],
+ ["F6AB",0x9C1C],
+ ["F6AA",0x9C1D],
+ ["8BB9",0x9C1F],
+ ["9A7A",0x9C20],
+ ["F6B1",0x9C21],
+ ["F6AD",0x9C23],
+ ["F6B0",0x9C24],
+ ["C560",0x9C25],
+ ["8B56",0x9C26],
+ ["F6AE",0x9C28],
+ ["F6AF",0x9C29],
+ ["F6A9",0x9C2B],
+ ["F6AC",0x9C2C],
+ ["C55F",0x9C2D],
+ ["9ADA",0x9C2F],
+ ["C5BF",0x9C31],
+ ["F7B4",0x9C32],
+ ["F7AF",0x9C33],
+ ["F7B3",0x9C34],
+ ["96B0",0x9C35],
+ ["F7B6",0x9C36],
+ ["F7B2",0x9C37],
+ ["F7AE",0x9C39],
+ ["9A7E",0x9C3A],
+ ["C5C1",0x9C3B],
+ ["F7B1",0x9C3C],
+ ["F7B5",0x9C3D],
+ ["C5C0",0x9C3E],
+ ["F7AC",0x9C3F],
+ ["F570",0x9C40],
+ ["F7B0",0x9C41],
+ ["F7AD",0x9C44],
+ ["9DDE",0x9C45],
+ ["F7AA",0x9C46],
+ ["F7AB",0x9C48],
+ ["C5BE",0x9C49],
+ ["F85A",0x9C4A],
+ ["F85C",0x9C4B],
+ ["F85F",0x9C4C],
+ ["F85B",0x9C4D],
+ ["F860",0x9C4E],
+ ["96AD",0x9C4F],
+ ["F859",0x9C50],
+ ["F857",0x9C52],
+ ["96AE",0x9C53],
+ ["C5EB",0x9C54],
+ ["F85D",0x9C55],
+ ["C5ED",0x9C56],
+ ["C5EC",0x9C57],
+ ["F858",0x9C58],
+ ["F85E",0x9C59],
+ ["9EA1",0x9C5D],
+ ["F8DA",0x9C5E],
+ ["C64D",0x9C5F],
+ ["F8DB",0x9C60],
+ ["F8D9",0x9C62],
+ ["F8D6",0x9C63],
+ ["F8D8",0x9C66],
+ ["F8D7",0x9C67],
+ ["F95A",0x9C68],
+ ["F95C",0x9C6D],
+ ["F95B",0x9C6E],
+ ["F979",0x9C71],
+ ["9E50",0x9C72],
+ ["F978",0x9C73],
+ ["F977",0x9C74],
+ ["F97A",0x9C75],
+ ["C673",0x9C77],
+ ["C674",0x9C78],
+ ["F9CA",0x9C79],
+ ["F9CE",0x9C7A],
+ ["96AF",0x9C7B],
+ ["8BF4",0x9C7C],
+ ["B3BE",0x9CE5],
+ ["DCAF",0x9CE6],
+ ["E0ED",0x9CE7],
+ ["B9A7",0x9CE9],
+ ["E0EB",0x9CEA],
+ ["E0EC",0x9CED],
+ ["E4E2",0x9CF1],
+ ["E4E3",0x9CF2],
+ ["BBF1",0x9CF3],
+ ["BBEF",0x9CF4],
+ ["E4E4",0x9CF5],
+ ["BBF0",0x9CF6],
+ ["E8E8",0x9CF7],
+ ["E8EB",0x9CF9],
+ ["E8E5",0x9CFA],
+ ["E8EC",0x9CFB],
+ ["E8E4",0x9CFC],
+ ["E8E6",0x9CFD],
+ ["E8E7",0x9CFF],
+ ["E8EA",0x9D00],
+ ["9FA4",0x9D02],
+ ["BEA1",0x9D03],
+ ["E8EF",0x9D04],
+ ["E8EE",0x9D05],
+ ["BE7D",0x9D06],
+ ["E8E9",0x9D07],
+ ["E8ED",0x9D08],
+ ["BE7E",0x9D09],
+ ["96BD",0x9D0C],
+ ["ECAC",0x9D10],
+ ["C06F",0x9D12],
+ ["ECA7",0x9D14],
+ ["C06B",0x9D15],
+ ["96F4",0x9D16],
+ ["ECA4",0x9D17],
+ ["ECAA",0x9D18],
+ ["ECAD",0x9D19],
+ ["C070",0x9D1B],
+ ["ECA9",0x9D1D],
+ ["ECA6",0x9D1E],
+ ["ECAE",0x9D1F],
+ ["ECA5",0x9D20],
+ ["96B8",0x9D21],
+ ["ECAB",0x9D22],
+ ["C06C",0x9D23],
+ ["ECA3",0x9D25],
+ ["C06D",0x9D26],
+ ["C06E",0x9D28],
+ ["ECA8",0x9D29],
+ ["EFA9",0x9D2D],
+ ["EF7A",0x9D2E],
+ ["EF7B",0x9D2F],
+ ["EF7E",0x9D30],
+ ["EF7C",0x9D31],
+ ["EF76",0x9D33],
+ ["FAA1",0x9D34],
+ ["EF79",0x9D36],
+ ["EFA5",0x9D37],
+ ["EF7D",0x9D38],
+ ["91A7",0x9D39],
+ ["C245",0x9D3B],
+ ["EFA7",0x9D3D],
+ ["EFA4",0x9D3E],
+ ["C246",0x9D3F],
+ ["EFA6",0x9D40],
+ ["EF77",0x9D41],
+ ["EFA2",0x9D42],
+ ["EFA3",0x9D43],
+ ["A05E",0x9D44],
+ ["EFA1",0x9D45],
+ ["9A7D",0x9D49],
+ ["F1D2",0x9D4A],
+ ["F1D4",0x9D4B],
+ ["F1D7",0x9D4C],
+ ["8948",0x9D4E],
+ ["F1D1",0x9D4F],
+ ["9EB1",0x9D50],
+ ["C359",0x9D51],
+ ["F1D9",0x9D52],
+ ["F1D0",0x9D53],
+ ["F1DA",0x9D54],
+ ["F1D6",0x9D56],
+ ["F1D8",0x9D57],
+ ["F1DC",0x9D58],
+ ["F1D5",0x9D59],
+ ["F1DD",0x9D5A],
+ ["F1D3",0x9D5B],
+ ["F1CF",0x9D5C],
+ ["C35A",0x9D5D],
+ ["9DDB",0x9D5E],
+ ["F1DB",0x9D5F],
+ ["C35B",0x9D60],
+ ["C44D",0x9D61],
+ ["EF78",0x9D67],
+ ["F3F1",0x9D68],
+ ["F3E8",0x9D69],
+ ["C44F",0x9D6A],
+ ["F3E4",0x9D6B],
+ ["C450",0x9D6C],
+ ["95BF",0x9D6D],
+ ["8A73",0x9D6E],
+ ["F3ED",0x9D6F],
+ ["F3E7",0x9D70],
+ ["F3DD",0x9D71],
+ ["C44E",0x9D72],
+ ["F3EA",0x9D73],
+ ["F3E5",0x9D74],
+ ["F3E6",0x9D75],
+ ["F3D8",0x9D77],
+ ["F3DF",0x9D78],
+ ["F3EE",0x9D79],
+ ["F3EB",0x9D7B],
+ ["9EFE",0x9D7C],
+ ["F3E3",0x9D7D],
+ ["917A",0x9D7E],
+ ["F3EF",0x9D7F],
+ ["F3DE",0x9D80],
+ ["F3D9",0x9D81],
+ ["F3EC",0x9D82],
+ ["917B",0x9D83],
+ ["F3DB",0x9D84],
+ ["F3E9",0x9D85],
+ ["F3E0",0x9D86],
+ ["F3F0",0x9D87],
+ ["F3DC",0x9D88],
+ ["C44C",0x9D89],
+ ["F3DA",0x9D8A],
+ ["F3E1",0x9D8B],
+ ["F3E2",0x9D8C],
+ ["F57D",0x9D90],
+ ["F57B",0x9D92],
+ ["9AA3",0x9D93],
+ ["F5A2",0x9D94],
+ ["F5AE",0x9D96],
+ ["F5A5",0x9D97],
+ ["F57C",0x9D98],
+ ["F578",0x9D99],
+ ["F5A7",0x9D9A],
+ ["F57E",0x9D9B],
+ ["F5A3",0x9D9C],
+ ["F57A",0x9D9D],
+ ["F5AA",0x9D9E],
+ ["F577",0x9D9F],
+ ["F5A1",0x9DA0],
+ ["F5A6",0x9DA1],
+ ["F5A8",0x9DA2],
+ ["F5AB",0x9DA3],
+ ["F579",0x9DA4],
+ ["96C2",0x9DA5],
+ ["F5AF",0x9DA6],
+ ["F5B0",0x9DA7],
+ ["F5A9",0x9DA8],
+ ["F5AD",0x9DA9],
+ ["F5A4",0x9DAA],
+ ["9F77",0x9DAB],
+ ["F6C1",0x9DAC],
+ ["F6C4",0x9DAD],
+ ["C561",0x9DAF],
+ ["F6C3",0x9DB1],
+ ["F6C8",0x9DB2],
+ ["F6C6",0x9DB3],
+ ["C562",0x9DB4],
+ ["F6BD",0x9DB5],
+ ["F6B3",0x9DB6],
+ ["F6B2",0x9DB7],
+ ["C564",0x9DB8],
+ ["F6BF",0x9DB9],
+ ["F6C0",0x9DBA],
+ ["F6BC",0x9DBB],
+ ["F6B4",0x9DBC],
+ ["9AA4",0x9DBD],
+ ["F6B9",0x9DBE],
+ ["F5AC",0x9DBF],
+ ["9AA5",0x9DC0],
+ ["F6B5",0x9DC1],
+ ["C563",0x9DC2],
+ ["F6BB",0x9DC3],
+ ["91A1",0x9DC4],
+ ["F6BA",0x9DC5],
+ ["F6B6",0x9DC7],
+ ["F6C2",0x9DC8],
+ ["89B8",0x9DC9],
+ ["F6B7",0x9DCA],
+ ["F7BB",0x9DCB],
+ ["F6C5",0x9DCC],
+ ["F6C7",0x9DCD],
+ ["F6BE",0x9DCE],
+ ["F6B8",0x9DCF],
+ ["F7BC",0x9DD0],
+ ["F7BE",0x9DD1],
+ ["F7B8",0x9DD2],
+ ["C5C2",0x9DD3],
+ ["9173",0x9DD4],
+ ["F7C5",0x9DD5],
+ ["F7C3",0x9DD6],
+ ["C5C3",0x9DD7],
+ ["F7C2",0x9DD8],
+ ["F7C1",0x9DD9],
+ ["F7BA",0x9DDA],
+ ["F7B7",0x9DDB],
+ ["F7BD",0x9DDC],
+ ["F7C6",0x9DDD],
+ ["F7B9",0x9DDE],
+ ["F7BF",0x9DDF],
+ ["F869",0x9DE1],
+ ["F86E",0x9DE2],
+ ["F864",0x9DE3],
+ ["F867",0x9DE4],
+ ["C5EE",0x9DE5],
+ ["F86B",0x9DE6],
+ ["F872",0x9DE8],
+ ["F7C0",0x9DE9],
+ ["F865",0x9DEB],
+ ["F86F",0x9DEC],
+ ["F873",0x9DED],
+ ["F86A",0x9DEE],
+ ["F863",0x9DEF],
+ ["F86D",0x9DF0],
+ ["F86C",0x9DF2],
+ ["F871",0x9DF3],
+ ["F870",0x9DF4],
+ ["F7C4",0x9DF5],
+ ["F868",0x9DF6],
+ ["F862",0x9DF7],
+ ["F866",0x9DF8],
+ ["C64E",0x9DF9],
+ ["C64F",0x9DFA],
+ ["F861",0x9DFB],
+ ["9AA6",0x9DFC],
+ ["F8E6",0x9DFD],
+ ["F8DD",0x9DFE],
+ ["F8E5",0x9DFF],
+ ["F8E2",0x9E00],
+ ["F8E3",0x9E01],
+ ["F8DC",0x9E02],
+ ["F8DF",0x9E03],
+ ["F8E7",0x9E04],
+ ["F8E1",0x9E05],
+ ["F8E0",0x9E06],
+ ["F8DE",0x9E07],
+ ["F8E4",0x9E09],
+ ["89BD",0x9E0A],
+ ["F95D",0x9E0B],
+ ["89B9",0x9E0C],
+ ["F95E",0x9E0D],
+ ["917D",0x9E0E],
+ ["F960",0x9E0F],
+ ["F95F",0x9E10],
+ ["F962",0x9E11],
+ ["F961",0x9E12],
+ ["F97C",0x9E13],
+ ["F97B",0x9E14],
+ ["F9B7",0x9E15],
+ ["F9B8",0x9E17],
+ ["96BB",0x9E18],
+ ["F9C5",0x9E19],
+ ["C678",0x9E1A],
+ ["C67C",0x9E1B],
+ ["9FF2",0x9E1C],
+ ["F9CF",0x9E1D],
+ ["C67D",0x9E1E],
+ ["8BF5",0x9E1F],
+ ["B3BF",0x9E75],
+ ["C4D0",0x9E79],
+ ["F6C9",0x9E7A],
+ ["9AA9",0x9E7B],
+ ["C650",0x9E7C],
+ ["C651",0x9E7D],
+ ["B3C0",0x9E7F],
+ ["E0EE",0x9E80],
+ ["9F54",0x9E81],
+ ["B9A8",0x9E82],
+ ["E8F0",0x9E83],
+ ["9FE3",0x9E84],
+ ["9EED",0x9E85],
+ ["ECB0",0x9E86],
+ ["ECB1",0x9E87],
+ ["ECAF",0x9E88],
+ ["EFAB",0x9E89],
+ ["EFAA",0x9E8A],
+ ["C247",0x9E8B],
+ ["F1DF",0x9E8C],
+ ["EFAC",0x9E8D],
+ ["F1DE",0x9E8E],
+ ["91AA",0x9E90],
+ ["F3F3",0x9E91],
+ ["C451",0x9E92],
+ ["C453",0x9E93],
+ ["F3F2",0x9E94],
+ ["91AB",0x9E95],
+ ["A070",0x9E96],
+ ["C452",0x9E97],
+ ["9F6D",0x9E98],
+ ["F5B1",0x9E99],
+ ["F5B3",0x9E9A],
+ ["F5B2",0x9E9B],
+ ["F6CA",0x9E9C],
+ ["C565",0x9E9D],
+ ["91AC",0x9E9E],
+ ["C5EF",0x9E9F],
+ ["F8E8",0x9EA0],
+ ["F963",0x9EA1],
+ ["91AD",0x9EA2],
+ ["F9D2",0x9EA4],
+ ["B3C1",0x9EA5],
+ ["A0FD",0x9EA6],
+ ["E4E5",0x9EA7],
+ ["9FE2",0x9EA8],
+ ["BEA2",0x9EA9],
+ ["91AF",0x9EAA],
+ ["9E41",0x9EAB],
+ ["9AAA",0x9EAC],
+ ["ECB3",0x9EAD],
+ ["ECB2",0x9EAE],
+ ["91B0",0x9EAF],
+ ["EFAD",0x9EB0],
+ ["9AAB",0x9EB1],
+ ["C454",0x9EB4],
+ ["C4D1",0x9EB5],
+ ["F7C7",0x9EB6],
+ ["F9CB",0x9EB7],
+ ["B3C2",0x9EBB],
+ ["BBF2",0x9EBC],
+ ["9AAC",0x9EBD],
+ ["BEA3",0x9EBE],
+ ["9A4A",0x9EBF],
+ ["F3F4",0x9EC0],
+ ["91B2",0x9EC1],
+ ["F874",0x9EC2],
+ ["B6C0",0x9EC3],
+ ["8BF6",0x9EC4],
+ ["9AAD",0x9EC6],
+ ["89B6",0x9EC7],
+ ["EFAE",0x9EC8],
+ ["C664",0x9ECC],
+ ["B6C1",0x9ECD],
+ ["BEA4",0x9ECE],
+ ["C248",0x9ECF],
+ ["F875",0x9ED0],
+ ["B6C2",0x9ED1],
+ ["E8F1",0x9ED3],
+ ["C072",0x9ED4],
+ ["ECB4",0x9ED5],
+ ["ECB5",0x9ED6],
+ ["C071",0x9ED8],
+ ["EFAF",0x9EDA],
+ ["C24C",0x9EDB],
+ ["C24A",0x9EDC],
+ ["C24B",0x9EDD],
+ ["C249",0x9EDE],
+ ["F1E0",0x9EDF],
+ ["C35C",0x9EE0],
+ ["9AAF",0x9EE2],
+ ["F5B5",0x9EE4],
+ ["F5B4",0x9EE5],
+ ["F5B7",0x9EE6],
+ ["F5B6",0x9EE7],
+ ["C4D2",0x9EE8],
+ ["F6CB",0x9EEB],
+ ["F6CD",0x9EED],
+ ["F6CC",0x9EEE],
+ ["C566",0x9EEF],
+ ["F7C8",0x9EF0],
+ ["9AB0",0x9EF1],
+ ["F876",0x9EF2],
+ ["F877",0x9EF3],
+ ["C5F0",0x9EF4],
+ ["F964",0x9EF5],
+ ["F97D",0x9EF6],
+ ["C675",0x9EF7],
+ ["9AB1",0x9EF8],
+ ["DCB0",0x9EF9],
+ ["ECB6",0x9EFA],
+ ["EFB0",0x9EFB],
+ ["F3F5",0x9EFC],
+ ["E0EF",0x9EFD],
+ ["9AA1",0x9EFE],
+ ["EFB1",0x9EFF],
+ ["F1E2",0x9F00],
+ ["F1E1",0x9F01],
+ ["91B9",0x9F02],
+ ["F878",0x9F06],
+ ["C652",0x9F07],
+ ["91BA",0x9F08],
+ ["F965",0x9F09],
+ ["F97E",0x9F0A],
+ ["B9A9",0x9F0E],
+ ["E8F2",0x9F0F],
+ ["E8F3",0x9F10],
+ ["ECB7",0x9F12],
+ ["B9AA",0x9F13],
+ ["C35D",0x9F15],
+ ["F1E3",0x9F16],
+ ["91BE",0x9F17],
+ ["F6CF",0x9F18],
+ ["C567",0x9F19],
+ ["F6D0",0x9F1A],
+ ["F6CE",0x9F1B],
+ ["F879",0x9F1C],
+ ["F8E9",0x9F1E],
+ ["B9AB",0x9F20],
+ ["EFB4",0x9F22],
+ ["EFB3",0x9F23],
+ ["EFB2",0x9F24],
+ ["F1E4",0x9F25],
+ ["A041",0x9F26],
+ ["8BB7",0x9F27],
+ ["F1E8",0x9F28],
+ ["F1E7",0x9F29],
+ ["F1E6",0x9F2A],
+ ["F1E5",0x9F2B],
+ ["C35E",0x9F2C],
+ ["F3F6",0x9F2D],
+ ["F5B9",0x9F2E],
+ ["C4D3",0x9F2F],
+ ["F5B8",0x9F30],
+ ["F6D1",0x9F31],
+ ["F7CB",0x9F32],
+ ["F7CA",0x9F33],
+ ["C5C4",0x9F34],
+ ["F7C9",0x9F35],
+ ["F87C",0x9F36],
+ ["F87B",0x9F37],
+ ["F87A",0x9F38],
+ ["91C0",0x9F39],
+ ["BBF3",0x9F3B],
+ ["ECB8",0x9F3D],
+ ["C24D",0x9F3E],
+ ["F3F7",0x9F40],
+ ["F3F8",0x9F41],
+ ["F7CC",0x9F42],
+ ["F87D",0x9F43],
+ ["9AB3",0x9F44],
+ ["91C3",0x9F45],
+ ["F8EA",0x9F46],
+ ["F966",0x9F47],
+ ["F9B9",0x9F48],
+ ["F9D4",0x9F49],
+ ["BBF4",0x9F4A],
+ ["C24E",0x9F4B],
+ ["F1E9",0x9F4C],
+ ["F3F9",0x9F4D],
+ ["F6D2",0x9F4E],
+ ["F87E",0x9F4F],
+ ["A0FC",0x9F50],
+ ["BEA6",0x9F52],
+ ["9FEE",0x9F53],
+ ["EFB5",0x9F54],
+ ["F1EA",0x9F55],
+ ["F3FA",0x9F56],
+ ["F3FB",0x9F57],
+ ["F3FC",0x9F58],
+ ["F5BE",0x9F59],
+ ["9F69",0x9F5A],
+ ["F5BA",0x9F5B],
+ ["C568",0x9F5C],
+ ["F5BD",0x9F5D],
+ ["F5BC",0x9F5E],
+ ["C4D4",0x9F5F],
+ ["F5BB",0x9F60],
+ ["C4D6",0x9F61],
+ ["91C8",0x9F62],
+ ["C4D5",0x9F63],
+ ["F6D4",0x9F64],
+ ["F6D3",0x9F65],
+ ["C569",0x9F66],
+ ["C56A",0x9F67],
+ ["91C9",0x9F69],
+ ["C5C6",0x9F6A],
+ ["F7CD",0x9F6B],
+ ["C5C5",0x9F6C],
+ ["F8A3",0x9F6E],
+ ["F8A4",0x9F6F],
+ ["F8A2",0x9F70],
+ ["F8A1",0x9F71],
+ ["C654",0x9F72],
+ ["F8EB",0x9F74],
+ ["F8EC",0x9F75],
+ ["F8ED",0x9F76],
+ ["C653",0x9F77],
+ ["F967",0x9F78],
+ ["F96A",0x9F79],
+ ["F969",0x9F7A],
+ ["F968",0x9F7B],
+ ["F9D3",0x9F7E],
+ ["8DE6",0x9F7F],
+ ["C073",0x9F8D],
+ ["91CB",0x9F8E],
+ ["C365",0x9F90],
+ ["F5BF",0x9F91],
+ ["F6D5",0x9F92],
+ ["C5C7",0x9F94],
+ ["F7CE",0x9F95],
+ ["F9D5",0x9F98],
+ ["89C8",0x9F99],
+ ["C074",0x9F9C],
+ ["8DAA",0x9F9F],
+ ["EFB6",0x9FA0],
+ ["F7CF",0x9FA2],
+ ["F9A1",0x9FA4],
+ ["9FDD",0x9FA5],
+ ["8C43",0x9FA6],
+ ["8C6D",0x9FA7],
+ ["8C74",0x9FA8],
+ ["8CB7",0x9FA9],
+ ["8CB9",0x9FAA],
+ ["8CBB",0x9FAB],
+ ["8CC0",0x9FAC],
+ ["8CD7",0x9FAD],
+ ["8CD8",0x9FAE],
+ ["8CDA",0x9FAF],
+ ["C8A1",0x9FB0],
+ ["C8A3",0x9FB1],
+ ["8CED",0x9FB2],
+ ["8D48",0x9FB3],
+ ["8BF8",0xF907],
+ ["C94A",0xFA0C],
+ ["DDFC",0xFA0D],
+ ["A14A",0xFE30],
+ ["A157",0xFE31],
+ ["A159",0xFE33],
+ ["A15B",0xFE34],
+ ["A15F",0xFE35],
+ ["A160",0xFE36],
+ ["A163",0xFE37],
+ ["A164",0xFE38],
+ ["A167",0xFE39],
+ ["A168",0xFE3A],
+ ["A16B",0xFE3B],
+ ["A16C",0xFE3C],
+ ["A16F",0xFE3D],
+ ["A170",0xFE3E],
+ ["A173",0xFE3F],
+ ["A174",0xFE40],
+ ["A177",0xFE41],
+ ["A178",0xFE42],
+ ["A17B",0xFE43],
+ ["A17C",0xFE44],
+ ["A1C6",0xFE49],
+ ["A1C7",0xFE4A],
+ ["A1CA",0xFE4B],
+ ["A1CB",0xFE4C],
+ ["A1C8",0xFE4D],
+ ["A1C9",0xFE4E],
+ ["A15C",0xFE4F],
+ ["A14D",0xFE50],
+ ["A14F",0xFE52],
+ ["A151",0xFE54],
+ ["A152",0xFE55],
+ ["A153",0xFE56],
+ ["A154",0xFE57],
+ ["A17D",0xFE59],
+ ["A17E",0xFE5A],
+ ["A1A1",0xFE5B],
+ ["A1A2",0xFE5C],
+ ["A1A3",0xFE5D],
+ ["A1A4",0xFE5E],
+ ["A1CC",0xFE5F],
+ ["A1CD",0xFE60],
+ ["A1CE",0xFE61],
+ ["A1DE",0xFE62],
+ ["A1DF",0xFE63],
+ ["A1E0",0xFE64],
+ ["A1E1",0xFE65],
+ ["A1E2",0xFE66],
+ ["A24C",0xFE69],
+ ["A24D",0xFE6A],
+ ["A24E",0xFE6B],
+ ["A149",0xFF01],
+ ["C8D0",0xFF02],
+ ["A1AD",0xFF03],
+ ["A243",0xFF04],
+ ["A248",0xFF05],
+ ["A1AE",0xFF06],
+ ["C8CF",0xFF07],
+ ["A15D",0xFF08],
+ ["A15E",0xFF09],
+ ["A1AF",0xFF0A],
+ ["A1CF",0xFF0B],
+ ["A141",0xFF0C],
+ ["A1D0",0xFF0D],
+ ["A144",0xFF0E],
+ ["A241",0xFF0F],
+ ["A2AF",0xFF10],
+ ["A2B0",0xFF11],
+ ["A2B1",0xFF12],
+ ["A2B2",0xFF13],
+ ["A2B3",0xFF14],
+ ["A2B4",0xFF15],
+ ["A2B5",0xFF16],
+ ["A2B6",0xFF17],
+ ["A2B7",0xFF18],
+ ["A2B8",0xFF19],
+ ["A147",0xFF1A],
+ ["A146",0xFF1B],
+ ["A1D5",0xFF1C],
+ ["A1D7",0xFF1D],
+ ["A1D6",0xFF1E],
+ ["A148",0xFF1F],
+ ["A249",0xFF20],
+ ["A2CF",0xFF21],
+ ["A2D0",0xFF22],
+ ["A2D1",0xFF23],
+ ["A2D2",0xFF24],
+ ["A2D3",0xFF25],
+ ["A2D4",0xFF26],
+ ["A2D5",0xFF27],
+ ["A2D6",0xFF28],
+ ["A2D7",0xFF29],
+ ["A2D8",0xFF2A],
+ ["A2D9",0xFF2B],
+ ["A2DA",0xFF2C],
+ ["A2DB",0xFF2D],
+ ["A2DC",0xFF2E],
+ ["A2DD",0xFF2F],
+ ["A2DE",0xFF30],
+ ["A2DF",0xFF31],
+ ["A2E0",0xFF32],
+ ["A2E1",0xFF33],
+ ["A2E2",0xFF34],
+ ["A2E3",0xFF35],
+ ["A2E4",0xFF36],
+ ["A2E5",0xFF37],
+ ["A2E6",0xFF38],
+ ["A2E7",0xFF39],
+ ["A2E8",0xFF3A],
+ ["C6E4",0xFF3B],
+ ["A242",0xFF3C],
+ ["C6E5",0xFF3D],
+ ["A1C4",0xFF3F],
+ ["A2E9",0xFF41],
+ ["A2EA",0xFF42],
+ ["A2EB",0xFF43],
+ ["A2EC",0xFF44],
+ ["A2ED",0xFF45],
+ ["A2EE",0xFF46],
+ ["A2EF",0xFF47],
+ ["A2F0",0xFF48],
+ ["A2F1",0xFF49],
+ ["A2F2",0xFF4A],
+ ["A2F3",0xFF4B],
+ ["A2F4",0xFF4C],
+ ["A2F5",0xFF4D],
+ ["A2F6",0xFF4E],
+ ["A2F7",0xFF4F],
+ ["A2F8",0xFF50],
+ ["A2F9",0xFF51],
+ ["A2FA",0xFF52],
+ ["A2FB",0xFF53],
+ ["A2FC",0xFF54],
+ ["A2FD",0xFF55],
+ ["A2FE",0xFF56],
+ ["A340",0xFF57],
+ ["A341",0xFF58],
+ ["A342",0xFF59],
+ ["A343",0xFF5A],
+ ["A161",0xFF5B],
+ ["A155",0xFF5C],
+ ["A162",0xFF5D],
+ ["A14E",0xFF64],
+ ["C8CD",0xFFE2],
+ ["C8CE",0xFFE4],
+ ["F9FE",0xFFED],
+ ["9C71",0x20021],
+ ["9375",0x2003E],
+ ["9376",0x20046],
+ ["9548",0x2004E],
+ ["8EC6",0x20068],
+ ["8BC5",0x20086],
+ ["8BFA",0x20087],
+ ["C87C",0x2008A],
+ ["9AB4",0x20094],
+ ["884E",0x200CA],
+ ["884B",0x200CB],
+ ["C87A",0x200CC],
+ ["8848",0x200CD],
+ ["8847",0x200D1],
+ ["A0F6",0x200EE],
+ ["8845",0x2010C],
+ ["8853",0x2010E],
+ ["FCAD",0x20118],
+ ["8CF5",0x201A4],
+ ["8AAD",0x201A9],
+ ["9272",0x201AB],
+ ["FC47",0x201C1],
+ ["94DF",0x201D4],
+ ["9FD1",0x201F2],
+ ["FBCB",0x20204],
+ ["927D",0x2020C],
+ ["98A4",0x20214],
+ ["8CF9",0x20239],
+ ["94E7",0x2025B],
+ ["90CB",0x20274],
+ ["927B",0x20275],
+ ["94D8",0x20299],
+ ["FC5F",0x2029E],
+ ["FA54",0x202A0],
+ ["9AB5",0x202B7],
+ ["96DA",0x202BF],
+ ["9279",0x202C0],
+ ["FA74",0x202E5],
+ ["9275",0x2030A],
+ ["8DFB",0x20325],
+ ["8A49",0x20341],
+ ["92DF",0x20345],
+ ["9B7C",0x20346],
+ ["FA63",0x20347],
+ ["FA60",0x2037E],
+ ["926D",0x2037F],
+ ["FA62",0x20380],
+ ["9AB6",0x203A0],
+ ["976B",0x203A7],
+ ["FD6A",0x203B5],
+ ["FD54",0x203C9],
+ ["9273",0x203CB],
+ ["97D8",0x203F5],
+ ["9FBB",0x203FC],
+ ["9342",0x20413],
+ ["9276",0x20414],
+ ["FA65",0x2041F],
+ ["926C",0x20465],
+ ["FA6E",0x20487],
+ ["9EE0",0x2048E],
+ ["92C0",0x20491],
+ ["92BF",0x20492],
+ ["92BE",0x204A3],
+ ["9ABA",0x204D7],
+ ["8AB3",0x204FC],
+ ["9775",0x204FE],
+ ["FA40",0x20547],
+ ["FA76",0x2058E],
+ ["FBD0",0x205A5],
+ ["FA7B",0x205B3],
+ ["FE6D",0x205C3],
+ ["9BB3",0x205CA],
+ ["89CC",0x205D0],
+ ["9ABE",0x205D5],
+ ["FA42",0x205DF],
+ ["92BC",0x205E0],
+ ["945C",0x205EB],
+ ["9BB5",0x20611],
+ ["9ABF",0x20615],
+ ["98A7",0x20619],
+ ["97A4",0x2061A],
+ ["90FD",0x20630],
+ ["FC7B",0x20656],
+ ["9AC0",0x20676],
+ ["92C3",0x2070E],
+ ["8AAA",0x20731],
+ ["9BD0",0x20779],
+ ["9550",0x2082C],
+ ["92C6",0x20873],
+ ["98A6",0x208D5],
+ ["9546",0x20916],
+ ["FD63",0x20923],
+ ["FAC2",0x20954],
+ ["9EC3",0x20979],
+ ["89B2",0x209E7],
+ ["9C66",0x20A11],
+ ["9053",0x20A50],
+ ["8C62",0x20A6F],
+ ["97C1",0x20AB4],
+ ["9AC4",0x20AC2],
+ ["9AC5",0x20ACD],
+ ["8EEF",0x20B0D],
+ ["FAE9",0x20B8F],
+ ["8D40",0x20B9F],
+ ["9262",0x20BA8],
+ ["8AF7",0x20BA9],
+ ["9AC6",0x20BBF],
+ ["92E1",0x20BC6],
+ ["9AC9",0x20BCB],
+ ["FAC6",0x20BE2],
+ ["97A5",0x20BEB],
+ ["9ACB",0x20BFB],
+ ["FA72",0x20BFF],
+ ["8A5E",0x20C0B],
+ ["94E0",0x20C0D],
+ ["92CC",0x20C20],
+ ["8AE5",0x20C34],
+ ["FE5C",0x20C3A],
+ ["9ACC",0x20C3B],
+ ["9DF9",0x20C41],
+ ["8A43",0x20C42],
+ ["8AA6",0x20C43],
+ ["9ACD",0x20C53],
+ ["9ACE",0x20C65],
+ ["FAEE",0x20C77],
+ ["9BCC",0x20C78],
+ ["9ACF",0x20C7C],
+ ["9AD1",0x20C8D],
+ ["9DFA",0x20C96],
+ ["9D7C",0x20C9C],
+ ["9AD3",0x20CB5],
+ ["97A6",0x20CB8],
+ ["995F",0x20CCF],
+ ["FBF6",0x20CD3],
+ ["9FC5",0x20CD4],
+ ["8A59",0x20CD5],
+ ["8B6B",0x20CD6],
+ ["9AD4",0x20CDD],
+ ["9AD5",0x20CED],
+ ["97A2",0x20CFF],
+ ["8A44",0x20D15],
+ ["9F4A",0x20D28],
+ ["90A1",0x20D31],
+ ["FDA4",0x20D32],
+ ["8A64",0x20D46],
+ ["8AF2",0x20D47],
+ ["8AF8",0x20D48],
+ ["9DD8",0x20D49],
+ ["94D6",0x20D4C],
+ ["FAFE",0x20D4D],
+ ["FBA7",0x20D4E],
+ ["9AD6",0x20D6F],
+ ["9F4D",0x20D71],
+ ["FAF6",0x20D74],
+ ["8A57",0x20D7C],
+ ["8B43",0x20D7E],
+ ["8B44",0x20D7F],
+ ["8AB6",0x20D96],
+ ["8AC0",0x20D9C],
+ ["9E54",0x20DA7],
+ ["9AD7",0x20DB2],
+ ["9AD8",0x20DC8],
+ ["9ADC",0x20E04],
+ ["8ACA",0x20E09],
+ ["9EA8",0x20E0A],
+ ["9263",0x20E0D],
+ ["9ADD",0x20E0E],
+ ["8B65",0x20E0F],
+ ["8B6F",0x20E10],
+ ["8B7E",0x20E11],
+ ["8F43",0x20E16],
+ ["92D0",0x20E1D],
+ ["8AF4",0x20E4C],
+ ["9DBE",0x20E6D],
+ ["9AE1",0x20E73],
+ ["FCDE",0x20E75],
+ ["9DFD",0x20E76],
+ ["8B66",0x20E77],
+ ["8B70",0x20E78],
+ ["8B75",0x20E79],
+ ["8AE4",0x20E7A],
+ ["8BA4",0x20E7B],
+ ["8AED",0x20E8C],
+ ["8A5D",0x20E96],
+ ["8B48",0x20E98],
+ ["9DED",0x20E9D],
+ ["9E40",0x20EA2],
+ ["8AEF",0x20EAA],
+ ["8AF6",0x20EAB],
+ ["9E76",0x20EAC],
+ ["9EE3",0x20EB6],
+ ["9ADE",0x20ED7],
+ ["8DFE",0x20ED8],
+ ["FAFC",0x20EDD],
+ ["9CB1",0x20EF8],
+ ["9E77",0x20EF9],
+ ["8B64",0x20EFA],
+ ["8B67",0x20EFB],
+ ["974B",0x20F1D],
+ ["9653",0x20F26],
+ ["9AE0",0x20F2D],
+ ["8B4A",0x20F2E],
+ ["8AF1",0x20F30],
+ ["8AD7",0x20F31],
+ ["A0AB",0x20F3B],
+ ["8AB5",0x20F4C],
+ ["8A5F",0x20F64],
+ ["8AEE",0x20F8D],
+ ["9ADF",0x20F90],
+ ["8AFE",0x20FAD],
+ ["8A58",0x20FB4],
+ ["8BA3",0x20FB5],
+ ["8BA7",0x20FB6],
+ ["9AE3",0x20FBC],
+ ["9261",0x20FDF],
+ ["9DD7",0x20FEA],
+ ["9E7D",0x20FEB],
+ ["9EA7",0x20FEC],
+ ["9EAB",0x20FED],
+ ["9042",0x21014],
+ ["8B79",0x2101D],
+ ["8B7A",0x2101E],
+ ["9AE6",0x2104F],
+ ["9AE5",0x2105C],
+ ["8A7E",0x2106F],
+ ["9E44",0x21075],
+ ["9AE7",0x21076],
+ ["8A7C",0x21077],
+ ["8B71",0x21078],
+ ["9AE9",0x2107B],
+ ["9AEA",0x21088],
+ ["9AEB",0x21096],
+ ["8ABD",0x2109D],
+ ["FB4E",0x210B4],
+ ["9AED",0x210BF],
+ ["8AF9",0x210C0],
+ ["9E63",0x210C1],
+ ["8B49",0x210C7],
+ ["8ACE",0x210C8],
+ ["8B6E",0x210C9],
+ ["8AE8",0x210CF],
+ ["9AEE",0x210D3],
+ ["92CE",0x210E4],
+ ["8A5A",0x210F4],
+ ["8B7B",0x210F5],
+ ["8B7C",0x210F6],
+ ["9AEF",0x2112F],
+ ["9AF0",0x2113B],
+ ["8AFA",0x2113D],
+ ["8941",0x21145],
+ ["8B72",0x21148],
+ ["8AF3",0x2114F],
+ ["8BA8",0x21180],
+ ["9EAE",0x21187],
+ ["9E72",0x211D9],
+ ["FB73",0x2123C],
+ ["FB5F",0x2124F],
+ ["90BA",0x2127C],
+ ["91FE",0x212A8],
+ ["9EF6",0x212A9],
+ ["97ED",0x212B0],
+ ["9AF3",0x212E3],
+ ["A0EE",0x212FE],
+ ["967C",0x21302],
+ ["9345",0x21303],
+ ["986E",0x21304],
+ ["FA56",0x21305],
+ ["9AF5",0x21336],
+ ["FC4B",0x2133A],
+ ["9AF4",0x21375],
+ ["FEDE",0x21376],
+ ["FCB7",0x2138E],
+ ["97F1",0x21398],
+ ["97C7",0x2139C],
+ ["9CCB",0x213C5],
+ ["9240",0x213C6],
+ ["9CE8",0x213ED],
+ ["91FD",0x213FE],
+ ["974E",0x21413],
+ ["FB68",0x21416],
+ ["976C",0x21424],
+ ["8CC2",0x2143F],
+ ["97E8",0x21452],
+ ["FB6A",0x21454],
+ ["8B74",0x21455],
+ ["8EE7",0x2148A],
+ ["FDC8",0x21497],
+ ["9241",0x214B6],
+ ["96A1",0x214E8],
+ ["8EF3",0x214FD],
+ ["9AF7",0x21577],
+ ["8FA6",0x21582],
+ ["FAD6",0x21596],
+ ["9CC7",0x2160A],
+ ["FAD7",0x21613],
+ ["9AF8",0x21619],
+ ["FBA1",0x2163E],
+ ["8EC5",0x21661],
+ ["FBA4",0x21692],
+ ["FBC2",0x216B8],
+ ["9AC1",0x216BA],
+ ["91FA",0x216C0],
+ ["FEDB",0x216C1],
+ ["97AB",0x216C2],
+ ["9147",0x216D3],
+ ["FBB1",0x216D5],
+ ["8FEA",0x216DF],
+ ["94D2",0x216E6],
+ ["FE61",0x216E7],
+ ["FACE",0x216E8],
+ ["92ED",0x216FA],
+ ["91F3",0x216FB],
+ ["93C6",0x216FC],
+ ["935A",0x216FE],
+ ["FAFB",0x2170D],
+ ["92EF",0x21710],
+ ["FAC8",0x21726],
+ ["9847",0x2173A],
+ ["9366",0x2173B],
+ ["9855",0x2173C],
+ ["96E6",0x21757],
+ ["9F43",0x2176C],
+ ["9FAA",0x2176D],
+ ["94DA",0x2176E],
+ ["92EE",0x2176F],
+ ["FCAF",0x21770],
+ ["FBFB",0x21771],
+ ["8EF9",0x21773],
+ ["91F6",0x21774],
+ ["9364",0x217AB],
+ ["94F5",0x217B0],
+ ["9CB6",0x217B1],
+ ["FBAD",0x217B2],
+ ["984E",0x217B3],
+ ["8F44",0x217B4],
+ ["96FD",0x217B5],
+ ["9AF9",0x217C3],
+ ["9AFA",0x217C7],
+ ["9769",0x217D9],
+ ["95D4",0x217DA],
+ ["984B",0x217DB],
+ ["FBAA",0x217DC],
+ ["987C",0x217DF],
+ ["91EA",0x217EF],
+ ["9DAF",0x217F5],
+ ["9DC5",0x217F6],
+ ["91F1",0x217F8],
+ ["8EB1",0x217F9],
+ ["97A9",0x217FA],
+ ["FBAC",0x217FB],
+ ["FCB8",0x217FC],
+ ["9CB9",0x21820],
+ ["FBB0",0x21828],
+ ["FCD2",0x21829],
+ ["93CB",0x2182A],
+ ["9AFD",0x2182D],
+ ["91F4",0x21839],
+ ["8BAC",0x2183A],
+ ["A055",0x2183B],
+ ["9574",0x21840],
+ ["95BE",0x21845],
+ ["97AD",0x21852],
+ ["8EE9",0x2185E],
+ ["92F8",0x21861],
+ ["97BE",0x21862],
+ ["916C",0x21863],
+ ["94AA",0x21864],
+ ["FC63",0x21877],
+ ["9DC6",0x2187B],
+ ["97B5",0x21883],
+ ["92B8",0x21884],
+ ["91EF",0x21885],
+ ["FEA6",0x2189E],
+ ["9760",0x2189F],
+ ["9358",0x218A0],
+ ["9576",0x218A1],
+ ["8FAC",0x218A2],
+ ["91EC",0x218BE],
+ ["97B4",0x218BF],
+ ["91F7",0x218D1],
+ ["974A",0x218D6],
+ ["FB49",0x218D7],
+ ["9578",0x218D8],
+ ["93BC",0x218D9],
+ ["91D6",0x218FA],
+ ["9355",0x21903],
+ ["9356",0x21904],
+ ["9851",0x21905],
+ ["8FF8",0x21910],
+ ["FBC0",0x21911],
+ ["93F2",0x21912],
+ ["90D0",0x21915],
+ ["9C44",0x2191C],
+ ["9255",0x21922],
+ ["9363",0x21927],
+ ["91A5",0x2193B],
+ ["A0ED",0x21944],
+ ["FD6B",0x21958],
+ ["9AFE",0x2196A],
+ ["9351",0x2197C],
+ ["8C57",0x21980],
+ ["FA78",0x21983],
+ ["FEA8",0x21988],
+ ["9350",0x21996],
+ ["FA4C",0x219DB],
+ ["92F7",0x219F3],
+ ["9B40",0x21A2D],
+ ["FBCE",0x21A34],
+ ["9B41",0x21A45],
+ ["FEAD",0x21A4B],
+ ["8761",0x21A63],
+ ["FBD5",0x21B44],
+ ["8BC2",0x21BC1],
+ ["9A7C",0x21BC2],
+ ["9B42",0x21C2A],
+ ["9B43",0x21C70],
+ ["9E79",0x21CA2],
+ ["FBD9",0x21CA5],
+ ["9B44",0x21CAC],
+ ["A0A7",0x21D46],
+ ["876E",0x21D5E],
+ ["9BF3",0x21D90],
+ ["8C79",0x21DB6],
+ ["935E",0x21DBA],
+ ["89CB",0x21DCA],
+ ["9F53",0x21DD1],
+ ["93D7",0x21DEB],
+ ["FBE1",0x21DF9],
+ ["FED0",0x21E1C],
+ ["8CF1",0x21E23],
+ ["FBE2",0x21E37],
+ ["FCE3",0x21E3D],
+ ["9074",0x21E89],
+ ["FBE6",0x21EA4],
+ ["9BB7",0x21EA8],
+ ["9B45",0x21EC8],
+ ["9B47",0x21ED5],
+ ["9F50",0x21F0F],
+ ["9B48",0x21F15],
+ ["FC5B",0x21F6A],
+ ["98A9",0x21F9E],
+ ["9CFD",0x21FA1],
+ ["884C",0x21FE8],
+ ["9B4B",0x22045],
+ ["FBEC",0x22049],
+ ["8C69",0x2207E],
+ ["9BA8",0x2209A],
+ ["8AD5",0x220C7],
+ ["FA73",0x220FC],
+ ["FD59",0x2212A],
+ ["91A2",0x2215B],
+ ["FBED",0x22173],
+ ["9CA9",0x2217A],
+ ["8AA8",0x221A1],
+ ["8D42",0x221C1],
+ ["9BC3",0x221C3],
+ ["8AE1",0x22208],
+ ["9B4E",0x2227C],
+ ["95D0",0x22321],
+ ["905F",0x22325],
+ ["97EE",0x223BD],
+ ["FC4E",0x223D0],
+ ["9B4F",0x223D7],
+ ["9B50",0x223FA],
+ ["9EC6",0x22465],
+ ["FC50",0x22471],
+ ["FD73",0x2248B],
+ ["FDA7",0x22491],
+ ["9DA2",0x224B0],
+ ["FA58",0x224ED],
+ ["FA5E",0x22513],
+ ["A059",0x2251B],
+ ["FA75",0x22530],
+ ["FBBE",0x22554],
+ ["9CA2",0x2258D],
+ ["9370",0x225AF],
+ ["9371",0x225BE],
+ ["9377",0x2261B],
+ ["FEEF",0x2261C],
+ ["936D",0x2262B],
+ ["FC5D",0x22668],
+ ["90B8",0x2267A],
+ ["8AFC",0x22696],
+ ["FB41",0x22698],
+ ["9E6B",0x226F4],
+ ["94E3",0x226F5],
+ ["8EE2",0x226F6],
+ ["8C7D",0x22712],
+ ["8ED7",0x22714],
+ ["9C4D",0x2271B],
+ ["96A3",0x2271F],
+ ["9B51",0x2272A],
+ ["8AC3",0x22775],
+ ["96AA",0x22781],
+ ["8CE2",0x22796],
+ ["FC68",0x227B4],
+ ["8B6D",0x227B5],
+ ["FD67",0x227CD],
+ ["8AE9",0x22803],
+ ["FCA1",0x2285F],
+ ["936C",0x22860],
+ ["9B52",0x22871],
+ ["FE70",0x228AD],
+ ["FCA8",0x228C1],
+ ["FCE9",0x228F7],
+ ["9CB4",0x22926],
+ ["8AEA",0x22939],
+ ["9B53",0x2294F],
+ ["9B55",0x22967],
+ ["96AB",0x2296B],
+ ["FCA7",0x22980],
+ ["9B56",0x22993],
+ ["8ABC",0x22A66],
+ ["8ACB",0x22ACF],
+ ["9B57",0x22AD5],
+ ["89CD",0x22AE6],
+ ["9B59",0x22AE8],
+ ["9B5B",0x22B0E],
+ ["93A5",0x22B22],
+ ["9B5D",0x22B3F],
+ ["9E4F",0x22B43],
+ ["93A3",0x22B6A],
+ ["8A7B",0x22BCA],
+ ["8B42",0x22BCE],
+ ["9750",0x22C26],
+ ["8FB3",0x22C27],
+ ["8A50",0x22C38],
+ ["9B60",0x22C4C],
+ ["8B45",0x22C51],
+ ["8B46",0x22C55],
+ ["9DFE",0x22C62],
+ ["9B62",0x22C88],
+ ["937B",0x22C9B],
+ ["93B1",0x22CA1],
+ ["8A60",0x22CA9],
+ ["8AD8",0x22CB2],
+ ["9B63",0x22CB7],
+ ["8A69",0x22CC2],
+ ["8A47",0x22CC6],
+ ["8ACC",0x22CC9],
+ ["937C",0x22D07],
+ ["9B65",0x22D08],
+ ["9B66",0x22D12],
+ ["8A72",0x22D44],
+ ["8A7A",0x22D4C],
+ ["93AF",0x22D67],
+ ["8AB0",0x22D8D],
+ ["9B68",0x22D95],
+ ["9EA3",0x22DA0],
+ ["FAEC",0x22DA3],
+ ["8B77",0x22DA4],
+ ["9B67",0x22DB7],
+ ["8B59",0x22DEE],
+ ["FCB1",0x22E0D],
+ ["FCBB",0x22E36],
+ ["9B69",0x22E42],
+ ["93A8",0x22E78],
+ ["8AE0",0x22E8B],
+ ["9E51",0x22EB3],
+ ["8F5F",0x22EEF],
+ ["9B6A",0x22F74],
+ ["9B6B",0x22FCC],
+ ["97EC",0x22FE3],
+ ["9B6C",0x23033],
+ ["FE4E",0x23044],
+ ["FDC2",0x2304B],
+ ["9B6D",0x23066],
+ ["9167",0x2307D],
+ ["FCCC",0x2307E],
+ ["93B6",0x2308E],
+ ["90E4",0x230B7],
+ ["90E5",0x230BC],
+ ["9EF2",0x230DA],
+ ["93CA",0x23103],
+ ["8BBC",0x2313D],
+ ["8F46",0x2317D],
+ ["93CF",0x23182],
+ ["FCDB",0x231A4],
+ ["FCDC",0x231A5],
+ ["93C0",0x231B3],
+ ["FCE6",0x231C8],
+ ["96E7",0x231C9],
+ ["FCD8",0x231F7],
+ ["FCD9",0x231F8],
+ ["FDA6",0x231F9],
+ ["93CE",0x2320F],
+ ["95F1",0x23225],
+ ["9CE9",0x2322F],
+ ["FCE4",0x23231],
+ ["94AF",0x23232],
+ ["FA77",0x23233],
+ ["93CC",0x23234],
+ ["8CE1",0x23256],
+ ["905A",0x23262],
+ ["8C54",0x23281],
+ ["93BF",0x23289],
+ ["FB51",0x2328A],
+ ["93B9",0x232AB],
+ ["FED7",0x232AC],
+ ["93B7",0x232AD],
+ ["93D9",0x232D2],
+ ["93BB",0x232E0],
+ ["93DA",0x232E1],
+ ["98A3",0x23300],
+ ["90D1",0x2330A],
+ ["9B6E",0x2331F],
+ ["FA70",0x233B4],
+ ["9BEB",0x233CC],
+ ["9B6F",0x233DE],
+ ["FCFC",0x233E6],
+ ["8B40",0x233F4],
+ ["A07B",0x233F5],
+ ["8CA1",0x233F9],
+ ["97F7",0x233FA],
+ ["93E2",0x233FE],
+ ["FCD6",0x23400],
+ ["9559",0x2343F],
+ ["93A6",0x23450],
+ ["FD40",0x2346F],
+ ["935F",0x23472],
+ ["97F2",0x234E5],
+ ["9C76",0x23519],
+ ["8EF8",0x23530],
+ ["8CEB",0x23551],
+ ["8F47",0x2355A],
+ ["9B74",0x23567],
+ ["92B4",0x23595],
+ ["91ED",0x23599],
+ ["96D2",0x2359C],
+ ["FD46",0x235CD],
+ ["8F4F",0x235CE],
+ ["9549",0x235CF],
+ ["9B75",0x235F3],
+ ["FA5C",0x23600],
+ ["8751",0x23617],
+ ["9B79",0x2361A],
+ ["FD4B",0x2363C],
+ ["96D3",0x23640],
+ ["FD58",0x23659],
+ ["945F",0x2365F],
+ ["A0F5",0x23677],
+ ["9243",0x236A6],
+ ["97FA",0x236AD],
+ ["9DD9",0x236BA],
+ ["97F4",0x236DF],
+ ["924D",0x236EE],
+ ["FD5B",0x23703],
+ ["9B7A",0x23716],
+ ["9ED5",0x23720],
+ ["FAAE",0x2372D],
+ ["9CC9",0x2372F],
+ ["9258",0x2373F],
+ ["8EC8",0x23766],
+ ["94B4",0x23781],
+ ["93E1",0x237A2],
+ ["93DF",0x237BC],
+ ["FCF0",0x237C2],
+ ["93EC",0x237D5],
+ ["97F6",0x237D6],
+ ["96CF",0x237D7],
+ ["93DE",0x2383A],
+ ["8ACF",0x239C2],
+ ["9BA2",0x23AA7],
+ ["FD69",0x23ADB],
+ ["9352",0x23AEE],
+ ["98A2",0x23AFA],
+ ["8CE7",0x23B1A],
+ ["FD6E",0x23B5A],
+ ["8CA4",0x23C63],
+ ["FA7C",0x23C99],
+ ["93FA",0x23C9A],
+ ["907C",0x23C9B],
+ ["8F67",0x23CB5],
+ ["9DB7",0x23CB7],
+ ["A0E9",0x23CC7],
+ ["FA4E",0x23CC8],
+ ["FDA1",0x23CC9],
+ ["9E74",0x23CFC],
+ ["9FBF",0x23CFD],
+ ["9ECB",0x23CFE],
+ ["9BB9",0x23CFF],
+ ["9DD4",0x23D40],
+ ["97B9",0x23D5B],
+ ["8EF1",0x23D7E],
+ ["957B",0x23D8F],
+ ["9ED2",0x23DB6],
+ ["9753",0x23DB7],
+ ["96A4",0x23DB8],
+ ["8FBE",0x23DB9],
+ ["94D9",0x23DBA],
+ ["9058",0x23DBB],
+ ["FD79",0x23DBC],
+ ["FD7B",0x23DBD],
+ ["8EDA",0x23DE3],
+ ["8EFA",0x23DF8],
+ ["8762",0x23E06],
+ ["9BA5",0x23E11],
+ ["9ED9",0x23E2C],
+ ["97D4",0x23E2D],
+ ["90BB",0x23E2E],
+ ["FDBC",0x23E2F],
+ ["FDC6",0x23E30],
+ ["9248",0x23E31],
+ ["92B5",0x23E39],
+ ["9DC1",0x23E88],
+ ["92B9",0x23E89],
+ ["92A6",0x23E8A],
+ ["8F4B",0x23E8B],
+ ["9BA6",0x23EB9],
+ ["92B6",0x23EBF],
+ ["8E40",0x23ED7],
+ ["9ED8",0x23EF7],
+ ["945E",0x23EF8],
+ ["985F",0x23EF9],
+ ["94CE",0x23EFA],
+ ["924A",0x23EFB],
+ ["FD70",0x23EFC],
+ ["9467",0x23F35],
+ ["8DEC",0x23F41],
+ ["9BD8",0x23F4A],
+ ["8763",0x23F61],
+ ["9448",0x23F7F],
+ ["FAC1",0x23F80],
+ ["9CF7",0x23F81],
+ ["FDBE",0x23F82],
+ ["8FDA",0x23F8F],
+ ["FDD9",0x23FB4],
+ ["FC7E",0x23FB7],
+ ["93F9",0x23FC0],
+ ["FA43",0x23FC5],
+ ["FAEB",0x23FEB],
+ ["FAC3",0x23FEC],
+ ["97D3",0x23FED],
+ ["95F9",0x23FEE],
+ ["9C48",0x23FEF],
+ ["FDD8",0x23FF0],
+ ["A0D8",0x24011],
+ ["FDD7",0x24039],
+ ["FB4A",0x2403A],
+ ["9BAF",0x2403B],
+ ["944B",0x2403C],
+ ["FDC9",0x2403D],
+ ["8EAC",0x24057],
+ ["FDB2",0x24085],
+ ["925A",0x2408B],
+ ["FCBD",0x2408C],
+ ["92D9",0x2408D],
+ ["FDD5",0x24091],
+ ["92DD",0x240C9],
+ ["9259",0x240E1],
+ ["8CF0",0x240EC],
+ ["96BA",0x24104],
+ ["925B",0x2410F],
+ ["9BAB",0x24119],
+ ["FDDA",0x2413F],
+ ["FDDE",0x24140],
+ ["FDD3",0x24144],
+ ["8C46",0x2414E],
+ ["FDD6",0x24155],
+ ["FDDC",0x24156],
+ ["FDDD",0x24157],
+ ["90FE",0x2415C],
+ ["FEA1",0x2415F],
+ ["8BAD",0x24177],
+ ["9CD8",0x2417A],
+ ["9E6D",0x241A3],
+ ["FD7C",0x241A4],
+ ["FB61",0x241A5],
+ ["96F8",0x241AC],
+ ["96F0",0x241B5],
+ ["FCF4",0x241CD],
+ ["FE60",0x241E2],
+ ["9852",0x241FC],
+ ["964F",0x2421B],
+ ["916E",0x2424B],
+ ["986D",0x24256],
+ ["9864",0x24259],
+ ["9453",0x24276],
+ ["FDEC",0x24277],
+ ["FB78",0x24278],
+ ["95BA",0x24284],
+ ["985D",0x24293],
+ ["92F9",0x24295],
+ ["985A",0x242A5],
+ ["8750",0x242BF],
+ ["FDF6",0x242C1],
+ ["93D0",0x242C9],
+ ["9862",0x242CA],
+ ["9BAD",0x242EE],
+ ["974F",0x242FA],
+ ["9BAE",0x2430D],
+ ["9452",0x2431A],
+ ["9BB0",0x24334],
+ ["91D2",0x24348],
+ ["97EA",0x24362],
+ ["FB6B",0x24363],
+ ["91B1",0x24364],
+ ["FDF3",0x24365],
+ ["92CB",0x2438C],
+ ["9BB1",0x24396],
+ ["FCEC",0x2439C],
+ ["986B",0x243BD],
+ ["9751",0x243C1],
+ ["9871",0x243E9],
+ ["95EF",0x243EA],
+ ["9EF3",0x243F2],
+ ["91E8",0x243F8],
+ ["9BBA",0x24404],
+ ["FB4C",0x24435],
+ ["926A",0x24436],
+ ["FDF8",0x2445A],
+ ["9861",0x2445B],
+ ["91E7",0x24473],
+ ["93ED",0x24487],
+ ["9744",0x24488],
+ ["91E1",0x244B9],
+ ["FBF5",0x244BC],
+ ["9869",0x244CE],
+ ["8A62",0x244D3],
+ ["9BBB",0x244D6],
+ ["8CA8",0x24505],
+ ["9C55",0x24521],
+ ["8E77",0x24578],
+ ["8AB2",0x245C8],
+ ["9EBC",0x24618],
+ ["93E6",0x2462A],
+ ["93A2",0x24665],
+ ["9BBD",0x24674],
+ ["94B3",0x24697],
+ ["937D",0x246D4],
+ ["9E66",0x24706],
+ ["9459",0x24725],
+ ["9BBF",0x2472F],
+ ["9458",0x2478F],
+ ["9EA5",0x247E0],
+ ["9BC7",0x24812],
+ ["FE54",0x24823],
+ ["8E74",0x24882],
+ ["8BD6",0x248E9],
+ ["94B6",0x248F0],
+ ["FD74",0x248F1],
+ ["98C0",0x248F2],
+ ["94A5",0x248F3],
+ ["9BC8",0x248FB],
+ ["95ED",0x248FF],
+ ["FD7E",0x24900],
+ ["FBEB",0x24901],
+ ["FD7D",0x2490C],
+ ["976F",0x24916],
+ ["9461",0x24917],
+ ["9FC1",0x24919],
+ ["95D7",0x2492F],
+ ["FA52",0x24933],
+ ["9C58",0x24934],
+ ["9F68",0x2493E],
+ ["9BE7",0x2493F],
+ ["FCCE",0x24940],
+ ["96E8",0x24941],
+ ["FA49",0x24942],
+ ["97A1",0x24943],
+ ["954D",0x24962],
+ ["9EF8",0x24963],
+ ["FE49",0x24974],
+ ["91CE",0x24975],
+ ["9771",0x24976],
+ ["8CCF",0x2497B],
+ ["FDB1",0x2497F],
+ ["FC6E",0x24982],
+ ["9CF2",0x24988],
+ ["93B8",0x24989],
+ ["9043",0x2498A],
+ ["9759",0x2498B],
+ ["94D7",0x2498C],
+ ["FE66",0x2498D],
+ ["947D",0x2498E],
+ ["FC6F",0x2498F],
+ ["9246",0x24994],
+ ["FA6D",0x249A4],
+ ["8EF7",0x249A7],
+ ["FBB7",0x249A9],
+ ["947C",0x249AB],
+ ["92CD",0x249AC],
+ ["97B2",0x249AD],
+ ["FE65",0x249B7],
+ ["967E",0x249B8],
+ ["9758",0x249B9],
+ ["9B77",0x249BA],
+ ["91CF",0x249BB],
+ ["94A4",0x249C5],
+ ["9CAD",0x249D0],
+ ["8BAB",0x249DA],
+ ["96D5",0x249DE],
+ ["FCB3",0x249DF],
+ ["93AE",0x249E3],
+ ["976D",0x249E5],
+ ["9446",0x249EC],
+ ["95F7",0x249ED],
+ ["9C46",0x249F6],
+ ["955B",0x249F7],
+ ["91D1",0x249F8],
+ ["94F4",0x249F9],
+ ["FE67",0x249FB],
+ ["92A5",0x24A0E],
+ ["FEDF",0x24A12],
+ ["8CAB",0x24A13],
+ ["9BC9",0x24A15],
+ ["FCED",0x24A21],
+ ["FDFA",0x24A22],
+ ["FCC8",0x24A23],
+ ["FE62",0x24A24],
+ ["91FC",0x24A25],
+ ["FE6B",0x24A26],
+ ["FDF9",0x24A27],
+ ["FCC7",0x24A28],
+ ["914E",0x24A29],
+ ["9CB8",0x24A2A],
+ ["9767",0x24A3E],
+ ["95EE",0x24A42],
+ ["9BB2",0x24A45],
+ ["9460",0x24A4A],
+ ["94A2",0x24A4E],
+ ["9875",0x24A4F],
+ ["97AC",0x24A50],
+ ["91D3",0x24A51],
+ ["987B",0x24A5D],
+ ["8EEB",0x24A65],
+ ["976A",0x24A66],
+ ["965E",0x24A67],
+ ["97EB",0x24A71],
+ ["9FF9",0x24A77],
+ ["95F8",0x24A78],
+ ["FEA2",0x24A79],
+ ["8FE6",0x24A7A],
+ ["FE7E",0x24A8C],
+ ["9DA4",0x24A93],
+ ["9768",0x24A94],
+ ["8EEC",0x24A95],
+ ["94BD",0x24A96],
+ ["945B",0x24AA4],
+ ["9CF6",0x24AA5],
+ ["FAA7",0x24AA6],
+ ["9BD9",0x24AA7],
+ ["FA5D",0x24AB1],
+ ["9656",0x24AB2],
+ ["9762",0x24AB3],
+ ["94BA",0x24ABA],
+ ["A04F",0x24ABB],
+ ["92D8",0x24ABC],
+ ["9BCB",0x24AC0],
+ ["94BB",0x24AC7],
+ ["9D5F",0x24ACA],
+ ["90CF",0x24AD1],
+ ["9465",0x24ADF],
+ ["9F4C",0x24AE2],
+ ["90D8",0x24AE9],
+ ["8D5B",0x24B0F],
+ ["9EBE",0x24B6E],
+ ["FB6D",0x24BF5],
+ ["95CA",0x24C09],
+ ["9DC2",0x24C9E],
+ ["97F8",0x24C9F],
+ ["8FFC",0x24CC9],
+ ["9473",0x24CD9],
+ ["9474",0x24D06],
+ ["FEB7",0x24D13],
+ ["8A4B",0x24DB8],
+ ["8A55",0x24DEA],
+ ["8B69",0x24DEB],
+ ["8ADC",0x24E3B],
+ ["8B76",0x24E50],
+ ["9BCE",0x24EA5],
+ ["8A68",0x24EA7],
+ ["A0F8",0x24F0E],
+ ["98DF",0x24F5C],
+ ["FEB5",0x24F82],
+ ["9BCF",0x24F86],
+ ["96FB",0x24F97],
+ ["9BFB",0x24F9A],
+ ["9ECE",0x24FA9],
+ ["8EE5",0x24FB8],
+ ["9E7B",0x24FC2],
+ ["9BD2",0x2502C],
+ ["8AA5",0x25052],
+ ["FECE",0x2509D],
+ ["8A45",0x2512B],
+ ["9DFC",0x25148],
+ ["FECF",0x2517D],
+ ["8BA5",0x2517E],
+ ["8C4A",0x251CD],
+ ["8AEC",0x251E3],
+ ["FCE0",0x251E6],
+ ["94AD",0x251E7],
+ ["FED5",0x25220],
+ ["94AC",0x25221],
+ ["FC5A",0x25250],
+ ["9BD6",0x25299],
+ ["8A6F",0x252C7],
+ ["8BA9",0x252D8],
+ ["8E5F",0x2530E],
+ ["9DCB",0x25311],
+ ["FCE7",0x25313],
+ ["9BD7",0x25419],
+ ["93C8",0x25425],
+ ["91F0",0x2542F],
+ ["8FE0",0x25430],
+ ["9BDB",0x25446],
+ ["90ED",0x2546C],
+ ["9BDC",0x2546E],
+ ["8D53",0x2549A],
+ ["A0EC",0x25531],
+ ["98FA",0x25535],
+ ["9BE0",0x2553F],
+ ["93C7",0x2555B],
+ ["9249",0x2555C],
+ ["96E1",0x2555D],
+ ["9BE2",0x2555E],
+ ["9BE4",0x25562],
+ ["8FE1",0x25565],
+ ["9BE5",0x25566],
+ ["94C0",0x25581],
+ ["93C3",0x25584],
+ ["93C5",0x2558F],
+ ["9079",0x255B9],
+ ["977B",0x255D5],
+ ["907E",0x255DB],
+ ["FEE6",0x255E0],
+ ["FE46",0x25605],
+ ["9DB8",0x25635],
+ ["9270",0x25651],
+ ["95A8",0x25683],
+ ["8CB0",0x25695],
+ ["94C8",0x256E3],
+ ["98B9",0x256F6],
+ ["9140",0x25706],
+ ["FCBE",0x2571D],
+ ["9157",0x25725],
+ ["8BB2",0x2573D],
+ ["FADF",0x25772],
+ ["9BE6",0x257C7],
+ ["9643",0x257DF],
+ ["8E44",0x257E0],
+ ["9C4F",0x257E1],
+ ["FEF4",0x25857],
+ ["9BE8",0x2585D],
+ ["93DC",0x25872],
+ ["966F",0x258C8],
+ ["8E4A",0x258E1],
+ ["9BED",0x25903],
+ ["92F6",0x25946],
+ ["9DB9",0x25956],
+ ["8E4E",0x259AC],
+ ["FBCF",0x259CC],
+ ["8760",0x25A54],
+ ["9EC2",0x25A95],
+ ["94E5",0x25A9C],
+ ["9BF0",0x25AAE],
+ ["94E4",0x25AAF],
+ ["9551",0x25AE9],
+ ["8BBB",0x25B74],
+ ["9BF1",0x25B89],
+ ["94F0",0x25BB3],
+ ["8E64",0x25BB4],
+ ["94EA",0x25BC6],
+ ["8F61",0x25BE4],
+ ["9B64",0x25BE8],
+ ["8E5B",0x25C01],
+ ["9BF2",0x25C06],
+ ["9FBE",0x25C21],
+ ["9DC9",0x25C4A],
+ ["8E6C",0x25C65],
+ ["8F73",0x25C91],
+ ["8CAF",0x25CA4],
+ ["8F75",0x25CC0],
+ ["8E71",0x25CC1],
+ ["8E60",0x25CFE],
+ ["8E6A",0x25D20],
+ ["8C4C",0x25D30],
+ ["9552",0x25D43],
+ ["9554",0x25E0E],
+ ["8AD4",0x25E49],
+ ["9DBB",0x25E81],
+ ["9543",0x25E82],
+ ["92FE",0x25E83],
+ ["94F2",0x25EA6],
+ ["94F1",0x25EBC],
+ ["A0EA",0x25ED7],
+ ["9DD2",0x25ED8],
+ ["A0B1",0x25F1A],
+ ["91F8",0x25F4B],
+ ["9462",0x25FE1],
+ ["9BA4",0x25FE2],
+ ["8EAD",0x26029],
+ ["9EAD",0x26048],
+ ["96D0",0x26064],
+ ["FEEE",0x26083],
+ ["8AB4",0x26097],
+ ["9757",0x260A4],
+ ["8A77",0x260A5],
+ ["9BF7",0x26102],
+ ["8EB5",0x26121],
+ ["A06D",0x26159],
+ ["8EB6",0x2615A],
+ ["9756",0x2615B],
+ ["9540",0x2615C],
+ ["A0F3",0x261AD],
+ ["94BE",0x261AE],
+ ["9BFA",0x261B2],
+ ["FDDF",0x261DD],
+ ["9DBC",0x26258],
+ ["94FE",0x26261],
+ ["8BDB",0x2626A],
+ ["A0FE",0x2626B],
+ ["8EC0",0x262D0],
+ ["9F47",0x26335],
+ ["8BDE",0x2634B],
+ ["A0FB",0x2634C],
+ ["8EC3",0x26351],
+ ["9649",0x263BE],
+ ["FEC2",0x263F5],
+ ["954C",0x263F8],
+ ["9BFD",0x26402],
+ ["90CC",0x26410],
+ ["9C60",0x26411],
+ ["954B",0x26412],
+ ["9BFE",0x2644A],
+ ["9C70",0x26469],
+ ["9C43",0x26484],
+ ["9C47",0x26488],
+ ["8ECC",0x26489],
+ ["8E54",0x2648D],
+ ["8EE4",0x26498],
+ ["9C49",0x26512],
+ ["8B5E",0x26572],
+ ["955E",0x265A0],
+ ["955C",0x265AD],
+ ["9C4B",0x265BF],
+ ["8BE1",0x26612],
+ ["8ED9",0x26626],
+ ["9DB4",0x266AF],
+ ["925F",0x266B1],
+ ["9C4C",0x266B5],
+ ["8AA1",0x266DA],
+ ["8EDB",0x266E8],
+ ["9C56",0x266FC],
+ ["8AA2",0x26716],
+ ["9754",0x26741],
+ ["9C5E",0x26799],
+ ["9ED4",0x267B3],
+ ["9568",0x267B4],
+ ["A0C3",0x267CC],
+ ["8AE6",0x2681C],
+ ["A0F7",0x26846],
+ ["9C61",0x2685E],
+ ["9C5F",0x2686E],
+ ["FC4D",0x26888],
+ ["9E5B",0x2688A],
+ ["9E69",0x26893],
+ ["9C63",0x268C7],
+ ["FEC7",0x2690E],
+ ["FEC6",0x26911],
+ ["9C67",0x26926],
+ ["9C69",0x26939],
+ ["8BE2",0x26951],
+ ["9165",0x269A8],
+ ["9CE7",0x269B5],
+ ["8A54",0x269F2],
+ ["9C6C",0x269FA],
+ ["9C6E",0x26A2D],
+ ["FE5D",0x26A2E],
+ ["9C73",0x26A34],
+ ["956A",0x26A42],
+ ["956D",0x26A51],
+ ["8EF0",0x26A52],
+ ["8F4D",0x26B05],
+ ["8EF6",0x26B0A],
+ ["FABC",0x26B13],
+ ["8CD5",0x26B15],
+ ["875E",0x26B23],
+ ["FBDA",0x26B28],
+ ["8B4C",0x26B50],
+ ["FD75",0x26B51],
+ ["9BDD",0x26B52],
+ ["FAF5",0x26B53],
+ ["9C74",0x26B5B],
+ ["9545",0x26B75],
+ ["96C6",0x26B82],
+ ["8F6A",0x26B96],
+ ["8F4E",0x26B97],
+ ["9C78",0x26B9D],
+ ["FA55",0x26BB3],
+ ["97E4",0x26BC0],
+ ["9C41",0x26BF7],
+ ["925C",0x26C21],
+ ["96FA",0x26C40],
+ ["8CF6",0x26C41],
+ ["8D4D",0x26C46],
+ ["FB66",0x26C7E],
+ ["8E65",0x26C7F],
+ ["9849",0x26C80],
+ ["FBA8",0x26C81],
+ ["9842",0x26C82],
+ ["9C7A",0x26CA4],
+ ["97FB",0x26CB7],
+ ["90CA",0x26CB8],
+ ["9C5B",0x26CBD],
+ ["974D",0x26CC0],
+ ["8ED3",0x26CC3],
+ ["9561",0x26CD1],
+ ["9F4B",0x26D22],
+ ["9FB5",0x26D23],
+ ["93D2",0x26D24],
+ ["FDAA",0x26D25],
+ ["9840",0x26D26],
+ ["9146",0x26D27],
+ ["9867",0x26D28],
+ ["FA5A",0x26D29],
+ ["FBA9",0x26D2A],
+ ["9841",0x26D51],
+ ["8CD3",0x26D74],
+ ["FCFD",0x26DA0],
+ ["FDAB",0x26DA1],
+ ["91BD",0x26DA2],
+ ["8F4C",0x26DA3],
+ ["96C9",0x26DA4],
+ ["8F55",0x26DA5],
+ ["FBAE",0x26DA6],
+ ["956F",0x26DA7],
+ ["9C7D",0x26DAE],
+ ["A0F0",0x26DDC],
+ ["946F",0x26DEA],
+ ["FDAC",0x26DEB],
+ ["96CB",0x26DF0],
+ ["96CE",0x26E00],
+ ["A056",0x26E05],
+ ["9CE1",0x26E07],
+ ["96C4",0x26E12],
+ ["8F5E",0x26E42],
+ ["8F6C",0x26E43],
+ ["8EA3",0x26E44],
+ ["FBB3",0x26E45],
+ ["FC53",0x26E6E],
+ ["FDB3",0x26E72],
+ ["8F6B",0x26E77],
+ ["96CA",0x26E84],
+ ["8753",0x26E8B],
+ ["8F79",0x26E99],
+ ["9E6F",0x26ED0],
+ ["A0C5",0x26ED1],
+ ["FC78",0x26ED2],
+ ["8E42",0x26ED3],
+ ["8F5A",0x26ED4],
+ ["90C2",0x26ED5],
+ ["8EA5",0x26ED6],
+ ["9061",0x26ED7],
+ ["924F",0x26F26],
+ ["9373",0x26F73],
+ ["FDB5",0x26F74],
+ ["FECC",0x26F9F],
+ ["FBBD",0x26FA1],
+ ["8CD6",0x26FBE],
+ ["9843",0x26FDE],
+ ["96C5",0x26FDF],
+ ["89BC",0x2700E],
+ ["9CA3",0x2704B],
+ ["924B",0x27052],
+ ["984A",0x27053],
+ ["8FA4",0x27088],
+ ["A0F1",0x270AD],
+ ["9EFB",0x270AE],
+ ["9CD2",0x270AF],
+ ["8FA7",0x270CD],
+ ["8754",0x270D2],
+ ["FC5C",0x270F8],
+ ["9845",0x27109],
+ ["9046",0x2710C],
+ ["8CD1",0x2710D],
+ ["FEFA",0x27126],
+ ["9560",0x27127],
+ ["9F48",0x27164],
+ ["9247",0x27165],
+ ["90FB",0x27175],
+ ["9CA4",0x271CD],
+ ["9571",0x2721B],
+ ["8745",0x27267],
+ ["9CA6",0x27280],
+ ["9CA7",0x27285],
+ ["9CAA",0x2728B],
+ ["9ED3",0x272B2],
+ ["9E70",0x272B6],
+ ["9CAC",0x272E6],
+ ["8752",0x27352],
+ ["8FAE",0x2739A],
+ ["8D50",0x273FF],
+ ["957D",0x27422],
+ ["9CB0",0x27450],
+ ["97B6",0x27484],
+ ["A0BD",0x27486],
+ ["8ADF",0x27574],
+ ["9EAA",0x275A3],
+ ["8FBD",0x275E0],
+ ["8FBF",0x275E4],
+ ["9369",0x275FD],
+ ["9BA7",0x275FE],
+ ["C8A4",0x27607],
+ ["FEEA",0x2760C],
+ ["9BE1",0x27632],
+ ["8B41",0x27639],
+ ["9DB6",0x27655],
+ ["A0EB",0x27656],
+ ["9BA3",0x27657],
+ ["8BA1",0x27694],
+ ["8FC8",0x2770F],
+ ["894C",0x27735],
+ ["9860",0x27736],
+ ["94C7",0x27741],
+ ["8B58",0x2775E],
+ ["95AB",0x27784],
+ ["95AA",0x27785],
+ ["9CC3",0x277CC],
+ ["9CC4",0x27858],
+ ["93D6",0x27870],
+ ["9DAC",0x2789D],
+ ["8BE6",0x278B2],
+ ["8A71",0x278C8],
+ ["8FD1",0x27924],
+ ["99D5",0x27967],
+ ["90F4",0x2797A],
+ ["8AA3",0x279A0],
+ ["9CCE",0x279DD],
+ ["9CD4",0x279FD],
+ ["9CD5",0x27A0A],
+ ["FBC8",0x27A0E],
+ ["9DB3",0x27A3E],
+ ["FC70",0x27A53],
+ ["8FD7",0x27A59],
+ ["9B73",0x27A79],
+ ["FA5B",0x27A84],
+ ["8FD2",0x27ABD],
+ ["9064",0x27ABE],
+ ["98B6",0x27AF4],
+ ["9668",0x27B06],
+ ["9CD6",0x27B0B],
+ ["98BD",0x27B18],
+ ["8FDC",0x27B38],
+ ["FEF6",0x27B39],
+ ["8FD9",0x27B3A],
+ ["9541",0x27B48],
+ ["876C",0x27BEF],
+ ["97F3",0x27BF4],
+ ["9BF8",0x27C12],
+ ["875A",0x27C6C],
+ ["8748",0x27CB1],
+ ["874A",0x27CC5],
+ ["9E6C",0x27D2F],
+ ["8FF2",0x27D53],
+ ["8FEE",0x27D54],
+ ["9CD7",0x27D66],
+ ["9E6E",0x27D73],
+ ["8A40",0x27D84],
+ ["8FEF",0x27D8F],
+ ["8FF4",0x27D98],
+ ["8FF5",0x27DBD],
+ ["95C2",0x27DDC],
+ ["986A",0x27E4D],
+ ["97CF",0x27E4F],
+ ["9EE5",0x27F2E],
+ ["9E7C",0x27FF9],
+ ["9041",0x28002],
+ ["9CDB",0x28009],
+ ["9441",0x2801E],
+ ["9CE6",0x28023],
+ ["9DB0",0x28024],
+ ["9CEA",0x28048],
+ ["9CED",0x28083],
+ ["9CFA",0x28090],
+ ["8B62",0x280BD],
+ ["8A4E",0x280BE],
+ ["9CCA",0x280E8],
+ ["8A66",0x280E9],
+ ["9CFB",0x280F4],
+ ["9CFC",0x2812E],
+ ["9CFE",0x2814F],
+ ["8A53",0x2815D],
+ ["9CE5",0x2816F],
+ ["9D40",0x28189],
+ ["9D41",0x281AF],
+ ["9045",0x281BC],
+ ["8B73",0x28207],
+ ["97CA",0x28218],
+ ["9D42",0x2821A],
+ ["8A61",0x28256],
+ ["8BAE",0x2827C],
+ ["8AD2",0x2829B],
+ ["8BA2",0x282CD],
+ ["9DF2",0x282E2],
+ ["9D43",0x28306],
+ ["9CDF",0x28318],
+ ["9D44",0x2832F],
+ ["8ECA",0x2833A],
+ ["904E",0x28365],
+ ["8EB3",0x2836D],
+ ["9FF5",0x2837D],
+ ["9D45",0x2838A],
+ ["904F",0x28412],
+ ["9D47",0x28468],
+ ["89CA",0x2846C],
+ ["9CB5",0x28473],
+ ["FBFE",0x28482],
+ ["905E",0x28501],
+ ["9063",0x2853C],
+ ["9057",0x2853D],
+ ["9066",0x2856C],
+ ["9BC0",0x285E8],
+ ["FCE5",0x285F4],
+ ["9162",0x28600],
+ ["9067",0x2860B],
+ ["8FA1",0x28625],
+ ["8FA2",0x2863B],
+ ["9D48",0x286AA],
+ ["FAD3",0x286AB],
+ ["8D4F",0x286B2],
+ ["905D",0x286BC],
+ ["90B9",0x286D8],
+ ["906B",0x286E6],
+ ["8C5C",0x2870F],
+ ["9069",0x28713],
+ ["FE57",0x28804],
+ ["FE55",0x2882B],
+ ["9073",0x28933],
+ ["9BEF",0x28948],
+ ["9CF0",0x28949],
+ ["9D4B",0x28956],
+ ["FED9",0x28964],
+ ["FEDA",0x28968],
+ ["91E0",0x2896C],
+ ["8D43",0x2896D],
+ ["91D8",0x2897E],
+ ["9646",0x28989],
+ ["9360",0x289A8],
+ ["FA53",0x289AA],
+ ["9CD3",0x289AB],
+ ["9D4E",0x289B8],
+ ["FB40",0x289BC],
+ ["8DE2",0x289C0],
+ ["9442",0x289DC],
+ ["9056",0x289DE],
+ ["9865",0x289E1],
+ ["8C6C",0x289E3],
+ ["FA4A",0x289E4],
+ ["9D50",0x289E7],
+ ["9D52",0x289E8],
+ ["95AF",0x289F9],
+ ["975A",0x289FA],
+ ["9349",0x289FB],
+ ["9747",0x289FC],
+ ["A0F4",0x28A0F],
+ ["9778",0x28A16],
+ ["8FCF",0x28A25],
+ ["FC60",0x28A29],
+ ["8C4E",0x28A32],
+ ["FC56",0x28A36],
+ ["91DC",0x28A44],
+ ["9661",0x28A45],
+ ["92EC",0x28A46],
+ ["935D",0x28A47],
+ ["8EDE",0x28A48],
+ ["96FE",0x28A49],
+ ["FD4F",0x28A4A],
+ ["95DE",0x28A4B],
+ ["98B0",0x28A59],
+ ["A040",0x28A5A],
+ ["97BD",0x28A81],
+ ["977D",0x28A82],
+ ["97F5",0x28A83],
+ ["9BAC",0x28A9A],
+ ["FADA",0x28A9B],
+ ["92C2",0x28A9C],
+ ["97B1",0x28AC0],
+ ["907B",0x28AC6],
+ ["93FE",0x28ACB],
+ ["947B",0x28ACC],
+ ["9777",0x28ACE],
+ ["FABE",0x28ADE],
+ ["FD43",0x28ADF],
+ ["90C6",0x28AE0],
+ ["90A4",0x28AE1],
+ ["90A8",0x28AE2],
+ ["94A9",0x28AE3],
+ ["90A9",0x28AE5],
+ ["8C65",0x28AEA],
+ ["95E0",0x28AFC],
+ ["907D",0x28B0C],
+ ["9265",0x28B13],
+ ["FDBA",0x28B21],
+ ["93C4",0x28B22],
+ ["FEED",0x28B2B],
+ ["9DAB",0x28B2C],
+ ["A0E3",0x28B2D],
+ ["9648",0x28B2F],
+ ["9D53",0x28B46],
+ ["8AA9",0x28B4C],
+ ["9BC5",0x28B4E],
+ ["965D",0x28B50],
+ ["975F",0x28B63],
+ ["965F",0x28B64],
+ ["966E",0x28B65],
+ ["FB5D",0x28B66],
+ ["9DB1",0x28B6C],
+ ["FEA3",0x28B8F],
+ ["9DB2",0x28B99],
+ ["95AE",0x28B9C],
+ ["FCA3",0x28B9D],
+ ["8769",0x28BB9],
+ ["A0A2",0x28BC2],
+ ["9655",0x28BC5],
+ ["9D54",0x28BD4],
+ ["9341",0x28BD7],
+ ["95AD",0x28BD9],
+ ["91D5",0x28BDA],
+ ["977A",0x28BE7],
+ ["FDFC",0x28BE8],
+ ["8E47",0x28BE9],
+ ["93FD",0x28BEA],
+ ["90A5",0x28BEB],
+ ["90AC",0x28BEC],
+ ["95AC",0x28BF5],
+ ["90AE",0x28BFF],
+ ["FEA5",0x28C03],
+ ["9D56",0x28C09],
+ ["97E3",0x28C1C],
+ ["95E2",0x28C1D],
+ ["9466",0x28C23],
+ ["9647",0x28C26],
+ ["91B8",0x28C2B],
+ ["9CEC",0x28C30],
+ ["90AD",0x28C39],
+ ["95E3",0x28C3B],
+ ["8B4F",0x28CCA],
+ ["8AE3",0x28CCD],
+ ["8B4D",0x28CD2],
+ ["95EA",0x28D34],
+ ["8B4E",0x28D99],
+ ["8CC1",0x28DB9],
+ ["8BED",0x28E0F],
+ ["91D9",0x28E36],
+ ["A0A4",0x28E39],
+ ["95F5",0x28E65],
+ ["95F4",0x28E66],
+ ["9FB3",0x28E97],
+ ["FEAF",0x28EAC],
+ ["FE72",0x28EB2],
+ ["927A",0x28EB3],
+ ["FEAC",0x28ED9],
+ ["95F3",0x28EE7],
+ ["9D58",0x28FC5],
+ ["8D46",0x29079],
+ ["9372",0x29088],
+ ["91C5",0x2908B],
+ ["9642",0x29093],
+ ["90CD",0x290AF],
+ ["95FE",0x290B0],
+ ["9159",0x290B1],
+ ["9C65",0x290C0],
+ ["97CC",0x290E4],
+ ["90CE",0x290E5],
+ ["9D59",0x290EC],
+ ["FCF5",0x290ED],
+ ["FEFD",0x2910D],
+ ["9D5B",0x29110],
+ ["9D5C",0x2913C],
+ ["937E",0x2914D],
+ ["98AC",0x2915B],
+ ["9D5E",0x2915E],
+ ["FDD0",0x29170],
+ ["FD60",0x2919C],
+ ["9CCF",0x291A8],
+ ["90DD",0x291D5],
+ ["90E0",0x291EB],
+ ["90F3",0x2941D],
+ ["98B1",0x29420],
+ ["90F0",0x29433],
+ ["93BD",0x2943F],
+ ["95B7",0x29448],
+ ["9F46",0x294D0],
+ ["8E4B",0x294D9],
+ ["9658",0x294DA],
+ ["8A4C",0x294E5],
+ ["9D63",0x294E7],
+ ["9ECF",0x2959E],
+ ["9D65",0x295B0],
+ ["9D66",0x295B8],
+ ["965A",0x295D7],
+ ["9D64",0x295E9],
+ ["8A6C",0x295F4],
+ ["8AD9",0x29720],
+ ["9D67",0x29732],
+ ["8A70",0x297D4],
+ ["8BF3",0x29810],
+ ["9150",0x29857],
+ ["9CC1",0x298A4],
+ ["9D68",0x298D1],
+ ["93A7",0x298EA],
+ ["9674",0x298F1],
+ ["8CFD",0x298FA],
+ ["A0EF",0x29903],
+ ["9151",0x29905],
+ ["96C1",0x2992F],
+ ["8777",0x29945],
+ ["8C64",0x29947],
+ ["9676",0x29948],
+ ["9D69",0x29949],
+ ["FCA4",0x2995D],
+ ["9D6A",0x2996A],
+ ["924E",0x2999D],
+ ["9D6B",0x299C3],
+ ["9BC1",0x299C9],
+ ["9D6C",0x29A28],
+ ["8A65",0x29A4D],
+ ["915D",0x29B05],
+ ["9D6D",0x29B0E],
+ ["915A",0x29BD5],
+ ["8C42",0x29C73],
+ ["9CC0",0x29CAD],
+ ["916A",0x29D3E],
+ ["9D6E",0x29D5A],
+ ["9EA6",0x29D7C],
+ ["9DCD",0x29D98],
+ ["9D6F",0x29D9B],
+ ["89BB",0x29DF6],
+ ["9EF9",0x29E06],
+ ["96B4",0x29E2D],
+ ["9172",0x29E68],
+ ["9EC8",0x29EAC],
+ ["8771",0x29EB0],
+ ["8B55",0x29EC3],
+ ["9D71",0x29EF8],
+ ["9D72",0x29F23],
+ ["9ECC",0x29F30],
+ ["9174",0x29FB7],
+ ["9ED0",0x29FDE],
+ ["905C",0x2A014],
+ ["8ED2",0x2A087],
+ ["91A8",0x2A0B9],
+ ["9177",0x2A0E1],
+ ["96BF",0x2A0ED],
+ ["96C0",0x2A0F3],
+ ["8FB1",0x2A0F8],
+ ["96B7",0x2A0FE],
+ ["8C55",0x2A107],
+ ["9178",0x2A123],
+ ["89BE",0x2A133],
+ ["917C",0x2A134],
+ ["FB77",0x2A150],
+ ["9175",0x2A192],
+ ["91A3",0x2A193],
+ ["9176",0x2A1AB],
+ ["96BE",0x2A1B4],
+ ["8D49",0x2A1B5],
+ ["9179",0x2A1DF],
+ ["96B6",0x2A1F5],
+ ["91A4",0x2A220],
+ ["91A6",0x2A233],
+ ["9D75",0x2A293],
+ ["9052",0x2A29F],
+ ["A045",0x2A2B2],
+ ["91A9",0x2A2B4],
+ ["98AA",0x2A2B6],
+ ["8C5F",0x2A2BA],
+ ["8BAA",0x2A2BD],
+ ["9CDD",0x2A2DF],
+ ["9D77",0x2A2FF],
+ ["8756",0x2A351],
+ ["8940",0x2A3A9],
+ ["9EEC",0x2A434],
+ ["93AA",0x2A45B],
+ ["9478",0x2A5C6],
+ ["9D7A",0x2A5CB],
+ ["8AC9",0x2A601],
+ ["8B4B",0x2A632],
+ ["9FEC",0x2A64A],
+ ["8AE2",0x2A65B],
+ ["9E75",0x2A6A9],
+ ["9874",0x2F825],
+ ["9AC8",0x2F83B],
+ ["A047",0x2F840],
+ ["8BC3",0x2F878],
+ ["FC48",0x2F894],
+ ["FC77",0x2F8A6],
+ ["9C52",0x2F8CD],
+ ["8EFD",0x2F994],
+ ["8FA8",0x2F9B2],
+ ["957A",0x2F9BC],
+ ["8FF0",0x2F9D4],
+]
+
+UCS_TO_BIG5_HKSCS_TBL = [
+ [0xA7,"A1B1"],
+ [0xA8,"C6D8"],
+ [0xAF,"A1C2"],
+ [0xB0,"A258"],
+ [0xB1,"A1D3"],
+ [0xB7,"A150"],
+ [0xC0,"8859"],
+ [0xC1,"8857"],
+ [0xC8,"885D"],
+ [0xC9,"885B"],
+ [0xCA,"8866"],
+ [0xD2,"8861"],
+ [0xD3,"885F"],
+ [0xD7,"A1D1"],
+ [0xE0,"886A"],
+ [0xE1,"8868"],
+ [0xE8,"886F"],
+ [0xE9,"886D"],
+ [0xEA,"88A7"],
+ [0xEC,"8873"],
+ [0xED,"8871"],
+ [0xF2,"8877"],
+ [0xF3,"8875"],
+ [0xF7,"A1D2"],
+ [0xF8,"C8FB"],
+ [0xF9,"887B"],
+ [0xFA,"8879"],
+ [0xFC,"88A2"],
+ [0x100,"8856"],
+ [0x101,"8867"],
+ [0x112,"885A"],
+ [0x113,"886C"],
+ [0x11A,"885C"],
+ [0x11B,"886E"],
+ [0x12B,"8870"],
+ [0x14B,"C8FC"],
+ [0x14C,"885E"],
+ [0x14D,"8874"],
+ [0x153,"C8FA"],
+ [0x16B,"8878"],
+ [0x1CD,"8858"],
+ [0x1CE,"8869"],
+ [0x1D0,"8872"],
+ [0x1D1,"8860"],
+ [0x1D2,"8876"],
+ [0x1D4,"887A"],
+ [0x1D6,"887C"],
+ [0x1D8,"887D"],
+ [0x1DA,"887E"],
+ [0x1DC,"88A1"],
+ [0x250,"C8F6"],
+ [0x251,"886B"],
+ [0x254,"C8F8"],
+ [0x25B,"C8F7"],
+ [0x261,"88A8"],
+ [0x26A,"C8FE"],
+ [0x275,"C8F9"],
+ [0x283,"C8F5"],
+ [0x28A,"C8FD"],
+ [0x2C6,"C6D9"],
+ [0x2C7,"A3BE"],
+ [0x2C9,"A3BC"],
+ [0x2CA,"A3BD"],
+ [0x2CB,"A3BF"],
+ [0x2CD,"A1C5"],
+ [0x2D9,"A3BB"],
+ [0x391,"A344"],
+ [0x392,"A345"],
+ [0x393,"A346"],
+ [0x394,"A347"],
+ [0x395,"A348"],
+ [0x396,"A349"],
+ [0x397,"A34A"],
+ [0x398,"A34B"],
+ [0x399,"A34C"],
+ [0x39A,"A34D"],
+ [0x39B,"A34E"],
+ [0x39C,"A34F"],
+ [0x39D,"A350"],
+ [0x39E,"A351"],
+ [0x39F,"A352"],
+ [0x3A0,"A353"],
+ [0x3A1,"A354"],
+ [0x3A3,"A355"],
+ [0x3A4,"A356"],
+ [0x3A5,"A357"],
+ [0x3A6,"A358"],
+ [0x3A7,"A359"],
+ [0x3A8,"A35A"],
+ [0x3A9,"A35B"],
+ [0x3B1,"A35C"],
+ [0x3B2,"A35D"],
+ [0x3B3,"A35E"],
+ [0x3B4,"A35F"],
+ [0x3B5,"A360"],
+ [0x3B6,"A361"],
+ [0x3B7,"A362"],
+ [0x3B8,"A363"],
+ [0x3B9,"A364"],
+ [0x3BA,"A365"],
+ [0x3BB,"A366"],
+ [0x3BC,"A367"],
+ [0x3BD,"A368"],
+ [0x3BE,"A369"],
+ [0x3BF,"A36A"],
+ [0x3C0,"A36B"],
+ [0x3C1,"A36C"],
+ [0x3C3,"A36D"],
+ [0x3C4,"A36E"],
+ [0x3C5,"A36F"],
+ [0x3C6,"A370"],
+ [0x3C7,"A371"],
+ [0x3C8,"A372"],
+ [0x3C9,"A373"],
+ [0x401,"C7F9"],
+ [0x410,"C7F3"],
+ [0x411,"C7F4"],
+ [0x412,"C7F5"],
+ [0x413,"C7F6"],
+ [0x414,"C7F7"],
+ [0x415,"C7F8"],
+ [0x416,"C7FA"],
+ [0x417,"C7FB"],
+ [0x418,"C7FC"],
+ [0x419,"C7FD"],
+ [0x41A,"C7FE"],
+ [0x41B,"C840"],
+ [0x41C,"C841"],
+ [0x41D,"C842"],
+ [0x41E,"C843"],
+ [0x41F,"C844"],
+ [0x420,"C845"],
+ [0x421,"C846"],
+ [0x422,"C847"],
+ [0x423,"C848"],
+ [0x424,"C849"],
+ [0x425,"C84A"],
+ [0x426,"C84B"],
+ [0x427,"C84C"],
+ [0x428,"C84D"],
+ [0x429,"C84E"],
+ [0x42A,"C84F"],
+ [0x42B,"C850"],
+ [0x42C,"C851"],
+ [0x42D,"C852"],
+ [0x42E,"C853"],
+ [0x42F,"C854"],
+ [0x430,"C855"],
+ [0x431,"C856"],
+ [0x432,"C857"],
+ [0x433,"C858"],
+ [0x434,"C859"],
+ [0x435,"C85A"],
+ [0x436,"C85C"],
+ [0x437,"C85D"],
+ [0x438,"C85E"],
+ [0x439,"C85F"],
+ [0x43A,"C860"],
+ [0x43B,"C861"],
+ [0x43C,"C862"],
+ [0x43D,"C863"],
+ [0x43E,"C864"],
+ [0x43F,"C865"],
+ [0x440,"C866"],
+ [0x441,"C867"],
+ [0x442,"C868"],
+ [0x443,"C869"],
+ [0x444,"C86A"],
+ [0x445,"C86B"],
+ [0x446,"C86C"],
+ [0x447,"C86D"],
+ [0x448,"C86E"],
+ [0x449,"C86F"],
+ [0x44A,"C870"],
+ [0x44B,"C871"],
+ [0x44C,"C872"],
+ [0x44D,"C873"],
+ [0x44E,"C874"],
+ [0x44F,"C875"],
+ [0x451,"C85B"],
+ [0x1EBE,"8863"],
+ [0x1EBF,"88A4"],
+ [0x1EC0,"8865"],
+ [0x1EC1,"88A6"],
+ [0x2013,"A156"],
+ [0x2014,"A158"],
+ [0x2018,"A1A5"],
+ [0x2019,"A1A6"],
+ [0x201C,"A1A7"],
+ [0x201D,"A1A8"],
+ [0x2025,"A14C"],
+ [0x2026,"A14B"],
+ [0x2027,"A145"],
+ [0x2032,"A1AC"],
+ [0x2035,"A1AB"],
+ [0x203B,"A1B0"],
+ [0x20AC,"A3E1"],
+ [0x2103,"A24A"],
+ [0x2105,"A1C1"],
+ [0x2109,"A24B"],
+ [0x2116,"C8D2"],
+ [0x2121,"C8D3"],
+ [0x2160,"A2B9"],
+ [0x2161,"A2BA"],
+ [0x2162,"A2BB"],
+ [0x2163,"A2BC"],
+ [0x2164,"A2BD"],
+ [0x2165,"A2BE"],
+ [0x2166,"A2BF"],
+ [0x2167,"A2C0"],
+ [0x2168,"A2C1"],
+ [0x2169,"A2C2"],
+ [0x2170,"C6B5"],
+ [0x2171,"C6B6"],
+ [0x2172,"C6B7"],
+ [0x2173,"C6B8"],
+ [0x2174,"C6B9"],
+ [0x2175,"C6BA"],
+ [0x2176,"C6BB"],
+ [0x2177,"C6BC"],
+ [0x2178,"C6BD"],
+ [0x2179,"C6BE"],
+ [0x2190,"A1F6"],
+ [0x2191,"A1F4"],
+ [0x2192,"A1F7"],
+ [0x2193,"A1F5"],
+ [0x2196,"A1F8"],
+ [0x2197,"A1F9"],
+ [0x2198,"A1FB"],
+ [0x2199,"A1FA"],
+ [0x21B8,"C877"],
+ [0x21B9,"C878"],
+ [0x21E7,"C876"],
+ [0x2215,"A241"],
+ [0x221A,"A1D4"],
+ [0x221E,"A1DB"],
+ [0x221F,"A1E8"],
+ [0x2220,"A1E7"],
+ [0x2223,"A1FD"],
+ [0x2225,"A1FC"],
+ [0x2229,"A1E4"],
+ [0x222A,"A1E5"],
+ [0x222B,"A1EC"],
+ [0x222E,"A1ED"],
+ [0x2234,"A1EF"],
+ [0x2235,"A1EE"],
+ [0x2252,"A1DC"],
+ [0x2260,"A1DA"],
+ [0x2261,"A1DD"],
+ [0x2266,"A1D8"],
+ [0x2267,"A1D9"],
+ [0x2295,"A1F2"],
+ [0x2299,"A1F3"],
+ [0x22A5,"A1E6"],
+ [0x22BF,"A1E9"],
+ [0x23DA,"88A9"],
+ [0x23DB,"88AA"],
+ [0x2460,"C6A1"],
+ [0x2461,"C6A2"],
+ [0x2462,"C6A3"],
+ [0x2463,"C6A4"],
+ [0x2464,"C6A5"],
+ [0x2465,"C6A6"],
+ [0x2466,"C6A7"],
+ [0x2467,"C6A8"],
+ [0x2468,"C6A9"],
+ [0x2469,"C6AA"],
+ [0x2474,"C6AB"],
+ [0x2475,"C6AC"],
+ [0x2476,"C6AD"],
+ [0x2477,"C6AE"],
+ [0x2478,"C6AF"],
+ [0x2479,"C6B0"],
+ [0x247A,"C6B1"],
+ [0x247B,"C6B2"],
+ [0x247C,"C6B3"],
+ [0x247D,"C6B4"],
+ [0x2500,"A277"],
+ [0x2502,"A278"],
+ [0x250C,"A27A"],
+ [0x2510,"A27B"],
+ [0x2514,"A27C"],
+ [0x2518,"A27D"],
+ [0x251C,"A275"],
+ [0x2524,"A274"],
+ [0x252C,"A273"],
+ [0x2534,"A272"],
+ [0x253C,"A271"],
+ [0x2550,"F9F9"],
+ [0x2551,"F9F8"],
+ [0x2552,"F9E6"],
+ [0x2553,"F9EF"],
+ [0x2554,"F9DD"],
+ [0x2555,"F9E8"],
+ [0x2556,"F9F1"],
+ [0x2557,"F9DF"],
+ [0x2558,"F9EC"],
+ [0x2559,"F9F5"],
+ [0x255A,"F9E3"],
+ [0x255B,"F9EE"],
+ [0x255C,"F9F7"],
+ [0x255D,"F9E5"],
+ [0x255E,"F9E9"],
+ [0x255F,"F9F2"],
+ [0x2560,"F9E0"],
+ [0x2561,"F9EB"],
+ [0x2562,"F9F4"],
+ [0x2563,"F9E2"],
+ [0x2564,"F9E7"],
+ [0x2565,"F9F0"],
+ [0x2566,"F9DE"],
+ [0x2567,"F9ED"],
+ [0x2568,"F9F6"],
+ [0x2569,"F9E4"],
+ [0x256A,"F9EA"],
+ [0x256B,"F9F3"],
+ [0x256C,"F9E1"],
+ [0x256D,"F9FA"],
+ [0x256E,"F9FB"],
+ [0x256F,"F9FD"],
+ [0x2570,"F9FC"],
+ [0x2571,"A2AC"],
+ [0x2572,"A2AD"],
+ [0x2573,"A2AE"],
+ [0x2574,"A15A"],
+ [0x2581,"A262"],
+ [0x2582,"A263"],
+ [0x2583,"A264"],
+ [0x2584,"A265"],
+ [0x2585,"A266"],
+ [0x2586,"A267"],
+ [0x2587,"A268"],
+ [0x2588,"A269"],
+ [0x2589,"A270"],
+ [0x258A,"A26F"],
+ [0x258B,"A26E"],
+ [0x258C,"A26D"],
+ [0x258D,"A26C"],
+ [0x258E,"A26B"],
+ [0x258F,"A26A"],
+ [0x2594,"A276"],
+ [0x2595,"A279"],
+ [0x25A0,"A1BD"],
+ [0x25A1,"A1BC"],
+ [0x25B2,"A1B6"],
+ [0x25B3,"A1B5"],
+ [0x25BC,"A1BF"],
+ [0x25BD,"A1BE"],
+ [0x25C6,"A1BB"],
+ [0x25C7,"A1BA"],
+ [0x25CB,"A1B3"],
+ [0x25CE,"A1B7"],
+ [0x25CF,"A1B4"],
+ [0x25E2,"A2A8"],
+ [0x25E3,"A2A9"],
+ [0x25E4,"A2AB"],
+ [0x25E5,"A2AA"],
+ [0x2605,"A1B9"],
+ [0x2606,"A1B8"],
+ [0x2640,"A1F0"],
+ [0x2642,"A1F1"],
+ [0x273D,"C6E6"],
+ [0x2E80,"C8D6"],
+ [0x2E84,"C8D7"],
+ [0x2E86,"C8D8"],
+ [0x2E87,"C8D9"],
+ [0x2E88,"C8DA"],
+ [0x2E8A,"C8DB"],
+ [0x2E8C,"C8DC"],
+ [0x2E8D,"C8DD"],
+ [0x2E95,"C8DE"],
+ [0x2E9C,"C8DF"],
+ [0x2E9D,"C8E0"],
+ [0x2EA5,"C8E1"],
+ [0x2EA7,"C8E2"],
+ [0x2EAA,"C8E3"],
+ [0x2EAC,"C8E4"],
+ [0x2EAE,"C8E5"],
+ [0x2EB6,"C8E6"],
+ [0x2EBC,"C8E7"],
+ [0x2EBE,"C8E8"],
+ [0x2EC6,"C8E9"],
+ [0x2ECA,"C8EA"],
+ [0x2ECC,"C8EB"],
+ [0x2ECD,"C8EC"],
+ [0x2ECF,"C8ED"],
+ [0x2ED6,"C8EE"],
+ [0x2ED7,"C8EF"],
+ [0x2EDE,"C8F0"],
+ [0x2EE3,"C8F1"],
+ [0x2F33,"C6CD"],
+ [0x3000,"A140"],
+ [0x3001,"A142"],
+ [0x3002,"A143"],
+ [0x3003,"A1B2"],
+ [0x3005,"C6E0"],
+ [0x3006,"C6E1"],
+ [0x3007,"C6E2"],
+ [0x3008,"A171"],
+ [0x3009,"A172"],
+ [0x300A,"A16D"],
+ [0x300B,"A16E"],
+ [0x300C,"A175"],
+ [0x300D,"A176"],
+ [0x300E,"A179"],
+ [0x300F,"A17A"],
+ [0x3010,"A169"],
+ [0x3011,"A16A"],
+ [0x3012,"A245"],
+ [0x3014,"A165"],
+ [0x3015,"A166"],
+ [0x301D,"A1A9"],
+ [0x301E,"A1AA"],
+ [0x3021,"A2C3"],
+ [0x3022,"A2C4"],
+ [0x3023,"A2C5"],
+ [0x3024,"A2C6"],
+ [0x3025,"A2C7"],
+ [0x3026,"A2C8"],
+ [0x3027,"A2C9"],
+ [0x3028,"A2CA"],
+ [0x3029,"A2CB"],
+ [0x3041,"C6E7"],
+ [0x3042,"C6E8"],
+ [0x3043,"C6E9"],
+ [0x3044,"C6EA"],
+ [0x3045,"C6EB"],
+ [0x3046,"C6EC"],
+ [0x3047,"C6ED"],
+ [0x3048,"C6EE"],
+ [0x3049,"C6EF"],
+ [0x304A,"C6F0"],
+ [0x304B,"C6F1"],
+ [0x304C,"C6F2"],
+ [0x304D,"C6F3"],
+ [0x304E,"C6F4"],
+ [0x304F,"C6F5"],
+ [0x3050,"C6F6"],
+ [0x3051,"C6F7"],
+ [0x3052,"C6F8"],
+ [0x3053,"C6F9"],
+ [0x3054,"C6FA"],
+ [0x3055,"C6FB"],
+ [0x3056,"C6FC"],
+ [0x3057,"C6FD"],
+ [0x3058,"C6FE"],
+ [0x3059,"C740"],
+ [0x305A,"C741"],
+ [0x305B,"C742"],
+ [0x305C,"C743"],
+ [0x305D,"C744"],
+ [0x305E,"C745"],
+ [0x305F,"C746"],
+ [0x3060,"C747"],
+ [0x3061,"C748"],
+ [0x3062,"C749"],
+ [0x3063,"C74A"],
+ [0x3064,"C74B"],
+ [0x3065,"C74C"],
+ [0x3066,"C74D"],
+ [0x3067,"C74E"],
+ [0x3068,"C74F"],
+ [0x3069,"C750"],
+ [0x306A,"C751"],
+ [0x306B,"C752"],
+ [0x306C,"C753"],
+ [0x306D,"C754"],
+ [0x306E,"C755"],
+ [0x306F,"C756"],
+ [0x3070,"C757"],
+ [0x3071,"C758"],
+ [0x3072,"C759"],
+ [0x3073,"C75A"],
+ [0x3074,"C75B"],
+ [0x3075,"C75C"],
+ [0x3076,"C75D"],
+ [0x3077,"C75E"],
+ [0x3078,"C75F"],
+ [0x3079,"C760"],
+ [0x307A,"C761"],
+ [0x307B,"C762"],
+ [0x307C,"C763"],
+ [0x307D,"C764"],
+ [0x307E,"C765"],
+ [0x307F,"C766"],
+ [0x3080,"C767"],
+ [0x3081,"C768"],
+ [0x3082,"C769"],
+ [0x3083,"C76A"],
+ [0x3084,"C76B"],
+ [0x3085,"C76C"],
+ [0x3086,"C76D"],
+ [0x3087,"C76E"],
+ [0x3088,"C76F"],
+ [0x3089,"C770"],
+ [0x308A,"C771"],
+ [0x308B,"C772"],
+ [0x308C,"C773"],
+ [0x308D,"C774"],
+ [0x308E,"C775"],
+ [0x308F,"C776"],
+ [0x3090,"C777"],
+ [0x3091,"C778"],
+ [0x3092,"C779"],
+ [0x3093,"C77A"],
+ [0x309B,"C8D4"],
+ [0x309C,"C8D5"],
+ [0x309D,"C6DC"],
+ [0x309E,"C6DD"],
+ [0x30A1,"C77B"],
+ [0x30A2,"C77C"],
+ [0x30A3,"C77D"],
+ [0x30A4,"C77E"],
+ [0x30A5,"C7A1"],
+ [0x30A6,"C7A2"],
+ [0x30A7,"C7A3"],
+ [0x30A8,"C7A4"],
+ [0x30A9,"C7A5"],
+ [0x30AA,"C7A6"],
+ [0x30AB,"C7A7"],
+ [0x30AC,"C7A8"],
+ [0x30AD,"C7A9"],
+ [0x30AE,"C7AA"],
+ [0x30AF,"C7AB"],
+ [0x30B0,"C7AC"],
+ [0x30B1,"C7AD"],
+ [0x30B2,"C7AE"],
+ [0x30B3,"C7AF"],
+ [0x30B4,"C7B0"],
+ [0x30B5,"C7B1"],
+ [0x30B6,"C7B2"],
+ [0x30B7,"C7B3"],
+ [0x30B8,"C7B4"],
+ [0x30B9,"C7B5"],
+ [0x30BA,"C7B6"],
+ [0x30BB,"C7B7"],
+ [0x30BC,"C7B8"],
+ [0x30BD,"C7B9"],
+ [0x30BE,"C7BA"],
+ [0x30BF,"C7BB"],
+ [0x30C0,"C7BC"],
+ [0x30C1,"C7BD"],
+ [0x30C2,"C7BE"],
+ [0x30C3,"C7BF"],
+ [0x30C4,"C7C0"],
+ [0x30C5,"C7C1"],
+ [0x30C6,"C7C2"],
+ [0x30C7,"C7C3"],
+ [0x30C8,"C7C4"],
+ [0x30C9,"C7C5"],
+ [0x30CA,"C7C6"],
+ [0x30CB,"C7C7"],
+ [0x30CC,"C7C8"],
+ [0x30CD,"C7C9"],
+ [0x30CE,"C7CA"],
+ [0x30CF,"C7CB"],
+ [0x30D0,"C7CC"],
+ [0x30D1,"C7CD"],
+ [0x30D2,"C7CE"],
+ [0x30D3,"C7CF"],
+ [0x30D4,"C7D0"],
+ [0x30D5,"C7D1"],
+ [0x30D6,"C7D2"],
+ [0x30D7,"C7D3"],
+ [0x30D8,"C7D4"],
+ [0x30D9,"C7D5"],
+ [0x30DA,"C7D6"],
+ [0x30DB,"C7D7"],
+ [0x30DC,"C7D8"],
+ [0x30DD,"C7D9"],
+ [0x30DE,"C7DA"],
+ [0x30DF,"C7DB"],
+ [0x30E0,"C7DC"],
+ [0x30E1,"C7DD"],
+ [0x30E2,"C7DE"],
+ [0x30E3,"C7DF"],
+ [0x30E4,"C7E0"],
+ [0x30E5,"C7E1"],
+ [0x30E6,"C7E2"],
+ [0x30E7,"C7E3"],
+ [0x30E8,"C7E4"],
+ [0x30E9,"C7E5"],
+ [0x30EA,"C7E6"],
+ [0x30EB,"C7E7"],
+ [0x30EC,"C7E8"],
+ [0x30ED,"C7E9"],
+ [0x30EE,"C7EA"],
+ [0x30EF,"C7EB"],
+ [0x30F0,"C7EC"],
+ [0x30F1,"C7ED"],
+ [0x30F2,"C7EE"],
+ [0x30F3,"C7EF"],
+ [0x30F4,"C7F0"],
+ [0x30F5,"C7F1"],
+ [0x30F6,"C7F2"],
+ [0x30FC,"C6E3"],
+ [0x30FD,"C6DA"],
+ [0x30FE,"C6DB"],
+ [0x3105,"A374"],
+ [0x3106,"A375"],
+ [0x3107,"A376"],
+ [0x3108,"A377"],
+ [0x3109,"A378"],
+ [0x310A,"A379"],
+ [0x310B,"A37A"],
+ [0x310C,"A37B"],
+ [0x310D,"A37C"],
+ [0x310E,"A37D"],
+ [0x310F,"A37E"],
+ [0x3110,"A3A1"],
+ [0x3111,"A3A2"],
+ [0x3112,"A3A3"],
+ [0x3113,"A3A4"],
+ [0x3114,"A3A5"],
+ [0x3115,"A3A6"],
+ [0x3116,"A3A7"],
+ [0x3117,"A3A8"],
+ [0x3118,"A3A9"],
+ [0x3119,"A3AA"],
+ [0x311A,"A3AB"],
+ [0x311B,"A3AC"],
+ [0x311C,"A3AD"],
+ [0x311D,"A3AE"],
+ [0x311E,"A3AF"],
+ [0x311F,"A3B0"],
+ [0x3120,"A3B1"],
+ [0x3121,"A3B2"],
+ [0x3122,"A3B3"],
+ [0x3123,"A3B4"],
+ [0x3124,"A3B5"],
+ [0x3125,"A3B6"],
+ [0x3126,"A3B7"],
+ [0x3127,"A3B8"],
+ [0x3128,"A3B9"],
+ [0x3129,"A3BA"],
+ [0x31C0,"8840"],
+ [0x31C1,"8841"],
+ [0x31C2,"8842"],
+ [0x31C3,"8843"],
+ [0x31C4,"8844"],
+ [0x31C5,"8846"],
+ [0x31C6,"8849"],
+ [0x31C7,"884A"],
+ [0x31C8,"884D"],
+ [0x31C9,"884F"],
+ [0x31CA,"8850"],
+ [0x31CB,"8851"],
+ [0x31CC,"8852"],
+ [0x31CD,"8854"],
+ [0x31CE,"8855"],
+ [0x31CF,"C879"],
+ [0x3231,"C8D1"],
+ [0x32A3,"A1C0"],
+ [0x338E,"A255"],
+ [0x338F,"A256"],
+ [0x339C,"A250"],
+ [0x339D,"A251"],
+ [0x339E,"A252"],
+ [0x33A1,"A254"],
+ [0x33C4,"A257"],
+ [0x33CE,"A253"],
+ [0x33D1,"A1EB"],
+ [0x33D2,"A1EA"],
+ [0x33D5,"A24F"],
+ [0x3435,"9277"],
+ [0x3440,"96DF"],
+ [0x344A,"8CF4"],
+ [0x344C,"89D5"],
+ [0x3464,"93CD"],
+ [0x3473,"9BDF"],
+ [0x347A,"FA68"],
+ [0x347D,"89DA"],
+ [0x347E,"8F59"],
+ [0x3493,"89DB"],
+ [0x3496,"8F5D"],
+ [0x34A5,"89DC"],
+ [0x34AF,"96F7"],
+ [0x34BC,"8ADA"],
+ [0x34C1,"8BDC"],
+ [0x34C8,"97DB"],
+ [0x34DF,"9E53"],
+ [0x34E4,"9DAA"],
+ [0x34E6,"87BE"],
+ [0x34FB,"9BEA"],
+ [0x3506,"8A6E"],
+ [0x353E,"8BC8"],
+ [0x3551,"89E8"],
+ [0x3553,"89EA"],
+ [0x3559,"8C4B"],
+ [0x3561,"FB70"],
+ [0x356D,"89ED"],
+ [0x3570,"94DD"],
+ [0x3572,"89EE"],
+ [0x3577,"9EB4"],
+ [0x3578,"8AD3"],
+ [0x3584,"92DB"],
+ [0x3597,"94DB"],
+ [0x3598,"89F9"],
+ [0x35A1,"FB7A"],
+ [0x35A5,"89FB"],
+ [0x35AD,"9EFC"],
+ [0x35BF,"89FC"],
+ [0x35C1,"89BF"],
+ [0x35C5,"89FE"],
+ [0x35C7,"89E6"],
+ [0x35CA,"9D46"],
+ [0x35CE,"9DEE"],
+ [0x35D2,"A07E"],
+ [0x35D6,"A068"],
+ [0x35DB,"98E9"],
+ [0x35DD,"8B68"],
+ [0x35F1,"8DFD"],
+ [0x35F2,"8BBE"],
+ [0x35F3,"9FD9"],
+ [0x35FB,"8AEB"],
+ [0x35FE,"9FD7"],
+ [0x3609,"8B6A"],
+ [0x3618,"9C5C"],
+ [0x361A,"8BB1"],
+ [0x3623,"FB5E"],
+ [0x3625,"8770"],
+ [0x362D,"9DF3"],
+ [0x3635,"A0D0"],
+ [0x3639,"FC66"],
+ [0x363E,"92E9"],
+ [0x3647,"9AEC"],
+ [0x3648,"8FAB"],
+ [0x3649,"FA48"],
+ [0x364E,"8E45"],
+ [0x365F,"9C6F"],
+ [0x3661,"8D5C"],
+ [0x367A,"9EDE"],
+ [0x3681,"89EF"],
+ [0x369A,"96E9"],
+ [0x36A5,"9EBB"],
+ [0x36AA,"94DE"],
+ [0x36AC,"9EB8"],
+ [0x36B0,"97BA"],
+ [0x36B1,"FB65"],
+ [0x36B5,"95D6"],
+ [0x36B9,"9CBB"],
+ [0x36BC,"97DA"],
+ [0x36C1,"8F45"],
+ [0x36C3,"FB7D"],
+ [0x36C4,"9158"],
+ [0x36C5,"FE64"],
+ [0x36C7,"9856"],
+ [0x36C8,"9B4D"],
+ [0x36D3,"935B"],
+ [0x36D4,"95C7"],
+ [0x36D6,"97E7"],
+ [0x36DD,"9359"],
+ [0x36E1,"91F5"],
+ [0x36E2,"97B8"],
+ [0x36E5,"FDA2"],
+ [0x36E6,"FBB6"],
+ [0x36F5,"92FA"],
+ [0x3701,"9357"],
+ [0x3703,"8BA6"],
+ [0x3708,"FBB9"],
+ [0x370A,"97B0"],
+ [0x370D,"FDC4"],
+ [0x371C,"9CA1"],
+ [0x3722,"91F2"],
+ [0x3723,"91F9"],
+ [0x3725,"8FF1"],
+ [0x372C,"9745"],
+ [0x372D,"9853"],
+ [0x3730,"FE78"],
+ [0x3732,"FBC1"],
+ [0x3733,"9251"],
+ [0x373A,"9DAD"],
+ [0x3740,"FD6C"],
+ [0x3743,"FA6B"],
+ [0x3762,"9BC2"],
+ [0x376F,"9A7B"],
+ [0x3797,"8B60"],
+ [0x37A0,"934B"],
+ [0x37B9,"9ABD"],
+ [0x37BE,"91B7"],
+ [0x37D6,"8D4B"],
+ [0x37F2,"95B4"],
+ [0x37F8,"FEC5"],
+ [0x37FB,"9EF0"],
+ [0x380F,"8D64"],
+ [0x3819,"9269"],
+ [0x3820,"8D67"],
+ [0x382D,"FBEA"],
+ [0x3836,"FBEF"],
+ [0x3838,"8D68"],
+ [0x3863,"93EB"],
+ [0x3875,"877A"],
+ [0x38A0,"FC42"],
+ [0x38C3,"9166"],
+ [0x38CC,"FACD"],
+ [0x38D1,"93DD"],
+ [0x38D4,"8D52"],
+ [0x38FA,"8BCC"],
+ [0x3908,"8D6D"],
+ [0x3914,"8D6E"],
+ [0x3927,"96A8"],
+ [0x3932,"FCA6"],
+ [0x393F,"8D6F"],
+ [0x394D,"8D70"],
+ [0x3963,"FC64"],
+ [0x3978,"8CF3"],
+ [0x3980,"9060"],
+ [0x3989,"8D74"],
+ [0x398A,"97C3"],
+ [0x3992,"8AD0"],
+ [0x3999,"9274"],
+ [0x399B,"9BBE"],
+ [0x39A1,"9CC8"],
+ [0x39A4,"9CBA"],
+ [0x39B8,"8D78"],
+ [0x39DC,"9EB9"],
+ [0x39E2,"955A"],
+ [0x39E5,"91B4"],
+ [0x39EC,"8A48"],
+ [0x39F8,"8D7D"],
+ [0x39FB,"8A7D"],
+ [0x39FE,"8AC2"],
+ [0x3A01,"FD4A"],
+ [0x3A03,"8DA1"],
+ [0x3A06,"8AD1"],
+ [0x3A17,"FCB4"],
+ [0x3A18,"8B47"],
+ [0x3A29,"93A4"],
+ [0x3A2A,"9EDA"],
+ [0x3A34,"8A51"],
+ [0x3A4B,"8DA6"],
+ [0x3A52,"9EC5"],
+ [0x3A57,"FCC4"],
+ [0x3A5C,"A078"],
+ [0x3A5E,"94B5"],
+ [0x3A66,"FCC2"],
+ [0x3A67,"8A6B"],
+ [0x3A97,"8DAB"],
+ [0x3AAB,"FAE8"],
+ [0x3ABD,"8DAD"],
+ [0x3ADE,"FC49"],
+ [0x3AE0,"93C1"],
+ [0x3AF0,"906F"],
+ [0x3AF2,"8DB0"],
+ [0x3AF5,"87A2"],
+ [0x3AFB,"947E"],
+ [0x3B0E,"90FA"],
+ [0x3B19,"9479"],
+ [0x3B22,"8DB2"],
+ [0x3B2B,"FCEE"],
+ [0x3B39,"997B"],
+ [0x3B42,"8DB4"],
+ [0x3B58,"8DB7"],
+ [0x3B60,"91B3"],
+ [0x3B71,"8DBB"],
+ [0x3B72,"8DBA"],
+ [0x3B7B,"8DBC"],
+ [0x3B7C,"9044"],
+ [0x3B80,"FD4C"],
+ [0x3B95,"874B"],
+ [0x3B96,"93E4"],
+ [0x3B99,"93E0"],
+ [0x3BA1,"FD53"],
+ [0x3BBC,"8DC3"],
+ [0x3BBE,"9BB8"],
+ [0x3BC2,"FBF0"],
+ [0x3BC4,"93E9"],
+ [0x3BD7,"93F6"],
+ [0x3BDD,"8DC5"],
+ [0x3BEC,"8DCA"],
+ [0x3BF2,"8DCC"],
+ [0x3BF3,"FD5D"],
+ [0x3BF4,"93B5"],
+ [0x3C0D,"FD61"],
+ [0x3C11,"9CF8"],
+ [0x3C15,"9252"],
+ [0x3C18,"A0E8"],
+ [0x3C54,"9CA5"],
+ [0x3C8B,"8C56"],
+ [0x3CCB,"8DD6"],
+ [0x3CCD,"97C0"],
+ [0x3CD1,"A0DE"],
+ [0x3CD6,"97D2"],
+ [0x3CDC,"FAA5"],
+ [0x3CEB,"FDA3"],
+ [0x3CEF,"8DDB"],
+ [0x3D12,"8CEA"],
+ [0x3D13,"8EAF"],
+ [0x3D1D,"91B5"],
+ [0x3D32,"FD49"],
+ [0x3D3B,"FDD1"],
+ [0x3D46,"8DEB"],
+ [0x3D4C,"97C6"],
+ [0x3D4E,"FDCE"],
+ [0x3D51,"90FC"],
+ [0x3D5F,"FC59"],
+ [0x3D62,"96D6"],
+ [0x3D69,"97C5"],
+ [0x3D6A,"8DEF"],
+ [0x3D6F,"97D7"],
+ [0x3D75,"8DF0"],
+ [0x3D7D,"96A6"],
+ [0x3D85,"FBBF"],
+ [0x3D88,"8CDF"],
+ [0x3D8A,"8DF3"],
+ [0x3D8F,"9449"],
+ [0x3D91,"8DF5"],
+ [0x3DA5,"9872"],
+ [0x3DAD,"8E6B"],
+ [0x3DB4,"FAFD"],
+ [0x3DBF,"8F50"],
+ [0x3DC6,"9DCC"],
+ [0x3DC7,"FC65"],
+ [0x3DC9,"8C44"],
+ [0x3DCC,"996E"],
+ [0x3DCD,"94A1"],
+ [0x3DD3,"8F63"],
+ [0x3DDB,"A0DA"],
+ [0x3DE7,"9253"],
+ [0x3DE8,"FDE9"],
+ [0x3DEB,"9DB5"],
+ [0x3DF3,"9879"],
+ [0x3DF4,"876A"],
+ [0x3DF7,"9D5D"],
+ [0x3DFC,"8D63"],
+ [0x3DFD,"9669"],
+ [0x3E06,"9F70"],
+ [0x3E40,"FC6A"],
+ [0x3E43,"8AC7"],
+ [0x3E48,"89D7"],
+ [0x3E55,"FE4D"],
+ [0x3E74,"9EDD"],
+ [0x3EA8,"FEFB"],
+ [0x3EA9,"98BC"],
+ [0x3EAA,"FACC"],
+ [0x3EAD,"95B0"],
+ [0x3EB1,"9464"],
+ [0x3EB8,"936F"],
+ [0x3EBF,"94B9"],
+ [0x3EC2,"95EC"],
+ [0x3EC7,"91EE"],
+ [0x3ECA,"98C3"],
+ [0x3ECC,"95F6"],
+ [0x3ED0,"8FFD"],
+ [0x3ED1,"98C5"],
+ [0x3ED6,"9766"],
+ [0x3ED7,"FE6E"],
+ [0x3EDA,"97DD"],
+ [0x3EDB,"8CAA"],
+ [0x3EDE,"92D2"],
+ [0x3EE1,"9761"],
+ [0x3EE2,"98CB"],
+ [0x3EE7,"95F0"],
+ [0x3EE9,"975D"],
+ [0x3EEB,"91E3"],
+ [0x3EEC,"877E"],
+ [0x3EF0,"98CC"],
+ [0x3EF3,"9469"],
+ [0x3EF4,"98CD"],
+ [0x3EFA,"98CE"],
+ [0x3EFC,"95FC"],
+ [0x3EFF,"94A3"],
+ [0x3F00,"9662"],
+ [0x3F04,"FEB6"],
+ [0x3F06,"9463"],
+ [0x3F07,"8D47"],
+ [0x3F0E,"98D0"],
+ [0x3F53,"98D1"],
+ [0x3F58,"9475"],
+ [0x3F59,"FAE0"],
+ [0x3F63,"9472"],
+ [0x3F7C,"98D6"],
+ [0x3F93,"8AF0"],
+ [0x3FC0,"98D9"],
+ [0x3FC8,"8D5A"],
+ [0x3FD7,"98DB"],
+ [0x3FDC,"98DD"],
+ [0x3FE5,"98A8"],
+ [0x3FED,"8A6D"],
+ [0x3FF9,"8AFB"],
+ [0x3FFA,"8AAE"],
+ [0x4004,"FBC9"],
+ [0x4009,"8C5D"],
+ [0x401D,"98E4"],
+ [0x4039,"98E6"],
+ [0x4045,"98E8"],
+ [0x4053,"8A4D"],
+ [0x4057,"9257"],
+ [0x4062,"95DF"],
+ [0x4065,"A0AC"],
+ [0x406A,"98EB"],
+ [0x406F,"98EC"],
+ [0x4071,"8CC3"],
+ [0x40A8,"98F4"],
+ [0x40B4,"87D9"],
+ [0x40BB,"8AB8"],
+ [0x40BF,"9EE7"],
+ [0x40C8,"94BC"],
+ [0x40D8,"FCD1"],
+ [0x40DF,"9CC6"],
+ [0x40F8,"8D4A"],
+ [0x40FA,"9E7E"],
+ [0x4102,"8D44"],
+ [0x4103,"98FE"],
+ [0x4104,"FDE8"],
+ [0x4109,"9940"],
+ [0x410E,"94C9"],
+ [0x4131,"87C6"],
+ [0x4132,"94D3"],
+ [0x4167,"9946"],
+ [0x416C,"90C0"],
+ [0x416E,"94D1"],
+ [0x417C,"8D4E"],
+ [0x417F,"9573"],
+ [0x4181,"87CE"],
+ [0x4190,"93C2"],
+ [0x41B2,"9948"],
+ [0x41C4,"994B"],
+ [0x41CA,"8E55"],
+ [0x41CF,"994E"],
+ [0x41DB,"8EFE"],
+ [0x41ED,"8D5F"],
+ [0x41EF,"8E59"],
+ [0x41F9,"94EC"],
+ [0x4211,"94EF"],
+ [0x4223,"8C60"],
+ [0x4240,"8F74"],
+ [0x4260,"9955"],
+ [0x426A,"9544"],
+ [0x4276,"8CCB"],
+ [0x427A,"9956"],
+ [0x428C,"9959"],
+ [0x4294,"995B"],
+ [0x42A2,"8CC4"],
+ [0x42B5,"FA45"],
+ [0x42B9,"90B7"],
+ [0x42BC,"9743"],
+ [0x42F4,"95CD"],
+ [0x42FB,"97C9"],
+ [0x42FC,"FD50"],
+ [0x430A,"87AA"],
+ [0x432B,"8EB9"],
+ [0x436E,"95C6"],
+ [0x4397,"9967"],
+ [0x439A,"8CE3"],
+ [0x43BA,"8AB9"],
+ [0x43C1,"8DFC"],
+ [0x43D9,"8A76"],
+ [0x43DF,"9D51"],
+ [0x43ED,"9973"],
+ [0x43F0,"8740"],
+ [0x43F2,"9D4F"],
+ [0x4401,"997A"],
+ [0x4402,"9564"],
+ [0x4413,"99A1"],
+ [0x4425,"99A5"],
+ [0x442D,"99A7"],
+ [0x447A,"8EED"],
+ [0x448F,"99AD"],
+ [0x4491,"C87E"],
+ [0x449F,"946E"],
+ [0x44A0,"8F70"],
+ [0x44A2,"FAD0"],
+ [0x44B0,"99B3"],
+ [0x44B7,"A053"],
+ [0x44BD,"8D5E"],
+ [0x44C0,"965C"],
+ [0x44C3,"8CE0"],
+ [0x44C5,"FD7A"],
+ [0x44CE,"97FE"],
+ [0x44DD,"92BD"],
+ [0x44DE,"8D5D"],
+ [0x44DF,"97FD"],
+ [0x44E1,"87DB"],
+ [0x44E4,"8F64"],
+ [0x44E9,"FCF7"],
+ [0x44EA,"9562"],
+ [0x44EB,"97CD"],
+ [0x44EC,"9E64"],
+ [0x44F4,"924C"],
+ [0x4503,"8EC9"],
+ [0x4504,"99BC"],
+ [0x4509,"9DA5"],
+ [0x450B,"8F54"],
+ [0x4516,"8F7C"],
+ [0x451B,"8D55"],
+ [0x451D,"8EA2"],
+ [0x4527,"8F7A"],
+ [0x452E,"97AE"],
+ [0x4533,"96C8"],
+ [0x4536,"8CE4"],
+ [0x453B,"99C3"],
+ [0x453D,"90D6"],
+ [0x453F,"9CBE"],
+ [0x4543,"8F76"],
+ [0x4551,"9470"],
+ [0x4552,"FB4B"],
+ [0x4555,"FDCA"],
+ [0x4558,"8CEF"],
+ [0x455C,"8EC7"],
+ [0x4561,"8D54"],
+ [0x4562,"A0F9"],
+ [0x456A,"8FA9"],
+ [0x456D,"8D51"],
+ [0x4577,"99C7"],
+ [0x4578,"8744"],
+ [0x4585,"90D7"],
+ [0x45A6,"8743"],
+ [0x45B3,"8747"],
+ [0x45DA,"8758"],
+ [0x45E9,"9EDF"],
+ [0x45EA,"8D59"],
+ [0x4603,"8742"],
+ [0x4606,"99CE"],
+ [0x460F,"8FBA"],
+ [0x4615,"8FEB"],
+ [0x4617,"99CF"],
+ [0x465B,"8FC2"],
+ [0x467A,"92C9"],
+ [0x4680,"97DC"],
+ [0x46A1,"875D"],
+ [0x46AE,"87CC"],
+ [0x46BB,"8D45"],
+ [0x46CF,"95B3"],
+ [0x46D0,"9C79"],
+ [0x46F5,"95B2"],
+ [0x46F7,"8D4C"],
+ [0x4713,"8FDB"],
+ [0x4718,"9BE3"],
+ [0x4736,"874C"],
+ [0x4744,"874D"],
+ [0x474E,"9E7A"],
+ [0x474F,"8757"],
+ [0x477C,"9BEE"],
+ [0x4798,"99DE"],
+ [0x47A6,"FAFA"],
+ [0x47D5,"8A52"],
+ [0x47ED,"99E1"],
+ [0x47F4,"8A67"],
+ [0x4800,"8BB5"],
+ [0x480B,"8AAC"],
+ [0x4837,"99E9"],
+ [0x485D,"FBCA"],
+ [0x4871,"97DE"],
+ [0x489B,"95D1"],
+ [0x48AD,"99F5"],
+ [0x48AE,"FC4A"],
+ [0x48D0,"9BA9"],
+ [0x48DD,"FBDC"],
+ [0x48ED,"FE56"],
+ [0x48F3,"9EA4"],
+ [0x48FA,"9D49"],
+ [0x4906,"95DB"],
+ [0x4911,"89C5"],
+ [0x491E,"99F8"],
+ [0x4925,"9664"],
+ [0x492A,"9055"],
+ [0x492D,"96D4"],
+ [0x492F,"87C4"],
+ [0x4930,"87AE"],
+ [0x4935,"977C"],
+ [0x493C,"964D"],
+ [0x493E,"97E1"],
+ [0x4945,"9A48"],
+ [0x4951,"9A49"],
+ [0x4953,"FE7D"],
+ [0x4965,"90AA"],
+ [0x496A,"9A50"],
+ [0x4972,"9347"],
+ [0x4989,"8ED8"],
+ [0x49A1,"90C9"],
+ [0x49A7,"9A55"],
+ [0x49DF,"90BC"],
+ [0x49E5,"9A58"],
+ [0x49E7,"8BB8"],
+ [0x4A0F,"90D5"],
+ [0x4A1D,"9641"],
+ [0x4A24,"9A5A"],
+ [0x4A35,"9A5C"],
+ [0x4A96,"97C2"],
+ [0x4AA4,"875C"],
+ [0x4AB4,"8ABB"],
+ [0x4AB8,"9BAA"],
+ [0x4AD1,"90F5"],
+ [0x4AE4,"9A60"],
+ [0x4AFF,"9145"],
+ [0x4B10,"8C58"],
+ [0x4B19,"9A63"],
+ [0x4B20,"8C49"],
+ [0x4B2C,"8BB6"],
+ [0x4B37,"FCCF"],
+ [0x4B6F,"966B"],
+ [0x4B70,"9A6E"],
+ [0x4B72,"914F"],
+ [0x4B7B,"9746"],
+ [0x4B7E,"A0E6"],
+ [0x4B8E,"92D7"],
+ [0x4B90,"9675"],
+ [0x4B93,"93D4"],
+ [0x4B96,"91BB"],
+ [0x4B97,"9679"],
+ [0x4B9D,"9A70"],
+ [0x4BBD,"9678"],
+ [0x4BBE,"91CD"],
+ [0x4BC0,"9C4A"],
+ [0x4C04,"A06F"],
+ [0x4C07,"A06A"],
+ [0x4C0E,"915F"],
+ [0x4C32,"8741"],
+ [0x4C3B,"9FA5"],
+ [0x4C3E,"89BA"],
+ [0x4C40,"874F"],
+ [0x4C47,"874E"],
+ [0x4C57,"8755"],
+ [0x4C5B,"9ECD"],
+ [0x4C6D,"9A79"],
+ [0x4C77,"8CF2"],
+ [0x4C7B,"8D57"],
+ [0x4C7D,"9DCE"],
+ [0x4C81,"8CD2"],
+ [0x4C85,"8759"],
+ [0x4CA4,"9D73"],
+ [0x4CAE,"96B9"],
+ [0x4CB0,"96BC"],
+ [0x4CB7,"9CD1"],
+ [0x4CCD,"89B7"],
+ [0x4CE1,"9EEE"],
+ [0x4CE2,"8749"],
+ [0x4CED,"FB43"],
+ [0x4D07,"875B"],
+ [0x4D09,"9EC9"],
+ [0x4D10,"FBD3"],
+ [0x4D34,"91AE"],
+ [0x4D76,"8D58"],
+ [0x4D77,"8746"],
+ [0x4D89,"8D56"],
+ [0x4D91,"9D78"],
+ [0x4D9C,"9D7B"],
+ [0x4E00,"A440"],
+ [0x4E01,"A442"],
+ [0x4E03,"A443"],
+ [0x4E04,"9EB3"],
+ [0x4E07,"C945"],
+ [0x4E08,"A456"],
+ [0x4E09,"A454"],
+ [0x4E0A,"A457"],
+ [0x4E0B,"A455"],
+ [0x4E0C,"C946"],
+ [0x4E0D,"A4A3"],
+ [0x4E0E,"C94F"],
+ [0x4E0F,"C94D"],
+ [0x4E10,"A4A2"],
+ [0x4E11,"A4A1"],
+ [0x4E14,"A542"],
+ [0x4E15,"A541"],
+ [0x4E16,"A540"],
+ [0x4E18,"A543"],
+ [0x4E19,"A4FE"],
+ [0x4E1A,"9EB2"],
+ [0x4E1C,"9DD6"],
+ [0x4E1E,"A5E0"],
+ [0x4E1F,"A5E1"],
+ [0x4E21,"994F"],
+ [0x4E24,"89CE"],
+ [0x4E26,"A8C3"],
+ [0x4E28,"8BC0"],
+ [0x4E2A,"9FC4"],
+ [0x4E2B,"A458"],
+ [0x4E2C,"8BD4"],
+ [0x4E2D,"A4A4"],
+ [0x4E2E,"C950"],
+ [0x4E2F,"8C72"],
+ [0x4E30,"A4A5"],
+ [0x4E31,"C963"],
+ [0x4E32,"A6EA"],
+ [0x4E33,"CBB1"],
+ [0x4E36,"C6BF"],
+ [0x4E37,"8BF9"],
+ [0x4E38,"A459"],
+ [0x4E39,"A4A6"],
+ [0x4E3B,"A544"],
+ [0x4E3C,"C964"],
+ [0x4E3D,"8946"],
+ [0x4E3F,"C6C0"],
+ [0x4E42,"C940"],
+ [0x4E43,"A444"],
+ [0x4E45,"A45B"],
+ [0x4E47,"C947"],
+ [0x4E48,"A45C"],
+ [0x4E49,"FAE5"],
+ [0x4E4B,"A4A7"],
+ [0x4E4D,"A545"],
+ [0x4E4E,"A547"],
+ [0x4E4F,"A546"],
+ [0x4E52,"A5E2"],
+ [0x4E53,"A5E3"],
+ [0x4E56,"A8C4"],
+ [0x4E58,"ADBC"],
+ [0x4E59,"A441"],
+ [0x4E5A,"C87B"],
+ [0x4E5B,"8BC6"],
+ [0x4E5C,"C941"],
+ [0x4E5D,"A445"],
+ [0x4E5E,"A45E"],
+ [0x4E5F,"A45D"],
+ [0x4E69,"A5E4"],
+ [0x4E6A,"9C57"],
+ [0x4E73,"A8C5"],
+ [0x4E78,"9AFB"],
+ [0x4E7E,"B0AE"],
+ [0x4E7F,"D44B"],
+ [0x4E80,"89D0"],
+ [0x4E81,"89CF"],
+ [0x4E82,"B6C3"],
+ [0x4E83,"DCB1"],
+ [0x4E84,"DCB2"],
+ [0x4E85,"C6C1"],
+ [0x4E86,"A446"],
+ [0x4E87,"89D1"],
+ [0x4E88,"A4A9"],
+ [0x4E89,"89E2"],
+ [0x4E8B,"A8C6"],
+ [0x4E8C,"A447"],
+ [0x4E8D,"C948"],
+ [0x4E8E,"A45F"],
+ [0x4E91,"A4AA"],
+ [0x4E92,"A4AC"],
+ [0x4E93,"C951"],
+ [0x4E94,"A4AD"],
+ [0x4E95,"A4AB"],
+ [0x4E98,"927E"],
+ [0x4E99,"A5E5"],
+ [0x4E9A,"9DBA"],
+ [0x4E9B,"A8C7"],
+ [0x4E9E,"A8C8"],
+ [0x4E9F,"AB45"],
+ [0x4EA0,"C6C2"],
+ [0x4EA1,"A460"],
+ [0x4EA2,"A4AE"],
+ [0x4EA3,"8C6F"],
+ [0x4EA4,"A5E6"],
+ [0x4EA5,"A5E8"],
+ [0x4EA6,"A5E7"],
+ [0x4EA8,"A6EB"],
+ [0x4EAB,"A8C9"],
+ [0x4EAC,"A8CA"],
+ [0x4EAD,"AB46"],
+ [0x4EAE,"AB47"],
+ [0x4EB3,"ADBD"],
+ [0x4EB6,"DCB3"],
+ [0x4EB7,"FBF8"],
+ [0x4EB9,"F6D6"],
+ [0x4EBA,"A448"],
+ [0x4EBB,"8BC7"],
+ [0x4EBC,"926B"],
+ [0x4EBF,"89D2"],
+ [0x4EC0,"A4B0"],
+ [0x4EC1,"A4AF"],
+ [0x4EC2,"C952"],
+ [0x4EC3,"A4B1"],
+ [0x4EC4,"A4B7"],
+ [0x4EC6,"A4B2"],
+ [0x4EC7,"A4B3"],
+ [0x4EC8,"C954"],
+ [0x4EC9,"C953"],
+ [0x4ECA,"A4B5"],
+ [0x4ECB,"A4B6"],
+ [0x4ECD,"A4B4"],
+ [0x4ECE,"9FCF"],
+ [0x4ED4,"A54A"],
+ [0x4ED5,"A54B"],
+ [0x4ED6,"A54C"],
+ [0x4ED7,"A54D"],
+ [0x4ED8,"A549"],
+ [0x4ED9,"A550"],
+ [0x4EDA,"C96A"],
+ [0x4EDC,"C966"],
+ [0x4EDD,"C969"],
+ [0x4EDE,"A551"],
+ [0x4EDF,"A561"],
+ [0x4EE1,"C968"],
+ [0x4EE3,"A54E"],
+ [0x4EE4,"A54F"],
+ [0x4EE5,"A548"],
+ [0x4EE8,"C965"],
+ [0x4EE9,"C967"],
+ [0x4EEA,"9DA9"],
+ [0x4EEB,"89D3"],
+ [0x4EEE,"99E2"],
+ [0x4EF0,"A5F5"],
+ [0x4EF1,"C9B0"],
+ [0x4EF2,"A5F2"],
+ [0x4EF3,"A5F6"],
+ [0x4EF4,"C9BA"],
+ [0x4EF5,"C9AE"],
+ [0x4EF6,"A5F3"],
+ [0x4EF7,"C9B2"],
+ [0x4EF8,"9267"],
+ [0x4EFB,"A5F4"],
+ [0x4EFD,"A5F7"],
+ [0x4EFF,"A5E9"],
+ [0x4F00,"C9B1"],
+ [0x4F01,"A5F8"],
+ [0x4F02,"C9B5"],
+ [0x4F03,"92A4"],
+ [0x4F04,"C9B9"],
+ [0x4F05,"C9B6"],
+ [0x4F08,"C9B3"],
+ [0x4F09,"A5EA"],
+ [0x4F0A,"A5EC"],
+ [0x4F0B,"A5F9"],
+ [0x4F0D,"A5EE"],
+ [0x4F0E,"C9AB"],
+ [0x4F0F,"A5F1"],
+ [0x4F10,"A5EF"],
+ [0x4F11,"A5F0"],
+ [0x4F12,"C9BB"],
+ [0x4F13,"C9B8"],
+ [0x4F14,"C9AF"],
+ [0x4F15,"A5ED"],
+ [0x4F17,"8C73"],
+ [0x4F18,"C9AC"],
+ [0x4F19,"A5EB"],
+ [0x4F1A,"894E"],
+ [0x4F1D,"C9B4"],
+ [0x4F22,"C9B7"],
+ [0x4F28,"894F"],
+ [0x4F29,"9278"],
+ [0x4F2C,"C9AD"],
+ [0x4F2D,"CA66"],
+ [0x4F2F,"A742"],
+ [0x4F30,"A6F4"],
+ [0x4F32,"91B6"],
+ [0x4F33,"CA67"],
+ [0x4F34,"A6F1"],
+ [0x4F36,"A744"],
+ [0x4F37,"89D4"],
+ [0x4F38,"A6F9"],
+ [0x4F39,"9FD2"],
+ [0x4F3A,"A6F8"],
+ [0x4F3B,"CA5B"],
+ [0x4F3C,"A6FC"],
+ [0x4F3D,"A6F7"],
+ [0x4F3E,"CA60"],
+ [0x4F3F,"CA68"],
+ [0x4F41,"CA64"],
+ [0x4F42,"92A7"],
+ [0x4F43,"A6FA"],
+ [0x4F45,"95A2"],
+ [0x4F46,"A6FD"],
+ [0x4F47,"A6EE"],
+ [0x4F48,"A747"],
+ [0x4F49,"CA5D"],
+ [0x4F4B,"926E"],
+ [0x4F4C,"CBBD"],
+ [0x4F4D,"A6EC"],
+ [0x4F4E,"A743"],
+ [0x4F4F,"A6ED"],
+ [0x4F50,"A6F5"],
+ [0x4F51,"A6F6"],
+ [0x4F52,"CA62"],
+ [0x4F53,"CA5E"],
+ [0x4F54,"A6FB"],
+ [0x4F55,"A6F3"],
+ [0x4F56,"CA5A"],
+ [0x4F57,"A6EF"],
+ [0x4F58,"CA65"],
+ [0x4F59,"A745"],
+ [0x4F5A,"A748"],
+ [0x4F5B,"A6F2"],
+ [0x4F5C,"A740"],
+ [0x4F5D,"A746"],
+ [0x4F5E,"A6F0"],
+ [0x4F5F,"CA63"],
+ [0x4F60,"A741"],
+ [0x4F61,"CA69"],
+ [0x4F62,"CA5C"],
+ [0x4F63,"A6FE"],
+ [0x4F64,"CA5F"],
+ [0x4F67,"CA61"],
+ [0x4F69,"A8D8"],
+ [0x4F6A,"CBBF"],
+ [0x4F6B,"CBCB"],
+ [0x4F6C,"A8D0"],
+ [0x4F6E,"CBCC"],
+ [0x4F6F,"A8CB"],
+ [0x4F70,"A8D5"],
+ [0x4F72,"96EA"],
+ [0x4F73,"A8CE"],
+ [0x4F74,"CBB9"],
+ [0x4F75,"A8D6"],
+ [0x4F76,"CBB8"],
+ [0x4F77,"CBBC"],
+ [0x4F78,"CBC3"],
+ [0x4F79,"CBC1"],
+ [0x4F7A,"A8DE"],
+ [0x4F7B,"A8D9"],
+ [0x4F7C,"CBB3"],
+ [0x4F7D,"CBB5"],
+ [0x4F7E,"A8DB"],
+ [0x4F7F,"A8CF"],
+ [0x4F80,"CBB6"],
+ [0x4F81,"CBC2"],
+ [0x4F82,"CBC9"],
+ [0x4F83,"A8D4"],
+ [0x4F84,"CBBB"],
+ [0x4F85,"CBB4"],
+ [0x4F86,"A8D3"],
+ [0x4F87,"CBB7"],
+ [0x4F88,"A8D7"],
+ [0x4F89,"CBBA"],
+ [0x4F8A,"926F"],
+ [0x4F8B,"A8D2"],
+ [0x4F8D,"A8CD"],
+ [0x4F8F,"A8DC"],
+ [0x4F90,"CBC4"],
+ [0x4F91,"A8DD"],
+ [0x4F92,"CBC8"],
+ [0x4F94,"CBC6"],
+ [0x4F95,"CBCA"],
+ [0x4F96,"A8DA"],
+ [0x4F97,"CBBE"],
+ [0x4F98,"CBB2"],
+ [0x4F9A,"CBC0"],
+ [0x4F9B,"A8D1"],
+ [0x4F9C,"CBC5"],
+ [0x4F9D,"A8CC"],
+ [0x4F9E,"CBC7"],
+ [0x4FA2,"92A3"],
+ [0x4FA8,"8950"],
+ [0x4FAB,"FA57"],
+ [0x4FAE,"AB56"],
+ [0x4FAF,"AB4A"],
+ [0x4FB0,"9866"],
+ [0x4FB2,"CDE0"],
+ [0x4FB3,"CDE8"],
+ [0x4FB4,"8CF8"],
+ [0x4FB5,"AB49"],
+ [0x4FB6,"AB51"],
+ [0x4FB7,"AB5D"],
+ [0x4FB9,"CDEE"],
+ [0x4FBA,"CDEC"],
+ [0x4FBB,"CDE7"],
+ [0x4FBD,"89D6"],
+ [0x4FBF,"AB4B"],
+ [0x4FC0,"CDED"],
+ [0x4FC1,"CDE3"],
+ [0x4FC2,"AB59"],
+ [0x4FC3,"AB50"],
+ [0x4FC4,"AB58"],
+ [0x4FC5,"CDDE"],
+ [0x4FC7,"CDEA"],
+ [0x4FC8,"98B2"],
+ [0x4FC9,"CDE1"],
+ [0x4FCA,"AB54"],
+ [0x4FCB,"CDE2"],
+ [0x4FCC,"92AB"],
+ [0x4FCD,"CDDD"],
+ [0x4FCE,"AB5B"],
+ [0x4FCF,"AB4E"],
+ [0x4FD0,"AB57"],
+ [0x4FD1,"AB4D"],
+ [0x4FD3,"CDDF"],
+ [0x4FD4,"CDE4"],
+ [0x4FD6,"CDEB"],
+ [0x4FD7,"AB55"],
+ [0x4FD8,"AB52"],
+ [0x4FD9,"CDE6"],
+ [0x4FDA,"AB5A"],
+ [0x4FDB,"CDE9"],
+ [0x4FDC,"CDE5"],
+ [0x4FDD,"AB4F"],
+ [0x4FDE,"AB5C"],
+ [0x4FDF,"AB53"],
+ [0x4FE0,"AB4C"],
+ [0x4FE1,"AB48"],
+ [0x4FE4,"96DE"],
+ [0x4FE5,"92AC"],
+ [0x4FEC,"CDEF"],
+ [0x4FEE,"ADD7"],
+ [0x4FEF,"ADC1"],
+ [0x4FF0,"8C70"],
+ [0x4FF1,"ADD1"],
+ [0x4FF2,"9F6E"],
+ [0x4FF3,"ADD6"],
+ [0x4FF4,"D0D0"],
+ [0x4FF5,"D0CF"],
+ [0x4FF6,"D0D4"],
+ [0x4FF7,"D0D5"],
+ [0x4FF8,"ADC4"],
+ [0x4FF9,"8EF2"],
+ [0x4FFA,"ADCD"],
+ [0x4FFD,"9F6C"],
+ [0x4FFE,"ADDA"],
+ [0x5000,"ADCE"],
+ [0x5003,"89D8"],
+ [0x5005,"D0C9"],
+ [0x5006,"ADC7"],
+ [0x5007,"D0CA"],
+ [0x5008,"FA59"],
+ [0x5009,"ADDC"],
+ [0x500B,"ADD3"],
+ [0x500C,"ADBE"],
+ [0x500D,"ADBF"],
+ [0x500E,"D0DD"],
+ [0x500F,"B0BF"],
+ [0x5011,"ADCC"],
+ [0x5012,"ADCB"],
+ [0x5013,"D0CB"],
+ [0x5014,"ADCF"],
+ [0x5015,"D45B"],
+ [0x5016,"ADC6"],
+ [0x5017,"D0D6"],
+ [0x5018,"ADD5"],
+ [0x5019,"ADD4"],
+ [0x501A,"ADCA"],
+ [0x501B,"D0CE"],
+ [0x501C,"D0D7"],
+ [0x501E,"D0C8"],
+ [0x501F,"ADC9"],
+ [0x5020,"D0D8"],
+ [0x5021,"ADD2"],
+ [0x5022,"D0CC"],
+ [0x5023,"ADC0"],
+ [0x5025,"ADC3"],
+ [0x5026,"ADC2"],
+ [0x5027,"D0D9"],
+ [0x5028,"ADD0"],
+ [0x5029,"ADC5"],
+ [0x502A,"ADD9"],
+ [0x502B,"ADDB"],
+ [0x502C,"D0D3"],
+ [0x502D,"ADD8"],
+ [0x502E,"92A8"],
+ [0x502F,"D0DB"],
+ [0x5030,"D0CD"],
+ [0x5031,"D0DC"],
+ [0x5033,"D0D1"],
+ [0x5034,"9163"],
+ [0x5035,"D0DA"],
+ [0x5037,"D0D2"],
+ [0x503B,"8C40"],
+ [0x503C,"ADC8"],
+ [0x5040,"D463"],
+ [0x5041,"D457"],
+ [0x5043,"B0B3"],
+ [0x5045,"D45C"],
+ [0x5046,"D462"],
+ [0x5047,"B0B2"],
+ [0x5048,"D455"],
+ [0x5049,"B0B6"],
+ [0x504A,"D459"],
+ [0x504B,"D452"],
+ [0x504C,"B0B4"],
+ [0x504D,"D456"],
+ [0x504E,"B0B9"],
+ [0x504F,"B0BE"],
+ [0x5051,"D467"],
+ [0x5053,"D451"],
+ [0x5055,"B0BA"],
+ [0x5056,"9F73"],
+ [0x5057,"D466"],
+ [0x5058,"92AD"],
+ [0x505A,"B0B5"],
+ [0x505B,"D458"],
+ [0x505C,"B0B1"],
+ [0x505D,"D453"],
+ [0x505E,"D44F"],
+ [0x505F,"D45D"],
+ [0x5060,"D450"],
+ [0x5061,"D44E"],
+ [0x5062,"D45A"],
+ [0x5063,"D460"],
+ [0x5064,"D461"],
+ [0x5065,"B0B7"],
+ [0x5066,"9BE9"],
+ [0x5068,"D85B"],
+ [0x5069,"D45E"],
+ [0x506A,"D44D"],
+ [0x506B,"D45F"],
+ [0x506C,"92A9"],
+ [0x506D,"B0C1"],
+ [0x506E,"D464"],
+ [0x506F,"B0C0"],
+ [0x5070,"D44C"],
+ [0x5072,"D454"],
+ [0x5073,"D465"],
+ [0x5074,"B0BC"],
+ [0x5075,"B0BB"],
+ [0x5076,"B0B8"],
+ [0x5077,"B0BD"],
+ [0x507A,"B0AF"],
+ [0x507D,"B0B0"],
+ [0x5080,"B3C8"],
+ [0x5081,"92AA"],
+ [0x5082,"D85E"],
+ [0x5083,"D857"],
+ [0x5085,"B3C5"],
+ [0x5087,"D85F"],
+ [0x5088,"89D9"],
+ [0x508B,"D855"],
+ [0x508C,"D858"],
+ [0x508D,"B3C4"],
+ [0x508E,"D859"],
+ [0x5090,"FD56"],
+ [0x5091,"B3C7"],
+ [0x5092,"D85D"],
+ [0x5094,"D853"],
+ [0x5095,"D852"],
+ [0x5096,"B3C9"],
+ [0x5098,"B3CA"],
+ [0x5099,"B3C6"],
+ [0x509A,"B3CB"],
+ [0x509B,"D851"],
+ [0x509C,"D85C"],
+ [0x509D,"D85A"],
+ [0x509E,"D854"],
+ [0x50A2,"B3C3"],
+ [0x50A3,"D856"],
+ [0x50A6,"9FA8"],
+ [0x50AC,"B6CA"],
+ [0x50AD,"B6C4"],
+ [0x50AE,"DCB7"],
+ [0x50AF,"B6CD"],
+ [0x50B0,"DCBD"],
+ [0x50B1,"DCC0"],
+ [0x50B2,"B6C6"],
+ [0x50B3,"B6C7"],
+ [0x50B4,"DCBA"],
+ [0x50B5,"B6C5"],
+ [0x50B6,"DCC3"],
+ [0x50B7,"B6CB"],
+ [0x50B8,"DCC4"],
+ [0x50BA,"DCBF"],
+ [0x50BB,"B6CC"],
+ [0x50BC,"8C71"],
+ [0x50BD,"DCB4"],
+ [0x50BE,"B6C9"],
+ [0x50BF,"DCB5"],
+ [0x50C1,"DCBE"],
+ [0x50C2,"DCBC"],
+ [0x50C4,"DCB8"],
+ [0x50C5,"B6C8"],
+ [0x50C6,"DCB6"],
+ [0x50C7,"B6CE"],
+ [0x50C8,"DCBB"],
+ [0x50C9,"DCC2"],
+ [0x50CA,"DCB9"],
+ [0x50CB,"DCC1"],
+ [0x50CD,"92A1"],
+ [0x50CE,"B9B6"],
+ [0x50CF,"B9B3"],
+ [0x50D0,"90E3"],
+ [0x50D1,"B9B4"],
+ [0x50D3,"E0F9"],
+ [0x50D4,"E0F1"],
+ [0x50D5,"B9B2"],
+ [0x50D6,"B9AF"],
+ [0x50D7,"E0F2"],
+ [0x50D9,"A0A6"],
+ [0x50DA,"B9B1"],
+ [0x50DB,"E0F5"],
+ [0x50DD,"E0F7"],
+ [0x50DF,"94AB"],
+ [0x50E0,"E0FE"],
+ [0x50E1,"FC72"],
+ [0x50E3,"E0FD"],
+ [0x50E4,"E0F8"],
+ [0x50E5,"B9AE"],
+ [0x50E6,"E0F0"],
+ [0x50E7,"B9AC"],
+ [0x50E8,"E0F3"],
+ [0x50E9,"B9B7"],
+ [0x50EA,"E0F6"],
+ [0x50EC,"E0FA"],
+ [0x50ED,"B9B0"],
+ [0x50EE,"B9AD"],
+ [0x50EF,"E0FC"],
+ [0x50F0,"E0FB"],
+ [0x50F1,"B9B5"],
+ [0x50F3,"E0F4"],
+ [0x50F4,"97C4"],
+ [0x50F5,"BBF8"],
+ [0x50F6,"E4EC"],
+ [0x50F8,"E4E9"],
+ [0x50F9,"BBF9"],
+ [0x50FB,"BBF7"],
+ [0x50FC,"92AE"],
+ [0x50FD,"E4F0"],
+ [0x50FE,"E4ED"],
+ [0x50FF,"E4E6"],
+ [0x5100,"BBF6"],
+ [0x5101,"FA67"],
+ [0x5102,"BBFA"],
+ [0x5103,"E4E7"],
+ [0x5104,"BBF5"],
+ [0x5105,"BBFD"],
+ [0x5106,"E4EA"],
+ [0x5107,"E4EB"],
+ [0x5108,"BBFB"],
+ [0x5109,"BBFC"],
+ [0x510A,"E4F1"],
+ [0x510B,"E4EE"],
+ [0x510C,"E4EF"],
+ [0x510D,"92A2"],
+ [0x510E,"FA69"],
+ [0x5110,"BEAA"],
+ [0x5111,"E8F8"],
+ [0x5112,"BEA7"],
+ [0x5113,"E8F5"],
+ [0x5114,"BEA9"],
+ [0x5115,"BEAB"],
+ [0x5117,"E8F6"],
+ [0x5118,"BEA8"],
+ [0x511A,"E8F7"],
+ [0x511C,"E8F4"],
+ [0x511F,"C076"],
+ [0x5120,"ECBD"],
+ [0x5121,"C077"],
+ [0x5122,"ECBB"],
+ [0x5124,"ECBC"],
+ [0x5125,"ECBA"],
+ [0x5126,"ECB9"],
+ [0x5129,"ECBE"],
+ [0x512A,"C075"],
+ [0x512B,"9268"],
+ [0x512D,"EFB8"],
+ [0x512E,"EFB9"],
+ [0x5130,"E4E8"],
+ [0x5131,"EFB7"],
+ [0x5132,"C078"],
+ [0x5133,"C35F"],
+ [0x5134,"F1EB"],
+ [0x5135,"F1EC"],
+ [0x5137,"C4D7"],
+ [0x5138,"C4D8"],
+ [0x5139,"F5C1"],
+ [0x513A,"F5C0"],
+ [0x513B,"C56C"],
+ [0x513C,"C56B"],
+ [0x513D,"F7D0"],
+ [0x513F,"A449"],
+ [0x5140,"A461"],
+ [0x5141,"A4B9"],
+ [0x5143,"A4B8"],
+ [0x5144,"A553"],
+ [0x5145,"A552"],
+ [0x5146,"A5FC"],
+ [0x5147,"A5FB"],
+ [0x5148,"A5FD"],
+ [0x5149,"A5FA"],
+ [0x514B,"A74A"],
+ [0x514C,"A749"],
+ [0x514D,"A74B"],
+ [0x5152,"A8E0"],
+ [0x5154,"A8DF"],
+ [0x5155,"A8E1"],
+ [0x5156,"8951"],
+ [0x5157,"AB5E"],
+ [0x5159,"A259"],
+ [0x515A,"D0DE"],
+ [0x515B,"A25A"],
+ [0x515C,"B0C2"],
+ [0x515D,"A25C"],
+ [0x515E,"A25B"],
+ [0x515F,"D860"],
+ [0x5160,"FA6F"],
+ [0x5161,"A25D"],
+ [0x5162,"B9B8"],
+ [0x5163,"A25E"],
+ [0x5165,"A44A"],
+ [0x5167,"A4BA"],
+ [0x5168,"A5FE"],
+ [0x5169,"A8E2"],
+ [0x516A,"FA71"],
+ [0x516B,"A44B"],
+ [0x516C,"A4BD"],
+ [0x516D,"A4BB"],
+ [0x516E,"A4BC"],
+ [0x5171,"A640"],
+ [0x5174,"8952"],
+ [0x5175,"A74C"],
+ [0x5176,"A8E4"],
+ [0x5177,"A8E3"],
+ [0x5178,"A8E5"],
+ [0x5179,"945A"],
+ [0x517C,"ADDD"],
+ [0x5180,"BEAC"],
+ [0x5182,"C6C3"],
+ [0x5186,"89DD"],
+ [0x5187,"C94E"],
+ [0x5188,"C8A2"],
+ [0x5189,"A554"],
+ [0x518A,"A555"],
+ [0x518D,"A641"],
+ [0x518F,"CA6A"],
+ [0x5191,"AB60"],
+ [0x5192,"AB5F"],
+ [0x5193,"D0E0"],
+ [0x5194,"D0DF"],
+ [0x5195,"B0C3"],
+ [0x5196,"C6C4"],
+ [0x5197,"A4BE"],
+ [0x5198,"C955"],
+ [0x519A,"9E52"],
+ [0x519C,"8953"],
+ [0x519E,"CBCD"],
+ [0x51A0,"AB61"],
+ [0x51A2,"ADE0"],
+ [0x51A4,"ADDE"],
+ [0x51A5,"ADDF"],
+ [0x51A7,"9E55"],
+ [0x51A8,"92BA"],
+ [0x51AA,"BEAD"],
+ [0x51AB,"C6C5"],
+ [0x51AC,"A556"],
+ [0x51AE,"8C5B"],
+ [0x51B0,"A642"],
+ [0x51B1,"C9BC"],
+ [0x51B2,"FA7D"],
+ [0x51B3,"FAA8"],
+ [0x51B4,"9A68"],
+ [0x51B5,"FA47"],
+ [0x51B6,"A74D"],
+ [0x51B7,"A74E"],
+ [0x51B8,"FA7E"],
+ [0x51B9,"CA6B"],
+ [0x51BC,"CBCE"],
+ [0x51BD,"A8E6"],
+ [0x51BE,"CBCF"],
+ [0x51C3,"92BB"],
+ [0x51C4,"D0E2"],
+ [0x51C5,"D0E3"],
+ [0x51C6,"ADE3"],
+ [0x51C7,"FDB6"],
+ [0x51C8,"D0E4"],
+ [0x51C9,"FAA2"],
+ [0x51CA,"D0E1"],
+ [0x51CB,"ADE4"],
+ [0x51CC,"ADE2"],
+ [0x51CD,"ADE1"],
+ [0x51CE,"D0E5"],
+ [0x51CF,"FAA3"],
+ [0x51D0,"D468"],
+ [0x51D1,"FAA4"],
+ [0x51D2,"9BB4"],
+ [0x51D3,"FAA6"],
+ [0x51D4,"D861"],
+ [0x51D7,"DCC5"],
+ [0x51D8,"E140"],
+ [0x51DB,"89DF"],
+ [0x51DC,"BBFE"],
+ [0x51DD,"BEAE"],
+ [0x51DE,"E8F9"],
+ [0x51DF,"FDDB"],
+ [0x51E0,"A44C"],
+ [0x51E1,"A45A"],
+ [0x51E2,"FAA9"],
+ [0x51E4,"8954"],
+ [0x51ED,"FAAB"],
+ [0x51F0,"B0C4"],
+ [0x51F1,"B3CD"],
+ [0x51F3,"B9B9"],
+ [0x51F4,"FC7A"],
+ [0x51F5,"C942"],
+ [0x51F6,"A4BF"],
+ [0x51F8,"A559"],
+ [0x51F9,"A557"],
+ [0x51FA,"A558"],
+ [0x51FC,"89E0"],
+ [0x51FD,"A8E7"],
+ [0x51FE,"9F4F"],
+ [0x5200,"A44D"],
+ [0x5201,"A44E"],
+ [0x5202,"C87D"],
+ [0x5203,"A462"],
+ [0x5205,"89E1"],
+ [0x5206,"A4C0"],
+ [0x5207,"A4C1"],
+ [0x5208,"A4C2"],
+ [0x5209,"C9BE"],
+ [0x520A,"A55A"],
+ [0x520B,"FAB0"],
+ [0x520C,"C96B"],
+ [0x520E,"A646"],
+ [0x5210,"C9BF"],
+ [0x5211,"A644"],
+ [0x5212,"A645"],
+ [0x5213,"C9BD"],
+ [0x5216,"A647"],
+ [0x5217,"A643"],
+ [0x521C,"CA6C"],
+ [0x521D,"AAEC"],
+ [0x521E,"CA6D"],
+ [0x521F,"9FCD"],
+ [0x5220,"A0E7"],
+ [0x5221,"CA6E"],
+ [0x5224,"A750"],
+ [0x5225,"A74F"],
+ [0x5226,"FAB1"],
+ [0x5227,"89A6"],
+ [0x5228,"A753"],
+ [0x5229,"A751"],
+ [0x522A,"A752"],
+ [0x522E,"A8ED"],
+ [0x5230,"A8EC"],
+ [0x5231,"CBD4"],
+ [0x5232,"CBD1"],
+ [0x5233,"CBD2"],
+ [0x5234,"9EFA"],
+ [0x5235,"CBD0"],
+ [0x5236,"A8EE"],
+ [0x5237,"A8EA"],
+ [0x5238,"A8E9"],
+ [0x523A,"A8EB"],
+ [0x523B,"A8E8"],
+ [0x523C,"FAB2"],
+ [0x5241,"A8EF"],
+ [0x5243,"AB63"],
+ [0x5244,"CDF0"],
+ [0x5246,"CBD3"],
+ [0x5247,"AB68"],
+ [0x5249,"CDF1"],
+ [0x524A,"AB64"],
+ [0x524B,"AB67"],
+ [0x524C,"AB66"],
+ [0x524D,"AB65"],
+ [0x524E,"AB62"],
+ [0x524F,"87BC"],
+ [0x5252,"D0E8"],
+ [0x5254,"ADE7"],
+ [0x5255,"D0EB"],
+ [0x5256,"ADE5"],
+ [0x5257,"FAB4"],
+ [0x5259,"92C4"],
+ [0x525A,"D0E7"],
+ [0x525B,"ADE8"],
+ [0x525C,"ADE6"],
+ [0x525D,"ADE9"],
+ [0x525E,"D0E9"],
+ [0x525F,"D0EA"],
+ [0x5260,"9F6F"],
+ [0x5261,"D0E6"],
+ [0x5262,"D0EC"],
+ [0x5268,"8BB0"],
+ [0x5269,"B3D1"],
+ [0x526A,"B0C5"],
+ [0x526B,"D469"],
+ [0x526C,"D46B"],
+ [0x526D,"D46A"],
+ [0x526E,"D46C"],
+ [0x526F,"B0C6"],
+ [0x5272,"B3CE"],
+ [0x5273,"9FAC"],
+ [0x5274,"B3CF"],
+ [0x5275,"B3D0"],
+ [0x5277,"B6D0"],
+ [0x5278,"DCC7"],
+ [0x5279,"89E3"],
+ [0x527A,"DCC6"],
+ [0x527B,"DCC8"],
+ [0x527C,"DCC9"],
+ [0x527D,"B6D1"],
+ [0x527F,"B6CF"],
+ [0x5280,"E141"],
+ [0x5281,"E142"],
+ [0x5282,"B9BB"],
+ [0x5283,"B9BA"],
+ [0x5284,"E35A"],
+ [0x5287,"BC40"],
+ [0x5288,"BC41"],
+ [0x5289,"BC42"],
+ [0x528A,"BC44"],
+ [0x528B,"E4F2"],
+ [0x528C,"E4F3"],
+ [0x528D,"BC43"],
+ [0x528F,"9BD3"],
+ [0x5290,"89E4"],
+ [0x5291,"BEAF"],
+ [0x5293,"BEB0"],
+ [0x5294,"FAB5"],
+ [0x5296,"F1ED"],
+ [0x5297,"F5C3"],
+ [0x5298,"F5C2"],
+ [0x5299,"F7D1"],
+ [0x529A,"9FD5"],
+ [0x529B,"A44F"],
+ [0x529F,"A55C"],
+ [0x52A0,"A55B"],
+ [0x52A1,"8955"],
+ [0x52A3,"A648"],
+ [0x52A4,"92C5"],
+ [0x52A6,"C9C0"],
+ [0x52A8,"8956"],
+ [0x52A9,"A755"],
+ [0x52AA,"A756"],
+ [0x52AB,"A754"],
+ [0x52AC,"A757"],
+ [0x52AD,"CA6F"],
+ [0x52AE,"CA70"],
+ [0x52B5,"FAB3"],
+ [0x52B9,"FAB6"],
+ [0x52BB,"A8F1"],
+ [0x52BC,"CBD5"],
+ [0x52BE,"A8F0"],
+ [0x52C0,"CDF2"],
+ [0x52C1,"AB6C"],
+ [0x52C2,"CDF3"],
+ [0x52C3,"AB6B"],
+ [0x52C5,"FAB7"],
+ [0x52C7,"AB69"],
+ [0x52C9,"AB6A"],
+ [0x52CC,"9EDC"],
+ [0x52CD,"D0ED"],
+ [0x52D0,"FBC4"],
+ [0x52D1,"9F71"],
+ [0x52D2,"B0C7"],
+ [0x52D3,"D46E"],
+ [0x52D5,"B0CA"],
+ [0x52D6,"D46D"],
+ [0x52D7,"B1E5"],
+ [0x52D8,"B0C9"],
+ [0x52D9,"B0C8"],
+ [0x52DB,"B3D4"],
+ [0x52DD,"B3D3"],
+ [0x52DE,"B3D2"],
+ [0x52DF,"B6D2"],
+ [0x52E0,"FABA"],
+ [0x52E1,"92C7"],
+ [0x52E2,"B6D5"],
+ [0x52E3,"B6D6"],
+ [0x52E4,"B6D4"],
+ [0x52E6,"B6D3"],
+ [0x52E9,"E143"],
+ [0x52EB,"E144"],
+ [0x52EF,"E4F5"],
+ [0x52F0,"BC45"],
+ [0x52F1,"E4F4"],
+ [0x52F3,"BEB1"],
+ [0x52F4,"ECBF"],
+ [0x52F5,"C079"],
+ [0x52F7,"F1EE"],
+ [0x52F8,"C455"],
+ [0x52F9,"C6C6"],
+ [0x52FA,"A463"],
+ [0x52FB,"A4C3"],
+ [0x52FC,"C956"],
+ [0x52FE,"A4C4"],
+ [0x52FF,"A4C5"],
+ [0x5301,"9A4C"],
+ [0x5305,"A55D"],
+ [0x5306,"A55E"],
+ [0x5308,"A649"],
+ [0x5309,"CA71"],
+ [0x530A,"CBD6"],
+ [0x530B,"CBD7"],
+ [0x530D,"AB6D"],
+ [0x530E,"D0EE"],
+ [0x530F,"B0CC"],
+ [0x5310,"B0CB"],
+ [0x5311,"D863"],
+ [0x5312,"D862"],
+ [0x5315,"A450"],
+ [0x5316,"A4C6"],
+ [0x5317,"A55F"],
+ [0x5319,"B0CD"],
+ [0x531A,"C943"],
+ [0x531C,"C96C"],
+ [0x531D,"A560"],
+ [0x531F,"C9C2"],
+ [0x5320,"A64B"],
+ [0x5321,"A64A"],
+ [0x5322,"C9C1"],
+ [0x5323,"A758"],
+ [0x5324,"8C68"],
+ [0x5327,"89E5"],
+ [0x532A,"ADEA"],
+ [0x532C,"9F7D"],
+ [0x532D,"D46F"],
+ [0x532F,"B6D7"],
+ [0x5330,"E145"],
+ [0x5331,"B9BC"],
+ [0x5332,"A0A9"],
+ [0x5333,"FAC4"],
+ [0x5334,"E8FA"],
+ [0x5337,"F3FD"],
+ [0x5338,"C6C7"],
+ [0x5339,"A4C7"],
+ [0x533B,"8957"],
+ [0x533C,"CBD8"],
+ [0x533D,"CDF4"],
+ [0x533E,"B0D0"],
+ [0x533F,"B0CE"],
+ [0x5340,"B0CF"],
+ [0x5341,"A451"],
+ [0x5342,"FAAA"],
+ [0x5343,"A464"],
+ [0x5344,"A2CD"],
+ [0x5345,"A4CA"],
+ [0x5347,"A4C9"],
+ [0x5348,"A4C8"],
+ [0x5349,"A563"],
+ [0x534A,"A562"],
+ [0x534C,"C96D"],
+ [0x534D,"C9C3"],
+ [0x534E,"8958"],
+ [0x5351,"A8F5"],
+ [0x5352,"A8F2"],
+ [0x5353,"A8F4"],
+ [0x5354,"A8F3"],
+ [0x5357,"AB6E"],
+ [0x535A,"B3D5"],
+ [0x535C,"A452"],
+ [0x535D,"8BE3"],
+ [0x535E,"A4CB"],
+ [0x535F,"8B61"],
+ [0x5360,"A565"],
+ [0x5361,"A564"],
+ [0x5363,"CA72"],
+ [0x5364,"9AF1"],
+ [0x5366,"A8F6"],
+ [0x5367,"9EB7"],
+ [0x5369,"C6C8"],
+ [0x536C,"C957"],
+ [0x536D,"FAD1"],
+ [0x536E,"A567"],
+ [0x536F,"A566"],
+ [0x5370,"A64C"],
+ [0x5371,"A64D"],
+ [0x5372,"CA73"],
+ [0x5373,"A759"],
+ [0x5374,"FAD2"],
+ [0x5375,"A75A"],
+ [0x5377,"A8F7"],
+ [0x5378,"A8F8"],
+ [0x5379,"A8F9"],
+ [0x537B,"AB6F"],
+ [0x537C,"CDF5"],
+ [0x537D,"9EBA"],
+ [0x537E,"FAD4"],
+ [0x537F,"ADEB"],
+ [0x5382,"C944"],
+ [0x5384,"A4CC"],
+ [0x538A,"C9C4"],
+ [0x538E,"CA74"],
+ [0x538F,"CA75"],
+ [0x5392,"CBD9"],
+ [0x5393,"FAD9"],
+ [0x5394,"CBDA"],
+ [0x5396,"CDF7"],
+ [0x5397,"CDF6"],
+ [0x5398,"CDF9"],
+ [0x5399,"CDF8"],
+ [0x539A,"AB70"],
+ [0x539C,"D470"],
+ [0x539D,"ADED"],
+ [0x539E,"D0EF"],
+ [0x539F,"ADEC"],
+ [0x53A0,"FADB"],
+ [0x53A2,"9CE0"],
+ [0x53A4,"D864"],
+ [0x53A5,"B3D6"],
+ [0x53A6,"FBF7"],
+ [0x53A7,"D865"],
+ [0x53A8,"FBFA"],
+ [0x53A9,"89E7"],
+ [0x53AA,"A07A"],
+ [0x53AB,"FADC"],
+ [0x53AC,"E146"],
+ [0x53AD,"B9BD"],
+ [0x53AE,"FADD"],
+ [0x53B0,"89E9"],
+ [0x53B2,"BC46"],
+ [0x53B4,"F1EF"],
+ [0x53B6,"C6C9"],
+ [0x53B9,"C958"],
+ [0x53BB,"A568"],
+ [0x53C1,"FAE2"],
+ [0x53C2,"89EB"],
+ [0x53C3,"B0D1"],
+ [0x53C5,"FAE3"],
+ [0x53C8,"A453"],
+ [0x53C9,"A465"],
+ [0x53CA,"A4CE"],
+ [0x53CB,"A4CD"],
+ [0x53CC,"90C8"],
+ [0x53CD,"A4CF"],
+ [0x53D0,"92DA"],
+ [0x53D1,"8959"],
+ [0x53D2,"9CF5"],
+ [0x53D4,"A8FB"],
+ [0x53D6,"A8FA"],
+ [0x53D7,"A8FC"],
+ [0x53D8,"895A"],
+ [0x53D9,"FAE7"],
+ [0x53DA,"9FA2"],
+ [0x53DB,"AB71"],
+ [0x53DF,"ADEE"],
+ [0x53E0,"FAEA"],
+ [0x53E1,"E8FB"],
+ [0x53E2,"C24F"],
+ [0x53E3,"A466"],
+ [0x53E4,"A56A"],
+ [0x53E5,"A579"],
+ [0x53E6,"A574"],
+ [0x53E8,"A56F"],
+ [0x53E9,"A56E"],
+ [0x53EA,"A575"],
+ [0x53EB,"A573"],
+ [0x53EC,"A56C"],
+ [0x53ED,"A57A"],
+ [0x53EE,"A56D"],
+ [0x53EF,"A569"],
+ [0x53F0,"A578"],
+ [0x53F1,"A577"],
+ [0x53F2,"A576"],
+ [0x53F3,"A56B"],
+ [0x53F5,"A572"],
+ [0x53F6,"FAED"],
+ [0x53F7,"8FAD"],
+ [0x53F8,"A571"],
+ [0x53FB,"A57B"],
+ [0x53FC,"A570"],
+ [0x53FE,"FB59"],
+ [0x5401,"A653"],
+ [0x5403,"A659"],
+ [0x5404,"A655"],
+ [0x5406,"A65B"],
+ [0x5407,"C9C5"],
+ [0x5408,"A658"],
+ [0x5409,"A64E"],
+ [0x540A,"A651"],
+ [0x540B,"A654"],
+ [0x540C,"A650"],
+ [0x540D,"A657"],
+ [0x540E,"A65A"],
+ [0x540F,"A64F"],
+ [0x5410,"A652"],
+ [0x5411,"A656"],
+ [0x5412,"A65C"],
+ [0x5413,"FAEF"],
+ [0x5414,"96EF"],
+ [0x5416,"9DEC"],
+ [0x5418,"CA7E"],
+ [0x5419,"CA7B"],
+ [0x541A,"9DCA"],
+ [0x541B,"A767"],
+ [0x541C,"CA7C"],
+ [0x541D,"A75B"],
+ [0x541E,"A75D"],
+ [0x541F,"A775"],
+ [0x5420,"A770"],
+ [0x5421,"FD6D"],
+ [0x5423,"89EC"],
+ [0x5424,"CAA5"],
+ [0x5425,"CA7D"],
+ [0x5426,"A75F"],
+ [0x5427,"A761"],
+ [0x5428,"CAA4"],
+ [0x5429,"A768"],
+ [0x542A,"CA78"],
+ [0x542B,"A774"],
+ [0x542C,"A776"],
+ [0x542D,"A75C"],
+ [0x542E,"A76D"],
+ [0x542F,"FB44"],
+ [0x5430,"CA76"],
+ [0x5431,"A773"],
+ [0x5432,"9DE2"],
+ [0x5433,"A764"],
+ [0x5434,"8C75"],
+ [0x5435,"A76E"],
+ [0x5436,"A76F"],
+ [0x5437,"CA77"],
+ [0x5438,"A76C"],
+ [0x5439,"A76A"],
+ [0x543B,"A76B"],
+ [0x543C,"A771"],
+ [0x543D,"CAA1"],
+ [0x543E,"A75E"],
+ [0x5440,"A772"],
+ [0x5441,"CAA3"],
+ [0x5442,"A766"],
+ [0x5443,"A763"],
+ [0x5445,"CA7A"],
+ [0x5446,"A762"],
+ [0x5447,"CAA6"],
+ [0x5448,"A765"],
+ [0x544A,"A769"],
+ [0x544B,"9EC0"],
+ [0x544C,"87C5"],
+ [0x544D,"9E56"],
+ [0x544E,"A760"],
+ [0x544F,"CAA2"],
+ [0x5454,"CA79"],
+ [0x5460,"CBEB"],
+ [0x5461,"CBEA"],
+ [0x5462,"A94F"],
+ [0x5463,"CBED"],
+ [0x5464,"CBEF"],
+ [0x5465,"CBE4"],
+ [0x5466,"CBE7"],
+ [0x5467,"CBEE"],
+ [0x5468,"A950"],
+ [0x5469,"9F79"],
+ [0x546A,"9AC7"],
+ [0x546B,"CBE1"],
+ [0x546C,"CBE5"],
+ [0x546D,"FAF4"],
+ [0x546F,"CBE9"],
+ [0x5470,"CE49"],
+ [0x5471,"A94B"],
+ [0x5472,"CE4D"],
+ [0x5473,"A8FD"],
+ [0x5474,"CBE6"],
+ [0x5475,"A8FE"],
+ [0x5476,"A94C"],
+ [0x5477,"A945"],
+ [0x5478,"A941"],
+ [0x547A,"CBE2"],
+ [0x547B,"A944"],
+ [0x547C,"A949"],
+ [0x547D,"A952"],
+ [0x547E,"CBE3"],
+ [0x547F,"CBDC"],
+ [0x5480,"A943"],
+ [0x5481,"CBDD"],
+ [0x5482,"CBDF"],
+ [0x5484,"A946"],
+ [0x5485,"98A1"],
+ [0x5486,"A948"],
+ [0x5487,"CBDB"],
+ [0x5488,"CBE0"],
+ [0x548B,"A951"],
+ [0x548C,"A94D"],
+ [0x548D,"CBE8"],
+ [0x548E,"A953"],
+ [0x548F,"FAF8"],
+ [0x5490,"A94A"],
+ [0x5491,"CBDE"],
+ [0x5492,"A947"],
+ [0x5493,"89F0"],
+ [0x5494,"9E47"],
+ [0x5495,"A942"],
+ [0x5496,"A940"],
+ [0x5497,"9DF7"],
+ [0x5498,"CBEC"],
+ [0x549A,"A94E"],
+ [0x549C,"9FD3"],
+ [0x549E,"9ACA"],
+ [0x54A0,"CE48"],
+ [0x54A1,"CDFB"],
+ [0x54A2,"CE4B"],
+ [0x54A3,"89F1"],
+ [0x54A4,"FAF9"],
+ [0x54A5,"CDFD"],
+ [0x54A6,"AB78"],
+ [0x54A7,"ABA8"],
+ [0x54A8,"AB74"],
+ [0x54A9,"ABA7"],
+ [0x54AA,"AB7D"],
+ [0x54AB,"ABA4"],
+ [0x54AC,"AB72"],
+ [0x54AD,"CDFC"],
+ [0x54AE,"CE43"],
+ [0x54AF,"ABA3"],
+ [0x54B0,"CE4F"],
+ [0x54B1,"ABA5"],
+ [0x54B2,"8E5A"],
+ [0x54B3,"AB79"],
+ [0x54B4,"89F2"],
+ [0x54B6,"CE45"],
+ [0x54B7,"CE42"],
+ [0x54B8,"AB77"],
+ [0x54B9,"89F3"],
+ [0x54BA,"CDFA"],
+ [0x54BB,"ABA6"],
+ [0x54BC,"CE4A"],
+ [0x54BD,"AB7C"],
+ [0x54BE,"CE4C"],
+ [0x54BF,"ABA9"],
+ [0x54C0,"AB73"],
+ [0x54C1,"AB7E"],
+ [0x54C2,"AB7B"],
+ [0x54C3,"CE40"],
+ [0x54C4,"ABA1"],
+ [0x54C5,"CE46"],
+ [0x54C6,"CE47"],
+ [0x54C7,"AB7A"],
+ [0x54C8,"ABA2"],
+ [0x54C9,"AB76"],
+ [0x54CB,"925D"],
+ [0x54CC,"8B51"],
+ [0x54CD,"92E0"],
+ [0x54CE,"AB75"],
+ [0x54CF,"CDFE"],
+ [0x54D0,"89F4"],
+ [0x54D6,"CE44"],
+ [0x54DA,"9FD4"],
+ [0x54DE,"CE4E"],
+ [0x54E0,"D144"],
+ [0x54E1,"ADFB"],
+ [0x54E2,"D0F1"],
+ [0x54E3,"8A79"],
+ [0x54E4,"D0F6"],
+ [0x54E5,"ADF4"],
+ [0x54E6,"AE40"],
+ [0x54E7,"D0F4"],
+ [0x54E8,"ADEF"],
+ [0x54E9,"ADF9"],
+ [0x54EA,"ADFE"],
+ [0x54EB,"D0FB"],
+ [0x54ED,"ADFA"],
+ [0x54EE,"ADFD"],
+ [0x54EF,"89F5"],
+ [0x54F1,"D0FE"],
+ [0x54F2,"ADF5"],
+ [0x54F3,"D0F5"],
+ [0x54F7,"D142"],
+ [0x54F8,"D143"],
+ [0x54FA,"ADF7"],
+ [0x54FB,"D141"],
+ [0x54FC,"ADF3"],
+ [0x54FD,"AE43"],
+ [0x54FF,"D0F8"],
+ [0x5501,"ADF1"],
+ [0x5502,"97A7"],
+ [0x5503,"D146"],
+ [0x5504,"D0F9"],
+ [0x5505,"D0FD"],
+ [0x5506,"ADF6"],
+ [0x5507,"AE42"],
+ [0x5508,"D0FA"],
+ [0x5509,"ADFC"],
+ [0x550A,"D140"],
+ [0x550B,"D147"],
+ [0x550C,"D4A1"],
+ [0x550D,"93BA"],
+ [0x550E,"D145"],
+ [0x550F,"AE44"],
+ [0x5510,"ADF0"],
+ [0x5511,"D0FC"],
+ [0x5512,"D0F3"],
+ [0x5513,"9E58"],
+ [0x5514,"ADF8"],
+ [0x5517,"D0F2"],
+ [0x5518,"89F6"],
+ [0x551A,"D0F7"],
+ [0x551E,"9E57"],
+ [0x5523,"89F7"],
+ [0x5525,"8A41"],
+ [0x5526,"D0F0"],
+ [0x5527,"AE41"],
+ [0x5528,"89F8"],
+ [0x552A,"D477"],
+ [0x552B,"FAF1"],
+ [0x552C,"B0E4"],
+ [0x552D,"D4A7"],
+ [0x552E,"B0E2"],
+ [0x552F,"B0DF"],
+ [0x5530,"D47C"],
+ [0x5531,"B0DB"],
+ [0x5532,"D4A2"],
+ [0x5533,"B0E6"],
+ [0x5534,"D476"],
+ [0x5535,"D47B"],
+ [0x5536,"D47A"],
+ [0x5537,"ADF2"],
+ [0x5538,"B0E1"],
+ [0x5539,"D4A5"],
+ [0x553B,"D4A8"],
+ [0x553C,"D473"],
+ [0x553E,"B3E8"],
+ [0x553F,"89FA"],
+ [0x5540,"D4A9"],
+ [0x5541,"B0E7"],
+ [0x5543,"B0D9"],
+ [0x5544,"B0D6"],
+ [0x5545,"D47E"],
+ [0x5546,"B0D3"],
+ [0x5547,"FB42"],
+ [0x5548,"D4A6"],
+ [0x5549,"FABF"],
+ [0x554A,"B0DA"],
+ [0x554B,"D4AA"],
+ [0x554D,"D474"],
+ [0x554E,"D4A4"],
+ [0x554F,"B0DD"],
+ [0x5550,"D475"],
+ [0x5551,"D478"],
+ [0x5552,"D47D"],
+ [0x5553,"FBA3"],
+ [0x5555,"B0DE"],
+ [0x5556,"B0DC"],
+ [0x5557,"B0E8"],
+ [0x555C,"B0E3"],
+ [0x555D,"FAF7"],
+ [0x555E,"B0D7"],
+ [0x555F,"B1D2"],
+ [0x5561,"B0D8"],
+ [0x5562,"D479"],
+ [0x5563,"B0E5"],
+ [0x5564,"B0E0"],
+ [0x5565,"D4A3"],
+ [0x5566,"B0D5"],
+ [0x5569,"9E4E"],
+ [0x556A,"B0D4"],
+ [0x556B,"94DC"],
+ [0x5571,"95DA"],
+ [0x5572,"9DF8"],
+ [0x5573,"9F6A"],
+ [0x5575,"D471"],
+ [0x5576,"D472"],
+ [0x5577,"D86A"],
+ [0x5579,"8AB7"],
+ [0x557B,"B3D7"],
+ [0x557C,"B3DA"],
+ [0x557D,"D875"],
+ [0x557E,"B3EE"],
+ [0x557F,"D878"],
+ [0x5580,"B3D8"],
+ [0x5581,"D871"],
+ [0x5582,"B3DE"],
+ [0x5583,"B3E4"],
+ [0x5584,"B5BD"],
+ [0x5586,"FB46"],
+ [0x5587,"B3E2"],
+ [0x5588,"D86E"],
+ [0x5589,"B3EF"],
+ [0x558A,"B3DB"],
+ [0x558B,"B3E3"],
+ [0x558C,"D876"],
+ [0x558D,"DCD7"],
+ [0x558E,"D87B"],
+ [0x558F,"D86F"],
+ [0x5590,"8A46"],
+ [0x5591,"D866"],
+ [0x5592,"D873"],
+ [0x5593,"D86D"],
+ [0x5594,"B3E1"],
+ [0x5595,"D879"],
+ [0x5598,"B3DD"],
+ [0x5599,"B3F1"],
+ [0x559A,"B3EA"],
+ [0x559C,"B3DF"],
+ [0x559D,"B3DC"],
+ [0x559F,"B3E7"],
+ [0x55A1,"D87A"],
+ [0x55A2,"D86C"],
+ [0x55A3,"D872"],
+ [0x55A4,"D874"],
+ [0x55A5,"D868"],
+ [0x55A6,"D877"],
+ [0x55A7,"B3D9"],
+ [0x55A8,"D867"],
+ [0x55A9,"FB47"],
+ [0x55AA,"B3E0"],
+ [0x55AB,"B3F0"],
+ [0x55AC,"B3EC"],
+ [0x55AD,"D869"],
+ [0x55AE,"B3E6"],
+ [0x55B0,"9148"],
+ [0x55B1,"B3ED"],
+ [0x55B2,"B3E9"],
+ [0x55B3,"B3E5"],
+ [0x55B4,"92DE"],
+ [0x55B5,"D870"],
+ [0x55B9,"8B53"],
+ [0x55BA,"9DF6"],
+ [0x55BB,"B3EB"],
+ [0x55BC,"9BDA"],
+ [0x55BF,"DCD5"],
+ [0x55C0,"DCD1"],
+ [0x55C1,"9D7E"],
+ [0x55C2,"DCE0"],
+ [0x55C3,"DCCA"],
+ [0x55C4,"DCD3"],
+ [0x55C5,"B6E5"],
+ [0x55C6,"B6E6"],
+ [0x55C7,"B6DE"],
+ [0x55C8,"DCDC"],
+ [0x55C9,"B6E8"],
+ [0x55CA,"DCCF"],
+ [0x55CB,"DCCE"],
+ [0x55CC,"DCCC"],
+ [0x55CD,"DCDE"],
+ [0x55CE,"B6DC"],
+ [0x55CF,"DCD8"],
+ [0x55D0,"DCCD"],
+ [0x55D1,"B6DF"],
+ [0x55D2,"DCD6"],
+ [0x55D3,"B6DA"],
+ [0x55D4,"DCD2"],
+ [0x55D5,"DCD9"],
+ [0x55D6,"DCDB"],
+ [0x55D7,"89FD"],
+ [0x55D8,"99E4"],
+ [0x55D9,"DCDF"],
+ [0x55DA,"B6E3"],
+ [0x55DB,"DCCB"],
+ [0x55DC,"B6DD"],
+ [0x55DD,"DCD0"],
+ [0x55DE,"9E43"],
+ [0x55DF,"B6D8"],
+ [0x55E1,"B6E4"],
+ [0x55E2,"DCDA"],
+ [0x55E3,"B6E0"],
+ [0x55E4,"B6E1"],
+ [0x55E5,"B6E7"],
+ [0x55E6,"B6DB"],
+ [0x55E7,"A25F"],
+ [0x55E8,"B6D9"],
+ [0x55E9,"DCD4"],
+ [0x55EA,"9DE9"],
+ [0x55EC,"8F52"],
+ [0x55EF,"B6E2"],
+ [0x55F0,"9DF5"],
+ [0x55F1,"9DF0"],
+ [0x55F2,"DCDD"],
+ [0x55F5,"99E7"],
+ [0x55F6,"B9CD"],
+ [0x55F7,"B9C8"],
+ [0x55F9,"E155"],
+ [0x55FA,"E151"],
+ [0x55FB,"8BBD"],
+ [0x55FC,"E14B"],
+ [0x55FD,"B9C2"],
+ [0x55FE,"B9BE"],
+ [0x55FF,"E154"],
+ [0x5600,"B9BF"],
+ [0x5601,"E14E"],
+ [0x5602,"E150"],
+ [0x5604,"E153"],
+ [0x5605,"9DEF"],
+ [0x5606,"B9C4"],
+ [0x5608,"B9CB"],
+ [0x5609,"B9C5"],
+ [0x560C,"E149"],
+ [0x560D,"B9C6"],
+ [0x560E,"B9C7"],
+ [0x560F,"E14C"],
+ [0x5610,"B9CC"],
+ [0x5611,"9FB7"],
+ [0x5612,"E14A"],
+ [0x5613,"E14F"],
+ [0x5614,"B9C3"],
+ [0x5615,"E148"],
+ [0x5616,"B9C9"],
+ [0x5617,"B9C1"],
+ [0x561B,"B9C0"],
+ [0x561C,"E14D"],
+ [0x561D,"E152"],
+ [0x561E,"9DD0"],
+ [0x561F,"B9CA"],
+ [0x5620,"9FEB"],
+ [0x5621,"8DA9"],
+ [0x5622,"9DCF"],
+ [0x5623,"98E1"],
+ [0x5625,"9DE5"],
+ [0x5627,"E147"],
+ [0x5629,"BC4D"],
+ [0x562A,"E547"],
+ [0x562C,"E544"],
+ [0x562D,"9DC8"],
+ [0x562E,"BC47"],
+ [0x562F,"BC53"],
+ [0x5630,"BC54"],
+ [0x5632,"BC4A"],
+ [0x5633,"E542"],
+ [0x5634,"BC4C"],
+ [0x5635,"E4F9"],
+ [0x5636,"BC52"],
+ [0x5637,"FB4F"],
+ [0x5638,"E546"],
+ [0x5639,"BC49"],
+ [0x563A,"E548"],
+ [0x563B,"BC48"],
+ [0x563D,"E543"],
+ [0x563E,"E545"],
+ [0x563F,"BC4B"],
+ [0x5640,"E541"],
+ [0x5641,"E4FA"],
+ [0x5642,"E4F7"],
+ [0x5643,"9DEB"],
+ [0x5645,"D86B"],
+ [0x5646,"E4FD"],
+ [0x5648,"E4F6"],
+ [0x5649,"E4FC"],
+ [0x564A,"E4FB"],
+ [0x564C,"E4F8"],
+ [0x564D,"FB54"],
+ [0x564E,"BC4F"],
+ [0x564F,"FB55"],
+ [0x5650,"9AA2"],
+ [0x5652,"8AD6"],
+ [0x5653,"BC4E"],
+ [0x5654,"9A5F"],
+ [0x5657,"BC50"],
+ [0x5658,"E4FE"],
+ [0x5659,"BEB2"],
+ [0x565A,"E540"],
+ [0x565D,"9EF5"],
+ [0x565E,"E945"],
+ [0x5660,"E8FD"],
+ [0x5661,"8FB7"],
+ [0x5662,"BEBE"],
+ [0x5663,"E942"],
+ [0x5664,"BEB6"],
+ [0x5665,"BEBA"],
+ [0x5666,"E941"],
+ [0x5668,"BEB9"],
+ [0x5669,"BEB5"],
+ [0x566A,"BEB8"],
+ [0x566B,"BEB3"],
+ [0x566C,"BEBD"],
+ [0x566D,"E943"],
+ [0x566E,"E8FE"],
+ [0x566F,"BEBC"],
+ [0x5670,"E8FC"],
+ [0x5671,"BEBB"],
+ [0x5672,"E944"],
+ [0x5673,"E940"],
+ [0x5674,"BC51"],
+ [0x5676,"BEBF"],
+ [0x5677,"E946"],
+ [0x5678,"BEB7"],
+ [0x5679,"BEB4"],
+ [0x567A,"9AD2"],
+ [0x567B,"9E6A"],
+ [0x567C,"9EE8"],
+ [0x567E,"ECC6"],
+ [0x567F,"ECC8"],
+ [0x5680,"C07B"],
+ [0x5681,"ECC9"],
+ [0x5682,"ECC7"],
+ [0x5683,"ECC5"],
+ [0x5684,"ECC4"],
+ [0x5685,"C07D"],
+ [0x5686,"ECC3"],
+ [0x5687,"C07E"],
+ [0x5689,"8BBF"],
+ [0x568A,"91C2"],
+ [0x568B,"9D62"],
+ [0x568C,"ECC1"],
+ [0x568D,"ECC2"],
+ [0x568E,"C07A"],
+ [0x568F,"C0A1"],
+ [0x5690,"C07C"],
+ [0x5692,"9260"],
+ [0x5693,"ECC0"],
+ [0x5695,"C250"],
+ [0x5697,"EFBC"],
+ [0x5698,"EFBA"],
+ [0x5699,"EFBF"],
+ [0x569A,"EFBD"],
+ [0x569C,"EFBB"],
+ [0x569D,"EFBE"],
+ [0x569E,"925E"],
+ [0x569F,"91C1"],
+ [0x56A1,"8AC5"],
+ [0x56A4,"97A3"],
+ [0x56A5,"C360"],
+ [0x56A6,"F1F2"],
+ [0x56A7,"F1F3"],
+ [0x56A8,"C456"],
+ [0x56AA,"F1F4"],
+ [0x56AB,"F1F0"],
+ [0x56AC,"F1F5"],
+ [0x56AD,"F1F1"],
+ [0x56AE,"C251"],
+ [0x56AF,"8B6C"],
+ [0x56B1,"8D7E"],
+ [0x56B2,"F3FE"],
+ [0x56B3,"F441"],
+ [0x56B4,"C459"],
+ [0x56B5,"F440"],
+ [0x56B6,"C458"],
+ [0x56B7,"C457"],
+ [0x56B9,"9C54"],
+ [0x56BC,"C45A"],
+ [0x56BD,"F5C5"],
+ [0x56BE,"F5C6"],
+ [0x56BF,"9DBD"],
+ [0x56C0,"C4DA"],
+ [0x56C1,"C4D9"],
+ [0x56C2,"C4DB"],
+ [0x56C3,"F5C4"],
+ [0x56C5,"F6D8"],
+ [0x56C6,"F6D7"],
+ [0x56C8,"C56D"],
+ [0x56C9,"C56F"],
+ [0x56CA,"C56E"],
+ [0x56CB,"F6D9"],
+ [0x56CC,"C5C8"],
+ [0x56CD,"F8A6"],
+ [0x56D1,"C5F1"],
+ [0x56D3,"F8A5"],
+ [0x56D4,"F8EE"],
+ [0x56D6,"9CC5"],
+ [0x56D7,"C949"],
+ [0x56DA,"A57D"],
+ [0x56DB,"A57C"],
+ [0x56DD,"A65F"],
+ [0x56DE,"A65E"],
+ [0x56DF,"C9C7"],
+ [0x56E0,"A65D"],
+ [0x56E1,"C9C6"],
+ [0x56E2,"895B"],
+ [0x56E4,"A779"],
+ [0x56E5,"CAA9"],
+ [0x56E7,"CAA8"],
+ [0x56EA,"A777"],
+ [0x56EB,"A77A"],
+ [0x56ED,"FB5C"],
+ [0x56EE,"CAA7"],
+ [0x56EF,"FB5B"],
+ [0x56F0,"A778"],
+ [0x56F1,"FB57"],
+ [0x56F7,"CBF0"],
+ [0x56F9,"CBF1"],
+ [0x56FA,"A954"],
+ [0x56FB,"8765"],
+ [0x56FD,"98C7"],
+ [0x56FF,"ABAA"],
+ [0x5700,"FB5A"],
+ [0x5701,"D148"],
+ [0x5702,"D149"],
+ [0x5703,"AE45"],
+ [0x5704,"AE46"],
+ [0x5707,"D4AC"],
+ [0x5708,"B0E9"],
+ [0x5709,"B0EB"],
+ [0x570A,"D4AB"],
+ [0x570B,"B0EA"],
+ [0x570C,"D87C"],
+ [0x570D,"B3F2"],
+ [0x5712,"B6E9"],
+ [0x5713,"B6EA"],
+ [0x5714,"DCE1"],
+ [0x5715,"9CEE"],
+ [0x5716,"B9CF"],
+ [0x5718,"B9CE"],
+ [0x571A,"E549"],
+ [0x571B,"E948"],
+ [0x571C,"E947"],
+ [0x571D,"92E2"],
+ [0x571E,"F96B"],
+ [0x571F,"A467"],
+ [0x5720,"C959"],
+ [0x5722,"C96E"],
+ [0x5723,"C96F"],
+ [0x5728,"A662"],
+ [0x5729,"A666"],
+ [0x572A,"C9C9"],
+ [0x572C,"A664"],
+ [0x572D,"A663"],
+ [0x572E,"C9C8"],
+ [0x572F,"A665"],
+ [0x5730,"A661"],
+ [0x5732,"94A7"],
+ [0x5733,"A660"],
+ [0x5734,"C9CA"],
+ [0x573B,"A7A6"],
+ [0x573D,"8CCC"],
+ [0x573E,"A7A3"],
+ [0x573F,"9BD4"],
+ [0x5740,"A77D"],
+ [0x5741,"CAAA"],
+ [0x5742,"FB64"],
+ [0x5743,"FB76"],
+ [0x5745,"CAAB"],
+ [0x5746,"FB60"],
+ [0x5747,"A7A1"],
+ [0x5749,"CAAD"],
+ [0x574A,"A77B"],
+ [0x574B,"CAAE"],
+ [0x574C,"CAAC"],
+ [0x574D,"A77E"],
+ [0x574E,"A7A2"],
+ [0x574F,"A7A5"],
+ [0x5750,"A7A4"],
+ [0x5751,"A77C"],
+ [0x5752,"CAAF"],
+ [0x5754,"99E5"],
+ [0x5757,"9AC2"],
+ [0x575B,"91FB"],
+ [0x575F,"A073"],
+ [0x5761,"A959"],
+ [0x5762,"CBFE"],
+ [0x5764,"A95B"],
+ [0x5766,"A95A"],
+ [0x5767,"9F72"],
+ [0x5768,"CC40"],
+ [0x5769,"A958"],
+ [0x576A,"A957"],
+ [0x576B,"CBF5"],
+ [0x576D,"CBF4"],
+ [0x576F,"CBF2"],
+ [0x5770,"CBF7"],
+ [0x5771,"CBF6"],
+ [0x5772,"CBF3"],
+ [0x5773,"CBFC"],
+ [0x5774,"CBFD"],
+ [0x5775,"CBFA"],
+ [0x5776,"CBF8"],
+ [0x5777,"A956"],
+ [0x577A,"9FCC"],
+ [0x577B,"CBFB"],
+ [0x577C,"A95C"],
+ [0x577D,"CC41"],
+ [0x577E,"98A5"],
+ [0x577F,"92E8"],
+ [0x5780,"CBF9"],
+ [0x5782,"ABAB"],
+ [0x5783,"A955"],
+ [0x5788,"9BBC"],
+ [0x578A,"96F3"],
+ [0x578B,"ABAC"],
+ [0x578C,"CE54"],
+ [0x578D,"92E7"],
+ [0x578F,"CE5A"],
+ [0x5790,"FC67"],
+ [0x5793,"ABB2"],
+ [0x5794,"CE58"],
+ [0x5795,"CE5E"],
+ [0x5797,"CE55"],
+ [0x5798,"CE59"],
+ [0x5799,"CE5B"],
+ [0x579A,"CE5D"],
+ [0x579B,"CE57"],
+ [0x579C,"8B7D"],
+ [0x579D,"CE56"],
+ [0x579E,"CE51"],
+ [0x579F,"CE52"],
+ [0x57A0,"ABAD"],
+ [0x57A1,"9BF4"],
+ [0x57A2,"ABAF"],
+ [0x57A3,"ABAE"],
+ [0x57A4,"CE53"],
+ [0x57A5,"CE5C"],
+ [0x57A7,"9EF7"],
+ [0x57AA,"9EC1"],
+ [0x57AE,"ABB1"],
+ [0x57B3,"87C3"],
+ [0x57B4,"996F"],
+ [0x57B5,"CE50"],
+ [0x57B6,"D153"],
+ [0x57B8,"D152"],
+ [0x57B9,"D157"],
+ [0x57BA,"D14E"],
+ [0x57BB,"96F1"],
+ [0x57BC,"D151"],
+ [0x57BD,"D150"],
+ [0x57BE,"8E41"],
+ [0x57BF,"D154"],
+ [0x57C1,"D158"],
+ [0x57C2,"AE47"],
+ [0x57C3,"AE4A"],
+ [0x57C4,"954A"],
+ [0x57C6,"D14F"],
+ [0x57C7,"D155"],
+ [0x57C8,"97E6"],
+ [0x57CB,"AE49"],
+ [0x57CC,"D14A"],
+ [0x57CE,"ABB0"],
+ [0x57CF,"D4BA"],
+ [0x57D0,"D156"],
+ [0x57D2,"D14D"],
+ [0x57D4,"AE48"],
+ [0x57D5,"D14C"],
+ [0x57D7,"96F5"],
+ [0x57DC,"D4B1"],
+ [0x57DD,"92E6"],
+ [0x57DE,"9F42"],
+ [0x57DF,"B0EC"],
+ [0x57E0,"B0F0"],
+ [0x57E1,"D4C1"],
+ [0x57E2,"D4AF"],
+ [0x57E3,"D4BD"],
+ [0x57E4,"B0F1"],
+ [0x57E5,"D4BF"],
+ [0x57E6,"FB67"],
+ [0x57E7,"D4C5"],
+ [0x57E9,"D4C9"],
+ [0x57EC,"D4C0"],
+ [0x57ED,"D4B4"],
+ [0x57EE,"D4BC"],
+ [0x57EF,"99A9"],
+ [0x57F0,"D4CA"],
+ [0x57F1,"D4C8"],
+ [0x57F2,"D4BE"],
+ [0x57F3,"D4B9"],
+ [0x57F4,"D4B2"],
+ [0x57F5,"D8A6"],
+ [0x57F6,"D4B0"],
+ [0x57F7,"B0F5"],
+ [0x57F8,"D4B7"],
+ [0x57F9,"B0F6"],
+ [0x57FA,"B0F2"],
+ [0x57FB,"D4AD"],
+ [0x57FC,"D4C3"],
+ [0x57FD,"D4B5"],
+ [0x57FE,"FAE6"],
+ [0x5800,"D4B3"],
+ [0x5801,"D4C6"],
+ [0x5802,"B0F3"],
+ [0x5803,"FB69"],
+ [0x5804,"D4CC"],
+ [0x5805,"B0ED"],
+ [0x5806,"B0EF"],
+ [0x5807,"D4BB"],
+ [0x5808,"D4B6"],
+ [0x5809,"AE4B"],
+ [0x580A,"B0EE"],
+ [0x580B,"D4B8"],
+ [0x580C,"D4C7"],
+ [0x580D,"D4CB"],
+ [0x580E,"D4C2"],
+ [0x5810,"D4C4"],
+ [0x5812,"97E5"],
+ [0x5814,"D4AE"],
+ [0x5818,"87C8"],
+ [0x5819,"D8A1"],
+ [0x581B,"D8AA"],
+ [0x581C,"D8A9"],
+ [0x581D,"B3FA"],
+ [0x581E,"D8A2"],
+ [0x5820,"B3FB"],
+ [0x5821,"B3F9"],
+ [0x5822,"967D"],
+ [0x5823,"D8A4"],
+ [0x5824,"B3F6"],
+ [0x5825,"D8A8"],
+ [0x5826,"FB6C"],
+ [0x5827,"D8A3"],
+ [0x5828,"D8A5"],
+ [0x5829,"D87D"],
+ [0x582A,"B3F4"],
+ [0x582C,"D8B2"],
+ [0x582D,"D8B1"],
+ [0x582E,"D8AE"],
+ [0x582F,"B3F3"],
+ [0x5830,"B3F7"],
+ [0x5831,"B3F8"],
+ [0x5832,"D14B"],
+ [0x5833,"D8AB"],
+ [0x5834,"B3F5"],
+ [0x5835,"B0F4"],
+ [0x5836,"D8AD"],
+ [0x5837,"D87E"],
+ [0x5838,"D8B0"],
+ [0x5839,"D8AF"],
+ [0x583A,"99A2"],
+ [0x583B,"D8B3"],
+ [0x583D,"DCEF"],
+ [0x583F,"D8AC"],
+ [0x5840,"9ABB"],
+ [0x5844,"9A65"],
+ [0x5847,"944E"],
+ [0x5848,"D8A7"],
+ [0x5849,"DCE7"],
+ [0x584A,"B6F4"],
+ [0x584B,"B6F7"],
+ [0x584C,"B6F2"],
+ [0x584D,"DCE6"],
+ [0x584E,"DCEA"],
+ [0x584F,"DCE5"],
+ [0x5851,"B6EC"],
+ [0x5852,"B6F6"],
+ [0x5853,"DCE2"],
+ [0x5854,"B6F0"],
+ [0x5855,"DCE9"],
+ [0x5857,"B6EE"],
+ [0x5858,"B6ED"],
+ [0x5859,"DCEC"],
+ [0x585A,"B6EF"],
+ [0x585B,"DCEE"],
+ [0x585C,"FB6E"],
+ [0x585D,"DCEB"],
+ [0x585E,"B6EB"],
+ [0x585F,"99DF"],
+ [0x5862,"B6F5"],
+ [0x5863,"DCF0"],
+ [0x5864,"DCE4"],
+ [0x5865,"DCED"],
+ [0x5868,"DCE3"],
+ [0x5869,"98E3"],
+ [0x586B,"B6F1"],
+ [0x586C,"9254"],
+ [0x586D,"B6F3"],
+ [0x586F,"DCE8"],
+ [0x5871,"DCF1"],
+ [0x5872,"967B"],
+ [0x5873,"8AAF"],
+ [0x5874,"E15D"],
+ [0x5875,"B9D0"],
+ [0x5876,"E163"],
+ [0x5879,"B9D5"],
+ [0x587A,"E15F"],
+ [0x587B,"E166"],
+ [0x587C,"E157"],
+ [0x587D,"B9D7"],
+ [0x587E,"B9D1"],
+ [0x587F,"E15C"],
+ [0x5880,"BC55"],
+ [0x5881,"E15B"],
+ [0x5882,"E164"],
+ [0x5883,"B9D2"],
+ [0x5885,"B9D6"],
+ [0x5886,"E15A"],
+ [0x5887,"E160"],
+ [0x5888,"E165"],
+ [0x5889,"E156"],
+ [0x588A,"B9D4"],
+ [0x588B,"E15E"],
+ [0x588E,"E162"],
+ [0x588F,"E168"],
+ [0x5890,"E158"],
+ [0x5891,"E161"],
+ [0x5892,"8C77"],
+ [0x5893,"B9D3"],
+ [0x5894,"E167"],
+ [0x5896,"87B0"],
+ [0x5898,"E159"],
+ [0x5899,"8BAF"],
+ [0x589A,"9EBD"],
+ [0x589C,"BC59"],
+ [0x589D,"E54B"],
+ [0x589E,"BC57"],
+ [0x589F,"BC56"],
+ [0x58A0,"E54D"],
+ [0x58A1,"E552"],
+ [0x58A3,"E54E"],
+ [0x58A5,"E551"],
+ [0x58A6,"BC5C"],
+ [0x58A7,"9EE6"],
+ [0x58A8,"BEA5"],
+ [0x58A9,"BC5B"],
+ [0x58AA,"FB6F"],
+ [0x58AB,"E54A"],
+ [0x58AC,"E550"],
+ [0x58AE,"BC5A"],
+ [0x58AF,"E54F"],
+ [0x58B0,"8EE1"],
+ [0x58B1,"E54C"],
+ [0x58B3,"BC58"],
+ [0x58B5,"9B7D"],
+ [0x58B6,"9C7E"],
+ [0x58BA,"E94D"],
+ [0x58BB,"F9D9"],
+ [0x58BC,"E94F"],
+ [0x58BD,"E94A"],
+ [0x58BE,"BEC1"],
+ [0x58BF,"E94C"],
+ [0x58C1,"BEC0"],
+ [0x58C2,"E94E"],
+ [0x58C5,"BEC3"],
+ [0x58C6,"E950"],
+ [0x58C7,"BEC2"],
+ [0x58C8,"E949"],
+ [0x58C9,"E94B"],
+ [0x58CB,"92EA"],
+ [0x58CE,"C0A5"],
+ [0x58CF,"ECCC"],
+ [0x58D0,"8C78"],
+ [0x58D1,"C0A4"],
+ [0x58D2,"ECCD"],
+ [0x58D3,"C0A3"],
+ [0x58D4,"ECCB"],
+ [0x58D5,"C0A2"],
+ [0x58D6,"ECCA"],
+ [0x58D8,"C253"],
+ [0x58D9,"C252"],
+ [0x58DA,"F1F6"],
+ [0x58DB,"F1F8"],
+ [0x58DC,"FB72"],
+ [0x58DD,"F1F7"],
+ [0x58DE,"C361"],
+ [0x58DF,"C362"],
+ [0x58E0,"FB71"],
+ [0x58E2,"C363"],
+ [0x58E3,"F442"],
+ [0x58E4,"C45B"],
+ [0x58E7,"F7D3"],
+ [0x58E8,"F7D2"],
+ [0x58E9,"C5F2"],
+ [0x58EB,"A468"],
+ [0x58EC,"A4D0"],
+ [0x58EF,"A7A7"],
+ [0x58F0,"895C"],
+ [0x58F2,"98F0"],
+ [0x58F3,"96F2"],
+ [0x58F4,"CE5F"],
+ [0x58F9,"B3FC"],
+ [0x58FA,"B3FD"],
+ [0x58FB,"FB74"],
+ [0x58FC,"DCF2"],
+ [0x58FD,"B9D8"],
+ [0x58FE,"E169"],
+ [0x58FF,"E553"],
+ [0x5902,"8BC1"],
+ [0x5903,"C95A"],
+ [0x5904,"895D"],
+ [0x5905,"89DE"],
+ [0x5906,"CAB0"],
+ [0x5907,"895E"],
+ [0x590A,"C6CA"],
+ [0x590C,"CC42"],
+ [0x590D,"CE60"],
+ [0x590E,"D159"],
+ [0x590F,"AE4C"],
+ [0x5911,"FE42"],
+ [0x5912,"F1F9"],
+ [0x5914,"C4DC"],
+ [0x5915,"A469"],
+ [0x5916,"A57E"],
+ [0x5917,"C970"],
+ [0x5919,"A667"],
+ [0x591A,"A668"],
+ [0x591C,"A95D"],
+ [0x591D,"8768"],
+ [0x591F,"FB7B"],
+ [0x5920,"B0F7"],
+ [0x5922,"B9DA"],
+ [0x5924,"B9DB"],
+ [0x5925,"B9D9"],
+ [0x5927,"A46A"],
+ [0x5929,"A4D1"],
+ [0x592A,"A4D3"],
+ [0x592B,"A4D2"],
+ [0x592C,"C95B"],
+ [0x592D,"A4D4"],
+ [0x592E,"A5A1"],
+ [0x592F,"C971"],
+ [0x5931,"A5A2"],
+ [0x5932,"895F"],
+ [0x5934,"8960"],
+ [0x5937,"A669"],
+ [0x5938,"A66A"],
+ [0x593C,"C9CB"],
+ [0x593E,"A7A8"],
+ [0x5940,"CAB1"],
+ [0x5944,"A961"],
+ [0x5945,"CC43"],
+ [0x5947,"A95F"],
+ [0x5948,"A960"],
+ [0x5949,"A95E"],
+ [0x594A,"D15A"],
+ [0x594E,"ABB6"],
+ [0x594F,"ABB5"],
+ [0x5950,"ABB7"],
+ [0x5951,"ABB4"],
+ [0x5953,"CE61"],
+ [0x5954,"A962"],
+ [0x5955,"ABB3"],
+ [0x5957,"AE4D"],
+ [0x5958,"AE4E"],
+ [0x595A,"AE4F"],
+ [0x595C,"D4CD"],
+ [0x5960,"B3FE"],
+ [0x5961,"D8B4"],
+ [0x5962,"B0F8"],
+ [0x5965,"9BCD"],
+ [0x5967,"B6F8"],
+ [0x5969,"B9DD"],
+ [0x596A,"B9DC"],
+ [0x596B,"E16A"],
+ [0x596D,"BC5D"],
+ [0x596E,"BEC4"],
+ [0x5970,"EFC0"],
+ [0x5971,"F6DA"],
+ [0x5972,"F7D4"],
+ [0x5973,"A46B"],
+ [0x5974,"A5A3"],
+ [0x5975,"9DD3"],
+ [0x5976,"A5A4"],
+ [0x5977,"C9D1"],
+ [0x5978,"A66C"],
+ [0x5979,"A66F"],
+ [0x597B,"C9CF"],
+ [0x597C,"C9CD"],
+ [0x597D,"A66E"],
+ [0x597E,"C9D0"],
+ [0x597F,"C9D2"],
+ [0x5980,"C9CC"],
+ [0x5981,"A671"],
+ [0x5982,"A670"],
+ [0x5983,"A66D"],
+ [0x5984,"A66B"],
+ [0x5985,"C9CE"],
+ [0x5989,"984C"],
+ [0x598A,"A7B3"],
+ [0x598D,"A7B0"],
+ [0x598E,"CAB6"],
+ [0x598F,"CAB9"],
+ [0x5990,"CAB8"],
+ [0x5992,"A7AA"],
+ [0x5993,"A7B2"],
+ [0x5994,"9752"],
+ [0x5996,"A7AF"],
+ [0x5997,"CAB5"],
+ [0x5998,"CAB3"],
+ [0x5999,"A7AE"],
+ [0x599A,"95C3"],
+ [0x599D,"A7A9"],
+ [0x599E,"A7AC"],
+ [0x599F,"9BB6"],
+ [0x59A0,"CAB4"],
+ [0x59A1,"CABB"],
+ [0x59A2,"CAB7"],
+ [0x59A3,"A7AD"],
+ [0x59A4,"A7B1"],
+ [0x59A5,"A7B4"],
+ [0x59A6,"CAB2"],
+ [0x59A7,"CABA"],
+ [0x59A8,"A7AB"],
+ [0x59AC,"9AB9"],
+ [0x59AE,"A967"],
+ [0x59AF,"A96F"],
+ [0x59B0,"97B3"],
+ [0x59B1,"CC4F"],
+ [0x59B2,"CC48"],
+ [0x59B3,"A970"],
+ [0x59B4,"CC53"],
+ [0x59B5,"CC44"],
+ [0x59B6,"CC4B"],
+ [0x59B7,"9F74"],
+ [0x59B8,"92F1"],
+ [0x59B9,"A966"],
+ [0x59BA,"CC45"],
+ [0x59BB,"A964"],
+ [0x59BC,"CC4C"],
+ [0x59BD,"CC50"],
+ [0x59BE,"A963"],
+ [0x59BF,"8CFA"],
+ [0x59C0,"CC51"],
+ [0x59C1,"CC4A"],
+ [0x59C3,"CC4D"],
+ [0x59C4,"97DF"],
+ [0x59C5,"A972"],
+ [0x59C6,"A969"],
+ [0x59C7,"CC54"],
+ [0x59C8,"CC52"],
+ [0x59C9,"FBA6"],
+ [0x59CA,"A96E"],
+ [0x59CB,"A96C"],
+ [0x59CC,"CC49"],
+ [0x59CD,"A96B"],
+ [0x59CE,"CC47"],
+ [0x59CF,"CC46"],
+ [0x59D0,"A96A"],
+ [0x59D1,"A968"],
+ [0x59D2,"A971"],
+ [0x59D3,"A96D"],
+ [0x59D4,"A965"],
+ [0x59D6,"CC4E"],
+ [0x59D8,"ABB9"],
+ [0x59D9,"FBAB"],
+ [0x59DA,"ABC0"],
+ [0x59DB,"CE6F"],
+ [0x59DC,"ABB8"],
+ [0x59DD,"CE67"],
+ [0x59DE,"CE63"],
+ [0x59E0,"CE73"],
+ [0x59E1,"CE62"],
+ [0x59E3,"ABBB"],
+ [0x59E4,"CE6C"],
+ [0x59E5,"ABBE"],
+ [0x59E6,"ABC1"],
+ [0x59E8,"ABBC"],
+ [0x59E9,"CE70"],
+ [0x59EA,"ABBF"],
+ [0x59EB,"9877"],
+ [0x59EC,"AE56"],
+ [0x59ED,"CE76"],
+ [0x59EE,"CE64"],
+ [0x59EF,"9854"],
+ [0x59F0,"95C5"],
+ [0x59F1,"CE66"],
+ [0x59F2,"CE6D"],
+ [0x59F3,"CE71"],
+ [0x59F4,"CE75"],
+ [0x59F5,"CE72"],
+ [0x59F6,"CE6B"],
+ [0x59F7,"CE6E"],
+ [0x59F8,"9D55"],
+ [0x59F9,"FBB2"],
+ [0x59FA,"CE68"],
+ [0x59FB,"ABC3"],
+ [0x59FC,"CE6A"],
+ [0x59FD,"CE69"],
+ [0x59FE,"CE74"],
+ [0x59FF,"ABBA"],
+ [0x5A00,"CE65"],
+ [0x5A01,"ABC2"],
+ [0x5A02,"957E"],
+ [0x5A03,"ABBD"],
+ [0x5A09,"AE5C"],
+ [0x5A0A,"D162"],
+ [0x5A0B,"9742"],
+ [0x5A0C,"AE5B"],
+ [0x5A0D,"94E6"],
+ [0x5A0F,"D160"],
+ [0x5A11,"AE50"],
+ [0x5A12,"92F5"],
+ [0x5A13,"AE55"],
+ [0x5A15,"D15F"],
+ [0x5A16,"D15C"],
+ [0x5A17,"D161"],
+ [0x5A18,"AE51"],
+ [0x5A19,"D15B"],
+ [0x5A1A,"8CC5"],
+ [0x5A1B,"AE54"],
+ [0x5A1C,"AE52"],
+ [0x5A1E,"D163"],
+ [0x5A1F,"AE53"],
+ [0x5A20,"AE57"],
+ [0x5A21,"92FD"],
+ [0x5A23,"AE58"],
+ [0x5A24,"FBA2"],
+ [0x5A25,"AE5A"],
+ [0x5A27,"9C51"],
+ [0x5A29,"AE59"],
+ [0x5A2A,"94E9"],
+ [0x5A2B,"985C"],
+ [0x5A2C,"92F0"],
+ [0x5A2D,"D15D"],
+ [0x5A2E,"D15E"],
+ [0x5A33,"D164"],
+ [0x5A35,"D4D4"],
+ [0x5A36,"B0F9"],
+ [0x5A37,"D8C2"],
+ [0x5A38,"D4D3"],
+ [0x5A39,"D4E6"],
+ [0x5A3C,"B140"],
+ [0x5A3D,"944C"],
+ [0x5A3E,"D4E4"],
+ [0x5A40,"B0FE"],
+ [0x5A41,"B0FA"],
+ [0x5A42,"D4ED"],
+ [0x5A43,"D4DD"],
+ [0x5A44,"D4E0"],
+ [0x5A45,"916B"],
+ [0x5A46,"B143"],
+ [0x5A47,"D4EA"],
+ [0x5A48,"D4E2"],
+ [0x5A49,"B0FB"],
+ [0x5A4A,"B144"],
+ [0x5A4C,"D4E7"],
+ [0x5A4D,"D4E5"],
+ [0x5A50,"D4D6"],
+ [0x5A51,"D4EB"],
+ [0x5A52,"D4DF"],
+ [0x5A53,"D4DA"],
+ [0x5A54,"8B78"],
+ [0x5A55,"D4D0"],
+ [0x5A56,"D4EC"],
+ [0x5A57,"D4DC"],
+ [0x5A58,"D4CF"],
+ [0x5A59,"94E2"],
+ [0x5A5A,"B142"],
+ [0x5A5B,"D4E1"],
+ [0x5A5C,"D4EE"],
+ [0x5A5D,"D4DE"],
+ [0x5A5E,"D4D2"],
+ [0x5A5F,"D4D7"],
+ [0x5A60,"D4CE"],
+ [0x5A61,"984F"],
+ [0x5A62,"B141"],
+ [0x5A63,"FBB5"],
+ [0x5A64,"D4DB"],
+ [0x5A65,"D4D8"],
+ [0x5A66,"B0FC"],
+ [0x5A67,"D4D1"],
+ [0x5A68,"9271"],
+ [0x5A69,"D4E9"],
+ [0x5A6A,"B0FD"],
+ [0x5A6B,"9365"],
+ [0x5A6C,"D4D9"],
+ [0x5A6D,"D4D5"],
+ [0x5A6E,"985B"],
+ [0x5A70,"D4E8"],
+ [0x5A71,"9850"],
+ [0x5A77,"B440"],
+ [0x5A78,"D8BB"],
+ [0x5A79,"97BC"],
+ [0x5A7A,"D8B8"],
+ [0x5A7B,"D8C9"],
+ [0x5A7C,"D8BD"],
+ [0x5A7D,"D8CA"],
+ [0x5A7E,"92F3"],
+ [0x5A7F,"B442"],
+ [0x5A81,"9340"],
+ [0x5A82,"984D"],
+ [0x5A83,"D8C6"],
+ [0x5A84,"D8C3"],
+ [0x5A86,"9572"],
+ [0x5A88,"FDEF"],
+ [0x5A8A,"D8C4"],
+ [0x5A8B,"D8C7"],
+ [0x5A8C,"D8CB"],
+ [0x5A8E,"D4E3"],
+ [0x5A8F,"D8CD"],
+ [0x5A90,"DD47"],
+ [0x5A91,"FDC1"],
+ [0x5A92,"B443"],
+ [0x5A93,"D8CE"],
+ [0x5A94,"D8B6"],
+ [0x5A95,"D8C0"],
+ [0x5A96,"FBBA"],
+ [0x5A97,"D8C5"],
+ [0x5A99,"92EB"],
+ [0x5A9A,"B441"],
+ [0x5A9B,"B444"],
+ [0x5A9C,"D8CC"],
+ [0x5A9D,"D8CF"],
+ [0x5A9E,"D8BA"],
+ [0x5A9F,"D8B7"],
+ [0x5AA0,"FC73"],
+ [0x5AA1,"97B7"],
+ [0x5AA2,"D8B9"],
+ [0x5AA4,"876F"],
+ [0x5AA5,"D8BE"],
+ [0x5AA6,"D8BC"],
+ [0x5AA7,"B445"],
+ [0x5AA9,"D8C8"],
+ [0x5AAB,"FBB4"],
+ [0x5AAC,"D8BF"],
+ [0x5AAE,"D8C1"],
+ [0x5AAF,"D8B5"],
+ [0x5AB0,"DCFA"],
+ [0x5AB1,"DCF8"],
+ [0x5AB2,"B742"],
+ [0x5AB3,"B740"],
+ [0x5AB4,"DD43"],
+ [0x5AB5,"DCF9"],
+ [0x5AB6,"DD44"],
+ [0x5AB7,"DD40"],
+ [0x5AB8,"DCF7"],
+ [0x5AB9,"DD46"],
+ [0x5ABA,"DCF6"],
+ [0x5ABB,"DCFD"],
+ [0x5ABC,"B6FE"],
+ [0x5ABD,"B6FD"],
+ [0x5ABE,"B6FC"],
+ [0x5ABF,"DCFB"],
+ [0x5AC0,"DD41"],
+ [0x5AC1,"B6F9"],
+ [0x5AC2,"B741"],
+ [0x5AC3,"90A7"],
+ [0x5AC4,"DCF4"],
+ [0x5AC6,"DCFE"],
+ [0x5AC7,"DCF3"],
+ [0x5AC8,"DCFC"],
+ [0x5AC9,"B6FA"],
+ [0x5ACA,"DD42"],
+ [0x5ACB,"DCF5"],
+ [0x5ACC,"B6FB"],
+ [0x5ACD,"DD45"],
+ [0x5ACE,"9741"],
+ [0x5ACF,"92F4"],
+ [0x5AD1,"8772"],
+ [0x5AD3,"FBBC"],
+ [0x5AD5,"E16E"],
+ [0x5AD6,"B9E2"],
+ [0x5AD7,"B9E1"],
+ [0x5AD8,"B9E3"],
+ [0x5AD9,"E17A"],
+ [0x5ADA,"E170"],
+ [0x5ADB,"E176"],
+ [0x5ADC,"E16B"],
+ [0x5ADD,"E179"],
+ [0x5ADE,"E178"],
+ [0x5ADF,"E17C"],
+ [0x5AE0,"E175"],
+ [0x5AE1,"B9DE"],
+ [0x5AE2,"E174"],
+ [0x5AE3,"B9E4"],
+ [0x5AE4,"9577"],
+ [0x5AE5,"E16D"],
+ [0x5AE6,"B9DF"],
+ [0x5AE8,"E17B"],
+ [0x5AE9,"B9E0"],
+ [0x5AEA,"E16F"],
+ [0x5AEB,"E172"],
+ [0x5AEC,"E177"],
+ [0x5AED,"E171"],
+ [0x5AEE,"E16C"],
+ [0x5AF0,"9EE2"],
+ [0x5AF2,"8F78"],
+ [0x5AF3,"E173"],
+ [0x5AF4,"E555"],
+ [0x5AF5,"BC61"],
+ [0x5AF6,"E558"],
+ [0x5AF7,"E557"],
+ [0x5AF8,"E55A"],
+ [0x5AF9,"E55C"],
+ [0x5AFA,"F9DC"],
+ [0x5AFB,"BC5F"],
+ [0x5AFD,"E556"],
+ [0x5AFE,"9672"],
+ [0x5AFF,"E554"],
+ [0x5B01,"E55D"],
+ [0x5B02,"E55B"],
+ [0x5B03,"E559"],
+ [0x5B05,"E55F"],
+ [0x5B07,"E55E"],
+ [0x5B08,"BC63"],
+ [0x5B09,"BC5E"],
+ [0x5B0B,"BC60"],
+ [0x5B0C,"BC62"],
+ [0x5B0D,"9EB5"],
+ [0x5B0F,"E560"],
+ [0x5B10,"E957"],
+ [0x5B11,"964B"],
+ [0x5B13,"E956"],
+ [0x5B14,"E955"],
+ [0x5B15,"8CAC"],
+ [0x5B16,"E958"],
+ [0x5B17,"E951"],
+ [0x5B19,"E952"],
+ [0x5B1A,"E95A"],
+ [0x5B1B,"E953"],
+ [0x5B1D,"BEC5"],
+ [0x5B1E,"E95C"],
+ [0x5B1F,"A0FA"],
+ [0x5B20,"E95B"],
+ [0x5B21,"E954"],
+ [0x5B23,"ECD1"],
+ [0x5B24,"C0A8"],
+ [0x5B25,"ECCF"],
+ [0x5B26,"ECD4"],
+ [0x5B27,"ECD3"],
+ [0x5B28,"E959"],
+ [0x5B2A,"C0A7"],
+ [0x5B2B,"9575"],
+ [0x5B2C,"ECD2"],
+ [0x5B2D,"ECCE"],
+ [0x5B2E,"ECD6"],
+ [0x5B2F,"ECD5"],
+ [0x5B30,"C0A6"],
+ [0x5B32,"ECD0"],
+ [0x5B34,"BEC6"],
+ [0x5B38,"C254"],
+ [0x5B3C,"EFC1"],
+ [0x5B3D,"F1FA"],
+ [0x5B3E,"F1FB"],
+ [0x5B3F,"F1FC"],
+ [0x5B40,"C45C"],
+ [0x5B41,"90DA"],
+ [0x5B43,"C45D"],
+ [0x5B44,"9367"],
+ [0x5B45,"F443"],
+ [0x5B46,"FEA4"],
+ [0x5B47,"F5C8"],
+ [0x5B48,"F5C7"],
+ [0x5B4A,"90DF"],
+ [0x5B4B,"F6DB"],
+ [0x5B4C,"F6DC"],
+ [0x5B4D,"F7D5"],
+ [0x5B4E,"F8A7"],
+ [0x5B4F,"9354"],
+ [0x5B50,"A46C"],
+ [0x5B51,"A46D"],
+ [0x5B53,"A46E"],
+ [0x5B54,"A4D5"],
+ [0x5B55,"A5A5"],
+ [0x5B56,"C9D3"],
+ [0x5B57,"A672"],
+ [0x5B58,"A673"],
+ [0x5B5A,"A7B7"],
+ [0x5B5B,"A7B8"],
+ [0x5B5C,"A7B6"],
+ [0x5B5D,"A7B5"],
+ [0x5B5F,"A973"],
+ [0x5B62,"CC55"],
+ [0x5B63,"A975"],
+ [0x5B64,"A974"],
+ [0x5B65,"CC56"],
+ [0x5B66,"8961"],
+ [0x5B68,"8BB4"],
+ [0x5B69,"ABC4"],
+ [0x5B6B,"AE5D"],
+ [0x5B6C,"D165"],
+ [0x5B6D,"9DC0"],
+ [0x5B6E,"D4F0"],
+ [0x5B70,"B145"],
+ [0x5B71,"B447"],
+ [0x5B72,"D4EF"],
+ [0x5B73,"B446"],
+ [0x5B74,"8E48"],
+ [0x5B75,"B9E5"],
+ [0x5B76,"FBC5"],
+ [0x5B77,"E17D"],
+ [0x5B78,"BEC7"],
+ [0x5B7A,"C0A9"],
+ [0x5B7B,"ECD7"],
+ [0x5B7C,"FBC7"],
+ [0x5B7D,"C45E"],
+ [0x5B7F,"C570"],
+ [0x5B80,"C6CB"],
+ [0x5B81,"C972"],
+ [0x5B82,"FA79"],
+ [0x5B83,"A5A6"],
+ [0x5B84,"C973"],
+ [0x5B85,"A676"],
+ [0x5B87,"A674"],
+ [0x5B88,"A675"],
+ [0x5B89,"A677"],
+ [0x5B8B,"A7BA"],
+ [0x5B8C,"A7B9"],
+ [0x5B8E,"CABC"],
+ [0x5B8F,"A7BB"],
+ [0x5B90,"9E67"],
+ [0x5B92,"CABD"],
+ [0x5B93,"CC57"],
+ [0x5B95,"CC58"],
+ [0x5B96,"8CD9"],
+ [0x5B97,"A976"],
+ [0x5B98,"A978"],
+ [0x5B99,"A97A"],
+ [0x5B9A,"A977"],
+ [0x5B9B,"A97B"],
+ [0x5B9C,"A979"],
+ [0x5B9D,"FBD2"],
+ [0x5B9E,"8962"],
+ [0x5B9F,"8963"],
+ [0x5BA2,"ABC8"],
+ [0x5BA3,"ABC5"],
+ [0x5BA4,"ABC7"],
+ [0x5BA5,"ABC9"],
+ [0x5BA6,"ABC6"],
+ [0x5BA7,"D166"],
+ [0x5BA8,"CE77"],
+ [0x5BAA,"FC7D"],
+ [0x5BAC,"D168"],
+ [0x5BAD,"D167"],
+ [0x5BAE,"AE63"],
+ [0x5BB0,"AE5F"],
+ [0x5BB3,"AE60"],
+ [0x5BB4,"AE62"],
+ [0x5BB5,"AE64"],
+ [0x5BB6,"AE61"],
+ [0x5BB7,"8773"],
+ [0x5BB8,"AE66"],
+ [0x5BB9,"AE65"],
+ [0x5BBF,"B14A"],
+ [0x5BC0,"D4F2"],
+ [0x5BC1,"D4F1"],
+ [0x5BC2,"B149"],
+ [0x5BC3,"9F6B"],
+ [0x5BC4,"B148"],
+ [0x5BC5,"B147"],
+ [0x5BC6,"B14B"],
+ [0x5BC7,"B146"],
+ [0x5BCA,"D8D5"],
+ [0x5BCB,"D8D2"],
+ [0x5BCC,"B449"],
+ [0x5BCD,"D8D1"],
+ [0x5BCE,"D8D6"],
+ [0x5BD0,"B44B"],
+ [0x5BD1,"D8D4"],
+ [0x5BD2,"B448"],
+ [0x5BD3,"B44A"],
+ [0x5BD4,"D8D3"],
+ [0x5BD5,"FBCC"],
+ [0x5BD6,"DD48"],
+ [0x5BD7,"FEAE"],
+ [0x5BD8,"DD49"],
+ [0x5BD9,"DD4A"],
+ [0x5BDB,"876D"],
+ [0x5BDE,"B9E6"],
+ [0x5BDF,"B9EE"],
+ [0x5BE0,"E17E"],
+ [0x5BE1,"B9E8"],
+ [0x5BE2,"B9EC"],
+ [0x5BE3,"E1A1"],
+ [0x5BE4,"B9ED"],
+ [0x5BE5,"B9E9"],
+ [0x5BE6,"B9EA"],
+ [0x5BE7,"B9E7"],
+ [0x5BE8,"B9EB"],
+ [0x5BE9,"BC66"],
+ [0x5BEA,"D8D0"],
+ [0x5BEB,"BC67"],
+ [0x5BEC,"BC65"],
+ [0x5BEE,"BC64"],
+ [0x5BEF,"E95D"],
+ [0x5BF0,"BEC8"],
+ [0x5BF1,"ECD8"],
+ [0x5BF2,"ECD9"],
+ [0x5BF3,"FBD1"],
+ [0x5BF5,"C364"],
+ [0x5BF6,"C45F"],
+ [0x5BF8,"A46F"],
+ [0x5BFA,"A678"],
+ [0x5BFF,"FB75"],
+ [0x5C01,"ABCA"],
+ [0x5C03,"D169"],
+ [0x5C04,"AE67"],
+ [0x5C05,"FBD4"],
+ [0x5C07,"B14E"],
+ [0x5C08,"B14D"],
+ [0x5C09,"B14C"],
+ [0x5C0A,"B44C"],
+ [0x5C0B,"B44D"],
+ [0x5C0C,"D8D7"],
+ [0x5C0D,"B9EF"],
+ [0x5C0E,"BEC9"],
+ [0x5C0F,"A470"],
+ [0x5C10,"C95C"],
+ [0x5C11,"A4D6"],
+ [0x5C12,"C974"],
+ [0x5C13,"FBD6"],
+ [0x5C14,"FBD8"],
+ [0x5C15,"C9D4"],
+ [0x5C16,"A679"],
+ [0x5C1A,"A97C"],
+ [0x5C1C,"8B5D"],
+ [0x5C1E,"934C"],
+ [0x5C1F,"DD4B"],
+ [0x5C20,"9AE2"],
+ [0x5C22,"A471"],
+ [0x5C23,"8BC9"],
+ [0x5C24,"A4D7"],
+ [0x5C25,"C9D5"],
+ [0x5C28,"CABE"],
+ [0x5C2A,"CABF"],
+ [0x5C2C,"A7BC"],
+ [0x5C30,"D8D8"],
+ [0x5C31,"B44E"],
+ [0x5C33,"DD4C"],
+ [0x5C37,"C0AA"],
+ [0x5C38,"A472"],
+ [0x5C39,"A4A8"],
+ [0x5C3A,"A4D8"],
+ [0x5C3B,"C975"],
+ [0x5C3C,"A5A7"],
+ [0x5C3E,"A7C0"],
+ [0x5C3F,"A7BF"],
+ [0x5C40,"A7BD"],
+ [0x5C41,"A7BE"],
+ [0x5C44,"CC59"],
+ [0x5C45,"A97E"],
+ [0x5C46,"A9A1"],
+ [0x5C47,"CC5A"],
+ [0x5C48,"A97D"],
+ [0x5C49,"FBDB"],
+ [0x5C4A,"9FC9"],
+ [0x5C4B,"ABCE"],
+ [0x5C4C,"CE78"],
+ [0x5C4D,"ABCD"],
+ [0x5C4E,"ABCB"],
+ [0x5C4F,"ABCC"],
+ [0x5C50,"AE6A"],
+ [0x5C51,"AE68"],
+ [0x5C53,"9F44"],
+ [0x5C54,"D16B"],
+ [0x5C55,"AE69"],
+ [0x5C56,"D16A"],
+ [0x5C58,"AE5E"],
+ [0x5C59,"D4F3"],
+ [0x5C5C,"B150"],
+ [0x5C5D,"B151"],
+ [0x5C5E,"98ED"],
+ [0x5C60,"B14F"],
+ [0x5C62,"B9F0"],
+ [0x5C63,"E1A2"],
+ [0x5C64,"BC68"],
+ [0x5C65,"BC69"],
+ [0x5C67,"E561"],
+ [0x5C68,"C0AB"],
+ [0x5C69,"EFC2"],
+ [0x5C6A,"EFC3"],
+ [0x5C6C,"C4DD"],
+ [0x5C6D,"F8A8"],
+ [0x5C6E,"C94B"],
+ [0x5C6F,"A4D9"],
+ [0x5C71,"A473"],
+ [0x5C73,"C977"],
+ [0x5C74,"C976"],
+ [0x5C78,"8CE9"],
+ [0x5C79,"A67A"],
+ [0x5C7A,"C9D7"],
+ [0x5C7B,"C9D8"],
+ [0x5C7C,"C9D6"],
+ [0x5C7E,"C9D9"],
+ [0x5C85,"FBDD"],
+ [0x5C86,"CAC7"],
+ [0x5C88,"CAC2"],
+ [0x5C89,"CAC4"],
+ [0x5C8A,"CAC6"],
+ [0x5C8B,"CAC3"],
+ [0x5C8C,"A7C4"],
+ [0x5C8D,"CAC0"],
+ [0x5C8F,"CAC1"],
+ [0x5C90,"A7C1"],
+ [0x5C91,"A7C2"],
+ [0x5C92,"CAC5"],
+ [0x5C93,"CAC8"],
+ [0x5C94,"A7C3"],
+ [0x5C95,"CAC9"],
+ [0x5C99,"8DF2"],
+ [0x5C9A,"8964"],
+ [0x5C9C,"FDF2"],
+ [0x5C9D,"CC68"],
+ [0x5C9E,"934D"],
+ [0x5C9F,"CC62"],
+ [0x5CA0,"CC5D"],
+ [0x5CA1,"A9A3"],
+ [0x5CA2,"CC65"],
+ [0x5CA3,"CC63"],
+ [0x5CA4,"CC5C"],
+ [0x5CA5,"CC69"],
+ [0x5CA6,"CC6C"],
+ [0x5CA7,"CC67"],
+ [0x5CA8,"CC60"],
+ [0x5CA9,"A9A5"],
+ [0x5CAA,"CC66"],
+ [0x5CAB,"A9A6"],
+ [0x5CAC,"CC61"],
+ [0x5CAD,"CC64"],
+ [0x5CAE,"CC5B"],
+ [0x5CAF,"CC5F"],
+ [0x5CB0,"CC6B"],
+ [0x5CB1,"A9A7"],
+ [0x5CB3,"A9A8"],
+ [0x5CB5,"CC5E"],
+ [0x5CB6,"CC6A"],
+ [0x5CB7,"A9A2"],
+ [0x5CB8,"A9A4"],
+ [0x5CBA,"FBE7"],
+ [0x5CC1,"A0F2"],
+ [0x5CC2,"9868"],
+ [0x5CC6,"CEAB"],
+ [0x5CC7,"CEA4"],
+ [0x5CC8,"CEAA"],
+ [0x5CC9,"CEA3"],
+ [0x5CCA,"CEA5"],
+ [0x5CCB,"CE7D"],
+ [0x5CCC,"CE7B"],
+ [0x5CCE,"CEAC"],
+ [0x5CCF,"CEA9"],
+ [0x5CD0,"CE79"],
+ [0x5CD1,"9F58"],
+ [0x5CD2,"ABD0"],
+ [0x5CD3,"CEA7"],
+ [0x5CD4,"CEA8"],
+ [0x5CD5,"8CE6"],
+ [0x5CD6,"CEA6"],
+ [0x5CD7,"CE7C"],
+ [0x5CD8,"CE7A"],
+ [0x5CD9,"ABCF"],
+ [0x5CDA,"CEA2"],
+ [0x5CDB,"CE7E"],
+ [0x5CDE,"CEA1"],
+ [0x5CDF,"CEAD"],
+ [0x5CE5,"8D73"],
+ [0x5CE8,"AE6F"],
+ [0x5CE9,"FBDE"],
+ [0x5CEA,"AE6E"],
+ [0x5CEC,"D16C"],
+ [0x5CED,"AE6B"],
+ [0x5CEE,"D16E"],
+ [0x5CEF,"FBDF"],
+ [0x5CF0,"AE70"],
+ [0x5CF1,"D16F"],
+ [0x5CF4,"AE73"],
+ [0x5CF5,"8C48"],
+ [0x5CF6,"AE71"],
+ [0x5CF7,"D170"],
+ [0x5CF8,"CEAE"],
+ [0x5CF9,"D172"],
+ [0x5CFB,"AE6D"],
+ [0x5CFC,"8774"],
+ [0x5CFD,"AE6C"],
+ [0x5CFF,"D16D"],
+ [0x5D00,"D171"],
+ [0x5D01,"AE72"],
+ [0x5D06,"B153"],
+ [0x5D07,"B152"],
+ [0x5D0B,"D4F5"],
+ [0x5D0C,"D4F9"],
+ [0x5D0D,"D4FB"],
+ [0x5D0E,"B154"],
+ [0x5D0F,"D4FE"],
+ [0x5D10,"FBE3"],
+ [0x5D11,"B158"],
+ [0x5D12,"D541"],
+ [0x5D14,"B15A"],
+ [0x5D15,"8DA8"],
+ [0x5D16,"B156"],
+ [0x5D17,"B15E"],
+ [0x5D18,"FBE4"],
+ [0x5D19,"B15B"],
+ [0x5D1A,"D4F7"],
+ [0x5D1B,"B155"],
+ [0x5D1D,"D4F6"],
+ [0x5D1E,"D4F4"],
+ [0x5D1F,"D543"],
+ [0x5D20,"D4F8"],
+ [0x5D22,"B157"],
+ [0x5D23,"D542"],
+ [0x5D24,"B15C"],
+ [0x5D25,"D4FD"],
+ [0x5D26,"D4FC"],
+ [0x5D27,"B15D"],
+ [0x5D28,"D4FA"],
+ [0x5D29,"B159"],
+ [0x5D2C,"9C75"],
+ [0x5D2E,"D544"],
+ [0x5D2F,"9878"],
+ [0x5D30,"D540"],
+ [0x5D31,"D8E7"],
+ [0x5D32,"D8EE"],
+ [0x5D33,"D8E3"],
+ [0x5D34,"B451"],
+ [0x5D35,"D8DF"],
+ [0x5D36,"D8EF"],
+ [0x5D37,"D8D9"],
+ [0x5D38,"D8EC"],
+ [0x5D39,"D8EA"],
+ [0x5D3A,"D8E4"],
+ [0x5D3C,"D8ED"],
+ [0x5D3D,"D8E6"],
+ [0x5D3E,"8D60"],
+ [0x5D3F,"D8DE"],
+ [0x5D40,"D8F0"],
+ [0x5D41,"D8DC"],
+ [0x5D42,"D8E9"],
+ [0x5D43,"D8DA"],
+ [0x5D45,"D8F1"],
+ [0x5D46,"FBE5"],
+ [0x5D47,"B452"],
+ [0x5D48,"8D61"],
+ [0x5D49,"D8EB"],
+ [0x5D4A,"DD4F"],
+ [0x5D4B,"D8DD"],
+ [0x5D4C,"B44F"],
+ [0x5D4E,"D8E1"],
+ [0x5D50,"B450"],
+ [0x5D51,"D8E0"],
+ [0x5D52,"D8E5"],
+ [0x5D55,"D8E2"],
+ [0x5D56,"8D62"],
+ [0x5D57,"A0A1"],
+ [0x5D59,"D8E8"],
+ [0x5D5B,"9C40"],
+ [0x5D5E,"DD53"],
+ [0x5D62,"DD56"],
+ [0x5D63,"DD4E"],
+ [0x5D65,"DD50"],
+ [0x5D67,"DD55"],
+ [0x5D68,"DD54"],
+ [0x5D69,"B743"],
+ [0x5D6B,"D8DB"],
+ [0x5D6C,"DD52"],
+ [0x5D6F,"B744"],
+ [0x5D70,"98AD"],
+ [0x5D71,"DD4D"],
+ [0x5D72,"DD51"],
+ [0x5D74,"9EEA"],
+ [0x5D77,"E1A9"],
+ [0x5D78,"8CEC"],
+ [0x5D79,"E1B0"],
+ [0x5D7A,"E1A7"],
+ [0x5D7B,"8CD4"],
+ [0x5D7C,"E1AE"],
+ [0x5D7D,"E1A5"],
+ [0x5D7E,"E1AD"],
+ [0x5D7F,"E1B1"],
+ [0x5D80,"E1A4"],
+ [0x5D81,"E1A8"],
+ [0x5D82,"E1A3"],
+ [0x5D84,"B9F1"],
+ [0x5D85,"9CEB"],
+ [0x5D86,"E1A6"],
+ [0x5D87,"B9F2"],
+ [0x5D88,"E1AC"],
+ [0x5D89,"E1AB"],
+ [0x5D8A,"E1AA"],
+ [0x5D8B,"FBE0"],
+ [0x5D8D,"E1AF"],
+ [0x5D8E,"9F51"],
+ [0x5D92,"E565"],
+ [0x5D93,"E567"],
+ [0x5D94,"BC6B"],
+ [0x5D95,"E568"],
+ [0x5D97,"E563"],
+ [0x5D99,"E562"],
+ [0x5D9A,"E56C"],
+ [0x5D9C,"E56A"],
+ [0x5D9D,"BC6A"],
+ [0x5D9E,"E56D"],
+ [0x5D9F,"E564"],
+ [0x5DA0,"E569"],
+ [0x5DA1,"E56B"],
+ [0x5DA2,"E566"],
+ [0x5DA4,"8D65"],
+ [0x5DA7,"E961"],
+ [0x5DA8,"E966"],
+ [0x5DA9,"E960"],
+ [0x5DAA,"E965"],
+ [0x5DAB,"9CF1"],
+ [0x5DAC,"E95E"],
+ [0x5DAD,"E968"],
+ [0x5DAE,"E964"],
+ [0x5DAF,"E969"],
+ [0x5DB0,"E963"],
+ [0x5DB1,"E95F"],
+ [0x5DB2,"E967"],
+ [0x5DB4,"E96A"],
+ [0x5DB5,"E962"],
+ [0x5DB6,"FC58"],
+ [0x5DB7,"ECDA"],
+ [0x5DB8,"C0AF"],
+ [0x5DB9,"8D66"],
+ [0x5DBA,"C0AD"],
+ [0x5DBC,"C0AC"],
+ [0x5DBD,"C0AE"],
+ [0x5DC0,"EFC4"],
+ [0x5DC1,"9654"],
+ [0x5DC2,"F172"],
+ [0x5DC3,"F1FD"],
+ [0x5DC6,"F444"],
+ [0x5DC7,"F445"],
+ [0x5DC9,"C460"],
+ [0x5DCB,"F5C9"],
+ [0x5DCD,"C4DE"],
+ [0x5DCF,"F5CA"],
+ [0x5DD1,"F6DE"],
+ [0x5DD2,"C572"],
+ [0x5DD4,"C571"],
+ [0x5DD5,"F6DD"],
+ [0x5DD6,"C5C9"],
+ [0x5DD7,"FBE8"],
+ [0x5DD8,"F7D6"],
+ [0x5DDB,"C6CC"],
+ [0x5DDD,"A474"],
+ [0x5DDE,"A67B"],
+ [0x5DDF,"C9DA"],
+ [0x5DE0,"CACA"],
+ [0x5DE1,"A8B5"],
+ [0x5DE2,"B15F"],
+ [0x5DE5,"A475"],
+ [0x5DE6,"A5AA"],
+ [0x5DE7,"A5A9"],
+ [0x5DE8,"A5A8"],
+ [0x5DEB,"A7C5"],
+ [0x5DEE,"AE74"],
+ [0x5DF0,"DD57"],
+ [0x5DF1,"A476"],
+ [0x5DF2,"A477"],
+ [0x5DF3,"A478"],
+ [0x5DF4,"A4DA"],
+ [0x5DF5,"9FCE"],
+ [0x5DF7,"ABD1"],
+ [0x5DF9,"CEAF"],
+ [0x5DFD,"B453"],
+ [0x5DFE,"A479"],
+ [0x5DFF,"C95D"],
+ [0x5E02,"A5AB"],
+ [0x5E03,"A5AC"],
+ [0x5E04,"C978"],
+ [0x5E06,"A67C"],
+ [0x5E09,"FBFC"],
+ [0x5E0A,"CACB"],
+ [0x5E0B,"9AE4"],
+ [0x5E0C,"A7C6"],
+ [0x5E0E,"CACC"],
+ [0x5E11,"A9AE"],
+ [0x5E12,"9F75"],
+ [0x5E14,"CC6E"],
+ [0x5E15,"A9AC"],
+ [0x5E16,"A9AB"],
+ [0x5E17,"CC6D"],
+ [0x5E18,"A9A9"],
+ [0x5E19,"CC6F"],
+ [0x5E1A,"A9AA"],
+ [0x5E1B,"A9AD"],
+ [0x5E1D,"ABD2"],
+ [0x5E1F,"ABD4"],
+ [0x5E20,"CEB3"],
+ [0x5E21,"CEB0"],
+ [0x5E22,"CEB1"],
+ [0x5E23,"CEB2"],
+ [0x5E24,"CEB4"],
+ [0x5E25,"ABD3"],
+ [0x5E28,"D174"],
+ [0x5E29,"D173"],
+ [0x5E2B,"AE76"],
+ [0x5E2D,"AE75"],
+ [0x5E2E,"FBF1"],
+ [0x5E33,"B162"],
+ [0x5E34,"D546"],
+ [0x5E36,"B161"],
+ [0x5E37,"B163"],
+ [0x5E38,"B160"],
+ [0x5E3D,"B455"],
+ [0x5E3E,"D545"],
+ [0x5E40,"B456"],
+ [0x5E41,"D8F3"],
+ [0x5E42,"8D69"],
+ [0x5E43,"B457"],
+ [0x5E44,"D8F2"],
+ [0x5E45,"B454"],
+ [0x5E48,"934F"],
+ [0x5E4A,"DD5A"],
+ [0x5E4B,"DD5C"],
+ [0x5E4C,"B745"],
+ [0x5E4D,"DD5B"],
+ [0x5E4E,"DD59"],
+ [0x5E4F,"DD58"],
+ [0x5E53,"E1B4"],
+ [0x5E54,"B9F7"],
+ [0x5E55,"B9F5"],
+ [0x5E57,"B9F6"],
+ [0x5E58,"E1B2"],
+ [0x5E59,"E1B3"],
+ [0x5E5B,"B9F3"],
+ [0x5E5C,"E571"],
+ [0x5E5D,"E56F"],
+ [0x5E5E,"934E"],
+ [0x5E5F,"BC6D"],
+ [0x5E60,"E570"],
+ [0x5E61,"BC6E"],
+ [0x5E62,"BC6C"],
+ [0x5E63,"B9F4"],
+ [0x5E66,"E96D"],
+ [0x5E67,"E96B"],
+ [0x5E68,"E96C"],
+ [0x5E69,"E56E"],
+ [0x5E6A,"ECDC"],
+ [0x5E6B,"C0B0"],
+ [0x5E6C,"ECDB"],
+ [0x5E6D,"EFC5"],
+ [0x5E6E,"EFC6"],
+ [0x5E6F,"E96E"],
+ [0x5E70,"F1FE"],
+ [0x5E72,"A47A"],
+ [0x5E73,"A5AD"],
+ [0x5E74,"A67E"],
+ [0x5E75,"C9DB"],
+ [0x5E76,"A67D"],
+ [0x5E78,"A9AF"],
+ [0x5E79,"B746"],
+ [0x5E7A,"FBF4"],
+ [0x5E7B,"A4DB"],
+ [0x5E7C,"A5AE"],
+ [0x5E7D,"ABD5"],
+ [0x5E7E,"B458"],
+ [0x5E7F,"C6CE"],
+ [0x5E80,"C979"],
+ [0x5E82,"C97A"],
+ [0x5E83,"FBC3"],
+ [0x5E84,"C9DC"],
+ [0x5E86,"8965"],
+ [0x5E87,"A7C8"],
+ [0x5E88,"CAD0"],
+ [0x5E89,"CACE"],
+ [0x5E8A,"A7C9"],
+ [0x5E8B,"CACD"],
+ [0x5E8C,"CACF"],
+ [0x5E8D,"CAD1"],
+ [0x5E8F,"A7C7"],
+ [0x5E92,"8C7A"],
+ [0x5E95,"A9B3"],
+ [0x5E96,"A9B4"],
+ [0x5E97,"A9B1"],
+ [0x5E99,"8C7B"],
+ [0x5E9A,"A9B0"],
+ [0x5E9B,"CEB8"],
+ [0x5E9C,"A9B2"],
+ [0x5EA0,"ABD6"],
+ [0x5EA2,"CEB7"],
+ [0x5EA3,"CEB9"],
+ [0x5EA4,"CEB6"],
+ [0x5EA5,"CEBA"],
+ [0x5EA6,"ABD7"],
+ [0x5EA7,"AE79"],
+ [0x5EA8,"D175"],
+ [0x5EAA,"D177"],
+ [0x5EAB,"AE77"],
+ [0x5EAC,"D178"],
+ [0x5EAD,"AE78"],
+ [0x5EAE,"D176"],
+ [0x5EB0,"CEB5"],
+ [0x5EB1,"D547"],
+ [0x5EB2,"D54A"],
+ [0x5EB3,"D54B"],
+ [0x5EB4,"D548"],
+ [0x5EB5,"B167"],
+ [0x5EB6,"B166"],
+ [0x5EB7,"B164"],
+ [0x5EB8,"B165"],
+ [0x5EB9,"D549"],
+ [0x5EBD,"8D6A"],
+ [0x5EBE,"B168"],
+ [0x5EC1,"B45A"],
+ [0x5EC2,"B45B"],
+ [0x5EC4,"B45C"],
+ [0x5EC5,"DD5D"],
+ [0x5EC6,"DD5F"],
+ [0x5EC7,"DD61"],
+ [0x5EC8,"B748"],
+ [0x5EC9,"B747"],
+ [0x5ECA,"B459"],
+ [0x5ECB,"DD60"],
+ [0x5ECC,"DD5E"],
+ [0x5ECD,"9353"],
+ [0x5ECE,"E1B8"],
+ [0x5ED0,"9DFB"],
+ [0x5ED1,"E1B6"],
+ [0x5ED2,"E1BC"],
+ [0x5ED3,"B9F8"],
+ [0x5ED4,"E1BD"],
+ [0x5ED5,"E1BA"],
+ [0x5ED6,"B9F9"],
+ [0x5ED7,"E1B7"],
+ [0x5ED8,"E1B5"],
+ [0x5ED9,"E1BB"],
+ [0x5EDA,"BC70"],
+ [0x5EDB,"E573"],
+ [0x5EDC,"E1B9"],
+ [0x5EDD,"BC72"],
+ [0x5EDE,"E574"],
+ [0x5EDF,"BC71"],
+ [0x5EE0,"BC74"],
+ [0x5EE1,"E575"],
+ [0x5EE2,"BC6F"],
+ [0x5EE3,"BC73"],
+ [0x5EE5,"E973"],
+ [0x5EE6,"E971"],
+ [0x5EE7,"E970"],
+ [0x5EE8,"E972"],
+ [0x5EE9,"E96F"],
+ [0x5EEC,"C366"],
+ [0x5EEE,"F446"],
+ [0x5EEF,"F447"],
+ [0x5EF1,"F5CB"],
+ [0x5EF2,"F6DF"],
+ [0x5EF3,"C655"],
+ [0x5EF4,"FBFD"],
+ [0x5EF6,"A9B5"],
+ [0x5EF7,"A7CA"],
+ [0x5EF8,"9059"],
+ [0x5EF9,"FC40"],
+ [0x5EFA,"ABD8"],
+ [0x5EFB,"FC41"],
+ [0x5EFC,"FC43"],
+ [0x5EFE,"A47B"],
+ [0x5EFF,"A4DC"],
+ [0x5F01,"A5AF"],
+ [0x5F02,"C9DD"],
+ [0x5F04,"A7CB"],
+ [0x5F05,"CAD2"],
+ [0x5F07,"CEBB"],
+ [0x5F08,"ABD9"],
+ [0x5F0A,"B9FA"],
+ [0x5F0B,"A47C"],
+ [0x5F0C,"9361"],
+ [0x5F0D,"FC46"],
+ [0x5F0E,"9362"],
+ [0x5F0F,"A6A1"],
+ [0x5F12,"B749"],
+ [0x5F13,"A47D"],
+ [0x5F14,"A4DD"],
+ [0x5F15,"A4DE"],
+ [0x5F17,"A5B1"],
+ [0x5F18,"A5B0"],
+ [0x5F1A,"C9DE"],
+ [0x5F1B,"A6A2"],
+ [0x5F1D,"CAD3"],
+ [0x5F1F,"A7CC"],
+ [0x5F22,"CC71"],
+ [0x5F23,"CC72"],
+ [0x5F24,"CC73"],
+ [0x5F25,"8D6B"],
+ [0x5F26,"A9B6"],
+ [0x5F27,"A9B7"],
+ [0x5F28,"CC70"],
+ [0x5F29,"A9B8"],
+ [0x5F2D,"ABDA"],
+ [0x5F2E,"CEBC"],
+ [0x5F30,"D17A"],
+ [0x5F31,"AE7A"],
+ [0x5F33,"D179"],
+ [0x5F35,"B169"],
+ [0x5F36,"D54C"],
+ [0x5F37,"B16A"],
+ [0x5F38,"D54D"],
+ [0x5F3A,"FC4C"],
+ [0x5F3B,"8CFE"],
+ [0x5F3C,"B45D"],
+ [0x5F40,"DD62"],
+ [0x5F43,"E1BF"],
+ [0x5F44,"E1BE"],
+ [0x5F46,"B9FB"],
+ [0x5F48,"BC75"],
+ [0x5F49,"E576"],
+ [0x5F4A,"BECA"],
+ [0x5F4B,"E974"],
+ [0x5F4C,"C0B1"],
+ [0x5F4D,"95B8"],
+ [0x5F4E,"C573"],
+ [0x5F4F,"F7D8"],
+ [0x5F50,"C6D0"],
+ [0x5F51,"8BCA"],
+ [0x5F54,"CC74"],
+ [0x5F56,"CEBD"],
+ [0x5F57,"B16B"],
+ [0x5F58,"D8F4"],
+ [0x5F59,"B74A"],
+ [0x5F5C,"987A"],
+ [0x5F5D,"C255"],
+ [0x5F61,"C6D1"],
+ [0x5F62,"A7CE"],
+ [0x5F63,"FC51"],
+ [0x5F64,"A7CD"],
+ [0x5F65,"ABDB"],
+ [0x5F67,"D17B"],
+ [0x5F69,"B16D"],
+ [0x5F6A,"B343"],
+ [0x5F6B,"B16E"],
+ [0x5F6C,"B16C"],
+ [0x5F6D,"B45E"],
+ [0x5F6F,"E1C0"],
+ [0x5F70,"B9FC"],
+ [0x5F71,"BC76"],
+ [0x5F72,"FC54"],
+ [0x5F73,"C94C"],
+ [0x5F74,"C9DF"],
+ [0x5F76,"CAD5"],
+ [0x5F77,"A7CF"],
+ [0x5F78,"CAD4"],
+ [0x5F79,"A7D0"],
+ [0x5F7B,"FAAF"],
+ [0x5F7C,"A9BC"],
+ [0x5F7D,"CC77"],
+ [0x5F7E,"CC76"],
+ [0x5F7F,"A9BB"],
+ [0x5F80,"A9B9"],
+ [0x5F81,"A9BA"],
+ [0x5F82,"CC75"],
+ [0x5F83,"8D6C"],
+ [0x5F85,"ABDD"],
+ [0x5F86,"CEBE"],
+ [0x5F87,"ABE0"],
+ [0x5F88,"ABDC"],
+ [0x5F89,"ABE2"],
+ [0x5F8A,"ABDE"],
+ [0x5F8B,"ABDF"],
+ [0x5F8C,"ABE1"],
+ [0x5F90,"AE7D"],
+ [0x5F91,"AE7C"],
+ [0x5F92,"AE7B"],
+ [0x5F96,"D54F"],
+ [0x5F97,"B16F"],
+ [0x5F98,"B172"],
+ [0x5F99,"B170"],
+ [0x5F9B,"D54E"],
+ [0x5F9C,"B175"],
+ [0x5F9E,"B171"],
+ [0x5F9F,"D550"],
+ [0x5FA0,"B174"],
+ [0x5FA1,"B173"],
+ [0x5FA4,"FA61"],
+ [0x5FA5,"D8F6"],
+ [0x5FA6,"D8F5"],
+ [0x5FA7,"FC57"],
+ [0x5FA8,"B461"],
+ [0x5FA9,"B45F"],
+ [0x5FAA,"B460"],
+ [0x5FAB,"D8F7"],
+ [0x5FAC,"B74B"],
+ [0x5FAD,"DD64"],
+ [0x5FAE,"B74C"],
+ [0x5FAF,"DD63"],
+ [0x5FB1,"9B70"],
+ [0x5FB2,"E577"],
+ [0x5FB5,"BC78"],
+ [0x5FB6,"E1C1"],
+ [0x5FB7,"BC77"],
+ [0x5FB9,"B9FD"],
+ [0x5FBA,"A051"],
+ [0x5FBB,"ECDE"],
+ [0x5FBC,"E975"],
+ [0x5FBD,"C0B2"],
+ [0x5FBE,"ECDD"],
+ [0x5FBF,"F240"],
+ [0x5FC0,"F448"],
+ [0x5FC1,"F449"],
+ [0x5FC2,"8C7C"],
+ [0x5FC3,"A4DF"],
+ [0x5FC4,"8BCB"],
+ [0x5FC5,"A5B2"],
+ [0x5FC9,"C97B"],
+ [0x5FCC,"A7D2"],
+ [0x5FCD,"A7D4"],
+ [0x5FCF,"C9E2"],
+ [0x5FD0,"CAD8"],
+ [0x5FD1,"CAD7"],
+ [0x5FD2,"CAD6"],
+ [0x5FD4,"C9E1"],
+ [0x5FD5,"C9E0"],
+ [0x5FD6,"A6A4"],
+ [0x5FD7,"A7D3"],
+ [0x5FD8,"A7D1"],
+ [0x5FD9,"A6A3"],
+ [0x5FDB,"936E"],
+ [0x5FDD,"A9BD"],
+ [0x5FDE,"CC78"],
+ [0x5FDF,"FCD5"],
+ [0x5FE0,"A9BE"],
+ [0x5FE1,"CADD"],
+ [0x5FE3,"CADF"],
+ [0x5FE4,"CADE"],
+ [0x5FE5,"CC79"],
+ [0x5FE8,"CADA"],
+ [0x5FEA,"A7D8"],
+ [0x5FEB,"A7D6"],
+ [0x5FED,"CAD9"],
+ [0x5FEE,"CADB"],
+ [0x5FEF,"CAE1"],
+ [0x5FF1,"A7D5"],
+ [0x5FF3,"CADC"],
+ [0x5FF4,"CAE5"],
+ [0x5FF5,"A9C0"],
+ [0x5FF7,"CAE2"],
+ [0x5FF8,"A7D7"],
+ [0x5FFA,"CAE0"],
+ [0x5FFB,"CAE3"],
+ [0x5FFD,"A9BF"],
+ [0x5FFF,"A9C1"],
+ [0x6000,"CAE4"],
+ [0x6009,"CCAF"],
+ [0x600A,"CCA2"],
+ [0x600B,"CC7E"],
+ [0x600C,"CCAE"],
+ [0x600D,"CCA9"],
+ [0x600E,"ABE7"],
+ [0x600F,"A9C2"],
+ [0x6010,"CCAA"],
+ [0x6011,"CCAD"],
+ [0x6012,"ABE3"],
+ [0x6013,"CCAC"],
+ [0x6014,"A9C3"],
+ [0x6015,"A9C8"],
+ [0x6016,"A9C6"],
+ [0x6017,"CCA3"],
+ [0x6019,"CC7C"],
+ [0x601A,"CCA5"],
+ [0x601B,"A9CD"],
+ [0x601C,"CCB0"],
+ [0x601D,"ABE4"],
+ [0x601E,"CCA6"],
+ [0x6020,"ABE5"],
+ [0x6021,"A9C9"],
+ [0x6022,"CCA8"],
+ [0x6023,"FCA9"],
+ [0x6024,"CECD"],
+ [0x6025,"ABE6"],
+ [0x6026,"CC7B"],
+ [0x6027,"A9CA"],
+ [0x6028,"ABE8"],
+ [0x6029,"A9CB"],
+ [0x602A,"A9C7"],
+ [0x602B,"A9CC"],
+ [0x602C,"CCA7"],
+ [0x602D,"CC7A"],
+ [0x602E,"CCAB"],
+ [0x602F,"A9C4"],
+ [0x6031,"FC61"],
+ [0x6032,"CC7D"],
+ [0x6033,"CCA4"],
+ [0x6034,"CCA1"],
+ [0x6035,"A9C5"],
+ [0x6037,"CEBF"],
+ [0x6039,"CEC0"],
+ [0x603B,"8966"],
+ [0x6040,"CECA"],
+ [0x6041,"D1A1"],
+ [0x6042,"CECB"],
+ [0x6043,"ABEE"],
+ [0x6044,"CECE"],
+ [0x6045,"CEC4"],
+ [0x6046,"ABED"],
+ [0x6047,"CEC6"],
+ [0x6049,"CEC7"],
+ [0x604A,"FACB"],
+ [0x604C,"CEC9"],
+ [0x604D,"ABE9"],
+ [0x6050,"AEA3"],
+ [0x6052,"F9DA"],
+ [0x6053,"CEC5"],
+ [0x6054,"CEC1"],
+ [0x6055,"AEA4"],
+ [0x6058,"CECF"],
+ [0x6059,"AE7E"],
+ [0x605A,"D17D"],
+ [0x605B,"CEC8"],
+ [0x605D,"D17C"],
+ [0x605E,"CEC3"],
+ [0x605F,"CECC"],
+ [0x6062,"ABEC"],
+ [0x6063,"AEA1"],
+ [0x6064,"ABF2"],
+ [0x6065,"AEA2"],
+ [0x6066,"CED0"],
+ [0x6067,"D17E"],
+ [0x6068,"ABEB"],
+ [0x6069,"AEA6"],
+ [0x606A,"ABF1"],
+ [0x606B,"ABF0"],
+ [0x606C,"ABEF"],
+ [0x606D,"AEA5"],
+ [0x606E,"CED1"],
+ [0x606F,"AEA7"],
+ [0x6070,"ABEA"],
+ [0x6072,"CEC2"],
+ [0x6075,"937A"],
+ [0x6077,"A0E0"],
+ [0x607E,"936B"],
+ [0x607F,"B176"],
+ [0x6080,"D1A4"],
+ [0x6081,"D1A6"],
+ [0x6083,"D1A8"],
+ [0x6084,"AEA8"],
+ [0x6085,"AEAE"],
+ [0x6086,"D553"],
+ [0x6087,"D1AC"],
+ [0x6088,"D1A3"],
+ [0x6089,"B178"],
+ [0x608A,"D551"],
+ [0x608C,"AEAD"],
+ [0x608D,"AEAB"],
+ [0x608E,"D1AE"],
+ [0x6090,"D552"],
+ [0x6092,"D1A5"],
+ [0x6094,"AEAC"],
+ [0x6095,"D1A9"],
+ [0x6096,"AEAF"],
+ [0x6097,"D1AB"],
+ [0x609A,"AEAA"],
+ [0x609B,"D1AA"],
+ [0x609C,"D1AD"],
+ [0x609D,"D1A7"],
+ [0x609E,"FC6B"],
+ [0x609F,"AEA9"],
+ [0x60A0,"B179"],
+ [0x60A2,"D1A2"],
+ [0x60A3,"B177"],
+ [0x60A4,"A0DC"],
+ [0x60A7,"9468"],
+ [0x60A8,"B17A"],
+ [0x60B0,"D555"],
+ [0x60B1,"D55E"],
+ [0x60B2,"B464"],
+ [0x60B3,"FC6D"],
+ [0x60B4,"B17C"],
+ [0x60B5,"B1A3"],
+ [0x60B6,"B465"],
+ [0x60B7,"D560"],
+ [0x60B8,"B1AA"],
+ [0x60B9,"D8F9"],
+ [0x60BA,"D556"],
+ [0x60BB,"B1A2"],
+ [0x60BC,"B1A5"],
+ [0x60BD,"B17E"],
+ [0x60BE,"D554"],
+ [0x60BF,"D562"],
+ [0x60C0,"D565"],
+ [0x60C1,"D949"],
+ [0x60C3,"D563"],
+ [0x60C4,"D8FD"],
+ [0x60C5,"B1A1"],
+ [0x60C6,"B1A8"],
+ [0x60C7,"B1AC"],
+ [0x60C8,"D55D"],
+ [0x60C9,"D8F8"],
+ [0x60CA,"D561"],
+ [0x60CB,"B17B"],
+ [0x60CC,"D8FA"],
+ [0x60CD,"D564"],
+ [0x60CE,"D8FC"],
+ [0x60CF,"D559"],
+ [0x60D1,"B462"],
+ [0x60D3,"D557"],
+ [0x60D4,"D558"],
+ [0x60D5,"B1A7"],
+ [0x60D7,"8D71"],
+ [0x60D8,"B1A6"],
+ [0x60D9,"D55B"],
+ [0x60DA,"B1AB"],
+ [0x60DB,"D55F"],
+ [0x60DC,"B1A4"],
+ [0x60DD,"D55C"],
+ [0x60DE,"FD64"],
+ [0x60DF,"B1A9"],
+ [0x60E0,"B466"],
+ [0x60E1,"B463"],
+ [0x60E2,"D8FB"],
+ [0x60E3,"99BA"],
+ [0x60E4,"D55A"],
+ [0x60E6,"B17D"],
+ [0x60E7,"9AD0"],
+ [0x60E8,"9A61"],
+ [0x60E9,"A0E5"],
+ [0x60F0,"B46B"],
+ [0x60F1,"B46F"],
+ [0x60F2,"D940"],
+ [0x60F3,"B751"],
+ [0x60F4,"B46D"],
+ [0x60F5,"D944"],
+ [0x60F6,"B471"],
+ [0x60F7,"DD65"],
+ [0x60F8,"D946"],
+ [0x60F9,"B753"],
+ [0x60FA,"B469"],
+ [0x60FB,"B46C"],
+ [0x60FC,"D947"],
+ [0x60FD,"A05B"],
+ [0x60FE,"D948"],
+ [0x60FF,"D94E"],
+ [0x6100,"B473"],
+ [0x6101,"B754"],
+ [0x6103,"D94A"],
+ [0x6104,"D94F"],
+ [0x6105,"D943"],
+ [0x6106,"B75E"],
+ [0x6107,"96AC"],
+ [0x6108,"B755"],
+ [0x6109,"B472"],
+ [0x610A,"D941"],
+ [0x610B,"D950"],
+ [0x610C,"9740"],
+ [0x610D,"B75D"],
+ [0x610E,"B470"],
+ [0x610F,"B74E"],
+ [0x6110,"D94D"],
+ [0x6112,"B474"],
+ [0x6113,"D945"],
+ [0x6114,"D8FE"],
+ [0x6115,"B46A"],
+ [0x6116,"D942"],
+ [0x6118,"D94B"],
+ [0x6119,"9EF1"],
+ [0x611A,"B74D"],
+ [0x611B,"B752"],
+ [0x611C,"B467"],
+ [0x611D,"D94C"],
+ [0x611F,"B750"],
+ [0x6122,"8C4D"],
+ [0x6123,"B468"],
+ [0x6127,"B75C"],
+ [0x6128,"E1C3"],
+ [0x6129,"DD70"],
+ [0x612B,"DD68"],
+ [0x612C,"E1C2"],
+ [0x612E,"DD6C"],
+ [0x612F,"DD6E"],
+ [0x6130,"9F7E"],
+ [0x6132,"DD6B"],
+ [0x6134,"B75B"],
+ [0x6136,"DD6A"],
+ [0x6137,"B75F"],
+ [0x613B,"E1D2"],
+ [0x613D,"8D72"],
+ [0x613E,"B75A"],
+ [0x613F,"BA40"],
+ [0x6140,"DD71"],
+ [0x6141,"E1C4"],
+ [0x6142,"FC76"],
+ [0x6144,"B758"],
+ [0x6145,"DD69"],
+ [0x6146,"DD6D"],
+ [0x6147,"B9FE"],
+ [0x6148,"B74F"],
+ [0x6149,"DD66"],
+ [0x614A,"DD67"],
+ [0x614B,"BA41"],
+ [0x614C,"B757"],
+ [0x614D,"B759"],
+ [0x614E,"B756"],
+ [0x614F,"DD6F"],
+ [0x6150,"96A9"],
+ [0x6152,"E1C8"],
+ [0x6153,"E1C9"],
+ [0x6154,"E1CE"],
+ [0x6155,"BC7D"],
+ [0x6156,"E1D5"],
+ [0x6158,"BA47"],
+ [0x6159,"A06E"],
+ [0x615A,"BA46"],
+ [0x615B,"E1D0"],
+ [0x615C,"FCAA"],
+ [0x615D,"BC7C"],
+ [0x615E,"E1C5"],
+ [0x615F,"BA45"],
+ [0x6160,"FBCD"],
+ [0x6161,"E1D4"],
+ [0x6162,"BA43"],
+ [0x6163,"BA44"],
+ [0x6164,"FC74"],
+ [0x6165,"E1D1"],
+ [0x6166,"E5AA"],
+ [0x6167,"BC7A"],
+ [0x6168,"B46E"],
+ [0x616A,"E1D3"],
+ [0x616B,"BCA3"],
+ [0x616C,"E1CB"],
+ [0x616E,"BC7B"],
+ [0x616F,"A074"],
+ [0x6170,"BCA2"],
+ [0x6171,"E1C6"],
+ [0x6172,"E1CA"],
+ [0x6173,"E1C7"],
+ [0x6174,"E1CD"],
+ [0x6175,"BA48"],
+ [0x6176,"BC79"],
+ [0x6177,"BA42"],
+ [0x6179,"E57A"],
+ [0x617A,"E1CF"],
+ [0x617C,"BCA1"],
+ [0x617D,"A071"],
+ [0x617E,"BCA4"],
+ [0x6180,"E1CC"],
+ [0x6181,"FC79"],
+ [0x6182,"BC7E"],
+ [0x6183,"E579"],
+ [0x6187,"FC7C"],
+ [0x6189,"E57E"],
+ [0x618A,"BECE"],
+ [0x618B,"E578"],
+ [0x618C,"E9A3"],
+ [0x618D,"E5A9"],
+ [0x618E,"BCA8"],
+ [0x6190,"BCA6"],
+ [0x6191,"BECC"],
+ [0x6192,"E5A6"],
+ [0x6193,"E5A2"],
+ [0x6194,"BCAC"],
+ [0x6195,"9C50"],
+ [0x6196,"E978"],
+ [0x6198,"9379"],
+ [0x6199,"9378"],
+ [0x619A,"BCAA"],
+ [0x619B,"E5A1"],
+ [0x619C,"A0DD"],
+ [0x619D,"E976"],
+ [0x619F,"E5A5"],
+ [0x61A1,"E5A8"],
+ [0x61A2,"E57D"],
+ [0x61A4,"BCAB"],
+ [0x61A7,"BCA5"],
+ [0x61A8,"E977"],
+ [0x61A9,"BECD"],
+ [0x61AA,"E5A7"],
+ [0x61AB,"BCA7"],
+ [0x61AC,"BCA9"],
+ [0x61AD,"E5A4"],
+ [0x61AE,"BCAD"],
+ [0x61AF,"E5A3"],
+ [0x61B0,"E57C"],
+ [0x61B1,"E57B"],
+ [0x61B2,"BECB"],
+ [0x61B3,"E5AB"],
+ [0x61B4,"E97A"],
+ [0x61B5,"ECE0"],
+ [0x61B6,"BED0"],
+ [0x61B7,"8D75"],
+ [0x61B8,"E9A2"],
+ [0x61B9,"8D76"],
+ [0x61BA,"E97E"],
+ [0x61BC,"ECE1"],
+ [0x61BE,"BED1"],
+ [0x61BF,"E9A1"],
+ [0x61C0,"9374"],
+ [0x61C1,"E97C"],
+ [0x61C2,"C0B4"],
+ [0x61C3,"ECDF"],
+ [0x61C5,"E979"],
+ [0x61C6,"E97B"],
+ [0x61C7,"C0B5"],
+ [0x61C8,"BED3"],
+ [0x61C9,"C0B3"],
+ [0x61CA,"BED2"],
+ [0x61CB,"C0B7"],
+ [0x61CC,"E97D"],
+ [0x61CD,"BECF"],
+ [0x61CF,"8D77"],
+ [0x61D0,"FCA5"],
+ [0x61D3,"FCA2"],
+ [0x61D6,"EFCF"],
+ [0x61D8,"EFC7"],
+ [0x61DA,"90C3"],
+ [0x61DE,"ECE7"],
+ [0x61DF,"EFC8"],
+ [0x61E0,"ECE3"],
+ [0x61E2,"A079"],
+ [0x61E3,"C256"],
+ [0x61E4,"ECE5"],
+ [0x61E5,"ECE4"],
+ [0x61E6,"C0B6"],
+ [0x61E7,"ECE2"],
+ [0x61E8,"ECE6"],
+ [0x61E9,"EFD0"],
+ [0x61EA,"EFCC"],
+ [0x61EB,"EFCE"],
+ [0x61ED,"EFC9"],
+ [0x61EE,"EFCA"],
+ [0x61F0,"EFCD"],
+ [0x61F1,"EFCB"],
+ [0x61F2,"C367"],
+ [0x61F5,"C36A"],
+ [0x61F6,"C369"],
+ [0x61F7,"C368"],
+ [0x61F8,"C461"],
+ [0x61F9,"F44A"],
+ [0x61FA,"C462"],
+ [0x61FB,"F241"],
+ [0x61FC,"C4DF"],
+ [0x61FD,"F5CC"],
+ [0x61FE,"C4E0"],
+ [0x61FF,"C574"],
+ [0x6200,"C5CA"],
+ [0x6201,"F7D9"],
+ [0x6203,"F7DA"],
+ [0x6204,"F7DB"],
+ [0x6207,"F9BA"],
+ [0x6208,"A4E0"],
+ [0x6209,"C97C"],
+ [0x620A,"A5B3"],
+ [0x620C,"A6A6"],
+ [0x620D,"A6A7"],
+ [0x620E,"A6A5"],
+ [0x6210,"A6A8"],
+ [0x6211,"A7DA"],
+ [0x6212,"A7D9"],
+ [0x6214,"CCB1"],
+ [0x6215,"A9CF"],
+ [0x6216,"A9CE"],
+ [0x6219,"D1AF"],
+ [0x621A,"B1AD"],
+ [0x621B,"B1AE"],
+ [0x621F,"B475"],
+ [0x6220,"DD72"],
+ [0x6221,"B760"],
+ [0x6222,"B761"],
+ [0x6223,"DD74"],
+ [0x6224,"DD76"],
+ [0x6225,"DD75"],
+ [0x6227,"E1D7"],
+ [0x6229,"E1D6"],
+ [0x622A,"BA49"],
+ [0x622B,"E1D8"],
+ [0x622C,"8D79"],
+ [0x622D,"E5AC"],
+ [0x622E,"BCAE"],
+ [0x6230,"BED4"],
+ [0x6232,"C0B8"],
+ [0x6233,"C257"],
+ [0x6234,"C0B9"],
+ [0x6236,"A4E1"],
+ [0x6237,"8BFC"],
+ [0x6239,"A076"],
+ [0x623A,"CAE6"],
+ [0x623D,"CCB2"],
+ [0x623E,"A9D1"],
+ [0x623F,"A9D0"],
+ [0x6240,"A9D2"],
+ [0x6241,"ABF3"],
+ [0x6242,"CED2"],
+ [0x6243,"CED3"],
+ [0x6246,"D1B0"],
+ [0x6247,"AEB0"],
+ [0x6248,"B1AF"],
+ [0x6249,"B476"],
+ [0x624A,"D951"],
+ [0x624B,"A4E2"],
+ [0x624C,"8BCD"],
+ [0x624D,"A47E"],
+ [0x624E,"A4E3"],
+ [0x6250,"C97D"],
+ [0x6251,"A5B7"],
+ [0x6252,"A5B6"],
+ [0x6253,"A5B4"],
+ [0x6254,"A5B5"],
+ [0x6258,"A6AB"],
+ [0x6259,"C9E9"],
+ [0x625A,"C9EB"],
+ [0x625B,"A6AA"],
+ [0x625C,"C9E3"],
+ [0x625E,"C9E4"],
+ [0x6260,"C9EA"],
+ [0x6261,"C9E6"],
+ [0x6262,"C9E8"],
+ [0x6263,"A6A9"],
+ [0x6264,"C9E5"],
+ [0x6265,"C9EC"],
+ [0x6266,"C9E7"],
+ [0x6268,"9F5A"],
+ [0x626D,"A7E1"],
+ [0x626E,"A7EA"],
+ [0x626F,"A7E8"],
+ [0x6270,"CAF0"],
+ [0x6271,"CAED"],
+ [0x6272,"CAF5"],
+ [0x6273,"A7E6"],
+ [0x6274,"CAF6"],
+ [0x6276,"A7DF"],
+ [0x6277,"CAF3"],
+ [0x6279,"A7E5"],
+ [0x627A,"CAEF"],
+ [0x627B,"CAEE"],
+ [0x627C,"A7E3"],
+ [0x627D,"CAF4"],
+ [0x627E,"A7E4"],
+ [0x627F,"A9D3"],
+ [0x6280,"A7DE"],
+ [0x6281,"CAF1"],
+ [0x6282,"9FF4"],
+ [0x6283,"CAE7"],
+ [0x6284,"A7DB"],
+ [0x6285,"9FBA"],
+ [0x6286,"A7EE"],
+ [0x6287,"CAEC"],
+ [0x6288,"CAF2"],
+ [0x6289,"A7E0"],
+ [0x628A,"A7E2"],
+ [0x628C,"CAE8"],
+ [0x628E,"CAE9"],
+ [0x628F,"CAEA"],
+ [0x6290,"8D7A"],
+ [0x6291,"A7ED"],
+ [0x6292,"A7E7"],
+ [0x6293,"A7EC"],
+ [0x6294,"CAEB"],
+ [0x6295,"A7EB"],
+ [0x6296,"A7DD"],
+ [0x6297,"A7DC"],
+ [0x6298,"A7E9"],
+ [0x629D,"9E45"],
+ [0x62A4,"93B0"],
+ [0x62A6,"A075"],
+ [0x62A8,"A9E1"],
+ [0x62A9,"CCBE"],
+ [0x62AA,"CCB7"],
+ [0x62AB,"A9DC"],
+ [0x62AC,"A9EF"],
+ [0x62AD,"CCB3"],
+ [0x62AE,"CCBA"],
+ [0x62AF,"CCBC"],
+ [0x62B0,"CCBF"],
+ [0x62B1,"A9EA"],
+ [0x62B3,"CCBB"],
+ [0x62B4,"CCB4"],
+ [0x62B5,"A9E8"],
+ [0x62B6,"CCB8"],
+ [0x62B8,"CCC0"],
+ [0x62B9,"A9D9"],
+ [0x62BB,"CCBD"],
+ [0x62BC,"A9E3"],
+ [0x62BD,"A9E2"],
+ [0x62BE,"CCB6"],
+ [0x62BF,"A9D7"],
+ [0x62C1,"87DD"],
+ [0x62C2,"A9D8"],
+ [0x62C3,"9B46"],
+ [0x62C4,"A9D6"],
+ [0x62C5,"FCAE"],
+ [0x62C6,"A9EE"],
+ [0x62C7,"A9E6"],
+ [0x62C8,"A9E0"],
+ [0x62C9,"A9D4"],
+ [0x62CA,"CCB9"],
+ [0x62CB,"A9DF"],
+ [0x62CC,"A9D5"],
+ [0x62CD,"A9E7"],
+ [0x62CE,"A9F0"],
+ [0x62CF,"CED4"],
+ [0x62D0,"A9E4"],
+ [0x62D1,"CCB5"],
+ [0x62D2,"A9DA"],
+ [0x62D3,"A9DD"],
+ [0x62D4,"A9DE"],
+ [0x62D5,"FCB0"],
+ [0x62D6,"A9EC"],
+ [0x62D7,"A9ED"],
+ [0x62D8,"A9EB"],
+ [0x62D9,"A9E5"],
+ [0x62DA,"A9E9"],
+ [0x62DB,"A9DB"],
+ [0x62DC,"ABF4"],
+ [0x62DF,"FA51"],
+ [0x62E5,"8D7B"],
+ [0x62EB,"CEDA"],
+ [0x62EC,"AC41"],
+ [0x62ED,"ABF8"],
+ [0x62EE,"ABFA"],
+ [0x62EF,"AC40"],
+ [0x62F0,"CEE6"],
+ [0x62F1,"ABFD"],
+ [0x62F2,"D1B1"],
+ [0x62F3,"AEB1"],
+ [0x62F4,"AC43"],
+ [0x62F5,"CED7"],
+ [0x62F6,"CEDF"],
+ [0x62F7,"ABFE"],
+ [0x62F8,"CEDE"],
+ [0x62F9,"CEDB"],
+ [0x62FA,"CEE3"],
+ [0x62FB,"CEE5"],
+ [0x62FC,"ABF7"],
+ [0x62FD,"ABFB"],
+ [0x62FE,"AC42"],
+ [0x62FF,"AEB3"],
+ [0x6300,"CEE0"],
+ [0x6301,"ABF9"],
+ [0x6302,"AC45"],
+ [0x6303,"CED9"],
+ [0x6307,"ABFC"],
+ [0x6308,"AEB2"],
+ [0x6309,"ABF6"],
+ [0x630B,"CED6"],
+ [0x630C,"CEDD"],
+ [0x630D,"CED5"],
+ [0x630E,"CED8"],
+ [0x630F,"CEDC"],
+ [0x6310,"D1B2"],
+ [0x6311,"AC44"],
+ [0x6313,"CEE1"],
+ [0x6314,"CEE2"],
+ [0x6315,"CEE4"],
+ [0x6316,"ABF5"],
+ [0x6318,"8D7C"],
+ [0x6328,"AEC1"],
+ [0x6329,"D1BE"],
+ [0x632A,"AEBF"],
+ [0x632B,"AEC0"],
+ [0x632C,"D1B4"],
+ [0x632D,"D1C4"],
+ [0x632E,"9ED6"],
+ [0x632F,"AEB6"],
+ [0x6331,"93AC"],
+ [0x6332,"D566"],
+ [0x6333,"D1C6"],
+ [0x6334,"D1C0"],
+ [0x6335,"9F5B"],
+ [0x6336,"D1B7"],
+ [0x6337,"93A9"],
+ [0x6338,"D1C9"],
+ [0x6339,"D1BA"],
+ [0x633A,"AEBC"],
+ [0x633B,"D57D"],
+ [0x633C,"D1BD"],
+ [0x633D,"AEBE"],
+ [0x633E,"AEB5"],
+ [0x6340,"D1CB"],
+ [0x6341,"D1BF"],
+ [0x6342,"AEB8"],
+ [0x6343,"D1B8"],
+ [0x6344,"D1B5"],
+ [0x6345,"D1B6"],
+ [0x6346,"AEB9"],
+ [0x6347,"D1C5"],
+ [0x6348,"D1CC"],
+ [0x6349,"AEBB"],
+ [0x634A,"D1BC"],
+ [0x634B,"D1BB"],
+ [0x634C,"AEC3"],
+ [0x634D,"AEC2"],
+ [0x634E,"AEB4"],
+ [0x634F,"AEBA"],
+ [0x6350,"AEBD"],
+ [0x6351,"D1C8"],
+ [0x6354,"D1C2"],
+ [0x6355,"AEB7"],
+ [0x6356,"D1B3"],
+ [0x6357,"D1CA"],
+ [0x6358,"D1C1"],
+ [0x6359,"D1C3"],
+ [0x635A,"D1C7"],
+ [0x6364,"A07C"],
+ [0x6365,"D567"],
+ [0x6367,"B1B7"],
+ [0x6368,"B1CB"],
+ [0x6369,"B1CA"],
+ [0x636B,"B1BF"],
+ [0x636C,"FCB2"],
+ [0x636D,"D579"],
+ [0x636E,"D575"],
+ [0x636F,"D572"],
+ [0x6370,"D5A6"],
+ [0x6371,"B1BA"],
+ [0x6372,"B1B2"],
+ [0x6375,"D577"],
+ [0x6376,"B4A8"],
+ [0x6377,"B1B6"],
+ [0x6378,"D5A1"],
+ [0x6379,"8AC1"],
+ [0x637A,"B1CC"],
+ [0x637B,"B1C9"],
+ [0x637C,"D57B"],
+ [0x637D,"D56A"],
+ [0x637F,"9FB4"],
+ [0x6380,"B1C8"],
+ [0x6381,"D5A3"],
+ [0x6382,"D569"],
+ [0x6383,"B1BD"],
+ [0x6384,"B1C1"],
+ [0x6385,"D5A2"],
+ [0x6387,"D573"],
+ [0x6388,"B1C2"],
+ [0x6389,"B1BC"],
+ [0x638A,"D568"],
+ [0x638B,"FCAC"],
+ [0x638C,"B478"],
+ [0x638D,"D5A5"],
+ [0x638E,"D571"],
+ [0x638F,"B1C7"],
+ [0x6390,"D574"],
+ [0x6391,"D5A4"],
+ [0x6392,"B1C6"],
+ [0x6394,"D952"],
+ [0x6396,"B1B3"],
+ [0x6397,"D56F"],
+ [0x6398,"B1B8"],
+ [0x6399,"B1C3"],
+ [0x639B,"B1BE"],
+ [0x639C,"D578"],
+ [0x639D,"D56E"],
+ [0x639E,"D56C"],
+ [0x639F,"D57E"],
+ [0x63A0,"B1B0"],
+ [0x63A1,"B1C4"],
+ [0x63A2,"B1B4"],
+ [0x63A3,"B477"],
+ [0x63A4,"D57C"],
+ [0x63A5,"B1B5"],
+ [0x63A7,"B1B1"],
+ [0x63A8,"B1C0"],
+ [0x63A9,"B1BB"],
+ [0x63AA,"B1B9"],
+ [0x63AB,"D570"],
+ [0x63AC,"B1C5"],
+ [0x63AD,"D56D"],
+ [0x63AE,"D57A"],
+ [0x63AF,"D576"],
+ [0x63B0,"D954"],
+ [0x63B1,"D953"],
+ [0x63B9,"9E4C"],
+ [0x63BD,"D56B"],
+ [0x63BE,"D964"],
+ [0x63C0,"B47A"],
+ [0x63C1,"8FC5"],
+ [0x63C2,"D96A"],
+ [0x63C3,"D959"],
+ [0x63C4,"D967"],
+ [0x63C5,"DD77"],
+ [0x63C6,"B47D"],
+ [0x63C7,"D96B"],
+ [0x63C8,"D96E"],
+ [0x63C9,"B47C"],
+ [0x63CA,"D95C"],
+ [0x63CB,"D96D"],
+ [0x63CC,"D96C"],
+ [0x63CD,"B47E"],
+ [0x63CE,"D955"],
+ [0x63CF,"B479"],
+ [0x63D0,"B4A3"],
+ [0x63D1,"93AD"],
+ [0x63D2,"B4A1"],
+ [0x63D3,"D969"],
+ [0x63D5,"D95F"],
+ [0x63D6,"B4A5"],
+ [0x63D7,"D970"],
+ [0x63D8,"D968"],
+ [0x63D9,"D971"],
+ [0x63DA,"B4AD"],
+ [0x63DB,"B4AB"],
+ [0x63DC,"D966"],
+ [0x63DD,"D965"],
+ [0x63DE,"9DC3"],
+ [0x63DF,"D963"],
+ [0x63E0,"D95D"],
+ [0x63E1,"B4A4"],
+ [0x63E2,"8DA2"],
+ [0x63E3,"B4A2"],
+ [0x63E4,"D1B9"],
+ [0x63E5,"D956"],
+ [0x63E6,"9D4A"],
+ [0x63E7,"DDB7"],
+ [0x63E8,"D957"],
+ [0x63E9,"B47B"],
+ [0x63EA,"B4AA"],
+ [0x63EB,"DD79"],
+ [0x63ED,"B4A6"],
+ [0x63EE,"B4A7"],
+ [0x63EF,"D958"],
+ [0x63F0,"D96F"],
+ [0x63F1,"DD78"],
+ [0x63F2,"D960"],
+ [0x63F3,"D95B"],
+ [0x63F4,"B4A9"],
+ [0x63F5,"D961"],
+ [0x63F6,"D95E"],
+ [0x63F8,"FCB6"],
+ [0x63F9,"B4AE"],
+ [0x63FB,"8DA3"],
+ [0x63FC,"9E4B"],
+ [0x63FE,"9E4D"],
+ [0x6406,"B770"],
+ [0x6407,"8DA4"],
+ [0x6409,"DD7C"],
+ [0x640A,"DDB1"],
+ [0x640B,"DDB6"],
+ [0x640C,"DDAA"],
+ [0x640D,"B76C"],
+ [0x640E,"DDBB"],
+ [0x640F,"B769"],
+ [0x6410,"DD7A"],
+ [0x6412,"DD7B"],
+ [0x6413,"B762"],
+ [0x6414,"B76B"],
+ [0x6415,"DDA4"],
+ [0x6416,"B76E"],
+ [0x6417,"B76F"],
+ [0x6418,"DDA5"],
+ [0x641A,"DDB2"],
+ [0x641B,"DDB8"],
+ [0x641C,"B76A"],
+ [0x641E,"B764"],
+ [0x641F,"DDA3"],
+ [0x6420,"DD7D"],
+ [0x6421,"DDBA"],
+ [0x6422,"DDA8"],
+ [0x6423,"DDA9"],
+ [0x6424,"DD7E"],
+ [0x6425,"DDB4"],
+ [0x6426,"DDAB"],
+ [0x6427,"DDB5"],
+ [0x6428,"DDAD"],
+ [0x642A,"B765"],
+ [0x642B,"E1D9"],
+ [0x642C,"B768"],
+ [0x642D,"B766"],
+ [0x642E,"DDB9"],
+ [0x642F,"DDB0"],
+ [0x6430,"DDAC"],
+ [0x6432,"8AFD"],
+ [0x6433,"DDA1"],
+ [0x6434,"BA53"],
+ [0x6435,"DDAF"],
+ [0x6436,"B76D"],
+ [0x6437,"DDA7"],
+ [0x6438,"FCB5"],
+ [0x6439,"DDA6"],
+ [0x643A,"FCC3"],
+ [0x643B,"93B2"],
+ [0x643D,"B767"],
+ [0x643E,"B763"],
+ [0x643F,"E1EE"],
+ [0x6440,"DDB3"],
+ [0x6441,"DDAE"],
+ [0x6443,"DDA2"],
+ [0x644B,"E1E9"],
+ [0x644D,"E1DA"],
+ [0x644E,"E1E5"],
+ [0x6450,"E1EC"],
+ [0x6451,"BA51"],
+ [0x6452,"B4AC"],
+ [0x6453,"E1EA"],
+ [0x6454,"BA4C"],
+ [0x6458,"BA4B"],
+ [0x6459,"E1F1"],
+ [0x645A,"8DA5"],
+ [0x645B,"E1DB"],
+ [0x645C,"E1E8"],
+ [0x645D,"E1DC"],
+ [0x645E,"E1E7"],
+ [0x645F,"BA4F"],
+ [0x6460,"E1EB"],
+ [0x6461,"D962"],
+ [0x6465,"E1F2"],
+ [0x6466,"E1E3"],
+ [0x6467,"BA52"],
+ [0x6468,"E5BA"],
+ [0x6469,"BCAF"],
+ [0x646B,"E1F0"],
+ [0x646C,"E1EF"],
+ [0x646D,"BA54"],
+ [0x646E,"E5AD"],
+ [0x646F,"BCB0"],
+ [0x6470,"E5AE"],
+ [0x6471,"93A1"],
+ [0x6472,"E1DF"],
+ [0x6473,"E1E0"],
+ [0x6474,"E1DD"],
+ [0x6475,"E1E2"],
+ [0x6476,"E1DE"],
+ [0x6477,"E1F3"],
+ [0x6478,"BA4E"],
+ [0x6479,"BCB1"],
+ [0x647A,"BA50"],
+ [0x647B,"BA55"],
+ [0x647C,"8AC6"],
+ [0x647D,"E1E1"],
+ [0x647F,"E1ED"],
+ [0x6482,"E1E6"],
+ [0x6485,"E5B1"],
+ [0x6487,"BA4A"],
+ [0x6488,"BCB4"],
+ [0x6489,"E9AA"],
+ [0x648A,"E5B6"],
+ [0x648B,"E5B5"],
+ [0x648C,"E5B7"],
+ [0x648D,"8A5B"],
+ [0x648F,"E5B4"],
+ [0x6490,"BCB5"],
+ [0x6491,"894D"],
+ [0x6492,"BCBB"],
+ [0x6493,"BCB8"],
+ [0x6495,"BCB9"],
+ [0x6496,"E5AF"],
+ [0x6497,"E5B2"],
+ [0x6498,"E5BC"],
+ [0x6499,"BCC1"],
+ [0x649A,"BCBF"],
+ [0x649C,"E5B3"],
+ [0x649D,"D95A"],
+ [0x649E,"BCB2"],
+ [0x649F,"E5B9"],
+ [0x64A0,"E5B0"],
+ [0x64A2,"BCC2"],
+ [0x64A3,"E5B8"],
+ [0x64A4,"BA4D"],
+ [0x64A5,"BCB7"],
+ [0x64A6,"E1E4"],
+ [0x64A9,"BCBA"],
+ [0x64AB,"BCBE"],
+ [0x64AC,"BCC0"],
+ [0x64AD,"BCBD"],
+ [0x64AE,"BCBC"],
+ [0x64AF,"FED4"],
+ [0x64B0,"BCB6"],
+ [0x64B1,"E5BB"],
+ [0x64B2,"BCB3"],
+ [0x64B3,"BCC3"],
+ [0x64B4,"8A78"],
+ [0x64B6,"93AB"],
+ [0x64BB,"BED8"],
+ [0x64BC,"BED9"],
+ [0x64BD,"E9A9"],
+ [0x64BE,"BEE2"],
+ [0x64BF,"BEDF"],
+ [0x64C0,"8DA7"],
+ [0x64C1,"BED6"],
+ [0x64C2,"BEDD"],
+ [0x64C3,"E9AB"],
+ [0x64C4,"BEDB"],
+ [0x64C5,"BED5"],
+ [0x64C7,"BEDC"],
+ [0x64C9,"E9A8"],
+ [0x64CA,"C0BB"],
+ [0x64CB,"BED7"],
+ [0x64CD,"BEDE"],
+ [0x64CE,"C0BA"],
+ [0x64CF,"E9A7"],
+ [0x64D0,"E9A6"],
+ [0x64D2,"BEE0"],
+ [0x64D3,"9F45"],
+ [0x64D4,"BEE1"],
+ [0x64D6,"E9A5"],
+ [0x64D7,"E9A4"],
+ [0x64D8,"C0BC"],
+ [0x64D9,"E9AE"],
+ [0x64DA,"BEDA"],
+ [0x64DB,"E9AC"],
+ [0x64DD,"8A56"],
+ [0x64E0,"C0BD"],
+ [0x64E1,"FCBF"],
+ [0x64E2,"C0C2"],
+ [0x64E3,"ECEA"],
+ [0x64E4,"ECEC"],
+ [0x64E5,"FCC0"],
+ [0x64E6,"C0BF"],
+ [0x64E7,"8EE6"],
+ [0x64E8,"ECED"],
+ [0x64E9,"ECE9"],
+ [0x64EA,"8AA4"],
+ [0x64EB,"ECEB"],
+ [0x64EC,"C0C0"],
+ [0x64ED,"C0C3"],
+ [0x64EF,"ECE8"],
+ [0x64F0,"C0BE"],
+ [0x64F1,"C0C1"],
+ [0x64F2,"C259"],
+ [0x64F3,"E9AD"],
+ [0x64F4,"C258"],
+ [0x64F7,"C25E"],
+ [0x64F8,"EFD4"],
+ [0x64FA,"C25C"],
+ [0x64FB,"C25D"],
+ [0x64FC,"EFD7"],
+ [0x64FD,"EFD3"],
+ [0x64FE,"C25A"],
+ [0x64FF,"EFD1"],
+ [0x6500,"C36B"],
+ [0x6501,"EFD5"],
+ [0x6503,"EFD6"],
+ [0x6504,"EFD2"],
+ [0x6506,"C25B"],
+ [0x6507,"F242"],
+ [0x6509,"F245"],
+ [0x650A,"8943"],
+ [0x650C,"F246"],
+ [0x650D,"F244"],
+ [0x650E,"F247"],
+ [0x650F,"C36C"],
+ [0x6510,"F243"],
+ [0x6511,"93F3"],
+ [0x6513,"F44E"],
+ [0x6514,"C464"],
+ [0x6515,"F44D"],
+ [0x6516,"F44C"],
+ [0x6517,"F44B"],
+ [0x6518,"C463"],
+ [0x6519,"C465"],
+ [0x651B,"F5CD"],
+ [0x651C,"C4E2"],
+ [0x651D,"C4E1"],
+ [0x651E,"FCAB"],
+ [0x651F,"9EA2"],
+ [0x6520,"F6E1"],
+ [0x6521,"F6E0"],
+ [0x6522,"F6E3"],
+ [0x6523,"C5CB"],
+ [0x6524,"C575"],
+ [0x6525,"F7DD"],
+ [0x6526,"F6E2"],
+ [0x6529,"F7DC"],
+ [0x652A,"C5CD"],
+ [0x652B,"C5CC"],
+ [0x652C,"C5F3"],
+ [0x652D,"F8A9"],
+ [0x652E,"F8EF"],
+ [0x652F,"A4E4"],
+ [0x6530,"9DC7"],
+ [0x6532,"D972"],
+ [0x6533,"E9AF"],
+ [0x6534,"C6D2"],
+ [0x6535,"8BCE"],
+ [0x6536,"A6AC"],
+ [0x6537,"CAF7"],
+ [0x6538,"A7F1"],
+ [0x6539,"A7EF"],
+ [0x653B,"A7F0"],
+ [0x653D,"CCC1"],
+ [0x653E,"A9F1"],
+ [0x653F,"AC46"],
+ [0x6541,"CEE7"],
+ [0x6543,"CEE8"],
+ [0x6545,"AC47"],
+ [0x6546,"D1CE"],
+ [0x6548,"AEC4"],
+ [0x6549,"AEC5"],
+ [0x654A,"D1CD"],
+ [0x654D,"FCC5"],
+ [0x654F,"B1D3"],
+ [0x6551,"B1CF"],
+ [0x6553,"D5A7"],
+ [0x6554,"B1D6"],
+ [0x6555,"B1D5"],
+ [0x6556,"B1CE"],
+ [0x6557,"B1D1"],
+ [0x6558,"B1D4"],
+ [0x6559,"B1D0"],
+ [0x655C,"D976"],
+ [0x655D,"B1CD"],
+ [0x655E,"B4AF"],
+ [0x655F,"FCCB"],
+ [0x6562,"B4B1"],
+ [0x6563,"B4B2"],
+ [0x6564,"D975"],
+ [0x6565,"D978"],
+ [0x6566,"B4B0"],
+ [0x6567,"D973"],
+ [0x6568,"D977"],
+ [0x656A,"D974"],
+ [0x656B,"93B3"],
+ [0x656C,"B771"],
+ [0x656D,"FCCA"],
+ [0x656F,"DDBC"],
+ [0x6572,"BA56"],
+ [0x6573,"E1F4"],
+ [0x6574,"BEE3"],
+ [0x6575,"BCC4"],
+ [0x6576,"E5BD"],
+ [0x6577,"BCC5"],
+ [0x6578,"BCC6"],
+ [0x6579,"E5BF"],
+ [0x657A,"E5BE"],
+ [0x657B,"E5C0"],
+ [0x657C,"E9B1"],
+ [0x657F,"E9B0"],
+ [0x6580,"ECEF"],
+ [0x6581,"ECEE"],
+ [0x6582,"C0C4"],
+ [0x6583,"C0C5"],
+ [0x6584,"F248"],
+ [0x6585,"FCC9"],
+ [0x6586,"8DAC"],
+ [0x6587,"A4E5"],
+ [0x6588,"FBC6"],
+ [0x6589,"8967"],
+ [0x658B,"8C7E"],
+ [0x658C,"D979"],
+ [0x6590,"B4B4"],
+ [0x6591,"B4B3"],
+ [0x6592,"DDBD"],
+ [0x6594,"EFD8"],
+ [0x6595,"C4E3"],
+ [0x6596,"F7DE"],
+ [0x6597,"A4E6"],
+ [0x6599,"AEC6"],
+ [0x659B,"B1D8"],
+ [0x659C,"B1D7"],
+ [0x659D,"D97A"],
+ [0x659E,"D97B"],
+ [0x659F,"B772"],
+ [0x65A0,"E1F5"],
+ [0x65A1,"BA57"],
+ [0x65A2,"E9B2"],
+ [0x65A4,"A4E7"],
+ [0x65A5,"A5B8"],
+ [0x65A7,"A9F2"],
+ [0x65A8,"CCC2"],
+ [0x65AA,"CEE9"],
+ [0x65AB,"AC48"],
+ [0x65AC,"B1D9"],
+ [0x65AE,"D97C"],
+ [0x65AF,"B4B5"],
+ [0x65B0,"B773"],
+ [0x65B2,"E5C1"],
+ [0x65B3,"E5C2"],
+ [0x65B5,"FCCD"],
+ [0x65B6,"ECF0"],
+ [0x65B7,"C25F"],
+ [0x65B8,"F8F0"],
+ [0x65B9,"A4E8"],
+ [0x65BB,"CCC3"],
+ [0x65BC,"A9F3"],
+ [0x65BD,"AC49"],
+ [0x65BE,"9CF3"],
+ [0x65BF,"CEEA"],
+ [0x65C1,"AEC7"],
+ [0x65C2,"D1D2"],
+ [0x65C3,"D1D0"],
+ [0x65C4,"D1D1"],
+ [0x65C5,"AEC8"],
+ [0x65C6,"D1CF"],
+ [0x65CB,"B1DB"],
+ [0x65CC,"B1DC"],
+ [0x65CD,"D5A8"],
+ [0x65CE,"B1DD"],
+ [0x65CF,"B1DA"],
+ [0x65D0,"D97D"],
+ [0x65D1,"FCD0"],
+ [0x65D2,"D97E"],
+ [0x65D3,"DDBE"],
+ [0x65D4,"95BB"],
+ [0x65D6,"BA59"],
+ [0x65D7,"BA58"],
+ [0x65DA,"ECF1"],
+ [0x65DB,"EFD9"],
+ [0x65DD,"F24A"],
+ [0x65DE,"F249"],
+ [0x65DF,"F44F"],
+ [0x65E0,"FCD3"],
+ [0x65E1,"C95E"],
+ [0x65E2,"AC4A"],
+ [0x65E3,"FCD4"],
+ [0x65E5,"A4E9"],
+ [0x65E6,"A5B9"],
+ [0x65E8,"A6AE"],
+ [0x65E9,"A6AD"],
+ [0x65EC,"A6AF"],
+ [0x65ED,"A6B0"],
+ [0x65EE,"C9EE"],
+ [0x65EF,"C9ED"],
+ [0x65F0,"CAF8"],
+ [0x65F1,"A7F2"],
+ [0x65F2,"CAFB"],
+ [0x65F3,"CAFA"],
+ [0x65F4,"CAF9"],
+ [0x65F5,"CAFC"],
+ [0x65FA,"A9F4"],
+ [0x65FB,"CCC9"],
+ [0x65FC,"CCC5"],
+ [0x65FD,"CCCE"],
+ [0x65FF,"8DAE"],
+ [0x6600,"A9FB"],
+ [0x6602,"A9F9"],
+ [0x6603,"CCCA"],
+ [0x6604,"CCC6"],
+ [0x6605,"CCCD"],
+ [0x6606,"A9F8"],
+ [0x6607,"AA40"],
+ [0x6608,"CCC8"],
+ [0x6609,"CCC4"],
+ [0x660A,"A9FE"],
+ [0x660B,"CCCB"],
+ [0x660C,"A9F7"],
+ [0x660D,"CCCC"],
+ [0x660E,"A9FA"],
+ [0x660F,"A9FC"],
+ [0x6610,"CCD0"],
+ [0x6611,"CCCF"],
+ [0x6612,"CCC7"],
+ [0x6613,"A9F6"],
+ [0x6614,"A9F5"],
+ [0x6615,"A9FD"],
+ [0x6618,"FCD7"],
+ [0x661C,"CEEF"],
+ [0x661D,"CEF5"],
+ [0x661E,"93DB"],
+ [0x661F,"AC50"],
+ [0x6620,"AC4D"],
+ [0x6621,"CEEC"],
+ [0x6622,"CEF1"],
+ [0x6623,"FE63"],
+ [0x6624,"AC53"],
+ [0x6625,"AC4B"],
+ [0x6626,"CEF0"],
+ [0x6627,"AC4E"],
+ [0x6628,"AC51"],
+ [0x662B,"CEF3"],
+ [0x662D,"AC4C"],
+ [0x662E,"CEF8"],
+ [0x662F,"AC4F"],
+ [0x6630,"93D5"],
+ [0x6631,"AC52"],
+ [0x6632,"CEED"],
+ [0x6633,"CEF2"],
+ [0x6634,"CEF6"],
+ [0x6635,"CEEE"],
+ [0x6636,"CEEB"],
+ [0x6639,"CEF7"],
+ [0x663A,"CEF4"],
+ [0x6641,"AED0"],
+ [0x6642,"AEC9"],
+ [0x6643,"AECC"],
+ [0x6644,"FCDA"],
+ [0x6645,"AECF"],
+ [0x6647,"D1D5"],
+ [0x6648,"9B71"],
+ [0x6649,"AECA"],
+ [0x664A,"D1D3"],
+ [0x664B,"FCDD"],
+ [0x664C,"AECE"],
+ [0x664D,"8764"],
+ [0x664F,"AECB"],
+ [0x6651,"D1D6"],
+ [0x6652,"AECD"],
+ [0x6653,"8DAF"],
+ [0x6657,"FAF2"],
+ [0x6659,"D5AC"],
+ [0x665A,"B1DF"],
+ [0x665B,"D5AB"],
+ [0x665C,"D5AD"],
+ [0x665D,"B1DE"],
+ [0x665E,"B1E3"],
+ [0x665F,"D1D4"],
+ [0x6660,"87B5"],
+ [0x6661,"D5AA"],
+ [0x6662,"D5AE"],
+ [0x6663,"93D8"],
+ [0x6664,"B1E0"],
+ [0x6665,"D5A9"],
+ [0x6666,"B1E2"],
+ [0x6667,"FCDF"],
+ [0x6668,"B1E1"],
+ [0x666A,"D9A7"],
+ [0x666B,"93D3"],
+ [0x666C,"D9A2"],
+ [0x666E,"B4B6"],
+ [0x666F,"B4BA"],
+ [0x6670,"B4B7"],
+ [0x6671,"D9A5"],
+ [0x6672,"D9A8"],
+ [0x6673,"FCE1"],
+ [0x6674,"B4B8"],
+ [0x6676,"B4B9"],
+ [0x6677,"B4BE"],
+ [0x6678,"DDC7"],
+ [0x6679,"D9A6"],
+ [0x667A,"B4BC"],
+ [0x667B,"D9A3"],
+ [0x667C,"D9A1"],
+ [0x667D,"8E76"],
+ [0x667E,"B4BD"],
+ [0x6680,"D9A4"],
+ [0x6684,"B779"],
+ [0x6685,"FC62"],
+ [0x6686,"DDBF"],
+ [0x6687,"B776"],
+ [0x6688,"B777"],
+ [0x6689,"B775"],
+ [0x668A,"DDC4"],
+ [0x668B,"DDC3"],
+ [0x668C,"DDC0"],
+ [0x668D,"B77B"],
+ [0x668E,"93D1"],
+ [0x6690,"DDC2"],
+ [0x6691,"B4BB"],
+ [0x6692,"8DB1"],
+ [0x6694,"DDC6"],
+ [0x6695,"DDC1"],
+ [0x6696,"B778"],
+ [0x6697,"B774"],
+ [0x6698,"B77A"],
+ [0x6699,"DDC5"],
+ [0x669A,"9859"],
+ [0x669D,"BA5C"],
+ [0x669F,"E1F8"],
+ [0x66A0,"E1F7"],
+ [0x66A1,"E1F6"],
+ [0x66A2,"BA5A"],
+ [0x66A4,"FB52"],
+ [0x66A8,"BA5B"],
+ [0x66A9,"E5C5"],
+ [0x66AA,"E5C8"],
+ [0x66AB,"BCC8"],
+ [0x66AD,"FB53"],
+ [0x66AE,"BCC7"],
+ [0x66AF,"E5C9"],
+ [0x66B0,"E5C4"],
+ [0x66B1,"BCCA"],
+ [0x66B2,"E5C6"],
+ [0x66B3,"FB4D"],
+ [0x66B4,"BCC9"],
+ [0x66B5,"E5C3"],
+ [0x66B6,"9CBF"],
+ [0x66B7,"E5C7"],
+ [0x66B8,"BEE9"],
+ [0x66B9,"BEE6"],
+ [0x66BA,"E9BB"],
+ [0x66BB,"E9BA"],
+ [0x66BD,"E9B9"],
+ [0x66BE,"E9B4"],
+ [0x66BF,"9B72"],
+ [0x66C0,"E9B5"],
+ [0x66C4,"BEE7"],
+ [0x66C6,"BEE4"],
+ [0x66C7,"BEE8"],
+ [0x66C8,"E9B3"],
+ [0x66C9,"BEE5"],
+ [0x66CA,"E9B6"],
+ [0x66CB,"E9B7"],
+ [0x66CC,"E9BC"],
+ [0x66CD,"FB50"],
+ [0x66CE,"93BE"],
+ [0x66CF,"E9B8"],
+ [0x66D2,"ECF2"],
+ [0x66D6,"C0C7"],
+ [0x66D8,"EFDC"],
+ [0x66D9,"C0C6"],
+ [0x66DA,"EFDA"],
+ [0x66DB,"EFDB"],
+ [0x66DC,"C260"],
+ [0x66DD,"C36E"],
+ [0x66DE,"F24B"],
+ [0x66E0,"C36D"],
+ [0x66E3,"F451"],
+ [0x66E4,"F452"],
+ [0x66E6,"C466"],
+ [0x66E7,"8CDB"],
+ [0x66E8,"F450"],
+ [0x66E9,"C4E4"],
+ [0x66EB,"F7DF"],
+ [0x66EC,"C5CE"],
+ [0x66ED,"F8AA"],
+ [0x66EE,"F8AB"],
+ [0x66F0,"A4EA"],
+ [0x66F1,"9DF1"],
+ [0x66F2,"A6B1"],
+ [0x66F3,"A6B2"],
+ [0x66F4,"A7F3"],
+ [0x66F6,"CCD1"],
+ [0x66F7,"AC54"],
+ [0x66F8,"AED1"],
+ [0x66F9,"B1E4"],
+ [0x66FC,"B0D2"],
+ [0x66FE,"B4BF"],
+ [0x66FF,"B4C0"],
+ [0x6700,"B3CC"],
+ [0x6701,"D9A9"],
+ [0x6702,"FCEB"],
+ [0x6703,"B77C"],
+ [0x6704,"E1FA"],
+ [0x6705,"E1F9"],
+ [0x6708,"A4EB"],
+ [0x6709,"A6B3"],
+ [0x670A,"CCD2"],
+ [0x670B,"AA42"],
+ [0x670C,"A0BB"],
+ [0x670D,"AA41"],
+ [0x670E,"9B7E"],
+ [0x670F,"CEF9"],
+ [0x6710,"CEFA"],
+ [0x6712,"D1D7"],
+ [0x6713,"D1D8"],
+ [0x6714,"AED2"],
+ [0x6715,"AED3"],
+ [0x6716,"8DB3"],
+ [0x6717,"AED4"],
+ [0x6718,"D5AF"],
+ [0x6719,"8C52"],
+ [0x671B,"B1E6"],
+ [0x671D,"B4C2"],
+ [0x671E,"9AE8"],
+ [0x671F,"B4C1"],
+ [0x6720,"DDC8"],
+ [0x6721,"DF7A"],
+ [0x6722,"E1FB"],
+ [0x6723,"E9BD"],
+ [0x6725,"8EDC"],
+ [0x6726,"C261"],
+ [0x6727,"C467"],
+ [0x6728,"A4EC"],
+ [0x672A,"A5BC"],
+ [0x672B,"A5BD"],
+ [0x672C,"A5BB"],
+ [0x672D,"A5BE"],
+ [0x672E,"A5BA"],
+ [0x6731,"A6B6"],
+ [0x6733,"C9F6"],
+ [0x6734,"A6B5"],
+ [0x6735,"A6B7"],
+ [0x6736,"9CF9"],
+ [0x6738,"C9F1"],
+ [0x6739,"C9F0"],
+ [0x673A,"C9F3"],
+ [0x673B,"C9F2"],
+ [0x673C,"C9F5"],
+ [0x673D,"A6B4"],
+ [0x673E,"C9EF"],
+ [0x673F,"C9F4"],
+ [0x6744,"FA50"],
+ [0x6745,"CAFD"],
+ [0x6746,"A7FD"],
+ [0x6747,"CAFE"],
+ [0x6748,"CB43"],
+ [0x6749,"A7FC"],
+ [0x674B,"CB47"],
+ [0x674C,"CB42"],
+ [0x674D,"CB45"],
+ [0x674E,"A7F5"],
+ [0x674F,"A7F6"],
+ [0x6750,"A7F7"],
+ [0x6751,"A7F8"],
+ [0x6753,"A840"],
+ [0x6755,"CB41"],
+ [0x6756,"A7FA"],
+ [0x6757,"A841"],
+ [0x6759,"CB40"],
+ [0x675A,"CB46"],
+ [0x675C,"A7F9"],
+ [0x675D,"CB44"],
+ [0x675E,"A7FB"],
+ [0x675F,"A7F4"],
+ [0x6760,"A7FE"],
+ [0x6761,"98E7"],
+ [0x6762,"FCF3"],
+ [0x6767,"FCF2"],
+ [0x676A,"AA57"],
+ [0x676B,"8CCA"],
+ [0x676C,"CCD4"],
+ [0x676D,"AA43"],
+ [0x676E,"8775"],
+ [0x676F,"AA4D"],
+ [0x6770,"AA4E"],
+ [0x6771,"AA46"],
+ [0x6772,"AA58"],
+ [0x6773,"AA48"],
+ [0x6774,"CCDC"],
+ [0x6775,"AA53"],
+ [0x6776,"CCD7"],
+ [0x6777,"AA49"],
+ [0x6778,"CCE6"],
+ [0x6779,"CCE7"],
+ [0x677A,"CCDF"],
+ [0x677B,"CCD8"],
+ [0x677C,"AA56"],
+ [0x677D,"CCE4"],
+ [0x677E,"AA51"],
+ [0x677F,"AA4F"],
+ [0x6781,"CCE5"],
+ [0x6782,"87BA"],
+ [0x6783,"CCE3"],
+ [0x6784,"CCDB"],
+ [0x6785,"CCD3"],
+ [0x6786,"CCDA"],
+ [0x6787,"AA4A"],
+ [0x6789,"AA50"],
+ [0x678B,"AA44"],
+ [0x678C,"CCDE"],
+ [0x678D,"CCDD"],
+ [0x678E,"CCD5"],
+ [0x678F,"93E5"],
+ [0x6790,"AA52"],
+ [0x6791,"CCE1"],
+ [0x6792,"CCD6"],
+ [0x6793,"AA55"],
+ [0x6794,"CCE8"],
+ [0x6795,"AA45"],
+ [0x6797,"AA4C"],
+ [0x6798,"CCD9"],
+ [0x6799,"CCE2"],
+ [0x679A,"AA54"],
+ [0x679C,"AA47"],
+ [0x679D,"AA4B"],
+ [0x679F,"CCE0"],
+ [0x67A0,"9A59"],
+ [0x67A4,"8DB5"],
+ [0x67AC,"FD4D"],
+ [0x67AE,"CF5B"],
+ [0x67AF,"AC5C"],
+ [0x67B0,"AC69"],
+ [0x67B1,"FD5E"],
+ [0x67B2,"CF56"],
+ [0x67B3,"CF4C"],
+ [0x67B4,"AC62"],
+ [0x67B5,"CF4A"],
+ [0x67B6,"AC5B"],
+ [0x67B7,"CF45"],
+ [0x67B8,"AC65"],
+ [0x67B9,"CF52"],
+ [0x67BA,"CEFE"],
+ [0x67BB,"CF41"],
+ [0x67BF,"8F7D"],
+ [0x67C0,"CF44"],
+ [0x67C1,"CEFB"],
+ [0x67C2,"CF51"],
+ [0x67C3,"CF61"],
+ [0x67C4,"AC60"],
+ [0x67C5,"CF46"],
+ [0x67C6,"CF58"],
+ [0x67C8,"CEFD"],
+ [0x67C9,"CF5F"],
+ [0x67CA,"CF60"],
+ [0x67CB,"CF63"],
+ [0x67CC,"CF5A"],
+ [0x67CD,"CF4B"],
+ [0x67CE,"CF53"],
+ [0x67CF,"AC66"],
+ [0x67D0,"AC59"],
+ [0x67D1,"AC61"],
+ [0x67D2,"AC6D"],
+ [0x67D3,"AC56"],
+ [0x67D4,"AC58"],
+ [0x67D6,"9547"],
+ [0x67D7,"FCF6"],
+ [0x67D8,"CF43"],
+ [0x67D9,"AC6A"],
+ [0x67DA,"AC63"],
+ [0x67DB,"CF5D"],
+ [0x67DC,"CF40"],
+ [0x67DD,"AC6C"],
+ [0x67DE,"AC67"],
+ [0x67DF,"CF49"],
+ [0x67E2,"AC6B"],
+ [0x67E3,"CF50"],
+ [0x67E4,"CF48"],
+ [0x67E5,"AC64"],
+ [0x67E6,"CF5C"],
+ [0x67E7,"CF54"],
+ [0x67E9,"AC5E"],
+ [0x67EA,"CF62"],
+ [0x67EB,"CF47"],
+ [0x67EC,"AC5A"],
+ [0x67ED,"CF59"],
+ [0x67EE,"CF4F"],
+ [0x67EF,"AC5F"],
+ [0x67F0,"CF55"],
+ [0x67F1,"AC57"],
+ [0x67F2,"CEFC"],
+ [0x67F3,"AC68"],
+ [0x67F4,"AEE3"],
+ [0x67F5,"AC5D"],
+ [0x67F6,"CF4E"],
+ [0x67F7,"CF4D"],
+ [0x67F8,"CF42"],
+ [0x67F9,"9250"],
+ [0x67FA,"CF5E"],
+ [0x67FC,"CF57"],
+ [0x67FE,"8968"],
+ [0x67FF,"AC55"],
+ [0x6800,"8DB6"],
+ [0x6801,"FCFB"],
+ [0x6802,"A07D"],
+ [0x6803,"98FC"],
+ [0x6804,"8969"],
+ [0x680D,"FE4F"],
+ [0x6810,"9256"],
+ [0x6812,"D1EC"],
+ [0x6813,"AEEA"],
+ [0x6814,"D1ED"],
+ [0x6816,"D1E1"],
+ [0x6817,"AEDF"],
+ [0x6818,"AEEB"],
+ [0x681A,"D1DA"],
+ [0x681B,"FAC9"],
+ [0x681C,"D1E3"],
+ [0x681D,"D1EB"],
+ [0x681E,"93E8"],
+ [0x681F,"D1D9"],
+ [0x6820,"D1F4"],
+ [0x6821,"AED5"],
+ [0x6822,"FCF8"],
+ [0x6825,"D1F3"],
+ [0x6826,"D1EE"],
+ [0x6828,"D1EF"],
+ [0x6829,"AEDD"],
+ [0x682A,"AEE8"],
+ [0x682B,"D1E5"],
+ [0x682D,"D1E6"],
+ [0x682E,"D1F0"],
+ [0x682F,"D1E7"],
+ [0x6831,"D1E2"],
+ [0x6832,"D1DC"],
+ [0x6833,"D1DD"],
+ [0x6834,"D1EA"],
+ [0x6835,"D1E4"],
+ [0x6836,"9CE3"],
+ [0x6837,"FDA9"],
+ [0x6838,"AED6"],
+ [0x6839,"AEDA"],
+ [0x683A,"D1F2"],
+ [0x683B,"D1DE"],
+ [0x683C,"AEE6"],
+ [0x683D,"AEE2"],
+ [0x683E,"FC44"],
+ [0x6840,"AEE5"],
+ [0x6841,"AEEC"],
+ [0x6842,"AEDB"],
+ [0x6843,"AEE7"],
+ [0x6844,"D1E9"],
+ [0x6845,"AEE9"],
+ [0x6846,"AED8"],
+ [0x6847,"9640"],
+ [0x6848,"AED7"],
+ [0x6849,"D1DB"],
+ [0x684A,"8DB8"],
+ [0x684B,"D1DF"],
+ [0x684C,"AEE0"],
+ [0x684D,"D1F1"],
+ [0x684E,"D1E8"],
+ [0x684F,"D1E0"],
+ [0x6850,"AEE4"],
+ [0x6851,"AEE1"],
+ [0x6853,"AED9"],
+ [0x6854,"AEDC"],
+ [0x6855,"9B4A"],
+ [0x6856,"8FB9"],
+ [0x685D,"FCFE"],
+ [0x6865,"896A"],
+ [0x686B,"D5C4"],
+ [0x686D,"D5B4"],
+ [0x686E,"D5B5"],
+ [0x686F,"D5B9"],
+ [0x6871,"D5C8"],
+ [0x6872,"D5C5"],
+ [0x6874,"D5BE"],
+ [0x6875,"D5BD"],
+ [0x6876,"B1ED"],
+ [0x6877,"D5C1"],
+ [0x6878,"D5D0"],
+ [0x6879,"D5B0"],
+ [0x687B,"D5D1"],
+ [0x687C,"D5C3"],
+ [0x687D,"D5D5"],
+ [0x687E,"D5C9"],
+ [0x687F,"B1EC"],
+ [0x6880,"D5C7"],
+ [0x6881,"B1E7"],
+ [0x6882,"B1FC"],
+ [0x6883,"B1F2"],
+ [0x6884,"8DB9"],
+ [0x6885,"B1F6"],
+ [0x6886,"B1F5"],
+ [0x6887,"D5B1"],
+ [0x6888,"917E"],
+ [0x6889,"D5CE"],
+ [0x688A,"D5D4"],
+ [0x688B,"D5CC"],
+ [0x688C,"D5D3"],
+ [0x688F,"D5C0"],
+ [0x6890,"D5B2"],
+ [0x6891,"D5D2"],
+ [0x6892,"D5C2"],
+ [0x6893,"B1EA"],
+ [0x6894,"B1F7"],
+ [0x6896,"D5CB"],
+ [0x6897,"B1F0"],
+ [0x6898,"93F4"],
+ [0x689B,"D5CA"],
+ [0x689C,"D5B3"],
+ [0x689D,"B1F8"],
+ [0x689F,"B1FA"],
+ [0x68A0,"D5CD"],
+ [0x68A1,"B1FB"],
+ [0x68A2,"B1E9"],
+ [0x68A3,"D5BA"],
+ [0x68A4,"D5CF"],
+ [0x68A6,"FB7C"],
+ [0x68A7,"B1EF"],
+ [0x68A8,"B1F9"],
+ [0x68A9,"D5BC"],
+ [0x68AA,"D5C6"],
+ [0x68AB,"D5B7"],
+ [0x68AC,"D5BB"],
+ [0x68AD,"B1F4"],
+ [0x68AE,"D5B6"],
+ [0x68AF,"B1E8"],
+ [0x68B0,"B1F1"],
+ [0x68B1,"B1EE"],
+ [0x68B2,"D5BF"],
+ [0x68B3,"AEDE"],
+ [0x68B4,"D9C0"],
+ [0x68B5,"B1EB"],
+ [0x68B6,"93E7"],
+ [0x68B9,"97EF"],
+ [0x68BD,"FE4A"],
+ [0x68C3,"FD45"],
+ [0x68C4,"B1F3"],
+ [0x68C5,"96A5"],
+ [0x68C6,"D9C3"],
+ [0x68C7,"D9D9"],
+ [0x68C8,"D9CE"],
+ [0x68C9,"B4D6"],
+ [0x68CA,"FEE0"],
+ [0x68CB,"B4D1"],
+ [0x68CC,"D9BD"],
+ [0x68CD,"B4D2"],
+ [0x68CE,"D9CD"],
+ [0x68D0,"D9C6"],
+ [0x68D1,"D9D3"],
+ [0x68D2,"B4CE"],
+ [0x68D3,"D9AB"],
+ [0x68D4,"D9D5"],
+ [0x68D5,"B4C4"],
+ [0x68D6,"D9B3"],
+ [0x68D7,"B4C7"],
+ [0x68D8,"B4C6"],
+ [0x68DA,"B4D7"],
+ [0x68DC,"D9AD"],
+ [0x68DD,"D9CF"],
+ [0x68DE,"D9D0"],
+ [0x68DF,"B4C9"],
+ [0x68E0,"B4C5"],
+ [0x68E1,"D9BB"],
+ [0x68E3,"B4D0"],
+ [0x68E4,"D9B6"],
+ [0x68E6,"D9D1"],
+ [0x68E7,"B4CC"],
+ [0x68E8,"D9C9"],
+ [0x68E9,"D9D6"],
+ [0x68EA,"D9B0"],
+ [0x68EB,"D9B5"],
+ [0x68EC,"D9AF"],
+ [0x68EE,"B4CB"],
+ [0x68EF,"D9C2"],
+ [0x68F0,"DDDE"],
+ [0x68F1,"D9B1"],
+ [0x68F2,"B4CF"],
+ [0x68F3,"D9BA"],
+ [0x68F4,"D9D2"],
+ [0x68F5,"B4CA"],
+ [0x68F6,"D9B7"],
+ [0x68F7,"D9B4"],
+ [0x68F8,"D9C5"],
+ [0x68F9,"B4CD"],
+ [0x68FA,"B4C3"],
+ [0x68FB,"B4D9"],
+ [0x68FC,"D9C8"],
+ [0x68FD,"D9C7"],
+ [0x6900,"FD48"],
+ [0x6901,"FD47"],
+ [0x6902,"FEF2"],
+ [0x6903,"FE6A"],
+ [0x6904,"D9AC"],
+ [0x6905,"B4C8"],
+ [0x6906,"D9D4"],
+ [0x6907,"D9BC"],
+ [0x6908,"D9BE"],
+ [0x6909,"8DBD"],
+ [0x690A,"D9CB"],
+ [0x690B,"D9CA"],
+ [0x690C,"D9AA"],
+ [0x690D,"B4D3"],
+ [0x690E,"B4D5"],
+ [0x690F,"D9B2"],
+ [0x6910,"D9B9"],
+ [0x6911,"D9C1"],
+ [0x6912,"B4D4"],
+ [0x6913,"D9B8"],
+ [0x6914,"D9C4"],
+ [0x6915,"D9D7"],
+ [0x6917,"D9CC"],
+ [0x6918,"9BA1"],
+ [0x6919,"8CA2"],
+ [0x691A,"9AB7"],
+ [0x691B,"8EFC"],
+ [0x6925,"D9D8"],
+ [0x692A,"D9AE"],
+ [0x692C,"9FA1"],
+ [0x692F,"DDF2"],
+ [0x6930,"B7A6"],
+ [0x6932,"DDF0"],
+ [0x6933,"DDDB"],
+ [0x6934,"DDE0"],
+ [0x6935,"DDD9"],
+ [0x6936,"FD51"],
+ [0x6937,"DDEC"],
+ [0x6938,"DDCB"],
+ [0x6939,"DDD2"],
+ [0x693B,"DDEA"],
+ [0x693C,"DDF4"],
+ [0x693D,"DDDC"],
+ [0x693E,"FAAD"],
+ [0x693F,"DDCF"],
+ [0x6940,"DDE2"],
+ [0x6941,"DDE7"],
+ [0x6942,"DDD3"],
+ [0x6943,"8DBE"],
+ [0x6944,"DDE4"],
+ [0x6945,"DDD0"],
+ [0x6946,"89A4"],
+ [0x6948,"DDD7"],
+ [0x6949,"DDD8"],
+ [0x694A,"B7A8"],
+ [0x694B,"DDEB"],
+ [0x694C,"DDE9"],
+ [0x694E,"DDCC"],
+ [0x694F,"DDEE"],
+ [0x6951,"DDEF"],
+ [0x6952,"DDF1"],
+ [0x6953,"B7AC"],
+ [0x6954,"B7A4"],
+ [0x6955,"9AD9"],
+ [0x6956,"D5B8"],
+ [0x6957,"DDD4"],
+ [0x6958,"DDE6"],
+ [0x6959,"DDD5"],
+ [0x695A,"B7A1"],
+ [0x695B,"B7B1"],
+ [0x695C,"DDED"],
+ [0x695D,"B7AF"],
+ [0x695E,"B7AB"],
+ [0x695F,"DDCA"],
+ [0x6960,"B7A3"],
+ [0x6961,"FD4E"],
+ [0x6962,"DDCD"],
+ [0x6963,"B7B0"],
+ [0x6964,"8DC0"],
+ [0x6965,"DDDD"],
+ [0x6966,"DDC9"],
+ [0x6967,"97F0"],
+ [0x6968,"B7A9"],
+ [0x6969,"DDE1"],
+ [0x696A,"DDD1"],
+ [0x696B,"B7AA"],
+ [0x696C,"DDDA"],
+ [0x696D,"B77E"],
+ [0x696E,"B4D8"],
+ [0x696F,"DDE3"],
+ [0x6970,"D9BF"],
+ [0x6971,"DDCE"],
+ [0x6972,"93B4"],
+ [0x6973,"FD44"],
+ [0x6974,"DDE8"],
+ [0x6975,"B7A5"],
+ [0x6976,"DDE5"],
+ [0x6977,"B7A2"],
+ [0x6978,"DDDF"],
+ [0x6979,"B7AD"],
+ [0x697A,"DDD6"],
+ [0x697B,"DDF3"],
+ [0x6980,"9FA7"],
+ [0x6982,"B7A7"],
+ [0x6983,"DEC6"],
+ [0x6985,"8DC2"],
+ [0x6986,"B7AE"],
+ [0x698A,"99B6"],
+ [0x698D,"E24A"],
+ [0x698E,"E248"],
+ [0x6990,"E25E"],
+ [0x6991,"E246"],
+ [0x6993,"E258"],
+ [0x6994,"B77D"],
+ [0x6995,"BA5F"],
+ [0x6996,"E242"],
+ [0x6997,"E25D"],
+ [0x6998,"FD52"],
+ [0x6999,"E247"],
+ [0x699A,"E255"],
+ [0x699B,"BA64"],
+ [0x699C,"BA5D"],
+ [0x699E,"E25B"],
+ [0x699F,"8DC1"],
+ [0x69A0,"E240"],
+ [0x69A1,"E25A"],
+ [0x69A2,"8E46"],
+ [0x69A3,"BA6F"],
+ [0x69A4,"E251"],
+ [0x69A5,"E261"],
+ [0x69A6,"BA6D"],
+ [0x69A7,"E249"],
+ [0x69A8,"BA5E"],
+ [0x69A9,"E24B"],
+ [0x69AA,"E259"],
+ [0x69AB,"BA67"],
+ [0x69AC,"E244"],
+ [0x69AD,"BA6B"],
+ [0x69AE,"BA61"],
+ [0x69AF,"E24D"],
+ [0x69B0,"E243"],
+ [0x69B1,"E1FC"],
+ [0x69B2,"A0D1"],
+ [0x69B3,"E257"],
+ [0x69B4,"BA68"],
+ [0x69B5,"E260"],
+ [0x69B6,"E1FD"],
+ [0x69B7,"BA65"],
+ [0x69B9,"E253"],
+ [0x69BB,"BA66"],
+ [0x69BC,"E245"],
+ [0x69BD,"E250"],
+ [0x69BE,"E24C"],
+ [0x69BF,"E24E"],
+ [0x69C0,"9FCA"],
+ [0x69C1,"BA60"],
+ [0x69C2,"E25F"],
+ [0x69C3,"BA6E"],
+ [0x69C4,"E24F"],
+ [0x69C6,"E262"],
+ [0x69C9,"E1FE"],
+ [0x69CA,"E254"],
+ [0x69CB,"BA63"],
+ [0x69CC,"BA6C"],
+ [0x69CD,"BA6A"],
+ [0x69CE,"E241"],
+ [0x69CF,"E256"],
+ [0x69D0,"BA69"],
+ [0x69D1,"92CF"],
+ [0x69D3,"BA62"],
+ [0x69D4,"E252"],
+ [0x69D5,"9CF4"],
+ [0x69D6,"8DC4"],
+ [0x69D9,"E25C"],
+ [0x69E1,"FD41"],
+ [0x69E2,"E5D5"],
+ [0x69E4,"E5D1"],
+ [0x69E5,"E5CD"],
+ [0x69E6,"E5E1"],
+ [0x69E7,"E5DE"],
+ [0x69E8,"BCCD"],
+ [0x69E9,"9B4C"],
+ [0x69EB,"E5E5"],
+ [0x69EC,"E5D4"],
+ [0x69ED,"BCD8"],
+ [0x69EE,"E5DB"],
+ [0x69F1,"E5D0"],
+ [0x69F2,"E5DA"],
+ [0x69F3,"BCD5"],
+ [0x69F4,"E5EE"],
+ [0x69F6,"E5EB"],
+ [0x69F7,"E5DD"],
+ [0x69F8,"E5CE"],
+ [0x69F9,"FD57"],
+ [0x69FA,"FCEF"],
+ [0x69FB,"E5E2"],
+ [0x69FC,"E5E4"],
+ [0x69FD,"BCD1"],
+ [0x69FE,"E5D8"],
+ [0x69FF,"E5D3"],
+ [0x6A00,"E5CA"],
+ [0x6A01,"BCCE"],
+ [0x6A02,"BCD6"],
+ [0x6A03,"9CDE"],
+ [0x6A04,"E5E7"],
+ [0x6A05,"BCD7"],
+ [0x6A06,"E5CB"],
+ [0x6A07,"E5ED"],
+ [0x6A08,"E5E0"],
+ [0x6A09,"E5E6"],
+ [0x6A0A,"BCD4"],
+ [0x6A0B,"FD42"],
+ [0x6A0C,"986C"],
+ [0x6A0D,"E5E3"],
+ [0x6A0F,"E5EA"],
+ [0x6A11,"BCD9"],
+ [0x6A13,"BCD3"],
+ [0x6A14,"E5DC"],
+ [0x6A15,"E5CF"],
+ [0x6A16,"E5EF"],
+ [0x6A17,"E5CC"],
+ [0x6A18,"E5E8"],
+ [0x6A19,"BCD0"],
+ [0x6A1A,"97F9"],
+ [0x6A1B,"E5D6"],
+ [0x6A1C,"9558"],
+ [0x6A1D,"E5D7"],
+ [0x6A1E,"BCCF"],
+ [0x6A1F,"BCCC"],
+ [0x6A20,"E5D2"],
+ [0x6A21,"BCD2"],
+ [0x6A23,"BCCB"],
+ [0x6A25,"E5E9"],
+ [0x6A26,"E5EC"],
+ [0x6A27,"E5D9"],
+ [0x6A28,"E9CA"],
+ [0x6A29,"87B6"],
+ [0x6A2B,"985E"],
+ [0x6A2C,"FE7B"],
+ [0x6A2D,"94CD"],
+ [0x6A32,"E9C2"],
+ [0x6A33,"93EE"],
+ [0x6A34,"E9BE"],
+ [0x6A35,"BEF6"],
+ [0x6A38,"BEEB"],
+ [0x6A39,"BEF0"],
+ [0x6A3A,"BEEC"],
+ [0x6A3B,"E9CC"],
+ [0x6A3C,"E9D7"],
+ [0x6A3D,"BEEA"],
+ [0x6A3E,"E9C4"],
+ [0x6A3F,"E9CD"],
+ [0x6A40,"E5DF"],
+ [0x6A41,"E9CE"],
+ [0x6A43,"8CA3"],
+ [0x6A44,"BEF1"],
+ [0x6A45,"FD5A"],
+ [0x6A46,"E9DD"],
+ [0x6A47,"BEF5"],
+ [0x6A48,"BEF8"],
+ [0x6A49,"E9C0"],
+ [0x6A4B,"BEF4"],
+ [0x6A4C,"93F5"],
+ [0x6A4D,"E9DB"],
+ [0x6A4E,"E9DC"],
+ [0x6A4F,"E9D2"],
+ [0x6A50,"E9D1"],
+ [0x6A51,"E9C9"],
+ [0x6A52,"93EF"],
+ [0x6A53,"8EEA"],
+ [0x6A54,"E9D3"],
+ [0x6A55,"E9DA"],
+ [0x6A56,"E9D9"],
+ [0x6A57,"8F5B"],
+ [0x6A58,"BEEF"],
+ [0x6A59,"BEED"],
+ [0x6A5A,"E9CB"],
+ [0x6A5B,"E9C8"],
+ [0x6A5D,"E9C5"],
+ [0x6A5E,"E9D8"],
+ [0x6A5F,"BEF7"],
+ [0x6A60,"E9D6"],
+ [0x6A61,"BEF3"],
+ [0x6A62,"BEF2"],
+ [0x6A63,"8C5E"],
+ [0x6A64,"E9D0"],
+ [0x6A65,"8DC6"],
+ [0x6A66,"E9BF"],
+ [0x6A67,"E9C1"],
+ [0x6A68,"E9C3"],
+ [0x6A69,"E9D5"],
+ [0x6A6A,"E9CF"],
+ [0x6A6B,"BEEE"],
+ [0x6A6D,"E9C6"],
+ [0x6A6F,"E9D4"],
+ [0x6A71,"8DC8"],
+ [0x6A74,"8DC7"],
+ [0x6A76,"E9C7"],
+ [0x6A7A,"93F7"],
+ [0x6A7E,"C0CF"],
+ [0x6A7F,"ED45"],
+ [0x6A80,"C0C8"],
+ [0x6A81,"ECF5"],
+ [0x6A82,"8DC9"],
+ [0x6A83,"ED41"],
+ [0x6A84,"C0CA"],
+ [0x6A85,"ED48"],
+ [0x6A87,"ECFC"],
+ [0x6A89,"ECF7"],
+ [0x6A8A,"FBF2"],
+ [0x6A8C,"ED49"],
+ [0x6A8D,"ECF3"],
+ [0x6A8E,"ECFE"],
+ [0x6A8F,"9670"],
+ [0x6A90,"C0D1"],
+ [0x6A91,"ED44"],
+ [0x6A92,"ED4A"],
+ [0x6A93,"ECFD"],
+ [0x6A94,"C0C9"],
+ [0x6A95,"ED40"],
+ [0x6A96,"ECF4"],
+ [0x6A97,"C0D0"],
+ [0x6A99,"8DCB"],
+ [0x6A9A,"ED47"],
+ [0x6A9B,"ECF9"],
+ [0x6A9C,"C0CC"],
+ [0x6A9D,"FD5C"],
+ [0x6A9E,"ECFB"],
+ [0x6A9F,"ECF8"],
+ [0x6AA0,"C0D2"],
+ [0x6AA1,"ECFA"],
+ [0x6AA2,"C0CB"],
+ [0x6AA3,"C0CE"],
+ [0x6AA4,"ED43"],
+ [0x6AA5,"ECF6"],
+ [0x6AA6,"ED46"],
+ [0x6AA7,"8F65"],
+ [0x6AA8,"ED42"],
+ [0x6AAB,"8DCD"],
+ [0x6AAC,"C263"],
+ [0x6AAD,"EFE7"],
+ [0x6AAE,"C268"],
+ [0x6AAF,"C269"],
+ [0x6AB1,"9DA8"],
+ [0x6AB2,"94F9"],
+ [0x6AB3,"C262"],
+ [0x6AB4,"EFE6"],
+ [0x6AB5,"8DCE"],
+ [0x6AB6,"EFE3"],
+ [0x6AB7,"EFE4"],
+ [0x6AB8,"C266"],
+ [0x6AB9,"EFDE"],
+ [0x6ABA,"EFE2"],
+ [0x6ABB,"C265"],
+ [0x6ABD,"EFDF"],
+ [0x6ABE,"93EA"],
+ [0x6AC2,"C267"],
+ [0x6AC3,"C264"],
+ [0x6AC5,"EFDD"],
+ [0x6AC6,"EFE1"],
+ [0x6AC7,"EFE5"],
+ [0x6AC8,"FD5F"],
+ [0x6AC9,"93F0"],
+ [0x6ACA,"9FB6"],
+ [0x6ACB,"F251"],
+ [0x6ACC,"F24E"],
+ [0x6ACD,"F257"],
+ [0x6ACF,"F256"],
+ [0x6AD0,"F254"],
+ [0x6AD1,"F24F"],
+ [0x6AD3,"C372"],
+ [0x6AD4,"8DCF"],
+ [0x6AD8,"9763"],
+ [0x6AD9,"F250"],
+ [0x6ADA,"C371"],
+ [0x6ADB,"C0CD"],
+ [0x6ADC,"F253"],
+ [0x6ADD,"C370"],
+ [0x6ADE,"F258"],
+ [0x6ADF,"F252"],
+ [0x6AE0,"F24D"],
+ [0x6AE1,"EFE0"],
+ [0x6AE5,"C36F"],
+ [0x6AE7,"F24C"],
+ [0x6AE8,"F456"],
+ [0x6AEA,"F455"],
+ [0x6AEB,"F255"],
+ [0x6AEC,"C468"],
+ [0x6AEE,"F459"],
+ [0x6AEF,"F45A"],
+ [0x6AF0,"F454"],
+ [0x6AF1,"F458"],
+ [0x6AF3,"F453"],
+ [0x6AF6,"8DD0"],
+ [0x6AF8,"F5D1"],
+ [0x6AF9,"F457"],
+ [0x6AFA,"C4E7"],
+ [0x6AFB,"C4E5"],
+ [0x6AFC,"F5CF"],
+ [0x6B00,"F5D2"],
+ [0x6B02,"F5CE"],
+ [0x6B03,"F5D0"],
+ [0x6B04,"C4E6"],
+ [0x6B05,"93F1"],
+ [0x6B08,"F6E5"],
+ [0x6B09,"F6E6"],
+ [0x6B0A,"C576"],
+ [0x6B0B,"F6E4"],
+ [0x6B0F,"F7E2"],
+ [0x6B10,"C5CF"],
+ [0x6B11,"F7E0"],
+ [0x6B12,"F7E1"],
+ [0x6B13,"F8AC"],
+ [0x6B16,"C656"],
+ [0x6B17,"F8F3"],
+ [0x6B18,"F8F1"],
+ [0x6B19,"F8F2"],
+ [0x6B1A,"F8F4"],
+ [0x6B1D,"FD62"],
+ [0x6B1E,"F9BB"],
+ [0x6B20,"A4ED"],
+ [0x6B21,"A6B8"],
+ [0x6B23,"AA59"],
+ [0x6B25,"CCE9"],
+ [0x6B28,"CF64"],
+ [0x6B2C,"D1F5"],
+ [0x6B2D,"D1F7"],
+ [0x6B2F,"D1F6"],
+ [0x6B31,"D1F8"],
+ [0x6B32,"B1FD"],
+ [0x6B33,"D5D7"],
+ [0x6B34,"D1F9"],
+ [0x6B35,"FD65"],
+ [0x6B36,"D5D6"],
+ [0x6B37,"D5D8"],
+ [0x6B38,"D5D9"],
+ [0x6B39,"D9DA"],
+ [0x6B3A,"B4DB"],
+ [0x6B3B,"D9DB"],
+ [0x6B3C,"D9DD"],
+ [0x6B3D,"B4DC"],
+ [0x6B3E,"B4DA"],
+ [0x6B3F,"D9DC"],
+ [0x6B41,"DDFA"],
+ [0x6B42,"DDF8"],
+ [0x6B43,"DDF7"],
+ [0x6B45,"DDF6"],
+ [0x6B46,"DDF5"],
+ [0x6B47,"B7B2"],
+ [0x6B48,"DDF9"],
+ [0x6B49,"BA70"],
+ [0x6B4A,"E263"],
+ [0x6B4B,"E265"],
+ [0x6B4C,"BA71"],
+ [0x6B4D,"E264"],
+ [0x6B4E,"BCDB"],
+ [0x6B50,"BCDA"],
+ [0x6B51,"E5F0"],
+ [0x6B52,"9FDB"],
+ [0x6B54,"E9DF"],
+ [0x6B55,"E9DE"],
+ [0x6B56,"E9E0"],
+ [0x6B57,"93F8"],
+ [0x6B59,"BEF9"],
+ [0x6B5B,"ED4B"],
+ [0x6B5C,"C0D3"],
+ [0x6B5E,"EFE8"],
+ [0x6B5F,"C26A"],
+ [0x6B60,"F259"],
+ [0x6B61,"C577"],
+ [0x6B62,"A4EE"],
+ [0x6B63,"A5BF"],
+ [0x6B64,"A6B9"],
+ [0x6B65,"A842"],
+ [0x6B66,"AA5A"],
+ [0x6B67,"AA5B"],
+ [0x6B6A,"AC6E"],
+ [0x6B6D,"D1FA"],
+ [0x6B6F,"8BF7"],
+ [0x6B72,"B7B3"],
+ [0x6B74,"FD66"],
+ [0x6B76,"E6D1"],
+ [0x6B77,"BEFA"],
+ [0x6B78,"C26B"],
+ [0x6B79,"A4EF"],
+ [0x6B7A,"8BCF"],
+ [0x6B7B,"A6BA"],
+ [0x6B7E,"CCEB"],
+ [0x6B7F,"AA5C"],
+ [0x6B80,"CCEA"],
+ [0x6B81,"8DD1"],
+ [0x6B82,"CF65"],
+ [0x6B83,"AC6F"],
+ [0x6B84,"CF66"],
+ [0x6B86,"AC70"],
+ [0x6B88,"D1FC"],
+ [0x6B89,"AEEE"],
+ [0x6B8A,"AEED"],
+ [0x6B8C,"D5DE"],
+ [0x6B8D,"D5DC"],
+ [0x6B8E,"D5DD"],
+ [0x6B8F,"D5DB"],
+ [0x6B91,"D5DA"],
+ [0x6B94,"D9DE"],
+ [0x6B95,"D9E1"],
+ [0x6B96,"B4DE"],
+ [0x6B97,"D9DF"],
+ [0x6B98,"B4DD"],
+ [0x6B99,"D9E0"],
+ [0x6B9B,"DDFB"],
+ [0x6B9E,"E266"],
+ [0x6B9F,"E267"],
+ [0x6BA0,"E268"],
+ [0x6BA2,"E5F3"],
+ [0x6BA3,"E5F2"],
+ [0x6BA4,"BCDC"],
+ [0x6BA5,"E5F1"],
+ [0x6BA6,"E5F4"],
+ [0x6BA7,"E9E1"],
+ [0x6BAA,"E9E2"],
+ [0x6BAB,"E9E3"],
+ [0x6BAD,"ED4C"],
+ [0x6BAE,"C0D4"],
+ [0x6BAF,"C26C"],
+ [0x6BB0,"F25A"],
+ [0x6BB2,"C4E8"],
+ [0x6BB3,"C95F"],
+ [0x6BB5,"AC71"],
+ [0x6BB6,"CF67"],
+ [0x6BB7,"AEEF"],
+ [0x6BBA,"B1FE"],
+ [0x6BBC,"B4DF"],
+ [0x6BBD,"D9E2"],
+ [0x6BBF,"B7B5"],
+ [0x6BC0,"B7B4"],
+ [0x6BC1,"8DD2"],
+ [0x6BC3,"E269"],
+ [0x6BC4,"E26A"],
+ [0x6BC5,"BCDD"],
+ [0x6BC6,"BCDE"],
+ [0x6BC7,"E9E5"],
+ [0x6BC8,"E9E4"],
+ [0x6BC9,"EFE9"],
+ [0x6BCA,"F7E3"],
+ [0x6BCB,"A4F0"],
+ [0x6BCC,"C960"],
+ [0x6BCD,"A5C0"],
+ [0x6BCF,"A843"],
+ [0x6BD0,"CB48"],
+ [0x6BD2,"AC72"],
+ [0x6BD3,"B7B6"],
+ [0x6BD4,"A4F1"],
+ [0x6BD6,"CF68"],
+ [0x6BD7,"AC73"],
+ [0x6BD8,"CF69"],
+ [0x6BDA,"C0D5"],
+ [0x6BDB,"A4F2"],
+ [0x6BDC,"FD71"],
+ [0x6BDE,"CCEC"],
+ [0x6BE0,"CF6A"],
+ [0x6BE1,"FD6F"],
+ [0x6BE2,"D242"],
+ [0x6BE3,"D241"],
+ [0x6BE4,"D1FE"],
+ [0x6BE6,"D1FD"],
+ [0x6BE7,"D243"],
+ [0x6BE8,"D240"],
+ [0x6BEA,"8DD3"],
+ [0x6BEB,"B240"],
+ [0x6BEC,"B241"],
+ [0x6BEF,"B4E0"],
+ [0x6BF0,"D9E3"],
+ [0x6BF2,"D9E4"],
+ [0x6BF3,"D9E5"],
+ [0x6BF7,"DE41"],
+ [0x6BF8,"DE42"],
+ [0x6BF9,"DE40"],
+ [0x6BFA,"9FE7"],
+ [0x6BFB,"DDFD"],
+ [0x6BFC,"DDFE"],
+ [0x6BFD,"B7B7"],
+ [0x6BFE,"E26B"],
+ [0x6BFF,"E5F7"],
+ [0x6C00,"E5F6"],
+ [0x6C01,"E5F5"],
+ [0x6C02,"E5F8"],
+ [0x6C03,"E9E7"],
+ [0x6C04,"E9E6"],
+ [0x6C05,"BEFB"],
+ [0x6C06,"E9E8"],
+ [0x6C08,"C0D6"],
+ [0x6C09,"ED4D"],
+ [0x6C0B,"EFEA"],
+ [0x6C0C,"F25B"],
+ [0x6C0D,"F6E7"],
+ [0x6C0F,"A4F3"],
+ [0x6C10,"A5C2"],
+ [0x6C11,"A5C1"],
+ [0x6C13,"AA5D"],
+ [0x6C14,"C961"],
+ [0x6C15,"C97E"],
+ [0x6C16,"A6BB"],
+ [0x6C18,"C9F7"],
+ [0x6C19,"CB49"],
+ [0x6C1A,"CB4A"],
+ [0x6C1B,"AA5E"],
+ [0x6C1C,"90BD"],
+ [0x6C1D,"CCED"],
+ [0x6C1F,"AC74"],
+ [0x6C20,"CF6B"],
+ [0x6C21,"CF6C"],
+ [0x6C23,"AEF0"],
+ [0x6C24,"AEF4"],
+ [0x6C25,"D244"],
+ [0x6C26,"AEF3"],
+ [0x6C27,"AEF1"],
+ [0x6C28,"AEF2"],
+ [0x6C2A,"D5DF"],
+ [0x6C2B,"B242"],
+ [0x6C2C,"B4E3"],
+ [0x6C2E,"B4E1"],
+ [0x6C2F,"B4E2"],
+ [0x6C30,"D9E6"],
+ [0x6C31,"9FD0"],
+ [0x6C33,"BA72"],
+ [0x6C34,"A4F4"],
+ [0x6C35,"8BD0"],
+ [0x6C36,"C9A1"],
+ [0x6C37,"FD72"],
+ [0x6C38,"A5C3"],
+ [0x6C39,"9CAE"],
+ [0x6C3A,"8BD1"],
+ [0x6C3B,"C9A4"],
+ [0x6C3D,"8ADB"],
+ [0x6C3E,"A5C6"],
+ [0x6C3F,"C9A3"],
+ [0x6C40,"A5C5"],
+ [0x6C41,"A5C4"],
+ [0x6C42,"A844"],
+ [0x6C43,"C9A2"],
+ [0x6C46,"C9F8"],
+ [0x6C49,"FAE4"],
+ [0x6C4A,"C9FC"],
+ [0x6C4B,"C9FE"],
+ [0x6C4C,"CA40"],
+ [0x6C4D,"A6C5"],
+ [0x6C4E,"A6C6"],
+ [0x6C4F,"C9FB"],
+ [0x6C50,"A6C1"],
+ [0x6C52,"C9F9"],
+ [0x6C54,"C9FD"],
+ [0x6C55,"A6C2"],
+ [0x6C57,"A6BD"],
+ [0x6C58,"95CE"],
+ [0x6C59,"A6BE"],
+ [0x6C5A,"FD76"],
+ [0x6C5B,"A6C4"],
+ [0x6C5C,"C9FA"],
+ [0x6C5D,"A6BC"],
+ [0x6C5E,"A845"],
+ [0x6C5F,"A6BF"],
+ [0x6C60,"A6C0"],
+ [0x6C61,"A6C3"],
+ [0x6C65,"CB5B"],
+ [0x6C66,"CB59"],
+ [0x6C67,"CB4C"],
+ [0x6C68,"A851"],
+ [0x6C69,"CB53"],
+ [0x6C6A,"A84C"],
+ [0x6C6B,"CB4D"],
+ [0x6C6D,"CB55"],
+ [0x6C6E,"FB62"],
+ [0x6C6F,"CB52"],
+ [0x6C70,"A84F"],
+ [0x6C71,"CB51"],
+ [0x6C72,"A856"],
+ [0x6C73,"CB5A"],
+ [0x6C74,"A858"],
+ [0x6C75,"8DD4"],
+ [0x6C76,"A85A"],
+ [0x6C78,"CB4B"],
+ [0x6C79,"FD78"],
+ [0x6C7A,"A84D"],
+ [0x6C7B,"CB5C"],
+ [0x6C7D,"A854"],
+ [0x6C7E,"A857"],
+ [0x6C7F,"8EE3"],
+ [0x6C80,"CD45"],
+ [0x6C81,"A847"],
+ [0x6C82,"A85E"],
+ [0x6C83,"A855"],
+ [0x6C84,"CB4E"],
+ [0x6C85,"A84A"],
+ [0x6C86,"A859"],
+ [0x6C87,"CB56"],
+ [0x6C88,"A848"],
+ [0x6C89,"A849"],
+ [0x6C8A,"CD43"],
+ [0x6C8B,"CB4F"],
+ [0x6C8C,"A850"],
+ [0x6C8D,"A85B"],
+ [0x6C8E,"CB5D"],
+ [0x6C8F,"CB50"],
+ [0x6C90,"A84E"],
+ [0x6C92,"A853"],
+ [0x6C93,"CCEE"],
+ [0x6C94,"A85C"],
+ [0x6C95,"CB57"],
+ [0x6C96,"A852"],
+ [0x6C98,"A85D"],
+ [0x6C99,"A846"],
+ [0x6C9A,"CB54"],
+ [0x6C9B,"A84B"],
+ [0x6C9C,"CB58"],
+ [0x6C9D,"CD44"],
+ [0x6C9F,"9076"],
+ [0x6CA2,"98C6"],
+ [0x6CAA,"8DD5"],
+ [0x6CAB,"AA6A"],
+ [0x6CAC,"AA7A"],
+ [0x6CAD,"CCF5"],
+ [0x6CAE,"AA71"],
+ [0x6CAF,"97D1"],
+ [0x6CB0,"CD4B"],
+ [0x6CB1,"AA62"],
+ [0x6CB2,"9EB6"],
+ [0x6CB3,"AA65"],
+ [0x6CB4,"CD42"],
+ [0x6CB6,"CCF3"],
+ [0x6CB7,"CCF7"],
+ [0x6CB8,"AA6D"],
+ [0x6CB9,"AA6F"],
+ [0x6CBA,"CCFA"],
+ [0x6CBB,"AA76"],
+ [0x6CBC,"AA68"],
+ [0x6CBD,"AA66"],
+ [0x6CBE,"AA67"],
+ [0x6CBF,"AA75"],
+ [0x6CC0,"CD47"],
+ [0x6CC1,"AA70"],
+ [0x6CC2,"CCF9"],
+ [0x6CC3,"CCFB"],
+ [0x6CC4,"AA6E"],
+ [0x6CC5,"AA73"],
+ [0x6CC6,"CCFC"],
+ [0x6CC7,"CD4A"],
+ [0x6CC9,"AC75"],
+ [0x6CCA,"AA79"],
+ [0x6CCB,"FAC7"],
+ [0x6CCC,"AA63"],
+ [0x6CCD,"CD49"],
+ [0x6CCE,"A042"],
+ [0x6CCF,"CD4D"],
+ [0x6CD0,"CCF8"],
+ [0x6CD1,"CD4F"],
+ [0x6CD2,"CD40"],
+ [0x6CD3,"AA6C"],
+ [0x6CD4,"CCF4"],
+ [0x6CD5,"AA6B"],
+ [0x6CD6,"AA7D"],
+ [0x6CD7,"AA72"],
+ [0x6CD9,"CCF2"],
+ [0x6CDA,"CF75"],
+ [0x6CDB,"AA78"],
+ [0x6CDC,"AA7C"],
+ [0x6CDD,"CD41"],
+ [0x6CDE,"CD46"],
+ [0x6CDF,"9873"],
+ [0x6CE0,"AA7E"],
+ [0x6CE1,"AA77"],
+ [0x6CE2,"AA69"],
+ [0x6CE3,"AA5F"],
+ [0x6CE5,"AA64"],
+ [0x6CE7,"CCF6"],
+ [0x6CE8,"AA60"],
+ [0x6CE9,"CD4E"],
+ [0x6CEA,"9FFC"],
+ [0x6CEB,"CCF0"],
+ [0x6CEC,"CCEF"],
+ [0x6CED,"CCFD"],
+ [0x6CEE,"CCF1"],
+ [0x6CEF,"AA7B"],
+ [0x6CF0,"AEF5"],
+ [0x6CF1,"AA74"],
+ [0x6CF2,"CCFE"],
+ [0x6CF3,"AA61"],
+ [0x6CF5,"ACA6"],
+ [0x6CF9,"CD4C"],
+ [0x6CFF,"8CA5"],
+ [0x6D00,"CF7C"],
+ [0x6D01,"CFA1"],
+ [0x6D02,"8DD7"],
+ [0x6D03,"CFA4"],
+ [0x6D04,"CF77"],
+ [0x6D05,"92FB"],
+ [0x6D06,"8DD8"],
+ [0x6D07,"CFA7"],
+ [0x6D08,"CFAA"],
+ [0x6D09,"CFAC"],
+ [0x6D0A,"CF74"],
+ [0x6D0B,"AC76"],
+ [0x6D0C,"AC7B"],
+ [0x6D0D,"D249"],
+ [0x6D0E,"ACAD"],
+ [0x6D0F,"CFA5"],
+ [0x6D10,"CFAD"],
+ [0x6D11,"CF7B"],
+ [0x6D12,"CF73"],
+ [0x6D16,"D264"],
+ [0x6D17,"AC7E"],
+ [0x6D18,"CFA2"],
+ [0x6D19,"CF78"],
+ [0x6D1A,"CF7A"],
+ [0x6D1B,"ACA5"],
+ [0x6D1D,"CF7D"],
+ [0x6D1E,"AC7D"],
+ [0x6D1F,"CF70"],
+ [0x6D20,"CFA8"],
+ [0x6D22,"CFAB"],
+ [0x6D24,"944F"],
+ [0x6D25,"AC7A"],
+ [0x6D26,"8DD9"],
+ [0x6D27,"ACA8"],
+ [0x6D28,"CF6D"],
+ [0x6D29,"ACAA"],
+ [0x6D2A,"AC78"],
+ [0x6D2B,"ACAE"],
+ [0x6D2C,"CFA9"],
+ [0x6D2D,"CF6F"],
+ [0x6D2E,"ACAB"],
+ [0x6D2F,"D25E"],
+ [0x6D30,"CD48"],
+ [0x6D31,"AC7C"],
+ [0x6D32,"AC77"],
+ [0x6D33,"CF76"],
+ [0x6D34,"CF6E"],
+ [0x6D35,"ACAC"],
+ [0x6D36,"ACA4"],
+ [0x6D37,"CFA3"],
+ [0x6D38,"ACA9"],
+ [0x6D39,"ACA7"],
+ [0x6D3A,"CF79"],
+ [0x6D3B,"ACA1"],
+ [0x6D3C,"CF71"],
+ [0x6D3D,"ACA2"],
+ [0x6D3E,"ACA3"],
+ [0x6D3F,"CF72"],
+ [0x6D40,"CFA6"],
+ [0x6D41,"AC79"],
+ [0x6D42,"CF7E"],
+ [0x6D4E,"896B"],
+ [0x6D57,"97CE"],
+ [0x6D58,"D24C"],
+ [0x6D59,"AEFD"],
+ [0x6D5A,"AF43"],
+ [0x6D5B,"FAF3"],
+ [0x6D5C,"FDAE"],
+ [0x6D5E,"D255"],
+ [0x6D5F,"D25B"],
+ [0x6D60,"D257"],
+ [0x6D61,"D24A"],
+ [0x6D62,"D24D"],
+ [0x6D63,"D246"],
+ [0x6D64,"D247"],
+ [0x6D65,"AF4A"],
+ [0x6D66,"AEFA"],
+ [0x6D67,"D256"],
+ [0x6D68,"D25F"],
+ [0x6D69,"AF45"],
+ [0x6D6A,"AEF6"],
+ [0x6D6C,"AF40"],
+ [0x6D6D,"D24E"],
+ [0x6D6E,"AF42"],
+ [0x6D6F,"D24F"],
+ [0x6D70,"D259"],
+ [0x6D71,"FBAF"],
+ [0x6D72,"92B7"],
+ [0x6D74,"AF44"],
+ [0x6D75,"D268"],
+ [0x6D76,"D248"],
+ [0x6D77,"AEFC"],
+ [0x6D78,"AEFB"],
+ [0x6D79,"AF48"],
+ [0x6D7A,"D245"],
+ [0x6D7B,"D266"],
+ [0x6D7C,"D25A"],
+ [0x6D7D,"D267"],
+ [0x6D7E,"D261"],
+ [0x6D7F,"D253"],
+ [0x6D80,"D262"],
+ [0x6D81,"8DDA"],
+ [0x6D82,"D25C"],
+ [0x6D83,"D265"],
+ [0x6D84,"D263"],
+ [0x6D85,"AF49"],
+ [0x6D86,"D254"],
+ [0x6D87,"AEF9"],
+ [0x6D88,"AEF8"],
+ [0x6D89,"AF41"],
+ [0x6D8A,"AF47"],
+ [0x6D8B,"D260"],
+ [0x6D8C,"AF46"],
+ [0x6D8D,"D251"],
+ [0x6D8E,"B243"],
+ [0x6D8F,"9C5A"],
+ [0x6D90,"D269"],
+ [0x6D91,"D250"],
+ [0x6D92,"D24B"],
+ [0x6D93,"AEFE"],
+ [0x6D94,"AF4B"],
+ [0x6D95,"AEF7"],
+ [0x6D96,"FDAD"],
+ [0x6D97,"D258"],
+ [0x6D98,"D25D"],
+ [0x6DA4,"8DDC"],
+ [0x6DA5,"9444"],
+ [0x6DAA,"B265"],
+ [0x6DAB,"D5E1"],
+ [0x6DAC,"D5E5"],
+ [0x6DAE,"B252"],
+ [0x6DAF,"B250"],
+ [0x6DB1,"8DDD"],
+ [0x6DB2,"B247"],
+ [0x6DB3,"D5E3"],
+ [0x6DB4,"D5E2"],
+ [0x6DB5,"B25B"],
+ [0x6DB7,"D5E8"],
+ [0x6DB8,"B255"],
+ [0x6DB9,"A0D6"],
+ [0x6DBA,"D5FA"],
+ [0x6DBB,"D647"],
+ [0x6DBC,"B244"],
+ [0x6DBD,"D5F7"],
+ [0x6DBE,"D5F0"],
+ [0x6DBF,"B267"],
+ [0x6DC0,"D5E0"],
+ [0x6DC2,"D5FC"],
+ [0x6DC4,"B264"],
+ [0x6DC5,"B258"],
+ [0x6DC6,"B263"],
+ [0x6DC7,"B24E"],
+ [0x6DC8,"D5EC"],
+ [0x6DC9,"D5FE"],
+ [0x6DCA,"D5F6"],
+ [0x6DCB,"B24F"],
+ [0x6DCC,"B249"],
+ [0x6DCD,"D645"],
+ [0x6DCF,"D5FD"],
+ [0x6DD0,"D640"],
+ [0x6DD1,"B251"],
+ [0x6DD2,"B259"],
+ [0x6DD3,"D642"],
+ [0x6DD4,"D5EA"],
+ [0x6DD5,"D5FB"],
+ [0x6DD6,"D5EF"],
+ [0x6DD7,"D644"],
+ [0x6DD8,"B25E"],
+ [0x6DD9,"B246"],
+ [0x6DDA,"B25C"],
+ [0x6DDB,"D5F4"],
+ [0x6DDC,"D5F2"],
+ [0x6DDD,"D5F3"],
+ [0x6DDE,"B253"],
+ [0x6DDF,"D5EE"],
+ [0x6DE0,"D5ED"],
+ [0x6DE1,"B248"],
+ [0x6DE2,"D5E7"],
+ [0x6DE3,"D646"],
+ [0x6DE4,"B24A"],
+ [0x6DE5,"D5F1"],
+ [0x6DE6,"B268"],
+ [0x6DE8,"B262"],
+ [0x6DE9,"D5E6"],
+ [0x6DEA,"B25F"],
+ [0x6DEB,"B25D"],
+ [0x6DEC,"B266"],
+ [0x6DED,"D5F8"],
+ [0x6DEE,"B261"],
+ [0x6DEF,"D252"],
+ [0x6DF0,"D5F9"],
+ [0x6DF1,"B260"],
+ [0x6DF2,"D641"],
+ [0x6DF3,"B245"],
+ [0x6DF4,"D5F5"],
+ [0x6DF5,"B257"],
+ [0x6DF6,"D5E9"],
+ [0x6DF7,"B256"],
+ [0x6DF9,"B254"],
+ [0x6DFA,"B24C"],
+ [0x6DFB,"B24B"],
+ [0x6DFC,"D9E7"],
+ [0x6DFD,"D643"],
+ [0x6DFE,"8C41"],
+ [0x6E00,"D5EB"],
+ [0x6E02,"97D5"],
+ [0x6E03,"D9FC"],
+ [0x6E04,"944A"],
+ [0x6E05,"B24D"],
+ [0x6E0A,"944D"],
+ [0x6E0F,"97CB"],
+ [0x6E15,"8DDE"],
+ [0x6E18,"8DDF"],
+ [0x6E19,"B541"],
+ [0x6E1A,"B25A"],
+ [0x6E1B,"B4EE"],
+ [0x6E1C,"D9F6"],
+ [0x6E1D,"B4FC"],
+ [0x6E1F,"D9EA"],
+ [0x6E20,"B4EB"],
+ [0x6E21,"B4E7"],
+ [0x6E22,"DA49"],
+ [0x6E23,"B4ED"],
+ [0x6E24,"B4F1"],
+ [0x6E25,"B4EC"],
+ [0x6E26,"B4F5"],
+ [0x6E27,"DA4D"],
+ [0x6E28,"DA44"],
+ [0x6E29,"8DE0"],
+ [0x6E2A,"FEF9"],
+ [0x6E2B,"D9F1"],
+ [0x6E2C,"B4FA"],
+ [0x6E2D,"B4F4"],
+ [0x6E2E,"D9FD"],
+ [0x6E2F,"B4E4"],
+ [0x6E30,"DA4A"],
+ [0x6E31,"DA43"],
+ [0x6E32,"B4E8"],
+ [0x6E33,"D9F7"],
+ [0x6E34,"B4F7"],
+ [0x6E35,"DA55"],
+ [0x6E36,"DA56"],
+ [0x6E38,"B4E5"],
+ [0x6E39,"DA48"],
+ [0x6E3A,"B4F9"],
+ [0x6E3B,"D9FB"],
+ [0x6E3C,"D9ED"],
+ [0x6E3D,"D9EE"],
+ [0x6E3E,"B4FD"],
+ [0x6E3F,"D9F2"],
+ [0x6E40,"D9F9"],
+ [0x6E41,"D9F3"],
+ [0x6E43,"B4FB"],
+ [0x6E44,"B544"],
+ [0x6E45,"D9EF"],
+ [0x6E46,"D9E8"],
+ [0x6E47,"D9E9"],
+ [0x6E49,"D9EB"],
+ [0x6E4A,"B4EA"],
+ [0x6E4B,"D9F8"],
+ [0x6E4D,"B4F8"],
+ [0x6E4E,"B542"],
+ [0x6E4F,"FDC0"],
+ [0x6E50,"FCF9"],
+ [0x6E51,"D9FA"],
+ [0x6E52,"DA53"],
+ [0x6E53,"DA4B"],
+ [0x6E54,"B4E6"],
+ [0x6E55,"DA51"],
+ [0x6E56,"B4F2"],
+ [0x6E57,"8CDD"],
+ [0x6E58,"B4F0"],
+ [0x6E59,"FB7E"],
+ [0x6E5A,"DA57"],
+ [0x6E5B,"B4EF"],
+ [0x6E5C,"DA41"],
+ [0x6E5D,"D9F4"],
+ [0x6E5E,"D9FE"],
+ [0x6E5F,"B547"],
+ [0x6E60,"DA45"],
+ [0x6E61,"DA42"],
+ [0x6E62,"D9F0"],
+ [0x6E63,"B543"],
+ [0x6E64,"DA4F"],
+ [0x6E65,"DA4C"],
+ [0x6E66,"DA54"],
+ [0x6E67,"B4E9"],
+ [0x6E68,"DA40"],
+ [0x6E69,"B546"],
+ [0x6E6B,"DA47"],
+ [0x6E6E,"B4F3"],
+ [0x6E6F,"B4F6"],
+ [0x6E71,"DA46"],
+ [0x6E72,"B545"],
+ [0x6E73,"D9F5"],
+ [0x6E74,"D5E4"],
+ [0x6E76,"92B3"],
+ [0x6E77,"DA50"],
+ [0x6E78,"DA4E"],
+ [0x6E79,"DA52"],
+ [0x6E7C,"FDAF"],
+ [0x6E86,"8DE1"],
+ [0x6E88,"D9EC"],
+ [0x6E89,"B540"],
+ [0x6E8B,"95D3"],
+ [0x6E8D,"DE61"],
+ [0x6E8E,"DE60"],
+ [0x6E8F,"DE46"],
+ [0x6E90,"B7BD"],
+ [0x6E92,"DE5F"],
+ [0x6E93,"DE49"],
+ [0x6E94,"DE4A"],
+ [0x6E96,"B7C7"],
+ [0x6E97,"DE68"],
+ [0x6E98,"B7C2"],
+ [0x6E99,"DE5E"],
+ [0x6E9A,"89C1"],
+ [0x6E9B,"DE43"],
+ [0x6E9C,"B7C8"],
+ [0x6E9D,"B7BE"],
+ [0x6E9E,"DE52"],
+ [0x6E9F,"DE48"],
+ [0x6EA0,"DE4B"],
+ [0x6EA1,"DE63"],
+ [0x6EA2,"B7B8"],
+ [0x6EA3,"DE6A"],
+ [0x6EA4,"DE62"],
+ [0x6EA5,"B7C1"],
+ [0x6EA6,"DE57"],
+ [0x6EA7,"B7CC"],
+ [0x6EAA,"B7CB"],
+ [0x6EAB,"B7C5"],
+ [0x6EAE,"DE69"],
+ [0x6EAF,"B7B9"],
+ [0x6EB0,"DE55"],
+ [0x6EB1,"DE4C"],
+ [0x6EB2,"DE59"],
+ [0x6EB3,"DE65"],
+ [0x6EB4,"B7CD"],
+ [0x6EB5,"FD68"],
+ [0x6EB6,"B7BB"],
+ [0x6EB7,"DE54"],
+ [0x6EB8,"9CB7"],
+ [0x6EB9,"DE4D"],
+ [0x6EBA,"B7C4"],
+ [0x6EBB,"8DE3"],
+ [0x6EBC,"B7C3"],
+ [0x6EBD,"DE50"],
+ [0x6EBE,"DE5A"],
+ [0x6EBF,"DE64"],
+ [0x6EC0,"DE47"],
+ [0x6EC1,"DE51"],
+ [0x6EC2,"B7BC"],
+ [0x6EC3,"DE5B"],
+ [0x6EC4,"B7C9"],
+ [0x6EC5,"B7C0"],
+ [0x6EC6,"DE4E"],
+ [0x6EC7,"B7BF"],
+ [0x6EC8,"DE45"],
+ [0x6EC9,"DE53"],
+ [0x6ECA,"DE67"],
+ [0x6ECB,"B4FE"],
+ [0x6ECC,"BAB0"],
+ [0x6ECD,"DE56"],
+ [0x6ECE,"E26C"],
+ [0x6ECF,"DE58"],
+ [0x6ED0,"DE66"],
+ [0x6ED1,"B7C6"],
+ [0x6ED2,"DE4F"],
+ [0x6ED3,"B7BA"],
+ [0x6ED4,"B7CA"],
+ [0x6ED5,"BCF0"],
+ [0x6ED6,"DE44"],
+ [0x6ED8,"DE5D"],
+ [0x6ED9,"FAC0"],
+ [0x6EDA,"8DE5"],
+ [0x6EDB,"FA64"],
+ [0x6EDC,"DE5C"],
+ [0x6EDD,"8947"],
+ [0x6EE2,"8DE4"],
+ [0x6EE8,"8DE7"],
+ [0x6EE9,"8DE8"],
+ [0x6EEB,"E2AA"],
+ [0x6EEC,"BAAD"],
+ [0x6EED,"E27D"],
+ [0x6EEE,"E2A4"],
+ [0x6EEF,"BAA2"],
+ [0x6EF1,"E26E"],
+ [0x6EF2,"BAAF"],
+ [0x6EF4,"BA77"],
+ [0x6EF5,"E26D"],
+ [0x6EF6,"E2B0"],
+ [0x6EF7,"BAB1"],
+ [0x6EF8,"E271"],
+ [0x6EF9,"E2A3"],
+ [0x6EFA,"FDC7"],
+ [0x6EFB,"E273"],
+ [0x6EFC,"E2B3"],
+ [0x6EFD,"E2AF"],
+ [0x6EFE,"BA75"],
+ [0x6EFF,"BAA1"],
+ [0x6F00,"E653"],
+ [0x6F01,"BAAE"],
+ [0x6F02,"BA7D"],
+ [0x6F03,"E26F"],
+ [0x6F04,"FDB0"],
+ [0x6F05,"E2AE"],
+ [0x6F06,"BAA3"],
+ [0x6F07,"E2AB"],
+ [0x6F08,"E2B8"],
+ [0x6F09,"E275"],
+ [0x6F0A,"E27E"],
+ [0x6F0B,"9445"],
+ [0x6F0C,"97D6"],
+ [0x6F0D,"E2B6"],
+ [0x6F0E,"E2AC"],
+ [0x6F0F,"BA7C"],
+ [0x6F12,"E27C"],
+ [0x6F13,"BA76"],
+ [0x6F14,"BA74"],
+ [0x6F15,"BAA8"],
+ [0x6F16,"FCC6"],
+ [0x6F17,"9844"],
+ [0x6F18,"E27A"],
+ [0x6F19,"E277"],
+ [0x6F1A,"E278"],
+ [0x6F1C,"E2B2"],
+ [0x6F1E,"E2B7"],
+ [0x6F1F,"E2B5"],
+ [0x6F20,"BA7A"],
+ [0x6F21,"E2B9"],
+ [0x6F22,"BA7E"],
+ [0x6F23,"BAA7"],
+ [0x6F24,"8DE9"],
+ [0x6F25,"E270"],
+ [0x6F26,"E5FA"],
+ [0x6F27,"E279"],
+ [0x6F29,"BA78"],
+ [0x6F2A,"BAAC"],
+ [0x6F2B,"BAA9"],
+ [0x6F2C,"BA7B"],
+ [0x6F2D,"E2A5"],
+ [0x6F2E,"E274"],
+ [0x6F2F,"BAAA"],
+ [0x6F30,"E2A7"],
+ [0x6F31,"BAA4"],
+ [0x6F32,"BAA6"],
+ [0x6F33,"BA73"],
+ [0x6F34,"8DEA"],
+ [0x6F35,"E2A9"],
+ [0x6F36,"E2A1"],
+ [0x6F37,"E272"],
+ [0x6F38,"BAA5"],
+ [0x6F39,"E2B1"],
+ [0x6F3A,"E2B4"],
+ [0x6F3B,"E27B"],
+ [0x6F3C,"E2A8"],
+ [0x6F3D,"FE50"],
+ [0x6F3E,"BA79"],
+ [0x6F3F,"BCDF"],
+ [0x6F40,"E2A6"],
+ [0x6F41,"E5F9"],
+ [0x6F43,"E2AD"],
+ [0x6F44,"FDCC"],
+ [0x6F4E,"E276"],
+ [0x6F4F,"E644"],
+ [0x6F50,"E64E"],
+ [0x6F51,"BCE2"],
+ [0x6F52,"E64D"],
+ [0x6F53,"E659"],
+ [0x6F54,"BCE4"],
+ [0x6F55,"E64B"],
+ [0x6F56,"9DA7"],
+ [0x6F57,"E64F"],
+ [0x6F58,"BCEF"],
+ [0x6F5A,"E646"],
+ [0x6F5B,"BCE7"],
+ [0x6F5C,"FDCD"],
+ [0x6F5D,"E652"],
+ [0x6F5E,"E9F0"],
+ [0x6F5F,"BCF3"],
+ [0x6F60,"BCF2"],
+ [0x6F61,"E654"],
+ [0x6F62,"E643"],
+ [0x6F63,"E65E"],
+ [0x6F64,"BCED"],
+ [0x6F66,"BCE3"],
+ [0x6F67,"E657"],
+ [0x6F69,"E65B"],
+ [0x6F6A,"E660"],
+ [0x6F6B,"E655"],
+ [0x6F6C,"E649"],
+ [0x6F6D,"BCE6"],
+ [0x6F6E,"BCE9"],
+ [0x6F6F,"BCF1"],
+ [0x6F70,"BCEC"],
+ [0x6F72,"E64C"],
+ [0x6F73,"E2A2"],
+ [0x6F74,"FDCF"],
+ [0x6F76,"E648"],
+ [0x6F77,"E65F"],
+ [0x6F78,"BCE8"],
+ [0x6F79,"95D2"],
+ [0x6F7A,"BCEB"],
+ [0x6F7B,"E661"],
+ [0x6F7C,"BCE0"],
+ [0x6F7D,"E656"],
+ [0x6F7E,"E5FB"],
+ [0x6F7F,"E65C"],
+ [0x6F80,"C0DF"],
+ [0x6F81,"8DED"],
+ [0x6F82,"E64A"],
+ [0x6F84,"BCE1"],
+ [0x6F85,"E645"],
+ [0x6F86,"BCE5"],
+ [0x6F87,"E5FC"],
+ [0x6F88,"BAAB"],
+ [0x6F89,"E641"],
+ [0x6F8A,"FCBA"],
+ [0x6F8B,"E65A"],
+ [0x6F8C,"E642"],
+ [0x6F8D,"E640"],
+ [0x6F8E,"BCEA"],
+ [0x6F90,"E658"],
+ [0x6F92,"E5FE"],
+ [0x6F93,"E651"],
+ [0x6F94,"E650"],
+ [0x6F95,"E65D"],
+ [0x6F96,"E647"],
+ [0x6F97,"BCEE"],
+ [0x6F9D,"FDC5"],
+ [0x6F9E,"E9F3"],
+ [0x6F9F,"FDD2"],
+ [0x6FA0,"BF49"],
+ [0x6FA1,"BEFE"],
+ [0x6FA2,"EA40"],
+ [0x6FA3,"E9EB"],
+ [0x6FA4,"BF41"],
+ [0x6FA5,"E9F7"],
+ [0x6FA6,"BF48"],
+ [0x6FA7,"BF43"],
+ [0x6FA8,"E9F5"],
+ [0x6FA9,"ED4F"],
+ [0x6FAA,"E9FB"],
+ [0x6FAB,"EA42"],
+ [0x6FAC,"E9FA"],
+ [0x6FAD,"E9E9"],
+ [0x6FAE,"E9F8"],
+ [0x6FAF,"EA44"],
+ [0x6FB0,"EA46"],
+ [0x6FB1,"BEFD"],
+ [0x6FB2,"EA45"],
+ [0x6FB3,"BF44"],
+ [0x6FB4,"BF4A"],
+ [0x6FB5,"9CDC"],
+ [0x6FB6,"BF47"],
+ [0x6FB8,"E9FE"],
+ [0x6FB9,"BF46"],
+ [0x6FBA,"E9F9"],
+ [0x6FBB,"95CF"],
+ [0x6FBC,"E9ED"],
+ [0x6FBD,"E9F2"],
+ [0x6FBE,"8DEE"],
+ [0x6FBF,"E9FD"],
+ [0x6FC0,"BF45"],
+ [0x6FC1,"BF42"],
+ [0x6FC2,"BEFC"],
+ [0x6FC3,"BF40"],
+ [0x6FC4,"E9F1"],
+ [0x6FC6,"E5FD"],
+ [0x6FC7,"E9EC"],
+ [0x6FC8,"E9EF"],
+ [0x6FC9,"EA41"],
+ [0x6FCA,"E9F4"],
+ [0x6FCB,"E9EA"],
+ [0x6FCC,"ED4E"],
+ [0x6FCD,"EA43"],
+ [0x6FCE,"E9EE"],
+ [0x6FCF,"E9FC"],
+ [0x6FD3,"FDD4"],
+ [0x6FD4,"ED51"],
+ [0x6FD5,"C0E3"],
+ [0x6FD8,"C0D7"],
+ [0x6FD9,"96EC"],
+ [0x6FDA,"96EB"],
+ [0x6FDB,"C0DB"],
+ [0x6FDC,"ED53"],
+ [0x6FDD,"ED59"],
+ [0x6FDE,"ED57"],
+ [0x6FDF,"C0D9"],
+ [0x6FE0,"C0DA"],
+ [0x6FE1,"C0E1"],
+ [0x6FE2,"ED5A"],
+ [0x6FE3,"ED52"],
+ [0x6FE4,"C0DC"],
+ [0x6FE6,"ED56"],
+ [0x6FE7,"ED55"],
+ [0x6FE8,"ED5B"],
+ [0x6FE9,"C0E2"],
+ [0x6FEB,"C0DD"],
+ [0x6FEC,"C0E0"],
+ [0x6FED,"ED54"],
+ [0x6FEE,"C0E4"],
+ [0x6FEF,"C0DE"],
+ [0x6FF0,"C0E5"],
+ [0x6FF1,"C0D8"],
+ [0x6FF2,"ED58"],
+ [0x6FF4,"ED50"],
+ [0x6FF6,"90B6"],
+ [0x6FF7,"EFF7"],
+ [0x6FF8,"FDC3"],
+ [0x6FFA,"C271"],
+ [0x6FFB,"EFF4"],
+ [0x6FFC,"EFF6"],
+ [0x6FFE,"C26F"],
+ [0x6FFF,"EFF2"],
+ [0x7000,"EFF3"],
+ [0x7001,"EFEE"],
+ [0x7003,"98AB"],
+ [0x7004,"E9F6"],
+ [0x7005,"EFEF"],
+ [0x7006,"C270"],
+ [0x7007,"EFEB"],
+ [0x7009,"C26D"],
+ [0x700A,"EFF8"],
+ [0x700B,"C26E"],
+ [0x700C,"EFEC"],
+ [0x700D,"EFED"],
+ [0x700E,"EFF1"],
+ [0x700F,"C273"],
+ [0x7011,"C272"],
+ [0x7014,"EFF0"],
+ [0x7015,"C378"],
+ [0x7016,"F25F"],
+ [0x7017,"F265"],
+ [0x7018,"C379"],
+ [0x7019,"F25C"],
+ [0x701A,"C376"],
+ [0x701B,"C373"],
+ [0x701C,"F267"],
+ [0x701D,"C377"],
+ [0x701E,"96EE"],
+ [0x701F,"C374"],
+ [0x7020,"F25E"],
+ [0x7021,"F261"],
+ [0x7022,"F262"],
+ [0x7023,"F263"],
+ [0x7024,"F266"],
+ [0x7026,"EFF5"],
+ [0x7027,"F25D"],
+ [0x7028,"C375"],
+ [0x7029,"F264"],
+ [0x702A,"F268"],
+ [0x702B,"F260"],
+ [0x702C,"8DF4"],
+ [0x702F,"F45D"],
+ [0x7030,"C46A"],
+ [0x7031,"F460"],
+ [0x7032,"C46B"],
+ [0x7033,"F468"],
+ [0x7034,"F45F"],
+ [0x7035,"F45C"],
+ [0x7037,"F45E"],
+ [0x7038,"F462"],
+ [0x7039,"F465"],
+ [0x703A,"F464"],
+ [0x703B,"F467"],
+ [0x703C,"F45B"],
+ [0x703E,"C469"],
+ [0x703F,"F463"],
+ [0x7040,"F466"],
+ [0x7041,"F469"],
+ [0x7042,"F461"],
+ [0x7043,"F5D3"],
+ [0x7044,"F5D4"],
+ [0x7045,"F5D8"],
+ [0x7046,"F5D9"],
+ [0x7048,"F5D6"],
+ [0x7049,"F5D7"],
+ [0x704A,"F5D5"],
+ [0x704B,"FDE0"],
+ [0x704C,"C4E9"],
+ [0x704D,"8C67"],
+ [0x7050,"8DF6"],
+ [0x7051,"C578"],
+ [0x7052,"F6EB"],
+ [0x7054,"8DF7"],
+ [0x7055,"F6E8"],
+ [0x7056,"F6E9"],
+ [0x7057,"F6EA"],
+ [0x7058,"C579"],
+ [0x705A,"F7E5"],
+ [0x705B,"F7E4"],
+ [0x705C,"8FFA"],
+ [0x705D,"F8AF"],
+ [0x705E,"C5F4"],
+ [0x705F,"F8AD"],
+ [0x7060,"F8B0"],
+ [0x7061,"F8AE"],
+ [0x7062,"F8F5"],
+ [0x7063,"C657"],
+ [0x7064,"C665"],
+ [0x7065,"F9A3"],
+ [0x7066,"F96C"],
+ [0x7067,"97D0"],
+ [0x7068,"F9A2"],
+ [0x7069,"F9D0"],
+ [0x706A,"F9D1"],
+ [0x706B,"A4F5"],
+ [0x706C,"8BD2"],
+ [0x706E,"87DE"],
+ [0x706F,"8DF8"],
+ [0x7070,"A6C7"],
+ [0x7071,"CA41"],
+ [0x7074,"CB5E"],
+ [0x7075,"90D9"],
+ [0x7076,"A85F"],
+ [0x7077,"8C47"],
+ [0x7078,"A862"],
+ [0x7079,"FAF0"],
+ [0x707A,"CB5F"],
+ [0x707C,"A860"],
+ [0x707D,"A861"],
+ [0x707E,"FDE1"],
+ [0x707F,"8DF9"],
+ [0x7081,"FDE3"],
+ [0x7082,"CD58"],
+ [0x7083,"CD5A"],
+ [0x7084,"CD55"],
+ [0x7085,"CD52"],
+ [0x7086,"CD54"],
+ [0x7089,"8DFA"],
+ [0x708A,"AAA4"],
+ [0x708B,"FB63"],
+ [0x708E,"AAA2"],
+ [0x708F,"90A6"],
+ [0x7091,"CD56"],
+ [0x7092,"AAA3"],
+ [0x7093,"CD53"],
+ [0x7094,"CD50"],
+ [0x7095,"AAA1"],
+ [0x7096,"CD57"],
+ [0x7098,"CD51"],
+ [0x7099,"AAA5"],
+ [0x709A,"CD59"],
+ [0x709F,"CFAF"],
+ [0x70A0,"9970"],
+ [0x70A1,"CFB3"],
+ [0x70A3,"91EB"],
+ [0x70A4,"ACB7"],
+ [0x70A5,"9770"],
+ [0x70A6,"986F"],
+ [0x70A7,"FDE2"],
+ [0x70A9,"CFB6"],
+ [0x70AB,"ACAF"],
+ [0x70AC,"ACB2"],
+ [0x70AD,"ACB4"],
+ [0x70AE,"ACB6"],
+ [0x70AF,"ACB3"],
+ [0x70B0,"CFB2"],
+ [0x70B1,"CFB1"],
+ [0x70B3,"ACB1"],
+ [0x70B4,"CFB4"],
+ [0x70B5,"CFB5"],
+ [0x70B7,"CFAE"],
+ [0x70B8,"ACB5"],
+ [0x70B9,"98F2"],
+ [0x70BA,"ACB0"],
+ [0x70BB,"9AFC"],
+ [0x70BC,"896C"],
+ [0x70BD,"FDFD"],
+ [0x70BE,"CFB0"],
+ [0x70C0,"995E"],
+ [0x70C4,"95BD"],
+ [0x70C5,"D277"],
+ [0x70C6,"D278"],
+ [0x70C7,"D279"],
+ [0x70C8,"AF50"],
+ [0x70CA,"AF4C"],
+ [0x70CB,"D26E"],
+ [0x70CC,"FDE4"],
+ [0x70CD,"D276"],
+ [0x70CE,"D27B"],
+ [0x70CF,"AF51"],
+ [0x70D0,"91E6"],
+ [0x70D1,"D26C"],
+ [0x70D2,"D272"],
+ [0x70D3,"D26B"],
+ [0x70D4,"D275"],
+ [0x70D5,"FDE5"],
+ [0x70D6,"FDE6"],
+ [0x70D7,"D271"],
+ [0x70D8,"AF4D"],
+ [0x70D9,"AF4F"],
+ [0x70DA,"D27A"],
+ [0x70DC,"D26A"],
+ [0x70DD,"D26D"],
+ [0x70DE,"D273"],
+ [0x70DF,"FDE7"],
+ [0x70E0,"D274"],
+ [0x70E1,"D27C"],
+ [0x70E2,"D270"],
+ [0x70E4,"AF4E"],
+ [0x70EF,"B26D"],
+ [0x70F0,"D64E"],
+ [0x70F1,"9454"],
+ [0x70F3,"D650"],
+ [0x70F4,"D64C"],
+ [0x70F5,"99B8"],
+ [0x70F6,"D658"],
+ [0x70F7,"D64A"],
+ [0x70F8,"D657"],
+ [0x70F9,"B269"],
+ [0x70FA,"D648"],
+ [0x70FB,"DA5B"],
+ [0x70FC,"D652"],
+ [0x70FD,"B26C"],
+ [0x70FE,"97E9"],
+ [0x70FF,"D653"],
+ [0x7100,"D656"],
+ [0x7102,"D65A"],
+ [0x7104,"D64F"],
+ [0x7105,"9346"],
+ [0x7106,"D654"],
+ [0x7109,"B26A"],
+ [0x710A,"B26B"],
+ [0x710B,"D659"],
+ [0x710C,"D64D"],
+ [0x710D,"D649"],
+ [0x710E,"D65B"],
+ [0x7110,"D651"],
+ [0x7113,"D655"],
+ [0x7117,"D64B"],
+ [0x7119,"B548"],
+ [0x711A,"B549"],
+ [0x711B,"DA65"],
+ [0x711C,"B54F"],
+ [0x711D,"9863"],
+ [0x711E,"DA59"],
+ [0x711F,"DA62"],
+ [0x7120,"DA58"],
+ [0x7121,"B54C"],
+ [0x7122,"DA60"],
+ [0x7123,"DA5E"],
+ [0x7125,"DA5F"],
+ [0x7126,"B54A"],
+ [0x7128,"DA63"],
+ [0x7129,"95BC"],
+ [0x712B,"FDED"],
+ [0x712C,"FDF7"],
+ [0x712E,"DA5C"],
+ [0x712F,"DA5A"],
+ [0x7130,"B54B"],
+ [0x7131,"DA5D"],
+ [0x7132,"DA61"],
+ [0x7133,"9870"],
+ [0x7134,"96F6"],
+ [0x7135,"8EA9"],
+ [0x7136,"B54D"],
+ [0x713A,"DA64"],
+ [0x713B,"9451"],
+ [0x713E,"8E43"],
+ [0x7140,"8B5A"],
+ [0x7141,"DE70"],
+ [0x7142,"DE77"],
+ [0x7143,"DE79"],
+ [0x7144,"DEA1"],
+ [0x7145,"FDEE"],
+ [0x7146,"B7DA"],
+ [0x7147,"DE6B"],
+ [0x7149,"B7D2"],
+ [0x714A,"FDF0"],
+ [0x714B,"DE7A"],
+ [0x714C,"B7D7"],
+ [0x714D,"DEA2"],
+ [0x714E,"B7CE"],
+ [0x714F,"FDF4"],
+ [0x7150,"DE7D"],
+ [0x7151,"9BF5"],
+ [0x7152,"DE6D"],
+ [0x7153,"DE7E"],
+ [0x7154,"DE6C"],
+ [0x7156,"B7DC"],
+ [0x7157,"8CEE"],
+ [0x7158,"DE78"],
+ [0x7159,"B7CF"],
+ [0x715A,"DEA3"],
+ [0x715C,"B7D4"],
+ [0x715D,"DE71"],
+ [0x715E,"B7D9"],
+ [0x715F,"DE7C"],
+ [0x7160,"DE6F"],
+ [0x7161,"DE76"],
+ [0x7162,"DE72"],
+ [0x7163,"DE6E"],
+ [0x7164,"B7D1"],
+ [0x7165,"B7D8"],
+ [0x7166,"B7D6"],
+ [0x7167,"B7D3"],
+ [0x7168,"B7DB"],
+ [0x7169,"B7D0"],
+ [0x716A,"DE75"],
+ [0x716B,"977E"],
+ [0x716C,"B7D5"],
+ [0x716E,"B54E"],
+ [0x7170,"DE7B"],
+ [0x7171,"9BD5"],
+ [0x7172,"DE73"],
+ [0x7173,"9AC3"],
+ [0x7175,"97C8"],
+ [0x7176,"A0DB"],
+ [0x7177,"91D0"],
+ [0x7178,"DE74"],
+ [0x717A,"9FE4"],
+ [0x717B,"E2C1"],
+ [0x717C,"8FDD"],
+ [0x717D,"BAB4"],
+ [0x717E,"91E9"],
+ [0x7180,"E2BD"],
+ [0x7181,"E2C3"],
+ [0x7182,"E2BF"],
+ [0x7184,"BAB6"],
+ [0x7185,"E2BE"],
+ [0x7186,"E2C2"],
+ [0x7187,"E2BA"],
+ [0x7188,"98E0"],
+ [0x7189,"E2BC"],
+ [0x718A,"BAB5"],
+ [0x718C,"92CA"],
+ [0x718E,"9857"],
+ [0x718F,"E2C0"],
+ [0x7190,"E2BB"],
+ [0x7191,"8C51"],
+ [0x7192,"BAB7"],
+ [0x7194,"BAB2"],
+ [0x7196,"FDEB"],
+ [0x7197,"E2C4"],
+ [0x7198,"9B49"],
+ [0x7199,"BAB3"],
+ [0x719A,"E667"],
+ [0x719B,"E664"],
+ [0x719C,"E670"],
+ [0x719D,"E66A"],
+ [0x719E,"E66C"],
+ [0x719F,"BCF4"],
+ [0x71A0,"E666"],
+ [0x71A1,"E66E"],
+ [0x71A2,"9D76"],
+ [0x71A3,"9EAF"],
+ [0x71A4,"E66D"],
+ [0x71A5,"E66B"],
+ [0x71A7,"E671"],
+ [0x71A8,"BCF7"],
+ [0x71A9,"E668"],
+ [0x71AA,"E66F"],
+ [0x71AC,"BCF5"],
+ [0x71AD,"9CCC"],
+ [0x71AF,"E663"],
+ [0x71B0,"E665"],
+ [0x71B1,"BCF6"],
+ [0x71B2,"E662"],
+ [0x71B3,"E672"],
+ [0x71B4,"FDEA"],
+ [0x71B5,"E669"],
+ [0x71B7,"8DF1"],
+ [0x71B8,"EA4A"],
+ [0x71B9,"BF51"],
+ [0x71BA,"FDFB"],
+ [0x71BC,"EA55"],
+ [0x71BD,"EA53"],
+ [0x71BE,"BF4B"],
+ [0x71BF,"EA49"],
+ [0x71C0,"EA4C"],
+ [0x71C1,"EA4D"],
+ [0x71C2,"EA48"],
+ [0x71C3,"BF55"],
+ [0x71C4,"BF56"],
+ [0x71C5,"EA47"],
+ [0x71C6,"EA56"],
+ [0x71C7,"EA51"],
+ [0x71C8,"BF4F"],
+ [0x71C9,"BF4C"],
+ [0x71CA,"EA50"],
+ [0x71CB,"EA4E"],
+ [0x71CE,"BF52"],
+ [0x71CF,"EA52"],
+ [0x71D0,"BF4D"],
+ [0x71D1,"8E53"],
+ [0x71D2,"BF4E"],
+ [0x71D4,"EA4F"],
+ [0x71D5,"BF50"],
+ [0x71D6,"EA4B"],
+ [0x71D8,"EA54"],
+ [0x71D9,"BF53"],
+ [0x71DA,"EA57"],
+ [0x71DB,"EA58"],
+ [0x71DC,"BF54"],
+ [0x71DD,"FACF"],
+ [0x71DF,"C0E7"],
+ [0x71E0,"C0EE"],
+ [0x71E1,"ED5C"],
+ [0x71E2,"ED62"],
+ [0x71E4,"ED60"],
+ [0x71E5,"C0EA"],
+ [0x71E6,"C0E9"],
+ [0x71E7,"C0E6"],
+ [0x71E8,"ED5E"],
+ [0x71EB,"96F9"],
+ [0x71EC,"C0EC"],
+ [0x71ED,"C0EB"],
+ [0x71EE,"C0E8"],
+ [0x71F0,"ED61"],
+ [0x71F1,"ED5D"],
+ [0x71F2,"ED5F"],
+ [0x71F4,"C0ED"],
+ [0x71F5,"98BF"],
+ [0x71F6,"9E49"],
+ [0x71F8,"C277"],
+ [0x71F9,"EFFB"],
+ [0x71FB,"C274"],
+ [0x71FC,"C275"],
+ [0x71FD,"EFFD"],
+ [0x71FE,"C276"],
+ [0x71FF,"EFFA"],
+ [0x7200,"8CA7"],
+ [0x7201,"EFF9"],
+ [0x7202,"F26C"],
+ [0x7203,"EFFC"],
+ [0x7205,"F26D"],
+ [0x7206,"C37A"],
+ [0x7207,"F26B"],
+ [0x7209,"9BCA"],
+ [0x720A,"F26A"],
+ [0x720C,"F269"],
+ [0x720D,"C37B"],
+ [0x720E,"FDFE"],
+ [0x720F,"92DC"],
+ [0x7210,"C46C"],
+ [0x7213,"F46A"],
+ [0x7214,"F46B"],
+ [0x7215,"FE41"],
+ [0x7216,"91CC"],
+ [0x7217,"91E2"],
+ [0x7219,"F5DC"],
+ [0x721A,"F5DB"],
+ [0x721B,"C4EA"],
+ [0x721D,"F5DA"],
+ [0x721E,"F6EC"],
+ [0x721F,"F6ED"],
+ [0x7222,"F7E6"],
+ [0x7223,"F8B1"],
+ [0x7224,"FE44"],
+ [0x7225,"875F"],
+ [0x7226,"F8F6"],
+ [0x7227,"F9BC"],
+ [0x7228,"C679"],
+ [0x7229,"F9C6"],
+ [0x722A,"A4F6"],
+ [0x722B,"8BD3"],
+ [0x722C,"AAA6"],
+ [0x722D,"AAA7"],
+ [0x722E,"FE47"],
+ [0x7230,"ACB8"],
+ [0x7235,"C0EF"],
+ [0x7236,"A4F7"],
+ [0x7238,"AAA8"],
+ [0x7239,"AF52"],
+ [0x723A,"B7DD"],
+ [0x723B,"A4F8"],
+ [0x723D,"B26E"],
+ [0x723E,"BAB8"],
+ [0x723F,"C962"],
+ [0x7240,"FE48"],
+ [0x7241,"CFB7"],
+ [0x7242,"D27D"],
+ [0x7244,"E2C5"],
+ [0x7246,"C0F0"],
+ [0x7247,"A4F9"],
+ [0x7248,"AAA9"],
+ [0x7249,"CFB8"],
+ [0x724A,"CFB9"],
+ [0x724B,"DA66"],
+ [0x724C,"B550"],
+ [0x724F,"DEA4"],
+ [0x7250,"9455"],
+ [0x7252,"B7DE"],
+ [0x7253,"E2C6"],
+ [0x7255,"FE4B"],
+ [0x7256,"BCF8"],
+ [0x7257,"FE4C"],
+ [0x7258,"C37C"],
+ [0x7259,"A4FA"],
+ [0x725A,"DA67"],
+ [0x725B,"A4FB"],
+ [0x725C,"8DBF"],
+ [0x725D,"A6C9"],
+ [0x725E,"CA42"],
+ [0x725F,"A6C8"],
+ [0x7260,"A865"],
+ [0x7261,"A864"],
+ [0x7262,"A863"],
+ [0x7263,"CB60"],
+ [0x7266,"9E78"],
+ [0x7267,"AAAA"],
+ [0x7269,"AAAB"],
+ [0x726A,"CD5B"],
+ [0x726C,"CFBA"],
+ [0x726E,"CFBD"],
+ [0x726F,"ACBA"],
+ [0x7270,"CFBB"],
+ [0x7272,"ACB9"],
+ [0x7273,"CFBC"],
+ [0x7274,"ACBB"],
+ [0x7276,"D2A2"],
+ [0x7277,"D2A1"],
+ [0x7278,"D27E"],
+ [0x7279,"AF53"],
+ [0x727B,"D65D"],
+ [0x727C,"D65E"],
+ [0x727D,"B26F"],
+ [0x727E,"D65C"],
+ [0x727F,"D65F"],
+ [0x7280,"B552"],
+ [0x7281,"B270"],
+ [0x7282,"FE51"],
+ [0x7284,"B551"],
+ [0x7285,"DA6B"],
+ [0x7286,"DA6A"],
+ [0x7287,"9456"],
+ [0x7288,"DA68"],
+ [0x7289,"DA69"],
+ [0x728B,"DA6C"],
+ [0x728C,"DEA6"],
+ [0x728D,"DEA5"],
+ [0x728E,"DEA9"],
+ [0x728F,"9D61"],
+ [0x7290,"DEA8"],
+ [0x7291,"DEA7"],
+ [0x7292,"BAB9"],
+ [0x7293,"E2C9"],
+ [0x7294,"9457"],
+ [0x7295,"E2C8"],
+ [0x7296,"BABA"],
+ [0x7297,"E2C7"],
+ [0x7298,"E673"],
+ [0x729A,"E674"],
+ [0x729B,"BCF9"],
+ [0x729D,"EA59"],
+ [0x729E,"EA5A"],
+ [0x729F,"9966"],
+ [0x72A1,"F272"],
+ [0x72A2,"C37D"],
+ [0x72A3,"F271"],
+ [0x72A4,"F270"],
+ [0x72A5,"F26E"],
+ [0x72A6,"F26F"],
+ [0x72A7,"C4EB"],
+ [0x72A8,"F46C"],
+ [0x72A9,"F6EE"],
+ [0x72AA,"F8F7"],
+ [0x72AC,"A4FC"],
+ [0x72AD,"8BD5"],
+ [0x72AE,"C9A5"],
+ [0x72AF,"A5C7"],
+ [0x72B0,"C9A6"],
+ [0x72B2,"A069"],
+ [0x72B4,"CA43"],
+ [0x72B5,"CA44"],
+ [0x72BA,"CB66"],
+ [0x72BD,"CB62"],
+ [0x72BF,"CB61"],
+ [0x72C0,"AAAC"],
+ [0x72C1,"CB65"],
+ [0x72C2,"A867"],
+ [0x72C3,"CB63"],
+ [0x72C4,"A866"],
+ [0x72C5,"CB67"],
+ [0x72C6,"CB64"],
+ [0x72C9,"CD5F"],
+ [0x72CA,"CFBE"],
+ [0x72CB,"CD5D"],
+ [0x72CC,"CD64"],
+ [0x72CD,"98B4"],
+ [0x72CE,"AAAD"],
+ [0x72D0,"AAB0"],
+ [0x72D1,"CD65"],
+ [0x72D2,"CD61"],
+ [0x72D4,"CD62"],
+ [0x72D6,"CD5C"],
+ [0x72D7,"AAAF"],
+ [0x72D8,"CD5E"],
+ [0x72D9,"AAAE"],
+ [0x72DA,"CD63"],
+ [0x72DC,"CD60"],
+ [0x72DF,"CFC2"],
+ [0x72E0,"ACBD"],
+ [0x72E1,"ACBE"],
+ [0x72E2,"A049"],
+ [0x72E3,"CFC5"],
+ [0x72E4,"CFBF"],
+ [0x72E6,"CFC4"],
+ [0x72E8,"CFC0"],
+ [0x72E9,"ACBC"],
+ [0x72EA,"CFC3"],
+ [0x72EB,"CFC1"],
+ [0x72F3,"D2A8"],
+ [0x72F4,"D2A5"],
+ [0x72F6,"D2A7"],
+ [0x72F7,"AF58"],
+ [0x72F8,"AF57"],
+ [0x72F9,"AF55"],
+ [0x72FA,"D2A4"],
+ [0x72FB,"D2A9"],
+ [0x72FC,"AF54"],
+ [0x72FD,"AF56"],
+ [0x72FE,"D2A6"],
+ [0x72FF,"D667"],
+ [0x7300,"D2A3"],
+ [0x7301,"D2AA"],
+ [0x7302,"A04C"],
+ [0x7304,"9E65"],
+ [0x7307,"D662"],
+ [0x7308,"D666"],
+ [0x730A,"D665"],
+ [0x730B,"DA6E"],
+ [0x730C,"DA79"],
+ [0x730F,"D668"],
+ [0x7310,"98B5"],
+ [0x7311,"D663"],
+ [0x7312,"DA6D"],
+ [0x7313,"B274"],
+ [0x7316,"B273"],
+ [0x7317,"D661"],
+ [0x7318,"D664"],
+ [0x7319,"B275"],
+ [0x731B,"B272"],
+ [0x731C,"B271"],
+ [0x731D,"D660"],
+ [0x731E,"D669"],
+ [0x7322,"DA70"],
+ [0x7323,"DA77"],
+ [0x7325,"B554"],
+ [0x7326,"DA76"],
+ [0x7327,"DA73"],
+ [0x7328,"FE58"],
+ [0x7329,"B556"],
+ [0x732A,"9975"],
+ [0x732B,"FE53"],
+ [0x732C,"A065"],
+ [0x732D,"DA75"],
+ [0x732E,"FE59"],
+ [0x7330,"DA6F"],
+ [0x7331,"DA71"],
+ [0x7332,"DA74"],
+ [0x7333,"DA72"],
+ [0x7334,"B555"],
+ [0x7335,"DA78"],
+ [0x7336,"B553"],
+ [0x7337,"B7DF"],
+ [0x7338,"98B7"],
+ [0x7339,"98B8"],
+ [0x733A,"DEAD"],
+ [0x733B,"DEAC"],
+ [0x733C,"DEAA"],
+ [0x733E,"B7E2"],
+ [0x733F,"B7E1"],
+ [0x7340,"DEAE"],
+ [0x7341,"98BA"],
+ [0x7342,"DEAB"],
+ [0x7343,"E2CA"],
+ [0x7344,"BABB"],
+ [0x7345,"B7E0"],
+ [0x7348,"98BB"],
+ [0x7349,"DEB0"],
+ [0x734A,"DEAF"],
+ [0x734C,"E2CD"],
+ [0x734D,"E2CB"],
+ [0x734E,"BCFA"],
+ [0x734F,"9FBC"],
+ [0x7350,"BABC"],
+ [0x7351,"E2CC"],
+ [0x7352,"E676"],
+ [0x7357,"BCFB"],
+ [0x7358,"E675"],
+ [0x7359,"E67E"],
+ [0x735A,"E67D"],
+ [0x735B,"E67B"],
+ [0x735D,"E67A"],
+ [0x735E,"E677"],
+ [0x735F,"E678"],
+ [0x7360,"E679"],
+ [0x7361,"E67C"],
+ [0x7362,"E6A1"],
+ [0x7365,"EA5F"],
+ [0x7366,"EA5C"],
+ [0x7367,"EA5D"],
+ [0x7368,"BF57"],
+ [0x7369,"EA5B"],
+ [0x736A,"EA61"],
+ [0x736B,"EA60"],
+ [0x736C,"EA5E"],
+ [0x736E,"ED64"],
+ [0x736F,"ED65"],
+ [0x7370,"C0F1"],
+ [0x7371,"A04A"],
+ [0x7372,"C0F2"],
+ [0x7373,"ED63"],
+ [0x7374,"9EC7"],
+ [0x7375,"C279"],
+ [0x7376,"EFFE"],
+ [0x7377,"C278"],
+ [0x7378,"C37E"],
+ [0x737A,"C3A1"],
+ [0x737B,"C46D"],
+ [0x737C,"F46E"],
+ [0x737D,"F46D"],
+ [0x737E,"F5DD"],
+ [0x737F,"F6EF"],
+ [0x7380,"C57A"],
+ [0x7381,"F7E8"],
+ [0x7382,"F7E7"],
+ [0x7383,"F7E9"],
+ [0x7384,"A5C8"],
+ [0x7385,"CFC6"],
+ [0x7386,"AF59"],
+ [0x7387,"B276"],
+ [0x7388,"D66A"],
+ [0x7389,"A5C9"],
+ [0x738A,"C9A7"],
+ [0x738B,"A4FD"],
+ [0x738C,"8CA9"],
+ [0x738E,"CA45"],
+ [0x738F,"98AE"],
+ [0x7392,"CB6C"],
+ [0x7393,"CB6A"],
+ [0x7394,"CB6B"],
+ [0x7395,"CB68"],
+ [0x7396,"A868"],
+ [0x7397,"CB69"],
+ [0x7398,"92D6"],
+ [0x739C,"FAE1"],
+ [0x739D,"CD6D"],
+ [0x739E,"91D4"],
+ [0x739F,"AAB3"],
+ [0x73A0,"CD6B"],
+ [0x73A1,"CD67"],
+ [0x73A2,"CD6A"],
+ [0x73A4,"CD66"],
+ [0x73A5,"AAB5"],
+ [0x73A6,"CD69"],
+ [0x73A7,"FADE"],
+ [0x73A8,"AAB2"],
+ [0x73A9,"AAB1"],
+ [0x73AA,"FE5B"],
+ [0x73AB,"AAB4"],
+ [0x73AC,"CD6C"],
+ [0x73AD,"CD68"],
+ [0x73B2,"ACC2"],
+ [0x73B3,"ACC5"],
+ [0x73B4,"CFCE"],
+ [0x73B5,"CFCD"],
+ [0x73B6,"CFCC"],
+ [0x73B7,"ACBF"],
+ [0x73B8,"CFD5"],
+ [0x73B9,"CFCB"],
+ [0x73BA,"8C53"],
+ [0x73BB,"ACC1"],
+ [0x73BC,"D2AF"],
+ [0x73BE,"CFD2"],
+ [0x73BF,"CFD0"],
+ [0x73C0,"ACC4"],
+ [0x73C2,"CFC8"],
+ [0x73C3,"CFD3"],
+ [0x73C4,"87BF"],
+ [0x73C5,"CFCA"],
+ [0x73C6,"CFD4"],
+ [0x73C7,"CFD1"],
+ [0x73C8,"CFC9"],
+ [0x73C9,"FE5E"],
+ [0x73CA,"ACC0"],
+ [0x73CB,"CFD6"],
+ [0x73CC,"CFC7"],
+ [0x73CD,"ACC3"],
+ [0x73CE,"FBD7"],
+ [0x73CF,"FE5A"],
+ [0x73D0,"94C5"],
+ [0x73D2,"D2B4"],
+ [0x73D3,"D2AB"],
+ [0x73D4,"D2B6"],
+ [0x73D5,"FACA"],
+ [0x73D6,"D2AE"],
+ [0x73D7,"D2B9"],
+ [0x73D8,"D2BA"],
+ [0x73D9,"D2AC"],
+ [0x73DA,"D2B8"],
+ [0x73DB,"D2B5"],
+ [0x73DC,"D2B3"],
+ [0x73DD,"D2B7"],
+ [0x73DE,"AF5F"],
+ [0x73E0,"AF5D"],
+ [0x73E1,"98C1"],
+ [0x73E2,"975C"],
+ [0x73E3,"D2B1"],
+ [0x73E4,"FE74"],
+ [0x73E5,"D2AD"],
+ [0x73E6,"9773"],
+ [0x73E7,"D2B0"],
+ [0x73E8,"D2BB"],
+ [0x73E9,"D2B2"],
+ [0x73EA,"AF5E"],
+ [0x73EB,"CFCF"],
+ [0x73ED,"AF5A"],
+ [0x73EE,"AF5C"],
+ [0x73EF,"FA46"],
+ [0x73F3,"9764"],
+ [0x73F4,"D678"],
+ [0x73F5,"D66D"],
+ [0x73F6,"D66B"],
+ [0x73F7,"FE68"],
+ [0x73F8,"D66C"],
+ [0x73F9,"964E"],
+ [0x73FA,"D673"],
+ [0x73FB,"9765"],
+ [0x73FC,"D674"],
+ [0x73FD,"D670"],
+ [0x73FE,"B27B"],
+ [0x73FF,"D675"],
+ [0x7400,"D672"],
+ [0x7401,"D66F"],
+ [0x7402,"8C5A"],
+ [0x7403,"B279"],
+ [0x7404,"D66E"],
+ [0x7405,"B277"],
+ [0x7406,"B27A"],
+ [0x7407,"D671"],
+ [0x7408,"D679"],
+ [0x7409,"AF5B"],
+ [0x740A,"B278"],
+ [0x740B,"D677"],
+ [0x740C,"D676"],
+ [0x740D,"B27C"],
+ [0x7411,"89A1"],
+ [0x7412,"95FA"],
+ [0x7414,"92D4"],
+ [0x7415,"FE69"],
+ [0x7416,"DA7E"],
+ [0x7417,"FB45"],
+ [0x7419,"98C8"],
+ [0x741A,"DAA1"],
+ [0x741B,"B560"],
+ [0x741C,"90EF"],
+ [0x741D,"DAA7"],
+ [0x741E,"98C9"],
+ [0x741F,"98CA"],
+ [0x7420,"DAA9"],
+ [0x7421,"DAA2"],
+ [0x7422,"B55A"],
+ [0x7423,"DAA6"],
+ [0x7424,"DAA5"],
+ [0x7425,"B55B"],
+ [0x7426,"B561"],
+ [0x7428,"B562"],
+ [0x7429,"DAA8"],
+ [0x742A,"B558"],
+ [0x742B,"DA7D"],
+ [0x742C,"DA7B"],
+ [0x742D,"DAA3"],
+ [0x742E,"DA7A"],
+ [0x742F,"B55F"],
+ [0x7430,"DA7C"],
+ [0x7431,"DAA4"],
+ [0x7432,"DAAA"],
+ [0x7433,"B559"],
+ [0x7434,"B55E"],
+ [0x7435,"B55C"],
+ [0x7436,"B55D"],
+ [0x7437,"946D"],
+ [0x7438,"94B7"],
+ [0x7439,"FE6C"],
+ [0x743A,"B557"],
+ [0x743C,"946B"],
+ [0x743F,"B7E9"],
+ [0x7440,"DEB7"],
+ [0x7441,"B7E8"],
+ [0x7442,"DEBB"],
+ [0x7443,"92FC"],
+ [0x7444,"DEB1"],
+ [0x7445,"95EB"],
+ [0x7446,"DEBC"],
+ [0x7447,"FE73"],
+ [0x7448,"976E"],
+ [0x7449,"FE5F"],
+ [0x744A,"DEB2"],
+ [0x744B,"DEB3"],
+ [0x744C,"87B8"],
+ [0x744D,"DEBD"],
+ [0x744E,"DEBA"],
+ [0x744F,"DEB8"],
+ [0x7450,"DEB9"],
+ [0x7451,"DEB5"],
+ [0x7452,"DEB4"],
+ [0x7453,"FDBD"],
+ [0x7454,"DEBE"],
+ [0x7455,"B7E5"],
+ [0x7456,"92D5"],
+ [0x7457,"DEB6"],
+ [0x7459,"B7EA"],
+ [0x745A,"B7E4"],
+ [0x745B,"B7EB"],
+ [0x745C,"B7EC"],
+ [0x745D,"FEB9"],
+ [0x745E,"B7E7"],
+ [0x745F,"B7E6"],
+ [0x7460,"FE71"],
+ [0x7461,"8778"],
+ [0x7462,"E2CE"],
+ [0x7463,"BABE"],
+ [0x7464,"BABD"],
+ [0x7465,"FBBB"],
+ [0x7467,"E2D3"],
+ [0x7468,"947A"],
+ [0x7469,"BCFC"],
+ [0x746A,"BABF"],
+ [0x746B,"95FB"],
+ [0x746C,"FE77"],
+ [0x746D,"BAC1"],
+ [0x746E,"E2D4"],
+ [0x746F,"B7E3"],
+ [0x7470,"BAC0"],
+ [0x7471,"E2D0"],
+ [0x7472,"E2D2"],
+ [0x7473,"E2CF"],
+ [0x7474,"FE79"],
+ [0x7475,"E2D1"],
+ [0x7476,"FE75"],
+ [0x7479,"E6AB"],
+ [0x747A,"945D"],
+ [0x747C,"E6AA"],
+ [0x747D,"E6A7"],
+ [0x747E,"BD40"],
+ [0x747F,"EA62"],
+ [0x7480,"BD41"],
+ [0x7481,"E6A6"],
+ [0x7482,"FE7C"],
+ [0x7483,"BCFE"],
+ [0x7485,"E6A8"],
+ [0x7486,"E6A5"],
+ [0x7487,"E6A2"],
+ [0x7488,"E6A9"],
+ [0x7489,"E6A3"],
+ [0x748A,"E6A4"],
+ [0x748B,"BCFD"],
+ [0x748C,"9344"],
+ [0x748D,"8EA6"],
+ [0x7490,"ED69"],
+ [0x7492,"EA66"],
+ [0x7494,"EA65"],
+ [0x7495,"EA67"],
+ [0x7497,"ED66"],
+ [0x7498,"BF5A"],
+ [0x7499,"92D3"],
+ [0x749A,"EA63"],
+ [0x749B,"94B8"],
+ [0x749C,"BF58"],
+ [0x749D,"8779"],
+ [0x749E,"BF5C"],
+ [0x749F,"BF5B"],
+ [0x74A0,"EA64"],
+ [0x74A1,"EA68"],
+ [0x74A3,"BF59"],
+ [0x74A4,"FC71"],
+ [0x74A5,"ED6D"],
+ [0x74A6,"C0F5"],
+ [0x74A7,"C27A"],
+ [0x74A8,"C0F6"],
+ [0x74A9,"C0F3"],
+ [0x74AA,"ED6A"],
+ [0x74AB,"ED68"],
+ [0x74AD,"ED6B"],
+ [0x74AF,"ED6E"],
+ [0x74B0,"C0F4"],
+ [0x74B1,"ED6C"],
+ [0x74B2,"ED67"],
+ [0x74B4,"975E"],
+ [0x74B5,"F042"],
+ [0x74B6,"F045"],
+ [0x74B7,"F275"],
+ [0x74B8,"F040"],
+ [0x74B9,"8CAD"],
+ [0x74BA,"F46F"],
+ [0x74BB,"F046"],
+ [0x74BD,"C3A2"],
+ [0x74BE,"F044"],
+ [0x74BF,"C27B"],
+ [0x74C0,"F041"],
+ [0x74C1,"F043"],
+ [0x74C2,"F047"],
+ [0x74C3,"F276"],
+ [0x74C5,"F274"],
+ [0x74C6,"87C1"],
+ [0x74C8,"FEA7"],
+ [0x74CA,"C3A3"],
+ [0x74CB,"F273"],
+ [0x74CC,"946A"],
+ [0x74CF,"C46E"],
+ [0x74D0,"93E3"],
+ [0x74D3,"98CF"],
+ [0x74D4,"C4ED"],
+ [0x74D5,"F6F1"],
+ [0x74D6,"C4EC"],
+ [0x74D7,"F6F3"],
+ [0x74D8,"F6F0"],
+ [0x74D9,"F6F2"],
+ [0x74DA,"C5D0"],
+ [0x74DB,"F8B2"],
+ [0x74DC,"A5CA"],
+ [0x74DD,"CD6E"],
+ [0x74DE,"D2BC"],
+ [0x74DF,"D2BD"],
+ [0x74E0,"B27D"],
+ [0x74E1,"DEBF"],
+ [0x74E2,"BF5D"],
+ [0x74E3,"C3A4"],
+ [0x74E4,"C57B"],
+ [0x74E5,"F8B3"],
+ [0x74E6,"A5CB"],
+ [0x74E7,"A0D9"],
+ [0x74E8,"CD6F"],
+ [0x74E9,"A260"],
+ [0x74EC,"CFD7"],
+ [0x74EE,"CFD8"],
+ [0x74F0,"A0BF"],
+ [0x74F1,"A04D"],
+ [0x74F2,"A0B8"],
+ [0x74F4,"D2BE"],
+ [0x74F5,"D2BF"],
+ [0x74F6,"B27E"],
+ [0x74F7,"B2A1"],
+ [0x74F8,"A0CE"],
+ [0x74FB,"DAAB"],
+ [0x74FD,"DEC2"],
+ [0x74FE,"DEC1"],
+ [0x74FF,"DEC0"],
+ [0x7500,"E2D5"],
+ [0x7502,"E2D6"],
+ [0x7503,"E2D7"],
+ [0x7504,"BAC2"],
+ [0x7505,"A0B7"],
+ [0x7507,"E6AD"],
+ [0x7508,"E6AC"],
+ [0x750B,"EA69"],
+ [0x750C,"BF5E"],
+ [0x750D,"BF5F"],
+ [0x750E,"FEA9"],
+ [0x750F,"ED72"],
+ [0x7510,"ED6F"],
+ [0x7511,"ED70"],
+ [0x7512,"ED71"],
+ [0x7513,"F049"],
+ [0x7514,"F048"],
+ [0x7515,"C27C"],
+ [0x7516,"F277"],
+ [0x7517,"F5DE"],
+ [0x7518,"A5CC"],
+ [0x7519,"89C3"],
+ [0x751A,"ACC6"],
+ [0x751C,"B2A2"],
+ [0x751D,"DEC3"],
+ [0x751E,"FEAB"],
+ [0x751F,"A5CD"],
+ [0x7521,"D2C0"],
+ [0x7522,"B2A3"],
+ [0x7525,"B563"],
+ [0x7526,"B564"],
+ [0x7528,"A5CE"],
+ [0x7529,"A5CF"],
+ [0x752A,"CA46"],
+ [0x752B,"A86A"],
+ [0x752C,"A869"],
+ [0x752D,"ACC7"],
+ [0x752E,"CFD9"],
+ [0x752F,"DAAC"],
+ [0x7530,"A5D0"],
+ [0x7531,"A5D1"],
+ [0x7532,"A5D2"],
+ [0x7533,"A5D3"],
+ [0x7534,"9DF4"],
+ [0x7535,"896D"],
+ [0x7537,"A86B"],
+ [0x7538,"A86C"],
+ [0x7539,"CB6E"],
+ [0x753A,"CB6D"],
+ [0x753B,"9C7B"],
+ [0x753D,"AAB6"],
+ [0x753E,"CD72"],
+ [0x753F,"CD70"],
+ [0x7540,"CD71"],
+ [0x7542,"98D2"],
+ [0x7546,"9FA9"],
+ [0x7547,"CFDA"],
+ [0x7548,"CFDB"],
+ [0x754A,"FEB2"],
+ [0x754B,"ACCB"],
+ [0x754C,"ACC9"],
+ [0x754D,"FEB1"],
+ [0x754E,"ACCA"],
+ [0x754F,"ACC8"],
+ [0x7551,"97D9"],
+ [0x7553,"A0C4"],
+ [0x7554,"AF60"],
+ [0x7555,"9476"],
+ [0x7559,"AF64"],
+ [0x755A,"AF63"],
+ [0x755B,"D2C1"],
+ [0x755C,"AF62"],
+ [0x755D,"AF61"],
+ [0x755F,"D2C2"],
+ [0x7560,"9978"],
+ [0x7562,"B2A6"],
+ [0x7563,"D67B"],
+ [0x7564,"D67A"],
+ [0x7565,"B2A4"],
+ [0x7566,"B2A5"],
+ [0x7567,"FEB3"],
+ [0x756A,"B566"],
+ [0x756B,"B565"],
+ [0x756C,"DAAE"],
+ [0x756D,"98D3"],
+ [0x756E,"FEB4"],
+ [0x756F,"DAAD"],
+ [0x7570,"B2A7"],
+ [0x7572,"98D4"],
+ [0x7576,"B7ED"],
+ [0x7577,"DEC5"],
+ [0x7578,"B7EE"],
+ [0x7579,"DEC4"],
+ [0x757A,"9FB9"],
+ [0x757D,"E2D8"],
+ [0x757E,"E6AE"],
+ [0x757F,"BD42"],
+ [0x7580,"EA6A"],
+ [0x7583,"9471"],
+ [0x7584,"ED73"],
+ [0x7586,"C3A6"],
+ [0x7587,"C3A5"],
+ [0x758A,"C57C"],
+ [0x758B,"A5D4"],
+ [0x758C,"CD73"],
+ [0x758D,"98D5"],
+ [0x758E,"FEB8"],
+ [0x758F,"B2A8"],
+ [0x7590,"E2D9"],
+ [0x7591,"BAC3"],
+ [0x7592,"C6D4"],
+ [0x7594,"CB6F"],
+ [0x7595,"CB70"],
+ [0x7598,"CD74"],
+ [0x7599,"AAB8"],
+ [0x759A,"AAB9"],
+ [0x759D,"AAB7"],
+ [0x759E,"FEBA"],
+ [0x75A2,"ACCF"],
+ [0x75A3,"ACD0"],
+ [0x75A4,"ACCD"],
+ [0x75A5,"ACCE"],
+ [0x75A7,"CFDC"],
+ [0x75AA,"CFDD"],
+ [0x75AB,"ACCC"],
+ [0x75B0,"D2C3"],
+ [0x75B1,"9E5C"],
+ [0x75B2,"AF68"],
+ [0x75B3,"AF69"],
+ [0x75B4,"FEBB"],
+ [0x75B5,"B2AB"],
+ [0x75B6,"D2C9"],
+ [0x75B8,"AF6E"],
+ [0x75B9,"AF6C"],
+ [0x75BA,"D2CA"],
+ [0x75BB,"D2C5"],
+ [0x75BC,"AF6B"],
+ [0x75BD,"AF6A"],
+ [0x75BE,"AF65"],
+ [0x75BF,"D2C8"],
+ [0x75C0,"D2C7"],
+ [0x75C1,"D2C4"],
+ [0x75C2,"AF6D"],
+ [0x75C3,"A044"],
+ [0x75C4,"D2C6"],
+ [0x75C5,"AF66"],
+ [0x75C7,"AF67"],
+ [0x75C8,"98D7"],
+ [0x75CA,"B2AC"],
+ [0x75CB,"D6A1"],
+ [0x75CC,"D6A2"],
+ [0x75CD,"B2AD"],
+ [0x75CE,"D67C"],
+ [0x75CF,"D67E"],
+ [0x75D0,"D6A4"],
+ [0x75D1,"D6A3"],
+ [0x75D2,"D67D"],
+ [0x75D4,"B2A9"],
+ [0x75D5,"B2AA"],
+ [0x75D7,"DAB6"],
+ [0x75D8,"B56B"],
+ [0x75D9,"B56A"],
+ [0x75DA,"DAB0"],
+ [0x75DB,"B568"],
+ [0x75DC,"98D8"],
+ [0x75DD,"DAB3"],
+ [0x75DE,"B56C"],
+ [0x75DF,"DAB4"],
+ [0x75E0,"B56D"],
+ [0x75E1,"DAB1"],
+ [0x75E2,"B567"],
+ [0x75E3,"B569"],
+ [0x75E4,"DAB5"],
+ [0x75E6,"DAB2"],
+ [0x75E7,"DAAF"],
+ [0x75ED,"DED2"],
+ [0x75EF,"DEC7"],
+ [0x75F0,"B7F0"],
+ [0x75F1,"B7F3"],
+ [0x75F2,"B7F2"],
+ [0x75F3,"B7F7"],
+ [0x75F4,"B7F6"],
+ [0x75F5,"DED3"],
+ [0x75F6,"DED1"],
+ [0x75F7,"DECA"],
+ [0x75F8,"DECE"],
+ [0x75F9,"DECD"],
+ [0x75FA,"B7F4"],
+ [0x75FB,"DED0"],
+ [0x75FC,"DECC"],
+ [0x75FD,"DED4"],
+ [0x75FE,"DECB"],
+ [0x75FF,"B7F5"],
+ [0x7600,"B7EF"],
+ [0x7601,"B7F1"],
+ [0x7602,"FEBC"],
+ [0x7603,"DEC9"],
+ [0x7607,"9FFE"],
+ [0x7608,"E2DB"],
+ [0x7609,"BAC7"],
+ [0x760A,"E2DF"],
+ [0x760B,"BAC6"],
+ [0x760C,"E2DC"],
+ [0x760D,"BAC5"],
+ [0x760F,"DEC8"],
+ [0x7610,"DECF"],
+ [0x7611,"E2DE"],
+ [0x7613,"BAC8"],
+ [0x7614,"E2E0"],
+ [0x7615,"E2DD"],
+ [0x7616,"E2DA"],
+ [0x7619,"E6B1"],
+ [0x761A,"E6B5"],
+ [0x761B,"E6B7"],
+ [0x761C,"E6B3"],
+ [0x761D,"E6B2"],
+ [0x761E,"E6B0"],
+ [0x761F,"BD45"],
+ [0x7620,"BD43"],
+ [0x7621,"BD48"],
+ [0x7622,"BD49"],
+ [0x7623,"E6B4"],
+ [0x7624,"BD46"],
+ [0x7625,"E6AF"],
+ [0x7626,"BD47"],
+ [0x7627,"BAC4"],
+ [0x7628,"E6B6"],
+ [0x7629,"BD44"],
+ [0x762C,"FEBD"],
+ [0x762D,"EA6C"],
+ [0x762F,"EA6B"],
+ [0x7630,"EA73"],
+ [0x7631,"EA6D"],
+ [0x7632,"EA72"],
+ [0x7633,"EA6F"],
+ [0x7634,"BF60"],
+ [0x7635,"EA71"],
+ [0x7638,"BF61"],
+ [0x763A,"BF62"],
+ [0x763B,"9DDD"],
+ [0x763C,"EA70"],
+ [0x763D,"EA6E"],
+ [0x7640,"9EE1"],
+ [0x7642,"C0F8"],
+ [0x7643,"ED74"],
+ [0x7646,"C0F7"],
+ [0x7647,"ED77"],
+ [0x7648,"ED75"],
+ [0x7649,"ED76"],
+ [0x764C,"C0F9"],
+ [0x764D,"98DA"],
+ [0x764E,"9DDF"],
+ [0x764F,"FEBF"],
+ [0x7650,"F04D"],
+ [0x7651,"FEBE"],
+ [0x7652,"C2A1"],
+ [0x7653,"F04E"],
+ [0x7654,"9EEB"],
+ [0x7656,"C27D"],
+ [0x7657,"F04F"],
+ [0x7658,"C27E"],
+ [0x7659,"F04C"],
+ [0x765A,"F050"],
+ [0x765C,"F04A"],
+ [0x765F,"C3A7"],
+ [0x7660,"F278"],
+ [0x7661,"C3A8"],
+ [0x7662,"C46F"],
+ [0x7664,"F04B"],
+ [0x7665,"C470"],
+ [0x7666,"9E59"],
+ [0x7667,"A05C"],
+ [0x7669,"C4EE"],
+ [0x766A,"F5DF"],
+ [0x766C,"C57E"],
+ [0x766D,"F6F4"],
+ [0x766E,"C57D"],
+ [0x766F,"FEC0"],
+ [0x7670,"F7EA"],
+ [0x7671,"C5F5"],
+ [0x7672,"C5F6"],
+ [0x7673,"9477"],
+ [0x7674,"98DC"],
+ [0x7675,"F9CC"],
+ [0x7676,"FEC1"],
+ [0x7678,"ACD1"],
+ [0x7679,"CFDE"],
+ [0x767A,"98DE"],
+ [0x767B,"B56E"],
+ [0x767C,"B56F"],
+ [0x767D,"A5D5"],
+ [0x767E,"A6CA"],
+ [0x767F,"CA47"],
+ [0x7681,"CB71"],
+ [0x7682,"A86D"],
+ [0x7684,"AABA"],
+ [0x7686,"ACD2"],
+ [0x7687,"ACD3"],
+ [0x7688,"ACD4"],
+ [0x7689,"D6A6"],
+ [0x768A,"D2CB"],
+ [0x768B,"AF6F"],
+ [0x768E,"B2AE"],
+ [0x768F,"D6A5"],
+ [0x7690,"FEC3"],
+ [0x7692,"DAB8"],
+ [0x7693,"B571"],
+ [0x7695,"DAB7"],
+ [0x7696,"B570"],
+ [0x7699,"DED5"],
+ [0x769A,"BD4A"],
+ [0x769B,"E6BB"],
+ [0x769C,"E6B8"],
+ [0x769D,"E6B9"],
+ [0x769E,"E6BA"],
+ [0x76A1,"FEC8"],
+ [0x76A4,"ED78"],
+ [0x76A5,"FEC9"],
+ [0x76A6,"F051"],
+ [0x76AA,"F471"],
+ [0x76AB,"F470"],
+ [0x76AD,"F6F5"],
+ [0x76AE,"A5D6"],
+ [0x76AF,"CD75"],
+ [0x76B0,"AF70"],
+ [0x76B4,"B572"],
+ [0x76B5,"DED6"],
+ [0x76B7,"FECA"],
+ [0x76B8,"E2E1"],
+ [0x76BA,"BD4B"],
+ [0x76BB,"EA74"],
+ [0x76BD,"F052"],
+ [0x76BE,"F472"],
+ [0x76BF,"A5D7"],
+ [0x76C2,"AABB"],
+ [0x76C3,"ACD7"],
+ [0x76C4,"CFDF"],
+ [0x76C5,"ACD8"],
+ [0x76C6,"ACD6"],
+ [0x76C8,"ACD5"],
+ [0x76C9,"D2CC"],
+ [0x76CA,"AF71"],
+ [0x76CC,"FECB"],
+ [0x76CD,"AF72"],
+ [0x76CE,"AF73"],
+ [0x76D2,"B2B0"],
+ [0x76D3,"D6A7"],
+ [0x76D4,"B2AF"],
+ [0x76D6,"9FC2"],
+ [0x76D9,"8C6B"],
+ [0x76DA,"DAB9"],
+ [0x76DB,"B2B1"],
+ [0x76DC,"B573"],
+ [0x76DD,"DED7"],
+ [0x76DE,"B7F8"],
+ [0x76DF,"B7F9"],
+ [0x76E1,"BAC9"],
+ [0x76E3,"BACA"],
+ [0x76E4,"BD4C"],
+ [0x76E5,"BF64"],
+ [0x76E6,"EA75"],
+ [0x76E7,"BF63"],
+ [0x76E9,"ED79"],
+ [0x76EA,"C0FA"],
+ [0x76EC,"F053"],
+ [0x76ED,"F473"],
+ [0x76EE,"A5D8"],
+ [0x76EF,"A86E"],
+ [0x76F0,"CD78"],
+ [0x76F1,"CD77"],
+ [0x76F2,"AABC"],
+ [0x76F3,"CD76"],
+ [0x76F4,"AABD"],
+ [0x76F5,"CD79"],
+ [0x76F7,"CFE5"],
+ [0x76F8,"ACDB"],
+ [0x76F9,"ACDA"],
+ [0x76FA,"CFE7"],
+ [0x76FB,"CFE6"],
+ [0x76FC,"ACDF"],
+ [0x76FE,"ACDE"],
+ [0x7701,"ACD9"],
+ [0x7703,"CFE1"],
+ [0x7704,"CFE2"],
+ [0x7705,"CFE3"],
+ [0x7707,"ACE0"],
+ [0x7708,"CFE0"],
+ [0x7709,"ACDC"],
+ [0x770A,"CFE4"],
+ [0x770B,"ACDD"],
+ [0x770C,"98C4"],
+ [0x770E,"94B0"],
+ [0x770F,"94B1"],
+ [0x7710,"D2CF"],
+ [0x7711,"D2D3"],
+ [0x7712,"D2D1"],
+ [0x7713,"D2D0"],
+ [0x7715,"D2D4"],
+ [0x7719,"D2D5"],
+ [0x771A,"D2D6"],
+ [0x771B,"D2CE"],
+ [0x771D,"D2CD"],
+ [0x771E,"FED1"],
+ [0x771F,"AF75"],
+ [0x7720,"AF76"],
+ [0x7722,"D2D7"],
+ [0x7723,"D2D2"],
+ [0x7724,"A0C1"],
+ [0x7725,"D6B0"],
+ [0x7726,"FED2"],
+ [0x7727,"D2D8"],
+ [0x7728,"AF77"],
+ [0x7729,"AF74"],
+ [0x772B,"A0CD"],
+ [0x772D,"D6AA"],
+ [0x772F,"D6A9"],
+ [0x7731,"D6AB"],
+ [0x7732,"D6AC"],
+ [0x7733,"D6AE"],
+ [0x7734,"D6AD"],
+ [0x7735,"D6B2"],
+ [0x7736,"B2B5"],
+ [0x7737,"B2B2"],
+ [0x7738,"B2B6"],
+ [0x7739,"D6A8"],
+ [0x773A,"B2B7"],
+ [0x773B,"D6B1"],
+ [0x773C,"B2B4"],
+ [0x773D,"D6AF"],
+ [0x773E,"B2B3"],
+ [0x7740,"FED3"],
+ [0x7743,"98E5"],
+ [0x7744,"DABC"],
+ [0x7745,"DABE"],
+ [0x7746,"DABA"],
+ [0x7747,"DABB"],
+ [0x774A,"DABF"],
+ [0x774B,"DAC1"],
+ [0x774C,"DAC2"],
+ [0x774D,"DABD"],
+ [0x774E,"DAC0"],
+ [0x774F,"B574"],
+ [0x7752,"DEDB"],
+ [0x7754,"DEE0"],
+ [0x7755,"DED8"],
+ [0x7756,"DEDC"],
+ [0x7758,"FED6"],
+ [0x7759,"DEE1"],
+ [0x775A,"DEDD"],
+ [0x775B,"B7FA"],
+ [0x775C,"B843"],
+ [0x775E,"B7FD"],
+ [0x775F,"DED9"],
+ [0x7760,"DEDA"],
+ [0x7761,"BACE"],
+ [0x7762,"B846"],
+ [0x7763,"B7FE"],
+ [0x7765,"B844"],
+ [0x7766,"B7FC"],
+ [0x7767,"DEDF"],
+ [0x7768,"B845"],
+ [0x7769,"DEDE"],
+ [0x776A,"B841"],
+ [0x776B,"B7FB"],
+ [0x776C,"B842"],
+ [0x776D,"DEE2"],
+ [0x776E,"E2E6"],
+ [0x776F,"E2E8"],
+ [0x7772,"91E4"],
+ [0x7777,"8FC7"],
+ [0x7778,"94AE"],
+ [0x7779,"B840"],
+ [0x777A,"8A4F"],
+ [0x777B,"94B2"],
+ [0x777C,"E2E3"],
+ [0x777D,"BACC"],
+ [0x777E,"E2E9"],
+ [0x777F,"BACD"],
+ [0x7780,"E2E7"],
+ [0x7781,"E2E2"],
+ [0x7782,"E2E5"],
+ [0x7783,"E2EA"],
+ [0x7784,"BACB"],
+ [0x7785,"E2E4"],
+ [0x7787,"BD4E"],
+ [0x7788,"E6BF"],
+ [0x7789,"E6BE"],
+ [0x778B,"BD51"],
+ [0x778C,"BD4F"],
+ [0x778D,"E6BC"],
+ [0x778E,"BD4D"],
+ [0x778F,"E6BD"],
+ [0x7791,"BD50"],
+ [0x7793,"8FD4"],
+ [0x7795,"EA7D"],
+ [0x7797,"EAA1"],
+ [0x7798,"98EA"],
+ [0x7799,"EA7E"],
+ [0x779A,"EA76"],
+ [0x779B,"EA7A"],
+ [0x779C,"EA79"],
+ [0x779D,"EA77"],
+ [0x779E,"BF66"],
+ [0x779F,"BF67"],
+ [0x77A0,"BF65"],
+ [0x77A1,"EA78"],
+ [0x77A2,"EA7B"],
+ [0x77A3,"EA7C"],
+ [0x77A5,"BF68"],
+ [0x77A7,"C140"],
+ [0x77A8,"EDA3"],
+ [0x77AA,"C0FC"],
+ [0x77AB,"ED7B"],
+ [0x77AC,"C0FE"],
+ [0x77AD,"C141"],
+ [0x77AF,"FED8"],
+ [0x77B0,"C0FD"],
+ [0x77B1,"EDA2"],
+ [0x77B2,"ED7C"],
+ [0x77B3,"C0FB"],
+ [0x77B4,"EDA1"],
+ [0x77B5,"ED7A"],
+ [0x77B6,"ED7E"],
+ [0x77B7,"ED7D"],
+ [0x77B9,"9DE0"],
+ [0x77BA,"F055"],
+ [0x77BB,"C2A4"],
+ [0x77BC,"C2A5"],
+ [0x77BD,"C2A2"],
+ [0x77BE,"98EE"],
+ [0x77BF,"C2A3"],
+ [0x77C2,"F054"],
+ [0x77C3,"95C4"],
+ [0x77C4,"F27B"],
+ [0x77C5,"FCE8"],
+ [0x77C7,"C3A9"],
+ [0x77C9,"F279"],
+ [0x77CA,"F27A"],
+ [0x77CB,"98EF"],
+ [0x77CC,"F474"],
+ [0x77CD,"F477"],
+ [0x77CE,"F475"],
+ [0x77CF,"F476"],
+ [0x77D0,"F5E0"],
+ [0x77D3,"C4EF"],
+ [0x77D4,"F7EB"],
+ [0x77D5,"F8B4"],
+ [0x77D7,"C5F7"],
+ [0x77D8,"F8F8"],
+ [0x77D9,"F8F9"],
+ [0x77DA,"C666"],
+ [0x77DB,"A5D9"],
+ [0x77DC,"ACE1"],
+ [0x77DD,"8C6E"],
+ [0x77DE,"DAC3"],
+ [0x77E0,"DEE3"],
+ [0x77E2,"A5DA"],
+ [0x77E3,"A86F"],
+ [0x77E5,"AABE"],
+ [0x77E6,"FAD8"],
+ [0x77E7,"CFE8"],
+ [0x77E8,"CFE9"],
+ [0x77E9,"AF78"],
+ [0x77EC,"DAC4"],
+ [0x77ED,"B575"],
+ [0x77EE,"B847"],
+ [0x77EF,"C142"],
+ [0x77F0,"EDA4"],
+ [0x77F1,"F27C"],
+ [0x77F2,"F478"],
+ [0x77F3,"A5DB"],
+ [0x77F4,"FEDC"],
+ [0x77F7,"CDA1"],
+ [0x77F8,"CD7A"],
+ [0x77F9,"CD7C"],
+ [0x77FA,"CD7E"],
+ [0x77FB,"CD7D"],
+ [0x77FC,"CD7B"],
+ [0x77FD,"AABF"],
+ [0x77FE,"A0AE"],
+ [0x7802,"ACE2"],
+ [0x7803,"CFF2"],
+ [0x7805,"CFED"],
+ [0x7806,"CFEA"],
+ [0x7808,"9D4C"],
+ [0x7809,"CFF1"],
+ [0x780C,"ACE4"],
+ [0x780D,"ACE5"],
+ [0x780E,"CFF0"],
+ [0x780F,"CFEF"],
+ [0x7810,"CFEE"],
+ [0x7811,"CFEB"],
+ [0x7812,"CFEC"],
+ [0x7813,"CFF3"],
+ [0x7814,"ACE3"],
+ [0x7818,"98F1"],
+ [0x781C,"98F3"],
+ [0x781D,"AF7C"],
+ [0x781E,"94C1"],
+ [0x781F,"AFA4"],
+ [0x7820,"AFA3"],
+ [0x7821,"D2E1"],
+ [0x7822,"D2DB"],
+ [0x7823,"D2D9"],
+ [0x7825,"AFA1"],
+ [0x7826,"D6B9"],
+ [0x7827,"AF7A"],
+ [0x7828,"D2DE"],
+ [0x7829,"D2E2"],
+ [0x782A,"D2E4"],
+ [0x782B,"D2E0"],
+ [0x782C,"D2DA"],
+ [0x782D,"AFA2"],
+ [0x782E,"D2DF"],
+ [0x782F,"D2DD"],
+ [0x7830,"AF79"],
+ [0x7831,"D2E5"],
+ [0x7832,"AFA5"],
+ [0x7833,"D2E3"],
+ [0x7834,"AF7D"],
+ [0x7835,"D2DC"],
+ [0x7837,"AF7E"],
+ [0x7838,"AF7B"],
+ [0x7839,"98F5"],
+ [0x783C,"FA4F"],
+ [0x783D,"96E2"],
+ [0x7842,"9450"],
+ [0x7843,"B2B9"],
+ [0x7844,"96A2"],
+ [0x7845,"D6BA"],
+ [0x7847,"98F6"],
+ [0x7848,"D6B3"],
+ [0x7849,"D6B5"],
+ [0x784A,"D6B7"],
+ [0x784B,"96E5"],
+ [0x784C,"D6B8"],
+ [0x784D,"D6B6"],
+ [0x784E,"B2BA"],
+ [0x7850,"D6BB"],
+ [0x7851,"98F7"],
+ [0x7852,"D6B4"],
+ [0x7853,"A046"],
+ [0x7854,"96E3"],
+ [0x785C,"DAC8"],
+ [0x785D,"B576"],
+ [0x785E,"DAD0"],
+ [0x7860,"DAC5"],
+ [0x7862,"DAD1"],
+ [0x7864,"DAC6"],
+ [0x7865,"DAC7"],
+ [0x7866,"98F8"],
+ [0x7868,"DACF"],
+ [0x7869,"DACE"],
+ [0x786A,"DACB"],
+ [0x786B,"B2B8"],
+ [0x786C,"B577"],
+ [0x786D,"DAC9"],
+ [0x786E,"DACC"],
+ [0x786F,"B578"],
+ [0x7870,"DACD"],
+ [0x7871,"DACA"],
+ [0x7879,"DEEE"],
+ [0x787A,"9EE4"],
+ [0x787B,"DEF2"],
+ [0x787C,"B84E"],
+ [0x787E,"E2F0"],
+ [0x787F,"B851"],
+ [0x7880,"DEF0"],
+ [0x7881,"F9D6"],
+ [0x7883,"DEED"],
+ [0x7884,"DEE8"],
+ [0x7885,"DEEA"],
+ [0x7886,"DEEB"],
+ [0x7887,"DEE4"],
+ [0x7888,"94C3"],
+ [0x7889,"B84D"],
+ [0x788C,"B84C"],
+ [0x788D,"94C2"],
+ [0x788E,"B848"],
+ [0x788F,"DEE7"],
+ [0x7891,"B84F"],
+ [0x7893,"B850"],
+ [0x7894,"DEE6"],
+ [0x7895,"DEE9"],
+ [0x7896,"DEF1"],
+ [0x7897,"B84A"],
+ [0x7898,"B84B"],
+ [0x7899,"DEEF"],
+ [0x789A,"DEE5"],
+ [0x789E,"E2F2"],
+ [0x789F,"BAD0"],
+ [0x78A0,"E2F4"],
+ [0x78A1,"DEEC"],
+ [0x78A2,"E2F6"],
+ [0x78A3,"BAD4"],
+ [0x78A4,"E2F7"],
+ [0x78A5,"E2F3"],
+ [0x78A7,"BAD1"],
+ [0x78A8,"E2EF"],
+ [0x78A9,"BAD3"],
+ [0x78AA,"E2EC"],
+ [0x78AB,"E2F1"],
+ [0x78AC,"E2F5"],
+ [0x78AD,"E2EE"],
+ [0x78AF,"FEE1"],
+ [0x78B0,"B849"],
+ [0x78B1,"FEE9"],
+ [0x78B2,"E2EB"],
+ [0x78B3,"BAD2"],
+ [0x78B4,"E2ED"],
+ [0x78B6,"96E4"],
+ [0x78B8,"89AC"],
+ [0x78B9,"96DB"],
+ [0x78BA,"BD54"],
+ [0x78BB,"E6C1"],
+ [0x78BC,"BD58"],
+ [0x78BE,"BD56"],
+ [0x78C1,"BACF"],
+ [0x78C3,"E6C8"],
+ [0x78C4,"E6C9"],
+ [0x78C5,"BD53"],
+ [0x78C7,"FEE2"],
+ [0x78C8,"E6C7"],
+ [0x78C9,"E6CA"],
+ [0x78CA,"BD55"],
+ [0x78CB,"BD52"],
+ [0x78CC,"E6C3"],
+ [0x78CD,"E6C0"],
+ [0x78CE,"E6C5"],
+ [0x78CF,"E6C2"],
+ [0x78D0,"BD59"],
+ [0x78D1,"E6C4"],
+ [0x78D2,"94C4"],
+ [0x78D3,"FEE3"],
+ [0x78D4,"E6C6"],
+ [0x78D5,"BD57"],
+ [0x78D7,"FEE7"],
+ [0x78D8,"9FFB"],
+ [0x78DA,"BF6A"],
+ [0x78DB,"EAA8"],
+ [0x78DD,"EAA2"],
+ [0x78DE,"EAA6"],
+ [0x78DF,"EAAC"],
+ [0x78E0,"EAAD"],
+ [0x78E1,"EAA9"],
+ [0x78E2,"EAAA"],
+ [0x78E3,"EAA7"],
+ [0x78E4,"8C59"],
+ [0x78E5,"EAA4"],
+ [0x78E7,"BF6C"],
+ [0x78E8,"BF69"],
+ [0x78E9,"EAA3"],
+ [0x78EA,"EAA5"],
+ [0x78EC,"BF6B"],
+ [0x78ED,"EAAB"],
+ [0x78EE,"93C9"],
+ [0x78EF,"C146"],
+ [0x78F0,"94E8"],
+ [0x78F1,"FB56"],
+ [0x78F2,"EDAA"],
+ [0x78F3,"EDA5"],
+ [0x78F4,"C145"],
+ [0x78F5,"90C5"],
+ [0x78F7,"C143"],
+ [0x78F9,"EDAC"],
+ [0x78FA,"C144"],
+ [0x78FB,"EDA8"],
+ [0x78FC,"EDA9"],
+ [0x78FD,"EDA6"],
+ [0x78FE,"EDAD"],
+ [0x78FF,"F056"],
+ [0x7901,"C147"],
+ [0x7902,"EDA7"],
+ [0x7904,"EDAE"],
+ [0x7905,"EDAB"],
+ [0x7906,"A0A8"],
+ [0x7909,"F05A"],
+ [0x790C,"F057"],
+ [0x790E,"C2A6"],
+ [0x7910,"F05B"],
+ [0x7911,"F05D"],
+ [0x7912,"F05C"],
+ [0x7913,"F058"],
+ [0x7914,"F059"],
+ [0x7917,"F2A3"],
+ [0x7919,"C3AA"],
+ [0x791B,"F27E"],
+ [0x791C,"F2A2"],
+ [0x791D,"F27D"],
+ [0x791E,"F2A4"],
+ [0x7921,"F2A1"],
+ [0x7923,"F47A"],
+ [0x7924,"F47D"],
+ [0x7925,"F479"],
+ [0x7926,"C471"],
+ [0x7927,"F47B"],
+ [0x7928,"F47C"],
+ [0x7929,"F47E"],
+ [0x792A,"C472"],
+ [0x792B,"C474"],
+ [0x792C,"C473"],
+ [0x792D,"F5E1"],
+ [0x792E,"FEE5"],
+ [0x792F,"F5E3"],
+ [0x7931,"F5E2"],
+ [0x7932,"98FD"],
+ [0x7933,"98FB"],
+ [0x7934,"FEE8"],
+ [0x7935,"F6F6"],
+ [0x7936,"8EBF"],
+ [0x7938,"F8B5"],
+ [0x7939,"F8FA"],
+ [0x793A,"A5DC"],
+ [0x793B,"8BD8"],
+ [0x793C,"FEF7"],
+ [0x793D,"CB72"],
+ [0x793E,"AAC0"],
+ [0x793F,"CDA3"],
+ [0x7940,"AAC1"],
+ [0x7941,"AAC2"],
+ [0x7942,"CDA2"],
+ [0x7944,"CFF8"],
+ [0x7945,"CFF7"],
+ [0x7946,"ACE6"],
+ [0x7947,"ACE9"],
+ [0x7948,"ACE8"],
+ [0x7949,"ACE7"],
+ [0x794A,"CFF4"],
+ [0x794B,"CFF6"],
+ [0x794C,"CFF5"],
+ [0x794F,"D2E8"],
+ [0x7950,"AFA7"],
+ [0x7951,"D2EC"],
+ [0x7952,"D2EB"],
+ [0x7953,"D2EA"],
+ [0x7954,"D2E6"],
+ [0x7955,"AFA6"],
+ [0x7956,"AFAA"],
+ [0x7957,"AFAD"],
+ [0x7958,"8F68"],
+ [0x7959,"94C6"],
+ [0x795A,"AFAE"],
+ [0x795B,"D2E7"],
+ [0x795C,"D2E9"],
+ [0x795D,"AFAC"],
+ [0x795E,"AFAB"],
+ [0x795F,"AFA9"],
+ [0x7960,"AFA8"],
+ [0x7961,"D6C2"],
+ [0x7962,"9DEA"],
+ [0x7963,"D6C0"],
+ [0x7964,"D6BC"],
+ [0x7965,"B2BB"],
+ [0x7967,"D6BD"],
+ [0x7968,"B2BC"],
+ [0x7969,"D6BE"],
+ [0x796A,"D6BF"],
+ [0x796B,"D6C1"],
+ [0x796D,"B2BD"],
+ [0x7970,"DAD5"],
+ [0x7971,"FC69"],
+ [0x7972,"DAD4"],
+ [0x7973,"DAD3"],
+ [0x7974,"DAD2"],
+ [0x7979,"DEF6"],
+ [0x797A,"B852"],
+ [0x797C,"DEF3"],
+ [0x797D,"DEF5"],
+ [0x797E,"9CDA"],
+ [0x797F,"B853"],
+ [0x7980,"FEF3"],
+ [0x7981,"B854"],
+ [0x7982,"DEF4"],
+ [0x7983,"9C72"],
+ [0x7986,"FEF0"],
+ [0x7987,"89C9"],
+ [0x7988,"E341"],
+ [0x798A,"E2F9"],
+ [0x798B,"E2FA"],
+ [0x798D,"BAD7"],
+ [0x798E,"BAD5"],
+ [0x798F,"BAD6"],
+ [0x7990,"E343"],
+ [0x7991,"9941"],
+ [0x7992,"E342"],
+ [0x7993,"E2FE"],
+ [0x7994,"E2FD"],
+ [0x7995,"E2FC"],
+ [0x7996,"E2FB"],
+ [0x7997,"E340"],
+ [0x7998,"E2F8"],
+ [0x7999,"9942"],
+ [0x799A,"E6CB"],
+ [0x799B,"E6D0"],
+ [0x799C,"E6CE"],
+ [0x799D,"FEF5"],
+ [0x799F,"91D7"],
+ [0x79A0,"E6CD"],
+ [0x79A1,"E6CC"],
+ [0x79A2,"E6CF"],
+ [0x79A4,"EAAE"],
+ [0x79A5,"94CC"],
+ [0x79A6,"BF6D"],
+ [0x79A7,"C148"],
+ [0x79A8,"EDB0"],
+ [0x79A9,"FEF8"],
+ [0x79AA,"C149"],
+ [0x79AB,"EDAF"],
+ [0x79AC,"F05F"],
+ [0x79AD,"F05E"],
+ [0x79AE,"C2A7"],
+ [0x79B0,"F2A5"],
+ [0x79B1,"C3AB"],
+ [0x79B2,"F4A1"],
+ [0x79B3,"C5A1"],
+ [0x79B4,"F6F7"],
+ [0x79B6,"F8B7"],
+ [0x79B7,"F8B6"],
+ [0x79B8,"C9A8"],
+ [0x79B9,"ACEA"],
+ [0x79BA,"ACEB"],
+ [0x79BB,"D6C3"],
+ [0x79BD,"B856"],
+ [0x79BE,"A5DD"],
+ [0x79BF,"A872"],
+ [0x79C0,"A871"],
+ [0x79C1,"A870"],
+ [0x79C4,"97A8"],
+ [0x79C5,"CDA4"],
+ [0x79C6,"FEFC"],
+ [0x79C8,"AAC4"],
+ [0x79C9,"AAC3"],
+ [0x79CA,"8CDE"],
+ [0x79CB,"ACEE"],
+ [0x79CC,"FDBF"],
+ [0x79CD,"CFFA"],
+ [0x79CE,"CFFD"],
+ [0x79CF,"CFFB"],
+ [0x79D0,"87B3"],
+ [0x79D1,"ACEC"],
+ [0x79D2,"ACED"],
+ [0x79D4,"FEFE"],
+ [0x79D5,"CFF9"],
+ [0x79D6,"CFFC"],
+ [0x79D8,"AFB5"],
+ [0x79DC,"D2F3"],
+ [0x79DD,"D2F5"],
+ [0x79DE,"D2F4"],
+ [0x79DF,"AFB2"],
+ [0x79E0,"D2EF"],
+ [0x79E2,"96D1"],
+ [0x79E3,"AFB0"],
+ [0x79E4,"AFAF"],
+ [0x79E6,"AFB3"],
+ [0x79E7,"AFB1"],
+ [0x79E9,"AFB4"],
+ [0x79EA,"D2F2"],
+ [0x79EB,"D2ED"],
+ [0x79EC,"D2EE"],
+ [0x79ED,"D2F1"],
+ [0x79EE,"D2F0"],
+ [0x79F1,"94D5"],
+ [0x79F4,"94D0"],
+ [0x79F6,"D6C6"],
+ [0x79F7,"D6C7"],
+ [0x79F8,"D6C5"],
+ [0x79FA,"D6C4"],
+ [0x79FB,"B2BE"],
+ [0x7A00,"B57D"],
+ [0x7A02,"DAD6"],
+ [0x7A03,"DAD8"],
+ [0x7A04,"DADA"],
+ [0x7A05,"B57C"],
+ [0x7A06,"9944"],
+ [0x7A08,"B57A"],
+ [0x7A0A,"DAD7"],
+ [0x7A0B,"B57B"],
+ [0x7A0C,"DAD9"],
+ [0x7A0D,"B579"],
+ [0x7A10,"DF41"],
+ [0x7A11,"DEF7"],
+ [0x7A12,"DEFA"],
+ [0x7A13,"DEFE"],
+ [0x7A14,"B85A"],
+ [0x7A15,"DEFC"],
+ [0x7A17,"DEFB"],
+ [0x7A18,"DEF8"],
+ [0x7A19,"DEF9"],
+ [0x7A1A,"B858"],
+ [0x7A1B,"DF40"],
+ [0x7A1C,"B857"],
+ [0x7A1E,"B85C"],
+ [0x7A1F,"B85B"],
+ [0x7A20,"B859"],
+ [0x7A22,"DEFD"],
+ [0x7A26,"E349"],
+ [0x7A28,"E348"],
+ [0x7A2A,"8C63"],
+ [0x7A2B,"E344"],
+ [0x7A2C,"87BB"],
+ [0x7A2D,"A0B3"],
+ [0x7A2E,"BAD8"],
+ [0x7A2F,"E347"],
+ [0x7A30,"E346"],
+ [0x7A31,"BAD9"],
+ [0x7A32,"87B4"],
+ [0x7A37,"BD5E"],
+ [0x7A39,"E6D2"],
+ [0x7A3A,"94CF"],
+ [0x7A3B,"BD5F"],
+ [0x7A3C,"BD5B"],
+ [0x7A3D,"BD5D"],
+ [0x7A3E,"9FFA"],
+ [0x7A3F,"BD5A"],
+ [0x7A40,"BD5C"],
+ [0x7A43,"91E5"],
+ [0x7A44,"EAAF"],
+ [0x7A45,"9C6A"],
+ [0x7A46,"BF70"],
+ [0x7A47,"EAB1"],
+ [0x7A48,"EAB0"],
+ [0x7A49,"8E49"],
+ [0x7A4A,"E345"],
+ [0x7A4B,"BF72"],
+ [0x7A4C,"BF71"],
+ [0x7A4D,"BF6E"],
+ [0x7A4E,"BF6F"],
+ [0x7A54,"EDB5"],
+ [0x7A56,"EDB3"],
+ [0x7A57,"C14A"],
+ [0x7A58,"EDB4"],
+ [0x7A5A,"EDB6"],
+ [0x7A5B,"EDB2"],
+ [0x7A5C,"EDB1"],
+ [0x7A5F,"F060"],
+ [0x7A60,"C2AA"],
+ [0x7A61,"C2A8"],
+ [0x7A62,"C2A9"],
+ [0x7A65,"8E4C"],
+ [0x7A67,"F2A6"],
+ [0x7A68,"F2A7"],
+ [0x7A69,"C3AD"],
+ [0x7A6B,"C3AC"],
+ [0x7A6C,"F4A3"],
+ [0x7A6D,"F4A4"],
+ [0x7A6E,"F4A2"],
+ [0x7A70,"F6F8"],
+ [0x7A71,"F6F9"],
+ [0x7A72,"87C9"],
+ [0x7A74,"A5DE"],
+ [0x7A75,"CA48"],
+ [0x7A76,"A873"],
+ [0x7A78,"CDA5"],
+ [0x7A79,"AAC6"],
+ [0x7A7A,"AAC5"],
+ [0x7A7B,"CDA6"],
+ [0x7A7D,"8E4D"],
+ [0x7A7E,"D040"],
+ [0x7A7F,"ACEF"],
+ [0x7A80,"CFFE"],
+ [0x7A81,"ACF0"],
+ [0x7A83,"9A73"],
+ [0x7A84,"AFB6"],
+ [0x7A85,"D2F8"],
+ [0x7A86,"D2F6"],
+ [0x7A87,"D2FC"],
+ [0x7A88,"AFB7"],
+ [0x7A89,"D2F7"],
+ [0x7A8A,"D2FB"],
+ [0x7A8B,"D2F9"],
+ [0x7A8C,"D2FA"],
+ [0x7A8F,"D6C8"],
+ [0x7A90,"D6CA"],
+ [0x7A91,"9947"],
+ [0x7A92,"B2BF"],
+ [0x7A93,"8CB1"],
+ [0x7A94,"D6C9"],
+ [0x7A95,"B2C0"],
+ [0x7A96,"B5A2"],
+ [0x7A97,"B5A1"],
+ [0x7A98,"B57E"],
+ [0x7A99,"DADB"],
+ [0x7A9E,"DF44"],
+ [0x7A9F,"B85D"],
+ [0x7AA0,"B85E"],
+ [0x7AA2,"DF43"],
+ [0x7AA3,"DF42"],
+ [0x7AA8,"E34A"],
+ [0x7AA9,"BADB"],
+ [0x7AAA,"BADA"],
+ [0x7AAB,"E34B"],
+ [0x7AAC,"E34C"],
+ [0x7AAE,"BD61"],
+ [0x7AAF,"BD60"],
+ [0x7AB0,"8E50"],
+ [0x7AB1,"EAB5"],
+ [0x7AB2,"E6D3"],
+ [0x7AB3,"E6D5"],
+ [0x7AB4,"E6D4"],
+ [0x7AB5,"EAB4"],
+ [0x7AB6,"EAB2"],
+ [0x7AB7,"EAB6"],
+ [0x7AB8,"EAB3"],
+ [0x7ABA,"BF73"],
+ [0x7ABB,"8E4F"],
+ [0x7ABC,"9949"],
+ [0x7ABE,"EDB7"],
+ [0x7ABF,"C14B"],
+ [0x7AC0,"EDB8"],
+ [0x7AC1,"EDB9"],
+ [0x7AC2,"8E51"],
+ [0x7AC3,"8E52"],
+ [0x7AC4,"C2AB"],
+ [0x7AC5,"C2AC"],
+ [0x7AC7,"C475"],
+ [0x7AC8,"9AB2"],
+ [0x7AC9,"89A5"],
+ [0x7ACA,"C5D1"],
+ [0x7ACB,"A5DF"],
+ [0x7ACF,"994C"],
+ [0x7AD1,"D041"],
+ [0x7AD3,"9FF8"],
+ [0x7AD8,"D2FD"],
+ [0x7AD9,"AFB8"],
+ [0x7ADA,"8E56"],
+ [0x7ADB,"994D"],
+ [0x7ADC,"91CA"],
+ [0x7ADD,"8E57"],
+ [0x7ADF,"B3BA"],
+ [0x7AE0,"B3B9"],
+ [0x7AE2,"94E1"],
+ [0x7AE3,"B5A4"],
+ [0x7AE4,"DADD"],
+ [0x7AE5,"B5A3"],
+ [0x7AE6,"DADC"],
+ [0x7AE7,"9047"],
+ [0x7AE9,"8FD8"],
+ [0x7AEA,"8E58"],
+ [0x7AEB,"DF45"],
+ [0x7AED,"BADC"],
+ [0x7AEE,"E34D"],
+ [0x7AEF,"BADD"],
+ [0x7AF6,"C476"],
+ [0x7AF7,"F4A5"],
+ [0x7AF9,"A6CB"],
+ [0x7AFA,"AAC7"],
+ [0x7AFB,"CDA7"],
+ [0x7AFC,"87A3"],
+ [0x7AFD,"ACF2"],
+ [0x7AFE,"94EB"],
+ [0x7AFF,"ACF1"],
+ [0x7B00,"D042"],
+ [0x7B01,"D043"],
+ [0x7B04,"D340"],
+ [0x7B05,"D342"],
+ [0x7B06,"AFB9"],
+ [0x7B08,"D344"],
+ [0x7B09,"D347"],
+ [0x7B0A,"D345"],
+ [0x7B0B,"8E5C"],
+ [0x7B0C,"9553"],
+ [0x7B0E,"D346"],
+ [0x7B0F,"D343"],
+ [0x7B10,"D2FE"],
+ [0x7B11,"AFBA"],
+ [0x7B12,"D348"],
+ [0x7B13,"D341"],
+ [0x7B14,"9FE5"],
+ [0x7B18,"D6D3"],
+ [0x7B19,"B2C6"],
+ [0x7B1A,"D6DC"],
+ [0x7B1B,"B2C3"],
+ [0x7B1D,"D6D5"],
+ [0x7B1E,"B2C7"],
+ [0x7B1F,"9F56"],
+ [0x7B20,"B2C1"],
+ [0x7B22,"D6D0"],
+ [0x7B23,"D6DD"],
+ [0x7B24,"D6D1"],
+ [0x7B25,"D6CE"],
+ [0x7B26,"B2C5"],
+ [0x7B27,"954F"],
+ [0x7B28,"B2C2"],
+ [0x7B29,"8E5E"],
+ [0x7B2A,"D6D4"],
+ [0x7B2B,"D6D7"],
+ [0x7B2C,"B2C4"],
+ [0x7B2D,"D6D8"],
+ [0x7B2E,"B2C8"],
+ [0x7B2F,"D6D9"],
+ [0x7B30,"D6CF"],
+ [0x7B31,"D6D6"],
+ [0x7B32,"D6DA"],
+ [0x7B33,"D6D2"],
+ [0x7B34,"D6CD"],
+ [0x7B35,"D6CB"],
+ [0x7B38,"D6DB"],
+ [0x7B39,"996A"],
+ [0x7B3B,"DADF"],
+ [0x7B40,"DAE4"],
+ [0x7B42,"9C64"],
+ [0x7B43,"9CD9"],
+ [0x7B44,"DAE0"],
+ [0x7B45,"DAE6"],
+ [0x7B46,"B5A7"],
+ [0x7B47,"D6CC"],
+ [0x7B48,"DAE1"],
+ [0x7B49,"B5A5"],
+ [0x7B4A,"DADE"],
+ [0x7B4B,"B5AC"],
+ [0x7B4C,"DAE2"],
+ [0x7B4D,"B5AB"],
+ [0x7B4E,"DAE3"],
+ [0x7B4F,"B5AD"],
+ [0x7B50,"B5A8"],
+ [0x7B51,"B5AE"],
+ [0x7B52,"B5A9"],
+ [0x7B54,"B5AA"],
+ [0x7B55,"8E5D"],
+ [0x7B56,"B5A6"],
+ [0x7B58,"DAE5"],
+ [0x7B60,"B861"],
+ [0x7B61,"DF50"],
+ [0x7B62,"9950"],
+ [0x7B63,"DF53"],
+ [0x7B64,"DF47"],
+ [0x7B65,"DF4C"],
+ [0x7B66,"DF46"],
+ [0x7B67,"B863"],
+ [0x7B69,"DF4A"],
+ [0x7B6C,"9951"],
+ [0x7B6D,"DF48"],
+ [0x7B6E,"B862"],
+ [0x7B6F,"8E62"],
+ [0x7B70,"DF4F"],
+ [0x7B71,"DF4E"],
+ [0x7B72,"DF4B"],
+ [0x7B73,"DF4D"],
+ [0x7B74,"DF49"],
+ [0x7B75,"BAE1"],
+ [0x7B76,"DF52"],
+ [0x7B77,"B85F"],
+ [0x7B78,"DF51"],
+ [0x7B7B,"9952"],
+ [0x7B82,"E35D"],
+ [0x7B84,"BAE8"],
+ [0x7B85,"E358"],
+ [0x7B87,"BAE7"],
+ [0x7B88,"E34E"],
+ [0x7B8A,"E350"],
+ [0x7B8B,"BAE0"],
+ [0x7B8C,"E355"],
+ [0x7B8D,"E354"],
+ [0x7B8E,"E357"],
+ [0x7B8F,"BAE5"],
+ [0x7B90,"E352"],
+ [0x7B91,"E351"],
+ [0x7B92,"8E68"],
+ [0x7B94,"BAE4"],
+ [0x7B95,"BADF"],
+ [0x7B96,"E353"],
+ [0x7B97,"BAE2"],
+ [0x7B98,"E359"],
+ [0x7B99,"E35B"],
+ [0x7B9B,"E356"],
+ [0x7B9C,"E34F"],
+ [0x7B9D,"BAE3"],
+ [0x7BA0,"BD69"],
+ [0x7BA1,"BADE"],
+ [0x7BA2,"8E61"],
+ [0x7BA3,"9F59"],
+ [0x7BA4,"E35C"],
+ [0x7BAC,"E6D9"],
+ [0x7BAD,"BD62"],
+ [0x7BAE,"87D0"],
+ [0x7BAF,"E6DB"],
+ [0x7BB1,"BD63"],
+ [0x7BB2,"8BB3"],
+ [0x7BB4,"BD65"],
+ [0x7BB5,"E6DE"],
+ [0x7BB7,"E6D6"],
+ [0x7BB8,"BAE6"],
+ [0x7BB9,"E6DC"],
+ [0x7BBE,"E6D8"],
+ [0x7BC0,"B860"],
+ [0x7BC1,"BD68"],
+ [0x7BC4,"BD64"],
+ [0x7BC5,"87B9"],
+ [0x7BC6,"BD66"],
+ [0x7BC7,"BD67"],
+ [0x7BC9,"BF76"],
+ [0x7BCA,"E6DD"],
+ [0x7BCB,"E6D7"],
+ [0x7BCC,"BD6A"],
+ [0x7BCE,"E6DA"],
+ [0x7BCF,"9F5D"],
+ [0x7BD0,"8E66"],
+ [0x7BD4,"EAC0"],
+ [0x7BD5,"EABB"],
+ [0x7BD8,"EAC5"],
+ [0x7BD9,"BF74"],
+ [0x7BDA,"EABD"],
+ [0x7BDB,"BF78"],
+ [0x7BDC,"EAC3"],
+ [0x7BDD,"EABA"],
+ [0x7BDE,"EAB7"],
+ [0x7BDF,"EAC6"],
+ [0x7BE0,"C151"],
+ [0x7BE1,"BF79"],
+ [0x7BE2,"EAC2"],
+ [0x7BE3,"EAB8"],
+ [0x7BE4,"BF77"],
+ [0x7BE5,"EABC"],
+ [0x7BE6,"BF7B"],
+ [0x7BE7,"EAB9"],
+ [0x7BE8,"EABE"],
+ [0x7BE9,"BF7A"],
+ [0x7BEA,"EAC1"],
+ [0x7BEB,"EAC4"],
+ [0x7BEC,"8CB2"],
+ [0x7BF0,"EDCB"],
+ [0x7BF1,"EDCC"],
+ [0x7BF2,"EDBC"],
+ [0x7BF3,"EDC3"],
+ [0x7BF4,"EDC1"],
+ [0x7BF7,"C14F"],
+ [0x7BF8,"EDC8"],
+ [0x7BF9,"EABF"],
+ [0x7BFA,"8E6E"],
+ [0x7BFB,"EDBF"],
+ [0x7BFC,"9F64"],
+ [0x7BFD,"EDC9"],
+ [0x7BFE,"C14E"],
+ [0x7BFF,"EDBE"],
+ [0x7C00,"EDBD"],
+ [0x7C01,"EDC7"],
+ [0x7C02,"EDC4"],
+ [0x7C03,"EDC6"],
+ [0x7C05,"EDBA"],
+ [0x7C06,"EDCA"],
+ [0x7C07,"C14C"],
+ [0x7C09,"EDC5"],
+ [0x7C0A,"EDCE"],
+ [0x7C0B,"EDC2"],
+ [0x7C0C,"C150"],
+ [0x7C0D,"C14D"],
+ [0x7C0E,"EDC0"],
+ [0x7C0F,"EDBB"],
+ [0x7C10,"EDCD"],
+ [0x7C11,"BF75"],
+ [0x7C12,"9953"],
+ [0x7C15,"FAB8"],
+ [0x7C19,"F063"],
+ [0x7C1B,"9954"],
+ [0x7C1C,"F061"],
+ [0x7C1D,"F067"],
+ [0x7C1E,"C2B0"],
+ [0x7C1F,"F065"],
+ [0x7C20,"F064"],
+ [0x7C21,"C2B2"],
+ [0x7C22,"F06A"],
+ [0x7C23,"C2B1"],
+ [0x7C25,"F06B"],
+ [0x7C26,"F068"],
+ [0x7C27,"C2AE"],
+ [0x7C28,"F069"],
+ [0x7C29,"F062"],
+ [0x7C2A,"C2AF"],
+ [0x7C2B,"C2AD"],
+ [0x7C2C,"F2AB"],
+ [0x7C2D,"F066"],
+ [0x7C30,"F06C"],
+ [0x7C33,"F2A8"],
+ [0x7C35,"8E70"],
+ [0x7C37,"C3B2"],
+ [0x7C38,"C3B0"],
+ [0x7C39,"F2AA"],
+ [0x7C3B,"F2AC"],
+ [0x7C3C,"F2A9"],
+ [0x7C3D,"C3B1"],
+ [0x7C3E,"C3AE"],
+ [0x7C3F,"C3AF"],
+ [0x7C40,"C3B3"],
+ [0x7C42,"9F61"],
+ [0x7C43,"C478"],
+ [0x7C44,"8E72"],
+ [0x7C45,"F4AA"],
+ [0x7C47,"F4A9"],
+ [0x7C48,"F4A7"],
+ [0x7C49,"F4A6"],
+ [0x7C4A,"F4A8"],
+ [0x7C4C,"C477"],
+ [0x7C4D,"C479"],
+ [0x7C50,"C4F0"],
+ [0x7C51,"A06B"],
+ [0x7C53,"F5E5"],
+ [0x7C54,"F5E4"],
+ [0x7C56,"9F40"],
+ [0x7C57,"F6FA"],
+ [0x7C59,"F6FC"],
+ [0x7C5A,"F6FE"],
+ [0x7C5B,"F6FD"],
+ [0x7C5C,"F6FB"],
+ [0x7C5D,"94ED"],
+ [0x7C5F,"C5A3"],
+ [0x7C60,"C5A2"],
+ [0x7C63,"C5D3"],
+ [0x7C64,"C5D2"],
+ [0x7C65,"C5D4"],
+ [0x7C66,"F7ED"],
+ [0x7C67,"F7EC"],
+ [0x7C69,"F8FB"],
+ [0x7C6A,"F8B8"],
+ [0x7C6B,"F8FC"],
+ [0x7C6C,"C658"],
+ [0x7C6D,"94EE"],
+ [0x7C6E,"C659"],
+ [0x7C6F,"F96D"],
+ [0x7C70,"9FBD"],
+ [0x7C72,"C67E"],
+ [0x7C73,"A6CC"],
+ [0x7C74,"8E7B"],
+ [0x7C75,"CDA8"],
+ [0x7C78,"D045"],
+ [0x7C79,"D046"],
+ [0x7C7A,"D044"],
+ [0x7C7B,"9957"],
+ [0x7C7C,"94F7"],
+ [0x7C7D,"ACF3"],
+ [0x7C7E,"9F5F"],
+ [0x7C7F,"D047"],
+ [0x7C80,"D048"],
+ [0x7C81,"D049"],
+ [0x7C83,"8E73"],
+ [0x7C84,"D349"],
+ [0x7C85,"D34F"],
+ [0x7C86,"9F62"],
+ [0x7C88,"D34D"],
+ [0x7C89,"AFBB"],
+ [0x7C8A,"D34B"],
+ [0x7C8C,"D34C"],
+ [0x7C8D,"D34E"],
+ [0x7C8E,"94F6"],
+ [0x7C91,"D34A"],
+ [0x7C92,"B2C9"],
+ [0x7C94,"D6DE"],
+ [0x7C95,"B2CB"],
+ [0x7C96,"D6E0"],
+ [0x7C97,"B2CA"],
+ [0x7C98,"D6DF"],
+ [0x7C9C,"9958"],
+ [0x7C9E,"DAE8"],
+ [0x7C9F,"B5AF"],
+ [0x7CA1,"DAEA"],
+ [0x7CA2,"DAE7"],
+ [0x7CA3,"D6E1"],
+ [0x7CA5,"B5B0"],
+ [0x7CA6,"8E75"],
+ [0x7CA7,"F9DB"],
+ [0x7CA8,"DAE9"],
+ [0x7CAC,"9072"],
+ [0x7CAE,"94F8"],
+ [0x7CAF,"DF56"],
+ [0x7CB1,"B864"],
+ [0x7CB2,"DF54"],
+ [0x7CB3,"B865"],
+ [0x7CB4,"DF55"],
+ [0x7CB5,"B866"],
+ [0x7CB8,"995A"],
+ [0x7CB9,"BAE9"],
+ [0x7CBA,"E361"],
+ [0x7CBB,"E35E"],
+ [0x7CBC,"E360"],
+ [0x7CBD,"BAEA"],
+ [0x7CBE,"BAEB"],
+ [0x7CBF,"E35F"],
+ [0x7CC2,"A0B0"],
+ [0x7CC3,"8CB3"],
+ [0x7CC5,"E6DF"],
+ [0x7CC7,"8E79"],
+ [0x7CC8,"E6E0"],
+ [0x7CC9,"8E78"],
+ [0x7CCA,"BD6B"],
+ [0x7CCB,"E6E2"],
+ [0x7CCC,"E6E1"],
+ [0x7CCD,"94F3"],
+ [0x7CCE,"A261"],
+ [0x7CD0,"EACA"],
+ [0x7CD1,"EACB"],
+ [0x7CD2,"EAC7"],
+ [0x7CD3,"98AF"],
+ [0x7CD4,"EAC8"],
+ [0x7CD5,"BF7C"],
+ [0x7CD6,"BF7D"],
+ [0x7CD7,"EAC9"],
+ [0x7CD9,"C157"],
+ [0x7CDA,"A0B2"],
+ [0x7CDC,"C153"],
+ [0x7CDD,"C158"],
+ [0x7CDE,"C154"],
+ [0x7CDF,"C156"],
+ [0x7CE0,"C152"],
+ [0x7CE2,"C155"],
+ [0x7CE6,"8E7A"],
+ [0x7CE7,"C2B3"],
+ [0x7CE8,"EDCF"],
+ [0x7CEA,"F2AE"],
+ [0x7CEC,"F2AD"],
+ [0x7CED,"995C"],
+ [0x7CEE,"F4AB"],
+ [0x7CEF,"C47A"],
+ [0x7CF0,"C47B"],
+ [0x7CF1,"F741"],
+ [0x7CF2,"F5E6"],
+ [0x7CF3,"8E7C"],
+ [0x7CF4,"F740"],
+ [0x7CF5,"8E7D"],
+ [0x7CF6,"F8FD"],
+ [0x7CF7,"F9A4"],
+ [0x7CF8,"A6CD"],
+ [0x7CF9,"8BD9"],
+ [0x7CFB,"A874"],
+ [0x7CFC,"89A2"],
+ [0x7CFD,"CDA9"],
+ [0x7CFE,"AAC8"],
+ [0x7D00,"ACF6"],
+ [0x7D01,"D04C"],
+ [0x7D02,"ACF4"],
+ [0x7D03,"D04A"],
+ [0x7D04,"ACF9"],
+ [0x7D05,"ACF5"],
+ [0x7D06,"ACFA"],
+ [0x7D07,"ACF8"],
+ [0x7D08,"D04B"],
+ [0x7D09,"ACF7"],
+ [0x7D0A,"AFBF"],
+ [0x7D0B,"AFBE"],
+ [0x7D0C,"D35A"],
+ [0x7D0D,"AFC7"],
+ [0x7D0E,"D353"],
+ [0x7D0F,"D359"],
+ [0x7D10,"AFC3"],
+ [0x7D11,"D352"],
+ [0x7D12,"D358"],
+ [0x7D13,"D356"],
+ [0x7D14,"AFC2"],
+ [0x7D15,"AFC4"],
+ [0x7D16,"D355"],
+ [0x7D17,"AFBD"],
+ [0x7D18,"D354"],
+ [0x7D19,"AFC8"],
+ [0x7D1A,"AFC5"],
+ [0x7D1B,"AFC9"],
+ [0x7D1C,"AFC6"],
+ [0x7D1D,"D351"],
+ [0x7D1E,"D350"],
+ [0x7D1F,"D357"],
+ [0x7D20,"AFC0"],
+ [0x7D21,"AFBC"],
+ [0x7D22,"AFC1"],
+ [0x7D25,"9ED7"],
+ [0x7D28,"D6F0"],
+ [0x7D29,"D6E9"],
+ [0x7D2B,"B5B5"],
+ [0x7D2C,"D6E8"],
+ [0x7D2E,"B2CF"],
+ [0x7D2F,"B2D6"],
+ [0x7D30,"B2D3"],
+ [0x7D31,"B2D9"],
+ [0x7D32,"B2D8"],
+ [0x7D33,"B2D4"],
+ [0x7D35,"D6E2"],
+ [0x7D36,"D6E5"],
+ [0x7D38,"D6E4"],
+ [0x7D39,"B2D0"],
+ [0x7D3A,"D6E6"],
+ [0x7D3B,"D6EF"],
+ [0x7D3C,"B2D1"],
+ [0x7D3D,"D6E3"],
+ [0x7D3E,"D6EC"],
+ [0x7D3F,"D6ED"],
+ [0x7D40,"B2D2"],
+ [0x7D41,"D6EA"],
+ [0x7D42,"B2D7"],
+ [0x7D43,"B2CD"],
+ [0x7D44,"B2D5"],
+ [0x7D45,"D6E7"],
+ [0x7D46,"B2CC"],
+ [0x7D47,"D6EB"],
+ [0x7D4A,"D6EE"],
+ [0x7D4D,"A0B6"],
+ [0x7D4E,"DAFB"],
+ [0x7D4F,"DAF2"],
+ [0x7D50,"B5B2"],
+ [0x7D51,"DAF9"],
+ [0x7D52,"DAF6"],
+ [0x7D53,"DAEE"],
+ [0x7D54,"DAF7"],
+ [0x7D55,"B5B4"],
+ [0x7D56,"DAEF"],
+ [0x7D58,"DAEB"],
+ [0x7D5A,"9E42"],
+ [0x7D5B,"B86C"],
+ [0x7D5C,"DAF4"],
+ [0x7D5D,"8EA4"],
+ [0x7D5E,"B5B1"],
+ [0x7D5F,"DAFA"],
+ [0x7D61,"B5B8"],
+ [0x7D62,"B5BA"],
+ [0x7D63,"DAED"],
+ [0x7D66,"B5B9"],
+ [0x7D67,"DAF0"],
+ [0x7D68,"B5B3"],
+ [0x7D69,"DAF8"],
+ [0x7D6A,"DAF1"],
+ [0x7D6B,"DAF5"],
+ [0x7D6D,"DAF3"],
+ [0x7D6E,"B5B6"],
+ [0x7D6F,"DAEC"],
+ [0x7D70,"B5BB"],
+ [0x7D71,"B2CE"],
+ [0x7D72,"B5B7"],
+ [0x7D73,"B5BC"],
+ [0x7D79,"B868"],
+ [0x7D7A,"DF5D"],
+ [0x7D7B,"DF5F"],
+ [0x7D7C,"DF61"],
+ [0x7D7D,"DF65"],
+ [0x7D7F,"DF5B"],
+ [0x7D80,"DF59"],
+ [0x7D81,"B86A"],
+ [0x7D83,"DF60"],
+ [0x7D84,"DF64"],
+ [0x7D85,"DF5C"],
+ [0x7D86,"DF58"],
+ [0x7D88,"DF57"],
+ [0x7D89,"8EA7"],
+ [0x7D8B,"8C76"],
+ [0x7D8C,"DF62"],
+ [0x7D8D,"DF5A"],
+ [0x7D8E,"DF5E"],
+ [0x7D8F,"B86B"],
+ [0x7D91,"B869"],
+ [0x7D92,"DF66"],
+ [0x7D93,"B867"],
+ [0x7D94,"DF63"],
+ [0x7D95,"8767"],
+ [0x7D96,"E372"],
+ [0x7D97,"9542"],
+ [0x7D9C,"BAEE"],
+ [0x7D9D,"E36A"],
+ [0x7D9E,"BD78"],
+ [0x7D9F,"E374"],
+ [0x7DA0,"BAF1"],
+ [0x7DA1,"E378"],
+ [0x7DA2,"BAF7"],
+ [0x7DA3,"E365"],
+ [0x7DA4,"987D"],
+ [0x7DA6,"E375"],
+ [0x7DA7,"E362"],
+ [0x7DA8,"9755"],
+ [0x7DA9,"E377"],
+ [0x7DAA,"E366"],
+ [0x7DAB,"8EA8"],
+ [0x7DAC,"BAFE"],
+ [0x7DAD,"BAFB"],
+ [0x7DAE,"E376"],
+ [0x7DAF,"E370"],
+ [0x7DB0,"BAED"],
+ [0x7DB1,"BAF5"],
+ [0x7DB2,"BAF4"],
+ [0x7DB3,"8EAA"],
+ [0x7DB4,"BAF3"],
+ [0x7DB5,"BAF9"],
+ [0x7DB7,"E363"],
+ [0x7DB8,"BAFA"],
+ [0x7DB9,"E371"],
+ [0x7DBA,"BAF6"],
+ [0x7DBB,"BAEC"],
+ [0x7DBC,"E373"],
+ [0x7DBD,"BAEF"],
+ [0x7DBE,"BAF0"],
+ [0x7DBF,"BAF8"],
+ [0x7DC0,"E368"],
+ [0x7DC1,"E367"],
+ [0x7DC2,"E364"],
+ [0x7DC4,"E36C"],
+ [0x7DC5,"E369"],
+ [0x7DC6,"E36D"],
+ [0x7DC7,"BAFD"],
+ [0x7DC9,"E379"],
+ [0x7DCA,"BAF2"],
+ [0x7DCB,"E36E"],
+ [0x7DCC,"E36F"],
+ [0x7DCD,"89A3"],
+ [0x7DCE,"E36B"],
+ [0x7DCF,"9960"],
+ [0x7DD0,"9962"],
+ [0x7DD2,"BAFC"],
+ [0x7DD3,"94FC"],
+ [0x7DD4,"9961"],
+ [0x7DD7,"E6E7"],
+ [0x7DD8,"BD70"],
+ [0x7DD9,"BD79"],
+ [0x7DDA,"BD75"],
+ [0x7DDB,"E6E4"],
+ [0x7DDC,"94FA"],
+ [0x7DDD,"BD72"],
+ [0x7DDE,"BD76"],
+ [0x7DDF,"E6F0"],
+ [0x7DE0,"BD6C"],
+ [0x7DE1,"E6E8"],
+ [0x7DE3,"BD74"],
+ [0x7DE4,"8EAE"],
+ [0x7DE5,"8EB2"],
+ [0x7DE6,"E6EB"],
+ [0x7DE7,"E6E6"],
+ [0x7DE8,"BD73"],
+ [0x7DE9,"BD77"],
+ [0x7DEA,"E6E5"],
+ [0x7DEC,"BD71"],
+ [0x7DEE,"E6EF"],
+ [0x7DEF,"BD6E"],
+ [0x7DF0,"E6EE"],
+ [0x7DF1,"E6ED"],
+ [0x7DF2,"BD7A"],
+ [0x7DF3,"E572"],
+ [0x7DF4,"BD6D"],
+ [0x7DF5,"8EB0"],
+ [0x7DF6,"E6EC"],
+ [0x7DF7,"E6E3"],
+ [0x7DF9,"BD7B"],
+ [0x7DFA,"E6EA"],
+ [0x7DFB,"BD6F"],
+ [0x7DFD,"9963"],
+ [0x7DFE,"97AA"],
+ [0x7E03,"E6E9"],
+ [0x7E07,"94FB"],
+ [0x7E08,"BFA2"],
+ [0x7E09,"BFA7"],
+ [0x7E0A,"BF7E"],
+ [0x7E0B,"EAD8"],
+ [0x7E0C,"EACF"],
+ [0x7E0D,"EADB"],
+ [0x7E0E,"EAD3"],
+ [0x7E0F,"EAD9"],
+ [0x7E10,"BFA8"],
+ [0x7E11,"BFA1"],
+ [0x7E12,"EACC"],
+ [0x7E13,"EAD2"],
+ [0x7E14,"EADC"],
+ [0x7E15,"EAD5"],
+ [0x7E16,"EADA"],
+ [0x7E17,"EACE"],
+ [0x7E1A,"EAD6"],
+ [0x7E1B,"BFA3"],
+ [0x7E1C,"EAD4"],
+ [0x7E1D,"BFA6"],
+ [0x7E1E,"BFA5"],
+ [0x7E1F,"EAD0"],
+ [0x7E20,"EAD1"],
+ [0x7E21,"EACD"],
+ [0x7E22,"EAD7"],
+ [0x7E23,"BFA4"],
+ [0x7E24,"EADE"],
+ [0x7E25,"EADD"],
+ [0x7E27,"8EBB"],
+ [0x7E29,"EDDA"],
+ [0x7E2A,"EDD6"],
+ [0x7E2B,"C15F"],
+ [0x7E2D,"EDD0"],
+ [0x7E2E,"C159"],
+ [0x7E2F,"C169"],
+ [0x7E30,"EDDC"],
+ [0x7E31,"C161"],
+ [0x7E32,"C15D"],
+ [0x7E33,"EDD3"],
+ [0x7E34,"C164"],
+ [0x7E35,"C167"],
+ [0x7E36,"EDDE"],
+ [0x7E37,"C15C"],
+ [0x7E38,"EDD5"],
+ [0x7E39,"C165"],
+ [0x7E3A,"EDE0"],
+ [0x7E3B,"EDDD"],
+ [0x7E3C,"EDD1"],
+ [0x7E3D,"C160"],
+ [0x7E3E,"C15A"],
+ [0x7E3F,"C168"],
+ [0x7E40,"EDD8"],
+ [0x7E41,"C163"],
+ [0x7E42,"EDD2"],
+ [0x7E43,"C15E"],
+ [0x7E44,"EDDF"],
+ [0x7E45,"C162"],
+ [0x7E46,"C15B"],
+ [0x7E47,"EDD9"],
+ [0x7E48,"C166"],
+ [0x7E49,"EDD7"],
+ [0x7E4C,"EDDB"],
+ [0x7E50,"F06E"],
+ [0x7E51,"F074"],
+ [0x7E52,"C2B9"],
+ [0x7E53,"F077"],
+ [0x7E54,"C2B4"],
+ [0x7E55,"C2B5"],
+ [0x7E56,"F06F"],
+ [0x7E57,"F076"],
+ [0x7E58,"F071"],
+ [0x7E59,"C2BA"],
+ [0x7E5A,"C2B7"],
+ [0x7E5B,"8CDC"],
+ [0x7E5C,"F06D"],
+ [0x7E5E,"C2B6"],
+ [0x7E5F,"F073"],
+ [0x7E60,"F075"],
+ [0x7E61,"C2B8"],
+ [0x7E62,"F072"],
+ [0x7E63,"F070"],
+ [0x7E65,"9876"],
+ [0x7E67,"8EA1"],
+ [0x7E68,"F2B8"],
+ [0x7E69,"C3B7"],
+ [0x7E6A,"C3B8"],
+ [0x7E6B,"C3B4"],
+ [0x7E6C,"8CB4"],
+ [0x7E6D,"C3B5"],
+ [0x7E6E,"8EB7"],
+ [0x7E6F,"F2B4"],
+ [0x7E70,"F2B2"],
+ [0x7E72,"F2B6"],
+ [0x7E73,"C3BA"],
+ [0x7E74,"F2B7"],
+ [0x7E75,"F2B0"],
+ [0x7E76,"F2AF"],
+ [0x7E77,"F2B3"],
+ [0x7E78,"F2B1"],
+ [0x7E79,"C3B6"],
+ [0x7E7A,"F2B5"],
+ [0x7E7B,"F4AC"],
+ [0x7E7C,"C47E"],
+ [0x7E7D,"C47D"],
+ [0x7E7E,"F4AD"],
+ [0x7E7F,"9DA6"],
+ [0x7E80,"F4AF"],
+ [0x7E81,"F4AE"],
+ [0x7E82,"C4A1"],
+ [0x7E86,"F5EB"],
+ [0x7E87,"F5E8"],
+ [0x7E88,"F5E9"],
+ [0x7E8A,"F5E7"],
+ [0x7E8B,"F5EA"],
+ [0x7E8C,"C4F2"],
+ [0x7E8D,"F5EC"],
+ [0x7E8E,"9EB0"],
+ [0x7E8F,"C4F1"],
+ [0x7E91,"F742"],
+ [0x7E92,"8EB8"],
+ [0x7E93,"C5D5"],
+ [0x7E94,"C5D7"],
+ [0x7E95,"F7EE"],
+ [0x7E96,"C5D6"],
+ [0x7E97,"F8B9"],
+ [0x7E98,"F940"],
+ [0x7E99,"F942"],
+ [0x7E9A,"F8FE"],
+ [0x7E9B,"F941"],
+ [0x7E9C,"C66C"],
+ [0x7E9F,"9D70"],
+ [0x7EA4,"896E"],
+ [0x7EAC,"896F"],
+ [0x7EBA,"8970"],
+ [0x7EC7,"8971"],
+ [0x7ECF,"8972"],
+ [0x7EDF,"8973"],
+ [0x7F06,"8974"],
+ [0x7F36,"A6CE"],
+ [0x7F37,"8975"],
+ [0x7F38,"ACFB"],
+ [0x7F39,"D26F"],
+ [0x7F3A,"AFCA"],
+ [0x7F3D,"B2DA"],
+ [0x7F3E,"DAFC"],
+ [0x7F3F,"DAFD"],
+ [0x7F40,"8EBC"],
+ [0x7F41,"8EBD"],
+ [0x7F43,"EADF"],
+ [0x7F44,"C16A"],
+ [0x7F45,"EDE1"],
+ [0x7F47,"8EBE"],
+ [0x7F48,"C2BB"],
+ [0x7F49,"9DD1"],
+ [0x7F4A,"F2BA"],
+ [0x7F4B,"F2B9"],
+ [0x7F4C,"C4A2"],
+ [0x7F4D,"F5ED"],
+ [0x7F4E,"94FD"],
+ [0x7F4F,"F743"],
+ [0x7F50,"C5F8"],
+ [0x7F51,"CA49"],
+ [0x7F52,"8BD7"],
+ [0x7F53,"8BDA"],
+ [0x7F54,"AAC9"],
+ [0x7F55,"A875"],
+ [0x7F58,"D04D"],
+ [0x7F5B,"D360"],
+ [0x7F5C,"D35B"],
+ [0x7F5D,"D35F"],
+ [0x7F5E,"D35D"],
+ [0x7F5F,"AFCB"],
+ [0x7F60,"D35E"],
+ [0x7F61,"D35C"],
+ [0x7F63,"D6F1"],
+ [0x7F65,"DAFE"],
+ [0x7F66,"DB40"],
+ [0x7F67,"DF69"],
+ [0x7F68,"DF6A"],
+ [0x7F69,"B86E"],
+ [0x7F6A,"B86F"],
+ [0x7F6B,"DF68"],
+ [0x7F6C,"DF6B"],
+ [0x7F6D,"DF67"],
+ [0x7F6E,"B86D"],
+ [0x7F70,"BB40"],
+ [0x7F71,"A0E2"],
+ [0x7F72,"B870"],
+ [0x7F73,"E37A"],
+ [0x7F75,"BD7C"],
+ [0x7F76,"E6F1"],
+ [0x7F77,"BD7D"],
+ [0x7F78,"9FE9"],
+ [0x7F79,"BFA9"],
+ [0x7F7A,"EAE2"],
+ [0x7F7B,"EAE0"],
+ [0x7F7C,"EAE1"],
+ [0x7F7D,"EDE4"],
+ [0x7F7E,"EDE3"],
+ [0x7F7F,"EDE2"],
+ [0x7F83,"F2BB"],
+ [0x7F85,"C3B9"],
+ [0x7F86,"F2BC"],
+ [0x7F87,"F744"],
+ [0x7F88,"C5F9"],
+ [0x7F89,"F8BA"],
+ [0x7F8A,"A6CF"],
+ [0x7F8B,"AACB"],
+ [0x7F8C,"AACA"],
+ [0x7F8D,"D04F"],
+ [0x7F8E,"ACFC"],
+ [0x7F8F,"FDA8"],
+ [0x7F91,"D04E"],
+ [0x7F92,"D362"],
+ [0x7F93,"8AE7"],
+ [0x7F94,"AFCC"],
+ [0x7F95,"D6F2"],
+ [0x7F96,"D361"],
+ [0x7F97,"8EC2"],
+ [0x7F9A,"B2DC"],
+ [0x7F9B,"D6F5"],
+ [0x7F9C,"D6F3"],
+ [0x7F9D,"D6F4"],
+ [0x7F9E,"B2DB"],
+ [0x7FA0,"DB42"],
+ [0x7FA1,"DB43"],
+ [0x7FA2,"DB41"],
+ [0x7FA3,"8EC4"],
+ [0x7FA4,"B873"],
+ [0x7FA5,"DF6D"],
+ [0x7FA6,"DF6C"],
+ [0x7FA7,"DF6E"],
+ [0x7FA8,"B872"],
+ [0x7FA9,"B871"],
+ [0x7FAC,"E6F2"],
+ [0x7FAD,"E6F4"],
+ [0x7FAE,"9964"],
+ [0x7FAF,"BD7E"],
+ [0x7FB0,"E6F3"],
+ [0x7FB1,"EAE3"],
+ [0x7FB2,"BFAA"],
+ [0x7FB3,"F079"],
+ [0x7FB4,"9965"],
+ [0x7FB5,"F078"],
+ [0x7FB6,"C3BB"],
+ [0x7FB7,"F2BD"],
+ [0x7FB8,"C3BD"],
+ [0x7FB9,"C3BC"],
+ [0x7FBA,"F4B0"],
+ [0x7FBB,"F5EE"],
+ [0x7FBC,"C4F3"],
+ [0x7FBD,"A6D0"],
+ [0x7FBE,"D050"],
+ [0x7FBF,"ACFD"],
+ [0x7FC0,"D365"],
+ [0x7FC1,"AFCE"],
+ [0x7FC2,"D364"],
+ [0x7FC3,"D363"],
+ [0x7FC5,"AFCD"],
+ [0x7FC7,"D6FB"],
+ [0x7FC9,"D6FD"],
+ [0x7FCA,"D6F6"],
+ [0x7FCB,"D6F7"],
+ [0x7FCC,"B2DD"],
+ [0x7FCD,"D6F8"],
+ [0x7FCE,"B2DE"],
+ [0x7FCF,"D6FC"],
+ [0x7FD0,"D6F9"],
+ [0x7FD1,"D6FA"],
+ [0x7FD2,"B2DF"],
+ [0x7FD4,"B5BE"],
+ [0x7FD5,"B5BF"],
+ [0x7FD7,"DB44"],
+ [0x7FDB,"DF6F"],
+ [0x7FDC,"DF70"],
+ [0x7FDD,"954E"],
+ [0x7FDE,"E37E"],
+ [0x7FDF,"BB43"],
+ [0x7FE0,"BB41"],
+ [0x7FE1,"BB42"],
+ [0x7FE2,"E37B"],
+ [0x7FE3,"E37C"],
+ [0x7FE5,"E37D"],
+ [0x7FE6,"E6F9"],
+ [0x7FE7,"98B3"],
+ [0x7FE8,"E6FA"],
+ [0x7FE9,"BDA1"],
+ [0x7FEA,"E6F7"],
+ [0x7FEB,"E6F6"],
+ [0x7FEC,"E6F8"],
+ [0x7FED,"E6F5"],
+ [0x7FEE,"BFAD"],
+ [0x7FEF,"EAE4"],
+ [0x7FF0,"BFAB"],
+ [0x7FF1,"BFAC"],
+ [0x7FF2,"EDE6"],
+ [0x7FF3,"C16B"],
+ [0x7FF4,"EDE5"],
+ [0x7FF5,"EFA8"],
+ [0x7FF7,"F07A"],
+ [0x7FF8,"F07B"],
+ [0x7FF9,"C2BC"],
+ [0x7FFA,"8ECB"],
+ [0x7FFB,"C2BD"],
+ [0x7FFC,"C16C"],
+ [0x7FFD,"F2BE"],
+ [0x7FFE,"F2BF"],
+ [0x7FFF,"F4B1"],
+ [0x8000,"C4A3"],
+ [0x8001,"A6D1"],
+ [0x8002,"8BDF"],
+ [0x8003,"A6D2"],
+ [0x8004,"ACFE"],
+ [0x8005,"AACC"],
+ [0x8006,"AFCF"],
+ [0x8007,"D051"],
+ [0x8008,"8ECE"],
+ [0x800B,"B5C0"],
+ [0x800C,"A6D3"],
+ [0x800D,"AD41"],
+ [0x800E,"D052"],
+ [0x800F,"D053"],
+ [0x8010,"AD40"],
+ [0x8011,"AD42"],
+ [0x8012,"A6D4"],
+ [0x8014,"D054"],
+ [0x8015,"AFD1"],
+ [0x8016,"D366"],
+ [0x8017,"AFD3"],
+ [0x8018,"AFD0"],
+ [0x8019,"AFD2"],
+ [0x801B,"D741"],
+ [0x801C,"B2E0"],
+ [0x801D,"8ECF"],
+ [0x801E,"D740"],
+ [0x801F,"D6FE"],
+ [0x8020,"9968"],
+ [0x8021,"DF71"],
+ [0x8024,"E3A1"],
+ [0x8025,"9969"],
+ [0x8026,"BDA2"],
+ [0x8028,"BFAE"],
+ [0x8029,"EAE6"],
+ [0x802A,"EAE5"],
+ [0x802C,"EDE7"],
+ [0x802E,"996B"],
+ [0x802F,"8ED1"],
+ [0x8030,"F5EF"],
+ [0x8031,"996C"],
+ [0x8033,"A6D5"],
+ [0x8034,"CB73"],
+ [0x8035,"CDAA"],
+ [0x8036,"AD43"],
+ [0x8037,"D055"],
+ [0x8039,"D368"],
+ [0x803B,"8ED4"],
+ [0x803C,"8ED5"],
+ [0x803D,"AFD4"],
+ [0x803E,"D367"],
+ [0x803F,"AFD5"],
+ [0x8043,"D743"],
+ [0x8046,"B2E2"],
+ [0x8047,"D742"],
+ [0x8048,"D744"],
+ [0x804A,"B2E1"],
+ [0x804F,"DB46"],
+ [0x8050,"DB47"],
+ [0x8051,"DB45"],
+ [0x8052,"B5C1"],
+ [0x8054,"996D"],
+ [0x8056,"B874"],
+ [0x8058,"B875"],
+ [0x805A,"BB45"],
+ [0x805B,"A0BE"],
+ [0x805C,"E3A3"],
+ [0x805D,"E3A2"],
+ [0x805E,"BB44"],
+ [0x8061,"8ED6"],
+ [0x8062,"A0BC"],
+ [0x8063,"A0B5"],
+ [0x8064,"E6FB"],
+ [0x8066,"A0B4"],
+ [0x8067,"E6FC"],
+ [0x806C,"EAE7"],
+ [0x806F,"C170"],
+ [0x8070,"C16F"],
+ [0x8071,"C16D"],
+ [0x8072,"C16E"],
+ [0x8073,"C171"],
+ [0x8075,"F07C"],
+ [0x8076,"C2BF"],
+ [0x8077,"C2BE"],
+ [0x8078,"F2C0"],
+ [0x8079,"F4B2"],
+ [0x807D,"C5A5"],
+ [0x807E,"C5A4"],
+ [0x807F,"A6D6"],
+ [0x8080,"8BE0"],
+ [0x8082,"D1FB"],
+ [0x8084,"B877"],
+ [0x8085,"B5C2"],
+ [0x8086,"B876"],
+ [0x8087,"BB46"],
+ [0x8089,"A6D7"],
+ [0x808A,"C9A9"],
+ [0x808B,"A6D8"],
+ [0x808C,"A6D9"],
+ [0x808F,"CDAB"],
+ [0x8090,"CB76"],
+ [0x8092,"CB77"],
+ [0x8093,"A877"],
+ [0x8095,"CB74"],
+ [0x8096,"A876"],
+ [0x8098,"A879"],
+ [0x8099,"CB75"],
+ [0x809A,"A87B"],
+ [0x809B,"A87A"],
+ [0x809C,"CB78"],
+ [0x809D,"A878"],
+ [0x809F,"89B5"],
+ [0x80A1,"AAD1"],
+ [0x80A2,"AACF"],
+ [0x80A3,"CDAD"],
+ [0x80A5,"AACE"],
+ [0x80A7,"8EDD"],
+ [0x80A9,"AAD3"],
+ [0x80AA,"AAD5"],
+ [0x80AB,"AAD2"],
+ [0x80AD,"CDB0"],
+ [0x80AE,"CDAC"],
+ [0x80AF,"AAD6"],
+ [0x80B1,"AAD0"],
+ [0x80B2,"A87C"],
+ [0x80B4,"AAD4"],
+ [0x80B5,"CDAF"],
+ [0x80B6,"9E5D"],
+ [0x80B7,"9971"],
+ [0x80B8,"CDAE"],
+ [0x80BA,"AACD"],
+ [0x80BC,"89AE"],
+ [0x80BD,"9DE8"],
+ [0x80C2,"D05B"],
+ [0x80C3,"AD47"],
+ [0x80C4,"AD48"],
+ [0x80C5,"D05D"],
+ [0x80C6,"9565"],
+ [0x80C7,"D057"],
+ [0x80C8,"D05A"],
+ [0x80C9,"D063"],
+ [0x80CA,"D061"],
+ [0x80CC,"AD49"],
+ [0x80CD,"D067"],
+ [0x80CE,"AD4C"],
+ [0x80CF,"D064"],
+ [0x80D0,"D05C"],
+ [0x80D1,"D059"],
+ [0x80D4,"DB49"],
+ [0x80D5,"D062"],
+ [0x80D6,"AD44"],
+ [0x80D7,"D065"],
+ [0x80D8,"D056"],
+ [0x80D9,"D05F"],
+ [0x80DA,"AD46"],
+ [0x80DB,"AD4B"],
+ [0x80DC,"D060"],
+ [0x80DD,"AD4F"],
+ [0x80DE,"AD4D"],
+ [0x80E0,"D058"],
+ [0x80E1,"AD4A"],
+ [0x80E3,"D05E"],
+ [0x80E4,"AD4E"],
+ [0x80E5,"AD45"],
+ [0x80E6,"D066"],
+ [0x80E9,"9972"],
+ [0x80EC,"8B5C"],
+ [0x80ED,"AFDA"],
+ [0x80EF,"AFE3"],
+ [0x80F0,"AFD8"],
+ [0x80F1,"AFD6"],
+ [0x80F2,"D36A"],
+ [0x80F3,"AFDE"],
+ [0x80F4,"AFDB"],
+ [0x80F5,"D36C"],
+ [0x80F6,"89B1"],
+ [0x80F8,"AFDD"],
+ [0x80F9,"D36B"],
+ [0x80FA,"D369"],
+ [0x80FB,"D36E"],
+ [0x80FC,"AFE2"],
+ [0x80FD,"AFE0"],
+ [0x80FE,"DB48"],
+ [0x8100,"D36F"],
+ [0x8101,"D36D"],
+ [0x8102,"AFD7"],
+ [0x8103,"A0C0"],
+ [0x8105,"AFD9"],
+ [0x8106,"AFDC"],
+ [0x8107,"8EDF"],
+ [0x8108,"AFDF"],
+ [0x8109,"9566"],
+ [0x810A,"AFE1"],
+ [0x810C,"9974"],
+ [0x810E,"9976"],
+ [0x8112,"9977"],
+ [0x8114,"9979"],
+ [0x8115,"D74E"],
+ [0x8116,"B2E4"],
+ [0x8117,"9DDA"],
+ [0x8118,"D745"],
+ [0x8119,"D747"],
+ [0x811A,"8EE0"],
+ [0x811B,"D748"],
+ [0x811D,"D750"],
+ [0x811E,"D74C"],
+ [0x811F,"D74A"],
+ [0x8121,"D74D"],
+ [0x8122,"D751"],
+ [0x8123,"B2E5"],
+ [0x8124,"B2E9"],
+ [0x8125,"D746"],
+ [0x8127,"D74F"],
+ [0x8129,"B2E7"],
+ [0x812A,"935C"],
+ [0x812B,"B2E6"],
+ [0x812C,"D74B"],
+ [0x812D,"D749"],
+ [0x812F,"B2E3"],
+ [0x8130,"B2E8"],
+ [0x8132,"9DE6"],
+ [0x8134,"8B5F"],
+ [0x8137,"9563"],
+ [0x8139,"B5C8"],
+ [0x813A,"DB51"],
+ [0x813D,"DB4F"],
+ [0x813E,"B5CA"],
+ [0x8142,"9567"],
+ [0x8143,"DB4A"],
+ [0x8144,"DFA1"],
+ [0x8146,"B5C9"],
+ [0x8147,"DB4E"],
+ [0x8148,"9DE3"],
+ [0x814A,"DB4B"],
+ [0x814B,"B5C5"],
+ [0x814C,"B5CB"],
+ [0x814D,"DB50"],
+ [0x814E,"B5C7"],
+ [0x814F,"DB4D"],
+ [0x8150,"BB47"],
+ [0x8151,"B5C6"],
+ [0x8152,"DB4C"],
+ [0x8153,"B5CC"],
+ [0x8154,"B5C4"],
+ [0x8155,"B5C3"],
+ [0x8156,"997C"],
+ [0x8159,"997D"],
+ [0x815A,"997E"],
+ [0x815B,"DF77"],
+ [0x815C,"DF75"],
+ [0x815E,"DF7B"],
+ [0x8160,"DF73"],
+ [0x8161,"DFA2"],
+ [0x8162,"DF78"],
+ [0x8164,"DF72"],
+ [0x8165,"B87B"],
+ [0x8166,"B8A3"],
+ [0x8167,"DF7D"],
+ [0x8169,"DF76"],
+ [0x816B,"B87E"],
+ [0x816C,"8CFB"],
+ [0x816D,"8B5B"],
+ [0x816E,"B87C"],
+ [0x816F,"DF7E"],
+ [0x8170,"B879"],
+ [0x8171,"B878"],
+ [0x8172,"DF79"],
+ [0x8173,"B87D"],
+ [0x8174,"B5CD"],
+ [0x8176,"DF7C"],
+ [0x8177,"DF74"],
+ [0x8178,"B87A"],
+ [0x8179,"B8A1"],
+ [0x817A,"B8A2"],
+ [0x817C,"99A3"],
+ [0x817F,"BB4C"],
+ [0x8180,"BB48"],
+ [0x8182,"BB4D"],
+ [0x8183,"E3A6"],
+ [0x8184,"99A4"],
+ [0x8186,"E3A5"],
+ [0x8187,"E3A7"],
+ [0x8188,"BB4A"],
+ [0x8189,"E3A4"],
+ [0x818A,"BB4B"],
+ [0x818B,"E3AA"],
+ [0x818C,"E3A9"],
+ [0x818D,"E3A8"],
+ [0x818F,"BB49"],
+ [0x8193,"99A6"],
+ [0x8195,"E741"],
+ [0x8197,"E744"],
+ [0x8198,"BDA8"],
+ [0x8199,"E743"],
+ [0x819A,"BDA7"],
+ [0x819B,"BDA3"],
+ [0x819C,"BDA4"],
+ [0x819D,"BDA5"],
+ [0x819E,"E740"],
+ [0x819F,"E6FE"],
+ [0x81A0,"BDA6"],
+ [0x81A2,"E742"],
+ [0x81A3,"E6FD"],
+ [0x81A5,"99A8"],
+ [0x81A6,"EAE9"],
+ [0x81A7,"EAF3"],
+ [0x81A8,"BFB1"],
+ [0x81A9,"BFB0"],
+ [0x81AA,"8ABE"],
+ [0x81AB,"EAED"],
+ [0x81AC,"EAEF"],
+ [0x81AE,"EAEA"],
+ [0x81B0,"EAEE"],
+ [0x81B1,"EAE8"],
+ [0x81B2,"EAF1"],
+ [0x81B3,"BFAF"],
+ [0x81B4,"EAF0"],
+ [0x81B5,"EAEC"],
+ [0x81B6,"9E61"],
+ [0x81B7,"EAF2"],
+ [0x81B9,"EAEB"],
+ [0x81BA,"C174"],
+ [0x81BB,"EDE8"],
+ [0x81BC,"EDEE"],
+ [0x81BD,"C178"],
+ [0x81BE,"C17A"],
+ [0x81BF,"C177"],
+ [0x81C0,"C176"],
+ [0x81C1,"99AA"],
+ [0x81C2,"C175"],
+ [0x81C3,"C173"],
+ [0x81C4,"EDE9"],
+ [0x81C5,"EDEC"],
+ [0x81C6,"C172"],
+ [0x81C7,"EDED"],
+ [0x81C8,"A0C8"],
+ [0x81C9,"C179"],
+ [0x81CA,"EDEB"],
+ [0x81CC,"EDEA"],
+ [0x81CD,"C2C0"],
+ [0x81CF,"C2C1"],
+ [0x81D0,"F0A1"],
+ [0x81D1,"F07D"],
+ [0x81D2,"F07E"],
+ [0x81D5,"F2C2"],
+ [0x81D7,"F2C1"],
+ [0x81D8,"C3BE"],
+ [0x81D9,"F4B4"],
+ [0x81DA,"C4A4"],
+ [0x81DB,"F4B3"],
+ [0x81DD,"F5F0"],
+ [0x81DE,"F745"],
+ [0x81DF,"C5A6"],
+ [0x81E0,"F943"],
+ [0x81E1,"F944"],
+ [0x81E2,"C5D8"],
+ [0x81E3,"A6DA"],
+ [0x81E4,"99AB"],
+ [0x81E5,"AAD7"],
+ [0x81E6,"DB52"],
+ [0x81E7,"BB4E"],
+ [0x81E8,"C17B"],
+ [0x81E9,"EDEF"],
+ [0x81EA,"A6DB"],
+ [0x81EC,"AFE5"],
+ [0x81ED,"AFE4"],
+ [0x81EE,"DB53"],
+ [0x81EF,"FEC4"],
+ [0x81F2,"EAF4"],
+ [0x81F3,"A6DC"],
+ [0x81F4,"AD50"],
+ [0x81F6,"98C2"],
+ [0x81F7,"DB54"],
+ [0x81F8,"DB55"],
+ [0x81F9,"DB56"],
+ [0x81FA,"BB4F"],
+ [0x81FB,"BFB2"],
+ [0x81FC,"A6DD"],
+ [0x81FE,"AAD8"],
+ [0x81FF,"D068"],
+ [0x8200,"AFE6"],
+ [0x8201,"D370"],
+ [0x8202,"B2EA"],
+ [0x8204,"DB57"],
+ [0x8205,"B8A4"],
+ [0x8207,"BB50"],
+ [0x8208,"BFB3"],
+ [0x8209,"C17C"],
+ [0x820A,"C2C2"],
+ [0x820B,"F4B5"],
+ [0x820C,"A6DE"],
+ [0x820D,"AAD9"],
+ [0x8210,"AFE7"],
+ [0x8211,"D752"],
+ [0x8212,"B5CE"],
+ [0x8214,"BB51"],
+ [0x8215,"E3AB"],
+ [0x8216,"E745"],
+ [0x8218,"8EE8"],
+ [0x821A,"A0BA"],
+ [0x821B,"A6DF"],
+ [0x821C,"B5CF"],
+ [0x821D,"DFA3"],
+ [0x821E,"BB52"],
+ [0x821F,"A6E0"],
+ [0x8220,"CDB1"],
+ [0x8221,"D069"],
+ [0x8222,"AD51"],
+ [0x8225,"D372"],
+ [0x8226,"FD77"],
+ [0x8228,"AFEA"],
+ [0x8229,"8EEE"],
+ [0x822A,"AFE8"],
+ [0x822B,"AFE9"],
+ [0x822C,"AFEB"],
+ [0x822D,"9EBF"],
+ [0x822F,"D371"],
+ [0x8232,"D757"],
+ [0x8233,"D754"],
+ [0x8234,"D756"],
+ [0x8235,"B2EB"],
+ [0x8236,"B2ED"],
+ [0x8237,"B2EC"],
+ [0x8238,"D753"],
+ [0x8239,"B2EE"],
+ [0x823A,"D755"],
+ [0x823C,"DB58"],
+ [0x823D,"DB59"],
+ [0x823E,"89C2"],
+ [0x823F,"DB5A"],
+ [0x8240,"DFA6"],
+ [0x8242,"DFA7"],
+ [0x8244,"DFA5"],
+ [0x8245,"DFA8"],
+ [0x8247,"B8A5"],
+ [0x8249,"DFA4"],
+ [0x824B,"BB53"],
+ [0x824E,"E74A"],
+ [0x824F,"E746"],
+ [0x8250,"E749"],
+ [0x8251,"E74B"],
+ [0x8252,"E748"],
+ [0x8253,"E747"],
+ [0x8254,"99AC"],
+ [0x8255,"EAF5"],
+ [0x8256,"EAF6"],
+ [0x8257,"EAF7"],
+ [0x8258,"BFB4"],
+ [0x8259,"BFB5"],
+ [0x825A,"EDF1"],
+ [0x825B,"EDF0"],
+ [0x825C,"EDF2"],
+ [0x825E,"F0A3"],
+ [0x825F,"F0A2"],
+ [0x8261,"F2C4"],
+ [0x8262,"956B"],
+ [0x8263,"F2C5"],
+ [0x8264,"F2C3"],
+ [0x8265,"956C"],
+ [0x8266,"C4A5"],
+ [0x8268,"F4B6"],
+ [0x8269,"F4B7"],
+ [0x826B,"F746"],
+ [0x826C,"F7EF"],
+ [0x826D,"F8BB"],
+ [0x826E,"A6E1"],
+ [0x826F,"A87D"],
+ [0x8271,"C17D"],
+ [0x8272,"A6E2"],
+ [0x8274,"D758"],
+ [0x8275,"DB5B"],
+ [0x8276,"99AF"],
+ [0x8277,"C641"],
+ [0x8278,"CA4A"],
+ [0x8279,"994A"],
+ [0x827A,"8976"],
+ [0x827B,"8F48"],
+ [0x827C,"CA4B"],
+ [0x827D,"CA4D"],
+ [0x827E,"A6E3"],
+ [0x827F,"CA4E"],
+ [0x8280,"CA4C"],
+ [0x8283,"CBA2"],
+ [0x8284,"CBA3"],
+ [0x8285,"CB7B"],
+ [0x8287,"FBEE"],
+ [0x828A,"CBA1"],
+ [0x828B,"A8A1"],
+ [0x828D,"A8A2"],
+ [0x828E,"CB7C"],
+ [0x828F,"CB7A"],
+ [0x8290,"CB79"],
+ [0x8291,"CB7D"],
+ [0x8292,"A87E"],
+ [0x8293,"CB7E"],
+ [0x8294,"D06A"],
+ [0x8298,"CDB6"],
+ [0x8299,"AADC"],
+ [0x829A,"CDB5"],
+ [0x829B,"CDB7"],
+ [0x829D,"AADB"],
+ [0x829E,"CDBC"],
+ [0x829F,"AADF"],
+ [0x82A0,"CDB2"],
+ [0x82A1,"CDC0"],
+ [0x82A2,"CDC6"],
+ [0x82A3,"AAE6"],
+ [0x82A4,"CDC3"],
+ [0x82A5,"AAE3"],
+ [0x82A6,"99AE"],
+ [0x82A7,"CDB9"],
+ [0x82A8,"CDBF"],
+ [0x82A9,"CDC1"],
+ [0x82AA,"8EFB"],
+ [0x82AB,"CDB4"],
+ [0x82AC,"AAE2"],
+ [0x82AD,"AADD"],
+ [0x82AE,"CDBA"],
+ [0x82AF,"AAE4"],
+ [0x82B0,"AAE7"],
+ [0x82B1,"AAE1"],
+ [0x82B3,"AADA"],
+ [0x82B4,"CDBE"],
+ [0x82B5,"CDB8"],
+ [0x82B6,"CDC5"],
+ [0x82B7,"AAE9"],
+ [0x82B8,"AAE5"],
+ [0x82B9,"AAE0"],
+ [0x82BA,"CDBD"],
+ [0x82BB,"AFEC"],
+ [0x82BC,"CDBB"],
+ [0x82BD,"AADE"],
+ [0x82BE,"AAE8"],
+ [0x82BF,"8CD0"],
+ [0x82C0,"CDB3"],
+ [0x82C2,"CDC2"],
+ [0x82C3,"CDC4"],
+ [0x82C4,"8B52"],
+ [0x82CA,"99B0"],
+ [0x82CF,"8977"],
+ [0x82D0,"8F41"],
+ [0x82D1,"AD62"],
+ [0x82D2,"AD5C"],
+ [0x82D3,"AD64"],
+ [0x82D4,"AD61"],
+ [0x82D5,"D071"],
+ [0x82D6,"D074"],
+ [0x82D7,"AD5D"],
+ [0x82D8,"99B1"],
+ [0x82D9,"D06B"],
+ [0x82DB,"AD56"],
+ [0x82DC,"AD60"],
+ [0x82DE,"AD63"],
+ [0x82DF,"AD65"],
+ [0x82E0,"D0A2"],
+ [0x82E1,"D077"],
+ [0x82E2,"8F49"],
+ [0x82E3,"AD55"],
+ [0x82E4,"D0A1"],
+ [0x82E5,"AD59"],
+ [0x82E6,"AD57"],
+ [0x82E7,"AD52"],
+ [0x82E8,"D06F"],
+ [0x82EA,"D07E"],
+ [0x82EB,"D073"],
+ [0x82EC,"D076"],
+ [0x82ED,"D0A5"],
+ [0x82EE,"FA4D"],
+ [0x82EF,"AD66"],
+ [0x82F0,"D07D"],
+ [0x82F1,"AD5E"],
+ [0x82F2,"D078"],
+ [0x82F3,"D0A4"],
+ [0x82F4,"D075"],
+ [0x82F5,"D079"],
+ [0x82F6,"D07C"],
+ [0x82F7,"9DE4"],
+ [0x82F8,"8CB5"],
+ [0x82F9,"D06D"],
+ [0x82FA,"D0A3"],
+ [0x82FB,"D07B"],
+ [0x82FC,"FBE9"],
+ [0x82FD,"9B54"],
+ [0x82FE,"D06C"],
+ [0x82FF,"99B2"],
+ [0x8300,"D070"],
+ [0x8301,"AD5F"],
+ [0x8302,"AD5A"],
+ [0x8303,"AD53"],
+ [0x8304,"AD58"],
+ [0x8305,"AD54"],
+ [0x8306,"AD67"],
+ [0x8307,"D06E"],
+ [0x8308,"D3A5"],
+ [0x8309,"AD5B"],
+ [0x830B,"9E68"],
+ [0x830C,"D07A"],
+ [0x830D,"CE41"],
+ [0x8316,"D3A8"],
+ [0x8317,"AFFA"],
+ [0x8318,"8F4A"],
+ [0x8319,"D376"],
+ [0x831A,"8F42"],
+ [0x831B,"D3A3"],
+ [0x831C,"D37D"],
+ [0x831D,"8F51"],
+ [0x831E,"D3B2"],
+ [0x8320,"D3AA"],
+ [0x8322,"D37E"],
+ [0x8324,"D3A9"],
+ [0x8325,"D378"],
+ [0x8326,"D37C"],
+ [0x8327,"D3B5"],
+ [0x8328,"AFFD"],
+ [0x8329,"D3AD"],
+ [0x832A,"D3A4"],
+ [0x832B,"AFED"],
+ [0x832C,"D3B3"],
+ [0x832D,"D374"],
+ [0x832F,"D3AC"],
+ [0x8331,"AFFC"],
+ [0x8332,"AFF7"],
+ [0x8333,"D373"],
+ [0x8334,"AFF5"],
+ [0x8335,"AFF4"],
+ [0x8336,"AFF9"],
+ [0x8337,"D3AB"],
+ [0x8338,"AFF1"],
+ [0x8339,"AFF8"],
+ [0x833A,"D072"],
+ [0x833B,"DB5C"],
+ [0x833C,"D3A6"],
+ [0x833D,"9846"],
+ [0x833F,"D37A"],
+ [0x8340,"AFFB"],
+ [0x8341,"D37B"],
+ [0x8342,"D3A1"],
+ [0x8343,"AFFE"],
+ [0x8344,"D375"],
+ [0x8345,"D3AF"],
+ [0x8347,"D3AE"],
+ [0x8348,"D3B6"],
+ [0x8349,"AFF3"],
+ [0x834A,"AFF0"],
+ [0x834B,"D3B4"],
+ [0x834C,"D3B0"],
+ [0x834D,"D3A7"],
+ [0x834E,"D3A2"],
+ [0x834F,"AFF6"],
+ [0x8350,"AFF2"],
+ [0x8351,"D377"],
+ [0x8352,"AFEE"],
+ [0x8353,"D3B1"],
+ [0x8354,"AFEF"],
+ [0x8356,"D379"],
+ [0x8357,"99B4"],
+ [0x8362,"8EF5"],
+ [0x8363,"FD55"],
+ [0x8366,"9CCD"],
+ [0x836F,"8978"],
+ [0x8373,"D75E"],
+ [0x8374,"D760"],
+ [0x8375,"D765"],
+ [0x8376,"D779"],
+ [0x8377,"B2FC"],
+ [0x8378,"B2F2"],
+ [0x837A,"D75D"],
+ [0x837B,"B2FD"],
+ [0x837C,"B2FE"],
+ [0x837D,"D768"],
+ [0x837E,"D76F"],
+ [0x837F,"D775"],
+ [0x8381,"D762"],
+ [0x8383,"D769"],
+ [0x8385,"8F53"],
+ [0x8386,"B340"],
+ [0x8387,"D777"],
+ [0x8388,"D772"],
+ [0x8389,"B2FA"],
+ [0x838A,"B2F8"],
+ [0x838B,"D76E"],
+ [0x838C,"D76A"],
+ [0x838D,"D75C"],
+ [0x838E,"B2EF"],
+ [0x838F,"D761"],
+ [0x8390,"D759"],
+ [0x8391,"8F6F"],
+ [0x8392,"B2F7"],
+ [0x8393,"B2F9"],
+ [0x8394,"D766"],
+ [0x8395,"D763"],
+ [0x8396,"B2F4"],
+ [0x8397,"D773"],
+ [0x8398,"B2F1"],
+ [0x8399,"D764"],
+ [0x839A,"D77A"],
+ [0x839B,"D76C"],
+ [0x839C,"8E63"],
+ [0x839D,"D76B"],
+ [0x839E,"B2F0"],
+ [0x83A0,"B2FB"],
+ [0x83A2,"B2F3"],
+ [0x83A3,"D75A"],
+ [0x83A4,"D75F"],
+ [0x83A5,"D770"],
+ [0x83A6,"D776"],
+ [0x83A7,"B341"],
+ [0x83A8,"D75B"],
+ [0x83A9,"D767"],
+ [0x83AA,"D76D"],
+ [0x83AB,"B2F6"],
+ [0x83AC,"8F56"],
+ [0x83AE,"D778"],
+ [0x83AF,"D771"],
+ [0x83B0,"D774"],
+ [0x83B9,"FE76"],
+ [0x83BD,"B2F5"],
+ [0x83BE,"9FC6"],
+ [0x83BF,"DB6C"],
+ [0x83C0,"DB60"],
+ [0x83C1,"B5D7"],
+ [0x83C2,"DB7D"],
+ [0x83C3,"DBA7"],
+ [0x83C4,"DBAA"],
+ [0x83C5,"B5D5"],
+ [0x83C6,"DB68"],
+ [0x83C7,"DBA3"],
+ [0x83C8,"DB69"],
+ [0x83C9,"DB77"],
+ [0x83CA,"B5E2"],
+ [0x83CB,"DB73"],
+ [0x83CC,"B5DF"],
+ [0x83CD,"FAAC"],
+ [0x83CE,"DB74"],
+ [0x83CF,"DB5D"],
+ [0x83D1,"DBA4"],
+ [0x83D3,"8F58"],
+ [0x83D4,"B5E8"],
+ [0x83D5,"DBA1"],
+ [0x83D6,"DB75"],
+ [0x83D7,"DBAC"],
+ [0x83D8,"DB70"],
+ [0x83D9,"DFC8"],
+ [0x83DB,"DBAF"],
+ [0x83DC,"B5E6"],
+ [0x83DD,"DB6E"],
+ [0x83DE,"DB7A"],
+ [0x83DF,"B5E9"],
+ [0x83E0,"B5D4"],
+ [0x83E1,"DB72"],
+ [0x83E2,"DBAD"],
+ [0x83E3,"DB6B"],
+ [0x83E4,"DB64"],
+ [0x83E5,"DB6F"],
+ [0x83E7,"DB63"],
+ [0x83E8,"DB61"],
+ [0x83E9,"B5D0"],
+ [0x83EA,"DBA5"],
+ [0x83EB,"DB6A"],
+ [0x83EC,"DBA8"],
+ [0x83ED,"9848"],
+ [0x83EE,"DBA9"],
+ [0x83EF,"B5D8"],
+ [0x83F0,"B5DD"],
+ [0x83F1,"B5D9"],
+ [0x83F2,"B5E1"],
+ [0x83F3,"DB7E"],
+ [0x83F4,"B5DA"],
+ [0x83F5,"DB76"],
+ [0x83F6,"DB66"],
+ [0x83F8,"B5D2"],
+ [0x83F9,"DB5E"],
+ [0x83FA,"DBA2"],
+ [0x83FB,"DBAB"],
+ [0x83FC,"DB65"],
+ [0x83FD,"B5E0"],
+ [0x83FE,"DBB0"],
+ [0x83FF,"DB71"],
+ [0x8401,"DB6D"],
+ [0x8403,"B5D1"],
+ [0x8404,"B5E5"],
+ [0x8405,"99B7"],
+ [0x8406,"DB7C"],
+ [0x8407,"B5E7"],
+ [0x8409,"DB78"],
+ [0x840A,"B5DC"],
+ [0x840B,"B5D6"],
+ [0x840C,"B5DE"],
+ [0x840D,"B5D3"],
+ [0x840E,"B5E4"],
+ [0x840F,"DB79"],
+ [0x8410,"DB67"],
+ [0x8411,"DB7B"],
+ [0x8412,"DB62"],
+ [0x8413,"DBA6"],
+ [0x8414,"9665"],
+ [0x8416,"FA6C"],
+ [0x8418,"9DE7"],
+ [0x841B,"DBAE"],
+ [0x841C,"9E62"],
+ [0x8420,"96CC"],
+ [0x8421,"8E67"],
+ [0x8423,"DB5F"],
+ [0x8424,"FC75"],
+ [0x8426,"987E"],
+ [0x8429,"DFC7"],
+ [0x842B,"DFDD"],
+ [0x842C,"B855"],
+ [0x842D,"DFCC"],
+ [0x842E,"FDB9"],
+ [0x842F,"DFCA"],
+ [0x8430,"DFB5"],
+ [0x8431,"B8A9"],
+ [0x8432,"DFC5"],
+ [0x8433,"DFD9"],
+ [0x8434,"DFC1"],
+ [0x8435,"B8B1"],
+ [0x8436,"DFD8"],
+ [0x8437,"DFBF"],
+ [0x8438,"B5E3"],
+ [0x8439,"DFCF"],
+ [0x843A,"DFC0"],
+ [0x843B,"DFD6"],
+ [0x843C,"B8B0"],
+ [0x843D,"B8A8"],
+ [0x843E,"97FC"],
+ [0x843F,"DFAA"],
+ [0x8440,"DFB2"],
+ [0x8442,"DFCB"],
+ [0x8443,"DFC3"],
+ [0x8444,"DFDC"],
+ [0x8445,"DFC6"],
+ [0x8446,"B8B6"],
+ [0x8447,"DFD7"],
+ [0x8448,"98F9"],
+ [0x8449,"B8AD"],
+ [0x844A,"8F66"],
+ [0x844B,"DFC9"],
+ [0x844C,"DFD1"],
+ [0x844D,"DFB6"],
+ [0x844E,"DFD0"],
+ [0x8450,"DFE1"],
+ [0x8451,"DFB1"],
+ [0x8452,"DFD2"],
+ [0x8453,"956E"],
+ [0x8454,"DFDF"],
+ [0x8455,"9245"],
+ [0x8456,"DFAB"],
+ [0x8457,"B5DB"],
+ [0x8458,"8F60"],
+ [0x8459,"DFB9"],
+ [0x845A,"DFB8"],
+ [0x845B,"B8AF"],
+ [0x845C,"9ED1"],
+ [0x845D,"DFBC"],
+ [0x845E,"DFBE"],
+ [0x845F,"DFCD"],
+ [0x8460,"DFDE"],
+ [0x8461,"B8B2"],
+ [0x8462,"FECD"],
+ [0x8463,"B8B3"],
+ [0x8464,"99B9"],
+ [0x8465,"DFB0"],
+ [0x8466,"B8AB"],
+ [0x8467,"DFB4"],
+ [0x8468,"DFDA"],
+ [0x8469,"B8B4"],
+ [0x846B,"B8AC"],
+ [0x846C,"B8AE"],
+ [0x846D,"B8B5"],
+ [0x846E,"DFE0"],
+ [0x846F,"DFD3"],
+ [0x8470,"DFCE"],
+ [0x8471,"8F62"],
+ [0x8472,"974C"],
+ [0x8473,"DFBB"],
+ [0x8474,"DFBA"],
+ [0x8475,"B8AA"],
+ [0x8476,"DFAC"],
+ [0x8477,"B8A7"],
+ [0x8478,"DFC4"],
+ [0x8479,"DFAD"],
+ [0x847A,"DFC2"],
+ [0x847D,"DFB7"],
+ [0x847E,"DFDB"],
+ [0x847F,"91C7"],
+ [0x8480,"955F"],
+ [0x8482,"B8A6"],
+ [0x8484,"87AB"],
+ [0x8486,"DFB3"],
+ [0x8488,"99BB"],
+ [0x848D,"DFAF"],
+ [0x848E,"DFD5"],
+ [0x848F,"DFAE"],
+ [0x8490,"BB60"],
+ [0x8491,"E3D3"],
+ [0x8492,"8E6D"],
+ [0x8493,"8F71"],
+ [0x8494,"E3C2"],
+ [0x8496,"94CB"],
+ [0x8497,"E3AC"],
+ [0x8498,"E3CA"],
+ [0x8499,"BB58"],
+ [0x849A,"E3BB"],
+ [0x849B,"E3C5"],
+ [0x849C,"BB5B"],
+ [0x849D,"E3BE"],
+ [0x849E,"BB59"],
+ [0x849F,"E3AF"],
+ [0x84A0,"E3CD"],
+ [0x84A1,"E3AE"],
+ [0x84A2,"E3C1"],
+ [0x84A3,"95B1"],
+ [0x84A4,"E3AD"],
+ [0x84A7,"E3BF"],
+ [0x84A8,"E3C8"],
+ [0x84A9,"E3C6"],
+ [0x84AA,"E3BA"],
+ [0x84AB,"E3B5"],
+ [0x84AC,"E3B3"],
+ [0x84AD,"9AF2"],
+ [0x84AE,"E3B4"],
+ [0x84AF,"E3C7"],
+ [0x84B0,"E3D2"],
+ [0x84B1,"E3BC"],
+ [0x84B2,"BB5A"],
+ [0x84B4,"E3B7"],
+ [0x84B6,"E3CB"],
+ [0x84B8,"BB5D"],
+ [0x84B9,"E3B6"],
+ [0x84BA,"E3B0"],
+ [0x84BB,"E3C0"],
+ [0x84BC,"BB61"],
+ [0x84BD,"96C3"],
+ [0x84BE,"99BD"],
+ [0x84BF,"BB55"],
+ [0x84C0,"BB5E"],
+ [0x84C1,"E3B8"],
+ [0x84C2,"E3B2"],
+ [0x84C4,"BB57"],
+ [0x84C5,"DFD4"],
+ [0x84C6,"BB56"],
+ [0x84C7,"E3C3"],
+ [0x84C9,"BB54"],
+ [0x84CA,"BB63"],
+ [0x84CB,"BB5C"],
+ [0x84CC,"E3C4"],
+ [0x84CD,"E3B9"],
+ [0x84CE,"E3B1"],
+ [0x84CF,"E3CC"],
+ [0x84D0,"E3BD"],
+ [0x84D1,"BB62"],
+ [0x84D2,"E3D0"],
+ [0x84D3,"BB5F"],
+ [0x84D4,"E3CF"],
+ [0x84D6,"E3C9"],
+ [0x84D7,"E3CE"],
+ [0x84DA,"A0CF"],
+ [0x84DB,"E3D1"],
+ [0x84DE,"8F6D"],
+ [0x84E1,"99BE"],
+ [0x84E2,"8EF4"],
+ [0x84E4,"8F72"],
+ [0x84E5,"95E4"],
+ [0x84E7,"E773"],
+ [0x84E8,"E774"],
+ [0x84E9,"E767"],
+ [0x84EA,"E766"],
+ [0x84EB,"E762"],
+ [0x84EC,"BDB4"],
+ [0x84EE,"BDAC"],
+ [0x84EF,"E776"],
+ [0x84F0,"E775"],
+ [0x84F1,"DFA9"],
+ [0x84F2,"E75F"],
+ [0x84F3,"E763"],
+ [0x84F4,"E75D"],
+ [0x84F6,"E770"],
+ [0x84F7,"E761"],
+ [0x84F8,"99BF"],
+ [0x84F9,"E777"],
+ [0x84FA,"E75A"],
+ [0x84FB,"E758"],
+ [0x84FC,"E764"],
+ [0x84FD,"E76E"],
+ [0x84FE,"E769"],
+ [0x84FF,"BDB6"],
+ [0x8500,"E74F"],
+ [0x8502,"E76D"],
+ [0x8503,"9242"],
+ [0x8504,"87D7"],
+ [0x8505,"FBA5"],
+ [0x8506,"BDB7"],
+ [0x8507,"DFBD"],
+ [0x8508,"E75B"],
+ [0x8509,"E752"],
+ [0x850A,"E755"],
+ [0x850B,"E77B"],
+ [0x850C,"E75C"],
+ [0x850D,"E753"],
+ [0x850E,"E751"],
+ [0x850F,"E74E"],
+ [0x8510,"99C0"],
+ [0x8511,"BDB0"],
+ [0x8512,"E765"],
+ [0x8513,"BDAF"],
+ [0x8514,"BDB3"],
+ [0x8515,"E760"],
+ [0x8516,"E768"],
+ [0x8517,"BDA9"],
+ [0x8518,"E778"],
+ [0x8519,"E77C"],
+ [0x851A,"BDAB"],
+ [0x851C,"E757"],
+ [0x851D,"E76B"],
+ [0x851E,"E76F"],
+ [0x851F,"E754"],
+ [0x8520,"E779"],
+ [0x8521,"BDB2"],
+ [0x8523,"BDB1"],
+ [0x8524,"E74C"],
+ [0x8525,"BDB5"],
+ [0x8526,"E772"],
+ [0x8527,"E756"],
+ [0x8528,"E76A"],
+ [0x8529,"E750"],
+ [0x852A,"E75E"],
+ [0x852B,"E759"],
+ [0x852C,"BDAD"],
+ [0x852D,"BDAE"],
+ [0x852E,"E76C"],
+ [0x852F,"E77D"],
+ [0x8530,"E77A"],
+ [0x8531,"E771"],
+ [0x8533,"FDB4"],
+ [0x8534,"8F77"],
+ [0x8538,"99C1"],
+ [0x853B,"E74D"],
+ [0x853D,"BDAA"],
+ [0x853E,"EB49"],
+ [0x8540,"EB40"],
+ [0x8541,"EB43"],
+ [0x8542,"FAB9"],
+ [0x8543,"BFBB"],
+ [0x8544,"EB45"],
+ [0x8545,"EAF9"],
+ [0x8546,"EB41"],
+ [0x8547,"EB47"],
+ [0x8548,"BFB8"],
+ [0x8549,"BFBC"],
+ [0x854A,"BFB6"],
+ [0x854B,"8F40"],
+ [0x854C,"FA44"],
+ [0x854D,"EAFB"],
+ [0x854E,"EB4C"],
+ [0x8551,"EB46"],
+ [0x8552,"99C2"],
+ [0x8553,"EAFC"],
+ [0x8554,"EB55"],
+ [0x8555,"EB4F"],
+ [0x8556,"EAF8"],
+ [0x8557,"EE46"],
+ [0x8558,"EAFE"],
+ [0x8559,"BFB7"],
+ [0x855A,"8F5C"],
+ [0x855B,"EB4A"],
+ [0x855D,"EB54"],
+ [0x855E,"BFBF"],
+ [0x855F,"8CBD"],
+ [0x8560,"EB51"],
+ [0x8561,"EAFD"],
+ [0x8562,"EB44"],
+ [0x8563,"EB48"],
+ [0x8564,"EB42"],
+ [0x8565,"EB56"],
+ [0x8566,"EB53"],
+ [0x8567,"EB50"],
+ [0x8568,"BFB9"],
+ [0x8569,"BFBA"],
+ [0x856A,"BFBE"],
+ [0x856B,"EAFA"],
+ [0x856C,"EB57"],
+ [0x856D,"BFBD"],
+ [0x856E,"EB4D"],
+ [0x856F,"99C4"],
+ [0x8570,"99C5"],
+ [0x8571,"EB4B"],
+ [0x8573,"8F7B"],
+ [0x8575,"EB4E"],
+ [0x8576,"EE53"],
+ [0x8577,"EE40"],
+ [0x8578,"EE45"],
+ [0x8579,"EE52"],
+ [0x857A,"EE44"],
+ [0x857B,"EDFB"],
+ [0x857C,"EE41"],
+ [0x857E,"C1A2"],
+ [0x8580,"EDF4"],
+ [0x8581,"EE4D"],
+ [0x8582,"EE4F"],
+ [0x8583,"EDF3"],
+ [0x8584,"C1A1"],
+ [0x8585,"EE51"],
+ [0x8586,"EE49"],
+ [0x8587,"C1A8"],
+ [0x8588,"EE50"],
+ [0x8589,"EE42"],
+ [0x858A,"C1AA"],
+ [0x858B,"EDF9"],
+ [0x858C,"EB52"],
+ [0x858D,"EE4A"],
+ [0x858E,"EE47"],
+ [0x858F,"EDF5"],
+ [0x8590,"EE55"],
+ [0x8591,"C1A4"],
+ [0x8593,"8776"],
+ [0x8594,"C1A5"],
+ [0x8595,"EDF7"],
+ [0x8596,"EE48"],
+ [0x8597,"8CB6"],
+ [0x8598,"EE54"],
+ [0x8599,"EE4B"],
+ [0x859A,"EDFD"],
+ [0x859B,"C1A7"],
+ [0x859C,"C1A3"],
+ [0x859D,"EE4C"],
+ [0x859E,"EDFE"],
+ [0x859F,"EE56"],
+ [0x85A0,"EDF8"],
+ [0x85A1,"EE43"],
+ [0x85A2,"EE4E"],
+ [0x85A3,"EDFA"],
+ [0x85A4,"EDFC"],
+ [0x85A6,"C2CB"],
+ [0x85A7,"EDF6"],
+ [0x85A8,"C1A9"],
+ [0x85A9,"C2C4"],
+ [0x85AA,"C17E"],
+ [0x85AF,"C1A6"],
+ [0x85B0,"C2C8"],
+ [0x85B1,"F0B3"],
+ [0x85B3,"F0A9"],
+ [0x85B4,"F0A4"],
+ [0x85B5,"F0AA"],
+ [0x85B6,"F0B4"],
+ [0x85B7,"F0B8"],
+ [0x85B8,"F0B7"],
+ [0x85B9,"C2CA"],
+ [0x85BA,"C2C9"],
+ [0x85BD,"F0AB"],
+ [0x85BE,"F0B9"],
+ [0x85BF,"F0AE"],
+ [0x85C0,"F0A6"],
+ [0x85C1,"8FA3"],
+ [0x85C2,"F0A8"],
+ [0x85C3,"F0A7"],
+ [0x85C4,"F0AD"],
+ [0x85C5,"F0B2"],
+ [0x85C6,"F0A5"],
+ [0x85C7,"F0AC"],
+ [0x85C8,"F0B1"],
+ [0x85C9,"C2C7"],
+ [0x85CB,"F0AF"],
+ [0x85CD,"C2C5"],
+ [0x85CE,"F0B0"],
+ [0x85CF,"C2C3"],
+ [0x85D0,"C2C6"],
+ [0x85D1,"F2D5"],
+ [0x85D2,"F0B5"],
+ [0x85D5,"C3C2"],
+ [0x85D6,"8CCE"],
+ [0x85D7,"F2CD"],
+ [0x85D8,"F2D1"],
+ [0x85D9,"F2C9"],
+ [0x85DA,"F2CC"],
+ [0x85DC,"F2D4"],
+ [0x85DD,"C3C0"],
+ [0x85DE,"F2D9"],
+ [0x85DF,"F2D2"],
+ [0x85E0,"99C6"],
+ [0x85E1,"F2CA"],
+ [0x85E2,"F2DA"],
+ [0x85E3,"F2D3"],
+ [0x85E4,"C3C3"],
+ [0x85E5,"C3C4"],
+ [0x85E6,"F2D7"],
+ [0x85E8,"F2CB"],
+ [0x85E9,"C3BF"],
+ [0x85EA,"C3C1"],
+ [0x85EB,"F2C6"],
+ [0x85EC,"F2CE"],
+ [0x85ED,"F2C8"],
+ [0x85EE,"96CD"],
+ [0x85EF,"F2D8"],
+ [0x85F0,"F2D6"],
+ [0x85F1,"F2C7"],
+ [0x85F2,"F2CF"],
+ [0x85F6,"F4BE"],
+ [0x85F7,"C3C5"],
+ [0x85F8,"F2D0"],
+ [0x85F9,"C4A7"],
+ [0x85FA,"C4A9"],
+ [0x85FB,"C4A6"],
+ [0x85FC,"96C7"],
+ [0x85FD,"F4C3"],
+ [0x85FE,"F4BB"],
+ [0x85FF,"F4B9"],
+ [0x8600,"F4BD"],
+ [0x8601,"F4BA"],
+ [0x8602,"8FA5"],
+ [0x8604,"F4BF"],
+ [0x8605,"F4C1"],
+ [0x8606,"C4AA"],
+ [0x8607,"C4AC"],
+ [0x8609,"F4C0"],
+ [0x860A,"C4AD"],
+ [0x860B,"C4AB"],
+ [0x860C,"F4C2"],
+ [0x860D,"FABB"],
+ [0x860F,"8C61"],
+ [0x8610,"9570"],
+ [0x8611,"C4A8"],
+ [0x8613,"87AF"],
+ [0x8614,"9368"],
+ [0x8616,"8F7E"],
+ [0x8617,"C4F4"],
+ [0x8618,"F5F1"],
+ [0x8619,"F5F7"],
+ [0x861A,"C4F6"],
+ [0x861B,"F4BC"],
+ [0x861C,"F5F6"],
+ [0x861E,"F5FD"],
+ [0x861F,"F5F4"],
+ [0x8620,"F5FB"],
+ [0x8621,"F5FA"],
+ [0x8622,"F4B8"],
+ [0x8623,"F5F5"],
+ [0x8624,"F0B6"],
+ [0x8625,"F5FE"],
+ [0x8626,"F5F3"],
+ [0x8627,"F5F8"],
+ [0x8628,"8FAA"],
+ [0x8629,"F5FC"],
+ [0x862A,"F5F2"],
+ [0x862C,"F74A"],
+ [0x862D,"C4F5"],
+ [0x862E,"F5F9"],
+ [0x862F,"A050"],
+ [0x8631,"F7F4"],
+ [0x8632,"F74B"],
+ [0x8633,"F749"],
+ [0x8634,"F747"],
+ [0x8635,"F748"],
+ [0x8636,"F74C"],
+ [0x8638,"C5D9"],
+ [0x8639,"F7F2"],
+ [0x863A,"F7F0"],
+ [0x863B,"F7F5"],
+ [0x863C,"F7F3"],
+ [0x863E,"F7F6"],
+ [0x863F,"C5DA"],
+ [0x8640,"F7F1"],
+ [0x8642,"90D3"],
+ [0x8643,"F8BC"],
+ [0x8645,"9556"],
+ [0x8646,"F945"],
+ [0x8647,"F946"],
+ [0x8648,"F947"],
+ [0x864B,"F9C7"],
+ [0x864C,"F9BD"],
+ [0x864D,"CA4F"],
+ [0x864E,"AAEA"],
+ [0x8650,"AD68"],
+ [0x8652,"D3B8"],
+ [0x8653,"D3B7"],
+ [0x8654,"B040"],
+ [0x8655,"B342"],
+ [0x8656,"D77C"],
+ [0x8659,"D77B"],
+ [0x865B,"B5EA"],
+ [0x865C,"B8B8"],
+ [0x865E,"B8B7"],
+ [0x865F,"B8B9"],
+ [0x8661,"E3D4"],
+ [0x8662,"E77E"],
+ [0x8663,"EB58"],
+ [0x8664,"EB5A"],
+ [0x8665,"EB59"],
+ [0x8667,"C1AB"],
+ [0x8668,"EE57"],
+ [0x8669,"F0BA"],
+ [0x866A,"F9A5"],
+ [0x866B,"A6E4"],
+ [0x866C,"8FB8"],
+ [0x866D,"CDC9"],
+ [0x866E,"CDCA"],
+ [0x866F,"CDC8"],
+ [0x8670,"CDC7"],
+ [0x8671,"AAEB"],
+ [0x8672,"99C8"],
+ [0x8673,"D0A9"],
+ [0x8674,"D0A7"],
+ [0x8677,"D0A6"],
+ [0x8679,"AD69"],
+ [0x867A,"AD6B"],
+ [0x867B,"AD6A"],
+ [0x867C,"D0A8"],
+ [0x867E,"8FAF"],
+ [0x8685,"D3C4"],
+ [0x8686,"D3C1"],
+ [0x8687,"D3BF"],
+ [0x868A,"B041"],
+ [0x868B,"D3C2"],
+ [0x868C,"B046"],
+ [0x868D,"D3BC"],
+ [0x868E,"D3CB"],
+ [0x8690,"D3CD"],
+ [0x8691,"D3BD"],
+ [0x8692,"99C9"],
+ [0x8693,"B043"],
+ [0x8694,"D3CE"],
+ [0x8695,"D3C9"],
+ [0x8696,"D3BB"],
+ [0x8697,"D3C0"],
+ [0x8698,"D3CA"],
+ [0x8699,"D3C6"],
+ [0x869A,"D3C3"],
+ [0x869C,"B048"],
+ [0x869D,"D3CC"],
+ [0x869E,"D3BE"],
+ [0x86A0,"9579"],
+ [0x86A1,"D3C7"],
+ [0x86A2,"D3B9"],
+ [0x86A3,"B047"],
+ [0x86A4,"B044"],
+ [0x86A5,"D3C5"],
+ [0x86A7,"D3C8"],
+ [0x86A8,"D3BA"],
+ [0x86A9,"B045"],
+ [0x86AA,"B042"],
+ [0x86AD,"9F49"],
+ [0x86AF,"B34C"],
+ [0x86B0,"D7A5"],
+ [0x86B1,"B34B"],
+ [0x86B2,"99CA"],
+ [0x86B3,"D7A8"],
+ [0x86B4,"D7AB"],
+ [0x86B5,"B348"],
+ [0x86B6,"B346"],
+ [0x86B7,"D77E"],
+ [0x86B8,"D7A9"],
+ [0x86B9,"D7A7"],
+ [0x86BA,"D7A4"],
+ [0x86BB,"D7AC"],
+ [0x86BC,"D7AD"],
+ [0x86BD,"D7AF"],
+ [0x86BE,"D7B0"],
+ [0x86BF,"D77D"],
+ [0x86C0,"B345"],
+ [0x86C1,"D7A2"],
+ [0x86C2,"D7A1"],
+ [0x86C3,"D7AE"],
+ [0x86C4,"B347"],
+ [0x86C5,"D7A3"],
+ [0x86C6,"B349"],
+ [0x86C7,"B344"],
+ [0x86C8,"D7A6"],
+ [0x86C9,"B34D"],
+ [0x86CB,"B34A"],
+ [0x86CC,"D7AA"],
+ [0x86D0,"B5F1"],
+ [0x86D1,"DBBF"],
+ [0x86D3,"DBB4"],
+ [0x86D4,"B5EE"],
+ [0x86D6,"DFE7"],
+ [0x86D7,"DBBD"],
+ [0x86D8,"DBB1"],
+ [0x86D9,"B5EC"],
+ [0x86DA,"DBB6"],
+ [0x86DB,"B5EF"],
+ [0x86DC,"DBBA"],
+ [0x86DD,"DBB8"],
+ [0x86DE,"B5F2"],
+ [0x86DF,"B5EB"],
+ [0x86E2,"DBB2"],
+ [0x86E3,"DBB5"],
+ [0x86E4,"B5F0"],
+ [0x86E6,"DBB3"],
+ [0x86E8,"DBBE"],
+ [0x86E9,"DBBC"],
+ [0x86EA,"DBB7"],
+ [0x86EB,"DBB9"],
+ [0x86EC,"DBBB"],
+ [0x86ED,"B5ED"],
+ [0x86EF,"99CB"],
+ [0x86F5,"DFE8"],
+ [0x86F6,"DFEE"],
+ [0x86F7,"DFE4"],
+ [0x86F8,"DFEA"],
+ [0x86F9,"B8BA"],
+ [0x86FA,"DFE6"],
+ [0x86FB,"B8C0"],
+ [0x86FE,"B8BF"],
+ [0x8700,"B8BE"],
+ [0x8701,"DFED"],
+ [0x8702,"B8C1"],
+ [0x8703,"B8C2"],
+ [0x8704,"DFE3"],
+ [0x8705,"DFF0"],
+ [0x8706,"B8C3"],
+ [0x8707,"B8BD"],
+ [0x8708,"B8BC"],
+ [0x8709,"DFEC"],
+ [0x870A,"B8C4"],
+ [0x870B,"DFE2"],
+ [0x870C,"DFE5"],
+ [0x870D,"DFEF"],
+ [0x870E,"DFEB"],
+ [0x8711,"E3F4"],
+ [0x8712,"E3E9"],
+ [0x8713,"B8BB"],
+ [0x8718,"BB6A"],
+ [0x8719,"E3DD"],
+ [0x871A,"E3F2"],
+ [0x871B,"E3DE"],
+ [0x871C,"BB65"],
+ [0x871E,"E3DB"],
+ [0x8720,"E3E4"],
+ [0x8721,"E3DC"],
+ [0x8722,"BB67"],
+ [0x8723,"E3D6"],
+ [0x8724,"E3F1"],
+ [0x8725,"BB68"],
+ [0x8726,"E3EE"],
+ [0x8727,"E3EF"],
+ [0x8728,"E3D7"],
+ [0x8729,"BB6D"],
+ [0x872A,"E3E6"],
+ [0x872C,"E3E0"],
+ [0x872D,"E3E7"],
+ [0x872E,"E3DA"],
+ [0x8730,"E3F3"],
+ [0x8731,"E3EB"],
+ [0x8732,"E3E5"],
+ [0x8733,"E3D5"],
+ [0x8734,"BB69"],
+ [0x8735,"E3EC"],
+ [0x8737,"BB6C"],
+ [0x8738,"E3F0"],
+ [0x873A,"E3EA"],
+ [0x873B,"BB66"],
+ [0x873C,"E3E8"],
+ [0x873E,"E3E2"],
+ [0x873F,"BB64"],
+ [0x8740,"E3D9"],
+ [0x8741,"E3E1"],
+ [0x8742,"E3ED"],
+ [0x8743,"E3DF"],
+ [0x8746,"E3E3"],
+ [0x874C,"BDC1"],
+ [0x874D,"DFE9"],
+ [0x874E,"E7B2"],
+ [0x874F,"E7BB"],
+ [0x8750,"E7B1"],
+ [0x8751,"E7AD"],
+ [0x8752,"E7AA"],
+ [0x8753,"BDC2"],
+ [0x8754,"E7A8"],
+ [0x8755,"BB6B"],
+ [0x8756,"E7A1"],
+ [0x8757,"BDC0"],
+ [0x8758,"E7A7"],
+ [0x8759,"BDBF"],
+ [0x875A,"E7AC"],
+ [0x875B,"E7A9"],
+ [0x875C,"E7B9"],
+ [0x875D,"E7B4"],
+ [0x875E,"E7AE"],
+ [0x875F,"E7B3"],
+ [0x8760,"BDBB"],
+ [0x8761,"E7AB"],
+ [0x8762,"E7BE"],
+ [0x8763,"E7A2"],
+ [0x8764,"E7A3"],
+ [0x8765,"E7BA"],
+ [0x8766,"BDBC"],
+ [0x8767,"E7BF"],
+ [0x8768,"BDBE"],
+ [0x8769,"E7C0"],
+ [0x876A,"E7B0"],
+ [0x876B,"E3D8"],
+ [0x876C,"E7B6"],
+ [0x876D,"E7AF"],
+ [0x876E,"E7B8"],
+ [0x876F,"E7B5"],
+ [0x8770,"9DD5"],
+ [0x8771,"8FB0"],
+ [0x8773,"E7A6"],
+ [0x8774,"BDB9"],
+ [0x8775,"E7BD"],
+ [0x8776,"BDBA"],
+ [0x8777,"E7A4"],
+ [0x8778,"BDBD"],
+ [0x8779,"EB64"],
+ [0x877A,"E7B7"],
+ [0x877B,"E7BC"],
+ [0x877D,"FA7A"],
+ [0x8781,"EB61"],
+ [0x8782,"BDB8"],
+ [0x8783,"BFC0"],
+ [0x8784,"EB6B"],
+ [0x8785,"EB67"],
+ [0x8786,"9E5F"],
+ [0x8787,"EB65"],
+ [0x8788,"EB60"],
+ [0x8789,"EB6F"],
+ [0x878B,"99CD"],
+ [0x878C,"A0C9"],
+ [0x878D,"BFC4"],
+ [0x878F,"EB5C"],
+ [0x8790,"EB68"],
+ [0x8791,"EB69"],
+ [0x8792,"EB5F"],
+ [0x8793,"EB5E"],
+ [0x8794,"EB6C"],
+ [0x8796,"EB62"],
+ [0x8797,"EB5D"],
+ [0x8798,"EB63"],
+ [0x879A,"EB6E"],
+ [0x879B,"EB5B"],
+ [0x879C,"EB6D"],
+ [0x879D,"EB6A"],
+ [0x879E,"BFC2"],
+ [0x879F,"BFC1"],
+ [0x87A2,"BFC3"],
+ [0x87A3,"EB66"],
+ [0x87A4,"F0CB"],
+ [0x87A5,"9ADB"],
+ [0x87A9,"A0C6"],
+ [0x87AA,"EE59"],
+ [0x87AB,"C1B1"],
+ [0x87AC,"EE5D"],
+ [0x87AD,"EE5A"],
+ [0x87AE,"EE61"],
+ [0x87AF,"EE67"],
+ [0x87B0,"EE5C"],
+ [0x87B1,"8FB4"],
+ [0x87B2,"EE70"],
+ [0x87B3,"C1AE"],
+ [0x87B4,"EE6A"],
+ [0x87B5,"EE5F"],
+ [0x87B6,"EE6B"],
+ [0x87B7,"EE66"],
+ [0x87B8,"EE6D"],
+ [0x87B9,"EE5E"],
+ [0x87BA,"C1B3"],
+ [0x87BB,"C1B2"],
+ [0x87BC,"EE60"],
+ [0x87BD,"EE6E"],
+ [0x87BE,"EE58"],
+ [0x87BF,"EE6C"],
+ [0x87C0,"C1AC"],
+ [0x87C1,"A0D7"],
+ [0x87C2,"EE64"],
+ [0x87C3,"EE63"],
+ [0x87C4,"EE68"],
+ [0x87C5,"EE5B"],
+ [0x87C6,"C1B0"],
+ [0x87C8,"C1B4"],
+ [0x87C9,"EE62"],
+ [0x87CA,"EE69"],
+ [0x87CB,"C1B5"],
+ [0x87CC,"EE65"],
+ [0x87CE,"A0C7"],
+ [0x87D1,"C1AD"],
+ [0x87D2,"C1AF"],
+ [0x87D3,"F0C7"],
+ [0x87D4,"F0C5"],
+ [0x87D6,"A043"],
+ [0x87D7,"F0CC"],
+ [0x87D8,"F0C9"],
+ [0x87D9,"F0CD"],
+ [0x87DA,"8FB5"],
+ [0x87DB,"F0BE"],
+ [0x87DC,"F0C6"],
+ [0x87DD,"F0D1"],
+ [0x87DE,"EE6F"],
+ [0x87DF,"F0C2"],
+ [0x87E0,"C2CF"],
+ [0x87E1,"E7A5"],
+ [0x87E2,"F0BD"],
+ [0x87E3,"F0CA"],
+ [0x87E4,"F0C4"],
+ [0x87E5,"F0C1"],
+ [0x87E6,"F0BC"],
+ [0x87E7,"F0BB"],
+ [0x87E8,"F0D0"],
+ [0x87EA,"F0C0"],
+ [0x87EB,"F0BF"],
+ [0x87EC,"C2CD"],
+ [0x87ED,"F0C8"],
+ [0x87EE,"8FB2"],
+ [0x87EF,"C2CC"],
+ [0x87F2,"C2CE"],
+ [0x87F3,"F0C3"],
+ [0x87F4,"F0CF"],
+ [0x87F5,"A061"],
+ [0x87F6,"F2DE"],
+ [0x87F7,"F2DF"],
+ [0x87F9,"C3C9"],
+ [0x87FA,"F2DC"],
+ [0x87FB,"C3C6"],
+ [0x87FC,"F2E4"],
+ [0x87FE,"C3CA"],
+ [0x87FF,"F2E6"],
+ [0x8800,"F2DB"],
+ [0x8801,"F0CE"],
+ [0x8802,"F2E8"],
+ [0x8803,"F2DD"],
+ [0x8804,"9E5E"],
+ [0x8805,"C3C7"],
+ [0x8806,"F2E3"],
+ [0x8808,"F2E5"],
+ [0x8809,"F2E0"],
+ [0x880A,"F2E7"],
+ [0x880B,"F2E2"],
+ [0x880C,"F2E1"],
+ [0x880D,"C3C8"],
+ [0x880F,"8FB6"],
+ [0x8810,"F4C5"],
+ [0x8811,"F4C6"],
+ [0x8813,"F4C8"],
+ [0x8814,"C4AE"],
+ [0x8815,"C4AF"],
+ [0x8816,"F4C9"],
+ [0x8817,"F4C7"],
+ [0x8818,"9FE8"],
+ [0x8819,"F4C4"],
+ [0x881B,"F642"],
+ [0x881C,"F645"],
+ [0x881D,"F641"],
+ [0x881F,"C4FA"],
+ [0x8820,"F643"],
+ [0x8821,"C4F9"],
+ [0x8822,"C4F8"],
+ [0x8823,"C4F7"],
+ [0x8824,"F644"],
+ [0x8825,"F751"],
+ [0x8826,"F74F"],
+ [0x8827,"9CB2"],
+ [0x8828,"F74E"],
+ [0x8829,"F640"],
+ [0x882A,"F750"],
+ [0x882B,"F646"],
+ [0x882C,"F74D"],
+ [0x882D,"957C"],
+ [0x882E,"F7F9"],
+ [0x882F,"F7D7"],
+ [0x8830,"F7F7"],
+ [0x8831,"C5DB"],
+ [0x8832,"F7F8"],
+ [0x8833,"F7FA"],
+ [0x8835,"F8BF"],
+ [0x8836,"C5FA"],
+ [0x8837,"F8BE"],
+ [0x8838,"F8BD"],
+ [0x8839,"C5FB"],
+ [0x883B,"C65A"],
+ [0x883C,"F96E"],
+ [0x883D,"F9A7"],
+ [0x883E,"F9A6"],
+ [0x883F,"F9A8"],
+ [0x8840,"A6E5"],
+ [0x8841,"D0AA"],
+ [0x8842,"9FC7"],
+ [0x8843,"D3CF"],
+ [0x8844,"D3D0"],
+ [0x8845,"8FBB"],
+ [0x8846,"8FBC"],
+ [0x8848,"DBC0"],
+ [0x884A,"F647"],
+ [0x884B,"F8C0"],
+ [0x884C,"A6E6"],
+ [0x884D,"AD6C"],
+ [0x884E,"D0AB"],
+ [0x884F,"8FEC"],
+ [0x8852,"D7B1"],
+ [0x8853,"B34E"],
+ [0x8855,"DBC2"],
+ [0x8856,"DBC1"],
+ [0x8857,"B5F3"],
+ [0x8859,"B8C5"],
+ [0x885A,"E7C1"],
+ [0x885B,"BDC3"],
+ [0x885D,"BDC4"],
+ [0x885E,"8FC0"],
+ [0x8860,"936A"],
+ [0x8861,"BFC5"],
+ [0x8862,"C5FC"],
+ [0x8863,"A6E7"],
+ [0x8864,"8BE4"],
+ [0x8865,"9C7C"],
+ [0x8867,"D0AC"],
+ [0x8868,"AAED"],
+ [0x8869,"D0AE"],
+ [0x886A,"D0AD"],
+ [0x886B,"AD6D"],
+ [0x886D,"D3D1"],
+ [0x886E,"95A1"],
+ [0x886F,"D3D8"],
+ [0x8870,"B049"],
+ [0x8871,"D3D6"],
+ [0x8872,"D3D4"],
+ [0x8874,"D3DB"],
+ [0x8875,"D3D2"],
+ [0x8876,"D3D3"],
+ [0x8877,"B04A"],
+ [0x8879,"B04E"],
+ [0x887C,"D3DC"],
+ [0x887D,"B04D"],
+ [0x887E,"D3DA"],
+ [0x887F,"D3D7"],
+ [0x8880,"D3D5"],
+ [0x8881,"B04B"],
+ [0x8882,"B04C"],
+ [0x8883,"D3D9"],
+ [0x8884,"FEEC"],
+ [0x8887,"95A3"],
+ [0x8888,"B350"],
+ [0x8889,"D7B2"],
+ [0x888B,"B355"],
+ [0x888C,"D7C2"],
+ [0x888D,"B354"],
+ [0x888E,"D7C4"],
+ [0x888F,"8C45"],
+ [0x8890,"8CB8"],
+ [0x8891,"D7B8"],
+ [0x8892,"B352"],
+ [0x8893,"D7C3"],
+ [0x8895,"D7B3"],
+ [0x8896,"B353"],
+ [0x8897,"D7BF"],
+ [0x8898,"D7BB"],
+ [0x8899,"D7BD"],
+ [0x889A,"D7B7"],
+ [0x889B,"D7BE"],
+ [0x889C,"8FC1"],
+ [0x889D,"87B7"],
+ [0x889E,"B34F"],
+ [0x889F,"D7BA"],
+ [0x88A0,"A052"],
+ [0x88A1,"D7B9"],
+ [0x88A2,"D7B5"],
+ [0x88A4,"D7C0"],
+ [0x88A7,"D7BC"],
+ [0x88A8,"D7B4"],
+ [0x88AA,"D7B6"],
+ [0x88AB,"B351"],
+ [0x88AC,"D7C1"],
+ [0x88AE,"99D0"],
+ [0x88B1,"B5F6"],
+ [0x88B2,"DBCD"],
+ [0x88B4,"8FC3"],
+ [0x88B5,"8FC4"],
+ [0x88B6,"DBC9"],
+ [0x88B7,"DBCB"],
+ [0x88B8,"DBC6"],
+ [0x88B9,"DBC5"],
+ [0x88BA,"DBC3"],
+ [0x88BC,"DBCA"],
+ [0x88BD,"DBCC"],
+ [0x88BE,"DBC8"],
+ [0x88BF,"95A4"],
+ [0x88C0,"DBC7"],
+ [0x88C1,"B5F4"],
+ [0x88C2,"B5F5"],
+ [0x88C5,"8FC6"],
+ [0x88C7,"9E60"],
+ [0x88C9,"DBCF"],
+ [0x88CA,"B8CD"],
+ [0x88CB,"DFF2"],
+ [0x88CC,"DFF8"],
+ [0x88CD,"DFF3"],
+ [0x88CE,"DFF4"],
+ [0x88CF,"F9D8"],
+ [0x88D0,"DFF9"],
+ [0x88D2,"B8CF"],
+ [0x88D4,"B8C7"],
+ [0x88D5,"B8CE"],
+ [0x88D6,"DFF1"],
+ [0x88D7,"DBC4"],
+ [0x88D8,"B8CA"],
+ [0x88D9,"B8C8"],
+ [0x88DA,"DFF7"],
+ [0x88DB,"DFF6"],
+ [0x88DC,"B8C9"],
+ [0x88DD,"B8CB"],
+ [0x88DE,"DFF5"],
+ [0x88DF,"B8C6"],
+ [0x88E1,"B8CC"],
+ [0x88E6,"95A5"],
+ [0x88E7,"E3F6"],
+ [0x88E8,"BB74"],
+ [0x88EB,"E442"],
+ [0x88EC,"E441"],
+ [0x88EE,"E3FB"],
+ [0x88EF,"BB76"],
+ [0x88F0,"E440"],
+ [0x88F1,"E3F7"],
+ [0x88F2,"E3F8"],
+ [0x88F3,"BB6E"],
+ [0x88F4,"BB70"],
+ [0x88F5,"9CB3"],
+ [0x88F6,"E3FD"],
+ [0x88F7,"E3F5"],
+ [0x88F8,"BB72"],
+ [0x88F9,"BB71"],
+ [0x88FA,"E3F9"],
+ [0x88FB,"E3FE"],
+ [0x88FC,"E3FC"],
+ [0x88FD,"BB73"],
+ [0x88FE,"E3FA"],
+ [0x88FF,"99D1"],
+ [0x8900,"FEF1"],
+ [0x8901,"DBCE"],
+ [0x8902,"BB6F"],
+ [0x8905,"E7C2"],
+ [0x8906,"E7C9"],
+ [0x8907,"BDC6"],
+ [0x8909,"E7CD"],
+ [0x890A,"BDCA"],
+ [0x890B,"E7C5"],
+ [0x890C,"E7C3"],
+ [0x890E,"E7CC"],
+ [0x8910,"BDC5"],
+ [0x8911,"E7CB"],
+ [0x8912,"BDC7"],
+ [0x8913,"BDC8"],
+ [0x8914,"E7C4"],
+ [0x8915,"BDC9"],
+ [0x8916,"E7CA"],
+ [0x8917,"E7C6"],
+ [0x8918,"E7C7"],
+ [0x8919,"E7C8"],
+ [0x891A,"BB75"],
+ [0x891E,"EB70"],
+ [0x891F,"EB7C"],
+ [0x8921,"BFCA"],
+ [0x8922,"EB77"],
+ [0x8923,"EB79"],
+ [0x8924,"99D2"],
+ [0x8925,"BFC8"],
+ [0x8926,"EB71"],
+ [0x8927,"EB75"],
+ [0x8929,"EB78"],
+ [0x892A,"BFC6"],
+ [0x892B,"BFC9"],
+ [0x892C,"EB7B"],
+ [0x892D,"EB73"],
+ [0x892E,"EB74"],
+ [0x892F,"EB7A"],
+ [0x8930,"EB72"],
+ [0x8931,"EB76"],
+ [0x8932,"BFC7"],
+ [0x8933,"EE72"],
+ [0x8935,"EE71"],
+ [0x8936,"C1B7"],
+ [0x8937,"EE77"],
+ [0x8938,"C1B9"],
+ [0x893B,"C1B6"],
+ [0x893C,"EE73"],
+ [0x893D,"C1BA"],
+ [0x893E,"EE74"],
+ [0x8941,"EE75"],
+ [0x8942,"EE78"],
+ [0x8943,"9CC2"],
+ [0x8944,"C1B8"],
+ [0x8946,"F0D6"],
+ [0x8947,"99D3"],
+ [0x8949,"F0D9"],
+ [0x894B,"F0D3"],
+ [0x894C,"F0D5"],
+ [0x894D,"95A7"],
+ [0x894F,"F0D4"],
+ [0x8950,"F0D7"],
+ [0x8951,"F0D8"],
+ [0x8952,"EE76"],
+ [0x8953,"F0D2"],
+ [0x8954,"95A9"],
+ [0x8956,"C3CD"],
+ [0x8957,"F2EC"],
+ [0x8958,"F2EF"],
+ [0x8959,"F2F1"],
+ [0x895A,"F2EA"],
+ [0x895B,"F2EB"],
+ [0x895C,"F2EE"],
+ [0x895D,"F2F0"],
+ [0x895E,"C3CE"],
+ [0x895F,"C3CC"],
+ [0x8960,"C3CB"],
+ [0x8961,"F2ED"],
+ [0x8962,"F2E9"],
+ [0x8963,"F4CA"],
+ [0x8964,"C4B0"],
+ [0x8965,"95A6"],
+ [0x8966,"F4CB"],
+ [0x8969,"F649"],
+ [0x896A,"C4FB"],
+ [0x896B,"F64B"],
+ [0x896C,"C4FC"],
+ [0x896D,"F648"],
+ [0x896E,"F64A"],
+ [0x896F,"C5A8"],
+ [0x8971,"F752"],
+ [0x8972,"C5A7"],
+ [0x8973,"F7FD"],
+ [0x8974,"F7FC"],
+ [0x8976,"F7FB"],
+ [0x8977,"9C5D"],
+ [0x8979,"F948"],
+ [0x897A,"F949"],
+ [0x897B,"F94B"],
+ [0x897C,"F94A"],
+ [0x897E,"CA50"],
+ [0x897F,"A6E8"],
+ [0x8980,"98E2"],
+ [0x8981,"AD6E"],
+ [0x8982,"D7C5"],
+ [0x8983,"B5F7"],
+ [0x8985,"DFFA"],
+ [0x8986,"C2D0"],
+ [0x8987,"8FC9"],
+ [0x8988,"F2F2"],
+ [0x8989,"A0C2"],
+ [0x898A,"8FCA"],
+ [0x898B,"A8A3"],
+ [0x898F,"B357"],
+ [0x8991,"99D4"],
+ [0x8993,"B356"],
+ [0x8994,"A0B9"],
+ [0x8995,"DBD0"],
+ [0x8996,"B5F8"],
+ [0x8997,"DBD2"],
+ [0x8998,"DBD1"],
+ [0x899B,"DFFB"],
+ [0x899C,"B8D0"],
+ [0x899D,"E443"],
+ [0x899E,"E446"],
+ [0x899F,"E445"],
+ [0x89A1,"E444"],
+ [0x89A2,"E7CE"],
+ [0x89A3,"E7D0"],
+ [0x89A4,"E7CF"],
+ [0x89A5,"9B58"],
+ [0x89A6,"BFCC"],
+ [0x89A7,"8FCD"],
+ [0x89A9,"A0D4"],
+ [0x89AA,"BFCB"],
+ [0x89AC,"C1BB"],
+ [0x89AD,"EE79"],
+ [0x89AE,"EE7B"],
+ [0x89AF,"EE7A"],
+ [0x89B2,"C2D1"],
+ [0x89B6,"F2F4"],
+ [0x89B7,"F2F3"],
+ [0x89B9,"F4CC"],
+ [0x89BA,"C4B1"],
+ [0x89BC,"8FCE"],
+ [0x89BD,"C4FD"],
+ [0x89BE,"F754"],
+ [0x89BF,"F753"],
+ [0x89C0,"C65B"],
+ [0x89C1,"8BE5"],
+ [0x89C6,"8979"],
+ [0x89D2,"A8A4"],
+ [0x89D3,"D0AF"],
+ [0x89D4,"AD6F"],
+ [0x89D5,"D7C8"],
+ [0x89D6,"D7C6"],
+ [0x89D9,"D7C7"],
+ [0x89DA,"DBD4"],
+ [0x89DB,"DBD5"],
+ [0x89DC,"E043"],
+ [0x89DD,"DBD3"],
+ [0x89DF,"DFFC"],
+ [0x89E0,"E041"],
+ [0x89E1,"E040"],
+ [0x89E2,"E042"],
+ [0x89E3,"B8D1"],
+ [0x89E4,"DFFE"],
+ [0x89E5,"DFFD"],
+ [0x89E6,"E044"],
+ [0x89E7,"8FD0"],
+ [0x89E8,"E449"],
+ [0x89E9,"E447"],
+ [0x89EB,"E448"],
+ [0x89EC,"E7D3"],
+ [0x89ED,"E7D1"],
+ [0x89F0,"E7D2"],
+ [0x89F1,"EB7D"],
+ [0x89F2,"EE7C"],
+ [0x89F3,"EE7D"],
+ [0x89F4,"C2D2"],
+ [0x89F6,"F2F5"],
+ [0x89F7,"F4CD"],
+ [0x89F8,"C4B2"],
+ [0x89FA,"F64C"],
+ [0x89FB,"F755"],
+ [0x89FC,"C5A9"],
+ [0x89FE,"F7FE"],
+ [0x89FF,"F94C"],
+ [0x8A00,"A8A5"],
+ [0x8A02,"AD71"],
+ [0x8A03,"AD72"],
+ [0x8A04,"D0B0"],
+ [0x8A07,"D0B1"],
+ [0x8A08,"AD70"],
+ [0x8A0A,"B054"],
+ [0x8A0C,"B052"],
+ [0x8A0E,"B051"],
+ [0x8A0F,"B058"],
+ [0x8A10,"B050"],
+ [0x8A11,"B059"],
+ [0x8A12,"D3DD"],
+ [0x8A13,"B056"],
+ [0x8A15,"B053"],
+ [0x8A16,"B057"],
+ [0x8A17,"B055"],
+ [0x8A18,"B04F"],
+ [0x8A1B,"B35F"],
+ [0x8A1C,"95B6"],
+ [0x8A1D,"B359"],
+ [0x8A1E,"D7CC"],
+ [0x8A1F,"B35E"],
+ [0x8A22,"B360"],
+ [0x8A23,"B35A"],
+ [0x8A25,"B35B"],
+ [0x8A27,"D7CA"],
+ [0x8A29,"99D6"],
+ [0x8A2A,"B358"],
+ [0x8A2B,"95E5"],
+ [0x8A2C,"D7CB"],
+ [0x8A2D,"B35D"],
+ [0x8A30,"D7C9"],
+ [0x8A31,"B35C"],
+ [0x8A34,"B644"],
+ [0x8A36,"B646"],
+ [0x8A38,"99D7"],
+ [0x8A39,"DBD8"],
+ [0x8A3A,"B645"],
+ [0x8A3B,"B5F9"],
+ [0x8A3C,"B5FD"],
+ [0x8A3D,"95B5"],
+ [0x8A3E,"B8E4"],
+ [0x8A3F,"E049"],
+ [0x8A40,"DBDA"],
+ [0x8A41,"B5FE"],
+ [0x8A44,"DBDD"],
+ [0x8A45,"DBDE"],
+ [0x8A46,"B643"],
+ [0x8A48,"DBE0"],
+ [0x8A49,"A0CA"],
+ [0x8A4A,"DBE2"],
+ [0x8A4C,"DBE3"],
+ [0x8A4D,"DBD7"],
+ [0x8A4E,"DBD6"],
+ [0x8A4F,"DBE4"],
+ [0x8A50,"B642"],
+ [0x8A51,"DBE1"],
+ [0x8A52,"DBDF"],
+ [0x8A54,"B640"],
+ [0x8A55,"B5FB"],
+ [0x8A56,"B647"],
+ [0x8A57,"DBDB"],
+ [0x8A58,"DBDC"],
+ [0x8A59,"DBD9"],
+ [0x8A5B,"B641"],
+ [0x8A5E,"B5FC"],
+ [0x8A60,"B5FA"],
+ [0x8A61,"E048"],
+ [0x8A62,"B8DF"],
+ [0x8A63,"B8DA"],
+ [0x8A66,"B8D5"],
+ [0x8A67,"9FFD"],
+ [0x8A68,"B8E5"],
+ [0x8A69,"B8D6"],
+ [0x8A6B,"B8D2"],
+ [0x8A6C,"B8E1"],
+ [0x8A6D,"B8DE"],
+ [0x8A6E,"B8E0"],
+ [0x8A70,"B8D7"],
+ [0x8A71,"B8DC"],
+ [0x8A72,"B8D3"],
+ [0x8A73,"B8D4"],
+ [0x8A74,"E050"],
+ [0x8A75,"E04D"],
+ [0x8A76,"E045"],
+ [0x8A77,"E04A"],
+ [0x8A79,"B8E2"],
+ [0x8A7A,"E051"],
+ [0x8A7B,"B8E3"],
+ [0x8A7C,"B8D9"],
+ [0x8A7E,"A058"],
+ [0x8A7F,"E047"],
+ [0x8A81,"E04F"],
+ [0x8A82,"E04B"],
+ [0x8A83,"E04E"],
+ [0x8A84,"E04C"],
+ [0x8A85,"B8DD"],
+ [0x8A86,"E046"],
+ [0x8A87,"B8D8"],
+ [0x8A8B,"E44C"],
+ [0x8A8C,"BB78"],
+ [0x8A8D,"BB7B"],
+ [0x8A8F,"E44E"],
+ [0x8A90,"8FD6"],
+ [0x8A91,"BBA5"],
+ [0x8A92,"E44D"],
+ [0x8A93,"BB7D"],
+ [0x8A94,"99D8"],
+ [0x8A95,"BDCF"],
+ [0x8A96,"E44F"],
+ [0x8A98,"BBA4"],
+ [0x8A99,"E44B"],
+ [0x8A9A,"BBA6"],
+ [0x8A9C,"8FD3"],
+ [0x8A9E,"BB79"],
+ [0x8AA0,"B8DB"],
+ [0x8AA1,"BB7C"],
+ [0x8AA3,"BB7A"],
+ [0x8AA4,"BB7E"],
+ [0x8AA5,"BBA2"],
+ [0x8AA6,"BB77"],
+ [0x8AA7,"BBA7"],
+ [0x8AA8,"BBA3"],
+ [0x8AA9,"8FE5"],
+ [0x8AAA,"BBA1"],
+ [0x8AAB,"E44A"],
+ [0x8AAF,"8FE9"],
+ [0x8AB0,"BDD6"],
+ [0x8AB2,"BDD2"],
+ [0x8AB4,"99D9"],
+ [0x8AB6,"BDD9"],
+ [0x8AB8,"E7D6"],
+ [0x8AB9,"BDDA"],
+ [0x8ABA,"E7E2"],
+ [0x8ABB,"E7DB"],
+ [0x8ABC,"BDCB"],
+ [0x8ABD,"E7E3"],
+ [0x8ABE,"E7DD"],
+ [0x8ABF,"BDD5"],
+ [0x8AC0,"E7DE"],
+ [0x8AC2,"BDD4"],
+ [0x8AC3,"E7E1"],
+ [0x8AC4,"BDCE"],
+ [0x8AC5,"E7DF"],
+ [0x8AC6,"E7D5"],
+ [0x8AC7,"BDCD"],
+ [0x8AC8,"EBAA"],
+ [0x8AC9,"BDD3"],
+ [0x8ACB,"BDD0"],
+ [0x8ACC,"8CF7"],
+ [0x8ACD,"BDD8"],
+ [0x8ACF,"E7D4"],
+ [0x8AD1,"E7D8"],
+ [0x8AD2,"BDCC"],
+ [0x8AD3,"E7D7"],
+ [0x8AD4,"E7D9"],
+ [0x8AD5,"E7DA"],
+ [0x8AD6,"BDD7"],
+ [0x8AD7,"E7DC"],
+ [0x8AD8,"E7E0"],
+ [0x8AD9,"E7E4"],
+ [0x8ADA,"927C"],
+ [0x8ADB,"BDDB"],
+ [0x8ADC,"BFD2"],
+ [0x8ADD,"EBA5"],
+ [0x8ADE,"EBAB"],
+ [0x8ADF,"EBA8"],
+ [0x8AE0,"EB7E"],
+ [0x8AE1,"EBAC"],
+ [0x8AE2,"EBA1"],
+ [0x8AE4,"EBA7"],
+ [0x8AE6,"BFCD"],
+ [0x8AE7,"BFD3"],
+ [0x8AE8,"EBAD"],
+ [0x8AEA,"9C45"],
+ [0x8AEB,"BFCF"],
+ [0x8AED,"BFD9"],
+ [0x8AEE,"BFD4"],
+ [0x8AEF,"EBAF"],
+ [0x8AF0,"EBA9"],
+ [0x8AF1,"BFD0"],
+ [0x8AF2,"EBA2"],
+ [0x8AF3,"BFDA"],
+ [0x8AF4,"EBA3"],
+ [0x8AF5,"EBA4"],
+ [0x8AF6,"BFDB"],
+ [0x8AF7,"BFD8"],
+ [0x8AF8,"BDD1"],
+ [0x8AF9,"8CE8"],
+ [0x8AFA,"BFCE"],
+ [0x8AFB,"EBB0"],
+ [0x8AFC,"BFDC"],
+ [0x8AFE,"BFD5"],
+ [0x8AFF,"EBAE"],
+ [0x8B00,"BFD1"],
+ [0x8B01,"BFD6"],
+ [0x8B02,"BFD7"],
+ [0x8B04,"C1C3"],
+ [0x8B05,"EEA4"],
+ [0x8B06,"EEAD"],
+ [0x8B07,"EEAA"],
+ [0x8B08,"EEAC"],
+ [0x8B0A,"C1C0"],
+ [0x8B0B,"EEA5"],
+ [0x8B0C,"8FDE"],
+ [0x8B0D,"EEAB"],
+ [0x8B0E,"C1BC"],
+ [0x8B0F,"EEA7"],
+ [0x8B10,"C1C4"],
+ [0x8B11,"EEA3"],
+ [0x8B12,"EEA8"],
+ [0x8B13,"EEAF"],
+ [0x8B14,"EBA6"],
+ [0x8B15,"EEA9"],
+ [0x8B16,"EEA2"],
+ [0x8B17,"C1BD"],
+ [0x8B18,"EEA1"],
+ [0x8B19,"C1BE"],
+ [0x8B1A,"EEB0"],
+ [0x8B1B,"C1BF"],
+ [0x8B1C,"EEAE"],
+ [0x8B1D,"C1C2"],
+ [0x8B1E,"EE7E"],
+ [0x8B1F,"8FDF"],
+ [0x8B20,"C1C1"],
+ [0x8B22,"EEA6"],
+ [0x8B23,"F0DC"],
+ [0x8B24,"F0EA"],
+ [0x8B25,"F0E5"],
+ [0x8B26,"F0E7"],
+ [0x8B27,"F0DB"],
+ [0x8B28,"C2D3"],
+ [0x8B2A,"F0DA"],
+ [0x8B2B,"C2D6"],
+ [0x8B2C,"C2D5"],
+ [0x8B2D,"A04B"],
+ [0x8B2E,"F0E9"],
+ [0x8B2F,"F0E1"],
+ [0x8B30,"F0DE"],
+ [0x8B31,"F0E4"],
+ [0x8B33,"F0DD"],
+ [0x8B35,"F0DF"],
+ [0x8B36,"F0E8"],
+ [0x8B37,"F0E6"],
+ [0x8B39,"C2D4"],
+ [0x8B3A,"F0ED"],
+ [0x8B3B,"F0EB"],
+ [0x8B3C,"F0E2"],
+ [0x8B3D,"F0EC"],
+ [0x8B3E,"F0E3"],
+ [0x8B3F,"8FE2"],
+ [0x8B40,"F2F9"],
+ [0x8B41,"C3CF"],
+ [0x8B42,"F341"],
+ [0x8B43,"A0CC"],
+ [0x8B45,"F64F"],
+ [0x8B46,"C3D6"],
+ [0x8B47,"F0E0"],
+ [0x8B48,"F2F7"],
+ [0x8B49,"C3D2"],
+ [0x8B4A,"F2F8"],
+ [0x8B4B,"F2FD"],
+ [0x8B4C,"8FE3"],
+ [0x8B4D,"8FE4"],
+ [0x8B4E,"C3D4"],
+ [0x8B4F,"C3D5"],
+ [0x8B50,"F2F6"],
+ [0x8B51,"F340"],
+ [0x8B52,"F342"],
+ [0x8B53,"F2FA"],
+ [0x8B54,"F2FC"],
+ [0x8B55,"F2FE"],
+ [0x8B56,"F2FB"],
+ [0x8B57,"F343"],
+ [0x8B58,"C3D1"],
+ [0x8B59,"C3D7"],
+ [0x8B5A,"C3D3"],
+ [0x8B5C,"C3D0"],
+ [0x8B5D,"F4D0"],
+ [0x8B5E,"9BC4"],
+ [0x8B5F,"C4B7"],
+ [0x8B60,"F4CE"],
+ [0x8B62,"9BFC"],
+ [0x8B63,"F4D2"],
+ [0x8B65,"F4D3"],
+ [0x8B66,"C4B5"],
+ [0x8B67,"F4D4"],
+ [0x8B68,"F4D1"],
+ [0x8B69,"964C"],
+ [0x8B6A,"F4CF"],
+ [0x8B6B,"C4B8"],
+ [0x8B6C,"C4B4"],
+ [0x8B6D,"F4D5"],
+ [0x8B6F,"C4B6"],
+ [0x8B70,"C4B3"],
+ [0x8B74,"C4FE"],
+ [0x8B77,"C540"],
+ [0x8B78,"F64E"],
+ [0x8B79,"F64D"],
+ [0x8B7A,"F650"],
+ [0x8B7B,"F651"],
+ [0x8B7D,"C541"],
+ [0x8B7E,"F756"],
+ [0x8B7F,"F75B"],
+ [0x8B80,"C5AA"],
+ [0x8B81,"9AF6"],
+ [0x8B82,"F758"],
+ [0x8B83,"8CAE"],
+ [0x8B84,"F757"],
+ [0x8B85,"F75A"],
+ [0x8B86,"F759"],
+ [0x8B88,"F843"],
+ [0x8B8A,"C5DC"],
+ [0x8B8B,"F842"],
+ [0x8B8C,"F840"],
+ [0x8B8E,"F841"],
+ [0x8B8F,"87CB"],
+ [0x8B90,"8FE7"],
+ [0x8B92,"C5FE"],
+ [0x8B93,"C5FD"],
+ [0x8B94,"F8C1"],
+ [0x8B95,"F8C2"],
+ [0x8B96,"C640"],
+ [0x8B98,"F94D"],
+ [0x8B99,"F94E"],
+ [0x8B9A,"C667"],
+ [0x8B9B,"8FE8"],
+ [0x8B9C,"C66D"],
+ [0x8B9E,"F9A9"],
+ [0x8B9F,"F9C8"],
+ [0x8BA0,"8BE7"],
+ [0x8BBE,"897A"],
+ [0x8BE2,"897B"],
+ [0x8C37,"A8A6"],
+ [0x8C39,"D7CD"],
+ [0x8C3B,"D7CE"],
+ [0x8C3C,"E052"],
+ [0x8C3D,"E450"],
+ [0x8C3E,"E7E5"],
+ [0x8C3F,"C1C6"],
+ [0x8C41,"C1C5"],
+ [0x8C42,"F0EE"],
+ [0x8C43,"F344"],
+ [0x8C45,"F844"],
+ [0x8C46,"A8A7"],
+ [0x8C47,"D3DE"],
+ [0x8C48,"B05A"],
+ [0x8C49,"B361"],
+ [0x8C4A,"E054"],
+ [0x8C4B,"E053"],
+ [0x8C4C,"BDDC"],
+ [0x8C4D,"E7E6"],
+ [0x8C4E,"BDDD"],
+ [0x8C4F,"EEB1"],
+ [0x8C50,"C2D7"],
+ [0x8C51,"99DA"],
+ [0x8C54,"C676"],
+ [0x8C55,"A8A8"],
+ [0x8C56,"CDCB"],
+ [0x8C57,"D3DF"],
+ [0x8C5A,"B362"],
+ [0x8C5C,"D7CF"],
+ [0x8C5D,"D7D0"],
+ [0x8C5F,"DBE5"],
+ [0x8C61,"B648"],
+ [0x8C62,"B8E6"],
+ [0x8C64,"E056"],
+ [0x8C65,"E055"],
+ [0x8C66,"E057"],
+ [0x8C68,"E451"],
+ [0x8C69,"E452"],
+ [0x8C6A,"BBA8"],
+ [0x8C6B,"BFDD"],
+ [0x8C6C,"BDDE"],
+ [0x8C6D,"BFDE"],
+ [0x8C6F,"EEB5"],
+ [0x8C70,"EEB2"],
+ [0x8C71,"EEB4"],
+ [0x8C72,"EEB3"],
+ [0x8C73,"C1C7"],
+ [0x8C75,"F0EF"],
+ [0x8C76,"F346"],
+ [0x8C77,"F345"],
+ [0x8C78,"CBA4"],
+ [0x8C79,"B05C"],
+ [0x8C7A,"B05B"],
+ [0x8C7B,"D3E0"],
+ [0x8C7D,"D7D1"],
+ [0x8C80,"DBE7"],
+ [0x8C81,"DBE6"],
+ [0x8C82,"B649"],
+ [0x8C84,"E059"],
+ [0x8C85,"E05A"],
+ [0x8C86,"E058"],
+ [0x8C89,"B8E8"],
+ [0x8C8A,"B8E7"],
+ [0x8C8C,"BBAA"],
+ [0x8C8D,"BBA9"],
+ [0x8C8F,"E7E7"],
+ [0x8C90,"EBB3"],
+ [0x8C91,"EBB1"],
+ [0x8C92,"EBB2"],
+ [0x8C93,"BFDF"],
+ [0x8C94,"EEB7"],
+ [0x8C95,"EEB6"],
+ [0x8C97,"F0F2"],
+ [0x8C98,"F0F1"],
+ [0x8C99,"F0F0"],
+ [0x8C9A,"F347"],
+ [0x8C9B,"8FED"],
+ [0x8C9C,"F9AA"],
+ [0x8C9D,"A8A9"],
+ [0x8C9E,"AD73"],
+ [0x8C9F,"95C0"],
+ [0x8CA0,"AD74"],
+ [0x8CA1,"B05D"],
+ [0x8CA2,"B05E"],
+ [0x8CA3,"D3E2"],
+ [0x8CA4,"D3E1"],
+ [0x8CA5,"D7D2"],
+ [0x8CA7,"B368"],
+ [0x8CA8,"B366"],
+ [0x8CA9,"B363"],
+ [0x8CAA,"B367"],
+ [0x8CAB,"B365"],
+ [0x8CAC,"B364"],
+ [0x8CAD,"A0CB"],
+ [0x8CAF,"B64A"],
+ [0x8CB0,"DBEA"],
+ [0x8CB2,"B8ED"],
+ [0x8CB3,"B64C"],
+ [0x8CB4,"B651"],
+ [0x8CB5,"DBEC"],
+ [0x8CB6,"B653"],
+ [0x8CB7,"B652"],
+ [0x8CB8,"B655"],
+ [0x8CB9,"DBEB"],
+ [0x8CBA,"DBE8"],
+ [0x8CBB,"B64F"],
+ [0x8CBC,"B64B"],
+ [0x8CBD,"B64D"],
+ [0x8CBE,"DBE9"],
+ [0x8CBF,"B654"],
+ [0x8CC0,"B650"],
+ [0x8CC1,"B64E"],
+ [0x8CC2,"B8EF"],
+ [0x8CC3,"B8EE"],
+ [0x8CC4,"B8EC"],
+ [0x8CC5,"B8F0"],
+ [0x8CC7,"B8EA"],
+ [0x8CC8,"B8EB"],
+ [0x8CCA,"B8E9"],
+ [0x8CCC,"E05B"],
+ [0x8CCD,"9E48"],
+ [0x8CCF,"E454"],
+ [0x8CD1,"BBAC"],
+ [0x8CD2,"BBAD"],
+ [0x8CD3,"BBAB"],
+ [0x8CD4,"99DB"],
+ [0x8CD5,"E453"],
+ [0x8CD6,"8FF3"],
+ [0x8CD7,"E455"],
+ [0x8CD9,"E7EA"],
+ [0x8CDA,"E7EC"],
+ [0x8CDB,"8FF9"],
+ [0x8CDC,"BDE7"],
+ [0x8CDD,"E7ED"],
+ [0x8CDE,"BDE0"],
+ [0x8CDF,"E7E9"],
+ [0x8CE0,"BDDF"],
+ [0x8CE1,"BDE9"],
+ [0x8CE2,"BDE5"],
+ [0x8CE3,"BDE6"],
+ [0x8CE4,"BDE2"],
+ [0x8CE5,"E7E8"],
+ [0x8CE6,"BDE1"],
+ [0x8CE7,"E7EE"],
+ [0x8CE8,"E7EB"],
+ [0x8CE9,"95C1"],
+ [0x8CEA,"BDE8"],
+ [0x8CEB,"A04E"],
+ [0x8CEC,"BDE3"],
+ [0x8CED,"BDE4"],
+ [0x8CEE,"EBB5"],
+ [0x8CF0,"EBB7"],
+ [0x8CF1,"EBB6"],
+ [0x8CF2,"99DC"],
+ [0x8CF3,"EBB8"],
+ [0x8CF4,"BFE0"],
+ [0x8CF5,"EBB4"],
+ [0x8CF7,"A064"],
+ [0x8CF8,"C1CB"],
+ [0x8CF9,"EEB8"],
+ [0x8CFA,"C1C8"],
+ [0x8CFB,"C1CC"],
+ [0x8CFC,"C1CA"],
+ [0x8CFD,"C1C9"],
+ [0x8CFE,"F0F3"],
+ [0x8D00,"F0F6"],
+ [0x8D02,"F0F5"],
+ [0x8D03,"8FF7"],
+ [0x8D04,"F0F4"],
+ [0x8D05,"C2D8"],
+ [0x8D06,"F348"],
+ [0x8D07,"F349"],
+ [0x8D08,"C3D8"],
+ [0x8D09,"F34A"],
+ [0x8D0A,"C3D9"],
+ [0x8D0B,"89B0"],
+ [0x8D0C,"A048"],
+ [0x8D0D,"C4BA"],
+ [0x8D0F,"C4B9"],
+ [0x8D10,"F652"],
+ [0x8D11,"8FFB"],
+ [0x8D12,"8FF6"],
+ [0x8D13,"C542"],
+ [0x8D14,"F653"],
+ [0x8D15,"F75C"],
+ [0x8D16,"C5AB"],
+ [0x8D17,"C5AC"],
+ [0x8D18,"9DDC"],
+ [0x8D19,"F845"],
+ [0x8D1B,"C642"],
+ [0x8D1C,"99DD"],
+ [0x8D1D,"8BE8"],
+ [0x8D64,"A8AA"],
+ [0x8D66,"B36A"],
+ [0x8D67,"B369"],
+ [0x8D68,"E05C"],
+ [0x8D69,"E05D"],
+ [0x8D6B,"BBAE"],
+ [0x8D6C,"EBB9"],
+ [0x8D6D,"BDEA"],
+ [0x8D6E,"EBBA"],
+ [0x8D6F,"EEB9"],
+ [0x8D70,"A8AB"],
+ [0x8D72,"D0B2"],
+ [0x8D73,"AD76"],
+ [0x8D74,"AD75"],
+ [0x8D76,"D3E3"],
+ [0x8D77,"B05F"],
+ [0x8D78,"D3E4"],
+ [0x8D79,"D7D5"],
+ [0x8D7A,"92C1"],
+ [0x8D7B,"D7D4"],
+ [0x8D7D,"D7D3"],
+ [0x8D80,"DBEE"],
+ [0x8D81,"B658"],
+ [0x8D82,"9FD6"],
+ [0x8D84,"DBED"],
+ [0x8D85,"B657"],
+ [0x8D89,"DBEF"],
+ [0x8D8A,"B656"],
+ [0x8D8C,"E05F"],
+ [0x8D8D,"E062"],
+ [0x8D8E,"E060"],
+ [0x8D8F,"E061"],
+ [0x8D90,"E065"],
+ [0x8D91,"E05E"],
+ [0x8D92,"E066"],
+ [0x8D93,"E063"],
+ [0x8D94,"E064"],
+ [0x8D95,"BBB0"],
+ [0x8D96,"E456"],
+ [0x8D99,"BBAF"],
+ [0x8D9B,"E7F2"],
+ [0x8D9C,"E7F0"],
+ [0x8D9F,"BDEB"],
+ [0x8DA0,"E7EF"],
+ [0x8DA1,"E7F1"],
+ [0x8DA3,"BDEC"],
+ [0x8DA5,"EBBB"],
+ [0x8DA6,"A0D2"],
+ [0x8DA7,"EBBC"],
+ [0x8DA8,"C1CD"],
+ [0x8DA9,"9040"],
+ [0x8DAA,"F34C"],
+ [0x8DAB,"F34E"],
+ [0x8DAC,"F34B"],
+ [0x8DAD,"F34D"],
+ [0x8DAE,"F4D6"],
+ [0x8DAF,"F654"],
+ [0x8DB2,"F96F"],
+ [0x8DB3,"A8AC"],
+ [0x8DB4,"AD77"],
+ [0x8DB5,"D3E5"],
+ [0x8DB6,"D3E7"],
+ [0x8DB7,"D3E6"],
+ [0x8DB9,"D7D8"],
+ [0x8DBA,"B36C"],
+ [0x8DBC,"D7D6"],
+ [0x8DBE,"B36B"],
+ [0x8DBF,"D7D9"],
+ [0x8DC0,"8AC4"],
+ [0x8DC1,"D7DA"],
+ [0x8DC2,"D7D7"],
+ [0x8DC3,"99E0"],
+ [0x8DC5,"DBFB"],
+ [0x8DC6,"B660"],
+ [0x8DC7,"DBF3"],
+ [0x8DC8,"DBF9"],
+ [0x8DCB,"B65B"],
+ [0x8DCC,"B65E"],
+ [0x8DCD,"DBF2"],
+ [0x8DCE,"B659"],
+ [0x8DCF,"DBF6"],
+ [0x8DD0,"E06C"],
+ [0x8DD1,"B65D"],
+ [0x8DD3,"DBF1"],
+ [0x8DD4,"9FF0"],
+ [0x8DD5,"DBF7"],
+ [0x8DD6,"DBF4"],
+ [0x8DD7,"DBFA"],
+ [0x8DD8,"DBF0"],
+ [0x8DD9,"DBF8"],
+ [0x8DDA,"B65C"],
+ [0x8DDB,"B65F"],
+ [0x8DDC,"DBF5"],
+ [0x8DDD,"B65A"],
+ [0x8DDF,"B8F2"],
+ [0x8DE0,"E068"],
+ [0x8DE1,"B8F1"],
+ [0x8DE2,"E06F"],
+ [0x8DE3,"E06E"],
+ [0x8DE4,"B8F8"],
+ [0x8DE6,"B8F9"],
+ [0x8DE7,"E070"],
+ [0x8DE8,"B8F3"],
+ [0x8DE9,"E06D"],
+ [0x8DEA,"B8F7"],
+ [0x8DEB,"E072"],
+ [0x8DEC,"E069"],
+ [0x8DEE,"E06B"],
+ [0x8DEF,"B8F4"],
+ [0x8DF0,"E067"],
+ [0x8DF1,"E06A"],
+ [0x8DF2,"E071"],
+ [0x8DF3,"B8F5"],
+ [0x8DF4,"E073"],
+ [0x8DFA,"B8F6"],
+ [0x8DFC,"BBB1"],
+ [0x8DFD,"E45B"],
+ [0x8DFE,"E461"],
+ [0x8DFF,"E459"],
+ [0x8E00,"E462"],
+ [0x8E01,"9FF3"],
+ [0x8E02,"E458"],
+ [0x8E03,"E45D"],
+ [0x8E04,"E463"],
+ [0x8E05,"E460"],
+ [0x8E06,"E45F"],
+ [0x8E07,"E45E"],
+ [0x8E09,"E457"],
+ [0x8E0A,"E45C"],
+ [0x8E0D,"E45A"],
+ [0x8E0E,"9DBF"],
+ [0x8E0F,"BDF1"],
+ [0x8E10,"BDEE"],
+ [0x8E11,"E7FB"],
+ [0x8E12,"E841"],
+ [0x8E13,"E843"],
+ [0x8E14,"E840"],
+ [0x8E15,"E7F8"],
+ [0x8E16,"E7FA"],
+ [0x8E17,"E845"],
+ [0x8E18,"E842"],
+ [0x8E19,"E7FC"],
+ [0x8E1A,"E846"],
+ [0x8E1B,"E7F9"],
+ [0x8E1C,"E844"],
+ [0x8E1D,"BDEF"],
+ [0x8E1E,"BDF5"],
+ [0x8E1F,"BDF3"],
+ [0x8E20,"E7F3"],
+ [0x8E21,"BDF4"],
+ [0x8E22,"BDF0"],
+ [0x8E23,"E7F4"],
+ [0x8E24,"E7F6"],
+ [0x8E25,"E7F5"],
+ [0x8E26,"E7FD"],
+ [0x8E27,"E7FE"],
+ [0x8E28,"9FF6"],
+ [0x8E29,"BDF2"],
+ [0x8E2A,"95C8"],
+ [0x8E2B,"BDED"],
+ [0x8E2D,"9E5A"],
+ [0x8E2E,"E7F7"],
+ [0x8E30,"EBC6"],
+ [0x8E31,"BFE2"],
+ [0x8E33,"EBBD"],
+ [0x8E34,"BFE3"],
+ [0x8E35,"BFE6"],
+ [0x8E36,"EBC2"],
+ [0x8E38,"EBBF"],
+ [0x8E39,"BFE5"],
+ [0x8E3A,"99E3"],
+ [0x8E3C,"EBC3"],
+ [0x8E3D,"EBC4"],
+ [0x8E3E,"EBBE"],
+ [0x8E3F,"EBC7"],
+ [0x8E40,"EBC0"],
+ [0x8E41,"EBC5"],
+ [0x8E42,"BFE4"],
+ [0x8E44,"BFE1"],
+ [0x8E45,"EBC1"],
+ [0x8E46,"8A4A"],
+ [0x8E47,"EEBF"],
+ [0x8E48,"C1D0"],
+ [0x8E49,"C1CE"],
+ [0x8E4A,"C1D1"],
+ [0x8E4B,"C1CF"],
+ [0x8E4C,"EEBE"],
+ [0x8E4D,"EEBB"],
+ [0x8E4E,"EEBA"],
+ [0x8E4F,"9FF1"],
+ [0x8E50,"EEBD"],
+ [0x8E53,"EEBC"],
+ [0x8E54,"F145"],
+ [0x8E55,"C2DE"],
+ [0x8E56,"F0FB"],
+ [0x8E57,"F0FA"],
+ [0x8E59,"C2D9"],
+ [0x8E5A,"F141"],
+ [0x8E5B,"F140"],
+ [0x8E5C,"F0F7"],
+ [0x8E5D,"F143"],
+ [0x8E5E,"F0FC"],
+ [0x8E5F,"C2DD"],
+ [0x8E60,"F0F9"],
+ [0x8E61,"F142"],
+ [0x8E62,"F0F8"],
+ [0x8E63,"C2DA"],
+ [0x8E64,"C2DC"],
+ [0x8E65,"F0FD"],
+ [0x8E66,"C2DB"],
+ [0x8E67,"F0FE"],
+ [0x8E68,"8AA7"],
+ [0x8E69,"F144"],
+ [0x8E6A,"F352"],
+ [0x8E6C,"C3DE"],
+ [0x8E6D,"F34F"],
+ [0x8E6F,"F353"],
+ [0x8E71,"99E6"],
+ [0x8E72,"C3DB"],
+ [0x8E73,"F351"],
+ [0x8E74,"C3E0"],
+ [0x8E75,"9FF7"],
+ [0x8E76,"C3DD"],
+ [0x8E77,"9FED"],
+ [0x8E78,"F350"],
+ [0x8E7A,"C3DF"],
+ [0x8E7B,"F354"],
+ [0x8E7C,"C3DA"],
+ [0x8E7E,"8A5C"],
+ [0x8E80,"9DAE"],
+ [0x8E81,"C4BC"],
+ [0x8E82,"C4BE"],
+ [0x8E84,"F4D9"],
+ [0x8E85,"C4BD"],
+ [0x8E86,"F4D7"],
+ [0x8E87,"C3DC"],
+ [0x8E88,"F4D8"],
+ [0x8E89,"C4BB"],
+ [0x8E8A,"C543"],
+ [0x8E8B,"C545"],
+ [0x8E8C,"F656"],
+ [0x8E8D,"C544"],
+ [0x8E8E,"F655"],
+ [0x8E90,"F761"],
+ [0x8E91,"C5AD"],
+ [0x8E92,"F760"],
+ [0x8E93,"C5AE"],
+ [0x8E94,"F75E"],
+ [0x8E95,"F75D"],
+ [0x8E96,"F762"],
+ [0x8E97,"F763"],
+ [0x8E98,"F846"],
+ [0x8E9A,"F75F"],
+ [0x8E9D,"F8C6"],
+ [0x8E9E,"F8C3"],
+ [0x8E9F,"F8C4"],
+ [0x8EA0,"F8C5"],
+ [0x8EA1,"C65C"],
+ [0x8EA3,"F951"],
+ [0x8EA4,"F950"],
+ [0x8EA5,"F94F"],
+ [0x8EA6,"F970"],
+ [0x8EA7,"95C9"],
+ [0x8EA8,"F9BE"],
+ [0x8EA9,"F9AB"],
+ [0x8EAA,"C66E"],
+ [0x8EAB,"A8AD"],
+ [0x8EAC,"B060"],
+ [0x8EAD,"9048"],
+ [0x8EB0,"99E8"],
+ [0x8EB2,"B8FA"],
+ [0x8EB6,"9049"],
+ [0x8EB9,"8CBA"],
+ [0x8EBA,"BDF6"],
+ [0x8EBC,"90B1"],
+ [0x8EBD,"EBC8"],
+ [0x8EC0,"C2DF"],
+ [0x8EC2,"F355"],
+ [0x8EC3,"904A"],
+ [0x8EC9,"F9AC"],
+ [0x8ECA,"A8AE"],
+ [0x8ECB,"AAEE"],
+ [0x8ECC,"AD79"],
+ [0x8ECD,"AD78"],
+ [0x8ECE,"99EA"],
+ [0x8ECF,"B063"],
+ [0x8ED1,"D3E8"],
+ [0x8ED2,"B061"],
+ [0x8ED3,"D3E9"],
+ [0x8ED4,"B062"],
+ [0x8ED7,"D7DF"],
+ [0x8ED8,"D7DB"],
+ [0x8EDA,"9BD1"],
+ [0x8EDB,"B36D"],
+ [0x8EDC,"D7DE"],
+ [0x8EDD,"D7DD"],
+ [0x8EDE,"D7DC"],
+ [0x8EDF,"B36E"],
+ [0x8EE0,"D7E0"],
+ [0x8EE1,"D7E1"],
+ [0x8EE2,"99EB"],
+ [0x8EE4,"99EC"],
+ [0x8EE5,"DC43"],
+ [0x8EE6,"DC41"],
+ [0x8EE7,"DC45"],
+ [0x8EE8,"DC46"],
+ [0x8EE9,"DC4C"],
+ [0x8EEB,"DC48"],
+ [0x8EEC,"DC4A"],
+ [0x8EED,"99ED"],
+ [0x8EEE,"DC42"],
+ [0x8EEF,"DBFC"],
+ [0x8EF1,"DC49"],
+ [0x8EF2,"99EE"],
+ [0x8EF4,"DC4B"],
+ [0x8EF5,"DC44"],
+ [0x8EF6,"DC47"],
+ [0x8EF7,"DBFD"],
+ [0x8EF8,"B662"],
+ [0x8EF9,"DC40"],
+ [0x8EFA,"DBFE"],
+ [0x8EFB,"B661"],
+ [0x8EFC,"B663"],
+ [0x8EFE,"B8FD"],
+ [0x8EFF,"E075"],
+ [0x8F00,"E077"],
+ [0x8F01,"E076"],
+ [0x8F02,"E07B"],
+ [0x8F03,"B8FB"],
+ [0x8F05,"E078"],
+ [0x8F06,"E074"],
+ [0x8F07,"E079"],
+ [0x8F08,"E07A"],
+ [0x8F09,"B8FC"],
+ [0x8F0A,"B8FE"],
+ [0x8F0B,"E07C"],
+ [0x8F0D,"E467"],
+ [0x8F0E,"E466"],
+ [0x8F10,"E464"],
+ [0x8F11,"E465"],
+ [0x8F12,"BBB3"],
+ [0x8F13,"BBB5"],
+ [0x8F14,"BBB2"],
+ [0x8F15,"BBB4"],
+ [0x8F16,"E84D"],
+ [0x8F17,"E84E"],
+ [0x8F18,"E849"],
+ [0x8F19,"904C"],
+ [0x8F1A,"E84A"],
+ [0x8F1B,"BDF8"],
+ [0x8F1C,"BDFD"],
+ [0x8F1D,"BDF7"],
+ [0x8F1E,"BDFE"],
+ [0x8F1F,"BDF9"],
+ [0x8F20,"E84B"],
+ [0x8F23,"E84C"],
+ [0x8F24,"E848"],
+ [0x8F25,"BE40"],
+ [0x8F26,"BDFB"],
+ [0x8F29,"BDFA"],
+ [0x8F2A,"BDFC"],
+ [0x8F2C,"E847"],
+ [0x8F2D,"904D"],
+ [0x8F2E,"EBCA"],
+ [0x8F2F,"BFE8"],
+ [0x8F30,"95CB"],
+ [0x8F32,"EBCC"],
+ [0x8F33,"BFEA"],
+ [0x8F34,"EBCF"],
+ [0x8F35,"EBCB"],
+ [0x8F36,"EBC9"],
+ [0x8F37,"EBCE"],
+ [0x8F38,"BFE9"],
+ [0x8F39,"EBCD"],
+ [0x8F3B,"BFE7"],
+ [0x8F3E,"C1D3"],
+ [0x8F3F,"C1D6"],
+ [0x8F40,"EEC1"],
+ [0x8F41,"97E2"],
+ [0x8F42,"C1D4"],
+ [0x8F43,"EEC0"],
+ [0x8F44,"C1D2"],
+ [0x8F45,"C1D5"],
+ [0x8F46,"F146"],
+ [0x8F47,"F147"],
+ [0x8F48,"F148"],
+ [0x8F49,"C2E0"],
+ [0x8F4A,"95CC"],
+ [0x8F4B,"F149"],
+ [0x8F4D,"C2E1"],
+ [0x8F4E,"C3E2"],
+ [0x8F4F,"F358"],
+ [0x8F50,"F359"],
+ [0x8F51,"F357"],
+ [0x8F52,"F356"],
+ [0x8F53,"F35A"],
+ [0x8F54,"C3E1"],
+ [0x8F55,"F4DD"],
+ [0x8F56,"F4DB"],
+ [0x8F57,"F4DC"],
+ [0x8F58,"F4DE"],
+ [0x8F59,"F4DA"],
+ [0x8F5A,"F4DF"],
+ [0x8F5B,"F658"],
+ [0x8F5C,"9F78"],
+ [0x8F5D,"F659"],
+ [0x8F5E,"F657"],
+ [0x8F5F,"C546"],
+ [0x8F60,"F764"],
+ [0x8F61,"C5AF"],
+ [0x8F62,"F765"],
+ [0x8F63,"F848"],
+ [0x8F64,"F847"],
+ [0x8F66,"897C"],
+ [0x8F67,"897D"],
+ [0x8F6E,"897E"],
+ [0x8F93,"995D"],
+ [0x8F9B,"A8AF"],
+ [0x8F9C,"B664"],
+ [0x8F9F,"B940"],
+ [0x8FA0,"9B5A"],
+ [0x8FA3,"BBB6"],
+ [0x8FA5,"9050"],
+ [0x8FA6,"BFEC"],
+ [0x8FA7,"8C4F"],
+ [0x8FA8,"BFEB"],
+ [0x8FAD,"C3E3"],
+ [0x8FAE,"C47C"],
+ [0x8FAF,"C547"],
+ [0x8FB0,"A8B0"],
+ [0x8FB1,"B064"],
+ [0x8FB2,"B941"],
+ [0x8FB3,"9054"],
+ [0x8FB4,"F35B"],
+ [0x8FB5,"C6D6"],
+ [0x8FB6,"9AA8"],
+ [0x8FB7,"99EF"],
+ [0x8FB8,"FEEB"],
+ [0x8FB9,"9DA3"],
+ [0x8FBA,"9DA1"],
+ [0x8FBB,"9943"],
+ [0x8FBC,"9945"],
+ [0x8FBE,"9D7D"],
+ [0x8FBF,"CBA6"],
+ [0x8FC1,"99F0"],
+ [0x8FC2,"A8B1"],
+ [0x8FC4,"A8B4"],
+ [0x8FC5,"A8B3"],
+ [0x8FC6,"A8B2"],
+ [0x8FC9,"CBA5"],
+ [0x8FCA,"99F1"],
+ [0x8FCB,"CDCD"],
+ [0x8FCC,"99F2"],
+ [0x8FCD,"CDCF"],
+ [0x8FCE,"AAEF"],
+ [0x8FCF,"8CBC"],
+ [0x8FD0,"9D60"],
+ [0x8FD1,"AAF1"],
+ [0x8FD2,"CDCC"],
+ [0x8FD3,"CDCE"],
+ [0x8FD4,"AAF0"],
+ [0x8FD5,"CDD1"],
+ [0x8FD6,"CDD0"],
+ [0x8FD7,"CDD2"],
+ [0x8FDA,"A0A3"],
+ [0x8FE0,"D0B6"],
+ [0x8FE1,"D0B4"],
+ [0x8FE2,"AD7C"],
+ [0x8FE3,"D0B3"],
+ [0x8FE4,"ADA3"],
+ [0x8FE5,"AD7E"],
+ [0x8FE6,"AD7B"],
+ [0x8FE8,"ADA4"],
+ [0x8FEA,"AD7D"],
+ [0x8FEB,"ADA2"],
+ [0x8FED,"ADA1"],
+ [0x8FEE,"D0B5"],
+ [0x8FF0,"AD7A"],
+ [0x8FF4,"B06A"],
+ [0x8FF5,"D3EB"],
+ [0x8FF6,"D3F1"],
+ [0x8FF7,"B067"],
+ [0x8FF8,"B06E"],
+ [0x8FF9,"905B"],
+ [0x8FFA,"B069"],
+ [0x8FFB,"D3EE"],
+ [0x8FFC,"D3F0"],
+ [0x8FFD,"B06C"],
+ [0x8FFE,"D3EA"],
+ [0x8FFF,"D3ED"],
+ [0x9000,"B068"],
+ [0x9001,"B065"],
+ [0x9002,"D3EC"],
+ [0x9003,"B06B"],
+ [0x9004,"D3EF"],
+ [0x9005,"B06D"],
+ [0x9006,"B066"],
+ [0x9008,"9EDB"],
+ [0x900B,"D7E3"],
+ [0x900C,"D7E6"],
+ [0x900D,"B370"],
+ [0x900F,"B37A"],
+ [0x9010,"B376"],
+ [0x9011,"D7E4"],
+ [0x9012,"9D79"],
+ [0x9014,"B37E"],
+ [0x9015,"B377"],
+ [0x9016,"B37C"],
+ [0x9017,"B372"],
+ [0x9019,"B36F"],
+ [0x901A,"B371"],
+ [0x901B,"B37D"],
+ [0x901C,"D7E5"],
+ [0x901D,"B375"],
+ [0x901E,"B378"],
+ [0x901F,"B374"],
+ [0x9020,"B379"],
+ [0x9021,"D7E7"],
+ [0x9022,"B37B"],
+ [0x9023,"B373"],
+ [0x9024,"D7E2"],
+ [0x902D,"DC4D"],
+ [0x902E,"B665"],
+ [0x902F,"DC4F"],
+ [0x9031,"B667"],
+ [0x9032,"B669"],
+ [0x9033,"99F3"],
+ [0x9034,"DC4E"],
+ [0x9035,"B666"],
+ [0x9036,"B66A"],
+ [0x9037,"9062"],
+ [0x9038,"B668"],
+ [0x903C,"B947"],
+ [0x903D,"E0A3"],
+ [0x903E,"B94F"],
+ [0x903F,"E07E"],
+ [0x9041,"B950"],
+ [0x9042,"B945"],
+ [0x9044,"E0A1"],
+ [0x9046,"87BD"],
+ [0x9047,"B94A"],
+ [0x9049,"E0A2"],
+ [0x904A,"B943"],
+ [0x904B,"B942"],
+ [0x904C,"9F55"],
+ [0x904D,"B94D"],
+ [0x904E,"B94C"],
+ [0x904F,"B94B"],
+ [0x9050,"B949"],
+ [0x9051,"B94E"],
+ [0x9052,"E07D"],
+ [0x9053,"B944"],
+ [0x9054,"B946"],
+ [0x9055,"B948"],
+ [0x9056,"9BF9"],
+ [0x9058,"BBB8"],
+ [0x9059,"BBBB"],
+ [0x905B,"BBBF"],
+ [0x905C,"BBB9"],
+ [0x905D,"BBBE"],
+ [0x905E,"BBBC"],
+ [0x9060,"BBB7"],
+ [0x9061,"9065"],
+ [0x9062,"BBBD"],
+ [0x9063,"BBBA"],
+ [0x9064,"96E0"],
+ [0x9067,"E852"],
+ [0x9068,"BE43"],
+ [0x9069,"BE41"],
+ [0x906B,"E853"],
+ [0x906C,"98BE"],
+ [0x906D,"BE44"],
+ [0x906E,"BE42"],
+ [0x906F,"E851"],
+ [0x9070,"E850"],
+ [0x9072,"BFF0"],
+ [0x9073,"E84F"],
+ [0x9074,"BFEE"],
+ [0x9075,"BFED"],
+ [0x9076,"EBD0"],
+ [0x9077,"BE45"],
+ [0x9078,"BFEF"],
+ [0x9079,"EBD1"],
+ [0x907A,"BFF2"],
+ [0x907B,"EBD2"],
+ [0x907C,"BFF1"],
+ [0x907D,"C1D8"],
+ [0x907E,"EEC3"],
+ [0x907F,"C1D7"],
+ [0x9080,"C1DC"],
+ [0x9081,"C1DA"],
+ [0x9082,"C1DB"],
+ [0x9083,"C2E3"],
+ [0x9084,"C1D9"],
+ [0x9085,"EEC2"],
+ [0x9086,"EBD3"],
+ [0x9087,"C2E2"],
+ [0x9088,"C2E4"],
+ [0x908A,"C3E4"],
+ [0x908B,"C3E5"],
+ [0x908D,"F4E0"],
+ [0x908F,"C5DE"],
+ [0x9090,"C5DD"],
+ [0x9091,"A8B6"],
+ [0x9094,"CA55"],
+ [0x9095,"B06F"],
+ [0x9097,"CA52"],
+ [0x9098,"CA53"],
+ [0x9099,"CA51"],
+ [0x909B,"CA54"],
+ [0x909E,"CBAA"],
+ [0x909F,"CBA7"],
+ [0x90A0,"CBAC"],
+ [0x90A1,"CBA8"],
+ [0x90A2,"A8B7"],
+ [0x90A3,"A8BA"],
+ [0x90A5,"CBA9"],
+ [0x90A6,"A8B9"],
+ [0x90A7,"CBAB"],
+ [0x90A8,"9068"],
+ [0x90AA,"A8B8"],
+ [0x90AE,"906C"],
+ [0x90AF,"CDD5"],
+ [0x90B0,"CDD7"],
+ [0x90B1,"AAF4"],
+ [0x90B2,"CDD3"],
+ [0x90B3,"CDD6"],
+ [0x90B4,"CDD4"],
+ [0x90B5,"AAF2"],
+ [0x90B6,"AAF5"],
+ [0x90B8,"AAF3"],
+ [0x90BB,"95D8"],
+ [0x90BD,"D0B8"],
+ [0x90BE,"D0BC"],
+ [0x90BF,"D0B9"],
+ [0x90C1,"ADA7"],
+ [0x90C3,"ADA8"],
+ [0x90C4,"906A"],
+ [0x90C5,"D0BB"],
+ [0x90C7,"D0BD"],
+ [0x90C8,"D0BF"],
+ [0x90CA,"ADA5"],
+ [0x90CB,"D0BE"],
+ [0x90CE,"ADA6"],
+ [0x90D4,"D7EE"],
+ [0x90D5,"D0BA"],
+ [0x90D6,"D3F2"],
+ [0x90D7,"D3FB"],
+ [0x90D8,"D3F9"],
+ [0x90D9,"D3F4"],
+ [0x90DA,"D3F5"],
+ [0x90DB,"D3FA"],
+ [0x90DC,"D3FC"],
+ [0x90DD,"B071"],
+ [0x90DF,"D3F7"],
+ [0x90E0,"D3F3"],
+ [0x90E1,"B070"],
+ [0x90E2,"B072"],
+ [0x90E3,"D3F6"],
+ [0x90E4,"D3FD"],
+ [0x90E5,"D3F8"],
+ [0x90E8,"B3A1"],
+ [0x90E9,"D7F1"],
+ [0x90EA,"D7E9"],
+ [0x90EB,"D7EF"],
+ [0x90EC,"D7F0"],
+ [0x90ED,"B3A2"],
+ [0x90EF,"D7E8"],
+ [0x90F0,"D7EA"],
+ [0x90F1,"D0B7"],
+ [0x90F2,"D7EC"],
+ [0x90F3,"D7ED"],
+ [0x90F4,"D7EB"],
+ [0x90F5,"B66C"],
+ [0x90F9,"DC56"],
+ [0x90FA,"EBD4"],
+ [0x90FB,"DC57"],
+ [0x90FC,"DC54"],
+ [0x90FD,"B3A3"],
+ [0x90FE,"B66E"],
+ [0x90FF,"DC53"],
+ [0x9100,"DC59"],
+ [0x9101,"DC58"],
+ [0x9102,"B66B"],
+ [0x9103,"DC5C"],
+ [0x9104,"DC52"],
+ [0x9105,"DC5B"],
+ [0x9106,"DC50"],
+ [0x9107,"DC5A"],
+ [0x9108,"DC55"],
+ [0x9109,"B66D"],
+ [0x910B,"E0AA"],
+ [0x910D,"E0A5"],
+ [0x910E,"E0AB"],
+ [0x910F,"E0A6"],
+ [0x9110,"E0A4"],
+ [0x9111,"E0A7"],
+ [0x9112,"B951"],
+ [0x9114,"E0A9"],
+ [0x9116,"E0A8"],
+ [0x9117,"B952"],
+ [0x9118,"BBC1"],
+ [0x9119,"BBC0"],
+ [0x911A,"E46E"],
+ [0x911B,"E471"],
+ [0x911C,"E469"],
+ [0x911D,"E46D"],
+ [0x911E,"BBC2"],
+ [0x911F,"E46C"],
+ [0x9120,"E46A"],
+ [0x9121,"E470"],
+ [0x9122,"E46B"],
+ [0x9123,"E468"],
+ [0x9124,"E46F"],
+ [0x9126,"E859"],
+ [0x9127,"BE48"],
+ [0x9128,"F14A"],
+ [0x9129,"E856"],
+ [0x912A,"E857"],
+ [0x912B,"E855"],
+ [0x912C,"DC51"],
+ [0x912D,"BE47"],
+ [0x912E,"E85A"],
+ [0x912F,"E854"],
+ [0x9130,"BE46"],
+ [0x9131,"BE49"],
+ [0x9132,"E858"],
+ [0x9133,"EBD5"],
+ [0x9134,"BFF3"],
+ [0x9135,"EBD6"],
+ [0x9136,"EBD7"],
+ [0x9138,"EEC4"],
+ [0x9139,"C1DD"],
+ [0x913A,"F14B"],
+ [0x913B,"F14C"],
+ [0x913E,"F14D"],
+ [0x913F,"F35D"],
+ [0x9140,"F35C"],
+ [0x9141,"F4E2"],
+ [0x9143,"F4E1"],
+ [0x9144,"F65B"],
+ [0x9145,"F65C"],
+ [0x9146,"F65A"],
+ [0x9147,"F766"],
+ [0x9148,"C5B0"],
+ [0x9149,"A8BB"],
+ [0x914A,"ADAA"],
+ [0x914B,"ADA9"],
+ [0x914C,"B075"],
+ [0x914D,"B074"],
+ [0x914E,"D440"],
+ [0x914F,"D441"],
+ [0x9150,"D3FE"],
+ [0x9151,"9FB2"],
+ [0x9152,"B073"],
+ [0x9153,"D7F5"],
+ [0x9155,"D7F6"],
+ [0x9156,"D7F2"],
+ [0x9157,"B3A4"],
+ [0x9158,"D7F3"],
+ [0x9159,"9FAE"],
+ [0x915A,"D7F4"],
+ [0x915C,"9FB0"],
+ [0x915E,"89AD"],
+ [0x915F,"DC5F"],
+ [0x9160,"DC61"],
+ [0x9161,"DC5D"],
+ [0x9162,"DC60"],
+ [0x9163,"B66F"],
+ [0x9164,"DC5E"],
+ [0x9165,"B670"],
+ [0x9167,"906E"],
+ [0x9168,"DD73"],
+ [0x9169,"B955"],
+ [0x916A,"B954"],
+ [0x916C,"B953"],
+ [0x916E,"E0AC"],
+ [0x916F,"E0AD"],
+ [0x9170,"9E71"],
+ [0x9172,"E473"],
+ [0x9173,"E475"],
+ [0x9174,"BBC6"],
+ [0x9175,"BBC3"],
+ [0x9176,"9E4A"],
+ [0x9177,"BBC5"],
+ [0x9178,"BBC4"],
+ [0x9179,"E474"],
+ [0x917A,"E472"],
+ [0x917C,"9FDC"],
+ [0x9180,"E861"],
+ [0x9181,"E85E"],
+ [0x9182,"E85F"],
+ [0x9183,"BE4D"],
+ [0x9184,"E860"],
+ [0x9185,"E85B"],
+ [0x9186,"E85C"],
+ [0x9187,"BE4A"],
+ [0x9189,"BE4B"],
+ [0x918A,"E85D"],
+ [0x918B,"BE4C"],
+ [0x918C,"89AB"],
+ [0x918D,"EBDB"],
+ [0x918E,"9FB8"],
+ [0x918F,"EBDC"],
+ [0x9190,"EBD9"],
+ [0x9191,"EBDA"],
+ [0x9192,"BFF4"],
+ [0x9193,"EBD8"],
+ [0x9199,"EEC8"],
+ [0x919A,"EEC5"],
+ [0x919B,"EEC7"],
+ [0x919C,"C1E0"],
+ [0x919D,"EECB"],
+ [0x919E,"C1DF"],
+ [0x919F,"EEC9"],
+ [0x91A0,"EECC"],
+ [0x91A1,"EECA"],
+ [0x91A2,"EEC6"],
+ [0x91A3,"C1DE"],
+ [0x91A5,"F14F"],
+ [0x91A7,"F150"],
+ [0x91A8,"F14E"],
+ [0x91A9,"9070"],
+ [0x91AA,"F152"],
+ [0x91AB,"C2E5"],
+ [0x91AC,"C2E6"],
+ [0x91AD,"F35F"],
+ [0x91AE,"C3E7"],
+ [0x91AF,"F151"],
+ [0x91B0,"F35E"],
+ [0x91B1,"C3E6"],
+ [0x91B2,"F4E5"],
+ [0x91B3,"F4E6"],
+ [0x91B4,"C4BF"],
+ [0x91B5,"F4E4"],
+ [0x91B6,"8B63"],
+ [0x91B7,"F4E3"],
+ [0x91B9,"F65D"],
+ [0x91BA,"C548"],
+ [0x91BB,"95DC"],
+ [0x91BC,"F849"],
+ [0x91BD,"F8C8"],
+ [0x91BE,"F8C7"],
+ [0x91C0,"C643"],
+ [0x91C1,"C65D"],
+ [0x91C2,"F8C9"],
+ [0x91C3,"F971"],
+ [0x91C4,"9071"],
+ [0x91C5,"C66F"],
+ [0x91C6,"A8BC"],
+ [0x91C7,"AAF6"],
+ [0x91C9,"B956"],
+ [0x91CB,"C4C0"],
+ [0x91CC,"A8BD"],
+ [0x91CD,"ADAB"],
+ [0x91CE,"B3A5"],
+ [0x91CF,"B671"],
+ [0x91D0,"C2E7"],
+ [0x91D1,"AAF7"],
+ [0x91D3,"D0C1"],
+ [0x91D4,"D0C0"],
+ [0x91D5,"D442"],
+ [0x91D6,"FC5E"],
+ [0x91D7,"B078"],
+ [0x91D8,"B076"],
+ [0x91D9,"B07A"],
+ [0x91DA,"D444"],
+ [0x91DC,"B079"],
+ [0x91DD,"B077"],
+ [0x91DF,"8949"],
+ [0x91E2,"D443"],
+ [0x91E3,"B3A8"],
+ [0x91E4,"D7FC"],
+ [0x91E5,"965B"],
+ [0x91E6,"B3A7"],
+ [0x91E7,"B3A9"],
+ [0x91E8,"D842"],
+ [0x91E9,"B3AB"],
+ [0x91EA,"D7FE"],
+ [0x91EB,"D840"],
+ [0x91EC,"D7F7"],
+ [0x91ED,"B3AA"],
+ [0x91EE,"D843"],
+ [0x91F1,"D7F9"],
+ [0x91F3,"D7FA"],
+ [0x91F4,"D7F8"],
+ [0x91F5,"B3A6"],
+ [0x91F6,"8C50"],
+ [0x91F7,"D841"],
+ [0x91F8,"D7FB"],
+ [0x91F9,"D7FD"],
+ [0x91FA,"94A6"],
+ [0x91FD,"DC6D"],
+ [0x91FE,"8FD5"],
+ [0x91FF,"DC6C"],
+ [0x9200,"DC6A"],
+ [0x9201,"DC62"],
+ [0x9202,"DC71"],
+ [0x9203,"DC65"],
+ [0x9204,"DC6F"],
+ [0x9205,"DC76"],
+ [0x9206,"DC6E"],
+ [0x9207,"B679"],
+ [0x9208,"9E73"],
+ [0x9209,"B675"],
+ [0x920A,"DC63"],
+ [0x920C,"DC69"],
+ [0x920D,"B677"],
+ [0x920E,"9075"],
+ [0x920F,"DC68"],
+ [0x9210,"B678"],
+ [0x9211,"B67A"],
+ [0x9212,"DC6B"],
+ [0x9213,"99F7"],
+ [0x9214,"B672"],
+ [0x9215,"B673"],
+ [0x9216,"DC77"],
+ [0x9217,"DC75"],
+ [0x9218,"87B2"],
+ [0x9219,"DC74"],
+ [0x921A,"DC66"],
+ [0x921C,"DC72"],
+ [0x921E,"B676"],
+ [0x9221,"8CBF"],
+ [0x9223,"B674"],
+ [0x9224,"DC73"],
+ [0x9225,"DC64"],
+ [0x9226,"DC67"],
+ [0x9227,"DC70"],
+ [0x9228,"99F9"],
+ [0x922A,"9663"],
+ [0x922B,"95B9"],
+ [0x922D,"E4BA"],
+ [0x922E,"E0B7"],
+ [0x9230,"E0B0"],
+ [0x9231,"E0C3"],
+ [0x9232,"E0CC"],
+ [0x9233,"E0B3"],
+ [0x9234,"B961"],
+ [0x9235,"94D4"],
+ [0x9236,"E0C0"],
+ [0x9237,"B957"],
+ [0x9238,"B959"],
+ [0x9239,"B965"],
+ [0x923A,"E0B1"],
+ [0x923C,"FCFA"],
+ [0x923D,"B95A"],
+ [0x923E,"B95C"],
+ [0x923F,"B966"],
+ [0x9240,"B95B"],
+ [0x9241,"9077"],
+ [0x9244,"90AB"],
+ [0x9245,"B964"],
+ [0x9246,"E0B9"],
+ [0x9248,"E0AE"],
+ [0x9249,"B962"],
+ [0x924A,"E0B8"],
+ [0x924B,"B95E"],
+ [0x924C,"E0CA"],
+ [0x924D,"B963"],
+ [0x924E,"E0C8"],
+ [0x924F,"E0BC"],
+ [0x9250,"E0C6"],
+ [0x9251,"B960"],
+ [0x9252,"E0AF"],
+ [0x9253,"E0C9"],
+ [0x9254,"E0C4"],
+ [0x9255,"9D4D"],
+ [0x9256,"E0CB"],
+ [0x9257,"B958"],
+ [0x9258,"99FA"],
+ [0x925A,"B967"],
+ [0x925B,"B95D"],
+ [0x925D,"92E3"],
+ [0x925E,"E0B5"],
+ [0x925F,"97BB"],
+ [0x9260,"E0BD"],
+ [0x9261,"E0C1"],
+ [0x9262,"9078"],
+ [0x9263,"E0C5"],
+ [0x9264,"B95F"],
+ [0x9265,"E0B4"],
+ [0x9266,"E0B2"],
+ [0x9267,"E0BE"],
+ [0x926B,"99FB"],
+ [0x926C,"E0BB"],
+ [0x926D,"E0BA"],
+ [0x926E,"97E0"],
+ [0x926F,"E0BF"],
+ [0x9270,"E0C2"],
+ [0x9272,"E0C7"],
+ [0x9276,"E478"],
+ [0x9277,"96DC"],
+ [0x9278,"BBC7"],
+ [0x9279,"E4A4"],
+ [0x927A,"E47A"],
+ [0x927B,"BBCC"],
+ [0x927C,"BBD0"],
+ [0x927D,"E4AD"],
+ [0x927E,"E4B5"],
+ [0x927F,"E4A6"],
+ [0x9280,"BBC8"],
+ [0x9281,"9CA8"],
+ [0x9282,"E4AA"],
+ [0x9283,"E0B6"],
+ [0x9284,"9772"],
+ [0x9285,"BBC9"],
+ [0x9286,"E4B1"],
+ [0x9287,"E4B6"],
+ [0x9288,"E4AE"],
+ [0x9289,"9440"],
+ [0x928A,"E4B0"],
+ [0x928B,"E4B9"],
+ [0x928C,"E4B2"],
+ [0x928D,"E47E"],
+ [0x928E,"E4A9"],
+ [0x928F,"92F2"],
+ [0x9291,"BBD1"],
+ [0x9293,"BBCD"],
+ [0x9294,"E47C"],
+ [0x9295,"E4AB"],
+ [0x9296,"BBCB"],
+ [0x9297,"E4A5"],
+ [0x9298,"BBCA"],
+ [0x9299,"E4B3"],
+ [0x929A,"E4A2"],
+ [0x929B,"E479"],
+ [0x929C,"BBCE"],
+ [0x929D,"E4B8"],
+ [0x92A0,"E47B"],
+ [0x92A1,"E4AF"],
+ [0x92A2,"E4AC"],
+ [0x92A3,"E4A7"],
+ [0x92A4,"E477"],
+ [0x92A5,"E476"],
+ [0x92A6,"E4A1"],
+ [0x92A7,"E4B4"],
+ [0x92A8,"BBCF"],
+ [0x92A9,"E4B7"],
+ [0x92AA,"E47D"],
+ [0x92AB,"E4A3"],
+ [0x92AC,"BE52"],
+ [0x92AE,"99FD"],
+ [0x92B1,"99FC"],
+ [0x92B2,"BE5A"],
+ [0x92B3,"BE55"],
+ [0x92B4,"E8A4"],
+ [0x92B5,"E8A1"],
+ [0x92B6,"E867"],
+ [0x92B7,"BE50"],
+ [0x92B9,"F9D7"],
+ [0x92BA,"964A"],
+ [0x92BB,"BE4F"],
+ [0x92BC,"BE56"],
+ [0x92BE,"96D8"],
+ [0x92BF,"99FE"],
+ [0x92C0,"E865"],
+ [0x92C1,"BE54"],
+ [0x92C2,"E871"],
+ [0x92C3,"E863"],
+ [0x92C4,"E864"],
+ [0x92C5,"BE4E"],
+ [0x92C6,"E8A3"],
+ [0x92C7,"BE58"],
+ [0x92C8,"E874"],
+ [0x92C9,"E879"],
+ [0x92CA,"E873"],
+ [0x92CB,"EBEE"],
+ [0x92CC,"E86F"],
+ [0x92CD,"E877"],
+ [0x92CE,"E875"],
+ [0x92CF,"E868"],
+ [0x92D0,"E862"],
+ [0x92D1,"E87D"],
+ [0x92D2,"BE57"],
+ [0x92D3,"E87E"],
+ [0x92D4,"904B"],
+ [0x92D5,"E878"],
+ [0x92D7,"E86D"],
+ [0x92D8,"E86B"],
+ [0x92D9,"E866"],
+ [0x92DB,"FA41"],
+ [0x92DD,"E86E"],
+ [0x92DE,"E87B"],
+ [0x92DF,"E86A"],
+ [0x92E0,"E87A"],
+ [0x92E1,"E8A2"],
+ [0x92E3,"9A40"],
+ [0x92E4,"BE53"],
+ [0x92E5,"975B"],
+ [0x92E6,"E876"],
+ [0x92E7,"E87C"],
+ [0x92E8,"E872"],
+ [0x92E9,"E86C"],
+ [0x92EA,"BE51"],
+ [0x92EB,"9A41"],
+ [0x92EC,"91DD"],
+ [0x92EE,"E4A8"],
+ [0x92EF,"E870"],
+ [0x92F0,"BE59"],
+ [0x92F1,"E869"],
+ [0x92F2,"93FC"],
+ [0x92F3,"9A42"],
+ [0x92F4,"9A43"],
+ [0x92F6,"9659"],
+ [0x92F7,"EBF4"],
+ [0x92F8,"BFF7"],
+ [0x92F9,"EBF3"],
+ [0x92FA,"EBF0"],
+ [0x92FB,"EC44"],
+ [0x92FC,"BFFB"],
+ [0x92FD,"9A44"],
+ [0x92FE,"EC41"],
+ [0x92FF,"EBF8"],
+ [0x9300,"EC43"],
+ [0x9301,"EBE9"],
+ [0x9302,"EBF6"],
+ [0x9303,"9051"],
+ [0x9304,"BFFD"],
+ [0x9306,"EBE1"],
+ [0x9307,"94BF"],
+ [0x9308,"EBDF"],
+ [0x9309,"EC42"],
+ [0x930B,"EC40"],
+ [0x930C,"EBFE"],
+ [0x930D,"EBED"],
+ [0x930E,"EBEC"],
+ [0x930F,"EBE2"],
+ [0x9310,"C040"],
+ [0x9312,"EBE8"],
+ [0x9313,"EBF2"],
+ [0x9314,"EBFD"],
+ [0x9315,"C043"],
+ [0x9316,"EC45"],
+ [0x9318,"C1E8"],
+ [0x9319,"C045"],
+ [0x931A,"BFFE"],
+ [0x931B,"EBE6"],
+ [0x931D,"EBEF"],
+ [0x931E,"EBDE"],
+ [0x931F,"EBE0"],
+ [0x9320,"BFF5"],
+ [0x9321,"C042"],
+ [0x9322,"BFFA"],
+ [0x9323,"EBE7"],
+ [0x9324,"EBF7"],
+ [0x9325,"EBF1"],
+ [0x9326,"C041"],
+ [0x9327,"EBDD"],
+ [0x9328,"C1E3"],
+ [0x9329,"EBF9"],
+ [0x932A,"EBFC"],
+ [0x932B,"BFFC"],
+ [0x932C,"90A2"],
+ [0x932D,"EBEB"],
+ [0x932E,"C044"],
+ [0x932F,"BFF9"],
+ [0x9330,"9CAB"],
+ [0x9331,"9776"],
+ [0x9333,"BFF8"],
+ [0x9334,"EBF5"],
+ [0x9335,"EBFB"],
+ [0x9336,"BFF6"],
+ [0x9338,"EBE4"],
+ [0x9339,"EBFA"],
+ [0x933C,"EBE5"],
+ [0x9340,"FC55"],
+ [0x9341,"FE45"],
+ [0x9342,"94A8"],
+ [0x9343,"9A45"],
+ [0x9344,"FA4B"],
+ [0x9345,"9DE1"],
+ [0x9346,"EBEA"],
+ [0x9347,"EED2"],
+ [0x9348,"96D9"],
+ [0x9349,"EED7"],
+ [0x934A,"C1E5"],
+ [0x934B,"C1E7"],
+ [0x934C,"EEDD"],
+ [0x934D,"C1E1"],
+ [0x934E,"EEEC"],
+ [0x934F,"EEE3"],
+ [0x9350,"EED8"],
+ [0x9351,"EED9"],
+ [0x9352,"EEE2"],
+ [0x9354,"C1EE"],
+ [0x9355,"EEE1"],
+ [0x9356,"EED1"],
+ [0x9357,"EEE0"],
+ [0x9358,"EED4"],
+ [0x9359,"EEED"],
+ [0x935A,"C1ED"],
+ [0x935B,"C1EB"],
+ [0x935C,"EED5"],
+ [0x935E,"EEE8"],
+ [0x935F,"9774"],
+ [0x9360,"EEDA"],
+ [0x9361,"EEE7"],
+ [0x9362,"FDF5"],
+ [0x9363,"EEE9"],
+ [0x9364,"EED0"],
+ [0x9365,"C1E6"],
+ [0x9366,"92E5"],
+ [0x9367,"EEEA"],
+ [0x9368,"9645"],
+ [0x9369,"91DA"],
+ [0x936A,"EEDE"],
+ [0x936B,"90A3"],
+ [0x936C,"C1EA"],
+ [0x936D,"EEDB"],
+ [0x936E,"A05F"],
+ [0x9370,"C1EC"],
+ [0x9371,"EEE4"],
+ [0x9373,"90AF"],
+ [0x9374,"97BF"],
+ [0x9375,"C1E4"],
+ [0x9376,"EED6"],
+ [0x9377,"EEE5"],
+ [0x9378,"914C"],
+ [0x9379,"EEDF"],
+ [0x937A,"EBE3"],
+ [0x937B,"EEE6"],
+ [0x937C,"EED3"],
+ [0x937D,"967A"],
+ [0x937E,"C1E9"],
+ [0x9380,"EEEB"],
+ [0x9381,"91DE"],
+ [0x9382,"C1E2"],
+ [0x9383,"EECE"],
+ [0x9384,"9A46"],
+ [0x9385,"FEB0"],
+ [0x9386,"9779"],
+ [0x9387,"946C"],
+ [0x9388,"F160"],
+ [0x9389,"F159"],
+ [0x938A,"C2E9"],
+ [0x938C,"F154"],
+ [0x938D,"F163"],
+ [0x938E,"F15B"],
+ [0x938F,"EEDC"],
+ [0x9390,"9858"],
+ [0x9391,"F165"],
+ [0x9392,"F155"],
+ [0x9394,"C2E8"],
+ [0x9395,"F15F"],
+ [0x9396,"C2EA"],
+ [0x9397,"C2F2"],
+ [0x9398,"C2F0"],
+ [0x9399,"F161"],
+ [0x939A,"C2F1"],
+ [0x939B,"F157"],
+ [0x939C,"9266"],
+ [0x939D,"F158"],
+ [0x939E,"F15D"],
+ [0x939F,"F162"],
+ [0x93A0,"93FB"],
+ [0x93A1,"EECD"],
+ [0x93A2,"C2EB"],
+ [0x93A3,"F16A"],
+ [0x93A4,"F167"],
+ [0x93A5,"F16B"],
+ [0x93A6,"F15E"],
+ [0x93A7,"F15A"],
+ [0x93A8,"F168"],
+ [0x93A9,"F36A"],
+ [0x93AA,"F15C"],
+ [0x93AC,"C2EE"],
+ [0x93AD,"9A47"],
+ [0x93AE,"C2ED"],
+ [0x93AF,"EECF"],
+ [0x93B0,"C2EF"],
+ [0x93B1,"F164"],
+ [0x93B2,"F166"],
+ [0x93B3,"C2EC"],
+ [0x93B4,"F169"],
+ [0x93B5,"F153"],
+ [0x93B7,"F156"],
+ [0x93B8,"9749"],
+ [0x93BB,"9748"],
+ [0x93BD,"934A"],
+ [0x93BF,"9CE2"],
+ [0x93C0,"F373"],
+ [0x93C2,"F363"],
+ [0x93C3,"C3EB"],
+ [0x93C4,"F371"],
+ [0x93C6,"9264"],
+ [0x93C7,"F361"],
+ [0x93C8,"C3EC"],
+ [0x93CA,"F36C"],
+ [0x93CB,"91DF"],
+ [0x93CC,"F368"],
+ [0x93CD,"C3F1"],
+ [0x93CE,"F372"],
+ [0x93CF,"F362"],
+ [0x93D0,"F365"],
+ [0x93D1,"C3E9"],
+ [0x93D2,"F374"],
+ [0x93D3,"FB79"],
+ [0x93D4,"F36D"],
+ [0x93D5,"F370"],
+ [0x93D6,"C3EF"],
+ [0x93D7,"C3F4"],
+ [0x93D8,"C3F2"],
+ [0x93D9,"F369"],
+ [0x93DA,"F364"],
+ [0x93DB,"96D7"],
+ [0x93DC,"C3ED"],
+ [0x93DD,"C3EE"],
+ [0x93DE,"F360"],
+ [0x93DF,"C3EA"],
+ [0x93E0,"9343"],
+ [0x93E1,"C3E8"],
+ [0x93E2,"C3F0"],
+ [0x93E3,"F36F"],
+ [0x93E4,"C3F3"],
+ [0x93E6,"F36B"],
+ [0x93E7,"F375"],
+ [0x93E8,"C3F5"],
+ [0x93EC,"F367"],
+ [0x93EE,"F36E"],
+ [0x93F0,"FDCB"],
+ [0x93F1,"FE7A"],
+ [0x93F3,"91DB"],
+ [0x93F4,"8C6A"],
+ [0x93F5,"F4F3"],
+ [0x93F6,"F542"],
+ [0x93F7,"F4F5"],
+ [0x93F8,"F4FC"],
+ [0x93F9,"F366"],
+ [0x93FA,"F4FA"],
+ [0x93FB,"F4E9"],
+ [0x93FC,"F540"],
+ [0x93FD,"C4C3"],
+ [0x93FE,"F4ED"],
+ [0x93FF,"F4FE"],
+ [0x9400,"F4F4"],
+ [0x9401,"97AF"],
+ [0x9403,"C4C2"],
+ [0x9404,"95DD"],
+ [0x9406,"F544"],
+ [0x9407,"F4F6"],
+ [0x9408,"9348"],
+ [0x9409,"F4FB"],
+ [0x940A,"F4FD"],
+ [0x940B,"F4E7"],
+ [0x940C,"F541"],
+ [0x940D,"F4F2"],
+ [0x940E,"F4F7"],
+ [0x940F,"F4EB"],
+ [0x9410,"F4EF"],
+ [0x9411,"F543"],
+ [0x9412,"F4F9"],
+ [0x9413,"F4E8"],
+ [0x9414,"F4EC"],
+ [0x9415,"F4EE"],
+ [0x9416,"F4F8"],
+ [0x9417,"9A4B"],
+ [0x9418,"C4C1"],
+ [0x9419,"F4F1"],
+ [0x941B,"FC45"],
+ [0x941D,"9A4D"],
+ [0x9420,"F4EA"],
+ [0x9424,"91BC"],
+ [0x9425,"90E2"],
+ [0x9426,"90B4"],
+ [0x9427,"95E1"],
+ [0x9428,"F4F0"],
+ [0x9429,"F661"],
+ [0x942A,"F666"],
+ [0x942B,"C54F"],
+ [0x942C,"F668"],
+ [0x942D,"9A4E"],
+ [0x942E,"C549"],
+ [0x942F,"87AD"],
+ [0x9430,"F664"],
+ [0x9431,"F66A"],
+ [0x9432,"C54E"],
+ [0x9433,"C54A"],
+ [0x9435,"C54B"],
+ [0x9436,"F660"],
+ [0x9437,"F667"],
+ [0x9438,"C54D"],
+ [0x9439,"F665"],
+ [0x943A,"C54C"],
+ [0x943B,"F65F"],
+ [0x943C,"F663"],
+ [0x943D,"F662"],
+ [0x943E,"9A4F"],
+ [0x943F,"F65E"],
+ [0x9440,"F669"],
+ [0x9442,"FE40"],
+ [0x9443,"FE43"],
+ [0x9444,"C5B1"],
+ [0x9445,"F76D"],
+ [0x9446,"F770"],
+ [0x9447,"F76C"],
+ [0x9448,"F76E"],
+ [0x9449,"F76F"],
+ [0x944A,"F769"],
+ [0x944B,"F76A"],
+ [0x944C,"F767"],
+ [0x944D,"96DD"],
+ [0x944F,"F76B"],
+ [0x9450,"F768"],
+ [0x9451,"C5B2"],
+ [0x9452,"C5B3"],
+ [0x9454,"9A51"],
+ [0x9455,"F84B"],
+ [0x9457,"F84D"],
+ [0x9458,"96A7"],
+ [0x945B,"90B0"],
+ [0x945D,"F84C"],
+ [0x945E,"F84E"],
+ [0x9460,"C5E0"],
+ [0x9462,"F84A"],
+ [0x9463,"C5DF"],
+ [0x9464,"C5E1"],
+ [0x9465,"9C4E"],
+ [0x9467,"9443"],
+ [0x9468,"F8CB"],
+ [0x9469,"F8CC"],
+ [0x946A,"C644"],
+ [0x946B,"F8CA"],
+ [0x946C,"8EBA"],
+ [0x946D,"F953"],
+ [0x946E,"F952"],
+ [0x946F,"F954"],
+ [0x9470,"C65F"],
+ [0x9471,"F955"],
+ [0x9472,"C65E"],
+ [0x9473,"F956"],
+ [0x9474,"F972"],
+ [0x9475,"F975"],
+ [0x9476,"F974"],
+ [0x9477,"C668"],
+ [0x9478,"F973"],
+ [0x9479,"9A52"],
+ [0x947B,"FCC1"],
+ [0x947C,"C672"],
+ [0x947D,"C670"],
+ [0x947E,"C671"],
+ [0x947F,"C677"],
+ [0x9480,"F9C0"],
+ [0x9481,"F9C1"],
+ [0x9482,"F9BF"],
+ [0x9483,"F9C9"],
+ [0x9485,"8BE9"],
+ [0x949F,"9CAF"],
+ [0x94A2,"8BFD"],
+ [0x94C1,"9ABC"],
+ [0x94C3,"9AB8"],
+ [0x94DC,"9AAE"],
+ [0x94F6,"9AA7"],
+ [0x952D,"9A53"],
+ [0x9547,"9D74"],
+ [0x9577,"AAF8"],
+ [0x9578,"8BEA"],
+ [0x957A,"D844"],
+ [0x957B,"DC78"],
+ [0x957C,"E8A5"],
+ [0x957D,"F376"],
+ [0x957F,"8BEB"],
+ [0x9580,"AAF9"],
+ [0x9582,"ADAC"],
+ [0x9583,"B07B"],
+ [0x9585,"90B2"],
+ [0x9586,"D845"],
+ [0x9588,"D846"],
+ [0x9589,"B3AC"],
+ [0x958B,"B67D"],
+ [0x958C,"DC7A"],
+ [0x958D,"DC79"],
+ [0x958E,"B6A3"],
+ [0x958F,"B67C"],
+ [0x9590,"DC7B"],
+ [0x9591,"B67E"],
+ [0x9592,"B6A2"],
+ [0x9593,"B6A1"],
+ [0x9594,"B67B"],
+ [0x9596,"95E9"],
+ [0x9597,"95E8"],
+ [0x9598,"B968"],
+ [0x9599,"95E6"],
+ [0x959B,"E0D0"],
+ [0x959C,"E0CE"],
+ [0x959E,"E0CF"],
+ [0x959F,"E0CD"],
+ [0x95A0,"90B5"],
+ [0x95A1,"BBD2"],
+ [0x95A2,"9A54"],
+ [0x95A3,"BBD5"],
+ [0x95A4,"BBD7"],
+ [0x95A5,"BBD6"],
+ [0x95A6,"90B3"],
+ [0x95A7,"95E7"],
+ [0x95A8,"BBD3"],
+ [0x95A9,"BBD4"],
+ [0x95AA,"8B50"],
+ [0x95AB,"E8A7"],
+ [0x95AC,"E8A6"],
+ [0x95AD,"BE5B"],
+ [0x95AE,"E8A8"],
+ [0x95B0,"E8A9"],
+ [0x95B1,"BE5C"],
+ [0x95B5,"EC4D"],
+ [0x95B6,"EC4B"],
+ [0x95B7,"EEF3"],
+ [0x95B9,"EC49"],
+ [0x95BA,"EC4A"],
+ [0x95BB,"C046"],
+ [0x95BC,"EC46"],
+ [0x95BD,"EC4E"],
+ [0x95BE,"EC48"],
+ [0x95BF,"EC4C"],
+ [0x95C0,"EEEF"],
+ [0x95C3,"EEF1"],
+ [0x95C5,"EEF2"],
+ [0x95C6,"C1F3"],
+ [0x95C7,"EEEE"],
+ [0x95C8,"C1F2"],
+ [0x95C9,"EEF0"],
+ [0x95CA,"C1EF"],
+ [0x95CB,"C1F0"],
+ [0x95CC,"C1F1"],
+ [0x95CD,"EC47"],
+ [0x95D0,"C2F5"],
+ [0x95D1,"F16E"],
+ [0x95D2,"F16C"],
+ [0x95D3,"F16D"],
+ [0x95D4,"C2F3"],
+ [0x95D5,"C2F6"],
+ [0x95D6,"C2F4"],
+ [0x95DA,"F377"],
+ [0x95DB,"F378"],
+ [0x95DC,"C3F6"],
+ [0x95DE,"F545"],
+ [0x95DF,"F547"],
+ [0x95E0,"F546"],
+ [0x95E1,"C4C4"],
+ [0x95E2,"C550"],
+ [0x95E3,"F66D"],
+ [0x95E4,"F66C"],
+ [0x95E5,"F66B"],
+ [0x95E8,"8BEC"],
+ [0x95F4,"9A56"],
+ [0x961C,"AAFA"],
+ [0x961D,"8BFB"],
+ [0x961E,"C9AA"],
+ [0x9620,"CA58"],
+ [0x9621,"A6E9"],
+ [0x9622,"CA56"],
+ [0x9623,"CA59"],
+ [0x9624,"CA57"],
+ [0x9628,"CBAE"],
+ [0x962A,"A8C1"],
+ [0x962C,"A8C2"],
+ [0x962D,"CBB0"],
+ [0x962E,"A8BF"],
+ [0x962F,"CBAF"],
+ [0x9630,"CBAD"],
+ [0x9631,"A8C0"],
+ [0x9632,"A8BE"],
+ [0x9633,"9A57"],
+ [0x9638,"A0AA"],
+ [0x9639,"CDD8"],
+ [0x963A,"CDDB"],
+ [0x963B,"AAFD"],
+ [0x963C,"CDDA"],
+ [0x963D,"CDD9"],
+ [0x963F,"AAFC"],
+ [0x9640,"AAFB"],
+ [0x9641,"9FA6"],
+ [0x9642,"AB40"],
+ [0x9643,"CDDC"],
+ [0x9644,"AAFE"],
+ [0x9645,"99CC"],
+ [0x964A,"D0C6"],
+ [0x964B,"ADAE"],
+ [0x964C,"ADAF"],
+ [0x964D,"ADB0"],
+ [0x964E,"D0C7"],
+ [0x964F,"D0C3"],
+ [0x9650,"ADAD"],
+ [0x9651,"D0C4"],
+ [0x9653,"D0C5"],
+ [0x9654,"D0C2"],
+ [0x9656,"9C59"],
+ [0x9658,"B0A4"],
+ [0x965B,"B0A1"],
+ [0x965C,"D445"],
+ [0x965D,"B0A2"],
+ [0x965E,"B0A5"],
+ [0x965F,"D446"],
+ [0x9661,"B07E"],
+ [0x9662,"B07C"],
+ [0x9663,"B07D"],
+ [0x9664,"B0A3"],
+ [0x9669,"99B5"],
+ [0x966A,"B3AD"],
+ [0x966B,"D849"],
+ [0x966C,"B3B5"],
+ [0x966D,"D848"],
+ [0x966F,"D84B"],
+ [0x9670,"B3B1"],
+ [0x9671,"D84A"],
+ [0x9672,"B6AB"],
+ [0x9673,"B3AF"],
+ [0x9674,"B3B2"],
+ [0x9675,"B3AE"],
+ [0x9676,"B3B3"],
+ [0x9677,"B3B4"],
+ [0x9678,"B3B0"],
+ [0x967B,"90BE"],
+ [0x967C,"D847"],
+ [0x967D,"B6A7"],
+ [0x967E,"DC7D"],
+ [0x9680,"DCA3"],
+ [0x9681,"9FAF"],
+ [0x9683,"DCA2"],
+ [0x9684,"B6AC"],
+ [0x9685,"B6A8"],
+ [0x9686,"B6A9"],
+ [0x9687,"DC7C"],
+ [0x9688,"DC7E"],
+ [0x9689,"DCA1"],
+ [0x968A,"B6A4"],
+ [0x968B,"B6A6"],
+ [0x968D,"B6AA"],
+ [0x968E,"B6A5"],
+ [0x968F,"95F2"],
+ [0x9691,"E0D3"],
+ [0x9692,"E0D1"],
+ [0x9693,"E0D2"],
+ [0x9694,"B96A"],
+ [0x9695,"B96B"],
+ [0x9696,"90BF"],
+ [0x9697,"E0D4"],
+ [0x9698,"B969"],
+ [0x9699,"BBD8"],
+ [0x969B,"BBDA"],
+ [0x969C,"BBD9"],
+ [0x969E,"E4BB"],
+ [0x96A1,"E4BC"],
+ [0x96A2,"E8AB"],
+ [0x96A3,"90C1"],
+ [0x96A4,"E8AA"],
+ [0x96A5,"FEE4"],
+ [0x96A7,"C047"],
+ [0x96A8,"C048"],
+ [0x96A9,"EC4F"],
+ [0x96AA,"C049"],
+ [0x96AC,"EEF6"],
+ [0x96AE,"EEF4"],
+ [0x96B0,"EEF5"],
+ [0x96B1,"C1F4"],
+ [0x96B3,"F16F"],
+ [0x96B4,"C3F7"],
+ [0x96B6,"90C4"],
+ [0x96B8,"C1F5"],
+ [0x96B9,"AB41"],
+ [0x96BB,"B0A6"],
+ [0x96BC,"D447"],
+ [0x96BD,"90C7"],
+ [0x96BF,"D84C"],
+ [0x96C0,"B3B6"],
+ [0x96C1,"B6AD"],
+ [0x96C2,"DCA4"],
+ [0x96C3,"DCA6"],
+ [0x96C4,"B6AF"],
+ [0x96C5,"B6AE"],
+ [0x96C6,"B6B0"],
+ [0x96C7,"B6B1"],
+ [0x96C8,"DCA5"],
+ [0x96C9,"B96E"],
+ [0x96CA,"B96F"],
+ [0x96CB,"B96D"],
+ [0x96CC,"BBDB"],
+ [0x96CD,"B96C"],
+ [0x96CE,"E0D5"],
+ [0x96D2,"BBDC"],
+ [0x96D3,"E8AC"],
+ [0x96D4,"EC50"],
+ [0x96D5,"C04A"],
+ [0x96D6,"C1F6"],
+ [0x96D7,"F170"],
+ [0x96D8,"F174"],
+ [0x96D9,"C2F9"],
+ [0x96DA,"F171"],
+ [0x96DB,"C2FA"],
+ [0x96DC,"C2F8"],
+ [0x96DD,"F175"],
+ [0x96DE,"C2FB"],
+ [0x96DF,"F173"],
+ [0x96E1,"F379"],
+ [0x96E2,"C2F7"],
+ [0x96E3,"C3F8"],
+ [0x96E5,"F8CD"],
+ [0x96E8,"AB42"],
+ [0x96E9,"B3B8"],
+ [0x96EA,"B3B7"],
+ [0x96EF,"B6B2"],
+ [0x96F0,"DCA8"],
+ [0x96F1,"DCA7"],
+ [0x96F2,"B6B3"],
+ [0x96F4,"92E4"],
+ [0x96F5,"E0D9"],
+ [0x96F6,"B973"],
+ [0x96F7,"B970"],
+ [0x96F8,"E0D8"],
+ [0x96F9,"B972"],
+ [0x96FA,"E0D6"],
+ [0x96FB,"B971"],
+ [0x96FD,"E0D7"],
+ [0x96FF,"E4BD"],
+ [0x9700,"BBDD"],
+ [0x9702,"E8AF"],
+ [0x9703,"9F52"],
+ [0x9704,"BE5D"],
+ [0x9705,"E8AD"],
+ [0x9706,"BE5E"],
+ [0x9707,"BE5F"],
+ [0x9708,"E8AE"],
+ [0x9709,"BE60"],
+ [0x970B,"EC51"],
+ [0x970D,"C04E"],
+ [0x970E,"C04B"],
+ [0x970F,"C050"],
+ [0x9710,"EC53"],
+ [0x9711,"C04C"],
+ [0x9712,"EC52"],
+ [0x9713,"C04F"],
+ [0x9716,"C04D"],
+ [0x9718,"EEF9"],
+ [0x9719,"EEFB"],
+ [0x971B,"90DB"],
+ [0x971C,"C1F7"],
+ [0x971D,"EEFA"],
+ [0x971E,"C1F8"],
+ [0x971F,"EEF8"],
+ [0x9720,"EEF7"],
+ [0x9721,"A066"],
+ [0x9722,"F177"],
+ [0x9723,"F176"],
+ [0x9724,"C2FC"],
+ [0x9725,"F178"],
+ [0x9726,"F37E"],
+ [0x9727,"C3FA"],
+ [0x9728,"F37D"],
+ [0x9729,"F37A"],
+ [0x972A,"C3F9"],
+ [0x972B,"F37B"],
+ [0x972C,"F37C"],
+ [0x972E,"F548"],
+ [0x972F,"F549"],
+ [0x9730,"C4C5"],
+ [0x9731,"90D2"],
+ [0x9732,"C553"],
+ [0x9734,"876B"],
+ [0x9735,"F66E"],
+ [0x9736,"90D4"],
+ [0x9738,"C551"],
+ [0x9739,"C552"],
+ [0x973A,"F66F"],
+ [0x973D,"C5B4"],
+ [0x973E,"C5B5"],
+ [0x973F,"F771"],
+ [0x9740,"9A5B"],
+ [0x9741,"95FD"],
+ [0x9742,"C645"],
+ [0x9743,"F8CF"],
+ [0x9744,"C647"],
+ [0x9746,"F8CE"],
+ [0x9747,"F8D0"],
+ [0x9748,"C646"],
+ [0x9749,"F957"],
+ [0x974A,"87B1"],
+ [0x974B,"F9AD"],
+ [0x9751,"8BC4"],
+ [0x9752,"AB43"],
+ [0x9755,"8C66"],
+ [0x9756,"B974"],
+ [0x9757,"90DE"],
+ [0x9758,"E4BE"],
+ [0x975A,"E8B0"],
+ [0x975B,"C051"],
+ [0x975C,"C052"],
+ [0x975D,"9CE4"],
+ [0x975E,"AB44"],
+ [0x975F,"90E1"],
+ [0x9760,"BE61"],
+ [0x9761,"C3FB"],
+ [0x9762,"ADB1"],
+ [0x9766,"C053"],
+ [0x9768,"C5E2"],
+ [0x9769,"ADB2"],
+ [0x976A,"D84D"],
+ [0x976C,"DCA9"],
+ [0x976D,"9E46"],
+ [0x976E,"DCAB"],
+ [0x9770,"DCAA"],
+ [0x9771,"9651"],
+ [0x9772,"E0DD"],
+ [0x9773,"E0DA"],
+ [0x9774,"B975"],
+ [0x9776,"B976"],
+ [0x9777,"E0DB"],
+ [0x9778,"E0DC"],
+ [0x977A,"E4C0"],
+ [0x977B,"E4C5"],
+ [0x977C,"BBDE"],
+ [0x977D,"E4BF"],
+ [0x977E,"E4C1"],
+ [0x977F,"E4C8"],
+ [0x9780,"E4C3"],
+ [0x9781,"E4C7"],
+ [0x9782,"E4C4"],
+ [0x9783,"E4C2"],
+ [0x9784,"E4C6"],
+ [0x9785,"BBDF"],
+ [0x9787,"FB58"],
+ [0x9788,"E8B3"],
+ [0x9789,"90E6"],
+ [0x978A,"E8B1"],
+ [0x978B,"BE63"],
+ [0x978D,"BE62"],
+ [0x978E,"E8B2"],
+ [0x978F,"BE64"],
+ [0x9794,"EC56"],
+ [0x9797,"EC55"],
+ [0x9798,"C054"],
+ [0x9799,"EC54"],
+ [0x979A,"EEFC"],
+ [0x979B,"9650"],
+ [0x979C,"EEFE"],
+ [0x979D,"EF41"],
+ [0x979E,"EF40"],
+ [0x979F,"90E7"],
+ [0x97A0,"C1F9"],
+ [0x97A1,"EEFD"],
+ [0x97A2,"F1A1"],
+ [0x97A3,"C2FD"],
+ [0x97A4,"F17D"],
+ [0x97A5,"F1A2"],
+ [0x97A6,"C2FE"],
+ [0x97A8,"F17B"],
+ [0x97AA,"F17E"],
+ [0x97AB,"F17C"],
+ [0x97AC,"F179"],
+ [0x97AD,"C340"],
+ [0x97AE,"F17A"],
+ [0x97B1,"90E8"],
+ [0x97B2,"9A5D"],
+ [0x97B3,"F3A1"],
+ [0x97B4,"9F7A"],
+ [0x97B6,"F3A3"],
+ [0x97B7,"F3A2"],
+ [0x97B8,"9B5C"],
+ [0x97B9,"F54A"],
+ [0x97BA,"9F7C"],
+ [0x97BB,"F54B"],
+ [0x97BD,"FC52"],
+ [0x97BE,"90E9"],
+ [0x97BF,"F670"],
+ [0x97C0,"90EA"],
+ [0x97C1,"C5B7"],
+ [0x97C2,"9A5E"],
+ [0x97C3,"C5B6"],
+ [0x97C4,"F84F"],
+ [0x97C5,"F850"],
+ [0x97C6,"C648"],
+ [0x97C7,"F8D1"],
+ [0x97C8,"9F76"],
+ [0x97C9,"C669"],
+ [0x97CB,"ADB3"],
+ [0x97CC,"B6B4"],
+ [0x97CD,"E4CA"],
+ [0x97CE,"E4C9"],
+ [0x97CF,"E8B5"],
+ [0x97D0,"E8B4"],
+ [0x97D2,"90EB"],
+ [0x97D3,"C1FA"],
+ [0x97D4,"EF43"],
+ [0x97D5,"EF42"],
+ [0x97D6,"F1A5"],
+ [0x97D7,"F1A3"],
+ [0x97D8,"F1A6"],
+ [0x97D9,"F1A4"],
+ [0x97DC,"C3FC"],
+ [0x97DD,"F3A4"],
+ [0x97DE,"F3A5"],
+ [0x97DF,"F3A6"],
+ [0x97E0,"90EC"],
+ [0x97E1,"F671"],
+ [0x97E3,"F772"],
+ [0x97E5,"F8D2"],
+ [0x97E6,"8BEE"],
+ [0x97ED,"ADB4"],
+ [0x97EE,"90EE"],
+ [0x97F0,"EC57"],
+ [0x97F1,"EF44"],
+ [0x97F2,"91C6"],
+ [0x97F3,"ADB5"],
+ [0x97F5,"90F2"],
+ [0x97F6,"BBE0"],
+ [0x97F8,"EC58"],
+ [0x97F9,"C341"],
+ [0x97FA,"F1A7"],
+ [0x97FB,"C3FD"],
+ [0x97FD,"F54C"],
+ [0x97FE,"F54D"],
+ [0x97FF,"C554"],
+ [0x9800,"F851"],
+ [0x9801,"ADB6"],
+ [0x9802,"B3BB"],
+ [0x9803,"B3BC"],
+ [0x9804,"D84E"],
+ [0x9805,"B6B5"],
+ [0x9806,"B6B6"],
+ [0x9807,"DCAC"],
+ [0x9808,"B6B7"],
+ [0x980A,"B97A"],
+ [0x980C,"B97C"],
+ [0x980D,"E0DF"],
+ [0x980E,"E0E0"],
+ [0x980F,"E0DE"],
+ [0x9810,"B977"],
+ [0x9811,"B978"],
+ [0x9812,"B97B"],
+ [0x9813,"B979"],
+ [0x9814,"FCBC"],
+ [0x9815,"8A74"],
+ [0x9816,"E4CB"],
+ [0x9817,"BBE1"],
+ [0x9818,"BBE2"],
+ [0x981B,"E8BC"],
+ [0x981C,"BE67"],
+ [0x981D,"E8B7"],
+ [0x981E,"E8B6"],
+ [0x981F,"9657"],
+ [0x9820,"E8BB"],
+ [0x9821,"BE65"],
+ [0x9823,"9CEF"],
+ [0x9824,"C05B"],
+ [0x9826,"E8B8"],
+ [0x9827,"E8BD"],
+ [0x9828,"E8BA"],
+ [0x9829,"E8B9"],
+ [0x982B,"BE66"],
+ [0x982D,"C059"],
+ [0x982E,"9FDF"],
+ [0x982F,"EC5A"],
+ [0x9830,"C055"],
+ [0x9832,"EC5B"],
+ [0x9833,"90F7"],
+ [0x9834,"90F6"],
+ [0x9835,"EC59"],
+ [0x9837,"C058"],
+ [0x9838,"C056"],
+ [0x9839,"C05A"],
+ [0x983B,"C057"],
+ [0x9841,"EF45"],
+ [0x9843,"EF4A"],
+ [0x9844,"EF46"],
+ [0x9845,"EF49"],
+ [0x9846,"C1FB"],
+ [0x9847,"9B5E"],
+ [0x9848,"EDD4"],
+ [0x9849,"EF48"],
+ [0x984A,"EF47"],
+ [0x984B,"90F8"],
+ [0x984C,"C344"],
+ [0x984D,"C342"],
+ [0x984E,"C345"],
+ [0x984F,"C343"],
+ [0x9850,"F1A8"],
+ [0x9851,"F1A9"],
+ [0x9852,"F1AA"],
+ [0x9853,"C346"],
+ [0x9856,"8CFC"],
+ [0x9857,"F3AA"],
+ [0x9858,"C440"],
+ [0x9859,"F3A8"],
+ [0x985B,"C441"],
+ [0x985C,"F3A7"],
+ [0x985D,"F3A9"],
+ [0x985E,"C3FE"],
+ [0x985F,"F551"],
+ [0x9860,"F54E"],
+ [0x9862,"F54F"],
+ [0x9863,"F550"],
+ [0x9864,"F672"],
+ [0x9865,"C556"],
+ [0x9866,"90F9"],
+ [0x9867,"C555"],
+ [0x9868,"8CC9"],
+ [0x9869,"F774"],
+ [0x986A,"F773"],
+ [0x986B,"C5B8"],
+ [0x986C,"FA6A"],
+ [0x986F,"C5E3"],
+ [0x9870,"C649"],
+ [0x9871,"C660"],
+ [0x9872,"F958"],
+ [0x9873,"F9AE"],
+ [0x9874,"F9AF"],
+ [0x9875,"8BEF"],
+ [0x98A8,"ADB7"],
+ [0x98A9,"DCAD"],
+ [0x98AC,"E0E1"],
+ [0x98AD,"E4CC"],
+ [0x98AE,"E4CD"],
+ [0x98AF,"BBE3"],
+ [0x98B1,"BBE4"],
+ [0x98B2,"E8BE"],
+ [0x98B3,"BE68"],
+ [0x98B4,"9FE0"],
+ [0x98B6,"C1FC"],
+ [0x98B7,"9142"],
+ [0x98B8,"F1AB"],
+ [0x98B9,"9A62"],
+ [0x98BA,"C347"],
+ [0x98BB,"F3AD"],
+ [0x98BC,"C442"],
+ [0x98BD,"F3AC"],
+ [0x98BE,"F3AE"],
+ [0x98BF,"F3AB"],
+ [0x98C0,"F675"],
+ [0x98C1,"F552"],
+ [0x98C2,"F553"],
+ [0x98C3,"9569"],
+ [0x98C4,"C4C6"],
+ [0x98C6,"F674"],
+ [0x98C7,"9144"],
+ [0x98C8,"9143"],
+ [0x98C9,"F673"],
+ [0x98CA,"9141"],
+ [0x98CB,"F775"],
+ [0x98CC,"F9B0"],
+ [0x98CE,"8BF0"],
+ [0x98DB,"ADB8"],
+ [0x98DC,"9660"],
+ [0x98DE,"8BF1"],
+ [0x98DF,"ADB9"],
+ [0x98E0,"99F6"],
+ [0x98E1,"9149"],
+ [0x98E2,"B0A7"],
+ [0x98E3,"D448"],
+ [0x98E5,"D84F"],
+ [0x98E6,"914A"],
+ [0x98E7,"B6B8"],
+ [0x98E9,"B6BB"],
+ [0x98EA,"B6B9"],
+ [0x98EB,"DCAE"],
+ [0x98EC,"914B"],
+ [0x98ED,"B6BD"],
+ [0x98EF,"B6BA"],
+ [0x98F1,"9A64"],
+ [0x98F2,"B6BC"],
+ [0x98F4,"B97E"],
+ [0x98F5,"8ABF"],
+ [0x98F6,"E0E2"],
+ [0x98F9,"E0E3"],
+ [0x98FA,"E8C0"],
+ [0x98FC,"B97D"],
+ [0x98FD,"B9A1"],
+ [0x98FE,"B9A2"],
+ [0x9900,"E4CF"],
+ [0x9902,"E4CE"],
+ [0x9903,"BBE5"],
+ [0x9905,"BBE6"],
+ [0x9907,"E4D0"],
+ [0x9908,"E8BF"],
+ [0x9909,"BBE8"],
+ [0x990A,"BE69"],
+ [0x990C,"BBE7"],
+ [0x990E,"9A66"],
+ [0x9910,"C05C"],
+ [0x9911,"E8C1"],
+ [0x9912,"BE6B"],
+ [0x9913,"BE6A"],
+ [0x9914,"E8C2"],
+ [0x9915,"E8C5"],
+ [0x9916,"E8C3"],
+ [0x9917,"E8C4"],
+ [0x9918,"BE6C"],
+ [0x9919,"9A67"],
+ [0x991A,"C061"],
+ [0x991B,"C05F"],
+ [0x991C,"9A69"],
+ [0x991E,"C05E"],
+ [0x991F,"EC5D"],
+ [0x9921,"C060"],
+ [0x9924,"EC5C"],
+ [0x9925,"EF4B"],
+ [0x9927,"EC5E"],
+ [0x9928,"C05D"],
+ [0x9929,"EC5F"],
+ [0x992A,"EF4E"],
+ [0x992B,"EF4C"],
+ [0x992C,"EF4D"],
+ [0x992D,"EF52"],
+ [0x992E,"C34B"],
+ [0x992F,"EF51"],
+ [0x9930,"EF54"],
+ [0x9931,"EF53"],
+ [0x9932,"EF50"],
+ [0x9933,"EF4F"],
+ [0x9935,"C1FD"],
+ [0x9937,"9A6A"],
+ [0x9938,"9652"],
+ [0x9939,"914D"],
+ [0x993A,"F1AE"],
+ [0x993B,"9666"],
+ [0x993C,"F1AD"],
+ [0x993D,"C34A"],
+ [0x993E,"C348"],
+ [0x993F,"C349"],
+ [0x9940,"9F7B"],
+ [0x9941,"F1AC"],
+ [0x9942,"9A6B"],
+ [0x9943,"F3B1"],
+ [0x9945,"C443"],
+ [0x9947,"F3B0"],
+ [0x9948,"F3AF"],
+ [0x9949,"C444"],
+ [0x994A,"A06C"],
+ [0x994B,"F558"],
+ [0x994C,"F557"],
+ [0x994D,"9667"],
+ [0x994E,"F555"],
+ [0x9950,"F554"],
+ [0x9951,"C4C8"],
+ [0x9952,"C4C7"],
+ [0x9953,"F559"],
+ [0x9954,"F776"],
+ [0x9955,"C5B9"],
+ [0x9956,"F677"],
+ [0x9957,"C557"],
+ [0x9958,"F676"],
+ [0x9959,"F556"],
+ [0x995B,"F777"],
+ [0x995C,"C5E4"],
+ [0x995D,"9A6C"],
+ [0x995E,"C661"],
+ [0x995F,"F959"],
+ [0x9961,"F9B1"],
+ [0x9962,"9A6D"],
+ [0x9963,"8BF2"],
+ [0x9996,"ADBA"],
+ [0x9997,"D850"],
+ [0x9998,"EF55"],
+ [0x9999,"ADBB"],
+ [0x999B,"966A"],
+ [0x999C,"E4D2"],
+ [0x999D,"E4D1"],
+ [0x999E,"EC60"],
+ [0x99A1,"EF57"],
+ [0x99A3,"EF56"],
+ [0x99A4,"FCEA"],
+ [0x99A5,"C34C"],
+ [0x99A6,"F3B2"],
+ [0x99A7,"F3B3"],
+ [0x99A8,"C4C9"],
+ [0x99AA,"966C"],
+ [0x99AB,"F9B2"],
+ [0x99AC,"B0A8"],
+ [0x99AD,"B6BF"],
+ [0x99AE,"B6BE"],
+ [0x99AF,"E0E4"],
+ [0x99B0,"E0E6"],
+ [0x99B1,"B9A4"],
+ [0x99B2,"E0E5"],
+ [0x99B3,"B9A3"],
+ [0x99B4,"B9A5"],
+ [0x99B5,"E0E7"],
+ [0x99B8,"91C4"],
+ [0x99B9,"E4D4"],
+ [0x99BA,"E4D6"],
+ [0x99BB,"E4D5"],
+ [0x99BC,"9677"],
+ [0x99BD,"E4D8"],
+ [0x99C1,"BBE9"],
+ [0x99C2,"E4D7"],
+ [0x99C3,"E4D3"],
+ [0x99C4,"99F4"],
+ [0x99C5,"9A6F"],
+ [0x99C7,"E4D9"],
+ [0x99C9,"E8CC"],
+ [0x99CB,"E8CF"],
+ [0x99CC,"E8D1"],
+ [0x99CD,"E8C7"],
+ [0x99CE,"E8CB"],
+ [0x99CF,"E8C8"],
+ [0x99D0,"BE6E"],
+ [0x99D1,"BE71"],
+ [0x99D2,"BE73"],
+ [0x99D3,"E8C9"],
+ [0x99D4,"E8CA"],
+ [0x99D5,"BE72"],
+ [0x99D6,"E8CD"],
+ [0x99D7,"E8D0"],
+ [0x99D8,"E8CE"],
+ [0x99D9,"BE74"],
+ [0x99DA,"9FAB"],
+ [0x99DB,"BE70"],
+ [0x99DC,"E8C6"],
+ [0x99DD,"BE6D"],
+ [0x99DF,"BE6F"],
+ [0x99E0,"8CBE"],
+ [0x99E1,"8EC1"],
+ [0x99E2,"C063"],
+ [0x99E3,"EC66"],
+ [0x99E4,"EC64"],
+ [0x99E5,"EC63"],
+ [0x99E6,"9555"],
+ [0x99E7,"EC69"],
+ [0x99E9,"EC68"],
+ [0x99EA,"EC67"],
+ [0x99EC,"EC62"],
+ [0x99ED,"C062"],
+ [0x99EE,"EC61"],
+ [0x99F0,"EC65"],
+ [0x99F1,"C064"],
+ [0x99F4,"EF5A"],
+ [0x99F5,"9152"],
+ [0x99F6,"EF5E"],
+ [0x99F7,"EF5B"],
+ [0x99F8,"EF5D"],
+ [0x99F9,"EF5C"],
+ [0x99FA,"EF59"],
+ [0x99FB,"EF5F"],
+ [0x99FC,"EF62"],
+ [0x99FD,"EF60"],
+ [0x99FE,"EF61"],
+ [0x99FF,"C240"],
+ [0x9A01,"C1FE"],
+ [0x9A02,"EF58"],
+ [0x9A03,"EF63"],
+ [0x9A04,"F1B3"],
+ [0x9A05,"F1B6"],
+ [0x9A06,"F1B8"],
+ [0x9A07,"F1B7"],
+ [0x9A09,"F1B1"],
+ [0x9A0A,"F1B5"],
+ [0x9A0B,"F1B0"],
+ [0x9A0C,"9153"],
+ [0x9A0D,"F1B2"],
+ [0x9A0E,"C34D"],
+ [0x9A0F,"F1AF"],
+ [0x9A10,"9155"],
+ [0x9A11,"F1B4"],
+ [0x9A14,"F3C0"],
+ [0x9A15,"F3B5"],
+ [0x9A16,"C445"],
+ [0x9A19,"C446"],
+ [0x9A1A,"F3B4"],
+ [0x9A1B,"F3B9"],
+ [0x9A1C,"F3BF"],
+ [0x9A1D,"F3B7"],
+ [0x9A1E,"F3BE"],
+ [0x9A1F,"955D"],
+ [0x9A20,"F3BB"],
+ [0x9A21,"9671"],
+ [0x9A22,"F3BA"],
+ [0x9A23,"F3BD"],
+ [0x9A24,"F3B8"],
+ [0x9A25,"F3B6"],
+ [0x9A26,"9C6D"],
+ [0x9A27,"F3BC"],
+ [0x9A29,"F560"],
+ [0x9A2A,"F55E"],
+ [0x9A2B,"C4CA"],
+ [0x9A2C,"F55D"],
+ [0x9A2D,"F563"],
+ [0x9A2E,"F561"],
+ [0x9A2F,"9673"],
+ [0x9A30,"C4CB"],
+ [0x9A31,"F55C"],
+ [0x9A32,"F55A"],
+ [0x9A34,"F55B"],
+ [0x9A35,"C4CD"],
+ [0x9A36,"F55F"],
+ [0x9A37,"C4CC"],
+ [0x9A38,"F562"],
+ [0x9A39,"F678"],
+ [0x9A3A,"F67E"],
+ [0x9A3B,"9154"],
+ [0x9A3C,"9A71"],
+ [0x9A3D,"F679"],
+ [0x9A3E,"C55B"],
+ [0x9A3F,"F6A1"],
+ [0x9A40,"C55A"],
+ [0x9A41,"F67D"],
+ [0x9A42,"F67C"],
+ [0x9A43,"C559"],
+ [0x9A44,"F67B"],
+ [0x9A45,"C558"],
+ [0x9A46,"F67A"],
+ [0x9A48,"F77D"],
+ [0x9A49,"F7A1"],
+ [0x9A4A,"F77E"],
+ [0x9A4C,"F77B"],
+ [0x9A4D,"C5BB"],
+ [0x9A4E,"F778"],
+ [0x9A4F,"F77C"],
+ [0x9A50,"F7A3"],
+ [0x9A52,"F7A2"],
+ [0x9A53,"F779"],
+ [0x9A54,"F77A"],
+ [0x9A55,"C5BA"],
+ [0x9A56,"F852"],
+ [0x9A57,"C5E7"],
+ [0x9A58,"9156"],
+ [0x9A59,"F853"],
+ [0x9A5A,"C5E5"],
+ [0x9A5B,"C5E6"],
+ [0x9A5C,"966D"],
+ [0x9A5E,"F8D3"],
+ [0x9A5F,"C64A"],
+ [0x9A60,"F976"],
+ [0x9A62,"C66A"],
+ [0x9A63,"9557"],
+ [0x9A64,"F9B3"],
+ [0x9A65,"C66B"],
+ [0x9A66,"F9B4"],
+ [0x9A67,"F9B5"],
+ [0x9A68,"F9C3"],
+ [0x9A69,"F9C2"],
+ [0x9A6A,"C67A"],
+ [0x9A6B,"F9CD"],
+ [0x9A6C,"89C6"],
+ [0x9A8F,"89C7"],
+ [0x9AA8,"B0A9"],
+ [0x9AAB,"E0E9"],
+ [0x9AAD,"E0E8"],
+ [0x9AAF,"BBEA"],
+ [0x9AB0,"BBEB"],
+ [0x9AB1,"E4DA"],
+ [0x9AB2,"8A6A"],
+ [0x9AB3,"E8D2"],
+ [0x9AB4,"EC6C"],
+ [0x9AB6,"8B57"],
+ [0x9AB7,"BE75"],
+ [0x9AB8,"C065"],
+ [0x9AB9,"EC6A"],
+ [0x9ABA,"9FE1"],
+ [0x9ABB,"EC6D"],
+ [0x9ABC,"C066"],
+ [0x9ABD,"9B5F"],
+ [0x9ABE,"EF64"],
+ [0x9ABF,"EC6B"],
+ [0x9AC0,"F1B9"],
+ [0x9AC1,"C34E"],
+ [0x9AC2,"F3C1"],
+ [0x9AC6,"F566"],
+ [0x9AC7,"F564"],
+ [0x9ACA,"F565"],
+ [0x9ACD,"F6A2"],
+ [0x9ACF,"C55C"],
+ [0x9AD0,"F7A4"],
+ [0x9AD1,"C5EA"],
+ [0x9AD2,"C5BC"],
+ [0x9AD3,"C5E8"],
+ [0x9AD4,"C5E9"],
+ [0x9AD5,"F8D4"],
+ [0x9AD6,"C662"],
+ [0x9AD7,"A05D"],
+ [0x9AD8,"B0AA"],
+ [0x9ADC,"F1BA"],
+ [0x9ADF,"D449"],
+ [0x9AE0,"915B"],
+ [0x9AE1,"B9A6"],
+ [0x9AE2,"915C"],
+ [0x9AE3,"E4DB"],
+ [0x9AE6,"BBEC"],
+ [0x9AE7,"E4DC"],
+ [0x9AEB,"E8D4"],
+ [0x9AEC,"E8D3"],
+ [0x9AED,"C068"],
+ [0x9AEE,"BE76"],
+ [0x9AEF,"BE77"],
+ [0x9AF1,"E8D7"],
+ [0x9AF2,"E8D6"],
+ [0x9AF3,"E8D5"],
+ [0x9AF4,"915E"],
+ [0x9AF6,"EC6E"],
+ [0x9AF7,"EC71"],
+ [0x9AF9,"EC70"],
+ [0x9AFA,"EC6F"],
+ [0x9AFB,"C067"],
+ [0x9AFC,"EF68"],
+ [0x9AFD,"EF66"],
+ [0x9AFE,"EF65"],
+ [0x9AFF,"9F5C"],
+ [0x9B01,"EF67"],
+ [0x9B02,"9F57"],
+ [0x9B03,"C34F"],
+ [0x9B04,"F1BC"],
+ [0x9B05,"F1BD"],
+ [0x9B06,"C350"],
+ [0x9B08,"F1BB"],
+ [0x9B09,"9F65"],
+ [0x9B0A,"F3C3"],
+ [0x9B0B,"F3C2"],
+ [0x9B0C,"F3C5"],
+ [0x9B0D,"C447"],
+ [0x9B0E,"F3C4"],
+ [0x9B0F,"9A72"],
+ [0x9B10,"F567"],
+ [0x9B11,"F569"],
+ [0x9B12,"F568"],
+ [0x9B14,"9160"],
+ [0x9B15,"F6A3"],
+ [0x9B16,"F6A6"],
+ [0x9B17,"F6A4"],
+ [0x9B18,"F6A5"],
+ [0x9B19,"F7A5"],
+ [0x9B1A,"C5BD"],
+ [0x9B1E,"F854"],
+ [0x9B1F,"F855"],
+ [0x9B20,"F856"],
+ [0x9B22,"C64B"],
+ [0x9B23,"C663"],
+ [0x9B24,"F9B6"],
+ [0x9B25,"B0AB"],
+ [0x9B27,"BE78"],
+ [0x9B28,"C069"],
+ [0x9B29,"F1BE"],
+ [0x9B2A,"9F5E"],
+ [0x9B2B,"F7A6"],
+ [0x9B2D,"9161"],
+ [0x9B2E,"F9C4"],
+ [0x9B2F,"D44A"],
+ [0x9B31,"C67B"],
+ [0x9B32,"B0AC"],
+ [0x9B33,"EC72"],
+ [0x9B34,"9164"],
+ [0x9B35,"F1BF"],
+ [0x9B37,"F3C6"],
+ [0x9B39,"9F41"],
+ [0x9B3A,"F6A7"],
+ [0x9B3B,"F7A7"],
+ [0x9B3C,"B0AD"],
+ [0x9B3E,"E4DD"],
+ [0x9B3F,"E4DE"],
+ [0x9B40,"9169"],
+ [0x9B41,"BBED"],
+ [0x9B42,"BBEE"],
+ [0x9B43,"E8D9"],
+ [0x9B44,"BE7A"],
+ [0x9B45,"BE79"],
+ [0x9B46,"E8D8"],
+ [0x9B48,"EF69"],
+ [0x9B4A,"F1C0"],
+ [0x9B4B,"F1C2"],
+ [0x9B4C,"F1C1"],
+ [0x9B4D,"C353"],
+ [0x9B4E,"C352"],
+ [0x9B4F,"C351"],
+ [0x9B50,"9168"],
+ [0x9B51,"C55E"],
+ [0x9B52,"F6A8"],
+ [0x9B54,"C55D"],
+ [0x9B55,"F7A9"],
+ [0x9B56,"F7A8"],
+ [0x9B58,"C64C"],
+ [0x9B59,"F8D5"],
+ [0x9B5A,"B3BD"],
+ [0x9B5B,"E0EA"],
+ [0x9B5F,"E4E1"],
+ [0x9B60,"E4DF"],
+ [0x9B61,"E4E0"],
+ [0x9B64,"E8E2"],
+ [0x9B66,"E8DD"],
+ [0x9B67,"E8DA"],
+ [0x9B68,"E8E1"],
+ [0x9B69,"9A74"],
+ [0x9B6C,"E8E3"],
+ [0x9B6F,"BE7C"],
+ [0x9B70,"E8E0"],
+ [0x9B71,"E8DC"],
+ [0x9B74,"E8DB"],
+ [0x9B75,"E8DF"],
+ [0x9B76,"E8DE"],
+ [0x9B77,"BE7B"],
+ [0x9B7A,"EC7D"],
+ [0x9B7B,"EC78"],
+ [0x9B7C,"EC76"],
+ [0x9B7D,"ECA1"],
+ [0x9B7E,"EC77"],
+ [0x9B7F,"96B2"],
+ [0x9B80,"EC73"],
+ [0x9B81,"9A75"],
+ [0x9B82,"EC79"],
+ [0x9B83,"FDA5"],
+ [0x9B85,"EC74"],
+ [0x9B86,"EF72"],
+ [0x9B87,"EC75"],
+ [0x9B88,"ECA2"],
+ [0x9B8B,"9EE9"],
+ [0x9B8D,"8BBA"],
+ [0x9B8E,"916D"],
+ [0x9B8F,"A060"],
+ [0x9B90,"EC7C"],
+ [0x9B91,"C06A"],
+ [0x9B92,"EC7B"],
+ [0x9B93,"EC7A"],
+ [0x9B95,"EC7E"],
+ [0x9B97,"9FDE"],
+ [0x9B9A,"EF6A"],
+ [0x9B9B,"EF6D"],
+ [0x9B9D,"9FC3"],
+ [0x9B9E,"EF6C"],
+ [0x9B9F,"96B5"],
+ [0x9BA0,"EF74"],
+ [0x9BA1,"EF6F"],
+ [0x9BA2,"EF73"],
+ [0x9BA4,"EF71"],
+ [0x9BA5,"EF70"],
+ [0x9BA6,"EF6E"],
+ [0x9BA8,"EF6B"],
+ [0x9BAA,"C243"],
+ [0x9BAB,"C242"],
+ [0x9BAD,"C244"],
+ [0x9BAE,"C241"],
+ [0x9BAF,"EF75"],
+ [0x9BB0,"A067"],
+ [0x9BB5,"F1C8"],
+ [0x9BB6,"F1CB"],
+ [0x9BB8,"F1C9"],
+ [0x9BB9,"F1CD"],
+ [0x9BBD,"F1CE"],
+ [0x9BBF,"F1C6"],
+ [0x9BC0,"C358"],
+ [0x9BC1,"F1C7"],
+ [0x9BC3,"F1C5"],
+ [0x9BC4,"F1CC"],
+ [0x9BC6,"F1C4"],
+ [0x9BC7,"F1C3"],
+ [0x9BC8,"C357"],
+ [0x9BC9,"C355"],
+ [0x9BCA,"C354"],
+ [0x9BCF,"96B3"],
+ [0x9BD3,"F1CA"],
+ [0x9BD4,"F3CF"],
+ [0x9BD5,"F3D5"],
+ [0x9BD6,"C44A"],
+ [0x9BD7,"F3D0"],
+ [0x9BD9,"F3D3"],
+ [0x9BDA,"F3D7"],
+ [0x9BDB,"C44B"],
+ [0x9BDC,"F3D2"],
+ [0x9BDD,"9A76"],
+ [0x9BDE,"F3CA"],
+ [0x9BE0,"F3C9"],
+ [0x9BE1,"F3D6"],
+ [0x9BE2,"F3CD"],
+ [0x9BE4,"F3CB"],
+ [0x9BE5,"F3D4"],
+ [0x9BE6,"F3CC"],
+ [0x9BE7,"C449"],
+ [0x9BE8,"C448"],
+ [0x9BE9,"95D5"],
+ [0x9BEA,"F3C7"],
+ [0x9BEB,"F3C8"],
+ [0x9BEC,"F3D1"],
+ [0x9BED,"9ECA"],
+ [0x9BF0,"F3CE"],
+ [0x9BF1,"9A77"],
+ [0x9BF4,"9A78"],
+ [0x9BF7,"F56C"],
+ [0x9BF8,"F56F"],
+ [0x9BFD,"C356"],
+ [0x9BFF,"9170"],
+ [0x9C02,"916F"],
+ [0x9C05,"F56D"],
+ [0x9C06,"F573"],
+ [0x9C07,"F571"],
+ [0x9C08,"F56B"],
+ [0x9C09,"F576"],
+ [0x9C0A,"9FA3"],
+ [0x9C0B,"F56A"],
+ [0x9C0C,"9171"],
+ [0x9C0D,"C4CF"],
+ [0x9C0E,"F572"],
+ [0x9C10,"96B1"],
+ [0x9C12,"F56E"],
+ [0x9C13,"C4CE"],
+ [0x9C14,"F575"],
+ [0x9C15,"9F63"],
+ [0x9C17,"F574"],
+ [0x9C1B,"9F67"],
+ [0x9C1C,"F6AB"],
+ [0x9C1D,"F6AA"],
+ [0x9C1F,"8BB9"],
+ [0x9C20,"9A7A"],
+ [0x9C21,"F6B1"],
+ [0x9C23,"F6AD"],
+ [0x9C24,"F6B0"],
+ [0x9C25,"C560"],
+ [0x9C26,"8B56"],
+ [0x9C28,"F6AE"],
+ [0x9C29,"F6AF"],
+ [0x9C2B,"F6A9"],
+ [0x9C2C,"F6AC"],
+ [0x9C2D,"C55F"],
+ [0x9C2F,"9ADA"],
+ [0x9C31,"C5BF"],
+ [0x9C32,"F7B4"],
+ [0x9C33,"F7AF"],
+ [0x9C34,"F7B3"],
+ [0x9C35,"96B0"],
+ [0x9C36,"F7B6"],
+ [0x9C37,"F7B2"],
+ [0x9C39,"F7AE"],
+ [0x9C3A,"9A7E"],
+ [0x9C3B,"C5C1"],
+ [0x9C3C,"F7B1"],
+ [0x9C3D,"F7B5"],
+ [0x9C3E,"C5C0"],
+ [0x9C3F,"F7AC"],
+ [0x9C40,"F570"],
+ [0x9C41,"F7B0"],
+ [0x9C44,"F7AD"],
+ [0x9C45,"9DDE"],
+ [0x9C46,"F7AA"],
+ [0x9C48,"F7AB"],
+ [0x9C49,"C5BE"],
+ [0x9C4A,"F85A"],
+ [0x9C4B,"F85C"],
+ [0x9C4C,"F85F"],
+ [0x9C4D,"F85B"],
+ [0x9C4E,"F860"],
+ [0x9C4F,"96AD"],
+ [0x9C50,"F859"],
+ [0x9C52,"F857"],
+ [0x9C53,"96AE"],
+ [0x9C54,"C5EB"],
+ [0x9C55,"F85D"],
+ [0x9C56,"C5ED"],
+ [0x9C57,"C5EC"],
+ [0x9C58,"F858"],
+ [0x9C59,"F85E"],
+ [0x9C5D,"9EA1"],
+ [0x9C5E,"F8DA"],
+ [0x9C5F,"C64D"],
+ [0x9C60,"F8DB"],
+ [0x9C62,"F8D9"],
+ [0x9C63,"F8D6"],
+ [0x9C66,"F8D8"],
+ [0x9C67,"F8D7"],
+ [0x9C68,"F95A"],
+ [0x9C6D,"F95C"],
+ [0x9C6E,"F95B"],
+ [0x9C71,"F979"],
+ [0x9C72,"9E50"],
+ [0x9C73,"F978"],
+ [0x9C74,"F977"],
+ [0x9C75,"F97A"],
+ [0x9C77,"C673"],
+ [0x9C78,"C674"],
+ [0x9C79,"F9CA"],
+ [0x9C7A,"F9CE"],
+ [0x9C7B,"96AF"],
+ [0x9C7C,"8BF4"],
+ [0x9CE5,"B3BE"],
+ [0x9CE6,"DCAF"],
+ [0x9CE7,"E0ED"],
+ [0x9CE9,"B9A7"],
+ [0x9CEA,"E0EB"],
+ [0x9CED,"E0EC"],
+ [0x9CF1,"E4E2"],
+ [0x9CF2,"E4E3"],
+ [0x9CF3,"BBF1"],
+ [0x9CF4,"BBEF"],
+ [0x9CF5,"E4E4"],
+ [0x9CF6,"BBF0"],
+ [0x9CF7,"E8E8"],
+ [0x9CF9,"E8EB"],
+ [0x9CFA,"E8E5"],
+ [0x9CFB,"E8EC"],
+ [0x9CFC,"E8E4"],
+ [0x9CFD,"E8E6"],
+ [0x9CFF,"E8E7"],
+ [0x9D00,"E8EA"],
+ [0x9D02,"9FA4"],
+ [0x9D03,"BEA1"],
+ [0x9D04,"E8EF"],
+ [0x9D05,"E8EE"],
+ [0x9D06,"BE7D"],
+ [0x9D07,"E8E9"],
+ [0x9D08,"E8ED"],
+ [0x9D09,"BE7E"],
+ [0x9D0C,"96BD"],
+ [0x9D10,"ECAC"],
+ [0x9D12,"C06F"],
+ [0x9D14,"ECA7"],
+ [0x9D15,"C06B"],
+ [0x9D16,"96F4"],
+ [0x9D17,"ECA4"],
+ [0x9D18,"ECAA"],
+ [0x9D19,"ECAD"],
+ [0x9D1B,"C070"],
+ [0x9D1D,"ECA9"],
+ [0x9D1E,"ECA6"],
+ [0x9D1F,"ECAE"],
+ [0x9D20,"ECA5"],
+ [0x9D21,"96B8"],
+ [0x9D22,"ECAB"],
+ [0x9D23,"C06C"],
+ [0x9D25,"ECA3"],
+ [0x9D26,"C06D"],
+ [0x9D28,"C06E"],
+ [0x9D29,"ECA8"],
+ [0x9D2D,"EFA9"],
+ [0x9D2E,"EF7A"],
+ [0x9D2F,"EF7B"],
+ [0x9D30,"EF7E"],
+ [0x9D31,"EF7C"],
+ [0x9D33,"EF76"],
+ [0x9D34,"FAA1"],
+ [0x9D36,"EF79"],
+ [0x9D37,"EFA5"],
+ [0x9D38,"EF7D"],
+ [0x9D39,"91A7"],
+ [0x9D3B,"C245"],
+ [0x9D3D,"EFA7"],
+ [0x9D3E,"EFA4"],
+ [0x9D3F,"C246"],
+ [0x9D40,"EFA6"],
+ [0x9D41,"EF77"],
+ [0x9D42,"EFA2"],
+ [0x9D43,"EFA3"],
+ [0x9D44,"A05E"],
+ [0x9D45,"EFA1"],
+ [0x9D49,"9A7D"],
+ [0x9D4A,"F1D2"],
+ [0x9D4B,"F1D4"],
+ [0x9D4C,"F1D7"],
+ [0x9D4E,"8948"],
+ [0x9D4F,"F1D1"],
+ [0x9D50,"9EB1"],
+ [0x9D51,"C359"],
+ [0x9D52,"F1D9"],
+ [0x9D53,"F1D0"],
+ [0x9D54,"F1DA"],
+ [0x9D56,"F1D6"],
+ [0x9D57,"F1D8"],
+ [0x9D58,"F1DC"],
+ [0x9D59,"F1D5"],
+ [0x9D5A,"F1DD"],
+ [0x9D5B,"F1D3"],
+ [0x9D5C,"F1CF"],
+ [0x9D5D,"C35A"],
+ [0x9D5E,"9DDB"],
+ [0x9D5F,"F1DB"],
+ [0x9D60,"C35B"],
+ [0x9D61,"C44D"],
+ [0x9D67,"EF78"],
+ [0x9D68,"F3F1"],
+ [0x9D69,"F3E8"],
+ [0x9D6A,"C44F"],
+ [0x9D6B,"F3E4"],
+ [0x9D6C,"C450"],
+ [0x9D6D,"95BF"],
+ [0x9D6E,"8A73"],
+ [0x9D6F,"F3ED"],
+ [0x9D70,"F3E7"],
+ [0x9D71,"F3DD"],
+ [0x9D72,"C44E"],
+ [0x9D73,"F3EA"],
+ [0x9D74,"F3E5"],
+ [0x9D75,"F3E6"],
+ [0x9D77,"F3D8"],
+ [0x9D78,"F3DF"],
+ [0x9D79,"F3EE"],
+ [0x9D7B,"F3EB"],
+ [0x9D7C,"9EFE"],
+ [0x9D7D,"F3E3"],
+ [0x9D7E,"917A"],
+ [0x9D7F,"F3EF"],
+ [0x9D80,"F3DE"],
+ [0x9D81,"F3D9"],
+ [0x9D82,"F3EC"],
+ [0x9D83,"917B"],
+ [0x9D84,"F3DB"],
+ [0x9D85,"F3E9"],
+ [0x9D86,"F3E0"],
+ [0x9D87,"F3F0"],
+ [0x9D88,"F3DC"],
+ [0x9D89,"C44C"],
+ [0x9D8A,"F3DA"],
+ [0x9D8B,"F3E1"],
+ [0x9D8C,"F3E2"],
+ [0x9D90,"F57D"],
+ [0x9D92,"F57B"],
+ [0x9D93,"9AA3"],
+ [0x9D94,"F5A2"],
+ [0x9D96,"F5AE"],
+ [0x9D97,"F5A5"],
+ [0x9D98,"F57C"],
+ [0x9D99,"F578"],
+ [0x9D9A,"F5A7"],
+ [0x9D9B,"F57E"],
+ [0x9D9C,"F5A3"],
+ [0x9D9D,"F57A"],
+ [0x9D9E,"F5AA"],
+ [0x9D9F,"F577"],
+ [0x9DA0,"F5A1"],
+ [0x9DA1,"F5A6"],
+ [0x9DA2,"F5A8"],
+ [0x9DA3,"F5AB"],
+ [0x9DA4,"F579"],
+ [0x9DA5,"96C2"],
+ [0x9DA6,"F5AF"],
+ [0x9DA7,"F5B0"],
+ [0x9DA8,"F5A9"],
+ [0x9DA9,"F5AD"],
+ [0x9DAA,"F5A4"],
+ [0x9DAB,"9F77"],
+ [0x9DAC,"F6C1"],
+ [0x9DAD,"F6C4"],
+ [0x9DAF,"C561"],
+ [0x9DB1,"F6C3"],
+ [0x9DB2,"F6C8"],
+ [0x9DB3,"F6C6"],
+ [0x9DB4,"C562"],
+ [0x9DB5,"F6BD"],
+ [0x9DB6,"F6B3"],
+ [0x9DB7,"F6B2"],
+ [0x9DB8,"C564"],
+ [0x9DB9,"F6BF"],
+ [0x9DBA,"F6C0"],
+ [0x9DBB,"F6BC"],
+ [0x9DBC,"F6B4"],
+ [0x9DBD,"9AA4"],
+ [0x9DBE,"F6B9"],
+ [0x9DBF,"F5AC"],
+ [0x9DC0,"9AA5"],
+ [0x9DC1,"F6B5"],
+ [0x9DC2,"C563"],
+ [0x9DC3,"F6BB"],
+ [0x9DC4,"91A1"],
+ [0x9DC5,"F6BA"],
+ [0x9DC7,"F6B6"],
+ [0x9DC8,"F6C2"],
+ [0x9DC9,"89B8"],
+ [0x9DCA,"F6B7"],
+ [0x9DCB,"F7BB"],
+ [0x9DCC,"F6C5"],
+ [0x9DCD,"F6C7"],
+ [0x9DCE,"F6BE"],
+ [0x9DCF,"F6B8"],
+ [0x9DD0,"F7BC"],
+ [0x9DD1,"F7BE"],
+ [0x9DD2,"F7B8"],
+ [0x9DD3,"C5C2"],
+ [0x9DD4,"9173"],
+ [0x9DD5,"F7C5"],
+ [0x9DD6,"F7C3"],
+ [0x9DD7,"C5C3"],
+ [0x9DD8,"F7C2"],
+ [0x9DD9,"F7C1"],
+ [0x9DDA,"F7BA"],
+ [0x9DDB,"F7B7"],
+ [0x9DDC,"F7BD"],
+ [0x9DDD,"F7C6"],
+ [0x9DDE,"F7B9"],
+ [0x9DDF,"F7BF"],
+ [0x9DE1,"F869"],
+ [0x9DE2,"F86E"],
+ [0x9DE3,"F864"],
+ [0x9DE4,"F867"],
+ [0x9DE5,"C5EE"],
+ [0x9DE6,"F86B"],
+ [0x9DE8,"F872"],
+ [0x9DE9,"F7C0"],
+ [0x9DEB,"F865"],
+ [0x9DEC,"F86F"],
+ [0x9DED,"F873"],
+ [0x9DEE,"F86A"],
+ [0x9DEF,"F863"],
+ [0x9DF0,"F86D"],
+ [0x9DF2,"F86C"],
+ [0x9DF3,"F871"],
+ [0x9DF4,"F870"],
+ [0x9DF5,"F7C4"],
+ [0x9DF6,"F868"],
+ [0x9DF7,"F862"],
+ [0x9DF8,"F866"],
+ [0x9DF9,"C64E"],
+ [0x9DFA,"C64F"],
+ [0x9DFB,"F861"],
+ [0x9DFC,"9AA6"],
+ [0x9DFD,"F8E6"],
+ [0x9DFE,"F8DD"],
+ [0x9DFF,"F8E5"],
+ [0x9E00,"F8E2"],
+ [0x9E01,"F8E3"],
+ [0x9E02,"F8DC"],
+ [0x9E03,"F8DF"],
+ [0x9E04,"F8E7"],
+ [0x9E05,"F8E1"],
+ [0x9E06,"F8E0"],
+ [0x9E07,"F8DE"],
+ [0x9E09,"F8E4"],
+ [0x9E0A,"89BD"],
+ [0x9E0B,"F95D"],
+ [0x9E0C,"89B9"],
+ [0x9E0D,"F95E"],
+ [0x9E0E,"917D"],
+ [0x9E0F,"F960"],
+ [0x9E10,"F95F"],
+ [0x9E11,"F962"],
+ [0x9E12,"F961"],
+ [0x9E13,"F97C"],
+ [0x9E14,"F97B"],
+ [0x9E15,"F9B7"],
+ [0x9E17,"F9B8"],
+ [0x9E18,"96BB"],
+ [0x9E19,"F9C5"],
+ [0x9E1A,"C678"],
+ [0x9E1B,"C67C"],
+ [0x9E1C,"9FF2"],
+ [0x9E1D,"F9CF"],
+ [0x9E1E,"C67D"],
+ [0x9E1F,"8BF5"],
+ [0x9E75,"B3BF"],
+ [0x9E79,"C4D0"],
+ [0x9E7A,"F6C9"],
+ [0x9E7B,"9AA9"],
+ [0x9E7C,"C650"],
+ [0x9E7D,"C651"],
+ [0x9E7F,"B3C0"],
+ [0x9E80,"E0EE"],
+ [0x9E81,"9F54"],
+ [0x9E82,"B9A8"],
+ [0x9E83,"E8F0"],
+ [0x9E84,"9FE3"],
+ [0x9E85,"9EED"],
+ [0x9E86,"ECB0"],
+ [0x9E87,"ECB1"],
+ [0x9E88,"ECAF"],
+ [0x9E89,"EFAB"],
+ [0x9E8A,"EFAA"],
+ [0x9E8B,"C247"],
+ [0x9E8C,"F1DF"],
+ [0x9E8D,"EFAC"],
+ [0x9E8E,"F1DE"],
+ [0x9E90,"91AA"],
+ [0x9E91,"F3F3"],
+ [0x9E92,"C451"],
+ [0x9E93,"C453"],
+ [0x9E94,"F3F2"],
+ [0x9E95,"91AB"],
+ [0x9E96,"A070"],
+ [0x9E97,"C452"],
+ [0x9E98,"9F6D"],
+ [0x9E99,"F5B1"],
+ [0x9E9A,"F5B3"],
+ [0x9E9B,"F5B2"],
+ [0x9E9C,"F6CA"],
+ [0x9E9D,"C565"],
+ [0x9E9E,"91AC"],
+ [0x9E9F,"C5EF"],
+ [0x9EA0,"F8E8"],
+ [0x9EA1,"F963"],
+ [0x9EA2,"91AD"],
+ [0x9EA4,"F9D2"],
+ [0x9EA5,"B3C1"],
+ [0x9EA6,"A0FD"],
+ [0x9EA7,"E4E5"],
+ [0x9EA8,"9FE2"],
+ [0x9EA9,"BEA2"],
+ [0x9EAA,"91AF"],
+ [0x9EAB,"9E41"],
+ [0x9EAC,"9AAA"],
+ [0x9EAD,"ECB3"],
+ [0x9EAE,"ECB2"],
+ [0x9EAF,"91B0"],
+ [0x9EB0,"EFAD"],
+ [0x9EB1,"9AAB"],
+ [0x9EB4,"C454"],
+ [0x9EB5,"C4D1"],
+ [0x9EB6,"F7C7"],
+ [0x9EB7,"F9CB"],
+ [0x9EBB,"B3C2"],
+ [0x9EBC,"BBF2"],
+ [0x9EBD,"9AAC"],
+ [0x9EBE,"BEA3"],
+ [0x9EBF,"9A4A"],
+ [0x9EC0,"F3F4"],
+ [0x9EC1,"91B2"],
+ [0x9EC2,"F874"],
+ [0x9EC3,"B6C0"],
+ [0x9EC4,"8BF6"],
+ [0x9EC6,"9AAD"],
+ [0x9EC7,"89B6"],
+ [0x9EC8,"EFAE"],
+ [0x9ECC,"C664"],
+ [0x9ECD,"B6C1"],
+ [0x9ECE,"BEA4"],
+ [0x9ECF,"C248"],
+ [0x9ED0,"F875"],
+ [0x9ED1,"B6C2"],
+ [0x9ED3,"E8F1"],
+ [0x9ED4,"C072"],
+ [0x9ED5,"ECB4"],
+ [0x9ED6,"ECB5"],
+ [0x9ED8,"C071"],
+ [0x9EDA,"EFAF"],
+ [0x9EDB,"C24C"],
+ [0x9EDC,"C24A"],
+ [0x9EDD,"C24B"],
+ [0x9EDE,"C249"],
+ [0x9EDF,"F1E0"],
+ [0x9EE0,"C35C"],
+ [0x9EE2,"9AAF"],
+ [0x9EE4,"F5B5"],
+ [0x9EE5,"F5B4"],
+ [0x9EE6,"F5B7"],
+ [0x9EE7,"F5B6"],
+ [0x9EE8,"C4D2"],
+ [0x9EEB,"F6CB"],
+ [0x9EED,"F6CD"],
+ [0x9EEE,"F6CC"],
+ [0x9EEF,"C566"],
+ [0x9EF0,"F7C8"],
+ [0x9EF1,"9AB0"],
+ [0x9EF2,"F876"],
+ [0x9EF3,"F877"],
+ [0x9EF4,"C5F0"],
+ [0x9EF5,"F964"],
+ [0x9EF6,"F97D"],
+ [0x9EF7,"C675"],
+ [0x9EF8,"9AB1"],
+ [0x9EF9,"DCB0"],
+ [0x9EFA,"ECB6"],
+ [0x9EFB,"EFB0"],
+ [0x9EFC,"F3F5"],
+ [0x9EFD,"E0EF"],
+ [0x9EFE,"9AA1"],
+ [0x9EFF,"EFB1"],
+ [0x9F00,"F1E2"],
+ [0x9F01,"F1E1"],
+ [0x9F02,"91B9"],
+ [0x9F06,"F878"],
+ [0x9F07,"C652"],
+ [0x9F08,"91BA"],
+ [0x9F09,"F965"],
+ [0x9F0A,"F97E"],
+ [0x9F0E,"B9A9"],
+ [0x9F0F,"E8F2"],
+ [0x9F10,"E8F3"],
+ [0x9F12,"ECB7"],
+ [0x9F13,"B9AA"],
+ [0x9F15,"C35D"],
+ [0x9F16,"F1E3"],
+ [0x9F17,"91BE"],
+ [0x9F18,"F6CF"],
+ [0x9F19,"C567"],
+ [0x9F1A,"F6D0"],
+ [0x9F1B,"F6CE"],
+ [0x9F1C,"F879"],
+ [0x9F1E,"F8E9"],
+ [0x9F20,"B9AB"],
+ [0x9F22,"EFB4"],
+ [0x9F23,"EFB3"],
+ [0x9F24,"EFB2"],
+ [0x9F25,"F1E4"],
+ [0x9F26,"A041"],
+ [0x9F27,"8BB7"],
+ [0x9F28,"F1E8"],
+ [0x9F29,"F1E7"],
+ [0x9F2A,"F1E6"],
+ [0x9F2B,"F1E5"],
+ [0x9F2C,"C35E"],
+ [0x9F2D,"F3F6"],
+ [0x9F2E,"F5B9"],
+ [0x9F2F,"C4D3"],
+ [0x9F30,"F5B8"],
+ [0x9F31,"F6D1"],
+ [0x9F32,"F7CB"],
+ [0x9F33,"F7CA"],
+ [0x9F34,"C5C4"],
+ [0x9F35,"F7C9"],
+ [0x9F36,"F87C"],
+ [0x9F37,"F87B"],
+ [0x9F38,"F87A"],
+ [0x9F39,"91C0"],
+ [0x9F3B,"BBF3"],
+ [0x9F3D,"ECB8"],
+ [0x9F3E,"C24D"],
+ [0x9F40,"F3F7"],
+ [0x9F41,"F3F8"],
+ [0x9F42,"F7CC"],
+ [0x9F43,"F87D"],
+ [0x9F44,"9AB3"],
+ [0x9F45,"91C3"],
+ [0x9F46,"F8EA"],
+ [0x9F47,"F966"],
+ [0x9F48,"F9B9"],
+ [0x9F49,"F9D4"],
+ [0x9F4A,"BBF4"],
+ [0x9F4B,"C24E"],
+ [0x9F4C,"F1E9"],
+ [0x9F4D,"F3F9"],
+ [0x9F4E,"F6D2"],
+ [0x9F4F,"F87E"],
+ [0x9F50,"A0FC"],
+ [0x9F52,"BEA6"],
+ [0x9F53,"9FEE"],
+ [0x9F54,"EFB5"],
+ [0x9F55,"F1EA"],
+ [0x9F56,"F3FA"],
+ [0x9F57,"F3FB"],
+ [0x9F58,"F3FC"],
+ [0x9F59,"F5BE"],
+ [0x9F5A,"9F69"],
+ [0x9F5B,"F5BA"],
+ [0x9F5C,"C568"],
+ [0x9F5D,"F5BD"],
+ [0x9F5E,"F5BC"],
+ [0x9F5F,"C4D4"],
+ [0x9F60,"F5BB"],
+ [0x9F61,"C4D6"],
+ [0x9F62,"91C8"],
+ [0x9F63,"C4D5"],
+ [0x9F64,"F6D4"],
+ [0x9F65,"F6D3"],
+ [0x9F66,"C569"],
+ [0x9F67,"C56A"],
+ [0x9F69,"91C9"],
+ [0x9F6A,"C5C6"],
+ [0x9F6B,"F7CD"],
+ [0x9F6C,"C5C5"],
+ [0x9F6E,"F8A3"],
+ [0x9F6F,"F8A4"],
+ [0x9F70,"F8A2"],
+ [0x9F71,"F8A1"],
+ [0x9F72,"C654"],
+ [0x9F74,"F8EB"],
+ [0x9F75,"F8EC"],
+ [0x9F76,"F8ED"],
+ [0x9F77,"C653"],
+ [0x9F78,"F967"],
+ [0x9F79,"F96A"],
+ [0x9F7A,"F969"],
+ [0x9F7B,"F968"],
+ [0x9F7E,"F9D3"],
+ [0x9F7F,"8DE6"],
+ [0x9F8D,"C073"],
+ [0x9F8E,"91CB"],
+ [0x9F90,"C365"],
+ [0x9F91,"F5BF"],
+ [0x9F92,"F6D5"],
+ [0x9F94,"C5C7"],
+ [0x9F95,"F7CE"],
+ [0x9F96,"87AC"],
+ [0x9F97,"87A4"],
+ [0x9F98,"F9D5"],
+ [0x9F99,"89C8"],
+ [0x9F9C,"C074"],
+ [0x9F9F,"8DAA"],
+ [0x9FA0,"EFB6"],
+ [0x9FA2,"F7CF"],
+ [0x9FA4,"F9A1"],
+ [0x9FA5,"9FDD"],
+ [0x9FA6,"8C43"],
+ [0x9FA7,"8C6D"],
+ [0x9FA8,"8C74"],
+ [0x9FA9,"8CB7"],
+ [0x9FAA,"8CB9"],
+ [0x9FAB,"8CBB"],
+ [0x9FAC,"8CC0"],
+ [0x9FAD,"8CD7"],
+ [0x9FAE,"8CD8"],
+ [0x9FAF,"8CDA"],
+ [0x9FB0,"C8A1"],
+ [0x9FB1,"C8A3"],
+ [0x9FB2,"8CED"],
+ [0x9FB3,"8D48"],
+ [0x9FC7,"87C2"],
+ [0x9FC8,"87D2"],
+ [0x9FC9,"87D6"],
+ [0x9FCA,"87DA"],
+ [0x9FCB,"87DF"],
+ [0xF907,"8BF8"],
+ [0xFA0C,"C94A"],
+ [0xFA0D,"DDFC"],
+ [0xFE30,"A14A"],
+ [0xFE31,"A157"],
+ [0xFE33,"A159"],
+ [0xFE34,"A15B"],
+ [0xFE35,"A15F"],
+ [0xFE36,"A160"],
+ [0xFE37,"A163"],
+ [0xFE38,"A164"],
+ [0xFE39,"A167"],
+ [0xFE3A,"A168"],
+ [0xFE3B,"A16B"],
+ [0xFE3C,"A16C"],
+ [0xFE3D,"A16F"],
+ [0xFE3E,"A170"],
+ [0xFE3F,"A173"],
+ [0xFE40,"A174"],
+ [0xFE41,"A177"],
+ [0xFE42,"A178"],
+ [0xFE43,"A17B"],
+ [0xFE44,"A17C"],
+ [0xFE49,"A1C6"],
+ [0xFE4A,"A1C7"],
+ [0xFE4B,"A1CA"],
+ [0xFE4C,"A1CB"],
+ [0xFE4D,"A1C8"],
+ [0xFE4E,"A1C9"],
+ [0xFE4F,"A15C"],
+ [0xFE50,"A14D"],
+ [0xFE51,"A14E"],
+ [0xFE52,"A14F"],
+ [0xFE54,"A151"],
+ [0xFE55,"A152"],
+ [0xFE56,"A153"],
+ [0xFE57,"A154"],
+ [0xFE59,"A17D"],
+ [0xFE5A,"A17E"],
+ [0xFE5B,"A1A1"],
+ [0xFE5C,"A1A2"],
+ [0xFE5D,"A1A3"],
+ [0xFE5E,"A1A4"],
+ [0xFE5F,"A1CC"],
+ [0xFE60,"A1CD"],
+ [0xFE61,"A1CE"],
+ [0xFE62,"A1DE"],
+ [0xFE63,"A1DF"],
+ [0xFE64,"A1E0"],
+ [0xFE65,"A1E1"],
+ [0xFE66,"A1E2"],
+ [0xFE68,"A242"],
+ [0xFE69,"A24C"],
+ [0xFE6A,"A24D"],
+ [0xFE6B,"A24E"],
+ [0xFF01,"A149"],
+ [0xFF02,"C8D0"],
+ [0xFF03,"A1AD"],
+ [0xFF04,"A243"],
+ [0xFF05,"A248"],
+ [0xFF06,"A1AE"],
+ [0xFF07,"C8CF"],
+ [0xFF08,"A15D"],
+ [0xFF09,"A15E"],
+ [0xFF0A,"A1AF"],
+ [0xFF0B,"A1CF"],
+ [0xFF0C,"A141"],
+ [0xFF0D,"A1D0"],
+ [0xFF0E,"A144"],
+ [0xFF0F,"A1FE"],
+ [0xFF10,"A2AF"],
+ [0xFF11,"A2B0"],
+ [0xFF12,"A2B1"],
+ [0xFF13,"A2B2"],
+ [0xFF14,"A2B3"],
+ [0xFF15,"A2B4"],
+ [0xFF16,"A2B5"],
+ [0xFF17,"A2B6"],
+ [0xFF18,"A2B7"],
+ [0xFF19,"A2B8"],
+ [0xFF1A,"A147"],
+ [0xFF1B,"A146"],
+ [0xFF1C,"A1D5"],
+ [0xFF1D,"A1D7"],
+ [0xFF1E,"A1D6"],
+ [0xFF1F,"A148"],
+ [0xFF20,"A249"],
+ [0xFF21,"A2CF"],
+ [0xFF22,"A2D0"],
+ [0xFF23,"A2D1"],
+ [0xFF24,"A2D2"],
+ [0xFF25,"A2D3"],
+ [0xFF26,"A2D4"],
+ [0xFF27,"A2D5"],
+ [0xFF28,"A2D6"],
+ [0xFF29,"A2D7"],
+ [0xFF2A,"A2D8"],
+ [0xFF2B,"A2D9"],
+ [0xFF2C,"A2DA"],
+ [0xFF2D,"A2DB"],
+ [0xFF2E,"A2DC"],
+ [0xFF2F,"A2DD"],
+ [0xFF30,"A2DE"],
+ [0xFF31,"A2DF"],
+ [0xFF32,"A2E0"],
+ [0xFF33,"A2E1"],
+ [0xFF34,"A2E2"],
+ [0xFF35,"A2E3"],
+ [0xFF36,"A2E4"],
+ [0xFF37,"A2E5"],
+ [0xFF38,"A2E6"],
+ [0xFF39,"A2E7"],
+ [0xFF3A,"A2E8"],
+ [0xFF3B,"C6E4"],
+ [0xFF3C,"A240"],
+ [0xFF3D,"C6E5"],
+ [0xFF3F,"A1C4"],
+ [0xFF41,"A2E9"],
+ [0xFF42,"A2EA"],
+ [0xFF43,"A2EB"],
+ [0xFF44,"A2EC"],
+ [0xFF45,"A2ED"],
+ [0xFF46,"A2EE"],
+ [0xFF47,"A2EF"],
+ [0xFF48,"A2F0"],
+ [0xFF49,"A2F1"],
+ [0xFF4A,"A2F2"],
+ [0xFF4B,"A2F3"],
+ [0xFF4C,"A2F4"],
+ [0xFF4D,"A2F5"],
+ [0xFF4E,"A2F6"],
+ [0xFF4F,"A2F7"],
+ [0xFF50,"A2F8"],
+ [0xFF51,"A2F9"],
+ [0xFF52,"A2FA"],
+ [0xFF53,"A2FB"],
+ [0xFF54,"A2FC"],
+ [0xFF55,"A2FD"],
+ [0xFF56,"A2FE"],
+ [0xFF57,"A340"],
+ [0xFF58,"A341"],
+ [0xFF59,"A342"],
+ [0xFF5A,"A343"],
+ [0xFF5B,"A161"],
+ [0xFF5C,"A155"],
+ [0xFF5D,"A162"],
+ [0xFF5E,"A1E3"],
+ [0xFFE0,"A246"],
+ [0xFFE1,"A247"],
+ [0xFFE2,"C8CD"],
+ [0xFFE3,"A1C3"],
+ [0xFFE4,"C8CE"],
+ [0xFFE5,"A244"],
+ [0xFFED,"F9FE"],
+ [0x20021,"9C71"],
+ [0x2003E,"9375"],
+ [0x20046,"9376"],
+ [0x2004E,"9548"],
+ [0x20068,"8EC6"],
+ [0x20086,"8BC5"],
+ [0x20087,"8BFA"],
+ [0x2008A,"C87C"],
+ [0x20094,"9AB4"],
+ [0x200CA,"884E"],
+ [0x200CB,"884B"],
+ [0x200CC,"C87A"],
+ [0x200CD,"8848"],
+ [0x200D1,"8847"],
+ [0x200EE,"A0F6"],
+ [0x2010C,"8845"],
+ [0x2010E,"8853"],
+ [0x20118,"FCAD"],
+ [0x201A4,"8CF5"],
+ [0x201A9,"8AAD"],
+ [0x201AB,"9272"],
+ [0x201C1,"FC47"],
+ [0x201D4,"94DF"],
+ [0x201F2,"9FD1"],
+ [0x20204,"FBCB"],
+ [0x2020C,"927D"],
+ [0x20214,"98A4"],
+ [0x20239,"8CF9"],
+ [0x2025B,"94E7"],
+ [0x20274,"90CB"],
+ [0x20275,"927B"],
+ [0x20299,"94D8"],
+ [0x2029E,"FC5F"],
+ [0x202A0,"FA54"],
+ [0x202B7,"9AB5"],
+ [0x202BF,"96DA"],
+ [0x202C0,"9279"],
+ [0x202E5,"FA74"],
+ [0x2030A,"9275"],
+ [0x20325,"8DFB"],
+ [0x20341,"8A49"],
+ [0x20345,"92DF"],
+ [0x20346,"9B7C"],
+ [0x20347,"FA63"],
+ [0x2037E,"FA60"],
+ [0x2037F,"926D"],
+ [0x20380,"FA62"],
+ [0x203A0,"9AB6"],
+ [0x203A7,"976B"],
+ [0x203B5,"FD6A"],
+ [0x203C9,"FD54"],
+ [0x203CB,"9273"],
+ [0x203F5,"97D8"],
+ [0x203FC,"9FBB"],
+ [0x20413,"9342"],
+ [0x20414,"9276"],
+ [0x2041F,"FA65"],
+ [0x20465,"926C"],
+ [0x20487,"FA6E"],
+ [0x2048E,"9EE0"],
+ [0x20491,"92C0"],
+ [0x20492,"92BF"],
+ [0x204A3,"92BE"],
+ [0x204D7,"9ABA"],
+ [0x204FC,"8AB3"],
+ [0x204FE,"9775"],
+ [0x20547,"FA40"],
+ [0x2058E,"FA76"],
+ [0x205A5,"FBD0"],
+ [0x205B3,"FA7B"],
+ [0x205C3,"FE6D"],
+ [0x205CA,"9BB3"],
+ [0x205D0,"89CC"],
+ [0x205D5,"9ABE"],
+ [0x205DF,"FA42"],
+ [0x205E0,"92BC"],
+ [0x205EB,"945C"],
+ [0x20611,"9BB5"],
+ [0x20615,"9ABF"],
+ [0x20619,"98A7"],
+ [0x2061A,"97A4"],
+ [0x20630,"90FD"],
+ [0x20656,"FC7B"],
+ [0x20676,"9AC0"],
+ [0x2070E,"92C3"],
+ [0x20731,"8AAA"],
+ [0x20779,"9BD0"],
+ [0x2082C,"9550"],
+ [0x20873,"92C6"],
+ [0x208D5,"98A6"],
+ [0x20916,"9546"],
+ [0x20923,"FD63"],
+ [0x20954,"FAC2"],
+ [0x20979,"9EC3"],
+ [0x209E7,"89B2"],
+ [0x20A11,"9C66"],
+ [0x20A50,"9053"],
+ [0x20A6F,"8C62"],
+ [0x20A8A,"87A8"],
+ [0x20AB4,"97C1"],
+ [0x20AC2,"9AC4"],
+ [0x20ACD,"9AC5"],
+ [0x20B0D,"8EEF"],
+ [0x20B8F,"FAE9"],
+ [0x20B9F,"8D40"],
+ [0x20BA8,"9262"],
+ [0x20BA9,"8AF7"],
+ [0x20BBF,"9AC6"],
+ [0x20BC6,"92E1"],
+ [0x20BCB,"9AC9"],
+ [0x20BE2,"FAC6"],
+ [0x20BEB,"97A5"],
+ [0x20BFB,"9ACB"],
+ [0x20BFF,"FA72"],
+ [0x20C0B,"8A5E"],
+ [0x20C0D,"94E0"],
+ [0x20C20,"92CC"],
+ [0x20C34,"8AE5"],
+ [0x20C3A,"FE5C"],
+ [0x20C3B,"9ACC"],
+ [0x20C41,"9DF9"],
+ [0x20C42,"8A43"],
+ [0x20C43,"8AA6"],
+ [0x20C53,"9ACD"],
+ [0x20C65,"9ACE"],
+ [0x20C77,"FAEE"],
+ [0x20C78,"9BCC"],
+ [0x20C7C,"9ACF"],
+ [0x20C8D,"9AD1"],
+ [0x20C96,"9DFA"],
+ [0x20C9C,"9D7C"],
+ [0x20CB5,"9AD3"],
+ [0x20CB8,"97A6"],
+ [0x20CCF,"995F"],
+ [0x20CD3,"FBF6"],
+ [0x20CD4,"9FC5"],
+ [0x20CD5,"8A59"],
+ [0x20CD6,"8B6B"],
+ [0x20CDD,"9AD4"],
+ [0x20CED,"9AD5"],
+ [0x20CFF,"97A2"],
+ [0x20D15,"8A44"],
+ [0x20D28,"9F4A"],
+ [0x20D31,"90A1"],
+ [0x20D32,"FDA4"],
+ [0x20D46,"8A64"],
+ [0x20D47,"8AF2"],
+ [0x20D48,"8AF8"],
+ [0x20D49,"9DD8"],
+ [0x20D4C,"94D6"],
+ [0x20D4D,"FAFE"],
+ [0x20D4E,"FBA7"],
+ [0x20D6F,"9AD6"],
+ [0x20D71,"9F4D"],
+ [0x20D74,"FAF6"],
+ [0x20D7C,"8A57"],
+ [0x20D7E,"8B43"],
+ [0x20D7F,"8B44"],
+ [0x20D96,"8AB6"],
+ [0x20D9C,"8AC0"],
+ [0x20DA7,"9E54"],
+ [0x20DB2,"9AD7"],
+ [0x20DC8,"9AD8"],
+ [0x20E04,"9ADC"],
+ [0x20E09,"8ACA"],
+ [0x20E0A,"9EA8"],
+ [0x20E0D,"9263"],
+ [0x20E0E,"9ADD"],
+ [0x20E0F,"8B65"],
+ [0x20E10,"8B6F"],
+ [0x20E11,"8B7E"],
+ [0x20E16,"8F43"],
+ [0x20E1D,"92D0"],
+ [0x20E4C,"8AF4"],
+ [0x20E6D,"9DBE"],
+ [0x20E73,"9AE1"],
+ [0x20E75,"FCDE"],
+ [0x20E76,"9DFD"],
+ [0x20E77,"8B66"],
+ [0x20E78,"8B70"],
+ [0x20E79,"8B75"],
+ [0x20E7A,"8AE4"],
+ [0x20E7B,"8BA4"],
+ [0x20E8C,"8AED"],
+ [0x20E96,"8A5D"],
+ [0x20E98,"8B48"],
+ [0x20E9D,"9DED"],
+ [0x20EA2,"9E40"],
+ [0x20EAA,"8AEF"],
+ [0x20EAB,"8AF6"],
+ [0x20EAC,"9E76"],
+ [0x20EB6,"9EE3"],
+ [0x20ED7,"9ADE"],
+ [0x20ED8,"8DFE"],
+ [0x20EDD,"FAFC"],
+ [0x20EF8,"9CB1"],
+ [0x20EF9,"9E77"],
+ [0x20EFA,"8B64"],
+ [0x20EFB,"8B67"],
+ [0x20F1D,"974B"],
+ [0x20F26,"9653"],
+ [0x20F2D,"9AE0"],
+ [0x20F2E,"8B4A"],
+ [0x20F30,"8AF1"],
+ [0x20F31,"8AD7"],
+ [0x20F3B,"A0AB"],
+ [0x20F4C,"8AB5"],
+ [0x20F64,"8A5F"],
+ [0x20F8D,"8AEE"],
+ [0x20F90,"9ADF"],
+ [0x20FAD,"8AFE"],
+ [0x20FB4,"8A58"],
+ [0x20FB5,"8BA3"],
+ [0x20FB6,"8BA7"],
+ [0x20FBC,"9AE3"],
+ [0x20FDF,"9261"],
+ [0x20FEA,"9DD7"],
+ [0x20FEB,"9E7D"],
+ [0x20FEC,"9EA7"],
+ [0x20FED,"9EAB"],
+ [0x21014,"9042"],
+ [0x2101D,"8B79"],
+ [0x2101E,"8B7A"],
+ [0x2104F,"9AE6"],
+ [0x2105C,"9AE5"],
+ [0x2106F,"8A7E"],
+ [0x21075,"9E44"],
+ [0x21076,"9AE7"],
+ [0x21077,"8A7C"],
+ [0x21078,"8B71"],
+ [0x2107B,"9AE9"],
+ [0x21088,"9AEA"],
+ [0x21096,"9AEB"],
+ [0x2109D,"8ABD"],
+ [0x210B4,"FB4E"],
+ [0x210BF,"9AED"],
+ [0x210C0,"8AF9"],
+ [0x210C1,"9E63"],
+ [0x210C7,"8B49"],
+ [0x210C8,"8ACE"],
+ [0x210C9,"8B6E"],
+ [0x210CF,"8AE8"],
+ [0x210D3,"9AEE"],
+ [0x210E4,"92CE"],
+ [0x210F4,"8A5A"],
+ [0x210F5,"8B7B"],
+ [0x210F6,"8B7C"],
+ [0x2112F,"9AEF"],
+ [0x2113B,"9AF0"],
+ [0x2113D,"8AFA"],
+ [0x21145,"8941"],
+ [0x21148,"8B72"],
+ [0x2114F,"8AF3"],
+ [0x21180,"8BA8"],
+ [0x21187,"9EAE"],
+ [0x211D9,"9E72"],
+ [0x2123C,"FB73"],
+ [0x2124F,"FB5F"],
+ [0x2127C,"90BA"],
+ [0x212A8,"91FE"],
+ [0x212A9,"9EF6"],
+ [0x212B0,"97ED"],
+ [0x212E3,"9AF3"],
+ [0x212FE,"A0EE"],
+ [0x21302,"967C"],
+ [0x21303,"9345"],
+ [0x21304,"986E"],
+ [0x21305,"FA56"],
+ [0x21336,"9AF5"],
+ [0x2133A,"FC4B"],
+ [0x21375,"9AF4"],
+ [0x21376,"FEDE"],
+ [0x2138E,"FCB7"],
+ [0x21398,"97F1"],
+ [0x2139C,"97C7"],
+ [0x213C5,"9CCB"],
+ [0x213C6,"9240"],
+ [0x213ED,"9CE8"],
+ [0x213FE,"91FD"],
+ [0x21413,"974E"],
+ [0x21416,"FB68"],
+ [0x21424,"976C"],
+ [0x2143F,"8CC2"],
+ [0x21452,"97E8"],
+ [0x21454,"FB6A"],
+ [0x21455,"8B74"],
+ [0x2148A,"8EE7"],
+ [0x21497,"FDC8"],
+ [0x214B6,"9241"],
+ [0x214E8,"96A1"],
+ [0x214FD,"8EF3"],
+ [0x21577,"9AF7"],
+ [0x21582,"8FA6"],
+ [0x21596,"FAD6"],
+ [0x2160A,"9CC7"],
+ [0x21613,"FAD7"],
+ [0x21619,"9AF8"],
+ [0x2163E,"FBA1"],
+ [0x21661,"8EC5"],
+ [0x21692,"FBA4"],
+ [0x216B8,"FBC2"],
+ [0x216BA,"9AC1"],
+ [0x216C0,"91FA"],
+ [0x216C1,"FEDB"],
+ [0x216C2,"97AB"],
+ [0x216D3,"9147"],
+ [0x216D5,"FBB1"],
+ [0x216DF,"8FEA"],
+ [0x216E6,"94D2"],
+ [0x216E7,"FE61"],
+ [0x216E8,"FACE"],
+ [0x216FA,"92ED"],
+ [0x216FB,"91F3"],
+ [0x216FC,"93C6"],
+ [0x216FE,"935A"],
+ [0x2170D,"FAFB"],
+ [0x21710,"92EF"],
+ [0x21726,"FAC8"],
+ [0x2173A,"9847"],
+ [0x2173B,"9366"],
+ [0x2173C,"9855"],
+ [0x21757,"96E6"],
+ [0x2176C,"9F43"],
+ [0x2176D,"9FAA"],
+ [0x2176E,"94DA"],
+ [0x2176F,"92EE"],
+ [0x21770,"FCAF"],
+ [0x21771,"FBFB"],
+ [0x21773,"8EF9"],
+ [0x21774,"91F6"],
+ [0x217AB,"9364"],
+ [0x217B0,"94F5"],
+ [0x217B1,"9CB6"],
+ [0x217B2,"FBAD"],
+ [0x217B3,"984E"],
+ [0x217B4,"8F44"],
+ [0x217B5,"96FD"],
+ [0x217C3,"9AF9"],
+ [0x217C7,"9AFA"],
+ [0x217D9,"9769"],
+ [0x217DA,"95D4"],
+ [0x217DB,"984B"],
+ [0x217DC,"FBAA"],
+ [0x217DF,"987C"],
+ [0x217EF,"91EA"],
+ [0x217F5,"9DAF"],
+ [0x217F6,"9DC5"],
+ [0x217F8,"91F1"],
+ [0x217F9,"8EB1"],
+ [0x217FA,"97A9"],
+ [0x217FB,"FBAC"],
+ [0x217FC,"FCB8"],
+ [0x21820,"9CB9"],
+ [0x21828,"FBB0"],
+ [0x21829,"FCD2"],
+ [0x2182A,"93CB"],
+ [0x2182D,"9AFD"],
+ [0x21839,"91F4"],
+ [0x2183A,"8BAC"],
+ [0x2183B,"A055"],
+ [0x21840,"9574"],
+ [0x21845,"95BE"],
+ [0x21852,"97AD"],
+ [0x2185E,"8EE9"],
+ [0x21861,"92F8"],
+ [0x21862,"97BE"],
+ [0x21863,"916C"],
+ [0x21864,"94AA"],
+ [0x21877,"FC63"],
+ [0x2187B,"9DC6"],
+ [0x21883,"97B5"],
+ [0x21884,"92B8"],
+ [0x21885,"91EF"],
+ [0x2189E,"FEA6"],
+ [0x2189F,"9760"],
+ [0x218A0,"9358"],
+ [0x218A1,"9576"],
+ [0x218A2,"8FAC"],
+ [0x218BE,"91EC"],
+ [0x218BF,"97B4"],
+ [0x218D1,"91F7"],
+ [0x218D6,"974A"],
+ [0x218D7,"FB49"],
+ [0x218D8,"9578"],
+ [0x218D9,"93BC"],
+ [0x218FA,"91D6"],
+ [0x21903,"9355"],
+ [0x21904,"9356"],
+ [0x21905,"9851"],
+ [0x21910,"8FF8"],
+ [0x21911,"FBC0"],
+ [0x21912,"93F2"],
+ [0x21915,"90D0"],
+ [0x2191C,"9C44"],
+ [0x21922,"9255"],
+ [0x21927,"9363"],
+ [0x2193B,"91A5"],
+ [0x21944,"A0ED"],
+ [0x21958,"FD6B"],
+ [0x2196A,"9AFE"],
+ [0x2197C,"9351"],
+ [0x21980,"8C57"],
+ [0x21983,"FA78"],
+ [0x21988,"FEA8"],
+ [0x21996,"9350"],
+ [0x219DB,"FA4C"],
+ [0x219F3,"92F7"],
+ [0x21A2D,"9B40"],
+ [0x21A34,"FBCE"],
+ [0x21A45,"9B41"],
+ [0x21A4B,"FEAD"],
+ [0x21A63,"8761"],
+ [0x21B44,"FBD5"],
+ [0x21BC1,"8BC2"],
+ [0x21BC2,"9A7C"],
+ [0x21C2A,"9B42"],
+ [0x21C70,"9B43"],
+ [0x21CA2,"9E79"],
+ [0x21CA5,"FBD9"],
+ [0x21CAC,"9B44"],
+ [0x21D46,"A0A7"],
+ [0x21D53,"877B"],
+ [0x21D5E,"876E"],
+ [0x21D90,"9BF3"],
+ [0x21DB6,"8C79"],
+ [0x21DBA,"935E"],
+ [0x21DCA,"89CB"],
+ [0x21DD1,"9F53"],
+ [0x21DEB,"93D7"],
+ [0x21DF9,"FBE1"],
+ [0x21E1C,"FED0"],
+ [0x21E23,"8CF1"],
+ [0x21E37,"FBE2"],
+ [0x21E3D,"FCE3"],
+ [0x21E89,"9074"],
+ [0x21EA4,"FBE6"],
+ [0x21EA8,"9BB7"],
+ [0x21EC8,"9B45"],
+ [0x21ED5,"9B47"],
+ [0x21F0F,"9F50"],
+ [0x21F15,"9B48"],
+ [0x21F6A,"FC5B"],
+ [0x21F9E,"98A9"],
+ [0x21FA1,"9CFD"],
+ [0x21FE8,"884C"],
+ [0x22045,"9B4B"],
+ [0x22049,"FBEC"],
+ [0x2207E,"8C69"],
+ [0x2209A,"9BA8"],
+ [0x220C7,"8AD5"],
+ [0x220FC,"FA73"],
+ [0x2212A,"FD59"],
+ [0x2215B,"91A2"],
+ [0x22173,"FBED"],
+ [0x2217A,"9CA9"],
+ [0x221A1,"8AA8"],
+ [0x221C1,"8D42"],
+ [0x221C3,"9BC3"],
+ [0x22208,"8AE1"],
+ [0x2227C,"9B4E"],
+ [0x22321,"95D0"],
+ [0x22325,"905F"],
+ [0x223BD,"97EE"],
+ [0x223D0,"FC4E"],
+ [0x223D7,"9B4F"],
+ [0x223FA,"9B50"],
+ [0x22465,"9EC6"],
+ [0x22471,"FC50"],
+ [0x2248B,"FD73"],
+ [0x22491,"FDA7"],
+ [0x224B0,"9DA2"],
+ [0x224BC,"87D1"],
+ [0x224C1,"87D3"],
+ [0x224C9,"87D4"],
+ [0x224CC,"87D5"],
+ [0x224ED,"FA58"],
+ [0x22513,"FA5E"],
+ [0x2251B,"A059"],
+ [0x22530,"FA75"],
+ [0x22554,"FBBE"],
+ [0x2258D,"9CA2"],
+ [0x225AF,"9370"],
+ [0x225BE,"9371"],
+ [0x2261B,"9377"],
+ [0x2261C,"FEEF"],
+ [0x2262B,"936D"],
+ [0x22668,"FC5D"],
+ [0x2267A,"90B8"],
+ [0x22696,"8AFC"],
+ [0x22698,"FB41"],
+ [0x226F4,"9E6B"],
+ [0x226F5,"94E3"],
+ [0x226F6,"8EE2"],
+ [0x22712,"8C7D"],
+ [0x22714,"8ED7"],
+ [0x2271B,"9C4D"],
+ [0x2271F,"96A3"],
+ [0x2272A,"9B51"],
+ [0x22775,"8AC3"],
+ [0x22781,"96AA"],
+ [0x22796,"8CE2"],
+ [0x227B4,"FC68"],
+ [0x227B5,"8B6D"],
+ [0x227CD,"FD67"],
+ [0x22803,"8AE9"],
+ [0x2285F,"FCA1"],
+ [0x22860,"936C"],
+ [0x22871,"9B52"],
+ [0x228AD,"FE70"],
+ [0x228C1,"FCA8"],
+ [0x228F7,"FCE9"],
+ [0x22926,"9CB4"],
+ [0x22939,"8AEA"],
+ [0x2294F,"9B53"],
+ [0x22967,"9B55"],
+ [0x2296B,"96AB"],
+ [0x22980,"FCA7"],
+ [0x22993,"9B56"],
+ [0x22A66,"8ABC"],
+ [0x22ACF,"8ACB"],
+ [0x22AD5,"9B57"],
+ [0x22AE6,"89CD"],
+ [0x22AE8,"9B59"],
+ [0x22B0E,"9B5B"],
+ [0x22B22,"93A5"],
+ [0x22B3F,"9B5D"],
+ [0x22B43,"9E4F"],
+ [0x22B6A,"93A3"],
+ [0x22BCA,"8A7B"],
+ [0x22BCE,"8B42"],
+ [0x22C26,"9750"],
+ [0x22C27,"8FB3"],
+ [0x22C38,"8A50"],
+ [0x22C4C,"9B60"],
+ [0x22C51,"8B45"],
+ [0x22C55,"8B46"],
+ [0x22C62,"9DFE"],
+ [0x22C88,"9B62"],
+ [0x22C9B,"937B"],
+ [0x22CA1,"93B1"],
+ [0x22CA9,"8A60"],
+ [0x22CB2,"8AD8"],
+ [0x22CB7,"9B63"],
+ [0x22CC2,"8A69"],
+ [0x22CC6,"8A47"],
+ [0x22CC9,"8ACC"],
+ [0x22D07,"937C"],
+ [0x22D08,"9B65"],
+ [0x22D12,"9B66"],
+ [0x22D44,"8A72"],
+ [0x22D4C,"8A7A"],
+ [0x22D67,"93AF"],
+ [0x22D8D,"8AB0"],
+ [0x22D95,"9B68"],
+ [0x22DA0,"9EA3"],
+ [0x22DA3,"FAEC"],
+ [0x22DA4,"8B77"],
+ [0x22DB7,"9B67"],
+ [0x22DEE,"8B59"],
+ [0x22E0D,"FCB1"],
+ [0x22E36,"FCBB"],
+ [0x22E42,"9B69"],
+ [0x22E78,"93A8"],
+ [0x22E8B,"8AE0"],
+ [0x22EB3,"9E51"],
+ [0x22EEF,"8F5F"],
+ [0x22F74,"9B6A"],
+ [0x22FCC,"9B6B"],
+ [0x22FE3,"97EC"],
+ [0x23033,"9B6C"],
+ [0x23044,"FE4E"],
+ [0x2304B,"FDC2"],
+ [0x23066,"9B6D"],
+ [0x2307D,"9167"],
+ [0x2307E,"FCCC"],
+ [0x2308E,"93B6"],
+ [0x230B7,"90E4"],
+ [0x230BC,"90E5"],
+ [0x230DA,"9EF2"],
+ [0x23103,"93CA"],
+ [0x2313D,"8BBC"],
+ [0x2317D,"8F46"],
+ [0x23182,"93CF"],
+ [0x231A4,"FCDB"],
+ [0x231A5,"FCDC"],
+ [0x231B3,"93C0"],
+ [0x231C8,"FCE6"],
+ [0x231C9,"96E7"],
+ [0x231EA,"87A7"],
+ [0x231F7,"FCD8"],
+ [0x231F8,"FCD9"],
+ [0x231F9,"FDA6"],
+ [0x2320F,"93CE"],
+ [0x23225,"95F1"],
+ [0x2322F,"9CE9"],
+ [0x23231,"FCE4"],
+ [0x23232,"94AF"],
+ [0x23233,"FA77"],
+ [0x23234,"93CC"],
+ [0x23256,"8CE1"],
+ [0x2325E,"87A9"],
+ [0x23262,"905A"],
+ [0x23281,"8C54"],
+ [0x23289,"93BF"],
+ [0x2328A,"FB51"],
+ [0x232AB,"93B9"],
+ [0x232AC,"FED7"],
+ [0x232AD,"93B7"],
+ [0x232D2,"93D9"],
+ [0x232E0,"93BB"],
+ [0x232E1,"93DA"],
+ [0x23300,"98A3"],
+ [0x2330A,"90D1"],
+ [0x2331F,"9B6E"],
+ [0x233B4,"FA70"],
+ [0x233CC,"9BEB"],
+ [0x233DE,"9B6F"],
+ [0x233E6,"FCFC"],
+ [0x233F4,"8B40"],
+ [0x233F5,"A07B"],
+ [0x233F9,"8CA1"],
+ [0x233FA,"97F7"],
+ [0x233FE,"93E2"],
+ [0x23400,"FCD6"],
+ [0x2343F,"9559"],
+ [0x23450,"93A6"],
+ [0x2346F,"FD40"],
+ [0x23472,"935F"],
+ [0x234E5,"97F2"],
+ [0x23519,"9C76"],
+ [0x23530,"8EF8"],
+ [0x23551,"8CEB"],
+ [0x2355A,"8F47"],
+ [0x23567,"9B74"],
+ [0x23595,"92B4"],
+ [0x23599,"91ED"],
+ [0x2359C,"96D2"],
+ [0x235BB,"87D8"],
+ [0x235CD,"FD46"],
+ [0x235CE,"8F4F"],
+ [0x235CF,"9549"],
+ [0x235F3,"9B75"],
+ [0x23600,"FA5C"],
+ [0x23617,"8751"],
+ [0x2361A,"9B79"],
+ [0x2363C,"FD4B"],
+ [0x23640,"96D3"],
+ [0x23659,"FD58"],
+ [0x2365F,"945F"],
+ [0x23677,"A0F5"],
+ [0x2368E,"87C7"],
+ [0x2369E,"877C"],
+ [0x236A6,"9243"],
+ [0x236AD,"97FA"],
+ [0x236BA,"9DD9"],
+ [0x236DF,"97F4"],
+ [0x236EE,"924D"],
+ [0x23703,"FD5B"],
+ [0x23716,"9B7A"],
+ [0x23720,"9ED5"],
+ [0x2372D,"FAAE"],
+ [0x2372F,"9CC9"],
+ [0x2373F,"9258"],
+ [0x23766,"8EC8"],
+ [0x23781,"94B4"],
+ [0x237A2,"93E1"],
+ [0x237BC,"93DF"],
+ [0x237C2,"FCF0"],
+ [0x237D5,"93EC"],
+ [0x237D6,"97F6"],
+ [0x237D7,"96CF"],
+ [0x2383A,"93DE"],
+ [0x239C2,"8ACF"],
+ [0x23AA7,"9BA2"],
+ [0x23ADB,"FD69"],
+ [0x23AEE,"9352"],
+ [0x23AFA,"98A2"],
+ [0x23B1A,"8CE7"],
+ [0x23B5A,"FD6E"],
+ [0x23C63,"8CA4"],
+ [0x23C99,"FA7C"],
+ [0x23C9A,"93FA"],
+ [0x23C9B,"907C"],
+ [0x23CB5,"8F67"],
+ [0x23CB7,"9DB7"],
+ [0x23CC7,"A0E9"],
+ [0x23CC8,"FA4E"],
+ [0x23CC9,"FDA1"],
+ [0x23CFC,"9E74"],
+ [0x23CFD,"9FBF"],
+ [0x23CFE,"9ECB"],
+ [0x23CFF,"9BB9"],
+ [0x23D40,"9DD4"],
+ [0x23D5B,"97B9"],
+ [0x23D7E,"8EF1"],
+ [0x23D8F,"957B"],
+ [0x23DB6,"9ED2"],
+ [0x23DB7,"9753"],
+ [0x23DB8,"96A4"],
+ [0x23DB9,"8FBE"],
+ [0x23DBA,"94D9"],
+ [0x23DBB,"9058"],
+ [0x23DBC,"FD79"],
+ [0x23DBD,"FD7B"],
+ [0x23DE3,"8EDA"],
+ [0x23DF8,"8EFA"],
+ [0x23E06,"8762"],
+ [0x23E11,"9BA5"],
+ [0x23E2C,"9ED9"],
+ [0x23E2D,"97D4"],
+ [0x23E2E,"90BB"],
+ [0x23E2F,"FDBC"],
+ [0x23E30,"FDC6"],
+ [0x23E31,"9248"],
+ [0x23E39,"92B5"],
+ [0x23E88,"9DC1"],
+ [0x23E89,"92B9"],
+ [0x23E8A,"92A6"],
+ [0x23E8B,"8F4B"],
+ [0x23EB9,"9BA6"],
+ [0x23EBF,"92B6"],
+ [0x23ED7,"8E40"],
+ [0x23EF7,"9ED8"],
+ [0x23EF8,"945E"],
+ [0x23EF9,"985F"],
+ [0x23EFA,"94CE"],
+ [0x23EFB,"924A"],
+ [0x23EFC,"FD70"],
+ [0x23F35,"9467"],
+ [0x23F41,"8DEC"],
+ [0x23F4A,"9BD8"],
+ [0x23F61,"8763"],
+ [0x23F7F,"9448"],
+ [0x23F80,"FAC1"],
+ [0x23F81,"9CF7"],
+ [0x23F82,"FDBE"],
+ [0x23F8F,"8FDA"],
+ [0x23FB4,"FDD9"],
+ [0x23FB7,"FC7E"],
+ [0x23FC0,"93F9"],
+ [0x23FC5,"FA43"],
+ [0x23FEB,"FAEB"],
+ [0x23FEC,"FAC3"],
+ [0x23FED,"97D3"],
+ [0x23FEE,"95F9"],
+ [0x23FEF,"9C48"],
+ [0x23FF0,"FDD8"],
+ [0x24011,"A0D8"],
+ [0x24039,"FDD7"],
+ [0x2403A,"FB4A"],
+ [0x2403B,"9BAF"],
+ [0x2403C,"944B"],
+ [0x2403D,"FDC9"],
+ [0x24057,"8EAC"],
+ [0x24085,"FDB2"],
+ [0x2408B,"925A"],
+ [0x2408C,"FCBD"],
+ [0x2408D,"92D9"],
+ [0x24091,"FDD5"],
+ [0x240C9,"92DD"],
+ [0x240E1,"9259"],
+ [0x240EC,"8CF0"],
+ [0x24104,"96BA"],
+ [0x2410F,"925B"],
+ [0x24119,"9BAB"],
+ [0x2413F,"FDDA"],
+ [0x24140,"FDDE"],
+ [0x24144,"FDD3"],
+ [0x2414E,"8C46"],
+ [0x24155,"FDD6"],
+ [0x24156,"FDDC"],
+ [0x24157,"FDDD"],
+ [0x2415C,"90FE"],
+ [0x2415F,"FEA1"],
+ [0x24161,"87A5"],
+ [0x24177,"8BAD"],
+ [0x2417A,"9CD8"],
+ [0x241A3,"9E6D"],
+ [0x241A4,"FD7C"],
+ [0x241A5,"FB61"],
+ [0x241AC,"96F8"],
+ [0x241B5,"96F0"],
+ [0x241CD,"FCF4"],
+ [0x241E2,"FE60"],
+ [0x241FC,"9852"],
+ [0x2421B,"964F"],
+ [0x2424B,"916E"],
+ [0x24256,"986D"],
+ [0x24259,"9864"],
+ [0x24276,"9453"],
+ [0x24277,"FDEC"],
+ [0x24278,"FB78"],
+ [0x24284,"95BA"],
+ [0x24293,"985D"],
+ [0x24295,"92F9"],
+ [0x242A5,"985A"],
+ [0x242BF,"8750"],
+ [0x242C1,"FDF6"],
+ [0x242C9,"93D0"],
+ [0x242CA,"9862"],
+ [0x242EE,"9BAD"],
+ [0x242FA,"974F"],
+ [0x2430D,"9BAE"],
+ [0x2431A,"9452"],
+ [0x24334,"9BB0"],
+ [0x24348,"91D2"],
+ [0x24362,"97EA"],
+ [0x24363,"FB6B"],
+ [0x24364,"91B1"],
+ [0x24365,"FDF3"],
+ [0x2438C,"92CB"],
+ [0x24396,"9BB1"],
+ [0x2439C,"FCEC"],
+ [0x243BD,"986B"],
+ [0x243C1,"9751"],
+ [0x243E9,"9871"],
+ [0x243EA,"95EF"],
+ [0x243F2,"9EF3"],
+ [0x243F8,"91E8"],
+ [0x24404,"9BBA"],
+ [0x24435,"FB4C"],
+ [0x24436,"926A"],
+ [0x2445A,"FDF8"],
+ [0x2445B,"9861"],
+ [0x24473,"91E7"],
+ [0x24487,"93ED"],
+ [0x24488,"9744"],
+ [0x244B9,"91E1"],
+ [0x244BC,"FBF5"],
+ [0x244CE,"9869"],
+ [0x244D3,"8A62"],
+ [0x244D6,"9BBB"],
+ [0x24505,"8CA8"],
+ [0x24521,"9C55"],
+ [0x24578,"8E77"],
+ [0x245C8,"8AB2"],
+ [0x24618,"9EBC"],
+ [0x2462A,"93E6"],
+ [0x24665,"93A2"],
+ [0x24674,"9BBD"],
+ [0x24697,"94B3"],
+ [0x246D4,"937D"],
+ [0x24706,"9E66"],
+ [0x24725,"9459"],
+ [0x2472F,"9BBF"],
+ [0x2478F,"9458"],
+ [0x247E0,"9EA5"],
+ [0x24812,"9BC7"],
+ [0x24823,"FE54"],
+ [0x24882,"8E74"],
+ [0x248E9,"8BD6"],
+ [0x248F0,"94B6"],
+ [0x248F1,"FD74"],
+ [0x248F2,"98C0"],
+ [0x248F3,"94A5"],
+ [0x248FB,"9BC8"],
+ [0x248FF,"95ED"],
+ [0x24900,"FD7E"],
+ [0x24901,"FBEB"],
+ [0x2490C,"FD7D"],
+ [0x24916,"976F"],
+ [0x24917,"9461"],
+ [0x24919,"9FC1"],
+ [0x2492F,"95D7"],
+ [0x24933,"FA52"],
+ [0x24934,"9C58"],
+ [0x2493E,"9F68"],
+ [0x2493F,"9BE7"],
+ [0x24940,"FCCE"],
+ [0x24941,"96E8"],
+ [0x24942,"FA49"],
+ [0x24943,"97A1"],
+ [0x24962,"954D"],
+ [0x24963,"9EF8"],
+ [0x24974,"FE49"],
+ [0x24975,"91CE"],
+ [0x24976,"9771"],
+ [0x2497B,"8CCF"],
+ [0x2497F,"FDB1"],
+ [0x24982,"FC6E"],
+ [0x24988,"9CF2"],
+ [0x24989,"93B8"],
+ [0x2498A,"9043"],
+ [0x2498B,"9759"],
+ [0x2498C,"94D7"],
+ [0x2498D,"FE66"],
+ [0x2498E,"947D"],
+ [0x2498F,"FC6F"],
+ [0x24994,"9246"],
+ [0x249A4,"FA6D"],
+ [0x249A7,"8EF7"],
+ [0x249A9,"FBB7"],
+ [0x249AB,"947C"],
+ [0x249AC,"92CD"],
+ [0x249AD,"97B2"],
+ [0x249B7,"FE65"],
+ [0x249B8,"967E"],
+ [0x249B9,"9758"],
+ [0x249BA,"9B77"],
+ [0x249BB,"91CF"],
+ [0x249C5,"94A4"],
+ [0x249D0,"9CAD"],
+ [0x249DA,"8BAB"],
+ [0x249DE,"96D5"],
+ [0x249DF,"FCB3"],
+ [0x249E3,"93AE"],
+ [0x249E5,"976D"],
+ [0x249EC,"9446"],
+ [0x249ED,"95F7"],
+ [0x249F6,"9C46"],
+ [0x249F7,"955B"],
+ [0x249F8,"91D1"],
+ [0x249F9,"94F4"],
+ [0x249FB,"FE67"],
+ [0x24A0E,"92A5"],
+ [0x24A12,"FEDF"],
+ [0x24A13,"8CAB"],
+ [0x24A15,"9BC9"],
+ [0x24A21,"FCED"],
+ [0x24A22,"FDFA"],
+ [0x24A23,"FCC8"],
+ [0x24A24,"FE62"],
+ [0x24A25,"91FC"],
+ [0x24A26,"FE6B"],
+ [0x24A27,"FDF9"],
+ [0x24A28,"FCC7"],
+ [0x24A29,"914E"],
+ [0x24A2A,"9CB8"],
+ [0x24A3E,"9767"],
+ [0x24A42,"95EE"],
+ [0x24A45,"9BB2"],
+ [0x24A4A,"9460"],
+ [0x24A4E,"94A2"],
+ [0x24A4F,"9875"],
+ [0x24A50,"97AC"],
+ [0x24A51,"91D3"],
+ [0x24A5D,"987B"],
+ [0x24A65,"8EEB"],
+ [0x24A66,"976A"],
+ [0x24A67,"965E"],
+ [0x24A71,"97EB"],
+ [0x24A77,"9FF9"],
+ [0x24A78,"95F8"],
+ [0x24A79,"FEA2"],
+ [0x24A7A,"8FE6"],
+ [0x24A8C,"FE7E"],
+ [0x24A93,"9DA4"],
+ [0x24A94,"9768"],
+ [0x24A95,"8EEC"],
+ [0x24A96,"94BD"],
+ [0x24AA4,"945B"],
+ [0x24AA5,"9CF6"],
+ [0x24AA6,"FAA7"],
+ [0x24AA7,"9BD9"],
+ [0x24AB1,"FA5D"],
+ [0x24AB2,"9656"],
+ [0x24AB3,"9762"],
+ [0x24ABA,"94BA"],
+ [0x24ABB,"A04F"],
+ [0x24ABC,"92D8"],
+ [0x24AC0,"9BCB"],
+ [0x24AC7,"94BB"],
+ [0x24ACA,"9D5F"],
+ [0x24AD1,"90CF"],
+ [0x24ADF,"9465"],
+ [0x24AE2,"9F4C"],
+ [0x24AE9,"90D8"],
+ [0x24B0F,"8D5B"],
+ [0x24B6E,"9EBE"],
+ [0x24BF5,"FB6D"],
+ [0x24C09,"95CA"],
+ [0x24C9E,"9DC2"],
+ [0x24C9F,"97F8"],
+ [0x24CC9,"8FFC"],
+ [0x24CD9,"9473"],
+ [0x24D06,"9474"],
+ [0x24D13,"FEB7"],
+ [0x24DB8,"8A4B"],
+ [0x24DEA,"8A55"],
+ [0x24DEB,"8B69"],
+ [0x24E3B,"8ADC"],
+ [0x24E50,"8B76"],
+ [0x24EA5,"9BCE"],
+ [0x24EA7,"8A68"],
+ [0x24F0E,"A0F8"],
+ [0x24F5C,"98DF"],
+ [0x24F82,"FEB5"],
+ [0x24F86,"9BCF"],
+ [0x24F97,"96FB"],
+ [0x24F9A,"9BFB"],
+ [0x24FA9,"9ECE"],
+ [0x24FB8,"8EE5"],
+ [0x24FC2,"9E7B"],
+ [0x2502C,"9BD2"],
+ [0x25052,"8AA5"],
+ [0x2509D,"FECE"],
+ [0x2512B,"8A45"],
+ [0x25148,"9DFC"],
+ [0x2517D,"FECF"],
+ [0x2517E,"8BA5"],
+ [0x251CD,"8C4A"],
+ [0x251E3,"8AEC"],
+ [0x251E6,"FCE0"],
+ [0x251E7,"94AD"],
+ [0x25220,"FED5"],
+ [0x25221,"94AC"],
+ [0x25250,"FC5A"],
+ [0x25299,"9BD6"],
+ [0x252C7,"8A6F"],
+ [0x252D8,"8BA9"],
+ [0x2530E,"8E5F"],
+ [0x25311,"9DCB"],
+ [0x25313,"FCE7"],
+ [0x25419,"9BD7"],
+ [0x25425,"93C8"],
+ [0x2542F,"91F0"],
+ [0x25430,"8FE0"],
+ [0x25446,"9BDB"],
+ [0x2546C,"90ED"],
+ [0x2546E,"9BDC"],
+ [0x2549A,"8D53"],
+ [0x25531,"A0EC"],
+ [0x25535,"98FA"],
+ [0x2553F,"9BE0"],
+ [0x2555B,"93C7"],
+ [0x2555C,"9249"],
+ [0x2555D,"96E1"],
+ [0x2555E,"9BE2"],
+ [0x25562,"9BE4"],
+ [0x25565,"8FE1"],
+ [0x25566,"9BE5"],
+ [0x25581,"94C0"],
+ [0x25584,"93C3"],
+ [0x2558F,"93C5"],
+ [0x255B9,"9079"],
+ [0x255D5,"977B"],
+ [0x255DB,"907E"],
+ [0x255E0,"FEE6"],
+ [0x25605,"FE46"],
+ [0x25635,"9DB8"],
+ [0x25651,"9270"],
+ [0x25683,"95A8"],
+ [0x25695,"8CB0"],
+ [0x256E3,"94C8"],
+ [0x256F6,"98B9"],
+ [0x25706,"9140"],
+ [0x2571D,"FCBE"],
+ [0x25725,"9157"],
+ [0x2573D,"8BB2"],
+ [0x25772,"FADF"],
+ [0x257C7,"9BE6"],
+ [0x257DF,"9643"],
+ [0x257E0,"8E44"],
+ [0x257E1,"9C4F"],
+ [0x25857,"FEF4"],
+ [0x2585D,"9BE8"],
+ [0x25872,"93DC"],
+ [0x258C8,"966F"],
+ [0x258DE,"87A1"],
+ [0x258E1,"8E4A"],
+ [0x25903,"9BED"],
+ [0x25946,"92F6"],
+ [0x25956,"9DB9"],
+ [0x259AC,"8E4E"],
+ [0x259CC,"FBCF"],
+ [0x25A54,"8760"],
+ [0x25A95,"9EC2"],
+ [0x25A9C,"94E5"],
+ [0x25AAE,"9BF0"],
+ [0x25AAF,"94E4"],
+ [0x25AE9,"9551"],
+ [0x25B74,"8BBB"],
+ [0x25B89,"9BF1"],
+ [0x25BB3,"94F0"],
+ [0x25BB4,"8E64"],
+ [0x25BC6,"94EA"],
+ [0x25BE4,"8F61"],
+ [0x25BE8,"9B64"],
+ [0x25C01,"8E5B"],
+ [0x25C06,"9BF2"],
+ [0x25C21,"9FBE"],
+ [0x25C4A,"9DC9"],
+ [0x25C65,"8E6C"],
+ [0x25C91,"8F73"],
+ [0x25CA4,"8CAF"],
+ [0x25CC0,"8F75"],
+ [0x25CC1,"8E71"],
+ [0x25CFE,"8E60"],
+ [0x25D20,"8E6A"],
+ [0x25D30,"8C4C"],
+ [0x25D43,"9552"],
+ [0x25D99,"87CF"],
+ [0x25DB9,"87C0"],
+ [0x25E0E,"9554"],
+ [0x25E49,"8AD4"],
+ [0x25E81,"9DBB"],
+ [0x25E82,"9543"],
+ [0x25E83,"92FE"],
+ [0x25EA6,"94F2"],
+ [0x25EBC,"94F1"],
+ [0x25ED7,"A0EA"],
+ [0x25ED8,"9DD2"],
+ [0x25F1A,"A0B1"],
+ [0x25F4B,"91F8"],
+ [0x25FE1,"9462"],
+ [0x25FE2,"9BA4"],
+ [0x26021,"877D"],
+ [0x26029,"8EAD"],
+ [0x26048,"9EAD"],
+ [0x26064,"96D0"],
+ [0x26083,"FEEE"],
+ [0x26097,"8AB4"],
+ [0x260A4,"9757"],
+ [0x260A5,"8A77"],
+ [0x26102,"9BF7"],
+ [0x26121,"8EB5"],
+ [0x26159,"A06D"],
+ [0x2615A,"8EB6"],
+ [0x2615B,"9756"],
+ [0x2615C,"9540"],
+ [0x261AD,"A0F3"],
+ [0x261AE,"94BE"],
+ [0x261B2,"9BFA"],
+ [0x261DD,"FDDF"],
+ [0x26258,"9DBC"],
+ [0x26261,"94FE"],
+ [0x2626A,"8BDB"],
+ [0x2626B,"A0FE"],
+ [0x262D0,"8EC0"],
+ [0x26335,"9F47"],
+ [0x2634B,"8BDE"],
+ [0x2634C,"A0FB"],
+ [0x26351,"8EC3"],
+ [0x263BE,"9649"],
+ [0x263F5,"FEC2"],
+ [0x263F8,"954C"],
+ [0x26402,"9BFD"],
+ [0x26410,"90CC"],
+ [0x26411,"9C60"],
+ [0x26412,"954B"],
+ [0x2644A,"9BFE"],
+ [0x26469,"9C70"],
+ [0x26484,"9C43"],
+ [0x26488,"9C47"],
+ [0x26489,"8ECC"],
+ [0x2648D,"8E54"],
+ [0x26498,"8EE4"],
+ [0x26512,"9C49"],
+ [0x26572,"8B5E"],
+ [0x265A0,"955E"],
+ [0x265AD,"955C"],
+ [0x265BF,"9C4B"],
+ [0x26612,"8BE1"],
+ [0x26626,"8ED9"],
+ [0x266AF,"9DB4"],
+ [0x266B1,"925F"],
+ [0x266B5,"9C4C"],
+ [0x266DA,"8AA1"],
+ [0x266E8,"8EDB"],
+ [0x266FC,"9C56"],
+ [0x26716,"8AA2"],
+ [0x26741,"9754"],
+ [0x26799,"9C5E"],
+ [0x267B3,"9ED4"],
+ [0x267B4,"9568"],
+ [0x267CC,"A0C3"],
+ [0x2681C,"8AE6"],
+ [0x26846,"A0F7"],
+ [0x2685E,"9C61"],
+ [0x2686E,"9C5F"],
+ [0x26888,"FC4D"],
+ [0x2688A,"9E5B"],
+ [0x26893,"9E69"],
+ [0x268C7,"9C63"],
+ [0x2690E,"FEC7"],
+ [0x26911,"FEC6"],
+ [0x26926,"9C67"],
+ [0x26939,"9C69"],
+ [0x26951,"8BE2"],
+ [0x269A8,"9165"],
+ [0x269B5,"9CE7"],
+ [0x269F2,"8A54"],
+ [0x269FA,"9C6C"],
+ [0x26A2D,"9C6E"],
+ [0x26A2E,"FE5D"],
+ [0x26A34,"9C73"],
+ [0x26A42,"956A"],
+ [0x26A51,"956D"],
+ [0x26A52,"8EF0"],
+ [0x26B05,"8F4D"],
+ [0x26B0A,"8EF6"],
+ [0x26B13,"FABC"],
+ [0x26B15,"8CD5"],
+ [0x26B23,"875E"],
+ [0x26B28,"FBDA"],
+ [0x26B50,"8B4C"],
+ [0x26B51,"FD75"],
+ [0x26B52,"9BDD"],
+ [0x26B53,"FAF5"],
+ [0x26B5B,"9C74"],
+ [0x26B75,"9545"],
+ [0x26B82,"96C6"],
+ [0x26B96,"8F6A"],
+ [0x26B97,"8F4E"],
+ [0x26B9D,"9C78"],
+ [0x26BB3,"FA55"],
+ [0x26BC0,"97E4"],
+ [0x26BF7,"9C41"],
+ [0x26C21,"925C"],
+ [0x26C40,"96FA"],
+ [0x26C41,"8CF6"],
+ [0x26C46,"8D4D"],
+ [0x26C7E,"FB66"],
+ [0x26C7F,"8E65"],
+ [0x26C80,"9849"],
+ [0x26C81,"FBA8"],
+ [0x26C82,"9842"],
+ [0x26CA4,"9C7A"],
+ [0x26CB7,"97FB"],
+ [0x26CB8,"90CA"],
+ [0x26CBD,"9C5B"],
+ [0x26CC0,"974D"],
+ [0x26CC3,"8ED3"],
+ [0x26CD1,"9561"],
+ [0x26D22,"9F4B"],
+ [0x26D23,"9FB5"],
+ [0x26D24,"93D2"],
+ [0x26D25,"FDAA"],
+ [0x26D26,"9840"],
+ [0x26D27,"9146"],
+ [0x26D28,"9867"],
+ [0x26D29,"FA5A"],
+ [0x26D2A,"FBA9"],
+ [0x26D51,"9841"],
+ [0x26D74,"8CD3"],
+ [0x26DA0,"FCFD"],
+ [0x26DA1,"FDAB"],
+ [0x26DA2,"91BD"],
+ [0x26DA3,"8F4C"],
+ [0x26DA4,"96C9"],
+ [0x26DA5,"8F55"],
+ [0x26DA6,"FBAE"],
+ [0x26DA7,"956F"],
+ [0x26DAE,"9C7D"],
+ [0x26DDC,"A0F0"],
+ [0x26DEA,"946F"],
+ [0x26DEB,"FDAC"],
+ [0x26DF0,"96CB"],
+ [0x26E00,"96CE"],
+ [0x26E05,"A056"],
+ [0x26E07,"9CE1"],
+ [0x26E12,"96C4"],
+ [0x26E42,"8F5E"],
+ [0x26E43,"8F6C"],
+ [0x26E44,"8EA3"],
+ [0x26E45,"FBB3"],
+ [0x26E6E,"FC53"],
+ [0x26E72,"FDB3"],
+ [0x26E77,"8F6B"],
+ [0x26E84,"96CA"],
+ [0x26E88,"87CD"],
+ [0x26E8B,"8753"],
+ [0x26E99,"8F79"],
+ [0x26ED0,"9E6F"],
+ [0x26ED1,"A0C5"],
+ [0x26ED2,"FC78"],
+ [0x26ED3,"8E42"],
+ [0x26ED4,"8F5A"],
+ [0x26ED5,"90C2"],
+ [0x26ED6,"8EA5"],
+ [0x26ED7,"9061"],
+ [0x26F26,"924F"],
+ [0x26F73,"9373"],
+ [0x26F74,"FDB5"],
+ [0x26F9F,"FECC"],
+ [0x26FA1,"FBBD"],
+ [0x26FBE,"8CD6"],
+ [0x26FDE,"9843"],
+ [0x26FDF,"96C5"],
+ [0x2700E,"89BC"],
+ [0x2704B,"9CA3"],
+ [0x27052,"924B"],
+ [0x27053,"984A"],
+ [0x27088,"8FA4"],
+ [0x270AD,"A0F1"],
+ [0x270AE,"9EFB"],
+ [0x270AF,"9CD2"],
+ [0x270CD,"8FA7"],
+ [0x270D2,"8754"],
+ [0x270F8,"FC5C"],
+ [0x27109,"9845"],
+ [0x2710C,"9046"],
+ [0x2710D,"8CD1"],
+ [0x27126,"FEFA"],
+ [0x27127,"9560"],
+ [0x27164,"9F48"],
+ [0x27165,"9247"],
+ [0x27175,"90FB"],
+ [0x271CD,"9CA4"],
+ [0x2721B,"9571"],
+ [0x27267,"8745"],
+ [0x27280,"9CA6"],
+ [0x27285,"9CA7"],
+ [0x2728B,"9CAA"],
+ [0x272B2,"9ED3"],
+ [0x272B6,"9E70"],
+ [0x272E6,"9CAC"],
+ [0x27352,"8752"],
+ [0x2739A,"8FAE"],
+ [0x273FF,"8D50"],
+ [0x27422,"957D"],
+ [0x27450,"9CB0"],
+ [0x27484,"97B6"],
+ [0x27486,"A0BD"],
+ [0x27574,"8ADF"],
+ [0x275A3,"9EAA"],
+ [0x275E0,"8FBD"],
+ [0x275E4,"8FBF"],
+ [0x275FD,"9369"],
+ [0x275FE,"9BA7"],
+ [0x27607,"C8A4"],
+ [0x2760C,"FEEA"],
+ [0x27632,"9BE1"],
+ [0x27639,"8B41"],
+ [0x27655,"9DB6"],
+ [0x27656,"A0EB"],
+ [0x27657,"9BA3"],
+ [0x27694,"8BA1"],
+ [0x2770F,"8FC8"],
+ [0x27735,"894C"],
+ [0x27736,"9860"],
+ [0x27741,"94C7"],
+ [0x2775E,"8B58"],
+ [0x27784,"95AB"],
+ [0x27785,"95AA"],
+ [0x277CC,"9CC3"],
+ [0x27858,"9CC4"],
+ [0x27870,"93D6"],
+ [0x2789D,"9DAC"],
+ [0x278B2,"8BE6"],
+ [0x278C8,"8A71"],
+ [0x27924,"8FD1"],
+ [0x27967,"99D5"],
+ [0x2797A,"90F4"],
+ [0x279A0,"8AA3"],
+ [0x279DD,"9CCE"],
+ [0x279FD,"9CD4"],
+ [0x27A0A,"9CD5"],
+ [0x27A0E,"FBC8"],
+ [0x27A3E,"9DB3"],
+ [0x27A53,"FC70"],
+ [0x27A59,"8FD7"],
+ [0x27A79,"9B73"],
+ [0x27A84,"FA5B"],
+ [0x27ABD,"8FD2"],
+ [0x27ABE,"9064"],
+ [0x27AF4,"98B6"],
+ [0x27B06,"9668"],
+ [0x27B0B,"9CD6"],
+ [0x27B18,"98BD"],
+ [0x27B38,"8FDC"],
+ [0x27B39,"FEF6"],
+ [0x27B3A,"8FD9"],
+ [0x27B48,"9541"],
+ [0x27B65,"87CA"],
+ [0x27BEF,"876C"],
+ [0x27BF4,"97F3"],
+ [0x27C12,"9BF8"],
+ [0x27C6C,"875A"],
+ [0x27CB1,"8748"],
+ [0x27CC5,"874A"],
+ [0x27D2F,"9E6C"],
+ [0x27D53,"8FF2"],
+ [0x27D54,"8FEE"],
+ [0x27D66,"9CD7"],
+ [0x27D73,"9E6E"],
+ [0x27D84,"8A40"],
+ [0x27D8F,"8FEF"],
+ [0x27D98,"8FF4"],
+ [0x27DBD,"8FF5"],
+ [0x27DDC,"95C2"],
+ [0x27E4D,"986A"],
+ [0x27E4F,"97CF"],
+ [0x27F2E,"9EE5"],
+ [0x27FF9,"9E7C"],
+ [0x28002,"9041"],
+ [0x28009,"9CDB"],
+ [0x2801E,"9441"],
+ [0x28023,"9CE6"],
+ [0x28024,"9DB0"],
+ [0x28048,"9CEA"],
+ [0x28083,"9CED"],
+ [0x28090,"9CFA"],
+ [0x280BD,"8B62"],
+ [0x280BE,"8A4E"],
+ [0x280E8,"9CCA"],
+ [0x280E9,"8A66"],
+ [0x280F4,"9CFB"],
+ [0x2812E,"9CFC"],
+ [0x2814F,"9CFE"],
+ [0x2815D,"8A53"],
+ [0x2816F,"9CE5"],
+ [0x28189,"9D40"],
+ [0x281AF,"9D41"],
+ [0x281BC,"9045"],
+ [0x28207,"8B73"],
+ [0x28218,"97CA"],
+ [0x2821A,"9D42"],
+ [0x28256,"8A61"],
+ [0x2827C,"8BAE"],
+ [0x2829B,"8AD2"],
+ [0x282CD,"8BA2"],
+ [0x282E2,"9DF2"],
+ [0x28306,"9D43"],
+ [0x28318,"9CDF"],
+ [0x2832F,"9D44"],
+ [0x2833A,"8ECA"],
+ [0x28365,"904E"],
+ [0x2836D,"8EB3"],
+ [0x2837D,"9FF5"],
+ [0x2838A,"9D45"],
+ [0x28412,"904F"],
+ [0x28468,"9D47"],
+ [0x2846C,"89CA"],
+ [0x28473,"9CB5"],
+ [0x28482,"FBFE"],
+ [0x28501,"905E"],
+ [0x2853C,"9063"],
+ [0x2853D,"9057"],
+ [0x2856C,"9066"],
+ [0x285E8,"9BC0"],
+ [0x285F4,"FCE5"],
+ [0x28600,"9162"],
+ [0x2860B,"9067"],
+ [0x28625,"8FA1"],
+ [0x2863B,"8FA2"],
+ [0x286AA,"9D48"],
+ [0x286AB,"FAD3"],
+ [0x286B2,"8D4F"],
+ [0x286BC,"905D"],
+ [0x286D8,"90B9"],
+ [0x286E6,"906B"],
+ [0x2870F,"8C5C"],
+ [0x28713,"9069"],
+ [0x28804,"FE57"],
+ [0x2882B,"FE55"],
+ [0x2890D,"87A6"],
+ [0x28933,"9073"],
+ [0x28948,"9BEF"],
+ [0x28949,"9CF0"],
+ [0x28956,"9D4B"],
+ [0x28964,"FED9"],
+ [0x28968,"FEDA"],
+ [0x2896C,"91E0"],
+ [0x2896D,"8D43"],
+ [0x2897E,"91D8"],
+ [0x28989,"9646"],
+ [0x289A8,"9360"],
+ [0x289AA,"FA53"],
+ [0x289AB,"9CD3"],
+ [0x289B8,"9D4E"],
+ [0x289BC,"FB40"],
+ [0x289C0,"8DE2"],
+ [0x289DC,"9442"],
+ [0x289DE,"9056"],
+ [0x289E1,"9865"],
+ [0x289E3,"8C6C"],
+ [0x289E4,"FA4A"],
+ [0x289E7,"9D50"],
+ [0x289E8,"9D52"],
+ [0x289F9,"95AF"],
+ [0x289FA,"975A"],
+ [0x289FB,"9349"],
+ [0x289FC,"9747"],
+ [0x28A0F,"A0F4"],
+ [0x28A16,"9778"],
+ [0x28A25,"8FCF"],
+ [0x28A29,"FC60"],
+ [0x28A32,"8C4E"],
+ [0x28A36,"FC56"],
+ [0x28A44,"91DC"],
+ [0x28A45,"9661"],
+ [0x28A46,"92EC"],
+ [0x28A47,"935D"],
+ [0x28A48,"8EDE"],
+ [0x28A49,"96FE"],
+ [0x28A4A,"FD4F"],
+ [0x28A4B,"95DE"],
+ [0x28A59,"98B0"],
+ [0x28A5A,"A040"],
+ [0x28A81,"97BD"],
+ [0x28A82,"977D"],
+ [0x28A83,"97F5"],
+ [0x28A9A,"9BAC"],
+ [0x28A9B,"FADA"],
+ [0x28A9C,"92C2"],
+ [0x28AC0,"97B1"],
+ [0x28AC6,"907B"],
+ [0x28ACB,"93FE"],
+ [0x28ACC,"947B"],
+ [0x28ACE,"9777"],
+ [0x28ADE,"FABE"],
+ [0x28ADF,"FD43"],
+ [0x28AE0,"90C6"],
+ [0x28AE1,"90A4"],
+ [0x28AE2,"90A8"],
+ [0x28AE3,"94A9"],
+ [0x28AE5,"90A9"],
+ [0x28AEA,"8C65"],
+ [0x28AFC,"95E0"],
+ [0x28B0C,"907D"],
+ [0x28B13,"9265"],
+ [0x28B21,"FDBA"],
+ [0x28B22,"93C4"],
+ [0x28B2B,"FEED"],
+ [0x28B2C,"9DAB"],
+ [0x28B2D,"A0E3"],
+ [0x28B2F,"9648"],
+ [0x28B46,"9D53"],
+ [0x28B4C,"8AA9"],
+ [0x28B4E,"9BC5"],
+ [0x28B50,"965D"],
+ [0x28B63,"975F"],
+ [0x28B64,"965F"],
+ [0x28B65,"966E"],
+ [0x28B66,"FB5D"],
+ [0x28B6C,"9DB1"],
+ [0x28B8F,"FEA3"],
+ [0x28B99,"9DB2"],
+ [0x28B9C,"95AE"],
+ [0x28B9D,"FCA3"],
+ [0x28BB9,"8769"],
+ [0x28BC2,"A0A2"],
+ [0x28BC5,"9655"],
+ [0x28BD4,"9D54"],
+ [0x28BD7,"9341"],
+ [0x28BD9,"95AD"],
+ [0x28BDA,"91D5"],
+ [0x28BE7,"977A"],
+ [0x28BE8,"FDFC"],
+ [0x28BE9,"8E47"],
+ [0x28BEA,"93FD"],
+ [0x28BEB,"90A5"],
+ [0x28BEC,"90AC"],
+ [0x28BF5,"95AC"],
+ [0x28BFF,"90AE"],
+ [0x28C03,"FEA5"],
+ [0x28C09,"9D56"],
+ [0x28C1C,"97E3"],
+ [0x28C1D,"95E2"],
+ [0x28C23,"9466"],
+ [0x28C26,"9647"],
+ [0x28C2B,"91B8"],
+ [0x28C30,"9CEC"],
+ [0x28C39,"90AD"],
+ [0x28C3B,"95E3"],
+ [0x28CCA,"8B4F"],
+ [0x28CCD,"8AE3"],
+ [0x28CD2,"8B4D"],
+ [0x28D34,"95EA"],
+ [0x28D99,"8B4E"],
+ [0x28DB9,"8CC1"],
+ [0x28E0F,"8BED"],
+ [0x28E36,"91D9"],
+ [0x28E39,"A0A4"],
+ [0x28E65,"95F5"],
+ [0x28E66,"95F4"],
+ [0x28E97,"9FB3"],
+ [0x28EAC,"FEAF"],
+ [0x28EB2,"FE72"],
+ [0x28EB3,"927A"],
+ [0x28ED9,"FEAC"],
+ [0x28EE7,"95F3"],
+ [0x28FC5,"9D58"],
+ [0x29079,"8D46"],
+ [0x29088,"9372"],
+ [0x2908B,"91C5"],
+ [0x29093,"9642"],
+ [0x290AF,"90CD"],
+ [0x290B0,"95FE"],
+ [0x290B1,"9159"],
+ [0x290C0,"9C65"],
+ [0x290E4,"97CC"],
+ [0x290E5,"90CE"],
+ [0x290EC,"9D59"],
+ [0x290ED,"FCF5"],
+ [0x2910D,"FEFD"],
+ [0x29110,"9D5B"],
+ [0x2913C,"9D5C"],
+ [0x2914D,"937E"],
+ [0x2915B,"98AC"],
+ [0x2915E,"9D5E"],
+ [0x29170,"FDD0"],
+ [0x2919C,"FD60"],
+ [0x291A8,"9CCF"],
+ [0x291D5,"90DD"],
+ [0x291EB,"90E0"],
+ [0x2941D,"90F3"],
+ [0x29420,"98B1"],
+ [0x29433,"90F0"],
+ [0x2943F,"93BD"],
+ [0x29448,"95B7"],
+ [0x294D0,"9F46"],
+ [0x294D9,"8E4B"],
+ [0x294DA,"9658"],
+ [0x294E5,"8A4C"],
+ [0x294E7,"9D63"],
+ [0x2959E,"9ECF"],
+ [0x295B0,"9D65"],
+ [0x295B8,"9D66"],
+ [0x295D7,"965A"],
+ [0x295E9,"9D64"],
+ [0x295F4,"8A6C"],
+ [0x29720,"8AD9"],
+ [0x29732,"9D67"],
+ [0x297D4,"8A70"],
+ [0x29810,"8BF3"],
+ [0x29857,"9150"],
+ [0x298A4,"9CC1"],
+ [0x298D1,"9D68"],
+ [0x298EA,"93A7"],
+ [0x298F1,"9674"],
+ [0x298FA,"8CFD"],
+ [0x29903,"A0EF"],
+ [0x29905,"9151"],
+ [0x2992F,"96C1"],
+ [0x29945,"8777"],
+ [0x29947,"8C64"],
+ [0x29948,"9676"],
+ [0x29949,"9D69"],
+ [0x2995D,"FCA4"],
+ [0x2996A,"9D6A"],
+ [0x2999D,"924E"],
+ [0x299C3,"9D6B"],
+ [0x299C9,"9BC1"],
+ [0x29A28,"9D6C"],
+ [0x29A4D,"8A65"],
+ [0x29B05,"915D"],
+ [0x29B0E,"9D6D"],
+ [0x29BD5,"915A"],
+ [0x29C73,"8C42"],
+ [0x29CAD,"9CC0"],
+ [0x29D3E,"916A"],
+ [0x29D5A,"9D6E"],
+ [0x29D7C,"9EA6"],
+ [0x29D98,"9DCD"],
+ [0x29D9B,"9D6F"],
+ [0x29DF6,"89BB"],
+ [0x29E06,"9EF9"],
+ [0x29E2D,"96B4"],
+ [0x29E68,"9172"],
+ [0x29EAC,"9EC8"],
+ [0x29EB0,"8771"],
+ [0x29EC3,"8B55"],
+ [0x29EF8,"9D71"],
+ [0x29F23,"9D72"],
+ [0x29F30,"9ECC"],
+ [0x29FB7,"9174"],
+ [0x29FDE,"9ED0"],
+ [0x2A014,"905C"],
+ [0x2A087,"8ED2"],
+ [0x2A0B9,"91A8"],
+ [0x2A0E1,"9177"],
+ [0x2A0ED,"96BF"],
+ [0x2A0F3,"96C0"],
+ [0x2A0F8,"8FB1"],
+ [0x2A0FE,"96B7"],
+ [0x2A107,"8C55"],
+ [0x2A123,"9178"],
+ [0x2A133,"89BE"],
+ [0x2A134,"917C"],
+ [0x2A150,"FB77"],
+ [0x2A192,"9175"],
+ [0x2A193,"91A3"],
+ [0x2A1AB,"9176"],
+ [0x2A1B4,"96BE"],
+ [0x2A1B5,"8D49"],
+ [0x2A1DF,"9179"],
+ [0x2A1F5,"96B6"],
+ [0x2A220,"91A4"],
+ [0x2A233,"91A6"],
+ [0x2A293,"9D75"],
+ [0x2A29F,"9052"],
+ [0x2A2B2,"A045"],
+ [0x2A2B4,"91A9"],
+ [0x2A2B6,"98AA"],
+ [0x2A2BA,"8C5F"],
+ [0x2A2BD,"8BAA"],
+ [0x2A2DF,"9CDD"],
+ [0x2A2FF,"9D77"],
+ [0x2A351,"8756"],
+ [0x2A3A9,"8940"],
+ [0x2A434,"9EEC"],
+ [0x2A45B,"93AA"],
+ [0x2A5C6,"9478"],
+ [0x2A5CB,"9D7A"],
+ [0x2A601,"8AC9"],
+ [0x2A632,"8B4B"],
+ [0x2A64A,"9FEC"],
+ [0x2A65B,"8AE2"],
+ [0x2A6A9,"9E75"],
+ [0x2ADFF,"87DC"],
+ [0x2F825,"9874"],
+ [0x2F83B,"9AC8"],
+ [0x2F840,"A047"],
+ [0x2F878,"8BC3"],
+ [0x2F894,"FC48"],
+ [0x2F8A6,"FC77"],
+ [0x2F8CD,"9C52"],
+ [0x2F994,"8EFD"],
+ [0x2F9B2,"8FA8"],
+ [0x2F9BC,"957A"],
+ [0x2F9D4,"8FF0"],
+
+ # defined by CP951 but not both-way mapping
+ #[0xA1,"0021"],
+ #[0xA2,"A246"],
+ #[0xA3,"A247"],
+ #[0xA5,"A244"],
+ #[0xA6,"007C"],
+ #[0xA9,"0063"],
+ #[0xAA,"0061"],
+ #[0xAD,"002D"],
+ #[0xAE,"0052"],
+ #[0xB2,"0032"],
+ #[0xB3,"0033"],
+ #[0xB4,"A1A6"],
+ #[0xB5,"A367"],
+ #[0xB8,"A14D"],
+ #[0xB9,"0031"],
+ #[0xBA,"006F"],
+ #[0xC2,"0041"],
+ #[0xC3,"0041"],
+ #[0xC4,"0041"],
+ #[0xC5,"0041"],
+ #[0xC6,"0041"],
+ #[0xC7,"0043"],
+ #[0xCB,"0045"],
+ #[0xCC,"0049"],
+ #[0xCD,"0049"],
+ #[0xCE,"0049"],
+ #[0xCF,"0049"],
+ #[0xD0,"0044"],
+ #[0xD1,"004E"],
+ #[0xD4,"004F"],
+ #[0xD5,"004F"],
+ #[0xD6,"004F"],
+ #[0xD8,"004F"],
+ #[0xD9,"0055"],
+ #[0xDA,"0055"],
+ #[0xDB,"0055"],
+ #[0xDC,"0055"],
+ #[0xDD,"0059"],
+ #[0xDE,"0054"],
+ #[0xDF,"0073"],
+ #[0xE2,"0061"],
+ #[0xE3,"0061"],
+ #[0xE4,"0061"],
+ #[0xE5,"0061"],
+ #[0xE6,"0061"],
+ #[0xE7,"0063"],
+ #[0xEB,"0065"],
+ #[0xEE,"0069"],
+ #[0xEF,"0069"],
+ #[0xF0,"0065"],
+ #[0xF1,"006E"],
+ #[0xF4,"006F"],
+ #[0xF5,"006F"],
+ #[0xF6,"006F"],
+ #[0xFB,"0075"],
+ #[0xFD,"0079"],
+ #[0xFE,"0074"],
+ #[0xFF,"0079"],
+ #[0x305,"A1C2"],
+ #[0x2015,"A277"],
+ #[0x2016,"A1FC"],
+ #[0x2022,"A145"],
+ #[0x2024,"A3BB"],
+ #[0x2033,"A1B2"],
+ #[0x203E,"A1C3"],
+ #[0x2216,"A242"],
+ #[0x2218,"A258"],
+ #[0x2263,"A1DD"],
+ #[0x2307,"A15B"],
+ #[0x2593,"F9FE"],
+ #[0x2609,"A1F3"],
+ #[0x2641,"A1F2"],
+ #[0x301C,"A1E3"],
+ #[0x3030,"A1CA"],
+ #[0x3192,"A440"],
+ #[0x3193,"A447"],
+ #[0x3194,"A454"],
+ #[0x3195,"A57C"],
+ #[0x3196,"A457"],
+ #[0x3197,"A4A4"],
+ #[0x3198,"A455"],
+ #[0x3199,"A5D2"],
+ #[0x319A,"A441"],
+ #[0x319B,"A4FE"],
+ #[0x319C,"A442"],
+ #[0x319D,"A4D1"],
+ #[0x319E,"A661"],
+ #[0x319F,"A448"],
+ #[0x3220,"A440"],
+ #[0x3221,"A447"],
+ #[0x3222,"A454"],
+ #[0x3223,"A57C"],
+ #[0x3224,"A4AD"],
+ #[0x3225,"A4BB"],
+ #[0x3226,"A443"],
+ #[0x3227,"A44B"],
+ #[0x3228,"A445"],
+ #[0x3229,"A451"],
+ #[0x322A,"A4EB"],
+ #[0x322B,"A4F5"],
+ #[0x322C,"A4F4"],
+ #[0x322D,"A4EC"],
+ #[0x322E,"AAF7"],
+ #[0x322F,"A467"],
+ #[0x3230,"A4E9"],
+ #[0x3232,"A6B3"],
+ #[0x3233,"AAC0"],
+ #[0x3234,"A657"],
+ #[0x3235,"AF53"],
+ #[0x3236,"B05D"],
+ #[0x3237,"AFAC"],
+ #[0x3238,"B3D2"],
+ #[0x3239,"A54E"],
+ #[0x323A,"A949"],
+ #[0x323B,"BEC7"],
+ #[0x323C,"BACA"],
+ #[0x323D,"A5F8"],
+ #[0x323E,"B8EA"],
+ #[0x323F,"A8F3"],
+ #[0x3240,"B2BD"],
+ #[0x3241,"A5F0"],
+ #[0x3242,"A6DB"],
+ #[0x3243,"A6DC"],
+ #[0x3280,"A440"],
+ #[0x3281,"A447"],
+ #[0x3282,"A454"],
+ #[0x3283,"A57C"],
+ #[0x3284,"A4AD"],
+ #[0x3285,"A4BB"],
+ #[0x3286,"A443"],
+ #[0x3287,"A44B"],
+ #[0x3288,"A445"],
+ #[0x3289,"A451"],
+ #[0x328A,"A4EB"],
+ #[0x328B,"A4F5"],
+ #[0x328C,"A4F4"],
+ #[0x328D,"A4EC"],
+ #[0x328E,"AAF7"],
+ #[0x328F,"A467"],
+ #[0x3290,"A4E9"],
+ #[0x3291,"AEE8"],
+ #[0x3292,"A6B3"],
+ #[0x3293,"AAC0"],
+ #[0x3294,"A657"],
+ #[0x3295,"AF53"],
+ #[0x3296,"B05D"],
+ #[0x3297,"AFAC"],
+ #[0x3298,"B3D2"],
+ #[0x3299,"AFB5"],
+ #[0x329A,"A86B"],
+ #[0x329B,"A46B"],
+ #[0x329C,"BE41"],
+ #[0x329D,"C075"],
+ #[0x329E,"A64C"],
+ #[0x329F,"AA60"],
+ #[0x32A0,"B6B5"],
+ #[0x32A1,"A5F0"],
+ #[0x32A2,"BC67"],
+ #[0x32A4,"A457"],
+ #[0x32A5,"A4A4"],
+ #[0x32A6,"A455"],
+ #[0x32A7,"A5AA"],
+ #[0x32A8,"A56B"],
+ #[0x32A9,"C2E5"],
+ #[0x32AA,"A976"],
+ #[0x32AB,"BEC7"],
+ #[0x32AC,"BACA"],
+ #[0x32AD,"A5F8"],
+ #[0x32AE,"B8EA"],
+ #[0x32AF,"A8F3"],
+ #[0x32B0,"A95D"],
+ #[0x47B6,"9EE5"],
+ #[0xF900,"B05A"],
+ #[0xF901,"A7F3"],
+ #[0xF902,"A8AE"],
+ #[0xF903,"B8EB"],
+ #[0xF904,"B7C6"],
+ #[0xF905,"A6EA"],
+ #[0xF906,"A579"],
+ #[0xF908,"C074"],
+ #[0xF909,"ABB4"],
+ #[0xF90A,"AAF7"],
+ #[0xF90B,"B3E2"],
+ #[0xF90C,"A960"],
+ #[0xF90D,"C369"],
+ #[0xF90E,"C4EE"],
+ #[0xF90F,"C3B9"],
+ #[0xF910,"C5DA"],
+ #[0xF911,"C1B3"],
+ #[0xF912,"BB72"],
+ #[0xF913,"C5DE"],
+ #[0xF914,"BCD6"],
+ #[0xF915,"ACA5"],
+ #[0xF916,"AF4F"],
+ #[0xF917,"AF5F"],
+ #[0xF918,"B8A8"],
+ #[0xF919,"B954"],
+ #[0xF91A,"C064"],
+ #[0xF91B,"B6C3"],
+ #[0xF91C,"A75A"],
+ #[0xF91D,"C4E6"],
+ #[0xF91E,"C4EA"],
+ #[0xF91F,"C4F5"],
+ #[0xF920,"C67D"],
+ #[0xF921,"B450"],
+ #[0xF922,"C0DD"],
+ #[0xF923,"C2C5"],
+ #[0xF924,"C4B0"],
+ #[0xF925,"A9D4"],
+ #[0xF926,"C3BE"],
+ #[0xF927,"C4FA"],
+ #[0xF928,"B459"],
+ #[0xF929,"AED4"],
+ #[0xF92A,"AEF6"],
+ #[0xF92B,"AF54"],
+ #[0xF92D,"A8D3"],
+ #[0xF92E,"A74E"],
+ #[0xF92F,"B3D2"],
+ #[0xF930,"BEDB"],
+ #[0xF931,"C372"],
+ #[0xF932,"C46C"],
+ #[0xF933,"BF63"],
+ #[0xF934,"A6D1"],
+ #[0xF935,"C4AA"],
+ #[0xF936,"B8B8"],
+ #[0xF937,"B8F4"],
+ #[0xF938,"C553"],
+ #[0xF939,"BE7C"],
+ #[0xF93A,"C64F"],
+ #[0xF93B,"B84C"],
+ #[0xF93C,"B853"],
+ #[0xF93D,"BAF1"],
+ #[0xF93E,"DB77"],
+ #[0xF93F,"BFFD"],
+ #[0xF940,"B3C0"],
+ #[0xF941,"BDD7"],
+ #[0xF942,"C362"],
+ #[0xF943,"A7CB"],
+ #[0xF944,"C5A2"],
+ #[0xF945,"C5A4"],
+ #[0xF946,"A863"],
+ #[0xF947,"BD55"],
+ #[0xF948,"B8EF"],
+ #[0xF949,"B970"],
+ #[0xF94A,"C253"],
+ #[0xF94B,"B9F0"],
+ #[0xF94C,"BCD3"],
+ #[0xF94D,"B25C"],
+ #[0xF94E,"BA7C"],
+ #[0xF94F,"B2D6"],
+ #[0xF950,"C15C"],
+ #[0xF951,"ADAE"],
+ #[0xF952,"B0C7"],
+ #[0xF953,"A6D8"],
+ #[0xF954,"BBFE"],
+ #[0xF955,"ADE2"],
+ #[0xF956,"B857"],
+ #[0xF957,"BAF0"],
+ #[0xF958,"B5D9"],
+ #[0xF959,"B3AE"],
+ #[0xF95A,"C5AA"],
+ #[0xF95B,"CED4"],
+ #[0xF95C,"BCD6"],
+ #[0xF95D,"BFD5"],
+ #[0xF95E,"A4A6"],
+ #[0xF95F,"B9E7"],
+ #[0xF960,"ABE3"],
+ #[0xF961,"B276"],
+ #[0xF962,"B2A7"],
+ #[0xF963,"A55F"],
+ #[0xF964,"EDA8"],
+ #[0xF965,"AB4B"],
+ #[0xF966,"B45F"],
+ #[0xF967,"A4A3"],
+ #[0xF968,"AA63"],
+ #[0xF969,"BCC6"],
+ #[0xF96A,"AFC1"],
+ #[0xF96B,"B0D1"],
+ #[0xF96C,"B6EB"],
+ #[0xF96D,"ACD9"],
+ #[0xF96E,"B8AD"],
+ #[0xF96F,"BBA1"],
+ #[0xF970,"B1FE"],
+ #[0xF971,"A8B0"],
+ #[0xF972,"A848"],
+ #[0xF973,"AC42"],
+ #[0xF974,"AD59"],
+ #[0xF975,"B1B0"],
+ #[0xF976,"B2A4"],
+ #[0xF977,"AB47"],
+ #[0xF978,"A8E2"],
+ #[0xF97A,"B1E7"],
+ #[0xF97B,"C2B3"],
+ #[0xF97C,"A87D"],
+ #[0xF97D,"BDCC"],
+ #[0xF97E,"B671"],
+ #[0xF97F,"C079"],
+ #[0xF980,"A766"],
+ #[0xF981,"A46B"],
+ #[0xF982,"C366"],
+ #[0xF983,"AEC8"],
+ #[0xF984,"C26F"],
+ #[0xF985,"C472"],
+ #[0xF986,"BE5B"],
+ #[0xF987,"C67A"],
+ #[0xF988,"C452"],
+ #[0xF989,"BEA4"],
+ #[0xF98A,"A44F"],
+ #[0xF98B,"BEE4"],
+ #[0xF98C,"BEFA"],
+ #[0xF98D,"F765"],
+ #[0xF98E,"A67E"],
+ #[0xF98F,"BCA6"],
+ #[0xF990,"C5CA"],
+ #[0xF991,"BCBF"],
+ #[0xF992,"BAA7"],
+ #[0xF993,"B7D2"],
+ #[0xF994,"E6A3"],
+ #[0xF996,"BD6D"],
+ #[0xF997,"C170"],
+ #[0xF998,"BDFB"],
+ #[0xF999,"BDAC"],
+ #[0xF99A,"B373"],
+ #[0xF99B,"C1E5"],
+ #[0xF99C,"A643"],
+ #[0xF99D,"A648"],
+ #[0xF99E,"AB7C"],
+ #[0xF99F,"AF50"],
+ #[0xF9A0,"B5F5"],
+ #[0xF9A1,"BBA1"],
+ #[0xF9A2,"B747"],
+ #[0xF9A3,"A9C0"],
+ #[0xF9A4,"B1C9"],
+ #[0xF9A5,"C0D4"],
+ #[0xF9A6,"C3AE"],
+ #[0xF9A7,"C279"],
+ #[0xF9A8,"A54F"],
+ #[0xF9A9,"CBF1"],
+ #[0xF9AA,"B9E7"],
+ #[0xF9AB,"C0AD"],
+ #[0xF9AC,"CCB0"],
+ #[0xF9AD,"ACC2"],
+ #[0xF9AE,"BCFC"],
+ #[0xF9AF,"B2DC"],
+ #[0xF9B0,"B2E2"],
+ #[0xF9B1,"B961"],
+ #[0xF9B2,"B973"],
+ #[0xF9B3,"C646"],
+ #[0xF9B4,"BBE2"],
+ #[0xF9B5,"A8D2"],
+ #[0xF9B6,"C2A7"],
+ #[0xF9B7,"C4BF"],
+ #[0xF9B8,"C1F5"],
+ #[0xF9B9,"B463"],
+ #[0xF9BA,"A446"],
+ #[0xF9BB,"B9B1"],
+ #[0xF9BC,"BC64"],
+ #[0xF9BD,"A7BF"],
+ #[0xF9BE,"AEC6"],
+ #[0xF9BF,"BCD6"],
+ #[0xF9C0,"BF52"],
+ #[0xF9C1,"C0F8"],
+ #[0xF9C2,"E764"],
+ #[0xF9C3,"BFF1"],
+ #[0xF9C4,"C073"],
+ #[0xF9C5,"B777"],
+ #[0xF9C6,"A8BF"],
+ #[0xF9C7,"BC42"],
+ #[0xF9C8,"CCD8"],
+ #[0xF9C9,"AC68"],
+ #[0xF9CA,"AC79"],
+ #[0xF9CB,"B7C8"],
+ #[0xF9CC,"AF5B"],
+ #[0xF9CD,"AF64"],
+ #[0xF9CE,"B2B8"],
+ #[0xF9CF,"AFC3"],
+ #[0xF9D0,"C3FE"],
+ #[0xF9D1,"A4BB"],
+ #[0xF9D2,"BCAE"],
+ #[0xF9D3,"B3B0"],
+ #[0xF9D4,"ADDB"],
+ #[0xF9D5,"B15B"],
+ #[0xF9D6,"B25F"],
+ #[0xF9D7,"BDFC"],
+ #[0xF9D8,"ABDF"],
+ #[0xF9D9,"B758"],
+ #[0xF9DA,"AEDF"],
+ #[0xF9DB,"B276"],
+ #[0xF9DC,"B6A9"],
+ #[0xF9DD,"A751"],
+ #[0xF9DE,"A64F"],
+ #[0xF9DF,"BC69"],
+ #[0xF9E0,"A9F6"],
+ #[0xF9E1,"A7F5"],
+ #[0xF9E2,"B1F9"],
+ #[0xF9E3,"AA64"],
+ #[0xF9E4,"B27A"],
+ #[0xF9E5,"B567"],
+ #[0xF9E6,"BFA9"],
+ #[0xF9E8,"B8CC"],
+ #[0xF9E9,"A8BD"],
+ #[0xF9EA,"C2F7"],
+ #[0xF9EB,"B0CE"],
+ #[0xF9EC,"B7C4"],
+ #[0xF9ED,"A75B"],
+ #[0xF9EE,"BF4D"],
+ #[0xF9EF,"BF5A"],
+ #[0xF9F0,"C4A9"],
+ #[0xF9F2,"C5EC"],
+ #[0xF9F3,"C5EF"],
+ #[0xF9F4,"AA4C"],
+ #[0xF9F5,"B24F"],
+ #[0xF9F6,"C17B"],
+ #[0xF9F7,"A5DF"],
+ #[0xF9F8,"B2C1"],
+ #[0xF9F9,"B2C9"],
+ #[0xF9FA,"AAAC"],
+ #[0xF9FB,"AAA5"],
+ #[0xF9FC,"C3D1"],
+ #[0xF9FD,"A4B0"],
+ #[0xF9FE,"AFF9"],
+ #[0xF9FF,"A8EB"],
+ #[0xFA00,"A4C1"],
+ #[0xFA01,"ABD7"],
+ #[0xFA02,"A9DD"],
+ #[0xFA03,"BF7D"],
+ #[0xFA04,"A676"],
+ #[0xFA05,"AC7D"],
+ #[0xFA06,"BCC9"],
+ #[0xFA07,"BFE7"],
+ #[0xFA08,"A6E6"],
+ #[0xFA09,"ADB0"],
+ #[0xFA0A,"A8A3"],
+ #[0xFA0B,"B9F8"],
+ #[0xFA10,"B6EF"],
+ #[0xFA12,"B4B8"],
+ #[0xFA15,"E8F9"],
+ #[0xFA16,"BDDE"],
+ #[0xFA17,"AF71"],
+ #[0xFA19,"AFAB"],
+ #[0xFA1A,"B2BB"],
+ #[0xFA1B,"BAD6"],
+ #[0xFA1C,"B974"],
+ #[0xFA1D,"BAEB"],
+ #[0xFA1E,"A6D0"],
+ #[0xFA22,"BDD1"],
+ #[0xFA25,"B668"],
+ #[0xFA26,"B3A3"],
+ #[0xFA2A,"B6BA"],
+ #[0xFA2B,"B97D"],
+ #[0xFA2C,"C05D"],
+ #[0xFA2D,"C562"],
+ #[0xFF3E,"A173"],
+ #[0xFF40,"A1A5"],
+ #[0xFF64,"A14E"],
+]
diff --git a/enc/trans/big5-tbl.rb b/enc/trans/big5-uao-tbl.rb
index b093cb0d77..295fbfdda5 100644
--- a/enc/trans/big5-tbl.rb
+++ b/enc/trans/big5-uao-tbl.rb
@@ -1,218 +1,5219 @@
-BIG5_TO_UCS_TBL= [
- ["A246",0xA2],
- ["A247",0xA3],
- ["A244",0xA5],
- ["A1B1",0xA7],
- ["A258",0xB0],
- ["A1D3",0xB1],
- ["A150",0xB7],
- ["A1D1",0xD7],
- ["A1D2",0xF7],
- ["A3BE",0x2C7],
- ["A3BC",0x2C9],
- ["A3BD",0x2CA],
- ["A3BF",0x2CB],
- ["A3BB",0x2D9],
- ["A344",0x391],
- ["A345",0x392],
- ["A346",0x393],
- ["A347",0x394],
- ["A348",0x395],
- ["A349",0x396],
- ["A34A",0x397],
- ["A34B",0x398],
- ["A34C",0x399],
- ["A34D",0x39A],
- ["A34E",0x39B],
- ["A34F",0x39C],
- ["A350",0x39D],
- ["A351",0x39E],
- ["A352",0x39F],
- ["A353",0x3A0],
- ["A354",0x3A1],
- ["A355",0x3A3],
- ["A356",0x3A4],
- ["A357",0x3A5],
- ["A358",0x3A6],
- ["A359",0x3A7],
- ["A35A",0x3A8],
- ["A35B",0x3A9],
- ["A35C",0x3B1],
- ["A35D",0x3B2],
- ["A35E",0x3B3],
- ["A35F",0x3B4],
- ["A360",0x3B5],
- ["A361",0x3B6],
- ["A362",0x3B7],
- ["A363",0x3B8],
- ["A364",0x3B9],
- ["A365",0x3BA],
- ["A366",0x3BB],
- ["A367",0x3BC],
- ["A368",0x3BD],
- ["A369",0x3BE],
- ["A36A",0x3BF],
- ["A36B",0x3C0],
- ["A36C",0x3C1],
- ["A36D",0x3C3],
- ["A36E",0x3C4],
- ["A36F",0x3C5],
- ["A370",0x3C6],
- ["A371",0x3C7],
- ["A372",0x3C8],
- ["A373",0x3C9],
- ["C7B3",0x401],
- ["C7B1",0x414],
- ["C7B2",0x415],
- ["C7B4",0x416],
- ["C7B5",0x417],
- ["C7B6",0x418],
- ["C7B7",0x419],
- ["C7B8",0x41A],
- ["C7B9",0x41B],
- ["C7BA",0x41C],
- ["C7BB",0x423],
- ["C7BC",0x424],
- ["C7BD",0x425],
- ["C7BE",0x426],
- ["C7BF",0x427],
- ["C7C0",0x428],
- ["C7C1",0x429],
- ["C7C2",0x42A],
- ["C7C3",0x42B],
- ["C7C4",0x42C],
- ["C7C5",0x42D],
- ["C7C6",0x42E],
- ["C7C7",0x42F],
- ["C7C8",0x430],
- ["C7C9",0x431],
- ["C7CA",0x432],
- ["C7CB",0x433],
- ["C7CC",0x434],
- ["C7CD",0x435],
- ["C7CF",0x436],
- ["C7D0",0x437],
- ["C7D1",0x438],
- ["C7D2",0x439],
- ["C7D3",0x43A],
- ["C7D4",0x43B],
- ["C7D5",0x43C],
- ["C7D6",0x43D],
- ["C7D7",0x43E],
- ["C7D8",0x43F],
- ["C7D9",0x440],
- ["C7DA",0x441],
- ["C7DB",0x442],
- ["C7DC",0x443],
- ["C7DD",0x444],
- ["C7DE",0x445],
- ["C7DF",0x446],
- ["C7E0",0x447],
- ["C7E1",0x448],
- ["C7E2",0x449],
- ["C7E3",0x44A],
- ["C7E4",0x44B],
- ["C7E5",0x44C],
- ["C7E6",0x44D],
- ["C7E7",0x44E],
- ["C7E8",0x44F],
- ["C7CE",0x451],
+BIG5_UAO_TO_UCS_TBL = [
+ ["8140",0x4E17],
+ ["8141",0x4E22],
+ ["8142",0x4E2C],
+ ["8143",0x4E55],
+ ["8144",0x4E62],
+ ["8145",0x4E8A],
+ ["8146",0x4EB0],
+ ["8147",0x4EEB],
+ ["8148",0x4EED],
+ ["8149",0x4EFC],
+ ["814A",0x4F1C],
+ ["814B",0x4F8A],
+ ["814C",0x4FFF],
+ ["814D",0x5042],
+ ["814E",0x5050],
+ ["814F",0x5078],
+ ["8150",0x50D8],
+ ["8151",0x50DE],
+ ["8152",0x50F4],
+ ["8153",0x5116],
+ ["8154",0x514A],
+ ["8155",0x5151],
+ ["8156",0x5164],
+ ["8157",0x516A],
+ ["8158",0x5185],
+ ["8159",0x5190],
+ ["815A",0x519D],
+ ["815B",0x51A6],
+ ["815C",0x51A8],
+ ["815D",0x51A9],
+ ["815E",0x51C7],
+ ["815F",0x51D6],
+ ["8160",0x51DB],
+ ["8161",0x51EC],
+ ["8162",0x51FC],
+ ["8163",0x520B],
+ ["8164",0x5214],
+ ["8165",0x5215],
+ ["8166",0x5220],
+ ["8167",0x522B],
+ ["8168",0x5239],
+ ["8169",0x524F],
+ ["816A",0x5271],
+ ["816B",0x5290],
+ ["816C",0x5292],
+ ["816D",0x5294],
+ ["816E",0x529C],
+ ["816F",0x52AF],
+ ["8170",0x52B5],
+ ["8171",0x52D0],
+ ["8172",0x5300],
+ ["8173",0x5307],
+ ["8174",0x5324],
+ ["8175",0x5346],
+ ["8176",0x535F],
+ ["8177",0x5393],
+ ["8178",0x53B0],
+ ["8179",0x53DD],
+ ["817A",0x5423],
+ ["817B",0x5450],
+ ["817C",0x5451],
+ ["817D",0x548A],
+ ["817E",0x549D],
+ ["81A1",0x54A3],
+ ["81A2",0x54B4],
+ ["81A3",0x54D0],
+ ["81A4",0x5523],
+ ["81A5",0x553F],
+ ["81A6",0x554C],
+ ["81A7",0x5553],
+ ["81A8",0x555D],
+ ["81A9",0x556C],
+ ["81AA",0x559E],
+ ["81AB",0x55A9],
+ ["81AC",0x55EC],
+ ["81AD",0x55F5],
+ ["81AE",0x5623],
+ ["81AF",0x5650],
+ ["81B0",0x567C],
+ ["81B1",0x568A],
+ ["81B2",0x5694],
+ ["81B3",0x56A0],
+ ["81B4",0x56AF],
+ ["81B5",0x56D8],
+ ["81B6",0x5700],
+ ["81B7",0x5759],
+ ["81B8",0x5765],
+ ["81B9",0x577F],
+ ["81BA",0x5785],
+ ["81BB",0x5789],
+ ["81BC",0x57A1],
+ ["81BD",0x57AC],
+ ["81BE",0x57B4],
+ ["81BF",0x57C0],
+ ["81C0",0x57C8],
+ ["81C1",0x57D3],
+ ["81C2",0x57EF],
+ ["81C3",0x5844],
+ ["81C4",0x586C],
+ ["81C5",0x5892],
+ ["81C6",0x589A],
+ ["81C7",0x58B2],
+ ["81C8",0x58B8],
+ ["81C9",0x58E5],
+ ["81CA",0x58FB],
+ ["81CB",0x5902],
+ ["81CC",0x590B],
+ ["81CD",0x5910],
+ ["81CE",0x5918],
+ ["81CF",0x591B],
+ ["81D0",0x748C],
+ ["81D1",0x748D],
+ ["81D2",0x7499],
+ ["81D3",0x749B],
+ ["81D4",0x74A4],
+ ["81D5",0x74B4],
+ ["81D6",0x74B9],
+ ["81D7",0x74C8],
+ ["81D8",0x74CC],
+ ["81D9",0x74D0],
+ ["81DA",0x74D3],
+ ["81DB",0x7542],
+ ["81DC",0x7555],
+ ["81DD",0x756E],
+ ["81DE",0x758D],
+ ["81DF",0x759E],
+ ["81E0",0x75DC],
+ ["81E1",0x762C],
+ ["81E2",0x764F],
+ ["81E3",0x7651],
+ ["81E4",0x7673],
+ ["81E5",0x7674],
+ ["81E6",0x76A5],
+ ["81E7",0x76D9],
+ ["81E8",0x770E],
+ ["81E9",0x770F],
+ ["81EA",0x7758],
+ ["81EB",0x7772],
+ ["81EC",0x7777],
+ ["81ED",0x7778],
+ ["81EE",0x777A],
+ ["81EF",0x777B],
+ ["81F0",0x7798],
+ ["81F1",0x77AF],
+ ["81F2",0x77BE],
+ ["81F3",0x77C3],
+ ["81F4",0x77C5],
+ ["81F5",0x77CB],
+ ["81F6",0x77DD],
+ ["81F7",0x77E6],
+ ["81F8",0x77F4],
+ ["81F9",0x781E],
+ ["81FA",0x783D],
+ ["81FB",0x7842],
+ ["81FC",0x7844],
+ ["81FD",0x784B],
+ ["81FE",0x7851],
+ ["8240",0x5516],
+ ["8241",0x58F7],
+ ["8242",0x9834],
+ ["8243",0x845B],
+ ["8244",0x7114],
+ ["8245",0x8276],
+ ["8246",0x8956],
+ ["8247",0x9D2C],
+ ["8248",0x9D0E],
+ ["8249",0x8EAF],
+ ["824A",0x6062],
+ ["824B",0x6666],
+ ["824C",0x86CE],
+ ["824D",0x64B9],
+ ["824E",0x938C],
+ ["824F",0x565B],
+ ["8250",0x6F45],
+ ["8251",0x8ACC],
+ ["8252",0x7149],
+ ["8253",0x5DCC],
+ ["8254",0x8749],
+ ["8255",0x9A28],
+ ["8256",0x7BAA],
+ ["8257",0x8D0B],
+ ["8258",0x9957],
+ ["8259",0x5C2D],
+ ["825A",0x7E4B],
+ ["825B",0x981A],
+ ["825C",0x5026],
+ ["825D",0x6372],
+ ["825E",0x9E78],
+ ["825F",0x783F],
+ ["8260",0x9EB9],
+ ["8261",0x9EBA],
+ ["8262",0x8CCE],
+ ["8263",0x8B83],
+ ["8264",0xEF79],
+ ["8265",0x848B],
+ ["8266",0x91A4],
+ ["8267",0x7A63],
+ ["8268",0x64B0],
+ ["8269",0x5DFD],
+ ["826A",0x5E96],
+ ["826B",0x8061],
+ ["826C",0x6955],
+ ["826D",0x7AEA],
+ ["826E",0x7026],
+ ["826F",0x68BC],
+ ["8270",0x7977],
+ ["8271",0x6D9C],
+ ["8272",0x8FE9],
+ ["8273",0x7962],
+ ["8274",0x56A2],
+ ["8275",0x877F],
+ ["8276",0x5265],
+ ["8277",0x7984],
+ ["8278",0x6E8C],
+ ["8279",0x9197],
+ ["827A",0x7B86],
+ ["827B",0x982C],
+ ["827C",0x685D],
+ ["827D",0x4FAD],
+ ["827E",0x85AE],
+ ["82A1",0x7BED],
+ ["82A2",0x874B],
+ ["82A3",0x5036],
+ ["82A4",0x690D],
+ ["82A5",0x6B96],
+ ["82A6",0x614E],
+ ["82A7",0x5177],
+ ["82A8",0x771F],
+ ["82A9",0x5024],
+ ["82AA",0x7F6E],
+ ["82AB",0x76F4],
+ ["82AC",0x69D9],
+ ["82AD",0x60E3],
+ ["82AE",0x62F6],
+ ["82AF",0x545F],
+ ["82B0",0x9784],
+ ["82B1",0x564C],
+ ["82B2",0x50C5],
+ ["82B3",0x5618],
+ ["82B4",0x865E],
+ ["82B5",0x5932],
+ ["82B6",0x595B],
+ ["82B7",0x595D],
+ ["82B8",0x5963],
+ ["82B9",0x596C],
+ ["82BA",0x599B],
+ ["82BB",0x59D7],
+ ["82BC",0x59EB],
+ ["82BD",0x5A1A],
+ ["82BE",0x5AAA],
+ ["82BF",0x5AD0],
+ ["82C0",0x5AF1],
+ ["82C1",0x5B36],
+ ["82C2",0x5BC9],
+ ["82C3",0x5BF3],
+ ["82C4",0x5C13],
+ ["82C5",0x5C1C],
+ ["82C6",0x5C1E],
+ ["82C7",0x5C53],
+ ["82C8",0x5C99],
+ ["82C9",0x5C9C],
+ ["82CA",0x5CBA],
+ ["82CB",0x5CBB],
+ ["82CC",0x5CC1],
+ ["82CD",0x5CF5],
+ ["82CE",0x5CFA],
+ ["82CF",0x5D15],
+ ["82D0",0x5D18],
+ ["82D1",0x5D3E],
+ ["82D2",0x5D53],
+ ["82D3",0x5D5C],
+ ["82D4",0x5D6D],
+ ["82D5",0x5D73],
+ ["82D6",0x5D74],
+ ["82D7",0x5D8C],
+ ["82D8",0x5D90],
+ ["82D9",0x5DB9],
+ ["82DA",0x5DD0],
+ ["82DB",0x5DD3],
+ ["82DC",0x5E47],
+ ["82DD",0x5E64],
+ ["82DE",0x5ECF],
+ ["82DF",0x5ED0],
+ ["82E0",0x5EEA],
+ ["82E1",0x5EF0],
+ ["82E2",0x5F09],
+ ["82E3",0x5F0C],
+ ["82E4",0x5F11],
+ ["82E5",0x5F21],
+ ["82E6",0x5F34],
+ ["82E7",0x5F41],
+ ["82E8",0x5F45],
+ ["82E9",0x5F51],
+ ["82EA",0x5F5C],
+ ["82EB",0x5F66],
+ ["82EC",0x5F83],
+ ["82ED",0x5FF0],
+ ["82EE",0x604A],
+ ["82EF",0x6060],
+ ["82F0",0x608B],
+ ["82F1",0x60A6],
+ ["82F2",0x60DE],
+ ["82F3",0x6111],
+ ["82F4",0x6120],
+ ["82F5",0x6121],
+ ["82F6",0x613C],
+ ["82F7",0x613D],
+ ["82F8",0x6198],
+ ["82F9",0x61B7],
+ ["82FA",0x61F4],
+ ["82FB",0x6213],
+ ["82FC",0x621D],
+ ["82FD",0x621E],
+ ["82FE",0x6237],
+ ["8340",0x5E7A],
+ ["8341",0x6C10],
+ ["8342",0x53CE],
+ ["8343",0x4F2B],
+ ["8344",0x4F4E],
+ ["8345",0x5434],
+ ["8346",0x56F1],
+ ["8347",0x58EE],
+ ["8348",0x5939],
+ ["8349",0x5986],
+ ["834A",0x5C2C],
+ ["834B",0x51B3],
+ ["834C",0x51B2],
+ ["834D",0x707E],
+ ["834E",0x89C1],
+ ["834F",0x89D2],
+ ["8350",0x8D1D],
+ ["8351",0x8F66],
+ ["8352",0x4E9A],
+ ["8353",0x6765],
+ ["8354",0x4ED1],
+ ["8355",0x4E24],
+ ["8356",0x534F],
+ ["8357",0x5C4A],
+ ["8358",0x5188],
+ ["8359",0x5E95],
+ ["835A",0x62B5],
+ ["835B",0x4E1C],
+ ["835C",0x4E89],
+ ["835D",0x72B6],
+ ["835E",0x7C7C],
+ ["835F",0x7EA0],
+ ["8360",0x5367],
+ ["8361",0x8F67],
+ ["8362",0x90B8],
+ ["8363",0x957F],
+ ["8364",0x95E8],
+ ["8365",0x4FA0],
+ ["8366",0x4FA3],
+ ["8367",0x5156],
+ ["8368",0x5219],
+ ["8369",0x52B2],
+ ["836A",0x5374],
+ ["836B",0x5942],
+ ["836C",0x5E05],
+ ["836D",0x67E2],
+ ["836E",0x6C79],
+ ["836F",0x4E3A],
+ ["8370",0x7EA3],
+ ["8371",0x7EA2],
+ ["8372",0x7EAA],
+ ["8373",0x7EAB],
+ ["8374",0x7EA5],
+ ["8375",0x7EA6],
+ ["8376",0x7EA1],
+ ["8377",0x80DD],
+ ["8378",0x82CE],
+ ["8379",0x8BA1],
+ ["837A",0x8BA2],
+ ["837B",0x8BA3],
+ ["837C",0x8D1E],
+ ["837D",0x8D1F],
+ ["837E",0x519B],
+ ["83A1",0x8F68],
+ ["83A2",0x95E9],
+ ["83A3",0x97E6],
+ ["83A4",0x9875],
+ ["83A5",0x98CE],
+ ["83A6",0x98DE],
+ ["83A7",0x4FE9],
+ ["83A8",0x4EEC],
+ ["83A9",0x4F25],
+ ["83AA",0x4E2A],
+ ["83AB",0x4F26],
+ ["83AC",0x4ED3],
+ ["83AD",0x51BB],
+ ["83AE",0x521A],
+ ["83AF",0x5265],
+ ["83B0",0x5458],
+ ["83B1",0x5A31],
+ ["83B2",0x5B59],
+ ["83B3",0x5CE1],
+ ["83B4",0x5C9B],
+ ["83B5",0x5C98],
+ ["83B6",0x5E08],
+ ["83B7",0x5E93],
+ ["83B8",0x5F84],
+ ["83B9",0x631F],
+ ["83BA",0x65F6],
+ ["83BB",0x664B],
+ ["83BC",0x4E66],
+ ["83BD",0x6CFE],
+ ["83BE",0x6D43],
+ ["83BF",0x4E4C],
+ ["83C0",0x72ED],
+ ["83C1",0x72C8],
+ ["83C2",0x4EA9],
+ ["83C3",0x7825],
+ ["83C4",0x79EA],
+ ["83C5",0x7EBA],
+ ["83C6",0x7EB1],
+ ["83C7",0x7EB9],
+ ["83C8",0x7EAF],
+ ["83C9",0x7EBD],
+ ["83CA",0x7EB0],
+ ["83CB",0x7EA7],
+ ["83CC",0x7EAD],
+ ["83CD",0x7EB3],
+ ["83CE",0x7EB8],
+ ["83CF",0x7EB7],
+ ["83D0",0x80C1],
+ ["83D1",0x8109],
+ ["83D2",0x520D],
+ ["83D3",0x8BB0],
+ ["83D4",0x8BA6],
+ ["83D5",0x8BA8],
+ ["83D6",0x8BA7],
+ ["83D7",0x8BAA],
+ ["83D8",0x8BAF],
+ ["83D9",0x8BAD],
+ ["83DA",0x8BAB],
+ ["83DB",0x5C82],
+ ["83DC",0x8D22],
+ ["83DD",0x8D21],
+ ["83DE",0x8F69],
+ ["83DF",0x8F6B],
+ ["83E0",0x9489],
+ ["83E1",0x9488],
+ ["83E2",0x948A],
+ ["83E3",0x948B],
+ ["83E4",0x95EA],
+ ["83E5",0x9635],
+ ["83E6",0x9655],
+ ["83E7",0x9649],
+ ["83E8",0x9965],
+ ["83E9",0x9A6C],
+ ["83EA",0x9AA8],
+ ["83EB",0x4F2A],
+ ["83EC",0x4F1F],
+ ["83ED",0x4FA6],
+ ["83EE",0x4FA7],
+ ["83EF",0x52A1],
+ ["83F0",0x52A8],
+ ["83F1",0x533A],
+ ["83F2",0x53C2],
+ ["83F3",0x54D1],
+ ["83F4",0x95EE],
+ ["83F5",0x8854],
+ ["83F6",0x56FD],
+ ["83F7",0x575A],
+ ["83F8",0x57A9],
+ ["83F9",0x6267],
+ ["83FA",0x591F],
+ ["83FB",0x5A04],
+ ["83FC",0x5987],
+ ["83FD",0x4E13],
+ ["83FE",0x5C06],
+ ["8440",0x5C49],
+ ["8441",0x5CE5],
+ ["8442",0x5C97],
+ ["8443",0x5E26],
+ ["8444",0x5E10],
+ ["8445",0x5F20],
+ ["8446",0x5F3A],
+ ["8447",0x4ECE],
+ ["8448",0x5F95],
+ ["8449",0x51C4],
+ ["844A",0x6005],
+ ["844B",0x626B],
+ ["844C",0x6302],
+ ["844D",0x626A],
+ ["844E",0x62A1],
+ ["844F",0x6323],
+ ["8450",0x8D25],
+ ["8451",0x542F],
+ ["8452",0x659B],
+ ["8453",0x65A9],
+ ["8454",0x663C],
+ ["8455",0x52D6],
+ ["8456",0x5F03],
+ ["8457",0x6761],
+ ["8458",0x67AD],
+ ["8459",0x6740],
+ ["845A",0x6C22],
+ ["845B",0x51C9],
+ ["845C",0x6D45],
+ ["845D",0x6E0A],
+ ["845E",0x6CEA],
+ ["845F",0x6CA6],
+ ["8460",0x51C0],
+ ["8461",0x7275],
+ ["8462",0x72F0],
+ ["8463",0x73B0],
+ ["8464",0x4EA7],
+ ["8465",0x6BD5],
+ ["8466",0x5F02],
+ ["8467",0x4F17],
+ ["8468",0x7ECA],
+ ["8469",0x7EDF],
+ ["846A",0x7ECD],
+ ["846B",0x7ECB],
+ ["846C",0x7ECC],
+ ["846D",0x7EC6],
+ ["846E",0x7EC5],
+ ["846F",0x7EC4],
+ ["8470",0x7EC8],
+ ["8471",0x7EC1],
+ ["8472",0x7EC2],
+ ["8473",0x94B5],
+ ["8474",0x4E60],
+ ["8475",0x835A],
+ ["8476",0x830E],
+ ["8477",0x8392],
+ ["8478",0x5E84],
+ ["8479",0x82CB],
+ ["847A",0x5904],
+ ["847B",0x672F],
+ ["847C",0x886E],
+ ["847D",0x89C5],
+ ["847E",0x89C4],
+ ["84A1",0x8BBF],
+ ["84A2",0x8BB6],
+ ["84A3",0x8BC0],
+ ["84A4",0x8BB7],
+ ["84A5",0x8BB8],
+ ["84A6",0x8BBE],
+ ["84A7",0x8BBC],
+ ["84A8",0x8BB9],
+ ["84A9",0x8D29],
+ ["84AA",0x8D23],
+ ["84AB",0x8D2F],
+ ["84AC",0x8D27],
+ ["84AD",0x8D2A],
+ ["84AE",0x8D2B],
+ ["84AF",0x8F6D],
+ ["84B0",0x8F6F],
+ ["84B1",0x8FD9],
+ ["84B2",0x8FDE],
+ ["84B3",0x8FF3],
+ ["84B4",0x9497],
+ ["84B5",0x9493],
+ ["84B6",0x948F],
+ ["84B7",0x9492],
+ ["84B8",0x95ED],
+ ["84B9",0x9648],
+ ["84BA",0x9646],
+ ["84BB",0x9634],
+ ["84BC",0x9876],
+ ["84BD",0x9877],
+ ["84BE",0x9C7C],
+ ["84BF",0x9E1F],
+ ["84C0",0x5364],
+ ["84C1",0x9EA6],
+ ["84C2",0x5907],
+ ["84C3",0x4F27],
+ ["84C4",0x4F1E],
+ ["84C5",0x51EF],
+ ["84C6",0x5240],
+ ["84C7",0x521B],
+ ["84C8",0x52B3],
+ ["84C9",0x52CB],
+ ["84CA",0x4E27],
+ ["84CB",0x5355],
+ ["84CC",0x54DF],
+ ["84CD",0x5524],
+ ["84CE",0x4E54],
+ ["84CF",0x56F4],
+ ["84D0",0x5C27],
+ ["84D1",0x573A],
+ ["84D2",0x62A5],
+ ["84D3",0x57DA],
+ ["84D4",0x58F6],
+ ["84D5",0x5A32],
+ ["84D6",0x5BFB],
+ ["84D7",0x5C9A],
+ ["84D8",0x5E27],
+ ["84D9",0x5E0F],
+ ["84DA",0x5395],
+ ["84DB",0x53A9],
+ ["84DC",0x6076],
+ ["84DD",0x95F7],
+ ["84DE",0x60EC],
+ ["84DF",0x607B],
+ ["84E0",0x607C],
+ ["84E1",0x62E3],
+ ["84E2",0x6325],
+ ["84E3",0x6362],
+ ["84E4",0x626C],
+ ["84E5",0x67A3],
+ ["84E6",0x680B],
+ ["84E7",0x6808],
+ ["84E8",0x94A6],
+ ["84E9",0x6B8B],
+ ["84EA",0x58F3],
+ ["84EB",0x6C2F],
+ ["84EC",0x6C29],
+ ["84ED",0x6D8C],
+ ["84EE",0x51D1],
+ ["84EF",0x6E6E],
+ ["84F0",0x6DA1],
+ ["84F1",0x6C64],
+ ["84F2",0x6D4B],
+ ["84F3",0x6D51],
+ ["84F4",0x6DA3],
+ ["84F5",0x65E0],
+ ["84F6",0x72B9],
+ ["84F7",0x82CF],
+ ["84F8",0x753B],
+ ["84F9",0x75C9],
+ ["84FA",0x53D1],
+ ["84FB",0x76D7],
+ ["84FC",0x781A],
+ ["84FD",0x79C6],
+ ["84FE",0x7A97],
+ ["8540",0x7B14],
+ ["8541",0x7B0B],
+ ["8542",0x7EDE],
+ ["8543",0x7ED3],
+ ["8544",0x7ED2],
+ ["8545",0x7EDD],
+ ["8546",0x4E1D],
+ ["8547",0x7EDC],
+ ["8548",0x7ED9],
+ ["8549",0x7EDA],
+ ["854A",0x7ED6],
+ ["854B",0x7EDB],
+ ["854C",0x8083],
+ ["854D",0x80BE],
+ ["854E",0x80C0],
+ ["854F",0x534E],
+ ["8550",0x83B1],
+ ["8551",0x82CC],
+ ["8552",0x865A],
+ ["8553",0x89C6],
+ ["8554",0x8BC4],
+ ["8555",0x8BCD],
+ ["8556",0x8BC1],
+ ["8557",0x8BC2],
+ ["8558",0x8BCF],
+ ["8559",0x8BC5],
+ ["855A",0x8BC8],
+ ["855B",0x8BCB],
+ ["855C",0x8BC9],
+ ["855D",0x8BCA],
+ ["855E",0x8BC3],
+ ["855F",0x8D2E],
+ ["8560",0x8D34],
+ ["8561",0x8D30],
+ ["8562",0x8D3B],
+ ["8563",0x8D32],
+ ["8564",0x8D39],
+ ["8565",0x8D3A],
+ ["8566",0x8D35],
+ ["8567",0x4E70],
+ ["8568",0x8D2C],
+ ["8569",0x8D38],
+ ["856A",0x8D37],
+ ["856B",0x8F72],
+ ["856C",0x8F74],
+ ["856D",0x8F76],
+ ["856E",0x8FDB],
+ ["856F",0x90AE],
+ ["8570",0x4E61],
+ ["8571",0x949E],
+ ["8572",0x94AE],
+ ["8573",0x9499],
+ ["8574",0x94A0],
+ ["8575",0x94A7],
+ ["8576",0x949D],
+ ["8577",0x94A4],
+ ["8578",0x94A3],
+ ["8579",0x95F5],
+ ["857A",0x95F0],
+ ["857B",0x5F00],
+ ["857C",0x95F2],
+ ["857D",0x95F4],
+ ["857E",0x95F3],
+ ["85A1",0x961F],
+ ["85A2",0x9636],
+ ["85A3",0x9633],
+ ["85A4",0x97E7],
+ ["85A5",0x9879],
+ ["85A6",0x987A],
+ ["85A7",0x987B],
+ ["85A8",0x996A],
+ ["85A9",0x996D],
+ ["85AA",0x9968],
+ ["85AB",0x996E],
+ ["85AC",0x996C],
+ ["85AD",0x51AF],
+ ["85AE",0x9A6D],
+ ["85AF",0x4E71],
+ ["85B0",0x503A],
+ ["85B1",0x4F20],
+ ["85B2",0x4EC5],
+ ["85B3",0x503E],
+ ["85B4",0x4F24],
+ ["85B5",0x506C],
+ ["85B6",0x94F2],
+ ["85B7",0x52BF],
+ ["85B8",0x79EF],
+ ["85B9",0x6C47],
+ ["85BA",0x5417],
+ ["85BB",0x545C],
+ ["85BC",0x545B],
+ ["85BD",0x56ED],
+ ["85BE",0x5706],
+ ["85BF",0x6D82],
+ ["85C0",0x5757],
+ ["85C1",0x575E],
+ ["85C2",0x57D8],
+ ["85C3",0x8314],
+ ["85C4",0x5965],
+ ["85C5",0x5988],
+ ["85C6",0x7231],
+ ["85C7",0x5FFE],
+ ["85C8",0x6006],
+ ["85C9",0x607A],
+ ["85CA",0x635F],
+ ["85CB",0x62A2],
+ ["85CC",0x6363],
+ ["85CD",0x6784],
+ ["85CE",0x6656],
+ ["85CF",0x6655],
+ ["85D0",0x65F8],
+ ["85D1",0x4F1A],
+ ["85D2",0x4E1A],
+ ["85D3",0x6781],
+ ["85D4",0x6768],
+ ["85D5",0x6862],
+ ["85D6",0x67AB],
+ ["85D7",0x5C81],
+ ["85D8",0x6C9F],
+ ["85D9",0x706D],
+ ["85DA",0x6E7F],
+ ["85DB",0x6ED1],
+ ["85DC",0x6CA7],
+ ["85DD",0x70E6],
+ ["85DE",0x70BC],
+ ["85DF",0x7080],
+ ["85E0",0x7115],
+ ["85E1",0x7237],
+ ["85E2",0x72EE],
+ ["85E3",0x733E],
+ ["85E4",0x73F2],
+ ["85E5",0x5F53],
+ ["85E6",0x76CF],
+ ["85E7",0x7750],
+ ["85E8",0x7741],
+ ["85E9",0x96CE],
+ ["85EA",0x788C],
+ ["85EB",0x8282],
+ ["85EC",0x7B15],
+ ["85ED",0x7CA4],
+ ["85EE",0x7ECF],
+ ["85EF",0x7EE2],
+ ["85F0",0x7ED1],
+ ["85F1",0x7EE5],
+ ["85F2",0x7EE6],
+ ["85F3",0x4E49],
+ ["85F4",0x7FA1],
+ ["85F5",0x5723],
+ ["85F6",0x80A0],
+ ["85F7",0x811A],
+ ["85F8",0x80BF],
+ ["85F9",0x8111],
+ ["85FA",0x8364],
+ ["85FB",0x82C7],
+ ["85FC",0x53F6],
+ ["85FD",0x83B4],
+ ["85FE",0x865E],
+ ["8640",0x864F],
+ ["8641",0x53F7],
+ ["8642",0x8708],
+ ["8643",0x86AC],
+ ["8644",0x8865],
+ ["8645",0x88C5],
+ ["8646",0x8BE7],
+ ["8647",0x8BE5],
+ ["8648",0x8BE6],
+ ["8649",0x8BD5],
+ ["864A",0x8BD7],
+ ["864B",0x8BD8],
+ ["864C",0x8BD9],
+ ["864D",0x8BE3],
+ ["864E",0x8BDA],
+ ["864F",0x8BDD],
+ ["8650",0x8BDB],
+ ["8651",0x8BE1],
+ ["8652",0x8BE2],
+ ["8653",0x8BE0],
+ ["8654",0x8BDF],
+ ["8655",0x8D3C],
+ ["8656",0x8D44],
+ ["8657",0x8D3E],
+ ["8658",0x8D3F],
+ ["8659",0x8D40],
+ ["865A",0x8D41],
+ ["865B",0x8D42],
+ ["865C",0x8D45],
+ ["865D",0x8F83],
+ ["865E",0x8F7D],
+ ["865F",0x8F7C],
+ ["8660",0x8F7E],
+ ["8661",0x519C],
+ ["8662",0x8FD0],
+ ["8663",0x8FBE],
+ ["8664",0x8FDD],
+ ["8665",0x8FC7],
+ ["8666",0x90B9],
+ ["8667",0x94B4],
+ ["8668",0x94B3],
+ ["8669",0x94B9],
+ ["866A",0x94B8],
+ ["866B",0x94BE],
+ ["866C",0x94C0],
+ ["866D",0x94C5],
+ ["866E",0x94A9],
+ ["866F",0x94C2],
+ ["8670",0x94C3],
+ ["8671",0x94C9],
+ ["8672",0x94CB],
+ ["8673",0x949C],
+ ["8674",0x94CD],
+ ["8675",0x94BF],
+ ["8676",0x94C6],
+ ["8677",0x95F8],
+ ["8678",0x9668],
+ ["8679",0x96BD],
+ ["867A",0x7535],
+ ["867B",0x9884],
+ ["867C",0x987D],
+ ["867D",0x987F],
+ ["867E",0x987C],
+ ["86A1",0x9881],
+ ["86A2",0x9882],
+ ["86A3",0x9972],
+ ["86A4",0x9974],
+ ["86A5",0x9971],
+ ["86A6",0x9970],
+ ["86A7",0x9A70],
+ ["86A8",0x9A6E],
+ ["86A9",0x9A6F],
+ ["86AA",0x9E20],
+ ["86AB",0x4FA5],
+ ["86AC",0x4FA8],
+ ["86AD",0x532E],
+ ["86AE",0x538C],
+ ["86AF",0x5C1D],
+ ["86B0",0x5455],
+ ["86B1",0x53F9],
+ ["86B2",0x55BD],
+ ["86B3",0x5567],
+ ["86B4",0x54D4],
+ ["86B5",0x56E2],
+ ["86B6",0x56FE],
+ ["86B7",0x5C18],
+ ["86B8",0x57AB],
+ ["86B9",0x5811],
+ ["86BA",0x5BFF],
+ ["86BB",0x68A6],
+ ["86BC",0x593A],
+ ["86BD",0x5941],
+ ["86BE",0x59AA],
+ ["86BF",0x5B9E],
+ ["86C0",0x5BDD],
+ ["86C1",0x5BF9],
+ ["86C2",0x5C61],
+ ["86C3",0x5D2D],
+ ["86C4",0x5C96],
+ ["86C5",0x5E01],
+ ["86C6",0x5E3C],
+ ["86C7",0x5F7B],
+ ["86C8",0x6001],
+ ["86C9",0x60EF],
+ ["86CA",0x6078],
+ ["86CB",0x60ED],
+ ["86CC",0x60E8],
+ ["86CD",0x6402],
+ ["86CE",0x63B4],
+ ["86CF",0x63BA],
+ ["86D0",0x7545],
+ ["86D1",0x8363],
+ ["86D2",0x67AA],
+ ["86D3",0x6EDA],
+ ["86D4",0x6E0D],
+ ["86D5",0x6C49],
+ ["86D6",0x6EE1],
+ ["86D7",0x6EDE],
+ ["86D8",0x6E10],
+ ["86D9",0x6DA8],
+ ["86DA",0x6D9F],
+ ["86DB",0x6CAA],
+ ["86DC",0x6E14],
+ ["86DD",0x6E17],
+ ["86DE",0x6DA4],
+ ["86DF",0x8367],
+ ["86E0",0x5C14],
+ ["86E1",0x8366],
+ ["86E2",0x72F1],
+ ["86E3",0x7410],
+ ["86E4",0x739B],
+ ["86E5",0x759F],
+ ["86E6",0x75A1],
+ ["86E7",0x75AF],
+ ["86E8",0x75EA],
+ ["86E9",0x5C3D],
+ ["86EA",0x76D1],
+ ["86EB",0x7855],
+ ["86EC",0x796F],
+ ["86ED",0x7978],
+ ["86EE",0x79CD],
+ ["86EF",0x79F0],
+ ["86F0",0x6D3C],
+ ["86F1",0x7A9D],
+ ["86F2",0x7B3A],
+ ["86F3",0x7B5D],
+ ["86F4",0x7EFD],
+ ["86F5",0x7EFE],
+ ["86F6",0x7EFC],
+ ["86F7",0x7EF0],
+ ["86F8",0x7EEB],
+ ["86F9",0x7EFF],
+ ["86FA",0x7D27],
+ ["86FB",0x7F00],
+ ["86FC",0x7EB2],
+ ["86FD",0x7EEE],
+ ["86FE",0x7EF8],
+ ["8740",0x7EF5],
+ ["8741",0x7EB6],
+ ["8742",0x7EF4],
+ ["8743",0x7EEA],
+ ["8744",0x7F01],
+ ["8745",0x7EF6],
+ ["8746",0x7F5A],
+ ["8747",0x95FB],
+ ["8748",0x8385],
+ ["8749",0x76D6],
+ ["874A",0x836A],
+ ["874B",0x82CD],
+ ["874C",0x8680],
+ ["874D",0x8BF5],
+ ["874E",0x8BED],
+ ["874F",0x8BEC],
+ ["8750",0x8BA4],
+ ["8751",0x8BEB],
+ ["8752",0x8BEF],
+ ["8753",0x8BF4],
+ ["8754",0x8BF0],
+ ["8755",0x8BF2],
+ ["8756",0x8BF1],
+ ["8757",0x8BF3],
+ ["8758",0x8BEE],
+ ["8759",0x5BBE],
+ ["875A",0x8D48],
+ ["875B",0x8D4A],
+ ["875C",0x8D75],
+ ["875D",0x8D76],
+ ["875E",0x8F85],
+ ["875F",0x8F84],
+ ["8760",0x8F7B],
+ ["8761",0x8FDC],
+ ["8762",0x900A],
+ ["8763",0x9012],
+ ["8764",0x94F0],
+ ["8765",0x94F6],
+ ["8766",0x94DC],
+ ["8767",0x94ED],
+ ["8768",0x94E2],
+ ["8769",0x94EC],
+ ["876A",0x94E8],
+ ["876B",0x94F5],
+ ["876C",0x94E3],
+ ["876D",0x9602],
+ ["876E",0x95FA],
+ ["876F",0x95FD],
+ ["8770",0x9601],
+ ["8771",0x9600],
+ ["8772",0x9645],
+ ["8773",0x9887],
+ ["8774",0x9886],
+ ["8775",0x98D2],
+ ["8776",0x997A],
+ ["8777",0x997C],
+ ["8778",0x9975],
+ ["8779",0x9977],
+ ["877A",0x9A73],
+ ["877B",0x80AE],
+ ["877C",0x9AB0],
+ ["877D",0x9E23],
+ ["877E",0x9E22],
+ ["87A1",0x51E4],
+ ["87A2",0x9F50],
+ ["87A3",0x4EBF],
+ ["87A4",0x4EEA],
+ ["87A5",0x4EF7],
+ ["87A6",0x4FAC],
+ ["87A7",0x4FA9],
+ ["87A8",0x4FED],
+ ["87A9",0x5267],
+ ["87AA",0x5218],
+ ["87AB",0x5251],
+ ["87AC",0x523D],
+ ["87AD",0x5389],
+ ["87AE",0x5520],
+ ["87AF",0x5634],
+ ["87B0",0x54D7],
+ ["87B1",0x5618],
+ ["87B2",0x55B7],
+ ["87B3",0x5578],
+ ["87B4",0x53FD],
+ ["87B5",0x589F],
+ ["87B6",0x575F],
+ ["87B7",0x5760],
+ ["87B8",0x5815],
+ ["87B9",0x5A34],
+ ["87BA",0x5A75],
+ ["87BB",0x59A9],
+ ["87BC",0x5A07],
+ ["87BD",0x5A06],
+ ["87BE",0x5BBD],
+ ["87BF",0x5BA1],
+ ["87C0",0x5199],
+ ["87C1",0x5C42],
+ ["87C2",0x5D94],
+ ["87C3",0x5E1C],
+ ["87C4",0x5E9F],
+ ["87C5",0x53A8],
+ ["87C6",0x5E99],
+ ["87C7",0x53AE],
+ ["87C8",0x5E7F],
+ ["87C9",0x5F39],
+ ["87CA",0x5E86],
+ ["87CB",0x8651],
+ ["87CC",0x5FE7],
+ ["87CD",0x6002],
+ ["87CE",0x60AF],
+ ["87CF",0x60EE],
+ ["87D0",0x6124],
+ ["87D1",0x6003],
+ ["87D2",0x631A],
+ ["87D3",0x6251],
+ ["87D4",0x635E],
+ ["87D5",0x62E8],
+ ["87D6",0x6320],
+ ["87D7",0x629A],
+ ["87D8",0x63B8],
+ ["87D9",0x63FF],
+ ["87DA",0x654C],
+ ["87DB",0x6570],
+ ["87DC",0x6682],
+ ["87DD",0x6635],
+ ["87DE",0x6837],
+ ["87DF",0x6869],
+ ["87E0",0x67A2],
+ ["87E1",0x6807],
+ ["87E2",0x697C],
+ ["87E3",0x6868],
+ ["87E4",0x4E50],
+ ["87E5",0x679E],
+ ["87E6",0x6B27],
+ ["87E7",0x6B87],
+ ["87E8",0x6BB4],
+ ["87E9",0x6D46],
+ ["87EA",0x6CFC],
+ ["87EB",0x6D01],
+ ["87EC",0x6D47],
+ ["87ED",0x6E83],
+ ["87EE",0x6DA6],
+ ["87EF",0x6DA7],
+ ["87F0",0x6D54],
+ ["87F1",0x70ED],
+ ["87F2",0x5956],
+ ["87F3",0x83B9],
+ ["87F4",0x75AE],
+ ["87F5",0x7691],
+ ["87F6",0x76B1],
+ ["87F7",0x76D8],
+ ["87F8",0x786E],
+ ["87F9",0x7801],
+ ["87FA",0x7A91],
+ ["87FB",0x7A77],
+ ["87FC",0x7F14],
+ ["87FD",0x7EC3],
+ ["87FE",0x7EAC],
+ ["8840",0x7F04],
+ ["8841",0x7F05],
+ ["8842",0x7F09],
+ ["8843",0x7F16],
+ ["8844",0x7F18],
+ ["8845",0x7EBF],
+ ["8846",0x7F0E],
+ ["8847",0x7F13],
+ ["8848",0x7F0D],
+ ["8849",0x7F02],
+ ["884A",0x7F08],
+ ["884B",0x7F07],
+ ["884C",0x9A82],
+ ["884D",0x7F62],
+ ["884E",0x80F6],
+ ["884F",0x80A4],
+ ["8850",0x83B2],
+ ["8851",0x836B],
+ ["8852",0x848B],
+ ["8853",0x867E],
+ ["8854",0x8717],
+ ["8855",0x536B],
+ ["8856",0x8C0A],
+ ["8857",0x8C05],
+ ["8858",0x8C08],
+ ["8859",0x8C06],
+ ["885A",0x8BDE],
+ ["885B",0x8BF7],
+ ["885C",0x8BF8],
+ ["885D",0x8BFE],
+ ["885E",0x8BFF],
+ ["885F",0x8C04],
+ ["8860",0x8C03],
+ ["8861",0x8C01],
+ ["8862",0x8BBA],
+ ["8863",0x8BE4],
+ ["8864",0x8C07],
+ ["8865",0x8BFD],
+ ["8866",0x8C00],
+ ["8867",0x7AD6],
+ ["8868",0x8D54],
+ ["8869",0x8D4F],
+ ["886A",0x8D4B],
+ ["886B",0x8D31],
+ ["886C",0x8D26],
+ ["886D",0x8D4C],
+ ["886E",0x8D24],
+ ["886F",0x5356],
+ ["8870",0x8D50],
+ ["8871",0x8D28],
+ ["8872",0x8D53],
+ ["8873",0x8DF5],
+ ["8874",0x8F89],
+ ["8875",0x8F86],
+ ["8876",0x8F8D],
+ ["8877",0x8F88],
+ ["8878",0x8F87],
+ ["8879",0x8F6E],
+ ["887A",0x8F8E],
+ ["887B",0x8F8B],
+ ["887C",0x8F8A],
+ ["887D",0x9002],
+ ["887E",0x8FC1],
+ ["88A1",0x90BB],
+ ["88A2",0x90D1],
+ ["88A3",0x9093],
+ ["88A4",0x950C],
+ ["88A5",0x9511],
+ ["88A6",0x9500],
+ ["88A7",0x94FA],
+ ["88A8",0x94D0],
+ ["88A9",0x9504],
+ ["88AA",0x94DD],
+ ["88AB",0x9510],
+ ["88AC",0x9509],
+ ["88AD",0x950B],
+ ["88AE",0x94A1],
+ ["88AF",0x9502],
+ ["88B0",0x95FE],
+ ["88B1",0x9605],
+ ["88B2",0x5DE9],
+ ["88B3",0x9889],
+ ["88B4",0x988C],
+ ["88B5",0x517B],
+ ["88B6",0x997F],
+ ["88B7",0x9981],
+ ["88B8",0x9A7C],
+ ["88B9",0x9A7B],
+ ["88BA",0x9A77],
+ ["88BB",0x9A76],
+ ["88BC",0x9A7D],
+ ["88BD",0x9A7E],
+ ["88BE",0x9A79],
+ ["88BF",0x9A78],
+ ["88C0",0x9AB7],
+ ["88C1",0x95F9],
+ ["88C2",0x9C7F],
+ ["88C3",0x9C81],
+ ["88C4",0x9E29],
+ ["88C5",0x9E26],
+ ["88C6",0x9EB8],
+ ["88C7",0x9F7F],
+ ["88C8",0x4FE6],
+ ["88C9",0x50A7],
+ ["88CA",0x4FAA],
+ ["88CB",0x5E42],
+ ["88CC",0x5242],
+ ["88CD",0x5428],
+ ["88CE",0x54DD],
+ ["88CF",0x55F3],
+ ["88D0",0x57A6],
+ ["88D1",0x575B],
+ ["88D2",0x594B],
+ ["88D3",0x8885],
+ ["88D4",0x5B66],
+ ["88D5",0x5BFC],
+ ["88D6",0x5BAA],
+ ["88D7",0x51ED],
+ ["88D8",0x60EB],
+ ["88D9",0x61D4],
+ ["88DA",0x5FC6],
+ ["88DB",0x6218],
+ ["88DC",0x62E5],
+ ["88DD",0x6321],
+ ["88DE",0x631E],
+ ["88DF",0x636E],
+ ["88E0",0x63B3],
+ ["88E1",0x62E9],
+ ["88E2",0x6361],
+ ["88E3",0x62C5],
+ ["88E4",0x631D],
+ ["88E5",0x5386],
+ ["88E6",0x6653],
+ ["88E7",0x6654],
+ ["88E8",0x6619],
+ ["88E9",0x6866],
+ ["88EA",0x6A2A],
+ ["88EB",0x6811],
+ ["88EC",0x692D],
+ ["88ED",0x6865],
+ ["88EE",0x673A],
+ ["88EF",0x6861],
+ ["88F0",0x6DC0],
+ ["88F1",0x6D53],
+ ["88F2",0x6CFD],
+ ["88F3",0x6D4A],
+ ["88F4",0x6CA3],
+ ["88F5",0x6FA6],
+ ["88F6",0x6E11],
+ ["88F7",0x70BD],
+ ["88F8",0x70E7],
+ ["88F9",0x706F],
+ ["88FA",0x70EB],
+ ["88FB",0x7116],
+ ["88FC",0x72EC],
+ ["88FD",0x7391],
+ ["88FE",0x74EF],
+ ["8940",0x7618],
+ ["8941",0x5362],
+ ["8942",0x7792],
+ ["8943",0x7816],
+ ["8944",0x789B],
+ ["8945",0x79EF],
+ ["8946",0x9896],
+ ["8947",0x7A23],
+ ["8948",0x7AA5],
+ ["8949",0x7B03],
+ ["894A",0x7B5B],
+ ["894B",0x7F22],
+ ["894C",0x7F23],
+ ["894D",0x8426],
+ ["894E",0x7F1A],
+ ["894F",0x53BF],
+ ["8950",0x7F1F],
+ ["8951",0x7F1C],
+ ["8952",0x7F19],
+ ["8953",0x7EC9],
+ ["8954",0x817B],
+ ["8955",0x5174],
+ ["8956",0x8231],
+ ["8957",0x8361],
+ ["8958",0x8427],
+ ["8959",0x829C],
+ ["895A",0x8682],
+ ["895B",0x8424],
+ ["895C",0x88E4],
+ ["895D",0x4EB2],
+ ["895E",0x89CE],
+ ["895F",0x8C1B],
+ ["8960",0x8C1A],
+ ["8961",0x8C0F],
+ ["8962",0x8BB3],
+ ["8963",0x8C0B],
+ ["8964",0x8C0D],
+ ["8965",0x8C10],
+ ["8966",0x8C18],
+ ["8967",0x8BFA],
+ ["8968",0x8C12],
+ ["8969",0x8C13],
+ ["896A",0x8BBD],
+ ["896B",0x8C15],
+ ["896C",0x8C19],
+ ["896D",0x8C0C],
+ ["896E",0x8C16],
+ ["896F",0x8D56],
+ ["8970",0x8F90],
+ ["8971",0x8F91],
+ ["8972",0x8F93],
+ ["8973",0x8F8F],
+ ["8974",0x529E],
+ ["8975",0x9009],
+ ["8976",0x8FDF],
+ ["8977",0x8FBD],
+ ["8978",0x9057],
+ ["8979",0x90BA],
+ ["897A",0x952D],
+ ["897B",0x952F],
+ ["897C",0x9530],
+ ["897D",0x9519],
+ ["897E",0x94B1],
+ ["89A1",0x94A2],
+ ["89A2",0x9521],
+ ["89A3",0x5F55],
+ ["89A4",0x94EE],
+ ["89A5",0x9525],
+ ["89A6",0x9526],
+ ["89A7",0x951F],
+ ["89A8",0x9522],
+ ["89A9",0x9531],
+ ["89AA",0x960E],
+ ["89AB",0x968F],
+ ["89AC",0x9669],
+ ["89AD",0x9759],
+ ["89AE",0x817C],
+ ["89AF",0x988A],
+ ["89B0",0x9888],
+ ["89B1",0x9891],
+ ["89B2",0x9894],
+ ["89B3",0x5934],
+ ["89B4",0x9893],
+ ["89B5",0x9890],
+ ["89B6",0x9986],
+ ["89B7",0x996F],
+ ["89B8",0x9984],
+ ["89B9",0x9985],
+ ["89BA",0x9A87],
+ ["89BB",0x9A88],
+ ["89BC",0x9A86],
+ ["89BD",0x9AB8],
+ ["89BE",0x9ABC],
+ ["89BF",0x9C8D],
+ ["89C0",0x9E35],
+ ["89C1",0x9E2A],
+ ["89C2",0x9E2F],
+ ["89C3",0x9E2D],
+ ["89C4",0x9E33],
+ ["89C5",0x9F99],
+ ["89C6",0x9F9F],
+ ["89C7",0x4F18],
+ ["89C8",0x507F],
+ ["89C9",0x50A8],
+ ["89CA",0x52B1],
+ ["89CB",0x549B],
+ ["89CC",0x5413],
+ ["89CD",0x538B],
+ ["89CE",0x57D9],
+ ["89CF",0x5A74],
+ ["89D0",0x5AD4],
+ ["89D1",0x5B37],
+ ["89D2",0x5C34],
+ ["89D3",0x5C66],
+ ["89D4",0x5C7F],
+ ["89D5",0x5D58],
+ ["89D6",0x5E2E],
+ ["89D7",0x5F25],
+ ["89D8",0x5E94],
+ ["89D9",0x6073],
+ ["89DA",0x620F],
+ ["89DB",0x51FB],
+ ["89DC",0x6324],
+ ["89DD",0x62E7],
+ ["89DE",0x62DF],
+ ["89DF",0x6401],
+ ["89E0",0x655B],
+ ["89E1",0x6BD9],
+ ["89E2",0x66A7],
+ ["89E3",0x6863],
+ ["89E4",0x68C0],
+ ["89E5",0x6867],
+ ["89E6",0x6809],
+ ["89E7",0x6A2F],
+ ["89E8",0x6B93],
+ ["89E9",0x6BE1],
+ ["89EA",0x6CDE],
+ ["89EB",0x6EE8],
+ ["89EC",0x6D4E],
+ ["89ED",0x6D9B],
+ ["89EE",0x6EE5],
+ ["89EF",0x6DA9],
+ ["89F0",0x6F4D],
+ ["89F1",0x8425],
+ ["89F2",0x707F],
+ ["89F3",0x70DB],
+ ["89F4",0x70E9],
+ ["89F5",0x5899],
+ ["89F6",0x72DE],
+ ["89F7",0x83B7],
+ ["89F8",0x73AF],
+ ["89F9",0x7477],
+ ["89FA",0x75E8],
+ ["89FB",0x7597],
+ ["89FC",0x77EB],
+ ["89FD",0x78FA],
+ ["89FE",0x77F6],
+ ["8A40",0x7BD3],
+ ["8A41",0x7CAA],
+ ["8A42",0x9546],
+ ["8A43",0x7CC1],
+ ["8A44",0x7F29],
+ ["8A45",0x7EE9],
+ ["8A46",0x7F2A],
+ ["8A47",0x7F15],
+ ["8A48",0x7F27],
+ ["8A49",0x7EF7],
+ ["8A4A",0x7F1D],
+ ["8A4B",0x603B],
+ ["8A4C",0x7EB5],
+ ["8A4D",0x7F2B],
+ ["8A4E",0x7EA4],
+ ["8A4F",0x7F25],
+ ["8A50",0x7E66],
+ ["8A51",0x7F26],
+ ["8A52",0x58F0],
+ ["8A53",0x806A],
+ ["8A54",0x8054],
+ ["8A55",0x8038],
+ ["8A56",0x8113],
+ ["8A57",0x80C6],
+ ["8A58",0x8138],
+ ["8A59",0x810D],
+ ["8A5A",0x4E34],
+ ["8A5B",0x4E3E],
+ ["8A5C",0x8270],
+ ["8A5D",0x8537],
+ ["8A5E",0x84DF],
+ ["8A5F",0x4E8F],
+ ["8A60",0x877C],
+ ["8A61",0x8748],
+ ["8A62",0x4EB5],
+ ["8A63",0x891B],
+ ["8A64",0x89CA],
+ ["8A65",0x8C1C],
+ ["8A66",0x8C24],
+ ["8A67",0x8C26],
+ ["8A68",0x8BB2],
+ ["8A69",0x8C0E],
+ ["8A6A",0x8C23],
+ ["8A6B",0x8C22],
+ ["8A6C",0x8A8A],
+ ["8A6D",0x8C27],
+ ["8A6E",0x8D5A],
+ ["8A6F",0x8D5B],
+ ["8A70",0x8D2D],
+ ["8A71",0x8D59],
+ ["8A72",0x8D8B],
+ ["8A73",0x8F96],
+ ["8A74",0x8F97],
+ ["8A75",0x6BC2],
+ ["8A76",0x8F95],
+ ["8A77",0x8206],
+ ["8A78",0x8FD8],
+ ["8A79",0x8FC8],
+ ["8A7A",0x915D],
+ ["8A7B",0x9540],
+ ["8A7C",0x9541],
+ ["8A7D",0x951A],
+ ["8A7E",0x952E],
+ ["8AA1",0x9532],
+ ["8AA2",0x9505],
+ ["8AA3",0x9524],
+ ["8AA4",0x953A],
+ ["8AA5",0x9539],
+ ["8AA6",0x953B],
+ ["8AA7",0x953E],
+ ["8AA8",0x9537],
+ ["8AA9",0x9614],
+ ["8AAA",0x9615],
+ ["8AAB",0x9611],
+ ["8AAC",0x95F1],
+ ["8AAD",0x9690],
+ ["8AAE",0x96B6],
+ ["8AAF",0x867D],
+ ["8AB0",0x97E9],
+ ["8AB1",0x9897],
+ ["8AB2",0x98D3],
+ ["8AB3",0x9A8B],
+ ["8AB4",0x9A8F],
+ ["8AB5",0x9C9C],
+ ["8AB6",0x9C9B],
+ ["8AB7",0x9C94],
+ ["8AB8",0x9C91],
+ ["8AB9",0x9E3F],
+ ["8ABA",0x9E3D],
+ ["8ABB",0x70B9],
+ ["8ABC",0x658B],
+ ["8ABD",0x4E1B],
+ ["8ABE",0x565C],
+ ["8ABF",0x5739],
+ ["8AC0",0x5792],
+ ["8AC1",0x5A76],
+ ["8AC2",0x61D1],
+ ["8AC3",0x6269],
+ ["8AC4",0x63B7],
+ ["8AC5",0x6270],
+ ["8AC6",0x64B5],
+ ["8AC7",0x6446],
+ ["8AC8",0x64DE],
+ ["8AC9",0x64B7],
+ ["8ACA",0x65AD],
+ ["8ACB",0x69DF],
+ ["8ACC",0x67DC],
+ ["8ACD",0x69DB],
+ ["8ACE",0x67E0],
+ ["8ACF",0x6B24],
+ ["8AD0",0x5F52],
+ ["8AD1",0x6BA1],
+ ["8AD2",0x6CFB],
+ ["8AD3",0x6E16],
+ ["8AD4",0x6EE4],
+ ["8AD5",0x6E0E],
+ ["8AD6",0x6E85],
+ ["8AD7",0x6D4F],
+ ["8AD8",0x70EC],
+ ["8AD9",0x7118],
+ ["8ADA",0x72B7],
+ ["8ADB",0x730E],
+ ["8ADC",0x74EE],
+ ["8ADD",0x75A0],
+ ["8ADE",0x7751],
+ ["8ADF",0x7840],
+ ["8AE0",0x793C],
+ ["8AE1",0x7A51],
+ ["8AE2",0x79FD],
+ ["8AE3",0x7A9C],
+ ["8AE4",0x7A8D],
+ ["8AE5",0x7BAB],
+ ["8AE6",0x7C27],
+ ["8AE7",0x7BAA],
+ ["8AE8",0x7BD1],
+ ["8AE9",0x7B80],
+ ["8AEA",0x7CAE],
+ ["8AEB",0x7EC7],
+ ["8AEC",0x7F2E],
+ ["8AED",0x7ED5],
+ ["8AEE",0x7F2D],
+ ["8AEF",0x7EE3],
+ ["8AF0",0x7F2F],
+ ["8AF1",0x7FD8],
+ ["8AF2",0x804C],
+ ["8AF3",0x8042],
+ ["8AF4",0x8110],
+ ["8AF5",0x8191],
+ ["8AF6",0x65E7],
+ ["8AF7",0x8428],
+ ["8AF8",0x84DD],
+ ["8AF9",0x8360],
+ ["8AFA",0x86F2],
+ ["8AFB",0x8749],
+ ["8AFC",0x89D0],
+ ["8AFD",0x89DE],
+ ["8AFE",0x8C1F],
+ ["8B40",0x8C28],
+ ["8B41",0x8C2C],
+ ["8B42",0x8C2A],
+ ["8B43",0x8D58],
+ ["8B44",0x8E52],
+ ["8B45",0x8FF9],
+ ["8B46",0x8DF8],
+ ["8B47",0x8EAF],
+ ["8B48",0x8F6C],
+ ["8B49",0x8F99],
+ ["8B4A",0x8FE9],
+ ["8B4B",0x533B],
+ ["8B4C",0x9171],
+ ["8B4D",0x9551],
+ ["8B4E",0x9501],
+ ["8B4F",0x94A8],
+ ["8B50",0x954D],
+ ["8B51",0x9547],
+ ["8B52",0x9550],
+ ["8B53",0x9552],
+ ["8B54",0x9549],
+ ["8B55",0x9616],
+ ["8B56",0x95EF],
+ ["8B57",0x9617],
+ ["8B58",0x9619],
+ ["8B59",0x6742],
+ ["8B5A",0x53CC],
+ ["8B5B",0x96CF],
+ ["8B5C",0x9E21],
+ ["8B5D",0x989D],
+ ["8B5E",0x989C],
+ ["8B5F",0x9898],
+ ["8B60",0x989A],
+ ["8B61",0x989B],
+ ["8B62",0x998F],
+ ["8B63",0x998A],
+ ["8B64",0x9988],
+ ["8B65",0x9A91],
+ ["8B66",0x9AC1],
+ ["8B67",0x9CA8],
+ ["8B68",0x9CA4],
+ ["8B69",0x9CAB],
+ ["8B6A",0x9CA7],
+ ["8B6B",0x9E43],
+ ["8B6C",0x9E45],
+ ["8B6D",0x9E44],
+ ["8B6E",0x5784],
+ ["8B6F",0x575C],
+ ["8B70",0x5BA0],
+ ["8B71",0x5E9E],
+ ["8B72",0x5E90],
+ ["8B73",0x60E9],
+ ["8B74",0x6000],
+ ["8B75",0x61D2],
+ ["8B76",0x62E2],
+ ["8B77",0x65F7],
+ ["8B78",0x6A71],
+ ["8B79",0x691F],
+ ["8B7A",0x6988],
+ ["8B7B",0x6A79],
+ ["8B7C",0x6F47],
+ ["8B7D",0x6FD1],
+ ["8B7E",0x6CA5],
+ ["8BA1",0x6FD2],
+ ["8BA2",0x6CF8],
+ ["8BA3",0x70C1],
+ ["8BA4",0x724D],
+ ["8BA5",0x728A],
+ ["8BA6",0x517D],
+ ["8BA7",0x736D],
+ ["8BA8",0x73BA],
+ ["8BA9",0x743C],
+ ["8BAA",0x7574],
+ ["8BAB",0x762A],
+ ["8BAC",0x788D],
+ ["8BAD",0x7977],
+ ["8BAE",0x7A33],
+ ["8BAF",0x7B7E],
+ ["8BB0",0x8327],
+ ["8BB1",0x7ECE],
+ ["8BB2",0x7EF3],
+ ["8BB3",0x7ED8],
+ ["8BB4",0x7F57],
+ ["8BB5",0x7F34],
+ ["8BB6",0x81BB],
+ ["8BB7",0x827A],
+ ["8BB8",0x85AE],
+ ["8BB9",0x836F],
+ ["8BBA",0x8681],
+ ["8BBB",0x8747],
+ ["8BBC",0x88C6],
+ ["8BBD",0x8884],
+ ["8BBE",0x8C31],
+ ["8BBF",0x8BC6],
+ ["8BC0",0x8C2D],
+ ["8BC1",0x8C32],
+ ["8BC2",0x8BA5],
+ ["8BC3",0x8C2F],
+ ["8BC4",0x8D60],
+ ["8BC5",0x8D5E],
+ ["8BC6",0x8DF7],
+ ["8BC7",0x8F9A],
+ ["8BC8",0x8F7F],
+ ["8BC9",0x8F9E],
+ ["8BCA",0x8FB9],
+ ["8BCB",0x955C],
+ ["8BCC",0x955D],
+ ["8BCD",0x955E],
+ ["8BCE",0x94FE],
+ ["8BCF",0x9557],
+ ["8BD0",0x9558],
+ ["8BD1",0x9556],
+ ["8BD2",0x9559],
+ ["8BD3",0x9535],
+ ["8BD4",0x9542],
+ ["8BD5",0x94FF],
+ ["8BD6",0x933E],
+ ["8BD7",0x5173],
+ ["8BD8",0x9647],
+ ["8BD9",0x96BE],
+ ["8BDA",0x96FE],
+ ["8BDB",0x97EC],
+ ["8BDC",0x97F5],
+ ["8BDD",0x7C7B],
+ ["8BDE",0x98A0],
+ ["8BDF",0x98D5],
+ ["8BE0",0x9992],
+ ["8BE1",0x9991],
+ ["8BE2",0x9A9B],
+ ["8BE3",0x9A97],
+ ["8BE4",0x9CB8],
+ ["8BE5",0x9CB3],
+ ["8BE6",0x9CAD],
+ ["8BE7",0x9CB7],
+ ["8BE8",0x9E51],
+ ["8BE9",0x9E49],
+ ["8BEA",0x9E4A],
+ ["8BEB",0x9E4C],
+ ["8BEC",0x9E4F],
+ ["8BED",0x4E3D],
+ ["8BEE",0x9EB4],
+ ["8BEF",0x529D],
+ ["8BF0",0x5499],
+ ["8BF1",0x5624],
+ ["8BF2",0x4E25],
+ ["8BF3",0x5B9D],
+ ["8BF4",0x60AC],
+ ["8BF5",0x5FCF],
+ ["8BF6",0x62E6],
+ ["8BF7",0x6400],
+ ["8BF8",0x80E7],
+ ["8BF9",0x6987],
+ ["8BFA",0x6F9C],
+ ["8BFB",0x6F4B],
+ ["8BFC",0x7089],
+ ["8BFD",0x73D1],
+ ["8BFE",0x77FF],
+ ["8C40",0x783A],
+ ["8C41",0x77FE],
+ ["8C42",0x783E],
+ ["8C43",0x7AA6],
+ ["8C44",0x7ADE],
+ ["8C45",0x7B79],
+ ["8C46",0x7BEE],
+ ["8C47",0x8FAB],
+ ["8C48",0x7F24],
+ ["8C49",0x7EE7],
+ ["8C4A",0x7F42],
+ ["8C4B",0x80EA],
+ ["8C4C",0x8230],
+ ["8C4D",0x853C],
+ ["8C4E",0x853A],
+ ["8C4F",0x82A6],
+ ["8C50",0x82F9],
+ ["8C51",0x8574],
+ ["8C52",0x869D],
+ ["8C53",0x8934],
+ ["8C54",0x89C9],
+ ["8C55",0x89E6],
+ ["8C56",0x8BAE],
+ ["8C57",0x8BD1],
+ ["8C58",0x8C35],
+ ["8C59",0x8D62],
+ ["8C5A",0x8D61],
+ ["8C5B",0x8DB8],
+ ["8C5C",0x91CA],
+ ["8C5D",0x949F],
+ ["8C5E",0x94D9],
+ ["8C5F",0x9508],
+ ["8C60",0x9610],
+ ["8C61",0x98D8],
+ ["8C62",0x9976],
+ ["8C63",0x9965],
+ ["8C64",0x9A9E],
+ ["8C65",0x817E],
+ ["8C66",0x9A9A],
+ ["8C67",0x9CC3],
+ ["8C68",0x9CC5],
+ ["8C69",0x515A],
+ ["8C6A",0x9F83],
+ ["8C6B",0x9F84],
+ ["8C6C",0x4FEA],
+ ["8C6D",0x55EB],
+ ["8C6E",0x556D],
+ ["8C6F",0x56A3],
+ ["8C70",0x5C5E],
+ ["8C71",0x60E7],
+ ["8C72",0x6151],
+ ["8C73",0x6444],
+ ["8C74",0x643A],
+ ["8C75",0x6593],
+ ["8C76",0x6A31],
+ ["8C77",0x680F],
+ ["8C78",0x68C2],
+ ["8C79",0x6B7C],
+ ["8C7A",0x70C2],
+ ["8C7B",0x727A],
+ ["8C7C",0x9576],
+ ["8C7D",0x748E],
+ ["8C7E",0x765E],
+ ["8CA1",0x7F20],
+ ["8CA2",0x7EED],
+ ["8CA3",0x5170],
+ ["8CA4",0x85D3],
+ ["8CA5",0x86CE],
+ ["8CA6",0x89C8],
+ ["8CA7",0x8C34],
+ ["8CA8",0x62A4],
+ ["8CA9",0x8A89],
+ ["8CAA",0x8D43],
+ ["8CAB",0x8E0C],
+ ["8CAC",0x8DC3],
+ ["8CAD",0x8DFB],
+ ["8CAE",0x8F70],
+ ["8CAF",0x8FA9],
+ ["8CB0",0x9570],
+ ["8CB1",0x956D],
+ ["8CB2",0x94C1],
+ ["8CB3",0x94DB],
+ ["8CB4",0x94CE],
+ ["8CB5",0x956F],
+ ["8CB6",0x954C],
+ ["8CB7",0x54CD],
+ ["8CB8",0x987E],
+ ["8CB9",0x98A2],
+ ["8CBA",0x98E8],
+ ["8CBB",0x9A71],
+ ["8CBC",0x9AA0],
+ ["8CBD",0x84E6],
+ ["8CBE",0x9AA1],
+ ["8CBF",0x9AC5],
+ ["8CC0",0x9CCD],
+ ["8CC1",0x9CCF],
+ ["8CC2",0x83BA],
+ ["8CC3",0x9E64],
+ ["8CC4",0x9E5E],
+ ["8CC5",0x9F87],
+ ["8CC6",0x9F88],
+ ["8CC7",0x556E],
+ ["8CC8",0x4FE8],
+ ["8CC9",0x50A5],
+ ["8CCA",0x5453],
+ ["8CCB",0x5B6A],
+ ["8CCC",0x5DC5],
+ ["8CCD",0x5CE6],
+ ["8CCE",0x5F2F],
+ ["8CCF",0x644A],
+ ["8CD0",0x6743],
+ ["8CD1",0x6B22],
+ ["8CD2",0x6EE9],
+ ["8CD3",0x7321],
+ ["8CD4",0x53E0],
+ ["8CD5",0x763E],
+ ["8CD6",0x7663],
+ ["8CD7",0x7B3C],
+ ["8CD8",0x7C41],
+ ["8CD9",0x804B],
+ ["8CDA",0x810F],
+ ["8CDB",0x88AD],
+ ["8CDC",0x886C],
+ ["8CDD",0x8BFB],
+ ["8CDE",0x8D4E],
+ ["8CDF",0x8D5D],
+ ["8CE0",0x8E2F],
+ ["8CE1",0x8E2C],
+ ["8CE2",0x8F94],
+ ["8CE3",0x90E6],
+ ["8CE4",0x94F8],
+ ["8CE5",0x9274],
+ ["8CE6",0x9701],
+ ["8CE7",0x9791],
+ ["8CE8",0x7E6E],
+ ["8CE9",0x98A4],
+ ["8CEA",0x9A84],
+ ["8CEB",0x9A81],
+ ["8CEC",0x9CD6],
+ ["8CED",0x9CA2],
+ ["8CEE",0x9CD4],
+ ["8CEF",0x9CD7],
+ ["8CF0",0x9E67],
+ ["8CF1",0x9E25],
+ ["8CF2",0x9F39],
+ ["8CF3",0x9F89],
+ ["8CF4",0x9F8A],
+ ["8CF5",0x9F9A],
+ ["8CF6",0x604B],
+ ["8CF7",0x631B],
+ ["8CF8",0x6405],
+ ["8CF9",0x74D2],
+ ["8CFA",0x7A83],
+ ["8CFB",0x7F28],
+ ["8CFC",0x81E2],
+ ["8CFD",0x841D],
+ ["8CFE",0x86CA],
+ ["8D40",0x53D8],
+ ["8D41",0x9026],
+ ["8D42",0x903B],
+ ["8D43",0x9573],
+ ["8D44",0x94C4],
+ ["8D45",0x9765],
+ ["8D46",0x663E],
+ ["8D47",0x990D],
+ ["8D48",0x60CA],
+ ["8D49",0x9A7F],
+ ["8D4A",0x9A8C],
+ ["8D4B",0x9AD3],
+ ["8D4C",0x9AD1],
+ ["8D4D",0x9CDD],
+ ["8D4E",0x9CDE],
+ ["8D4F",0x9CDC],
+ ["8D50",0x9E36],
+ ["8D51",0x5631],
+ ["8D52",0x575D],
+ ["8D53",0x63FD],
+ ["8D54",0x762B],
+ ["8D55",0x766B],
+ ["8D56",0x7F81],
+ ["8D57",0x8695],
+ ["8D58",0x8BA9],
+ ["8D59",0x8C17],
+ ["8D5A",0x8C36],
+ ["8D5B",0x8273],
+ ["8D5C",0x8D63],
+ ["8D5D",0x917F],
+ ["8D5E",0x96F3],
+ ["8D5F",0x7075],
+ ["8D60",0x972D],
+ ["8D61",0x98A6],
+ ["8D62",0x9AA4],
+ ["8D63",0x9B13],
+ ["8D64",0x9B47],
+ ["8D65",0x9C8E],
+ ["8D66",0x9E70],
+ ["8D67",0x9E6D],
+ ["8D68",0x7877],
+ ["8D69",0x76D0],
+ ["8D6A",0x9CCC],
+ ["8D6B",0x9F8C],
+ ["8D6C",0x9F8B],
+ ["8D6D",0x5385],
+ ["8D6E",0x6984],
+ ["8D6F",0x6E7E],
+ ["8D70",0x7BF1],
+ ["8D71",0x7BA9],
+ ["8D72",0x86EE],
+ ["8D73",0x89C2],
+ ["8D74",0x8E51],
+ ["8D75",0x8845],
+ ["8D76",0x94A5],
+ ["8D77",0x9885],
+ ["8D78",0x998B],
+ ["8D79",0x9ACB],
+ ["8D7A",0x9EC9],
+ ["8D7B",0x6EE6],
+ ["8D7C",0x77A9],
+ ["8D7D",0x954A],
+ ["8D7E",0x97AF],
+ ["8DA1",0x9A74],
+ ["8DA2",0x9AA5],
+ ["8DA3",0x7F06],
+ ["8DA4",0x8C20],
+ ["8DA5",0x8E8F],
+ ["8DA6",0x917D],
+ ["8DA7",0x94BB],
+ ["8DA8",0x92AE],
+ ["8DA9",0x9523],
+ ["8DAA",0x9CC4],
+ ["8DAB",0x9C88],
+ ["8DAC",0x9EE9],
+ ["8DAD",0x51FF],
+ ["8DAE",0x9E66],
+ ["8DAF",0x9A8A],
+ ["8DB0",0x9E73],
+ ["8DB1",0x9E3E],
+ ["8DB2",0x94BA],
+ ["8DB3",0x4EC2],
+ ["8DB4",0x864D],
+ ["8DB5",0x6B92],
+ ["8DB6",0x57A7],
+ ["8DB7",0x577B],
+ ["8DB8",0x620B],
+ ["8DB9",0x4FE3],
+ ["8DBA",0x522D],
+ ["8DBB",0x538D],
+ ["8DBC",0x5459],
+ ["8DBD",0x537A],
+ ["8DBE",0x7EA8],
+ ["8DBF",0x8307],
+ ["8DC0",0x9487],
+ ["8DC1",0x9486],
+ ["8DC2",0x5457],
+ ["8DC3",0x5F2A],
+ ["8DC4",0x7953],
+ ["8DC5",0x7EBE],
+ ["8DC6",0x90CF],
+ ["8DC7",0x948C],
+ ["8DC8",0x5250],
+ ["8DC9",0x5326],
+ ["8DCA",0x56F5],
+ ["8DCB",0x57AD],
+ ["8DCC",0x5A05],
+ ["8DCD",0x5CBD],
+ ["8DCE",0x5D03],
+ ["8DCF",0x6D9E],
+ ["8DD0",0x6E0C],
+ ["8DD1",0x70C3],
+ ["8DD2",0x7726],
+ ["8DD3",0x7EC0],
+ ["8DD4",0x7ED0],
+ ["8DD5",0x80EB],
+ ["8DD6",0x948E],
+ ["8DD7",0x9490],
+ ["8DD8",0x9495],
+ ["8DD9",0x948D],
+ ["8DDA",0x95EB],
+ ["8DDB",0x59AB],
+ ["8DDC",0x5D5B],
+ ["8DDD",0x607D],
+ ["8DDE",0x6860],
+ ["8DDF",0x67A8],
+ ["8DE0",0x6CA9],
+ ["8DE1",0x6D48],
+ ["8DE2",0x7572],
+ ["8DE3",0x7817],
+ ["8DE4",0x7ED7],
+ ["8DE5",0x83DD],
+ ["8DE6",0x89C7],
+ ["8DE7",0x8BB5],
+ ["8DE8",0x8BCE],
+ ["8DE9",0x8BD2],
+ ["8DEA",0x8D36],
+ ["8DEB",0x8D33],
+ ["8DEC",0x8F7A],
+ ["8DED",0x8F75],
+ ["8DEE",0x8F78],
+ ["8DEF",0x902F],
+ ["8DF0",0x90D3],
+ ["8DF1",0x9104],
+ ["8DF2",0x94AB],
+ ["8DF3",0x94AC],
+ ["8DF4",0x949B],
+ ["8DF5",0x94AF],
+ ["8DF6",0x94AD],
+ ["8DF7",0x94AA],
+ ["8DF8",0x95F6],
+ ["8DF9",0x9667],
+ ["8DFA",0x9878],
+ ["8DFB",0x996B],
+ ["8DFC",0x9EF9],
+ ["8DFD",0x4F1B],
+ ["8DFE",0x507B],
+ ["8E40",0x4F65],
+ ["8E41",0x5522],
+ ["8E42",0x57B2],
+ ["8E43",0x5DEF],
+ ["8E44",0x5FAD],
+ ["8E45",0x709C],
+ ["8E46",0x8315],
+ ["8E47",0x72F2],
+ ["8E48",0x73AE],
+ ["8E49",0x7EE8],
+ ["8E4A",0x7EE0],
+ ["8E4B",0x7EE1],
+ ["8E4C",0x7F9F],
+ ["8E4D",0x836D],
+ ["8E4E",0x86F1],
+ ["8E4F",0x8BD3],
+ ["8E50",0x8BD6],
+ ["8E51",0x8BE9],
+ ["8E52",0x8BD4],
+ ["8E53",0x8BDC],
+ ["8E54",0x8D91],
+ ["8E55",0x8F82],
+ ["8E56",0x8F81],
+ ["8E57",0x90AC],
+ ["8E58",0x94CA],
+ ["8E59",0x94C8],
+ ["8E5A",0x94B0],
+ ["8E5B",0x94B2],
+ ["8E5C",0x94B6],
+ ["8E5D",0x950D],
+ ["8E5E",0x94CC],
+ ["8E5F",0x94BD],
+ ["8E60",0x94BC],
+ ["8E61",0x9883],
+ ["8E62",0x9880],
+ ["8E63",0x51EB],
+ ["8E64",0x9EFE],
+ ["8E65",0x507E],
+ ["8E66",0x551B],
+ ["8E67",0x5D5D],
+ ["8E68",0x5E3B],
+ ["8E69",0x60AB],
+ ["8E6A",0x60AD],
+ ["8E6B",0x6004],
+ ["8E6C",0x622C],
+ ["8E6D",0x6217],
+ ["8E6E",0x629F],
+ ["8E6F",0x62A0],
+ ["8E70",0x63BC],
+ ["8E71",0x6864],
+ ["8E72",0x6769],
+ ["8E73",0x8365],
+ ["8E74",0x6D52],
+ ["8E75",0x6CA4],
+ ["8E76",0x709D],
+ ["8E77",0x76B2],
+ ["8E78",0x7800],
+ ["8E79",0x7EFB],
+ ["8E7A",0x7EF2],
+ ["8E7B",0x7EEF],
+ ["8E7C",0x7EFA],
+ ["8E7D",0x83B3],
+ ["8E7E",0x89CB],
+ ["8EA1",0x8BF6],
+ ["8EA2",0x8D47],
+ ["8EA3",0x94F1],
+ ["8EA4",0x94D2],
+ ["8EA5",0x94D1],
+ ["8EA6",0x94D5],
+ ["8EA7",0x94DF],
+ ["8EA8",0x94EB],
+ ["8EA9",0x94EF],
+ ["8EAA",0x94EA],
+ ["8EAB",0x94F7],
+ ["8EAC",0x94D6],
+ ["8EAD",0x94E5],
+ ["8EAE",0x98D1],
+ ["8EAF",0x523F],
+ ["8EB0",0x52A2],
+ ["8EB1",0x54D3],
+ ["8EB2",0x5452],
+ ["8EB3",0x5D02],
+ ["8EB4",0x5CE4],
+ ["8EB5",0x5E91],
+ ["8EB6",0x6126],
+ ["8EB7",0x6322],
+ ["8EB8",0x6920],
+ ["8EB9",0x6BF5],
+ ["8EBA",0x988D],
+ ["8EBB",0x6D9D],
+ ["8EBC",0x6F62],
+ ["8EBD",0x6DA0],
+ ["8EBE",0x6ED7],
+ ["8EBF",0x740F],
+ ["8EC0",0x7481],
+ ["8EC1",0x7617],
+ ["8EC2",0x7F03],
+ ["8EC3",0x7F17],
+ ["8EC4",0x7F0C],
+ ["8EC5",0x7F0F],
+ ["8EC6",0x7F11],
+ ["8EC7",0x835C],
+ ["8EC8",0x848C],
+ ["8EC9",0x8311],
+ ["8ECA",0x82C1],
+ ["8ECB",0x8BF9],
+ ["8ECC",0x8BFC],
+ ["8ECD",0x8C02],
+ ["8ECE",0x8D55],
+ ["8ECF",0x90F8],
+ ["8ED0",0x9512],
+ ["8ED1",0x94D7],
+ ["8ED2",0x94FD],
+ ["8ED3",0x9513],
+ ["8ED4",0x950A],
+ ["8ED5",0x94E4],
+ ["8ED6",0x9506],
+ ["8ED7",0x9507],
+ ["8ED8",0x9514],
+ ["8ED9",0x9606],
+ ["8EDA",0x9603],
+ ["8EDB",0x9753],
+ ["8EDC",0x988F],
+ ["8EDD",0x997D],
+ ["8EDE",0x9A75],
+ ["8EDF",0x9A80],
+ ["8EE0",0x9C82],
+ ["8EE1",0x9E28],
+ ["8EE2",0x54D2],
+ ["8EE3",0x54D5],
+ ["8EE4",0x54D9],
+ ["8EE5",0x5AD2],
+ ["8EE6",0x5CC4],
+ ["8EE7",0x603F],
+ ["8EE8",0x6B9A],
+ ["8EE9",0x6D4D],
+ ["8EEA",0x70E8],
+ ["8EEB",0x7303],
+ ["8EEC",0x72EF],
+ ["8EED",0x789C],
+ ["8EEE",0x7AAD],
+ ["8EEF",0x7E17],
+ ["8EF0",0x7F1B],
+ ["8EF1",0x8487],
+ ["8EF2",0x8368],
+ ["8EF3",0x8489],
+ ["8EF4",0x835E],
+ ["8EF5",0x83B8],
+ ["8EF6",0x8297],
+ ["8EF7",0x86F3],
+ ["8EF8",0x8BE8],
+ ["8EF9",0x8C11],
+ ["8EFA",0x8C14],
+ ["8EFB",0x8C1D],
+ ["8EFC",0x90D0],
+ ["8EFD",0x9529],
+ ["8EFE",0x952C],
+ ["8F40",0x9516],
+ ["8F41",0x9517],
+ ["8F42",0x94FC],
+ ["8F43",0x951B],
+ ["8F44",0x9515],
+ ["8F45",0x951E],
+ ["8F46",0x9494],
+ ["8F47",0x960F],
+ ["8F48",0x9608],
+ ["8F49",0x9609],
+ ["8F4A",0x960A],
+ ["8F4B",0x960C],
+ ["8F4C",0x960D],
+ ["8F4D",0x9E32],
+ ["8F4E",0x9E31],
+ ["8F4F",0x54DC],
+ ["8F50",0x5E31],
+ ["8F51",0x6079],
+ ["8F52",0x6448],
+ ["8F53",0xE3C1],
+ ["8F54",0x6CF6],
+ ["8F55",0x7315],
+ ["8F56",0x7513],
+ ["8F57",0x7605],
+ ["8F58",0x75EB],
+ ["8F59",0x7857],
+ ["8F5A",0x7BA6],
+ ["8F5B",0x7B5A],
+ ["8F5C",0x7CE8],
+ ["8F5D",0x7F21],
+ ["8F5E",0x8027],
+ ["8F5F",0x835F],
+ ["8F60",0x83B6],
+ ["8F61",0x86F0],
+ ["8F62",0x88E2],
+ ["8F63",0x89CF],
+ ["8F64",0x8C21],
+ ["8F65",0x8BCC],
+ ["8F66",0x8C25],
+ ["8F67",0x8DC4],
+ ["8F68",0x9538],
+ ["8F69",0x9534],
+ ["8F6A",0x94E1],
+ ["8F6B",0x9536],
+ ["8F6C",0x9612],
+ ["8F6D",0x9967],
+ ["8F6E",0x9C92],
+ ["8F6F",0x9C95],
+ ["8F70",0x9E38],
+ ["8F71",0x9E39],
+ ["8F72",0x9E3A],
+ ["8F73",0x9F80],
+ ["8F74",0x603C],
+ ["8F75",0x6445],
+ ["8F76",0x64B8],
+ ["8F77",0x6CFA],
+ ["8F78",0x7596],
+ ["8F79",0x7F0B],
+ ["8F7A",0x8069],
+ ["8F7B",0x8369],
+ ["8F7C",0x87E5],
+ ["8F7D",0x866E],
+ ["8F7E",0x8BB4],
+ ["8FA1",0x8C29],
+ ["8FA2",0x8D5C],
+ ["8FA3",0x8D3D],
+ ["8FA4",0x8F98],
+ ["8FA5",0x909D],
+ ["8FA6",0x9553],
+ ["8FA7",0x94E0],
+ ["8FA8",0x953C],
+ ["8FA9",0x954F],
+ ["8FAA",0x84E5],
+ ["8FAB",0x97EA],
+ ["8FAC",0x9969],
+ ["8FAD",0x9A90],
+ ["8FAE",0x9A92],
+ ["8FAF",0x9A93],
+ ["8FB0",0x960B],
+ ["8FB1",0x9CA9],
+ ["8FB2",0x9CA0],
+ ["8FB3",0x9E48],
+ ["8FB4",0x9E41],
+ ["8FB5",0x9E46],
+ ["8FB6",0x53A3],
+ ["8FB7",0x5456],
+ ["8FB8",0x5786],
+ ["8FB9",0x69E0],
+ ["8FBA",0x680E],
+ ["8FBB",0x6C07],
+ ["8FBC",0x6CF7],
+ ["8FBD",0x6F46],
+ ["8FBE",0x7962],
+ ["8FBF",0x7F32],
+ ["8FC0",0x7F33],
+ ["8FC1",0x7F74],
+ ["8FC2",0x8223],
+ ["8FC3",0x86CF],
+ ["8FC4",0x867F],
+ ["8FC5",0x88E3],
+ ["8FC6",0x89D1],
+ ["8FC7",0x89EF],
+ ["8FC8",0x8C2E],
+ ["8FC9",0x955B],
+ ["8FCA",0x955F],
+ ["8FCB",0x956A],
+ ["8FCC",0x9546],
+ ["8FCD",0x94E9],
+ ["8FCE",0x97EB],
+ ["8FCF",0x98A1],
+ ["8FD0",0x9990],
+ ["8FD1",0x9AC2],
+ ["8FD2",0x9CB5],
+ ["8FD3",0x9CB6],
+ ["8FD4",0x9CBB],
+ ["8FD5",0x9CB1],
+ ["8FD6",0x9E4E],
+ ["8FD7",0x9E2B],
+ ["8FD8",0x9EFC],
+ ["8FD9",0x55BE],
+ ["8FDA",0x6484],
+ ["8FDB",0x680A],
+ ["8FDC",0x67A5],
+ ["8FDD",0x680C],
+ ["8FDE",0x7F31],
+ ["8FDF",0x804D],
+ ["8FE0",0x830F],
+ ["8FE1",0x82C8],
+ ["8FE2",0x8572],
+ ["8FE3",0x86F4],
+ ["8FE4",0x877E],
+ ["8FE5",0x94F4],
+ ["8FE6",0x9566],
+ ["8FE7",0x9568],
+ ["8FE8",0x9561],
+ ["8FE9",0x9563],
+ ["8FEA",0x9544],
+ ["8FEB",0x956B],
+ ["8FEC",0x94E7],
+ ["8FED",0x9564],
+ ["8FEE",0x94F9],
+ ["8FEF",0x961A],
+ ["8FF0",0x989F],
+ ["8FF1",0x9994],
+ ["8FF2",0x9A7A],
+ ["8FF3",0x9A9D],
+ ["8FF4",0x9A9F],
+ ["8FF5",0x9A98],
+ ["8FF6",0x9E57],
+ ["8FF7",0x9E5A],
+ ["8FF8",0x9E5C],
+ ["8FF9",0x9F86],
+ ["8FFA",0x9F85],
+ ["8FFB",0x50A9],
+ ["8FFC",0x5CBF],
+ ["8FFD",0x75C8],
+ ["8FFE",0x64BA],
+ ["9040",0x6989],
+ ["9041",0x6EE0],
+ ["9042",0x783B],
+ ["9043",0x7C9D],
+ ["9044",0x7EA9],
+ ["9045",0x7F2C],
+ ["9046",0x8539],
+ ["9047",0x8D46],
+ ["9048",0x9571],
+ ["9049",0x95FC],
+ ["904A",0x98D9],
+ ["904B",0x9AA2],
+ ["904C",0x9A96],
+ ["904D",0x9A9C],
+ ["904E",0x9CA5],
+ ["904F",0x9CCE],
+ ["9050",0x9CD0],
+ ["9051",0x9E63],
+ ["9052",0x9E58],
+ ["9053",0x9E7E],
+ ["9054",0x5181],
+ ["9055",0x5A08],
+ ["9056",0x7055],
+ ["9057",0x6512],
+ ["9058",0x763F],
+ ["9059",0x7BA8],
+ ["905A",0x7C74],
+ ["905B",0x823B],
+ ["905C",0x89CC],
+ ["905D",0x8DF9],
+ ["905E",0x8DDE],
+ ["905F",0x8F79],
+ ["9060",0x9554],
+ ["9061",0x956C],
+ ["9062",0x9AA3],
+ ["9063",0x9A85],
+ ["9064",0x9CD5],
+ ["9065",0x9CA3],
+ ["9066",0x9CA6],
+ ["9067",0x9E68],
+ ["9068",0x9E37],
+ ["9069",0x9F9B],
+ ["906A",0x683E],
+ ["906B",0x6924],
+ ["906C",0x84E0],
+ ["906D",0x96E0],
+ ["906E",0x8F73],
+ ["906F",0x9CDF],
+ ["9070",0x9C9F],
+ ["9071",0x9E69],
+ ["9072",0x9E6C],
+ ["9073",0x9E6A],
+ ["9074",0x9E6B],
+ ["9075",0x9E47],
+ ["9076",0x704F],
+ ["9077",0x7C16],
+ ["9078",0x8C30],
+ ["9079",0x9ACC],
+ ["907A",0x7B3E],
+ ["907B",0x7C9C],
+ ["907C",0x7F35],
+ ["907D",0x8114],
+ ["907E",0x8E7F],
+ ["90A1",0x9567],
+ ["90A2",0x9C9A],
+ ["90A3",0x8DB1],
+ ["90A4",0x8E9C],
+ ["90A5",0x917E],
+ ["90A6",0x8C33],
+ ["90A7",0x989E],
+ ["90A8",0x98A7],
+ ["90A9",0x9AA7],
+ ["90AA",0x9E2C],
+ ["90AB",0x6206],
+ ["90AC",0x9604],
+ ["90AD",0x9CA1],
+ ["90AE",0x9E42],
+ ["90AF",0x79B8],
+ ["90B0",0x62D4],
+ ["90B1",0x8DCB],
+ ["90B2",0x73D0],
+ ["90B3",0x5BAB],
+ ["90B4",0x62D0],
+ ["90B5",0x6BC1],
+ ["90B6",0x51CF],
+ ["90B7",0x7984],
+ ["90B8",0x5415],
+ ["90B9",0x6F5C],
+ ["90BA",0x889C],
+ ["90BB",0x90E7],
+ ["90BC",0x5179],
+ ["90BD",0x6238],
+ ["90BE",0x629B],
+ ["90BF",0x6327],
+ ["90C0",0x63BB],
+ ["90C1",0x63DE],
+ ["90C2",0x63FA],
+ ["90C3",0x6491],
+ ["90C4",0x64C0],
+ ["90C5",0x64E1],
+ ["90C6",0x64F6],
+ ["90C7",0x6505],
+ ["90C8",0x6535],
+ ["90C9",0x654E],
+ ["90CA",0x656B],
+ ["90CB",0x6588],
+ ["90CC",0x65D9],
+ ["90CD",0x661E],
+ ["90CE",0x663B],
+ ["90CF",0x663F],
+ ["90D0",0x6644],
+ ["90D1",0x6657],
+ ["90D2",0x6669],
+ ["90D3",0x6673],
+ ["90D4",0x6683],
+ ["90D5",0x66BC],
+ ["90D6",0x66BF],
+ ["90D7",0x66C1],
+ ["90D8",0x66F5],
+ ["90D9",0x66FA],
+ ["90DA",0x66FB],
+ ["90DB",0x670E],
+ ["90DC",0x6716],
+ ["90DD",0x6737],
+ ["90DE",0x6764],
+ ["90DF",0x6766],
+ ["90E0",0x67A6],
+ ["90E1",0x67A7],
+ ["90E2",0x67A9],
+ ["90E3",0x67FB],
+ ["90E4",0x67FD],
+ ["90E5",0x6800],
+ ["90E6",0x6801],
+ ["90E7",0x6805],
+ ["90E8",0x681E],
+ ["90E9",0x684A],
+ ["90EA",0x6852],
+ ["90EB",0x6855],
+ ["90EC",0x6859],
+ ["90ED",0x688D],
+ ["90EE",0x68B9],
+ ["90EF",0x68CF],
+ ["90F0",0x5088],
+ ["90F1",0x9528],
+ ["90F2",0x9C97],
+ ["90F3",0x6922],
+ ["90F4",0x6926],
+ ["90F5",0x00DC],
+ ["90F6",0xE4DF],
+ ["90F7",0xE4E0],
+ ["90F8",0x00FC],
+ ["90F9",0xE4E2],
+ ["90FA",0xE4E3],
+ ["90FB",0x00DC],
+ ["90FC",0x00FC],
+ ["90FD",0x6936],
+ ["90FE",0x6961],
+ ["9140",0x82C5],
+ ["9141",0x82CA],
+ ["9142",0x82D8],
+ ["9143",0x8318],
+ ["9144",0x831A],
+ ["9145",0x8323],
+ ["9146",0x8346],
+ ["9147",0x835B],
+ ["9148",0x8362],
+ ["9149",0x836C],
+ ["914A",0x836E],
+ ["914B",0x839C],
+ ["914C",0x839F],
+ ["914D",0x83B5],
+ ["914E",0x83BC],
+ ["914F",0x83F7],
+ ["9150",0x842A],
+ ["9151",0x8448],
+ ["9152",0x845C],
+ ["9153",0x8462],
+ ["9154",0x8484],
+ ["9155",0x8488],
+ ["9156",0x84DC],
+ ["9157",0x84E3],
+ ["9158",0x8538],
+ ["9159",0x855A],
+ ["915A",0x8597],
+ ["915B",0x85AB],
+ ["915C",0x85C1],
+ ["915D",0x8613],
+ ["915E",0x8616],
+ ["915F",0x220B],
+ ["9160",0x8715],
+ ["9161",0x8770],
+ ["9162",0x877D],
+ ["9163",0x878B],
+ ["9164",0x87A8],
+ ["9165",0x87C7],
+ ["9166",0x87D0],
+ ["9167",0x8807],
+ ["9168",0x880E],
+ ["9169",0x8827],
+ ["916A",0x88AE],
+ ["916B",0x2208],
+ ["916C",0x88B5],
+ ["916D",0x88BF],
+ ["916E",0x88E5],
+ ["916F",0x88F5],
+ ["9170",0x891C],
+ ["9171",0x891D],
+ ["9172",0x8977],
+ ["9173",0x89E7],
+ ["9174",0x8A37],
+ ["9175",0x8AAC],
+ ["9176",0x8ADA],
+ ["9177",0x8B5B],
+ ["9178",0x8B71],
+ ["9179",0x8C2B],
+ ["917A",0x8C3A],
+ ["917B",0x8C7C],
+ ["917C",0x8C8E],
+ ["917D",0x8CAE],
+ ["917E",0x8D12],
+ ["91A1",0x8D49],
+ ["91A2",0x8D4D],
+ ["91A3",0x8D71],
+ ["91A4",0x8E08],
+ ["91A5",0x8E3A],
+ ["91A6",0x8E70],
+ ["91A7",0x8E99],
+ ["91A8",0x8EB0],
+ ["91A9",0x8EB1],
+ ["91AA",0x8EC5],
+ ["91AB",0x8EC6],
+ ["91AC",0x8ECE],
+ ["91AD",0x8EE3],
+ ["91AE",0x8F0C],
+ ["91AF",0x8F71],
+ ["91B0",0x8F77],
+ ["91B1",0x8FA7],
+ ["91B2",0x8FEF],
+ ["91B3",0x900E],
+ ["91B4",0x9039],
+ ["91B5",0x9065],
+ ["91B6",0x9089],
+ ["91B7",0x90DE],
+ ["91B8",0x9115],
+ ["91B9",0x91D6],
+ ["91BA",0x91DB],
+ ["91BB",0x91DE],
+ ["91BC",0x91E1],
+ ["91BD",0x91E5],
+ ["91BE",0x91F6],
+ ["91BF",0x91FC],
+ ["91C0",0x9229],
+ ["91C1",0x922C],
+ ["91C2",0xFF07],
+ ["91C3",0x9259],
+ ["91C4",0x9277],
+ ["91C5",0x92ED],
+ ["91C6",0x933A],
+ ["91C7",0xE54D],
+ ["91C8",0xE54E],
+ ["91C9",0x722B],
+ ["91CA",0x5182],
+ ["91CB",0x5196],
+ ["91CC",0x4E37],
+ ["91CD",0x516B],
+ ["91CE",0x513F],
+ ["91CF",0xE555],
+ ["91D0",0xE556],
+ ["91D1",0x6729],
+ ["91D2",0x6C3A],
+ ["91D3",0x5382],
+ ["91D4",0x7592],
+ ["91D5",0x8080],
+ ["91D6",0x8864],
+ ["91D7",0x4E06],
+ ["91D8",0xE55E],
+ ["91D9",0xE55F],
+ ["91DA",0xE560],
+ ["91DB",0x2E97],
+ ["91DC",0x52F9],
+ ["91DD",0x5315],
+ ["91DE",0x2021],
+ ["91DF",0xE565],
+ ["91E0",0x3404],
+ ["91E1",0xE567],
+ ["91E2",0xE568],
+ ["91E3",0xE569],
+ ["91E4",0xE56A],
+ ["91E5",0xE56B],
+ ["91E6",0x51F5],
+ ["91E7",0xE56D],
+ ["91E8",0x5C6E],
+ ["91E9",0xE56F],
+ ["91EA",0x56D7],
+ ["91EB",0x4EA0],
+ ["91EC",0x51AB],
+ ["91ED",0x2E80],
+ ["91EE",0x69C7],
+ ["91EF",0xE575],
+ ["91F0",0x254E],
+ ["91F1",0x25D8],
+ ["91F2",0x25D9],
+ ["91F3",0x2642],
+ ["91F4",0x25B6],
+ ["91F5",0x25C4],
+ ["91F6",0x2195],
+ ["91F7",0x203C],
+ ["91F8",0x00B6],
+ ["91F9",0x2200],
+ ["91FA",0x21A8],
+ ["91FB",0x2194],
+ ["91FC",0x2302],
+ ["91FD",0xE583],
+ ["91FE",0xE584],
+ ["9240",0x4E9C],
+ ["9241",0x60AA],
+ ["9242",0x5727],
+ ["9243",0x56F2],
+ ["9244",0x533B],
+ ["9245",0x58F1],
+ ["9246",0x9038],
+ ["9247",0x96A0],
+ ["9248",0x6804],
+ ["9249",0x55B6],
+ ["924A",0x99C5],
+ ["924B",0x8B01],
+ ["924C",0x5186],
+ ["924D",0x7E01],
+ ["924E",0x5FDC],
+ ["924F",0x6B27],
+ ["9250",0x6BB4],
+ ["9251",0x685C],
+ ["9252",0x5965],
+ ["9253",0x7A4F],
+ ["9254",0x4EEE],
+ ["9255",0x4FA1],
+ ["9256",0x753B],
+ ["9257",0x7070],
+ ["9258",0x4F1A],
+ ["9259",0x6094],
+ ["925A",0x6D77],
+ ["925B",0x7D75],
+ ["925C",0x58CA],
+ ["925D",0x61D0],
+ ["925E",0x62E1],
+ ["925F",0x6BBB],
+ ["9260",0x899A],
+ ["9261",0x5B66],
+ ["9262",0x697D],
+ ["9263",0x559D],
+ ["9264",0x6E07],
+ ["9265",0xE5AA],
+ ["9266",0x5DFB],
+ ["9267",0x9665],
+ ["9268",0x52E7],
+ ["9269",0x5BDB],
+ ["926A",0x6F22],
+ ["926B",0x95A2],
+ ["926C",0x6B53],
+ ["926D",0x89B3],
+ ["926E",0x6C17],
+ ["926F",0x5E30],
+ ["9270",0x622F],
+ ["9271",0x72A0],
+ ["9272",0x8650],
+ ["9273",0x65E7],
+ ["9274",0x6025],
+ ["9275",0x62E0],
+ ["9276",0x6319],
+ ["9277",0x865A],
+ ["9278",0x5CE1],
+ ["9279",0x631F],
+ ["927A",0x72ED],
+ ["927B",0x90F7],
+ ["927C",0x97FF],
+ ["927D",0x6681],
+ ["927E",0x52E4],
+ ["92A1",0x8B39],
+ ["92A2",0x533A],
+ ["92A3",0x99C6],
+ ["92A4",0x52F2],
+ ["92A5",0xE5C8],
+ ["92A6",0x5F84],
+ ["92A7",0x830E],
+ ["92A8",0x6075],
+ ["92A9",0x63B2],
+ ["92AA",0x6E13],
+ ["92AB",0x7D4C],
+ ["92AC",0x86CD],
+ ["92AD",0x8EFD],
+ ["92AE",0x7D99],
+ ["92AF",0x9D8F],
+ ["92B0",0x6483],
+ ["92B1",0x770C],
+ ["92B2",0x5039],
+ ["92B3",0x5263],
+ ["92B4",0x967A],
+ ["92B5",0x570F],
+ ["92B6",0x691C],
+ ["92B7",0x6A29],
+ ["92B8",0x9855],
+ ["92B9",0x9A13],
+ ["92BA",0x53B3],
+ ["92BB",0x5449],
+ ["92BC",0x5A2F],
+ ["92BD",0x8AA4],
+ ["92BE",0x5E83],
+ ["92BF",0x6E2F],
+ ["92C0",0x9271],
+ ["92C1",0x53F7],
+ ["92C2",0x56FD],
+ ["92C3",0x9ED2],
+ ["92C4",0x7A40],
+ ["92C5",0x7815],
+ ["92C6",0x6E08],
+ ["92C7",0x658E],
+ ["92C8",0x6B73],
+ ["92C9",0x5264],
+ ["92CA",0x96D1],
+ ["92CB",0x53C2],
+ ["92CC",0x685F],
+ ["92CD",0x60E8],
+ ["92CE",0x8CDB],
+ ["92CF",0x6B8B],
+ ["92D0",0x6B6F],
+ ["92D1",0x5150],
+ ["92D2",0x8F9E],
+ ["92D3",0x6E7F],
+ ["92D4",0x5B9F],
+ ["92D5",0x5199],
+ ["92D6",0x820E],
+ ["92D7",0x6368],
+ ["92D8",0x91C8],
+ ["92D9",0x5BFF],
+ ["92DA",0x53CE],
+ ["92DB",0x8846],
+ ["92DC",0x5F93],
+ ["92DD",0x6E0B],
+ ["92DE",0x7363],
+ ["92DF",0x7E26],
+ ["92E0",0x7C9B],
+ ["92E1",0x51E6],
+ ["92E2",0x5C06],
+ ["92E3",0x79F0],
+ ["92E4",0x6E09],
+ ["92E5",0x713C],
+ ["92E6",0x5968],
+ ["92E7",0x6761],
+ ["92E8",0x72B6],
+ ["92E9",0x4E57],
+ ["92EA",0x6D44],
+ ["92EB",0x5270],
+ ["92EC",0x7573],
+ ["92ED",0x7E04],
+ ["92EE",0x58CC],
+ ["92EF",0x5B22],
+ ["92F0",0x8B72],
+ ["92F1",0x91B8],
+ ["92F2",0x89E6],
+ ["92F3",0x5631],
+ ["92F4",0x5BDD],
+ ["92F5",0x5C3D],
+ ["92F6",0x56F3],
+ ["92F7",0x7C8B],
+ ["92F8",0x9154],
+ ["92F9",0x7A42],
+ ["92FA",0x968F],
+ ["92FB",0x9AC4],
+ ["92FC",0x67A2],
+ ["92FD",0x6570],
+ ["92FE",0x636E],
+ ["9340",0x702C],
+ ["9341",0x58F0],
+ ["9342",0x6589],
+ ["9343",0x9759],
+ ["9344",0x7A83],
+ ["9345",0x6442],
+ ["9346",0x7D76],
+ ["9347",0x5C02],
+ ["9348",0x6D45],
+ ["9349",0x6226],
+ ["934A",0x8DF5],
+ ["934B",0x92AD],
+ ["934C",0x6F5C],
+ ["934D",0x9077],
+ ["934E",0x9078],
+ ["934F",0x7E4A],
+ ["9350",0x7985],
+ ["9351",0x758E],
+ ["9352",0x58EE],
+ ["9353",0x4E89],
+ ["9354",0x8358],
+ ["9355",0x635C],
+ ["9356",0x633F],
+ ["9357",0x5DE3],
+ ["9358",0x7A93],
+ ["9359",0x88C5],
+ ["935A",0x50E7],
+ ["935B",0x5C64],
+ ["935C",0x7DCF],
+ ["935D",0x9A12],
+ ["935E",0x5897],
+ ["935F",0x618E],
+ ["9360",0x8535],
+ ["9361",0x8D08],
+ ["9362",0x81D3],
+ ["9363",0x5C5E],
+ ["9364",0x7D9A],
+ ["9365",0x5815],
+ ["9366",0x5BFE],
+ ["9367",0x5E2F],
+ ["9368",0x6EDE],
+ ["9369",0x6EDD],
+ ["936A",0x629E],
+ ["936B",0x6CA2],
+ ["936C",0x6FEF],
+ ["936D",0x5358],
+ ["936E",0x5606],
+ ["936F",0x56E3],
+ ["9370",0x65AD],
+ ["9371",0x5F3E],
+ ["9372",0x9045],
+ ["9373",0x663C],
+ ["9374",0x92F3],
+ ["9375",0x5E81],
+ ["9376",0x5FB4],
+ ["9377",0x8074],
+ ["9378",0x61F2],
+ ["9379",0x585A],
+ ["937A",0x9013],
+ ["937B",0x9244],
+ ["937C",0x70B9],
+ ["937D",0x8EE2],
+ ["937E",0x4F1D],
+ ["93A1",0x96FB],
+ ["93A2",0x706F],
+ ["93A3",0x5F53],
+ ["93A4",0x515A],
+ ["93A5",0x76D7],
+ ["93A6",0x7A32],
+ ["93A7",0x95D8],
+ ["93A8",0x5FB3],
+ ["93A9",0x6BD2],
+ ["93AA",0x72EC],
+ ["93AB",0x8AAD],
+ ["93AC",0x5C4A],
+ ["93AD",0x96E3],
+ ["93AE",0x5F10],
+ ["93AF",0x60A9],
+ ["93B0",0x8133],
+ ["93B1",0x62DD],
+ ["93B2",0x5EC3],
+ ["93B3",0x58F2],
+ ["93B4",0x6885],
+ ["93B5",0x535A],
+ ["93B6",0x8584],
+ ["93B7",0x9EA6],
+ ["93B8",0x7E1B],
+ ["93B9",0x767A],
+ ["93BA",0x9AEA],
+ ["93BB",0x629C],
+ ["93BC",0x6D5C],
+ ["93BD",0x6D5C],
+ ["93BE",0x654F],
+ ["93BF",0x6577],
+ ["93C0",0x4FAE],
+ ["93C1",0x6255],
+ ["93C2",0x4ECF],
+ ["93C3",0x8FBA],
+ ["93C4",0x5909],
+ ["93C5",0x6B69],
+ ["93C6",0x8217],
+ ["93C7",0x7C3F],
+ ["93C8",0x5305],
+ ["93C9",0x5B9D],
+ ["93CA",0x62B1],
+ ["93CB",0x6CE1],
+ ["93CC",0x80DE],
+ ["93CD",0x7832],
+ ["93CE",0x8C4A],
+ ["93CF",0x98FD],
+ ["93D0",0x58A8],
+ ["93D1",0x6BCE],
+ ["93D2",0x6E80],
+ ["93D3",0x8108],
+ ["93D4",0x9ED9],
+ ["93D5",0x8A33],
+ ["93D6",0x85AC],
+ ["93D7",0x8E8D],
+ ["93D8",0x4E0E],
+ ["93D9",0x8A89],
+ ["93DA",0x6447],
+ ["93DB",0x69D8],
+ ["93DC",0x8B21],
+ ["93DD",0x66DC],
+ ["93DE",0x6765],
+ ["93DF",0x983C],
+ ["93E0",0x4E71],
+ ["93E1",0x89A7],
+ ["93E2",0x7ADC],
+ ["93E3",0x9686],
+ ["93E4",0x65C5],
+ ["93E5",0x4E21],
+ ["93E6",0x731F],
+ ["93E7",0x7DD1],
+ ["93E8",0x6D99],
+ ["93E9",0x5841],
+ ["93EA",0x793C],
+ ["93EB",0x52B1],
+ ["93EC",0x623B],
+ ["93ED",0x970A],
+ ["93EE",0x9F62],
+ ["93EF",0x66A6],
+ ["93F0",0x6B74],
+ ["93F1",0x604B],
+ ["93F2",0x7DF4],
+ ["93F3",0x932C],
+ ["93F4",0x7089],
+ ["93F5",0x52B4],
+ ["93F6",0x697C],
+ ["93F7",0x9332],
+ ["93F8",0x6E7E],
+ ["93F9",0x5F25],
+ ["93FA",0x4E80],
+ ["93FB",0x66FD],
+ ["93FC",0x59C9],
+ ["93FD",0x5B8D],
+ ["93FE",0x5D8B],
+ ["9440",0x6A2B],
+ ["9441",0x691B],
+ ["9442",0x55B0],
+ ["9443",0x7C82],
+ ["9444",0x8FBC],
+ ["9445",0x698A],
+ ["9446",0x54B2],
+ ["9447",0x9D2B],
+ ["9448",0x96EB],
+ ["9449",0x6919],
+ ["944A",0x63C3],
+ ["944B",0x99C4],
+ ["944C",0x51E7],
+ ["944D",0x6802],
+ ["944E",0x8FBB],
+ ["944F",0x50CD],
+ ["9450",0x5CE0],
+ ["9451",0x6803],
+ ["9452",0x51EA],
+ ["9453",0x5302],
+ ["9454",0x7872],
+ ["9455",0x7551],
+ ["9456",0x7560],
+ ["9457",0x567A],
+ ["9458",0x92F2],
+ ["9459",0x5840],
+ ["945A",0x67FE],
+ ["945B",0x4FE3],
+ ["945C",0x6762],
+ ["945D",0x7C7E],
+ ["945E",0x5301],
+ ["945F",0x4FE4],
+ ["9460",0x4FE5],
+ ["9461",0x51E9],
+ ["9462",0x53FA],
+ ["9463",0x54D8],
+ ["9464",0x56CE],
+ ["9465",0x5726],
+ ["9466",0x5737],
+ ["9467",0x5738],
+ ["9468",0x5788],
+ ["9469",0x57B3],
+ ["946A",0x57AA],
+ ["946B",0x57B0],
+ ["946C",0x57D6],
+ ["946D",0x5870],
+ ["946E",0x58B9],
+ ["946F",0x58D7],
+ ["9470",0x5C76],
+ ["9471",0x5CBC],
+ ["9472",0x5CC5],
+ ["9473",0x5CBE],
+ ["9474",0x5D76],
+ ["9475",0x5F16],
+ ["9476",0x603A],
+ ["9477",0x63B5],
+ ["9478",0x6741],
+ ["9479",0x6763],
+ ["947A",0x67A1],
+ ["947B",0x68BA],
+ ["947C",0x6925],
+ ["947D",0x6928],
+ ["947E",0x6A7A],
+ ["94A1",0x6923],
+ ["94A2",0x6921],
+ ["94A3",0x697E],
+ ["94A4",0x6981],
+ ["94A5",0x69DD],
+ ["94A6",0x6A2E],
+ ["94A7",0x6A72],
+ ["94A8",0x6B1F],
+ ["94A9",0x6BDF],
+ ["94AA",0x6E15],
+ ["94AB",0x7195],
+ ["94AC",0x74E7],
+ ["94AD",0x74F2],
+ ["94AE",0x74F0],
+ ["94AF",0x74F1],
+ ["94B0",0x74F8],
+ ["94B1",0x7505],
+ ["94B2",0x7569],
+ ["94B3",0x766A],
+ ["94B4",0x7874],
+ ["94B5",0x7ACD],
+ ["94B6",0x7ACF],
+ ["94B7",0x7AD5],
+ ["94B8",0x7AD3],
+ ["94B9",0x7AE1],
+ ["94BA",0x7AF0],
+ ["94BB",0x7B02],
+ ["94BC",0x7C13],
+ ["94BD",0x7C17],
+ ["94BE",0x7C90],
+ ["94BF",0x7CAD],
+ ["94C0",0x7CC0],
+ ["94C1",0x7CD8],
+ ["94C2",0x7D9B],
+ ["94C3",0x7E05],
+ ["94C4",0x7E67],
+ ["94C5",0x7E83],
+ ["94C6",0x7E90],
+ ["94C7",0x81A4],
+ ["94C8",0x825D],
+ ["94C9",0x8422],
+ ["94CA",0x84D9],
+ ["94CB",0x8630],
+ ["94CC",0x86AB],
+ ["94CD",0x86EF],
+ ["94CE",0x88B0],
+ ["94CF",0x88C3],
+ ["94D0",0x88C4],
+ ["94D1",0x8904],
+ ["94D2",0xE72F],
+ ["94D3",0x8EBE],
+ ["94D4",0x8EC8],
+ ["94D5",0x8F4C],
+ ["94D6",0x8FB7],
+ ["94D7",0x8FDA],
+ ["94D8",0x9027],
+ ["94D9",0x9056],
+ ["94DA",0x9335],
+ ["94DB",0x933B],
+ ["94DC",0x93B9],
+ ["94DD",0x958A],
+ ["94DE",0x9596],
+ ["94DF",0x9779],
+ ["94E0",0x9786],
+ ["94E1",0x9790],
+ ["94E2",0x98AA],
+ ["94E3",0x9B96],
+ ["94E4",0x9B97],
+ ["94E5",0x9BB4],
+ ["94E6",0x9BCF],
+ ["94E7",0x9BD1],
+ ["94E8",0x9BD2],
+ ["94E9",0x9BF2],
+ ["94EA",0x9BF1],
+ ["94EB",0x9C30],
+ ["94EC",0x9C47],
+ ["94ED",0x9C5A],
+ ["94EE",0x9CF0],
+ ["94EF",0x9D46],
+ ["94F0",0x9D64],
+ ["94F1",0x9DAB],
+ ["94F2",0x4E44],
+ ["94F3",0x544F],
+ ["94F4",0x6318],
+ ["94F5",0x9BB1],
+ ["94F6",0x9C69],
+ ["94F7",0x9D47],
+ ["94F8",0x9D65],
+ ["94F9",0x9C2F],
+ ["94FA",0x9EBF],
+ ["94FB",0x51B4],
+ ["94FC",0x546A],
+ ["94FD",0x67A0],
+ ["94FE",0x9B8E],
+ ["9540",0x90A8],
+ ["9541",0x51B2],
+ ["9542",0x362D],
+ ["9543",0x62C5],
+ ["9544",0x52C5],
+ ["9545",0x67B1],
+ ["9546",0x54CD],
+ ["9547",0x6052],
+ ["9548",0x53C1],
+ ["9549",0x70F1],
+ ["954A",0x5803],
+ ["954B",0x555F],
+ ["954C",0x920E],
+ ["954D",0x7740],
+ ["954E",0x743C],
+ ["954F",0x714A],
+ ["9550",0x6ED9],
+ ["9551",0x53E0],
+ ["9552",0x732E],
+ ["9553",0x88CF],
+ ["9554",0x788D],
+ ["9555",0x7FA3],
+ ["9556",0x7DAB],
+ ["9557",0x8E2A],
+ ["9558",0x945B],
+ ["9559",0x636C],
+ ["955A",0x5FA7],
+ ["955B",0x5C05],
+ ["955C",0x803B],
+ ["955D",0x5CEF],
+ ["955E",0x39B8],
+ ["955F",0x7151],
+ ["9560",0x8CCD],
+ ["9561",0x97EE],
+ ["9562",0x5872],
+ ["9563",0x5A63],
+ ["9564",0x7F78],
+ ["9565",0x5D57],
+ ["9566",0x616F],
+ ["9567",0x6998],
+ ["9568",0x7D89],
+ ["9569",0x7CAE],
+ ["956A",0x7DB3],
+ ["956B",0x6F81],
+ ["956C",0x5AFA],
+ ["956D",0x58BB],
+ ["956E",0x7255],
+ ["956F",0x764E],
+ ["9570",0x8F2D],
+ ["9571",0x92B9],
+ ["9572",0x9D5E],
+ ["9573",0x9EAF],
+ ["9574",0x7F47],
+ ["9575",0x9DC4],
+ ["9576",0x8D18],
+ ["9577",0x51B3],
+ ["9578",0x866C],
+ ["9579",0x54A4],
+ ["957A",0x53A6],
+ ["957B",0x5226],
+ ["957C",0x6736],
+ ["957D",0x4E21],
+ ["957E",0x5374],
+ ["95A1",0x5EF9],
+ ["95A2",0x52B9],
+ ["95A3",0x548F],
+ ["95A4",0x5EF8],
+ ["95A5",0x59AC],
+ ["95A6",0x6031],
+ ["95A7",0x7240],
+ ["95A8",0x8117],
+ ["95A9",0x763B],
+ ["95AA",0x5F0D],
+ ["95AB",0x664B],
+ ["95AC",0x66A8],
+ ["95AD",0x6164],
+ ["95AE",0x634F],
+ ["95AF",0x70DF],
+ ["95B0",0x6D24],
+ ["95B1",0x7CA7],
+ ["95B2",0x7CC9],
+ ["95B3",0x53D9],
+ ["95B4",0x654D],
+ ["95B5",0x5742],
+ ["95B6",0x73CF],
+ ["95B7",0x80C6],
+ ["95B8",0x3551],
+ ["95B9",0x6B35],
+ ["95BA",0x7881],
+ ["95BB",0x53CC],
+ ["95BC",0x732B],
+ ["95BD",0x732A],
+ ["95BE",0x73C9],
+ ["95BF",0x754A],
+ ["95C0",0x59F9],
+ ["95C1",0x71C4],
+ ["95C2",0x750E],
+ ["95C3",0x7DDC],
+ ["95C4",0x99E1],
+ ["95C5",0x89A9],
+ ["95C6",0x6FF6],
+ ["95C7",0x3A57],
+ ["95C8",0x64EA],
+ ["95C9",0x3BED],
+ ["95CA",0x6CA1],
+ ["95CB",0x6E7C],
+ ["95CC",0x7567],
+ ["95CD",0x5869],
+ ["95CE",0x5869],
+ ["95CF",0x5204],
+ ["95D0",0xE7CA],
+ ["95D1",0x6187],
+ ["95D2",0x643A],
+ ["95D3",0x81EF],
+ ["95D4",0xE7CE],
+ ["95D5",0x51B5],
+ ["95D6",0x51D1],
+ ["95D7",0x6C79],
+ ["95D8",0x591F],
+ ["95D9",0x8FF9],
+ ["95DA",0x98F1],
+ ["95DB",0x6537],
+ ["95DC",0x8109],
+ ["95DD",0x88B4],
+ ["95DE",0x3A2A],
+ ["95DF",0x8EAD],
+ ["95E0",0x7F97],
+ ["95E1",0x9A10],
+ ["95E2",0x7D25],
+ ["95E3",0x6AC8],
+ ["95E4",0x518C],
+ ["95E5",0x5227],
+ ["95E6",0xE7E0],
+ ["95E7",0x811A],
+ ["95E8",0x53A0],
+ ["95E9",0x53A2],
+ ["95EA",0x6C5A],
+ ["95EB",0x6C37],
+ ["95EC",0x8218],
+ ["95ED",0x5586],
+ ["95EE",0x5EFB],
+ ["95EF",0x51C9],
+ ["95F0",0x78B1],
+ ["95F1",0x9262],
+ ["95F2",0x536D],
+ ["95F3",0x51C3],
+ ["95F4",0xE7EE],
+ ["95F5",0x8471],
+ ["95F6",0x8987],
+ ["95F7",0x976D],
+ ["95F8",0x8B90],
+ ["95F9",0x96A3],
+ ["95FA",0x5EFC],
+ ["95FB",0x96B7],
+ ["95FC",0x514E],
+ ["95FD",0x9C10],
+ ["95FE",0x6630],
+ ["9640",0x9255],
+ ["9641",0x7808],
+ ["9642",0x9345],
+ ["9643",0x9273],
+ ["9644",0x9369],
+ ["9645",0xE7FE],
+ ["9646",0xE7FF],
+ ["9647",0xE800],
+ ["9648",0xE801],
+ ["9649",0x91DF],
+ ["964A",0x91DA],
+ ["964B",0x7854],
+ ["964C",0x7866],
+ ["964D",0x7888],
+ ["964E",0x78B6],
+ ["964F",0x78C7],
+ ["9650",0x78D2],
+ ["9651",0x78D7],
+ ["9652",0x212B],
+ ["9653",0x21CB],
+ ["9654",0x78E4],
+ ["9655",0x78EE],
+ ["9656",0x78F0],
+ ["9657",0x78F1],
+ ["9658",0x78F5],
+ ["9659",0x7932],
+ ["965A",0x7933],
+ ["965B",0x7936],
+ ["965C",0x7958],
+ ["965D",0x3013],
+ ["965E",0x7959],
+ ["965F",0x7971],
+ ["9660",0x797E],
+ ["9661",0x7983],
+ ["9662",0x7986],
+ ["9663",0x7987],
+ ["9664",0x7991],
+ ["9665",0x7999],
+ ["9666",0x799F],
+ ["9667",0x79A5],
+ ["9668",0x79E2],
+ ["9669",0x79F1],
+ ["966A",0x79F4],
+ ["966B",0x7A2A],
+ ["966C",0x7A3A],
+ ["966D",0x7A45],
+ ["966E",0x7A65],
+ ["966F",0x7ABC],
+ ["9670",0x7AC2],
+ ["9671",0x7AC9],
+ ["9672",0x7ADB],
+ ["9673",0x7AE9],
+ ["9674",0x7AFE],
+ ["9675",0x7B0C],
+ ["9676",0x7B27],
+ ["9677",0x7B29],
+ ["9678",0x7B42],
+ ["9679",0x7B43],
+ ["967A",0x7B55],
+ ["967B",0x7B6F],
+ ["967C",0x7BB2],
+ ["967D",0x69DE],
+ ["967E",0x69F9],
+ ["96A1",0x9176],
+ ["96A2",0x815A],
+ ["96A3",0x82F7],
+ ["96A4",0x544B],
+ ["96A5",0x8132],
+ ["96A6",0x80BD],
+ ["96A7",0x8418],
+ ["96A8",0x915E],
+ ["96A9",0x9170],
+ ["96AA",0x918C],
+ ["96AB",0x8148],
+ ["96AC",0xE843],
+ ["96AD",0x4436],
+ ["96AE",0x8159],
+ ["96AF",0x809F],
+ ["96B0",0xE847],
+ ["96B1",0x5549],
+ ["96B2",0x5421],
+ ["96B3",0x54DA],
+ ["96B4",0x5432],
+ ["96B5",0x55B9],
+ ["96B6",0x5494],
+ ["96B7",0xE84E],
+ ["96B8",0x7852],
+ ["96B9",0x7845],
+ ["96BA",0x784C],
+ ["96BB",0xE852],
+ ["96BC",0x84BD],
+ ["96BD",0x841C],
+ ["96BE",0x82C4],
+ ["96BF",0xE856],
+ ["96C0",0x847B],
+ ["96C1",0x8B2D],
+ ["96C2",0xE859],
+ ["96C3",0x574B],
+ ["96C4",0xE85B],
+ ["96C5",0xE85C],
+ ["96C6",0x5745],
+ ["96C7",0x87CE],
+ ["96C8",0x5660],
+ ["96C9",0x55EA],
+ ["96CA",0x567B],
+ ["96CB",0x80BC],
+ ["96CC",0xE863],
+ ["96CD",0x78B8],
+ ["96CE",0x6A0C],
+ ["96CF",0x54CC],
+ ["96D0",0x7BD0],
+ ["96D1",0x7BEC],
+ ["96D2",0x7BFA],
+ ["96D3",0x7C15],
+ ["96D4",0x7C1B],
+ ["96D5",0x7C35],
+ ["96D6",0x7C44],
+ ["96D7",0x7C6D],
+ ["96D8",0x7C8E],
+ ["96D9",0x7CB8],
+ ["96DA",0x7CC3],
+ ["96DB",0x7CE6],
+ ["96DC",0x7CED],
+ ["96DD",0x7CF3],
+ ["96DE",0x7CF5],
+ ["96DF",0x7CF9],
+ ["96E0",0xE877],
+ ["96E1",0x7CFC],
+ ["96E2",0x7D8B],
+ ["96E3",0x7D97],
+ ["96E4",0x7DA4],
+ ["96E5",0x7DA8],
+ ["96E6",0x7DCD],
+ ["96E7",0x7DD0],
+ ["96E8",0x7DD3],
+ ["96E9",0x7DE5],
+ ["96EA",0x7DFD],
+ ["96EB",0x6A12],
+ ["96EC",0x6A22],
+ ["96ED",0x6A30],
+ ["96EE",0x6A36],
+ ["96EF",0x6A65],
+ ["96F0",0xE887],
+ ["96F1",0xE888],
+ ["96F2",0xE889],
+ ["96F3",0xE88A],
+ ["96F4",0xE88B],
+ ["96F5",0xE88C],
+ ["96F6",0xE88D],
+ ["96F7",0xE88E],
+ ["96F8",0x6A73],
+ ["96F9",0x6A78],
+ ["96FA",0xE891],
+ ["96FB",0xE892],
+ ["96FC",0x6A7C],
+ ["96FD",0x6AA9],
+ ["96FE",0x6AAA],
+ ["9740",0x24EA],
+ ["9741",0x2460],
+ ["9742",0x2461],
+ ["9743",0x2462],
+ ["9744",0x2463],
+ ["9745",0x2464],
+ ["9746",0x2465],
+ ["9747",0x2466],
+ ["9748",0x2467],
+ ["9749",0x2468],
+ ["974A",0x2469],
+ ["974B",0x246A],
+ ["974C",0x246B],
+ ["974D",0x246C],
+ ["974E",0x246D],
+ ["974F",0x246E],
+ ["9750",0x246F],
+ ["9751",0x2470],
+ ["9752",0x2471],
+ ["9753",0x2472],
+ ["9754",0x2473],
+ ["9755",0x9344],
+ ["9756",0x93AD],
+ ["9757",0x93C6],
+ ["9758",0x93E5],
+ ["9759",0x941A],
+ ["975A",0x9421],
+ ["975B",0x943E],
+ ["975C",0x9441],
+ ["975D",0x9453],
+ ["975E",0x945A],
+ ["975F",0x949A],
+ ["9760",0x94B7],
+ ["9761",0x94D8],
+ ["9762",0x94DE],
+ ["9763",0x94F3],
+ ["9764",0x9503],
+ ["9765",0x950E],
+ ["9766",0x950F],
+ ["9767",0x9518],
+ ["9768",0x951D],
+ ["9769",0x952A],
+ ["976A",0x952B],
+ ["976B",0x953F],
+ ["976C",0x9545],
+ ["976D",0x954E],
+ ["976E",0x9562],
+ ["976F",0x9565],
+ ["9770",0x9569],
+ ["9771",0x9572],
+ ["9772",0x9587],
+ ["9773",0x9599],
+ ["9774",0x95A0],
+ ["9775",0x95B2],
+ ["9776",0x9666],
+ ["9777",0x969D],
+ ["9778",0x96AF],
+ ["9779",0x96B2],
+ ["977A",0x9733],
+ ["977B",0x973B],
+ ["977C",0x974D],
+ ["977D",0x974F],
+ ["977E",0x9751],
+ ["97A1",0x9755],
+ ["97A2",0x9764],
+ ["97A3",0x976B],
+ ["97A4",0x9771],
+ ["97A5",0x9792],
+ ["97A6",0x97B2],
+ ["97A7",0x97F2],
+ ["97A8",0x983D],
+ ["97A9",0x9854],
+ ["97AA",0x98A5],
+ ["97AB",0x98C3],
+ ["97AC",0x98DA],
+ ["97AD",0x98EE],
+ ["97AE",0x991D],
+ ["97AF",0x9920],
+ ["97B0",0x9963],
+ ["97B1",0x9980],
+ ["97B2",0x9987],
+ ["97B3",0x998D],
+ ["97B4",0x9993],
+ ["97B5",0x9995],
+ ["97B6",0x99BC],
+ ["97B7",0x99C8],
+ ["97B8",0x99F2],
+ ["97B9",0x9AB6],
+ ["97BA",0x9AD9],
+ ["97BB",0x9ADE],
+ ["97BC",0x9B0F],
+ ["97BD",0x9B49],
+ ["97BE",0x9B72],
+ ["97BF",0x9B83],
+ ["97C0",0x9B9F],
+ ["97C1",0x9BBB],
+ ["97C2",0x9BE3],
+ ["97C3",0x9BF5],
+ ["97C4",0x9C00],
+ ["97C5",0x9C04],
+ ["97C6",0x9C1B],
+ ["97C7",0x24B6],
+ ["97C8",0x24B7],
+ ["97C9",0x24B8],
+ ["97CA",0x24B9],
+ ["97CB",0x24BA],
+ ["97CC",0x24BB],
+ ["97CD",0x24BC],
+ ["97CE",0x24BD],
+ ["97CF",0x24BE],
+ ["97D0",0x24BF],
+ ["97D1",0x24C0],
+ ["97D2",0x24C1],
+ ["97D3",0x24C2],
+ ["97D4",0x24C3],
+ ["97D5",0x24C4],
+ ["97D6",0x24C5],
+ ["97D7",0x24C6],
+ ["97D8",0x24C7],
+ ["97D9",0x24C8],
+ ["97DA",0x24C9],
+ ["97DB",0x24CA],
+ ["97DC",0x24CB],
+ ["97DD",0x24CC],
+ ["97DE",0x24CD],
+ ["97DF",0x24CE],
+ ["97E0",0x24CF],
+ ["97E1",0x24D0],
+ ["97E2",0x24D1],
+ ["97E3",0x24D2],
+ ["97E4",0x24D3],
+ ["97E5",0x24D4],
+ ["97E6",0x24D5],
+ ["97E7",0x24D6],
+ ["97E8",0x24D7],
+ ["97E9",0x24D8],
+ ["97EA",0x24D9],
+ ["97EB",0x24DA],
+ ["97EC",0x24DB],
+ ["97ED",0x24DC],
+ ["97EE",0x24DD],
+ ["97EF",0x24DE],
+ ["97F0",0x24DF],
+ ["97F1",0x24E0],
+ ["97F2",0x24E1],
+ ["97F3",0x24E2],
+ ["97F4",0x24E3],
+ ["97F5",0x24E4],
+ ["97F6",0x24E5],
+ ["97F7",0x24E6],
+ ["97F8",0x24E7],
+ ["97F9",0x24E8],
+ ["97FA",0x24E9],
+ ["97FB",0x00AE],
+ ["97FC",0x2122],
+ ["97FD",0xE931],
+ ["97FE",0xE932],
+ ["9840",0x9C76],
+ ["9841",0x278A],
+ ["9842",0x278B],
+ ["9843",0x278C],
+ ["9844",0x278D],
+ ["9845",0x278E],
+ ["9846",0x278F],
+ ["9847",0x2790],
+ ["9848",0x2791],
+ ["9849",0x2792],
+ ["984A",0x2793],
+ ["984B",0x9C85],
+ ["984C",0x9C86],
+ ["984D",0x9C87],
+ ["984E",0x9C8B],
+ ["984F",0x9C90],
+ ["9850",0x9C9E],
+ ["9851",0x9CAE],
+ ["9852",0x9CB0],
+ ["9853",0x9CB2],
+ ["9854",0x9CB4],
+ ["9855",0x9CBA],
+ ["9856",0x9CBC],
+ ["9857",0x9CBD],
+ ["9858",0x9CC6],
+ ["9859",0x9CC7],
+ ["985A",0x9CCA],
+ ["985B",0x9CCB],
+ ["985C",0x9CD3],
+ ["985D",0x9CD8],
+ ["985E",0x9CD9],
+ ["985F",0x9CE2],
+ ["9860",0x9CEB],
+ ["9861",0x9CEC],
+ ["9862",0x9D2A],
+ ["9863",0x9D48],
+ ["9864",0x9D50],
+ ["9865",0x9D7A],
+ ["9866",0x9DC6],
+ ["9867",0x9E4B],
+ ["9868",0x9E55],
+ ["9869",0x9E5B],
+ ["986A",0x9E71],
+ ["986B",0x9EAA],
+ ["986C",0x9EBD],
+ ["986D",0x9EC4],
+ ["986E",0x9EE2],
+ ["986F",0x9EEA],
+ ["9870",0x9F08],
+ ["9871",0x9F0B],
+ ["9872",0x9F0D],
+ ["9873",0x9F21],
+ ["9874",0x9F44],
+ ["9875",0x9F51],
+ ["9876",0x9F9D],
+ ["9877",0xFA0E],
+ ["9878",0xFA0F],
+ ["9879",0xFA11],
+ ["987A",0xFA13],
+ ["987B",0xFA14],
+ ["987C",0xFA18],
+ ["987D",0xFA1F],
+ ["987E",0xFA20],
+ ["98A1",0xFA21],
+ ["98A2",0xFA23],
+ ["98A3",0xFA24],
+ ["98A4",0xFA27],
+ ["98A5",0xFA28],
+ ["98A6",0xFA29],
+ ["98A7",0x4E04],
+ ["98A8",0x4E2F],
+ ["98A9",0x4E81],
+ ["98AA",0x4E87],
+ ["98AB",0x4EA3],
+ ["98AC",0x4EB7],
+ ["98AD",0x4EBC],
+ ["98AE",0x4EF8],
+ ["98AF",0x4F28],
+ ["98B0",0x4F29],
+ ["98B1",0x4F37],
+ ["98B2",0x4F42],
+ ["98B3",0x4F45],
+ ["98B4",0x4F4B],
+ ["98B5",0x4F72],
+ ["98B6",0x4FA2],
+ ["98B7",0x4FB0],
+ ["98B8",0x4FBD],
+ ["98B9",0x4FC8],
+ ["98BA",0x4FCC],
+ ["98BB",0x4FF0],
+ ["98BC",0x4FF2],
+ ["98BD",0x4FF9],
+ ["98BE",0x5003],
+ ["98BF",0x5008],
+ ["98C0",0x5034],
+ ["98C1",0x503B],
+ ["98C2",0x5058],
+ ["98C3",0x5066],
+ ["98C4",0x5081],
+ ["98C5",0x5090],
+ ["98C6",0x50BC],
+ ["98C7",0x50D0],
+ ["98C8",0x50DF],
+ ["98C9",0x50E1],
+ ["98CA",0x50FC],
+ ["98CB",0x510D],
+ ["98CC",0x512B],
+ ["98CD",0x5160],
+ ["98CE",0x51AE],
+ ["98CF",0x51B8],
+ ["98D0",0x51D2],
+ ["98D1",0x51E2],
+ ["98D2",0x5205],
+ ["98D3",0x5234],
+ ["98D4",0x523C],
+ ["98D5",0x5259],
+ ["98D6",0x5268],
+ ["98D7",0x5279],
+ ["98D8",0x52A4],
+ ["98D9",0x52CC],
+ ["98DA",0x5327],
+ ["98DB",0x5342],
+ ["98DC",0x535D],
+ ["98DD",0x537D],
+ ["98DE",0x537E],
+ ["98DF",0x53C5],
+ ["98E0",0x53D0],
+ ["98E1",0x53D2],
+ ["98E2",0x53FE],
+ ["98E3",0x546D],
+ ["98E4",0x5485],
+ ["98E5",0x5493],
+ ["98E6",0x549E],
+ ["98E7",0x54B9],
+ ["98E8",0x54E3],
+ ["98E9",0x54EF],
+ ["98EA",0x550D],
+ ["98EB",0x5518],
+ ["98EC",0x5525],
+ ["98ED",0x5528],
+ ["98EE",0x552B],
+ ["98EF",0x5547],
+ ["98F0",0x5579],
+ ["98F1",0x5590],
+ ["98F2",0x55B4],
+ ["98F3",0x55C1],
+ ["98F4",0x55D7],
+ ["98F5",0x55D8],
+ ["98F6",0x55FB],
+ ["98F7",0x4FB4],
+ ["98F8",0x5621],
+ ["98F9",0x2203],
+ ["98FA",0x5652],
+ ["98FB",0xE9CC],
+ ["98FC",0x263B],
+ ["98FD",0xE9CE],
+ ["98FE",0xE9CF],
+ ["9940",0x565D],
+ ["9941",0x2474],
+ ["9942",0x2475],
+ ["9943",0x2476],
+ ["9944",0x2477],
+ ["9945",0x2478],
+ ["9946",0x2479],
+ ["9947",0x247A],
+ ["9948",0x247B],
+ ["9949",0x247C],
+ ["994A",0x247D],
+ ["994B",0x247E],
+ ["994C",0x247F],
+ ["994D",0x2480],
+ ["994E",0x2481],
+ ["994F",0x2482],
+ ["9950",0x2483],
+ ["9951",0x2484],
+ ["9952",0x2485],
+ ["9953",0x2486],
+ ["9954",0x2487],
+ ["9955",0x5661],
+ ["9956",0x5689],
+ ["9957",0x568B],
+ ["9958",0x569E],
+ ["9959",0x56A1],
+ ["995A",0x56B1],
+ ["995B",0x56B9],
+ ["995C",0x56BF],
+ ["995D",0x56D6],
+ ["995E",0x56EF],
+ ["995F",0x5715],
+ ["9960",0x571D],
+ ["9961",0x5732],
+ ["9962",0x573D],
+ ["9963",0x573F],
+ ["9964",0x5743],
+ ["9965",0x21D4],
+ ["9966",0x577E],
+ ["9967",0x578A],
+ ["9968",0x578D],
+ ["9969",0x5790],
+ ["996A",0x579C],
+ ["996B",0x57BB],
+ ["996C",0x57BE],
+ ["996D",0x57C4],
+ ["996E",0x57DE],
+ ["996F",0x57FE],
+ ["9970",0x5812],
+ ["9971",0x5822],
+ ["9972",0x5847],
+ ["9973",0x585C],
+ ["9974",0x585F],
+ ["9975",0x5873],
+ ["9976",0x58A7],
+ ["9977",0x58AA],
+ ["9978",0x58B0],
+ ["9979",0x58B5],
+ ["997A",0x58B6],
+ ["997B",0x58CB],
+ ["997C",0x58D0],
+ ["997D",0x58E0],
+ ["997E",0x5905],
+ ["99A1",0x5911],
+ ["99A2",0x5989],
+ ["99A3",0x5994],
+ ["99A4",0x599A],
+ ["99A5",0x599F],
+ ["99A6",0x59B0],
+ ["99A7",0x59B8],
+ ["99A8",0x59C4],
+ ["99A9",0x59EF],
+ ["99AA",0x59F0],
+ ["99AB",0x59F8],
+ ["99AC",0x5A02],
+ ["99AD",0x5A0B],
+ ["99AE",0x5A0D],
+ ["99AF",0x5A12],
+ ["99B0",0x5A21],
+ ["99B1",0x5A24],
+ ["99B2",0x5A27],
+ ["99B3",0x5A2A],
+ ["99B4",0x5A2B],
+ ["99B5",0x5A2C],
+ ["99B6",0x5A3D],
+ ["99B7",0x5A45],
+ ["99B8",0x5A54],
+ ["99B9",0x5A59],
+ ["99BA",0x5A61],
+ ["99BB",0x5A68],
+ ["99BC",0x5A6B],
+ ["99BD",0x5A6E],
+ ["99BE",0x5A71],
+ ["99BF",0x5A79],
+ ["99C0",0x5A7E],
+ ["99C1",0x5A81],
+ ["99C2",0x5A82],
+ ["99C3",0x5A86],
+ ["99C4",0x5A88],
+ ["99C5",0x5A91],
+ ["99C6",0x5A99],
+ ["99C7",0x5AA0],
+ ["99C8",0x5AA1],
+ ["99C9",0x5AAB],
+ ["99CA",0x5AC3],
+ ["99CB",0x5ACE],
+ ["99CC",0x5ACF],
+ ["99CD",0x5AD3],
+ ["99CE",0x5AE4],
+ ["99CF",0x5AF0],
+ ["99D0",0x5AFE],
+ ["99D1",0x5B0D],
+ ["99D2",0x5B11],
+ ["99D3",0x5B15],
+ ["99D4",0x5B1F],
+ ["99D5",0x5B2B],
+ ["99D6",0x5B41],
+ ["99D7",0x5B44],
+ ["99D8",0x5B46],
+ ["99D9",0x5B4A],
+ ["99DA",0x5B4F],
+ ["99DB",0x5B68],
+ ["99DC",0x5B74],
+ ["99DD",0x5B76],
+ ["99DE",0x5B7C],
+ ["99DF",0x5B82],
+ ["99E0",0x5B90],
+ ["99E1",0x249C],
+ ["99E2",0x249D],
+ ["99E3",0x249E],
+ ["99E4",0x249F],
+ ["99E5",0x24A0],
+ ["99E6",0x24A1],
+ ["99E7",0x24A2],
+ ["99E8",0x24A3],
+ ["99E9",0x24A4],
+ ["99EA",0x24A5],
+ ["99EB",0x24A6],
+ ["99EC",0x24A7],
+ ["99ED",0x24A8],
+ ["99EE",0x24A9],
+ ["99EF",0x24AA],
+ ["99F0",0x24AB],
+ ["99F1",0x24AC],
+ ["99F2",0x24AD],
+ ["99F3",0x24AE],
+ ["99F4",0x24AF],
+ ["99F5",0x24B0],
+ ["99F6",0x24B1],
+ ["99F7",0x24B2],
+ ["99F8",0x24B3],
+ ["99F9",0x24B4],
+ ["99FA",0x24B5],
+ ["99FB",0xEA69],
+ ["99FC",0x3232],
+ ["99FD",0x3231],
+ ["99FE",0x6AAB],
+ ["9A40",0x5B96],
+ ["9A41",0x2488],
+ ["9A42",0x2489],
+ ["9A43",0x248A],
+ ["9A44",0x248B],
+ ["9A45",0x248C],
+ ["9A46",0x248D],
+ ["9A47",0x248E],
+ ["9A48",0x248F],
+ ["9A49",0x2490],
+ ["9A4A",0x2491],
+ ["9A4B",0x2492],
+ ["9A4C",0x2493],
+ ["9A4D",0x2494],
+ ["9A4E",0x2495],
+ ["9A4F",0x2496],
+ ["9A50",0x2497],
+ ["9A51",0x2498],
+ ["9A52",0x2499],
+ ["9A53",0x249A],
+ ["9A54",0x249B],
+ ["9A55",0x5BD5],
+ ["9A56",0x5BD7],
+ ["9A57",0x5C23],
+ ["9A58",0x5C85],
+ ["9A59",0x5C9E],
+ ["9A5A",0x5CC2],
+ ["9A5B",0x5D10],
+ ["9A5C",0x5D2C],
+ ["9A5D",0x5D2F],
+ ["9A5E",0x5D48],
+ ["9A5F",0x5D56],
+ ["9A60",0x5D70],
+ ["9A61",0x5D7B],
+ ["9A62",0x5D85],
+ ["9A63",0x5DA4],
+ ["9A64",0x5DAB],
+ ["9A65",0x5DB6],
+ ["9A66",0x5DC1],
+ ["9A67",0x5DD7],
+ ["9A68",0x5E09],
+ ["9A69",0x5E48],
+ ["9A6A",0x5E92],
+ ["9A6B",0x5EBD],
+ ["9A6C",0x5F0E],
+ ["9A6D",0x5F72],
+ ["9A6E",0x5FB1],
+ ["9A6F",0x5FC2],
+ ["9A70",0x5FDB],
+ ["9A71",0x5FDF],
+ ["9A72",0x6023],
+ ["9A73",0x607E],
+ ["9A74",0x60D7],
+ ["9A75",0x6107],
+ ["9A76",0x610C],
+ ["9A77",0x6119],
+ ["9A78",0x6122],
+ ["9A79",0x6150],
+ ["9A7A",0x6160],
+ ["9A7B",0x6181],
+ ["9A7C",0x6195],
+ ["9A7D",0x61B9],
+ ["9A7E",0x61C0],
+ ["9AA1",0x61CF],
+ ["9AA2",0x61D3],
+ ["9AA3",0x61DA],
+ ["9AA4",0x6290],
+ ["9AA5",0x6331],
+ ["9AA6",0x2283],
+ ["9AA7",0x6337],
+ ["9AA8",0x6379],
+ ["9AA9",0x638B],
+ ["9AAA",0x63C1],
+ ["9AAB",0x63E2],
+ ["9AAC",0x63E6],
+ ["9AAD",0x63FB],
+ ["9AAE",0x63FE],
+ ["9AAF",0x6407],
+ ["9AB0",0x6432],
+ ["9AB1",0x6438],
+ ["9AB2",0x643B],
+ ["9AB3",0x645A],
+ ["9AB4",0x6471],
+ ["9AB5",0x647C],
+ ["9AB6",0x648D],
+ ["9AB7",0x64AF],
+ ["9AB8",0x64B4],
+ ["9AB9",0x64B6],
+ ["9ABA",0x64DD],
+ ["9ABB",0x64E5],
+ ["9ABC",0x650A],
+ ["9ABD",0x6511],
+ ["9ABE",0x651F],
+ ["9ABF",0x655F],
+ ["9AC0",0x656D],
+ ["9AC1",0x6586],
+ ["9AC2",0x65B5],
+ ["9AC3",0x65BE],
+ ["9AC4",0x65D1],
+ ["9AC5",0x65D4],
+ ["9AC6",0x65E3],
+ ["9AC7",0x65FF],
+ ["9AC8",0x6618],
+ ["9AC9",0x6623],
+ ["9ACA",0x6663],
+ ["9ACB",0x666B],
+ ["9ACC",0x667D],
+ ["9ACD",0x6685],
+ ["9ACE",0x6692],
+ ["9ACF",0x669A],
+ ["9AD0",0x66A4],
+ ["9AD1",0x66AD],
+ ["9AD2",0x66B3],
+ ["9AD3",0x66B6],
+ ["9AD4",0x66CD],
+ ["9AD5",0x66CE],
+ ["9AD6",0x6702],
+ ["9AD7",0x670C],
+ ["9AD8",0x6719],
+ ["9AD9",0x6744],
+ ["9ADA",0x676B],
+ ["9ADB",0x678F],
+ ["9ADC",0x67A4],
+ ["9ADD",0x67BF],
+ ["9ADE",0x67D6],
+ ["9ADF",0x67D7],
+ ["9AE0",0x2282],
+ ["9AE1",0x680D],
+ ["9AE2",0x6810],
+ ["9AE3",0x681B],
+ ["9AE4",0x6836],
+ ["9AE5",0x6847],
+ ["9AE6",0x6856],
+ ["9AE7",0x6884],
+ ["9AE8",0x6888],
+ ["9AE9",0x68BD],
+ ["9AEA",0x68C3],
+ ["9AEB",0x68C5],
+ ["9AEC",0x6902],
+ ["9AED",0x6903],
+ ["9AEE",0x6909],
+ ["9AEF",0x6918],
+ ["9AF0",0x6943],
+ ["9AF1",0x6946],
+ ["9AF2",0x6964],
+ ["9AF3",0x6967],
+ ["9AF4",0x6972],
+ ["9AF5",0x6985],
+ ["9AF6",0x699F],
+ ["9AF7",0x69A2],
+ ["9AF8",0x69D1],
+ ["9AF9",0x69D5],
+ ["9AFA",0x69D6],
+ ["9AFB",0x9A21],
+ ["9AFC",0x9A26],
+ ["9AFD",0x9A2F],
+ ["9AFE",0x6AC1],
+ ["9B40",0x59BF],
+ ["9B41",0x69E1],
+ ["9B42",0x6A03],
+ ["9B43",0x6A1A],
+ ["9B44",0x6A1C],
+ ["9B45",0x6A2C],
+ ["9B46",0x6A2D],
+ ["9B47",0x6A33],
+ ["9B48",0x6A43],
+ ["9B49",0x6A45],
+ ["9B4A",0x6A4C],
+ ["9B4B",0x6A53],
+ ["9B4C",0x6A57],
+ ["9B4D",0x6A63],
+ ["9B4E",0x6A74],
+ ["9B4F",0x6A82],
+ ["9B50",0x6A8A],
+ ["9B51",0x6A8F],
+ ["9B52",0x6A99],
+ ["9B53",0x6AA7],
+ ["9B54",0x6AB1],
+ ["9B55",0x6AB5],
+ ["9B56",0x6ABE],
+ ["9B57",0x6AC9],
+ ["9B58",0x6AD4],
+ ["9B59",0x6AD8],
+ ["9B5A",0x6AF6],
+ ["9B5B",0x6B57],
+ ["9B5C",0x6B7A],
+ ["9B5D",0x6BDC],
+ ["9B5E",0x6C1C],
+ ["9B5F",0x6C31],
+ ["9B60",0x6C58],
+ ["9B61",0x6C6E],
+ ["9B62",0x6C75],
+ ["9B63",0x6C7F],
+ ["9B64",0x6CAF],
+ ["9B65",0x6CCB],
+ ["9B66",0x6CDF],
+ ["9B67",0x6CFF],
+ ["9B68",0x6D02],
+ ["9B69",0x6D05],
+ ["9B6A",0x6D06],
+ ["9B6B",0x6D26],
+ ["9B6C",0x6D57],
+ ["9B6D",0x6D5B],
+ ["9B6E",0x6D71],
+ ["9B6F",0x6D81],
+ ["9B70",0x6D8F],
+ ["9B71",0x6DA5],
+ ["9B72",0x6DB1],
+ ["9B73",0x6DFE],
+ ["9B74",0x6E02],
+ ["9B75",0x6E04],
+ ["9B76",0x6E0F],
+ ["9B77",0x6E18],
+ ["9B78",0x6E2A],
+ ["9B79",0x6E50],
+ ["9B7A",0x6E59],
+ ["9B7B",0x6E9A],
+ ["9B7C",0x6EB5],
+ ["9B7D",0x6EB8],
+ ["9B7E",0x6EDB],
+ ["9BA1",0x6EFA],
+ ["9BA2",0x6F04],
+ ["9BA3",0x6F0B],
+ ["9BA4",0x6F0C],
+ ["9BA5",0x6F16],
+ ["9BA6",0x6F17],
+ ["9BA7",0x6F34],
+ ["9BA8",0x6F3D],
+ ["9BA9",0x6F56],
+ ["9BAA",0x6F79],
+ ["9BAB",0x6F8A],
+ ["9BAC",0x6F9D],
+ ["9BAD",0x6F9F],
+ ["9BAE",0x6FBB],
+ ["9BAF",0x6FBE],
+ ["9BB0",0x6FD3],
+ ["9BB1",0x6FD9],
+ ["9BB2",0x6FF8],
+ ["9BB3",0x7003],
+ ["9BB4",0x704B],
+ ["9BB5",0x704D],
+ ["9BB6",0x7050],
+ ["9BB7",0x7054],
+ ["9BB8",0x705C],
+ ["9BB9",0x7067],
+ ["9BBA",0x7077],
+ ["9BBB",0x7079],
+ ["9BBC",0x708B],
+ ["9BBD",0x708F],
+ ["9BBE",0x70A0],
+ ["9BBF",0x70A3],
+ ["9BC0",0x70A5],
+ ["9BC1",0x70A6],
+ ["9BC2",0x70A7],
+ ["9BC3",0x70C4],
+ ["9BC4",0x70CC],
+ ["9BC5",0x70D0],
+ ["9BC6",0x70D6],
+ ["9BC7",0x026A],
+ ["9BC8",0x025B],
+ ["9BC9",0x00E6],
+ ["9BCA",0x028C],
+ ["9BCB",0x0251],
+ ["9BCC",0x0254],
+ ["9BCD",0x028A],
+ ["9BCE",0x025D],
+ ["9BCF",0x0259],
+ ["9BD0",0x025A],
+ ["9BD1",0x025C],
+ ["9BD2",0x0261],
+ ["9BD3",0x1E43],
+ ["9BD4",0x1E49],
+ ["9BD5",0x014A],
+ ["9BD6",0x1E3B],
+ ["9BD7",0x0275],
+ ["9BD8",0x00F0],
+ ["9BD9",0x0283],
+ ["9BDA",0x0292],
+ ["9BDB",0x02A7],
+ ["9BDC",0x02A4],
+ ["9BDD",0x00E3],
+ ["9BDE",0xEB86],
+ ["9BDF",0xEB87],
+ ["9BE0",0x026F],
+ ["9BE1",0x0278],
+ ["9BE2",0x0287],
+ ["9BE3",0xEB8B],
+ ["9BE4",0x00C7],
+ ["9BE5",0x0153],
+ ["9BE6",0x0252],
+ ["9BE7",0xFF47],
+ ["9BE8",0x02CB],
+ ["9BE9",0x02CF],
+ ["9BEA",0xFF41],
+ ["9BEB",0xFF42],
+ ["9BEC",0xFF44],
+ ["9BED",0xFF45],
+ ["9BEE",0xFF46],
+ ["9BEF",0xFF48],
+ ["9BF0",0xFF49],
+ ["9BF1",0xFF4A],
+ ["9BF2",0xFF4B],
+ ["9BF3",0xFF4C],
+ ["9BF4",0xFF4D],
+ ["9BF5",0xFF4E],
+ ["9BF6",0xFF4F],
+ ["9BF7",0xFF50],
+ ["9BF8",0xFF52],
+ ["9BF9",0xFF53],
+ ["9BFA",0xFF54],
+ ["9BFB",0xFF55],
+ ["9BFC",0xFF56],
+ ["9BFD",0xFF57],
+ ["9BFE",0xFF5A],
+ ["9C40",0x70F5],
+ ["9C41",0x3220],
+ ["9C42",0x3221],
+ ["9C43",0x3222],
+ ["9C44",0x3223],
+ ["9C45",0x3224],
+ ["9C46",0x3225],
+ ["9C47",0x3226],
+ ["9C48",0x3227],
+ ["9C49",0x3228],
+ ["9C4A",0x3229],
+ ["9C4B",0x70FE],
+ ["9C4C",0x7105],
+ ["9C4D",0x711D],
+ ["9C4E",0x7129],
+ ["9C4F",0x712B],
+ ["9C50",0x712C],
+ ["9C51",0x7133],
+ ["9C52",0x7135],
+ ["9C53",0x713B],
+ ["9C54",0x713E],
+ ["9C55",0x7140],
+ ["9C56",0x714F],
+ ["9C57",0x716B],
+ ["9C58",0x7175],
+ ["9C59",0x7177],
+ ["9C5A",0x717C],
+ ["9C5B",0x717E],
+ ["9C5C",0x718C],
+ ["9C5D",0x718E],
+ ["9C5E",0x7191],
+ ["9C5F",0x7196],
+ ["9C60",0x71A2],
+ ["9C61",0x71A3],
+ ["9C62",0x71AD],
+ ["9C63",0x71B4],
+ ["9C64",0x71B7],
+ ["9C65",0x71BA],
+ ["9C66",0x71D1],
+ ["9C67",0x71DD],
+ ["9C68",0x71EB],
+ ["9C69",0x7200],
+ ["9C6A",0x7209],
+ ["9C6B",0x720E],
+ ["9C6C",0x720F],
+ ["9C6D",0x7216],
+ ["9C6E",0x7217],
+ ["9C6F",0x7224],
+ ["9C70",0x5AA4],
+ ["9C71",0x722E],
+ ["9C72",0x2286],
+ ["9C73",0x7257],
+ ["9C74",0x725C],
+ ["9C75",0x7294],
+ ["9C76",0x7304],
+ ["9C77",0x7310],
+ ["9C78",0x7341],
+ ["9C79",0x7374],
+ ["9C7A",0x738C],
+ ["9C7B",0x738F],
+ ["9C7C",0x7398],
+ ["9C7D",0x739C],
+ ["9C7E",0x739E],
+ ["9CA1",0x73A7],
+ ["9CA2",0x73AA],
+ ["9CA3",0x73D5],
+ ["9CA4",0x73E1],
+ ["9CA5",0x73E2],
+ ["9CA6",0x73E4],
+ ["9CA7",0x73E6],
+ ["9CA8",0x73EF],
+ ["9CA9",0x73F3],
+ ["9CAA",0x2287],
+ ["9CAB",0x73F9],
+ ["9CAC",0x73FB],
+ ["9CAD",0x7402],
+ ["9CAE",0x7411],
+ ["9CAF",0x7412],
+ ["9CB0",0x7414],
+ ["9CB1",0x7415],
+ ["9CB2",0x7417],
+ ["9CB3",0x7419],
+ ["9CB4",0x741C],
+ ["9CB5",0x741E],
+ ["9CB6",0x741F],
+ ["9CB7",0x7437],
+ ["9CB8",0x7438],
+ ["9CB9",0x7439],
+ ["9CBA",0x7443],
+ ["9CBB",0x7445],
+ ["9CBC",0x7447],
+ ["9CBD",0x7448],
+ ["9CBE",0x7449],
+ ["9CBF",0x7453],
+ ["9CC0",0x7456],
+ ["9CC1",0x7465],
+ ["9CC2",0x746B],
+ ["9CC3",0x746C],
+ ["9CC4",0x7474],
+ ["9CC5",0x747A],
+ ["9CC6",0x7482],
+ ["9CC7",0x5382],
+ ["9CC8",0x5E7F],
+ ["9CC9",0x4E28],
+ ["9CCA",0x5E7A],
+ ["9CCB",0x5196],
+ ["9CCC",0x5B80],
+ ["9CCD",0x5369],
+ ["9CCE",0x2E87],
+ ["9CCF",0xEC14],
+ ["9CD0",0x5303],
+ ["9CD1",0x2612],
+ ["9CD2",0x8279],
+ ["9CD3",0x4491],
+ ["9CD4",0x2E8C],
+ ["9CD5",0x2E8A],
+ ["9CD6",0x4E36],
+ ["9CD7",0xEC1C],
+ ["9CD8",0x531A],
+ ["9CD9",0xEC1E],
+ ["9CDA",0xEC1F],
+ ["9CDB",0x2E95],
+ ["9CDC",0xEC21],
+ ["9CDD",0xEC22],
+ ["9CDE",0x2514],
+ ["9CDF",0x4E5A],
+ ["9CE0",0x8FB6],
+ ["9CE1",0x5EF4],
+ ["9CE2",0x5188],
+ ["9CE3",0x4E85],
+ ["9CE4",0xEC29],
+ ["9CE5",0x4E3F],
+ ["9CE6",0xEC2B],
+ ["9CE7",0xEC2C],
+ ["9CE8",0x4E5B],
+ ["9CE9",0x53B6],
+ ["9CEA",0x8F66],
+ ["9CEB",0x7E9F],
+ ["9CEC",0x8BA0],
+ ["9CED",0x8D1D],
+ ["9CEE",0x9E1F],
+ ["9CEF",0x95E8],
+ ["9CF0",0x9485],
+ ["9CF1",0x961D],
+ ["9CF2",0x624C],
+ ["9CF3",0x6C35],
+ ["9CF4",0x4EBB],
+ ["9CF5",0x5FC4],
+ ["9CF6",0x706C],
+ ["9CF7",0x2EAE],
+ ["9CF8",0x53E3],
+ ["9CF9",0x6AE2],
+ ["9CFA",0x9A3B],
+ ["9CFB",0x9A3C],
+ ["9CFC",0x9A58],
+ ["9CFD",0x9A5C],
+ ["9CFE",0x9A63],
+ ["9D40",0x260E],
+ ["9D41",0x2192],
+ ["9D42",0x2190],
+ ["9D43",0x2191],
+ ["9D44",0x2193],
+ ["9D45",0x21E8],
+ ["9D46",0x21E6],
+ ["9D47",0x21E7],
+ ["9D48",0x21E9],
+ ["9D49",0x21E8],
+ ["9D4A",0x21E6],
+ ["9D4B",0x21E7],
+ ["9D4C",0x21E9],
+ ["9D4D",0x261E],
+ ["9D4E",0x261C],
+ ["9D4F",0x261B],
+ ["9D50",0x261F],
+ ["9D51",0x3016],
+ ["9D52",0x3017],
+ ["9D53",0x25CB],
+ ["9D54",0x2715],
+ ["9D55",0x2713],
+ ["9D56",0x56FB],
+ ["9D57",0x263D],
+ ["9D58",0x591D],
+ ["9D59",0x664D],
+ ["9D5A",0x7225],
+ ["9D5B",0x2729],
+ ["9D5C",0x2721],
+ ["9D5D",0x263A],
+ ["9D5E",0x2639],
+ ["9D5F",0xEC63],
+ ["9D60",0xEC64],
+ ["9D61",0xEC65],
+ ["9D62",0xEC66],
+ ["9D63",0xEC67],
+ ["9D64",0x5C78],
+ ["9D65",0x266C],
+ ["9D66",0x266A],
+ ["9D67",0x5AD1],
+ ["9D68",0x5BB7],
+ ["9D69",0x5CFC],
+ ["9D6A",0xEC6E],
+ ["9D6B",0x2709],
+ ["9D6C",0x2702],
+ ["9D6D",0xEC71],
+ ["9D6E",0xEC72],
+ ["9D6F",0xEC73],
+ ["9D70",0xEC74],
+ ["9D71",0x5CD5],
+ ["9D72",0x676E],
+ ["9D73",0x7461],
+ ["9D74",0x749D],
+ ["9D75",0x7F53],
+ ["9D76",0x8593],
+ ["9D77",0x274F],
+ ["9D78",0xEC7C],
+ ["9D79",0xEC7D],
+ ["9D7A",0x5D78],
+ ["9D7B",0x5F3B],
+ ["9D7C",0xEC80],
+ ["9D7D",0x2501],
+ ["9D7E",0x2503],
+ ["9DA1",0xEC83],
+ ["9DA2",0xEC84],
+ ["9DA3",0xEC85],
+ ["9DA4",0xEC86],
+ ["9DA5",0xEC87],
+ ["9DA6",0xEC88],
+ ["9DA7",0xEC89],
+ ["9DA8",0xEC8A],
+ ["9DA9",0xEC8B],
+ ["9DAA",0xEC8C],
+ ["9DAB",0xEC8D],
+ ["9DAC",0xEC8E],
+ ["9DAD",0xEC8F],
+ ["9DAE",0xEC90],
+ ["9DAF",0xEC91],
+ ["9DB0",0x9AB2],
+ ["9DB1",0x9AE0],
+ ["9DB2",0x9B14],
+ ["9DB3",0x9B34],
+ ["9DB4",0x9B39],
+ ["9DB5",0x9B40],
+ ["9DB6",0x9B50],
+ ["9DB7",0x9B7F],
+ ["9DB8",0x263C],
+ ["9DB9",0x7D95],
+ ["9DBA",0x2601],
+ ["9DBB",0x9734],
+ ["9DBC",0x2602],
+ ["9DBD",0xEC9F],
+ ["9DBE",0xECA0],
+ ["9DBF",0xECA1],
+ ["9DC0",0x2708],
+ ["9DC1",0xECA3],
+ ["9DC2",0xECA4],
+ ["9DC3",0xECA5],
+ ["9DC4",0xECA6],
+ ["9DC5",0xECA7],
+ ["9DC6",0xECA8],
+ ["9DC7",0xECA9],
+ ["9DC8",0x213B],
+ ["9DC9",0x2121],
+ ["9DCA",0x66E7],
+ ["9DCB",0x6E57],
+ ["9DCC",0xECAE],
+ ["9DCD",0x7157],
+ ["9DCE",0x79CA],
+ ["9DCF",0x2116],
+ ["9DD0",0x816C],
+ ["9DD1",0x8AF9],
+ ["9DD2",0x9856],
+ ["9DD3",0xECB5],
+ ["9DD4",0xECB6],
+ ["9DD5",0x2620],
+ ["9DD6",0xECB8],
+ ["9DD7",0x2664],
+ ["9DD8",0x2660],
+ ["9DD9",0x2667],
+ ["9DDA",0x2663],
+ ["9DDB",0x2662],
+ ["9DDC",0x2666],
+ ["9DDD",0x2661],
+ ["9DDE",0x2665],
+ ["9DDF",0xECC1],
+ ["9DE0",0xECC2],
+ ["9DE1",0x6AE4],
+ ["9DE2",0x211E],
+ ["9DE3",0x33C2],
+ ["9DE4",0x33D8],
+ ["9DE5",0x33A1],
+ ["9DE6",0xECC8],
+ ["9DE7",0x33A5],
+ ["9DE8",0xECCA],
+ ["9DE9",0xECCB],
+ ["9DEA",0xECCC],
+ ["9DEB",0xECCD],
+ ["9DEC",0xECCE],
+ ["9DED",0x2611],
+ ["9DEE",0x9B81],
+ ["9DEF",0x9B8B],
+ ["9DF0",0x9B8D],
+ ["9DF1",0x9BDD],
+ ["9DF2",0x9BE9],
+ ["9DF3",0x9BED],
+ ["9DF4",0x9BF4],
+ ["9DF5",0x9C1F],
+ ["9DF6",0x9C20],
+ ["9DF7",0x9C26],
+ ["9DF8",0x9C53],
+ ["9DF9",0x9C5D],
+ ["9DFA",0x9C7B],
+ ["9DFB",0x9D0C],
+ ["9DFC",0x9D16],
+ ["9DFD",0x21B2],
+ ["9DFE",0x6B05],
+ ["9E40",0x8CE9],
+ ["9E41",0x8CF2],
+ ["9E42",0x8D03],
+ ["9E43",0x8D11],
+ ["9E44",0x8D1C],
+ ["9E45",0x8D7A],
+ ["9E46",0x8DA9],
+ ["9E47",0x8DC0],
+ ["9E48",0x8E01],
+ ["9E49",0x8E0E],
+ ["9E4A",0x8E46],
+ ["9E4B",0x8E68],
+ ["9E4C",0x8E71],
+ ["9E4D",0x8E7E],
+ ["9E4E",0x8E80],
+ ["9E4F",0x8EB6],
+ ["9E50",0x8EB9],
+ ["9E51",0x8EBC],
+ ["9E52",0x8EC3],
+ ["9E53",0x8EE4],
+ ["9E54",0x8EED],
+ ["9E55",0x8EF2],
+ ["9E56",0x8F30],
+ ["9E57",0x8F41],
+ ["9E58",0x8F4A],
+ ["9E59",0x8FA5],
+ ["9E5A",0x8FB3],
+ ["9E5B",0x8FB8],
+ ["9E5C",0x8FCA],
+ ["9E5D",0x8FCF],
+ ["9E5E",0x9008],
+ ["9E5F",0x9033],
+ ["9E60",0x9037],
+ ["9E61",0x9064],
+ ["9E62",0x906C],
+ ["9E63",0x91A9],
+ ["9E64",0x91B6],
+ ["9E65",0x91C4],
+ ["9E66",0x91FA],
+ ["9E67",0x9208],
+ ["9E68",0x9213],
+ ["9E69",0x9221],
+ ["9E6A",0x9228],
+ ["9E6B",0x922B],
+ ["9E6C",0x9235],
+ ["9E6D",0x923C],
+ ["9E6E",0x9241],
+ ["9E6F",0x9258],
+ ["9E70",0x925D],
+ ["9E71",0x925F],
+ ["9E72",0x926B],
+ ["9E73",0x926E],
+ ["9E74",0x9281],
+ ["9E75",0x9284],
+ ["9E76",0x9289],
+ ["9E77",0x928F],
+ ["9E78",0x92B1],
+ ["9E79",0x92BA],
+ ["9E7A",0x92BF],
+ ["9E7B",0x92D4],
+ ["9E7C",0x92DB],
+ ["9E7D",0x92E3],
+ ["9E7E",0x92E5],
+ ["9EA1",0x92EB],
+ ["9EA2",0x92EC],
+ ["9EA3",0x92F4],
+ ["9EA4",0x92F6],
+ ["9EA5",0x92FD],
+ ["9EA6",0x9303],
+ ["9EA7",0x9307],
+ ["9EA8",0x9330],
+ ["9EA9",0x9331],
+ ["9EAA",0x9340],
+ ["9EAB",0x9342],
+ ["9EAC",0x9343],
+ ["9EAD",0x935F],
+ ["9EAE",0x9362],
+ ["9EAF",0x9366],
+ ["9EB0",0x9368],
+ ["9EB1",0x9373],
+ ["9EB2",0x9374],
+ ["9EB3",0x9378],
+ ["9EB4",0x937D],
+ ["9EB5",0x9381],
+ ["9EB6",0x9384],
+ ["9EB7",0x9386],
+ ["9EB8",0x9387],
+ ["9EB9",0x9390],
+ ["9EBA",0x939C],
+ ["9EBB",0x93A0],
+ ["9EBC",0x93B8],
+ ["9EBD",0x93BB],
+ ["9EBE",0x93BD],
+ ["9EBF",0x93BF],
+ ["9EC0",0x93CB],
+ ["9EC1",0x93D3],
+ ["9EC2",0x93DB],
+ ["9EC3",0x93E0],
+ ["9EC4",0x93F0],
+ ["9EC5",0x93F1],
+ ["9EC6",0x93F3],
+ ["9EC7",0x93F4],
+ ["9EC8",0x9401],
+ ["9EC9",0x9404],
+ ["9ECA",0x9408],
+ ["9ECB",0x9417],
+ ["9ECC",0x941B],
+ ["9ECD",0x941D],
+ ["9ECE",0x9424],
+ ["9ECF",0x9425],
+ ["9ED0",0x9426],
+ ["9ED1",0x942D],
+ ["9ED2",0x9442],
+ ["9ED3",0x9443],
+ ["9ED4",0x944D],
+ ["9ED5",0x9454],
+ ["9ED6",0x9458],
+ ["9ED7",0x9465],
+ ["9ED8",0x9467],
+ ["9ED9",0x946C],
+ ["9EDA",0x9479],
+ ["9EDB",0x947B],
+ ["9EDC",0x9578],
+ ["9EDD",0x9585],
+ ["9EDE",0x95A6],
+ ["9EDF",0x95AA],
+ ["9EE0",0x9656],
+ ["9EE1",0x967B],
+ ["9EE2",0x96A5],
+ ["9EE3",0x96F4],
+ ["9EE4",0x971B],
+ ["9EE5",0x9736],
+ ["9EE6",0x9740],
+ ["9EE7",0x9741],
+ ["9EE8",0x9757],
+ ["9EE9",0x9787],
+ ["9EEA",0x9789],
+ ["9EEB",0x979B],
+ ["9EEC",0x97B1],
+ ["9EED",0x97BD],
+ ["9EEE",0x97C0],
+ ["9EEF",0x97C2],
+ ["9EF0",0x97D2],
+ ["9EF1",0x97E0],
+ ["9EF2",0x9814],
+ ["9EF3",0x9815],
+ ["9EF4",0x9823],
+ ["9EF5",0x9833],
+ ["9EF6",0x9868],
+ ["9EF7",0x98B7],
+ ["9EF8",0x98B9],
+ ["9EF9",0x98C7],
+ ["9EFA",0x98CA],
+ ["9EFB",0x98E0],
+ ["9EFC",0x98E1],
+ ["9EFD",0x98EC],
+ ["9EFE",0x98F5],
+ ["9F40",0x9D21],
+ ["9F41",0x9D34],
+ ["9F42",0x9D39],
+ ["9F43",0x9D49],
+ ["9F44",0x9D4E],
+ ["9F45",0x9D6D],
+ ["9F46",0x2237],
+ ["9F47",0x9D6E],
+ ["9F48",0x9D7C],
+ ["9F49",0x9D83],
+ ["9F4A",0x9D93],
+ ["9F4B",0x9DA5],
+ ["9F4C",0x222C],
+ ["9F4D",0x9DBD],
+ ["9F4E",0x6B81],
+ ["9F4F",0x6BB1],
+ ["9F50",0x9C4F],
+ ["9F51",0x9E90],
+ ["9F52",0x9DC0],
+ ["9F53",0xED91],
+ ["9F54",0xED92],
+ ["9F55",0x262F],
+ ["9F56",0x2630],
+ ["9F57",0x2637],
+ ["9F58",0x2633],
+ ["9F59",0x2634],
+ ["9F5A",0x2635],
+ ["9F5B",0x2632],
+ ["9F5C",0x2636],
+ ["9F5D",0x2631],
+ ["9F5E",0x9DC9],
+ ["9F5F",0x9DD4],
+ ["9F60",0x9DFC],
+ ["9F61",0x9E0A],
+ ["9F62",0x9E0C],
+ ["9F63",0x9E0E],
+ ["9F64",0x9E18],
+ ["9F65",0x9E7B],
+ ["9F66",0x9E85],
+ ["9F67",0x9EA2],
+ ["9F68",0x9EAC],
+ ["9F69",0x9EB1],
+ ["9F6A",0x9EC1],
+ ["9F6B",0x9EC6],
+ ["9F6C",0x9EC7],
+ ["9F6D",0x9EF1],
+ ["9F6E",0x9EF8],
+ ["9F6F",0x9F27],
+ ["9F70",0x990E],
+ ["9F71",0x9919],
+ ["9F72",0x991C],
+ ["9F73",0x9937],
+ ["9F74",0x995D],
+ ["9F75",0x9962],
+ ["9F76",0x999B],
+ ["9F77",0x99A4],
+ ["9F78",0x99AA],
+ ["9F79",0x99B8],
+ ["9F7A",0x99E0],
+ ["9F7B",0x99E6],
+ ["9F7C",0x99F5],
+ ["9F7D",0x9A1F],
+ ["9F7E",0x7DFE],
+ ["9FA1",0x7E07],
+ ["9FA2",0x7E5B],
+ ["9FA3",0x7E65],
+ ["9FA4",0x7E6C],
+ ["9FA5",0x7F37],
+ ["9FA6",0x7F40],
+ ["9FA7",0x7F41],
+ ["9FA8",0x7F49],
+ ["9FA9",0x7F52],
+ ["9FAA",0x7F8F],
+ ["9FAB",0x7F93],
+ ["9FAC",0x7FB4],
+ ["9FAD",0x7FDD],
+ ["9FAE",0x7FE7],
+ ["9FAF",0x7FFA],
+ ["9FB0",0x8002],
+ ["9FB1",0x8008],
+ ["9FB2",0x802E],
+ ["9FB3",0x802F],
+ ["9FB4",0x803C],
+ ["9FB5",0x80A7],
+ ["9FB6",0x810C],
+ ["9FB7",0x812A],
+ ["9FB8",0x8134],
+ ["9FB9",0x8142],
+ ["9FBA",0x8156],
+ ["9FBB",0x8184],
+ ["9FBC",0x81A5],
+ ["9FBD",0x81E4],
+ ["9FBE",0x8254],
+ ["9FBF",0x8265],
+ ["9FC0",0x827B],
+ ["9FC1",0x8287],
+ ["9FC2",0x82BF],
+ ["9FC3",0x82E2],
+ ["9FC4",0x82EE],
+ ["9FC5",0x82F8],
+ ["9FC6",0x82FC],
+ ["9FC7",0x82FF],
+ ["9FC8",0x830B],
+ ["9FC9",0x831D],
+ ["9FCA",0x833D],
+ ["9FCB",0x8357],
+ ["9FCC",0x8391],
+ ["9FCD",0x83AC],
+ ["9FCE",0x83CD],
+ ["9FCF",0x83ED],
+ ["9FD0",0x8405],
+ ["9FD1",0x8414],
+ ["9FD2",0x8416],
+ ["9FD3",0x8421],
+ ["9FD4",0x842E],
+ ["9FD5",0x843E],
+ ["9FD6",0x844A],
+ ["9FD7",0x8453],
+ ["9FD8",0x8455],
+ ["9FD9",0x8458],
+ ["9FDA",0x8464],
+ ["9FDB",0x8472],
+ ["9FDC",0x847F],
+ ["9FDD",0x8480],
+ ["9FDE",0x8492],
+ ["9FDF",0x8493],
+ ["9FE0",0x8496],
+ ["9FE1",0x84A3],
+ ["9FE2",0x84BE],
+ ["9FE3",0x84DE],
+ ["9FE4",0x84E1],
+ ["9FE5",0x84E2],
+ ["9FE6",0x84E4],
+ ["9FE7",0x84F8],
+ ["9FE8",0x8503],
+ ["9FE9",0x8505],
+ ["9FEA",0x8510],
+ ["9FEB",0x8533],
+ ["9FEC",0x2010],
+ ["9FED",0x8542],
+ ["9FEE",0x854C],
+ ["9FEF",0x8552],
+ ["9FF0",0x855F],
+ ["9FF1",0x856F],
+ ["9FF2",0x8570],
+ ["9FF3",0x8573],
+ ["9FF4",0x85D6],
+ ["9FF5",0x85E0],
+ ["9FF6",0x85EE],
+ ["9FF7",0x85FC],
+ ["9FF8",0x860D],
+ ["9FF9",0x860F],
+ ["9FFA",0x8614],
+ ["9FFB",0x8628],
+ ["9FFC",0x8642],
+ ["9FFD",0x8645],
+ ["9FFE",0x8672],
+ ["A040",0x889C],
+ ["A041",0x5B6D],
+ ["A042",0x8137],
+ ["A043",0xEE1E],
+ ["A044",0x9938],
+ ["A045",0x5572],
+ ["A046",0x556B],
+ ["A047",0xEE22],
+ ["A048",0x35CE],
+ ["A049",0x5571],
+ ["A04A",0x55BA],
+ ["A04B",0x55F1],
+ ["A04C",0x35D2],
+ ["A04D",0x55F0],
+ ["A04E",0x5605],
+ ["A04F",0x5622],
+ ["A050",0x562D],
+ ["A051",0x5643],
+ ["A052",0x561E],
+ ["A053",0x5692],
+ ["A054",0x7CCD],
+ ["A055",0x541A],
+ ["A056",0x5413],
+ ["A057",0x5497],
+ ["A058",0x66F1],
+ ["A059",0x7534],
+ ["A05A",0x544D],
+ ["A05B",0x56A4],
+ ["A05C",0x569F],
+ ["A05D",0x64D3],
+ ["A05E",0x632E],
+ ["A05F",0x63F8],
+ ["A060",0x651E],
+ ["A061",0x4E78],
+ ["A062",0x6BEA],
+ ["A063",0x6C32],
+ ["A064",0x6C3D],
+ ["A065",0x6C62],
+ ["A066",0x6CB2],
+ ["A067",0x6DF8],
+ ["A068",0x6E29],
+ ["A069",0x6E76],
+ ["A06A",0x6E82],
+ ["A06B",0x6E86],
+ ["A06C",0x6EBB],
+ ["A06D",0x6EDF],
+ ["A06E",0x6EE2],
+ ["A06F",0x6F11],
+ ["A070",0x6F24],
+ ["A071",0x6F74],
+ ["A072",0x6F91],
+ ["A073",0x6FB5],
+ ["A074",0x6FF3],
+ ["A075",0x6FF5],
+ ["A076",0x70BB],
+ ["A077",0x70C0],
+ ["A078",0x710F],
+ ["A079",0x2202],
+ ["A07A",0x7155],
+ ["A07B",0x7173],
+ ["A07C",0x717A],
+ ["A07D",0xEE58],
+ ["A07E",0x5223],
+ ["A0A1",0xEE5A],
+ ["A0A2",0x3451],
+ ["A0A3",0xEE5C],
+ ["A0A4",0x8FCC],
+ ["A0A5",0xEE5E],
+ ["A0A6",0xEE5F],
+ ["A0A7",0x00C0],
+ ["A0A8",0x00C8],
+ ["A0A9",0x00CC],
+ ["A0AA",0x00D2],
+ ["A0AB",0x00D9],
+ ["A0AC",0x00C1],
+ ["A0AD",0x00CD],
+ ["A0AE",0x00D3],
+ ["A0AF",0x00DA],
+ ["A0B0",0x0101],
+ ["A0B1",0x0113],
+ ["A0B2",0x012B],
+ ["A0B3",0x014D],
+ ["A0B4",0x016B],
+ ["A0B5",0x01D6],
+ ["A0B6",0x00C4],
+ ["A0B7",0x00CB],
+ ["A0B8",0x00CF],
+ ["A0B9",0x00D6],
+ ["A0BA",0x00DC],
+ ["A0BB",0x00C6],
+ ["A0BC",0x00C7],
+ ["A0BD",0x00D1],
+ ["A0BE",0x00C3],
+ ["A0BF",0x00D5],
+ ["A0C0",0x00E1],
+ ["A0C1",0x00E9],
+ ["A0C2",0x00ED],
+ ["A0C3",0x00F3],
+ ["A0C4",0x00FA],
+ ["A0C5",0x01D8],
+ ["A0C6",0x00E4],
+ ["A0C7",0x00EB],
+ ["A0C8",0x00EF],
+ ["A0C9",0x00F6],
+ ["A0CA",0x00FC],
+ ["A0CB",0x00E6],
+ ["A0CC",0x00E7],
+ ["A0CD",0x00F1],
+ ["A0CE",0x00E3],
+ ["A0CF",0x00F5],
+ ["A0D0",0x01CE],
+ ["A0D1",0x011B],
+ ["A0D2",0x01D0],
+ ["A0D3",0x01D2],
+ ["A0D4",0x01D4],
+ ["A0D5",0x01DA],
+ ["A0D6",0x00C5],
+ ["A0D7",0x00C9],
+ ["A0D8",0x7188],
+ ["A0D9",0x00D8],
+ ["A0DA",0x00D0],
+ ["A0DB",0x1EF2],
+ ["A0DC",0x00DE],
+ ["A0DD",0x00DF],
+ ["A0DE",0x00AA],
+ ["A0DF",0x00A1],
+ ["A0E0",0x00E0],
+ ["A0E1",0x00E8],
+ ["A0E2",0x00EC],
+ ["A0E3",0x00F2],
+ ["A0E4",0x00F9],
+ ["A0E5",0x01DC],
+ ["A0E6",0x00E5],
+ ["A0E7",0x7198],
+ ["A0E8",0x71D7],
+ ["A0E9",0x00F8],
+ ["A0EA",0x00F0],
+ ["A0EB",0x1EF3],
+ ["A0EC",0x00FE],
+ ["A0ED",0x00FF],
+ ["A0EE",0x00BA],
+ ["A0EF",0x00BF],
+ ["A0F0",0x00E2],
+ ["A0F1",0x00EA],
+ ["A0F2",0x00EE],
+ ["A0F3",0x00F4],
+ ["A0F4",0x00FB],
+ ["A0F5",0x71F5],
+ ["A0F6",0x00C2],
+ ["A0F7",0x00CA],
+ ["A0F8",0x00CE],
+ ["A0F9",0x00D4],
+ ["A0FA",0x00DB],
+ ["A0FB",0x00B8],
+ ["A0FC",0x00A4],
+ ["A0FD",0xEEB6],
+ ["A0FE",0x0192],
+ ["A140",0x3000],
+ ["A141",0xFF0C],
+ ["A142",0x3001],
+ ["A143",0x3002],
+ ["A144",0xFF0E],
+ ["A145",0x2027],
+ ["A146",0xFF1B],
+ ["A147",0xFF1A],
+ ["A148",0xFF1F],
+ ["A149",0xFF01],
+ ["A14A",0xFE30],
+ ["A14B",0x2026],
+ ["A14C",0x2025],
+ ["A14D",0xFE50],
+ ["A14E",0xFE51],
+ ["A14F",0xFE52],
+ ["A150",0x00B7],
+ ["A151",0xFE54],
+ ["A152",0xFE55],
+ ["A153",0xFE56],
+ ["A154",0xFE57],
+ ["A155",0xFF5C],
["A156",0x2013],
+ ["A157",0xFE31],
["A158",0x2014],
+ ["A159",0xFE33],
+ ["A15A",0x2574],
+ ["A15B",0xFE34],
+ ["A15C",0xFE4F],
+ ["A15D",0xFF08],
+ ["A15E",0xFF09],
+ ["A15F",0xFE35],
+ ["A160",0xFE36],
+ ["A161",0xFF5B],
+ ["A162",0xFF5D],
+ ["A163",0xFE37],
+ ["A164",0xFE38],
+ ["A165",0x3014],
+ ["A166",0x3015],
+ ["A167",0xFE39],
+ ["A168",0xFE3A],
+ ["A169",0x3010],
+ ["A16A",0x3011],
+ ["A16B",0xFE3B],
+ ["A16C",0xFE3C],
+ ["A16D",0x300A],
+ ["A16E",0x300B],
+ ["A16F",0xFE3D],
+ ["A170",0xFE3E],
+ ["A171",0x3008],
+ ["A172",0x3009],
+ ["A173",0xFE3F],
+ ["A174",0xFE40],
+ ["A175",0x300C],
+ ["A176",0x300D],
+ ["A177",0xFE41],
+ ["A178",0xFE42],
+ ["A179",0x300E],
+ ["A17A",0x300F],
+ ["A17B",0xFE43],
+ ["A17C",0xFE44],
+ ["A17D",0xFE59],
+ ["A17E",0xFE5A],
+ ["A1A1",0xFE5B],
+ ["A1A2",0xFE5C],
+ ["A1A3",0xFE5D],
+ ["A1A4",0xFE5E],
["A1A5",0x2018],
["A1A6",0x2019],
["A1A7",0x201C],
["A1A8",0x201D],
- ["A145",0x2022],
- ["A14C",0x2025],
- ["A14B",0x2026],
- ["A1AC",0x2032],
+ ["A1A9",0x301D],
+ ["A1AA",0x301E],
["A1AB",0x2035],
+ ["A1AC",0x2032],
+ ["A1AD",0xFF03],
+ ["A1AE",0xFF06],
+ ["A1AF",0xFF0A],
["A1B0",0x203B],
- ["A1C2",0x203E],
- ["A24A",0x2103],
+ ["A1B1",0x00A7],
+ ["A1B2",0x3003],
+ ["A1B3",0x25CB],
+ ["A1B4",0x25CF],
+ ["A1B5",0x25B3],
+ ["A1B6",0x25B2],
+ ["A1B7",0x25CE],
+ ["A1B8",0x2606],
+ ["A1B9",0x2605],
+ ["A1BA",0x25C7],
+ ["A1BB",0x25C6],
+ ["A1BC",0x25A1],
+ ["A1BD",0x25A0],
+ ["A1BE",0x25BD],
+ ["A1BF",0x25BC],
+ ["A1C0",0x32A3],
["A1C1",0x2105],
- ["A24B",0x2109],
- ["A2B9",0x2160],
- ["A2BA",0x2161],
- ["A2BB",0x2162],
- ["A2BC",0x2163],
- ["A2BD",0x2164],
- ["A2BE",0x2165],
- ["A2BF",0x2166],
- ["A2C0",0x2167],
- ["A2C1",0x2168],
- ["A2C2",0x2169],
- ["A1F6",0x2190],
- ["A1F4",0x2191],
- ["A1F7",0x2192],
- ["A1F5",0x2193],
- ["A1F8",0x2196],
- ["A1F9",0x2197],
- ["A1FB",0x2198],
- ["A1FA",0x2199],
+ ["A1C2",0x00AF],
+ ["A1C3",0xFFE3],
+ ["A1C4",0xFF3F],
+ ["A1C5",0x02CD],
+ ["A1C6",0xFE49],
+ ["A1C7",0xFE4A],
+ ["A1C8",0xFE4D],
+ ["A1C9",0xFE4E],
+ ["A1CA",0xFE4B],
+ ["A1CB",0xFE4C],
+ ["A1CC",0xFE5F],
+ ["A1CD",0xFE60],
+ ["A1CE",0xFE61],
+ ["A1CF",0xFF0B],
+ ["A1D0",0xFF0D],
+ ["A1D1",0x00D7],
+ ["A1D2",0x00F7],
+ ["A1D3",0x00B1],
["A1D4",0x221A],
+ ["A1D5",0xFF1C],
+ ["A1D6",0xFF1E],
+ ["A1D7",0xFF1D],
+ ["A1D8",0x2266],
+ ["A1D9",0x2267],
+ ["A1DA",0x2260],
["A1DB",0x221E],
- ["A1E8",0x221F],
- ["A1E7",0x2220],
- ["A1FD",0x2223],
- ["A1FC",0x2225],
+ ["A1DC",0x2252],
+ ["A1DD",0x2261],
+ ["A1DE",0xFE62],
+ ["A1DF",0xFE63],
+ ["A1E0",0xFE64],
+ ["A1E1",0xFE65],
+ ["A1E2",0xFE66],
+ ["A1E3",0xFF5E],
["A1E4",0x2229],
["A1E5",0x222A],
+ ["A1E6",0x22A5],
+ ["A1E7",0x2220],
+ ["A1E8",0x221F],
+ ["A1E9",0x22BF],
+ ["A1EA",0x33D2],
+ ["A1EB",0x33D1],
["A1EC",0x222B],
["A1ED",0x222E],
- ["A1EF",0x2234],
["A1EE",0x2235],
- ["A1E3",0x223C],
- ["A1DC",0x2252],
- ["A1DA",0x2260],
- ["A1DD",0x2261],
- ["A1D8",0x2266],
- ["A1D9",0x2267],
- ["A1E6",0x22A5],
- ["A1E9",0x22BF],
- ["C7E9",0x2460],
- ["C7EA",0x2461],
- ["C7EB",0x2462],
- ["C7EC",0x2463],
- ["C7ED",0x2464],
- ["C7EE",0x2465],
- ["C7EF",0x2466],
- ["C7F0",0x2467],
- ["C7F1",0x2468],
- ["C7F2",0x2469],
- ["C7F3",0x2474],
- ["C7F4",0x2475],
- ["C7F5",0x2476],
- ["C7F6",0x2477],
- ["C7F7",0x2478],
- ["C7F8",0x2479],
- ["C7F9",0x247A],
- ["C7FA",0x247B],
- ["C7FB",0x247C],
- ["C7FC",0x247D],
- ["A277",0x2500],
- ["A278",0x2502],
- ["A27A",0x250C],
- ["A27B",0x2510],
- ["A27C",0x2514],
- ["A27D",0x2518],
- ["A275",0x251C],
- ["A274",0x2524],
- ["A273",0x252C],
- ["A272",0x2534],
- ["A271",0x253C],
- ["A2A4",0x2550],
- ["A2A5",0x255E],
- ["A2A7",0x2561],
- ["A2A6",0x256A],
- ["A27E",0x256D],
- ["A2A1",0x256E],
- ["A2A3",0x256F],
- ["A2A2",0x2570],
- ["A2AC",0x2571],
- ["A2AD",0x2572],
- ["A2AE",0x2573],
+ ["A1EF",0x2234],
+ ["A1F0",0x2640],
+ ["A1F1",0x2642],
+ ["A1F2",0x2295],
+ ["A1F3",0x2299],
+ ["A1F4",0x2191],
+ ["A1F5",0x2193],
+ ["A1F6",0x2190],
+ ["A1F7",0x2192],
+ ["A1F8",0x2196],
+ ["A1F9",0x2197],
+ ["A1FA",0x2199],
+ ["A1FB",0x2198],
+ ["A1FC",0x2225],
+ ["A1FD",0x2223],
+ ["A1FE",0xFF0F],
+ ["A240",0xFF3C],
+ ["A241",0x2215],
+ ["A242",0xFE68],
+ ["A243",0xFF04],
+ ["A244",0xFFE5],
+ ["A245",0x3012],
+ ["A246",0xFFE0],
+ ["A247",0xFFE1],
+ ["A248",0xFF05],
+ ["A249",0xFF20],
+ ["A24A",0x2103],
+ ["A24B",0x2109],
+ ["A24C",0xFE69],
+ ["A24D",0xFE6A],
+ ["A24E",0xFE6B],
+ ["A24F",0x33D5],
+ ["A250",0x339C],
+ ["A251",0x339D],
+ ["A252",0x339E],
+ ["A253",0x33CE],
+ ["A254",0x33A1],
+ ["A255",0x338E],
+ ["A256",0x338F],
+ ["A257",0x33C4],
+ ["A258",0x00B0],
+ ["A259",0x5159],
+ ["A25A",0x515B],
+ ["A25B",0x515E],
+ ["A25C",0x515D],
+ ["A25D",0x5161],
+ ["A25E",0x5163],
+ ["A25F",0x55E7],
+ ["A260",0x74E9],
+ ["A261",0x7CCE],
["A262",0x2581],
["A263",0x2582],
["A264",0x2583],
@@ -221,56 +5222,61 @@ BIG5_TO_UCS_TBL= [
["A267",0x2586],
["A268",0x2587],
["A269",0x2588],
- ["A270",0x2589],
- ["A26F",0x258A],
- ["A26E",0x258B],
- ["A26D",0x258C],
- ["A26C",0x258D],
- ["A26B",0x258E],
["A26A",0x258F],
+ ["A26B",0x258E],
+ ["A26C",0x258D],
+ ["A26D",0x258C],
+ ["A26E",0x258B],
+ ["A26F",0x258A],
+ ["A270",0x2589],
+ ["A271",0x253C],
+ ["A272",0x2534],
+ ["A273",0x252C],
+ ["A274",0x2524],
+ ["A275",0x251C],
["A276",0x2594],
+ ["A277",0x2500],
+ ["A278",0x2502],
["A279",0x2595],
- ["A1BD",0x25A0],
- ["A1BC",0x25A1],
- ["A1B6",0x25B2],
- ["A1B5",0x25B3],
- ["A1BF",0x25BC],
- ["A1BE",0x25BD],
- ["A1BB",0x25C6],
- ["A1BA",0x25C7],
- ["A1B3",0x25CB],
- ["A1B7",0x25CE],
- ["A1B4",0x25CF],
+ ["A27A",0x250C],
+ ["A27B",0x2510],
+ ["A27C",0x2514],
+ ["A27D",0x2518],
+ ["A27E",0x256D],
+ ["A2A1",0x256E],
+ ["A2A2",0x2570],
+ ["A2A3",0x256F],
+ ["A2A4",0x2550],
+ ["A2A5",0x255E],
+ ["A2A6",0x256A],
+ ["A2A7",0x2561],
["A2A8",0x25E2],
["A2A9",0x25E3],
- ["A2AB",0x25E4],
["A2AA",0x25E5],
- ["A1B9",0x2605],
- ["A1B8",0x2606],
- ["A1F3",0x2609],
- ["A1F0",0x2640],
- ["A1F2",0x2641],
- ["A1F1",0x2642],
- ["A140",0x3000],
- ["A142",0x3001],
- ["A143",0x3002],
- ["A1B2",0x3003],
- ["C6A4",0x3005],
- ["A171",0x3008],
- ["A172",0x3009],
- ["A16D",0x300A],
- ["A16E",0x300B],
- ["A175",0x300C],
- ["A176",0x300D],
- ["A179",0x300E],
- ["A17A",0x300F],
- ["A169",0x3010],
- ["A16A",0x3011],
- ["A245",0x3012],
- ["A165",0x3014],
- ["A166",0x3015],
- ["A1A9",0x301D],
- ["A1AA",0x301E],
+ ["A2AB",0x25E4],
+ ["A2AC",0x2571],
+ ["A2AD",0x2572],
+ ["A2AE",0x2573],
+ ["A2AF",0xFF10],
+ ["A2B0",0xFF11],
+ ["A2B1",0xFF12],
+ ["A2B2",0xFF13],
+ ["A2B3",0xFF14],
+ ["A2B4",0xFF15],
+ ["A2B5",0xFF16],
+ ["A2B6",0xFF17],
+ ["A2B7",0xFF18],
+ ["A2B8",0xFF19],
+ ["A2B9",0x2160],
+ ["A2BA",0x2161],
+ ["A2BB",0x2162],
+ ["A2BC",0x2163],
+ ["A2BD",0x2164],
+ ["A2BE",0x2165],
+ ["A2BF",0x2166],
+ ["A2C0",0x2167],
+ ["A2C1",0x2168],
+ ["A2C2",0x2169],
["A2C3",0x3021],
["A2C4",0x3022],
["A2C5",0x3023],
@@ -280,178 +5286,109 @@ BIG5_TO_UCS_TBL= [
["A2C9",0x3027],
["A2CA",0x3028],
["A2CB",0x3029],
- ["C6A5",0x3041],
- ["C6A6",0x3042],
- ["C6A7",0x3043],
- ["C6A8",0x3044],
- ["C6A9",0x3045],
- ["C6AA",0x3046],
- ["C6AB",0x3047],
- ["C6AC",0x3048],
- ["C6AD",0x3049],
- ["C6AE",0x304A],
- ["C6AF",0x304B],
- ["C6B0",0x304C],
- ["C6B1",0x304D],
- ["C6B2",0x304E],
- ["C6B3",0x304F],
- ["C6B4",0x3050],
- ["C6B5",0x3051],
- ["C6B6",0x3052],
- ["C6B7",0x3053],
- ["C6B8",0x3054],
- ["C6B9",0x3055],
- ["C6BA",0x3056],
- ["C6BB",0x3057],
- ["C6BC",0x3058],
- ["C6BD",0x3059],
- ["C6BE",0x305A],
- ["C6BF",0x305B],
- ["C6C0",0x305C],
- ["C6C1",0x305D],
- ["C6C2",0x305E],
- ["C6C3",0x305F],
- ["C6C4",0x3060],
- ["C6C5",0x3061],
- ["C6C6",0x3062],
- ["C6C7",0x3063],
- ["C6C8",0x3064],
- ["C6C9",0x3065],
- ["C6CA",0x3066],
- ["C6CB",0x3067],
- ["C6CC",0x3068],
- ["C6CD",0x3069],
- ["C6CE",0x306A],
- ["C6CF",0x306B],
- ["C6D0",0x306C],
- ["C6D1",0x306D],
- ["C6D2",0x306E],
- ["C6D3",0x306F],
- ["C6D4",0x3070],
- ["C6D5",0x3071],
- ["C6D6",0x3072],
- ["C6D7",0x3073],
- ["C6D8",0x3074],
- ["C6D9",0x3075],
- ["C6DA",0x3076],
- ["C6DB",0x3077],
- ["C6DC",0x3078],
- ["C6DD",0x3079],
- ["C6DE",0x307A],
- ["C6DF",0x307B],
- ["C6E0",0x307C],
- ["C6E1",0x307D],
- ["C6E2",0x307E],
- ["C6E3",0x307F],
- ["C6E4",0x3080],
- ["C6E5",0x3081],
- ["C6E6",0x3082],
- ["C6E7",0x3083],
- ["C6E8",0x3084],
- ["C6E9",0x3085],
- ["C6EA",0x3086],
- ["C6EB",0x3087],
- ["C6EC",0x3088],
- ["C6ED",0x3089],
- ["C6EE",0x308A],
- ["C6EF",0x308B],
- ["C6F0",0x308C],
- ["C6F1",0x308D],
- ["C6F2",0x308E],
- ["C6F3",0x308F],
- ["C6F4",0x3090],
- ["C6F5",0x3091],
- ["C6F6",0x3092],
- ["C6F7",0x3093],
- ["C6A2",0x309D],
- ["C6A3",0x309E],
- ["C6F8",0x30A1],
- ["C6F9",0x30A2],
- ["C6FA",0x30A3],
- ["C6FB",0x30A4],
- ["C6FC",0x30A5],
- ["C6FD",0x30A6],
- ["C6FE",0x30A7],
- ["C740",0x30A8],
- ["C741",0x30A9],
- ["C742",0x30AA],
- ["C743",0x30AB],
- ["C744",0x30AC],
- ["C745",0x30AD],
- ["C746",0x30AE],
- ["C747",0x30AF],
- ["C748",0x30B0],
- ["C749",0x30B1],
- ["C74A",0x30B2],
- ["C74B",0x30B3],
- ["C74C",0x30B4],
- ["C74D",0x30B5],
- ["C74E",0x30B6],
- ["C74F",0x30B7],
- ["C750",0x30B8],
- ["C751",0x30B9],
- ["C752",0x30BA],
- ["C753",0x30BB],
- ["C754",0x30BC],
- ["C755",0x30BD],
- ["C756",0x30BE],
- ["C757",0x30BF],
- ["C758",0x30C0],
- ["C759",0x30C1],
- ["C75A",0x30C2],
- ["C75B",0x30C3],
- ["C75C",0x30C4],
- ["C75D",0x30C5],
- ["C75E",0x30C6],
- ["C75F",0x30C7],
- ["C760",0x30C8],
- ["C761",0x30C9],
- ["C762",0x30CA],
- ["C763",0x30CB],
- ["C764",0x30CC],
- ["C765",0x30CD],
- ["C766",0x30CE],
- ["C767",0x30CF],
- ["C768",0x30D0],
- ["C769",0x30D1],
- ["C76A",0x30D2],
- ["C76B",0x30D3],
- ["C76C",0x30D4],
- ["C76D",0x30D5],
- ["C76E",0x30D6],
- ["C76F",0x30D7],
- ["C770",0x30D8],
- ["C771",0x30D9],
- ["C772",0x30DA],
- ["C773",0x30DB],
- ["C774",0x30DC],
- ["C775",0x30DD],
- ["C776",0x30DE],
- ["C777",0x30DF],
- ["C778",0x30E0],
- ["C779",0x30E1],
- ["C77A",0x30E2],
- ["C77B",0x30E3],
- ["C77C",0x30E4],
- ["C77D",0x30E5],
- ["C77E",0x30E6],
- ["C7A1",0x30E7],
- ["C7A2",0x30E8],
- ["C7A3",0x30E9],
- ["C7A4",0x30EA],
- ["C7A5",0x30EB],
- ["C7A6",0x30EC],
- ["C7A7",0x30ED],
- ["C7A8",0x30EE],
- ["C7A9",0x30EF],
- ["C7AA",0x30F0],
- ["C7AB",0x30F1],
- ["C7AC",0x30F2],
- ["C7AD",0x30F3],
- ["C7AE",0x30F4],
- ["C7AF",0x30F5],
- ["C7B0",0x30F6],
- ["C6A1",0x30FE],
+ ["A2CC",0x5341],
+ ["A2CD",0x5344],
+ ["A2CE",0x5345],
+ ["A2CF",0xFF21],
+ ["A2D0",0xFF22],
+ ["A2D1",0xFF23],
+ ["A2D2",0xFF24],
+ ["A2D3",0xFF25],
+ ["A2D4",0xFF26],
+ ["A2D5",0xFF27],
+ ["A2D6",0xFF28],
+ ["A2D7",0xFF29],
+ ["A2D8",0xFF2A],
+ ["A2D9",0xFF2B],
+ ["A2DA",0xFF2C],
+ ["A2DB",0xFF2D],
+ ["A2DC",0xFF2E],
+ ["A2DD",0xFF2F],
+ ["A2DE",0xFF30],
+ ["A2DF",0xFF31],
+ ["A2E0",0xFF32],
+ ["A2E1",0xFF33],
+ ["A2E2",0xFF34],
+ ["A2E3",0xFF35],
+ ["A2E4",0xFF36],
+ ["A2E5",0xFF37],
+ ["A2E6",0xFF38],
+ ["A2E7",0xFF39],
+ ["A2E8",0xFF3A],
+ ["A2E9",0xFF41],
+ ["A2EA",0xFF42],
+ ["A2EB",0xFF43],
+ ["A2EC",0xFF44],
+ ["A2ED",0xFF45],
+ ["A2EE",0xFF46],
+ ["A2EF",0xFF47],
+ ["A2F0",0xFF48],
+ ["A2F1",0xFF49],
+ ["A2F2",0xFF4A],
+ ["A2F3",0xFF4B],
+ ["A2F4",0xFF4C],
+ ["A2F5",0xFF4D],
+ ["A2F6",0xFF4E],
+ ["A2F7",0xFF4F],
+ ["A2F8",0xFF50],
+ ["A2F9",0xFF51],
+ ["A2FA",0xFF52],
+ ["A2FB",0xFF53],
+ ["A2FC",0xFF54],
+ ["A2FD",0xFF55],
+ ["A2FE",0xFF56],
+ ["A340",0xFF57],
+ ["A341",0xFF58],
+ ["A342",0xFF59],
+ ["A343",0xFF5A],
+ ["A344",0x0391],
+ ["A345",0x0392],
+ ["A346",0x0393],
+ ["A347",0x0394],
+ ["A348",0x0395],
+ ["A349",0x0396],
+ ["A34A",0x0397],
+ ["A34B",0x0398],
+ ["A34C",0x0399],
+ ["A34D",0x039A],
+ ["A34E",0x039B],
+ ["A34F",0x039C],
+ ["A350",0x039D],
+ ["A351",0x039E],
+ ["A352",0x039F],
+ ["A353",0x03A0],
+ ["A354",0x03A1],
+ ["A355",0x03A3],
+ ["A356",0x03A4],
+ ["A357",0x03A5],
+ ["A358",0x03A6],
+ ["A359",0x03A7],
+ ["A35A",0x03A8],
+ ["A35B",0x03A9],
+ ["A35C",0x03B1],
+ ["A35D",0x03B2],
+ ["A35E",0x03B3],
+ ["A35F",0x03B4],
+ ["A360",0x03B5],
+ ["A361",0x03B6],
+ ["A362",0x03B7],
+ ["A363",0x03B8],
+ ["A364",0x03B9],
+ ["A365",0x03BA],
+ ["A366",0x03BB],
+ ["A367",0x03BC],
+ ["A368",0x03BD],
+ ["A369",0x03BE],
+ ["A36A",0x03BF],
+ ["A36B",0x03C0],
+ ["A36C",0x03C1],
+ ["A36D",0x03C3],
+ ["A36E",0x03C4],
+ ["A36F",0x03C5],
+ ["A370",0x03C6],
+ ["A371",0x03C7],
+ ["A372",0x03C8],
+ ["A373",0x03C9],
["A374",0x3105],
["A375",0x3106],
["A376",0x3107],
@@ -489,13217 +5426,14359 @@ BIG5_TO_UCS_TBL= [
["A3B8",0x3127],
["A3B9",0x3128],
["A3BA",0x3129],
- ["A1C0",0x32A3],
- ["A255",0x338E],
- ["A256",0x338F],
- ["A250",0x339C],
- ["A251",0x339D],
- ["A252",0x339E],
- ["A254",0x33A1],
- ["A257",0x33C4],
- ["A253",0x33CE],
- ["A1EB",0x33D1],
- ["A1EA",0x33D2],
- ["A24F",0x33D5],
+ ["A3BB",0x02D9],
+ ["A3BC",0x02C9],
+ ["A3BD",0x02CA],
+ ["A3BE",0x02C7],
+ ["A3BF",0x02CB],
+ ["A3C0",0x2400],
+ ["A3C1",0x2401],
+ ["A3C2",0x2402],
+ ["A3C3",0x2403],
+ ["A3C4",0x2404],
+ ["A3C5",0x2405],
+ ["A3C6",0x2406],
+ ["A3C7",0x2407],
+ ["A3C8",0x2408],
+ ["A3C9",0x2409],
+ ["A3CA",0x240A],
+ ["A3CB",0x240B],
+ ["A3CC",0x240C],
+ ["A3CD",0x240D],
+ ["A3CE",0x240E],
+ ["A3CF",0x240F],
+ ["A3D0",0x2410],
+ ["A3D1",0x2411],
+ ["A3D2",0x2412],
+ ["A3D3",0x2413],
+ ["A3D4",0x2414],
+ ["A3D5",0x2415],
+ ["A3D6",0x2416],
+ ["A3D7",0x2417],
+ ["A3D8",0x2418],
+ ["A3D9",0x2419],
+ ["A3DA",0x241A],
+ ["A3DB",0x241B],
+ ["A3DC",0x241C],
+ ["A3DD",0x241D],
+ ["A3DE",0x241E],
+ ["A3DF",0x241F],
+ ["A3E0",0x2421],
+ ["A3E1",0x20AC],
+ ["A3E2",0xF849],
+ ["A3E3",0xF84A],
+ ["A3E4",0xF84B],
+ ["A3E5",0xF84C],
+ ["A3E6",0xF84D],
+ ["A3E7",0xF84E],
+ ["A3E8",0xF84F],
+ ["A3E9",0xF850],
+ ["A3EA",0xF851],
+ ["A3EB",0xF852],
+ ["A3EC",0xF853],
+ ["A3ED",0xF854],
+ ["A3EE",0xF855],
+ ["A3EF",0xF856],
+ ["A3F0",0xF857],
+ ["A3F1",0xF858],
+ ["A3F2",0xF859],
+ ["A3F3",0xF85A],
+ ["A3F4",0xF85B],
+ ["A3F5",0xF85C],
+ ["A3F6",0xF85D],
+ ["A3F7",0xF85E],
+ ["A3F8",0xF85F],
+ ["A3F9",0xF860],
+ ["A3FA",0xF861],
+ ["A3FB",0xF862],
+ ["A3FC",0xF863],
+ ["A3FD",0xF864],
+ ["A3FE",0xF865],
["A440",0x4E00],
+ ["A441",0x4E59],
["A442",0x4E01],
["A443",0x4E03],
- ["C945",0x4E07],
- ["A456",0x4E08],
+ ["A444",0x4E43],
+ ["A445",0x4E5D],
+ ["A446",0x4E86],
+ ["A447",0x4E8C],
+ ["A448",0x4EBA],
+ ["A449",0x513F],
+ ["A44A",0x5165],
+ ["A44B",0x516B],
+ ["A44C",0x51E0],
+ ["A44D",0x5200],
+ ["A44E",0x5201],
+ ["A44F",0x529B],
+ ["A450",0x5315],
+ ["A451",0x5341],
+ ["A452",0x535C],
+ ["A453",0x53C8],
["A454",0x4E09],
- ["A457",0x4E0A],
["A455",0x4E0B],
- ["C946",0x4E0C],
- ["A4A3",0x4E0D],
- ["C94F",0x4E0E],
- ["C94D",0x4E0F],
- ["A4A2",0x4E10],
- ["A4A1",0x4E11],
- ["A542",0x4E14],
- ["A541",0x4E15],
- ["A540",0x4E16],
- ["A543",0x4E18],
- ["A4FE",0x4E19],
- ["A5E0",0x4E1E],
- ["A5E1",0x4E1F],
- ["A8C3",0x4E26],
+ ["A456",0x4E08],
+ ["A457",0x4E0A],
["A458",0x4E2B],
- ["A4A4",0x4E2D],
- ["C950",0x4E2E],
- ["A4A5",0x4E30],
- ["C963",0x4E31],
- ["A6EA",0x4E32],
- ["CBB1",0x4E33],
["A459",0x4E38],
- ["A4A6",0x4E39],
- ["A544",0x4E3B],
- ["C964",0x4E3C],
- ["C940",0x4E42],
- ["A444",0x4E43],
+ ["A45A",0x51E1],
["A45B",0x4E45],
- ["C947",0x4E47],
["A45C",0x4E48],
- ["A4A7",0x4E4B],
- ["A545",0x4E4D],
- ["A547",0x4E4E],
- ["A546",0x4E4F],
- ["A5E2",0x4E52],
- ["A5E3",0x4E53],
- ["A8C4",0x4E56],
- ["ADBC",0x4E58],
- ["A441",0x4E59],
- ["C941",0x4E5C],
- ["A445",0x4E5D],
- ["A45E",0x4E5E],
["A45D",0x4E5F],
- ["A5E4",0x4E69],
- ["A8C5",0x4E73],
- ["B0AE",0x4E7E],
- ["D44B",0x4E7F],
- ["B6C3",0x4E82],
- ["DCB1",0x4E83],
- ["DCB2",0x4E84],
- ["A446",0x4E86],
- ["A4A9",0x4E88],
- ["A8C6",0x4E8B],
- ["A447",0x4E8C],
- ["C948",0x4E8D],
+ ["A45E",0x4E5E],
["A45F",0x4E8E],
+ ["A460",0x4EA1],
+ ["A461",0x5140],
+ ["A462",0x5203],
+ ["A463",0x52FA],
+ ["A464",0x5343],
+ ["A465",0x53C9],
+ ["A466",0x53E3],
+ ["A467",0x571F],
+ ["A468",0x58EB],
+ ["A469",0x5915],
+ ["A46A",0x5927],
+ ["A46B",0x5973],
+ ["A46C",0x5B50],
+ ["A46D",0x5B51],
+ ["A46E",0x5B53],
+ ["A46F",0x5BF8],
+ ["A470",0x5C0F],
+ ["A471",0x5C22],
+ ["A472",0x5C38],
+ ["A473",0x5C71],
+ ["A474",0x5DDD],
+ ["A475",0x5DE5],
+ ["A476",0x5DF1],
+ ["A477",0x5DF2],
+ ["A478",0x5DF3],
+ ["A479",0x5DFE],
+ ["A47A",0x5E72],
+ ["A47B",0x5EFE],
+ ["A47C",0x5F0B],
+ ["A47D",0x5F13],
+ ["A47E",0x624D],
+ ["A4A1",0x4E11],
+ ["A4A2",0x4E10],
+ ["A4A3",0x4E0D],
+ ["A4A4",0x4E2D],
+ ["A4A5",0x4E30],
+ ["A4A6",0x4E39],
+ ["A4A7",0x4E4B],
+ ["A4A8",0x5C39],
+ ["A4A9",0x4E88],
["A4AA",0x4E91],
+ ["A4AB",0x4E95],
["A4AC",0x4E92],
- ["C951",0x4E93],
["A4AD",0x4E94],
- ["A4AB",0x4E95],
- ["A5E5",0x4E99],
- ["A8C7",0x4E9B],
- ["A8C8",0x4E9E],
- ["AB45",0x4E9F],
- ["A460",0x4EA1],
["A4AE",0x4EA2],
- ["A5E6",0x4EA4],
- ["A5E8",0x4EA5],
- ["A5E7",0x4EA6],
- ["A6EB",0x4EA8],
- ["A8C9",0x4EAB],
- ["A8CA",0x4EAC],
- ["AB46",0x4EAD],
- ["AB47",0x4EAE],
- ["ADBD",0x4EB3],
- ["DCB3",0x4EB6],
- ["F6D6",0x4EB9],
- ["A448",0x4EBA],
- ["A4B0",0x4EC0],
["A4AF",0x4EC1],
- ["C952",0x4EC2],
+ ["A4B0",0x4EC0],
["A4B1",0x4EC3],
- ["A4B7",0x4EC4],
["A4B2",0x4EC6],
["A4B3",0x4EC7],
- ["C954",0x4EC8],
- ["C953",0x4EC9],
+ ["A4B4",0x4ECD],
["A4B5",0x4ECA],
["A4B6",0x4ECB],
- ["A4B4",0x4ECD],
+ ["A4B7",0x4EC4],
+ ["A4B8",0x5143],
+ ["A4B9",0x5141],
+ ["A4BA",0x5167],
+ ["A4BB",0x516D],
+ ["A4BC",0x516E],
+ ["A4BD",0x516C],
+ ["A4BE",0x5197],
+ ["A4BF",0x51F6],
+ ["A4C0",0x5206],
+ ["A4C1",0x5207],
+ ["A4C2",0x5208],
+ ["A4C3",0x52FB],
+ ["A4C4",0x52FE],
+ ["A4C5",0x52FF],
+ ["A4C6",0x5316],
+ ["A4C7",0x5339],
+ ["A4C8",0x5348],
+ ["A4C9",0x5347],
+ ["A4CA",0x5345],
+ ["A4CB",0x535E],
+ ["A4CC",0x5384],
+ ["A4CD",0x53CB],
+ ["A4CE",0x53CA],
+ ["A4CF",0x53CD],
+ ["A4D0",0x58EC],
+ ["A4D1",0x5929],
+ ["A4D2",0x592B],
+ ["A4D3",0x592A],
+ ["A4D4",0x592D],
+ ["A4D5",0x5B54],
+ ["A4D6",0x5C11],
+ ["A4D7",0x5C24],
+ ["A4D8",0x5C3A],
+ ["A4D9",0x5C6F],
+ ["A4DA",0x5DF4],
+ ["A4DB",0x5E7B],
+ ["A4DC",0x5EFF],
+ ["A4DD",0x5F14],
+ ["A4DE",0x5F15],
+ ["A4DF",0x5FC3],
+ ["A4E0",0x6208],
+ ["A4E1",0x6236],
+ ["A4E2",0x624B],
+ ["A4E3",0x624E],
+ ["A4E4",0x652F],
+ ["A4E5",0x6587],
+ ["A4E6",0x6597],
+ ["A4E7",0x65A4],
+ ["A4E8",0x65B9],
+ ["A4E9",0x65E5],
+ ["A4EA",0x66F0],
+ ["A4EB",0x6708],
+ ["A4EC",0x6728],
+ ["A4ED",0x6B20],
+ ["A4EE",0x6B62],
+ ["A4EF",0x6B79],
+ ["A4F0",0x6BCB],
+ ["A4F1",0x6BD4],
+ ["A4F2",0x6BDB],
+ ["A4F3",0x6C0F],
+ ["A4F4",0x6C34],
+ ["A4F5",0x706B],
+ ["A4F6",0x722A],
+ ["A4F7",0x7236],
+ ["A4F8",0x723B],
+ ["A4F9",0x7247],
+ ["A4FA",0x7259],
+ ["A4FB",0x725B],
+ ["A4FC",0x72AC],
+ ["A4FD",0x738B],
+ ["A4FE",0x4E19],
+ ["A540",0x4E16],
+ ["A541",0x4E15],
+ ["A542",0x4E14],
+ ["A543",0x4E18],
+ ["A544",0x4E3B],
+ ["A545",0x4E4D],
+ ["A546",0x4E4F],
+ ["A547",0x4E4E],
+ ["A548",0x4EE5],
+ ["A549",0x4ED8],
["A54A",0x4ED4],
["A54B",0x4ED5],
["A54C",0x4ED6],
["A54D",0x4ED7],
- ["A549",0x4ED8],
+ ["A54E",0x4EE3],
+ ["A54F",0x4EE4],
["A550",0x4ED9],
- ["C96A",0x4EDA],
- ["C966",0x4EDC],
- ["C969",0x4EDD],
["A551",0x4EDE],
+ ["A552",0x5145],
+ ["A553",0x5144],
+ ["A554",0x5189],
+ ["A555",0x518A],
+ ["A556",0x51AC],
+ ["A557",0x51F9],
+ ["A558",0x51FA],
+ ["A559",0x51F8],
+ ["A55A",0x520A],
+ ["A55B",0x52A0],
+ ["A55C",0x529F],
+ ["A55D",0x5305],
+ ["A55E",0x5306],
+ ["A55F",0x5317],
+ ["A560",0x531D],
["A561",0x4EDF],
- ["C968",0x4EE1],
- ["A54E",0x4EE3],
- ["A54F",0x4EE4],
- ["A548",0x4EE5],
- ["C965",0x4EE8],
- ["C967",0x4EE9],
- ["A5F5",0x4EF0],
- ["C9B0",0x4EF1],
- ["A5F2",0x4EF2],
- ["A5F6",0x4EF3],
- ["C9BA",0x4EF4],
- ["C9AE",0x4EF5],
- ["A5F3",0x4EF6],
- ["C9B2",0x4EF7],
- ["A5F4",0x4EFB],
- ["A5F7",0x4EFD],
+ ["A562",0x534A],
+ ["A563",0x5349],
+ ["A564",0x5361],
+ ["A565",0x5360],
+ ["A566",0x536F],
+ ["A567",0x536E],
+ ["A568",0x53BB],
+ ["A569",0x53EF],
+ ["A56A",0x53E4],
+ ["A56B",0x53F3],
+ ["A56C",0x53EC],
+ ["A56D",0x53EE],
+ ["A56E",0x53E9],
+ ["A56F",0x53E8],
+ ["A570",0x53FC],
+ ["A571",0x53F8],
+ ["A572",0x53F5],
+ ["A573",0x53EB],
+ ["A574",0x53E6],
+ ["A575",0x53EA],
+ ["A576",0x53F2],
+ ["A577",0x53F1],
+ ["A578",0x53F0],
+ ["A579",0x53E5],
+ ["A57A",0x53ED],
+ ["A57B",0x53FB],
+ ["A57C",0x56DB],
+ ["A57D",0x56DA],
+ ["A57E",0x5916],
+ ["A5A1",0x592E],
+ ["A5A2",0x5931],
+ ["A5A3",0x5974],
+ ["A5A4",0x5976],
+ ["A5A5",0x5B55],
+ ["A5A6",0x5B83],
+ ["A5A7",0x5C3C],
+ ["A5A8",0x5DE8],
+ ["A5A9",0x5DE7],
+ ["A5AA",0x5DE6],
+ ["A5AB",0x5E02],
+ ["A5AC",0x5E03],
+ ["A5AD",0x5E73],
+ ["A5AE",0x5E7C],
+ ["A5AF",0x5F01],
+ ["A5B0",0x5F18],
+ ["A5B1",0x5F17],
+ ["A5B2",0x5FC5],
+ ["A5B3",0x620A],
+ ["A5B4",0x6253],
+ ["A5B5",0x6254],
+ ["A5B6",0x6252],
+ ["A5B7",0x6251],
+ ["A5B8",0x65A5],
+ ["A5B9",0x65E6],
+ ["A5BA",0x672E],
+ ["A5BB",0x672C],
+ ["A5BC",0x672A],
+ ["A5BD",0x672B],
+ ["A5BE",0x672D],
+ ["A5BF",0x6B63],
+ ["A5C0",0x6BCD],
+ ["A5C1",0x6C11],
+ ["A5C2",0x6C10],
+ ["A5C3",0x6C38],
+ ["A5C4",0x6C41],
+ ["A5C5",0x6C40],
+ ["A5C6",0x6C3E],
+ ["A5C7",0x72AF],
+ ["A5C8",0x7384],
+ ["A5C9",0x7389],
+ ["A5CA",0x74DC],
+ ["A5CB",0x74E6],
+ ["A5CC",0x7518],
+ ["A5CD",0x751F],
+ ["A5CE",0x7528],
+ ["A5CF",0x7529],
+ ["A5D0",0x7530],
+ ["A5D1",0x7531],
+ ["A5D2",0x7532],
+ ["A5D3",0x7533],
+ ["A5D4",0x758B],
+ ["A5D5",0x767D],
+ ["A5D6",0x76AE],
+ ["A5D7",0x76BF],
+ ["A5D8",0x76EE],
+ ["A5D9",0x77DB],
+ ["A5DA",0x77E2],
+ ["A5DB",0x77F3],
+ ["A5DC",0x793A],
+ ["A5DD",0x79BE],
+ ["A5DE",0x7A74],
+ ["A5DF",0x7ACB],
+ ["A5E0",0x4E1E],
+ ["A5E1",0x4E1F],
+ ["A5E2",0x4E52],
+ ["A5E3",0x4E53],
+ ["A5E4",0x4E69],
+ ["A5E5",0x4E99],
+ ["A5E6",0x4EA4],
+ ["A5E7",0x4EA6],
+ ["A5E8",0x4EA5],
["A5E9",0x4EFF],
- ["C9B1",0x4F00],
- ["A5F8",0x4F01],
- ["C9B5",0x4F02],
- ["C9B9",0x4F04],
- ["C9B6",0x4F05],
- ["C9B3",0x4F08],
["A5EA",0x4F09],
+ ["A5EB",0x4F19],
["A5EC",0x4F0A],
- ["A5F9",0x4F0B],
+ ["A5ED",0x4F15],
["A5EE",0x4F0D],
- ["C9AB",0x4F0E],
- ["A5F1",0x4F0F],
["A5EF",0x4F10],
["A5F0",0x4F11],
- ["C9BB",0x4F12],
- ["C9B8",0x4F13],
- ["C9AF",0x4F14],
- ["A5ED",0x4F15],
- ["C9AC",0x4F18],
- ["A5EB",0x4F19],
- ["C9B4",0x4F1D],
- ["C9B7",0x4F22],
- ["C9AD",0x4F2C],
- ["CA66",0x4F2D],
- ["A742",0x4F2F],
- ["A6F4",0x4F30],
- ["CA67",0x4F33],
- ["A6F1",0x4F34],
- ["A744",0x4F36],
- ["A6F9",0x4F38],
- ["A6F8",0x4F3A],
- ["CA5B",0x4F3B],
- ["A6FC",0x4F3C],
- ["A6F7",0x4F3D],
- ["CA60",0x4F3E],
- ["CA68",0x4F3F],
- ["CA64",0x4F41],
- ["A6FA",0x4F43],
- ["A6FD",0x4F46],
- ["A6EE",0x4F47],
- ["A747",0x4F48],
- ["CA5D",0x4F49],
- ["CBBD",0x4F4C],
+ ["A5F1",0x4F0F],
+ ["A5F2",0x4EF2],
+ ["A5F3",0x4EF6],
+ ["A5F4",0x4EFB],
+ ["A5F5",0x4EF0],
+ ["A5F6",0x4EF3],
+ ["A5F7",0x4EFD],
+ ["A5F8",0x4F01],
+ ["A5F9",0x4F0B],
+ ["A5FA",0x5149],
+ ["A5FB",0x5147],
+ ["A5FC",0x5146],
+ ["A5FD",0x5148],
+ ["A5FE",0x5168],
+ ["A640",0x5171],
+ ["A641",0x518D],
+ ["A642",0x51B0],
+ ["A643",0x5217],
+ ["A644",0x5211],
+ ["A645",0x5212],
+ ["A646",0x520E],
+ ["A647",0x5216],
+ ["A648",0x52A3],
+ ["A649",0x5308],
+ ["A64A",0x5321],
+ ["A64B",0x5320],
+ ["A64C",0x5370],
+ ["A64D",0x5371],
+ ["A64E",0x5409],
+ ["A64F",0x540F],
+ ["A650",0x540C],
+ ["A651",0x540A],
+ ["A652",0x5410],
+ ["A653",0x5401],
+ ["A654",0x540B],
+ ["A655",0x5404],
+ ["A656",0x5411],
+ ["A657",0x540D],
+ ["A658",0x5408],
+ ["A659",0x5403],
+ ["A65A",0x540E],
+ ["A65B",0x5406],
+ ["A65C",0x5412],
+ ["A65D",0x56E0],
+ ["A65E",0x56DE],
+ ["A65F",0x56DD],
+ ["A660",0x5733],
+ ["A661",0x5730],
+ ["A662",0x5728],
+ ["A663",0x572D],
+ ["A664",0x572C],
+ ["A665",0x572F],
+ ["A666",0x5729],
+ ["A667",0x5919],
+ ["A668",0x591A],
+ ["A669",0x5937],
+ ["A66A",0x5938],
+ ["A66B",0x5984],
+ ["A66C",0x5978],
+ ["A66D",0x5983],
+ ["A66E",0x597D],
+ ["A66F",0x5979],
+ ["A670",0x5982],
+ ["A671",0x5981],
+ ["A672",0x5B57],
+ ["A673",0x5B58],
+ ["A674",0x5B87],
+ ["A675",0x5B88],
+ ["A676",0x5B85],
+ ["A677",0x5B89],
+ ["A678",0x5BFA],
+ ["A679",0x5C16],
+ ["A67A",0x5C79],
+ ["A67B",0x5DDE],
+ ["A67C",0x5E06],
+ ["A67D",0x5E76],
+ ["A67E",0x5E74],
+ ["A6A1",0x5F0F],
+ ["A6A2",0x5F1B],
+ ["A6A3",0x5FD9],
+ ["A6A4",0x5FD6],
+ ["A6A5",0x620E],
+ ["A6A6",0x620C],
+ ["A6A7",0x620D],
+ ["A6A8",0x6210],
+ ["A6A9",0x6263],
+ ["A6AA",0x625B],
+ ["A6AB",0x6258],
+ ["A6AC",0x6536],
+ ["A6AD",0x65E9],
+ ["A6AE",0x65E8],
+ ["A6AF",0x65EC],
+ ["A6B0",0x65ED],
+ ["A6B1",0x66F2],
+ ["A6B2",0x66F3],
+ ["A6B3",0x6709],
+ ["A6B4",0x673D],
+ ["A6B5",0x6734],
+ ["A6B6",0x6731],
+ ["A6B7",0x6735],
+ ["A6B8",0x6B21],
+ ["A6B9",0x6B64],
+ ["A6BA",0x6B7B],
+ ["A6BB",0x6C16],
+ ["A6BC",0x6C5D],
+ ["A6BD",0x6C57],
+ ["A6BE",0x6C59],
+ ["A6BF",0x6C5F],
+ ["A6C0",0x6C60],
+ ["A6C1",0x6C50],
+ ["A6C2",0x6C55],
+ ["A6C3",0x6C61],
+ ["A6C4",0x6C5B],
+ ["A6C5",0x6C4D],
+ ["A6C6",0x6C4E],
+ ["A6C7",0x7070],
+ ["A6C8",0x725F],
+ ["A6C9",0x725D],
+ ["A6CA",0x767E],
+ ["A6CB",0x7AF9],
+ ["A6CC",0x7C73],
+ ["A6CD",0x7CF8],
+ ["A6CE",0x7F36],
+ ["A6CF",0x7F8A],
+ ["A6D0",0x7FBD],
+ ["A6D1",0x8001],
+ ["A6D2",0x8003],
+ ["A6D3",0x800C],
+ ["A6D4",0x8012],
+ ["A6D5",0x8033],
+ ["A6D6",0x807F],
+ ["A6D7",0x8089],
+ ["A6D8",0x808B],
+ ["A6D9",0x808C],
+ ["A6DA",0x81E3],
+ ["A6DB",0x81EA],
+ ["A6DC",0x81F3],
+ ["A6DD",0x81FC],
+ ["A6DE",0x820C],
+ ["A6DF",0x821B],
+ ["A6E0",0x821F],
+ ["A6E1",0x826E],
+ ["A6E2",0x8272],
+ ["A6E3",0x827E],
+ ["A6E4",0x866B],
+ ["A6E5",0x8840],
+ ["A6E6",0x884C],
+ ["A6E7",0x8863],
+ ["A6E8",0x897F],
+ ["A6E9",0x9621],
+ ["A6EA",0x4E32],
+ ["A6EB",0x4EA8],
["A6EC",0x4F4D],
- ["A743",0x4F4E],
["A6ED",0x4F4F],
+ ["A6EE",0x4F47],
+ ["A6EF",0x4F57],
+ ["A6F0",0x4F5E],
+ ["A6F1",0x4F34],
+ ["A6F2",0x4F5B],
+ ["A6F3",0x4F55],
+ ["A6F4",0x4F30],
["A6F5",0x4F50],
["A6F6",0x4F51],
- ["CA62",0x4F52],
- ["CA5E",0x4F53],
+ ["A6F7",0x4F3D],
+ ["A6F8",0x4F3A],
+ ["A6F9",0x4F38],
+ ["A6FA",0x4F43],
["A6FB",0x4F54],
- ["A6F3",0x4F55],
- ["CA5A",0x4F56],
- ["A6EF",0x4F57],
- ["CA65",0x4F58],
- ["A745",0x4F59],
- ["A748",0x4F5A],
- ["A6F2",0x4F5B],
+ ["A6FC",0x4F3C],
+ ["A6FD",0x4F46],
+ ["A6FE",0x4F63],
["A740",0x4F5C],
- ["A746",0x4F5D],
- ["A6F0",0x4F5E],
- ["CA63",0x4F5F],
["A741",0x4F60],
- ["CA69",0x4F61],
- ["CA5C",0x4F62],
- ["A6FE",0x4F63],
- ["CA5F",0x4F64],
- ["CA61",0x4F67],
- ["A8D8",0x4F69],
- ["CBBF",0x4F6A],
- ["CBCB",0x4F6B],
- ["A8D0",0x4F6C],
- ["CBCC",0x4F6E],
+ ["A742",0x4F2F],
+ ["A743",0x4F4E],
+ ["A744",0x4F36],
+ ["A745",0x4F59],
+ ["A746",0x4F5D],
+ ["A747",0x4F48],
+ ["A748",0x4F5A],
+ ["A749",0x514C],
+ ["A74A",0x514B],
+ ["A74B",0x514D],
+ ["A74C",0x5175],
+ ["A74D",0x51B6],
+ ["A74E",0x51B7],
+ ["A74F",0x5225],
+ ["A750",0x5224],
+ ["A751",0x5229],
+ ["A752",0x522A],
+ ["A753",0x5228],
+ ["A754",0x52AB],
+ ["A755",0x52A9],
+ ["A756",0x52AA],
+ ["A757",0x52AC],
+ ["A758",0x5323],
+ ["A759",0x5373],
+ ["A75A",0x5375],
+ ["A75B",0x541D],
+ ["A75C",0x542D],
+ ["A75D",0x541E],
+ ["A75E",0x543E],
+ ["A75F",0x5426],
+ ["A760",0x544E],
+ ["A761",0x5427],
+ ["A762",0x5446],
+ ["A763",0x5443],
+ ["A764",0x5433],
+ ["A765",0x5448],
+ ["A766",0x5442],
+ ["A767",0x541B],
+ ["A768",0x5429],
+ ["A769",0x544A],
+ ["A76A",0x5439],
+ ["A76B",0x543B],
+ ["A76C",0x5438],
+ ["A76D",0x542E],
+ ["A76E",0x5435],
+ ["A76F",0x5436],
+ ["A770",0x5420],
+ ["A771",0x543C],
+ ["A772",0x5440],
+ ["A773",0x5431],
+ ["A774",0x542B],
+ ["A775",0x541F],
+ ["A776",0x542C],
+ ["A777",0x56EA],
+ ["A778",0x56F0],
+ ["A779",0x56E4],
+ ["A77A",0x56EB],
+ ["A77B",0x574A],
+ ["A77C",0x5751],
+ ["A77D",0x5740],
+ ["A77E",0x574D],
+ ["A7A1",0x5747],
+ ["A7A2",0x574E],
+ ["A7A3",0x573E],
+ ["A7A4",0x5750],
+ ["A7A5",0x574F],
+ ["A7A6",0x573B],
+ ["A7A7",0x58EF],
+ ["A7A8",0x593E],
+ ["A7A9",0x599D],
+ ["A7AA",0x5992],
+ ["A7AB",0x59A8],
+ ["A7AC",0x599E],
+ ["A7AD",0x59A3],
+ ["A7AE",0x5999],
+ ["A7AF",0x5996],
+ ["A7B0",0x598D],
+ ["A7B1",0x59A4],
+ ["A7B2",0x5993],
+ ["A7B3",0x598A],
+ ["A7B4",0x59A5],
+ ["A7B5",0x5B5D],
+ ["A7B6",0x5B5C],
+ ["A7B7",0x5B5A],
+ ["A7B8",0x5B5B],
+ ["A7B9",0x5B8C],
+ ["A7BA",0x5B8B],
+ ["A7BB",0x5B8F],
+ ["A7BC",0x5C2C],
+ ["A7BD",0x5C40],
+ ["A7BE",0x5C41],
+ ["A7BF",0x5C3F],
+ ["A7C0",0x5C3E],
+ ["A7C1",0x5C90],
+ ["A7C2",0x5C91],
+ ["A7C3",0x5C94],
+ ["A7C4",0x5C8C],
+ ["A7C5",0x5DEB],
+ ["A7C6",0x5E0C],
+ ["A7C7",0x5E8F],
+ ["A7C8",0x5E87],
+ ["A7C9",0x5E8A],
+ ["A7CA",0x5EF7],
+ ["A7CB",0x5F04],
+ ["A7CC",0x5F1F],
+ ["A7CD",0x5F64],
+ ["A7CE",0x5F62],
+ ["A7CF",0x5F77],
+ ["A7D0",0x5F79],
+ ["A7D1",0x5FD8],
+ ["A7D2",0x5FCC],
+ ["A7D3",0x5FD7],
+ ["A7D4",0x5FCD],
+ ["A7D5",0x5FF1],
+ ["A7D6",0x5FEB],
+ ["A7D7",0x5FF8],
+ ["A7D8",0x5FEA],
+ ["A7D9",0x6212],
+ ["A7DA",0x6211],
+ ["A7DB",0x6284],
+ ["A7DC",0x6297],
+ ["A7DD",0x6296],
+ ["A7DE",0x6280],
+ ["A7DF",0x6276],
+ ["A7E0",0x6289],
+ ["A7E1",0x626D],
+ ["A7E2",0x628A],
+ ["A7E3",0x627C],
+ ["A7E4",0x627E],
+ ["A7E5",0x6279],
+ ["A7E6",0x6273],
+ ["A7E7",0x6292],
+ ["A7E8",0x626F],
+ ["A7E9",0x6298],
+ ["A7EA",0x626E],
+ ["A7EB",0x6295],
+ ["A7EC",0x6293],
+ ["A7ED",0x6291],
+ ["A7EE",0x6286],
+ ["A7EF",0x6539],
+ ["A7F0",0x653B],
+ ["A7F1",0x6538],
+ ["A7F2",0x65F1],
+ ["A7F3",0x66F4],
+ ["A7F4",0x675F],
+ ["A7F5",0x674E],
+ ["A7F6",0x674F],
+ ["A7F7",0x6750],
+ ["A7F8",0x6751],
+ ["A7F9",0x675C],
+ ["A7FA",0x6756],
+ ["A7FB",0x675E],
+ ["A7FC",0x6749],
+ ["A7FD",0x6746],
+ ["A7FE",0x6760],
+ ["A840",0x6753],
+ ["A841",0x6757],
+ ["A842",0x6B65],
+ ["A843",0x6BCF],
+ ["A844",0x6C42],
+ ["A845",0x6C5E],
+ ["A846",0x6C99],
+ ["A847",0x6C81],
+ ["A848",0x6C88],
+ ["A849",0x6C89],
+ ["A84A",0x6C85],
+ ["A84B",0x6C9B],
+ ["A84C",0x6C6A],
+ ["A84D",0x6C7A],
+ ["A84E",0x6C90],
+ ["A84F",0x6C70],
+ ["A850",0x6C8C],
+ ["A851",0x6C68],
+ ["A852",0x6C96],
+ ["A853",0x6C92],
+ ["A854",0x6C7D],
+ ["A855",0x6C83],
+ ["A856",0x6C72],
+ ["A857",0x6C7E],
+ ["A858",0x6C74],
+ ["A859",0x6C86],
+ ["A85A",0x6C76],
+ ["A85B",0x6C8D],
+ ["A85C",0x6C94],
+ ["A85D",0x6C98],
+ ["A85E",0x6C82],
+ ["A85F",0x7076],
+ ["A860",0x707C],
+ ["A861",0x707D],
+ ["A862",0x7078],
+ ["A863",0x7262],
+ ["A864",0x7261],
+ ["A865",0x7260],
+ ["A866",0x72C4],
+ ["A867",0x72C2],
+ ["A868",0x7396],
+ ["A869",0x752C],
+ ["A86A",0x752B],
+ ["A86B",0x7537],
+ ["A86C",0x7538],
+ ["A86D",0x7682],
+ ["A86E",0x76EF],
+ ["A86F",0x77E3],
+ ["A870",0x79C1],
+ ["A871",0x79C0],
+ ["A872",0x79BF],
+ ["A873",0x7A76],
+ ["A874",0x7CFB],
+ ["A875",0x7F55],
+ ["A876",0x8096],
+ ["A877",0x8093],
+ ["A878",0x809D],
+ ["A879",0x8098],
+ ["A87A",0x809B],
+ ["A87B",0x809A],
+ ["A87C",0x80B2],
+ ["A87D",0x826F],
+ ["A87E",0x8292],
+ ["A8A1",0x828B],
+ ["A8A2",0x828D],
+ ["A8A3",0x898B],
+ ["A8A4",0x89D2],
+ ["A8A5",0x8A00],
+ ["A8A6",0x8C37],
+ ["A8A7",0x8C46],
+ ["A8A8",0x8C55],
+ ["A8A9",0x8C9D],
+ ["A8AA",0x8D64],
+ ["A8AB",0x8D70],
+ ["A8AC",0x8DB3],
+ ["A8AD",0x8EAB],
+ ["A8AE",0x8ECA],
+ ["A8AF",0x8F9B],
+ ["A8B0",0x8FB0],
+ ["A8B1",0x8FC2],
+ ["A8B2",0x8FC6],
+ ["A8B3",0x8FC5],
+ ["A8B4",0x8FC4],
+ ["A8B5",0x5DE1],
+ ["A8B6",0x9091],
+ ["A8B7",0x90A2],
+ ["A8B8",0x90AA],
+ ["A8B9",0x90A6],
+ ["A8BA",0x90A3],
+ ["A8BB",0x9149],
+ ["A8BC",0x91C6],
+ ["A8BD",0x91CC],
+ ["A8BE",0x9632],
+ ["A8BF",0x962E],
+ ["A8C0",0x9631],
+ ["A8C1",0x962A],
+ ["A8C2",0x962C],
+ ["A8C3",0x4E26],
+ ["A8C4",0x4E56],
+ ["A8C5",0x4E73],
+ ["A8C6",0x4E8B],
+ ["A8C7",0x4E9B],
+ ["A8C8",0x4E9E],
+ ["A8C9",0x4EAB],
+ ["A8CA",0x4EAC],
["A8CB",0x4F6F],
- ["A8D5",0x4F70],
+ ["A8CC",0x4F9D],
+ ["A8CD",0x4F8D],
["A8CE",0x4F73],
- ["CBB9",0x4F74],
- ["A8D6",0x4F75],
- ["CBB8",0x4F76],
- ["CBBC",0x4F77],
- ["CBC3",0x4F78],
- ["CBC1",0x4F79],
- ["A8DE",0x4F7A],
- ["A8D9",0x4F7B],
- ["CBB3",0x4F7C],
- ["CBB5",0x4F7D],
- ["A8DB",0x4F7E],
["A8CF",0x4F7F],
- ["CBB6",0x4F80],
- ["CBC2",0x4F81],
- ["CBC9",0x4F82],
- ["A8D4",0x4F83],
- ["CBBB",0x4F84],
- ["CBB4",0x4F85],
+ ["A8D0",0x4F6C],
+ ["A8D1",0x4F9B],
+ ["A8D2",0x4F8B],
["A8D3",0x4F86],
- ["CBB7",0x4F87],
+ ["A8D4",0x4F83],
+ ["A8D5",0x4F70],
+ ["A8D6",0x4F75],
["A8D7",0x4F88],
- ["CBBA",0x4F89],
- ["A8D2",0x4F8B],
- ["A8CD",0x4F8D],
+ ["A8D8",0x4F69],
+ ["A8D9",0x4F7B],
+ ["A8DA",0x4F96],
+ ["A8DB",0x4F7E],
["A8DC",0x4F8F],
- ["CBC4",0x4F90],
["A8DD",0x4F91],
- ["CBC8",0x4F92],
- ["CBC6",0x4F94],
- ["CBCA",0x4F95],
- ["A8DA",0x4F96],
- ["CBBE",0x4F97],
- ["CBB2",0x4F98],
- ["CBC0",0x4F9A],
- ["A8D1",0x4F9B],
- ["CBC5",0x4F9C],
- ["A8CC",0x4F9D],
- ["CBC7",0x4F9E],
- ["AB56",0x4FAE],
- ["AB4A",0x4FAF],
- ["CDE0",0x4FB2],
- ["CDE8",0x4FB3],
- ["AB49",0x4FB5],
- ["AB51",0x4FB6],
- ["AB5D",0x4FB7],
- ["CDEE",0x4FB9],
- ["CDEC",0x4FBA],
- ["CDE7",0x4FBB],
- ["AB4B",0x4FBF],
- ["CDED",0x4FC0],
- ["CDE3",0x4FC1],
- ["AB59",0x4FC2],
- ["AB50",0x4FC3],
- ["AB58",0x4FC4],
- ["CDDE",0x4FC5],
- ["CDEA",0x4FC7],
- ["CDE1",0x4FC9],
- ["AB54",0x4FCA],
- ["CDE2",0x4FCB],
- ["CDDD",0x4FCD],
- ["AB5B",0x4FCE],
- ["AB4E",0x4FCF],
- ["AB57",0x4FD0],
- ["AB4D",0x4FD1],
- ["CDDF",0x4FD3],
- ["CDE4",0x4FD4],
- ["CDEB",0x4FD6],
- ["AB55",0x4FD7],
- ["AB52",0x4FD8],
- ["CDE6",0x4FD9],
- ["AB5A",0x4FDA],
- ["CDE9",0x4FDB],
- ["CDE5",0x4FDC],
- ["AB4F",0x4FDD],
- ["AB5C",0x4FDE],
- ["AB53",0x4FDF],
- ["AB4C",0x4FE0],
- ["AB48",0x4FE1],
- ["CDEF",0x4FEC],
- ["ADD7",0x4FEE],
- ["ADC1",0x4FEF],
- ["ADD1",0x4FF1],
- ["ADD6",0x4FF3],
- ["D0D0",0x4FF4],
- ["D0CF",0x4FF5],
- ["D0D4",0x4FF6],
- ["D0D5",0x4FF7],
- ["ADC4",0x4FF8],
- ["ADCD",0x4FFA],
- ["ADDA",0x4FFE],
- ["ADCE",0x5000],
- ["D0C9",0x5005],
- ["ADC7",0x5006],
- ["D0CA",0x5007],
- ["ADDC",0x5009],
- ["ADD3",0x500B],
- ["ADBE",0x500C],
- ["ADBF",0x500D],
- ["D0DD",0x500E],
- ["B0BF",0x500F],
- ["ADCC",0x5011],
- ["ADCB",0x5012],
- ["D0CB",0x5013],
- ["ADCF",0x5014],
- ["D45B",0x5015],
- ["ADC6",0x5016],
- ["D0D6",0x5017],
- ["ADD5",0x5018],
- ["ADD4",0x5019],
- ["ADCA",0x501A],
- ["D0CE",0x501B],
- ["D0D7",0x501C],
- ["D0C8",0x501E],
- ["ADC9",0x501F],
- ["D0D8",0x5020],
- ["ADD2",0x5021],
- ["D0CC",0x5022],
- ["ADC0",0x5023],
- ["ADC3",0x5025],
- ["ADC2",0x5026],
- ["D0D9",0x5027],
- ["ADD0",0x5028],
- ["ADC5",0x5029],
- ["ADD9",0x502A],
- ["ADDB",0x502B],
- ["D0D3",0x502C],
- ["ADD8",0x502D],
- ["D0DB",0x502F],
- ["D0CD",0x5030],
- ["D0DC",0x5031],
- ["D0D1",0x5033],
- ["D0DA",0x5035],
- ["D0D2",0x5037],
- ["ADC8",0x503C],
- ["D463",0x5040],
- ["D457",0x5041],
- ["B0B3",0x5043],
- ["D45C",0x5045],
- ["D462",0x5046],
- ["B0B2",0x5047],
- ["D455",0x5048],
- ["B0B6",0x5049],
- ["D459",0x504A],
- ["D452",0x504B],
- ["B0B4",0x504C],
- ["D456",0x504D],
- ["B0B9",0x504E],
- ["B0BE",0x504F],
- ["D467",0x5051],
- ["D451",0x5053],
- ["B0BA",0x5055],
- ["D466",0x5057],
- ["B0B5",0x505A],
- ["D458",0x505B],
- ["B0B1",0x505C],
- ["D453",0x505D],
- ["D44F",0x505E],
- ["D45D",0x505F],
- ["D450",0x5060],
- ["D44E",0x5061],
- ["D45A",0x5062],
- ["D460",0x5063],
- ["D461",0x5064],
- ["B0B7",0x5065],
- ["D85B",0x5068],
- ["D45E",0x5069],
- ["D44D",0x506A],
- ["D45F",0x506B],
- ["B0C1",0x506D],
- ["D464",0x506E],
- ["B0C0",0x506F],
- ["D44C",0x5070],
- ["D454",0x5072],
- ["D465",0x5073],
- ["B0BC",0x5074],
- ["B0BB",0x5075],
- ["B0B8",0x5076],
- ["B0BD",0x5077],
- ["B0AF",0x507A],
- ["B0B0",0x507D],
- ["B3C8",0x5080],
- ["D85E",0x5082],
- ["D857",0x5083],
- ["B3C5",0x5085],
- ["D85F",0x5087],
- ["D855",0x508B],
- ["D858",0x508C],
- ["B3C4",0x508D],
- ["D859",0x508E],
- ["B3C7",0x5091],
- ["D85D",0x5092],
- ["D853",0x5094],
- ["D852",0x5095],
- ["B3C9",0x5096],
- ["B3CA",0x5098],
- ["B3C6",0x5099],
- ["B3CB",0x509A],
- ["D851",0x509B],
- ["D85C",0x509C],
- ["D85A",0x509D],
- ["D854",0x509E],
- ["B3C3",0x50A2],
- ["D856",0x50A3],
- ["B6CA",0x50AC],
- ["B6C4",0x50AD],
- ["DCB7",0x50AE],
- ["B6CD",0x50AF],
- ["DCBD",0x50B0],
- ["DCC0",0x50B1],
- ["B6C6",0x50B2],
- ["B6C7",0x50B3],
- ["DCBA",0x50B4],
- ["B6C5",0x50B5],
- ["DCC3",0x50B6],
- ["B6CB",0x50B7],
- ["DCC4",0x50B8],
- ["DCBF",0x50BA],
- ["B6CC",0x50BB],
- ["DCB4",0x50BD],
- ["B6C9",0x50BE],
- ["DCB5",0x50BF],
- ["DCBE",0x50C1],
- ["DCBC",0x50C2],
- ["DCB8",0x50C4],
- ["B6C8",0x50C5],
- ["DCB6",0x50C6],
- ["B6CE",0x50C7],
- ["DCBB",0x50C8],
- ["DCC2",0x50C9],
- ["DCB9",0x50CA],
- ["DCC1",0x50CB],
- ["B9B6",0x50CE],
- ["B9B3",0x50CF],
- ["B9B4",0x50D1],
- ["E0F9",0x50D3],
- ["E0F1",0x50D4],
- ["B9B2",0x50D5],
- ["B9AF",0x50D6],
- ["E0F2",0x50D7],
- ["B9B1",0x50DA],
- ["E0F5",0x50DB],
- ["E0F7",0x50DD],
- ["E0FE",0x50E0],
- ["E0FD",0x50E3],
- ["E0F8",0x50E4],
- ["B9AE",0x50E5],
- ["E0F0",0x50E6],
- ["B9AC",0x50E7],
- ["E0F3",0x50E8],
- ["B9B7",0x50E9],
- ["E0F6",0x50EA],
- ["E0FA",0x50EC],
- ["B9B0",0x50ED],
- ["B9AD",0x50EE],
- ["E0FC",0x50EF],
- ["E0FB",0x50F0],
- ["B9B5",0x50F1],
- ["E0F4",0x50F3],
- ["BBF8",0x50F5],
- ["E4EC",0x50F6],
- ["E4E9",0x50F8],
- ["BBF9",0x50F9],
- ["BBF7",0x50FB],
- ["E4F0",0x50FD],
- ["E4ED",0x50FE],
- ["E4E6",0x50FF],
- ["BBF6",0x5100],
- ["BBFA",0x5102],
- ["E4E7",0x5103],
- ["BBF5",0x5104],
- ["BBFD",0x5105],
- ["E4EA",0x5106],
- ["E4EB",0x5107],
- ["BBFB",0x5108],
- ["BBFC",0x5109],
- ["E4F1",0x510A],
- ["E4EE",0x510B],
- ["E4EF",0x510C],
- ["BEAA",0x5110],
- ["E8F8",0x5111],
- ["BEA7",0x5112],
- ["E8F5",0x5113],
- ["BEA9",0x5114],
- ["BEAB",0x5115],
- ["E8F6",0x5117],
- ["BEA8",0x5118],
- ["E8F7",0x511A],
- ["E8F4",0x511C],
- ["C076",0x511F],
- ["ECBD",0x5120],
- ["C077",0x5121],
- ["ECBB",0x5122],
- ["ECBC",0x5124],
- ["ECBA",0x5125],
- ["ECB9",0x5126],
- ["ECBE",0x5129],
- ["C075",0x512A],
- ["EFB8",0x512D],
- ["EFB9",0x512E],
- ["E4E8",0x5130],
- ["EFB7",0x5131],
- ["C078",0x5132],
- ["C35F",0x5133],
- ["F1EB",0x5134],
- ["F1EC",0x5135],
- ["C4D7",0x5137],
- ["C4D8",0x5138],
- ["F5C1",0x5139],
- ["F5C0",0x513A],
- ["C56C",0x513B],
- ["C56B",0x513C],
- ["F7D0",0x513D],
- ["A449",0x513F],
- ["A461",0x5140],
- ["A4B9",0x5141],
- ["A4B8",0x5143],
- ["A553",0x5144],
- ["A552",0x5145],
- ["A5FC",0x5146],
- ["A5FB",0x5147],
- ["A5FD",0x5148],
- ["A5FA",0x5149],
- ["A74A",0x514B],
- ["A749",0x514C],
- ["A74B",0x514D],
- ["A8E0",0x5152],
+ ["A8DE",0x4F7A],
["A8DF",0x5154],
+ ["A8E0",0x5152],
["A8E1",0x5155],
- ["AB5E",0x5157],
- ["A259",0x5159],
- ["D0DE",0x515A],
- ["A25A",0x515B],
- ["B0C2",0x515C],
- ["A25C",0x515D],
- ["A25B",0x515E],
- ["D860",0x515F],
- ["A25D",0x5161],
- ["B9B8",0x5162],
- ["A25E",0x5163],
- ["A44A",0x5165],
- ["A4BA",0x5167],
- ["A5FE",0x5168],
["A8E2",0x5169],
- ["A44B",0x516B],
- ["A4BD",0x516C],
- ["A4BB",0x516D],
- ["A4BC",0x516E],
- ["A640",0x5171],
- ["A74C",0x5175],
- ["A8E4",0x5176],
["A8E3",0x5177],
+ ["A8E4",0x5176],
["A8E5",0x5178],
- ["ADDD",0x517C],
- ["BEAC",0x5180],
- ["C94E",0x5187],
- ["A554",0x5189],
- ["A555",0x518A],
- ["A641",0x518D],
- ["CA6A",0x518F],
- ["AB60",0x5191],
- ["AB5F",0x5192],
- ["D0E0",0x5193],
- ["D0DF",0x5194],
- ["B0C3",0x5195],
- ["A4BE",0x5197],
- ["C955",0x5198],
- ["CBCD",0x519E],
- ["AB61",0x51A0],
- ["ADE0",0x51A2],
- ["ADDE",0x51A4],
- ["ADDF",0x51A5],
- ["BEAD",0x51AA],
- ["A556",0x51AC],
- ["A642",0x51B0],
- ["C9BC",0x51B1],
- ["A74D",0x51B6],
- ["A74E",0x51B7],
- ["CA6B",0x51B9],
- ["CBCE",0x51BC],
["A8E6",0x51BD],
- ["CBCF",0x51BE],
- ["D0E2",0x51C4],
- ["D0E3",0x51C5],
- ["ADE3",0x51C6],
- ["D0E4",0x51C8],
- ["D0E1",0x51CA],
- ["ADE4",0x51CB],
- ["ADE2",0x51CC],
- ["ADE1",0x51CD],
- ["D0E5",0x51CE],
- ["D468",0x51D0],
- ["D861",0x51D4],
- ["DCC5",0x51D7],
- ["E140",0x51D8],
- ["BBFE",0x51DC],
- ["BEAE",0x51DD],
- ["E8F9",0x51DE],
- ["A44C",0x51E0],
- ["A45A",0x51E1],
- ["B0C4",0x51F0],
- ["B3CD",0x51F1],
- ["B9B9",0x51F3],
- ["C942",0x51F5],
- ["A4BF",0x51F6],
- ["A559",0x51F8],
- ["A557",0x51F9],
- ["A558",0x51FA],
["A8E7",0x51FD],
- ["A44D",0x5200],
- ["A44E",0x5201],
- ["A462",0x5203],
- ["A4C0",0x5206],
- ["A4C1",0x5207],
- ["A4C2",0x5208],
- ["C9BE",0x5209],
- ["A55A",0x520A],
- ["C96B",0x520C],
- ["A646",0x520E],
- ["C9BF",0x5210],
- ["A644",0x5211],
- ["A645",0x5212],
- ["C9BD",0x5213],
- ["A647",0x5216],
- ["A643",0x5217],
- ["CA6C",0x521C],
- ["AAEC",0x521D],
- ["CA6D",0x521E],
- ["CA6E",0x5221],
- ["A750",0x5224],
- ["A74F",0x5225],
- ["A753",0x5228],
- ["A751",0x5229],
- ["A752",0x522A],
- ["A8ED",0x522E],
- ["A8EC",0x5230],
- ["CBD4",0x5231],
- ["CBD1",0x5232],
- ["CBD2",0x5233],
- ["CBD0",0x5235],
- ["A8EE",0x5236],
- ["A8EA",0x5237],
+ ["A8E8",0x523B],
["A8E9",0x5238],
+ ["A8EA",0x5237],
["A8EB",0x523A],
- ["A8E8",0x523B],
+ ["A8EC",0x5230],
+ ["A8ED",0x522E],
+ ["A8EE",0x5236],
["A8EF",0x5241],
- ["AB63",0x5243],
- ["CDF0",0x5244],
- ["CBD3",0x5246],
- ["AB68",0x5247],
- ["CDF1",0x5249],
- ["AB64",0x524A],
- ["AB67",0x524B],
- ["AB66",0x524C],
- ["AB65",0x524D],
- ["AB62",0x524E],
- ["D0E8",0x5252],
- ["ADE7",0x5254],
- ["D0EB",0x5255],
- ["ADE5",0x5256],
- ["D0E7",0x525A],
- ["ADE8",0x525B],
- ["ADE6",0x525C],
- ["ADE9",0x525D],
- ["D0E9",0x525E],
- ["D0EA",0x525F],
- ["D0E6",0x5261],
- ["D0EC",0x5262],
- ["B3D1",0x5269],
- ["B0C5",0x526A],
- ["D469",0x526B],
- ["D46B",0x526C],
- ["D46A",0x526D],
- ["D46C",0x526E],
- ["B0C6",0x526F],
- ["B3CE",0x5272],
- ["B3CF",0x5274],
- ["B3D0",0x5275],
- ["B6D0",0x5277],
- ["DCC7",0x5278],
- ["DCC6",0x527A],
- ["DCC8",0x527B],
- ["DCC9",0x527C],
- ["B6D1",0x527D],
- ["B6CF",0x527F],
- ["E141",0x5280],
- ["E142",0x5281],
- ["B9BB",0x5282],
- ["B9BA",0x5283],
- ["E35A",0x5284],
- ["BC40",0x5287],
- ["BC41",0x5288],
- ["BC42",0x5289],
- ["BC44",0x528A],
- ["E4F2",0x528B],
- ["E4F3",0x528C],
- ["BC43",0x528D],
- ["BEAF",0x5291],
- ["BEB0",0x5293],
- ["F1ED",0x5296],
- ["F5C3",0x5297],
- ["F5C2",0x5298],
- ["F7D1",0x5299],
- ["A44F",0x529B],
- ["A55C",0x529F],
- ["A55B",0x52A0],
- ["A648",0x52A3],
- ["C9C0",0x52A6],
- ["A755",0x52A9],
- ["A756",0x52AA],
- ["A754",0x52AB],
- ["A757",0x52AC],
- ["CA6F",0x52AD],
- ["CA70",0x52AE],
- ["A8F1",0x52BB],
- ["CBD5",0x52BC],
["A8F0",0x52BE],
- ["CDF2",0x52C0],
- ["AB6C",0x52C1],
- ["CDF3",0x52C2],
- ["AB6B",0x52C3],
- ["AB69",0x52C7],
- ["AB6A",0x52C9],
- ["D0ED",0x52CD],
- ["B0C7",0x52D2],
- ["D46E",0x52D3],
- ["B0CA",0x52D5],
- ["D46D",0x52D6],
- ["B1E5",0x52D7],
- ["B0C9",0x52D8],
- ["B0C8",0x52D9],
- ["B3D4",0x52DB],
- ["B3D3",0x52DD],
- ["B3D2",0x52DE],
- ["B6D2",0x52DF],
- ["B6D5",0x52E2],
- ["B6D6",0x52E3],
- ["B6D4",0x52E4],
- ["B6D3",0x52E6],
- ["E143",0x52E9],
- ["E144",0x52EB],
- ["E4F5",0x52EF],
- ["BC45",0x52F0],
- ["E4F4",0x52F1],
- ["BEB1",0x52F3],
- ["ECBF",0x52F4],
- ["C079",0x52F5],
- ["F1EE",0x52F7],
- ["C455",0x52F8],
- ["A463",0x52FA],
- ["A4C3",0x52FB],
- ["C956",0x52FC],
- ["A4C4",0x52FE],
- ["A4C5",0x52FF],
- ["A55D",0x5305],
- ["A55E",0x5306],
- ["A649",0x5308],
- ["CA71",0x5309],
- ["CBD6",0x530A],
- ["CBD7",0x530B],
- ["AB6D",0x530D],
- ["D0EE",0x530E],
- ["B0CC",0x530F],
- ["B0CB",0x5310],
- ["D863",0x5311],
- ["D862",0x5312],
- ["A450",0x5315],
- ["A4C6",0x5316],
- ["A55F",0x5317],
- ["B0CD",0x5319],
- ["C943",0x531A],
- ["C96C",0x531C],
- ["A560",0x531D],
- ["C9C2",0x531F],
- ["A64B",0x5320],
- ["A64A",0x5321],
- ["C9C1",0x5322],
- ["A758",0x5323],
- ["ADEA",0x532A],
- ["D46F",0x532D],
- ["B6D7",0x532F],
- ["E145",0x5330],
- ["B9BC",0x5331],
- ["E8FA",0x5334],
- ["F3FD",0x5337],
- ["A4C7",0x5339],
- ["CBD8",0x533C],
- ["CDF4",0x533D],
- ["B0D0",0x533E],
- ["B0CE",0x533F],
- ["B0CF",0x5340],
- ["A451",0x5341],
- ["A464",0x5343],
- ["A2CD",0x5344],
- ["A4CA",0x5345],
- ["A4C9",0x5347],
- ["A4C8",0x5348],
- ["A563",0x5349],
- ["A562",0x534A],
- ["C96D",0x534C],
- ["C9C3",0x534D],
- ["A8F5",0x5351],
+ ["A8F1",0x52BB],
["A8F2",0x5352],
- ["A8F4",0x5353],
["A8F3",0x5354],
- ["AB6E",0x5357],
- ["B3D5",0x535A],
- ["A452",0x535C],
- ["A4CB",0x535E],
- ["A565",0x5360],
- ["A564",0x5361],
- ["CA72",0x5363],
+ ["A8F4",0x5353],
+ ["A8F5",0x5351],
["A8F6",0x5366],
- ["C957",0x536C],
- ["A567",0x536E],
- ["A566",0x536F],
- ["A64C",0x5370],
- ["A64D",0x5371],
- ["CA73",0x5372],
- ["A759",0x5373],
- ["A75A",0x5375],
["A8F7",0x5377],
["A8F8",0x5378],
["A8F9",0x5379],
- ["AB6F",0x537B],
- ["CDF5",0x537C],
- ["ADEB",0x537F],
- ["C944",0x5382],
- ["A4CC",0x5384],
- ["C9C4",0x538A],
- ["CA74",0x538E],
- ["CA75",0x538F],
- ["CBD9",0x5392],
- ["CBDA",0x5394],
- ["CDF7",0x5396],
- ["CDF6",0x5397],
- ["CDF9",0x5398],
- ["CDF8",0x5399],
- ["AB70",0x539A],
- ["D470",0x539C],
- ["ADED",0x539D],
- ["D0EF",0x539E],
- ["ADEC",0x539F],
- ["D864",0x53A4],
- ["B3D6",0x53A5],
- ["D865",0x53A7],
- ["E146",0x53AC],
- ["B9BD",0x53AD],
- ["BC46",0x53B2],
- ["F1EF",0x53B4],
- ["C958",0x53B9],
- ["A568",0x53BB],
- ["B0D1",0x53C3],
- ["A453",0x53C8],
- ["A465",0x53C9],
- ["A4CE",0x53CA],
- ["A4CD",0x53CB],
- ["A4CF",0x53CD],
- ["A8FB",0x53D4],
["A8FA",0x53D6],
+ ["A8FB",0x53D4],
["A8FC",0x53D7],
- ["AB71",0x53DB],
- ["ADEE",0x53DF],
- ["E8FB",0x53E1],
- ["C24F",0x53E2],
- ["A466",0x53E3],
- ["A56A",0x53E4],
- ["A579",0x53E5],
- ["A574",0x53E6],
- ["A56F",0x53E8],
- ["A56E",0x53E9],
- ["A575",0x53EA],
- ["A573",0x53EB],
- ["A56C",0x53EC],
- ["A57A",0x53ED],
- ["A56D",0x53EE],
- ["A569",0x53EF],
- ["A578",0x53F0],
- ["A577",0x53F1],
- ["A576",0x53F2],
- ["A56B",0x53F3],
- ["A572",0x53F5],
- ["A571",0x53F8],
- ["A57B",0x53FB],
- ["A570",0x53FC],
- ["A653",0x5401],
- ["A659",0x5403],
- ["A655",0x5404],
- ["A65B",0x5406],
- ["C9C5",0x5407],
- ["A658",0x5408],
- ["A64E",0x5409],
- ["A651",0x540A],
- ["A654",0x540B],
- ["A650",0x540C],
- ["A657",0x540D],
- ["A65A",0x540E],
- ["A64F",0x540F],
- ["A652",0x5410],
- ["A656",0x5411],
- ["A65C",0x5412],
- ["CA7E",0x5418],
- ["CA7B",0x5419],
- ["A767",0x541B],
- ["CA7C",0x541C],
- ["A75B",0x541D],
- ["A75D",0x541E],
- ["A775",0x541F],
- ["A770",0x5420],
- ["CAA5",0x5424],
- ["CA7D",0x5425],
- ["A75F",0x5426],
- ["A761",0x5427],
- ["CAA4",0x5428],
- ["A768",0x5429],
- ["CA78",0x542A],
- ["A774",0x542B],
- ["A776",0x542C],
- ["A75C",0x542D],
- ["A76D",0x542E],
- ["CA76",0x5430],
- ["A773",0x5431],
- ["A764",0x5433],
- ["A76E",0x5435],
- ["A76F",0x5436],
- ["CA77",0x5437],
- ["A76C",0x5438],
- ["A76A",0x5439],
- ["A76B",0x543B],
- ["A771",0x543C],
- ["CAA1",0x543D],
- ["A75E",0x543E],
- ["A772",0x5440],
- ["CAA3",0x5441],
- ["A766",0x5442],
- ["A763",0x5443],
- ["CA7A",0x5445],
- ["A762",0x5446],
- ["CAA6",0x5447],
- ["A765",0x5448],
- ["A769",0x544A],
- ["A760",0x544E],
- ["CAA2",0x544F],
- ["CA79",0x5454],
- ["CBEB",0x5460],
- ["CBEA",0x5461],
- ["A94F",0x5462],
- ["CBED",0x5463],
- ["CBEF",0x5464],
- ["CBE4",0x5465],
- ["CBE7",0x5466],
- ["CBEE",0x5467],
- ["A950",0x5468],
- ["CBE1",0x546B],
- ["CBE5",0x546C],
- ["CBE9",0x546F],
- ["CE49",0x5470],
- ["A94B",0x5471],
- ["CE4D",0x5472],
["A8FD",0x5473],
- ["CBE6",0x5474],
["A8FE",0x5475],
- ["A94C",0x5476],
- ["A945",0x5477],
+ ["A940",0x5496],
["A941",0x5478],
- ["CBE2",0x547A],
- ["A944",0x547B],
- ["A949",0x547C],
- ["A952",0x547D],
- ["CBE3",0x547E],
- ["CBDC",0x547F],
+ ["A942",0x5495],
["A943",0x5480],
- ["CBDD",0x5481],
- ["CBDF",0x5482],
+ ["A944",0x547B],
+ ["A945",0x5477],
["A946",0x5484],
+ ["A947",0x5492],
["A948",0x5486],
- ["CBDB",0x5487],
- ["CBE0",0x5488],
- ["A951",0x548B],
- ["A94D",0x548C],
- ["CBE8",0x548D],
- ["A953",0x548E],
+ ["A949",0x547C],
["A94A",0x5490],
- ["CBDE",0x5491],
- ["A947",0x5492],
- ["A942",0x5495],
- ["A940",0x5496],
- ["CBEC",0x5498],
+ ["A94B",0x5471],
+ ["A94C",0x5476],
+ ["A94D",0x548C],
["A94E",0x549A],
- ["CE48",0x54A0],
- ["CDFB",0x54A1],
- ["CE4B",0x54A2],
- ["CDFD",0x54A5],
- ["AB78",0x54A6],
- ["ABA8",0x54A7],
- ["AB74",0x54A8],
- ["ABA7",0x54A9],
- ["AB7D",0x54AA],
- ["ABA4",0x54AB],
+ ["A94F",0x5462],
+ ["A950",0x5468],
+ ["A951",0x548B],
+ ["A952",0x547D],
+ ["A953",0x548E],
+ ["A954",0x56FA],
+ ["A955",0x5783],
+ ["A956",0x5777],
+ ["A957",0x576A],
+ ["A958",0x5769],
+ ["A959",0x5761],
+ ["A95A",0x5766],
+ ["A95B",0x5764],
+ ["A95C",0x577C],
+ ["A95D",0x591C],
+ ["A95E",0x5949],
+ ["A95F",0x5947],
+ ["A960",0x5948],
+ ["A961",0x5944],
+ ["A962",0x5954],
+ ["A963",0x59BE],
+ ["A964",0x59BB],
+ ["A965",0x59D4],
+ ["A966",0x59B9],
+ ["A967",0x59AE],
+ ["A968",0x59D1],
+ ["A969",0x59C6],
+ ["A96A",0x59D0],
+ ["A96B",0x59CD],
+ ["A96C",0x59CB],
+ ["A96D",0x59D3],
+ ["A96E",0x59CA],
+ ["A96F",0x59AF],
+ ["A970",0x59B3],
+ ["A971",0x59D2],
+ ["A972",0x59C5],
+ ["A973",0x5B5F],
+ ["A974",0x5B64],
+ ["A975",0x5B63],
+ ["A976",0x5B97],
+ ["A977",0x5B9A],
+ ["A978",0x5B98],
+ ["A979",0x5B9C],
+ ["A97A",0x5B99],
+ ["A97B",0x5B9B],
+ ["A97C",0x5C1A],
+ ["A97D",0x5C48],
+ ["A97E",0x5C45],
+ ["A9A1",0x5C46],
+ ["A9A2",0x5CB7],
+ ["A9A3",0x5CA1],
+ ["A9A4",0x5CB8],
+ ["A9A5",0x5CA9],
+ ["A9A6",0x5CAB],
+ ["A9A7",0x5CB1],
+ ["A9A8",0x5CB3],
+ ["A9A9",0x5E18],
+ ["A9AA",0x5E1A],
+ ["A9AB",0x5E16],
+ ["A9AC",0x5E15],
+ ["A9AD",0x5E1B],
+ ["A9AE",0x5E11],
+ ["A9AF",0x5E78],
+ ["A9B0",0x5E9A],
+ ["A9B1",0x5E97],
+ ["A9B2",0x5E9C],
+ ["A9B3",0x5E95],
+ ["A9B4",0x5E96],
+ ["A9B5",0x5EF6],
+ ["A9B6",0x5F26],
+ ["A9B7",0x5F27],
+ ["A9B8",0x5F29],
+ ["A9B9",0x5F80],
+ ["A9BA",0x5F81],
+ ["A9BB",0x5F7F],
+ ["A9BC",0x5F7C],
+ ["A9BD",0x5FDD],
+ ["A9BE",0x5FE0],
+ ["A9BF",0x5FFD],
+ ["A9C0",0x5FF5],
+ ["A9C1",0x5FFF],
+ ["A9C2",0x600F],
+ ["A9C3",0x6014],
+ ["A9C4",0x602F],
+ ["A9C5",0x6035],
+ ["A9C6",0x6016],
+ ["A9C7",0x602A],
+ ["A9C8",0x6015],
+ ["A9C9",0x6021],
+ ["A9CA",0x6027],
+ ["A9CB",0x6029],
+ ["A9CC",0x602B],
+ ["A9CD",0x601B],
+ ["A9CE",0x6216],
+ ["A9CF",0x6215],
+ ["A9D0",0x623F],
+ ["A9D1",0x623E],
+ ["A9D2",0x6240],
+ ["A9D3",0x627F],
+ ["A9D4",0x62C9],
+ ["A9D5",0x62CC],
+ ["A9D6",0x62C4],
+ ["A9D7",0x62BF],
+ ["A9D8",0x62C2],
+ ["A9D9",0x62B9],
+ ["A9DA",0x62D2],
+ ["A9DB",0x62DB],
+ ["A9DC",0x62AB],
+ ["A9DD",0x62D3],
+ ["A9DE",0x62D4],
+ ["A9DF",0x62CB],
+ ["A9E0",0x62C8],
+ ["A9E1",0x62A8],
+ ["A9E2",0x62BD],
+ ["A9E3",0x62BC],
+ ["A9E4",0x62D0],
+ ["A9E5",0x62D9],
+ ["A9E6",0x62C7],
+ ["A9E7",0x62CD],
+ ["A9E8",0x62B5],
+ ["A9E9",0x62DA],
+ ["A9EA",0x62B1],
+ ["A9EB",0x62D8],
+ ["A9EC",0x62D6],
+ ["A9ED",0x62D7],
+ ["A9EE",0x62C6],
+ ["A9EF",0x62AC],
+ ["A9F0",0x62CE],
+ ["A9F1",0x653E],
+ ["A9F2",0x65A7],
+ ["A9F3",0x65BC],
+ ["A9F4",0x65FA],
+ ["A9F5",0x6614],
+ ["A9F6",0x6613],
+ ["A9F7",0x660C],
+ ["A9F8",0x6606],
+ ["A9F9",0x6602],
+ ["A9FA",0x660E],
+ ["A9FB",0x6600],
+ ["A9FC",0x660F],
+ ["A9FD",0x6615],
+ ["A9FE",0x660A],
+ ["AA40",0x6607],
+ ["AA41",0x670D],
+ ["AA42",0x670B],
+ ["AA43",0x676D],
+ ["AA44",0x678B],
+ ["AA45",0x6795],
+ ["AA46",0x6771],
+ ["AA47",0x679C],
+ ["AA48",0x6773],
+ ["AA49",0x6777],
+ ["AA4A",0x6787],
+ ["AA4B",0x679D],
+ ["AA4C",0x6797],
+ ["AA4D",0x676F],
+ ["AA4E",0x6770],
+ ["AA4F",0x677F],
+ ["AA50",0x6789],
+ ["AA51",0x677E],
+ ["AA52",0x6790],
+ ["AA53",0x6775],
+ ["AA54",0x679A],
+ ["AA55",0x6793],
+ ["AA56",0x677C],
+ ["AA57",0x676A],
+ ["AA58",0x6772],
+ ["AA59",0x6B23],
+ ["AA5A",0x6B66],
+ ["AA5B",0x6B67],
+ ["AA5C",0x6B7F],
+ ["AA5D",0x6C13],
+ ["AA5E",0x6C1B],
+ ["AA5F",0x6CE3],
+ ["AA60",0x6CE8],
+ ["AA61",0x6CF3],
+ ["AA62",0x6CB1],
+ ["AA63",0x6CCC],
+ ["AA64",0x6CE5],
+ ["AA65",0x6CB3],
+ ["AA66",0x6CBD],
+ ["AA67",0x6CBE],
+ ["AA68",0x6CBC],
+ ["AA69",0x6CE2],
+ ["AA6A",0x6CAB],
+ ["AA6B",0x6CD5],
+ ["AA6C",0x6CD3],
+ ["AA6D",0x6CB8],
+ ["AA6E",0x6CC4],
+ ["AA6F",0x6CB9],
+ ["AA70",0x6CC1],
+ ["AA71",0x6CAE],
+ ["AA72",0x6CD7],
+ ["AA73",0x6CC5],
+ ["AA74",0x6CF1],
+ ["AA75",0x6CBF],
+ ["AA76",0x6CBB],
+ ["AA77",0x6CE1],
+ ["AA78",0x6CDB],
+ ["AA79",0x6CCA],
+ ["AA7A",0x6CAC],
+ ["AA7B",0x6CEF],
+ ["AA7C",0x6CDC],
+ ["AA7D",0x6CD6],
+ ["AA7E",0x6CE0],
+ ["AAA1",0x7095],
+ ["AAA2",0x708E],
+ ["AAA3",0x7092],
+ ["AAA4",0x708A],
+ ["AAA5",0x7099],
+ ["AAA6",0x722C],
+ ["AAA7",0x722D],
+ ["AAA8",0x7238],
+ ["AAA9",0x7248],
+ ["AAAA",0x7267],
+ ["AAAB",0x7269],
+ ["AAAC",0x72C0],
+ ["AAAD",0x72CE],
+ ["AAAE",0x72D9],
+ ["AAAF",0x72D7],
+ ["AAB0",0x72D0],
+ ["AAB1",0x73A9],
+ ["AAB2",0x73A8],
+ ["AAB3",0x739F],
+ ["AAB4",0x73AB],
+ ["AAB5",0x73A5],
+ ["AAB6",0x753D],
+ ["AAB7",0x759D],
+ ["AAB8",0x7599],
+ ["AAB9",0x759A],
+ ["AABA",0x7684],
+ ["AABB",0x76C2],
+ ["AABC",0x76F2],
+ ["AABD",0x76F4],
+ ["AABE",0x77E5],
+ ["AABF",0x77FD],
+ ["AAC0",0x793E],
+ ["AAC1",0x7940],
+ ["AAC2",0x7941],
+ ["AAC3",0x79C9],
+ ["AAC4",0x79C8],
+ ["AAC5",0x7A7A],
+ ["AAC6",0x7A79],
+ ["AAC7",0x7AFA],
+ ["AAC8",0x7CFE],
+ ["AAC9",0x7F54],
+ ["AACA",0x7F8C],
+ ["AACB",0x7F8B],
+ ["AACC",0x8005],
+ ["AACD",0x80BA],
+ ["AACE",0x80A5],
+ ["AACF",0x80A2],
+ ["AAD0",0x80B1],
+ ["AAD1",0x80A1],
+ ["AAD2",0x80AB],
+ ["AAD3",0x80A9],
+ ["AAD4",0x80B4],
+ ["AAD5",0x80AA],
+ ["AAD6",0x80AF],
+ ["AAD7",0x81E5],
+ ["AAD8",0x81FE],
+ ["AAD9",0x820D],
+ ["AADA",0x82B3],
+ ["AADB",0x829D],
+ ["AADC",0x8299],
+ ["AADD",0x82AD],
+ ["AADE",0x82BD],
+ ["AADF",0x829F],
+ ["AAE0",0x82B9],
+ ["AAE1",0x82B1],
+ ["AAE2",0x82AC],
+ ["AAE3",0x82A5],
+ ["AAE4",0x82AF],
+ ["AAE5",0x82B8],
+ ["AAE6",0x82A3],
+ ["AAE7",0x82B0],
+ ["AAE8",0x82BE],
+ ["AAE9",0x82B7],
+ ["AAEA",0x864E],
+ ["AAEB",0x8671],
+ ["AAEC",0x521D],
+ ["AAED",0x8868],
+ ["AAEE",0x8ECB],
+ ["AAEF",0x8FCE],
+ ["AAF0",0x8FD4],
+ ["AAF1",0x8FD1],
+ ["AAF2",0x90B5],
+ ["AAF3",0x90B8],
+ ["AAF4",0x90B1],
+ ["AAF5",0x90B6],
+ ["AAF6",0x91C7],
+ ["AAF7",0x91D1],
+ ["AAF8",0x9577],
+ ["AAF9",0x9580],
+ ["AAFA",0x961C],
+ ["AAFB",0x9640],
+ ["AAFC",0x963F],
+ ["AAFD",0x963B],
+ ["AAFE",0x9644],
+ ["AB40",0x9642],
+ ["AB41",0x96B9],
+ ["AB42",0x96E8],
+ ["AB43",0x9752],
+ ["AB44",0x975E],
+ ["AB45",0x4E9F],
+ ["AB46",0x4EAD],
+ ["AB47",0x4EAE],
+ ["AB48",0x4FE1],
+ ["AB49",0x4FB5],
+ ["AB4A",0x4FAF],
+ ["AB4B",0x4FBF],
+ ["AB4C",0x4FE0],
+ ["AB4D",0x4FD1],
+ ["AB4E",0x4FCF],
+ ["AB4F",0x4FDD],
+ ["AB50",0x4FC3],
+ ["AB51",0x4FB6],
+ ["AB52",0x4FD8],
+ ["AB53",0x4FDF],
+ ["AB54",0x4FCA],
+ ["AB55",0x4FD7],
+ ["AB56",0x4FAE],
+ ["AB57",0x4FD0],
+ ["AB58",0x4FC4],
+ ["AB59",0x4FC2],
+ ["AB5A",0x4FDA],
+ ["AB5B",0x4FCE],
+ ["AB5C",0x4FDE],
+ ["AB5D",0x4FB7],
+ ["AB5E",0x5157],
+ ["AB5F",0x5192],
+ ["AB60",0x5191],
+ ["AB61",0x51A0],
+ ["AB62",0x524E],
+ ["AB63",0x5243],
+ ["AB64",0x524A],
+ ["AB65",0x524D],
+ ["AB66",0x524C],
+ ["AB67",0x524B],
+ ["AB68",0x5247],
+ ["AB69",0x52C7],
+ ["AB6A",0x52C9],
+ ["AB6B",0x52C3],
+ ["AB6C",0x52C1],
+ ["AB6D",0x530D],
+ ["AB6E",0x5357],
+ ["AB6F",0x537B],
+ ["AB70",0x539A],
+ ["AB71",0x53DB],
["AB72",0x54AC],
- ["CDFC",0x54AD],
- ["CE43",0x54AE],
- ["ABA3",0x54AF],
- ["CE4F",0x54B0],
- ["ABA5",0x54B1],
- ["AB79",0x54B3],
- ["CE45",0x54B6],
- ["CE42",0x54B7],
+ ["AB73",0x54C0],
+ ["AB74",0x54A8],
+ ["AB75",0x54CE],
+ ["AB76",0x54C9],
["AB77",0x54B8],
- ["CDFA",0x54BA],
- ["ABA6",0x54BB],
- ["CE4A",0x54BC],
+ ["AB78",0x54A6],
+ ["AB79",0x54B3],
+ ["AB7A",0x54C7],
+ ["AB7B",0x54C2],
["AB7C",0x54BD],
- ["CE4C",0x54BE],
- ["ABA9",0x54BF],
- ["AB73",0x54C0],
+ ["AB7D",0x54AA],
["AB7E",0x54C1],
- ["AB7B",0x54C2],
- ["CE40",0x54C3],
["ABA1",0x54C4],
- ["CE46",0x54C5],
- ["CE47",0x54C6],
- ["AB7A",0x54C7],
["ABA2",0x54C8],
- ["AB76",0x54C9],
- ["AB75",0x54CE],
- ["CDFE",0x54CF],
- ["CE44",0x54D6],
- ["CE4E",0x54DE],
- ["D144",0x54E0],
- ["ADFB",0x54E1],
- ["D0F1",0x54E2],
- ["D0F6",0x54E4],
- ["ADF4",0x54E5],
- ["AE40",0x54E6],
- ["D0F4",0x54E7],
+ ["ABA3",0x54AF],
+ ["ABA4",0x54AB],
+ ["ABA5",0x54B1],
+ ["ABA6",0x54BB],
+ ["ABA7",0x54A9],
+ ["ABA8",0x54A7],
+ ["ABA9",0x54BF],
+ ["ABAA",0x56FF],
+ ["ABAB",0x5782],
+ ["ABAC",0x578B],
+ ["ABAD",0x57A0],
+ ["ABAE",0x57A3],
+ ["ABAF",0x57A2],
+ ["ABB0",0x57CE],
+ ["ABB1",0x57AE],
+ ["ABB2",0x5793],
+ ["ABB3",0x5955],
+ ["ABB4",0x5951],
+ ["ABB5",0x594F],
+ ["ABB6",0x594E],
+ ["ABB7",0x5950],
+ ["ABB8",0x59DC],
+ ["ABB9",0x59D8],
+ ["ABBA",0x59FF],
+ ["ABBB",0x59E3],
+ ["ABBC",0x59E8],
+ ["ABBD",0x5A03],
+ ["ABBE",0x59E5],
+ ["ABBF",0x59EA],
+ ["ABC0",0x59DA],
+ ["ABC1",0x59E6],
+ ["ABC2",0x5A01],
+ ["ABC3",0x59FB],
+ ["ABC4",0x5B69],
+ ["ABC5",0x5BA3],
+ ["ABC6",0x5BA6],
+ ["ABC7",0x5BA4],
+ ["ABC8",0x5BA2],
+ ["ABC9",0x5BA5],
+ ["ABCA",0x5C01],
+ ["ABCB",0x5C4E],
+ ["ABCC",0x5C4F],
+ ["ABCD",0x5C4D],
+ ["ABCE",0x5C4B],
+ ["ABCF",0x5CD9],
+ ["ABD0",0x5CD2],
+ ["ABD1",0x5DF7],
+ ["ABD2",0x5E1D],
+ ["ABD3",0x5E25],
+ ["ABD4",0x5E1F],
+ ["ABD5",0x5E7D],
+ ["ABD6",0x5EA0],
+ ["ABD7",0x5EA6],
+ ["ABD8",0x5EFA],
+ ["ABD9",0x5F08],
+ ["ABDA",0x5F2D],
+ ["ABDB",0x5F65],
+ ["ABDC",0x5F88],
+ ["ABDD",0x5F85],
+ ["ABDE",0x5F8A],
+ ["ABDF",0x5F8B],
+ ["ABE0",0x5F87],
+ ["ABE1",0x5F8C],
+ ["ABE2",0x5F89],
+ ["ABE3",0x6012],
+ ["ABE4",0x601D],
+ ["ABE5",0x6020],
+ ["ABE6",0x6025],
+ ["ABE7",0x600E],
+ ["ABE8",0x6028],
+ ["ABE9",0x604D],
+ ["ABEA",0x6070],
+ ["ABEB",0x6068],
+ ["ABEC",0x6062],
+ ["ABED",0x6046],
+ ["ABEE",0x6043],
+ ["ABEF",0x606C],
+ ["ABF0",0x606B],
+ ["ABF1",0x606A],
+ ["ABF2",0x6064],
+ ["ABF3",0x6241],
+ ["ABF4",0x62DC],
+ ["ABF5",0x6316],
+ ["ABF6",0x6309],
+ ["ABF7",0x62FC],
+ ["ABF8",0x62ED],
+ ["ABF9",0x6301],
+ ["ABFA",0x62EE],
+ ["ABFB",0x62FD],
+ ["ABFC",0x6307],
+ ["ABFD",0x62F1],
+ ["ABFE",0x62F7],
+ ["AC40",0x62EF],
+ ["AC41",0x62EC],
+ ["AC42",0x62FE],
+ ["AC43",0x62F4],
+ ["AC44",0x6311],
+ ["AC45",0x6302],
+ ["AC46",0x653F],
+ ["AC47",0x6545],
+ ["AC48",0x65AB],
+ ["AC49",0x65BD],
+ ["AC4A",0x65E2],
+ ["AC4B",0x6625],
+ ["AC4C",0x662D],
+ ["AC4D",0x6620],
+ ["AC4E",0x6627],
+ ["AC4F",0x662F],
+ ["AC50",0x661F],
+ ["AC51",0x6628],
+ ["AC52",0x6631],
+ ["AC53",0x6624],
+ ["AC54",0x66F7],
+ ["AC55",0x67FF],
+ ["AC56",0x67D3],
+ ["AC57",0x67F1],
+ ["AC58",0x67D4],
+ ["AC59",0x67D0],
+ ["AC5A",0x67EC],
+ ["AC5B",0x67B6],
+ ["AC5C",0x67AF],
+ ["AC5D",0x67F5],
+ ["AC5E",0x67E9],
+ ["AC5F",0x67EF],
+ ["AC60",0x67C4],
+ ["AC61",0x67D1],
+ ["AC62",0x67B4],
+ ["AC63",0x67DA],
+ ["AC64",0x67E5],
+ ["AC65",0x67B8],
+ ["AC66",0x67CF],
+ ["AC67",0x67DE],
+ ["AC68",0x67F3],
+ ["AC69",0x67B0],
+ ["AC6A",0x67D9],
+ ["AC6B",0x67E2],
+ ["AC6C",0x67DD],
+ ["AC6D",0x67D2],
+ ["AC6E",0x6B6A],
+ ["AC6F",0x6B83],
+ ["AC70",0x6B86],
+ ["AC71",0x6BB5],
+ ["AC72",0x6BD2],
+ ["AC73",0x6BD7],
+ ["AC74",0x6C1F],
+ ["AC75",0x6CC9],
+ ["AC76",0x6D0B],
+ ["AC77",0x6D32],
+ ["AC78",0x6D2A],
+ ["AC79",0x6D41],
+ ["AC7A",0x6D25],
+ ["AC7B",0x6D0C],
+ ["AC7C",0x6D31],
+ ["AC7D",0x6D1E],
+ ["AC7E",0x6D17],
+ ["ACA1",0x6D3B],
+ ["ACA2",0x6D3D],
+ ["ACA3",0x6D3E],
+ ["ACA4",0x6D36],
+ ["ACA5",0x6D1B],
+ ["ACA6",0x6CF5],
+ ["ACA7",0x6D39],
+ ["ACA8",0x6D27],
+ ["ACA9",0x6D38],
+ ["ACAA",0x6D29],
+ ["ACAB",0x6D2E],
+ ["ACAC",0x6D35],
+ ["ACAD",0x6D0E],
+ ["ACAE",0x6D2B],
+ ["ACAF",0x70AB],
+ ["ACB0",0x70BA],
+ ["ACB1",0x70B3],
+ ["ACB2",0x70AC],
+ ["ACB3",0x70AF],
+ ["ACB4",0x70AD],
+ ["ACB5",0x70B8],
+ ["ACB6",0x70AE],
+ ["ACB7",0x70A4],
+ ["ACB8",0x7230],
+ ["ACB9",0x7272],
+ ["ACBA",0x726F],
+ ["ACBB",0x7274],
+ ["ACBC",0x72E9],
+ ["ACBD",0x72E0],
+ ["ACBE",0x72E1],
+ ["ACBF",0x73B7],
+ ["ACC0",0x73CA],
+ ["ACC1",0x73BB],
+ ["ACC2",0x73B2],
+ ["ACC3",0x73CD],
+ ["ACC4",0x73C0],
+ ["ACC5",0x73B3],
+ ["ACC6",0x751A],
+ ["ACC7",0x752D],
+ ["ACC8",0x754F],
+ ["ACC9",0x754C],
+ ["ACCA",0x754E],
+ ["ACCB",0x754B],
+ ["ACCC",0x75AB],
+ ["ACCD",0x75A4],
+ ["ACCE",0x75A5],
+ ["ACCF",0x75A2],
+ ["ACD0",0x75A3],
+ ["ACD1",0x7678],
+ ["ACD2",0x7686],
+ ["ACD3",0x7687],
+ ["ACD4",0x7688],
+ ["ACD5",0x76C8],
+ ["ACD6",0x76C6],
+ ["ACD7",0x76C3],
+ ["ACD8",0x76C5],
+ ["ACD9",0x7701],
+ ["ACDA",0x76F9],
+ ["ACDB",0x76F8],
+ ["ACDC",0x7709],
+ ["ACDD",0x770B],
+ ["ACDE",0x76FE],
+ ["ACDF",0x76FC],
+ ["ACE0",0x7707],
+ ["ACE1",0x77DC],
+ ["ACE2",0x7802],
+ ["ACE3",0x7814],
+ ["ACE4",0x780C],
+ ["ACE5",0x780D],
+ ["ACE6",0x7946],
+ ["ACE7",0x7949],
+ ["ACE8",0x7948],
+ ["ACE9",0x7947],
+ ["ACEA",0x79B9],
+ ["ACEB",0x79BA],
+ ["ACEC",0x79D1],
+ ["ACED",0x79D2],
+ ["ACEE",0x79CB],
+ ["ACEF",0x7A7F],
+ ["ACF0",0x7A81],
+ ["ACF1",0x7AFF],
+ ["ACF2",0x7AFD],
+ ["ACF3",0x7C7D],
+ ["ACF4",0x7D02],
+ ["ACF5",0x7D05],
+ ["ACF6",0x7D00],
+ ["ACF7",0x7D09],
+ ["ACF8",0x7D07],
+ ["ACF9",0x7D04],
+ ["ACFA",0x7D06],
+ ["ACFB",0x7F38],
+ ["ACFC",0x7F8E],
+ ["ACFD",0x7FBF],
+ ["ACFE",0x8004],
+ ["AD40",0x8010],
+ ["AD41",0x800D],
+ ["AD42",0x8011],
+ ["AD43",0x8036],
+ ["AD44",0x80D6],
+ ["AD45",0x80E5],
+ ["AD46",0x80DA],
+ ["AD47",0x80C3],
+ ["AD48",0x80C4],
+ ["AD49",0x80CC],
+ ["AD4A",0x80E1],
+ ["AD4B",0x80DB],
+ ["AD4C",0x80CE],
+ ["AD4D",0x80DE],
+ ["AD4E",0x80E4],
+ ["AD4F",0x80DD],
+ ["AD50",0x81F4],
+ ["AD51",0x8222],
+ ["AD52",0x82E7],
+ ["AD53",0x8303],
+ ["AD54",0x8305],
+ ["AD55",0x82E3],
+ ["AD56",0x82DB],
+ ["AD57",0x82E6],
+ ["AD58",0x8304],
+ ["AD59",0x82E5],
+ ["AD5A",0x8302],
+ ["AD5B",0x8309],
+ ["AD5C",0x82D2],
+ ["AD5D",0x82D7],
+ ["AD5E",0x82F1],
+ ["AD5F",0x8301],
+ ["AD60",0x82DC],
+ ["AD61",0x82D4],
+ ["AD62",0x82D1],
+ ["AD63",0x82DE],
+ ["AD64",0x82D3],
+ ["AD65",0x82DF],
+ ["AD66",0x82EF],
+ ["AD67",0x8306],
+ ["AD68",0x8650],
+ ["AD69",0x8679],
+ ["AD6A",0x867B],
+ ["AD6B",0x867A],
+ ["AD6C",0x884D],
+ ["AD6D",0x886B],
+ ["AD6E",0x8981],
+ ["AD6F",0x89D4],
+ ["AD70",0x8A08],
+ ["AD71",0x8A02],
+ ["AD72",0x8A03],
+ ["AD73",0x8C9E],
+ ["AD74",0x8CA0],
+ ["AD75",0x8D74],
+ ["AD76",0x8D73],
+ ["AD77",0x8DB4],
+ ["AD78",0x8ECD],
+ ["AD79",0x8ECC],
+ ["AD7A",0x8FF0],
+ ["AD7B",0x8FE6],
+ ["AD7C",0x8FE2],
+ ["AD7D",0x8FEA],
+ ["AD7E",0x8FE5],
+ ["ADA1",0x8FED],
+ ["ADA2",0x8FEB],
+ ["ADA3",0x8FE4],
+ ["ADA4",0x8FE8],
+ ["ADA5",0x90CA],
+ ["ADA6",0x90CE],
+ ["ADA7",0x90C1],
+ ["ADA8",0x90C3],
+ ["ADA9",0x914B],
+ ["ADAA",0x914A],
+ ["ADAB",0x91CD],
+ ["ADAC",0x9582],
+ ["ADAD",0x9650],
+ ["ADAE",0x964B],
+ ["ADAF",0x964C],
+ ["ADB0",0x964D],
+ ["ADB1",0x9762],
+ ["ADB2",0x9769],
+ ["ADB3",0x97CB],
+ ["ADB4",0x97ED],
+ ["ADB5",0x97F3],
+ ["ADB6",0x9801],
+ ["ADB7",0x98A8],
+ ["ADB8",0x98DB],
+ ["ADB9",0x98DF],
+ ["ADBA",0x9996],
+ ["ADBB",0x9999],
+ ["ADBC",0x4E58],
+ ["ADBD",0x4EB3],
+ ["ADBE",0x500C],
+ ["ADBF",0x500D],
+ ["ADC0",0x5023],
+ ["ADC1",0x4FEF],
+ ["ADC2",0x5026],
+ ["ADC3",0x5025],
+ ["ADC4",0x4FF8],
+ ["ADC5",0x5029],
+ ["ADC6",0x5016],
+ ["ADC7",0x5006],
+ ["ADC8",0x503C],
+ ["ADC9",0x501F],
+ ["ADCA",0x501A],
+ ["ADCB",0x5012],
+ ["ADCC",0x5011],
+ ["ADCD",0x4FFA],
+ ["ADCE",0x5000],
+ ["ADCF",0x5014],
+ ["ADD0",0x5028],
+ ["ADD1",0x4FF1],
+ ["ADD2",0x5021],
+ ["ADD3",0x500B],
+ ["ADD4",0x5019],
+ ["ADD5",0x5018],
+ ["ADD6",0x4FF3],
+ ["ADD7",0x4FEE],
+ ["ADD8",0x502D],
+ ["ADD9",0x502A],
+ ["ADDA",0x4FFE],
+ ["ADDB",0x502B],
+ ["ADDC",0x5009],
+ ["ADDD",0x517C],
+ ["ADDE",0x51A4],
+ ["ADDF",0x51A5],
+ ["ADE0",0x51A2],
+ ["ADE1",0x51CD],
+ ["ADE2",0x51CC],
+ ["ADE3",0x51C6],
+ ["ADE4",0x51CB],
+ ["ADE5",0x5256],
+ ["ADE6",0x525C],
+ ["ADE7",0x5254],
+ ["ADE8",0x525B],
+ ["ADE9",0x525D],
+ ["ADEA",0x532A],
+ ["ADEB",0x537F],
+ ["ADEC",0x539F],
+ ["ADED",0x539D],
+ ["ADEE",0x53DF],
["ADEF",0x54E8],
+ ["ADF0",0x5510],
+ ["ADF1",0x5501],
+ ["ADF2",0x5537],
+ ["ADF3",0x54FC],
+ ["ADF4",0x54E5],
+ ["ADF5",0x54F2],
+ ["ADF6",0x5506],
+ ["ADF7",0x54FA],
+ ["ADF8",0x5514],
["ADF9",0x54E9],
- ["ADFE",0x54EA],
- ["D0FB",0x54EB],
["ADFA",0x54ED],
+ ["ADFB",0x54E1],
+ ["ADFC",0x5509],
["ADFD",0x54EE],
- ["D0FE",0x54F1],
- ["ADF5",0x54F2],
- ["D0F5",0x54F3],
- ["D142",0x54F7],
- ["D143",0x54F8],
- ["ADF7",0x54FA],
- ["D141",0x54FB],
- ["ADF3",0x54FC],
- ["AE43",0x54FD],
- ["D0F8",0x54FF],
- ["ADF1",0x5501],
- ["D146",0x5503],
- ["D0F9",0x5504],
- ["D0FD",0x5505],
- ["ADF6",0x5506],
+ ["ADFE",0x54EA],
+ ["AE40",0x54E6],
+ ["AE41",0x5527],
["AE42",0x5507],
- ["D0FA",0x5508],
- ["ADFC",0x5509],
- ["D140",0x550A],
- ["D147",0x550B],
- ["D4A1",0x550C],
- ["D145",0x550E],
+ ["AE43",0x54FD],
["AE44",0x550F],
- ["ADF0",0x5510],
- ["D0FC",0x5511],
- ["D0F3",0x5512],
- ["ADF8",0x5514],
- ["D0F2",0x5517],
- ["D0F7",0x551A],
- ["D0F0",0x5526],
- ["AE41",0x5527],
- ["D477",0x552A],
- ["B0E4",0x552C],
- ["D4A7",0x552D],
- ["B0E2",0x552E],
- ["B0DF",0x552F],
- ["D47C",0x5530],
- ["B0DB",0x5531],
- ["D4A2",0x5532],
- ["B0E6",0x5533],
- ["D476",0x5534],
- ["D47B",0x5535],
- ["D47A",0x5536],
- ["ADF2",0x5537],
- ["B0E1",0x5538],
- ["D4A5",0x5539],
- ["D4A8",0x553B],
- ["D473",0x553C],
- ["B3E8",0x553E],
- ["D4A9",0x5540],
- ["B0E7",0x5541],
- ["B0D9",0x5543],
- ["B0D6",0x5544],
- ["D47E",0x5545],
- ["B0D3",0x5546],
- ["D4A6",0x5548],
- ["B0DA",0x554A],
- ["D4AA",0x554B],
- ["D474",0x554D],
- ["D4A4",0x554E],
- ["B0DD",0x554F],
- ["D475",0x5550],
- ["D478",0x5551],
- ["D47D",0x5552],
- ["B0DE",0x5555],
- ["B0DC",0x5556],
- ["B0E8",0x5557],
- ["B0E3",0x555C],
- ["B0D7",0x555E],
- ["B1D2",0x555F],
- ["B0D8",0x5561],
- ["D479",0x5562],
- ["B0E5",0x5563],
- ["B0E0",0x5564],
- ["D4A3",0x5565],
- ["B0D5",0x5566],
- ["B0D4",0x556A],
- ["D471",0x5575],
- ["D472",0x5576],
- ["D86A",0x5577],
- ["B3D7",0x557B],
- ["B3DA",0x557C],
- ["D875",0x557D],
- ["B3EE",0x557E],
- ["D878",0x557F],
- ["B3D8",0x5580],
- ["D871",0x5581],
- ["B3DE",0x5582],
- ["B3E4",0x5583],
- ["B5BD",0x5584],
- ["B3E2",0x5587],
- ["D86E",0x5588],
- ["B3EF",0x5589],
- ["B3DB",0x558A],
- ["B3E3",0x558B],
- ["D876",0x558C],
- ["DCD7",0x558D],
- ["D87B",0x558E],
- ["D86F",0x558F],
- ["D866",0x5591],
- ["D873",0x5592],
- ["D86D",0x5593],
- ["B3E1",0x5594],
- ["D879",0x5595],
- ["B3DD",0x5598],
- ["B3F1",0x5599],
- ["B3EA",0x559A],
- ["B3DF",0x559C],
- ["B3DC",0x559D],
- ["B3E7",0x559F],
- ["D87A",0x55A1],
- ["D86C",0x55A2],
- ["D872",0x55A3],
- ["D874",0x55A4],
- ["D868",0x55A5],
- ["D877",0x55A6],
- ["B3D9",0x55A7],
- ["D867",0x55A8],
- ["B3E0",0x55AA],
- ["B3F0",0x55AB],
- ["B3EC",0x55AC],
- ["D869",0x55AD],
- ["B3E6",0x55AE],
- ["B3ED",0x55B1],
- ["B3E9",0x55B2],
- ["B3E5",0x55B3],
- ["D870",0x55B5],
- ["B3EB",0x55BB],
- ["DCD5",0x55BF],
- ["DCD1",0x55C0],
- ["DCE0",0x55C2],
- ["DCCA",0x55C3],
- ["DCD3",0x55C4],
- ["B6E5",0x55C5],
- ["B6E6",0x55C6],
- ["B6DE",0x55C7],
- ["DCDC",0x55C8],
- ["B6E8",0x55C9],
- ["DCCF",0x55CA],
- ["DCCE",0x55CB],
- ["DCCC",0x55CC],
- ["DCDE",0x55CD],
- ["B6DC",0x55CE],
- ["DCD8",0x55CF],
- ["DCCD",0x55D0],
- ["B6DF",0x55D1],
- ["DCD6",0x55D2],
- ["B6DA",0x55D3],
- ["DCD2",0x55D4],
- ["DCD9",0x55D5],
- ["DCDB",0x55D6],
- ["DCDF",0x55D9],
- ["B6E3",0x55DA],
- ["DCCB",0x55DB],
- ["B6DD",0x55DC],
- ["DCD0",0x55DD],
- ["B6D8",0x55DF],
- ["B6E4",0x55E1],
- ["DCDA",0x55E2],
- ["B6E0",0x55E3],
- ["B6E1",0x55E4],
- ["B6E7",0x55E5],
- ["B6DB",0x55E6],
- ["A25F",0x55E7],
- ["B6D9",0x55E8],
- ["DCD4",0x55E9],
- ["B6E2",0x55EF],
- ["DCDD",0x55F2],
- ["B9CD",0x55F6],
- ["B9C8",0x55F7],
- ["E155",0x55F9],
- ["E151",0x55FA],
- ["E14B",0x55FC],
- ["B9C2",0x55FD],
- ["B9BE",0x55FE],
- ["E154",0x55FF],
- ["B9BF",0x5600],
- ["E14E",0x5601],
- ["E150",0x5602],
- ["E153",0x5604],
- ["B9C4",0x5606],
- ["B9CB",0x5608],
- ["B9C5",0x5609],
- ["E149",0x560C],
- ["B9C6",0x560D],
- ["B9C7",0x560E],
- ["E14C",0x560F],
- ["B9CC",0x5610],
- ["E14A",0x5612],
- ["E14F",0x5613],
- ["B9C3",0x5614],
- ["E148",0x5615],
- ["B9C9",0x5616],
- ["B9C1",0x5617],
- ["B9C0",0x561B],
- ["E14D",0x561C],
- ["E152",0x561D],
- ["B9CA",0x561F],
- ["E147",0x5627],
- ["BC4D",0x5629],
- ["E547",0x562A],
- ["E544",0x562C],
- ["BC47",0x562E],
- ["BC53",0x562F],
- ["BC54",0x5630],
- ["BC4A",0x5632],
- ["E542",0x5633],
- ["BC4C",0x5634],
- ["E4F9",0x5635],
- ["BC52",0x5636],
- ["E546",0x5638],
- ["BC49",0x5639],
- ["E548",0x563A],
- ["BC48",0x563B],
- ["E543",0x563D],
- ["E545",0x563E],
- ["BC4B",0x563F],
- ["E541",0x5640],
- ["E4FA",0x5641],
- ["E4F7",0x5642],
- ["D86B",0x5645],
- ["E4FD",0x5646],
- ["E4F6",0x5648],
- ["E4FC",0x5649],
- ["E4FB",0x564A],
- ["E4F8",0x564C],
- ["BC4F",0x564E],
- ["BC4E",0x5653],
- ["BC50",0x5657],
- ["E4FE",0x5658],
- ["BEB2",0x5659],
- ["E540",0x565A],
- ["E945",0x565E],
- ["E8FD",0x5660],
- ["BEBE",0x5662],
- ["E942",0x5663],
- ["BEB6",0x5664],
- ["BEBA",0x5665],
- ["E941",0x5666],
- ["BEB9",0x5668],
- ["BEB5",0x5669],
- ["BEB8",0x566A],
- ["BEB3",0x566B],
- ["BEBD",0x566C],
- ["E943",0x566D],
- ["E8FE",0x566E],
- ["BEBC",0x566F],
- ["E8FC",0x5670],
- ["BEBB",0x5671],
- ["E944",0x5672],
- ["E940",0x5673],
- ["BC51",0x5674],
- ["BEBF",0x5676],
- ["E946",0x5677],
- ["BEB7",0x5678],
- ["BEB4",0x5679],
- ["ECC6",0x567E],
- ["ECC8",0x567F],
- ["C07B",0x5680],
- ["ECC9",0x5681],
- ["ECC7",0x5682],
- ["ECC5",0x5683],
- ["ECC4",0x5684],
- ["C07D",0x5685],
- ["ECC3",0x5686],
- ["C07E",0x5687],
- ["ECC1",0x568C],
- ["ECC2",0x568D],
- ["C07A",0x568E],
- ["C0A1",0x568F],
- ["C07C",0x5690],
- ["ECC0",0x5693],
- ["C250",0x5695],
- ["EFBC",0x5697],
- ["EFBA",0x5698],
- ["EFBF",0x5699],
- ["EFBD",0x569A],
- ["EFBB",0x569C],
- ["EFBE",0x569D],
- ["C360",0x56A5],
- ["F1F2",0x56A6],
- ["F1F3",0x56A7],
- ["C456",0x56A8],
- ["F1F4",0x56AA],
- ["F1F0",0x56AB],
- ["F1F5",0x56AC],
- ["F1F1",0x56AD],
- ["C251",0x56AE],
- ["F3FE",0x56B2],
- ["F441",0x56B3],
- ["C459",0x56B4],
- ["F440",0x56B5],
- ["C458",0x56B6],
- ["C457",0x56B7],
- ["C45A",0x56BC],
- ["F5C5",0x56BD],
- ["F5C6",0x56BE],
- ["C4DA",0x56C0],
- ["C4D9",0x56C1],
- ["C4DB",0x56C2],
- ["F5C4",0x56C3],
- ["F6D8",0x56C5],
- ["F6D7",0x56C6],
- ["C56D",0x56C8],
- ["C56F",0x56C9],
- ["C56E",0x56CA],
- ["F6D9",0x56CB],
- ["C5C8",0x56CC],
- ["F8A6",0x56CD],
- ["C5F1",0x56D1],
- ["F8A5",0x56D3],
- ["F8EE",0x56D4],
- ["C949",0x56D7],
- ["A57D",0x56DA],
- ["A57C",0x56DB],
- ["A65F",0x56DD],
- ["A65E",0x56DE],
- ["C9C7",0x56DF],
- ["A65D",0x56E0],
- ["C9C6",0x56E1],
- ["A779",0x56E4],
- ["CAA9",0x56E5],
- ["CAA8",0x56E7],
- ["A777",0x56EA],
- ["A77A",0x56EB],
- ["CAA7",0x56EE],
- ["A778",0x56F0],
- ["CBF0",0x56F7],
- ["CBF1",0x56F9],
- ["A954",0x56FA],
- ["ABAA",0x56FF],
- ["D148",0x5701],
- ["D149",0x5702],
["AE45",0x5703],
["AE46",0x5704],
- ["D4AC",0x5707],
- ["B0E9",0x5708],
- ["B0EB",0x5709],
- ["D4AB",0x570A],
- ["B0EA",0x570B],
- ["D87C",0x570C],
- ["B3F2",0x570D],
- ["B6E9",0x5712],
- ["B6EA",0x5713],
- ["DCE1",0x5714],
- ["B9CF",0x5716],
- ["B9CE",0x5718],
- ["E549",0x571A],
- ["E948",0x571B],
- ["E947",0x571C],
- ["F96B",0x571E],
- ["A467",0x571F],
- ["C959",0x5720],
- ["C96E",0x5722],
- ["C96F",0x5723],
- ["A662",0x5728],
- ["A666",0x5729],
- ["C9C9",0x572A],
- ["A664",0x572C],
- ["A663",0x572D],
- ["C9C8",0x572E],
- ["A665",0x572F],
- ["A661",0x5730],
- ["A660",0x5733],
- ["C9CA",0x5734],
- ["A7A6",0x573B],
- ["A7A3",0x573E],
- ["A77D",0x5740],
- ["CAAA",0x5741],
- ["CAAB",0x5745],
- ["A7A1",0x5747],
- ["CAAD",0x5749],
- ["A77B",0x574A],
- ["CAAE",0x574B],
- ["CAAC",0x574C],
- ["A77E",0x574D],
- ["A7A2",0x574E],
- ["A7A5",0x574F],
- ["A7A4",0x5750],
- ["A77C",0x5751],
- ["CAAF",0x5752],
- ["A959",0x5761],
- ["CBFE",0x5762],
- ["A95B",0x5764],
- ["A95A",0x5766],
- ["CC40",0x5768],
- ["A958",0x5769],
- ["A957",0x576A],
- ["CBF5",0x576B],
- ["CBF4",0x576D],
- ["CBF2",0x576F],
- ["CBF7",0x5770],
- ["CBF6",0x5771],
- ["CBF3",0x5772],
- ["CBFC",0x5773],
- ["CBFD",0x5774],
- ["CBFA",0x5775],
- ["CBF8",0x5776],
- ["A956",0x5777],
- ["CBFB",0x577B],
- ["A95C",0x577C],
- ["CC41",0x577D],
- ["CBF9",0x5780],
- ["ABAB",0x5782],
- ["A955",0x5783],
- ["ABAC",0x578B],
- ["CE54",0x578C],
- ["CE5A",0x578F],
- ["ABB2",0x5793],
- ["CE58",0x5794],
- ["CE5E",0x5795],
- ["CE55",0x5797],
- ["CE59",0x5798],
- ["CE5B",0x5799],
- ["CE5D",0x579A],
- ["CE57",0x579B],
- ["CE56",0x579D],
- ["CE51",0x579E],
- ["CE52",0x579F],
- ["ABAD",0x57A0],
- ["ABAF",0x57A2],
- ["ABAE",0x57A3],
- ["CE53",0x57A4],
- ["CE5C",0x57A5],
- ["ABB1",0x57AE],
- ["CE50",0x57B5],
- ["D153",0x57B6],
- ["D152",0x57B8],
- ["D157",0x57B9],
- ["D14E",0x57BA],
- ["D151",0x57BC],
- ["D150",0x57BD],
- ["D154",0x57BF],
- ["D158",0x57C1],
["AE47",0x57C2],
- ["AE4A",0x57C3],
- ["D14F",0x57C6],
- ["D155",0x57C7],
- ["AE49",0x57CB],
- ["D14A",0x57CC],
- ["ABB0",0x57CE],
- ["D4BA",0x57CF],
- ["D156",0x57D0],
- ["D14D",0x57D2],
["AE48",0x57D4],
- ["D14C",0x57D5],
- ["D4B1",0x57DC],
- ["B0EC",0x57DF],
- ["B0F0",0x57E0],
- ["D4C1",0x57E1],
- ["D4AF",0x57E2],
- ["D4BD",0x57E3],
- ["B0F1",0x57E4],
- ["D4BF",0x57E5],
- ["D4C5",0x57E7],
- ["D4C9",0x57E9],
- ["D4C0",0x57EC],
- ["D4B4",0x57ED],
- ["D4BC",0x57EE],
- ["D4CA",0x57F0],
- ["D4C8",0x57F1],
- ["D4BE",0x57F2],
- ["D4B9",0x57F3],
- ["D4B2",0x57F4],
- ["D8A6",0x57F5],
- ["D4B0",0x57F6],
- ["B0F5",0x57F7],
- ["D4B7",0x57F8],
- ["B0F6",0x57F9],
- ["B0F2",0x57FA],
- ["D4AD",0x57FB],
- ["D4C3",0x57FC],
- ["D4B5",0x57FD],
- ["D4B3",0x5800],
- ["D4C6",0x5801],
- ["B0F3",0x5802],
- ["D4CC",0x5804],
- ["B0ED",0x5805],
- ["B0EF",0x5806],
- ["D4BB",0x5807],
- ["D4B6",0x5808],
+ ["AE49",0x57CB],
+ ["AE4A",0x57C3],
["AE4B",0x5809],
- ["B0EE",0x580A],
- ["D4B8",0x580B],
- ["D4C7",0x580C],
- ["D4CB",0x580D],
- ["D4C2",0x580E],
- ["D4C4",0x5810],
- ["D4AE",0x5814],
- ["D8A1",0x5819],
- ["D8AA",0x581B],
- ["D8A9",0x581C],
- ["B3FA",0x581D],
- ["D8A2",0x581E],
- ["B3FB",0x5820],
- ["B3F9",0x5821],
- ["D8A4",0x5823],
- ["B3F6",0x5824],
- ["D8A8",0x5825],
- ["D8A3",0x5827],
- ["D8A5",0x5828],
- ["D87D",0x5829],
- ["B3F4",0x582A],
- ["D8B2",0x582C],
- ["D8B1",0x582D],
- ["D8AE",0x582E],
- ["B3F3",0x582F],
- ["B3F7",0x5830],
- ["B3F8",0x5831],
- ["D14B",0x5832],
- ["D8AB",0x5833],
- ["B3F5",0x5834],
- ["B0F4",0x5835],
- ["D8AD",0x5836],
- ["D87E",0x5837],
- ["D8B0",0x5838],
- ["D8AF",0x5839],
- ["D8B3",0x583B],
- ["DCEF",0x583D],
- ["D8AC",0x583F],
- ["D8A7",0x5848],
- ["DCE7",0x5849],
- ["B6F4",0x584A],
- ["B6F7",0x584B],
- ["B6F2",0x584C],
- ["DCE6",0x584D],
- ["DCEA",0x584E],
- ["DCE5",0x584F],
- ["B6EC",0x5851],
- ["B6F6",0x5852],
- ["DCE2",0x5853],
- ["B6F0",0x5854],
- ["DCE9",0x5855],
- ["B6EE",0x5857],
- ["B6ED",0x5858],
- ["DCEC",0x5859],
- ["B6EF",0x585A],
- ["DCEE",0x585B],
- ["DCEB",0x585D],
- ["B6EB",0x585E],
- ["B6F5",0x5862],
- ["DCF0",0x5863],
- ["DCE4",0x5864],
- ["DCED",0x5865],
- ["DCE3",0x5868],
- ["B6F1",0x586B],
- ["B6F3",0x586D],
- ["DCE8",0x586F],
- ["DCF1",0x5871],
- ["E15D",0x5874],
- ["B9D0",0x5875],
- ["E163",0x5876],
- ["B9D5",0x5879],
- ["E15F",0x587A],
- ["E166",0x587B],
- ["E157",0x587C],
- ["B9D7",0x587D],
- ["B9D1",0x587E],
- ["E15C",0x587F],
- ["BC55",0x5880],
- ["E15B",0x5881],
- ["E164",0x5882],
- ["B9D2",0x5883],
- ["B9D6",0x5885],
- ["E15A",0x5886],
- ["E160",0x5887],
- ["E165",0x5888],
- ["E156",0x5889],
- ["B9D4",0x588A],
- ["E15E",0x588B],
- ["E162",0x588E],
- ["E168",0x588F],
- ["E158",0x5890],
- ["E161",0x5891],
- ["B9D3",0x5893],
- ["E167",0x5894],
- ["E159",0x5898],
- ["BC59",0x589C],
- ["E54B",0x589D],
- ["BC57",0x589E],
- ["BC56",0x589F],
- ["E54D",0x58A0],
- ["E552",0x58A1],
- ["E54E",0x58A3],
- ["E551",0x58A5],
- ["BC5C",0x58A6],
- ["BEA5",0x58A8],
- ["BC5B",0x58A9],
- ["E54A",0x58AB],
- ["E550",0x58AC],
- ["BC5A",0x58AE],
- ["E54F",0x58AF],
- ["E54C",0x58B1],
- ["BC58",0x58B3],
- ["E94D",0x58BA],
- ["E94F",0x58BC],
- ["E94A",0x58BD],
- ["BEC1",0x58BE],
- ["E94C",0x58BF],
- ["BEC0",0x58C1],
- ["E94E",0x58C2],
- ["BEC3",0x58C5],
- ["E950",0x58C6],
- ["BEC2",0x58C7],
- ["E949",0x58C8],
- ["E94B",0x58C9],
- ["C0A5",0x58CE],
- ["ECCC",0x58CF],
- ["C0A4",0x58D1],
- ["ECCD",0x58D2],
- ["C0A3",0x58D3],
- ["ECCB",0x58D4],
- ["C0A2",0x58D5],
- ["ECCA",0x58D6],
- ["C253",0x58D8],
- ["C252",0x58D9],
- ["F1F6",0x58DA],
- ["F1F8",0x58DB],
- ["F1F7",0x58DD],
- ["C361",0x58DE],
- ["C362",0x58DF],
- ["C363",0x58E2],
- ["F442",0x58E3],
- ["C45B",0x58E4],
- ["F7D3",0x58E7],
- ["F7D2",0x58E8],
- ["C5F2",0x58E9],
- ["A468",0x58EB],
- ["A4D0",0x58EC],
- ["A7A7",0x58EF],
- ["CE5F",0x58F4],
- ["B3FC",0x58F9],
- ["B3FD",0x58FA],
- ["DCF2",0x58FC],
- ["B9D8",0x58FD],
- ["E169",0x58FE],
- ["E553",0x58FF],
- ["C95A",0x5903],
- ["CAB0",0x5906],
- ["CC42",0x590C],
- ["CE60",0x590D],
- ["D159",0x590E],
["AE4C",0x590F],
- ["F1F9",0x5912],
- ["C4DC",0x5914],
- ["A469",0x5915],
- ["A57E",0x5916],
- ["C970",0x5917],
- ["A667",0x5919],
- ["A668",0x591A],
- ["A95D",0x591C],
- ["B0F7",0x5920],
- ["B9DA",0x5922],
- ["B9DB",0x5924],
- ["B9D9",0x5925],
- ["A46A",0x5927],
- ["A4D1",0x5929],
- ["A4D3",0x592A],
- ["A4D2",0x592B],
- ["C95B",0x592C],
- ["A4D4",0x592D],
- ["A5A1",0x592E],
- ["C971",0x592F],
- ["A5A2",0x5931],
- ["A669",0x5937],
- ["A66A",0x5938],
- ["C9CB",0x593C],
- ["A7A8",0x593E],
- ["CAB1",0x5940],
- ["A961",0x5944],
- ["CC43",0x5945],
- ["A95F",0x5947],
- ["A960",0x5948],
- ["A95E",0x5949],
- ["D15A",0x594A],
- ["ABB6",0x594E],
- ["ABB5",0x594F],
- ["ABB7",0x5950],
- ["ABB4",0x5951],
- ["CE61",0x5953],
- ["A962",0x5954],
- ["ABB3",0x5955],
["AE4D",0x5957],
["AE4E",0x5958],
["AE4F",0x595A],
- ["D4CD",0x595C],
- ["B3FE",0x5960],
- ["D8B4",0x5961],
- ["B0F8",0x5962],
- ["B6F8",0x5967],
- ["B9DD",0x5969],
- ["B9DC",0x596A],
- ["E16A",0x596B],
- ["BC5D",0x596D],
- ["BEC4",0x596E],
- ["EFC0",0x5970],
- ["F6DA",0x5971],
- ["F7D4",0x5972],
- ["A46B",0x5973],
- ["A5A3",0x5974],
- ["A5A4",0x5976],
- ["C9D1",0x5977],
- ["A66C",0x5978],
- ["A66F",0x5979],
- ["C9CF",0x597B],
- ["C9CD",0x597C],
- ["A66E",0x597D],
- ["C9D0",0x597E],
- ["C9D2",0x597F],
- ["C9CC",0x5980],
- ["A671",0x5981],
- ["A670",0x5982],
- ["A66D",0x5983],
- ["A66B",0x5984],
- ["C9CE",0x5985],
- ["A7B3",0x598A],
- ["A7B0",0x598D],
- ["CAB6",0x598E],
- ["CAB9",0x598F],
- ["CAB8",0x5990],
- ["A7AA",0x5992],
- ["A7B2",0x5993],
- ["A7AF",0x5996],
- ["CAB5",0x5997],
- ["CAB3",0x5998],
- ["A7AE",0x5999],
- ["A7A9",0x599D],
- ["A7AC",0x599E],
- ["CAB4",0x59A0],
- ["CABB",0x59A1],
- ["CAB7",0x59A2],
- ["A7AD",0x59A3],
- ["A7B1",0x59A4],
- ["A7B4",0x59A5],
- ["CAB2",0x59A6],
- ["CABA",0x59A7],
- ["A7AB",0x59A8],
- ["A967",0x59AE],
- ["A96F",0x59AF],
- ["CC4F",0x59B1],
- ["CC48",0x59B2],
- ["A970",0x59B3],
- ["CC53",0x59B4],
- ["CC44",0x59B5],
- ["CC4B",0x59B6],
- ["A966",0x59B9],
- ["CC45",0x59BA],
- ["A964",0x59BB],
- ["CC4C",0x59BC],
- ["CC50",0x59BD],
- ["A963",0x59BE],
- ["CC51",0x59C0],
- ["CC4A",0x59C1],
- ["CC4D",0x59C3],
- ["A972",0x59C5],
- ["A969",0x59C6],
- ["CC54",0x59C7],
- ["CC52",0x59C8],
- ["A96E",0x59CA],
- ["A96C",0x59CB],
- ["CC49",0x59CC],
- ["A96B",0x59CD],
- ["CC47",0x59CE],
- ["CC46",0x59CF],
- ["A96A",0x59D0],
- ["A968",0x59D1],
- ["A971",0x59D2],
- ["A96D",0x59D3],
- ["A965",0x59D4],
- ["CC4E",0x59D6],
- ["ABB9",0x59D8],
- ["ABC0",0x59DA],
- ["CE6F",0x59DB],
- ["ABB8",0x59DC],
- ["CE67",0x59DD],
- ["CE63",0x59DE],
- ["CE73",0x59E0],
- ["CE62",0x59E1],
- ["ABBB",0x59E3],
- ["CE6C",0x59E4],
- ["ABBE",0x59E5],
- ["ABC1",0x59E6],
- ["ABBC",0x59E8],
- ["CE70",0x59E9],
- ["ABBF",0x59EA],
- ["AE56",0x59EC],
- ["CE76",0x59ED],
- ["CE64",0x59EE],
- ["CE66",0x59F1],
- ["CE6D",0x59F2],
- ["CE71",0x59F3],
- ["CE75",0x59F4],
- ["CE72",0x59F5],
- ["CE6B",0x59F6],
- ["CE6E",0x59F7],
- ["CE68",0x59FA],
- ["ABC3",0x59FB],
- ["CE6A",0x59FC],
- ["CE69",0x59FD],
- ["CE74",0x59FE],
- ["ABBA",0x59FF],
- ["CE65",0x5A00],
- ["ABC2",0x5A01],
- ["ABBD",0x5A03],
- ["AE5C",0x5A09],
- ["D162",0x5A0A],
- ["AE5B",0x5A0C],
- ["D160",0x5A0F],
["AE50",0x5A11],
- ["AE55",0x5A13],
- ["D15F",0x5A15],
- ["D15C",0x5A16],
- ["D161",0x5A17],
["AE51",0x5A18],
- ["D15B",0x5A19],
- ["AE54",0x5A1B],
["AE52",0x5A1C],
- ["D163",0x5A1E],
["AE53",0x5A1F],
+ ["AE54",0x5A1B],
+ ["AE55",0x5A13],
+ ["AE56",0x59EC],
["AE57",0x5A20],
["AE58",0x5A23],
- ["AE5A",0x5A25],
["AE59",0x5A29],
- ["D15D",0x5A2D],
- ["D15E",0x5A2E],
- ["D164",0x5A33],
- ["D4D4",0x5A35],
- ["B0F9",0x5A36],
- ["D8C2",0x5A37],
- ["D4D3",0x5A38],
- ["D4E6",0x5A39],
- ["B140",0x5A3C],
- ["D4E4",0x5A3E],
- ["B0FE",0x5A40],
- ["B0FA",0x5A41],
- ["D4ED",0x5A42],
- ["D4DD",0x5A43],
- ["D4E0",0x5A44],
- ["B143",0x5A46],
- ["D4EA",0x5A47],
- ["D4E2",0x5A48],
- ["B0FB",0x5A49],
- ["B144",0x5A4A],
- ["D4E7",0x5A4C],
- ["D4E5",0x5A4D],
- ["D4D6",0x5A50],
- ["D4EB",0x5A51],
- ["D4DF",0x5A52],
- ["D4DA",0x5A53],
- ["D4D0",0x5A55],
- ["D4EC",0x5A56],
- ["D4DC",0x5A57],
- ["D4CF",0x5A58],
- ["B142",0x5A5A],
- ["D4E1",0x5A5B],
- ["D4EE",0x5A5C],
- ["D4DE",0x5A5D],
- ["D4D2",0x5A5E],
- ["D4D7",0x5A5F],
- ["D4CE",0x5A60],
- ["B141",0x5A62],
- ["D4DB",0x5A64],
- ["D4D8",0x5A65],
- ["B0FC",0x5A66],
- ["D4D1",0x5A67],
- ["D4E9",0x5A69],
- ["B0FD",0x5A6A],
- ["D4D9",0x5A6C],
- ["D4D5",0x5A6D],
- ["D4E8",0x5A70],
- ["B440",0x5A77],
- ["D8BB",0x5A78],
- ["D8B8",0x5A7A],
- ["D8C9",0x5A7B],
- ["D8BD",0x5A7C],
- ["D8CA",0x5A7D],
- ["B442",0x5A7F],
- ["D8C6",0x5A83],
- ["D8C3",0x5A84],
- ["D8C4",0x5A8A],
- ["D8C7",0x5A8B],
- ["D8CB",0x5A8C],
- ["D4E3",0x5A8E],
- ["D8CD",0x5A8F],
- ["DD47",0x5A90],
- ["B443",0x5A92],
- ["D8CE",0x5A93],
- ["D8B6",0x5A94],
- ["D8C0",0x5A95],
- ["D8C5",0x5A97],
- ["B441",0x5A9A],
- ["B444",0x5A9B],
- ["D8CC",0x5A9C],
- ["D8CF",0x5A9D],
- ["D8BA",0x5A9E],
- ["D8B7",0x5A9F],
- ["D8B9",0x5AA2],
- ["D8BE",0x5AA5],
- ["D8BC",0x5AA6],
- ["B445",0x5AA7],
- ["D8C8",0x5AA9],
- ["D8BF",0x5AAC],
- ["D8C1",0x5AAE],
- ["D8B5",0x5AAF],
- ["DCFA",0x5AB0],
- ["DCF8",0x5AB1],
- ["B742",0x5AB2],
- ["B740",0x5AB3],
- ["DD43",0x5AB4],
- ["DCF9",0x5AB5],
- ["DD44",0x5AB6],
- ["DD40",0x5AB7],
- ["DCF7",0x5AB8],
- ["DD46",0x5AB9],
- ["DCF6",0x5ABA],
- ["DCFD",0x5ABB],
- ["B6FE",0x5ABC],
- ["B6FD",0x5ABD],
- ["B6FC",0x5ABE],
- ["DCFB",0x5ABF],
- ["DD41",0x5AC0],
- ["B6F9",0x5AC1],
- ["B741",0x5AC2],
- ["DCF4",0x5AC4],
- ["DCFE",0x5AC6],
- ["DCF3",0x5AC7],
- ["DCFC",0x5AC8],
- ["B6FA",0x5AC9],
- ["DD42",0x5ACA],
- ["DCF5",0x5ACB],
- ["B6FB",0x5ACC],
- ["DD45",0x5ACD],
- ["E16E",0x5AD5],
- ["B9E2",0x5AD6],
- ["B9E1",0x5AD7],
- ["B9E3",0x5AD8],
- ["E17A",0x5AD9],
- ["E170",0x5ADA],
- ["E176",0x5ADB],
- ["E16B",0x5ADC],
- ["E179",0x5ADD],
- ["E178",0x5ADE],
- ["E17C",0x5ADF],
- ["E175",0x5AE0],
- ["B9DE",0x5AE1],
- ["E174",0x5AE2],
- ["B9E4",0x5AE3],
- ["E16D",0x5AE5],
- ["B9DF",0x5AE6],
- ["E17B",0x5AE8],
- ["B9E0",0x5AE9],
- ["E16F",0x5AEA],
- ["E172",0x5AEB],
- ["E177",0x5AEC],
- ["E171",0x5AED],
- ["E16C",0x5AEE],
- ["E173",0x5AF3],
- ["E555",0x5AF4],
- ["BC61",0x5AF5],
- ["E558",0x5AF6],
- ["E557",0x5AF7],
- ["E55A",0x5AF8],
- ["E55C",0x5AF9],
- ["BC5F",0x5AFB],
- ["E556",0x5AFD],
- ["E554",0x5AFF],
- ["E55D",0x5B01],
- ["E55B",0x5B02],
- ["E559",0x5B03],
- ["E55F",0x5B05],
- ["E55E",0x5B07],
- ["BC63",0x5B08],
- ["BC5E",0x5B09],
- ["BC60",0x5B0B],
- ["BC62",0x5B0C],
- ["E560",0x5B0F],
- ["E957",0x5B10],
- ["E956",0x5B13],
- ["E955",0x5B14],
- ["E958",0x5B16],
- ["E951",0x5B17],
- ["E952",0x5B19],
- ["E95A",0x5B1A],
- ["E953",0x5B1B],
- ["BEC5",0x5B1D],
- ["E95C",0x5B1E],
- ["E95B",0x5B20],
- ["E954",0x5B21],
- ["ECD1",0x5B23],
- ["C0A8",0x5B24],
- ["ECCF",0x5B25],
- ["ECD4",0x5B26],
- ["ECD3",0x5B27],
- ["E959",0x5B28],
- ["C0A7",0x5B2A],
- ["ECD2",0x5B2C],
- ["ECCE",0x5B2D],
- ["ECD6",0x5B2E],
- ["ECD5",0x5B2F],
- ["C0A6",0x5B30],
- ["ECD0",0x5B32],
- ["BEC6",0x5B34],
- ["C254",0x5B38],
- ["EFC1",0x5B3C],
- ["F1FA",0x5B3D],
- ["F1FB",0x5B3E],
- ["F1FC",0x5B3F],
- ["C45C",0x5B40],
- ["C45D",0x5B43],
- ["F443",0x5B45],
- ["F5C8",0x5B47],
- ["F5C7",0x5B48],
- ["F6DB",0x5B4B],
- ["F6DC",0x5B4C],
- ["F7D5",0x5B4D],
- ["F8A7",0x5B4E],
- ["A46C",0x5B50],
- ["A46D",0x5B51],
- ["A46E",0x5B53],
- ["A4D5",0x5B54],
- ["A5A5",0x5B55],
- ["C9D3",0x5B56],
- ["A672",0x5B57],
- ["A673",0x5B58],
- ["A7B7",0x5B5A],
- ["A7B8",0x5B5B],
- ["A7B6",0x5B5C],
- ["A7B5",0x5B5D],
- ["A973",0x5B5F],
- ["CC55",0x5B62],
- ["A975",0x5B63],
- ["A974",0x5B64],
- ["CC56",0x5B65],
- ["ABC4",0x5B69],
+ ["AE5A",0x5A25],
+ ["AE5B",0x5A0C],
+ ["AE5C",0x5A09],
["AE5D",0x5B6B],
- ["D165",0x5B6C],
- ["D4F0",0x5B6E],
- ["B145",0x5B70],
- ["B447",0x5B71],
- ["D4EF",0x5B72],
- ["B446",0x5B73],
- ["B9E5",0x5B75],
- ["E17D",0x5B77],
- ["BEC7",0x5B78],
- ["C0A9",0x5B7A],
- ["ECD7",0x5B7B],
- ["C45E",0x5B7D],
- ["C570",0x5B7F],
- ["C972",0x5B81],
- ["A5A6",0x5B83],
- ["C973",0x5B84],
- ["A676",0x5B85],
- ["A674",0x5B87],
- ["A675",0x5B88],
- ["A677",0x5B89],
- ["A7BA",0x5B8B],
- ["A7B9",0x5B8C],
- ["CABC",0x5B8E],
- ["A7BB",0x5B8F],
- ["CABD",0x5B92],
- ["CC57",0x5B93],
- ["CC58",0x5B95],
- ["A976",0x5B97],
- ["A978",0x5B98],
- ["A97A",0x5B99],
- ["A977",0x5B9A],
- ["A97B",0x5B9B],
- ["A979",0x5B9C],
- ["ABC8",0x5BA2],
- ["ABC5",0x5BA3],
- ["ABC7",0x5BA4],
- ["ABC9",0x5BA5],
- ["ABC6",0x5BA6],
- ["D166",0x5BA7],
- ["CE77",0x5BA8],
- ["D168",0x5BAC],
- ["D167",0x5BAD],
- ["AE63",0x5BAE],
+ ["AE5E",0x5C58],
["AE5F",0x5BB0],
["AE60",0x5BB3],
+ ["AE61",0x5BB6],
["AE62",0x5BB4],
+ ["AE63",0x5BAE],
["AE64",0x5BB5],
- ["AE61",0x5BB6],
- ["AE66",0x5BB8],
["AE65",0x5BB9],
- ["B14A",0x5BBF],
- ["D4F2",0x5BC0],
- ["D4F1",0x5BC1],
- ["B149",0x5BC2],
- ["B148",0x5BC4],
- ["B147",0x5BC5],
- ["B14B",0x5BC6],
- ["B146",0x5BC7],
- ["D8D5",0x5BCA],
- ["D8D2",0x5BCB],
- ["B449",0x5BCC],
- ["D8D1",0x5BCD],
- ["D8D6",0x5BCE],
- ["B44B",0x5BD0],
- ["D8D4",0x5BD1],
- ["B448",0x5BD2],
- ["B44A",0x5BD3],
- ["D8D3",0x5BD4],
- ["DD48",0x5BD6],
- ["DD49",0x5BD8],
- ["DD4A",0x5BD9],
- ["B9E6",0x5BDE],
- ["B9EE",0x5BDF],
- ["E17E",0x5BE0],
- ["B9E8",0x5BE1],
- ["B9EC",0x5BE2],
- ["E1A1",0x5BE3],
- ["B9ED",0x5BE4],
- ["B9E9",0x5BE5],
- ["B9EA",0x5BE6],
- ["B9E7",0x5BE7],
- ["B9EB",0x5BE8],
- ["BC66",0x5BE9],
- ["D8D0",0x5BEA],
- ["BC67",0x5BEB],
- ["BC65",0x5BEC],
- ["BC64",0x5BEE],
- ["E95D",0x5BEF],
- ["BEC8",0x5BF0],
- ["ECD8",0x5BF1],
- ["ECD9",0x5BF2],
- ["C364",0x5BF5],
- ["C45F",0x5BF6],
- ["A46F",0x5BF8],
- ["A678",0x5BFA],
- ["ABCA",0x5C01],
- ["D169",0x5C03],
+ ["AE66",0x5BB8],
["AE67",0x5C04],
- ["B14E",0x5C07],
- ["B14D",0x5C08],
- ["B14C",0x5C09],
- ["B44C",0x5C0A],
- ["B44D",0x5C0B],
- ["D8D7",0x5C0C],
- ["B9EF",0x5C0D],
- ["BEC9",0x5C0E],
- ["A470",0x5C0F],
- ["C95C",0x5C10],
- ["A4D6",0x5C11],
- ["C974",0x5C12],
- ["C9D4",0x5C15],
- ["A679",0x5C16],
- ["A97C",0x5C1A],
- ["DD4B",0x5C1F],
- ["A471",0x5C22],
- ["A4D7",0x5C24],
- ["C9D5",0x5C25],
- ["CABE",0x5C28],
- ["CABF",0x5C2A],
- ["A7BC",0x5C2C],
- ["D8D8",0x5C30],
- ["B44E",0x5C31],
- ["DD4C",0x5C33],
- ["C0AA",0x5C37],
- ["A472",0x5C38],
- ["A4A8",0x5C39],
- ["A4D8",0x5C3A],
- ["C975",0x5C3B],
- ["A5A7",0x5C3C],
- ["A7C0",0x5C3E],
- ["A7BF",0x5C3F],
- ["A7BD",0x5C40],
- ["A7BE",0x5C41],
- ["CC59",0x5C44],
- ["A97E",0x5C45],
- ["A9A1",0x5C46],
- ["CC5A",0x5C47],
- ["A97D",0x5C48],
- ["ABCE",0x5C4B],
- ["CE78",0x5C4C],
- ["ABCD",0x5C4D],
- ["ABCB",0x5C4E],
- ["ABCC",0x5C4F],
- ["AE6A",0x5C50],
["AE68",0x5C51],
- ["D16B",0x5C54],
["AE69",0x5C55],
- ["D16A",0x5C56],
- ["AE5E",0x5C58],
- ["D4F3",0x5C59],
- ["B150",0x5C5C],
- ["B151",0x5C5D],
- ["B14F",0x5C60],
- ["B9F0",0x5C62],
- ["E1A2",0x5C63],
- ["BC68",0x5C64],
- ["BC69",0x5C65],
- ["E561",0x5C67],
- ["C0AB",0x5C68],
- ["EFC2",0x5C69],
- ["EFC3",0x5C6A],
- ["C4DD",0x5C6C],
- ["F8A8",0x5C6D],
- ["C94B",0x5C6E],
- ["A4D9",0x5C6F],
- ["A473",0x5C71],
- ["C977",0x5C73],
- ["C976",0x5C74],
- ["A67A",0x5C79],
- ["C9D7",0x5C7A],
- ["C9D8",0x5C7B],
- ["C9D6",0x5C7C],
- ["C9D9",0x5C7E],
- ["CAC7",0x5C86],
- ["CAC2",0x5C88],
- ["CAC4",0x5C89],
- ["CAC6",0x5C8A],
- ["CAC3",0x5C8B],
- ["A7C4",0x5C8C],
- ["CAC0",0x5C8D],
- ["CAC1",0x5C8F],
- ["A7C1",0x5C90],
- ["A7C2",0x5C91],
- ["CAC5",0x5C92],
- ["CAC8",0x5C93],
- ["A7C3",0x5C94],
- ["CAC9",0x5C95],
- ["CC68",0x5C9D],
- ["CC62",0x5C9F],
- ["CC5D",0x5CA0],
- ["A9A3",0x5CA1],
- ["CC65",0x5CA2],
- ["CC63",0x5CA3],
- ["CC5C",0x5CA4],
- ["CC69",0x5CA5],
- ["CC6C",0x5CA6],
- ["CC67",0x5CA7],
- ["CC60",0x5CA8],
- ["A9A5",0x5CA9],
- ["CC66",0x5CAA],
- ["A9A6",0x5CAB],
- ["CC61",0x5CAC],
- ["CC64",0x5CAD],
- ["CC5B",0x5CAE],
- ["CC5F",0x5CAF],
- ["CC6B",0x5CB0],
- ["A9A7",0x5CB1],
- ["A9A8",0x5CB3],
- ["CC5E",0x5CB5],
- ["CC6A",0x5CB6],
- ["A9A2",0x5CB7],
- ["A9A4",0x5CB8],
- ["CEAB",0x5CC6],
- ["CEA4",0x5CC7],
- ["CEAA",0x5CC8],
- ["CEA3",0x5CC9],
- ["CEA5",0x5CCA],
- ["CE7D",0x5CCB],
- ["CE7B",0x5CCC],
- ["CEAC",0x5CCE],
- ["CEA9",0x5CCF],
- ["CE79",0x5CD0],
- ["ABD0",0x5CD2],
- ["CEA7",0x5CD3],
- ["CEA8",0x5CD4],
- ["CEA6",0x5CD6],
- ["CE7C",0x5CD7],
- ["CE7A",0x5CD8],
- ["ABCF",0x5CD9],
- ["CEA2",0x5CDA],
- ["CE7E",0x5CDB],
- ["CEA1",0x5CDE],
- ["CEAD",0x5CDF],
- ["AE6F",0x5CE8],
- ["AE6E",0x5CEA],
- ["D16C",0x5CEC],
+ ["AE6A",0x5C50],
["AE6B",0x5CED],
- ["D16E",0x5CEE],
+ ["AE6C",0x5CFD],
+ ["AE6D",0x5CFB],
+ ["AE6E",0x5CEA],
+ ["AE6F",0x5CE8],
["AE70",0x5CF0],
- ["D16F",0x5CF1],
- ["AE73",0x5CF4],
["AE71",0x5CF6],
- ["D170",0x5CF7],
- ["CEAE",0x5CF8],
- ["D172",0x5CF9],
- ["AE6D",0x5CFB],
- ["AE6C",0x5CFD],
- ["D16D",0x5CFF],
- ["D171",0x5D00],
["AE72",0x5D01],
- ["B153",0x5D06],
+ ["AE73",0x5CF4],
+ ["AE74",0x5DEE],
+ ["AE75",0x5E2D],
+ ["AE76",0x5E2B],
+ ["AE77",0x5EAB],
+ ["AE78",0x5EAD],
+ ["AE79",0x5EA7],
+ ["AE7A",0x5F31],
+ ["AE7B",0x5F92],
+ ["AE7C",0x5F91],
+ ["AE7D",0x5F90],
+ ["AE7E",0x6059],
+ ["AEA1",0x6063],
+ ["AEA2",0x6065],
+ ["AEA3",0x6050],
+ ["AEA4",0x6055],
+ ["AEA5",0x606D],
+ ["AEA6",0x6069],
+ ["AEA7",0x606F],
+ ["AEA8",0x6084],
+ ["AEA9",0x609F],
+ ["AEAA",0x609A],
+ ["AEAB",0x608D],
+ ["AEAC",0x6094],
+ ["AEAD",0x608C],
+ ["AEAE",0x6085],
+ ["AEAF",0x6096],
+ ["AEB0",0x6247],
+ ["AEB1",0x62F3],
+ ["AEB2",0x6308],
+ ["AEB3",0x62FF],
+ ["AEB4",0x634E],
+ ["AEB5",0x633E],
+ ["AEB6",0x632F],
+ ["AEB7",0x6355],
+ ["AEB8",0x6342],
+ ["AEB9",0x6346],
+ ["AEBA",0x634F],
+ ["AEBB",0x6349],
+ ["AEBC",0x633A],
+ ["AEBD",0x6350],
+ ["AEBE",0x633D],
+ ["AEBF",0x632A],
+ ["AEC0",0x632B],
+ ["AEC1",0x6328],
+ ["AEC2",0x634D],
+ ["AEC3",0x634C],
+ ["AEC4",0x6548],
+ ["AEC5",0x6549],
+ ["AEC6",0x6599],
+ ["AEC7",0x65C1],
+ ["AEC8",0x65C5],
+ ["AEC9",0x6642],
+ ["AECA",0x6649],
+ ["AECB",0x664F],
+ ["AECC",0x6643],
+ ["AECD",0x6652],
+ ["AECE",0x664C],
+ ["AECF",0x6645],
+ ["AED0",0x6641],
+ ["AED1",0x66F8],
+ ["AED2",0x6714],
+ ["AED3",0x6715],
+ ["AED4",0x6717],
+ ["AED5",0x6821],
+ ["AED6",0x6838],
+ ["AED7",0x6848],
+ ["AED8",0x6846],
+ ["AED9",0x6853],
+ ["AEDA",0x6839],
+ ["AEDB",0x6842],
+ ["AEDC",0x6854],
+ ["AEDD",0x6829],
+ ["AEDE",0x68B3],
+ ["AEDF",0x6817],
+ ["AEE0",0x684C],
+ ["AEE1",0x6851],
+ ["AEE2",0x683D],
+ ["AEE3",0x67F4],
+ ["AEE4",0x6850],
+ ["AEE5",0x6840],
+ ["AEE6",0x683C],
+ ["AEE7",0x6843],
+ ["AEE8",0x682A],
+ ["AEE9",0x6845],
+ ["AEEA",0x6813],
+ ["AEEB",0x6818],
+ ["AEEC",0x6841],
+ ["AEED",0x6B8A],
+ ["AEEE",0x6B89],
+ ["AEEF",0x6BB7],
+ ["AEF0",0x6C23],
+ ["AEF1",0x6C27],
+ ["AEF2",0x6C28],
+ ["AEF3",0x6C26],
+ ["AEF4",0x6C24],
+ ["AEF5",0x6CF0],
+ ["AEF6",0x6D6A],
+ ["AEF7",0x6D95],
+ ["AEF8",0x6D88],
+ ["AEF9",0x6D87],
+ ["AEFA",0x6D66],
+ ["AEFB",0x6D78],
+ ["AEFC",0x6D77],
+ ["AEFD",0x6D59],
+ ["AEFE",0x6D93],
+ ["AF40",0x6D6C],
+ ["AF41",0x6D89],
+ ["AF42",0x6D6E],
+ ["AF43",0x6D5A],
+ ["AF44",0x6D74],
+ ["AF45",0x6D69],
+ ["AF46",0x6D8C],
+ ["AF47",0x6D8A],
+ ["AF48",0x6D79],
+ ["AF49",0x6D85],
+ ["AF4A",0x6D65],
+ ["AF4B",0x6D94],
+ ["AF4C",0x70CA],
+ ["AF4D",0x70D8],
+ ["AF4E",0x70E4],
+ ["AF4F",0x70D9],
+ ["AF50",0x70C8],
+ ["AF51",0x70CF],
+ ["AF52",0x7239],
+ ["AF53",0x7279],
+ ["AF54",0x72FC],
+ ["AF55",0x72F9],
+ ["AF56",0x72FD],
+ ["AF57",0x72F8],
+ ["AF58",0x72F7],
+ ["AF59",0x7386],
+ ["AF5A",0x73ED],
+ ["AF5B",0x7409],
+ ["AF5C",0x73EE],
+ ["AF5D",0x73E0],
+ ["AF5E",0x73EA],
+ ["AF5F",0x73DE],
+ ["AF60",0x7554],
+ ["AF61",0x755D],
+ ["AF62",0x755C],
+ ["AF63",0x755A],
+ ["AF64",0x7559],
+ ["AF65",0x75BE],
+ ["AF66",0x75C5],
+ ["AF67",0x75C7],
+ ["AF68",0x75B2],
+ ["AF69",0x75B3],
+ ["AF6A",0x75BD],
+ ["AF6B",0x75BC],
+ ["AF6C",0x75B9],
+ ["AF6D",0x75C2],
+ ["AF6E",0x75B8],
+ ["AF6F",0x768B],
+ ["AF70",0x76B0],
+ ["AF71",0x76CA],
+ ["AF72",0x76CD],
+ ["AF73",0x76CE],
+ ["AF74",0x7729],
+ ["AF75",0x771F],
+ ["AF76",0x7720],
+ ["AF77",0x7728],
+ ["AF78",0x77E9],
+ ["AF79",0x7830],
+ ["AF7A",0x7827],
+ ["AF7B",0x7838],
+ ["AF7C",0x781D],
+ ["AF7D",0x7834],
+ ["AF7E",0x7837],
+ ["AFA1",0x7825],
+ ["AFA2",0x782D],
+ ["AFA3",0x7820],
+ ["AFA4",0x781F],
+ ["AFA5",0x7832],
+ ["AFA6",0x7955],
+ ["AFA7",0x7950],
+ ["AFA8",0x7960],
+ ["AFA9",0x795F],
+ ["AFAA",0x7956],
+ ["AFAB",0x795E],
+ ["AFAC",0x795D],
+ ["AFAD",0x7957],
+ ["AFAE",0x795A],
+ ["AFAF",0x79E4],
+ ["AFB0",0x79E3],
+ ["AFB1",0x79E7],
+ ["AFB2",0x79DF],
+ ["AFB3",0x79E6],
+ ["AFB4",0x79E9],
+ ["AFB5",0x79D8],
+ ["AFB6",0x7A84],
+ ["AFB7",0x7A88],
+ ["AFB8",0x7AD9],
+ ["AFB9",0x7B06],
+ ["AFBA",0x7B11],
+ ["AFBB",0x7C89],
+ ["AFBC",0x7D21],
+ ["AFBD",0x7D17],
+ ["AFBE",0x7D0B],
+ ["AFBF",0x7D0A],
+ ["AFC0",0x7D20],
+ ["AFC1",0x7D22],
+ ["AFC2",0x7D14],
+ ["AFC3",0x7D10],
+ ["AFC4",0x7D15],
+ ["AFC5",0x7D1A],
+ ["AFC6",0x7D1C],
+ ["AFC7",0x7D0D],
+ ["AFC8",0x7D19],
+ ["AFC9",0x7D1B],
+ ["AFCA",0x7F3A],
+ ["AFCB",0x7F5F],
+ ["AFCC",0x7F94],
+ ["AFCD",0x7FC5],
+ ["AFCE",0x7FC1],
+ ["AFCF",0x8006],
+ ["AFD0",0x8018],
+ ["AFD1",0x8015],
+ ["AFD2",0x8019],
+ ["AFD3",0x8017],
+ ["AFD4",0x803D],
+ ["AFD5",0x803F],
+ ["AFD6",0x80F1],
+ ["AFD7",0x8102],
+ ["AFD8",0x80F0],
+ ["AFD9",0x8105],
+ ["AFDA",0x80ED],
+ ["AFDB",0x80F4],
+ ["AFDC",0x8106],
+ ["AFDD",0x80F8],
+ ["AFDE",0x80F3],
+ ["AFDF",0x8108],
+ ["AFE0",0x80FD],
+ ["AFE1",0x810A],
+ ["AFE2",0x80FC],
+ ["AFE3",0x80EF],
+ ["AFE4",0x81ED],
+ ["AFE5",0x81EC],
+ ["AFE6",0x8200],
+ ["AFE7",0x8210],
+ ["AFE8",0x822A],
+ ["AFE9",0x822B],
+ ["AFEA",0x8228],
+ ["AFEB",0x822C],
+ ["AFEC",0x82BB],
+ ["AFED",0x832B],
+ ["AFEE",0x8352],
+ ["AFEF",0x8354],
+ ["AFF0",0x834A],
+ ["AFF1",0x8338],
+ ["AFF2",0x8350],
+ ["AFF3",0x8349],
+ ["AFF4",0x8335],
+ ["AFF5",0x8334],
+ ["AFF6",0x834F],
+ ["AFF7",0x8332],
+ ["AFF8",0x8339],
+ ["AFF9",0x8336],
+ ["AFFA",0x8317],
+ ["AFFB",0x8340],
+ ["AFFC",0x8331],
+ ["AFFD",0x8328],
+ ["AFFE",0x8343],
+ ["B040",0x8654],
+ ["B041",0x868A],
+ ["B042",0x86AA],
+ ["B043",0x8693],
+ ["B044",0x86A4],
+ ["B045",0x86A9],
+ ["B046",0x868C],
+ ["B047",0x86A3],
+ ["B048",0x869C],
+ ["B049",0x8870],
+ ["B04A",0x8877],
+ ["B04B",0x8881],
+ ["B04C",0x8882],
+ ["B04D",0x887D],
+ ["B04E",0x8879],
+ ["B04F",0x8A18],
+ ["B050",0x8A10],
+ ["B051",0x8A0E],
+ ["B052",0x8A0C],
+ ["B053",0x8A15],
+ ["B054",0x8A0A],
+ ["B055",0x8A17],
+ ["B056",0x8A13],
+ ["B057",0x8A16],
+ ["B058",0x8A0F],
+ ["B059",0x8A11],
+ ["B05A",0x8C48],
+ ["B05B",0x8C7A],
+ ["B05C",0x8C79],
+ ["B05D",0x8CA1],
+ ["B05E",0x8CA2],
+ ["B05F",0x8D77],
+ ["B060",0x8EAC],
+ ["B061",0x8ED2],
+ ["B062",0x8ED4],
+ ["B063",0x8ECF],
+ ["B064",0x8FB1],
+ ["B065",0x9001],
+ ["B066",0x9006],
+ ["B067",0x8FF7],
+ ["B068",0x9000],
+ ["B069",0x8FFA],
+ ["B06A",0x8FF4],
+ ["B06B",0x9003],
+ ["B06C",0x8FFD],
+ ["B06D",0x9005],
+ ["B06E",0x8FF8],
+ ["B06F",0x9095],
+ ["B070",0x90E1],
+ ["B071",0x90DD],
+ ["B072",0x90E2],
+ ["B073",0x9152],
+ ["B074",0x914D],
+ ["B075",0x914C],
+ ["B076",0x91D8],
+ ["B077",0x91DD],
+ ["B078",0x91D7],
+ ["B079",0x91DC],
+ ["B07A",0x91D9],
+ ["B07B",0x9583],
+ ["B07C",0x9662],
+ ["B07D",0x9663],
+ ["B07E",0x9661],
+ ["B0A1",0x965B],
+ ["B0A2",0x965D],
+ ["B0A3",0x9664],
+ ["B0A4",0x9658],
+ ["B0A5",0x965E],
+ ["B0A6",0x96BB],
+ ["B0A7",0x98E2],
+ ["B0A8",0x99AC],
+ ["B0A9",0x9AA8],
+ ["B0AA",0x9AD8],
+ ["B0AB",0x9B25],
+ ["B0AC",0x9B32],
+ ["B0AD",0x9B3C],
+ ["B0AE",0x4E7E],
+ ["B0AF",0x507A],
+ ["B0B0",0x507D],
+ ["B0B1",0x505C],
+ ["B0B2",0x5047],
+ ["B0B3",0x5043],
+ ["B0B4",0x504C],
+ ["B0B5",0x505A],
+ ["B0B6",0x5049],
+ ["B0B7",0x5065],
+ ["B0B8",0x5076],
+ ["B0B9",0x504E],
+ ["B0BA",0x5055],
+ ["B0BB",0x5075],
+ ["B0BC",0x5074],
+ ["B0BD",0x5077],
+ ["B0BE",0x504F],
+ ["B0BF",0x500F],
+ ["B0C0",0x506F],
+ ["B0C1",0x506D],
+ ["B0C2",0x515C],
+ ["B0C3",0x5195],
+ ["B0C4",0x51F0],
+ ["B0C5",0x526A],
+ ["B0C6",0x526F],
+ ["B0C7",0x52D2],
+ ["B0C8",0x52D9],
+ ["B0C9",0x52D8],
+ ["B0CA",0x52D5],
+ ["B0CB",0x5310],
+ ["B0CC",0x530F],
+ ["B0CD",0x5319],
+ ["B0CE",0x533F],
+ ["B0CF",0x5340],
+ ["B0D0",0x533E],
+ ["B0D1",0x53C3],
+ ["B0D2",0x66FC],
+ ["B0D3",0x5546],
+ ["B0D4",0x556A],
+ ["B0D5",0x5566],
+ ["B0D6",0x5544],
+ ["B0D7",0x555E],
+ ["B0D8",0x5561],
+ ["B0D9",0x5543],
+ ["B0DA",0x554A],
+ ["B0DB",0x5531],
+ ["B0DC",0x5556],
+ ["B0DD",0x554F],
+ ["B0DE",0x5555],
+ ["B0DF",0x552F],
+ ["B0E0",0x5564],
+ ["B0E1",0x5538],
+ ["B0E2",0x552E],
+ ["B0E3",0x555C],
+ ["B0E4",0x552C],
+ ["B0E5",0x5563],
+ ["B0E6",0x5533],
+ ["B0E7",0x5541],
+ ["B0E8",0x5557],
+ ["B0E9",0x5708],
+ ["B0EA",0x570B],
+ ["B0EB",0x5709],
+ ["B0EC",0x57DF],
+ ["B0ED",0x5805],
+ ["B0EE",0x580A],
+ ["B0EF",0x5806],
+ ["B0F0",0x57E0],
+ ["B0F1",0x57E4],
+ ["B0F2",0x57FA],
+ ["B0F3",0x5802],
+ ["B0F4",0x5835],
+ ["B0F5",0x57F7],
+ ["B0F6",0x57F9],
+ ["B0F7",0x5920],
+ ["B0F8",0x5962],
+ ["B0F9",0x5A36],
+ ["B0FA",0x5A41],
+ ["B0FB",0x5A49],
+ ["B0FC",0x5A66],
+ ["B0FD",0x5A6A],
+ ["B0FE",0x5A40],
+ ["B140",0x5A3C],
+ ["B141",0x5A62],
+ ["B142",0x5A5A],
+ ["B143",0x5A46],
+ ["B144",0x5A4A],
+ ["B145",0x5B70],
+ ["B146",0x5BC7],
+ ["B147",0x5BC5],
+ ["B148",0x5BC4],
+ ["B149",0x5BC2],
+ ["B14A",0x5BBF],
+ ["B14B",0x5BC6],
+ ["B14C",0x5C09],
+ ["B14D",0x5C08],
+ ["B14E",0x5C07],
+ ["B14F",0x5C60],
+ ["B150",0x5C5C],
+ ["B151",0x5C5D],
["B152",0x5D07],
- ["D4F5",0x5D0B],
- ["D4F9",0x5D0C],
- ["D4FB",0x5D0D],
+ ["B153",0x5D06],
["B154",0x5D0E],
- ["D4FE",0x5D0F],
+ ["B155",0x5D1B],
+ ["B156",0x5D16],
+ ["B157",0x5D22],
["B158",0x5D11],
- ["D541",0x5D12],
+ ["B159",0x5D29],
["B15A",0x5D14],
- ["B156",0x5D16],
- ["B15E",0x5D17],
["B15B",0x5D19],
- ["D4F7",0x5D1A],
- ["B155",0x5D1B],
- ["D4F6",0x5D1D],
- ["D4F4",0x5D1E],
- ["D543",0x5D1F],
- ["D4F8",0x5D20],
- ["B157",0x5D22],
- ["D542",0x5D23],
["B15C",0x5D24],
- ["D4FD",0x5D25],
- ["D4FC",0x5D26],
["B15D",0x5D27],
- ["D4FA",0x5D28],
- ["B159",0x5D29],
- ["D544",0x5D2E],
- ["D540",0x5D30],
- ["D8E7",0x5D31],
- ["D8EE",0x5D32],
- ["D8E3",0x5D33],
- ["B451",0x5D34],
- ["D8DF",0x5D35],
- ["D8EF",0x5D36],
- ["D8D9",0x5D37],
- ["D8EC",0x5D38],
- ["D8EA",0x5D39],
- ["D8E4",0x5D3A],
- ["D8ED",0x5D3C],
- ["D8E6",0x5D3D],
- ["D8DE",0x5D3F],
- ["D8F0",0x5D40],
- ["D8DC",0x5D41],
- ["D8E9",0x5D42],
- ["D8DA",0x5D43],
- ["D8F1",0x5D45],
- ["B452",0x5D47],
- ["D8EB",0x5D49],
- ["DD4F",0x5D4A],
- ["D8DD",0x5D4B],
- ["B44F",0x5D4C],
- ["D8E1",0x5D4E],
- ["B450",0x5D50],
- ["D8E0",0x5D51],
- ["D8E5",0x5D52],
- ["D8E2",0x5D55],
- ["D8E8",0x5D59],
- ["DD53",0x5D5E],
- ["DD56",0x5D62],
- ["DD4E",0x5D63],
- ["DD50",0x5D65],
- ["DD55",0x5D67],
- ["DD54",0x5D68],
- ["B743",0x5D69],
- ["D8DB",0x5D6B],
- ["DD52",0x5D6C],
- ["B744",0x5D6F],
- ["DD4D",0x5D71],
- ["DD51",0x5D72],
- ["E1A9",0x5D77],
- ["E1B0",0x5D79],
- ["E1A7",0x5D7A],
- ["E1AE",0x5D7C],
- ["E1A5",0x5D7D],
- ["E1AD",0x5D7E],
- ["E1B1",0x5D7F],
- ["E1A4",0x5D80],
- ["E1A8",0x5D81],
- ["E1A3",0x5D82],
- ["B9F1",0x5D84],
- ["E1A6",0x5D86],
- ["B9F2",0x5D87],
- ["E1AC",0x5D88],
- ["E1AB",0x5D89],
- ["E1AA",0x5D8A],
- ["E1AF",0x5D8D],
- ["E565",0x5D92],
- ["E567",0x5D93],
- ["BC6B",0x5D94],
- ["E568",0x5D95],
- ["E563",0x5D97],
- ["E562",0x5D99],
- ["E56C",0x5D9A],
- ["E56A",0x5D9C],
- ["BC6A",0x5D9D],
- ["E56D",0x5D9E],
- ["E564",0x5D9F],
- ["E569",0x5DA0],
- ["E56B",0x5DA1],
- ["E566",0x5DA2],
- ["E961",0x5DA7],
- ["E966",0x5DA8],
- ["E960",0x5DA9],
- ["E965",0x5DAA],
- ["E95E",0x5DAC],
- ["E968",0x5DAD],
- ["E964",0x5DAE],
- ["E969",0x5DAF],
- ["E963",0x5DB0],
- ["E95F",0x5DB1],
- ["E967",0x5DB2],
- ["E96A",0x5DB4],
- ["E962",0x5DB5],
- ["ECDA",0x5DB7],
- ["C0AF",0x5DB8],
- ["C0AD",0x5DBA],
- ["C0AC",0x5DBC],
- ["C0AE",0x5DBD],
- ["EFC4",0x5DC0],
- ["F172",0x5DC2],
- ["F1FD",0x5DC3],
- ["F444",0x5DC6],
- ["F445",0x5DC7],
- ["C460",0x5DC9],
- ["F5C9",0x5DCB],
- ["C4DE",0x5DCD],
- ["F5CA",0x5DCF],
- ["F6DE",0x5DD1],
- ["C572",0x5DD2],
- ["C571",0x5DD4],
- ["F6DD",0x5DD5],
- ["C5C9",0x5DD6],
- ["F7D6",0x5DD8],
- ["A474",0x5DDD],
- ["A67B",0x5DDE],
- ["C9DA",0x5DDF],
- ["CACA",0x5DE0],
- ["A8B5",0x5DE1],
+ ["B15E",0x5D17],
["B15F",0x5DE2],
- ["A475",0x5DE5],
- ["A5AA",0x5DE6],
- ["A5A9",0x5DE7],
- ["A5A8",0x5DE8],
- ["A7C5",0x5DEB],
- ["AE74",0x5DEE],
- ["DD57",0x5DF0],
- ["A476",0x5DF1],
- ["A477",0x5DF2],
- ["A478",0x5DF3],
- ["A4DA",0x5DF4],
- ["ABD1",0x5DF7],
- ["CEAF",0x5DF9],
- ["B453",0x5DFD],
- ["A479",0x5DFE],
- ["C95D",0x5DFF],
- ["A5AB",0x5E02],
- ["A5AC",0x5E03],
- ["C978",0x5E04],
- ["A67C",0x5E06],
- ["CACB",0x5E0A],
- ["A7C6",0x5E0C],
- ["CACC",0x5E0E],
- ["A9AE",0x5E11],
- ["CC6E",0x5E14],
- ["A9AC",0x5E15],
- ["A9AB",0x5E16],
- ["CC6D",0x5E17],
- ["A9A9",0x5E18],
- ["CC6F",0x5E19],
- ["A9AA",0x5E1A],
- ["A9AD",0x5E1B],
- ["ABD2",0x5E1D],
- ["ABD4",0x5E1F],
- ["CEB3",0x5E20],
- ["CEB0",0x5E21],
- ["CEB1",0x5E22],
- ["CEB2",0x5E23],
- ["CEB4",0x5E24],
- ["ABD3",0x5E25],
- ["D174",0x5E28],
- ["D173",0x5E29],
- ["AE76",0x5E2B],
- ["AE75",0x5E2D],
- ["B162",0x5E33],
- ["D546",0x5E34],
+ ["B160",0x5E38],
["B161",0x5E36],
+ ["B162",0x5E33],
["B163",0x5E37],
- ["B160",0x5E38],
- ["B455",0x5E3D],
- ["D545",0x5E3E],
- ["B456",0x5E40],
- ["D8F3",0x5E41],
- ["B457",0x5E43],
- ["D8F2",0x5E44],
- ["B454",0x5E45],
- ["DD5A",0x5E4A],
- ["DD5C",0x5E4B],
- ["B745",0x5E4C],
- ["DD5B",0x5E4D],
- ["DD59",0x5E4E],
- ["DD58",0x5E4F],
- ["E1B4",0x5E53],
- ["B9F7",0x5E54],
- ["B9F5",0x5E55],
- ["B9F6",0x5E57],
- ["E1B2",0x5E58],
- ["E1B3",0x5E59],
- ["B9F3",0x5E5B],
- ["E571",0x5E5C],
- ["E56F",0x5E5D],
- ["BC6D",0x5E5F],
- ["E570",0x5E60],
- ["BC6E",0x5E61],
- ["BC6C",0x5E62],
- ["B9F4",0x5E63],
- ["E96D",0x5E66],
- ["E96B",0x5E67],
- ["E96C",0x5E68],
- ["E56E",0x5E69],
- ["ECDC",0x5E6A],
- ["C0B0",0x5E6B],
- ["ECDB",0x5E6C],
- ["EFC5",0x5E6D],
- ["EFC6",0x5E6E],
- ["E96E",0x5E6F],
- ["F1FE",0x5E70],
- ["A47A",0x5E72],
- ["A5AD",0x5E73],
- ["A67E",0x5E74],
- ["C9DB",0x5E75],
- ["A67D",0x5E76],
- ["A9AF",0x5E78],
- ["B746",0x5E79],
- ["A4DB",0x5E7B],
- ["A5AE",0x5E7C],
- ["ABD5",0x5E7D],
- ["B458",0x5E7E],
- ["C979",0x5E80],
- ["C97A",0x5E82],
- ["C9DC",0x5E84],
- ["A7C8",0x5E87],
- ["CAD0",0x5E88],
- ["CACE",0x5E89],
- ["A7C9",0x5E8A],
- ["CACD",0x5E8B],
- ["CACF",0x5E8C],
- ["CAD1",0x5E8D],
- ["A7C7",0x5E8F],
- ["A9B3",0x5E95],
- ["A9B4",0x5E96],
- ["A9B1",0x5E97],
- ["A9B0",0x5E9A],
- ["CEB8",0x5E9B],
- ["A9B2",0x5E9C],
- ["ABD6",0x5EA0],
- ["CEB7",0x5EA2],
- ["CEB9",0x5EA3],
- ["CEB6",0x5EA4],
- ["CEBA",0x5EA5],
- ["ABD7",0x5EA6],
- ["AE79",0x5EA7],
- ["D175",0x5EA8],
- ["D177",0x5EAA],
- ["AE77",0x5EAB],
- ["D178",0x5EAC],
- ["AE78",0x5EAD],
- ["D176",0x5EAE],
- ["CEB5",0x5EB0],
- ["D547",0x5EB1],
- ["D54A",0x5EB2],
- ["D54B",0x5EB3],
- ["D548",0x5EB4],
- ["B167",0x5EB5],
- ["B166",0x5EB6],
["B164",0x5EB7],
["B165",0x5EB8],
- ["D549",0x5EB9],
+ ["B166",0x5EB6],
+ ["B167",0x5EB5],
["B168",0x5EBE],
- ["B45A",0x5EC1],
- ["B45B",0x5EC2],
- ["B45C",0x5EC4],
- ["DD5D",0x5EC5],
- ["DD5F",0x5EC6],
- ["DD61",0x5EC7],
- ["B748",0x5EC8],
- ["B747",0x5EC9],
- ["B459",0x5ECA],
- ["DD60",0x5ECB],
- ["DD5E",0x5ECC],
- ["E1B8",0x5ECE],
- ["E1B6",0x5ED1],
- ["E1BC",0x5ED2],
- ["B9F8",0x5ED3],
- ["E1BD",0x5ED4],
- ["E1BA",0x5ED5],
- ["B9F9",0x5ED6],
- ["E1B7",0x5ED7],
- ["E1B5",0x5ED8],
- ["E1BB",0x5ED9],
- ["BC70",0x5EDA],
- ["E573",0x5EDB],
- ["E1B9",0x5EDC],
- ["BC72",0x5EDD],
- ["E574",0x5EDE],
- ["BC71",0x5EDF],
- ["BC74",0x5EE0],
- ["E575",0x5EE1],
- ["BC6F",0x5EE2],
- ["BC73",0x5EE3],
- ["E973",0x5EE5],
- ["E971",0x5EE6],
- ["E970",0x5EE7],
- ["E972",0x5EE8],
- ["E96F",0x5EE9],
- ["C366",0x5EEC],
- ["F446",0x5EEE],
- ["F447",0x5EEF],
- ["F5CB",0x5EF1],
- ["F6DF",0x5EF2],
- ["C655",0x5EF3],
- ["A9B5",0x5EF6],
- ["A7CA",0x5EF7],
- ["ABD8",0x5EFA],
- ["A47B",0x5EFE],
- ["A4DC",0x5EFF],
- ["A5AF",0x5F01],
- ["C9DD",0x5F02],
- ["A7CB",0x5F04],
- ["CAD2",0x5F05],
- ["CEBB",0x5F07],
- ["ABD9",0x5F08],
- ["B9FA",0x5F0A],
- ["A47C",0x5F0B],
- ["A6A1",0x5F0F],
- ["B749",0x5F12],
- ["A47D",0x5F13],
- ["A4DD",0x5F14],
- ["A4DE",0x5F15],
- ["A5B1",0x5F17],
- ["A5B0",0x5F18],
- ["C9DE",0x5F1A],
- ["A6A2",0x5F1B],
- ["CAD3",0x5F1D],
- ["A7CC",0x5F1F],
- ["CC71",0x5F22],
- ["CC72",0x5F23],
- ["CC73",0x5F24],
- ["A9B6",0x5F26],
- ["A9B7",0x5F27],
- ["CC70",0x5F28],
- ["A9B8",0x5F29],
- ["ABDA",0x5F2D],
- ["CEBC",0x5F2E],
- ["D17A",0x5F30],
- ["AE7A",0x5F31],
- ["D179",0x5F33],
["B169",0x5F35],
- ["D54C",0x5F36],
["B16A",0x5F37],
- ["D54D",0x5F38],
- ["B45D",0x5F3C],
- ["DD62",0x5F40],
- ["E1BF",0x5F43],
- ["E1BE",0x5F44],
- ["B9FB",0x5F46],
- ["BC75",0x5F48],
- ["E576",0x5F49],
- ["BECA",0x5F4A],
- ["E974",0x5F4B],
- ["C0B1",0x5F4C],
- ["C573",0x5F4E],
- ["F7D8",0x5F4F],
- ["CC74",0x5F54],
- ["CEBD",0x5F56],
["B16B",0x5F57],
- ["D8F4",0x5F58],
- ["B74A",0x5F59],
- ["C255",0x5F5D],
- ["A7CE",0x5F62],
- ["A7CD",0x5F64],
- ["ABDB",0x5F65],
- ["D17B",0x5F67],
+ ["B16C",0x5F6C],
["B16D",0x5F69],
- ["B343",0x5F6A],
["B16E",0x5F6B],
- ["B16C",0x5F6C],
- ["B45E",0x5F6D],
- ["E1C0",0x5F6F],
- ["B9FC",0x5F70],
- ["BC76",0x5F71],
- ["C94C",0x5F73],
- ["C9DF",0x5F74],
- ["CAD5",0x5F76],
- ["A7CF",0x5F77],
- ["CAD4",0x5F78],
- ["A7D0",0x5F79],
- ["A9BC",0x5F7C],
- ["CC77",0x5F7D],
- ["CC76",0x5F7E],
- ["A9BB",0x5F7F],
- ["A9B9",0x5F80],
- ["A9BA",0x5F81],
- ["CC75",0x5F82],
- ["ABDD",0x5F85],
- ["CEBE",0x5F86],
- ["ABE0",0x5F87],
- ["ABDC",0x5F88],
- ["ABE2",0x5F89],
- ["ABDE",0x5F8A],
- ["ABDF",0x5F8B],
- ["ABE1",0x5F8C],
- ["AE7D",0x5F90],
- ["AE7C",0x5F91],
- ["AE7B",0x5F92],
- ["D54F",0x5F96],
["B16F",0x5F97],
- ["B172",0x5F98],
["B170",0x5F99],
- ["D54E",0x5F9B],
- ["B175",0x5F9C],
["B171",0x5F9E],
- ["D550",0x5F9F],
- ["B174",0x5FA0],
+ ["B172",0x5F98],
["B173",0x5FA1],
- ["D8F6",0x5FA5],
- ["D8F5",0x5FA6],
- ["B461",0x5FA8],
- ["B45F",0x5FA9],
- ["B460",0x5FAA],
- ["D8F7",0x5FAB],
- ["B74B",0x5FAC],
- ["DD64",0x5FAD],
- ["B74C",0x5FAE],
- ["DD63",0x5FAF],
- ["E577",0x5FB2],
- ["BC78",0x5FB5],
- ["E1C1",0x5FB6],
- ["BC77",0x5FB7],
- ["B9FD",0x5FB9],
- ["ECDE",0x5FBB],
- ["E975",0x5FBC],
- ["C0B2",0x5FBD],
- ["ECDD",0x5FBE],
- ["F240",0x5FBF],
- ["F448",0x5FC0],
- ["F449",0x5FC1],
- ["A4DF",0x5FC3],
- ["A5B2",0x5FC5],
- ["C97B",0x5FC9],
- ["A7D2",0x5FCC],
- ["A7D4",0x5FCD],
- ["C9E2",0x5FCF],
- ["CAD8",0x5FD0],
- ["CAD7",0x5FD1],
- ["CAD6",0x5FD2],
- ["C9E1",0x5FD4],
- ["C9E0",0x5FD5],
- ["A6A4",0x5FD6],
- ["A7D3",0x5FD7],
- ["A7D1",0x5FD8],
- ["A6A3",0x5FD9],
- ["A9BD",0x5FDD],
- ["CC78",0x5FDE],
- ["A9BE",0x5FE0],
- ["CADD",0x5FE1],
- ["CADF",0x5FE3],
- ["CADE",0x5FE4],
- ["CC79",0x5FE5],
- ["CADA",0x5FE8],
- ["A7D8",0x5FEA],
- ["A7D6",0x5FEB],
- ["CAD9",0x5FED],
- ["CADB",0x5FEE],
- ["CAE1",0x5FEF],
- ["A7D5",0x5FF1],
- ["CADC",0x5FF3],
- ["CAE5",0x5FF4],
- ["A9C0",0x5FF5],
- ["CAE2",0x5FF7],
- ["A7D7",0x5FF8],
- ["CAE0",0x5FFA],
- ["CAE3",0x5FFB],
- ["A9BF",0x5FFD],
- ["A9C1",0x5FFF],
- ["CAE4",0x6000],
- ["CCAF",0x6009],
- ["CCA2",0x600A],
- ["CC7E",0x600B],
- ["CCAE",0x600C],
- ["CCA9",0x600D],
- ["ABE7",0x600E],
- ["A9C2",0x600F],
- ["CCAA",0x6010],
- ["CCAD",0x6011],
- ["ABE3",0x6012],
- ["CCAC",0x6013],
- ["A9C3",0x6014],
- ["A9C8",0x6015],
- ["A9C6",0x6016],
- ["CCA3",0x6017],
- ["CC7C",0x6019],
- ["CCA5",0x601A],
- ["A9CD",0x601B],
- ["CCB0",0x601C],
- ["ABE4",0x601D],
- ["CCA6",0x601E],
- ["ABE5",0x6020],
- ["A9C9",0x6021],
- ["CCA8",0x6022],
- ["CECD",0x6024],
- ["ABE6",0x6025],
- ["CC7B",0x6026],
- ["A9CA",0x6027],
- ["ABE8",0x6028],
- ["A9CB",0x6029],
- ["A9C7",0x602A],
- ["A9CC",0x602B],
- ["CCA7",0x602C],
- ["CC7A",0x602D],
- ["CCAB",0x602E],
- ["A9C4",0x602F],
- ["CC7D",0x6032],
- ["CCA4",0x6033],
- ["CCA1",0x6034],
- ["A9C5",0x6035],
- ["CEBF",0x6037],
- ["CEC0",0x6039],
- ["CECA",0x6040],
- ["D1A1",0x6041],
- ["CECB",0x6042],
- ["ABEE",0x6043],
- ["CECE",0x6044],
- ["CEC4",0x6045],
- ["ABED",0x6046],
- ["CEC6",0x6047],
- ["CEC7",0x6049],
- ["CEC9",0x604C],
- ["ABE9",0x604D],
- ["AEA3",0x6050],
- ["CEC5",0x6053],
- ["CEC1",0x6054],
- ["AEA4",0x6055],
- ["CECF",0x6058],
- ["AE7E",0x6059],
- ["D17D",0x605A],
- ["CEC8",0x605B],
- ["D17C",0x605D],
- ["CEC3",0x605E],
- ["CECC",0x605F],
- ["ABEC",0x6062],
- ["AEA1",0x6063],
- ["ABF2",0x6064],
- ["AEA2",0x6065],
- ["CED0",0x6066],
- ["D17E",0x6067],
- ["ABEB",0x6068],
- ["AEA6",0x6069],
- ["ABF1",0x606A],
- ["ABF0",0x606B],
- ["ABEF",0x606C],
- ["AEA5",0x606D],
- ["CED1",0x606E],
- ["AEA7",0x606F],
- ["ABEA",0x6070],
- ["CEC2",0x6072],
+ ["B174",0x5FA0],
+ ["B175",0x5F9C],
["B176",0x607F],
- ["D1A4",0x6080],
- ["D1A6",0x6081],
- ["D1A8",0x6083],
- ["AEA8",0x6084],
- ["AEAE",0x6085],
- ["D553",0x6086],
- ["D1AC",0x6087],
- ["D1A3",0x6088],
+ ["B177",0x60A3],
["B178",0x6089],
- ["D551",0x608A],
- ["AEAD",0x608C],
- ["AEAB",0x608D],
- ["D1AE",0x608E],
- ["D552",0x6090],
- ["D1A5",0x6092],
- ["AEAC",0x6094],
- ["D1A9",0x6095],
- ["AEAF",0x6096],
- ["D1AB",0x6097],
- ["AEAA",0x609A],
- ["D1AA",0x609B],
- ["D1AD",0x609C],
- ["D1A7",0x609D],
- ["AEA9",0x609F],
["B179",0x60A0],
- ["D1A2",0x60A2],
- ["B177",0x60A3],
["B17A",0x60A8],
- ["D555",0x60B0],
- ["D55E",0x60B1],
- ["B464",0x60B2],
+ ["B17B",0x60CB],
["B17C",0x60B4],
- ["B1A3",0x60B5],
- ["B465",0x60B6],
- ["D560",0x60B7],
- ["B1AA",0x60B8],
- ["D8F9",0x60B9],
- ["D556",0x60BA],
- ["B1A2",0x60BB],
- ["B1A5",0x60BC],
+ ["B17D",0x60E6],
["B17E",0x60BD],
- ["D554",0x60BE],
- ["D562",0x60BF],
- ["D565",0x60C0],
- ["D949",0x60C1],
- ["D563",0x60C3],
- ["D8FD",0x60C4],
["B1A1",0x60C5],
- ["B1A8",0x60C6],
- ["B1AC",0x60C7],
- ["D55D",0x60C8],
- ["D8F8",0x60C9],
- ["D561",0x60CA],
- ["B17B",0x60CB],
- ["D8FA",0x60CC],
- ["D564",0x60CD],
- ["D8FC",0x60CE],
- ["D559",0x60CF],
- ["B462",0x60D1],
- ["D557",0x60D3],
- ["D558",0x60D4],
- ["B1A7",0x60D5],
- ["B1A6",0x60D8],
- ["D55B",0x60D9],
- ["B1AB",0x60DA],
- ["D55F",0x60DB],
+ ["B1A2",0x60BB],
+ ["B1A3",0x60B5],
["B1A4",0x60DC],
- ["D55C",0x60DD],
+ ["B1A5",0x60BC],
+ ["B1A6",0x60D8],
+ ["B1A7",0x60D5],
+ ["B1A8",0x60C6],
["B1A9",0x60DF],
- ["B466",0x60E0],
- ["B463",0x60E1],
- ["D8FB",0x60E2],
- ["D55A",0x60E4],
- ["B17D",0x60E6],
- ["B46B",0x60F0],
- ["B46F",0x60F1],
- ["D940",0x60F2],
- ["B751",0x60F3],
- ["B46D",0x60F4],
- ["D944",0x60F5],
- ["B471",0x60F6],
- ["DD65",0x60F7],
- ["D946",0x60F8],
- ["B753",0x60F9],
- ["B469",0x60FA],
- ["B46C",0x60FB],
- ["D947",0x60FC],
- ["D948",0x60FE],
- ["D94E",0x60FF],
- ["B473",0x6100],
- ["B754",0x6101],
- ["D94A",0x6103],
- ["D94F",0x6104],
- ["D943",0x6105],
- ["B75E",0x6106],
- ["B755",0x6108],
- ["B472",0x6109],
- ["D941",0x610A],
- ["D950",0x610B],
- ["B75D",0x610D],
- ["B470",0x610E],
- ["B74E",0x610F],
- ["D94D",0x6110],
- ["B474",0x6112],
- ["D945",0x6113],
- ["D8FE",0x6114],
- ["B46A",0x6115],
- ["D942",0x6116],
- ["D94B",0x6118],
- ["B74D",0x611A],
- ["B752",0x611B],
- ["B467",0x611C],
- ["D94C",0x611D],
- ["B750",0x611F],
- ["B468",0x6123],
- ["B75C",0x6127],
- ["E1C3",0x6128],
- ["DD70",0x6129],
- ["DD68",0x612B],
- ["E1C2",0x612C],
- ["DD6C",0x612E],
- ["DD6E",0x612F],
- ["DD6B",0x6132],
- ["B75B",0x6134],
- ["DD6A",0x6136],
- ["B75F",0x6137],
- ["E1D2",0x613B],
- ["B75A",0x613E],
- ["BA40",0x613F],
- ["DD71",0x6140],
- ["E1C4",0x6141],
- ["B758",0x6144],
- ["DD69",0x6145],
- ["DD6D",0x6146],
- ["B9FE",0x6147],
- ["B74F",0x6148],
- ["DD66",0x6149],
- ["DD67",0x614A],
- ["BA41",0x614B],
- ["B757",0x614C],
- ["B759",0x614D],
- ["B756",0x614E],
- ["DD6F",0x614F],
- ["E1C8",0x6152],
- ["E1C9",0x6153],
- ["E1CE",0x6154],
- ["BC7D",0x6155],
- ["E1D5",0x6156],
- ["BA47",0x6158],
- ["BA46",0x615A],
- ["E1D0",0x615B],
- ["BC7C",0x615D],
- ["E1C5",0x615E],
- ["BA45",0x615F],
- ["E1D4",0x6161],
- ["BA43",0x6162],
- ["BA44",0x6163],
- ["E1D1",0x6165],
- ["E5AA",0x6166],
- ["BC7A",0x6167],
- ["B46E",0x6168],
- ["E1D3",0x616A],
- ["BCA3",0x616B],
- ["E1CB",0x616C],
- ["BC7B",0x616E],
- ["BCA2",0x6170],
- ["E1C6",0x6171],
- ["E1CA",0x6172],
- ["E1C7",0x6173],
- ["E1CD",0x6174],
- ["BA48",0x6175],
- ["BC79",0x6176],
- ["BA42",0x6177],
- ["E57A",0x6179],
- ["E1CF",0x617A],
- ["BCA1",0x617C],
- ["BCA4",0x617E],
- ["E1CC",0x6180],
- ["BC7E",0x6182],
- ["E579",0x6183],
- ["E57E",0x6189],
- ["BECE",0x618A],
- ["E578",0x618B],
- ["E9A3",0x618C],
- ["E5A9",0x618D],
- ["BCA8",0x618E],
- ["BCA6",0x6190],
- ["BECC",0x6191],
- ["E5A6",0x6192],
- ["E5A2",0x6193],
- ["BCAC",0x6194],
- ["E978",0x6196],
- ["BCAA",0x619A],
- ["E5A1",0x619B],
- ["E976",0x619D],
- ["E5A5",0x619F],
- ["E5A8",0x61A1],
- ["E57D",0x61A2],
- ["BCAB",0x61A4],
- ["BCA5",0x61A7],
- ["E977",0x61A8],
- ["BECD",0x61A9],
- ["E5A7",0x61AA],
- ["BCA7",0x61AB],
- ["BCA9",0x61AC],
- ["E5A4",0x61AD],
- ["BCAD",0x61AE],
- ["E5A3",0x61AF],
- ["E57C",0x61B0],
- ["E57B",0x61B1],
- ["BECB",0x61B2],
- ["E5AB",0x61B3],
- ["E97A",0x61B4],
- ["ECE0",0x61B5],
- ["BED0",0x61B6],
- ["E9A2",0x61B8],
- ["E97E",0x61BA],
- ["ECE1",0x61BC],
- ["BED1",0x61BE],
- ["E9A1",0x61BF],
- ["E97C",0x61C1],
- ["C0B4",0x61C2],
- ["ECDF",0x61C3],
- ["E979",0x61C5],
- ["E97B",0x61C6],
- ["C0B5",0x61C7],
- ["BED3",0x61C8],
- ["C0B3",0x61C9],
- ["BED2",0x61CA],
- ["C0B7",0x61CB],
- ["E97D",0x61CC],
- ["BECF",0x61CD],
- ["EFCF",0x61D6],
- ["EFC7",0x61D8],
- ["ECE7",0x61DE],
- ["EFC8",0x61DF],
- ["ECE3",0x61E0],
- ["C256",0x61E3],
- ["ECE5",0x61E4],
- ["ECE4",0x61E5],
- ["C0B6",0x61E6],
- ["ECE2",0x61E7],
- ["ECE6",0x61E8],
- ["EFD0",0x61E9],
- ["EFCC",0x61EA],
- ["EFCE",0x61EB],
- ["EFC9",0x61ED],
- ["EFCA",0x61EE],
- ["EFCD",0x61F0],
- ["EFCB",0x61F1],
- ["C367",0x61F2],
- ["C36A",0x61F5],
- ["C369",0x61F6],
- ["C368",0x61F7],
- ["C461",0x61F8],
- ["F44A",0x61F9],
- ["C462",0x61FA],
- ["F241",0x61FB],
- ["C4DF",0x61FC],
- ["F5CC",0x61FD],
- ["C4E0",0x61FE],
- ["C574",0x61FF],
- ["C5CA",0x6200],
- ["F7D9",0x6201],
- ["F7DA",0x6203],
- ["F7DB",0x6204],
- ["F9BA",0x6207],
- ["A4E0",0x6208],
- ["C97C",0x6209],
- ["A5B3",0x620A],
- ["A6A6",0x620C],
- ["A6A7",0x620D],
- ["A6A5",0x620E],
- ["A6A8",0x6210],
- ["A7DA",0x6211],
- ["A7D9",0x6212],
- ["CCB1",0x6214],
- ["A9CF",0x6215],
- ["A9CE",0x6216],
- ["D1AF",0x6219],
+ ["B1AA",0x60B8],
+ ["B1AB",0x60DA],
+ ["B1AC",0x60C7],
["B1AD",0x621A],
["B1AE",0x621B],
- ["B475",0x621F],
- ["DD72",0x6220],
- ["B760",0x6221],
- ["B761",0x6222],
- ["DD74",0x6223],
- ["DD76",0x6224],
- ["DD75",0x6225],
- ["E1D7",0x6227],
- ["E1D6",0x6229],
- ["BA49",0x622A],
- ["E1D8",0x622B],
- ["E5AC",0x622D],
- ["BCAE",0x622E],
- ["BED4",0x6230],
- ["C0B8",0x6232],
- ["C257",0x6233],
- ["C0B9",0x6234],
- ["A4E1",0x6236],
- ["CAE6",0x623A],
- ["CCB2",0x623D],
- ["A9D1",0x623E],
- ["A9D0",0x623F],
- ["A9D2",0x6240],
- ["ABF3",0x6241],
- ["CED2",0x6242],
- ["CED3",0x6243],
- ["D1B0",0x6246],
- ["AEB0",0x6247],
["B1AF",0x6248],
- ["B476",0x6249],
- ["D951",0x624A],
- ["A4E2",0x624B],
- ["A47E",0x624D],
- ["A4E3",0x624E],
- ["C97D",0x6250],
- ["A5B7",0x6251],
- ["A5B6",0x6252],
- ["A5B4",0x6253],
- ["A5B5",0x6254],
- ["A6AB",0x6258],
- ["C9E9",0x6259],
- ["C9EB",0x625A],
- ["A6AA",0x625B],
- ["C9E3",0x625C],
- ["C9E4",0x625E],
- ["C9EA",0x6260],
- ["C9E6",0x6261],
- ["C9E8",0x6262],
- ["A6A9",0x6263],
- ["C9E5",0x6264],
- ["C9EC",0x6265],
- ["C9E7",0x6266],
- ["A7E1",0x626D],
- ["A7EA",0x626E],
- ["A7E8",0x626F],
- ["CAF0",0x6270],
- ["CAED",0x6271],
- ["CAF5",0x6272],
- ["A7E6",0x6273],
- ["CAF6",0x6274],
- ["A7DF",0x6276],
- ["CAF3",0x6277],
- ["A7E5",0x6279],
- ["CAEF",0x627A],
- ["CAEE",0x627B],
- ["A7E3",0x627C],
- ["CAF4",0x627D],
- ["A7E4",0x627E],
- ["A9D3",0x627F],
- ["A7DE",0x6280],
- ["CAF1",0x6281],
- ["CAE7",0x6283],
- ["A7DB",0x6284],
- ["A7EE",0x6286],
- ["CAEC",0x6287],
- ["CAF2",0x6288],
- ["A7E0",0x6289],
- ["A7E2",0x628A],
- ["CAE8",0x628C],
- ["CAE9",0x628E],
- ["CAEA",0x628F],
- ["A7ED",0x6291],
- ["A7E7",0x6292],
- ["A7EC",0x6293],
- ["CAEB",0x6294],
- ["A7EB",0x6295],
- ["A7DD",0x6296],
- ["A7DC",0x6297],
- ["A7E9",0x6298],
- ["A9E1",0x62A8],
- ["CCBE",0x62A9],
- ["CCB7",0x62AA],
- ["A9DC",0x62AB],
- ["A9EF",0x62AC],
- ["CCB3",0x62AD],
- ["CCBA",0x62AE],
- ["CCBC",0x62AF],
- ["CCBF",0x62B0],
- ["A9EA",0x62B1],
- ["CCBB",0x62B3],
- ["CCB4",0x62B4],
- ["A9E8",0x62B5],
- ["CCB8",0x62B6],
- ["CCC0",0x62B8],
- ["A9D9",0x62B9],
- ["CCBD",0x62BB],
- ["A9E3",0x62BC],
- ["A9E2",0x62BD],
- ["CCB6",0x62BE],
- ["A9D7",0x62BF],
- ["A9D8",0x62C2],
- ["A9D6",0x62C4],
- ["A9EE",0x62C6],
- ["A9E6",0x62C7],
- ["A9E0",0x62C8],
- ["A9D4",0x62C9],
- ["CCB9",0x62CA],
- ["A9DF",0x62CB],
- ["A9D5",0x62CC],
- ["A9E7",0x62CD],
- ["A9F0",0x62CE],
- ["CED4",0x62CF],
- ["A9E4",0x62D0],
- ["CCB5",0x62D1],
- ["A9DA",0x62D2],
- ["A9DD",0x62D3],
- ["A9DE",0x62D4],
- ["A9EC",0x62D6],
- ["A9ED",0x62D7],
- ["A9EB",0x62D8],
- ["A9E5",0x62D9],
- ["A9E9",0x62DA],
- ["A9DB",0x62DB],
- ["ABF4",0x62DC],
- ["CEDA",0x62EB],
- ["AC41",0x62EC],
- ["ABF8",0x62ED],
- ["ABFA",0x62EE],
- ["AC40",0x62EF],
- ["CEE6",0x62F0],
- ["ABFD",0x62F1],
- ["D1B1",0x62F2],
- ["AEB1",0x62F3],
- ["AC43",0x62F4],
- ["CED7",0x62F5],
- ["CEDF",0x62F6],
- ["ABFE",0x62F7],
- ["CEDE",0x62F8],
- ["CEDB",0x62F9],
- ["CEE3",0x62FA],
- ["CEE5",0x62FB],
- ["ABF7",0x62FC],
- ["ABFB",0x62FD],
- ["AC42",0x62FE],
- ["AEB3",0x62FF],
- ["CEE0",0x6300],
- ["ABF9",0x6301],
- ["AC45",0x6302],
- ["CED9",0x6303],
- ["ABFC",0x6307],
- ["AEB2",0x6308],
- ["ABF6",0x6309],
- ["CED6",0x630B],
- ["CEDD",0x630C],
- ["CED5",0x630D],
- ["CED8",0x630E],
- ["CEDC",0x630F],
- ["D1B2",0x6310],
- ["AC44",0x6311],
- ["CEE1",0x6313],
- ["CEE2",0x6314],
- ["CEE4",0x6315],
- ["ABF5",0x6316],
- ["AEC1",0x6328],
- ["D1BE",0x6329],
- ["AEBF",0x632A],
- ["AEC0",0x632B],
- ["D1B4",0x632C],
- ["D1C4",0x632D],
- ["AEB6",0x632F],
- ["D566",0x6332],
- ["D1C6",0x6333],
- ["D1C0",0x6334],
- ["D1B7",0x6336],
- ["D1C9",0x6338],
- ["D1BA",0x6339],
- ["AEBC",0x633A],
- ["D57D",0x633B],
- ["D1BD",0x633C],
- ["AEBE",0x633D],
- ["AEB5",0x633E],
- ["D1CB",0x6340],
- ["D1BF",0x6341],
- ["AEB8",0x6342],
- ["D1B8",0x6343],
- ["D1B5",0x6344],
- ["D1B6",0x6345],
- ["AEB9",0x6346],
- ["D1C5",0x6347],
- ["D1CC",0x6348],
- ["AEBB",0x6349],
- ["D1BC",0x634A],
- ["D1BB",0x634B],
- ["AEC3",0x634C],
- ["AEC2",0x634D],
- ["AEB4",0x634E],
- ["AEBA",0x634F],
- ["AEBD",0x6350],
- ["D1C8",0x6351],
- ["D1C2",0x6354],
- ["AEB7",0x6355],
- ["D1B3",0x6356],
- ["D1CA",0x6357],
- ["D1C1",0x6358],
- ["D1C3",0x6359],
- ["D1C7",0x635A],
- ["D567",0x6365],
- ["B1B7",0x6367],
- ["B1CB",0x6368],
- ["B1CA",0x6369],
- ["B1BF",0x636B],
- ["D579",0x636D],
- ["D575",0x636E],
- ["D572",0x636F],
- ["D5A6",0x6370],
- ["B1BA",0x6371],
+ ["B1B0",0x63A0],
+ ["B1B1",0x63A7],
["B1B2",0x6372],
- ["D577",0x6375],
- ["B4A8",0x6376],
+ ["B1B3",0x6396],
+ ["B1B4",0x63A2],
+ ["B1B5",0x63A5],
["B1B6",0x6377],
- ["D5A1",0x6378],
- ["B1CC",0x637A],
- ["B1C9",0x637B],
- ["D57B",0x637C],
- ["D56A",0x637D],
- ["B1C8",0x6380],
- ["D5A3",0x6381],
- ["D569",0x6382],
+ ["B1B7",0x6367],
+ ["B1B8",0x6398],
+ ["B1B9",0x63AA],
+ ["B1BA",0x6371],
+ ["B1BB",0x63A9],
+ ["B1BC",0x6389],
["B1BD",0x6383],
+ ["B1BE",0x639B],
+ ["B1BF",0x636B],
+ ["B1C0",0x63A8],
["B1C1",0x6384],
- ["D5A2",0x6385],
- ["D573",0x6387],
["B1C2",0x6388],
- ["B1BC",0x6389],
- ["D568",0x638A],
- ["B478",0x638C],
- ["D5A5",0x638D],
- ["D571",0x638E],
- ["B1C7",0x638F],
- ["D574",0x6390],
- ["D5A4",0x6391],
- ["B1C6",0x6392],
- ["D952",0x6394],
- ["B1B3",0x6396],
- ["D56F",0x6397],
- ["B1B8",0x6398],
["B1C3",0x6399],
- ["B1BE",0x639B],
- ["D578",0x639C],
- ["D56E",0x639D],
- ["D56C",0x639E],
- ["D57E",0x639F],
- ["B1B0",0x63A0],
["B1C4",0x63A1],
- ["B1B4",0x63A2],
- ["B477",0x63A3],
- ["D57C",0x63A4],
- ["B1B5",0x63A5],
- ["B1B1",0x63A7],
- ["B1C0",0x63A8],
- ["B1BB",0x63A9],
- ["B1B9",0x63AA],
- ["D570",0x63AB],
["B1C5",0x63AC],
- ["D56D",0x63AD],
- ["D57A",0x63AE],
- ["D576",0x63AF],
- ["D954",0x63B0],
- ["D953",0x63B1],
- ["D56B",0x63BD],
- ["D964",0x63BE],
+ ["B1C6",0x6392],
+ ["B1C7",0x638F],
+ ["B1C8",0x6380],
+ ["B1C9",0x637B],
+ ["B1CA",0x6369],
+ ["B1CB",0x6368],
+ ["B1CC",0x637A],
+ ["B1CD",0x655D],
+ ["B1CE",0x6556],
+ ["B1CF",0x6551],
+ ["B1D0",0x6559],
+ ["B1D1",0x6557],
+ ["B1D2",0x555F],
+ ["B1D3",0x654F],
+ ["B1D4",0x6558],
+ ["B1D5",0x6555],
+ ["B1D6",0x6554],
+ ["B1D7",0x659C],
+ ["B1D8",0x659B],
+ ["B1D9",0x65AC],
+ ["B1DA",0x65CF],
+ ["B1DB",0x65CB],
+ ["B1DC",0x65CC],
+ ["B1DD",0x65CE],
+ ["B1DE",0x665D],
+ ["B1DF",0x665A],
+ ["B1E0",0x6664],
+ ["B1E1",0x6668],
+ ["B1E2",0x6666],
+ ["B1E3",0x665E],
+ ["B1E4",0x66F9],
+ ["B1E5",0x52D7],
+ ["B1E6",0x671B],
+ ["B1E7",0x6881],
+ ["B1E8",0x68AF],
+ ["B1E9",0x68A2],
+ ["B1EA",0x6893],
+ ["B1EB",0x68B5],
+ ["B1EC",0x687F],
+ ["B1ED",0x6876],
+ ["B1EE",0x68B1],
+ ["B1EF",0x68A7],
+ ["B1F0",0x6897],
+ ["B1F1",0x68B0],
+ ["B1F2",0x6883],
+ ["B1F3",0x68C4],
+ ["B1F4",0x68AD],
+ ["B1F5",0x6886],
+ ["B1F6",0x6885],
+ ["B1F7",0x6894],
+ ["B1F8",0x689D],
+ ["B1F9",0x68A8],
+ ["B1FA",0x689F],
+ ["B1FB",0x68A1],
+ ["B1FC",0x6882],
+ ["B1FD",0x6B32],
+ ["B1FE",0x6BBA],
+ ["B240",0x6BEB],
+ ["B241",0x6BEC],
+ ["B242",0x6C2B],
+ ["B243",0x6D8E],
+ ["B244",0x6DBC],
+ ["B245",0x6DF3],
+ ["B246",0x6DD9],
+ ["B247",0x6DB2],
+ ["B248",0x6DE1],
+ ["B249",0x6DCC],
+ ["B24A",0x6DE4],
+ ["B24B",0x6DFB],
+ ["B24C",0x6DFA],
+ ["B24D",0x6E05],
+ ["B24E",0x6DC7],
+ ["B24F",0x6DCB],
+ ["B250",0x6DAF],
+ ["B251",0x6DD1],
+ ["B252",0x6DAE],
+ ["B253",0x6DDE],
+ ["B254",0x6DF9],
+ ["B255",0x6DB8],
+ ["B256",0x6DF7],
+ ["B257",0x6DF5],
+ ["B258",0x6DC5],
+ ["B259",0x6DD2],
+ ["B25A",0x6E1A],
+ ["B25B",0x6DB5],
+ ["B25C",0x6DDA],
+ ["B25D",0x6DEB],
+ ["B25E",0x6DD8],
+ ["B25F",0x6DEA],
+ ["B260",0x6DF1],
+ ["B261",0x6DEE],
+ ["B262",0x6DE8],
+ ["B263",0x6DC6],
+ ["B264",0x6DC4],
+ ["B265",0x6DAA],
+ ["B266",0x6DEC],
+ ["B267",0x6DBF],
+ ["B268",0x6DE6],
+ ["B269",0x70F9],
+ ["B26A",0x7109],
+ ["B26B",0x710A],
+ ["B26C",0x70FD],
+ ["B26D",0x70EF],
+ ["B26E",0x723D],
+ ["B26F",0x727D],
+ ["B270",0x7281],
+ ["B271",0x731C],
+ ["B272",0x731B],
+ ["B273",0x7316],
+ ["B274",0x7313],
+ ["B275",0x7319],
+ ["B276",0x7387],
+ ["B277",0x7405],
+ ["B278",0x740A],
+ ["B279",0x7403],
+ ["B27A",0x7406],
+ ["B27B",0x73FE],
+ ["B27C",0x740D],
+ ["B27D",0x74E0],
+ ["B27E",0x74F6],
+ ["B2A1",0x74F7],
+ ["B2A2",0x751C],
+ ["B2A3",0x7522],
+ ["B2A4",0x7565],
+ ["B2A5",0x7566],
+ ["B2A6",0x7562],
+ ["B2A7",0x7570],
+ ["B2A8",0x758F],
+ ["B2A9",0x75D4],
+ ["B2AA",0x75D5],
+ ["B2AB",0x75B5],
+ ["B2AC",0x75CA],
+ ["B2AD",0x75CD],
+ ["B2AE",0x768E],
+ ["B2AF",0x76D4],
+ ["B2B0",0x76D2],
+ ["B2B1",0x76DB],
+ ["B2B2",0x7737],
+ ["B2B3",0x773E],
+ ["B2B4",0x773C],
+ ["B2B5",0x7736],
+ ["B2B6",0x7738],
+ ["B2B7",0x773A],
+ ["B2B8",0x786B],
+ ["B2B9",0x7843],
+ ["B2BA",0x784E],
+ ["B2BB",0x7965],
+ ["B2BC",0x7968],
+ ["B2BD",0x796D],
+ ["B2BE",0x79FB],
+ ["B2BF",0x7A92],
+ ["B2C0",0x7A95],
+ ["B2C1",0x7B20],
+ ["B2C2",0x7B28],
+ ["B2C3",0x7B1B],
+ ["B2C4",0x7B2C],
+ ["B2C5",0x7B26],
+ ["B2C6",0x7B19],
+ ["B2C7",0x7B1E],
+ ["B2C8",0x7B2E],
+ ["B2C9",0x7C92],
+ ["B2CA",0x7C97],
+ ["B2CB",0x7C95],
+ ["B2CC",0x7D46],
+ ["B2CD",0x7D43],
+ ["B2CE",0x7D71],
+ ["B2CF",0x7D2E],
+ ["B2D0",0x7D39],
+ ["B2D1",0x7D3C],
+ ["B2D2",0x7D40],
+ ["B2D3",0x7D30],
+ ["B2D4",0x7D33],
+ ["B2D5",0x7D44],
+ ["B2D6",0x7D2F],
+ ["B2D7",0x7D42],
+ ["B2D8",0x7D32],
+ ["B2D9",0x7D31],
+ ["B2DA",0x7F3D],
+ ["B2DB",0x7F9E],
+ ["B2DC",0x7F9A],
+ ["B2DD",0x7FCC],
+ ["B2DE",0x7FCE],
+ ["B2DF",0x7FD2],
+ ["B2E0",0x801C],
+ ["B2E1",0x804A],
+ ["B2E2",0x8046],
+ ["B2E3",0x812F],
+ ["B2E4",0x8116],
+ ["B2E5",0x8123],
+ ["B2E6",0x812B],
+ ["B2E7",0x8129],
+ ["B2E8",0x8130],
+ ["B2E9",0x8124],
+ ["B2EA",0x8202],
+ ["B2EB",0x8235],
+ ["B2EC",0x8237],
+ ["B2ED",0x8236],
+ ["B2EE",0x8239],
+ ["B2EF",0x838E],
+ ["B2F0",0x839E],
+ ["B2F1",0x8398],
+ ["B2F2",0x8378],
+ ["B2F3",0x83A2],
+ ["B2F4",0x8396],
+ ["B2F5",0x83BD],
+ ["B2F6",0x83AB],
+ ["B2F7",0x8392],
+ ["B2F8",0x838A],
+ ["B2F9",0x8393],
+ ["B2FA",0x8389],
+ ["B2FB",0x83A0],
+ ["B2FC",0x8377],
+ ["B2FD",0x837B],
+ ["B2FE",0x837C],
+ ["B340",0x8386],
+ ["B341",0x83A7],
+ ["B342",0x8655],
+ ["B343",0x5F6A],
+ ["B344",0x86C7],
+ ["B345",0x86C0],
+ ["B346",0x86B6],
+ ["B347",0x86C4],
+ ["B348",0x86B5],
+ ["B349",0x86C6],
+ ["B34A",0x86CB],
+ ["B34B",0x86B1],
+ ["B34C",0x86AF],
+ ["B34D",0x86C9],
+ ["B34E",0x8853],
+ ["B34F",0x889E],
+ ["B350",0x8888],
+ ["B351",0x88AB],
+ ["B352",0x8892],
+ ["B353",0x8896],
+ ["B354",0x888D],
+ ["B355",0x888B],
+ ["B356",0x8993],
+ ["B357",0x898F],
+ ["B358",0x8A2A],
+ ["B359",0x8A1D],
+ ["B35A",0x8A23],
+ ["B35B",0x8A25],
+ ["B35C",0x8A31],
+ ["B35D",0x8A2D],
+ ["B35E",0x8A1F],
+ ["B35F",0x8A1B],
+ ["B360",0x8A22],
+ ["B361",0x8C49],
+ ["B362",0x8C5A],
+ ["B363",0x8CA9],
+ ["B364",0x8CAC],
+ ["B365",0x8CAB],
+ ["B366",0x8CA8],
+ ["B367",0x8CAA],
+ ["B368",0x8CA7],
+ ["B369",0x8D67],
+ ["B36A",0x8D66],
+ ["B36B",0x8DBE],
+ ["B36C",0x8DBA],
+ ["B36D",0x8EDB],
+ ["B36E",0x8EDF],
+ ["B36F",0x9019],
+ ["B370",0x900D],
+ ["B371",0x901A],
+ ["B372",0x9017],
+ ["B373",0x9023],
+ ["B374",0x901F],
+ ["B375",0x901D],
+ ["B376",0x9010],
+ ["B377",0x9015],
+ ["B378",0x901E],
+ ["B379",0x9020],
+ ["B37A",0x900F],
+ ["B37B",0x9022],
+ ["B37C",0x9016],
+ ["B37D",0x901B],
+ ["B37E",0x9014],
+ ["B3A1",0x90E8],
+ ["B3A2",0x90ED],
+ ["B3A3",0x90FD],
+ ["B3A4",0x9157],
+ ["B3A5",0x91CE],
+ ["B3A6",0x91F5],
+ ["B3A7",0x91E6],
+ ["B3A8",0x91E3],
+ ["B3A9",0x91E7],
+ ["B3AA",0x91ED],
+ ["B3AB",0x91E9],
+ ["B3AC",0x9589],
+ ["B3AD",0x966A],
+ ["B3AE",0x9675],
+ ["B3AF",0x9673],
+ ["B3B0",0x9678],
+ ["B3B1",0x9670],
+ ["B3B2",0x9674],
+ ["B3B3",0x9676],
+ ["B3B4",0x9677],
+ ["B3B5",0x966C],
+ ["B3B6",0x96C0],
+ ["B3B7",0x96EA],
+ ["B3B8",0x96E9],
+ ["B3B9",0x7AE0],
+ ["B3BA",0x7ADF],
+ ["B3BB",0x9802],
+ ["B3BC",0x9803],
+ ["B3BD",0x9B5A],
+ ["B3BE",0x9CE5],
+ ["B3BF",0x9E75],
+ ["B3C0",0x9E7F],
+ ["B3C1",0x9EA5],
+ ["B3C2",0x9EBB],
+ ["B3C3",0x50A2],
+ ["B3C4",0x508D],
+ ["B3C5",0x5085],
+ ["B3C6",0x5099],
+ ["B3C7",0x5091],
+ ["B3C8",0x5080],
+ ["B3C9",0x5096],
+ ["B3CA",0x5098],
+ ["B3CB",0x509A],
+ ["B3CC",0x6700],
+ ["B3CD",0x51F1],
+ ["B3CE",0x5272],
+ ["B3CF",0x5274],
+ ["B3D0",0x5275],
+ ["B3D1",0x5269],
+ ["B3D2",0x52DE],
+ ["B3D3",0x52DD],
+ ["B3D4",0x52DB],
+ ["B3D5",0x535A],
+ ["B3D6",0x53A5],
+ ["B3D7",0x557B],
+ ["B3D8",0x5580],
+ ["B3D9",0x55A7],
+ ["B3DA",0x557C],
+ ["B3DB",0x558A],
+ ["B3DC",0x559D],
+ ["B3DD",0x5598],
+ ["B3DE",0x5582],
+ ["B3DF",0x559C],
+ ["B3E0",0x55AA],
+ ["B3E1",0x5594],
+ ["B3E2",0x5587],
+ ["B3E3",0x558B],
+ ["B3E4",0x5583],
+ ["B3E5",0x55B3],
+ ["B3E6",0x55AE],
+ ["B3E7",0x559F],
+ ["B3E8",0x553E],
+ ["B3E9",0x55B2],
+ ["B3EA",0x559A],
+ ["B3EB",0x55BB],
+ ["B3EC",0x55AC],
+ ["B3ED",0x55B1],
+ ["B3EE",0x557E],
+ ["B3EF",0x5589],
+ ["B3F0",0x55AB],
+ ["B3F1",0x5599],
+ ["B3F2",0x570D],
+ ["B3F3",0x582F],
+ ["B3F4",0x582A],
+ ["B3F5",0x5834],
+ ["B3F6",0x5824],
+ ["B3F7",0x5830],
+ ["B3F8",0x5831],
+ ["B3F9",0x5821],
+ ["B3FA",0x581D],
+ ["B3FB",0x5820],
+ ["B3FC",0x58F9],
+ ["B3FD",0x58FA],
+ ["B3FE",0x5960],
+ ["B440",0x5A77],
+ ["B441",0x5A9A],
+ ["B442",0x5A7F],
+ ["B443",0x5A92],
+ ["B444",0x5A9B],
+ ["B445",0x5AA7],
+ ["B446",0x5B73],
+ ["B447",0x5B71],
+ ["B448",0x5BD2],
+ ["B449",0x5BCC],
+ ["B44A",0x5BD3],
+ ["B44B",0x5BD0],
+ ["B44C",0x5C0A],
+ ["B44D",0x5C0B],
+ ["B44E",0x5C31],
+ ["B44F",0x5D4C],
+ ["B450",0x5D50],
+ ["B451",0x5D34],
+ ["B452",0x5D47],
+ ["B453",0x5DFD],
+ ["B454",0x5E45],
+ ["B455",0x5E3D],
+ ["B456",0x5E40],
+ ["B457",0x5E43],
+ ["B458",0x5E7E],
+ ["B459",0x5ECA],
+ ["B45A",0x5EC1],
+ ["B45B",0x5EC2],
+ ["B45C",0x5EC4],
+ ["B45D",0x5F3C],
+ ["B45E",0x5F6D],
+ ["B45F",0x5FA9],
+ ["B460",0x5FAA],
+ ["B461",0x5FA8],
+ ["B462",0x60D1],
+ ["B463",0x60E1],
+ ["B464",0x60B2],
+ ["B465",0x60B6],
+ ["B466",0x60E0],
+ ["B467",0x611C],
+ ["B468",0x6123],
+ ["B469",0x60FA],
+ ["B46A",0x6115],
+ ["B46B",0x60F0],
+ ["B46C",0x60FB],
+ ["B46D",0x60F4],
+ ["B46E",0x6168],
+ ["B46F",0x60F1],
+ ["B470",0x610E],
+ ["B471",0x60F6],
+ ["B472",0x6109],
+ ["B473",0x6100],
+ ["B474",0x6112],
+ ["B475",0x621F],
+ ["B476",0x6249],
+ ["B477",0x63A3],
+ ["B478",0x638C],
+ ["B479",0x63CF],
["B47A",0x63C0],
- ["D96A",0x63C2],
- ["D959",0x63C3],
- ["D967",0x63C4],
- ["DD77",0x63C5],
- ["B47D",0x63C6],
- ["D96B",0x63C7],
- ["D96E",0x63C8],
+ ["B47B",0x63E9],
["B47C",0x63C9],
- ["D95C",0x63CA],
- ["D96D",0x63CB],
- ["D96C",0x63CC],
+ ["B47D",0x63C6],
["B47E",0x63CD],
- ["D955",0x63CE],
- ["B479",0x63CF],
- ["B4A3",0x63D0],
["B4A1",0x63D2],
- ["D969",0x63D3],
- ["D95F",0x63D5],
- ["B4A5",0x63D6],
- ["D970",0x63D7],
- ["D968",0x63D8],
- ["D971",0x63D9],
- ["B4AD",0x63DA],
- ["B4AB",0x63DB],
- ["D966",0x63DC],
- ["D965",0x63DD],
- ["D963",0x63DF],
- ["D95D",0x63E0],
- ["B4A4",0x63E1],
["B4A2",0x63E3],
- ["D1B9",0x63E4],
- ["D956",0x63E5],
- ["DDB7",0x63E7],
- ["D957",0x63E8],
- ["B47B",0x63E9],
- ["B4AA",0x63EA],
- ["DD79",0x63EB],
+ ["B4A3",0x63D0],
+ ["B4A4",0x63E1],
+ ["B4A5",0x63D6],
["B4A6",0x63ED],
["B4A7",0x63EE],
- ["D958",0x63EF],
- ["D96F",0x63F0],
- ["DD78",0x63F1],
- ["D960",0x63F2],
- ["D95B",0x63F3],
+ ["B4A8",0x6376],
["B4A9",0x63F4],
- ["D961",0x63F5],
- ["D95E",0x63F6],
- ["B4AE",0x63F9],
- ["B770",0x6406],
- ["DD7C",0x6409],
- ["DDB1",0x640A],
- ["DDB6",0x640B],
- ["DDAA",0x640C],
- ["B76C",0x640D],
- ["DDBB",0x640E],
- ["B769",0x640F],
- ["DD7A",0x6410],
- ["DD7B",0x6412],
- ["B762",0x6413],
- ["B76B",0x6414],
- ["DDA4",0x6415],
- ["B76E",0x6416],
- ["B76F",0x6417],
- ["DDA5",0x6418],
- ["DDB2",0x641A],
- ["DDB8",0x641B],
- ["B76A",0x641C],
- ["B764",0x641E],
- ["DDA3",0x641F],
- ["DD7D",0x6420],
- ["DDBA",0x6421],
- ["DDA8",0x6422],
- ["DDA9",0x6423],
- ["DD7E",0x6424],
- ["DDB4",0x6425],
- ["DDAB",0x6426],
- ["DDB5",0x6427],
- ["DDAD",0x6428],
- ["B765",0x642A],
- ["E1D9",0x642B],
- ["B768",0x642C],
- ["B766",0x642D],
- ["DDB9",0x642E],
- ["DDB0",0x642F],
- ["DDAC",0x6430],
- ["DDA1",0x6433],
- ["BA53",0x6434],
- ["DDAF",0x6435],
- ["B76D",0x6436],
- ["DDA7",0x6437],
- ["DDA6",0x6439],
- ["B767",0x643D],
- ["B763",0x643E],
- ["E1EE",0x643F],
- ["DDB3",0x6440],
- ["DDAE",0x6441],
- ["DDA2",0x6443],
- ["E1E9",0x644B],
- ["E1DA",0x644D],
- ["E1E5",0x644E],
- ["E1EC",0x6450],
- ["BA51",0x6451],
+ ["B4AA",0x63EA],
+ ["B4AB",0x63DB],
["B4AC",0x6452],
- ["E1EA",0x6453],
- ["BA4C",0x6454],
- ["BA4B",0x6458],
- ["E1F1",0x6459],
- ["E1DB",0x645B],
- ["E1E8",0x645C],
- ["E1DC",0x645D],
- ["E1E7",0x645E],
- ["BA4F",0x645F],
- ["E1EB",0x6460],
- ["D962",0x6461],
- ["E1F2",0x6465],
- ["E1E3",0x6466],
- ["BA52",0x6467],
- ["E5BA",0x6468],
- ["BCAF",0x6469],
- ["E1F0",0x646B],
- ["E1EF",0x646C],
- ["BA54",0x646D],
- ["E5AD",0x646E],
- ["BCB0",0x646F],
- ["E5AE",0x6470],
- ["E1DF",0x6472],
- ["E1E0",0x6473],
- ["E1DD",0x6474],
- ["E1E2",0x6475],
- ["E1DE",0x6476],
- ["E1F3",0x6477],
- ["BA4E",0x6478],
- ["BCB1",0x6479],
- ["BA50",0x647A],
- ["BA55",0x647B],
- ["E1E1",0x647D],
- ["E1ED",0x647F],
- ["E1E6",0x6482],
- ["E5B1",0x6485],
- ["BA4A",0x6487],
- ["BCB4",0x6488],
- ["E9AA",0x6489],
- ["E5B6",0x648A],
- ["E5B5",0x648B],
- ["E5B7",0x648C],
- ["E5B4",0x648F],
- ["BCB5",0x6490],
- ["BCBB",0x6492],
- ["BCB8",0x6493],
- ["BCB9",0x6495],
- ["E5AF",0x6496],
- ["E5B2",0x6497],
- ["E5BC",0x6498],
- ["BCC1",0x6499],
- ["BCBF",0x649A],
- ["E5B3",0x649C],
- ["D95A",0x649D],
- ["BCB2",0x649E],
- ["E5B9",0x649F],
- ["E5B0",0x64A0],
- ["BCC2",0x64A2],
- ["E5B8",0x64A3],
- ["BA4D",0x64A4],
- ["BCB7",0x64A5],
- ["E1E4",0x64A6],
- ["BCBA",0x64A9],
- ["BCBE",0x64AB],
- ["BCC0",0x64AC],
- ["BCBD",0x64AD],
- ["BCBC",0x64AE],
- ["BCB6",0x64B0],
- ["E5BB",0x64B1],
- ["BCB3",0x64B2],
- ["BCC3",0x64B3],
- ["BED8",0x64BB],
- ["BED9",0x64BC],
- ["E9A9",0x64BD],
- ["BEE2",0x64BE],
- ["BEDF",0x64BF],
- ["BED6",0x64C1],
- ["BEDD",0x64C2],
- ["E9AB",0x64C3],
- ["BEDB",0x64C4],
- ["BED5",0x64C5],
- ["BEDC",0x64C7],
- ["E9A8",0x64C9],
- ["C0BB",0x64CA],
- ["BED7",0x64CB],
- ["BEDE",0x64CD],
- ["C0BA",0x64CE],
- ["E9A7",0x64CF],
- ["E9A6",0x64D0],
- ["BEE0",0x64D2],
- ["BEE1",0x64D4],
- ["E9A5",0x64D6],
- ["E9A4",0x64D7],
- ["C0BC",0x64D8],
- ["E9AE",0x64D9],
- ["BEDA",0x64DA],
- ["E9AC",0x64DB],
- ["C0BD",0x64E0],
- ["C0C2",0x64E2],
- ["ECEA",0x64E3],
- ["ECEC",0x64E4],
- ["C0BF",0x64E6],
- ["ECED",0x64E8],
- ["ECE9",0x64E9],
- ["ECEB",0x64EB],
- ["C0C0",0x64EC],
- ["C0C3",0x64ED],
- ["ECE8",0x64EF],
- ["C0BE",0x64F0],
- ["C0C1",0x64F1],
- ["C259",0x64F2],
- ["E9AD",0x64F3],
- ["C258",0x64F4],
- ["C25E",0x64F7],
- ["EFD4",0x64F8],
- ["C25C",0x64FA],
- ["C25D",0x64FB],
- ["EFD7",0x64FC],
- ["EFD3",0x64FD],
- ["C25A",0x64FE],
- ["EFD1",0x64FF],
- ["C36B",0x6500],
- ["EFD5",0x6501],
- ["EFD6",0x6503],
- ["EFD2",0x6504],
- ["C25B",0x6506],
- ["F242",0x6507],
- ["F245",0x6509],
- ["F246",0x650C],
- ["F244",0x650D],
- ["F247",0x650E],
- ["C36C",0x650F],
- ["F243",0x6510],
- ["F44E",0x6513],
- ["C464",0x6514],
- ["F44D",0x6515],
- ["F44C",0x6516],
- ["F44B",0x6517],
- ["C463",0x6518],
- ["C465",0x6519],
- ["F5CD",0x651B],
- ["C4E2",0x651C],
- ["C4E1",0x651D],
- ["F6E1",0x6520],
- ["F6E0",0x6521],
- ["F6E3",0x6522],
- ["C5CB",0x6523],
- ["C575",0x6524],
- ["F7DD",0x6525],
- ["F6E2",0x6526],
- ["F7DC",0x6529],
- ["C5CD",0x652A],
- ["C5CC",0x652B],
- ["C5F3",0x652C],
- ["F8A9",0x652D],
- ["F8EF",0x652E],
- ["A4E4",0x652F],
- ["D972",0x6532],
- ["E9AF",0x6533],
- ["A6AC",0x6536],
- ["CAF7",0x6537],
- ["A7F1",0x6538],
- ["A7EF",0x6539],
- ["A7F0",0x653B],
- ["CCC1",0x653D],
- ["A9F1",0x653E],
- ["AC46",0x653F],
- ["CEE7",0x6541],
- ["CEE8",0x6543],
- ["AC47",0x6545],
- ["D1CE",0x6546],
- ["AEC4",0x6548],
- ["AEC5",0x6549],
- ["D1CD",0x654A],
- ["B1D3",0x654F],
- ["B1CF",0x6551],
- ["D5A7",0x6553],
- ["B1D6",0x6554],
- ["B1D5",0x6555],
- ["B1CE",0x6556],
- ["B1D1",0x6557],
- ["B1D4",0x6558],
- ["B1D0",0x6559],
- ["D976",0x655C],
- ["B1CD",0x655D],
+ ["B4AD",0x63DA],
+ ["B4AE",0x63F9],
["B4AF",0x655E],
+ ["B4B0",0x6566],
["B4B1",0x6562],
["B4B2",0x6563],
- ["D975",0x6564],
- ["D978",0x6565],
- ["B4B0",0x6566],
- ["D973",0x6567],
- ["D977",0x6568],
- ["D974",0x656A],
- ["B771",0x656C],
- ["DDBC",0x656F],
- ["BA56",0x6572],
- ["E1F4",0x6573],
- ["BEE3",0x6574],
- ["BCC4",0x6575],
- ["E5BD",0x6576],
- ["BCC5",0x6577],
- ["BCC6",0x6578],
- ["E5BF",0x6579],
- ["E5BE",0x657A],
- ["E5C0",0x657B],
- ["E9B1",0x657C],
- ["E9B0",0x657F],
- ["ECEF",0x6580],
- ["ECEE",0x6581],
- ["C0C4",0x6582],
- ["C0C5",0x6583],
- ["F248",0x6584],
- ["A4E5",0x6587],
- ["D979",0x658C],
- ["B4B4",0x6590],
["B4B3",0x6591],
- ["DDBD",0x6592],
- ["EFD8",0x6594],
- ["C4E3",0x6595],
- ["F7DE",0x6596],
- ["A4E6",0x6597],
- ["AEC6",0x6599],
- ["B1D8",0x659B],
- ["B1D7",0x659C],
- ["D97A",0x659D],
- ["D97B",0x659E],
- ["B772",0x659F],
- ["E1F5",0x65A0],
- ["BA57",0x65A1],
- ["E9B2",0x65A2],
- ["A4E7",0x65A4],
- ["A5B8",0x65A5],
- ["A9F2",0x65A7],
- ["CCC2",0x65A8],
- ["CEE9",0x65AA],
- ["AC48",0x65AB],
- ["B1D9",0x65AC],
- ["D97C",0x65AE],
+ ["B4B4",0x6590],
["B4B5",0x65AF],
- ["B773",0x65B0],
- ["E5C1",0x65B2],
- ["E5C2",0x65B3],
- ["ECF0",0x65B6],
- ["C25F",0x65B7],
- ["F8F0",0x65B8],
- ["A4E8",0x65B9],
- ["CCC3",0x65BB],
- ["A9F3",0x65BC],
- ["AC49",0x65BD],
- ["CEEA",0x65BF],
- ["AEC7",0x65C1],
- ["D1D2",0x65C2],
- ["D1D0",0x65C3],
- ["D1D1",0x65C4],
- ["AEC8",0x65C5],
- ["D1CF",0x65C6],
- ["B1DB",0x65CB],
- ["B1DC",0x65CC],
- ["D5A8",0x65CD],
- ["B1DD",0x65CE],
- ["B1DA",0x65CF],
- ["D97D",0x65D0],
- ["D97E",0x65D2],
- ["DDBE",0x65D3],
- ["BA59",0x65D6],
- ["BA58",0x65D7],
- ["ECF1",0x65DA],
- ["EFD9",0x65DB],
- ["F24A",0x65DD],
- ["F249",0x65DE],
- ["F44F",0x65DF],
- ["C95E",0x65E1],
- ["AC4A",0x65E2],
- ["A4E9",0x65E5],
- ["A5B9",0x65E6],
- ["A6AE",0x65E8],
- ["A6AD",0x65E9],
- ["A6AF",0x65EC],
- ["A6B0",0x65ED],
- ["C9EE",0x65EE],
- ["C9ED",0x65EF],
- ["CAF8",0x65F0],
- ["A7F2",0x65F1],
- ["CAFB",0x65F2],
- ["CAFA",0x65F3],
- ["CAF9",0x65F4],
- ["CAFC",0x65F5],
- ["A9F4",0x65FA],
- ["CCC9",0x65FB],
- ["CCC5",0x65FC],
- ["CCCE",0x65FD],
- ["A9FB",0x6600],
- ["A9F9",0x6602],
- ["CCCA",0x6603],
- ["CCC6",0x6604],
- ["CCCD",0x6605],
- ["A9F8",0x6606],
- ["AA40",0x6607],
- ["CCC8",0x6608],
- ["CCC4",0x6609],
- ["A9FE",0x660A],
- ["CCCB",0x660B],
- ["A9F7",0x660C],
- ["CCCC",0x660D],
- ["A9FA",0x660E],
- ["A9FC",0x660F],
- ["CCD0",0x6610],
- ["CCCF",0x6611],
- ["CCC7",0x6612],
- ["A9F6",0x6613],
- ["A9F5",0x6614],
- ["A9FD",0x6615],
- ["CEEF",0x661C],
- ["CEF5",0x661D],
- ["AC50",0x661F],
- ["AC4D",0x6620],
- ["CEEC",0x6621],
- ["CEF1",0x6622],
- ["AC53",0x6624],
- ["AC4B",0x6625],
- ["CEF0",0x6626],
- ["AC4E",0x6627],
- ["AC51",0x6628],
- ["CEF3",0x662B],
- ["AC4C",0x662D],
- ["CEF8",0x662E],
- ["AC4F",0x662F],
- ["AC52",0x6631],
- ["CEED",0x6632],
- ["CEF2",0x6633],
- ["CEF6",0x6634],
- ["CEEE",0x6635],
- ["CEEB",0x6636],
- ["CEF7",0x6639],
- ["CEF4",0x663A],
- ["AED0",0x6641],
- ["AEC9",0x6642],
- ["AECC",0x6643],
- ["AECF",0x6645],
- ["D1D5",0x6647],
- ["AECA",0x6649],
- ["D1D3",0x664A],
- ["AECE",0x664C],
- ["AECB",0x664F],
- ["D1D6",0x6651],
- ["AECD",0x6652],
- ["D5AC",0x6659],
- ["B1DF",0x665A],
- ["D5AB",0x665B],
- ["D5AD",0x665C],
- ["B1DE",0x665D],
- ["B1E3",0x665E],
- ["D1D4",0x665F],
- ["D5AA",0x6661],
- ["D5AE",0x6662],
- ["B1E0",0x6664],
- ["D5A9",0x6665],
- ["B1E2",0x6666],
- ["B1E1",0x6668],
- ["D9A7",0x666A],
- ["D9A2",0x666C],
["B4B6",0x666E],
- ["B4BA",0x666F],
["B4B7",0x6670],
- ["D9A5",0x6671],
- ["D9A8",0x6672],
["B4B8",0x6674],
["B4B9",0x6676],
- ["B4BE",0x6677],
- ["DDC7",0x6678],
- ["D9A6",0x6679],
+ ["B4BA",0x666F],
+ ["B4BB",0x6691],
["B4BC",0x667A],
- ["D9A3",0x667B],
- ["D9A1",0x667C],
["B4BD",0x667E],
- ["D9A4",0x6680],
- ["B779",0x6684],
- ["DDBF",0x6686],
- ["B776",0x6687],
- ["B777",0x6688],
- ["B775",0x6689],
- ["DDC4",0x668A],
- ["DDC3",0x668B],
- ["DDC0",0x668C],
- ["B77B",0x668D],
- ["DDC2",0x6690],
- ["B4BB",0x6691],
- ["DDC6",0x6694],
- ["DDC1",0x6695],
- ["B778",0x6696],
- ["B774",0x6697],
- ["B77A",0x6698],
- ["DDC5",0x6699],
- ["BA5C",0x669D],
- ["E1F8",0x669F],
- ["E1F7",0x66A0],
- ["E1F6",0x66A1],
- ["BA5A",0x66A2],
- ["BA5B",0x66A8],
- ["E5C5",0x66A9],
- ["E5C8",0x66AA],
- ["BCC8",0x66AB],
- ["BCC7",0x66AE],
- ["E5C9",0x66AF],
- ["E5C4",0x66B0],
- ["BCCA",0x66B1],
- ["E5C6",0x66B2],
- ["BCC9",0x66B4],
- ["E5C3",0x66B5],
- ["E5C7",0x66B7],
- ["BEE9",0x66B8],
- ["BEE6",0x66B9],
- ["E9BB",0x66BA],
- ["E9BA",0x66BB],
- ["E9B9",0x66BD],
- ["E9B4",0x66BE],
- ["E9B5",0x66C0],
- ["BEE7",0x66C4],
- ["BEE4",0x66C6],
- ["BEE8",0x66C7],
- ["E9B3",0x66C8],
- ["BEE5",0x66C9],
- ["E9B6",0x66CA],
- ["E9B7",0x66CB],
- ["E9BC",0x66CC],
- ["E9B8",0x66CF],
- ["ECF2",0x66D2],
- ["C0C7",0x66D6],
- ["EFDC",0x66D8],
- ["C0C6",0x66D9],
- ["EFDA",0x66DA],
- ["EFDB",0x66DB],
- ["C260",0x66DC],
- ["C36E",0x66DD],
- ["F24B",0x66DE],
- ["C36D",0x66E0],
- ["F451",0x66E3],
- ["F452",0x66E4],
- ["C466",0x66E6],
- ["F450",0x66E8],
- ["C4E4",0x66E9],
- ["F7DF",0x66EB],
- ["C5CE",0x66EC],
- ["F8AA",0x66ED],
- ["F8AB",0x66EE],
- ["A4EA",0x66F0],
- ["A6B1",0x66F2],
- ["A6B2",0x66F3],
- ["A7F3",0x66F4],
- ["CCD1",0x66F6],
- ["AC54",0x66F7],
- ["AED1",0x66F8],
- ["B1E4",0x66F9],
- ["B0D2",0x66FC],
+ ["B4BE",0x6677],
["B4BF",0x66FE],
["B4C0",0x66FF],
- ["B3CC",0x6700],
- ["D9A9",0x6701],
- ["B77C",0x6703],
- ["E1FA",0x6704],
- ["E1F9",0x6705],
- ["A4EB",0x6708],
- ["A6B3",0x6709],
- ["CCD2",0x670A],
- ["AA42",0x670B],
- ["AA41",0x670D],
- ["CEF9",0x670F],
- ["CEFA",0x6710],
- ["D1D7",0x6712],
- ["D1D8",0x6713],
- ["AED2",0x6714],
- ["AED3",0x6715],
- ["AED4",0x6717],
- ["D5AF",0x6718],
- ["B1E6",0x671B],
- ["B4C2",0x671D],
["B4C1",0x671F],
- ["DDC8",0x6720],
- ["DF7A",0x6721],
- ["E1FB",0x6722],
- ["E9BD",0x6723],
- ["C261",0x6726],
- ["C467",0x6727],
- ["A4EC",0x6728],
- ["A5BC",0x672A],
- ["A5BD",0x672B],
- ["A5BB",0x672C],
- ["A5BE",0x672D],
- ["A5BA",0x672E],
- ["A6B6",0x6731],
- ["C9F6",0x6733],
- ["A6B5",0x6734],
- ["A6B7",0x6735],
- ["C9F1",0x6738],
- ["C9F0",0x6739],
- ["C9F3",0x673A],
- ["C9F2",0x673B],
- ["C9F5",0x673C],
- ["A6B4",0x673D],
- ["C9EF",0x673E],
- ["C9F4",0x673F],
- ["CAFD",0x6745],
- ["A7FD",0x6746],
- ["CAFE",0x6747],
- ["CB43",0x6748],
- ["A7FC",0x6749],
- ["CB47",0x674B],
- ["CB42",0x674C],
- ["CB45",0x674D],
- ["A7F5",0x674E],
- ["A7F6",0x674F],
- ["A7F7",0x6750],
- ["A7F8",0x6751],
- ["A840",0x6753],
- ["CB41",0x6755],
- ["A7FA",0x6756],
- ["A841",0x6757],
- ["CB40",0x6759],
- ["CB46",0x675A],
- ["A7F9",0x675C],
- ["CB44",0x675D],
- ["A7FB",0x675E],
- ["A7F4",0x675F],
- ["A7FE",0x6760],
- ["AA57",0x676A],
- ["CCD4",0x676C],
- ["AA43",0x676D],
- ["AA4D",0x676F],
- ["AA4E",0x6770],
- ["AA46",0x6771],
- ["AA58",0x6772],
- ["AA48",0x6773],
- ["CCDC",0x6774],
- ["AA53",0x6775],
- ["CCD7",0x6776],
- ["AA49",0x6777],
- ["CCE6",0x6778],
- ["CCE7",0x6779],
- ["CCDF",0x677A],
- ["CCD8",0x677B],
- ["AA56",0x677C],
- ["CCE4",0x677D],
- ["AA51",0x677E],
- ["AA4F",0x677F],
- ["CCE5",0x6781],
- ["CCE3",0x6783],
- ["CCDB",0x6784],
- ["CCD3",0x6785],
- ["CCDA",0x6786],
- ["AA4A",0x6787],
- ["AA50",0x6789],
- ["AA44",0x678B],
- ["CCDE",0x678C],
- ["CCDD",0x678D],
- ["CCD5",0x678E],
- ["AA52",0x6790],
- ["CCE1",0x6791],
- ["CCD6",0x6792],
- ["AA55",0x6793],
- ["CCE8",0x6794],
- ["AA45",0x6795],
- ["AA4C",0x6797],
- ["CCD9",0x6798],
- ["CCE2",0x6799],
- ["AA54",0x679A],
- ["AA47",0x679C],
- ["AA4B",0x679D],
- ["CCE0",0x679F],
- ["CF5B",0x67AE],
- ["AC5C",0x67AF],
- ["AC69",0x67B0],
- ["CF56",0x67B2],
- ["CF4C",0x67B3],
- ["AC62",0x67B4],
- ["CF4A",0x67B5],
- ["AC5B",0x67B6],
- ["CF45",0x67B7],
- ["AC65",0x67B8],
- ["CF52",0x67B9],
- ["CEFE",0x67BA],
- ["CF41",0x67BB],
- ["CF44",0x67C0],
- ["CEFB",0x67C1],
- ["CF51",0x67C2],
- ["CF61",0x67C3],
- ["AC60",0x67C4],
- ["CF46",0x67C5],
- ["CF58",0x67C6],
- ["CEFD",0x67C8],
- ["CF5F",0x67C9],
- ["CF60",0x67CA],
- ["CF63",0x67CB],
- ["CF5A",0x67CC],
- ["CF4B",0x67CD],
- ["CF53",0x67CE],
- ["AC66",0x67CF],
- ["AC59",0x67D0],
- ["AC61",0x67D1],
- ["AC6D",0x67D2],
- ["AC56",0x67D3],
- ["AC58",0x67D4],
- ["CF43",0x67D8],
- ["AC6A",0x67D9],
- ["AC63",0x67DA],
- ["CF5D",0x67DB],
- ["CF40",0x67DC],
- ["AC6C",0x67DD],
- ["AC67",0x67DE],
- ["CF49",0x67DF],
- ["AC6B",0x67E2],
- ["CF50",0x67E3],
- ["CF48",0x67E4],
- ["AC64",0x67E5],
- ["CF5C",0x67E6],
- ["CF54",0x67E7],
- ["AC5E",0x67E9],
- ["CF62",0x67EA],
- ["CF47",0x67EB],
- ["AC5A",0x67EC],
- ["CF59",0x67ED],
- ["CF4F",0x67EE],
- ["AC5F",0x67EF],
- ["CF55",0x67F0],
- ["AC57",0x67F1],
- ["CEFC",0x67F2],
- ["AC68",0x67F3],
- ["AEE3",0x67F4],
- ["AC5D",0x67F5],
- ["CF4E",0x67F6],
- ["CF4D",0x67F7],
- ["CF42",0x67F8],
- ["CF5E",0x67FA],
- ["CF57",0x67FC],
- ["AC55",0x67FF],
- ["D1EC",0x6812],
- ["AEEA",0x6813],
- ["D1ED",0x6814],
- ["D1E1",0x6816],
- ["AEDF",0x6817],
- ["AEEB",0x6818],
- ["D1DA",0x681A],
- ["D1E3",0x681C],
- ["D1EB",0x681D],
- ["D1D9",0x681F],
- ["D1F4",0x6820],
- ["AED5",0x6821],
- ["D1F3",0x6825],
- ["D1EE",0x6826],
- ["D1EF",0x6828],
- ["AEDD",0x6829],
- ["AEE8",0x682A],
- ["D1E5",0x682B],
- ["D1E6",0x682D],
- ["D1F0",0x682E],
- ["D1E7",0x682F],
- ["D1E2",0x6831],
- ["D1DC",0x6832],
- ["D1DD",0x6833],
- ["D1EA",0x6834],
- ["D1E4",0x6835],
- ["AED6",0x6838],
- ["AEDA",0x6839],
- ["D1F2",0x683A],
- ["D1DE",0x683B],
- ["AEE6",0x683C],
- ["AEE2",0x683D],
- ["AEE5",0x6840],
- ["AEEC",0x6841],
- ["AEDB",0x6842],
- ["AEE7",0x6843],
- ["D1E9",0x6844],
- ["AEE9",0x6845],
- ["AED8",0x6846],
- ["AED7",0x6848],
- ["D1DB",0x6849],
- ["D1DF",0x684B],
- ["AEE0",0x684C],
- ["D1F1",0x684D],
- ["D1E8",0x684E],
- ["D1E0",0x684F],
- ["AEE4",0x6850],
- ["AEE1",0x6851],
- ["AED9",0x6853],
- ["AEDC",0x6854],
- ["D5C4",0x686B],
- ["D5B4",0x686D],
- ["D5B5",0x686E],
- ["D5B9",0x686F],
- ["D5C8",0x6871],
- ["D5C5",0x6872],
- ["D5BE",0x6874],
- ["D5BD",0x6875],
- ["B1ED",0x6876],
- ["D5C1",0x6877],
- ["D5D0",0x6878],
- ["D5B0",0x6879],
- ["D5D1",0x687B],
- ["D5C3",0x687C],
- ["D5D5",0x687D],
- ["D5C9",0x687E],
- ["B1EC",0x687F],
- ["D5C7",0x6880],
- ["B1E7",0x6881],
- ["B1FC",0x6882],
- ["B1F2",0x6883],
- ["B1F6",0x6885],
- ["B1F5",0x6886],
- ["D5B1",0x6887],
- ["D5CE",0x6889],
- ["D5D4",0x688A],
- ["D5CC",0x688B],
- ["D5D3",0x688C],
- ["D5C0",0x688F],
- ["D5B2",0x6890],
- ["D5D2",0x6891],
- ["D5C2",0x6892],
- ["B1EA",0x6893],
- ["B1F7",0x6894],
- ["D5CB",0x6896],
- ["B1F0",0x6897],
- ["D5CA",0x689B],
- ["D5B3",0x689C],
- ["B1F8",0x689D],
- ["B1FA",0x689F],
- ["D5CD",0x68A0],
- ["B1FB",0x68A1],
- ["B1E9",0x68A2],
- ["D5BA",0x68A3],
- ["D5CF",0x68A4],
- ["B1EF",0x68A7],
- ["B1F9",0x68A8],
- ["D5BC",0x68A9],
- ["D5C6",0x68AA],
- ["D5B7",0x68AB],
- ["D5BB",0x68AC],
- ["B1F4",0x68AD],
- ["D5B6",0x68AE],
- ["B1E8",0x68AF],
- ["B1F1",0x68B0],
- ["B1EE",0x68B1],
- ["D5BF",0x68B2],
- ["AEDE",0x68B3],
- ["D9C0",0x68B4],
- ["B1EB",0x68B5],
- ["B1F3",0x68C4],
- ["D9C3",0x68C6],
- ["D9D9",0x68C7],
- ["D9CE",0x68C8],
- ["B4D6",0x68C9],
- ["B4D1",0x68CB],
- ["D9BD",0x68CC],
- ["B4D2",0x68CD],
- ["D9CD",0x68CE],
- ["D9C6",0x68D0],
- ["D9D3",0x68D1],
- ["B4CE",0x68D2],
- ["D9AB",0x68D3],
- ["D9D5",0x68D4],
+ ["B4C2",0x671D],
+ ["B4C3",0x68FA],
["B4C4",0x68D5],
- ["D9B3",0x68D6],
- ["B4C7",0x68D7],
+ ["B4C5",0x68E0],
["B4C6",0x68D8],
- ["B4D7",0x68DA],
- ["D9AD",0x68DC],
- ["D9CF",0x68DD],
- ["D9D0",0x68DE],
+ ["B4C7",0x68D7],
+ ["B4C8",0x6905],
["B4C9",0x68DF],
- ["B4C5",0x68E0],
- ["D9BB",0x68E1],
- ["B4D0",0x68E3],
- ["D9B6",0x68E4],
- ["D9D1",0x68E6],
- ["B4CC",0x68E7],
- ["D9C9",0x68E8],
- ["D9D6",0x68E9],
- ["D9B0",0x68EA],
- ["D9B5",0x68EB],
- ["D9AF",0x68EC],
- ["B4CB",0x68EE],
- ["D9C2",0x68EF],
- ["DDDE",0x68F0],
- ["D9B1",0x68F1],
- ["B4CF",0x68F2],
- ["D9BA",0x68F3],
- ["D9D2",0x68F4],
["B4CA",0x68F5],
- ["D9B7",0x68F6],
- ["D9B4",0x68F7],
- ["D9C5",0x68F8],
+ ["B4CB",0x68EE],
+ ["B4CC",0x68E7],
["B4CD",0x68F9],
- ["B4C3",0x68FA],
- ["B4D9",0x68FB],
- ["D9C8",0x68FC],
- ["D9C7",0x68FD],
- ["D9AC",0x6904],
- ["B4C8",0x6905],
- ["D9D4",0x6906],
- ["D9BC",0x6907],
- ["D9BE",0x6908],
- ["D9CB",0x690A],
- ["D9CA",0x690B],
- ["D9AA",0x690C],
+ ["B4CE",0x68D2],
+ ["B4CF",0x68F2],
+ ["B4D0",0x68E3],
+ ["B4D1",0x68CB],
+ ["B4D2",0x68CD],
["B4D3",0x690D],
- ["B4D5",0x690E],
- ["D9B2",0x690F],
- ["D9B9",0x6910],
- ["D9C1",0x6911],
["B4D4",0x6912],
- ["D9B8",0x6913],
- ["D9C4",0x6914],
- ["D9D7",0x6915],
- ["D9CC",0x6917],
- ["D9D8",0x6925],
- ["D9AE",0x692A],
- ["DDF2",0x692F],
- ["B7A6",0x6930],
- ["DDF0",0x6932],
- ["DDDB",0x6933],
- ["DDE0",0x6934],
- ["DDD9",0x6935],
- ["DDEC",0x6937],
- ["DDCB",0x6938],
- ["DDD2",0x6939],
- ["DDEA",0x693B],
- ["DDF4",0x693C],
- ["DDDC",0x693D],
- ["DDCF",0x693F],
- ["DDE2",0x6940],
- ["DDE7",0x6941],
- ["DDD3",0x6942],
- ["DDE4",0x6944],
- ["DDD0",0x6945],
- ["DDD7",0x6948],
- ["DDD8",0x6949],
- ["B7A8",0x694A],
- ["DDEB",0x694B],
- ["DDE9",0x694C],
- ["DDCC",0x694E],
- ["DDEE",0x694F],
- ["DDEF",0x6951],
- ["DDF1",0x6952],
- ["B7AC",0x6953],
- ["B7A4",0x6954],
- ["D5B8",0x6956],
- ["DDD4",0x6957],
- ["DDE6",0x6958],
- ["DDD5",0x6959],
- ["B7A1",0x695A],
- ["B7B1",0x695B],
- ["DDED",0x695C],
- ["B7AF",0x695D],
- ["B7AB",0x695E],
- ["DDCA",0x695F],
- ["B7A3",0x6960],
- ["DDCD",0x6962],
- ["B7B0",0x6963],
- ["DDDD",0x6965],
- ["DDC9",0x6966],
- ["B7A9",0x6968],
- ["DDE1",0x6969],
- ["DDD1",0x696A],
- ["B7AA",0x696B],
- ["DDDA",0x696C],
- ["B77E",0x696D],
+ ["B4D5",0x690E],
+ ["B4D6",0x68C9],
+ ["B4D7",0x68DA],
["B4D8",0x696E],
- ["DDE3",0x696F],
- ["D9BF",0x6970],
- ["DDCE",0x6971],
- ["DDE8",0x6974],
- ["B7A5",0x6975],
- ["DDE5",0x6976],
- ["B7A2",0x6977],
- ["DDDF",0x6978],
- ["B7AD",0x6979],
- ["DDD6",0x697A],
- ["DDF3",0x697B],
- ["B7A7",0x6982],
- ["DEC6",0x6983],
- ["B7AE",0x6986],
- ["E24A",0x698D],
- ["E248",0x698E],
- ["E25E",0x6990],
- ["E246",0x6991],
- ["E258",0x6993],
- ["B77D",0x6994],
- ["BA5F",0x6995],
- ["E242",0x6996],
- ["E25D",0x6997],
- ["E247",0x6999],
- ["E255",0x699A],
- ["BA64",0x699B],
- ["BA5D",0x699C],
- ["E25B",0x699E],
- ["E240",0x69A0],
- ["E25A",0x69A1],
- ["BA6F",0x69A3],
- ["E251",0x69A4],
- ["E261",0x69A5],
- ["BA6D",0x69A6],
- ["E249",0x69A7],
- ["BA5E",0x69A8],
- ["E24B",0x69A9],
- ["E259",0x69AA],
- ["BA67",0x69AB],
- ["E244",0x69AC],
- ["BA6B",0x69AD],
- ["BA61",0x69AE],
- ["E24D",0x69AF],
- ["E243",0x69B0],
- ["E1FC",0x69B1],
- ["E257",0x69B3],
- ["BA68",0x69B4],
- ["E260",0x69B5],
- ["E1FD",0x69B6],
- ["BA65",0x69B7],
- ["E253",0x69B9],
- ["BA66",0x69BB],
- ["E245",0x69BC],
- ["E250",0x69BD],
- ["E24C",0x69BE],
- ["E24E",0x69BF],
- ["BA60",0x69C1],
- ["E25F",0x69C2],
- ["BA6E",0x69C3],
- ["E24F",0x69C4],
- ["E262",0x69C6],
- ["E1FE",0x69C9],
- ["E254",0x69CA],
- ["BA63",0x69CB],
- ["BA6C",0x69CC],
- ["BA6A",0x69CD],
- ["E241",0x69CE],
- ["E256",0x69CF],
- ["BA69",0x69D0],
- ["BA62",0x69D3],
- ["E252",0x69D4],
- ["E25C",0x69D9],
- ["E5D5",0x69E2],
- ["E5D1",0x69E4],
- ["E5CD",0x69E5],
- ["E5E1",0x69E6],
- ["E5DE",0x69E7],
- ["BCCD",0x69E8],
- ["E5E5",0x69EB],
- ["E5D4",0x69EC],
- ["BCD8",0x69ED],
- ["E5DB",0x69EE],
- ["E5D0",0x69F1],
- ["E5DA",0x69F2],
- ["BCD5",0x69F3],
- ["E5EE",0x69F4],
- ["E5EB",0x69F6],
- ["E5DD",0x69F7],
- ["E5CE",0x69F8],
- ["E5E2",0x69FB],
- ["E5E4",0x69FC],
- ["BCD1",0x69FD],
- ["E5D8",0x69FE],
- ["E5D3",0x69FF],
- ["E5CA",0x6A00],
- ["BCCE",0x6A01],
- ["BCD6",0x6A02],
- ["E5E7",0x6A04],
- ["BCD7",0x6A05],
- ["E5CB",0x6A06],
- ["E5ED",0x6A07],
- ["E5E0",0x6A08],
- ["E5E6",0x6A09],
- ["BCD4",0x6A0A],
- ["E5E3",0x6A0D],
- ["E5EA",0x6A0F],
- ["BCD9",0x6A11],
- ["BCD3",0x6A13],
- ["E5DC",0x6A14],
- ["E5CF",0x6A15],
- ["E5EF",0x6A16],
- ["E5CC",0x6A17],
- ["E5E8",0x6A18],
- ["BCD0",0x6A19],
- ["E5D6",0x6A1B],
- ["E5D7",0x6A1D],
- ["BCCF",0x6A1E],
- ["BCCC",0x6A1F],
- ["E5D2",0x6A20],
- ["BCD2",0x6A21],
- ["BCCB",0x6A23],
- ["E5E9",0x6A25],
- ["E5EC",0x6A26],
- ["E5D9",0x6A27],
- ["E9CA",0x6A28],
- ["E9C2",0x6A32],
- ["E9BE",0x6A34],
- ["BEF6",0x6A35],
- ["BEEB",0x6A38],
- ["BEF0",0x6A39],
- ["BEEC",0x6A3A],
- ["E9CC",0x6A3B],
- ["E9D7",0x6A3C],
- ["BEEA",0x6A3D],
- ["E9C4",0x6A3E],
- ["E9CD",0x6A3F],
- ["E5DF",0x6A40],
- ["E9CE",0x6A41],
- ["BEF1",0x6A44],
- ["E9DD",0x6A46],
- ["BEF5",0x6A47],
- ["BEF8",0x6A48],
- ["E9C0",0x6A49],
- ["BEF4",0x6A4B],
- ["E9DB",0x6A4D],
- ["E9DC",0x6A4E],
- ["E9D2",0x6A4F],
- ["E9D1",0x6A50],
- ["E9C9",0x6A51],
- ["E9D3",0x6A54],
- ["E9DA",0x6A55],
- ["E9D9",0x6A56],
- ["BEEF",0x6A58],
- ["BEED",0x6A59],
- ["E9CB",0x6A5A],
- ["E9C8",0x6A5B],
- ["E9C5",0x6A5D],
- ["E9D8",0x6A5E],
- ["BEF7",0x6A5F],
- ["E9D6",0x6A60],
- ["BEF3",0x6A61],
- ["BEF2",0x6A62],
- ["E9D0",0x6A64],
- ["E9BF",0x6A66],
- ["E9C1",0x6A67],
- ["E9C3",0x6A68],
- ["E9D5",0x6A69],
- ["E9CF",0x6A6A],
- ["BEEE",0x6A6B],
- ["E9C6",0x6A6D],
- ["E9D4",0x6A6F],
- ["E9C7",0x6A76],
- ["C0CF",0x6A7E],
- ["ED45",0x6A7F],
- ["C0C8",0x6A80],
- ["ECF5",0x6A81],
- ["ED41",0x6A83],
- ["C0CA",0x6A84],
- ["ED48",0x6A85],
- ["ECFC",0x6A87],
- ["ECF7",0x6A89],
- ["ED49",0x6A8C],
- ["ECF3",0x6A8D],
- ["ECFE",0x6A8E],
- ["C0D1",0x6A90],
- ["ED44",0x6A91],
- ["ED4A",0x6A92],
- ["ECFD",0x6A93],
- ["C0C9",0x6A94],
- ["ED40",0x6A95],
- ["ECF4",0x6A96],
- ["C0D0",0x6A97],
- ["ED47",0x6A9A],
- ["ECF9",0x6A9B],
- ["C0CC",0x6A9C],
- ["ECFB",0x6A9E],
- ["ECF8",0x6A9F],
- ["C0D2",0x6AA0],
- ["ECFA",0x6AA1],
- ["C0CB",0x6AA2],
- ["C0CE",0x6AA3],
- ["ED43",0x6AA4],
- ["ECF6",0x6AA5],
- ["ED46",0x6AA6],
- ["ED42",0x6AA8],
- ["C263",0x6AAC],
- ["EFE7",0x6AAD],
- ["C268",0x6AAE],
- ["C269",0x6AAF],
- ["C262",0x6AB3],
- ["EFE6",0x6AB4],
- ["EFE3",0x6AB6],
- ["EFE4",0x6AB7],
- ["C266",0x6AB8],
- ["EFDE",0x6AB9],
- ["EFE2",0x6ABA],
- ["C265",0x6ABB],
- ["EFDF",0x6ABD],
- ["C267",0x6AC2],
- ["C264",0x6AC3],
- ["EFDD",0x6AC5],
- ["EFE1",0x6AC6],
- ["EFE5",0x6AC7],
- ["F251",0x6ACB],
- ["F24E",0x6ACC],
- ["F257",0x6ACD],
- ["F256",0x6ACF],
- ["F254",0x6AD0],
- ["F24F",0x6AD1],
- ["C372",0x6AD3],
- ["F250",0x6AD9],
- ["C371",0x6ADA],
- ["C0CD",0x6ADB],
- ["F253",0x6ADC],
- ["C370",0x6ADD],
- ["F258",0x6ADE],
- ["F252",0x6ADF],
- ["F24D",0x6AE0],
- ["EFE0",0x6AE1],
- ["C36F",0x6AE5],
- ["F24C",0x6AE7],
- ["F456",0x6AE8],
- ["F455",0x6AEA],
- ["F255",0x6AEB],
- ["C468",0x6AEC],
- ["F459",0x6AEE],
- ["F45A",0x6AEF],
- ["F454",0x6AF0],
- ["F458",0x6AF1],
- ["F453",0x6AF3],
- ["F5D1",0x6AF8],
- ["F457",0x6AF9],
- ["C4E7",0x6AFA],
- ["C4E5",0x6AFB],
- ["F5CF",0x6AFC],
- ["F5D2",0x6B00],
- ["F5CE",0x6B02],
- ["F5D0",0x6B03],
- ["C4E6",0x6B04],
- ["F6E5",0x6B08],
- ["F6E6",0x6B09],
- ["C576",0x6B0A],
- ["F6E4",0x6B0B],
- ["F7E2",0x6B0F],
- ["C5CF",0x6B10],
- ["F7E0",0x6B11],
- ["F7E1",0x6B12],
- ["F8AC",0x6B13],
- ["C656",0x6B16],
- ["F8F3",0x6B17],
- ["F8F1",0x6B18],
- ["F8F2",0x6B19],
- ["F8F4",0x6B1A],
- ["F9BB",0x6B1E],
- ["A4ED",0x6B20],
- ["A6B8",0x6B21],
- ["AA59",0x6B23],
- ["CCE9",0x6B25],
- ["CF64",0x6B28],
- ["D1F5",0x6B2C],
- ["D1F7",0x6B2D],
- ["D1F6",0x6B2F],
- ["D1F8",0x6B31],
- ["B1FD",0x6B32],
- ["D5D7",0x6B33],
- ["D1F9",0x6B34],
- ["D5D6",0x6B36],
- ["D5D8",0x6B37],
- ["D5D9",0x6B38],
- ["D9DA",0x6B39],
+ ["B4D9",0x68FB],
+ ["B4DA",0x6B3E],
["B4DB",0x6B3A],
- ["D9DB",0x6B3B],
- ["D9DD",0x6B3C],
["B4DC",0x6B3D],
- ["B4DA",0x6B3E],
- ["D9DC",0x6B3F],
- ["DDFA",0x6B41],
- ["DDF8",0x6B42],
- ["DDF7",0x6B43],
- ["DDF6",0x6B45],
- ["DDF5",0x6B46],
- ["B7B2",0x6B47],
- ["DDF9",0x6B48],
- ["BA70",0x6B49],
- ["E263",0x6B4A],
- ["E265",0x6B4B],
- ["BA71",0x6B4C],
- ["E264",0x6B4D],
- ["BCDB",0x6B4E],
- ["BCDA",0x6B50],
- ["E5F0",0x6B51],
- ["E9DF",0x6B54],
- ["E9DE",0x6B55],
- ["E9E0",0x6B56],
- ["BEF9",0x6B59],
- ["ED4B",0x6B5B],
- ["C0D3",0x6B5C],
- ["EFE8",0x6B5E],
- ["C26A",0x6B5F],
- ["F259",0x6B60],
- ["C577",0x6B61],
- ["A4EE",0x6B62],
- ["A5BF",0x6B63],
- ["A6B9",0x6B64],
- ["A842",0x6B65],
- ["AA5A",0x6B66],
- ["AA5B",0x6B67],
- ["AC6E",0x6B6A],
- ["D1FA",0x6B6D],
- ["B7B3",0x6B72],
- ["E6D1",0x6B76],
- ["BEFA",0x6B77],
- ["C26B",0x6B78],
- ["A4EF",0x6B79],
- ["A6BA",0x6B7B],
- ["CCEB",0x6B7E],
- ["AA5C",0x6B7F],
- ["CCEA",0x6B80],
- ["CF65",0x6B82],
- ["AC6F",0x6B83],
- ["CF66",0x6B84],
- ["AC70",0x6B86],
- ["D1FC",0x6B88],
- ["AEEE",0x6B89],
- ["AEED",0x6B8A],
- ["D5DE",0x6B8C],
- ["D5DC",0x6B8D],
- ["D5DD",0x6B8E],
- ["D5DB",0x6B8F],
- ["D5DA",0x6B91],
- ["D9DE",0x6B94],
- ["D9E1",0x6B95],
- ["B4DE",0x6B96],
- ["D9DF",0x6B97],
["B4DD",0x6B98],
- ["D9E0",0x6B99],
- ["DDFB",0x6B9B],
- ["E266",0x6B9E],
- ["E267",0x6B9F],
- ["E268",0x6BA0],
- ["E5F3",0x6BA2],
- ["E5F2",0x6BA3],
- ["BCDC",0x6BA4],
- ["E5F1",0x6BA5],
- ["E5F4",0x6BA6],
- ["E9E1",0x6BA7],
- ["E9E2",0x6BAA],
- ["E9E3",0x6BAB],
- ["ED4C",0x6BAD],
- ["C0D4",0x6BAE],
- ["C26C",0x6BAF],
- ["F25A",0x6BB0],
- ["C4E8",0x6BB2],
- ["C95F",0x6BB3],
- ["AC71",0x6BB5],
- ["CF67",0x6BB6],
- ["AEEF",0x6BB7],
- ["B1FE",0x6BBA],
+ ["B4DE",0x6B96],
["B4DF",0x6BBC],
- ["D9E2",0x6BBD],
- ["B7B5",0x6BBF],
- ["B7B4",0x6BC0],
- ["E269",0x6BC3],
- ["E26A",0x6BC4],
- ["BCDD",0x6BC5],
- ["BCDE",0x6BC6],
- ["E9E5",0x6BC7],
- ["E9E4",0x6BC8],
- ["EFE9",0x6BC9],
- ["F7E3",0x6BCA],
- ["A4F0",0x6BCB],
- ["C960",0x6BCC],
- ["A5C0",0x6BCD],
- ["A843",0x6BCF],
- ["CB48",0x6BD0],
- ["AC72",0x6BD2],
- ["B7B6",0x6BD3],
- ["A4F1",0x6BD4],
- ["CF68",0x6BD6],
- ["AC73",0x6BD7],
- ["CF69",0x6BD8],
- ["C0D5",0x6BDA],
- ["A4F2",0x6BDB],
- ["CCEC",0x6BDE],
- ["CF6A",0x6BE0],
- ["D242",0x6BE2],
- ["D241",0x6BE3],
- ["D1FE",0x6BE4],
- ["D1FD",0x6BE6],
- ["D243",0x6BE7],
- ["D240",0x6BE8],
- ["B240",0x6BEB],
- ["B241",0x6BEC],
["B4E0",0x6BEF],
- ["D9E3",0x6BF0],
- ["D9E4",0x6BF2],
- ["D9E5",0x6BF3],
- ["DE41",0x6BF7],
- ["DE42",0x6BF8],
- ["DE40",0x6BF9],
- ["DDFD",0x6BFB],
- ["DDFE",0x6BFC],
- ["B7B7",0x6BFD],
- ["E26B",0x6BFE],
- ["E5F7",0x6BFF],
- ["E5F6",0x6C00],
- ["E5F5",0x6C01],
- ["E5F8",0x6C02],
- ["E9E7",0x6C03],
- ["E9E6",0x6C04],
- ["BEFB",0x6C05],
- ["E9E8",0x6C06],
- ["C0D6",0x6C08],
- ["ED4D",0x6C09],
- ["EFEA",0x6C0B],
- ["F25B",0x6C0C],
- ["F6E7",0x6C0D],
- ["A4F3",0x6C0F],
- ["A5C2",0x6C10],
- ["A5C1",0x6C11],
- ["AA5D",0x6C13],
- ["C961",0x6C14],
- ["C97E",0x6C15],
- ["A6BB",0x6C16],
- ["C9F7",0x6C18],
- ["CB49",0x6C19],
- ["CB4A",0x6C1A],
- ["AA5E",0x6C1B],
- ["CCED",0x6C1D],
- ["AC74",0x6C1F],
- ["CF6B",0x6C20],
- ["CF6C",0x6C21],
- ["AEF0",0x6C23],
- ["AEF4",0x6C24],
- ["D244",0x6C25],
- ["AEF3",0x6C26],
- ["AEF1",0x6C27],
- ["AEF2",0x6C28],
- ["D5DF",0x6C2A],
- ["B242",0x6C2B],
- ["B4E3",0x6C2C],
["B4E1",0x6C2E],
["B4E2",0x6C2F],
- ["D9E6",0x6C30],
- ["BA72",0x6C33],
- ["A4F4",0x6C34],
- ["C9A1",0x6C36],
- ["A5C3",0x6C38],
- ["C9A4",0x6C3B],
- ["A5C6",0x6C3E],
- ["C9A3",0x6C3F],
- ["A5C5",0x6C40],
- ["A5C4",0x6C41],
- ["A844",0x6C42],
- ["C9A2",0x6C43],
- ["C9F8",0x6C46],
- ["C9FC",0x6C4A],
- ["C9FE",0x6C4B],
- ["CA40",0x6C4C],
- ["A6C5",0x6C4D],
- ["A6C6",0x6C4E],
- ["C9FB",0x6C4F],
- ["A6C1",0x6C50],
- ["C9F9",0x6C52],
- ["C9FD",0x6C54],
- ["A6C2",0x6C55],
- ["A6BD",0x6C57],
- ["A6BE",0x6C59],
- ["A6C4",0x6C5B],
- ["C9FA",0x6C5C],
- ["A6BC",0x6C5D],
- ["A845",0x6C5E],
- ["A6BF",0x6C5F],
- ["A6C0",0x6C60],
- ["A6C3",0x6C61],
- ["CB5B",0x6C65],
- ["CB59",0x6C66],
- ["CB4C",0x6C67],
- ["A851",0x6C68],
- ["CB53",0x6C69],
- ["A84C",0x6C6A],
- ["CB4D",0x6C6B],
- ["CB55",0x6C6D],
- ["CB52",0x6C6F],
- ["A84F",0x6C70],
- ["CB51",0x6C71],
- ["A856",0x6C72],
- ["CB5A",0x6C73],
- ["A858",0x6C74],
- ["A85A",0x6C76],
- ["CB4B",0x6C78],
- ["A84D",0x6C7A],
- ["CB5C",0x6C7B],
- ["A854",0x6C7D],
- ["A857",0x6C7E],
- ["CD45",0x6C80],
- ["A847",0x6C81],
- ["A85E",0x6C82],
- ["A855",0x6C83],
- ["CB4E",0x6C84],
- ["A84A",0x6C85],
- ["A859",0x6C86],
- ["CB56",0x6C87],
- ["A848",0x6C88],
- ["A849",0x6C89],
- ["CD43",0x6C8A],
- ["CB4F",0x6C8B],
- ["A850",0x6C8C],
- ["A85B",0x6C8D],
- ["CB5D",0x6C8E],
- ["CB50",0x6C8F],
- ["A84E",0x6C90],
- ["A853",0x6C92],
- ["CCEE",0x6C93],
- ["A85C",0x6C94],
- ["CB57",0x6C95],
- ["A852",0x6C96],
- ["A85D",0x6C98],
- ["A846",0x6C99],
- ["CB54",0x6C9A],
- ["A84B",0x6C9B],
- ["CB58",0x6C9C],
- ["CD44",0x6C9D],
- ["AA6A",0x6CAB],
- ["AA7A",0x6CAC],
- ["CCF5",0x6CAD],
- ["AA71",0x6CAE],
- ["CD4B",0x6CB0],
- ["AA62",0x6CB1],
- ["AA65",0x6CB3],
- ["CD42",0x6CB4],
- ["CCF3",0x6CB6],
- ["CCF7",0x6CB7],
- ["AA6D",0x6CB8],
- ["AA6F",0x6CB9],
- ["CCFA",0x6CBA],
- ["AA76",0x6CBB],
- ["AA68",0x6CBC],
- ["AA66",0x6CBD],
- ["AA67",0x6CBE],
- ["AA75",0x6CBF],
- ["CD47",0x6CC0],
- ["AA70",0x6CC1],
- ["CCF9",0x6CC2],
- ["CCFB",0x6CC3],
- ["AA6E",0x6CC4],
- ["AA73",0x6CC5],
- ["CCFC",0x6CC6],
- ["CD4A",0x6CC7],
- ["AC75",0x6CC9],
- ["AA79",0x6CCA],
- ["AA63",0x6CCC],
- ["CD49",0x6CCD],
- ["CD4D",0x6CCF],
- ["CCF8",0x6CD0],
- ["CD4F",0x6CD1],
- ["CD40",0x6CD2],
- ["AA6C",0x6CD3],
- ["CCF4",0x6CD4],
- ["AA6B",0x6CD5],
- ["AA7D",0x6CD6],
- ["AA72",0x6CD7],
- ["CCF2",0x6CD9],
- ["CF75",0x6CDA],
- ["AA78",0x6CDB],
- ["AA7C",0x6CDC],
- ["CD41",0x6CDD],
- ["CD46",0x6CDE],
- ["AA7E",0x6CE0],
- ["AA77",0x6CE1],
- ["AA69",0x6CE2],
- ["AA5F",0x6CE3],
- ["AA64",0x6CE5],
- ["CCF6",0x6CE7],
- ["AA60",0x6CE8],
- ["CD4E",0x6CE9],
- ["CCF0",0x6CEB],
- ["CCEF",0x6CEC],
- ["CCFD",0x6CED],
- ["CCF1",0x6CEE],
- ["AA7B",0x6CEF],
- ["AEF5",0x6CF0],
- ["AA74",0x6CF1],
- ["CCFE",0x6CF2],
- ["AA61",0x6CF3],
- ["ACA6",0x6CF5],
- ["CD4C",0x6CF9],
- ["CF7C",0x6D00],
- ["CFA1",0x6D01],
- ["CFA4",0x6D03],
- ["CF77",0x6D04],
- ["CFA7",0x6D07],
- ["CFAA",0x6D08],
- ["CFAC",0x6D09],
- ["CF74",0x6D0A],
- ["AC76",0x6D0B],
- ["AC7B",0x6D0C],
- ["D249",0x6D0D],
- ["ACAD",0x6D0E],
- ["CFA5",0x6D0F],
- ["CFAD",0x6D10],
- ["CF7B",0x6D11],
- ["CF73",0x6D12],
- ["D264",0x6D16],
- ["AC7E",0x6D17],
- ["CFA2",0x6D18],
- ["CF78",0x6D19],
- ["CF7A",0x6D1A],
- ["ACA5",0x6D1B],
- ["CF7D",0x6D1D],
- ["AC7D",0x6D1E],
- ["CF70",0x6D1F],
- ["CFA8",0x6D20],
- ["CFAB",0x6D22],
- ["AC7A",0x6D25],
- ["ACA8",0x6D27],
- ["CF6D",0x6D28],
- ["ACAA",0x6D29],
- ["AC78",0x6D2A],
- ["ACAE",0x6D2B],
- ["CFA9",0x6D2C],
- ["CF6F",0x6D2D],
- ["ACAB",0x6D2E],
- ["D25E",0x6D2F],
- ["CD48",0x6D30],
- ["AC7C",0x6D31],
- ["AC77",0x6D32],
- ["CF76",0x6D33],
- ["CF6E",0x6D34],
- ["ACAC",0x6D35],
- ["ACA4",0x6D36],
- ["CFA3",0x6D37],
- ["ACA9",0x6D38],
- ["ACA7",0x6D39],
- ["CF79",0x6D3A],
- ["ACA1",0x6D3B],
- ["CF71",0x6D3C],
- ["ACA2",0x6D3D],
- ["ACA3",0x6D3E],
- ["CF72",0x6D3F],
- ["CFA6",0x6D40],
- ["AC79",0x6D41],
- ["CF7E",0x6D42],
- ["D24C",0x6D58],
- ["AEFD",0x6D59],
- ["AF43",0x6D5A],
- ["D255",0x6D5E],
- ["D25B",0x6D5F],
- ["D257",0x6D60],
- ["D24A",0x6D61],
- ["D24D",0x6D62],
- ["D246",0x6D63],
- ["D247",0x6D64],
- ["AF4A",0x6D65],
- ["AEFA",0x6D66],
- ["D256",0x6D67],
- ["D25F",0x6D68],
- ["AF45",0x6D69],
- ["AEF6",0x6D6A],
- ["AF40",0x6D6C],
- ["D24E",0x6D6D],
- ["AF42",0x6D6E],
- ["D24F",0x6D6F],
- ["D259",0x6D70],
- ["AF44",0x6D74],
- ["D268",0x6D75],
- ["D248",0x6D76],
- ["AEFC",0x6D77],
- ["AEFB",0x6D78],
- ["AF48",0x6D79],
- ["D245",0x6D7A],
- ["D266",0x6D7B],
- ["D25A",0x6D7C],
- ["D267",0x6D7D],
- ["D261",0x6D7E],
- ["D253",0x6D7F],
- ["D262",0x6D80],
- ["D25C",0x6D82],
- ["D265",0x6D83],
- ["D263",0x6D84],
- ["AF49",0x6D85],
- ["D254",0x6D86],
- ["AEF9",0x6D87],
- ["AEF8",0x6D88],
- ["AF41",0x6D89],
- ["AF47",0x6D8A],
- ["D260",0x6D8B],
- ["AF46",0x6D8C],
- ["D251",0x6D8D],
- ["B243",0x6D8E],
- ["D269",0x6D90],
- ["D250",0x6D91],
- ["D24B",0x6D92],
- ["AEFE",0x6D93],
- ["AF4B",0x6D94],
- ["AEF7",0x6D95],
- ["D258",0x6D97],
- ["D25D",0x6D98],
- ["B265",0x6DAA],
- ["D5E1",0x6DAB],
- ["D5E5",0x6DAC],
- ["B252",0x6DAE],
- ["B250",0x6DAF],
- ["B247",0x6DB2],
- ["D5E3",0x6DB3],
- ["D5E2",0x6DB4],
- ["B25B",0x6DB5],
- ["D5E8",0x6DB7],
- ["B255",0x6DB8],
- ["D5FA",0x6DBA],
- ["D647",0x6DBB],
- ["B244",0x6DBC],
- ["D5F7",0x6DBD],
- ["D5F0",0x6DBE],
- ["B267",0x6DBF],
- ["D5E0",0x6DC0],
- ["D5FC",0x6DC2],
- ["B264",0x6DC4],
- ["B258",0x6DC5],
- ["B263",0x6DC6],
- ["B24E",0x6DC7],
- ["D5EC",0x6DC8],
- ["D5FE",0x6DC9],
- ["D5F6",0x6DCA],
- ["B24F",0x6DCB],
- ["B249",0x6DCC],
- ["D645",0x6DCD],
- ["D5FD",0x6DCF],
- ["D640",0x6DD0],
- ["B251",0x6DD1],
- ["B259",0x6DD2],
- ["D642",0x6DD3],
- ["D5EA",0x6DD4],
- ["D5FB",0x6DD5],
- ["D5EF",0x6DD6],
- ["D644",0x6DD7],
- ["B25E",0x6DD8],
- ["B246",0x6DD9],
- ["B25C",0x6DDA],
- ["D5F4",0x6DDB],
- ["D5F2",0x6DDC],
- ["D5F3",0x6DDD],
- ["B253",0x6DDE],
- ["D5EE",0x6DDF],
- ["D5ED",0x6DE0],
- ["B248",0x6DE1],
- ["D5E7",0x6DE2],
- ["D646",0x6DE3],
- ["B24A",0x6DE4],
- ["D5F1",0x6DE5],
- ["B268",0x6DE6],
- ["B262",0x6DE8],
- ["D5E6",0x6DE9],
- ["B25F",0x6DEA],
- ["B25D",0x6DEB],
- ["B266",0x6DEC],
- ["D5F8",0x6DED],
- ["B261",0x6DEE],
- ["D252",0x6DEF],
- ["D5F9",0x6DF0],
- ["B260",0x6DF1],
- ["D641",0x6DF2],
- ["B245",0x6DF3],
- ["D5F5",0x6DF4],
- ["B257",0x6DF5],
- ["D5E9",0x6DF6],
- ["B256",0x6DF7],
- ["B254",0x6DF9],
- ["B24C",0x6DFA],
- ["B24B",0x6DFB],
- ["D9E7",0x6DFC],
- ["D643",0x6DFD],
- ["D5EB",0x6E00],
- ["D9FC",0x6E03],
- ["B24D",0x6E05],
- ["B541",0x6E19],
- ["B25A",0x6E1A],
- ["B4EE",0x6E1B],
- ["D9F6",0x6E1C],
- ["B4FC",0x6E1D],
- ["D9EA",0x6E1F],
- ["B4EB",0x6E20],
+ ["B4E3",0x6C2C],
+ ["B4E4",0x6E2F],
+ ["B4E5",0x6E38],
+ ["B4E6",0x6E54],
["B4E7",0x6E21],
- ["DA49",0x6E22],
+ ["B4E8",0x6E32],
+ ["B4E9",0x6E67],
+ ["B4EA",0x6E4A],
+ ["B4EB",0x6E20],
+ ["B4EC",0x6E25],
["B4ED",0x6E23],
+ ["B4EE",0x6E1B],
+ ["B4EF",0x6E5B],
+ ["B4F0",0x6E58],
["B4F1",0x6E24],
- ["B4EC",0x6E25],
- ["B4F5",0x6E26],
- ["DA4D",0x6E27],
- ["DA44",0x6E28],
- ["D9F1",0x6E2B],
- ["B4FA",0x6E2C],
+ ["B4F2",0x6E56],
+ ["B4F3",0x6E6E],
["B4F4",0x6E2D],
- ["D9FD",0x6E2E],
- ["B4E4",0x6E2F],
- ["DA4A",0x6E30],
- ["DA43",0x6E31],
- ["B4E8",0x6E32],
- ["D9F7",0x6E33],
+ ["B4F5",0x6E26],
+ ["B4F6",0x6E6F],
["B4F7",0x6E34],
- ["DA55",0x6E35],
- ["DA56",0x6E36],
- ["B4E5",0x6E38],
- ["DA48",0x6E39],
+ ["B4F8",0x6E4D],
["B4F9",0x6E3A],
- ["D9FB",0x6E3B],
- ["D9ED",0x6E3C],
- ["D9EE",0x6E3D],
- ["B4FD",0x6E3E],
- ["D9F2",0x6E3F],
- ["D9F9",0x6E40],
- ["D9F3",0x6E41],
+ ["B4FA",0x6E2C],
["B4FB",0x6E43],
- ["B544",0x6E44],
- ["D9EF",0x6E45],
- ["D9E8",0x6E46],
- ["D9E9",0x6E47],
- ["D9EB",0x6E49],
- ["B4EA",0x6E4A],
- ["D9F8",0x6E4B],
- ["B4F8",0x6E4D],
+ ["B4FC",0x6E1D],
+ ["B4FD",0x6E3E],
+ ["B4FE",0x6ECB],
+ ["B540",0x6E89],
+ ["B541",0x6E19],
["B542",0x6E4E],
- ["D9FA",0x6E51],
- ["DA53",0x6E52],
- ["DA4B",0x6E53],
- ["B4E6",0x6E54],
- ["DA51",0x6E55],
- ["B4F2",0x6E56],
- ["B4F0",0x6E58],
- ["DA57",0x6E5A],
- ["B4EF",0x6E5B],
- ["DA41",0x6E5C],
- ["D9F4",0x6E5D],
- ["D9FE",0x6E5E],
- ["B547",0x6E5F],
- ["DA45",0x6E60],
- ["DA42",0x6E61],
- ["D9F0",0x6E62],
["B543",0x6E63],
- ["DA4F",0x6E64],
- ["DA4C",0x6E65],
- ["DA54",0x6E66],
- ["B4E9",0x6E67],
- ["DA40",0x6E68],
- ["B546",0x6E69],
- ["DA47",0x6E6B],
- ["B4F3",0x6E6E],
- ["B4F6",0x6E6F],
- ["DA46",0x6E71],
+ ["B544",0x6E44],
["B545",0x6E72],
- ["D9F5",0x6E73],
- ["D5E4",0x6E74],
- ["DA50",0x6E77],
- ["DA4E",0x6E78],
- ["DA52",0x6E79],
- ["D9EC",0x6E88],
- ["B540",0x6E89],
- ["DE61",0x6E8D],
- ["DE60",0x6E8E],
- ["DE46",0x6E8F],
- ["B7BD",0x6E90],
- ["DE5F",0x6E92],
- ["DE49",0x6E93],
- ["DE4A",0x6E94],
- ["B7C7",0x6E96],
- ["DE68",0x6E97],
- ["B7C2",0x6E98],
- ["DE5E",0x6E99],
- ["DE43",0x6E9B],
- ["B7C8",0x6E9C],
- ["B7BE",0x6E9D],
- ["DE52",0x6E9E],
- ["DE48",0x6E9F],
- ["DE4B",0x6EA0],
- ["DE63",0x6EA1],
+ ["B546",0x6E69],
+ ["B547",0x6E5F],
+ ["B548",0x7119],
+ ["B549",0x711A],
+ ["B54A",0x7126],
+ ["B54B",0x7130],
+ ["B54C",0x7121],
+ ["B54D",0x7136],
+ ["B54E",0x716E],
+ ["B54F",0x711C],
+ ["B550",0x724C],
+ ["B551",0x7284],
+ ["B552",0x7280],
+ ["B553",0x7336],
+ ["B554",0x7325],
+ ["B555",0x7334],
+ ["B556",0x7329],
+ ["B557",0x743A],
+ ["B558",0x742A],
+ ["B559",0x7433],
+ ["B55A",0x7422],
+ ["B55B",0x7425],
+ ["B55C",0x7435],
+ ["B55D",0x7436],
+ ["B55E",0x7434],
+ ["B55F",0x742F],
+ ["B560",0x741B],
+ ["B561",0x7426],
+ ["B562",0x7428],
+ ["B563",0x7525],
+ ["B564",0x7526],
+ ["B565",0x756B],
+ ["B566",0x756A],
+ ["B567",0x75E2],
+ ["B568",0x75DB],
+ ["B569",0x75E3],
+ ["B56A",0x75D9],
+ ["B56B",0x75D8],
+ ["B56C",0x75DE],
+ ["B56D",0x75E0],
+ ["B56E",0x767B],
+ ["B56F",0x767C],
+ ["B570",0x7696],
+ ["B571",0x7693],
+ ["B572",0x76B4],
+ ["B573",0x76DC],
+ ["B574",0x774F],
+ ["B575",0x77ED],
+ ["B576",0x785D],
+ ["B577",0x786C],
+ ["B578",0x786F],
+ ["B579",0x7A0D],
+ ["B57A",0x7A08],
+ ["B57B",0x7A0B],
+ ["B57C",0x7A05],
+ ["B57D",0x7A00],
+ ["B57E",0x7A98],
+ ["B5A1",0x7A97],
+ ["B5A2",0x7A96],
+ ["B5A3",0x7AE5],
+ ["B5A4",0x7AE3],
+ ["B5A5",0x7B49],
+ ["B5A6",0x7B56],
+ ["B5A7",0x7B46],
+ ["B5A8",0x7B50],
+ ["B5A9",0x7B52],
+ ["B5AA",0x7B54],
+ ["B5AB",0x7B4D],
+ ["B5AC",0x7B4B],
+ ["B5AD",0x7B4F],
+ ["B5AE",0x7B51],
+ ["B5AF",0x7C9F],
+ ["B5B0",0x7CA5],
+ ["B5B1",0x7D5E],
+ ["B5B2",0x7D50],
+ ["B5B3",0x7D68],
+ ["B5B4",0x7D55],
+ ["B5B5",0x7D2B],
+ ["B5B6",0x7D6E],
+ ["B5B7",0x7D72],
+ ["B5B8",0x7D61],
+ ["B5B9",0x7D66],
+ ["B5BA",0x7D62],
+ ["B5BB",0x7D70],
+ ["B5BC",0x7D73],
+ ["B5BD",0x5584],
+ ["B5BE",0x7FD4],
+ ["B5BF",0x7FD5],
+ ["B5C0",0x800B],
+ ["B5C1",0x8052],
+ ["B5C2",0x8085],
+ ["B5C3",0x8155],
+ ["B5C4",0x8154],
+ ["B5C5",0x814B],
+ ["B5C6",0x8151],
+ ["B5C7",0x814E],
+ ["B5C8",0x8139],
+ ["B5C9",0x8146],
+ ["B5CA",0x813E],
+ ["B5CB",0x814C],
+ ["B5CC",0x8153],
+ ["B5CD",0x8174],
+ ["B5CE",0x8212],
+ ["B5CF",0x821C],
+ ["B5D0",0x83E9],
+ ["B5D1",0x8403],
+ ["B5D2",0x83F8],
+ ["B5D3",0x840D],
+ ["B5D4",0x83E0],
+ ["B5D5",0x83C5],
+ ["B5D6",0x840B],
+ ["B5D7",0x83C1],
+ ["B5D8",0x83EF],
+ ["B5D9",0x83F1],
+ ["B5DA",0x83F4],
+ ["B5DB",0x8457],
+ ["B5DC",0x840A],
+ ["B5DD",0x83F0],
+ ["B5DE",0x840C],
+ ["B5DF",0x83CC],
+ ["B5E0",0x83FD],
+ ["B5E1",0x83F2],
+ ["B5E2",0x83CA],
+ ["B5E3",0x8438],
+ ["B5E4",0x840E],
+ ["B5E5",0x8404],
+ ["B5E6",0x83DC],
+ ["B5E7",0x8407],
+ ["B5E8",0x83D4],
+ ["B5E9",0x83DF],
+ ["B5EA",0x865B],
+ ["B5EB",0x86DF],
+ ["B5EC",0x86D9],
+ ["B5ED",0x86ED],
+ ["B5EE",0x86D4],
+ ["B5EF",0x86DB],
+ ["B5F0",0x86E4],
+ ["B5F1",0x86D0],
+ ["B5F2",0x86DE],
+ ["B5F3",0x8857],
+ ["B5F4",0x88C1],
+ ["B5F5",0x88C2],
+ ["B5F6",0x88B1],
+ ["B5F7",0x8983],
+ ["B5F8",0x8996],
+ ["B5F9",0x8A3B],
+ ["B5FA",0x8A60],
+ ["B5FB",0x8A55],
+ ["B5FC",0x8A5E],
+ ["B5FD",0x8A3C],
+ ["B5FE",0x8A41],
+ ["B640",0x8A54],
+ ["B641",0x8A5B],
+ ["B642",0x8A50],
+ ["B643",0x8A46],
+ ["B644",0x8A34],
+ ["B645",0x8A3A],
+ ["B646",0x8A36],
+ ["B647",0x8A56],
+ ["B648",0x8C61],
+ ["B649",0x8C82],
+ ["B64A",0x8CAF],
+ ["B64B",0x8CBC],
+ ["B64C",0x8CB3],
+ ["B64D",0x8CBD],
+ ["B64E",0x8CC1],
+ ["B64F",0x8CBB],
+ ["B650",0x8CC0],
+ ["B651",0x8CB4],
+ ["B652",0x8CB7],
+ ["B653",0x8CB6],
+ ["B654",0x8CBF],
+ ["B655",0x8CB8],
+ ["B656",0x8D8A],
+ ["B657",0x8D85],
+ ["B658",0x8D81],
+ ["B659",0x8DCE],
+ ["B65A",0x8DDD],
+ ["B65B",0x8DCB],
+ ["B65C",0x8DDA],
+ ["B65D",0x8DD1],
+ ["B65E",0x8DCC],
+ ["B65F",0x8DDB],
+ ["B660",0x8DC6],
+ ["B661",0x8EFB],
+ ["B662",0x8EF8],
+ ["B663",0x8EFC],
+ ["B664",0x8F9C],
+ ["B665",0x902E],
+ ["B666",0x9035],
+ ["B667",0x9031],
+ ["B668",0x9038],
+ ["B669",0x9032],
+ ["B66A",0x9036],
+ ["B66B",0x9102],
+ ["B66C",0x90F5],
+ ["B66D",0x9109],
+ ["B66E",0x90FE],
+ ["B66F",0x9163],
+ ["B670",0x9165],
+ ["B671",0x91CF],
+ ["B672",0x9214],
+ ["B673",0x9215],
+ ["B674",0x9223],
+ ["B675",0x9209],
+ ["B676",0x921E],
+ ["B677",0x920D],
+ ["B678",0x9210],
+ ["B679",0x9207],
+ ["B67A",0x9211],
+ ["B67B",0x9594],
+ ["B67C",0x958F],
+ ["B67D",0x958B],
+ ["B67E",0x9591],
+ ["B6A1",0x9593],
+ ["B6A2",0x9592],
+ ["B6A3",0x958E],
+ ["B6A4",0x968A],
+ ["B6A5",0x968E],
+ ["B6A6",0x968B],
+ ["B6A7",0x967D],
+ ["B6A8",0x9685],
+ ["B6A9",0x9686],
+ ["B6AA",0x968D],
+ ["B6AB",0x9672],
+ ["B6AC",0x9684],
+ ["B6AD",0x96C1],
+ ["B6AE",0x96C5],
+ ["B6AF",0x96C4],
+ ["B6B0",0x96C6],
+ ["B6B1",0x96C7],
+ ["B6B2",0x96EF],
+ ["B6B3",0x96F2],
+ ["B6B4",0x97CC],
+ ["B6B5",0x9805],
+ ["B6B6",0x9806],
+ ["B6B7",0x9808],
+ ["B6B8",0x98E7],
+ ["B6B9",0x98EA],
+ ["B6BA",0x98EF],
+ ["B6BB",0x98E9],
+ ["B6BC",0x98F2],
+ ["B6BD",0x98ED],
+ ["B6BE",0x99AE],
+ ["B6BF",0x99AD],
+ ["B6C0",0x9EC3],
+ ["B6C1",0x9ECD],
+ ["B6C2",0x9ED1],
+ ["B6C3",0x4E82],
+ ["B6C4",0x50AD],
+ ["B6C5",0x50B5],
+ ["B6C6",0x50B2],
+ ["B6C7",0x50B3],
+ ["B6C8",0x50C5],
+ ["B6C9",0x50BE],
+ ["B6CA",0x50AC],
+ ["B6CB",0x50B7],
+ ["B6CC",0x50BB],
+ ["B6CD",0x50AF],
+ ["B6CE",0x50C7],
+ ["B6CF",0x527F],
+ ["B6D0",0x5277],
+ ["B6D1",0x527D],
+ ["B6D2",0x52DF],
+ ["B6D3",0x52E6],
+ ["B6D4",0x52E4],
+ ["B6D5",0x52E2],
+ ["B6D6",0x52E3],
+ ["B6D7",0x532F],
+ ["B6D8",0x55DF],
+ ["B6D9",0x55E8],
+ ["B6DA",0x55D3],
+ ["B6DB",0x55E6],
+ ["B6DC",0x55CE],
+ ["B6DD",0x55DC],
+ ["B6DE",0x55C7],
+ ["B6DF",0x55D1],
+ ["B6E0",0x55E3],
+ ["B6E1",0x55E4],
+ ["B6E2",0x55EF],
+ ["B6E3",0x55DA],
+ ["B6E4",0x55E1],
+ ["B6E5",0x55C5],
+ ["B6E6",0x55C6],
+ ["B6E7",0x55E5],
+ ["B6E8",0x55C9],
+ ["B6E9",0x5712],
+ ["B6EA",0x5713],
+ ["B6EB",0x585E],
+ ["B6EC",0x5851],
+ ["B6ED",0x5858],
+ ["B6EE",0x5857],
+ ["B6EF",0x585A],
+ ["B6F0",0x5854],
+ ["B6F1",0x586B],
+ ["B6F2",0x584C],
+ ["B6F3",0x586D],
+ ["B6F4",0x584A],
+ ["B6F5",0x5862],
+ ["B6F6",0x5852],
+ ["B6F7",0x584B],
+ ["B6F8",0x5967],
+ ["B6F9",0x5AC1],
+ ["B6FA",0x5AC9],
+ ["B6FB",0x5ACC],
+ ["B6FC",0x5ABE],
+ ["B6FD",0x5ABD],
+ ["B6FE",0x5ABC],
+ ["B740",0x5AB3],
+ ["B741",0x5AC2],
+ ["B742",0x5AB2],
+ ["B743",0x5D69],
+ ["B744",0x5D6F],
+ ["B745",0x5E4C],
+ ["B746",0x5E79],
+ ["B747",0x5EC9],
+ ["B748",0x5EC8],
+ ["B749",0x5F12],
+ ["B74A",0x5F59],
+ ["B74B",0x5FAC],
+ ["B74C",0x5FAE],
+ ["B74D",0x611A],
+ ["B74E",0x610F],
+ ["B74F",0x6148],
+ ["B750",0x611F],
+ ["B751",0x60F3],
+ ["B752",0x611B],
+ ["B753",0x60F9],
+ ["B754",0x6101],
+ ["B755",0x6108],
+ ["B756",0x614E],
+ ["B757",0x614C],
+ ["B758",0x6144],
+ ["B759",0x614D],
+ ["B75A",0x613E],
+ ["B75B",0x6134],
+ ["B75C",0x6127],
+ ["B75D",0x610D],
+ ["B75E",0x6106],
+ ["B75F",0x6137],
+ ["B760",0x6221],
+ ["B761",0x6222],
+ ["B762",0x6413],
+ ["B763",0x643E],
+ ["B764",0x641E],
+ ["B765",0x642A],
+ ["B766",0x642D],
+ ["B767",0x643D],
+ ["B768",0x642C],
+ ["B769",0x640F],
+ ["B76A",0x641C],
+ ["B76B",0x6414],
+ ["B76C",0x640D],
+ ["B76D",0x6436],
+ ["B76E",0x6416],
+ ["B76F",0x6417],
+ ["B770",0x6406],
+ ["B771",0x656C],
+ ["B772",0x659F],
+ ["B773",0x65B0],
+ ["B774",0x6697],
+ ["B775",0x6689],
+ ["B776",0x6687],
+ ["B777",0x6688],
+ ["B778",0x6696],
+ ["B779",0x6684],
+ ["B77A",0x6698],
+ ["B77B",0x668D],
+ ["B77C",0x6703],
+ ["B77D",0x6994],
+ ["B77E",0x696D],
+ ["B7A1",0x695A],
+ ["B7A2",0x6977],
+ ["B7A3",0x6960],
+ ["B7A4",0x6954],
+ ["B7A5",0x6975],
+ ["B7A6",0x6930],
+ ["B7A7",0x6982],
+ ["B7A8",0x694A],
+ ["B7A9",0x6968],
+ ["B7AA",0x696B],
+ ["B7AB",0x695E],
+ ["B7AC",0x6953],
+ ["B7AD",0x6979],
+ ["B7AE",0x6986],
+ ["B7AF",0x695D],
+ ["B7B0",0x6963],
+ ["B7B1",0x695B],
+ ["B7B2",0x6B47],
+ ["B7B3",0x6B72],
+ ["B7B4",0x6BC0],
+ ["B7B5",0x6BBF],
+ ["B7B6",0x6BD3],
+ ["B7B7",0x6BFD],
["B7B8",0x6EA2],
- ["DE6A",0x6EA3],
- ["DE62",0x6EA4],
- ["B7C1",0x6EA5],
- ["DE57",0x6EA6],
- ["B7CC",0x6EA7],
- ["B7CB",0x6EAA],
- ["B7C5",0x6EAB],
- ["DE69",0x6EAE],
["B7B9",0x6EAF],
- ["DE55",0x6EB0],
- ["DE4C",0x6EB1],
- ["DE59",0x6EB2],
- ["DE65",0x6EB3],
- ["B7CD",0x6EB4],
+ ["B7BA",0x6ED3],
["B7BB",0x6EB6],
- ["DE54",0x6EB7],
- ["DE4D",0x6EB9],
- ["B7C4",0x6EBA],
- ["B7C3",0x6EBC],
- ["DE50",0x6EBD],
- ["DE5A",0x6EBE],
- ["DE64",0x6EBF],
- ["DE47",0x6EC0],
- ["DE51",0x6EC1],
["B7BC",0x6EC2],
- ["DE5B",0x6EC3],
- ["B7C9",0x6EC4],
- ["B7C0",0x6EC5],
- ["DE4E",0x6EC6],
+ ["B7BD",0x6E90],
+ ["B7BE",0x6E9D],
["B7BF",0x6EC7],
- ["DE45",0x6EC8],
- ["DE53",0x6EC9],
- ["DE67",0x6ECA],
- ["B4FE",0x6ECB],
- ["BAB0",0x6ECC],
- ["DE56",0x6ECD],
- ["E26C",0x6ECE],
- ["DE58",0x6ECF],
- ["DE66",0x6ED0],
+ ["B7C0",0x6EC5],
+ ["B7C1",0x6EA5],
+ ["B7C2",0x6E98],
+ ["B7C3",0x6EBC],
+ ["B7C4",0x6EBA],
+ ["B7C5",0x6EAB],
["B7C6",0x6ED1],
- ["DE4F",0x6ED2],
- ["B7BA",0x6ED3],
+ ["B7C7",0x6E96],
+ ["B7C8",0x6E9C],
+ ["B7C9",0x6EC4],
["B7CA",0x6ED4],
- ["BCF0",0x6ED5],
- ["DE44",0x6ED6],
- ["DE5D",0x6ED8],
- ["DE5C",0x6EDC],
- ["E2AA",0x6EEB],
- ["BAAD",0x6EEC],
- ["E27D",0x6EED],
- ["E2A4",0x6EEE],
- ["BAA2",0x6EEF],
- ["E26E",0x6EF1],
- ["BAAF",0x6EF2],
- ["BA77",0x6EF4],
- ["E26D",0x6EF5],
- ["E2B0",0x6EF6],
- ["BAB1",0x6EF7],
- ["E271",0x6EF8],
- ["E2A3",0x6EF9],
- ["E273",0x6EFB],
- ["E2B3",0x6EFC],
- ["E2AF",0x6EFD],
+ ["B7CB",0x6EAA],
+ ["B7CC",0x6EA7],
+ ["B7CD",0x6EB4],
+ ["B7CE",0x714E],
+ ["B7CF",0x7159],
+ ["B7D0",0x7169],
+ ["B7D1",0x7164],
+ ["B7D2",0x7149],
+ ["B7D3",0x7167],
+ ["B7D4",0x715C],
+ ["B7D5",0x716C],
+ ["B7D6",0x7166],
+ ["B7D7",0x714C],
+ ["B7D8",0x7165],
+ ["B7D9",0x715E],
+ ["B7DA",0x7146],
+ ["B7DB",0x7168],
+ ["B7DC",0x7156],
+ ["B7DD",0x723A],
+ ["B7DE",0x7252],
+ ["B7DF",0x7337],
+ ["B7E0",0x7345],
+ ["B7E1",0x733F],
+ ["B7E2",0x733E],
+ ["B7E3",0x746F],
+ ["B7E4",0x745A],
+ ["B7E5",0x7455],
+ ["B7E6",0x745F],
+ ["B7E7",0x745E],
+ ["B7E8",0x7441],
+ ["B7E9",0x743F],
+ ["B7EA",0x7459],
+ ["B7EB",0x745B],
+ ["B7EC",0x745C],
+ ["B7ED",0x7576],
+ ["B7EE",0x7578],
+ ["B7EF",0x7600],
+ ["B7F0",0x75F0],
+ ["B7F1",0x7601],
+ ["B7F2",0x75F2],
+ ["B7F3",0x75F1],
+ ["B7F4",0x75FA],
+ ["B7F5",0x75FF],
+ ["B7F6",0x75F4],
+ ["B7F7",0x75F3],
+ ["B7F8",0x76DE],
+ ["B7F9",0x76DF],
+ ["B7FA",0x775B],
+ ["B7FB",0x776B],
+ ["B7FC",0x7766],
+ ["B7FD",0x775E],
+ ["B7FE",0x7763],
+ ["B840",0x7779],
+ ["B841",0x776A],
+ ["B842",0x776C],
+ ["B843",0x775C],
+ ["B844",0x7765],
+ ["B845",0x7768],
+ ["B846",0x7762],
+ ["B847",0x77EE],
+ ["B848",0x788E],
+ ["B849",0x78B0],
+ ["B84A",0x7897],
+ ["B84B",0x7898],
+ ["B84C",0x788C],
+ ["B84D",0x7889],
+ ["B84E",0x787C],
+ ["B84F",0x7891],
+ ["B850",0x7893],
+ ["B851",0x787F],
+ ["B852",0x797A],
+ ["B853",0x797F],
+ ["B854",0x7981],
+ ["B855",0x842C],
+ ["B856",0x79BD],
+ ["B857",0x7A1C],
+ ["B858",0x7A1A],
+ ["B859",0x7A20],
+ ["B85A",0x7A14],
+ ["B85B",0x7A1F],
+ ["B85C",0x7A1E],
+ ["B85D",0x7A9F],
+ ["B85E",0x7AA0],
+ ["B85F",0x7B77],
+ ["B860",0x7BC0],
+ ["B861",0x7B60],
+ ["B862",0x7B6E],
+ ["B863",0x7B67],
+ ["B864",0x7CB1],
+ ["B865",0x7CB3],
+ ["B866",0x7CB5],
+ ["B867",0x7D93],
+ ["B868",0x7D79],
+ ["B869",0x7D91],
+ ["B86A",0x7D81],
+ ["B86B",0x7D8F],
+ ["B86C",0x7D5B],
+ ["B86D",0x7F6E],
+ ["B86E",0x7F69],
+ ["B86F",0x7F6A],
+ ["B870",0x7F72],
+ ["B871",0x7FA9],
+ ["B872",0x7FA8],
+ ["B873",0x7FA4],
+ ["B874",0x8056],
+ ["B875",0x8058],
+ ["B876",0x8086],
+ ["B877",0x8084],
+ ["B878",0x8171],
+ ["B879",0x8170],
+ ["B87A",0x8178],
+ ["B87B",0x8165],
+ ["B87C",0x816E],
+ ["B87D",0x8173],
+ ["B87E",0x816B],
+ ["B8A1",0x8179],
+ ["B8A2",0x817A],
+ ["B8A3",0x8166],
+ ["B8A4",0x8205],
+ ["B8A5",0x8247],
+ ["B8A6",0x8482],
+ ["B8A7",0x8477],
+ ["B8A8",0x843D],
+ ["B8A9",0x8431],
+ ["B8AA",0x8475],
+ ["B8AB",0x8466],
+ ["B8AC",0x846B],
+ ["B8AD",0x8449],
+ ["B8AE",0x846C],
+ ["B8AF",0x845B],
+ ["B8B0",0x843C],
+ ["B8B1",0x8435],
+ ["B8B2",0x8461],
+ ["B8B3",0x8463],
+ ["B8B4",0x8469],
+ ["B8B5",0x846D],
+ ["B8B6",0x8446],
+ ["B8B7",0x865E],
+ ["B8B8",0x865C],
+ ["B8B9",0x865F],
+ ["B8BA",0x86F9],
+ ["B8BB",0x8713],
+ ["B8BC",0x8708],
+ ["B8BD",0x8707],
+ ["B8BE",0x8700],
+ ["B8BF",0x86FE],
+ ["B8C0",0x86FB],
+ ["B8C1",0x8702],
+ ["B8C2",0x8703],
+ ["B8C3",0x8706],
+ ["B8C4",0x870A],
+ ["B8C5",0x8859],
+ ["B8C6",0x88DF],
+ ["B8C7",0x88D4],
+ ["B8C8",0x88D9],
+ ["B8C9",0x88DC],
+ ["B8CA",0x88D8],
+ ["B8CB",0x88DD],
+ ["B8CC",0x88E1],
+ ["B8CD",0x88CA],
+ ["B8CE",0x88D5],
+ ["B8CF",0x88D2],
+ ["B8D0",0x899C],
+ ["B8D1",0x89E3],
+ ["B8D2",0x8A6B],
+ ["B8D3",0x8A72],
+ ["B8D4",0x8A73],
+ ["B8D5",0x8A66],
+ ["B8D6",0x8A69],
+ ["B8D7",0x8A70],
+ ["B8D8",0x8A87],
+ ["B8D9",0x8A7C],
+ ["B8DA",0x8A63],
+ ["B8DB",0x8AA0],
+ ["B8DC",0x8A71],
+ ["B8DD",0x8A85],
+ ["B8DE",0x8A6D],
+ ["B8DF",0x8A62],
+ ["B8E0",0x8A6E],
+ ["B8E1",0x8A6C],
+ ["B8E2",0x8A79],
+ ["B8E3",0x8A7B],
+ ["B8E4",0x8A3E],
+ ["B8E5",0x8A68],
+ ["B8E6",0x8C62],
+ ["B8E7",0x8C8A],
+ ["B8E8",0x8C89],
+ ["B8E9",0x8CCA],
+ ["B8EA",0x8CC7],
+ ["B8EB",0x8CC8],
+ ["B8EC",0x8CC4],
+ ["B8ED",0x8CB2],
+ ["B8EE",0x8CC3],
+ ["B8EF",0x8CC2],
+ ["B8F0",0x8CC5],
+ ["B8F1",0x8DE1],
+ ["B8F2",0x8DDF],
+ ["B8F3",0x8DE8],
+ ["B8F4",0x8DEF],
+ ["B8F5",0x8DF3],
+ ["B8F6",0x8DFA],
+ ["B8F7",0x8DEA],
+ ["B8F8",0x8DE4],
+ ["B8F9",0x8DE6],
+ ["B8FA",0x8EB2],
+ ["B8FB",0x8F03],
+ ["B8FC",0x8F09],
+ ["B8FD",0x8EFE],
+ ["B8FE",0x8F0A],
+ ["B940",0x8F9F],
+ ["B941",0x8FB2],
+ ["B942",0x904B],
+ ["B943",0x904A],
+ ["B944",0x9053],
+ ["B945",0x9042],
+ ["B946",0x9054],
+ ["B947",0x903C],
+ ["B948",0x9055],
+ ["B949",0x9050],
+ ["B94A",0x9047],
+ ["B94B",0x904F],
+ ["B94C",0x904E],
+ ["B94D",0x904D],
+ ["B94E",0x9051],
+ ["B94F",0x903E],
+ ["B950",0x9041],
+ ["B951",0x9112],
+ ["B952",0x9117],
+ ["B953",0x916C],
+ ["B954",0x916A],
+ ["B955",0x9169],
+ ["B956",0x91C9],
+ ["B957",0x9237],
+ ["B958",0x9257],
+ ["B959",0x9238],
+ ["B95A",0x923D],
+ ["B95B",0x9240],
+ ["B95C",0x923E],
+ ["B95D",0x925B],
+ ["B95E",0x924B],
+ ["B95F",0x9264],
+ ["B960",0x9251],
+ ["B961",0x9234],
+ ["B962",0x9249],
+ ["B963",0x924D],
+ ["B964",0x9245],
+ ["B965",0x9239],
+ ["B966",0x923F],
+ ["B967",0x925A],
+ ["B968",0x9598],
+ ["B969",0x9698],
+ ["B96A",0x9694],
+ ["B96B",0x9695],
+ ["B96C",0x96CD],
+ ["B96D",0x96CB],
+ ["B96E",0x96C9],
+ ["B96F",0x96CA],
+ ["B970",0x96F7],
+ ["B971",0x96FB],
+ ["B972",0x96F9],
+ ["B973",0x96F6],
+ ["B974",0x9756],
+ ["B975",0x9774],
+ ["B976",0x9776],
+ ["B977",0x9810],
+ ["B978",0x9811],
+ ["B979",0x9813],
+ ["B97A",0x980A],
+ ["B97B",0x9812],
+ ["B97C",0x980C],
+ ["B97D",0x98FC],
+ ["B97E",0x98F4],
+ ["B9A1",0x98FD],
+ ["B9A2",0x98FE],
+ ["B9A3",0x99B3],
+ ["B9A4",0x99B1],
+ ["B9A5",0x99B4],
+ ["B9A6",0x9AE1],
+ ["B9A7",0x9CE9],
+ ["B9A8",0x9E82],
+ ["B9A9",0x9F0E],
+ ["B9AA",0x9F13],
+ ["B9AB",0x9F20],
+ ["B9AC",0x50E7],
+ ["B9AD",0x50EE],
+ ["B9AE",0x50E5],
+ ["B9AF",0x50D6],
+ ["B9B0",0x50ED],
+ ["B9B1",0x50DA],
+ ["B9B2",0x50D5],
+ ["B9B3",0x50CF],
+ ["B9B4",0x50D1],
+ ["B9B5",0x50F1],
+ ["B9B6",0x50CE],
+ ["B9B7",0x50E9],
+ ["B9B8",0x5162],
+ ["B9B9",0x51F3],
+ ["B9BA",0x5283],
+ ["B9BB",0x5282],
+ ["B9BC",0x5331],
+ ["B9BD",0x53AD],
+ ["B9BE",0x55FE],
+ ["B9BF",0x5600],
+ ["B9C0",0x561B],
+ ["B9C1",0x5617],
+ ["B9C2",0x55FD],
+ ["B9C3",0x5614],
+ ["B9C4",0x5606],
+ ["B9C5",0x5609],
+ ["B9C6",0x560D],
+ ["B9C7",0x560E],
+ ["B9C8",0x55F7],
+ ["B9C9",0x5616],
+ ["B9CA",0x561F],
+ ["B9CB",0x5608],
+ ["B9CC",0x5610],
+ ["B9CD",0x55F6],
+ ["B9CE",0x5718],
+ ["B9CF",0x5716],
+ ["B9D0",0x5875],
+ ["B9D1",0x587E],
+ ["B9D2",0x5883],
+ ["B9D3",0x5893],
+ ["B9D4",0x588A],
+ ["B9D5",0x5879],
+ ["B9D6",0x5885],
+ ["B9D7",0x587D],
+ ["B9D8",0x58FD],
+ ["B9D9",0x5925],
+ ["B9DA",0x5922],
+ ["B9DB",0x5924],
+ ["B9DC",0x596A],
+ ["B9DD",0x5969],
+ ["B9DE",0x5AE1],
+ ["B9DF",0x5AE6],
+ ["B9E0",0x5AE9],
+ ["B9E1",0x5AD7],
+ ["B9E2",0x5AD6],
+ ["B9E3",0x5AD8],
+ ["B9E4",0x5AE3],
+ ["B9E5",0x5B75],
+ ["B9E6",0x5BDE],
+ ["B9E7",0x5BE7],
+ ["B9E8",0x5BE1],
+ ["B9E9",0x5BE5],
+ ["B9EA",0x5BE6],
+ ["B9EB",0x5BE8],
+ ["B9EC",0x5BE2],
+ ["B9ED",0x5BE4],
+ ["B9EE",0x5BDF],
+ ["B9EF",0x5C0D],
+ ["B9F0",0x5C62],
+ ["B9F1",0x5D84],
+ ["B9F2",0x5D87],
+ ["B9F3",0x5E5B],
+ ["B9F4",0x5E63],
+ ["B9F5",0x5E55],
+ ["B9F6",0x5E57],
+ ["B9F7",0x5E54],
+ ["B9F8",0x5ED3],
+ ["B9F9",0x5ED6],
+ ["B9FA",0x5F0A],
+ ["B9FB",0x5F46],
+ ["B9FC",0x5F70],
+ ["B9FD",0x5FB9],
+ ["B9FE",0x6147],
+ ["BA40",0x613F],
+ ["BA41",0x614B],
+ ["BA42",0x6177],
+ ["BA43",0x6162],
+ ["BA44",0x6163],
+ ["BA45",0x615F],
+ ["BA46",0x615A],
+ ["BA47",0x6158],
+ ["BA48",0x6175],
+ ["BA49",0x622A],
+ ["BA4A",0x6487],
+ ["BA4B",0x6458],
+ ["BA4C",0x6454],
+ ["BA4D",0x64A4],
+ ["BA4E",0x6478],
+ ["BA4F",0x645F],
+ ["BA50",0x647A],
+ ["BA51",0x6451],
+ ["BA52",0x6467],
+ ["BA53",0x6434],
+ ["BA54",0x646D],
+ ["BA55",0x647B],
+ ["BA56",0x6572],
+ ["BA57",0x65A1],
+ ["BA58",0x65D7],
+ ["BA59",0x65D6],
+ ["BA5A",0x66A2],
+ ["BA5B",0x66A8],
+ ["BA5C",0x669D],
+ ["BA5D",0x699C],
+ ["BA5E",0x69A8],
+ ["BA5F",0x6995],
+ ["BA60",0x69C1],
+ ["BA61",0x69AE],
+ ["BA62",0x69D3],
+ ["BA63",0x69CB],
+ ["BA64",0x699B],
+ ["BA65",0x69B7],
+ ["BA66",0x69BB],
+ ["BA67",0x69AB],
+ ["BA68",0x69B4],
+ ["BA69",0x69D0],
+ ["BA6A",0x69CD],
+ ["BA6B",0x69AD],
+ ["BA6C",0x69CC],
+ ["BA6D",0x69A6],
+ ["BA6E",0x69C3],
+ ["BA6F",0x69A3],
+ ["BA70",0x6B49],
+ ["BA71",0x6B4C],
+ ["BA72",0x6C33],
+ ["BA73",0x6F33],
+ ["BA74",0x6F14],
["BA75",0x6EFE],
- ["BAA1",0x6EFF],
- ["E653",0x6F00],
- ["BAAE",0x6F01],
- ["BA7D",0x6F02],
- ["E26F",0x6F03],
- ["E2AE",0x6F05],
- ["BAA3",0x6F06],
- ["E2AB",0x6F07],
- ["E2B8",0x6F08],
- ["E275",0x6F09],
- ["E27E",0x6F0A],
- ["E2B6",0x6F0D],
- ["E2AC",0x6F0E],
- ["BA7C",0x6F0F],
- ["E27C",0x6F12],
["BA76",0x6F13],
- ["BA74",0x6F14],
- ["BAA8",0x6F15],
- ["E27A",0x6F18],
- ["E277",0x6F19],
- ["E278",0x6F1A],
- ["E2B2",0x6F1C],
- ["E2B7",0x6F1E],
- ["E2B5",0x6F1F],
+ ["BA77",0x6EF4],
+ ["BA78",0x6F29],
+ ["BA79",0x6F3E],
["BA7A",0x6F20],
- ["E2B9",0x6F21],
+ ["BA7B",0x6F2C],
+ ["BA7C",0x6F0F],
+ ["BA7D",0x6F02],
["BA7E",0x6F22],
+ ["BAA1",0x6EFF],
+ ["BAA2",0x6EEF],
+ ["BAA3",0x6F06],
+ ["BAA4",0x6F31],
+ ["BAA5",0x6F38],
+ ["BAA6",0x6F32],
["BAA7",0x6F23],
- ["E270",0x6F25],
- ["E5FA",0x6F26],
- ["E279",0x6F27],
- ["BA78",0x6F29],
- ["BAAC",0x6F2A],
+ ["BAA8",0x6F15],
["BAA9",0x6F2B],
- ["BA7B",0x6F2C],
- ["E2A5",0x6F2D],
- ["E274",0x6F2E],
["BAAA",0x6F2F],
- ["E2A7",0x6F30],
- ["BAA4",0x6F31],
- ["BAA6",0x6F32],
- ["BA73",0x6F33],
- ["E2A9",0x6F35],
- ["E2A1",0x6F36],
- ["E272",0x6F37],
- ["BAA5",0x6F38],
- ["E2B1",0x6F39],
- ["E2B4",0x6F3A],
- ["E27B",0x6F3B],
- ["E2A8",0x6F3C],
- ["BA79",0x6F3E],
+ ["BAAB",0x6F88],
+ ["BAAC",0x6F2A],
+ ["BAAD",0x6EEC],
+ ["BAAE",0x6F01],
+ ["BAAF",0x6EF2],
+ ["BAB0",0x6ECC],
+ ["BAB1",0x6EF7],
+ ["BAB2",0x7194],
+ ["BAB3",0x7199],
+ ["BAB4",0x717D],
+ ["BAB5",0x718A],
+ ["BAB6",0x7184],
+ ["BAB7",0x7192],
+ ["BAB8",0x723E],
+ ["BAB9",0x7292],
+ ["BABA",0x7296],
+ ["BABB",0x7344],
+ ["BABC",0x7350],
+ ["BABD",0x7464],
+ ["BABE",0x7463],
+ ["BABF",0x746A],
+ ["BAC0",0x7470],
+ ["BAC1",0x746D],
+ ["BAC2",0x7504],
+ ["BAC3",0x7591],
+ ["BAC4",0x7627],
+ ["BAC5",0x760D],
+ ["BAC6",0x760B],
+ ["BAC7",0x7609],
+ ["BAC8",0x7613],
+ ["BAC9",0x76E1],
+ ["BACA",0x76E3],
+ ["BACB",0x7784],
+ ["BACC",0x777D],
+ ["BACD",0x777F],
+ ["BACE",0x7761],
+ ["BACF",0x78C1],
+ ["BAD0",0x789F],
+ ["BAD1",0x78A7],
+ ["BAD2",0x78B3],
+ ["BAD3",0x78A9],
+ ["BAD4",0x78A3],
+ ["BAD5",0x798E],
+ ["BAD6",0x798F],
+ ["BAD7",0x798D],
+ ["BAD8",0x7A2E],
+ ["BAD9",0x7A31],
+ ["BADA",0x7AAA],
+ ["BADB",0x7AA9],
+ ["BADC",0x7AED],
+ ["BADD",0x7AEF],
+ ["BADE",0x7BA1],
+ ["BADF",0x7B95],
+ ["BAE0",0x7B8B],
+ ["BAE1",0x7B75],
+ ["BAE2",0x7B97],
+ ["BAE3",0x7B9D],
+ ["BAE4",0x7B94],
+ ["BAE5",0x7B8F],
+ ["BAE6",0x7BB8],
+ ["BAE7",0x7B87],
+ ["BAE8",0x7B84],
+ ["BAE9",0x7CB9],
+ ["BAEA",0x7CBD],
+ ["BAEB",0x7CBE],
+ ["BAEC",0x7DBB],
+ ["BAED",0x7DB0],
+ ["BAEE",0x7D9C],
+ ["BAEF",0x7DBD],
+ ["BAF0",0x7DBE],
+ ["BAF1",0x7DA0],
+ ["BAF2",0x7DCA],
+ ["BAF3",0x7DB4],
+ ["BAF4",0x7DB2],
+ ["BAF5",0x7DB1],
+ ["BAF6",0x7DBA],
+ ["BAF7",0x7DA2],
+ ["BAF8",0x7DBF],
+ ["BAF9",0x7DB5],
+ ["BAFA",0x7DB8],
+ ["BAFB",0x7DAD],
+ ["BAFC",0x7DD2],
+ ["BAFD",0x7DC7],
+ ["BAFE",0x7DAC],
+ ["BB40",0x7F70],
+ ["BB41",0x7FE0],
+ ["BB42",0x7FE1],
+ ["BB43",0x7FDF],
+ ["BB44",0x805E],
+ ["BB45",0x805A],
+ ["BB46",0x8087],
+ ["BB47",0x8150],
+ ["BB48",0x8180],
+ ["BB49",0x818F],
+ ["BB4A",0x8188],
+ ["BB4B",0x818A],
+ ["BB4C",0x817F],
+ ["BB4D",0x8182],
+ ["BB4E",0x81E7],
+ ["BB4F",0x81FA],
+ ["BB50",0x8207],
+ ["BB51",0x8214],
+ ["BB52",0x821E],
+ ["BB53",0x824B],
+ ["BB54",0x84C9],
+ ["BB55",0x84BF],
+ ["BB56",0x84C6],
+ ["BB57",0x84C4],
+ ["BB58",0x8499],
+ ["BB59",0x849E],
+ ["BB5A",0x84B2],
+ ["BB5B",0x849C],
+ ["BB5C",0x84CB],
+ ["BB5D",0x84B8],
+ ["BB5E",0x84C0],
+ ["BB5F",0x84D3],
+ ["BB60",0x8490],
+ ["BB61",0x84BC],
+ ["BB62",0x84D1],
+ ["BB63",0x84CA],
+ ["BB64",0x873F],
+ ["BB65",0x871C],
+ ["BB66",0x873B],
+ ["BB67",0x8722],
+ ["BB68",0x8725],
+ ["BB69",0x8734],
+ ["BB6A",0x8718],
+ ["BB6B",0x8755],
+ ["BB6C",0x8737],
+ ["BB6D",0x8729],
+ ["BB6E",0x88F3],
+ ["BB6F",0x8902],
+ ["BB70",0x88F4],
+ ["BB71",0x88F9],
+ ["BB72",0x88F8],
+ ["BB73",0x88FD],
+ ["BB74",0x88E8],
+ ["BB75",0x891A],
+ ["BB76",0x88EF],
+ ["BB77",0x8AA6],
+ ["BB78",0x8A8C],
+ ["BB79",0x8A9E],
+ ["BB7A",0x8AA3],
+ ["BB7B",0x8A8D],
+ ["BB7C",0x8AA1],
+ ["BB7D",0x8A93],
+ ["BB7E",0x8AA4],
+ ["BBA1",0x8AAA],
+ ["BBA2",0x8AA5],
+ ["BBA3",0x8AA8],
+ ["BBA4",0x8A98],
+ ["BBA5",0x8A91],
+ ["BBA6",0x8A9A],
+ ["BBA7",0x8AA7],
+ ["BBA8",0x8C6A],
+ ["BBA9",0x8C8D],
+ ["BBAA",0x8C8C],
+ ["BBAB",0x8CD3],
+ ["BBAC",0x8CD1],
+ ["BBAD",0x8CD2],
+ ["BBAE",0x8D6B],
+ ["BBAF",0x8D99],
+ ["BBB0",0x8D95],
+ ["BBB1",0x8DFC],
+ ["BBB2",0x8F14],
+ ["BBB3",0x8F12],
+ ["BBB4",0x8F15],
+ ["BBB5",0x8F13],
+ ["BBB6",0x8FA3],
+ ["BBB7",0x9060],
+ ["BBB8",0x9058],
+ ["BBB9",0x905C],
+ ["BBBA",0x9063],
+ ["BBBB",0x9059],
+ ["BBBC",0x905E],
+ ["BBBD",0x9062],
+ ["BBBE",0x905D],
+ ["BBBF",0x905B],
+ ["BBC0",0x9119],
+ ["BBC1",0x9118],
+ ["BBC2",0x911E],
+ ["BBC3",0x9175],
+ ["BBC4",0x9178],
+ ["BBC5",0x9177],
+ ["BBC6",0x9174],
+ ["BBC7",0x9278],
+ ["BBC8",0x9280],
+ ["BBC9",0x9285],
+ ["BBCA",0x9298],
+ ["BBCB",0x9296],
+ ["BBCC",0x927B],
+ ["BBCD",0x9293],
+ ["BBCE",0x929C],
+ ["BBCF",0x92A8],
+ ["BBD0",0x927C],
+ ["BBD1",0x9291],
+ ["BBD2",0x95A1],
+ ["BBD3",0x95A8],
+ ["BBD4",0x95A9],
+ ["BBD5",0x95A3],
+ ["BBD6",0x95A5],
+ ["BBD7",0x95A4],
+ ["BBD8",0x9699],
+ ["BBD9",0x969C],
+ ["BBDA",0x969B],
+ ["BBDB",0x96CC],
+ ["BBDC",0x96D2],
+ ["BBDD",0x9700],
+ ["BBDE",0x977C],
+ ["BBDF",0x9785],
+ ["BBE0",0x97F6],
+ ["BBE1",0x9817],
+ ["BBE2",0x9818],
+ ["BBE3",0x98AF],
+ ["BBE4",0x98B1],
+ ["BBE5",0x9903],
+ ["BBE6",0x9905],
+ ["BBE7",0x990C],
+ ["BBE8",0x9909],
+ ["BBE9",0x99C1],
+ ["BBEA",0x9AAF],
+ ["BBEB",0x9AB0],
+ ["BBEC",0x9AE6],
+ ["BBED",0x9B41],
+ ["BBEE",0x9B42],
+ ["BBEF",0x9CF4],
+ ["BBF0",0x9CF6],
+ ["BBF1",0x9CF3],
+ ["BBF2",0x9EBC],
+ ["BBF3",0x9F3B],
+ ["BBF4",0x9F4A],
+ ["BBF5",0x5104],
+ ["BBF6",0x5100],
+ ["BBF7",0x50FB],
+ ["BBF8",0x50F5],
+ ["BBF9",0x50F9],
+ ["BBFA",0x5102],
+ ["BBFB",0x5108],
+ ["BBFC",0x5109],
+ ["BBFD",0x5105],
+ ["BBFE",0x51DC],
+ ["BC40",0x5287],
+ ["BC41",0x5288],
+ ["BC42",0x5289],
+ ["BC43",0x528D],
+ ["BC44",0x528A],
+ ["BC45",0x52F0],
+ ["BC46",0x53B2],
+ ["BC47",0x562E],
+ ["BC48",0x563B],
+ ["BC49",0x5639],
+ ["BC4A",0x5632],
+ ["BC4B",0x563F],
+ ["BC4C",0x5634],
+ ["BC4D",0x5629],
+ ["BC4E",0x5653],
+ ["BC4F",0x564E],
+ ["BC50",0x5657],
+ ["BC51",0x5674],
+ ["BC52",0x5636],
+ ["BC53",0x562F],
+ ["BC54",0x5630],
+ ["BC55",0x5880],
+ ["BC56",0x589F],
+ ["BC57",0x589E],
+ ["BC58",0x58B3],
+ ["BC59",0x589C],
+ ["BC5A",0x58AE],
+ ["BC5B",0x58A9],
+ ["BC5C",0x58A6],
+ ["BC5D",0x596D],
+ ["BC5E",0x5B09],
+ ["BC5F",0x5AFB],
+ ["BC60",0x5B0B],
+ ["BC61",0x5AF5],
+ ["BC62",0x5B0C],
+ ["BC63",0x5B08],
+ ["BC64",0x5BEE],
+ ["BC65",0x5BEC],
+ ["BC66",0x5BE9],
+ ["BC67",0x5BEB],
+ ["BC68",0x5C64],
+ ["BC69",0x5C65],
+ ["BC6A",0x5D9D],
+ ["BC6B",0x5D94],
+ ["BC6C",0x5E62],
+ ["BC6D",0x5E5F],
+ ["BC6E",0x5E61],
+ ["BC6F",0x5EE2],
+ ["BC70",0x5EDA],
+ ["BC71",0x5EDF],
+ ["BC72",0x5EDD],
+ ["BC73",0x5EE3],
+ ["BC74",0x5EE0],
+ ["BC75",0x5F48],
+ ["BC76",0x5F71],
+ ["BC77",0x5FB7],
+ ["BC78",0x5FB5],
+ ["BC79",0x6176],
+ ["BC7A",0x6167],
+ ["BC7B",0x616E],
+ ["BC7C",0x615D],
+ ["BC7D",0x6155],
+ ["BC7E",0x6182],
+ ["BCA1",0x617C],
+ ["BCA2",0x6170],
+ ["BCA3",0x616B],
+ ["BCA4",0x617E],
+ ["BCA5",0x61A7],
+ ["BCA6",0x6190],
+ ["BCA7",0x61AB],
+ ["BCA8",0x618E],
+ ["BCA9",0x61AC],
+ ["BCAA",0x619A],
+ ["BCAB",0x61A4],
+ ["BCAC",0x6194],
+ ["BCAD",0x61AE],
+ ["BCAE",0x622E],
+ ["BCAF",0x6469],
+ ["BCB0",0x646F],
+ ["BCB1",0x6479],
+ ["BCB2",0x649E],
+ ["BCB3",0x64B2],
+ ["BCB4",0x6488],
+ ["BCB5",0x6490],
+ ["BCB6",0x64B0],
+ ["BCB7",0x64A5],
+ ["BCB8",0x6493],
+ ["BCB9",0x6495],
+ ["BCBA",0x64A9],
+ ["BCBB",0x6492],
+ ["BCBC",0x64AE],
+ ["BCBD",0x64AD],
+ ["BCBE",0x64AB],
+ ["BCBF",0x649A],
+ ["BCC0",0x64AC],
+ ["BCC1",0x6499],
+ ["BCC2",0x64A2],
+ ["BCC3",0x64B3],
+ ["BCC4",0x6575],
+ ["BCC5",0x6577],
+ ["BCC6",0x6578],
+ ["BCC7",0x66AE],
+ ["BCC8",0x66AB],
+ ["BCC9",0x66B4],
+ ["BCCA",0x66B1],
+ ["BCCB",0x6A23],
+ ["BCCC",0x6A1F],
+ ["BCCD",0x69E8],
+ ["BCCE",0x6A01],
+ ["BCCF",0x6A1E],
+ ["BCD0",0x6A19],
+ ["BCD1",0x69FD],
+ ["BCD2",0x6A21],
+ ["BCD3",0x6A13],
+ ["BCD4",0x6A0A],
+ ["BCD5",0x69F3],
+ ["BCD6",0x6A02],
+ ["BCD7",0x6A05],
+ ["BCD8",0x69ED],
+ ["BCD9",0x6A11],
+ ["BCDA",0x6B50],
+ ["BCDB",0x6B4E],
+ ["BCDC",0x6BA4],
+ ["BCDD",0x6BC5],
+ ["BCDE",0x6BC6],
["BCDF",0x6F3F],
- ["E2A6",0x6F40],
- ["E5F9",0x6F41],
- ["E2AD",0x6F43],
- ["E276",0x6F4E],
- ["E644",0x6F4F],
- ["E64E",0x6F50],
+ ["BCE0",0x6F7C],
+ ["BCE1",0x6F84],
["BCE2",0x6F51],
- ["E64D",0x6F52],
- ["E659",0x6F53],
- ["BCE4",0x6F54],
- ["E64B",0x6F55],
- ["E64F",0x6F57],
- ["BCEF",0x6F58],
- ["E646",0x6F5A],
- ["BCE7",0x6F5B],
- ["E652",0x6F5D],
- ["E9F0",0x6F5E],
- ["BCF3",0x6F5F],
- ["BCF2",0x6F60],
- ["E654",0x6F61],
- ["E643",0x6F62],
- ["E65E",0x6F63],
- ["BCED",0x6F64],
["BCE3",0x6F66],
- ["E657",0x6F67],
- ["E65B",0x6F69],
- ["E660",0x6F6A],
- ["E655",0x6F6B],
- ["E649",0x6F6C],
+ ["BCE4",0x6F54],
+ ["BCE5",0x6F86],
["BCE6",0x6F6D],
- ["BCE9",0x6F6E],
- ["BCF1",0x6F6F],
- ["BCEC",0x6F70],
- ["E64C",0x6F72],
- ["E2A2",0x6F73],
- ["E648",0x6F76],
- ["E65F",0x6F77],
+ ["BCE7",0x6F5B],
["BCE8",0x6F78],
- ["BCEB",0x6F7A],
- ["E661",0x6F7B],
- ["BCE0",0x6F7C],
- ["E656",0x6F7D],
- ["E5FB",0x6F7E],
- ["E65C",0x6F7F],
- ["C0DF",0x6F80],
- ["E64A",0x6F82],
- ["BCE1",0x6F84],
- ["E645",0x6F85],
- ["BCE5",0x6F86],
- ["E5FC",0x6F87],
- ["BAAB",0x6F88],
- ["E641",0x6F89],
- ["E65A",0x6F8B],
- ["E642",0x6F8C],
- ["E640",0x6F8D],
+ ["BCE9",0x6F6E],
["BCEA",0x6F8E],
- ["E658",0x6F90],
- ["E5FE",0x6F92],
- ["E651",0x6F93],
- ["E650",0x6F94],
- ["E65D",0x6F95],
- ["E647",0x6F96],
+ ["BCEB",0x6F7A],
+ ["BCEC",0x6F70],
+ ["BCED",0x6F64],
["BCEE",0x6F97],
- ["E9F3",0x6F9E],
- ["BF49",0x6FA0],
+ ["BCEF",0x6F58],
+ ["BCF0",0x6ED5],
+ ["BCF1",0x6F6F],
+ ["BCF2",0x6F60],
+ ["BCF3",0x6F5F],
+ ["BCF4",0x719F],
+ ["BCF5",0x71AC],
+ ["BCF6",0x71B1],
+ ["BCF7",0x71A8],
+ ["BCF8",0x7256],
+ ["BCF9",0x729B],
+ ["BCFA",0x734E],
+ ["BCFB",0x7357],
+ ["BCFC",0x7469],
+ ["BCFD",0x748B],
+ ["BCFE",0x7483],
+ ["BD40",0x747E],
+ ["BD41",0x7480],
+ ["BD42",0x757F],
+ ["BD43",0x7620],
+ ["BD44",0x7629],
+ ["BD45",0x761F],
+ ["BD46",0x7624],
+ ["BD47",0x7626],
+ ["BD48",0x7621],
+ ["BD49",0x7622],
+ ["BD4A",0x769A],
+ ["BD4B",0x76BA],
+ ["BD4C",0x76E4],
+ ["BD4D",0x778E],
+ ["BD4E",0x7787],
+ ["BD4F",0x778C],
+ ["BD50",0x7791],
+ ["BD51",0x778B],
+ ["BD52",0x78CB],
+ ["BD53",0x78C5],
+ ["BD54",0x78BA],
+ ["BD55",0x78CA],
+ ["BD56",0x78BE],
+ ["BD57",0x78D5],
+ ["BD58",0x78BC],
+ ["BD59",0x78D0],
+ ["BD5A",0x7A3F],
+ ["BD5B",0x7A3C],
+ ["BD5C",0x7A40],
+ ["BD5D",0x7A3D],
+ ["BD5E",0x7A37],
+ ["BD5F",0x7A3B],
+ ["BD60",0x7AAF],
+ ["BD61",0x7AAE],
+ ["BD62",0x7BAD],
+ ["BD63",0x7BB1],
+ ["BD64",0x7BC4],
+ ["BD65",0x7BB4],
+ ["BD66",0x7BC6],
+ ["BD67",0x7BC7],
+ ["BD68",0x7BC1],
+ ["BD69",0x7BA0],
+ ["BD6A",0x7BCC],
+ ["BD6B",0x7CCA],
+ ["BD6C",0x7DE0],
+ ["BD6D",0x7DF4],
+ ["BD6E",0x7DEF],
+ ["BD6F",0x7DFB],
+ ["BD70",0x7DD8],
+ ["BD71",0x7DEC],
+ ["BD72",0x7DDD],
+ ["BD73",0x7DE8],
+ ["BD74",0x7DE3],
+ ["BD75",0x7DDA],
+ ["BD76",0x7DDE],
+ ["BD77",0x7DE9],
+ ["BD78",0x7D9E],
+ ["BD79",0x7DD9],
+ ["BD7A",0x7DF2],
+ ["BD7B",0x7DF9],
+ ["BD7C",0x7F75],
+ ["BD7D",0x7F77],
+ ["BD7E",0x7FAF],
+ ["BDA1",0x7FE9],
+ ["BDA2",0x8026],
+ ["BDA3",0x819B],
+ ["BDA4",0x819C],
+ ["BDA5",0x819D],
+ ["BDA6",0x81A0],
+ ["BDA7",0x819A],
+ ["BDA8",0x8198],
+ ["BDA9",0x8517],
+ ["BDAA",0x853D],
+ ["BDAB",0x851A],
+ ["BDAC",0x84EE],
+ ["BDAD",0x852C],
+ ["BDAE",0x852D],
+ ["BDAF",0x8513],
+ ["BDB0",0x8511],
+ ["BDB1",0x8523],
+ ["BDB2",0x8521],
+ ["BDB3",0x8514],
+ ["BDB4",0x84EC],
+ ["BDB5",0x8525],
+ ["BDB6",0x84FF],
+ ["BDB7",0x8506],
+ ["BDB8",0x8782],
+ ["BDB9",0x8774],
+ ["BDBA",0x8776],
+ ["BDBB",0x8760],
+ ["BDBC",0x8766],
+ ["BDBD",0x8778],
+ ["BDBE",0x8768],
+ ["BDBF",0x8759],
+ ["BDC0",0x8757],
+ ["BDC1",0x874C],
+ ["BDC2",0x8753],
+ ["BDC3",0x885B],
+ ["BDC4",0x885D],
+ ["BDC5",0x8910],
+ ["BDC6",0x8907],
+ ["BDC7",0x8912],
+ ["BDC8",0x8913],
+ ["BDC9",0x8915],
+ ["BDCA",0x890A],
+ ["BDCB",0x8ABC],
+ ["BDCC",0x8AD2],
+ ["BDCD",0x8AC7],
+ ["BDCE",0x8AC4],
+ ["BDCF",0x8A95],
+ ["BDD0",0x8ACB],
+ ["BDD1",0x8AF8],
+ ["BDD2",0x8AB2],
+ ["BDD3",0x8AC9],
+ ["BDD4",0x8AC2],
+ ["BDD5",0x8ABF],
+ ["BDD6",0x8AB0],
+ ["BDD7",0x8AD6],
+ ["BDD8",0x8ACD],
+ ["BDD9",0x8AB6],
+ ["BDDA",0x8AB9],
+ ["BDDB",0x8ADB],
+ ["BDDC",0x8C4C],
+ ["BDDD",0x8C4E],
+ ["BDDE",0x8C6C],
+ ["BDDF",0x8CE0],
+ ["BDE0",0x8CDE],
+ ["BDE1",0x8CE6],
+ ["BDE2",0x8CE4],
+ ["BDE3",0x8CEC],
+ ["BDE4",0x8CED],
+ ["BDE5",0x8CE2],
+ ["BDE6",0x8CE3],
+ ["BDE7",0x8CDC],
+ ["BDE8",0x8CEA],
+ ["BDE9",0x8CE1],
+ ["BDEA",0x8D6D],
+ ["BDEB",0x8D9F],
+ ["BDEC",0x8DA3],
+ ["BDED",0x8E2B],
+ ["BDEE",0x8E10],
+ ["BDEF",0x8E1D],
+ ["BDF0",0x8E22],
+ ["BDF1",0x8E0F],
+ ["BDF2",0x8E29],
+ ["BDF3",0x8E1F],
+ ["BDF4",0x8E21],
+ ["BDF5",0x8E1E],
+ ["BDF6",0x8EBA],
+ ["BDF7",0x8F1D],
+ ["BDF8",0x8F1B],
+ ["BDF9",0x8F1F],
+ ["BDFA",0x8F29],
+ ["BDFB",0x8F26],
+ ["BDFC",0x8F2A],
+ ["BDFD",0x8F1C],
+ ["BDFE",0x8F1E],
+ ["BE40",0x8F25],
+ ["BE41",0x9069],
+ ["BE42",0x906E],
+ ["BE43",0x9068],
+ ["BE44",0x906D],
+ ["BE45",0x9077],
+ ["BE46",0x9130],
+ ["BE47",0x912D],
+ ["BE48",0x9127],
+ ["BE49",0x9131],
+ ["BE4A",0x9187],
+ ["BE4B",0x9189],
+ ["BE4C",0x918B],
+ ["BE4D",0x9183],
+ ["BE4E",0x92C5],
+ ["BE4F",0x92BB],
+ ["BE50",0x92B7],
+ ["BE51",0x92EA],
+ ["BE52",0x92AC],
+ ["BE53",0x92E4],
+ ["BE54",0x92C1],
+ ["BE55",0x92B3],
+ ["BE56",0x92BC],
+ ["BE57",0x92D2],
+ ["BE58",0x92C7],
+ ["BE59",0x92F0],
+ ["BE5A",0x92B2],
+ ["BE5B",0x95AD],
+ ["BE5C",0x95B1],
+ ["BE5D",0x9704],
+ ["BE5E",0x9706],
+ ["BE5F",0x9707],
+ ["BE60",0x9709],
+ ["BE61",0x9760],
+ ["BE62",0x978D],
+ ["BE63",0x978B],
+ ["BE64",0x978F],
+ ["BE65",0x9821],
+ ["BE66",0x982B],
+ ["BE67",0x981C],
+ ["BE68",0x98B3],
+ ["BE69",0x990A],
+ ["BE6A",0x9913],
+ ["BE6B",0x9912],
+ ["BE6C",0x9918],
+ ["BE6D",0x99DD],
+ ["BE6E",0x99D0],
+ ["BE6F",0x99DF],
+ ["BE70",0x99DB],
+ ["BE71",0x99D1],
+ ["BE72",0x99D5],
+ ["BE73",0x99D2],
+ ["BE74",0x99D9],
+ ["BE75",0x9AB7],
+ ["BE76",0x9AEE],
+ ["BE77",0x9AEF],
+ ["BE78",0x9B27],
+ ["BE79",0x9B45],
+ ["BE7A",0x9B44],
+ ["BE7B",0x9B77],
+ ["BE7C",0x9B6F],
+ ["BE7D",0x9D06],
+ ["BE7E",0x9D09],
+ ["BEA1",0x9D03],
+ ["BEA2",0x9EA9],
+ ["BEA3",0x9EBE],
+ ["BEA4",0x9ECE],
+ ["BEA5",0x58A8],
+ ["BEA6",0x9F52],
+ ["BEA7",0x5112],
+ ["BEA8",0x5118],
+ ["BEA9",0x5114],
+ ["BEAA",0x5110],
+ ["BEAB",0x5115],
+ ["BEAC",0x5180],
+ ["BEAD",0x51AA],
+ ["BEAE",0x51DD],
+ ["BEAF",0x5291],
+ ["BEB0",0x5293],
+ ["BEB1",0x52F3],
+ ["BEB2",0x5659],
+ ["BEB3",0x566B],
+ ["BEB4",0x5679],
+ ["BEB5",0x5669],
+ ["BEB6",0x5664],
+ ["BEB7",0x5678],
+ ["BEB8",0x566A],
+ ["BEB9",0x5668],
+ ["BEBA",0x5665],
+ ["BEBB",0x5671],
+ ["BEBC",0x566F],
+ ["BEBD",0x566C],
+ ["BEBE",0x5662],
+ ["BEBF",0x5676],
+ ["BEC0",0x58C1],
+ ["BEC1",0x58BE],
+ ["BEC2",0x58C7],
+ ["BEC3",0x58C5],
+ ["BEC4",0x596E],
+ ["BEC5",0x5B1D],
+ ["BEC6",0x5B34],
+ ["BEC7",0x5B78],
+ ["BEC8",0x5BF0],
+ ["BEC9",0x5C0E],
+ ["BECA",0x5F4A],
+ ["BECB",0x61B2],
+ ["BECC",0x6191],
+ ["BECD",0x61A9],
+ ["BECE",0x618A],
+ ["BECF",0x61CD],
+ ["BED0",0x61B6],
+ ["BED1",0x61BE],
+ ["BED2",0x61CA],
+ ["BED3",0x61C8],
+ ["BED4",0x6230],
+ ["BED5",0x64C5],
+ ["BED6",0x64C1],
+ ["BED7",0x64CB],
+ ["BED8",0x64BB],
+ ["BED9",0x64BC],
+ ["BEDA",0x64DA],
+ ["BEDB",0x64C4],
+ ["BEDC",0x64C7],
+ ["BEDD",0x64C2],
+ ["BEDE",0x64CD],
+ ["BEDF",0x64BF],
+ ["BEE0",0x64D2],
+ ["BEE1",0x64D4],
+ ["BEE2",0x64BE],
+ ["BEE3",0x6574],
+ ["BEE4",0x66C6],
+ ["BEE5",0x66C9],
+ ["BEE6",0x66B9],
+ ["BEE7",0x66C4],
+ ["BEE8",0x66C7],
+ ["BEE9",0x66B8],
+ ["BEEA",0x6A3D],
+ ["BEEB",0x6A38],
+ ["BEEC",0x6A3A],
+ ["BEED",0x6A59],
+ ["BEEE",0x6A6B],
+ ["BEEF",0x6A58],
+ ["BEF0",0x6A39],
+ ["BEF1",0x6A44],
+ ["BEF2",0x6A62],
+ ["BEF3",0x6A61],
+ ["BEF4",0x6A4B],
+ ["BEF5",0x6A47],
+ ["BEF6",0x6A35],
+ ["BEF7",0x6A5F],
+ ["BEF8",0x6A48],
+ ["BEF9",0x6B59],
+ ["BEFA",0x6B77],
+ ["BEFB",0x6C05],
+ ["BEFC",0x6FC2],
+ ["BEFD",0x6FB1],
["BEFE",0x6FA1],
- ["EA40",0x6FA2],
- ["E9EB",0x6FA3],
+ ["BF40",0x6FC3],
["BF41",0x6FA4],
- ["E9F7",0x6FA5],
- ["BF48",0x6FA6],
+ ["BF42",0x6FC1],
["BF43",0x6FA7],
- ["E9F5",0x6FA8],
- ["ED4F",0x6FA9],
- ["E9FB",0x6FAA],
- ["EA42",0x6FAB],
- ["E9FA",0x6FAC],
- ["E9E9",0x6FAD],
- ["E9F8",0x6FAE],
- ["EA44",0x6FAF],
- ["EA46",0x6FB0],
- ["BEFD",0x6FB1],
- ["EA45",0x6FB2],
["BF44",0x6FB3],
- ["BF4A",0x6FB4],
- ["BF47",0x6FB6],
- ["E9FE",0x6FB8],
- ["BF46",0x6FB9],
- ["E9F9",0x6FBA],
- ["E9ED",0x6FBC],
- ["E9F2",0x6FBD],
- ["E9FD",0x6FBF],
["BF45",0x6FC0],
- ["BF42",0x6FC1],
- ["BEFC",0x6FC2],
- ["BF40",0x6FC3],
- ["E9F1",0x6FC4],
- ["E5FD",0x6FC6],
- ["E9EC",0x6FC7],
- ["E9EF",0x6FC8],
- ["EA41",0x6FC9],
- ["E9F4",0x6FCA],
- ["E9EA",0x6FCB],
- ["ED4E",0x6FCC],
- ["EA43",0x6FCD],
- ["E9EE",0x6FCE],
- ["E9FC",0x6FCF],
- ["ED51",0x6FD4],
- ["C0E3",0x6FD5],
+ ["BF46",0x6FB9],
+ ["BF47",0x6FB6],
+ ["BF48",0x6FA6],
+ ["BF49",0x6FA0],
+ ["BF4A",0x6FB4],
+ ["BF4B",0x71BE],
+ ["BF4C",0x71C9],
+ ["BF4D",0x71D0],
+ ["BF4E",0x71D2],
+ ["BF4F",0x71C8],
+ ["BF50",0x71D5],
+ ["BF51",0x71B9],
+ ["BF52",0x71CE],
+ ["BF53",0x71D9],
+ ["BF54",0x71DC],
+ ["BF55",0x71C3],
+ ["BF56",0x71C4],
+ ["BF57",0x7368],
+ ["BF58",0x749C],
+ ["BF59",0x74A3],
+ ["BF5A",0x7498],
+ ["BF5B",0x749F],
+ ["BF5C",0x749E],
+ ["BF5D",0x74E2],
+ ["BF5E",0x750C],
+ ["BF5F",0x750D],
+ ["BF60",0x7634],
+ ["BF61",0x7638],
+ ["BF62",0x763A],
+ ["BF63",0x76E7],
+ ["BF64",0x76E5],
+ ["BF65",0x77A0],
+ ["BF66",0x779E],
+ ["BF67",0x779F],
+ ["BF68",0x77A5],
+ ["BF69",0x78E8],
+ ["BF6A",0x78DA],
+ ["BF6B",0x78EC],
+ ["BF6C",0x78E7],
+ ["BF6D",0x79A6],
+ ["BF6E",0x7A4D],
+ ["BF6F",0x7A4E],
+ ["BF70",0x7A46],
+ ["BF71",0x7A4C],
+ ["BF72",0x7A4B],
+ ["BF73",0x7ABA],
+ ["BF74",0x7BD9],
+ ["BF75",0x7C11],
+ ["BF76",0x7BC9],
+ ["BF77",0x7BE4],
+ ["BF78",0x7BDB],
+ ["BF79",0x7BE1],
+ ["BF7A",0x7BE9],
+ ["BF7B",0x7BE6],
+ ["BF7C",0x7CD5],
+ ["BF7D",0x7CD6],
+ ["BF7E",0x7E0A],
+ ["BFA1",0x7E11],
+ ["BFA2",0x7E08],
+ ["BFA3",0x7E1B],
+ ["BFA4",0x7E23],
+ ["BFA5",0x7E1E],
+ ["BFA6",0x7E1D],
+ ["BFA7",0x7E09],
+ ["BFA8",0x7E10],
+ ["BFA9",0x7F79],
+ ["BFAA",0x7FB2],
+ ["BFAB",0x7FF0],
+ ["BFAC",0x7FF1],
+ ["BFAD",0x7FEE],
+ ["BFAE",0x8028],
+ ["BFAF",0x81B3],
+ ["BFB0",0x81A9],
+ ["BFB1",0x81A8],
+ ["BFB2",0x81FB],
+ ["BFB3",0x8208],
+ ["BFB4",0x8258],
+ ["BFB5",0x8259],
+ ["BFB6",0x854A],
+ ["BFB7",0x8559],
+ ["BFB8",0x8548],
+ ["BFB9",0x8568],
+ ["BFBA",0x8569],
+ ["BFBB",0x8543],
+ ["BFBC",0x8549],
+ ["BFBD",0x856D],
+ ["BFBE",0x856A],
+ ["BFBF",0x855E],
+ ["BFC0",0x8783],
+ ["BFC1",0x879F],
+ ["BFC2",0x879E],
+ ["BFC3",0x87A2],
+ ["BFC4",0x878D],
+ ["BFC5",0x8861],
+ ["BFC6",0x892A],
+ ["BFC7",0x8932],
+ ["BFC8",0x8925],
+ ["BFC9",0x892B],
+ ["BFCA",0x8921],
+ ["BFCB",0x89AA],
+ ["BFCC",0x89A6],
+ ["BFCD",0x8AE6],
+ ["BFCE",0x8AFA],
+ ["BFCF",0x8AEB],
+ ["BFD0",0x8AF1],
+ ["BFD1",0x8B00],
+ ["BFD2",0x8ADC],
+ ["BFD3",0x8AE7],
+ ["BFD4",0x8AEE],
+ ["BFD5",0x8AFE],
+ ["BFD6",0x8B01],
+ ["BFD7",0x8B02],
+ ["BFD8",0x8AF7],
+ ["BFD9",0x8AED],
+ ["BFDA",0x8AF3],
+ ["BFDB",0x8AF6],
+ ["BFDC",0x8AFC],
+ ["BFDD",0x8C6B],
+ ["BFDE",0x8C6D],
+ ["BFDF",0x8C93],
+ ["BFE0",0x8CF4],
+ ["BFE1",0x8E44],
+ ["BFE2",0x8E31],
+ ["BFE3",0x8E34],
+ ["BFE4",0x8E42],
+ ["BFE5",0x8E39],
+ ["BFE6",0x8E35],
+ ["BFE7",0x8F3B],
+ ["BFE8",0x8F2F],
+ ["BFE9",0x8F38],
+ ["BFEA",0x8F33],
+ ["BFEB",0x8FA8],
+ ["BFEC",0x8FA6],
+ ["BFED",0x9075],
+ ["BFEE",0x9074],
+ ["BFEF",0x9078],
+ ["BFF0",0x9072],
+ ["BFF1",0x907C],
+ ["BFF2",0x907A],
+ ["BFF3",0x9134],
+ ["BFF4",0x9192],
+ ["BFF5",0x9320],
+ ["BFF6",0x9336],
+ ["BFF7",0x92F8],
+ ["BFF8",0x9333],
+ ["BFF9",0x932F],
+ ["BFFA",0x9322],
+ ["BFFB",0x92FC],
+ ["BFFC",0x932B],
+ ["BFFD",0x9304],
+ ["BFFE",0x931A],
+ ["C040",0x9310],
+ ["C041",0x9326],
+ ["C042",0x9321],
+ ["C043",0x9315],
+ ["C044",0x932E],
+ ["C045",0x9319],
+ ["C046",0x95BB],
+ ["C047",0x96A7],
+ ["C048",0x96A8],
+ ["C049",0x96AA],
+ ["C04A",0x96D5],
+ ["C04B",0x970E],
+ ["C04C",0x9711],
+ ["C04D",0x9716],
+ ["C04E",0x970D],
+ ["C04F",0x9713],
+ ["C050",0x970F],
+ ["C051",0x975B],
+ ["C052",0x975C],
+ ["C053",0x9766],
+ ["C054",0x9798],
+ ["C055",0x9830],
+ ["C056",0x9838],
+ ["C057",0x983B],
+ ["C058",0x9837],
+ ["C059",0x982D],
+ ["C05A",0x9839],
+ ["C05B",0x9824],
+ ["C05C",0x9910],
+ ["C05D",0x9928],
+ ["C05E",0x991E],
+ ["C05F",0x991B],
+ ["C060",0x9921],
+ ["C061",0x991A],
+ ["C062",0x99ED],
+ ["C063",0x99E2],
+ ["C064",0x99F1],
+ ["C065",0x9AB8],
+ ["C066",0x9ABC],
+ ["C067",0x9AFB],
+ ["C068",0x9AED],
+ ["C069",0x9B28],
+ ["C06A",0x9B91],
+ ["C06B",0x9D15],
+ ["C06C",0x9D23],
+ ["C06D",0x9D26],
+ ["C06E",0x9D28],
+ ["C06F",0x9D12],
+ ["C070",0x9D1B],
+ ["C071",0x9ED8],
+ ["C072",0x9ED4],
+ ["C073",0x9F8D],
+ ["C074",0x9F9C],
+ ["C075",0x512A],
+ ["C076",0x511F],
+ ["C077",0x5121],
+ ["C078",0x5132],
+ ["C079",0x52F5],
+ ["C07A",0x568E],
+ ["C07B",0x5680],
+ ["C07C",0x5690],
+ ["C07D",0x5685],
+ ["C07E",0x5687],
+ ["C0A1",0x568F],
+ ["C0A2",0x58D5],
+ ["C0A3",0x58D3],
+ ["C0A4",0x58D1],
+ ["C0A5",0x58CE],
+ ["C0A6",0x5B30],
+ ["C0A7",0x5B2A],
+ ["C0A8",0x5B24],
+ ["C0A9",0x5B7A],
+ ["C0AA",0x5C37],
+ ["C0AB",0x5C68],
+ ["C0AC",0x5DBC],
+ ["C0AD",0x5DBA],
+ ["C0AE",0x5DBD],
+ ["C0AF",0x5DB8],
+ ["C0B0",0x5E6B],
+ ["C0B1",0x5F4C],
+ ["C0B2",0x5FBD],
+ ["C0B3",0x61C9],
+ ["C0B4",0x61C2],
+ ["C0B5",0x61C7],
+ ["C0B6",0x61E6],
+ ["C0B7",0x61CB],
+ ["C0B8",0x6232],
+ ["C0B9",0x6234],
+ ["C0BA",0x64CE],
+ ["C0BB",0x64CA],
+ ["C0BC",0x64D8],
+ ["C0BD",0x64E0],
+ ["C0BE",0x64F0],
+ ["C0BF",0x64E6],
+ ["C0C0",0x64EC],
+ ["C0C1",0x64F1],
+ ["C0C2",0x64E2],
+ ["C0C3",0x64ED],
+ ["C0C4",0x6582],
+ ["C0C5",0x6583],
+ ["C0C6",0x66D9],
+ ["C0C7",0x66D6],
+ ["C0C8",0x6A80],
+ ["C0C9",0x6A94],
+ ["C0CA",0x6A84],
+ ["C0CB",0x6AA2],
+ ["C0CC",0x6A9C],
+ ["C0CD",0x6ADB],
+ ["C0CE",0x6AA3],
+ ["C0CF",0x6A7E],
+ ["C0D0",0x6A97],
+ ["C0D1",0x6A90],
+ ["C0D2",0x6AA0],
+ ["C0D3",0x6B5C],
+ ["C0D4",0x6BAE],
+ ["C0D5",0x6BDA],
+ ["C0D6",0x6C08],
["C0D7",0x6FD8],
- ["C0DB",0x6FDB],
- ["ED53",0x6FDC],
- ["ED59",0x6FDD],
- ["ED57",0x6FDE],
+ ["C0D8",0x6FF1],
["C0D9",0x6FDF],
["C0DA",0x6FE0],
- ["C0E1",0x6FE1],
- ["ED5A",0x6FE2],
- ["ED52",0x6FE3],
+ ["C0DB",0x6FDB],
["C0DC",0x6FE4],
- ["ED56",0x6FE6],
- ["ED55",0x6FE7],
- ["ED5B",0x6FE8],
- ["C0E2",0x6FE9],
["C0DD",0x6FEB],
+ ["C0DE",0x6FEF],
+ ["C0DF",0x6F80],
["C0E0",0x6FEC],
- ["ED54",0x6FED],
+ ["C0E1",0x6FE1],
+ ["C0E2",0x6FE9],
+ ["C0E3",0x6FD5],
["C0E4",0x6FEE],
- ["C0DE",0x6FEF],
["C0E5",0x6FF0],
- ["C0D8",0x6FF1],
- ["ED58",0x6FF2],
- ["ED50",0x6FF4],
- ["EFF7",0x6FF7],
- ["C271",0x6FFA],
- ["EFF4",0x6FFB],
- ["EFF6",0x6FFC],
- ["C26F",0x6FFE],
- ["EFF2",0x6FFF],
- ["EFF3",0x7000],
- ["EFEE",0x7001],
- ["E9F6",0x7004],
- ["EFEF",0x7005],
- ["C270",0x7006],
- ["EFEB",0x7007],
+ ["C0E6",0x71E7],
+ ["C0E7",0x71DF],
+ ["C0E8",0x71EE],
+ ["C0E9",0x71E6],
+ ["C0EA",0x71E5],
+ ["C0EB",0x71ED],
+ ["C0EC",0x71EC],
+ ["C0ED",0x71F4],
+ ["C0EE",0x71E0],
+ ["C0EF",0x7235],
+ ["C0F0",0x7246],
+ ["C0F1",0x7370],
+ ["C0F2",0x7372],
+ ["C0F3",0x74A9],
+ ["C0F4",0x74B0],
+ ["C0F5",0x74A6],
+ ["C0F6",0x74A8],
+ ["C0F7",0x7646],
+ ["C0F8",0x7642],
+ ["C0F9",0x764C],
+ ["C0FA",0x76EA],
+ ["C0FB",0x77B3],
+ ["C0FC",0x77AA],
+ ["C0FD",0x77B0],
+ ["C0FE",0x77AC],
+ ["C140",0x77A7],
+ ["C141",0x77AD],
+ ["C142",0x77EF],
+ ["C143",0x78F7],
+ ["C144",0x78FA],
+ ["C145",0x78F4],
+ ["C146",0x78EF],
+ ["C147",0x7901],
+ ["C148",0x79A7],
+ ["C149",0x79AA],
+ ["C14A",0x7A57],
+ ["C14B",0x7ABF],
+ ["C14C",0x7C07],
+ ["C14D",0x7C0D],
+ ["C14E",0x7BFE],
+ ["C14F",0x7BF7],
+ ["C150",0x7C0C],
+ ["C151",0x7BE0],
+ ["C152",0x7CE0],
+ ["C153",0x7CDC],
+ ["C154",0x7CDE],
+ ["C155",0x7CE2],
+ ["C156",0x7CDF],
+ ["C157",0x7CD9],
+ ["C158",0x7CDD],
+ ["C159",0x7E2E],
+ ["C15A",0x7E3E],
+ ["C15B",0x7E46],
+ ["C15C",0x7E37],
+ ["C15D",0x7E32],
+ ["C15E",0x7E43],
+ ["C15F",0x7E2B],
+ ["C160",0x7E3D],
+ ["C161",0x7E31],
+ ["C162",0x7E45],
+ ["C163",0x7E41],
+ ["C164",0x7E34],
+ ["C165",0x7E39],
+ ["C166",0x7E48],
+ ["C167",0x7E35],
+ ["C168",0x7E3F],
+ ["C169",0x7E2F],
+ ["C16A",0x7F44],
+ ["C16B",0x7FF3],
+ ["C16C",0x7FFC],
+ ["C16D",0x8071],
+ ["C16E",0x8072],
+ ["C16F",0x8070],
+ ["C170",0x806F],
+ ["C171",0x8073],
+ ["C172",0x81C6],
+ ["C173",0x81C3],
+ ["C174",0x81BA],
+ ["C175",0x81C2],
+ ["C176",0x81C0],
+ ["C177",0x81BF],
+ ["C178",0x81BD],
+ ["C179",0x81C9],
+ ["C17A",0x81BE],
+ ["C17B",0x81E8],
+ ["C17C",0x8209],
+ ["C17D",0x8271],
+ ["C17E",0x85AA],
+ ["C1A1",0x8584],
+ ["C1A2",0x857E],
+ ["C1A3",0x859C],
+ ["C1A4",0x8591],
+ ["C1A5",0x8594],
+ ["C1A6",0x85AF],
+ ["C1A7",0x859B],
+ ["C1A8",0x8587],
+ ["C1A9",0x85A8],
+ ["C1AA",0x858A],
+ ["C1AB",0x8667],
+ ["C1AC",0x87C0],
+ ["C1AD",0x87D1],
+ ["C1AE",0x87B3],
+ ["C1AF",0x87D2],
+ ["C1B0",0x87C6],
+ ["C1B1",0x87AB],
+ ["C1B2",0x87BB],
+ ["C1B3",0x87BA],
+ ["C1B4",0x87C8],
+ ["C1B5",0x87CB],
+ ["C1B6",0x893B],
+ ["C1B7",0x8936],
+ ["C1B8",0x8944],
+ ["C1B9",0x8938],
+ ["C1BA",0x893D],
+ ["C1BB",0x89AC],
+ ["C1BC",0x8B0E],
+ ["C1BD",0x8B17],
+ ["C1BE",0x8B19],
+ ["C1BF",0x8B1B],
+ ["C1C0",0x8B0A],
+ ["C1C1",0x8B20],
+ ["C1C2",0x8B1D],
+ ["C1C3",0x8B04],
+ ["C1C4",0x8B10],
+ ["C1C5",0x8C41],
+ ["C1C6",0x8C3F],
+ ["C1C7",0x8C73],
+ ["C1C8",0x8CFA],
+ ["C1C9",0x8CFD],
+ ["C1CA",0x8CFC],
+ ["C1CB",0x8CF8],
+ ["C1CC",0x8CFB],
+ ["C1CD",0x8DA8],
+ ["C1CE",0x8E49],
+ ["C1CF",0x8E4B],
+ ["C1D0",0x8E48],
+ ["C1D1",0x8E4A],
+ ["C1D2",0x8F44],
+ ["C1D3",0x8F3E],
+ ["C1D4",0x8F42],
+ ["C1D5",0x8F45],
+ ["C1D6",0x8F3F],
+ ["C1D7",0x907F],
+ ["C1D8",0x907D],
+ ["C1D9",0x9084],
+ ["C1DA",0x9081],
+ ["C1DB",0x9082],
+ ["C1DC",0x9080],
+ ["C1DD",0x9139],
+ ["C1DE",0x91A3],
+ ["C1DF",0x919E],
+ ["C1E0",0x919C],
+ ["C1E1",0x934D],
+ ["C1E2",0x9382],
+ ["C1E3",0x9328],
+ ["C1E4",0x9375],
+ ["C1E5",0x934A],
+ ["C1E6",0x9365],
+ ["C1E7",0x934B],
+ ["C1E8",0x9318],
+ ["C1E9",0x937E],
+ ["C1EA",0x936C],
+ ["C1EB",0x935B],
+ ["C1EC",0x9370],
+ ["C1ED",0x935A],
+ ["C1EE",0x9354],
+ ["C1EF",0x95CA],
+ ["C1F0",0x95CB],
+ ["C1F1",0x95CC],
+ ["C1F2",0x95C8],
+ ["C1F3",0x95C6],
+ ["C1F4",0x96B1],
+ ["C1F5",0x96B8],
+ ["C1F6",0x96D6],
+ ["C1F7",0x971C],
+ ["C1F8",0x971E],
+ ["C1F9",0x97A0],
+ ["C1FA",0x97D3],
+ ["C1FB",0x9846],
+ ["C1FC",0x98B6],
+ ["C1FD",0x9935],
+ ["C1FE",0x9A01],
+ ["C240",0x99FF],
+ ["C241",0x9BAE],
+ ["C242",0x9BAB],
+ ["C243",0x9BAA],
+ ["C244",0x9BAD],
+ ["C245",0x9D3B],
+ ["C246",0x9D3F],
+ ["C247",0x9E8B],
+ ["C248",0x9ECF],
+ ["C249",0x9EDE],
+ ["C24A",0x9EDC],
+ ["C24B",0x9EDD],
+ ["C24C",0x9EDB],
+ ["C24D",0x9F3E],
+ ["C24E",0x9F4B],
+ ["C24F",0x53E2],
+ ["C250",0x5695],
+ ["C251",0x56AE],
+ ["C252",0x58D9],
+ ["C253",0x58D8],
+ ["C254",0x5B38],
+ ["C255",0x5F5D],
+ ["C256",0x61E3],
+ ["C257",0x6233],
+ ["C258",0x64F4],
+ ["C259",0x64F2],
+ ["C25A",0x64FE],
+ ["C25B",0x6506],
+ ["C25C",0x64FA],
+ ["C25D",0x64FB],
+ ["C25E",0x64F7],
+ ["C25F",0x65B7],
+ ["C260",0x66DC],
+ ["C261",0x6726],
+ ["C262",0x6AB3],
+ ["C263",0x6AAC],
+ ["C264",0x6AC3],
+ ["C265",0x6ABB],
+ ["C266",0x6AB8],
+ ["C267",0x6AC2],
+ ["C268",0x6AAE],
+ ["C269",0x6AAF],
+ ["C26A",0x6B5F],
+ ["C26B",0x6B78],
+ ["C26C",0x6BAF],
["C26D",0x7009],
- ["EFF8",0x700A],
["C26E",0x700B],
- ["EFEC",0x700C],
- ["EFED",0x700D],
- ["EFF1",0x700E],
- ["C273",0x700F],
+ ["C26F",0x6FFE],
+ ["C270",0x7006],
+ ["C271",0x6FFA],
["C272",0x7011],
- ["EFF0",0x7014],
- ["C378",0x7015],
- ["F25F",0x7016],
- ["F265",0x7017],
- ["C379",0x7018],
- ["F25C",0x7019],
- ["C376",0x701A],
+ ["C273",0x700F],
+ ["C274",0x71FB],
+ ["C275",0x71FC],
+ ["C276",0x71FE],
+ ["C277",0x71F8],
+ ["C278",0x7377],
+ ["C279",0x7375],
+ ["C27A",0x74A7],
+ ["C27B",0x74BF],
+ ["C27C",0x7515],
+ ["C27D",0x7656],
+ ["C27E",0x7658],
+ ["C2A1",0x7652],
+ ["C2A2",0x77BD],
+ ["C2A3",0x77BF],
+ ["C2A4",0x77BB],
+ ["C2A5",0x77BC],
+ ["C2A6",0x790E],
+ ["C2A7",0x79AE],
+ ["C2A8",0x7A61],
+ ["C2A9",0x7A62],
+ ["C2AA",0x7A60],
+ ["C2AB",0x7AC4],
+ ["C2AC",0x7AC5],
+ ["C2AD",0x7C2B],
+ ["C2AE",0x7C27],
+ ["C2AF",0x7C2A],
+ ["C2B0",0x7C1E],
+ ["C2B1",0x7C23],
+ ["C2B2",0x7C21],
+ ["C2B3",0x7CE7],
+ ["C2B4",0x7E54],
+ ["C2B5",0x7E55],
+ ["C2B6",0x7E5E],
+ ["C2B7",0x7E5A],
+ ["C2B8",0x7E61],
+ ["C2B9",0x7E52],
+ ["C2BA",0x7E59],
+ ["C2BB",0x7F48],
+ ["C2BC",0x7FF9],
+ ["C2BD",0x7FFB],
+ ["C2BE",0x8077],
+ ["C2BF",0x8076],
+ ["C2C0",0x81CD],
+ ["C2C1",0x81CF],
+ ["C2C2",0x820A],
+ ["C2C3",0x85CF],
+ ["C2C4",0x85A9],
+ ["C2C5",0x85CD],
+ ["C2C6",0x85D0],
+ ["C2C7",0x85C9],
+ ["C2C8",0x85B0],
+ ["C2C9",0x85BA],
+ ["C2CA",0x85B9],
+ ["C2CB",0x85A6],
+ ["C2CC",0x87EF],
+ ["C2CD",0x87EC],
+ ["C2CE",0x87F2],
+ ["C2CF",0x87E0],
+ ["C2D0",0x8986],
+ ["C2D1",0x89B2],
+ ["C2D2",0x89F4],
+ ["C2D3",0x8B28],
+ ["C2D4",0x8B39],
+ ["C2D5",0x8B2C],
+ ["C2D6",0x8B2B],
+ ["C2D7",0x8C50],
+ ["C2D8",0x8D05],
+ ["C2D9",0x8E59],
+ ["C2DA",0x8E63],
+ ["C2DB",0x8E66],
+ ["C2DC",0x8E64],
+ ["C2DD",0x8E5F],
+ ["C2DE",0x8E55],
+ ["C2DF",0x8EC0],
+ ["C2E0",0x8F49],
+ ["C2E1",0x8F4D],
+ ["C2E2",0x9087],
+ ["C2E3",0x9083],
+ ["C2E4",0x9088],
+ ["C2E5",0x91AB],
+ ["C2E6",0x91AC],
+ ["C2E7",0x91D0],
+ ["C2E8",0x9394],
+ ["C2E9",0x938A],
+ ["C2EA",0x9396],
+ ["C2EB",0x93A2],
+ ["C2EC",0x93B3],
+ ["C2ED",0x93AE],
+ ["C2EE",0x93AC],
+ ["C2EF",0x93B0],
+ ["C2F0",0x9398],
+ ["C2F1",0x939A],
+ ["C2F2",0x9397],
+ ["C2F3",0x95D4],
+ ["C2F4",0x95D6],
+ ["C2F5",0x95D0],
+ ["C2F6",0x95D5],
+ ["C2F7",0x96E2],
+ ["C2F8",0x96DC],
+ ["C2F9",0x96D9],
+ ["C2FA",0x96DB],
+ ["C2FB",0x96DE],
+ ["C2FC",0x9724],
+ ["C2FD",0x97A3],
+ ["C2FE",0x97A6],
+ ["C340",0x97AD],
+ ["C341",0x97F9],
+ ["C342",0x984D],
+ ["C343",0x984F],
+ ["C344",0x984C],
+ ["C345",0x984E],
+ ["C346",0x9853],
+ ["C347",0x98BA],
+ ["C348",0x993E],
+ ["C349",0x993F],
+ ["C34A",0x993D],
+ ["C34B",0x992E],
+ ["C34C",0x99A5],
+ ["C34D",0x9A0E],
+ ["C34E",0x9AC1],
+ ["C34F",0x9B03],
+ ["C350",0x9B06],
+ ["C351",0x9B4F],
+ ["C352",0x9B4E],
+ ["C353",0x9B4D],
+ ["C354",0x9BCA],
+ ["C355",0x9BC9],
+ ["C356",0x9BFD],
+ ["C357",0x9BC8],
+ ["C358",0x9BC0],
+ ["C359",0x9D51],
+ ["C35A",0x9D5D],
+ ["C35B",0x9D60],
+ ["C35C",0x9EE0],
+ ["C35D",0x9F15],
+ ["C35E",0x9F2C],
+ ["C35F",0x5133],
+ ["C360",0x56A5],
+ ["C361",0x58DE],
+ ["C362",0x58DF],
+ ["C363",0x58E2],
+ ["C364",0x5BF5],
+ ["C365",0x9F90],
+ ["C366",0x5EEC],
+ ["C367",0x61F2],
+ ["C368",0x61F7],
+ ["C369",0x61F6],
+ ["C36A",0x61F5],
+ ["C36B",0x6500],
+ ["C36C",0x650F],
+ ["C36D",0x66E0],
+ ["C36E",0x66DD],
+ ["C36F",0x6AE5],
+ ["C370",0x6ADD],
+ ["C371",0x6ADA],
+ ["C372",0x6AD3],
["C373",0x701B],
- ["F267",0x701C],
- ["C377",0x701D],
["C374",0x701F],
- ["F25E",0x7020],
- ["F261",0x7021],
- ["F262",0x7022],
- ["F263",0x7023],
- ["F266",0x7024],
- ["EFF5",0x7026],
- ["F25D",0x7027],
["C375",0x7028],
- ["F264",0x7029],
- ["F268",0x702A],
- ["F260",0x702B],
- ["F45D",0x702F],
+ ["C376",0x701A],
+ ["C377",0x701D],
+ ["C378",0x7015],
+ ["C379",0x7018],
+ ["C37A",0x7206],
+ ["C37B",0x720D],
+ ["C37C",0x7258],
+ ["C37D",0x72A2],
+ ["C37E",0x7378],
+ ["C3A1",0x737A],
+ ["C3A2",0x74BD],
+ ["C3A3",0x74CA],
+ ["C3A4",0x74E3],
+ ["C3A5",0x7587],
+ ["C3A6",0x7586],
+ ["C3A7",0x765F],
+ ["C3A8",0x7661],
+ ["C3A9",0x77C7],
+ ["C3AA",0x7919],
+ ["C3AB",0x79B1],
+ ["C3AC",0x7A6B],
+ ["C3AD",0x7A69],
+ ["C3AE",0x7C3E],
+ ["C3AF",0x7C3F],
+ ["C3B0",0x7C38],
+ ["C3B1",0x7C3D],
+ ["C3B2",0x7C37],
+ ["C3B3",0x7C40],
+ ["C3B4",0x7E6B],
+ ["C3B5",0x7E6D],
+ ["C3B6",0x7E79],
+ ["C3B7",0x7E69],
+ ["C3B8",0x7E6A],
+ ["C3B9",0x7F85],
+ ["C3BA",0x7E73],
+ ["C3BB",0x7FB6],
+ ["C3BC",0x7FB9],
+ ["C3BD",0x7FB8],
+ ["C3BE",0x81D8],
+ ["C3BF",0x85E9],
+ ["C3C0",0x85DD],
+ ["C3C1",0x85EA],
+ ["C3C2",0x85D5],
+ ["C3C3",0x85E4],
+ ["C3C4",0x85E5],
+ ["C3C5",0x85F7],
+ ["C3C6",0x87FB],
+ ["C3C7",0x8805],
+ ["C3C8",0x880D],
+ ["C3C9",0x87F9],
+ ["C3CA",0x87FE],
+ ["C3CB",0x8960],
+ ["C3CC",0x895F],
+ ["C3CD",0x8956],
+ ["C3CE",0x895E],
+ ["C3CF",0x8B41],
+ ["C3D0",0x8B5C],
+ ["C3D1",0x8B58],
+ ["C3D2",0x8B49],
+ ["C3D3",0x8B5A],
+ ["C3D4",0x8B4E],
+ ["C3D5",0x8B4F],
+ ["C3D6",0x8B46],
+ ["C3D7",0x8B59],
+ ["C3D8",0x8D08],
+ ["C3D9",0x8D0A],
+ ["C3DA",0x8E7C],
+ ["C3DB",0x8E72],
+ ["C3DC",0x8E87],
+ ["C3DD",0x8E76],
+ ["C3DE",0x8E6C],
+ ["C3DF",0x8E7A],
+ ["C3E0",0x8E74],
+ ["C3E1",0x8F54],
+ ["C3E2",0x8F4E],
+ ["C3E3",0x8FAD],
+ ["C3E4",0x908A],
+ ["C3E5",0x908B],
+ ["C3E6",0x91B1],
+ ["C3E7",0x91AE],
+ ["C3E8",0x93E1],
+ ["C3E9",0x93D1],
+ ["C3EA",0x93DF],
+ ["C3EB",0x93C3],
+ ["C3EC",0x93C8],
+ ["C3ED",0x93DC],
+ ["C3EE",0x93DD],
+ ["C3EF",0x93D6],
+ ["C3F0",0x93E2],
+ ["C3F1",0x93CD],
+ ["C3F2",0x93D8],
+ ["C3F3",0x93E4],
+ ["C3F4",0x93D7],
+ ["C3F5",0x93E8],
+ ["C3F6",0x95DC],
+ ["C3F7",0x96B4],
+ ["C3F8",0x96E3],
+ ["C3F9",0x972A],
+ ["C3FA",0x9727],
+ ["C3FB",0x9761],
+ ["C3FC",0x97DC],
+ ["C3FD",0x97FB],
+ ["C3FE",0x985E],
+ ["C440",0x9858],
+ ["C441",0x985B],
+ ["C442",0x98BC],
+ ["C443",0x9945],
+ ["C444",0x9949],
+ ["C445",0x9A16],
+ ["C446",0x9A19],
+ ["C447",0x9B0D],
+ ["C448",0x9BE8],
+ ["C449",0x9BE7],
+ ["C44A",0x9BD6],
+ ["C44B",0x9BDB],
+ ["C44C",0x9D89],
+ ["C44D",0x9D61],
+ ["C44E",0x9D72],
+ ["C44F",0x9D6A],
+ ["C450",0x9D6C],
+ ["C451",0x9E92],
+ ["C452",0x9E97],
+ ["C453",0x9E93],
+ ["C454",0x9EB4],
+ ["C455",0x52F8],
+ ["C456",0x56A8],
+ ["C457",0x56B7],
+ ["C458",0x56B6],
+ ["C459",0x56B4],
+ ["C45A",0x56BC],
+ ["C45B",0x58E4],
+ ["C45C",0x5B40],
+ ["C45D",0x5B43],
+ ["C45E",0x5B7D],
+ ["C45F",0x5BF6],
+ ["C460",0x5DC9],
+ ["C461",0x61F8],
+ ["C462",0x61FA],
+ ["C463",0x6518],
+ ["C464",0x6514],
+ ["C465",0x6519],
+ ["C466",0x66E6],
+ ["C467",0x6727],
+ ["C468",0x6AEC],
+ ["C469",0x703E],
["C46A",0x7030],
- ["F460",0x7031],
["C46B",0x7032],
- ["F468",0x7033],
- ["F45F",0x7034],
- ["F45C",0x7035],
- ["F45E",0x7037],
- ["F462",0x7038],
- ["F465",0x7039],
- ["F464",0x703A],
- ["F467",0x703B],
- ["F45B",0x703C],
- ["C469",0x703E],
- ["F463",0x703F],
- ["F466",0x7040],
- ["F469",0x7041],
- ["F461",0x7042],
- ["F5D3",0x7043],
- ["F5D4",0x7044],
- ["F5D8",0x7045],
- ["F5D9",0x7046],
- ["F5D6",0x7048],
- ["F5D7",0x7049],
- ["F5D5",0x704A],
+ ["C46C",0x7210],
+ ["C46D",0x737B],
+ ["C46E",0x74CF],
+ ["C46F",0x7662],
+ ["C470",0x7665],
+ ["C471",0x7926],
+ ["C472",0x792A],
+ ["C473",0x792C],
+ ["C474",0x792B],
+ ["C475",0x7AC7],
+ ["C476",0x7AF6],
+ ["C477",0x7C4C],
+ ["C478",0x7C43],
+ ["C479",0x7C4D],
+ ["C47A",0x7CEF],
+ ["C47B",0x7CF0],
+ ["C47C",0x8FAE],
+ ["C47D",0x7E7D],
+ ["C47E",0x7E7C],
+ ["C4A1",0x7E82],
+ ["C4A2",0x7F4C],
+ ["C4A3",0x8000],
+ ["C4A4",0x81DA],
+ ["C4A5",0x8266],
+ ["C4A6",0x85FB],
+ ["C4A7",0x85F9],
+ ["C4A8",0x8611],
+ ["C4A9",0x85FA],
+ ["C4AA",0x8606],
+ ["C4AB",0x860B],
+ ["C4AC",0x8607],
+ ["C4AD",0x860A],
+ ["C4AE",0x8814],
+ ["C4AF",0x8815],
+ ["C4B0",0x8964],
+ ["C4B1",0x89BA],
+ ["C4B2",0x89F8],
+ ["C4B3",0x8B70],
+ ["C4B4",0x8B6C],
+ ["C4B5",0x8B66],
+ ["C4B6",0x8B6F],
+ ["C4B7",0x8B5F],
+ ["C4B8",0x8B6B],
+ ["C4B9",0x8D0F],
+ ["C4BA",0x8D0D],
+ ["C4BB",0x8E89],
+ ["C4BC",0x8E81],
+ ["C4BD",0x8E85],
+ ["C4BE",0x8E82],
+ ["C4BF",0x91B4],
+ ["C4C0",0x91CB],
+ ["C4C1",0x9418],
+ ["C4C2",0x9403],
+ ["C4C3",0x93FD],
+ ["C4C4",0x95E1],
+ ["C4C5",0x9730],
+ ["C4C6",0x98C4],
+ ["C4C7",0x9952],
+ ["C4C8",0x9951],
+ ["C4C9",0x99A8],
+ ["C4CA",0x9A2B],
+ ["C4CB",0x9A30],
+ ["C4CC",0x9A37],
+ ["C4CD",0x9A35],
+ ["C4CE",0x9C13],
+ ["C4CF",0x9C0D],
+ ["C4D0",0x9E79],
+ ["C4D1",0x9EB5],
+ ["C4D2",0x9EE8],
+ ["C4D3",0x9F2F],
+ ["C4D4",0x9F5F],
+ ["C4D5",0x9F63],
+ ["C4D6",0x9F61],
+ ["C4D7",0x5137],
+ ["C4D8",0x5138],
+ ["C4D9",0x56C1],
+ ["C4DA",0x56C0],
+ ["C4DB",0x56C2],
+ ["C4DC",0x5914],
+ ["C4DD",0x5C6C],
+ ["C4DE",0x5DCD],
+ ["C4DF",0x61FC],
+ ["C4E0",0x61FE],
+ ["C4E1",0x651D],
+ ["C4E2",0x651C],
+ ["C4E3",0x6595],
+ ["C4E4",0x66E9],
+ ["C4E5",0x6AFB],
+ ["C4E6",0x6B04],
+ ["C4E7",0x6AFA],
+ ["C4E8",0x6BB2],
["C4E9",0x704C],
+ ["C4EA",0x721B],
+ ["C4EB",0x72A7],
+ ["C4EC",0x74D6],
+ ["C4ED",0x74D4],
+ ["C4EE",0x7669],
+ ["C4EF",0x77D3],
+ ["C4F0",0x7C50],
+ ["C4F1",0x7E8F],
+ ["C4F2",0x7E8C],
+ ["C4F3",0x7FBC],
+ ["C4F4",0x8617],
+ ["C4F5",0x862D],
+ ["C4F6",0x861A],
+ ["C4F7",0x8823],
+ ["C4F8",0x8822],
+ ["C4F9",0x8821],
+ ["C4FA",0x881F],
+ ["C4FB",0x896A],
+ ["C4FC",0x896C],
+ ["C4FD",0x89BD],
+ ["C4FE",0x8B74],
+ ["C540",0x8B77],
+ ["C541",0x8B7D],
+ ["C542",0x8D13],
+ ["C543",0x8E8A],
+ ["C544",0x8E8D],
+ ["C545",0x8E8B],
+ ["C546",0x8F5F],
+ ["C547",0x8FAF],
+ ["C548",0x91BA],
+ ["C549",0x942E],
+ ["C54A",0x9433],
+ ["C54B",0x9435],
+ ["C54C",0x943A],
+ ["C54D",0x9438],
+ ["C54E",0x9432],
+ ["C54F",0x942B],
+ ["C550",0x95E2],
+ ["C551",0x9738],
+ ["C552",0x9739],
+ ["C553",0x9732],
+ ["C554",0x97FF],
+ ["C555",0x9867],
+ ["C556",0x9865],
+ ["C557",0x9957],
+ ["C558",0x9A45],
+ ["C559",0x9A43],
+ ["C55A",0x9A40],
+ ["C55B",0x9A3E],
+ ["C55C",0x9ACF],
+ ["C55D",0x9B54],
+ ["C55E",0x9B51],
+ ["C55F",0x9C2D],
+ ["C560",0x9C25],
+ ["C561",0x9DAF],
+ ["C562",0x9DB4],
+ ["C563",0x9DC2],
+ ["C564",0x9DB8],
+ ["C565",0x9E9D],
+ ["C566",0x9EEF],
+ ["C567",0x9F19],
+ ["C568",0x9F5C],
+ ["C569",0x9F66],
+ ["C56A",0x9F67],
+ ["C56B",0x513C],
+ ["C56C",0x513B],
+ ["C56D",0x56C8],
+ ["C56E",0x56CA],
+ ["C56F",0x56C9],
+ ["C570",0x5B7F],
+ ["C571",0x5DD4],
+ ["C572",0x5DD2],
+ ["C573",0x5F4E],
+ ["C574",0x61FF],
+ ["C575",0x6524],
+ ["C576",0x6B0A],
+ ["C577",0x6B61],
["C578",0x7051],
- ["F6EB",0x7052],
- ["F6E8",0x7055],
- ["F6E9",0x7056],
- ["F6EA",0x7057],
["C579",0x7058],
- ["F7E5",0x705A],
- ["F7E4",0x705B],
- ["F8AF",0x705D],
+ ["C57A",0x7380],
+ ["C57B",0x74E4],
+ ["C57C",0x758A],
+ ["C57D",0x766E],
+ ["C57E",0x766C],
+ ["C5A1",0x79B3],
+ ["C5A2",0x7C60],
+ ["C5A3",0x7C5F],
+ ["C5A4",0x807E],
+ ["C5A5",0x807D],
+ ["C5A6",0x81DF],
+ ["C5A7",0x8972],
+ ["C5A8",0x896F],
+ ["C5A9",0x89FC],
+ ["C5AA",0x8B80],
+ ["C5AB",0x8D16],
+ ["C5AC",0x8D17],
+ ["C5AD",0x8E91],
+ ["C5AE",0x8E93],
+ ["C5AF",0x8F61],
+ ["C5B0",0x9148],
+ ["C5B1",0x9444],
+ ["C5B2",0x9451],
+ ["C5B3",0x9452],
+ ["C5B4",0x973D],
+ ["C5B5",0x973E],
+ ["C5B6",0x97C3],
+ ["C5B7",0x97C1],
+ ["C5B8",0x986B],
+ ["C5B9",0x9955],
+ ["C5BA",0x9A55],
+ ["C5BB",0x9A4D],
+ ["C5BC",0x9AD2],
+ ["C5BD",0x9B1A],
+ ["C5BE",0x9C49],
+ ["C5BF",0x9C31],
+ ["C5C0",0x9C3E],
+ ["C5C1",0x9C3B],
+ ["C5C2",0x9DD3],
+ ["C5C3",0x9DD7],
+ ["C5C4",0x9F34],
+ ["C5C5",0x9F6C],
+ ["C5C6",0x9F6A],
+ ["C5C7",0x9F94],
+ ["C5C8",0x56CC],
+ ["C5C9",0x5DD6],
+ ["C5CA",0x6200],
+ ["C5CB",0x6523],
+ ["C5CC",0x652B],
+ ["C5CD",0x652A],
+ ["C5CE",0x66EC],
+ ["C5CF",0x6B10],
+ ["C5D0",0x74DA],
+ ["C5D1",0x7ACA],
+ ["C5D2",0x7C64],
+ ["C5D3",0x7C63],
+ ["C5D4",0x7C65],
+ ["C5D5",0x7E93],
+ ["C5D6",0x7E96],
+ ["C5D7",0x7E94],
+ ["C5D8",0x81E2],
+ ["C5D9",0x8638],
+ ["C5DA",0x863F],
+ ["C5DB",0x8831],
+ ["C5DC",0x8B8A],
+ ["C5DD",0x9090],
+ ["C5DE",0x908F],
+ ["C5DF",0x9463],
+ ["C5E0",0x9460],
+ ["C5E1",0x9464],
+ ["C5E2",0x9768],
+ ["C5E3",0x986F],
+ ["C5E4",0x995C],
+ ["C5E5",0x9A5A],
+ ["C5E6",0x9A5B],
+ ["C5E7",0x9A57],
+ ["C5E8",0x9AD3],
+ ["C5E9",0x9AD4],
+ ["C5EA",0x9AD1],
+ ["C5EB",0x9C54],
+ ["C5EC",0x9C57],
+ ["C5ED",0x9C56],
+ ["C5EE",0x9DE5],
+ ["C5EF",0x9E9F],
+ ["C5F0",0x9EF4],
+ ["C5F1",0x56D1],
+ ["C5F2",0x58E9],
+ ["C5F3",0x652C],
["C5F4",0x705E],
- ["F8AD",0x705F],
- ["F8B0",0x7060],
- ["F8AE",0x7061],
- ["F8F5",0x7062],
+ ["C5F5",0x7671],
+ ["C5F6",0x7672],
+ ["C5F7",0x77D7],
+ ["C5F8",0x7F50],
+ ["C5F9",0x7F88],
+ ["C5FA",0x8836],
+ ["C5FB",0x8839],
+ ["C5FC",0x8862],
+ ["C5FD",0x8B93],
+ ["C5FE",0x8B92],
+ ["C640",0x8B96],
+ ["C641",0x8277],
+ ["C642",0x8D1B],
+ ["C643",0x91C0],
+ ["C644",0x946A],
+ ["C645",0x9742],
+ ["C646",0x9748],
+ ["C647",0x9744],
+ ["C648",0x97C6],
+ ["C649",0x9870],
+ ["C64A",0x9A5F],
+ ["C64B",0x9B22],
+ ["C64C",0x9B58],
+ ["C64D",0x9C5F],
+ ["C64E",0x9DF9],
+ ["C64F",0x9DFA],
+ ["C650",0x9E7C],
+ ["C651",0x9E7D],
+ ["C652",0x9F07],
+ ["C653",0x9F77],
+ ["C654",0x9F72],
+ ["C655",0x5EF3],
+ ["C656",0x6B16],
["C657",0x7063],
+ ["C658",0x7C6C],
+ ["C659",0x7C6E],
+ ["C65A",0x883B],
+ ["C65B",0x89C0],
+ ["C65C",0x8EA1],
+ ["C65D",0x91C1],
+ ["C65E",0x9472],
+ ["C65F",0x9470],
+ ["C660",0x9871],
+ ["C661",0x995E],
+ ["C662",0x9AD6],
+ ["C663",0x9B23],
+ ["C664",0x9ECC],
["C665",0x7064],
- ["F9A3",0x7065],
- ["F96C",0x7066],
- ["F9A2",0x7068],
- ["F9D0",0x7069],
- ["F9D1",0x706A],
- ["A4F5",0x706B],
- ["A6C7",0x7070],
+ ["C666",0x77DA],
+ ["C667",0x8B9A],
+ ["C668",0x9477],
+ ["C669",0x97C9],
+ ["C66A",0x9A62],
+ ["C66B",0x9A65],
+ ["C66C",0x7E9C],
+ ["C66D",0x8B9C],
+ ["C66E",0x8EAA],
+ ["C66F",0x91C5],
+ ["C670",0x947D],
+ ["C671",0x947E],
+ ["C672",0x947C],
+ ["C673",0x9C77],
+ ["C674",0x9C78],
+ ["C675",0x9EF7],
+ ["C676",0x8C54],
+ ["C677",0x947F],
+ ["C678",0x9E1A],
+ ["C679",0x7228],
+ ["C67A",0x9A6A],
+ ["C67B",0x9B31],
+ ["C67C",0x9E1B],
+ ["C67D",0x9E1E],
+ ["C67E",0x7C72],
+ ["C6A1",0x2460],
+ ["C6A2",0x2461],
+ ["C6A3",0x2462],
+ ["C6A4",0x2463],
+ ["C6A5",0x2464],
+ ["C6A6",0x2465],
+ ["C6A7",0x2466],
+ ["C6A8",0x2467],
+ ["C6A9",0x2468],
+ ["C6AA",0x2469],
+ ["C6AB",0x2474],
+ ["C6AC",0x2475],
+ ["C6AD",0x2476],
+ ["C6AE",0x2477],
+ ["C6AF",0x2478],
+ ["C6B0",0x2479],
+ ["C6B1",0x247A],
+ ["C6B2",0x247B],
+ ["C6B3",0x247C],
+ ["C6B4",0x247D],
+ ["C6B5",0x2170],
+ ["C6B6",0x2171],
+ ["C6B7",0x2172],
+ ["C6B8",0x2173],
+ ["C6B9",0x2174],
+ ["C6BA",0x2175],
+ ["C6BB",0x2176],
+ ["C6BC",0x2177],
+ ["C6BD",0x2178],
+ ["C6BE",0x2179],
+ ["C6BF",0x4E36],
+ ["C6C0",0x4E3F],
+ ["C6C1",0x4E85],
+ ["C6C2",0x4EA0],
+ ["C6C3",0x5182],
+ ["C6C4",0x5196],
+ ["C6C5",0x51AB],
+ ["C6C6",0x52F9],
+ ["C6C7",0x5338],
+ ["C6C8",0x5369],
+ ["C6C9",0x53B6],
+ ["C6CA",0x590A],
+ ["C6CB",0x5B80],
+ ["C6CC",0x5DDB],
+ ["C6CD",0x5E7A],
+ ["C6CE",0x5E7F],
+ ["C6CF",0x5EF4],
+ ["C6D0",0x5F50],
+ ["C6D1",0x5F61],
+ ["C6D2",0x6534],
+ ["C6D3",0x65E0],
+ ["C6D4",0x7592],
+ ["C6D5",0x7676],
+ ["C6D6",0x8FB5],
+ ["C6D7",0x96B6],
+ ["C6D8",0x00A8],
+ ["C6D9",0x02C6],
+ ["C6DA",0x30FD],
+ ["C6DB",0x30FE],
+ ["C6DC",0x309D],
+ ["C6DD",0x309E],
+ ["C6DE",0x3003],
+ ["C6DF",0x4EDD],
+ ["C6E0",0x3005],
+ ["C6E1",0x3006],
+ ["C6E2",0x3007],
+ ["C6E3",0x30FC],
+ ["C6E4",0xFF3B],
+ ["C6E5",0xFF3D],
+ ["C6E6",0x273D],
+ ["C6E7",0x3041],
+ ["C6E8",0x3042],
+ ["C6E9",0x3043],
+ ["C6EA",0x3044],
+ ["C6EB",0x3045],
+ ["C6EC",0x3046],
+ ["C6ED",0x3047],
+ ["C6EE",0x3048],
+ ["C6EF",0x3049],
+ ["C6F0",0x304A],
+ ["C6F1",0x304B],
+ ["C6F2",0x304C],
+ ["C6F3",0x304D],
+ ["C6F4",0x304E],
+ ["C6F5",0x304F],
+ ["C6F6",0x3050],
+ ["C6F7",0x3051],
+ ["C6F8",0x3052],
+ ["C6F9",0x3053],
+ ["C6FA",0x3054],
+ ["C6FB",0x3055],
+ ["C6FC",0x3056],
+ ["C6FD",0x3057],
+ ["C6FE",0x3058],
+ ["C740",0x3059],
+ ["C741",0x305A],
+ ["C742",0x305B],
+ ["C743",0x305C],
+ ["C744",0x305D],
+ ["C745",0x305E],
+ ["C746",0x305F],
+ ["C747",0x3060],
+ ["C748",0x3061],
+ ["C749",0x3062],
+ ["C74A",0x3063],
+ ["C74B",0x3064],
+ ["C74C",0x3065],
+ ["C74D",0x3066],
+ ["C74E",0x3067],
+ ["C74F",0x3068],
+ ["C750",0x3069],
+ ["C751",0x306A],
+ ["C752",0x306B],
+ ["C753",0x306C],
+ ["C754",0x306D],
+ ["C755",0x306E],
+ ["C756",0x306F],
+ ["C757",0x3070],
+ ["C758",0x3071],
+ ["C759",0x3072],
+ ["C75A",0x3073],
+ ["C75B",0x3074],
+ ["C75C",0x3075],
+ ["C75D",0x3076],
+ ["C75E",0x3077],
+ ["C75F",0x3078],
+ ["C760",0x3079],
+ ["C761",0x307A],
+ ["C762",0x307B],
+ ["C763",0x307C],
+ ["C764",0x307D],
+ ["C765",0x307E],
+ ["C766",0x307F],
+ ["C767",0x3080],
+ ["C768",0x3081],
+ ["C769",0x3082],
+ ["C76A",0x3083],
+ ["C76B",0x3084],
+ ["C76C",0x3085],
+ ["C76D",0x3086],
+ ["C76E",0x3087],
+ ["C76F",0x3088],
+ ["C770",0x3089],
+ ["C771",0x308A],
+ ["C772",0x308B],
+ ["C773",0x308C],
+ ["C774",0x308D],
+ ["C775",0x308E],
+ ["C776",0x308F],
+ ["C777",0x3090],
+ ["C778",0x3091],
+ ["C779",0x3092],
+ ["C77A",0x3093],
+ ["C77B",0x30A1],
+ ["C77C",0x30A2],
+ ["C77D",0x30A3],
+ ["C77E",0x30A4],
+ ["C7A1",0x30A5],
+ ["C7A2",0x30A6],
+ ["C7A3",0x30A7],
+ ["C7A4",0x30A8],
+ ["C7A5",0x30A9],
+ ["C7A6",0x30AA],
+ ["C7A7",0x30AB],
+ ["C7A8",0x30AC],
+ ["C7A9",0x30AD],
+ ["C7AA",0x30AE],
+ ["C7AB",0x30AF],
+ ["C7AC",0x30B0],
+ ["C7AD",0x30B1],
+ ["C7AE",0x30B2],
+ ["C7AF",0x30B3],
+ ["C7B0",0x30B4],
+ ["C7B1",0x30B5],
+ ["C7B2",0x30B6],
+ ["C7B3",0x30B7],
+ ["C7B4",0x30B8],
+ ["C7B5",0x30B9],
+ ["C7B6",0x30BA],
+ ["C7B7",0x30BB],
+ ["C7B8",0x30BC],
+ ["C7B9",0x30BD],
+ ["C7BA",0x30BE],
+ ["C7BB",0x30BF],
+ ["C7BC",0x30C0],
+ ["C7BD",0x30C1],
+ ["C7BE",0x30C2],
+ ["C7BF",0x30C3],
+ ["C7C0",0x30C4],
+ ["C7C1",0x30C5],
+ ["C7C2",0x30C6],
+ ["C7C3",0x30C7],
+ ["C7C4",0x30C8],
+ ["C7C5",0x30C9],
+ ["C7C6",0x30CA],
+ ["C7C7",0x30CB],
+ ["C7C8",0x30CC],
+ ["C7C9",0x30CD],
+ ["C7CA",0x30CE],
+ ["C7CB",0x30CF],
+ ["C7CC",0x30D0],
+ ["C7CD",0x30D1],
+ ["C7CE",0x30D2],
+ ["C7CF",0x30D3],
+ ["C7D0",0x30D4],
+ ["C7D1",0x30D5],
+ ["C7D2",0x30D6],
+ ["C7D3",0x30D7],
+ ["C7D4",0x30D8],
+ ["C7D5",0x30D9],
+ ["C7D6",0x30DA],
+ ["C7D7",0x30DB],
+ ["C7D8",0x30DC],
+ ["C7D9",0x30DD],
+ ["C7DA",0x30DE],
+ ["C7DB",0x30DF],
+ ["C7DC",0x30E0],
+ ["C7DD",0x30E1],
+ ["C7DE",0x30E2],
+ ["C7DF",0x30E3],
+ ["C7E0",0x30E4],
+ ["C7E1",0x30E5],
+ ["C7E2",0x30E6],
+ ["C7E3",0x30E7],
+ ["C7E4",0x30E8],
+ ["C7E5",0x30E9],
+ ["C7E6",0x30EA],
+ ["C7E7",0x30EB],
+ ["C7E8",0x30EC],
+ ["C7E9",0x30ED],
+ ["C7EA",0x30EE],
+ ["C7EB",0x30EF],
+ ["C7EC",0x30F0],
+ ["C7ED",0x30F1],
+ ["C7EE",0x30F2],
+ ["C7EF",0x30F3],
+ ["C7F0",0x30F4],
+ ["C7F1",0x30F5],
+ ["C7F2",0x30F6],
+ ["C7F3",0x0410],
+ ["C7F4",0x0411],
+ ["C7F5",0x0412],
+ ["C7F6",0x0413],
+ ["C7F7",0x0414],
+ ["C7F8",0x0415],
+ ["C7F9",0x0401],
+ ["C7FA",0x0416],
+ ["C7FB",0x0417],
+ ["C7FC",0x0418],
+ ["C7FD",0x0419],
+ ["C7FE",0x041A],
+ ["C840",0x041B],
+ ["C841",0x041C],
+ ["C842",0x041D],
+ ["C843",0x041E],
+ ["C844",0x041F],
+ ["C845",0x0420],
+ ["C846",0x0421],
+ ["C847",0x0422],
+ ["C848",0x0423],
+ ["C849",0x0424],
+ ["C84A",0x0425],
+ ["C84B",0x0426],
+ ["C84C",0x0427],
+ ["C84D",0x0428],
+ ["C84E",0x0429],
+ ["C84F",0x042A],
+ ["C850",0x042B],
+ ["C851",0x042C],
+ ["C852",0x042D],
+ ["C853",0x042E],
+ ["C854",0x042F],
+ ["C855",0x0430],
+ ["C856",0x0431],
+ ["C857",0x0432],
+ ["C858",0x0433],
+ ["C859",0x0434],
+ ["C85A",0x0435],
+ ["C85B",0x0451],
+ ["C85C",0x0436],
+ ["C85D",0x0437],
+ ["C85E",0x0438],
+ ["C85F",0x0439],
+ ["C860",0x043A],
+ ["C861",0x043B],
+ ["C862",0x043C],
+ ["C863",0x043D],
+ ["C864",0x043E],
+ ["C865",0x043F],
+ ["C866",0x0440],
+ ["C867",0x0441],
+ ["C868",0x0442],
+ ["C869",0x0443],
+ ["C86A",0x0444],
+ ["C86B",0x0445],
+ ["C86C",0x0446],
+ ["C86D",0x0447],
+ ["C86E",0x0448],
+ ["C86F",0x0449],
+ ["C870",0x044A],
+ ["C871",0x044B],
+ ["C872",0x044C],
+ ["C873",0x044D],
+ ["C874",0x044E],
+ ["C875",0x044F],
+ ["C876",0x21E7],
+ ["C877",0x21B8],
+ ["C878",0x21B9],
+ ["C879",0x31CF],
+ ["C87A",0xF7E6],
+ ["C87B",0x4E5A],
+ ["C87C",0xF7E8],
+ ["C87D",0x5202],
+ ["C87E",0x4491],
+ ["C8A1",0x9FB0],
+ ["C8A2",0x5188],
+ ["C8A3",0x9FB1],
+ ["C8A4",0xF7EE],
+ ["C8A5",0xF7EF],
+ ["C8A6",0xF7F0],
+ ["C8A7",0xF7F1],
+ ["C8A8",0xF7F2],
+ ["C8A9",0xF7F3],
+ ["C8AA",0xF7F4],
+ ["C8AB",0xF7F5],
+ ["C8AC",0xF7F6],
+ ["C8AD",0xF7F7],
+ ["C8AE",0xF7F8],
+ ["C8AF",0xF7F9],
+ ["C8B0",0xF7FA],
+ ["C8B1",0x309B],
+ ["C8B2",0x309C],
+ ["C8B3",0x3094],
+ ["C8B4",0x30F7],
+ ["C8B5",0x30F8],
+ ["C8B6",0x30F9],
+ ["C8B7",0x30FA],
+ ["C8B8",0x30FB],
+ ["C8B9",0xFF61],
+ ["C8BA",0xFF62],
+ ["C8BB",0xFF63],
+ ["C8BC",0xFF64],
+ ["C8BD",0xFF65],
+ ["C8BE",0xFF66],
+ ["C8BF",0xFF67],
+ ["C8C0",0xFF68],
+ ["C8C1",0xFF69],
+ ["C8C2",0xFF6A],
+ ["C8C3",0xFF6B],
+ ["C8C4",0xFF6C],
+ ["C8C5",0xFF6D],
+ ["C8C6",0xFF6E],
+ ["C8C7",0xFF6F],
+ ["C8C8",0xFF70],
+ ["C8C9",0xFF71],
+ ["C8CA",0xFF72],
+ ["C8CB",0xFF73],
+ ["C8CC",0xFF74],
+ ["C8CD",0xFFE2],
+ ["C8CE",0xFFE4],
+ ["C8CF",0xFF07],
+ ["C8D0",0xFF02],
+ ["C8D1",0x3231],
+ ["C8D2",0x2116],
+ ["C8D3",0x2121],
+ ["C8D4",0xFF75],
+ ["C8D5",0xFF76],
+ ["C8D6",0xFF77],
+ ["C8D7",0xFF78],
+ ["C8D8",0xFF79],
+ ["C8D9",0xFF7A],
+ ["C8DA",0xFF7B],
+ ["C8DB",0xFF7C],
+ ["C8DC",0xFF7D],
+ ["C8DD",0xFF7E],
+ ["C8DE",0xFF7F],
+ ["C8DF",0xFF80],
+ ["C8E0",0xFF81],
+ ["C8E1",0xFF82],
+ ["C8E2",0xFF83],
+ ["C8E3",0xFF84],
+ ["C8E4",0xFF85],
+ ["C8E5",0xFF86],
+ ["C8E6",0xFF87],
+ ["C8E7",0xFF88],
+ ["C8E8",0xFF89],
+ ["C8E9",0xFF8A],
+ ["C8EA",0xFF8B],
+ ["C8EB",0xFF8C],
+ ["C8EC",0xFF8D],
+ ["C8ED",0xFF8E],
+ ["C8EE",0xFF8F],
+ ["C8EF",0xFF90],
+ ["C8F0",0xFF91],
+ ["C8F1",0xFF92],
+ ["C8F2",0xFF93],
+ ["C8F3",0xFF94],
+ ["C8F4",0xFF95],
+ ["C8F5",0xFF96],
+ ["C8F6",0xFF97],
+ ["C8F7",0xFF98],
+ ["C8F8",0xFF99],
+ ["C8F9",0xFF9A],
+ ["C8FA",0xFF9B],
+ ["C8FB",0xFF9C],
+ ["C8FC",0xFF9D],
+ ["C8FD",0xFF9E],
+ ["C8FE",0xFF9F],
+ ["C940",0x4E42],
+ ["C941",0x4E5C],
+ ["C942",0x51F5],
+ ["C943",0x531A],
+ ["C944",0x5382],
+ ["C945",0x4E07],
+ ["C946",0x4E0C],
+ ["C947",0x4E47],
+ ["C948",0x4E8D],
+ ["C949",0x56D7],
+ ["C94A",0xFA0C],
+ ["C94B",0x5C6E],
+ ["C94C",0x5F73],
+ ["C94D",0x4E0F],
+ ["C94E",0x5187],
+ ["C94F",0x4E0E],
+ ["C950",0x4E2E],
+ ["C951",0x4E93],
+ ["C952",0x4EC2],
+ ["C953",0x4EC9],
+ ["C954",0x4EC8],
+ ["C955",0x5198],
+ ["C956",0x52FC],
+ ["C957",0x536C],
+ ["C958",0x53B9],
+ ["C959",0x5720],
+ ["C95A",0x5903],
+ ["C95B",0x592C],
+ ["C95C",0x5C10],
+ ["C95D",0x5DFF],
+ ["C95E",0x65E1],
+ ["C95F",0x6BB3],
+ ["C960",0x6BCC],
+ ["C961",0x6C14],
+ ["C962",0x723F],
+ ["C963",0x4E31],
+ ["C964",0x4E3C],
+ ["C965",0x4EE8],
+ ["C966",0x4EDC],
+ ["C967",0x4EE9],
+ ["C968",0x4EE1],
+ ["C969",0x4EDD],
+ ["C96A",0x4EDA],
+ ["C96B",0x520C],
+ ["C96C",0x531C],
+ ["C96D",0x534C],
+ ["C96E",0x5722],
+ ["C96F",0x5723],
+ ["C970",0x5917],
+ ["C971",0x592F],
+ ["C972",0x5B81],
+ ["C973",0x5B84],
+ ["C974",0x5C12],
+ ["C975",0x5C3B],
+ ["C976",0x5C74],
+ ["C977",0x5C73],
+ ["C978",0x5E04],
+ ["C979",0x5E80],
+ ["C97A",0x5E82],
+ ["C97B",0x5FC9],
+ ["C97C",0x6209],
+ ["C97D",0x6250],
+ ["C97E",0x6C15],
+ ["C9A1",0x6C36],
+ ["C9A2",0x6C43],
+ ["C9A3",0x6C3F],
+ ["C9A4",0x6C3B],
+ ["C9A5",0x72AE],
+ ["C9A6",0x72B0],
+ ["C9A7",0x738A],
+ ["C9A8",0x79B8],
+ ["C9A9",0x808A],
+ ["C9AA",0x961E],
+ ["C9AB",0x4F0E],
+ ["C9AC",0x4F18],
+ ["C9AD",0x4F2C],
+ ["C9AE",0x4EF5],
+ ["C9AF",0x4F14],
+ ["C9B0",0x4EF1],
+ ["C9B1",0x4F00],
+ ["C9B2",0x4EF7],
+ ["C9B3",0x4F08],
+ ["C9B4",0x4F1D],
+ ["C9B5",0x4F02],
+ ["C9B6",0x4F05],
+ ["C9B7",0x4F22],
+ ["C9B8",0x4F13],
+ ["C9B9",0x4F04],
+ ["C9BA",0x4EF4],
+ ["C9BB",0x4F12],
+ ["C9BC",0x51B1],
+ ["C9BD",0x5213],
+ ["C9BE",0x5209],
+ ["C9BF",0x5210],
+ ["C9C0",0x52A6],
+ ["C9C1",0x5322],
+ ["C9C2",0x531F],
+ ["C9C3",0x534D],
+ ["C9C4",0x538A],
+ ["C9C5",0x5407],
+ ["C9C6",0x56E1],
+ ["C9C7",0x56DF],
+ ["C9C8",0x572E],
+ ["C9C9",0x572A],
+ ["C9CA",0x5734],
+ ["C9CB",0x593C],
+ ["C9CC",0x5980],
+ ["C9CD",0x597C],
+ ["C9CE",0x5985],
+ ["C9CF",0x597B],
+ ["C9D0",0x597E],
+ ["C9D1",0x5977],
+ ["C9D2",0x597F],
+ ["C9D3",0x5B56],
+ ["C9D4",0x5C15],
+ ["C9D5",0x5C25],
+ ["C9D6",0x5C7C],
+ ["C9D7",0x5C7A],
+ ["C9D8",0x5C7B],
+ ["C9D9",0x5C7E],
+ ["C9DA",0x5DDF],
+ ["C9DB",0x5E75],
+ ["C9DC",0x5E84],
+ ["C9DD",0x5F02],
+ ["C9DE",0x5F1A],
+ ["C9DF",0x5F74],
+ ["C9E0",0x5FD5],
+ ["C9E1",0x5FD4],
+ ["C9E2",0x5FCF],
+ ["C9E3",0x625C],
+ ["C9E4",0x625E],
+ ["C9E5",0x6264],
+ ["C9E6",0x6261],
+ ["C9E7",0x6266],
+ ["C9E8",0x6262],
+ ["C9E9",0x6259],
+ ["C9EA",0x6260],
+ ["C9EB",0x625A],
+ ["C9EC",0x6265],
+ ["C9ED",0x65EF],
+ ["C9EE",0x65EE],
+ ["C9EF",0x673E],
+ ["C9F0",0x6739],
+ ["C9F1",0x6738],
+ ["C9F2",0x673B],
+ ["C9F3",0x673A],
+ ["C9F4",0x673F],
+ ["C9F5",0x673C],
+ ["C9F6",0x6733],
+ ["C9F7",0x6C18],
+ ["C9F8",0x6C46],
+ ["C9F9",0x6C52],
+ ["C9FA",0x6C5C],
+ ["C9FB",0x6C4F],
+ ["C9FC",0x6C4A],
+ ["C9FD",0x6C54],
+ ["C9FE",0x6C4B],
+ ["CA40",0x6C4C],
["CA41",0x7071],
+ ["CA42",0x725E],
+ ["CA43",0x72B4],
+ ["CA44",0x72B5],
+ ["CA45",0x738E],
+ ["CA46",0x752A],
+ ["CA47",0x767F],
+ ["CA48",0x7A75],
+ ["CA49",0x7F51],
+ ["CA4A",0x8278],
+ ["CA4B",0x827C],
+ ["CA4C",0x8280],
+ ["CA4D",0x827D],
+ ["CA4E",0x827F],
+ ["CA4F",0x864D],
+ ["CA50",0x897E],
+ ["CA51",0x9099],
+ ["CA52",0x9097],
+ ["CA53",0x9098],
+ ["CA54",0x909B],
+ ["CA55",0x9094],
+ ["CA56",0x9622],
+ ["CA57",0x9624],
+ ["CA58",0x9620],
+ ["CA59",0x9623],
+ ["CA5A",0x4F56],
+ ["CA5B",0x4F3B],
+ ["CA5C",0x4F62],
+ ["CA5D",0x4F49],
+ ["CA5E",0x4F53],
+ ["CA5F",0x4F64],
+ ["CA60",0x4F3E],
+ ["CA61",0x4F67],
+ ["CA62",0x4F52],
+ ["CA63",0x4F5F],
+ ["CA64",0x4F41],
+ ["CA65",0x4F58],
+ ["CA66",0x4F2D],
+ ["CA67",0x4F33],
+ ["CA68",0x4F3F],
+ ["CA69",0x4F61],
+ ["CA6A",0x518F],
+ ["CA6B",0x51B9],
+ ["CA6C",0x521C],
+ ["CA6D",0x521E],
+ ["CA6E",0x5221],
+ ["CA6F",0x52AD],
+ ["CA70",0x52AE],
+ ["CA71",0x5309],
+ ["CA72",0x5363],
+ ["CA73",0x5372],
+ ["CA74",0x538E],
+ ["CA75",0x538F],
+ ["CA76",0x5430],
+ ["CA77",0x5437],
+ ["CA78",0x542A],
+ ["CA79",0x5454],
+ ["CA7A",0x5445],
+ ["CA7B",0x5419],
+ ["CA7C",0x541C],
+ ["CA7D",0x5425],
+ ["CA7E",0x5418],
+ ["CAA1",0x543D],
+ ["CAA2",0x544F],
+ ["CAA3",0x5441],
+ ["CAA4",0x5428],
+ ["CAA5",0x5424],
+ ["CAA6",0x5447],
+ ["CAA7",0x56EE],
+ ["CAA8",0x56E7],
+ ["CAA9",0x56E5],
+ ["CAAA",0x5741],
+ ["CAAB",0x5745],
+ ["CAAC",0x574C],
+ ["CAAD",0x5749],
+ ["CAAE",0x574B],
+ ["CAAF",0x5752],
+ ["CAB0",0x5906],
+ ["CAB1",0x5940],
+ ["CAB2",0x59A6],
+ ["CAB3",0x5998],
+ ["CAB4",0x59A0],
+ ["CAB5",0x5997],
+ ["CAB6",0x598E],
+ ["CAB7",0x59A2],
+ ["CAB8",0x5990],
+ ["CAB9",0x598F],
+ ["CABA",0x59A7],
+ ["CABB",0x59A1],
+ ["CABC",0x5B8E],
+ ["CABD",0x5B92],
+ ["CABE",0x5C28],
+ ["CABF",0x5C2A],
+ ["CAC0",0x5C8D],
+ ["CAC1",0x5C8F],
+ ["CAC2",0x5C88],
+ ["CAC3",0x5C8B],
+ ["CAC4",0x5C89],
+ ["CAC5",0x5C92],
+ ["CAC6",0x5C8A],
+ ["CAC7",0x5C86],
+ ["CAC8",0x5C93],
+ ["CAC9",0x5C95],
+ ["CACA",0x5DE0],
+ ["CACB",0x5E0A],
+ ["CACC",0x5E0E],
+ ["CACD",0x5E8B],
+ ["CACE",0x5E89],
+ ["CACF",0x5E8C],
+ ["CAD0",0x5E88],
+ ["CAD1",0x5E8D],
+ ["CAD2",0x5F05],
+ ["CAD3",0x5F1D],
+ ["CAD4",0x5F78],
+ ["CAD5",0x5F76],
+ ["CAD6",0x5FD2],
+ ["CAD7",0x5FD1],
+ ["CAD8",0x5FD0],
+ ["CAD9",0x5FED],
+ ["CADA",0x5FE8],
+ ["CADB",0x5FEE],
+ ["CADC",0x5FF3],
+ ["CADD",0x5FE1],
+ ["CADE",0x5FE4],
+ ["CADF",0x5FE3],
+ ["CAE0",0x5FFA],
+ ["CAE1",0x5FEF],
+ ["CAE2",0x5FF7],
+ ["CAE3",0x5FFB],
+ ["CAE4",0x6000],
+ ["CAE5",0x5FF4],
+ ["CAE6",0x623A],
+ ["CAE7",0x6283],
+ ["CAE8",0x628C],
+ ["CAE9",0x628E],
+ ["CAEA",0x628F],
+ ["CAEB",0x6294],
+ ["CAEC",0x6287],
+ ["CAED",0x6271],
+ ["CAEE",0x627B],
+ ["CAEF",0x627A],
+ ["CAF0",0x6270],
+ ["CAF1",0x6281],
+ ["CAF2",0x6288],
+ ["CAF3",0x6277],
+ ["CAF4",0x627D],
+ ["CAF5",0x6272],
+ ["CAF6",0x6274],
+ ["CAF7",0x6537],
+ ["CAF8",0x65F0],
+ ["CAF9",0x65F4],
+ ["CAFA",0x65F3],
+ ["CAFB",0x65F2],
+ ["CAFC",0x65F5],
+ ["CAFD",0x6745],
+ ["CAFE",0x6747],
+ ["CB40",0x6759],
+ ["CB41",0x6755],
+ ["CB42",0x674C],
+ ["CB43",0x6748],
+ ["CB44",0x675D],
+ ["CB45",0x674D],
+ ["CB46",0x675A],
+ ["CB47",0x674B],
+ ["CB48",0x6BD0],
+ ["CB49",0x6C19],
+ ["CB4A",0x6C1A],
+ ["CB4B",0x6C78],
+ ["CB4C",0x6C67],
+ ["CB4D",0x6C6B],
+ ["CB4E",0x6C84],
+ ["CB4F",0x6C8B],
+ ["CB50",0x6C8F],
+ ["CB51",0x6C71],
+ ["CB52",0x6C6F],
+ ["CB53",0x6C69],
+ ["CB54",0x6C9A],
+ ["CB55",0x6C6D],
+ ["CB56",0x6C87],
+ ["CB57",0x6C95],
+ ["CB58",0x6C9C],
+ ["CB59",0x6C66],
+ ["CB5A",0x6C73],
+ ["CB5B",0x6C65],
+ ["CB5C",0x6C7B],
+ ["CB5D",0x6C8E],
["CB5E",0x7074],
- ["A85F",0x7076],
- ["A862",0x7078],
["CB5F",0x707A],
- ["A860",0x707C],
- ["A861",0x707D],
- ["CD58",0x7082],
- ["CD5A",0x7083],
- ["CD55",0x7084],
+ ["CB60",0x7263],
+ ["CB61",0x72BF],
+ ["CB62",0x72BD],
+ ["CB63",0x72C3],
+ ["CB64",0x72C6],
+ ["CB65",0x72C1],
+ ["CB66",0x72BA],
+ ["CB67",0x72C5],
+ ["CB68",0x7395],
+ ["CB69",0x7397],
+ ["CB6A",0x7393],
+ ["CB6B",0x7394],
+ ["CB6C",0x7392],
+ ["CB6D",0x753A],
+ ["CB6E",0x7539],
+ ["CB6F",0x7594],
+ ["CB70",0x7595],
+ ["CB71",0x7681],
+ ["CB72",0x793D],
+ ["CB73",0x8034],
+ ["CB74",0x8095],
+ ["CB75",0x8099],
+ ["CB76",0x8090],
+ ["CB77",0x8092],
+ ["CB78",0x809C],
+ ["CB79",0x8290],
+ ["CB7A",0x828F],
+ ["CB7B",0x8285],
+ ["CB7C",0x828E],
+ ["CB7D",0x8291],
+ ["CB7E",0x8293],
+ ["CBA1",0x828A],
+ ["CBA2",0x8283],
+ ["CBA3",0x8284],
+ ["CBA4",0x8C78],
+ ["CBA5",0x8FC9],
+ ["CBA6",0x8FBF],
+ ["CBA7",0x909F],
+ ["CBA8",0x90A1],
+ ["CBA9",0x90A5],
+ ["CBAA",0x909E],
+ ["CBAB",0x90A7],
+ ["CBAC",0x90A0],
+ ["CBAD",0x9630],
+ ["CBAE",0x9628],
+ ["CBAF",0x962F],
+ ["CBB0",0x962D],
+ ["CBB1",0x4E33],
+ ["CBB2",0x4F98],
+ ["CBB3",0x4F7C],
+ ["CBB4",0x4F85],
+ ["CBB5",0x4F7D],
+ ["CBB6",0x4F80],
+ ["CBB7",0x4F87],
+ ["CBB8",0x4F76],
+ ["CBB9",0x4F74],
+ ["CBBA",0x4F89],
+ ["CBBB",0x4F84],
+ ["CBBC",0x4F77],
+ ["CBBD",0x4F4C],
+ ["CBBE",0x4F97],
+ ["CBBF",0x4F6A],
+ ["CBC0",0x4F9A],
+ ["CBC1",0x4F79],
+ ["CBC2",0x4F81],
+ ["CBC3",0x4F78],
+ ["CBC4",0x4F90],
+ ["CBC5",0x4F9C],
+ ["CBC6",0x4F94],
+ ["CBC7",0x4F9E],
+ ["CBC8",0x4F92],
+ ["CBC9",0x4F82],
+ ["CBCA",0x4F95],
+ ["CBCB",0x4F6B],
+ ["CBCC",0x4F6E],
+ ["CBCD",0x519E],
+ ["CBCE",0x51BC],
+ ["CBCF",0x51BE],
+ ["CBD0",0x5235],
+ ["CBD1",0x5232],
+ ["CBD2",0x5233],
+ ["CBD3",0x5246],
+ ["CBD4",0x5231],
+ ["CBD5",0x52BC],
+ ["CBD6",0x530A],
+ ["CBD7",0x530B],
+ ["CBD8",0x533C],
+ ["CBD9",0x5392],
+ ["CBDA",0x5394],
+ ["CBDB",0x5487],
+ ["CBDC",0x547F],
+ ["CBDD",0x5481],
+ ["CBDE",0x5491],
+ ["CBDF",0x5482],
+ ["CBE0",0x5488],
+ ["CBE1",0x546B],
+ ["CBE2",0x547A],
+ ["CBE3",0x547E],
+ ["CBE4",0x5465],
+ ["CBE5",0x546C],
+ ["CBE6",0x5474],
+ ["CBE7",0x5466],
+ ["CBE8",0x548D],
+ ["CBE9",0x546F],
+ ["CBEA",0x5461],
+ ["CBEB",0x5460],
+ ["CBEC",0x5498],
+ ["CBED",0x5463],
+ ["CBEE",0x5467],
+ ["CBEF",0x5464],
+ ["CBF0",0x56F7],
+ ["CBF1",0x56F9],
+ ["CBF2",0x576F],
+ ["CBF3",0x5772],
+ ["CBF4",0x576D],
+ ["CBF5",0x576B],
+ ["CBF6",0x5771],
+ ["CBF7",0x5770],
+ ["CBF8",0x5776],
+ ["CBF9",0x5780],
+ ["CBFA",0x5775],
+ ["CBFB",0x577B],
+ ["CBFC",0x5773],
+ ["CBFD",0x5774],
+ ["CBFE",0x5762],
+ ["CC40",0x5768],
+ ["CC41",0x577D],
+ ["CC42",0x590C],
+ ["CC43",0x5945],
+ ["CC44",0x59B5],
+ ["CC45",0x59BA],
+ ["CC46",0x59CF],
+ ["CC47",0x59CE],
+ ["CC48",0x59B2],
+ ["CC49",0x59CC],
+ ["CC4A",0x59C1],
+ ["CC4B",0x59B6],
+ ["CC4C",0x59BC],
+ ["CC4D",0x59C3],
+ ["CC4E",0x59D6],
+ ["CC4F",0x59B1],
+ ["CC50",0x59BD],
+ ["CC51",0x59C0],
+ ["CC52",0x59C8],
+ ["CC53",0x59B4],
+ ["CC54",0x59C7],
+ ["CC55",0x5B62],
+ ["CC56",0x5B65],
+ ["CC57",0x5B93],
+ ["CC58",0x5B95],
+ ["CC59",0x5C44],
+ ["CC5A",0x5C47],
+ ["CC5B",0x5CAE],
+ ["CC5C",0x5CA4],
+ ["CC5D",0x5CA0],
+ ["CC5E",0x5CB5],
+ ["CC5F",0x5CAF],
+ ["CC60",0x5CA8],
+ ["CC61",0x5CAC],
+ ["CC62",0x5C9F],
+ ["CC63",0x5CA3],
+ ["CC64",0x5CAD],
+ ["CC65",0x5CA2],
+ ["CC66",0x5CAA],
+ ["CC67",0x5CA7],
+ ["CC68",0x5C9D],
+ ["CC69",0x5CA5],
+ ["CC6A",0x5CB6],
+ ["CC6B",0x5CB0],
+ ["CC6C",0x5CA6],
+ ["CC6D",0x5E17],
+ ["CC6E",0x5E14],
+ ["CC6F",0x5E19],
+ ["CC70",0x5F28],
+ ["CC71",0x5F22],
+ ["CC72",0x5F23],
+ ["CC73",0x5F24],
+ ["CC74",0x5F54],
+ ["CC75",0x5F82],
+ ["CC76",0x5F7E],
+ ["CC77",0x5F7D],
+ ["CC78",0x5FDE],
+ ["CC79",0x5FE5],
+ ["CC7A",0x602D],
+ ["CC7B",0x6026],
+ ["CC7C",0x6019],
+ ["CC7D",0x6032],
+ ["CC7E",0x600B],
+ ["CCA1",0x6034],
+ ["CCA2",0x600A],
+ ["CCA3",0x6017],
+ ["CCA4",0x6033],
+ ["CCA5",0x601A],
+ ["CCA6",0x601E],
+ ["CCA7",0x602C],
+ ["CCA8",0x6022],
+ ["CCA9",0x600D],
+ ["CCAA",0x6010],
+ ["CCAB",0x602E],
+ ["CCAC",0x6013],
+ ["CCAD",0x6011],
+ ["CCAE",0x600C],
+ ["CCAF",0x6009],
+ ["CCB0",0x601C],
+ ["CCB1",0x6214],
+ ["CCB2",0x623D],
+ ["CCB3",0x62AD],
+ ["CCB4",0x62B4],
+ ["CCB5",0x62D1],
+ ["CCB6",0x62BE],
+ ["CCB7",0x62AA],
+ ["CCB8",0x62B6],
+ ["CCB9",0x62CA],
+ ["CCBA",0x62AE],
+ ["CCBB",0x62B3],
+ ["CCBC",0x62AF],
+ ["CCBD",0x62BB],
+ ["CCBE",0x62A9],
+ ["CCBF",0x62B0],
+ ["CCC0",0x62B8],
+ ["CCC1",0x653D],
+ ["CCC2",0x65A8],
+ ["CCC3",0x65BB],
+ ["CCC4",0x6609],
+ ["CCC5",0x65FC],
+ ["CCC6",0x6604],
+ ["CCC7",0x6612],
+ ["CCC8",0x6608],
+ ["CCC9",0x65FB],
+ ["CCCA",0x6603],
+ ["CCCB",0x660B],
+ ["CCCC",0x660D],
+ ["CCCD",0x6605],
+ ["CCCE",0x65FD],
+ ["CCCF",0x6611],
+ ["CCD0",0x6610],
+ ["CCD1",0x66F6],
+ ["CCD2",0x670A],
+ ["CCD3",0x6785],
+ ["CCD4",0x676C],
+ ["CCD5",0x678E],
+ ["CCD6",0x6792],
+ ["CCD7",0x6776],
+ ["CCD8",0x677B],
+ ["CCD9",0x6798],
+ ["CCDA",0x6786],
+ ["CCDB",0x6784],
+ ["CCDC",0x6774],
+ ["CCDD",0x678D],
+ ["CCDE",0x678C],
+ ["CCDF",0x677A],
+ ["CCE0",0x679F],
+ ["CCE1",0x6791],
+ ["CCE2",0x6799],
+ ["CCE3",0x6783],
+ ["CCE4",0x677D],
+ ["CCE5",0x6781],
+ ["CCE6",0x6778],
+ ["CCE7",0x6779],
+ ["CCE8",0x6794],
+ ["CCE9",0x6B25],
+ ["CCEA",0x6B80],
+ ["CCEB",0x6B7E],
+ ["CCEC",0x6BDE],
+ ["CCED",0x6C1D],
+ ["CCEE",0x6C93],
+ ["CCEF",0x6CEC],
+ ["CCF0",0x6CEB],
+ ["CCF1",0x6CEE],
+ ["CCF2",0x6CD9],
+ ["CCF3",0x6CB6],
+ ["CCF4",0x6CD4],
+ ["CCF5",0x6CAD],
+ ["CCF6",0x6CE7],
+ ["CCF7",0x6CB7],
+ ["CCF8",0x6CD0],
+ ["CCF9",0x6CC2],
+ ["CCFA",0x6CBA],
+ ["CCFB",0x6CC3],
+ ["CCFC",0x6CC6],
+ ["CCFD",0x6CED],
+ ["CCFE",0x6CF2],
+ ["CD40",0x6CD2],
+ ["CD41",0x6CDD],
+ ["CD42",0x6CB4],
+ ["CD43",0x6C8A],
+ ["CD44",0x6C9D],
+ ["CD45",0x6C80],
+ ["CD46",0x6CDE],
+ ["CD47",0x6CC0],
+ ["CD48",0x6D30],
+ ["CD49",0x6CCD],
+ ["CD4A",0x6CC7],
+ ["CD4B",0x6CB0],
+ ["CD4C",0x6CF9],
+ ["CD4D",0x6CCF],
+ ["CD4E",0x6CE9],
+ ["CD4F",0x6CD1],
+ ["CD50",0x7094],
+ ["CD51",0x7098],
["CD52",0x7085],
+ ["CD53",0x7093],
["CD54",0x7086],
- ["AAA4",0x708A],
- ["AAA2",0x708E],
+ ["CD55",0x7084],
["CD56",0x7091],
- ["AAA3",0x7092],
- ["CD53",0x7093],
- ["CD50",0x7094],
- ["AAA1",0x7095],
["CD57",0x7096],
- ["CD51",0x7098],
- ["AAA5",0x7099],
+ ["CD58",0x7082],
["CD59",0x709A],
+ ["CD5A",0x7083],
+ ["CD5B",0x726A],
+ ["CD5C",0x72D6],
+ ["CD5D",0x72CB],
+ ["CD5E",0x72D8],
+ ["CD5F",0x72C9],
+ ["CD60",0x72DC],
+ ["CD61",0x72D2],
+ ["CD62",0x72D4],
+ ["CD63",0x72DA],
+ ["CD64",0x72CC],
+ ["CD65",0x72D1],
+ ["CD66",0x73A4],
+ ["CD67",0x73A1],
+ ["CD68",0x73AD],
+ ["CD69",0x73A6],
+ ["CD6A",0x73A2],
+ ["CD6B",0x73A0],
+ ["CD6C",0x73AC],
+ ["CD6D",0x739D],
+ ["CD6E",0x74DD],
+ ["CD6F",0x74E8],
+ ["CD70",0x753F],
+ ["CD71",0x7540],
+ ["CD72",0x753E],
+ ["CD73",0x758C],
+ ["CD74",0x7598],
+ ["CD75",0x76AF],
+ ["CD76",0x76F3],
+ ["CD77",0x76F1],
+ ["CD78",0x76F0],
+ ["CD79",0x76F5],
+ ["CD7A",0x77F8],
+ ["CD7B",0x77FC],
+ ["CD7C",0x77F9],
+ ["CD7D",0x77FB],
+ ["CD7E",0x77FA],
+ ["CDA1",0x77F7],
+ ["CDA2",0x7942],
+ ["CDA3",0x793F],
+ ["CDA4",0x79C5],
+ ["CDA5",0x7A78],
+ ["CDA6",0x7A7B],
+ ["CDA7",0x7AFB],
+ ["CDA8",0x7C75],
+ ["CDA9",0x7CFD],
+ ["CDAA",0x8035],
+ ["CDAB",0x808F],
+ ["CDAC",0x80AE],
+ ["CDAD",0x80A3],
+ ["CDAE",0x80B8],
+ ["CDAF",0x80B5],
+ ["CDB0",0x80AD],
+ ["CDB1",0x8220],
+ ["CDB2",0x82A0],
+ ["CDB3",0x82C0],
+ ["CDB4",0x82AB],
+ ["CDB5",0x829A],
+ ["CDB6",0x8298],
+ ["CDB7",0x829B],
+ ["CDB8",0x82B5],
+ ["CDB9",0x82A7],
+ ["CDBA",0x82AE],
+ ["CDBB",0x82BC],
+ ["CDBC",0x829E],
+ ["CDBD",0x82BA],
+ ["CDBE",0x82B4],
+ ["CDBF",0x82A8],
+ ["CDC0",0x82A1],
+ ["CDC1",0x82A9],
+ ["CDC2",0x82C2],
+ ["CDC3",0x82A4],
+ ["CDC4",0x82C3],
+ ["CDC5",0x82B6],
+ ["CDC6",0x82A2],
+ ["CDC7",0x8670],
+ ["CDC8",0x866F],
+ ["CDC9",0x866D],
+ ["CDCA",0x866E],
+ ["CDCB",0x8C56],
+ ["CDCC",0x8FD2],
+ ["CDCD",0x8FCB],
+ ["CDCE",0x8FD3],
+ ["CDCF",0x8FCD],
+ ["CDD0",0x8FD6],
+ ["CDD1",0x8FD5],
+ ["CDD2",0x8FD7],
+ ["CDD3",0x90B2],
+ ["CDD4",0x90B4],
+ ["CDD5",0x90AF],
+ ["CDD6",0x90B3],
+ ["CDD7",0x90B0],
+ ["CDD8",0x9639],
+ ["CDD9",0x963D],
+ ["CDDA",0x963C],
+ ["CDDB",0x963A],
+ ["CDDC",0x9643],
+ ["CDDD",0x4FCD],
+ ["CDDE",0x4FC5],
+ ["CDDF",0x4FD3],
+ ["CDE0",0x4FB2],
+ ["CDE1",0x4FC9],
+ ["CDE2",0x4FCB],
+ ["CDE3",0x4FC1],
+ ["CDE4",0x4FD4],
+ ["CDE5",0x4FDC],
+ ["CDE6",0x4FD9],
+ ["CDE7",0x4FBB],
+ ["CDE8",0x4FB3],
+ ["CDE9",0x4FDB],
+ ["CDEA",0x4FC7],
+ ["CDEB",0x4FD6],
+ ["CDEC",0x4FBA],
+ ["CDED",0x4FC0],
+ ["CDEE",0x4FB9],
+ ["CDEF",0x4FEC],
+ ["CDF0",0x5244],
+ ["CDF1",0x5249],
+ ["CDF2",0x52C0],
+ ["CDF3",0x52C2],
+ ["CDF4",0x533D],
+ ["CDF5",0x537C],
+ ["CDF6",0x5397],
+ ["CDF7",0x5396],
+ ["CDF8",0x5399],
+ ["CDF9",0x5398],
+ ["CDFA",0x54BA],
+ ["CDFB",0x54A1],
+ ["CDFC",0x54AD],
+ ["CDFD",0x54A5],
+ ["CDFE",0x54CF],
+ ["CE40",0x54C3],
+ ["CE41",0x830D],
+ ["CE42",0x54B7],
+ ["CE43",0x54AE],
+ ["CE44",0x54D6],
+ ["CE45",0x54B6],
+ ["CE46",0x54C5],
+ ["CE47",0x54C6],
+ ["CE48",0x54A0],
+ ["CE49",0x5470],
+ ["CE4A",0x54BC],
+ ["CE4B",0x54A2],
+ ["CE4C",0x54BE],
+ ["CE4D",0x5472],
+ ["CE4E",0x54DE],
+ ["CE4F",0x54B0],
+ ["CE50",0x57B5],
+ ["CE51",0x579E],
+ ["CE52",0x579F],
+ ["CE53",0x57A4],
+ ["CE54",0x578C],
+ ["CE55",0x5797],
+ ["CE56",0x579D],
+ ["CE57",0x579B],
+ ["CE58",0x5794],
+ ["CE59",0x5798],
+ ["CE5A",0x578F],
+ ["CE5B",0x5799],
+ ["CE5C",0x57A5],
+ ["CE5D",0x579A],
+ ["CE5E",0x5795],
+ ["CE5F",0x58F4],
+ ["CE60",0x590D],
+ ["CE61",0x5953],
+ ["CE62",0x59E1],
+ ["CE63",0x59DE],
+ ["CE64",0x59EE],
+ ["CE65",0x5A00],
+ ["CE66",0x59F1],
+ ["CE67",0x59DD],
+ ["CE68",0x59FA],
+ ["CE69",0x59FD],
+ ["CE6A",0x59FC],
+ ["CE6B",0x59F6],
+ ["CE6C",0x59E4],
+ ["CE6D",0x59F2],
+ ["CE6E",0x59F7],
+ ["CE6F",0x59DB],
+ ["CE70",0x59E9],
+ ["CE71",0x59F3],
+ ["CE72",0x59F5],
+ ["CE73",0x59E0],
+ ["CE74",0x59FE],
+ ["CE75",0x59F4],
+ ["CE76",0x59ED],
+ ["CE77",0x5BA8],
+ ["CE78",0x5C4C],
+ ["CE79",0x5CD0],
+ ["CE7A",0x5CD8],
+ ["CE7B",0x5CCC],
+ ["CE7C",0x5CD7],
+ ["CE7D",0x5CCB],
+ ["CE7E",0x5CDB],
+ ["CEA1",0x5CDE],
+ ["CEA2",0x5CDA],
+ ["CEA3",0x5CC9],
+ ["CEA4",0x5CC7],
+ ["CEA5",0x5CCA],
+ ["CEA6",0x5CD6],
+ ["CEA7",0x5CD3],
+ ["CEA8",0x5CD4],
+ ["CEA9",0x5CCF],
+ ["CEAA",0x5CC8],
+ ["CEAB",0x5CC6],
+ ["CEAC",0x5CCE],
+ ["CEAD",0x5CDF],
+ ["CEAE",0x5CF8],
+ ["CEAF",0x5DF9],
+ ["CEB0",0x5E21],
+ ["CEB1",0x5E22],
+ ["CEB2",0x5E23],
+ ["CEB3",0x5E20],
+ ["CEB4",0x5E24],
+ ["CEB5",0x5EB0],
+ ["CEB6",0x5EA4],
+ ["CEB7",0x5EA2],
+ ["CEB8",0x5E9B],
+ ["CEB9",0x5EA3],
+ ["CEBA",0x5EA5],
+ ["CEBB",0x5F07],
+ ["CEBC",0x5F2E],
+ ["CEBD",0x5F56],
+ ["CEBE",0x5F86],
+ ["CEBF",0x6037],
+ ["CEC0",0x6039],
+ ["CEC1",0x6054],
+ ["CEC2",0x6072],
+ ["CEC3",0x605E],
+ ["CEC4",0x6045],
+ ["CEC5",0x6053],
+ ["CEC6",0x6047],
+ ["CEC7",0x6049],
+ ["CEC8",0x605B],
+ ["CEC9",0x604C],
+ ["CECA",0x6040],
+ ["CECB",0x6042],
+ ["CECC",0x605F],
+ ["CECD",0x6024],
+ ["CECE",0x6044],
+ ["CECF",0x6058],
+ ["CED0",0x6066],
+ ["CED1",0x606E],
+ ["CED2",0x6242],
+ ["CED3",0x6243],
+ ["CED4",0x62CF],
+ ["CED5",0x630D],
+ ["CED6",0x630B],
+ ["CED7",0x62F5],
+ ["CED8",0x630E],
+ ["CED9",0x6303],
+ ["CEDA",0x62EB],
+ ["CEDB",0x62F9],
+ ["CEDC",0x630F],
+ ["CEDD",0x630C],
+ ["CEDE",0x62F8],
+ ["CEDF",0x62F6],
+ ["CEE0",0x6300],
+ ["CEE1",0x6313],
+ ["CEE2",0x6314],
+ ["CEE3",0x62FA],
+ ["CEE4",0x6315],
+ ["CEE5",0x62FB],
+ ["CEE6",0x62F0],
+ ["CEE7",0x6541],
+ ["CEE8",0x6543],
+ ["CEE9",0x65AA],
+ ["CEEA",0x65BF],
+ ["CEEB",0x6636],
+ ["CEEC",0x6621],
+ ["CEED",0x6632],
+ ["CEEE",0x6635],
+ ["CEEF",0x661C],
+ ["CEF0",0x6626],
+ ["CEF1",0x6622],
+ ["CEF2",0x6633],
+ ["CEF3",0x662B],
+ ["CEF4",0x663A],
+ ["CEF5",0x661D],
+ ["CEF6",0x6634],
+ ["CEF7",0x6639],
+ ["CEF8",0x662E],
+ ["CEF9",0x670F],
+ ["CEFA",0x6710],
+ ["CEFB",0x67C1],
+ ["CEFC",0x67F2],
+ ["CEFD",0x67C8],
+ ["CEFE",0x67BA],
+ ["CF40",0x67DC],
+ ["CF41",0x67BB],
+ ["CF42",0x67F8],
+ ["CF43",0x67D8],
+ ["CF44",0x67C0],
+ ["CF45",0x67B7],
+ ["CF46",0x67C5],
+ ["CF47",0x67EB],
+ ["CF48",0x67E4],
+ ["CF49",0x67DF],
+ ["CF4A",0x67B5],
+ ["CF4B",0x67CD],
+ ["CF4C",0x67B3],
+ ["CF4D",0x67F7],
+ ["CF4E",0x67F6],
+ ["CF4F",0x67EE],
+ ["CF50",0x67E3],
+ ["CF51",0x67C2],
+ ["CF52",0x67B9],
+ ["CF53",0x67CE],
+ ["CF54",0x67E7],
+ ["CF55",0x67F0],
+ ["CF56",0x67B2],
+ ["CF57",0x67FC],
+ ["CF58",0x67C6],
+ ["CF59",0x67ED],
+ ["CF5A",0x67CC],
+ ["CF5B",0x67AE],
+ ["CF5C",0x67E6],
+ ["CF5D",0x67DB],
+ ["CF5E",0x67FA],
+ ["CF5F",0x67C9],
+ ["CF60",0x67CA],
+ ["CF61",0x67C3],
+ ["CF62",0x67EA],
+ ["CF63",0x67CB],
+ ["CF64",0x6B28],
+ ["CF65",0x6B82],
+ ["CF66",0x6B84],
+ ["CF67",0x6BB6],
+ ["CF68",0x6BD6],
+ ["CF69",0x6BD8],
+ ["CF6A",0x6BE0],
+ ["CF6B",0x6C20],
+ ["CF6C",0x6C21],
+ ["CF6D",0x6D28],
+ ["CF6E",0x6D34],
+ ["CF6F",0x6D2D],
+ ["CF70",0x6D1F],
+ ["CF71",0x6D3C],
+ ["CF72",0x6D3F],
+ ["CF73",0x6D12],
+ ["CF74",0x6D0A],
+ ["CF75",0x6CDA],
+ ["CF76",0x6D33],
+ ["CF77",0x6D04],
+ ["CF78",0x6D19],
+ ["CF79",0x6D3A],
+ ["CF7A",0x6D1A],
+ ["CF7B",0x6D11],
+ ["CF7C",0x6D00],
+ ["CF7D",0x6D1D],
+ ["CF7E",0x6D42],
+ ["CFA1",0x6D01],
+ ["CFA2",0x6D18],
+ ["CFA3",0x6D37],
+ ["CFA4",0x6D03],
+ ["CFA5",0x6D0F],
+ ["CFA6",0x6D40],
+ ["CFA7",0x6D07],
+ ["CFA8",0x6D20],
+ ["CFA9",0x6D2C],
+ ["CFAA",0x6D08],
+ ["CFAB",0x6D22],
+ ["CFAC",0x6D09],
+ ["CFAD",0x6D10],
+ ["CFAE",0x70B7],
["CFAF",0x709F],
- ["CFB3",0x70A1],
- ["ACB7",0x70A4],
- ["CFB6",0x70A9],
- ["ACAF",0x70AB],
- ["ACB2",0x70AC],
- ["ACB4",0x70AD],
- ["ACB6",0x70AE],
- ["ACB3",0x70AF],
- ["CFB2",0x70B0],
+ ["CFB0",0x70BE],
["CFB1",0x70B1],
- ["ACB1",0x70B3],
+ ["CFB2",0x70B0],
+ ["CFB3",0x70A1],
["CFB4",0x70B4],
["CFB5",0x70B5],
- ["CFAE",0x70B7],
- ["ACB5",0x70B8],
- ["ACB0",0x70BA],
- ["CFB0",0x70BE],
- ["D277",0x70C5],
- ["D278",0x70C6],
- ["D279",0x70C7],
- ["AF50",0x70C8],
- ["AF4C",0x70CA],
- ["D26E",0x70CB],
- ["D276",0x70CD],
- ["D27B",0x70CE],
- ["AF51",0x70CF],
- ["D26C",0x70D1],
- ["D272",0x70D2],
- ["D26B",0x70D3],
- ["D275",0x70D4],
- ["D271",0x70D7],
- ["AF4D",0x70D8],
- ["AF4F",0x70D9],
- ["D27A",0x70DA],
- ["D26A",0x70DC],
- ["D26D",0x70DD],
- ["D273",0x70DE],
- ["D274",0x70E0],
- ["D27C",0x70E1],
- ["D270",0x70E2],
- ["AF4E",0x70E4],
- ["B26D",0x70EF],
- ["D64E",0x70F0],
- ["D650",0x70F3],
- ["D64C",0x70F4],
- ["D658",0x70F6],
- ["D64A",0x70F7],
- ["D657",0x70F8],
- ["B269",0x70F9],
- ["D648",0x70FA],
- ["DA5B",0x70FB],
- ["D652",0x70FC],
- ["B26C",0x70FD],
- ["D653",0x70FF],
- ["D656",0x7100],
- ["D65A",0x7102],
- ["D64F",0x7104],
- ["D654",0x7106],
- ["B26A",0x7109],
- ["B26B",0x710A],
- ["D659",0x710B],
- ["D64D",0x710C],
- ["D649",0x710D],
- ["D65B",0x710E],
- ["D651",0x7110],
- ["D655",0x7113],
- ["D64B",0x7117],
- ["B548",0x7119],
- ["B549",0x711A],
- ["DA65",0x711B],
- ["B54F",0x711C],
- ["DA59",0x711E],
- ["DA62",0x711F],
- ["DA58",0x7120],
- ["B54C",0x7121],
- ["DA60",0x7122],
- ["DA5E",0x7123],
- ["DA5F",0x7125],
- ["B54A",0x7126],
- ["DA63",0x7128],
- ["DA5C",0x712E],
- ["DA5A",0x712F],
- ["B54B",0x7130],
- ["DA5D",0x7131],
- ["DA61",0x7132],
- ["B54D",0x7136],
- ["DA64",0x713A],
- ["DE70",0x7141],
- ["DE77",0x7142],
- ["DE79",0x7143],
- ["DEA1",0x7144],
- ["B7DA",0x7146],
- ["DE6B",0x7147],
- ["B7D2",0x7149],
- ["DE7A",0x714B],
- ["B7D7",0x714C],
- ["DEA2",0x714D],
- ["B7CE",0x714E],
- ["DE7D",0x7150],
- ["DE6D",0x7152],
- ["DE7E",0x7153],
- ["DE6C",0x7154],
- ["B7DC",0x7156],
- ["DE78",0x7158],
- ["B7CF",0x7159],
- ["DEA3",0x715A],
- ["B7D4",0x715C],
- ["DE71",0x715D],
- ["B7D9",0x715E],
- ["DE7C",0x715F],
- ["DE6F",0x7160],
- ["DE76",0x7161],
- ["DE72",0x7162],
- ["DE6E",0x7163],
- ["B7D1",0x7164],
- ["B7D8",0x7165],
- ["B7D6",0x7166],
- ["B7D3",0x7167],
- ["B7DB",0x7168],
- ["B7D0",0x7169],
- ["DE75",0x716A],
- ["B7D5",0x716C],
- ["B54E",0x716E],
- ["DE7B",0x7170],
- ["DE73",0x7172],
- ["DE74",0x7178],
- ["E2C1",0x717B],
- ["BAB4",0x717D],
- ["E2BD",0x7180],
- ["E2C3",0x7181],
- ["E2BF",0x7182],
- ["BAB6",0x7184],
- ["E2BE",0x7185],
- ["E2C2",0x7186],
- ["E2BA",0x7187],
- ["E2BC",0x7189],
- ["BAB5",0x718A],
- ["E2C0",0x718F],
- ["E2BB",0x7190],
- ["BAB7",0x7192],
- ["BAB2",0x7194],
- ["E2C4",0x7197],
- ["BAB3",0x7199],
- ["E667",0x719A],
- ["E664",0x719B],
- ["E670",0x719C],
- ["E66A",0x719D],
- ["E66C",0x719E],
- ["BCF4",0x719F],
- ["E666",0x71A0],
- ["E66E",0x71A1],
- ["E66D",0x71A4],
- ["E66B",0x71A5],
- ["E671",0x71A7],
- ["BCF7",0x71A8],
- ["E668",0x71A9],
- ["E66F",0x71AA],
- ["BCF5",0x71AC],
- ["E663",0x71AF],
- ["E665",0x71B0],
- ["BCF6",0x71B1],
- ["E662",0x71B2],
- ["E672",0x71B3],
- ["E669",0x71B5],
- ["EA4A",0x71B8],
- ["BF51",0x71B9],
- ["EA55",0x71BC],
- ["EA53",0x71BD],
- ["BF4B",0x71BE],
- ["EA49",0x71BF],
- ["EA4C",0x71C0],
- ["EA4D",0x71C1],
- ["EA48",0x71C2],
- ["BF55",0x71C3],
- ["BF56",0x71C4],
- ["EA47",0x71C5],
- ["EA56",0x71C6],
- ["EA51",0x71C7],
- ["BF4F",0x71C8],
- ["BF4C",0x71C9],
- ["EA50",0x71CA],
- ["EA4E",0x71CB],
- ["BF52",0x71CE],
- ["EA52",0x71CF],
- ["BF4D",0x71D0],
- ["BF4E",0x71D2],
- ["EA4F",0x71D4],
- ["BF50",0x71D5],
- ["EA4B",0x71D6],
- ["EA54",0x71D8],
- ["BF53",0x71D9],
- ["EA57",0x71DA],
- ["EA58",0x71DB],
- ["BF54",0x71DC],
- ["C0E7",0x71DF],
- ["C0EE",0x71E0],
- ["ED5C",0x71E1],
- ["ED62",0x71E2],
- ["ED60",0x71E4],
- ["C0EA",0x71E5],
- ["C0E9",0x71E6],
- ["C0E6",0x71E7],
- ["ED5E",0x71E8],
- ["C0EC",0x71EC],
- ["C0EB",0x71ED],
- ["C0E8",0x71EE],
- ["ED61",0x71F0],
- ["ED5D",0x71F1],
- ["ED5F",0x71F2],
- ["C0ED",0x71F4],
- ["C277",0x71F8],
- ["EFFB",0x71F9],
- ["C274",0x71FB],
- ["C275",0x71FC],
- ["EFFD",0x71FD],
- ["C276",0x71FE],
- ["EFFA",0x71FF],
- ["EFF9",0x7201],
- ["F26C",0x7202],
- ["EFFC",0x7203],
- ["F26D",0x7205],
- ["C37A",0x7206],
- ["F26B",0x7207],
- ["F26A",0x720A],
- ["F269",0x720C],
- ["C37B",0x720D],
- ["C46C",0x7210],
- ["F46A",0x7213],
- ["F46B",0x7214],
- ["F5DC",0x7219],
- ["F5DB",0x721A],
- ["C4EA",0x721B],
- ["F5DA",0x721D],
- ["F6EC",0x721E],
- ["F6ED",0x721F],
- ["F7E6",0x7222],
- ["F8B1",0x7223],
- ["F8F6",0x7226],
- ["F9BC",0x7227],
- ["C679",0x7228],
- ["F9C6",0x7229],
- ["A4F6",0x722A],
- ["AAA6",0x722C],
- ["AAA7",0x722D],
- ["ACB8",0x7230],
- ["C0EF",0x7235],
- ["A4F7",0x7236],
- ["AAA8",0x7238],
- ["AF52",0x7239],
- ["B7DD",0x723A],
- ["A4F8",0x723B],
- ["B26E",0x723D],
- ["BAB8",0x723E],
- ["C962",0x723F],
+ ["CFB6",0x70A9],
["CFB7",0x7241],
- ["D27D",0x7242],
- ["E2C5",0x7244],
- ["C0F0",0x7246],
- ["A4F9",0x7247],
- ["AAA9",0x7248],
["CFB8",0x7249],
["CFB9",0x724A],
- ["DA66",0x724B],
- ["B550",0x724C],
- ["DEA4",0x724F],
- ["B7DE",0x7252],
- ["E2C6",0x7253],
- ["BCF8",0x7256],
- ["C37C",0x7258],
- ["A4FA",0x7259],
- ["DA67",0x725A],
- ["A4FB",0x725B],
- ["A6C9",0x725D],
- ["CA42",0x725E],
- ["A6C8",0x725F],
- ["A865",0x7260],
- ["A864",0x7261],
- ["A863",0x7262],
- ["CB60",0x7263],
- ["AAAA",0x7267],
- ["AAAB",0x7269],
- ["CD5B",0x726A],
["CFBA",0x726C],
- ["CFBD",0x726E],
- ["ACBA",0x726F],
["CFBB",0x7270],
- ["ACB9",0x7272],
["CFBC",0x7273],
- ["ACBB",0x7274],
- ["D2A2",0x7276],
- ["D2A1",0x7277],
- ["D27E",0x7278],
- ["AF53",0x7279],
- ["D65D",0x727B],
- ["D65E",0x727C],
- ["B26F",0x727D],
- ["D65C",0x727E],
- ["D65F",0x727F],
- ["B552",0x7280],
- ["B270",0x7281],
- ["B551",0x7284],
- ["DA6B",0x7285],
- ["DA6A",0x7286],
- ["DA68",0x7288],
- ["DA69",0x7289],
- ["DA6C",0x728B],
- ["DEA6",0x728C],
- ["DEA5",0x728D],
- ["DEA9",0x728E],
- ["DEA8",0x7290],
- ["DEA7",0x7291],
- ["BAB9",0x7292],
- ["E2C9",0x7293],
- ["E2C8",0x7295],
- ["BABA",0x7296],
- ["E2C7",0x7297],
- ["E673",0x7298],
- ["E674",0x729A],
- ["BCF9",0x729B],
- ["EA59",0x729D],
- ["EA5A",0x729E],
- ["F272",0x72A1],
- ["C37D",0x72A2],
- ["F271",0x72A3],
- ["F270",0x72A4],
- ["F26E",0x72A5],
- ["F26F",0x72A6],
- ["C4EB",0x72A7],
- ["F46C",0x72A8],
- ["F6EE",0x72A9],
- ["F8F7",0x72AA],
- ["A4FC",0x72AC],
- ["C9A5",0x72AE],
- ["A5C7",0x72AF],
- ["C9A6",0x72B0],
- ["CA43",0x72B4],
- ["CA44",0x72B5],
- ["CB66",0x72BA],
- ["CB62",0x72BD],
- ["CB61",0x72BF],
- ["AAAC",0x72C0],
- ["CB65",0x72C1],
- ["A867",0x72C2],
- ["CB63",0x72C3],
- ["A866",0x72C4],
- ["CB67",0x72C5],
- ["CB64",0x72C6],
- ["CD5F",0x72C9],
+ ["CFBD",0x726E],
["CFBE",0x72CA],
- ["CD5D",0x72CB],
- ["CD64",0x72CC],
- ["AAAD",0x72CE],
- ["AAB0",0x72D0],
- ["CD65",0x72D1],
- ["CD61",0x72D2],
- ["CD62",0x72D4],
- ["CD5C",0x72D6],
- ["AAAF",0x72D7],
- ["CD5E",0x72D8],
- ["AAAE",0x72D9],
- ["CD63",0x72DA],
- ["CD60",0x72DC],
- ["CFC2",0x72DF],
- ["ACBD",0x72E0],
- ["ACBE",0x72E1],
- ["CFC5",0x72E3],
["CFBF",0x72E4],
- ["CFC4",0x72E6],
["CFC0",0x72E8],
- ["ACBC",0x72E9],
- ["CFC3",0x72EA],
["CFC1",0x72EB],
- ["D2A8",0x72F3],
- ["D2A5",0x72F4],
- ["D2A7",0x72F6],
- ["AF58",0x72F7],
- ["AF57",0x72F8],
- ["AF55",0x72F9],
- ["D2A4",0x72FA],
- ["D2A9",0x72FB],
- ["AF54",0x72FC],
- ["AF56",0x72FD],
- ["D2A6",0x72FE],
- ["D667",0x72FF],
- ["D2A3",0x7300],
- ["D2AA",0x7301],
- ["D662",0x7307],
- ["D666",0x7308],
- ["D665",0x730A],
- ["DA6E",0x730B],
- ["DA79",0x730C],
- ["D668",0x730F],
- ["D663",0x7311],
- ["DA6D",0x7312],
- ["B274",0x7313],
- ["B273",0x7316],
- ["D661",0x7317],
- ["D664",0x7318],
- ["B275",0x7319],
- ["B272",0x731B],
- ["B271",0x731C],
- ["D660",0x731D],
- ["D669",0x731E],
- ["DA70",0x7322],
- ["DA77",0x7323],
- ["B554",0x7325],
- ["DA76",0x7326],
- ["DA73",0x7327],
- ["B556",0x7329],
- ["DA75",0x732D],
- ["DA6F",0x7330],
- ["DA71",0x7331],
- ["DA74",0x7332],
- ["DA72",0x7333],
- ["B555",0x7334],
- ["DA78",0x7335],
- ["B553",0x7336],
- ["B7DF",0x7337],
- ["DEAD",0x733A],
- ["DEAC",0x733B],
- ["DEAA",0x733C],
- ["B7E2",0x733E],
- ["B7E1",0x733F],
- ["DEAE",0x7340],
- ["DEAB",0x7342],
- ["E2CA",0x7343],
- ["BABB",0x7344],
- ["B7E0",0x7345],
- ["DEB0",0x7349],
- ["DEAF",0x734A],
- ["E2CD",0x734C],
- ["E2CB",0x734D],
- ["BCFA",0x734E],
- ["BABC",0x7350],
- ["E2CC",0x7351],
- ["E676",0x7352],
- ["BCFB",0x7357],
- ["E675",0x7358],
- ["E67E",0x7359],
- ["E67D",0x735A],
- ["E67B",0x735B],
- ["E67A",0x735D],
- ["E677",0x735E],
- ["E678",0x735F],
- ["E679",0x7360],
- ["E67C",0x7361],
- ["E6A1",0x7362],
- ["EA5F",0x7365],
- ["EA5C",0x7366],
- ["EA5D",0x7367],
- ["BF57",0x7368],
- ["EA5B",0x7369],
- ["EA61",0x736A],
- ["EA60",0x736B],
- ["EA5E",0x736C],
- ["ED64",0x736E],
- ["ED65",0x736F],
- ["C0F1",0x7370],
- ["C0F2",0x7372],
- ["ED63",0x7373],
- ["C279",0x7375],
- ["EFFE",0x7376],
- ["C278",0x7377],
- ["C37E",0x7378],
- ["C3A1",0x737A],
- ["C46D",0x737B],
- ["F46E",0x737C],
- ["F46D",0x737D],
- ["F5DD",0x737E],
- ["F6EF",0x737F],
- ["C57A",0x7380],
- ["F7E8",0x7381],
- ["F7E7",0x7382],
- ["F7E9",0x7383],
- ["A5C8",0x7384],
+ ["CFC2",0x72DF],
+ ["CFC3",0x72EA],
+ ["CFC4",0x72E6],
+ ["CFC5",0x72E3],
["CFC6",0x7385],
- ["AF59",0x7386],
- ["B276",0x7387],
- ["D66A",0x7388],
- ["A5C9",0x7389],
- ["C9A7",0x738A],
- ["A4FD",0x738B],
- ["CA45",0x738E],
- ["CB6C",0x7392],
- ["CB6A",0x7393],
- ["CB6B",0x7394],
- ["CB68",0x7395],
- ["A868",0x7396],
- ["CB69",0x7397],
- ["CD6D",0x739D],
- ["AAB3",0x739F],
- ["CD6B",0x73A0],
- ["CD67",0x73A1],
- ["CD6A",0x73A2],
- ["CD66",0x73A4],
- ["AAB5",0x73A5],
- ["CD69",0x73A6],
- ["AAB2",0x73A8],
- ["AAB1",0x73A9],
- ["AAB4",0x73AB],
- ["CD6C",0x73AC],
- ["CD68",0x73AD],
- ["ACC2",0x73B2],
- ["ACC5",0x73B3],
- ["CFCE",0x73B4],
- ["CFCD",0x73B5],
- ["CFCC",0x73B6],
- ["ACBF",0x73B7],
- ["CFD5",0x73B8],
+ ["CFC7",0x73CC],
+ ["CFC8",0x73C2],
+ ["CFC9",0x73C8],
+ ["CFCA",0x73C5],
["CFCB",0x73B9],
- ["ACC1",0x73BB],
- ["D2AF",0x73BC],
- ["CFD2",0x73BE],
+ ["CFCC",0x73B6],
+ ["CFCD",0x73B5],
+ ["CFCE",0x73B4],
+ ["CFCF",0x73EB],
["CFD0",0x73BF],
- ["ACC4",0x73C0],
- ["CFC8",0x73C2],
+ ["CFD1",0x73C7],
+ ["CFD2",0x73BE],
["CFD3",0x73C3],
- ["CFCA",0x73C5],
["CFD4",0x73C6],
- ["CFD1",0x73C7],
- ["CFC9",0x73C8],
- ["ACC0",0x73CA],
+ ["CFD5",0x73B8],
["CFD6",0x73CB],
- ["CFC7",0x73CC],
- ["ACC3",0x73CD],
- ["D2B4",0x73D2],
+ ["CFD7",0x74EC],
+ ["CFD8",0x74EE],
+ ["CFD9",0x752E],
+ ["CFDA",0x7547],
+ ["CFDB",0x7548],
+ ["CFDC",0x75A7],
+ ["CFDD",0x75AA],
+ ["CFDE",0x7679],
+ ["CFDF",0x76C4],
+ ["CFE0",0x7708],
+ ["CFE1",0x7703],
+ ["CFE2",0x7704],
+ ["CFE3",0x7705],
+ ["CFE4",0x770A],
+ ["CFE5",0x76F7],
+ ["CFE6",0x76FB],
+ ["CFE7",0x76FA],
+ ["CFE8",0x77E7],
+ ["CFE9",0x77E8],
+ ["CFEA",0x7806],
+ ["CFEB",0x7811],
+ ["CFEC",0x7812],
+ ["CFED",0x7805],
+ ["CFEE",0x7810],
+ ["CFEF",0x780F],
+ ["CFF0",0x780E],
+ ["CFF1",0x7809],
+ ["CFF2",0x7803],
+ ["CFF3",0x7813],
+ ["CFF4",0x794A],
+ ["CFF5",0x794C],
+ ["CFF6",0x794B],
+ ["CFF7",0x7945],
+ ["CFF8",0x7944],
+ ["CFF9",0x79D5],
+ ["CFFA",0x79CD],
+ ["CFFB",0x79CF],
+ ["CFFC",0x79D6],
+ ["CFFD",0x79CE],
+ ["CFFE",0x7A80],
+ ["D040",0x7A7E],
+ ["D041",0x7AD1],
+ ["D042",0x7B00],
+ ["D043",0x7B01],
+ ["D044",0x7C7A],
+ ["D045",0x7C78],
+ ["D046",0x7C79],
+ ["D047",0x7C7F],
+ ["D048",0x7C80],
+ ["D049",0x7C81],
+ ["D04A",0x7D03],
+ ["D04B",0x7D08],
+ ["D04C",0x7D01],
+ ["D04D",0x7F58],
+ ["D04E",0x7F91],
+ ["D04F",0x7F8D],
+ ["D050",0x7FBE],
+ ["D051",0x8007],
+ ["D052",0x800E],
+ ["D053",0x800F],
+ ["D054",0x8014],
+ ["D055",0x8037],
+ ["D056",0x80D8],
+ ["D057",0x80C7],
+ ["D058",0x80E0],
+ ["D059",0x80D1],
+ ["D05A",0x80C8],
+ ["D05B",0x80C2],
+ ["D05C",0x80D0],
+ ["D05D",0x80C5],
+ ["D05E",0x80E3],
+ ["D05F",0x80D9],
+ ["D060",0x80DC],
+ ["D061",0x80CA],
+ ["D062",0x80D5],
+ ["D063",0x80C9],
+ ["D064",0x80CF],
+ ["D065",0x80D7],
+ ["D066",0x80E6],
+ ["D067",0x80CD],
+ ["D068",0x81FF],
+ ["D069",0x8221],
+ ["D06A",0x8294],
+ ["D06B",0x82D9],
+ ["D06C",0x82FE],
+ ["D06D",0x82F9],
+ ["D06E",0x8307],
+ ["D06F",0x82E8],
+ ["D070",0x8300],
+ ["D071",0x82D5],
+ ["D072",0x833A],
+ ["D073",0x82EB],
+ ["D074",0x82D6],
+ ["D075",0x82F4],
+ ["D076",0x82EC],
+ ["D077",0x82E1],
+ ["D078",0x82F2],
+ ["D079",0x82F5],
+ ["D07A",0x830C],
+ ["D07B",0x82FB],
+ ["D07C",0x82F6],
+ ["D07D",0x82F0],
+ ["D07E",0x82EA],
+ ["D0A1",0x82E4],
+ ["D0A2",0x82E0],
+ ["D0A3",0x82FA],
+ ["D0A4",0x82F3],
+ ["D0A5",0x82ED],
+ ["D0A6",0x8677],
+ ["D0A7",0x8674],
+ ["D0A8",0x867C],
+ ["D0A9",0x8673],
+ ["D0AA",0x8841],
+ ["D0AB",0x884E],
+ ["D0AC",0x8867],
+ ["D0AD",0x886A],
+ ["D0AE",0x8869],
+ ["D0AF",0x89D3],
+ ["D0B0",0x8A04],
+ ["D0B1",0x8A07],
+ ["D0B2",0x8D72],
+ ["D0B3",0x8FE3],
+ ["D0B4",0x8FE1],
+ ["D0B5",0x8FEE],
+ ["D0B6",0x8FE0],
+ ["D0B7",0x90F1],
+ ["D0B8",0x90BD],
+ ["D0B9",0x90BF],
+ ["D0BA",0x90D5],
+ ["D0BB",0x90C5],
+ ["D0BC",0x90BE],
+ ["D0BD",0x90C7],
+ ["D0BE",0x90CB],
+ ["D0BF",0x90C8],
+ ["D0C0",0x91D4],
+ ["D0C1",0x91D3],
+ ["D0C2",0x9654],
+ ["D0C3",0x964F],
+ ["D0C4",0x9651],
+ ["D0C5",0x9653],
+ ["D0C6",0x964A],
+ ["D0C7",0x964E],
+ ["D0C8",0x501E],
+ ["D0C9",0x5005],
+ ["D0CA",0x5007],
+ ["D0CB",0x5013],
+ ["D0CC",0x5022],
+ ["D0CD",0x5030],
+ ["D0CE",0x501B],
+ ["D0CF",0x4FF5],
+ ["D0D0",0x4FF4],
+ ["D0D1",0x5033],
+ ["D0D2",0x5037],
+ ["D0D3",0x502C],
+ ["D0D4",0x4FF6],
+ ["D0D5",0x4FF7],
+ ["D0D6",0x5017],
+ ["D0D7",0x501C],
+ ["D0D8",0x5020],
+ ["D0D9",0x5027],
+ ["D0DA",0x5035],
+ ["D0DB",0x502F],
+ ["D0DC",0x5031],
+ ["D0DD",0x500E],
+ ["D0DE",0x515A],
+ ["D0DF",0x5194],
+ ["D0E0",0x5193],
+ ["D0E1",0x51CA],
+ ["D0E2",0x51C4],
+ ["D0E3",0x51C5],
+ ["D0E4",0x51C8],
+ ["D0E5",0x51CE],
+ ["D0E6",0x5261],
+ ["D0E7",0x525A],
+ ["D0E8",0x5252],
+ ["D0E9",0x525E],
+ ["D0EA",0x525F],
+ ["D0EB",0x5255],
+ ["D0EC",0x5262],
+ ["D0ED",0x52CD],
+ ["D0EE",0x530E],
+ ["D0EF",0x539E],
+ ["D0F0",0x5526],
+ ["D0F1",0x54E2],
+ ["D0F2",0x5517],
+ ["D0F3",0x5512],
+ ["D0F4",0x54E7],
+ ["D0F5",0x54F3],
+ ["D0F6",0x54E4],
+ ["D0F7",0x551A],
+ ["D0F8",0x54FF],
+ ["D0F9",0x5504],
+ ["D0FA",0x5508],
+ ["D0FB",0x54EB],
+ ["D0FC",0x5511],
+ ["D0FD",0x5505],
+ ["D0FE",0x54F1],
+ ["D140",0x550A],
+ ["D141",0x54FB],
+ ["D142",0x54F7],
+ ["D143",0x54F8],
+ ["D144",0x54E0],
+ ["D145",0x550E],
+ ["D146",0x5503],
+ ["D147",0x550B],
+ ["D148",0x5701],
+ ["D149",0x5702],
+ ["D14A",0x57CC],
+ ["D14B",0x5832],
+ ["D14C",0x57D5],
+ ["D14D",0x57D2],
+ ["D14E",0x57BA],
+ ["D14F",0x57C6],
+ ["D150",0x57BD],
+ ["D151",0x57BC],
+ ["D152",0x57B8],
+ ["D153",0x57B6],
+ ["D154",0x57BF],
+ ["D155",0x57C7],
+ ["D156",0x57D0],
+ ["D157",0x57B9],
+ ["D158",0x57C1],
+ ["D159",0x590E],
+ ["D15A",0x594A],
+ ["D15B",0x5A19],
+ ["D15C",0x5A16],
+ ["D15D",0x5A2D],
+ ["D15E",0x5A2E],
+ ["D15F",0x5A15],
+ ["D160",0x5A0F],
+ ["D161",0x5A17],
+ ["D162",0x5A0A],
+ ["D163",0x5A1E],
+ ["D164",0x5A33],
+ ["D165",0x5B6C],
+ ["D166",0x5BA7],
+ ["D167",0x5BAD],
+ ["D168",0x5BAC],
+ ["D169",0x5C03],
+ ["D16A",0x5C56],
+ ["D16B",0x5C54],
+ ["D16C",0x5CEC],
+ ["D16D",0x5CFF],
+ ["D16E",0x5CEE],
+ ["D16F",0x5CF1],
+ ["D170",0x5CF7],
+ ["D171",0x5D00],
+ ["D172",0x5CF9],
+ ["D173",0x5E29],
+ ["D174",0x5E28],
+ ["D175",0x5EA8],
+ ["D176",0x5EAE],
+ ["D177",0x5EAA],
+ ["D178",0x5EAC],
+ ["D179",0x5F33],
+ ["D17A",0x5F30],
+ ["D17B",0x5F67],
+ ["D17C",0x605D],
+ ["D17D",0x605A],
+ ["D17E",0x6067],
+ ["D1A1",0x6041],
+ ["D1A2",0x60A2],
+ ["D1A3",0x6088],
+ ["D1A4",0x6080],
+ ["D1A5",0x6092],
+ ["D1A6",0x6081],
+ ["D1A7",0x609D],
+ ["D1A8",0x6083],
+ ["D1A9",0x6095],
+ ["D1AA",0x609B],
+ ["D1AB",0x6097],
+ ["D1AC",0x6087],
+ ["D1AD",0x609C],
+ ["D1AE",0x608E],
+ ["D1AF",0x6219],
+ ["D1B0",0x6246],
+ ["D1B1",0x62F2],
+ ["D1B2",0x6310],
+ ["D1B3",0x6356],
+ ["D1B4",0x632C],
+ ["D1B5",0x6344],
+ ["D1B6",0x6345],
+ ["D1B7",0x6336],
+ ["D1B8",0x6343],
+ ["D1B9",0x63E4],
+ ["D1BA",0x6339],
+ ["D1BB",0x634B],
+ ["D1BC",0x634A],
+ ["D1BD",0x633C],
+ ["D1BE",0x6329],
+ ["D1BF",0x6341],
+ ["D1C0",0x6334],
+ ["D1C1",0x6358],
+ ["D1C2",0x6354],
+ ["D1C3",0x6359],
+ ["D1C4",0x632D],
+ ["D1C5",0x6347],
+ ["D1C6",0x6333],
+ ["D1C7",0x635A],
+ ["D1C8",0x6351],
+ ["D1C9",0x6338],
+ ["D1CA",0x6357],
+ ["D1CB",0x6340],
+ ["D1CC",0x6348],
+ ["D1CD",0x654A],
+ ["D1CE",0x6546],
+ ["D1CF",0x65C6],
+ ["D1D0",0x65C3],
+ ["D1D1",0x65C4],
+ ["D1D2",0x65C2],
+ ["D1D3",0x664A],
+ ["D1D4",0x665F],
+ ["D1D5",0x6647],
+ ["D1D6",0x6651],
+ ["D1D7",0x6712],
+ ["D1D8",0x6713],
+ ["D1D9",0x681F],
+ ["D1DA",0x681A],
+ ["D1DB",0x6849],
+ ["D1DC",0x6832],
+ ["D1DD",0x6833],
+ ["D1DE",0x683B],
+ ["D1DF",0x684B],
+ ["D1E0",0x684F],
+ ["D1E1",0x6816],
+ ["D1E2",0x6831],
+ ["D1E3",0x681C],
+ ["D1E4",0x6835],
+ ["D1E5",0x682B],
+ ["D1E6",0x682D],
+ ["D1E7",0x682F],
+ ["D1E8",0x684E],
+ ["D1E9",0x6844],
+ ["D1EA",0x6834],
+ ["D1EB",0x681D],
+ ["D1EC",0x6812],
+ ["D1ED",0x6814],
+ ["D1EE",0x6826],
+ ["D1EF",0x6828],
+ ["D1F0",0x682E],
+ ["D1F1",0x684D],
+ ["D1F2",0x683A],
+ ["D1F3",0x6825],
+ ["D1F4",0x6820],
+ ["D1F5",0x6B2C],
+ ["D1F6",0x6B2F],
+ ["D1F7",0x6B2D],
+ ["D1F8",0x6B31],
+ ["D1F9",0x6B34],
+ ["D1FA",0x6B6D],
+ ["D1FB",0x8082],
+ ["D1FC",0x6B88],
+ ["D1FD",0x6BE6],
+ ["D1FE",0x6BE4],
+ ["D240",0x6BE8],
+ ["D241",0x6BE3],
+ ["D242",0x6BE2],
+ ["D243",0x6BE7],
+ ["D244",0x6C25],
+ ["D245",0x6D7A],
+ ["D246",0x6D63],
+ ["D247",0x6D64],
+ ["D248",0x6D76],
+ ["D249",0x6D0D],
+ ["D24A",0x6D61],
+ ["D24B",0x6D92],
+ ["D24C",0x6D58],
+ ["D24D",0x6D62],
+ ["D24E",0x6D6D],
+ ["D24F",0x6D6F],
+ ["D250",0x6D91],
+ ["D251",0x6D8D],
+ ["D252",0x6DEF],
+ ["D253",0x6D7F],
+ ["D254",0x6D86],
+ ["D255",0x6D5E],
+ ["D256",0x6D67],
+ ["D257",0x6D60],
+ ["D258",0x6D97],
+ ["D259",0x6D70],
+ ["D25A",0x6D7C],
+ ["D25B",0x6D5F],
+ ["D25C",0x6D82],
+ ["D25D",0x6D98],
+ ["D25E",0x6D2F],
+ ["D25F",0x6D68],
+ ["D260",0x6D8B],
+ ["D261",0x6D7E],
+ ["D262",0x6D80],
+ ["D263",0x6D84],
+ ["D264",0x6D16],
+ ["D265",0x6D83],
+ ["D266",0x6D7B],
+ ["D267",0x6D7D],
+ ["D268",0x6D75],
+ ["D269",0x6D90],
+ ["D26A",0x70DC],
+ ["D26B",0x70D3],
+ ["D26C",0x70D1],
+ ["D26D",0x70DD],
+ ["D26E",0x70CB],
+ ["D26F",0x7F39],
+ ["D270",0x70E2],
+ ["D271",0x70D7],
+ ["D272",0x70D2],
+ ["D273",0x70DE],
+ ["D274",0x70E0],
+ ["D275",0x70D4],
+ ["D276",0x70CD],
+ ["D277",0x70C5],
+ ["D278",0x70C6],
+ ["D279",0x70C7],
+ ["D27A",0x70DA],
+ ["D27B",0x70CE],
+ ["D27C",0x70E1],
+ ["D27D",0x7242],
+ ["D27E",0x7278],
+ ["D2A1",0x7277],
+ ["D2A2",0x7276],
+ ["D2A3",0x7300],
+ ["D2A4",0x72FA],
+ ["D2A5",0x72F4],
+ ["D2A6",0x72FE],
+ ["D2A7",0x72F6],
+ ["D2A8",0x72F3],
+ ["D2A9",0x72FB],
+ ["D2AA",0x7301],
["D2AB",0x73D3],
- ["D2B6",0x73D4],
- ["D2AE",0x73D6],
- ["D2B9",0x73D7],
- ["D2BA",0x73D8],
["D2AC",0x73D9],
- ["D2B8",0x73DA],
- ["D2B5",0x73DB],
- ["D2B3",0x73DC],
- ["D2B7",0x73DD],
- ["AF5F",0x73DE],
- ["AF5D",0x73E0],
- ["D2B1",0x73E3],
["D2AD",0x73E5],
+ ["D2AE",0x73D6],
+ ["D2AF",0x73BC],
["D2B0",0x73E7],
- ["D2BB",0x73E8],
+ ["D2B1",0x73E3],
["D2B2",0x73E9],
- ["AF5E",0x73EA],
- ["CFCF",0x73EB],
- ["AF5A",0x73ED],
- ["AF5C",0x73EE],
- ["D678",0x73F4],
- ["D66D",0x73F5],
- ["D66B",0x73F6],
- ["D66C",0x73F8],
- ["D673",0x73FA],
- ["D674",0x73FC],
- ["D670",0x73FD],
- ["B27B",0x73FE],
- ["D675",0x73FF],
- ["D672",0x7400],
- ["D66F",0x7401],
- ["B279",0x7403],
- ["D66E",0x7404],
- ["B277",0x7405],
- ["B27A",0x7406],
- ["D671",0x7407],
- ["D679",0x7408],
- ["AF5B",0x7409],
- ["B278",0x740A],
- ["D677",0x740B],
- ["D676",0x740C],
- ["B27C",0x740D],
- ["DA7E",0x7416],
- ["DAA1",0x741A],
- ["B560",0x741B],
- ["DAA7",0x741D],
- ["DAA9",0x7420],
- ["DAA2",0x7421],
- ["B55A",0x7422],
- ["DAA6",0x7423],
- ["DAA5",0x7424],
- ["B55B",0x7425],
- ["B561",0x7426],
- ["B562",0x7428],
- ["DAA8",0x7429],
- ["B558",0x742A],
- ["DA7D",0x742B],
- ["DA7B",0x742C],
- ["DAA3",0x742D],
- ["DA7A",0x742E],
- ["B55F",0x742F],
- ["DA7C",0x7430],
- ["DAA4",0x7431],
- ["DAAA",0x7432],
- ["B559",0x7433],
- ["B55E",0x7434],
- ["B55C",0x7435],
- ["B55D",0x7436],
- ["B557",0x743A],
- ["B7E9",0x743F],
- ["DEB7",0x7440],
- ["B7E8",0x7441],
- ["DEBB",0x7442],
- ["DEB1",0x7444],
- ["DEBC",0x7446],
- ["DEB2",0x744A],
- ["DEB3",0x744B],
- ["DEBD",0x744D],
- ["DEBA",0x744E],
- ["DEB8",0x744F],
- ["DEB9",0x7450],
- ["DEB5",0x7451],
- ["DEB4",0x7452],
- ["DEBE",0x7454],
- ["B7E5",0x7455],
- ["DEB6",0x7457],
- ["B7EA",0x7459],
- ["B7E4",0x745A],
- ["B7EB",0x745B],
- ["B7EC",0x745C],
- ["B7E7",0x745E],
- ["B7E6",0x745F],
- ["E2CE",0x7462],
- ["BABE",0x7463],
- ["BABD",0x7464],
- ["E2D3",0x7467],
- ["BCFC",0x7469],
- ["BABF",0x746A],
- ["BAC1",0x746D],
- ["E2D4",0x746E],
- ["B7E3",0x746F],
- ["BAC0",0x7470],
- ["E2D0",0x7471],
- ["E2D2",0x7472],
- ["E2CF",0x7473],
- ["E2D1",0x7475],
- ["E6AB",0x7479],
- ["E6AA",0x747C],
- ["E6A7",0x747D],
- ["BD40",0x747E],
- ["EA62",0x747F],
- ["BD41",0x7480],
- ["E6A6",0x7481],
- ["BCFE",0x7483],
- ["E6A8",0x7485],
- ["E6A5",0x7486],
- ["E6A2",0x7487],
- ["E6A9",0x7488],
- ["E6A3",0x7489],
- ["E6A4",0x748A],
- ["BCFD",0x748B],
- ["ED69",0x7490],
- ["EA66",0x7492],
- ["EA65",0x7494],
- ["EA67",0x7495],
- ["ED66",0x7497],
- ["BF5A",0x7498],
- ["EA63",0x749A],
- ["BF58",0x749C],
- ["BF5C",0x749E],
- ["BF5B",0x749F],
- ["EA64",0x74A0],
- ["EA68",0x74A1],
- ["BF59",0x74A3],
- ["ED6D",0x74A5],
- ["C0F5",0x74A6],
- ["C27A",0x74A7],
- ["C0F6",0x74A8],
- ["C0F3",0x74A9],
- ["ED6A",0x74AA],
- ["ED68",0x74AB],
- ["ED6B",0x74AD],
- ["ED6E",0x74AF],
- ["C0F4",0x74B0],
- ["ED6C",0x74B1],
- ["ED67",0x74B2],
- ["F042",0x74B5],
- ["F045",0x74B6],
- ["F275",0x74B7],
- ["F040",0x74B8],
- ["F46F",0x74BA],
- ["F046",0x74BB],
- ["C3A2",0x74BD],
- ["F044",0x74BE],
- ["C27B",0x74BF],
- ["F041",0x74C0],
- ["F043",0x74C1],
- ["F047",0x74C2],
- ["F276",0x74C3],
- ["F274",0x74C5],
- ["C3A3",0x74CA],
- ["F273",0x74CB],
- ["C46E",0x74CF],
- ["C4ED",0x74D4],
- ["F6F1",0x74D5],
- ["C4EC",0x74D6],
- ["F6F3",0x74D7],
- ["F6F0",0x74D8],
- ["F6F2",0x74D9],
- ["C5D0",0x74DA],
- ["F8B2",0x74DB],
- ["A5CA",0x74DC],
- ["CD6E",0x74DD],
+ ["D2B3",0x73DC],
+ ["D2B4",0x73D2],
+ ["D2B5",0x73DB],
+ ["D2B6",0x73D4],
+ ["D2B7",0x73DD],
+ ["D2B8",0x73DA],
+ ["D2B9",0x73D7],
+ ["D2BA",0x73D8],
+ ["D2BB",0x73E8],
["D2BC",0x74DE],
["D2BD",0x74DF],
- ["B27D",0x74E0],
- ["DEBF",0x74E1],
- ["BF5D",0x74E2],
- ["C3A4",0x74E3],
- ["C57B",0x74E4],
- ["F8B3",0x74E5],
- ["A5CB",0x74E6],
- ["CD6F",0x74E8],
- ["A260",0x74E9],
- ["CFD7",0x74EC],
- ["CFD8",0x74EE],
["D2BE",0x74F4],
["D2BF",0x74F5],
- ["B27E",0x74F6],
- ["B2A1",0x74F7],
- ["DAAB",0x74FB],
- ["DEC2",0x74FD],
- ["DEC1",0x74FE],
- ["DEC0",0x74FF],
- ["E2D5",0x7500],
- ["E2D6",0x7502],
- ["E2D7",0x7503],
- ["BAC2",0x7504],
- ["E6AD",0x7507],
- ["E6AC",0x7508],
- ["EA69",0x750B],
- ["BF5E",0x750C],
- ["BF5F",0x750D],
- ["ED72",0x750F],
- ["ED6F",0x7510],
- ["ED70",0x7511],
- ["ED71",0x7512],
- ["F049",0x7513],
- ["F048",0x7514],
- ["C27C",0x7515],
- ["F277",0x7516],
- ["F5DE",0x7517],
- ["A5CC",0x7518],
- ["ACC6",0x751A],
- ["B2A2",0x751C],
- ["DEC3",0x751D],
- ["A5CD",0x751F],
["D2C0",0x7521],
- ["B2A3",0x7522],
- ["B563",0x7525],
- ["B564",0x7526],
- ["A5CE",0x7528],
- ["A5CF",0x7529],
- ["CA46",0x752A],
- ["A86A",0x752B],
- ["A869",0x752C],
- ["ACC7",0x752D],
- ["CFD9",0x752E],
- ["DAAC",0x752F],
- ["A5D0",0x7530],
- ["A5D1",0x7531],
- ["A5D2",0x7532],
- ["A5D3",0x7533],
- ["A86B",0x7537],
- ["A86C",0x7538],
- ["CB6E",0x7539],
- ["CB6D",0x753A],
- ["AAB6",0x753D],
- ["CD72",0x753E],
- ["CD70",0x753F],
- ["CD71",0x7540],
- ["CFDA",0x7547],
- ["CFDB",0x7548],
- ["ACCB",0x754B],
- ["ACC9",0x754C],
- ["ACCA",0x754E],
- ["ACC8",0x754F],
- ["AF60",0x7554],
- ["AF64",0x7559],
- ["AF63",0x755A],
["D2C1",0x755B],
- ["AF62",0x755C],
- ["AF61",0x755D],
["D2C2",0x755F],
- ["B2A6",0x7562],
- ["D67B",0x7563],
- ["D67A",0x7564],
- ["B2A4",0x7565],
- ["B2A5",0x7566],
- ["B566",0x756A],
- ["B565",0x756B],
- ["DAAE",0x756C],
- ["DAAD",0x756F],
- ["B2A7",0x7570],
- ["B7ED",0x7576],
- ["DEC5",0x7577],
- ["B7EE",0x7578],
- ["DEC4",0x7579],
- ["E2D8",0x757D],
- ["E6AE",0x757E],
- ["BD42",0x757F],
- ["EA6A",0x7580],
- ["ED73",0x7584],
- ["C3A6",0x7586],
- ["C3A5",0x7587],
- ["C57C",0x758A],
- ["A5D4",0x758B],
- ["CD73",0x758C],
- ["B2A8",0x758F],
- ["E2D9",0x7590],
- ["BAC3",0x7591],
- ["CB6F",0x7594],
- ["CB70",0x7595],
- ["CD74",0x7598],
- ["AAB8",0x7599],
- ["AAB9",0x759A],
- ["AAB7",0x759D],
- ["ACCF",0x75A2],
- ["ACD0",0x75A3],
- ["ACCD",0x75A4],
- ["ACCE",0x75A5],
- ["CFDC",0x75A7],
- ["CFDD",0x75AA],
- ["ACCC",0x75AB],
["D2C3",0x75B0],
- ["AF68",0x75B2],
- ["AF69",0x75B3],
- ["B2AB",0x75B5],
- ["D2C9",0x75B6],
- ["AF6E",0x75B8],
- ["AF6C",0x75B9],
- ["D2CA",0x75BA],
- ["D2C5",0x75BB],
- ["AF6B",0x75BC],
- ["AF6A",0x75BD],
- ["AF65",0x75BE],
- ["D2C8",0x75BF],
- ["D2C7",0x75C0],
["D2C4",0x75C1],
- ["AF6D",0x75C2],
+ ["D2C5",0x75BB],
["D2C6",0x75C4],
- ["AF66",0x75C5],
- ["AF67",0x75C7],
- ["B2AC",0x75CA],
- ["D6A1",0x75CB],
- ["D6A2",0x75CC],
- ["B2AD",0x75CD],
- ["D67C",0x75CE],
- ["D67E",0x75CF],
- ["D6A4",0x75D0],
- ["D6A3",0x75D1],
- ["D67D",0x75D2],
- ["B2A9",0x75D4],
- ["B2AA",0x75D5],
- ["DAB6",0x75D7],
- ["B56B",0x75D8],
- ["B56A",0x75D9],
- ["DAB0",0x75DA],
- ["B568",0x75DB],
- ["DAB3",0x75DD],
- ["B56C",0x75DE],
- ["DAB4",0x75DF],
- ["B56D",0x75E0],
- ["DAB1",0x75E1],
- ["B567",0x75E2],
- ["B569",0x75E3],
- ["DAB5",0x75E4],
- ["DAB2",0x75E6],
- ["DAAF",0x75E7],
- ["DED2",0x75ED],
- ["DEC7",0x75EF],
- ["B7F0",0x75F0],
- ["B7F3",0x75F1],
- ["B7F2",0x75F2],
- ["B7F7",0x75F3],
- ["B7F6",0x75F4],
- ["DED3",0x75F5],
- ["DED1",0x75F6],
- ["DECA",0x75F7],
- ["DECE",0x75F8],
- ["DECD",0x75F9],
- ["B7F4",0x75FA],
- ["DED0",0x75FB],
- ["DECC",0x75FC],
- ["DED4",0x75FD],
- ["DECB",0x75FE],
- ["B7F5",0x75FF],
- ["B7EF",0x7600],
- ["B7F1",0x7601],
- ["DEC9",0x7603],
- ["E2DB",0x7608],
- ["BAC7",0x7609],
- ["E2DF",0x760A],
- ["BAC6",0x760B],
- ["E2DC",0x760C],
- ["BAC5",0x760D],
- ["DEC8",0x760F],
- ["DECF",0x7610],
- ["E2DE",0x7611],
- ["BAC8",0x7613],
- ["E2E0",0x7614],
- ["E2DD",0x7615],
- ["E2DA",0x7616],
- ["E6B1",0x7619],
- ["E6B5",0x761A],
- ["E6B7",0x761B],
- ["E6B3",0x761C],
- ["E6B2",0x761D],
- ["E6B0",0x761E],
- ["BD45",0x761F],
- ["BD43",0x7620],
- ["BD48",0x7621],
- ["BD49",0x7622],
- ["E6B4",0x7623],
- ["BD46",0x7624],
- ["E6AF",0x7625],
- ["BD47",0x7626],
- ["BAC4",0x7627],
- ["E6B6",0x7628],
- ["BD44",0x7629],
- ["EA6C",0x762D],
- ["EA6B",0x762F],
- ["EA73",0x7630],
- ["EA6D",0x7631],
- ["EA72",0x7632],
- ["EA6F",0x7633],
- ["BF60",0x7634],
- ["EA71",0x7635],
- ["BF61",0x7638],
- ["BF62",0x763A],
- ["EA70",0x763C],
- ["EA6E",0x763D],
- ["C0F8",0x7642],
- ["ED74",0x7643],
- ["C0F7",0x7646],
- ["ED77",0x7647],
- ["ED75",0x7648],
- ["ED76",0x7649],
- ["C0F9",0x764C],
- ["F04D",0x7650],
- ["C2A1",0x7652],
- ["F04E",0x7653],
- ["C27D",0x7656],
- ["F04F",0x7657],
- ["C27E",0x7658],
- ["F04C",0x7659],
- ["F050",0x765A],
- ["F04A",0x765C],
- ["C3A7",0x765F],
- ["F278",0x7660],
- ["C3A8",0x7661],
- ["C46F",0x7662],
- ["F04B",0x7664],
- ["C470",0x7665],
- ["C4EE",0x7669],
- ["F5DF",0x766A],
- ["C57E",0x766C],
- ["F6F4",0x766D],
- ["C57D",0x766E],
- ["F7EA",0x7670],
- ["C5F5",0x7671],
- ["C5F6",0x7672],
- ["F9CC",0x7675],
- ["ACD1",0x7678],
- ["CFDE",0x7679],
- ["B56E",0x767B],
- ["B56F",0x767C],
- ["A5D5",0x767D],
- ["A6CA",0x767E],
- ["CA47",0x767F],
- ["CB71",0x7681],
- ["A86D",0x7682],
- ["AABA",0x7684],
- ["ACD2",0x7686],
- ["ACD3",0x7687],
- ["ACD4",0x7688],
- ["D6A6",0x7689],
+ ["D2C7",0x75C0],
+ ["D2C8",0x75BF],
+ ["D2C9",0x75B6],
+ ["D2CA",0x75BA],
["D2CB",0x768A],
- ["AF6F",0x768B],
- ["B2AE",0x768E],
- ["D6A5",0x768F],
- ["DAB8",0x7692],
- ["B571",0x7693],
- ["DAB7",0x7695],
- ["B570",0x7696],
- ["DED5",0x7699],
- ["BD4A",0x769A],
- ["E6BB",0x769B],
- ["E6B8",0x769C],
- ["E6B9",0x769D],
- ["E6BA",0x769E],
- ["ED78",0x76A4],
- ["F051",0x76A6],
- ["F471",0x76AA],
- ["F470",0x76AB],
- ["F6F5",0x76AD],
- ["A5D6",0x76AE],
- ["CD75",0x76AF],
- ["AF70",0x76B0],
- ["B572",0x76B4],
- ["DED6",0x76B5],
- ["E2E1",0x76B8],
- ["BD4B",0x76BA],
- ["EA74",0x76BB],
- ["F052",0x76BD],
- ["F472",0x76BE],
- ["A5D7",0x76BF],
- ["AABB",0x76C2],
- ["ACD7",0x76C3],
- ["CFDF",0x76C4],
- ["ACD8",0x76C5],
- ["ACD6",0x76C6],
- ["ACD5",0x76C8],
["D2CC",0x76C9],
- ["AF71",0x76CA],
- ["AF72",0x76CD],
- ["AF73",0x76CE],
- ["B2B0",0x76D2],
- ["D6A7",0x76D3],
- ["B2AF",0x76D4],
- ["DAB9",0x76DA],
- ["B2B1",0x76DB],
- ["B573",0x76DC],
- ["DED7",0x76DD],
- ["B7F8",0x76DE],
- ["B7F9",0x76DF],
- ["BAC9",0x76E1],
- ["BACA",0x76E3],
- ["BD4C",0x76E4],
- ["BF64",0x76E5],
- ["EA75",0x76E6],
- ["BF63",0x76E7],
- ["ED79",0x76E9],
- ["C0FA",0x76EA],
- ["F053",0x76EC],
- ["F473",0x76ED],
- ["A5D8",0x76EE],
- ["A86E",0x76EF],
- ["CD78",0x76F0],
- ["CD77",0x76F1],
- ["AABC",0x76F2],
- ["CD76",0x76F3],
- ["AABD",0x76F4],
- ["CD79",0x76F5],
- ["CFE5",0x76F7],
- ["ACDB",0x76F8],
- ["ACDA",0x76F9],
- ["CFE7",0x76FA],
- ["CFE6",0x76FB],
- ["ACDF",0x76FC],
- ["ACDE",0x76FE],
- ["ACD9",0x7701],
- ["CFE1",0x7703],
- ["CFE2",0x7704],
- ["CFE3",0x7705],
- ["ACE0",0x7707],
- ["CFE0",0x7708],
- ["ACDC",0x7709],
- ["CFE4",0x770A],
- ["ACDD",0x770B],
+ ["D2CD",0x771D],
+ ["D2CE",0x771B],
["D2CF",0x7710],
- ["D2D3",0x7711],
- ["D2D1",0x7712],
["D2D0",0x7713],
+ ["D2D1",0x7712],
+ ["D2D2",0x7723],
+ ["D2D3",0x7711],
["D2D4",0x7715],
["D2D5",0x7719],
["D2D6",0x771A],
- ["D2CE",0x771B],
- ["D2CD",0x771D],
- ["AF75",0x771F],
- ["AF76",0x7720],
["D2D7",0x7722],
- ["D2D2",0x7723],
- ["D6B0",0x7725],
["D2D8",0x7727],
- ["AF77",0x7728],
- ["AF74",0x7729],
- ["D6AA",0x772D],
- ["D6A9",0x772F],
- ["D6AB",0x7731],
- ["D6AC",0x7732],
- ["D6AE",0x7733],
- ["D6AD",0x7734],
- ["D6B2",0x7735],
- ["B2B5",0x7736],
- ["B2B2",0x7737],
- ["B2B6",0x7738],
- ["D6A8",0x7739],
- ["B2B7",0x773A],
- ["D6B1",0x773B],
- ["B2B4",0x773C],
- ["D6AF",0x773D],
- ["B2B3",0x773E],
- ["DABC",0x7744],
- ["DABE",0x7745],
- ["DABA",0x7746],
- ["DABB",0x7747],
- ["DABF",0x774A],
- ["DAC1",0x774B],
- ["DAC2",0x774C],
- ["DABD",0x774D],
- ["DAC0",0x774E],
- ["B574",0x774F],
- ["DEDB",0x7752],
- ["DEE0",0x7754],
- ["DED8",0x7755],
- ["DEDC",0x7756],
- ["DEE1",0x7759],
- ["DEDD",0x775A],
- ["B7FA",0x775B],
- ["B843",0x775C],
- ["B7FD",0x775E],
- ["DED9",0x775F],
- ["DEDA",0x7760],
- ["BACE",0x7761],
- ["B846",0x7762],
- ["B7FE",0x7763],
- ["B844",0x7765],
- ["B7FC",0x7766],
- ["DEDF",0x7767],
- ["B845",0x7768],
- ["DEDE",0x7769],
- ["B841",0x776A],
- ["B7FB",0x776B],
- ["B842",0x776C],
- ["DEE2",0x776D],
- ["E2E6",0x776E],
- ["E2E8",0x776F],
- ["B840",0x7779],
- ["E2E3",0x777C],
- ["BACC",0x777D],
- ["E2E9",0x777E],
- ["BACD",0x777F],
- ["E2E7",0x7780],
- ["E2E2",0x7781],
- ["E2E5",0x7782],
- ["E2EA",0x7783],
- ["BACB",0x7784],
- ["E2E4",0x7785],
- ["BD4E",0x7787],
- ["E6BF",0x7788],
- ["E6BE",0x7789],
- ["BD51",0x778B],
- ["BD4F",0x778C],
- ["E6BC",0x778D],
- ["BD4D",0x778E],
- ["E6BD",0x778F],
- ["BD50",0x7791],
- ["EA7D",0x7795],
- ["EAA1",0x7797],
- ["EA7E",0x7799],
- ["EA76",0x779A],
- ["EA7A",0x779B],
- ["EA79",0x779C],
- ["EA77",0x779D],
- ["BF66",0x779E],
- ["BF67",0x779F],
- ["BF65",0x77A0],
- ["EA78",0x77A1],
- ["EA7B",0x77A2],
- ["EA7C",0x77A3],
- ["BF68",0x77A5],
- ["C140",0x77A7],
- ["EDA3",0x77A8],
- ["C0FC",0x77AA],
- ["ED7B",0x77AB],
- ["C0FE",0x77AC],
- ["C141",0x77AD],
- ["C0FD",0x77B0],
- ["EDA2",0x77B1],
- ["ED7C",0x77B2],
- ["C0FB",0x77B3],
- ["EDA1",0x77B4],
- ["ED7A",0x77B5],
- ["ED7E",0x77B6],
- ["ED7D",0x77B7],
- ["F055",0x77BA],
- ["C2A4",0x77BB],
- ["C2A5",0x77BC],
- ["C2A2",0x77BD],
- ["C2A3",0x77BF],
- ["F054",0x77C2],
- ["F27B",0x77C4],
- ["C3A9",0x77C7],
- ["F279",0x77C9],
- ["F27A",0x77CA],
- ["F474",0x77CC],
- ["F477",0x77CD],
- ["F475",0x77CE],
- ["F476",0x77CF],
- ["F5E0",0x77D0],
- ["C4EF",0x77D3],
- ["F7EB",0x77D4],
- ["F8B4",0x77D5],
- ["C5F7",0x77D7],
- ["F8F8",0x77D8],
- ["F8F9",0x77D9],
- ["C666",0x77DA],
- ["A5D9",0x77DB],
- ["ACE1",0x77DC],
- ["DAC3",0x77DE],
- ["DEE3",0x77E0],
- ["A5DA",0x77E2],
- ["A86F",0x77E3],
- ["AABE",0x77E5],
- ["CFE8",0x77E7],
- ["CFE9",0x77E8],
- ["AF78",0x77E9],
- ["DAC4",0x77EC],
- ["B575",0x77ED],
- ["B847",0x77EE],
- ["C142",0x77EF],
- ["EDA4",0x77F0],
- ["F27C",0x77F1],
- ["F478",0x77F2],
- ["A5DB",0x77F3],
- ["CDA1",0x77F7],
- ["CD7A",0x77F8],
- ["CD7C",0x77F9],
- ["CD7E",0x77FA],
- ["CD7D",0x77FB],
- ["CD7B",0x77FC],
- ["AABF",0x77FD],
- ["ACE2",0x7802],
- ["CFF2",0x7803],
- ["CFED",0x7805],
- ["CFEA",0x7806],
- ["CFF1",0x7809],
- ["ACE4",0x780C],
- ["ACE5",0x780D],
- ["CFF0",0x780E],
- ["CFEF",0x780F],
- ["CFEE",0x7810],
- ["CFEB",0x7811],
- ["CFEC",0x7812],
- ["CFF3",0x7813],
- ["ACE3",0x7814],
- ["AF7C",0x781D],
- ["AFA4",0x781F],
- ["AFA3",0x7820],
- ["D2E1",0x7821],
- ["D2DB",0x7822],
["D2D9",0x7823],
- ["AFA1",0x7825],
- ["D6B9",0x7826],
- ["AF7A",0x7827],
+ ["D2DA",0x782C],
+ ["D2DB",0x7822],
+ ["D2DC",0x7835],
+ ["D2DD",0x782F],
["D2DE",0x7828],
+ ["D2DF",0x782E],
+ ["D2E0",0x782B],
+ ["D2E1",0x7821],
["D2E2",0x7829],
+ ["D2E3",0x7833],
["D2E4",0x782A],
- ["D2E0",0x782B],
- ["D2DA",0x782C],
- ["AFA2",0x782D],
- ["D2DF",0x782E],
- ["D2DD",0x782F],
- ["AF79",0x7830],
["D2E5",0x7831],
- ["AFA5",0x7832],
- ["D2E3",0x7833],
- ["AF7D",0x7834],
- ["D2DC",0x7835],
- ["AF7E",0x7837],
- ["AF7B",0x7838],
- ["B2B9",0x7843],
- ["D6BA",0x7845],
- ["D6B3",0x7848],
- ["D6B5",0x7849],
- ["D6B7",0x784A],
- ["D6B8",0x784C],
- ["D6B6",0x784D],
- ["B2BA",0x784E],
- ["D6BB",0x7850],
- ["D6B4",0x7852],
- ["DAC8",0x785C],
- ["B576",0x785D],
- ["DAD0",0x785E],
- ["DAC5",0x7860],
- ["DAD1",0x7862],
- ["DAC6",0x7864],
- ["DAC7",0x7865],
- ["DACF",0x7868],
- ["DACE",0x7869],
- ["DACB",0x786A],
- ["B2B8",0x786B],
- ["B577",0x786C],
- ["DAC9",0x786D],
- ["DACC",0x786E],
- ["B578",0x786F],
- ["DACD",0x7870],
- ["DACA",0x7871],
- ["DEEE",0x7879],
- ["DEF2",0x787B],
- ["B84E",0x787C],
- ["E2F0",0x787E],
- ["B851",0x787F],
- ["DEF0",0x7880],
- ["DEED",0x7883],
- ["DEE8",0x7884],
- ["DEEA",0x7885],
- ["DEEB",0x7886],
- ["DEE4",0x7887],
- ["B84D",0x7889],
- ["B84C",0x788C],
- ["B848",0x788E],
- ["DEE7",0x788F],
- ["B84F",0x7891],
- ["B850",0x7893],
- ["DEE6",0x7894],
- ["DEE9",0x7895],
- ["DEF1",0x7896],
- ["B84A",0x7897],
- ["B84B",0x7898],
- ["DEEF",0x7899],
- ["DEE5",0x789A],
- ["E2F2",0x789E],
- ["BAD0",0x789F],
- ["E2F4",0x78A0],
- ["DEEC",0x78A1],
- ["E2F6",0x78A2],
- ["BAD4",0x78A3],
- ["E2F7",0x78A4],
- ["E2F3",0x78A5],
- ["BAD1",0x78A7],
- ["E2EF",0x78A8],
- ["BAD3",0x78A9],
- ["E2EC",0x78AA],
- ["E2F1",0x78AB],
- ["E2F5",0x78AC],
- ["E2EE",0x78AD],
- ["B849",0x78B0],
- ["E2EB",0x78B2],
- ["BAD2",0x78B3],
- ["E2ED",0x78B4],
- ["BD54",0x78BA],
- ["E6C1",0x78BB],
- ["BD58",0x78BC],
- ["BD56",0x78BE],
- ["BACF",0x78C1],
- ["E6C8",0x78C3],
- ["E6C9",0x78C4],
- ["BD53",0x78C5],
- ["E6C7",0x78C8],
- ["E6CA",0x78C9],
- ["BD55",0x78CA],
- ["BD52",0x78CB],
- ["E6C3",0x78CC],
- ["E6C0",0x78CD],
- ["E6C5",0x78CE],
- ["E6C2",0x78CF],
- ["BD59",0x78D0],
- ["E6C4",0x78D1],
- ["E6C6",0x78D4],
- ["BD57",0x78D5],
- ["BF6A",0x78DA],
- ["EAA8",0x78DB],
- ["EAA2",0x78DD],
- ["EAA6",0x78DE],
- ["EAAC",0x78DF],
- ["EAAD",0x78E0],
- ["EAA9",0x78E1],
- ["EAAA",0x78E2],
- ["EAA7",0x78E3],
- ["EAA4",0x78E5],
- ["BF6C",0x78E7],
- ["BF69",0x78E8],
- ["EAA3",0x78E9],
- ["EAA5",0x78EA],
- ["BF6B",0x78EC],
- ["EAAB",0x78ED],
- ["C146",0x78EF],
- ["EDAA",0x78F2],
- ["EDA5",0x78F3],
- ["C145",0x78F4],
- ["C143",0x78F7],
- ["EDAC",0x78F9],
- ["C144",0x78FA],
- ["EDA8",0x78FB],
- ["EDA9",0x78FC],
- ["EDA6",0x78FD],
- ["EDAD",0x78FE],
- ["F056",0x78FF],
- ["C147",0x7901],
- ["EDA7",0x7902],
- ["EDAE",0x7904],
- ["EDAB",0x7905],
- ["F05A",0x7909],
- ["F057",0x790C],
- ["C2A6",0x790E],
- ["F05B",0x7910],
- ["F05D",0x7911],
- ["F05C",0x7912],
- ["F058",0x7913],
- ["F059",0x7914],
- ["F2A3",0x7917],
- ["C3AA",0x7919],
- ["F27E",0x791B],
- ["F2A2",0x791C],
- ["F27D",0x791D],
- ["F2A4",0x791E],
- ["F2A1",0x7921],
- ["F47A",0x7923],
- ["F47D",0x7924],
- ["F479",0x7925],
- ["C471",0x7926],
- ["F47B",0x7927],
- ["F47C",0x7928],
- ["F47E",0x7929],
- ["C472",0x792A],
- ["C474",0x792B],
- ["C473",0x792C],
- ["F5E1",0x792D],
- ["F5E3",0x792F],
- ["F5E2",0x7931],
- ["F6F6",0x7935],
- ["F8B5",0x7938],
- ["F8FA",0x7939],
- ["A5DC",0x793A],
- ["CB72",0x793D],
- ["AAC0",0x793E],
- ["CDA3",0x793F],
- ["AAC1",0x7940],
- ["AAC2",0x7941],
- ["CDA2",0x7942],
- ["CFF8",0x7944],
- ["CFF7",0x7945],
- ["ACE6",0x7946],
- ["ACE9",0x7947],
- ["ACE8",0x7948],
- ["ACE7",0x7949],
- ["CFF4",0x794A],
- ["CFF6",0x794B],
- ["CFF5",0x794C],
- ["D2E8",0x794F],
- ["AFA7",0x7950],
- ["D2EC",0x7951],
- ["D2EB",0x7952],
- ["D2EA",0x7953],
["D2E6",0x7954],
- ["AFA6",0x7955],
- ["AFAA",0x7956],
- ["AFAD",0x7957],
- ["AFAE",0x795A],
["D2E7",0x795B],
+ ["D2E8",0x794F],
["D2E9",0x795C],
- ["AFAC",0x795D],
- ["AFAB",0x795E],
- ["AFA9",0x795F],
- ["AFA8",0x7960],
- ["D6C2",0x7961],
- ["D6C0",0x7963],
- ["D6BC",0x7964],
- ["B2BB",0x7965],
- ["D6BD",0x7967],
- ["B2BC",0x7968],
- ["D6BE",0x7969],
- ["D6BF",0x796A],
- ["D6C1",0x796B],
- ["B2BD",0x796D],
- ["DAD5",0x7970],
- ["DAD4",0x7972],
- ["DAD3",0x7973],
- ["DAD2",0x7974],
- ["DEF6",0x7979],
- ["B852",0x797A],
- ["DEF3",0x797C],
- ["DEF5",0x797D],
- ["B853",0x797F],
- ["B854",0x7981],
- ["DEF4",0x7982],
- ["E341",0x7988],
- ["E2F9",0x798A],
- ["E2FA",0x798B],
- ["BAD7",0x798D],
- ["BAD5",0x798E],
- ["BAD6",0x798F],
- ["E343",0x7990],
- ["E342",0x7992],
- ["E2FE",0x7993],
- ["E2FD",0x7994],
- ["E2FC",0x7995],
- ["E2FB",0x7996],
- ["E340",0x7997],
- ["E2F8",0x7998],
- ["E6CB",0x799A],
- ["E6D0",0x799B],
- ["E6CE",0x799C],
- ["E6CD",0x79A0],
- ["E6CC",0x79A1],
- ["E6CF",0x79A2],
- ["EAAE",0x79A4],
- ["BF6D",0x79A6],
- ["C148",0x79A7],
- ["EDB0",0x79A8],
- ["C149",0x79AA],
- ["EDAF",0x79AB],
- ["F05F",0x79AC],
- ["F05E",0x79AD],
- ["C2A7",0x79AE],
- ["F2A5",0x79B0],
- ["C3AB",0x79B1],
- ["F4A1",0x79B2],
- ["C5A1",0x79B3],
- ["F6F7",0x79B4],
- ["F8B7",0x79B6],
- ["F8B6",0x79B7],
- ["C9A8",0x79B8],
- ["ACEA",0x79B9],
- ["ACEB",0x79BA],
- ["D6C3",0x79BB],
- ["B856",0x79BD],
- ["A5DD",0x79BE],
- ["A872",0x79BF],
- ["A871",0x79C0],
- ["A870",0x79C1],
- ["CDA4",0x79C5],
- ["AAC4",0x79C8],
- ["AAC3",0x79C9],
- ["ACEE",0x79CB],
- ["CFFA",0x79CD],
- ["CFFD",0x79CE],
- ["CFFB",0x79CF],
- ["ACEC",0x79D1],
- ["ACED",0x79D2],
- ["CFF9",0x79D5],
- ["CFFC",0x79D6],
- ["AFB5",0x79D8],
- ["D2F3",0x79DC],
- ["D2F5",0x79DD],
- ["D2F4",0x79DE],
- ["AFB2",0x79DF],
- ["D2EF",0x79E0],
- ["AFB0",0x79E3],
- ["AFAF",0x79E4],
- ["AFB3",0x79E6],
- ["AFB1",0x79E7],
- ["AFB4",0x79E9],
- ["D2F2",0x79EA],
+ ["D2EA",0x7953],
+ ["D2EB",0x7952],
+ ["D2EC",0x7951],
["D2ED",0x79EB],
["D2EE",0x79EC],
- ["D2F1",0x79ED],
+ ["D2EF",0x79E0],
["D2F0",0x79EE],
- ["D6C6",0x79F6],
- ["D6C7",0x79F7],
- ["D6C5",0x79F8],
- ["D6C4",0x79FA],
- ["B2BE",0x79FB],
- ["B57D",0x7A00],
- ["DAD6",0x7A02],
- ["DAD8",0x7A03],
- ["DADA",0x7A04],
- ["B57C",0x7A05],
- ["B57A",0x7A08],
- ["DAD7",0x7A0A],
- ["B57B",0x7A0B],
- ["DAD9",0x7A0C],
- ["B579",0x7A0D],
- ["DF41",0x7A10],
- ["DEF7",0x7A11],
- ["DEFA",0x7A12],
- ["DEFE",0x7A13],
- ["B85A",0x7A14],
- ["DEFC",0x7A15],
- ["DEFB",0x7A17],
- ["DEF8",0x7A18],
- ["DEF9",0x7A19],
- ["B858",0x7A1A],
- ["DF40",0x7A1B],
- ["B857",0x7A1C],
- ["B85C",0x7A1E],
- ["B85B",0x7A1F],
- ["B859",0x7A20],
- ["DEFD",0x7A22],
- ["E349",0x7A26],
- ["E348",0x7A28],
- ["E344",0x7A2B],
- ["BAD8",0x7A2E],
- ["E347",0x7A2F],
- ["E346",0x7A30],
- ["BAD9",0x7A31],
- ["BD5E",0x7A37],
- ["E6D2",0x7A39],
- ["BD5F",0x7A3B],
- ["BD5B",0x7A3C],
- ["BD5D",0x7A3D],
- ["BD5A",0x7A3F],
- ["BD5C",0x7A40],
- ["EAAF",0x7A44],
- ["BF70",0x7A46],
- ["EAB1",0x7A47],
- ["EAB0",0x7A48],
- ["E345",0x7A4A],
- ["BF72",0x7A4B],
- ["BF71",0x7A4C],
- ["BF6E",0x7A4D],
- ["BF6F",0x7A4E],
- ["EDB5",0x7A54],
- ["EDB3",0x7A56],
- ["C14A",0x7A57],
- ["EDB4",0x7A58],
- ["EDB6",0x7A5A],
- ["EDB2",0x7A5B],
- ["EDB1",0x7A5C],
- ["F060",0x7A5F],
- ["C2AA",0x7A60],
- ["C2A8",0x7A61],
- ["C2A9",0x7A62],
- ["F2A6",0x7A67],
- ["F2A7",0x7A68],
- ["C3AD",0x7A69],
- ["C3AC",0x7A6B],
- ["F4A3",0x7A6C],
- ["F4A4",0x7A6D],
- ["F4A2",0x7A6E],
- ["F6F8",0x7A70],
- ["F6F9",0x7A71],
- ["A5DE",0x7A74],
- ["CA48",0x7A75],
- ["A873",0x7A76],
- ["CDA5",0x7A78],
- ["AAC6",0x7A79],
- ["AAC5",0x7A7A],
- ["CDA6",0x7A7B],
- ["D040",0x7A7E],
- ["ACEF",0x7A7F],
- ["CFFE",0x7A80],
- ["ACF0",0x7A81],
- ["AFB6",0x7A84],
- ["D2F8",0x7A85],
+ ["D2F1",0x79ED],
+ ["D2F2",0x79EA],
+ ["D2F3",0x79DC],
+ ["D2F4",0x79DE],
+ ["D2F5",0x79DD],
["D2F6",0x7A86],
- ["D2FC",0x7A87],
- ["AFB7",0x7A88],
["D2F7",0x7A89],
- ["D2FB",0x7A8A],
+ ["D2F8",0x7A85],
["D2F9",0x7A8B],
["D2FA",0x7A8C],
- ["D6C8",0x7A8F],
- ["D6CA",0x7A90],
- ["B2BF",0x7A92],
- ["D6C9",0x7A94],
- ["B2C0",0x7A95],
- ["B5A2",0x7A96],
- ["B5A1",0x7A97],
- ["B57E",0x7A98],
- ["DADB",0x7A99],
- ["DF44",0x7A9E],
- ["B85D",0x7A9F],
- ["B85E",0x7AA0],
- ["DF43",0x7AA2],
- ["DF42",0x7AA3],
- ["E34A",0x7AA8],
- ["BADB",0x7AA9],
- ["BADA",0x7AAA],
- ["E34B",0x7AAB],
- ["E34C",0x7AAC],
- ["BD61",0x7AAE],
- ["BD60",0x7AAF],
- ["EAB5",0x7AB1],
- ["E6D3",0x7AB2],
- ["E6D5",0x7AB3],
- ["E6D4",0x7AB4],
- ["EAB4",0x7AB5],
- ["EAB2",0x7AB6],
- ["EAB6",0x7AB7],
- ["EAB3",0x7AB8],
- ["BF73",0x7ABA],
- ["EDB7",0x7ABE],
- ["C14B",0x7ABF],
- ["EDB8",0x7AC0],
- ["EDB9",0x7AC1],
- ["C2AB",0x7AC4],
- ["C2AC",0x7AC5],
- ["C475",0x7AC7],
- ["C5D1",0x7ACA],
- ["A5DF",0x7ACB],
- ["D041",0x7AD1],
+ ["D2FB",0x7A8A],
+ ["D2FC",0x7A87],
["D2FD",0x7AD8],
- ["AFB8",0x7AD9],
- ["B3BA",0x7ADF],
- ["B3B9",0x7AE0],
- ["B5A4",0x7AE3],
- ["DADD",0x7AE4],
- ["B5A3",0x7AE5],
- ["DADC",0x7AE6],
- ["DF45",0x7AEB],
- ["BADC",0x7AED],
- ["E34D",0x7AEE],
- ["BADD",0x7AEF],
- ["C476",0x7AF6],
- ["F4A5",0x7AF7],
- ["A6CB",0x7AF9],
- ["AAC7",0x7AFA],
- ["CDA7",0x7AFB],
- ["ACF2",0x7AFD],
- ["ACF1",0x7AFF],
- ["D042",0x7B00],
- ["D043",0x7B01],
+ ["D2FE",0x7B10],
["D340",0x7B04],
+ ["D341",0x7B13],
["D342",0x7B05],
- ["AFB9",0x7B06],
+ ["D343",0x7B0F],
["D344",0x7B08],
- ["D347",0x7B09],
["D345",0x7B0A],
["D346",0x7B0E],
- ["D343",0x7B0F],
- ["D2FE",0x7B10],
- ["AFBA",0x7B11],
+ ["D347",0x7B09],
["D348",0x7B12],
- ["D341",0x7B13],
- ["D6D3",0x7B18],
- ["B2C6",0x7B19],
- ["D6DC",0x7B1A],
- ["B2C3",0x7B1B],
- ["D6D5",0x7B1D],
- ["B2C7",0x7B1E],
- ["B2C1",0x7B20],
+ ["D349",0x7C84],
+ ["D34A",0x7C91],
+ ["D34B",0x7C8A],
+ ["D34C",0x7C8C],
+ ["D34D",0x7C88],
+ ["D34E",0x7C8D],
+ ["D34F",0x7C85],
+ ["D350",0x7D1E],
+ ["D351",0x7D1D],
+ ["D352",0x7D11],
+ ["D353",0x7D0E],
+ ["D354",0x7D18],
+ ["D355",0x7D16],
+ ["D356",0x7D13],
+ ["D357",0x7D1F],
+ ["D358",0x7D12],
+ ["D359",0x7D0F],
+ ["D35A",0x7D0C],
+ ["D35B",0x7F5C],
+ ["D35C",0x7F61],
+ ["D35D",0x7F5E],
+ ["D35E",0x7F60],
+ ["D35F",0x7F5D],
+ ["D360",0x7F5B],
+ ["D361",0x7F96],
+ ["D362",0x7F92],
+ ["D363",0x7FC3],
+ ["D364",0x7FC2],
+ ["D365",0x7FC0],
+ ["D366",0x8016],
+ ["D367",0x803E],
+ ["D368",0x8039],
+ ["D369",0x80FA],
+ ["D36A",0x80F2],
+ ["D36B",0x80F9],
+ ["D36C",0x80F5],
+ ["D36D",0x8101],
+ ["D36E",0x80FB],
+ ["D36F",0x8100],
+ ["D370",0x8201],
+ ["D371",0x822F],
+ ["D372",0x8225],
+ ["D373",0x8333],
+ ["D374",0x832D],
+ ["D375",0x8344],
+ ["D376",0x8319],
+ ["D377",0x8351],
+ ["D378",0x8325],
+ ["D379",0x8356],
+ ["D37A",0x833F],
+ ["D37B",0x8341],
+ ["D37C",0x8326],
+ ["D37D",0x831C],
+ ["D37E",0x8322],
+ ["D3A1",0x8342],
+ ["D3A2",0x834E],
+ ["D3A3",0x831B],
+ ["D3A4",0x832A],
+ ["D3A5",0x8308],
+ ["D3A6",0x833C],
+ ["D3A7",0x834D],
+ ["D3A8",0x8316],
+ ["D3A9",0x8324],
+ ["D3AA",0x8320],
+ ["D3AB",0x8337],
+ ["D3AC",0x832F],
+ ["D3AD",0x8329],
+ ["D3AE",0x8347],
+ ["D3AF",0x8345],
+ ["D3B0",0x834C],
+ ["D3B1",0x8353],
+ ["D3B2",0x831E],
+ ["D3B3",0x832C],
+ ["D3B4",0x834B],
+ ["D3B5",0x8327],
+ ["D3B6",0x8348],
+ ["D3B7",0x8653],
+ ["D3B8",0x8652],
+ ["D3B9",0x86A2],
+ ["D3BA",0x86A8],
+ ["D3BB",0x8696],
+ ["D3BC",0x868D],
+ ["D3BD",0x8691],
+ ["D3BE",0x869E],
+ ["D3BF",0x8687],
+ ["D3C0",0x8697],
+ ["D3C1",0x8686],
+ ["D3C2",0x868B],
+ ["D3C3",0x869A],
+ ["D3C4",0x8685],
+ ["D3C5",0x86A5],
+ ["D3C6",0x8699],
+ ["D3C7",0x86A1],
+ ["D3C8",0x86A7],
+ ["D3C9",0x8695],
+ ["D3CA",0x8698],
+ ["D3CB",0x868E],
+ ["D3CC",0x869D],
+ ["D3CD",0x8690],
+ ["D3CE",0x8694],
+ ["D3CF",0x8843],
+ ["D3D0",0x8844],
+ ["D3D1",0x886D],
+ ["D3D2",0x8875],
+ ["D3D3",0x8876],
+ ["D3D4",0x8872],
+ ["D3D5",0x8880],
+ ["D3D6",0x8871],
+ ["D3D7",0x887F],
+ ["D3D8",0x886F],
+ ["D3D9",0x8883],
+ ["D3DA",0x887E],
+ ["D3DB",0x8874],
+ ["D3DC",0x887C],
+ ["D3DD",0x8A12],
+ ["D3DE",0x8C47],
+ ["D3DF",0x8C57],
+ ["D3E0",0x8C7B],
+ ["D3E1",0x8CA4],
+ ["D3E2",0x8CA3],
+ ["D3E3",0x8D76],
+ ["D3E4",0x8D78],
+ ["D3E5",0x8DB5],
+ ["D3E6",0x8DB7],
+ ["D3E7",0x8DB6],
+ ["D3E8",0x8ED1],
+ ["D3E9",0x8ED3],
+ ["D3EA",0x8FFE],
+ ["D3EB",0x8FF5],
+ ["D3EC",0x9002],
+ ["D3ED",0x8FFF],
+ ["D3EE",0x8FFB],
+ ["D3EF",0x9004],
+ ["D3F0",0x8FFC],
+ ["D3F1",0x8FF6],
+ ["D3F2",0x90D6],
+ ["D3F3",0x90E0],
+ ["D3F4",0x90D9],
+ ["D3F5",0x90DA],
+ ["D3F6",0x90E3],
+ ["D3F7",0x90DF],
+ ["D3F8",0x90E5],
+ ["D3F9",0x90D8],
+ ["D3FA",0x90DB],
+ ["D3FB",0x90D7],
+ ["D3FC",0x90DC],
+ ["D3FD",0x90E4],
+ ["D3FE",0x9150],
+ ["D440",0x914E],
+ ["D441",0x914F],
+ ["D442",0x91D5],
+ ["D443",0x91E2],
+ ["D444",0x91DA],
+ ["D445",0x965C],
+ ["D446",0x965F],
+ ["D447",0x96BC],
+ ["D448",0x98E3],
+ ["D449",0x9ADF],
+ ["D44A",0x9B2F],
+ ["D44B",0x4E7F],
+ ["D44C",0x5070],
+ ["D44D",0x506A],
+ ["D44E",0x5061],
+ ["D44F",0x505E],
+ ["D450",0x5060],
+ ["D451",0x5053],
+ ["D452",0x504B],
+ ["D453",0x505D],
+ ["D454",0x5072],
+ ["D455",0x5048],
+ ["D456",0x504D],
+ ["D457",0x5041],
+ ["D458",0x505B],
+ ["D459",0x504A],
+ ["D45A",0x5062],
+ ["D45B",0x5015],
+ ["D45C",0x5045],
+ ["D45D",0x505F],
+ ["D45E",0x5069],
+ ["D45F",0x506B],
+ ["D460",0x5063],
+ ["D461",0x5064],
+ ["D462",0x5046],
+ ["D463",0x5040],
+ ["D464",0x506E],
+ ["D465",0x5073],
+ ["D466",0x5057],
+ ["D467",0x5051],
+ ["D468",0x51D0],
+ ["D469",0x526B],
+ ["D46A",0x526D],
+ ["D46B",0x526C],
+ ["D46C",0x526E],
+ ["D46D",0x52D6],
+ ["D46E",0x52D3],
+ ["D46F",0x532D],
+ ["D470",0x539C],
+ ["D471",0x5575],
+ ["D472",0x5576],
+ ["D473",0x553C],
+ ["D474",0x554D],
+ ["D475",0x5550],
+ ["D476",0x5534],
+ ["D477",0x552A],
+ ["D478",0x5551],
+ ["D479",0x5562],
+ ["D47A",0x5536],
+ ["D47B",0x5535],
+ ["D47C",0x5530],
+ ["D47D",0x5552],
+ ["D47E",0x5545],
+ ["D4A1",0x550C],
+ ["D4A2",0x5532],
+ ["D4A3",0x5565],
+ ["D4A4",0x554E],
+ ["D4A5",0x5539],
+ ["D4A6",0x5548],
+ ["D4A7",0x552D],
+ ["D4A8",0x553B],
+ ["D4A9",0x5540],
+ ["D4AA",0x554B],
+ ["D4AB",0x570A],
+ ["D4AC",0x5707],
+ ["D4AD",0x57FB],
+ ["D4AE",0x5814],
+ ["D4AF",0x57E2],
+ ["D4B0",0x57F6],
+ ["D4B1",0x57DC],
+ ["D4B2",0x57F4],
+ ["D4B3",0x5800],
+ ["D4B4",0x57ED],
+ ["D4B5",0x57FD],
+ ["D4B6",0x5808],
+ ["D4B7",0x57F8],
+ ["D4B8",0x580B],
+ ["D4B9",0x57F3],
+ ["D4BA",0x57CF],
+ ["D4BB",0x5807],
+ ["D4BC",0x57EE],
+ ["D4BD",0x57E3],
+ ["D4BE",0x57F2],
+ ["D4BF",0x57E5],
+ ["D4C0",0x57EC],
+ ["D4C1",0x57E1],
+ ["D4C2",0x580E],
+ ["D4C3",0x57FC],
+ ["D4C4",0x5810],
+ ["D4C5",0x57E7],
+ ["D4C6",0x5801],
+ ["D4C7",0x580C],
+ ["D4C8",0x57F1],
+ ["D4C9",0x57E9],
+ ["D4CA",0x57F0],
+ ["D4CB",0x580D],
+ ["D4CC",0x5804],
+ ["D4CD",0x595C],
+ ["D4CE",0x5A60],
+ ["D4CF",0x5A58],
+ ["D4D0",0x5A55],
+ ["D4D1",0x5A67],
+ ["D4D2",0x5A5E],
+ ["D4D3",0x5A38],
+ ["D4D4",0x5A35],
+ ["D4D5",0x5A6D],
+ ["D4D6",0x5A50],
+ ["D4D7",0x5A5F],
+ ["D4D8",0x5A65],
+ ["D4D9",0x5A6C],
+ ["D4DA",0x5A53],
+ ["D4DB",0x5A64],
+ ["D4DC",0x5A57],
+ ["D4DD",0x5A43],
+ ["D4DE",0x5A5D],
+ ["D4DF",0x5A52],
+ ["D4E0",0x5A44],
+ ["D4E1",0x5A5B],
+ ["D4E2",0x5A48],
+ ["D4E3",0x5A8E],
+ ["D4E4",0x5A3E],
+ ["D4E5",0x5A4D],
+ ["D4E6",0x5A39],
+ ["D4E7",0x5A4C],
+ ["D4E8",0x5A70],
+ ["D4E9",0x5A69],
+ ["D4EA",0x5A47],
+ ["D4EB",0x5A51],
+ ["D4EC",0x5A56],
+ ["D4ED",0x5A42],
+ ["D4EE",0x5A5C],
+ ["D4EF",0x5B72],
+ ["D4F0",0x5B6E],
+ ["D4F1",0x5BC1],
+ ["D4F2",0x5BC0],
+ ["D4F3",0x5C59],
+ ["D4F4",0x5D1E],
+ ["D4F5",0x5D0B],
+ ["D4F6",0x5D1D],
+ ["D4F7",0x5D1A],
+ ["D4F8",0x5D20],
+ ["D4F9",0x5D0C],
+ ["D4FA",0x5D28],
+ ["D4FB",0x5D0D],
+ ["D4FC",0x5D26],
+ ["D4FD",0x5D25],
+ ["D4FE",0x5D0F],
+ ["D540",0x5D30],
+ ["D541",0x5D12],
+ ["D542",0x5D23],
+ ["D543",0x5D1F],
+ ["D544",0x5D2E],
+ ["D545",0x5E3E],
+ ["D546",0x5E34],
+ ["D547",0x5EB1],
+ ["D548",0x5EB4],
+ ["D549",0x5EB9],
+ ["D54A",0x5EB2],
+ ["D54B",0x5EB3],
+ ["D54C",0x5F36],
+ ["D54D",0x5F38],
+ ["D54E",0x5F9B],
+ ["D54F",0x5F96],
+ ["D550",0x5F9F],
+ ["D551",0x608A],
+ ["D552",0x6090],
+ ["D553",0x6086],
+ ["D554",0x60BE],
+ ["D555",0x60B0],
+ ["D556",0x60BA],
+ ["D557",0x60D3],
+ ["D558",0x60D4],
+ ["D559",0x60CF],
+ ["D55A",0x60E4],
+ ["D55B",0x60D9],
+ ["D55C",0x60DD],
+ ["D55D",0x60C8],
+ ["D55E",0x60B1],
+ ["D55F",0x60DB],
+ ["D560",0x60B7],
+ ["D561",0x60CA],
+ ["D562",0x60BF],
+ ["D563",0x60C3],
+ ["D564",0x60CD],
+ ["D565",0x60C0],
+ ["D566",0x6332],
+ ["D567",0x6365],
+ ["D568",0x638A],
+ ["D569",0x6382],
+ ["D56A",0x637D],
+ ["D56B",0x63BD],
+ ["D56C",0x639E],
+ ["D56D",0x63AD],
+ ["D56E",0x639D],
+ ["D56F",0x6397],
+ ["D570",0x63AB],
+ ["D571",0x638E],
+ ["D572",0x636F],
+ ["D573",0x6387],
+ ["D574",0x6390],
+ ["D575",0x636E],
+ ["D576",0x63AF],
+ ["D577",0x6375],
+ ["D578",0x639C],
+ ["D579",0x636D],
+ ["D57A",0x63AE],
+ ["D57B",0x637C],
+ ["D57C",0x63A4],
+ ["D57D",0x633B],
+ ["D57E",0x639F],
+ ["D5A1",0x6378],
+ ["D5A2",0x6385],
+ ["D5A3",0x6381],
+ ["D5A4",0x6391],
+ ["D5A5",0x638D],
+ ["D5A6",0x6370],
+ ["D5A7",0x6553],
+ ["D5A8",0x65CD],
+ ["D5A9",0x6665],
+ ["D5AA",0x6661],
+ ["D5AB",0x665B],
+ ["D5AC",0x6659],
+ ["D5AD",0x665C],
+ ["D5AE",0x6662],
+ ["D5AF",0x6718],
+ ["D5B0",0x6879],
+ ["D5B1",0x6887],
+ ["D5B2",0x6890],
+ ["D5B3",0x689C],
+ ["D5B4",0x686D],
+ ["D5B5",0x686E],
+ ["D5B6",0x68AE],
+ ["D5B7",0x68AB],
+ ["D5B8",0x6956],
+ ["D5B9",0x686F],
+ ["D5BA",0x68A3],
+ ["D5BB",0x68AC],
+ ["D5BC",0x68A9],
+ ["D5BD",0x6875],
+ ["D5BE",0x6874],
+ ["D5BF",0x68B2],
+ ["D5C0",0x688F],
+ ["D5C1",0x6877],
+ ["D5C2",0x6892],
+ ["D5C3",0x687C],
+ ["D5C4",0x686B],
+ ["D5C5",0x6872],
+ ["D5C6",0x68AA],
+ ["D5C7",0x6880],
+ ["D5C8",0x6871],
+ ["D5C9",0x687E],
+ ["D5CA",0x689B],
+ ["D5CB",0x6896],
+ ["D5CC",0x688B],
+ ["D5CD",0x68A0],
+ ["D5CE",0x6889],
+ ["D5CF",0x68A4],
+ ["D5D0",0x6878],
+ ["D5D1",0x687B],
+ ["D5D2",0x6891],
+ ["D5D3",0x688C],
+ ["D5D4",0x688A],
+ ["D5D5",0x687D],
+ ["D5D6",0x6B36],
+ ["D5D7",0x6B33],
+ ["D5D8",0x6B37],
+ ["D5D9",0x6B38],
+ ["D5DA",0x6B91],
+ ["D5DB",0x6B8F],
+ ["D5DC",0x6B8D],
+ ["D5DD",0x6B8E],
+ ["D5DE",0x6B8C],
+ ["D5DF",0x6C2A],
+ ["D5E0",0x6DC0],
+ ["D5E1",0x6DAB],
+ ["D5E2",0x6DB4],
+ ["D5E3",0x6DB3],
+ ["D5E4",0x6E74],
+ ["D5E5",0x6DAC],
+ ["D5E6",0x6DE9],
+ ["D5E7",0x6DE2],
+ ["D5E8",0x6DB7],
+ ["D5E9",0x6DF6],
+ ["D5EA",0x6DD4],
+ ["D5EB",0x6E00],
+ ["D5EC",0x6DC8],
+ ["D5ED",0x6DE0],
+ ["D5EE",0x6DDF],
+ ["D5EF",0x6DD6],
+ ["D5F0",0x6DBE],
+ ["D5F1",0x6DE5],
+ ["D5F2",0x6DDC],
+ ["D5F3",0x6DDD],
+ ["D5F4",0x6DDB],
+ ["D5F5",0x6DF4],
+ ["D5F6",0x6DCA],
+ ["D5F7",0x6DBD],
+ ["D5F8",0x6DED],
+ ["D5F9",0x6DF0],
+ ["D5FA",0x6DBA],
+ ["D5FB",0x6DD5],
+ ["D5FC",0x6DC2],
+ ["D5FD",0x6DCF],
+ ["D5FE",0x6DC9],
+ ["D640",0x6DD0],
+ ["D641",0x6DF2],
+ ["D642",0x6DD3],
+ ["D643",0x6DFD],
+ ["D644",0x6DD7],
+ ["D645",0x6DCD],
+ ["D646",0x6DE3],
+ ["D647",0x6DBB],
+ ["D648",0x70FA],
+ ["D649",0x710D],
+ ["D64A",0x70F7],
+ ["D64B",0x7117],
+ ["D64C",0x70F4],
+ ["D64D",0x710C],
+ ["D64E",0x70F0],
+ ["D64F",0x7104],
+ ["D650",0x70F3],
+ ["D651",0x7110],
+ ["D652",0x70FC],
+ ["D653",0x70FF],
+ ["D654",0x7106],
+ ["D655",0x7113],
+ ["D656",0x7100],
+ ["D657",0x70F8],
+ ["D658",0x70F6],
+ ["D659",0x710B],
+ ["D65A",0x7102],
+ ["D65B",0x710E],
+ ["D65C",0x727E],
+ ["D65D",0x727B],
+ ["D65E",0x727C],
+ ["D65F",0x727F],
+ ["D660",0x731D],
+ ["D661",0x7317],
+ ["D662",0x7307],
+ ["D663",0x7311],
+ ["D664",0x7318],
+ ["D665",0x730A],
+ ["D666",0x7308],
+ ["D667",0x72FF],
+ ["D668",0x730F],
+ ["D669",0x731E],
+ ["D66A",0x7388],
+ ["D66B",0x73F6],
+ ["D66C",0x73F8],
+ ["D66D",0x73F5],
+ ["D66E",0x7404],
+ ["D66F",0x7401],
+ ["D670",0x73FD],
+ ["D671",0x7407],
+ ["D672",0x7400],
+ ["D673",0x73FA],
+ ["D674",0x73FC],
+ ["D675",0x73FF],
+ ["D676",0x740C],
+ ["D677",0x740B],
+ ["D678",0x73F4],
+ ["D679",0x7408],
+ ["D67A",0x7564],
+ ["D67B",0x7563],
+ ["D67C",0x75CE],
+ ["D67D",0x75D2],
+ ["D67E",0x75CF],
+ ["D6A1",0x75CB],
+ ["D6A2",0x75CC],
+ ["D6A3",0x75D1],
+ ["D6A4",0x75D0],
+ ["D6A5",0x768F],
+ ["D6A6",0x7689],
+ ["D6A7",0x76D3],
+ ["D6A8",0x7739],
+ ["D6A9",0x772F],
+ ["D6AA",0x772D],
+ ["D6AB",0x7731],
+ ["D6AC",0x7732],
+ ["D6AD",0x7734],
+ ["D6AE",0x7733],
+ ["D6AF",0x773D],
+ ["D6B0",0x7725],
+ ["D6B1",0x773B],
+ ["D6B2",0x7735],
+ ["D6B3",0x7848],
+ ["D6B4",0x7852],
+ ["D6B5",0x7849],
+ ["D6B6",0x784D],
+ ["D6B7",0x784A],
+ ["D6B8",0x784C],
+ ["D6B9",0x7826],
+ ["D6BA",0x7845],
+ ["D6BB",0x7850],
+ ["D6BC",0x7964],
+ ["D6BD",0x7967],
+ ["D6BE",0x7969],
+ ["D6BF",0x796A],
+ ["D6C0",0x7963],
+ ["D6C1",0x796B],
+ ["D6C2",0x7961],
+ ["D6C3",0x79BB],
+ ["D6C4",0x79FA],
+ ["D6C5",0x79F8],
+ ["D6C6",0x79F6],
+ ["D6C7",0x79F7],
+ ["D6C8",0x7A8F],
+ ["D6C9",0x7A94],
+ ["D6CA",0x7A90],
+ ["D6CB",0x7B35],
+ ["D6CC",0x7B47],
+ ["D6CD",0x7B34],
+ ["D6CE",0x7B25],
+ ["D6CF",0x7B30],
["D6D0",0x7B22],
- ["D6DD",0x7B23],
["D6D1",0x7B24],
- ["D6CE",0x7B25],
- ["B2C5",0x7B26],
- ["B2C2",0x7B28],
+ ["D6D2",0x7B33],
+ ["D6D3",0x7B18],
["D6D4",0x7B2A],
+ ["D6D5",0x7B1D],
+ ["D6D6",0x7B31],
["D6D7",0x7B2B],
- ["B2C4",0x7B2C],
["D6D8",0x7B2D],
- ["B2C8",0x7B2E],
["D6D9",0x7B2F],
- ["D6CF",0x7B30],
- ["D6D6",0x7B31],
["D6DA",0x7B32],
- ["D6D2",0x7B33],
- ["D6CD",0x7B34],
- ["D6CB",0x7B35],
["D6DB",0x7B38],
- ["DADF",0x7B3B],
- ["DAE4",0x7B40],
- ["DAE0",0x7B44],
- ["DAE6",0x7B45],
- ["B5A7",0x7B46],
- ["D6CC",0x7B47],
- ["DAE1",0x7B48],
- ["B5A5",0x7B49],
- ["DADE",0x7B4A],
- ["B5AC",0x7B4B],
- ["DAE2",0x7B4C],
- ["B5AB",0x7B4D],
- ["DAE3",0x7B4E],
- ["B5AD",0x7B4F],
- ["B5A8",0x7B50],
- ["B5AE",0x7B51],
- ["B5A9",0x7B52],
- ["B5AA",0x7B54],
- ["B5A6",0x7B56],
- ["DAE5",0x7B58],
- ["B861",0x7B60],
- ["DF50",0x7B61],
- ["DF53",0x7B63],
- ["DF47",0x7B64],
- ["DF4C",0x7B65],
- ["DF46",0x7B66],
- ["B863",0x7B67],
- ["DF4A",0x7B69],
- ["DF48",0x7B6D],
- ["B862",0x7B6E],
- ["DF4F",0x7B70],
- ["DF4E",0x7B71],
- ["DF4B",0x7B72],
- ["DF4D",0x7B73],
- ["DF49",0x7B74],
- ["BAE1",0x7B75],
- ["DF52",0x7B76],
- ["B85F",0x7B77],
- ["DF51",0x7B78],
- ["E35D",0x7B82],
- ["BAE8",0x7B84],
- ["E358",0x7B85],
- ["BAE7",0x7B87],
- ["E34E",0x7B88],
- ["E350",0x7B8A],
- ["BAE0",0x7B8B],
- ["E355",0x7B8C],
- ["E354",0x7B8D],
- ["E357",0x7B8E],
- ["BAE5",0x7B8F],
- ["E352",0x7B90],
- ["E351",0x7B91],
- ["BAE4",0x7B94],
- ["BADF",0x7B95],
- ["E353",0x7B96],
- ["BAE2",0x7B97],
- ["E359",0x7B98],
- ["E35B",0x7B99],
- ["E356",0x7B9B],
- ["E34F",0x7B9C],
- ["BAE3",0x7B9D],
- ["BD69",0x7BA0],
- ["BADE",0x7BA1],
- ["E35C",0x7BA4],
- ["E6D9",0x7BAC],
- ["BD62",0x7BAD],
- ["E6DB",0x7BAF],
- ["BD63",0x7BB1],
- ["BD65",0x7BB4],
- ["E6DE",0x7BB5],
- ["E6D6",0x7BB7],
- ["BAE6",0x7BB8],
- ["E6DC",0x7BB9],
- ["E6D8",0x7BBE],
- ["B860",0x7BC0],
- ["BD68",0x7BC1],
- ["BD64",0x7BC4],
- ["BD66",0x7BC6],
- ["BD67",0x7BC7],
- ["BF76",0x7BC9],
- ["E6DD",0x7BCA],
- ["E6D7",0x7BCB],
- ["BD6A",0x7BCC],
- ["E6DA",0x7BCE],
- ["EAC0",0x7BD4],
- ["EABB",0x7BD5],
- ["EAC5",0x7BD8],
- ["BF74",0x7BD9],
- ["EABD",0x7BDA],
- ["BF78",0x7BDB],
- ["EAC3",0x7BDC],
- ["EABA",0x7BDD],
- ["EAB7",0x7BDE],
- ["EAC6",0x7BDF],
- ["C151",0x7BE0],
- ["BF79",0x7BE1],
- ["EAC2",0x7BE2],
- ["EAB8",0x7BE3],
- ["BF77",0x7BE4],
- ["EABC",0x7BE5],
- ["BF7B",0x7BE6],
- ["EAB9",0x7BE7],
- ["EABE",0x7BE8],
- ["BF7A",0x7BE9],
- ["EAC1",0x7BEA],
- ["EAC4",0x7BEB],
- ["EDCB",0x7BF0],
- ["EDCC",0x7BF1],
- ["EDBC",0x7BF2],
- ["EDC3",0x7BF3],
- ["EDC1",0x7BF4],
- ["C14F",0x7BF7],
- ["EDC8",0x7BF8],
- ["EABF",0x7BF9],
- ["EDBF",0x7BFB],
- ["EDC9",0x7BFD],
- ["C14E",0x7BFE],
- ["EDBE",0x7BFF],
- ["EDBD",0x7C00],
- ["EDC7",0x7C01],
- ["EDC4",0x7C02],
- ["EDC6",0x7C03],
- ["EDBA",0x7C05],
- ["EDCA",0x7C06],
- ["C14C",0x7C07],
- ["EDC5",0x7C09],
- ["EDCE",0x7C0A],
- ["EDC2",0x7C0B],
- ["C150",0x7C0C],
- ["C14D",0x7C0D],
- ["EDC0",0x7C0E],
- ["EDBB",0x7C0F],
- ["EDCD",0x7C10],
- ["BF75",0x7C11],
- ["F063",0x7C19],
- ["F061",0x7C1C],
- ["F067",0x7C1D],
- ["C2B0",0x7C1E],
- ["F065",0x7C1F],
- ["F064",0x7C20],
- ["C2B2",0x7C21],
- ["F06A",0x7C22],
- ["C2B1",0x7C23],
- ["F06B",0x7C25],
- ["F068",0x7C26],
- ["C2AE",0x7C27],
- ["F069",0x7C28],
- ["F062",0x7C29],
- ["C2AF",0x7C2A],
- ["C2AD",0x7C2B],
- ["F2AB",0x7C2C],
- ["F066",0x7C2D],
- ["F06C",0x7C30],
- ["F2A8",0x7C33],
- ["C3B2",0x7C37],
- ["C3B0",0x7C38],
- ["F2AA",0x7C39],
- ["F2AC",0x7C3B],
- ["F2A9",0x7C3C],
- ["C3B1",0x7C3D],
- ["C3AE",0x7C3E],
- ["C3AF",0x7C3F],
- ["C3B3",0x7C40],
- ["C478",0x7C43],
- ["F4AA",0x7C45],
- ["F4A9",0x7C47],
- ["F4A7",0x7C48],
- ["F4A6",0x7C49],
- ["F4A8",0x7C4A],
- ["C477",0x7C4C],
- ["C479",0x7C4D],
- ["C4F0",0x7C50],
- ["F5E5",0x7C53],
- ["F5E4",0x7C54],
- ["F6FA",0x7C57],
- ["F6FC",0x7C59],
- ["F6FE",0x7C5A],
- ["F6FD",0x7C5B],
- ["F6FB",0x7C5C],
- ["C5A3",0x7C5F],
- ["C5A2",0x7C60],
- ["C5D3",0x7C63],
- ["C5D2",0x7C64],
- ["C5D4",0x7C65],
- ["F7ED",0x7C66],
- ["F7EC",0x7C67],
- ["F8FB",0x7C69],
- ["F8B8",0x7C6A],
- ["F8FC",0x7C6B],
- ["C658",0x7C6C],
- ["C659",0x7C6E],
- ["F96D",0x7C6F],
- ["C67E",0x7C72],
- ["A6CC",0x7C73],
- ["CDA8",0x7C75],
- ["D045",0x7C78],
- ["D046",0x7C79],
- ["D044",0x7C7A],
- ["ACF3",0x7C7D],
- ["D047",0x7C7F],
- ["D048",0x7C80],
- ["D049",0x7C81],
- ["D349",0x7C84],
- ["D34F",0x7C85],
- ["D34D",0x7C88],
- ["AFBB",0x7C89],
- ["D34B",0x7C8A],
- ["D34C",0x7C8C],
- ["D34E",0x7C8D],
- ["D34A",0x7C91],
- ["B2C9",0x7C92],
+ ["D6DC",0x7B1A],
+ ["D6DD",0x7B23],
["D6DE",0x7C94],
- ["B2CB",0x7C95],
- ["D6E0",0x7C96],
- ["B2CA",0x7C97],
["D6DF",0x7C98],
- ["DAE8",0x7C9E],
- ["B5AF",0x7C9F],
- ["DAEA",0x7CA1],
- ["DAE7",0x7CA2],
+ ["D6E0",0x7C96],
["D6E1",0x7CA3],
- ["B5B0",0x7CA5],
- ["DAE9",0x7CA8],
- ["DF56",0x7CAF],
- ["B864",0x7CB1],
- ["DF54",0x7CB2],
- ["B865",0x7CB3],
- ["DF55",0x7CB4],
- ["B866",0x7CB5],
- ["BAE9",0x7CB9],
- ["E361",0x7CBA],
- ["E35E",0x7CBB],
- ["E360",0x7CBC],
- ["BAEA",0x7CBD],
- ["BAEB",0x7CBE],
- ["E35F",0x7CBF],
- ["E6DF",0x7CC5],
- ["E6E0",0x7CC8],
- ["BD6B",0x7CCA],
- ["E6E2",0x7CCB],
- ["E6E1",0x7CCC],
- ["A261",0x7CCE],
- ["EACA",0x7CD0],
- ["EACB",0x7CD1],
- ["EAC7",0x7CD2],
- ["EAC8",0x7CD4],
- ["BF7C",0x7CD5],
- ["BF7D",0x7CD6],
- ["EAC9",0x7CD7],
- ["C157",0x7CD9],
- ["C153",0x7CDC],
- ["C158",0x7CDD],
- ["C154",0x7CDE],
- ["C156",0x7CDF],
- ["C152",0x7CE0],
- ["C155",0x7CE2],
- ["C2B3",0x7CE7],
- ["EDCF",0x7CE8],
- ["F2AE",0x7CEA],
- ["F2AD",0x7CEC],
- ["F4AB",0x7CEE],
- ["C47A",0x7CEF],
- ["C47B",0x7CF0],
- ["F741",0x7CF1],
- ["F5E6",0x7CF2],
- ["F740",0x7CF4],
- ["F8FD",0x7CF6],
- ["F9A4",0x7CF7],
- ["A6CD",0x7CF8],
- ["A874",0x7CFB],
- ["CDA9",0x7CFD],
- ["AAC8",0x7CFE],
- ["ACF6",0x7D00],
- ["D04C",0x7D01],
- ["ACF4",0x7D02],
- ["D04A",0x7D03],
- ["ACF9",0x7D04],
- ["ACF5",0x7D05],
- ["ACFA",0x7D06],
- ["ACF8",0x7D07],
- ["D04B",0x7D08],
- ["ACF7",0x7D09],
- ["AFBF",0x7D0A],
- ["AFBE",0x7D0B],
- ["D35A",0x7D0C],
- ["AFC7",0x7D0D],
- ["D353",0x7D0E],
- ["D359",0x7D0F],
- ["AFC3",0x7D10],
- ["D352",0x7D11],
- ["D358",0x7D12],
- ["D356",0x7D13],
- ["AFC2",0x7D14],
- ["AFC4",0x7D15],
- ["D355",0x7D16],
- ["AFBD",0x7D17],
- ["D354",0x7D18],
- ["AFC8",0x7D19],
- ["AFC5",0x7D1A],
- ["AFC9",0x7D1B],
- ["AFC6",0x7D1C],
- ["D351",0x7D1D],
- ["D350",0x7D1E],
- ["D357",0x7D1F],
- ["AFC0",0x7D20],
- ["AFBC",0x7D21],
- ["AFC1",0x7D22],
- ["D6F0",0x7D28],
- ["D6E9",0x7D29],
- ["B5B5",0x7D2B],
- ["D6E8",0x7D2C],
- ["B2CF",0x7D2E],
- ["B2D6",0x7D2F],
- ["B2D3",0x7D30],
- ["B2D9",0x7D31],
- ["B2D8",0x7D32],
- ["B2D4",0x7D33],
["D6E2",0x7D35],
- ["D6E5",0x7D36],
+ ["D6E3",0x7D3D],
["D6E4",0x7D38],
- ["B2D0",0x7D39],
+ ["D6E5",0x7D36],
["D6E6",0x7D3A],
- ["D6EF",0x7D3B],
- ["B2D1",0x7D3C],
- ["D6E3",0x7D3D],
- ["D6EC",0x7D3E],
- ["D6ED",0x7D3F],
- ["B2D2",0x7D40],
- ["D6EA",0x7D41],
- ["B2D7",0x7D42],
- ["B2CD",0x7D43],
- ["B2D5",0x7D44],
["D6E7",0x7D45],
- ["B2CC",0x7D46],
+ ["D6E8",0x7D2C],
+ ["D6E9",0x7D29],
+ ["D6EA",0x7D41],
["D6EB",0x7D47],
+ ["D6EC",0x7D3E],
+ ["D6ED",0x7D3F],
["D6EE",0x7D4A],
- ["DAFB",0x7D4E],
- ["DAF2",0x7D4F],
- ["B5B2",0x7D50],
- ["DAF9",0x7D51],
- ["DAF6",0x7D52],
- ["DAEE",0x7D53],
- ["DAF7",0x7D54],
- ["B5B4",0x7D55],
- ["DAEF",0x7D56],
- ["DAEB",0x7D58],
- ["B86C",0x7D5B],
- ["DAF4",0x7D5C],
- ["B5B1",0x7D5E],
- ["DAFA",0x7D5F],
- ["B5B8",0x7D61],
- ["B5BA",0x7D62],
- ["DAED",0x7D63],
- ["B5B9",0x7D66],
- ["DAF0",0x7D67],
- ["B5B3",0x7D68],
- ["DAF8",0x7D69],
- ["DAF1",0x7D6A],
- ["DAF5",0x7D6B],
- ["DAF3",0x7D6D],
- ["B5B6",0x7D6E],
- ["DAEC",0x7D6F],
- ["B5BB",0x7D70],
- ["B2CE",0x7D71],
- ["B5B7",0x7D72],
- ["B5BC",0x7D73],
- ["B868",0x7D79],
- ["DF5D",0x7D7A],
- ["DF5F",0x7D7B],
- ["DF61",0x7D7C],
- ["DF65",0x7D7D],
- ["DF5B",0x7D7F],
- ["DF59",0x7D80],
- ["B86A",0x7D81],
- ["DF60",0x7D83],
- ["DF64",0x7D84],
- ["DF5C",0x7D85],
- ["DF58",0x7D86],
- ["DF57",0x7D88],
- ["DF62",0x7D8C],
- ["DF5A",0x7D8D],
- ["DF5E",0x7D8E],
- ["B86B",0x7D8F],
- ["B869",0x7D91],
- ["DF66",0x7D92],
- ["B867",0x7D93],
- ["DF63",0x7D94],
- ["E372",0x7D96],
- ["BAEE",0x7D9C],
- ["E36A",0x7D9D],
- ["BD78",0x7D9E],
- ["E374",0x7D9F],
- ["BAF1",0x7DA0],
- ["E378",0x7DA1],
- ["BAF7",0x7DA2],
- ["E365",0x7DA3],
- ["E375",0x7DA6],
- ["E362",0x7DA7],
- ["E377",0x7DA9],
- ["E366",0x7DAA],
- ["BAFE",0x7DAC],
- ["BAFB",0x7DAD],
- ["E376",0x7DAE],
- ["E370",0x7DAF],
- ["BAED",0x7DB0],
- ["BAF5",0x7DB1],
- ["BAF4",0x7DB2],
- ["BAF3",0x7DB4],
- ["BAF9",0x7DB5],
- ["E363",0x7DB7],
- ["BAFA",0x7DB8],
- ["E371",0x7DB9],
- ["BAF6",0x7DBA],
- ["BAEC",0x7DBB],
- ["E373",0x7DBC],
- ["BAEF",0x7DBD],
- ["BAF0",0x7DBE],
- ["BAF8",0x7DBF],
- ["E368",0x7DC0],
- ["E367",0x7DC1],
- ["E364",0x7DC2],
- ["E36C",0x7DC4],
- ["E369",0x7DC5],
- ["E36D",0x7DC6],
- ["BAFD",0x7DC7],
- ["E379",0x7DC9],
- ["BAF2",0x7DCA],
- ["E36E",0x7DCB],
- ["E36F",0x7DCC],
- ["E36B",0x7DCE],
- ["BAFC",0x7DD2],
- ["E6E7",0x7DD7],
- ["BD70",0x7DD8],
- ["BD79",0x7DD9],
- ["BD75",0x7DDA],
- ["E6E4",0x7DDB],
- ["BD72",0x7DDD],
- ["BD76",0x7DDE],
- ["E6F0",0x7DDF],
- ["BD6C",0x7DE0],
- ["E6E8",0x7DE1],
- ["BD74",0x7DE3],
- ["E6EB",0x7DE6],
- ["E6E6",0x7DE7],
- ["BD73",0x7DE8],
- ["BD77",0x7DE9],
- ["E6E5",0x7DEA],
- ["BD71",0x7DEC],
- ["E6EF",0x7DEE],
- ["BD6E",0x7DEF],
- ["E6EE",0x7DF0],
- ["E6ED",0x7DF1],
- ["BD7A",0x7DF2],
- ["E572",0x7DF3],
- ["BD6D",0x7DF4],
- ["E6EC",0x7DF6],
- ["E6E3",0x7DF7],
- ["BD7B",0x7DF9],
- ["E6EA",0x7DFA],
- ["BD6F",0x7DFB],
- ["E6E9",0x7E03],
- ["BFA2",0x7E08],
- ["BFA7",0x7E09],
- ["BF7E",0x7E0A],
- ["EAD8",0x7E0B],
- ["EACF",0x7E0C],
- ["EADB",0x7E0D],
- ["EAD3",0x7E0E],
- ["EAD9",0x7E0F],
- ["BFA8",0x7E10],
- ["BFA1",0x7E11],
- ["EACC",0x7E12],
- ["EAD2",0x7E13],
- ["EADC",0x7E14],
- ["EAD5",0x7E15],
- ["EADA",0x7E16],
- ["EACE",0x7E17],
- ["EAD6",0x7E1A],
- ["BFA3",0x7E1B],
- ["EAD4",0x7E1C],
- ["BFA6",0x7E1D],
- ["BFA5",0x7E1E],
- ["EAD0",0x7E1F],
- ["EAD1",0x7E20],
- ["EACD",0x7E21],
- ["EAD7",0x7E22],
- ["BFA4",0x7E23],
- ["EADE",0x7E24],
- ["EADD",0x7E25],
- ["EDDA",0x7E29],
- ["EDD6",0x7E2A],
- ["C15F",0x7E2B],
- ["EDD0",0x7E2D],
- ["C159",0x7E2E],
- ["C169",0x7E2F],
- ["EDDC",0x7E30],
- ["C161",0x7E31],
- ["C15D",0x7E32],
- ["EDD3",0x7E33],
- ["C164",0x7E34],
- ["C167",0x7E35],
- ["EDDE",0x7E36],
- ["C15C",0x7E37],
- ["EDD5",0x7E38],
- ["C165",0x7E39],
- ["EDE0",0x7E3A],
- ["EDDD",0x7E3B],
- ["EDD1",0x7E3C],
- ["C160",0x7E3D],
- ["C15A",0x7E3E],
- ["C168",0x7E3F],
- ["EDD8",0x7E40],
- ["C163",0x7E41],
- ["EDD2",0x7E42],
- ["C15E",0x7E43],
- ["EDDF",0x7E44],
- ["C162",0x7E45],
- ["C15B",0x7E46],
- ["EDD9",0x7E47],
- ["C166",0x7E48],
- ["EDD7",0x7E49],
- ["EDDB",0x7E4C],
- ["F06E",0x7E50],
- ["F074",0x7E51],
- ["C2B9",0x7E52],
- ["F077",0x7E53],
- ["C2B4",0x7E54],
- ["C2B5",0x7E55],
- ["F06F",0x7E56],
- ["F076",0x7E57],
- ["F071",0x7E58],
- ["C2BA",0x7E59],
- ["C2B7",0x7E5A],
- ["F06D",0x7E5C],
- ["C2B6",0x7E5E],
- ["F073",0x7E5F],
- ["F075",0x7E60],
- ["C2B8",0x7E61],
- ["F072",0x7E62],
- ["F070",0x7E63],
- ["F2B8",0x7E68],
- ["C3B7",0x7E69],
- ["C3B8",0x7E6A],
- ["C3B4",0x7E6B],
- ["C3B5",0x7E6D],
- ["F2B4",0x7E6F],
- ["F2B2",0x7E70],
- ["F2B6",0x7E72],
- ["C3BA",0x7E73],
- ["F2B7",0x7E74],
- ["F2B0",0x7E75],
- ["F2AF",0x7E76],
- ["F2B3",0x7E77],
- ["F2B1",0x7E78],
- ["C3B6",0x7E79],
- ["F2B5",0x7E7A],
- ["F4AC",0x7E7B],
- ["C47E",0x7E7C],
- ["C47D",0x7E7D],
- ["F4AD",0x7E7E],
- ["F4AF",0x7E80],
- ["F4AE",0x7E81],
- ["C4A1",0x7E82],
- ["F5EB",0x7E86],
- ["F5E8",0x7E87],
- ["F5E9",0x7E88],
- ["F5E7",0x7E8A],
- ["F5EA",0x7E8B],
- ["C4F2",0x7E8C],
- ["F5EC",0x7E8D],
- ["C4F1",0x7E8F],
- ["F742",0x7E91],
- ["C5D5",0x7E93],
- ["C5D7",0x7E94],
- ["F7EE",0x7E95],
- ["C5D6",0x7E96],
- ["F8B9",0x7E97],
- ["F940",0x7E98],
- ["F942",0x7E99],
- ["F8FE",0x7E9A],
- ["F941",0x7E9B],
- ["C66C",0x7E9C],
- ["A6CE",0x7F36],
- ["ACFB",0x7F38],
- ["D26F",0x7F39],
- ["AFCA",0x7F3A],
- ["B2DA",0x7F3D],
- ["DAFC",0x7F3E],
- ["DAFD",0x7F3F],
- ["EADF",0x7F43],
- ["C16A",0x7F44],
- ["EDE1",0x7F45],
- ["C2BB",0x7F48],
- ["F2BA",0x7F4A],
- ["F2B9",0x7F4B],
- ["C4A2",0x7F4C],
- ["F5ED",0x7F4D],
- ["F743",0x7F4F],
- ["C5F8",0x7F50],
- ["CA49",0x7F51],
- ["AAC9",0x7F54],
- ["A875",0x7F55],
- ["D04D",0x7F58],
- ["D360",0x7F5B],
- ["D35B",0x7F5C],
- ["D35F",0x7F5D],
- ["D35D",0x7F5E],
- ["AFCB",0x7F5F],
- ["D35E",0x7F60],
- ["D35C",0x7F61],
+ ["D6EF",0x7D3B],
+ ["D6F0",0x7D28],
["D6F1",0x7F63],
- ["DAFE",0x7F65],
- ["DB40",0x7F66],
- ["DF69",0x7F67],
- ["DF6A",0x7F68],
- ["B86E",0x7F69],
- ["B86F",0x7F6A],
- ["DF68",0x7F6B],
- ["DF6B",0x7F6C],
- ["DF67",0x7F6D],
- ["B86D",0x7F6E],
- ["BB40",0x7F70],
- ["B870",0x7F72],
- ["E37A",0x7F73],
- ["BD7C",0x7F75],
- ["E6F1",0x7F76],
- ["BD7D",0x7F77],
- ["BFA9",0x7F79],
- ["EAE2",0x7F7A],
- ["EAE0",0x7F7B],
- ["EAE1",0x7F7C],
- ["EDE4",0x7F7D],
- ["EDE3",0x7F7E],
- ["EDE2",0x7F7F],
- ["F2BB",0x7F83],
- ["C3B9",0x7F85],
- ["F2BC",0x7F86],
- ["F744",0x7F87],
- ["C5F9",0x7F88],
- ["F8BA",0x7F89],
- ["A6CF",0x7F8A],
- ["AACB",0x7F8B],
- ["AACA",0x7F8C],
- ["D04F",0x7F8D],
- ["ACFC",0x7F8E],
- ["D04E",0x7F91],
- ["D362",0x7F92],
- ["AFCC",0x7F94],
["D6F2",0x7F95],
- ["D361",0x7F96],
- ["B2DC",0x7F9A],
- ["D6F5",0x7F9B],
["D6F3",0x7F9C],
["D6F4",0x7F9D],
- ["B2DB",0x7F9E],
- ["DB42",0x7FA0],
- ["DB43",0x7FA1],
- ["DB41",0x7FA2],
- ["B873",0x7FA4],
- ["DF6D",0x7FA5],
- ["DF6C",0x7FA6],
- ["DF6E",0x7FA7],
- ["B872",0x7FA8],
- ["B871",0x7FA9],
- ["E6F2",0x7FAC],
- ["E6F4",0x7FAD],
- ["BD7E",0x7FAF],
- ["E6F3",0x7FB0],
- ["EAE3",0x7FB1],
- ["BFAA",0x7FB2],
- ["F079",0x7FB3],
- ["F078",0x7FB5],
- ["C3BB",0x7FB6],
- ["F2BD",0x7FB7],
- ["C3BD",0x7FB8],
- ["C3BC",0x7FB9],
- ["F4B0",0x7FBA],
- ["F5EE",0x7FBB],
- ["C4F3",0x7FBC],
- ["A6D0",0x7FBD],
- ["D050",0x7FBE],
- ["ACFD",0x7FBF],
- ["D365",0x7FC0],
- ["AFCE",0x7FC1],
- ["D364",0x7FC2],
- ["D363",0x7FC3],
- ["AFCD",0x7FC5],
- ["D6FB",0x7FC7],
- ["D6FD",0x7FC9],
+ ["D6F5",0x7F9B],
["D6F6",0x7FCA],
["D6F7",0x7FCB],
- ["B2DD",0x7FCC],
["D6F8",0x7FCD],
- ["B2DE",0x7FCE],
- ["D6FC",0x7FCF],
["D6F9",0x7FD0],
["D6FA",0x7FD1],
- ["B2DF",0x7FD2],
- ["B5BE",0x7FD4],
- ["B5BF",0x7FD5],
- ["DB44",0x7FD7],
- ["DF6F",0x7FDB],
- ["DF70",0x7FDC],
- ["E37E",0x7FDE],
- ["BB43",0x7FDF],
- ["BB41",0x7FE0],
- ["BB42",0x7FE1],
- ["E37B",0x7FE2],
- ["E37C",0x7FE3],
- ["E37D",0x7FE5],
- ["E6F9",0x7FE6],
- ["E6FA",0x7FE8],
- ["BDA1",0x7FE9],
- ["E6F7",0x7FEA],
- ["E6F6",0x7FEB],
- ["E6F8",0x7FEC],
- ["E6F5",0x7FED],
- ["BFAD",0x7FEE],
- ["EAE4",0x7FEF],
- ["BFAB",0x7FF0],
- ["BFAC",0x7FF1],
- ["EDE6",0x7FF2],
- ["C16B",0x7FF3],
- ["EDE5",0x7FF4],
- ["EFA8",0x7FF5],
- ["F07A",0x7FF7],
- ["F07B",0x7FF8],
- ["C2BC",0x7FF9],
- ["C2BD",0x7FFB],
- ["C16C",0x7FFC],
- ["F2BE",0x7FFD],
- ["F2BF",0x7FFE],
- ["F4B1",0x7FFF],
- ["C4A3",0x8000],
- ["A6D1",0x8001],
- ["A6D2",0x8003],
- ["ACFE",0x8004],
- ["AACC",0x8005],
- ["AFCF",0x8006],
- ["D051",0x8007],
- ["B5C0",0x800B],
- ["A6D3",0x800C],
- ["AD41",0x800D],
- ["D052",0x800E],
- ["D053",0x800F],
- ["AD40",0x8010],
- ["AD42",0x8011],
- ["A6D4",0x8012],
- ["D054",0x8014],
- ["AFD1",0x8015],
- ["D366",0x8016],
- ["AFD3",0x8017],
- ["AFD0",0x8018],
- ["AFD2",0x8019],
- ["D741",0x801B],
- ["B2E0",0x801C],
- ["D740",0x801E],
+ ["D6FB",0x7FC7],
+ ["D6FC",0x7FCF],
+ ["D6FD",0x7FC9],
["D6FE",0x801F],
- ["DF71",0x8021],
- ["E3A1",0x8024],
- ["BDA2",0x8026],
- ["BFAE",0x8028],
- ["EAE6",0x8029],
- ["EAE5",0x802A],
- ["EDE7",0x802C],
- ["F5EF",0x8030],
- ["A6D5",0x8033],
- ["CB73",0x8034],
- ["CDAA",0x8035],
- ["AD43",0x8036],
- ["D055",0x8037],
- ["D368",0x8039],
- ["AFD4",0x803D],
- ["D367",0x803E],
- ["AFD5",0x803F],
- ["D743",0x8043],
- ["B2E2",0x8046],
+ ["D740",0x801E],
+ ["D741",0x801B],
["D742",0x8047],
+ ["D743",0x8043],
["D744",0x8048],
- ["B2E1",0x804A],
- ["DB46",0x804F],
- ["DB47",0x8050],
- ["DB45",0x8051],
- ["B5C1",0x8052],
- ["B874",0x8056],
- ["B875",0x8058],
- ["BB45",0x805A],
- ["E3A3",0x805C],
- ["E3A2",0x805D],
- ["BB44",0x805E],
- ["E6FB",0x8064],
- ["E6FC",0x8067],
- ["EAE7",0x806C],
- ["C170",0x806F],
- ["C16F",0x8070],
- ["C16D",0x8071],
- ["C16E",0x8072],
- ["C171",0x8073],
- ["F07C",0x8075],
- ["C2BF",0x8076],
- ["C2BE",0x8077],
- ["F2C0",0x8078],
- ["F4B2",0x8079],
- ["C5A5",0x807D],
- ["C5A4",0x807E],
- ["A6D6",0x807F],
- ["D1FB",0x8082],
- ["B877",0x8084],
- ["B5C2",0x8085],
- ["B876",0x8086],
- ["BB46",0x8087],
- ["A6D7",0x8089],
- ["C9A9",0x808A],
- ["A6D8",0x808B],
- ["A6D9",0x808C],
- ["CDAB",0x808F],
- ["CB76",0x8090],
- ["CB77",0x8092],
- ["A877",0x8093],
- ["CB74",0x8095],
- ["A876",0x8096],
- ["A879",0x8098],
- ["CB75",0x8099],
- ["A87B",0x809A],
- ["A87A",0x809B],
- ["CB78",0x809C],
- ["A878",0x809D],
- ["AAD1",0x80A1],
- ["AACF",0x80A2],
- ["CDAD",0x80A3],
- ["AACE",0x80A5],
- ["AAD3",0x80A9],
- ["AAD5",0x80AA],
- ["AAD2",0x80AB],
- ["CDB0",0x80AD],
- ["CDAC",0x80AE],
- ["AAD6",0x80AF],
- ["AAD0",0x80B1],
- ["A87C",0x80B2],
- ["AAD4",0x80B4],
- ["CDAF",0x80B5],
- ["CDAE",0x80B8],
- ["AACD",0x80BA],
- ["D05B",0x80C2],
- ["AD47",0x80C3],
- ["AD48",0x80C4],
- ["D05D",0x80C5],
- ["D057",0x80C7],
- ["D05A",0x80C8],
- ["D063",0x80C9],
- ["D061",0x80CA],
- ["AD49",0x80CC],
- ["D067",0x80CD],
- ["AD4C",0x80CE],
- ["D064",0x80CF],
- ["D05C",0x80D0],
- ["D059",0x80D1],
- ["DB49",0x80D4],
- ["D062",0x80D5],
- ["AD44",0x80D6],
- ["D065",0x80D7],
- ["D056",0x80D8],
- ["D05F",0x80D9],
- ["AD46",0x80DA],
- ["AD4B",0x80DB],
- ["D060",0x80DC],
- ["AD4F",0x80DD],
- ["AD4D",0x80DE],
- ["D058",0x80E0],
- ["AD4A",0x80E1],
- ["D05E",0x80E3],
- ["AD4E",0x80E4],
- ["AD45",0x80E5],
- ["D066",0x80E6],
- ["AFDA",0x80ED],
- ["AFE3",0x80EF],
- ["AFD8",0x80F0],
- ["AFD6",0x80F1],
- ["D36A",0x80F2],
- ["AFDE",0x80F3],
- ["AFDB",0x80F4],
- ["D36C",0x80F5],
- ["AFDD",0x80F8],
- ["D36B",0x80F9],
- ["D369",0x80FA],
- ["D36E",0x80FB],
- ["AFE2",0x80FC],
- ["AFE0",0x80FD],
- ["DB48",0x80FE],
- ["D36F",0x8100],
- ["D36D",0x8101],
- ["AFD7",0x8102],
- ["AFD9",0x8105],
- ["AFDC",0x8106],
- ["AFDF",0x8108],
- ["AFE1",0x810A],
- ["D74E",0x8115],
- ["B2E4",0x8116],
["D745",0x8118],
+ ["D746",0x8125],
["D747",0x8119],
["D748",0x811B],
- ["D750",0x811D],
- ["D74C",0x811E],
+ ["D749",0x812D],
["D74A",0x811F],
+ ["D74B",0x812C],
+ ["D74C",0x811E],
["D74D",0x8121],
- ["D751",0x8122],
- ["B2E5",0x8123],
- ["B2E9",0x8124],
- ["D746",0x8125],
+ ["D74E",0x8115],
["D74F",0x8127],
- ["B2E7",0x8129],
- ["B2E6",0x812B],
- ["D74B",0x812C],
- ["D749",0x812D],
- ["B2E3",0x812F],
- ["B2E8",0x8130],
- ["B5C8",0x8139],
- ["DB51",0x813A],
- ["DB4F",0x813D],
- ["B5CA",0x813E],
- ["DB4A",0x8143],
- ["DFA1",0x8144],
- ["B5C9",0x8146],
- ["DB4E",0x8147],
- ["DB4B",0x814A],
- ["B5C5",0x814B],
- ["B5CB",0x814C],
- ["DB50",0x814D],
- ["B5C7",0x814E],
- ["DB4D",0x814F],
- ["BB47",0x8150],
- ["B5C6",0x8151],
- ["DB4C",0x8152],
- ["B5CC",0x8153],
- ["B5C4",0x8154],
- ["B5C3",0x8155],
- ["DF77",0x815B],
- ["DF75",0x815C],
- ["DF7B",0x815E],
- ["DF73",0x8160],
- ["DFA2",0x8161],
- ["DF78",0x8162],
- ["DF72",0x8164],
- ["B87B",0x8165],
- ["B8A3",0x8166],
- ["DF7D",0x8167],
- ["DF76",0x8169],
- ["B87E",0x816B],
- ["B87C",0x816E],
- ["DF7E",0x816F],
- ["B879",0x8170],
- ["B878",0x8171],
- ["DF79",0x8172],
- ["B87D",0x8173],
- ["B5CD",0x8174],
- ["DF7C",0x8176],
- ["DF74",0x8177],
- ["B87A",0x8178],
- ["B8A1",0x8179],
- ["B8A2",0x817A],
- ["BB4C",0x817F],
- ["BB48",0x8180],
- ["BB4D",0x8182],
- ["E3A6",0x8183],
- ["E3A5",0x8186],
- ["E3A7",0x8187],
- ["BB4A",0x8188],
- ["E3A4",0x8189],
- ["BB4B",0x818A],
- ["E3AA",0x818B],
- ["E3A9",0x818C],
- ["E3A8",0x818D],
- ["BB49",0x818F],
- ["E741",0x8195],
- ["E744",0x8197],
- ["BDA8",0x8198],
- ["E743",0x8199],
- ["BDA7",0x819A],
- ["BDA3",0x819B],
- ["BDA4",0x819C],
- ["BDA5",0x819D],
- ["E740",0x819E],
- ["E6FE",0x819F],
- ["BDA6",0x81A0],
- ["E742",0x81A2],
- ["E6FD",0x81A3],
- ["EAE9",0x81A6],
- ["EAF3",0x81A7],
- ["BFB1",0x81A8],
- ["BFB0",0x81A9],
- ["EAED",0x81AB],
- ["EAEF",0x81AC],
- ["EAEA",0x81AE],
- ["EAEE",0x81B0],
- ["EAE8",0x81B1],
- ["EAF1",0x81B2],
- ["BFAF",0x81B3],
- ["EAF0",0x81B4],
- ["EAEC",0x81B5],
- ["EAF2",0x81B7],
- ["EAEB",0x81B9],
- ["C174",0x81BA],
- ["EDE8",0x81BB],
- ["EDEE",0x81BC],
- ["C178",0x81BD],
- ["C17A",0x81BE],
- ["C177",0x81BF],
- ["C176",0x81C0],
- ["C175",0x81C2],
- ["C173",0x81C3],
- ["EDE9",0x81C4],
- ["EDEC",0x81C5],
- ["C172",0x81C6],
- ["EDED",0x81C7],
- ["C179",0x81C9],
- ["EDEB",0x81CA],
- ["EDEA",0x81CC],
- ["C2C0",0x81CD],
- ["C2C1",0x81CF],
- ["F0A1",0x81D0],
- ["F07D",0x81D1],
- ["F07E",0x81D2],
- ["F2C2",0x81D5],
- ["F2C1",0x81D7],
- ["C3BE",0x81D8],
- ["F4B4",0x81D9],
- ["C4A4",0x81DA],
- ["F4B3",0x81DB],
- ["F5F0",0x81DD],
- ["F745",0x81DE],
- ["C5A6",0x81DF],
- ["F943",0x81E0],
- ["F944",0x81E1],
- ["C5D8",0x81E2],
- ["A6DA",0x81E3],
- ["AAD7",0x81E5],
- ["DB52",0x81E6],
- ["BB4E",0x81E7],
- ["C17B",0x81E8],
- ["EDEF",0x81E9],
- ["A6DB",0x81EA],
- ["AFE5",0x81EC],
- ["AFE4",0x81ED],
- ["DB53",0x81EE],
- ["EAF4",0x81F2],
- ["A6DC",0x81F3],
- ["AD50",0x81F4],
- ["DB54",0x81F7],
- ["DB55",0x81F8],
- ["DB56",0x81F9],
- ["BB4F",0x81FA],
- ["BFB2",0x81FB],
- ["A6DD",0x81FC],
- ["AAD8",0x81FE],
- ["D068",0x81FF],
- ["AFE6",0x8200],
- ["D370",0x8201],
- ["B2EA",0x8202],
- ["DB57",0x8204],
- ["B8A4",0x8205],
- ["BB50",0x8207],
- ["BFB3",0x8208],
- ["C17C",0x8209],
- ["C2C2",0x820A],
- ["F4B5",0x820B],
- ["A6DE",0x820C],
- ["AAD9",0x820D],
- ["AFE7",0x8210],
+ ["D750",0x811D],
+ ["D751",0x8122],
["D752",0x8211],
- ["B5CE",0x8212],
- ["BB51",0x8214],
- ["E3AB",0x8215],
- ["E745",0x8216],
- ["A6DF",0x821B],
- ["B5CF",0x821C],
- ["DFA3",0x821D],
- ["BB52",0x821E],
- ["A6E0",0x821F],
- ["CDB1",0x8220],
- ["D069",0x8221],
- ["AD51",0x8222],
- ["D372",0x8225],
- ["AFEA",0x8228],
- ["AFE8",0x822A],
- ["AFE9",0x822B],
- ["AFEB",0x822C],
- ["D371",0x822F],
- ["D757",0x8232],
- ["D754",0x8233],
- ["D756",0x8234],
- ["B2EB",0x8235],
- ["B2ED",0x8236],
- ["B2EC",0x8237],
["D753",0x8238],
- ["B2EE",0x8239],
+ ["D754",0x8233],
["D755",0x823A],
- ["DB58",0x823C],
- ["DB59",0x823D],
- ["DB5A",0x823F],
- ["DFA6",0x8240],
- ["DFA7",0x8242],
- ["DFA5",0x8244],
- ["DFA8",0x8245],
- ["B8A5",0x8247],
- ["DFA4",0x8249],
- ["BB53",0x824B],
- ["E74A",0x824E],
- ["E746",0x824F],
- ["E749",0x8250],
- ["E74B",0x8251],
- ["E748",0x8252],
- ["E747",0x8253],
- ["EAF5",0x8255],
- ["EAF6",0x8256],
- ["EAF7",0x8257],
- ["BFB4",0x8258],
- ["BFB5",0x8259],
- ["EDF1",0x825A],
- ["EDF0",0x825B],
- ["EDF2",0x825C],
- ["F0A3",0x825E],
- ["F0A2",0x825F],
- ["F2C4",0x8261],
- ["F2C5",0x8263],
- ["F2C3",0x8264],
- ["C4A5",0x8266],
- ["F4B6",0x8268],
- ["F4B7",0x8269],
- ["F746",0x826B],
- ["F7EF",0x826C],
- ["F8BB",0x826D],
- ["A6E1",0x826E],
- ["A87D",0x826F],
- ["C17D",0x8271],
- ["A6E2",0x8272],
+ ["D756",0x8234],
+ ["D757",0x8232],
["D758",0x8274],
- ["DB5B",0x8275],
- ["C641",0x8277],
- ["CA4A",0x8278],
- ["CA4B",0x827C],
- ["CA4D",0x827D],
- ["A6E3",0x827E],
- ["CA4E",0x827F],
- ["CA4C",0x8280],
- ["CBA2",0x8283],
- ["CBA3",0x8284],
- ["CB7B",0x8285],
- ["CBA1",0x828A],
- ["A8A1",0x828B],
- ["A8A2",0x828D],
- ["CB7C",0x828E],
- ["CB7A",0x828F],
- ["CB79",0x8290],
- ["CB7D",0x8291],
- ["A87E",0x8292],
- ["CB7E",0x8293],
- ["D06A",0x8294],
- ["CDB6",0x8298],
- ["AADC",0x8299],
- ["CDB5",0x829A],
- ["CDB7",0x829B],
- ["AADB",0x829D],
- ["CDBC",0x829E],
- ["AADF",0x829F],
- ["CDB2",0x82A0],
- ["CDC0",0x82A1],
- ["CDC6",0x82A2],
- ["AAE6",0x82A3],
- ["CDC3",0x82A4],
- ["AAE3",0x82A5],
- ["CDB9",0x82A7],
- ["CDBF",0x82A8],
- ["CDC1",0x82A9],
- ["CDB4",0x82AB],
- ["AAE2",0x82AC],
- ["AADD",0x82AD],
- ["CDBA",0x82AE],
- ["AAE4",0x82AF],
- ["AAE7",0x82B0],
- ["AAE1",0x82B1],
- ["AADA",0x82B3],
- ["CDBE",0x82B4],
- ["CDB8",0x82B5],
- ["CDC5",0x82B6],
- ["AAE9",0x82B7],
- ["AAE5",0x82B8],
- ["AAE0",0x82B9],
- ["CDBD",0x82BA],
- ["AFEC",0x82BB],
- ["CDBB",0x82BC],
- ["AADE",0x82BD],
- ["AAE8",0x82BE],
- ["CDB3",0x82C0],
- ["CDC2",0x82C2],
- ["CDC4",0x82C3],
- ["AD62",0x82D1],
- ["AD5C",0x82D2],
- ["AD64",0x82D3],
- ["AD61",0x82D4],
- ["D071",0x82D5],
- ["D074",0x82D6],
- ["AD5D",0x82D7],
- ["D06B",0x82D9],
- ["AD56",0x82DB],
- ["AD60",0x82DC],
- ["AD63",0x82DE],
- ["AD65",0x82DF],
- ["D0A2",0x82E0],
- ["D077",0x82E1],
- ["AD55",0x82E3],
- ["D0A1",0x82E4],
- ["AD59",0x82E5],
- ["AD57",0x82E6],
- ["AD52",0x82E7],
- ["D06F",0x82E8],
- ["D07E",0x82EA],
- ["D073",0x82EB],
- ["D076",0x82EC],
- ["D0A5",0x82ED],
- ["AD66",0x82EF],
- ["D07D",0x82F0],
- ["AD5E",0x82F1],
- ["D078",0x82F2],
- ["D0A4",0x82F3],
- ["D075",0x82F4],
- ["D079",0x82F5],
- ["D07C",0x82F6],
- ["D06D",0x82F9],
- ["D0A3",0x82FA],
- ["D07B",0x82FB],
- ["D06C",0x82FE],
- ["D070",0x8300],
- ["AD5F",0x8301],
- ["AD5A",0x8302],
- ["AD53",0x8303],
- ["AD58",0x8304],
- ["AD54",0x8305],
- ["AD67",0x8306],
- ["D06E",0x8307],
- ["D3A5",0x8308],
- ["AD5B",0x8309],
- ["D07A",0x830C],
- ["CE41",0x830D],
- ["D3A8",0x8316],
- ["AFFA",0x8317],
- ["D376",0x8319],
- ["D3A3",0x831B],
- ["D37D",0x831C],
- ["D3B2",0x831E],
- ["D3AA",0x8320],
- ["D37E",0x8322],
- ["D3A9",0x8324],
- ["D378",0x8325],
- ["D37C",0x8326],
- ["D3B5",0x8327],
- ["AFFD",0x8328],
- ["D3AD",0x8329],
- ["D3A4",0x832A],
- ["AFED",0x832B],
- ["D3B3",0x832C],
- ["D374",0x832D],
- ["D3AC",0x832F],
- ["AFFC",0x8331],
- ["AFF7",0x8332],
- ["D373",0x8333],
- ["AFF5",0x8334],
- ["AFF4",0x8335],
- ["AFF9",0x8336],
- ["D3AB",0x8337],
- ["AFF1",0x8338],
- ["AFF8",0x8339],
- ["D072",0x833A],
- ["DB5C",0x833B],
- ["D3A6",0x833C],
- ["D37A",0x833F],
- ["AFFB",0x8340],
- ["D37B",0x8341],
- ["D3A1",0x8342],
- ["AFFE",0x8343],
- ["D375",0x8344],
- ["D3AF",0x8345],
- ["D3AE",0x8347],
- ["D3B6",0x8348],
- ["AFF3",0x8349],
- ["AFF0",0x834A],
- ["D3B4",0x834B],
- ["D3B0",0x834C],
- ["D3A7",0x834D],
- ["D3A2",0x834E],
- ["AFF6",0x834F],
- ["AFF2",0x8350],
- ["D377",0x8351],
- ["AFEE",0x8352],
- ["D3B1",0x8353],
- ["AFEF",0x8354],
- ["D379",0x8356],
+ ["D759",0x8390],
+ ["D75A",0x83A3],
+ ["D75B",0x83A8],
+ ["D75C",0x838D],
+ ["D75D",0x837A],
["D75E",0x8373],
+ ["D75F",0x83A4],
["D760",0x8374],
+ ["D761",0x838F],
+ ["D762",0x8381],
+ ["D763",0x8395],
+ ["D764",0x8399],
["D765",0x8375],
- ["D779",0x8376],
- ["B2FC",0x8377],
- ["B2F2",0x8378],
- ["D75D",0x837A],
- ["B2FD",0x837B],
- ["B2FE",0x837C],
+ ["D766",0x8394],
+ ["D767",0x83A9],
["D768",0x837D],
- ["D76F",0x837E],
- ["D775",0x837F],
- ["D762",0x8381],
["D769",0x8383],
- ["B340",0x8386],
- ["D777",0x8387],
- ["D772",0x8388],
- ["B2FA",0x8389],
- ["B2F8",0x838A],
- ["D76E",0x838B],
["D76A",0x838C],
- ["D75C",0x838D],
- ["B2EF",0x838E],
- ["D761",0x838F],
- ["D759",0x8390],
- ["B2F7",0x8392],
- ["B2F9",0x8393],
- ["D766",0x8394],
- ["D763",0x8395],
- ["B2F4",0x8396],
- ["D773",0x8397],
- ["B2F1",0x8398],
- ["D764",0x8399],
- ["D77A",0x839A],
- ["D76C",0x839B],
["D76B",0x839D],
- ["B2F0",0x839E],
- ["B2FB",0x83A0],
- ["B2F3",0x83A2],
- ["D75A",0x83A3],
- ["D75F",0x83A4],
- ["D770",0x83A5],
- ["D776",0x83A6],
- ["B341",0x83A7],
- ["D75B",0x83A8],
- ["D767",0x83A9],
+ ["D76C",0x839B],
["D76D",0x83AA],
- ["B2F6",0x83AB],
- ["D778",0x83AE],
+ ["D76E",0x838B],
+ ["D76F",0x837E],
+ ["D770",0x83A5],
["D771",0x83AF],
+ ["D772",0x8388],
+ ["D773",0x8397],
["D774",0x83B0],
- ["B2F5",0x83BD],
- ["DB6C",0x83BF],
+ ["D775",0x837F],
+ ["D776",0x83A6],
+ ["D777",0x8387],
+ ["D778",0x83AE],
+ ["D779",0x8376],
+ ["D77A",0x839A],
+ ["D77B",0x8659],
+ ["D77C",0x8656],
+ ["D77D",0x86BF],
+ ["D77E",0x86B7],
+ ["D7A1",0x86C2],
+ ["D7A2",0x86C1],
+ ["D7A3",0x86C5],
+ ["D7A4",0x86BA],
+ ["D7A5",0x86B0],
+ ["D7A6",0x86C8],
+ ["D7A7",0x86B9],
+ ["D7A8",0x86B3],
+ ["D7A9",0x86B8],
+ ["D7AA",0x86CC],
+ ["D7AB",0x86B4],
+ ["D7AC",0x86BB],
+ ["D7AD",0x86BC],
+ ["D7AE",0x86C3],
+ ["D7AF",0x86BD],
+ ["D7B0",0x86BE],
+ ["D7B1",0x8852],
+ ["D7B2",0x8889],
+ ["D7B3",0x8895],
+ ["D7B4",0x88A8],
+ ["D7B5",0x88A2],
+ ["D7B6",0x88AA],
+ ["D7B7",0x889A],
+ ["D7B8",0x8891],
+ ["D7B9",0x88A1],
+ ["D7BA",0x889F],
+ ["D7BB",0x8898],
+ ["D7BC",0x88A7],
+ ["D7BD",0x8899],
+ ["D7BE",0x889B],
+ ["D7BF",0x8897],
+ ["D7C0",0x88A4],
+ ["D7C1",0x88AC],
+ ["D7C2",0x888C],
+ ["D7C3",0x8893],
+ ["D7C4",0x888E],
+ ["D7C5",0x8982],
+ ["D7C6",0x89D6],
+ ["D7C7",0x89D9],
+ ["D7C8",0x89D5],
+ ["D7C9",0x8A30],
+ ["D7CA",0x8A27],
+ ["D7CB",0x8A2C],
+ ["D7CC",0x8A1E],
+ ["D7CD",0x8C39],
+ ["D7CE",0x8C3B],
+ ["D7CF",0x8C5C],
+ ["D7D0",0x8C5D],
+ ["D7D1",0x8C7D],
+ ["D7D2",0x8CA5],
+ ["D7D3",0x8D7D],
+ ["D7D4",0x8D7B],
+ ["D7D5",0x8D79],
+ ["D7D6",0x8DBC],
+ ["D7D7",0x8DC2],
+ ["D7D8",0x8DB9],
+ ["D7D9",0x8DBF],
+ ["D7DA",0x8DC1],
+ ["D7DB",0x8ED8],
+ ["D7DC",0x8EDE],
+ ["D7DD",0x8EDD],
+ ["D7DE",0x8EDC],
+ ["D7DF",0x8ED7],
+ ["D7E0",0x8EE0],
+ ["D7E1",0x8EE1],
+ ["D7E2",0x9024],
+ ["D7E3",0x900B],
+ ["D7E4",0x9011],
+ ["D7E5",0x901C],
+ ["D7E6",0x900C],
+ ["D7E7",0x9021],
+ ["D7E8",0x90EF],
+ ["D7E9",0x90EA],
+ ["D7EA",0x90F0],
+ ["D7EB",0x90F4],
+ ["D7EC",0x90F2],
+ ["D7ED",0x90F3],
+ ["D7EE",0x90D4],
+ ["D7EF",0x90EB],
+ ["D7F0",0x90EC],
+ ["D7F1",0x90E9],
+ ["D7F2",0x9156],
+ ["D7F3",0x9158],
+ ["D7F4",0x915A],
+ ["D7F5",0x9153],
+ ["D7F6",0x9155],
+ ["D7F7",0x91EC],
+ ["D7F8",0x91F4],
+ ["D7F9",0x91F1],
+ ["D7FA",0x91F3],
+ ["D7FB",0x91F8],
+ ["D7FC",0x91E4],
+ ["D7FD",0x91F9],
+ ["D7FE",0x91EA],
+ ["D840",0x91EB],
+ ["D841",0x91F7],
+ ["D842",0x91E8],
+ ["D843",0x91EE],
+ ["D844",0x957A],
+ ["D845",0x9586],
+ ["D846",0x9588],
+ ["D847",0x967C],
+ ["D848",0x966D],
+ ["D849",0x966B],
+ ["D84A",0x9671],
+ ["D84B",0x966F],
+ ["D84C",0x96BF],
+ ["D84D",0x976A],
+ ["D84E",0x9804],
+ ["D84F",0x98E5],
+ ["D850",0x9997],
+ ["D851",0x509B],
+ ["D852",0x5095],
+ ["D853",0x5094],
+ ["D854",0x509E],
+ ["D855",0x508B],
+ ["D856",0x50A3],
+ ["D857",0x5083],
+ ["D858",0x508C],
+ ["D859",0x508E],
+ ["D85A",0x509D],
+ ["D85B",0x5068],
+ ["D85C",0x509C],
+ ["D85D",0x5092],
+ ["D85E",0x5082],
+ ["D85F",0x5087],
+ ["D860",0x515F],
+ ["D861",0x51D4],
+ ["D862",0x5312],
+ ["D863",0x5311],
+ ["D864",0x53A4],
+ ["D865",0x53A7],
+ ["D866",0x5591],
+ ["D867",0x55A8],
+ ["D868",0x55A5],
+ ["D869",0x55AD],
+ ["D86A",0x5577],
+ ["D86B",0x5645],
+ ["D86C",0x55A2],
+ ["D86D",0x5593],
+ ["D86E",0x5588],
+ ["D86F",0x558F],
+ ["D870",0x55B5],
+ ["D871",0x5581],
+ ["D872",0x55A3],
+ ["D873",0x5592],
+ ["D874",0x55A4],
+ ["D875",0x557D],
+ ["D876",0x558C],
+ ["D877",0x55A6],
+ ["D878",0x557F],
+ ["D879",0x5595],
+ ["D87A",0x55A1],
+ ["D87B",0x558E],
+ ["D87C",0x570C],
+ ["D87D",0x5829],
+ ["D87E",0x5837],
+ ["D8A1",0x5819],
+ ["D8A2",0x581E],
+ ["D8A3",0x5827],
+ ["D8A4",0x5823],
+ ["D8A5",0x5828],
+ ["D8A6",0x57F5],
+ ["D8A7",0x5848],
+ ["D8A8",0x5825],
+ ["D8A9",0x581C],
+ ["D8AA",0x581B],
+ ["D8AB",0x5833],
+ ["D8AC",0x583F],
+ ["D8AD",0x5836],
+ ["D8AE",0x582E],
+ ["D8AF",0x5839],
+ ["D8B0",0x5838],
+ ["D8B1",0x582D],
+ ["D8B2",0x582C],
+ ["D8B3",0x583B],
+ ["D8B4",0x5961],
+ ["D8B5",0x5AAF],
+ ["D8B6",0x5A94],
+ ["D8B7",0x5A9F],
+ ["D8B8",0x5A7A],
+ ["D8B9",0x5AA2],
+ ["D8BA",0x5A9E],
+ ["D8BB",0x5A78],
+ ["D8BC",0x5AA6],
+ ["D8BD",0x5A7C],
+ ["D8BE",0x5AA5],
+ ["D8BF",0x5AAC],
+ ["D8C0",0x5A95],
+ ["D8C1",0x5AAE],
+ ["D8C2",0x5A37],
+ ["D8C3",0x5A84],
+ ["D8C4",0x5A8A],
+ ["D8C5",0x5A97],
+ ["D8C6",0x5A83],
+ ["D8C7",0x5A8B],
+ ["D8C8",0x5AA9],
+ ["D8C9",0x5A7B],
+ ["D8CA",0x5A7D],
+ ["D8CB",0x5A8C],
+ ["D8CC",0x5A9C],
+ ["D8CD",0x5A8F],
+ ["D8CE",0x5A93],
+ ["D8CF",0x5A9D],
+ ["D8D0",0x5BEA],
+ ["D8D1",0x5BCD],
+ ["D8D2",0x5BCB],
+ ["D8D3",0x5BD4],
+ ["D8D4",0x5BD1],
+ ["D8D5",0x5BCA],
+ ["D8D6",0x5BCE],
+ ["D8D7",0x5C0C],
+ ["D8D8",0x5C30],
+ ["D8D9",0x5D37],
+ ["D8DA",0x5D43],
+ ["D8DB",0x5D6B],
+ ["D8DC",0x5D41],
+ ["D8DD",0x5D4B],
+ ["D8DE",0x5D3F],
+ ["D8DF",0x5D35],
+ ["D8E0",0x5D51],
+ ["D8E1",0x5D4E],
+ ["D8E2",0x5D55],
+ ["D8E3",0x5D33],
+ ["D8E4",0x5D3A],
+ ["D8E5",0x5D52],
+ ["D8E6",0x5D3D],
+ ["D8E7",0x5D31],
+ ["D8E8",0x5D59],
+ ["D8E9",0x5D42],
+ ["D8EA",0x5D39],
+ ["D8EB",0x5D49],
+ ["D8EC",0x5D38],
+ ["D8ED",0x5D3C],
+ ["D8EE",0x5D32],
+ ["D8EF",0x5D36],
+ ["D8F0",0x5D40],
+ ["D8F1",0x5D45],
+ ["D8F2",0x5E44],
+ ["D8F3",0x5E41],
+ ["D8F4",0x5F58],
+ ["D8F5",0x5FA6],
+ ["D8F6",0x5FA5],
+ ["D8F7",0x5FAB],
+ ["D8F8",0x60C9],
+ ["D8F9",0x60B9],
+ ["D8FA",0x60CC],
+ ["D8FB",0x60E2],
+ ["D8FC",0x60CE],
+ ["D8FD",0x60C4],
+ ["D8FE",0x6114],
+ ["D940",0x60F2],
+ ["D941",0x610A],
+ ["D942",0x6116],
+ ["D943",0x6105],
+ ["D944",0x60F5],
+ ["D945",0x6113],
+ ["D946",0x60F8],
+ ["D947",0x60FC],
+ ["D948",0x60FE],
+ ["D949",0x60C1],
+ ["D94A",0x6103],
+ ["D94B",0x6118],
+ ["D94C",0x611D],
+ ["D94D",0x6110],
+ ["D94E",0x60FF],
+ ["D94F",0x6104],
+ ["D950",0x610B],
+ ["D951",0x624A],
+ ["D952",0x6394],
+ ["D953",0x63B1],
+ ["D954",0x63B0],
+ ["D955",0x63CE],
+ ["D956",0x63E5],
+ ["D957",0x63E8],
+ ["D958",0x63EF],
+ ["D959",0x63C3],
+ ["D95A",0x649D],
+ ["D95B",0x63F3],
+ ["D95C",0x63CA],
+ ["D95D",0x63E0],
+ ["D95E",0x63F6],
+ ["D95F",0x63D5],
+ ["D960",0x63F2],
+ ["D961",0x63F5],
+ ["D962",0x6461],
+ ["D963",0x63DF],
+ ["D964",0x63BE],
+ ["D965",0x63DD],
+ ["D966",0x63DC],
+ ["D967",0x63C4],
+ ["D968",0x63D8],
+ ["D969",0x63D3],
+ ["D96A",0x63C2],
+ ["D96B",0x63C7],
+ ["D96C",0x63CC],
+ ["D96D",0x63CB],
+ ["D96E",0x63C8],
+ ["D96F",0x63F0],
+ ["D970",0x63D7],
+ ["D971",0x63D9],
+ ["D972",0x6532],
+ ["D973",0x6567],
+ ["D974",0x656A],
+ ["D975",0x6564],
+ ["D976",0x655C],
+ ["D977",0x6568],
+ ["D978",0x6565],
+ ["D979",0x658C],
+ ["D97A",0x659D],
+ ["D97B",0x659E],
+ ["D97C",0x65AE],
+ ["D97D",0x65D0],
+ ["D97E",0x65D2],
+ ["D9A1",0x667C],
+ ["D9A2",0x666C],
+ ["D9A3",0x667B],
+ ["D9A4",0x6680],
+ ["D9A5",0x6671],
+ ["D9A6",0x6679],
+ ["D9A7",0x666A],
+ ["D9A8",0x6672],
+ ["D9A9",0x6701],
+ ["D9AA",0x690C],
+ ["D9AB",0x68D3],
+ ["D9AC",0x6904],
+ ["D9AD",0x68DC],
+ ["D9AE",0x692A],
+ ["D9AF",0x68EC],
+ ["D9B0",0x68EA],
+ ["D9B1",0x68F1],
+ ["D9B2",0x690F],
+ ["D9B3",0x68D6],
+ ["D9B4",0x68F7],
+ ["D9B5",0x68EB],
+ ["D9B6",0x68E4],
+ ["D9B7",0x68F6],
+ ["D9B8",0x6913],
+ ["D9B9",0x6910],
+ ["D9BA",0x68F3],
+ ["D9BB",0x68E1],
+ ["D9BC",0x6907],
+ ["D9BD",0x68CC],
+ ["D9BE",0x6908],
+ ["D9BF",0x6970],
+ ["D9C0",0x68B4],
+ ["D9C1",0x6911],
+ ["D9C2",0x68EF],
+ ["D9C3",0x68C6],
+ ["D9C4",0x6914],
+ ["D9C5",0x68F8],
+ ["D9C6",0x68D0],
+ ["D9C7",0x68FD],
+ ["D9C8",0x68FC],
+ ["D9C9",0x68E8],
+ ["D9CA",0x690B],
+ ["D9CB",0x690A],
+ ["D9CC",0x6917],
+ ["D9CD",0x68CE],
+ ["D9CE",0x68C8],
+ ["D9CF",0x68DD],
+ ["D9D0",0x68DE],
+ ["D9D1",0x68E6],
+ ["D9D2",0x68F4],
+ ["D9D3",0x68D1],
+ ["D9D4",0x6906],
+ ["D9D5",0x68D4],
+ ["D9D6",0x68E9],
+ ["D9D7",0x6915],
+ ["D9D8",0x6925],
+ ["D9D9",0x68C7],
+ ["D9DA",0x6B39],
+ ["D9DB",0x6B3B],
+ ["D9DC",0x6B3F],
+ ["D9DD",0x6B3C],
+ ["D9DE",0x6B94],
+ ["D9DF",0x6B97],
+ ["D9E0",0x6B99],
+ ["D9E1",0x6B95],
+ ["D9E2",0x6BBD],
+ ["D9E3",0x6BF0],
+ ["D9E4",0x6BF2],
+ ["D9E5",0x6BF3],
+ ["D9E6",0x6C30],
+ ["D9E7",0x6DFC],
+ ["D9E8",0x6E46],
+ ["D9E9",0x6E47],
+ ["D9EA",0x6E1F],
+ ["D9EB",0x6E49],
+ ["D9EC",0x6E88],
+ ["D9ED",0x6E3C],
+ ["D9EE",0x6E3D],
+ ["D9EF",0x6E45],
+ ["D9F0",0x6E62],
+ ["D9F1",0x6E2B],
+ ["D9F2",0x6E3F],
+ ["D9F3",0x6E41],
+ ["D9F4",0x6E5D],
+ ["D9F5",0x6E73],
+ ["D9F6",0x6E1C],
+ ["D9F7",0x6E33],
+ ["D9F8",0x6E4B],
+ ["D9F9",0x6E40],
+ ["D9FA",0x6E51],
+ ["D9FB",0x6E3B],
+ ["D9FC",0x6E03],
+ ["D9FD",0x6E2E],
+ ["D9FE",0x6E5E],
+ ["DA40",0x6E68],
+ ["DA41",0x6E5C],
+ ["DA42",0x6E61],
+ ["DA43",0x6E31],
+ ["DA44",0x6E28],
+ ["DA45",0x6E60],
+ ["DA46",0x6E71],
+ ["DA47",0x6E6B],
+ ["DA48",0x6E39],
+ ["DA49",0x6E22],
+ ["DA4A",0x6E30],
+ ["DA4B",0x6E53],
+ ["DA4C",0x6E65],
+ ["DA4D",0x6E27],
+ ["DA4E",0x6E78],
+ ["DA4F",0x6E64],
+ ["DA50",0x6E77],
+ ["DA51",0x6E55],
+ ["DA52",0x6E79],
+ ["DA53",0x6E52],
+ ["DA54",0x6E66],
+ ["DA55",0x6E35],
+ ["DA56",0x6E36],
+ ["DA57",0x6E5A],
+ ["DA58",0x7120],
+ ["DA59",0x711E],
+ ["DA5A",0x712F],
+ ["DA5B",0x70FB],
+ ["DA5C",0x712E],
+ ["DA5D",0x7131],
+ ["DA5E",0x7123],
+ ["DA5F",0x7125],
+ ["DA60",0x7122],
+ ["DA61",0x7132],
+ ["DA62",0x711F],
+ ["DA63",0x7128],
+ ["DA64",0x713A],
+ ["DA65",0x711B],
+ ["DA66",0x724B],
+ ["DA67",0x725A],
+ ["DA68",0x7288],
+ ["DA69",0x7289],
+ ["DA6A",0x7286],
+ ["DA6B",0x7285],
+ ["DA6C",0x728B],
+ ["DA6D",0x7312],
+ ["DA6E",0x730B],
+ ["DA6F",0x7330],
+ ["DA70",0x7322],
+ ["DA71",0x7331],
+ ["DA72",0x7333],
+ ["DA73",0x7327],
+ ["DA74",0x7332],
+ ["DA75",0x732D],
+ ["DA76",0x7326],
+ ["DA77",0x7323],
+ ["DA78",0x7335],
+ ["DA79",0x730C],
+ ["DA7A",0x742E],
+ ["DA7B",0x742C],
+ ["DA7C",0x7430],
+ ["DA7D",0x742B],
+ ["DA7E",0x7416],
+ ["DAA1",0x741A],
+ ["DAA2",0x7421],
+ ["DAA3",0x742D],
+ ["DAA4",0x7431],
+ ["DAA5",0x7424],
+ ["DAA6",0x7423],
+ ["DAA7",0x741D],
+ ["DAA8",0x7429],
+ ["DAA9",0x7420],
+ ["DAAA",0x7432],
+ ["DAAB",0x74FB],
+ ["DAAC",0x752F],
+ ["DAAD",0x756F],
+ ["DAAE",0x756C],
+ ["DAAF",0x75E7],
+ ["DAB0",0x75DA],
+ ["DAB1",0x75E1],
+ ["DAB2",0x75E6],
+ ["DAB3",0x75DD],
+ ["DAB4",0x75DF],
+ ["DAB5",0x75E4],
+ ["DAB6",0x75D7],
+ ["DAB7",0x7695],
+ ["DAB8",0x7692],
+ ["DAB9",0x76DA],
+ ["DABA",0x7746],
+ ["DABB",0x7747],
+ ["DABC",0x7744],
+ ["DABD",0x774D],
+ ["DABE",0x7745],
+ ["DABF",0x774A],
+ ["DAC0",0x774E],
+ ["DAC1",0x774B],
+ ["DAC2",0x774C],
+ ["DAC3",0x77DE],
+ ["DAC4",0x77EC],
+ ["DAC5",0x7860],
+ ["DAC6",0x7864],
+ ["DAC7",0x7865],
+ ["DAC8",0x785C],
+ ["DAC9",0x786D],
+ ["DACA",0x7871],
+ ["DACB",0x786A],
+ ["DACC",0x786E],
+ ["DACD",0x7870],
+ ["DACE",0x7869],
+ ["DACF",0x7868],
+ ["DAD0",0x785E],
+ ["DAD1",0x7862],
+ ["DAD2",0x7974],
+ ["DAD3",0x7973],
+ ["DAD4",0x7972],
+ ["DAD5",0x7970],
+ ["DAD6",0x7A02],
+ ["DAD7",0x7A0A],
+ ["DAD8",0x7A03],
+ ["DAD9",0x7A0C],
+ ["DADA",0x7A04],
+ ["DADB",0x7A99],
+ ["DADC",0x7AE6],
+ ["DADD",0x7AE4],
+ ["DADE",0x7B4A],
+ ["DADF",0x7B3B],
+ ["DAE0",0x7B44],
+ ["DAE1",0x7B48],
+ ["DAE2",0x7B4C],
+ ["DAE3",0x7B4E],
+ ["DAE4",0x7B40],
+ ["DAE5",0x7B58],
+ ["DAE6",0x7B45],
+ ["DAE7",0x7CA2],
+ ["DAE8",0x7C9E],
+ ["DAE9",0x7CA8],
+ ["DAEA",0x7CA1],
+ ["DAEB",0x7D58],
+ ["DAEC",0x7D6F],
+ ["DAED",0x7D63],
+ ["DAEE",0x7D53],
+ ["DAEF",0x7D56],
+ ["DAF0",0x7D67],
+ ["DAF1",0x7D6A],
+ ["DAF2",0x7D4F],
+ ["DAF3",0x7D6D],
+ ["DAF4",0x7D5C],
+ ["DAF5",0x7D6B],
+ ["DAF6",0x7D52],
+ ["DAF7",0x7D54],
+ ["DAF8",0x7D69],
+ ["DAF9",0x7D51],
+ ["DAFA",0x7D5F],
+ ["DAFB",0x7D4E],
+ ["DAFC",0x7F3E],
+ ["DAFD",0x7F3F],
+ ["DAFE",0x7F65],
+ ["DB40",0x7F66],
+ ["DB41",0x7FA2],
+ ["DB42",0x7FA0],
+ ["DB43",0x7FA1],
+ ["DB44",0x7FD7],
+ ["DB45",0x8051],
+ ["DB46",0x804F],
+ ["DB47",0x8050],
+ ["DB48",0x80FE],
+ ["DB49",0x80D4],
+ ["DB4A",0x8143],
+ ["DB4B",0x814A],
+ ["DB4C",0x8152],
+ ["DB4D",0x814F],
+ ["DB4E",0x8147],
+ ["DB4F",0x813D],
+ ["DB50",0x814D],
+ ["DB51",0x813A],
+ ["DB52",0x81E6],
+ ["DB53",0x81EE],
+ ["DB54",0x81F7],
+ ["DB55",0x81F8],
+ ["DB56",0x81F9],
+ ["DB57",0x8204],
+ ["DB58",0x823C],
+ ["DB59",0x823D],
+ ["DB5A",0x823F],
+ ["DB5B",0x8275],
+ ["DB5C",0x833B],
+ ["DB5D",0x83CF],
+ ["DB5E",0x83F9],
+ ["DB5F",0x8423],
["DB60",0x83C0],
- ["B5D7",0x83C1],
- ["DB7D",0x83C2],
- ["DBA7",0x83C3],
- ["DBAA",0x83C4],
- ["B5D5",0x83C5],
+ ["DB61",0x83E8],
+ ["DB62",0x8412],
+ ["DB63",0x83E7],
+ ["DB64",0x83E4],
+ ["DB65",0x83FC],
+ ["DB66",0x83F6],
+ ["DB67",0x8410],
["DB68",0x83C6],
- ["DBA3",0x83C7],
["DB69",0x83C8],
- ["DB77",0x83C9],
- ["B5E2",0x83CA],
+ ["DB6A",0x83EB],
+ ["DB6B",0x83E3],
+ ["DB6C",0x83BF],
+ ["DB6D",0x8401],
+ ["DB6E",0x83DD],
+ ["DB6F",0x83E5],
+ ["DB70",0x83D8],
+ ["DB71",0x83FF],
+ ["DB72",0x83E1],
["DB73",0x83CB],
- ["B5DF",0x83CC],
["DB74",0x83CE],
- ["DB5D",0x83CF],
- ["DBA4",0x83D1],
- ["B5E8",0x83D4],
- ["DBA1",0x83D5],
["DB75",0x83D6],
- ["DBAC",0x83D7],
- ["DB70",0x83D8],
- ["DFC8",0x83D9],
- ["DBAF",0x83DB],
- ["B5E6",0x83DC],
- ["DB6E",0x83DD],
- ["DB7A",0x83DE],
- ["B5E9",0x83DF],
- ["B5D4",0x83E0],
- ["DB72",0x83E1],
- ["DBAD",0x83E2],
- ["DB6B",0x83E3],
- ["DB64",0x83E4],
- ["DB6F",0x83E5],
- ["DB63",0x83E7],
- ["DB61",0x83E8],
- ["B5D0",0x83E9],
- ["DBA5",0x83EA],
- ["DB6A",0x83EB],
- ["DBA8",0x83EC],
- ["DBA9",0x83EE],
- ["B5D8",0x83EF],
- ["B5DD",0x83F0],
- ["B5D9",0x83F1],
- ["B5E1",0x83F2],
- ["DB7E",0x83F3],
- ["B5DA",0x83F4],
["DB76",0x83F5],
- ["DB66",0x83F6],
- ["B5D2",0x83F8],
- ["DB5E",0x83F9],
- ["DBA2",0x83FA],
- ["DBAB",0x83FB],
- ["DB65",0x83FC],
- ["B5E0",0x83FD],
- ["DBB0",0x83FE],
- ["DB71",0x83FF],
- ["DB6D",0x8401],
- ["B5D1",0x8403],
- ["B5E5",0x8404],
- ["DB7C",0x8406],
- ["B5E7",0x8407],
+ ["DB77",0x83C9],
["DB78",0x8409],
- ["B5DC",0x840A],
- ["B5D6",0x840B],
- ["B5DE",0x840C],
- ["B5D3",0x840D],
- ["B5E4",0x840E],
["DB79",0x840F],
- ["DB67",0x8410],
+ ["DB7A",0x83DE],
["DB7B",0x8411],
- ["DB62",0x8412],
+ ["DB7C",0x8406],
+ ["DB7D",0x83C2],
+ ["DB7E",0x83F3],
+ ["DBA1",0x83D5],
+ ["DBA2",0x83FA],
+ ["DBA3",0x83C7],
+ ["DBA4",0x83D1],
+ ["DBA5",0x83EA],
["DBA6",0x8413],
+ ["DBA7",0x83C3],
+ ["DBA8",0x83EC],
+ ["DBA9",0x83EE],
+ ["DBAA",0x83C4],
+ ["DBAB",0x83FB],
+ ["DBAC",0x83D7],
+ ["DBAD",0x83E2],
["DBAE",0x841B],
- ["DB5F",0x8423],
- ["DFC7",0x8429],
- ["DFDD",0x842B],
- ["B855",0x842C],
- ["DFCC",0x842D],
- ["DFCA",0x842F],
+ ["DBAF",0x83DB],
+ ["DBB0",0x83FE],
+ ["DBB1",0x86D8],
+ ["DBB2",0x86E2],
+ ["DBB3",0x86E6],
+ ["DBB4",0x86D3],
+ ["DBB5",0x86E3],
+ ["DBB6",0x86DA],
+ ["DBB7",0x86EA],
+ ["DBB8",0x86DD],
+ ["DBB9",0x86EB],
+ ["DBBA",0x86DC],
+ ["DBBB",0x86EC],
+ ["DBBC",0x86E9],
+ ["DBBD",0x86D7],
+ ["DBBE",0x86E8],
+ ["DBBF",0x86D1],
+ ["DBC0",0x8848],
+ ["DBC1",0x8856],
+ ["DBC2",0x8855],
+ ["DBC3",0x88BA],
+ ["DBC4",0x88D7],
+ ["DBC5",0x88B9],
+ ["DBC6",0x88B8],
+ ["DBC7",0x88C0],
+ ["DBC8",0x88BE],
+ ["DBC9",0x88B6],
+ ["DBCA",0x88BC],
+ ["DBCB",0x88B7],
+ ["DBCC",0x88BD],
+ ["DBCD",0x88B2],
+ ["DBCE",0x8901],
+ ["DBCF",0x88C9],
+ ["DBD0",0x8995],
+ ["DBD1",0x8998],
+ ["DBD2",0x8997],
+ ["DBD3",0x89DD],
+ ["DBD4",0x89DA],
+ ["DBD5",0x89DB],
+ ["DBD6",0x8A4E],
+ ["DBD7",0x8A4D],
+ ["DBD8",0x8A39],
+ ["DBD9",0x8A59],
+ ["DBDA",0x8A40],
+ ["DBDB",0x8A57],
+ ["DBDC",0x8A58],
+ ["DBDD",0x8A44],
+ ["DBDE",0x8A45],
+ ["DBDF",0x8A52],
+ ["DBE0",0x8A48],
+ ["DBE1",0x8A51],
+ ["DBE2",0x8A4A],
+ ["DBE3",0x8A4C],
+ ["DBE4",0x8A4F],
+ ["DBE5",0x8C5F],
+ ["DBE6",0x8C81],
+ ["DBE7",0x8C80],
+ ["DBE8",0x8CBA],
+ ["DBE9",0x8CBE],
+ ["DBEA",0x8CB0],
+ ["DBEB",0x8CB9],
+ ["DBEC",0x8CB5],
+ ["DBED",0x8D84],
+ ["DBEE",0x8D80],
+ ["DBEF",0x8D89],
+ ["DBF0",0x8DD8],
+ ["DBF1",0x8DD3],
+ ["DBF2",0x8DCD],
+ ["DBF3",0x8DC7],
+ ["DBF4",0x8DD6],
+ ["DBF5",0x8DDC],
+ ["DBF6",0x8DCF],
+ ["DBF7",0x8DD5],
+ ["DBF8",0x8DD9],
+ ["DBF9",0x8DC8],
+ ["DBFA",0x8DD7],
+ ["DBFB",0x8DC5],
+ ["DBFC",0x8EEF],
+ ["DBFD",0x8EF7],
+ ["DBFE",0x8EFA],
+ ["DC40",0x8EF9],
+ ["DC41",0x8EE6],
+ ["DC42",0x8EEE],
+ ["DC43",0x8EE5],
+ ["DC44",0x8EF5],
+ ["DC45",0x8EE7],
+ ["DC46",0x8EE8],
+ ["DC47",0x8EF6],
+ ["DC48",0x8EEB],
+ ["DC49",0x8EF1],
+ ["DC4A",0x8EEC],
+ ["DC4B",0x8EF4],
+ ["DC4C",0x8EE9],
+ ["DC4D",0x902D],
+ ["DC4E",0x9034],
+ ["DC4F",0x902F],
+ ["DC50",0x9106],
+ ["DC51",0x912C],
+ ["DC52",0x9104],
+ ["DC53",0x90FF],
+ ["DC54",0x90FC],
+ ["DC55",0x9108],
+ ["DC56",0x90F9],
+ ["DC57",0x90FB],
+ ["DC58",0x9101],
+ ["DC59",0x9100],
+ ["DC5A",0x9107],
+ ["DC5B",0x9105],
+ ["DC5C",0x9103],
+ ["DC5D",0x9161],
+ ["DC5E",0x9164],
+ ["DC5F",0x915F],
+ ["DC60",0x9162],
+ ["DC61",0x9160],
+ ["DC62",0x9201],
+ ["DC63",0x920A],
+ ["DC64",0x9225],
+ ["DC65",0x9203],
+ ["DC66",0x921A],
+ ["DC67",0x9226],
+ ["DC68",0x920F],
+ ["DC69",0x920C],
+ ["DC6A",0x9200],
+ ["DC6B",0x9212],
+ ["DC6C",0x91FF],
+ ["DC6D",0x91FD],
+ ["DC6E",0x9206],
+ ["DC6F",0x9204],
+ ["DC70",0x9227],
+ ["DC71",0x9202],
+ ["DC72",0x921C],
+ ["DC73",0x9224],
+ ["DC74",0x9219],
+ ["DC75",0x9217],
+ ["DC76",0x9205],
+ ["DC77",0x9216],
+ ["DC78",0x957B],
+ ["DC79",0x958D],
+ ["DC7A",0x958C],
+ ["DC7B",0x9590],
+ ["DC7C",0x9687],
+ ["DC7D",0x967E],
+ ["DC7E",0x9688],
+ ["DCA1",0x9689],
+ ["DCA2",0x9683],
+ ["DCA3",0x9680],
+ ["DCA4",0x96C2],
+ ["DCA5",0x96C8],
+ ["DCA6",0x96C3],
+ ["DCA7",0x96F1],
+ ["DCA8",0x96F0],
+ ["DCA9",0x976C],
+ ["DCAA",0x9770],
+ ["DCAB",0x976E],
+ ["DCAC",0x9807],
+ ["DCAD",0x98A9],
+ ["DCAE",0x98EB],
+ ["DCAF",0x9CE6],
+ ["DCB0",0x9EF9],
+ ["DCB1",0x4E83],
+ ["DCB2",0x4E84],
+ ["DCB3",0x4EB6],
+ ["DCB4",0x50BD],
+ ["DCB5",0x50BF],
+ ["DCB6",0x50C6],
+ ["DCB7",0x50AE],
+ ["DCB8",0x50C4],
+ ["DCB9",0x50CA],
+ ["DCBA",0x50B4],
+ ["DCBB",0x50C8],
+ ["DCBC",0x50C2],
+ ["DCBD",0x50B0],
+ ["DCBE",0x50C1],
+ ["DCBF",0x50BA],
+ ["DCC0",0x50B1],
+ ["DCC1",0x50CB],
+ ["DCC2",0x50C9],
+ ["DCC3",0x50B6],
+ ["DCC4",0x50B8],
+ ["DCC5",0x51D7],
+ ["DCC6",0x527A],
+ ["DCC7",0x5278],
+ ["DCC8",0x527B],
+ ["DCC9",0x527C],
+ ["DCCA",0x55C3],
+ ["DCCB",0x55DB],
+ ["DCCC",0x55CC],
+ ["DCCD",0x55D0],
+ ["DCCE",0x55CB],
+ ["DCCF",0x55CA],
+ ["DCD0",0x55DD],
+ ["DCD1",0x55C0],
+ ["DCD2",0x55D4],
+ ["DCD3",0x55C4],
+ ["DCD4",0x55E9],
+ ["DCD5",0x55BF],
+ ["DCD6",0x55D2],
+ ["DCD7",0x558D],
+ ["DCD8",0x55CF],
+ ["DCD9",0x55D5],
+ ["DCDA",0x55E2],
+ ["DCDB",0x55D6],
+ ["DCDC",0x55C8],
+ ["DCDD",0x55F2],
+ ["DCDE",0x55CD],
+ ["DCDF",0x55D9],
+ ["DCE0",0x55C2],
+ ["DCE1",0x5714],
+ ["DCE2",0x5853],
+ ["DCE3",0x5868],
+ ["DCE4",0x5864],
+ ["DCE5",0x584F],
+ ["DCE6",0x584D],
+ ["DCE7",0x5849],
+ ["DCE8",0x586F],
+ ["DCE9",0x5855],
+ ["DCEA",0x584E],
+ ["DCEB",0x585D],
+ ["DCEC",0x5859],
+ ["DCED",0x5865],
+ ["DCEE",0x585B],
+ ["DCEF",0x583D],
+ ["DCF0",0x5863],
+ ["DCF1",0x5871],
+ ["DCF2",0x58FC],
+ ["DCF3",0x5AC7],
+ ["DCF4",0x5AC4],
+ ["DCF5",0x5ACB],
+ ["DCF6",0x5ABA],
+ ["DCF7",0x5AB8],
+ ["DCF8",0x5AB1],
+ ["DCF9",0x5AB5],
+ ["DCFA",0x5AB0],
+ ["DCFB",0x5ABF],
+ ["DCFC",0x5AC8],
+ ["DCFD",0x5ABB],
+ ["DCFE",0x5AC6],
+ ["DD40",0x5AB7],
+ ["DD41",0x5AC0],
+ ["DD42",0x5ACA],
+ ["DD43",0x5AB4],
+ ["DD44",0x5AB6],
+ ["DD45",0x5ACD],
+ ["DD46",0x5AB9],
+ ["DD47",0x5A90],
+ ["DD48",0x5BD6],
+ ["DD49",0x5BD8],
+ ["DD4A",0x5BD9],
+ ["DD4B",0x5C1F],
+ ["DD4C",0x5C33],
+ ["DD4D",0x5D71],
+ ["DD4E",0x5D63],
+ ["DD4F",0x5D4A],
+ ["DD50",0x5D65],
+ ["DD51",0x5D72],
+ ["DD52",0x5D6C],
+ ["DD53",0x5D5E],
+ ["DD54",0x5D68],
+ ["DD55",0x5D67],
+ ["DD56",0x5D62],
+ ["DD57",0x5DF0],
+ ["DD58",0x5E4F],
+ ["DD59",0x5E4E],
+ ["DD5A",0x5E4A],
+ ["DD5B",0x5E4D],
+ ["DD5C",0x5E4B],
+ ["DD5D",0x5EC5],
+ ["DD5E",0x5ECC],
+ ["DD5F",0x5EC6],
+ ["DD60",0x5ECB],
+ ["DD61",0x5EC7],
+ ["DD62",0x5F40],
+ ["DD63",0x5FAF],
+ ["DD64",0x5FAD],
+ ["DD65",0x60F7],
+ ["DD66",0x6149],
+ ["DD67",0x614A],
+ ["DD68",0x612B],
+ ["DD69",0x6145],
+ ["DD6A",0x6136],
+ ["DD6B",0x6132],
+ ["DD6C",0x612E],
+ ["DD6D",0x6146],
+ ["DD6E",0x612F],
+ ["DD6F",0x614F],
+ ["DD70",0x6129],
+ ["DD71",0x6140],
+ ["DD72",0x6220],
+ ["DD73",0x9168],
+ ["DD74",0x6223],
+ ["DD75",0x6225],
+ ["DD76",0x6224],
+ ["DD77",0x63C5],
+ ["DD78",0x63F1],
+ ["DD79",0x63EB],
+ ["DD7A",0x6410],
+ ["DD7B",0x6412],
+ ["DD7C",0x6409],
+ ["DD7D",0x6420],
+ ["DD7E",0x6424],
+ ["DDA1",0x6433],
+ ["DDA2",0x6443],
+ ["DDA3",0x641F],
+ ["DDA4",0x6415],
+ ["DDA5",0x6418],
+ ["DDA6",0x6439],
+ ["DDA7",0x6437],
+ ["DDA8",0x6422],
+ ["DDA9",0x6423],
+ ["DDAA",0x640C],
+ ["DDAB",0x6426],
+ ["DDAC",0x6430],
+ ["DDAD",0x6428],
+ ["DDAE",0x6441],
+ ["DDAF",0x6435],
+ ["DDB0",0x642F],
+ ["DDB1",0x640A],
+ ["DDB2",0x641A],
+ ["DDB3",0x6440],
+ ["DDB4",0x6425],
+ ["DDB5",0x6427],
+ ["DDB6",0x640B],
+ ["DDB7",0x63E7],
+ ["DDB8",0x641B],
+ ["DDB9",0x642E],
+ ["DDBA",0x6421],
+ ["DDBB",0x640E],
+ ["DDBC",0x656F],
+ ["DDBD",0x6592],
+ ["DDBE",0x65D3],
+ ["DDBF",0x6686],
+ ["DDC0",0x668C],
+ ["DDC1",0x6695],
+ ["DDC2",0x6690],
+ ["DDC3",0x668B],
+ ["DDC4",0x668A],
+ ["DDC5",0x6699],
+ ["DDC6",0x6694],
+ ["DDC7",0x6678],
+ ["DDC8",0x6720],
+ ["DDC9",0x6966],
+ ["DDCA",0x695F],
+ ["DDCB",0x6938],
+ ["DDCC",0x694E],
+ ["DDCD",0x6962],
+ ["DDCE",0x6971],
+ ["DDCF",0x693F],
+ ["DDD0",0x6945],
+ ["DDD1",0x696A],
+ ["DDD2",0x6939],
+ ["DDD3",0x6942],
+ ["DDD4",0x6957],
+ ["DDD5",0x6959],
+ ["DDD6",0x697A],
+ ["DDD7",0x6948],
+ ["DDD8",0x6949],
+ ["DDD9",0x6935],
+ ["DDDA",0x696C],
+ ["DDDB",0x6933],
+ ["DDDC",0x693D],
+ ["DDDD",0x6965],
+ ["DDDE",0x68F0],
+ ["DDDF",0x6978],
+ ["DDE0",0x6934],
+ ["DDE1",0x6969],
+ ["DDE2",0x6940],
+ ["DDE3",0x696F],
+ ["DDE4",0x6944],
+ ["DDE5",0x6976],
+ ["DDE6",0x6958],
+ ["DDE7",0x6941],
+ ["DDE8",0x6974],
+ ["DDE9",0x694C],
+ ["DDEA",0x693B],
+ ["DDEB",0x694B],
+ ["DDEC",0x6937],
+ ["DDED",0x695C],
+ ["DDEE",0x694F],
+ ["DDEF",0x6951],
+ ["DDF0",0x6932],
+ ["DDF1",0x6952],
+ ["DDF2",0x692F],
+ ["DDF3",0x697B],
+ ["DDF4",0x693C],
+ ["DDF5",0x6B46],
+ ["DDF6",0x6B45],
+ ["DDF7",0x6B43],
+ ["DDF8",0x6B42],
+ ["DDF9",0x6B48],
+ ["DDFA",0x6B41],
+ ["DDFB",0x6B9B],
+ ["DDFC",0xFA0D],
+ ["DDFD",0x6BFB],
+ ["DDFE",0x6BFC],
+ ["DE40",0x6BF9],
+ ["DE41",0x6BF7],
+ ["DE42",0x6BF8],
+ ["DE43",0x6E9B],
+ ["DE44",0x6ED6],
+ ["DE45",0x6EC8],
+ ["DE46",0x6E8F],
+ ["DE47",0x6EC0],
+ ["DE48",0x6E9F],
+ ["DE49",0x6E93],
+ ["DE4A",0x6E94],
+ ["DE4B",0x6EA0],
+ ["DE4C",0x6EB1],
+ ["DE4D",0x6EB9],
+ ["DE4E",0x6EC6],
+ ["DE4F",0x6ED2],
+ ["DE50",0x6EBD],
+ ["DE51",0x6EC1],
+ ["DE52",0x6E9E],
+ ["DE53",0x6EC9],
+ ["DE54",0x6EB7],
+ ["DE55",0x6EB0],
+ ["DE56",0x6ECD],
+ ["DE57",0x6EA6],
+ ["DE58",0x6ECF],
+ ["DE59",0x6EB2],
+ ["DE5A",0x6EBE],
+ ["DE5B",0x6EC3],
+ ["DE5C",0x6EDC],
+ ["DE5D",0x6ED8],
+ ["DE5E",0x6E99],
+ ["DE5F",0x6E92],
+ ["DE60",0x6E8E],
+ ["DE61",0x6E8D],
+ ["DE62",0x6EA4],
+ ["DE63",0x6EA1],
+ ["DE64",0x6EBF],
+ ["DE65",0x6EB3],
+ ["DE66",0x6ED0],
+ ["DE67",0x6ECA],
+ ["DE68",0x6E97],
+ ["DE69",0x6EAE],
+ ["DE6A",0x6EA3],
+ ["DE6B",0x7147],
+ ["DE6C",0x7154],
+ ["DE6D",0x7152],
+ ["DE6E",0x7163],
+ ["DE6F",0x7160],
+ ["DE70",0x7141],
+ ["DE71",0x715D],
+ ["DE72",0x7162],
+ ["DE73",0x7172],
+ ["DE74",0x7178],
+ ["DE75",0x716A],
+ ["DE76",0x7161],
+ ["DE77",0x7142],
+ ["DE78",0x7158],
+ ["DE79",0x7143],
+ ["DE7A",0x714B],
+ ["DE7B",0x7170],
+ ["DE7C",0x715F],
+ ["DE7D",0x7150],
+ ["DE7E",0x7153],
+ ["DEA1",0x7144],
+ ["DEA2",0x714D],
+ ["DEA3",0x715A],
+ ["DEA4",0x724F],
+ ["DEA5",0x728D],
+ ["DEA6",0x728C],
+ ["DEA7",0x7291],
+ ["DEA8",0x7290],
+ ["DEA9",0x728E],
+ ["DEAA",0x733C],
+ ["DEAB",0x7342],
+ ["DEAC",0x733B],
+ ["DEAD",0x733A],
+ ["DEAE",0x7340],
+ ["DEAF",0x734A],
+ ["DEB0",0x7349],
+ ["DEB1",0x7444],
+ ["DEB2",0x744A],
+ ["DEB3",0x744B],
+ ["DEB4",0x7452],
+ ["DEB5",0x7451],
+ ["DEB6",0x7457],
+ ["DEB7",0x7440],
+ ["DEB8",0x744F],
+ ["DEB9",0x7450],
+ ["DEBA",0x744E],
+ ["DEBB",0x7442],
+ ["DEBC",0x7446],
+ ["DEBD",0x744D],
+ ["DEBE",0x7454],
+ ["DEBF",0x74E1],
+ ["DEC0",0x74FF],
+ ["DEC1",0x74FE],
+ ["DEC2",0x74FD],
+ ["DEC3",0x751D],
+ ["DEC4",0x7579],
+ ["DEC5",0x7577],
+ ["DEC6",0x6983],
+ ["DEC7",0x75EF],
+ ["DEC8",0x760F],
+ ["DEC9",0x7603],
+ ["DECA",0x75F7],
+ ["DECB",0x75FE],
+ ["DECC",0x75FC],
+ ["DECD",0x75F9],
+ ["DECE",0x75F8],
+ ["DECF",0x7610],
+ ["DED0",0x75FB],
+ ["DED1",0x75F6],
+ ["DED2",0x75ED],
+ ["DED3",0x75F5],
+ ["DED4",0x75FD],
+ ["DED5",0x7699],
+ ["DED6",0x76B5],
+ ["DED7",0x76DD],
+ ["DED8",0x7755],
+ ["DED9",0x775F],
+ ["DEDA",0x7760],
+ ["DEDB",0x7752],
+ ["DEDC",0x7756],
+ ["DEDD",0x775A],
+ ["DEDE",0x7769],
+ ["DEDF",0x7767],
+ ["DEE0",0x7754],
+ ["DEE1",0x7759],
+ ["DEE2",0x776D],
+ ["DEE3",0x77E0],
+ ["DEE4",0x7887],
+ ["DEE5",0x789A],
+ ["DEE6",0x7894],
+ ["DEE7",0x788F],
+ ["DEE8",0x7884],
+ ["DEE9",0x7895],
+ ["DEEA",0x7885],
+ ["DEEB",0x7886],
+ ["DEEC",0x78A1],
+ ["DEED",0x7883],
+ ["DEEE",0x7879],
+ ["DEEF",0x7899],
+ ["DEF0",0x7880],
+ ["DEF1",0x7896],
+ ["DEF2",0x787B],
+ ["DEF3",0x797C],
+ ["DEF4",0x7982],
+ ["DEF5",0x797D],
+ ["DEF6",0x7979],
+ ["DEF7",0x7A11],
+ ["DEF8",0x7A18],
+ ["DEF9",0x7A19],
+ ["DEFA",0x7A12],
+ ["DEFB",0x7A17],
+ ["DEFC",0x7A15],
+ ["DEFD",0x7A22],
+ ["DEFE",0x7A13],
+ ["DF40",0x7A1B],
+ ["DF41",0x7A10],
+ ["DF42",0x7AA3],
+ ["DF43",0x7AA2],
+ ["DF44",0x7A9E],
+ ["DF45",0x7AEB],
+ ["DF46",0x7B66],
+ ["DF47",0x7B64],
+ ["DF48",0x7B6D],
+ ["DF49",0x7B74],
+ ["DF4A",0x7B69],
+ ["DF4B",0x7B72],
+ ["DF4C",0x7B65],
+ ["DF4D",0x7B73],
+ ["DF4E",0x7B71],
+ ["DF4F",0x7B70],
+ ["DF50",0x7B61],
+ ["DF51",0x7B78],
+ ["DF52",0x7B76],
+ ["DF53",0x7B63],
+ ["DF54",0x7CB2],
+ ["DF55",0x7CB4],
+ ["DF56",0x7CAF],
+ ["DF57",0x7D88],
+ ["DF58",0x7D86],
+ ["DF59",0x7D80],
+ ["DF5A",0x7D8D],
+ ["DF5B",0x7D7F],
+ ["DF5C",0x7D85],
+ ["DF5D",0x7D7A],
+ ["DF5E",0x7D8E],
+ ["DF5F",0x7D7B],
+ ["DF60",0x7D83],
+ ["DF61",0x7D7C],
+ ["DF62",0x7D8C],
+ ["DF63",0x7D94],
+ ["DF64",0x7D84],
+ ["DF65",0x7D7D],
+ ["DF66",0x7D92],
+ ["DF67",0x7F6D],
+ ["DF68",0x7F6B],
+ ["DF69",0x7F67],
+ ["DF6A",0x7F68],
+ ["DF6B",0x7F6C],
+ ["DF6C",0x7FA6],
+ ["DF6D",0x7FA5],
+ ["DF6E",0x7FA7],
+ ["DF6F",0x7FDB],
+ ["DF70",0x7FDC],
+ ["DF71",0x8021],
+ ["DF72",0x8164],
+ ["DF73",0x8160],
+ ["DF74",0x8177],
+ ["DF75",0x815C],
+ ["DF76",0x8169],
+ ["DF77",0x815B],
+ ["DF78",0x8162],
+ ["DF79",0x8172],
+ ["DF7A",0x6721],
+ ["DF7B",0x815E],
+ ["DF7C",0x8176],
+ ["DF7D",0x8167],
+ ["DF7E",0x816F],
+ ["DFA1",0x8144],
+ ["DFA2",0x8161],
+ ["DFA3",0x821D],
+ ["DFA4",0x8249],
+ ["DFA5",0x8244],
+ ["DFA6",0x8240],
+ ["DFA7",0x8242],
+ ["DFA8",0x8245],
+ ["DFA9",0x84F1],
+ ["DFAA",0x843F],
+ ["DFAB",0x8456],
+ ["DFAC",0x8476],
+ ["DFAD",0x8479],
+ ["DFAE",0x848F],
+ ["DFAF",0x848D],
+ ["DFB0",0x8465],
+ ["DFB1",0x8451],
+ ["DFB2",0x8440],
+ ["DFB3",0x8486],
+ ["DFB4",0x8467],
["DFB5",0x8430],
- ["B8A9",0x8431],
- ["DFC5",0x8432],
- ["DFD9",0x8433],
- ["DFC1",0x8434],
- ["B8B1",0x8435],
- ["DFD8",0x8436],
+ ["DFB6",0x844D],
+ ["DFB7",0x847D],
+ ["DFB8",0x845A],
+ ["DFB9",0x8459],
+ ["DFBA",0x8474],
+ ["DFBB",0x8473],
+ ["DFBC",0x845D],
+ ["DFBD",0x8507],
+ ["DFBE",0x845E],
["DFBF",0x8437],
- ["B5E3",0x8438],
- ["DFCF",0x8439],
["DFC0",0x843A],
- ["DFD6",0x843B],
- ["B8B0",0x843C],
- ["B8A8",0x843D],
- ["DFAA",0x843F],
- ["DFB2",0x8440],
- ["DFCB",0x8442],
+ ["DFC1",0x8434],
+ ["DFC2",0x847A],
["DFC3",0x8443],
- ["DFDC",0x8444],
+ ["DFC4",0x8478],
+ ["DFC5",0x8432],
["DFC6",0x8445],
- ["B8B6",0x8446],
- ["DFD7",0x8447],
- ["B8AD",0x8449],
+ ["DFC7",0x8429],
+ ["DFC8",0x83D9],
["DFC9",0x844B],
- ["DFD1",0x844C],
- ["DFB6",0x844D],
+ ["DFCA",0x842F],
+ ["DFCB",0x8442],
+ ["DFCC",0x842D],
+ ["DFCD",0x845F],
+ ["DFCE",0x8470],
+ ["DFCF",0x8439],
["DFD0",0x844E],
- ["DFE1",0x8450],
- ["DFB1",0x8451],
+ ["DFD1",0x844C],
["DFD2",0x8452],
- ["DFDF",0x8454],
- ["DFAB",0x8456],
- ["B5DB",0x8457],
- ["DFB9",0x8459],
- ["DFB8",0x845A],
- ["B8AF",0x845B],
- ["DFBC",0x845D],
- ["DFBE",0x845E],
- ["DFCD",0x845F],
- ["DFDE",0x8460],
- ["B8B2",0x8461],
- ["B8B3",0x8463],
- ["DFB0",0x8465],
- ["B8AB",0x8466],
- ["DFB4",0x8467],
- ["DFDA",0x8468],
- ["B8B4",0x8469],
- ["B8AC",0x846B],
- ["B8AE",0x846C],
- ["B8B5",0x846D],
- ["DFE0",0x846E],
["DFD3",0x846F],
- ["DFCE",0x8470],
- ["DFBB",0x8473],
- ["DFBA",0x8474],
- ["B8AA",0x8475],
- ["DFAC",0x8476],
- ["B8A7",0x8477],
- ["DFC4",0x8478],
- ["DFAD",0x8479],
- ["DFC2",0x847A],
- ["DFB7",0x847D],
- ["DFDB",0x847E],
- ["B8A6",0x8482],
- ["DFB3",0x8486],
- ["DFAF",0x848D],
+ ["DFD4",0x84C5],
["DFD5",0x848E],
- ["DFAE",0x848F],
- ["BB60",0x8490],
- ["E3D3",0x8491],
- ["E3C2",0x8494],
+ ["DFD6",0x843B],
+ ["DFD7",0x8447],
+ ["DFD8",0x8436],
+ ["DFD9",0x8433],
+ ["DFDA",0x8468],
+ ["DFDB",0x847E],
+ ["DFDC",0x8444],
+ ["DFDD",0x842B],
+ ["DFDE",0x8460],
+ ["DFDF",0x8454],
+ ["DFE0",0x846E],
+ ["DFE1",0x8450],
+ ["DFE2",0x870B],
+ ["DFE3",0x8704],
+ ["DFE4",0x86F7],
+ ["DFE5",0x870C],
+ ["DFE6",0x86FA],
+ ["DFE7",0x86D6],
+ ["DFE8",0x86F5],
+ ["DFE9",0x874D],
+ ["DFEA",0x86F8],
+ ["DFEB",0x870E],
+ ["DFEC",0x8709],
+ ["DFED",0x8701],
+ ["DFEE",0x86F6],
+ ["DFEF",0x870D],
+ ["DFF0",0x8705],
+ ["DFF1",0x88D6],
+ ["DFF2",0x88CB],
+ ["DFF3",0x88CD],
+ ["DFF4",0x88CE],
+ ["DFF5",0x88DE],
+ ["DFF6",0x88DB],
+ ["DFF7",0x88DA],
+ ["DFF8",0x88CC],
+ ["DFF9",0x88D0],
+ ["DFFA",0x8985],
+ ["DFFB",0x899B],
+ ["DFFC",0x89DF],
+ ["DFFD",0x89E5],
+ ["DFFE",0x89E4],
+ ["E040",0x89E1],
+ ["E041",0x89E0],
+ ["E042",0x89E2],
+ ["E043",0x89DC],
+ ["E044",0x89E6],
+ ["E045",0x8A76],
+ ["E046",0x8A86],
+ ["E047",0x8A7F],
+ ["E048",0x8A61],
+ ["E049",0x8A3F],
+ ["E04A",0x8A77],
+ ["E04B",0x8A82],
+ ["E04C",0x8A84],
+ ["E04D",0x8A75],
+ ["E04E",0x8A83],
+ ["E04F",0x8A81],
+ ["E050",0x8A74],
+ ["E051",0x8A7A],
+ ["E052",0x8C3C],
+ ["E053",0x8C4B],
+ ["E054",0x8C4A],
+ ["E055",0x8C65],
+ ["E056",0x8C64],
+ ["E057",0x8C66],
+ ["E058",0x8C86],
+ ["E059",0x8C84],
+ ["E05A",0x8C85],
+ ["E05B",0x8CCC],
+ ["E05C",0x8D68],
+ ["E05D",0x8D69],
+ ["E05E",0x8D91],
+ ["E05F",0x8D8C],
+ ["E060",0x8D8E],
+ ["E061",0x8D8F],
+ ["E062",0x8D8D],
+ ["E063",0x8D93],
+ ["E064",0x8D94],
+ ["E065",0x8D90],
+ ["E066",0x8D92],
+ ["E067",0x8DF0],
+ ["E068",0x8DE0],
+ ["E069",0x8DEC],
+ ["E06A",0x8DF1],
+ ["E06B",0x8DEE],
+ ["E06C",0x8DD0],
+ ["E06D",0x8DE9],
+ ["E06E",0x8DE3],
+ ["E06F",0x8DE2],
+ ["E070",0x8DE7],
+ ["E071",0x8DF2],
+ ["E072",0x8DEB],
+ ["E073",0x8DF4],
+ ["E074",0x8F06],
+ ["E075",0x8EFF],
+ ["E076",0x8F01],
+ ["E077",0x8F00],
+ ["E078",0x8F05],
+ ["E079",0x8F07],
+ ["E07A",0x8F08],
+ ["E07B",0x8F02],
+ ["E07C",0x8F0B],
+ ["E07D",0x9052],
+ ["E07E",0x903F],
+ ["E0A1",0x9044],
+ ["E0A2",0x9049],
+ ["E0A3",0x903D],
+ ["E0A4",0x9110],
+ ["E0A5",0x910D],
+ ["E0A6",0x910F],
+ ["E0A7",0x9111],
+ ["E0A8",0x9116],
+ ["E0A9",0x9114],
+ ["E0AA",0x910B],
+ ["E0AB",0x910E],
+ ["E0AC",0x916E],
+ ["E0AD",0x916F],
+ ["E0AE",0x9248],
+ ["E0AF",0x9252],
+ ["E0B0",0x9230],
+ ["E0B1",0x923A],
+ ["E0B2",0x9266],
+ ["E0B3",0x9233],
+ ["E0B4",0x9265],
+ ["E0B5",0x925E],
+ ["E0B6",0x9283],
+ ["E0B7",0x922E],
+ ["E0B8",0x924A],
+ ["E0B9",0x9246],
+ ["E0BA",0x926D],
+ ["E0BB",0x926C],
+ ["E0BC",0x924F],
+ ["E0BD",0x9260],
+ ["E0BE",0x9267],
+ ["E0BF",0x926F],
+ ["E0C0",0x9236],
+ ["E0C1",0x9261],
+ ["E0C2",0x9270],
+ ["E0C3",0x9231],
+ ["E0C4",0x9254],
+ ["E0C5",0x9263],
+ ["E0C6",0x9250],
+ ["E0C7",0x9272],
+ ["E0C8",0x924E],
+ ["E0C9",0x9253],
+ ["E0CA",0x924C],
+ ["E0CB",0x9256],
+ ["E0CC",0x9232],
+ ["E0CD",0x959F],
+ ["E0CE",0x959C],
+ ["E0CF",0x959E],
+ ["E0D0",0x959B],
+ ["E0D1",0x9692],
+ ["E0D2",0x9693],
+ ["E0D3",0x9691],
+ ["E0D4",0x9697],
+ ["E0D5",0x96CE],
+ ["E0D6",0x96FA],
+ ["E0D7",0x96FD],
+ ["E0D8",0x96F8],
+ ["E0D9",0x96F5],
+ ["E0DA",0x9773],
+ ["E0DB",0x9777],
+ ["E0DC",0x9778],
+ ["E0DD",0x9772],
+ ["E0DE",0x980F],
+ ["E0DF",0x980D],
+ ["E0E0",0x980E],
+ ["E0E1",0x98AC],
+ ["E0E2",0x98F6],
+ ["E0E3",0x98F9],
+ ["E0E4",0x99AF],
+ ["E0E5",0x99B2],
+ ["E0E6",0x99B0],
+ ["E0E7",0x99B5],
+ ["E0E8",0x9AAD],
+ ["E0E9",0x9AAB],
+ ["E0EA",0x9B5B],
+ ["E0EB",0x9CEA],
+ ["E0EC",0x9CED],
+ ["E0ED",0x9CE7],
+ ["E0EE",0x9E80],
+ ["E0EF",0x9EFD],
+ ["E0F0",0x50E6],
+ ["E0F1",0x50D4],
+ ["E0F2",0x50D7],
+ ["E0F3",0x50E8],
+ ["E0F4",0x50F3],
+ ["E0F5",0x50DB],
+ ["E0F6",0x50EA],
+ ["E0F7",0x50DD],
+ ["E0F8",0x50E4],
+ ["E0F9",0x50D3],
+ ["E0FA",0x50EC],
+ ["E0FB",0x50F0],
+ ["E0FC",0x50EF],
+ ["E0FD",0x50E3],
+ ["E0FE",0x50E0],
+ ["E140",0x51D8],
+ ["E141",0x5280],
+ ["E142",0x5281],
+ ["E143",0x52E9],
+ ["E144",0x52EB],
+ ["E145",0x5330],
+ ["E146",0x53AC],
+ ["E147",0x5627],
+ ["E148",0x5615],
+ ["E149",0x560C],
+ ["E14A",0x5612],
+ ["E14B",0x55FC],
+ ["E14C",0x560F],
+ ["E14D",0x561C],
+ ["E14E",0x5601],
+ ["E14F",0x5613],
+ ["E150",0x5602],
+ ["E151",0x55FA],
+ ["E152",0x561D],
+ ["E153",0x5604],
+ ["E154",0x55FF],
+ ["E155",0x55F9],
+ ["E156",0x5889],
+ ["E157",0x587C],
+ ["E158",0x5890],
+ ["E159",0x5898],
+ ["E15A",0x5886],
+ ["E15B",0x5881],
+ ["E15C",0x587F],
+ ["E15D",0x5874],
+ ["E15E",0x588B],
+ ["E15F",0x587A],
+ ["E160",0x5887],
+ ["E161",0x5891],
+ ["E162",0x588E],
+ ["E163",0x5876],
+ ["E164",0x5882],
+ ["E165",0x5888],
+ ["E166",0x587B],
+ ["E167",0x5894],
+ ["E168",0x588F],
+ ["E169",0x58FE],
+ ["E16A",0x596B],
+ ["E16B",0x5ADC],
+ ["E16C",0x5AEE],
+ ["E16D",0x5AE5],
+ ["E16E",0x5AD5],
+ ["E16F",0x5AEA],
+ ["E170",0x5ADA],
+ ["E171",0x5AED],
+ ["E172",0x5AEB],
+ ["E173",0x5AF3],
+ ["E174",0x5AE2],
+ ["E175",0x5AE0],
+ ["E176",0x5ADB],
+ ["E177",0x5AEC],
+ ["E178",0x5ADE],
+ ["E179",0x5ADD],
+ ["E17A",0x5AD9],
+ ["E17B",0x5AE8],
+ ["E17C",0x5ADF],
+ ["E17D",0x5B77],
+ ["E17E",0x5BE0],
+ ["E1A1",0x5BE3],
+ ["E1A2",0x5C63],
+ ["E1A3",0x5D82],
+ ["E1A4",0x5D80],
+ ["E1A5",0x5D7D],
+ ["E1A6",0x5D86],
+ ["E1A7",0x5D7A],
+ ["E1A8",0x5D81],
+ ["E1A9",0x5D77],
+ ["E1AA",0x5D8A],
+ ["E1AB",0x5D89],
+ ["E1AC",0x5D88],
+ ["E1AD",0x5D7E],
+ ["E1AE",0x5D7C],
+ ["E1AF",0x5D8D],
+ ["E1B0",0x5D79],
+ ["E1B1",0x5D7F],
+ ["E1B2",0x5E58],
+ ["E1B3",0x5E59],
+ ["E1B4",0x5E53],
+ ["E1B5",0x5ED8],
+ ["E1B6",0x5ED1],
+ ["E1B7",0x5ED7],
+ ["E1B8",0x5ECE],
+ ["E1B9",0x5EDC],
+ ["E1BA",0x5ED5],
+ ["E1BB",0x5ED9],
+ ["E1BC",0x5ED2],
+ ["E1BD",0x5ED4],
+ ["E1BE",0x5F44],
+ ["E1BF",0x5F43],
+ ["E1C0",0x5F6F],
+ ["E1C1",0x5FB6],
+ ["E1C2",0x612C],
+ ["E1C3",0x6128],
+ ["E1C4",0x6141],
+ ["E1C5",0x615E],
+ ["E1C6",0x6171],
+ ["E1C7",0x6173],
+ ["E1C8",0x6152],
+ ["E1C9",0x6153],
+ ["E1CA",0x6172],
+ ["E1CB",0x616C],
+ ["E1CC",0x6180],
+ ["E1CD",0x6174],
+ ["E1CE",0x6154],
+ ["E1CF",0x617A],
+ ["E1D0",0x615B],
+ ["E1D1",0x6165],
+ ["E1D2",0x613B],
+ ["E1D3",0x616A],
+ ["E1D4",0x6161],
+ ["E1D5",0x6156],
+ ["E1D6",0x6229],
+ ["E1D7",0x6227],
+ ["E1D8",0x622B],
+ ["E1D9",0x642B],
+ ["E1DA",0x644D],
+ ["E1DB",0x645B],
+ ["E1DC",0x645D],
+ ["E1DD",0x6474],
+ ["E1DE",0x6476],
+ ["E1DF",0x6472],
+ ["E1E0",0x6473],
+ ["E1E1",0x647D],
+ ["E1E2",0x6475],
+ ["E1E3",0x6466],
+ ["E1E4",0x64A6],
+ ["E1E5",0x644E],
+ ["E1E6",0x6482],
+ ["E1E7",0x645E],
+ ["E1E8",0x645C],
+ ["E1E9",0x644B],
+ ["E1EA",0x6453],
+ ["E1EB",0x6460],
+ ["E1EC",0x6450],
+ ["E1ED",0x647F],
+ ["E1EE",0x643F],
+ ["E1EF",0x646C],
+ ["E1F0",0x646B],
+ ["E1F1",0x6459],
+ ["E1F2",0x6465],
+ ["E1F3",0x6477],
+ ["E1F4",0x6573],
+ ["E1F5",0x65A0],
+ ["E1F6",0x66A1],
+ ["E1F7",0x66A0],
+ ["E1F8",0x669F],
+ ["E1F9",0x6705],
+ ["E1FA",0x6704],
+ ["E1FB",0x6722],
+ ["E1FC",0x69B1],
+ ["E1FD",0x69B6],
+ ["E1FE",0x69C9],
+ ["E240",0x69A0],
+ ["E241",0x69CE],
+ ["E242",0x6996],
+ ["E243",0x69B0],
+ ["E244",0x69AC],
+ ["E245",0x69BC],
+ ["E246",0x6991],
+ ["E247",0x6999],
+ ["E248",0x698E],
+ ["E249",0x69A7],
+ ["E24A",0x698D],
+ ["E24B",0x69A9],
+ ["E24C",0x69BE],
+ ["E24D",0x69AF],
+ ["E24E",0x69BF],
+ ["E24F",0x69C4],
+ ["E250",0x69BD],
+ ["E251",0x69A4],
+ ["E252",0x69D4],
+ ["E253",0x69B9],
+ ["E254",0x69CA],
+ ["E255",0x699A],
+ ["E256",0x69CF],
+ ["E257",0x69B3],
+ ["E258",0x6993],
+ ["E259",0x69AA],
+ ["E25A",0x69A1],
+ ["E25B",0x699E],
+ ["E25C",0x69D9],
+ ["E25D",0x6997],
+ ["E25E",0x6990],
+ ["E25F",0x69C2],
+ ["E260",0x69B5],
+ ["E261",0x69A5],
+ ["E262",0x69C6],
+ ["E263",0x6B4A],
+ ["E264",0x6B4D],
+ ["E265",0x6B4B],
+ ["E266",0x6B9E],
+ ["E267",0x6B9F],
+ ["E268",0x6BA0],
+ ["E269",0x6BC3],
+ ["E26A",0x6BC4],
+ ["E26B",0x6BFE],
+ ["E26C",0x6ECE],
+ ["E26D",0x6EF5],
+ ["E26E",0x6EF1],
+ ["E26F",0x6F03],
+ ["E270",0x6F25],
+ ["E271",0x6EF8],
+ ["E272",0x6F37],
+ ["E273",0x6EFB],
+ ["E274",0x6F2E],
+ ["E275",0x6F09],
+ ["E276",0x6F4E],
+ ["E277",0x6F19],
+ ["E278",0x6F1A],
+ ["E279",0x6F27],
+ ["E27A",0x6F18],
+ ["E27B",0x6F3B],
+ ["E27C",0x6F12],
+ ["E27D",0x6EED],
+ ["E27E",0x6F0A],
+ ["E2A1",0x6F36],
+ ["E2A2",0x6F73],
+ ["E2A3",0x6EF9],
+ ["E2A4",0x6EEE],
+ ["E2A5",0x6F2D],
+ ["E2A6",0x6F40],
+ ["E2A7",0x6F30],
+ ["E2A8",0x6F3C],
+ ["E2A9",0x6F35],
+ ["E2AA",0x6EEB],
+ ["E2AB",0x6F07],
+ ["E2AC",0x6F0E],
+ ["E2AD",0x6F43],
+ ["E2AE",0x6F05],
+ ["E2AF",0x6EFD],
+ ["E2B0",0x6EF6],
+ ["E2B1",0x6F39],
+ ["E2B2",0x6F1C],
+ ["E2B3",0x6EFC],
+ ["E2B4",0x6F3A],
+ ["E2B5",0x6F1F],
+ ["E2B6",0x6F0D],
+ ["E2B7",0x6F1E],
+ ["E2B8",0x6F08],
+ ["E2B9",0x6F21],
+ ["E2BA",0x7187],
+ ["E2BB",0x7190],
+ ["E2BC",0x7189],
+ ["E2BD",0x7180],
+ ["E2BE",0x7185],
+ ["E2BF",0x7182],
+ ["E2C0",0x718F],
+ ["E2C1",0x717B],
+ ["E2C2",0x7186],
+ ["E2C3",0x7181],
+ ["E2C4",0x7197],
+ ["E2C5",0x7244],
+ ["E2C6",0x7253],
+ ["E2C7",0x7297],
+ ["E2C8",0x7295],
+ ["E2C9",0x7293],
+ ["E2CA",0x7343],
+ ["E2CB",0x734D],
+ ["E2CC",0x7351],
+ ["E2CD",0x734C],
+ ["E2CE",0x7462],
+ ["E2CF",0x7473],
+ ["E2D0",0x7471],
+ ["E2D1",0x7475],
+ ["E2D2",0x7472],
+ ["E2D3",0x7467],
+ ["E2D4",0x746E],
+ ["E2D5",0x7500],
+ ["E2D6",0x7502],
+ ["E2D7",0x7503],
+ ["E2D8",0x757D],
+ ["E2D9",0x7590],
+ ["E2DA",0x7616],
+ ["E2DB",0x7608],
+ ["E2DC",0x760C],
+ ["E2DD",0x7615],
+ ["E2DE",0x7611],
+ ["E2DF",0x760A],
+ ["E2E0",0x7614],
+ ["E2E1",0x76B8],
+ ["E2E2",0x7781],
+ ["E2E3",0x777C],
+ ["E2E4",0x7785],
+ ["E2E5",0x7782],
+ ["E2E6",0x776E],
+ ["E2E7",0x7780],
+ ["E2E8",0x776F],
+ ["E2E9",0x777E],
+ ["E2EA",0x7783],
+ ["E2EB",0x78B2],
+ ["E2EC",0x78AA],
+ ["E2ED",0x78B4],
+ ["E2EE",0x78AD],
+ ["E2EF",0x78A8],
+ ["E2F0",0x787E],
+ ["E2F1",0x78AB],
+ ["E2F2",0x789E],
+ ["E2F3",0x78A5],
+ ["E2F4",0x78A0],
+ ["E2F5",0x78AC],
+ ["E2F6",0x78A2],
+ ["E2F7",0x78A4],
+ ["E2F8",0x7998],
+ ["E2F9",0x798A],
+ ["E2FA",0x798B],
+ ["E2FB",0x7996],
+ ["E2FC",0x7995],
+ ["E2FD",0x7994],
+ ["E2FE",0x7993],
+ ["E340",0x7997],
+ ["E341",0x7988],
+ ["E342",0x7992],
+ ["E343",0x7990],
+ ["E344",0x7A2B],
+ ["E345",0x7A4A],
+ ["E346",0x7A30],
+ ["E347",0x7A2F],
+ ["E348",0x7A28],
+ ["E349",0x7A26],
+ ["E34A",0x7AA8],
+ ["E34B",0x7AAB],
+ ["E34C",0x7AAC],
+ ["E34D",0x7AEE],
+ ["E34E",0x7B88],
+ ["E34F",0x7B9C],
+ ["E350",0x7B8A],
+ ["E351",0x7B91],
+ ["E352",0x7B90],
+ ["E353",0x7B96],
+ ["E354",0x7B8D],
+ ["E355",0x7B8C],
+ ["E356",0x7B9B],
+ ["E357",0x7B8E],
+ ["E358",0x7B85],
+ ["E359",0x7B98],
+ ["E35A",0x5284],
+ ["E35B",0x7B99],
+ ["E35C",0x7BA4],
+ ["E35D",0x7B82],
+ ["E35E",0x7CBB],
+ ["E35F",0x7CBF],
+ ["E360",0x7CBC],
+ ["E361",0x7CBA],
+ ["E362",0x7DA7],
+ ["E363",0x7DB7],
+ ["E364",0x7DC2],
+ ["E365",0x7DA3],
+ ["E366",0x7DAA],
+ ["E367",0x7DC1],
+ ["E368",0x7DC0],
+ ["E369",0x7DC5],
+ ["E36A",0x7D9D],
+ ["E36B",0x7DCE],
+ ["E36C",0x7DC4],
+ ["E36D",0x7DC6],
+ ["E36E",0x7DCB],
+ ["E36F",0x7DCC],
+ ["E370",0x7DAF],
+ ["E371",0x7DB9],
+ ["E372",0x7D96],
+ ["E373",0x7DBC],
+ ["E374",0x7D9F],
+ ["E375",0x7DA6],
+ ["E376",0x7DAE],
+ ["E377",0x7DA9],
+ ["E378",0x7DA1],
+ ["E379",0x7DC9],
+ ["E37A",0x7F73],
+ ["E37B",0x7FE2],
+ ["E37C",0x7FE3],
+ ["E37D",0x7FE5],
+ ["E37E",0x7FDE],
+ ["E3A1",0x8024],
+ ["E3A2",0x805D],
+ ["E3A3",0x805C],
+ ["E3A4",0x8189],
+ ["E3A5",0x8186],
+ ["E3A6",0x8183],
+ ["E3A7",0x8187],
+ ["E3A8",0x818D],
+ ["E3A9",0x818C],
+ ["E3AA",0x818B],
+ ["E3AB",0x8215],
["E3AC",0x8497],
- ["E3CA",0x8498],
- ["BB58",0x8499],
- ["E3BB",0x849A],
- ["E3C5",0x849B],
- ["BB5B",0x849C],
- ["E3BE",0x849D],
- ["BB59",0x849E],
- ["E3AF",0x849F],
- ["E3CD",0x84A0],
- ["E3AE",0x84A1],
- ["E3C1",0x84A2],
["E3AD",0x84A4],
- ["E3BF",0x84A7],
- ["E3C8",0x84A8],
- ["E3C6",0x84A9],
- ["E3BA",0x84AA],
- ["E3B5",0x84AB],
+ ["E3AE",0x84A1],
+ ["E3AF",0x849F],
+ ["E3B0",0x84BA],
+ ["E3B1",0x84CE],
+ ["E3B2",0x84C2],
["E3B3",0x84AC],
["E3B4",0x84AE],
- ["E3C7",0x84AF],
- ["E3D2",0x84B0],
- ["E3BC",0x84B1],
- ["BB5A",0x84B2],
- ["E3B7",0x84B4],
- ["E3CB",0x84B6],
- ["BB5D",0x84B8],
+ ["E3B5",0x84AB],
["E3B6",0x84B9],
- ["E3B0",0x84BA],
- ["E3C0",0x84BB],
- ["BB61",0x84BC],
- ["BB55",0x84BF],
- ["BB5E",0x84C0],
+ ["E3B7",0x84B4],
["E3B8",0x84C1],
- ["E3B2",0x84C2],
- ["BB57",0x84C4],
- ["DFD4",0x84C5],
- ["BB56",0x84C6],
- ["E3C3",0x84C7],
- ["BB54",0x84C9],
- ["BB63",0x84CA],
- ["BB5C",0x84CB],
- ["E3C4",0x84CC],
["E3B9",0x84CD],
- ["E3B1",0x84CE],
- ["E3CC",0x84CF],
+ ["E3BA",0x84AA],
+ ["E3BB",0x849A],
+ ["E3BC",0x84B1],
["E3BD",0x84D0],
- ["BB62",0x84D1],
- ["E3D0",0x84D2],
- ["BB5F",0x84D3],
- ["E3CF",0x84D4],
+ ["E3BE",0x849D],
+ ["E3BF",0x84A7],
+ ["E3C0",0x84BB],
+ ["E3C1",0x84A2],
+ ["E3C2",0x8494],
+ ["E3C3",0x84C7],
+ ["E3C4",0x84CC],
+ ["E3C5",0x849B],
+ ["E3C6",0x84A9],
+ ["E3C7",0x84AF],
+ ["E3C8",0x84A8],
["E3C9",0x84D6],
+ ["E3CA",0x8498],
+ ["E3CB",0x84B6],
+ ["E3CC",0x84CF],
+ ["E3CD",0x84A0],
["E3CE",0x84D7],
+ ["E3CF",0x84D4],
+ ["E3D0",0x84D2],
["E3D1",0x84DB],
- ["E773",0x84E7],
- ["E774",0x84E8],
- ["E767",0x84E9],
- ["E766",0x84EA],
- ["E762",0x84EB],
- ["BDB4",0x84EC],
- ["BDAC",0x84EE],
- ["E776",0x84EF],
- ["E775",0x84F0],
- ["DFA9",0x84F1],
- ["E75F",0x84F2],
- ["E763",0x84F3],
- ["E75D",0x84F4],
- ["E770",0x84F6],
- ["E761",0x84F7],
- ["E777",0x84F9],
- ["E75A",0x84FA],
- ["E758",0x84FB],
- ["E764",0x84FC],
- ["E76E",0x84FD],
- ["E769",0x84FE],
- ["BDB6",0x84FF],
+ ["E3D2",0x84B0],
+ ["E3D3",0x8491],
+ ["E3D4",0x8661],
+ ["E3D5",0x8733],
+ ["E3D6",0x8723],
+ ["E3D7",0x8728],
+ ["E3D8",0x876B],
+ ["E3D9",0x8740],
+ ["E3DA",0x872E],
+ ["E3DB",0x871E],
+ ["E3DC",0x8721],
+ ["E3DD",0x8719],
+ ["E3DE",0x871B],
+ ["E3DF",0x8743],
+ ["E3E0",0x872C],
+ ["E3E1",0x8741],
+ ["E3E2",0x873E],
+ ["E3E3",0x8746],
+ ["E3E4",0x8720],
+ ["E3E5",0x8732],
+ ["E3E6",0x872A],
+ ["E3E7",0x872D],
+ ["E3E8",0x873C],
+ ["E3E9",0x8712],
+ ["E3EA",0x873A],
+ ["E3EB",0x8731],
+ ["E3EC",0x8735],
+ ["E3ED",0x8742],
+ ["E3EE",0x8726],
+ ["E3EF",0x8727],
+ ["E3F0",0x8738],
+ ["E3F1",0x8724],
+ ["E3F2",0x871A],
+ ["E3F3",0x8730],
+ ["E3F4",0x8711],
+ ["E3F5",0x88F7],
+ ["E3F6",0x88E7],
+ ["E3F7",0x88F1],
+ ["E3F8",0x88F2],
+ ["E3F9",0x88FA],
+ ["E3FA",0x88FE],
+ ["E3FB",0x88EE],
+ ["E3FC",0x88FC],
+ ["E3FD",0x88F6],
+ ["E3FE",0x88FB],
+ ["E440",0x88F0],
+ ["E441",0x88EC],
+ ["E442",0x88EB],
+ ["E443",0x899D],
+ ["E444",0x89A1],
+ ["E445",0x899F],
+ ["E446",0x899E],
+ ["E447",0x89E9],
+ ["E448",0x89EB],
+ ["E449",0x89E8],
+ ["E44A",0x8AAB],
+ ["E44B",0x8A99],
+ ["E44C",0x8A8B],
+ ["E44D",0x8A92],
+ ["E44E",0x8A8F],
+ ["E44F",0x8A96],
+ ["E450",0x8C3D],
+ ["E451",0x8C68],
+ ["E452",0x8C69],
+ ["E453",0x8CD5],
+ ["E454",0x8CCF],
+ ["E455",0x8CD7],
+ ["E456",0x8D96],
+ ["E457",0x8E09],
+ ["E458",0x8E02],
+ ["E459",0x8DFF],
+ ["E45A",0x8E0D],
+ ["E45B",0x8DFD],
+ ["E45C",0x8E0A],
+ ["E45D",0x8E03],
+ ["E45E",0x8E07],
+ ["E45F",0x8E06],
+ ["E460",0x8E05],
+ ["E461",0x8DFE],
+ ["E462",0x8E00],
+ ["E463",0x8E04],
+ ["E464",0x8F10],
+ ["E465",0x8F11],
+ ["E466",0x8F0E],
+ ["E467",0x8F0D],
+ ["E468",0x9123],
+ ["E469",0x911C],
+ ["E46A",0x9120],
+ ["E46B",0x9122],
+ ["E46C",0x911F],
+ ["E46D",0x911D],
+ ["E46E",0x911A],
+ ["E46F",0x9124],
+ ["E470",0x9121],
+ ["E471",0x911B],
+ ["E472",0x917A],
+ ["E473",0x9172],
+ ["E474",0x9179],
+ ["E475",0x9173],
+ ["E476",0x92A5],
+ ["E477",0x92A4],
+ ["E478",0x9276],
+ ["E479",0x929B],
+ ["E47A",0x927A],
+ ["E47B",0x92A0],
+ ["E47C",0x9294],
+ ["E47D",0x92AA],
+ ["E47E",0x928D],
+ ["E4A1",0x92A6],
+ ["E4A2",0x929A],
+ ["E4A3",0x92AB],
+ ["E4A4",0x9279],
+ ["E4A5",0x9297],
+ ["E4A6",0x927F],
+ ["E4A7",0x92A3],
+ ["E4A8",0x92EE],
+ ["E4A9",0x928E],
+ ["E4AA",0x9282],
+ ["E4AB",0x9295],
+ ["E4AC",0x92A2],
+ ["E4AD",0x927D],
+ ["E4AE",0x9288],
+ ["E4AF",0x92A1],
+ ["E4B0",0x928A],
+ ["E4B1",0x9286],
+ ["E4B2",0x928C],
+ ["E4B3",0x9299],
+ ["E4B4",0x92A7],
+ ["E4B5",0x927E],
+ ["E4B6",0x9287],
+ ["E4B7",0x92A9],
+ ["E4B8",0x929D],
+ ["E4B9",0x928B],
+ ["E4BA",0x922D],
+ ["E4BB",0x969E],
+ ["E4BC",0x96A1],
+ ["E4BD",0x96FF],
+ ["E4BE",0x9758],
+ ["E4BF",0x977D],
+ ["E4C0",0x977A],
+ ["E4C1",0x977E],
+ ["E4C2",0x9783],
+ ["E4C3",0x9780],
+ ["E4C4",0x9782],
+ ["E4C5",0x977B],
+ ["E4C6",0x9784],
+ ["E4C7",0x9781],
+ ["E4C8",0x977F],
+ ["E4C9",0x97CE],
+ ["E4CA",0x97CD],
+ ["E4CB",0x9816],
+ ["E4CC",0x98AD],
+ ["E4CD",0x98AE],
+ ["E4CE",0x9902],
+ ["E4CF",0x9900],
+ ["E4D0",0x9907],
+ ["E4D1",0x999D],
+ ["E4D2",0x999C],
+ ["E4D3",0x99C3],
+ ["E4D4",0x99B9],
+ ["E4D5",0x99BB],
+ ["E4D6",0x99BA],
+ ["E4D7",0x99C2],
+ ["E4D8",0x99BD],
+ ["E4D9",0x99C7],
+ ["E4DA",0x9AB1],
+ ["E4DB",0x9AE3],
+ ["E4DC",0x9AE7],
+ ["E4DD",0x9B3E],
+ ["E4DE",0x9B3F],
+ ["E4DF",0x9B60],
+ ["E4E0",0x9B61],
+ ["E4E1",0x9B5F],
+ ["E4E2",0x9CF1],
+ ["E4E3",0x9CF2],
+ ["E4E4",0x9CF5],
+ ["E4E5",0x9EA7],
+ ["E4E6",0x50FF],
+ ["E4E7",0x5103],
+ ["E4E8",0x5130],
+ ["E4E9",0x50F8],
+ ["E4EA",0x5106],
+ ["E4EB",0x5107],
+ ["E4EC",0x50F6],
+ ["E4ED",0x50FE],
+ ["E4EE",0x510B],
+ ["E4EF",0x510C],
+ ["E4F0",0x50FD],
+ ["E4F1",0x510A],
+ ["E4F2",0x528B],
+ ["E4F3",0x528C],
+ ["E4F4",0x52F1],
+ ["E4F5",0x52EF],
+ ["E4F6",0x5648],
+ ["E4F7",0x5642],
+ ["E4F8",0x564C],
+ ["E4F9",0x5635],
+ ["E4FA",0x5641],
+ ["E4FB",0x564A],
+ ["E4FC",0x5649],
+ ["E4FD",0x5646],
+ ["E4FE",0x5658],
+ ["E540",0x565A],
+ ["E541",0x5640],
+ ["E542",0x5633],
+ ["E543",0x563D],
+ ["E544",0x562C],
+ ["E545",0x563E],
+ ["E546",0x5638],
+ ["E547",0x562A],
+ ["E548",0x563A],
+ ["E549",0x571A],
+ ["E54A",0x58AB],
+ ["E54B",0x589D],
+ ["E54C",0x58B1],
+ ["E54D",0x58A0],
+ ["E54E",0x58A3],
+ ["E54F",0x58AF],
+ ["E550",0x58AC],
+ ["E551",0x58A5],
+ ["E552",0x58A1],
+ ["E553",0x58FF],
+ ["E554",0x5AFF],
+ ["E555",0x5AF4],
+ ["E556",0x5AFD],
+ ["E557",0x5AF7],
+ ["E558",0x5AF6],
+ ["E559",0x5B03],
+ ["E55A",0x5AF8],
+ ["E55B",0x5B02],
+ ["E55C",0x5AF9],
+ ["E55D",0x5B01],
+ ["E55E",0x5B07],
+ ["E55F",0x5B05],
+ ["E560",0x5B0F],
+ ["E561",0x5C67],
+ ["E562",0x5D99],
+ ["E563",0x5D97],
+ ["E564",0x5D9F],
+ ["E565",0x5D92],
+ ["E566",0x5DA2],
+ ["E567",0x5D93],
+ ["E568",0x5D95],
+ ["E569",0x5DA0],
+ ["E56A",0x5D9C],
+ ["E56B",0x5DA1],
+ ["E56C",0x5D9A],
+ ["E56D",0x5D9E],
+ ["E56E",0x5E69],
+ ["E56F",0x5E5D],
+ ["E570",0x5E60],
+ ["E571",0x5E5C],
+ ["E572",0x7DF3],
+ ["E573",0x5EDB],
+ ["E574",0x5EDE],
+ ["E575",0x5EE1],
+ ["E576",0x5F49],
+ ["E577",0x5FB2],
+ ["E578",0x618B],
+ ["E579",0x6183],
+ ["E57A",0x6179],
+ ["E57B",0x61B1],
+ ["E57C",0x61B0],
+ ["E57D",0x61A2],
+ ["E57E",0x6189],
+ ["E5A1",0x619B],
+ ["E5A2",0x6193],
+ ["E5A3",0x61AF],
+ ["E5A4",0x61AD],
+ ["E5A5",0x619F],
+ ["E5A6",0x6192],
+ ["E5A7",0x61AA],
+ ["E5A8",0x61A1],
+ ["E5A9",0x618D],
+ ["E5AA",0x6166],
+ ["E5AB",0x61B3],
+ ["E5AC",0x622D],
+ ["E5AD",0x646E],
+ ["E5AE",0x6470],
+ ["E5AF",0x6496],
+ ["E5B0",0x64A0],
+ ["E5B1",0x6485],
+ ["E5B2",0x6497],
+ ["E5B3",0x649C],
+ ["E5B4",0x648F],
+ ["E5B5",0x648B],
+ ["E5B6",0x648A],
+ ["E5B7",0x648C],
+ ["E5B8",0x64A3],
+ ["E5B9",0x649F],
+ ["E5BA",0x6468],
+ ["E5BB",0x64B1],
+ ["E5BC",0x6498],
+ ["E5BD",0x6576],
+ ["E5BE",0x657A],
+ ["E5BF",0x6579],
+ ["E5C0",0x657B],
+ ["E5C1",0x65B2],
+ ["E5C2",0x65B3],
+ ["E5C3",0x66B5],
+ ["E5C4",0x66B0],
+ ["E5C5",0x66A9],
+ ["E5C6",0x66B2],
+ ["E5C7",0x66B7],
+ ["E5C8",0x66AA],
+ ["E5C9",0x66AF],
+ ["E5CA",0x6A00],
+ ["E5CB",0x6A06],
+ ["E5CC",0x6A17],
+ ["E5CD",0x69E5],
+ ["E5CE",0x69F8],
+ ["E5CF",0x6A15],
+ ["E5D0",0x69F1],
+ ["E5D1",0x69E4],
+ ["E5D2",0x6A20],
+ ["E5D3",0x69FF],
+ ["E5D4",0x69EC],
+ ["E5D5",0x69E2],
+ ["E5D6",0x6A1B],
+ ["E5D7",0x6A1D],
+ ["E5D8",0x69FE],
+ ["E5D9",0x6A27],
+ ["E5DA",0x69F2],
+ ["E5DB",0x69EE],
+ ["E5DC",0x6A14],
+ ["E5DD",0x69F7],
+ ["E5DE",0x69E7],
+ ["E5DF",0x6A40],
+ ["E5E0",0x6A08],
+ ["E5E1",0x69E6],
+ ["E5E2",0x69FB],
+ ["E5E3",0x6A0D],
+ ["E5E4",0x69FC],
+ ["E5E5",0x69EB],
+ ["E5E6",0x6A09],
+ ["E5E7",0x6A04],
+ ["E5E8",0x6A18],
+ ["E5E9",0x6A25],
+ ["E5EA",0x6A0F],
+ ["E5EB",0x69F6],
+ ["E5EC",0x6A26],
+ ["E5ED",0x6A07],
+ ["E5EE",0x69F4],
+ ["E5EF",0x6A16],
+ ["E5F0",0x6B51],
+ ["E5F1",0x6BA5],
+ ["E5F2",0x6BA3],
+ ["E5F3",0x6BA2],
+ ["E5F4",0x6BA6],
+ ["E5F5",0x6C01],
+ ["E5F6",0x6C00],
+ ["E5F7",0x6BFF],
+ ["E5F8",0x6C02],
+ ["E5F9",0x6F41],
+ ["E5FA",0x6F26],
+ ["E5FB",0x6F7E],
+ ["E5FC",0x6F87],
+ ["E5FD",0x6FC6],
+ ["E5FE",0x6F92],
+ ["E640",0x6F8D],
+ ["E641",0x6F89],
+ ["E642",0x6F8C],
+ ["E643",0x6F62],
+ ["E644",0x6F4F],
+ ["E645",0x6F85],
+ ["E646",0x6F5A],
+ ["E647",0x6F96],
+ ["E648",0x6F76],
+ ["E649",0x6F6C],
+ ["E64A",0x6F82],
+ ["E64B",0x6F55],
+ ["E64C",0x6F72],
+ ["E64D",0x6F52],
+ ["E64E",0x6F50],
+ ["E64F",0x6F57],
+ ["E650",0x6F94],
+ ["E651",0x6F93],
+ ["E652",0x6F5D],
+ ["E653",0x6F00],
+ ["E654",0x6F61],
+ ["E655",0x6F6B],
+ ["E656",0x6F7D],
+ ["E657",0x6F67],
+ ["E658",0x6F90],
+ ["E659",0x6F53],
+ ["E65A",0x6F8B],
+ ["E65B",0x6F69],
+ ["E65C",0x6F7F],
+ ["E65D",0x6F95],
+ ["E65E",0x6F63],
+ ["E65F",0x6F77],
+ ["E660",0x6F6A],
+ ["E661",0x6F7B],
+ ["E662",0x71B2],
+ ["E663",0x71AF],
+ ["E664",0x719B],
+ ["E665",0x71B0],
+ ["E666",0x71A0],
+ ["E667",0x719A],
+ ["E668",0x71A9],
+ ["E669",0x71B5],
+ ["E66A",0x719D],
+ ["E66B",0x71A5],
+ ["E66C",0x719E],
+ ["E66D",0x71A4],
+ ["E66E",0x71A1],
+ ["E66F",0x71AA],
+ ["E670",0x719C],
+ ["E671",0x71A7],
+ ["E672",0x71B3],
+ ["E673",0x7298],
+ ["E674",0x729A],
+ ["E675",0x7358],
+ ["E676",0x7352],
+ ["E677",0x735E],
+ ["E678",0x735F],
+ ["E679",0x7360],
+ ["E67A",0x735D],
+ ["E67B",0x735B],
+ ["E67C",0x7361],
+ ["E67D",0x735A],
+ ["E67E",0x7359],
+ ["E6A1",0x7362],
+ ["E6A2",0x7487],
+ ["E6A3",0x7489],
+ ["E6A4",0x748A],
+ ["E6A5",0x7486],
+ ["E6A6",0x7481],
+ ["E6A7",0x747D],
+ ["E6A8",0x7485],
+ ["E6A9",0x7488],
+ ["E6AA",0x747C],
+ ["E6AB",0x7479],
+ ["E6AC",0x7508],
+ ["E6AD",0x7507],
+ ["E6AE",0x757E],
+ ["E6AF",0x7625],
+ ["E6B0",0x761E],
+ ["E6B1",0x7619],
+ ["E6B2",0x761D],
+ ["E6B3",0x761C],
+ ["E6B4",0x7623],
+ ["E6B5",0x761A],
+ ["E6B6",0x7628],
+ ["E6B7",0x761B],
+ ["E6B8",0x769C],
+ ["E6B9",0x769D],
+ ["E6BA",0x769E],
+ ["E6BB",0x769B],
+ ["E6BC",0x778D],
+ ["E6BD",0x778F],
+ ["E6BE",0x7789],
+ ["E6BF",0x7788],
+ ["E6C0",0x78CD],
+ ["E6C1",0x78BB],
+ ["E6C2",0x78CF],
+ ["E6C3",0x78CC],
+ ["E6C4",0x78D1],
+ ["E6C5",0x78CE],
+ ["E6C6",0x78D4],
+ ["E6C7",0x78C8],
+ ["E6C8",0x78C3],
+ ["E6C9",0x78C4],
+ ["E6CA",0x78C9],
+ ["E6CB",0x799A],
+ ["E6CC",0x79A1],
+ ["E6CD",0x79A0],
+ ["E6CE",0x799C],
+ ["E6CF",0x79A2],
+ ["E6D0",0x799B],
+ ["E6D1",0x6B76],
+ ["E6D2",0x7A39],
+ ["E6D3",0x7AB2],
+ ["E6D4",0x7AB4],
+ ["E6D5",0x7AB3],
+ ["E6D6",0x7BB7],
+ ["E6D7",0x7BCB],
+ ["E6D8",0x7BBE],
+ ["E6D9",0x7BAC],
+ ["E6DA",0x7BCE],
+ ["E6DB",0x7BAF],
+ ["E6DC",0x7BB9],
+ ["E6DD",0x7BCA],
+ ["E6DE",0x7BB5],
+ ["E6DF",0x7CC5],
+ ["E6E0",0x7CC8],
+ ["E6E1",0x7CCC],
+ ["E6E2",0x7CCB],
+ ["E6E3",0x7DF7],
+ ["E6E4",0x7DDB],
+ ["E6E5",0x7DEA],
+ ["E6E6",0x7DE7],
+ ["E6E7",0x7DD7],
+ ["E6E8",0x7DE1],
+ ["E6E9",0x7E03],
+ ["E6EA",0x7DFA],
+ ["E6EB",0x7DE6],
+ ["E6EC",0x7DF6],
+ ["E6ED",0x7DF1],
+ ["E6EE",0x7DF0],
+ ["E6EF",0x7DEE],
+ ["E6F0",0x7DDF],
+ ["E6F1",0x7F76],
+ ["E6F2",0x7FAC],
+ ["E6F3",0x7FB0],
+ ["E6F4",0x7FAD],
+ ["E6F5",0x7FED],
+ ["E6F6",0x7FEB],
+ ["E6F7",0x7FEA],
+ ["E6F8",0x7FEC],
+ ["E6F9",0x7FE6],
+ ["E6FA",0x7FE8],
+ ["E6FB",0x8064],
+ ["E6FC",0x8067],
+ ["E6FD",0x81A3],
+ ["E6FE",0x819F],
+ ["E740",0x819E],
+ ["E741",0x8195],
+ ["E742",0x81A2],
+ ["E743",0x8199],
+ ["E744",0x8197],
+ ["E745",0x8216],
+ ["E746",0x824F],
+ ["E747",0x8253],
+ ["E748",0x8252],
+ ["E749",0x8250],
+ ["E74A",0x824E],
+ ["E74B",0x8251],
+ ["E74C",0x8524],
+ ["E74D",0x853B],
+ ["E74E",0x850F],
["E74F",0x8500],
- ["E76D",0x8502],
- ["BDB7",0x8506],
- ["DFBD",0x8507],
- ["E75B",0x8508],
+ ["E750",0x8529],
+ ["E751",0x850E],
["E752",0x8509],
+ ["E753",0x850D],
+ ["E754",0x851F],
["E755",0x850A],
- ["E77B",0x850B],
+ ["E756",0x8527],
+ ["E757",0x851C],
+ ["E758",0x84FB],
+ ["E759",0x852B],
+ ["E75A",0x84FA],
+ ["E75B",0x8508],
["E75C",0x850C],
- ["E753",0x850D],
- ["E751",0x850E],
- ["E74E",0x850F],
- ["BDB0",0x8511],
- ["E765",0x8512],
- ["BDAF",0x8513],
- ["BDB3",0x8514],
+ ["E75D",0x84F4],
+ ["E75E",0x852A],
+ ["E75F",0x84F2],
["E760",0x8515],
+ ["E761",0x84F7],
+ ["E762",0x84EB],
+ ["E763",0x84F3],
+ ["E764",0x84FC],
+ ["E765",0x8512],
+ ["E766",0x84EA],
+ ["E767",0x84E9],
["E768",0x8516],
- ["BDA9",0x8517],
- ["E778",0x8518],
- ["E77C",0x8519],
- ["BDAB",0x851A],
- ["E757",0x851C],
+ ["E769",0x84FE],
+ ["E76A",0x8528],
["E76B",0x851D],
+ ["E76C",0x852E],
+ ["E76D",0x8502],
+ ["E76E",0x84FD],
["E76F",0x851E],
- ["E754",0x851F],
- ["E779",0x8520],
- ["BDB2",0x8521],
- ["BDB1",0x8523],
- ["E74C",0x8524],
- ["BDB5",0x8525],
+ ["E770",0x84F6],
+ ["E771",0x8531],
["E772",0x8526],
- ["E756",0x8527],
- ["E76A",0x8528],
- ["E750",0x8529],
- ["E75E",0x852A],
- ["E759",0x852B],
- ["BDAD",0x852C],
- ["BDAE",0x852D],
- ["E76C",0x852E],
- ["E77D",0x852F],
+ ["E773",0x84E7],
+ ["E774",0x84E8],
+ ["E775",0x84F0],
+ ["E776",0x84EF],
+ ["E777",0x84F9],
+ ["E778",0x8518],
+ ["E779",0x8520],
["E77A",0x8530],
- ["E771",0x8531],
- ["E74D",0x853B],
- ["BDAA",0x853D],
- ["EB49",0x853E],
- ["EB40",0x8540],
- ["EB43",0x8541],
- ["BFBB",0x8543],
- ["EB45",0x8544],
- ["EAF9",0x8545],
- ["EB41",0x8546],
- ["EB47",0x8547],
- ["BFB8",0x8548],
- ["BFBC",0x8549],
- ["BFB6",0x854A],
- ["EAFB",0x854D],
- ["EB4C",0x854E],
- ["EB46",0x8551],
- ["EAFC",0x8553],
- ["EB55",0x8554],
- ["EB4F",0x8555],
- ["EAF8",0x8556],
- ["EE46",0x8557],
- ["EAFE",0x8558],
- ["BFB7",0x8559],
- ["EB4A",0x855B],
- ["EB54",0x855D],
- ["BFBF",0x855E],
- ["EB51",0x8560],
- ["EAFD",0x8561],
- ["EB44",0x8562],
- ["EB48",0x8563],
- ["EB42",0x8564],
- ["EB56",0x8565],
- ["EB53",0x8566],
- ["EB50",0x8567],
- ["BFB9",0x8568],
- ["BFBA",0x8569],
- ["BFBE",0x856A],
- ["EAFA",0x856B],
- ["EB57",0x856C],
- ["BFBD",0x856D],
- ["EB4D",0x856E],
- ["EB4B",0x8571],
- ["EB4E",0x8575],
- ["EE53",0x8576],
- ["EE40",0x8577],
- ["EE45",0x8578],
- ["EE52",0x8579],
- ["EE44",0x857A],
- ["EDFB",0x857B],
- ["EE41",0x857C],
- ["C1A2",0x857E],
- ["EDF4",0x8580],
- ["EE4D",0x8581],
- ["EE4F",0x8582],
- ["EDF3",0x8583],
- ["C1A1",0x8584],
- ["EE51",0x8585],
- ["EE49",0x8586],
- ["C1A8",0x8587],
- ["EE50",0x8588],
- ["EE42",0x8589],
- ["C1AA",0x858A],
- ["EDF9",0x858B],
- ["EB52",0x858C],
- ["EE4A",0x858D],
- ["EE47",0x858E],
- ["EDF5",0x858F],
- ["EE55",0x8590],
- ["C1A4",0x8591],
- ["C1A5",0x8594],
- ["EDF7",0x8595],
- ["EE48",0x8596],
- ["EE54",0x8598],
- ["EE4B",0x8599],
- ["EDFD",0x859A],
- ["C1A7",0x859B],
- ["C1A3",0x859C],
- ["EE4C",0x859D],
- ["EDFE",0x859E],
- ["EE56",0x859F],
- ["EDF8",0x85A0],
- ["EE43",0x85A1],
- ["EE4E",0x85A2],
- ["EDFA",0x85A3],
- ["EDFC",0x85A4],
- ["C2CB",0x85A6],
- ["EDF6",0x85A7],
- ["C1A9",0x85A8],
- ["C2C4",0x85A9],
- ["C17E",0x85AA],
- ["C1A6",0x85AF],
- ["C2C8",0x85B0],
- ["F0B3",0x85B1],
- ["F0A9",0x85B3],
- ["F0A4",0x85B4],
- ["F0AA",0x85B5],
- ["F0B4",0x85B6],
- ["F0B8",0x85B7],
- ["F0B7",0x85B8],
- ["C2CA",0x85B9],
- ["C2C9",0x85BA],
- ["F0AB",0x85BD],
- ["F0B9",0x85BE],
- ["F0AE",0x85BF],
- ["F0A6",0x85C0],
- ["F0A8",0x85C2],
- ["F0A7",0x85C3],
- ["F0AD",0x85C4],
- ["F0B2",0x85C5],
- ["F0A5",0x85C6],
- ["F0AC",0x85C7],
- ["F0B1",0x85C8],
- ["C2C7",0x85C9],
- ["F0AF",0x85CB],
- ["C2C5",0x85CD],
- ["F0B0",0x85CE],
- ["C2C3",0x85CF],
- ["C2C6",0x85D0],
- ["F2D5",0x85D1],
- ["F0B5",0x85D2],
- ["C3C2",0x85D5],
- ["F2CD",0x85D7],
- ["F2D1",0x85D8],
- ["F2C9",0x85D9],
- ["F2CC",0x85DA],
- ["F2D4",0x85DC],
- ["C3C0",0x85DD],
- ["F2D9",0x85DE],
- ["F2D2",0x85DF],
- ["F2CA",0x85E1],
- ["F2DA",0x85E2],
- ["F2D3",0x85E3],
- ["C3C3",0x85E4],
- ["C3C4",0x85E5],
- ["F2D7",0x85E6],
- ["F2CB",0x85E8],
- ["C3BF",0x85E9],
- ["C3C1",0x85EA],
- ["F2C6",0x85EB],
- ["F2CE",0x85EC],
- ["F2C8",0x85ED],
- ["F2D8",0x85EF],
- ["F2D6",0x85F0],
- ["F2C7",0x85F1],
- ["F2CF",0x85F2],
- ["F4BE",0x85F6],
- ["C3C5",0x85F7],
- ["F2D0",0x85F8],
- ["C4A7",0x85F9],
- ["C4A9",0x85FA],
- ["C4A6",0x85FB],
- ["F4C3",0x85FD],
- ["F4BB",0x85FE],
- ["F4B9",0x85FF],
- ["F4BD",0x8600],
- ["F4BA",0x8601],
- ["F4BF",0x8604],
- ["F4C1",0x8605],
- ["C4AA",0x8606],
- ["C4AC",0x8607],
- ["F4C0",0x8609],
- ["C4AD",0x860A],
- ["C4AB",0x860B],
- ["F4C2",0x860C],
- ["C4A8",0x8611],
- ["C4F4",0x8617],
- ["F5F1",0x8618],
- ["F5F7",0x8619],
- ["C4F6",0x861A],
- ["F4BC",0x861B],
- ["F5F6",0x861C],
- ["F5FD",0x861E],
- ["F5F4",0x861F],
- ["F5FB",0x8620],
- ["F5FA",0x8621],
- ["F4B8",0x8622],
- ["F5F5",0x8623],
- ["F0B6",0x8624],
- ["F5FE",0x8625],
- ["F5F3",0x8626],
- ["F5F8",0x8627],
- ["F5FC",0x8629],
- ["F5F2",0x862A],
- ["F74A",0x862C],
- ["C4F5",0x862D],
- ["F5F9",0x862E],
- ["F7F4",0x8631],
- ["F74B",0x8632],
- ["F749",0x8633],
- ["F747",0x8634],
- ["F748",0x8635],
- ["F74C",0x8636],
- ["C5D9",0x8638],
- ["F7F2",0x8639],
- ["F7F0",0x863A],
- ["F7F5",0x863B],
- ["F7F3",0x863C],
- ["F7F6",0x863E],
- ["C5DA",0x863F],
- ["F7F1",0x8640],
- ["F8BC",0x8643],
- ["F945",0x8646],
- ["F946",0x8647],
- ["F947",0x8648],
- ["F9C7",0x864B],
- ["F9BD",0x864C],
- ["CA4F",0x864D],
- ["AAEA",0x864E],
- ["AD68",0x8650],
- ["D3B8",0x8652],
- ["D3B7",0x8653],
- ["B040",0x8654],
- ["B342",0x8655],
- ["D77C",0x8656],
- ["D77B",0x8659],
- ["B5EA",0x865B],
- ["B8B8",0x865C],
- ["B8B7",0x865E],
- ["B8B9",0x865F],
- ["E3D4",0x8661],
+ ["E77B",0x850B],
+ ["E77C",0x8519],
+ ["E77D",0x852F],
["E77E",0x8662],
- ["EB58",0x8663],
- ["EB5A",0x8664],
- ["EB59",0x8665],
- ["C1AB",0x8667],
- ["EE57",0x8668],
- ["F0BA",0x8669],
- ["F9A5",0x866A],
- ["A6E4",0x866B],
- ["CDC9",0x866D],
- ["CDCA",0x866E],
- ["CDC8",0x866F],
- ["CDC7",0x8670],
- ["AAEB",0x8671],
- ["D0A9",0x8673],
- ["D0A7",0x8674],
- ["D0A6",0x8677],
- ["AD69",0x8679],
- ["AD6B",0x867A],
- ["AD6A",0x867B],
- ["D0A8",0x867C],
- ["D3C4",0x8685],
- ["D3C1",0x8686],
- ["D3BF",0x8687],
- ["B041",0x868A],
- ["D3C2",0x868B],
- ["B046",0x868C],
- ["D3BC",0x868D],
- ["D3CB",0x868E],
- ["D3CD",0x8690],
- ["D3BD",0x8691],
- ["B043",0x8693],
- ["D3CE",0x8694],
- ["D3C9",0x8695],
- ["D3BB",0x8696],
- ["D3C0",0x8697],
- ["D3CA",0x8698],
- ["D3C6",0x8699],
- ["D3C3",0x869A],
- ["B048",0x869C],
- ["D3CC",0x869D],
- ["D3BE",0x869E],
- ["D3C7",0x86A1],
- ["D3B9",0x86A2],
- ["B047",0x86A3],
- ["B044",0x86A4],
- ["D3C5",0x86A5],
- ["D3C8",0x86A7],
- ["D3BA",0x86A8],
- ["B045",0x86A9],
- ["B042",0x86AA],
- ["B34C",0x86AF],
- ["D7A5",0x86B0],
- ["B34B",0x86B1],
- ["D7A8",0x86B3],
- ["D7AB",0x86B4],
- ["B348",0x86B5],
- ["B346",0x86B6],
- ["D77E",0x86B7],
- ["D7A9",0x86B8],
- ["D7A7",0x86B9],
- ["D7A4",0x86BA],
- ["D7AC",0x86BB],
- ["D7AD",0x86BC],
- ["D7AF",0x86BD],
- ["D7B0",0x86BE],
- ["D77D",0x86BF],
- ["B345",0x86C0],
- ["D7A2",0x86C1],
- ["D7A1",0x86C2],
- ["D7AE",0x86C3],
- ["B347",0x86C4],
- ["D7A3",0x86C5],
- ["B349",0x86C6],
- ["B344",0x86C7],
- ["D7A6",0x86C8],
- ["B34D",0x86C9],
- ["B34A",0x86CB],
- ["D7AA",0x86CC],
- ["B5F1",0x86D0],
- ["DBBF",0x86D1],
- ["DBB4",0x86D3],
- ["B5EE",0x86D4],
- ["DFE7",0x86D6],
- ["DBBD",0x86D7],
- ["DBB1",0x86D8],
- ["B5EC",0x86D9],
- ["DBB6",0x86DA],
- ["B5EF",0x86DB],
- ["DBBA",0x86DC],
- ["DBB8",0x86DD],
- ["B5F2",0x86DE],
- ["B5EB",0x86DF],
- ["DBB2",0x86E2],
- ["DBB5",0x86E3],
- ["B5F0",0x86E4],
- ["DBB3",0x86E6],
- ["DBBE",0x86E8],
- ["DBBC",0x86E9],
- ["DBB7",0x86EA],
- ["DBB9",0x86EB],
- ["DBBB",0x86EC],
- ["B5ED",0x86ED],
- ["DFE8",0x86F5],
- ["DFEE",0x86F6],
- ["DFE4",0x86F7],
- ["DFEA",0x86F8],
- ["B8BA",0x86F9],
- ["DFE6",0x86FA],
- ["B8C0",0x86FB],
- ["B8BF",0x86FE],
- ["B8BE",0x8700],
- ["DFED",0x8701],
- ["B8C1",0x8702],
- ["B8C2",0x8703],
- ["DFE3",0x8704],
- ["DFF0",0x8705],
- ["B8C3",0x8706],
- ["B8BD",0x8707],
- ["B8BC",0x8708],
- ["DFEC",0x8709],
- ["B8C4",0x870A],
- ["DFE2",0x870B],
- ["DFE5",0x870C],
- ["DFEF",0x870D],
- ["DFEB",0x870E],
- ["E3F4",0x8711],
- ["E3E9",0x8712],
- ["B8BB",0x8713],
- ["BB6A",0x8718],
- ["E3DD",0x8719],
- ["E3F2",0x871A],
- ["E3DE",0x871B],
- ["BB65",0x871C],
- ["E3DB",0x871E],
- ["E3E4",0x8720],
- ["E3DC",0x8721],
- ["BB67",0x8722],
- ["E3D6",0x8723],
- ["E3F1",0x8724],
- ["BB68",0x8725],
- ["E3EE",0x8726],
- ["E3EF",0x8727],
- ["E3D7",0x8728],
- ["BB6D",0x8729],
- ["E3E6",0x872A],
- ["E3E0",0x872C],
- ["E3E7",0x872D],
- ["E3DA",0x872E],
- ["E3F3",0x8730],
- ["E3EB",0x8731],
- ["E3E5",0x8732],
- ["E3D5",0x8733],
- ["BB69",0x8734],
- ["E3EC",0x8735],
- ["BB6C",0x8737],
- ["E3F0",0x8738],
- ["E3EA",0x873A],
- ["BB66",0x873B],
- ["E3E8",0x873C],
- ["E3E2",0x873E],
- ["BB64",0x873F],
- ["E3D9",0x8740],
- ["E3E1",0x8741],
- ["E3ED",0x8742],
- ["E3DF",0x8743],
- ["E3E3",0x8746],
- ["BDC1",0x874C],
- ["DFE9",0x874D],
- ["E7B2",0x874E],
- ["E7BB",0x874F],
- ["E7B1",0x8750],
- ["E7AD",0x8751],
- ["E7AA",0x8752],
- ["BDC2",0x8753],
- ["E7A8",0x8754],
- ["BB6B",0x8755],
["E7A1",0x8756],
- ["BDC0",0x8757],
+ ["E7A2",0x8763],
+ ["E7A3",0x8764],
+ ["E7A4",0x8777],
+ ["E7A5",0x87E1],
+ ["E7A6",0x8773],
["E7A7",0x8758],
- ["BDBF",0x8759],
- ["E7AC",0x875A],
+ ["E7A8",0x8754],
["E7A9",0x875B],
- ["E7B9",0x875C],
- ["E7B4",0x875D],
- ["E7AE",0x875E],
- ["E7B3",0x875F],
- ["BDBB",0x8760],
+ ["E7AA",0x8752],
["E7AB",0x8761],
- ["E7BE",0x8762],
- ["E7A2",0x8763],
- ["E7A3",0x8764],
- ["E7BA",0x8765],
- ["BDBC",0x8766],
- ["E7BF",0x8767],
- ["BDBE",0x8768],
- ["E7C0",0x8769],
- ["E7B0",0x876A],
- ["E3D8",0x876B],
- ["E7B6",0x876C],
+ ["E7AC",0x875A],
+ ["E7AD",0x8751],
+ ["E7AE",0x875E],
["E7AF",0x876D],
- ["E7B8",0x876E],
+ ["E7B0",0x876A],
+ ["E7B1",0x8750],
+ ["E7B2",0x874E],
+ ["E7B3",0x875F],
+ ["E7B4",0x875D],
["E7B5",0x876F],
- ["E7A6",0x8773],
- ["BDB9",0x8774],
- ["E7BD",0x8775],
- ["BDBA",0x8776],
- ["E7A4",0x8777],
- ["BDBD",0x8778],
- ["EB64",0x8779],
+ ["E7B6",0x876C],
["E7B7",0x877A],
+ ["E7B8",0x876E],
+ ["E7B9",0x875C],
+ ["E7BA",0x8765],
+ ["E7BB",0x874F],
["E7BC",0x877B],
- ["EB61",0x8781],
- ["BDB8",0x8782],
- ["BFC0",0x8783],
- ["EB6B",0x8784],
- ["EB67",0x8785],
- ["EB65",0x8787],
- ["EB60",0x8788],
- ["EB6F",0x8789],
- ["BFC4",0x878D],
- ["EB5C",0x878F],
- ["EB68",0x8790],
- ["EB69",0x8791],
- ["EB5F",0x8792],
- ["EB5E",0x8793],
- ["EB6C",0x8794],
- ["EB62",0x8796],
- ["EB5D",0x8797],
- ["EB63",0x8798],
- ["EB6E",0x879A],
- ["EB5B",0x879B],
- ["EB6D",0x879C],
- ["EB6A",0x879D],
- ["BFC2",0x879E],
- ["BFC1",0x879F],
- ["BFC3",0x87A2],
- ["EB66",0x87A3],
- ["F0CB",0x87A4],
- ["EE59",0x87AA],
- ["C1B1",0x87AB],
- ["EE5D",0x87AC],
- ["EE5A",0x87AD],
- ["EE61",0x87AE],
- ["EE67",0x87AF],
- ["EE5C",0x87B0],
- ["EE70",0x87B2],
- ["C1AE",0x87B3],
- ["EE6A",0x87B4],
- ["EE5F",0x87B5],
- ["EE6B",0x87B6],
- ["EE66",0x87B7],
- ["EE6D",0x87B8],
- ["EE5E",0x87B9],
- ["C1B3",0x87BA],
- ["C1B2",0x87BB],
- ["EE60",0x87BC],
- ["EE6E",0x87BD],
- ["EE58",0x87BE],
- ["EE6C",0x87BF],
- ["C1AC",0x87C0],
- ["EE64",0x87C2],
- ["EE63",0x87C3],
- ["EE68",0x87C4],
- ["EE5B",0x87C5],
- ["C1B0",0x87C6],
- ["C1B4",0x87C8],
- ["EE62",0x87C9],
- ["EE69",0x87CA],
- ["C1B5",0x87CB],
- ["EE65",0x87CC],
- ["C1AD",0x87D1],
- ["C1AF",0x87D2],
- ["F0C7",0x87D3],
- ["F0C5",0x87D4],
- ["F0CC",0x87D7],
- ["F0C9",0x87D8],
- ["F0CD",0x87D9],
- ["F0BE",0x87DB],
- ["F0C6",0x87DC],
- ["F0D1",0x87DD],
- ["EE6F",0x87DE],
- ["F0C2",0x87DF],
- ["C2CF",0x87E0],
- ["E7A5",0x87E1],
- ["F0BD",0x87E2],
- ["F0CA",0x87E3],
- ["F0C4",0x87E4],
- ["F0C1",0x87E5],
- ["F0BC",0x87E6],
- ["F0BB",0x87E7],
- ["F0D0",0x87E8],
- ["F0C0",0x87EA],
- ["F0BF",0x87EB],
- ["C2CD",0x87EC],
- ["F0C8",0x87ED],
- ["C2CC",0x87EF],
- ["C2CE",0x87F2],
- ["F0C3",0x87F3],
- ["F0CF",0x87F4],
- ["F2DE",0x87F6],
- ["F2DF",0x87F7],
- ["C3C9",0x87F9],
- ["F2DC",0x87FA],
- ["C3C6",0x87FB],
- ["F2E4",0x87FC],
- ["C3CA",0x87FE],
- ["F2E6",0x87FF],
- ["F2DB",0x8800],
- ["F0CE",0x8801],
- ["F2E8",0x8802],
- ["F2DD",0x8803],
- ["C3C7",0x8805],
- ["F2E3",0x8806],
- ["F2E5",0x8808],
- ["F2E0",0x8809],
- ["F2E7",0x880A],
- ["F2E2",0x880B],
- ["F2E1",0x880C],
- ["C3C8",0x880D],
- ["F4C5",0x8810],
- ["F4C6",0x8811],
- ["F4C8",0x8813],
- ["C4AE",0x8814],
- ["C4AF",0x8815],
- ["F4C9",0x8816],
- ["F4C7",0x8817],
- ["F4C4",0x8819],
- ["F642",0x881B],
- ["F645",0x881C],
- ["F641",0x881D],
- ["C4FA",0x881F],
- ["F643",0x8820],
- ["C4F9",0x8821],
- ["C4F8",0x8822],
- ["C4F7",0x8823],
- ["F644",0x8824],
- ["F751",0x8825],
- ["F74F",0x8826],
- ["F74E",0x8828],
- ["F640",0x8829],
- ["F750",0x882A],
- ["F646",0x882B],
- ["F74D",0x882C],
- ["F7F9",0x882E],
- ["F7D7",0x882F],
- ["F7F7",0x8830],
- ["C5DB",0x8831],
- ["F7F8",0x8832],
- ["F7FA",0x8833],
- ["F8BF",0x8835],
- ["C5FA",0x8836],
- ["F8BE",0x8837],
- ["F8BD",0x8838],
- ["C5FB",0x8839],
- ["C65A",0x883B],
- ["F96E",0x883C],
- ["F9A7",0x883D],
- ["F9A6",0x883E],
- ["F9A8",0x883F],
- ["A6E5",0x8840],
- ["D0AA",0x8841],
- ["D3CF",0x8843],
- ["D3D0",0x8844],
- ["DBC0",0x8848],
- ["F647",0x884A],
- ["F8C0",0x884B],
- ["A6E6",0x884C],
- ["AD6C",0x884D],
- ["D0AB",0x884E],
- ["D7B1",0x8852],
- ["B34E",0x8853],
- ["DBC2",0x8855],
- ["DBC1",0x8856],
- ["B5F3",0x8857],
- ["B8C5",0x8859],
+ ["E7BD",0x8775],
+ ["E7BE",0x8762],
+ ["E7BF",0x8767],
+ ["E7C0",0x8769],
["E7C1",0x885A],
- ["BDC3",0x885B],
- ["BDC4",0x885D],
- ["BFC5",0x8861],
- ["C5FC",0x8862],
- ["A6E7",0x8863],
- ["D0AC",0x8867],
- ["AAED",0x8868],
- ["D0AE",0x8869],
- ["D0AD",0x886A],
- ["AD6D",0x886B],
- ["D3D1",0x886D],
- ["D3D8",0x886F],
- ["B049",0x8870],
- ["D3D6",0x8871],
- ["D3D4",0x8872],
- ["D3DB",0x8874],
- ["D3D2",0x8875],
- ["D3D3",0x8876],
- ["B04A",0x8877],
- ["B04E",0x8879],
- ["D3DC",0x887C],
- ["B04D",0x887D],
- ["D3DA",0x887E],
- ["D3D7",0x887F],
- ["D3D5",0x8880],
- ["B04B",0x8881],
- ["B04C",0x8882],
- ["D3D9",0x8883],
- ["B350",0x8888],
- ["D7B2",0x8889],
- ["B355",0x888B],
- ["D7C2",0x888C],
- ["B354",0x888D],
- ["D7C4",0x888E],
- ["D7B8",0x8891],
- ["B352",0x8892],
- ["D7C3",0x8893],
- ["D7B3",0x8895],
- ["B353",0x8896],
- ["D7BF",0x8897],
- ["D7BB",0x8898],
- ["D7BD",0x8899],
- ["D7B7",0x889A],
- ["D7BE",0x889B],
- ["B34F",0x889E],
- ["D7BA",0x889F],
- ["D7B9",0x88A1],
- ["D7B5",0x88A2],
- ["D7C0",0x88A4],
- ["D7BC",0x88A7],
- ["D7B4",0x88A8],
- ["D7B6",0x88AA],
- ["B351",0x88AB],
- ["D7C1",0x88AC],
- ["B5F6",0x88B1],
- ["DBCD",0x88B2],
- ["DBC9",0x88B6],
- ["DBCB",0x88B7],
- ["DBC6",0x88B8],
- ["DBC5",0x88B9],
- ["DBC3",0x88BA],
- ["DBCA",0x88BC],
- ["DBCC",0x88BD],
- ["DBC8",0x88BE],
- ["DBC7",0x88C0],
- ["B5F4",0x88C1],
- ["B5F5",0x88C2],
- ["DBCF",0x88C9],
- ["B8CD",0x88CA],
- ["DFF2",0x88CB],
- ["DFF8",0x88CC],
- ["DFF3",0x88CD],
- ["DFF4",0x88CE],
- ["DFF9",0x88D0],
- ["B8CF",0x88D2],
- ["B8C7",0x88D4],
- ["B8CE",0x88D5],
- ["DFF1",0x88D6],
- ["DBC4",0x88D7],
- ["B8CA",0x88D8],
- ["B8C8",0x88D9],
- ["DFF7",0x88DA],
- ["DFF6",0x88DB],
- ["B8C9",0x88DC],
- ["B8CB",0x88DD],
- ["DFF5",0x88DE],
- ["B8C6",0x88DF],
- ["B8CC",0x88E1],
- ["E3F6",0x88E7],
- ["BB74",0x88E8],
- ["E442",0x88EB],
- ["E441",0x88EC],
- ["E3FB",0x88EE],
- ["BB76",0x88EF],
- ["E440",0x88F0],
- ["E3F7",0x88F1],
- ["E3F8",0x88F2],
- ["BB6E",0x88F3],
- ["BB70",0x88F4],
- ["E3FD",0x88F6],
- ["E3F5",0x88F7],
- ["BB72",0x88F8],
- ["BB71",0x88F9],
- ["E3F9",0x88FA],
- ["E3FE",0x88FB],
- ["E3FC",0x88FC],
- ["BB73",0x88FD],
- ["E3FA",0x88FE],
- ["DBCE",0x8901],
- ["BB6F",0x8902],
["E7C2",0x8905],
- ["E7C9",0x8906],
- ["BDC6",0x8907],
- ["E7CD",0x8909],
- ["BDCA",0x890A],
- ["E7C5",0x890B],
["E7C3",0x890C],
- ["E7CC",0x890E],
- ["BDC5",0x8910],
- ["E7CB",0x8911],
- ["BDC7",0x8912],
- ["BDC8",0x8913],
["E7C4",0x8914],
- ["BDC9",0x8915],
- ["E7CA",0x8916],
+ ["E7C5",0x890B],
["E7C6",0x8917],
["E7C7",0x8918],
["E7C8",0x8919],
- ["BB75",0x891A],
- ["EB70",0x891E],
- ["EB7C",0x891F],
- ["BFCA",0x8921],
- ["EB77",0x8922],
- ["EB79",0x8923],
- ["BFC8",0x8925],
- ["EB71",0x8926],
- ["EB75",0x8927],
- ["EB78",0x8929],
- ["BFC6",0x892A],
- ["BFC9",0x892B],
- ["EB7B",0x892C],
- ["EB73",0x892D],
- ["EB74",0x892E],
- ["EB7A",0x892F],
- ["EB72",0x8930],
- ["EB76",0x8931],
- ["BFC7",0x8932],
- ["EE72",0x8933],
- ["EE71",0x8935],
- ["C1B7",0x8936],
- ["EE77",0x8937],
- ["C1B9",0x8938],
- ["C1B6",0x893B],
- ["EE73",0x893C],
- ["C1BA",0x893D],
- ["EE74",0x893E],
- ["EE75",0x8941],
- ["EE78",0x8942],
- ["C1B8",0x8944],
- ["F0D6",0x8946],
- ["F0D9",0x8949],
- ["F0D3",0x894B],
- ["F0D5",0x894C],
- ["F0D4",0x894F],
- ["F0D7",0x8950],
- ["F0D8",0x8951],
- ["EE76",0x8952],
- ["F0D2",0x8953],
- ["C3CD",0x8956],
- ["F2EC",0x8957],
- ["F2EF",0x8958],
- ["F2F1",0x8959],
- ["F2EA",0x895A],
- ["F2EB",0x895B],
- ["F2EE",0x895C],
- ["F2F0",0x895D],
- ["C3CE",0x895E],
- ["C3CC",0x895F],
- ["C3CB",0x8960],
- ["F2ED",0x8961],
- ["F2E9",0x8962],
- ["F4CA",0x8963],
- ["C4B0",0x8964],
- ["F4CB",0x8966],
- ["F649",0x8969],
- ["C4FB",0x896A],
- ["F64B",0x896B],
- ["C4FC",0x896C],
- ["F648",0x896D],
- ["F64A",0x896E],
- ["C5A8",0x896F],
- ["F752",0x8971],
- ["C5A7",0x8972],
- ["F7FD",0x8973],
- ["F7FC",0x8974],
- ["F7FB",0x8976],
- ["F948",0x8979],
- ["F949",0x897A],
- ["F94B",0x897B],
- ["F94A",0x897C],
- ["CA50",0x897E],
- ["A6E8",0x897F],
- ["AD6E",0x8981],
- ["D7C5",0x8982],
- ["B5F7",0x8983],
- ["DFFA",0x8985],
- ["C2D0",0x8986],
- ["F2F2",0x8988],
- ["A8A3",0x898B],
- ["B357",0x898F],
- ["B356",0x8993],
- ["DBD0",0x8995],
- ["B5F8",0x8996],
- ["DBD2",0x8997],
- ["DBD1",0x8998],
- ["DFFB",0x899B],
- ["B8D0",0x899C],
- ["E443",0x899D],
- ["E446",0x899E],
- ["E445",0x899F],
- ["E444",0x89A1],
+ ["E7C9",0x8906],
+ ["E7CA",0x8916],
+ ["E7CB",0x8911],
+ ["E7CC",0x890E],
+ ["E7CD",0x8909],
["E7CE",0x89A2],
- ["E7D0",0x89A3],
["E7CF",0x89A4],
- ["BFCC",0x89A6],
- ["BFCB",0x89AA],
- ["C1BB",0x89AC],
- ["EE79",0x89AD],
- ["EE7B",0x89AE],
- ["EE7A",0x89AF],
- ["C2D1",0x89B2],
- ["F2F4",0x89B6],
- ["F2F3",0x89B7],
- ["F4CC",0x89B9],
- ["C4B1",0x89BA],
- ["C4FD",0x89BD],
- ["F754",0x89BE],
- ["F753",0x89BF],
- ["C65B",0x89C0],
- ["A8A4",0x89D2],
- ["D0AF",0x89D3],
- ["AD6F",0x89D4],
- ["D7C8",0x89D5],
- ["D7C6",0x89D6],
- ["D7C7",0x89D9],
- ["DBD4",0x89DA],
- ["DBD5",0x89DB],
- ["E043",0x89DC],
- ["DBD3",0x89DD],
- ["DFFC",0x89DF],
- ["E041",0x89E0],
- ["E040",0x89E1],
- ["E042",0x89E2],
- ["B8D1",0x89E3],
- ["DFFE",0x89E4],
- ["DFFD",0x89E5],
- ["E044",0x89E6],
- ["E449",0x89E8],
- ["E447",0x89E9],
- ["E448",0x89EB],
- ["E7D3",0x89EC],
+ ["E7D0",0x89A3],
["E7D1",0x89ED],
["E7D2",0x89F0],
- ["EB7D",0x89F1],
- ["EE7C",0x89F2],
- ["EE7D",0x89F3],
- ["C2D2",0x89F4],
- ["F2F5",0x89F6],
- ["F4CD",0x89F7],
- ["C4B2",0x89F8],
- ["F64C",0x89FA],
- ["F755",0x89FB],
- ["C5A9",0x89FC],
- ["F7FE",0x89FE],
- ["F94C",0x89FF],
- ["A8A5",0x8A00],
- ["AD71",0x8A02],
- ["AD72",0x8A03],
- ["D0B0",0x8A04],
- ["D0B1",0x8A07],
- ["AD70",0x8A08],
- ["B054",0x8A0A],
- ["B052",0x8A0C],
- ["B051",0x8A0E],
- ["B058",0x8A0F],
- ["B050",0x8A10],
- ["B059",0x8A11],
- ["D3DD",0x8A12],
- ["B056",0x8A13],
- ["B053",0x8A15],
- ["B057",0x8A16],
- ["B055",0x8A17],
- ["B04F",0x8A18],
- ["B35F",0x8A1B],
- ["B359",0x8A1D],
- ["D7CC",0x8A1E],
- ["B35E",0x8A1F],
- ["B360",0x8A22],
- ["B35A",0x8A23],
- ["B35B",0x8A25],
- ["D7CA",0x8A27],
- ["B358",0x8A2A],
- ["D7CB",0x8A2C],
- ["B35D",0x8A2D],
- ["D7C9",0x8A30],
- ["B35C",0x8A31],
- ["B644",0x8A34],
- ["B646",0x8A36],
- ["DBD8",0x8A39],
- ["B645",0x8A3A],
- ["B5F9",0x8A3B],
- ["B5FD",0x8A3C],
- ["B8E4",0x8A3E],
- ["E049",0x8A3F],
- ["DBDA",0x8A40],
- ["B5FE",0x8A41],
- ["DBDD",0x8A44],
- ["DBDE",0x8A45],
- ["B643",0x8A46],
- ["DBE0",0x8A48],
- ["DBE2",0x8A4A],
- ["DBE3",0x8A4C],
- ["DBD7",0x8A4D],
- ["DBD6",0x8A4E],
- ["DBE4",0x8A4F],
- ["B642",0x8A50],
- ["DBE1",0x8A51],
- ["DBDF",0x8A52],
- ["B640",0x8A54],
- ["B5FB",0x8A55],
- ["B647",0x8A56],
- ["DBDB",0x8A57],
- ["DBDC",0x8A58],
- ["DBD9",0x8A59],
- ["B641",0x8A5B],
- ["B5FC",0x8A5E],
- ["B5FA",0x8A60],
- ["E048",0x8A61],
- ["B8DF",0x8A62],
- ["B8DA",0x8A63],
- ["B8D5",0x8A66],
- ["B8E5",0x8A68],
- ["B8D6",0x8A69],
- ["B8D2",0x8A6B],
- ["B8E1",0x8A6C],
- ["B8DE",0x8A6D],
- ["B8E0",0x8A6E],
- ["B8D7",0x8A70],
- ["B8DC",0x8A71],
- ["B8D3",0x8A72],
- ["B8D4",0x8A73],
- ["E050",0x8A74],
- ["E04D",0x8A75],
- ["E045",0x8A76],
- ["E04A",0x8A77],
- ["B8E2",0x8A79],
- ["E051",0x8A7A],
- ["B8E3",0x8A7B],
- ["B8D9",0x8A7C],
- ["E047",0x8A7F],
- ["E04F",0x8A81],
- ["E04B",0x8A82],
- ["E04E",0x8A83],
- ["E04C",0x8A84],
- ["B8DD",0x8A85],
- ["E046",0x8A86],
- ["B8D8",0x8A87],
- ["E44C",0x8A8B],
- ["BB78",0x8A8C],
- ["BB7B",0x8A8D],
- ["E44E",0x8A8F],
- ["BBA5",0x8A91],
- ["E44D",0x8A92],
- ["BB7D",0x8A93],
- ["BDCF",0x8A95],
- ["E44F",0x8A96],
- ["BBA4",0x8A98],
- ["E44B",0x8A99],
- ["BBA6",0x8A9A],
- ["BB79",0x8A9E],
- ["B8DB",0x8AA0],
- ["BB7C",0x8AA1],
- ["BB7A",0x8AA3],
- ["BB7E",0x8AA4],
- ["BBA2",0x8AA5],
- ["BB77",0x8AA6],
- ["BBA7",0x8AA7],
- ["BBA3",0x8AA8],
- ["BBA1",0x8AAA],
- ["E44A",0x8AAB],
- ["BDD6",0x8AB0],
- ["BDD2",0x8AB2],
- ["BDD9",0x8AB6],
- ["E7D6",0x8AB8],
- ["BDDA",0x8AB9],
- ["E7E2",0x8ABA],
- ["E7DB",0x8ABB],
- ["BDCB",0x8ABC],
- ["E7E3",0x8ABD],
- ["E7DD",0x8ABE],
- ["BDD5",0x8ABF],
- ["E7DE",0x8AC0],
- ["BDD4",0x8AC2],
- ["E7E1",0x8AC3],
- ["BDCE",0x8AC4],
- ["E7DF",0x8AC5],
- ["E7D5",0x8AC6],
- ["BDCD",0x8AC7],
- ["EBAA",0x8AC8],
- ["BDD3",0x8AC9],
- ["BDD0",0x8ACB],
- ["BDD8",0x8ACD],
+ ["E7D3",0x89EC],
["E7D4",0x8ACF],
- ["E7D8",0x8AD1],
- ["BDCC",0x8AD2],
+ ["E7D5",0x8AC6],
+ ["E7D6",0x8AB8],
["E7D7",0x8AD3],
+ ["E7D8",0x8AD1],
["E7D9",0x8AD4],
["E7DA",0x8AD5],
- ["BDD7",0x8AD6],
+ ["E7DB",0x8ABB],
["E7DC",0x8AD7],
+ ["E7DD",0x8ABE],
+ ["E7DE",0x8AC0],
+ ["E7DF",0x8AC5],
["E7E0",0x8AD8],
+ ["E7E1",0x8AC3],
+ ["E7E2",0x8ABA],
+ ["E7E3",0x8ABD],
["E7E4",0x8AD9],
- ["BDDB",0x8ADB],
- ["BFD2",0x8ADC],
- ["EBA5",0x8ADD],
- ["EBAB",0x8ADE],
- ["EBA8",0x8ADF],
+ ["E7E5",0x8C3E],
+ ["E7E6",0x8C4D],
+ ["E7E7",0x8C8F],
+ ["E7E8",0x8CE5],
+ ["E7E9",0x8CDF],
+ ["E7EA",0x8CD9],
+ ["E7EB",0x8CE8],
+ ["E7EC",0x8CDA],
+ ["E7ED",0x8CDD],
+ ["E7EE",0x8CE7],
+ ["E7EF",0x8DA0],
+ ["E7F0",0x8D9C],
+ ["E7F1",0x8DA1],
+ ["E7F2",0x8D9B],
+ ["E7F3",0x8E20],
+ ["E7F4",0x8E23],
+ ["E7F5",0x8E25],
+ ["E7F6",0x8E24],
+ ["E7F7",0x8E2E],
+ ["E7F8",0x8E15],
+ ["E7F9",0x8E1B],
+ ["E7FA",0x8E16],
+ ["E7FB",0x8E11],
+ ["E7FC",0x8E19],
+ ["E7FD",0x8E26],
+ ["E7FE",0x8E27],
+ ["E840",0x8E14],
+ ["E841",0x8E12],
+ ["E842",0x8E18],
+ ["E843",0x8E13],
+ ["E844",0x8E1C],
+ ["E845",0x8E17],
+ ["E846",0x8E1A],
+ ["E847",0x8F2C],
+ ["E848",0x8F24],
+ ["E849",0x8F18],
+ ["E84A",0x8F1A],
+ ["E84B",0x8F20],
+ ["E84C",0x8F23],
+ ["E84D",0x8F16],
+ ["E84E",0x8F17],
+ ["E84F",0x9073],
+ ["E850",0x9070],
+ ["E851",0x906F],
+ ["E852",0x9067],
+ ["E853",0x906B],
+ ["E854",0x912F],
+ ["E855",0x912B],
+ ["E856",0x9129],
+ ["E857",0x912A],
+ ["E858",0x9132],
+ ["E859",0x9126],
+ ["E85A",0x912E],
+ ["E85B",0x9185],
+ ["E85C",0x9186],
+ ["E85D",0x918A],
+ ["E85E",0x9181],
+ ["E85F",0x9182],
+ ["E860",0x9184],
+ ["E861",0x9180],
+ ["E862",0x92D0],
+ ["E863",0x92C3],
+ ["E864",0x92C4],
+ ["E865",0x92C0],
+ ["E866",0x92D9],
+ ["E867",0x92B6],
+ ["E868",0x92CF],
+ ["E869",0x92F1],
+ ["E86A",0x92DF],
+ ["E86B",0x92D8],
+ ["E86C",0x92E9],
+ ["E86D",0x92D7],
+ ["E86E",0x92DD],
+ ["E86F",0x92CC],
+ ["E870",0x92EF],
+ ["E871",0x92C2],
+ ["E872",0x92E8],
+ ["E873",0x92CA],
+ ["E874",0x92C8],
+ ["E875",0x92CE],
+ ["E876",0x92E6],
+ ["E877",0x92CD],
+ ["E878",0x92D5],
+ ["E879",0x92C9],
+ ["E87A",0x92E0],
+ ["E87B",0x92DE],
+ ["E87C",0x92E7],
+ ["E87D",0x92D1],
+ ["E87E",0x92D3],
+ ["E8A1",0x92B5],
+ ["E8A2",0x92E1],
+ ["E8A3",0x92C6],
+ ["E8A4",0x92B4],
+ ["E8A5",0x957C],
+ ["E8A6",0x95AC],
+ ["E8A7",0x95AB],
+ ["E8A8",0x95AE],
+ ["E8A9",0x95B0],
+ ["E8AA",0x96A4],
+ ["E8AB",0x96A2],
+ ["E8AC",0x96D3],
+ ["E8AD",0x9705],
+ ["E8AE",0x9708],
+ ["E8AF",0x9702],
+ ["E8B0",0x975A],
+ ["E8B1",0x978A],
+ ["E8B2",0x978E],
+ ["E8B3",0x9788],
+ ["E8B4",0x97D0],
+ ["E8B5",0x97CF],
+ ["E8B6",0x981E],
+ ["E8B7",0x981D],
+ ["E8B8",0x9826],
+ ["E8B9",0x9829],
+ ["E8BA",0x9828],
+ ["E8BB",0x9820],
+ ["E8BC",0x981B],
+ ["E8BD",0x9827],
+ ["E8BE",0x98B2],
+ ["E8BF",0x9908],
+ ["E8C0",0x98FA],
+ ["E8C1",0x9911],
+ ["E8C2",0x9914],
+ ["E8C3",0x9916],
+ ["E8C4",0x9917],
+ ["E8C5",0x9915],
+ ["E8C6",0x99DC],
+ ["E8C7",0x99CD],
+ ["E8C8",0x99CF],
+ ["E8C9",0x99D3],
+ ["E8CA",0x99D4],
+ ["E8CB",0x99CE],
+ ["E8CC",0x99C9],
+ ["E8CD",0x99D6],
+ ["E8CE",0x99D8],
+ ["E8CF",0x99CB],
+ ["E8D0",0x99D7],
+ ["E8D1",0x99CC],
+ ["E8D2",0x9AB3],
+ ["E8D3",0x9AEC],
+ ["E8D4",0x9AEB],
+ ["E8D5",0x9AF3],
+ ["E8D6",0x9AF2],
+ ["E8D7",0x9AF1],
+ ["E8D8",0x9B46],
+ ["E8D9",0x9B43],
+ ["E8DA",0x9B67],
+ ["E8DB",0x9B74],
+ ["E8DC",0x9B71],
+ ["E8DD",0x9B66],
+ ["E8DE",0x9B76],
+ ["E8DF",0x9B75],
+ ["E8E0",0x9B70],
+ ["E8E1",0x9B68],
+ ["E8E2",0x9B64],
+ ["E8E3",0x9B6C],
+ ["E8E4",0x9CFC],
+ ["E8E5",0x9CFA],
+ ["E8E6",0x9CFD],
+ ["E8E7",0x9CFF],
+ ["E8E8",0x9CF7],
+ ["E8E9",0x9D07],
+ ["E8EA",0x9D00],
+ ["E8EB",0x9CF9],
+ ["E8EC",0x9CFB],
+ ["E8ED",0x9D08],
+ ["E8EE",0x9D05],
+ ["E8EF",0x9D04],
+ ["E8F0",0x9E83],
+ ["E8F1",0x9ED3],
+ ["E8F2",0x9F0F],
+ ["E8F3",0x9F10],
+ ["E8F4",0x511C],
+ ["E8F5",0x5113],
+ ["E8F6",0x5117],
+ ["E8F7",0x511A],
+ ["E8F8",0x5111],
+ ["E8F9",0x51DE],
+ ["E8FA",0x5334],
+ ["E8FB",0x53E1],
+ ["E8FC",0x5670],
+ ["E8FD",0x5660],
+ ["E8FE",0x566E],
+ ["E940",0x5673],
+ ["E941",0x5666],
+ ["E942",0x5663],
+ ["E943",0x566D],
+ ["E944",0x5672],
+ ["E945",0x565E],
+ ["E946",0x5677],
+ ["E947",0x571C],
+ ["E948",0x571B],
+ ["E949",0x58C8],
+ ["E94A",0x58BD],
+ ["E94B",0x58C9],
+ ["E94C",0x58BF],
+ ["E94D",0x58BA],
+ ["E94E",0x58C2],
+ ["E94F",0x58BC],
+ ["E950",0x58C6],
+ ["E951",0x5B17],
+ ["E952",0x5B19],
+ ["E953",0x5B1B],
+ ["E954",0x5B21],
+ ["E955",0x5B14],
+ ["E956",0x5B13],
+ ["E957",0x5B10],
+ ["E958",0x5B16],
+ ["E959",0x5B28],
+ ["E95A",0x5B1A],
+ ["E95B",0x5B20],
+ ["E95C",0x5B1E],
+ ["E95D",0x5BEF],
+ ["E95E",0x5DAC],
+ ["E95F",0x5DB1],
+ ["E960",0x5DA9],
+ ["E961",0x5DA7],
+ ["E962",0x5DB5],
+ ["E963",0x5DB0],
+ ["E964",0x5DAE],
+ ["E965",0x5DAA],
+ ["E966",0x5DA8],
+ ["E967",0x5DB2],
+ ["E968",0x5DAD],
+ ["E969",0x5DAF],
+ ["E96A",0x5DB4],
+ ["E96B",0x5E67],
+ ["E96C",0x5E68],
+ ["E96D",0x5E66],
+ ["E96E",0x5E6F],
+ ["E96F",0x5EE9],
+ ["E970",0x5EE7],
+ ["E971",0x5EE6],
+ ["E972",0x5EE8],
+ ["E973",0x5EE5],
+ ["E974",0x5F4B],
+ ["E975",0x5FBC],
+ ["E976",0x619D],
+ ["E977",0x61A8],
+ ["E978",0x6196],
+ ["E979",0x61C5],
+ ["E97A",0x61B4],
+ ["E97B",0x61C6],
+ ["E97C",0x61C1],
+ ["E97D",0x61CC],
+ ["E97E",0x61BA],
+ ["E9A1",0x61BF],
+ ["E9A2",0x61B8],
+ ["E9A3",0x618C],
+ ["E9A4",0x64D7],
+ ["E9A5",0x64D6],
+ ["E9A6",0x64D0],
+ ["E9A7",0x64CF],
+ ["E9A8",0x64C9],
+ ["E9A9",0x64BD],
+ ["E9AA",0x6489],
+ ["E9AB",0x64C3],
+ ["E9AC",0x64DB],
+ ["E9AD",0x64F3],
+ ["E9AE",0x64D9],
+ ["E9AF",0x6533],
+ ["E9B0",0x657F],
+ ["E9B1",0x657C],
+ ["E9B2",0x65A2],
+ ["E9B3",0x66C8],
+ ["E9B4",0x66BE],
+ ["E9B5",0x66C0],
+ ["E9B6",0x66CA],
+ ["E9B7",0x66CB],
+ ["E9B8",0x66CF],
+ ["E9B9",0x66BD],
+ ["E9BA",0x66BB],
+ ["E9BB",0x66BA],
+ ["E9BC",0x66CC],
+ ["E9BD",0x6723],
+ ["E9BE",0x6A34],
+ ["E9BF",0x6A66],
+ ["E9C0",0x6A49],
+ ["E9C1",0x6A67],
+ ["E9C2",0x6A32],
+ ["E9C3",0x6A68],
+ ["E9C4",0x6A3E],
+ ["E9C5",0x6A5D],
+ ["E9C6",0x6A6D],
+ ["E9C7",0x6A76],
+ ["E9C8",0x6A5B],
+ ["E9C9",0x6A51],
+ ["E9CA",0x6A28],
+ ["E9CB",0x6A5A],
+ ["E9CC",0x6A3B],
+ ["E9CD",0x6A3F],
+ ["E9CE",0x6A41],
+ ["E9CF",0x6A6A],
+ ["E9D0",0x6A64],
+ ["E9D1",0x6A50],
+ ["E9D2",0x6A4F],
+ ["E9D3",0x6A54],
+ ["E9D4",0x6A6F],
+ ["E9D5",0x6A69],
+ ["E9D6",0x6A60],
+ ["E9D7",0x6A3C],
+ ["E9D8",0x6A5E],
+ ["E9D9",0x6A56],
+ ["E9DA",0x6A55],
+ ["E9DB",0x6A4D],
+ ["E9DC",0x6A4E],
+ ["E9DD",0x6A46],
+ ["E9DE",0x6B55],
+ ["E9DF",0x6B54],
+ ["E9E0",0x6B56],
+ ["E9E1",0x6BA7],
+ ["E9E2",0x6BAA],
+ ["E9E3",0x6BAB],
+ ["E9E4",0x6BC8],
+ ["E9E5",0x6BC7],
+ ["E9E6",0x6C04],
+ ["E9E7",0x6C03],
+ ["E9E8",0x6C06],
+ ["E9E9",0x6FAD],
+ ["E9EA",0x6FCB],
+ ["E9EB",0x6FA3],
+ ["E9EC",0x6FC7],
+ ["E9ED",0x6FBC],
+ ["E9EE",0x6FCE],
+ ["E9EF",0x6FC8],
+ ["E9F0",0x6F5E],
+ ["E9F1",0x6FC4],
+ ["E9F2",0x6FBD],
+ ["E9F3",0x6F9E],
+ ["E9F4",0x6FCA],
+ ["E9F5",0x6FA8],
+ ["E9F6",0x7004],
+ ["E9F7",0x6FA5],
+ ["E9F8",0x6FAE],
+ ["E9F9",0x6FBA],
+ ["E9FA",0x6FAC],
+ ["E9FB",0x6FAA],
+ ["E9FC",0x6FCF],
+ ["E9FD",0x6FBF],
+ ["E9FE",0x6FB8],
+ ["EA40",0x6FA2],
+ ["EA41",0x6FC9],
+ ["EA42",0x6FAB],
+ ["EA43",0x6FCD],
+ ["EA44",0x6FAF],
+ ["EA45",0x6FB2],
+ ["EA46",0x6FB0],
+ ["EA47",0x71C5],
+ ["EA48",0x71C2],
+ ["EA49",0x71BF],
+ ["EA4A",0x71B8],
+ ["EA4B",0x71D6],
+ ["EA4C",0x71C0],
+ ["EA4D",0x71C1],
+ ["EA4E",0x71CB],
+ ["EA4F",0x71D4],
+ ["EA50",0x71CA],
+ ["EA51",0x71C7],
+ ["EA52",0x71CF],
+ ["EA53",0x71BD],
+ ["EA54",0x71D8],
+ ["EA55",0x71BC],
+ ["EA56",0x71C6],
+ ["EA57",0x71DA],
+ ["EA58",0x71DB],
+ ["EA59",0x729D],
+ ["EA5A",0x729E],
+ ["EA5B",0x7369],
+ ["EA5C",0x7366],
+ ["EA5D",0x7367],
+ ["EA5E",0x736C],
+ ["EA5F",0x7365],
+ ["EA60",0x736B],
+ ["EA61",0x736A],
+ ["EA62",0x747F],
+ ["EA63",0x749A],
+ ["EA64",0x74A0],
+ ["EA65",0x7494],
+ ["EA66",0x7492],
+ ["EA67",0x7495],
+ ["EA68",0x74A1],
+ ["EA69",0x750B],
+ ["EA6A",0x7580],
+ ["EA6B",0x762F],
+ ["EA6C",0x762D],
+ ["EA6D",0x7631],
+ ["EA6E",0x763D],
+ ["EA6F",0x7633],
+ ["EA70",0x763C],
+ ["EA71",0x7635],
+ ["EA72",0x7632],
+ ["EA73",0x7630],
+ ["EA74",0x76BB],
+ ["EA75",0x76E6],
+ ["EA76",0x779A],
+ ["EA77",0x779D],
+ ["EA78",0x77A1],
+ ["EA79",0x779C],
+ ["EA7A",0x779B],
+ ["EA7B",0x77A2],
+ ["EA7C",0x77A3],
+ ["EA7D",0x7795],
+ ["EA7E",0x7799],
+ ["EAA1",0x7797],
+ ["EAA2",0x78DD],
+ ["EAA3",0x78E9],
+ ["EAA4",0x78E5],
+ ["EAA5",0x78EA],
+ ["EAA6",0x78DE],
+ ["EAA7",0x78E3],
+ ["EAA8",0x78DB],
+ ["EAA9",0x78E1],
+ ["EAAA",0x78E2],
+ ["EAAB",0x78ED],
+ ["EAAC",0x78DF],
+ ["EAAD",0x78E0],
+ ["EAAE",0x79A4],
+ ["EAAF",0x7A44],
+ ["EAB0",0x7A48],
+ ["EAB1",0x7A47],
+ ["EAB2",0x7AB6],
+ ["EAB3",0x7AB8],
+ ["EAB4",0x7AB5],
+ ["EAB5",0x7AB1],
+ ["EAB6",0x7AB7],
+ ["EAB7",0x7BDE],
+ ["EAB8",0x7BE3],
+ ["EAB9",0x7BE7],
+ ["EABA",0x7BDD],
+ ["EABB",0x7BD5],
+ ["EABC",0x7BE5],
+ ["EABD",0x7BDA],
+ ["EABE",0x7BE8],
+ ["EABF",0x7BF9],
+ ["EAC0",0x7BD4],
+ ["EAC1",0x7BEA],
+ ["EAC2",0x7BE2],
+ ["EAC3",0x7BDC],
+ ["EAC4",0x7BEB],
+ ["EAC5",0x7BD8],
+ ["EAC6",0x7BDF],
+ ["EAC7",0x7CD2],
+ ["EAC8",0x7CD4],
+ ["EAC9",0x7CD7],
+ ["EACA",0x7CD0],
+ ["EACB",0x7CD1],
+ ["EACC",0x7E12],
+ ["EACD",0x7E21],
+ ["EACE",0x7E17],
+ ["EACF",0x7E0C],
+ ["EAD0",0x7E1F],
+ ["EAD1",0x7E20],
+ ["EAD2",0x7E13],
+ ["EAD3",0x7E0E],
+ ["EAD4",0x7E1C],
+ ["EAD5",0x7E15],
+ ["EAD6",0x7E1A],
+ ["EAD7",0x7E22],
+ ["EAD8",0x7E0B],
+ ["EAD9",0x7E0F],
+ ["EADA",0x7E16],
+ ["EADB",0x7E0D],
+ ["EADC",0x7E14],
+ ["EADD",0x7E25],
+ ["EADE",0x7E24],
+ ["EADF",0x7F43],
+ ["EAE0",0x7F7B],
+ ["EAE1",0x7F7C],
+ ["EAE2",0x7F7A],
+ ["EAE3",0x7FB1],
+ ["EAE4",0x7FEF],
+ ["EAE5",0x802A],
+ ["EAE6",0x8029],
+ ["EAE7",0x806C],
+ ["EAE8",0x81B1],
+ ["EAE9",0x81A6],
+ ["EAEA",0x81AE],
+ ["EAEB",0x81B9],
+ ["EAEC",0x81B5],
+ ["EAED",0x81AB],
+ ["EAEE",0x81B0],
+ ["EAEF",0x81AC],
+ ["EAF0",0x81B4],
+ ["EAF1",0x81B2],
+ ["EAF2",0x81B7],
+ ["EAF3",0x81A7],
+ ["EAF4",0x81F2],
+ ["EAF5",0x8255],
+ ["EAF6",0x8256],
+ ["EAF7",0x8257],
+ ["EAF8",0x8556],
+ ["EAF9",0x8545],
+ ["EAFA",0x856B],
+ ["EAFB",0x854D],
+ ["EAFC",0x8553],
+ ["EAFD",0x8561],
+ ["EAFE",0x8558],
+ ["EB40",0x8540],
+ ["EB41",0x8546],
+ ["EB42",0x8564],
+ ["EB43",0x8541],
+ ["EB44",0x8562],
+ ["EB45",0x8544],
+ ["EB46",0x8551],
+ ["EB47",0x8547],
+ ["EB48",0x8563],
+ ["EB49",0x853E],
+ ["EB4A",0x855B],
+ ["EB4B",0x8571],
+ ["EB4C",0x854E],
+ ["EB4D",0x856E],
+ ["EB4E",0x8575],
+ ["EB4F",0x8555],
+ ["EB50",0x8567],
+ ["EB51",0x8560],
+ ["EB52",0x858C],
+ ["EB53",0x8566],
+ ["EB54",0x855D],
+ ["EB55",0x8554],
+ ["EB56",0x8565],
+ ["EB57",0x856C],
+ ["EB58",0x8663],
+ ["EB59",0x8665],
+ ["EB5A",0x8664],
+ ["EB5B",0x879B],
+ ["EB5C",0x878F],
+ ["EB5D",0x8797],
+ ["EB5E",0x8793],
+ ["EB5F",0x8792],
+ ["EB60",0x8788],
+ ["EB61",0x8781],
+ ["EB62",0x8796],
+ ["EB63",0x8798],
+ ["EB64",0x8779],
+ ["EB65",0x8787],
+ ["EB66",0x87A3],
+ ["EB67",0x8785],
+ ["EB68",0x8790],
+ ["EB69",0x8791],
+ ["EB6A",0x879D],
+ ["EB6B",0x8784],
+ ["EB6C",0x8794],
+ ["EB6D",0x879C],
+ ["EB6E",0x879A],
+ ["EB6F",0x8789],
+ ["EB70",0x891E],
+ ["EB71",0x8926],
+ ["EB72",0x8930],
+ ["EB73",0x892D],
+ ["EB74",0x892E],
+ ["EB75",0x8927],
+ ["EB76",0x8931],
+ ["EB77",0x8922],
+ ["EB78",0x8929],
+ ["EB79",0x8923],
+ ["EB7A",0x892F],
+ ["EB7B",0x892C],
+ ["EB7C",0x891F],
+ ["EB7D",0x89F1],
["EB7E",0x8AE0],
- ["EBAC",0x8AE1],
["EBA1",0x8AE2],
- ["EBA7",0x8AE4],
- ["BFCD",0x8AE6],
- ["BFD3",0x8AE7],
- ["EBAD",0x8AE8],
- ["BFCF",0x8AEB],
- ["BFD9",0x8AED],
- ["BFD4",0x8AEE],
- ["EBAF",0x8AEF],
- ["EBA9",0x8AF0],
- ["BFD0",0x8AF1],
["EBA2",0x8AF2],
- ["BFDA",0x8AF3],
["EBA3",0x8AF4],
["EBA4",0x8AF5],
- ["BFDB",0x8AF6],
- ["BFD8",0x8AF7],
- ["BDD1",0x8AF8],
- ["BFCE",0x8AFA],
- ["EBB0",0x8AFB],
- ["BFDC",0x8AFC],
- ["BFD5",0x8AFE],
- ["EBAE",0x8AFF],
- ["BFD1",0x8B00],
- ["BFD6",0x8B01],
- ["BFD7",0x8B02],
- ["C1C3",0x8B04],
- ["EEA4",0x8B05],
- ["EEAD",0x8B06],
- ["EEAA",0x8B07],
- ["EEAC",0x8B08],
- ["C1C0",0x8B0A],
- ["EEA5",0x8B0B],
- ["EEAB",0x8B0D],
- ["C1BC",0x8B0E],
- ["EEA7",0x8B0F],
- ["C1C4",0x8B10],
- ["EEA3",0x8B11],
- ["EEA8",0x8B12],
- ["EEAF",0x8B13],
+ ["EBA5",0x8ADD],
["EBA6",0x8B14],
- ["EEA9",0x8B15],
- ["EEA2",0x8B16],
- ["C1BD",0x8B17],
- ["EEA1",0x8B18],
- ["C1BE",0x8B19],
- ["EEB0",0x8B1A],
- ["C1BF",0x8B1B],
- ["EEAE",0x8B1C],
- ["C1C2",0x8B1D],
- ["EE7E",0x8B1E],
- ["C1C1",0x8B20],
- ["EEA6",0x8B22],
- ["F0DC",0x8B23],
- ["F0EA",0x8B24],
- ["F0E5",0x8B25],
- ["F0E7",0x8B26],
- ["F0DB",0x8B27],
- ["C2D3",0x8B28],
- ["F0DA",0x8B2A],
- ["C2D6",0x8B2B],
- ["C2D5",0x8B2C],
- ["F0E9",0x8B2E],
- ["F0E1",0x8B2F],
- ["F0DE",0x8B30],
- ["F0E4",0x8B31],
- ["F0DD",0x8B33],
- ["F0DF",0x8B35],
- ["F0E8",0x8B36],
- ["F0E6",0x8B37],
- ["C2D4",0x8B39],
- ["F0ED",0x8B3A],
- ["F0EB",0x8B3B],
- ["F0E2",0x8B3C],
- ["F0EC",0x8B3D],
- ["F0E3",0x8B3E],
- ["F2F9",0x8B40],
- ["C3CF",0x8B41],
- ["F341",0x8B42],
- ["F64F",0x8B45],
- ["C3D6",0x8B46],
- ["F0E0",0x8B47],
- ["F2F7",0x8B48],
- ["C3D2",0x8B49],
- ["F2F8",0x8B4A],
- ["F2FD",0x8B4B],
- ["C3D4",0x8B4E],
- ["C3D5",0x8B4F],
- ["F2F6",0x8B50],
- ["F340",0x8B51],
- ["F342",0x8B52],
- ["F2FA",0x8B53],
- ["F2FC",0x8B54],
- ["F2FE",0x8B55],
- ["F2FB",0x8B56],
- ["F343",0x8B57],
- ["C3D1",0x8B58],
- ["C3D7",0x8B59],
- ["C3D3",0x8B5A],
- ["C3D0",0x8B5C],
- ["F4D0",0x8B5D],
- ["C4B7",0x8B5F],
- ["F4CE",0x8B60],
- ["F4D2",0x8B63],
- ["F4D3",0x8B65],
- ["C4B5",0x8B66],
- ["F4D4",0x8B67],
- ["F4D1",0x8B68],
- ["F4CF",0x8B6A],
- ["C4B8",0x8B6B],
- ["C4B4",0x8B6C],
- ["F4D5",0x8B6D],
- ["C4B6",0x8B6F],
- ["C4B3",0x8B70],
- ["C4FE",0x8B74],
- ["C540",0x8B77],
- ["F64E",0x8B78],
- ["F64D",0x8B79],
- ["F650",0x8B7A],
- ["F651",0x8B7B],
- ["C541",0x8B7D],
- ["F756",0x8B7E],
- ["F75B",0x8B7F],
- ["C5AA",0x8B80],
- ["F758",0x8B82],
- ["F757",0x8B84],
- ["F75A",0x8B85],
- ["F759",0x8B86],
- ["F843",0x8B88],
- ["C5DC",0x8B8A],
- ["F842",0x8B8B],
- ["F840",0x8B8C],
- ["F841",0x8B8E],
- ["C5FE",0x8B92],
- ["C5FD",0x8B93],
- ["F8C1",0x8B94],
- ["F8C2",0x8B95],
- ["C640",0x8B96],
- ["F94D",0x8B98],
- ["F94E",0x8B99],
- ["C667",0x8B9A],
- ["C66D",0x8B9C],
- ["F9A9",0x8B9E],
- ["F9C8",0x8B9F],
- ["A8A6",0x8C37],
- ["D7CD",0x8C39],
- ["D7CE",0x8C3B],
- ["E052",0x8C3C],
- ["E450",0x8C3D],
- ["E7E5",0x8C3E],
- ["C1C6",0x8C3F],
- ["C1C5",0x8C41],
- ["F0EE",0x8C42],
- ["F344",0x8C43],
- ["F844",0x8C45],
- ["A8A7",0x8C46],
- ["D3DE",0x8C47],
- ["B05A",0x8C48],
- ["B361",0x8C49],
- ["E054",0x8C4A],
- ["E053",0x8C4B],
- ["BDDC",0x8C4C],
- ["E7E6",0x8C4D],
- ["BDDD",0x8C4E],
- ["EEB1",0x8C4F],
- ["C2D7",0x8C50],
- ["C676",0x8C54],
- ["A8A8",0x8C55],
- ["CDCB",0x8C56],
- ["D3DF",0x8C57],
- ["B362",0x8C5A],
- ["D7CF",0x8C5C],
- ["D7D0",0x8C5D],
- ["DBE5",0x8C5F],
- ["B648",0x8C61],
- ["B8E6",0x8C62],
- ["E056",0x8C64],
- ["E055",0x8C65],
- ["E057",0x8C66],
- ["E451",0x8C68],
- ["E452",0x8C69],
- ["BBA8",0x8C6A],
- ["BFDD",0x8C6B],
- ["BDDE",0x8C6C],
- ["BFDE",0x8C6D],
- ["EEB5",0x8C6F],
- ["EEB2",0x8C70],
- ["EEB4",0x8C71],
- ["EEB3",0x8C72],
- ["C1C7",0x8C73],
- ["F0EF",0x8C75],
- ["F346",0x8C76],
- ["F345",0x8C77],
- ["CBA4",0x8C78],
- ["B05C",0x8C79],
- ["B05B",0x8C7A],
- ["D3E0",0x8C7B],
- ["D7D1",0x8C7D],
- ["DBE7",0x8C80],
- ["DBE6",0x8C81],
- ["B649",0x8C82],
- ["E059",0x8C84],
- ["E05A",0x8C85],
- ["E058",0x8C86],
- ["B8E8",0x8C89],
- ["B8E7",0x8C8A],
- ["BBAA",0x8C8C],
- ["BBA9",0x8C8D],
- ["E7E7",0x8C8F],
- ["EBB3",0x8C90],
+ ["EBA7",0x8AE4],
+ ["EBA8",0x8ADF],
+ ["EBA9",0x8AF0],
+ ["EBAA",0x8AC8],
+ ["EBAB",0x8ADE],
+ ["EBAC",0x8AE1],
+ ["EBAD",0x8AE8],
+ ["EBAE",0x8AFF],
+ ["EBAF",0x8AEF],
+ ["EBB0",0x8AFB],
["EBB1",0x8C91],
["EBB2",0x8C92],
- ["BFDF",0x8C93],
- ["EEB7",0x8C94],
- ["EEB6",0x8C95],
- ["F0F2",0x8C97],
- ["F0F1",0x8C98],
- ["F0F0",0x8C99],
- ["F347",0x8C9A],
- ["F9AA",0x8C9C],
- ["A8A9",0x8C9D],
- ["AD73",0x8C9E],
- ["AD74",0x8CA0],
- ["B05D",0x8CA1],
- ["B05E",0x8CA2],
- ["D3E2",0x8CA3],
- ["D3E1",0x8CA4],
- ["D7D2",0x8CA5],
- ["B368",0x8CA7],
- ["B366",0x8CA8],
- ["B363",0x8CA9],
- ["B367",0x8CAA],
- ["B365",0x8CAB],
- ["B364",0x8CAC],
- ["B64A",0x8CAF],
- ["DBEA",0x8CB0],
- ["B8ED",0x8CB2],
- ["B64C",0x8CB3],
- ["B651",0x8CB4],
- ["DBEC",0x8CB5],
- ["B653",0x8CB6],
- ["B652",0x8CB7],
- ["B655",0x8CB8],
- ["DBEB",0x8CB9],
- ["DBE8",0x8CBA],
- ["B64F",0x8CBB],
- ["B64B",0x8CBC],
- ["B64D",0x8CBD],
- ["DBE9",0x8CBE],
- ["B654",0x8CBF],
- ["B650",0x8CC0],
- ["B64E",0x8CC1],
- ["B8EF",0x8CC2],
- ["B8EE",0x8CC3],
- ["B8EC",0x8CC4],
- ["B8F0",0x8CC5],
- ["B8EA",0x8CC7],
- ["B8EB",0x8CC8],
- ["B8E9",0x8CCA],
- ["E05B",0x8CCC],
- ["E454",0x8CCF],
- ["BBAC",0x8CD1],
- ["BBAD",0x8CD2],
- ["BBAB",0x8CD3],
- ["E453",0x8CD5],
- ["E455",0x8CD7],
- ["E7EA",0x8CD9],
- ["E7EC",0x8CDA],
- ["BDE7",0x8CDC],
- ["E7ED",0x8CDD],
- ["BDE0",0x8CDE],
- ["E7E9",0x8CDF],
- ["BDDF",0x8CE0],
- ["BDE9",0x8CE1],
- ["BDE5",0x8CE2],
- ["BDE6",0x8CE3],
- ["BDE2",0x8CE4],
- ["E7E8",0x8CE5],
- ["BDE1",0x8CE6],
- ["E7EE",0x8CE7],
- ["E7EB",0x8CE8],
- ["BDE8",0x8CEA],
- ["BDE3",0x8CEC],
- ["BDE4",0x8CED],
+ ["EBB3",0x8C90],
+ ["EBB4",0x8CF5],
["EBB5",0x8CEE],
- ["EBB7",0x8CF0],
["EBB6",0x8CF1],
+ ["EBB7",0x8CF0],
["EBB8",0x8CF3],
- ["BFE0",0x8CF4],
- ["EBB4",0x8CF5],
- ["C1CB",0x8CF8],
- ["EEB8",0x8CF9],
- ["C1C8",0x8CFA],
- ["C1CC",0x8CFB],
- ["C1CA",0x8CFC],
- ["C1C9",0x8CFD],
- ["F0F3",0x8CFE],
- ["F0F6",0x8D00],
- ["F0F5",0x8D02],
- ["F0F4",0x8D04],
- ["C2D8",0x8D05],
- ["F348",0x8D06],
- ["F349",0x8D07],
- ["C3D8",0x8D08],
- ["F34A",0x8D09],
- ["C3D9",0x8D0A],
- ["C4BA",0x8D0D],
- ["C4B9",0x8D0F],
- ["F652",0x8D10],
- ["C542",0x8D13],
- ["F653",0x8D14],
- ["F75C",0x8D15],
- ["C5AB",0x8D16],
- ["C5AC",0x8D17],
- ["F845",0x8D19],
- ["C642",0x8D1B],
- ["A8AA",0x8D64],
- ["B36A",0x8D66],
- ["B369",0x8D67],
- ["E05C",0x8D68],
- ["E05D",0x8D69],
- ["BBAE",0x8D6B],
["EBB9",0x8D6C],
- ["BDEA",0x8D6D],
["EBBA",0x8D6E],
- ["EEB9",0x8D6F],
- ["A8AB",0x8D70],
- ["D0B2",0x8D72],
- ["AD76",0x8D73],
- ["AD75",0x8D74],
- ["D3E3",0x8D76],
- ["B05F",0x8D77],
- ["D3E4",0x8D78],
- ["D7D5",0x8D79],
- ["D7D4",0x8D7B],
- ["D7D3",0x8D7D],
- ["DBEE",0x8D80],
- ["B658",0x8D81],
- ["DBED",0x8D84],
- ["B657",0x8D85],
- ["DBEF",0x8D89],
- ["B656",0x8D8A],
- ["E05F",0x8D8C],
- ["E062",0x8D8D],
- ["E060",0x8D8E],
- ["E061",0x8D8F],
- ["E065",0x8D90],
- ["E05E",0x8D91],
- ["E066",0x8D92],
- ["E063",0x8D93],
- ["E064",0x8D94],
- ["BBB0",0x8D95],
- ["E456",0x8D96],
- ["BBAF",0x8D99],
- ["E7F2",0x8D9B],
- ["E7F0",0x8D9C],
- ["BDEB",0x8D9F],
- ["E7EF",0x8DA0],
- ["E7F1",0x8DA1],
- ["BDEC",0x8DA3],
["EBBB",0x8DA5],
["EBBC",0x8DA7],
- ["C1CD",0x8DA8],
- ["F34C",0x8DAA],
- ["F34E",0x8DAB],
- ["F34B",0x8DAC],
- ["F34D",0x8DAD],
- ["F4D6",0x8DAE],
- ["F654",0x8DAF],
- ["F96F",0x8DB2],
- ["A8AC",0x8DB3],
- ["AD77",0x8DB4],
- ["D3E5",0x8DB5],
- ["D3E7",0x8DB6],
- ["D3E6",0x8DB7],
- ["D7D8",0x8DB9],
- ["B36C",0x8DBA],
- ["D7D6",0x8DBC],
- ["B36B",0x8DBE],
- ["D7D9",0x8DBF],
- ["D7DA",0x8DC1],
- ["D7D7",0x8DC2],
- ["DBFB",0x8DC5],
- ["B660",0x8DC6],
- ["DBF3",0x8DC7],
- ["DBF9",0x8DC8],
- ["B65B",0x8DCB],
- ["B65E",0x8DCC],
- ["DBF2",0x8DCD],
- ["B659",0x8DCE],
- ["DBF6",0x8DCF],
- ["E06C",0x8DD0],
- ["B65D",0x8DD1],
- ["DBF1",0x8DD3],
- ["DBF7",0x8DD5],
- ["DBF4",0x8DD6],
- ["DBFA",0x8DD7],
- ["DBF0",0x8DD8],
- ["DBF8",0x8DD9],
- ["B65C",0x8DDA],
- ["B65F",0x8DDB],
- ["DBF5",0x8DDC],
- ["B65A",0x8DDD],
- ["B8F2",0x8DDF],
- ["E068",0x8DE0],
- ["B8F1",0x8DE1],
- ["E06F",0x8DE2],
- ["E06E",0x8DE3],
- ["B8F8",0x8DE4],
- ["B8F9",0x8DE6],
- ["E070",0x8DE7],
- ["B8F3",0x8DE8],
- ["E06D",0x8DE9],
- ["B8F7",0x8DEA],
- ["E072",0x8DEB],
- ["E069",0x8DEC],
- ["E06B",0x8DEE],
- ["B8F4",0x8DEF],
- ["E067",0x8DF0],
- ["E06A",0x8DF1],
- ["E071",0x8DF2],
- ["B8F5",0x8DF3],
- ["E073",0x8DF4],
- ["B8F6",0x8DFA],
- ["BBB1",0x8DFC],
- ["E45B",0x8DFD],
- ["E461",0x8DFE],
- ["E459",0x8DFF],
- ["E462",0x8E00],
- ["E458",0x8E02],
- ["E45D",0x8E03],
- ["E463",0x8E04],
- ["E460",0x8E05],
- ["E45F",0x8E06],
- ["E45E",0x8E07],
- ["E457",0x8E09],
- ["E45C",0x8E0A],
- ["E45A",0x8E0D],
- ["BDF1",0x8E0F],
- ["BDEE",0x8E10],
- ["E7FB",0x8E11],
- ["E841",0x8E12],
- ["E843",0x8E13],
- ["E840",0x8E14],
- ["E7F8",0x8E15],
- ["E7FA",0x8E16],
- ["E845",0x8E17],
- ["E842",0x8E18],
- ["E7FC",0x8E19],
- ["E846",0x8E1A],
- ["E7F9",0x8E1B],
- ["E844",0x8E1C],
- ["BDEF",0x8E1D],
- ["BDF5",0x8E1E],
- ["BDF3",0x8E1F],
- ["E7F3",0x8E20],
- ["BDF4",0x8E21],
- ["BDF0",0x8E22],
- ["E7F4",0x8E23],
- ["E7F6",0x8E24],
- ["E7F5",0x8E25],
- ["E7FD",0x8E26],
- ["E7FE",0x8E27],
- ["BDF2",0x8E29],
- ["BDED",0x8E2B],
- ["E7F7",0x8E2E],
- ["EBC6",0x8E30],
- ["BFE2",0x8E31],
["EBBD",0x8E33],
- ["BFE3",0x8E34],
- ["BFE6",0x8E35],
- ["EBC2",0x8E36],
+ ["EBBE",0x8E3E],
["EBBF",0x8E38],
- ["BFE5",0x8E39],
+ ["EBC0",0x8E40],
+ ["EBC1",0x8E45],
+ ["EBC2",0x8E36],
["EBC3",0x8E3C],
["EBC4",0x8E3D],
- ["EBBE",0x8E3E],
- ["EBC7",0x8E3F],
- ["EBC0",0x8E40],
["EBC5",0x8E41],
- ["BFE4",0x8E42],
- ["BFE1",0x8E44],
- ["EBC1",0x8E45],
- ["EEBF",0x8E47],
- ["C1D0",0x8E48],
- ["C1CE",0x8E49],
- ["C1D1",0x8E4A],
- ["C1CF",0x8E4B],
- ["EEBE",0x8E4C],
- ["EEBB",0x8E4D],
- ["EEBA",0x8E4E],
- ["EEBD",0x8E50],
- ["EEBC",0x8E53],
- ["F145",0x8E54],
- ["C2DE",0x8E55],
- ["F0FB",0x8E56],
- ["F0FA",0x8E57],
- ["C2D9",0x8E59],
- ["F141",0x8E5A],
- ["F140",0x8E5B],
- ["F0F7",0x8E5C],
- ["F143",0x8E5D],
- ["F0FC",0x8E5E],
- ["C2DD",0x8E5F],
- ["F0F9",0x8E60],
- ["F142",0x8E61],
- ["F0F8",0x8E62],
- ["C2DA",0x8E63],
- ["C2DC",0x8E64],
- ["F0FD",0x8E65],
- ["C2DB",0x8E66],
- ["F0FE",0x8E67],
- ["F144",0x8E69],
- ["F352",0x8E6A],
- ["C3DE",0x8E6C],
- ["F34F",0x8E6D],
- ["F353",0x8E6F],
- ["C3DB",0x8E72],
- ["F351",0x8E73],
- ["C3E0",0x8E74],
- ["C3DD",0x8E76],
- ["F350",0x8E78],
- ["C3DF",0x8E7A],
- ["F354",0x8E7B],
- ["C3DA",0x8E7C],
- ["C4BC",0x8E81],
- ["C4BE",0x8E82],
- ["F4D9",0x8E84],
- ["C4BD",0x8E85],
- ["F4D7",0x8E86],
- ["C3DC",0x8E87],
- ["F4D8",0x8E88],
- ["C4BB",0x8E89],
- ["C543",0x8E8A],
- ["C545",0x8E8B],
- ["F656",0x8E8C],
- ["C544",0x8E8D],
- ["F655",0x8E8E],
- ["F761",0x8E90],
- ["C5AD",0x8E91],
- ["F760",0x8E92],
- ["C5AE",0x8E93],
- ["F75E",0x8E94],
- ["F75D",0x8E95],
- ["F762",0x8E96],
- ["F763",0x8E97],
- ["F846",0x8E98],
- ["F75F",0x8E9A],
- ["F8C6",0x8E9D],
- ["F8C3",0x8E9E],
- ["F8C4",0x8E9F],
- ["F8C5",0x8EA0],
- ["C65C",0x8EA1],
- ["F951",0x8EA3],
- ["F950",0x8EA4],
- ["F94F",0x8EA5],
- ["F970",0x8EA6],
- ["F9BE",0x8EA8],
- ["F9AB",0x8EA9],
- ["C66E",0x8EAA],
- ["A8AD",0x8EAB],
- ["B060",0x8EAC],
- ["B8FA",0x8EB2],
- ["BDF6",0x8EBA],
+ ["EBC6",0x8E30],
+ ["EBC7",0x8E3F],
["EBC8",0x8EBD],
- ["C2DF",0x8EC0],
- ["F355",0x8EC2],
- ["F9AC",0x8EC9],
- ["A8AE",0x8ECA],
- ["AAEE",0x8ECB],
- ["AD79",0x8ECC],
- ["AD78",0x8ECD],
- ["B063",0x8ECF],
- ["D3E8",0x8ED1],
- ["B061",0x8ED2],
- ["D3E9",0x8ED3],
- ["B062",0x8ED4],
- ["D7DF",0x8ED7],
- ["D7DB",0x8ED8],
- ["B36D",0x8EDB],
- ["D7DE",0x8EDC],
- ["D7DD",0x8EDD],
- ["D7DC",0x8EDE],
- ["B36E",0x8EDF],
- ["D7E0",0x8EE0],
- ["D7E1",0x8EE1],
- ["DC43",0x8EE5],
- ["DC41",0x8EE6],
- ["DC45",0x8EE7],
- ["DC46",0x8EE8],
- ["DC4C",0x8EE9],
- ["DC48",0x8EEB],
- ["DC4A",0x8EEC],
- ["DC42",0x8EEE],
- ["DBFC",0x8EEF],
- ["DC49",0x8EF1],
- ["DC4B",0x8EF4],
- ["DC44",0x8EF5],
- ["DC47",0x8EF6],
- ["DBFD",0x8EF7],
- ["B662",0x8EF8],
- ["DC40",0x8EF9],
- ["DBFE",0x8EFA],
- ["B661",0x8EFB],
- ["B663",0x8EFC],
- ["B8FD",0x8EFE],
- ["E075",0x8EFF],
- ["E077",0x8F00],
- ["E076",0x8F01],
- ["E07B",0x8F02],
- ["B8FB",0x8F03],
- ["E078",0x8F05],
- ["E074",0x8F06],
- ["E079",0x8F07],
- ["E07A",0x8F08],
- ["B8FC",0x8F09],
- ["B8FE",0x8F0A],
- ["E07C",0x8F0B],
- ["E467",0x8F0D],
- ["E466",0x8F0E],
- ["E464",0x8F10],
- ["E465",0x8F11],
- ["BBB3",0x8F12],
- ["BBB5",0x8F13],
- ["BBB2",0x8F14],
- ["BBB4",0x8F15],
- ["E84D",0x8F16],
- ["E84E",0x8F17],
- ["E849",0x8F18],
- ["E84A",0x8F1A],
- ["BDF8",0x8F1B],
- ["BDFD",0x8F1C],
- ["BDF7",0x8F1D],
- ["BDFE",0x8F1E],
- ["BDF9",0x8F1F],
- ["E84B",0x8F20],
- ["E84C",0x8F23],
- ["E848",0x8F24],
- ["BE40",0x8F25],
- ["BDFB",0x8F26],
- ["BDFA",0x8F29],
- ["BDFC",0x8F2A],
- ["E847",0x8F2C],
+ ["EBC9",0x8F36],
["EBCA",0x8F2E],
- ["BFE8",0x8F2F],
- ["EBCC",0x8F32],
- ["BFEA",0x8F33],
- ["EBCF",0x8F34],
["EBCB",0x8F35],
- ["EBC9",0x8F36],
- ["EBCE",0x8F37],
- ["BFE9",0x8F38],
+ ["EBCC",0x8F32],
["EBCD",0x8F39],
- ["BFE7",0x8F3B],
- ["C1D3",0x8F3E],
- ["C1D6",0x8F3F],
- ["EEC1",0x8F40],
- ["C1D4",0x8F42],
- ["EEC0",0x8F43],
- ["C1D2",0x8F44],
- ["C1D5",0x8F45],
- ["F146",0x8F46],
- ["F147",0x8F47],
- ["F148",0x8F48],
- ["C2E0",0x8F49],
- ["F149",0x8F4B],
- ["C2E1",0x8F4D],
- ["C3E2",0x8F4E],
- ["F358",0x8F4F],
- ["F359",0x8F50],
- ["F357",0x8F51],
- ["F356",0x8F52],
- ["F35A",0x8F53],
- ["C3E1",0x8F54],
- ["F4DD",0x8F55],
- ["F4DB",0x8F56],
- ["F4DC",0x8F57],
- ["F4DE",0x8F58],
- ["F4DA",0x8F59],
- ["F4DF",0x8F5A],
- ["F658",0x8F5B],
- ["F659",0x8F5D],
- ["F657",0x8F5E],
- ["C546",0x8F5F],
- ["F764",0x8F60],
- ["C5AF",0x8F61],
- ["F765",0x8F62],
- ["F848",0x8F63],
- ["F847",0x8F64],
- ["A8AF",0x8F9B],
- ["B664",0x8F9C],
- ["B940",0x8F9F],
- ["BBB6",0x8FA3],
- ["BFEC",0x8FA6],
- ["BFEB",0x8FA8],
- ["C3E3",0x8FAD],
- ["C47C",0x8FAE],
- ["C547",0x8FAF],
- ["A8B0",0x8FB0],
- ["B064",0x8FB1],
- ["B941",0x8FB2],
- ["F35B",0x8FB4],
- ["CBA6",0x8FBF],
- ["A8B1",0x8FC2],
- ["A8B4",0x8FC4],
- ["A8B3",0x8FC5],
- ["A8B2",0x8FC6],
- ["CBA5",0x8FC9],
- ["CDCD",0x8FCB],
- ["CDCF",0x8FCD],
- ["AAEF",0x8FCE],
- ["AAF1",0x8FD1],
- ["CDCC",0x8FD2],
- ["CDCE",0x8FD3],
- ["AAF0",0x8FD4],
- ["CDD1",0x8FD5],
- ["CDD0",0x8FD6],
- ["CDD2",0x8FD7],
- ["D0B6",0x8FE0],
- ["D0B4",0x8FE1],
- ["AD7C",0x8FE2],
- ["D0B3",0x8FE3],
- ["ADA3",0x8FE4],
- ["AD7E",0x8FE5],
- ["AD7B",0x8FE6],
- ["ADA4",0x8FE8],
- ["AD7D",0x8FEA],
- ["ADA2",0x8FEB],
- ["ADA1",0x8FED],
- ["D0B5",0x8FEE],
- ["AD7A",0x8FF0],
- ["B06A",0x8FF4],
- ["D3EB",0x8FF5],
- ["D3F1",0x8FF6],
- ["B067",0x8FF7],
- ["B06E",0x8FF8],
- ["B069",0x8FFA],
- ["D3EE",0x8FFB],
- ["D3F0",0x8FFC],
- ["B06C",0x8FFD],
- ["D3EA",0x8FFE],
- ["D3ED",0x8FFF],
- ["B068",0x9000],
- ["B065",0x9001],
- ["D3EC",0x9002],
- ["B06B",0x9003],
- ["D3EF",0x9004],
- ["B06D",0x9005],
- ["B066",0x9006],
- ["D7E3",0x900B],
- ["D7E6",0x900C],
- ["B370",0x900D],
- ["B37A",0x900F],
- ["B376",0x9010],
- ["D7E4",0x9011],
- ["B37E",0x9014],
- ["B377",0x9015],
- ["B37C",0x9016],
- ["B372",0x9017],
- ["B36F",0x9019],
- ["B371",0x901A],
- ["B37D",0x901B],
- ["D7E5",0x901C],
- ["B375",0x901D],
- ["B378",0x901E],
- ["B374",0x901F],
- ["B379",0x9020],
- ["D7E7",0x9021],
- ["B37B",0x9022],
- ["B373",0x9023],
- ["D7E2",0x9024],
- ["DC4D",0x902D],
- ["B665",0x902E],
- ["DC4F",0x902F],
- ["B667",0x9031],
- ["B669",0x9032],
- ["DC4E",0x9034],
- ["B666",0x9035],
- ["B66A",0x9036],
- ["B668",0x9038],
- ["B947",0x903C],
- ["E0A3",0x903D],
- ["B94F",0x903E],
- ["E07E",0x903F],
- ["B950",0x9041],
- ["B945",0x9042],
- ["E0A1",0x9044],
- ["B94A",0x9047],
- ["E0A2",0x9049],
- ["B943",0x904A],
- ["B942",0x904B],
- ["B94D",0x904D],
- ["B94C",0x904E],
- ["B94B",0x904F],
- ["B949",0x9050],
- ["B94E",0x9051],
- ["E07D",0x9052],
- ["B944",0x9053],
- ["B946",0x9054],
- ["B948",0x9055],
- ["BBB8",0x9058],
- ["BBBB",0x9059],
- ["BBBF",0x905B],
- ["BBB9",0x905C],
- ["BBBE",0x905D],
- ["BBBC",0x905E],
- ["BBB7",0x9060],
- ["BBBD",0x9062],
- ["BBBA",0x9063],
- ["E852",0x9067],
- ["BE43",0x9068],
- ["BE41",0x9069],
- ["E853",0x906B],
- ["BE44",0x906D],
- ["BE42",0x906E],
- ["E851",0x906F],
- ["E850",0x9070],
- ["BFF0",0x9072],
- ["E84F",0x9073],
- ["BFEE",0x9074],
- ["BFED",0x9075],
+ ["EBCE",0x8F37],
+ ["EBCF",0x8F34],
["EBD0",0x9076],
- ["BE45",0x9077],
- ["BFEF",0x9078],
["EBD1",0x9079],
- ["BFF2",0x907A],
["EBD2",0x907B],
- ["BFF1",0x907C],
- ["C1D8",0x907D],
- ["EEC3",0x907E],
- ["C1D7",0x907F],
- ["C1DC",0x9080],
- ["C1DA",0x9081],
- ["C1DB",0x9082],
- ["C2E3",0x9083],
- ["C1D9",0x9084],
- ["EEC2",0x9085],
["EBD3",0x9086],
- ["C2E2",0x9087],
- ["C2E4",0x9088],
- ["C3E4",0x908A],
- ["C3E5",0x908B],
- ["F4E0",0x908D],
- ["C5DE",0x908F],
- ["C5DD",0x9090],
- ["A8B6",0x9091],
- ["CA55",0x9094],
- ["B06F",0x9095],
- ["CA52",0x9097],
- ["CA53",0x9098],
- ["CA51",0x9099],
- ["CA54",0x909B],
- ["CBAA",0x909E],
- ["CBA7",0x909F],
- ["CBAC",0x90A0],
- ["CBA8",0x90A1],
- ["A8B7",0x90A2],
- ["A8BA",0x90A3],
- ["CBA9",0x90A5],
- ["A8B9",0x90A6],
- ["CBAB",0x90A7],
- ["A8B8",0x90AA],
- ["CDD5",0x90AF],
- ["CDD7",0x90B0],
- ["AAF4",0x90B1],
- ["CDD3",0x90B2],
- ["CDD6",0x90B3],
- ["CDD4",0x90B4],
- ["AAF2",0x90B5],
- ["AAF5",0x90B6],
- ["AAF3",0x90B8],
- ["D0B8",0x90BD],
- ["D0BC",0x90BE],
- ["D0B9",0x90BF],
- ["ADA7",0x90C1],
- ["ADA8",0x90C3],
- ["D0BB",0x90C5],
- ["D0BD",0x90C7],
- ["D0BF",0x90C8],
- ["ADA5",0x90CA],
- ["D0BE",0x90CB],
- ["ADA6",0x90CE],
- ["D7EE",0x90D4],
- ["D0BA",0x90D5],
- ["D3F2",0x90D6],
- ["D3FB",0x90D7],
- ["D3F9",0x90D8],
- ["D3F4",0x90D9],
- ["D3F5",0x90DA],
- ["D3FA",0x90DB],
- ["D3FC",0x90DC],
- ["B071",0x90DD],
- ["D3F7",0x90DF],
- ["D3F3",0x90E0],
- ["B070",0x90E1],
- ["B072",0x90E2],
- ["D3F6",0x90E3],
- ["D3FD",0x90E4],
- ["D3F8",0x90E5],
- ["B3A1",0x90E8],
- ["D7F1",0x90E9],
- ["D7E9",0x90EA],
- ["D7EF",0x90EB],
- ["D7F0",0x90EC],
- ["B3A2",0x90ED],
- ["D7E8",0x90EF],
- ["D7EA",0x90F0],
- ["D0B7",0x90F1],
- ["D7EC",0x90F2],
- ["D7ED",0x90F3],
- ["D7EB",0x90F4],
- ["B66C",0x90F5],
- ["DC56",0x90F9],
["EBD4",0x90FA],
- ["DC57",0x90FB],
- ["DC54",0x90FC],
- ["B3A3",0x90FD],
- ["B66E",0x90FE],
- ["DC53",0x90FF],
- ["DC59",0x9100],
- ["DC58",0x9101],
- ["B66B",0x9102],
- ["DC5C",0x9103],
- ["DC52",0x9104],
- ["DC5B",0x9105],
- ["DC50",0x9106],
- ["DC5A",0x9107],
- ["DC55",0x9108],
- ["B66D",0x9109],
- ["E0AA",0x910B],
- ["E0A5",0x910D],
- ["E0AB",0x910E],
- ["E0A6",0x910F],
- ["E0A4",0x9110],
- ["E0A7",0x9111],
- ["B951",0x9112],
- ["E0A9",0x9114],
- ["E0A8",0x9116],
- ["B952",0x9117],
- ["BBC1",0x9118],
- ["BBC0",0x9119],
- ["E46E",0x911A],
- ["E471",0x911B],
- ["E469",0x911C],
- ["E46D",0x911D],
- ["BBC2",0x911E],
- ["E46C",0x911F],
- ["E46A",0x9120],
- ["E470",0x9121],
- ["E46B",0x9122],
- ["E468",0x9123],
- ["E46F",0x9124],
- ["E859",0x9126],
- ["BE48",0x9127],
- ["F14A",0x9128],
- ["E856",0x9129],
- ["E857",0x912A],
- ["E855",0x912B],
- ["DC51",0x912C],
- ["BE47",0x912D],
- ["E85A",0x912E],
- ["E854",0x912F],
- ["BE46",0x9130],
- ["BE49",0x9131],
- ["E858",0x9132],
["EBD5",0x9133],
- ["BFF3",0x9134],
["EBD6",0x9135],
["EBD7",0x9136],
- ["EEC4",0x9138],
- ["C1DD",0x9139],
- ["F14B",0x913A],
- ["F14C",0x913B],
- ["F14D",0x913E],
- ["F35D",0x913F],
- ["F35C",0x9140],
- ["F4E2",0x9141],
- ["F4E1",0x9143],
- ["F65B",0x9144],
- ["F65C",0x9145],
- ["F65A",0x9146],
- ["F766",0x9147],
- ["C5B0",0x9148],
- ["A8BB",0x9149],
- ["ADAA",0x914A],
- ["ADA9",0x914B],
- ["B075",0x914C],
- ["B074",0x914D],
- ["D440",0x914E],
- ["D441",0x914F],
- ["D3FE",0x9150],
- ["B073",0x9152],
- ["D7F5",0x9153],
- ["D7F6",0x9155],
- ["D7F2",0x9156],
- ["B3A4",0x9157],
- ["D7F3",0x9158],
- ["D7F4",0x915A],
- ["DC5F",0x915F],
- ["DC61",0x9160],
- ["DC5D",0x9161],
- ["DC60",0x9162],
- ["B66F",0x9163],
- ["DC5E",0x9164],
- ["B670",0x9165],
- ["DD73",0x9168],
- ["B955",0x9169],
- ["B954",0x916A],
- ["B953",0x916C],
- ["E0AC",0x916E],
- ["E0AD",0x916F],
- ["E473",0x9172],
- ["E475",0x9173],
- ["BBC6",0x9174],
- ["BBC3",0x9175],
- ["BBC5",0x9177],
- ["BBC4",0x9178],
- ["E474",0x9179],
- ["E472",0x917A],
- ["E861",0x9180],
- ["E85E",0x9181],
- ["E85F",0x9182],
- ["BE4D",0x9183],
- ["E860",0x9184],
- ["E85B",0x9185],
- ["E85C",0x9186],
- ["BE4A",0x9187],
- ["BE4B",0x9189],
- ["E85D",0x918A],
- ["BE4C",0x918B],
- ["EBDB",0x918D],
- ["EBDC",0x918F],
+ ["EBD8",0x9193],
["EBD9",0x9190],
["EBDA",0x9191],
- ["BFF4",0x9192],
- ["EBD8",0x9193],
- ["EEC8",0x9199],
- ["EEC5",0x919A],
- ["EEC7",0x919B],
- ["C1E0",0x919C],
- ["EECB",0x919D],
- ["C1DF",0x919E],
- ["EEC9",0x919F],
- ["EECC",0x91A0],
- ["EECA",0x91A1],
- ["EEC6",0x91A2],
- ["C1DE",0x91A3],
- ["F14F",0x91A5],
- ["F150",0x91A7],
- ["F14E",0x91A8],
- ["F152",0x91AA],
- ["C2E5",0x91AB],
- ["C2E6",0x91AC],
- ["F35F",0x91AD],
- ["C3E7",0x91AE],
- ["F151",0x91AF],
- ["F35E",0x91B0],
- ["C3E6",0x91B1],
- ["F4E5",0x91B2],
- ["F4E6",0x91B3],
- ["C4BF",0x91B4],
- ["F4E4",0x91B5],
- ["F4E3",0x91B7],
- ["F65D",0x91B9],
- ["C548",0x91BA],
- ["F849",0x91BC],
- ["F8C8",0x91BD],
- ["F8C7",0x91BE],
- ["C643",0x91C0],
- ["C65D",0x91C1],
- ["F8C9",0x91C2],
- ["F971",0x91C3],
- ["C66F",0x91C5],
- ["A8BC",0x91C6],
- ["AAF6",0x91C7],
- ["B956",0x91C9],
- ["C4C0",0x91CB],
- ["A8BD",0x91CC],
- ["ADAB",0x91CD],
- ["B3A5",0x91CE],
- ["B671",0x91CF],
- ["C2E7",0x91D0],
- ["AAF7",0x91D1],
- ["D0C1",0x91D3],
- ["D0C0",0x91D4],
- ["D442",0x91D5],
- ["B078",0x91D7],
- ["B076",0x91D8],
- ["B07A",0x91D9],
- ["D444",0x91DA],
- ["B079",0x91DC],
- ["B077",0x91DD],
- ["D443",0x91E2],
- ["B3A8",0x91E3],
- ["D7FC",0x91E4],
- ["B3A7",0x91E6],
- ["B3A9",0x91E7],
- ["D842",0x91E8],
- ["B3AB",0x91E9],
- ["D7FE",0x91EA],
- ["D840",0x91EB],
- ["D7F7",0x91EC],
- ["B3AA",0x91ED],
- ["D843",0x91EE],
- ["D7F9",0x91F1],
- ["D7FA",0x91F3],
- ["D7F8",0x91F4],
- ["B3A6",0x91F5],
- ["D841",0x91F7],
- ["D7FB",0x91F8],
- ["D7FD",0x91F9],
- ["DC6D",0x91FD],
- ["DC6C",0x91FF],
- ["DC6A",0x9200],
- ["DC62",0x9201],
- ["DC71",0x9202],
- ["DC65",0x9203],
- ["DC6F",0x9204],
- ["DC76",0x9205],
- ["DC6E",0x9206],
- ["B679",0x9207],
- ["B675",0x9209],
- ["DC63",0x920A],
- ["DC69",0x920C],
- ["B677",0x920D],
- ["DC68",0x920F],
- ["B678",0x9210],
- ["B67A",0x9211],
- ["DC6B",0x9212],
- ["B672",0x9214],
- ["B673",0x9215],
- ["DC77",0x9216],
- ["DC75",0x9217],
- ["DC74",0x9219],
- ["DC66",0x921A],
- ["DC72",0x921C],
- ["B676",0x921E],
- ["B674",0x9223],
- ["DC73",0x9224],
- ["DC64",0x9225],
- ["DC67",0x9226],
- ["DC70",0x9227],
- ["E4BA",0x922D],
- ["E0B7",0x922E],
- ["E0B0",0x9230],
- ["E0C3",0x9231],
- ["E0CC",0x9232],
- ["E0B3",0x9233],
- ["B961",0x9234],
- ["E0C0",0x9236],
- ["B957",0x9237],
- ["B959",0x9238],
- ["B965",0x9239],
- ["E0B1",0x923A],
- ["B95A",0x923D],
- ["B95C",0x923E],
- ["B966",0x923F],
- ["B95B",0x9240],
- ["B964",0x9245],
- ["E0B9",0x9246],
- ["E0AE",0x9248],
- ["B962",0x9249],
- ["E0B8",0x924A],
- ["B95E",0x924B],
- ["E0CA",0x924C],
- ["B963",0x924D],
- ["E0C8",0x924E],
- ["E0BC",0x924F],
- ["E0C6",0x9250],
- ["B960",0x9251],
- ["E0AF",0x9252],
- ["E0C9",0x9253],
- ["E0C4",0x9254],
- ["E0CB",0x9256],
- ["B958",0x9257],
- ["B967",0x925A],
- ["B95D",0x925B],
- ["E0B5",0x925E],
- ["E0BD",0x9260],
- ["E0C1",0x9261],
- ["E0C5",0x9263],
- ["B95F",0x9264],
- ["E0B4",0x9265],
- ["E0B2",0x9266],
- ["E0BE",0x9267],
- ["E0BB",0x926C],
- ["E0BA",0x926D],
- ["E0BF",0x926F],
- ["E0C2",0x9270],
- ["E0C7",0x9272],
- ["E478",0x9276],
- ["BBC7",0x9278],
- ["E4A4",0x9279],
- ["E47A",0x927A],
- ["BBCC",0x927B],
- ["BBD0",0x927C],
- ["E4AD",0x927D],
- ["E4B5",0x927E],
- ["E4A6",0x927F],
- ["BBC8",0x9280],
- ["E4AA",0x9282],
- ["E0B6",0x9283],
- ["BBC9",0x9285],
- ["E4B1",0x9286],
- ["E4B6",0x9287],
- ["E4AE",0x9288],
- ["E4B0",0x928A],
- ["E4B9",0x928B],
- ["E4B2",0x928C],
- ["E47E",0x928D],
- ["E4A9",0x928E],
- ["BBD1",0x9291],
- ["BBCD",0x9293],
- ["E47C",0x9294],
- ["E4AB",0x9295],
- ["BBCB",0x9296],
- ["E4A5",0x9297],
- ["BBCA",0x9298],
- ["E4B3",0x9299],
- ["E4A2",0x929A],
- ["E479",0x929B],
- ["BBCE",0x929C],
- ["E4B8",0x929D],
- ["E47B",0x92A0],
- ["E4AF",0x92A1],
- ["E4AC",0x92A2],
- ["E4A7",0x92A3],
- ["E477",0x92A4],
- ["E476",0x92A5],
- ["E4A1",0x92A6],
- ["E4B4",0x92A7],
- ["BBCF",0x92A8],
- ["E4B7",0x92A9],
- ["E47D",0x92AA],
- ["E4A3",0x92AB],
- ["BE52",0x92AC],
- ["BE5A",0x92B2],
- ["BE55",0x92B3],
- ["E8A4",0x92B4],
- ["E8A1",0x92B5],
- ["E867",0x92B6],
- ["BE50",0x92B7],
- ["BE4F",0x92BB],
- ["BE56",0x92BC],
- ["E865",0x92C0],
- ["BE54",0x92C1],
- ["E871",0x92C2],
- ["E863",0x92C3],
- ["E864",0x92C4],
- ["BE4E",0x92C5],
- ["E8A3",0x92C6],
- ["BE58",0x92C7],
- ["E874",0x92C8],
- ["E879",0x92C9],
- ["E873",0x92CA],
- ["EBEE",0x92CB],
- ["E86F",0x92CC],
- ["E877",0x92CD],
- ["E875",0x92CE],
- ["E868",0x92CF],
- ["E862",0x92D0],
- ["E87D",0x92D1],
- ["BE57",0x92D2],
- ["E87E",0x92D3],
- ["E878",0x92D5],
- ["E86D",0x92D7],
- ["E86B",0x92D8],
- ["E866",0x92D9],
- ["E86E",0x92DD],
- ["E87B",0x92DE],
- ["E86A",0x92DF],
- ["E87A",0x92E0],
- ["E8A2",0x92E1],
- ["BE53",0x92E4],
- ["E876",0x92E6],
- ["E87C",0x92E7],
- ["E872",0x92E8],
- ["E86C",0x92E9],
- ["BE51",0x92EA],
- ["E4A8",0x92EE],
- ["E870",0x92EF],
- ["BE59",0x92F0],
- ["E869",0x92F1],
- ["EBF4",0x92F7],
- ["BFF7",0x92F8],
- ["EBF3",0x92F9],
- ["EBF0",0x92FA],
- ["EC44",0x92FB],
- ["BFFB",0x92FC],
- ["EC41",0x92FE],
- ["EBF8",0x92FF],
- ["EC43",0x9300],
- ["EBE9",0x9301],
- ["EBF6",0x9302],
- ["BFFD",0x9304],
- ["EBE1",0x9306],
+ ["EBDB",0x918D],
+ ["EBDC",0x918F],
+ ["EBDD",0x9327],
+ ["EBDE",0x931E],
["EBDF",0x9308],
- ["EC42",0x9309],
- ["EC40",0x930B],
- ["EBFE",0x930C],
- ["EBED",0x930D],
- ["EBEC",0x930E],
+ ["EBE0",0x931F],
+ ["EBE1",0x9306],
["EBE2",0x930F],
- ["C040",0x9310],
- ["EBE8",0x9312],
- ["EBF2",0x9313],
- ["EBFD",0x9314],
- ["C043",0x9315],
- ["EC45",0x9316],
- ["C1E8",0x9318],
- ["C045",0x9319],
- ["BFFE",0x931A],
+ ["EBE3",0x937A],
+ ["EBE4",0x9338],
+ ["EBE5",0x933C],
["EBE6",0x931B],
- ["EBEF",0x931D],
- ["EBDE",0x931E],
- ["EBE0",0x931F],
- ["BFF5",0x9320],
- ["C042",0x9321],
- ["BFFA",0x9322],
["EBE7",0x9323],
- ["EBF7",0x9324],
- ["EBF1",0x9325],
- ["C041",0x9326],
- ["EBDD",0x9327],
- ["C1E3",0x9328],
- ["EBF9",0x9329],
- ["EBFC",0x932A],
- ["BFFC",0x932B],
+ ["EBE8",0x9312],
+ ["EBE9",0x9301],
+ ["EBEA",0x9346],
["EBEB",0x932D],
- ["C044",0x932E],
- ["BFF9",0x932F],
- ["BFF8",0x9333],
+ ["EBEC",0x930E],
+ ["EBED",0x930D],
+ ["EBEE",0x92CB],
+ ["EBEF",0x931D],
+ ["EBF0",0x92FA],
+ ["EBF1",0x9325],
+ ["EBF2",0x9313],
+ ["EBF3",0x92F9],
+ ["EBF4",0x92F7],
["EBF5",0x9334],
- ["EBFB",0x9335],
- ["BFF6",0x9336],
- ["EBE4",0x9338],
+ ["EBF6",0x9302],
+ ["EBF7",0x9324],
+ ["EBF8",0x92FF],
+ ["EBF9",0x9329],
["EBFA",0x9339],
- ["EBE5",0x933C],
- ["EBEA",0x9346],
+ ["EBFB",0x9335],
+ ["EBFC",0x932A],
+ ["EBFD",0x9314],
+ ["EBFE",0x930C],
+ ["EC40",0x930B],
+ ["EC41",0x92FE],
+ ["EC42",0x9309],
+ ["EC43",0x9300],
+ ["EC44",0x92FB],
+ ["EC45",0x9316],
+ ["EC46",0x95BC],
+ ["EC47",0x95CD],
+ ["EC48",0x95BE],
+ ["EC49",0x95B9],
+ ["EC4A",0x95BA],
+ ["EC4B",0x95B6],
+ ["EC4C",0x95BF],
+ ["EC4D",0x95B5],
+ ["EC4E",0x95BD],
+ ["EC4F",0x96A9],
+ ["EC50",0x96D4],
+ ["EC51",0x970B],
+ ["EC52",0x9712],
+ ["EC53",0x9710],
+ ["EC54",0x9799],
+ ["EC55",0x9797],
+ ["EC56",0x9794],
+ ["EC57",0x97F0],
+ ["EC58",0x97F8],
+ ["EC59",0x9835],
+ ["EC5A",0x982F],
+ ["EC5B",0x9832],
+ ["EC5C",0x9924],
+ ["EC5D",0x991F],
+ ["EC5E",0x9927],
+ ["EC5F",0x9929],
+ ["EC60",0x999E],
+ ["EC61",0x99EE],
+ ["EC62",0x99EC],
+ ["EC63",0x99E5],
+ ["EC64",0x99E4],
+ ["EC65",0x99F0],
+ ["EC66",0x99E3],
+ ["EC67",0x99EA],
+ ["EC68",0x99E9],
+ ["EC69",0x99E7],
+ ["EC6A",0x9AB9],
+ ["EC6B",0x9ABF],
+ ["EC6C",0x9AB4],
+ ["EC6D",0x9ABB],
+ ["EC6E",0x9AF6],
+ ["EC6F",0x9AFA],
+ ["EC70",0x9AF9],
+ ["EC71",0x9AF7],
+ ["EC72",0x9B33],
+ ["EC73",0x9B80],
+ ["EC74",0x9B85],
+ ["EC75",0x9B87],
+ ["EC76",0x9B7C],
+ ["EC77",0x9B7E],
+ ["EC78",0x9B7B],
+ ["EC79",0x9B82],
+ ["EC7A",0x9B93],
+ ["EC7B",0x9B92],
+ ["EC7C",0x9B90],
+ ["EC7D",0x9B7A],
+ ["EC7E",0x9B95],
+ ["ECA1",0x9B7D],
+ ["ECA2",0x9B88],
+ ["ECA3",0x9D25],
+ ["ECA4",0x9D17],
+ ["ECA5",0x9D20],
+ ["ECA6",0x9D1E],
+ ["ECA7",0x9D14],
+ ["ECA8",0x9D29],
+ ["ECA9",0x9D1D],
+ ["ECAA",0x9D18],
+ ["ECAB",0x9D22],
+ ["ECAC",0x9D10],
+ ["ECAD",0x9D19],
+ ["ECAE",0x9D1F],
+ ["ECAF",0x9E88],
+ ["ECB0",0x9E86],
+ ["ECB1",0x9E87],
+ ["ECB2",0x9EAE],
+ ["ECB3",0x9EAD],
+ ["ECB4",0x9ED5],
+ ["ECB5",0x9ED6],
+ ["ECB6",0x9EFA],
+ ["ECB7",0x9F12],
+ ["ECB8",0x9F3D],
+ ["ECB9",0x5126],
+ ["ECBA",0x5125],
+ ["ECBB",0x5122],
+ ["ECBC",0x5124],
+ ["ECBD",0x5120],
+ ["ECBE",0x5129],
+ ["ECBF",0x52F4],
+ ["ECC0",0x5693],
+ ["ECC1",0x568C],
+ ["ECC2",0x568D],
+ ["ECC3",0x5686],
+ ["ECC4",0x5684],
+ ["ECC5",0x5683],
+ ["ECC6",0x567E],
+ ["ECC7",0x5682],
+ ["ECC8",0x567F],
+ ["ECC9",0x5681],
+ ["ECCA",0x58D6],
+ ["ECCB",0x58D4],
+ ["ECCC",0x58CF],
+ ["ECCD",0x58D2],
+ ["ECCE",0x5B2D],
+ ["ECCF",0x5B25],
+ ["ECD0",0x5B32],
+ ["ECD1",0x5B23],
+ ["ECD2",0x5B2C],
+ ["ECD3",0x5B27],
+ ["ECD4",0x5B26],
+ ["ECD5",0x5B2F],
+ ["ECD6",0x5B2E],
+ ["ECD7",0x5B7B],
+ ["ECD8",0x5BF1],
+ ["ECD9",0x5BF2],
+ ["ECDA",0x5DB7],
+ ["ECDB",0x5E6C],
+ ["ECDC",0x5E6A],
+ ["ECDD",0x5FBE],
+ ["ECDE",0x5FBB],
+ ["ECDF",0x61C3],
+ ["ECE0",0x61B5],
+ ["ECE1",0x61BC],
+ ["ECE2",0x61E7],
+ ["ECE3",0x61E0],
+ ["ECE4",0x61E5],
+ ["ECE5",0x61E4],
+ ["ECE6",0x61E8],
+ ["ECE7",0x61DE],
+ ["ECE8",0x64EF],
+ ["ECE9",0x64E9],
+ ["ECEA",0x64E3],
+ ["ECEB",0x64EB],
+ ["ECEC",0x64E4],
+ ["ECED",0x64E8],
+ ["ECEE",0x6581],
+ ["ECEF",0x6580],
+ ["ECF0",0x65B6],
+ ["ECF1",0x65DA],
+ ["ECF2",0x66D2],
+ ["ECF3",0x6A8D],
+ ["ECF4",0x6A96],
+ ["ECF5",0x6A81],
+ ["ECF6",0x6AA5],
+ ["ECF7",0x6A89],
+ ["ECF8",0x6A9F],
+ ["ECF9",0x6A9B],
+ ["ECFA",0x6AA1],
+ ["ECFB",0x6A9E],
+ ["ECFC",0x6A87],
+ ["ECFD",0x6A93],
+ ["ECFE",0x6A8E],
+ ["ED40",0x6A95],
+ ["ED41",0x6A83],
+ ["ED42",0x6AA8],
+ ["ED43",0x6AA4],
+ ["ED44",0x6A91],
+ ["ED45",0x6A7F],
+ ["ED46",0x6AA6],
+ ["ED47",0x6A9A],
+ ["ED48",0x6A85],
+ ["ED49",0x6A8C],
+ ["ED4A",0x6A92],
+ ["ED4B",0x6B5B],
+ ["ED4C",0x6BAD],
+ ["ED4D",0x6C09],
+ ["ED4E",0x6FCC],
+ ["ED4F",0x6FA9],
+ ["ED50",0x6FF4],
+ ["ED51",0x6FD4],
+ ["ED52",0x6FE3],
+ ["ED53",0x6FDC],
+ ["ED54",0x6FED],
+ ["ED55",0x6FE7],
+ ["ED56",0x6FE6],
+ ["ED57",0x6FDE],
+ ["ED58",0x6FF2],
+ ["ED59",0x6FDD],
+ ["ED5A",0x6FE2],
+ ["ED5B",0x6FE8],
+ ["ED5C",0x71E1],
+ ["ED5D",0x71F1],
+ ["ED5E",0x71E8],
+ ["ED5F",0x71F2],
+ ["ED60",0x71E4],
+ ["ED61",0x71F0],
+ ["ED62",0x71E2],
+ ["ED63",0x7373],
+ ["ED64",0x736E],
+ ["ED65",0x736F],
+ ["ED66",0x7497],
+ ["ED67",0x74B2],
+ ["ED68",0x74AB],
+ ["ED69",0x7490],
+ ["ED6A",0x74AA],
+ ["ED6B",0x74AD],
+ ["ED6C",0x74B1],
+ ["ED6D",0x74A5],
+ ["ED6E",0x74AF],
+ ["ED6F",0x7510],
+ ["ED70",0x7511],
+ ["ED71",0x7512],
+ ["ED72",0x750F],
+ ["ED73",0x7584],
+ ["ED74",0x7643],
+ ["ED75",0x7648],
+ ["ED76",0x7649],
+ ["ED77",0x7647],
+ ["ED78",0x76A4],
+ ["ED79",0x76E9],
+ ["ED7A",0x77B5],
+ ["ED7B",0x77AB],
+ ["ED7C",0x77B2],
+ ["ED7D",0x77B7],
+ ["ED7E",0x77B6],
+ ["EDA1",0x77B4],
+ ["EDA2",0x77B1],
+ ["EDA3",0x77A8],
+ ["EDA4",0x77F0],
+ ["EDA5",0x78F3],
+ ["EDA6",0x78FD],
+ ["EDA7",0x7902],
+ ["EDA8",0x78FB],
+ ["EDA9",0x78FC],
+ ["EDAA",0x78F2],
+ ["EDAB",0x7905],
+ ["EDAC",0x78F9],
+ ["EDAD",0x78FE],
+ ["EDAE",0x7904],
+ ["EDAF",0x79AB],
+ ["EDB0",0x79A8],
+ ["EDB1",0x7A5C],
+ ["EDB2",0x7A5B],
+ ["EDB3",0x7A56],
+ ["EDB4",0x7A58],
+ ["EDB5",0x7A54],
+ ["EDB6",0x7A5A],
+ ["EDB7",0x7ABE],
+ ["EDB8",0x7AC0],
+ ["EDB9",0x7AC1],
+ ["EDBA",0x7C05],
+ ["EDBB",0x7C0F],
+ ["EDBC",0x7BF2],
+ ["EDBD",0x7C00],
+ ["EDBE",0x7BFF],
+ ["EDBF",0x7BFB],
+ ["EDC0",0x7C0E],
+ ["EDC1",0x7BF4],
+ ["EDC2",0x7C0B],
+ ["EDC3",0x7BF3],
+ ["EDC4",0x7C02],
+ ["EDC5",0x7C09],
+ ["EDC6",0x7C03],
+ ["EDC7",0x7C01],
+ ["EDC8",0x7BF8],
+ ["EDC9",0x7BFD],
+ ["EDCA",0x7C06],
+ ["EDCB",0x7BF0],
+ ["EDCC",0x7BF1],
+ ["EDCD",0x7C10],
+ ["EDCE",0x7C0A],
+ ["EDCF",0x7CE8],
+ ["EDD0",0x7E2D],
+ ["EDD1",0x7E3C],
+ ["EDD2",0x7E42],
+ ["EDD3",0x7E33],
+ ["EDD4",0x9848],
+ ["EDD5",0x7E38],
+ ["EDD6",0x7E2A],
+ ["EDD7",0x7E49],
+ ["EDD8",0x7E40],
+ ["EDD9",0x7E47],
+ ["EDDA",0x7E29],
+ ["EDDB",0x7E4C],
+ ["EDDC",0x7E30],
+ ["EDDD",0x7E3B],
+ ["EDDE",0x7E36],
+ ["EDDF",0x7E44],
+ ["EDE0",0x7E3A],
+ ["EDE1",0x7F45],
+ ["EDE2",0x7F7F],
+ ["EDE3",0x7F7E],
+ ["EDE4",0x7F7D],
+ ["EDE5",0x7FF4],
+ ["EDE6",0x7FF2],
+ ["EDE7",0x802C],
+ ["EDE8",0x81BB],
+ ["EDE9",0x81C4],
+ ["EDEA",0x81CC],
+ ["EDEB",0x81CA],
+ ["EDEC",0x81C5],
+ ["EDED",0x81C7],
+ ["EDEE",0x81BC],
+ ["EDEF",0x81E9],
+ ["EDF0",0x825B],
+ ["EDF1",0x825A],
+ ["EDF2",0x825C],
+ ["EDF3",0x8583],
+ ["EDF4",0x8580],
+ ["EDF5",0x858F],
+ ["EDF6",0x85A7],
+ ["EDF7",0x8595],
+ ["EDF8",0x85A0],
+ ["EDF9",0x858B],
+ ["EDFA",0x85A3],
+ ["EDFB",0x857B],
+ ["EDFC",0x85A4],
+ ["EDFD",0x859A],
+ ["EDFE",0x859E],
+ ["EE40",0x8577],
+ ["EE41",0x857C],
+ ["EE42",0x8589],
+ ["EE43",0x85A1],
+ ["EE44",0x857A],
+ ["EE45",0x8578],
+ ["EE46",0x8557],
+ ["EE47",0x858E],
+ ["EE48",0x8596],
+ ["EE49",0x8586],
+ ["EE4A",0x858D],
+ ["EE4B",0x8599],
+ ["EE4C",0x859D],
+ ["EE4D",0x8581],
+ ["EE4E",0x85A2],
+ ["EE4F",0x8582],
+ ["EE50",0x8588],
+ ["EE51",0x8585],
+ ["EE52",0x8579],
+ ["EE53",0x8576],
+ ["EE54",0x8598],
+ ["EE55",0x8590],
+ ["EE56",0x859F],
+ ["EE57",0x8668],
+ ["EE58",0x87BE],
+ ["EE59",0x87AA],
+ ["EE5A",0x87AD],
+ ["EE5B",0x87C5],
+ ["EE5C",0x87B0],
+ ["EE5D",0x87AC],
+ ["EE5E",0x87B9],
+ ["EE5F",0x87B5],
+ ["EE60",0x87BC],
+ ["EE61",0x87AE],
+ ["EE62",0x87C9],
+ ["EE63",0x87C3],
+ ["EE64",0x87C2],
+ ["EE65",0x87CC],
+ ["EE66",0x87B7],
+ ["EE67",0x87AF],
+ ["EE68",0x87C4],
+ ["EE69",0x87CA],
+ ["EE6A",0x87B4],
+ ["EE6B",0x87B6],
+ ["EE6C",0x87BF],
+ ["EE6D",0x87B8],
+ ["EE6E",0x87BD],
+ ["EE6F",0x87DE],
+ ["EE70",0x87B2],
+ ["EE71",0x8935],
+ ["EE72",0x8933],
+ ["EE73",0x893C],
+ ["EE74",0x893E],
+ ["EE75",0x8941],
+ ["EE76",0x8952],
+ ["EE77",0x8937],
+ ["EE78",0x8942],
+ ["EE79",0x89AD],
+ ["EE7A",0x89AF],
+ ["EE7B",0x89AE],
+ ["EE7C",0x89F2],
+ ["EE7D",0x89F3],
+ ["EE7E",0x8B1E],
+ ["EEA1",0x8B18],
+ ["EEA2",0x8B16],
+ ["EEA3",0x8B11],
+ ["EEA4",0x8B05],
+ ["EEA5",0x8B0B],
+ ["EEA6",0x8B22],
+ ["EEA7",0x8B0F],
+ ["EEA8",0x8B12],
+ ["EEA9",0x8B15],
+ ["EEAA",0x8B07],
+ ["EEAB",0x8B0D],
+ ["EEAC",0x8B08],
+ ["EEAD",0x8B06],
+ ["EEAE",0x8B1C],
+ ["EEAF",0x8B13],
+ ["EEB0",0x8B1A],
+ ["EEB1",0x8C4F],
+ ["EEB2",0x8C70],
+ ["EEB3",0x8C72],
+ ["EEB4",0x8C71],
+ ["EEB5",0x8C6F],
+ ["EEB6",0x8C95],
+ ["EEB7",0x8C94],
+ ["EEB8",0x8CF9],
+ ["EEB9",0x8D6F],
+ ["EEBA",0x8E4E],
+ ["EEBB",0x8E4D],
+ ["EEBC",0x8E53],
+ ["EEBD",0x8E50],
+ ["EEBE",0x8E4C],
+ ["EEBF",0x8E47],
+ ["EEC0",0x8F43],
+ ["EEC1",0x8F40],
+ ["EEC2",0x9085],
+ ["EEC3",0x907E],
+ ["EEC4",0x9138],
+ ["EEC5",0x919A],
+ ["EEC6",0x91A2],
+ ["EEC7",0x919B],
+ ["EEC8",0x9199],
+ ["EEC9",0x919F],
+ ["EECA",0x91A1],
+ ["EECB",0x919D],
+ ["EECC",0x91A0],
+ ["EECD",0x93A1],
+ ["EECE",0x9383],
+ ["EECF",0x93AF],
+ ["EED0",0x9364],
+ ["EED1",0x9356],
["EED2",0x9347],
+ ["EED3",0x937C],
+ ["EED4",0x9358],
+ ["EED5",0x935C],
+ ["EED6",0x9376],
["EED7",0x9349],
- ["C1E5",0x934A],
- ["C1E7",0x934B],
- ["EEDD",0x934C],
- ["C1E1",0x934D],
- ["EEEC",0x934E],
- ["EEE3",0x934F],
["EED8",0x9350],
["EED9",0x9351],
- ["EEE2",0x9352],
- ["C1EE",0x9354],
- ["EEE1",0x9355],
- ["EED1",0x9356],
- ["EEE0",0x9357],
- ["EED4",0x9358],
- ["EEED",0x9359],
- ["C1ED",0x935A],
- ["C1EB",0x935B],
- ["EED5",0x935C],
- ["EEE8",0x935E],
["EEDA",0x9360],
- ["EEE7",0x9361],
- ["EEE9",0x9363],
- ["EED0",0x9364],
- ["C1E6",0x9365],
- ["EEEA",0x9367],
- ["EEDE",0x936A],
- ["C1EA",0x936C],
["EEDB",0x936D],
- ["C1EC",0x9370],
+ ["EEDC",0x938F],
+ ["EEDD",0x934C],
+ ["EEDE",0x936A],
+ ["EEDF",0x9379],
+ ["EEE0",0x9357],
+ ["EEE1",0x9355],
+ ["EEE2",0x9352],
+ ["EEE3",0x934F],
["EEE4",0x9371],
- ["C1E4",0x9375],
- ["EED6",0x9376],
["EEE5",0x9377],
- ["EEDF",0x9379],
- ["EBE3",0x937A],
["EEE6",0x937B],
- ["EED3",0x937C],
- ["C1E9",0x937E],
+ ["EEE7",0x9361],
+ ["EEE8",0x935E],
+ ["EEE9",0x9363],
+ ["EEEA",0x9367],
["EEEB",0x9380],
- ["C1E2",0x9382],
- ["EECE",0x9383],
- ["F160",0x9388],
- ["F159",0x9389],
- ["C2E9",0x938A],
- ["F154",0x938C],
- ["F163",0x938D],
- ["F15B",0x938E],
- ["EEDC",0x938F],
- ["F165",0x9391],
- ["F155",0x9392],
- ["C2E8",0x9394],
- ["F15F",0x9395],
- ["C2EA",0x9396],
- ["C2F2",0x9397],
- ["C2F0",0x9398],
- ["F161",0x9399],
- ["C2F1",0x939A],
- ["F157",0x939B],
- ["F158",0x939D],
- ["F15D",0x939E],
- ["F162",0x939F],
- ["EECD",0x93A1],
- ["C2EB",0x93A2],
- ["F16A",0x93A3],
- ["F167",0x93A4],
- ["F16B",0x93A5],
- ["F15E",0x93A6],
- ["F15A",0x93A7],
- ["F168",0x93A8],
- ["F36A",0x93A9],
- ["F15C",0x93AA],
- ["C2EE",0x93AC],
- ["C2ED",0x93AE],
- ["EECF",0x93AF],
- ["C2EF",0x93B0],
- ["F164",0x93B1],
- ["F166",0x93B2],
- ["C2EC",0x93B3],
- ["F169",0x93B4],
- ["F153",0x93B5],
- ["F156",0x93B7],
- ["F373",0x93C0],
- ["F363",0x93C2],
- ["C3EB",0x93C3],
- ["F371",0x93C4],
- ["F361",0x93C7],
- ["C3EC",0x93C8],
- ["F36C",0x93CA],
- ["F368",0x93CC],
- ["C3F1",0x93CD],
- ["F372",0x93CE],
- ["F362",0x93CF],
- ["F365",0x93D0],
- ["C3E9",0x93D1],
- ["F374",0x93D2],
- ["F36D",0x93D4],
- ["F370",0x93D5],
- ["C3EF",0x93D6],
- ["C3F4",0x93D7],
- ["C3F2",0x93D8],
- ["F369",0x93D9],
- ["F364",0x93DA],
- ["C3ED",0x93DC],
- ["C3EE",0x93DD],
- ["F360",0x93DE],
- ["C3EA",0x93DF],
- ["C3E8",0x93E1],
- ["C3F0",0x93E2],
- ["F36F",0x93E3],
- ["C3F3",0x93E4],
- ["F36B",0x93E6],
- ["F375",0x93E7],
- ["C3F5",0x93E8],
- ["F367",0x93EC],
- ["F36E",0x93EE],
- ["F4F3",0x93F5],
- ["F542",0x93F6],
- ["F4F5",0x93F7],
- ["F4FC",0x93F8],
- ["F366",0x93F9],
- ["F4FA",0x93FA],
- ["F4E9",0x93FB],
- ["F540",0x93FC],
- ["C4C3",0x93FD],
- ["F4ED",0x93FE],
- ["F4FE",0x93FF],
- ["F4F4",0x9400],
- ["C4C2",0x9403],
- ["F544",0x9406],
- ["F4F6",0x9407],
- ["F4FB",0x9409],
- ["F4FD",0x940A],
- ["F4E7",0x940B],
- ["F541",0x940C],
- ["F4F2",0x940D],
- ["F4F7",0x940E],
- ["F4EB",0x940F],
- ["F4EF",0x9410],
- ["F543",0x9411],
- ["F4F9",0x9412],
- ["F4E8",0x9413],
- ["F4EC",0x9414],
- ["F4EE",0x9415],
- ["F4F8",0x9416],
- ["C4C1",0x9418],
- ["F4F1",0x9419],
- ["F4EA",0x9420],
- ["F4F0",0x9428],
- ["F661",0x9429],
- ["F666",0x942A],
- ["C54F",0x942B],
- ["F668",0x942C],
- ["C549",0x942E],
- ["F664",0x9430],
- ["F66A",0x9431],
- ["C54E",0x9432],
- ["C54A",0x9433],
- ["C54B",0x9435],
- ["F660",0x9436],
- ["F667",0x9437],
- ["C54D",0x9438],
- ["F665",0x9439],
- ["C54C",0x943A],
- ["F65F",0x943B],
- ["F663",0x943C],
- ["F662",0x943D],
- ["F65E",0x943F],
- ["F669",0x9440],
- ["C5B1",0x9444],
- ["F76D",0x9445],
- ["F770",0x9446],
- ["F76C",0x9447],
- ["F76E",0x9448],
- ["F76F",0x9449],
- ["F769",0x944A],
- ["F76A",0x944B],
- ["F767",0x944C],
- ["F76B",0x944F],
- ["F768",0x9450],
- ["C5B2",0x9451],
- ["C5B3",0x9452],
- ["F84B",0x9455],
- ["F84D",0x9457],
- ["F84C",0x945D],
- ["F84E",0x945E],
- ["C5E0",0x9460],
- ["F84A",0x9462],
- ["C5DF",0x9463],
- ["C5E1",0x9464],
- ["F8CB",0x9468],
- ["F8CC",0x9469],
- ["C644",0x946A],
- ["F8CA",0x946B],
- ["F953",0x946D],
- ["F952",0x946E],
- ["F954",0x946F],
- ["C65F",0x9470],
- ["F955",0x9471],
- ["C65E",0x9472],
- ["F956",0x9473],
- ["F972",0x9474],
- ["F975",0x9475],
- ["F974",0x9476],
- ["C668",0x9477],
- ["F973",0x9478],
- ["C672",0x947C],
- ["C670",0x947D],
- ["C671",0x947E],
- ["C677",0x947F],
- ["F9C0",0x9480],
- ["F9C1",0x9481],
- ["F9BF",0x9482],
- ["F9C9",0x9483],
- ["AAF8",0x9577],
- ["D844",0x957A],
- ["DC78",0x957B],
- ["E8A5",0x957C],
- ["F376",0x957D],
- ["AAF9",0x9580],
- ["ADAC",0x9582],
- ["B07B",0x9583],
- ["D845",0x9586],
- ["D846",0x9588],
- ["B3AC",0x9589],
- ["B67D",0x958B],
- ["DC7A",0x958C],
- ["DC79",0x958D],
- ["B6A3",0x958E],
- ["B67C",0x958F],
- ["DC7B",0x9590],
- ["B67E",0x9591],
- ["B6A2",0x9592],
- ["B6A1",0x9593],
- ["B67B",0x9594],
- ["B968",0x9598],
- ["E0D0",0x959B],
- ["E0CE",0x959C],
- ["E0CF",0x959E],
- ["E0CD",0x959F],
- ["BBD2",0x95A1],
- ["BBD5",0x95A3],
- ["BBD7",0x95A4],
- ["BBD6",0x95A5],
- ["BBD3",0x95A8],
- ["BBD4",0x95A9],
- ["E8A7",0x95AB],
- ["E8A6",0x95AC],
- ["BE5B",0x95AD],
- ["E8A8",0x95AE],
- ["E8A9",0x95B0],
- ["BE5C",0x95B1],
- ["EC4D",0x95B5],
- ["EC4B",0x95B6],
- ["EEF3",0x95B7],
- ["EC49",0x95B9],
- ["EC4A",0x95BA],
- ["C046",0x95BB],
- ["EC46",0x95BC],
- ["EC4E",0x95BD],
- ["EC48",0x95BE],
- ["EC4C",0x95BF],
+ ["EEEC",0x934E],
+ ["EEED",0x9359],
+ ["EEEE",0x95C7],
["EEEF",0x95C0],
+ ["EEF0",0x95C9],
["EEF1",0x95C3],
["EEF2",0x95C5],
- ["C1F3",0x95C6],
- ["EEEE",0x95C7],
- ["C1F2",0x95C8],
- ["EEF0",0x95C9],
- ["C1EF",0x95CA],
- ["C1F0",0x95CB],
- ["C1F1",0x95CC],
- ["EC47",0x95CD],
- ["C2F5",0x95D0],
- ["F16E",0x95D1],
- ["F16C",0x95D2],
- ["F16D",0x95D3],
- ["C2F3",0x95D4],
- ["C2F6",0x95D5],
- ["C2F4",0x95D6],
- ["F377",0x95DA],
- ["F378",0x95DB],
- ["C3F6",0x95DC],
- ["F545",0x95DE],
- ["F547",0x95DF],
- ["F546",0x95E0],
- ["C4C4",0x95E1],
- ["C550",0x95E2],
- ["F66D",0x95E3],
- ["F66C",0x95E4],
- ["F66B",0x95E5],
- ["AAFA",0x961C],
- ["C9AA",0x961E],
- ["CA58",0x9620],
- ["A6E9",0x9621],
- ["CA56",0x9622],
- ["CA59",0x9623],
- ["CA57",0x9624],
- ["CBAE",0x9628],
- ["A8C1",0x962A],
- ["A8C2",0x962C],
- ["CBB0",0x962D],
- ["A8BF",0x962E],
- ["CBAF",0x962F],
- ["CBAD",0x9630],
- ["A8C0",0x9631],
- ["A8BE",0x9632],
- ["CDD8",0x9639],
- ["CDDB",0x963A],
- ["AAFD",0x963B],
- ["CDDA",0x963C],
- ["CDD9",0x963D],
- ["AAFC",0x963F],
- ["AAFB",0x9640],
- ["AB40",0x9642],
- ["CDDC",0x9643],
- ["AAFE",0x9644],
- ["D0C6",0x964A],
- ["ADAE",0x964B],
- ["ADAF",0x964C],
- ["ADB0",0x964D],
- ["D0C7",0x964E],
- ["D0C3",0x964F],
- ["ADAD",0x9650],
- ["D0C4",0x9651],
- ["D0C5",0x9653],
- ["D0C2",0x9654],
- ["B0A4",0x9658],
- ["B0A1",0x965B],
- ["D445",0x965C],
- ["B0A2",0x965D],
- ["B0A5",0x965E],
- ["D446",0x965F],
- ["B07E",0x9661],
- ["B07C",0x9662],
- ["B07D",0x9663],
- ["B0A3",0x9664],
- ["B3AD",0x966A],
- ["D849",0x966B],
- ["B3B5",0x966C],
- ["D848",0x966D],
- ["D84B",0x966F],
- ["B3B1",0x9670],
- ["D84A",0x9671],
- ["B6AB",0x9672],
- ["B3AF",0x9673],
- ["B3B2",0x9674],
- ["B3AE",0x9675],
- ["B3B3",0x9676],
- ["B3B4",0x9677],
- ["B3B0",0x9678],
- ["D847",0x967C],
- ["B6A7",0x967D],
- ["DC7D",0x967E],
- ["DCA3",0x9680],
- ["DCA2",0x9683],
- ["B6AC",0x9684],
- ["B6A8",0x9685],
- ["B6A9",0x9686],
- ["DC7C",0x9687],
- ["DC7E",0x9688],
- ["DCA1",0x9689],
- ["B6A4",0x968A],
- ["B6A6",0x968B],
- ["B6AA",0x968D],
- ["B6A5",0x968E],
- ["E0D3",0x9691],
- ["E0D1",0x9692],
- ["E0D2",0x9693],
- ["B96A",0x9694],
- ["B96B",0x9695],
- ["E0D4",0x9697],
- ["B969",0x9698],
- ["BBD8",0x9699],
- ["BBDA",0x969B],
- ["BBD9",0x969C],
- ["E4BB",0x969E],
- ["E4BC",0x96A1],
- ["E8AB",0x96A2],
- ["E8AA",0x96A4],
- ["C047",0x96A7],
- ["C048",0x96A8],
- ["EC4F",0x96A9],
- ["C049",0x96AA],
- ["EEF6",0x96AC],
+ ["EEF3",0x95B7],
["EEF4",0x96AE],
["EEF5",0x96B0],
- ["C1F4",0x96B1],
- ["F16F",0x96B3],
- ["C3F7",0x96B4],
- ["C1F5",0x96B8],
- ["AB41",0x96B9],
- ["B0A6",0x96BB],
- ["D447",0x96BC],
- ["D84C",0x96BF],
- ["B3B6",0x96C0],
- ["B6AD",0x96C1],
- ["DCA4",0x96C2],
- ["DCA6",0x96C3],
- ["B6AF",0x96C4],
- ["B6AE",0x96C5],
- ["B6B0",0x96C6],
- ["B6B1",0x96C7],
- ["DCA5",0x96C8],
- ["B96E",0x96C9],
- ["B96F",0x96CA],
- ["B96D",0x96CB],
- ["BBDB",0x96CC],
- ["B96C",0x96CD],
- ["E0D5",0x96CE],
- ["BBDC",0x96D2],
- ["E8AC",0x96D3],
- ["EC50",0x96D4],
- ["C04A",0x96D5],
- ["C1F6",0x96D6],
- ["F170",0x96D7],
- ["F174",0x96D8],
- ["C2F9",0x96D9],
- ["F171",0x96DA],
- ["C2FA",0x96DB],
- ["C2F8",0x96DC],
- ["F175",0x96DD],
- ["C2FB",0x96DE],
- ["F173",0x96DF],
- ["F379",0x96E1],
- ["C2F7",0x96E2],
- ["C3F8",0x96E3],
- ["F8CD",0x96E5],
- ["AB42",0x96E8],
- ["B3B8",0x96E9],
- ["B3B7",0x96EA],
- ["B6B2",0x96EF],
- ["DCA8",0x96F0],
- ["DCA7",0x96F1],
- ["B6B3",0x96F2],
- ["E0D9",0x96F5],
- ["B973",0x96F6],
- ["B970",0x96F7],
- ["E0D8",0x96F8],
- ["B972",0x96F9],
- ["E0D6",0x96FA],
- ["B971",0x96FB],
- ["E0D7",0x96FD],
- ["E4BD",0x96FF],
- ["BBDD",0x9700],
- ["E8AF",0x9702],
- ["BE5D",0x9704],
- ["E8AD",0x9705],
- ["BE5E",0x9706],
- ["BE5F",0x9707],
- ["E8AE",0x9708],
- ["BE60",0x9709],
- ["EC51",0x970B],
- ["C04E",0x970D],
- ["C04B",0x970E],
- ["C050",0x970F],
- ["EC53",0x9710],
- ["C04C",0x9711],
- ["EC52",0x9712],
- ["C04F",0x9713],
- ["C04D",0x9716],
+ ["EEF6",0x96AC],
+ ["EEF7",0x9720],
+ ["EEF8",0x971F],
["EEF9",0x9718],
- ["EEFB",0x9719],
- ["C1F7",0x971C],
["EEFA",0x971D],
- ["C1F8",0x971E],
- ["EEF8",0x971F],
- ["EEF7",0x9720],
- ["F177",0x9722],
- ["F176",0x9723],
- ["C2FC",0x9724],
- ["F178",0x9725],
- ["F37E",0x9726],
- ["C3FA",0x9727],
- ["F37D",0x9728],
- ["F37A",0x9729],
- ["C3F9",0x972A],
- ["F37B",0x972B],
- ["F37C",0x972C],
- ["F548",0x972E],
- ["F549",0x972F],
- ["C4C5",0x9730],
- ["C553",0x9732],
- ["F66E",0x9735],
- ["C551",0x9738],
- ["C552",0x9739],
- ["F66F",0x973A],
- ["C5B4",0x973D],
- ["C5B5",0x973E],
- ["F771",0x973F],
- ["C645",0x9742],
- ["F8CF",0x9743],
- ["C647",0x9744],
- ["F8CE",0x9746],
- ["F8D0",0x9747],
- ["C646",0x9748],
- ["F957",0x9749],
- ["F9AD",0x974B],
- ["AB43",0x9752],
- ["B974",0x9756],
- ["E4BE",0x9758],
- ["E8B0",0x975A],
- ["C051",0x975B],
- ["C052",0x975C],
- ["AB44",0x975E],
- ["BE61",0x9760],
- ["C3FB",0x9761],
- ["ADB1",0x9762],
- ["C053",0x9766],
- ["C5E2",0x9768],
- ["ADB2",0x9769],
- ["D84D",0x976A],
- ["DCA9",0x976C],
- ["DCAB",0x976E],
- ["DCAA",0x9770],
- ["E0DD",0x9772],
- ["E0DA",0x9773],
- ["B975",0x9774],
- ["B976",0x9776],
- ["E0DB",0x9777],
- ["E0DC",0x9778],
- ["E4C0",0x977A],
- ["E4C5",0x977B],
- ["BBDE",0x977C],
- ["E4BF",0x977D],
- ["E4C1",0x977E],
- ["E4C8",0x977F],
- ["E4C3",0x9780],
- ["E4C7",0x9781],
- ["E4C4",0x9782],
- ["E4C2",0x9783],
- ["E4C6",0x9784],
- ["BBDF",0x9785],
- ["E8B3",0x9788],
- ["E8B1",0x978A],
- ["BE63",0x978B],
- ["BE62",0x978D],
- ["E8B2",0x978E],
- ["BE64",0x978F],
- ["EC56",0x9794],
- ["EC55",0x9797],
- ["C054",0x9798],
- ["EC54",0x9799],
+ ["EEFB",0x9719],
["EEFC",0x979A],
+ ["EEFD",0x97A1],
["EEFE",0x979C],
- ["EF41",0x979D],
["EF40",0x979E],
- ["C1F9",0x97A0],
- ["EEFD",0x97A1],
- ["F1A1",0x97A2],
- ["C2FD",0x97A3],
- ["F17D",0x97A4],
- ["F1A2",0x97A5],
- ["C2FE",0x97A6],
- ["F17B",0x97A8],
- ["F17E",0x97AA],
- ["F17C",0x97AB],
- ["F179",0x97AC],
- ["C340",0x97AD],
- ["F17A",0x97AE],
- ["F3A1",0x97B3],
- ["F3A3",0x97B6],
- ["F3A2",0x97B7],
- ["F54A",0x97B9],
- ["F54B",0x97BB],
- ["F670",0x97BF],
- ["C5B7",0x97C1],
- ["C5B6",0x97C3],
- ["F84F",0x97C4],
- ["F850",0x97C5],
- ["C648",0x97C6],
- ["F8D1",0x97C7],
- ["C669",0x97C9],
- ["ADB3",0x97CB],
- ["B6B4",0x97CC],
- ["E4CA",0x97CD],
- ["E4C9",0x97CE],
- ["E8B5",0x97CF],
- ["E8B4",0x97D0],
- ["C1FA",0x97D3],
- ["EF43",0x97D4],
+ ["EF41",0x979D],
["EF42",0x97D5],
- ["F1A5",0x97D6],
- ["F1A3",0x97D7],
- ["F1A6",0x97D8],
- ["F1A4",0x97D9],
- ["C3FC",0x97DC],
- ["F3A4",0x97DD],
- ["F3A5",0x97DE],
- ["F3A6",0x97DF],
- ["F671",0x97E1],
- ["F772",0x97E3],
- ["F8D2",0x97E5],
- ["ADB4",0x97ED],
- ["EC57",0x97F0],
+ ["EF43",0x97D4],
["EF44",0x97F1],
- ["ADB5",0x97F3],
- ["BBE0",0x97F6],
- ["EC58",0x97F8],
- ["C341",0x97F9],
- ["F1A7",0x97FA],
- ["C3FD",0x97FB],
- ["F54C",0x97FD],
- ["F54D",0x97FE],
- ["C554",0x97FF],
- ["F851",0x9800],
- ["ADB6",0x9801],
- ["B3BB",0x9802],
- ["B3BC",0x9803],
- ["D84E",0x9804],
- ["B6B5",0x9805],
- ["B6B6",0x9806],
- ["DCAC",0x9807],
- ["B6B7",0x9808],
- ["B97A",0x980A],
- ["B97C",0x980C],
- ["E0DF",0x980D],
- ["E0E0",0x980E],
- ["E0DE",0x980F],
- ["B977",0x9810],
- ["B978",0x9811],
- ["B97B",0x9812],
- ["B979",0x9813],
- ["E4CB",0x9816],
- ["BBE1",0x9817],
- ["BBE2",0x9818],
- ["E8BC",0x981B],
- ["BE67",0x981C],
- ["E8B7",0x981D],
- ["E8B6",0x981E],
- ["E8BB",0x9820],
- ["BE65",0x9821],
- ["C05B",0x9824],
- ["E8B8",0x9826],
- ["E8BD",0x9827],
- ["E8BA",0x9828],
- ["E8B9",0x9829],
- ["BE66",0x982B],
- ["C059",0x982D],
- ["EC5A",0x982F],
- ["C055",0x9830],
- ["EC5B",0x9832],
- ["EC59",0x9835],
- ["C058",0x9837],
- ["C056",0x9838],
- ["C05A",0x9839],
- ["C057",0x983B],
["EF45",0x9841],
- ["EF4A",0x9843],
["EF46",0x9844],
- ["EF49",0x9845],
- ["C1FB",0x9846],
- ["EDD4",0x9848],
- ["EF48",0x9849],
["EF47",0x984A],
- ["C344",0x984C],
- ["C342",0x984D],
- ["C345",0x984E],
- ["C343",0x984F],
- ["F1A8",0x9850],
- ["F1A9",0x9851],
- ["F1AA",0x9852],
- ["C346",0x9853],
- ["F3AA",0x9857],
- ["C440",0x9858],
- ["F3A8",0x9859],
- ["C441",0x985B],
- ["F3A7",0x985C],
- ["F3A9",0x985D],
- ["C3FE",0x985E],
- ["F551",0x985F],
- ["F54E",0x9860],
- ["F54F",0x9862],
- ["F550",0x9863],
- ["F672",0x9864],
- ["C556",0x9865],
- ["C555",0x9867],
- ["F774",0x9869],
- ["F773",0x986A],
- ["C5B8",0x986B],
- ["C5E3",0x986F],
- ["C649",0x9870],
- ["C660",0x9871],
- ["F958",0x9872],
- ["F9AE",0x9873],
- ["F9AF",0x9874],
- ["ADB7",0x98A8],
- ["DCAD",0x98A9],
- ["E0E1",0x98AC],
- ["E4CC",0x98AD],
- ["E4CD",0x98AE],
- ["BBE3",0x98AF],
- ["BBE4",0x98B1],
- ["E8BE",0x98B2],
- ["BE68",0x98B3],
- ["C1FC",0x98B6],
- ["F1AB",0x98B8],
- ["C347",0x98BA],
- ["F3AD",0x98BB],
- ["C442",0x98BC],
- ["F3AC",0x98BD],
- ["F3AE",0x98BE],
- ["F3AB",0x98BF],
- ["F675",0x98C0],
- ["F552",0x98C1],
- ["F553",0x98C2],
- ["C4C6",0x98C4],
- ["F674",0x98C6],
- ["F673",0x98C9],
- ["F775",0x98CB],
- ["F9B0",0x98CC],
- ["ADB8",0x98DB],
- ["ADB9",0x98DF],
- ["B0A7",0x98E2],
- ["D448",0x98E3],
- ["D84F",0x98E5],
- ["B6B8",0x98E7],
- ["B6BB",0x98E9],
- ["B6B9",0x98EA],
- ["DCAE",0x98EB],
- ["B6BD",0x98ED],
- ["B6BA",0x98EF],
- ["B6BC",0x98F2],
- ["B97E",0x98F4],
- ["E0E2",0x98F6],
- ["E0E3",0x98F9],
- ["E8C0",0x98FA],
- ["B97D",0x98FC],
- ["B9A1",0x98FD],
- ["B9A2",0x98FE],
- ["E4CF",0x9900],
- ["E4CE",0x9902],
- ["BBE5",0x9903],
- ["BBE6",0x9905],
- ["E4D0",0x9907],
- ["E8BF",0x9908],
- ["BBE8",0x9909],
- ["BE69",0x990A],
- ["BBE7",0x990C],
- ["C05C",0x9910],
- ["E8C1",0x9911],
- ["BE6B",0x9912],
- ["BE6A",0x9913],
- ["E8C2",0x9914],
- ["E8C5",0x9915],
- ["E8C3",0x9916],
- ["E8C4",0x9917],
- ["BE6C",0x9918],
- ["C061",0x991A],
- ["C05F",0x991B],
- ["C05E",0x991E],
- ["EC5D",0x991F],
- ["C060",0x9921],
- ["EC5C",0x9924],
+ ["EF48",0x9849],
+ ["EF49",0x9845],
+ ["EF4A",0x9843],
["EF4B",0x9925],
- ["EC5E",0x9927],
- ["C05D",0x9928],
- ["EC5F",0x9929],
- ["EF4E",0x992A],
["EF4C",0x992B],
["EF4D",0x992C],
- ["EF52",0x992D],
- ["C34B",0x992E],
+ ["EF4E",0x992A],
+ ["EF4F",0x9933],
+ ["EF50",0x9932],
["EF51",0x992F],
- ["EF54",0x9930],
+ ["EF52",0x992D],
["EF53",0x9931],
- ["EF50",0x9932],
- ["EF4F",0x9933],
- ["C1FD",0x9935],
- ["F1AE",0x993A],
- ["F1AD",0x993C],
- ["C34A",0x993D],
- ["C348",0x993E],
- ["C349",0x993F],
- ["F1AC",0x9941],
- ["F3B1",0x9943],
- ["C443",0x9945],
- ["F3B0",0x9947],
- ["F3AF",0x9948],
- ["C444",0x9949],
- ["F558",0x994B],
- ["F557",0x994C],
- ["F555",0x994E],
- ["F554",0x9950],
- ["C4C8",0x9951],
- ["C4C7",0x9952],
- ["F559",0x9953],
- ["F776",0x9954],
- ["C5B9",0x9955],
- ["F677",0x9956],
- ["C557",0x9957],
- ["F676",0x9958],
- ["F556",0x9959],
- ["F777",0x995B],
- ["C5E4",0x995C],
- ["C661",0x995E],
- ["F959",0x995F],
- ["F9B1",0x9961],
- ["ADBA",0x9996],
- ["D850",0x9997],
+ ["EF54",0x9930],
["EF55",0x9998],
- ["ADBB",0x9999],
- ["E4D2",0x999C],
- ["E4D1",0x999D],
- ["EC60",0x999E],
- ["EF57",0x99A1],
["EF56",0x99A3],
- ["C34C",0x99A5],
- ["F3B2",0x99A6],
- ["F3B3",0x99A7],
- ["C4C9",0x99A8],
- ["F9B2",0x99AB],
- ["B0A8",0x99AC],
- ["B6BF",0x99AD],
- ["B6BE",0x99AE],
- ["E0E4",0x99AF],
- ["E0E6",0x99B0],
- ["B9A4",0x99B1],
- ["E0E5",0x99B2],
- ["B9A3",0x99B3],
- ["B9A5",0x99B4],
- ["E0E7",0x99B5],
- ["E4D4",0x99B9],
- ["E4D6",0x99BA],
- ["E4D5",0x99BB],
- ["E4D8",0x99BD],
- ["BBE9",0x99C1],
- ["E4D7",0x99C2],
- ["E4D3",0x99C3],
- ["E4D9",0x99C7],
- ["E8CC",0x99C9],
- ["E8CF",0x99CB],
- ["E8D1",0x99CC],
- ["E8C7",0x99CD],
- ["E8CB",0x99CE],
- ["E8C8",0x99CF],
- ["BE6E",0x99D0],
- ["BE71",0x99D1],
- ["BE73",0x99D2],
- ["E8C9",0x99D3],
- ["E8CA",0x99D4],
- ["BE72",0x99D5],
- ["E8CD",0x99D6],
- ["E8D0",0x99D7],
- ["E8CE",0x99D8],
- ["BE74",0x99D9],
- ["BE70",0x99DB],
- ["E8C6",0x99DC],
- ["BE6D",0x99DD],
- ["BE6F",0x99DF],
- ["C063",0x99E2],
- ["EC66",0x99E3],
- ["EC64",0x99E4],
- ["EC63",0x99E5],
- ["EC69",0x99E7],
- ["EC68",0x99E9],
- ["EC67",0x99EA],
- ["EC62",0x99EC],
- ["C062",0x99ED],
- ["EC61",0x99EE],
- ["EC65",0x99F0],
- ["C064",0x99F1],
+ ["EF57",0x99A1],
+ ["EF58",0x9A02],
+ ["EF59",0x99FA],
["EF5A",0x99F4],
- ["EF5E",0x99F6],
["EF5B",0x99F7],
- ["EF5D",0x99F8],
["EF5C",0x99F9],
- ["EF59",0x99FA],
+ ["EF5D",0x99F8],
+ ["EF5E",0x99F6],
["EF5F",0x99FB],
- ["EF62",0x99FC],
["EF60",0x99FD],
["EF61",0x99FE],
- ["C240",0x99FF],
- ["C1FE",0x9A01],
- ["EF58",0x9A02],
+ ["EF62",0x99FC],
["EF63",0x9A03],
- ["F1B3",0x9A04],
- ["F1B6",0x9A05],
- ["F1B8",0x9A06],
- ["F1B7",0x9A07],
- ["F1B1",0x9A09],
- ["F1B5",0x9A0A],
- ["F1B0",0x9A0B],
- ["F1B2",0x9A0D],
- ["C34D",0x9A0E],
- ["F1AF",0x9A0F],
- ["F1B4",0x9A11],
- ["F3C0",0x9A14],
- ["F3B5",0x9A15],
- ["C445",0x9A16],
- ["C446",0x9A19],
- ["F3B4",0x9A1A],
- ["F3B9",0x9A1B],
- ["F3BF",0x9A1C],
- ["F3B7",0x9A1D],
- ["F3BE",0x9A1E],
- ["F3BB",0x9A20],
- ["F3BA",0x9A22],
- ["F3BD",0x9A23],
- ["F3B8",0x9A24],
- ["F3B6",0x9A25],
- ["F3BC",0x9A27],
- ["F560",0x9A29],
- ["F55E",0x9A2A],
- ["C4CA",0x9A2B],
- ["F55D",0x9A2C],
- ["F563",0x9A2D],
- ["F561",0x9A2E],
- ["C4CB",0x9A30],
- ["F55C",0x9A31],
- ["F55A",0x9A32],
- ["F55B",0x9A34],
- ["C4CD",0x9A35],
- ["F55F",0x9A36],
- ["C4CC",0x9A37],
- ["F562",0x9A38],
- ["F678",0x9A39],
- ["F67E",0x9A3A],
- ["F679",0x9A3D],
- ["C55B",0x9A3E],
- ["F6A1",0x9A3F],
- ["C55A",0x9A40],
- ["F67D",0x9A41],
- ["F67C",0x9A42],
- ["C559",0x9A43],
- ["F67B",0x9A44],
- ["C558",0x9A45],
- ["F67A",0x9A46],
- ["F77D",0x9A48],
- ["F7A1",0x9A49],
- ["F77E",0x9A4A],
- ["F77B",0x9A4C],
- ["C5BB",0x9A4D],
- ["F778",0x9A4E],
- ["F77C",0x9A4F],
- ["F7A3",0x9A50],
- ["F7A2",0x9A52],
- ["F779",0x9A53],
- ["F77A",0x9A54],
- ["C5BA",0x9A55],
- ["F852",0x9A56],
- ["C5E7",0x9A57],
- ["F853",0x9A59],
- ["C5E5",0x9A5A],
- ["C5E6",0x9A5B],
- ["F8D3",0x9A5E],
- ["C64A",0x9A5F],
- ["F976",0x9A60],
- ["C66A",0x9A62],
- ["F9B3",0x9A64],
- ["C66B",0x9A65],
- ["F9B4",0x9A66],
- ["F9B5",0x9A67],
- ["F9C3",0x9A68],
- ["F9C2",0x9A69],
- ["C67A",0x9A6A],
- ["F9CD",0x9A6B],
- ["B0A9",0x9AA8],
- ["E0E9",0x9AAB],
- ["E0E8",0x9AAD],
- ["BBEA",0x9AAF],
- ["BBEB",0x9AB0],
- ["E4DA",0x9AB1],
- ["E8D2",0x9AB3],
- ["EC6C",0x9AB4],
- ["BE75",0x9AB7],
- ["C065",0x9AB8],
- ["EC6A",0x9AB9],
- ["EC6D",0x9ABB],
- ["C066",0x9ABC],
["EF64",0x9ABE],
- ["EC6B",0x9ABF],
- ["F1B9",0x9AC0],
- ["C34E",0x9AC1],
- ["F3C1",0x9AC2],
- ["F566",0x9AC6],
- ["F564",0x9AC7],
- ["F565",0x9ACA],
- ["F6A2",0x9ACD],
- ["C55C",0x9ACF],
- ["F7A4",0x9AD0],
- ["C5EA",0x9AD1],
- ["C5BC",0x9AD2],
- ["C5E8",0x9AD3],
- ["C5E9",0x9AD4],
- ["F8D4",0x9AD5],
- ["C662",0x9AD6],
- ["B0AA",0x9AD8],
- ["F1BA",0x9ADC],
- ["D449",0x9ADF],
- ["B9A6",0x9AE1],
- ["E4DB",0x9AE3],
- ["BBEC",0x9AE6],
- ["E4DC",0x9AE7],
- ["E8D4",0x9AEB],
- ["E8D3",0x9AEC],
- ["C068",0x9AED],
- ["BE76",0x9AEE],
- ["BE77",0x9AEF],
- ["E8D7",0x9AF1],
- ["E8D6",0x9AF2],
- ["E8D5",0x9AF3],
- ["EC6E",0x9AF6],
- ["EC71",0x9AF7],
- ["EC70",0x9AF9],
- ["EC6F",0x9AFA],
- ["C067",0x9AFB],
- ["EF68",0x9AFC],
- ["EF66",0x9AFD],
["EF65",0x9AFE],
+ ["EF66",0x9AFD],
["EF67",0x9B01],
- ["C34F",0x9B03],
- ["F1BC",0x9B04],
- ["F1BD",0x9B05],
- ["C350",0x9B06],
- ["F1BB",0x9B08],
- ["F3C3",0x9B0A],
- ["F3C2",0x9B0B],
- ["F3C5",0x9B0C],
- ["C447",0x9B0D],
- ["F3C4",0x9B0E],
- ["F567",0x9B10],
- ["F569",0x9B11],
- ["F568",0x9B12],
- ["F6A3",0x9B15],
- ["F6A6",0x9B16],
- ["F6A4",0x9B17],
- ["F6A5",0x9B18],
- ["F7A5",0x9B19],
- ["C5BD",0x9B1A],
- ["F854",0x9B1E],
- ["F855",0x9B1F],
- ["F856",0x9B20],
- ["C64B",0x9B22],
- ["C663",0x9B23],
- ["F9B6",0x9B24],
- ["B0AB",0x9B25],
- ["BE78",0x9B27],
- ["C069",0x9B28],
- ["F1BE",0x9B29],
- ["F7A6",0x9B2B],
- ["F9C4",0x9B2E],
- ["D44A",0x9B2F],
- ["C67B",0x9B31],
- ["B0AC",0x9B32],
- ["EC72",0x9B33],
- ["F1BF",0x9B35],
- ["F3C6",0x9B37],
- ["F6A7",0x9B3A],
- ["F7A7",0x9B3B],
- ["B0AD",0x9B3C],
- ["E4DD",0x9B3E],
- ["E4DE",0x9B3F],
- ["BBED",0x9B41],
- ["BBEE",0x9B42],
- ["E8D9",0x9B43],
- ["BE7A",0x9B44],
- ["BE79",0x9B45],
- ["E8D8",0x9B46],
+ ["EF68",0x9AFC],
["EF69",0x9B48],
- ["F1C0",0x9B4A],
- ["F1C2",0x9B4B],
- ["F1C1",0x9B4C],
- ["C353",0x9B4D],
- ["C352",0x9B4E],
- ["C351",0x9B4F],
- ["C55E",0x9B51],
- ["F6A8",0x9B52],
- ["C55D",0x9B54],
- ["F7A9",0x9B55],
- ["F7A8",0x9B56],
- ["C64C",0x9B58],
- ["F8D5",0x9B59],
- ["B3BD",0x9B5A],
- ["E0EA",0x9B5B],
- ["E4E1",0x9B5F],
- ["E4DF",0x9B60],
- ["E4E0",0x9B61],
- ["E8E2",0x9B64],
- ["E8DD",0x9B66],
- ["E8DA",0x9B67],
- ["E8E1",0x9B68],
- ["E8E3",0x9B6C],
- ["BE7C",0x9B6F],
- ["E8E0",0x9B70],
- ["E8DC",0x9B71],
- ["E8DB",0x9B74],
- ["E8DF",0x9B75],
- ["E8DE",0x9B76],
- ["BE7B",0x9B77],
- ["EC7D",0x9B7A],
- ["EC78",0x9B7B],
- ["EC76",0x9B7C],
- ["ECA1",0x9B7D],
- ["EC77",0x9B7E],
- ["EC73",0x9B80],
- ["EC79",0x9B82],
- ["EC74",0x9B85],
- ["EF72",0x9B86],
- ["EC75",0x9B87],
- ["ECA2",0x9B88],
- ["EC7C",0x9B90],
- ["C06A",0x9B91],
- ["EC7B",0x9B92],
- ["EC7A",0x9B93],
- ["EC7E",0x9B95],
["EF6A",0x9B9A],
- ["EF6D",0x9B9B],
+ ["EF6B",0x9BA8],
["EF6C",0x9B9E],
- ["EF74",0x9BA0],
+ ["EF6D",0x9B9B],
+ ["EF6E",0x9BA6],
["EF6F",0x9BA1],
- ["EF73",0x9BA2],
- ["EF71",0x9BA4],
["EF70",0x9BA5],
- ["EF6E",0x9BA6],
- ["EF6B",0x9BA8],
- ["C243",0x9BAA],
- ["C242",0x9BAB],
- ["C244",0x9BAD],
- ["C241",0x9BAE],
+ ["EF71",0x9BA4],
+ ["EF72",0x9B86],
+ ["EF73",0x9BA2],
+ ["EF74",0x9BA0],
["EF75",0x9BAF],
- ["F1C8",0x9BB5],
- ["F1CB",0x9BB6],
- ["F1C9",0x9BB8],
- ["F1CD",0x9BB9],
- ["F1CE",0x9BBD],
- ["F1C6",0x9BBF],
- ["C358",0x9BC0],
- ["F1C7",0x9BC1],
- ["F1C5",0x9BC3],
- ["F1CC",0x9BC4],
- ["F1C4",0x9BC6],
- ["F1C3",0x9BC7],
- ["C357",0x9BC8],
- ["C355",0x9BC9],
- ["C354",0x9BCA],
- ["F1CA",0x9BD3],
- ["F3CF",0x9BD4],
- ["F3D5",0x9BD5],
- ["C44A",0x9BD6],
- ["F3D0",0x9BD7],
- ["F3D3",0x9BD9],
- ["F3D7",0x9BDA],
- ["C44B",0x9BDB],
- ["F3D2",0x9BDC],
- ["F3CA",0x9BDE],
- ["F3C9",0x9BE0],
- ["F3D6",0x9BE1],
- ["F3CD",0x9BE2],
- ["F3CB",0x9BE4],
- ["F3D4",0x9BE5],
- ["F3CC",0x9BE6],
- ["C449",0x9BE7],
- ["C448",0x9BE8],
- ["F3C7",0x9BEA],
- ["F3C8",0x9BEB],
- ["F3D1",0x9BEC],
- ["F3CE",0x9BF0],
- ["F56C",0x9BF7],
- ["F56F",0x9BF8],
- ["C356",0x9BFD],
- ["F56D",0x9C05],
- ["F573",0x9C06],
- ["F571",0x9C07],
- ["F56B",0x9C08],
- ["F576",0x9C09],
- ["F56A",0x9C0B],
- ["C4CF",0x9C0D],
- ["F572",0x9C0E],
- ["F56E",0x9C12],
- ["C4CE",0x9C13],
- ["F575",0x9C14],
- ["F574",0x9C17],
- ["F6AB",0x9C1C],
- ["F6AA",0x9C1D],
- ["F6B1",0x9C21],
- ["F6AD",0x9C23],
- ["F6B0",0x9C24],
- ["C560",0x9C25],
- ["F6AE",0x9C28],
- ["F6AF",0x9C29],
- ["F6A9",0x9C2B],
- ["F6AC",0x9C2C],
- ["C55F",0x9C2D],
- ["C5BF",0x9C31],
- ["F7B4",0x9C32],
- ["F7AF",0x9C33],
- ["F7B3",0x9C34],
- ["F7B6",0x9C36],
- ["F7B2",0x9C37],
- ["F7AE",0x9C39],
- ["C5C1",0x9C3B],
- ["F7B1",0x9C3C],
- ["F7B5",0x9C3D],
- ["C5C0",0x9C3E],
- ["F7AC",0x9C3F],
- ["F570",0x9C40],
- ["F7B0",0x9C41],
- ["F7AD",0x9C44],
- ["F7AA",0x9C46],
- ["F7AB",0x9C48],
- ["C5BE",0x9C49],
- ["F85A",0x9C4A],
- ["F85C",0x9C4B],
- ["F85F",0x9C4C],
- ["F85B",0x9C4D],
- ["F860",0x9C4E],
- ["F859",0x9C50],
- ["F857",0x9C52],
- ["C5EB",0x9C54],
- ["F85D",0x9C55],
- ["C5ED",0x9C56],
- ["C5EC",0x9C57],
- ["F858",0x9C58],
- ["F85E",0x9C59],
- ["F8DA",0x9C5E],
- ["C64D",0x9C5F],
- ["F8DB",0x9C60],
- ["F8D9",0x9C62],
- ["F8D6",0x9C63],
- ["F8D8",0x9C66],
- ["F8D7",0x9C67],
- ["F95A",0x9C68],
- ["F95C",0x9C6D],
- ["F95B",0x9C6E],
- ["F979",0x9C71],
- ["F978",0x9C73],
- ["F977",0x9C74],
- ["F97A",0x9C75],
- ["C673",0x9C77],
- ["C674",0x9C78],
- ["F9CA",0x9C79],
- ["F9CE",0x9C7A],
- ["B3BE",0x9CE5],
- ["DCAF",0x9CE6],
- ["E0ED",0x9CE7],
- ["B9A7",0x9CE9],
- ["E0EB",0x9CEA],
- ["E0EC",0x9CED],
- ["E4E2",0x9CF1],
- ["E4E3",0x9CF2],
- ["BBF1",0x9CF3],
- ["BBEF",0x9CF4],
- ["E4E4",0x9CF5],
- ["BBF0",0x9CF6],
- ["E8E8",0x9CF7],
- ["E8EB",0x9CF9],
- ["E8E5",0x9CFA],
- ["E8EC",0x9CFB],
- ["E8E4",0x9CFC],
- ["E8E6",0x9CFD],
- ["E8E7",0x9CFF],
- ["E8EA",0x9D00],
- ["BEA1",0x9D03],
- ["E8EF",0x9D04],
- ["E8EE",0x9D05],
- ["BE7D",0x9D06],
- ["E8E9",0x9D07],
- ["E8ED",0x9D08],
- ["BE7E",0x9D09],
- ["ECAC",0x9D10],
- ["C06F",0x9D12],
- ["ECA7",0x9D14],
- ["C06B",0x9D15],
- ["ECA4",0x9D17],
- ["ECAA",0x9D18],
- ["ECAD",0x9D19],
- ["C070",0x9D1B],
- ["ECA9",0x9D1D],
- ["ECA6",0x9D1E],
- ["ECAE",0x9D1F],
- ["ECA5",0x9D20],
- ["ECAB",0x9D22],
- ["C06C",0x9D23],
- ["ECA3",0x9D25],
- ["C06D",0x9D26],
- ["C06E",0x9D28],
- ["ECA8",0x9D29],
- ["EFA9",0x9D2D],
+ ["EF76",0x9D33],
+ ["EF77",0x9D41],
+ ["EF78",0x9D67],
+ ["EF79",0x9D36],
["EF7A",0x9D2E],
["EF7B",0x9D2F],
- ["EF7E",0x9D30],
["EF7C",0x9D31],
- ["EF76",0x9D33],
- ["EF79",0x9D36],
- ["EFA5",0x9D37],
["EF7D",0x9D38],
- ["C245",0x9D3B],
- ["EFA7",0x9D3D],
- ["EFA4",0x9D3E],
- ["C246",0x9D3F],
- ["EFA6",0x9D40],
- ["EF77",0x9D41],
+ ["EF7E",0x9D30],
+ ["EFA1",0x9D45],
["EFA2",0x9D42],
["EFA3",0x9D43],
- ["EFA1",0x9D45],
+ ["EFA4",0x9D3E],
+ ["EFA5",0x9D37],
+ ["EFA6",0x9D40],
+ ["EFA7",0x9D3D],
+ ["EFA8",0x7FF5],
+ ["EFA9",0x9D2D],
+ ["EFAA",0x9E8A],
+ ["EFAB",0x9E89],
+ ["EFAC",0x9E8D],
+ ["EFAD",0x9EB0],
+ ["EFAE",0x9EC8],
+ ["EFAF",0x9EDA],
+ ["EFB0",0x9EFB],
+ ["EFB1",0x9EFF],
+ ["EFB2",0x9F24],
+ ["EFB3",0x9F23],
+ ["EFB4",0x9F22],
+ ["EFB5",0x9F54],
+ ["EFB6",0x9FA0],
+ ["EFB7",0x5131],
+ ["EFB8",0x512D],
+ ["EFB9",0x512E],
+ ["EFBA",0x5698],
+ ["EFBB",0x569C],
+ ["EFBC",0x5697],
+ ["EFBD",0x569A],
+ ["EFBE",0x569D],
+ ["EFBF",0x5699],
+ ["EFC0",0x5970],
+ ["EFC1",0x5B3C],
+ ["EFC2",0x5C69],
+ ["EFC3",0x5C6A],
+ ["EFC4",0x5DC0],
+ ["EFC5",0x5E6D],
+ ["EFC6",0x5E6E],
+ ["EFC7",0x61D8],
+ ["EFC8",0x61DF],
+ ["EFC9",0x61ED],
+ ["EFCA",0x61EE],
+ ["EFCB",0x61F1],
+ ["EFCC",0x61EA],
+ ["EFCD",0x61F0],
+ ["EFCE",0x61EB],
+ ["EFCF",0x61D6],
+ ["EFD0",0x61E9],
+ ["EFD1",0x64FF],
+ ["EFD2",0x6504],
+ ["EFD3",0x64FD],
+ ["EFD4",0x64F8],
+ ["EFD5",0x6501],
+ ["EFD6",0x6503],
+ ["EFD7",0x64FC],
+ ["EFD8",0x6594],
+ ["EFD9",0x65DB],
+ ["EFDA",0x66DA],
+ ["EFDB",0x66DB],
+ ["EFDC",0x66D8],
+ ["EFDD",0x6AC5],
+ ["EFDE",0x6AB9],
+ ["EFDF",0x6ABD],
+ ["EFE0",0x6AE1],
+ ["EFE1",0x6AC6],
+ ["EFE2",0x6ABA],
+ ["EFE3",0x6AB6],
+ ["EFE4",0x6AB7],
+ ["EFE5",0x6AC7],
+ ["EFE6",0x6AB4],
+ ["EFE7",0x6AAD],
+ ["EFE8",0x6B5E],
+ ["EFE9",0x6BC9],
+ ["EFEA",0x6C0B],
+ ["EFEB",0x7007],
+ ["EFEC",0x700C],
+ ["EFED",0x700D],
+ ["EFEE",0x7001],
+ ["EFEF",0x7005],
+ ["EFF0",0x7014],
+ ["EFF1",0x700E],
+ ["EFF2",0x6FFF],
+ ["EFF3",0x7000],
+ ["EFF4",0x6FFB],
+ ["EFF5",0x7026],
+ ["EFF6",0x6FFC],
+ ["EFF7",0x6FF7],
+ ["EFF8",0x700A],
+ ["EFF9",0x7201],
+ ["EFFA",0x71FF],
+ ["EFFB",0x71F9],
+ ["EFFC",0x7203],
+ ["EFFD",0x71FD],
+ ["EFFE",0x7376],
+ ["F040",0x74B8],
+ ["F041",0x74C0],
+ ["F042",0x74B5],
+ ["F043",0x74C1],
+ ["F044",0x74BE],
+ ["F045",0x74B6],
+ ["F046",0x74BB],
+ ["F047",0x74C2],
+ ["F048",0x7514],
+ ["F049",0x7513],
+ ["F04A",0x765C],
+ ["F04B",0x7664],
+ ["F04C",0x7659],
+ ["F04D",0x7650],
+ ["F04E",0x7653],
+ ["F04F",0x7657],
+ ["F050",0x765A],
+ ["F051",0x76A6],
+ ["F052",0x76BD],
+ ["F053",0x76EC],
+ ["F054",0x77C2],
+ ["F055",0x77BA],
+ ["F056",0x78FF],
+ ["F057",0x790C],
+ ["F058",0x7913],
+ ["F059",0x7914],
+ ["F05A",0x7909],
+ ["F05B",0x7910],
+ ["F05C",0x7912],
+ ["F05D",0x7911],
+ ["F05E",0x79AD],
+ ["F05F",0x79AC],
+ ["F060",0x7A5F],
+ ["F061",0x7C1C],
+ ["F062",0x7C29],
+ ["F063",0x7C19],
+ ["F064",0x7C20],
+ ["F065",0x7C1F],
+ ["F066",0x7C2D],
+ ["F067",0x7C1D],
+ ["F068",0x7C26],
+ ["F069",0x7C28],
+ ["F06A",0x7C22],
+ ["F06B",0x7C25],
+ ["F06C",0x7C30],
+ ["F06D",0x7E5C],
+ ["F06E",0x7E50],
+ ["F06F",0x7E56],
+ ["F070",0x7E63],
+ ["F071",0x7E58],
+ ["F072",0x7E62],
+ ["F073",0x7E5F],
+ ["F074",0x7E51],
+ ["F075",0x7E60],
+ ["F076",0x7E57],
+ ["F077",0x7E53],
+ ["F078",0x7FB5],
+ ["F079",0x7FB3],
+ ["F07A",0x7FF7],
+ ["F07B",0x7FF8],
+ ["F07C",0x8075],
+ ["F07D",0x81D1],
+ ["F07E",0x81D2],
+ ["F0A1",0x81D0],
+ ["F0A2",0x825F],
+ ["F0A3",0x825E],
+ ["F0A4",0x85B4],
+ ["F0A5",0x85C6],
+ ["F0A6",0x85C0],
+ ["F0A7",0x85C3],
+ ["F0A8",0x85C2],
+ ["F0A9",0x85B3],
+ ["F0AA",0x85B5],
+ ["F0AB",0x85BD],
+ ["F0AC",0x85C7],
+ ["F0AD",0x85C4],
+ ["F0AE",0x85BF],
+ ["F0AF",0x85CB],
+ ["F0B0",0x85CE],
+ ["F0B1",0x85C8],
+ ["F0B2",0x85C5],
+ ["F0B3",0x85B1],
+ ["F0B4",0x85B6],
+ ["F0B5",0x85D2],
+ ["F0B6",0x8624],
+ ["F0B7",0x85B8],
+ ["F0B8",0x85B7],
+ ["F0B9",0x85BE],
+ ["F0BA",0x8669],
+ ["F0BB",0x87E7],
+ ["F0BC",0x87E6],
+ ["F0BD",0x87E2],
+ ["F0BE",0x87DB],
+ ["F0BF",0x87EB],
+ ["F0C0",0x87EA],
+ ["F0C1",0x87E5],
+ ["F0C2",0x87DF],
+ ["F0C3",0x87F3],
+ ["F0C4",0x87E4],
+ ["F0C5",0x87D4],
+ ["F0C6",0x87DC],
+ ["F0C7",0x87D3],
+ ["F0C8",0x87ED],
+ ["F0C9",0x87D8],
+ ["F0CA",0x87E3],
+ ["F0CB",0x87A4],
+ ["F0CC",0x87D7],
+ ["F0CD",0x87D9],
+ ["F0CE",0x8801],
+ ["F0CF",0x87F4],
+ ["F0D0",0x87E8],
+ ["F0D1",0x87DD],
+ ["F0D2",0x8953],
+ ["F0D3",0x894B],
+ ["F0D4",0x894F],
+ ["F0D5",0x894C],
+ ["F0D6",0x8946],
+ ["F0D7",0x8950],
+ ["F0D8",0x8951],
+ ["F0D9",0x8949],
+ ["F0DA",0x8B2A],
+ ["F0DB",0x8B27],
+ ["F0DC",0x8B23],
+ ["F0DD",0x8B33],
+ ["F0DE",0x8B30],
+ ["F0DF",0x8B35],
+ ["F0E0",0x8B47],
+ ["F0E1",0x8B2F],
+ ["F0E2",0x8B3C],
+ ["F0E3",0x8B3E],
+ ["F0E4",0x8B31],
+ ["F0E5",0x8B25],
+ ["F0E6",0x8B37],
+ ["F0E7",0x8B26],
+ ["F0E8",0x8B36],
+ ["F0E9",0x8B2E],
+ ["F0EA",0x8B24],
+ ["F0EB",0x8B3B],
+ ["F0EC",0x8B3D],
+ ["F0ED",0x8B3A],
+ ["F0EE",0x8C42],
+ ["F0EF",0x8C75],
+ ["F0F0",0x8C99],
+ ["F0F1",0x8C98],
+ ["F0F2",0x8C97],
+ ["F0F3",0x8CFE],
+ ["F0F4",0x8D04],
+ ["F0F5",0x8D02],
+ ["F0F6",0x8D00],
+ ["F0F7",0x8E5C],
+ ["F0F8",0x8E62],
+ ["F0F9",0x8E60],
+ ["F0FA",0x8E57],
+ ["F0FB",0x8E56],
+ ["F0FC",0x8E5E],
+ ["F0FD",0x8E65],
+ ["F0FE",0x8E67],
+ ["F140",0x8E5B],
+ ["F141",0x8E5A],
+ ["F142",0x8E61],
+ ["F143",0x8E5D],
+ ["F144",0x8E69],
+ ["F145",0x8E54],
+ ["F146",0x8F46],
+ ["F147",0x8F47],
+ ["F148",0x8F48],
+ ["F149",0x8F4B],
+ ["F14A",0x9128],
+ ["F14B",0x913A],
+ ["F14C",0x913B],
+ ["F14D",0x913E],
+ ["F14E",0x91A8],
+ ["F14F",0x91A5],
+ ["F150",0x91A7],
+ ["F151",0x91AF],
+ ["F152",0x91AA],
+ ["F153",0x93B5],
+ ["F154",0x938C],
+ ["F155",0x9392],
+ ["F156",0x93B7],
+ ["F157",0x939B],
+ ["F158",0x939D],
+ ["F159",0x9389],
+ ["F15A",0x93A7],
+ ["F15B",0x938E],
+ ["F15C",0x93AA],
+ ["F15D",0x939E],
+ ["F15E",0x93A6],
+ ["F15F",0x9395],
+ ["F160",0x9388],
+ ["F161",0x9399],
+ ["F162",0x939F],
+ ["F163",0x938D],
+ ["F164",0x93B1],
+ ["F165",0x9391],
+ ["F166",0x93B2],
+ ["F167",0x93A4],
+ ["F168",0x93A8],
+ ["F169",0x93B4],
+ ["F16A",0x93A3],
+ ["F16B",0x93A5],
+ ["F16C",0x95D2],
+ ["F16D",0x95D3],
+ ["F16E",0x95D1],
+ ["F16F",0x96B3],
+ ["F170",0x96D7],
+ ["F171",0x96DA],
+ ["F172",0x5DC2],
+ ["F173",0x96DF],
+ ["F174",0x96D8],
+ ["F175",0x96DD],
+ ["F176",0x9723],
+ ["F177",0x9722],
+ ["F178",0x9725],
+ ["F179",0x97AC],
+ ["F17A",0x97AE],
+ ["F17B",0x97A8],
+ ["F17C",0x97AB],
+ ["F17D",0x97A4],
+ ["F17E",0x97AA],
+ ["F1A1",0x97A2],
+ ["F1A2",0x97A5],
+ ["F1A3",0x97D7],
+ ["F1A4",0x97D9],
+ ["F1A5",0x97D6],
+ ["F1A6",0x97D8],
+ ["F1A7",0x97FA],
+ ["F1A8",0x9850],
+ ["F1A9",0x9851],
+ ["F1AA",0x9852],
+ ["F1AB",0x98B8],
+ ["F1AC",0x9941],
+ ["F1AD",0x993C],
+ ["F1AE",0x993A],
+ ["F1AF",0x9A0F],
+ ["F1B0",0x9A0B],
+ ["F1B1",0x9A09],
+ ["F1B2",0x9A0D],
+ ["F1B3",0x9A04],
+ ["F1B4",0x9A11],
+ ["F1B5",0x9A0A],
+ ["F1B6",0x9A05],
+ ["F1B7",0x9A07],
+ ["F1B8",0x9A06],
+ ["F1B9",0x9AC0],
+ ["F1BA",0x9ADC],
+ ["F1BB",0x9B08],
+ ["F1BC",0x9B04],
+ ["F1BD",0x9B05],
+ ["F1BE",0x9B29],
+ ["F1BF",0x9B35],
+ ["F1C0",0x9B4A],
+ ["F1C1",0x9B4C],
+ ["F1C2",0x9B4B],
+ ["F1C3",0x9BC7],
+ ["F1C4",0x9BC6],
+ ["F1C5",0x9BC3],
+ ["F1C6",0x9BBF],
+ ["F1C7",0x9BC1],
+ ["F1C8",0x9BB5],
+ ["F1C9",0x9BB8],
+ ["F1CA",0x9BD3],
+ ["F1CB",0x9BB6],
+ ["F1CC",0x9BC4],
+ ["F1CD",0x9BB9],
+ ["F1CE",0x9BBD],
+ ["F1CF",0x9D5C],
+ ["F1D0",0x9D53],
+ ["F1D1",0x9D4F],
["F1D2",0x9D4A],
+ ["F1D3",0x9D5B],
["F1D4",0x9D4B],
+ ["F1D5",0x9D59],
+ ["F1D6",0x9D56],
["F1D7",0x9D4C],
- ["F1D1",0x9D4F],
- ["C359",0x9D51],
+ ["F1D8",0x9D57],
["F1D9",0x9D52],
- ["F1D0",0x9D53],
["F1DA",0x9D54],
- ["F1D6",0x9D56],
- ["F1D8",0x9D57],
+ ["F1DB",0x9D5F],
["F1DC",0x9D58],
- ["F1D5",0x9D59],
["F1DD",0x9D5A],
- ["F1D3",0x9D5B],
- ["F1CF",0x9D5C],
- ["C35A",0x9D5D],
- ["F1DB",0x9D5F],
- ["C35B",0x9D60],
- ["C44D",0x9D61],
- ["EF78",0x9D67],
- ["F3F1",0x9D68],
- ["F3E8",0x9D69],
- ["C44F",0x9D6A],
- ["F3E4",0x9D6B],
- ["C450",0x9D6C],
- ["F3ED",0x9D6F],
- ["F3E7",0x9D70],
- ["F3DD",0x9D71],
- ["C44E",0x9D72],
- ["F3EA",0x9D73],
- ["F3E5",0x9D74],
- ["F3E6",0x9D75],
+ ["F1DE",0x9E8E],
+ ["F1DF",0x9E8C],
+ ["F1E0",0x9EDF],
+ ["F1E1",0x9F01],
+ ["F1E2",0x9F00],
+ ["F1E3",0x9F16],
+ ["F1E4",0x9F25],
+ ["F1E5",0x9F2B],
+ ["F1E6",0x9F2A],
+ ["F1E7",0x9F29],
+ ["F1E8",0x9F28],
+ ["F1E9",0x9F4C],
+ ["F1EA",0x9F55],
+ ["F1EB",0x5134],
+ ["F1EC",0x5135],
+ ["F1ED",0x5296],
+ ["F1EE",0x52F7],
+ ["F1EF",0x53B4],
+ ["F1F0",0x56AB],
+ ["F1F1",0x56AD],
+ ["F1F2",0x56A6],
+ ["F1F3",0x56A7],
+ ["F1F4",0x56AA],
+ ["F1F5",0x56AC],
+ ["F1F6",0x58DA],
+ ["F1F7",0x58DD],
+ ["F1F8",0x58DB],
+ ["F1F9",0x5912],
+ ["F1FA",0x5B3D],
+ ["F1FB",0x5B3E],
+ ["F1FC",0x5B3F],
+ ["F1FD",0x5DC3],
+ ["F1FE",0x5E70],
+ ["F240",0x5FBF],
+ ["F241",0x61FB],
+ ["F242",0x6507],
+ ["F243",0x6510],
+ ["F244",0x650D],
+ ["F245",0x6509],
+ ["F246",0x650C],
+ ["F247",0x650E],
+ ["F248",0x6584],
+ ["F249",0x65DE],
+ ["F24A",0x65DD],
+ ["F24B",0x66DE],
+ ["F24C",0x6AE7],
+ ["F24D",0x6AE0],
+ ["F24E",0x6ACC],
+ ["F24F",0x6AD1],
+ ["F250",0x6AD9],
+ ["F251",0x6ACB],
+ ["F252",0x6ADF],
+ ["F253",0x6ADC],
+ ["F254",0x6AD0],
+ ["F255",0x6AEB],
+ ["F256",0x6ACF],
+ ["F257",0x6ACD],
+ ["F258",0x6ADE],
+ ["F259",0x6B60],
+ ["F25A",0x6BB0],
+ ["F25B",0x6C0C],
+ ["F25C",0x7019],
+ ["F25D",0x7027],
+ ["F25E",0x7020],
+ ["F25F",0x7016],
+ ["F260",0x702B],
+ ["F261",0x7021],
+ ["F262",0x7022],
+ ["F263",0x7023],
+ ["F264",0x7029],
+ ["F265",0x7017],
+ ["F266",0x7024],
+ ["F267",0x701C],
+ ["F268",0x702A],
+ ["F269",0x720C],
+ ["F26A",0x720A],
+ ["F26B",0x7207],
+ ["F26C",0x7202],
+ ["F26D",0x7205],
+ ["F26E",0x72A5],
+ ["F26F",0x72A6],
+ ["F270",0x72A4],
+ ["F271",0x72A3],
+ ["F272",0x72A1],
+ ["F273",0x74CB],
+ ["F274",0x74C5],
+ ["F275",0x74B7],
+ ["F276",0x74C3],
+ ["F277",0x7516],
+ ["F278",0x7660],
+ ["F279",0x77C9],
+ ["F27A",0x77CA],
+ ["F27B",0x77C4],
+ ["F27C",0x77F1],
+ ["F27D",0x791D],
+ ["F27E",0x791B],
+ ["F2A1",0x7921],
+ ["F2A2",0x791C],
+ ["F2A3",0x7917],
+ ["F2A4",0x791E],
+ ["F2A5",0x79B0],
+ ["F2A6",0x7A67],
+ ["F2A7",0x7A68],
+ ["F2A8",0x7C33],
+ ["F2A9",0x7C3C],
+ ["F2AA",0x7C39],
+ ["F2AB",0x7C2C],
+ ["F2AC",0x7C3B],
+ ["F2AD",0x7CEC],
+ ["F2AE",0x7CEA],
+ ["F2AF",0x7E76],
+ ["F2B0",0x7E75],
+ ["F2B1",0x7E78],
+ ["F2B2",0x7E70],
+ ["F2B3",0x7E77],
+ ["F2B4",0x7E6F],
+ ["F2B5",0x7E7A],
+ ["F2B6",0x7E72],
+ ["F2B7",0x7E74],
+ ["F2B8",0x7E68],
+ ["F2B9",0x7F4B],
+ ["F2BA",0x7F4A],
+ ["F2BB",0x7F83],
+ ["F2BC",0x7F86],
+ ["F2BD",0x7FB7],
+ ["F2BE",0x7FFD],
+ ["F2BF",0x7FFE],
+ ["F2C0",0x8078],
+ ["F2C1",0x81D7],
+ ["F2C2",0x81D5],
+ ["F2C3",0x8264],
+ ["F2C4",0x8261],
+ ["F2C5",0x8263],
+ ["F2C6",0x85EB],
+ ["F2C7",0x85F1],
+ ["F2C8",0x85ED],
+ ["F2C9",0x85D9],
+ ["F2CA",0x85E1],
+ ["F2CB",0x85E8],
+ ["F2CC",0x85DA],
+ ["F2CD",0x85D7],
+ ["F2CE",0x85EC],
+ ["F2CF",0x85F2],
+ ["F2D0",0x85F8],
+ ["F2D1",0x85D8],
+ ["F2D2",0x85DF],
+ ["F2D3",0x85E3],
+ ["F2D4",0x85DC],
+ ["F2D5",0x85D1],
+ ["F2D6",0x85F0],
+ ["F2D7",0x85E6],
+ ["F2D8",0x85EF],
+ ["F2D9",0x85DE],
+ ["F2DA",0x85E2],
+ ["F2DB",0x8800],
+ ["F2DC",0x87FA],
+ ["F2DD",0x8803],
+ ["F2DE",0x87F6],
+ ["F2DF",0x87F7],
+ ["F2E0",0x8809],
+ ["F2E1",0x880C],
+ ["F2E2",0x880B],
+ ["F2E3",0x8806],
+ ["F2E4",0x87FC],
+ ["F2E5",0x8808],
+ ["F2E6",0x87FF],
+ ["F2E7",0x880A],
+ ["F2E8",0x8802],
+ ["F2E9",0x8962],
+ ["F2EA",0x895A],
+ ["F2EB",0x895B],
+ ["F2EC",0x8957],
+ ["F2ED",0x8961],
+ ["F2EE",0x895C],
+ ["F2EF",0x8958],
+ ["F2F0",0x895D],
+ ["F2F1",0x8959],
+ ["F2F2",0x8988],
+ ["F2F3",0x89B7],
+ ["F2F4",0x89B6],
+ ["F2F5",0x89F6],
+ ["F2F6",0x8B50],
+ ["F2F7",0x8B48],
+ ["F2F8",0x8B4A],
+ ["F2F9",0x8B40],
+ ["F2FA",0x8B53],
+ ["F2FB",0x8B56],
+ ["F2FC",0x8B54],
+ ["F2FD",0x8B4B],
+ ["F2FE",0x8B55],
+ ["F340",0x8B51],
+ ["F341",0x8B42],
+ ["F342",0x8B52],
+ ["F343",0x8B57],
+ ["F344",0x8C43],
+ ["F345",0x8C77],
+ ["F346",0x8C76],
+ ["F347",0x8C9A],
+ ["F348",0x8D06],
+ ["F349",0x8D07],
+ ["F34A",0x8D09],
+ ["F34B",0x8DAC],
+ ["F34C",0x8DAA],
+ ["F34D",0x8DAD],
+ ["F34E",0x8DAB],
+ ["F34F",0x8E6D],
+ ["F350",0x8E78],
+ ["F351",0x8E73],
+ ["F352",0x8E6A],
+ ["F353",0x8E6F],
+ ["F354",0x8E7B],
+ ["F355",0x8EC2],
+ ["F356",0x8F52],
+ ["F357",0x8F51],
+ ["F358",0x8F4F],
+ ["F359",0x8F50],
+ ["F35A",0x8F53],
+ ["F35B",0x8FB4],
+ ["F35C",0x9140],
+ ["F35D",0x913F],
+ ["F35E",0x91B0],
+ ["F35F",0x91AD],
+ ["F360",0x93DE],
+ ["F361",0x93C7],
+ ["F362",0x93CF],
+ ["F363",0x93C2],
+ ["F364",0x93DA],
+ ["F365",0x93D0],
+ ["F366",0x93F9],
+ ["F367",0x93EC],
+ ["F368",0x93CC],
+ ["F369",0x93D9],
+ ["F36A",0x93A9],
+ ["F36B",0x93E6],
+ ["F36C",0x93CA],
+ ["F36D",0x93D4],
+ ["F36E",0x93EE],
+ ["F36F",0x93E3],
+ ["F370",0x93D5],
+ ["F371",0x93C4],
+ ["F372",0x93CE],
+ ["F373",0x93C0],
+ ["F374",0x93D2],
+ ["F375",0x93E7],
+ ["F376",0x957D],
+ ["F377",0x95DA],
+ ["F378",0x95DB],
+ ["F379",0x96E1],
+ ["F37A",0x9729],
+ ["F37B",0x972B],
+ ["F37C",0x972C],
+ ["F37D",0x9728],
+ ["F37E",0x9726],
+ ["F3A1",0x97B3],
+ ["F3A2",0x97B7],
+ ["F3A3",0x97B6],
+ ["F3A4",0x97DD],
+ ["F3A5",0x97DE],
+ ["F3A6",0x97DF],
+ ["F3A7",0x985C],
+ ["F3A8",0x9859],
+ ["F3A9",0x985D],
+ ["F3AA",0x9857],
+ ["F3AB",0x98BF],
+ ["F3AC",0x98BD],
+ ["F3AD",0x98BB],
+ ["F3AE",0x98BE],
+ ["F3AF",0x9948],
+ ["F3B0",0x9947],
+ ["F3B1",0x9943],
+ ["F3B2",0x99A6],
+ ["F3B3",0x99A7],
+ ["F3B4",0x9A1A],
+ ["F3B5",0x9A15],
+ ["F3B6",0x9A25],
+ ["F3B7",0x9A1D],
+ ["F3B8",0x9A24],
+ ["F3B9",0x9A1B],
+ ["F3BA",0x9A22],
+ ["F3BB",0x9A20],
+ ["F3BC",0x9A27],
+ ["F3BD",0x9A23],
+ ["F3BE",0x9A1E],
+ ["F3BF",0x9A1C],
+ ["F3C0",0x9A14],
+ ["F3C1",0x9AC2],
+ ["F3C2",0x9B0B],
+ ["F3C3",0x9B0A],
+ ["F3C4",0x9B0E],
+ ["F3C5",0x9B0C],
+ ["F3C6",0x9B37],
+ ["F3C7",0x9BEA],
+ ["F3C8",0x9BEB],
+ ["F3C9",0x9BE0],
+ ["F3CA",0x9BDE],
+ ["F3CB",0x9BE4],
+ ["F3CC",0x9BE6],
+ ["F3CD",0x9BE2],
+ ["F3CE",0x9BF0],
+ ["F3CF",0x9BD4],
+ ["F3D0",0x9BD7],
+ ["F3D1",0x9BEC],
+ ["F3D2",0x9BDC],
+ ["F3D3",0x9BD9],
+ ["F3D4",0x9BE5],
+ ["F3D5",0x9BD5],
+ ["F3D6",0x9BE1],
+ ["F3D7",0x9BDA],
["F3D8",0x9D77],
- ["F3DF",0x9D78],
- ["F3EE",0x9D79],
- ["F3EB",0x9D7B],
- ["F3E3",0x9D7D],
- ["F3EF",0x9D7F],
- ["F3DE",0x9D80],
["F3D9",0x9D81],
- ["F3EC",0x9D82],
+ ["F3DA",0x9D8A],
["F3DB",0x9D84],
- ["F3E9",0x9D85],
- ["F3E0",0x9D86],
- ["F3F0",0x9D87],
["F3DC",0x9D88],
- ["C44C",0x9D89],
- ["F3DA",0x9D8A],
+ ["F3DD",0x9D71],
+ ["F3DE",0x9D80],
+ ["F3DF",0x9D78],
+ ["F3E0",0x9D86],
["F3E1",0x9D8B],
["F3E2",0x9D8C],
- ["F57D",0x9D90],
+ ["F3E3",0x9D7D],
+ ["F3E4",0x9D6B],
+ ["F3E5",0x9D74],
+ ["F3E6",0x9D75],
+ ["F3E7",0x9D70],
+ ["F3E8",0x9D69],
+ ["F3E9",0x9D85],
+ ["F3EA",0x9D73],
+ ["F3EB",0x9D7B],
+ ["F3EC",0x9D82],
+ ["F3ED",0x9D6F],
+ ["F3EE",0x9D79],
+ ["F3EF",0x9D7F],
+ ["F3F0",0x9D87],
+ ["F3F1",0x9D68],
+ ["F3F2",0x9E94],
+ ["F3F3",0x9E91],
+ ["F3F4",0x9EC0],
+ ["F3F5",0x9EFC],
+ ["F3F6",0x9F2D],
+ ["F3F7",0x9F40],
+ ["F3F8",0x9F41],
+ ["F3F9",0x9F4D],
+ ["F3FA",0x9F56],
+ ["F3FB",0x9F57],
+ ["F3FC",0x9F58],
+ ["F3FD",0x5337],
+ ["F3FE",0x56B2],
+ ["F440",0x56B5],
+ ["F441",0x56B3],
+ ["F442",0x58E3],
+ ["F443",0x5B45],
+ ["F444",0x5DC6],
+ ["F445",0x5DC7],
+ ["F446",0x5EEE],
+ ["F447",0x5EEF],
+ ["F448",0x5FC0],
+ ["F449",0x5FC1],
+ ["F44A",0x61F9],
+ ["F44B",0x6517],
+ ["F44C",0x6516],
+ ["F44D",0x6515],
+ ["F44E",0x6513],
+ ["F44F",0x65DF],
+ ["F450",0x66E8],
+ ["F451",0x66E3],
+ ["F452",0x66E4],
+ ["F453",0x6AF3],
+ ["F454",0x6AF0],
+ ["F455",0x6AEA],
+ ["F456",0x6AE8],
+ ["F457",0x6AF9],
+ ["F458",0x6AF1],
+ ["F459",0x6AEE],
+ ["F45A",0x6AEF],
+ ["F45B",0x703C],
+ ["F45C",0x7035],
+ ["F45D",0x702F],
+ ["F45E",0x7037],
+ ["F45F",0x7034],
+ ["F460",0x7031],
+ ["F461",0x7042],
+ ["F462",0x7038],
+ ["F463",0x703F],
+ ["F464",0x703A],
+ ["F465",0x7039],
+ ["F466",0x7040],
+ ["F467",0x703B],
+ ["F468",0x7033],
+ ["F469",0x7041],
+ ["F46A",0x7213],
+ ["F46B",0x7214],
+ ["F46C",0x72A8],
+ ["F46D",0x737D],
+ ["F46E",0x737C],
+ ["F46F",0x74BA],
+ ["F470",0x76AB],
+ ["F471",0x76AA],
+ ["F472",0x76BE],
+ ["F473",0x76ED],
+ ["F474",0x77CC],
+ ["F475",0x77CE],
+ ["F476",0x77CF],
+ ["F477",0x77CD],
+ ["F478",0x77F2],
+ ["F479",0x7925],
+ ["F47A",0x7923],
+ ["F47B",0x7927],
+ ["F47C",0x7928],
+ ["F47D",0x7924],
+ ["F47E",0x7929],
+ ["F4A1",0x79B2],
+ ["F4A2",0x7A6E],
+ ["F4A3",0x7A6C],
+ ["F4A4",0x7A6D],
+ ["F4A5",0x7AF7],
+ ["F4A6",0x7C49],
+ ["F4A7",0x7C48],
+ ["F4A8",0x7C4A],
+ ["F4A9",0x7C47],
+ ["F4AA",0x7C45],
+ ["F4AB",0x7CEE],
+ ["F4AC",0x7E7B],
+ ["F4AD",0x7E7E],
+ ["F4AE",0x7E81],
+ ["F4AF",0x7E80],
+ ["F4B0",0x7FBA],
+ ["F4B1",0x7FFF],
+ ["F4B2",0x8079],
+ ["F4B3",0x81DB],
+ ["F4B4",0x81D9],
+ ["F4B5",0x820B],
+ ["F4B6",0x8268],
+ ["F4B7",0x8269],
+ ["F4B8",0x8622],
+ ["F4B9",0x85FF],
+ ["F4BA",0x8601],
+ ["F4BB",0x85FE],
+ ["F4BC",0x861B],
+ ["F4BD",0x8600],
+ ["F4BE",0x85F6],
+ ["F4BF",0x8604],
+ ["F4C0",0x8609],
+ ["F4C1",0x8605],
+ ["F4C2",0x860C],
+ ["F4C3",0x85FD],
+ ["F4C4",0x8819],
+ ["F4C5",0x8810],
+ ["F4C6",0x8811],
+ ["F4C7",0x8817],
+ ["F4C8",0x8813],
+ ["F4C9",0x8816],
+ ["F4CA",0x8963],
+ ["F4CB",0x8966],
+ ["F4CC",0x89B9],
+ ["F4CD",0x89F7],
+ ["F4CE",0x8B60],
+ ["F4CF",0x8B6A],
+ ["F4D0",0x8B5D],
+ ["F4D1",0x8B68],
+ ["F4D2",0x8B63],
+ ["F4D3",0x8B65],
+ ["F4D4",0x8B67],
+ ["F4D5",0x8B6D],
+ ["F4D6",0x8DAE],
+ ["F4D7",0x8E86],
+ ["F4D8",0x8E88],
+ ["F4D9",0x8E84],
+ ["F4DA",0x8F59],
+ ["F4DB",0x8F56],
+ ["F4DC",0x8F57],
+ ["F4DD",0x8F55],
+ ["F4DE",0x8F58],
+ ["F4DF",0x8F5A],
+ ["F4E0",0x908D],
+ ["F4E1",0x9143],
+ ["F4E2",0x9141],
+ ["F4E3",0x91B7],
+ ["F4E4",0x91B5],
+ ["F4E5",0x91B2],
+ ["F4E6",0x91B3],
+ ["F4E7",0x940B],
+ ["F4E8",0x9413],
+ ["F4E9",0x93FB],
+ ["F4EA",0x9420],
+ ["F4EB",0x940F],
+ ["F4EC",0x9414],
+ ["F4ED",0x93FE],
+ ["F4EE",0x9415],
+ ["F4EF",0x9410],
+ ["F4F0",0x9428],
+ ["F4F1",0x9419],
+ ["F4F2",0x940D],
+ ["F4F3",0x93F5],
+ ["F4F4",0x9400],
+ ["F4F5",0x93F7],
+ ["F4F6",0x9407],
+ ["F4F7",0x940E],
+ ["F4F8",0x9416],
+ ["F4F9",0x9412],
+ ["F4FA",0x93FA],
+ ["F4FB",0x9409],
+ ["F4FC",0x93F8],
+ ["F4FD",0x940A],
+ ["F4FE",0x93FF],
+ ["F540",0x93FC],
+ ["F541",0x940C],
+ ["F542",0x93F6],
+ ["F543",0x9411],
+ ["F544",0x9406],
+ ["F545",0x95DE],
+ ["F546",0x95E0],
+ ["F547",0x95DF],
+ ["F548",0x972E],
+ ["F549",0x972F],
+ ["F54A",0x97B9],
+ ["F54B",0x97BB],
+ ["F54C",0x97FD],
+ ["F54D",0x97FE],
+ ["F54E",0x9860],
+ ["F54F",0x9862],
+ ["F550",0x9863],
+ ["F551",0x985F],
+ ["F552",0x98C1],
+ ["F553",0x98C2],
+ ["F554",0x9950],
+ ["F555",0x994E],
+ ["F556",0x9959],
+ ["F557",0x994C],
+ ["F558",0x994B],
+ ["F559",0x9953],
+ ["F55A",0x9A32],
+ ["F55B",0x9A34],
+ ["F55C",0x9A31],
+ ["F55D",0x9A2C],
+ ["F55E",0x9A2A],
+ ["F55F",0x9A36],
+ ["F560",0x9A29],
+ ["F561",0x9A2E],
+ ["F562",0x9A38],
+ ["F563",0x9A2D],
+ ["F564",0x9AC7],
+ ["F565",0x9ACA],
+ ["F566",0x9AC6],
+ ["F567",0x9B10],
+ ["F568",0x9B12],
+ ["F569",0x9B11],
+ ["F56A",0x9C0B],
+ ["F56B",0x9C08],
+ ["F56C",0x9BF7],
+ ["F56D",0x9C05],
+ ["F56E",0x9C12],
+ ["F56F",0x9BF8],
+ ["F570",0x9C40],
+ ["F571",0x9C07],
+ ["F572",0x9C0E],
+ ["F573",0x9C06],
+ ["F574",0x9C17],
+ ["F575",0x9C14],
+ ["F576",0x9C09],
+ ["F577",0x9D9F],
+ ["F578",0x9D99],
+ ["F579",0x9DA4],
+ ["F57A",0x9D9D],
["F57B",0x9D92],
- ["F5A2",0x9D94],
- ["F5AE",0x9D96],
- ["F5A5",0x9D97],
["F57C",0x9D98],
- ["F578",0x9D99],
- ["F5A7",0x9D9A],
+ ["F57D",0x9D90],
["F57E",0x9D9B],
- ["F5A3",0x9D9C],
- ["F57A",0x9D9D],
- ["F5AA",0x9D9E],
- ["F577",0x9D9F],
["F5A1",0x9DA0],
+ ["F5A2",0x9D94],
+ ["F5A3",0x9D9C],
+ ["F5A4",0x9DAA],
+ ["F5A5",0x9D97],
["F5A6",0x9DA1],
+ ["F5A7",0x9D9A],
["F5A8",0x9DA2],
+ ["F5A9",0x9DA8],
+ ["F5AA",0x9D9E],
["F5AB",0x9DA3],
- ["F579",0x9DA4],
+ ["F5AC",0x9DBF],
+ ["F5AD",0x9DA9],
+ ["F5AE",0x9D96],
["F5AF",0x9DA6],
["F5B0",0x9DA7],
- ["F5A9",0x9DA8],
- ["F5AD",0x9DA9],
- ["F5A4",0x9DAA],
- ["F6C1",0x9DAC],
- ["F6C4",0x9DAD],
- ["C561",0x9DAF],
- ["F6C3",0x9DB1],
- ["F6C8",0x9DB2],
- ["F6C6",0x9DB3],
- ["C562",0x9DB4],
- ["F6BD",0x9DB5],
- ["F6B3",0x9DB6],
+ ["F5B1",0x9E99],
+ ["F5B2",0x9E9B],
+ ["F5B3",0x9E9A],
+ ["F5B4",0x9EE5],
+ ["F5B5",0x9EE4],
+ ["F5B6",0x9EE7],
+ ["F5B7",0x9EE6],
+ ["F5B8",0x9F30],
+ ["F5B9",0x9F2E],
+ ["F5BA",0x9F5B],
+ ["F5BB",0x9F60],
+ ["F5BC",0x9F5E],
+ ["F5BD",0x9F5D],
+ ["F5BE",0x9F59],
+ ["F5BF",0x9F91],
+ ["F5C0",0x513A],
+ ["F5C1",0x5139],
+ ["F5C2",0x5298],
+ ["F5C3",0x5297],
+ ["F5C4",0x56C3],
+ ["F5C5",0x56BD],
+ ["F5C6",0x56BE],
+ ["F5C7",0x5B48],
+ ["F5C8",0x5B47],
+ ["F5C9",0x5DCB],
+ ["F5CA",0x5DCF],
+ ["F5CB",0x5EF1],
+ ["F5CC",0x61FD],
+ ["F5CD",0x651B],
+ ["F5CE",0x6B02],
+ ["F5CF",0x6AFC],
+ ["F5D0",0x6B03],
+ ["F5D1",0x6AF8],
+ ["F5D2",0x6B00],
+ ["F5D3",0x7043],
+ ["F5D4",0x7044],
+ ["F5D5",0x704A],
+ ["F5D6",0x7048],
+ ["F5D7",0x7049],
+ ["F5D8",0x7045],
+ ["F5D9",0x7046],
+ ["F5DA",0x721D],
+ ["F5DB",0x721A],
+ ["F5DC",0x7219],
+ ["F5DD",0x737E],
+ ["F5DE",0x7517],
+ ["F5DF",0x766A],
+ ["F5E0",0x77D0],
+ ["F5E1",0x792D],
+ ["F5E2",0x7931],
+ ["F5E3",0x792F],
+ ["F5E4",0x7C54],
+ ["F5E5",0x7C53],
+ ["F5E6",0x7CF2],
+ ["F5E7",0x7E8A],
+ ["F5E8",0x7E87],
+ ["F5E9",0x7E88],
+ ["F5EA",0x7E8B],
+ ["F5EB",0x7E86],
+ ["F5EC",0x7E8D],
+ ["F5ED",0x7F4D],
+ ["F5EE",0x7FBB],
+ ["F5EF",0x8030],
+ ["F5F0",0x81DD],
+ ["F5F1",0x8618],
+ ["F5F2",0x862A],
+ ["F5F3",0x8626],
+ ["F5F4",0x861F],
+ ["F5F5",0x8623],
+ ["F5F6",0x861C],
+ ["F5F7",0x8619],
+ ["F5F8",0x8627],
+ ["F5F9",0x862E],
+ ["F5FA",0x8621],
+ ["F5FB",0x8620],
+ ["F5FC",0x8629],
+ ["F5FD",0x861E],
+ ["F5FE",0x8625],
+ ["F640",0x8829],
+ ["F641",0x881D],
+ ["F642",0x881B],
+ ["F643",0x8820],
+ ["F644",0x8824],
+ ["F645",0x881C],
+ ["F646",0x882B],
+ ["F647",0x884A],
+ ["F648",0x896D],
+ ["F649",0x8969],
+ ["F64A",0x896E],
+ ["F64B",0x896B],
+ ["F64C",0x89FA],
+ ["F64D",0x8B79],
+ ["F64E",0x8B78],
+ ["F64F",0x8B45],
+ ["F650",0x8B7A],
+ ["F651",0x8B7B],
+ ["F652",0x8D10],
+ ["F653",0x8D14],
+ ["F654",0x8DAF],
+ ["F655",0x8E8E],
+ ["F656",0x8E8C],
+ ["F657",0x8F5E],
+ ["F658",0x8F5B],
+ ["F659",0x8F5D],
+ ["F65A",0x9146],
+ ["F65B",0x9144],
+ ["F65C",0x9145],
+ ["F65D",0x91B9],
+ ["F65E",0x943F],
+ ["F65F",0x943B],
+ ["F660",0x9436],
+ ["F661",0x9429],
+ ["F662",0x943D],
+ ["F663",0x943C],
+ ["F664",0x9430],
+ ["F665",0x9439],
+ ["F666",0x942A],
+ ["F667",0x9437],
+ ["F668",0x942C],
+ ["F669",0x9440],
+ ["F66A",0x9431],
+ ["F66B",0x95E5],
+ ["F66C",0x95E4],
+ ["F66D",0x95E3],
+ ["F66E",0x9735],
+ ["F66F",0x973A],
+ ["F670",0x97BF],
+ ["F671",0x97E1],
+ ["F672",0x9864],
+ ["F673",0x98C9],
+ ["F674",0x98C6],
+ ["F675",0x98C0],
+ ["F676",0x9958],
+ ["F677",0x9956],
+ ["F678",0x9A39],
+ ["F679",0x9A3D],
+ ["F67A",0x9A46],
+ ["F67B",0x9A44],
+ ["F67C",0x9A42],
+ ["F67D",0x9A41],
+ ["F67E",0x9A3A],
+ ["F6A1",0x9A3F],
+ ["F6A2",0x9ACD],
+ ["F6A3",0x9B15],
+ ["F6A4",0x9B17],
+ ["F6A5",0x9B18],
+ ["F6A6",0x9B16],
+ ["F6A7",0x9B3A],
+ ["F6A8",0x9B52],
+ ["F6A9",0x9C2B],
+ ["F6AA",0x9C1D],
+ ["F6AB",0x9C1C],
+ ["F6AC",0x9C2C],
+ ["F6AD",0x9C23],
+ ["F6AE",0x9C28],
+ ["F6AF",0x9C29],
+ ["F6B0",0x9C24],
+ ["F6B1",0x9C21],
["F6B2",0x9DB7],
- ["C564",0x9DB8],
- ["F6BF",0x9DB9],
- ["F6C0",0x9DBA],
- ["F6BC",0x9DBB],
+ ["F6B3",0x9DB6],
["F6B4",0x9DBC],
- ["F6B9",0x9DBE],
- ["F5AC",0x9DBF],
["F6B5",0x9DC1],
- ["C563",0x9DC2],
- ["F6BB",0x9DC3],
- ["F6BA",0x9DC5],
["F6B6",0x9DC7],
- ["F6C2",0x9DC8],
["F6B7",0x9DCA],
- ["F7BB",0x9DCB],
+ ["F6B8",0x9DCF],
+ ["F6B9",0x9DBE],
+ ["F6BA",0x9DC5],
+ ["F6BB",0x9DC3],
+ ["F6BC",0x9DBB],
+ ["F6BD",0x9DB5],
+ ["F6BE",0x9DCE],
+ ["F6BF",0x9DB9],
+ ["F6C0",0x9DBA],
+ ["F6C1",0x9DAC],
+ ["F6C2",0x9DC8],
+ ["F6C3",0x9DB1],
+ ["F6C4",0x9DAD],
["F6C5",0x9DCC],
+ ["F6C6",0x9DB3],
["F6C7",0x9DCD],
- ["F6BE",0x9DCE],
- ["F6B8",0x9DCF],
- ["F7BC",0x9DD0],
- ["F7BE",0x9DD1],
+ ["F6C8",0x9DB2],
+ ["F6C9",0x9E7A],
+ ["F6CA",0x9E9C],
+ ["F6CB",0x9EEB],
+ ["F6CC",0x9EEE],
+ ["F6CD",0x9EED],
+ ["F6CE",0x9F1B],
+ ["F6CF",0x9F18],
+ ["F6D0",0x9F1A],
+ ["F6D1",0x9F31],
+ ["F6D2",0x9F4E],
+ ["F6D3",0x9F65],
+ ["F6D4",0x9F64],
+ ["F6D5",0x9F92],
+ ["F6D6",0x4EB9],
+ ["F6D7",0x56C6],
+ ["F6D8",0x56C5],
+ ["F6D9",0x56CB],
+ ["F6DA",0x5971],
+ ["F6DB",0x5B4B],
+ ["F6DC",0x5B4C],
+ ["F6DD",0x5DD5],
+ ["F6DE",0x5DD1],
+ ["F6DF",0x5EF2],
+ ["F6E0",0x6521],
+ ["F6E1",0x6520],
+ ["F6E2",0x6526],
+ ["F6E3",0x6522],
+ ["F6E4",0x6B0B],
+ ["F6E5",0x6B08],
+ ["F6E6",0x6B09],
+ ["F6E7",0x6C0D],
+ ["F6E8",0x7055],
+ ["F6E9",0x7056],
+ ["F6EA",0x7057],
+ ["F6EB",0x7052],
+ ["F6EC",0x721E],
+ ["F6ED",0x721F],
+ ["F6EE",0x72A9],
+ ["F6EF",0x737F],
+ ["F6F0",0x74D8],
+ ["F6F1",0x74D5],
+ ["F6F2",0x74D9],
+ ["F6F3",0x74D7],
+ ["F6F4",0x766D],
+ ["F6F5",0x76AD],
+ ["F6F6",0x7935],
+ ["F6F7",0x79B4],
+ ["F6F8",0x7A70],
+ ["F6F9",0x7A71],
+ ["F6FA",0x7C57],
+ ["F6FB",0x7C5C],
+ ["F6FC",0x7C59],
+ ["F6FD",0x7C5B],
+ ["F6FE",0x7C5A],
+ ["F740",0x7CF4],
+ ["F741",0x7CF1],
+ ["F742",0x7E91],
+ ["F743",0x7F4F],
+ ["F744",0x7F87],
+ ["F745",0x81DE],
+ ["F746",0x826B],
+ ["F747",0x8634],
+ ["F748",0x8635],
+ ["F749",0x8633],
+ ["F74A",0x862C],
+ ["F74B",0x8632],
+ ["F74C",0x8636],
+ ["F74D",0x882C],
+ ["F74E",0x8828],
+ ["F74F",0x8826],
+ ["F750",0x882A],
+ ["F751",0x8825],
+ ["F752",0x8971],
+ ["F753",0x89BF],
+ ["F754",0x89BE],
+ ["F755",0x89FB],
+ ["F756",0x8B7E],
+ ["F757",0x8B84],
+ ["F758",0x8B82],
+ ["F759",0x8B86],
+ ["F75A",0x8B85],
+ ["F75B",0x8B7F],
+ ["F75C",0x8D15],
+ ["F75D",0x8E95],
+ ["F75E",0x8E94],
+ ["F75F",0x8E9A],
+ ["F760",0x8E92],
+ ["F761",0x8E90],
+ ["F762",0x8E96],
+ ["F763",0x8E97],
+ ["F764",0x8F60],
+ ["F765",0x8F62],
+ ["F766",0x9147],
+ ["F767",0x944C],
+ ["F768",0x9450],
+ ["F769",0x944A],
+ ["F76A",0x944B],
+ ["F76B",0x944F],
+ ["F76C",0x9447],
+ ["F76D",0x9445],
+ ["F76E",0x9448],
+ ["F76F",0x9449],
+ ["F770",0x9446],
+ ["F771",0x973F],
+ ["F772",0x97E3],
+ ["F773",0x986A],
+ ["F774",0x9869],
+ ["F775",0x98CB],
+ ["F776",0x9954],
+ ["F777",0x995B],
+ ["F778",0x9A4E],
+ ["F779",0x9A53],
+ ["F77A",0x9A54],
+ ["F77B",0x9A4C],
+ ["F77C",0x9A4F],
+ ["F77D",0x9A48],
+ ["F77E",0x9A4A],
+ ["F7A1",0x9A49],
+ ["F7A2",0x9A52],
+ ["F7A3",0x9A50],
+ ["F7A4",0x9AD0],
+ ["F7A5",0x9B19],
+ ["F7A6",0x9B2B],
+ ["F7A7",0x9B3B],
+ ["F7A8",0x9B56],
+ ["F7A9",0x9B55],
+ ["F7AA",0x9C46],
+ ["F7AB",0x9C48],
+ ["F7AC",0x9C3F],
+ ["F7AD",0x9C44],
+ ["F7AE",0x9C39],
+ ["F7AF",0x9C33],
+ ["F7B0",0x9C41],
+ ["F7B1",0x9C3C],
+ ["F7B2",0x9C37],
+ ["F7B3",0x9C34],
+ ["F7B4",0x9C32],
+ ["F7B5",0x9C3D],
+ ["F7B6",0x9C36],
+ ["F7B7",0x9DDB],
["F7B8",0x9DD2],
- ["C5C2",0x9DD3],
- ["F7C5",0x9DD5],
- ["F7C3",0x9DD6],
- ["C5C3",0x9DD7],
- ["F7C2",0x9DD8],
- ["F7C1",0x9DD9],
+ ["F7B9",0x9DDE],
["F7BA",0x9DDA],
- ["F7B7",0x9DDB],
+ ["F7BB",0x9DCB],
+ ["F7BC",0x9DD0],
["F7BD",0x9DDC],
- ["F7C6",0x9DDD],
- ["F7B9",0x9DDE],
+ ["F7BE",0x9DD1],
["F7BF",0x9DDF],
- ["F869",0x9DE1],
- ["F86E",0x9DE2],
- ["F864",0x9DE3],
- ["F867",0x9DE4],
- ["C5EE",0x9DE5],
- ["F86B",0x9DE6],
- ["F872",0x9DE8],
["F7C0",0x9DE9],
+ ["F7C1",0x9DD9],
+ ["F7C2",0x9DD8],
+ ["F7C3",0x9DD6],
+ ["F7C4",0x9DF5],
+ ["F7C5",0x9DD5],
+ ["F7C6",0x9DDD],
+ ["F7C7",0x9EB6],
+ ["F7C8",0x9EF0],
+ ["F7C9",0x9F35],
+ ["F7CA",0x9F33],
+ ["F7CB",0x9F32],
+ ["F7CC",0x9F42],
+ ["F7CD",0x9F6B],
+ ["F7CE",0x9F95],
+ ["F7CF",0x9FA2],
+ ["F7D0",0x513D],
+ ["F7D1",0x5299],
+ ["F7D2",0x58E8],
+ ["F7D3",0x58E7],
+ ["F7D4",0x5972],
+ ["F7D5",0x5B4D],
+ ["F7D6",0x5DD8],
+ ["F7D7",0x882F],
+ ["F7D8",0x5F4F],
+ ["F7D9",0x6201],
+ ["F7DA",0x6203],
+ ["F7DB",0x6204],
+ ["F7DC",0x6529],
+ ["F7DD",0x6525],
+ ["F7DE",0x6596],
+ ["F7DF",0x66EB],
+ ["F7E0",0x6B11],
+ ["F7E1",0x6B12],
+ ["F7E2",0x6B0F],
+ ["F7E3",0x6BCA],
+ ["F7E4",0x705B],
+ ["F7E5",0x705A],
+ ["F7E6",0x7222],
+ ["F7E7",0x7382],
+ ["F7E8",0x7381],
+ ["F7E9",0x7383],
+ ["F7EA",0x7670],
+ ["F7EB",0x77D4],
+ ["F7EC",0x7C67],
+ ["F7ED",0x7C66],
+ ["F7EE",0x7E95],
+ ["F7EF",0x826C],
+ ["F7F0",0x863A],
+ ["F7F1",0x8640],
+ ["F7F2",0x8639],
+ ["F7F3",0x863C],
+ ["F7F4",0x8631],
+ ["F7F5",0x863B],
+ ["F7F6",0x863E],
+ ["F7F7",0x8830],
+ ["F7F8",0x8832],
+ ["F7F9",0x882E],
+ ["F7FA",0x8833],
+ ["F7FB",0x8976],
+ ["F7FC",0x8974],
+ ["F7FD",0x8973],
+ ["F7FE",0x89FE],
+ ["F840",0x8B8C],
+ ["F841",0x8B8E],
+ ["F842",0x8B8B],
+ ["F843",0x8B88],
+ ["F844",0x8C45],
+ ["F845",0x8D19],
+ ["F846",0x8E98],
+ ["F847",0x8F64],
+ ["F848",0x8F63],
+ ["F849",0x91BC],
+ ["F84A",0x9462],
+ ["F84B",0x9455],
+ ["F84C",0x945D],
+ ["F84D",0x9457],
+ ["F84E",0x945E],
+ ["F84F",0x97C4],
+ ["F850",0x97C5],
+ ["F851",0x9800],
+ ["F852",0x9A56],
+ ["F853",0x9A59],
+ ["F854",0x9B1E],
+ ["F855",0x9B1F],
+ ["F856",0x9B20],
+ ["F857",0x9C52],
+ ["F858",0x9C58],
+ ["F859",0x9C50],
+ ["F85A",0x9C4A],
+ ["F85B",0x9C4D],
+ ["F85C",0x9C4B],
+ ["F85D",0x9C55],
+ ["F85E",0x9C59],
+ ["F85F",0x9C4C],
+ ["F860",0x9C4E],
+ ["F861",0x9DFB],
+ ["F862",0x9DF7],
+ ["F863",0x9DEF],
+ ["F864",0x9DE3],
["F865",0x9DEB],
- ["F86F",0x9DEC],
- ["F873",0x9DED],
+ ["F866",0x9DF8],
+ ["F867",0x9DE4],
+ ["F868",0x9DF6],
+ ["F869",0x9DE1],
["F86A",0x9DEE],
- ["F863",0x9DEF],
- ["F86D",0x9DF0],
+ ["F86B",0x9DE6],
["F86C",0x9DF2],
- ["F871",0x9DF3],
+ ["F86D",0x9DF0],
+ ["F86E",0x9DE2],
+ ["F86F",0x9DEC],
["F870",0x9DF4],
- ["F7C4",0x9DF5],
- ["F868",0x9DF6],
- ["F862",0x9DF7],
- ["F866",0x9DF8],
- ["C64E",0x9DF9],
- ["C64F",0x9DFA],
- ["F861",0x9DFB],
- ["F8E6",0x9DFD],
- ["F8DD",0x9DFE],
- ["F8E5",0x9DFF],
- ["F8E2",0x9E00],
- ["F8E3",0x9E01],
- ["F8DC",0x9E02],
- ["F8DF",0x9E03],
- ["F8E7",0x9E04],
- ["F8E1",0x9E05],
- ["F8E0",0x9E06],
- ["F8DE",0x9E07],
- ["F8E4",0x9E09],
- ["F95D",0x9E0B],
- ["F95E",0x9E0D],
- ["F960",0x9E0F],
- ["F95F",0x9E10],
- ["F962",0x9E11],
- ["F961",0x9E12],
- ["F97C",0x9E13],
- ["F97B",0x9E14],
- ["F9B7",0x9E15],
- ["F9B8",0x9E17],
- ["F9C5",0x9E19],
- ["C678",0x9E1A],
- ["C67C",0x9E1B],
- ["F9CF",0x9E1D],
- ["C67D",0x9E1E],
- ["B3BF",0x9E75],
- ["C4D0",0x9E79],
- ["F6C9",0x9E7A],
- ["C650",0x9E7C],
- ["C651",0x9E7D],
- ["B3C0",0x9E7F],
- ["E0EE",0x9E80],
- ["B9A8",0x9E82],
- ["E8F0",0x9E83],
- ["ECB0",0x9E86],
- ["ECB1",0x9E87],
- ["ECAF",0x9E88],
- ["EFAB",0x9E89],
- ["EFAA",0x9E8A],
- ["C247",0x9E8B],
- ["F1DF",0x9E8C],
- ["EFAC",0x9E8D],
- ["F1DE",0x9E8E],
- ["F3F3",0x9E91],
- ["C451",0x9E92],
- ["C453",0x9E93],
- ["F3F2",0x9E94],
- ["C452",0x9E97],
- ["F5B1",0x9E99],
- ["F5B3",0x9E9A],
- ["F5B2",0x9E9B],
- ["F6CA",0x9E9C],
- ["C565",0x9E9D],
- ["C5EF",0x9E9F],
- ["F8E8",0x9EA0],
- ["F963",0x9EA1],
- ["F9D2",0x9EA4],
- ["B3C1",0x9EA5],
- ["E4E5",0x9EA7],
- ["BEA2",0x9EA9],
- ["ECB3",0x9EAD],
- ["ECB2",0x9EAE],
- ["EFAD",0x9EB0],
- ["C454",0x9EB4],
- ["C4D1",0x9EB5],
- ["F7C7",0x9EB6],
- ["F9CB",0x9EB7],
- ["B3C2",0x9EBB],
- ["BBF2",0x9EBC],
- ["BEA3",0x9EBE],
- ["F3F4",0x9EC0],
+ ["F871",0x9DF3],
+ ["F872",0x9DE8],
+ ["F873",0x9DED],
["F874",0x9EC2],
- ["B6C0",0x9EC3],
- ["EFAE",0x9EC8],
- ["C664",0x9ECC],
- ["B6C1",0x9ECD],
- ["BEA4",0x9ECE],
- ["C248",0x9ECF],
["F875",0x9ED0],
- ["B6C2",0x9ED1],
- ["E8F1",0x9ED3],
- ["C072",0x9ED4],
- ["ECB4",0x9ED5],
- ["ECB5",0x9ED6],
- ["C071",0x9ED8],
- ["EFAF",0x9EDA],
- ["C24C",0x9EDB],
- ["C24A",0x9EDC],
- ["C24B",0x9EDD],
- ["C249",0x9EDE],
- ["F1E0",0x9EDF],
- ["C35C",0x9EE0],
- ["F5B5",0x9EE4],
- ["F5B4",0x9EE5],
- ["F5B7",0x9EE6],
- ["F5B6",0x9EE7],
- ["C4D2",0x9EE8],
- ["F6CB",0x9EEB],
- ["F6CD",0x9EED],
- ["F6CC",0x9EEE],
- ["C566",0x9EEF],
- ["F7C8",0x9EF0],
["F876",0x9EF2],
["F877",0x9EF3],
- ["C5F0",0x9EF4],
- ["F964",0x9EF5],
- ["F97D",0x9EF6],
- ["C675",0x9EF7],
- ["DCB0",0x9EF9],
- ["ECB6",0x9EFA],
- ["EFB0",0x9EFB],
- ["F3F5",0x9EFC],
- ["E0EF",0x9EFD],
- ["EFB1",0x9EFF],
- ["F1E2",0x9F00],
- ["F1E1",0x9F01],
["F878",0x9F06],
- ["C652",0x9F07],
- ["F965",0x9F09],
- ["F97E",0x9F0A],
- ["B9A9",0x9F0E],
- ["E8F2",0x9F0F],
- ["E8F3",0x9F10],
- ["ECB7",0x9F12],
- ["B9AA",0x9F13],
- ["C35D",0x9F15],
- ["F1E3",0x9F16],
- ["F6CF",0x9F18],
- ["C567",0x9F19],
- ["F6D0",0x9F1A],
- ["F6CE",0x9F1B],
["F879",0x9F1C],
- ["F8E9",0x9F1E],
- ["B9AB",0x9F20],
- ["EFB4",0x9F22],
- ["EFB3",0x9F23],
- ["EFB2",0x9F24],
- ["F1E4",0x9F25],
- ["F1E8",0x9F28],
- ["F1E7",0x9F29],
- ["F1E6",0x9F2A],
- ["F1E5",0x9F2B],
- ["C35E",0x9F2C],
- ["F3F6",0x9F2D],
- ["F5B9",0x9F2E],
- ["C4D3",0x9F2F],
- ["F5B8",0x9F30],
- ["F6D1",0x9F31],
- ["F7CB",0x9F32],
- ["F7CA",0x9F33],
- ["C5C4",0x9F34],
- ["F7C9",0x9F35],
- ["F87C",0x9F36],
- ["F87B",0x9F37],
["F87A",0x9F38],
- ["BBF3",0x9F3B],
- ["ECB8",0x9F3D],
- ["C24D",0x9F3E],
- ["F3F7",0x9F40],
- ["F3F8",0x9F41],
- ["F7CC",0x9F42],
+ ["F87B",0x9F37],
+ ["F87C",0x9F36],
["F87D",0x9F43],
- ["F8EA",0x9F46],
- ["F966",0x9F47],
- ["F9B9",0x9F48],
- ["F9D4",0x9F49],
- ["BBF4",0x9F4A],
- ["C24E",0x9F4B],
- ["F1E9",0x9F4C],
- ["F3F9",0x9F4D],
- ["F6D2",0x9F4E],
["F87E",0x9F4F],
- ["BEA6",0x9F52],
- ["EFB5",0x9F54],
- ["F1EA",0x9F55],
- ["F3FA",0x9F56],
- ["F3FB",0x9F57],
- ["F3FC",0x9F58],
- ["F5BE",0x9F59],
- ["F5BA",0x9F5B],
- ["C568",0x9F5C],
- ["F5BD",0x9F5D],
- ["F5BC",0x9F5E],
- ["C4D4",0x9F5F],
- ["F5BB",0x9F60],
- ["C4D6",0x9F61],
- ["C4D5",0x9F63],
- ["F6D4",0x9F64],
- ["F6D3",0x9F65],
- ["C569",0x9F66],
- ["C56A",0x9F67],
- ["C5C6",0x9F6A],
- ["F7CD",0x9F6B],
- ["C5C5",0x9F6C],
+ ["F8A1",0x9F71],
+ ["F8A2",0x9F70],
["F8A3",0x9F6E],
["F8A4",0x9F6F],
- ["F8A2",0x9F70],
- ["F8A1",0x9F71],
- ["C654",0x9F72],
+ ["F8A5",0x56D3],
+ ["F8A6",0x56CD],
+ ["F8A7",0x5B4E],
+ ["F8A8",0x5C6D],
+ ["F8A9",0x652D],
+ ["F8AA",0x66ED],
+ ["F8AB",0x66EE],
+ ["F8AC",0x6B13],
+ ["F8AD",0x705F],
+ ["F8AE",0x7061],
+ ["F8AF",0x705D],
+ ["F8B0",0x7060],
+ ["F8B1",0x7223],
+ ["F8B2",0x74DB],
+ ["F8B3",0x74E5],
+ ["F8B4",0x77D5],
+ ["F8B5",0x7938],
+ ["F8B6",0x79B7],
+ ["F8B7",0x79B6],
+ ["F8B8",0x7C6A],
+ ["F8B9",0x7E97],
+ ["F8BA",0x7F89],
+ ["F8BB",0x826D],
+ ["F8BC",0x8643],
+ ["F8BD",0x8838],
+ ["F8BE",0x8837],
+ ["F8BF",0x8835],
+ ["F8C0",0x884B],
+ ["F8C1",0x8B94],
+ ["F8C2",0x8B95],
+ ["F8C3",0x8E9E],
+ ["F8C4",0x8E9F],
+ ["F8C5",0x8EA0],
+ ["F8C6",0x8E9D],
+ ["F8C7",0x91BE],
+ ["F8C8",0x91BD],
+ ["F8C9",0x91C2],
+ ["F8CA",0x946B],
+ ["F8CB",0x9468],
+ ["F8CC",0x9469],
+ ["F8CD",0x96E5],
+ ["F8CE",0x9746],
+ ["F8CF",0x9743],
+ ["F8D0",0x9747],
+ ["F8D1",0x97C7],
+ ["F8D2",0x97E5],
+ ["F8D3",0x9A5E],
+ ["F8D4",0x9AD5],
+ ["F8D5",0x9B59],
+ ["F8D6",0x9C63],
+ ["F8D7",0x9C67],
+ ["F8D8",0x9C66],
+ ["F8D9",0x9C62],
+ ["F8DA",0x9C5E],
+ ["F8DB",0x9C60],
+ ["F8DC",0x9E02],
+ ["F8DD",0x9DFE],
+ ["F8DE",0x9E07],
+ ["F8DF",0x9E03],
+ ["F8E0",0x9E06],
+ ["F8E1",0x9E05],
+ ["F8E2",0x9E00],
+ ["F8E3",0x9E01],
+ ["F8E4",0x9E09],
+ ["F8E5",0x9DFF],
+ ["F8E6",0x9DFD],
+ ["F8E7",0x9E04],
+ ["F8E8",0x9EA0],
+ ["F8E9",0x9F1E],
+ ["F8EA",0x9F46],
["F8EB",0x9F74],
["F8EC",0x9F75],
["F8ED",0x9F76],
- ["C653",0x9F77],
+ ["F8EE",0x56D4],
+ ["F8EF",0x652E],
+ ["F8F0",0x65B8],
+ ["F8F1",0x6B18],
+ ["F8F2",0x6B19],
+ ["F8F3",0x6B17],
+ ["F8F4",0x6B1A],
+ ["F8F5",0x7062],
+ ["F8F6",0x7226],
+ ["F8F7",0x72AA],
+ ["F8F8",0x77D8],
+ ["F8F9",0x77D9],
+ ["F8FA",0x7939],
+ ["F8FB",0x7C69],
+ ["F8FC",0x7C6B],
+ ["F8FD",0x7CF6],
+ ["F8FE",0x7E9A],
+ ["F940",0x7E98],
+ ["F941",0x7E9B],
+ ["F942",0x7E99],
+ ["F943",0x81E0],
+ ["F944",0x81E1],
+ ["F945",0x8646],
+ ["F946",0x8647],
+ ["F947",0x8648],
+ ["F948",0x8979],
+ ["F949",0x897A],
+ ["F94A",0x897C],
+ ["F94B",0x897B],
+ ["F94C",0x89FF],
+ ["F94D",0x8B98],
+ ["F94E",0x8B99],
+ ["F94F",0x8EA5],
+ ["F950",0x8EA4],
+ ["F951",0x8EA3],
+ ["F952",0x946E],
+ ["F953",0x946D],
+ ["F954",0x946F],
+ ["F955",0x9471],
+ ["F956",0x9473],
+ ["F957",0x9749],
+ ["F958",0x9872],
+ ["F959",0x995F],
+ ["F95A",0x9C68],
+ ["F95B",0x9C6E],
+ ["F95C",0x9C6D],
+ ["F95D",0x9E0B],
+ ["F95E",0x9E0D],
+ ["F95F",0x9E10],
+ ["F960",0x9E0F],
+ ["F961",0x9E12],
+ ["F962",0x9E11],
+ ["F963",0x9EA1],
+ ["F964",0x9EF5],
+ ["F965",0x9F09],
+ ["F966",0x9F47],
["F967",0x9F78],
- ["F96A",0x9F79],
- ["F969",0x9F7A],
["F968",0x9F7B],
+ ["F969",0x9F7A],
+ ["F96A",0x9F79],
+ ["F96B",0x571E],
+ ["F96C",0x7066],
+ ["F96D",0x7C6F],
+ ["F96E",0x883C],
+ ["F96F",0x8DB2],
+ ["F970",0x8EA6],
+ ["F971",0x91C3],
+ ["F972",0x9474],
+ ["F973",0x9478],
+ ["F974",0x9476],
+ ["F975",0x9475],
+ ["F976",0x9A60],
+ ["F977",0x9C74],
+ ["F978",0x9C73],
+ ["F979",0x9C71],
+ ["F97A",0x9C75],
+ ["F97B",0x9E14],
+ ["F97C",0x9E13],
+ ["F97D",0x9EF6],
+ ["F97E",0x9F0A],
+ ["F9A1",0x9FA4],
+ ["F9A2",0x7068],
+ ["F9A3",0x7065],
+ ["F9A4",0x7CF7],
+ ["F9A5",0x866A],
+ ["F9A6",0x883E],
+ ["F9A7",0x883D],
+ ["F9A8",0x883F],
+ ["F9A9",0x8B9E],
+ ["F9AA",0x8C9C],
+ ["F9AB",0x8EA9],
+ ["F9AC",0x8EC9],
+ ["F9AD",0x974B],
+ ["F9AE",0x9873],
+ ["F9AF",0x9874],
+ ["F9B0",0x98CC],
+ ["F9B1",0x9961],
+ ["F9B2",0x99AB],
+ ["F9B3",0x9A64],
+ ["F9B4",0x9A66],
+ ["F9B5",0x9A67],
+ ["F9B6",0x9B24],
+ ["F9B7",0x9E15],
+ ["F9B8",0x9E17],
+ ["F9B9",0x9F48],
+ ["F9BA",0x6207],
+ ["F9BB",0x6B1E],
+ ["F9BC",0x7227],
+ ["F9BD",0x864C],
+ ["F9BE",0x8EA8],
+ ["F9BF",0x9482],
+ ["F9C0",0x9480],
+ ["F9C1",0x9481],
+ ["F9C2",0x9A69],
+ ["F9C3",0x9A68],
+ ["F9C4",0x9B2E],
+ ["F9C5",0x9E19],
+ ["F9C6",0x7229],
+ ["F9C7",0x864B],
+ ["F9C8",0x8B9F],
+ ["F9C9",0x9483],
+ ["F9CA",0x9C79],
+ ["F9CB",0x9EB7],
+ ["F9CC",0x7675],
+ ["F9CD",0x9A6B],
+ ["F9CE",0x9C7A],
+ ["F9CF",0x9E1D],
+ ["F9D0",0x7069],
+ ["F9D1",0x706A],
+ ["F9D2",0x9EA4],
["F9D3",0x9F7E],
- ["C073",0x9F8D],
- ["C365",0x9F90],
- ["F5BF",0x9F91],
- ["F6D5",0x9F92],
- ["C5C7",0x9F94],
- ["F7CE",0x9F95],
+ ["F9D4",0x9F49],
["F9D5",0x9F98],
- ["C074",0x9F9C],
- ["EFB6",0x9FA0],
- ["F7CF",0x9FA2],
- ["F9A1",0x9FA4],
- ["C94A",0xFA0C],
- ["DDFC",0xFA0D],
- ["A14A",0xFE30],
- ["A157",0xFE31],
- ["A159",0xFE33],
- ["A15B",0xFE34],
- ["A15F",0xFE35],
- ["A160",0xFE36],
- ["A163",0xFE37],
- ["A164",0xFE38],
- ["A167",0xFE39],
- ["A168",0xFE3A],
- ["A16B",0xFE3B],
- ["A16C",0xFE3C],
- ["A16F",0xFE3D],
- ["A170",0xFE3E],
- ["A173",0xFE3F],
- ["A174",0xFE40],
- ["A177",0xFE41],
- ["A178",0xFE42],
- ["A17B",0xFE43],
- ["A17C",0xFE44],
- ["A1C6",0xFE49],
- ["A1C7",0xFE4A],
- ["A1CA",0xFE4B],
- ["A1CB",0xFE4C],
- ["A1C8",0xFE4D],
- ["A1C9",0xFE4E],
- ["A15C",0xFE4F],
- ["A14D",0xFE50],
- ["A14F",0xFE52],
- ["A151",0xFE54],
- ["A152",0xFE55],
- ["A153",0xFE56],
- ["A154",0xFE57],
- ["A17D",0xFE59],
- ["A17E",0xFE5A],
- ["A1A1",0xFE5B],
- ["A1A2",0xFE5C],
- ["A1A3",0xFE5D],
- ["A1A4",0xFE5E],
- ["A1CC",0xFE5F],
- ["A1CD",0xFE60],
- ["A1CE",0xFE61],
- ["A1DE",0xFE62],
- ["A1DF",0xFE63],
- ["A1E0",0xFE64],
- ["A1E1",0xFE65],
- ["A1E2",0xFE66],
- ["A24C",0xFE69],
- ["A24D",0xFE6A],
- ["A24E",0xFE6B],
- ["A149",0xFF01],
- ["A1AD",0xFF03],
- ["A243",0xFF04],
- ["A248",0xFF05],
- ["A1AE",0xFF06],
- ["A15D",0xFF08],
- ["A15E",0xFF09],
- ["A1AF",0xFF0A],
- ["A1CF",0xFF0B],
- ["A141",0xFF0C],
- ["A1D0",0xFF0D],
- ["A144",0xFF0E],
- ["A241",0xFF0F],
- ["A2AF",0xFF10],
- ["A2B0",0xFF11],
- ["A2B1",0xFF12],
- ["A2B2",0xFF13],
- ["A2B3",0xFF14],
- ["A2B4",0xFF15],
- ["A2B5",0xFF16],
- ["A2B6",0xFF17],
- ["A2B7",0xFF18],
- ["A2B8",0xFF19],
- ["A147",0xFF1A],
- ["A146",0xFF1B],
- ["A1D5",0xFF1C],
- ["A1D7",0xFF1D],
- ["A1D6",0xFF1E],
- ["A148",0xFF1F],
- ["A249",0xFF20],
- ["A2CF",0xFF21],
- ["A2D0",0xFF22],
- ["A2D1",0xFF23],
- ["A2D2",0xFF24],
- ["A2D3",0xFF25],
- ["A2D4",0xFF26],
- ["A2D5",0xFF27],
- ["A2D6",0xFF28],
- ["A2D7",0xFF29],
- ["A2D8",0xFF2A],
- ["A2D9",0xFF2B],
- ["A2DA",0xFF2C],
- ["A2DB",0xFF2D],
- ["A2DC",0xFF2E],
- ["A2DD",0xFF2F],
- ["A2DE",0xFF30],
- ["A2DF",0xFF31],
- ["A2E0",0xFF32],
- ["A2E1",0xFF33],
- ["A2E2",0xFF34],
- ["A2E3",0xFF35],
- ["A2E4",0xFF36],
- ["A2E5",0xFF37],
- ["A2E6",0xFF38],
- ["A2E7",0xFF39],
- ["A2E8",0xFF3A],
- ["A242",0xFF3C],
- ["A1C4",0xFF3F],
- ["A2E9",0xFF41],
- ["A2EA",0xFF42],
- ["A2EB",0xFF43],
- ["A2EC",0xFF44],
- ["A2ED",0xFF45],
- ["A2EE",0xFF46],
- ["A2EF",0xFF47],
- ["A2F0",0xFF48],
- ["A2F1",0xFF49],
- ["A2F2",0xFF4A],
- ["A2F3",0xFF4B],
- ["A2F4",0xFF4C],
- ["A2F5",0xFF4D],
- ["A2F6",0xFF4E],
- ["A2F7",0xFF4F],
- ["A2F8",0xFF50],
- ["A2F9",0xFF51],
- ["A2FA",0xFF52],
- ["A2FB",0xFF53],
- ["A2FC",0xFF54],
- ["A2FD",0xFF55],
- ["A2FE",0xFF56],
- ["A340",0xFF57],
- ["A341",0xFF58],
- ["A342",0xFF59],
- ["A343",0xFF5A],
- ["A161",0xFF5B],
- ["A155",0xFF5C],
- ["A162",0xFF5D],
- ["A14E",0xFF64],
+ ["F9D6",0x7881],
+ ["F9D7",0x92B9],
+ ["F9D8",0x88CF],
+ ["F9D9",0x58BB],
+ ["F9DA",0x6052],
+ ["F9DB",0x7CA7],
+ ["F9DC",0x5AFA],
+ ["F9DD",0x2554],
+ ["F9DE",0x2566],
+ ["F9DF",0x2557],
+ ["F9E0",0x2560],
+ ["F9E1",0x256C],
+ ["F9E2",0x2563],
+ ["F9E3",0x255A],
+ ["F9E4",0x2569],
+ ["F9E5",0x255D],
+ ["F9E6",0x2552],
+ ["F9E7",0x2564],
+ ["F9E8",0x2555],
+ ["F9E9",0x255E],
+ ["F9EA",0x256A],
+ ["F9EB",0x2561],
+ ["F9EC",0x2558],
+ ["F9ED",0x2567],
+ ["F9EE",0x255B],
+ ["F9EF",0x2553],
+ ["F9F0",0x2565],
+ ["F9F1",0x2556],
+ ["F9F2",0x255F],
+ ["F9F3",0x256B],
+ ["F9F4",0x2562],
+ ["F9F5",0x2559],
+ ["F9F6",0x2568],
+ ["F9F7",0x255C],
+ ["F9F8",0x2551],
+ ["F9F9",0x2550],
+ ["F9FA",0x256D],
+ ["F9FB",0x256E],
+ ["F9FC",0x2570],
+ ["F9FD",0x256F],
+ ["F9FE",0x2593],
+ ["FA40",0xE000],
+ ["FA41",0xE001],
+ ["FA42",0xE002],
+ ["FA43",0xE003],
+ ["FA44",0xE004],
+ ["FA45",0xE005],
+ ["FA46",0xE006],
+ ["FA47",0xE007],
+ ["FA48",0xE008],
+ ["FA49",0xE009],
+ ["FA4A",0xE00A],
+ ["FA4B",0xE00B],
+ ["FA4C",0xE00C],
+ ["FA4D",0xE00D],
+ ["FA4E",0xE00E],
+ ["FA4F",0xE00F],
+ ["FA50",0xE010],
+ ["FA51",0xE011],
+ ["FA52",0xE012],
+ ["FA53",0xE013],
+ ["FA54",0xE014],
+ ["FA55",0xE015],
+ ["FA56",0xE016],
+ ["FA57",0xE017],
+ ["FA58",0xE018],
+ ["FA59",0xE019],
+ ["FA5A",0xE01A],
+ ["FA5B",0xE01B],
+ ["FA5C",0xE01C],
+ ["FA5D",0xE01D],
+ ["FA5E",0xE01E],
+ ["FA5F",0xE01F],
+ ["FA60",0xE020],
+ ["FA61",0xE021],
+ ["FA62",0xE022],
+ ["FA63",0xE023],
+ ["FA64",0x7232],
+ ["FA65",0x723C],
+ ["FA66",0x7266],
+ ["FA67",0x7282],
+ ["FA68",0x728F],
+ ["FA69",0x729F],
+ ["FA6A",0x72AD],
+ ["FA6B",0x72B1],
+ ["FA6C",0x72B8],
+ ["FA6D",0x72BE],
+ ["FA6E",0x72CD],
+ ["FA6F",0x72DB],
+ ["FA70",0x7324],
+ ["FA71",0x732F],
+ ["FA72",0x7338],
+ ["FA73",0x7339],
+ ["FA74",0x73BD],
+ ["FA75",0x73CE],
+ ["FA76",0x73F1],
+ ["FA77",0x7476],
+ ["FA78",0x74A2],
+ ["FA79",0x7501],
+ ["FA7A",0x7519],
+ ["FA7B",0x7523],
+ ["FA7C",0x753C],
+ ["FA7D",0x7544],
+ ["FA7E",0x7549],
+ ["FAA1",0x754D],
+ ["FAA2",0x756D],
+ ["FAA3",0x7582],
+ ["FAA4",0x7583],
+ ["FAA5",0x7589],
+ ["FAA6",0x75AC],
+ ["FAA7",0x75D6],
+ ["FAA8",0x75E9],
+ ["FAA9",0x7640],
+ ["FAAA",0x764D],
+ ["FAAB",0x7654],
+ ["FAAC",0x7668],
+ ["FAAD",0x7680],
+ ["FAAE",0x7683],
+ ["FAAF",0x7690],
+ ["FAB0",0x76B7],
+ ["FAB1",0x76B9],
+ ["FAB2",0x770D],
+ ["FAB3",0x771E],
+ ["FAB4",0x7743],
+ ["FAB5",0x7818],
+ ["FAB6",0x781C],
+ ["FAB7",0x7839],
+ ["FAB8",0x783C],
+ ["FAB9",0x7847],
+ ["FABA",0x7856],
+ ["FABB",0x787A],
+ ["FABC",0x78B5],
+ ["FABD",0x78B9],
+ ["FABE",0x78C6],
+ ["FABF",0x78D9],
+ ["FAC0",0x7907],
+ ["FAC1",0x7930],
+ ["FAC2",0x7934],
+ ["FAC3",0x793B],
+ ["FAC4",0x7980],
+ ["FAC5",0x799D],
+ ["FAC6",0x79C3],
+ ["FAC7",0x79E1],
+ ["FAC8",0x7A06],
+ ["FAC9",0x7A0E],
+ ["FACA",0x7A43],
+ ["FACB",0x7A50],
+ ["FACC",0x7AC3],
+ ["FACD",0x7AD2],
+ ["FACE",0x7AE2],
+ ["FACF",0x7AE7],
+ ["FAD0",0x7AF8],
+ ["FAD1",0x7B36],
+ ["FAD2",0x7B62],
+ ["FAD3",0x7B6C],
+ ["FAD4",0x7B7A],
+ ["FAD5",0x7B7B],
+ ["FAD6",0x7B9A],
+ ["FAD7",0x7B9E],
+ ["FAD8",0x7B9F],
+ ["FAD9",0x7BA2],
+ ["FADA",0x7BA7],
+ ["FADB",0x7BF6],
+ ["FADC",0x7C12],
+ ["FADD",0x7C14],
+ ["FADE",0x7C4F],
+ ["FADF",0x7C56],
+ ["FAE0",0x7C58],
+ ["FAE1",0x7CAB],
+ ["FAE2",0x7CFA],
+ ["FAE3",0x7D48],
+ ["FAE4",0x7D4B],
+ ["FAE5",0x7D77],
+ ["FAE6",0x7DD4],
+ ["FAE7",0x7DD5],
+ ["FAE8",0x7DD6],
+ ["FAE9",0x7DE4],
+ ["FAEA",0x7E4D],
+ ["FAEB",0x7E5D],
+ ["FAEC",0x7E7F],
+ ["FAED",0x7E89],
+ ["FAEE",0x7E8E],
+ ["FAEF",0x7E92],
+ ["FAF0",0x7ED4],
+ ["FAF1",0x7EF1],
+ ["FAF2",0x7F12],
+ ["FAF3",0x7F30],
+ ["FAF4",0x7F71],
+ ["FAF5",0x7F82],
+ ["FAF6",0x7FAE],
+ ["FAF7",0x7FC6],
+ ["FAF8",0x8020],
+ ["FAF9",0x8022],
+ ["FAFA",0x8025],
+ ["FAFB",0x8031],
+ ["FAFC",0x805F],
+ ["FAFD",0x8068],
+ ["FAFE",0x80AC],
+ ["FB40",0x80B7],
+ ["FB41",0x519A],
+ ["FB42",0x5416],
+ ["FB43",0x5414],
+ ["FB44",0x34DF],
+ ["FB45",0x4C7D],
+ ["FB46",0x62C3],
+ ["FB47",0xE0A4],
+ ["FB48",0xE0A5],
+ ["FB49",0xE0A6],
+ ["FB4A",0x54CB],
+ ["FB4B",0xE0A8],
+ ["FB4C",0x55BC],
+ ["FB4D",0x80B6],
+ ["FB4E",0x51A7],
+ ["FB4F",0xE0AC],
+ ["FB50",0xE0AD],
+ ["FB51",0xE0AE],
+ ["FB52",0x5513],
+ ["FB53",0x8226],
+ ["FB54",0xE0B1],
+ ["FB55",0x551E],
+ ["FB56",0x55DE],
+ ["FB57",0x63B9],
+ ["FB58",0x6898],
+ ["FB59",0xE0B6],
+ ["FB5A",0x5502],
+ ["FB5B",0x5569],
+ ["FB5C",0x75B4],
+ ["FB5D",0x63FC],
+ ["FB5E",0x9E84],
+ ["FB5F",0x922A],
+ ["FB60",0xE0BD],
+ ["FB61",0xE0BE],
+ ["FB62",0xE0BF],
+ ["FB63",0x88C7],
+ ["FB64",0x609E],
+ ["FB65",0x5625],
+ ["FB66",0x7145],
+ ["FB67",0x5AF2],
+ ["FB68",0xE0C5],
+ ["FB69",0x528F],
+ ["FB6A",0x564F],
+ ["FB6B",0x7793],
+ ["FB6C",0x8786],
+ ["FB6D",0x8E2D],
+ ["FB6E",0x81B6],
+ ["FB6F",0x35FE],
+ ["FB70",0x71F6],
+ ["FB71",0xE0CE],
+ ["FB72",0x8804],
+ ["FB73",0x9385],
+ ["FB74",0xE0D1],
+ ["FB75",0xE0D2],
+ ["FB76",0x7666],
+ ["FB77",0xE0D4],
+ ["FB78",0x9C72],
+ ["FB79",0xE0D6],
+ ["FB7A",0x62CE],
+ ["FB7B",0xE0D8],
+ ["FB7C",0x9E96],
+ ["FB7D",0x4989],
+ ["FB7E",0x7CD3],
+ ["FBA1",0x8EDA],
+ ["FBA2",0x9EAB],
+ ["FBA3",0x64E7],
+ ["FBA4",0xE0DF],
+ ["FBA5",0x82AA],
+ ["FBA6",0x6767],
+ ["FBA7",0x6D72],
+ ["FBA8",0x7906],
+ ["FBA9",0x79C4],
+ ["FBAA",0x7F4E],
+ ["FBAB",0x87EE],
+ ["FBAC",0xE0E7],
+ ["FBAD",0x83BE],
+ ["FBAE",0x862F],
+ ["FBAF",0x89A5],
+ ["FBB0",0x460F],
+ ["FBB1",0xE0EC],
+ ["FBB2",0x98C8],
+ ["FBB3",0x9940],
+ ["FBB4",0x994D],
+ ["FBB5",0x9A0C],
+ ["FBB6",0x9AD7],
+ ["FBB7",0x9E98],
+ ["FBB8",0x9F26],
+ ["FBB9",0xE0F4],
+ ["FBBA",0x4F03],
+ ["FBBB",0xE0F6],
+ ["FBBC",0x4F39],
+ ["FBBD",0x4F32],
+ ["FBBE",0x4FAB],
+ ["FBBF",0x5056],
+ ["FBC0",0xE0FB],
+ ["FBC1",0x502E],
+ ["FBC2",0x50A6],
+ ["FBC3",0x50D9],
+ ["FBC4",0x510E],
+ ["FBC5",0x50ED],
+ ["FBC6",0x5101],
+ ["FBC7",0x51F4],
+ ["FBC8",0x521F],
+ ["FBC9",0x5260],
+ ["FBCA",0x5257],
+ ["FBCB",0x529A],
+ ["FBCC",0x52D1],
+ ["FBCD",0x52E0],
+ ["FBCE",0x52E1],
+ ["FBCF",0x51D3],
+ ["FBD0",0x51DF],
+ ["FBD1",0x7546],
+ ["FBD2",0x51FE],
+ ["FBD3",0x5332],
+ ["FBD4",0x532C],
+ ["FBD5",0x5333],
+ ["FBD6",0x53AB],
+ ["FBD7",0x53AA],
+ ["FBD8",0x9F8E],
+ ["FBD9",0x5469],
+ ["FBDA",0x549C],
+ ["FBDB",0x53DA],
+ ["FBDC",0x6ACA],
+ ["FBDD",0x5573],
+ ["FBDE",0xE119],
+ ["FBDF",0x35D6],
+ ["FBE0",0xE11B],
+ ["FBE1",0x5611],
+ ["FBE2",0x564D],
+ ["FBE3",0xE11E],
+ ["FBE4",0x5654],
+ ["FBE5",0x35F3],
+ ["FBE6",0xE121],
+ ["FBE7",0x5746],
+ ["FBE8",0x577A],
+ ["FBE9",0x5767],
+ ["FBEA",0x583A],
+ ["FBEB",0x57E6],
+ ["FBEC",0x57DD],
+ ["FBED",0x5840],
+ ["FBEE",0xE129],
+ ["FBEF",0x5826],
+ ["FBF0",0x58DC],
+ ["FBF1",0x59B7],
+ ["FBF2",0x59D9],
+ ["FBF3",0x5C20],
+ ["FBF4",0xE12F],
+ ["FBF5",0x5CD1],
+ ["FBF6",0x5CE9],
+ ["FBF7",0x5D46],
+ ["FBF8",0x5D8E],
+ ["FBF9",0xE134],
+ ["FBFA",0x5DF5],
+ ["FBFB",0x5E0B],
+ ["FBFC",0x5E12],
+ ["FBFD",0x5E2E],
+ ["FBFE",0x5E5E],
+ ["FC40",0xE13A],
+ ["FC41",0x5F4D],
+ ["FC42",0x7A7D],
+ ["FC43",0x5BC3],
+ ["FC44",0x7ABB],
+ ["FC45",0xE13F],
+ ["FC46",0xE140],
+ ["FC47",0x5FA4],
+ ["FC48",0x5FBA],
+ ["FC49",0x5FBC],
+ ["FC4A",0xE144],
+ ["FC4B",0x6077],
+ ["FC4C",0x60A4],
+ ["FC4D",0x60B3],
+ ["FC4E",0x60FD],
+ ["FC4F",0x6130],
+ ["FC50",0xE14A],
+ ["FC51",0x619C],
+ ["FC52",0x6159],
+ ["FC53",0x617D],
+ ["FC54",0x615C],
+ ["FC55",0x637F],
+ ["FC56",0x61E2],
+ ["FC57",0x70D5],
+ ["FC58",0x6239],
+ ["FC59",0x6268],
+ ["FC5A",0x6285],
+ ["FC5B",0x6282],
+ ["FC5C",0x62A6],
+ ["FC5D",0x62D5],
+ ["FC5E",0x6364],
+ ["FC5F",0x6335],
+ ["FC60",0x6490],
+ ["FC61",0x3A5C],
+ ["FC62",0x6648],
+ ["FC63",0x6667],
+ ["FC64",0x671E],
+ ["FC65",0x6803],
+ ["FC66",0x67AC],
+ ["FC67",0x67F9],
+ ["FC68",0x68B6],
+ ["FC69",0x692C],
+ ["FC6A",0x6901],
+ ["FC6B",0x6900],
+ ["FC6C",0x68CA],
+ ["FC6D",0x6973],
+ ["FC6E",0x6980],
+ ["FC6F",0x693E],
+ ["FC70",0xE16A],
+ ["FC71",0x69B2],
+ ["FC72",0x69C0],
+ ["FC73",0x698A],
+ ["FC74",0x69FA],
+ ["FC75",0x69E9],
+ ["FC76",0x6AB2],
+ ["FC77",0x6A52],
+ ["FC78",0x6A9D],
+ ["FC79",0x6B1D],
+ ["FC7A",0x6B52],
+ ["FC7B",0x6BFA],
+ ["FC7C",0x3CD1],
+ ["FC7D",0x6CCE],
+ ["FC7E",0x6E4F],
+ ["FCA1",0x6DB9],
+ ["FCA2",0x6F44],
+ ["FCA3",0xE17B],
+ ["FCA4",0x6FDA],
+ ["FCA5",0x7081],
+ ["FCA6",0x79CC],
+ ["FCA7",0x7134],
+ ["FCA8",0x3DCC],
+ ["FCA9",0x7176],
+ ["FCAA",0xE182],
+ ["FCAB",0xE183],
+ ["FCAC",0x7215],
+ ["FCAD",0x7250],
+ ["FCAE",0x7287],
+ ["FCAF",0x732C],
+ ["FCB0",0x72B2],
+ ["FCB1",0x72E2],
+ ["FCB2",0x7302],
+ ["FCB3",0x7348],
+ ["FCB4",0x7328],
+ ["FCB5",0x734F],
+ ["FCB6",0x7371],
+ ["FCB7",0x6585],
+ ["FCB8",0xE190],
+ ["FCB9",0x745D],
+ ["FCBA",0x7468],
+ ["FCBB",0x751E],
+ ["FCBC",0x7553],
+ ["FCBD",0x757A],
+ ["FCBE",0x76A1],
+ ["FCBF",0x76CC],
+ ["FCC0",0x7724],
+ ["FCC1",0x772B],
+ ["FCC2",0x4065],
+ ["FCC3",0x7853],
+ ["FCC4",0x78D3],
+ ["FCC5",0x78D8],
+ ["FCC6",0x9D7E],
+ ["FCC7",0x78AF],
+ ["FCC8",0xE1A0],
+ ["FCC9",0x6142],
+ ["FCCA",0x79A9],
+ ["FCCB",0x9C3A],
+ ["FCCC",0x79D4],
+ ["FCCD",0xE1A5],
+ ["FCCE",0x7A2D],
+ ["FCCF",0x7A3E],
+ ["FCD0",0x7A49],
+ ["FCD1",0x7ADD],
+ ["FCD2",0x7ADA],
+ ["FCD3",0x75C3],
+ ["FCD4",0x7607],
+ ["FCD5",0x7602],
+ ["FCD6",0xE1AE],
+ ["FCD7",0x7667],
+ ["FCD8",0x766F],
+ ["FCD9",0x5620],
+ ["FCDA",0x8A67],
+ ["FCDB",0x9F17],
+ ["FCDC",0x7B1F],
+ ["FCDD",0x7B92],
+ ["FCDE",0x7BA3],
+ ["FCDF",0x7BCF],
+ ["FCE0",0xE1B8],
+ ["FCE1",0x7BFC],
+ ["FCE2",0x7C42],
+ ["FCE3",0x7C51],
+ ["FCE4",0x7C5D],
+ ["FCE5",0x7C70],
+ ["FCE6",0x7C7E],
+ ["FCE7",0x7C86],
+ ["FCE8",0x7C83],
+ ["FCE9",0x7CAC],
+ ["FCEA",0x7CC7],
+ ["FCEB",0x7CC2],
+ ["FCEC",0xE1C4],
+ ["FCED",0x7CDA],
+ ["FCEE",0xE1C6],
+ ["FCEF",0x7D4D],
+ ["FCF0",0x7D5A],
+ ["FCF1",0x7DF5],
+ ["FCF2",0x7E27],
+ ["FCF3",0x7E6E],
+ ["FCF4",0x9E95],
+ ["FCF5",0x5273],
+ ["FCF6",0x801D],
+ ["FCF7",0x8062],
+ ["FCF8",0x8063],
+ ["FCF9",0x8066],
+ ["FCFA",0x805B],
+ ["FCFB",0x80A6],
+ ["FCFC",0x8103],
+ ["FCFD",0x9E81],
+ ["FCFE",0x81C8],
+ ["FD40",0xE1D7],
+ ["FD41",0x8FA0],
+ ["FD42",0x81F6],
+ ["FD43",0x821A],
+ ["FD44",0xE1DB],
+ ["FD45",0x8771],
+ ["FD46",0x87A9],
+ ["FD47",0x878C],
+ ["FD48",0x9E9E],
+ ["FD49",0x87C1],
+ ["FD4A",0x9E1C],
+ ["FD4B",0xE1E2],
+ ["FD4C",0x87D6],
+ ["FD4D",0x87F5],
+ ["FD4E",0x880F],
+ ["FD4F",0x8818],
+ ["FD50",0x882D],
+ ["FD51",0x8842],
+ ["FD52",0x8845],
+ ["FD53",0x9C35],
+ ["FD54",0x886E],
+ ["FD55",0x88AA],
+ ["FD56",0x88A0],
+ ["FD57",0x629D],
+ ["FD58",0x8943],
+ ["FD59",0x894D],
+ ["FD5A",0x7172],
+ ["FD5B",0x885E],
+ ["FD5C",0xE1F3],
+ ["FD5D",0x82FD],
+ ["FD5E",0x44B7],
+ ["FD5F",0x82D0],
+ ["FD60",0x8385],
+ ["FD61",0x9D02],
+ ["FD62",0x9F69],
+ ["FD63",0x8420],
+ ["FD64",0xE1FB],
+ ["FD65",0x84DA],
+ ["FD66",0x84AD],
+ ["FD67",0x44FB],
+ ["FD68",0x854B],
+ ["FD69",0xE200],
+ ["FD6A",0x8602],
+ ["FD6B",0x8610],
+ ["FD6C",0x63D1],
+ ["FD6D",0x8989],
+ ["FD6E",0x898A],
+ ["FD6F",0x8994],
+ ["FD70",0x9C45],
+ ["FD71",0x89BC],
+ ["FD72",0x8A7E],
+ ["FD73",0x8A49],
+ ["FD74",0x8B0C],
+ ["FD75",0x8B43],
+ ["FD76",0x8B81],
+ ["FD77",0x8B4C],
+ ["FD78",0xE20F],
+ ["FD79",0x8CAD],
+ ["FD7A",0x8CEB],
+ ["FD7B",0x8CF7],
+ ["FD7C",0x8D0C],
+ ["FD7D",0x8D82],
+ ["FD7E",0x8DA6],
+ ["FDA1",0x8DD4],
+ ["FDA2",0x8E28],
+ ["FDA3",0x8E4F],
+ ["FDA4",0x8E77],
+ ["FDA5",0x8E75],
+ ["FDA6",0x8EA7],
+ ["FDA7",0x8F19],
+ ["FDA8",0xE21D],
+ ["FDA9",0x8F5C],
+ ["FDAA",0x9D44],
+ ["FDAB",0x90C4],
+ ["FDAC",0x9151],
+ ["FDAD",0xE222],
+ ["FDAE",0x915C],
+ ["FDAF",0x9159],
+ ["FDB0",0x9167],
+ ["FDB1",0x917C],
+ ["FDB2",0x918E],
+ ["FDB3",0x91BB],
+ ["FDB4",0x9EA8],
+ ["FDB5",0x9056],
+ ["FDB6",0x904C],
+ ["FDB7",0x91FE],
+ ["FDB8",0x9262],
+ ["FDB9",0x92BE],
+ ["FDBA",0x936B],
+ ["FDBB",0x936E],
+ ["FDBC",0x93BA],
+ ["FDBD",0x9427],
+ ["FDBE",0x9597],
+ ["FDBF",0x95A7],
+ ["FDC0",0xE235],
+ ["FDC1",0x9638],
+ ["FDC2",0xE237],
+ ["FDC3",0x9683],
+ ["FDC4",0x9696],
+ ["FDC5",0x9681],
+ ["FDC6",0x96BD],
+ ["FDC7",0x9703],
+ ["FDC8",0x9721],
+ ["FDC9",0x9731],
+ ["FDCA",0x975F],
+ ["FDCB",0x979F],
+ ["FDCC",0x97B4],
+ ["FDCD",0x97B8],
+ ["FDCE",0x97BA],
+ ["FDCF",0x97BE],
+ ["FDD0",0x97C8],
+ ["FDD1",0x9EBF],
+ ["FDD2",0x981F],
+ ["FDD3",0x982E],
+ ["FDD4",0x9FA5],
+ ["FDD5",0x9847],
+ ["FDD6",0x984B],
+ ["FDD7",0x9866],
+ ["FDD8",0x986C],
+ ["FDD9",0x98B4],
+ ["FDDA",0x9F5A],
+ ["FDDB",0x98DC],
+ ["FDDC",0x98E6],
+ ["FDDD",0x9942],
+ ["FDDE",0x9939],
+ ["FDDF",0x993B],
+ ["FDE0",0x9F53],
+ ["FDE1",0x994A],
+ ["FDE2",0x9F45],
+ ["FDE3",0x4B7E],
+ ["FDE4",0x99DA],
+ ["FDE5",0x7AC8],
+ ["FDE6",0x9ABA],
+ ["FDE7",0x9ABD],
+ ["FDE8",0x9F02],
+ ["FDE9",0x9B2A],
+ ["FDEA",0xE25F],
+ ["FDEB",0x9B2D],
+ ["FDEC",0x9AE2],
+ ["FDED",0x9B02],
+ ["FDEE",0x9AFF],
+ ["FDEF",0x4C07],
+ ["FDF0",0x9B09],
+ ["FDF1",0x4C04],
+ ["FDF2",0x4C3B],
+ ["FDF3",0x9B8F],
+ ["FDF4",0x9B9D],
+ ["FDF5",0x9BB0],
+ ["FDF6",0x9C0C],
+ ["FDF7",0x9C15],
+ ["FDF8",0x9C0A],
+ ["FDF9",0x9BFF],
+ ["FDFA",0x9C2E],
+ ["FDFB",0x80E8],
+ ["FDFC",0x80E9],
+ ["FDFD",0x80EC],
+ ["FDFE",0x810E],
+ ["FE40",0x6C39],
+ ["FE41",0x4E6A],
+ ["FE42",0x9641],
+ ["FE43",0x58F2],
+ ["FE44",0x7962],
+ ["FE45",0x6822],
+ ["FE46",0xE27A],
+ ["FE47",0xE27B],
+ ["FE48",0x8107],
+ ["FE49",0x57D7],
+ ["FE4A",0x44EA],
+ ["FE4B",0x6435],
+ ["FE4C",0x8534],
+ ["FE4D",0x40DF],
+ ["FE4E",0xE282],
+ ["FE4F",0x691A],
+ ["FE50",0x9C02],
+ ["FE51",0x75B1],
+ ["FE52",0x83D3],
+ ["FE53",0x7171],
+ ["FE54",0x6A0B],
+ ["FE55",0xE289],
+ ["FE56",0x6A7A],
+ ["FE57",0x9AF4],
+ ["FE58",0xE28C],
+ ["FE59",0xE28D],
+ ["FE5A",0x77B9],
+ ["FE5B",0x6530],
+ ["FE5C",0x6D96],
+ ["FE5D",0x5637],
+ ["FE5E",0x6725],
+ ["FE5F",0x6A2B],
+ ["FE60",0x7D5D],
+ ["FE61",0x9061],
+ ["FE62",0x4E98],
+ ["FE63",0x7CA6],
+ ["FE64",0x7B39],
+ ["FE65",0xE299],
+ ["FE66",0x5975],
+ ["FE67",0x36C7],
+ ["FE68",0x707F],
+ ["FE69",0xE29D],
+ ["FE6A",0x6E8B],
+ ["FE6B",0xE29F],
+ ["FE6C",0xE2A0],
+ ["FE6D",0x975D],
+ ["FE6E",0x92D0],
+ ["FE6F",0x5754],
+ ["FE70",0xE2A4],
+ ["FE71",0x3ED9],
+ ["FE72",0xE2A6],
+ ["FE73",0xE2A7],
+ ["FE74",0x6199],
+ ["FE75",0x7460],
+ ["FE76",0x713F],
+ ["FE77",0x792E],
+ ["FE78",0x5A96],
+ ["FE79",0x9348],
+ ["FE7A",0x668E],
+ ["FE7B",0x4FFD],
+ ["FE7C",0x9341],
+ ["FE7D",0x3654],
+ ["FE7E",0x5D75],
+ ["FEA1",0x701E],
+ ["FEA2",0x657B],
+ ["FEA3",0x708D],
+ ["FEA4",0x5ECD],
+ ["FEA5",0xE2B7],
+ ["FEA6",0x60A7],
+ ["FEA7",0x7AB0],
+ ["FEA8",0x5F63],
+ ["FEA9",0xE2BB],
+ ["FEAA",0x73F7],
+ ["FEAB",0xE2BD],
+ ["FEAC",0x7468],
+ ["FEAD",0x75B4],
+ ["FEAE",0xE2C0],
+ ["FEAF",0x9B69],
+ ["FEB0",0x00BD],
+ ["FEB1",0x2153],
+ ["FEB2",0x2154],
+ ["FEB3",0x00BC],
+ ["FEB4",0x00BE],
+ ["FEB5",0x2155],
+ ["FEB6",0x2156],
+ ["FEB7",0x2157],
+ ["FEB8",0x2158],
+ ["FEB9",0x2159],
+ ["FEBA",0x215A],
+ ["FEBB",0x8692],
+ ["FEBC",0x86A0],
+ ["FEBD",0x86AD],
+ ["FEBE",0x86B2],
+ ["FEBF",0x87A5],
+ ["FEC0",0x87B1],
+ ["FEC1",0x215B],
+ ["FEC2",0x215C],
+ ["FEC3",0x215D],
+ ["FEC4",0x215E],
+ ["FEC5",0x87DA],
+ ["FEC6",0x884F],
+ ["FEC7",0x8860],
+ ["FEC8",0x8887],
+ ["FEC9",0x888F],
+ ["FECA",0x8890],
+ ["FECB",0x88E6],
+ ["FECC",0x88FF],
+ ["FECD",0x8900],
+ ["FECE",0x8924],
+ ["FECF",0x8947],
+ ["FED0",0x8954],
+ ["FED1",0x8965],
+ ["FED2",0x8980],
+ ["FED3",0x8991],
+ ["FED4",0x8A1C],
+ ["FED5",0x8A29],
+ ["FED6",0x8A2B],
+ ["FED7",0x8A38],
+ ["FED8",0x8A3D],
+ ["FED9",0x2312],
+ ["FEDA",0x8A90],
+ ["FEDB",0x8A94],
+ ["FEDC",0x8A9C],
+ ["FEDD",0x8AA9],
+ ["FEDE",0x8AAF],
+ ["FEDF",0x8AB4],
+ ["FEE0",0x8AEA],
+ ["FEE1",0x8B1F],
+ ["FEE2",0x2030],
+ ["FEE3",0x8B3F],
+ ["FEE4",0x8B4D],
+ ["FEE5",0x8B5E],
+ ["FEE6",0x8B62],
+ ["FEE7",0x8B69],
+ ["FEE8",0x8B9B],
+ ["FEE9",0x8C51],
+ ["FEEA",0x8C9B],
+ ["FEEB",0x8C9F],
+ ["FEEC",0x8CD4],
+ ["FEED",0x8CD6],
+ ["FEEE",0x8112],
+ ["FEEF",0x8131],
+ ["FEF0",0x8136],
+ ["FEF1",0x815F],
+ ["FEF2",0x816D],
+ ["FEF3",0x817D],
+ ["FEF4",0x8193],
+ ["FEF5",0x81AA],
+ ["FEF6",0x81B8],
+ ["FEF7",0x81C1],
+ ["FEF8",0x8229],
+ ["FEF9",0x822D],
+ ["FEFA",0x822E],
+ ["FEFB",0x823E],
+ ["FEFC",0x8262],
+ ["FEFD",0x826A],
+ ["FEFE",0x8288],
] \ No newline at end of file
diff --git a/enc/trans/big5.trans b/enc/trans/big5.trans
index ba7bae53f9..9dacfd1f7e 100644
--- a/enc/trans/big5.trans
+++ b/enc/trans/big5.trans
@@ -1,10 +1,27 @@
#include "transcode_data.h"
<%
- require "big5-tbl"
+ require "big5-hkscs-tbl"
+ require "big5-uao-tbl"
+
+ tbls = import_ucm("glibc-BIG5-2.3.3.ucm")
+ transcode_tblgen "Big5", "UTF-8", [["{00-7f}", :nomap]] + tbls[0]
+ transcode_tblgen "UTF-8", "Big5", [["{00-7f}", :nomap]] + tbls[1]
+
+ tbls = import_ucm("windows-950-2000.ucm")
+ transcode_tblgen "CP950", "UTF-8", [["{00-7f}", :nomap]] + tbls[0], ValidEncoding('Big5')
+ transcode_tblgen "UTF-8", "CP950", [["{00-7f}", :nomap]] + tbls[1]
+
+ transcode_tblgen "Big5-HKSCS", "UTF-8", [["{00-7f}", :nomap], *BIG5_HKSCS_TO_UCS_TBL], ValidEncoding('Big5')
+ transcode_tblgen "UTF-8", "Big5-HKSCS", [["{00-7f}", :nomap], *UCS_TO_BIG5_HKSCS_TBL]
+
+ tbls = import_ucm("windows-950_hkscs-2001.ucm")
+ transcode_tblgen "CP951", "UTF-8", [["{00-7f}", :nomap]] + tbls[0], ValidEncoding('Big5')
+ transcode_tblgen "UTF-8", "CP951", [["{00-7f}", :nomap]] + tbls[1]
+
+ transcode_tblgen "Big5-UAO", "UTF-8", [["{00-7f}", :nomap], *BIG5_UAO_TO_UCS_TBL], ValidEncoding('Big5')
+ transcode_tblgen "UTF-8", "Big5-UAO", [["{00-7f}", :nomap], *BIG5_UAO_TO_UCS_TBL.map {|a,b| [b,a] }]
- transcode_tblgen "Big5", "UTF-8", [["{00-7f}", :nomap], *BIG5_TO_UCS_TBL]
- transcode_tblgen "UTF-8", "Big5", [["{00-7f}", :nomap], *BIG5_TO_UCS_TBL.map {|a,b| [b,a] }]
%>
<%= transcode_generated_code %>
@@ -13,4 +30,4 @@ void
Init_big5(void)
{
<%= transcode_register_code %>
-} \ No newline at end of file
+}
diff --git a/enc/trans/chinese.trans b/enc/trans/chinese.trans
index 1db6565254..0662a3bebc 100644
--- a/enc/trans/chinese.trans
+++ b/enc/trans/chinese.trans
@@ -1,16 +1,18 @@
#include "transcode_data.h"
<%
- set_valid_byte_pattern 'GB2312', 'EUC-KR'
- set_valid_byte_pattern 'GB12345', 'EUC-KR'
+ gb2312_valid_byte_pattern = ValidEncoding('EUC-KR')
+ gb12345_valid_byte_pattern = ValidEncoding('EUC-KR')
transcode_tblgen "GB2312", "UTF-8",
[["{00-7f}", :nomap]] +
- citrus_decode_mapsrc("euc", 0x8080, "GB2312/UCS")
+ citrus_decode_mapsrc("euc", 0x8080, "GB2312/UCS"),
+ gb2312_valid_byte_pattern
transcode_tblgen "GB12345", "UTF-8",
[["{00-7f}", :nomap]] +
- citrus_decode_mapsrc("euc", 0x8080, "GB12345/UCS")
+ citrus_decode_mapsrc("euc", 0x8080, "GB12345/UCS"),
+ gb12345_valid_byte_pattern
transcode_tblgen "UTF-8", "GB2312",
[["{00-7f}", :nomap]] +
diff --git a/enc/trans/emoji-exchange-tbl.rb b/enc/trans/emoji-exchange-tbl.rb
new file mode 100644
index 0000000000..235c98ece5
--- /dev/null
+++ b/enc/trans/emoji-exchange-tbl.rb
@@ -0,0 +1,8407 @@
+EMOJI_EXCHANGE_TBL = Hash.new{|h,k| h[k] = {}}
+EMOJI_EXCHANGE_TBL['UTF8-DoCoMo']['UTF8-KDDI'] = [
+ ["ee98be", "ee9288"], # [BLACK SUN WITH RAYS] U+E63E -> U+E488
+ ["ee98bf", "ee928d"], # [CLOUD] U+E63F -> U+E48D
+ ["ee9980", "ee928c"], # [UMBRELLA WITH RAIN DROPS] U+E640 -> U+E48C
+ ["ee9981", "ee9285"], # [SNOWMAN WITHOUT SNOW] U+E641 -> U+E485
+ ["ee9982", "ee9287"], # [HIGH VOLTAGE SIGN] U+E642 -> U+E487
+ ["ee9983", "ee91a9"], # [CYCLONE] U+E643 -> U+E469
+ ["ee9984", "ee9698"], # [FOGGY] U+E644 -> U+E598
+ ["ee9985", "eeaba8"], # [CLOSED UMBRELLA] U+E645 -> U+EAE8
+ ["ee9ab3", "eeabb1"], # [NIGHT WITH STARS] U+E6B3 -> U+EAF1
+ ["ee9cbf", "eeadbc"], # [WATER WAVE] U+E73F -> U+EB7C
+ ["ee9a9c", "ee96a8"], # [NEW MOON SYMBOL] U+E69C -> U+E5A8
+ ["ee9a9d", "ee96a9"], # [WAXING GIBBOUS MOON SYMBOL] U+E69D -> U+E5A9
+ ["ee9a9e", "ee96aa"], # [FIRST QUARTER MOON SYMBOL] U+E69E -> U+E5AA
+ ["ee9a9f", "ee9286"], # [CRESCENT MOON] U+E69F -> U+E486
+ ["ee9aa0", :undef], # [FULL MOON SYMBOL] U+E6A0 -> "â—‹"
+ ["ee9c9f", "ee95ba"], # [WATCH] U+E71F -> U+E57A
+ ["ee9aba", "ee9694"], # [ALARM CLOCK] U+E6BA -> U+E594
+ ["ee9c9c", "ee91bc"], # [HOURGLASS WITH FLOWING SAND] U+E71C -> U+E47C
+ ["ee9986", "ee928f"], # [ARIES] U+E646 -> U+E48F
+ ["ee9987", "ee9290"], # [TAURUS] U+E647 -> U+E490
+ ["ee9988", "ee9291"], # [GEMINI] U+E648 -> U+E491
+ ["ee9989", "ee9292"], # [CANCER] U+E649 -> U+E492
+ ["ee998a", "ee9293"], # [LEO] U+E64A -> U+E493
+ ["ee998b", "ee9294"], # [VIRGO] U+E64B -> U+E494
+ ["ee998c", "ee9295"], # [LIBRA] U+E64C -> U+E495
+ ["ee998d", "ee9296"], # [SCORPIUS] U+E64D -> U+E496
+ ["ee998e", "ee9297"], # [SAGITTARIUS] U+E64E -> U+E497
+ ["ee998f", "ee9298"], # [CAPRICORN] U+E64F -> U+E498
+ ["ee9990", "ee9299"], # [AQUARIUS] U+E650 -> U+E499
+ ["ee9991", "ee929a"], # [PISCES] U+E651 -> U+E49A
+ ["ee9d81", "ee9493"], # [FOUR LEAF CLOVER] U+E741 -> U+E513
+ ["ee9d83", "ee93a4"], # [TULIP] U+E743 -> U+E4E4
+ ["ee9d86", "eeadbd"], # [SEEDLING] U+E746 -> U+EB7D
+ ["ee9d87", "ee938e"], # [MAPLE LEAF] U+E747 -> U+E4CE
+ ["ee9d88", "ee938a"], # [CHERRY BLOSSOM] U+E748 -> U+E4CA
+ ["ee9d82", "ee9392"], # [CHERRIES] U+E742 -> U+E4D2
+ ["ee9d84", "eeacb5"], # [BANANA] U+E744 -> U+EB35
+ ["ee9d85", "eeaab9"], # [RED APPLE] U+E745 -> U+EAB9
+ ["ee9a91", "ee96a4"], # [EYES] U+E691 -> U+E5A4
+ ["ee9a92", "ee96a5"], # [EAR] U+E692 -> U+E5A5
+ ["ee9c90", "ee9489"], # [LIPSTICK] U+E710 -> U+E509
+ ["ee9ab1", :undef], # [BUST IN SILHOUETTE] U+E6B1 -> U+3013 (GETA)
+ ["ee9d8e", "eeadbe"], # [SNAIL] U+E74E -> U+EB7E
+ ["ee9d8f", "ee93a0"], # [BABY CHICK] U+E74F -> U+E4E0
+ ["ee9d90", "ee939c"], # [PENGUIN] U+E750 -> U+E4DC
+ ["ee9d91", "ee929a"], # [FISH] U+E751 -> U+E49A
+ ["ee9aa2", "ee939b"], # [CAT FACE] U+E6A2 -> U+E4DB
+ ["ee9d94", "ee9398"], # [HORSE FACE] U+E754 -> U+E4D8
+ ["ee9aa1", "ee93a1"], # [DOG FACE] U+E6A1 -> U+E4E1
+ ["ee9d95", "ee939e"], # [PIG FACE] U+E755 -> U+E4DE
+ ["ee9bb1", "ee91b2"], # [ANGRY FACE] U+E6F1 -> U+E472
+ ["ee9bb2", "eeab80"], # [DISAPPOINTED FACE] U+E6F2 -> U+EAC0
+ ["ee9bb4", "ee96ae"], # [DIZZY FACE] U+E6F4 -> U+E5AE
+ ["ee9ca5", "eeab89"], # [EXPRESSIONLESS FACE] U+E725 -> U+EAC9
+ ["ee9ca6", "ee9784"], # [FACE WITH HEART-SHAPED EYES] U+E726 -> U+E5C4
+ ["ee9ca8", "ee93a7"], # [WINKING FACE WITH STUCK-OUT TONGUE] U+E728 -> U+E4E7
+ ["ee9d92", "eeab8d"], # [FACE SAVOURING DELICIOUS FOOD] U+E752 -> U+EACD
+ ["ee9bb0", "ee91b1"], # [HAPPY FACE WITH OPEN MOUTH] U+E6F0 -> U+E471
+ ["ee9ca2", "ee91b1ee96b1"], # [HAPPY FACE WITH OPEN MOUTH AND COLD SWEAT] U+E722 -> U+E471 U+E5B1
+ ["ee9caa", "eeab85"], # [HAPPY FACE WITH OPEN MOUTH AND CLOSED EYES] U+E72A -> U+EAC5
+ ["ee9d93", "eeae80"], # [HAPPY FACE WITH GRIN] U+E753 -> U+EB80
+ ["ee9cae", "eeada9"], # [CRYING FACE] U+E72E -> U+EB69
+ ["ee9cad", "ee91b3"], # [LOUDLY CRYING FACE] U+E72D -> U+E473
+ ["ee9cab", "eeab82"], # [PERSEVERING FACE] U+E72B -> U+EAC2
+ ["ee9ca4", "eead9d"], # [POUTING FACE] U+E724 -> U+EB5D
+ ["ee9ca1", "eeab85"], # [RELIEVED FACE] U+E721 -> U+EAC5
+ ["ee9bb3", "eeab83"], # [CONFOUNDED FACE] U+E6F3 -> U+EAC3
+ ["ee9ca0", "eeab80"], # [PENSIVE FACE] U+E720 -> U+EAC0
+ ["ee9d97", "ee9785"], # [FACE SCREAMING IN FEAR] U+E757 -> U+E5C5
+ ["ee9cac", "eeaabf"], # [SMIRKING FACE] U+E72C -> U+EABF
+ ["ee9ca3", "ee9786"], # [FACE WITH COLD SWEAT] U+E723 -> U+E5C6
+ ["ee9ca9", "ee9783"], # [WINKING FACE] U+E729 -> U+E5C3
+ ["ee99a3", "ee92ab"], # [HOUSE BUILDING] U+E663 -> U+E4AB
+ ["ee99a4", "ee92ad"], # [OFFICE BUILDING] U+E664 -> U+E4AD
+ ["ee99a5", "ee979e"], # [JAPANESE POST OFFICE] U+E665 -> U+E5DE
+ ["ee99a6", "ee979f"], # [HOSPITAL] U+E666 -> U+E5DF
+ ["ee99a7", "ee92aa"], # [BANK] U+E667 -> U+E4AA
+ ["ee99a8", "ee92a3"], # [AUTOMATED TELLER MACHINE] U+E668 -> U+E4A3
+ ["ee99a9", "eeaa81"], # [HOTEL] U+E669 -> U+EA81
+ ["ee99aa", "ee92a4"], # [CONVENIENCE STORE] U+E66A -> U+E4A4
+ ["ee9cbe", "eeaa80"], # [SCHOOL] U+E73E -> U+EA80
+ ["ee9d80", "ee96bd"], # [MOUNT FUJI] U+E740 -> U+E5BD
+ ["ee9a99", "eeacab"], # [ATHLETIC SHOE] U+E699 -> U+EB2B
+ ["ee99b4", "ee949a"], # [HIGH-HEELED SHOE] U+E674 -> U+E51A
+ ["ee9a98", "eeacaa"], # [FOOTPRINTS] U+E698 -> U+EB2A
+ ["ee9a9a", "ee93be"], # [EYEGLASSES] U+E69A -> U+E4FE
+ ["ee9c8e", "ee96b6"], # [T-SHIRT] U+E70E -> U+E5B6
+ ["ee9c91", "eeadb7"], # [JEANS] U+E711 -> U+EB77
+ ["ee9c9a", "ee9789"], # [CROWN] U+E71A -> U+E5C9
+ ["ee9c8f", "ee9484"], # [PURSE] U+E70F -> U+E504
+ ["ee9a82", "ee929c"], # [HANDBAG] U+E682 -> U+E49C
+ ["ee9aad", :undef], # [POUCH] U+E6AD -> "[ãµãã‚]"
+ ["ee9c95", "ee9387"], # [MONEY BAG] U+E715 -> U+E4C7
+ ["ee9b96", "ee95bd"], # [BANKNOTE WITH YEN SIGN] U+E6D6 -> U+E57D
+ ["ee9c98", "ee9687"], # [WRENCH] U+E718 -> U+E587
+ ["ee9a84", "ee969f"], # [RIBBON] U+E684 -> U+E59F
+ ["ee9a85", "ee938f"], # [WRAPPED PRESENT] U+E685 -> U+E4CF
+ ["ee9a86", "ee96a0"], # [BIRTHDAY CAKE] U+E686 -> U+E5A0
+ ["ee9aa4", "ee9389"], # [CHRISTMAS TREE] U+E6A4 -> U+E4C9
+ ["ee999a", "ee969b"], # [PAGER] U+E65A -> U+E59B
+ ["ee9a87", "ee9696"], # [BLACK TELEPHONE] U+E687 -> U+E596
+ ["ee9a88", "ee9688"], # [MOBILE PHONE] U+E688 -> U+E588
+ ["ee9b8e", "eeac88"], # [MOBILE PHONE WITH RIGHTWARDS ARROW AT LEFT] U+E6CE -> U+EB08
+ ["ee9a89", "eeaa92"], # [MEMO] U+E689 -> U+EA92
+ ["ee9b90", "ee94a0"], # [FAX MACHINE] U+E6D0 -> U+E520
+ ["ee9b93", "ee94a1"], # [ENVELOPE] U+E6D3 -> U+E521
+ ["ee9b8f", "eeada2"], # [ENVELOPE WITH DOWNWARDS ARROW ABOVE] U+E6CF -> U+EB62
+ ["ee9aae", "eeac83"], # [BLACK NIB] U+E6AE -> U+EB03
+ ["ee9ab2", :undef], # [SEAT] U+E6B2 -> "[ã„ã™]"
+ ["ee9c96", "ee96b8"], # [PERSONAL COMPUTER] U+E716 -> U+E5B8
+ ["ee9c99", "ee92a1"], # [PENCIL] U+E719 -> U+E4A1
+ ["ee9cb0", "ee92a0"], # [PAPERCLIP] U+E730 -> U+E4A0
+ ["ee9a8c", "ee948c"], # [OPTICAL DISC] U+E68C -> U+E50C
+ ["ee99b5", "ee9496"], # [BLACK SCISSORS] U+E675 -> U+E516
+ ["ee9a83", "ee929f"], # [OPEN BOOK] U+E683 -> U+E49F
+ ["ee9992", :undef], # [RUNNING SHIRT WITH SASH] U+E652 -> U+3013 (GETA)
+ ["ee9993", "ee92ba"], # [BASEBALL] U+E653 -> U+E4BA
+ ["ee9994", "ee9699"], # [FLAG IN HOLE] U+E654 -> U+E599
+ ["ee9995", "ee92b7"], # [TENNIS RACQUET AND BALL] U+E655 -> U+E4B7
+ ["ee9996", "ee92b6"], # [SOCCER BALL] U+E656 -> U+E4B6
+ ["ee9997", "eeaaac"], # [SKI AND SKI BOOT] U+E657 -> U+EAAC
+ ["ee9998", "ee969a"], # [BASKETBALL AND HOOP] U+E658 -> U+E59A
+ ["ee9999", "ee92b9"], # [CHEQUERED FLAG] U+E659 -> U+E4B9
+ ["ee9c92", "ee92b8"], # [SNOWBOARDER] U+E712 -> U+E4B8
+ ["ee9cb3", "ee91ab"], # [RUNNER] U+E733 -> U+E46B
+ ["ee999b", "ee92b5"], # [TRAIN] U+E65B -> U+E4B5
+ ["ee999c", "ee96bc"], # [CIRCLED LATIN CAPITAL LETTER M] U+E65C -> U+E5BC
+ ["ee999d", "ee92b0"], # [HIGH-SPEED TRAIN] U+E65D -> U+E4B0
+ ["ee999e", "ee92b1"], # [AUTOMOBILE] U+E65E -> U+E4B1
+ ["ee999f", "ee92b1"], # [RECREATIONAL VEHICLE] U+E65F -> U+E4B1
+ ["ee99a0", "ee92af"], # [ONCOMING BUS] U+E660 -> U+E4AF
+ ["ee99a1", "eeaa82"], # [SHIP] U+E661 -> U+EA82
+ ["ee99a2", "ee92b3"], # [AIRPLANE] U+E662 -> U+E4B3
+ ["ee9aa3", "ee92b4"], # [SAILBOAT] U+E6A3 -> U+E4B4
+ ["ee99ab", "ee95b1"], # [FUEL PUMP] U+E66B -> U+E571
+ ["ee99ac", "ee92a6"], # [NEGATIVE SQUARED LATIN CAPITAL LETTER P] U+E66C -> U+E4A6
+ ["ee99ad", "ee91aa"], # [HORIZONTAL TRAFFIC LIGHT] U+E66D -> U+E46A
+ ["ee9bb7", "ee92bc"], # [HOT SPRINGS] U+E6F7 -> U+E4BC
+ ["ee99b9", :undef], # [CAROUSEL HORSE] U+E679 -> U+3013 (GETA)
+ ["ee99b6", "ee9483"], # [MICROPHONE] U+E676 -> U+E503
+ ["ee99b7", "ee9497"], # [MOVIE CAMERA] U+E677 -> U+E517
+ ["ee99ba", "ee9488"], # [HEADPHONE] U+E67A -> U+E508
+ ["ee99bb", "ee969c"], # [ARTIST PALETTE] U+E67B -> U+E59C
+ ["ee99bc", "eeabb5"], # [TOP HAT] U+E67C -> U+EAF5
+ ["ee99bd", "ee969e"], # [CIRCUS TENT] U+E67D -> U+E59E
+ ["ee99be", "ee929e"], # [TICKET] U+E67E -> U+E49E
+ ["ee9aac", "ee92be"], # [CLAPPER BOARD] U+E6AC -> U+E4BE
+ ["ee9a8b", "ee9386"], # [VIDEO GAME] U+E68B -> U+E4C6
+ ["ee9bb6", "ee96be"], # [MUSICAL NOTE] U+E6F6 -> U+E5BE
+ ["ee9bbf", "ee9485"], # [MULTIPLE MUSICAL NOTES] U+E6FF -> U+E505
+ ["ee9a81", "ee9495"], # [CAMERA] U+E681 -> U+E515
+ ["ee9a8a", "ee9482"], # [TELEVISION] U+E68A -> U+E502
+ ["ee9bb9", "ee93ab"], # [KISS MARK] U+E6F9 -> U+E4EB
+ ["ee9c97", "eeadb8"], # [LOVE LETTER] U+E717 -> U+EB78
+ ["ee9c9b", "ee9494"], # [RING] U+E71B -> U+E514
+ ["ee9cb1", "ee9598"], # [COPYRIGHT SIGN] U+E731 -> U+E558
+ ["ee9cb6", "ee9599"], # [REGISTERED SIGN] U+E736 -> U+E559
+ ["ee9cb2", "ee958e"], # [TRADE MARK SIGN] U+E732 -> U+E54E
+ ["ee9ba0", "eeae84"], # [HASH KEY] U+E6E0 -> U+EB84
+ ["ee9ba2", "ee94a2"], # [KEYCAP 1] U+E6E2 -> U+E522
+ ["ee9ba3", "ee94a3"], # [KEYCAP 2] U+E6E3 -> U+E523
+ ["ee9ba4", "ee94a4"], # [KEYCAP 3] U+E6E4 -> U+E524
+ ["ee9ba5", "ee94a5"], # [KEYCAP 4] U+E6E5 -> U+E525
+ ["ee9ba6", "ee94a6"], # [KEYCAP 5] U+E6E6 -> U+E526
+ ["ee9ba7", "ee94a7"], # [KEYCAP 6] U+E6E7 -> U+E527
+ ["ee9ba8", "ee94a8"], # [KEYCAP 7] U+E6E8 -> U+E528
+ ["ee9ba9", "ee94a9"], # [KEYCAP 8] U+E6E9 -> U+E529
+ ["ee9baa", "ee94aa"], # [KEYCAP 9] U+E6EA -> U+E52A
+ ["ee9bab", "ee96ac"], # [KEYCAP 0] U+E6EB -> U+E5AC
+ ["ee99b3", "ee9396"], # [HAMBURGER] U+E673 -> U+E4D6
+ ["ee9d89", "ee9395"], # [RICE BALL] U+E749 -> U+E4D5
+ ["ee9d8a", "ee9390"], # [SHORTCAKE] U+E74A -> U+E4D0
+ ["ee9d8c", "ee96b4"], # [STEAMING BOWL] U+E74C -> U+E5B4
+ ["ee9d8d", "eeaaaf"], # [BREAD] U+E74D -> U+EAAF
+ ["ee99af", "ee92ac"], # [FORK AND KNIFE] U+E66F -> U+E4AC
+ ["ee99b0", "ee9697"], # [HOT BEVERAGE] U+E670 -> U+E597
+ ["ee99b1", "ee9382"], # [COCKTAIL GLASS] U+E671 -> U+E4C2
+ ["ee99b2", "ee9383"], # [BEER MUG] U+E672 -> U+E4C3
+ ["ee9c9e", "eeaaae"], # [TEACUP WITHOUT HANDLE] U+E71E -> U+EAAE
+ ["ee9d8b", "eeaa97"], # [SAKE BOTTLE AND CUP] U+E74B -> U+EA97
+ ["ee9d96", "ee9381"], # [WINE GLASS] U+E756 -> U+E4C1
+ ["ee99b8", "ee9595"], # [NORTH EAST ARROW] U+E678 -> U+E555
+ ["ee9a96", "ee958d"], # [SOUTH EAST ARROW] U+E696 -> U+E54D
+ ["ee9a97", "ee958c"], # [NORTH WEST ARROW] U+E697 -> U+E54C
+ ["ee9aa5", "ee9596"], # [SOUTH WEST ARROW] U+E6A5 -> U+E556
+ ["ee9bb5", "eeacad"], # [ARROW POINTING RIGHTWARDS THEN CURVING UPWARDS] U+E6F5 -> U+EB2D
+ ["ee9c80", "eeacae"], # [ARROW POINTING RIGHTWARDS THEN CURVING DOWNWARDS] U+E700 -> U+EB2E
+ ["ee9cbc", "eeadba"], # [LEFT RIGHT ARROW] U+E73C -> U+EB7A
+ ["ee9cbd", "eeadbb"], # [UP DOWN ARROW] U+E73D -> U+EB7B
+ ["ee9c82", "ee9282"], # [HEAVY EXCLAMATION MARK ORNAMENT] U+E702 -> U+E482
+ ["ee9c83", "eeacaf"], # [EXCLAMATION QUESTION MARK] U+E703 -> U+EB2F
+ ["ee9c84", "eeacb0"], # [DOUBLE EXCLAMATION MARK] U+E704 -> U+EB30
+ ["ee9c89", :undef], # [WAVY DASH] U+E709 -> U+3013 (GETA)
+ ["ee9c8a", "eeacb1"], # [CURLY LOOP] U+E70A -> U+EB31
+ ["ee9b9f", :undef], # [DOUBLE CURLY LOOP] U+E6DF -> "[フリーダイヤル]"
+ ["ee9bac", "ee9695"], # [HEAVY BLACK HEART] U+E6EC -> U+E595
+ ["ee9bad", "eeadb5"], # [BEATING HEART] U+E6ED -> U+EB75
+ ["ee9bae", "ee91b7"], # [BROKEN HEART] U+E6EE -> U+E477
+ ["ee9baf", "ee91b8"], # [TWO HEARTS] U+E6EF -> U+E478
+ ["ee9a8d", "eeaaa5"], # [BLACK HEART SUIT] U+E68D -> U+EAA5
+ ["ee9a8e", "ee96a1"], # [BLACK SPADE SUIT] U+E68E -> U+E5A1
+ ["ee9a8f", "ee96a2"], # [BLACK DIAMOND SUIT] U+E68F -> U+E5A2
+ ["ee9a90", "ee96a3"], # [BLACK CLUB SUIT] U+E690 -> U+E5A3
+ ["ee99bf", "ee91bd"], # [SMOKING SYMBOL] U+E67F -> U+E47D
+ ["ee9a80", "ee91be"], # [NO SMOKING SYMBOL] U+E680 -> U+E47E
+ ["ee9a9b", "ee91bf"], # [WHEELCHAIR SYMBOL] U+E69B -> U+E47F
+ ["ee9b9e", "eeacac"], # [TRIANGULAR FLAG ON POST] U+E6DE -> U+EB2C
+ ["ee9cb7", "ee9281"], # [WARNING SIGN] U+E737 -> U+E481
+ ["ee9cb5", "eeadb9"], # [BLACK UNIVERSAL RECYCLING SYMBOL] U+E735 -> U+EB79
+ ["ee9c9d", "ee92ae"], # [BICYCLE] U+E71D -> U+E4AE
+ ["ee99ae", "ee92a5"], # [RESTROOM] U+E66E -> U+E4A5
+ ["ee9c94", :undef], # [DOOR] U+E714 -> "[ドア]"
+ ["ee9b9b", "ee96ab"], # [SQUARED CL] U+E6DB -> U+E5AB
+ ["ee9b97", "ee95b8"], # [SQUARED FREE] U+E6D7 -> U+E578
+ ["ee9b98", "eeaa88"], # [SQUARED ID] U+E6D8 -> U+EA88
+ ["ee9b9d", "ee96b5"], # [SQUARED NEW] U+E6DD -> U+E5B5
+ ["ee9caf", :undef], # [SQUARED NG] U+E72F -> "[NG]"
+ ["ee9c8b", "ee96ad"], # [SQUARED OK] U+E70B -> U+E5AD
+ ["ee9cb8", :undef], # [SQUARED CJK UNIFIED IDEOGRAPH-7981] U+E738 -> "[ç¦]"
+ ["ee9cb9", "eeaa8a"], # [SQUARED CJK UNIFIED IDEOGRAPH-7A7A] U+E739 -> U+EA8A
+ ["ee9cba", :undef], # [SQUARED CJK UNIFIED IDEOGRAPH-5408] U+E73A -> "[åˆ]"
+ ["ee9cbb", "eeaa89"], # [SQUARED CJK UNIFIED IDEOGRAPH-6E80] U+E73B -> U+EA89
+ ["ee9cb4", "ee93b1"], # [CIRCLED IDEOGRAPH SECRET] U+E734 -> U+E4F1
+ ["ee9bb8", :undef], # [DIAMOND SHAPE WITH A DOT INSIDE] U+E6F8 -> U+3013 (GETA)
+ ["ee9bbb", "ee91b6"], # [ELECTRIC LIGHT BULB] U+E6FB -> U+E476
+ ["ee9bbc", "ee93a5"], # [ANGER SYMBOL] U+E6FC -> U+E4E5
+ ["ee9bbe", "ee91ba"], # [BOMB] U+E6FE -> U+E47A
+ ["ee9c81", "ee91b5"], # [SLEEPING SYMBOL] U+E701 -> U+E475
+ ["ee9c85", "ee96b0"], # [COLLISION SYMBOL] U+E705 -> U+E5B0
+ ["ee9c86", "ee96b1"], # [SPLASHING SWEAT SYMBOL] U+E706 -> U+E5B1
+ ["ee9c87", "ee93a6"], # [DROP OF WATER] U+E707 -> U+E4E6
+ ["ee9c88", "ee93b4"], # [DASH SYMBOL] U+E708 -> U+E4F4
+ ["ee9bba", "eeaaab"], # [SPARKLES] U+E6FA -> U+EAAB
+ ["ee9b9a", "ee959d"], # [LEFTWARDS ARROW WITH HOOK] U+E6DA -> U+E55D
+ ["ee9b9c", "ee9498"], # [LEFT-POINTING MAGNIFYING GLASS] U+E6DC -> U+E518
+ ["ee9b99", "ee9499"], # [KEY] U+E6D9 -> U+E519
+ ["ee9c93", "ee9492"], # [BELL] U+E713 -> U+E512
+ ["ee9ab9", :undef], # [END WITH LEFTWARDS ARROW ABOVE] U+E6B9 -> "[end]"
+ ["ee9ab8", :undef], # [ON WITH EXCLAMATION MARK WITH LEFT RIGHT ARROW ABOVE] U+E6B8 -> "[ON]"
+ ["ee9ab7", :undef], # [SOON WITH RIGHTWARDS ARROW ABOVE] U+E6B7 -> "[SOON]"
+ ["ee9a93", "eeae83"], # [RAISED FIST] U+E693 -> U+EB83
+ ["ee9a95", "ee96a7"], # [RAISED HAND] U+E695 -> U+E5A7
+ ["ee9a94", "ee96a6"], # [VICTORY HAND] U+E694 -> U+E5A6
+ ["ee9bbd", "ee93b3"], # [FISTED HAND SIGN] U+E6FD -> U+E4F3
+ ["ee9ca7", "ee93b9"], # [THUMBS UP SIGN] U+E727 -> U+E4F9
+ ["ee9b91", :undef], # [EMOJI COMPATIBILITY SYMBOL-1] U+E6D1 -> "[iモード]"
+ ["ee9b92", :undef], # [EMOJI COMPATIBILITY SYMBOL-2] U+E6D2 -> "[iモード]"
+ ["ee9b94", :undef], # [EMOJI COMPATIBILITY SYMBOL-3] U+E6D4 -> "[ドコモ]"
+ ["ee9b95", :undef], # [EMOJI COMPATIBILITY SYMBOL-4] U+E6D5 -> "[ドコモãƒã‚¤ãƒ³ãƒˆ]"
+ ["ee9c8c", :undef], # [EMOJI COMPATIBILITY SYMBOL-5] U+E70C -> "[iアプリ]"
+ ["ee9c8d", :undef], # [EMOJI COMPATIBILITY SYMBOL-6] U+E70D -> "[iアプリ]"
+ ["ee9aa6", :undef], # [EMOJI COMPATIBILITY SYMBOL-7] U+E6A6 -> "[ã´]"
+ ["ee9aa7", :undef], # [EMOJI COMPATIBILITY SYMBOL-8] U+E6A7 -> "[ã‚]"
+ ["ee9aa8", :undef], # [EMOJI COMPATIBILITY SYMBOL-9] U+E6A8 -> "[ãƒã‚±ãƒƒãƒˆ]"
+ ["ee9aa9", :undef], # [EMOJI COMPATIBILITY SYMBOL-10] U+E6A9 -> "[ãƒã‚±ãƒƒãƒˆ]"
+ ["ee9aaa", :undef], # [EMOJI COMPATIBILITY SYMBOL-11] U+E6AA -> "[電話先行]"
+ ["ee9aab", :undef], # [EMOJI COMPATIBILITY SYMBOL-12] U+E6AB -> "[Pコード]"
+ ["ee9aaf", "ee9497"], # [EMOJI COMPATIBILITY SYMBOL-13] U+E6AF -> U+E517
+ ["ee9ab0", :undef], # [EMOJI COMPATIBILITY SYMBOL-14] U+E6B0 -> "[ã´]"
+ ["ee9ab4", :undef], # [EMOJI COMPATIBILITY SYMBOL-15] U+E6B4 -> "(ã´)"
+ ["ee9ab5", :undef], # [EMOJI COMPATIBILITY SYMBOL-16] U+E6B5 -> "[ã´]"
+ ["ee9ab6", :undef], # [EMOJI COMPATIBILITY SYMBOL-17] U+E6B6 -> "[ãƒã‚§ãƒƒã‚¯]"
+ ["ee9abb", :undef], # [EMOJI COMPATIBILITY SYMBOL-18] U+E6BB -> "[F]"
+ ["ee9abc", :undef], # [EMOJI COMPATIBILITY SYMBOL-19] U+E6BC -> "[D]"
+ ["ee9abd", :undef], # [EMOJI COMPATIBILITY SYMBOL-20] U+E6BD -> "[S]"
+ ["ee9abe", :undef], # [EMOJI COMPATIBILITY SYMBOL-21] U+E6BE -> "[C]"
+ ["ee9abf", :undef], # [EMOJI COMPATIBILITY SYMBOL-22] U+E6BF -> "[R]"
+ ["ee9b80", :undef], # [EMOJI COMPATIBILITY SYMBOL-23] U+E6C0 -> "â– "
+ ["ee9b81", :undef], # [EMOJI COMPATIBILITY SYMBOL-24] U+E6C1 -> "â– "
+ ["ee9b82", :undef], # [EMOJI COMPATIBILITY SYMBOL-25] U+E6C2 -> "â–¼"
+ ["ee9b83", :undef], # [EMOJI COMPATIBILITY SYMBOL-26] U+E6C3 -> "††††"
+ ["ee9b84", :undef], # [EMOJI COMPATIBILITY SYMBOL-27] U+E6C4 -> "†††"
+ ["ee9b85", :undef], # [EMOJI COMPATIBILITY SYMBOL-28] U+E6C5 -> "††"
+ ["ee9b86", :undef], # [EMOJI COMPATIBILITY SYMBOL-29] U+E6C6 -> "†"
+ ["ee9b87", :undef], # [EMOJI COMPATIBILITY SYMBOL-30] U+E6C7 -> "[I]"
+ ["ee9b88", :undef], # [EMOJI COMPATIBILITY SYMBOL-31] U+E6C8 -> "[M]"
+ ["ee9b89", :undef], # [EMOJI COMPATIBILITY SYMBOL-32] U+E6C9 -> "[E]"
+ ["ee9b8a", :undef], # [EMOJI COMPATIBILITY SYMBOL-33] U+E6CA -> "[VE]"
+ ["ee9b8b", :undef], # [EMOJI COMPATIBILITY SYMBOL-34] U+E6CB -> "â—"
+ ["ee9b8c", :undef], # [EMOJI COMPATIBILITY SYMBOL-35] U+E6CC -> "[カード使用ä¸å¯]"
+ ["ee9b8d", "eeac82"], # [EMOJI COMPATIBILITY SYMBOL-36] U+E6CD -> U+EB02
+ ["ee9ba1", "ee94ac"], # [EMOJI COMPATIBILITY SYMBOL-66] U+E6E1 -> U+E52C
+]
+
+EMOJI_EXCHANGE_TBL['UTF8-DoCoMo']['UTF8-SoftBank'] = [
+ ["ee98be", "ee818a"], # [BLACK SUN WITH RAYS] U+E63E -> U+E04A
+ ["ee98bf", "ee8189"], # [CLOUD] U+E63F -> U+E049
+ ["ee9980", "ee818b"], # [UMBRELLA WITH RAIN DROPS] U+E640 -> U+E04B
+ ["ee9981", "ee8188"], # [SNOWMAN WITHOUT SNOW] U+E641 -> U+E048
+ ["ee9982", "ee84bd"], # [HIGH VOLTAGE SIGN] U+E642 -> U+E13D
+ ["ee9983", "ee9183"], # [CYCLONE] U+E643 -> U+E443
+ ["ee9984", :undef], # [FOGGY] U+E644 -> "[霧]"
+ ["ee9985", "ee90bc"], # [CLOSED UMBRELLA] U+E645 -> U+E43C
+ ["ee9ab3", "ee918b"], # [NIGHT WITH STARS] U+E6B3 -> U+E44B
+ ["ee9cbf", "ee90be"], # [WATER WAVE] U+E73F -> U+E43E
+ ["ee9a9c", :undef], # [NEW MOON SYMBOL] U+E69C -> "â—"
+ ["ee9a9d", "ee818c"], # [WAXING GIBBOUS MOON SYMBOL] U+E69D -> U+E04C
+ ["ee9a9e", "ee818c"], # [FIRST QUARTER MOON SYMBOL] U+E69E -> U+E04C
+ ["ee9a9f", "ee818c"], # [CRESCENT MOON] U+E69F -> U+E04C
+ ["ee9aa0", :undef], # [FULL MOON SYMBOL] U+E6A0 -> "â—‹"
+ ["ee9c9f", :undef], # [WATCH] U+E71F -> "[腕時計]"
+ ["ee9aba", "ee80ad"], # [ALARM CLOCK] U+E6BA -> U+E02D
+ ["ee9c9c", :undef], # [HOURGLASS WITH FLOWING SAND] U+E71C -> "[砂時計]"
+ ["ee9986", "ee88bf"], # [ARIES] U+E646 -> U+E23F
+ ["ee9987", "ee8980"], # [TAURUS] U+E647 -> U+E240
+ ["ee9988", "ee8981"], # [GEMINI] U+E648 -> U+E241
+ ["ee9989", "ee8982"], # [CANCER] U+E649 -> U+E242
+ ["ee998a", "ee8983"], # [LEO] U+E64A -> U+E243
+ ["ee998b", "ee8984"], # [VIRGO] U+E64B -> U+E244
+ ["ee998c", "ee8985"], # [LIBRA] U+E64C -> U+E245
+ ["ee998d", "ee8986"], # [SCORPIUS] U+E64D -> U+E246
+ ["ee998e", "ee8987"], # [SAGITTARIUS] U+E64E -> U+E247
+ ["ee998f", "ee8988"], # [CAPRICORN] U+E64F -> U+E248
+ ["ee9990", "ee8989"], # [AQUARIUS] U+E650 -> U+E249
+ ["ee9991", "ee898a"], # [PISCES] U+E651 -> U+E24A
+ ["ee9d81", "ee8490"], # [FOUR LEAF CLOVER] U+E741 -> U+E110
+ ["ee9d83", "ee8c84"], # [TULIP] U+E743 -> U+E304
+ ["ee9d86", "ee8490"], # [SEEDLING] U+E746 -> U+E110
+ ["ee9d87", "ee8498"], # [MAPLE LEAF] U+E747 -> U+E118
+ ["ee9d88", "ee80b0"], # [CHERRY BLOSSOM] U+E748 -> U+E030
+ ["ee9d82", :undef], # [CHERRIES] U+E742 -> "[ã•ãらんã¼]"
+ ["ee9d84", :undef], # [BANANA] U+E744 -> "[ãƒãƒŠãƒŠ]"
+ ["ee9d85", "ee8d85"], # [RED APPLE] U+E745 -> U+E345
+ ["ee9a91", "ee9099"], # [EYES] U+E691 -> U+E419
+ ["ee9a92", "ee909b"], # [EAR] U+E692 -> U+E41B
+ ["ee9c90", "ee8c9c"], # [LIPSTICK] U+E710 -> U+E31C
+ ["ee9ab1", :undef], # [BUST IN SILHOUETTE] U+E6B1 -> U+3013 (GETA)
+ ["ee9d8e", :undef], # [SNAIL] U+E74E -> "[カタツムリ]"
+ ["ee9d8f", "ee94a3"], # [BABY CHICK] U+E74F -> U+E523
+ ["ee9d90", "ee8195"], # [PENGUIN] U+E750 -> U+E055
+ ["ee9d91", "ee8099"], # [FISH] U+E751 -> U+E019
+ ["ee9aa2", "ee818f"], # [CAT FACE] U+E6A2 -> U+E04F
+ ["ee9d94", "ee809a"], # [HORSE FACE] U+E754 -> U+E01A
+ ["ee9aa1", "ee8192"], # [DOG FACE] U+E6A1 -> U+E052
+ ["ee9d95", "ee848b"], # [PIG FACE] U+E755 -> U+E10B
+ ["ee9bb1", "ee8199"], # [ANGRY FACE] U+E6F1 -> U+E059
+ ["ee9bb2", "ee8198"], # [DISAPPOINTED FACE] U+E6F2 -> U+E058
+ ["ee9bb4", "ee9086"], # [DIZZY FACE] U+E6F4 -> U+E406
+ ["ee9ca5", "ee908e"], # [EXPRESSIONLESS FACE] U+E725 -> U+E40E
+ ["ee9ca6", "ee8486"], # [FACE WITH HEART-SHAPED EYES] U+E726 -> U+E106
+ ["ee9ca8", "ee8485"], # [WINKING FACE WITH STUCK-OUT TONGUE] U+E728 -> U+E105
+ ["ee9d92", "ee8196"], # [FACE SAVOURING DELICIOUS FOOD] U+E752 -> U+E056
+ ["ee9bb0", "ee8197"], # [HAPPY FACE WITH OPEN MOUTH] U+E6F0 -> U+E057
+ ["ee9ca2", "ee9095ee8cb1"], # [HAPPY FACE WITH OPEN MOUTH AND COLD SWEAT] U+E722 -> U+E415 U+E331
+ ["ee9caa", "ee908a"], # [HAPPY FACE WITH OPEN MOUTH AND CLOSED EYES] U+E72A -> U+E40A
+ ["ee9d93", "ee9084"], # [HAPPY FACE WITH GRIN] U+E753 -> U+E404
+ ["ee9cae", "ee9093"], # [CRYING FACE] U+E72E -> U+E413
+ ["ee9cad", "ee9091"], # [LOUDLY CRYING FACE] U+E72D -> U+E411
+ ["ee9cab", "ee9086"], # [PERSEVERING FACE] U+E72B -> U+E406
+ ["ee9ca4", "ee9096"], # [POUTING FACE] U+E724 -> U+E416
+ ["ee9ca1", "ee908a"], # [RELIEVED FACE] U+E721 -> U+E40A
+ ["ee9bb3", "ee9087"], # [CONFOUNDED FACE] U+E6F3 -> U+E407
+ ["ee9ca0", "ee9083"], # [PENSIVE FACE] U+E720 -> U+E403
+ ["ee9d97", "ee8487"], # [FACE SCREAMING IN FEAR] U+E757 -> U+E107
+ ["ee9cac", "ee9082"], # [SMIRKING FACE] U+E72C -> U+E402
+ ["ee9ca3", "ee8488"], # [FACE WITH COLD SWEAT] U+E723 -> U+E108
+ ["ee9ca9", "ee9085"], # [WINKING FACE] U+E729 -> U+E405
+ ["ee99a3", "ee80b6"], # [HOUSE BUILDING] U+E663 -> U+E036
+ ["ee99a4", "ee80b8"], # [OFFICE BUILDING] U+E664 -> U+E038
+ ["ee99a5", "ee8593"], # [JAPANESE POST OFFICE] U+E665 -> U+E153
+ ["ee99a6", "ee8595"], # [HOSPITAL] U+E666 -> U+E155
+ ["ee99a7", "ee858d"], # [BANK] U+E667 -> U+E14D
+ ["ee99a8", "ee8594"], # [AUTOMATED TELLER MACHINE] U+E668 -> U+E154
+ ["ee99a9", "ee8598"], # [HOTEL] U+E669 -> U+E158
+ ["ee99aa", "ee8596"], # [CONVENIENCE STORE] U+E66A -> U+E156
+ ["ee9cbe", "ee8597"], # [SCHOOL] U+E73E -> U+E157
+ ["ee9d80", "ee80bb"], # [MOUNT FUJI] U+E740 -> U+E03B
+ ["ee9a99", "ee8087"], # [ATHLETIC SHOE] U+E699 -> U+E007
+ ["ee99b4", "ee84be"], # [HIGH-HEELED SHOE] U+E674 -> U+E13E
+ ["ee9a98", "ee94b6"], # [FOOTPRINTS] U+E698 -> U+E536
+ ["ee9a9a", :undef], # [EYEGLASSES] U+E69A -> "[メガãƒ]"
+ ["ee9c8e", "ee8086"], # [T-SHIRT] U+E70E -> U+E006
+ ["ee9c91", :undef], # [JEANS] U+E711 -> "[ジーンズ]"
+ ["ee9c9a", "ee848e"], # [CROWN] U+E71A -> U+E10E
+ ["ee9c8f", :undef], # [PURSE] U+E70F -> "[財布]"
+ ["ee9a82", "ee8ca3"], # [HANDBAG] U+E682 -> U+E323
+ ["ee9aad", :undef], # [POUCH] U+E6AD -> "[ãµãã‚]"
+ ["ee9c95", "ee84af"], # [MONEY BAG] U+E715 -> U+E12F
+ ["ee9b96", :undef], # [BANKNOTE WITH YEN SIGN] U+E6D6 -> "ï¿¥"
+ ["ee9c98", :undef], # [WRENCH] U+E718 -> "[レンãƒ]"
+ ["ee9a84", "ee8c94"], # [RIBBON] U+E684 -> U+E314
+ ["ee9a85", "ee8492"], # [WRAPPED PRESENT] U+E685 -> U+E112
+ ["ee9a86", "ee8d8b"], # [BIRTHDAY CAKE] U+E686 -> U+E34B
+ ["ee9aa4", "ee80b3"], # [CHRISTMAS TREE] U+E6A4 -> U+E033
+ ["ee999a", :undef], # [PAGER] U+E65A -> "[ãƒã‚±ãƒ™ãƒ«]"
+ ["ee9a87", "ee8089"], # [BLACK TELEPHONE] U+E687 -> U+E009
+ ["ee9a88", "ee808a"], # [MOBILE PHONE] U+E688 -> U+E00A
+ ["ee9b8e", "ee8484"], # [MOBILE PHONE WITH RIGHTWARDS ARROW AT LEFT] U+E6CE -> U+E104
+ ["ee9a89", "ee8c81"], # [MEMO] U+E689 -> U+E301
+ ["ee9b90", "ee808b"], # [FAX MACHINE] U+E6D0 -> U+E00B
+ ["ee9b93", "ee8483"], # [ENVELOPE] U+E6D3 -> U+E103
+ ["ee9b8f", "ee8483"], # [ENVELOPE WITH DOWNWARDS ARROW ABOVE] U+E6CF -> U+E103
+ ["ee9aae", :undef], # [BLACK NIB] U+E6AE -> "[ペン]"
+ ["ee9ab2", "ee849f"], # [SEAT] U+E6B2 -> U+E11F
+ ["ee9c96", "ee808c"], # [PERSONAL COMPUTER] U+E716 -> U+E00C
+ ["ee9c99", "ee8c81"], # [PENCIL] U+E719 -> U+E301
+ ["ee9cb0", :undef], # [PAPERCLIP] U+E730 -> "[クリップ]"
+ ["ee9a8c", "ee84a6"], # [OPTICAL DISC] U+E68C -> U+E126
+ ["ee99b5", "ee8c93"], # [BLACK SCISSORS] U+E675 -> U+E313
+ ["ee9a83", "ee8588"], # [OPEN BOOK] U+E683 -> U+E148
+ ["ee9992", :undef], # [RUNNING SHIRT WITH SASH] U+E652 -> U+3013 (GETA)
+ ["ee9993", "ee8096"], # [BASEBALL] U+E653 -> U+E016
+ ["ee9994", "ee8094"], # [FLAG IN HOLE] U+E654 -> U+E014
+ ["ee9995", "ee8095"], # [TENNIS RACQUET AND BALL] U+E655 -> U+E015
+ ["ee9996", "ee8098"], # [SOCCER BALL] U+E656 -> U+E018
+ ["ee9997", "ee8093"], # [SKI AND SKI BOOT] U+E657 -> U+E013
+ ["ee9998", "ee90aa"], # [BASKETBALL AND HOOP] U+E658 -> U+E42A
+ ["ee9999", "ee84b2"], # [CHEQUERED FLAG] U+E659 -> U+E132
+ ["ee9c92", :undef], # [SNOWBOARDER] U+E712 -> "[スノボ]"
+ ["ee9cb3", "ee8495"], # [RUNNER] U+E733 -> U+E115
+ ["ee999b", "ee809e"], # [TRAIN] U+E65B -> U+E01E
+ ["ee999c", "ee90b4"], # [CIRCLED LATIN CAPITAL LETTER M] U+E65C -> U+E434
+ ["ee999d", "ee90b5"], # [HIGH-SPEED TRAIN] U+E65D -> U+E435
+ ["ee999e", "ee809b"], # [AUTOMOBILE] U+E65E -> U+E01B
+ ["ee999f", "ee90ae"], # [RECREATIONAL VEHICLE] U+E65F -> U+E42E
+ ["ee99a0", "ee8599"], # [ONCOMING BUS] U+E660 -> U+E159
+ ["ee99a1", "ee8882"], # [SHIP] U+E661 -> U+E202
+ ["ee99a2", "ee809d"], # [AIRPLANE] U+E662 -> U+E01D
+ ["ee9aa3", "ee809c"], # [SAILBOAT] U+E6A3 -> U+E01C
+ ["ee99ab", "ee80ba"], # [FUEL PUMP] U+E66B -> U+E03A
+ ["ee99ac", "ee858f"], # [NEGATIVE SQUARED LATIN CAPITAL LETTER P] U+E66C -> U+E14F
+ ["ee99ad", "ee858e"], # [HORIZONTAL TRAFFIC LIGHT] U+E66D -> U+E14E
+ ["ee9bb7", "ee84a3"], # [HOT SPRINGS] U+E6F7 -> U+E123
+ ["ee99b9", :undef], # [CAROUSEL HORSE] U+E679 -> U+3013 (GETA)
+ ["ee99b6", "ee80bc"], # [MICROPHONE] U+E676 -> U+E03C
+ ["ee99b7", "ee80bd"], # [MOVIE CAMERA] U+E677 -> U+E03D
+ ["ee99ba", "ee8c8a"], # [HEADPHONE] U+E67A -> U+E30A
+ ["ee99bb", "ee9482"], # [ARTIST PALETTE] U+E67B -> U+E502
+ ["ee99bc", "ee9483"], # [TOP HAT] U+E67C -> U+E503
+ ["ee99bd", :undef], # [CIRCUS TENT] U+E67D -> "[イベント]"
+ ["ee99be", "ee84a5"], # [TICKET] U+E67E -> U+E125
+ ["ee9aac", "ee8ca4"], # [CLAPPER BOARD] U+E6AC -> U+E324
+ ["ee9a8b", :undef], # [VIDEO GAME] U+E68B -> "[ゲーム]"
+ ["ee9bb6", "ee80be"], # [MUSICAL NOTE] U+E6F6 -> U+E03E
+ ["ee9bbf", "ee8ca6"], # [MULTIPLE MUSICAL NOTES] U+E6FF -> U+E326
+ ["ee9a81", "ee8088"], # [CAMERA] U+E681 -> U+E008
+ ["ee9a8a", "ee84aa"], # [TELEVISION] U+E68A -> U+E12A
+ ["ee9bb9", "ee8083"], # [KISS MARK] U+E6F9 -> U+E003
+ ["ee9c97", "ee8483ee8ca8"], # [LOVE LETTER] U+E717 -> U+E103 U+E328
+ ["ee9c9b", "ee80b4"], # [RING] U+E71B -> U+E034
+ ["ee9cb1", "ee898e"], # [COPYRIGHT SIGN] U+E731 -> U+E24E
+ ["ee9cb6", "ee898f"], # [REGISTERED SIGN] U+E736 -> U+E24F
+ ["ee9cb2", "ee94b7"], # [TRADE MARK SIGN] U+E732 -> U+E537
+ ["ee9ba0", "ee8890"], # [HASH KEY] U+E6E0 -> U+E210
+ ["ee9ba2", "ee889c"], # [KEYCAP 1] U+E6E2 -> U+E21C
+ ["ee9ba3", "ee889d"], # [KEYCAP 2] U+E6E3 -> U+E21D
+ ["ee9ba4", "ee889e"], # [KEYCAP 3] U+E6E4 -> U+E21E
+ ["ee9ba5", "ee889f"], # [KEYCAP 4] U+E6E5 -> U+E21F
+ ["ee9ba6", "ee88a0"], # [KEYCAP 5] U+E6E6 -> U+E220
+ ["ee9ba7", "ee88a1"], # [KEYCAP 6] U+E6E7 -> U+E221
+ ["ee9ba8", "ee88a2"], # [KEYCAP 7] U+E6E8 -> U+E222
+ ["ee9ba9", "ee88a3"], # [KEYCAP 8] U+E6E9 -> U+E223
+ ["ee9baa", "ee88a4"], # [KEYCAP 9] U+E6EA -> U+E224
+ ["ee9bab", "ee88a5"], # [KEYCAP 0] U+E6EB -> U+E225
+ ["ee99b3", "ee84a0"], # [HAMBURGER] U+E673 -> U+E120
+ ["ee9d89", "ee8d82"], # [RICE BALL] U+E749 -> U+E342
+ ["ee9d8a", "ee8186"], # [SHORTCAKE] U+E74A -> U+E046
+ ["ee9d8c", "ee8d80"], # [STEAMING BOWL] U+E74C -> U+E340
+ ["ee9d8d", "ee8cb9"], # [BREAD] U+E74D -> U+E339
+ ["ee99af", "ee8183"], # [FORK AND KNIFE] U+E66F -> U+E043
+ ["ee99b0", "ee8185"], # [HOT BEVERAGE] U+E670 -> U+E045
+ ["ee99b1", "ee8184"], # [COCKTAIL GLASS] U+E671 -> U+E044
+ ["ee99b2", "ee8187"], # [BEER MUG] U+E672 -> U+E047
+ ["ee9c9e", "ee8cb8"], # [TEACUP WITHOUT HANDLE] U+E71E -> U+E338
+ ["ee9d8b", "ee8c8b"], # [SAKE BOTTLE AND CUP] U+E74B -> U+E30B
+ ["ee9d96", "ee8184"], # [WINE GLASS] U+E756 -> U+E044
+ ["ee99b8", "ee88b6"], # [NORTH EAST ARROW] U+E678 -> U+E236
+ ["ee9a96", "ee88b8"], # [SOUTH EAST ARROW] U+E696 -> U+E238
+ ["ee9a97", "ee88b7"], # [NORTH WEST ARROW] U+E697 -> U+E237
+ ["ee9aa5", "ee88b9"], # [SOUTH WEST ARROW] U+E6A5 -> U+E239
+ ["ee9bb5", "ee88b6"], # [ARROW POINTING RIGHTWARDS THEN CURVING UPWARDS] U+E6F5 -> U+E236
+ ["ee9c80", "ee88b8"], # [ARROW POINTING RIGHTWARDS THEN CURVING DOWNWARDS] U+E700 -> U+E238
+ ["ee9cbc", :undef], # [LEFT RIGHT ARROW] U+E73C -> "⇔"
+ ["ee9cbd", :undef], # [UP DOWN ARROW] U+E73D -> "↑↓"
+ ["ee9c82", "ee80a1"], # [HEAVY EXCLAMATION MARK ORNAMENT] U+E702 -> U+E021
+ ["ee9c83", :undef], # [EXCLAMATION QUESTION MARK] U+E703 -> "ï¼ï¼Ÿ"
+ ["ee9c84", :undef], # [DOUBLE EXCLAMATION MARK] U+E704 -> "ï¼ï¼"
+ ["ee9c89", :undef], # [WAVY DASH] U+E709 -> U+3013 (GETA)
+ ["ee9c8a", :undef], # [CURLY LOOP] U+E70A -> "~"
+ ["ee9b9f", "ee8891"], # [DOUBLE CURLY LOOP] U+E6DF -> U+E211
+ ["ee9bac", "ee80a2"], # [HEAVY BLACK HEART] U+E6EC -> U+E022
+ ["ee9bad", "ee8ca7"], # [BEATING HEART] U+E6ED -> U+E327
+ ["ee9bae", "ee80a3"], # [BROKEN HEART] U+E6EE -> U+E023
+ ["ee9baf", "ee8ca7"], # [TWO HEARTS] U+E6EF -> U+E327
+ ["ee9a8d", "ee888c"], # [BLACK HEART SUIT] U+E68D -> U+E20C
+ ["ee9a8e", "ee888e"], # [BLACK SPADE SUIT] U+E68E -> U+E20E
+ ["ee9a8f", "ee888d"], # [BLACK DIAMOND SUIT] U+E68F -> U+E20D
+ ["ee9a90", "ee888f"], # [BLACK CLUB SUIT] U+E690 -> U+E20F
+ ["ee99bf", "ee8c8e"], # [SMOKING SYMBOL] U+E67F -> U+E30E
+ ["ee9a80", "ee8888"], # [NO SMOKING SYMBOL] U+E680 -> U+E208
+ ["ee9a9b", "ee888a"], # [WHEELCHAIR SYMBOL] U+E69B -> U+E20A
+ ["ee9b9e", :undef], # [TRIANGULAR FLAG ON POST] U+E6DE -> "[æ——]"
+ ["ee9cb7", "ee8992"], # [WARNING SIGN] U+E737 -> U+E252
+ ["ee9cb5", :undef], # [BLACK UNIVERSAL RECYCLING SYMBOL] U+E735 -> "↑↓"
+ ["ee9c9d", "ee84b6"], # [BICYCLE] U+E71D -> U+E136
+ ["ee99ae", "ee8591"], # [RESTROOM] U+E66E -> U+E151
+ ["ee9c94", :undef], # [DOOR] U+E714 -> "[ドア]"
+ ["ee9b9b", :undef], # [SQUARED CL] U+E6DB -> "[CL]"
+ ["ee9b97", :undef], # [SQUARED FREE] U+E6D7 -> "[FREE]"
+ ["ee9b98", "ee88a9"], # [SQUARED ID] U+E6D8 -> U+E229
+ ["ee9b9d", "ee8892"], # [SQUARED NEW] U+E6DD -> U+E212
+ ["ee9caf", :undef], # [SQUARED NG] U+E72F -> "[NG]"
+ ["ee9c8b", "ee898d"], # [SQUARED OK] U+E70B -> U+E24D
+ ["ee9cb8", :undef], # [SQUARED CJK UNIFIED IDEOGRAPH-7981] U+E738 -> "[ç¦]"
+ ["ee9cb9", "ee88ab"], # [SQUARED CJK UNIFIED IDEOGRAPH-7A7A] U+E739 -> U+E22B
+ ["ee9cba", :undef], # [SQUARED CJK UNIFIED IDEOGRAPH-5408] U+E73A -> "[åˆ]"
+ ["ee9cbb", "ee88aa"], # [SQUARED CJK UNIFIED IDEOGRAPH-6E80] U+E73B -> U+E22A
+ ["ee9cb4", "ee8c95"], # [CIRCLED IDEOGRAPH SECRET] U+E734 -> U+E315
+ ["ee9bb8", :undef], # [DIAMOND SHAPE WITH A DOT INSIDE] U+E6F8 -> U+3013 (GETA)
+ ["ee9bbb", "ee848f"], # [ELECTRIC LIGHT BULB] U+E6FB -> U+E10F
+ ["ee9bbc", "ee8cb4"], # [ANGER SYMBOL] U+E6FC -> U+E334
+ ["ee9bbe", "ee8c91"], # [BOMB] U+E6FE -> U+E311
+ ["ee9c81", "ee84bc"], # [SLEEPING SYMBOL] U+E701 -> U+E13C
+ ["ee9c85", :undef], # [COLLISION SYMBOL] U+E705 -> "[ドンッ]"
+ ["ee9c86", "ee8cb1"], # [SPLASHING SWEAT SYMBOL] U+E706 -> U+E331
+ ["ee9c87", "ee8cb1"], # [DROP OF WATER] U+E707 -> U+E331
+ ["ee9c88", "ee8cb0"], # [DASH SYMBOL] U+E708 -> U+E330
+ ["ee9bba", "ee8cae"], # [SPARKLES] U+E6FA -> U+E32E
+ ["ee9b9a", :undef], # [LEFTWARDS ARROW WITH HOOK] U+E6DA -> "â†â”˜"
+ ["ee9b9c", "ee8494"], # [LEFT-POINTING MAGNIFYING GLASS] U+E6DC -> U+E114
+ ["ee9b99", "ee80bf"], # [KEY] U+E6D9 -> U+E03F
+ ["ee9c93", "ee8ca5"], # [BELL] U+E713 -> U+E325
+ ["ee9ab9", :undef], # [END WITH LEFTWARDS ARROW ABOVE] U+E6B9 -> "[end]"
+ ["ee9ab8", :undef], # [ON WITH EXCLAMATION MARK WITH LEFT RIGHT ARROW ABOVE] U+E6B8 -> "[ON]"
+ ["ee9ab7", :undef], # [SOON WITH RIGHTWARDS ARROW ABOVE] U+E6B7 -> "[SOON]"
+ ["ee9a93", "ee8090"], # [RAISED FIST] U+E693 -> U+E010
+ ["ee9a95", "ee8092"], # [RAISED HAND] U+E695 -> U+E012
+ ["ee9a94", "ee8091"], # [VICTORY HAND] U+E694 -> U+E011
+ ["ee9bbd", "ee808d"], # [FISTED HAND SIGN] U+E6FD -> U+E00D
+ ["ee9ca7", "ee808e"], # [THUMBS UP SIGN] U+E727 -> U+E00E
+ ["ee9b91", :undef], # [EMOJI COMPATIBILITY SYMBOL-1] U+E6D1 -> "[iモード]"
+ ["ee9b92", :undef], # [EMOJI COMPATIBILITY SYMBOL-2] U+E6D2 -> "[iモード]"
+ ["ee9b94", :undef], # [EMOJI COMPATIBILITY SYMBOL-3] U+E6D4 -> "[ドコモ]"
+ ["ee9b95", :undef], # [EMOJI COMPATIBILITY SYMBOL-4] U+E6D5 -> "[ドコモãƒã‚¤ãƒ³ãƒˆ]"
+ ["ee9c8c", :undef], # [EMOJI COMPATIBILITY SYMBOL-5] U+E70C -> "[iアプリ]"
+ ["ee9c8d", :undef], # [EMOJI COMPATIBILITY SYMBOL-6] U+E70D -> "[iアプリ]"
+ ["ee9aa6", :undef], # [EMOJI COMPATIBILITY SYMBOL-7] U+E6A6 -> "[ã´]"
+ ["ee9aa7", :undef], # [EMOJI COMPATIBILITY SYMBOL-8] U+E6A7 -> "[ã‚]"
+ ["ee9aa8", :undef], # [EMOJI COMPATIBILITY SYMBOL-9] U+E6A8 -> "[ãƒã‚±ãƒƒãƒˆ]"
+ ["ee9aa9", :undef], # [EMOJI COMPATIBILITY SYMBOL-10] U+E6A9 -> "[ãƒã‚±ãƒƒãƒˆ]"
+ ["ee9aaa", :undef], # [EMOJI COMPATIBILITY SYMBOL-11] U+E6AA -> "[電話先行]"
+ ["ee9aab", :undef], # [EMOJI COMPATIBILITY SYMBOL-12] U+E6AB -> "[Pコード]"
+ ["ee9aaf", "ee80bd"], # [EMOJI COMPATIBILITY SYMBOL-13] U+E6AF -> U+E03D
+ ["ee9ab0", :undef], # [EMOJI COMPATIBILITY SYMBOL-14] U+E6B0 -> "[ã´]"
+ ["ee9ab4", :undef], # [EMOJI COMPATIBILITY SYMBOL-15] U+E6B4 -> "(ã´)"
+ ["ee9ab5", :undef], # [EMOJI COMPATIBILITY SYMBOL-16] U+E6B5 -> "[ã´]"
+ ["ee9ab6", :undef], # [EMOJI COMPATIBILITY SYMBOL-17] U+E6B6 -> "[ãƒã‚§ãƒƒã‚¯]"
+ ["ee9abb", :undef], # [EMOJI COMPATIBILITY SYMBOL-18] U+E6BB -> "[F]"
+ ["ee9abc", :undef], # [EMOJI COMPATIBILITY SYMBOL-19] U+E6BC -> "[D]"
+ ["ee9abd", :undef], # [EMOJI COMPATIBILITY SYMBOL-20] U+E6BD -> "[S]"
+ ["ee9abe", :undef], # [EMOJI COMPATIBILITY SYMBOL-21] U+E6BE -> "[C]"
+ ["ee9abf", :undef], # [EMOJI COMPATIBILITY SYMBOL-22] U+E6BF -> "[R]"
+ ["ee9b80", :undef], # [EMOJI COMPATIBILITY SYMBOL-23] U+E6C0 -> "â– "
+ ["ee9b81", :undef], # [EMOJI COMPATIBILITY SYMBOL-24] U+E6C1 -> "â– "
+ ["ee9b82", :undef], # [EMOJI COMPATIBILITY SYMBOL-25] U+E6C2 -> "â–¼"
+ ["ee9b83", :undef], # [EMOJI COMPATIBILITY SYMBOL-26] U+E6C3 -> "††††"
+ ["ee9b84", :undef], # [EMOJI COMPATIBILITY SYMBOL-27] U+E6C4 -> "†††"
+ ["ee9b85", :undef], # [EMOJI COMPATIBILITY SYMBOL-28] U+E6C5 -> "††"
+ ["ee9b86", :undef], # [EMOJI COMPATIBILITY SYMBOL-29] U+E6C6 -> "†"
+ ["ee9b87", :undef], # [EMOJI COMPATIBILITY SYMBOL-30] U+E6C7 -> "[I]"
+ ["ee9b88", :undef], # [EMOJI COMPATIBILITY SYMBOL-31] U+E6C8 -> "[M]"
+ ["ee9b89", :undef], # [EMOJI COMPATIBILITY SYMBOL-32] U+E6C9 -> "[E]"
+ ["ee9b8a", :undef], # [EMOJI COMPATIBILITY SYMBOL-33] U+E6CA -> "[VE]"
+ ["ee9b8b", :undef], # [EMOJI COMPATIBILITY SYMBOL-34] U+E6CB -> "â—"
+ ["ee9b8c", :undef], # [EMOJI COMPATIBILITY SYMBOL-35] U+E6CC -> "[カード使用ä¸å¯]"
+ ["ee9b8d", :undef], # [EMOJI COMPATIBILITY SYMBOL-36] U+E6CD -> "[ãƒã‚§ãƒƒã‚¯ãƒœãƒƒã‚¯ã‚¹]"
+ ["ee9ba1", :undef], # [EMOJI COMPATIBILITY SYMBOL-66] U+E6E1 -> "[Q]"
+]
+
+EMOJI_EXCHANGE_TBL['UTF8-DoCoMo']['UTF-8'] = [
+ ["ee98be", "e29880"], # [BLACK SUN WITH RAYS] U+E63E -> U+2600
+ ["ee98bf", "e29881"], # [CLOUD] U+E63F -> U+2601
+ ["ee9980", "e29894"], # [UMBRELLA WITH RAIN DROPS] U+E640 -> U+2614
+ ["ee9981", "e29b84"], # [SNOWMAN WITHOUT SNOW] U+E641 -> U+26C4
+ ["ee9982", "e29aa1"], # [HIGH VOLTAGE SIGN] U+E642 -> U+26A1
+ ["ee9983", :undef], # [CYCLONE] U+E643 -> U+1F300
+ ["ee9984", :undef], # [FOGGY] U+E644 -> U+1F301
+ ["ee9985", :undef], # [CLOSED UMBRELLA] U+E645 -> U+1F302
+ ["ee9ab3", :undef], # [NIGHT WITH STARS] U+E6B3 -> U+1F303
+ ["ee9cbf", :undef], # [WATER WAVE] U+E73F -> U+1F30A
+ ["ee9a9c", :undef], # [NEW MOON SYMBOL] U+E69C -> U+1F311
+ ["ee9a9d", :undef], # [WAXING GIBBOUS MOON SYMBOL] U+E69D -> U+1F314
+ ["ee9a9e", :undef], # [FIRST QUARTER MOON SYMBOL] U+E69E -> U+1F313
+ ["ee9a9f", :undef], # [CRESCENT MOON] U+E69F -> U+1F319
+ ["ee9aa0", :undef], # [FULL MOON SYMBOL] U+E6A0 -> U+1F315
+ ["ee9c9f", "e28c9a"], # [WATCH] U+E71F -> U+231A
+ ["ee9aba", :undef], # [ALARM CLOCK] U+E6BA -> U+23F0
+ ["ee9c9c", :undef], # [HOURGLASS WITH FLOWING SAND] U+E71C -> U+23F3
+ ["ee9986", "e29988"], # [ARIES] U+E646 -> U+2648
+ ["ee9987", "e29989"], # [TAURUS] U+E647 -> U+2649
+ ["ee9988", "e2998a"], # [GEMINI] U+E648 -> U+264A
+ ["ee9989", "e2998b"], # [CANCER] U+E649 -> U+264B
+ ["ee998a", "e2998c"], # [LEO] U+E64A -> U+264C
+ ["ee998b", "e2998d"], # [VIRGO] U+E64B -> U+264D
+ ["ee998c", "e2998e"], # [LIBRA] U+E64C -> U+264E
+ ["ee998d", "e2998f"], # [SCORPIUS] U+E64D -> U+264F
+ ["ee998e", "e29990"], # [SAGITTARIUS] U+E64E -> U+2650
+ ["ee998f", "e29991"], # [CAPRICORN] U+E64F -> U+2651
+ ["ee9990", "e29992"], # [AQUARIUS] U+E650 -> U+2652
+ ["ee9991", "e29993"], # [PISCES] U+E651 -> U+2653
+ ["ee9d81", :undef], # [FOUR LEAF CLOVER] U+E741 -> U+1F340
+ ["ee9d83", :undef], # [TULIP] U+E743 -> U+1F337
+ ["ee9d86", :undef], # [SEEDLING] U+E746 -> U+1F331
+ ["ee9d87", :undef], # [MAPLE LEAF] U+E747 -> U+1F341
+ ["ee9d88", :undef], # [CHERRY BLOSSOM] U+E748 -> U+1F338
+ ["ee9d82", :undef], # [CHERRIES] U+E742 -> U+1F352
+ ["ee9d84", :undef], # [BANANA] U+E744 -> U+1F34C
+ ["ee9d85", :undef], # [RED APPLE] U+E745 -> U+1F34E
+ ["ee9a91", :undef], # [EYES] U+E691 -> U+1F440
+ ["ee9a92", :undef], # [EAR] U+E692 -> U+1F442
+ ["ee9c90", :undef], # [LIPSTICK] U+E710 -> U+1F484
+ ["ee9ab1", :undef], # [BUST IN SILHOUETTE] U+E6B1 -> U+1F464
+ ["ee9d8e", :undef], # [SNAIL] U+E74E -> U+1F40C
+ ["ee9d8f", :undef], # [BABY CHICK] U+E74F -> U+1F424
+ ["ee9d90", :undef], # [PENGUIN] U+E750 -> U+1F427
+ ["ee9d91", :undef], # [FISH] U+E751 -> U+1F41F
+ ["ee9aa2", :undef], # [CAT FACE] U+E6A2 -> U+1F431
+ ["ee9d94", :undef], # [HORSE FACE] U+E754 -> U+1F434
+ ["ee9aa1", :undef], # [DOG FACE] U+E6A1 -> U+1F436
+ ["ee9d95", :undef], # [PIG FACE] U+E755 -> U+1F437
+ ["ee9bb1", :undef], # [ANGRY FACE] U+E6F1 -> U+1F600
+ ["ee9bb2", :undef], # [DISAPPOINTED FACE] U+E6F2 -> U+1F603
+ ["ee9bb4", :undef], # [DIZZY FACE] U+E6F4 -> U+1F604
+ ["ee9ca5", :undef], # [EXPRESSIONLESS FACE] U+E725 -> U+1F606
+ ["ee9ca6", :undef], # [FACE WITH HEART-SHAPED EYES] U+E726 -> U+1F607
+ ["ee9ca8", :undef], # [WINKING FACE WITH STUCK-OUT TONGUE] U+E728 -> U+1F609
+ ["ee9d92", :undef], # [FACE SAVOURING DELICIOUS FOOD] U+E752 -> U+1F60B
+ ["ee9bb0", :undef], # [HAPPY FACE WITH OPEN MOUTH] U+E6F0 -> U+1F610
+ ["ee9ca2", :undef], # [HAPPY FACE WITH OPEN MOUTH AND COLD SWEAT] U+E722 -> U+1F611
+ ["ee9caa", :undef], # [HAPPY FACE WITH OPEN MOUTH AND CLOSED EYES] U+E72A -> U+1F612
+ ["ee9d93", :undef], # [HAPPY FACE WITH GRIN] U+E753 -> U+1F613
+ ["ee9cae", :undef], # [CRYING FACE] U+E72E -> U+1F617
+ ["ee9cad", :undef], # [LOUDLY CRYING FACE] U+E72D -> U+1F618
+ ["ee9cab", :undef], # [PERSEVERING FACE] U+E72B -> U+1F61A
+ ["ee9ca4", :undef], # [POUTING FACE] U+E724 -> U+1F61B
+ ["ee9ca1", :undef], # [RELIEVED FACE] U+E721 -> U+1F61C
+ ["ee9bb3", :undef], # [CONFOUNDED FACE] U+E6F3 -> U+1F61D
+ ["ee9ca0", :undef], # [PENSIVE FACE] U+E720 -> U+1F61E
+ ["ee9d97", :undef], # [FACE SCREAMING IN FEAR] U+E757 -> U+1F61F
+ ["ee9cac", :undef], # [SMIRKING FACE] U+E72C -> U+1F621
+ ["ee9ca3", :undef], # [FACE WITH COLD SWEAT] U+E723 -> U+1F622
+ ["ee9ca9", :undef], # [WINKING FACE] U+E729 -> U+1F625
+ ["ee99a3", :undef], # [HOUSE BUILDING] U+E663 -> U+1F3E0
+ ["ee99a4", :undef], # [OFFICE BUILDING] U+E664 -> U+1F3E2
+ ["ee99a5", :undef], # [JAPANESE POST OFFICE] U+E665 -> U+1F3E3
+ ["ee99a6", :undef], # [HOSPITAL] U+E666 -> U+1F3E5
+ ["ee99a7", :undef], # [BANK] U+E667 -> U+1F3E6
+ ["ee99a8", :undef], # [AUTOMATED TELLER MACHINE] U+E668 -> U+1F3E7
+ ["ee99a9", :undef], # [HOTEL] U+E669 -> U+1F3E8
+ ["ee99aa", :undef], # [CONVENIENCE STORE] U+E66A -> U+1F3EA
+ ["ee9cbe", :undef], # [SCHOOL] U+E73E -> U+1F3EB
+ ["ee9d80", :undef], # [MOUNT FUJI] U+E740 -> U+1F5FB
+ ["ee9a99", :undef], # [ATHLETIC SHOE] U+E699 -> U+1F45F
+ ["ee99b4", :undef], # [HIGH-HEELED SHOE] U+E674 -> U+1F460
+ ["ee9a98", :undef], # [FOOTPRINTS] U+E698 -> U+1F463
+ ["ee9a9a", :undef], # [EYEGLASSES] U+E69A -> U+1F453
+ ["ee9c8e", :undef], # [T-SHIRT] U+E70E -> U+1F455
+ ["ee9c91", :undef], # [JEANS] U+E711 -> U+1F456
+ ["ee9c9a", :undef], # [CROWN] U+E71A -> U+1F451
+ ["ee9c8f", :undef], # [PURSE] U+E70F -> U+1F45B
+ ["ee9a82", :undef], # [HANDBAG] U+E682 -> U+1F45C
+ ["ee9aad", :undef], # [POUCH] U+E6AD -> U+1F45D
+ ["ee9c95", :undef], # [MONEY BAG] U+E715 -> U+1F4B0
+ ["ee9b96", :undef], # [BANKNOTE WITH YEN SIGN] U+E6D6 -> U+1F4B4
+ ["ee9c98", :undef], # [WRENCH] U+E718 -> U+1F527
+ ["ee9a84", :undef], # [RIBBON] U+E684 -> U+1F380
+ ["ee9a85", :undef], # [WRAPPED PRESENT] U+E685 -> U+1F381
+ ["ee9a86", :undef], # [BIRTHDAY CAKE] U+E686 -> U+1F382
+ ["ee9aa4", :undef], # [CHRISTMAS TREE] U+E6A4 -> U+1F384
+ ["ee999a", :undef], # [PAGER] U+E65A -> U+1F4DF
+ ["ee9a87", "e2988e"], # [BLACK TELEPHONE] U+E687 -> U+260E
+ ["ee9a88", :undef], # [MOBILE PHONE] U+E688 -> U+1F4F1
+ ["ee9b8e", :undef], # [MOBILE PHONE WITH RIGHTWARDS ARROW AT LEFT] U+E6CE -> U+1F4F2
+ ["ee9a89", :undef], # [MEMO] U+E689 -> U+1F4DD
+ ["ee9b90", :undef], # [FAX MACHINE] U+E6D0 -> U+1F4E0
+ ["ee9b93", "e29c89"], # [ENVELOPE] U+E6D3 -> U+2709
+ ["ee9b8f", :undef], # [ENVELOPE WITH DOWNWARDS ARROW ABOVE] U+E6CF -> U+1F4E9
+ ["ee9aae", "e29c92"], # [BLACK NIB] U+E6AE -> U+2712
+ ["ee9ab2", :undef], # [SEAT] U+E6B2 -> U+1F4BA
+ ["ee9c96", :undef], # [PERSONAL COMPUTER] U+E716 -> U+1F4BB
+ ["ee9c99", "e29c8f"], # [PENCIL] U+E719 -> U+270F
+ ["ee9cb0", :undef], # [PAPERCLIP] U+E730 -> U+1F4CE
+ ["ee9a8c", :undef], # [OPTICAL DISC] U+E68C -> U+1F4BF
+ ["ee99b5", "e29c82"], # [BLACK SCISSORS] U+E675 -> U+2702
+ ["ee9a83", :undef], # [OPEN BOOK] U+E683 -> U+1F4D6
+ ["ee9992", :undef], # [RUNNING SHIRT WITH SASH] U+E652 -> U+1F3BD
+ ["ee9993", "e29abe"], # [BASEBALL] U+E653 -> U+26BE
+ ["ee9994", "e29bb3"], # [FLAG IN HOLE] U+E654 -> U+26F3
+ ["ee9995", :undef], # [TENNIS RACQUET AND BALL] U+E655 -> U+1F3BE
+ ["ee9996", "e29abd"], # [SOCCER BALL] U+E656 -> U+26BD
+ ["ee9997", :undef], # [SKI AND SKI BOOT] U+E657 -> U+1F3BF
+ ["ee9998", :undef], # [BASKETBALL AND HOOP] U+E658 -> U+1F3C0
+ ["ee9999", :undef], # [CHEQUERED FLAG] U+E659 -> U+1F3C1
+ ["ee9c92", :undef], # [SNOWBOARDER] U+E712 -> U+1F3C2
+ ["ee9cb3", :undef], # [RUNNER] U+E733 -> U+1F3C3
+ ["ee999b", :undef], # [TRAIN] U+E65B -> U+1F686
+ ["ee999c", "e29382"], # [CIRCLED LATIN CAPITAL LETTER M] U+E65C -> U+24C2
+ ["ee999d", :undef], # [HIGH-SPEED TRAIN] U+E65D -> U+1F684
+ ["ee999e", :undef], # [AUTOMOBILE] U+E65E -> U+1F697
+ ["ee999f", :undef], # [RECREATIONAL VEHICLE] U+E65F -> U+1F699
+ ["ee99a0", :undef], # [ONCOMING BUS] U+E660 -> U+1F68D
+ ["ee99a1", :undef], # [SHIP] U+E661 -> U+1F6A2
+ ["ee99a2", "e29c88"], # [AIRPLANE] U+E662 -> U+2708
+ ["ee9aa3", "e29bb5"], # [SAILBOAT] U+E6A3 -> U+26F5
+ ["ee99ab", "e29bbd"], # [FUEL PUMP] U+E66B -> U+26FD
+ ["ee99ac", "f09f85bf"], # [NEGATIVE SQUARED LATIN CAPITAL LETTER P] U+E66C -> U+1F17F
+ ["ee99ad", :undef], # [HORIZONTAL TRAFFIC LIGHT] U+E66D -> U+1F6A5
+ ["ee9bb7", "e299a8"], # [HOT SPRINGS] U+E6F7 -> U+2668
+ ["ee99b9", :undef], # [CAROUSEL HORSE] U+E679 -> U+1F3A0
+ ["ee99b6", :undef], # [MICROPHONE] U+E676 -> U+1F3A4
+ ["ee99b7", :undef], # [MOVIE CAMERA] U+E677 -> U+1F3A5
+ ["ee99ba", :undef], # [HEADPHONE] U+E67A -> U+1F3A7
+ ["ee99bb", :undef], # [ARTIST PALETTE] U+E67B -> U+1F3A8
+ ["ee99bc", :undef], # [TOP HAT] U+E67C -> U+1F3A9
+ ["ee99bd", :undef], # [CIRCUS TENT] U+E67D -> U+1F3AA
+ ["ee99be", :undef], # [TICKET] U+E67E -> U+1F3AB
+ ["ee9aac", :undef], # [CLAPPER BOARD] U+E6AC -> U+1F3AC
+ ["ee9a8b", :undef], # [VIDEO GAME] U+E68B -> U+1F3AE
+ ["ee9bb6", :undef], # [MUSICAL NOTE] U+E6F6 -> U+1F3B5
+ ["ee9bbf", :undef], # [MULTIPLE MUSICAL NOTES] U+E6FF -> U+1F3B6
+ ["ee9a81", :undef], # [CAMERA] U+E681 -> U+1F4F7
+ ["ee9a8a", :undef], # [TELEVISION] U+E68A -> U+1F4FA
+ ["ee9bb9", :undef], # [KISS MARK] U+E6F9 -> U+1F48B
+ ["ee9c97", :undef], # [LOVE LETTER] U+E717 -> U+1F48C
+ ["ee9c9b", :undef], # [RING] U+E71B -> U+1F48D
+ ["ee9cb1", "c2a9"], # [COPYRIGHT SIGN] U+E731 -> U+A9
+ ["ee9cb6", "c2ae"], # [REGISTERED SIGN] U+E736 -> U+AE
+ ["ee9cb2", "e284a2"], # [TRADE MARK SIGN] U+E732 -> U+2122
+ ["ee9ba0", "23e283a3"], # [HASH KEY] U+E6E0 -> U+23 U+20E3
+ ["ee9ba2", "31e283a3"], # [KEYCAP 1] U+E6E2 -> U+31 U+20E3
+ ["ee9ba3", "32e283a3"], # [KEYCAP 2] U+E6E3 -> U+32 U+20E3
+ ["ee9ba4", "33e283a3"], # [KEYCAP 3] U+E6E4 -> U+33 U+20E3
+ ["ee9ba5", "34e283a3"], # [KEYCAP 4] U+E6E5 -> U+34 U+20E3
+ ["ee9ba6", "35e283a3"], # [KEYCAP 5] U+E6E6 -> U+35 U+20E3
+ ["ee9ba7", "36e283a3"], # [KEYCAP 6] U+E6E7 -> U+36 U+20E3
+ ["ee9ba8", "37e283a3"], # [KEYCAP 7] U+E6E8 -> U+37 U+20E3
+ ["ee9ba9", "38e283a3"], # [KEYCAP 8] U+E6E9 -> U+38 U+20E3
+ ["ee9baa", "39e283a3"], # [KEYCAP 9] U+E6EA -> U+39 U+20E3
+ ["ee9bab", "30e283a3"], # [KEYCAP 0] U+E6EB -> U+30 U+20E3
+ ["ee99b3", :undef], # [HAMBURGER] U+E673 -> U+1F354
+ ["ee9d89", :undef], # [RICE BALL] U+E749 -> U+1F359
+ ["ee9d8a", :undef], # [SHORTCAKE] U+E74A -> U+1F370
+ ["ee9d8c", :undef], # [STEAMING BOWL] U+E74C -> U+1F35C
+ ["ee9d8d", :undef], # [BREAD] U+E74D -> U+1F35E
+ ["ee99af", :undef], # [FORK AND KNIFE] U+E66F -> U+1F374
+ ["ee99b0", "e29895"], # [HOT BEVERAGE] U+E670 -> U+2615
+ ["ee99b1", :undef], # [COCKTAIL GLASS] U+E671 -> U+1F378
+ ["ee99b2", :undef], # [BEER MUG] U+E672 -> U+1F37A
+ ["ee9c9e", :undef], # [TEACUP WITHOUT HANDLE] U+E71E -> U+1F375
+ ["ee9d8b", :undef], # [SAKE BOTTLE AND CUP] U+E74B -> U+1F376
+ ["ee9d96", :undef], # [WINE GLASS] U+E756 -> U+1F377
+ ["ee99b8", "e28697"], # [NORTH EAST ARROW] U+E678 -> U+2197
+ ["ee9a96", "e28698"], # [SOUTH EAST ARROW] U+E696 -> U+2198
+ ["ee9a97", "e28696"], # [NORTH WEST ARROW] U+E697 -> U+2196
+ ["ee9aa5", "e28699"], # [SOUTH WEST ARROW] U+E6A5 -> U+2199
+ ["ee9bb5", "e2a4b4"], # [ARROW POINTING RIGHTWARDS THEN CURVING UPWARDS] U+E6F5 -> U+2934
+ ["ee9c80", "e2a4b5"], # [ARROW POINTING RIGHTWARDS THEN CURVING DOWNWARDS] U+E700 -> U+2935
+ ["ee9cbc", "e28694"], # [LEFT RIGHT ARROW] U+E73C -> U+2194
+ ["ee9cbd", "e28695"], # [UP DOWN ARROW] U+E73D -> U+2195
+ ["ee9c82", "e29da2"], # [HEAVY EXCLAMATION MARK ORNAMENT] U+E702 -> U+2762
+ ["ee9c83", "e28189"], # [EXCLAMATION QUESTION MARK] U+E703 -> U+2049
+ ["ee9c84", "e280bc"], # [DOUBLE EXCLAMATION MARK] U+E704 -> U+203C
+ ["ee9c89", "e380b0"], # [WAVY DASH] U+E709 -> U+3030
+ ["ee9c8a", :undef], # [CURLY LOOP] U+E70A -> U+27B0
+ ["ee9b9f", :undef], # [DOUBLE CURLY LOOP] U+E6DF -> U+27BF
+ ["ee9bac", "e29da4"], # [HEAVY BLACK HEART] U+E6EC -> U+2764
+ ["ee9bad", :undef], # [BEATING HEART] U+E6ED -> U+1F493
+ ["ee9bae", :undef], # [BROKEN HEART] U+E6EE -> U+1F494
+ ["ee9baf", :undef], # [TWO HEARTS] U+E6EF -> U+1F495
+ ["ee9a8d", "e299a5"], # [BLACK HEART SUIT] U+E68D -> U+2665
+ ["ee9a8e", "e299a0"], # [BLACK SPADE SUIT] U+E68E -> U+2660
+ ["ee9a8f", "e299a6"], # [BLACK DIAMOND SUIT] U+E68F -> U+2666
+ ["ee9a90", "e299a3"], # [BLACK CLUB SUIT] U+E690 -> U+2663
+ ["ee99bf", :undef], # [SMOKING SYMBOL] U+E67F -> U+1F6AC
+ ["ee9a80", :undef], # [NO SMOKING SYMBOL] U+E680 -> U+1F6AD
+ ["ee9a9b", "e299bf"], # [WHEELCHAIR SYMBOL] U+E69B -> U+267F
+ ["ee9b9e", :undef], # [TRIANGULAR FLAG ON POST] U+E6DE -> U+1F6A9
+ ["ee9cb7", "e29aa0"], # [WARNING SIGN] U+E737 -> U+26A0
+ ["ee9cb5", "e299bb"], # [BLACK UNIVERSAL RECYCLING SYMBOL] U+E735 -> U+267B
+ ["ee9c9d", :undef], # [BICYCLE] U+E71D -> U+1F6B2
+ ["ee99ae", :undef], # [RESTROOM] U+E66E -> U+1F6BB
+ ["ee9c94", :undef], # [DOOR] U+E714 -> U+1F6AA
+ ["ee9b9b", :undef], # [SQUARED CL] U+E6DB -> U+1F191
+ ["ee9b97", :undef], # [SQUARED FREE] U+E6D7 -> U+1F193
+ ["ee9b98", :undef], # [SQUARED ID] U+E6D8 -> U+1F194
+ ["ee9b9d", :undef], # [SQUARED NEW] U+E6DD -> U+1F195
+ ["ee9caf", :undef], # [SQUARED NG] U+E72F -> U+1F196
+ ["ee9c8b", :undef], # [SQUARED OK] U+E70B -> U+1F197
+ ["ee9cb8", :undef], # [SQUARED CJK UNIFIED IDEOGRAPH-7981] U+E738 -> U+1F232
+ ["ee9cb9", :undef], # [SQUARED CJK UNIFIED IDEOGRAPH-7A7A] U+E739 -> U+1F233
+ ["ee9cba", :undef], # [SQUARED CJK UNIFIED IDEOGRAPH-5408] U+E73A -> U+1F234
+ ["ee9cbb", :undef], # [SQUARED CJK UNIFIED IDEOGRAPH-6E80] U+E73B -> U+1F235
+ ["ee9cb4", "e38a99"], # [CIRCLED IDEOGRAPH SECRET] U+E734 -> U+3299
+ ["ee9bb8", :undef], # [DIAMOND SHAPE WITH A DOT INSIDE] U+E6F8 -> U+1F4A0
+ ["ee9bbb", :undef], # [ELECTRIC LIGHT BULB] U+E6FB -> U+1F4A1
+ ["ee9bbc", :undef], # [ANGER SYMBOL] U+E6FC -> U+1F4A2
+ ["ee9bbe", :undef], # [BOMB] U+E6FE -> U+1F4A3
+ ["ee9c81", :undef], # [SLEEPING SYMBOL] U+E701 -> U+1F4A4
+ ["ee9c85", :undef], # [COLLISION SYMBOL] U+E705 -> U+1F4A5
+ ["ee9c86", :undef], # [SPLASHING SWEAT SYMBOL] U+E706 -> U+1F4A6
+ ["ee9c87", :undef], # [DROP OF WATER] U+E707 -> U+1F4A7
+ ["ee9c88", :undef], # [DASH SYMBOL] U+E708 -> U+1F4A8
+ ["ee9bba", :undef], # [SPARKLES] U+E6FA -> U+2728
+ ["ee9b9a", "e286a9"], # [LEFTWARDS ARROW WITH HOOK] U+E6DA -> U+21A9
+ ["ee9b9c", :undef], # [LEFT-POINTING MAGNIFYING GLASS] U+E6DC -> U+1F50D
+ ["ee9b99", :undef], # [KEY] U+E6D9 -> U+1F511
+ ["ee9c93", :undef], # [BELL] U+E713 -> U+1F514
+ ["ee9ab9", :undef], # [END WITH LEFTWARDS ARROW ABOVE] U+E6B9 -> U+1F51A
+ ["ee9ab8", :undef], # [ON WITH EXCLAMATION MARK WITH LEFT RIGHT ARROW ABOVE] U+E6B8 -> U+1F51B
+ ["ee9ab7", :undef], # [SOON WITH RIGHTWARDS ARROW ABOVE] U+E6B7 -> U+1F51C
+ ["ee9a93", :undef], # [RAISED FIST] U+E693 -> U+270A
+ ["ee9a95", :undef], # [RAISED HAND] U+E695 -> U+270B
+ ["ee9a94", "e29c8c"], # [VICTORY HAND] U+E694 -> U+270C
+ ["ee9bbd", :undef], # [FISTED HAND SIGN] U+E6FD -> U+1F44A
+ ["ee9ca7", :undef], # [THUMBS UP SIGN] U+E727 -> U+1F44D
+ ["ee9b91", :undef], # [EMOJI COMPATIBILITY SYMBOL-1] U+E6D1 -> "[iモード]"
+ ["ee9b92", :undef], # [EMOJI COMPATIBILITY SYMBOL-2] U+E6D2 -> "[iモード]"
+ ["ee9b94", :undef], # [EMOJI COMPATIBILITY SYMBOL-3] U+E6D4 -> "[ドコモ]"
+ ["ee9b95", :undef], # [EMOJI COMPATIBILITY SYMBOL-4] U+E6D5 -> "[ドコモãƒã‚¤ãƒ³ãƒˆ]"
+ ["ee9c8c", :undef], # [EMOJI COMPATIBILITY SYMBOL-5] U+E70C -> "[iアプリ]"
+ ["ee9c8d", :undef], # [EMOJI COMPATIBILITY SYMBOL-6] U+E70D -> "[iアプリ]"
+ ["ee9aa6", :undef], # [EMOJI COMPATIBILITY SYMBOL-7] U+E6A6 -> "[ã´]"
+ ["ee9aa7", :undef], # [EMOJI COMPATIBILITY SYMBOL-8] U+E6A7 -> "[ã‚]"
+ ["ee9aa8", :undef], # [EMOJI COMPATIBILITY SYMBOL-9] U+E6A8 -> "[ãƒã‚±ãƒƒãƒˆ]"
+ ["ee9aa9", :undef], # [EMOJI COMPATIBILITY SYMBOL-10] U+E6A9 -> "[ãƒã‚±ãƒƒãƒˆ]"
+ ["ee9aaa", :undef], # [EMOJI COMPATIBILITY SYMBOL-11] U+E6AA -> "[電話先行]"
+ ["ee9aab", :undef], # [EMOJI COMPATIBILITY SYMBOL-12] U+E6AB -> "[Pコード]"
+ ["ee9aaf", :undef], # [EMOJI COMPATIBILITY SYMBOL-13] U+E6AF -> U+3013 (GETA)
+ ["ee9ab0", :undef], # [EMOJI COMPATIBILITY SYMBOL-14] U+E6B0 -> "[ã´]"
+ ["ee9ab4", :undef], # [EMOJI COMPATIBILITY SYMBOL-15] U+E6B4 -> "(ã´)"
+ ["ee9ab5", :undef], # [EMOJI COMPATIBILITY SYMBOL-16] U+E6B5 -> "[ã´]"
+ ["ee9ab6", :undef], # [EMOJI COMPATIBILITY SYMBOL-17] U+E6B6 -> "[ãƒã‚§ãƒƒã‚¯]"
+ ["ee9abb", :undef], # [EMOJI COMPATIBILITY SYMBOL-18] U+E6BB -> "[F]"
+ ["ee9abc", :undef], # [EMOJI COMPATIBILITY SYMBOL-19] U+E6BC -> "[D]"
+ ["ee9abd", :undef], # [EMOJI COMPATIBILITY SYMBOL-20] U+E6BD -> "[S]"
+ ["ee9abe", :undef], # [EMOJI COMPATIBILITY SYMBOL-21] U+E6BE -> "[C]"
+ ["ee9abf", :undef], # [EMOJI COMPATIBILITY SYMBOL-22] U+E6BF -> "[R]"
+ ["ee9b80", :undef], # [EMOJI COMPATIBILITY SYMBOL-23] U+E6C0 -> "â– "
+ ["ee9b81", :undef], # [EMOJI COMPATIBILITY SYMBOL-24] U+E6C1 -> "â– "
+ ["ee9b82", :undef], # [EMOJI COMPATIBILITY SYMBOL-25] U+E6C2 -> "â–¼"
+ ["ee9b83", :undef], # [EMOJI COMPATIBILITY SYMBOL-26] U+E6C3 -> "††††"
+ ["ee9b84", :undef], # [EMOJI COMPATIBILITY SYMBOL-27] U+E6C4 -> "†††"
+ ["ee9b85", :undef], # [EMOJI COMPATIBILITY SYMBOL-28] U+E6C5 -> "††"
+ ["ee9b86", :undef], # [EMOJI COMPATIBILITY SYMBOL-29] U+E6C6 -> "†"
+ ["ee9b87", :undef], # [EMOJI COMPATIBILITY SYMBOL-30] U+E6C7 -> "[I]"
+ ["ee9b88", :undef], # [EMOJI COMPATIBILITY SYMBOL-31] U+E6C8 -> "[M]"
+ ["ee9b89", :undef], # [EMOJI COMPATIBILITY SYMBOL-32] U+E6C9 -> "[E]"
+ ["ee9b8a", :undef], # [EMOJI COMPATIBILITY SYMBOL-33] U+E6CA -> "[VE]"
+ ["ee9b8b", :undef], # [EMOJI COMPATIBILITY SYMBOL-34] U+E6CB -> "â—"
+ ["ee9b8c", :undef], # [EMOJI COMPATIBILITY SYMBOL-35] U+E6CC -> "[カード使用ä¸å¯]"
+ ["ee9b8d", :undef], # [EMOJI COMPATIBILITY SYMBOL-36] U+E6CD -> "[ãƒã‚§ãƒƒã‚¯ãƒœãƒƒã‚¯ã‚¹]"
+ ["ee9ba1", :undef], # [EMOJI COMPATIBILITY SYMBOL-66] U+E6E1 -> "[Q]"
+]
+
+EMOJI_EXCHANGE_TBL['UTF8-KDDI']['UTF8-DoCoMo'] = [
+ # for documented codepoints
+ ["ee9288", "ee98be"], # [BLACK SUN WITH RAYS] U+E488 -> U+E63E
+ ["ee928d", "ee98bf"], # [CLOUD] U+E48D -> U+E63F
+ ["ee928c", "ee9980"], # [UMBRELLA WITH RAIN DROPS] U+E48C -> U+E640
+ ["ee9285", "ee9981"], # [SNOWMAN WITHOUT SNOW] U+E485 -> U+E641
+ ["ee9287", "ee9982"], # [HIGH VOLTAGE SIGN] U+E487 -> U+E642
+ ["ee91a9", "ee9983"], # [CYCLONE] U+E469 -> U+E643
+ ["ee9698", "ee9984"], # [FOGGY] U+E598 -> U+E644
+ ["eeaba8", "ee9985"], # [CLOSED UMBRELLA] U+EAE8 -> U+E645
+ ["eeabb1", "ee9ab3"], # [NIGHT WITH STARS] U+EAF1 -> U+E6B3
+ ["eeabb4", "ee98be"], # [SUNRISE] U+EAF4 -> U+E63E
+ ["ee979a", :undef], # [CITYSCAPE AT DUSK] U+E5DA -> "[夕焼ã‘]"
+ ["eeabb2", :undef], # [RAINBOW] U+EAF2 -> "[虹]"
+ ["ee928a", :undef], # [SNOWFLAKE] U+E48A -> "[é›ªçµæ™¶]"
+ ["ee928e", "ee98beee98bf"], # [SUN BEHIND CLOUD] U+E48E -> U+E63E U+E63F
+ ["ee92bf", "ee9ab3"], # [BRIDGE AT NIGHT] U+E4BF -> U+E6B3
+ ["eeadbc", "ee9cbf"], # [WATER WAVE] U+EB7C -> U+E73F
+ ["eead93", :undef], # [VOLCANO] U+EB53 -> "[ç«å±±]"
+ ["eead9f", "ee9ab3"], # [MILKY WAY] U+EB5F -> U+E6B3
+ ["ee96b3", :undef], # [EARTH GLOBE ASIA-AUSTRALIA] U+E5B3 -> "[地çƒ]"
+ ["ee96a8", "ee9a9c"], # [NEW MOON SYMBOL] U+E5A8 -> U+E69C
+ ["ee96a9", "ee9a9d"], # [WAXING GIBBOUS MOON SYMBOL] U+E5A9 -> U+E69D
+ ["ee96aa", "ee9a9e"], # [FIRST QUARTER MOON SYMBOL] U+E5AA -> U+E69E
+ ["ee9286", "ee9a9f"], # [CRESCENT MOON] U+E486 -> U+E69F
+ ["ee9289", "ee9a9e"], # [FIRST QUARTER MOON WITH FACE] U+E489 -> U+E69E
+ ["ee91a8", :undef], # [SHOOTING STAR] U+E468 -> "☆彡"
+ ["ee95ba", "ee9c9f"], # [WATCH] U+E57A -> U+E71F
+ ["ee95bb", "ee9c9c"], # [HOURGLASS] U+E57B -> U+E71C
+ ["ee9694", "ee9aba"], # [ALARM CLOCK] U+E594 -> U+E6BA
+ ["ee91bc", "ee9c9c"], # [HOURGLASS WITH FLOWING SAND] U+E47C -> U+E71C
+ ["ee928f", "ee9986"], # [ARIES] U+E48F -> U+E646
+ ["ee9290", "ee9987"], # [TAURUS] U+E490 -> U+E647
+ ["ee9291", "ee9988"], # [GEMINI] U+E491 -> U+E648
+ ["ee9292", "ee9989"], # [CANCER] U+E492 -> U+E649
+ ["ee9293", "ee998a"], # [LEO] U+E493 -> U+E64A
+ ["ee9294", "ee998b"], # [VIRGO] U+E494 -> U+E64B
+ ["ee9295", "ee998c"], # [LIBRA] U+E495 -> U+E64C
+ ["ee9296", "ee998d"], # [SCORPIUS] U+E496 -> U+E64D
+ ["ee9297", "ee998e"], # [SAGITTARIUS] U+E497 -> U+E64E
+ ["ee9298", "ee998f"], # [CAPRICORN] U+E498 -> U+E64F
+ ["ee9299", "ee9990"], # [AQUARIUS] U+E499 -> U+E650
+ ["ee929a", "ee9991"], # [PISCES] U+E49A -> U+E651
+ ["ee929b", :undef], # [OPHIUCHUS] U+E49B -> "[蛇使座]"
+ ["ee9493", "ee9d81"], # [FOUR LEAF CLOVER] U+E513 -> U+E741
+ ["ee93a4", "ee9d83"], # [TULIP] U+E4E4 -> U+E743
+ ["eeadbd", "ee9d86"], # [SEEDLING] U+EB7D -> U+E746
+ ["ee938e", "ee9d87"], # [MAPLE LEAF] U+E4CE -> U+E747
+ ["ee938a", "ee9d88"], # [CHERRY BLOSSOM] U+E4CA -> U+E748
+ ["ee96ba", :undef], # [ROSE] U+E5BA -> "[ãƒãƒ©]"
+ ["ee978d", "ee9d87"], # [FALLEN LEAF] U+E5CD -> U+E747
+ ["eeaa94", :undef], # [HIBISCUS] U+EA94 -> "[ãƒã‚¤ãƒ“スカス]"
+ ["ee93a3", :undef], # [SUNFLOWER] U+E4E3 -> "[ã²ã¾ã‚り]"
+ ["ee93a2", :undef], # [PALM TREE] U+E4E2 -> "[ヤシ]"
+ ["eeaa96", :undef], # [CACTUS] U+EA96 -> "[サボテン]"
+ ["eeacb6", :undef], # [EAR OF MAIZE] U+EB36 -> "[ã¨ã†ã‚‚ã‚ã“ã—]"
+ ["eeacb7", :undef], # [MUSHROOM] U+EB37 -> "[キノコ]"
+ ["eeacb8", :undef], # [CHESTNUT] U+EB38 -> "[æ —]"
+ ["eead89", :undef], # [BLOSSOM] U+EB49 -> "[花]"
+ ["eeae82", "ee9d81"], # [HERB] U+EB82 -> U+E741
+ ["ee9392", "ee9d82"], # [CHERRIES] U+E4D2 -> U+E742
+ ["eeacb5", "ee9d84"], # [BANANA] U+EB35 -> U+E744
+ ["eeaab9", "ee9d85"], # [RED APPLE] U+EAB9 -> U+E745
+ ["eeaaba", :undef], # [TANGERINE] U+EABA -> "[ã¿ã‹ã‚“]"
+ ["ee9394", :undef], # [STRAWBERRY] U+E4D4 -> "[イãƒã‚´]"
+ ["ee938d", :undef], # [WATERMELON] U+E4CD -> "[スイカ]"
+ ["eeaabb", :undef], # [TOMATO] U+EABB -> "[トマト]"
+ ["eeaabc", :undef], # [AUBERGINE] U+EABC -> "[ナス]"
+ ["eeacb2", :undef], # [MELON] U+EB32 -> "[メロン]"
+ ["eeacb3", :undef], # [PINEAPPLE] U+EB33 -> "[パイナップル]"
+ ["eeacb4", :undef], # [GRAPES] U+EB34 -> "[ブドウ]"
+ ["eeacb9", :undef], # [PEACH] U+EB39 -> "[モモ]"
+ ["eead9a", "ee9d85"], # [GREEN APPLE] U+EB5A -> U+E745
+ ["ee96a4", "ee9a91"], # [EYES] U+E5A4 -> U+E691
+ ["ee96a5", "ee9a92"], # [EAR] U+E5A5 -> U+E692
+ ["eeab90", :undef], # [NOSE] U+EAD0 -> "[é¼»]"
+ ["eeab91", "ee9bb9"], # [MOUTH] U+EAD1 -> U+E6F9
+ ["eead87", "ee9ca8"], # [TONGUE] U+EB47 -> U+E728
+ ["ee9489", "ee9c90"], # [LIPSTICK] U+E509 -> U+E710
+ ["eeaaa0", :undef], # [NAIL POLISH] U+EAA0 -> "[マニキュア]"
+ ["ee948b", :undef], # [FACE MASSAGE] U+E50B -> "[エステ]"
+ ["eeaaa1", "ee99b5"], # [HAIRCUT] U+EAA1 -> U+E675
+ ["eeaaa2", :undef], # [BARBER POLE] U+EAA2 -> "[床屋]"
+ ["ee93bc", "ee9bb0"], # [BOY] U+E4FC -> U+E6F0
+ ["ee93ba", "ee9bb0"], # [GIRL] U+E4FA -> U+E6F0
+ ["ee9481", :undef], # [FAMILY] U+E501 -> "[å®¶æ—]"
+ ["ee979d", :undef], # [POLICE OFFICER] U+E5DD -> "[警官]"
+ ["eeab9b", :undef], # [WOMAN WITH BUNNY EARS] U+EADB -> "[ãƒãƒ‹ãƒ¼]"
+ ["eeaba9", :undef], # [BRIDE WITH VEIL] U+EAE9 -> "[花å«]"
+ ["eeac93", :undef], # [WESTERN PERSON] U+EB13 -> "[白人]"
+ ["eeac94", :undef], # [MAN WITH GUA PI MAO] U+EB14 -> "[中国人]"
+ ["eeac95", :undef], # [MAN WITH TURBAN] U+EB15 -> "[インド人]"
+ ["eeac96", :undef], # [OLDER MAN] U+EB16 -> "[ãŠã˜ã„ã•ã‚“]"
+ ["eeac97", :undef], # [OLDER WOMAN] U+EB17 -> "[ãŠã°ã‚ã•ã‚“]"
+ ["eeac98", :undef], # [BABY] U+EB18 -> "[赤ã¡ã‚ƒã‚“]"
+ ["eeac99", :undef], # [CONSTRUCTION WORKER] U+EB19 -> "[工事ç¾å ´ã®äºº]"
+ ["eeac9a", :undef], # [PRINCESS] U+EB1A -> "[ãŠå§«æ§˜]"
+ ["eead84", :undef], # [JAPANESE OGRE] U+EB44 -> "[ãªã¾ã¯ã’]"
+ ["eead85", :undef], # [JAPANESE GOBLIN] U+EB45 -> "[天狗]"
+ ["ee938b", :undef], # [GHOST] U+E4CB -> "[ãŠåŒ–ã‘]"
+ ["ee96bf", :undef], # [BABY ANGEL] U+E5BF -> "[天使]"
+ ["ee948e", :undef], # [EXTRATERRESTRIAL ALIEN] U+E50E -> "[UFO]"
+ ["ee93ac", :undef], # [ALIEN MONSTER] U+E4EC -> "[宇宙人]"
+ ["ee93af", :undef], # [IMP] U+E4EF -> "[アクマ]"
+ ["ee93b8", :undef], # [SKULL] U+E4F8 -> "[ドクロ]"
+ ["eeac9c", :undef], # [DANCER] U+EB1C -> "[ダンス]"
+ ["eeadbe", "ee9d8e"], # [SNAIL] U+EB7E -> U+E74E
+ ["eeaca2", :undef], # [SNAKE] U+EB22 -> "[ヘビ]"
+ ["eeaca3", :undef], # [CHICKEN] U+EB23 -> "[ニワトリ]"
+ ["eeaca4", :undef], # [BOAR] U+EB24 -> "[イノシシ]"
+ ["eeaca5", :undef], # [BACTRIAN CAMEL] U+EB25 -> "[ラクダ]"
+ ["eeac9f", :undef], # [ELEPHANT] U+EB1F -> "[ゾウ]"
+ ["eeaca0", :undef], # [KOALA] U+EB20 -> "[コアラ]"
+ ["ee9787", :undef], # [OCTOPUS] U+E5C7 -> "[タコ]"
+ ["eeabac", :undef], # [SPIRAL SHELL] U+EAEC -> "[å·»è²]"
+ ["eeac9e", :undef], # [BUG] U+EB1E -> "[ゲジゲジ]"
+ ["ee939d", :undef], # [ANT] U+E4DD -> "[アリ]"
+ ["eead97", :undef], # [HONEYBEE] U+EB57 -> "[ミツãƒãƒ]"
+ ["eead98", :undef], # [LADY BEETLE] U+EB58 -> "[ã¦ã‚“ã¨ã†è™«]"
+ ["eeac9d", "ee9d91"], # [TROPICAL FISH] U+EB1D -> U+E751
+ ["ee9393", "ee9d91"], # [BLOWFISH] U+E4D3 -> U+E751
+ ["ee9794", :undef], # [TURTLE] U+E5D4 -> "[カメ]"
+ ["ee93a0", "ee9d8f"], # [BABY CHICK] U+E4E0 -> U+E74F
+ ["eeadb6", "ee9d8f"], # [FRONT-FACING BABY CHICK] U+EB76 -> U+E74F
+ ["ee979b", "ee9d8f"], # [HATCHING CHICK] U+E5DB -> U+E74F
+ ["ee939c", "ee9d90"], # [PENGUIN] U+E4DC -> U+E750
+ ["ee939f", "ee9aa1"], # [POODLE] U+E4DF -> U+E6A1
+ ["eeac9b", :undef], # [DOLPHIN] U+EB1B -> "[イルカ]"
+ ["ee9782", :undef], # [MOUSE FACE] U+E5C2 -> "[ãƒã‚ºãƒŸ]"
+ ["ee9780", :undef], # [TIGER FACE] U+E5C0 -> "[トラ]"
+ ["ee939b", "ee9aa2"], # [CAT FACE] U+E4DB -> U+E6A2
+ ["ee91b0", :undef], # [SPOUTING WHALE] U+E470 -> "[クジラ]"
+ ["ee9398", "ee9d94"], # [HORSE FACE] U+E4D8 -> U+E754
+ ["ee9399", :undef], # [MONKEY FACE] U+E4D9 -> "[サル]"
+ ["ee93a1", "ee9aa1"], # [DOG FACE] U+E4E1 -> U+E6A1
+ ["ee939e", "ee9d95"], # [PIG FACE] U+E4DE -> U+E755
+ ["ee9781", :undef], # [BEAR FACE] U+E5C1 -> "[クマ]"
+ ["eeaca1", :undef], # [COW FACE] U+EB21 -> "[牛]"
+ ["ee9397", :undef], # [RABBIT FACE] U+E4D7 -> "[ウサギ]"
+ ["ee939a", :undef], # [FROG FACE] U+E4DA -> "[カエル]"
+ ["ee93ae", "ee9a98"], # [PAW PRINTS] U+E4EE -> U+E698
+ ["eeacbf", :undef], # [DRAGON FACE] U+EB3F -> "[è¾°]"
+ ["eead86", :undef], # [PANDA FACE] U+EB46 -> "[パンダ]"
+ ["eead88", "ee9d95"], # [PIG NOSE] U+EB48 -> U+E755
+ ["ee91b2", "ee9bb1"], # [ANGRY FACE] U+E472 -> U+E6F1
+ ["eeada7", "ee9bb3"], # [ANGUISHED FACE] U+EB67 -> U+E6F3
+ ["eeab8a", "ee9bb4"], # [ASTONISHED FACE] U+EACA -> U+E6F4
+ ["ee96ae", "ee9bb4"], # [DIZZY FACE] U+E5AE -> U+E6F4
+ ["eeab8b", "ee9ca3"], # [EXASPERATED FACE] U+EACB -> U+E723
+ ["eeab89", "ee9ca5"], # [EXPRESSIONLESS FACE] U+EAC9 -> U+E725
+ ["ee9784", "ee9ca6"], # [FACE WITH HEART-SHAPED EYES] U+E5C4 -> U+E726
+ ["eeab81", "ee9d93"], # [FACE WITH LOOK OF TRIUMPH] U+EAC1 -> U+E753
+ ["ee93a7", "ee9ca8"], # [WINKING FACE WITH STUCK-OUT TONGUE] U+E4E7 -> U+E728
+ ["eeab8f", "ee9ca6"], # [FACE THROWING A KISS] U+EACF -> U+E726
+ ["eeab8e", "ee9ca6"], # [FACE KISSING] U+EACE -> U+E726
+ ["eeab87", :undef], # [FACE WITH MASK] U+EAC7 -> "[風邪ã²ã]"
+ ["eeab88", "ee9caa"], # [FLUSHED FACE] U+EAC8 -> U+E72A
+ ["ee91b1", "ee9bb0"], # [HAPPY FACE WITH OPEN MOUTH] U+E471 -> U+E6F0
+ ["eeae80", "ee9d93"], # [HAPPY FACE WITH GRIN] U+EB80 -> U+E753
+ ["eeada4", "ee9caa"], # [HAPPY AND CRYING FACE] U+EB64 -> U+E72A
+ ["eeab8d", "ee9bb0"], # [HAPPY FACE WITH WIDE MOUTH AND RAISED EYEBROWS] U+EACD -> U+E6F0
+ ["ee93bb", "ee9bb0"], # [WHITE SMILING FACE] U+E4FB -> U+E6F0
+ ["eeada9", "ee9cae"], # [CRYING FACE] U+EB69 -> U+E72E
+ ["ee91b3", "ee9cad"], # [LOUDLY CRYING FACE] U+E473 -> U+E72D
+ ["eeab86", "ee9d97"], # [FEARFUL FACE] U+EAC6 -> U+E757
+ ["eeab82", "ee9cab"], # [PERSEVERING FACE] U+EAC2 -> U+E72B
+ ["eead9d", "ee9ca4"], # [POUTING FACE] U+EB5D -> U+E724
+ ["eeab85", "ee9ca1"], # [RELIEVED FACE] U+EAC5 -> U+E721
+ ["eeab83", "ee9bb3"], # [CONFOUNDED FACE] U+EAC3 -> U+E6F3
+ ["eeab80", "ee9ca0"], # [PENSIVE FACE] U+EAC0 -> U+E720
+ ["ee9785", "ee9d97"], # [FACE SCREAMING IN FEAR] U+E5C5 -> U+E757
+ ["eeab84", "ee9c81"], # [SLEEPY FACE] U+EAC4 -> U+E701
+ ["eeaabf", "ee9cac"], # [SMIRKING FACE] U+EABF -> U+E72C
+ ["ee9786", "ee9ca3"], # [FACE WITH COLD SWEAT] U+E5C6 -> U+E723
+ ["ee91b4", "ee9cab"], # [TIRED FACE] U+E474 -> U+E72B
+ ["ee9783", "ee9ca9"], # [WINKING FACE] U+E5C3 -> U+E729
+ ["eeada1", "ee9bb0"], # [CAT FACE WITH OPEN MOUTH] U+EB61 -> U+E6F0
+ ["eeadbf", "ee9d93"], # [HAPPY CAT FACE WITH GRIN] U+EB7F -> U+E753
+ ["eeada3", "ee9caa"], # [HAPPY AND CRYING CAT FACE] U+EB63 -> U+E72A
+ ["eeada0", "ee9ca6"], # [CAT FACE KISSING] U+EB60 -> U+E726
+ ["eeada5", "ee9ca6"], # [CAT FACE WITH HEART-SHAPED EYES] U+EB65 -> U+E726
+ ["eeada8", "ee9cae"], # [CRYING CAT FACE] U+EB68 -> U+E72E
+ ["eead9e", "ee9ca4"], # [POUTING CAT FACE] U+EB5E -> U+E724
+ ["eeadaa", "ee9d93"], # [CAT FACE WITH TIGHTLY-CLOSED LIPS] U+EB6A -> U+E753
+ ["eeada6", "ee9bb3"], # [ANGUISHED CAT FACE] U+EB66 -> U+E6F3
+ ["eeab97", "ee9caf"], # [FACE WITH NO GOOD GESTURE] U+EAD7 -> U+E72F
+ ["eeab98", "ee9c8b"], # [FACE WITH OK GESTURE] U+EAD8 -> U+E70B
+ ["eeab99", :undef], # [PERSON BOWING DEEPLY] U+EAD9 -> "m(_ _)m"
+ ["eead90", :undef], # [SEE-NO-EVIL MONKEY] U+EB50 -> "(/_ï¼¼)"
+ ["eead91", :undef], # [SPEAK-NO-EVIL MONKEY] U+EB51 -> "(・×・)"
+ ["eead92", :undef], # [HEAR-NO-EVIL MONKEY] U+EB52 -> "|(・×・)|"
+ ["eeae85", :undef], # [PERSON RAISING ONE HAND] U+EB85 -> "(^-^)/"
+ ["eeae86", :undef], # [PERSON RAISING BOTH HANDS IN CELEBRATION] U+EB86 -> "ï¼¼(^o^)ï¼"
+ ["eeae87", "ee9bb3"], # [PERSON FROWNING] U+EB87 -> U+E6F3
+ ["eeae88", "ee9bb1"], # [PERSON WITH POUTING FACE] U+EB88 -> U+E6F1
+ ["eeab92", :undef], # [PERSON WITH FOLDED HANDS] U+EAD2 -> "(&gt;人&lt;)"
+ ["ee92ab", "ee99a3"], # [HOUSE BUILDING] U+E4AB -> U+E663
+ ["eeac89", "ee99a3"], # [HOUSE WITH GARDEN] U+EB09 -> U+E663
+ ["ee92ad", "ee99a4"], # [OFFICE BUILDING] U+E4AD -> U+E664
+ ["ee979e", "ee99a5"], # [JAPANESE POST OFFICE] U+E5DE -> U+E665
+ ["ee979f", "ee99a6"], # [HOSPITAL] U+E5DF -> U+E666
+ ["ee92aa", "ee99a7"], # [BANK] U+E4AA -> U+E667
+ ["ee92a3", "ee99a8"], # [AUTOMATED TELLER MACHINE] U+E4A3 -> U+E668
+ ["eeaa81", "ee99a9"], # [HOTEL] U+EA81 -> U+E669
+ ["eeabb3", "ee99a9ee9baf"], # [LOVE HOTEL] U+EAF3 -> U+E669 U+E6EF
+ ["ee92a4", "ee99aa"], # [CONVENIENCE STORE] U+E4A4 -> U+E66A
+ ["eeaa80", "ee9cbe"], # [SCHOOL] U+EA80 -> U+E73E
+ ["ee96bb", :undef], # [CHURCH] U+E5BB -> "[教会]"
+ ["ee978f", :undef], # [FOUNTAIN] U+E5CF -> "[å™´æ°´]"
+ ["eeabb6", :undef], # [DEPARTMENT STORE] U+EAF6 -> "[デパート]"
+ ["eeabb7", :undef], # [JAPANESE CASTLE] U+EAF7 -> "[城]"
+ ["eeabb8", :undef], # [EUROPEAN CASTLE] U+EAF8 -> "[城]"
+ ["eeabb9", :undef], # [FACTORY] U+EAF9 -> "[工場]"
+ ["ee92a9", "ee99a1"], # [ANCHOR] U+E4A9 -> U+E661
+ ["ee92bd", "ee9d8b"], # [IZAKAYA LANTERN] U+E4BD -> U+E74B
+ ["ee96bd", "ee9d80"], # [MOUNT FUJI] U+E5BD -> U+E740
+ ["ee9380", :undef], # [TOKYO TOWER] U+E4C0 -> "[æ±äº¬ã‚¿ãƒ¯ãƒ¼]"
+ ["ee95b2", :undef], # [SILHOUETTE OF JAPAN] U+E572 -> "[日本地図]"
+ ["eeadac", :undef], # [MOYAI] U+EB6C -> "[モアイ]"
+ ["ee96b7", "ee9a99"], # [MANS SHOE] U+E5B7 -> U+E699
+ ["eeacab", "ee9a99"], # [ATHLETIC SHOE] U+EB2B -> U+E699
+ ["ee949a", "ee99b4"], # [HIGH-HEELED SHOE] U+E51A -> U+E674
+ ["eeaa9f", :undef], # [WOMANS BOOTS] U+EA9F -> "[ブーツ]"
+ ["eeacaa", "ee9a98"], # [FOOTPRINTS] U+EB2A -> U+E698
+ ["ee93be", "ee9a9a"], # [EYEGLASSES] U+E4FE -> U+E69A
+ ["ee96b6", "ee9c8e"], # [T-SHIRT] U+E5B6 -> U+E70E
+ ["eeadb7", "ee9c91"], # [JEANS] U+EB77 -> U+E711
+ ["ee9789", "ee9c9a"], # [CROWN] U+E5C9 -> U+E71A
+ ["eeaa93", :undef], # [NECKTIE] U+EA93 -> "[ãƒã‚¯ã‚¿ã‚¤]"
+ ["eeaa9e", :undef], # [WOMANS HAT] U+EA9E -> "[帽å­]"
+ ["eeadab", :undef], # [DRESS] U+EB6B -> "[ドレス]"
+ ["eeaaa3", :undef], # [KIMONO] U+EAA3 -> "[ç€ç‰©]"
+ ["eeaaa4", :undef], # [BIKINI] U+EAA4 -> "[ビキニ]"
+ ["ee948d", "ee9c8e"], # [WOMANS CLOTHES] U+E50D -> U+E70E
+ ["ee9484", "ee9c8f"], # [PURSE] U+E504 -> U+E70F
+ ["ee929c", "ee9a82"], # [HANDBAG] U+E49C -> U+E682
+ ["ee9387", "ee9c95"], # [MONEY BAG] U+E4C7 -> U+E715
+ ["ee979c", :undef], # [CHART WITH UPWARDS TREND AND YEN SIGN] U+E5DC -> "[株価]"
+ ["ee95b9", "ee9c95"], # [HEAVY DOLLAR SIGN] U+E579 -> U+E715
+ ["ee95bc", :undef], # [CREDIT CARD] U+E57C -> "[カード]"
+ ["ee95bd", "ee9b96"], # [BANKNOTE WITH YEN SIGN] U+E57D -> U+E6D6
+ ["ee9685", "ee9c95"], # [BANKNOTE WITH DOLLAR SIGN] U+E585 -> U+E715
+ ["eead9b", :undef], # [MONEY WITH WINGS] U+EB5B -> "[飛んã§ã„ããŠé‡‘]"
+ ["eeac91", :undef], # [REGIONAL INDICATOR SYMBOL LETTERS CN] U+EB11 -> "[中国]"
+ ["eeac8e", :undef], # [REGIONAL INDICATOR SYMBOL LETTERS DE] U+EB0E -> "[ドイツ]"
+ ["ee9795", :undef], # [REGIONAL INDICATOR SYMBOL LETTERS ES] U+E5D5 -> "[スペイン]"
+ ["eeabba", :undef], # [REGIONAL INDICATOR SYMBOL LETTERS FR] U+EAFA -> "[フランス]"
+ ["eeac90", :undef], # [REGIONAL INDICATOR SYMBOL LETTERS GB] U+EB10 -> "[イギリス]"
+ ["eeac8f", :undef], # [REGIONAL INDICATOR SYMBOL LETTERS IT] U+EB0F -> "[イタリア]"
+ ["ee938c", :undef], # [REGIONAL INDICATOR SYMBOL LETTERS JP] U+E4CC -> "[æ—¥ã®ä¸¸]"
+ ["eeac92", :undef], # [REGIONAL INDICATOR SYMBOL LETTERS KR] U+EB12 -> "[韓国]"
+ ["ee9796", :undef], # [REGIONAL INDICATOR SYMBOL LETTERS RU] U+E5D6 -> "[ロシア]"
+ ["ee95b3", :undef], # [REGIONAL INDICATOR SYMBOL LETTERS US] U+E573 -> "[USA]"
+ ["ee91bb", :undef], # [FIRE] U+E47B -> "[炎]"
+ ["ee9683", "ee9bbb"], # [ELECTRIC TORCH] U+E583 -> U+E6FB
+ ["ee9687", "ee9c98"], # [WRENCH] U+E587 -> U+E718
+ ["ee978b", :undef], # [HAMMER] U+E5CB -> "[ãƒãƒ³ãƒžãƒ¼]"
+ ["ee9681", :undef], # [NUT AND BOLT] U+E581 -> "[ãƒã‚¸]"
+ ["ee95bf", :undef], # [HOCHO] U+E57F -> "[包ä¸]"
+ ["ee948a", :undef], # [PISTOL] U+E50A -> "[ピストル]"
+ ["eeaa8f", :undef], # [CRYSTAL BALL] U+EA8F -> "[å ã„]"
+ ["ee9280", :undef], # [JAPANESE SYMBOL FOR BEGINNER] U+E480 -> "[若葉マーク]"
+ ["ee9490", :undef], # [SYRINGE] U+E510 -> "[注射]"
+ ["eeaa9a", :undef], # [PILL] U+EA9A -> "[è–¬]"
+ ["eeaca6", :undef], # [NEGATIVE SQUARED LATIN CAPITAL LETTER A] U+EB26 -> "[A]"
+ ["eeaca7", :undef], # [NEGATIVE SQUARED LATIN CAPITAL LETTER B] U+EB27 -> "[B]"
+ ["eeaca9", :undef], # [NEGATIVE SQUARED AB] U+EB29 -> "[AB]"
+ ["eeaca8", :undef], # [NEGATIVE SQUARED LATIN CAPITAL LETTER O] U+EB28 -> "[O]"
+ ["ee969f", "ee9a84"], # [RIBBON] U+E59F -> U+E684
+ ["ee938f", "ee9a85"], # [WRAPPED PRESENT] U+E4CF -> U+E685
+ ["ee96a0", "ee9a86"], # [BIRTHDAY CAKE] U+E5A0 -> U+E686
+ ["ee9389", "ee9aa4"], # [CHRISTMAS TREE] U+E4C9 -> U+E6A4
+ ["eeabb0", :undef], # [FATHER CHRISTMAS] U+EAF0 -> "[サンタ]"
+ ["ee9799", :undef], # [CROSSED FLAGS] U+E5D9 -> "[ç¥æ—¥]"
+ ["ee978c", :undef], # [FIREWORKS] U+E5CC -> "[花ç«]"
+ ["eeaa9b", :undef], # [BALLOON] U+EA9B -> "[風船]"
+ ["eeaa9c", :undef], # [PARTY POPPER] U+EA9C -> "[クラッカー]"
+ ["eeaba3", :undef], # [PINE DECORATION] U+EAE3 -> "[é–€æ¾]"
+ ["eeaba4", :undef], # [JAPANESE DOLLS] U+EAE4 -> "[ã²ãªç¥­ã‚Š]"
+ ["eeaba5", :undef], # [GRADUATION CAP] U+EAE5 -> "[å’æ¥­å¼]"
+ ["eeaba6", :undef], # [SCHOOL SATCHEL] U+EAE6 -> "[ランドセル]"
+ ["eeaba7", :undef], # [CARP STREAMER] U+EAE7 -> "[ã“ã„ã®ã¼ã‚Š]"
+ ["eeabab", :undef], # [FIREWORK SPARKLER] U+EAEB -> "[線香花ç«]"
+ ["eeabad", :undef], # [WIND CHIME] U+EAED -> "[風鈴]"
+ ["eeabae", :undef], # [JACK-O-LANTERN] U+EAEE -> "[ãƒãƒ­ã‚¦ã‚£ãƒ³]"
+ ["ee91af", :undef], # [CONFETTI BALL] U+E46F -> "[オメデトウ]"
+ ["eeacbd", :undef], # [TANABATA TREE] U+EB3D -> "[七夕]"
+ ["eeabaf", :undef], # [MOON VIEWING CEREMONY] U+EAEF -> "[ãŠæœˆè¦‹]"
+ ["ee969b", "ee999a"], # [PAGER] U+E59B -> U+E65A
+ ["ee9696", "ee9a87"], # [BLACK TELEPHONE] U+E596 -> U+E687
+ ["ee949e", "ee9a87"], # [TELEPHONE RECEIVER] U+E51E -> U+E687
+ ["ee9688", "ee9a88"], # [MOBILE PHONE] U+E588 -> U+E688
+ ["eeac88", "ee9b8e"], # [MOBILE PHONE WITH RIGHTWARDS ARROW AT LEFT] U+EB08 -> U+E6CE
+ ["eeaa92", "ee9a89"], # [MEMO] U+EA92 -> U+E689
+ ["ee94a0", "ee9b90"], # [FAX MACHINE] U+E520 -> U+E6D0
+ ["ee94a1", "ee9b93"], # [ENVELOPE] U+E521 -> U+E6D3
+ ["ee9691", "ee9b8f"], # [INCOMING ENVELOPE] U+E591 -> U+E6CF
+ ["eeada2", "ee9b8f"], # [ENVELOPE WITH DOWNWARDS ARROW ABOVE] U+EB62 -> U+E6CF
+ ["ee949b", "ee99a5"], # [CLOSED MAILBOX WITH LOWERED FLAG] U+E51B -> U+E665
+ ["eeac8a", "ee99a5"], # [CLOSED MAILBOX WITH RAISED FLAG] U+EB0A -> U+E665
+ ["ee968b", :undef], # [NEWSPAPER] U+E58B -> "[æ–°èž]"
+ ["ee92a8", :undef], # [SATELLITE ANTENNA] U+E4A8 -> "[アンテナ]"
+ ["ee9692", :undef], # [OUTBOX TRAY] U+E592 -> "[é€ä¿¡BOX]"
+ ["ee9693", :undef], # [INBOX TRAY] U+E593 -> "[å—ä¿¡BOX]"
+ ["ee949f", "ee9a85"], # [PACKAGE] U+E51F -> U+E685
+ ["eeadb1", "ee9b93"], # [E-MAIL SYMBOL] U+EB71 -> U+E6D3
+ ["eeabbd", :undef], # [INPUT SYMBOL FOR LATIN CAPITAL LETTERS] U+EAFD -> "[ABCD]"
+ ["eeabbe", :undef], # [INPUT SYMBOL FOR LATIN SMALL LETTERS] U+EAFE -> "[abcd]"
+ ["eeabbf", :undef], # [INPUT SYMBOL FOR NUMBERS] U+EAFF -> "[1234]"
+ ["eeac80", :undef], # [INPUT SYMBOL FOR SYMBOLS] U+EB00 -> "[記å·]"
+ ["eead95", :undef], # [INPUT SYMBOL FOR LATIN LETTERS] U+EB55 -> "[ABC]"
+ ["eeac83", "ee9aae"], # [BLACK NIB] U+EB03 -> U+E6AE
+ ["ee96b8", "ee9c96"], # [PERSONAL COMPUTER] U+E5B8 -> U+E716
+ ["ee92a1", "ee9c99"], # [PENCIL] U+E4A1 -> U+E719
+ ["ee92a0", "ee9cb0"], # [PAPERCLIP] U+E4A0 -> U+E730
+ ["ee978e", "ee9a82"], # [BRIEFCASE] U+E5CE -> U+E682
+ ["ee9682", :undef], # [MINIDISC] U+E582 -> "[MD]"
+ ["ee95a2", :undef], # [FLOPPY DISK] U+E562 -> "[フロッピー]"
+ ["ee948c", "ee9a8c"], # [OPTICAL DISC] U+E50C -> U+E68C
+ ["ee9496", "ee99b5"], # [BLACK SCISSORS] U+E516 -> U+E675
+ ["ee95a0", :undef], # [ROUND PUSHPIN] U+E560 -> "[ç”»ã³ã‚‡ã†]"
+ ["ee95a1", "ee9a89"], # [PAGE WITH CURL] U+E561 -> U+E689
+ ["ee95a9", "ee9a89"], # [PAGE FACING UP] U+E569 -> U+E689
+ ["ee95a3", :undef], # [CALENDAR] U+E563 -> "[カレンダー]"
+ ["ee968f", :undef], # [FILE FOLDER] U+E58F -> "[フォルダ]"
+ ["ee9690", :undef], # [OPEN FILE FOLDER] U+E590 -> "[フォルダ]"
+ ["ee95ab", "ee9a83"], # [NOTEBOOK] U+E56B -> U+E683
+ ["ee929f", "ee9a83"], # [OPEN BOOK] U+E49F -> U+E683
+ ["ee929d", "ee9a83"], # [NOTEBOOK WITH DECORATIVE COVER] U+E49D -> U+E683
+ ["ee95a8", "ee9a83"], # [CLOSED BOOK] U+E568 -> U+E683
+ ["ee95a5", "ee9a83"], # [GREEN BOOK] U+E565 -> U+E683
+ ["ee95a6", "ee9a83"], # [BLUE BOOK] U+E566 -> U+E683
+ ["ee95a7", "ee9a83"], # [ORANGE BOOK] U+E567 -> U+E683
+ ["ee95af", "ee9a83"], # [BOOKS] U+E56F -> U+E683
+ ["ee949d", :undef], # [NAME BADGE] U+E51D -> "[åæœ­]"
+ ["ee959f", "ee9c8a"], # [SCROLL] U+E55F -> U+E70A
+ ["ee95a4", "ee9a89"], # [CLIPBOARD] U+E564 -> U+E689
+ ["ee95aa", :undef], # [TEAR-OFF CALENDAR] U+E56A -> "[カレンダー]"
+ ["ee95b4", :undef], # [BAR CHART] U+E574 -> "[グラフ]"
+ ["ee95b5", :undef], # [CHART WITH UPWARDS TREND] U+E575 -> "[グラフ]"
+ ["ee95b6", :undef], # [CHART WITH DOWNWARDS TREND] U+E576 -> "[グラフ]"
+ ["ee95ac", "ee9a83"], # [CARD INDEX] U+E56C -> U+E683
+ ["ee95ad", :undef], # [PUSHPIN] U+E56D -> "[ç”»ã³ã‚‡ã†]"
+ ["ee95ae", "ee9a83"], # [LEDGER] U+E56E -> U+E683
+ ["ee95b0", :undef], # [STRAIGHT RULER] U+E570 -> "[定è¦]"
+ ["ee92a2", :undef], # [TRIANGULAR RULER] U+E4A2 -> "[三角定è¦]"
+ ["eeac8b", "ee9a89"], # [BOOKMARK TABS] U+EB0B -> U+E689
+ ["ee92ba", "ee9993"], # [BASEBALL] U+E4BA -> U+E653
+ ["ee9699", "ee9994"], # [FLAG IN HOLE] U+E599 -> U+E654
+ ["ee92b7", "ee9995"], # [TENNIS RACQUET AND BALL] U+E4B7 -> U+E655
+ ["ee92b6", "ee9996"], # [SOCCER BALL] U+E4B6 -> U+E656
+ ["eeaaac", "ee9997"], # [SKI AND SKI BOOT] U+EAAC -> U+E657
+ ["ee969a", "ee9998"], # [BASKETBALL AND HOOP] U+E59A -> U+E658
+ ["ee92b9", "ee9999"], # [CHEQUERED FLAG] U+E4B9 -> U+E659
+ ["ee92b8", "ee9c92"], # [SNOWBOARDER] U+E4B8 -> U+E712
+ ["ee91ab", "ee9cb3"], # [RUNNER] U+E46B -> U+E733
+ ["eead81", "ee9c92"], # [SURFER] U+EB41 -> U+E712
+ ["ee9793", :undef], # [TROPHY] U+E5D3 -> "[トロフィー]"
+ ["ee92bb", :undef], # [AMERICAN FOOTBALL] U+E4BB -> "[フットボール]"
+ ["eeab9e", :undef], # [SWIMMER] U+EADE -> "[æ°´æ³³]"
+ ["ee92b5", "ee999b"], # [TRAIN] U+E4B5 -> U+E65B
+ ["ee96bc", "ee999c"], # [METRO] U+E5BC -> U+E65C
+ ["ee92b0", "ee999d"], # [HIGH-SPEED TRAIN WITH BULLET NOSE] U+E4B0 -> U+E65D
+ ["ee92b1", "ee999e"], # [AUTOMOBILE] U+E4B1 -> U+E65E
+ ["ee92af", "ee99a0"], # [ONCOMING BUS] U+E4AF -> U+E660
+ ["ee92a7", :undef], # [BUS STOP] U+E4A7 -> "[ãƒã‚¹åœ]"
+ ["eeaa82", "ee99a1"], # [SHIP] U+EA82 -> U+E661
+ ["ee92b3", "ee99a2"], # [AIRPLANE] U+E4B3 -> U+E662
+ ["ee92b4", "ee9aa3"], # [SAILBOAT] U+E4B4 -> U+E6A3
+ ["eeadad", :undef], # [STATION] U+EB6D -> "[é§…]"
+ ["ee9788", :undef], # [ROCKET] U+E5C8 -> "[ロケット]"
+ ["ee92b2", :undef], # [DELIVERY TRUCK] U+E4B2 -> "[トラック]"
+ ["eeab9f", :undef], # [FIRE ENGINE] U+EADF -> "[消防車]"
+ ["eeaba0", :undef], # [AMBULANCE] U+EAE0 -> "[救急車]"
+ ["eeaba1", :undef], # [POLICE CAR] U+EAE1 -> "[パトカー]"
+ ["ee95b1", "ee99ab"], # [FUEL PUMP] U+E571 -> U+E66B
+ ["ee92a6", "ee99ac"], # [NEGATIVE SQUARED LATIN CAPITAL LETTER P] U+E4A6 -> U+E66C
+ ["ee91aa", "ee99ad"], # [HORIZONTAL TRAFFIC LIGHT] U+E46A -> U+E66D
+ ["ee9797", :undef], # [CONSTRUCTION SIGN] U+E5D7 -> "[工事中]"
+ ["eeadb3", :undef], # [POLICE CARS REVOLVING LIGHT] U+EB73 -> "[パトカー]"
+ ["ee92bc", "ee9bb7"], # [HOT SPRINGS] U+E4BC -> U+E6F7
+ ["ee9790", :undef], # [TENT] U+E5D0 -> "[キャンプ]"
+ ["ee91ad", :undef], # [FERRIS WHEEL] U+E46D -> "[観覧車]"
+ ["eeaba2", :undef], # [ROLLER COASTER] U+EAE2 -> "[ジェットコースター]"
+ ["eead82", "ee9d91"], # [FISHING POLE AND FISH] U+EB42 -> U+E751
+ ["ee9483", "ee99b6"], # [MICROPHONE] U+E503 -> U+E676
+ ["ee9497", "ee99b7"], # [MOVIE CAMERA] U+E517 -> U+E677
+ ["ee9488", "ee99ba"], # [HEADPHONE] U+E508 -> U+E67A
+ ["ee969c", "ee99bb"], # [ARTIST PALETTE] U+E59C -> U+E67B
+ ["eeabb5", "ee99bc"], # [TOP HAT] U+EAF5 -> U+E67C
+ ["ee969e", "ee99bd"], # [CIRCUS TENT] U+E59E -> U+E67D
+ ["ee929e", "ee99be"], # [TICKET] U+E49E -> U+E67E
+ ["ee92be", "ee9aac"], # [CLAPPER BOARD] U+E4BE -> U+E6AC
+ ["ee969d", :undef], # [PERFORMING ARTS] U+E59D -> "[演劇]"
+ ["ee9386", "ee9a8b"], # [VIDEO GAME] U+E4C6 -> U+E68B
+ ["ee9791", :undef], # [MAHJONG TILE RED DRAGON] U+E5D1 -> "[麻雀]"
+ ["ee9385", :undef], # [DIRECT HIT] U+E4C5 -> "[的中]"
+ ["ee91ae", :undef], # [SLOT MACHINE] U+E46E -> "[777]"
+ ["eeab9d", :undef], # [BILLIARDS] U+EADD -> "[ビリヤード]"
+ ["ee9388", :undef], # [GAME DIE] U+E4C8 -> "[サイコロ]"
+ ["eead83", :undef], # [BOWLING] U+EB43 -> "[ボーリング]"
+ ["eeadae", :undef], # [FLOWER PLAYING CARDS] U+EB6E -> "[花札]"
+ ["eeadaf", :undef], # [PLAYING CARD BLACK JOKER] U+EB6F -> "[ジョーカー]"
+ ["ee96be", "ee9bb6"], # [MUSICAL NOTE] U+E5BE -> U+E6F6
+ ["ee9485", "ee9bbf"], # [MULTIPLE MUSICAL NOTES] U+E505 -> U+E6FF
+ ["ee9486", :undef], # [GUITAR] U+E506 -> "[ギター]"
+ ["eead80", :undef], # [MUSICAL KEYBOARD] U+EB40 -> "[ピアノ]"
+ ["eeab9c", :undef], # [TRUMPET] U+EADC -> "[トランペット]"
+ ["ee9487", :undef], # [VIOLIN] U+E507 -> "[ãƒã‚¤ã‚ªãƒªãƒ³]"
+ ["eeab8c", "ee9bbf"], # [MUSICAL SCORE] U+EACC -> U+E6FF
+ ["ee9495", "ee9a81"], # [CAMERA] U+E515 -> U+E681
+ ["ee95be", "ee99b7"], # [VIDEO CAMERA] U+E57E -> U+E677
+ ["ee9482", "ee9a8a"], # [TELEVISION] U+E502 -> U+E68A
+ ["ee96b9", :undef], # [RADIO] U+E5B9 -> "[ラジオ]"
+ ["ee9680", :undef], # [VIDEOCASSETTE] U+E580 -> "[ビデオ]"
+ ["ee93ab", "ee9bb9"], # [KISS MARK] U+E4EB -> U+E6F9
+ ["eeadb8", "ee9c97"], # [LOVE LETTER] U+EB78 -> U+E717
+ ["ee9494", "ee9c9b"], # [RING] U+E514 -> U+E71B
+ ["ee978a", "ee9bb9"], # [KISS] U+E5CA -> U+E6F9
+ ["eeaa95", :undef], # [BOUQUET] U+EA95 -> "[花æŸ]"
+ ["eeab9a", "ee9bad"], # [COUPLE WITH HEART] U+EADA -> U+E6ED
+ ["eeaa83", :undef], # [NO ONE UNDER EIGHTEEN SYMBOL] U+EA83 -> "[18ç¦]"
+ ["ee9598", "ee9cb1"], # [COPYRIGHT SIGN] U+E558 -> U+E731
+ ["ee9599", "ee9cb6"], # [REGISTERED SIGN] U+E559 -> U+E736
+ ["ee958e", "ee9cb2"], # [TRADE MARK SIGN] U+E54E -> U+E732
+ ["ee94b3", :undef], # [INFORMATION SOURCE] U+E533 -> "[i]"
+ ["eeae84", "ee9ba0"], # [HASH KEY] U+EB84 -> U+E6E0
+ ["ee94a2", "ee9ba2"], # [KEYCAP 1] U+E522 -> U+E6E2
+ ["ee94a3", "ee9ba3"], # [KEYCAP 2] U+E523 -> U+E6E3
+ ["ee94a4", "ee9ba4"], # [KEYCAP 3] U+E524 -> U+E6E4
+ ["ee94a5", "ee9ba5"], # [KEYCAP 4] U+E525 -> U+E6E5
+ ["ee94a6", "ee9ba6"], # [KEYCAP 5] U+E526 -> U+E6E6
+ ["ee94a7", "ee9ba7"], # [KEYCAP 6] U+E527 -> U+E6E7
+ ["ee94a8", "ee9ba8"], # [KEYCAP 7] U+E528 -> U+E6E8
+ ["ee94a9", "ee9ba9"], # [KEYCAP 8] U+E529 -> U+E6E9
+ ["ee94aa", "ee9baa"], # [KEYCAP 9] U+E52A -> U+E6EA
+ ["ee96ac", "ee9bab"], # [KEYCAP 0] U+E5AC -> U+E6EB
+ ["ee94ab", :undef], # [KEYCAP TEN] U+E52B -> "[10]"
+ ["eeaa84", :undef], # [ANTENNA WITH BARS] U+EA84 -> "[ãƒãƒª3]"
+ ["eeaa90", :undef], # [VIBRATION MODE] U+EA90 -> "[マナーモード]"
+ ["eeaa91", :undef], # [MOBILE PHONE OFF] U+EA91 -> "[ケータイOFF]"
+ ["ee9396", "ee99b3"], # [HAMBURGER] U+E4D6 -> U+E673
+ ["ee9395", "ee9d89"], # [RICE BALL] U+E4D5 -> U+E749
+ ["ee9390", "ee9d8a"], # [SHORTCAKE] U+E4D0 -> U+E74A
+ ["ee96b4", "ee9d8c"], # [STEAMING BOWL] U+E5B4 -> U+E74C
+ ["eeaaaf", "ee9d8d"], # [BREAD] U+EAAF -> U+E74D
+ ["ee9391", :undef], # [COOKING] U+E4D1 -> "[フライパン]"
+ ["eeaab0", :undef], # [SOFT ICE CREAM] U+EAB0 -> "[ソフトクリーム]"
+ ["eeaab1", :undef], # [FRENCH FRIES] U+EAB1 -> "[ãƒãƒ†ãƒˆ]"
+ ["eeaab2", :undef], # [DANGO] U+EAB2 -> "[ã ã‚“ã”]"
+ ["eeaab3", :undef], # [RICE CRACKER] U+EAB3 -> "[ã›ã‚“ã¹ã„]"
+ ["eeaab4", "ee9d8c"], # [COOKED RICE] U+EAB4 -> U+E74C
+ ["eeaab5", :undef], # [SPAGHETTI] U+EAB5 -> "[パスタ]"
+ ["eeaab6", :undef], # [CURRY AND RICE] U+EAB6 -> "[カレー]"
+ ["eeaab7", :undef], # [ODEN] U+EAB7 -> "[ãŠã§ã‚“]"
+ ["eeaab8", :undef], # [SUSHI] U+EAB8 -> "[ã™ã—]"
+ ["eeaabd", :undef], # [BENTO BOX] U+EABD -> "[å¼å½“]"
+ ["eeaabe", :undef], # [POT OF FOOD] U+EABE -> "[é‹]"
+ ["eeabaa", :undef], # [SHAVED ICE] U+EAEA -> "[ã‚«ã‚­æ°·]"
+ ["ee9384", :undef], # [MEAT ON BONE] U+E4C4 -> "[肉]"
+ ["ee93ad", "ee9983"], # [FISH CAKE WITH SWIRL DESIGN] U+E4ED -> U+E643
+ ["eeacba", :undef], # [ROASTED SWEET POTATO] U+EB3A -> "[ã‚„ãã„ã‚‚]"
+ ["eeacbb", :undef], # [SLICE OF PIZZA] U+EB3B -> "[ピザ]"
+ ["eeacbc", :undef], # [POULTRY LEG] U+EB3C -> "[ãƒã‚­ãƒ³]"
+ ["eead8a", :undef], # [ICE CREAM] U+EB4A -> "[アイスクリーム]"
+ ["eead8b", :undef], # [DOUGHNUT] U+EB4B -> "[ドーナツ]"
+ ["eead8c", :undef], # [COOKIE] U+EB4C -> "[クッキー]"
+ ["eead8d", :undef], # [CHOCOLATE BAR] U+EB4D -> "[ãƒãƒ§ã‚³]"
+ ["eead8e", :undef], # [CANDY] U+EB4E -> "[キャンディ]"
+ ["eead8f", :undef], # [LOLLIPOP] U+EB4F -> "[キャンディ]"
+ ["eead96", :undef], # [CUSTARD] U+EB56 -> "[プリン]"
+ ["eead99", :undef], # [HONEY POT] U+EB59 -> "[ãƒãƒãƒŸãƒ„]"
+ ["eeadb0", :undef], # [FRIED SHRIMP] U+EB70 -> "[エビフライ]"
+ ["ee92ac", "ee99af"], # [FORK AND KNIFE] U+E4AC -> U+E66F
+ ["ee9697", "ee99b0"], # [HOT BEVERAGE] U+E597 -> U+E670
+ ["ee9382", "ee99b1"], # [COCKTAIL GLASS] U+E4C2 -> U+E671
+ ["ee9383", "ee99b2"], # [BEER MUG] U+E4C3 -> U+E672
+ ["eeaaae", "ee9c9e"], # [TEACUP WITHOUT HANDLE] U+EAAE -> U+E71E
+ ["eeaa97", "ee9d8b"], # [SAKE BOTTLE AND CUP] U+EA97 -> U+E74B
+ ["ee9381", "ee9d96"], # [WINE GLASS] U+E4C1 -> U+E756
+ ["eeaa98", "ee99b2"], # [CLINKING BEER MUGS] U+EA98 -> U+E672
+ ["eeacbe", "ee99b1"], # [TROPICAL DRINK] U+EB3E -> U+E671
+ ["ee9595", "ee99b8"], # [NORTH EAST ARROW] U+E555 -> U+E678
+ ["ee958d", "ee9a96"], # [SOUTH EAST ARROW] U+E54D -> U+E696
+ ["ee958c", "ee9a97"], # [NORTH WEST ARROW] U+E54C -> U+E697
+ ["ee9596", "ee9aa5"], # [SOUTH WEST ARROW] U+E556 -> U+E6A5
+ ["eeacad", "ee9bb5"], # [ARROW POINTING RIGHTWARDS THEN CURVING UPWARDS] U+EB2D -> U+E6F5
+ ["eeacae", "ee9c80"], # [ARROW POINTING RIGHTWARDS THEN CURVING DOWNWARDS] U+EB2E -> U+E700
+ ["eeadba", "ee9cbc"], # [LEFT RIGHT ARROW] U+EB7A -> U+E73C
+ ["eeadbb", "ee9cbd"], # [UP DOWN ARROW] U+EB7B -> U+E73D
+ ["ee94bf", :undef], # [UPWARDS BLACK ARROW] U+E53F -> "[↑]"
+ ["ee9580", :undef], # [DOWNWARDS BLACK ARROW] U+E540 -> "[↓]"
+ ["ee9592", :undef], # [BLACK RIGHTWARDS ARROW] U+E552 -> "[→]"
+ ["ee9593", :undef], # [LEFTWARDS BLACK ARROW] U+E553 -> "[â†]"
+ ["ee94ae", :undef], # [BLACK RIGHT-POINTING TRIANGLE] U+E52E -> "[&gt;]"
+ ["ee94ad", :undef], # [BLACK LEFT-POINTING TRIANGLE] U+E52D -> "[&lt;]"
+ ["ee94b0", :undef], # [BLACK RIGHT-POINTING DOUBLE TRIANGLE] U+E530 -> "[&gt;&gt;]"
+ ["ee94af", :undef], # [BLACK LEFT-POINTING DOUBLE TRIANGLE] U+E52F -> "[&lt;&lt;]"
+ ["ee9585", :undef], # [BLACK UP-POINTING DOUBLE TRIANGLE] U+E545 -> "â–²"
+ ["ee9584", :undef], # [BLACK DOWN-POINTING DOUBLE TRIANGLE] U+E544 -> "â–¼"
+ ["ee959a", :undef], # [UP-POINTING RED TRIANGLE] U+E55A -> "â–²"
+ ["ee959b", :undef], # [DOWN-POINTING RED TRIANGLE] U+E55B -> "â–¼"
+ ["ee9583", :undef], # [UP-POINTING SMALL RED TRIANGLE] U+E543 -> "â–²"
+ ["ee9582", :undef], # [DOWN-POINTING SMALL RED TRIANGLE] U+E542 -> "â–¼"
+ ["eeaaad", "ee9aa0"], # [HEAVY LARGE CIRCLE] U+EAAD -> U+E6A0
+ ["ee9590", :undef], # [CROSS MARK] U+E550 -> "[×]"
+ ["ee9591", :undef], # [NEGATIVE SQUARED CROSS MARK] U+E551 -> "[×]"
+ ["ee9282", "ee9c82"], # [HEAVY EXCLAMATION MARK ORNAMENT] U+E482 -> U+E702
+ ["eeacaf", "ee9c83"], # [EXCLAMATION QUESTION MARK] U+EB2F -> U+E703
+ ["eeacb0", "ee9c84"], # [DOUBLE EXCLAMATION MARK] U+EB30 -> U+E704
+ ["ee9283", :undef], # [BLACK QUESTION MARK ORNAMENT] U+E483 -> "[?]"
+ ["eeacb1", "ee9c8a"], # [CURLY LOOP] U+EB31 -> U+E70A
+ ["ee9695", "ee9bac"], # [HEAVY BLACK HEART] U+E595 -> U+E6EC
+ ["eeadb5", "ee9bad"], # [BEATING HEART] U+EB75 -> U+E6ED
+ ["ee91b7", "ee9bae"], # [BROKEN HEART] U+E477 -> U+E6EE
+ ["ee91b8", "ee9baf"], # [TWO HEARTS] U+E478 -> U+E6EF
+ ["eeaaa6", "ee9bac"], # [SPARKLING HEART] U+EAA6 -> U+E6EC
+ ["ee93aa", "ee9bac"], # [HEART WITH ARROW] U+E4EA -> U+E6EC
+ ["eeaaa7", "ee9bac"], # [BLUE HEART] U+EAA7 -> U+E6EC
+ ["eeaaa8", "ee9bac"], # [GREEN HEART] U+EAA8 -> U+E6EC
+ ["eeaaa9", "ee9bac"], # [YELLOW HEART] U+EAA9 -> U+E6EC
+ ["eeaaaa", "ee9bac"], # [PURPLE HEART] U+EAAA -> U+E6EC
+ ["eead94", "ee9bac"], # [HEART WITH RIBBON] U+EB54 -> U+E6EC
+ ["ee96af", "ee9bad"], # [REVOLVING HEARTS] U+E5AF -> U+E6ED
+ ["eeaaa5", "ee9a8d"], # [BLACK HEART SUIT] U+EAA5 -> U+E68D
+ ["ee96a1", "ee9a8e"], # [BLACK SPADE SUIT] U+E5A1 -> U+E68E
+ ["ee96a2", "ee9a8f"], # [BLACK DIAMOND SUIT] U+E5A2 -> U+E68F
+ ["ee96a3", "ee9a90"], # [BLACK CLUB SUIT] U+E5A3 -> U+E690
+ ["ee91bd", "ee99bf"], # [SMOKING SYMBOL] U+E47D -> U+E67F
+ ["ee91be", "ee9a80"], # [NO SMOKING SYMBOL] U+E47E -> U+E680
+ ["ee91bf", "ee9a9b"], # [WHEELCHAIR SYMBOL] U+E47F -> U+E69B
+ ["eeacac", "ee9b9e"], # [TRIANGULAR FLAG ON POST] U+EB2C -> U+E6DE
+ ["ee9281", "ee9cb7"], # [WARNING SIGN] U+E481 -> U+E737
+ ["ee9284", "ee9caf"], # [NO ENTRY] U+E484 -> U+E72F
+ ["eeadb9", "ee9cb5"], # [BLACK UNIVERSAL RECYCLING SYMBOL] U+EB79 -> U+E735
+ ["ee92ae", "ee9c9d"], # [BICYCLE] U+E4AE -> U+E71D
+ ["eeadb2", "ee9cb3"], # [PEDESTRIAN] U+EB72 -> U+E733
+ ["ee9798", "ee9bb7"], # [BATH] U+E5D8 -> U+E6F7
+ ["ee92a5", "ee99ae"], # [RESTROOM] U+E4A5 -> U+E66E
+ ["ee9581", "ee9cb8"], # [NO ENTRY SIGN] U+E541 -> U+E738
+ ["ee9597", :undef], # [HEAVY CHECK MARK] U+E557 -> "[ãƒã‚§ãƒƒã‚¯ãƒžãƒ¼ã‚¯]"
+ ["ee96ab", "ee9b9b"], # [SQUARED CL] U+E5AB -> U+E6DB
+ ["eeaa85", :undef], # [SQUARED COOL] U+EA85 -> "[COOL]"
+ ["ee95b8", "ee9b97"], # [SQUARED FREE] U+E578 -> U+E6D7
+ ["eeaa88", "ee9b98"], # [SQUARED ID] U+EA88 -> U+E6D8
+ ["ee96b5", "ee9b9d"], # [SQUARED NEW] U+E5B5 -> U+E6DD
+ ["ee96ad", "ee9c8b"], # [SQUARED OK] U+E5AD -> U+E70B
+ ["ee93a8", :undef], # [SQUARED SOS] U+E4E8 -> "[SOS]"
+ ["ee948f", :undef], # [SQUARED UP WITH EXCLAMATION MARK] U+E50F -> "[UP!]"
+ ["ee9792", :undef], # [SQUARED VS] U+E5D2 -> "[VS]"
+ ["eeaa87", :undef], # [SQUARED KATAKANA SA] U+EA87 -> "[サービス]"
+ ["eeaa8a", "ee9cb9"], # [SQUARED CJK UNIFIED IDEOGRAPH-7A7A] U+EA8A -> U+E739
+ ["eeaa89", "ee9cbb"], # [SQUARED CJK UNIFIED IDEOGRAPH-6E80] U+EA89 -> U+E73B
+ ["eeaa86", :undef], # [SQUARED CJK UNIFIED IDEOGRAPH-5272] U+EA86 -> "[割]"
+ ["eeaa8b", :undef], # [SQUARED CJK UNIFIED IDEOGRAPH-6307] U+EA8B -> "[指]"
+ ["eeaa8c", :undef], # [SQUARED CJK UNIFIED IDEOGRAPH-55B6] U+EA8C -> "[å–¶]"
+ ["ee93b1", "ee9cb4"], # [CIRCLED IDEOGRAPH SECRET] U+E4F1 -> U+E734
+ ["eeaa99", :undef], # [CIRCLED IDEOGRAPH CONGRATULATION] U+EA99 -> "[ç¥]"
+ ["ee93b7", :undef], # [CIRCLED IDEOGRAPH ADVANTAGE] U+E4F7 -> "[å¾—]"
+ ["eeac81", :undef], # [CIRCLED IDEOGRAPH ACCEPT] U+EB01 -> "[å¯]"
+ ["ee94bc", :undef], # [HEAVY PLUS SIGN] U+E53C -> "[+]"
+ ["ee94bd", :undef], # [HEAVY MINUS SIGN] U+E53D -> "[ï¼]"
+ ["ee958f", :undef], # [HEAVY MULTIPLICATION X] U+E54F -> "[×]"
+ ["ee9594", :undef], # [HEAVY DIVISION SIGN] U+E554 -> "[÷]"
+ ["ee91b6", "ee9bbb"], # [ELECTRIC LIGHT BULB] U+E476 -> U+E6FB
+ ["ee93a5", "ee9bbc"], # [ANGER SYMBOL] U+E4E5 -> U+E6FC
+ ["ee91ba", "ee9bbe"], # [BOMB] U+E47A -> U+E6FE
+ ["ee91b5", "ee9c81"], # [SLEEPING SYMBOL] U+E475 -> U+E701
+ ["ee96b0", "ee9c85"], # [COLLISION SYMBOL] U+E5B0 -> U+E705
+ ["ee96b1", "ee9c86"], # [SPLASHING SWEAT SYMBOL] U+E5B1 -> U+E706
+ ["ee93a6", "ee9c87"], # [DROP OF WATER] U+E4E6 -> U+E707
+ ["ee93b4", "ee9c88"], # [DASH SYMBOL] U+E4F4 -> U+E708
+ ["ee93b5", :undef], # [PILE OF POO] U+E4F5 -> "[ウンãƒ]"
+ ["ee93a9", :undef], # [FLEXED BICEPS] U+E4E9 -> "[力ã“ã¶]"
+ ["eead9c", :undef], # [DIZZY SYMBOL] U+EB5C -> "[クラクラ]"
+ ["ee93bd", :undef], # [SPEECH BALLOON] U+E4FD -> "[フキダシ]"
+ ["eeaaab", "ee9bba"], # [SPARKLES] U+EAAB -> U+E6FA
+ ["ee91b9", "ee9bb8"], # [EIGHT POINTED BLACK STAR] U+E479 -> U+E6F8
+ ["ee94be", "ee9bb8"], # [EIGHT SPOKED ASTERISK] U+E53E -> U+E6F8
+ ["ee94ba", "ee9a9c"], # [MEDIUM WHITE CIRCLE] U+E53A -> U+E69C
+ ["ee94bb", "ee9a9c"], # [MEDIUM BLACK CIRCLE] U+E53B -> U+E69C
+ ["ee958a", "ee9a9c"], # [LARGE RED CIRCLE] U+E54A -> U+E69C
+ ["ee958b", "ee9a9c"], # [LARGE BLUE CIRCLE] U+E54B -> U+E69C
+ ["ee928b", :undef], # [WHITE MEDIUM STAR] U+E48B -> "[☆]"
+ ["ee9588", :undef], # [WHITE LARGE SQUARE] U+E548 -> "â– "
+ ["ee9589", :undef], # [BLACK LARGE SQUARE] U+E549 -> "â– "
+ ["ee94b1", :undef], # [WHITE SMALL SQUARE] U+E531 -> "â– "
+ ["ee94b2", :undef], # [BLACK SMALL SQUARE] U+E532 -> "â– "
+ ["ee94b4", :undef], # [WHITE MEDIUM SMALL SQUARE] U+E534 -> "â– "
+ ["ee94b5", :undef], # [BLACK MEDIUM SMALL SQUARE] U+E535 -> "â– "
+ ["ee94b8", :undef], # [WHITE MEDIUM SQUARE] U+E538 -> "â– "
+ ["ee94b9", :undef], # [BLACK MEDIUM SQUARE] U+E539 -> "â– "
+ ["ee9586", :undef], # [LARGE ORANGE DIAMOND] U+E546 -> "â—†"
+ ["ee9587", :undef], # [LARGE BLUE DIAMOND] U+E547 -> "â—†"
+ ["ee94b6", :undef], # [SMALL ORANGE DIAMOND] U+E536 -> "â—†"
+ ["ee94b7", :undef], # [SMALL BLUE DIAMOND] U+E537 -> "â—†"
+ ["ee91ac", "ee9bba"], # [SPARKLE] U+E46C -> U+E6FA
+ ["ee93b0", :undef], # [WHITE FLOWER] U+E4F0 -> "[花丸]"
+ ["ee93b2", :undef], # [HUNDRED POINTS SYMBOL] U+E4F2 -> "[100点]"
+ ["ee959d", "ee9b9a"], # [LEFTWARDS ARROW WITH HOOK] U+E55D -> U+E6DA
+ ["ee959c", :undef], # [RIGHTWARDS ARROW WITH HOOK] U+E55C -> "└→"
+ ["eeac8d", "ee9cb5"], # [CLOCKWISE DOWNWARDS AND UPWARDS OPEN CIRCLE ARROWS] U+EB0D -> U+E735
+ ["ee9491", :undef], # [SPEAKER WITH THREE SOUND WAVES] U+E511 -> "[スピーカ]"
+ ["ee9684", :undef], # [BATTERY] U+E584 -> "[電池]"
+ ["ee9689", :undef], # [ELECTRIC PLUG] U+E589 -> "[コンセント]"
+ ["ee9498", "ee9b9c"], # [LEFT-POINTING MAGNIFYING GLASS] U+E518 -> U+E6DC
+ ["eeac85", "ee9b9c"], # [RIGHT-POINTING MAGNIFYING GLASS] U+EB05 -> U+E6DC
+ ["ee949c", "ee9b99"], # [LOCK] U+E51C -> U+E6D9
+ ["eeac8c", "ee9b99"], # [LOCK WITH INK PEN] U+EB0C -> U+E6D9
+ ["eeabbc", "ee9b99"], # [CLOSED LOCK WITH KEY] U+EAFC -> U+E6D9
+ ["ee9499", "ee9b99"], # [KEY] U+E519 -> U+E6D9
+ ["ee9492", "ee9c93"], # [BELL] U+E512 -> U+E713
+ ["eeac82", :undef], # [BALLOT BOX WITH CHECK] U+EB02 -> "[ãƒã‚§ãƒƒã‚¯ãƒžãƒ¼ã‚¯]"
+ ["eeac84", :undef], # [RADIO BUTTON] U+EB04 -> "[ラジオボタン]"
+ ["eeac87", :undef], # [BOOKMARK] U+EB07 -> "[ブックマーク]"
+ ["ee968a", :undef], # [LINK SYMBOL] U+E58A -> "[リンク]"
+ ["eeac86", :undef], # [BACK WITH LEFTWARDS ARROW ABOVE] U+EB06 -> "[â†BACK]"
+ ["ee968c", :undef], # [EM SPACE] U+E58C -> U+3013 (GETA)
+ ["ee968d", :undef], # [EN SPACE] U+E58D -> U+3013 (GETA)
+ ["ee968e", :undef], # [FOUR-PER-EM SPACE] U+E58E -> U+3013 (GETA)
+ ["ee959e", :undef], # [WHITE HEAVY CHECK MARK] U+E55E -> "[ãƒã‚§ãƒƒã‚¯ãƒžãƒ¼ã‚¯]"
+ ["eeae83", "ee9a93"], # [RAISED FIST] U+EB83 -> U+E693
+ ["ee96a7", "ee9a95"], # [RAISED HAND] U+E5A7 -> U+E695
+ ["ee96a6", "ee9a94"], # [VICTORY HAND] U+E5A6 -> U+E694
+ ["ee93b3", "ee9bbd"], # [FISTED HAND SIGN] U+E4F3 -> U+E6FD
+ ["ee93b9", "ee9ca7"], # [THUMBS UP SIGN] U+E4F9 -> U+E727
+ ["ee93b6", :undef], # [WHITE UP POINTING INDEX] U+E4F6 -> "[äººå·®ã—æŒ‡]"
+ ["eeaa8d", :undef], # [WHITE UP POINTING BACKHAND INDEX] U+EA8D -> "[↑]"
+ ["eeaa8e", :undef], # [WHITE DOWN POINTING BACKHAND INDEX] U+EA8E -> "[↓]"
+ ["ee93bf", :undef], # [WHITE LEFT POINTING BACKHAND INDEX] U+E4FF -> "[â†]"
+ ["ee9480", :undef], # [WHITE RIGHT POINTING BACKHAND INDEX] U+E500 -> "[→]"
+ ["eeab96", "ee9a95"], # [WAVING HAND SIGN] U+EAD6 -> U+E695
+ ["eeab93", :undef], # [CLAPPING HANDS SIGN] U+EAD3 -> "[æ‹æ‰‹]"
+ ["eeab94", "ee9c8b"], # [OK HAND SIGN] U+EAD4 -> U+E70B
+ ["eeab95", "ee9c80"], # [THUMBS DOWN SIGN] U+EAD5 -> U+E700
+ ["ee95b7", :undef], # [EMOJI COMPATIBILITY SYMBOL-37] U+E577 -> "[EZ]"
+ ["ee96b2", :undef], # [EMOJI COMPATIBILITY SYMBOL-38] U+E5B2 -> "[ezplus]"
+ ["eeaa9d", :undef], # [EMOJI COMPATIBILITY SYMBOL-39] U+EA9D -> "[EZナビ]"
+ ["eeadb4", :undef], # [EMOJI COMPATIBILITY SYMBOL-40] U+EB74 -> "[EZムービー]"
+ ["eeae81", :undef], # [EMOJI COMPATIBILITY SYMBOL-41] U+EB81 -> "[Cメール]"
+ ["eeae89", :undef], # [EMOJI COMPATIBILITY SYMBOL-42] U+EB89 -> "[Java]"
+ ["eeae8a", :undef], # [EMOJI COMPATIBILITY SYMBOL-43] U+EB8A -> "[BREW]"
+ ["eeae8b", :undef], # [EMOJI COMPATIBILITY SYMBOL-44] U+EB8B -> "[EZç€ã†ãŸ]"
+ ["eeae8c", :undef], # [EMOJI COMPATIBILITY SYMBOL-45] U+EB8C -> "[EZナビ]"
+ ["eeae8d", :undef], # [EMOJI COMPATIBILITY SYMBOL-46] U+EB8D -> "[WIN]"
+ ["eeae8e", :undef], # [EMOJI COMPATIBILITY SYMBOL-47] U+EB8E -> "[プレミアム]"
+ ["eeabbb", :undef], # [EMOJI COMPATIBILITY SYMBOL-48] U+EAFB -> "[オープンウェブ]"
+ ["ee9686", :undef], # [EMOJI COMPATIBILITY SYMBOL-49] U+E586 -> "[PDC]"
+ ["ee94ac", "ee9ba1"], # [EMOJI COMPATIBILITY SYMBOL-66] U+E52C -> U+E6E1
+ # for undocumented codepoints
+ ["eebda0", "ee98be"], # [BLACK SUN WITH RAYS] U+E488 -> U+E63E
+ ["eebda5", "ee98bf"], # [CLOUD] U+E48D -> U+E63F
+ ["eebda4", "ee9980"], # [UMBRELLA WITH RAIN DROPS] U+E48C -> U+E640
+ ["eebd9d", "ee9981"], # [SNOWMAN WITHOUT SNOW] U+E485 -> U+E641
+ ["eebd9f", "ee9982"], # [HIGH VOLTAGE SIGN] U+E487 -> U+E642
+ ["eebd81", "ee9983"], # [CYCLONE] U+E469 -> U+E643
+ ["ef82b5", "ee9984"], # [FOGGY] U+E598 -> U+E644
+ ["eeb2bc", "ee9985"], # [CLOSED UMBRELLA] U+EAE8 -> U+E645
+ ["eeb385", "ee9ab3"], # [NIGHT WITH STARS] U+EAF1 -> U+E6B3
+ ["eeb388", "ee98be"], # [SUNRISE] U+EAF4 -> U+E63E
+ ["eeb18d", :undef], # [CITYSCAPE AT DUSK] U+E5DA -> "[夕焼ã‘]"
+ ["eeb386", :undef], # [RAINBOW] U+EAF2 -> "[虹]"
+ ["eebda2", :undef], # [SNOWFLAKE] U+E48A -> "[é›ªçµæ™¶]"
+ ["eebda6", "ee98beee98bf"], # [SUN BEHIND CLOUD] U+E48E -> U+E63E U+E63F
+ ["eebe98", "ee9ab3"], # [BRIDGE AT NIGHT] U+E4BF -> U+E6B3
+ ["eeb681", "ee9cbf"], # [WATER WAVE] U+EB7C -> U+E73F
+ ["eeb597", :undef], # [VOLCANO] U+EB53 -> "[ç«å±±]"
+ ["eeb5a3", "ee9ab3"], # [MILKY WAY] U+EB5F -> U+E6B3
+ ["ef8390", :undef], # [EARTH GLOBE ASIA-AUSTRALIA] U+E5B3 -> "[地çƒ]"
+ ["ef8385", "ee9a9c"], # [NEW MOON SYMBOL] U+E5A8 -> U+E69C
+ ["ef8386", "ee9a9d"], # [WAXING GIBBOUS MOON SYMBOL] U+E5A9 -> U+E69D
+ ["ef8387", "ee9a9e"], # [FIRST QUARTER MOON SYMBOL] U+E5AA -> U+E69E
+ ["eebd9e", "ee9a9f"], # [CRESCENT MOON] U+E486 -> U+E69F
+ ["eebda1", "ee9a9e"], # [FIRST QUARTER MOON WITH FACE] U+E489 -> U+E69E
+ ["eebd80", :undef], # [SHOOTING STAR] U+E468 -> "☆彡"
+ ["ef8297", "ee9c9f"], # [WATCH] U+E57A -> U+E71F
+ ["ef8298", "ee9c9c"], # [HOURGLASS] U+E57B -> U+E71C
+ ["ef82b1", "ee9aba"], # [ALARM CLOCK] U+E594 -> U+E6BA
+ ["eebd94", "ee9c9c"], # [HOURGLASS WITH FLOWING SAND] U+E47C -> U+E71C
+ ["eebda7", "ee9986"], # [ARIES] U+E48F -> U+E646
+ ["eebda8", "ee9987"], # [TAURUS] U+E490 -> U+E647
+ ["eebda9", "ee9988"], # [GEMINI] U+E491 -> U+E648
+ ["eebdaa", "ee9989"], # [CANCER] U+E492 -> U+E649
+ ["eebdab", "ee998a"], # [LEO] U+E493 -> U+E64A
+ ["eebdac", "ee998b"], # [VIRGO] U+E494 -> U+E64B
+ ["eebdad", "ee998c"], # [LIBRA] U+E495 -> U+E64C
+ ["eebdae", "ee998d"], # [SCORPIUS] U+E496 -> U+E64D
+ ["eebdaf", "ee998e"], # [SAGITTARIUS] U+E497 -> U+E64E
+ ["eebdb0", "ee998f"], # [CAPRICORN] U+E498 -> U+E64F
+ ["eebdb1", "ee9990"], # [AQUARIUS] U+E499 -> U+E650
+ ["eebdb2", "ee9991"], # [PISCES] U+E49A -> U+E651
+ ["eebdb3", :undef], # [OPHIUCHUS] U+E49B -> "[蛇使座]"
+ ["eebfac", "ee9d81"], # [FOUR LEAF CLOVER] U+E513 -> U+E741
+ ["eebebd", "ee9d83"], # [TULIP] U+E4E4 -> U+E743
+ ["eeb682", "ee9d86"], # [SEEDLING] U+EB7D -> U+E746
+ ["eebea7", "ee9d87"], # [MAPLE LEAF] U+E4CE -> U+E747
+ ["eebea3", "ee9d88"], # [CHERRY BLOSSOM] U+E4CA -> U+E748
+ ["ef83aa", :undef], # [ROSE] U+E5BA -> "[ãƒãƒ©]"
+ ["eeb180", "ee9d87"], # [FALLEN LEAF] U+E5CD -> U+E747
+ ["eeb1a7", :undef], # [HIBISCUS] U+EA94 -> "[ãƒã‚¤ãƒ“スカス]"
+ ["eebebc", :undef], # [SUNFLOWER] U+E4E3 -> "[ã²ã¾ã‚り]"
+ ["eebebb", :undef], # [PALM TREE] U+E4E2 -> "[ヤシ]"
+ ["eeb1a9", :undef], # [CACTUS] U+EA96 -> "[サボテン]"
+ ["eeb3b7", :undef], # [EAR OF MAIZE] U+EB36 -> "[ã¨ã†ã‚‚ã‚ã“ã—]"
+ ["eeb3b8", :undef], # [MUSHROOM] U+EB37 -> "[キノコ]"
+ ["eeb3b9", :undef], # [CHESTNUT] U+EB38 -> "[æ —]"
+ ["eeb58d", :undef], # [BLOSSOM] U+EB49 -> "[花]"
+ ["eeb687", "ee9d81"], # [HERB] U+EB82 -> U+E741
+ ["eebeab", "ee9d82"], # [CHERRIES] U+E4D2 -> U+E742
+ ["eeb3b6", "ee9d84"], # [BANANA] U+EB35 -> U+E744
+ ["eeb28d", "ee9d85"], # [RED APPLE] U+EAB9 -> U+E745
+ ["eeb28e", :undef], # [TANGERINE] U+EABA -> "[ã¿ã‹ã‚“]"
+ ["eebead", :undef], # [STRAWBERRY] U+E4D4 -> "[イãƒã‚´]"
+ ["eebea6", :undef], # [WATERMELON] U+E4CD -> "[スイカ]"
+ ["eeb28f", :undef], # [TOMATO] U+EABB -> "[トマト]"
+ ["eeb290", :undef], # [AUBERGINE] U+EABC -> "[ナス]"
+ ["eeb3b3", :undef], # [MELON] U+EB32 -> "[メロン]"
+ ["eeb3b4", :undef], # [PINEAPPLE] U+EB33 -> "[パイナップル]"
+ ["eeb3b5", :undef], # [GRAPES] U+EB34 -> "[ブドウ]"
+ ["eeb3ba", :undef], # [PEACH] U+EB39 -> "[モモ]"
+ ["eeb59e", "ee9d85"], # [GREEN APPLE] U+EB5A -> U+E745
+ ["ef8381", "ee9a91"], # [EYES] U+E5A4 -> U+E691
+ ["ef8382", "ee9a92"], # [EAR] U+E5A5 -> U+E692
+ ["eeb2a4", :undef], # [NOSE] U+EAD0 -> "[é¼»]"
+ ["eeb2a5", "ee9bb9"], # [MOUTH] U+EAD1 -> U+E6F9
+ ["eeb58b", "ee9ca8"], # [TONGUE] U+EB47 -> U+E728
+ ["eebfa2", "ee9c90"], # [LIPSTICK] U+E509 -> U+E710
+ ["eeb1b3", :undef], # [NAIL POLISH] U+EAA0 -> "[マニキュア]"
+ ["eebfa4", :undef], # [FACE MASSAGE] U+E50B -> "[エステ]"
+ ["eeb1b4", "ee99b5"], # [HAIRCUT] U+EAA1 -> U+E675
+ ["eeb1b5", :undef], # [BARBER POLE] U+EAA2 -> "[床屋]"
+ ["eebf95", "ee9bb0"], # [BOY] U+E4FC -> U+E6F0
+ ["eebf93", "ee9bb0"], # [GIRL] U+E4FA -> U+E6F0
+ ["eebf9a", :undef], # [FAMILY] U+E501 -> "[å®¶æ—]"
+ ["eeb190", :undef], # [POLICE OFFICER] U+E5DD -> "[警官]"
+ ["eeb2af", :undef], # [WOMAN WITH BUNNY EARS] U+EADB -> "[ãƒãƒ‹ãƒ¼]"
+ ["eeb2bd", :undef], # [BRIDE WITH VEIL] U+EAE9 -> "[花å«]"
+ ["eeb394", :undef], # [WESTERN PERSON] U+EB13 -> "[白人]"
+ ["eeb395", :undef], # [MAN WITH GUA PI MAO] U+EB14 -> "[中国人]"
+ ["eeb396", :undef], # [MAN WITH TURBAN] U+EB15 -> "[インド人]"
+ ["eeb397", :undef], # [OLDER MAN] U+EB16 -> "[ãŠã˜ã„ã•ã‚“]"
+ ["eeb398", :undef], # [OLDER WOMAN] U+EB17 -> "[ãŠã°ã‚ã•ã‚“]"
+ ["eeb399", :undef], # [BABY] U+EB18 -> "[赤ã¡ã‚ƒã‚“]"
+ ["eeb39a", :undef], # [CONSTRUCTION WORKER] U+EB19 -> "[工事ç¾å ´ã®äºº]"
+ ["eeb39b", :undef], # [PRINCESS] U+EB1A -> "[ãŠå§«æ§˜]"
+ ["eeb588", :undef], # [JAPANESE OGRE] U+EB44 -> "[ãªã¾ã¯ã’]"
+ ["eeb589", :undef], # [JAPANESE GOBLIN] U+EB45 -> "[天狗]"
+ ["eebea4", :undef], # [GHOST] U+E4CB -> "[ãŠåŒ–ã‘]"
+ ["ef83af", :undef], # [BABY ANGEL] U+E5BF -> "[天使]"
+ ["eebfa7", :undef], # [EXTRATERRESTRIAL ALIEN] U+E50E -> "[UFO]"
+ ["eebf85", :undef], # [ALIEN MONSTER] U+E4EC -> "[宇宙人]"
+ ["eebf88", :undef], # [IMP] U+E4EF -> "[アクマ]"
+ ["eebf91", :undef], # [SKULL] U+E4F8 -> "[ドクロ]"
+ ["eeb39d", :undef], # [DANCER] U+EB1C -> "[ダンス]"
+ ["eeb683", "ee9d8e"], # [SNAIL] U+EB7E -> U+E74E
+ ["eeb3a3", :undef], # [SNAKE] U+EB22 -> "[ヘビ]"
+ ["eeb3a4", :undef], # [CHICKEN] U+EB23 -> "[ニワトリ]"
+ ["eeb3a5", :undef], # [BOAR] U+EB24 -> "[イノシシ]"
+ ["eeb3a6", :undef], # [BACTRIAN CAMEL] U+EB25 -> "[ラクダ]"
+ ["eeb3a0", :undef], # [ELEPHANT] U+EB1F -> "[ゾウ]"
+ ["eeb3a1", :undef], # [KOALA] U+EB20 -> "[コアラ]"
+ ["ef83b7", :undef], # [OCTOPUS] U+E5C7 -> "[タコ]"
+ ["eeb380", :undef], # [SPIRAL SHELL] U+EAEC -> "[å·»è²]"
+ ["eeb39f", :undef], # [BUG] U+EB1E -> "[ゲジゲジ]"
+ ["eebeb6", :undef], # [ANT] U+E4DD -> "[アリ]"
+ ["eeb59b", :undef], # [HONEYBEE] U+EB57 -> "[ミツãƒãƒ]"
+ ["eeb59c", :undef], # [LADY BEETLE] U+EB58 -> "[ã¦ã‚“ã¨ã†è™«]"
+ ["eeb39e", "ee9d91"], # [TROPICAL FISH] U+EB1D -> U+E751
+ ["eebeac", "ee9d91"], # [BLOWFISH] U+E4D3 -> U+E751
+ ["eeb187", :undef], # [TURTLE] U+E5D4 -> "[カメ]"
+ ["eebeb9", "ee9d8f"], # [BABY CHICK] U+E4E0 -> U+E74F
+ ["eeb5ba", "ee9d8f"], # [FRONT-FACING BABY CHICK] U+EB76 -> U+E74F
+ ["eeb18e", "ee9d8f"], # [HATCHING CHICK] U+E5DB -> U+E74F
+ ["eebeb5", "ee9d90"], # [PENGUIN] U+E4DC -> U+E750
+ ["eebeb8", "ee9aa1"], # [POODLE] U+E4DF -> U+E6A1
+ ["eeb39c", :undef], # [DOLPHIN] U+EB1B -> "[イルカ]"
+ ["ef83b2", :undef], # [MOUSE FACE] U+E5C2 -> "[ãƒã‚ºãƒŸ]"
+ ["ef83b0", :undef], # [TIGER FACE] U+E5C0 -> "[トラ]"
+ ["eebeb4", "ee9aa2"], # [CAT FACE] U+E4DB -> U+E6A2
+ ["eebd88", :undef], # [SPOUTING WHALE] U+E470 -> "[クジラ]"
+ ["eebeb1", "ee9d94"], # [HORSE FACE] U+E4D8 -> U+E754
+ ["eebeb2", :undef], # [MONKEY FACE] U+E4D9 -> "[サル]"
+ ["eebeba", "ee9aa1"], # [DOG FACE] U+E4E1 -> U+E6A1
+ ["eebeb7", "ee9d95"], # [PIG FACE] U+E4DE -> U+E755
+ ["ef83b1", :undef], # [BEAR FACE] U+E5C1 -> "[クマ]"
+ ["eeb3a2", :undef], # [COW FACE] U+EB21 -> "[牛]"
+ ["eebeb0", :undef], # [RABBIT FACE] U+E4D7 -> "[ウサギ]"
+ ["eebeb3", :undef], # [FROG FACE] U+E4DA -> "[カエル]"
+ ["eebf87", "ee9a98"], # [PAW PRINTS] U+E4EE -> U+E698
+ ["eeb583", :undef], # [DRAGON FACE] U+EB3F -> "[è¾°]"
+ ["eeb58a", :undef], # [PANDA FACE] U+EB46 -> "[パンダ]"
+ ["eeb58c", "ee9d95"], # [PIG NOSE] U+EB48 -> U+E755
+ ["eebd8a", "ee9bb1"], # [ANGRY FACE] U+E472 -> U+E6F1
+ ["eeb5ab", "ee9bb3"], # [ANGUISHED FACE] U+EB67 -> U+E6F3
+ ["eeb29e", "ee9bb4"], # [ASTONISHED FACE] U+EACA -> U+E6F4
+ ["ef838b", "ee9bb4"], # [DIZZY FACE] U+E5AE -> U+E6F4
+ ["eeb29f", "ee9ca3"], # [EXASPERATED FACE] U+EACB -> U+E723
+ ["eeb29d", "ee9ca5"], # [EXPRESSIONLESS FACE] U+EAC9 -> U+E725
+ ["ef83b4", "ee9ca6"], # [FACE WITH HEART-SHAPED EYES] U+E5C4 -> U+E726
+ ["eeb295", "ee9d93"], # [FACE WITH LOOK OF TRIUMPH] U+EAC1 -> U+E753
+ ["eebf80", "ee9ca8"], # [WINKING FACE WITH STUCK-OUT TONGUE] U+E4E7 -> U+E728
+ ["eeb2a3", "ee9ca6"], # [FACE THROWING A KISS] U+EACF -> U+E726
+ ["eeb2a2", "ee9ca6"], # [FACE KISSING] U+EACE -> U+E726
+ ["eeb29b", :undef], # [FACE WITH MASK] U+EAC7 -> "[風邪ã²ã]"
+ ["eeb29c", "ee9caa"], # [FLUSHED FACE] U+EAC8 -> U+E72A
+ ["eebd89", "ee9bb0"], # [HAPPY FACE WITH OPEN MOUTH] U+E471 -> U+E6F0
+ ["eeb685", "ee9d93"], # [HAPPY FACE WITH GRIN] U+EB80 -> U+E753
+ ["eeb5a8", "ee9caa"], # [HAPPY AND CRYING FACE] U+EB64 -> U+E72A
+ ["eeb2a1", "ee9bb0"], # [HAPPY FACE WITH WIDE MOUTH AND RAISED EYEBROWS] U+EACD -> U+E6F0
+ ["eebf94", "ee9bb0"], # [WHITE SMILING FACE] U+E4FB -> U+E6F0
+ ["eeb5ad", "ee9cae"], # [CRYING FACE] U+EB69 -> U+E72E
+ ["eebd8b", "ee9cad"], # [LOUDLY CRYING FACE] U+E473 -> U+E72D
+ ["eeb29a", "ee9d97"], # [FEARFUL FACE] U+EAC6 -> U+E757
+ ["eeb296", "ee9cab"], # [PERSEVERING FACE] U+EAC2 -> U+E72B
+ ["eeb5a1", "ee9ca4"], # [POUTING FACE] U+EB5D -> U+E724
+ ["eeb299", "ee9ca1"], # [RELIEVED FACE] U+EAC5 -> U+E721
+ ["eeb297", "ee9bb3"], # [CONFOUNDED FACE] U+EAC3 -> U+E6F3
+ ["eeb294", "ee9ca0"], # [PENSIVE FACE] U+EAC0 -> U+E720
+ ["ef83b5", "ee9d97"], # [FACE SCREAMING IN FEAR] U+E5C5 -> U+E757
+ ["eeb298", "ee9c81"], # [SLEEPY FACE] U+EAC4 -> U+E701
+ ["eeb293", "ee9cac"], # [SMIRKING FACE] U+EABF -> U+E72C
+ ["ef83b6", "ee9ca3"], # [FACE WITH COLD SWEAT] U+E5C6 -> U+E723
+ ["eebd8c", "ee9cab"], # [TIRED FACE] U+E474 -> U+E72B
+ ["ef83b3", "ee9ca9"], # [WINKING FACE] U+E5C3 -> U+E729
+ ["eeb5a5", "ee9bb0"], # [CAT FACE WITH OPEN MOUTH] U+EB61 -> U+E6F0
+ ["eeb684", "ee9d93"], # [HAPPY CAT FACE WITH GRIN] U+EB7F -> U+E753
+ ["eeb5a7", "ee9caa"], # [HAPPY AND CRYING CAT FACE] U+EB63 -> U+E72A
+ ["eeb5a4", "ee9ca6"], # [CAT FACE KISSING] U+EB60 -> U+E726
+ ["eeb5a9", "ee9ca6"], # [CAT FACE WITH HEART-SHAPED EYES] U+EB65 -> U+E726
+ ["eeb5ac", "ee9cae"], # [CRYING CAT FACE] U+EB68 -> U+E72E
+ ["eeb5a2", "ee9ca4"], # [POUTING CAT FACE] U+EB5E -> U+E724
+ ["eeb5ae", "ee9d93"], # [CAT FACE WITH TIGHTLY-CLOSED LIPS] U+EB6A -> U+E753
+ ["eeb5aa", "ee9bb3"], # [ANGUISHED CAT FACE] U+EB66 -> U+E6F3
+ ["eeb2ab", "ee9caf"], # [FACE WITH NO GOOD GESTURE] U+EAD7 -> U+E72F
+ ["eeb2ac", "ee9c8b"], # [FACE WITH OK GESTURE] U+EAD8 -> U+E70B
+ ["eeb2ad", :undef], # [PERSON BOWING DEEPLY] U+EAD9 -> "m(_ _)m"
+ ["eeb594", :undef], # [SEE-NO-EVIL MONKEY] U+EB50 -> "(/_ï¼¼)"
+ ["eeb595", :undef], # [SPEAK-NO-EVIL MONKEY] U+EB51 -> "(・×・)"
+ ["eeb596", :undef], # [HEAR-NO-EVIL MONKEY] U+EB52 -> "|(・×・)|"
+ ["eeb68a", :undef], # [PERSON RAISING ONE HAND] U+EB85 -> "(^-^)/"
+ ["eeb68b", :undef], # [PERSON RAISING BOTH HANDS IN CELEBRATION] U+EB86 -> "ï¼¼(^o^)ï¼"
+ ["eeb68c", "ee9bb3"], # [PERSON FROWNING] U+EB87 -> U+E6F3
+ ["eeb68d", "ee9bb1"], # [PERSON WITH POUTING FACE] U+EB88 -> U+E6F1
+ ["eeb2a6", :undef], # [PERSON WITH FOLDED HANDS] U+EAD2 -> "(&gt;人&lt;)"
+ ["eebe84", "ee99a3"], # [HOUSE BUILDING] U+E4AB -> U+E663
+ ["ef83a0", "ee99a3"], # [HOUSE WITH GARDEN] U+EB09 -> U+E663
+ ["eebe86", "ee99a4"], # [OFFICE BUILDING] U+E4AD -> U+E664
+ ["eeb191", "ee99a5"], # [JAPANESE POST OFFICE] U+E5DE -> U+E665
+ ["eeb192", "ee99a6"], # [HOSPITAL] U+E5DF -> U+E666
+ ["eebe83", "ee99a7"], # [BANK] U+E4AA -> U+E667
+ ["eebdbb", "ee99a8"], # [AUTOMATED TELLER MACHINE] U+E4A3 -> U+E668
+ ["eeb194", "ee99a9"], # [HOTEL] U+EA81 -> U+E669
+ ["eeb387", "ee99a9ee9baf"], # [LOVE HOTEL] U+EAF3 -> U+E669 U+E6EF
+ ["eebdbc", "ee99aa"], # [CONVENIENCE STORE] U+E4A4 -> U+E66A
+ ["eeb193", "ee9cbe"], # [SCHOOL] U+EA80 -> U+E73E
+ ["ef83ab", :undef], # [CHURCH] U+E5BB -> "[教会]"
+ ["eeb182", :undef], # [FOUNTAIN] U+E5CF -> "[å™´æ°´]"
+ ["eeb38a", :undef], # [DEPARTMENT STORE] U+EAF6 -> "[デパート]"
+ ["eeb38b", :undef], # [JAPANESE CASTLE] U+EAF7 -> "[城]"
+ ["eeb38c", :undef], # [EUROPEAN CASTLE] U+EAF8 -> "[城]"
+ ["eeb38d", :undef], # [FACTORY] U+EAF9 -> "[工場]"
+ ["eebe82", "ee99a1"], # [ANCHOR] U+E4A9 -> U+E661
+ ["eebe96", "ee9d8b"], # [IZAKAYA LANTERN] U+E4BD -> U+E74B
+ ["ef83ad", "ee9d80"], # [MOUNT FUJI] U+E5BD -> U+E740
+ ["eebe99", :undef], # [TOKYO TOWER] U+E4C0 -> "[æ±äº¬ã‚¿ãƒ¯ãƒ¼]"
+ ["ef828f", :undef], # [SILHOUETTE OF JAPAN] U+E572 -> "[日本地図]"
+ ["eeb5b0", :undef], # [MOYAI] U+EB6C -> "[モアイ]"
+ ["ef83a7", "ee9a99"], # [MANS SHOE] U+E5B7 -> U+E699
+ ["eeb3ac", "ee9a99"], # [ATHLETIC SHOE] U+EB2B -> U+E699
+ ["eebfb3", "ee99b4"], # [HIGH-HEELED SHOE] U+E51A -> U+E674
+ ["eeb1b2", :undef], # [WOMANS BOOTS] U+EA9F -> "[ブーツ]"
+ ["eeb3ab", "ee9a98"], # [FOOTPRINTS] U+EB2A -> U+E698
+ ["eebf97", "ee9a9a"], # [EYEGLASSES] U+E4FE -> U+E69A
+ ["ef83a6", "ee9c8e"], # [T-SHIRT] U+E5B6 -> U+E70E
+ ["eeb5bb", "ee9c91"], # [JEANS] U+EB77 -> U+E711
+ ["ef83b9", "ee9c9a"], # [CROWN] U+E5C9 -> U+E71A
+ ["eeb1a6", :undef], # [NECKTIE] U+EA93 -> "[ãƒã‚¯ã‚¿ã‚¤]"
+ ["eeb1b1", :undef], # [WOMANS HAT] U+EA9E -> "[帽å­]"
+ ["eeb5af", :undef], # [DRESS] U+EB6B -> "[ドレス]"
+ ["eeb1b6", :undef], # [KIMONO] U+EAA3 -> "[ç€ç‰©]"
+ ["eeb1b7", :undef], # [BIKINI] U+EAA4 -> "[ビキニ]"
+ ["eebfa6", "ee9c8e"], # [WOMANS CLOTHES] U+E50D -> U+E70E
+ ["eebf9d", "ee9c8f"], # [PURSE] U+E504 -> U+E70F
+ ["eebdb4", "ee9a82"], # [HANDBAG] U+E49C -> U+E682
+ ["eebea0", "ee9c95"], # [MONEY BAG] U+E4C7 -> U+E715
+ ["eeb18f", :undef], # [CHART WITH UPWARDS TREND AND YEN SIGN] U+E5DC -> "[株価]"
+ ["ef8296", "ee9c95"], # [HEAVY DOLLAR SIGN] U+E579 -> U+E715
+ ["ef8299", :undef], # [CREDIT CARD] U+E57C -> "[カード]"
+ ["ef829a", "ee9b96"], # [BANKNOTE WITH YEN SIGN] U+E57D -> U+E6D6
+ ["ef82a2", "ee9c95"], # [BANKNOTE WITH DOLLAR SIGN] U+E585 -> U+E715
+ ["eeb59f", :undef], # [MONEY WITH WINGS] U+EB5B -> "[飛んã§ã„ããŠé‡‘]"
+ ["eeb392", :undef], # [REGIONAL INDICATOR SYMBOL LETTERS CN] U+EB11 -> "[中国]"
+ ["eeb38f", :undef], # [REGIONAL INDICATOR SYMBOL LETTERS DE] U+EB0E -> "[ドイツ]"
+ ["eeb188", :undef], # [REGIONAL INDICATOR SYMBOL LETTERS ES] U+E5D5 -> "[スペイン]"
+ ["eeb38e", :undef], # [REGIONAL INDICATOR SYMBOL LETTERS FR] U+EAFA -> "[フランス]"
+ ["eeb391", :undef], # [REGIONAL INDICATOR SYMBOL LETTERS GB] U+EB10 -> "[イギリス]"
+ ["eeb390", :undef], # [REGIONAL INDICATOR SYMBOL LETTERS IT] U+EB0F -> "[イタリア]"
+ ["eebea5", :undef], # [REGIONAL INDICATOR SYMBOL LETTERS JP] U+E4CC -> "[æ—¥ã®ä¸¸]"
+ ["eeb393", :undef], # [REGIONAL INDICATOR SYMBOL LETTERS KR] U+EB12 -> "[韓国]"
+ ["eeb189", :undef], # [REGIONAL INDICATOR SYMBOL LETTERS RU] U+E5D6 -> "[ロシア]"
+ ["ef8290", :undef], # [REGIONAL INDICATOR SYMBOL LETTERS US] U+E573 -> "[USA]"
+ ["eebd93", :undef], # [FIRE] U+E47B -> "[炎]"
+ ["ef82a0", "ee9bbb"], # [ELECTRIC TORCH] U+E583 -> U+E6FB
+ ["ef82a4", "ee9c98"], # [WRENCH] U+E587 -> U+E718
+ ["ef83bb", :undef], # [HAMMER] U+E5CB -> "[ãƒãƒ³ãƒžãƒ¼]"
+ ["ef829e", :undef], # [NUT AND BOLT] U+E581 -> "[ãƒã‚¸]"
+ ["ef829c", :undef], # [HOCHO] U+E57F -> "[包ä¸]"
+ ["eebfa3", :undef], # [PISTOL] U+E50A -> "[ピストル]"
+ ["eeb1a2", :undef], # [CRYSTAL BALL] U+EA8F -> "[å ã„]"
+ ["eebd98", :undef], # [JAPANESE SYMBOL FOR BEGINNER] U+E480 -> "[若葉マーク]"
+ ["eebfa9", :undef], # [SYRINGE] U+E510 -> "[注射]"
+ ["eeb1ad", :undef], # [PILL] U+EA9A -> "[è–¬]"
+ ["eeb3a7", :undef], # [NEGATIVE SQUARED LATIN CAPITAL LETTER A] U+EB26 -> "[A]"
+ ["eeb3a8", :undef], # [NEGATIVE SQUARED LATIN CAPITAL LETTER B] U+EB27 -> "[B]"
+ ["eeb3aa", :undef], # [NEGATIVE SQUARED AB] U+EB29 -> "[AB]"
+ ["eeb3a9", :undef], # [NEGATIVE SQUARED LATIN CAPITAL LETTER O] U+EB28 -> "[O]"
+ ["ef82bc", "ee9a84"], # [RIBBON] U+E59F -> U+E684
+ ["eebea8", "ee9a85"], # [WRAPPED PRESENT] U+E4CF -> U+E685
+ ["ef82bd", "ee9a86"], # [BIRTHDAY CAKE] U+E5A0 -> U+E686
+ ["eebea2", "ee9aa4"], # [CHRISTMAS TREE] U+E4C9 -> U+E6A4
+ ["eeb384", :undef], # [FATHER CHRISTMAS] U+EAF0 -> "[サンタ]"
+ ["eeb18c", :undef], # [CROSSED FLAGS] U+E5D9 -> "[ç¥æ—¥]"
+ ["ef83bc", :undef], # [FIREWORKS] U+E5CC -> "[花ç«]"
+ ["eeb1ae", :undef], # [BALLOON] U+EA9B -> "[風船]"
+ ["eeb1af", :undef], # [PARTY POPPER] U+EA9C -> "[クラッカー]"
+ ["eeb2b7", :undef], # [PINE DECORATION] U+EAE3 -> "[é–€æ¾]"
+ ["eeb2b8", :undef], # [JAPANESE DOLLS] U+EAE4 -> "[ã²ãªç¥­ã‚Š]"
+ ["eeb2b9", :undef], # [GRADUATION CAP] U+EAE5 -> "[å’æ¥­å¼]"
+ ["eeb2ba", :undef], # [SCHOOL SATCHEL] U+EAE6 -> "[ランドセル]"
+ ["eeb2bb", :undef], # [CARP STREAMER] U+EAE7 -> "[ã“ã„ã®ã¼ã‚Š]"
+ ["eeb2bf", :undef], # [FIREWORK SPARKLER] U+EAEB -> "[線香花ç«]"
+ ["eeb381", :undef], # [WIND CHIME] U+EAED -> "[風鈴]"
+ ["eeb382", :undef], # [JACK-O-LANTERN] U+EAEE -> "[ãƒãƒ­ã‚¦ã‚£ãƒ³]"
+ ["eebd87", :undef], # [CONFETTI BALL] U+E46F -> "[オメデトウ]"
+ ["eeb581", :undef], # [TANABATA TREE] U+EB3D -> "[七夕]"
+ ["eeb383", :undef], # [MOON VIEWING CEREMONY] U+EAEF -> "[ãŠæœˆè¦‹]"
+ ["ef82b8", "ee999a"], # [PAGER] U+E59B -> U+E65A
+ ["ef82b3", "ee9a87"], # [BLACK TELEPHONE] U+E596 -> U+E687
+ ["eebfb7", "ee9a87"], # [TELEPHONE RECEIVER] U+E51E -> U+E687
+ ["ef82a5", "ee9a88"], # [MOBILE PHONE] U+E588 -> U+E688
+ ["ef839f", "ee9b8e"], # [MOBILE PHONE WITH RIGHTWARDS ARROW AT LEFT] U+EB08 -> U+E6CE
+ ["eeb1a5", "ee9a89"], # [MEMO] U+EA92 -> U+E689
+ ["eebfb9", "ee9b90"], # [FAX MACHINE] U+E520 -> U+E6D0
+ ["eebfba", "ee9b93"], # [ENVELOPE] U+E521 -> U+E6D3
+ ["ef82ae", "ee9b8f"], # [INCOMING ENVELOPE] U+E591 -> U+E6CF
+ ["eeb5a6", "ee9b8f"], # [ENVELOPE WITH DOWNWARDS ARROW ABOVE] U+EB62 -> U+E6CF
+ ["eebfb4", "ee99a5"], # [CLOSED MAILBOX WITH LOWERED FLAG] U+E51B -> U+E665
+ ["ef83a1", "ee99a5"], # [CLOSED MAILBOX WITH RAISED FLAG] U+EB0A -> U+E665
+ ["ef82a8", :undef], # [NEWSPAPER] U+E58B -> "[æ–°èž]"
+ ["eebe81", :undef], # [SATELLITE ANTENNA] U+E4A8 -> "[アンテナ]"
+ ["ef82af", :undef], # [OUTBOX TRAY] U+E592 -> "[é€ä¿¡BOX]"
+ ["ef82b0", :undef], # [INBOX TRAY] U+E593 -> "[å—ä¿¡BOX]"
+ ["eebfb8", "ee9a85"], # [PACKAGE] U+E51F -> U+E685
+ ["eeb5b5", "ee9b93"], # [E-MAIL SYMBOL] U+EB71 -> U+E6D3
+ ["ef8394", :undef], # [INPUT SYMBOL FOR LATIN CAPITAL LETTERS] U+EAFD -> "[ABCD]"
+ ["ef8395", :undef], # [INPUT SYMBOL FOR LATIN SMALL LETTERS] U+EAFE -> "[abcd]"
+ ["ef8396", :undef], # [INPUT SYMBOL FOR NUMBERS] U+EAFF -> "[1234]"
+ ["ef8397", :undef], # [INPUT SYMBOL FOR SYMBOLS] U+EB00 -> "[記å·]"
+ ["eeb599", :undef], # [INPUT SYMBOL FOR LATIN LETTERS] U+EB55 -> "[ABC]"
+ ["ef839a", "ee9aae"], # [BLACK NIB] U+EB03 -> U+E6AE
+ ["ef83a8", "ee9c96"], # [PERSONAL COMPUTER] U+E5B8 -> U+E716
+ ["eebdb9", "ee9c99"], # [PENCIL] U+E4A1 -> U+E719
+ ["eebdb8", "ee9cb0"], # [PAPERCLIP] U+E4A0 -> U+E730
+ ["eeb181", "ee9a82"], # [BRIEFCASE] U+E5CE -> U+E682
+ ["ef829f", :undef], # [MINIDISC] U+E582 -> "[MD]"
+ ["ef81be", :undef], # [FLOPPY DISK] U+E562 -> "[フロッピー]"
+ ["eebfa5", "ee9a8c"], # [OPTICAL DISC] U+E50C -> U+E68C
+ ["eebfaf", "ee99b5"], # [BLACK SCISSORS] U+E516 -> U+E675
+ ["ef81bc", :undef], # [ROUND PUSHPIN] U+E560 -> "[ç”»ã³ã‚‡ã†]"
+ ["ef81bd", "ee9a89"], # [PAGE WITH CURL] U+E561 -> U+E689
+ ["ef8286", "ee9a89"], # [PAGE FACING UP] U+E569 -> U+E689
+ ["ef8280", :undef], # [CALENDAR] U+E563 -> "[カレンダー]"
+ ["ef82ac", :undef], # [FILE FOLDER] U+E58F -> "[フォルダ]"
+ ["ef82ad", :undef], # [OPEN FILE FOLDER] U+E590 -> "[フォルダ]"
+ ["ef8288", "ee9a83"], # [NOTEBOOK] U+E56B -> U+E683
+ ["eebdb7", "ee9a83"], # [OPEN BOOK] U+E49F -> U+E683
+ ["eebdb5", "ee9a83"], # [NOTEBOOK WITH DECORATIVE COVER] U+E49D -> U+E683
+ ["ef8285", "ee9a83"], # [CLOSED BOOK] U+E568 -> U+E683
+ ["ef8282", "ee9a83"], # [GREEN BOOK] U+E565 -> U+E683
+ ["ef8283", "ee9a83"], # [BLUE BOOK] U+E566 -> U+E683
+ ["ef8284", "ee9a83"], # [ORANGE BOOK] U+E567 -> U+E683
+ ["ef828c", "ee9a83"], # [BOOKS] U+E56F -> U+E683
+ ["eebfb6", :undef], # [NAME BADGE] U+E51D -> "[åæœ­]"
+ ["ef81bb", "ee9c8a"], # [SCROLL] U+E55F -> U+E70A
+ ["ef8281", "ee9a89"], # [CLIPBOARD] U+E564 -> U+E689
+ ["ef8287", :undef], # [TEAR-OFF CALENDAR] U+E56A -> "[カレンダー]"
+ ["ef8291", :undef], # [BAR CHART] U+E574 -> "[グラフ]"
+ ["ef8292", :undef], # [CHART WITH UPWARDS TREND] U+E575 -> "[グラフ]"
+ ["ef8293", :undef], # [CHART WITH DOWNWARDS TREND] U+E576 -> "[グラフ]"
+ ["ef8289", "ee9a83"], # [CARD INDEX] U+E56C -> U+E683
+ ["ef828a", :undef], # [PUSHPIN] U+E56D -> "[ç”»ã³ã‚‡ã†]"
+ ["ef828b", "ee9a83"], # [LEDGER] U+E56E -> U+E683
+ ["ef828d", :undef], # [STRAIGHT RULER] U+E570 -> "[定è¦]"
+ ["eebdba", :undef], # [TRIANGULAR RULER] U+E4A2 -> "[三角定è¦]"
+ ["ef83a2", "ee9a89"], # [BOOKMARK TABS] U+EB0B -> U+E689
+ ["eebe93", "ee9993"], # [BASEBALL] U+E4BA -> U+E653
+ ["ef82b6", "ee9994"], # [FLAG IN HOLE] U+E599 -> U+E654
+ ["eebe90", "ee9995"], # [TENNIS RACQUET AND BALL] U+E4B7 -> U+E655
+ ["eebe8f", "ee9996"], # [SOCCER BALL] U+E4B6 -> U+E656
+ ["eeb280", "ee9997"], # [SKI AND SKI BOOT] U+EAAC -> U+E657
+ ["ef82b7", "ee9998"], # [BASKETBALL AND HOOP] U+E59A -> U+E658
+ ["eebe92", "ee9999"], # [CHEQUERED FLAG] U+E4B9 -> U+E659
+ ["eebe91", "ee9c92"], # [SNOWBOARDER] U+E4B8 -> U+E712
+ ["eebd83", "ee9cb3"], # [RUNNER] U+E46B -> U+E733
+ ["eeb585", "ee9c92"], # [SURFER] U+EB41 -> U+E712
+ ["eeb186", :undef], # [TROPHY] U+E5D3 -> "[トロフィー]"
+ ["eebe94", :undef], # [AMERICAN FOOTBALL] U+E4BB -> "[フットボール]"
+ ["eeb2b2", :undef], # [SWIMMER] U+EADE -> "[æ°´æ³³]"
+ ["eebe8e", "ee999b"], # [TRAIN] U+E4B5 -> U+E65B
+ ["ef83ac", "ee999c"], # [METRO] U+E5BC -> U+E65C
+ ["eebe89", "ee999d"], # [HIGH-SPEED TRAIN WITH BULLET NOSE] U+E4B0 -> U+E65D
+ ["eebe8a", "ee999e"], # [AUTOMOBILE] U+E4B1 -> U+E65E
+ ["eebe88", "ee99a0"], # [ONCOMING BUS] U+E4AF -> U+E660
+ ["eebe80", :undef], # [BUS STOP] U+E4A7 -> "[ãƒã‚¹åœ]"
+ ["eeb195", "ee99a1"], # [SHIP] U+EA82 -> U+E661
+ ["eebe8c", "ee99a2"], # [AIRPLANE] U+E4B3 -> U+E662
+ ["eebe8d", "ee9aa3"], # [SAILBOAT] U+E4B4 -> U+E6A3
+ ["eeb5b1", :undef], # [STATION] U+EB6D -> "[é§…]"
+ ["ef83b8", :undef], # [ROCKET] U+E5C8 -> "[ロケット]"
+ ["eebe8b", :undef], # [DELIVERY TRUCK] U+E4B2 -> "[トラック]"
+ ["eeb2b3", :undef], # [FIRE ENGINE] U+EADF -> "[消防車]"
+ ["eeb2b4", :undef], # [AMBULANCE] U+EAE0 -> "[救急車]"
+ ["eeb2b5", :undef], # [POLICE CAR] U+EAE1 -> "[パトカー]"
+ ["ef828e", "ee99ab"], # [FUEL PUMP] U+E571 -> U+E66B
+ ["eebdbe", "ee99ac"], # [NEGATIVE SQUARED LATIN CAPITAL LETTER P] U+E4A6 -> U+E66C
+ ["eebd82", "ee99ad"], # [HORIZONTAL TRAFFIC LIGHT] U+E46A -> U+E66D
+ ["eeb18a", :undef], # [CONSTRUCTION SIGN] U+E5D7 -> "[工事中]"
+ ["eeb5b7", :undef], # [POLICE CARS REVOLVING LIGHT] U+EB73 -> "[パトカー]"
+ ["eebe95", "ee9bb7"], # [HOT SPRINGS] U+E4BC -> U+E6F7
+ ["eeb183", :undef], # [TENT] U+E5D0 -> "[キャンプ]"
+ ["eebd85", :undef], # [FERRIS WHEEL] U+E46D -> "[観覧車]"
+ ["eeb2b6", :undef], # [ROLLER COASTER] U+EAE2 -> "[ジェットコースター]"
+ ["eeb586", "ee9d91"], # [FISHING POLE AND FISH] U+EB42 -> U+E751
+ ["eebf9c", "ee99b6"], # [MICROPHONE] U+E503 -> U+E676
+ ["eebfb0", "ee99b7"], # [MOVIE CAMERA] U+E517 -> U+E677
+ ["eebfa1", "ee99ba"], # [HEADPHONE] U+E508 -> U+E67A
+ ["ef82b9", "ee99bb"], # [ARTIST PALETTE] U+E59C -> U+E67B
+ ["eeb389", "ee99bc"], # [TOP HAT] U+EAF5 -> U+E67C
+ ["ef82bb", "ee99bd"], # [CIRCUS TENT] U+E59E -> U+E67D
+ ["eebdb6", "ee99be"], # [TICKET] U+E49E -> U+E67E
+ ["eebe97", "ee9aac"], # [CLAPPER BOARD] U+E4BE -> U+E6AC
+ ["ef82ba", :undef], # [PERFORMING ARTS] U+E59D -> "[演劇]"
+ ["eebe9f", "ee9a8b"], # [VIDEO GAME] U+E4C6 -> U+E68B
+ ["eeb184", :undef], # [MAHJONG TILE RED DRAGON] U+E5D1 -> "[麻雀]"
+ ["eebe9e", :undef], # [DIRECT HIT] U+E4C5 -> "[的中]"
+ ["eebd86", :undef], # [SLOT MACHINE] U+E46E -> "[777]"
+ ["eeb2b1", :undef], # [BILLIARDS] U+EADD -> "[ビリヤード]"
+ ["eebea1", :undef], # [GAME DIE] U+E4C8 -> "[サイコロ]"
+ ["eeb587", :undef], # [BOWLING] U+EB43 -> "[ボーリング]"
+ ["eeb5b2", :undef], # [FLOWER PLAYING CARDS] U+EB6E -> "[花札]"
+ ["eeb5b3", :undef], # [PLAYING CARD BLACK JOKER] U+EB6F -> "[ジョーカー]"
+ ["ef83ae", "ee9bb6"], # [MUSICAL NOTE] U+E5BE -> U+E6F6
+ ["eebf9e", "ee9bbf"], # [MULTIPLE MUSICAL NOTES] U+E505 -> U+E6FF
+ ["eebf9f", :undef], # [GUITAR] U+E506 -> "[ギター]"
+ ["eeb584", :undef], # [MUSICAL KEYBOARD] U+EB40 -> "[ピアノ]"
+ ["eeb2b0", :undef], # [TRUMPET] U+EADC -> "[トランペット]"
+ ["eebfa0", :undef], # [VIOLIN] U+E507 -> "[ãƒã‚¤ã‚ªãƒªãƒ³]"
+ ["eeb2a0", "ee9bbf"], # [MUSICAL SCORE] U+EACC -> U+E6FF
+ ["eebfae", "ee9a81"], # [CAMERA] U+E515 -> U+E681
+ ["ef829b", "ee99b7"], # [VIDEO CAMERA] U+E57E -> U+E677
+ ["eebf9b", "ee9a8a"], # [TELEVISION] U+E502 -> U+E68A
+ ["ef83a9", :undef], # [RADIO] U+E5B9 -> "[ラジオ]"
+ ["ef829d", :undef], # [VIDEOCASSETTE] U+E580 -> "[ビデオ]"
+ ["eebf84", "ee9bb9"], # [KISS MARK] U+E4EB -> U+E6F9
+ ["eeb5bc", "ee9c97"], # [LOVE LETTER] U+EB78 -> U+E717
+ ["eebfad", "ee9c9b"], # [RING] U+E514 -> U+E71B
+ ["ef83ba", "ee9bb9"], # [KISS] U+E5CA -> U+E6F9
+ ["eeb1a8", :undef], # [BOUQUET] U+EA95 -> "[花æŸ]"
+ ["eeb2ae", "ee9bad"], # [COUPLE WITH HEART] U+EADA -> U+E6ED
+ ["eeb196", :undef], # [NO ONE UNDER EIGHTEEN SYMBOL] U+EA83 -> "[18ç¦]"
+ ["ef81b4", "ee9cb1"], # [COPYRIGHT SIGN] U+E558 -> U+E731
+ ["ef81b5", "ee9cb6"], # [REGISTERED SIGN] U+E559 -> U+E736
+ ["ef81aa", "ee9cb2"], # [TRADE MARK SIGN] U+E54E -> U+E732
+ ["ef818f", :undef], # [INFORMATION SOURCE] U+E533 -> "[i]"
+ ["eeb689", "ee9ba0"], # [HASH KEY] U+EB84 -> U+E6E0
+ ["eebfbb", "ee9ba2"], # [KEYCAP 1] U+E522 -> U+E6E2
+ ["eebfbc", "ee9ba3"], # [KEYCAP 2] U+E523 -> U+E6E3
+ ["ef8180", "ee9ba4"], # [KEYCAP 3] U+E524 -> U+E6E4
+ ["ef8181", "ee9ba5"], # [KEYCAP 4] U+E525 -> U+E6E5
+ ["ef8182", "ee9ba6"], # [KEYCAP 5] U+E526 -> U+E6E6
+ ["ef8183", "ee9ba7"], # [KEYCAP 6] U+E527 -> U+E6E7
+ ["ef8184", "ee9ba8"], # [KEYCAP 7] U+E528 -> U+E6E8
+ ["ef8185", "ee9ba9"], # [KEYCAP 8] U+E529 -> U+E6E9
+ ["ef8186", "ee9baa"], # [KEYCAP 9] U+E52A -> U+E6EA
+ ["ef8389", "ee9bab"], # [KEYCAP 0] U+E5AC -> U+E6EB
+ ["ef8187", :undef], # [KEYCAP TEN] U+E52B -> "[10]"
+ ["eeb197", :undef], # [ANTENNA WITH BARS] U+EA84 -> "[ãƒãƒª3]"
+ ["eeb1a3", :undef], # [VIBRATION MODE] U+EA90 -> "[マナーモード]"
+ ["eeb1a4", :undef], # [MOBILE PHONE OFF] U+EA91 -> "[ケータイOFF]"
+ ["eebeaf", "ee99b3"], # [HAMBURGER] U+E4D6 -> U+E673
+ ["eebeae", "ee9d89"], # [RICE BALL] U+E4D5 -> U+E749
+ ["eebea9", "ee9d8a"], # [SHORTCAKE] U+E4D0 -> U+E74A
+ ["ef8391", "ee9d8c"], # [STEAMING BOWL] U+E5B4 -> U+E74C
+ ["eeb283", "ee9d8d"], # [BREAD] U+EAAF -> U+E74D
+ ["eebeaa", :undef], # [COOKING] U+E4D1 -> "[フライパン]"
+ ["eeb284", :undef], # [SOFT ICE CREAM] U+EAB0 -> "[ソフトクリーム]"
+ ["eeb285", :undef], # [FRENCH FRIES] U+EAB1 -> "[ãƒãƒ†ãƒˆ]"
+ ["eeb286", :undef], # [DANGO] U+EAB2 -> "[ã ã‚“ã”]"
+ ["eeb287", :undef], # [RICE CRACKER] U+EAB3 -> "[ã›ã‚“ã¹ã„]"
+ ["eeb288", "ee9d8c"], # [COOKED RICE] U+EAB4 -> U+E74C
+ ["eeb289", :undef], # [SPAGHETTI] U+EAB5 -> "[パスタ]"
+ ["eeb28a", :undef], # [CURRY AND RICE] U+EAB6 -> "[カレー]"
+ ["eeb28b", :undef], # [ODEN] U+EAB7 -> "[ãŠã§ã‚“]"
+ ["eeb28c", :undef], # [SUSHI] U+EAB8 -> "[ã™ã—]"
+ ["eeb291", :undef], # [BENTO BOX] U+EABD -> "[å¼å½“]"
+ ["eeb292", :undef], # [POT OF FOOD] U+EABE -> "[é‹]"
+ ["eeb2be", :undef], # [SHAVED ICE] U+EAEA -> "[ã‚«ã‚­æ°·]"
+ ["eebe9d", :undef], # [MEAT ON BONE] U+E4C4 -> "[肉]"
+ ["eebf86", "ee9983"], # [FISH CAKE WITH SWIRL DESIGN] U+E4ED -> U+E643
+ ["eeb3bb", :undef], # [ROASTED SWEET POTATO] U+EB3A -> "[ã‚„ãã„ã‚‚]"
+ ["eeb3bc", :undef], # [SLICE OF PIZZA] U+EB3B -> "[ピザ]"
+ ["eeb580", :undef], # [POULTRY LEG] U+EB3C -> "[ãƒã‚­ãƒ³]"
+ ["eeb58e", :undef], # [ICE CREAM] U+EB4A -> "[アイスクリーム]"
+ ["eeb58f", :undef], # [DOUGHNUT] U+EB4B -> "[ドーナツ]"
+ ["eeb590", :undef], # [COOKIE] U+EB4C -> "[クッキー]"
+ ["eeb591", :undef], # [CHOCOLATE BAR] U+EB4D -> "[ãƒãƒ§ã‚³]"
+ ["eeb592", :undef], # [CANDY] U+EB4E -> "[キャンディ]"
+ ["eeb593", :undef], # [LOLLIPOP] U+EB4F -> "[キャンディ]"
+ ["eeb59a", :undef], # [CUSTARD] U+EB56 -> "[プリン]"
+ ["eeb59d", :undef], # [HONEY POT] U+EB59 -> "[ãƒãƒãƒŸãƒ„]"
+ ["eeb5b4", :undef], # [FRIED SHRIMP] U+EB70 -> "[エビフライ]"
+ ["eebe85", "ee99af"], # [FORK AND KNIFE] U+E4AC -> U+E66F
+ ["ef82b4", "ee99b0"], # [HOT BEVERAGE] U+E597 -> U+E670
+ ["eebe9b", "ee99b1"], # [COCKTAIL GLASS] U+E4C2 -> U+E671
+ ["eebe9c", "ee99b2"], # [BEER MUG] U+E4C3 -> U+E672
+ ["eeb282", "ee9c9e"], # [TEACUP WITHOUT HANDLE] U+EAAE -> U+E71E
+ ["eeb1aa", "ee9d8b"], # [SAKE BOTTLE AND CUP] U+EA97 -> U+E74B
+ ["eebe9a", "ee9d96"], # [WINE GLASS] U+E4C1 -> U+E756
+ ["eeb1ab", "ee99b2"], # [CLINKING BEER MUGS] U+EA98 -> U+E672
+ ["eeb582", "ee99b1"], # [TROPICAL DRINK] U+EB3E -> U+E671
+ ["ef81b1", "ee99b8"], # [NORTH EAST ARROW] U+E555 -> U+E678
+ ["ef81a9", "ee9a96"], # [SOUTH EAST ARROW] U+E54D -> U+E696
+ ["ef81a8", "ee9a97"], # [NORTH WEST ARROW] U+E54C -> U+E697
+ ["ef81b2", "ee9aa5"], # [SOUTH WEST ARROW] U+E556 -> U+E6A5
+ ["eeb3ae", "ee9bb5"], # [ARROW POINTING RIGHTWARDS THEN CURVING UPWARDS] U+EB2D -> U+E6F5
+ ["eeb3af", "ee9c80"], # [ARROW POINTING RIGHTWARDS THEN CURVING DOWNWARDS] U+EB2E -> U+E700
+ ["eeb5be", "ee9cbc"], # [LEFT RIGHT ARROW] U+EB7A -> U+E73C
+ ["eeb680", "ee9cbd"], # [UP DOWN ARROW] U+EB7B -> U+E73D
+ ["ef819b", :undef], # [UPWARDS BLACK ARROW] U+E53F -> "[↑]"
+ ["ef819c", :undef], # [DOWNWARDS BLACK ARROW] U+E540 -> "[↓]"
+ ["ef81ae", :undef], # [BLACK RIGHTWARDS ARROW] U+E552 -> "[→]"
+ ["ef81af", :undef], # [LEFTWARDS BLACK ARROW] U+E553 -> "[â†]"
+ ["ef818a", :undef], # [BLACK RIGHT-POINTING TRIANGLE] U+E52E -> "[&gt;]"
+ ["ef8189", :undef], # [BLACK LEFT-POINTING TRIANGLE] U+E52D -> "[&lt;]"
+ ["ef818c", :undef], # [BLACK RIGHT-POINTING DOUBLE TRIANGLE] U+E530 -> "[&gt;&gt;]"
+ ["ef818b", :undef], # [BLACK LEFT-POINTING DOUBLE TRIANGLE] U+E52F -> "[&lt;&lt;]"
+ ["ef81a1", :undef], # [BLACK UP-POINTING DOUBLE TRIANGLE] U+E545 -> "â–²"
+ ["ef81a0", :undef], # [BLACK DOWN-POINTING DOUBLE TRIANGLE] U+E544 -> "â–¼"
+ ["ef81b6", :undef], # [UP-POINTING RED TRIANGLE] U+E55A -> "â–²"
+ ["ef81b7", :undef], # [DOWN-POINTING RED TRIANGLE] U+E55B -> "â–¼"
+ ["ef819f", :undef], # [UP-POINTING SMALL RED TRIANGLE] U+E543 -> "â–²"
+ ["ef819e", :undef], # [DOWN-POINTING SMALL RED TRIANGLE] U+E542 -> "â–¼"
+ ["eeb281", "ee9aa0"], # [HEAVY LARGE CIRCLE] U+EAAD -> U+E6A0
+ ["ef81ac", :undef], # [CROSS MARK] U+E550 -> "[×]"
+ ["ef81ad", :undef], # [NEGATIVE SQUARED CROSS MARK] U+E551 -> "[×]"
+ ["eebd9a", "ee9c82"], # [HEAVY EXCLAMATION MARK ORNAMENT] U+E482 -> U+E702
+ ["eeb3b0", "ee9c83"], # [EXCLAMATION QUESTION MARK] U+EB2F -> U+E703
+ ["eeb3b1", "ee9c84"], # [DOUBLE EXCLAMATION MARK] U+EB30 -> U+E704
+ ["eebd9b", :undef], # [BLACK QUESTION MARK ORNAMENT] U+E483 -> "[?]"
+ ["eeb3b2", "ee9c8a"], # [CURLY LOOP] U+EB31 -> U+E70A
+ ["ef82b2", "ee9bac"], # [HEAVY BLACK HEART] U+E595 -> U+E6EC
+ ["eeb5b9", "ee9bad"], # [BEATING HEART] U+EB75 -> U+E6ED
+ ["eebd8f", "ee9bae"], # [BROKEN HEART] U+E477 -> U+E6EE
+ ["eebd90", "ee9baf"], # [TWO HEARTS] U+E478 -> U+E6EF
+ ["eeb1b9", "ee9bac"], # [SPARKLING HEART] U+EAA6 -> U+E6EC
+ ["eebf83", "ee9bac"], # [HEART WITH ARROW] U+E4EA -> U+E6EC
+ ["eeb1ba", "ee9bac"], # [BLUE HEART] U+EAA7 -> U+E6EC
+ ["eeb1bb", "ee9bac"], # [GREEN HEART] U+EAA8 -> U+E6EC
+ ["eeb1bc", "ee9bac"], # [YELLOW HEART] U+EAA9 -> U+E6EC
+ ["eeb1bd", "ee9bac"], # [PURPLE HEART] U+EAAA -> U+E6EC
+ ["eeb598", "ee9bac"], # [HEART WITH RIBBON] U+EB54 -> U+E6EC
+ ["ef838c", "ee9bad"], # [REVOLVING HEARTS] U+E5AF -> U+E6ED
+ ["eeb1b8", "ee9a8d"], # [BLACK HEART SUIT] U+EAA5 -> U+E68D
+ ["ef82be", "ee9a8e"], # [BLACK SPADE SUIT] U+E5A1 -> U+E68E
+ ["ef82bf", "ee9a8f"], # [BLACK DIAMOND SUIT] U+E5A2 -> U+E68F
+ ["ef8380", "ee9a90"], # [BLACK CLUB SUIT] U+E5A3 -> U+E690
+ ["eebd95", "ee99bf"], # [SMOKING SYMBOL] U+E47D -> U+E67F
+ ["eebd96", "ee9a80"], # [NO SMOKING SYMBOL] U+E47E -> U+E680
+ ["eebd97", "ee9a9b"], # [WHEELCHAIR SYMBOL] U+E47F -> U+E69B
+ ["eeb3ad", "ee9b9e"], # [TRIANGULAR FLAG ON POST] U+EB2C -> U+E6DE
+ ["eebd99", "ee9cb7"], # [WARNING SIGN] U+E481 -> U+E737
+ ["eebd9c", "ee9caf"], # [NO ENTRY] U+E484 -> U+E72F
+ ["eeb5bd", "ee9cb5"], # [BLACK UNIVERSAL RECYCLING SYMBOL] U+EB79 -> U+E735
+ ["eebe87", "ee9c9d"], # [BICYCLE] U+E4AE -> U+E71D
+ ["eeb5b6", "ee9cb3"], # [PEDESTRIAN] U+EB72 -> U+E733
+ ["eeb18b", "ee9bb7"], # [BATH] U+E5D8 -> U+E6F7
+ ["eebdbd", "ee99ae"], # [RESTROOM] U+E4A5 -> U+E66E
+ ["ef819d", "ee9cb8"], # [NO ENTRY SIGN] U+E541 -> U+E738
+ ["ef81b3", :undef], # [HEAVY CHECK MARK] U+E557 -> "[ãƒã‚§ãƒƒã‚¯ãƒžãƒ¼ã‚¯]"
+ ["ef8388", "ee9b9b"], # [SQUARED CL] U+E5AB -> U+E6DB
+ ["eeb198", :undef], # [SQUARED COOL] U+EA85 -> "[COOL]"
+ ["ef8295", "ee9b97"], # [SQUARED FREE] U+E578 -> U+E6D7
+ ["eeb19b", "ee9b98"], # [SQUARED ID] U+EA88 -> U+E6D8
+ ["ef83a5", "ee9b9d"], # [SQUARED NEW] U+E5B5 -> U+E6DD
+ ["ef838a", "ee9c8b"], # [SQUARED OK] U+E5AD -> U+E70B
+ ["eebf81", :undef], # [SQUARED SOS] U+E4E8 -> "[SOS]"
+ ["eebfa8", :undef], # [SQUARED UP WITH EXCLAMATION MARK] U+E50F -> "[UP!]"
+ ["eeb185", :undef], # [SQUARED VS] U+E5D2 -> "[VS]"
+ ["eeb19a", :undef], # [SQUARED KATAKANA SA] U+EA87 -> "[サービス]"
+ ["eeb19d", "ee9cb9"], # [SQUARED CJK UNIFIED IDEOGRAPH-7A7A] U+EA8A -> U+E739
+ ["eeb19c", "ee9cbb"], # [SQUARED CJK UNIFIED IDEOGRAPH-6E80] U+EA89 -> U+E73B
+ ["eeb199", :undef], # [SQUARED CJK UNIFIED IDEOGRAPH-5272] U+EA86 -> "[割]"
+ ["eeb19e", :undef], # [SQUARED CJK UNIFIED IDEOGRAPH-6307] U+EA8B -> "[指]"
+ ["eeb19f", :undef], # [SQUARED CJK UNIFIED IDEOGRAPH-55B6] U+EA8C -> "[å–¶]"
+ ["eebf8a", "ee9cb4"], # [CIRCLED IDEOGRAPH SECRET] U+E4F1 -> U+E734
+ ["eeb1ac", :undef], # [CIRCLED IDEOGRAPH CONGRATULATION] U+EA99 -> "[ç¥]"
+ ["eebf90", :undef], # [CIRCLED IDEOGRAPH ADVANTAGE] U+E4F7 -> "[å¾—]"
+ ["ef8398", :undef], # [CIRCLED IDEOGRAPH ACCEPT] U+EB01 -> "[å¯]"
+ ["ef8198", :undef], # [HEAVY PLUS SIGN] U+E53C -> "[+]"
+ ["ef8199", :undef], # [HEAVY MINUS SIGN] U+E53D -> "[ï¼]"
+ ["ef81ab", :undef], # [HEAVY MULTIPLICATION X] U+E54F -> "[×]"
+ ["ef81b0", :undef], # [HEAVY DIVISION SIGN] U+E554 -> "[÷]"
+ ["eebd8e", "ee9bbb"], # [ELECTRIC LIGHT BULB] U+E476 -> U+E6FB
+ ["eebebe", "ee9bbc"], # [ANGER SYMBOL] U+E4E5 -> U+E6FC
+ ["eebd92", "ee9bbe"], # [BOMB] U+E47A -> U+E6FE
+ ["eebd8d", "ee9c81"], # [SLEEPING SYMBOL] U+E475 -> U+E701
+ ["ef838d", "ee9c85"], # [COLLISION SYMBOL] U+E5B0 -> U+E705
+ ["ef838e", "ee9c86"], # [SPLASHING SWEAT SYMBOL] U+E5B1 -> U+E706
+ ["eebebf", "ee9c87"], # [DROP OF WATER] U+E4E6 -> U+E707
+ ["eebf8d", "ee9c88"], # [DASH SYMBOL] U+E4F4 -> U+E708
+ ["eebf8e", :undef], # [PILE OF POO] U+E4F5 -> "[ウンãƒ]"
+ ["eebf82", :undef], # [FLEXED BICEPS] U+E4E9 -> "[力ã“ã¶]"
+ ["eeb5a0", :undef], # [DIZZY SYMBOL] U+EB5C -> "[クラクラ]"
+ ["eebf96", :undef], # [SPEECH BALLOON] U+E4FD -> "[フキダシ]"
+ ["eeb1be", "ee9bba"], # [SPARKLES] U+EAAB -> U+E6FA
+ ["eebd91", "ee9bb8"], # [EIGHT POINTED BLACK STAR] U+E479 -> U+E6F8
+ ["ef819a", "ee9bb8"], # [EIGHT SPOKED ASTERISK] U+E53E -> U+E6F8
+ ["ef8196", "ee9a9c"], # [MEDIUM WHITE CIRCLE] U+E53A -> U+E69C
+ ["ef8197", "ee9a9c"], # [MEDIUM BLACK CIRCLE] U+E53B -> U+E69C
+ ["ef81a6", "ee9a9c"], # [LARGE RED CIRCLE] U+E54A -> U+E69C
+ ["ef81a7", "ee9a9c"], # [LARGE BLUE CIRCLE] U+E54B -> U+E69C
+ ["eebda3", :undef], # [WHITE MEDIUM STAR] U+E48B -> "[☆]"
+ ["ef81a4", :undef], # [WHITE LARGE SQUARE] U+E548 -> "â– "
+ ["ef81a5", :undef], # [BLACK LARGE SQUARE] U+E549 -> "â– "
+ ["ef818d", :undef], # [WHITE SMALL SQUARE] U+E531 -> "â– "
+ ["ef818e", :undef], # [BLACK SMALL SQUARE] U+E532 -> "â– "
+ ["ef8190", :undef], # [WHITE MEDIUM SMALL SQUARE] U+E534 -> "â– "
+ ["ef8191", :undef], # [BLACK MEDIUM SMALL SQUARE] U+E535 -> "â– "
+ ["ef8194", :undef], # [WHITE MEDIUM SQUARE] U+E538 -> "â– "
+ ["ef8195", :undef], # [BLACK MEDIUM SQUARE] U+E539 -> "â– "
+ ["ef81a2", :undef], # [LARGE ORANGE DIAMOND] U+E546 -> "â—†"
+ ["ef81a3", :undef], # [LARGE BLUE DIAMOND] U+E547 -> "â—†"
+ ["ef8192", :undef], # [SMALL ORANGE DIAMOND] U+E536 -> "â—†"
+ ["ef8193", :undef], # [SMALL BLUE DIAMOND] U+E537 -> "â—†"
+ ["eebd84", "ee9bba"], # [SPARKLE] U+E46C -> U+E6FA
+ ["eebf89", :undef], # [WHITE FLOWER] U+E4F0 -> "[花丸]"
+ ["eebf8b", :undef], # [HUNDRED POINTS SYMBOL] U+E4F2 -> "[100点]"
+ ["ef81b9", "ee9b9a"], # [LEFTWARDS ARROW WITH HOOK] U+E55D -> U+E6DA
+ ["ef81b8", :undef], # [RIGHTWARDS ARROW WITH HOOK] U+E55C -> "└→"
+ ["ef83a4", "ee9cb5"], # [CLOCKWISE DOWNWARDS AND UPWARDS OPEN CIRCLE ARROWS] U+EB0D -> U+E735
+ ["eebfaa", :undef], # [SPEAKER WITH THREE SOUND WAVES] U+E511 -> "[スピーカ]"
+ ["ef82a1", :undef], # [BATTERY] U+E584 -> "[電池]"
+ ["ef82a6", :undef], # [ELECTRIC PLUG] U+E589 -> "[コンセント]"
+ ["eebfb1", "ee9b9c"], # [LEFT-POINTING MAGNIFYING GLASS] U+E518 -> U+E6DC
+ ["ef839c", "ee9b9c"], # [RIGHT-POINTING MAGNIFYING GLASS] U+EB05 -> U+E6DC
+ ["eebfb5", "ee9b99"], # [LOCK] U+E51C -> U+E6D9
+ ["ef83a3", "ee9b99"], # [LOCK WITH INK PEN] U+EB0C -> U+E6D9
+ ["ef8393", "ee9b99"], # [CLOSED LOCK WITH KEY] U+EAFC -> U+E6D9
+ ["eebfb2", "ee9b99"], # [KEY] U+E519 -> U+E6D9
+ ["eebfab", "ee9c93"], # [BELL] U+E512 -> U+E713
+ ["ef8399", :undef], # [BALLOT BOX WITH CHECK] U+EB02 -> "[ãƒã‚§ãƒƒã‚¯ãƒžãƒ¼ã‚¯]"
+ ["ef839b", :undef], # [RADIO BUTTON] U+EB04 -> "[ラジオボタン]"
+ ["ef839e", :undef], # [BOOKMARK] U+EB07 -> "[ブックマーク]"
+ ["ef82a7", :undef], # [LINK SYMBOL] U+E58A -> "[リンク]"
+ ["ef839d", :undef], # [BACK WITH LEFTWARDS ARROW ABOVE] U+EB06 -> "[â†BACK]"
+ ["ef82a9", :undef], # [EM SPACE] U+E58C -> U+3013 (GETA)
+ ["ef82aa", :undef], # [EN SPACE] U+E58D -> U+3013 (GETA)
+ ["ef82ab", :undef], # [FOUR-PER-EM SPACE] U+E58E -> U+3013 (GETA)
+ ["ef81ba", :undef], # [WHITE HEAVY CHECK MARK] U+E55E -> "[ãƒã‚§ãƒƒã‚¯ãƒžãƒ¼ã‚¯]"
+ ["eeb688", "ee9a93"], # [RAISED FIST] U+EB83 -> U+E693
+ ["ef8384", "ee9a95"], # [RAISED HAND] U+E5A7 -> U+E695
+ ["ef8383", "ee9a94"], # [VICTORY HAND] U+E5A6 -> U+E694
+ ["eebf8c", "ee9bbd"], # [FISTED HAND SIGN] U+E4F3 -> U+E6FD
+ ["eebf92", "ee9ca7"], # [THUMBS UP SIGN] U+E4F9 -> U+E727
+ ["eebf8f", :undef], # [WHITE UP POINTING INDEX] U+E4F6 -> "[äººå·®ã—æŒ‡]"
+ ["eeb1a0", :undef], # [WHITE UP POINTING BACKHAND INDEX] U+EA8D -> "[↑]"
+ ["eeb1a1", :undef], # [WHITE DOWN POINTING BACKHAND INDEX] U+EA8E -> "[↓]"
+ ["eebf98", :undef], # [WHITE LEFT POINTING BACKHAND INDEX] U+E4FF -> "[â†]"
+ ["eebf99", :undef], # [WHITE RIGHT POINTING BACKHAND INDEX] U+E500 -> "[→]"
+ ["eeb2aa", "ee9a95"], # [WAVING HAND SIGN] U+EAD6 -> U+E695
+ ["eeb2a7", :undef], # [CLAPPING HANDS SIGN] U+EAD3 -> "[æ‹æ‰‹]"
+ ["eeb2a8", "ee9c8b"], # [OK HAND SIGN] U+EAD4 -> U+E70B
+ ["eeb2a9", "ee9c80"], # [THUMBS DOWN SIGN] U+EAD5 -> U+E700
+ ["ef8294", :undef], # [EMOJI COMPATIBILITY SYMBOL-37] U+E577 -> "[EZ]"
+ ["ef838f", :undef], # [EMOJI COMPATIBILITY SYMBOL-38] U+E5B2 -> "[ezplus]"
+ ["eeb1b0", :undef], # [EMOJI COMPATIBILITY SYMBOL-39] U+EA9D -> "[EZナビ]"
+ ["eeb5b8", :undef], # [EMOJI COMPATIBILITY SYMBOL-40] U+EB74 -> "[EZムービー]"
+ ["eeb686", :undef], # [EMOJI COMPATIBILITY SYMBOL-41] U+EB81 -> "[Cメール]"
+ ["eeb68e", :undef], # [EMOJI COMPATIBILITY SYMBOL-42] U+EB89 -> "[Java]"
+ ["eeb68f", :undef], # [EMOJI COMPATIBILITY SYMBOL-43] U+EB8A -> "[BREW]"
+ ["eeb690", :undef], # [EMOJI COMPATIBILITY SYMBOL-44] U+EB8B -> "[EZç€ã†ãŸ]"
+ ["eeb691", :undef], # [EMOJI COMPATIBILITY SYMBOL-45] U+EB8C -> "[EZナビ]"
+ ["eeb692", :undef], # [EMOJI COMPATIBILITY SYMBOL-46] U+EB8D -> "[WIN]"
+ ["eeb693", :undef], # [EMOJI COMPATIBILITY SYMBOL-47] U+EB8E -> "[プレミアム]"
+ ["ef8392", :undef], # [EMOJI COMPATIBILITY SYMBOL-48] U+EAFB -> "[オープンウェブ]"
+ ["ef82a3", :undef], # [EMOJI COMPATIBILITY SYMBOL-49] U+E586 -> "[PDC]"
+ ["ef8188", "ee9ba1"], # [EMOJI COMPATIBILITY SYMBOL-66] U+E52C -> U+E6E1
+]
+
+EMOJI_EXCHANGE_TBL['UTF8-KDDI']['UTF8-SoftBank'] = [
+ # for documented codepoints
+ ["ee9288", "ee818a"], # [BLACK SUN WITH RAYS] U+E488 -> U+E04A
+ ["ee928d", "ee8189"], # [CLOUD] U+E48D -> U+E049
+ ["ee928c", "ee818b"], # [UMBRELLA WITH RAIN DROPS] U+E48C -> U+E04B
+ ["ee9285", "ee8188"], # [SNOWMAN WITHOUT SNOW] U+E485 -> U+E048
+ ["ee9287", "ee84bd"], # [HIGH VOLTAGE SIGN] U+E487 -> U+E13D
+ ["ee91a9", "ee9183"], # [CYCLONE] U+E469 -> U+E443
+ ["ee9698", :undef], # [FOGGY] U+E598 -> "[霧]"
+ ["eeaba8", "ee90bc"], # [CLOSED UMBRELLA] U+EAE8 -> U+E43C
+ ["eeabb1", "ee918b"], # [NIGHT WITH STARS] U+EAF1 -> U+E44B
+ ["eeabb4", "ee9189"], # [SUNRISE] U+EAF4 -> U+E449
+ ["ee979a", "ee8586"], # [CITYSCAPE AT DUSK] U+E5DA -> U+E146
+ ["eeabb2", "ee918c"], # [RAINBOW] U+EAF2 -> U+E44C
+ ["ee928a", :undef], # [SNOWFLAKE] U+E48A -> "[é›ªçµæ™¶]"
+ ["ee928e", "ee818aee8189"], # [SUN BEHIND CLOUD] U+E48E -> U+E04A U+E049
+ ["ee92bf", "ee918b"], # [BRIDGE AT NIGHT] U+E4BF -> U+E44B
+ ["eeadbc", "ee90be"], # [WATER WAVE] U+EB7C -> U+E43E
+ ["eead93", :undef], # [VOLCANO] U+EB53 -> "[ç«å±±]"
+ ["eead9f", "ee918b"], # [MILKY WAY] U+EB5F -> U+E44B
+ ["ee96b3", :undef], # [EARTH GLOBE ASIA-AUSTRALIA] U+E5B3 -> "[地çƒ]"
+ ["ee96a8", :undef], # [NEW MOON SYMBOL] U+E5A8 -> "â—"
+ ["ee96a9", "ee818c"], # [WAXING GIBBOUS MOON SYMBOL] U+E5A9 -> U+E04C
+ ["ee96aa", "ee818c"], # [FIRST QUARTER MOON SYMBOL] U+E5AA -> U+E04C
+ ["ee9286", "ee818c"], # [CRESCENT MOON] U+E486 -> U+E04C
+ ["ee9289", "ee818c"], # [FIRST QUARTER MOON WITH FACE] U+E489 -> U+E04C
+ ["ee91a8", :undef], # [SHOOTING STAR] U+E468 -> "☆彡"
+ ["ee95ba", :undef], # [WATCH] U+E57A -> "[腕時計]"
+ ["ee95bb", :undef], # [HOURGLASS] U+E57B -> "[砂時計]"
+ ["ee9694", "ee80ad"], # [ALARM CLOCK] U+E594 -> U+E02D
+ ["ee91bc", :undef], # [HOURGLASS WITH FLOWING SAND] U+E47C -> "[砂時計]"
+ ["ee928f", "ee88bf"], # [ARIES] U+E48F -> U+E23F
+ ["ee9290", "ee8980"], # [TAURUS] U+E490 -> U+E240
+ ["ee9291", "ee8981"], # [GEMINI] U+E491 -> U+E241
+ ["ee9292", "ee8982"], # [CANCER] U+E492 -> U+E242
+ ["ee9293", "ee8983"], # [LEO] U+E493 -> U+E243
+ ["ee9294", "ee8984"], # [VIRGO] U+E494 -> U+E244
+ ["ee9295", "ee8985"], # [LIBRA] U+E495 -> U+E245
+ ["ee9296", "ee8986"], # [SCORPIUS] U+E496 -> U+E246
+ ["ee9297", "ee8987"], # [SAGITTARIUS] U+E497 -> U+E247
+ ["ee9298", "ee8988"], # [CAPRICORN] U+E498 -> U+E248
+ ["ee9299", "ee8989"], # [AQUARIUS] U+E499 -> U+E249
+ ["ee929a", "ee898a"], # [PISCES] U+E49A -> U+E24A
+ ["ee929b", "ee898b"], # [OPHIUCHUS] U+E49B -> U+E24B
+ ["ee9493", "ee8490"], # [FOUR LEAF CLOVER] U+E513 -> U+E110
+ ["ee93a4", "ee8c84"], # [TULIP] U+E4E4 -> U+E304
+ ["eeadbd", "ee8490"], # [SEEDLING] U+EB7D -> U+E110
+ ["ee938e", "ee8498"], # [MAPLE LEAF] U+E4CE -> U+E118
+ ["ee938a", "ee80b0"], # [CHERRY BLOSSOM] U+E4CA -> U+E030
+ ["ee96ba", "ee80b2"], # [ROSE] U+E5BA -> U+E032
+ ["ee978d", "ee8499"], # [FALLEN LEAF] U+E5CD -> U+E119
+ ["eeaa94", "ee8c83"], # [HIBISCUS] U+EA94 -> U+E303
+ ["ee93a3", "ee8c85"], # [SUNFLOWER] U+E4E3 -> U+E305
+ ["ee93a2", "ee8c87"], # [PALM TREE] U+E4E2 -> U+E307
+ ["eeaa96", "ee8c88"], # [CACTUS] U+EA96 -> U+E308
+ ["eeacb6", :undef], # [EAR OF MAIZE] U+EB36 -> "[ã¨ã†ã‚‚ã‚ã“ã—]"
+ ["eeacb7", :undef], # [MUSHROOM] U+EB37 -> "[キノコ]"
+ ["eeacb8", :undef], # [CHESTNUT] U+EB38 -> "[æ —]"
+ ["eead89", "ee8c85"], # [BLOSSOM] U+EB49 -> U+E305
+ ["eeae82", "ee8490"], # [HERB] U+EB82 -> U+E110
+ ["ee9392", :undef], # [CHERRIES] U+E4D2 -> "[ã•ãらんã¼]"
+ ["eeacb5", :undef], # [BANANA] U+EB35 -> "[ãƒãƒŠãƒŠ]"
+ ["eeaab9", "ee8d85"], # [RED APPLE] U+EAB9 -> U+E345
+ ["eeaaba", "ee8d86"], # [TANGERINE] U+EABA -> U+E346
+ ["ee9394", "ee8d87"], # [STRAWBERRY] U+E4D4 -> U+E347
+ ["ee938d", "ee8d88"], # [WATERMELON] U+E4CD -> U+E348
+ ["eeaabb", "ee8d89"], # [TOMATO] U+EABB -> U+E349
+ ["eeaabc", "ee8d8a"], # [AUBERGINE] U+EABC -> U+E34A
+ ["eeacb2", :undef], # [MELON] U+EB32 -> "[メロン]"
+ ["eeacb3", :undef], # [PINEAPPLE] U+EB33 -> "[パイナップル]"
+ ["eeacb4", :undef], # [GRAPES] U+EB34 -> "[ブドウ]"
+ ["eeacb9", :undef], # [PEACH] U+EB39 -> "[モモ]"
+ ["eead9a", "ee8d85"], # [GREEN APPLE] U+EB5A -> U+E345
+ ["ee96a4", "ee9099"], # [EYES] U+E5A4 -> U+E419
+ ["ee96a5", "ee909b"], # [EAR] U+E5A5 -> U+E41B
+ ["eeab90", "ee909a"], # [NOSE] U+EAD0 -> U+E41A
+ ["eeab91", "ee909c"], # [MOUTH] U+EAD1 -> U+E41C
+ ["eead87", "ee9089"], # [TONGUE] U+EB47 -> U+E409
+ ["ee9489", "ee8c9c"], # [LIPSTICK] U+E509 -> U+E31C
+ ["eeaaa0", "ee8c9d"], # [NAIL POLISH] U+EAA0 -> U+E31D
+ ["ee948b", "ee8c9e"], # [FACE MASSAGE] U+E50B -> U+E31E
+ ["eeaaa1", "ee8c9f"], # [HAIRCUT] U+EAA1 -> U+E31F
+ ["eeaaa2", "ee8ca0"], # [BARBER POLE] U+EAA2 -> U+E320
+ ["ee93bc", "ee8081"], # [BOY] U+E4FC -> U+E001
+ ["ee93ba", "ee8082"], # [GIRL] U+E4FA -> U+E002
+ ["ee9481", :undef], # [FAMILY] U+E501 -> "[å®¶æ—]"
+ ["ee979d", "ee8592"], # [POLICE OFFICER] U+E5DD -> U+E152
+ ["eeab9b", "ee90a9"], # [WOMAN WITH BUNNY EARS] U+EADB -> U+E429
+ ["eeaba9", :undef], # [BRIDE WITH VEIL] U+EAE9 -> "[花å«]"
+ ["eeac93", "ee9495"], # [WESTERN PERSON] U+EB13 -> U+E515
+ ["eeac94", "ee9496"], # [MAN WITH GUA PI MAO] U+EB14 -> U+E516
+ ["eeac95", "ee9497"], # [MAN WITH TURBAN] U+EB15 -> U+E517
+ ["eeac96", "ee9498"], # [OLDER MAN] U+EB16 -> U+E518
+ ["eeac97", "ee9499"], # [OLDER WOMAN] U+EB17 -> U+E519
+ ["eeac98", "ee949a"], # [BABY] U+EB18 -> U+E51A
+ ["eeac99", "ee949b"], # [CONSTRUCTION WORKER] U+EB19 -> U+E51B
+ ["eeac9a", "ee949c"], # [PRINCESS] U+EB1A -> U+E51C
+ ["eead84", :undef], # [JAPANESE OGRE] U+EB44 -> "[ãªã¾ã¯ã’]"
+ ["eead85", :undef], # [JAPANESE GOBLIN] U+EB45 -> "[天狗]"
+ ["ee938b", "ee849b"], # [GHOST] U+E4CB -> U+E11B
+ ["ee96bf", "ee818e"], # [BABY ANGEL] U+E5BF -> U+E04E
+ ["ee948e", "ee848c"], # [EXTRATERRESTRIAL ALIEN] U+E50E -> U+E10C
+ ["ee93ac", "ee84ab"], # [ALIEN MONSTER] U+E4EC -> U+E12B
+ ["ee93af", "ee849a"], # [IMP] U+E4EF -> U+E11A
+ ["ee93b8", "ee849c"], # [SKULL] U+E4F8 -> U+E11C
+ ["eeac9c", "ee949f"], # [DANCER] U+EB1C -> U+E51F
+ ["eeadbe", :undef], # [SNAIL] U+EB7E -> "[カタツムリ]"
+ ["eeaca2", "ee94ad"], # [SNAKE] U+EB22 -> U+E52D
+ ["eeaca3", "ee94ae"], # [CHICKEN] U+EB23 -> U+E52E
+ ["eeaca4", "ee94af"], # [BOAR] U+EB24 -> U+E52F
+ ["eeaca5", "ee94b0"], # [BACTRIAN CAMEL] U+EB25 -> U+E530
+ ["eeac9f", "ee94a6"], # [ELEPHANT] U+EB1F -> U+E526
+ ["eeaca0", "ee94a7"], # [KOALA] U+EB20 -> U+E527
+ ["ee9787", "ee848a"], # [OCTOPUS] U+E5C7 -> U+E10A
+ ["eeabac", "ee9181"], # [SPIRAL SHELL] U+EAEC -> U+E441
+ ["eeac9e", "ee94a5"], # [BUG] U+EB1E -> U+E525
+ ["ee939d", :undef], # [ANT] U+E4DD -> "[アリ]"
+ ["eead97", :undef], # [HONEYBEE] U+EB57 -> "[ミツãƒãƒ]"
+ ["eead98", :undef], # [LADY BEETLE] U+EB58 -> "[ã¦ã‚“ã¨ã†è™«]"
+ ["eeac9d", "ee94a2"], # [TROPICAL FISH] U+EB1D -> U+E522
+ ["ee9393", "ee8099"], # [BLOWFISH] U+E4D3 -> U+E019
+ ["ee9794", :undef], # [TURTLE] U+E5D4 -> "[カメ]"
+ ["ee93a0", "ee94a3"], # [BABY CHICK] U+E4E0 -> U+E523
+ ["eeadb6", "ee94a3"], # [FRONT-FACING BABY CHICK] U+EB76 -> U+E523
+ ["ee979b", "ee94a3"], # [HATCHING CHICK] U+E5DB -> U+E523
+ ["ee939c", "ee8195"], # [PENGUIN] U+E4DC -> U+E055
+ ["ee939f", "ee8192"], # [POODLE] U+E4DF -> U+E052
+ ["eeac9b", "ee94a0"], # [DOLPHIN] U+EB1B -> U+E520
+ ["ee9782", "ee8193"], # [MOUSE FACE] U+E5C2 -> U+E053
+ ["ee9780", "ee8190"], # [TIGER FACE] U+E5C0 -> U+E050
+ ["ee939b", "ee818f"], # [CAT FACE] U+E4DB -> U+E04F
+ ["ee91b0", "ee8194"], # [SPOUTING WHALE] U+E470 -> U+E054
+ ["ee9398", "ee809a"], # [HORSE FACE] U+E4D8 -> U+E01A
+ ["ee9399", "ee8489"], # [MONKEY FACE] U+E4D9 -> U+E109
+ ["ee93a1", "ee8192"], # [DOG FACE] U+E4E1 -> U+E052
+ ["ee939e", "ee848b"], # [PIG FACE] U+E4DE -> U+E10B
+ ["ee9781", "ee8191"], # [BEAR FACE] U+E5C1 -> U+E051
+ ["eeaca1", "ee94ab"], # [COW FACE] U+EB21 -> U+E52B
+ ["ee9397", "ee94ac"], # [RABBIT FACE] U+E4D7 -> U+E52C
+ ["ee939a", "ee94b1"], # [FROG FACE] U+E4DA -> U+E531
+ ["ee93ae", "ee94b6"], # [PAW PRINTS] U+E4EE -> U+E536
+ ["eeacbf", :undef], # [DRAGON FACE] U+EB3F -> "[è¾°]"
+ ["eead86", :undef], # [PANDA FACE] U+EB46 -> "[パンダ]"
+ ["eead88", "ee848b"], # [PIG NOSE] U+EB48 -> U+E10B
+ ["ee91b2", "ee8199"], # [ANGRY FACE] U+E472 -> U+E059
+ ["eeada7", "ee9083"], # [ANGUISHED FACE] U+EB67 -> U+E403
+ ["eeab8a", "ee9090"], # [ASTONISHED FACE] U+EACA -> U+E410
+ ["ee96ae", "ee9086"], # [DIZZY FACE] U+E5AE -> U+E406
+ ["eeab8b", "ee908f"], # [EXASPERATED FACE] U+EACB -> U+E40F
+ ["eeab89", "ee908e"], # [EXPRESSIONLESS FACE] U+EAC9 -> U+E40E
+ ["ee9784", "ee8486"], # [FACE WITH HEART-SHAPED EYES] U+E5C4 -> U+E106
+ ["eeab81", "ee9084"], # [FACE WITH LOOK OF TRIUMPH] U+EAC1 -> U+E404
+ ["ee93a7", "ee8485"], # [WINKING FACE WITH STUCK-OUT TONGUE] U+E4E7 -> U+E105
+ ["eeab8f", "ee9098"], # [FACE THROWING A KISS] U+EACF -> U+E418
+ ["eeab8e", "ee9097"], # [FACE KISSING] U+EACE -> U+E417
+ ["eeab87", "ee908c"], # [FACE WITH MASK] U+EAC7 -> U+E40C
+ ["eeab88", "ee908d"], # [FLUSHED FACE] U+EAC8 -> U+E40D
+ ["ee91b1", "ee8197"], # [HAPPY FACE WITH OPEN MOUTH] U+E471 -> U+E057
+ ["eeae80", "ee9084"], # [HAPPY FACE WITH GRIN] U+EB80 -> U+E404
+ ["eeada4", "ee9092"], # [HAPPY AND CRYING FACE] U+EB64 -> U+E412
+ ["eeab8d", "ee8196"], # [HAPPY FACE WITH WIDE MOUTH AND RAISED EYEBROWS] U+EACD -> U+E056
+ ["ee93bb", "ee9094"], # [WHITE SMILING FACE] U+E4FB -> U+E414
+ ["eeada9", "ee9093"], # [CRYING FACE] U+EB69 -> U+E413
+ ["ee91b3", "ee9091"], # [LOUDLY CRYING FACE] U+E473 -> U+E411
+ ["eeab86", "ee908b"], # [FEARFUL FACE] U+EAC6 -> U+E40B
+ ["eeab82", "ee9086"], # [PERSEVERING FACE] U+EAC2 -> U+E406
+ ["eead9d", "ee9096"], # [POUTING FACE] U+EB5D -> U+E416
+ ["eeab85", "ee908a"], # [RELIEVED FACE] U+EAC5 -> U+E40A
+ ["eeab83", "ee9087"], # [CONFOUNDED FACE] U+EAC3 -> U+E407
+ ["eeab80", "ee9083"], # [PENSIVE FACE] U+EAC0 -> U+E403
+ ["ee9785", "ee8487"], # [FACE SCREAMING IN FEAR] U+E5C5 -> U+E107
+ ["eeab84", "ee9088"], # [SLEEPY FACE] U+EAC4 -> U+E408
+ ["eeaabf", "ee9082"], # [SMIRKING FACE] U+EABF -> U+E402
+ ["ee9786", "ee8488"], # [FACE WITH COLD SWEAT] U+E5C6 -> U+E108
+ ["ee91b4", "ee9086"], # [TIRED FACE] U+E474 -> U+E406
+ ["ee9783", "ee9085"], # [WINKING FACE] U+E5C3 -> U+E405
+ ["eeada1", "ee8197"], # [CAT FACE WITH OPEN MOUTH] U+EB61 -> U+E057
+ ["eeadbf", "ee9084"], # [HAPPY CAT FACE WITH GRIN] U+EB7F -> U+E404
+ ["eeada3", "ee9092"], # [HAPPY AND CRYING CAT FACE] U+EB63 -> U+E412
+ ["eeada0", "ee9098"], # [CAT FACE KISSING] U+EB60 -> U+E418
+ ["eeada5", "ee8486"], # [CAT FACE WITH HEART-SHAPED EYES] U+EB65 -> U+E106
+ ["eeada8", "ee9093"], # [CRYING CAT FACE] U+EB68 -> U+E413
+ ["eead9e", "ee9096"], # [POUTING CAT FACE] U+EB5E -> U+E416
+ ["eeadaa", "ee9084"], # [CAT FACE WITH TIGHTLY-CLOSED LIPS] U+EB6A -> U+E404
+ ["eeada6", "ee9083"], # [ANGUISHED CAT FACE] U+EB66 -> U+E403
+ ["eeab97", "ee90a3"], # [FACE WITH NO GOOD GESTURE] U+EAD7 -> U+E423
+ ["eeab98", "ee90a4"], # [FACE WITH OK GESTURE] U+EAD8 -> U+E424
+ ["eeab99", "ee90a6"], # [PERSON BOWING DEEPLY] U+EAD9 -> U+E426
+ ["eead90", :undef], # [SEE-NO-EVIL MONKEY] U+EB50 -> "(/_ï¼¼)"
+ ["eead91", :undef], # [SPEAK-NO-EVIL MONKEY] U+EB51 -> "(・×・)"
+ ["eead92", :undef], # [HEAR-NO-EVIL MONKEY] U+EB52 -> "|(・×・)|"
+ ["eeae85", "ee8092"], # [PERSON RAISING ONE HAND] U+EB85 -> U+E012
+ ["eeae86", "ee90a7"], # [PERSON RAISING BOTH HANDS IN CELEBRATION] U+EB86 -> U+E427
+ ["eeae87", "ee9083"], # [PERSON FROWNING] U+EB87 -> U+E403
+ ["eeae88", "ee9096"], # [PERSON WITH POUTING FACE] U+EB88 -> U+E416
+ ["eeab92", "ee909d"], # [PERSON WITH FOLDED HANDS] U+EAD2 -> U+E41D
+ ["ee92ab", "ee80b6"], # [HOUSE BUILDING] U+E4AB -> U+E036
+ ["eeac89", "ee80b6"], # [HOUSE WITH GARDEN] U+EB09 -> U+E036
+ ["ee92ad", "ee80b8"], # [OFFICE BUILDING] U+E4AD -> U+E038
+ ["ee979e", "ee8593"], # [JAPANESE POST OFFICE] U+E5DE -> U+E153
+ ["ee979f", "ee8595"], # [HOSPITAL] U+E5DF -> U+E155
+ ["ee92aa", "ee858d"], # [BANK] U+E4AA -> U+E14D
+ ["ee92a3", "ee8594"], # [AUTOMATED TELLER MACHINE] U+E4A3 -> U+E154
+ ["eeaa81", "ee8598"], # [HOTEL] U+EA81 -> U+E158
+ ["eeabb3", "ee9481"], # [LOVE HOTEL] U+EAF3 -> U+E501
+ ["ee92a4", "ee8596"], # [CONVENIENCE STORE] U+E4A4 -> U+E156
+ ["eeaa80", "ee8597"], # [SCHOOL] U+EA80 -> U+E157
+ ["ee96bb", "ee80b7"], # [CHURCH] U+E5BB -> U+E037
+ ["ee978f", "ee84a1"], # [FOUNTAIN] U+E5CF -> U+E121
+ ["eeabb6", "ee9484"], # [DEPARTMENT STORE] U+EAF6 -> U+E504
+ ["eeabb7", "ee9485"], # [JAPANESE CASTLE] U+EAF7 -> U+E505
+ ["eeabb8", "ee9486"], # [EUROPEAN CASTLE] U+EAF8 -> U+E506
+ ["eeabb9", "ee9488"], # [FACTORY] U+EAF9 -> U+E508
+ ["ee92a9", "ee8882"], # [ANCHOR] U+E4A9 -> U+E202
+ ["ee92bd", "ee8c8b"], # [IZAKAYA LANTERN] U+E4BD -> U+E30B
+ ["ee96bd", "ee80bb"], # [MOUNT FUJI] U+E5BD -> U+E03B
+ ["ee9380", "ee9489"], # [TOKYO TOWER] U+E4C0 -> U+E509
+ ["ee95b2", :undef], # [SILHOUETTE OF JAPAN] U+E572 -> "[日本地図]"
+ ["eeadac", :undef], # [MOYAI] U+EB6C -> "[モアイ]"
+ ["ee96b7", "ee8087"], # [MANS SHOE] U+E5B7 -> U+E007
+ ["eeacab", "ee8087"], # [ATHLETIC SHOE] U+EB2B -> U+E007
+ ["ee949a", "ee84be"], # [HIGH-HEELED SHOE] U+E51A -> U+E13E
+ ["eeaa9f", "ee8c9b"], # [WOMANS BOOTS] U+EA9F -> U+E31B
+ ["eeacaa", "ee94b6"], # [FOOTPRINTS] U+EB2A -> U+E536
+ ["ee93be", :undef], # [EYEGLASSES] U+E4FE -> "[メガãƒ]"
+ ["ee96b6", "ee8086"], # [T-SHIRT] U+E5B6 -> U+E006
+ ["eeadb7", :undef], # [JEANS] U+EB77 -> "[ジーンズ]"
+ ["ee9789", "ee848e"], # [CROWN] U+E5C9 -> U+E10E
+ ["eeaa93", "ee8c82"], # [NECKTIE] U+EA93 -> U+E302
+ ["eeaa9e", "ee8c98"], # [WOMANS HAT] U+EA9E -> U+E318
+ ["eeadab", "ee8c99"], # [DRESS] U+EB6B -> U+E319
+ ["eeaaa3", "ee8ca1"], # [KIMONO] U+EAA3 -> U+E321
+ ["eeaaa4", "ee8ca2"], # [BIKINI] U+EAA4 -> U+E322
+ ["ee948d", "ee8086"], # [WOMANS CLOTHES] U+E50D -> U+E006
+ ["ee9484", :undef], # [PURSE] U+E504 -> "[財布]"
+ ["ee929c", "ee8ca3"], # [HANDBAG] U+E49C -> U+E323
+ ["ee9387", "ee84af"], # [MONEY BAG] U+E4C7 -> U+E12F
+ ["ee979c", "ee858a"], # [CHART WITH UPWARDS TREND AND YEN SIGN] U+E5DC -> U+E14A
+ ["ee95b9", "ee84af"], # [HEAVY DOLLAR SIGN] U+E579 -> U+E12F
+ ["ee95bc", :undef], # [CREDIT CARD] U+E57C -> "[カード]"
+ ["ee95bd", :undef], # [BANKNOTE WITH YEN SIGN] U+E57D -> "ï¿¥"
+ ["ee9685", "ee84af"], # [BANKNOTE WITH DOLLAR SIGN] U+E585 -> U+E12F
+ ["eead9b", :undef], # [MONEY WITH WINGS] U+EB5B -> "[飛んã§ã„ããŠé‡‘]"
+ ["eeac91", "ee9493"], # [REGIONAL INDICATOR SYMBOL LETTERS CN] U+EB11 -> U+E513
+ ["eeac8e", "ee948e"], # [REGIONAL INDICATOR SYMBOL LETTERS DE] U+EB0E -> U+E50E
+ ["ee9795", "ee9491"], # [REGIONAL INDICATOR SYMBOL LETTERS ES] U+E5D5 -> U+E511
+ ["eeabba", "ee948d"], # [REGIONAL INDICATOR SYMBOL LETTERS FR] U+EAFA -> U+E50D
+ ["eeac90", "ee9490"], # [REGIONAL INDICATOR SYMBOL LETTERS GB] U+EB10 -> U+E510
+ ["eeac8f", "ee948f"], # [REGIONAL INDICATOR SYMBOL LETTERS IT] U+EB0F -> U+E50F
+ ["ee938c", "ee948b"], # [REGIONAL INDICATOR SYMBOL LETTERS JP] U+E4CC -> U+E50B
+ ["eeac92", "ee9494"], # [REGIONAL INDICATOR SYMBOL LETTERS KR] U+EB12 -> U+E514
+ ["ee9796", "ee9492"], # [REGIONAL INDICATOR SYMBOL LETTERS RU] U+E5D6 -> U+E512
+ ["ee95b3", "ee948c"], # [REGIONAL INDICATOR SYMBOL LETTERS US] U+E573 -> U+E50C
+ ["ee91bb", "ee849d"], # [FIRE] U+E47B -> U+E11D
+ ["ee9683", :undef], # [ELECTRIC TORCH] U+E583 -> "[æ‡ä¸­é›»ç¯]"
+ ["ee9687", :undef], # [WRENCH] U+E587 -> "[レンãƒ]"
+ ["ee978b", "ee8496"], # [HAMMER] U+E5CB -> U+E116
+ ["ee9681", :undef], # [NUT AND BOLT] U+E581 -> "[ãƒã‚¸]"
+ ["ee95bf", :undef], # [HOCHO] U+E57F -> "[包ä¸]"
+ ["ee948a", "ee8493"], # [PISTOL] U+E50A -> U+E113
+ ["eeaa8f", "ee88be"], # [CRYSTAL BALL] U+EA8F -> U+E23E
+ ["ee9280", "ee8889"], # [JAPANESE SYMBOL FOR BEGINNER] U+E480 -> U+E209
+ ["ee9490", "ee84bb"], # [SYRINGE] U+E510 -> U+E13B
+ ["eeaa9a", "ee8c8f"], # [PILL] U+EA9A -> U+E30F
+ ["eeaca6", "ee94b2"], # [NEGATIVE SQUARED LATIN CAPITAL LETTER A] U+EB26 -> U+E532
+ ["eeaca7", "ee94b3"], # [NEGATIVE SQUARED LATIN CAPITAL LETTER B] U+EB27 -> U+E533
+ ["eeaca9", "ee94b4"], # [NEGATIVE SQUARED AB] U+EB29 -> U+E534
+ ["eeaca8", "ee94b5"], # [NEGATIVE SQUARED LATIN CAPITAL LETTER O] U+EB28 -> U+E535
+ ["ee969f", "ee8c94"], # [RIBBON] U+E59F -> U+E314
+ ["ee938f", "ee8492"], # [WRAPPED PRESENT] U+E4CF -> U+E112
+ ["ee96a0", "ee8d8b"], # [BIRTHDAY CAKE] U+E5A0 -> U+E34B
+ ["ee9389", "ee80b3"], # [CHRISTMAS TREE] U+E4C9 -> U+E033
+ ["eeabb0", "ee9188"], # [FATHER CHRISTMAS] U+EAF0 -> U+E448
+ ["ee9799", "ee8583"], # [CROSSED FLAGS] U+E5D9 -> U+E143
+ ["ee978c", "ee8497"], # [FIREWORKS] U+E5CC -> U+E117
+ ["eeaa9b", "ee8c90"], # [BALLOON] U+EA9B -> U+E310
+ ["eeaa9c", "ee8c92"], # [PARTY POPPER] U+EA9C -> U+E312
+ ["eeaba3", "ee90b6"], # [PINE DECORATION] U+EAE3 -> U+E436
+ ["eeaba4", "ee90b8"], # [JAPANESE DOLLS] U+EAE4 -> U+E438
+ ["eeaba5", "ee90b9"], # [GRADUATION CAP] U+EAE5 -> U+E439
+ ["eeaba6", "ee90ba"], # [SCHOOL SATCHEL] U+EAE6 -> U+E43A
+ ["eeaba7", "ee90bb"], # [CARP STREAMER] U+EAE7 -> U+E43B
+ ["eeabab", "ee9180"], # [FIREWORK SPARKLER] U+EAEB -> U+E440
+ ["eeabad", "ee9182"], # [WIND CHIME] U+EAED -> U+E442
+ ["eeabae", "ee9185"], # [JACK-O-LANTERN] U+EAEE -> U+E445
+ ["ee91af", :undef], # [CONFETTI BALL] U+E46F -> "[オメデトウ]"
+ ["eeacbd", :undef], # [TANABATA TREE] U+EB3D -> "[七夕]"
+ ["eeabaf", "ee9186"], # [MOON VIEWING CEREMONY] U+EAEF -> U+E446
+ ["ee969b", :undef], # [PAGER] U+E59B -> "[ãƒã‚±ãƒ™ãƒ«]"
+ ["ee9696", "ee8089"], # [BLACK TELEPHONE] U+E596 -> U+E009
+ ["ee949e", "ee8089"], # [TELEPHONE RECEIVER] U+E51E -> U+E009
+ ["ee9688", "ee808a"], # [MOBILE PHONE] U+E588 -> U+E00A
+ ["eeac88", "ee8484"], # [MOBILE PHONE WITH RIGHTWARDS ARROW AT LEFT] U+EB08 -> U+E104
+ ["eeaa92", "ee8c81"], # [MEMO] U+EA92 -> U+E301
+ ["ee94a0", "ee808b"], # [FAX MACHINE] U+E520 -> U+E00B
+ ["ee94a1", "ee8483"], # [ENVELOPE] U+E521 -> U+E103
+ ["ee9691", "ee8483"], # [INCOMING ENVELOPE] U+E591 -> U+E103
+ ["eeada2", "ee8483"], # [ENVELOPE WITH DOWNWARDS ARROW ABOVE] U+EB62 -> U+E103
+ ["ee949b", "ee8481"], # [CLOSED MAILBOX WITH LOWERED FLAG] U+E51B -> U+E101
+ ["eeac8a", "ee8481"], # [CLOSED MAILBOX WITH RAISED FLAG] U+EB0A -> U+E101
+ ["ee968b", :undef], # [NEWSPAPER] U+E58B -> "[æ–°èž]"
+ ["ee92a8", "ee858b"], # [SATELLITE ANTENNA] U+E4A8 -> U+E14B
+ ["ee9692", :undef], # [OUTBOX TRAY] U+E592 -> "[é€ä¿¡BOX]"
+ ["ee9693", :undef], # [INBOX TRAY] U+E593 -> "[å—ä¿¡BOX]"
+ ["ee949f", "ee8492"], # [PACKAGE] U+E51F -> U+E112
+ ["eeadb1", "ee8483"], # [E-MAIL SYMBOL] U+EB71 -> U+E103
+ ["eeabbd", :undef], # [INPUT SYMBOL FOR LATIN CAPITAL LETTERS] U+EAFD -> "[ABCD]"
+ ["eeabbe", :undef], # [INPUT SYMBOL FOR LATIN SMALL LETTERS] U+EAFE -> "[abcd]"
+ ["eeabbf", :undef], # [INPUT SYMBOL FOR NUMBERS] U+EAFF -> "[1234]"
+ ["eeac80", :undef], # [INPUT SYMBOL FOR SYMBOLS] U+EB00 -> "[記å·]"
+ ["eead95", :undef], # [INPUT SYMBOL FOR LATIN LETTERS] U+EB55 -> "[ABC]"
+ ["eeac83", :undef], # [BLACK NIB] U+EB03 -> "[ペン]"
+ ["ee96b8", "ee808c"], # [PERSONAL COMPUTER] U+E5B8 -> U+E00C
+ ["ee92a1", "ee8c81"], # [PENCIL] U+E4A1 -> U+E301
+ ["ee92a0", :undef], # [PAPERCLIP] U+E4A0 -> "[クリップ]"
+ ["ee978e", "ee849e"], # [BRIEFCASE] U+E5CE -> U+E11E
+ ["ee9682", "ee8c96"], # [MINIDISC] U+E582 -> U+E316
+ ["ee95a2", "ee8c96"], # [FLOPPY DISK] U+E562 -> U+E316
+ ["ee948c", "ee84a6"], # [OPTICAL DISC] U+E50C -> U+E126
+ ["ee9496", "ee8c93"], # [BLACK SCISSORS] U+E516 -> U+E313
+ ["ee95a0", :undef], # [ROUND PUSHPIN] U+E560 -> "[ç”»ã³ã‚‡ã†]"
+ ["ee95a1", "ee8c81"], # [PAGE WITH CURL] U+E561 -> U+E301
+ ["ee95a9", "ee8c81"], # [PAGE FACING UP] U+E569 -> U+E301
+ ["ee95a3", :undef], # [CALENDAR] U+E563 -> "[カレンダー]"
+ ["ee968f", :undef], # [FILE FOLDER] U+E58F -> "[フォルダ]"
+ ["ee9690", :undef], # [OPEN FILE FOLDER] U+E590 -> "[フォルダ]"
+ ["ee95ab", "ee8588"], # [NOTEBOOK] U+E56B -> U+E148
+ ["ee929f", "ee8588"], # [OPEN BOOK] U+E49F -> U+E148
+ ["ee929d", "ee8588"], # [NOTEBOOK WITH DECORATIVE COVER] U+E49D -> U+E148
+ ["ee95a8", "ee8588"], # [CLOSED BOOK] U+E568 -> U+E148
+ ["ee95a5", "ee8588"], # [GREEN BOOK] U+E565 -> U+E148
+ ["ee95a6", "ee8588"], # [BLUE BOOK] U+E566 -> U+E148
+ ["ee95a7", "ee8588"], # [ORANGE BOOK] U+E567 -> U+E148
+ ["ee95af", "ee8588"], # [BOOKS] U+E56F -> U+E148
+ ["ee949d", :undef], # [NAME BADGE] U+E51D -> "[åæœ­]"
+ ["ee959f", :undef], # [SCROLL] U+E55F -> "[スクロール]"
+ ["ee95a4", "ee8c81"], # [CLIPBOARD] U+E564 -> U+E301
+ ["ee95aa", :undef], # [TEAR-OFF CALENDAR] U+E56A -> "[カレンダー]"
+ ["ee95b4", "ee858a"], # [BAR CHART] U+E574 -> U+E14A
+ ["ee95b5", "ee858a"], # [CHART WITH UPWARDS TREND] U+E575 -> U+E14A
+ ["ee95b6", :undef], # [CHART WITH DOWNWARDS TREND] U+E576 -> "[グラフ]"
+ ["ee95ac", "ee8588"], # [CARD INDEX] U+E56C -> U+E148
+ ["ee95ad", :undef], # [PUSHPIN] U+E56D -> "[ç”»ã³ã‚‡ã†]"
+ ["ee95ae", "ee8588"], # [LEDGER] U+E56E -> U+E148
+ ["ee95b0", :undef], # [STRAIGHT RULER] U+E570 -> "[定è¦]"
+ ["ee92a2", :undef], # [TRIANGULAR RULER] U+E4A2 -> "[三角定è¦]"
+ ["eeac8b", "ee8c81"], # [BOOKMARK TABS] U+EB0B -> U+E301
+ ["ee92ba", "ee8096"], # [BASEBALL] U+E4BA -> U+E016
+ ["ee9699", "ee8094"], # [FLAG IN HOLE] U+E599 -> U+E014
+ ["ee92b7", "ee8095"], # [TENNIS RACQUET AND BALL] U+E4B7 -> U+E015
+ ["ee92b6", "ee8098"], # [SOCCER BALL] U+E4B6 -> U+E018
+ ["eeaaac", "ee8093"], # [SKI AND SKI BOOT] U+EAAC -> U+E013
+ ["ee969a", "ee90aa"], # [BASKETBALL AND HOOP] U+E59A -> U+E42A
+ ["ee92b9", "ee84b2"], # [CHEQUERED FLAG] U+E4B9 -> U+E132
+ ["ee92b8", :undef], # [SNOWBOARDER] U+E4B8 -> "[スノボ]"
+ ["ee91ab", "ee8495"], # [RUNNER] U+E46B -> U+E115
+ ["eead81", "ee8097"], # [SURFER] U+EB41 -> U+E017
+ ["ee9793", "ee84b1"], # [TROPHY] U+E5D3 -> U+E131
+ ["ee92bb", "ee90ab"], # [AMERICAN FOOTBALL] U+E4BB -> U+E42B
+ ["eeab9e", "ee90ad"], # [SWIMMER] U+EADE -> U+E42D
+ ["ee92b5", "ee809e"], # [TRAIN] U+E4B5 -> U+E01E
+ ["ee96bc", "ee90b4"], # [METRO] U+E5BC -> U+E434
+ ["ee92b0", "ee809f"], # [HIGH-SPEED TRAIN WITH BULLET NOSE] U+E4B0 -> U+E01F
+ ["ee92b1", "ee809b"], # [AUTOMOBILE] U+E4B1 -> U+E01B
+ ["ee92af", "ee8599"], # [ONCOMING BUS] U+E4AF -> U+E159
+ ["ee92a7", "ee8590"], # [BUS STOP] U+E4A7 -> U+E150
+ ["eeaa82", "ee8882"], # [SHIP] U+EA82 -> U+E202
+ ["ee92b3", "ee809d"], # [AIRPLANE] U+E4B3 -> U+E01D
+ ["ee92b4", "ee809c"], # [SAILBOAT] U+E4B4 -> U+E01C
+ ["eeadad", "ee80b9"], # [STATION] U+EB6D -> U+E039
+ ["ee9788", "ee848d"], # [ROCKET] U+E5C8 -> U+E10D
+ ["ee92b2", "ee90af"], # [DELIVERY TRUCK] U+E4B2 -> U+E42F
+ ["eeab9f", "ee90b0"], # [FIRE ENGINE] U+EADF -> U+E430
+ ["eeaba0", "ee90b1"], # [AMBULANCE] U+EAE0 -> U+E431
+ ["eeaba1", "ee90b2"], # [POLICE CAR] U+EAE1 -> U+E432
+ ["ee95b1", "ee80ba"], # [FUEL PUMP] U+E571 -> U+E03A
+ ["ee92a6", "ee858f"], # [NEGATIVE SQUARED LATIN CAPITAL LETTER P] U+E4A6 -> U+E14F
+ ["ee91aa", "ee858e"], # [HORIZONTAL TRAFFIC LIGHT] U+E46A -> U+E14E
+ ["ee9797", "ee84b7"], # [CONSTRUCTION SIGN] U+E5D7 -> U+E137
+ ["eeadb3", "ee90b2"], # [POLICE CARS REVOLVING LIGHT] U+EB73 -> U+E432
+ ["ee92bc", "ee84a3"], # [HOT SPRINGS] U+E4BC -> U+E123
+ ["ee9790", "ee84a2"], # [TENT] U+E5D0 -> U+E122
+ ["ee91ad", "ee84a4"], # [FERRIS WHEEL] U+E46D -> U+E124
+ ["eeaba2", "ee90b3"], # [ROLLER COASTER] U+EAE2 -> U+E433
+ ["eead82", "ee8099"], # [FISHING POLE AND FISH] U+EB42 -> U+E019
+ ["ee9483", "ee80bc"], # [MICROPHONE] U+E503 -> U+E03C
+ ["ee9497", "ee80bd"], # [MOVIE CAMERA] U+E517 -> U+E03D
+ ["ee9488", "ee8c8a"], # [HEADPHONE] U+E508 -> U+E30A
+ ["ee969c", "ee9482"], # [ARTIST PALETTE] U+E59C -> U+E502
+ ["eeabb5", "ee9483"], # [TOP HAT] U+EAF5 -> U+E503
+ ["ee969e", :undef], # [CIRCUS TENT] U+E59E -> "[イベント]"
+ ["ee929e", "ee84a5"], # [TICKET] U+E49E -> U+E125
+ ["ee92be", "ee8ca4"], # [CLAPPER BOARD] U+E4BE -> U+E324
+ ["ee969d", "ee9483"], # [PERFORMING ARTS] U+E59D -> U+E503
+ ["ee9386", :undef], # [VIDEO GAME] U+E4C6 -> "[ゲーム]"
+ ["ee9791", "ee84ad"], # [MAHJONG TILE RED DRAGON] U+E5D1 -> U+E12D
+ ["ee9385", "ee84b0"], # [DIRECT HIT] U+E4C5 -> U+E130
+ ["ee91ae", "ee84b3"], # [SLOT MACHINE] U+E46E -> U+E133
+ ["eeab9d", "ee90ac"], # [BILLIARDS] U+EADD -> U+E42C
+ ["ee9388", :undef], # [GAME DIE] U+E4C8 -> "[サイコロ]"
+ ["eead83", :undef], # [BOWLING] U+EB43 -> "[ボーリング]"
+ ["eeadae", :undef], # [FLOWER PLAYING CARDS] U+EB6E -> "[花札]"
+ ["eeadaf", :undef], # [PLAYING CARD BLACK JOKER] U+EB6F -> "[ジョーカー]"
+ ["ee96be", "ee80be"], # [MUSICAL NOTE] U+E5BE -> U+E03E
+ ["ee9485", "ee8ca6"], # [MULTIPLE MUSICAL NOTES] U+E505 -> U+E326
+ ["ee9486", "ee8181"], # [GUITAR] U+E506 -> U+E041
+ ["eead80", :undef], # [MUSICAL KEYBOARD] U+EB40 -> "[ピアノ]"
+ ["eeab9c", "ee8182"], # [TRUMPET] U+EADC -> U+E042
+ ["ee9487", :undef], # [VIOLIN] U+E507 -> "[ãƒã‚¤ã‚ªãƒªãƒ³]"
+ ["eeab8c", "ee8ca6"], # [MUSICAL SCORE] U+EACC -> U+E326
+ ["ee9495", "ee8088"], # [CAMERA] U+E515 -> U+E008
+ ["ee95be", "ee80bd"], # [VIDEO CAMERA] U+E57E -> U+E03D
+ ["ee9482", "ee84aa"], # [TELEVISION] U+E502 -> U+E12A
+ ["ee96b9", "ee84a8"], # [RADIO] U+E5B9 -> U+E128
+ ["ee9680", "ee84a9"], # [VIDEOCASSETTE] U+E580 -> U+E129
+ ["ee93ab", "ee8083"], # [KISS MARK] U+E4EB -> U+E003
+ ["eeadb8", "ee8483ee8ca8"], # [LOVE LETTER] U+EB78 -> U+E103 U+E328
+ ["ee9494", "ee80b4"], # [RING] U+E514 -> U+E034
+ ["ee978a", "ee8491"], # [KISS] U+E5CA -> U+E111
+ ["eeaa95", "ee8c86"], # [BOUQUET] U+EA95 -> U+E306
+ ["eeab9a", "ee90a5"], # [COUPLE WITH HEART] U+EADA -> U+E425
+ ["eeaa83", "ee8887"], # [NO ONE UNDER EIGHTEEN SYMBOL] U+EA83 -> U+E207
+ ["ee9598", "ee898e"], # [COPYRIGHT SIGN] U+E558 -> U+E24E
+ ["ee9599", "ee898f"], # [REGISTERED SIGN] U+E559 -> U+E24F
+ ["ee958e", "ee94b7"], # [TRADE MARK SIGN] U+E54E -> U+E537
+ ["ee94b3", :undef], # [INFORMATION SOURCE] U+E533 -> "[i]"
+ ["eeae84", "ee8890"], # [HASH KEY] U+EB84 -> U+E210
+ ["ee94a2", "ee889c"], # [KEYCAP 1] U+E522 -> U+E21C
+ ["ee94a3", "ee889d"], # [KEYCAP 2] U+E523 -> U+E21D
+ ["ee94a4", "ee889e"], # [KEYCAP 3] U+E524 -> U+E21E
+ ["ee94a5", "ee889f"], # [KEYCAP 4] U+E525 -> U+E21F
+ ["ee94a6", "ee88a0"], # [KEYCAP 5] U+E526 -> U+E220
+ ["ee94a7", "ee88a1"], # [KEYCAP 6] U+E527 -> U+E221
+ ["ee94a8", "ee88a2"], # [KEYCAP 7] U+E528 -> U+E222
+ ["ee94a9", "ee88a3"], # [KEYCAP 8] U+E529 -> U+E223
+ ["ee94aa", "ee88a4"], # [KEYCAP 9] U+E52A -> U+E224
+ ["ee96ac", "ee88a5"], # [KEYCAP 0] U+E5AC -> U+E225
+ ["ee94ab", :undef], # [KEYCAP TEN] U+E52B -> "[10]"
+ ["eeaa84", "ee888b"], # [ANTENNA WITH BARS] U+EA84 -> U+E20B
+ ["eeaa90", "ee8990"], # [VIBRATION MODE] U+EA90 -> U+E250
+ ["eeaa91", "ee8991"], # [MOBILE PHONE OFF] U+EA91 -> U+E251
+ ["ee9396", "ee84a0"], # [HAMBURGER] U+E4D6 -> U+E120
+ ["ee9395", "ee8d82"], # [RICE BALL] U+E4D5 -> U+E342
+ ["ee9390", "ee8186"], # [SHORTCAKE] U+E4D0 -> U+E046
+ ["ee96b4", "ee8d80"], # [STEAMING BOWL] U+E5B4 -> U+E340
+ ["eeaaaf", "ee8cb9"], # [BREAD] U+EAAF -> U+E339
+ ["ee9391", "ee8587"], # [COOKING] U+E4D1 -> U+E147
+ ["eeaab0", "ee8cba"], # [SOFT ICE CREAM] U+EAB0 -> U+E33A
+ ["eeaab1", "ee8cbb"], # [FRENCH FRIES] U+EAB1 -> U+E33B
+ ["eeaab2", "ee8cbc"], # [DANGO] U+EAB2 -> U+E33C
+ ["eeaab3", "ee8cbd"], # [RICE CRACKER] U+EAB3 -> U+E33D
+ ["eeaab4", "ee8cbe"], # [COOKED RICE] U+EAB4 -> U+E33E
+ ["eeaab5", "ee8cbf"], # [SPAGHETTI] U+EAB5 -> U+E33F
+ ["eeaab6", "ee8d81"], # [CURRY AND RICE] U+EAB6 -> U+E341
+ ["eeaab7", "ee8d83"], # [ODEN] U+EAB7 -> U+E343
+ ["eeaab8", "ee8d84"], # [SUSHI] U+EAB8 -> U+E344
+ ["eeaabd", "ee8d8c"], # [BENTO BOX] U+EABD -> U+E34C
+ ["eeaabe", "ee8d8d"], # [POT OF FOOD] U+EABE -> U+E34D
+ ["eeabaa", "ee90bf"], # [SHAVED ICE] U+EAEA -> U+E43F
+ ["ee9384", :undef], # [MEAT ON BONE] U+E4C4 -> "[肉]"
+ ["ee93ad", :undef], # [FISH CAKE WITH SWIRL DESIGN] U+E4ED -> "[ãªã‚‹ã¨]"
+ ["eeacba", :undef], # [ROASTED SWEET POTATO] U+EB3A -> "[ã‚„ãã„ã‚‚]"
+ ["eeacbb", :undef], # [SLICE OF PIZZA] U+EB3B -> "[ピザ]"
+ ["eeacbc", :undef], # [POULTRY LEG] U+EB3C -> "[ãƒã‚­ãƒ³]"
+ ["eead8a", :undef], # [ICE CREAM] U+EB4A -> "[アイスクリーム]"
+ ["eead8b", :undef], # [DOUGHNUT] U+EB4B -> "[ドーナツ]"
+ ["eead8c", :undef], # [COOKIE] U+EB4C -> "[クッキー]"
+ ["eead8d", :undef], # [CHOCOLATE BAR] U+EB4D -> "[ãƒãƒ§ã‚³]"
+ ["eead8e", :undef], # [CANDY] U+EB4E -> "[キャンディ]"
+ ["eead8f", :undef], # [LOLLIPOP] U+EB4F -> "[キャンディ]"
+ ["eead96", :undef], # [CUSTARD] U+EB56 -> "[プリン]"
+ ["eead99", :undef], # [HONEY POT] U+EB59 -> "[ãƒãƒãƒŸãƒ„]"
+ ["eeadb0", :undef], # [FRIED SHRIMP] U+EB70 -> "[エビフライ]"
+ ["ee92ac", "ee8183"], # [FORK AND KNIFE] U+E4AC -> U+E043
+ ["ee9697", "ee8185"], # [HOT BEVERAGE] U+E597 -> U+E045
+ ["ee9382", "ee8184"], # [COCKTAIL GLASS] U+E4C2 -> U+E044
+ ["ee9383", "ee8187"], # [BEER MUG] U+E4C3 -> U+E047
+ ["eeaaae", "ee8cb8"], # [TEACUP WITHOUT HANDLE] U+EAAE -> U+E338
+ ["eeaa97", "ee8c8b"], # [SAKE BOTTLE AND CUP] U+EA97 -> U+E30B
+ ["ee9381", "ee8184"], # [WINE GLASS] U+E4C1 -> U+E044
+ ["eeaa98", "ee8c8c"], # [CLINKING BEER MUGS] U+EA98 -> U+E30C
+ ["eeacbe", "ee8184"], # [TROPICAL DRINK] U+EB3E -> U+E044
+ ["ee9595", "ee88b6"], # [NORTH EAST ARROW] U+E555 -> U+E236
+ ["ee958d", "ee88b8"], # [SOUTH EAST ARROW] U+E54D -> U+E238
+ ["ee958c", "ee88b7"], # [NORTH WEST ARROW] U+E54C -> U+E237
+ ["ee9596", "ee88b9"], # [SOUTH WEST ARROW] U+E556 -> U+E239
+ ["eeacad", "ee88b6"], # [ARROW POINTING RIGHTWARDS THEN CURVING UPWARDS] U+EB2D -> U+E236
+ ["eeacae", "ee88b8"], # [ARROW POINTING RIGHTWARDS THEN CURVING DOWNWARDS] U+EB2E -> U+E238
+ ["eeadba", :undef], # [LEFT RIGHT ARROW] U+EB7A -> "⇔"
+ ["eeadbb", :undef], # [UP DOWN ARROW] U+EB7B -> "↑↓"
+ ["ee94bf", "ee88b2"], # [UPWARDS BLACK ARROW] U+E53F -> U+E232
+ ["ee9580", "ee88b3"], # [DOWNWARDS BLACK ARROW] U+E540 -> U+E233
+ ["ee9592", "ee88b4"], # [BLACK RIGHTWARDS ARROW] U+E552 -> U+E234
+ ["ee9593", "ee88b5"], # [LEFTWARDS BLACK ARROW] U+E553 -> U+E235
+ ["ee94ae", "ee88ba"], # [BLACK RIGHT-POINTING TRIANGLE] U+E52E -> U+E23A
+ ["ee94ad", "ee88bb"], # [BLACK LEFT-POINTING TRIANGLE] U+E52D -> U+E23B
+ ["ee94b0", "ee88bc"], # [BLACK RIGHT-POINTING DOUBLE TRIANGLE] U+E530 -> U+E23C
+ ["ee94af", "ee88bd"], # [BLACK LEFT-POINTING DOUBLE TRIANGLE] U+E52F -> U+E23D
+ ["ee9585", :undef], # [BLACK UP-POINTING DOUBLE TRIANGLE] U+E545 -> "â–²"
+ ["ee9584", :undef], # [BLACK DOWN-POINTING DOUBLE TRIANGLE] U+E544 -> "â–¼"
+ ["ee959a", :undef], # [UP-POINTING RED TRIANGLE] U+E55A -> "â–²"
+ ["ee959b", :undef], # [DOWN-POINTING RED TRIANGLE] U+E55B -> "â–¼"
+ ["ee9583", :undef], # [UP-POINTING SMALL RED TRIANGLE] U+E543 -> "â–²"
+ ["ee9582", :undef], # [DOWN-POINTING SMALL RED TRIANGLE] U+E542 -> "â–¼"
+ ["eeaaad", "ee8cb2"], # [HEAVY LARGE CIRCLE] U+EAAD -> U+E332
+ ["ee9590", "ee8cb3"], # [CROSS MARK] U+E550 -> U+E333
+ ["ee9591", "ee8cb3"], # [NEGATIVE SQUARED CROSS MARK] U+E551 -> U+E333
+ ["ee9282", "ee80a1"], # [HEAVY EXCLAMATION MARK ORNAMENT] U+E482 -> U+E021
+ ["eeacaf", :undef], # [EXCLAMATION QUESTION MARK] U+EB2F -> "ï¼ï¼Ÿ"
+ ["eeacb0", :undef], # [DOUBLE EXCLAMATION MARK] U+EB30 -> "ï¼ï¼"
+ ["ee9283", "ee80a0"], # [BLACK QUESTION MARK ORNAMENT] U+E483 -> U+E020
+ ["eeacb1", :undef], # [CURLY LOOP] U+EB31 -> "~"
+ ["ee9695", "ee80a2"], # [HEAVY BLACK HEART] U+E595 -> U+E022
+ ["eeadb5", "ee8ca7"], # [BEATING HEART] U+EB75 -> U+E327
+ ["ee91b7", "ee80a3"], # [BROKEN HEART] U+E477 -> U+E023
+ ["ee91b8", "ee8ca7"], # [TWO HEARTS] U+E478 -> U+E327
+ ["eeaaa6", "ee8ca7"], # [SPARKLING HEART] U+EAA6 -> U+E327
+ ["ee93aa", "ee8ca9"], # [HEART WITH ARROW] U+E4EA -> U+E329
+ ["eeaaa7", "ee8caa"], # [BLUE HEART] U+EAA7 -> U+E32A
+ ["eeaaa8", "ee8cab"], # [GREEN HEART] U+EAA8 -> U+E32B
+ ["eeaaa9", "ee8cac"], # [YELLOW HEART] U+EAA9 -> U+E32C
+ ["eeaaaa", "ee8cad"], # [PURPLE HEART] U+EAAA -> U+E32D
+ ["eead94", "ee90b7"], # [HEART WITH RIBBON] U+EB54 -> U+E437
+ ["ee96af", "ee8ca7"], # [REVOLVING HEARTS] U+E5AF -> U+E327
+ ["eeaaa5", "ee888c"], # [BLACK HEART SUIT] U+EAA5 -> U+E20C
+ ["ee96a1", "ee888e"], # [BLACK SPADE SUIT] U+E5A1 -> U+E20E
+ ["ee96a2", "ee888d"], # [BLACK DIAMOND SUIT] U+E5A2 -> U+E20D
+ ["ee96a3", "ee888f"], # [BLACK CLUB SUIT] U+E5A3 -> U+E20F
+ ["ee91bd", "ee8c8e"], # [SMOKING SYMBOL] U+E47D -> U+E30E
+ ["ee91be", "ee8888"], # [NO SMOKING SYMBOL] U+E47E -> U+E208
+ ["ee91bf", "ee888a"], # [WHEELCHAIR SYMBOL] U+E47F -> U+E20A
+ ["eeacac", :undef], # [TRIANGULAR FLAG ON POST] U+EB2C -> "[æ——]"
+ ["ee9281", "ee8992"], # [WARNING SIGN] U+E481 -> U+E252
+ ["ee9284", "ee84b7"], # [NO ENTRY] U+E484 -> U+E137
+ ["eeadb9", :undef], # [BLACK UNIVERSAL RECYCLING SYMBOL] U+EB79 -> "↑↓"
+ ["ee92ae", "ee84b6"], # [BICYCLE] U+E4AE -> U+E136
+ ["eeadb2", "ee8881"], # [PEDESTRIAN] U+EB72 -> U+E201
+ ["ee9798", "ee84bf"], # [BATH] U+E5D8 -> U+E13F
+ ["ee92a5", "ee8591"], # [RESTROOM] U+E4A5 -> U+E151
+ ["ee9581", :undef], # [NO ENTRY SIGN] U+E541 -> "[ç¦æ­¢]"
+ ["ee9597", :undef], # [HEAVY CHECK MARK] U+E557 -> "[ãƒã‚§ãƒƒã‚¯ãƒžãƒ¼ã‚¯]"
+ ["ee96ab", :undef], # [SQUARED CL] U+E5AB -> "[CL]"
+ ["eeaa85", "ee8894"], # [SQUARED COOL] U+EA85 -> U+E214
+ ["ee95b8", :undef], # [SQUARED FREE] U+E578 -> "[FREE]"
+ ["eeaa88", "ee88a9"], # [SQUARED ID] U+EA88 -> U+E229
+ ["ee96b5", "ee8892"], # [SQUARED NEW] U+E5B5 -> U+E212
+ ["ee96ad", "ee898d"], # [SQUARED OK] U+E5AD -> U+E24D
+ ["ee93a8", :undef], # [SQUARED SOS] U+E4E8 -> "[SOS]"
+ ["ee948f", "ee8893"], # [SQUARED UP WITH EXCLAMATION MARK] U+E50F -> U+E213
+ ["ee9792", "ee84ae"], # [SQUARED VS] U+E5D2 -> U+E12E
+ ["eeaa87", "ee88a8"], # [SQUARED KATAKANA SA] U+EA87 -> U+E228
+ ["eeaa8a", "ee88ab"], # [SQUARED CJK UNIFIED IDEOGRAPH-7A7A] U+EA8A -> U+E22B
+ ["eeaa89", "ee88aa"], # [SQUARED CJK UNIFIED IDEOGRAPH-6E80] U+EA89 -> U+E22A
+ ["eeaa86", "ee88a7"], # [SQUARED CJK UNIFIED IDEOGRAPH-5272] U+EA86 -> U+E227
+ ["eeaa8b", "ee88ac"], # [SQUARED CJK UNIFIED IDEOGRAPH-6307] U+EA8B -> U+E22C
+ ["eeaa8c", "ee88ad"], # [SQUARED CJK UNIFIED IDEOGRAPH-55B6] U+EA8C -> U+E22D
+ ["ee93b1", "ee8c95"], # [CIRCLED IDEOGRAPH SECRET] U+E4F1 -> U+E315
+ ["eeaa99", "ee8c8d"], # [CIRCLED IDEOGRAPH CONGRATULATION] U+EA99 -> U+E30D
+ ["ee93b7", "ee88a6"], # [CIRCLED IDEOGRAPH ADVANTAGE] U+E4F7 -> U+E226
+ ["eeac81", :undef], # [CIRCLED IDEOGRAPH ACCEPT] U+EB01 -> "[å¯]"
+ ["ee94bc", :undef], # [HEAVY PLUS SIGN] U+E53C -> "[+]"
+ ["ee94bd", :undef], # [HEAVY MINUS SIGN] U+E53D -> "[ï¼]"
+ ["ee958f", "ee8cb3"], # [HEAVY MULTIPLICATION X] U+E54F -> U+E333
+ ["ee9594", :undef], # [HEAVY DIVISION SIGN] U+E554 -> "[÷]"
+ ["ee91b6", "ee848f"], # [ELECTRIC LIGHT BULB] U+E476 -> U+E10F
+ ["ee93a5", "ee8cb4"], # [ANGER SYMBOL] U+E4E5 -> U+E334
+ ["ee91ba", "ee8c91"], # [BOMB] U+E47A -> U+E311
+ ["ee91b5", "ee84bc"], # [SLEEPING SYMBOL] U+E475 -> U+E13C
+ ["ee96b0", :undef], # [COLLISION SYMBOL] U+E5B0 -> "[ドンッ]"
+ ["ee96b1", "ee8cb1"], # [SPLASHING SWEAT SYMBOL] U+E5B1 -> U+E331
+ ["ee93a6", "ee8cb1"], # [DROP OF WATER] U+E4E6 -> U+E331
+ ["ee93b4", "ee8cb0"], # [DASH SYMBOL] U+E4F4 -> U+E330
+ ["ee93b5", "ee819a"], # [PILE OF POO] U+E4F5 -> U+E05A
+ ["ee93a9", "ee858c"], # [FLEXED BICEPS] U+E4E9 -> U+E14C
+ ["eead9c", "ee9087"], # [DIZZY SYMBOL] U+EB5C -> U+E407
+ ["ee93bd", :undef], # [SPEECH BALLOON] U+E4FD -> "[フキダシ]"
+ ["eeaaab", "ee8cae"], # [SPARKLES] U+EAAB -> U+E32E
+ ["ee91b9", "ee8885"], # [EIGHT POINTED BLACK STAR] U+E479 -> U+E205
+ ["ee94be", "ee8886"], # [EIGHT SPOKED ASTERISK] U+E53E -> U+E206
+ ["ee94ba", "ee8899"], # [MEDIUM WHITE CIRCLE] U+E53A -> U+E219
+ ["ee94bb", "ee8899"], # [MEDIUM BLACK CIRCLE] U+E53B -> U+E219
+ ["ee958a", "ee8899"], # [LARGE RED CIRCLE] U+E54A -> U+E219
+ ["ee958b", "ee889a"], # [LARGE BLUE CIRCLE] U+E54B -> U+E21A
+ ["ee928b", "ee8caf"], # [WHITE MEDIUM STAR] U+E48B -> U+E32F
+ ["ee9588", "ee889b"], # [WHITE LARGE SQUARE] U+E548 -> U+E21B
+ ["ee9589", "ee889a"], # [BLACK LARGE SQUARE] U+E549 -> U+E21A
+ ["ee94b1", "ee889b"], # [WHITE SMALL SQUARE] U+E531 -> U+E21B
+ ["ee94b2", "ee889a"], # [BLACK SMALL SQUARE] U+E532 -> U+E21A
+ ["ee94b4", "ee889b"], # [WHITE MEDIUM SMALL SQUARE] U+E534 -> U+E21B
+ ["ee94b5", "ee889a"], # [BLACK MEDIUM SMALL SQUARE] U+E535 -> U+E21A
+ ["ee94b8", "ee889b"], # [WHITE MEDIUM SQUARE] U+E538 -> U+E21B
+ ["ee94b9", "ee889a"], # [BLACK MEDIUM SQUARE] U+E539 -> U+E21A
+ ["ee9586", "ee889b"], # [LARGE ORANGE DIAMOND] U+E546 -> U+E21B
+ ["ee9587", "ee889b"], # [LARGE BLUE DIAMOND] U+E547 -> U+E21B
+ ["ee94b6", "ee889b"], # [SMALL ORANGE DIAMOND] U+E536 -> U+E21B
+ ["ee94b7", "ee889b"], # [SMALL BLUE DIAMOND] U+E537 -> U+E21B
+ ["ee91ac", "ee8cae"], # [SPARKLE] U+E46C -> U+E32E
+ ["ee93b0", :undef], # [WHITE FLOWER] U+E4F0 -> "[花丸]"
+ ["ee93b2", :undef], # [HUNDRED POINTS SYMBOL] U+E4F2 -> "[100点]"
+ ["ee959d", :undef], # [LEFTWARDS ARROW WITH HOOK] U+E55D -> "â†â”˜"
+ ["ee959c", :undef], # [RIGHTWARDS ARROW WITH HOOK] U+E55C -> "└→"
+ ["eeac8d", :undef], # [CLOCKWISE DOWNWARDS AND UPWARDS OPEN CIRCLE ARROWS] U+EB0D -> "↑↓"
+ ["ee9491", "ee8581"], # [SPEAKER WITH THREE SOUND WAVES] U+E511 -> U+E141
+ ["ee9684", :undef], # [BATTERY] U+E584 -> "[電池]"
+ ["ee9689", :undef], # [ELECTRIC PLUG] U+E589 -> "[コンセント]"
+ ["ee9498", "ee8494"], # [LEFT-POINTING MAGNIFYING GLASS] U+E518 -> U+E114
+ ["eeac85", "ee8494"], # [RIGHT-POINTING MAGNIFYING GLASS] U+EB05 -> U+E114
+ ["ee949c", "ee8584"], # [LOCK] U+E51C -> U+E144
+ ["eeac8c", "ee8584"], # [LOCK WITH INK PEN] U+EB0C -> U+E144
+ ["eeabbc", "ee8584"], # [CLOSED LOCK WITH KEY] U+EAFC -> U+E144
+ ["ee9499", "ee80bf"], # [KEY] U+E519 -> U+E03F
+ ["ee9492", "ee8ca5"], # [BELL] U+E512 -> U+E325
+ ["eeac82", :undef], # [BALLOT BOX WITH CHECK] U+EB02 -> "[ãƒã‚§ãƒƒã‚¯ãƒžãƒ¼ã‚¯]"
+ ["eeac84", :undef], # [RADIO BUTTON] U+EB04 -> "[ラジオボタン]"
+ ["eeac87", :undef], # [BOOKMARK] U+EB07 -> "[ブックマーク]"
+ ["ee968a", :undef], # [LINK SYMBOL] U+E58A -> "[リンク]"
+ ["eeac86", "ee88b5"], # [BACK WITH LEFTWARDS ARROW ABOVE] U+EB06 -> U+E235
+ ["ee968c", :undef], # [EM SPACE] U+E58C -> U+3013 (GETA)
+ ["ee968d", :undef], # [EN SPACE] U+E58D -> U+3013 (GETA)
+ ["ee968e", :undef], # [FOUR-PER-EM SPACE] U+E58E -> U+3013 (GETA)
+ ["ee959e", :undef], # [WHITE HEAVY CHECK MARK] U+E55E -> "[ãƒã‚§ãƒƒã‚¯ãƒžãƒ¼ã‚¯]"
+ ["eeae83", "ee8090"], # [RAISED FIST] U+EB83 -> U+E010
+ ["ee96a7", "ee8092"], # [RAISED HAND] U+E5A7 -> U+E012
+ ["ee96a6", "ee8091"], # [VICTORY HAND] U+E5A6 -> U+E011
+ ["ee93b3", "ee808d"], # [FISTED HAND SIGN] U+E4F3 -> U+E00D
+ ["ee93b9", "ee808e"], # [THUMBS UP SIGN] U+E4F9 -> U+E00E
+ ["ee93b6", "ee808f"], # [WHITE UP POINTING INDEX] U+E4F6 -> U+E00F
+ ["eeaa8d", "ee88ae"], # [WHITE UP POINTING BACKHAND INDEX] U+EA8D -> U+E22E
+ ["eeaa8e", "ee88af"], # [WHITE DOWN POINTING BACKHAND INDEX] U+EA8E -> U+E22F
+ ["ee93bf", "ee88b0"], # [WHITE LEFT POINTING BACKHAND INDEX] U+E4FF -> U+E230
+ ["ee9480", "ee88b1"], # [WHITE RIGHT POINTING BACKHAND INDEX] U+E500 -> U+E231
+ ["eeab96", "ee909e"], # [WAVING HAND SIGN] U+EAD6 -> U+E41E
+ ["eeab93", "ee909f"], # [CLAPPING HANDS SIGN] U+EAD3 -> U+E41F
+ ["eeab94", "ee90a0"], # [OK HAND SIGN] U+EAD4 -> U+E420
+ ["eeab95", "ee90a1"], # [THUMBS DOWN SIGN] U+EAD5 -> U+E421
+ ["ee95b7", :undef], # [EMOJI COMPATIBILITY SYMBOL-37] U+E577 -> "[EZ]"
+ ["ee96b2", :undef], # [EMOJI COMPATIBILITY SYMBOL-38] U+E5B2 -> "[ezplus]"
+ ["eeaa9d", :undef], # [EMOJI COMPATIBILITY SYMBOL-39] U+EA9D -> "[EZナビ]"
+ ["eeadb4", :undef], # [EMOJI COMPATIBILITY SYMBOL-40] U+EB74 -> "[EZムービー]"
+ ["eeae81", :undef], # [EMOJI COMPATIBILITY SYMBOL-41] U+EB81 -> "[Cメール]"
+ ["eeae89", :undef], # [EMOJI COMPATIBILITY SYMBOL-42] U+EB89 -> "[Java]"
+ ["eeae8a", :undef], # [EMOJI COMPATIBILITY SYMBOL-43] U+EB8A -> "[BREW]"
+ ["eeae8b", :undef], # [EMOJI COMPATIBILITY SYMBOL-44] U+EB8B -> "[EZç€ã†ãŸ]"
+ ["eeae8c", :undef], # [EMOJI COMPATIBILITY SYMBOL-45] U+EB8C -> "[EZナビ]"
+ ["eeae8d", :undef], # [EMOJI COMPATIBILITY SYMBOL-46] U+EB8D -> "[WIN]"
+ ["eeae8e", :undef], # [EMOJI COMPATIBILITY SYMBOL-47] U+EB8E -> "[プレミアム]"
+ ["eeabbb", :undef], # [EMOJI COMPATIBILITY SYMBOL-48] U+EAFB -> "[オープンウェブ]"
+ ["ee9686", :undef], # [EMOJI COMPATIBILITY SYMBOL-49] U+E586 -> "[PDC]"
+ ["ee94ac", :undef], # [EMOJI COMPATIBILITY SYMBOL-66] U+E52C -> "[Q]"
+ # for undocumented codepoints
+ ["eebda0", "ee818a"], # [BLACK SUN WITH RAYS] U+E488 -> U+E04A
+ ["eebda5", "ee8189"], # [CLOUD] U+E48D -> U+E049
+ ["eebda4", "ee818b"], # [UMBRELLA WITH RAIN DROPS] U+E48C -> U+E04B
+ ["eebd9d", "ee8188"], # [SNOWMAN WITHOUT SNOW] U+E485 -> U+E048
+ ["eebd9f", "ee84bd"], # [HIGH VOLTAGE SIGN] U+E487 -> U+E13D
+ ["eebd81", "ee9183"], # [CYCLONE] U+E469 -> U+E443
+ ["ef82b5", :undef], # [FOGGY] U+E598 -> "[霧]"
+ ["eeb2bc", "ee90bc"], # [CLOSED UMBRELLA] U+EAE8 -> U+E43C
+ ["eeb385", "ee918b"], # [NIGHT WITH STARS] U+EAF1 -> U+E44B
+ ["eeb388", "ee9189"], # [SUNRISE] U+EAF4 -> U+E449
+ ["eeb18d", "ee8586"], # [CITYSCAPE AT DUSK] U+E5DA -> U+E146
+ ["eeb386", "ee918c"], # [RAINBOW] U+EAF2 -> U+E44C
+ ["eebda2", :undef], # [SNOWFLAKE] U+E48A -> "[é›ªçµæ™¶]"
+ ["eebda6", "ee818aee8189"], # [SUN BEHIND CLOUD] U+E48E -> U+E04A U+E049
+ ["eebe98", "ee918b"], # [BRIDGE AT NIGHT] U+E4BF -> U+E44B
+ ["eeb681", "ee90be"], # [WATER WAVE] U+EB7C -> U+E43E
+ ["eeb597", :undef], # [VOLCANO] U+EB53 -> "[ç«å±±]"
+ ["eeb5a3", "ee918b"], # [MILKY WAY] U+EB5F -> U+E44B
+ ["ef8390", :undef], # [EARTH GLOBE ASIA-AUSTRALIA] U+E5B3 -> "[地çƒ]"
+ ["ef8385", :undef], # [NEW MOON SYMBOL] U+E5A8 -> "â—"
+ ["ef8386", "ee818c"], # [WAXING GIBBOUS MOON SYMBOL] U+E5A9 -> U+E04C
+ ["ef8387", "ee818c"], # [FIRST QUARTER MOON SYMBOL] U+E5AA -> U+E04C
+ ["eebd9e", "ee818c"], # [CRESCENT MOON] U+E486 -> U+E04C
+ ["eebda1", "ee818c"], # [FIRST QUARTER MOON WITH FACE] U+E489 -> U+E04C
+ ["eebd80", :undef], # [SHOOTING STAR] U+E468 -> "☆彡"
+ ["ef8297", :undef], # [WATCH] U+E57A -> "[腕時計]"
+ ["ef8298", :undef], # [HOURGLASS] U+E57B -> "[砂時計]"
+ ["ef82b1", "ee80ad"], # [ALARM CLOCK] U+E594 -> U+E02D
+ ["eebd94", :undef], # [HOURGLASS WITH FLOWING SAND] U+E47C -> "[砂時計]"
+ ["eebda7", "ee88bf"], # [ARIES] U+E48F -> U+E23F
+ ["eebda8", "ee8980"], # [TAURUS] U+E490 -> U+E240
+ ["eebda9", "ee8981"], # [GEMINI] U+E491 -> U+E241
+ ["eebdaa", "ee8982"], # [CANCER] U+E492 -> U+E242
+ ["eebdab", "ee8983"], # [LEO] U+E493 -> U+E243
+ ["eebdac", "ee8984"], # [VIRGO] U+E494 -> U+E244
+ ["eebdad", "ee8985"], # [LIBRA] U+E495 -> U+E245
+ ["eebdae", "ee8986"], # [SCORPIUS] U+E496 -> U+E246
+ ["eebdaf", "ee8987"], # [SAGITTARIUS] U+E497 -> U+E247
+ ["eebdb0", "ee8988"], # [CAPRICORN] U+E498 -> U+E248
+ ["eebdb1", "ee8989"], # [AQUARIUS] U+E499 -> U+E249
+ ["eebdb2", "ee898a"], # [PISCES] U+E49A -> U+E24A
+ ["eebdb3", "ee898b"], # [OPHIUCHUS] U+E49B -> U+E24B
+ ["eebfac", "ee8490"], # [FOUR LEAF CLOVER] U+E513 -> U+E110
+ ["eebebd", "ee8c84"], # [TULIP] U+E4E4 -> U+E304
+ ["eeb682", "ee8490"], # [SEEDLING] U+EB7D -> U+E110
+ ["eebea7", "ee8498"], # [MAPLE LEAF] U+E4CE -> U+E118
+ ["eebea3", "ee80b0"], # [CHERRY BLOSSOM] U+E4CA -> U+E030
+ ["ef83aa", "ee80b2"], # [ROSE] U+E5BA -> U+E032
+ ["eeb180", "ee8499"], # [FALLEN LEAF] U+E5CD -> U+E119
+ ["eeb1a7", "ee8c83"], # [HIBISCUS] U+EA94 -> U+E303
+ ["eebebc", "ee8c85"], # [SUNFLOWER] U+E4E3 -> U+E305
+ ["eebebb", "ee8c87"], # [PALM TREE] U+E4E2 -> U+E307
+ ["eeb1a9", "ee8c88"], # [CACTUS] U+EA96 -> U+E308
+ ["eeb3b7", :undef], # [EAR OF MAIZE] U+EB36 -> "[ã¨ã†ã‚‚ã‚ã“ã—]"
+ ["eeb3b8", :undef], # [MUSHROOM] U+EB37 -> "[キノコ]"
+ ["eeb3b9", :undef], # [CHESTNUT] U+EB38 -> "[æ —]"
+ ["eeb58d", "ee8c85"], # [BLOSSOM] U+EB49 -> U+E305
+ ["eeb687", "ee8490"], # [HERB] U+EB82 -> U+E110
+ ["eebeab", :undef], # [CHERRIES] U+E4D2 -> "[ã•ãらんã¼]"
+ ["eeb3b6", :undef], # [BANANA] U+EB35 -> "[ãƒãƒŠãƒŠ]"
+ ["eeb28d", "ee8d85"], # [RED APPLE] U+EAB9 -> U+E345
+ ["eeb28e", "ee8d86"], # [TANGERINE] U+EABA -> U+E346
+ ["eebead", "ee8d87"], # [STRAWBERRY] U+E4D4 -> U+E347
+ ["eebea6", "ee8d88"], # [WATERMELON] U+E4CD -> U+E348
+ ["eeb28f", "ee8d89"], # [TOMATO] U+EABB -> U+E349
+ ["eeb290", "ee8d8a"], # [AUBERGINE] U+EABC -> U+E34A
+ ["eeb3b3", :undef], # [MELON] U+EB32 -> "[メロン]"
+ ["eeb3b4", :undef], # [PINEAPPLE] U+EB33 -> "[パイナップル]"
+ ["eeb3b5", :undef], # [GRAPES] U+EB34 -> "[ブドウ]"
+ ["eeb3ba", :undef], # [PEACH] U+EB39 -> "[モモ]"
+ ["eeb59e", "ee8d85"], # [GREEN APPLE] U+EB5A -> U+E345
+ ["ef8381", "ee9099"], # [EYES] U+E5A4 -> U+E419
+ ["ef8382", "ee909b"], # [EAR] U+E5A5 -> U+E41B
+ ["eeb2a4", "ee909a"], # [NOSE] U+EAD0 -> U+E41A
+ ["eeb2a5", "ee909c"], # [MOUTH] U+EAD1 -> U+E41C
+ ["eeb58b", "ee9089"], # [TONGUE] U+EB47 -> U+E409
+ ["eebfa2", "ee8c9c"], # [LIPSTICK] U+E509 -> U+E31C
+ ["eeb1b3", "ee8c9d"], # [NAIL POLISH] U+EAA0 -> U+E31D
+ ["eebfa4", "ee8c9e"], # [FACE MASSAGE] U+E50B -> U+E31E
+ ["eeb1b4", "ee8c9f"], # [HAIRCUT] U+EAA1 -> U+E31F
+ ["eeb1b5", "ee8ca0"], # [BARBER POLE] U+EAA2 -> U+E320
+ ["eebf95", "ee8081"], # [BOY] U+E4FC -> U+E001
+ ["eebf93", "ee8082"], # [GIRL] U+E4FA -> U+E002
+ ["eebf9a", :undef], # [FAMILY] U+E501 -> "[å®¶æ—]"
+ ["eeb190", "ee8592"], # [POLICE OFFICER] U+E5DD -> U+E152
+ ["eeb2af", "ee90a9"], # [WOMAN WITH BUNNY EARS] U+EADB -> U+E429
+ ["eeb2bd", :undef], # [BRIDE WITH VEIL] U+EAE9 -> "[花å«]"
+ ["eeb394", "ee9495"], # [WESTERN PERSON] U+EB13 -> U+E515
+ ["eeb395", "ee9496"], # [MAN WITH GUA PI MAO] U+EB14 -> U+E516
+ ["eeb396", "ee9497"], # [MAN WITH TURBAN] U+EB15 -> U+E517
+ ["eeb397", "ee9498"], # [OLDER MAN] U+EB16 -> U+E518
+ ["eeb398", "ee9499"], # [OLDER WOMAN] U+EB17 -> U+E519
+ ["eeb399", "ee949a"], # [BABY] U+EB18 -> U+E51A
+ ["eeb39a", "ee949b"], # [CONSTRUCTION WORKER] U+EB19 -> U+E51B
+ ["eeb39b", "ee949c"], # [PRINCESS] U+EB1A -> U+E51C
+ ["eeb588", :undef], # [JAPANESE OGRE] U+EB44 -> "[ãªã¾ã¯ã’]"
+ ["eeb589", :undef], # [JAPANESE GOBLIN] U+EB45 -> "[天狗]"
+ ["eebea4", "ee849b"], # [GHOST] U+E4CB -> U+E11B
+ ["ef83af", "ee818e"], # [BABY ANGEL] U+E5BF -> U+E04E
+ ["eebfa7", "ee848c"], # [EXTRATERRESTRIAL ALIEN] U+E50E -> U+E10C
+ ["eebf85", "ee84ab"], # [ALIEN MONSTER] U+E4EC -> U+E12B
+ ["eebf88", "ee849a"], # [IMP] U+E4EF -> U+E11A
+ ["eebf91", "ee849c"], # [SKULL] U+E4F8 -> U+E11C
+ ["eeb39d", "ee949f"], # [DANCER] U+EB1C -> U+E51F
+ ["eeb683", :undef], # [SNAIL] U+EB7E -> "[カタツムリ]"
+ ["eeb3a3", "ee94ad"], # [SNAKE] U+EB22 -> U+E52D
+ ["eeb3a4", "ee94ae"], # [CHICKEN] U+EB23 -> U+E52E
+ ["eeb3a5", "ee94af"], # [BOAR] U+EB24 -> U+E52F
+ ["eeb3a6", "ee94b0"], # [BACTRIAN CAMEL] U+EB25 -> U+E530
+ ["eeb3a0", "ee94a6"], # [ELEPHANT] U+EB1F -> U+E526
+ ["eeb3a1", "ee94a7"], # [KOALA] U+EB20 -> U+E527
+ ["ef83b7", "ee848a"], # [OCTOPUS] U+E5C7 -> U+E10A
+ ["eeb380", "ee9181"], # [SPIRAL SHELL] U+EAEC -> U+E441
+ ["eeb39f", "ee94a5"], # [BUG] U+EB1E -> U+E525
+ ["eebeb6", :undef], # [ANT] U+E4DD -> "[アリ]"
+ ["eeb59b", :undef], # [HONEYBEE] U+EB57 -> "[ミツãƒãƒ]"
+ ["eeb59c", :undef], # [LADY BEETLE] U+EB58 -> "[ã¦ã‚“ã¨ã†è™«]"
+ ["eeb39e", "ee94a2"], # [TROPICAL FISH] U+EB1D -> U+E522
+ ["eebeac", "ee8099"], # [BLOWFISH] U+E4D3 -> U+E019
+ ["eeb187", :undef], # [TURTLE] U+E5D4 -> "[カメ]"
+ ["eebeb9", "ee94a3"], # [BABY CHICK] U+E4E0 -> U+E523
+ ["eeb5ba", "ee94a3"], # [FRONT-FACING BABY CHICK] U+EB76 -> U+E523
+ ["eeb18e", "ee94a3"], # [HATCHING CHICK] U+E5DB -> U+E523
+ ["eebeb5", "ee8195"], # [PENGUIN] U+E4DC -> U+E055
+ ["eebeb8", "ee8192"], # [POODLE] U+E4DF -> U+E052
+ ["eeb39c", "ee94a0"], # [DOLPHIN] U+EB1B -> U+E520
+ ["ef83b2", "ee8193"], # [MOUSE FACE] U+E5C2 -> U+E053
+ ["ef83b0", "ee8190"], # [TIGER FACE] U+E5C0 -> U+E050
+ ["eebeb4", "ee818f"], # [CAT FACE] U+E4DB -> U+E04F
+ ["eebd88", "ee8194"], # [SPOUTING WHALE] U+E470 -> U+E054
+ ["eebeb1", "ee809a"], # [HORSE FACE] U+E4D8 -> U+E01A
+ ["eebeb2", "ee8489"], # [MONKEY FACE] U+E4D9 -> U+E109
+ ["eebeba", "ee8192"], # [DOG FACE] U+E4E1 -> U+E052
+ ["eebeb7", "ee848b"], # [PIG FACE] U+E4DE -> U+E10B
+ ["ef83b1", "ee8191"], # [BEAR FACE] U+E5C1 -> U+E051
+ ["eeb3a2", "ee94ab"], # [COW FACE] U+EB21 -> U+E52B
+ ["eebeb0", "ee94ac"], # [RABBIT FACE] U+E4D7 -> U+E52C
+ ["eebeb3", "ee94b1"], # [FROG FACE] U+E4DA -> U+E531
+ ["eebf87", "ee94b6"], # [PAW PRINTS] U+E4EE -> U+E536
+ ["eeb583", :undef], # [DRAGON FACE] U+EB3F -> "[è¾°]"
+ ["eeb58a", :undef], # [PANDA FACE] U+EB46 -> "[パンダ]"
+ ["eeb58c", "ee848b"], # [PIG NOSE] U+EB48 -> U+E10B
+ ["eebd8a", "ee8199"], # [ANGRY FACE] U+E472 -> U+E059
+ ["eeb5ab", "ee9083"], # [ANGUISHED FACE] U+EB67 -> U+E403
+ ["eeb29e", "ee9090"], # [ASTONISHED FACE] U+EACA -> U+E410
+ ["ef838b", "ee9086"], # [DIZZY FACE] U+E5AE -> U+E406
+ ["eeb29f", "ee908f"], # [EXASPERATED FACE] U+EACB -> U+E40F
+ ["eeb29d", "ee908e"], # [EXPRESSIONLESS FACE] U+EAC9 -> U+E40E
+ ["ef83b4", "ee8486"], # [FACE WITH HEART-SHAPED EYES] U+E5C4 -> U+E106
+ ["eeb295", "ee9084"], # [FACE WITH LOOK OF TRIUMPH] U+EAC1 -> U+E404
+ ["eebf80", "ee8485"], # [WINKING FACE WITH STUCK-OUT TONGUE] U+E4E7 -> U+E105
+ ["eeb2a3", "ee9098"], # [FACE THROWING A KISS] U+EACF -> U+E418
+ ["eeb2a2", "ee9097"], # [FACE KISSING] U+EACE -> U+E417
+ ["eeb29b", "ee908c"], # [FACE WITH MASK] U+EAC7 -> U+E40C
+ ["eeb29c", "ee908d"], # [FLUSHED FACE] U+EAC8 -> U+E40D
+ ["eebd89", "ee8197"], # [HAPPY FACE WITH OPEN MOUTH] U+E471 -> U+E057
+ ["eeb685", "ee9084"], # [HAPPY FACE WITH GRIN] U+EB80 -> U+E404
+ ["eeb5a8", "ee9092"], # [HAPPY AND CRYING FACE] U+EB64 -> U+E412
+ ["eeb2a1", "ee8196"], # [HAPPY FACE WITH WIDE MOUTH AND RAISED EYEBROWS] U+EACD -> U+E056
+ ["eebf94", "ee9094"], # [WHITE SMILING FACE] U+E4FB -> U+E414
+ ["eeb5ad", "ee9093"], # [CRYING FACE] U+EB69 -> U+E413
+ ["eebd8b", "ee9091"], # [LOUDLY CRYING FACE] U+E473 -> U+E411
+ ["eeb29a", "ee908b"], # [FEARFUL FACE] U+EAC6 -> U+E40B
+ ["eeb296", "ee9086"], # [PERSEVERING FACE] U+EAC2 -> U+E406
+ ["eeb5a1", "ee9096"], # [POUTING FACE] U+EB5D -> U+E416
+ ["eeb299", "ee908a"], # [RELIEVED FACE] U+EAC5 -> U+E40A
+ ["eeb297", "ee9087"], # [CONFOUNDED FACE] U+EAC3 -> U+E407
+ ["eeb294", "ee9083"], # [PENSIVE FACE] U+EAC0 -> U+E403
+ ["ef83b5", "ee8487"], # [FACE SCREAMING IN FEAR] U+E5C5 -> U+E107
+ ["eeb298", "ee9088"], # [SLEEPY FACE] U+EAC4 -> U+E408
+ ["eeb293", "ee9082"], # [SMIRKING FACE] U+EABF -> U+E402
+ ["ef83b6", "ee8488"], # [FACE WITH COLD SWEAT] U+E5C6 -> U+E108
+ ["eebd8c", "ee9086"], # [TIRED FACE] U+E474 -> U+E406
+ ["ef83b3", "ee9085"], # [WINKING FACE] U+E5C3 -> U+E405
+ ["eeb5a5", "ee8197"], # [CAT FACE WITH OPEN MOUTH] U+EB61 -> U+E057
+ ["eeb684", "ee9084"], # [HAPPY CAT FACE WITH GRIN] U+EB7F -> U+E404
+ ["eeb5a7", "ee9092"], # [HAPPY AND CRYING CAT FACE] U+EB63 -> U+E412
+ ["eeb5a4", "ee9098"], # [CAT FACE KISSING] U+EB60 -> U+E418
+ ["eeb5a9", "ee8486"], # [CAT FACE WITH HEART-SHAPED EYES] U+EB65 -> U+E106
+ ["eeb5ac", "ee9093"], # [CRYING CAT FACE] U+EB68 -> U+E413
+ ["eeb5a2", "ee9096"], # [POUTING CAT FACE] U+EB5E -> U+E416
+ ["eeb5ae", "ee9084"], # [CAT FACE WITH TIGHTLY-CLOSED LIPS] U+EB6A -> U+E404
+ ["eeb5aa", "ee9083"], # [ANGUISHED CAT FACE] U+EB66 -> U+E403
+ ["eeb2ab", "ee90a3"], # [FACE WITH NO GOOD GESTURE] U+EAD7 -> U+E423
+ ["eeb2ac", "ee90a4"], # [FACE WITH OK GESTURE] U+EAD8 -> U+E424
+ ["eeb2ad", "ee90a6"], # [PERSON BOWING DEEPLY] U+EAD9 -> U+E426
+ ["eeb594", :undef], # [SEE-NO-EVIL MONKEY] U+EB50 -> "(/_ï¼¼)"
+ ["eeb595", :undef], # [SPEAK-NO-EVIL MONKEY] U+EB51 -> "(・×・)"
+ ["eeb596", :undef], # [HEAR-NO-EVIL MONKEY] U+EB52 -> "|(・×・)|"
+ ["eeb68a", "ee8092"], # [PERSON RAISING ONE HAND] U+EB85 -> U+E012
+ ["eeb68b", "ee90a7"], # [PERSON RAISING BOTH HANDS IN CELEBRATION] U+EB86 -> U+E427
+ ["eeb68c", "ee9083"], # [PERSON FROWNING] U+EB87 -> U+E403
+ ["eeb68d", "ee9096"], # [PERSON WITH POUTING FACE] U+EB88 -> U+E416
+ ["eeb2a6", "ee909d"], # [PERSON WITH FOLDED HANDS] U+EAD2 -> U+E41D
+ ["eebe84", "ee80b6"], # [HOUSE BUILDING] U+E4AB -> U+E036
+ ["ef83a0", "ee80b6"], # [HOUSE WITH GARDEN] U+EB09 -> U+E036
+ ["eebe86", "ee80b8"], # [OFFICE BUILDING] U+E4AD -> U+E038
+ ["eeb191", "ee8593"], # [JAPANESE POST OFFICE] U+E5DE -> U+E153
+ ["eeb192", "ee8595"], # [HOSPITAL] U+E5DF -> U+E155
+ ["eebe83", "ee858d"], # [BANK] U+E4AA -> U+E14D
+ ["eebdbb", "ee8594"], # [AUTOMATED TELLER MACHINE] U+E4A3 -> U+E154
+ ["eeb194", "ee8598"], # [HOTEL] U+EA81 -> U+E158
+ ["eeb387", "ee9481"], # [LOVE HOTEL] U+EAF3 -> U+E501
+ ["eebdbc", "ee8596"], # [CONVENIENCE STORE] U+E4A4 -> U+E156
+ ["eeb193", "ee8597"], # [SCHOOL] U+EA80 -> U+E157
+ ["ef83ab", "ee80b7"], # [CHURCH] U+E5BB -> U+E037
+ ["eeb182", "ee84a1"], # [FOUNTAIN] U+E5CF -> U+E121
+ ["eeb38a", "ee9484"], # [DEPARTMENT STORE] U+EAF6 -> U+E504
+ ["eeb38b", "ee9485"], # [JAPANESE CASTLE] U+EAF7 -> U+E505
+ ["eeb38c", "ee9486"], # [EUROPEAN CASTLE] U+EAF8 -> U+E506
+ ["eeb38d", "ee9488"], # [FACTORY] U+EAF9 -> U+E508
+ ["eebe82", "ee8882"], # [ANCHOR] U+E4A9 -> U+E202
+ ["eebe96", "ee8c8b"], # [IZAKAYA LANTERN] U+E4BD -> U+E30B
+ ["ef83ad", "ee80bb"], # [MOUNT FUJI] U+E5BD -> U+E03B
+ ["eebe99", "ee9489"], # [TOKYO TOWER] U+E4C0 -> U+E509
+ ["ef828f", :undef], # [SILHOUETTE OF JAPAN] U+E572 -> "[日本地図]"
+ ["eeb5b0", :undef], # [MOYAI] U+EB6C -> "[モアイ]"
+ ["ef83a7", "ee8087"], # [MANS SHOE] U+E5B7 -> U+E007
+ ["eeb3ac", "ee8087"], # [ATHLETIC SHOE] U+EB2B -> U+E007
+ ["eebfb3", "ee84be"], # [HIGH-HEELED SHOE] U+E51A -> U+E13E
+ ["eeb1b2", "ee8c9b"], # [WOMANS BOOTS] U+EA9F -> U+E31B
+ ["eeb3ab", "ee94b6"], # [FOOTPRINTS] U+EB2A -> U+E536
+ ["eebf97", :undef], # [EYEGLASSES] U+E4FE -> "[メガãƒ]"
+ ["ef83a6", "ee8086"], # [T-SHIRT] U+E5B6 -> U+E006
+ ["eeb5bb", :undef], # [JEANS] U+EB77 -> "[ジーンズ]"
+ ["ef83b9", "ee848e"], # [CROWN] U+E5C9 -> U+E10E
+ ["eeb1a6", "ee8c82"], # [NECKTIE] U+EA93 -> U+E302
+ ["eeb1b1", "ee8c98"], # [WOMANS HAT] U+EA9E -> U+E318
+ ["eeb5af", "ee8c99"], # [DRESS] U+EB6B -> U+E319
+ ["eeb1b6", "ee8ca1"], # [KIMONO] U+EAA3 -> U+E321
+ ["eeb1b7", "ee8ca2"], # [BIKINI] U+EAA4 -> U+E322
+ ["eebfa6", "ee8086"], # [WOMANS CLOTHES] U+E50D -> U+E006
+ ["eebf9d", :undef], # [PURSE] U+E504 -> "[財布]"
+ ["eebdb4", "ee8ca3"], # [HANDBAG] U+E49C -> U+E323
+ ["eebea0", "ee84af"], # [MONEY BAG] U+E4C7 -> U+E12F
+ ["eeb18f", "ee858a"], # [CHART WITH UPWARDS TREND AND YEN SIGN] U+E5DC -> U+E14A
+ ["ef8296", "ee84af"], # [HEAVY DOLLAR SIGN] U+E579 -> U+E12F
+ ["ef8299", :undef], # [CREDIT CARD] U+E57C -> "[カード]"
+ ["ef829a", :undef], # [BANKNOTE WITH YEN SIGN] U+E57D -> "ï¿¥"
+ ["ef82a2", "ee84af"], # [BANKNOTE WITH DOLLAR SIGN] U+E585 -> U+E12F
+ ["eeb59f", :undef], # [MONEY WITH WINGS] U+EB5B -> "[飛んã§ã„ããŠé‡‘]"
+ ["eeb392", "ee9493"], # [REGIONAL INDICATOR SYMBOL LETTERS CN] U+EB11 -> U+E513
+ ["eeb38f", "ee948e"], # [REGIONAL INDICATOR SYMBOL LETTERS DE] U+EB0E -> U+E50E
+ ["eeb188", "ee9491"], # [REGIONAL INDICATOR SYMBOL LETTERS ES] U+E5D5 -> U+E511
+ ["eeb38e", "ee948d"], # [REGIONAL INDICATOR SYMBOL LETTERS FR] U+EAFA -> U+E50D
+ ["eeb391", "ee9490"], # [REGIONAL INDICATOR SYMBOL LETTERS GB] U+EB10 -> U+E510
+ ["eeb390", "ee948f"], # [REGIONAL INDICATOR SYMBOL LETTERS IT] U+EB0F -> U+E50F
+ ["eebea5", "ee948b"], # [REGIONAL INDICATOR SYMBOL LETTERS JP] U+E4CC -> U+E50B
+ ["eeb393", "ee9494"], # [REGIONAL INDICATOR SYMBOL LETTERS KR] U+EB12 -> U+E514
+ ["eeb189", "ee9492"], # [REGIONAL INDICATOR SYMBOL LETTERS RU] U+E5D6 -> U+E512
+ ["ef8290", "ee948c"], # [REGIONAL INDICATOR SYMBOL LETTERS US] U+E573 -> U+E50C
+ ["eebd93", "ee849d"], # [FIRE] U+E47B -> U+E11D
+ ["ef82a0", :undef], # [ELECTRIC TORCH] U+E583 -> "[æ‡ä¸­é›»ç¯]"
+ ["ef82a4", :undef], # [WRENCH] U+E587 -> "[レンãƒ]"
+ ["ef83bb", "ee8496"], # [HAMMER] U+E5CB -> U+E116
+ ["ef829e", :undef], # [NUT AND BOLT] U+E581 -> "[ãƒã‚¸]"
+ ["ef829c", :undef], # [HOCHO] U+E57F -> "[包ä¸]"
+ ["eebfa3", "ee8493"], # [PISTOL] U+E50A -> U+E113
+ ["eeb1a2", "ee88be"], # [CRYSTAL BALL] U+EA8F -> U+E23E
+ ["eebd98", "ee8889"], # [JAPANESE SYMBOL FOR BEGINNER] U+E480 -> U+E209
+ ["eebfa9", "ee84bb"], # [SYRINGE] U+E510 -> U+E13B
+ ["eeb1ad", "ee8c8f"], # [PILL] U+EA9A -> U+E30F
+ ["eeb3a7", "ee94b2"], # [NEGATIVE SQUARED LATIN CAPITAL LETTER A] U+EB26 -> U+E532
+ ["eeb3a8", "ee94b3"], # [NEGATIVE SQUARED LATIN CAPITAL LETTER B] U+EB27 -> U+E533
+ ["eeb3aa", "ee94b4"], # [NEGATIVE SQUARED AB] U+EB29 -> U+E534
+ ["eeb3a9", "ee94b5"], # [NEGATIVE SQUARED LATIN CAPITAL LETTER O] U+EB28 -> U+E535
+ ["ef82bc", "ee8c94"], # [RIBBON] U+E59F -> U+E314
+ ["eebea8", "ee8492"], # [WRAPPED PRESENT] U+E4CF -> U+E112
+ ["ef82bd", "ee8d8b"], # [BIRTHDAY CAKE] U+E5A0 -> U+E34B
+ ["eebea2", "ee80b3"], # [CHRISTMAS TREE] U+E4C9 -> U+E033
+ ["eeb384", "ee9188"], # [FATHER CHRISTMAS] U+EAF0 -> U+E448
+ ["eeb18c", "ee8583"], # [CROSSED FLAGS] U+E5D9 -> U+E143
+ ["ef83bc", "ee8497"], # [FIREWORKS] U+E5CC -> U+E117
+ ["eeb1ae", "ee8c90"], # [BALLOON] U+EA9B -> U+E310
+ ["eeb1af", "ee8c92"], # [PARTY POPPER] U+EA9C -> U+E312
+ ["eeb2b7", "ee90b6"], # [PINE DECORATION] U+EAE3 -> U+E436
+ ["eeb2b8", "ee90b8"], # [JAPANESE DOLLS] U+EAE4 -> U+E438
+ ["eeb2b9", "ee90b9"], # [GRADUATION CAP] U+EAE5 -> U+E439
+ ["eeb2ba", "ee90ba"], # [SCHOOL SATCHEL] U+EAE6 -> U+E43A
+ ["eeb2bb", "ee90bb"], # [CARP STREAMER] U+EAE7 -> U+E43B
+ ["eeb2bf", "ee9180"], # [FIREWORK SPARKLER] U+EAEB -> U+E440
+ ["eeb381", "ee9182"], # [WIND CHIME] U+EAED -> U+E442
+ ["eeb382", "ee9185"], # [JACK-O-LANTERN] U+EAEE -> U+E445
+ ["eebd87", :undef], # [CONFETTI BALL] U+E46F -> "[オメデトウ]"
+ ["eeb581", :undef], # [TANABATA TREE] U+EB3D -> "[七夕]"
+ ["eeb383", "ee9186"], # [MOON VIEWING CEREMONY] U+EAEF -> U+E446
+ ["ef82b8", :undef], # [PAGER] U+E59B -> "[ãƒã‚±ãƒ™ãƒ«]"
+ ["ef82b3", "ee8089"], # [BLACK TELEPHONE] U+E596 -> U+E009
+ ["eebfb7", "ee8089"], # [TELEPHONE RECEIVER] U+E51E -> U+E009
+ ["ef82a5", "ee808a"], # [MOBILE PHONE] U+E588 -> U+E00A
+ ["ef839f", "ee8484"], # [MOBILE PHONE WITH RIGHTWARDS ARROW AT LEFT] U+EB08 -> U+E104
+ ["eeb1a5", "ee8c81"], # [MEMO] U+EA92 -> U+E301
+ ["eebfb9", "ee808b"], # [FAX MACHINE] U+E520 -> U+E00B
+ ["eebfba", "ee8483"], # [ENVELOPE] U+E521 -> U+E103
+ ["ef82ae", "ee8483"], # [INCOMING ENVELOPE] U+E591 -> U+E103
+ ["eeb5a6", "ee8483"], # [ENVELOPE WITH DOWNWARDS ARROW ABOVE] U+EB62 -> U+E103
+ ["eebfb4", "ee8481"], # [CLOSED MAILBOX WITH LOWERED FLAG] U+E51B -> U+E101
+ ["ef83a1", "ee8481"], # [CLOSED MAILBOX WITH RAISED FLAG] U+EB0A -> U+E101
+ ["ef82a8", :undef], # [NEWSPAPER] U+E58B -> "[æ–°èž]"
+ ["eebe81", "ee858b"], # [SATELLITE ANTENNA] U+E4A8 -> U+E14B
+ ["ef82af", :undef], # [OUTBOX TRAY] U+E592 -> "[é€ä¿¡BOX]"
+ ["ef82b0", :undef], # [INBOX TRAY] U+E593 -> "[å—ä¿¡BOX]"
+ ["eebfb8", "ee8492"], # [PACKAGE] U+E51F -> U+E112
+ ["eeb5b5", "ee8483"], # [E-MAIL SYMBOL] U+EB71 -> U+E103
+ ["ef8394", :undef], # [INPUT SYMBOL FOR LATIN CAPITAL LETTERS] U+EAFD -> "[ABCD]"
+ ["ef8395", :undef], # [INPUT SYMBOL FOR LATIN SMALL LETTERS] U+EAFE -> "[abcd]"
+ ["ef8396", :undef], # [INPUT SYMBOL FOR NUMBERS] U+EAFF -> "[1234]"
+ ["ef8397", :undef], # [INPUT SYMBOL FOR SYMBOLS] U+EB00 -> "[記å·]"
+ ["eeb599", :undef], # [INPUT SYMBOL FOR LATIN LETTERS] U+EB55 -> "[ABC]"
+ ["ef839a", :undef], # [BLACK NIB] U+EB03 -> "[ペン]"
+ ["ef83a8", "ee808c"], # [PERSONAL COMPUTER] U+E5B8 -> U+E00C
+ ["eebdb9", "ee8c81"], # [PENCIL] U+E4A1 -> U+E301
+ ["eebdb8", :undef], # [PAPERCLIP] U+E4A0 -> "[クリップ]"
+ ["eeb181", "ee849e"], # [BRIEFCASE] U+E5CE -> U+E11E
+ ["ef829f", "ee8c96"], # [MINIDISC] U+E582 -> U+E316
+ ["ef81be", "ee8c96"], # [FLOPPY DISK] U+E562 -> U+E316
+ ["eebfa5", "ee84a6"], # [OPTICAL DISC] U+E50C -> U+E126
+ ["eebfaf", "ee8c93"], # [BLACK SCISSORS] U+E516 -> U+E313
+ ["ef81bc", :undef], # [ROUND PUSHPIN] U+E560 -> "[ç”»ã³ã‚‡ã†]"
+ ["ef81bd", "ee8c81"], # [PAGE WITH CURL] U+E561 -> U+E301
+ ["ef8286", "ee8c81"], # [PAGE FACING UP] U+E569 -> U+E301
+ ["ef8280", :undef], # [CALENDAR] U+E563 -> "[カレンダー]"
+ ["ef82ac", :undef], # [FILE FOLDER] U+E58F -> "[フォルダ]"
+ ["ef82ad", :undef], # [OPEN FILE FOLDER] U+E590 -> "[フォルダ]"
+ ["ef8288", "ee8588"], # [NOTEBOOK] U+E56B -> U+E148
+ ["eebdb7", "ee8588"], # [OPEN BOOK] U+E49F -> U+E148
+ ["eebdb5", "ee8588"], # [NOTEBOOK WITH DECORATIVE COVER] U+E49D -> U+E148
+ ["ef8285", "ee8588"], # [CLOSED BOOK] U+E568 -> U+E148
+ ["ef8282", "ee8588"], # [GREEN BOOK] U+E565 -> U+E148
+ ["ef8283", "ee8588"], # [BLUE BOOK] U+E566 -> U+E148
+ ["ef8284", "ee8588"], # [ORANGE BOOK] U+E567 -> U+E148
+ ["ef828c", "ee8588"], # [BOOKS] U+E56F -> U+E148
+ ["eebfb6", :undef], # [NAME BADGE] U+E51D -> "[åæœ­]"
+ ["ef81bb", :undef], # [SCROLL] U+E55F -> "[スクロール]"
+ ["ef8281", "ee8c81"], # [CLIPBOARD] U+E564 -> U+E301
+ ["ef8287", :undef], # [TEAR-OFF CALENDAR] U+E56A -> "[カレンダー]"
+ ["ef8291", "ee858a"], # [BAR CHART] U+E574 -> U+E14A
+ ["ef8292", "ee858a"], # [CHART WITH UPWARDS TREND] U+E575 -> U+E14A
+ ["ef8293", :undef], # [CHART WITH DOWNWARDS TREND] U+E576 -> "[グラフ]"
+ ["ef8289", "ee8588"], # [CARD INDEX] U+E56C -> U+E148
+ ["ef828a", :undef], # [PUSHPIN] U+E56D -> "[ç”»ã³ã‚‡ã†]"
+ ["ef828b", "ee8588"], # [LEDGER] U+E56E -> U+E148
+ ["ef828d", :undef], # [STRAIGHT RULER] U+E570 -> "[定è¦]"
+ ["eebdba", :undef], # [TRIANGULAR RULER] U+E4A2 -> "[三角定è¦]"
+ ["ef83a2", "ee8c81"], # [BOOKMARK TABS] U+EB0B -> U+E301
+ ["eebe93", "ee8096"], # [BASEBALL] U+E4BA -> U+E016
+ ["ef82b6", "ee8094"], # [FLAG IN HOLE] U+E599 -> U+E014
+ ["eebe90", "ee8095"], # [TENNIS RACQUET AND BALL] U+E4B7 -> U+E015
+ ["eebe8f", "ee8098"], # [SOCCER BALL] U+E4B6 -> U+E018
+ ["eeb280", "ee8093"], # [SKI AND SKI BOOT] U+EAAC -> U+E013
+ ["ef82b7", "ee90aa"], # [BASKETBALL AND HOOP] U+E59A -> U+E42A
+ ["eebe92", "ee84b2"], # [CHEQUERED FLAG] U+E4B9 -> U+E132
+ ["eebe91", :undef], # [SNOWBOARDER] U+E4B8 -> "[スノボ]"
+ ["eebd83", "ee8495"], # [RUNNER] U+E46B -> U+E115
+ ["eeb585", "ee8097"], # [SURFER] U+EB41 -> U+E017
+ ["eeb186", "ee84b1"], # [TROPHY] U+E5D3 -> U+E131
+ ["eebe94", "ee90ab"], # [AMERICAN FOOTBALL] U+E4BB -> U+E42B
+ ["eeb2b2", "ee90ad"], # [SWIMMER] U+EADE -> U+E42D
+ ["eebe8e", "ee809e"], # [TRAIN] U+E4B5 -> U+E01E
+ ["ef83ac", "ee90b4"], # [METRO] U+E5BC -> U+E434
+ ["eebe89", "ee809f"], # [HIGH-SPEED TRAIN WITH BULLET NOSE] U+E4B0 -> U+E01F
+ ["eebe8a", "ee809b"], # [AUTOMOBILE] U+E4B1 -> U+E01B
+ ["eebe88", "ee8599"], # [ONCOMING BUS] U+E4AF -> U+E159
+ ["eebe80", "ee8590"], # [BUS STOP] U+E4A7 -> U+E150
+ ["eeb195", "ee8882"], # [SHIP] U+EA82 -> U+E202
+ ["eebe8c", "ee809d"], # [AIRPLANE] U+E4B3 -> U+E01D
+ ["eebe8d", "ee809c"], # [SAILBOAT] U+E4B4 -> U+E01C
+ ["eeb5b1", "ee80b9"], # [STATION] U+EB6D -> U+E039
+ ["ef83b8", "ee848d"], # [ROCKET] U+E5C8 -> U+E10D
+ ["eebe8b", "ee90af"], # [DELIVERY TRUCK] U+E4B2 -> U+E42F
+ ["eeb2b3", "ee90b0"], # [FIRE ENGINE] U+EADF -> U+E430
+ ["eeb2b4", "ee90b1"], # [AMBULANCE] U+EAE0 -> U+E431
+ ["eeb2b5", "ee90b2"], # [POLICE CAR] U+EAE1 -> U+E432
+ ["ef828e", "ee80ba"], # [FUEL PUMP] U+E571 -> U+E03A
+ ["eebdbe", "ee858f"], # [NEGATIVE SQUARED LATIN CAPITAL LETTER P] U+E4A6 -> U+E14F
+ ["eebd82", "ee858e"], # [HORIZONTAL TRAFFIC LIGHT] U+E46A -> U+E14E
+ ["eeb18a", "ee84b7"], # [CONSTRUCTION SIGN] U+E5D7 -> U+E137
+ ["eeb5b7", "ee90b2"], # [POLICE CARS REVOLVING LIGHT] U+EB73 -> U+E432
+ ["eebe95", "ee84a3"], # [HOT SPRINGS] U+E4BC -> U+E123
+ ["eeb183", "ee84a2"], # [TENT] U+E5D0 -> U+E122
+ ["eebd85", "ee84a4"], # [FERRIS WHEEL] U+E46D -> U+E124
+ ["eeb2b6", "ee90b3"], # [ROLLER COASTER] U+EAE2 -> U+E433
+ ["eeb586", "ee8099"], # [FISHING POLE AND FISH] U+EB42 -> U+E019
+ ["eebf9c", "ee80bc"], # [MICROPHONE] U+E503 -> U+E03C
+ ["eebfb0", "ee80bd"], # [MOVIE CAMERA] U+E517 -> U+E03D
+ ["eebfa1", "ee8c8a"], # [HEADPHONE] U+E508 -> U+E30A
+ ["ef82b9", "ee9482"], # [ARTIST PALETTE] U+E59C -> U+E502
+ ["eeb389", "ee9483"], # [TOP HAT] U+EAF5 -> U+E503
+ ["ef82bb", :undef], # [CIRCUS TENT] U+E59E -> "[イベント]"
+ ["eebdb6", "ee84a5"], # [TICKET] U+E49E -> U+E125
+ ["eebe97", "ee8ca4"], # [CLAPPER BOARD] U+E4BE -> U+E324
+ ["ef82ba", "ee9483"], # [PERFORMING ARTS] U+E59D -> U+E503
+ ["eebe9f", :undef], # [VIDEO GAME] U+E4C6 -> "[ゲーム]"
+ ["eeb184", "ee84ad"], # [MAHJONG TILE RED DRAGON] U+E5D1 -> U+E12D
+ ["eebe9e", "ee84b0"], # [DIRECT HIT] U+E4C5 -> U+E130
+ ["eebd86", "ee84b3"], # [SLOT MACHINE] U+E46E -> U+E133
+ ["eeb2b1", "ee90ac"], # [BILLIARDS] U+EADD -> U+E42C
+ ["eebea1", :undef], # [GAME DIE] U+E4C8 -> "[サイコロ]"
+ ["eeb587", :undef], # [BOWLING] U+EB43 -> "[ボーリング]"
+ ["eeb5b2", :undef], # [FLOWER PLAYING CARDS] U+EB6E -> "[花札]"
+ ["eeb5b3", :undef], # [PLAYING CARD BLACK JOKER] U+EB6F -> "[ジョーカー]"
+ ["ef83ae", "ee80be"], # [MUSICAL NOTE] U+E5BE -> U+E03E
+ ["eebf9e", "ee8ca6"], # [MULTIPLE MUSICAL NOTES] U+E505 -> U+E326
+ ["eebf9f", "ee8181"], # [GUITAR] U+E506 -> U+E041
+ ["eeb584", :undef], # [MUSICAL KEYBOARD] U+EB40 -> "[ピアノ]"
+ ["eeb2b0", "ee8182"], # [TRUMPET] U+EADC -> U+E042
+ ["eebfa0", :undef], # [VIOLIN] U+E507 -> "[ãƒã‚¤ã‚ªãƒªãƒ³]"
+ ["eeb2a0", "ee8ca6"], # [MUSICAL SCORE] U+EACC -> U+E326
+ ["eebfae", "ee8088"], # [CAMERA] U+E515 -> U+E008
+ ["ef829b", "ee80bd"], # [VIDEO CAMERA] U+E57E -> U+E03D
+ ["eebf9b", "ee84aa"], # [TELEVISION] U+E502 -> U+E12A
+ ["ef83a9", "ee84a8"], # [RADIO] U+E5B9 -> U+E128
+ ["ef829d", "ee84a9"], # [VIDEOCASSETTE] U+E580 -> U+E129
+ ["eebf84", "ee8083"], # [KISS MARK] U+E4EB -> U+E003
+ ["eeb5bc", "ee8483ee8ca8"], # [LOVE LETTER] U+EB78 -> U+E103 U+E328
+ ["eebfad", "ee80b4"], # [RING] U+E514 -> U+E034
+ ["ef83ba", "ee8491"], # [KISS] U+E5CA -> U+E111
+ ["eeb1a8", "ee8c86"], # [BOUQUET] U+EA95 -> U+E306
+ ["eeb2ae", "ee90a5"], # [COUPLE WITH HEART] U+EADA -> U+E425
+ ["eeb196", "ee8887"], # [NO ONE UNDER EIGHTEEN SYMBOL] U+EA83 -> U+E207
+ ["ef81b4", "ee898e"], # [COPYRIGHT SIGN] U+E558 -> U+E24E
+ ["ef81b5", "ee898f"], # [REGISTERED SIGN] U+E559 -> U+E24F
+ ["ef81aa", "ee94b7"], # [TRADE MARK SIGN] U+E54E -> U+E537
+ ["ef818f", :undef], # [INFORMATION SOURCE] U+E533 -> "[i]"
+ ["eeb689", "ee8890"], # [HASH KEY] U+EB84 -> U+E210
+ ["eebfbb", "ee889c"], # [KEYCAP 1] U+E522 -> U+E21C
+ ["eebfbc", "ee889d"], # [KEYCAP 2] U+E523 -> U+E21D
+ ["ef8180", "ee889e"], # [KEYCAP 3] U+E524 -> U+E21E
+ ["ef8181", "ee889f"], # [KEYCAP 4] U+E525 -> U+E21F
+ ["ef8182", "ee88a0"], # [KEYCAP 5] U+E526 -> U+E220
+ ["ef8183", "ee88a1"], # [KEYCAP 6] U+E527 -> U+E221
+ ["ef8184", "ee88a2"], # [KEYCAP 7] U+E528 -> U+E222
+ ["ef8185", "ee88a3"], # [KEYCAP 8] U+E529 -> U+E223
+ ["ef8186", "ee88a4"], # [KEYCAP 9] U+E52A -> U+E224
+ ["ef8389", "ee88a5"], # [KEYCAP 0] U+E5AC -> U+E225
+ ["ef8187", :undef], # [KEYCAP TEN] U+E52B -> "[10]"
+ ["eeb197", "ee888b"], # [ANTENNA WITH BARS] U+EA84 -> U+E20B
+ ["eeb1a3", "ee8990"], # [VIBRATION MODE] U+EA90 -> U+E250
+ ["eeb1a4", "ee8991"], # [MOBILE PHONE OFF] U+EA91 -> U+E251
+ ["eebeaf", "ee84a0"], # [HAMBURGER] U+E4D6 -> U+E120
+ ["eebeae", "ee8d82"], # [RICE BALL] U+E4D5 -> U+E342
+ ["eebea9", "ee8186"], # [SHORTCAKE] U+E4D0 -> U+E046
+ ["ef8391", "ee8d80"], # [STEAMING BOWL] U+E5B4 -> U+E340
+ ["eeb283", "ee8cb9"], # [BREAD] U+EAAF -> U+E339
+ ["eebeaa", "ee8587"], # [COOKING] U+E4D1 -> U+E147
+ ["eeb284", "ee8cba"], # [SOFT ICE CREAM] U+EAB0 -> U+E33A
+ ["eeb285", "ee8cbb"], # [FRENCH FRIES] U+EAB1 -> U+E33B
+ ["eeb286", "ee8cbc"], # [DANGO] U+EAB2 -> U+E33C
+ ["eeb287", "ee8cbd"], # [RICE CRACKER] U+EAB3 -> U+E33D
+ ["eeb288", "ee8cbe"], # [COOKED RICE] U+EAB4 -> U+E33E
+ ["eeb289", "ee8cbf"], # [SPAGHETTI] U+EAB5 -> U+E33F
+ ["eeb28a", "ee8d81"], # [CURRY AND RICE] U+EAB6 -> U+E341
+ ["eeb28b", "ee8d83"], # [ODEN] U+EAB7 -> U+E343
+ ["eeb28c", "ee8d84"], # [SUSHI] U+EAB8 -> U+E344
+ ["eeb291", "ee8d8c"], # [BENTO BOX] U+EABD -> U+E34C
+ ["eeb292", "ee8d8d"], # [POT OF FOOD] U+EABE -> U+E34D
+ ["eeb2be", "ee90bf"], # [SHAVED ICE] U+EAEA -> U+E43F
+ ["eebe9d", :undef], # [MEAT ON BONE] U+E4C4 -> "[肉]"
+ ["eebf86", :undef], # [FISH CAKE WITH SWIRL DESIGN] U+E4ED -> "[ãªã‚‹ã¨]"
+ ["eeb3bb", :undef], # [ROASTED SWEET POTATO] U+EB3A -> "[ã‚„ãã„ã‚‚]"
+ ["eeb3bc", :undef], # [SLICE OF PIZZA] U+EB3B -> "[ピザ]"
+ ["eeb580", :undef], # [POULTRY LEG] U+EB3C -> "[ãƒã‚­ãƒ³]"
+ ["eeb58e", :undef], # [ICE CREAM] U+EB4A -> "[アイスクリーム]"
+ ["eeb58f", :undef], # [DOUGHNUT] U+EB4B -> "[ドーナツ]"
+ ["eeb590", :undef], # [COOKIE] U+EB4C -> "[クッキー]"
+ ["eeb591", :undef], # [CHOCOLATE BAR] U+EB4D -> "[ãƒãƒ§ã‚³]"
+ ["eeb592", :undef], # [CANDY] U+EB4E -> "[キャンディ]"
+ ["eeb593", :undef], # [LOLLIPOP] U+EB4F -> "[キャンディ]"
+ ["eeb59a", :undef], # [CUSTARD] U+EB56 -> "[プリン]"
+ ["eeb59d", :undef], # [HONEY POT] U+EB59 -> "[ãƒãƒãƒŸãƒ„]"
+ ["eeb5b4", :undef], # [FRIED SHRIMP] U+EB70 -> "[エビフライ]"
+ ["eebe85", "ee8183"], # [FORK AND KNIFE] U+E4AC -> U+E043
+ ["ef82b4", "ee8185"], # [HOT BEVERAGE] U+E597 -> U+E045
+ ["eebe9b", "ee8184"], # [COCKTAIL GLASS] U+E4C2 -> U+E044
+ ["eebe9c", "ee8187"], # [BEER MUG] U+E4C3 -> U+E047
+ ["eeb282", "ee8cb8"], # [TEACUP WITHOUT HANDLE] U+EAAE -> U+E338
+ ["eeb1aa", "ee8c8b"], # [SAKE BOTTLE AND CUP] U+EA97 -> U+E30B
+ ["eebe9a", "ee8184"], # [WINE GLASS] U+E4C1 -> U+E044
+ ["eeb1ab", "ee8c8c"], # [CLINKING BEER MUGS] U+EA98 -> U+E30C
+ ["eeb582", "ee8184"], # [TROPICAL DRINK] U+EB3E -> U+E044
+ ["ef81b1", "ee88b6"], # [NORTH EAST ARROW] U+E555 -> U+E236
+ ["ef81a9", "ee88b8"], # [SOUTH EAST ARROW] U+E54D -> U+E238
+ ["ef81a8", "ee88b7"], # [NORTH WEST ARROW] U+E54C -> U+E237
+ ["ef81b2", "ee88b9"], # [SOUTH WEST ARROW] U+E556 -> U+E239
+ ["eeb3ae", "ee88b6"], # [ARROW POINTING RIGHTWARDS THEN CURVING UPWARDS] U+EB2D -> U+E236
+ ["eeb3af", "ee88b8"], # [ARROW POINTING RIGHTWARDS THEN CURVING DOWNWARDS] U+EB2E -> U+E238
+ ["eeb5be", :undef], # [LEFT RIGHT ARROW] U+EB7A -> "⇔"
+ ["eeb680", :undef], # [UP DOWN ARROW] U+EB7B -> "↑↓"
+ ["ef819b", "ee88b2"], # [UPWARDS BLACK ARROW] U+E53F -> U+E232
+ ["ef819c", "ee88b3"], # [DOWNWARDS BLACK ARROW] U+E540 -> U+E233
+ ["ef81ae", "ee88b4"], # [BLACK RIGHTWARDS ARROW] U+E552 -> U+E234
+ ["ef81af", "ee88b5"], # [LEFTWARDS BLACK ARROW] U+E553 -> U+E235
+ ["ef818a", "ee88ba"], # [BLACK RIGHT-POINTING TRIANGLE] U+E52E -> U+E23A
+ ["ef8189", "ee88bb"], # [BLACK LEFT-POINTING TRIANGLE] U+E52D -> U+E23B
+ ["ef818c", "ee88bc"], # [BLACK RIGHT-POINTING DOUBLE TRIANGLE] U+E530 -> U+E23C
+ ["ef818b", "ee88bd"], # [BLACK LEFT-POINTING DOUBLE TRIANGLE] U+E52F -> U+E23D
+ ["ef81a1", :undef], # [BLACK UP-POINTING DOUBLE TRIANGLE] U+E545 -> "â–²"
+ ["ef81a0", :undef], # [BLACK DOWN-POINTING DOUBLE TRIANGLE] U+E544 -> "â–¼"
+ ["ef81b6", :undef], # [UP-POINTING RED TRIANGLE] U+E55A -> "â–²"
+ ["ef81b7", :undef], # [DOWN-POINTING RED TRIANGLE] U+E55B -> "â–¼"
+ ["ef819f", :undef], # [UP-POINTING SMALL RED TRIANGLE] U+E543 -> "â–²"
+ ["ef819e", :undef], # [DOWN-POINTING SMALL RED TRIANGLE] U+E542 -> "â–¼"
+ ["eeb281", "ee8cb2"], # [HEAVY LARGE CIRCLE] U+EAAD -> U+E332
+ ["ef81ac", "ee8cb3"], # [CROSS MARK] U+E550 -> U+E333
+ ["ef81ad", "ee8cb3"], # [NEGATIVE SQUARED CROSS MARK] U+E551 -> U+E333
+ ["eebd9a", "ee80a1"], # [HEAVY EXCLAMATION MARK ORNAMENT] U+E482 -> U+E021
+ ["eeb3b0", :undef], # [EXCLAMATION QUESTION MARK] U+EB2F -> "ï¼ï¼Ÿ"
+ ["eeb3b1", :undef], # [DOUBLE EXCLAMATION MARK] U+EB30 -> "ï¼ï¼"
+ ["eebd9b", "ee80a0"], # [BLACK QUESTION MARK ORNAMENT] U+E483 -> U+E020
+ ["eeb3b2", :undef], # [CURLY LOOP] U+EB31 -> "~"
+ ["ef82b2", "ee80a2"], # [HEAVY BLACK HEART] U+E595 -> U+E022
+ ["eeb5b9", "ee8ca7"], # [BEATING HEART] U+EB75 -> U+E327
+ ["eebd8f", "ee80a3"], # [BROKEN HEART] U+E477 -> U+E023
+ ["eebd90", "ee8ca7"], # [TWO HEARTS] U+E478 -> U+E327
+ ["eeb1b9", "ee8ca7"], # [SPARKLING HEART] U+EAA6 -> U+E327
+ ["eebf83", "ee8ca9"], # [HEART WITH ARROW] U+E4EA -> U+E329
+ ["eeb1ba", "ee8caa"], # [BLUE HEART] U+EAA7 -> U+E32A
+ ["eeb1bb", "ee8cab"], # [GREEN HEART] U+EAA8 -> U+E32B
+ ["eeb1bc", "ee8cac"], # [YELLOW HEART] U+EAA9 -> U+E32C
+ ["eeb1bd", "ee8cad"], # [PURPLE HEART] U+EAAA -> U+E32D
+ ["eeb598", "ee90b7"], # [HEART WITH RIBBON] U+EB54 -> U+E437
+ ["ef838c", "ee8ca7"], # [REVOLVING HEARTS] U+E5AF -> U+E327
+ ["eeb1b8", "ee888c"], # [BLACK HEART SUIT] U+EAA5 -> U+E20C
+ ["ef82be", "ee888e"], # [BLACK SPADE SUIT] U+E5A1 -> U+E20E
+ ["ef82bf", "ee888d"], # [BLACK DIAMOND SUIT] U+E5A2 -> U+E20D
+ ["ef8380", "ee888f"], # [BLACK CLUB SUIT] U+E5A3 -> U+E20F
+ ["eebd95", "ee8c8e"], # [SMOKING SYMBOL] U+E47D -> U+E30E
+ ["eebd96", "ee8888"], # [NO SMOKING SYMBOL] U+E47E -> U+E208
+ ["eebd97", "ee888a"], # [WHEELCHAIR SYMBOL] U+E47F -> U+E20A
+ ["eeb3ad", :undef], # [TRIANGULAR FLAG ON POST] U+EB2C -> "[æ——]"
+ ["eebd99", "ee8992"], # [WARNING SIGN] U+E481 -> U+E252
+ ["eebd9c", "ee84b7"], # [NO ENTRY] U+E484 -> U+E137
+ ["eeb5bd", :undef], # [BLACK UNIVERSAL RECYCLING SYMBOL] U+EB79 -> "↑↓"
+ ["eebe87", "ee84b6"], # [BICYCLE] U+E4AE -> U+E136
+ ["eeb5b6", "ee8881"], # [PEDESTRIAN] U+EB72 -> U+E201
+ ["eeb18b", "ee84bf"], # [BATH] U+E5D8 -> U+E13F
+ ["eebdbd", "ee8591"], # [RESTROOM] U+E4A5 -> U+E151
+ ["ef819d", :undef], # [NO ENTRY SIGN] U+E541 -> "[ç¦æ­¢]"
+ ["ef81b3", :undef], # [HEAVY CHECK MARK] U+E557 -> "[ãƒã‚§ãƒƒã‚¯ãƒžãƒ¼ã‚¯]"
+ ["ef8388", :undef], # [SQUARED CL] U+E5AB -> "[CL]"
+ ["eeb198", "ee8894"], # [SQUARED COOL] U+EA85 -> U+E214
+ ["ef8295", :undef], # [SQUARED FREE] U+E578 -> "[FREE]"
+ ["eeb19b", "ee88a9"], # [SQUARED ID] U+EA88 -> U+E229
+ ["ef83a5", "ee8892"], # [SQUARED NEW] U+E5B5 -> U+E212
+ ["ef838a", "ee898d"], # [SQUARED OK] U+E5AD -> U+E24D
+ ["eebf81", :undef], # [SQUARED SOS] U+E4E8 -> "[SOS]"
+ ["eebfa8", "ee8893"], # [SQUARED UP WITH EXCLAMATION MARK] U+E50F -> U+E213
+ ["eeb185", "ee84ae"], # [SQUARED VS] U+E5D2 -> U+E12E
+ ["eeb19a", "ee88a8"], # [SQUARED KATAKANA SA] U+EA87 -> U+E228
+ ["eeb19d", "ee88ab"], # [SQUARED CJK UNIFIED IDEOGRAPH-7A7A] U+EA8A -> U+E22B
+ ["eeb19c", "ee88aa"], # [SQUARED CJK UNIFIED IDEOGRAPH-6E80] U+EA89 -> U+E22A
+ ["eeb199", "ee88a7"], # [SQUARED CJK UNIFIED IDEOGRAPH-5272] U+EA86 -> U+E227
+ ["eeb19e", "ee88ac"], # [SQUARED CJK UNIFIED IDEOGRAPH-6307] U+EA8B -> U+E22C
+ ["eeb19f", "ee88ad"], # [SQUARED CJK UNIFIED IDEOGRAPH-55B6] U+EA8C -> U+E22D
+ ["eebf8a", "ee8c95"], # [CIRCLED IDEOGRAPH SECRET] U+E4F1 -> U+E315
+ ["eeb1ac", "ee8c8d"], # [CIRCLED IDEOGRAPH CONGRATULATION] U+EA99 -> U+E30D
+ ["eebf90", "ee88a6"], # [CIRCLED IDEOGRAPH ADVANTAGE] U+E4F7 -> U+E226
+ ["ef8398", :undef], # [CIRCLED IDEOGRAPH ACCEPT] U+EB01 -> "[å¯]"
+ ["ef8198", :undef], # [HEAVY PLUS SIGN] U+E53C -> "[+]"
+ ["ef8199", :undef], # [HEAVY MINUS SIGN] U+E53D -> "[ï¼]"
+ ["ef81ab", "ee8cb3"], # [HEAVY MULTIPLICATION X] U+E54F -> U+E333
+ ["ef81b0", :undef], # [HEAVY DIVISION SIGN] U+E554 -> "[÷]"
+ ["eebd8e", "ee848f"], # [ELECTRIC LIGHT BULB] U+E476 -> U+E10F
+ ["eebebe", "ee8cb4"], # [ANGER SYMBOL] U+E4E5 -> U+E334
+ ["eebd92", "ee8c91"], # [BOMB] U+E47A -> U+E311
+ ["eebd8d", "ee84bc"], # [SLEEPING SYMBOL] U+E475 -> U+E13C
+ ["ef838d", :undef], # [COLLISION SYMBOL] U+E5B0 -> "[ドンッ]"
+ ["ef838e", "ee8cb1"], # [SPLASHING SWEAT SYMBOL] U+E5B1 -> U+E331
+ ["eebebf", "ee8cb1"], # [DROP OF WATER] U+E4E6 -> U+E331
+ ["eebf8d", "ee8cb0"], # [DASH SYMBOL] U+E4F4 -> U+E330
+ ["eebf8e", "ee819a"], # [PILE OF POO] U+E4F5 -> U+E05A
+ ["eebf82", "ee858c"], # [FLEXED BICEPS] U+E4E9 -> U+E14C
+ ["eeb5a0", "ee9087"], # [DIZZY SYMBOL] U+EB5C -> U+E407
+ ["eebf96", :undef], # [SPEECH BALLOON] U+E4FD -> "[フキダシ]"
+ ["eeb1be", "ee8cae"], # [SPARKLES] U+EAAB -> U+E32E
+ ["eebd91", "ee8885"], # [EIGHT POINTED BLACK STAR] U+E479 -> U+E205
+ ["ef819a", "ee8886"], # [EIGHT SPOKED ASTERISK] U+E53E -> U+E206
+ ["ef8196", "ee8899"], # [MEDIUM WHITE CIRCLE] U+E53A -> U+E219
+ ["ef8197", "ee8899"], # [MEDIUM BLACK CIRCLE] U+E53B -> U+E219
+ ["ef81a6", "ee8899"], # [LARGE RED CIRCLE] U+E54A -> U+E219
+ ["ef81a7", "ee889a"], # [LARGE BLUE CIRCLE] U+E54B -> U+E21A
+ ["eebda3", "ee8caf"], # [WHITE MEDIUM STAR] U+E48B -> U+E32F
+ ["ef81a4", "ee889b"], # [WHITE LARGE SQUARE] U+E548 -> U+E21B
+ ["ef81a5", "ee889a"], # [BLACK LARGE SQUARE] U+E549 -> U+E21A
+ ["ef818d", "ee889b"], # [WHITE SMALL SQUARE] U+E531 -> U+E21B
+ ["ef818e", "ee889a"], # [BLACK SMALL SQUARE] U+E532 -> U+E21A
+ ["ef8190", "ee889b"], # [WHITE MEDIUM SMALL SQUARE] U+E534 -> U+E21B
+ ["ef8191", "ee889a"], # [BLACK MEDIUM SMALL SQUARE] U+E535 -> U+E21A
+ ["ef8194", "ee889b"], # [WHITE MEDIUM SQUARE] U+E538 -> U+E21B
+ ["ef8195", "ee889a"], # [BLACK MEDIUM SQUARE] U+E539 -> U+E21A
+ ["ef81a2", "ee889b"], # [LARGE ORANGE DIAMOND] U+E546 -> U+E21B
+ ["ef81a3", "ee889b"], # [LARGE BLUE DIAMOND] U+E547 -> U+E21B
+ ["ef8192", "ee889b"], # [SMALL ORANGE DIAMOND] U+E536 -> U+E21B
+ ["ef8193", "ee889b"], # [SMALL BLUE DIAMOND] U+E537 -> U+E21B
+ ["eebd84", "ee8cae"], # [SPARKLE] U+E46C -> U+E32E
+ ["eebf89", :undef], # [WHITE FLOWER] U+E4F0 -> "[花丸]"
+ ["eebf8b", :undef], # [HUNDRED POINTS SYMBOL] U+E4F2 -> "[100点]"
+ ["ef81b9", :undef], # [LEFTWARDS ARROW WITH HOOK] U+E55D -> "â†â”˜"
+ ["ef81b8", :undef], # [RIGHTWARDS ARROW WITH HOOK] U+E55C -> "└→"
+ ["ef83a4", :undef], # [CLOCKWISE DOWNWARDS AND UPWARDS OPEN CIRCLE ARROWS] U+EB0D -> "↑↓"
+ ["eebfaa", "ee8581"], # [SPEAKER WITH THREE SOUND WAVES] U+E511 -> U+E141
+ ["ef82a1", :undef], # [BATTERY] U+E584 -> "[電池]"
+ ["ef82a6", :undef], # [ELECTRIC PLUG] U+E589 -> "[コンセント]"
+ ["eebfb1", "ee8494"], # [LEFT-POINTING MAGNIFYING GLASS] U+E518 -> U+E114
+ ["ef839c", "ee8494"], # [RIGHT-POINTING MAGNIFYING GLASS] U+EB05 -> U+E114
+ ["eebfb5", "ee8584"], # [LOCK] U+E51C -> U+E144
+ ["ef83a3", "ee8584"], # [LOCK WITH INK PEN] U+EB0C -> U+E144
+ ["ef8393", "ee8584"], # [CLOSED LOCK WITH KEY] U+EAFC -> U+E144
+ ["eebfb2", "ee80bf"], # [KEY] U+E519 -> U+E03F
+ ["eebfab", "ee8ca5"], # [BELL] U+E512 -> U+E325
+ ["ef8399", :undef], # [BALLOT BOX WITH CHECK] U+EB02 -> "[ãƒã‚§ãƒƒã‚¯ãƒžãƒ¼ã‚¯]"
+ ["ef839b", :undef], # [RADIO BUTTON] U+EB04 -> "[ラジオボタン]"
+ ["ef839e", :undef], # [BOOKMARK] U+EB07 -> "[ブックマーク]"
+ ["ef82a7", :undef], # [LINK SYMBOL] U+E58A -> "[リンク]"
+ ["ef839d", "ee88b5"], # [BACK WITH LEFTWARDS ARROW ABOVE] U+EB06 -> U+E235
+ ["ef82a9", :undef], # [EM SPACE] U+E58C -> U+3013 (GETA)
+ ["ef82aa", :undef], # [EN SPACE] U+E58D -> U+3013 (GETA)
+ ["ef82ab", :undef], # [FOUR-PER-EM SPACE] U+E58E -> U+3013 (GETA)
+ ["ef81ba", :undef], # [WHITE HEAVY CHECK MARK] U+E55E -> "[ãƒã‚§ãƒƒã‚¯ãƒžãƒ¼ã‚¯]"
+ ["eeb688", "ee8090"], # [RAISED FIST] U+EB83 -> U+E010
+ ["ef8384", "ee8092"], # [RAISED HAND] U+E5A7 -> U+E012
+ ["ef8383", "ee8091"], # [VICTORY HAND] U+E5A6 -> U+E011
+ ["eebf8c", "ee808d"], # [FISTED HAND SIGN] U+E4F3 -> U+E00D
+ ["eebf92", "ee808e"], # [THUMBS UP SIGN] U+E4F9 -> U+E00E
+ ["eebf8f", "ee808f"], # [WHITE UP POINTING INDEX] U+E4F6 -> U+E00F
+ ["eeb1a0", "ee88ae"], # [WHITE UP POINTING BACKHAND INDEX] U+EA8D -> U+E22E
+ ["eeb1a1", "ee88af"], # [WHITE DOWN POINTING BACKHAND INDEX] U+EA8E -> U+E22F
+ ["eebf98", "ee88b0"], # [WHITE LEFT POINTING BACKHAND INDEX] U+E4FF -> U+E230
+ ["eebf99", "ee88b1"], # [WHITE RIGHT POINTING BACKHAND INDEX] U+E500 -> U+E231
+ ["eeb2aa", "ee909e"], # [WAVING HAND SIGN] U+EAD6 -> U+E41E
+ ["eeb2a7", "ee909f"], # [CLAPPING HANDS SIGN] U+EAD3 -> U+E41F
+ ["eeb2a8", "ee90a0"], # [OK HAND SIGN] U+EAD4 -> U+E420
+ ["eeb2a9", "ee90a1"], # [THUMBS DOWN SIGN] U+EAD5 -> U+E421
+ ["ef8294", :undef], # [EMOJI COMPATIBILITY SYMBOL-37] U+E577 -> "[EZ]"
+ ["ef838f", :undef], # [EMOJI COMPATIBILITY SYMBOL-38] U+E5B2 -> "[ezplus]"
+ ["eeb1b0", :undef], # [EMOJI COMPATIBILITY SYMBOL-39] U+EA9D -> "[EZナビ]"
+ ["eeb5b8", :undef], # [EMOJI COMPATIBILITY SYMBOL-40] U+EB74 -> "[EZムービー]"
+ ["eeb686", :undef], # [EMOJI COMPATIBILITY SYMBOL-41] U+EB81 -> "[Cメール]"
+ ["eeb68e", :undef], # [EMOJI COMPATIBILITY SYMBOL-42] U+EB89 -> "[Java]"
+ ["eeb68f", :undef], # [EMOJI COMPATIBILITY SYMBOL-43] U+EB8A -> "[BREW]"
+ ["eeb690", :undef], # [EMOJI COMPATIBILITY SYMBOL-44] U+EB8B -> "[EZç€ã†ãŸ]"
+ ["eeb691", :undef], # [EMOJI COMPATIBILITY SYMBOL-45] U+EB8C -> "[EZナビ]"
+ ["eeb692", :undef], # [EMOJI COMPATIBILITY SYMBOL-46] U+EB8D -> "[WIN]"
+ ["eeb693", :undef], # [EMOJI COMPATIBILITY SYMBOL-47] U+EB8E -> "[プレミアム]"
+ ["ef8392", :undef], # [EMOJI COMPATIBILITY SYMBOL-48] U+EAFB -> "[オープンウェブ]"
+ ["ef82a3", :undef], # [EMOJI COMPATIBILITY SYMBOL-49] U+E586 -> "[PDC]"
+ ["ef8188", :undef], # [EMOJI COMPATIBILITY SYMBOL-66] U+E52C -> "[Q]"
+]
+
+EMOJI_EXCHANGE_TBL['UTF8-KDDI']['UTF-8'] = [
+ # for documented codepoints
+ ["ee9288", "e29880"], # [BLACK SUN WITH RAYS] U+E488 -> U+2600
+ ["ee928d", "e29881"], # [CLOUD] U+E48D -> U+2601
+ ["ee928c", "e29894"], # [UMBRELLA WITH RAIN DROPS] U+E48C -> U+2614
+ ["ee9285", "e29b84"], # [SNOWMAN WITHOUT SNOW] U+E485 -> U+26C4
+ ["ee9287", "e29aa1"], # [HIGH VOLTAGE SIGN] U+E487 -> U+26A1
+ ["ee91a9", :undef], # [CYCLONE] U+E469 -> U+1F300
+ ["ee9698", :undef], # [FOGGY] U+E598 -> U+1F301
+ ["eeaba8", :undef], # [CLOSED UMBRELLA] U+EAE8 -> U+1F302
+ ["eeabb1", :undef], # [NIGHT WITH STARS] U+EAF1 -> U+1F303
+ ["eeabb4", :undef], # [SUNRISE] U+EAF4 -> U+1F305
+ ["ee979a", :undef], # [CITYSCAPE AT DUSK] U+E5DA -> "[夕焼ã‘]"
+ ["eeabb2", :undef], # [RAINBOW] U+EAF2 -> U+1F308
+ ["ee928a", "e29d84"], # [SNOWFLAKE] U+E48A -> U+2744
+ ["ee928e", "e29b85"], # [SUN BEHIND CLOUD] U+E48E -> U+26C5
+ ["ee92bf", :undef], # [BRIDGE AT NIGHT] U+E4BF -> U+1F309
+ ["eeadbc", :undef], # [WATER WAVE] U+EB7C -> U+1F30A
+ ["eead93", :undef], # [VOLCANO] U+EB53 -> U+1F30B
+ ["eead9f", :undef], # [MILKY WAY] U+EB5F -> U+1F30C
+ ["ee96b3", :undef], # [EARTH GLOBE ASIA-AUSTRALIA] U+E5B3 -> U+1F30F
+ ["ee96a8", :undef], # [NEW MOON SYMBOL] U+E5A8 -> U+1F311
+ ["ee96a9", :undef], # [WAXING GIBBOUS MOON SYMBOL] U+E5A9 -> U+1F314
+ ["ee96aa", :undef], # [FIRST QUARTER MOON SYMBOL] U+E5AA -> U+1F313
+ ["ee9286", :undef], # [CRESCENT MOON] U+E486 -> U+1F319
+ ["ee9289", :undef], # [FIRST QUARTER MOON WITH FACE] U+E489 -> U+1F31B
+ ["ee91a8", :undef], # [SHOOTING STAR] U+E468 -> U+1F320
+ ["ee95ba", "e28c9a"], # [WATCH] U+E57A -> U+231A
+ ["ee95bb", "e28c9b"], # [HOURGLASS] U+E57B -> U+231B
+ ["ee9694", :undef], # [ALARM CLOCK] U+E594 -> U+23F0
+ ["ee91bc", :undef], # [HOURGLASS WITH FLOWING SAND] U+E47C -> U+23F3
+ ["ee928f", "e29988"], # [ARIES] U+E48F -> U+2648
+ ["ee9290", "e29989"], # [TAURUS] U+E490 -> U+2649
+ ["ee9291", "e2998a"], # [GEMINI] U+E491 -> U+264A
+ ["ee9292", "e2998b"], # [CANCER] U+E492 -> U+264B
+ ["ee9293", "e2998c"], # [LEO] U+E493 -> U+264C
+ ["ee9294", "e2998d"], # [VIRGO] U+E494 -> U+264D
+ ["ee9295", "e2998e"], # [LIBRA] U+E495 -> U+264E
+ ["ee9296", "e2998f"], # [SCORPIUS] U+E496 -> U+264F
+ ["ee9297", "e29990"], # [SAGITTARIUS] U+E497 -> U+2650
+ ["ee9298", "e29991"], # [CAPRICORN] U+E498 -> U+2651
+ ["ee9299", "e29992"], # [AQUARIUS] U+E499 -> U+2652
+ ["ee929a", "e29993"], # [PISCES] U+E49A -> U+2653
+ ["ee929b", :undef], # [OPHIUCHUS] U+E49B -> U+26CE
+ ["ee9493", :undef], # [FOUR LEAF CLOVER] U+E513 -> U+1F340
+ ["ee93a4", :undef], # [TULIP] U+E4E4 -> U+1F337
+ ["eeadbd", :undef], # [SEEDLING] U+EB7D -> U+1F331
+ ["ee938e", :undef], # [MAPLE LEAF] U+E4CE -> U+1F341
+ ["ee938a", :undef], # [CHERRY BLOSSOM] U+E4CA -> U+1F338
+ ["ee96ba", :undef], # [ROSE] U+E5BA -> U+1F339
+ ["ee978d", :undef], # [FALLEN LEAF] U+E5CD -> U+1F342
+ ["eeaa94", :undef], # [HIBISCUS] U+EA94 -> U+1F33A
+ ["ee93a3", :undef], # [SUNFLOWER] U+E4E3 -> U+1F33B
+ ["ee93a2", :undef], # [PALM TREE] U+E4E2 -> U+1F334
+ ["eeaa96", :undef], # [CACTUS] U+EA96 -> U+1F335
+ ["eeacb6", :undef], # [EAR OF MAIZE] U+EB36 -> U+1F33D
+ ["eeacb7", :undef], # [MUSHROOM] U+EB37 -> U+1F344
+ ["eeacb8", :undef], # [CHESTNUT] U+EB38 -> U+1F330
+ ["eead89", :undef], # [BLOSSOM] U+EB49 -> U+1F33C
+ ["eeae82", :undef], # [HERB] U+EB82 -> U+1F33F
+ ["ee9392", :undef], # [CHERRIES] U+E4D2 -> U+1F352
+ ["eeacb5", :undef], # [BANANA] U+EB35 -> U+1F34C
+ ["eeaab9", :undef], # [RED APPLE] U+EAB9 -> U+1F34E
+ ["eeaaba", :undef], # [TANGERINE] U+EABA -> U+1F34A
+ ["ee9394", :undef], # [STRAWBERRY] U+E4D4 -> U+1F353
+ ["ee938d", :undef], # [WATERMELON] U+E4CD -> U+1F349
+ ["eeaabb", :undef], # [TOMATO] U+EABB -> U+1F345
+ ["eeaabc", :undef], # [AUBERGINE] U+EABC -> U+1F346
+ ["eeacb2", :undef], # [MELON] U+EB32 -> U+1F348
+ ["eeacb3", :undef], # [PINEAPPLE] U+EB33 -> U+1F34D
+ ["eeacb4", :undef], # [GRAPES] U+EB34 -> U+1F347
+ ["eeacb9", :undef], # [PEACH] U+EB39 -> U+1F351
+ ["eead9a", :undef], # [GREEN APPLE] U+EB5A -> U+1F34F
+ ["ee96a4", :undef], # [EYES] U+E5A4 -> U+1F440
+ ["ee96a5", :undef], # [EAR] U+E5A5 -> U+1F442
+ ["eeab90", :undef], # [NOSE] U+EAD0 -> U+1F443
+ ["eeab91", :undef], # [MOUTH] U+EAD1 -> U+1F444
+ ["eead87", :undef], # [TONGUE] U+EB47 -> U+1F445
+ ["ee9489", :undef], # [LIPSTICK] U+E509 -> U+1F484
+ ["eeaaa0", :undef], # [NAIL POLISH] U+EAA0 -> U+1F485
+ ["ee948b", :undef], # [FACE MASSAGE] U+E50B -> U+1F486
+ ["eeaaa1", :undef], # [HAIRCUT] U+EAA1 -> U+1F487
+ ["eeaaa2", :undef], # [BARBER POLE] U+EAA2 -> U+1F488
+ ["ee93bc", :undef], # [BOY] U+E4FC -> U+1F466
+ ["ee93ba", :undef], # [GIRL] U+E4FA -> U+1F467
+ ["ee9481", :undef], # [FAMILY] U+E501 -> U+1F46A
+ ["ee979d", :undef], # [POLICE OFFICER] U+E5DD -> U+1F46E
+ ["eeab9b", :undef], # [WOMAN WITH BUNNY EARS] U+EADB -> U+1F46F
+ ["eeaba9", :undef], # [BRIDE WITH VEIL] U+EAE9 -> U+1F470
+ ["eeac93", :undef], # [WESTERN PERSON] U+EB13 -> U+1F471
+ ["eeac94", :undef], # [MAN WITH GUA PI MAO] U+EB14 -> U+1F472
+ ["eeac95", :undef], # [MAN WITH TURBAN] U+EB15 -> U+1F473
+ ["eeac96", :undef], # [OLDER MAN] U+EB16 -> U+1F474
+ ["eeac97", :undef], # [OLDER WOMAN] U+EB17 -> U+1F475
+ ["eeac98", :undef], # [BABY] U+EB18 -> U+1F476
+ ["eeac99", :undef], # [CONSTRUCTION WORKER] U+EB19 -> U+1F477
+ ["eeac9a", :undef], # [PRINCESS] U+EB1A -> U+1F478
+ ["eead84", :undef], # [JAPANESE OGRE] U+EB44 -> U+1F479
+ ["eead85", :undef], # [JAPANESE GOBLIN] U+EB45 -> U+1F47A
+ ["ee938b", :undef], # [GHOST] U+E4CB -> U+1F47B
+ ["ee96bf", :undef], # [BABY ANGEL] U+E5BF -> U+1F47C
+ ["ee948e", :undef], # [EXTRATERRESTRIAL ALIEN] U+E50E -> U+1F47D
+ ["ee93ac", :undef], # [ALIEN MONSTER] U+E4EC -> U+1F47E
+ ["ee93af", :undef], # [IMP] U+E4EF -> U+1F47F
+ ["ee93b8", :undef], # [SKULL] U+E4F8 -> U+1F480
+ ["eeac9c", :undef], # [DANCER] U+EB1C -> U+1F483
+ ["eeadbe", :undef], # [SNAIL] U+EB7E -> U+1F40C
+ ["eeaca2", :undef], # [SNAKE] U+EB22 -> U+1F40D
+ ["eeaca3", :undef], # [CHICKEN] U+EB23 -> U+1F414
+ ["eeaca4", :undef], # [BOAR] U+EB24 -> U+1F417
+ ["eeaca5", :undef], # [BACTRIAN CAMEL] U+EB25 -> U+1F42B
+ ["eeac9f", :undef], # [ELEPHANT] U+EB1F -> U+1F418
+ ["eeaca0", :undef], # [KOALA] U+EB20 -> U+1F428
+ ["ee9787", :undef], # [OCTOPUS] U+E5C7 -> U+1F419
+ ["eeabac", :undef], # [SPIRAL SHELL] U+EAEC -> U+1F41A
+ ["eeac9e", :undef], # [BUG] U+EB1E -> U+1F41B
+ ["ee939d", :undef], # [ANT] U+E4DD -> U+1F41C
+ ["eead97", :undef], # [HONEYBEE] U+EB57 -> U+1F41D
+ ["eead98", :undef], # [LADY BEETLE] U+EB58 -> U+1F41E
+ ["eeac9d", :undef], # [TROPICAL FISH] U+EB1D -> U+1F420
+ ["ee9393", :undef], # [BLOWFISH] U+E4D3 -> U+1F421
+ ["ee9794", :undef], # [TURTLE] U+E5D4 -> U+1F422
+ ["ee93a0", :undef], # [BABY CHICK] U+E4E0 -> U+1F424
+ ["eeadb6", :undef], # [FRONT-FACING BABY CHICK] U+EB76 -> U+1F425
+ ["ee979b", :undef], # [HATCHING CHICK] U+E5DB -> U+1F423
+ ["ee939c", :undef], # [PENGUIN] U+E4DC -> U+1F427
+ ["ee939f", :undef], # [POODLE] U+E4DF -> U+1F429
+ ["eeac9b", :undef], # [DOLPHIN] U+EB1B -> U+1F42C
+ ["ee9782", :undef], # [MOUSE FACE] U+E5C2 -> U+1F42D
+ ["ee9780", :undef], # [TIGER FACE] U+E5C0 -> U+1F42F
+ ["ee939b", :undef], # [CAT FACE] U+E4DB -> U+1F431
+ ["ee91b0", :undef], # [SPOUTING WHALE] U+E470 -> U+1F433
+ ["ee9398", :undef], # [HORSE FACE] U+E4D8 -> U+1F434
+ ["ee9399", :undef], # [MONKEY FACE] U+E4D9 -> U+1F435
+ ["ee93a1", :undef], # [DOG FACE] U+E4E1 -> U+1F436
+ ["ee939e", :undef], # [PIG FACE] U+E4DE -> U+1F437
+ ["ee9781", :undef], # [BEAR FACE] U+E5C1 -> U+1F43B
+ ["eeaca1", :undef], # [COW FACE] U+EB21 -> U+1F42E
+ ["ee9397", :undef], # [RABBIT FACE] U+E4D7 -> U+1F430
+ ["ee939a", :undef], # [FROG FACE] U+E4DA -> U+1F438
+ ["ee93ae", :undef], # [PAW PRINTS] U+E4EE -> U+1F43E
+ ["eeacbf", :undef], # [DRAGON FACE] U+EB3F -> U+1F432
+ ["eead86", :undef], # [PANDA FACE] U+EB46 -> U+1F43C
+ ["eead88", :undef], # [PIG NOSE] U+EB48 -> U+1F43D
+ ["ee91b2", :undef], # [ANGRY FACE] U+E472 -> U+1F600
+ ["eeada7", :undef], # [ANGUISHED FACE] U+EB67 -> U+1F601
+ ["eeab8a", :undef], # [ASTONISHED FACE] U+EACA -> U+1F602
+ ["ee96ae", :undef], # [DIZZY FACE] U+E5AE -> U+1F604
+ ["eeab8b", :undef], # [EXASPERATED FACE] U+EACB -> U+1F605
+ ["eeab89", :undef], # [EXPRESSIONLESS FACE] U+EAC9 -> U+1F606
+ ["ee9784", :undef], # [FACE WITH HEART-SHAPED EYES] U+E5C4 -> U+1F607
+ ["eeab81", :undef], # [FACE WITH LOOK OF TRIUMPH] U+EAC1 -> U+1F608
+ ["ee93a7", :undef], # [WINKING FACE WITH STUCK-OUT TONGUE] U+E4E7 -> U+1F609
+ ["eeab8f", :undef], # [FACE THROWING A KISS] U+EACF -> U+1F60C
+ ["eeab8e", :undef], # [FACE KISSING] U+EACE -> U+1F60D
+ ["eeab87", :undef], # [FACE WITH MASK] U+EAC7 -> U+1F60E
+ ["eeab88", :undef], # [FLUSHED FACE] U+EAC8 -> U+1F60F
+ ["ee91b1", :undef], # [HAPPY FACE WITH OPEN MOUTH] U+E471 -> U+1F610
+ ["eeae80", :undef], # [HAPPY FACE WITH GRIN] U+EB80 -> U+1F613
+ ["eeada4", :undef], # [HAPPY AND CRYING FACE] U+EB64 -> U+1F614
+ ["eeab8d", :undef], # [HAPPY FACE WITH WIDE MOUTH AND RAISED EYEBROWS] U+EACD -> U+1F615
+ ["ee93bb", "e298ba"], # [WHITE SMILING FACE] U+E4FB -> U+263A
+ ["eeada9", :undef], # [CRYING FACE] U+EB69 -> U+1F617
+ ["ee91b3", :undef], # [LOUDLY CRYING FACE] U+E473 -> U+1F618
+ ["eeab86", :undef], # [FEARFUL FACE] U+EAC6 -> U+1F619
+ ["eeab82", :undef], # [PERSEVERING FACE] U+EAC2 -> U+1F61A
+ ["eead9d", :undef], # [POUTING FACE] U+EB5D -> U+1F61B
+ ["eeab85", :undef], # [RELIEVED FACE] U+EAC5 -> U+1F61C
+ ["eeab83", :undef], # [CONFOUNDED FACE] U+EAC3 -> U+1F61D
+ ["eeab80", :undef], # [PENSIVE FACE] U+EAC0 -> U+1F61E
+ ["ee9785", :undef], # [FACE SCREAMING IN FEAR] U+E5C5 -> U+1F61F
+ ["eeab84", :undef], # [SLEEPY FACE] U+EAC4 -> U+1F620
+ ["eeaabf", :undef], # [SMIRKING FACE] U+EABF -> U+1F621
+ ["ee9786", :undef], # [FACE WITH COLD SWEAT] U+E5C6 -> U+1F622
+ ["ee91b4", :undef], # [TIRED FACE] U+E474 -> U+1F624
+ ["ee9783", :undef], # [WINKING FACE] U+E5C3 -> U+1F625
+ ["eeada1", :undef], # [CAT FACE WITH OPEN MOUTH] U+EB61 -> U+1F62B
+ ["eeadbf", :undef], # [HAPPY CAT FACE WITH GRIN] U+EB7F -> U+1F62C
+ ["eeada3", :undef], # [HAPPY AND CRYING CAT FACE] U+EB63 -> U+1F62D
+ ["eeada0", :undef], # [CAT FACE KISSING] U+EB60 -> U+1F62E
+ ["eeada5", :undef], # [CAT FACE WITH HEART-SHAPED EYES] U+EB65 -> U+1F62F
+ ["eeada8", :undef], # [CRYING CAT FACE] U+EB68 -> U+1F630
+ ["eead9e", :undef], # [POUTING CAT FACE] U+EB5E -> U+1F631
+ ["eeadaa", :undef], # [CAT FACE WITH TIGHTLY-CLOSED LIPS] U+EB6A -> U+1F632
+ ["eeada6", :undef], # [ANGUISHED CAT FACE] U+EB66 -> U+1F633
+ ["eeab97", :undef], # [FACE WITH NO GOOD GESTURE] U+EAD7 -> U+1F634
+ ["eeab98", :undef], # [FACE WITH OK GESTURE] U+EAD8 -> U+1F635
+ ["eeab99", :undef], # [PERSON BOWING DEEPLY] U+EAD9 -> U+1F636
+ ["eead90", :undef], # [SEE-NO-EVIL MONKEY] U+EB50 -> U+1F637
+ ["eead91", :undef], # [SPEAK-NO-EVIL MONKEY] U+EB51 -> U+1F639
+ ["eead92", :undef], # [HEAR-NO-EVIL MONKEY] U+EB52 -> U+1F638
+ ["eeae85", :undef], # [PERSON RAISING ONE HAND] U+EB85 -> U+1F63A
+ ["eeae86", :undef], # [PERSON RAISING BOTH HANDS IN CELEBRATION] U+EB86 -> U+1F63B
+ ["eeae87", :undef], # [PERSON FROWNING] U+EB87 -> U+1F63C
+ ["eeae88", :undef], # [PERSON WITH POUTING FACE] U+EB88 -> U+1F63D
+ ["eeab92", :undef], # [PERSON WITH FOLDED HANDS] U+EAD2 -> U+1F63E
+ ["ee92ab", :undef], # [HOUSE BUILDING] U+E4AB -> U+1F3E0
+ ["eeac89", :undef], # [HOUSE WITH GARDEN] U+EB09 -> U+1F3E1
+ ["ee92ad", :undef], # [OFFICE BUILDING] U+E4AD -> U+1F3E2
+ ["ee979e", :undef], # [JAPANESE POST OFFICE] U+E5DE -> U+1F3E3
+ ["ee979f", :undef], # [HOSPITAL] U+E5DF -> U+1F3E5
+ ["ee92aa", :undef], # [BANK] U+E4AA -> U+1F3E6
+ ["ee92a3", :undef], # [AUTOMATED TELLER MACHINE] U+E4A3 -> U+1F3E7
+ ["eeaa81", :undef], # [HOTEL] U+EA81 -> U+1F3E8
+ ["eeabb3", :undef], # [LOVE HOTEL] U+EAF3 -> U+1F3E9
+ ["ee92a4", :undef], # [CONVENIENCE STORE] U+E4A4 -> U+1F3EA
+ ["eeaa80", :undef], # [SCHOOL] U+EA80 -> U+1F3EB
+ ["ee96bb", "e29baa"], # [CHURCH] U+E5BB -> U+26EA
+ ["ee978f", "e29bb2"], # [FOUNTAIN] U+E5CF -> U+26F2
+ ["eeabb6", :undef], # [DEPARTMENT STORE] U+EAF6 -> U+1F3EC
+ ["eeabb7", :undef], # [JAPANESE CASTLE] U+EAF7 -> U+1F3EF
+ ["eeabb8", :undef], # [EUROPEAN CASTLE] U+EAF8 -> U+1F3F0
+ ["eeabb9", :undef], # [FACTORY] U+EAF9 -> U+1F3ED
+ ["ee92a9", "e29a93"], # [ANCHOR] U+E4A9 -> U+2693
+ ["ee92bd", :undef], # [IZAKAYA LANTERN] U+E4BD -> U+1F3EE
+ ["ee96bd", :undef], # [MOUNT FUJI] U+E5BD -> U+1F5FB
+ ["ee9380", :undef], # [TOKYO TOWER] U+E4C0 -> U+1F5FC
+ ["ee95b2", :undef], # [SILHOUETTE OF JAPAN] U+E572 -> U+1F5FE
+ ["eeadac", :undef], # [MOYAI] U+EB6C -> U+1F5FF
+ ["ee96b7", :undef], # [MANS SHOE] U+E5B7 -> U+1F45E
+ ["eeacab", :undef], # [ATHLETIC SHOE] U+EB2B -> U+1F45F
+ ["ee949a", :undef], # [HIGH-HEELED SHOE] U+E51A -> U+1F460
+ ["eeaa9f", :undef], # [WOMANS BOOTS] U+EA9F -> U+1F462
+ ["eeacaa", :undef], # [FOOTPRINTS] U+EB2A -> U+1F463
+ ["ee93be", :undef], # [EYEGLASSES] U+E4FE -> U+1F453
+ ["ee96b6", :undef], # [T-SHIRT] U+E5B6 -> U+1F455
+ ["eeadb7", :undef], # [JEANS] U+EB77 -> U+1F456
+ ["ee9789", :undef], # [CROWN] U+E5C9 -> U+1F451
+ ["eeaa93", :undef], # [NECKTIE] U+EA93 -> U+1F454
+ ["eeaa9e", :undef], # [WOMANS HAT] U+EA9E -> U+1F452
+ ["eeadab", :undef], # [DRESS] U+EB6B -> U+1F457
+ ["eeaaa3", :undef], # [KIMONO] U+EAA3 -> U+1F458
+ ["eeaaa4", :undef], # [BIKINI] U+EAA4 -> U+1F459
+ ["ee948d", :undef], # [WOMANS CLOTHES] U+E50D -> U+1F45A
+ ["ee9484", :undef], # [PURSE] U+E504 -> U+1F45B
+ ["ee929c", :undef], # [HANDBAG] U+E49C -> U+1F45C
+ ["ee9387", :undef], # [MONEY BAG] U+E4C7 -> U+1F4B0
+ ["ee979c", :undef], # [CHART WITH UPWARDS TREND AND YEN SIGN] U+E5DC -> U+1F4B9
+ ["ee95b9", :undef], # [HEAVY DOLLAR SIGN] U+E579 -> U+1F4B2
+ ["ee95bc", :undef], # [CREDIT CARD] U+E57C -> U+1F4B3
+ ["ee95bd", :undef], # [BANKNOTE WITH YEN SIGN] U+E57D -> U+1F4B4
+ ["ee9685", :undef], # [BANKNOTE WITH DOLLAR SIGN] U+E585 -> U+1F4B5
+ ["eead9b", :undef], # [MONEY WITH WINGS] U+EB5B -> U+1F4B8
+ ["eeac91", "f09f87a8f09f87b3"], # [REGIONAL INDICATOR SYMBOL LETTERS CN] U+EB11 -> U+1F1E8 U+1F1F3
+ ["eeac8e", "f09f87a9f09f87aa"], # [REGIONAL INDICATOR SYMBOL LETTERS DE] U+EB0E -> U+1F1E9 U+1F1EA
+ ["ee9795", "f09f87aaf09f87b8"], # [REGIONAL INDICATOR SYMBOL LETTERS ES] U+E5D5 -> U+1F1EA U+1F1F8
+ ["eeabba", "f09f87abf09f87b7"], # [REGIONAL INDICATOR SYMBOL LETTERS FR] U+EAFA -> U+1F1EB U+1F1F7
+ ["eeac90", "f09f87baf09f87b0"], # [REGIONAL INDICATOR SYMBOL LETTERS GB] U+EB10 -> U+1F1FA U+1F1F0
+ ["eeac8f", "f09f87aef09f87b9"], # [REGIONAL INDICATOR SYMBOL LETTERS IT] U+EB0F -> U+1F1EE U+1F1F9
+ ["ee938c", "f09f87aff09f87b5"], # [REGIONAL INDICATOR SYMBOL LETTERS JP] U+E4CC -> U+1F1EF U+1F1F5
+ ["eeac92", "f09f87b0f09f87b7"], # [REGIONAL INDICATOR SYMBOL LETTERS KR] U+EB12 -> U+1F1F0 U+1F1F7
+ ["ee9796", "f09f87b7f09f87ba"], # [REGIONAL INDICATOR SYMBOL LETTERS RU] U+E5D6 -> U+1F1F7 U+1F1FA
+ ["ee95b3", "f09f87baf09f87b8"], # [REGIONAL INDICATOR SYMBOL LETTERS US] U+E573 -> U+1F1FA U+1F1F8
+ ["ee91bb", :undef], # [FIRE] U+E47B -> U+1F525
+ ["ee9683", :undef], # [ELECTRIC TORCH] U+E583 -> U+1F526
+ ["ee9687", :undef], # [WRENCH] U+E587 -> U+1F527
+ ["ee978b", :undef], # [HAMMER] U+E5CB -> U+1F528
+ ["ee9681", :undef], # [NUT AND BOLT] U+E581 -> U+1F529
+ ["ee95bf", :undef], # [HOCHO] U+E57F -> U+1F52A
+ ["ee948a", :undef], # [PISTOL] U+E50A -> U+1F52B
+ ["eeaa8f", :undef], # [CRYSTAL BALL] U+EA8F -> U+1F52E
+ ["ee9280", :undef], # [JAPANESE SYMBOL FOR BEGINNER] U+E480 -> U+1F530
+ ["ee9490", :undef], # [SYRINGE] U+E510 -> U+1F489
+ ["eeaa9a", :undef], # [PILL] U+EA9A -> U+1F48A
+ ["eeaca6", :undef], # [NEGATIVE SQUARED LATIN CAPITAL LETTER A] U+EB26 -> U+1F170
+ ["eeaca7", :undef], # [NEGATIVE SQUARED LATIN CAPITAL LETTER B] U+EB27 -> U+1F171
+ ["eeaca9", :undef], # [NEGATIVE SQUARED AB] U+EB29 -> U+1F18E
+ ["eeaca8", :undef], # [NEGATIVE SQUARED LATIN CAPITAL LETTER O] U+EB28 -> U+1F17E
+ ["ee969f", :undef], # [RIBBON] U+E59F -> U+1F380
+ ["ee938f", :undef], # [WRAPPED PRESENT] U+E4CF -> U+1F381
+ ["ee96a0", :undef], # [BIRTHDAY CAKE] U+E5A0 -> U+1F382
+ ["ee9389", :undef], # [CHRISTMAS TREE] U+E4C9 -> U+1F384
+ ["eeabb0", :undef], # [FATHER CHRISTMAS] U+EAF0 -> U+1F385
+ ["ee9799", :undef], # [CROSSED FLAGS] U+E5D9 -> U+1F38C
+ ["ee978c", :undef], # [FIREWORKS] U+E5CC -> U+1F386
+ ["eeaa9b", :undef], # [BALLOON] U+EA9B -> U+1F388
+ ["eeaa9c", :undef], # [PARTY POPPER] U+EA9C -> U+1F389
+ ["eeaba3", :undef], # [PINE DECORATION] U+EAE3 -> U+1F38D
+ ["eeaba4", :undef], # [JAPANESE DOLLS] U+EAE4 -> U+1F38E
+ ["eeaba5", :undef], # [GRADUATION CAP] U+EAE5 -> U+1F393
+ ["eeaba6", :undef], # [SCHOOL SATCHEL] U+EAE6 -> U+1F392
+ ["eeaba7", :undef], # [CARP STREAMER] U+EAE7 -> U+1F38F
+ ["eeabab", :undef], # [FIREWORK SPARKLER] U+EAEB -> U+1F387
+ ["eeabad", :undef], # [WIND CHIME] U+EAED -> U+1F390
+ ["eeabae", :undef], # [JACK-O-LANTERN] U+EAEE -> U+1F383
+ ["ee91af", :undef], # [CONFETTI BALL] U+E46F -> U+1F38A
+ ["eeacbd", :undef], # [TANABATA TREE] U+EB3D -> U+1F38B
+ ["eeabaf", :undef], # [MOON VIEWING CEREMONY] U+EAEF -> U+1F391
+ ["ee969b", :undef], # [PAGER] U+E59B -> U+1F4DF
+ ["ee9696", "e2988e"], # [BLACK TELEPHONE] U+E596 -> U+260E
+ ["ee949e", :undef], # [TELEPHONE RECEIVER] U+E51E -> U+1F4DE
+ ["ee9688", :undef], # [MOBILE PHONE] U+E588 -> U+1F4F1
+ ["eeac88", :undef], # [MOBILE PHONE WITH RIGHTWARDS ARROW AT LEFT] U+EB08 -> U+1F4F2
+ ["eeaa92", :undef], # [MEMO] U+EA92 -> U+1F4DD
+ ["ee94a0", :undef], # [FAX MACHINE] U+E520 -> U+1F4E0
+ ["ee94a1", "e29c89"], # [ENVELOPE] U+E521 -> U+2709
+ ["ee9691", :undef], # [INCOMING ENVELOPE] U+E591 -> U+1F4E8
+ ["eeada2", :undef], # [ENVELOPE WITH DOWNWARDS ARROW ABOVE] U+EB62 -> U+1F4E9
+ ["ee949b", :undef], # [CLOSED MAILBOX WITH LOWERED FLAG] U+E51B -> U+1F4EA
+ ["eeac8a", :undef], # [CLOSED MAILBOX WITH RAISED FLAG] U+EB0A -> U+1F4EB
+ ["ee968b", :undef], # [NEWSPAPER] U+E58B -> U+1F4F0
+ ["ee92a8", :undef], # [SATELLITE ANTENNA] U+E4A8 -> U+1F4E1
+ ["ee9692", :undef], # [OUTBOX TRAY] U+E592 -> U+1F4E4
+ ["ee9693", :undef], # [INBOX TRAY] U+E593 -> U+1F4E5
+ ["ee949f", :undef], # [PACKAGE] U+E51F -> U+1F4E6
+ ["eeadb1", :undef], # [E-MAIL SYMBOL] U+EB71 -> U+1F4E7
+ ["eeabbd", :undef], # [INPUT SYMBOL FOR LATIN CAPITAL LETTERS] U+EAFD -> U+1F520
+ ["eeabbe", :undef], # [INPUT SYMBOL FOR LATIN SMALL LETTERS] U+EAFE -> U+1F521
+ ["eeabbf", :undef], # [INPUT SYMBOL FOR NUMBERS] U+EAFF -> U+1F522
+ ["eeac80", :undef], # [INPUT SYMBOL FOR SYMBOLS] U+EB00 -> U+1F523
+ ["eead95", :undef], # [INPUT SYMBOL FOR LATIN LETTERS] U+EB55 -> U+1F524
+ ["eeac83", "e29c92"], # [BLACK NIB] U+EB03 -> U+2712
+ ["ee96b8", :undef], # [PERSONAL COMPUTER] U+E5B8 -> U+1F4BB
+ ["ee92a1", "e29c8f"], # [PENCIL] U+E4A1 -> U+270F
+ ["ee92a0", :undef], # [PAPERCLIP] U+E4A0 -> U+1F4CE
+ ["ee978e", :undef], # [BRIEFCASE] U+E5CE -> U+1F4BC
+ ["ee9682", :undef], # [MINIDISC] U+E582 -> U+1F4BD
+ ["ee95a2", :undef], # [FLOPPY DISK] U+E562 -> U+1F4BE
+ ["ee948c", :undef], # [OPTICAL DISC] U+E50C -> U+1F4BF
+ ["ee9496", "e29c82"], # [BLACK SCISSORS] U+E516 -> U+2702
+ ["ee95a0", :undef], # [ROUND PUSHPIN] U+E560 -> U+1F4CD
+ ["ee95a1", :undef], # [PAGE WITH CURL] U+E561 -> U+1F4C3
+ ["ee95a9", :undef], # [PAGE FACING UP] U+E569 -> U+1F4C4
+ ["ee95a3", :undef], # [CALENDAR] U+E563 -> U+1F4C5
+ ["ee968f", :undef], # [FILE FOLDER] U+E58F -> U+1F4C1
+ ["ee9690", :undef], # [OPEN FILE FOLDER] U+E590 -> U+1F4C2
+ ["ee95ab", :undef], # [NOTEBOOK] U+E56B -> U+1F4D3
+ ["ee929f", :undef], # [OPEN BOOK] U+E49F -> U+1F4D6
+ ["ee929d", :undef], # [NOTEBOOK WITH DECORATIVE COVER] U+E49D -> U+1F4D4
+ ["ee95a8", :undef], # [CLOSED BOOK] U+E568 -> U+1F4D5
+ ["ee95a5", :undef], # [GREEN BOOK] U+E565 -> U+1F4D7
+ ["ee95a6", :undef], # [BLUE BOOK] U+E566 -> U+1F4D8
+ ["ee95a7", :undef], # [ORANGE BOOK] U+E567 -> U+1F4D9
+ ["ee95af", :undef], # [BOOKS] U+E56F -> U+1F4DA
+ ["ee949d", :undef], # [NAME BADGE] U+E51D -> U+1F4DB
+ ["ee959f", :undef], # [SCROLL] U+E55F -> U+1F4DC
+ ["ee95a4", :undef], # [CLIPBOARD] U+E564 -> U+1F4CB
+ ["ee95aa", :undef], # [TEAR-OFF CALENDAR] U+E56A -> U+1F4C6
+ ["ee95b4", :undef], # [BAR CHART] U+E574 -> U+1F4CA
+ ["ee95b5", :undef], # [CHART WITH UPWARDS TREND] U+E575 -> U+1F4C8
+ ["ee95b6", :undef], # [CHART WITH DOWNWARDS TREND] U+E576 -> U+1F4C9
+ ["ee95ac", :undef], # [CARD INDEX] U+E56C -> U+1F4C7
+ ["ee95ad", :undef], # [PUSHPIN] U+E56D -> U+1F4CC
+ ["ee95ae", :undef], # [LEDGER] U+E56E -> U+1F4D2
+ ["ee95b0", :undef], # [STRAIGHT RULER] U+E570 -> U+1F4CF
+ ["ee92a2", :undef], # [TRIANGULAR RULER] U+E4A2 -> U+1F4D0
+ ["eeac8b", :undef], # [BOOKMARK TABS] U+EB0B -> U+1F4D1
+ ["ee92ba", "e29abe"], # [BASEBALL] U+E4BA -> U+26BE
+ ["ee9699", "e29bb3"], # [FLAG IN HOLE] U+E599 -> U+26F3
+ ["ee92b7", :undef], # [TENNIS RACQUET AND BALL] U+E4B7 -> U+1F3BE
+ ["ee92b6", "e29abd"], # [SOCCER BALL] U+E4B6 -> U+26BD
+ ["eeaaac", :undef], # [SKI AND SKI BOOT] U+EAAC -> U+1F3BF
+ ["ee969a", :undef], # [BASKETBALL AND HOOP] U+E59A -> U+1F3C0
+ ["ee92b9", :undef], # [CHEQUERED FLAG] U+E4B9 -> U+1F3C1
+ ["ee92b8", :undef], # [SNOWBOARDER] U+E4B8 -> U+1F3C2
+ ["ee91ab", :undef], # [RUNNER] U+E46B -> U+1F3C3
+ ["eead81", :undef], # [SURFER] U+EB41 -> U+1F3C4
+ ["ee9793", :undef], # [TROPHY] U+E5D3 -> U+1F3C6
+ ["ee92bb", :undef], # [AMERICAN FOOTBALL] U+E4BB -> U+1F3C8
+ ["eeab9e", :undef], # [SWIMMER] U+EADE -> U+1F3CA
+ ["ee92b5", :undef], # [TRAIN] U+E4B5 -> U+1F686
+ ["ee96bc", :undef], # [METRO] U+E5BC -> U+1F687
+ ["ee92b0", :undef], # [HIGH-SPEED TRAIN WITH BULLET NOSE] U+E4B0 -> U+1F685
+ ["ee92b1", :undef], # [AUTOMOBILE] U+E4B1 -> U+1F697
+ ["ee92af", :undef], # [ONCOMING BUS] U+E4AF -> U+1F68D
+ ["ee92a7", :undef], # [BUS STOP] U+E4A7 -> U+1F68F
+ ["eeaa82", :undef], # [SHIP] U+EA82 -> U+1F6A2
+ ["ee92b3", "e29c88"], # [AIRPLANE] U+E4B3 -> U+2708
+ ["ee92b4", "e29bb5"], # [SAILBOAT] U+E4B4 -> U+26F5
+ ["eeadad", :undef], # [STATION] U+EB6D -> U+1F689
+ ["ee9788", :undef], # [ROCKET] U+E5C8 -> U+1F680
+ ["ee92b2", :undef], # [DELIVERY TRUCK] U+E4B2 -> U+1F69A
+ ["eeab9f", :undef], # [FIRE ENGINE] U+EADF -> U+1F692
+ ["eeaba0", :undef], # [AMBULANCE] U+EAE0 -> U+1F691
+ ["eeaba1", :undef], # [POLICE CAR] U+EAE1 -> U+1F693
+ ["ee95b1", "e29bbd"], # [FUEL PUMP] U+E571 -> U+26FD
+ ["ee92a6", "f09f85bf"], # [NEGATIVE SQUARED LATIN CAPITAL LETTER P] U+E4A6 -> U+1F17F
+ ["ee91aa", :undef], # [HORIZONTAL TRAFFIC LIGHT] U+E46A -> U+1F6A5
+ ["ee9797", :undef], # [CONSTRUCTION SIGN] U+E5D7 -> U+1F6A7
+ ["eeadb3", :undef], # [POLICE CARS REVOLVING LIGHT] U+EB73 -> U+1F6A8
+ ["ee92bc", "e299a8"], # [HOT SPRINGS] U+E4BC -> U+2668
+ ["ee9790", "e29bba"], # [TENT] U+E5D0 -> U+26FA
+ ["ee91ad", :undef], # [FERRIS WHEEL] U+E46D -> U+1F3A1
+ ["eeaba2", :undef], # [ROLLER COASTER] U+EAE2 -> U+1F3A2
+ ["eead82", :undef], # [FISHING POLE AND FISH] U+EB42 -> U+1F3A3
+ ["ee9483", :undef], # [MICROPHONE] U+E503 -> U+1F3A4
+ ["ee9497", :undef], # [MOVIE CAMERA] U+E517 -> U+1F3A5
+ ["ee9488", :undef], # [HEADPHONE] U+E508 -> U+1F3A7
+ ["ee969c", :undef], # [ARTIST PALETTE] U+E59C -> U+1F3A8
+ ["eeabb5", :undef], # [TOP HAT] U+EAF5 -> U+1F3A9
+ ["ee969e", :undef], # [CIRCUS TENT] U+E59E -> U+1F3AA
+ ["ee929e", :undef], # [TICKET] U+E49E -> U+1F3AB
+ ["ee92be", :undef], # [CLAPPER BOARD] U+E4BE -> U+1F3AC
+ ["ee969d", :undef], # [PERFORMING ARTS] U+E59D -> U+1F3AD
+ ["ee9386", :undef], # [VIDEO GAME] U+E4C6 -> U+1F3AE
+ ["ee9791", "f09f8084"], # [MAHJONG TILE RED DRAGON] U+E5D1 -> U+1F004
+ ["ee9385", :undef], # [DIRECT HIT] U+E4C5 -> U+1F3AF
+ ["ee91ae", :undef], # [SLOT MACHINE] U+E46E -> U+1F3B0
+ ["eeab9d", :undef], # [BILLIARDS] U+EADD -> U+1F3B1
+ ["ee9388", :undef], # [GAME DIE] U+E4C8 -> U+1F3B2
+ ["eead83", :undef], # [BOWLING] U+EB43 -> U+1F3B3
+ ["eeadae", :undef], # [FLOWER PLAYING CARDS] U+EB6E -> U+1F3B4
+ ["eeadaf", :undef], # [PLAYING CARD BLACK JOKER] U+EB6F -> U+1F0CF
+ ["ee96be", :undef], # [MUSICAL NOTE] U+E5BE -> U+1F3B5
+ ["ee9485", :undef], # [MULTIPLE MUSICAL NOTES] U+E505 -> U+1F3B6
+ ["ee9486", :undef], # [GUITAR] U+E506 -> U+1F3B8
+ ["eead80", :undef], # [MUSICAL KEYBOARD] U+EB40 -> U+1F3B9
+ ["eeab9c", :undef], # [TRUMPET] U+EADC -> U+1F3BA
+ ["ee9487", :undef], # [VIOLIN] U+E507 -> U+1F3BB
+ ["eeab8c", :undef], # [MUSICAL SCORE] U+EACC -> U+1F3BC
+ ["ee9495", :undef], # [CAMERA] U+E515 -> U+1F4F7
+ ["ee95be", :undef], # [VIDEO CAMERA] U+E57E -> U+1F4F9
+ ["ee9482", :undef], # [TELEVISION] U+E502 -> U+1F4FA
+ ["ee96b9", :undef], # [RADIO] U+E5B9 -> U+1F4FB
+ ["ee9680", :undef], # [VIDEOCASSETTE] U+E580 -> U+1F4FC
+ ["ee93ab", :undef], # [KISS MARK] U+E4EB -> U+1F48B
+ ["eeadb8", :undef], # [LOVE LETTER] U+EB78 -> U+1F48C
+ ["ee9494", :undef], # [RING] U+E514 -> U+1F48D
+ ["ee978a", :undef], # [KISS] U+E5CA -> U+1F48F
+ ["eeaa95", :undef], # [BOUQUET] U+EA95 -> U+1F490
+ ["eeab9a", :undef], # [COUPLE WITH HEART] U+EADA -> U+1F491
+ ["eeaa83", :undef], # [NO ONE UNDER EIGHTEEN SYMBOL] U+EA83 -> U+1F51E
+ ["ee9598", "c2a9"], # [COPYRIGHT SIGN] U+E558 -> U+A9
+ ["ee9599", "c2ae"], # [REGISTERED SIGN] U+E559 -> U+AE
+ ["ee958e", "e284a2"], # [TRADE MARK SIGN] U+E54E -> U+2122
+ ["ee94b3", "e284b9"], # [INFORMATION SOURCE] U+E533 -> U+2139
+ ["eeae84", "23e283a3"], # [HASH KEY] U+EB84 -> U+23 U+20E3
+ ["ee94a2", "31e283a3"], # [KEYCAP 1] U+E522 -> U+31 U+20E3
+ ["ee94a3", "32e283a3"], # [KEYCAP 2] U+E523 -> U+32 U+20E3
+ ["ee94a4", "33e283a3"], # [KEYCAP 3] U+E524 -> U+33 U+20E3
+ ["ee94a5", "34e283a3"], # [KEYCAP 4] U+E525 -> U+34 U+20E3
+ ["ee94a6", "35e283a3"], # [KEYCAP 5] U+E526 -> U+35 U+20E3
+ ["ee94a7", "36e283a3"], # [KEYCAP 6] U+E527 -> U+36 U+20E3
+ ["ee94a8", "37e283a3"], # [KEYCAP 7] U+E528 -> U+37 U+20E3
+ ["ee94a9", "38e283a3"], # [KEYCAP 8] U+E529 -> U+38 U+20E3
+ ["ee94aa", "39e283a3"], # [KEYCAP 9] U+E52A -> U+39 U+20E3
+ ["ee96ac", "30e283a3"], # [KEYCAP 0] U+E5AC -> U+30 U+20E3
+ ["ee94ab", :undef], # [KEYCAP TEN] U+E52B -> U+1F51F
+ ["eeaa84", :undef], # [ANTENNA WITH BARS] U+EA84 -> U+1F4F6
+ ["eeaa90", :undef], # [VIBRATION MODE] U+EA90 -> U+1F4F3
+ ["eeaa91", :undef], # [MOBILE PHONE OFF] U+EA91 -> U+1F4F4
+ ["ee9396", :undef], # [HAMBURGER] U+E4D6 -> U+1F354
+ ["ee9395", :undef], # [RICE BALL] U+E4D5 -> U+1F359
+ ["ee9390", :undef], # [SHORTCAKE] U+E4D0 -> U+1F370
+ ["ee96b4", :undef], # [STEAMING BOWL] U+E5B4 -> U+1F35C
+ ["eeaaaf", :undef], # [BREAD] U+EAAF -> U+1F35E
+ ["ee9391", :undef], # [COOKING] U+E4D1 -> U+1F373
+ ["eeaab0", :undef], # [SOFT ICE CREAM] U+EAB0 -> U+1F366
+ ["eeaab1", :undef], # [FRENCH FRIES] U+EAB1 -> U+1F35F
+ ["eeaab2", :undef], # [DANGO] U+EAB2 -> U+1F361
+ ["eeaab3", :undef], # [RICE CRACKER] U+EAB3 -> U+1F358
+ ["eeaab4", :undef], # [COOKED RICE] U+EAB4 -> U+1F35A
+ ["eeaab5", :undef], # [SPAGHETTI] U+EAB5 -> U+1F35D
+ ["eeaab6", :undef], # [CURRY AND RICE] U+EAB6 -> U+1F35B
+ ["eeaab7", :undef], # [ODEN] U+EAB7 -> U+1F362
+ ["eeaab8", :undef], # [SUSHI] U+EAB8 -> U+1F363
+ ["eeaabd", :undef], # [BENTO BOX] U+EABD -> U+1F371
+ ["eeaabe", :undef], # [POT OF FOOD] U+EABE -> U+1F372
+ ["eeabaa", :undef], # [SHAVED ICE] U+EAEA -> U+1F367
+ ["ee9384", :undef], # [MEAT ON BONE] U+E4C4 -> U+1F356
+ ["ee93ad", :undef], # [FISH CAKE WITH SWIRL DESIGN] U+E4ED -> U+1F365
+ ["eeacba", :undef], # [ROASTED SWEET POTATO] U+EB3A -> U+1F360
+ ["eeacbb", :undef], # [SLICE OF PIZZA] U+EB3B -> U+1F355
+ ["eeacbc", :undef], # [POULTRY LEG] U+EB3C -> U+1F357
+ ["eead8a", :undef], # [ICE CREAM] U+EB4A -> U+1F368
+ ["eead8b", :undef], # [DOUGHNUT] U+EB4B -> U+1F369
+ ["eead8c", :undef], # [COOKIE] U+EB4C -> U+1F36A
+ ["eead8d", :undef], # [CHOCOLATE BAR] U+EB4D -> U+1F36B
+ ["eead8e", :undef], # [CANDY] U+EB4E -> U+1F36C
+ ["eead8f", :undef], # [LOLLIPOP] U+EB4F -> U+1F36D
+ ["eead96", :undef], # [CUSTARD] U+EB56 -> U+1F36E
+ ["eead99", :undef], # [HONEY POT] U+EB59 -> U+1F36F
+ ["eeadb0", :undef], # [FRIED SHRIMP] U+EB70 -> U+1F364
+ ["ee92ac", :undef], # [FORK AND KNIFE] U+E4AC -> U+1F374
+ ["ee9697", "e29895"], # [HOT BEVERAGE] U+E597 -> U+2615
+ ["ee9382", :undef], # [COCKTAIL GLASS] U+E4C2 -> U+1F378
+ ["ee9383", :undef], # [BEER MUG] U+E4C3 -> U+1F37A
+ ["eeaaae", :undef], # [TEACUP WITHOUT HANDLE] U+EAAE -> U+1F375
+ ["eeaa97", :undef], # [SAKE BOTTLE AND CUP] U+EA97 -> U+1F376
+ ["ee9381", :undef], # [WINE GLASS] U+E4C1 -> U+1F377
+ ["eeaa98", :undef], # [CLINKING BEER MUGS] U+EA98 -> U+1F37B
+ ["eeacbe", :undef], # [TROPICAL DRINK] U+EB3E -> U+1F379
+ ["ee9595", "e28697"], # [NORTH EAST ARROW] U+E555 -> U+2197
+ ["ee958d", "e28698"], # [SOUTH EAST ARROW] U+E54D -> U+2198
+ ["ee958c", "e28696"], # [NORTH WEST ARROW] U+E54C -> U+2196
+ ["ee9596", "e28699"], # [SOUTH WEST ARROW] U+E556 -> U+2199
+ ["eeacad", "e2a4b4"], # [ARROW POINTING RIGHTWARDS THEN CURVING UPWARDS] U+EB2D -> U+2934
+ ["eeacae", "e2a4b5"], # [ARROW POINTING RIGHTWARDS THEN CURVING DOWNWARDS] U+EB2E -> U+2935
+ ["eeadba", "e28694"], # [LEFT RIGHT ARROW] U+EB7A -> U+2194
+ ["eeadbb", "e28695"], # [UP DOWN ARROW] U+EB7B -> U+2195
+ ["ee94bf", "e2ac86"], # [UPWARDS BLACK ARROW] U+E53F -> U+2B06
+ ["ee9580", "e2ac87"], # [DOWNWARDS BLACK ARROW] U+E540 -> U+2B07
+ ["ee9592", "e29ea1"], # [BLACK RIGHTWARDS ARROW] U+E552 -> U+27A1
+ ["ee9593", "e2ac85"], # [LEFTWARDS BLACK ARROW] U+E553 -> U+2B05
+ ["ee94ae", "e296b6"], # [BLACK RIGHT-POINTING TRIANGLE] U+E52E -> U+25B6
+ ["ee94ad", "e29780"], # [BLACK LEFT-POINTING TRIANGLE] U+E52D -> U+25C0
+ ["ee94b0", :undef], # [BLACK RIGHT-POINTING DOUBLE TRIANGLE] U+E530 -> U+23E9
+ ["ee94af", :undef], # [BLACK LEFT-POINTING DOUBLE TRIANGLE] U+E52F -> U+23EA
+ ["ee9585", :undef], # [BLACK UP-POINTING DOUBLE TRIANGLE] U+E545 -> U+23EB
+ ["ee9584", :undef], # [BLACK DOWN-POINTING DOUBLE TRIANGLE] U+E544 -> U+23EC
+ ["ee959a", :undef], # [UP-POINTING RED TRIANGLE] U+E55A -> U+1F53A
+ ["ee959b", :undef], # [DOWN-POINTING RED TRIANGLE] U+E55B -> U+1F53B
+ ["ee9583", :undef], # [UP-POINTING SMALL RED TRIANGLE] U+E543 -> U+1F53C
+ ["ee9582", :undef], # [DOWN-POINTING SMALL RED TRIANGLE] U+E542 -> U+1F53D
+ ["eeaaad", "e2ad95"], # [HEAVY LARGE CIRCLE] U+EAAD -> U+2B55
+ ["ee9590", :undef], # [CROSS MARK] U+E550 -> U+274C
+ ["ee9591", :undef], # [NEGATIVE SQUARED CROSS MARK] U+E551 -> U+274E
+ ["ee9282", "e29da2"], # [HEAVY EXCLAMATION MARK ORNAMENT] U+E482 -> U+2762
+ ["eeacaf", "e28189"], # [EXCLAMATION QUESTION MARK] U+EB2F -> U+2049
+ ["eeacb0", "e280bc"], # [DOUBLE EXCLAMATION MARK] U+EB30 -> U+203C
+ ["ee9283", :undef], # [BLACK QUESTION MARK ORNAMENT] U+E483 -> U+2753
+ ["eeacb1", :undef], # [CURLY LOOP] U+EB31 -> U+27B0
+ ["ee9695", "e29da4"], # [HEAVY BLACK HEART] U+E595 -> U+2764
+ ["eeadb5", :undef], # [BEATING HEART] U+EB75 -> U+1F493
+ ["ee91b7", :undef], # [BROKEN HEART] U+E477 -> U+1F494
+ ["ee91b8", :undef], # [TWO HEARTS] U+E478 -> U+1F495
+ ["eeaaa6", :undef], # [SPARKLING HEART] U+EAA6 -> U+1F496
+ ["ee93aa", :undef], # [HEART WITH ARROW] U+E4EA -> U+1F498
+ ["eeaaa7", :undef], # [BLUE HEART] U+EAA7 -> U+1F499
+ ["eeaaa8", :undef], # [GREEN HEART] U+EAA8 -> U+1F49A
+ ["eeaaa9", :undef], # [YELLOW HEART] U+EAA9 -> U+1F49B
+ ["eeaaaa", :undef], # [PURPLE HEART] U+EAAA -> U+1F49C
+ ["eead94", :undef], # [HEART WITH RIBBON] U+EB54 -> U+1F49D
+ ["ee96af", :undef], # [REVOLVING HEARTS] U+E5AF -> U+1F49E
+ ["eeaaa5", "e299a5"], # [BLACK HEART SUIT] U+EAA5 -> U+2665
+ ["ee96a1", "e299a0"], # [BLACK SPADE SUIT] U+E5A1 -> U+2660
+ ["ee96a2", "e299a6"], # [BLACK DIAMOND SUIT] U+E5A2 -> U+2666
+ ["ee96a3", "e299a3"], # [BLACK CLUB SUIT] U+E5A3 -> U+2663
+ ["ee91bd", :undef], # [SMOKING SYMBOL] U+E47D -> U+1F6AC
+ ["ee91be", :undef], # [NO SMOKING SYMBOL] U+E47E -> U+1F6AD
+ ["ee91bf", "e299bf"], # [WHEELCHAIR SYMBOL] U+E47F -> U+267F
+ ["eeacac", :undef], # [TRIANGULAR FLAG ON POST] U+EB2C -> U+1F6A9
+ ["ee9281", "e29aa0"], # [WARNING SIGN] U+E481 -> U+26A0
+ ["ee9284", "e29b94"], # [NO ENTRY] U+E484 -> U+26D4
+ ["eeadb9", "e299bb"], # [BLACK UNIVERSAL RECYCLING SYMBOL] U+EB79 -> U+267B
+ ["ee92ae", :undef], # [BICYCLE] U+E4AE -> U+1F6B2
+ ["eeadb2", :undef], # [PEDESTRIAN] U+EB72 -> U+1F6B6
+ ["ee9798", :undef], # [BATH] U+E5D8 -> U+1F6C0
+ ["ee92a5", :undef], # [RESTROOM] U+E4A5 -> U+1F6BB
+ ["ee9581", :undef], # [NO ENTRY SIGN] U+E541 -> U+1F6AB
+ ["ee9597", "e29c94"], # [HEAVY CHECK MARK] U+E557 -> U+2714
+ ["ee96ab", :undef], # [SQUARED CL] U+E5AB -> U+1F191
+ ["eeaa85", :undef], # [SQUARED COOL] U+EA85 -> U+1F192
+ ["ee95b8", :undef], # [SQUARED FREE] U+E578 -> U+1F193
+ ["eeaa88", :undef], # [SQUARED ID] U+EA88 -> U+1F194
+ ["ee96b5", :undef], # [SQUARED NEW] U+E5B5 -> U+1F195
+ ["ee96ad", :undef], # [SQUARED OK] U+E5AD -> U+1F197
+ ["ee93a8", :undef], # [SQUARED SOS] U+E4E8 -> U+1F198
+ ["ee948f", :undef], # [SQUARED UP WITH EXCLAMATION MARK] U+E50F -> U+1F199
+ ["ee9792", :undef], # [SQUARED VS] U+E5D2 -> U+1F19A
+ ["eeaa87", :undef], # [SQUARED KATAKANA SA] U+EA87 -> U+1F202
+ ["eeaa8a", :undef], # [SQUARED CJK UNIFIED IDEOGRAPH-7A7A] U+EA8A -> U+1F233
+ ["eeaa89", :undef], # [SQUARED CJK UNIFIED IDEOGRAPH-6E80] U+EA89 -> U+1F235
+ ["eeaa86", :undef], # [SQUARED CJK UNIFIED IDEOGRAPH-5272] U+EA86 -> U+1F239
+ ["eeaa8b", "f09f88af"], # [SQUARED CJK UNIFIED IDEOGRAPH-6307] U+EA8B -> U+1F22F
+ ["eeaa8c", :undef], # [SQUARED CJK UNIFIED IDEOGRAPH-55B6] U+EA8C -> U+1F23A
+ ["ee93b1", "e38a99"], # [CIRCLED IDEOGRAPH SECRET] U+E4F1 -> U+3299
+ ["eeaa99", "e38a97"], # [CIRCLED IDEOGRAPH CONGRATULATION] U+EA99 -> U+3297
+ ["ee93b7", :undef], # [CIRCLED IDEOGRAPH ADVANTAGE] U+E4F7 -> U+1F250
+ ["eeac81", :undef], # [CIRCLED IDEOGRAPH ACCEPT] U+EB01 -> U+1F251
+ ["ee94bc", :undef], # [HEAVY PLUS SIGN] U+E53C -> U+2795
+ ["ee94bd", :undef], # [HEAVY MINUS SIGN] U+E53D -> U+2796
+ ["ee958f", "e29c96"], # [HEAVY MULTIPLICATION X] U+E54F -> U+2716
+ ["ee9594", :undef], # [HEAVY DIVISION SIGN] U+E554 -> U+2797
+ ["ee91b6", :undef], # [ELECTRIC LIGHT BULB] U+E476 -> U+1F4A1
+ ["ee93a5", :undef], # [ANGER SYMBOL] U+E4E5 -> U+1F4A2
+ ["ee91ba", :undef], # [BOMB] U+E47A -> U+1F4A3
+ ["ee91b5", :undef], # [SLEEPING SYMBOL] U+E475 -> U+1F4A4
+ ["ee96b0", :undef], # [COLLISION SYMBOL] U+E5B0 -> U+1F4A5
+ ["ee96b1", :undef], # [SPLASHING SWEAT SYMBOL] U+E5B1 -> U+1F4A6
+ ["ee93a6", :undef], # [DROP OF WATER] U+E4E6 -> U+1F4A7
+ ["ee93b4", :undef], # [DASH SYMBOL] U+E4F4 -> U+1F4A8
+ ["ee93b5", :undef], # [PILE OF POO] U+E4F5 -> U+1F4A9
+ ["ee93a9", :undef], # [FLEXED BICEPS] U+E4E9 -> U+1F4AA
+ ["eead9c", :undef], # [DIZZY SYMBOL] U+EB5C -> U+1F4AB
+ ["ee93bd", :undef], # [SPEECH BALLOON] U+E4FD -> U+1F4AC
+ ["eeaaab", :undef], # [SPARKLES] U+EAAB -> U+2728
+ ["ee91b9", "e29cb4"], # [EIGHT POINTED BLACK STAR] U+E479 -> U+2734
+ ["ee94be", "e29cb3"], # [EIGHT SPOKED ASTERISK] U+E53E -> U+2733
+ ["ee94ba", "e29aaa"], # [MEDIUM WHITE CIRCLE] U+E53A -> U+26AA
+ ["ee94bb", "e29aab"], # [MEDIUM BLACK CIRCLE] U+E53B -> U+26AB
+ ["ee958a", :undef], # [LARGE RED CIRCLE] U+E54A -> U+1F534
+ ["ee958b", :undef], # [LARGE BLUE CIRCLE] U+E54B -> U+1F535
+ ["ee928b", "e2ad90"], # [WHITE MEDIUM STAR] U+E48B -> U+2B50
+ ["ee9588", "e2ac9c"], # [WHITE LARGE SQUARE] U+E548 -> U+2B1C
+ ["ee9589", "e2ac9b"], # [BLACK LARGE SQUARE] U+E549 -> U+2B1B
+ ["ee94b1", "e296ab"], # [WHITE SMALL SQUARE] U+E531 -> U+25AB
+ ["ee94b2", "e296aa"], # [BLACK SMALL SQUARE] U+E532 -> U+25AA
+ ["ee94b4", "e297bd"], # [WHITE MEDIUM SMALL SQUARE] U+E534 -> U+25FD
+ ["ee94b5", "e297be"], # [BLACK MEDIUM SMALL SQUARE] U+E535 -> U+25FE
+ ["ee94b8", "e297bb"], # [WHITE MEDIUM SQUARE] U+E538 -> U+25FB
+ ["ee94b9", "e297bc"], # [BLACK MEDIUM SQUARE] U+E539 -> U+25FC
+ ["ee9586", :undef], # [LARGE ORANGE DIAMOND] U+E546 -> U+1F536
+ ["ee9587", :undef], # [LARGE BLUE DIAMOND] U+E547 -> U+1F537
+ ["ee94b6", :undef], # [SMALL ORANGE DIAMOND] U+E536 -> U+1F538
+ ["ee94b7", :undef], # [SMALL BLUE DIAMOND] U+E537 -> U+1F539
+ ["ee91ac", "e29d87"], # [SPARKLE] U+E46C -> U+2747
+ ["ee93b0", :undef], # [WHITE FLOWER] U+E4F0 -> U+1F4AE
+ ["ee93b2", :undef], # [HUNDRED POINTS SYMBOL] U+E4F2 -> U+1F4AF
+ ["ee959d", "e286a9"], # [LEFTWARDS ARROW WITH HOOK] U+E55D -> U+21A9
+ ["ee959c", "e286aa"], # [RIGHTWARDS ARROW WITH HOOK] U+E55C -> U+21AA
+ ["eeac8d", :undef], # [CLOCKWISE DOWNWARDS AND UPWARDS OPEN CIRCLE ARROWS] U+EB0D -> U+1F503
+ ["ee9491", :undef], # [SPEAKER WITH THREE SOUND WAVES] U+E511 -> U+1F50A
+ ["ee9684", :undef], # [BATTERY] U+E584 -> U+1F50B
+ ["ee9689", :undef], # [ELECTRIC PLUG] U+E589 -> U+1F50C
+ ["ee9498", :undef], # [LEFT-POINTING MAGNIFYING GLASS] U+E518 -> U+1F50D
+ ["eeac85", :undef], # [RIGHT-POINTING MAGNIFYING GLASS] U+EB05 -> U+1F50E
+ ["ee949c", :undef], # [LOCK] U+E51C -> U+1F512
+ ["eeac8c", :undef], # [LOCK WITH INK PEN] U+EB0C -> U+1F50F
+ ["eeabbc", :undef], # [CLOSED LOCK WITH KEY] U+EAFC -> U+1F510
+ ["ee9499", :undef], # [KEY] U+E519 -> U+1F511
+ ["ee9492", :undef], # [BELL] U+E512 -> U+1F514
+ ["eeac82", "e29891"], # [BALLOT BOX WITH CHECK] U+EB02 -> U+2611
+ ["eeac84", :undef], # [RADIO BUTTON] U+EB04 -> U+1F518
+ ["eeac87", :undef], # [BOOKMARK] U+EB07 -> U+1F516
+ ["ee968a", :undef], # [LINK SYMBOL] U+E58A -> U+1F517
+ ["eeac86", :undef], # [BACK WITH LEFTWARDS ARROW ABOVE] U+EB06 -> U+1F519
+ ["ee968c", "e28083"], # [EM SPACE] U+E58C -> U+2003
+ ["ee968d", "e28082"], # [EN SPACE] U+E58D -> U+2002
+ ["ee968e", "e28085"], # [FOUR-PER-EM SPACE] U+E58E -> U+2005
+ ["ee959e", :undef], # [WHITE HEAVY CHECK MARK] U+E55E -> U+2705
+ ["eeae83", :undef], # [RAISED FIST] U+EB83 -> U+270A
+ ["ee96a7", :undef], # [RAISED HAND] U+E5A7 -> U+270B
+ ["ee96a6", "e29c8c"], # [VICTORY HAND] U+E5A6 -> U+270C
+ ["ee93b3", :undef], # [FISTED HAND SIGN] U+E4F3 -> U+1F44A
+ ["ee93b9", :undef], # [THUMBS UP SIGN] U+E4F9 -> U+1F44D
+ ["ee93b6", "e2989d"], # [WHITE UP POINTING INDEX] U+E4F6 -> U+261D
+ ["eeaa8d", :undef], # [WHITE UP POINTING BACKHAND INDEX] U+EA8D -> U+1F446
+ ["eeaa8e", :undef], # [WHITE DOWN POINTING BACKHAND INDEX] U+EA8E -> U+1F447
+ ["ee93bf", :undef], # [WHITE LEFT POINTING BACKHAND INDEX] U+E4FF -> U+1F448
+ ["ee9480", :undef], # [WHITE RIGHT POINTING BACKHAND INDEX] U+E500 -> U+1F449
+ ["eeab96", :undef], # [WAVING HAND SIGN] U+EAD6 -> U+1F44B
+ ["eeab93", :undef], # [CLAPPING HANDS SIGN] U+EAD3 -> U+1F44F
+ ["eeab94", :undef], # [OK HAND SIGN] U+EAD4 -> U+1F44C
+ ["eeab95", :undef], # [THUMBS DOWN SIGN] U+EAD5 -> U+1F44E
+ ["ee95b7", :undef], # [EMOJI COMPATIBILITY SYMBOL-37] U+E577 -> "[EZ]"
+ ["ee96b2", :undef], # [EMOJI COMPATIBILITY SYMBOL-38] U+E5B2 -> "[ezplus]"
+ ["eeaa9d", :undef], # [EMOJI COMPATIBILITY SYMBOL-39] U+EA9D -> "[EZナビ]"
+ ["eeadb4", :undef], # [EMOJI COMPATIBILITY SYMBOL-40] U+EB74 -> "[EZムービー]"
+ ["eeae81", :undef], # [EMOJI COMPATIBILITY SYMBOL-41] U+EB81 -> "[Cメール]"
+ ["eeae89", :undef], # [EMOJI COMPATIBILITY SYMBOL-42] U+EB89 -> "[Java]"
+ ["eeae8a", :undef], # [EMOJI COMPATIBILITY SYMBOL-43] U+EB8A -> "[BREW]"
+ ["eeae8b", :undef], # [EMOJI COMPATIBILITY SYMBOL-44] U+EB8B -> "[EZç€ã†ãŸ]"
+ ["eeae8c", :undef], # [EMOJI COMPATIBILITY SYMBOL-45] U+EB8C -> "[EZナビ]"
+ ["eeae8d", :undef], # [EMOJI COMPATIBILITY SYMBOL-46] U+EB8D -> "[WIN]"
+ ["eeae8e", :undef], # [EMOJI COMPATIBILITY SYMBOL-47] U+EB8E -> "[プレミアム]"
+ ["eeabbb", :undef], # [EMOJI COMPATIBILITY SYMBOL-48] U+EAFB -> "[オープンウェブ]"
+ ["ee9686", :undef], # [EMOJI COMPATIBILITY SYMBOL-49] U+E586 -> "[PDC]"
+ ["ee94ac", :undef], # [EMOJI COMPATIBILITY SYMBOL-66] U+E52C -> "[Q]"
+ # for undocumented codepoints
+ ["eebda0", "e29880"], # [BLACK SUN WITH RAYS] U+E488 -> U+2600
+ ["eebda5", "e29881"], # [CLOUD] U+E48D -> U+2601
+ ["eebda4", "e29894"], # [UMBRELLA WITH RAIN DROPS] U+E48C -> U+2614
+ ["eebd9d", "e29b84"], # [SNOWMAN WITHOUT SNOW] U+E485 -> U+26C4
+ ["eebd9f", "e29aa1"], # [HIGH VOLTAGE SIGN] U+E487 -> U+26A1
+ ["eebd81", :undef], # [CYCLONE] U+E469 -> U+1F300
+ ["ef82b5", :undef], # [FOGGY] U+E598 -> U+1F301
+ ["eeb2bc", :undef], # [CLOSED UMBRELLA] U+EAE8 -> U+1F302
+ ["eeb385", :undef], # [NIGHT WITH STARS] U+EAF1 -> U+1F303
+ ["eeb388", :undef], # [SUNRISE] U+EAF4 -> U+1F305
+ ["eeb18d", :undef], # [CITYSCAPE AT DUSK] U+E5DA -> "[夕焼ã‘]"
+ ["eeb386", :undef], # [RAINBOW] U+EAF2 -> U+1F308
+ ["eebda2", "e29d84"], # [SNOWFLAKE] U+E48A -> U+2744
+ ["eebda6", "e29b85"], # [SUN BEHIND CLOUD] U+E48E -> U+26C5
+ ["eebe98", :undef], # [BRIDGE AT NIGHT] U+E4BF -> U+1F309
+ ["eeb681", :undef], # [WATER WAVE] U+EB7C -> U+1F30A
+ ["eeb597", :undef], # [VOLCANO] U+EB53 -> U+1F30B
+ ["eeb5a3", :undef], # [MILKY WAY] U+EB5F -> U+1F30C
+ ["ef8390", :undef], # [EARTH GLOBE ASIA-AUSTRALIA] U+E5B3 -> U+1F30F
+ ["ef8385", :undef], # [NEW MOON SYMBOL] U+E5A8 -> U+1F311
+ ["ef8386", :undef], # [WAXING GIBBOUS MOON SYMBOL] U+E5A9 -> U+1F314
+ ["ef8387", :undef], # [FIRST QUARTER MOON SYMBOL] U+E5AA -> U+1F313
+ ["eebd9e", :undef], # [CRESCENT MOON] U+E486 -> U+1F319
+ ["eebda1", :undef], # [FIRST QUARTER MOON WITH FACE] U+E489 -> U+1F31B
+ ["eebd80", :undef], # [SHOOTING STAR] U+E468 -> U+1F320
+ ["ef8297", "e28c9a"], # [WATCH] U+E57A -> U+231A
+ ["ef8298", "e28c9b"], # [HOURGLASS] U+E57B -> U+231B
+ ["ef82b1", :undef], # [ALARM CLOCK] U+E594 -> U+23F0
+ ["eebd94", :undef], # [HOURGLASS WITH FLOWING SAND] U+E47C -> U+23F3
+ ["eebda7", "e29988"], # [ARIES] U+E48F -> U+2648
+ ["eebda8", "e29989"], # [TAURUS] U+E490 -> U+2649
+ ["eebda9", "e2998a"], # [GEMINI] U+E491 -> U+264A
+ ["eebdaa", "e2998b"], # [CANCER] U+E492 -> U+264B
+ ["eebdab", "e2998c"], # [LEO] U+E493 -> U+264C
+ ["eebdac", "e2998d"], # [VIRGO] U+E494 -> U+264D
+ ["eebdad", "e2998e"], # [LIBRA] U+E495 -> U+264E
+ ["eebdae", "e2998f"], # [SCORPIUS] U+E496 -> U+264F
+ ["eebdaf", "e29990"], # [SAGITTARIUS] U+E497 -> U+2650
+ ["eebdb0", "e29991"], # [CAPRICORN] U+E498 -> U+2651
+ ["eebdb1", "e29992"], # [AQUARIUS] U+E499 -> U+2652
+ ["eebdb2", "e29993"], # [PISCES] U+E49A -> U+2653
+ ["eebdb3", :undef], # [OPHIUCHUS] U+E49B -> U+26CE
+ ["eebfac", :undef], # [FOUR LEAF CLOVER] U+E513 -> U+1F340
+ ["eebebd", :undef], # [TULIP] U+E4E4 -> U+1F337
+ ["eeb682", :undef], # [SEEDLING] U+EB7D -> U+1F331
+ ["eebea7", :undef], # [MAPLE LEAF] U+E4CE -> U+1F341
+ ["eebea3", :undef], # [CHERRY BLOSSOM] U+E4CA -> U+1F338
+ ["ef83aa", :undef], # [ROSE] U+E5BA -> U+1F339
+ ["eeb180", :undef], # [FALLEN LEAF] U+E5CD -> U+1F342
+ ["eeb1a7", :undef], # [HIBISCUS] U+EA94 -> U+1F33A
+ ["eebebc", :undef], # [SUNFLOWER] U+E4E3 -> U+1F33B
+ ["eebebb", :undef], # [PALM TREE] U+E4E2 -> U+1F334
+ ["eeb1a9", :undef], # [CACTUS] U+EA96 -> U+1F335
+ ["eeb3b7", :undef], # [EAR OF MAIZE] U+EB36 -> U+1F33D
+ ["eeb3b8", :undef], # [MUSHROOM] U+EB37 -> U+1F344
+ ["eeb3b9", :undef], # [CHESTNUT] U+EB38 -> U+1F330
+ ["eeb58d", :undef], # [BLOSSOM] U+EB49 -> U+1F33C
+ ["eeb687", :undef], # [HERB] U+EB82 -> U+1F33F
+ ["eebeab", :undef], # [CHERRIES] U+E4D2 -> U+1F352
+ ["eeb3b6", :undef], # [BANANA] U+EB35 -> U+1F34C
+ ["eeb28d", :undef], # [RED APPLE] U+EAB9 -> U+1F34E
+ ["eeb28e", :undef], # [TANGERINE] U+EABA -> U+1F34A
+ ["eebead", :undef], # [STRAWBERRY] U+E4D4 -> U+1F353
+ ["eebea6", :undef], # [WATERMELON] U+E4CD -> U+1F349
+ ["eeb28f", :undef], # [TOMATO] U+EABB -> U+1F345
+ ["eeb290", :undef], # [AUBERGINE] U+EABC -> U+1F346
+ ["eeb3b3", :undef], # [MELON] U+EB32 -> U+1F348
+ ["eeb3b4", :undef], # [PINEAPPLE] U+EB33 -> U+1F34D
+ ["eeb3b5", :undef], # [GRAPES] U+EB34 -> U+1F347
+ ["eeb3ba", :undef], # [PEACH] U+EB39 -> U+1F351
+ ["eeb59e", :undef], # [GREEN APPLE] U+EB5A -> U+1F34F
+ ["ef8381", :undef], # [EYES] U+E5A4 -> U+1F440
+ ["ef8382", :undef], # [EAR] U+E5A5 -> U+1F442
+ ["eeb2a4", :undef], # [NOSE] U+EAD0 -> U+1F443
+ ["eeb2a5", :undef], # [MOUTH] U+EAD1 -> U+1F444
+ ["eeb58b", :undef], # [TONGUE] U+EB47 -> U+1F445
+ ["eebfa2", :undef], # [LIPSTICK] U+E509 -> U+1F484
+ ["eeb1b3", :undef], # [NAIL POLISH] U+EAA0 -> U+1F485
+ ["eebfa4", :undef], # [FACE MASSAGE] U+E50B -> U+1F486
+ ["eeb1b4", :undef], # [HAIRCUT] U+EAA1 -> U+1F487
+ ["eeb1b5", :undef], # [BARBER POLE] U+EAA2 -> U+1F488
+ ["eebf95", :undef], # [BOY] U+E4FC -> U+1F466
+ ["eebf93", :undef], # [GIRL] U+E4FA -> U+1F467
+ ["eebf9a", :undef], # [FAMILY] U+E501 -> U+1F46A
+ ["eeb190", :undef], # [POLICE OFFICER] U+E5DD -> U+1F46E
+ ["eeb2af", :undef], # [WOMAN WITH BUNNY EARS] U+EADB -> U+1F46F
+ ["eeb2bd", :undef], # [BRIDE WITH VEIL] U+EAE9 -> U+1F470
+ ["eeb394", :undef], # [WESTERN PERSON] U+EB13 -> U+1F471
+ ["eeb395", :undef], # [MAN WITH GUA PI MAO] U+EB14 -> U+1F472
+ ["eeb396", :undef], # [MAN WITH TURBAN] U+EB15 -> U+1F473
+ ["eeb397", :undef], # [OLDER MAN] U+EB16 -> U+1F474
+ ["eeb398", :undef], # [OLDER WOMAN] U+EB17 -> U+1F475
+ ["eeb399", :undef], # [BABY] U+EB18 -> U+1F476
+ ["eeb39a", :undef], # [CONSTRUCTION WORKER] U+EB19 -> U+1F477
+ ["eeb39b", :undef], # [PRINCESS] U+EB1A -> U+1F478
+ ["eeb588", :undef], # [JAPANESE OGRE] U+EB44 -> U+1F479
+ ["eeb589", :undef], # [JAPANESE GOBLIN] U+EB45 -> U+1F47A
+ ["eebea4", :undef], # [GHOST] U+E4CB -> U+1F47B
+ ["ef83af", :undef], # [BABY ANGEL] U+E5BF -> U+1F47C
+ ["eebfa7", :undef], # [EXTRATERRESTRIAL ALIEN] U+E50E -> U+1F47D
+ ["eebf85", :undef], # [ALIEN MONSTER] U+E4EC -> U+1F47E
+ ["eebf88", :undef], # [IMP] U+E4EF -> U+1F47F
+ ["eebf91", :undef], # [SKULL] U+E4F8 -> U+1F480
+ ["eeb39d", :undef], # [DANCER] U+EB1C -> U+1F483
+ ["eeb683", :undef], # [SNAIL] U+EB7E -> U+1F40C
+ ["eeb3a3", :undef], # [SNAKE] U+EB22 -> U+1F40D
+ ["eeb3a4", :undef], # [CHICKEN] U+EB23 -> U+1F414
+ ["eeb3a5", :undef], # [BOAR] U+EB24 -> U+1F417
+ ["eeb3a6", :undef], # [BACTRIAN CAMEL] U+EB25 -> U+1F42B
+ ["eeb3a0", :undef], # [ELEPHANT] U+EB1F -> U+1F418
+ ["eeb3a1", :undef], # [KOALA] U+EB20 -> U+1F428
+ ["ef83b7", :undef], # [OCTOPUS] U+E5C7 -> U+1F419
+ ["eeb380", :undef], # [SPIRAL SHELL] U+EAEC -> U+1F41A
+ ["eeb39f", :undef], # [BUG] U+EB1E -> U+1F41B
+ ["eebeb6", :undef], # [ANT] U+E4DD -> U+1F41C
+ ["eeb59b", :undef], # [HONEYBEE] U+EB57 -> U+1F41D
+ ["eeb59c", :undef], # [LADY BEETLE] U+EB58 -> U+1F41E
+ ["eeb39e", :undef], # [TROPICAL FISH] U+EB1D -> U+1F420
+ ["eebeac", :undef], # [BLOWFISH] U+E4D3 -> U+1F421
+ ["eeb187", :undef], # [TURTLE] U+E5D4 -> U+1F422
+ ["eebeb9", :undef], # [BABY CHICK] U+E4E0 -> U+1F424
+ ["eeb5ba", :undef], # [FRONT-FACING BABY CHICK] U+EB76 -> U+1F425
+ ["eeb18e", :undef], # [HATCHING CHICK] U+E5DB -> U+1F423
+ ["eebeb5", :undef], # [PENGUIN] U+E4DC -> U+1F427
+ ["eebeb8", :undef], # [POODLE] U+E4DF -> U+1F429
+ ["eeb39c", :undef], # [DOLPHIN] U+EB1B -> U+1F42C
+ ["ef83b2", :undef], # [MOUSE FACE] U+E5C2 -> U+1F42D
+ ["ef83b0", :undef], # [TIGER FACE] U+E5C0 -> U+1F42F
+ ["eebeb4", :undef], # [CAT FACE] U+E4DB -> U+1F431
+ ["eebd88", :undef], # [SPOUTING WHALE] U+E470 -> U+1F433
+ ["eebeb1", :undef], # [HORSE FACE] U+E4D8 -> U+1F434
+ ["eebeb2", :undef], # [MONKEY FACE] U+E4D9 -> U+1F435
+ ["eebeba", :undef], # [DOG FACE] U+E4E1 -> U+1F436
+ ["eebeb7", :undef], # [PIG FACE] U+E4DE -> U+1F437
+ ["ef83b1", :undef], # [BEAR FACE] U+E5C1 -> U+1F43B
+ ["eeb3a2", :undef], # [COW FACE] U+EB21 -> U+1F42E
+ ["eebeb0", :undef], # [RABBIT FACE] U+E4D7 -> U+1F430
+ ["eebeb3", :undef], # [FROG FACE] U+E4DA -> U+1F438
+ ["eebf87", :undef], # [PAW PRINTS] U+E4EE -> U+1F43E
+ ["eeb583", :undef], # [DRAGON FACE] U+EB3F -> U+1F432
+ ["eeb58a", :undef], # [PANDA FACE] U+EB46 -> U+1F43C
+ ["eeb58c", :undef], # [PIG NOSE] U+EB48 -> U+1F43D
+ ["eebd8a", :undef], # [ANGRY FACE] U+E472 -> U+1F600
+ ["eeb5ab", :undef], # [ANGUISHED FACE] U+EB67 -> U+1F601
+ ["eeb29e", :undef], # [ASTONISHED FACE] U+EACA -> U+1F602
+ ["ef838b", :undef], # [DIZZY FACE] U+E5AE -> U+1F604
+ ["eeb29f", :undef], # [EXASPERATED FACE] U+EACB -> U+1F605
+ ["eeb29d", :undef], # [EXPRESSIONLESS FACE] U+EAC9 -> U+1F606
+ ["ef83b4", :undef], # [FACE WITH HEART-SHAPED EYES] U+E5C4 -> U+1F607
+ ["eeb295", :undef], # [FACE WITH LOOK OF TRIUMPH] U+EAC1 -> U+1F608
+ ["eebf80", :undef], # [WINKING FACE WITH STUCK-OUT TONGUE] U+E4E7 -> U+1F609
+ ["eeb2a3", :undef], # [FACE THROWING A KISS] U+EACF -> U+1F60C
+ ["eeb2a2", :undef], # [FACE KISSING] U+EACE -> U+1F60D
+ ["eeb29b", :undef], # [FACE WITH MASK] U+EAC7 -> U+1F60E
+ ["eeb29c", :undef], # [FLUSHED FACE] U+EAC8 -> U+1F60F
+ ["eebd89", :undef], # [HAPPY FACE WITH OPEN MOUTH] U+E471 -> U+1F610
+ ["eeb685", :undef], # [HAPPY FACE WITH GRIN] U+EB80 -> U+1F613
+ ["eeb5a8", :undef], # [HAPPY AND CRYING FACE] U+EB64 -> U+1F614
+ ["eeb2a1", :undef], # [HAPPY FACE WITH WIDE MOUTH AND RAISED EYEBROWS] U+EACD -> U+1F615
+ ["eebf94", "e298ba"], # [WHITE SMILING FACE] U+E4FB -> U+263A
+ ["eeb5ad", :undef], # [CRYING FACE] U+EB69 -> U+1F617
+ ["eebd8b", :undef], # [LOUDLY CRYING FACE] U+E473 -> U+1F618
+ ["eeb29a", :undef], # [FEARFUL FACE] U+EAC6 -> U+1F619
+ ["eeb296", :undef], # [PERSEVERING FACE] U+EAC2 -> U+1F61A
+ ["eeb5a1", :undef], # [POUTING FACE] U+EB5D -> U+1F61B
+ ["eeb299", :undef], # [RELIEVED FACE] U+EAC5 -> U+1F61C
+ ["eeb297", :undef], # [CONFOUNDED FACE] U+EAC3 -> U+1F61D
+ ["eeb294", :undef], # [PENSIVE FACE] U+EAC0 -> U+1F61E
+ ["ef83b5", :undef], # [FACE SCREAMING IN FEAR] U+E5C5 -> U+1F61F
+ ["eeb298", :undef], # [SLEEPY FACE] U+EAC4 -> U+1F620
+ ["eeb293", :undef], # [SMIRKING FACE] U+EABF -> U+1F621
+ ["ef83b6", :undef], # [FACE WITH COLD SWEAT] U+E5C6 -> U+1F622
+ ["eebd8c", :undef], # [TIRED FACE] U+E474 -> U+1F624
+ ["ef83b3", :undef], # [WINKING FACE] U+E5C3 -> U+1F625
+ ["eeb5a5", :undef], # [CAT FACE WITH OPEN MOUTH] U+EB61 -> U+1F62B
+ ["eeb684", :undef], # [HAPPY CAT FACE WITH GRIN] U+EB7F -> U+1F62C
+ ["eeb5a7", :undef], # [HAPPY AND CRYING CAT FACE] U+EB63 -> U+1F62D
+ ["eeb5a4", :undef], # [CAT FACE KISSING] U+EB60 -> U+1F62E
+ ["eeb5a9", :undef], # [CAT FACE WITH HEART-SHAPED EYES] U+EB65 -> U+1F62F
+ ["eeb5ac", :undef], # [CRYING CAT FACE] U+EB68 -> U+1F630
+ ["eeb5a2", :undef], # [POUTING CAT FACE] U+EB5E -> U+1F631
+ ["eeb5ae", :undef], # [CAT FACE WITH TIGHTLY-CLOSED LIPS] U+EB6A -> U+1F632
+ ["eeb5aa", :undef], # [ANGUISHED CAT FACE] U+EB66 -> U+1F633
+ ["eeb2ab", :undef], # [FACE WITH NO GOOD GESTURE] U+EAD7 -> U+1F634
+ ["eeb2ac", :undef], # [FACE WITH OK GESTURE] U+EAD8 -> U+1F635
+ ["eeb2ad", :undef], # [PERSON BOWING DEEPLY] U+EAD9 -> U+1F636
+ ["eeb594", :undef], # [SEE-NO-EVIL MONKEY] U+EB50 -> U+1F637
+ ["eeb595", :undef], # [SPEAK-NO-EVIL MONKEY] U+EB51 -> U+1F639
+ ["eeb596", :undef], # [HEAR-NO-EVIL MONKEY] U+EB52 -> U+1F638
+ ["eeb68a", :undef], # [PERSON RAISING ONE HAND] U+EB85 -> U+1F63A
+ ["eeb68b", :undef], # [PERSON RAISING BOTH HANDS IN CELEBRATION] U+EB86 -> U+1F63B
+ ["eeb68c", :undef], # [PERSON FROWNING] U+EB87 -> U+1F63C
+ ["eeb68d", :undef], # [PERSON WITH POUTING FACE] U+EB88 -> U+1F63D
+ ["eeb2a6", :undef], # [PERSON WITH FOLDED HANDS] U+EAD2 -> U+1F63E
+ ["eebe84", :undef], # [HOUSE BUILDING] U+E4AB -> U+1F3E0
+ ["ef83a0", :undef], # [HOUSE WITH GARDEN] U+EB09 -> U+1F3E1
+ ["eebe86", :undef], # [OFFICE BUILDING] U+E4AD -> U+1F3E2
+ ["eeb191", :undef], # [JAPANESE POST OFFICE] U+E5DE -> U+1F3E3
+ ["eeb192", :undef], # [HOSPITAL] U+E5DF -> U+1F3E5
+ ["eebe83", :undef], # [BANK] U+E4AA -> U+1F3E6
+ ["eebdbb", :undef], # [AUTOMATED TELLER MACHINE] U+E4A3 -> U+1F3E7
+ ["eeb194", :undef], # [HOTEL] U+EA81 -> U+1F3E8
+ ["eeb387", :undef], # [LOVE HOTEL] U+EAF3 -> U+1F3E9
+ ["eebdbc", :undef], # [CONVENIENCE STORE] U+E4A4 -> U+1F3EA
+ ["eeb193", :undef], # [SCHOOL] U+EA80 -> U+1F3EB
+ ["ef83ab", "e29baa"], # [CHURCH] U+E5BB -> U+26EA
+ ["eeb182", "e29bb2"], # [FOUNTAIN] U+E5CF -> U+26F2
+ ["eeb38a", :undef], # [DEPARTMENT STORE] U+EAF6 -> U+1F3EC
+ ["eeb38b", :undef], # [JAPANESE CASTLE] U+EAF7 -> U+1F3EF
+ ["eeb38c", :undef], # [EUROPEAN CASTLE] U+EAF8 -> U+1F3F0
+ ["eeb38d", :undef], # [FACTORY] U+EAF9 -> U+1F3ED
+ ["eebe82", "e29a93"], # [ANCHOR] U+E4A9 -> U+2693
+ ["eebe96", :undef], # [IZAKAYA LANTERN] U+E4BD -> U+1F3EE
+ ["ef83ad", :undef], # [MOUNT FUJI] U+E5BD -> U+1F5FB
+ ["eebe99", :undef], # [TOKYO TOWER] U+E4C0 -> U+1F5FC
+ ["ef828f", :undef], # [SILHOUETTE OF JAPAN] U+E572 -> U+1F5FE
+ ["eeb5b0", :undef], # [MOYAI] U+EB6C -> U+1F5FF
+ ["ef83a7", :undef], # [MANS SHOE] U+E5B7 -> U+1F45E
+ ["eeb3ac", :undef], # [ATHLETIC SHOE] U+EB2B -> U+1F45F
+ ["eebfb3", :undef], # [HIGH-HEELED SHOE] U+E51A -> U+1F460
+ ["eeb1b2", :undef], # [WOMANS BOOTS] U+EA9F -> U+1F462
+ ["eeb3ab", :undef], # [FOOTPRINTS] U+EB2A -> U+1F463
+ ["eebf97", :undef], # [EYEGLASSES] U+E4FE -> U+1F453
+ ["ef83a6", :undef], # [T-SHIRT] U+E5B6 -> U+1F455
+ ["eeb5bb", :undef], # [JEANS] U+EB77 -> U+1F456
+ ["ef83b9", :undef], # [CROWN] U+E5C9 -> U+1F451
+ ["eeb1a6", :undef], # [NECKTIE] U+EA93 -> U+1F454
+ ["eeb1b1", :undef], # [WOMANS HAT] U+EA9E -> U+1F452
+ ["eeb5af", :undef], # [DRESS] U+EB6B -> U+1F457
+ ["eeb1b6", :undef], # [KIMONO] U+EAA3 -> U+1F458
+ ["eeb1b7", :undef], # [BIKINI] U+EAA4 -> U+1F459
+ ["eebfa6", :undef], # [WOMANS CLOTHES] U+E50D -> U+1F45A
+ ["eebf9d", :undef], # [PURSE] U+E504 -> U+1F45B
+ ["eebdb4", :undef], # [HANDBAG] U+E49C -> U+1F45C
+ ["eebea0", :undef], # [MONEY BAG] U+E4C7 -> U+1F4B0
+ ["eeb18f", :undef], # [CHART WITH UPWARDS TREND AND YEN SIGN] U+E5DC -> U+1F4B9
+ ["ef8296", :undef], # [HEAVY DOLLAR SIGN] U+E579 -> U+1F4B2
+ ["ef8299", :undef], # [CREDIT CARD] U+E57C -> U+1F4B3
+ ["ef829a", :undef], # [BANKNOTE WITH YEN SIGN] U+E57D -> U+1F4B4
+ ["ef82a2", :undef], # [BANKNOTE WITH DOLLAR SIGN] U+E585 -> U+1F4B5
+ ["eeb59f", :undef], # [MONEY WITH WINGS] U+EB5B -> U+1F4B8
+ ["eeb392", "f09f87a8f09f87b3"], # [REGIONAL INDICATOR SYMBOL LETTERS CN] U+EB11 -> U+1F1E8 U+1F1F3
+ ["eeb38f", "f09f87a9f09f87aa"], # [REGIONAL INDICATOR SYMBOL LETTERS DE] U+EB0E -> U+1F1E9 U+1F1EA
+ ["eeb188", "f09f87aaf09f87b8"], # [REGIONAL INDICATOR SYMBOL LETTERS ES] U+E5D5 -> U+1F1EA U+1F1F8
+ ["eeb38e", "f09f87abf09f87b7"], # [REGIONAL INDICATOR SYMBOL LETTERS FR] U+EAFA -> U+1F1EB U+1F1F7
+ ["eeb391", "f09f87baf09f87b0"], # [REGIONAL INDICATOR SYMBOL LETTERS GB] U+EB10 -> U+1F1FA U+1F1F0
+ ["eeb390", "f09f87aef09f87b9"], # [REGIONAL INDICATOR SYMBOL LETTERS IT] U+EB0F -> U+1F1EE U+1F1F9
+ ["eebea5", "f09f87aff09f87b5"], # [REGIONAL INDICATOR SYMBOL LETTERS JP] U+E4CC -> U+1F1EF U+1F1F5
+ ["eeb393", "f09f87b0f09f87b7"], # [REGIONAL INDICATOR SYMBOL LETTERS KR] U+EB12 -> U+1F1F0 U+1F1F7
+ ["eeb189", "f09f87b7f09f87ba"], # [REGIONAL INDICATOR SYMBOL LETTERS RU] U+E5D6 -> U+1F1F7 U+1F1FA
+ ["ef8290", "f09f87baf09f87b8"], # [REGIONAL INDICATOR SYMBOL LETTERS US] U+E573 -> U+1F1FA U+1F1F8
+ ["eebd93", :undef], # [FIRE] U+E47B -> U+1F525
+ ["ef82a0", :undef], # [ELECTRIC TORCH] U+E583 -> U+1F526
+ ["ef82a4", :undef], # [WRENCH] U+E587 -> U+1F527
+ ["ef83bb", :undef], # [HAMMER] U+E5CB -> U+1F528
+ ["ef829e", :undef], # [NUT AND BOLT] U+E581 -> U+1F529
+ ["ef829c", :undef], # [HOCHO] U+E57F -> U+1F52A
+ ["eebfa3", :undef], # [PISTOL] U+E50A -> U+1F52B
+ ["eeb1a2", :undef], # [CRYSTAL BALL] U+EA8F -> U+1F52E
+ ["eebd98", :undef], # [JAPANESE SYMBOL FOR BEGINNER] U+E480 -> U+1F530
+ ["eebfa9", :undef], # [SYRINGE] U+E510 -> U+1F489
+ ["eeb1ad", :undef], # [PILL] U+EA9A -> U+1F48A
+ ["eeb3a7", :undef], # [NEGATIVE SQUARED LATIN CAPITAL LETTER A] U+EB26 -> U+1F170
+ ["eeb3a8", :undef], # [NEGATIVE SQUARED LATIN CAPITAL LETTER B] U+EB27 -> U+1F171
+ ["eeb3aa", :undef], # [NEGATIVE SQUARED AB] U+EB29 -> U+1F18E
+ ["eeb3a9", :undef], # [NEGATIVE SQUARED LATIN CAPITAL LETTER O] U+EB28 -> U+1F17E
+ ["ef82bc", :undef], # [RIBBON] U+E59F -> U+1F380
+ ["eebea8", :undef], # [WRAPPED PRESENT] U+E4CF -> U+1F381
+ ["ef82bd", :undef], # [BIRTHDAY CAKE] U+E5A0 -> U+1F382
+ ["eebea2", :undef], # [CHRISTMAS TREE] U+E4C9 -> U+1F384
+ ["eeb384", :undef], # [FATHER CHRISTMAS] U+EAF0 -> U+1F385
+ ["eeb18c", :undef], # [CROSSED FLAGS] U+E5D9 -> U+1F38C
+ ["ef83bc", :undef], # [FIREWORKS] U+E5CC -> U+1F386
+ ["eeb1ae", :undef], # [BALLOON] U+EA9B -> U+1F388
+ ["eeb1af", :undef], # [PARTY POPPER] U+EA9C -> U+1F389
+ ["eeb2b7", :undef], # [PINE DECORATION] U+EAE3 -> U+1F38D
+ ["eeb2b8", :undef], # [JAPANESE DOLLS] U+EAE4 -> U+1F38E
+ ["eeb2b9", :undef], # [GRADUATION CAP] U+EAE5 -> U+1F393
+ ["eeb2ba", :undef], # [SCHOOL SATCHEL] U+EAE6 -> U+1F392
+ ["eeb2bb", :undef], # [CARP STREAMER] U+EAE7 -> U+1F38F
+ ["eeb2bf", :undef], # [FIREWORK SPARKLER] U+EAEB -> U+1F387
+ ["eeb381", :undef], # [WIND CHIME] U+EAED -> U+1F390
+ ["eeb382", :undef], # [JACK-O-LANTERN] U+EAEE -> U+1F383
+ ["eebd87", :undef], # [CONFETTI BALL] U+E46F -> U+1F38A
+ ["eeb581", :undef], # [TANABATA TREE] U+EB3D -> U+1F38B
+ ["eeb383", :undef], # [MOON VIEWING CEREMONY] U+EAEF -> U+1F391
+ ["ef82b8", :undef], # [PAGER] U+E59B -> U+1F4DF
+ ["ef82b3", "e2988e"], # [BLACK TELEPHONE] U+E596 -> U+260E
+ ["eebfb7", :undef], # [TELEPHONE RECEIVER] U+E51E -> U+1F4DE
+ ["ef82a5", :undef], # [MOBILE PHONE] U+E588 -> U+1F4F1
+ ["ef839f", :undef], # [MOBILE PHONE WITH RIGHTWARDS ARROW AT LEFT] U+EB08 -> U+1F4F2
+ ["eeb1a5", :undef], # [MEMO] U+EA92 -> U+1F4DD
+ ["eebfb9", :undef], # [FAX MACHINE] U+E520 -> U+1F4E0
+ ["eebfba", "e29c89"], # [ENVELOPE] U+E521 -> U+2709
+ ["ef82ae", :undef], # [INCOMING ENVELOPE] U+E591 -> U+1F4E8
+ ["eeb5a6", :undef], # [ENVELOPE WITH DOWNWARDS ARROW ABOVE] U+EB62 -> U+1F4E9
+ ["eebfb4", :undef], # [CLOSED MAILBOX WITH LOWERED FLAG] U+E51B -> U+1F4EA
+ ["ef83a1", :undef], # [CLOSED MAILBOX WITH RAISED FLAG] U+EB0A -> U+1F4EB
+ ["ef82a8", :undef], # [NEWSPAPER] U+E58B -> U+1F4F0
+ ["eebe81", :undef], # [SATELLITE ANTENNA] U+E4A8 -> U+1F4E1
+ ["ef82af", :undef], # [OUTBOX TRAY] U+E592 -> U+1F4E4
+ ["ef82b0", :undef], # [INBOX TRAY] U+E593 -> U+1F4E5
+ ["eebfb8", :undef], # [PACKAGE] U+E51F -> U+1F4E6
+ ["eeb5b5", :undef], # [E-MAIL SYMBOL] U+EB71 -> U+1F4E7
+ ["ef8394", :undef], # [INPUT SYMBOL FOR LATIN CAPITAL LETTERS] U+EAFD -> U+1F520
+ ["ef8395", :undef], # [INPUT SYMBOL FOR LATIN SMALL LETTERS] U+EAFE -> U+1F521
+ ["ef8396", :undef], # [INPUT SYMBOL FOR NUMBERS] U+EAFF -> U+1F522
+ ["ef8397", :undef], # [INPUT SYMBOL FOR SYMBOLS] U+EB00 -> U+1F523
+ ["eeb599", :undef], # [INPUT SYMBOL FOR LATIN LETTERS] U+EB55 -> U+1F524
+ ["ef839a", "e29c92"], # [BLACK NIB] U+EB03 -> U+2712
+ ["ef83a8", :undef], # [PERSONAL COMPUTER] U+E5B8 -> U+1F4BB
+ ["eebdb9", "e29c8f"], # [PENCIL] U+E4A1 -> U+270F
+ ["eebdb8", :undef], # [PAPERCLIP] U+E4A0 -> U+1F4CE
+ ["eeb181", :undef], # [BRIEFCASE] U+E5CE -> U+1F4BC
+ ["ef829f", :undef], # [MINIDISC] U+E582 -> U+1F4BD
+ ["ef81be", :undef], # [FLOPPY DISK] U+E562 -> U+1F4BE
+ ["eebfa5", :undef], # [OPTICAL DISC] U+E50C -> U+1F4BF
+ ["eebfaf", "e29c82"], # [BLACK SCISSORS] U+E516 -> U+2702
+ ["ef81bc", :undef], # [ROUND PUSHPIN] U+E560 -> U+1F4CD
+ ["ef81bd", :undef], # [PAGE WITH CURL] U+E561 -> U+1F4C3
+ ["ef8286", :undef], # [PAGE FACING UP] U+E569 -> U+1F4C4
+ ["ef8280", :undef], # [CALENDAR] U+E563 -> U+1F4C5
+ ["ef82ac", :undef], # [FILE FOLDER] U+E58F -> U+1F4C1
+ ["ef82ad", :undef], # [OPEN FILE FOLDER] U+E590 -> U+1F4C2
+ ["ef8288", :undef], # [NOTEBOOK] U+E56B -> U+1F4D3
+ ["eebdb7", :undef], # [OPEN BOOK] U+E49F -> U+1F4D6
+ ["eebdb5", :undef], # [NOTEBOOK WITH DECORATIVE COVER] U+E49D -> U+1F4D4
+ ["ef8285", :undef], # [CLOSED BOOK] U+E568 -> U+1F4D5
+ ["ef8282", :undef], # [GREEN BOOK] U+E565 -> U+1F4D7
+ ["ef8283", :undef], # [BLUE BOOK] U+E566 -> U+1F4D8
+ ["ef8284", :undef], # [ORANGE BOOK] U+E567 -> U+1F4D9
+ ["ef828c", :undef], # [BOOKS] U+E56F -> U+1F4DA
+ ["eebfb6", :undef], # [NAME BADGE] U+E51D -> U+1F4DB
+ ["ef81bb", :undef], # [SCROLL] U+E55F -> U+1F4DC
+ ["ef8281", :undef], # [CLIPBOARD] U+E564 -> U+1F4CB
+ ["ef8287", :undef], # [TEAR-OFF CALENDAR] U+E56A -> U+1F4C6
+ ["ef8291", :undef], # [BAR CHART] U+E574 -> U+1F4CA
+ ["ef8292", :undef], # [CHART WITH UPWARDS TREND] U+E575 -> U+1F4C8
+ ["ef8293", :undef], # [CHART WITH DOWNWARDS TREND] U+E576 -> U+1F4C9
+ ["ef8289", :undef], # [CARD INDEX] U+E56C -> U+1F4C7
+ ["ef828a", :undef], # [PUSHPIN] U+E56D -> U+1F4CC
+ ["ef828b", :undef], # [LEDGER] U+E56E -> U+1F4D2
+ ["ef828d", :undef], # [STRAIGHT RULER] U+E570 -> U+1F4CF
+ ["eebdba", :undef], # [TRIANGULAR RULER] U+E4A2 -> U+1F4D0
+ ["ef83a2", :undef], # [BOOKMARK TABS] U+EB0B -> U+1F4D1
+ ["eebe93", "e29abe"], # [BASEBALL] U+E4BA -> U+26BE
+ ["ef82b6", "e29bb3"], # [FLAG IN HOLE] U+E599 -> U+26F3
+ ["eebe90", :undef], # [TENNIS RACQUET AND BALL] U+E4B7 -> U+1F3BE
+ ["eebe8f", "e29abd"], # [SOCCER BALL] U+E4B6 -> U+26BD
+ ["eeb280", :undef], # [SKI AND SKI BOOT] U+EAAC -> U+1F3BF
+ ["ef82b7", :undef], # [BASKETBALL AND HOOP] U+E59A -> U+1F3C0
+ ["eebe92", :undef], # [CHEQUERED FLAG] U+E4B9 -> U+1F3C1
+ ["eebe91", :undef], # [SNOWBOARDER] U+E4B8 -> U+1F3C2
+ ["eebd83", :undef], # [RUNNER] U+E46B -> U+1F3C3
+ ["eeb585", :undef], # [SURFER] U+EB41 -> U+1F3C4
+ ["eeb186", :undef], # [TROPHY] U+E5D3 -> U+1F3C6
+ ["eebe94", :undef], # [AMERICAN FOOTBALL] U+E4BB -> U+1F3C8
+ ["eeb2b2", :undef], # [SWIMMER] U+EADE -> U+1F3CA
+ ["eebe8e", :undef], # [TRAIN] U+E4B5 -> U+1F686
+ ["ef83ac", :undef], # [METRO] U+E5BC -> U+1F687
+ ["eebe89", :undef], # [HIGH-SPEED TRAIN WITH BULLET NOSE] U+E4B0 -> U+1F685
+ ["eebe8a", :undef], # [AUTOMOBILE] U+E4B1 -> U+1F697
+ ["eebe88", :undef], # [ONCOMING BUS] U+E4AF -> U+1F68D
+ ["eebe80", :undef], # [BUS STOP] U+E4A7 -> U+1F68F
+ ["eeb195", :undef], # [SHIP] U+EA82 -> U+1F6A2
+ ["eebe8c", "e29c88"], # [AIRPLANE] U+E4B3 -> U+2708
+ ["eebe8d", "e29bb5"], # [SAILBOAT] U+E4B4 -> U+26F5
+ ["eeb5b1", :undef], # [STATION] U+EB6D -> U+1F689
+ ["ef83b8", :undef], # [ROCKET] U+E5C8 -> U+1F680
+ ["eebe8b", :undef], # [DELIVERY TRUCK] U+E4B2 -> U+1F69A
+ ["eeb2b3", :undef], # [FIRE ENGINE] U+EADF -> U+1F692
+ ["eeb2b4", :undef], # [AMBULANCE] U+EAE0 -> U+1F691
+ ["eeb2b5", :undef], # [POLICE CAR] U+EAE1 -> U+1F693
+ ["ef828e", "e29bbd"], # [FUEL PUMP] U+E571 -> U+26FD
+ ["eebdbe", "f09f85bf"], # [NEGATIVE SQUARED LATIN CAPITAL LETTER P] U+E4A6 -> U+1F17F
+ ["eebd82", :undef], # [HORIZONTAL TRAFFIC LIGHT] U+E46A -> U+1F6A5
+ ["eeb18a", :undef], # [CONSTRUCTION SIGN] U+E5D7 -> U+1F6A7
+ ["eeb5b7", :undef], # [POLICE CARS REVOLVING LIGHT] U+EB73 -> U+1F6A8
+ ["eebe95", "e299a8"], # [HOT SPRINGS] U+E4BC -> U+2668
+ ["eeb183", "e29bba"], # [TENT] U+E5D0 -> U+26FA
+ ["eebd85", :undef], # [FERRIS WHEEL] U+E46D -> U+1F3A1
+ ["eeb2b6", :undef], # [ROLLER COASTER] U+EAE2 -> U+1F3A2
+ ["eeb586", :undef], # [FISHING POLE AND FISH] U+EB42 -> U+1F3A3
+ ["eebf9c", :undef], # [MICROPHONE] U+E503 -> U+1F3A4
+ ["eebfb0", :undef], # [MOVIE CAMERA] U+E517 -> U+1F3A5
+ ["eebfa1", :undef], # [HEADPHONE] U+E508 -> U+1F3A7
+ ["ef82b9", :undef], # [ARTIST PALETTE] U+E59C -> U+1F3A8
+ ["eeb389", :undef], # [TOP HAT] U+EAF5 -> U+1F3A9
+ ["ef82bb", :undef], # [CIRCUS TENT] U+E59E -> U+1F3AA
+ ["eebdb6", :undef], # [TICKET] U+E49E -> U+1F3AB
+ ["eebe97", :undef], # [CLAPPER BOARD] U+E4BE -> U+1F3AC
+ ["ef82ba", :undef], # [PERFORMING ARTS] U+E59D -> U+1F3AD
+ ["eebe9f", :undef], # [VIDEO GAME] U+E4C6 -> U+1F3AE
+ ["eeb184", "f09f8084"], # [MAHJONG TILE RED DRAGON] U+E5D1 -> U+1F004
+ ["eebe9e", :undef], # [DIRECT HIT] U+E4C5 -> U+1F3AF
+ ["eebd86", :undef], # [SLOT MACHINE] U+E46E -> U+1F3B0
+ ["eeb2b1", :undef], # [BILLIARDS] U+EADD -> U+1F3B1
+ ["eebea1", :undef], # [GAME DIE] U+E4C8 -> U+1F3B2
+ ["eeb587", :undef], # [BOWLING] U+EB43 -> U+1F3B3
+ ["eeb5b2", :undef], # [FLOWER PLAYING CARDS] U+EB6E -> U+1F3B4
+ ["eeb5b3", :undef], # [PLAYING CARD BLACK JOKER] U+EB6F -> U+1F0CF
+ ["ef83ae", :undef], # [MUSICAL NOTE] U+E5BE -> U+1F3B5
+ ["eebf9e", :undef], # [MULTIPLE MUSICAL NOTES] U+E505 -> U+1F3B6
+ ["eebf9f", :undef], # [GUITAR] U+E506 -> U+1F3B8
+ ["eeb584", :undef], # [MUSICAL KEYBOARD] U+EB40 -> U+1F3B9
+ ["eeb2b0", :undef], # [TRUMPET] U+EADC -> U+1F3BA
+ ["eebfa0", :undef], # [VIOLIN] U+E507 -> U+1F3BB
+ ["eeb2a0", :undef], # [MUSICAL SCORE] U+EACC -> U+1F3BC
+ ["eebfae", :undef], # [CAMERA] U+E515 -> U+1F4F7
+ ["ef829b", :undef], # [VIDEO CAMERA] U+E57E -> U+1F4F9
+ ["eebf9b", :undef], # [TELEVISION] U+E502 -> U+1F4FA
+ ["ef83a9", :undef], # [RADIO] U+E5B9 -> U+1F4FB
+ ["ef829d", :undef], # [VIDEOCASSETTE] U+E580 -> U+1F4FC
+ ["eebf84", :undef], # [KISS MARK] U+E4EB -> U+1F48B
+ ["eeb5bc", :undef], # [LOVE LETTER] U+EB78 -> U+1F48C
+ ["eebfad", :undef], # [RING] U+E514 -> U+1F48D
+ ["ef83ba", :undef], # [KISS] U+E5CA -> U+1F48F
+ ["eeb1a8", :undef], # [BOUQUET] U+EA95 -> U+1F490
+ ["eeb2ae", :undef], # [COUPLE WITH HEART] U+EADA -> U+1F491
+ ["eeb196", :undef], # [NO ONE UNDER EIGHTEEN SYMBOL] U+EA83 -> U+1F51E
+ ["ef81b4", "c2a9"], # [COPYRIGHT SIGN] U+E558 -> U+A9
+ ["ef81b5", "c2ae"], # [REGISTERED SIGN] U+E559 -> U+AE
+ ["ef81aa", "e284a2"], # [TRADE MARK SIGN] U+E54E -> U+2122
+ ["ef818f", "e284b9"], # [INFORMATION SOURCE] U+E533 -> U+2139
+ ["eeb689", "23e283a3"], # [HASH KEY] U+EB84 -> U+23 U+20E3
+ ["eebfbb", "31e283a3"], # [KEYCAP 1] U+E522 -> U+31 U+20E3
+ ["eebfbc", "32e283a3"], # [KEYCAP 2] U+E523 -> U+32 U+20E3
+ ["ef8180", "33e283a3"], # [KEYCAP 3] U+E524 -> U+33 U+20E3
+ ["ef8181", "34e283a3"], # [KEYCAP 4] U+E525 -> U+34 U+20E3
+ ["ef8182", "35e283a3"], # [KEYCAP 5] U+E526 -> U+35 U+20E3
+ ["ef8183", "36e283a3"], # [KEYCAP 6] U+E527 -> U+36 U+20E3
+ ["ef8184", "37e283a3"], # [KEYCAP 7] U+E528 -> U+37 U+20E3
+ ["ef8185", "38e283a3"], # [KEYCAP 8] U+E529 -> U+38 U+20E3
+ ["ef8186", "39e283a3"], # [KEYCAP 9] U+E52A -> U+39 U+20E3
+ ["ef8389", "30e283a3"], # [KEYCAP 0] U+E5AC -> U+30 U+20E3
+ ["ef8187", :undef], # [KEYCAP TEN] U+E52B -> U+1F51F
+ ["eeb197", :undef], # [ANTENNA WITH BARS] U+EA84 -> U+1F4F6
+ ["eeb1a3", :undef], # [VIBRATION MODE] U+EA90 -> U+1F4F3
+ ["eeb1a4", :undef], # [MOBILE PHONE OFF] U+EA91 -> U+1F4F4
+ ["eebeaf", :undef], # [HAMBURGER] U+E4D6 -> U+1F354
+ ["eebeae", :undef], # [RICE BALL] U+E4D5 -> U+1F359
+ ["eebea9", :undef], # [SHORTCAKE] U+E4D0 -> U+1F370
+ ["ef8391", :undef], # [STEAMING BOWL] U+E5B4 -> U+1F35C
+ ["eeb283", :undef], # [BREAD] U+EAAF -> U+1F35E
+ ["eebeaa", :undef], # [COOKING] U+E4D1 -> U+1F373
+ ["eeb284", :undef], # [SOFT ICE CREAM] U+EAB0 -> U+1F366
+ ["eeb285", :undef], # [FRENCH FRIES] U+EAB1 -> U+1F35F
+ ["eeb286", :undef], # [DANGO] U+EAB2 -> U+1F361
+ ["eeb287", :undef], # [RICE CRACKER] U+EAB3 -> U+1F358
+ ["eeb288", :undef], # [COOKED RICE] U+EAB4 -> U+1F35A
+ ["eeb289", :undef], # [SPAGHETTI] U+EAB5 -> U+1F35D
+ ["eeb28a", :undef], # [CURRY AND RICE] U+EAB6 -> U+1F35B
+ ["eeb28b", :undef], # [ODEN] U+EAB7 -> U+1F362
+ ["eeb28c", :undef], # [SUSHI] U+EAB8 -> U+1F363
+ ["eeb291", :undef], # [BENTO BOX] U+EABD -> U+1F371
+ ["eeb292", :undef], # [POT OF FOOD] U+EABE -> U+1F372
+ ["eeb2be", :undef], # [SHAVED ICE] U+EAEA -> U+1F367
+ ["eebe9d", :undef], # [MEAT ON BONE] U+E4C4 -> U+1F356
+ ["eebf86", :undef], # [FISH CAKE WITH SWIRL DESIGN] U+E4ED -> U+1F365
+ ["eeb3bb", :undef], # [ROASTED SWEET POTATO] U+EB3A -> U+1F360
+ ["eeb3bc", :undef], # [SLICE OF PIZZA] U+EB3B -> U+1F355
+ ["eeb580", :undef], # [POULTRY LEG] U+EB3C -> U+1F357
+ ["eeb58e", :undef], # [ICE CREAM] U+EB4A -> U+1F368
+ ["eeb58f", :undef], # [DOUGHNUT] U+EB4B -> U+1F369
+ ["eeb590", :undef], # [COOKIE] U+EB4C -> U+1F36A
+ ["eeb591", :undef], # [CHOCOLATE BAR] U+EB4D -> U+1F36B
+ ["eeb592", :undef], # [CANDY] U+EB4E -> U+1F36C
+ ["eeb593", :undef], # [LOLLIPOP] U+EB4F -> U+1F36D
+ ["eeb59a", :undef], # [CUSTARD] U+EB56 -> U+1F36E
+ ["eeb59d", :undef], # [HONEY POT] U+EB59 -> U+1F36F
+ ["eeb5b4", :undef], # [FRIED SHRIMP] U+EB70 -> U+1F364
+ ["eebe85", :undef], # [FORK AND KNIFE] U+E4AC -> U+1F374
+ ["ef82b4", "e29895"], # [HOT BEVERAGE] U+E597 -> U+2615
+ ["eebe9b", :undef], # [COCKTAIL GLASS] U+E4C2 -> U+1F378
+ ["eebe9c", :undef], # [BEER MUG] U+E4C3 -> U+1F37A
+ ["eeb282", :undef], # [TEACUP WITHOUT HANDLE] U+EAAE -> U+1F375
+ ["eeb1aa", :undef], # [SAKE BOTTLE AND CUP] U+EA97 -> U+1F376
+ ["eebe9a", :undef], # [WINE GLASS] U+E4C1 -> U+1F377
+ ["eeb1ab", :undef], # [CLINKING BEER MUGS] U+EA98 -> U+1F37B
+ ["eeb582", :undef], # [TROPICAL DRINK] U+EB3E -> U+1F379
+ ["ef81b1", "e28697"], # [NORTH EAST ARROW] U+E555 -> U+2197
+ ["ef81a9", "e28698"], # [SOUTH EAST ARROW] U+E54D -> U+2198
+ ["ef81a8", "e28696"], # [NORTH WEST ARROW] U+E54C -> U+2196
+ ["ef81b2", "e28699"], # [SOUTH WEST ARROW] U+E556 -> U+2199
+ ["eeb3ae", "e2a4b4"], # [ARROW POINTING RIGHTWARDS THEN CURVING UPWARDS] U+EB2D -> U+2934
+ ["eeb3af", "e2a4b5"], # [ARROW POINTING RIGHTWARDS THEN CURVING DOWNWARDS] U+EB2E -> U+2935
+ ["eeb5be", "e28694"], # [LEFT RIGHT ARROW] U+EB7A -> U+2194
+ ["eeb680", "e28695"], # [UP DOWN ARROW] U+EB7B -> U+2195
+ ["ef819b", "e2ac86"], # [UPWARDS BLACK ARROW] U+E53F -> U+2B06
+ ["ef819c", "e2ac87"], # [DOWNWARDS BLACK ARROW] U+E540 -> U+2B07
+ ["ef81ae", "e29ea1"], # [BLACK RIGHTWARDS ARROW] U+E552 -> U+27A1
+ ["ef81af", "e2ac85"], # [LEFTWARDS BLACK ARROW] U+E553 -> U+2B05
+ ["ef818a", "e296b6"], # [BLACK RIGHT-POINTING TRIANGLE] U+E52E -> U+25B6
+ ["ef8189", "e29780"], # [BLACK LEFT-POINTING TRIANGLE] U+E52D -> U+25C0
+ ["ef818c", :undef], # [BLACK RIGHT-POINTING DOUBLE TRIANGLE] U+E530 -> U+23E9
+ ["ef818b", :undef], # [BLACK LEFT-POINTING DOUBLE TRIANGLE] U+E52F -> U+23EA
+ ["ef81a1", :undef], # [BLACK UP-POINTING DOUBLE TRIANGLE] U+E545 -> U+23EB
+ ["ef81a0", :undef], # [BLACK DOWN-POINTING DOUBLE TRIANGLE] U+E544 -> U+23EC
+ ["ef81b6", :undef], # [UP-POINTING RED TRIANGLE] U+E55A -> U+1F53A
+ ["ef81b7", :undef], # [DOWN-POINTING RED TRIANGLE] U+E55B -> U+1F53B
+ ["ef819f", :undef], # [UP-POINTING SMALL RED TRIANGLE] U+E543 -> U+1F53C
+ ["ef819e", :undef], # [DOWN-POINTING SMALL RED TRIANGLE] U+E542 -> U+1F53D
+ ["eeb281", "e2ad95"], # [HEAVY LARGE CIRCLE] U+EAAD -> U+2B55
+ ["ef81ac", :undef], # [CROSS MARK] U+E550 -> U+274C
+ ["ef81ad", :undef], # [NEGATIVE SQUARED CROSS MARK] U+E551 -> U+274E
+ ["eebd9a", "e29da2"], # [HEAVY EXCLAMATION MARK ORNAMENT] U+E482 -> U+2762
+ ["eeb3b0", "e28189"], # [EXCLAMATION QUESTION MARK] U+EB2F -> U+2049
+ ["eeb3b1", "e280bc"], # [DOUBLE EXCLAMATION MARK] U+EB30 -> U+203C
+ ["eebd9b", :undef], # [BLACK QUESTION MARK ORNAMENT] U+E483 -> U+2753
+ ["eeb3b2", :undef], # [CURLY LOOP] U+EB31 -> U+27B0
+ ["ef82b2", "e29da4"], # [HEAVY BLACK HEART] U+E595 -> U+2764
+ ["eeb5b9", :undef], # [BEATING HEART] U+EB75 -> U+1F493
+ ["eebd8f", :undef], # [BROKEN HEART] U+E477 -> U+1F494
+ ["eebd90", :undef], # [TWO HEARTS] U+E478 -> U+1F495
+ ["eeb1b9", :undef], # [SPARKLING HEART] U+EAA6 -> U+1F496
+ ["eebf83", :undef], # [HEART WITH ARROW] U+E4EA -> U+1F498
+ ["eeb1ba", :undef], # [BLUE HEART] U+EAA7 -> U+1F499
+ ["eeb1bb", :undef], # [GREEN HEART] U+EAA8 -> U+1F49A
+ ["eeb1bc", :undef], # [YELLOW HEART] U+EAA9 -> U+1F49B
+ ["eeb1bd", :undef], # [PURPLE HEART] U+EAAA -> U+1F49C
+ ["eeb598", :undef], # [HEART WITH RIBBON] U+EB54 -> U+1F49D
+ ["ef838c", :undef], # [REVOLVING HEARTS] U+E5AF -> U+1F49E
+ ["eeb1b8", "e299a5"], # [BLACK HEART SUIT] U+EAA5 -> U+2665
+ ["ef82be", "e299a0"], # [BLACK SPADE SUIT] U+E5A1 -> U+2660
+ ["ef82bf", "e299a6"], # [BLACK DIAMOND SUIT] U+E5A2 -> U+2666
+ ["ef8380", "e299a3"], # [BLACK CLUB SUIT] U+E5A3 -> U+2663
+ ["eebd95", :undef], # [SMOKING SYMBOL] U+E47D -> U+1F6AC
+ ["eebd96", :undef], # [NO SMOKING SYMBOL] U+E47E -> U+1F6AD
+ ["eebd97", "e299bf"], # [WHEELCHAIR SYMBOL] U+E47F -> U+267F
+ ["eeb3ad", :undef], # [TRIANGULAR FLAG ON POST] U+EB2C -> U+1F6A9
+ ["eebd99", "e29aa0"], # [WARNING SIGN] U+E481 -> U+26A0
+ ["eebd9c", "e29b94"], # [NO ENTRY] U+E484 -> U+26D4
+ ["eeb5bd", "e299bb"], # [BLACK UNIVERSAL RECYCLING SYMBOL] U+EB79 -> U+267B
+ ["eebe87", :undef], # [BICYCLE] U+E4AE -> U+1F6B2
+ ["eeb5b6", :undef], # [PEDESTRIAN] U+EB72 -> U+1F6B6
+ ["eeb18b", :undef], # [BATH] U+E5D8 -> U+1F6C0
+ ["eebdbd", :undef], # [RESTROOM] U+E4A5 -> U+1F6BB
+ ["ef819d", :undef], # [NO ENTRY SIGN] U+E541 -> U+1F6AB
+ ["ef81b3", "e29c94"], # [HEAVY CHECK MARK] U+E557 -> U+2714
+ ["ef8388", :undef], # [SQUARED CL] U+E5AB -> U+1F191
+ ["eeb198", :undef], # [SQUARED COOL] U+EA85 -> U+1F192
+ ["ef8295", :undef], # [SQUARED FREE] U+E578 -> U+1F193
+ ["eeb19b", :undef], # [SQUARED ID] U+EA88 -> U+1F194
+ ["ef83a5", :undef], # [SQUARED NEW] U+E5B5 -> U+1F195
+ ["ef838a", :undef], # [SQUARED OK] U+E5AD -> U+1F197
+ ["eebf81", :undef], # [SQUARED SOS] U+E4E8 -> U+1F198
+ ["eebfa8", :undef], # [SQUARED UP WITH EXCLAMATION MARK] U+E50F -> U+1F199
+ ["eeb185", :undef], # [SQUARED VS] U+E5D2 -> U+1F19A
+ ["eeb19a", :undef], # [SQUARED KATAKANA SA] U+EA87 -> U+1F202
+ ["eeb19d", :undef], # [SQUARED CJK UNIFIED IDEOGRAPH-7A7A] U+EA8A -> U+1F233
+ ["eeb19c", :undef], # [SQUARED CJK UNIFIED IDEOGRAPH-6E80] U+EA89 -> U+1F235
+ ["eeb199", :undef], # [SQUARED CJK UNIFIED IDEOGRAPH-5272] U+EA86 -> U+1F239
+ ["eeb19e", "f09f88af"], # [SQUARED CJK UNIFIED IDEOGRAPH-6307] U+EA8B -> U+1F22F
+ ["eeb19f", :undef], # [SQUARED CJK UNIFIED IDEOGRAPH-55B6] U+EA8C -> U+1F23A
+ ["eebf8a", "e38a99"], # [CIRCLED IDEOGRAPH SECRET] U+E4F1 -> U+3299
+ ["eeb1ac", "e38a97"], # [CIRCLED IDEOGRAPH CONGRATULATION] U+EA99 -> U+3297
+ ["eebf90", :undef], # [CIRCLED IDEOGRAPH ADVANTAGE] U+E4F7 -> U+1F250
+ ["ef8398", :undef], # [CIRCLED IDEOGRAPH ACCEPT] U+EB01 -> U+1F251
+ ["ef8198", :undef], # [HEAVY PLUS SIGN] U+E53C -> U+2795
+ ["ef8199", :undef], # [HEAVY MINUS SIGN] U+E53D -> U+2796
+ ["ef81ab", "e29c96"], # [HEAVY MULTIPLICATION X] U+E54F -> U+2716
+ ["ef81b0", :undef], # [HEAVY DIVISION SIGN] U+E554 -> U+2797
+ ["eebd8e", :undef], # [ELECTRIC LIGHT BULB] U+E476 -> U+1F4A1
+ ["eebebe", :undef], # [ANGER SYMBOL] U+E4E5 -> U+1F4A2
+ ["eebd92", :undef], # [BOMB] U+E47A -> U+1F4A3
+ ["eebd8d", :undef], # [SLEEPING SYMBOL] U+E475 -> U+1F4A4
+ ["ef838d", :undef], # [COLLISION SYMBOL] U+E5B0 -> U+1F4A5
+ ["ef838e", :undef], # [SPLASHING SWEAT SYMBOL] U+E5B1 -> U+1F4A6
+ ["eebebf", :undef], # [DROP OF WATER] U+E4E6 -> U+1F4A7
+ ["eebf8d", :undef], # [DASH SYMBOL] U+E4F4 -> U+1F4A8
+ ["eebf8e", :undef], # [PILE OF POO] U+E4F5 -> U+1F4A9
+ ["eebf82", :undef], # [FLEXED BICEPS] U+E4E9 -> U+1F4AA
+ ["eeb5a0", :undef], # [DIZZY SYMBOL] U+EB5C -> U+1F4AB
+ ["eebf96", :undef], # [SPEECH BALLOON] U+E4FD -> U+1F4AC
+ ["eeb1be", :undef], # [SPARKLES] U+EAAB -> U+2728
+ ["eebd91", "e29cb4"], # [EIGHT POINTED BLACK STAR] U+E479 -> U+2734
+ ["ef819a", "e29cb3"], # [EIGHT SPOKED ASTERISK] U+E53E -> U+2733
+ ["ef8196", "e29aaa"], # [MEDIUM WHITE CIRCLE] U+E53A -> U+26AA
+ ["ef8197", "e29aab"], # [MEDIUM BLACK CIRCLE] U+E53B -> U+26AB
+ ["ef81a6", :undef], # [LARGE RED CIRCLE] U+E54A -> U+1F534
+ ["ef81a7", :undef], # [LARGE BLUE CIRCLE] U+E54B -> U+1F535
+ ["eebda3", "e2ad90"], # [WHITE MEDIUM STAR] U+E48B -> U+2B50
+ ["ef81a4", "e2ac9c"], # [WHITE LARGE SQUARE] U+E548 -> U+2B1C
+ ["ef81a5", "e2ac9b"], # [BLACK LARGE SQUARE] U+E549 -> U+2B1B
+ ["ef818d", "e296ab"], # [WHITE SMALL SQUARE] U+E531 -> U+25AB
+ ["ef818e", "e296aa"], # [BLACK SMALL SQUARE] U+E532 -> U+25AA
+ ["ef8190", "e297bd"], # [WHITE MEDIUM SMALL SQUARE] U+E534 -> U+25FD
+ ["ef8191", "e297be"], # [BLACK MEDIUM SMALL SQUARE] U+E535 -> U+25FE
+ ["ef8194", "e297bb"], # [WHITE MEDIUM SQUARE] U+E538 -> U+25FB
+ ["ef8195", "e297bc"], # [BLACK MEDIUM SQUARE] U+E539 -> U+25FC
+ ["ef81a2", :undef], # [LARGE ORANGE DIAMOND] U+E546 -> U+1F536
+ ["ef81a3", :undef], # [LARGE BLUE DIAMOND] U+E547 -> U+1F537
+ ["ef8192", :undef], # [SMALL ORANGE DIAMOND] U+E536 -> U+1F538
+ ["ef8193", :undef], # [SMALL BLUE DIAMOND] U+E537 -> U+1F539
+ ["eebd84", "e29d87"], # [SPARKLE] U+E46C -> U+2747
+ ["eebf89", :undef], # [WHITE FLOWER] U+E4F0 -> U+1F4AE
+ ["eebf8b", :undef], # [HUNDRED POINTS SYMBOL] U+E4F2 -> U+1F4AF
+ ["ef81b9", "e286a9"], # [LEFTWARDS ARROW WITH HOOK] U+E55D -> U+21A9
+ ["ef81b8", "e286aa"], # [RIGHTWARDS ARROW WITH HOOK] U+E55C -> U+21AA
+ ["ef83a4", :undef], # [CLOCKWISE DOWNWARDS AND UPWARDS OPEN CIRCLE ARROWS] U+EB0D -> U+1F503
+ ["eebfaa", :undef], # [SPEAKER WITH THREE SOUND WAVES] U+E511 -> U+1F50A
+ ["ef82a1", :undef], # [BATTERY] U+E584 -> U+1F50B
+ ["ef82a6", :undef], # [ELECTRIC PLUG] U+E589 -> U+1F50C
+ ["eebfb1", :undef], # [LEFT-POINTING MAGNIFYING GLASS] U+E518 -> U+1F50D
+ ["ef839c", :undef], # [RIGHT-POINTING MAGNIFYING GLASS] U+EB05 -> U+1F50E
+ ["eebfb5", :undef], # [LOCK] U+E51C -> U+1F512
+ ["ef83a3", :undef], # [LOCK WITH INK PEN] U+EB0C -> U+1F50F
+ ["ef8393", :undef], # [CLOSED LOCK WITH KEY] U+EAFC -> U+1F510
+ ["eebfb2", :undef], # [KEY] U+E519 -> U+1F511
+ ["eebfab", :undef], # [BELL] U+E512 -> U+1F514
+ ["ef8399", "e29891"], # [BALLOT BOX WITH CHECK] U+EB02 -> U+2611
+ ["ef839b", :undef], # [RADIO BUTTON] U+EB04 -> U+1F518
+ ["ef839e", :undef], # [BOOKMARK] U+EB07 -> U+1F516
+ ["ef82a7", :undef], # [LINK SYMBOL] U+E58A -> U+1F517
+ ["ef839d", :undef], # [BACK WITH LEFTWARDS ARROW ABOVE] U+EB06 -> U+1F519
+ ["ef82a9", "e28083"], # [EM SPACE] U+E58C -> U+2003
+ ["ef82aa", "e28082"], # [EN SPACE] U+E58D -> U+2002
+ ["ef82ab", "e28085"], # [FOUR-PER-EM SPACE] U+E58E -> U+2005
+ ["ef81ba", :undef], # [WHITE HEAVY CHECK MARK] U+E55E -> U+2705
+ ["eeb688", :undef], # [RAISED FIST] U+EB83 -> U+270A
+ ["ef8384", :undef], # [RAISED HAND] U+E5A7 -> U+270B
+ ["ef8383", "e29c8c"], # [VICTORY HAND] U+E5A6 -> U+270C
+ ["eebf8c", :undef], # [FISTED HAND SIGN] U+E4F3 -> U+1F44A
+ ["eebf92", :undef], # [THUMBS UP SIGN] U+E4F9 -> U+1F44D
+ ["eebf8f", "e2989d"], # [WHITE UP POINTING INDEX] U+E4F6 -> U+261D
+ ["eeb1a0", :undef], # [WHITE UP POINTING BACKHAND INDEX] U+EA8D -> U+1F446
+ ["eeb1a1", :undef], # [WHITE DOWN POINTING BACKHAND INDEX] U+EA8E -> U+1F447
+ ["eebf98", :undef], # [WHITE LEFT POINTING BACKHAND INDEX] U+E4FF -> U+1F448
+ ["eebf99", :undef], # [WHITE RIGHT POINTING BACKHAND INDEX] U+E500 -> U+1F449
+ ["eeb2aa", :undef], # [WAVING HAND SIGN] U+EAD6 -> U+1F44B
+ ["eeb2a7", :undef], # [CLAPPING HANDS SIGN] U+EAD3 -> U+1F44F
+ ["eeb2a8", :undef], # [OK HAND SIGN] U+EAD4 -> U+1F44C
+ ["eeb2a9", :undef], # [THUMBS DOWN SIGN] U+EAD5 -> U+1F44E
+ ["ef8294", :undef], # [EMOJI COMPATIBILITY SYMBOL-37] U+E577 -> "[EZ]"
+ ["ef838f", :undef], # [EMOJI COMPATIBILITY SYMBOL-38] U+E5B2 -> "[ezplus]"
+ ["eeb1b0", :undef], # [EMOJI COMPATIBILITY SYMBOL-39] U+EA9D -> "[EZナビ]"
+ ["eeb5b8", :undef], # [EMOJI COMPATIBILITY SYMBOL-40] U+EB74 -> "[EZムービー]"
+ ["eeb686", :undef], # [EMOJI COMPATIBILITY SYMBOL-41] U+EB81 -> "[Cメール]"
+ ["eeb68e", :undef], # [EMOJI COMPATIBILITY SYMBOL-42] U+EB89 -> "[Java]"
+ ["eeb68f", :undef], # [EMOJI COMPATIBILITY SYMBOL-43] U+EB8A -> "[BREW]"
+ ["eeb690", :undef], # [EMOJI COMPATIBILITY SYMBOL-44] U+EB8B -> "[EZç€ã†ãŸ]"
+ ["eeb691", :undef], # [EMOJI COMPATIBILITY SYMBOL-45] U+EB8C -> "[EZナビ]"
+ ["eeb692", :undef], # [EMOJI COMPATIBILITY SYMBOL-46] U+EB8D -> "[WIN]"
+ ["eeb693", :undef], # [EMOJI COMPATIBILITY SYMBOL-47] U+EB8E -> "[プレミアム]"
+ ["ef8392", :undef], # [EMOJI COMPATIBILITY SYMBOL-48] U+EAFB -> "[オープンウェブ]"
+ ["ef82a3", :undef], # [EMOJI COMPATIBILITY SYMBOL-49] U+E586 -> "[PDC]"
+ ["ef8188", :undef], # [EMOJI COMPATIBILITY SYMBOL-66] U+E52C -> "[Q]"
+]
+
+EMOJI_EXCHANGE_TBL['UTF8-SoftBank']['UTF8-DoCoMo'] = [
+ ["ee818a", "ee98be"], # [BLACK SUN WITH RAYS] U+E04A -> U+E63E
+ ["ee8189", "ee98bf"], # [CLOUD] U+E049 -> U+E63F
+ ["ee818b", "ee9980"], # [UMBRELLA WITH RAIN DROPS] U+E04B -> U+E640
+ ["ee8188", "ee9981"], # [SNOWMAN WITHOUT SNOW] U+E048 -> U+E641
+ ["ee84bd", "ee9982"], # [HIGH VOLTAGE SIGN] U+E13D -> U+E642
+ ["ee9183", "ee9983"], # [CYCLONE] U+E443 -> U+E643
+ ["ee90bc", "ee9985"], # [CLOSED UMBRELLA] U+E43C -> U+E645
+ ["ee918b", "ee9ab3"], # [NIGHT WITH STARS] U+E44B -> U+E6B3
+ ["ee818d", "ee98be"], # [SUNRISE OVER MOUNTAINS] U+E04D -> U+E63E
+ ["ee9189", "ee98be"], # [SUNRISE] U+E449 -> U+E63E
+ ["ee8586", :undef], # [CITYSCAPE AT DUSK] U+E146 -> "[夕焼ã‘]"
+ ["ee918a", "ee98be"], # [SUNSET OVER BUILDINGS] U+E44A -> U+E63E
+ ["ee918c", :undef], # [RAINBOW] U+E44C -> "[虹]"
+ ["ee90be", "ee9cbf"], # [WATER WAVE] U+E43E -> U+E73F
+ ["ee818c", "ee9a9f"], # [CRESCENT MOON] U+E04C -> U+E69F
+ ["ee8cb5", :undef], # [GLOWING STAR] U+E335 -> "[☆]"
+ ["ee80a4", "ee9aba"], # [CLOCK FACE ONE OCLOCK] U+E024 -> U+E6BA
+ ["ee80a5", "ee9aba"], # [CLOCK FACE TWO OCLOCK] U+E025 -> U+E6BA
+ ["ee80a6", "ee9aba"], # [CLOCK FACE THREE OCLOCK] U+E026 -> U+E6BA
+ ["ee80a7", "ee9aba"], # [CLOCK FACE FOUR OCLOCK] U+E027 -> U+E6BA
+ ["ee80a8", "ee9aba"], # [CLOCK FACE FIVE OCLOCK] U+E028 -> U+E6BA
+ ["ee80a9", "ee9aba"], # [CLOCK FACE SIX OCLOCK] U+E029 -> U+E6BA
+ ["ee80aa", "ee9aba"], # [CLOCK FACE SEVEN OCLOCK] U+E02A -> U+E6BA
+ ["ee80ab", "ee9aba"], # [CLOCK FACE EIGHT OCLOCK] U+E02B -> U+E6BA
+ ["ee80ac", "ee9aba"], # [CLOCK FACE NINE OCLOCK] U+E02C -> U+E6BA
+ ["ee80ad", "ee9aba"], # [CLOCK FACE TEN OCLOCK] U+E02D -> U+E6BA
+ ["ee80ae", "ee9aba"], # [CLOCK FACE ELEVEN OCLOCK] U+E02E -> U+E6BA
+ ["ee80af", "ee9aba"], # [CLOCK FACE TWELVE OCLOCK] U+E02F -> U+E6BA
+ ["ee88bf", "ee9986"], # [ARIES] U+E23F -> U+E646
+ ["ee8980", "ee9987"], # [TAURUS] U+E240 -> U+E647
+ ["ee8981", "ee9988"], # [GEMINI] U+E241 -> U+E648
+ ["ee8982", "ee9989"], # [CANCER] U+E242 -> U+E649
+ ["ee8983", "ee998a"], # [LEO] U+E243 -> U+E64A
+ ["ee8984", "ee998b"], # [VIRGO] U+E244 -> U+E64B
+ ["ee8985", "ee998c"], # [LIBRA] U+E245 -> U+E64C
+ ["ee8986", "ee998d"], # [SCORPIUS] U+E246 -> U+E64D
+ ["ee8987", "ee998e"], # [SAGITTARIUS] U+E247 -> U+E64E
+ ["ee8988", "ee998f"], # [CAPRICORN] U+E248 -> U+E64F
+ ["ee8989", "ee9990"], # [AQUARIUS] U+E249 -> U+E650
+ ["ee898a", "ee9991"], # [PISCES] U+E24A -> U+E651
+ ["ee898b", :undef], # [OPHIUCHUS] U+E24B -> "[蛇使座]"
+ ["ee8490", "ee9d81"], # [FOUR LEAF CLOVER] U+E110 -> U+E741
+ ["ee8c84", "ee9d83"], # [TULIP] U+E304 -> U+E743
+ ["ee8498", "ee9d87"], # [MAPLE LEAF] U+E118 -> U+E747
+ ["ee80b0", "ee9d88"], # [CHERRY BLOSSOM] U+E030 -> U+E748
+ ["ee80b2", :undef], # [ROSE] U+E032 -> "[ãƒãƒ©]"
+ ["ee8499", "ee9d87"], # [FALLEN LEAF] U+E119 -> U+E747
+ ["ee9187", :undef], # [LEAF FLUTTERING IN WIND] U+E447 -> "[風ã«èˆžã†è‘‰]"
+ ["ee8c83", :undef], # [HIBISCUS] U+E303 -> "[ãƒã‚¤ãƒ“スカス]"
+ ["ee8c85", :undef], # [SUNFLOWER] U+E305 -> "[ã²ã¾ã‚り]"
+ ["ee8c87", :undef], # [PALM TREE] U+E307 -> "[ヤシ]"
+ ["ee8c88", :undef], # [CACTUS] U+E308 -> "[サボテン]"
+ ["ee9184", :undef], # [EAR OF RICE] U+E444 -> "[稲穂]"
+ ["ee8d85", "ee9d85"], # [RED APPLE] U+E345 -> U+E745
+ ["ee8d86", :undef], # [TANGERINE] U+E346 -> "[ã¿ã‹ã‚“]"
+ ["ee8d87", :undef], # [STRAWBERRY] U+E347 -> "[イãƒã‚´]"
+ ["ee8d88", :undef], # [WATERMELON] U+E348 -> "[スイカ]"
+ ["ee8d89", :undef], # [TOMATO] U+E349 -> "[トマト]"
+ ["ee8d8a", :undef], # [AUBERGINE] U+E34A -> "[ナス]"
+ ["ee9099", "ee9a91"], # [EYES] U+E419 -> U+E691
+ ["ee909b", "ee9a92"], # [EAR] U+E41B -> U+E692
+ ["ee909a", :undef], # [NOSE] U+E41A -> "[é¼»]"
+ ["ee909c", "ee9bb9"], # [MOUTH] U+E41C -> U+E6F9
+ ["ee8c9c", "ee9c90"], # [LIPSTICK] U+E31C -> U+E710
+ ["ee8c9d", :undef], # [NAIL POLISH] U+E31D -> "[マニキュア]"
+ ["ee8c9e", :undef], # [FACE MASSAGE] U+E31E -> "[エステ]"
+ ["ee8c9f", "ee99b5"], # [HAIRCUT] U+E31F -> U+E675
+ ["ee8ca0", :undef], # [BARBER POLE] U+E320 -> "[床屋]"
+ ["ee8081", "ee9bb0"], # [BOY] U+E001 -> U+E6F0
+ ["ee8082", "ee9bb0"], # [GIRL] U+E002 -> U+E6F0
+ ["ee8084", "ee9bb0"], # [MAN] U+E004 -> U+E6F0
+ ["ee8085", "ee9bb0"], # [WOMAN] U+E005 -> U+E6F0
+ ["ee90a8", :undef], # [MAN AND WOMAN HOLDING HANDS] U+E428 -> "[カップル]"
+ ["ee8592", :undef], # [POLICE OFFICER] U+E152 -> "[警官]"
+ ["ee90a9", :undef], # [WOMAN WITH BUNNY EARS] U+E429 -> "[ãƒãƒ‹ãƒ¼]"
+ ["ee9495", :undef], # [WESTERN PERSON] U+E515 -> "[白人]"
+ ["ee9496", :undef], # [MAN WITH GUA PI MAO] U+E516 -> "[中国人]"
+ ["ee9497", :undef], # [MAN WITH TURBAN] U+E517 -> "[インド人]"
+ ["ee9498", :undef], # [OLDER MAN] U+E518 -> "[ãŠã˜ã„ã•ã‚“]"
+ ["ee9499", :undef], # [OLDER WOMAN] U+E519 -> "[ãŠã°ã‚ã•ã‚“]"
+ ["ee949a", :undef], # [BABY] U+E51A -> "[赤ã¡ã‚ƒã‚“]"
+ ["ee949b", :undef], # [CONSTRUCTION WORKER] U+E51B -> "[工事ç¾å ´ã®äºº]"
+ ["ee949c", :undef], # [PRINCESS] U+E51C -> "[ãŠå§«æ§˜]"
+ ["ee849b", :undef], # [GHOST] U+E11B -> "[ãŠåŒ–ã‘]"
+ ["ee818e", :undef], # [BABY ANGEL] U+E04E -> "[天使]"
+ ["ee848c", :undef], # [EXTRATERRESTRIAL ALIEN] U+E10C -> "[UFO]"
+ ["ee84ab", :undef], # [ALIEN MONSTER] U+E12B -> "[宇宙人]"
+ ["ee849a", :undef], # [IMP] U+E11A -> "[アクマ]"
+ ["ee849c", :undef], # [SKULL] U+E11C -> "[ドクロ]"
+ ["ee8993", :undef], # [INFORMATION DESK PERSON] U+E253 -> "[案内]"
+ ["ee949e", :undef], # [GUARDSMAN] U+E51E -> "[衛兵]"
+ ["ee949f", :undef], # [DANCER] U+E51F -> "[ダンス]"
+ ["ee94ad", :undef], # [SNAKE] U+E52D -> "[ヘビ]"
+ ["ee84b4", "ee9d94"], # [HORSE] U+E134 -> U+E754
+ ["ee94ae", :undef], # [CHICKEN] U+E52E -> "[ニワトリ]"
+ ["ee94af", :undef], # [BOAR] U+E52F -> "[イノシシ]"
+ ["ee94b0", :undef], # [BACTRIAN CAMEL] U+E530 -> "[ラクダ]"
+ ["ee94a6", :undef], # [ELEPHANT] U+E526 -> "[ゾウ]"
+ ["ee94a7", :undef], # [KOALA] U+E527 -> "[コアラ]"
+ ["ee94a8", :undef], # [MONKEY] U+E528 -> "[サル]"
+ ["ee94a9", :undef], # [SHEEP] U+E529 -> "[ヒツジ]"
+ ["ee848a", :undef], # [OCTOPUS] U+E10A -> "[タコ]"
+ ["ee9181", :undef], # [SPIRAL SHELL] U+E441 -> "[å·»è²]"
+ ["ee94a5", :undef], # [BUG] U+E525 -> "[ゲジゲジ]"
+ ["ee94a2", "ee9d91"], # [TROPICAL FISH] U+E522 -> U+E751
+ ["ee94a3", "ee9d8f"], # [BABY CHICK] U+E523 -> U+E74F
+ ["ee94a1", "ee9d8f"], # [BIRD] U+E521 -> U+E74F
+ ["ee8195", "ee9d90"], # [PENGUIN] U+E055 -> U+E750
+ ["ee8099", "ee9d91"], # [FISH] U+E019 -> U+E751
+ ["ee94a0", :undef], # [DOLPHIN] U+E520 -> "[イルカ]"
+ ["ee8193", :undef], # [MOUSE FACE] U+E053 -> "[ãƒã‚ºãƒŸ]"
+ ["ee8190", :undef], # [TIGER FACE] U+E050 -> "[トラ]"
+ ["ee818f", "ee9aa2"], # [CAT FACE] U+E04F -> U+E6A2
+ ["ee8194", :undef], # [SPOUTING WHALE] U+E054 -> "[クジラ]"
+ ["ee809a", "ee9d94"], # [HORSE FACE] U+E01A -> U+E754
+ ["ee8489", :undef], # [MONKEY FACE] U+E109 -> "[サル]"
+ ["ee8192", "ee9aa1"], # [DOG FACE] U+E052 -> U+E6A1
+ ["ee848b", "ee9d95"], # [PIG FACE] U+E10B -> U+E755
+ ["ee8191", :undef], # [BEAR FACE] U+E051 -> "[クマ]"
+ ["ee94a4", :undef], # [HAMSTER FACE] U+E524 -> "[ãƒãƒ ã‚¹ã‚¿ãƒ¼]"
+ ["ee94aa", "ee9aa1"], # [WOLF FACE] U+E52A -> U+E6A1
+ ["ee94ab", :undef], # [COW FACE] U+E52B -> "[牛]"
+ ["ee94ac", :undef], # [RABBIT FACE] U+E52C -> "[ウサギ]"
+ ["ee94b1", :undef], # [FROG FACE] U+E531 -> "[カエル]"
+ ["ee8199", "ee9bb1"], # [ANGRY FACE] U+E059 -> U+E6F1
+ ["ee9090", "ee9bb4"], # [ASTONISHED FACE] U+E410 -> U+E6F4
+ ["ee8198", "ee9bb2"], # [DISAPPOINTED FACE] U+E058 -> U+E6F2
+ ["ee908f", "ee9ca3"], # [EXASPERATED FACE] U+E40F -> U+E723
+ ["ee908e", "ee9ca5"], # [EXPRESSIONLESS FACE] U+E40E -> U+E725
+ ["ee8486", "ee9ca6"], # [FACE WITH HEART-SHAPED EYES] U+E106 -> U+E726
+ ["ee8485", "ee9ca8"], # [WINKING FACE WITH STUCK-OUT TONGUE] U+E105 -> U+E728
+ ["ee9089", "ee9ca8"], # [FACE WITH STUCK-OUT TONGUE] U+E409 -> U+E728
+ ["ee9098", "ee9ca6"], # [FACE THROWING A KISS] U+E418 -> U+E726
+ ["ee9097", "ee9ca6"], # [FACE KISSING] U+E417 -> U+E726
+ ["ee908c", :undef], # [FACE WITH MASK] U+E40C -> "[風邪ã²ã]"
+ ["ee908d", "ee9caa"], # [FLUSHED FACE] U+E40D -> U+E72A
+ ["ee8197", "ee9bb0"], # [HAPPY FACE WITH OPEN MOUTH] U+E057 -> U+E6F0
+ ["ee9084", "ee9d93"], # [HAPPY FACE WITH GRIN] U+E404 -> U+E753
+ ["ee9092", "ee9caa"], # [HAPPY AND CRYING FACE] U+E412 -> U+E72A
+ ["ee8196", "ee9bb0"], # [HAPPY FACE WITH WIDE MOUTH AND RAISED EYEBROWS] U+E056 -> U+E6F0
+ ["ee9094", "ee9bb0"], # [WHITE SMILING FACE] U+E414 -> U+E6F0
+ ["ee9095", "ee9bb0"], # [HAPPY FACE WITH OPEN MOUTH AND RAISED EYEBROWS] U+E415 -> U+E6F0
+ ["ee9093", "ee9cae"], # [CRYING FACE] U+E413 -> U+E72E
+ ["ee9091", "ee9cad"], # [LOUDLY CRYING FACE] U+E411 -> U+E72D
+ ["ee908b", "ee9d97"], # [FEARFUL FACE] U+E40B -> U+E757
+ ["ee9086", "ee9cab"], # [PERSEVERING FACE] U+E406 -> U+E72B
+ ["ee9096", "ee9ca4"], # [POUTING FACE] U+E416 -> U+E724
+ ["ee908a", "ee9ca1"], # [RELIEVED FACE] U+E40A -> U+E721
+ ["ee9087", "ee9bb3"], # [CONFOUNDED FACE] U+E407 -> U+E6F3
+ ["ee9083", "ee9ca0"], # [PENSIVE FACE] U+E403 -> U+E720
+ ["ee8487", "ee9d97"], # [FACE SCREAMING IN FEAR] U+E107 -> U+E757
+ ["ee9088", "ee9c81"], # [SLEEPY FACE] U+E408 -> U+E701
+ ["ee9082", "ee9cac"], # [SMIRKING FACE] U+E402 -> U+E72C
+ ["ee8488", "ee9ca3"], # [FACE WITH COLD SWEAT] U+E108 -> U+E723
+ ["ee9081", "ee9ca3"], # [DISAPPOINTED BUT RELIEVED FACE] U+E401 -> U+E723
+ ["ee9085", "ee9ca9"], # [WINKING FACE] U+E405 -> U+E729
+ ["ee90a3", "ee9caf"], # [FACE WITH NO GOOD GESTURE] U+E423 -> U+E72F
+ ["ee90a4", "ee9c8b"], # [FACE WITH OK GESTURE] U+E424 -> U+E70B
+ ["ee90a6", :undef], # [PERSON BOWING DEEPLY] U+E426 -> "m(_ _)m"
+ ["ee90a7", :undef], # [PERSON RAISING BOTH HANDS IN CELEBRATION] U+E427 -> "ï¼¼(^o^)ï¼"
+ ["ee909d", :undef], # [PERSON WITH FOLDED HANDS] U+E41D -> "(&gt;人&lt;)"
+ ["ee80b6", "ee99a3"], # [HOUSE BUILDING] U+E036 -> U+E663
+ ["ee80b8", "ee99a4"], # [OFFICE BUILDING] U+E038 -> U+E664
+ ["ee8593", "ee99a5"], # [JAPANESE POST OFFICE] U+E153 -> U+E665
+ ["ee8595", "ee99a6"], # [HOSPITAL] U+E155 -> U+E666
+ ["ee858d", "ee99a7"], # [BANK] U+E14D -> U+E667
+ ["ee8594", "ee99a8"], # [AUTOMATED TELLER MACHINE] U+E154 -> U+E668
+ ["ee8598", "ee99a9"], # [HOTEL] U+E158 -> U+E669
+ ["ee9481", "ee99a9ee9baf"], # [LOVE HOTEL] U+E501 -> U+E669 U+E6EF
+ ["ee8596", "ee99aa"], # [CONVENIENCE STORE] U+E156 -> U+E66A
+ ["ee8597", "ee9cbe"], # [SCHOOL] U+E157 -> U+E73E
+ ["ee80b7", :undef], # [CHURCH] U+E037 -> "[教会]"
+ ["ee84a1", :undef], # [FOUNTAIN] U+E121 -> "[å™´æ°´]"
+ ["ee9484", :undef], # [DEPARTMENT STORE] U+E504 -> "[デパート]"
+ ["ee9485", :undef], # [JAPANESE CASTLE] U+E505 -> "[城]"
+ ["ee9486", :undef], # [EUROPEAN CASTLE] U+E506 -> "[城]"
+ ["ee9488", :undef], # [FACTORY] U+E508 -> "[工場]"
+ ["ee80bb", "ee9d80"], # [MOUNT FUJI] U+E03B -> U+E740
+ ["ee9489", :undef], # [TOKYO TOWER] U+E509 -> "[æ±äº¬ã‚¿ãƒ¯ãƒ¼]"
+ ["ee949d", :undef], # [STATUE OF LIBERTY] U+E51D -> "[自由ã®å¥³ç¥ž]"
+ ["ee8087", "ee9a99"], # [ATHLETIC SHOE] U+E007 -> U+E699
+ ["ee84be", "ee99b4"], # [HIGH-HEELED SHOE] U+E13E -> U+E674
+ ["ee8c9a", "ee99b4"], # [WOMANS SANDAL] U+E31A -> U+E674
+ ["ee8c9b", :undef], # [WOMANS BOOTS] U+E31B -> "[ブーツ]"
+ ["ee94b6", "ee9a98"], # [FOOTPRINTS] U+E536 -> U+E698
+ ["ee8086", "ee9c8e"], # [T-SHIRT] U+E006 -> U+E70E
+ ["ee848e", "ee9c9a"], # [CROWN] U+E10E -> U+E71A
+ ["ee8c82", :undef], # [NECKTIE] U+E302 -> "[ãƒã‚¯ã‚¿ã‚¤]"
+ ["ee8c98", :undef], # [WOMANS HAT] U+E318 -> "[帽å­]"
+ ["ee8c99", :undef], # [DRESS] U+E319 -> "[ドレス]"
+ ["ee8ca1", :undef], # [KIMONO] U+E321 -> "[ç€ç‰©]"
+ ["ee8ca2", :undef], # [BIKINI] U+E322 -> "[ビキニ]"
+ ["ee8ca3", "ee9a82"], # [HANDBAG] U+E323 -> U+E682
+ ["ee84af", "ee9c95"], # [MONEY BAG] U+E12F -> U+E715
+ ["ee8589", :undef], # [CURRENCY EXCHANGE] U+E149 -> "[$ï¿¥]"
+ ["ee858a", :undef], # [CHART WITH UPWARDS TREND AND YEN SIGN] U+E14A -> "[株価]"
+ ["ee9493", :undef], # [REGIONAL INDICATOR SYMBOL LETTERS CN] U+E513 -> "[中国]"
+ ["ee948e", :undef], # [REGIONAL INDICATOR SYMBOL LETTERS DE] U+E50E -> "[ドイツ]"
+ ["ee9491", :undef], # [REGIONAL INDICATOR SYMBOL LETTERS ES] U+E511 -> "[スペイン]"
+ ["ee948d", :undef], # [REGIONAL INDICATOR SYMBOL LETTERS FR] U+E50D -> "[フランス]"
+ ["ee9490", :undef], # [REGIONAL INDICATOR SYMBOL LETTERS GB] U+E510 -> "[イギリス]"
+ ["ee948f", :undef], # [REGIONAL INDICATOR SYMBOL LETTERS IT] U+E50F -> "[イタリア]"
+ ["ee948b", :undef], # [REGIONAL INDICATOR SYMBOL LETTERS JP] U+E50B -> "[æ—¥ã®ä¸¸]"
+ ["ee9494", :undef], # [REGIONAL INDICATOR SYMBOL LETTERS KR] U+E514 -> "[韓国]"
+ ["ee9492", :undef], # [REGIONAL INDICATOR SYMBOL LETTERS RU] U+E512 -> "[ロシア]"
+ ["ee948c", :undef], # [REGIONAL INDICATOR SYMBOL LETTERS US] U+E50C -> "[USA]"
+ ["ee849d", :undef], # [FIRE] U+E11D -> "[炎]"
+ ["ee8496", :undef], # [HAMMER] U+E116 -> "[ãƒãƒ³ãƒžãƒ¼]"
+ ["ee8493", :undef], # [PISTOL] U+E113 -> "[ピストル]"
+ ["ee88be", :undef], # [SIX POINTED STAR WITH MIDDLE DOT] U+E23E -> "[å ã„]"
+ ["ee8889", :undef], # [JAPANESE SYMBOL FOR BEGINNER] U+E209 -> "[若葉マーク]"
+ ["ee80b1", "ee9c9a"], # [TRIDENT EMBLEM] U+E031 -> U+E71A
+ ["ee84bb", :undef], # [SYRINGE] U+E13B -> "[注射]"
+ ["ee8c8f", :undef], # [PILL] U+E30F -> "[è–¬]"
+ ["ee94b2", :undef], # [NEGATIVE SQUARED LATIN CAPITAL LETTER A] U+E532 -> "[A]"
+ ["ee94b3", :undef], # [NEGATIVE SQUARED LATIN CAPITAL LETTER B] U+E533 -> "[B]"
+ ["ee94b4", :undef], # [NEGATIVE SQUARED AB] U+E534 -> "[AB]"
+ ["ee94b5", :undef], # [NEGATIVE SQUARED LATIN CAPITAL LETTER O] U+E535 -> "[O]"
+ ["ee8c94", "ee9a84"], # [RIBBON] U+E314 -> U+E684
+ ["ee8492", "ee9a85"], # [WRAPPED PRESENT] U+E112 -> U+E685
+ ["ee8d8b", "ee9a86"], # [BIRTHDAY CAKE] U+E34B -> U+E686
+ ["ee80b3", "ee9aa4"], # [CHRISTMAS TREE] U+E033 -> U+E6A4
+ ["ee9188", :undef], # [FATHER CHRISTMAS] U+E448 -> "[サンタ]"
+ ["ee8583", :undef], # [CROSSED FLAGS] U+E143 -> "[ç¥æ—¥]"
+ ["ee8497", :undef], # [FIREWORKS] U+E117 -> "[花ç«]"
+ ["ee8c90", :undef], # [BALLOON] U+E310 -> "[風船]"
+ ["ee8c92", :undef], # [PARTY POPPER] U+E312 -> "[クラッカー]"
+ ["ee90b6", :undef], # [PINE DECORATION] U+E436 -> "[é–€æ¾]"
+ ["ee90b8", :undef], # [JAPANESE DOLLS] U+E438 -> "[ã²ãªç¥­ã‚Š]"
+ ["ee90b9", :undef], # [GRADUATION CAP] U+E439 -> "[å’æ¥­å¼]"
+ ["ee90ba", :undef], # [SCHOOL SATCHEL] U+E43A -> "[ランドセル]"
+ ["ee90bb", :undef], # [CARP STREAMER] U+E43B -> "[ã“ã„ã®ã¼ã‚Š]"
+ ["ee9180", :undef], # [FIREWORK SPARKLER] U+E440 -> "[線香花ç«]"
+ ["ee9182", :undef], # [WIND CHIME] U+E442 -> "[風鈴]"
+ ["ee9185", :undef], # [JACK-O-LANTERN] U+E445 -> "[ãƒãƒ­ã‚¦ã‚£ãƒ³]"
+ ["ee9186", :undef], # [MOON VIEWING CEREMONY] U+E446 -> "[ãŠæœˆè¦‹]"
+ ["ee8089", "ee9a87"], # [BLACK TELEPHONE] U+E009 -> U+E687
+ ["ee808a", "ee9a88"], # [MOBILE PHONE] U+E00A -> U+E688
+ ["ee8484", "ee9b8e"], # [MOBILE PHONE WITH RIGHTWARDS ARROW AT LEFT] U+E104 -> U+E6CE
+ ["ee8c81", "ee9a89"], # [MEMO] U+E301 -> U+E689
+ ["ee808b", "ee9b90"], # [FAX MACHINE] U+E00B -> U+E6D0
+ ["ee8483", "ee9b8f"], # [ENVELOPE WITH DOWNWARDS ARROW ABOVE] U+E103 -> U+E6CF
+ ["ee8481", "ee99a5"], # [CLOSED MAILBOX WITH RAISED FLAG] U+E101 -> U+E665
+ ["ee8482", "ee99a5"], # [POSTBOX] U+E102 -> U+E665
+ ["ee8582", :undef], # [PUBLIC ADDRESS LOUDSPEAKER] U+E142 -> "[スピーカ]"
+ ["ee8c97", :undef], # [CHEERING MEGAPHONE] U+E317 -> "[メガホン]"
+ ["ee858b", :undef], # [SATELLITE ANTENNA] U+E14B -> "[アンテナ]"
+ ["ee849f", "ee9ab2"], # [SEAT] U+E11F -> U+E6B2
+ ["ee808c", "ee9c96"], # [PERSONAL COMPUTER] U+E00C -> U+E716
+ ["ee849e", "ee9a82"], # [BRIEFCASE] U+E11E -> U+E682
+ ["ee8c96", :undef], # [MINIDISC] U+E316 -> "[MD]"
+ ["ee84a6", "ee9a8c"], # [OPTICAL DISC] U+E126 -> U+E68C
+ ["ee84a7", "ee9a8c"], # [DVD] U+E127 -> U+E68C
+ ["ee8c93", "ee99b5"], # [BLACK SCISSORS] U+E313 -> U+E675
+ ["ee8588", "ee9a83"], # [OPEN BOOK] U+E148 -> U+E683
+ ["ee8096", "ee9993"], # [BASEBALL] U+E016 -> U+E653
+ ["ee8094", "ee9994"], # [FLAG IN HOLE] U+E014 -> U+E654
+ ["ee8095", "ee9995"], # [TENNIS RACQUET AND BALL] U+E015 -> U+E655
+ ["ee8098", "ee9996"], # [SOCCER BALL] U+E018 -> U+E656
+ ["ee8093", "ee9997"], # [SKI AND SKI BOOT] U+E013 -> U+E657
+ ["ee90aa", "ee9998"], # [BASKETBALL AND HOOP] U+E42A -> U+E658
+ ["ee84b2", "ee9999"], # [CHEQUERED FLAG] U+E132 -> U+E659
+ ["ee8495", "ee9cb3"], # [RUNNER] U+E115 -> U+E733
+ ["ee8097", "ee9c92"], # [SURFER] U+E017 -> U+E712
+ ["ee84b1", :undef], # [TROPHY] U+E131 -> "[トロフィー]"
+ ["ee90ab", :undef], # [AMERICAN FOOTBALL] U+E42B -> "[フットボール]"
+ ["ee90ad", :undef], # [SWIMMER] U+E42D -> "[æ°´æ³³]"
+ ["ee809e", "ee999b"], # [TRAIN] U+E01E -> U+E65B
+ ["ee90b4", "ee999c"], # [METRO] U+E434 -> U+E65C
+ ["ee90b5", "ee999d"], # [HIGH-SPEED TRAIN] U+E435 -> U+E65D
+ ["ee809f", "ee999d"], # [HIGH-SPEED TRAIN WITH BULLET NOSE] U+E01F -> U+E65D
+ ["ee809b", "ee999e"], # [AUTOMOBILE] U+E01B -> U+E65E
+ ["ee90ae", "ee999f"], # [RECREATIONAL VEHICLE] U+E42E -> U+E65F
+ ["ee8599", "ee99a0"], # [ONCOMING BUS] U+E159 -> U+E660
+ ["ee8590", :undef], # [BUS STOP] U+E150 -> "[ãƒã‚¹åœ]"
+ ["ee8882", "ee99a1"], # [SHIP] U+E202 -> U+E661
+ ["ee809d", "ee99a2"], # [AIRPLANE] U+E01D -> U+E662
+ ["ee809c", "ee9aa3"], # [SAILBOAT] U+E01C -> U+E6A3
+ ["ee80b9", :undef], # [STATION] U+E039 -> "[é§…]"
+ ["ee848d", :undef], # [ROCKET] U+E10D -> "[ロケット]"
+ ["ee84b5", "ee9aa3"], # [SPEEDBOAT] U+E135 -> U+E6A3
+ ["ee859a", "ee999e"], # [TAXI] U+E15A -> U+E65E
+ ["ee90af", :undef], # [DELIVERY TRUCK] U+E42F -> "[トラック]"
+ ["ee90b0", :undef], # [FIRE ENGINE] U+E430 -> "[消防車]"
+ ["ee90b1", :undef], # [AMBULANCE] U+E431 -> "[救急車]"
+ ["ee90b2", :undef], # [POLICE CAR] U+E432 -> "[パトカー]"
+ ["ee80ba", "ee99ab"], # [FUEL PUMP] U+E03A -> U+E66B
+ ["ee858f", "ee99ac"], # [NEGATIVE SQUARED LATIN CAPITAL LETTER P] U+E14F -> U+E66C
+ ["ee858e", "ee99ad"], # [HORIZONTAL TRAFFIC LIGHT] U+E14E -> U+E66D
+ ["ee84b7", :undef], # [CONSTRUCTION SIGN] U+E137 -> "[工事中]"
+ ["ee84a3", "ee9bb7"], # [HOT SPRINGS] U+E123 -> U+E6F7
+ ["ee84a2", :undef], # [TENT] U+E122 -> "[キャンプ]"
+ ["ee84a4", :undef], # [FERRIS WHEEL] U+E124 -> "[観覧車]"
+ ["ee90b3", :undef], # [ROLLER COASTER] U+E433 -> "[ジェットコースター]"
+ ["ee80bc", "ee99b6"], # [MICROPHONE] U+E03C -> U+E676
+ ["ee80bd", "ee99b7"], # [MOVIE CAMERA] U+E03D -> U+E677
+ ["ee9487", "ee99b7"], # [CINEMA] U+E507 -> U+E677
+ ["ee8c8a", "ee99ba"], # [HEADPHONE] U+E30A -> U+E67A
+ ["ee9482", "ee99bb"], # [ARTIST PALETTE] U+E502 -> U+E67B
+ ["ee9483", "ee99bc"], # [TOP HAT] U+E503 -> U+E67C
+ ["ee84a5", "ee99be"], # [TICKET] U+E125 -> U+E67E
+ ["ee8ca4", "ee9aac"], # [CLAPPER BOARD] U+E324 -> U+E6AC
+ ["ee84ad", :undef], # [MAHJONG TILE RED DRAGON] U+E12D -> "[麻雀]"
+ ["ee84b0", :undef], # [DIRECT HIT] U+E130 -> "[的中]"
+ ["ee84b3", :undef], # [SLOT MACHINE] U+E133 -> "[777]"
+ ["ee90ac", :undef], # [BILLIARDS] U+E42C -> "[ビリヤード]"
+ ["ee80be", "ee9bb6"], # [MUSICAL NOTE] U+E03E -> U+E6F6
+ ["ee8ca6", "ee9bbf"], # [MULTIPLE MUSICAL NOTES] U+E326 -> U+E6FF
+ ["ee8180", :undef], # [SAXOPHONE] U+E040 -> "[サックス]"
+ ["ee8181", :undef], # [GUITAR] U+E041 -> "[ギター]"
+ ["ee8182", :undef], # [TRUMPET] U+E042 -> "[トランペット]"
+ ["ee84ac", :undef], # [PART ALTERNATION MARK] U+E12C -> "[歌記å·]"
+ ["ee8088", "ee9a81"], # [CAMERA] U+E008 -> U+E681
+ ["ee84aa", "ee9a8a"], # [TELEVISION] U+E12A -> U+E68A
+ ["ee84a8", :undef], # [RADIO] U+E128 -> "[ラジオ]"
+ ["ee84a9", :undef], # [VIDEOCASSETTE] U+E129 -> "[ビデオ]"
+ ["ee8083", "ee9bb9"], # [KISS MARK] U+E003 -> U+E6F9
+ ["ee80b4", "ee9c9b"], # [RING] U+E034 -> U+E71B
+ ["ee80b5", "ee9c9b"], # [GEM STONE] U+E035 -> U+E71B
+ ["ee8491", "ee9bb9"], # [KISS] U+E111 -> U+E6F9
+ ["ee8c86", :undef], # [BOUQUET] U+E306 -> "[花æŸ]"
+ ["ee90a5", "ee9bad"], # [COUPLE WITH HEART] U+E425 -> U+E6ED
+ ["ee90bd", :undef], # [WEDDING] U+E43D -> "[çµå©šå¼]"
+ ["ee8887", :undef], # [NO ONE UNDER EIGHTEEN SYMBOL] U+E207 -> "[18ç¦]"
+ ["ee898e", "ee9cb1"], # [COPYRIGHT SIGN] U+E24E -> U+E731
+ ["ee898f", "ee9cb6"], # [REGISTERED SIGN] U+E24F -> U+E736
+ ["ee94b7", "ee9cb2"], # [TRADE MARK SIGN] U+E537 -> U+E732
+ ["ee8890", "ee9ba0"], # [HASH KEY] U+E210 -> U+E6E0
+ ["ee889c", "ee9ba2"], # [KEYCAP 1] U+E21C -> U+E6E2
+ ["ee889d", "ee9ba3"], # [KEYCAP 2] U+E21D -> U+E6E3
+ ["ee889e", "ee9ba4"], # [KEYCAP 3] U+E21E -> U+E6E4
+ ["ee889f", "ee9ba5"], # [KEYCAP 4] U+E21F -> U+E6E5
+ ["ee88a0", "ee9ba6"], # [KEYCAP 5] U+E220 -> U+E6E6
+ ["ee88a1", "ee9ba7"], # [KEYCAP 6] U+E221 -> U+E6E7
+ ["ee88a2", "ee9ba8"], # [KEYCAP 7] U+E222 -> U+E6E8
+ ["ee88a3", "ee9ba9"], # [KEYCAP 8] U+E223 -> U+E6E9
+ ["ee88a4", "ee9baa"], # [KEYCAP 9] U+E224 -> U+E6EA
+ ["ee88a5", "ee9bab"], # [KEYCAP 0] U+E225 -> U+E6EB
+ ["ee888b", :undef], # [ANTENNA WITH BARS] U+E20B -> "[ãƒãƒª3]"
+ ["ee8990", :undef], # [VIBRATION MODE] U+E250 -> "[マナーモード]"
+ ["ee8991", :undef], # [MOBILE PHONE OFF] U+E251 -> "[ケータイOFF]"
+ ["ee84a0", "ee99b3"], # [HAMBURGER] U+E120 -> U+E673
+ ["ee8d82", "ee9d89"], # [RICE BALL] U+E342 -> U+E749
+ ["ee8186", "ee9d8a"], # [SHORTCAKE] U+E046 -> U+E74A
+ ["ee8d80", "ee9d8c"], # [STEAMING BOWL] U+E340 -> U+E74C
+ ["ee8cb9", "ee9d8d"], # [BREAD] U+E339 -> U+E74D
+ ["ee8587", :undef], # [COOKING] U+E147 -> "[フライパン]"
+ ["ee8cba", :undef], # [SOFT ICE CREAM] U+E33A -> "[ソフトクリーム]"
+ ["ee8cbb", :undef], # [FRENCH FRIES] U+E33B -> "[ãƒãƒ†ãƒˆ]"
+ ["ee8cbc", :undef], # [DANGO] U+E33C -> "[ã ã‚“ã”]"
+ ["ee8cbd", :undef], # [RICE CRACKER] U+E33D -> "[ã›ã‚“ã¹ã„]"
+ ["ee8cbe", "ee9d8c"], # [COOKED RICE] U+E33E -> U+E74C
+ ["ee8cbf", :undef], # [SPAGHETTI] U+E33F -> "[パスタ]"
+ ["ee8d81", :undef], # [CURRY AND RICE] U+E341 -> "[カレー]"
+ ["ee8d83", :undef], # [ODEN] U+E343 -> "[ãŠã§ã‚“]"
+ ["ee8d84", :undef], # [SUSHI] U+E344 -> "[ã™ã—]"
+ ["ee8d8c", :undef], # [BENTO BOX] U+E34C -> "[å¼å½“]"
+ ["ee8d8d", :undef], # [POT OF FOOD] U+E34D -> "[é‹]"
+ ["ee90bf", :undef], # [SHAVED ICE] U+E43F -> "[ã‚«ã‚­æ°·]"
+ ["ee8183", "ee99af"], # [FORK AND KNIFE] U+E043 -> U+E66F
+ ["ee8185", "ee99b0"], # [HOT BEVERAGE] U+E045 -> U+E670
+ ["ee8184", "ee99b1"], # [COCKTAIL GLASS] U+E044 -> U+E671
+ ["ee8187", "ee99b2"], # [BEER MUG] U+E047 -> U+E672
+ ["ee8cb8", "ee9c9e"], # [TEACUP WITHOUT HANDLE] U+E338 -> U+E71E
+ ["ee8c8b", "ee9d8b"], # [SAKE BOTTLE AND CUP] U+E30B -> U+E74B
+ ["ee8c8c", "ee99b2"], # [CLINKING BEER MUGS] U+E30C -> U+E672
+ ["ee88b6", "ee99b8"], # [NORTH EAST ARROW] U+E236 -> U+E678
+ ["ee88b8", "ee9a96"], # [SOUTH EAST ARROW] U+E238 -> U+E696
+ ["ee88b7", "ee9a97"], # [NORTH WEST ARROW] U+E237 -> U+E697
+ ["ee88b9", "ee9aa5"], # [SOUTH WEST ARROW] U+E239 -> U+E6A5
+ ["ee88b2", :undef], # [UPWARDS BLACK ARROW] U+E232 -> "[↑]"
+ ["ee88b3", :undef], # [DOWNWARDS BLACK ARROW] U+E233 -> "[↓]"
+ ["ee88b4", :undef], # [BLACK RIGHTWARDS ARROW] U+E234 -> "[→]"
+ ["ee88b5", :undef], # [LEFTWARDS BLACK ARROW] U+E235 -> "[â†]"
+ ["ee88ba", :undef], # [BLACK RIGHT-POINTING TRIANGLE] U+E23A -> "[&gt;]"
+ ["ee88bb", :undef], # [BLACK LEFT-POINTING TRIANGLE] U+E23B -> "[&lt;]"
+ ["ee88bc", :undef], # [BLACK RIGHT-POINTING DOUBLE TRIANGLE] U+E23C -> "[&gt;&gt;]"
+ ["ee88bd", :undef], # [BLACK LEFT-POINTING DOUBLE TRIANGLE] U+E23D -> "[&lt;&lt;]"
+ ["ee8cb2", "ee9aa0"], # [HEAVY LARGE CIRCLE] U+E332 -> U+E6A0
+ ["ee8cb3", :undef], # [CROSS MARK] U+E333 -> "[×]"
+ ["ee80a1", "ee9c82"], # [HEAVY EXCLAMATION MARK ORNAMENT] U+E021 -> U+E702
+ ["ee80a0", :undef], # [BLACK QUESTION MARK ORNAMENT] U+E020 -> "[?]"
+ ["ee8cb6", :undef], # [WHITE QUESTION MARK ORNAMENT] U+E336 -> "[?]"
+ ["ee8cb7", "ee9c82"], # [WHITE EXCLAMATION MARK ORNAMENT] U+E337 -> U+E702
+ ["ee8891", "ee9b9f"], # [DOUBLE CURLY LOOP] U+E211 -> U+E6DF
+ ["ee80a2", "ee9bac"], # [HEAVY BLACK HEART] U+E022 -> U+E6EC
+ ["ee8ca7", "ee9bad"], # [BEATING HEART] U+E327 -> U+E6ED
+ ["ee80a3", "ee9bae"], # [BROKEN HEART] U+E023 -> U+E6EE
+ ["ee8ca8", "ee9bad"], # [GROWING HEART] U+E328 -> U+E6ED
+ ["ee8ca9", "ee9bac"], # [HEART WITH ARROW] U+E329 -> U+E6EC
+ ["ee8caa", "ee9bac"], # [BLUE HEART] U+E32A -> U+E6EC
+ ["ee8cab", "ee9bac"], # [GREEN HEART] U+E32B -> U+E6EC
+ ["ee8cac", "ee9bac"], # [YELLOW HEART] U+E32C -> U+E6EC
+ ["ee8cad", "ee9bac"], # [PURPLE HEART] U+E32D -> U+E6EC
+ ["ee90b7", "ee9bac"], # [HEART WITH RIBBON] U+E437 -> U+E6EC
+ ["ee8884", "ee9bb8"], # [HEART DECORATION] U+E204 -> U+E6F8
+ ["ee888c", "ee9a8d"], # [BLACK HEART SUIT] U+E20C -> U+E68D
+ ["ee888e", "ee9a8e"], # [BLACK SPADE SUIT] U+E20E -> U+E68E
+ ["ee888d", "ee9a8f"], # [BLACK DIAMOND SUIT] U+E20D -> U+E68F
+ ["ee888f", "ee9a90"], # [BLACK CLUB SUIT] U+E20F -> U+E690
+ ["ee8c8e", "ee99bf"], # [SMOKING SYMBOL] U+E30E -> U+E67F
+ ["ee8888", "ee9a80"], # [NO SMOKING SYMBOL] U+E208 -> U+E680
+ ["ee888a", "ee9a9b"], # [WHEELCHAIR SYMBOL] U+E20A -> U+E69B
+ ["ee8992", "ee9cb7"], # [WARNING SIGN] U+E252 -> U+E737
+ ["ee84b6", "ee9c9d"], # [BICYCLE] U+E136 -> U+E71D
+ ["ee8881", "ee9cb3"], # [PEDESTRIAN] U+E201 -> U+E733
+ ["ee84b8", :undef], # [MENS SYMBOL] U+E138 -> "[♂]"
+ ["ee84b9", :undef], # [WOMENS SYMBOL] U+E139 -> "[♀]"
+ ["ee84bf", "ee9bb7"], # [BATH] U+E13F -> U+E6F7
+ ["ee8591", "ee99ae"], # [RESTROOM] U+E151 -> U+E66E
+ ["ee8580", "ee99ae"], # [TOILET] U+E140 -> U+E66E
+ ["ee8c89", "ee99ae"], # [WATER CLOSET] U+E309 -> U+E66E
+ ["ee84ba", :undef], # [BABY SYMBOL] U+E13A -> "[赤ã¡ã‚ƒã‚“]"
+ ["ee8894", :undef], # [SQUARED COOL] U+E214 -> "[COOL]"
+ ["ee88a9", "ee9b98"], # [SQUARED ID] U+E229 -> U+E6D8
+ ["ee8892", "ee9b9d"], # [SQUARED NEW] U+E212 -> U+E6DD
+ ["ee898d", "ee9c8b"], # [SQUARED OK] U+E24D -> U+E70B
+ ["ee8893", :undef], # [SQUARED UP WITH EXCLAMATION MARK] U+E213 -> "[UP!]"
+ ["ee84ae", :undef], # [SQUARED VS] U+E12E -> "[VS]"
+ ["ee8883", :undef], # [SQUARED KATAKANA KOKO] U+E203 -> "[ココ]"
+ ["ee88a8", :undef], # [SQUARED KATAKANA SA] U+E228 -> "[サービス]"
+ ["ee88ab", "ee9cb9"], # [SQUARED CJK UNIFIED IDEOGRAPH-7A7A] U+E22B -> U+E739
+ ["ee88aa", "ee9cbb"], # [SQUARED CJK UNIFIED IDEOGRAPH-6E80] U+E22A -> U+E73B
+ ["ee8895", :undef], # [SQUARED CJK UNIFIED IDEOGRAPH-6709] U+E215 -> "[有]"
+ ["ee8896", :undef], # [SQUARED CJK UNIFIED IDEOGRAPH-7121] U+E216 -> "[ç„¡]"
+ ["ee8897", :undef], # [SQUARED CJK UNIFIED IDEOGRAPH-6708] U+E217 -> "[月]"
+ ["ee8898", :undef], # [SQUARED CJK UNIFIED IDEOGRAPH-7533] U+E218 -> "[申]"
+ ["ee88a7", :undef], # [SQUARED CJK UNIFIED IDEOGRAPH-5272] U+E227 -> "[割]"
+ ["ee88ac", :undef], # [SQUARED CJK UNIFIED IDEOGRAPH-6307] U+E22C -> "[指]"
+ ["ee88ad", :undef], # [SQUARED CJK UNIFIED IDEOGRAPH-55B6] U+E22D -> "[å–¶]"
+ ["ee8c95", "ee9cb4"], # [CIRCLED IDEOGRAPH SECRET] U+E315 -> U+E734
+ ["ee8c8d", :undef], # [CIRCLED IDEOGRAPH CONGRATULATION] U+E30D -> "[ç¥]"
+ ["ee88a6", :undef], # [CIRCLED IDEOGRAPH ADVANTAGE] U+E226 -> "[å¾—]"
+ ["ee848f", "ee9bbb"], # [ELECTRIC LIGHT BULB] U+E10F -> U+E6FB
+ ["ee8cb4", "ee9bbc"], # [ANGER SYMBOL] U+E334 -> U+E6FC
+ ["ee8c91", "ee9bbe"], # [BOMB] U+E311 -> U+E6FE
+ ["ee84bc", "ee9c81"], # [SLEEPING SYMBOL] U+E13C -> U+E701
+ ["ee8cb1", "ee9c86"], # [SPLASHING SWEAT SYMBOL] U+E331 -> U+E706
+ ["ee8cb0", "ee9c88"], # [DASH SYMBOL] U+E330 -> U+E708
+ ["ee819a", :undef], # [PILE OF POO] U+E05A -> "[ウンãƒ]"
+ ["ee858c", :undef], # [FLEXED BICEPS] U+E14C -> "[力ã“ã¶]"
+ ["ee8cae", "ee9bba"], # [SPARKLES] U+E32E -> U+E6FA
+ ["ee8885", "ee9bb8"], # [EIGHT POINTED BLACK STAR] U+E205 -> U+E6F8
+ ["ee8886", "ee9bb8"], # [EIGHT SPOKED ASTERISK] U+E206 -> U+E6F8
+ ["ee8899", "ee9a9c"], # [LARGE RED CIRCLE] U+E219 -> U+E69C
+ ["ee889a", "ee9a9c"], # [BLACK SQUARE BUTTON] U+E21A -> U+E69C
+ ["ee889b", "ee9a9c"], # [WHITE SQUARE BUTTON] U+E21B -> U+E69C
+ ["ee8caf", :undef], # [WHITE MEDIUM STAR] U+E32F -> "[☆]"
+ ["ee8581", :undef], # [SPEAKER WITH THREE SOUND WAVES] U+E141 -> "[スピーカ]"
+ ["ee8494", "ee9b9c"], # [LEFT-POINTING MAGNIFYING GLASS] U+E114 -> U+E6DC
+ ["ee8584", "ee9b99"], # [LOCK] U+E144 -> U+E6D9
+ ["ee8585", "ee9b99"], # [OPEN LOCK] U+E145 -> U+E6D9
+ ["ee80bf", "ee9b99"], # [KEY] U+E03F -> U+E6D9
+ ["ee8ca5", "ee9c93"], # [BELL] U+E325 -> U+E713
+ ["ee898c", :undef], # [TOP WITH UPWARDS ARROW ABOVE] U+E24C -> "[TOP]"
+ ["ee8090", "ee9a93"], # [RAISED FIST] U+E010 -> U+E693
+ ["ee8092", "ee9a95"], # [RAISED HAND] U+E012 -> U+E695
+ ["ee8091", "ee9a94"], # [VICTORY HAND] U+E011 -> U+E694
+ ["ee808d", "ee9bbd"], # [FISTED HAND SIGN] U+E00D -> U+E6FD
+ ["ee808e", "ee9ca7"], # [THUMBS UP SIGN] U+E00E -> U+E727
+ ["ee808f", :undef], # [WHITE UP POINTING INDEX] U+E00F -> "[äººå·®ã—æŒ‡]"
+ ["ee88ae", :undef], # [WHITE UP POINTING BACKHAND INDEX] U+E22E -> "[↑]"
+ ["ee88af", :undef], # [WHITE DOWN POINTING BACKHAND INDEX] U+E22F -> "[↓]"
+ ["ee88b0", :undef], # [WHITE LEFT POINTING BACKHAND INDEX] U+E230 -> "[â†]"
+ ["ee88b1", :undef], # [WHITE RIGHT POINTING BACKHAND INDEX] U+E231 -> "[→]"
+ ["ee909e", "ee9a95"], # [WAVING HAND SIGN] U+E41E -> U+E695
+ ["ee909f", :undef], # [CLAPPING HANDS SIGN] U+E41F -> "[æ‹æ‰‹]"
+ ["ee90a0", "ee9c8b"], # [OK HAND SIGN] U+E420 -> U+E70B
+ ["ee90a1", "ee9c80"], # [THUMBS DOWN SIGN] U+E421 -> U+E700
+ ["ee90a2", "ee9a95"], # [OPEN HANDS SIGN] U+E422 -> U+E695
+ ["ee94b8", :undef], # [EMOJI COMPATIBILITY SYMBOL-50] U+E538 -> U+3013 (GETA)
+ ["ee94b9", :undef], # [EMOJI COMPATIBILITY SYMBOL-51] U+E539 -> U+3013 (GETA)
+ ["ee94ba", :undef], # [EMOJI COMPATIBILITY SYMBOL-52] U+E53A -> U+3013 (GETA)
+ ["ee94bb", :undef], # [EMOJI COMPATIBILITY SYMBOL-53] U+E53B -> U+3013 (GETA)
+ ["ee94bc", :undef], # [EMOJI COMPATIBILITY SYMBOL-54] U+E53C -> "[v"
+ ["ee94bd", :undef], # [EMOJI COMPATIBILITY SYMBOL-55] U+E53D -> "oda"
+ ["ee94be", :undef], # [EMOJI COMPATIBILITY SYMBOL-56] U+E53E -> "fone]"
+ ["ee8994", :undef], # [EMOJI COMPATIBILITY SYMBOL-57] U+E254 -> U+3013 (GETA)
+ ["ee8995", :undef], # [EMOJI COMPATIBILITY SYMBOL-58] U+E255 -> U+3013 (GETA)
+ ["ee8996", :undef], # [EMOJI COMPATIBILITY SYMBOL-59] U+E256 -> U+3013 (GETA)
+ ["ee8997", :undef], # [EMOJI COMPATIBILITY SYMBOL-60] U+E257 -> U+3013 (GETA)
+ ["ee8998", :undef], # [EMOJI COMPATIBILITY SYMBOL-61] U+E258 -> U+3013 (GETA)
+ ["ee8999", :undef], # [EMOJI COMPATIBILITY SYMBOL-62] U+E259 -> U+3013 (GETA)
+ ["ee899a", :undef], # [EMOJI COMPATIBILITY SYMBOL-63] U+E25A -> U+3013 (GETA)
+ ["ee948a", :undef], # [EMOJI COMPATIBILITY SYMBOL-64] U+E50A -> U+3013 (GETA)
+]
+
+EMOJI_EXCHANGE_TBL['UTF8-SoftBank']['UTF8-KDDI'] = [
+ ["ee818a", "ee9288"], # [BLACK SUN WITH RAYS] U+E04A -> U+E488
+ ["ee8189", "ee928d"], # [CLOUD] U+E049 -> U+E48D
+ ["ee818b", "ee928c"], # [UMBRELLA WITH RAIN DROPS] U+E04B -> U+E48C
+ ["ee8188", "ee9285"], # [SNOWMAN WITHOUT SNOW] U+E048 -> U+E485
+ ["ee84bd", "ee9287"], # [HIGH VOLTAGE SIGN] U+E13D -> U+E487
+ ["ee9183", "ee91a9"], # [CYCLONE] U+E443 -> U+E469
+ ["ee90bc", "eeaba8"], # [CLOSED UMBRELLA] U+E43C -> U+EAE8
+ ["ee918b", "eeabb1"], # [NIGHT WITH STARS] U+E44B -> U+EAF1
+ ["ee818d", "eeabb4"], # [SUNRISE OVER MOUNTAINS] U+E04D -> U+EAF4
+ ["ee9189", "eeabb4"], # [SUNRISE] U+E449 -> U+EAF4
+ ["ee8586", "ee979a"], # [CITYSCAPE AT DUSK] U+E146 -> U+E5DA
+ ["ee918a", "ee979a"], # [SUNSET OVER BUILDINGS] U+E44A -> U+E5DA
+ ["ee918c", "eeabb2"], # [RAINBOW] U+E44C -> U+EAF2
+ ["ee90be", "eeadbc"], # [WATER WAVE] U+E43E -> U+EB7C
+ ["ee818c", "ee9286"], # [CRESCENT MOON] U+E04C -> U+E486
+ ["ee8cb5", "ee928b"], # [GLOWING STAR] U+E335 -> U+E48B
+ ["ee80a4", "ee9694"], # [CLOCK FACE ONE OCLOCK] U+E024 -> U+E594
+ ["ee80a5", "ee9694"], # [CLOCK FACE TWO OCLOCK] U+E025 -> U+E594
+ ["ee80a6", "ee9694"], # [CLOCK FACE THREE OCLOCK] U+E026 -> U+E594
+ ["ee80a7", "ee9694"], # [CLOCK FACE FOUR OCLOCK] U+E027 -> U+E594
+ ["ee80a8", "ee9694"], # [CLOCK FACE FIVE OCLOCK] U+E028 -> U+E594
+ ["ee80a9", "ee9694"], # [CLOCK FACE SIX OCLOCK] U+E029 -> U+E594
+ ["ee80aa", "ee9694"], # [CLOCK FACE SEVEN OCLOCK] U+E02A -> U+E594
+ ["ee80ab", "ee9694"], # [CLOCK FACE EIGHT OCLOCK] U+E02B -> U+E594
+ ["ee80ac", "ee9694"], # [CLOCK FACE NINE OCLOCK] U+E02C -> U+E594
+ ["ee80ad", "ee9694"], # [CLOCK FACE TEN OCLOCK] U+E02D -> U+E594
+ ["ee80ae", "ee9694"], # [CLOCK FACE ELEVEN OCLOCK] U+E02E -> U+E594
+ ["ee80af", "ee9694"], # [CLOCK FACE TWELVE OCLOCK] U+E02F -> U+E594
+ ["ee88bf", "ee928f"], # [ARIES] U+E23F -> U+E48F
+ ["ee8980", "ee9290"], # [TAURUS] U+E240 -> U+E490
+ ["ee8981", "ee9291"], # [GEMINI] U+E241 -> U+E491
+ ["ee8982", "ee9292"], # [CANCER] U+E242 -> U+E492
+ ["ee8983", "ee9293"], # [LEO] U+E243 -> U+E493
+ ["ee8984", "ee9294"], # [VIRGO] U+E244 -> U+E494
+ ["ee8985", "ee9295"], # [LIBRA] U+E245 -> U+E495
+ ["ee8986", "ee9296"], # [SCORPIUS] U+E246 -> U+E496
+ ["ee8987", "ee9297"], # [SAGITTARIUS] U+E247 -> U+E497
+ ["ee8988", "ee9298"], # [CAPRICORN] U+E248 -> U+E498
+ ["ee8989", "ee9299"], # [AQUARIUS] U+E249 -> U+E499
+ ["ee898a", "ee929a"], # [PISCES] U+E24A -> U+E49A
+ ["ee898b", "ee929b"], # [OPHIUCHUS] U+E24B -> U+E49B
+ ["ee8490", "ee9493"], # [FOUR LEAF CLOVER] U+E110 -> U+E513
+ ["ee8c84", "ee93a4"], # [TULIP] U+E304 -> U+E4E4
+ ["ee8498", "ee938e"], # [MAPLE LEAF] U+E118 -> U+E4CE
+ ["ee80b0", "ee938a"], # [CHERRY BLOSSOM] U+E030 -> U+E4CA
+ ["ee80b2", "ee96ba"], # [ROSE] U+E032 -> U+E5BA
+ ["ee8499", "ee978d"], # [FALLEN LEAF] U+E119 -> U+E5CD
+ ["ee9187", "ee978d"], # [LEAF FLUTTERING IN WIND] U+E447 -> U+E5CD
+ ["ee8c83", "eeaa94"], # [HIBISCUS] U+E303 -> U+EA94
+ ["ee8c85", "ee93a3"], # [SUNFLOWER] U+E305 -> U+E4E3
+ ["ee8c87", "ee93a2"], # [PALM TREE] U+E307 -> U+E4E2
+ ["ee8c88", "eeaa96"], # [CACTUS] U+E308 -> U+EA96
+ ["ee9184", :undef], # [EAR OF RICE] U+E444 -> "[稲穂]"
+ ["ee8d85", "eeaab9"], # [RED APPLE] U+E345 -> U+EAB9
+ ["ee8d86", "eeaaba"], # [TANGERINE] U+E346 -> U+EABA
+ ["ee8d87", "ee9394"], # [STRAWBERRY] U+E347 -> U+E4D4
+ ["ee8d88", "ee938d"], # [WATERMELON] U+E348 -> U+E4CD
+ ["ee8d89", "eeaabb"], # [TOMATO] U+E349 -> U+EABB
+ ["ee8d8a", "eeaabc"], # [AUBERGINE] U+E34A -> U+EABC
+ ["ee9099", "ee96a4"], # [EYES] U+E419 -> U+E5A4
+ ["ee909b", "ee96a5"], # [EAR] U+E41B -> U+E5A5
+ ["ee909a", "eeab90"], # [NOSE] U+E41A -> U+EAD0
+ ["ee909c", "eeab91"], # [MOUTH] U+E41C -> U+EAD1
+ ["ee8c9c", "ee9489"], # [LIPSTICK] U+E31C -> U+E509
+ ["ee8c9d", "eeaaa0"], # [NAIL POLISH] U+E31D -> U+EAA0
+ ["ee8c9e", "ee948b"], # [FACE MASSAGE] U+E31E -> U+E50B
+ ["ee8c9f", "eeaaa1"], # [HAIRCUT] U+E31F -> U+EAA1
+ ["ee8ca0", "eeaaa2"], # [BARBER POLE] U+E320 -> U+EAA2
+ ["ee8081", "ee93bc"], # [BOY] U+E001 -> U+E4FC
+ ["ee8082", "ee93ba"], # [GIRL] U+E002 -> U+E4FA
+ ["ee8084", "ee93bc"], # [MAN] U+E004 -> U+E4FC
+ ["ee8085", "ee93ba"], # [WOMAN] U+E005 -> U+E4FA
+ ["ee90a8", :undef], # [MAN AND WOMAN HOLDING HANDS] U+E428 -> "[カップル]"
+ ["ee8592", "ee979d"], # [POLICE OFFICER] U+E152 -> U+E5DD
+ ["ee90a9", "eeab9b"], # [WOMAN WITH BUNNY EARS] U+E429 -> U+EADB
+ ["ee9495", "eeac93"], # [WESTERN PERSON] U+E515 -> U+EB13
+ ["ee9496", "eeac94"], # [MAN WITH GUA PI MAO] U+E516 -> U+EB14
+ ["ee9497", "eeac95"], # [MAN WITH TURBAN] U+E517 -> U+EB15
+ ["ee9498", "eeac96"], # [OLDER MAN] U+E518 -> U+EB16
+ ["ee9499", "eeac97"], # [OLDER WOMAN] U+E519 -> U+EB17
+ ["ee949a", "eeac98"], # [BABY] U+E51A -> U+EB18
+ ["ee949b", "eeac99"], # [CONSTRUCTION WORKER] U+E51B -> U+EB19
+ ["ee949c", "eeac9a"], # [PRINCESS] U+E51C -> U+EB1A
+ ["ee849b", "ee938b"], # [GHOST] U+E11B -> U+E4CB
+ ["ee818e", "ee96bf"], # [BABY ANGEL] U+E04E -> U+E5BF
+ ["ee848c", "ee948e"], # [EXTRATERRESTRIAL ALIEN] U+E10C -> U+E50E
+ ["ee84ab", "ee93ac"], # [ALIEN MONSTER] U+E12B -> U+E4EC
+ ["ee849a", "ee93af"], # [IMP] U+E11A -> U+E4EF
+ ["ee849c", "ee93b8"], # [SKULL] U+E11C -> U+E4F8
+ ["ee8993", :undef], # [INFORMATION DESK PERSON] U+E253 -> "[案内]"
+ ["ee949e", :undef], # [GUARDSMAN] U+E51E -> "[衛兵]"
+ ["ee949f", "eeac9c"], # [DANCER] U+E51F -> U+EB1C
+ ["ee94ad", "eeaca2"], # [SNAKE] U+E52D -> U+EB22
+ ["ee84b4", "ee9398"], # [HORSE] U+E134 -> U+E4D8
+ ["ee94ae", "eeaca3"], # [CHICKEN] U+E52E -> U+EB23
+ ["ee94af", "eeaca4"], # [BOAR] U+E52F -> U+EB24
+ ["ee94b0", "eeaca5"], # [BACTRIAN CAMEL] U+E530 -> U+EB25
+ ["ee94a6", "eeac9f"], # [ELEPHANT] U+E526 -> U+EB1F
+ ["ee94a7", "eeaca0"], # [KOALA] U+E527 -> U+EB20
+ ["ee94a8", "ee9399"], # [MONKEY] U+E528 -> U+E4D9
+ ["ee94a9", "ee928f"], # [SHEEP] U+E529 -> U+E48F
+ ["ee848a", "ee9787"], # [OCTOPUS] U+E10A -> U+E5C7
+ ["ee9181", "eeabac"], # [SPIRAL SHELL] U+E441 -> U+EAEC
+ ["ee94a5", "eeac9e"], # [BUG] U+E525 -> U+EB1E
+ ["ee94a2", "eeac9d"], # [TROPICAL FISH] U+E522 -> U+EB1D
+ ["ee94a3", "ee93a0"], # [BABY CHICK] U+E523 -> U+E4E0
+ ["ee94a1", "ee93a0"], # [BIRD] U+E521 -> U+E4E0
+ ["ee8195", "ee939c"], # [PENGUIN] U+E055 -> U+E4DC
+ ["ee8099", "ee929a"], # [FISH] U+E019 -> U+E49A
+ ["ee94a0", "eeac9b"], # [DOLPHIN] U+E520 -> U+EB1B
+ ["ee8193", "ee9782"], # [MOUSE FACE] U+E053 -> U+E5C2
+ ["ee8190", "ee9780"], # [TIGER FACE] U+E050 -> U+E5C0
+ ["ee818f", "ee939b"], # [CAT FACE] U+E04F -> U+E4DB
+ ["ee8194", "ee91b0"], # [SPOUTING WHALE] U+E054 -> U+E470
+ ["ee809a", "ee9398"], # [HORSE FACE] U+E01A -> U+E4D8
+ ["ee8489", "ee9399"], # [MONKEY FACE] U+E109 -> U+E4D9
+ ["ee8192", "ee93a1"], # [DOG FACE] U+E052 -> U+E4E1
+ ["ee848b", "ee939e"], # [PIG FACE] U+E10B -> U+E4DE
+ ["ee8191", "ee9781"], # [BEAR FACE] U+E051 -> U+E5C1
+ ["ee94a4", :undef], # [HAMSTER FACE] U+E524 -> "[ãƒãƒ ã‚¹ã‚¿ãƒ¼]"
+ ["ee94aa", "ee93a1"], # [WOLF FACE] U+E52A -> U+E4E1
+ ["ee94ab", "eeaca1"], # [COW FACE] U+E52B -> U+EB21
+ ["ee94ac", "ee9397"], # [RABBIT FACE] U+E52C -> U+E4D7
+ ["ee94b1", "ee939a"], # [FROG FACE] U+E531 -> U+E4DA
+ ["ee8199", "ee91b2"], # [ANGRY FACE] U+E059 -> U+E472
+ ["ee9090", "eeab8a"], # [ASTONISHED FACE] U+E410 -> U+EACA
+ ["ee8198", "eeab80"], # [DISAPPOINTED FACE] U+E058 -> U+EAC0
+ ["ee908f", "eeab8b"], # [EXASPERATED FACE] U+E40F -> U+EACB
+ ["ee908e", "eeab89"], # [EXPRESSIONLESS FACE] U+E40E -> U+EAC9
+ ["ee8486", "ee9784"], # [FACE WITH HEART-SHAPED EYES] U+E106 -> U+E5C4
+ ["ee8485", "ee93a7"], # [WINKING FACE WITH STUCK-OUT TONGUE] U+E105 -> U+E4E7
+ ["ee9089", "ee93a7"], # [FACE WITH STUCK-OUT TONGUE] U+E409 -> U+E4E7
+ ["ee9098", "eeab8f"], # [FACE THROWING A KISS] U+E418 -> U+EACF
+ ["ee9097", "eeab8e"], # [FACE KISSING] U+E417 -> U+EACE
+ ["ee908c", "eeab87"], # [FACE WITH MASK] U+E40C -> U+EAC7
+ ["ee908d", "eeab88"], # [FLUSHED FACE] U+E40D -> U+EAC8
+ ["ee8197", "ee91b1"], # [HAPPY FACE WITH OPEN MOUTH] U+E057 -> U+E471
+ ["ee9084", "eeae80"], # [HAPPY FACE WITH GRIN] U+E404 -> U+EB80
+ ["ee9092", "eeada4"], # [HAPPY AND CRYING FACE] U+E412 -> U+EB64
+ ["ee8196", "eeab8d"], # [HAPPY FACE WITH WIDE MOUTH AND RAISED EYEBROWS] U+E056 -> U+EACD
+ ["ee9094", "ee93bb"], # [WHITE SMILING FACE] U+E414 -> U+E4FB
+ ["ee9095", "ee91b1"], # [HAPPY FACE WITH OPEN MOUTH AND RAISED EYEBROWS] U+E415 -> U+E471
+ ["ee9093", "eeada9"], # [CRYING FACE] U+E413 -> U+EB69
+ ["ee9091", "ee91b3"], # [LOUDLY CRYING FACE] U+E411 -> U+E473
+ ["ee908b", "eeab86"], # [FEARFUL FACE] U+E40B -> U+EAC6
+ ["ee9086", "eeab82"], # [PERSEVERING FACE] U+E406 -> U+EAC2
+ ["ee9096", "eead9d"], # [POUTING FACE] U+E416 -> U+EB5D
+ ["ee908a", "eeab85"], # [RELIEVED FACE] U+E40A -> U+EAC5
+ ["ee9087", "eeab83"], # [CONFOUNDED FACE] U+E407 -> U+EAC3
+ ["ee9083", "eeab80"], # [PENSIVE FACE] U+E403 -> U+EAC0
+ ["ee8487", "ee9785"], # [FACE SCREAMING IN FEAR] U+E107 -> U+E5C5
+ ["ee9088", "eeab84"], # [SLEEPY FACE] U+E408 -> U+EAC4
+ ["ee9082", "eeaabf"], # [SMIRKING FACE] U+E402 -> U+EABF
+ ["ee8488", "ee9786"], # [FACE WITH COLD SWEAT] U+E108 -> U+E5C6
+ ["ee9081", "ee9786"], # [DISAPPOINTED BUT RELIEVED FACE] U+E401 -> U+E5C6
+ ["ee9085", "ee9783"], # [WINKING FACE] U+E405 -> U+E5C3
+ ["ee90a3", "eeab97"], # [FACE WITH NO GOOD GESTURE] U+E423 -> U+EAD7
+ ["ee90a4", "eeab98"], # [FACE WITH OK GESTURE] U+E424 -> U+EAD8
+ ["ee90a6", "eeab99"], # [PERSON BOWING DEEPLY] U+E426 -> U+EAD9
+ ["ee90a7", "eeae86"], # [PERSON RAISING BOTH HANDS IN CELEBRATION] U+E427 -> U+EB86
+ ["ee909d", "eeab92"], # [PERSON WITH FOLDED HANDS] U+E41D -> U+EAD2
+ ["ee80b6", "ee92ab"], # [HOUSE BUILDING] U+E036 -> U+E4AB
+ ["ee80b8", "ee92ad"], # [OFFICE BUILDING] U+E038 -> U+E4AD
+ ["ee8593", "ee979e"], # [JAPANESE POST OFFICE] U+E153 -> U+E5DE
+ ["ee8595", "ee979f"], # [HOSPITAL] U+E155 -> U+E5DF
+ ["ee858d", "ee92aa"], # [BANK] U+E14D -> U+E4AA
+ ["ee8594", "ee92a3"], # [AUTOMATED TELLER MACHINE] U+E154 -> U+E4A3
+ ["ee8598", "eeaa81"], # [HOTEL] U+E158 -> U+EA81
+ ["ee9481", "eeabb3"], # [LOVE HOTEL] U+E501 -> U+EAF3
+ ["ee8596", "ee92a4"], # [CONVENIENCE STORE] U+E156 -> U+E4A4
+ ["ee8597", "eeaa80"], # [SCHOOL] U+E157 -> U+EA80
+ ["ee80b7", "ee96bb"], # [CHURCH] U+E037 -> U+E5BB
+ ["ee84a1", "ee978f"], # [FOUNTAIN] U+E121 -> U+E5CF
+ ["ee9484", "eeabb6"], # [DEPARTMENT STORE] U+E504 -> U+EAF6
+ ["ee9485", "eeabb7"], # [JAPANESE CASTLE] U+E505 -> U+EAF7
+ ["ee9486", "eeabb8"], # [EUROPEAN CASTLE] U+E506 -> U+EAF8
+ ["ee9488", "eeabb9"], # [FACTORY] U+E508 -> U+EAF9
+ ["ee80bb", "ee96bd"], # [MOUNT FUJI] U+E03B -> U+E5BD
+ ["ee9489", "ee9380"], # [TOKYO TOWER] U+E509 -> U+E4C0
+ ["ee949d", :undef], # [STATUE OF LIBERTY] U+E51D -> "[自由ã®å¥³ç¥ž]"
+ ["ee8087", "eeacab"], # [ATHLETIC SHOE] U+E007 -> U+EB2B
+ ["ee84be", "ee949a"], # [HIGH-HEELED SHOE] U+E13E -> U+E51A
+ ["ee8c9a", "ee949a"], # [WOMANS SANDAL] U+E31A -> U+E51A
+ ["ee8c9b", "eeaa9f"], # [WOMANS BOOTS] U+E31B -> U+EA9F
+ ["ee94b6", "eeacaa"], # [FOOTPRINTS] U+E536 -> U+EB2A
+ ["ee8086", "ee96b6"], # [T-SHIRT] U+E006 -> U+E5B6
+ ["ee848e", "ee9789"], # [CROWN] U+E10E -> U+E5C9
+ ["ee8c82", "eeaa93"], # [NECKTIE] U+E302 -> U+EA93
+ ["ee8c98", "eeaa9e"], # [WOMANS HAT] U+E318 -> U+EA9E
+ ["ee8c99", "eeadab"], # [DRESS] U+E319 -> U+EB6B
+ ["ee8ca1", "eeaaa3"], # [KIMONO] U+E321 -> U+EAA3
+ ["ee8ca2", "eeaaa4"], # [BIKINI] U+E322 -> U+EAA4
+ ["ee8ca3", "ee929c"], # [HANDBAG] U+E323 -> U+E49C
+ ["ee84af", "ee9387"], # [MONEY BAG] U+E12F -> U+E4C7
+ ["ee8589", :undef], # [CURRENCY EXCHANGE] U+E149 -> "[$ï¿¥]"
+ ["ee858a", "ee979c"], # [CHART WITH UPWARDS TREND AND YEN SIGN] U+E14A -> U+E5DC
+ ["ee9493", "eeac91"], # [REGIONAL INDICATOR SYMBOL LETTERS CN] U+E513 -> U+EB11
+ ["ee948e", "eeac8e"], # [REGIONAL INDICATOR SYMBOL LETTERS DE] U+E50E -> U+EB0E
+ ["ee9491", "ee9795"], # [REGIONAL INDICATOR SYMBOL LETTERS ES] U+E511 -> U+E5D5
+ ["ee948d", "eeabba"], # [REGIONAL INDICATOR SYMBOL LETTERS FR] U+E50D -> U+EAFA
+ ["ee9490", "eeac90"], # [REGIONAL INDICATOR SYMBOL LETTERS GB] U+E510 -> U+EB10
+ ["ee948f", "eeac8f"], # [REGIONAL INDICATOR SYMBOL LETTERS IT] U+E50F -> U+EB0F
+ ["ee948b", "ee938c"], # [REGIONAL INDICATOR SYMBOL LETTERS JP] U+E50B -> U+E4CC
+ ["ee9494", "eeac92"], # [REGIONAL INDICATOR SYMBOL LETTERS KR] U+E514 -> U+EB12
+ ["ee9492", "ee9796"], # [REGIONAL INDICATOR SYMBOL LETTERS RU] U+E512 -> U+E5D6
+ ["ee948c", "ee95b3"], # [REGIONAL INDICATOR SYMBOL LETTERS US] U+E50C -> U+E573
+ ["ee849d", "ee91bb"], # [FIRE] U+E11D -> U+E47B
+ ["ee8496", "ee978b"], # [HAMMER] U+E116 -> U+E5CB
+ ["ee8493", "ee948a"], # [PISTOL] U+E113 -> U+E50A
+ ["ee88be", "eeaa8f"], # [SIX POINTED STAR WITH MIDDLE DOT] U+E23E -> U+EA8F
+ ["ee8889", "ee9280"], # [JAPANESE SYMBOL FOR BEGINNER] U+E209 -> U+E480
+ ["ee80b1", "ee9789"], # [TRIDENT EMBLEM] U+E031 -> U+E5C9
+ ["ee84bb", "ee9490"], # [SYRINGE] U+E13B -> U+E510
+ ["ee8c8f", "eeaa9a"], # [PILL] U+E30F -> U+EA9A
+ ["ee94b2", "eeaca6"], # [NEGATIVE SQUARED LATIN CAPITAL LETTER A] U+E532 -> U+EB26
+ ["ee94b3", "eeaca7"], # [NEGATIVE SQUARED LATIN CAPITAL LETTER B] U+E533 -> U+EB27
+ ["ee94b4", "eeaca9"], # [NEGATIVE SQUARED AB] U+E534 -> U+EB29
+ ["ee94b5", "eeaca8"], # [NEGATIVE SQUARED LATIN CAPITAL LETTER O] U+E535 -> U+EB28
+ ["ee8c94", "ee969f"], # [RIBBON] U+E314 -> U+E59F
+ ["ee8492", "ee938f"], # [WRAPPED PRESENT] U+E112 -> U+E4CF
+ ["ee8d8b", "ee96a0"], # [BIRTHDAY CAKE] U+E34B -> U+E5A0
+ ["ee80b3", "ee9389"], # [CHRISTMAS TREE] U+E033 -> U+E4C9
+ ["ee9188", "eeabb0"], # [FATHER CHRISTMAS] U+E448 -> U+EAF0
+ ["ee8583", "ee9799"], # [CROSSED FLAGS] U+E143 -> U+E5D9
+ ["ee8497", "ee978c"], # [FIREWORKS] U+E117 -> U+E5CC
+ ["ee8c90", "eeaa9b"], # [BALLOON] U+E310 -> U+EA9B
+ ["ee8c92", "eeaa9c"], # [PARTY POPPER] U+E312 -> U+EA9C
+ ["ee90b6", "eeaba3"], # [PINE DECORATION] U+E436 -> U+EAE3
+ ["ee90b8", "eeaba4"], # [JAPANESE DOLLS] U+E438 -> U+EAE4
+ ["ee90b9", "eeaba5"], # [GRADUATION CAP] U+E439 -> U+EAE5
+ ["ee90ba", "eeaba6"], # [SCHOOL SATCHEL] U+E43A -> U+EAE6
+ ["ee90bb", "eeaba7"], # [CARP STREAMER] U+E43B -> U+EAE7
+ ["ee9180", "eeabab"], # [FIREWORK SPARKLER] U+E440 -> U+EAEB
+ ["ee9182", "eeabad"], # [WIND CHIME] U+E442 -> U+EAED
+ ["ee9185", "eeabae"], # [JACK-O-LANTERN] U+E445 -> U+EAEE
+ ["ee9186", "eeabaf"], # [MOON VIEWING CEREMONY] U+E446 -> U+EAEF
+ ["ee8089", "ee9696"], # [BLACK TELEPHONE] U+E009 -> U+E596
+ ["ee808a", "ee9688"], # [MOBILE PHONE] U+E00A -> U+E588
+ ["ee8484", "eeac88"], # [MOBILE PHONE WITH RIGHTWARDS ARROW AT LEFT] U+E104 -> U+EB08
+ ["ee8c81", "eeaa92"], # [MEMO] U+E301 -> U+EA92
+ ["ee808b", "ee94a0"], # [FAX MACHINE] U+E00B -> U+E520
+ ["ee8483", "eeada2"], # [ENVELOPE WITH DOWNWARDS ARROW ABOVE] U+E103 -> U+EB62
+ ["ee8481", "eeac8a"], # [CLOSED MAILBOX WITH RAISED FLAG] U+E101 -> U+EB0A
+ ["ee8482", "ee949b"], # [POSTBOX] U+E102 -> U+E51B
+ ["ee8582", "ee9491"], # [PUBLIC ADDRESS LOUDSPEAKER] U+E142 -> U+E511
+ ["ee8c97", "ee9491"], # [CHEERING MEGAPHONE] U+E317 -> U+E511
+ ["ee858b", "ee92a8"], # [SATELLITE ANTENNA] U+E14B -> U+E4A8
+ ["ee849f", :undef], # [SEAT] U+E11F -> "[ã„ã™]"
+ ["ee808c", "ee96b8"], # [PERSONAL COMPUTER] U+E00C -> U+E5B8
+ ["ee849e", "ee978e"], # [BRIEFCASE] U+E11E -> U+E5CE
+ ["ee8c96", "ee9682"], # [MINIDISC] U+E316 -> U+E582
+ ["ee84a6", "ee948c"], # [OPTICAL DISC] U+E126 -> U+E50C
+ ["ee84a7", "ee948c"], # [DVD] U+E127 -> U+E50C
+ ["ee8c93", "ee9496"], # [BLACK SCISSORS] U+E313 -> U+E516
+ ["ee8588", "ee929f"], # [OPEN BOOK] U+E148 -> U+E49F
+ ["ee8096", "ee92ba"], # [BASEBALL] U+E016 -> U+E4BA
+ ["ee8094", "ee9699"], # [FLAG IN HOLE] U+E014 -> U+E599
+ ["ee8095", "ee92b7"], # [TENNIS RACQUET AND BALL] U+E015 -> U+E4B7
+ ["ee8098", "ee92b6"], # [SOCCER BALL] U+E018 -> U+E4B6
+ ["ee8093", "eeaaac"], # [SKI AND SKI BOOT] U+E013 -> U+EAAC
+ ["ee90aa", "ee969a"], # [BASKETBALL AND HOOP] U+E42A -> U+E59A
+ ["ee84b2", "ee92b9"], # [CHEQUERED FLAG] U+E132 -> U+E4B9
+ ["ee8495", "ee91ab"], # [RUNNER] U+E115 -> U+E46B
+ ["ee8097", "eead81"], # [SURFER] U+E017 -> U+EB41
+ ["ee84b1", "ee9793"], # [TROPHY] U+E131 -> U+E5D3
+ ["ee90ab", "ee92bb"], # [AMERICAN FOOTBALL] U+E42B -> U+E4BB
+ ["ee90ad", "eeab9e"], # [SWIMMER] U+E42D -> U+EADE
+ ["ee809e", "ee92b5"], # [TRAIN] U+E01E -> U+E4B5
+ ["ee90b4", "ee96bc"], # [METRO] U+E434 -> U+E5BC
+ ["ee90b5", "ee92b0"], # [HIGH-SPEED TRAIN] U+E435 -> U+E4B0
+ ["ee809f", "ee92b0"], # [HIGH-SPEED TRAIN WITH BULLET NOSE] U+E01F -> U+E4B0
+ ["ee809b", "ee92b1"], # [AUTOMOBILE] U+E01B -> U+E4B1
+ ["ee90ae", "ee92b1"], # [RECREATIONAL VEHICLE] U+E42E -> U+E4B1
+ ["ee8599", "ee92af"], # [ONCOMING BUS] U+E159 -> U+E4AF
+ ["ee8590", "ee92a7"], # [BUS STOP] U+E150 -> U+E4A7
+ ["ee8882", "eeaa82"], # [SHIP] U+E202 -> U+EA82
+ ["ee809d", "ee92b3"], # [AIRPLANE] U+E01D -> U+E4B3
+ ["ee809c", "ee92b4"], # [SAILBOAT] U+E01C -> U+E4B4
+ ["ee80b9", "eeadad"], # [STATION] U+E039 -> U+EB6D
+ ["ee848d", "ee9788"], # [ROCKET] U+E10D -> U+E5C8
+ ["ee84b5", "ee92b4"], # [SPEEDBOAT] U+E135 -> U+E4B4
+ ["ee859a", "ee92b1"], # [TAXI] U+E15A -> U+E4B1
+ ["ee90af", "ee92b2"], # [DELIVERY TRUCK] U+E42F -> U+E4B2
+ ["ee90b0", "eeab9f"], # [FIRE ENGINE] U+E430 -> U+EADF
+ ["ee90b1", "eeaba0"], # [AMBULANCE] U+E431 -> U+EAE0
+ ["ee90b2", "eeaba1"], # [POLICE CAR] U+E432 -> U+EAE1
+ ["ee80ba", "ee95b1"], # [FUEL PUMP] U+E03A -> U+E571
+ ["ee858f", "ee92a6"], # [NEGATIVE SQUARED LATIN CAPITAL LETTER P] U+E14F -> U+E4A6
+ ["ee858e", "ee91aa"], # [HORIZONTAL TRAFFIC LIGHT] U+E14E -> U+E46A
+ ["ee84b7", "ee9797"], # [CONSTRUCTION SIGN] U+E137 -> U+E5D7
+ ["ee84a3", "ee92bc"], # [HOT SPRINGS] U+E123 -> U+E4BC
+ ["ee84a2", "ee9790"], # [TENT] U+E122 -> U+E5D0
+ ["ee84a4", "ee91ad"], # [FERRIS WHEEL] U+E124 -> U+E46D
+ ["ee90b3", "eeaba2"], # [ROLLER COASTER] U+E433 -> U+EAE2
+ ["ee80bc", "ee9483"], # [MICROPHONE] U+E03C -> U+E503
+ ["ee80bd", "ee9497"], # [MOVIE CAMERA] U+E03D -> U+E517
+ ["ee9487", "ee9497"], # [CINEMA] U+E507 -> U+E517
+ ["ee8c8a", "ee9488"], # [HEADPHONE] U+E30A -> U+E508
+ ["ee9482", "ee969c"], # [ARTIST PALETTE] U+E502 -> U+E59C
+ ["ee9483", "eeabb5"], # [TOP HAT] U+E503 -> U+EAF5
+ ["ee84a5", "ee929e"], # [TICKET] U+E125 -> U+E49E
+ ["ee8ca4", "ee92be"], # [CLAPPER BOARD] U+E324 -> U+E4BE
+ ["ee84ad", "ee9791"], # [MAHJONG TILE RED DRAGON] U+E12D -> U+E5D1
+ ["ee84b0", "ee9385"], # [DIRECT HIT] U+E130 -> U+E4C5
+ ["ee84b3", "ee91ae"], # [SLOT MACHINE] U+E133 -> U+E46E
+ ["ee90ac", "eeab9d"], # [BILLIARDS] U+E42C -> U+EADD
+ ["ee80be", "ee96be"], # [MUSICAL NOTE] U+E03E -> U+E5BE
+ ["ee8ca6", "ee9485"], # [MULTIPLE MUSICAL NOTES] U+E326 -> U+E505
+ ["ee8180", :undef], # [SAXOPHONE] U+E040 -> "[サックス]"
+ ["ee8181", "ee9486"], # [GUITAR] U+E041 -> U+E506
+ ["ee8182", "eeab9c"], # [TRUMPET] U+E042 -> U+EADC
+ ["ee84ac", :undef], # [PART ALTERNATION MARK] U+E12C -> "[歌記å·]"
+ ["ee8088", "ee9495"], # [CAMERA] U+E008 -> U+E515
+ ["ee84aa", "ee9482"], # [TELEVISION] U+E12A -> U+E502
+ ["ee84a8", "ee96b9"], # [RADIO] U+E128 -> U+E5B9
+ ["ee84a9", "ee9680"], # [VIDEOCASSETTE] U+E129 -> U+E580
+ ["ee8083", "ee93ab"], # [KISS MARK] U+E003 -> U+E4EB
+ ["ee80b4", "ee9494"], # [RING] U+E034 -> U+E514
+ ["ee80b5", "ee9494"], # [GEM STONE] U+E035 -> U+E514
+ ["ee8491", "ee978a"], # [KISS] U+E111 -> U+E5CA
+ ["ee8c86", "eeaa95"], # [BOUQUET] U+E306 -> U+EA95
+ ["ee90a5", "eeab9a"], # [COUPLE WITH HEART] U+E425 -> U+EADA
+ ["ee90bd", "ee96bb"], # [WEDDING] U+E43D -> U+E5BB
+ ["ee8887", "eeaa83"], # [NO ONE UNDER EIGHTEEN SYMBOL] U+E207 -> U+EA83
+ ["ee898e", "ee9598"], # [COPYRIGHT SIGN] U+E24E -> U+E558
+ ["ee898f", "ee9599"], # [REGISTERED SIGN] U+E24F -> U+E559
+ ["ee94b7", "ee958e"], # [TRADE MARK SIGN] U+E537 -> U+E54E
+ ["ee8890", "eeae84"], # [HASH KEY] U+E210 -> U+EB84
+ ["ee889c", "ee94a2"], # [KEYCAP 1] U+E21C -> U+E522
+ ["ee889d", "ee94a3"], # [KEYCAP 2] U+E21D -> U+E523
+ ["ee889e", "ee94a4"], # [KEYCAP 3] U+E21E -> U+E524
+ ["ee889f", "ee94a5"], # [KEYCAP 4] U+E21F -> U+E525
+ ["ee88a0", "ee94a6"], # [KEYCAP 5] U+E220 -> U+E526
+ ["ee88a1", "ee94a7"], # [KEYCAP 6] U+E221 -> U+E527
+ ["ee88a2", "ee94a8"], # [KEYCAP 7] U+E222 -> U+E528
+ ["ee88a3", "ee94a9"], # [KEYCAP 8] U+E223 -> U+E529
+ ["ee88a4", "ee94aa"], # [KEYCAP 9] U+E224 -> U+E52A
+ ["ee88a5", "ee96ac"], # [KEYCAP 0] U+E225 -> U+E5AC
+ ["ee888b", "eeaa84"], # [ANTENNA WITH BARS] U+E20B -> U+EA84
+ ["ee8990", "eeaa90"], # [VIBRATION MODE] U+E250 -> U+EA90
+ ["ee8991", "eeaa91"], # [MOBILE PHONE OFF] U+E251 -> U+EA91
+ ["ee84a0", "ee9396"], # [HAMBURGER] U+E120 -> U+E4D6
+ ["ee8d82", "ee9395"], # [RICE BALL] U+E342 -> U+E4D5
+ ["ee8186", "ee9390"], # [SHORTCAKE] U+E046 -> U+E4D0
+ ["ee8d80", "ee96b4"], # [STEAMING BOWL] U+E340 -> U+E5B4
+ ["ee8cb9", "eeaaaf"], # [BREAD] U+E339 -> U+EAAF
+ ["ee8587", "ee9391"], # [COOKING] U+E147 -> U+E4D1
+ ["ee8cba", "eeaab0"], # [SOFT ICE CREAM] U+E33A -> U+EAB0
+ ["ee8cbb", "eeaab1"], # [FRENCH FRIES] U+E33B -> U+EAB1
+ ["ee8cbc", "eeaab2"], # [DANGO] U+E33C -> U+EAB2
+ ["ee8cbd", "eeaab3"], # [RICE CRACKER] U+E33D -> U+EAB3
+ ["ee8cbe", "eeaab4"], # [COOKED RICE] U+E33E -> U+EAB4
+ ["ee8cbf", "eeaab5"], # [SPAGHETTI] U+E33F -> U+EAB5
+ ["ee8d81", "eeaab6"], # [CURRY AND RICE] U+E341 -> U+EAB6
+ ["ee8d83", "eeaab7"], # [ODEN] U+E343 -> U+EAB7
+ ["ee8d84", "eeaab8"], # [SUSHI] U+E344 -> U+EAB8
+ ["ee8d8c", "eeaabd"], # [BENTO BOX] U+E34C -> U+EABD
+ ["ee8d8d", "eeaabe"], # [POT OF FOOD] U+E34D -> U+EABE
+ ["ee90bf", "eeabaa"], # [SHAVED ICE] U+E43F -> U+EAEA
+ ["ee8183", "ee92ac"], # [FORK AND KNIFE] U+E043 -> U+E4AC
+ ["ee8185", "ee9697"], # [HOT BEVERAGE] U+E045 -> U+E597
+ ["ee8184", "ee9382"], # [COCKTAIL GLASS] U+E044 -> U+E4C2
+ ["ee8187", "ee9383"], # [BEER MUG] U+E047 -> U+E4C3
+ ["ee8cb8", "eeaaae"], # [TEACUP WITHOUT HANDLE] U+E338 -> U+EAAE
+ ["ee8c8b", "eeaa97"], # [SAKE BOTTLE AND CUP] U+E30B -> U+EA97
+ ["ee8c8c", "eeaa98"], # [CLINKING BEER MUGS] U+E30C -> U+EA98
+ ["ee88b6", "ee9595"], # [NORTH EAST ARROW] U+E236 -> U+E555
+ ["ee88b8", "ee958d"], # [SOUTH EAST ARROW] U+E238 -> U+E54D
+ ["ee88b7", "ee958c"], # [NORTH WEST ARROW] U+E237 -> U+E54C
+ ["ee88b9", "ee9596"], # [SOUTH WEST ARROW] U+E239 -> U+E556
+ ["ee88b2", "ee94bf"], # [UPWARDS BLACK ARROW] U+E232 -> U+E53F
+ ["ee88b3", "ee9580"], # [DOWNWARDS BLACK ARROW] U+E233 -> U+E540
+ ["ee88b4", "ee9592"], # [BLACK RIGHTWARDS ARROW] U+E234 -> U+E552
+ ["ee88b5", "ee9593"], # [LEFTWARDS BLACK ARROW] U+E235 -> U+E553
+ ["ee88ba", "ee94ae"], # [BLACK RIGHT-POINTING TRIANGLE] U+E23A -> U+E52E
+ ["ee88bb", "ee94ad"], # [BLACK LEFT-POINTING TRIANGLE] U+E23B -> U+E52D
+ ["ee88bc", "ee94b0"], # [BLACK RIGHT-POINTING DOUBLE TRIANGLE] U+E23C -> U+E530
+ ["ee88bd", "ee94af"], # [BLACK LEFT-POINTING DOUBLE TRIANGLE] U+E23D -> U+E52F
+ ["ee8cb2", "eeaaad"], # [HEAVY LARGE CIRCLE] U+E332 -> U+EAAD
+ ["ee8cb3", "ee9590"], # [CROSS MARK] U+E333 -> U+E550
+ ["ee80a1", "ee9282"], # [HEAVY EXCLAMATION MARK ORNAMENT] U+E021 -> U+E482
+ ["ee80a0", "ee9283"], # [BLACK QUESTION MARK ORNAMENT] U+E020 -> U+E483
+ ["ee8cb6", "ee9283"], # [WHITE QUESTION MARK ORNAMENT] U+E336 -> U+E483
+ ["ee8cb7", "ee9282"], # [WHITE EXCLAMATION MARK ORNAMENT] U+E337 -> U+E482
+ ["ee8891", :undef], # [DOUBLE CURLY LOOP] U+E211 -> "[フリーダイヤル]"
+ ["ee80a2", "ee9695"], # [HEAVY BLACK HEART] U+E022 -> U+E595
+ ["ee8ca7", "eeadb5"], # [BEATING HEART] U+E327 -> U+EB75
+ ["ee80a3", "ee91b7"], # [BROKEN HEART] U+E023 -> U+E477
+ ["ee8ca8", "eeadb5"], # [GROWING HEART] U+E328 -> U+EB75
+ ["ee8ca9", "ee93aa"], # [HEART WITH ARROW] U+E329 -> U+E4EA
+ ["ee8caa", "eeaaa7"], # [BLUE HEART] U+E32A -> U+EAA7
+ ["ee8cab", "eeaaa8"], # [GREEN HEART] U+E32B -> U+EAA8
+ ["ee8cac", "eeaaa9"], # [YELLOW HEART] U+E32C -> U+EAA9
+ ["ee8cad", "eeaaaa"], # [PURPLE HEART] U+E32D -> U+EAAA
+ ["ee90b7", "eead94"], # [HEART WITH RIBBON] U+E437 -> U+EB54
+ ["ee8884", "ee9695"], # [HEART DECORATION] U+E204 -> U+E595
+ ["ee888c", "eeaaa5"], # [BLACK HEART SUIT] U+E20C -> U+EAA5
+ ["ee888e", "ee96a1"], # [BLACK SPADE SUIT] U+E20E -> U+E5A1
+ ["ee888d", "ee96a2"], # [BLACK DIAMOND SUIT] U+E20D -> U+E5A2
+ ["ee888f", "ee96a3"], # [BLACK CLUB SUIT] U+E20F -> U+E5A3
+ ["ee8c8e", "ee91bd"], # [SMOKING SYMBOL] U+E30E -> U+E47D
+ ["ee8888", "ee91be"], # [NO SMOKING SYMBOL] U+E208 -> U+E47E
+ ["ee888a", "ee91bf"], # [WHEELCHAIR SYMBOL] U+E20A -> U+E47F
+ ["ee8992", "ee9281"], # [WARNING SIGN] U+E252 -> U+E481
+ ["ee84b6", "ee92ae"], # [BICYCLE] U+E136 -> U+E4AE
+ ["ee8881", "eeadb2"], # [PEDESTRIAN] U+E201 -> U+EB72
+ ["ee84b8", :undef], # [MENS SYMBOL] U+E138 -> "[♂]"
+ ["ee84b9", :undef], # [WOMENS SYMBOL] U+E139 -> "[♀]"
+ ["ee84bf", "ee9798"], # [BATH] U+E13F -> U+E5D8
+ ["ee8591", "ee92a5"], # [RESTROOM] U+E151 -> U+E4A5
+ ["ee8580", "ee92a5"], # [TOILET] U+E140 -> U+E4A5
+ ["ee8c89", "ee92a5"], # [WATER CLOSET] U+E309 -> U+E4A5
+ ["ee84ba", "eeac98"], # [BABY SYMBOL] U+E13A -> U+EB18
+ ["ee8894", "eeaa85"], # [SQUARED COOL] U+E214 -> U+EA85
+ ["ee88a9", "eeaa88"], # [SQUARED ID] U+E229 -> U+EA88
+ ["ee8892", "ee96b5"], # [SQUARED NEW] U+E212 -> U+E5B5
+ ["ee898d", "ee96ad"], # [SQUARED OK] U+E24D -> U+E5AD
+ ["ee8893", "ee948f"], # [SQUARED UP WITH EXCLAMATION MARK] U+E213 -> U+E50F
+ ["ee84ae", "ee9792"], # [SQUARED VS] U+E12E -> U+E5D2
+ ["ee8883", :undef], # [SQUARED KATAKANA KOKO] U+E203 -> "[ココ]"
+ ["ee88a8", "eeaa87"], # [SQUARED KATAKANA SA] U+E228 -> U+EA87
+ ["ee88ab", "eeaa8a"], # [SQUARED CJK UNIFIED IDEOGRAPH-7A7A] U+E22B -> U+EA8A
+ ["ee88aa", "eeaa89"], # [SQUARED CJK UNIFIED IDEOGRAPH-6E80] U+E22A -> U+EA89
+ ["ee8895", :undef], # [SQUARED CJK UNIFIED IDEOGRAPH-6709] U+E215 -> "[有]"
+ ["ee8896", :undef], # [SQUARED CJK UNIFIED IDEOGRAPH-7121] U+E216 -> "[ç„¡]"
+ ["ee8897", :undef], # [SQUARED CJK UNIFIED IDEOGRAPH-6708] U+E217 -> "[月]"
+ ["ee8898", :undef], # [SQUARED CJK UNIFIED IDEOGRAPH-7533] U+E218 -> "[申]"
+ ["ee88a7", "eeaa86"], # [SQUARED CJK UNIFIED IDEOGRAPH-5272] U+E227 -> U+EA86
+ ["ee88ac", "eeaa8b"], # [SQUARED CJK UNIFIED IDEOGRAPH-6307] U+E22C -> U+EA8B
+ ["ee88ad", "eeaa8c"], # [SQUARED CJK UNIFIED IDEOGRAPH-55B6] U+E22D -> U+EA8C
+ ["ee8c95", "ee93b1"], # [CIRCLED IDEOGRAPH SECRET] U+E315 -> U+E4F1
+ ["ee8c8d", "eeaa99"], # [CIRCLED IDEOGRAPH CONGRATULATION] U+E30D -> U+EA99
+ ["ee88a6", "ee93b7"], # [CIRCLED IDEOGRAPH ADVANTAGE] U+E226 -> U+E4F7
+ ["ee848f", "ee91b6"], # [ELECTRIC LIGHT BULB] U+E10F -> U+E476
+ ["ee8cb4", "ee93a5"], # [ANGER SYMBOL] U+E334 -> U+E4E5
+ ["ee8c91", "ee91ba"], # [BOMB] U+E311 -> U+E47A
+ ["ee84bc", "ee91b5"], # [SLEEPING SYMBOL] U+E13C -> U+E475
+ ["ee8cb1", "ee96b1"], # [SPLASHING SWEAT SYMBOL] U+E331 -> U+E5B1
+ ["ee8cb0", "ee93b4"], # [DASH SYMBOL] U+E330 -> U+E4F4
+ ["ee819a", "ee93b5"], # [PILE OF POO] U+E05A -> U+E4F5
+ ["ee858c", "ee93a9"], # [FLEXED BICEPS] U+E14C -> U+E4E9
+ ["ee8cae", "eeaaab"], # [SPARKLES] U+E32E -> U+EAAB
+ ["ee8885", "ee91b9"], # [EIGHT POINTED BLACK STAR] U+E205 -> U+E479
+ ["ee8886", "ee94be"], # [EIGHT SPOKED ASTERISK] U+E206 -> U+E53E
+ ["ee8899", "ee958a"], # [LARGE RED CIRCLE] U+E219 -> U+E54A
+ ["ee889a", "ee958b"], # [BLACK SQUARE BUTTON] U+E21A -> U+E54B
+ ["ee889b", "ee958b"], # [WHITE SQUARE BUTTON] U+E21B -> U+E54B
+ ["ee8caf", "ee928b"], # [WHITE MEDIUM STAR] U+E32F -> U+E48B
+ ["ee8581", "ee9491"], # [SPEAKER WITH THREE SOUND WAVES] U+E141 -> U+E511
+ ["ee8494", "ee9498"], # [LEFT-POINTING MAGNIFYING GLASS] U+E114 -> U+E518
+ ["ee8584", "ee949c"], # [LOCK] U+E144 -> U+E51C
+ ["ee8585", "ee949c"], # [OPEN LOCK] U+E145 -> U+E51C
+ ["ee80bf", "ee9499"], # [KEY] U+E03F -> U+E519
+ ["ee8ca5", "ee9492"], # [BELL] U+E325 -> U+E512
+ ["ee898c", :undef], # [TOP WITH UPWARDS ARROW ABOVE] U+E24C -> "[TOP]"
+ ["ee8090", "eeae83"], # [RAISED FIST] U+E010 -> U+EB83
+ ["ee8092", "ee96a7"], # [RAISED HAND] U+E012 -> U+E5A7
+ ["ee8091", "ee96a6"], # [VICTORY HAND] U+E011 -> U+E5A6
+ ["ee808d", "ee93b3"], # [FISTED HAND SIGN] U+E00D -> U+E4F3
+ ["ee808e", "ee93b9"], # [THUMBS UP SIGN] U+E00E -> U+E4F9
+ ["ee808f", "ee93b6"], # [WHITE UP POINTING INDEX] U+E00F -> U+E4F6
+ ["ee88ae", "eeaa8d"], # [WHITE UP POINTING BACKHAND INDEX] U+E22E -> U+EA8D
+ ["ee88af", "eeaa8e"], # [WHITE DOWN POINTING BACKHAND INDEX] U+E22F -> U+EA8E
+ ["ee88b0", "ee93bf"], # [WHITE LEFT POINTING BACKHAND INDEX] U+E230 -> U+E4FF
+ ["ee88b1", "ee9480"], # [WHITE RIGHT POINTING BACKHAND INDEX] U+E231 -> U+E500
+ ["ee909e", "eeab96"], # [WAVING HAND SIGN] U+E41E -> U+EAD6
+ ["ee909f", "eeab93"], # [CLAPPING HANDS SIGN] U+E41F -> U+EAD3
+ ["ee90a0", "eeab94"], # [OK HAND SIGN] U+E420 -> U+EAD4
+ ["ee90a1", "eeab95"], # [THUMBS DOWN SIGN] U+E421 -> U+EAD5
+ ["ee90a2", "eeab96"], # [OPEN HANDS SIGN] U+E422 -> U+EAD6
+ ["ee94b8", :undef], # [EMOJI COMPATIBILITY SYMBOL-50] U+E538 -> U+3013 (GETA)
+ ["ee94b9", :undef], # [EMOJI COMPATIBILITY SYMBOL-51] U+E539 -> U+3013 (GETA)
+ ["ee94ba", :undef], # [EMOJI COMPATIBILITY SYMBOL-52] U+E53A -> U+3013 (GETA)
+ ["ee94bb", :undef], # [EMOJI COMPATIBILITY SYMBOL-53] U+E53B -> U+3013 (GETA)
+ ["ee94bc", :undef], # [EMOJI COMPATIBILITY SYMBOL-54] U+E53C -> "[v"
+ ["ee94bd", :undef], # [EMOJI COMPATIBILITY SYMBOL-55] U+E53D -> "oda"
+ ["ee94be", :undef], # [EMOJI COMPATIBILITY SYMBOL-56] U+E53E -> "fone]"
+ ["ee8994", :undef], # [EMOJI COMPATIBILITY SYMBOL-57] U+E254 -> U+3013 (GETA)
+ ["ee8995", :undef], # [EMOJI COMPATIBILITY SYMBOL-58] U+E255 -> U+3013 (GETA)
+ ["ee8996", :undef], # [EMOJI COMPATIBILITY SYMBOL-59] U+E256 -> U+3013 (GETA)
+ ["ee8997", :undef], # [EMOJI COMPATIBILITY SYMBOL-60] U+E257 -> U+3013 (GETA)
+ ["ee8998", :undef], # [EMOJI COMPATIBILITY SYMBOL-61] U+E258 -> U+3013 (GETA)
+ ["ee8999", :undef], # [EMOJI COMPATIBILITY SYMBOL-62] U+E259 -> U+3013 (GETA)
+ ["ee899a", :undef], # [EMOJI COMPATIBILITY SYMBOL-63] U+E25A -> U+3013 (GETA)
+ ["ee948a", :undef], # [EMOJI COMPATIBILITY SYMBOL-64] U+E50A -> U+3013 (GETA)
+]
+
+EMOJI_EXCHANGE_TBL['UTF8-SoftBank']['UTF-8'] = [
+ ["ee818a", "e29880"], # [BLACK SUN WITH RAYS] U+E04A -> U+2600
+ ["ee8189", "e29881"], # [CLOUD] U+E049 -> U+2601
+ ["ee818b", "e29894"], # [UMBRELLA WITH RAIN DROPS] U+E04B -> U+2614
+ ["ee8188", "e29b84"], # [SNOWMAN WITHOUT SNOW] U+E048 -> U+26C4
+ ["ee84bd", "e29aa1"], # [HIGH VOLTAGE SIGN] U+E13D -> U+26A1
+ ["ee9183", :undef], # [CYCLONE] U+E443 -> U+1F300
+ ["ee90bc", :undef], # [CLOSED UMBRELLA] U+E43C -> U+1F302
+ ["ee918b", :undef], # [NIGHT WITH STARS] U+E44B -> U+1F303
+ ["ee818d", :undef], # [SUNRISE OVER MOUNTAINS] U+E04D -> U+1F304
+ ["ee9189", :undef], # [SUNRISE] U+E449 -> U+1F305
+ ["ee8586", :undef], # [CITYSCAPE AT DUSK] U+E146 -> "[夕焼ã‘]"
+ ["ee918a", :undef], # [SUNSET OVER BUILDINGS] U+E44A -> U+1F307
+ ["ee918c", :undef], # [RAINBOW] U+E44C -> U+1F308
+ ["ee90be", :undef], # [WATER WAVE] U+E43E -> U+1F30A
+ ["ee818c", :undef], # [CRESCENT MOON] U+E04C -> U+1F319
+ ["ee8cb5", :undef], # [GLOWING STAR] U+E335 -> U+1F31F
+ ["ee80a4", :undef], # [CLOCK FACE ONE OCLOCK] U+E024 -> U+1F550
+ ["ee80a5", :undef], # [CLOCK FACE TWO OCLOCK] U+E025 -> U+1F551
+ ["ee80a6", :undef], # [CLOCK FACE THREE OCLOCK] U+E026 -> U+1F552
+ ["ee80a7", :undef], # [CLOCK FACE FOUR OCLOCK] U+E027 -> U+1F553
+ ["ee80a8", :undef], # [CLOCK FACE FIVE OCLOCK] U+E028 -> U+1F554
+ ["ee80a9", :undef], # [CLOCK FACE SIX OCLOCK] U+E029 -> U+1F555
+ ["ee80aa", :undef], # [CLOCK FACE SEVEN OCLOCK] U+E02A -> U+1F556
+ ["ee80ab", :undef], # [CLOCK FACE EIGHT OCLOCK] U+E02B -> U+1F557
+ ["ee80ac", :undef], # [CLOCK FACE NINE OCLOCK] U+E02C -> U+1F558
+ ["ee80ad", :undef], # [CLOCK FACE TEN OCLOCK] U+E02D -> U+1F559
+ ["ee80ae", :undef], # [CLOCK FACE ELEVEN OCLOCK] U+E02E -> U+1F55A
+ ["ee80af", :undef], # [CLOCK FACE TWELVE OCLOCK] U+E02F -> U+1F55B
+ ["ee88bf", "e29988"], # [ARIES] U+E23F -> U+2648
+ ["ee8980", "e29989"], # [TAURUS] U+E240 -> U+2649
+ ["ee8981", "e2998a"], # [GEMINI] U+E241 -> U+264A
+ ["ee8982", "e2998b"], # [CANCER] U+E242 -> U+264B
+ ["ee8983", "e2998c"], # [LEO] U+E243 -> U+264C
+ ["ee8984", "e2998d"], # [VIRGO] U+E244 -> U+264D
+ ["ee8985", "e2998e"], # [LIBRA] U+E245 -> U+264E
+ ["ee8986", "e2998f"], # [SCORPIUS] U+E246 -> U+264F
+ ["ee8987", "e29990"], # [SAGITTARIUS] U+E247 -> U+2650
+ ["ee8988", "e29991"], # [CAPRICORN] U+E248 -> U+2651
+ ["ee8989", "e29992"], # [AQUARIUS] U+E249 -> U+2652
+ ["ee898a", "e29993"], # [PISCES] U+E24A -> U+2653
+ ["ee898b", :undef], # [OPHIUCHUS] U+E24B -> U+26CE
+ ["ee8490", :undef], # [FOUR LEAF CLOVER] U+E110 -> U+1F340
+ ["ee8c84", :undef], # [TULIP] U+E304 -> U+1F337
+ ["ee8498", :undef], # [MAPLE LEAF] U+E118 -> U+1F341
+ ["ee80b0", :undef], # [CHERRY BLOSSOM] U+E030 -> U+1F338
+ ["ee80b2", :undef], # [ROSE] U+E032 -> U+1F339
+ ["ee8499", :undef], # [FALLEN LEAF] U+E119 -> U+1F342
+ ["ee9187", :undef], # [LEAF FLUTTERING IN WIND] U+E447 -> U+1F343
+ ["ee8c83", :undef], # [HIBISCUS] U+E303 -> U+1F33A
+ ["ee8c85", :undef], # [SUNFLOWER] U+E305 -> U+1F33B
+ ["ee8c87", :undef], # [PALM TREE] U+E307 -> U+1F334
+ ["ee8c88", :undef], # [CACTUS] U+E308 -> U+1F335
+ ["ee9184", :undef], # [EAR OF RICE] U+E444 -> U+1F33E
+ ["ee8d85", :undef], # [RED APPLE] U+E345 -> U+1F34E
+ ["ee8d86", :undef], # [TANGERINE] U+E346 -> U+1F34A
+ ["ee8d87", :undef], # [STRAWBERRY] U+E347 -> U+1F353
+ ["ee8d88", :undef], # [WATERMELON] U+E348 -> U+1F349
+ ["ee8d89", :undef], # [TOMATO] U+E349 -> U+1F345
+ ["ee8d8a", :undef], # [AUBERGINE] U+E34A -> U+1F346
+ ["ee9099", :undef], # [EYES] U+E419 -> U+1F440
+ ["ee909b", :undef], # [EAR] U+E41B -> U+1F442
+ ["ee909a", :undef], # [NOSE] U+E41A -> U+1F443
+ ["ee909c", :undef], # [MOUTH] U+E41C -> U+1F444
+ ["ee8c9c", :undef], # [LIPSTICK] U+E31C -> U+1F484
+ ["ee8c9d", :undef], # [NAIL POLISH] U+E31D -> U+1F485
+ ["ee8c9e", :undef], # [FACE MASSAGE] U+E31E -> U+1F486
+ ["ee8c9f", :undef], # [HAIRCUT] U+E31F -> U+1F487
+ ["ee8ca0", :undef], # [BARBER POLE] U+E320 -> U+1F488
+ ["ee8081", :undef], # [BOY] U+E001 -> U+1F466
+ ["ee8082", :undef], # [GIRL] U+E002 -> U+1F467
+ ["ee8084", :undef], # [MAN] U+E004 -> U+1F468
+ ["ee8085", :undef], # [WOMAN] U+E005 -> U+1F469
+ ["ee90a8", :undef], # [MAN AND WOMAN HOLDING HANDS] U+E428 -> U+1F46B
+ ["ee8592", :undef], # [POLICE OFFICER] U+E152 -> U+1F46E
+ ["ee90a9", :undef], # [WOMAN WITH BUNNY EARS] U+E429 -> U+1F46F
+ ["ee9495", :undef], # [WESTERN PERSON] U+E515 -> U+1F471
+ ["ee9496", :undef], # [MAN WITH GUA PI MAO] U+E516 -> U+1F472
+ ["ee9497", :undef], # [MAN WITH TURBAN] U+E517 -> U+1F473
+ ["ee9498", :undef], # [OLDER MAN] U+E518 -> U+1F474
+ ["ee9499", :undef], # [OLDER WOMAN] U+E519 -> U+1F475
+ ["ee949a", :undef], # [BABY] U+E51A -> U+1F476
+ ["ee949b", :undef], # [CONSTRUCTION WORKER] U+E51B -> U+1F477
+ ["ee949c", :undef], # [PRINCESS] U+E51C -> U+1F478
+ ["ee849b", :undef], # [GHOST] U+E11B -> U+1F47B
+ ["ee818e", :undef], # [BABY ANGEL] U+E04E -> U+1F47C
+ ["ee848c", :undef], # [EXTRATERRESTRIAL ALIEN] U+E10C -> U+1F47D
+ ["ee84ab", :undef], # [ALIEN MONSTER] U+E12B -> U+1F47E
+ ["ee849a", :undef], # [IMP] U+E11A -> U+1F47F
+ ["ee849c", :undef], # [SKULL] U+E11C -> U+1F480
+ ["ee8993", :undef], # [INFORMATION DESK PERSON] U+E253 -> U+1F481
+ ["ee949e", :undef], # [GUARDSMAN] U+E51E -> U+1F482
+ ["ee949f", :undef], # [DANCER] U+E51F -> U+1F483
+ ["ee94ad", :undef], # [SNAKE] U+E52D -> U+1F40D
+ ["ee84b4", :undef], # [HORSE] U+E134 -> U+1F40E
+ ["ee94ae", :undef], # [CHICKEN] U+E52E -> U+1F414
+ ["ee94af", :undef], # [BOAR] U+E52F -> U+1F417
+ ["ee94b0", :undef], # [BACTRIAN CAMEL] U+E530 -> U+1F42B
+ ["ee94a6", :undef], # [ELEPHANT] U+E526 -> U+1F418
+ ["ee94a7", :undef], # [KOALA] U+E527 -> U+1F428
+ ["ee94a8", :undef], # [MONKEY] U+E528 -> U+1F412
+ ["ee94a9", :undef], # [SHEEP] U+E529 -> U+1F411
+ ["ee848a", :undef], # [OCTOPUS] U+E10A -> U+1F419
+ ["ee9181", :undef], # [SPIRAL SHELL] U+E441 -> U+1F41A
+ ["ee94a5", :undef], # [BUG] U+E525 -> U+1F41B
+ ["ee94a2", :undef], # [TROPICAL FISH] U+E522 -> U+1F420
+ ["ee94a3", :undef], # [BABY CHICK] U+E523 -> U+1F424
+ ["ee94a1", :undef], # [BIRD] U+E521 -> U+1F426
+ ["ee8195", :undef], # [PENGUIN] U+E055 -> U+1F427
+ ["ee8099", :undef], # [FISH] U+E019 -> U+1F41F
+ ["ee94a0", :undef], # [DOLPHIN] U+E520 -> U+1F42C
+ ["ee8193", :undef], # [MOUSE FACE] U+E053 -> U+1F42D
+ ["ee8190", :undef], # [TIGER FACE] U+E050 -> U+1F42F
+ ["ee818f", :undef], # [CAT FACE] U+E04F -> U+1F431
+ ["ee8194", :undef], # [SPOUTING WHALE] U+E054 -> U+1F433
+ ["ee809a", :undef], # [HORSE FACE] U+E01A -> U+1F434
+ ["ee8489", :undef], # [MONKEY FACE] U+E109 -> U+1F435
+ ["ee8192", :undef], # [DOG FACE] U+E052 -> U+1F436
+ ["ee848b", :undef], # [PIG FACE] U+E10B -> U+1F437
+ ["ee8191", :undef], # [BEAR FACE] U+E051 -> U+1F43B
+ ["ee94a4", :undef], # [HAMSTER FACE] U+E524 -> U+1F439
+ ["ee94aa", :undef], # [WOLF FACE] U+E52A -> U+1F43A
+ ["ee94ab", :undef], # [COW FACE] U+E52B -> U+1F42E
+ ["ee94ac", :undef], # [RABBIT FACE] U+E52C -> U+1F430
+ ["ee94b1", :undef], # [FROG FACE] U+E531 -> U+1F438
+ ["ee8199", :undef], # [ANGRY FACE] U+E059 -> U+1F600
+ ["ee9090", :undef], # [ASTONISHED FACE] U+E410 -> U+1F602
+ ["ee8198", :undef], # [DISAPPOINTED FACE] U+E058 -> U+1F603
+ ["ee908f", :undef], # [EXASPERATED FACE] U+E40F -> U+1F605
+ ["ee908e", :undef], # [EXPRESSIONLESS FACE] U+E40E -> U+1F606
+ ["ee8486", :undef], # [FACE WITH HEART-SHAPED EYES] U+E106 -> U+1F607
+ ["ee8485", :undef], # [WINKING FACE WITH STUCK-OUT TONGUE] U+E105 -> U+1F609
+ ["ee9089", :undef], # [FACE WITH STUCK-OUT TONGUE] U+E409 -> U+1F60A
+ ["ee9098", :undef], # [FACE THROWING A KISS] U+E418 -> U+1F60C
+ ["ee9097", :undef], # [FACE KISSING] U+E417 -> U+1F60D
+ ["ee908c", :undef], # [FACE WITH MASK] U+E40C -> U+1F60E
+ ["ee908d", :undef], # [FLUSHED FACE] U+E40D -> U+1F60F
+ ["ee8197", :undef], # [HAPPY FACE WITH OPEN MOUTH] U+E057 -> U+1F610
+ ["ee9084", :undef], # [HAPPY FACE WITH GRIN] U+E404 -> U+1F613
+ ["ee9092", :undef], # [HAPPY AND CRYING FACE] U+E412 -> U+1F614
+ ["ee8196", :undef], # [HAPPY FACE WITH WIDE MOUTH AND RAISED EYEBROWS] U+E056 -> U+1F615
+ ["ee9094", "e298ba"], # [WHITE SMILING FACE] U+E414 -> U+263A
+ ["ee9095", :undef], # [HAPPY FACE WITH OPEN MOUTH AND RAISED EYEBROWS] U+E415 -> U+1F616
+ ["ee9093", :undef], # [CRYING FACE] U+E413 -> U+1F617
+ ["ee9091", :undef], # [LOUDLY CRYING FACE] U+E411 -> U+1F618
+ ["ee908b", :undef], # [FEARFUL FACE] U+E40B -> U+1F619
+ ["ee9086", :undef], # [PERSEVERING FACE] U+E406 -> U+1F61A
+ ["ee9096", :undef], # [POUTING FACE] U+E416 -> U+1F61B
+ ["ee908a", :undef], # [RELIEVED FACE] U+E40A -> U+1F61C
+ ["ee9087", :undef], # [CONFOUNDED FACE] U+E407 -> U+1F61D
+ ["ee9083", :undef], # [PENSIVE FACE] U+E403 -> U+1F61E
+ ["ee8487", :undef], # [FACE SCREAMING IN FEAR] U+E107 -> U+1F61F
+ ["ee9088", :undef], # [SLEEPY FACE] U+E408 -> U+1F620
+ ["ee9082", :undef], # [SMIRKING FACE] U+E402 -> U+1F621
+ ["ee8488", :undef], # [FACE WITH COLD SWEAT] U+E108 -> U+1F622
+ ["ee9081", :undef], # [DISAPPOINTED BUT RELIEVED FACE] U+E401 -> U+1F623
+ ["ee9085", :undef], # [WINKING FACE] U+E405 -> U+1F625
+ ["ee90a3", :undef], # [FACE WITH NO GOOD GESTURE] U+E423 -> U+1F634
+ ["ee90a4", :undef], # [FACE WITH OK GESTURE] U+E424 -> U+1F635
+ ["ee90a6", :undef], # [PERSON BOWING DEEPLY] U+E426 -> U+1F636
+ ["ee90a7", :undef], # [PERSON RAISING BOTH HANDS IN CELEBRATION] U+E427 -> U+1F63B
+ ["ee909d", :undef], # [PERSON WITH FOLDED HANDS] U+E41D -> U+1F63E
+ ["ee80b6", :undef], # [HOUSE BUILDING] U+E036 -> U+1F3E0
+ ["ee80b8", :undef], # [OFFICE BUILDING] U+E038 -> U+1F3E2
+ ["ee8593", :undef], # [JAPANESE POST OFFICE] U+E153 -> U+1F3E3
+ ["ee8595", :undef], # [HOSPITAL] U+E155 -> U+1F3E5
+ ["ee858d", :undef], # [BANK] U+E14D -> U+1F3E6
+ ["ee8594", :undef], # [AUTOMATED TELLER MACHINE] U+E154 -> U+1F3E7
+ ["ee8598", :undef], # [HOTEL] U+E158 -> U+1F3E8
+ ["ee9481", :undef], # [LOVE HOTEL] U+E501 -> U+1F3E9
+ ["ee8596", :undef], # [CONVENIENCE STORE] U+E156 -> U+1F3EA
+ ["ee8597", :undef], # [SCHOOL] U+E157 -> U+1F3EB
+ ["ee80b7", "e29baa"], # [CHURCH] U+E037 -> U+26EA
+ ["ee84a1", "e29bb2"], # [FOUNTAIN] U+E121 -> U+26F2
+ ["ee9484", :undef], # [DEPARTMENT STORE] U+E504 -> U+1F3EC
+ ["ee9485", :undef], # [JAPANESE CASTLE] U+E505 -> U+1F3EF
+ ["ee9486", :undef], # [EUROPEAN CASTLE] U+E506 -> U+1F3F0
+ ["ee9488", :undef], # [FACTORY] U+E508 -> U+1F3ED
+ ["ee80bb", :undef], # [MOUNT FUJI] U+E03B -> U+1F5FB
+ ["ee9489", :undef], # [TOKYO TOWER] U+E509 -> U+1F5FC
+ ["ee949d", :undef], # [STATUE OF LIBERTY] U+E51D -> U+1F5FD
+ ["ee8087", :undef], # [ATHLETIC SHOE] U+E007 -> U+1F45F
+ ["ee84be", :undef], # [HIGH-HEELED SHOE] U+E13E -> U+1F460
+ ["ee8c9a", :undef], # [WOMANS SANDAL] U+E31A -> U+1F461
+ ["ee8c9b", :undef], # [WOMANS BOOTS] U+E31B -> U+1F462
+ ["ee94b6", :undef], # [FOOTPRINTS] U+E536 -> U+1F463
+ ["ee8086", :undef], # [T-SHIRT] U+E006 -> U+1F455
+ ["ee848e", :undef], # [CROWN] U+E10E -> U+1F451
+ ["ee8c82", :undef], # [NECKTIE] U+E302 -> U+1F454
+ ["ee8c98", :undef], # [WOMANS HAT] U+E318 -> U+1F452
+ ["ee8c99", :undef], # [DRESS] U+E319 -> U+1F457
+ ["ee8ca1", :undef], # [KIMONO] U+E321 -> U+1F458
+ ["ee8ca2", :undef], # [BIKINI] U+E322 -> U+1F459
+ ["ee8ca3", :undef], # [HANDBAG] U+E323 -> U+1F45C
+ ["ee84af", :undef], # [MONEY BAG] U+E12F -> U+1F4B0
+ ["ee8589", :undef], # [CURRENCY EXCHANGE] U+E149 -> U+1F4B1
+ ["ee858a", :undef], # [CHART WITH UPWARDS TREND AND YEN SIGN] U+E14A -> U+1F4B9
+ ["ee9493", "f09f87a8f09f87b3"], # [REGIONAL INDICATOR SYMBOL LETTERS CN] U+E513 -> U+1F1E8 U+1F1F3
+ ["ee948e", "f09f87a9f09f87aa"], # [REGIONAL INDICATOR SYMBOL LETTERS DE] U+E50E -> U+1F1E9 U+1F1EA
+ ["ee9491", "f09f87aaf09f87b8"], # [REGIONAL INDICATOR SYMBOL LETTERS ES] U+E511 -> U+1F1EA U+1F1F8
+ ["ee948d", "f09f87abf09f87b7"], # [REGIONAL INDICATOR SYMBOL LETTERS FR] U+E50D -> U+1F1EB U+1F1F7
+ ["ee9490", "f09f87baf09f87b0"], # [REGIONAL INDICATOR SYMBOL LETTERS GB] U+E510 -> U+1F1FA U+1F1F0
+ ["ee948f", "f09f87aef09f87b9"], # [REGIONAL INDICATOR SYMBOL LETTERS IT] U+E50F -> U+1F1EE U+1F1F9
+ ["ee948b", "f09f87aff09f87b5"], # [REGIONAL INDICATOR SYMBOL LETTERS JP] U+E50B -> U+1F1EF U+1F1F5
+ ["ee9494", "f09f87b0f09f87b7"], # [REGIONAL INDICATOR SYMBOL LETTERS KR] U+E514 -> U+1F1F0 U+1F1F7
+ ["ee9492", "f09f87b7f09f87ba"], # [REGIONAL INDICATOR SYMBOL LETTERS RU] U+E512 -> U+1F1F7 U+1F1FA
+ ["ee948c", "f09f87baf09f87b8"], # [REGIONAL INDICATOR SYMBOL LETTERS US] U+E50C -> U+1F1FA U+1F1F8
+ ["ee849d", :undef], # [FIRE] U+E11D -> U+1F525
+ ["ee8496", :undef], # [HAMMER] U+E116 -> U+1F528
+ ["ee8493", :undef], # [PISTOL] U+E113 -> U+1F52B
+ ["ee88be", :undef], # [SIX POINTED STAR WITH MIDDLE DOT] U+E23E -> U+1F52F
+ ["ee8889", :undef], # [JAPANESE SYMBOL FOR BEGINNER] U+E209 -> U+1F530
+ ["ee80b1", :undef], # [TRIDENT EMBLEM] U+E031 -> U+1F531
+ ["ee84bb", :undef], # [SYRINGE] U+E13B -> U+1F489
+ ["ee8c8f", :undef], # [PILL] U+E30F -> U+1F48A
+ ["ee94b2", :undef], # [NEGATIVE SQUARED LATIN CAPITAL LETTER A] U+E532 -> U+1F170
+ ["ee94b3", :undef], # [NEGATIVE SQUARED LATIN CAPITAL LETTER B] U+E533 -> U+1F171
+ ["ee94b4", :undef], # [NEGATIVE SQUARED AB] U+E534 -> U+1F18E
+ ["ee94b5", :undef], # [NEGATIVE SQUARED LATIN CAPITAL LETTER O] U+E535 -> U+1F17E
+ ["ee8c94", :undef], # [RIBBON] U+E314 -> U+1F380
+ ["ee8492", :undef], # [WRAPPED PRESENT] U+E112 -> U+1F381
+ ["ee8d8b", :undef], # [BIRTHDAY CAKE] U+E34B -> U+1F382
+ ["ee80b3", :undef], # [CHRISTMAS TREE] U+E033 -> U+1F384
+ ["ee9188", :undef], # [FATHER CHRISTMAS] U+E448 -> U+1F385
+ ["ee8583", :undef], # [CROSSED FLAGS] U+E143 -> U+1F38C
+ ["ee8497", :undef], # [FIREWORKS] U+E117 -> U+1F386
+ ["ee8c90", :undef], # [BALLOON] U+E310 -> U+1F388
+ ["ee8c92", :undef], # [PARTY POPPER] U+E312 -> U+1F389
+ ["ee90b6", :undef], # [PINE DECORATION] U+E436 -> U+1F38D
+ ["ee90b8", :undef], # [JAPANESE DOLLS] U+E438 -> U+1F38E
+ ["ee90b9", :undef], # [GRADUATION CAP] U+E439 -> U+1F393
+ ["ee90ba", :undef], # [SCHOOL SATCHEL] U+E43A -> U+1F392
+ ["ee90bb", :undef], # [CARP STREAMER] U+E43B -> U+1F38F
+ ["ee9180", :undef], # [FIREWORK SPARKLER] U+E440 -> U+1F387
+ ["ee9182", :undef], # [WIND CHIME] U+E442 -> U+1F390
+ ["ee9185", :undef], # [JACK-O-LANTERN] U+E445 -> U+1F383
+ ["ee9186", :undef], # [MOON VIEWING CEREMONY] U+E446 -> U+1F391
+ ["ee8089", "e2988e"], # [BLACK TELEPHONE] U+E009 -> U+260E
+ ["ee808a", :undef], # [MOBILE PHONE] U+E00A -> U+1F4F1
+ ["ee8484", :undef], # [MOBILE PHONE WITH RIGHTWARDS ARROW AT LEFT] U+E104 -> U+1F4F2
+ ["ee8c81", :undef], # [MEMO] U+E301 -> U+1F4DD
+ ["ee808b", :undef], # [FAX MACHINE] U+E00B -> U+1F4E0
+ ["ee8483", :undef], # [ENVELOPE WITH DOWNWARDS ARROW ABOVE] U+E103 -> U+1F4E9
+ ["ee8481", :undef], # [CLOSED MAILBOX WITH RAISED FLAG] U+E101 -> U+1F4EB
+ ["ee8482", :undef], # [POSTBOX] U+E102 -> U+1F4EE
+ ["ee8582", :undef], # [PUBLIC ADDRESS LOUDSPEAKER] U+E142 -> U+1F4E2
+ ["ee8c97", :undef], # [CHEERING MEGAPHONE] U+E317 -> U+1F4E3
+ ["ee858b", :undef], # [SATELLITE ANTENNA] U+E14B -> U+1F4E1
+ ["ee849f", :undef], # [SEAT] U+E11F -> U+1F4BA
+ ["ee808c", :undef], # [PERSONAL COMPUTER] U+E00C -> U+1F4BB
+ ["ee849e", :undef], # [BRIEFCASE] U+E11E -> U+1F4BC
+ ["ee8c96", :undef], # [MINIDISC] U+E316 -> U+1F4BD
+ ["ee84a6", :undef], # [OPTICAL DISC] U+E126 -> U+1F4BF
+ ["ee84a7", :undef], # [DVD] U+E127 -> U+1F4C0
+ ["ee8c93", "e29c82"], # [BLACK SCISSORS] U+E313 -> U+2702
+ ["ee8588", :undef], # [OPEN BOOK] U+E148 -> U+1F4D6
+ ["ee8096", "e29abe"], # [BASEBALL] U+E016 -> U+26BE
+ ["ee8094", "e29bb3"], # [FLAG IN HOLE] U+E014 -> U+26F3
+ ["ee8095", :undef], # [TENNIS RACQUET AND BALL] U+E015 -> U+1F3BE
+ ["ee8098", "e29abd"], # [SOCCER BALL] U+E018 -> U+26BD
+ ["ee8093", :undef], # [SKI AND SKI BOOT] U+E013 -> U+1F3BF
+ ["ee90aa", :undef], # [BASKETBALL AND HOOP] U+E42A -> U+1F3C0
+ ["ee84b2", :undef], # [CHEQUERED FLAG] U+E132 -> U+1F3C1
+ ["ee8495", :undef], # [RUNNER] U+E115 -> U+1F3C3
+ ["ee8097", :undef], # [SURFER] U+E017 -> U+1F3C4
+ ["ee84b1", :undef], # [TROPHY] U+E131 -> U+1F3C6
+ ["ee90ab", :undef], # [AMERICAN FOOTBALL] U+E42B -> U+1F3C8
+ ["ee90ad", :undef], # [SWIMMER] U+E42D -> U+1F3CA
+ ["ee809e", :undef], # [TRAIN] U+E01E -> U+1F686
+ ["ee90b4", :undef], # [METRO] U+E434 -> U+1F687
+ ["ee90b5", :undef], # [HIGH-SPEED TRAIN] U+E435 -> U+1F684
+ ["ee809f", :undef], # [HIGH-SPEED TRAIN WITH BULLET NOSE] U+E01F -> U+1F685
+ ["ee809b", :undef], # [AUTOMOBILE] U+E01B -> U+1F697
+ ["ee90ae", :undef], # [RECREATIONAL VEHICLE] U+E42E -> U+1F699
+ ["ee8599", :undef], # [ONCOMING BUS] U+E159 -> U+1F68D
+ ["ee8590", :undef], # [BUS STOP] U+E150 -> U+1F68F
+ ["ee8882", :undef], # [SHIP] U+E202 -> U+1F6A2
+ ["ee809d", "e29c88"], # [AIRPLANE] U+E01D -> U+2708
+ ["ee809c", "e29bb5"], # [SAILBOAT] U+E01C -> U+26F5
+ ["ee80b9", :undef], # [STATION] U+E039 -> U+1F689
+ ["ee848d", :undef], # [ROCKET] U+E10D -> U+1F680
+ ["ee84b5", :undef], # [SPEEDBOAT] U+E135 -> U+1F6A4
+ ["ee859a", :undef], # [TAXI] U+E15A -> U+1F695
+ ["ee90af", :undef], # [DELIVERY TRUCK] U+E42F -> U+1F69A
+ ["ee90b0", :undef], # [FIRE ENGINE] U+E430 -> U+1F692
+ ["ee90b1", :undef], # [AMBULANCE] U+E431 -> U+1F691
+ ["ee90b2", :undef], # [POLICE CAR] U+E432 -> U+1F693
+ ["ee80ba", "e29bbd"], # [FUEL PUMP] U+E03A -> U+26FD
+ ["ee858f", "f09f85bf"], # [NEGATIVE SQUARED LATIN CAPITAL LETTER P] U+E14F -> U+1F17F
+ ["ee858e", :undef], # [HORIZONTAL TRAFFIC LIGHT] U+E14E -> U+1F6A5
+ ["ee84b7", :undef], # [CONSTRUCTION SIGN] U+E137 -> U+1F6A7
+ ["ee84a3", "e299a8"], # [HOT SPRINGS] U+E123 -> U+2668
+ ["ee84a2", "e29bba"], # [TENT] U+E122 -> U+26FA
+ ["ee84a4", :undef], # [FERRIS WHEEL] U+E124 -> U+1F3A1
+ ["ee90b3", :undef], # [ROLLER COASTER] U+E433 -> U+1F3A2
+ ["ee80bc", :undef], # [MICROPHONE] U+E03C -> U+1F3A4
+ ["ee80bd", :undef], # [MOVIE CAMERA] U+E03D -> U+1F3A5
+ ["ee9487", :undef], # [CINEMA] U+E507 -> U+1F3A6
+ ["ee8c8a", :undef], # [HEADPHONE] U+E30A -> U+1F3A7
+ ["ee9482", :undef], # [ARTIST PALETTE] U+E502 -> U+1F3A8
+ ["ee9483", :undef], # [TOP HAT] U+E503 -> U+1F3A9
+ ["ee84a5", :undef], # [TICKET] U+E125 -> U+1F3AB
+ ["ee8ca4", :undef], # [CLAPPER BOARD] U+E324 -> U+1F3AC
+ ["ee84ad", "f09f8084"], # [MAHJONG TILE RED DRAGON] U+E12D -> U+1F004
+ ["ee84b0", :undef], # [DIRECT HIT] U+E130 -> U+1F3AF
+ ["ee84b3", :undef], # [SLOT MACHINE] U+E133 -> U+1F3B0
+ ["ee90ac", :undef], # [BILLIARDS] U+E42C -> U+1F3B1
+ ["ee80be", :undef], # [MUSICAL NOTE] U+E03E -> U+1F3B5
+ ["ee8ca6", :undef], # [MULTIPLE MUSICAL NOTES] U+E326 -> U+1F3B6
+ ["ee8180", :undef], # [SAXOPHONE] U+E040 -> U+1F3B7
+ ["ee8181", :undef], # [GUITAR] U+E041 -> U+1F3B8
+ ["ee8182", :undef], # [TRUMPET] U+E042 -> U+1F3BA
+ ["ee84ac", "e380bd"], # [PART ALTERNATION MARK] U+E12C -> U+303D
+ ["ee8088", :undef], # [CAMERA] U+E008 -> U+1F4F7
+ ["ee84aa", :undef], # [TELEVISION] U+E12A -> U+1F4FA
+ ["ee84a8", :undef], # [RADIO] U+E128 -> U+1F4FB
+ ["ee84a9", :undef], # [VIDEOCASSETTE] U+E129 -> U+1F4FC
+ ["ee8083", :undef], # [KISS MARK] U+E003 -> U+1F48B
+ ["ee80b4", :undef], # [RING] U+E034 -> U+1F48D
+ ["ee80b5", :undef], # [GEM STONE] U+E035 -> U+1F48E
+ ["ee8491", :undef], # [KISS] U+E111 -> U+1F48F
+ ["ee8c86", :undef], # [BOUQUET] U+E306 -> U+1F490
+ ["ee90a5", :undef], # [COUPLE WITH HEART] U+E425 -> U+1F491
+ ["ee90bd", :undef], # [WEDDING] U+E43D -> U+1F492
+ ["ee8887", :undef], # [NO ONE UNDER EIGHTEEN SYMBOL] U+E207 -> U+1F51E
+ ["ee898e", "c2a9"], # [COPYRIGHT SIGN] U+E24E -> U+A9
+ ["ee898f", "c2ae"], # [REGISTERED SIGN] U+E24F -> U+AE
+ ["ee94b7", "e284a2"], # [TRADE MARK SIGN] U+E537 -> U+2122
+ ["ee8890", "23e283a3"], # [HASH KEY] U+E210 -> U+23 U+20E3
+ ["ee889c", "31e283a3"], # [KEYCAP 1] U+E21C -> U+31 U+20E3
+ ["ee889d", "32e283a3"], # [KEYCAP 2] U+E21D -> U+32 U+20E3
+ ["ee889e", "33e283a3"], # [KEYCAP 3] U+E21E -> U+33 U+20E3
+ ["ee889f", "34e283a3"], # [KEYCAP 4] U+E21F -> U+34 U+20E3
+ ["ee88a0", "35e283a3"], # [KEYCAP 5] U+E220 -> U+35 U+20E3
+ ["ee88a1", "36e283a3"], # [KEYCAP 6] U+E221 -> U+36 U+20E3
+ ["ee88a2", "37e283a3"], # [KEYCAP 7] U+E222 -> U+37 U+20E3
+ ["ee88a3", "38e283a3"], # [KEYCAP 8] U+E223 -> U+38 U+20E3
+ ["ee88a4", "39e283a3"], # [KEYCAP 9] U+E224 -> U+39 U+20E3
+ ["ee88a5", "30e283a3"], # [KEYCAP 0] U+E225 -> U+30 U+20E3
+ ["ee888b", :undef], # [ANTENNA WITH BARS] U+E20B -> U+1F4F6
+ ["ee8990", :undef], # [VIBRATION MODE] U+E250 -> U+1F4F3
+ ["ee8991", :undef], # [MOBILE PHONE OFF] U+E251 -> U+1F4F4
+ ["ee84a0", :undef], # [HAMBURGER] U+E120 -> U+1F354
+ ["ee8d82", :undef], # [RICE BALL] U+E342 -> U+1F359
+ ["ee8186", :undef], # [SHORTCAKE] U+E046 -> U+1F370
+ ["ee8d80", :undef], # [STEAMING BOWL] U+E340 -> U+1F35C
+ ["ee8cb9", :undef], # [BREAD] U+E339 -> U+1F35E
+ ["ee8587", :undef], # [COOKING] U+E147 -> U+1F373
+ ["ee8cba", :undef], # [SOFT ICE CREAM] U+E33A -> U+1F366
+ ["ee8cbb", :undef], # [FRENCH FRIES] U+E33B -> U+1F35F
+ ["ee8cbc", :undef], # [DANGO] U+E33C -> U+1F361
+ ["ee8cbd", :undef], # [RICE CRACKER] U+E33D -> U+1F358
+ ["ee8cbe", :undef], # [COOKED RICE] U+E33E -> U+1F35A
+ ["ee8cbf", :undef], # [SPAGHETTI] U+E33F -> U+1F35D
+ ["ee8d81", :undef], # [CURRY AND RICE] U+E341 -> U+1F35B
+ ["ee8d83", :undef], # [ODEN] U+E343 -> U+1F362
+ ["ee8d84", :undef], # [SUSHI] U+E344 -> U+1F363
+ ["ee8d8c", :undef], # [BENTO BOX] U+E34C -> U+1F371
+ ["ee8d8d", :undef], # [POT OF FOOD] U+E34D -> U+1F372
+ ["ee90bf", :undef], # [SHAVED ICE] U+E43F -> U+1F367
+ ["ee8183", :undef], # [FORK AND KNIFE] U+E043 -> U+1F374
+ ["ee8185", "e29895"], # [HOT BEVERAGE] U+E045 -> U+2615
+ ["ee8184", :undef], # [COCKTAIL GLASS] U+E044 -> U+1F378
+ ["ee8187", :undef], # [BEER MUG] U+E047 -> U+1F37A
+ ["ee8cb8", :undef], # [TEACUP WITHOUT HANDLE] U+E338 -> U+1F375
+ ["ee8c8b", :undef], # [SAKE BOTTLE AND CUP] U+E30B -> U+1F376
+ ["ee8c8c", :undef], # [CLINKING BEER MUGS] U+E30C -> U+1F37B
+ ["ee88b6", "e28697"], # [NORTH EAST ARROW] U+E236 -> U+2197
+ ["ee88b8", "e28698"], # [SOUTH EAST ARROW] U+E238 -> U+2198
+ ["ee88b7", "e28696"], # [NORTH WEST ARROW] U+E237 -> U+2196
+ ["ee88b9", "e28699"], # [SOUTH WEST ARROW] U+E239 -> U+2199
+ ["ee88b2", "e2ac86"], # [UPWARDS BLACK ARROW] U+E232 -> U+2B06
+ ["ee88b3", "e2ac87"], # [DOWNWARDS BLACK ARROW] U+E233 -> U+2B07
+ ["ee88b4", "e29ea1"], # [BLACK RIGHTWARDS ARROW] U+E234 -> U+27A1
+ ["ee88b5", "e2ac85"], # [LEFTWARDS BLACK ARROW] U+E235 -> U+2B05
+ ["ee88ba", "e296b6"], # [BLACK RIGHT-POINTING TRIANGLE] U+E23A -> U+25B6
+ ["ee88bb", "e29780"], # [BLACK LEFT-POINTING TRIANGLE] U+E23B -> U+25C0
+ ["ee88bc", :undef], # [BLACK RIGHT-POINTING DOUBLE TRIANGLE] U+E23C -> U+23E9
+ ["ee88bd", :undef], # [BLACK LEFT-POINTING DOUBLE TRIANGLE] U+E23D -> U+23EA
+ ["ee8cb2", "e2ad95"], # [HEAVY LARGE CIRCLE] U+E332 -> U+2B55
+ ["ee8cb3", :undef], # [CROSS MARK] U+E333 -> U+274C
+ ["ee80a1", "e29da2"], # [HEAVY EXCLAMATION MARK ORNAMENT] U+E021 -> U+2762
+ ["ee80a0", :undef], # [BLACK QUESTION MARK ORNAMENT] U+E020 -> U+2753
+ ["ee8cb6", :undef], # [WHITE QUESTION MARK ORNAMENT] U+E336 -> U+2754
+ ["ee8cb7", :undef], # [WHITE EXCLAMATION MARK ORNAMENT] U+E337 -> U+2755
+ ["ee8891", :undef], # [DOUBLE CURLY LOOP] U+E211 -> U+27BF
+ ["ee80a2", "e29da4"], # [HEAVY BLACK HEART] U+E022 -> U+2764
+ ["ee8ca7", :undef], # [BEATING HEART] U+E327 -> U+1F493
+ ["ee80a3", :undef], # [BROKEN HEART] U+E023 -> U+1F494
+ ["ee8ca8", :undef], # [GROWING HEART] U+E328 -> U+1F497
+ ["ee8ca9", :undef], # [HEART WITH ARROW] U+E329 -> U+1F498
+ ["ee8caa", :undef], # [BLUE HEART] U+E32A -> U+1F499
+ ["ee8cab", :undef], # [GREEN HEART] U+E32B -> U+1F49A
+ ["ee8cac", :undef], # [YELLOW HEART] U+E32C -> U+1F49B
+ ["ee8cad", :undef], # [PURPLE HEART] U+E32D -> U+1F49C
+ ["ee90b7", :undef], # [HEART WITH RIBBON] U+E437 -> U+1F49D
+ ["ee8884", :undef], # [HEART DECORATION] U+E204 -> U+1F49F
+ ["ee888c", "e299a5"], # [BLACK HEART SUIT] U+E20C -> U+2665
+ ["ee888e", "e299a0"], # [BLACK SPADE SUIT] U+E20E -> U+2660
+ ["ee888d", "e299a6"], # [BLACK DIAMOND SUIT] U+E20D -> U+2666
+ ["ee888f", "e299a3"], # [BLACK CLUB SUIT] U+E20F -> U+2663
+ ["ee8c8e", :undef], # [SMOKING SYMBOL] U+E30E -> U+1F6AC
+ ["ee8888", :undef], # [NO SMOKING SYMBOL] U+E208 -> U+1F6AD
+ ["ee888a", "e299bf"], # [WHEELCHAIR SYMBOL] U+E20A -> U+267F
+ ["ee8992", "e29aa0"], # [WARNING SIGN] U+E252 -> U+26A0
+ ["ee84b6", :undef], # [BICYCLE] U+E136 -> U+1F6B2
+ ["ee8881", :undef], # [PEDESTRIAN] U+E201 -> U+1F6B6
+ ["ee84b8", :undef], # [MENS SYMBOL] U+E138 -> U+1F6B9
+ ["ee84b9", :undef], # [WOMENS SYMBOL] U+E139 -> U+1F6BA
+ ["ee84bf", :undef], # [BATH] U+E13F -> U+1F6C0
+ ["ee8591", :undef], # [RESTROOM] U+E151 -> U+1F6BB
+ ["ee8580", :undef], # [TOILET] U+E140 -> U+1F6BD
+ ["ee8c89", :undef], # [WATER CLOSET] U+E309 -> U+1F6BE
+ ["ee84ba", :undef], # [BABY SYMBOL] U+E13A -> U+1F6BC
+ ["ee8894", :undef], # [SQUARED COOL] U+E214 -> U+1F192
+ ["ee88a9", :undef], # [SQUARED ID] U+E229 -> U+1F194
+ ["ee8892", :undef], # [SQUARED NEW] U+E212 -> U+1F195
+ ["ee898d", :undef], # [SQUARED OK] U+E24D -> U+1F197
+ ["ee8893", :undef], # [SQUARED UP WITH EXCLAMATION MARK] U+E213 -> U+1F199
+ ["ee84ae", :undef], # [SQUARED VS] U+E12E -> U+1F19A
+ ["ee8883", :undef], # [SQUARED KATAKANA KOKO] U+E203 -> U+1F201
+ ["ee88a8", :undef], # [SQUARED KATAKANA SA] U+E228 -> U+1F202
+ ["ee88ab", :undef], # [SQUARED CJK UNIFIED IDEOGRAPH-7A7A] U+E22B -> U+1F233
+ ["ee88aa", :undef], # [SQUARED CJK UNIFIED IDEOGRAPH-6E80] U+E22A -> U+1F235
+ ["ee8895", :undef], # [SQUARED CJK UNIFIED IDEOGRAPH-6709] U+E215 -> U+1F236
+ ["ee8896", "f09f889a"], # [SQUARED CJK UNIFIED IDEOGRAPH-7121] U+E216 -> U+1F21A
+ ["ee8897", :undef], # [SQUARED CJK UNIFIED IDEOGRAPH-6708] U+E217 -> U+1F237
+ ["ee8898", :undef], # [SQUARED CJK UNIFIED IDEOGRAPH-7533] U+E218 -> U+1F238
+ ["ee88a7", :undef], # [SQUARED CJK UNIFIED IDEOGRAPH-5272] U+E227 -> U+1F239
+ ["ee88ac", "f09f88af"], # [SQUARED CJK UNIFIED IDEOGRAPH-6307] U+E22C -> U+1F22F
+ ["ee88ad", :undef], # [SQUARED CJK UNIFIED IDEOGRAPH-55B6] U+E22D -> U+1F23A
+ ["ee8c95", "e38a99"], # [CIRCLED IDEOGRAPH SECRET] U+E315 -> U+3299
+ ["ee8c8d", "e38a97"], # [CIRCLED IDEOGRAPH CONGRATULATION] U+E30D -> U+3297
+ ["ee88a6", :undef], # [CIRCLED IDEOGRAPH ADVANTAGE] U+E226 -> U+1F250
+ ["ee848f", :undef], # [ELECTRIC LIGHT BULB] U+E10F -> U+1F4A1
+ ["ee8cb4", :undef], # [ANGER SYMBOL] U+E334 -> U+1F4A2
+ ["ee8c91", :undef], # [BOMB] U+E311 -> U+1F4A3
+ ["ee84bc", :undef], # [SLEEPING SYMBOL] U+E13C -> U+1F4A4
+ ["ee8cb1", :undef], # [SPLASHING SWEAT SYMBOL] U+E331 -> U+1F4A6
+ ["ee8cb0", :undef], # [DASH SYMBOL] U+E330 -> U+1F4A8
+ ["ee819a", :undef], # [PILE OF POO] U+E05A -> U+1F4A9
+ ["ee858c", :undef], # [FLEXED BICEPS] U+E14C -> U+1F4AA
+ ["ee8cae", :undef], # [SPARKLES] U+E32E -> U+2728
+ ["ee8885", "e29cb4"], # [EIGHT POINTED BLACK STAR] U+E205 -> U+2734
+ ["ee8886", "e29cb3"], # [EIGHT SPOKED ASTERISK] U+E206 -> U+2733
+ ["ee8899", :undef], # [LARGE RED CIRCLE] U+E219 -> U+1F534
+ ["ee889a", :undef], # [BLACK SQUARE BUTTON] U+E21A -> U+1F532
+ ["ee889b", :undef], # [WHITE SQUARE BUTTON] U+E21B -> U+1F533
+ ["ee8caf", "e2ad90"], # [WHITE MEDIUM STAR] U+E32F -> U+2B50
+ ["ee8581", :undef], # [SPEAKER WITH THREE SOUND WAVES] U+E141 -> U+1F50A
+ ["ee8494", :undef], # [LEFT-POINTING MAGNIFYING GLASS] U+E114 -> U+1F50D
+ ["ee8584", :undef], # [LOCK] U+E144 -> U+1F512
+ ["ee8585", :undef], # [OPEN LOCK] U+E145 -> U+1F513
+ ["ee80bf", :undef], # [KEY] U+E03F -> U+1F511
+ ["ee8ca5", :undef], # [BELL] U+E325 -> U+1F514
+ ["ee898c", :undef], # [TOP WITH UPWARDS ARROW ABOVE] U+E24C -> U+1F51D
+ ["ee8090", :undef], # [RAISED FIST] U+E010 -> U+270A
+ ["ee8092", :undef], # [RAISED HAND] U+E012 -> U+270B
+ ["ee8091", "e29c8c"], # [VICTORY HAND] U+E011 -> U+270C
+ ["ee808d", :undef], # [FISTED HAND SIGN] U+E00D -> U+1F44A
+ ["ee808e", :undef], # [THUMBS UP SIGN] U+E00E -> U+1F44D
+ ["ee808f", "e2989d"], # [WHITE UP POINTING INDEX] U+E00F -> U+261D
+ ["ee88ae", :undef], # [WHITE UP POINTING BACKHAND INDEX] U+E22E -> U+1F446
+ ["ee88af", :undef], # [WHITE DOWN POINTING BACKHAND INDEX] U+E22F -> U+1F447
+ ["ee88b0", :undef], # [WHITE LEFT POINTING BACKHAND INDEX] U+E230 -> U+1F448
+ ["ee88b1", :undef], # [WHITE RIGHT POINTING BACKHAND INDEX] U+E231 -> U+1F449
+ ["ee909e", :undef], # [WAVING HAND SIGN] U+E41E -> U+1F44B
+ ["ee909f", :undef], # [CLAPPING HANDS SIGN] U+E41F -> U+1F44F
+ ["ee90a0", :undef], # [OK HAND SIGN] U+E420 -> U+1F44C
+ ["ee90a1", :undef], # [THUMBS DOWN SIGN] U+E421 -> U+1F44E
+ ["ee90a2", :undef], # [OPEN HANDS SIGN] U+E422 -> U+1F450
+ ["ee94b8", :undef], # [EMOJI COMPATIBILITY SYMBOL-50] U+E538 -> U+3013 (GETA)
+ ["ee94b9", :undef], # [EMOJI COMPATIBILITY SYMBOL-51] U+E539 -> U+3013 (GETA)
+ ["ee94ba", :undef], # [EMOJI COMPATIBILITY SYMBOL-52] U+E53A -> U+3013 (GETA)
+ ["ee94bb", :undef], # [EMOJI COMPATIBILITY SYMBOL-53] U+E53B -> U+3013 (GETA)
+ ["ee94bc", :undef], # [EMOJI COMPATIBILITY SYMBOL-54] U+E53C -> "[v"
+ ["ee94bd", :undef], # [EMOJI COMPATIBILITY SYMBOL-55] U+E53D -> "oda"
+ ["ee94be", :undef], # [EMOJI COMPATIBILITY SYMBOL-56] U+E53E -> "fone]"
+ ["ee8994", :undef], # [EMOJI COMPATIBILITY SYMBOL-57] U+E254 -> U+3013 (GETA)
+ ["ee8995", :undef], # [EMOJI COMPATIBILITY SYMBOL-58] U+E255 -> U+3013 (GETA)
+ ["ee8996", :undef], # [EMOJI COMPATIBILITY SYMBOL-59] U+E256 -> U+3013 (GETA)
+ ["ee8997", :undef], # [EMOJI COMPATIBILITY SYMBOL-60] U+E257 -> U+3013 (GETA)
+ ["ee8998", :undef], # [EMOJI COMPATIBILITY SYMBOL-61] U+E258 -> U+3013 (GETA)
+ ["ee8999", :undef], # [EMOJI COMPATIBILITY SYMBOL-62] U+E259 -> U+3013 (GETA)
+ ["ee899a", :undef], # [EMOJI COMPATIBILITY SYMBOL-63] U+E25A -> U+3013 (GETA)
+ ["ee948a", :undef], # [EMOJI COMPATIBILITY SYMBOL-64] U+E50A -> U+3013 (GETA)
+]
+
+EMOJI_EXCHANGE_TBL['UTF-8']['UTF8-DoCoMo'] = [
+ ["e29880", "ee98be"], # [BLACK SUN WITH RAYS] U+2600 -> U+E63E
+ ["e29881", "ee98bf"], # [CLOUD] U+2601 -> U+E63F
+ ["e29894", "ee9980"], # [UMBRELLA WITH RAIN DROPS] U+2614 -> U+E640
+ ["e29b84", "ee9981"], # [SNOWMAN WITHOUT SNOW] U+26C4 -> U+E641
+ ["e29aa1", "ee9982"], # [HIGH VOLTAGE SIGN] U+26A1 -> U+E642
+ ["f09f8c80", "ee9983"], # [CYCLONE] U+1F300 -> U+E643
+ ["f09f8c81", "ee9984"], # [FOGGY] U+1F301 -> U+E644
+ ["f09f8c82", "ee9985"], # [CLOSED UMBRELLA] U+1F302 -> U+E645
+ ["f09f8c83", "ee9ab3"], # [NIGHT WITH STARS] U+1F303 -> U+E6B3
+ ["f09f8c84", "ee98be"], # [SUNRISE OVER MOUNTAINS] U+1F304 -> U+E63E
+ ["f09f8c85", "ee98be"], # [SUNRISE] U+1F305 -> U+E63E
+ ["f09f8c87", "ee98be"], # [SUNSET OVER BUILDINGS] U+1F307 -> U+E63E
+ ["f09f8c88", :undef], # [RAINBOW] U+1F308 -> "[虹]"
+ ["e29d84", :undef], # [SNOWFLAKE] U+2744 -> "[é›ªçµæ™¶]"
+ ["e29b85", "ee98beee98bf"], # [SUN BEHIND CLOUD] U+26C5 -> U+E63E U+E63F
+ ["f09f8c89", "ee9ab3"], # [BRIDGE AT NIGHT] U+1F309 -> U+E6B3
+ ["f09f8c8a", "ee9cbf"], # [WATER WAVE] U+1F30A -> U+E73F
+ ["f09f8c8b", :undef], # [VOLCANO] U+1F30B -> "[ç«å±±]"
+ ["f09f8c8c", "ee9ab3"], # [MILKY WAY] U+1F30C -> U+E6B3
+ ["f09f8c8f", :undef], # [EARTH GLOBE ASIA-AUSTRALIA] U+1F30F -> "[地çƒ]"
+ ["f09f8c91", "ee9a9c"], # [NEW MOON SYMBOL] U+1F311 -> U+E69C
+ ["f09f8c94", "ee9a9d"], # [WAXING GIBBOUS MOON SYMBOL] U+1F314 -> U+E69D
+ ["f09f8c93", "ee9a9e"], # [FIRST QUARTER MOON SYMBOL] U+1F313 -> U+E69E
+ ["f09f8c99", "ee9a9f"], # [CRESCENT MOON] U+1F319 -> U+E69F
+ ["f09f8c95", "ee9aa0"], # [FULL MOON SYMBOL] U+1F315 -> U+E6A0
+ ["f09f8c9b", "ee9a9e"], # [FIRST QUARTER MOON WITH FACE] U+1F31B -> U+E69E
+ ["f09f8c9f", :undef], # [GLOWING STAR] U+1F31F -> "[☆]"
+ ["f09f8ca0", :undef], # [SHOOTING STAR] U+1F320 -> "☆彡"
+ ["f09f9590", "ee9aba"], # [CLOCK FACE ONE OCLOCK] U+1F550 -> U+E6BA
+ ["f09f9591", "ee9aba"], # [CLOCK FACE TWO OCLOCK] U+1F551 -> U+E6BA
+ ["f09f9592", "ee9aba"], # [CLOCK FACE THREE OCLOCK] U+1F552 -> U+E6BA
+ ["f09f9593", "ee9aba"], # [CLOCK FACE FOUR OCLOCK] U+1F553 -> U+E6BA
+ ["f09f9594", "ee9aba"], # [CLOCK FACE FIVE OCLOCK] U+1F554 -> U+E6BA
+ ["f09f9595", "ee9aba"], # [CLOCK FACE SIX OCLOCK] U+1F555 -> U+E6BA
+ ["f09f9596", "ee9aba"], # [CLOCK FACE SEVEN OCLOCK] U+1F556 -> U+E6BA
+ ["f09f9597", "ee9aba"], # [CLOCK FACE EIGHT OCLOCK] U+1F557 -> U+E6BA
+ ["f09f9598", "ee9aba"], # [CLOCK FACE NINE OCLOCK] U+1F558 -> U+E6BA
+ ["f09f9599", "ee9aba"], # [CLOCK FACE TEN OCLOCK] U+1F559 -> U+E6BA
+ ["f09f959a", "ee9aba"], # [CLOCK FACE ELEVEN OCLOCK] U+1F55A -> U+E6BA
+ ["f09f959b", "ee9aba"], # [CLOCK FACE TWELVE OCLOCK] U+1F55B -> U+E6BA
+ ["e28c9a", "ee9c9f"], # [WATCH] U+231A -> U+E71F
+ ["e28c9b", "ee9c9c"], # [HOURGLASS] U+231B -> U+E71C
+ ["e28fb0", "ee9aba"], # [ALARM CLOCK] U+23F0 -> U+E6BA
+ ["e28fb3", "ee9c9c"], # [HOURGLASS WITH FLOWING SAND] U+23F3 -> U+E71C
+ ["e29988", "ee9986"], # [ARIES] U+2648 -> U+E646
+ ["e29989", "ee9987"], # [TAURUS] U+2649 -> U+E647
+ ["e2998a", "ee9988"], # [GEMINI] U+264A -> U+E648
+ ["e2998b", "ee9989"], # [CANCER] U+264B -> U+E649
+ ["e2998c", "ee998a"], # [LEO] U+264C -> U+E64A
+ ["e2998d", "ee998b"], # [VIRGO] U+264D -> U+E64B
+ ["e2998e", "ee998c"], # [LIBRA] U+264E -> U+E64C
+ ["e2998f", "ee998d"], # [SCORPIUS] U+264F -> U+E64D
+ ["e29990", "ee998e"], # [SAGITTARIUS] U+2650 -> U+E64E
+ ["e29991", "ee998f"], # [CAPRICORN] U+2651 -> U+E64F
+ ["e29992", "ee9990"], # [AQUARIUS] U+2652 -> U+E650
+ ["e29993", "ee9991"], # [PISCES] U+2653 -> U+E651
+ ["e29b8e", :undef], # [OPHIUCHUS] U+26CE -> "[蛇使座]"
+ ["f09f8d80", "ee9d81"], # [FOUR LEAF CLOVER] U+1F340 -> U+E741
+ ["f09f8cb7", "ee9d83"], # [TULIP] U+1F337 -> U+E743
+ ["f09f8cb1", "ee9d86"], # [SEEDLING] U+1F331 -> U+E746
+ ["f09f8d81", "ee9d87"], # [MAPLE LEAF] U+1F341 -> U+E747
+ ["f09f8cb8", "ee9d88"], # [CHERRY BLOSSOM] U+1F338 -> U+E748
+ ["f09f8cb9", :undef], # [ROSE] U+1F339 -> "[ãƒãƒ©]"
+ ["f09f8d82", "ee9d87"], # [FALLEN LEAF] U+1F342 -> U+E747
+ ["f09f8d83", :undef], # [LEAF FLUTTERING IN WIND] U+1F343 -> "[風ã«èˆžã†è‘‰]"
+ ["f09f8cba", :undef], # [HIBISCUS] U+1F33A -> "[ãƒã‚¤ãƒ“スカス]"
+ ["f09f8cbb", :undef], # [SUNFLOWER] U+1F33B -> "[ã²ã¾ã‚り]"
+ ["f09f8cb4", :undef], # [PALM TREE] U+1F334 -> "[ヤシ]"
+ ["f09f8cb5", :undef], # [CACTUS] U+1F335 -> "[サボテン]"
+ ["f09f8cbe", :undef], # [EAR OF RICE] U+1F33E -> "[稲穂]"
+ ["f09f8cbd", :undef], # [EAR OF MAIZE] U+1F33D -> "[ã¨ã†ã‚‚ã‚ã“ã—]"
+ ["f09f8d84", :undef], # [MUSHROOM] U+1F344 -> "[キノコ]"
+ ["f09f8cb0", :undef], # [CHESTNUT] U+1F330 -> "[æ —]"
+ ["f09f8cbc", :undef], # [BLOSSOM] U+1F33C -> "[花]"
+ ["f09f8cbf", "ee9d81"], # [HERB] U+1F33F -> U+E741
+ ["f09f8d92", "ee9d82"], # [CHERRIES] U+1F352 -> U+E742
+ ["f09f8d8c", "ee9d84"], # [BANANA] U+1F34C -> U+E744
+ ["f09f8d8e", "ee9d85"], # [RED APPLE] U+1F34E -> U+E745
+ ["f09f8d8a", :undef], # [TANGERINE] U+1F34A -> "[ã¿ã‹ã‚“]"
+ ["f09f8d93", :undef], # [STRAWBERRY] U+1F353 -> "[イãƒã‚´]"
+ ["f09f8d89", :undef], # [WATERMELON] U+1F349 -> "[スイカ]"
+ ["f09f8d85", :undef], # [TOMATO] U+1F345 -> "[トマト]"
+ ["f09f8d86", :undef], # [AUBERGINE] U+1F346 -> "[ナス]"
+ ["f09f8d88", :undef], # [MELON] U+1F348 -> "[メロン]"
+ ["f09f8d8d", :undef], # [PINEAPPLE] U+1F34D -> "[パイナップル]"
+ ["f09f8d87", :undef], # [GRAPES] U+1F347 -> "[ブドウ]"
+ ["f09f8d91", :undef], # [PEACH] U+1F351 -> "[モモ]"
+ ["f09f8d8f", "ee9d85"], # [GREEN APPLE] U+1F34F -> U+E745
+ ["f09f9180", "ee9a91"], # [EYES] U+1F440 -> U+E691
+ ["f09f9182", "ee9a92"], # [EAR] U+1F442 -> U+E692
+ ["f09f9183", :undef], # [NOSE] U+1F443 -> "[é¼»]"
+ ["f09f9184", "ee9bb9"], # [MOUTH] U+1F444 -> U+E6F9
+ ["f09f9185", "ee9ca8"], # [TONGUE] U+1F445 -> U+E728
+ ["f09f9284", "ee9c90"], # [LIPSTICK] U+1F484 -> U+E710
+ ["f09f9285", :undef], # [NAIL POLISH] U+1F485 -> "[マニキュア]"
+ ["f09f9286", :undef], # [FACE MASSAGE] U+1F486 -> "[エステ]"
+ ["f09f9287", "ee99b5"], # [HAIRCUT] U+1F487 -> U+E675
+ ["f09f9288", :undef], # [BARBER POLE] U+1F488 -> "[床屋]"
+ ["f09f91a4", "ee9ab1"], # [BUST IN SILHOUETTE] U+1F464 -> U+E6B1
+ ["f09f91a6", "ee9bb0"], # [BOY] U+1F466 -> U+E6F0
+ ["f09f91a7", "ee9bb0"], # [GIRL] U+1F467 -> U+E6F0
+ ["f09f91a8", "ee9bb0"], # [MAN] U+1F468 -> U+E6F0
+ ["f09f91a9", "ee9bb0"], # [WOMAN] U+1F469 -> U+E6F0
+ ["f09f91aa", :undef], # [FAMILY] U+1F46A -> "[å®¶æ—]"
+ ["f09f91ab", :undef], # [MAN AND WOMAN HOLDING HANDS] U+1F46B -> "[カップル]"
+ ["f09f91ae", :undef], # [POLICE OFFICER] U+1F46E -> "[警官]"
+ ["f09f91af", :undef], # [WOMAN WITH BUNNY EARS] U+1F46F -> "[ãƒãƒ‹ãƒ¼]"
+ ["f09f91b0", :undef], # [BRIDE WITH VEIL] U+1F470 -> "[花å«]"
+ ["f09f91b1", :undef], # [WESTERN PERSON] U+1F471 -> "[白人]"
+ ["f09f91b2", :undef], # [MAN WITH GUA PI MAO] U+1F472 -> "[中国人]"
+ ["f09f91b3", :undef], # [MAN WITH TURBAN] U+1F473 -> "[インド人]"
+ ["f09f91b4", :undef], # [OLDER MAN] U+1F474 -> "[ãŠã˜ã„ã•ã‚“]"
+ ["f09f91b5", :undef], # [OLDER WOMAN] U+1F475 -> "[ãŠã°ã‚ã•ã‚“]"
+ ["f09f91b6", :undef], # [BABY] U+1F476 -> "[赤ã¡ã‚ƒã‚“]"
+ ["f09f91b7", :undef], # [CONSTRUCTION WORKER] U+1F477 -> "[工事ç¾å ´ã®äºº]"
+ ["f09f91b8", :undef], # [PRINCESS] U+1F478 -> "[ãŠå§«æ§˜]"
+ ["f09f91b9", :undef], # [JAPANESE OGRE] U+1F479 -> "[ãªã¾ã¯ã’]"
+ ["f09f91ba", :undef], # [JAPANESE GOBLIN] U+1F47A -> "[天狗]"
+ ["f09f91bb", :undef], # [GHOST] U+1F47B -> "[ãŠåŒ–ã‘]"
+ ["f09f91bc", :undef], # [BABY ANGEL] U+1F47C -> "[天使]"
+ ["f09f91bd", :undef], # [EXTRATERRESTRIAL ALIEN] U+1F47D -> "[UFO]"
+ ["f09f91be", :undef], # [ALIEN MONSTER] U+1F47E -> "[宇宙人]"
+ ["f09f91bf", :undef], # [IMP] U+1F47F -> "[アクマ]"
+ ["f09f9280", :undef], # [SKULL] U+1F480 -> "[ドクロ]"
+ ["f09f9281", :undef], # [INFORMATION DESK PERSON] U+1F481 -> "[案内]"
+ ["f09f9282", :undef], # [GUARDSMAN] U+1F482 -> "[衛兵]"
+ ["f09f9283", :undef], # [DANCER] U+1F483 -> "[ダンス]"
+ ["f09f908c", "ee9d8e"], # [SNAIL] U+1F40C -> U+E74E
+ ["f09f908d", :undef], # [SNAKE] U+1F40D -> "[ヘビ]"
+ ["f09f908e", "ee9d94"], # [HORSE] U+1F40E -> U+E754
+ ["f09f9094", :undef], # [CHICKEN] U+1F414 -> "[ニワトリ]"
+ ["f09f9097", :undef], # [BOAR] U+1F417 -> "[イノシシ]"
+ ["f09f90ab", :undef], # [BACTRIAN CAMEL] U+1F42B -> "[ラクダ]"
+ ["f09f9098", :undef], # [ELEPHANT] U+1F418 -> "[ゾウ]"
+ ["f09f90a8", :undef], # [KOALA] U+1F428 -> "[コアラ]"
+ ["f09f9092", :undef], # [MONKEY] U+1F412 -> "[サル]"
+ ["f09f9091", :undef], # [SHEEP] U+1F411 -> "[ヒツジ]"
+ ["f09f9099", :undef], # [OCTOPUS] U+1F419 -> "[タコ]"
+ ["f09f909a", :undef], # [SPIRAL SHELL] U+1F41A -> "[å·»è²]"
+ ["f09f909b", :undef], # [BUG] U+1F41B -> "[ゲジゲジ]"
+ ["f09f909c", :undef], # [ANT] U+1F41C -> "[アリ]"
+ ["f09f909d", :undef], # [HONEYBEE] U+1F41D -> "[ミツãƒãƒ]"
+ ["f09f909e", :undef], # [LADY BEETLE] U+1F41E -> "[ã¦ã‚“ã¨ã†è™«]"
+ ["f09f90a0", "ee9d91"], # [TROPICAL FISH] U+1F420 -> U+E751
+ ["f09f90a1", "ee9d91"], # [BLOWFISH] U+1F421 -> U+E751
+ ["f09f90a2", :undef], # [TURTLE] U+1F422 -> "[カメ]"
+ ["f09f90a4", "ee9d8f"], # [BABY CHICK] U+1F424 -> U+E74F
+ ["f09f90a5", "ee9d8f"], # [FRONT-FACING BABY CHICK] U+1F425 -> U+E74F
+ ["f09f90a6", "ee9d8f"], # [BIRD] U+1F426 -> U+E74F
+ ["f09f90a3", "ee9d8f"], # [HATCHING CHICK] U+1F423 -> U+E74F
+ ["f09f90a7", "ee9d90"], # [PENGUIN] U+1F427 -> U+E750
+ ["f09f90a9", "ee9aa1"], # [POODLE] U+1F429 -> U+E6A1
+ ["f09f909f", "ee9d91"], # [FISH] U+1F41F -> U+E751
+ ["f09f90ac", :undef], # [DOLPHIN] U+1F42C -> "[イルカ]"
+ ["f09f90ad", :undef], # [MOUSE FACE] U+1F42D -> "[ãƒã‚ºãƒŸ]"
+ ["f09f90af", :undef], # [TIGER FACE] U+1F42F -> "[トラ]"
+ ["f09f90b1", "ee9aa2"], # [CAT FACE] U+1F431 -> U+E6A2
+ ["f09f90b3", :undef], # [SPOUTING WHALE] U+1F433 -> "[クジラ]"
+ ["f09f90b4", "ee9d94"], # [HORSE FACE] U+1F434 -> U+E754
+ ["f09f90b5", :undef], # [MONKEY FACE] U+1F435 -> "[サル]"
+ ["f09f90b6", "ee9aa1"], # [DOG FACE] U+1F436 -> U+E6A1
+ ["f09f90b7", "ee9d95"], # [PIG FACE] U+1F437 -> U+E755
+ ["f09f90bb", :undef], # [BEAR FACE] U+1F43B -> "[クマ]"
+ ["f09f90b9", :undef], # [HAMSTER FACE] U+1F439 -> "[ãƒãƒ ã‚¹ã‚¿ãƒ¼]"
+ ["f09f90ba", "ee9aa1"], # [WOLF FACE] U+1F43A -> U+E6A1
+ ["f09f90ae", :undef], # [COW FACE] U+1F42E -> "[牛]"
+ ["f09f90b0", :undef], # [RABBIT FACE] U+1F430 -> "[ウサギ]"
+ ["f09f90b8", :undef], # [FROG FACE] U+1F438 -> "[カエル]"
+ ["f09f90be", "ee9a98"], # [PAW PRINTS] U+1F43E -> U+E698
+ ["f09f90b2", :undef], # [DRAGON FACE] U+1F432 -> "[è¾°]"
+ ["f09f90bc", :undef], # [PANDA FACE] U+1F43C -> "[パンダ]"
+ ["f09f90bd", "ee9d95"], # [PIG NOSE] U+1F43D -> U+E755
+ ["f09f9880", "ee9bb1"], # [ANGRY FACE] U+1F600 -> U+E6F1
+ ["f09f9881", "ee9bb3"], # [ANGUISHED FACE] U+1F601 -> U+E6F3
+ ["f09f9882", "ee9bb4"], # [ASTONISHED FACE] U+1F602 -> U+E6F4
+ ["f09f9883", "ee9bb2"], # [DISAPPOINTED FACE] U+1F603 -> U+E6F2
+ ["f09f9884", "ee9bb4"], # [DIZZY FACE] U+1F604 -> U+E6F4
+ ["f09f9885", "ee9ca3"], # [EXASPERATED FACE] U+1F605 -> U+E723
+ ["f09f9886", "ee9ca5"], # [EXPRESSIONLESS FACE] U+1F606 -> U+E725
+ ["f09f9887", "ee9ca6"], # [FACE WITH HEART-SHAPED EYES] U+1F607 -> U+E726
+ ["f09f9888", "ee9d93"], # [FACE WITH LOOK OF TRIUMPH] U+1F608 -> U+E753
+ ["f09f9889", "ee9ca8"], # [WINKING FACE WITH STUCK-OUT TONGUE] U+1F609 -> U+E728
+ ["f09f988a", "ee9ca8"], # [FACE WITH STUCK-OUT TONGUE] U+1F60A -> U+E728
+ ["f09f988b", "ee9d92"], # [FACE SAVOURING DELICIOUS FOOD] U+1F60B -> U+E752
+ ["f09f988c", "ee9ca6"], # [FACE THROWING A KISS] U+1F60C -> U+E726
+ ["f09f988d", "ee9ca6"], # [FACE KISSING] U+1F60D -> U+E726
+ ["f09f988e", :undef], # [FACE WITH MASK] U+1F60E -> "[風邪ã²ã]"
+ ["f09f988f", "ee9caa"], # [FLUSHED FACE] U+1F60F -> U+E72A
+ ["f09f9890", "ee9bb0"], # [HAPPY FACE WITH OPEN MOUTH] U+1F610 -> U+E6F0
+ ["f09f9891", "ee9ca2"], # [HAPPY FACE WITH OPEN MOUTH AND COLD SWEAT] U+1F611 -> U+E722
+ ["f09f9892", "ee9caa"], # [HAPPY FACE WITH OPEN MOUTH AND CLOSED EYES] U+1F612 -> U+E72A
+ ["f09f9893", "ee9d93"], # [HAPPY FACE WITH GRIN] U+1F613 -> U+E753
+ ["f09f9894", "ee9caa"], # [HAPPY AND CRYING FACE] U+1F614 -> U+E72A
+ ["f09f9895", "ee9bb0"], # [HAPPY FACE WITH WIDE MOUTH AND RAISED EYEBROWS] U+1F615 -> U+E6F0
+ ["e298ba", "ee9bb0"], # [WHITE SMILING FACE] U+263A -> U+E6F0
+ ["f09f9896", "ee9bb0"], # [HAPPY FACE WITH OPEN MOUTH AND RAISED EYEBROWS] U+1F616 -> U+E6F0
+ ["f09f9897", "ee9cae"], # [CRYING FACE] U+1F617 -> U+E72E
+ ["f09f9898", "ee9cad"], # [LOUDLY CRYING FACE] U+1F618 -> U+E72D
+ ["f09f9899", "ee9d97"], # [FEARFUL FACE] U+1F619 -> U+E757
+ ["f09f989a", "ee9cab"], # [PERSEVERING FACE] U+1F61A -> U+E72B
+ ["f09f989b", "ee9ca4"], # [POUTING FACE] U+1F61B -> U+E724
+ ["f09f989c", "ee9ca1"], # [RELIEVED FACE] U+1F61C -> U+E721
+ ["f09f989d", "ee9bb3"], # [CONFOUNDED FACE] U+1F61D -> U+E6F3
+ ["f09f989e", "ee9ca0"], # [PENSIVE FACE] U+1F61E -> U+E720
+ ["f09f989f", "ee9d97"], # [FACE SCREAMING IN FEAR] U+1F61F -> U+E757
+ ["f09f98a0", "ee9c81"], # [SLEEPY FACE] U+1F620 -> U+E701
+ ["f09f98a1", "ee9cac"], # [SMIRKING FACE] U+1F621 -> U+E72C
+ ["f09f98a2", "ee9ca3"], # [FACE WITH COLD SWEAT] U+1F622 -> U+E723
+ ["f09f98a3", "ee9ca3"], # [DISAPPOINTED BUT RELIEVED FACE] U+1F623 -> U+E723
+ ["f09f98a4", "ee9cab"], # [TIRED FACE] U+1F624 -> U+E72B
+ ["f09f98a5", "ee9ca9"], # [WINKING FACE] U+1F625 -> U+E729
+ ["f09f98ab", "ee9bb0"], # [CAT FACE WITH OPEN MOUTH] U+1F62B -> U+E6F0
+ ["f09f98ac", "ee9d93"], # [HAPPY CAT FACE WITH GRIN] U+1F62C -> U+E753
+ ["f09f98ad", "ee9caa"], # [HAPPY AND CRYING CAT FACE] U+1F62D -> U+E72A
+ ["f09f98ae", "ee9ca6"], # [CAT FACE KISSING] U+1F62E -> U+E726
+ ["f09f98af", "ee9ca6"], # [CAT FACE WITH HEART-SHAPED EYES] U+1F62F -> U+E726
+ ["f09f98b0", "ee9cae"], # [CRYING CAT FACE] U+1F630 -> U+E72E
+ ["f09f98b1", "ee9ca4"], # [POUTING CAT FACE] U+1F631 -> U+E724
+ ["f09f98b2", "ee9d93"], # [CAT FACE WITH TIGHTLY-CLOSED LIPS] U+1F632 -> U+E753
+ ["f09f98b3", "ee9bb3"], # [ANGUISHED CAT FACE] U+1F633 -> U+E6F3
+ ["f09f98b4", "ee9caf"], # [FACE WITH NO GOOD GESTURE] U+1F634 -> U+E72F
+ ["f09f98b5", "ee9c8b"], # [FACE WITH OK GESTURE] U+1F635 -> U+E70B
+ ["f09f98b6", :undef], # [PERSON BOWING DEEPLY] U+1F636 -> "m(_ _)m"
+ ["f09f98b7", :undef], # [SEE-NO-EVIL MONKEY] U+1F637 -> "(/_ï¼¼)"
+ ["f09f98b9", :undef], # [SPEAK-NO-EVIL MONKEY] U+1F639 -> "(・×・)"
+ ["f09f98b8", :undef], # [HEAR-NO-EVIL MONKEY] U+1F638 -> "|(・×・)|"
+ ["f09f98ba", :undef], # [PERSON RAISING ONE HAND] U+1F63A -> "(^-^)/"
+ ["f09f98bb", :undef], # [PERSON RAISING BOTH HANDS IN CELEBRATION] U+1F63B -> "ï¼¼(^o^)ï¼"
+ ["f09f98bc", "ee9bb3"], # [PERSON FROWNING] U+1F63C -> U+E6F3
+ ["f09f98bd", "ee9bb1"], # [PERSON WITH POUTING FACE] U+1F63D -> U+E6F1
+ ["f09f98be", :undef], # [PERSON WITH FOLDED HANDS] U+1F63E -> "(&gt;人&lt;)"
+ ["f09f8fa0", "ee99a3"], # [HOUSE BUILDING] U+1F3E0 -> U+E663
+ ["f09f8fa1", "ee99a3"], # [HOUSE WITH GARDEN] U+1F3E1 -> U+E663
+ ["f09f8fa2", "ee99a4"], # [OFFICE BUILDING] U+1F3E2 -> U+E664
+ ["f09f8fa3", "ee99a5"], # [JAPANESE POST OFFICE] U+1F3E3 -> U+E665
+ ["f09f8fa5", "ee99a6"], # [HOSPITAL] U+1F3E5 -> U+E666
+ ["f09f8fa6", "ee99a7"], # [BANK] U+1F3E6 -> U+E667
+ ["f09f8fa7", "ee99a8"], # [AUTOMATED TELLER MACHINE] U+1F3E7 -> U+E668
+ ["f09f8fa8", "ee99a9"], # [HOTEL] U+1F3E8 -> U+E669
+ ["f09f8fa9", "ee99a9ee9baf"], # [LOVE HOTEL] U+1F3E9 -> U+E669 U+E6EF
+ ["f09f8faa", "ee99aa"], # [CONVENIENCE STORE] U+1F3EA -> U+E66A
+ ["f09f8fab", "ee9cbe"], # [SCHOOL] U+1F3EB -> U+E73E
+ ["e29baa", :undef], # [CHURCH] U+26EA -> "[教会]"
+ ["e29bb2", :undef], # [FOUNTAIN] U+26F2 -> "[å™´æ°´]"
+ ["f09f8fac", :undef], # [DEPARTMENT STORE] U+1F3EC -> "[デパート]"
+ ["f09f8faf", :undef], # [JAPANESE CASTLE] U+1F3EF -> "[城]"
+ ["f09f8fb0", :undef], # [EUROPEAN CASTLE] U+1F3F0 -> "[城]"
+ ["f09f8fad", :undef], # [FACTORY] U+1F3ED -> "[工場]"
+ ["e29a93", "ee99a1"], # [ANCHOR] U+2693 -> U+E661
+ ["f09f8fae", "ee9d8b"], # [IZAKAYA LANTERN] U+1F3EE -> U+E74B
+ ["f09f97bb", "ee9d80"], # [MOUNT FUJI] U+1F5FB -> U+E740
+ ["f09f97bc", :undef], # [TOKYO TOWER] U+1F5FC -> "[æ±äº¬ã‚¿ãƒ¯ãƒ¼]"
+ ["f09f97bd", :undef], # [STATUE OF LIBERTY] U+1F5FD -> "[自由ã®å¥³ç¥ž]"
+ ["f09f97be", :undef], # [SILHOUETTE OF JAPAN] U+1F5FE -> "[日本地図]"
+ ["f09f97bf", :undef], # [MOYAI] U+1F5FF -> "[モアイ]"
+ ["f09f919e", "ee9a99"], # [MANS SHOE] U+1F45E -> U+E699
+ ["f09f919f", "ee9a99"], # [ATHLETIC SHOE] U+1F45F -> U+E699
+ ["f09f91a0", "ee99b4"], # [HIGH-HEELED SHOE] U+1F460 -> U+E674
+ ["f09f91a1", "ee99b4"], # [WOMANS SANDAL] U+1F461 -> U+E674
+ ["f09f91a2", :undef], # [WOMANS BOOTS] U+1F462 -> "[ブーツ]"
+ ["f09f91a3", "ee9a98"], # [FOOTPRINTS] U+1F463 -> U+E698
+ ["f09f9193", "ee9a9a"], # [EYEGLASSES] U+1F453 -> U+E69A
+ ["f09f9195", "ee9c8e"], # [T-SHIRT] U+1F455 -> U+E70E
+ ["f09f9196", "ee9c91"], # [JEANS] U+1F456 -> U+E711
+ ["f09f9191", "ee9c9a"], # [CROWN] U+1F451 -> U+E71A
+ ["f09f9194", :undef], # [NECKTIE] U+1F454 -> "[ãƒã‚¯ã‚¿ã‚¤]"
+ ["f09f9192", :undef], # [WOMANS HAT] U+1F452 -> "[帽å­]"
+ ["f09f9197", :undef], # [DRESS] U+1F457 -> "[ドレス]"
+ ["f09f9198", :undef], # [KIMONO] U+1F458 -> "[ç€ç‰©]"
+ ["f09f9199", :undef], # [BIKINI] U+1F459 -> "[ビキニ]"
+ ["f09f919a", "ee9c8e"], # [WOMANS CLOTHES] U+1F45A -> U+E70E
+ ["f09f919b", "ee9c8f"], # [PURSE] U+1F45B -> U+E70F
+ ["f09f919c", "ee9a82"], # [HANDBAG] U+1F45C -> U+E682
+ ["f09f919d", "ee9aad"], # [POUCH] U+1F45D -> U+E6AD
+ ["f09f92b0", "ee9c95"], # [MONEY BAG] U+1F4B0 -> U+E715
+ ["f09f92b1", :undef], # [CURRENCY EXCHANGE] U+1F4B1 -> "[$ï¿¥]"
+ ["f09f92b9", :undef], # [CHART WITH UPWARDS TREND AND YEN SIGN] U+1F4B9 -> "[株価]"
+ ["f09f92b2", "ee9c95"], # [HEAVY DOLLAR SIGN] U+1F4B2 -> U+E715
+ ["f09f92b3", :undef], # [CREDIT CARD] U+1F4B3 -> "[カード]"
+ ["f09f92b4", "ee9b96"], # [BANKNOTE WITH YEN SIGN] U+1F4B4 -> U+E6D6
+ ["f09f92b5", "ee9c95"], # [BANKNOTE WITH DOLLAR SIGN] U+1F4B5 -> U+E715
+ ["f09f92b8", :undef], # [MONEY WITH WINGS] U+1F4B8 -> "[飛んã§ã„ããŠé‡‘]"
+ ["f09f87a6", :undef], # [REGIONAL INDICATOR SYMBOL LETTER A] U+1F1E6 -> "[A]"
+ ["f09f87a7", :undef], # [REGIONAL INDICATOR SYMBOL LETTER B] U+1F1E7 -> "[B]"
+ ["f09f87a8", :undef], # [REGIONAL INDICATOR SYMBOL LETTER C] U+1F1E8 -> "[C]"
+ ["f09f87a9", :undef], # [REGIONAL INDICATOR SYMBOL LETTER D] U+1F1E9 -> "[D]"
+ ["f09f87aa", :undef], # [REGIONAL INDICATOR SYMBOL LETTER E] U+1F1EA -> "[E]"
+ ["f09f87ab", :undef], # [REGIONAL INDICATOR SYMBOL LETTER F] U+1F1EB -> "[F]"
+ ["f09f87ac", :undef], # [REGIONAL INDICATOR SYMBOL LETTER G] U+1F1EC -> "[G]"
+ ["f09f87ad", :undef], # [REGIONAL INDICATOR SYMBOL LETTER H] U+1F1ED -> "[H]"
+ ["f09f87ae", :undef], # [REGIONAL INDICATOR SYMBOL LETTER I] U+1F1EE -> "[I]"
+ ["f09f87af", :undef], # [REGIONAL INDICATOR SYMBOL LETTER J] U+1F1EF -> "[J]"
+ ["f09f87b0", :undef], # [REGIONAL INDICATOR SYMBOL LETTER K] U+1F1F0 -> "[K]"
+ ["f09f87b1", :undef], # [REGIONAL INDICATOR SYMBOL LETTER L] U+1F1F1 -> "[L]"
+ ["f09f87b2", :undef], # [REGIONAL INDICATOR SYMBOL LETTER M] U+1F1F2 -> "[M]"
+ ["f09f87b3", :undef], # [REGIONAL INDICATOR SYMBOL LETTER N] U+1F1F3 -> "[N]"
+ ["f09f87b4", :undef], # [REGIONAL INDICATOR SYMBOL LETTER O] U+1F1F4 -> "[O]"
+ ["f09f87b5", :undef], # [REGIONAL INDICATOR SYMBOL LETTER P] U+1F1F5 -> "[P]"
+ ["f09f87b6", :undef], # [REGIONAL INDICATOR SYMBOL LETTER Q] U+1F1F6 -> "[Q]"
+ ["f09f87b7", :undef], # [REGIONAL INDICATOR SYMBOL LETTER R] U+1F1F7 -> "[R]"
+ ["f09f87b8", :undef], # [REGIONAL INDICATOR SYMBOL LETTER S] U+1F1F8 -> "[S]"
+ ["f09f87b9", :undef], # [REGIONAL INDICATOR SYMBOL LETTER T] U+1F1F9 -> "[T]"
+ ["f09f87ba", :undef], # [REGIONAL INDICATOR SYMBOL LETTER U] U+1F1FA -> "[U]"
+ ["f09f87bb", :undef], # [REGIONAL INDICATOR SYMBOL LETTER V] U+1F1FB -> "[V]"
+ ["f09f87bc", :undef], # [REGIONAL INDICATOR SYMBOL LETTER W] U+1F1FC -> "[W]"
+ ["f09f87bd", :undef], # [REGIONAL INDICATOR SYMBOL LETTER X] U+1F1FD -> "[X]"
+ ["f09f87be", :undef], # [REGIONAL INDICATOR SYMBOL LETTER Y] U+1F1FE -> "[Y]"
+ ["f09f87bf", :undef], # [REGIONAL INDICATOR SYMBOL LETTER Z] U+1F1FF -> "[Z]"
+ ["f09f94a5", :undef], # [FIRE] U+1F525 -> "[炎]"
+ ["f09f94a6", "ee9bbb"], # [ELECTRIC TORCH] U+1F526 -> U+E6FB
+ ["f09f94a7", "ee9c98"], # [WRENCH] U+1F527 -> U+E718
+ ["f09f94a8", :undef], # [HAMMER] U+1F528 -> "[ãƒãƒ³ãƒžãƒ¼]"
+ ["f09f94a9", :undef], # [NUT AND BOLT] U+1F529 -> "[ãƒã‚¸]"
+ ["f09f94aa", :undef], # [HOCHO] U+1F52A -> "[包ä¸]"
+ ["f09f94ab", :undef], # [PISTOL] U+1F52B -> "[ピストル]"
+ ["f09f94ae", :undef], # [CRYSTAL BALL] U+1F52E -> "[å ã„]"
+ ["f09f94af", :undef], # [SIX POINTED STAR WITH MIDDLE DOT] U+1F52F -> "[å ã„]"
+ ["f09f94b0", :undef], # [JAPANESE SYMBOL FOR BEGINNER] U+1F530 -> "[若葉マーク]"
+ ["f09f94b1", "ee9c9a"], # [TRIDENT EMBLEM] U+1F531 -> U+E71A
+ ["f09f9289", :undef], # [SYRINGE] U+1F489 -> "[注射]"
+ ["f09f928a", :undef], # [PILL] U+1F48A -> "[è–¬]"
+ ["f09f85b0", :undef], # [NEGATIVE SQUARED LATIN CAPITAL LETTER A] U+1F170 -> "[A]"
+ ["f09f85b1", :undef], # [NEGATIVE SQUARED LATIN CAPITAL LETTER B] U+1F171 -> "[B]"
+ ["f09f868e", :undef], # [NEGATIVE SQUARED AB] U+1F18E -> "[AB]"
+ ["f09f85be", :undef], # [NEGATIVE SQUARED LATIN CAPITAL LETTER O] U+1F17E -> "[O]"
+ ["f09f8e80", "ee9a84"], # [RIBBON] U+1F380 -> U+E684
+ ["f09f8e81", "ee9a85"], # [WRAPPED PRESENT] U+1F381 -> U+E685
+ ["f09f8e82", "ee9a86"], # [BIRTHDAY CAKE] U+1F382 -> U+E686
+ ["f09f8e84", "ee9aa4"], # [CHRISTMAS TREE] U+1F384 -> U+E6A4
+ ["f09f8e85", :undef], # [FATHER CHRISTMAS] U+1F385 -> "[サンタ]"
+ ["f09f8e8c", :undef], # [CROSSED FLAGS] U+1F38C -> "[ç¥æ—¥]"
+ ["f09f8e86", :undef], # [FIREWORKS] U+1F386 -> "[花ç«]"
+ ["f09f8e88", :undef], # [BALLOON] U+1F388 -> "[風船]"
+ ["f09f8e89", :undef], # [PARTY POPPER] U+1F389 -> "[クラッカー]"
+ ["f09f8e8d", :undef], # [PINE DECORATION] U+1F38D -> "[é–€æ¾]"
+ ["f09f8e8e", :undef], # [JAPANESE DOLLS] U+1F38E -> "[ã²ãªç¥­ã‚Š]"
+ ["f09f8e93", :undef], # [GRADUATION CAP] U+1F393 -> "[å’æ¥­å¼]"
+ ["f09f8e92", :undef], # [SCHOOL SATCHEL] U+1F392 -> "[ランドセル]"
+ ["f09f8e8f", :undef], # [CARP STREAMER] U+1F38F -> "[ã“ã„ã®ã¼ã‚Š]"
+ ["f09f8e87", :undef], # [FIREWORK SPARKLER] U+1F387 -> "[線香花ç«]"
+ ["f09f8e90", :undef], # [WIND CHIME] U+1F390 -> "[風鈴]"
+ ["f09f8e83", :undef], # [JACK-O-LANTERN] U+1F383 -> "[ãƒãƒ­ã‚¦ã‚£ãƒ³]"
+ ["f09f8e8a", :undef], # [CONFETTI BALL] U+1F38A -> "[オメデトウ]"
+ ["f09f8e8b", :undef], # [TANABATA TREE] U+1F38B -> "[七夕]"
+ ["f09f8e91", :undef], # [MOON VIEWING CEREMONY] U+1F391 -> "[ãŠæœˆè¦‹]"
+ ["f09f939f", "ee999a"], # [PAGER] U+1F4DF -> U+E65A
+ ["e2988e", "ee9a87"], # [BLACK TELEPHONE] U+260E -> U+E687
+ ["f09f939e", "ee9a87"], # [TELEPHONE RECEIVER] U+1F4DE -> U+E687
+ ["f09f93b1", "ee9a88"], # [MOBILE PHONE] U+1F4F1 -> U+E688
+ ["f09f93b2", "ee9b8e"], # [MOBILE PHONE WITH RIGHTWARDS ARROW AT LEFT] U+1F4F2 -> U+E6CE
+ ["f09f939d", "ee9a89"], # [MEMO] U+1F4DD -> U+E689
+ ["f09f93a0", "ee9b90"], # [FAX MACHINE] U+1F4E0 -> U+E6D0
+ ["e29c89", "ee9b93"], # [ENVELOPE] U+2709 -> U+E6D3
+ ["f09f93a8", "ee9b8f"], # [INCOMING ENVELOPE] U+1F4E8 -> U+E6CF
+ ["f09f93a9", "ee9b8f"], # [ENVELOPE WITH DOWNWARDS ARROW ABOVE] U+1F4E9 -> U+E6CF
+ ["f09f93aa", "ee99a5"], # [CLOSED MAILBOX WITH LOWERED FLAG] U+1F4EA -> U+E665
+ ["f09f93ab", "ee99a5"], # [CLOSED MAILBOX WITH RAISED FLAG] U+1F4EB -> U+E665
+ ["f09f93ae", "ee99a5"], # [POSTBOX] U+1F4EE -> U+E665
+ ["f09f93b0", :undef], # [NEWSPAPER] U+1F4F0 -> "[æ–°èž]"
+ ["f09f93a2", :undef], # [PUBLIC ADDRESS LOUDSPEAKER] U+1F4E2 -> "[スピーカ]"
+ ["f09f93a3", :undef], # [CHEERING MEGAPHONE] U+1F4E3 -> "[メガホン]"
+ ["f09f93a1", :undef], # [SATELLITE ANTENNA] U+1F4E1 -> "[アンテナ]"
+ ["f09f93a4", :undef], # [OUTBOX TRAY] U+1F4E4 -> "[é€ä¿¡BOX]"
+ ["f09f93a5", :undef], # [INBOX TRAY] U+1F4E5 -> "[å—ä¿¡BOX]"
+ ["f09f93a6", "ee9a85"], # [PACKAGE] U+1F4E6 -> U+E685
+ ["f09f93a7", "ee9b93"], # [E-MAIL SYMBOL] U+1F4E7 -> U+E6D3
+ ["f09f94a0", :undef], # [INPUT SYMBOL FOR LATIN CAPITAL LETTERS] U+1F520 -> "[ABCD]"
+ ["f09f94a1", :undef], # [INPUT SYMBOL FOR LATIN SMALL LETTERS] U+1F521 -> "[abcd]"
+ ["f09f94a2", :undef], # [INPUT SYMBOL FOR NUMBERS] U+1F522 -> "[1234]"
+ ["f09f94a3", :undef], # [INPUT SYMBOL FOR SYMBOLS] U+1F523 -> "[記å·]"
+ ["f09f94a4", :undef], # [INPUT SYMBOL FOR LATIN LETTERS] U+1F524 -> "[ABC]"
+ ["e29c92", "ee9aae"], # [BLACK NIB] U+2712 -> U+E6AE
+ ["f09f92ba", "ee9ab2"], # [SEAT] U+1F4BA -> U+E6B2
+ ["f09f92bb", "ee9c96"], # [PERSONAL COMPUTER] U+1F4BB -> U+E716
+ ["e29c8f", "ee9c99"], # [PENCIL] U+270F -> U+E719
+ ["f09f938e", "ee9cb0"], # [PAPERCLIP] U+1F4CE -> U+E730
+ ["f09f92bc", "ee9a82"], # [BRIEFCASE] U+1F4BC -> U+E682
+ ["f09f92bd", :undef], # [MINIDISC] U+1F4BD -> "[MD]"
+ ["f09f92be", :undef], # [FLOPPY DISK] U+1F4BE -> "[フロッピー]"
+ ["f09f92bf", "ee9a8c"], # [OPTICAL DISC] U+1F4BF -> U+E68C
+ ["f09f9380", "ee9a8c"], # [DVD] U+1F4C0 -> U+E68C
+ ["e29c82", "ee99b5"], # [BLACK SCISSORS] U+2702 -> U+E675
+ ["f09f938d", :undef], # [ROUND PUSHPIN] U+1F4CD -> "[ç”»ã³ã‚‡ã†]"
+ ["f09f9383", "ee9a89"], # [PAGE WITH CURL] U+1F4C3 -> U+E689
+ ["f09f9384", "ee9a89"], # [PAGE FACING UP] U+1F4C4 -> U+E689
+ ["f09f9385", :undef], # [CALENDAR] U+1F4C5 -> "[カレンダー]"
+ ["f09f9381", :undef], # [FILE FOLDER] U+1F4C1 -> "[フォルダ]"
+ ["f09f9382", :undef], # [OPEN FILE FOLDER] U+1F4C2 -> "[フォルダ]"
+ ["f09f9393", "ee9a83"], # [NOTEBOOK] U+1F4D3 -> U+E683
+ ["f09f9396", "ee9a83"], # [OPEN BOOK] U+1F4D6 -> U+E683
+ ["f09f9394", "ee9a83"], # [NOTEBOOK WITH DECORATIVE COVER] U+1F4D4 -> U+E683
+ ["f09f9395", "ee9a83"], # [CLOSED BOOK] U+1F4D5 -> U+E683
+ ["f09f9397", "ee9a83"], # [GREEN BOOK] U+1F4D7 -> U+E683
+ ["f09f9398", "ee9a83"], # [BLUE BOOK] U+1F4D8 -> U+E683
+ ["f09f9399", "ee9a83"], # [ORANGE BOOK] U+1F4D9 -> U+E683
+ ["f09f939a", "ee9a83"], # [BOOKS] U+1F4DA -> U+E683
+ ["f09f939b", :undef], # [NAME BADGE] U+1F4DB -> "[åæœ­]"
+ ["f09f939c", "ee9c8a"], # [SCROLL] U+1F4DC -> U+E70A
+ ["f09f938b", "ee9a89"], # [CLIPBOARD] U+1F4CB -> U+E689
+ ["f09f9386", :undef], # [TEAR-OFF CALENDAR] U+1F4C6 -> "[カレンダー]"
+ ["f09f938a", :undef], # [BAR CHART] U+1F4CA -> "[グラフ]"
+ ["f09f9388", :undef], # [CHART WITH UPWARDS TREND] U+1F4C8 -> "[グラフ]"
+ ["f09f9389", :undef], # [CHART WITH DOWNWARDS TREND] U+1F4C9 -> "[グラフ]"
+ ["f09f9387", "ee9a83"], # [CARD INDEX] U+1F4C7 -> U+E683
+ ["f09f938c", :undef], # [PUSHPIN] U+1F4CC -> "[ç”»ã³ã‚‡ã†]"
+ ["f09f9392", "ee9a83"], # [LEDGER] U+1F4D2 -> U+E683
+ ["f09f938f", :undef], # [STRAIGHT RULER] U+1F4CF -> "[定è¦]"
+ ["f09f9390", :undef], # [TRIANGULAR RULER] U+1F4D0 -> "[三角定è¦]"
+ ["f09f9391", "ee9a89"], # [BOOKMARK TABS] U+1F4D1 -> U+E689
+ ["f09f8ebd", "ee9992"], # [RUNNING SHIRT WITH SASH] U+1F3BD -> U+E652
+ ["e29abe", "ee9993"], # [BASEBALL] U+26BE -> U+E653
+ ["e29bb3", "ee9994"], # [FLAG IN HOLE] U+26F3 -> U+E654
+ ["f09f8ebe", "ee9995"], # [TENNIS RACQUET AND BALL] U+1F3BE -> U+E655
+ ["e29abd", "ee9996"], # [SOCCER BALL] U+26BD -> U+E656
+ ["f09f8ebf", "ee9997"], # [SKI AND SKI BOOT] U+1F3BF -> U+E657
+ ["f09f8f80", "ee9998"], # [BASKETBALL AND HOOP] U+1F3C0 -> U+E658
+ ["f09f8f81", "ee9999"], # [CHEQUERED FLAG] U+1F3C1 -> U+E659
+ ["f09f8f82", "ee9c92"], # [SNOWBOARDER] U+1F3C2 -> U+E712
+ ["f09f8f83", "ee9cb3"], # [RUNNER] U+1F3C3 -> U+E733
+ ["f09f8f84", "ee9c92"], # [SURFER] U+1F3C4 -> U+E712
+ ["f09f8f86", :undef], # [TROPHY] U+1F3C6 -> "[トロフィー]"
+ ["f09f8f88", :undef], # [AMERICAN FOOTBALL] U+1F3C8 -> "[フットボール]"
+ ["f09f8f8a", :undef], # [SWIMMER] U+1F3CA -> "[æ°´æ³³]"
+ ["f09f9a86", "ee999b"], # [TRAIN] U+1F686 -> U+E65B
+ ["f09f9a87", "ee999c"], # [METRO] U+1F687 -> U+E65C
+ ["e29382", "ee999c"], # [CIRCLED LATIN CAPITAL LETTER M] U+24C2 -> U+E65C
+ ["f09f9a84", "ee999d"], # [HIGH-SPEED TRAIN] U+1F684 -> U+E65D
+ ["f09f9a85", "ee999d"], # [HIGH-SPEED TRAIN WITH BULLET NOSE] U+1F685 -> U+E65D
+ ["f09f9a97", "ee999e"], # [AUTOMOBILE] U+1F697 -> U+E65E
+ ["f09f9a99", "ee999f"], # [RECREATIONAL VEHICLE] U+1F699 -> U+E65F
+ ["f09f9a8d", "ee99a0"], # [ONCOMING BUS] U+1F68D -> U+E660
+ ["f09f9a8f", :undef], # [BUS STOP] U+1F68F -> "[ãƒã‚¹åœ]"
+ ["f09f9aa2", "ee99a1"], # [SHIP] U+1F6A2 -> U+E661
+ ["e29c88", "ee99a2"], # [AIRPLANE] U+2708 -> U+E662
+ ["e29bb5", "ee9aa3"], # [SAILBOAT] U+26F5 -> U+E6A3
+ ["f09f9a89", :undef], # [STATION] U+1F689 -> "[é§…]"
+ ["f09f9a80", :undef], # [ROCKET] U+1F680 -> "[ロケット]"
+ ["f09f9aa4", "ee9aa3"], # [SPEEDBOAT] U+1F6A4 -> U+E6A3
+ ["f09f9a95", "ee999e"], # [TAXI] U+1F695 -> U+E65E
+ ["f09f9a9a", :undef], # [DELIVERY TRUCK] U+1F69A -> "[トラック]"
+ ["f09f9a92", :undef], # [FIRE ENGINE] U+1F692 -> "[消防車]"
+ ["f09f9a91", :undef], # [AMBULANCE] U+1F691 -> "[救急車]"
+ ["f09f9a93", :undef], # [POLICE CAR] U+1F693 -> "[パトカー]"
+ ["e29bbd", "ee99ab"], # [FUEL PUMP] U+26FD -> U+E66B
+ ["f09f85bf", "ee99ac"], # [NEGATIVE SQUARED LATIN CAPITAL LETTER P] U+1F17F -> U+E66C
+ ["f09f9aa5", "ee99ad"], # [HORIZONTAL TRAFFIC LIGHT] U+1F6A5 -> U+E66D
+ ["f09f9aa7", :undef], # [CONSTRUCTION SIGN] U+1F6A7 -> "[工事中]"
+ ["f09f9aa8", :undef], # [POLICE CARS REVOLVING LIGHT] U+1F6A8 -> "[パトカー]"
+ ["e299a8", "ee9bb7"], # [HOT SPRINGS] U+2668 -> U+E6F7
+ ["e29bba", :undef], # [TENT] U+26FA -> "[キャンプ]"
+ ["f09f8ea0", "ee99b9"], # [CAROUSEL HORSE] U+1F3A0 -> U+E679
+ ["f09f8ea1", :undef], # [FERRIS WHEEL] U+1F3A1 -> "[観覧車]"
+ ["f09f8ea2", :undef], # [ROLLER COASTER] U+1F3A2 -> "[ジェットコースター]"
+ ["f09f8ea3", "ee9d91"], # [FISHING POLE AND FISH] U+1F3A3 -> U+E751
+ ["f09f8ea4", "ee99b6"], # [MICROPHONE] U+1F3A4 -> U+E676
+ ["f09f8ea5", "ee99b7"], # [MOVIE CAMERA] U+1F3A5 -> U+E677
+ ["f09f8ea6", "ee99b7"], # [CINEMA] U+1F3A6 -> U+E677
+ ["f09f8ea7", "ee99ba"], # [HEADPHONE] U+1F3A7 -> U+E67A
+ ["f09f8ea8", "ee99bb"], # [ARTIST PALETTE] U+1F3A8 -> U+E67B
+ ["f09f8ea9", "ee99bc"], # [TOP HAT] U+1F3A9 -> U+E67C
+ ["f09f8eaa", "ee99bd"], # [CIRCUS TENT] U+1F3AA -> U+E67D
+ ["f09f8eab", "ee99be"], # [TICKET] U+1F3AB -> U+E67E
+ ["f09f8eac", "ee9aac"], # [CLAPPER BOARD] U+1F3AC -> U+E6AC
+ ["f09f8ead", :undef], # [PERFORMING ARTS] U+1F3AD -> "[演劇]"
+ ["f09f8eae", "ee9a8b"], # [VIDEO GAME] U+1F3AE -> U+E68B
+ ["f09f8084", :undef], # [MAHJONG TILE RED DRAGON] U+1F004 -> "[麻雀]"
+ ["f09f8eaf", :undef], # [DIRECT HIT] U+1F3AF -> "[的中]"
+ ["f09f8eb0", :undef], # [SLOT MACHINE] U+1F3B0 -> "[777]"
+ ["f09f8eb1", :undef], # [BILLIARDS] U+1F3B1 -> "[ビリヤード]"
+ ["f09f8eb2", :undef], # [GAME DIE] U+1F3B2 -> "[サイコロ]"
+ ["f09f8eb3", :undef], # [BOWLING] U+1F3B3 -> "[ボーリング]"
+ ["f09f8eb4", :undef], # [FLOWER PLAYING CARDS] U+1F3B4 -> "[花札]"
+ ["f09f838f", :undef], # [PLAYING CARD BLACK JOKER] U+1F0CF -> "[ジョーカー]"
+ ["f09f8eb5", "ee9bb6"], # [MUSICAL NOTE] U+1F3B5 -> U+E6F6
+ ["f09f8eb6", "ee9bbf"], # [MULTIPLE MUSICAL NOTES] U+1F3B6 -> U+E6FF
+ ["f09f8eb7", :undef], # [SAXOPHONE] U+1F3B7 -> "[サックス]"
+ ["f09f8eb8", :undef], # [GUITAR] U+1F3B8 -> "[ギター]"
+ ["f09f8eb9", :undef], # [MUSICAL KEYBOARD] U+1F3B9 -> "[ピアノ]"
+ ["f09f8eba", :undef], # [TRUMPET] U+1F3BA -> "[トランペット]"
+ ["f09f8ebb", :undef], # [VIOLIN] U+1F3BB -> "[ãƒã‚¤ã‚ªãƒªãƒ³]"
+ ["f09f8ebc", "ee9bbf"], # [MUSICAL SCORE] U+1F3BC -> U+E6FF
+ ["e380bd", :undef], # [PART ALTERNATION MARK] U+303D -> "[歌記å·]"
+ ["f09f93b7", "ee9a81"], # [CAMERA] U+1F4F7 -> U+E681
+ ["f09f93b9", "ee99b7"], # [VIDEO CAMERA] U+1F4F9 -> U+E677
+ ["f09f93ba", "ee9a8a"], # [TELEVISION] U+1F4FA -> U+E68A
+ ["f09f93bb", :undef], # [RADIO] U+1F4FB -> "[ラジオ]"
+ ["f09f93bc", :undef], # [VIDEOCASSETTE] U+1F4FC -> "[ビデオ]"
+ ["f09f928b", "ee9bb9"], # [KISS MARK] U+1F48B -> U+E6F9
+ ["f09f928c", "ee9c97"], # [LOVE LETTER] U+1F48C -> U+E717
+ ["f09f928d", "ee9c9b"], # [RING] U+1F48D -> U+E71B
+ ["f09f928e", "ee9c9b"], # [GEM STONE] U+1F48E -> U+E71B
+ ["f09f928f", "ee9bb9"], # [KISS] U+1F48F -> U+E6F9
+ ["f09f9290", :undef], # [BOUQUET] U+1F490 -> "[花æŸ]"
+ ["f09f9291", "ee9bad"], # [COUPLE WITH HEART] U+1F491 -> U+E6ED
+ ["f09f9292", :undef], # [WEDDING] U+1F492 -> "[çµå©šå¼]"
+ ["f09f949e", :undef], # [NO ONE UNDER EIGHTEEN SYMBOL] U+1F51E -> "[18ç¦]"
+ ["c2a9", "ee9cb1"], # [COPYRIGHT SIGN] U+A9 -> U+E731
+ ["c2ae", "ee9cb6"], # [REGISTERED SIGN] U+AE -> U+E736
+ ["e284a2", "ee9cb2"], # [TRADE MARK SIGN] U+2122 -> U+E732
+ ["e284b9", :undef], # [INFORMATION SOURCE] U+2139 -> "[i]"
+ ["f09f949f", :undef], # [KEYCAP TEN] U+1F51F -> "[10]"
+ ["f09f93b6", :undef], # [ANTENNA WITH BARS] U+1F4F6 -> "[ãƒãƒª3]"
+ ["f09f93b3", :undef], # [VIBRATION MODE] U+1F4F3 -> "[マナーモード]"
+ ["f09f93b4", :undef], # [MOBILE PHONE OFF] U+1F4F4 -> "[ケータイOFF]"
+ ["f09f8d94", "ee99b3"], # [HAMBURGER] U+1F354 -> U+E673
+ ["f09f8d99", "ee9d89"], # [RICE BALL] U+1F359 -> U+E749
+ ["f09f8db0", "ee9d8a"], # [SHORTCAKE] U+1F370 -> U+E74A
+ ["f09f8d9c", "ee9d8c"], # [STEAMING BOWL] U+1F35C -> U+E74C
+ ["f09f8d9e", "ee9d8d"], # [BREAD] U+1F35E -> U+E74D
+ ["f09f8db3", :undef], # [COOKING] U+1F373 -> "[フライパン]"
+ ["f09f8da6", :undef], # [SOFT ICE CREAM] U+1F366 -> "[ソフトクリーム]"
+ ["f09f8d9f", :undef], # [FRENCH FRIES] U+1F35F -> "[ãƒãƒ†ãƒˆ]"
+ ["f09f8da1", :undef], # [DANGO] U+1F361 -> "[ã ã‚“ã”]"
+ ["f09f8d98", :undef], # [RICE CRACKER] U+1F358 -> "[ã›ã‚“ã¹ã„]"
+ ["f09f8d9a", "ee9d8c"], # [COOKED RICE] U+1F35A -> U+E74C
+ ["f09f8d9d", :undef], # [SPAGHETTI] U+1F35D -> "[パスタ]"
+ ["f09f8d9b", :undef], # [CURRY AND RICE] U+1F35B -> "[カレー]"
+ ["f09f8da2", :undef], # [ODEN] U+1F362 -> "[ãŠã§ã‚“]"
+ ["f09f8da3", :undef], # [SUSHI] U+1F363 -> "[ã™ã—]"
+ ["f09f8db1", :undef], # [BENTO BOX] U+1F371 -> "[å¼å½“]"
+ ["f09f8db2", :undef], # [POT OF FOOD] U+1F372 -> "[é‹]"
+ ["f09f8da7", :undef], # [SHAVED ICE] U+1F367 -> "[ã‚«ã‚­æ°·]"
+ ["f09f8d96", :undef], # [MEAT ON BONE] U+1F356 -> "[肉]"
+ ["f09f8da5", "ee9983"], # [FISH CAKE WITH SWIRL DESIGN] U+1F365 -> U+E643
+ ["f09f8da0", :undef], # [ROASTED SWEET POTATO] U+1F360 -> "[ã‚„ãã„ã‚‚]"
+ ["f09f8d95", :undef], # [SLICE OF PIZZA] U+1F355 -> "[ピザ]"
+ ["f09f8d97", :undef], # [POULTRY LEG] U+1F357 -> "[ãƒã‚­ãƒ³]"
+ ["f09f8da8", :undef], # [ICE CREAM] U+1F368 -> "[アイスクリーム]"
+ ["f09f8da9", :undef], # [DOUGHNUT] U+1F369 -> "[ドーナツ]"
+ ["f09f8daa", :undef], # [COOKIE] U+1F36A -> "[クッキー]"
+ ["f09f8dab", :undef], # [CHOCOLATE BAR] U+1F36B -> "[ãƒãƒ§ã‚³]"
+ ["f09f8dac", :undef], # [CANDY] U+1F36C -> "[キャンディ]"
+ ["f09f8dad", :undef], # [LOLLIPOP] U+1F36D -> "[キャンディ]"
+ ["f09f8dae", :undef], # [CUSTARD] U+1F36E -> "[プリン]"
+ ["f09f8daf", :undef], # [HONEY POT] U+1F36F -> "[ãƒãƒãƒŸãƒ„]"
+ ["f09f8da4", :undef], # [FRIED SHRIMP] U+1F364 -> "[エビフライ]"
+ ["f09f8db4", "ee99af"], # [FORK AND KNIFE] U+1F374 -> U+E66F
+ ["e29895", "ee99b0"], # [HOT BEVERAGE] U+2615 -> U+E670
+ ["f09f8db8", "ee99b1"], # [COCKTAIL GLASS] U+1F378 -> U+E671
+ ["f09f8dba", "ee99b2"], # [BEER MUG] U+1F37A -> U+E672
+ ["f09f8db5", "ee9c9e"], # [TEACUP WITHOUT HANDLE] U+1F375 -> U+E71E
+ ["f09f8db6", "ee9d8b"], # [SAKE BOTTLE AND CUP] U+1F376 -> U+E74B
+ ["f09f8db7", "ee9d96"], # [WINE GLASS] U+1F377 -> U+E756
+ ["f09f8dbb", "ee99b2"], # [CLINKING BEER MUGS] U+1F37B -> U+E672
+ ["f09f8db9", "ee99b1"], # [TROPICAL DRINK] U+1F379 -> U+E671
+ ["e28697", "ee99b8"], # [NORTH EAST ARROW] U+2197 -> U+E678
+ ["e28698", "ee9a96"], # [SOUTH EAST ARROW] U+2198 -> U+E696
+ ["e28696", "ee9a97"], # [NORTH WEST ARROW] U+2196 -> U+E697
+ ["e28699", "ee9aa5"], # [SOUTH WEST ARROW] U+2199 -> U+E6A5
+ ["e2a4b4", "ee9bb5"], # [ARROW POINTING RIGHTWARDS THEN CURVING UPWARDS] U+2934 -> U+E6F5
+ ["e2a4b5", "ee9c80"], # [ARROW POINTING RIGHTWARDS THEN CURVING DOWNWARDS] U+2935 -> U+E700
+ ["e28694", "ee9cbc"], # [LEFT RIGHT ARROW] U+2194 -> U+E73C
+ ["e28695", "ee9cbd"], # [UP DOWN ARROW] U+2195 -> U+E73D
+ ["e2ac86", :undef], # [UPWARDS BLACK ARROW] U+2B06 -> "[↑]"
+ ["e2ac87", :undef], # [DOWNWARDS BLACK ARROW] U+2B07 -> "[↓]"
+ ["e29ea1", :undef], # [BLACK RIGHTWARDS ARROW] U+27A1 -> "[→]"
+ ["e2ac85", :undef], # [LEFTWARDS BLACK ARROW] U+2B05 -> "[â†]"
+ ["e296b6", :undef], # [BLACK RIGHT-POINTING TRIANGLE] U+25B6 -> "[&gt;]"
+ ["e29780", :undef], # [BLACK LEFT-POINTING TRIANGLE] U+25C0 -> "[&lt;]"
+ ["e28fa9", :undef], # [BLACK RIGHT-POINTING DOUBLE TRIANGLE] U+23E9 -> "[&gt;&gt;]"
+ ["e28faa", :undef], # [BLACK LEFT-POINTING DOUBLE TRIANGLE] U+23EA -> "[&lt;&lt;]"
+ ["e28fab", :undef], # [BLACK UP-POINTING DOUBLE TRIANGLE] U+23EB -> "â–²"
+ ["e28fac", :undef], # [BLACK DOWN-POINTING DOUBLE TRIANGLE] U+23EC -> "â–¼"
+ ["f09f94ba", :undef], # [UP-POINTING RED TRIANGLE] U+1F53A -> "â–²"
+ ["f09f94bb", :undef], # [DOWN-POINTING RED TRIANGLE] U+1F53B -> "â–¼"
+ ["f09f94bc", :undef], # [UP-POINTING SMALL RED TRIANGLE] U+1F53C -> "â–²"
+ ["f09f94bd", :undef], # [DOWN-POINTING SMALL RED TRIANGLE] U+1F53D -> "â–¼"
+ ["e2ad95", "ee9aa0"], # [HEAVY LARGE CIRCLE] U+2B55 -> U+E6A0
+ ["e29d8c", :undef], # [CROSS MARK] U+274C -> "[×]"
+ ["e29d8e", :undef], # [NEGATIVE SQUARED CROSS MARK] U+274E -> "[×]"
+ ["e29da2", "ee9c82"], # [HEAVY EXCLAMATION MARK ORNAMENT] U+2762 -> U+E702
+ ["e28189", "ee9c83"], # [EXCLAMATION QUESTION MARK] U+2049 -> U+E703
+ ["e280bc", "ee9c84"], # [DOUBLE EXCLAMATION MARK] U+203C -> U+E704
+ ["e29d93", :undef], # [BLACK QUESTION MARK ORNAMENT] U+2753 -> "[?]"
+ ["e29d94", :undef], # [WHITE QUESTION MARK ORNAMENT] U+2754 -> "[?]"
+ ["e29d95", "ee9c82"], # [WHITE EXCLAMATION MARK ORNAMENT] U+2755 -> U+E702
+ ["e380b0", "ee9c89"], # [WAVY DASH] U+3030 -> U+E709
+ ["e29eb0", "ee9c8a"], # [CURLY LOOP] U+27B0 -> U+E70A
+ ["e29ebf", "ee9b9f"], # [DOUBLE CURLY LOOP] U+27BF -> U+E6DF
+ ["e29da4", "ee9bac"], # [HEAVY BLACK HEART] U+2764 -> U+E6EC
+ ["f09f9293", "ee9bad"], # [BEATING HEART] U+1F493 -> U+E6ED
+ ["f09f9294", "ee9bae"], # [BROKEN HEART] U+1F494 -> U+E6EE
+ ["f09f9295", "ee9baf"], # [TWO HEARTS] U+1F495 -> U+E6EF
+ ["f09f9296", "ee9bac"], # [SPARKLING HEART] U+1F496 -> U+E6EC
+ ["f09f9297", "ee9bad"], # [GROWING HEART] U+1F497 -> U+E6ED
+ ["f09f9298", "ee9bac"], # [HEART WITH ARROW] U+1F498 -> U+E6EC
+ ["f09f9299", "ee9bac"], # [BLUE HEART] U+1F499 -> U+E6EC
+ ["f09f929a", "ee9bac"], # [GREEN HEART] U+1F49A -> U+E6EC
+ ["f09f929b", "ee9bac"], # [YELLOW HEART] U+1F49B -> U+E6EC
+ ["f09f929c", "ee9bac"], # [PURPLE HEART] U+1F49C -> U+E6EC
+ ["f09f929d", "ee9bac"], # [HEART WITH RIBBON] U+1F49D -> U+E6EC
+ ["f09f929e", "ee9bad"], # [REVOLVING HEARTS] U+1F49E -> U+E6ED
+ ["f09f929f", "ee9bb8"], # [HEART DECORATION] U+1F49F -> U+E6F8
+ ["e299a5", "ee9a8d"], # [BLACK HEART SUIT] U+2665 -> U+E68D
+ ["e299a0", "ee9a8e"], # [BLACK SPADE SUIT] U+2660 -> U+E68E
+ ["e299a6", "ee9a8f"], # [BLACK DIAMOND SUIT] U+2666 -> U+E68F
+ ["e299a3", "ee9a90"], # [BLACK CLUB SUIT] U+2663 -> U+E690
+ ["f09f9aac", "ee99bf"], # [SMOKING SYMBOL] U+1F6AC -> U+E67F
+ ["f09f9aad", "ee9a80"], # [NO SMOKING SYMBOL] U+1F6AD -> U+E680
+ ["e299bf", "ee9a9b"], # [WHEELCHAIR SYMBOL] U+267F -> U+E69B
+ ["f09f9aa9", "ee9b9e"], # [TRIANGULAR FLAG ON POST] U+1F6A9 -> U+E6DE
+ ["e29aa0", "ee9cb7"], # [WARNING SIGN] U+26A0 -> U+E737
+ ["e29b94", "ee9caf"], # [NO ENTRY] U+26D4 -> U+E72F
+ ["e299bb", "ee9cb5"], # [BLACK UNIVERSAL RECYCLING SYMBOL] U+267B -> U+E735
+ ["f09f9ab2", "ee9c9d"], # [BICYCLE] U+1F6B2 -> U+E71D
+ ["f09f9ab6", "ee9cb3"], # [PEDESTRIAN] U+1F6B6 -> U+E733
+ ["f09f9ab9", :undef], # [MENS SYMBOL] U+1F6B9 -> "[♂]"
+ ["f09f9aba", :undef], # [WOMENS SYMBOL] U+1F6BA -> "[♀]"
+ ["f09f9b80", "ee9bb7"], # [BATH] U+1F6C0 -> U+E6F7
+ ["f09f9abb", "ee99ae"], # [RESTROOM] U+1F6BB -> U+E66E
+ ["f09f9abd", "ee99ae"], # [TOILET] U+1F6BD -> U+E66E
+ ["f09f9abe", "ee99ae"], # [WATER CLOSET] U+1F6BE -> U+E66E
+ ["f09f9abc", :undef], # [BABY SYMBOL] U+1F6BC -> "[赤ã¡ã‚ƒã‚“]"
+ ["f09f9aaa", "ee9c94"], # [DOOR] U+1F6AA -> U+E714
+ ["f09f9aab", "ee9cb8"], # [NO ENTRY SIGN] U+1F6AB -> U+E738
+ ["e29c94", :undef], # [HEAVY CHECK MARK] U+2714 -> "[ãƒã‚§ãƒƒã‚¯ãƒžãƒ¼ã‚¯]"
+ ["f09f8691", "ee9b9b"], # [SQUARED CL] U+1F191 -> U+E6DB
+ ["f09f8692", :undef], # [SQUARED COOL] U+1F192 -> "[COOL]"
+ ["f09f8693", "ee9b97"], # [SQUARED FREE] U+1F193 -> U+E6D7
+ ["f09f8694", "ee9b98"], # [SQUARED ID] U+1F194 -> U+E6D8
+ ["f09f8695", "ee9b9d"], # [SQUARED NEW] U+1F195 -> U+E6DD
+ ["f09f8696", "ee9caf"], # [SQUARED NG] U+1F196 -> U+E72F
+ ["f09f8697", "ee9c8b"], # [SQUARED OK] U+1F197 -> U+E70B
+ ["f09f8698", :undef], # [SQUARED SOS] U+1F198 -> "[SOS]"
+ ["f09f8699", :undef], # [SQUARED UP WITH EXCLAMATION MARK] U+1F199 -> "[UP!]"
+ ["f09f869a", :undef], # [SQUARED VS] U+1F19A -> "[VS]"
+ ["f09f8881", :undef], # [SQUARED KATAKANA KOKO] U+1F201 -> "[ココ]"
+ ["f09f8882", :undef], # [SQUARED KATAKANA SA] U+1F202 -> "[サービス]"
+ ["f09f88b2", "ee9cb8"], # [SQUARED CJK UNIFIED IDEOGRAPH-7981] U+1F232 -> U+E738
+ ["f09f88b3", "ee9cb9"], # [SQUARED CJK UNIFIED IDEOGRAPH-7A7A] U+1F233 -> U+E739
+ ["f09f88b4", "ee9cba"], # [SQUARED CJK UNIFIED IDEOGRAPH-5408] U+1F234 -> U+E73A
+ ["f09f88b5", "ee9cbb"], # [SQUARED CJK UNIFIED IDEOGRAPH-6E80] U+1F235 -> U+E73B
+ ["f09f88b6", :undef], # [SQUARED CJK UNIFIED IDEOGRAPH-6709] U+1F236 -> "[有]"
+ ["f09f889a", :undef], # [SQUARED CJK UNIFIED IDEOGRAPH-7121] U+1F21A -> "[ç„¡]"
+ ["f09f88b7", :undef], # [SQUARED CJK UNIFIED IDEOGRAPH-6708] U+1F237 -> "[月]"
+ ["f09f88b8", :undef], # [SQUARED CJK UNIFIED IDEOGRAPH-7533] U+1F238 -> "[申]"
+ ["f09f88b9", :undef], # [SQUARED CJK UNIFIED IDEOGRAPH-5272] U+1F239 -> "[割]"
+ ["f09f88af", :undef], # [SQUARED CJK UNIFIED IDEOGRAPH-6307] U+1F22F -> "[指]"
+ ["f09f88ba", :undef], # [SQUARED CJK UNIFIED IDEOGRAPH-55B6] U+1F23A -> "[å–¶]"
+ ["e38a99", "ee9cb4"], # [CIRCLED IDEOGRAPH SECRET] U+3299 -> U+E734
+ ["e38a97", :undef], # [CIRCLED IDEOGRAPH CONGRATULATION] U+3297 -> "[ç¥]"
+ ["f09f8990", :undef], # [CIRCLED IDEOGRAPH ADVANTAGE] U+1F250 -> "[å¾—]"
+ ["f09f8991", :undef], # [CIRCLED IDEOGRAPH ACCEPT] U+1F251 -> "[å¯]"
+ ["e29e95", :undef], # [HEAVY PLUS SIGN] U+2795 -> "[+]"
+ ["e29e96", :undef], # [HEAVY MINUS SIGN] U+2796 -> "[ï¼]"
+ ["e29c96", :undef], # [HEAVY MULTIPLICATION X] U+2716 -> "[×]"
+ ["e29e97", :undef], # [HEAVY DIVISION SIGN] U+2797 -> "[÷]"
+ ["f09f92a0", "ee9bb8"], # [DIAMOND SHAPE WITH A DOT INSIDE] U+1F4A0 -> U+E6F8
+ ["f09f92a1", "ee9bbb"], # [ELECTRIC LIGHT BULB] U+1F4A1 -> U+E6FB
+ ["f09f92a2", "ee9bbc"], # [ANGER SYMBOL] U+1F4A2 -> U+E6FC
+ ["f09f92a3", "ee9bbe"], # [BOMB] U+1F4A3 -> U+E6FE
+ ["f09f92a4", "ee9c81"], # [SLEEPING SYMBOL] U+1F4A4 -> U+E701
+ ["f09f92a5", "ee9c85"], # [COLLISION SYMBOL] U+1F4A5 -> U+E705
+ ["f09f92a6", "ee9c86"], # [SPLASHING SWEAT SYMBOL] U+1F4A6 -> U+E706
+ ["f09f92a7", "ee9c87"], # [DROP OF WATER] U+1F4A7 -> U+E707
+ ["f09f92a8", "ee9c88"], # [DASH SYMBOL] U+1F4A8 -> U+E708
+ ["f09f92a9", :undef], # [PILE OF POO] U+1F4A9 -> "[ウンãƒ]"
+ ["f09f92aa", :undef], # [FLEXED BICEPS] U+1F4AA -> "[力ã“ã¶]"
+ ["f09f92ab", :undef], # [DIZZY SYMBOL] U+1F4AB -> "[クラクラ]"
+ ["f09f92ac", :undef], # [SPEECH BALLOON] U+1F4AC -> "[フキダシ]"
+ ["e29ca8", "ee9bba"], # [SPARKLES] U+2728 -> U+E6FA
+ ["e29cb4", "ee9bb8"], # [EIGHT POINTED BLACK STAR] U+2734 -> U+E6F8
+ ["e29cb3", "ee9bb8"], # [EIGHT SPOKED ASTERISK] U+2733 -> U+E6F8
+ ["e29aaa", "ee9a9c"], # [MEDIUM WHITE CIRCLE] U+26AA -> U+E69C
+ ["e29aab", "ee9a9c"], # [MEDIUM BLACK CIRCLE] U+26AB -> U+E69C
+ ["f09f94b4", "ee9a9c"], # [LARGE RED CIRCLE] U+1F534 -> U+E69C
+ ["f09f94b5", "ee9a9c"], # [LARGE BLUE CIRCLE] U+1F535 -> U+E69C
+ ["f09f94b2", "ee9a9c"], # [BLACK SQUARE BUTTON] U+1F532 -> U+E69C
+ ["f09f94b3", "ee9a9c"], # [WHITE SQUARE BUTTON] U+1F533 -> U+E69C
+ ["e2ad90", :undef], # [WHITE MEDIUM STAR] U+2B50 -> "[☆]"
+ ["e2ac9c", :undef], # [WHITE LARGE SQUARE] U+2B1C -> "â– "
+ ["e2ac9b", :undef], # [BLACK LARGE SQUARE] U+2B1B -> "â– "
+ ["e296ab", :undef], # [WHITE SMALL SQUARE] U+25AB -> "â– "
+ ["e296aa", :undef], # [BLACK SMALL SQUARE] U+25AA -> "â– "
+ ["e297bd", :undef], # [WHITE MEDIUM SMALL SQUARE] U+25FD -> "â– "
+ ["e297be", :undef], # [BLACK MEDIUM SMALL SQUARE] U+25FE -> "â– "
+ ["e297bb", :undef], # [WHITE MEDIUM SQUARE] U+25FB -> "â– "
+ ["e297bc", :undef], # [BLACK MEDIUM SQUARE] U+25FC -> "â– "
+ ["f09f94b6", :undef], # [LARGE ORANGE DIAMOND] U+1F536 -> "â—†"
+ ["f09f94b7", :undef], # [LARGE BLUE DIAMOND] U+1F537 -> "â—†"
+ ["f09f94b8", :undef], # [SMALL ORANGE DIAMOND] U+1F538 -> "â—†"
+ ["f09f94b9", :undef], # [SMALL BLUE DIAMOND] U+1F539 -> "â—†"
+ ["e29d87", "ee9bba"], # [SPARKLE] U+2747 -> U+E6FA
+ ["f09f92ae", :undef], # [WHITE FLOWER] U+1F4AE -> "[花丸]"
+ ["f09f92af", :undef], # [HUNDRED POINTS SYMBOL] U+1F4AF -> "[100点]"
+ ["e286a9", "ee9b9a"], # [LEFTWARDS ARROW WITH HOOK] U+21A9 -> U+E6DA
+ ["e286aa", :undef], # [RIGHTWARDS ARROW WITH HOOK] U+21AA -> "└→"
+ ["f09f9483", "ee9cb5"], # [CLOCKWISE DOWNWARDS AND UPWARDS OPEN CIRCLE ARROWS] U+1F503 -> U+E735
+ ["f09f948a", :undef], # [SPEAKER WITH THREE SOUND WAVES] U+1F50A -> "[スピーカ]"
+ ["f09f948b", :undef], # [BATTERY] U+1F50B -> "[電池]"
+ ["f09f948c", :undef], # [ELECTRIC PLUG] U+1F50C -> "[コンセント]"
+ ["f09f948d", "ee9b9c"], # [LEFT-POINTING MAGNIFYING GLASS] U+1F50D -> U+E6DC
+ ["f09f948e", "ee9b9c"], # [RIGHT-POINTING MAGNIFYING GLASS] U+1F50E -> U+E6DC
+ ["f09f9492", "ee9b99"], # [LOCK] U+1F512 -> U+E6D9
+ ["f09f9493", "ee9b99"], # [OPEN LOCK] U+1F513 -> U+E6D9
+ ["f09f948f", "ee9b99"], # [LOCK WITH INK PEN] U+1F50F -> U+E6D9
+ ["f09f9490", "ee9b99"], # [CLOSED LOCK WITH KEY] U+1F510 -> U+E6D9
+ ["f09f9491", "ee9b99"], # [KEY] U+1F511 -> U+E6D9
+ ["f09f9494", "ee9c93"], # [BELL] U+1F514 -> U+E713
+ ["e29891", :undef], # [BALLOT BOX WITH CHECK] U+2611 -> "[ãƒã‚§ãƒƒã‚¯ãƒžãƒ¼ã‚¯]"
+ ["f09f9498", :undef], # [RADIO BUTTON] U+1F518 -> "[ラジオボタン]"
+ ["f09f9496", :undef], # [BOOKMARK] U+1F516 -> "[ブックマーク]"
+ ["f09f9497", :undef], # [LINK SYMBOL] U+1F517 -> "[リンク]"
+ ["f09f9499", :undef], # [BACK WITH LEFTWARDS ARROW ABOVE] U+1F519 -> "[â†BACK]"
+ ["f09f949a", "ee9ab9"], # [END WITH LEFTWARDS ARROW ABOVE] U+1F51A -> U+E6B9
+ ["f09f949b", "ee9ab8"], # [ON WITH EXCLAMATION MARK WITH LEFT RIGHT ARROW ABOVE] U+1F51B -> U+E6B8
+ ["f09f949c", "ee9ab7"], # [SOON WITH RIGHTWARDS ARROW ABOVE] U+1F51C -> U+E6B7
+ ["f09f949d", :undef], # [TOP WITH UPWARDS ARROW ABOVE] U+1F51D -> "[TOP]"
+ ["e28083", :undef], # [EM SPACE] U+2003 -> U+3013 (GETA)
+ ["e28082", :undef], # [EN SPACE] U+2002 -> U+3013 (GETA)
+ ["e28085", :undef], # [FOUR-PER-EM SPACE] U+2005 -> U+3013 (GETA)
+ ["e29c85", :undef], # [WHITE HEAVY CHECK MARK] U+2705 -> "[ãƒã‚§ãƒƒã‚¯ãƒžãƒ¼ã‚¯]"
+ ["e29c8a", "ee9a93"], # [RAISED FIST] U+270A -> U+E693
+ ["e29c8b", "ee9a95"], # [RAISED HAND] U+270B -> U+E695
+ ["e29c8c", "ee9a94"], # [VICTORY HAND] U+270C -> U+E694
+ ["f09f918a", "ee9bbd"], # [FISTED HAND SIGN] U+1F44A -> U+E6FD
+ ["f09f918d", "ee9ca7"], # [THUMBS UP SIGN] U+1F44D -> U+E727
+ ["e2989d", :undef], # [WHITE UP POINTING INDEX] U+261D -> "[äººå·®ã—æŒ‡]"
+ ["f09f9186", :undef], # [WHITE UP POINTING BACKHAND INDEX] U+1F446 -> "[↑]"
+ ["f09f9187", :undef], # [WHITE DOWN POINTING BACKHAND INDEX] U+1F447 -> "[↓]"
+ ["f09f9188", :undef], # [WHITE LEFT POINTING BACKHAND INDEX] U+1F448 -> "[â†]"
+ ["f09f9189", :undef], # [WHITE RIGHT POINTING BACKHAND INDEX] U+1F449 -> "[→]"
+ ["f09f918b", "ee9a95"], # [WAVING HAND SIGN] U+1F44B -> U+E695
+ ["f09f918f", :undef], # [CLAPPING HANDS SIGN] U+1F44F -> "[æ‹æ‰‹]"
+ ["f09f918c", "ee9c8b"], # [OK HAND SIGN] U+1F44C -> U+E70B
+ ["f09f918e", "ee9c80"], # [THUMBS DOWN SIGN] U+1F44E -> U+E700
+ ["f09f9190", "ee9a95"], # [OPEN HANDS SIGN] U+1F450 -> U+E695
+]
+
+EMOJI_EXCHANGE_TBL['UTF-8']['UTF8-KDDI'] = [
+ ["e29880", "ee9288"], # [BLACK SUN WITH RAYS] U+2600 -> U+E488
+ ["e29881", "ee928d"], # [CLOUD] U+2601 -> U+E48D
+ ["e29894", "ee928c"], # [UMBRELLA WITH RAIN DROPS] U+2614 -> U+E48C
+ ["e29b84", "ee9285"], # [SNOWMAN WITHOUT SNOW] U+26C4 -> U+E485
+ ["e29aa1", "ee9287"], # [HIGH VOLTAGE SIGN] U+26A1 -> U+E487
+ ["f09f8c80", "ee91a9"], # [CYCLONE] U+1F300 -> U+E469
+ ["f09f8c81", "ee9698"], # [FOGGY] U+1F301 -> U+E598
+ ["f09f8c82", "eeaba8"], # [CLOSED UMBRELLA] U+1F302 -> U+EAE8
+ ["f09f8c83", "eeabb1"], # [NIGHT WITH STARS] U+1F303 -> U+EAF1
+ ["f09f8c84", "eeabb4"], # [SUNRISE OVER MOUNTAINS] U+1F304 -> U+EAF4
+ ["f09f8c85", "eeabb4"], # [SUNRISE] U+1F305 -> U+EAF4
+ ["f09f8c87", "ee979a"], # [SUNSET OVER BUILDINGS] U+1F307 -> U+E5DA
+ ["f09f8c88", "eeabb2"], # [RAINBOW] U+1F308 -> U+EAF2
+ ["e29d84", "ee928a"], # [SNOWFLAKE] U+2744 -> U+E48A
+ ["e29b85", "ee928e"], # [SUN BEHIND CLOUD] U+26C5 -> U+E48E
+ ["f09f8c89", "ee92bf"], # [BRIDGE AT NIGHT] U+1F309 -> U+E4BF
+ ["f09f8c8a", "eeadbc"], # [WATER WAVE] U+1F30A -> U+EB7C
+ ["f09f8c8b", "eead93"], # [VOLCANO] U+1F30B -> U+EB53
+ ["f09f8c8c", "eead9f"], # [MILKY WAY] U+1F30C -> U+EB5F
+ ["f09f8c8f", "ee96b3"], # [EARTH GLOBE ASIA-AUSTRALIA] U+1F30F -> U+E5B3
+ ["f09f8c91", "ee96a8"], # [NEW MOON SYMBOL] U+1F311 -> U+E5A8
+ ["f09f8c94", "ee96a9"], # [WAXING GIBBOUS MOON SYMBOL] U+1F314 -> U+E5A9
+ ["f09f8c93", "ee96aa"], # [FIRST QUARTER MOON SYMBOL] U+1F313 -> U+E5AA
+ ["f09f8c99", "ee9286"], # [CRESCENT MOON] U+1F319 -> U+E486
+ ["f09f8c95", :undef], # [FULL MOON SYMBOL] U+1F315 -> "â—‹"
+ ["f09f8c9b", "ee9289"], # [FIRST QUARTER MOON WITH FACE] U+1F31B -> U+E489
+ ["f09f8c9f", "ee928b"], # [GLOWING STAR] U+1F31F -> U+E48B
+ ["f09f8ca0", "ee91a8"], # [SHOOTING STAR] U+1F320 -> U+E468
+ ["f09f9590", "ee9694"], # [CLOCK FACE ONE OCLOCK] U+1F550 -> U+E594
+ ["f09f9591", "ee9694"], # [CLOCK FACE TWO OCLOCK] U+1F551 -> U+E594
+ ["f09f9592", "ee9694"], # [CLOCK FACE THREE OCLOCK] U+1F552 -> U+E594
+ ["f09f9593", "ee9694"], # [CLOCK FACE FOUR OCLOCK] U+1F553 -> U+E594
+ ["f09f9594", "ee9694"], # [CLOCK FACE FIVE OCLOCK] U+1F554 -> U+E594
+ ["f09f9595", "ee9694"], # [CLOCK FACE SIX OCLOCK] U+1F555 -> U+E594
+ ["f09f9596", "ee9694"], # [CLOCK FACE SEVEN OCLOCK] U+1F556 -> U+E594
+ ["f09f9597", "ee9694"], # [CLOCK FACE EIGHT OCLOCK] U+1F557 -> U+E594
+ ["f09f9598", "ee9694"], # [CLOCK FACE NINE OCLOCK] U+1F558 -> U+E594
+ ["f09f9599", "ee9694"], # [CLOCK FACE TEN OCLOCK] U+1F559 -> U+E594
+ ["f09f959a", "ee9694"], # [CLOCK FACE ELEVEN OCLOCK] U+1F55A -> U+E594
+ ["f09f959b", "ee9694"], # [CLOCK FACE TWELVE OCLOCK] U+1F55B -> U+E594
+ ["e28c9a", "ee95ba"], # [WATCH] U+231A -> U+E57A
+ ["e28c9b", "ee95bb"], # [HOURGLASS] U+231B -> U+E57B
+ ["e28fb0", "ee9694"], # [ALARM CLOCK] U+23F0 -> U+E594
+ ["e28fb3", "ee91bc"], # [HOURGLASS WITH FLOWING SAND] U+23F3 -> U+E47C
+ ["e29988", "ee928f"], # [ARIES] U+2648 -> U+E48F
+ ["e29989", "ee9290"], # [TAURUS] U+2649 -> U+E490
+ ["e2998a", "ee9291"], # [GEMINI] U+264A -> U+E491
+ ["e2998b", "ee9292"], # [CANCER] U+264B -> U+E492
+ ["e2998c", "ee9293"], # [LEO] U+264C -> U+E493
+ ["e2998d", "ee9294"], # [VIRGO] U+264D -> U+E494
+ ["e2998e", "ee9295"], # [LIBRA] U+264E -> U+E495
+ ["e2998f", "ee9296"], # [SCORPIUS] U+264F -> U+E496
+ ["e29990", "ee9297"], # [SAGITTARIUS] U+2650 -> U+E497
+ ["e29991", "ee9298"], # [CAPRICORN] U+2651 -> U+E498
+ ["e29992", "ee9299"], # [AQUARIUS] U+2652 -> U+E499
+ ["e29993", "ee929a"], # [PISCES] U+2653 -> U+E49A
+ ["e29b8e", "ee929b"], # [OPHIUCHUS] U+26CE -> U+E49B
+ ["f09f8d80", "ee9493"], # [FOUR LEAF CLOVER] U+1F340 -> U+E513
+ ["f09f8cb7", "ee93a4"], # [TULIP] U+1F337 -> U+E4E4
+ ["f09f8cb1", "eeadbd"], # [SEEDLING] U+1F331 -> U+EB7D
+ ["f09f8d81", "ee938e"], # [MAPLE LEAF] U+1F341 -> U+E4CE
+ ["f09f8cb8", "ee938a"], # [CHERRY BLOSSOM] U+1F338 -> U+E4CA
+ ["f09f8cb9", "ee96ba"], # [ROSE] U+1F339 -> U+E5BA
+ ["f09f8d82", "ee978d"], # [FALLEN LEAF] U+1F342 -> U+E5CD
+ ["f09f8d83", "ee978d"], # [LEAF FLUTTERING IN WIND] U+1F343 -> U+E5CD
+ ["f09f8cba", "eeaa94"], # [HIBISCUS] U+1F33A -> U+EA94
+ ["f09f8cbb", "ee93a3"], # [SUNFLOWER] U+1F33B -> U+E4E3
+ ["f09f8cb4", "ee93a2"], # [PALM TREE] U+1F334 -> U+E4E2
+ ["f09f8cb5", "eeaa96"], # [CACTUS] U+1F335 -> U+EA96
+ ["f09f8cbe", :undef], # [EAR OF RICE] U+1F33E -> "[稲穂]"
+ ["f09f8cbd", "eeacb6"], # [EAR OF MAIZE] U+1F33D -> U+EB36
+ ["f09f8d84", "eeacb7"], # [MUSHROOM] U+1F344 -> U+EB37
+ ["f09f8cb0", "eeacb8"], # [CHESTNUT] U+1F330 -> U+EB38
+ ["f09f8cbc", "eead89"], # [BLOSSOM] U+1F33C -> U+EB49
+ ["f09f8cbf", "eeae82"], # [HERB] U+1F33F -> U+EB82
+ ["f09f8d92", "ee9392"], # [CHERRIES] U+1F352 -> U+E4D2
+ ["f09f8d8c", "eeacb5"], # [BANANA] U+1F34C -> U+EB35
+ ["f09f8d8e", "eeaab9"], # [RED APPLE] U+1F34E -> U+EAB9
+ ["f09f8d8a", "eeaaba"], # [TANGERINE] U+1F34A -> U+EABA
+ ["f09f8d93", "ee9394"], # [STRAWBERRY] U+1F353 -> U+E4D4
+ ["f09f8d89", "ee938d"], # [WATERMELON] U+1F349 -> U+E4CD
+ ["f09f8d85", "eeaabb"], # [TOMATO] U+1F345 -> U+EABB
+ ["f09f8d86", "eeaabc"], # [AUBERGINE] U+1F346 -> U+EABC
+ ["f09f8d88", "eeacb2"], # [MELON] U+1F348 -> U+EB32
+ ["f09f8d8d", "eeacb3"], # [PINEAPPLE] U+1F34D -> U+EB33
+ ["f09f8d87", "eeacb4"], # [GRAPES] U+1F347 -> U+EB34
+ ["f09f8d91", "eeacb9"], # [PEACH] U+1F351 -> U+EB39
+ ["f09f8d8f", "eead9a"], # [GREEN APPLE] U+1F34F -> U+EB5A
+ ["f09f9180", "ee96a4"], # [EYES] U+1F440 -> U+E5A4
+ ["f09f9182", "ee96a5"], # [EAR] U+1F442 -> U+E5A5
+ ["f09f9183", "eeab90"], # [NOSE] U+1F443 -> U+EAD0
+ ["f09f9184", "eeab91"], # [MOUTH] U+1F444 -> U+EAD1
+ ["f09f9185", "eead87"], # [TONGUE] U+1F445 -> U+EB47
+ ["f09f9284", "ee9489"], # [LIPSTICK] U+1F484 -> U+E509
+ ["f09f9285", "eeaaa0"], # [NAIL POLISH] U+1F485 -> U+EAA0
+ ["f09f9286", "ee948b"], # [FACE MASSAGE] U+1F486 -> U+E50B
+ ["f09f9287", "eeaaa1"], # [HAIRCUT] U+1F487 -> U+EAA1
+ ["f09f9288", "eeaaa2"], # [BARBER POLE] U+1F488 -> U+EAA2
+ ["f09f91a4", :undef], # [BUST IN SILHOUETTE] U+1F464 -> U+3013 (GETA)
+ ["f09f91a6", "ee93bc"], # [BOY] U+1F466 -> U+E4FC
+ ["f09f91a7", "ee93ba"], # [GIRL] U+1F467 -> U+E4FA
+ ["f09f91a8", "ee93bc"], # [MAN] U+1F468 -> U+E4FC
+ ["f09f91a9", "ee93ba"], # [WOMAN] U+1F469 -> U+E4FA
+ ["f09f91aa", "ee9481"], # [FAMILY] U+1F46A -> U+E501
+ ["f09f91ab", :undef], # [MAN AND WOMAN HOLDING HANDS] U+1F46B -> "[カップル]"
+ ["f09f91ae", "ee979d"], # [POLICE OFFICER] U+1F46E -> U+E5DD
+ ["f09f91af", "eeab9b"], # [WOMAN WITH BUNNY EARS] U+1F46F -> U+EADB
+ ["f09f91b0", "eeaba9"], # [BRIDE WITH VEIL] U+1F470 -> U+EAE9
+ ["f09f91b1", "eeac93"], # [WESTERN PERSON] U+1F471 -> U+EB13
+ ["f09f91b2", "eeac94"], # [MAN WITH GUA PI MAO] U+1F472 -> U+EB14
+ ["f09f91b3", "eeac95"], # [MAN WITH TURBAN] U+1F473 -> U+EB15
+ ["f09f91b4", "eeac96"], # [OLDER MAN] U+1F474 -> U+EB16
+ ["f09f91b5", "eeac97"], # [OLDER WOMAN] U+1F475 -> U+EB17
+ ["f09f91b6", "eeac98"], # [BABY] U+1F476 -> U+EB18
+ ["f09f91b7", "eeac99"], # [CONSTRUCTION WORKER] U+1F477 -> U+EB19
+ ["f09f91b8", "eeac9a"], # [PRINCESS] U+1F478 -> U+EB1A
+ ["f09f91b9", "eead84"], # [JAPANESE OGRE] U+1F479 -> U+EB44
+ ["f09f91ba", "eead85"], # [JAPANESE GOBLIN] U+1F47A -> U+EB45
+ ["f09f91bb", "ee938b"], # [GHOST] U+1F47B -> U+E4CB
+ ["f09f91bc", "ee96bf"], # [BABY ANGEL] U+1F47C -> U+E5BF
+ ["f09f91bd", "ee948e"], # [EXTRATERRESTRIAL ALIEN] U+1F47D -> U+E50E
+ ["f09f91be", "ee93ac"], # [ALIEN MONSTER] U+1F47E -> U+E4EC
+ ["f09f91bf", "ee93af"], # [IMP] U+1F47F -> U+E4EF
+ ["f09f9280", "ee93b8"], # [SKULL] U+1F480 -> U+E4F8
+ ["f09f9281", :undef], # [INFORMATION DESK PERSON] U+1F481 -> "[案内]"
+ ["f09f9282", :undef], # [GUARDSMAN] U+1F482 -> "[衛兵]"
+ ["f09f9283", "eeac9c"], # [DANCER] U+1F483 -> U+EB1C
+ ["f09f908c", "eeadbe"], # [SNAIL] U+1F40C -> U+EB7E
+ ["f09f908d", "eeaca2"], # [SNAKE] U+1F40D -> U+EB22
+ ["f09f908e", "ee9398"], # [HORSE] U+1F40E -> U+E4D8
+ ["f09f9094", "eeaca3"], # [CHICKEN] U+1F414 -> U+EB23
+ ["f09f9097", "eeaca4"], # [BOAR] U+1F417 -> U+EB24
+ ["f09f90ab", "eeaca5"], # [BACTRIAN CAMEL] U+1F42B -> U+EB25
+ ["f09f9098", "eeac9f"], # [ELEPHANT] U+1F418 -> U+EB1F
+ ["f09f90a8", "eeaca0"], # [KOALA] U+1F428 -> U+EB20
+ ["f09f9092", "ee9399"], # [MONKEY] U+1F412 -> U+E4D9
+ ["f09f9091", "ee928f"], # [SHEEP] U+1F411 -> U+E48F
+ ["f09f9099", "ee9787"], # [OCTOPUS] U+1F419 -> U+E5C7
+ ["f09f909a", "eeabac"], # [SPIRAL SHELL] U+1F41A -> U+EAEC
+ ["f09f909b", "eeac9e"], # [BUG] U+1F41B -> U+EB1E
+ ["f09f909c", "ee939d"], # [ANT] U+1F41C -> U+E4DD
+ ["f09f909d", "eead97"], # [HONEYBEE] U+1F41D -> U+EB57
+ ["f09f909e", "eead98"], # [LADY BEETLE] U+1F41E -> U+EB58
+ ["f09f90a0", "eeac9d"], # [TROPICAL FISH] U+1F420 -> U+EB1D
+ ["f09f90a1", "ee9393"], # [BLOWFISH] U+1F421 -> U+E4D3
+ ["f09f90a2", "ee9794"], # [TURTLE] U+1F422 -> U+E5D4
+ ["f09f90a4", "ee93a0"], # [BABY CHICK] U+1F424 -> U+E4E0
+ ["f09f90a5", "eeadb6"], # [FRONT-FACING BABY CHICK] U+1F425 -> U+EB76
+ ["f09f90a6", "ee93a0"], # [BIRD] U+1F426 -> U+E4E0
+ ["f09f90a3", "ee979b"], # [HATCHING CHICK] U+1F423 -> U+E5DB
+ ["f09f90a7", "ee939c"], # [PENGUIN] U+1F427 -> U+E4DC
+ ["f09f90a9", "ee939f"], # [POODLE] U+1F429 -> U+E4DF
+ ["f09f909f", "ee929a"], # [FISH] U+1F41F -> U+E49A
+ ["f09f90ac", "eeac9b"], # [DOLPHIN] U+1F42C -> U+EB1B
+ ["f09f90ad", "ee9782"], # [MOUSE FACE] U+1F42D -> U+E5C2
+ ["f09f90af", "ee9780"], # [TIGER FACE] U+1F42F -> U+E5C0
+ ["f09f90b1", "ee939b"], # [CAT FACE] U+1F431 -> U+E4DB
+ ["f09f90b3", "ee91b0"], # [SPOUTING WHALE] U+1F433 -> U+E470
+ ["f09f90b4", "ee9398"], # [HORSE FACE] U+1F434 -> U+E4D8
+ ["f09f90b5", "ee9399"], # [MONKEY FACE] U+1F435 -> U+E4D9
+ ["f09f90b6", "ee93a1"], # [DOG FACE] U+1F436 -> U+E4E1
+ ["f09f90b7", "ee939e"], # [PIG FACE] U+1F437 -> U+E4DE
+ ["f09f90bb", "ee9781"], # [BEAR FACE] U+1F43B -> U+E5C1
+ ["f09f90b9", :undef], # [HAMSTER FACE] U+1F439 -> "[ãƒãƒ ã‚¹ã‚¿ãƒ¼]"
+ ["f09f90ba", "ee93a1"], # [WOLF FACE] U+1F43A -> U+E4E1
+ ["f09f90ae", "eeaca1"], # [COW FACE] U+1F42E -> U+EB21
+ ["f09f90b0", "ee9397"], # [RABBIT FACE] U+1F430 -> U+E4D7
+ ["f09f90b8", "ee939a"], # [FROG FACE] U+1F438 -> U+E4DA
+ ["f09f90be", "ee93ae"], # [PAW PRINTS] U+1F43E -> U+E4EE
+ ["f09f90b2", "eeacbf"], # [DRAGON FACE] U+1F432 -> U+EB3F
+ ["f09f90bc", "eead86"], # [PANDA FACE] U+1F43C -> U+EB46
+ ["f09f90bd", "eead88"], # [PIG NOSE] U+1F43D -> U+EB48
+ ["f09f9880", "ee91b2"], # [ANGRY FACE] U+1F600 -> U+E472
+ ["f09f9881", "eeada7"], # [ANGUISHED FACE] U+1F601 -> U+EB67
+ ["f09f9882", "eeab8a"], # [ASTONISHED FACE] U+1F602 -> U+EACA
+ ["f09f9883", "eeab80"], # [DISAPPOINTED FACE] U+1F603 -> U+EAC0
+ ["f09f9884", "ee96ae"], # [DIZZY FACE] U+1F604 -> U+E5AE
+ ["f09f9885", "eeab8b"], # [EXASPERATED FACE] U+1F605 -> U+EACB
+ ["f09f9886", "eeab89"], # [EXPRESSIONLESS FACE] U+1F606 -> U+EAC9
+ ["f09f9887", "ee9784"], # [FACE WITH HEART-SHAPED EYES] U+1F607 -> U+E5C4
+ ["f09f9888", "eeab81"], # [FACE WITH LOOK OF TRIUMPH] U+1F608 -> U+EAC1
+ ["f09f9889", "ee93a7"], # [WINKING FACE WITH STUCK-OUT TONGUE] U+1F609 -> U+E4E7
+ ["f09f988a", "ee93a7"], # [FACE WITH STUCK-OUT TONGUE] U+1F60A -> U+E4E7
+ ["f09f988b", "eeab8d"], # [FACE SAVOURING DELICIOUS FOOD] U+1F60B -> U+EACD
+ ["f09f988c", "eeab8f"], # [FACE THROWING A KISS] U+1F60C -> U+EACF
+ ["f09f988d", "eeab8e"], # [FACE KISSING] U+1F60D -> U+EACE
+ ["f09f988e", "eeab87"], # [FACE WITH MASK] U+1F60E -> U+EAC7
+ ["f09f988f", "eeab88"], # [FLUSHED FACE] U+1F60F -> U+EAC8
+ ["f09f9890", "ee91b1"], # [HAPPY FACE WITH OPEN MOUTH] U+1F610 -> U+E471
+ ["f09f9891", "ee91b1ee96b1"], # [HAPPY FACE WITH OPEN MOUTH AND COLD SWEAT] U+1F611 -> U+E471 U+E5B1
+ ["f09f9892", "eeab85"], # [HAPPY FACE WITH OPEN MOUTH AND CLOSED EYES] U+1F612 -> U+EAC5
+ ["f09f9893", "eeae80"], # [HAPPY FACE WITH GRIN] U+1F613 -> U+EB80
+ ["f09f9894", "eeada4"], # [HAPPY AND CRYING FACE] U+1F614 -> U+EB64
+ ["f09f9895", "eeab8d"], # [HAPPY FACE WITH WIDE MOUTH AND RAISED EYEBROWS] U+1F615 -> U+EACD
+ ["e298ba", "ee93bb"], # [WHITE SMILING FACE] U+263A -> U+E4FB
+ ["f09f9896", "ee91b1"], # [HAPPY FACE WITH OPEN MOUTH AND RAISED EYEBROWS] U+1F616 -> U+E471
+ ["f09f9897", "eeada9"], # [CRYING FACE] U+1F617 -> U+EB69
+ ["f09f9898", "ee91b3"], # [LOUDLY CRYING FACE] U+1F618 -> U+E473
+ ["f09f9899", "eeab86"], # [FEARFUL FACE] U+1F619 -> U+EAC6
+ ["f09f989a", "eeab82"], # [PERSEVERING FACE] U+1F61A -> U+EAC2
+ ["f09f989b", "eead9d"], # [POUTING FACE] U+1F61B -> U+EB5D
+ ["f09f989c", "eeab85"], # [RELIEVED FACE] U+1F61C -> U+EAC5
+ ["f09f989d", "eeab83"], # [CONFOUNDED FACE] U+1F61D -> U+EAC3
+ ["f09f989e", "eeab80"], # [PENSIVE FACE] U+1F61E -> U+EAC0
+ ["f09f989f", "ee9785"], # [FACE SCREAMING IN FEAR] U+1F61F -> U+E5C5
+ ["f09f98a0", "eeab84"], # [SLEEPY FACE] U+1F620 -> U+EAC4
+ ["f09f98a1", "eeaabf"], # [SMIRKING FACE] U+1F621 -> U+EABF
+ ["f09f98a2", "ee9786"], # [FACE WITH COLD SWEAT] U+1F622 -> U+E5C6
+ ["f09f98a3", "ee9786"], # [DISAPPOINTED BUT RELIEVED FACE] U+1F623 -> U+E5C6
+ ["f09f98a4", "ee91b4"], # [TIRED FACE] U+1F624 -> U+E474
+ ["f09f98a5", "ee9783"], # [WINKING FACE] U+1F625 -> U+E5C3
+ ["f09f98ab", "eeada1"], # [CAT FACE WITH OPEN MOUTH] U+1F62B -> U+EB61
+ ["f09f98ac", "eeadbf"], # [HAPPY CAT FACE WITH GRIN] U+1F62C -> U+EB7F
+ ["f09f98ad", "eeada3"], # [HAPPY AND CRYING CAT FACE] U+1F62D -> U+EB63
+ ["f09f98ae", "eeada0"], # [CAT FACE KISSING] U+1F62E -> U+EB60
+ ["f09f98af", "eeada5"], # [CAT FACE WITH HEART-SHAPED EYES] U+1F62F -> U+EB65
+ ["f09f98b0", "eeada8"], # [CRYING CAT FACE] U+1F630 -> U+EB68
+ ["f09f98b1", "eead9e"], # [POUTING CAT FACE] U+1F631 -> U+EB5E
+ ["f09f98b2", "eeadaa"], # [CAT FACE WITH TIGHTLY-CLOSED LIPS] U+1F632 -> U+EB6A
+ ["f09f98b3", "eeada6"], # [ANGUISHED CAT FACE] U+1F633 -> U+EB66
+ ["f09f98b4", "eeab97"], # [FACE WITH NO GOOD GESTURE] U+1F634 -> U+EAD7
+ ["f09f98b5", "eeab98"], # [FACE WITH OK GESTURE] U+1F635 -> U+EAD8
+ ["f09f98b6", "eeab99"], # [PERSON BOWING DEEPLY] U+1F636 -> U+EAD9
+ ["f09f98b7", "eead90"], # [SEE-NO-EVIL MONKEY] U+1F637 -> U+EB50
+ ["f09f98b9", "eead91"], # [SPEAK-NO-EVIL MONKEY] U+1F639 -> U+EB51
+ ["f09f98b8", "eead92"], # [HEAR-NO-EVIL MONKEY] U+1F638 -> U+EB52
+ ["f09f98ba", "eeae85"], # [PERSON RAISING ONE HAND] U+1F63A -> U+EB85
+ ["f09f98bb", "eeae86"], # [PERSON RAISING BOTH HANDS IN CELEBRATION] U+1F63B -> U+EB86
+ ["f09f98bc", "eeae87"], # [PERSON FROWNING] U+1F63C -> U+EB87
+ ["f09f98bd", "eeae88"], # [PERSON WITH POUTING FACE] U+1F63D -> U+EB88
+ ["f09f98be", "eeab92"], # [PERSON WITH FOLDED HANDS] U+1F63E -> U+EAD2
+ ["f09f8fa0", "ee92ab"], # [HOUSE BUILDING] U+1F3E0 -> U+E4AB
+ ["f09f8fa1", "eeac89"], # [HOUSE WITH GARDEN] U+1F3E1 -> U+EB09
+ ["f09f8fa2", "ee92ad"], # [OFFICE BUILDING] U+1F3E2 -> U+E4AD
+ ["f09f8fa3", "ee979e"], # [JAPANESE POST OFFICE] U+1F3E3 -> U+E5DE
+ ["f09f8fa5", "ee979f"], # [HOSPITAL] U+1F3E5 -> U+E5DF
+ ["f09f8fa6", "ee92aa"], # [BANK] U+1F3E6 -> U+E4AA
+ ["f09f8fa7", "ee92a3"], # [AUTOMATED TELLER MACHINE] U+1F3E7 -> U+E4A3
+ ["f09f8fa8", "eeaa81"], # [HOTEL] U+1F3E8 -> U+EA81
+ ["f09f8fa9", "eeabb3"], # [LOVE HOTEL] U+1F3E9 -> U+EAF3
+ ["f09f8faa", "ee92a4"], # [CONVENIENCE STORE] U+1F3EA -> U+E4A4
+ ["f09f8fab", "eeaa80"], # [SCHOOL] U+1F3EB -> U+EA80
+ ["e29baa", "ee96bb"], # [CHURCH] U+26EA -> U+E5BB
+ ["e29bb2", "ee978f"], # [FOUNTAIN] U+26F2 -> U+E5CF
+ ["f09f8fac", "eeabb6"], # [DEPARTMENT STORE] U+1F3EC -> U+EAF6
+ ["f09f8faf", "eeabb7"], # [JAPANESE CASTLE] U+1F3EF -> U+EAF7
+ ["f09f8fb0", "eeabb8"], # [EUROPEAN CASTLE] U+1F3F0 -> U+EAF8
+ ["f09f8fad", "eeabb9"], # [FACTORY] U+1F3ED -> U+EAF9
+ ["e29a93", "ee92a9"], # [ANCHOR] U+2693 -> U+E4A9
+ ["f09f8fae", "ee92bd"], # [IZAKAYA LANTERN] U+1F3EE -> U+E4BD
+ ["f09f97bb", "ee96bd"], # [MOUNT FUJI] U+1F5FB -> U+E5BD
+ ["f09f97bc", "ee9380"], # [TOKYO TOWER] U+1F5FC -> U+E4C0
+ ["f09f97bd", :undef], # [STATUE OF LIBERTY] U+1F5FD -> "[自由ã®å¥³ç¥ž]"
+ ["f09f97be", "ee95b2"], # [SILHOUETTE OF JAPAN] U+1F5FE -> U+E572
+ ["f09f97bf", "eeadac"], # [MOYAI] U+1F5FF -> U+EB6C
+ ["f09f919e", "ee96b7"], # [MANS SHOE] U+1F45E -> U+E5B7
+ ["f09f919f", "eeacab"], # [ATHLETIC SHOE] U+1F45F -> U+EB2B
+ ["f09f91a0", "ee949a"], # [HIGH-HEELED SHOE] U+1F460 -> U+E51A
+ ["f09f91a1", "ee949a"], # [WOMANS SANDAL] U+1F461 -> U+E51A
+ ["f09f91a2", "eeaa9f"], # [WOMANS BOOTS] U+1F462 -> U+EA9F
+ ["f09f91a3", "eeacaa"], # [FOOTPRINTS] U+1F463 -> U+EB2A
+ ["f09f9193", "ee93be"], # [EYEGLASSES] U+1F453 -> U+E4FE
+ ["f09f9195", "ee96b6"], # [T-SHIRT] U+1F455 -> U+E5B6
+ ["f09f9196", "eeadb7"], # [JEANS] U+1F456 -> U+EB77
+ ["f09f9191", "ee9789"], # [CROWN] U+1F451 -> U+E5C9
+ ["f09f9194", "eeaa93"], # [NECKTIE] U+1F454 -> U+EA93
+ ["f09f9192", "eeaa9e"], # [WOMANS HAT] U+1F452 -> U+EA9E
+ ["f09f9197", "eeadab"], # [DRESS] U+1F457 -> U+EB6B
+ ["f09f9198", "eeaaa3"], # [KIMONO] U+1F458 -> U+EAA3
+ ["f09f9199", "eeaaa4"], # [BIKINI] U+1F459 -> U+EAA4
+ ["f09f919a", "ee948d"], # [WOMANS CLOTHES] U+1F45A -> U+E50D
+ ["f09f919b", "ee9484"], # [PURSE] U+1F45B -> U+E504
+ ["f09f919c", "ee929c"], # [HANDBAG] U+1F45C -> U+E49C
+ ["f09f919d", :undef], # [POUCH] U+1F45D -> "[ãµãã‚]"
+ ["f09f92b0", "ee9387"], # [MONEY BAG] U+1F4B0 -> U+E4C7
+ ["f09f92b1", :undef], # [CURRENCY EXCHANGE] U+1F4B1 -> "[$ï¿¥]"
+ ["f09f92b9", "ee979c"], # [CHART WITH UPWARDS TREND AND YEN SIGN] U+1F4B9 -> U+E5DC
+ ["f09f92b2", "ee95b9"], # [HEAVY DOLLAR SIGN] U+1F4B2 -> U+E579
+ ["f09f92b3", "ee95bc"], # [CREDIT CARD] U+1F4B3 -> U+E57C
+ ["f09f92b4", "ee95bd"], # [BANKNOTE WITH YEN SIGN] U+1F4B4 -> U+E57D
+ ["f09f92b5", "ee9685"], # [BANKNOTE WITH DOLLAR SIGN] U+1F4B5 -> U+E585
+ ["f09f92b8", "eead9b"], # [MONEY WITH WINGS] U+1F4B8 -> U+EB5B
+ ["f09f87a6", :undef], # [REGIONAL INDICATOR SYMBOL LETTER A] U+1F1E6 -> "[A]"
+ ["f09f87a7", :undef], # [REGIONAL INDICATOR SYMBOL LETTER B] U+1F1E7 -> "[B]"
+ ["f09f87a8", :undef], # [REGIONAL INDICATOR SYMBOL LETTER C] U+1F1E8 -> "[C]"
+ ["f09f87a9", :undef], # [REGIONAL INDICATOR SYMBOL LETTER D] U+1F1E9 -> "[D]"
+ ["f09f87aa", :undef], # [REGIONAL INDICATOR SYMBOL LETTER E] U+1F1EA -> "[E]"
+ ["f09f87ab", :undef], # [REGIONAL INDICATOR SYMBOL LETTER F] U+1F1EB -> "[F]"
+ ["f09f87ac", :undef], # [REGIONAL INDICATOR SYMBOL LETTER G] U+1F1EC -> "[G]"
+ ["f09f87ad", :undef], # [REGIONAL INDICATOR SYMBOL LETTER H] U+1F1ED -> "[H]"
+ ["f09f87ae", :undef], # [REGIONAL INDICATOR SYMBOL LETTER I] U+1F1EE -> "[I]"
+ ["f09f87af", :undef], # [REGIONAL INDICATOR SYMBOL LETTER J] U+1F1EF -> "[J]"
+ ["f09f87b0", :undef], # [REGIONAL INDICATOR SYMBOL LETTER K] U+1F1F0 -> "[K]"
+ ["f09f87b1", :undef], # [REGIONAL INDICATOR SYMBOL LETTER L] U+1F1F1 -> "[L]"
+ ["f09f87b2", :undef], # [REGIONAL INDICATOR SYMBOL LETTER M] U+1F1F2 -> "[M]"
+ ["f09f87b3", :undef], # [REGIONAL INDICATOR SYMBOL LETTER N] U+1F1F3 -> "[N]"
+ ["f09f87b4", :undef], # [REGIONAL INDICATOR SYMBOL LETTER O] U+1F1F4 -> "[O]"
+ ["f09f87b5", :undef], # [REGIONAL INDICATOR SYMBOL LETTER P] U+1F1F5 -> "[P]"
+ ["f09f87b6", :undef], # [REGIONAL INDICATOR SYMBOL LETTER Q] U+1F1F6 -> "[Q]"
+ ["f09f87b7", :undef], # [REGIONAL INDICATOR SYMBOL LETTER R] U+1F1F7 -> "[R]"
+ ["f09f87b8", :undef], # [REGIONAL INDICATOR SYMBOL LETTER S] U+1F1F8 -> "[S]"
+ ["f09f87b9", :undef], # [REGIONAL INDICATOR SYMBOL LETTER T] U+1F1F9 -> "[T]"
+ ["f09f87ba", :undef], # [REGIONAL INDICATOR SYMBOL LETTER U] U+1F1FA -> "[U]"
+ ["f09f87bb", :undef], # [REGIONAL INDICATOR SYMBOL LETTER V] U+1F1FB -> "[V]"
+ ["f09f87bc", :undef], # [REGIONAL INDICATOR SYMBOL LETTER W] U+1F1FC -> "[W]"
+ ["f09f87bd", :undef], # [REGIONAL INDICATOR SYMBOL LETTER X] U+1F1FD -> "[X]"
+ ["f09f87be", :undef], # [REGIONAL INDICATOR SYMBOL LETTER Y] U+1F1FE -> "[Y]"
+ ["f09f87bf", :undef], # [REGIONAL INDICATOR SYMBOL LETTER Z] U+1F1FF -> "[Z]"
+ ["f09f94a5", "ee91bb"], # [FIRE] U+1F525 -> U+E47B
+ ["f09f94a6", "ee9683"], # [ELECTRIC TORCH] U+1F526 -> U+E583
+ ["f09f94a7", "ee9687"], # [WRENCH] U+1F527 -> U+E587
+ ["f09f94a8", "ee978b"], # [HAMMER] U+1F528 -> U+E5CB
+ ["f09f94a9", "ee9681"], # [NUT AND BOLT] U+1F529 -> U+E581
+ ["f09f94aa", "ee95bf"], # [HOCHO] U+1F52A -> U+E57F
+ ["f09f94ab", "ee948a"], # [PISTOL] U+1F52B -> U+E50A
+ ["f09f94ae", "eeaa8f"], # [CRYSTAL BALL] U+1F52E -> U+EA8F
+ ["f09f94af", "eeaa8f"], # [SIX POINTED STAR WITH MIDDLE DOT] U+1F52F -> U+EA8F
+ ["f09f94b0", "ee9280"], # [JAPANESE SYMBOL FOR BEGINNER] U+1F530 -> U+E480
+ ["f09f94b1", "ee9789"], # [TRIDENT EMBLEM] U+1F531 -> U+E5C9
+ ["f09f9289", "ee9490"], # [SYRINGE] U+1F489 -> U+E510
+ ["f09f928a", "eeaa9a"], # [PILL] U+1F48A -> U+EA9A
+ ["f09f85b0", "eeaca6"], # [NEGATIVE SQUARED LATIN CAPITAL LETTER A] U+1F170 -> U+EB26
+ ["f09f85b1", "eeaca7"], # [NEGATIVE SQUARED LATIN CAPITAL LETTER B] U+1F171 -> U+EB27
+ ["f09f868e", "eeaca9"], # [NEGATIVE SQUARED AB] U+1F18E -> U+EB29
+ ["f09f85be", "eeaca8"], # [NEGATIVE SQUARED LATIN CAPITAL LETTER O] U+1F17E -> U+EB28
+ ["f09f8e80", "ee969f"], # [RIBBON] U+1F380 -> U+E59F
+ ["f09f8e81", "ee938f"], # [WRAPPED PRESENT] U+1F381 -> U+E4CF
+ ["f09f8e82", "ee96a0"], # [BIRTHDAY CAKE] U+1F382 -> U+E5A0
+ ["f09f8e84", "ee9389"], # [CHRISTMAS TREE] U+1F384 -> U+E4C9
+ ["f09f8e85", "eeabb0"], # [FATHER CHRISTMAS] U+1F385 -> U+EAF0
+ ["f09f8e8c", "ee9799"], # [CROSSED FLAGS] U+1F38C -> U+E5D9
+ ["f09f8e86", "ee978c"], # [FIREWORKS] U+1F386 -> U+E5CC
+ ["f09f8e88", "eeaa9b"], # [BALLOON] U+1F388 -> U+EA9B
+ ["f09f8e89", "eeaa9c"], # [PARTY POPPER] U+1F389 -> U+EA9C
+ ["f09f8e8d", "eeaba3"], # [PINE DECORATION] U+1F38D -> U+EAE3
+ ["f09f8e8e", "eeaba4"], # [JAPANESE DOLLS] U+1F38E -> U+EAE4
+ ["f09f8e93", "eeaba5"], # [GRADUATION CAP] U+1F393 -> U+EAE5
+ ["f09f8e92", "eeaba6"], # [SCHOOL SATCHEL] U+1F392 -> U+EAE6
+ ["f09f8e8f", "eeaba7"], # [CARP STREAMER] U+1F38F -> U+EAE7
+ ["f09f8e87", "eeabab"], # [FIREWORK SPARKLER] U+1F387 -> U+EAEB
+ ["f09f8e90", "eeabad"], # [WIND CHIME] U+1F390 -> U+EAED
+ ["f09f8e83", "eeabae"], # [JACK-O-LANTERN] U+1F383 -> U+EAEE
+ ["f09f8e8a", "ee91af"], # [CONFETTI BALL] U+1F38A -> U+E46F
+ ["f09f8e8b", "eeacbd"], # [TANABATA TREE] U+1F38B -> U+EB3D
+ ["f09f8e91", "eeabaf"], # [MOON VIEWING CEREMONY] U+1F391 -> U+EAEF
+ ["f09f939f", "ee969b"], # [PAGER] U+1F4DF -> U+E59B
+ ["e2988e", "ee9696"], # [BLACK TELEPHONE] U+260E -> U+E596
+ ["f09f939e", "ee949e"], # [TELEPHONE RECEIVER] U+1F4DE -> U+E51E
+ ["f09f93b1", "ee9688"], # [MOBILE PHONE] U+1F4F1 -> U+E588
+ ["f09f93b2", "eeac88"], # [MOBILE PHONE WITH RIGHTWARDS ARROW AT LEFT] U+1F4F2 -> U+EB08
+ ["f09f939d", "eeaa92"], # [MEMO] U+1F4DD -> U+EA92
+ ["f09f93a0", "ee94a0"], # [FAX MACHINE] U+1F4E0 -> U+E520
+ ["e29c89", "ee94a1"], # [ENVELOPE] U+2709 -> U+E521
+ ["f09f93a8", "ee9691"], # [INCOMING ENVELOPE] U+1F4E8 -> U+E591
+ ["f09f93a9", "eeada2"], # [ENVELOPE WITH DOWNWARDS ARROW ABOVE] U+1F4E9 -> U+EB62
+ ["f09f93aa", "ee949b"], # [CLOSED MAILBOX WITH LOWERED FLAG] U+1F4EA -> U+E51B
+ ["f09f93ab", "eeac8a"], # [CLOSED MAILBOX WITH RAISED FLAG] U+1F4EB -> U+EB0A
+ ["f09f93ae", "ee949b"], # [POSTBOX] U+1F4EE -> U+E51B
+ ["f09f93b0", "ee968b"], # [NEWSPAPER] U+1F4F0 -> U+E58B
+ ["f09f93a2", "ee9491"], # [PUBLIC ADDRESS LOUDSPEAKER] U+1F4E2 -> U+E511
+ ["f09f93a3", "ee9491"], # [CHEERING MEGAPHONE] U+1F4E3 -> U+E511
+ ["f09f93a1", "ee92a8"], # [SATELLITE ANTENNA] U+1F4E1 -> U+E4A8
+ ["f09f93a4", "ee9692"], # [OUTBOX TRAY] U+1F4E4 -> U+E592
+ ["f09f93a5", "ee9693"], # [INBOX TRAY] U+1F4E5 -> U+E593
+ ["f09f93a6", "ee949f"], # [PACKAGE] U+1F4E6 -> U+E51F
+ ["f09f93a7", "eeadb1"], # [E-MAIL SYMBOL] U+1F4E7 -> U+EB71
+ ["f09f94a0", "eeabbd"], # [INPUT SYMBOL FOR LATIN CAPITAL LETTERS] U+1F520 -> U+EAFD
+ ["f09f94a1", "eeabbe"], # [INPUT SYMBOL FOR LATIN SMALL LETTERS] U+1F521 -> U+EAFE
+ ["f09f94a2", "eeabbf"], # [INPUT SYMBOL FOR NUMBERS] U+1F522 -> U+EAFF
+ ["f09f94a3", "eeac80"], # [INPUT SYMBOL FOR SYMBOLS] U+1F523 -> U+EB00
+ ["f09f94a4", "eead95"], # [INPUT SYMBOL FOR LATIN LETTERS] U+1F524 -> U+EB55
+ ["e29c92", "eeac83"], # [BLACK NIB] U+2712 -> U+EB03
+ ["f09f92ba", :undef], # [SEAT] U+1F4BA -> "[ã„ã™]"
+ ["f09f92bb", "ee96b8"], # [PERSONAL COMPUTER] U+1F4BB -> U+E5B8
+ ["e29c8f", "ee92a1"], # [PENCIL] U+270F -> U+E4A1
+ ["f09f938e", "ee92a0"], # [PAPERCLIP] U+1F4CE -> U+E4A0
+ ["f09f92bc", "ee978e"], # [BRIEFCASE] U+1F4BC -> U+E5CE
+ ["f09f92bd", "ee9682"], # [MINIDISC] U+1F4BD -> U+E582
+ ["f09f92be", "ee95a2"], # [FLOPPY DISK] U+1F4BE -> U+E562
+ ["f09f92bf", "ee948c"], # [OPTICAL DISC] U+1F4BF -> U+E50C
+ ["f09f9380", "ee948c"], # [DVD] U+1F4C0 -> U+E50C
+ ["e29c82", "ee9496"], # [BLACK SCISSORS] U+2702 -> U+E516
+ ["f09f938d", "ee95a0"], # [ROUND PUSHPIN] U+1F4CD -> U+E560
+ ["f09f9383", "ee95a1"], # [PAGE WITH CURL] U+1F4C3 -> U+E561
+ ["f09f9384", "ee95a9"], # [PAGE FACING UP] U+1F4C4 -> U+E569
+ ["f09f9385", "ee95a3"], # [CALENDAR] U+1F4C5 -> U+E563
+ ["f09f9381", "ee968f"], # [FILE FOLDER] U+1F4C1 -> U+E58F
+ ["f09f9382", "ee9690"], # [OPEN FILE FOLDER] U+1F4C2 -> U+E590
+ ["f09f9393", "ee95ab"], # [NOTEBOOK] U+1F4D3 -> U+E56B
+ ["f09f9396", "ee929f"], # [OPEN BOOK] U+1F4D6 -> U+E49F
+ ["f09f9394", "ee929d"], # [NOTEBOOK WITH DECORATIVE COVER] U+1F4D4 -> U+E49D
+ ["f09f9395", "ee95a8"], # [CLOSED BOOK] U+1F4D5 -> U+E568
+ ["f09f9397", "ee95a5"], # [GREEN BOOK] U+1F4D7 -> U+E565
+ ["f09f9398", "ee95a6"], # [BLUE BOOK] U+1F4D8 -> U+E566
+ ["f09f9399", "ee95a7"], # [ORANGE BOOK] U+1F4D9 -> U+E567
+ ["f09f939a", "ee95af"], # [BOOKS] U+1F4DA -> U+E56F
+ ["f09f939b", "ee949d"], # [NAME BADGE] U+1F4DB -> U+E51D
+ ["f09f939c", "ee959f"], # [SCROLL] U+1F4DC -> U+E55F
+ ["f09f938b", "ee95a4"], # [CLIPBOARD] U+1F4CB -> U+E564
+ ["f09f9386", "ee95aa"], # [TEAR-OFF CALENDAR] U+1F4C6 -> U+E56A
+ ["f09f938a", "ee95b4"], # [BAR CHART] U+1F4CA -> U+E574
+ ["f09f9388", "ee95b5"], # [CHART WITH UPWARDS TREND] U+1F4C8 -> U+E575
+ ["f09f9389", "ee95b6"], # [CHART WITH DOWNWARDS TREND] U+1F4C9 -> U+E576
+ ["f09f9387", "ee95ac"], # [CARD INDEX] U+1F4C7 -> U+E56C
+ ["f09f938c", "ee95ad"], # [PUSHPIN] U+1F4CC -> U+E56D
+ ["f09f9392", "ee95ae"], # [LEDGER] U+1F4D2 -> U+E56E
+ ["f09f938f", "ee95b0"], # [STRAIGHT RULER] U+1F4CF -> U+E570
+ ["f09f9390", "ee92a2"], # [TRIANGULAR RULER] U+1F4D0 -> U+E4A2
+ ["f09f9391", "eeac8b"], # [BOOKMARK TABS] U+1F4D1 -> U+EB0B
+ ["f09f8ebd", :undef], # [RUNNING SHIRT WITH SASH] U+1F3BD -> U+3013 (GETA)
+ ["e29abe", "ee92ba"], # [BASEBALL] U+26BE -> U+E4BA
+ ["e29bb3", "ee9699"], # [FLAG IN HOLE] U+26F3 -> U+E599
+ ["f09f8ebe", "ee92b7"], # [TENNIS RACQUET AND BALL] U+1F3BE -> U+E4B7
+ ["e29abd", "ee92b6"], # [SOCCER BALL] U+26BD -> U+E4B6
+ ["f09f8ebf", "eeaaac"], # [SKI AND SKI BOOT] U+1F3BF -> U+EAAC
+ ["f09f8f80", "ee969a"], # [BASKETBALL AND HOOP] U+1F3C0 -> U+E59A
+ ["f09f8f81", "ee92b9"], # [CHEQUERED FLAG] U+1F3C1 -> U+E4B9
+ ["f09f8f82", "ee92b8"], # [SNOWBOARDER] U+1F3C2 -> U+E4B8
+ ["f09f8f83", "ee91ab"], # [RUNNER] U+1F3C3 -> U+E46B
+ ["f09f8f84", "eead81"], # [SURFER] U+1F3C4 -> U+EB41
+ ["f09f8f86", "ee9793"], # [TROPHY] U+1F3C6 -> U+E5D3
+ ["f09f8f88", "ee92bb"], # [AMERICAN FOOTBALL] U+1F3C8 -> U+E4BB
+ ["f09f8f8a", "eeab9e"], # [SWIMMER] U+1F3CA -> U+EADE
+ ["f09f9a86", "ee92b5"], # [TRAIN] U+1F686 -> U+E4B5
+ ["f09f9a87", "ee96bc"], # [METRO] U+1F687 -> U+E5BC
+ ["e29382", "ee96bc"], # [CIRCLED LATIN CAPITAL LETTER M] U+24C2 -> U+E5BC
+ ["f09f9a84", "ee92b0"], # [HIGH-SPEED TRAIN] U+1F684 -> U+E4B0
+ ["f09f9a85", "ee92b0"], # [HIGH-SPEED TRAIN WITH BULLET NOSE] U+1F685 -> U+E4B0
+ ["f09f9a97", "ee92b1"], # [AUTOMOBILE] U+1F697 -> U+E4B1
+ ["f09f9a99", "ee92b1"], # [RECREATIONAL VEHICLE] U+1F699 -> U+E4B1
+ ["f09f9a8d", "ee92af"], # [ONCOMING BUS] U+1F68D -> U+E4AF
+ ["f09f9a8f", "ee92a7"], # [BUS STOP] U+1F68F -> U+E4A7
+ ["f09f9aa2", "eeaa82"], # [SHIP] U+1F6A2 -> U+EA82
+ ["e29c88", "ee92b3"], # [AIRPLANE] U+2708 -> U+E4B3
+ ["e29bb5", "ee92b4"], # [SAILBOAT] U+26F5 -> U+E4B4
+ ["f09f9a89", "eeadad"], # [STATION] U+1F689 -> U+EB6D
+ ["f09f9a80", "ee9788"], # [ROCKET] U+1F680 -> U+E5C8
+ ["f09f9aa4", "ee92b4"], # [SPEEDBOAT] U+1F6A4 -> U+E4B4
+ ["f09f9a95", "ee92b1"], # [TAXI] U+1F695 -> U+E4B1
+ ["f09f9a9a", "ee92b2"], # [DELIVERY TRUCK] U+1F69A -> U+E4B2
+ ["f09f9a92", "eeab9f"], # [FIRE ENGINE] U+1F692 -> U+EADF
+ ["f09f9a91", "eeaba0"], # [AMBULANCE] U+1F691 -> U+EAE0
+ ["f09f9a93", "eeaba1"], # [POLICE CAR] U+1F693 -> U+EAE1
+ ["e29bbd", "ee95b1"], # [FUEL PUMP] U+26FD -> U+E571
+ ["f09f85bf", "ee92a6"], # [NEGATIVE SQUARED LATIN CAPITAL LETTER P] U+1F17F -> U+E4A6
+ ["f09f9aa5", "ee91aa"], # [HORIZONTAL TRAFFIC LIGHT] U+1F6A5 -> U+E46A
+ ["f09f9aa7", "ee9797"], # [CONSTRUCTION SIGN] U+1F6A7 -> U+E5D7
+ ["f09f9aa8", "eeadb3"], # [POLICE CARS REVOLVING LIGHT] U+1F6A8 -> U+EB73
+ ["e299a8", "ee92bc"], # [HOT SPRINGS] U+2668 -> U+E4BC
+ ["e29bba", "ee9790"], # [TENT] U+26FA -> U+E5D0
+ ["f09f8ea0", :undef], # [CAROUSEL HORSE] U+1F3A0 -> U+3013 (GETA)
+ ["f09f8ea1", "ee91ad"], # [FERRIS WHEEL] U+1F3A1 -> U+E46D
+ ["f09f8ea2", "eeaba2"], # [ROLLER COASTER] U+1F3A2 -> U+EAE2
+ ["f09f8ea3", "eead82"], # [FISHING POLE AND FISH] U+1F3A3 -> U+EB42
+ ["f09f8ea4", "ee9483"], # [MICROPHONE] U+1F3A4 -> U+E503
+ ["f09f8ea5", "ee9497"], # [MOVIE CAMERA] U+1F3A5 -> U+E517
+ ["f09f8ea6", "ee9497"], # [CINEMA] U+1F3A6 -> U+E517
+ ["f09f8ea7", "ee9488"], # [HEADPHONE] U+1F3A7 -> U+E508
+ ["f09f8ea8", "ee969c"], # [ARTIST PALETTE] U+1F3A8 -> U+E59C
+ ["f09f8ea9", "eeabb5"], # [TOP HAT] U+1F3A9 -> U+EAF5
+ ["f09f8eaa", "ee969e"], # [CIRCUS TENT] U+1F3AA -> U+E59E
+ ["f09f8eab", "ee929e"], # [TICKET] U+1F3AB -> U+E49E
+ ["f09f8eac", "ee92be"], # [CLAPPER BOARD] U+1F3AC -> U+E4BE
+ ["f09f8ead", "ee969d"], # [PERFORMING ARTS] U+1F3AD -> U+E59D
+ ["f09f8eae", "ee9386"], # [VIDEO GAME] U+1F3AE -> U+E4C6
+ ["f09f8084", "ee9791"], # [MAHJONG TILE RED DRAGON] U+1F004 -> U+E5D1
+ ["f09f8eaf", "ee9385"], # [DIRECT HIT] U+1F3AF -> U+E4C5
+ ["f09f8eb0", "ee91ae"], # [SLOT MACHINE] U+1F3B0 -> U+E46E
+ ["f09f8eb1", "eeab9d"], # [BILLIARDS] U+1F3B1 -> U+EADD
+ ["f09f8eb2", "ee9388"], # [GAME DIE] U+1F3B2 -> U+E4C8
+ ["f09f8eb3", "eead83"], # [BOWLING] U+1F3B3 -> U+EB43
+ ["f09f8eb4", "eeadae"], # [FLOWER PLAYING CARDS] U+1F3B4 -> U+EB6E
+ ["f09f838f", "eeadaf"], # [PLAYING CARD BLACK JOKER] U+1F0CF -> U+EB6F
+ ["f09f8eb5", "ee96be"], # [MUSICAL NOTE] U+1F3B5 -> U+E5BE
+ ["f09f8eb6", "ee9485"], # [MULTIPLE MUSICAL NOTES] U+1F3B6 -> U+E505
+ ["f09f8eb7", :undef], # [SAXOPHONE] U+1F3B7 -> "[サックス]"
+ ["f09f8eb8", "ee9486"], # [GUITAR] U+1F3B8 -> U+E506
+ ["f09f8eb9", "eead80"], # [MUSICAL KEYBOARD] U+1F3B9 -> U+EB40
+ ["f09f8eba", "eeab9c"], # [TRUMPET] U+1F3BA -> U+EADC
+ ["f09f8ebb", "ee9487"], # [VIOLIN] U+1F3BB -> U+E507
+ ["f09f8ebc", "eeab8c"], # [MUSICAL SCORE] U+1F3BC -> U+EACC
+ ["e380bd", :undef], # [PART ALTERNATION MARK] U+303D -> "[歌記å·]"
+ ["f09f93b7", "ee9495"], # [CAMERA] U+1F4F7 -> U+E515
+ ["f09f93b9", "ee95be"], # [VIDEO CAMERA] U+1F4F9 -> U+E57E
+ ["f09f93ba", "ee9482"], # [TELEVISION] U+1F4FA -> U+E502
+ ["f09f93bb", "ee96b9"], # [RADIO] U+1F4FB -> U+E5B9
+ ["f09f93bc", "ee9680"], # [VIDEOCASSETTE] U+1F4FC -> U+E580
+ ["f09f928b", "ee93ab"], # [KISS MARK] U+1F48B -> U+E4EB
+ ["f09f928c", "eeadb8"], # [LOVE LETTER] U+1F48C -> U+EB78
+ ["f09f928d", "ee9494"], # [RING] U+1F48D -> U+E514
+ ["f09f928e", "ee9494"], # [GEM STONE] U+1F48E -> U+E514
+ ["f09f928f", "ee978a"], # [KISS] U+1F48F -> U+E5CA
+ ["f09f9290", "eeaa95"], # [BOUQUET] U+1F490 -> U+EA95
+ ["f09f9291", "eeab9a"], # [COUPLE WITH HEART] U+1F491 -> U+EADA
+ ["f09f9292", "ee96bb"], # [WEDDING] U+1F492 -> U+E5BB
+ ["f09f949e", "eeaa83"], # [NO ONE UNDER EIGHTEEN SYMBOL] U+1F51E -> U+EA83
+ ["c2a9", "ee9598"], # [COPYRIGHT SIGN] U+A9 -> U+E558
+ ["c2ae", "ee9599"], # [REGISTERED SIGN] U+AE -> U+E559
+ ["e284a2", "ee958e"], # [TRADE MARK SIGN] U+2122 -> U+E54E
+ ["e284b9", "ee94b3"], # [INFORMATION SOURCE] U+2139 -> U+E533
+ ["f09f949f", "ee94ab"], # [KEYCAP TEN] U+1F51F -> U+E52B
+ ["f09f93b6", "eeaa84"], # [ANTENNA WITH BARS] U+1F4F6 -> U+EA84
+ ["f09f93b3", "eeaa90"], # [VIBRATION MODE] U+1F4F3 -> U+EA90
+ ["f09f93b4", "eeaa91"], # [MOBILE PHONE OFF] U+1F4F4 -> U+EA91
+ ["f09f8d94", "ee9396"], # [HAMBURGER] U+1F354 -> U+E4D6
+ ["f09f8d99", "ee9395"], # [RICE BALL] U+1F359 -> U+E4D5
+ ["f09f8db0", "ee9390"], # [SHORTCAKE] U+1F370 -> U+E4D0
+ ["f09f8d9c", "ee96b4"], # [STEAMING BOWL] U+1F35C -> U+E5B4
+ ["f09f8d9e", "eeaaaf"], # [BREAD] U+1F35E -> U+EAAF
+ ["f09f8db3", "ee9391"], # [COOKING] U+1F373 -> U+E4D1
+ ["f09f8da6", "eeaab0"], # [SOFT ICE CREAM] U+1F366 -> U+EAB0
+ ["f09f8d9f", "eeaab1"], # [FRENCH FRIES] U+1F35F -> U+EAB1
+ ["f09f8da1", "eeaab2"], # [DANGO] U+1F361 -> U+EAB2
+ ["f09f8d98", "eeaab3"], # [RICE CRACKER] U+1F358 -> U+EAB3
+ ["f09f8d9a", "eeaab4"], # [COOKED RICE] U+1F35A -> U+EAB4
+ ["f09f8d9d", "eeaab5"], # [SPAGHETTI] U+1F35D -> U+EAB5
+ ["f09f8d9b", "eeaab6"], # [CURRY AND RICE] U+1F35B -> U+EAB6
+ ["f09f8da2", "eeaab7"], # [ODEN] U+1F362 -> U+EAB7
+ ["f09f8da3", "eeaab8"], # [SUSHI] U+1F363 -> U+EAB8
+ ["f09f8db1", "eeaabd"], # [BENTO BOX] U+1F371 -> U+EABD
+ ["f09f8db2", "eeaabe"], # [POT OF FOOD] U+1F372 -> U+EABE
+ ["f09f8da7", "eeabaa"], # [SHAVED ICE] U+1F367 -> U+EAEA
+ ["f09f8d96", "ee9384"], # [MEAT ON BONE] U+1F356 -> U+E4C4
+ ["f09f8da5", "ee93ad"], # [FISH CAKE WITH SWIRL DESIGN] U+1F365 -> U+E4ED
+ ["f09f8da0", "eeacba"], # [ROASTED SWEET POTATO] U+1F360 -> U+EB3A
+ ["f09f8d95", "eeacbb"], # [SLICE OF PIZZA] U+1F355 -> U+EB3B
+ ["f09f8d97", "eeacbc"], # [POULTRY LEG] U+1F357 -> U+EB3C
+ ["f09f8da8", "eead8a"], # [ICE CREAM] U+1F368 -> U+EB4A
+ ["f09f8da9", "eead8b"], # [DOUGHNUT] U+1F369 -> U+EB4B
+ ["f09f8daa", "eead8c"], # [COOKIE] U+1F36A -> U+EB4C
+ ["f09f8dab", "eead8d"], # [CHOCOLATE BAR] U+1F36B -> U+EB4D
+ ["f09f8dac", "eead8e"], # [CANDY] U+1F36C -> U+EB4E
+ ["f09f8dad", "eead8f"], # [LOLLIPOP] U+1F36D -> U+EB4F
+ ["f09f8dae", "eead96"], # [CUSTARD] U+1F36E -> U+EB56
+ ["f09f8daf", "eead99"], # [HONEY POT] U+1F36F -> U+EB59
+ ["f09f8da4", "eeadb0"], # [FRIED SHRIMP] U+1F364 -> U+EB70
+ ["f09f8db4", "ee92ac"], # [FORK AND KNIFE] U+1F374 -> U+E4AC
+ ["e29895", "ee9697"], # [HOT BEVERAGE] U+2615 -> U+E597
+ ["f09f8db8", "ee9382"], # [COCKTAIL GLASS] U+1F378 -> U+E4C2
+ ["f09f8dba", "ee9383"], # [BEER MUG] U+1F37A -> U+E4C3
+ ["f09f8db5", "eeaaae"], # [TEACUP WITHOUT HANDLE] U+1F375 -> U+EAAE
+ ["f09f8db6", "eeaa97"], # [SAKE BOTTLE AND CUP] U+1F376 -> U+EA97
+ ["f09f8db7", "ee9381"], # [WINE GLASS] U+1F377 -> U+E4C1
+ ["f09f8dbb", "eeaa98"], # [CLINKING BEER MUGS] U+1F37B -> U+EA98
+ ["f09f8db9", "eeacbe"], # [TROPICAL DRINK] U+1F379 -> U+EB3E
+ ["e28697", "ee9595"], # [NORTH EAST ARROW] U+2197 -> U+E555
+ ["e28698", "ee958d"], # [SOUTH EAST ARROW] U+2198 -> U+E54D
+ ["e28696", "ee958c"], # [NORTH WEST ARROW] U+2196 -> U+E54C
+ ["e28699", "ee9596"], # [SOUTH WEST ARROW] U+2199 -> U+E556
+ ["e2a4b4", "eeacad"], # [ARROW POINTING RIGHTWARDS THEN CURVING UPWARDS] U+2934 -> U+EB2D
+ ["e2a4b5", "eeacae"], # [ARROW POINTING RIGHTWARDS THEN CURVING DOWNWARDS] U+2935 -> U+EB2E
+ ["e28694", "eeadba"], # [LEFT RIGHT ARROW] U+2194 -> U+EB7A
+ ["e28695", "eeadbb"], # [UP DOWN ARROW] U+2195 -> U+EB7B
+ ["e2ac86", "ee94bf"], # [UPWARDS BLACK ARROW] U+2B06 -> U+E53F
+ ["e2ac87", "ee9580"], # [DOWNWARDS BLACK ARROW] U+2B07 -> U+E540
+ ["e29ea1", "ee9592"], # [BLACK RIGHTWARDS ARROW] U+27A1 -> U+E552
+ ["e2ac85", "ee9593"], # [LEFTWARDS BLACK ARROW] U+2B05 -> U+E553
+ ["e296b6", "ee94ae"], # [BLACK RIGHT-POINTING TRIANGLE] U+25B6 -> U+E52E
+ ["e29780", "ee94ad"], # [BLACK LEFT-POINTING TRIANGLE] U+25C0 -> U+E52D
+ ["e28fa9", "ee94b0"], # [BLACK RIGHT-POINTING DOUBLE TRIANGLE] U+23E9 -> U+E530
+ ["e28faa", "ee94af"], # [BLACK LEFT-POINTING DOUBLE TRIANGLE] U+23EA -> U+E52F
+ ["e28fab", "ee9585"], # [BLACK UP-POINTING DOUBLE TRIANGLE] U+23EB -> U+E545
+ ["e28fac", "ee9584"], # [BLACK DOWN-POINTING DOUBLE TRIANGLE] U+23EC -> U+E544
+ ["f09f94ba", "ee959a"], # [UP-POINTING RED TRIANGLE] U+1F53A -> U+E55A
+ ["f09f94bb", "ee959b"], # [DOWN-POINTING RED TRIANGLE] U+1F53B -> U+E55B
+ ["f09f94bc", "ee9583"], # [UP-POINTING SMALL RED TRIANGLE] U+1F53C -> U+E543
+ ["f09f94bd", "ee9582"], # [DOWN-POINTING SMALL RED TRIANGLE] U+1F53D -> U+E542
+ ["e2ad95", "eeaaad"], # [HEAVY LARGE CIRCLE] U+2B55 -> U+EAAD
+ ["e29d8c", "ee9590"], # [CROSS MARK] U+274C -> U+E550
+ ["e29d8e", "ee9591"], # [NEGATIVE SQUARED CROSS MARK] U+274E -> U+E551
+ ["e29da2", "ee9282"], # [HEAVY EXCLAMATION MARK ORNAMENT] U+2762 -> U+E482
+ ["e28189", "eeacaf"], # [EXCLAMATION QUESTION MARK] U+2049 -> U+EB2F
+ ["e280bc", "eeacb0"], # [DOUBLE EXCLAMATION MARK] U+203C -> U+EB30
+ ["e29d93", "ee9283"], # [BLACK QUESTION MARK ORNAMENT] U+2753 -> U+E483
+ ["e29d94", "ee9283"], # [WHITE QUESTION MARK ORNAMENT] U+2754 -> U+E483
+ ["e29d95", "ee9282"], # [WHITE EXCLAMATION MARK ORNAMENT] U+2755 -> U+E482
+ ["e380b0", :undef], # [WAVY DASH] U+3030 -> U+3013 (GETA)
+ ["e29eb0", "eeacb1"], # [CURLY LOOP] U+27B0 -> U+EB31
+ ["e29ebf", :undef], # [DOUBLE CURLY LOOP] U+27BF -> "[フリーダイヤル]"
+ ["e29da4", "ee9695"], # [HEAVY BLACK HEART] U+2764 -> U+E595
+ ["f09f9293", "eeadb5"], # [BEATING HEART] U+1F493 -> U+EB75
+ ["f09f9294", "ee91b7"], # [BROKEN HEART] U+1F494 -> U+E477
+ ["f09f9295", "ee91b8"], # [TWO HEARTS] U+1F495 -> U+E478
+ ["f09f9296", "eeaaa6"], # [SPARKLING HEART] U+1F496 -> U+EAA6
+ ["f09f9297", "eeadb5"], # [GROWING HEART] U+1F497 -> U+EB75
+ ["f09f9298", "ee93aa"], # [HEART WITH ARROW] U+1F498 -> U+E4EA
+ ["f09f9299", "eeaaa7"], # [BLUE HEART] U+1F499 -> U+EAA7
+ ["f09f929a", "eeaaa8"], # [GREEN HEART] U+1F49A -> U+EAA8
+ ["f09f929b", "eeaaa9"], # [YELLOW HEART] U+1F49B -> U+EAA9
+ ["f09f929c", "eeaaaa"], # [PURPLE HEART] U+1F49C -> U+EAAA
+ ["f09f929d", "eead94"], # [HEART WITH RIBBON] U+1F49D -> U+EB54
+ ["f09f929e", "ee96af"], # [REVOLVING HEARTS] U+1F49E -> U+E5AF
+ ["f09f929f", "ee9695"], # [HEART DECORATION] U+1F49F -> U+E595
+ ["e299a5", "eeaaa5"], # [BLACK HEART SUIT] U+2665 -> U+EAA5
+ ["e299a0", "ee96a1"], # [BLACK SPADE SUIT] U+2660 -> U+E5A1
+ ["e299a6", "ee96a2"], # [BLACK DIAMOND SUIT] U+2666 -> U+E5A2
+ ["e299a3", "ee96a3"], # [BLACK CLUB SUIT] U+2663 -> U+E5A3
+ ["f09f9aac", "ee91bd"], # [SMOKING SYMBOL] U+1F6AC -> U+E47D
+ ["f09f9aad", "ee91be"], # [NO SMOKING SYMBOL] U+1F6AD -> U+E47E
+ ["e299bf", "ee91bf"], # [WHEELCHAIR SYMBOL] U+267F -> U+E47F
+ ["f09f9aa9", "eeacac"], # [TRIANGULAR FLAG ON POST] U+1F6A9 -> U+EB2C
+ ["e29aa0", "ee9281"], # [WARNING SIGN] U+26A0 -> U+E481
+ ["e29b94", "ee9284"], # [NO ENTRY] U+26D4 -> U+E484
+ ["e299bb", "eeadb9"], # [BLACK UNIVERSAL RECYCLING SYMBOL] U+267B -> U+EB79
+ ["f09f9ab2", "ee92ae"], # [BICYCLE] U+1F6B2 -> U+E4AE
+ ["f09f9ab6", "eeadb2"], # [PEDESTRIAN] U+1F6B6 -> U+EB72
+ ["f09f9ab9", :undef], # [MENS SYMBOL] U+1F6B9 -> "[♂]"
+ ["f09f9aba", :undef], # [WOMENS SYMBOL] U+1F6BA -> "[♀]"
+ ["f09f9b80", "ee9798"], # [BATH] U+1F6C0 -> U+E5D8
+ ["f09f9abb", "ee92a5"], # [RESTROOM] U+1F6BB -> U+E4A5
+ ["f09f9abd", "ee92a5"], # [TOILET] U+1F6BD -> U+E4A5
+ ["f09f9abe", "ee92a5"], # [WATER CLOSET] U+1F6BE -> U+E4A5
+ ["f09f9abc", "eeac98"], # [BABY SYMBOL] U+1F6BC -> U+EB18
+ ["f09f9aaa", :undef], # [DOOR] U+1F6AA -> "[ドア]"
+ ["f09f9aab", "ee9581"], # [NO ENTRY SIGN] U+1F6AB -> U+E541
+ ["e29c94", "ee9597"], # [HEAVY CHECK MARK] U+2714 -> U+E557
+ ["f09f8691", "ee96ab"], # [SQUARED CL] U+1F191 -> U+E5AB
+ ["f09f8692", "eeaa85"], # [SQUARED COOL] U+1F192 -> U+EA85
+ ["f09f8693", "ee95b8"], # [SQUARED FREE] U+1F193 -> U+E578
+ ["f09f8694", "eeaa88"], # [SQUARED ID] U+1F194 -> U+EA88
+ ["f09f8695", "ee96b5"], # [SQUARED NEW] U+1F195 -> U+E5B5
+ ["f09f8696", :undef], # [SQUARED NG] U+1F196 -> "[NG]"
+ ["f09f8697", "ee96ad"], # [SQUARED OK] U+1F197 -> U+E5AD
+ ["f09f8698", "ee93a8"], # [SQUARED SOS] U+1F198 -> U+E4E8
+ ["f09f8699", "ee948f"], # [SQUARED UP WITH EXCLAMATION MARK] U+1F199 -> U+E50F
+ ["f09f869a", "ee9792"], # [SQUARED VS] U+1F19A -> U+E5D2
+ ["f09f8881", :undef], # [SQUARED KATAKANA KOKO] U+1F201 -> "[ココ]"
+ ["f09f8882", "eeaa87"], # [SQUARED KATAKANA SA] U+1F202 -> U+EA87
+ ["f09f88b2", :undef], # [SQUARED CJK UNIFIED IDEOGRAPH-7981] U+1F232 -> "[ç¦]"
+ ["f09f88b3", "eeaa8a"], # [SQUARED CJK UNIFIED IDEOGRAPH-7A7A] U+1F233 -> U+EA8A
+ ["f09f88b4", :undef], # [SQUARED CJK UNIFIED IDEOGRAPH-5408] U+1F234 -> "[åˆ]"
+ ["f09f88b5", "eeaa89"], # [SQUARED CJK UNIFIED IDEOGRAPH-6E80] U+1F235 -> U+EA89
+ ["f09f88b6", :undef], # [SQUARED CJK UNIFIED IDEOGRAPH-6709] U+1F236 -> "[有]"
+ ["f09f889a", :undef], # [SQUARED CJK UNIFIED IDEOGRAPH-7121] U+1F21A -> "[ç„¡]"
+ ["f09f88b7", :undef], # [SQUARED CJK UNIFIED IDEOGRAPH-6708] U+1F237 -> "[月]"
+ ["f09f88b8", :undef], # [SQUARED CJK UNIFIED IDEOGRAPH-7533] U+1F238 -> "[申]"
+ ["f09f88b9", "eeaa86"], # [SQUARED CJK UNIFIED IDEOGRAPH-5272] U+1F239 -> U+EA86
+ ["f09f88af", "eeaa8b"], # [SQUARED CJK UNIFIED IDEOGRAPH-6307] U+1F22F -> U+EA8B
+ ["f09f88ba", "eeaa8c"], # [SQUARED CJK UNIFIED IDEOGRAPH-55B6] U+1F23A -> U+EA8C
+ ["e38a99", "ee93b1"], # [CIRCLED IDEOGRAPH SECRET] U+3299 -> U+E4F1
+ ["e38a97", "eeaa99"], # [CIRCLED IDEOGRAPH CONGRATULATION] U+3297 -> U+EA99
+ ["f09f8990", "ee93b7"], # [CIRCLED IDEOGRAPH ADVANTAGE] U+1F250 -> U+E4F7
+ ["f09f8991", "eeac81"], # [CIRCLED IDEOGRAPH ACCEPT] U+1F251 -> U+EB01
+ ["e29e95", "ee94bc"], # [HEAVY PLUS SIGN] U+2795 -> U+E53C
+ ["e29e96", "ee94bd"], # [HEAVY MINUS SIGN] U+2796 -> U+E53D
+ ["e29c96", "ee958f"], # [HEAVY MULTIPLICATION X] U+2716 -> U+E54F
+ ["e29e97", "ee9594"], # [HEAVY DIVISION SIGN] U+2797 -> U+E554
+ ["f09f92a0", :undef], # [DIAMOND SHAPE WITH A DOT INSIDE] U+1F4A0 -> U+3013 (GETA)
+ ["f09f92a1", "ee91b6"], # [ELECTRIC LIGHT BULB] U+1F4A1 -> U+E476
+ ["f09f92a2", "ee93a5"], # [ANGER SYMBOL] U+1F4A2 -> U+E4E5
+ ["f09f92a3", "ee91ba"], # [BOMB] U+1F4A3 -> U+E47A
+ ["f09f92a4", "ee91b5"], # [SLEEPING SYMBOL] U+1F4A4 -> U+E475
+ ["f09f92a5", "ee96b0"], # [COLLISION SYMBOL] U+1F4A5 -> U+E5B0
+ ["f09f92a6", "ee96b1"], # [SPLASHING SWEAT SYMBOL] U+1F4A6 -> U+E5B1
+ ["f09f92a7", "ee93a6"], # [DROP OF WATER] U+1F4A7 -> U+E4E6
+ ["f09f92a8", "ee93b4"], # [DASH SYMBOL] U+1F4A8 -> U+E4F4
+ ["f09f92a9", "ee93b5"], # [PILE OF POO] U+1F4A9 -> U+E4F5
+ ["f09f92aa", "ee93a9"], # [FLEXED BICEPS] U+1F4AA -> U+E4E9
+ ["f09f92ab", "eead9c"], # [DIZZY SYMBOL] U+1F4AB -> U+EB5C
+ ["f09f92ac", "ee93bd"], # [SPEECH BALLOON] U+1F4AC -> U+E4FD
+ ["e29ca8", "eeaaab"], # [SPARKLES] U+2728 -> U+EAAB
+ ["e29cb4", "ee91b9"], # [EIGHT POINTED BLACK STAR] U+2734 -> U+E479
+ ["e29cb3", "ee94be"], # [EIGHT SPOKED ASTERISK] U+2733 -> U+E53E
+ ["e29aaa", "ee94ba"], # [MEDIUM WHITE CIRCLE] U+26AA -> U+E53A
+ ["e29aab", "ee94bb"], # [MEDIUM BLACK CIRCLE] U+26AB -> U+E53B
+ ["f09f94b4", "ee958a"], # [LARGE RED CIRCLE] U+1F534 -> U+E54A
+ ["f09f94b5", "ee958b"], # [LARGE BLUE CIRCLE] U+1F535 -> U+E54B
+ ["f09f94b2", "ee958b"], # [BLACK SQUARE BUTTON] U+1F532 -> U+E54B
+ ["f09f94b3", "ee958b"], # [WHITE SQUARE BUTTON] U+1F533 -> U+E54B
+ ["e2ad90", "ee928b"], # [WHITE MEDIUM STAR] U+2B50 -> U+E48B
+ ["e2ac9c", "ee9588"], # [WHITE LARGE SQUARE] U+2B1C -> U+E548
+ ["e2ac9b", "ee9589"], # [BLACK LARGE SQUARE] U+2B1B -> U+E549
+ ["e296ab", "ee94b1"], # [WHITE SMALL SQUARE] U+25AB -> U+E531
+ ["e296aa", "ee94b2"], # [BLACK SMALL SQUARE] U+25AA -> U+E532
+ ["e297bd", "ee94b4"], # [WHITE MEDIUM SMALL SQUARE] U+25FD -> U+E534
+ ["e297be", "ee94b5"], # [BLACK MEDIUM SMALL SQUARE] U+25FE -> U+E535
+ ["e297bb", "ee94b8"], # [WHITE MEDIUM SQUARE] U+25FB -> U+E538
+ ["e297bc", "ee94b9"], # [BLACK MEDIUM SQUARE] U+25FC -> U+E539
+ ["f09f94b6", "ee9586"], # [LARGE ORANGE DIAMOND] U+1F536 -> U+E546
+ ["f09f94b7", "ee9587"], # [LARGE BLUE DIAMOND] U+1F537 -> U+E547
+ ["f09f94b8", "ee94b6"], # [SMALL ORANGE DIAMOND] U+1F538 -> U+E536
+ ["f09f94b9", "ee94b7"], # [SMALL BLUE DIAMOND] U+1F539 -> U+E537
+ ["e29d87", "ee91ac"], # [SPARKLE] U+2747 -> U+E46C
+ ["f09f92ae", "ee93b0"], # [WHITE FLOWER] U+1F4AE -> U+E4F0
+ ["f09f92af", "ee93b2"], # [HUNDRED POINTS SYMBOL] U+1F4AF -> U+E4F2
+ ["e286a9", "ee959d"], # [LEFTWARDS ARROW WITH HOOK] U+21A9 -> U+E55D
+ ["e286aa", "ee959c"], # [RIGHTWARDS ARROW WITH HOOK] U+21AA -> U+E55C
+ ["f09f9483", "eeac8d"], # [CLOCKWISE DOWNWARDS AND UPWARDS OPEN CIRCLE ARROWS] U+1F503 -> U+EB0D
+ ["f09f948a", "ee9491"], # [SPEAKER WITH THREE SOUND WAVES] U+1F50A -> U+E511
+ ["f09f948b", "ee9684"], # [BATTERY] U+1F50B -> U+E584
+ ["f09f948c", "ee9689"], # [ELECTRIC PLUG] U+1F50C -> U+E589
+ ["f09f948d", "ee9498"], # [LEFT-POINTING MAGNIFYING GLASS] U+1F50D -> U+E518
+ ["f09f948e", "eeac85"], # [RIGHT-POINTING MAGNIFYING GLASS] U+1F50E -> U+EB05
+ ["f09f9492", "ee949c"], # [LOCK] U+1F512 -> U+E51C
+ ["f09f9493", "ee949c"], # [OPEN LOCK] U+1F513 -> U+E51C
+ ["f09f948f", "eeac8c"], # [LOCK WITH INK PEN] U+1F50F -> U+EB0C
+ ["f09f9490", "eeabbc"], # [CLOSED LOCK WITH KEY] U+1F510 -> U+EAFC
+ ["f09f9491", "ee9499"], # [KEY] U+1F511 -> U+E519
+ ["f09f9494", "ee9492"], # [BELL] U+1F514 -> U+E512
+ ["e29891", "eeac82"], # [BALLOT BOX WITH CHECK] U+2611 -> U+EB02
+ ["f09f9498", "eeac84"], # [RADIO BUTTON] U+1F518 -> U+EB04
+ ["f09f9496", "eeac87"], # [BOOKMARK] U+1F516 -> U+EB07
+ ["f09f9497", "ee968a"], # [LINK SYMBOL] U+1F517 -> U+E58A
+ ["f09f9499", "eeac86"], # [BACK WITH LEFTWARDS ARROW ABOVE] U+1F519 -> U+EB06
+ ["f09f949a", :undef], # [END WITH LEFTWARDS ARROW ABOVE] U+1F51A -> "[end]"
+ ["f09f949b", :undef], # [ON WITH EXCLAMATION MARK WITH LEFT RIGHT ARROW ABOVE] U+1F51B -> "[ON]"
+ ["f09f949c", :undef], # [SOON WITH RIGHTWARDS ARROW ABOVE] U+1F51C -> "[SOON]"
+ ["f09f949d", :undef], # [TOP WITH UPWARDS ARROW ABOVE] U+1F51D -> "[TOP]"
+ ["e28083", "ee968c"], # [EM SPACE] U+2003 -> U+E58C
+ ["e28082", "ee968d"], # [EN SPACE] U+2002 -> U+E58D
+ ["e28085", "ee968e"], # [FOUR-PER-EM SPACE] U+2005 -> U+E58E
+ ["e29c85", "ee959e"], # [WHITE HEAVY CHECK MARK] U+2705 -> U+E55E
+ ["e29c8a", "eeae83"], # [RAISED FIST] U+270A -> U+EB83
+ ["e29c8b", "ee96a7"], # [RAISED HAND] U+270B -> U+E5A7
+ ["e29c8c", "ee96a6"], # [VICTORY HAND] U+270C -> U+E5A6
+ ["f09f918a", "ee93b3"], # [FISTED HAND SIGN] U+1F44A -> U+E4F3
+ ["f09f918d", "ee93b9"], # [THUMBS UP SIGN] U+1F44D -> U+E4F9
+ ["e2989d", "ee93b6"], # [WHITE UP POINTING INDEX] U+261D -> U+E4F6
+ ["f09f9186", "eeaa8d"], # [WHITE UP POINTING BACKHAND INDEX] U+1F446 -> U+EA8D
+ ["f09f9187", "eeaa8e"], # [WHITE DOWN POINTING BACKHAND INDEX] U+1F447 -> U+EA8E
+ ["f09f9188", "ee93bf"], # [WHITE LEFT POINTING BACKHAND INDEX] U+1F448 -> U+E4FF
+ ["f09f9189", "ee9480"], # [WHITE RIGHT POINTING BACKHAND INDEX] U+1F449 -> U+E500
+ ["f09f918b", "eeab96"], # [WAVING HAND SIGN] U+1F44B -> U+EAD6
+ ["f09f918f", "eeab93"], # [CLAPPING HANDS SIGN] U+1F44F -> U+EAD3
+ ["f09f918c", "eeab94"], # [OK HAND SIGN] U+1F44C -> U+EAD4
+ ["f09f918e", "eeab95"], # [THUMBS DOWN SIGN] U+1F44E -> U+EAD5
+ ["f09f9190", "eeab96"], # [OPEN HANDS SIGN] U+1F450 -> U+EAD6
+]
+
+EMOJI_EXCHANGE_TBL['UTF-8']['UTF8-SoftBank'] = [
+ ["e29880", "ee818a"], # [BLACK SUN WITH RAYS] U+2600 -> U+E04A
+ ["e29881", "ee8189"], # [CLOUD] U+2601 -> U+E049
+ ["e29894", "ee818b"], # [UMBRELLA WITH RAIN DROPS] U+2614 -> U+E04B
+ ["e29b84", "ee8188"], # [SNOWMAN WITHOUT SNOW] U+26C4 -> U+E048
+ ["e29aa1", "ee84bd"], # [HIGH VOLTAGE SIGN] U+26A1 -> U+E13D
+ ["f09f8c80", "ee9183"], # [CYCLONE] U+1F300 -> U+E443
+ ["f09f8c81", :undef], # [FOGGY] U+1F301 -> "[霧]"
+ ["f09f8c82", "ee90bc"], # [CLOSED UMBRELLA] U+1F302 -> U+E43C
+ ["f09f8c83", "ee918b"], # [NIGHT WITH STARS] U+1F303 -> U+E44B
+ ["f09f8c84", "ee818d"], # [SUNRISE OVER MOUNTAINS] U+1F304 -> U+E04D
+ ["f09f8c85", "ee9189"], # [SUNRISE] U+1F305 -> U+E449
+ ["f09f8c87", "ee918a"], # [SUNSET OVER BUILDINGS] U+1F307 -> U+E44A
+ ["f09f8c88", "ee918c"], # [RAINBOW] U+1F308 -> U+E44C
+ ["e29d84", :undef], # [SNOWFLAKE] U+2744 -> "[é›ªçµæ™¶]"
+ ["e29b85", "ee818aee8189"], # [SUN BEHIND CLOUD] U+26C5 -> U+E04A U+E049
+ ["f09f8c89", "ee918b"], # [BRIDGE AT NIGHT] U+1F309 -> U+E44B
+ ["f09f8c8a", "ee90be"], # [WATER WAVE] U+1F30A -> U+E43E
+ ["f09f8c8b", :undef], # [VOLCANO] U+1F30B -> "[ç«å±±]"
+ ["f09f8c8c", "ee918b"], # [MILKY WAY] U+1F30C -> U+E44B
+ ["f09f8c8f", :undef], # [EARTH GLOBE ASIA-AUSTRALIA] U+1F30F -> "[地çƒ]"
+ ["f09f8c91", :undef], # [NEW MOON SYMBOL] U+1F311 -> "â—"
+ ["f09f8c94", "ee818c"], # [WAXING GIBBOUS MOON SYMBOL] U+1F314 -> U+E04C
+ ["f09f8c93", "ee818c"], # [FIRST QUARTER MOON SYMBOL] U+1F313 -> U+E04C
+ ["f09f8c99", "ee818c"], # [CRESCENT MOON] U+1F319 -> U+E04C
+ ["f09f8c95", :undef], # [FULL MOON SYMBOL] U+1F315 -> "â—‹"
+ ["f09f8c9b", "ee818c"], # [FIRST QUARTER MOON WITH FACE] U+1F31B -> U+E04C
+ ["f09f8c9f", "ee8cb5"], # [GLOWING STAR] U+1F31F -> U+E335
+ ["f09f8ca0", :undef], # [SHOOTING STAR] U+1F320 -> "☆彡"
+ ["f09f9590", "ee80a4"], # [CLOCK FACE ONE OCLOCK] U+1F550 -> U+E024
+ ["f09f9591", "ee80a5"], # [CLOCK FACE TWO OCLOCK] U+1F551 -> U+E025
+ ["f09f9592", "ee80a6"], # [CLOCK FACE THREE OCLOCK] U+1F552 -> U+E026
+ ["f09f9593", "ee80a7"], # [CLOCK FACE FOUR OCLOCK] U+1F553 -> U+E027
+ ["f09f9594", "ee80a8"], # [CLOCK FACE FIVE OCLOCK] U+1F554 -> U+E028
+ ["f09f9595", "ee80a9"], # [CLOCK FACE SIX OCLOCK] U+1F555 -> U+E029
+ ["f09f9596", "ee80aa"], # [CLOCK FACE SEVEN OCLOCK] U+1F556 -> U+E02A
+ ["f09f9597", "ee80ab"], # [CLOCK FACE EIGHT OCLOCK] U+1F557 -> U+E02B
+ ["f09f9598", "ee80ac"], # [CLOCK FACE NINE OCLOCK] U+1F558 -> U+E02C
+ ["f09f9599", "ee80ad"], # [CLOCK FACE TEN OCLOCK] U+1F559 -> U+E02D
+ ["f09f959a", "ee80ae"], # [CLOCK FACE ELEVEN OCLOCK] U+1F55A -> U+E02E
+ ["f09f959b", "ee80af"], # [CLOCK FACE TWELVE OCLOCK] U+1F55B -> U+E02F
+ ["e28c9a", :undef], # [WATCH] U+231A -> "[腕時計]"
+ ["e28c9b", :undef], # [HOURGLASS] U+231B -> "[砂時計]"
+ ["e28fb0", "ee80ad"], # [ALARM CLOCK] U+23F0 -> U+E02D
+ ["e28fb3", :undef], # [HOURGLASS WITH FLOWING SAND] U+23F3 -> "[砂時計]"
+ ["e29988", "ee88bf"], # [ARIES] U+2648 -> U+E23F
+ ["e29989", "ee8980"], # [TAURUS] U+2649 -> U+E240
+ ["e2998a", "ee8981"], # [GEMINI] U+264A -> U+E241
+ ["e2998b", "ee8982"], # [CANCER] U+264B -> U+E242
+ ["e2998c", "ee8983"], # [LEO] U+264C -> U+E243
+ ["e2998d", "ee8984"], # [VIRGO] U+264D -> U+E244
+ ["e2998e", "ee8985"], # [LIBRA] U+264E -> U+E245
+ ["e2998f", "ee8986"], # [SCORPIUS] U+264F -> U+E246
+ ["e29990", "ee8987"], # [SAGITTARIUS] U+2650 -> U+E247
+ ["e29991", "ee8988"], # [CAPRICORN] U+2651 -> U+E248
+ ["e29992", "ee8989"], # [AQUARIUS] U+2652 -> U+E249
+ ["e29993", "ee898a"], # [PISCES] U+2653 -> U+E24A
+ ["e29b8e", "ee898b"], # [OPHIUCHUS] U+26CE -> U+E24B
+ ["f09f8d80", "ee8490"], # [FOUR LEAF CLOVER] U+1F340 -> U+E110
+ ["f09f8cb7", "ee8c84"], # [TULIP] U+1F337 -> U+E304
+ ["f09f8cb1", "ee8490"], # [SEEDLING] U+1F331 -> U+E110
+ ["f09f8d81", "ee8498"], # [MAPLE LEAF] U+1F341 -> U+E118
+ ["f09f8cb8", "ee80b0"], # [CHERRY BLOSSOM] U+1F338 -> U+E030
+ ["f09f8cb9", "ee80b2"], # [ROSE] U+1F339 -> U+E032
+ ["f09f8d82", "ee8499"], # [FALLEN LEAF] U+1F342 -> U+E119
+ ["f09f8d83", "ee9187"], # [LEAF FLUTTERING IN WIND] U+1F343 -> U+E447
+ ["f09f8cba", "ee8c83"], # [HIBISCUS] U+1F33A -> U+E303
+ ["f09f8cbb", "ee8c85"], # [SUNFLOWER] U+1F33B -> U+E305
+ ["f09f8cb4", "ee8c87"], # [PALM TREE] U+1F334 -> U+E307
+ ["f09f8cb5", "ee8c88"], # [CACTUS] U+1F335 -> U+E308
+ ["f09f8cbe", "ee9184"], # [EAR OF RICE] U+1F33E -> U+E444
+ ["f09f8cbd", :undef], # [EAR OF MAIZE] U+1F33D -> "[ã¨ã†ã‚‚ã‚ã“ã—]"
+ ["f09f8d84", :undef], # [MUSHROOM] U+1F344 -> "[キノコ]"
+ ["f09f8cb0", :undef], # [CHESTNUT] U+1F330 -> "[æ —]"
+ ["f09f8cbc", "ee8c85"], # [BLOSSOM] U+1F33C -> U+E305
+ ["f09f8cbf", "ee8490"], # [HERB] U+1F33F -> U+E110
+ ["f09f8d92", :undef], # [CHERRIES] U+1F352 -> "[ã•ãらんã¼]"
+ ["f09f8d8c", :undef], # [BANANA] U+1F34C -> "[ãƒãƒŠãƒŠ]"
+ ["f09f8d8e", "ee8d85"], # [RED APPLE] U+1F34E -> U+E345
+ ["f09f8d8a", "ee8d86"], # [TANGERINE] U+1F34A -> U+E346
+ ["f09f8d93", "ee8d87"], # [STRAWBERRY] U+1F353 -> U+E347
+ ["f09f8d89", "ee8d88"], # [WATERMELON] U+1F349 -> U+E348
+ ["f09f8d85", "ee8d89"], # [TOMATO] U+1F345 -> U+E349
+ ["f09f8d86", "ee8d8a"], # [AUBERGINE] U+1F346 -> U+E34A
+ ["f09f8d88", :undef], # [MELON] U+1F348 -> "[メロン]"
+ ["f09f8d8d", :undef], # [PINEAPPLE] U+1F34D -> "[パイナップル]"
+ ["f09f8d87", :undef], # [GRAPES] U+1F347 -> "[ブドウ]"
+ ["f09f8d91", :undef], # [PEACH] U+1F351 -> "[モモ]"
+ ["f09f8d8f", "ee8d85"], # [GREEN APPLE] U+1F34F -> U+E345
+ ["f09f9180", "ee9099"], # [EYES] U+1F440 -> U+E419
+ ["f09f9182", "ee909b"], # [EAR] U+1F442 -> U+E41B
+ ["f09f9183", "ee909a"], # [NOSE] U+1F443 -> U+E41A
+ ["f09f9184", "ee909c"], # [MOUTH] U+1F444 -> U+E41C
+ ["f09f9185", "ee9089"], # [TONGUE] U+1F445 -> U+E409
+ ["f09f9284", "ee8c9c"], # [LIPSTICK] U+1F484 -> U+E31C
+ ["f09f9285", "ee8c9d"], # [NAIL POLISH] U+1F485 -> U+E31D
+ ["f09f9286", "ee8c9e"], # [FACE MASSAGE] U+1F486 -> U+E31E
+ ["f09f9287", "ee8c9f"], # [HAIRCUT] U+1F487 -> U+E31F
+ ["f09f9288", "ee8ca0"], # [BARBER POLE] U+1F488 -> U+E320
+ ["f09f91a4", :undef], # [BUST IN SILHOUETTE] U+1F464 -> U+3013 (GETA)
+ ["f09f91a6", "ee8081"], # [BOY] U+1F466 -> U+E001
+ ["f09f91a7", "ee8082"], # [GIRL] U+1F467 -> U+E002
+ ["f09f91a8", "ee8084"], # [MAN] U+1F468 -> U+E004
+ ["f09f91a9", "ee8085"], # [WOMAN] U+1F469 -> U+E005
+ ["f09f91aa", :undef], # [FAMILY] U+1F46A -> "[å®¶æ—]"
+ ["f09f91ab", "ee90a8"], # [MAN AND WOMAN HOLDING HANDS] U+1F46B -> U+E428
+ ["f09f91ae", "ee8592"], # [POLICE OFFICER] U+1F46E -> U+E152
+ ["f09f91af", "ee90a9"], # [WOMAN WITH BUNNY EARS] U+1F46F -> U+E429
+ ["f09f91b0", :undef], # [BRIDE WITH VEIL] U+1F470 -> "[花å«]"
+ ["f09f91b1", "ee9495"], # [WESTERN PERSON] U+1F471 -> U+E515
+ ["f09f91b2", "ee9496"], # [MAN WITH GUA PI MAO] U+1F472 -> U+E516
+ ["f09f91b3", "ee9497"], # [MAN WITH TURBAN] U+1F473 -> U+E517
+ ["f09f91b4", "ee9498"], # [OLDER MAN] U+1F474 -> U+E518
+ ["f09f91b5", "ee9499"], # [OLDER WOMAN] U+1F475 -> U+E519
+ ["f09f91b6", "ee949a"], # [BABY] U+1F476 -> U+E51A
+ ["f09f91b7", "ee949b"], # [CONSTRUCTION WORKER] U+1F477 -> U+E51B
+ ["f09f91b8", "ee949c"], # [PRINCESS] U+1F478 -> U+E51C
+ ["f09f91b9", :undef], # [JAPANESE OGRE] U+1F479 -> "[ãªã¾ã¯ã’]"
+ ["f09f91ba", :undef], # [JAPANESE GOBLIN] U+1F47A -> "[天狗]"
+ ["f09f91bb", "ee849b"], # [GHOST] U+1F47B -> U+E11B
+ ["f09f91bc", "ee818e"], # [BABY ANGEL] U+1F47C -> U+E04E
+ ["f09f91bd", "ee848c"], # [EXTRATERRESTRIAL ALIEN] U+1F47D -> U+E10C
+ ["f09f91be", "ee84ab"], # [ALIEN MONSTER] U+1F47E -> U+E12B
+ ["f09f91bf", "ee849a"], # [IMP] U+1F47F -> U+E11A
+ ["f09f9280", "ee849c"], # [SKULL] U+1F480 -> U+E11C
+ ["f09f9281", "ee8993"], # [INFORMATION DESK PERSON] U+1F481 -> U+E253
+ ["f09f9282", "ee949e"], # [GUARDSMAN] U+1F482 -> U+E51E
+ ["f09f9283", "ee949f"], # [DANCER] U+1F483 -> U+E51F
+ ["f09f908c", :undef], # [SNAIL] U+1F40C -> "[カタツムリ]"
+ ["f09f908d", "ee94ad"], # [SNAKE] U+1F40D -> U+E52D
+ ["f09f908e", "ee84b4"], # [HORSE] U+1F40E -> U+E134
+ ["f09f9094", "ee94ae"], # [CHICKEN] U+1F414 -> U+E52E
+ ["f09f9097", "ee94af"], # [BOAR] U+1F417 -> U+E52F
+ ["f09f90ab", "ee94b0"], # [BACTRIAN CAMEL] U+1F42B -> U+E530
+ ["f09f9098", "ee94a6"], # [ELEPHANT] U+1F418 -> U+E526
+ ["f09f90a8", "ee94a7"], # [KOALA] U+1F428 -> U+E527
+ ["f09f9092", "ee94a8"], # [MONKEY] U+1F412 -> U+E528
+ ["f09f9091", "ee94a9"], # [SHEEP] U+1F411 -> U+E529
+ ["f09f9099", "ee848a"], # [OCTOPUS] U+1F419 -> U+E10A
+ ["f09f909a", "ee9181"], # [SPIRAL SHELL] U+1F41A -> U+E441
+ ["f09f909b", "ee94a5"], # [BUG] U+1F41B -> U+E525
+ ["f09f909c", :undef], # [ANT] U+1F41C -> "[アリ]"
+ ["f09f909d", :undef], # [HONEYBEE] U+1F41D -> "[ミツãƒãƒ]"
+ ["f09f909e", :undef], # [LADY BEETLE] U+1F41E -> "[ã¦ã‚“ã¨ã†è™«]"
+ ["f09f90a0", "ee94a2"], # [TROPICAL FISH] U+1F420 -> U+E522
+ ["f09f90a1", "ee8099"], # [BLOWFISH] U+1F421 -> U+E019
+ ["f09f90a2", :undef], # [TURTLE] U+1F422 -> "[カメ]"
+ ["f09f90a4", "ee94a3"], # [BABY CHICK] U+1F424 -> U+E523
+ ["f09f90a5", "ee94a3"], # [FRONT-FACING BABY CHICK] U+1F425 -> U+E523
+ ["f09f90a6", "ee94a1"], # [BIRD] U+1F426 -> U+E521
+ ["f09f90a3", "ee94a3"], # [HATCHING CHICK] U+1F423 -> U+E523
+ ["f09f90a7", "ee8195"], # [PENGUIN] U+1F427 -> U+E055
+ ["f09f90a9", "ee8192"], # [POODLE] U+1F429 -> U+E052
+ ["f09f909f", "ee8099"], # [FISH] U+1F41F -> U+E019
+ ["f09f90ac", "ee94a0"], # [DOLPHIN] U+1F42C -> U+E520
+ ["f09f90ad", "ee8193"], # [MOUSE FACE] U+1F42D -> U+E053
+ ["f09f90af", "ee8190"], # [TIGER FACE] U+1F42F -> U+E050
+ ["f09f90b1", "ee818f"], # [CAT FACE] U+1F431 -> U+E04F
+ ["f09f90b3", "ee8194"], # [SPOUTING WHALE] U+1F433 -> U+E054
+ ["f09f90b4", "ee809a"], # [HORSE FACE] U+1F434 -> U+E01A
+ ["f09f90b5", "ee8489"], # [MONKEY FACE] U+1F435 -> U+E109
+ ["f09f90b6", "ee8192"], # [DOG FACE] U+1F436 -> U+E052
+ ["f09f90b7", "ee848b"], # [PIG FACE] U+1F437 -> U+E10B
+ ["f09f90bb", "ee8191"], # [BEAR FACE] U+1F43B -> U+E051
+ ["f09f90b9", "ee94a4"], # [HAMSTER FACE] U+1F439 -> U+E524
+ ["f09f90ba", "ee94aa"], # [WOLF FACE] U+1F43A -> U+E52A
+ ["f09f90ae", "ee94ab"], # [COW FACE] U+1F42E -> U+E52B
+ ["f09f90b0", "ee94ac"], # [RABBIT FACE] U+1F430 -> U+E52C
+ ["f09f90b8", "ee94b1"], # [FROG FACE] U+1F438 -> U+E531
+ ["f09f90be", "ee94b6"], # [PAW PRINTS] U+1F43E -> U+E536
+ ["f09f90b2", :undef], # [DRAGON FACE] U+1F432 -> "[è¾°]"
+ ["f09f90bc", :undef], # [PANDA FACE] U+1F43C -> "[パンダ]"
+ ["f09f90bd", "ee848b"], # [PIG NOSE] U+1F43D -> U+E10B
+ ["f09f9880", "ee8199"], # [ANGRY FACE] U+1F600 -> U+E059
+ ["f09f9881", "ee9083"], # [ANGUISHED FACE] U+1F601 -> U+E403
+ ["f09f9882", "ee9090"], # [ASTONISHED FACE] U+1F602 -> U+E410
+ ["f09f9883", "ee8198"], # [DISAPPOINTED FACE] U+1F603 -> U+E058
+ ["f09f9884", "ee9086"], # [DIZZY FACE] U+1F604 -> U+E406
+ ["f09f9885", "ee908f"], # [EXASPERATED FACE] U+1F605 -> U+E40F
+ ["f09f9886", "ee908e"], # [EXPRESSIONLESS FACE] U+1F606 -> U+E40E
+ ["f09f9887", "ee8486"], # [FACE WITH HEART-SHAPED EYES] U+1F607 -> U+E106
+ ["f09f9888", "ee9084"], # [FACE WITH LOOK OF TRIUMPH] U+1F608 -> U+E404
+ ["f09f9889", "ee8485"], # [WINKING FACE WITH STUCK-OUT TONGUE] U+1F609 -> U+E105
+ ["f09f988a", "ee9089"], # [FACE WITH STUCK-OUT TONGUE] U+1F60A -> U+E409
+ ["f09f988b", "ee8196"], # [FACE SAVOURING DELICIOUS FOOD] U+1F60B -> U+E056
+ ["f09f988c", "ee9098"], # [FACE THROWING A KISS] U+1F60C -> U+E418
+ ["f09f988d", "ee9097"], # [FACE KISSING] U+1F60D -> U+E417
+ ["f09f988e", "ee908c"], # [FACE WITH MASK] U+1F60E -> U+E40C
+ ["f09f988f", "ee908d"], # [FLUSHED FACE] U+1F60F -> U+E40D
+ ["f09f9890", "ee8197"], # [HAPPY FACE WITH OPEN MOUTH] U+1F610 -> U+E057
+ ["f09f9891", "ee9095ee8cb1"], # [HAPPY FACE WITH OPEN MOUTH AND COLD SWEAT] U+1F611 -> U+E415 U+E331
+ ["f09f9892", "ee908a"], # [HAPPY FACE WITH OPEN MOUTH AND CLOSED EYES] U+1F612 -> U+E40A
+ ["f09f9893", "ee9084"], # [HAPPY FACE WITH GRIN] U+1F613 -> U+E404
+ ["f09f9894", "ee9092"], # [HAPPY AND CRYING FACE] U+1F614 -> U+E412
+ ["f09f9895", "ee8196"], # [HAPPY FACE WITH WIDE MOUTH AND RAISED EYEBROWS] U+1F615 -> U+E056
+ ["e298ba", "ee9094"], # [WHITE SMILING FACE] U+263A -> U+E414
+ ["f09f9896", "ee9095"], # [HAPPY FACE WITH OPEN MOUTH AND RAISED EYEBROWS] U+1F616 -> U+E415
+ ["f09f9897", "ee9093"], # [CRYING FACE] U+1F617 -> U+E413
+ ["f09f9898", "ee9091"], # [LOUDLY CRYING FACE] U+1F618 -> U+E411
+ ["f09f9899", "ee908b"], # [FEARFUL FACE] U+1F619 -> U+E40B
+ ["f09f989a", "ee9086"], # [PERSEVERING FACE] U+1F61A -> U+E406
+ ["f09f989b", "ee9096"], # [POUTING FACE] U+1F61B -> U+E416
+ ["f09f989c", "ee908a"], # [RELIEVED FACE] U+1F61C -> U+E40A
+ ["f09f989d", "ee9087"], # [CONFOUNDED FACE] U+1F61D -> U+E407
+ ["f09f989e", "ee9083"], # [PENSIVE FACE] U+1F61E -> U+E403
+ ["f09f989f", "ee8487"], # [FACE SCREAMING IN FEAR] U+1F61F -> U+E107
+ ["f09f98a0", "ee9088"], # [SLEEPY FACE] U+1F620 -> U+E408
+ ["f09f98a1", "ee9082"], # [SMIRKING FACE] U+1F621 -> U+E402
+ ["f09f98a2", "ee8488"], # [FACE WITH COLD SWEAT] U+1F622 -> U+E108
+ ["f09f98a3", "ee9081"], # [DISAPPOINTED BUT RELIEVED FACE] U+1F623 -> U+E401
+ ["f09f98a4", "ee9086"], # [TIRED FACE] U+1F624 -> U+E406
+ ["f09f98a5", "ee9085"], # [WINKING FACE] U+1F625 -> U+E405
+ ["f09f98ab", "ee8197"], # [CAT FACE WITH OPEN MOUTH] U+1F62B -> U+E057
+ ["f09f98ac", "ee9084"], # [HAPPY CAT FACE WITH GRIN] U+1F62C -> U+E404
+ ["f09f98ad", "ee9092"], # [HAPPY AND CRYING CAT FACE] U+1F62D -> U+E412
+ ["f09f98ae", "ee9098"], # [CAT FACE KISSING] U+1F62E -> U+E418
+ ["f09f98af", "ee8486"], # [CAT FACE WITH HEART-SHAPED EYES] U+1F62F -> U+E106
+ ["f09f98b0", "ee9093"], # [CRYING CAT FACE] U+1F630 -> U+E413
+ ["f09f98b1", "ee9096"], # [POUTING CAT FACE] U+1F631 -> U+E416
+ ["f09f98b2", "ee9084"], # [CAT FACE WITH TIGHTLY-CLOSED LIPS] U+1F632 -> U+E404
+ ["f09f98b3", "ee9083"], # [ANGUISHED CAT FACE] U+1F633 -> U+E403
+ ["f09f98b4", "ee90a3"], # [FACE WITH NO GOOD GESTURE] U+1F634 -> U+E423
+ ["f09f98b5", "ee90a4"], # [FACE WITH OK GESTURE] U+1F635 -> U+E424
+ ["f09f98b6", "ee90a6"], # [PERSON BOWING DEEPLY] U+1F636 -> U+E426
+ ["f09f98b7", :undef], # [SEE-NO-EVIL MONKEY] U+1F637 -> "(/_ï¼¼)"
+ ["f09f98b9", :undef], # [SPEAK-NO-EVIL MONKEY] U+1F639 -> "(・×・)"
+ ["f09f98b8", :undef], # [HEAR-NO-EVIL MONKEY] U+1F638 -> "|(・×・)|"
+ ["f09f98ba", "ee8092"], # [PERSON RAISING ONE HAND] U+1F63A -> U+E012
+ ["f09f98bb", "ee90a7"], # [PERSON RAISING BOTH HANDS IN CELEBRATION] U+1F63B -> U+E427
+ ["f09f98bc", "ee9083"], # [PERSON FROWNING] U+1F63C -> U+E403
+ ["f09f98bd", "ee9096"], # [PERSON WITH POUTING FACE] U+1F63D -> U+E416
+ ["f09f98be", "ee909d"], # [PERSON WITH FOLDED HANDS] U+1F63E -> U+E41D
+ ["f09f8fa0", "ee80b6"], # [HOUSE BUILDING] U+1F3E0 -> U+E036
+ ["f09f8fa1", "ee80b6"], # [HOUSE WITH GARDEN] U+1F3E1 -> U+E036
+ ["f09f8fa2", "ee80b8"], # [OFFICE BUILDING] U+1F3E2 -> U+E038
+ ["f09f8fa3", "ee8593"], # [JAPANESE POST OFFICE] U+1F3E3 -> U+E153
+ ["f09f8fa5", "ee8595"], # [HOSPITAL] U+1F3E5 -> U+E155
+ ["f09f8fa6", "ee858d"], # [BANK] U+1F3E6 -> U+E14D
+ ["f09f8fa7", "ee8594"], # [AUTOMATED TELLER MACHINE] U+1F3E7 -> U+E154
+ ["f09f8fa8", "ee8598"], # [HOTEL] U+1F3E8 -> U+E158
+ ["f09f8fa9", "ee9481"], # [LOVE HOTEL] U+1F3E9 -> U+E501
+ ["f09f8faa", "ee8596"], # [CONVENIENCE STORE] U+1F3EA -> U+E156
+ ["f09f8fab", "ee8597"], # [SCHOOL] U+1F3EB -> U+E157
+ ["e29baa", "ee80b7"], # [CHURCH] U+26EA -> U+E037
+ ["e29bb2", "ee84a1"], # [FOUNTAIN] U+26F2 -> U+E121
+ ["f09f8fac", "ee9484"], # [DEPARTMENT STORE] U+1F3EC -> U+E504
+ ["f09f8faf", "ee9485"], # [JAPANESE CASTLE] U+1F3EF -> U+E505
+ ["f09f8fb0", "ee9486"], # [EUROPEAN CASTLE] U+1F3F0 -> U+E506
+ ["f09f8fad", "ee9488"], # [FACTORY] U+1F3ED -> U+E508
+ ["e29a93", "ee8882"], # [ANCHOR] U+2693 -> U+E202
+ ["f09f8fae", "ee8c8b"], # [IZAKAYA LANTERN] U+1F3EE -> U+E30B
+ ["f09f97bb", "ee80bb"], # [MOUNT FUJI] U+1F5FB -> U+E03B
+ ["f09f97bc", "ee9489"], # [TOKYO TOWER] U+1F5FC -> U+E509
+ ["f09f97bd", "ee949d"], # [STATUE OF LIBERTY] U+1F5FD -> U+E51D
+ ["f09f97be", :undef], # [SILHOUETTE OF JAPAN] U+1F5FE -> "[日本地図]"
+ ["f09f97bf", :undef], # [MOYAI] U+1F5FF -> "[モアイ]"
+ ["f09f919e", "ee8087"], # [MANS SHOE] U+1F45E -> U+E007
+ ["f09f919f", "ee8087"], # [ATHLETIC SHOE] U+1F45F -> U+E007
+ ["f09f91a0", "ee84be"], # [HIGH-HEELED SHOE] U+1F460 -> U+E13E
+ ["f09f91a1", "ee8c9a"], # [WOMANS SANDAL] U+1F461 -> U+E31A
+ ["f09f91a2", "ee8c9b"], # [WOMANS BOOTS] U+1F462 -> U+E31B
+ ["f09f91a3", "ee94b6"], # [FOOTPRINTS] U+1F463 -> U+E536
+ ["f09f9193", :undef], # [EYEGLASSES] U+1F453 -> "[メガãƒ]"
+ ["f09f9195", "ee8086"], # [T-SHIRT] U+1F455 -> U+E006
+ ["f09f9196", :undef], # [JEANS] U+1F456 -> "[ジーンズ]"
+ ["f09f9191", "ee848e"], # [CROWN] U+1F451 -> U+E10E
+ ["f09f9194", "ee8c82"], # [NECKTIE] U+1F454 -> U+E302
+ ["f09f9192", "ee8c98"], # [WOMANS HAT] U+1F452 -> U+E318
+ ["f09f9197", "ee8c99"], # [DRESS] U+1F457 -> U+E319
+ ["f09f9198", "ee8ca1"], # [KIMONO] U+1F458 -> U+E321
+ ["f09f9199", "ee8ca2"], # [BIKINI] U+1F459 -> U+E322
+ ["f09f919a", "ee8086"], # [WOMANS CLOTHES] U+1F45A -> U+E006
+ ["f09f919b", :undef], # [PURSE] U+1F45B -> "[財布]"
+ ["f09f919c", "ee8ca3"], # [HANDBAG] U+1F45C -> U+E323
+ ["f09f919d", :undef], # [POUCH] U+1F45D -> "[ãµãã‚]"
+ ["f09f92b0", "ee84af"], # [MONEY BAG] U+1F4B0 -> U+E12F
+ ["f09f92b1", "ee8589"], # [CURRENCY EXCHANGE] U+1F4B1 -> U+E149
+ ["f09f92b9", "ee858a"], # [CHART WITH UPWARDS TREND AND YEN SIGN] U+1F4B9 -> U+E14A
+ ["f09f92b2", "ee84af"], # [HEAVY DOLLAR SIGN] U+1F4B2 -> U+E12F
+ ["f09f92b3", :undef], # [CREDIT CARD] U+1F4B3 -> "[カード]"
+ ["f09f92b4", :undef], # [BANKNOTE WITH YEN SIGN] U+1F4B4 -> "ï¿¥"
+ ["f09f92b5", "ee84af"], # [BANKNOTE WITH DOLLAR SIGN] U+1F4B5 -> U+E12F
+ ["f09f92b8", :undef], # [MONEY WITH WINGS] U+1F4B8 -> "[飛んã§ã„ããŠé‡‘]"
+ ["f09f87a6", :undef], # [REGIONAL INDICATOR SYMBOL LETTER A] U+1F1E6 -> "[A]"
+ ["f09f87a7", :undef], # [REGIONAL INDICATOR SYMBOL LETTER B] U+1F1E7 -> "[B]"
+ ["f09f87a8", :undef], # [REGIONAL INDICATOR SYMBOL LETTER C] U+1F1E8 -> "[C]"
+ ["f09f87a9", :undef], # [REGIONAL INDICATOR SYMBOL LETTER D] U+1F1E9 -> "[D]"
+ ["f09f87aa", :undef], # [REGIONAL INDICATOR SYMBOL LETTER E] U+1F1EA -> "[E]"
+ ["f09f87ab", :undef], # [REGIONAL INDICATOR SYMBOL LETTER F] U+1F1EB -> "[F]"
+ ["f09f87ac", :undef], # [REGIONAL INDICATOR SYMBOL LETTER G] U+1F1EC -> "[G]"
+ ["f09f87ad", :undef], # [REGIONAL INDICATOR SYMBOL LETTER H] U+1F1ED -> "[H]"
+ ["f09f87ae", :undef], # [REGIONAL INDICATOR SYMBOL LETTER I] U+1F1EE -> "[I]"
+ ["f09f87af", :undef], # [REGIONAL INDICATOR SYMBOL LETTER J] U+1F1EF -> "[J]"
+ ["f09f87b0", :undef], # [REGIONAL INDICATOR SYMBOL LETTER K] U+1F1F0 -> "[K]"
+ ["f09f87b1", :undef], # [REGIONAL INDICATOR SYMBOL LETTER L] U+1F1F1 -> "[L]"
+ ["f09f87b2", :undef], # [REGIONAL INDICATOR SYMBOL LETTER M] U+1F1F2 -> "[M]"
+ ["f09f87b3", :undef], # [REGIONAL INDICATOR SYMBOL LETTER N] U+1F1F3 -> "[N]"
+ ["f09f87b4", :undef], # [REGIONAL INDICATOR SYMBOL LETTER O] U+1F1F4 -> "[O]"
+ ["f09f87b5", :undef], # [REGIONAL INDICATOR SYMBOL LETTER P] U+1F1F5 -> "[P]"
+ ["f09f87b6", :undef], # [REGIONAL INDICATOR SYMBOL LETTER Q] U+1F1F6 -> "[Q]"
+ ["f09f87b7", :undef], # [REGIONAL INDICATOR SYMBOL LETTER R] U+1F1F7 -> "[R]"
+ ["f09f87b8", :undef], # [REGIONAL INDICATOR SYMBOL LETTER S] U+1F1F8 -> "[S]"
+ ["f09f87b9", :undef], # [REGIONAL INDICATOR SYMBOL LETTER T] U+1F1F9 -> "[T]"
+ ["f09f87ba", :undef], # [REGIONAL INDICATOR SYMBOL LETTER U] U+1F1FA -> "[U]"
+ ["f09f87bb", :undef], # [REGIONAL INDICATOR SYMBOL LETTER V] U+1F1FB -> "[V]"
+ ["f09f87bc", :undef], # [REGIONAL INDICATOR SYMBOL LETTER W] U+1F1FC -> "[W]"
+ ["f09f87bd", :undef], # [REGIONAL INDICATOR SYMBOL LETTER X] U+1F1FD -> "[X]"
+ ["f09f87be", :undef], # [REGIONAL INDICATOR SYMBOL LETTER Y] U+1F1FE -> "[Y]"
+ ["f09f87bf", :undef], # [REGIONAL INDICATOR SYMBOL LETTER Z] U+1F1FF -> "[Z]"
+ ["f09f94a5", "ee849d"], # [FIRE] U+1F525 -> U+E11D
+ ["f09f94a6", :undef], # [ELECTRIC TORCH] U+1F526 -> "[æ‡ä¸­é›»ç¯]"
+ ["f09f94a7", :undef], # [WRENCH] U+1F527 -> "[レンãƒ]"
+ ["f09f94a8", "ee8496"], # [HAMMER] U+1F528 -> U+E116
+ ["f09f94a9", :undef], # [NUT AND BOLT] U+1F529 -> "[ãƒã‚¸]"
+ ["f09f94aa", :undef], # [HOCHO] U+1F52A -> "[包ä¸]"
+ ["f09f94ab", "ee8493"], # [PISTOL] U+1F52B -> U+E113
+ ["f09f94ae", "ee88be"], # [CRYSTAL BALL] U+1F52E -> U+E23E
+ ["f09f94af", "ee88be"], # [SIX POINTED STAR WITH MIDDLE DOT] U+1F52F -> U+E23E
+ ["f09f94b0", "ee8889"], # [JAPANESE SYMBOL FOR BEGINNER] U+1F530 -> U+E209
+ ["f09f94b1", "ee80b1"], # [TRIDENT EMBLEM] U+1F531 -> U+E031
+ ["f09f9289", "ee84bb"], # [SYRINGE] U+1F489 -> U+E13B
+ ["f09f928a", "ee8c8f"], # [PILL] U+1F48A -> U+E30F
+ ["f09f85b0", "ee94b2"], # [NEGATIVE SQUARED LATIN CAPITAL LETTER A] U+1F170 -> U+E532
+ ["f09f85b1", "ee94b3"], # [NEGATIVE SQUARED LATIN CAPITAL LETTER B] U+1F171 -> U+E533
+ ["f09f868e", "ee94b4"], # [NEGATIVE SQUARED AB] U+1F18E -> U+E534
+ ["f09f85be", "ee94b5"], # [NEGATIVE SQUARED LATIN CAPITAL LETTER O] U+1F17E -> U+E535
+ ["f09f8e80", "ee8c94"], # [RIBBON] U+1F380 -> U+E314
+ ["f09f8e81", "ee8492"], # [WRAPPED PRESENT] U+1F381 -> U+E112
+ ["f09f8e82", "ee8d8b"], # [BIRTHDAY CAKE] U+1F382 -> U+E34B
+ ["f09f8e84", "ee80b3"], # [CHRISTMAS TREE] U+1F384 -> U+E033
+ ["f09f8e85", "ee9188"], # [FATHER CHRISTMAS] U+1F385 -> U+E448
+ ["f09f8e8c", "ee8583"], # [CROSSED FLAGS] U+1F38C -> U+E143
+ ["f09f8e86", "ee8497"], # [FIREWORKS] U+1F386 -> U+E117
+ ["f09f8e88", "ee8c90"], # [BALLOON] U+1F388 -> U+E310
+ ["f09f8e89", "ee8c92"], # [PARTY POPPER] U+1F389 -> U+E312
+ ["f09f8e8d", "ee90b6"], # [PINE DECORATION] U+1F38D -> U+E436
+ ["f09f8e8e", "ee90b8"], # [JAPANESE DOLLS] U+1F38E -> U+E438
+ ["f09f8e93", "ee90b9"], # [GRADUATION CAP] U+1F393 -> U+E439
+ ["f09f8e92", "ee90ba"], # [SCHOOL SATCHEL] U+1F392 -> U+E43A
+ ["f09f8e8f", "ee90bb"], # [CARP STREAMER] U+1F38F -> U+E43B
+ ["f09f8e87", "ee9180"], # [FIREWORK SPARKLER] U+1F387 -> U+E440
+ ["f09f8e90", "ee9182"], # [WIND CHIME] U+1F390 -> U+E442
+ ["f09f8e83", "ee9185"], # [JACK-O-LANTERN] U+1F383 -> U+E445
+ ["f09f8e8a", :undef], # [CONFETTI BALL] U+1F38A -> "[オメデトウ]"
+ ["f09f8e8b", :undef], # [TANABATA TREE] U+1F38B -> "[七夕]"
+ ["f09f8e91", "ee9186"], # [MOON VIEWING CEREMONY] U+1F391 -> U+E446
+ ["f09f939f", :undef], # [PAGER] U+1F4DF -> "[ãƒã‚±ãƒ™ãƒ«]"
+ ["e2988e", "ee8089"], # [BLACK TELEPHONE] U+260E -> U+E009
+ ["f09f939e", "ee8089"], # [TELEPHONE RECEIVER] U+1F4DE -> U+E009
+ ["f09f93b1", "ee808a"], # [MOBILE PHONE] U+1F4F1 -> U+E00A
+ ["f09f93b2", "ee8484"], # [MOBILE PHONE WITH RIGHTWARDS ARROW AT LEFT] U+1F4F2 -> U+E104
+ ["f09f939d", "ee8c81"], # [MEMO] U+1F4DD -> U+E301
+ ["f09f93a0", "ee808b"], # [FAX MACHINE] U+1F4E0 -> U+E00B
+ ["e29c89", "ee8483"], # [ENVELOPE] U+2709 -> U+E103
+ ["f09f93a8", "ee8483"], # [INCOMING ENVELOPE] U+1F4E8 -> U+E103
+ ["f09f93a9", "ee8483"], # [ENVELOPE WITH DOWNWARDS ARROW ABOVE] U+1F4E9 -> U+E103
+ ["f09f93aa", "ee8481"], # [CLOSED MAILBOX WITH LOWERED FLAG] U+1F4EA -> U+E101
+ ["f09f93ab", "ee8481"], # [CLOSED MAILBOX WITH RAISED FLAG] U+1F4EB -> U+E101
+ ["f09f93ae", "ee8482"], # [POSTBOX] U+1F4EE -> U+E102
+ ["f09f93b0", :undef], # [NEWSPAPER] U+1F4F0 -> "[æ–°èž]"
+ ["f09f93a2", "ee8582"], # [PUBLIC ADDRESS LOUDSPEAKER] U+1F4E2 -> U+E142
+ ["f09f93a3", "ee8c97"], # [CHEERING MEGAPHONE] U+1F4E3 -> U+E317
+ ["f09f93a1", "ee858b"], # [SATELLITE ANTENNA] U+1F4E1 -> U+E14B
+ ["f09f93a4", :undef], # [OUTBOX TRAY] U+1F4E4 -> "[é€ä¿¡BOX]"
+ ["f09f93a5", :undef], # [INBOX TRAY] U+1F4E5 -> "[å—ä¿¡BOX]"
+ ["f09f93a6", "ee8492"], # [PACKAGE] U+1F4E6 -> U+E112
+ ["f09f93a7", "ee8483"], # [E-MAIL SYMBOL] U+1F4E7 -> U+E103
+ ["f09f94a0", :undef], # [INPUT SYMBOL FOR LATIN CAPITAL LETTERS] U+1F520 -> "[ABCD]"
+ ["f09f94a1", :undef], # [INPUT SYMBOL FOR LATIN SMALL LETTERS] U+1F521 -> "[abcd]"
+ ["f09f94a2", :undef], # [INPUT SYMBOL FOR NUMBERS] U+1F522 -> "[1234]"
+ ["f09f94a3", :undef], # [INPUT SYMBOL FOR SYMBOLS] U+1F523 -> "[記å·]"
+ ["f09f94a4", :undef], # [INPUT SYMBOL FOR LATIN LETTERS] U+1F524 -> "[ABC]"
+ ["e29c92", :undef], # [BLACK NIB] U+2712 -> "[ペン]"
+ ["f09f92ba", "ee849f"], # [SEAT] U+1F4BA -> U+E11F
+ ["f09f92bb", "ee808c"], # [PERSONAL COMPUTER] U+1F4BB -> U+E00C
+ ["e29c8f", "ee8c81"], # [PENCIL] U+270F -> U+E301
+ ["f09f938e", :undef], # [PAPERCLIP] U+1F4CE -> "[クリップ]"
+ ["f09f92bc", "ee849e"], # [BRIEFCASE] U+1F4BC -> U+E11E
+ ["f09f92bd", "ee8c96"], # [MINIDISC] U+1F4BD -> U+E316
+ ["f09f92be", "ee8c96"], # [FLOPPY DISK] U+1F4BE -> U+E316
+ ["f09f92bf", "ee84a6"], # [OPTICAL DISC] U+1F4BF -> U+E126
+ ["f09f9380", "ee84a7"], # [DVD] U+1F4C0 -> U+E127
+ ["e29c82", "ee8c93"], # [BLACK SCISSORS] U+2702 -> U+E313
+ ["f09f938d", :undef], # [ROUND PUSHPIN] U+1F4CD -> "[ç”»ã³ã‚‡ã†]"
+ ["f09f9383", "ee8c81"], # [PAGE WITH CURL] U+1F4C3 -> U+E301
+ ["f09f9384", "ee8c81"], # [PAGE FACING UP] U+1F4C4 -> U+E301
+ ["f09f9385", :undef], # [CALENDAR] U+1F4C5 -> "[カレンダー]"
+ ["f09f9381", :undef], # [FILE FOLDER] U+1F4C1 -> "[フォルダ]"
+ ["f09f9382", :undef], # [OPEN FILE FOLDER] U+1F4C2 -> "[フォルダ]"
+ ["f09f9393", "ee8588"], # [NOTEBOOK] U+1F4D3 -> U+E148
+ ["f09f9396", "ee8588"], # [OPEN BOOK] U+1F4D6 -> U+E148
+ ["f09f9394", "ee8588"], # [NOTEBOOK WITH DECORATIVE COVER] U+1F4D4 -> U+E148
+ ["f09f9395", "ee8588"], # [CLOSED BOOK] U+1F4D5 -> U+E148
+ ["f09f9397", "ee8588"], # [GREEN BOOK] U+1F4D7 -> U+E148
+ ["f09f9398", "ee8588"], # [BLUE BOOK] U+1F4D8 -> U+E148
+ ["f09f9399", "ee8588"], # [ORANGE BOOK] U+1F4D9 -> U+E148
+ ["f09f939a", "ee8588"], # [BOOKS] U+1F4DA -> U+E148
+ ["f09f939b", :undef], # [NAME BADGE] U+1F4DB -> "[åæœ­]"
+ ["f09f939c", :undef], # [SCROLL] U+1F4DC -> "[スクロール]"
+ ["f09f938b", "ee8c81"], # [CLIPBOARD] U+1F4CB -> U+E301
+ ["f09f9386", :undef], # [TEAR-OFF CALENDAR] U+1F4C6 -> "[カレンダー]"
+ ["f09f938a", "ee858a"], # [BAR CHART] U+1F4CA -> U+E14A
+ ["f09f9388", "ee858a"], # [CHART WITH UPWARDS TREND] U+1F4C8 -> U+E14A
+ ["f09f9389", :undef], # [CHART WITH DOWNWARDS TREND] U+1F4C9 -> "[グラフ]"
+ ["f09f9387", "ee8588"], # [CARD INDEX] U+1F4C7 -> U+E148
+ ["f09f938c", :undef], # [PUSHPIN] U+1F4CC -> "[ç”»ã³ã‚‡ã†]"
+ ["f09f9392", "ee8588"], # [LEDGER] U+1F4D2 -> U+E148
+ ["f09f938f", :undef], # [STRAIGHT RULER] U+1F4CF -> "[定è¦]"
+ ["f09f9390", :undef], # [TRIANGULAR RULER] U+1F4D0 -> "[三角定è¦]"
+ ["f09f9391", "ee8c81"], # [BOOKMARK TABS] U+1F4D1 -> U+E301
+ ["f09f8ebd", :undef], # [RUNNING SHIRT WITH SASH] U+1F3BD -> U+3013 (GETA)
+ ["e29abe", "ee8096"], # [BASEBALL] U+26BE -> U+E016
+ ["e29bb3", "ee8094"], # [FLAG IN HOLE] U+26F3 -> U+E014
+ ["f09f8ebe", "ee8095"], # [TENNIS RACQUET AND BALL] U+1F3BE -> U+E015
+ ["e29abd", "ee8098"], # [SOCCER BALL] U+26BD -> U+E018
+ ["f09f8ebf", "ee8093"], # [SKI AND SKI BOOT] U+1F3BF -> U+E013
+ ["f09f8f80", "ee90aa"], # [BASKETBALL AND HOOP] U+1F3C0 -> U+E42A
+ ["f09f8f81", "ee84b2"], # [CHEQUERED FLAG] U+1F3C1 -> U+E132
+ ["f09f8f82", :undef], # [SNOWBOARDER] U+1F3C2 -> "[スノボ]"
+ ["f09f8f83", "ee8495"], # [RUNNER] U+1F3C3 -> U+E115
+ ["f09f8f84", "ee8097"], # [SURFER] U+1F3C4 -> U+E017
+ ["f09f8f86", "ee84b1"], # [TROPHY] U+1F3C6 -> U+E131
+ ["f09f8f88", "ee90ab"], # [AMERICAN FOOTBALL] U+1F3C8 -> U+E42B
+ ["f09f8f8a", "ee90ad"], # [SWIMMER] U+1F3CA -> U+E42D
+ ["f09f9a86", "ee809e"], # [TRAIN] U+1F686 -> U+E01E
+ ["f09f9a87", "ee90b4"], # [METRO] U+1F687 -> U+E434
+ ["e29382", "ee90b4"], # [CIRCLED LATIN CAPITAL LETTER M] U+24C2 -> U+E434
+ ["f09f9a84", "ee90b5"], # [HIGH-SPEED TRAIN] U+1F684 -> U+E435
+ ["f09f9a85", "ee809f"], # [HIGH-SPEED TRAIN WITH BULLET NOSE] U+1F685 -> U+E01F
+ ["f09f9a97", "ee809b"], # [AUTOMOBILE] U+1F697 -> U+E01B
+ ["f09f9a99", "ee90ae"], # [RECREATIONAL VEHICLE] U+1F699 -> U+E42E
+ ["f09f9a8d", "ee8599"], # [ONCOMING BUS] U+1F68D -> U+E159
+ ["f09f9a8f", "ee8590"], # [BUS STOP] U+1F68F -> U+E150
+ ["f09f9aa2", "ee8882"], # [SHIP] U+1F6A2 -> U+E202
+ ["e29c88", "ee809d"], # [AIRPLANE] U+2708 -> U+E01D
+ ["e29bb5", "ee809c"], # [SAILBOAT] U+26F5 -> U+E01C
+ ["f09f9a89", "ee80b9"], # [STATION] U+1F689 -> U+E039
+ ["f09f9a80", "ee848d"], # [ROCKET] U+1F680 -> U+E10D
+ ["f09f9aa4", "ee84b5"], # [SPEEDBOAT] U+1F6A4 -> U+E135
+ ["f09f9a95", "ee859a"], # [TAXI] U+1F695 -> U+E15A
+ ["f09f9a9a", "ee90af"], # [DELIVERY TRUCK] U+1F69A -> U+E42F
+ ["f09f9a92", "ee90b0"], # [FIRE ENGINE] U+1F692 -> U+E430
+ ["f09f9a91", "ee90b1"], # [AMBULANCE] U+1F691 -> U+E431
+ ["f09f9a93", "ee90b2"], # [POLICE CAR] U+1F693 -> U+E432
+ ["e29bbd", "ee80ba"], # [FUEL PUMP] U+26FD -> U+E03A
+ ["f09f85bf", "ee858f"], # [NEGATIVE SQUARED LATIN CAPITAL LETTER P] U+1F17F -> U+E14F
+ ["f09f9aa5", "ee858e"], # [HORIZONTAL TRAFFIC LIGHT] U+1F6A5 -> U+E14E
+ ["f09f9aa7", "ee84b7"], # [CONSTRUCTION SIGN] U+1F6A7 -> U+E137
+ ["f09f9aa8", "ee90b2"], # [POLICE CARS REVOLVING LIGHT] U+1F6A8 -> U+E432
+ ["e299a8", "ee84a3"], # [HOT SPRINGS] U+2668 -> U+E123
+ ["e29bba", "ee84a2"], # [TENT] U+26FA -> U+E122
+ ["f09f8ea0", :undef], # [CAROUSEL HORSE] U+1F3A0 -> U+3013 (GETA)
+ ["f09f8ea1", "ee84a4"], # [FERRIS WHEEL] U+1F3A1 -> U+E124
+ ["f09f8ea2", "ee90b3"], # [ROLLER COASTER] U+1F3A2 -> U+E433
+ ["f09f8ea3", "ee8099"], # [FISHING POLE AND FISH] U+1F3A3 -> U+E019
+ ["f09f8ea4", "ee80bc"], # [MICROPHONE] U+1F3A4 -> U+E03C
+ ["f09f8ea5", "ee80bd"], # [MOVIE CAMERA] U+1F3A5 -> U+E03D
+ ["f09f8ea6", "ee9487"], # [CINEMA] U+1F3A6 -> U+E507
+ ["f09f8ea7", "ee8c8a"], # [HEADPHONE] U+1F3A7 -> U+E30A
+ ["f09f8ea8", "ee9482"], # [ARTIST PALETTE] U+1F3A8 -> U+E502
+ ["f09f8ea9", "ee9483"], # [TOP HAT] U+1F3A9 -> U+E503
+ ["f09f8eaa", :undef], # [CIRCUS TENT] U+1F3AA -> "[イベント]"
+ ["f09f8eab", "ee84a5"], # [TICKET] U+1F3AB -> U+E125
+ ["f09f8eac", "ee8ca4"], # [CLAPPER BOARD] U+1F3AC -> U+E324
+ ["f09f8ead", "ee9483"], # [PERFORMING ARTS] U+1F3AD -> U+E503
+ ["f09f8eae", :undef], # [VIDEO GAME] U+1F3AE -> "[ゲーム]"
+ ["f09f8084", "ee84ad"], # [MAHJONG TILE RED DRAGON] U+1F004 -> U+E12D
+ ["f09f8eaf", "ee84b0"], # [DIRECT HIT] U+1F3AF -> U+E130
+ ["f09f8eb0", "ee84b3"], # [SLOT MACHINE] U+1F3B0 -> U+E133
+ ["f09f8eb1", "ee90ac"], # [BILLIARDS] U+1F3B1 -> U+E42C
+ ["f09f8eb2", :undef], # [GAME DIE] U+1F3B2 -> "[サイコロ]"
+ ["f09f8eb3", :undef], # [BOWLING] U+1F3B3 -> "[ボーリング]"
+ ["f09f8eb4", :undef], # [FLOWER PLAYING CARDS] U+1F3B4 -> "[花札]"
+ ["f09f838f", :undef], # [PLAYING CARD BLACK JOKER] U+1F0CF -> "[ジョーカー]"
+ ["f09f8eb5", "ee80be"], # [MUSICAL NOTE] U+1F3B5 -> U+E03E
+ ["f09f8eb6", "ee8ca6"], # [MULTIPLE MUSICAL NOTES] U+1F3B6 -> U+E326
+ ["f09f8eb7", "ee8180"], # [SAXOPHONE] U+1F3B7 -> U+E040
+ ["f09f8eb8", "ee8181"], # [GUITAR] U+1F3B8 -> U+E041
+ ["f09f8eb9", :undef], # [MUSICAL KEYBOARD] U+1F3B9 -> "[ピアノ]"
+ ["f09f8eba", "ee8182"], # [TRUMPET] U+1F3BA -> U+E042
+ ["f09f8ebb", :undef], # [VIOLIN] U+1F3BB -> "[ãƒã‚¤ã‚ªãƒªãƒ³]"
+ ["f09f8ebc", "ee8ca6"], # [MUSICAL SCORE] U+1F3BC -> U+E326
+ ["e380bd", "ee84ac"], # [PART ALTERNATION MARK] U+303D -> U+E12C
+ ["f09f93b7", "ee8088"], # [CAMERA] U+1F4F7 -> U+E008
+ ["f09f93b9", "ee80bd"], # [VIDEO CAMERA] U+1F4F9 -> U+E03D
+ ["f09f93ba", "ee84aa"], # [TELEVISION] U+1F4FA -> U+E12A
+ ["f09f93bb", "ee84a8"], # [RADIO] U+1F4FB -> U+E128
+ ["f09f93bc", "ee84a9"], # [VIDEOCASSETTE] U+1F4FC -> U+E129
+ ["f09f928b", "ee8083"], # [KISS MARK] U+1F48B -> U+E003
+ ["f09f928c", "ee8483ee8ca8"], # [LOVE LETTER] U+1F48C -> U+E103 U+E328
+ ["f09f928d", "ee80b4"], # [RING] U+1F48D -> U+E034
+ ["f09f928e", "ee80b5"], # [GEM STONE] U+1F48E -> U+E035
+ ["f09f928f", "ee8491"], # [KISS] U+1F48F -> U+E111
+ ["f09f9290", "ee8c86"], # [BOUQUET] U+1F490 -> U+E306
+ ["f09f9291", "ee90a5"], # [COUPLE WITH HEART] U+1F491 -> U+E425
+ ["f09f9292", "ee90bd"], # [WEDDING] U+1F492 -> U+E43D
+ ["f09f949e", "ee8887"], # [NO ONE UNDER EIGHTEEN SYMBOL] U+1F51E -> U+E207
+ ["c2a9", "ee898e"], # [COPYRIGHT SIGN] U+A9 -> U+E24E
+ ["c2ae", "ee898f"], # [REGISTERED SIGN] U+AE -> U+E24F
+ ["e284a2", "ee94b7"], # [TRADE MARK SIGN] U+2122 -> U+E537
+ ["e284b9", :undef], # [INFORMATION SOURCE] U+2139 -> "[i]"
+ ["f09f949f", :undef], # [KEYCAP TEN] U+1F51F -> "[10]"
+ ["f09f93b6", "ee888b"], # [ANTENNA WITH BARS] U+1F4F6 -> U+E20B
+ ["f09f93b3", "ee8990"], # [VIBRATION MODE] U+1F4F3 -> U+E250
+ ["f09f93b4", "ee8991"], # [MOBILE PHONE OFF] U+1F4F4 -> U+E251
+ ["f09f8d94", "ee84a0"], # [HAMBURGER] U+1F354 -> U+E120
+ ["f09f8d99", "ee8d82"], # [RICE BALL] U+1F359 -> U+E342
+ ["f09f8db0", "ee8186"], # [SHORTCAKE] U+1F370 -> U+E046
+ ["f09f8d9c", "ee8d80"], # [STEAMING BOWL] U+1F35C -> U+E340
+ ["f09f8d9e", "ee8cb9"], # [BREAD] U+1F35E -> U+E339
+ ["f09f8db3", "ee8587"], # [COOKING] U+1F373 -> U+E147
+ ["f09f8da6", "ee8cba"], # [SOFT ICE CREAM] U+1F366 -> U+E33A
+ ["f09f8d9f", "ee8cbb"], # [FRENCH FRIES] U+1F35F -> U+E33B
+ ["f09f8da1", "ee8cbc"], # [DANGO] U+1F361 -> U+E33C
+ ["f09f8d98", "ee8cbd"], # [RICE CRACKER] U+1F358 -> U+E33D
+ ["f09f8d9a", "ee8cbe"], # [COOKED RICE] U+1F35A -> U+E33E
+ ["f09f8d9d", "ee8cbf"], # [SPAGHETTI] U+1F35D -> U+E33F
+ ["f09f8d9b", "ee8d81"], # [CURRY AND RICE] U+1F35B -> U+E341
+ ["f09f8da2", "ee8d83"], # [ODEN] U+1F362 -> U+E343
+ ["f09f8da3", "ee8d84"], # [SUSHI] U+1F363 -> U+E344
+ ["f09f8db1", "ee8d8c"], # [BENTO BOX] U+1F371 -> U+E34C
+ ["f09f8db2", "ee8d8d"], # [POT OF FOOD] U+1F372 -> U+E34D
+ ["f09f8da7", "ee90bf"], # [SHAVED ICE] U+1F367 -> U+E43F
+ ["f09f8d96", :undef], # [MEAT ON BONE] U+1F356 -> "[肉]"
+ ["f09f8da5", :undef], # [FISH CAKE WITH SWIRL DESIGN] U+1F365 -> "[ãªã‚‹ã¨]"
+ ["f09f8da0", :undef], # [ROASTED SWEET POTATO] U+1F360 -> "[ã‚„ãã„ã‚‚]"
+ ["f09f8d95", :undef], # [SLICE OF PIZZA] U+1F355 -> "[ピザ]"
+ ["f09f8d97", :undef], # [POULTRY LEG] U+1F357 -> "[ãƒã‚­ãƒ³]"
+ ["f09f8da8", :undef], # [ICE CREAM] U+1F368 -> "[アイスクリーム]"
+ ["f09f8da9", :undef], # [DOUGHNUT] U+1F369 -> "[ドーナツ]"
+ ["f09f8daa", :undef], # [COOKIE] U+1F36A -> "[クッキー]"
+ ["f09f8dab", :undef], # [CHOCOLATE BAR] U+1F36B -> "[ãƒãƒ§ã‚³]"
+ ["f09f8dac", :undef], # [CANDY] U+1F36C -> "[キャンディ]"
+ ["f09f8dad", :undef], # [LOLLIPOP] U+1F36D -> "[キャンディ]"
+ ["f09f8dae", :undef], # [CUSTARD] U+1F36E -> "[プリン]"
+ ["f09f8daf", :undef], # [HONEY POT] U+1F36F -> "[ãƒãƒãƒŸãƒ„]"
+ ["f09f8da4", :undef], # [FRIED SHRIMP] U+1F364 -> "[エビフライ]"
+ ["f09f8db4", "ee8183"], # [FORK AND KNIFE] U+1F374 -> U+E043
+ ["e29895", "ee8185"], # [HOT BEVERAGE] U+2615 -> U+E045
+ ["f09f8db8", "ee8184"], # [COCKTAIL GLASS] U+1F378 -> U+E044
+ ["f09f8dba", "ee8187"], # [BEER MUG] U+1F37A -> U+E047
+ ["f09f8db5", "ee8cb8"], # [TEACUP WITHOUT HANDLE] U+1F375 -> U+E338
+ ["f09f8db6", "ee8c8b"], # [SAKE BOTTLE AND CUP] U+1F376 -> U+E30B
+ ["f09f8db7", "ee8184"], # [WINE GLASS] U+1F377 -> U+E044
+ ["f09f8dbb", "ee8c8c"], # [CLINKING BEER MUGS] U+1F37B -> U+E30C
+ ["f09f8db9", "ee8184"], # [TROPICAL DRINK] U+1F379 -> U+E044
+ ["e28697", "ee88b6"], # [NORTH EAST ARROW] U+2197 -> U+E236
+ ["e28698", "ee88b8"], # [SOUTH EAST ARROW] U+2198 -> U+E238
+ ["e28696", "ee88b7"], # [NORTH WEST ARROW] U+2196 -> U+E237
+ ["e28699", "ee88b9"], # [SOUTH WEST ARROW] U+2199 -> U+E239
+ ["e2a4b4", "ee88b6"], # [ARROW POINTING RIGHTWARDS THEN CURVING UPWARDS] U+2934 -> U+E236
+ ["e2a4b5", "ee88b8"], # [ARROW POINTING RIGHTWARDS THEN CURVING DOWNWARDS] U+2935 -> U+E238
+ ["e28694", :undef], # [LEFT RIGHT ARROW] U+2194 -> "⇔"
+ ["e28695", :undef], # [UP DOWN ARROW] U+2195 -> "↑↓"
+ ["e2ac86", "ee88b2"], # [UPWARDS BLACK ARROW] U+2B06 -> U+E232
+ ["e2ac87", "ee88b3"], # [DOWNWARDS BLACK ARROW] U+2B07 -> U+E233
+ ["e29ea1", "ee88b4"], # [BLACK RIGHTWARDS ARROW] U+27A1 -> U+E234
+ ["e2ac85", "ee88b5"], # [LEFTWARDS BLACK ARROW] U+2B05 -> U+E235
+ ["e296b6", "ee88ba"], # [BLACK RIGHT-POINTING TRIANGLE] U+25B6 -> U+E23A
+ ["e29780", "ee88bb"], # [BLACK LEFT-POINTING TRIANGLE] U+25C0 -> U+E23B
+ ["e28fa9", "ee88bc"], # [BLACK RIGHT-POINTING DOUBLE TRIANGLE] U+23E9 -> U+E23C
+ ["e28faa", "ee88bd"], # [BLACK LEFT-POINTING DOUBLE TRIANGLE] U+23EA -> U+E23D
+ ["e28fab", :undef], # [BLACK UP-POINTING DOUBLE TRIANGLE] U+23EB -> "â–²"
+ ["e28fac", :undef], # [BLACK DOWN-POINTING DOUBLE TRIANGLE] U+23EC -> "â–¼"
+ ["f09f94ba", :undef], # [UP-POINTING RED TRIANGLE] U+1F53A -> "â–²"
+ ["f09f94bb", :undef], # [DOWN-POINTING RED TRIANGLE] U+1F53B -> "â–¼"
+ ["f09f94bc", :undef], # [UP-POINTING SMALL RED TRIANGLE] U+1F53C -> "â–²"
+ ["f09f94bd", :undef], # [DOWN-POINTING SMALL RED TRIANGLE] U+1F53D -> "â–¼"
+ ["e2ad95", "ee8cb2"], # [HEAVY LARGE CIRCLE] U+2B55 -> U+E332
+ ["e29d8c", "ee8cb3"], # [CROSS MARK] U+274C -> U+E333
+ ["e29d8e", "ee8cb3"], # [NEGATIVE SQUARED CROSS MARK] U+274E -> U+E333
+ ["e29da2", "ee80a1"], # [HEAVY EXCLAMATION MARK ORNAMENT] U+2762 -> U+E021
+ ["e28189", :undef], # [EXCLAMATION QUESTION MARK] U+2049 -> "ï¼ï¼Ÿ"
+ ["e280bc", :undef], # [DOUBLE EXCLAMATION MARK] U+203C -> "ï¼ï¼"
+ ["e29d93", "ee80a0"], # [BLACK QUESTION MARK ORNAMENT] U+2753 -> U+E020
+ ["e29d94", "ee8cb6"], # [WHITE QUESTION MARK ORNAMENT] U+2754 -> U+E336
+ ["e29d95", "ee8cb7"], # [WHITE EXCLAMATION MARK ORNAMENT] U+2755 -> U+E337
+ ["e380b0", :undef], # [WAVY DASH] U+3030 -> U+3013 (GETA)
+ ["e29eb0", :undef], # [CURLY LOOP] U+27B0 -> "~"
+ ["e29ebf", "ee8891"], # [DOUBLE CURLY LOOP] U+27BF -> U+E211
+ ["e29da4", "ee80a2"], # [HEAVY BLACK HEART] U+2764 -> U+E022
+ ["f09f9293", "ee8ca7"], # [BEATING HEART] U+1F493 -> U+E327
+ ["f09f9294", "ee80a3"], # [BROKEN HEART] U+1F494 -> U+E023
+ ["f09f9295", "ee8ca7"], # [TWO HEARTS] U+1F495 -> U+E327
+ ["f09f9296", "ee8ca7"], # [SPARKLING HEART] U+1F496 -> U+E327
+ ["f09f9297", "ee8ca8"], # [GROWING HEART] U+1F497 -> U+E328
+ ["f09f9298", "ee8ca9"], # [HEART WITH ARROW] U+1F498 -> U+E329
+ ["f09f9299", "ee8caa"], # [BLUE HEART] U+1F499 -> U+E32A
+ ["f09f929a", "ee8cab"], # [GREEN HEART] U+1F49A -> U+E32B
+ ["f09f929b", "ee8cac"], # [YELLOW HEART] U+1F49B -> U+E32C
+ ["f09f929c", "ee8cad"], # [PURPLE HEART] U+1F49C -> U+E32D
+ ["f09f929d", "ee90b7"], # [HEART WITH RIBBON] U+1F49D -> U+E437
+ ["f09f929e", "ee8ca7"], # [REVOLVING HEARTS] U+1F49E -> U+E327
+ ["f09f929f", "ee8884"], # [HEART DECORATION] U+1F49F -> U+E204
+ ["e299a5", "ee888c"], # [BLACK HEART SUIT] U+2665 -> U+E20C
+ ["e299a0", "ee888e"], # [BLACK SPADE SUIT] U+2660 -> U+E20E
+ ["e299a6", "ee888d"], # [BLACK DIAMOND SUIT] U+2666 -> U+E20D
+ ["e299a3", "ee888f"], # [BLACK CLUB SUIT] U+2663 -> U+E20F
+ ["f09f9aac", "ee8c8e"], # [SMOKING SYMBOL] U+1F6AC -> U+E30E
+ ["f09f9aad", "ee8888"], # [NO SMOKING SYMBOL] U+1F6AD -> U+E208
+ ["e299bf", "ee888a"], # [WHEELCHAIR SYMBOL] U+267F -> U+E20A
+ ["f09f9aa9", :undef], # [TRIANGULAR FLAG ON POST] U+1F6A9 -> "[æ——]"
+ ["e29aa0", "ee8992"], # [WARNING SIGN] U+26A0 -> U+E252
+ ["e29b94", "ee84b7"], # [NO ENTRY] U+26D4 -> U+E137
+ ["e299bb", :undef], # [BLACK UNIVERSAL RECYCLING SYMBOL] U+267B -> "↑↓"
+ ["f09f9ab2", "ee84b6"], # [BICYCLE] U+1F6B2 -> U+E136
+ ["f09f9ab6", "ee8881"], # [PEDESTRIAN] U+1F6B6 -> U+E201
+ ["f09f9ab9", "ee84b8"], # [MENS SYMBOL] U+1F6B9 -> U+E138
+ ["f09f9aba", "ee84b9"], # [WOMENS SYMBOL] U+1F6BA -> U+E139
+ ["f09f9b80", "ee84bf"], # [BATH] U+1F6C0 -> U+E13F
+ ["f09f9abb", "ee8591"], # [RESTROOM] U+1F6BB -> U+E151
+ ["f09f9abd", "ee8580"], # [TOILET] U+1F6BD -> U+E140
+ ["f09f9abe", "ee8c89"], # [WATER CLOSET] U+1F6BE -> U+E309
+ ["f09f9abc", "ee84ba"], # [BABY SYMBOL] U+1F6BC -> U+E13A
+ ["f09f9aaa", :undef], # [DOOR] U+1F6AA -> "[ドア]"
+ ["f09f9aab", :undef], # [NO ENTRY SIGN] U+1F6AB -> "[ç¦æ­¢]"
+ ["e29c94", :undef], # [HEAVY CHECK MARK] U+2714 -> "[ãƒã‚§ãƒƒã‚¯ãƒžãƒ¼ã‚¯]"
+ ["f09f8691", :undef], # [SQUARED CL] U+1F191 -> "[CL]"
+ ["f09f8692", "ee8894"], # [SQUARED COOL] U+1F192 -> U+E214
+ ["f09f8693", :undef], # [SQUARED FREE] U+1F193 -> "[FREE]"
+ ["f09f8694", "ee88a9"], # [SQUARED ID] U+1F194 -> U+E229
+ ["f09f8695", "ee8892"], # [SQUARED NEW] U+1F195 -> U+E212
+ ["f09f8696", :undef], # [SQUARED NG] U+1F196 -> "[NG]"
+ ["f09f8697", "ee898d"], # [SQUARED OK] U+1F197 -> U+E24D
+ ["f09f8698", :undef], # [SQUARED SOS] U+1F198 -> "[SOS]"
+ ["f09f8699", "ee8893"], # [SQUARED UP WITH EXCLAMATION MARK] U+1F199 -> U+E213
+ ["f09f869a", "ee84ae"], # [SQUARED VS] U+1F19A -> U+E12E
+ ["f09f8881", "ee8883"], # [SQUARED KATAKANA KOKO] U+1F201 -> U+E203
+ ["f09f8882", "ee88a8"], # [SQUARED KATAKANA SA] U+1F202 -> U+E228
+ ["f09f88b2", :undef], # [SQUARED CJK UNIFIED IDEOGRAPH-7981] U+1F232 -> "[ç¦]"
+ ["f09f88b3", "ee88ab"], # [SQUARED CJK UNIFIED IDEOGRAPH-7A7A] U+1F233 -> U+E22B
+ ["f09f88b4", :undef], # [SQUARED CJK UNIFIED IDEOGRAPH-5408] U+1F234 -> "[åˆ]"
+ ["f09f88b5", "ee88aa"], # [SQUARED CJK UNIFIED IDEOGRAPH-6E80] U+1F235 -> U+E22A
+ ["f09f88b6", "ee8895"], # [SQUARED CJK UNIFIED IDEOGRAPH-6709] U+1F236 -> U+E215
+ ["f09f889a", "ee8896"], # [SQUARED CJK UNIFIED IDEOGRAPH-7121] U+1F21A -> U+E216
+ ["f09f88b7", "ee8897"], # [SQUARED CJK UNIFIED IDEOGRAPH-6708] U+1F237 -> U+E217
+ ["f09f88b8", "ee8898"], # [SQUARED CJK UNIFIED IDEOGRAPH-7533] U+1F238 -> U+E218
+ ["f09f88b9", "ee88a7"], # [SQUARED CJK UNIFIED IDEOGRAPH-5272] U+1F239 -> U+E227
+ ["f09f88af", "ee88ac"], # [SQUARED CJK UNIFIED IDEOGRAPH-6307] U+1F22F -> U+E22C
+ ["f09f88ba", "ee88ad"], # [SQUARED CJK UNIFIED IDEOGRAPH-55B6] U+1F23A -> U+E22D
+ ["e38a99", "ee8c95"], # [CIRCLED IDEOGRAPH SECRET] U+3299 -> U+E315
+ ["e38a97", "ee8c8d"], # [CIRCLED IDEOGRAPH CONGRATULATION] U+3297 -> U+E30D
+ ["f09f8990", "ee88a6"], # [CIRCLED IDEOGRAPH ADVANTAGE] U+1F250 -> U+E226
+ ["f09f8991", :undef], # [CIRCLED IDEOGRAPH ACCEPT] U+1F251 -> "[å¯]"
+ ["e29e95", :undef], # [HEAVY PLUS SIGN] U+2795 -> "[+]"
+ ["e29e96", :undef], # [HEAVY MINUS SIGN] U+2796 -> "[ï¼]"
+ ["e29c96", "ee8cb3"], # [HEAVY MULTIPLICATION X] U+2716 -> U+E333
+ ["e29e97", :undef], # [HEAVY DIVISION SIGN] U+2797 -> "[÷]"
+ ["f09f92a0", :undef], # [DIAMOND SHAPE WITH A DOT INSIDE] U+1F4A0 -> U+3013 (GETA)
+ ["f09f92a1", "ee848f"], # [ELECTRIC LIGHT BULB] U+1F4A1 -> U+E10F
+ ["f09f92a2", "ee8cb4"], # [ANGER SYMBOL] U+1F4A2 -> U+E334
+ ["f09f92a3", "ee8c91"], # [BOMB] U+1F4A3 -> U+E311
+ ["f09f92a4", "ee84bc"], # [SLEEPING SYMBOL] U+1F4A4 -> U+E13C
+ ["f09f92a5", :undef], # [COLLISION SYMBOL] U+1F4A5 -> "[ドンッ]"
+ ["f09f92a6", "ee8cb1"], # [SPLASHING SWEAT SYMBOL] U+1F4A6 -> U+E331
+ ["f09f92a7", "ee8cb1"], # [DROP OF WATER] U+1F4A7 -> U+E331
+ ["f09f92a8", "ee8cb0"], # [DASH SYMBOL] U+1F4A8 -> U+E330
+ ["f09f92a9", "ee819a"], # [PILE OF POO] U+1F4A9 -> U+E05A
+ ["f09f92aa", "ee858c"], # [FLEXED BICEPS] U+1F4AA -> U+E14C
+ ["f09f92ab", "ee9087"], # [DIZZY SYMBOL] U+1F4AB -> U+E407
+ ["f09f92ac", :undef], # [SPEECH BALLOON] U+1F4AC -> "[フキダシ]"
+ ["e29ca8", "ee8cae"], # [SPARKLES] U+2728 -> U+E32E
+ ["e29cb4", "ee8885"], # [EIGHT POINTED BLACK STAR] U+2734 -> U+E205
+ ["e29cb3", "ee8886"], # [EIGHT SPOKED ASTERISK] U+2733 -> U+E206
+ ["e29aaa", "ee8899"], # [MEDIUM WHITE CIRCLE] U+26AA -> U+E219
+ ["e29aab", "ee8899"], # [MEDIUM BLACK CIRCLE] U+26AB -> U+E219
+ ["f09f94b4", "ee8899"], # [LARGE RED CIRCLE] U+1F534 -> U+E219
+ ["f09f94b5", "ee889a"], # [LARGE BLUE CIRCLE] U+1F535 -> U+E21A
+ ["f09f94b2", "ee889a"], # [BLACK SQUARE BUTTON] U+1F532 -> U+E21A
+ ["f09f94b3", "ee889b"], # [WHITE SQUARE BUTTON] U+1F533 -> U+E21B
+ ["e2ad90", "ee8caf"], # [WHITE MEDIUM STAR] U+2B50 -> U+E32F
+ ["e2ac9c", "ee889b"], # [WHITE LARGE SQUARE] U+2B1C -> U+E21B
+ ["e2ac9b", "ee889a"], # [BLACK LARGE SQUARE] U+2B1B -> U+E21A
+ ["e296ab", "ee889b"], # [WHITE SMALL SQUARE] U+25AB -> U+E21B
+ ["e296aa", "ee889a"], # [BLACK SMALL SQUARE] U+25AA -> U+E21A
+ ["e297bd", "ee889b"], # [WHITE MEDIUM SMALL SQUARE] U+25FD -> U+E21B
+ ["e297be", "ee889a"], # [BLACK MEDIUM SMALL SQUARE] U+25FE -> U+E21A
+ ["e297bb", "ee889b"], # [WHITE MEDIUM SQUARE] U+25FB -> U+E21B
+ ["e297bc", "ee889a"], # [BLACK MEDIUM SQUARE] U+25FC -> U+E21A
+ ["f09f94b6", "ee889b"], # [LARGE ORANGE DIAMOND] U+1F536 -> U+E21B
+ ["f09f94b7", "ee889b"], # [LARGE BLUE DIAMOND] U+1F537 -> U+E21B
+ ["f09f94b8", "ee889b"], # [SMALL ORANGE DIAMOND] U+1F538 -> U+E21B
+ ["f09f94b9", "ee889b"], # [SMALL BLUE DIAMOND] U+1F539 -> U+E21B
+ ["e29d87", "ee8cae"], # [SPARKLE] U+2747 -> U+E32E
+ ["f09f92ae", :undef], # [WHITE FLOWER] U+1F4AE -> "[花丸]"
+ ["f09f92af", :undef], # [HUNDRED POINTS SYMBOL] U+1F4AF -> "[100点]"
+ ["e286a9", :undef], # [LEFTWARDS ARROW WITH HOOK] U+21A9 -> "â†â”˜"
+ ["e286aa", :undef], # [RIGHTWARDS ARROW WITH HOOK] U+21AA -> "└→"
+ ["f09f9483", :undef], # [CLOCKWISE DOWNWARDS AND UPWARDS OPEN CIRCLE ARROWS] U+1F503 -> "↑↓"
+ ["f09f948a", "ee8581"], # [SPEAKER WITH THREE SOUND WAVES] U+1F50A -> U+E141
+ ["f09f948b", :undef], # [BATTERY] U+1F50B -> "[電池]"
+ ["f09f948c", :undef], # [ELECTRIC PLUG] U+1F50C -> "[コンセント]"
+ ["f09f948d", "ee8494"], # [LEFT-POINTING MAGNIFYING GLASS] U+1F50D -> U+E114
+ ["f09f948e", "ee8494"], # [RIGHT-POINTING MAGNIFYING GLASS] U+1F50E -> U+E114
+ ["f09f9492", "ee8584"], # [LOCK] U+1F512 -> U+E144
+ ["f09f9493", "ee8585"], # [OPEN LOCK] U+1F513 -> U+E145
+ ["f09f948f", "ee8584"], # [LOCK WITH INK PEN] U+1F50F -> U+E144
+ ["f09f9490", "ee8584"], # [CLOSED LOCK WITH KEY] U+1F510 -> U+E144
+ ["f09f9491", "ee80bf"], # [KEY] U+1F511 -> U+E03F
+ ["f09f9494", "ee8ca5"], # [BELL] U+1F514 -> U+E325
+ ["e29891", :undef], # [BALLOT BOX WITH CHECK] U+2611 -> "[ãƒã‚§ãƒƒã‚¯ãƒžãƒ¼ã‚¯]"
+ ["f09f9498", :undef], # [RADIO BUTTON] U+1F518 -> "[ラジオボタン]"
+ ["f09f9496", :undef], # [BOOKMARK] U+1F516 -> "[ブックマーク]"
+ ["f09f9497", :undef], # [LINK SYMBOL] U+1F517 -> "[リンク]"
+ ["f09f9499", "ee88b5"], # [BACK WITH LEFTWARDS ARROW ABOVE] U+1F519 -> U+E235
+ ["f09f949a", :undef], # [END WITH LEFTWARDS ARROW ABOVE] U+1F51A -> "[end]"
+ ["f09f949b", :undef], # [ON WITH EXCLAMATION MARK WITH LEFT RIGHT ARROW ABOVE] U+1F51B -> "[ON]"
+ ["f09f949c", :undef], # [SOON WITH RIGHTWARDS ARROW ABOVE] U+1F51C -> "[SOON]"
+ ["f09f949d", "ee898c"], # [TOP WITH UPWARDS ARROW ABOVE] U+1F51D -> U+E24C
+ ["e28083", :undef], # [EM SPACE] U+2003 -> U+3013 (GETA)
+ ["e28082", :undef], # [EN SPACE] U+2002 -> U+3013 (GETA)
+ ["e28085", :undef], # [FOUR-PER-EM SPACE] U+2005 -> U+3013 (GETA)
+ ["e29c85", :undef], # [WHITE HEAVY CHECK MARK] U+2705 -> "[ãƒã‚§ãƒƒã‚¯ãƒžãƒ¼ã‚¯]"
+ ["e29c8a", "ee8090"], # [RAISED FIST] U+270A -> U+E010
+ ["e29c8b", "ee8092"], # [RAISED HAND] U+270B -> U+E012
+ ["e29c8c", "ee8091"], # [VICTORY HAND] U+270C -> U+E011
+ ["f09f918a", "ee808d"], # [FISTED HAND SIGN] U+1F44A -> U+E00D
+ ["f09f918d", "ee808e"], # [THUMBS UP SIGN] U+1F44D -> U+E00E
+ ["e2989d", "ee808f"], # [WHITE UP POINTING INDEX] U+261D -> U+E00F
+ ["f09f9186", "ee88ae"], # [WHITE UP POINTING BACKHAND INDEX] U+1F446 -> U+E22E
+ ["f09f9187", "ee88af"], # [WHITE DOWN POINTING BACKHAND INDEX] U+1F447 -> U+E22F
+ ["f09f9188", "ee88b0"], # [WHITE LEFT POINTING BACKHAND INDEX] U+1F448 -> U+E230
+ ["f09f9189", "ee88b1"], # [WHITE RIGHT POINTING BACKHAND INDEX] U+1F449 -> U+E231
+ ["f09f918b", "ee909e"], # [WAVING HAND SIGN] U+1F44B -> U+E41E
+ ["f09f918f", "ee909f"], # [CLAPPING HANDS SIGN] U+1F44F -> U+E41F
+ ["f09f918c", "ee90a0"], # [OK HAND SIGN] U+1F44C -> U+E420
+ ["f09f918e", "ee90a1"], # [THUMBS DOWN SIGN] U+1F44E -> U+E421
+ ["f09f9190", "ee90a2"], # [OPEN HANDS SIGN] U+1F450 -> U+E422
+]
+
diff --git a/enc/trans/emoji.trans b/enc/trans/emoji.trans
new file mode 100644
index 0000000000..1cf13743a2
--- /dev/null
+++ b/enc/trans/emoji.trans
@@ -0,0 +1,37 @@
+#include "transcode_data.h"
+
+<%
+ require 'emoji-exchange-tbl'
+
+ nomap_table = [
+ ["{00-7f}", :nomap],
+ ["{c2-df}{80-bf}", :nomap0],
+ ["e0{a0-bf}{80-bf}", :nomap0],
+ ["{e1-ec}{80-bf}{80-bf}", :nomap0],
+ ["ed{80-9f}{80-bf}", :nomap0],
+ ["{ee-ef}{80-bf}{80-bf}", :nomap0],
+ ["f0{90-bf}{80-bf}{80-bf}", :nomap0],
+ ["{f1-f3}{80-bf}{80-bf}{80-bf}", :nomap0],
+ ["f4{80-8f}{80-bf}{80-bf}", :nomap0],
+ ]
+
+ companies = %w(DoCoMo KDDI SoftBank Unicode)
+ companies.each do |from_company|
+ companies.each do |to_company|
+ next if from_company == to_company
+ from_encoding = (from_company == "Unicode") ? "UTF-8" : "UTF8-"+from_company
+ to_encoding = (to_company == "Unicode") ? "UTF-8" : "UTF8-"+to_company
+
+ strict_mapping = EMOJI_EXCHANGE_TBL[from_encoding][to_encoding]
+ transcode_tblgen(from_encoding, to_encoding, strict_mapping + nomap_table, nil)
+ end
+ end
+%>
+
+<%= transcode_generated_code %>
+
+void
+Init_emoji(void)
+{
+<%= transcode_register_code %>
+}
diff --git a/enc/trans/emoji_iso2022_kddi.trans b/enc/trans/emoji_iso2022_kddi.trans
new file mode 100644
index 0000000000..ccf3139d3c
--- /dev/null
+++ b/enc/trans/emoji_iso2022_kddi.trans
@@ -0,0 +1,217 @@
+#include "transcode_data.h"
+
+<%
+ # mapping from ISO-2022-JP-KDDI to stateless-ISO-2022-JP-KDDI
+ map = {
+ "1b2842" => :func_so, # designate US-ASCII to G0. "ESC ( B"
+ "1b284a" => :func_so, # designate JIS X 0201 latin to G0. "ESC ( J"
+ "1b2440" => :func_so, # designate JIS X 0208 1978 to G0. "ESC $ @"
+ "1b2442" => :func_so, # designate JIS X 0208 1983 to G0. "ESC $ B"
+ "{00-0d,10-1a,1c-7f}" => :func_si,
+ }
+ transcode_generate_node(ActionMap.parse(map), "iso2022jp_kddi_decoder")
+
+ map_jisx0208_rest = {
+ "{21-7e}" => :func_so
+ }
+ transcode_generate_node(ActionMap.parse(map_jisx0208_rest), "iso2022jp_kddi_decoder_jisx0208_rest")
+
+ # mapping from stateless-ISO-2022-JP-KDDI to ISO-2022-JP-KDDI
+ map = {
+ "{00-0d,10-1a,1c-7f}" => :func_so,
+ "90{a1-fe}{a1-fe}" => :func_so,
+ "92{a1-fe}{a1-fe}" => :func_so,
+ }
+ transcode_generate_node(ActionMap.parse(map), "iso2022jp_kddi_encoder")
+
+ # mapping from stateless-ISO-2022-JP-KDDI to UTF8-KDDI
+ transcode_tblgen "stateless-ISO-2022-JP-KDDI", "UTF8-KDDI",
+ [["{00-7f}", :nomap]] +
+ citrus_decode_mapsrc("stateless_iso", 0222, %w(EMOJI_ISO-2022-JP-KDDI/UCS
+ JISX0208VDC:NEC/UCS
+ CP932VDC:NEC_IBM/UCS
+ CP932VDC:IBM/UCS
+ JISX0208:MS/UCS).join(",")),
+ nil
+
+ # mapping from UTF8-KDDI to stateless-ISO-2022-JP-KDDI
+ transcode_tblgen "UTF8-KDDI", "stateless-ISO-2022-JP-KDDI",
+ [["{00-7f}", :nomap]] +
+ citrus_decode_mapsrc("stateless_iso", 0222, %w(UCS/EMOJI_ISO-2022-JP-KDDI
+ UCS/EMOJI_ISO-2022-JP-KDDI-UNDOC
+ UCS/JISX0208VDC:NEC
+ UCS/CP932VDC:NEC_IBM
+ UCS/CP932VDC:IBM
+ UCS/JISX0208:MS).join(",")),
+ ValidEncoding('UTF-8')
+%>
+
+<%= transcode_generated_code %>
+
+#define G0_ASCII 0
+/* ignore JIS X 0201 latin */
+#define G0_JISX0208_1978 1
+#define G0_JISX0208_1983 2
+
+#define EMACS_MULE_LEADING_CODE_JISX0208_1978 0220
+#define EMACS_MULE_LEADING_CODE_JISX0208_1983 0222
+
+static int
+iso2022jp_kddi_init(void *statep)
+{
+ unsigned char *sp = statep;
+ *sp = G0_ASCII;
+ return 0;
+}
+
+static VALUE
+fun_si_iso2022jp_kddi_decoder(void *statep, const unsigned char *s, size_t l)
+{
+ unsigned char *sp = statep;
+ if (*sp == G0_ASCII)
+ return (VALUE)NOMAP;
+ else if (0x21 <= s[0] && s[0] <= 0x7e)
+ return (VALUE)iso2022jp_kddi_decoder_jisx0208_rest;
+ else
+ return (VALUE)INVALID;
+}
+
+static ssize_t
+fun_so_iso2022jp_kddi_decoder(void *statep, const unsigned char *s, size_t l, unsigned char *o, size_t osize)
+{
+ unsigned char *sp = statep;
+ if (s[0] == 0x1b) {
+ if (s[1] == '(') {
+ switch (s[l-1]) {
+ case 'B': /* US-ASCII */
+ case 'J': /* JIS X 0201 Roman */
+ *sp = G0_ASCII;
+ break;
+ }
+ }
+ else {
+ switch (s[l-1]) {
+ case '@':
+ *sp = G0_JISX0208_1978;
+ break;
+
+ case 'B':
+ *sp = G0_JISX0208_1983;
+ break;
+ }
+ }
+ return 0;
+ }
+ else {
+ if (*sp == G0_JISX0208_1978)
+ o[0] = EMACS_MULE_LEADING_CODE_JISX0208_1978;
+ else
+ o[0] = EMACS_MULE_LEADING_CODE_JISX0208_1983;
+ o[1] = s[0] | 0x80;
+ o[2] = s[1] | 0x80;
+ return 3;
+ }
+}
+
+static const rb_transcoder
+rb_iso2022jp_kddi_decoder = {
+ "ISO-2022-JP-KDDI", "stateless-ISO-2022-JP-KDDI", iso2022jp_kddi_decoder,
+ TRANSCODE_TABLE_INFO,
+ 1, /* input_unit_length */
+ 3, /* max_input */
+ 3, /* max_output */
+ asciicompat_decoder, /* asciicompat_type */
+ 1, iso2022jp_kddi_init, iso2022jp_kddi_init, /* state_size, state_init, state_fini */
+ NULL, fun_si_iso2022jp_kddi_decoder, NULL, fun_so_iso2022jp_kddi_decoder
+};
+
+static ssize_t
+fun_so_iso2022jp_kddi_encoder(void *statep, const unsigned char *s, size_t l, unsigned char *o, size_t osize)
+{
+ unsigned char *sp = statep;
+ unsigned char *output0 = o;
+ int newstate;
+
+ if (l == 1)
+ newstate = G0_ASCII;
+ else if (s[0] == EMACS_MULE_LEADING_CODE_JISX0208_1978)
+ newstate = G0_JISX0208_1978;
+ else
+ newstate = G0_JISX0208_1983;
+
+ if (*sp != newstate) {
+ *o++ = 0x1b;
+ switch (newstate) {
+ case G0_ASCII:
+ *o++ = '(';
+ *o++ = 'B';
+ break;
+ case G0_JISX0208_1978:
+ *o++ = '$';
+ *o++ = '@';
+ break;
+ default:
+ *o++ = '$';
+ *o++ = 'B';
+ break;
+ }
+ *sp = newstate;
+ }
+
+ if (l == 1) {
+ *o++ = s[0] & 0x7f;
+ }
+ else {
+ *o++ = s[1] & 0x7f;
+ *o++ = s[2] & 0x7f;
+ }
+
+ return o - output0;
+}
+
+static ssize_t
+iso2022jp_kddi_encoder_reset_sequence_size(void *statep)
+{
+ unsigned char *sp = statep;
+ if (*sp != G0_ASCII) return 3;
+ return 0;
+}
+
+static ssize_t
+finish_iso2022jp_kddi_encoder(void *statep, unsigned char *o, size_t osize)
+{
+ unsigned char *sp = statep;
+ unsigned char *output0 = o;
+
+ if (*sp == G0_ASCII)
+ return 0;
+
+ *o++ = 0x1b;
+ *o++ = '(';
+ *o++ = 'B';
+ *sp = G0_ASCII;
+
+ return o - output0;
+}
+
+static const rb_transcoder
+rb_iso2022jp_kddi_encoder = {
+ "stateless-ISO-2022-JP-KDDI", "ISO-2022-JP-KDDI", iso2022jp_kddi_encoder,
+ TRANSCODE_TABLE_INFO,
+ 1, /* input_unit_length */
+ 3, /* max_input */
+ 5, /* max_output */
+ asciicompat_encoder, /* asciicompat_type */
+ 1, iso2022jp_kddi_init, iso2022jp_kddi_init, /* state_size, state_init, state_fini */
+ NULL, NULL, NULL, fun_so_iso2022jp_kddi_encoder,
+ finish_iso2022jp_kddi_encoder,
+ iso2022jp_kddi_encoder_reset_sequence_size, finish_iso2022jp_kddi_encoder
+};
+
+void
+Init_emoji_iso2022_kddi(void)
+{
+ rb_register_transcoder(&rb_iso2022jp_kddi_decoder);
+ rb_register_transcoder(&rb_iso2022jp_kddi_encoder);
+<%= transcode_register_code %>
+}
diff --git a/enc/trans/emoji_sjis_docomo.trans b/enc/trans/emoji_sjis_docomo.trans
new file mode 100644
index 0000000000..36e6e20339
--- /dev/null
+++ b/enc/trans/emoji_sjis_docomo.trans
@@ -0,0 +1,33 @@
+#include "transcode_data.h"
+
+<%
+ transcode_tblgen "SJIS-DOCOMO", "UTF8-DOCOMO",
+ [["{00-7f}", :nomap]] +
+ citrus_decode_mapsrc("mskanji", 1, "JISX0201-KANA/UCS") +
+ citrus_decode_mapsrc("mskanji", 2, %w(EMOJI_SHIFT_JIS-DOCOMO/UCS
+ JISX0208VDC:NEC/UCS
+ CP932VDC:NEC_IBM/UCS
+ CP932VDC:IBM/UCS
+ CP932UDA/UCS
+ JISX0208:MS/UCS).join(",")),
+ ValidEncoding('Shift_JIS')
+
+ transcode_tblgen "UTF8-DOCOMO", "SJIS-DOCOMO",
+ [["{00-7f}", :nomap]] +
+ citrus_decode_mapsrc("mskanji", 1, "UCS/JISX0201-KANA") +
+ citrus_decode_mapsrc("mskanji", 2, %w(UCS/EMOJI_SHIFT_JIS-DOCOMO
+ UCS/JISX0208VDC:NEC
+ UCS/CP932VDC:NEC_IBM
+ UCS/CP932VDC:IBM
+ UCS/CP932UDA
+ UCS/JISX0208:MS).join(",")),
+ ValidEncoding('UTF-8')
+%>
+
+<%= transcode_generated_code %>
+
+void
+Init_emoji_sjis_docomo(void)
+{
+<%= transcode_register_code %>
+}
diff --git a/enc/trans/emoji_sjis_kddi.trans b/enc/trans/emoji_sjis_kddi.trans
new file mode 100644
index 0000000000..654bed134e
--- /dev/null
+++ b/enc/trans/emoji_sjis_kddi.trans
@@ -0,0 +1,34 @@
+#include "transcode_data.h"
+
+<%
+ transcode_tblgen "SJIS-KDDI", "UTF8-KDDI",
+ [["{00-7f}", :nomap]] +
+ citrus_decode_mapsrc("mskanji", 1, "JISX0201-KANA/UCS") +
+ citrus_decode_mapsrc("mskanji", 2, %w(EMOJI_SHIFT_JIS-KDDI/UCS
+ JISX0208VDC:NEC/UCS
+ CP932VDC:NEC_IBM/UCS
+ CP932VDC:IBM/UCS
+ CP932UDA/UCS
+ JISX0208:MS/UCS).join(",")),
+ ValidEncoding('Shift_JIS')
+
+ transcode_tblgen "UTF8-KDDI", "SJIS-KDDI",
+ [["{00-7f}", :nomap]] +
+ citrus_decode_mapsrc("mskanji", 1, "UCS/JISX0201-KANA") +
+ citrus_decode_mapsrc("mskanji", 2, %w(UCS/EMOJI_SHIFT_JIS-KDDI
+ UCS/EMOJI_SHIFT_JIS-KDDI-UNDOC
+ UCS/JISX0208VDC:NEC
+ UCS/CP932VDC:NEC_IBM
+ UCS/CP932VDC:IBM
+ UCS/CP932UDA
+ UCS/JISX0208:MS).join(",")),
+ ValidEncoding('UTF-8')
+%>
+
+<%= transcode_generated_code %>
+
+void
+Init_emoji_sjis_kddi(void)
+{
+<%= transcode_register_code %>
+}
diff --git a/enc/trans/emoji_sjis_softbank.trans b/enc/trans/emoji_sjis_softbank.trans
new file mode 100644
index 0000000000..c152d99c76
--- /dev/null
+++ b/enc/trans/emoji_sjis_softbank.trans
@@ -0,0 +1,33 @@
+#include "transcode_data.h"
+
+<%
+ transcode_tblgen "SJIS-SoftBank", "UTF8-SoftBank",
+ [["{00-7f}", :nomap]] +
+ citrus_decode_mapsrc("mskanji", 1, "JISX0201-KANA/UCS") +
+ citrus_decode_mapsrc("mskanji", 2, %w(EMOJI_SHIFT_JIS-SOFTBANK/UCS
+ JISX0208VDC:NEC/UCS
+ CP932VDC:NEC_IBM/UCS
+ CP932VDC:IBM/UCS
+ CP932UDA/UCS
+ JISX0208:MS/UCS).join(",")),
+ ValidEncoding('Shift_JIS')
+
+ transcode_tblgen "UTF8-SoftBank", "SJIS-SoftBank",
+ [["{00-7f}", :nomap]] +
+ citrus_decode_mapsrc("mskanji", 1, "UCS/JISX0201-KANA") +
+ citrus_decode_mapsrc("mskanji", 2, %w(UCS/EMOJI_SHIFT_JIS-SOFTBANK
+ UCS/JISX0208VDC:NEC
+ UCS/CP932VDC:NEC_IBM
+ UCS/CP932VDC:IBM
+ UCS/CP932UDA
+ UCS/JISX0208:MS).join(",")),
+ ValidEncoding('UTF-8')
+%>
+
+<%= transcode_generated_code %>
+
+void
+Init_emoji_sjis_softbank(void)
+{
+<%= transcode_register_code %>
+}
diff --git a/enc/trans/escape.trans b/enc/trans/escape.trans
index f45f27bc41..a2fbebac33 100644
--- a/enc/trans/escape.trans
+++ b/enc/trans/escape.trans
@@ -8,14 +8,14 @@
transcode_tblgen("", "amp_escape", [
["{00-25,27-FF}", :nomap],
["26", hexstr("&amp;")]
- ])
+ ], nil)
transcode_tblgen("", "xml_text_escape", [
["{00-25,27-3B,3D,3F-FF}", :nomap],
["26", hexstr("&amp;")],
["3C", hexstr("&lt;")],
["3E", hexstr("&gt;")]
- ])
+ ], nil)
transcode_tblgen("", "xml_attr_content_escape", [
["{00-21,23-25,27-3B,3D,3F-FF}", :nomap],
@@ -23,7 +23,7 @@
["26", hexstr("&amp;")],
["3C", hexstr("&lt;")],
["3E", hexstr("&gt;")]
- ])
+ ], nil)
map_xml_attr_quote = {}
map_xml_attr_quote["{00-FF}"] = :func_so
diff --git a/enc/trans/gb18030-tbl.rb b/enc/trans/gb18030-tbl.rb
index 17a01d8885..e1c29deeb1 100644
--- a/enc/trans/gb18030-tbl.rb
+++ b/enc/trans/gb18030-tbl.rb
@@ -1,4 +1,36 @@
GB18030_TO_UCS_TBL = [
+ ["81308130",0x80],
+ ["81308131",0x81],
+ ["81308132",0x82],
+ ["81308133",0x83],
+ ["81308134",0x84],
+ ["81308135",0x85],
+ ["81308136",0x86],
+ ["81308137",0x87],
+ ["81308138",0x88],
+ ["81308139",0x89],
+ ["81308230",0x8A],
+ ["81308231",0x8B],
+ ["81308232",0x8C],
+ ["81308233",0x8D],
+ ["81308234",0x8E],
+ ["81308235",0x8F],
+ ["81308236",0x90],
+ ["81308237",0x91],
+ ["81308238",0x92],
+ ["81308239",0x93],
+ ["81308330",0x94],
+ ["81308331",0x95],
+ ["81308332",0x96],
+ ["81308333",0x97],
+ ["81308334",0x98],
+ ["81308335",0x99],
+ ["81308336",0x9A],
+ ["81308337",0x9B],
+ ["81308338",0x9C],
+ ["81308339",0x9D],
+ ["81308430",0x9E],
+ ["81308431",0x9F],
["81308432",0xA0],
["81308433",0xA1],
["81308434",0xA2],
diff --git a/enc/trans/gb18030.trans b/enc/trans/gb18030.trans
index 700522c9f0..c7da4c64b4 100644
--- a/enc/trans/gb18030.trans
+++ b/enc/trans/gb18030.trans
@@ -2,16 +2,64 @@
<%
require "gb18030-tbl"
+
+ def linear(code)
+ bytes = [code].pack('H8').unpack 'C4'
+ ((bytes[0]*10+bytes[1])*126+bytes[2])*10+bytes[3]
+ end
+
+ def calculate_differences_gb_utf(table)
+ table.collect do |code|
+ code = code.dup
+ if code[0].length == 4
+ if code[1] < 0x800 # GB-18030: 2 bytes, UTF-8: 2 bytes
+ # do nothing
+ else # GB-18030: 2 bytes, UTF-8: 3 bytes
+ gb_linear2b = code[0].to_i(16)
+ diff2b = gb_linear2b - code[1] + 24055
+ code[1] = "funsio(#{diff2b})"
+ end
+ else
+ if code[1] < 0x800 # GB-18030: 4 bytes, UTF-8: 2 bytes
+ # do nothing
+ else # GB-18030: 4 bytes, UTF-8: 3 bytes
+ gb_linear4b = linear(code[0])
+ diff4b = gb_linear4b - code[1] - 0x170000
+ code[1] = "funsio(#{diff4b})"
+ end
+ end
+ code
+ end
+ end
+
+ def calculate_differences_utf_gb(table)
+ table_rev = table.map{|a,b| [b,a]}
+ table_rev.collect do |code|
+ code = code.dup
+ if code[0] >= 0x800
+ if code[1].length == 4 #GB18030 2byte UTF-8 3byte
+ gb_linear2b = code[1].to_i(16)
+ diff2b = gb_linear2b - code[0] + 24055
+ code[1] = "funsio(#{diff2b})"
+ else # GB-18030: 4 bytes, UTF-8: 3 bytes
+ gb_linear4b = linear(code[1])
+ diff4b = gb_linear4b - code[0] - 0x170000
+ code[1] = "funsio(#{diff4b})"
+ end
+ end
+ code
+ end
+ end
transcode_tbl_only "GB18030", "UTF-8", [["{00-7f}", :nomap]] +
- GB18030_TO_UCS_TBL + [
+ calculate_differences_gb_utf(GB18030_TO_UCS_TBL) + [
["{90-e2}{30-39}{81-fe}{30-39}", :func_so],
["e3{30-31}{81-fe}{30-39}", :func_so],
["e332{81-99}{30-39}", :func_so],
["e3329a{30-35}", :func_so], # "E3329A35" is U+10FFFF
]
transcode_tbl_only "UTF-8", "GB18030", [["{00-7f}", :nomap]] +
- GB18030_TO_UCS_TBL.map {|a,b| [b,a] } + [
+ calculate_differences_utf_gb(GB18030_TO_UCS_TBL) + [
["f0{90-bf}{80-bf}{80-bf}", :func_so],
["{f1-f3}{80-bf}{80-bf}{80-bf}", :func_so],
["f4{80-8f}{80-bf}{80-bf}", :func_so]
@@ -20,6 +68,7 @@
<%= transcode_generated_code %>
+/* GB18030 4byte, UTF-8 4byte*/
static ssize_t
fun_so_from_gb18030(void *statep, const unsigned char *s, size_t l, unsigned char *o, size_t osize)
{
@@ -33,6 +82,7 @@ fun_so_from_gb18030(void *statep, const unsigned char *s, size_t l, unsigned cha
return 4;
}
+/* GB18030 4byte, UTF-8 4byte*/
static ssize_t
fun_so_to_gb18030(void *statep, const unsigned char *s, size_t l, unsigned char *o, size_t osize)
{
@@ -49,6 +99,56 @@ fun_so_to_gb18030(void *statep, const unsigned char *s, size_t l, unsigned char
return 4;
}
+/* GB18030 2byte, UTF-8 3byte and GB18030 4byte, UTF-8 3byte*/
+static ssize_t
+fun_sio_from_gb18030(void *statep, const unsigned char *s, size_t l, VALUE info, unsigned char *o, size_t osize)
+{
+ unsigned int diff = (unsigned int)(info >> 8);
+ unsigned int u; /* Unicode Scalar Value */
+ if (diff & 0x20000) { /* GB18030 4 bytes */
+ u = ((s[0]*10+s[1])*126+s[2])*10+s[3] - diff - 0x170000;
+ }
+ else { /* GB18030 2 bytes */
+ u = s[0]*256 + s[1] + 24055 - diff;
+ }
+ o[0] = 0xE0 | (u>>12);
+ o[1] = 0x80 | ((u>>6)&0x3F);
+ o[2] = 0x80 | (u&0x3F);
+ return 3;
+}
+
+/* GB18030 2byte, UTF-8 3byte and GB18030 4byte, UTF-8 3byte*/
+static ssize_t
+fun_sio_to_gb18030(void *statep, const unsigned char *s, size_t l, VALUE info, unsigned char *o, size_t osize)
+{
+ unsigned int diff = (unsigned int)(info >> 8);
+ unsigned int u; /* Unicode Scalar Value */
+
+ u = ((s[0]&0x0F)<<12) | ((s[1]&0x3F)<<6) | (s[2]&0x3F);
+
+ if (diff & 0x20000) { /* GB18030 4 bytes */
+ u += (diff + 0x170000);
+ u -= 1688980;
+ u += 0x2;
+ o[3] = 0x30 + u%10;
+ u /= 10;
+ u += 0x32;
+ o[2] = 0x81 + u%126;
+ u /= 126;
+ u += 0x1;
+ o[1] = 0x30 + u%10;
+ u /= 10;
+ o[0] = 0x81 + u;
+ return 4;
+ }
+ else { /* GB18030 2 bytes */
+ u += (diff - 24055);
+ o[1] = u%256;
+ o[0] = u/256;
+ return 2;
+ }
+}
+
static const rb_transcoder
rb_from_GB18030 = {
@@ -56,11 +156,11 @@ rb_from_GB18030 = {
TRANSCODE_TABLE_INFO,
1, /* input_unit_length */
4, /* max_input */
- 3, /* max_output */
+ 4, /* max_output */
asciicompat_converter, /* asciicompat_type */
0, NULL, NULL, /* state_size, state_init, state_fini */
NULL, NULL, NULL, fun_so_from_gb18030,
- NULL, NULL, NULL
+ NULL, NULL, NULL, fun_sio_from_gb18030
};
static const rb_transcoder
rb_to_GB18030 = {
@@ -72,7 +172,7 @@ rb_to_GB18030 = {
asciicompat_converter, /* asciicompat_type */
0, NULL, NULL, /* state_size, state_init, state_fini */
NULL, NULL, NULL, fun_so_to_gb18030,
- NULL, NULL, NULL
+ NULL, NULL, NULL, fun_sio_to_gb18030
};
diff --git a/enc/trans/gbk-tbl.rb b/enc/trans/gbk-tbl.rb
index 5b4374bb61..26f5078c45 100644
--- a/enc/trans/gbk-tbl.rb
+++ b/enc/trans/gbk-tbl.rb
@@ -172,6 +172,7 @@ GBK_TO_UCS_TBL= [
["A1E5",0x2033],
["A846",0x2035],
["A1F9",0x203B],
+ ["80",0x20AC],
["A1E6",0x2103],
["A847",0x2105],
["A848",0x2109],
diff --git a/enc/trans/ibm737-tbl.rb b/enc/trans/ibm737-tbl.rb
new file mode 100644
index 0000000000..44036ce15f
--- /dev/null
+++ b/enc/trans/ibm737-tbl.rb
@@ -0,0 +1,130 @@
+IBM737_TO_UCS_TBL = [
+ ["80",0x391],
+ ["81",0x392],
+ ["82",0x393],
+ ["83",0x394],
+ ["84",0x395],
+ ["85",0x396],
+ ["86",0x397],
+ ["87",0x398],
+ ["88",0x399],
+ ["89",0x39A],
+ ["8A",0x39B],
+ ["8B",0x39C],
+ ["8C",0x39D],
+ ["8D",0x39E],
+ ["8E",0x39F],
+ ["8F",0x3A0],
+ ["90",0x3A1],
+ ["91",0x3A3],
+ ["92",0x3A4],
+ ["93",0x3A5],
+ ["94",0x3A6],
+ ["95",0x3A7],
+ ["96",0x3A8],
+ ["97",0x3A9],
+ ["98",0x3B1],
+ ["99",0x3B2],
+ ["9A",0x3B3],
+ ["9B",0x3B4],
+ ["9C",0x3B5],
+ ["9D",0x3B6],
+ ["9E",0x3B7],
+ ["9F",0x3B8],
+ ["A0",0x3B9],
+ ["A1",0x3BA],
+ ["A2",0x3BB],
+ ["A3",0x3BC],
+ ["A4",0x3BD],
+ ["A5",0x3BE],
+ ["A6",0x3BF],
+ ["A7",0x3C0],
+ ["A8",0x3C1],
+ ["A9",0x3C3],
+ ["AA",0x3C2],
+ ["AB",0x3C4],
+ ["AC",0x3C5],
+ ["AD",0x3C6],
+ ["AE",0x3C7],
+ ["AF",0x3C8],
+ ["B0",0x2591],
+ ["B1",0x2592],
+ ["B2",0x2593],
+ ["B3",0x2502],
+ ["B4",0x2524],
+ ["B5",0x2561],
+ ["B6",0x2562],
+ ["B7",0x2556],
+ ["B8",0x2555],
+ ["B9",0x2563],
+ ["BA",0x2551],
+ ["BB",0x2557],
+ ["BC",0x255D],
+ ["BD",0x255C],
+ ["BE",0x255B],
+ ["BF",0x2510],
+ ["C0",0x2514],
+ ["C1",0x2534],
+ ["C2",0x252C],
+ ["C3",0x251C],
+ ["C4",0x2500],
+ ["C5",0x253C],
+ ["C6",0x255E],
+ ["C7",0x255F],
+ ["C8",0x255A],
+ ["C9",0x2554],
+ ["CA",0x2569],
+ ["CB",0x2566],
+ ["CC",0x2560],
+ ["CD",0x2550],
+ ["CE",0x256C],
+ ["CF",0x2567],
+ ["D0",0x2568],
+ ["D1",0x2564],
+ ["D2",0x2565],
+ ["D3",0x2559],
+ ["D4",0x2558],
+ ["D5",0x2552],
+ ["D6",0x2553],
+ ["D7",0x256B],
+ ["D8",0x256A],
+ ["D9",0x2518],
+ ["DA",0x250C],
+ ["DB",0x2588],
+ ["DC",0x2584],
+ ["DD",0x258C],
+ ["DE",0x2590],
+ ["DF",0x2580],
+ ["E0",0x3C9],
+ ["E1",0x3AC],
+ ["E2",0x3AD],
+ ["E3",0x3AE],
+ ["E4",0x3CA],
+ ["E5",0x3AF],
+ ["E6",0x3CC],
+ ["E7",0x3CD],
+ ["E8",0x3CB],
+ ["E9",0x3CE],
+ ["EA",0x386],
+ ["EB",0x388],
+ ["EC",0x389],
+ ["ED",0x38A],
+ ["EE",0x38C],
+ ["EF",0x38E],
+ ["F0",0x38F],
+ ["F1",0xB1],
+ ["F2",0x2265],
+ ["F3",0x2264],
+ ["F4",0x3AA],
+ ["F5",0x3AB],
+ ["F6",0xF7],
+ ["F7",0x2248],
+ ["F8",0xB0],
+ ["F9",0x2219],
+ ["FA",0xB7],
+ ["FB",0x221A],
+ ["FC",0x207F],
+ ["FD",0xB2],
+ ["FE",0x25A0],
+ ["FF",0xA0],
+]
diff --git a/enc/trans/iso2022.trans b/enc/trans/iso2022.trans
index a93f211f62..3f40cce3c8 100644
--- a/enc/trans/iso2022.trans
+++ b/enc/trans/iso2022.trans
@@ -46,7 +46,7 @@
"1b2442" => :func_so, # designate JIS X 0208 1983 to G0. "ESC $ B"
"0e" => :func_so, # designate JIS X 0201 katakana to G0. "SO"
"0f" => :func_so, # designate US-ASCII to G0. "SI"
- "{00-0d,10-1a,1c-92}" => :func_si,
+ "{00-0d,10-1a,1c-92,a1-df}" => :func_si,
}
transcode_generate_node(ActionMap.parse(map), "cp50221_decoder")
@@ -269,22 +269,26 @@ static VALUE
fun_si_cp50221_decoder(void *statep, const unsigned char *s, size_t l)
{
unsigned char *sp = statep;
+ int c;
switch (*sp) {
case G0_ASCII:
+ if (0xA1 <= s[0] && s[0] <= 0xDF)
+ return (VALUE)FUNso;
return (VALUE)NOMAP;
case G0_JISX0201_KATAKANA:
- if (0x21 <= s[0] && s[0] <= 0x5f)
+ c = s[0] & 0x7F;
+ if (0x21 <= c && c <= 0x5f)
return (VALUE)FUNso;
break;
case G0_JISX0208_1978:
- if (0x21 <= s[0] && s[0] <= 0x28 || 0x30 <= s[0] && s[0] <= 0x74)
+ if ((0x21 <= s[0] && s[0] <= 0x28) || (0x30 <= s[0] && s[0] <= 0x74))
return (VALUE)iso2022jp_decoder_jisx0208_rest;
break;
case G0_JISX0208_1983:
- if (0x21 <= s[0] && s[0] <= 0x28 ||
+ if ((0x21 <= s[0] && s[0] <= 0x28) ||
s[0] == 0x2D ||
- 0x30 <= s[0] && s[0] <= 0x74 ||
- 0x79 <= s[0] && s[0] <= 0x7C)
+ (0x30 <= s[0] && s[0] <= 0x74) ||
+ (0x79 <= s[0] && s[0] <= 0x7C))
/* 0x7F <= s[0] && s[0] <= 0x92) */
return (VALUE)iso2022jp_decoder_jisx0208_rest;
break;
@@ -327,7 +331,8 @@ fun_so_cp50221_decoder(void *statep, const unsigned char *s, size_t l, unsigned
*sp = G0_ASCII;
return 0;
default:
- if (*sp == G0_JISX0201_KATAKANA) {
+ if (*sp == G0_JISX0201_KATAKANA ||
+ (0xA1 <= s[0] && s[0] <= 0xDF && *sp == G0_ASCII)) {
o[0] = 0x8E;
o[1] = s[0] | 0x80;
}
@@ -353,6 +358,18 @@ fun_so_cp50221_decoder(void *statep, const unsigned char *s, size_t l, unsigned
}
static const rb_transcoder
+rb_cp50220_decoder = {
+ "CP50220", "cp51932", cp50221_decoder,
+ TRANSCODE_TABLE_INFO,
+ 1, /* input_unit_length */
+ 3, /* max_input */
+ 3, /* max_output */
+ asciicompat_decoder, /* asciicompat_type */
+ 1, iso2022jp_init, iso2022jp_init, /* state_size, state_init, state_fini */
+ NULL, fun_si_cp50221_decoder, NULL, fun_so_cp50221_decoder
+};
+
+static const rb_transcoder
rb_cp50221_decoder = {
"CP50221", "cp51932", cp50221_decoder,
TRANSCODE_TABLE_INFO,
@@ -365,7 +382,8 @@ rb_cp50221_decoder = {
};
static ssize_t
-fun_so_cp50221_encoder(void *statep, const unsigned char *s, size_t l, unsigned char *o, size_t osize)
+fun_so_cp5022x_encoder(void *statep, const unsigned char *s, size_t l,
+ unsigned char *o, size_t osize)
{
unsigned char *sp = statep;
unsigned char *output0 = o;
@@ -420,11 +438,121 @@ rb_cp50221_encoder = {
5, /* max_output */
asciicompat_encoder, /* asciicompat_type */
1, iso2022jp_init, iso2022jp_init, /* state_size, state_init, state_fini */
- NULL, NULL, NULL, fun_so_cp50221_encoder,
+ NULL, NULL, NULL, fun_so_cp5022x_encoder,
finish_iso2022jp_encoder,
iso2022jp_encoder_reset_sequence_size, finish_iso2022jp_encoder
};
+static const char *tbl0208 =
+ "\x21\x23\x21\x56\x21\x57\x21\x22\x21\x26\x25\x72\x25\x21\x25\x23" \
+ "\x25\x25\x25\x27\x25\x29\x25\x63\x25\x65\x25\x67\x25\x43\x21\x3C" \
+ "\x25\x22\x25\x24\x25\x26\x25\x28\x25\x2A\x25\x2B\x25\x2D\x25\x2F" \
+ "\x25\x31\x25\x33\x25\x35\x25\x37\x25\x39\x25\x3B\x25\x3D\x25\x3F" \
+ "\x25\x41\x25\x44\x25\x46\x25\x48\x25\x4A\x25\x4B\x25\x4C\x25\x4D" \
+ "\x25\x4E\x25\x4F\x25\x52\x25\x55\x25\x58\x25\x5B\x25\x5E\x25\x5F" \
+ "\x25\x60\x25\x61\x25\x62\x25\x64\x25\x66\x25\x68\x25\x69\x25\x6A" \
+ "\x25\x6B\x25\x6C\x25\x6D\x25\x6F\x25\x73\x21\x2B\x21\x2C";
+
+static ssize_t
+fun_so_cp50220_encoder(void *statep, const unsigned char *s, size_t l,
+ unsigned char *o, size_t osize)
+{
+ unsigned char *output0 = o;
+ unsigned char *sp = statep;
+
+ if (sp[0] == G0_JISX0201_KATAKANA) {
+ int c = sp[2] & 0x7F;
+ const char *p = tbl0208 + (c - 0x21) * 2;
+ if (sp[1] != G0_JISX0208_1983) {
+ *o++ = 0x1b;
+ *o++ = '$';
+ *o++ = 'B';
+ }
+ sp[0] = G0_JISX0208_1983;
+ *o++ = *p++;
+ if (l == 2 && s[0] == 0x8E) {
+ if (s[1] == 0xDE) {
+ *o++ = *p + 1;
+ return o - output0;
+ }
+ else if (s[1] == 0xDF && (0x4A <= c && c <= 0x4E)) {
+ *o++ = *p + 2;
+ return o - output0;
+ }
+ }
+ *o++ = *p;
+ }
+
+ if (l == 2 && s[0] == 0x8E) {
+ const char *p = tbl0208 + (s[1] - 0xA1) * 2;
+ if ((0xA1 <= s[1] && s[1] <= 0xB5) ||
+ (0xC5 <= s[1] && s[1] <= 0xC9) ||
+ (0xCF <= s[1] && s[1] <= 0xDF)) {
+ if (*sp != G0_JISX0208_1983) {
+ *o++ = 0x1b;
+ *o++ = '$';
+ *o++ = 'B';
+ *sp = G0_JISX0208_1983;
+ }
+ *o++ = *p++;
+ *o++ = *p;
+ return o - output0;
+ }
+
+ sp[2] = s[1];
+ sp[1] = sp[0];
+ sp[0] = G0_JISX0201_KATAKANA;
+ return o - output0;
+ }
+
+ o += fun_so_cp5022x_encoder(statep, s, l, o, osize);
+ return o - output0;
+}
+
+static ssize_t
+finish_cp50220_encoder(void *statep, unsigned char *o, size_t osize)
+{
+ unsigned char *sp = statep;
+ unsigned char *output0 = o;
+
+ if (*sp == G0_ASCII)
+ return 0;
+
+ if (sp[0] == G0_JISX0201_KATAKANA) {
+ int c = sp[2] & 0x7F;
+ const char *p = tbl0208 + (c - 0x21) * 2;
+ if (sp[1] != G0_JISX0208_1983) {
+ *o++ = 0x1b;
+ *o++ = '$';
+ *o++ = 'B';
+ }
+ sp[0] = G0_JISX0208_1983;
+ *o++ = *p++;
+ *o++ = *p;
+ }
+
+ *o++ = 0x1b;
+ *o++ = '(';
+ *o++ = 'B';
+ *sp = G0_ASCII;
+
+ return o - output0;
+}
+
+static const rb_transcoder
+rb_cp50220_encoder = {
+ "CP51932", "CP50220", cp50221_encoder,
+ TRANSCODE_TABLE_INFO,
+ 1, /* input_unit_length */
+ 3, /* max_input */
+ 5, /* max_output */
+ asciicompat_encoder, /* asciicompat_type */
+ 3, iso2022jp_init, iso2022jp_init, /* state_size, state_init, state_fini */
+ NULL, NULL, NULL, fun_so_cp50220_encoder,
+ finish_cp50220_encoder,
+ iso2022jp_encoder_reset_sequence_size, finish_cp50220_encoder
+};
+
void
Init_iso2022(void)
{
@@ -432,7 +560,9 @@ Init_iso2022(void)
rb_register_transcoder(&rb_iso2022jp_encoder);
rb_register_transcoder(&rb_stateless_iso2022jp_to_eucjp);
rb_register_transcoder(&rb_eucjp_to_stateless_iso2022jp);
+ rb_register_transcoder(&rb_cp50220_decoder);
rb_register_transcoder(&rb_cp50221_decoder);
+ rb_register_transcoder(&rb_cp50220_encoder);
rb_register_transcoder(&rb_cp50221_encoder);
}
diff --git a/enc/trans/newline.trans b/enc/trans/newline.trans
index d62034aa49..a200ec00a7 100644
--- a/enc/trans/newline.trans
+++ b/enc/trans/newline.trans
@@ -48,26 +48,26 @@ fun_so_universal_newline(void *statep, const unsigned char *s, size_t l, unsigne
if (s[0] == '\n') {
if (STATE == NORMAL) {
NEWLINES_MET |= MET_LF;
- o[0] = '\n';
- len = 1;
}
else { /* JUST_AFTER_CR */
NEWLINES_MET |= MET_CRLF;
- len = 0;
}
+ o[0] = '\n';
+ len = 1;
STATE = NORMAL;
}
else {
- if (STATE == JUST_AFTER_CR)
- NEWLINES_MET |= MET_CR;
- if (s[0] == '\r') {
+ len = 0;
+ if (STATE == JUST_AFTER_CR) {
o[0] = '\n';
len = 1;
+ NEWLINES_MET |= MET_CR;
+ }
+ if (s[0] == '\r') {
STATE = JUST_AFTER_CR;
}
else {
- o[0] = s[0];
- len = 1;
+ o[len++] = s[0];
STATE = NORMAL;
}
}
@@ -79,10 +79,14 @@ static ssize_t
universal_newline_finish(void *statep, unsigned char *o, size_t osize)
{
unsigned char *sp = statep;
- if (STATE == JUST_AFTER_CR)
+ int len = 0;
+ if (STATE == JUST_AFTER_CR) {
+ o[0] = '\n';
+ len = 1;
NEWLINES_MET |= MET_CR;
+ }
STATE = NORMAL;
- return 0;
+ return len;
}
static const rb_transcoder
@@ -91,7 +95,7 @@ rb_universal_newline = {
TRANSCODE_TABLE_INFO,
1, /* input_unit_length */
1, /* max_input */
- 1, /* max_output */
+ 2, /* max_output */
asciicompat_converter, /* asciicompat_type */
2, universal_newline_init, universal_newline_init, /* state_size, state_init, state_fini */
NULL, NULL, NULL, fun_so_universal_newline,
diff --git a/enc/trans/single_byte.trans b/enc/trans/single_byte.trans
index 0d42740d30..1bf1001720 100644
--- a/enc/trans/single_byte.trans
+++ b/enc/trans/single_byte.trans
@@ -22,9 +22,8 @@
require(name.downcase + "-tbl")
control1_if_needed = (name =~ /^ISO-8859/) ? CONTROL1_TO_UCS_TBL : []
tbl_to_ucs = control1_if_needed + eval(name.gsub(/-/, '_') + "_TO_UCS_TBL")
- set_valid_byte_pattern(name, '1byte')
code = ''
- code << transcode_tblgen(name, "UTF-8", [["{00-7f}", :nomap], *tbl_to_ucs])
+ code << transcode_tblgen(name, "UTF-8", [["{00-7f}", :nomap], *tbl_to_ucs.reject {|a, b| a.length != 2 }], '{00-ff}')
code << "\n"
code << transcode_tblgen("UTF-8", name, [["{00-7f}", :nomap], *tbl_to_ucs.map {|a,b| [b,a] }])
code
@@ -55,6 +54,7 @@
transcode_tblgen_singlebyte "WINDOWS-1257"
transcode_tblgen_singlebyte "IBM437"
transcode_tblgen_singlebyte "IBM775"
+ transcode_tblgen_singlebyte "IBM737"
transcode_tblgen_singlebyte "IBM852"
transcode_tblgen_singlebyte "IBM855"
transcode_tblgen_singlebyte "IBM857"
diff --git a/enc/trans/ucm/glibc-BIG5-2.3.3.ucm b/enc/trans/ucm/glibc-BIG5-2.3.3.ucm
new file mode 100644
index 0000000000..912f84d6ca
--- /dev/null
+++ b/enc/trans/ucm/glibc-BIG5-2.3.3.ucm
@@ -0,0 +1,14087 @@
+# ***************************************************************************
+# *
+# * Copyright (C) 2001-2005, International Business Machines
+# * Corporation and others. All Rights Reserved.
+# *
+# ***************************************************************************
+#
+# File created on Aug 10 10:03 PDT 2005
+#
+# File created by genucm tool.
+# from glibc 2.3.3 using Linux with glibc 2.3.3
+#
+# Table Version : 1.0
+# The 1st column is the Unicode scalar value.
+# The 2nd column is the codepage byte sequence.
+# The 3rd column is the fallback indicator.
+# The fallback indicator can have one of the following values:
+# |0 for exact 1-1 roundtrip mapping
+# |1 for the best fallback codepage byte sequence.
+# |2 for the substitution character
+# |3 for the best reverse fallback Unicode scaler value
+#
+# Encoding description:
+# Encoding name: BIG5
+#
+<code_set_name> "glibc-BIG5-2.3.3"
+<mb_cur_max> 2
+<mb_cur_min> 1
+<uconv_class> "MBCS"
+<subchar> \x1A
+<icu:charsetFamily> "ASCII"
+# Suggested ICU specific alias information
+#<icu:alias> "glibc-BIG5_VPUA"
+
+
+# The following was the generated state table.
+# This does not account for unassigned characters
+#<icu:state> 0-80, a1-f9:1
+#<icu:state> 40-7e, a1-fe
+#
+CHARMAP
+#
+#UNICODE BIG5
+#_______ _________
+<U0000> \x00 |0
+<U0001> \x01 |0
+<U0002> \x02 |0
+<U0003> \x03 |0
+<U0004> \x04 |0
+<U0005> \x05 |0
+<U0006> \x06 |0
+<U0007> \x07 |0
+<U0008> \x08 |0
+<U0009> \x09 |0
+<U000A> \x0A |0
+<U000B> \x0B |0
+<U000C> \x0C |0
+<U000D> \x0D |0
+<U000E> \x0E |0
+<U000F> \x0F |0
+<U0010> \x10 |0
+<U0011> \x11 |0
+<U0012> \x12 |0
+<U0013> \x13 |0
+<U0014> \x14 |0
+<U0015> \x15 |0
+<U0016> \x16 |0
+<U0017> \x17 |0
+<U0018> \x18 |0
+<U0019> \x19 |0
+<U001A> \x1A |0
+<U001B> \x1B |0
+<U001C> \x1C |0
+<U001D> \x1D |0
+<U001E> \x1E |0
+<U001F> \x1F |0
+<U0020> \x20 |0
+<U0021> \x21 |0
+<U0022> \x22 |0
+<U0023> \x23 |0
+<U0024> \x24 |0
+<U0025> \x25 |0
+<U0026> \x26 |0
+<U0027> \x27 |0
+<U0028> \x28 |0
+<U0029> \x29 |0
+<U002A> \x2A |0
+<U002B> \x2B |0
+<U002C> \x2C |0
+<U002D> \x2D |0
+<U002E> \x2E |0
+<U002F> \x2F |0
+<U0030> \x30 |0
+<U0031> \x31 |0
+<U0032> \x32 |0
+<U0033> \x33 |0
+<U0034> \x34 |0
+<U0035> \x35 |0
+<U0036> \x36 |0
+<U0037> \x37 |0
+<U0038> \x38 |0
+<U0039> \x39 |0
+<U003A> \x3A |0
+<U003B> \x3B |0
+<U003C> \x3C |0
+<U003D> \x3D |0
+<U003E> \x3E |0
+<U003F> \x3F |0
+<U0040> \x40 |0
+<U0041> \x41 |0
+<U0042> \x42 |0
+<U0043> \x43 |0
+<U0044> \x44 |0
+<U0045> \x45 |0
+<U0046> \x46 |0
+<U0047> \x47 |0
+<U0048> \x48 |0
+<U0049> \x49 |0
+<U004A> \x4A |0
+<U004B> \x4B |0
+<U004C> \x4C |0
+<U004D> \x4D |0
+<U004E> \x4E |0
+<U004F> \x4F |0
+<U0050> \x50 |0
+<U0051> \x51 |0
+<U0052> \x52 |0
+<U0053> \x53 |0
+<U0054> \x54 |0
+<U0055> \x55 |0
+<U0056> \x56 |0
+<U0057> \x57 |0
+<U0058> \x58 |0
+<U0059> \x59 |0
+<U005A> \x5A |0
+<U005B> \x5B |0
+<U005C> \x5C |0
+<U005D> \x5D |0
+<U005E> \x5E |0
+<U005F> \x5F |0
+<U0060> \x60 |0
+<U0061> \x61 |0
+<U0062> \x62 |0
+<U0063> \x63 |0
+<U0064> \x64 |0
+<U0065> \x65 |0
+<U0066> \x66 |0
+<U0067> \x67 |0
+<U0068> \x68 |0
+<U0069> \x69 |0
+<U006A> \x6A |0
+<U006B> \x6B |0
+<U006C> \x6C |0
+<U006D> \x6D |0
+<U006E> \x6E |0
+<U006F> \x6F |0
+<U0070> \x70 |0
+<U0071> \x71 |0
+<U0072> \x72 |0
+<U0073> \x73 |0
+<U0074> \x74 |0
+<U0075> \x75 |0
+<U0076> \x76 |0
+<U0077> \x77 |0
+<U0078> \x78 |0
+<U0079> \x79 |0
+<U007A> \x7A |0
+<U007B> \x7B |0
+<U007C> \x7C |0
+<U007D> \x7D |0
+<U007E> \x7E |0
+<U007F> \x7F |0
+#<U0080> \x80 |0
+<U00A7> \xA1\xB1 |0
+<U00AF> \xA1\xC2 |0
+<U00B0> \xA2\x58 |0
+<U00B1> \xA1\xD3 |0
+<U00B7> \xA1\x50 |0
+<U00D7> \xA1\xD1 |0
+<U00F7> \xA1\xD2 |0
+<U02C7> \xA3\xBE |0
+<U02C9> \xA3\xBC |0
+<U02CA> \xA3\xBD |0
+<U02CB> \xA3\xBF |0
+<U02CD> \xA1\xC5 |0
+<U02D9> \xA3\xBB |0
+<U0391> \xA3\x44 |0
+<U0392> \xA3\x45 |0
+<U0393> \xA3\x46 |0
+<U0394> \xA3\x47 |0
+<U0395> \xA3\x48 |0
+<U0396> \xA3\x49 |0
+<U0397> \xA3\x4A |0
+<U0398> \xA3\x4B |0
+<U0399> \xA3\x4C |0
+<U039A> \xA3\x4D |0
+<U039B> \xA3\x4E |0
+<U039C> \xA3\x4F |0
+<U039D> \xA3\x50 |0
+<U039E> \xA3\x51 |0
+<U039F> \xA3\x52 |0
+<U03A0> \xA3\x53 |0
+<U03A1> \xA3\x54 |0
+<U03A3> \xA3\x55 |0
+<U03A4> \xA3\x56 |0
+<U03A5> \xA3\x57 |0
+<U03A6> \xA3\x58 |0
+<U03A7> \xA3\x59 |0
+<U03A8> \xA3\x5A |0
+<U03A9> \xA3\x5B |0
+<U03B1> \xA3\x5C |0
+<U03B2> \xA3\x5D |0
+<U03B3> \xA3\x5E |0
+<U03B4> \xA3\x5F |0
+<U03B5> \xA3\x60 |0
+<U03B6> \xA3\x61 |0
+<U03B7> \xA3\x62 |0
+<U03B8> \xA3\x63 |0
+<U03B9> \xA3\x64 |0
+<U03BA> \xA3\x65 |0
+<U03BB> \xA3\x66 |0
+<U03BC> \xA3\x67 |0
+<U03BD> \xA3\x68 |0
+<U03BE> \xA3\x69 |0
+<U03BF> \xA3\x6A |0
+<U03C0> \xA3\x6B |0
+<U03C1> \xA3\x6C |0
+<U03C3> \xA3\x6D |0
+<U03C4> \xA3\x6E |0
+<U03C5> \xA3\x6F |0
+<U03C6> \xA3\x70 |0
+<U03C7> \xA3\x71 |0
+<U03C8> \xA3\x72 |0
+<U03C9> \xA3\x73 |0
+<U2013> \xA1\x56 |0
+<U2014> \xA1\x58 |0
+<U2018> \xA1\xA5 |0
+<U2019> \xA1\xA6 |0
+<U201C> \xA1\xA7 |0
+<U201D> \xA1\xA8 |0
+<U2025> \xA1\x4C |0
+<U2026> \xA1\x4B |0
+<U2027> \xA1\x45 |0
+<U2032> \xA1\xAC |0
+<U2035> \xA1\xAB |0
+<U203B> \xA1\xB0 |0
+<U20AC> \xA3\xE1 |0
+<U2103> \xA2\x4A |0
+<U2105> \xA1\xC1 |0
+<U2109> \xA2\x4B |0
+<U2160> \xA2\xB9 |0
+<U2161> \xA2\xBA |0
+<U2162> \xA2\xBB |0
+<U2163> \xA2\xBC |0
+<U2164> \xA2\xBD |0
+<U2165> \xA2\xBE |0
+<U2166> \xA2\xBF |0
+<U2167> \xA2\xC0 |0
+<U2168> \xA2\xC1 |0
+<U2169> \xA2\xC2 |0
+<U2190> \xA1\xF6 |0
+<U2191> \xA1\xF4 |0
+<U2192> \xA1\xF7 |0
+<U2193> \xA1\xF5 |0
+<U2196> \xA1\xF8 |0
+<U2197> \xA1\xF9 |0
+<U2198> \xA1\xFB |0
+<U2199> \xA1\xFA |0
+<U2215> \xA2\x41 |0
+<U221A> \xA1\xD4 |0
+<U221E> \xA1\xDB |0
+<U221F> \xA1\xE8 |0
+<U2220> \xA1\xE7 |0
+<U2223> \xA1\xFD |0
+<U2225> \xA1\xFC |0
+<U2229> \xA1\xE4 |0
+<U222A> \xA1\xE5 |0
+<U222B> \xA1\xEC |0
+<U222E> \xA1\xED |0
+<U2234> \xA1\xEF |0
+<U2235> \xA1\xEE |0
+<U2252> \xA1\xDC |0
+<U2260> \xA1\xDA |0
+<U2261> \xA1\xDD |0
+<U2266> \xA1\xD8 |0
+<U2267> \xA1\xD9 |0
+<U2295> \xA1\xF2 |0
+<U2299> \xA1\xF3 |0
+<U22A5> \xA1\xE6 |0
+<U22BF> \xA1\xE9 |0
+<U2500> \xA2\x77 |0
+<U2502> \xA2\x78 |0
+<U250C> \xA2\x7A |0
+<U2510> \xA2\x7B |0
+<U2514> \xA2\x7C |0
+<U2518> \xA2\x7D |0
+<U251C> \xA2\x75 |0
+<U2524> \xA2\x74 |0
+<U252C> \xA2\x73 |0
+<U2534> \xA2\x72 |0
+<U253C> \xA2\x71 |0
+<U2550> \xA2\xA4 |0
+<U2550> \xF9\xF9 |3
+<U2551> \xF9\xF8 |0
+<U2552> \xF9\xE6 |0
+<U2553> \xF9\xEF |0
+<U2554> \xF9\xDD |0
+<U2555> \xF9\xE8 |0
+<U2556> \xF9\xF1 |0
+<U2557> \xF9\xDF |0
+<U2558> \xF9\xEC |0
+<U2559> \xF9\xF5 |0
+<U255A> \xF9\xE3 |0
+<U255B> \xF9\xEE |0
+<U255C> \xF9\xF7 |0
+<U255D> \xF9\xE5 |0
+<U255E> \xA2\xA5 |0
+<U255E> \xF9\xE9 |3
+<U255F> \xF9\xF2 |0
+<U2560> \xF9\xE0 |0
+<U2561> \xA2\xA7 |0
+<U2561> \xF9\xEB |3
+<U2562> \xF9\xF4 |0
+<U2563> \xF9\xE2 |0
+<U2564> \xF9\xE7 |0
+<U2565> \xF9\xF0 |0
+<U2566> \xF9\xDE |0
+<U2567> \xF9\xED |0
+<U2568> \xF9\xF6 |0
+<U2569> \xF9\xE4 |0
+<U256A> \xA2\xA6 |0
+<U256A> \xF9\xEA |3
+<U256B> \xF9\xF3 |0
+<U256C> \xF9\xE1 |0
+<U256D> \xA2\x7E |0
+<U256D> \xF9\xFA |3
+<U256E> \xA2\xA1 |0
+<U256E> \xF9\xFB |3
+<U256F> \xA2\xA3 |0
+<U256F> \xF9\xFD |3
+<U2570> \xA2\xA2 |0
+<U2570> \xF9\xFC |3
+<U2571> \xA2\xAC |0
+<U2572> \xA2\xAD |0
+<U2573> \xA2\xAE |0
+<U2574> \xA1\x5A |0
+<U2581> \xA2\x62 |0
+<U2582> \xA2\x63 |0
+<U2583> \xA2\x64 |0
+<U2584> \xA2\x65 |0
+<U2585> \xA2\x66 |0
+<U2586> \xA2\x67 |0
+<U2587> \xA2\x68 |0
+<U2588> \xA2\x69 |0
+<U2589> \xA2\x70 |0
+<U258A> \xA2\x6F |0
+<U258B> \xA2\x6E |0
+<U258C> \xA2\x6D |0
+<U258D> \xA2\x6C |0
+<U258E> \xA2\x6B |0
+<U258F> \xA2\x6A |0
+<U2593> \xF9\xFE |0
+<U2594> \xA2\x76 |0
+<U2595> \xA2\x79 |0
+<U25A0> \xA1\xBD |0
+<U25A1> \xA1\xBC |0
+<U25B2> \xA1\xB6 |0
+<U25B3> \xA1\xB5 |0
+<U25BC> \xA1\xBF |0
+<U25BD> \xA1\xBE |0
+<U25C6> \xA1\xBB |0
+<U25C7> \xA1\xBA |0
+<U25CB> \xA1\xB3 |0
+<U25CE> \xA1\xB7 |0
+<U25CF> \xA1\xB4 |0
+<U25E2> \xA2\xA8 |0
+<U25E3> \xA2\xA9 |0
+<U25E4> \xA2\xAB |0
+<U25E5> \xA2\xAA |0
+<U2605> \xA1\xB9 |0
+<U2606> \xA1\xB8 |0
+<U2640> \xA1\xF0 |0
+<U2642> \xA1\xF1 |0
+<U3000> \xA1\x40 |0
+<U3001> \xA1\x42 |0
+<U3002> \xA1\x43 |0
+<U3003> \xA1\xB2 |0
+<U3008> \xA1\x71 |0
+<U3009> \xA1\x72 |0
+<U300A> \xA1\x6D |0
+<U300B> \xA1\x6E |0
+<U300C> \xA1\x75 |0
+<U300D> \xA1\x76 |0
+<U300E> \xA1\x79 |0
+<U300F> \xA1\x7A |0
+<U3010> \xA1\x69 |0
+<U3011> \xA1\x6A |0
+<U3012> \xA2\x45 |0
+<U3014> \xA1\x65 |0
+<U3015> \xA1\x66 |0
+<U301D> \xA1\xA9 |0
+<U301E> \xA1\xAA |0
+<U3021> \xA2\xC3 |0
+<U3022> \xA2\xC4 |0
+<U3023> \xA2\xC5 |0
+<U3024> \xA2\xC6 |0
+<U3025> \xA2\xC7 |0
+<U3026> \xA2\xC8 |0
+<U3027> \xA2\xC9 |0
+<U3028> \xA2\xCA |0
+<U3029> \xA2\xCB |0
+<U3105> \xA3\x74 |0
+<U3106> \xA3\x75 |0
+<U3107> \xA3\x76 |0
+<U3108> \xA3\x77 |0
+<U3109> \xA3\x78 |0
+<U310A> \xA3\x79 |0
+<U310B> \xA3\x7A |0
+<U310C> \xA3\x7B |0
+<U310D> \xA3\x7C |0
+<U310E> \xA3\x7D |0
+<U310F> \xA3\x7E |0
+<U3110> \xA3\xA1 |0
+<U3111> \xA3\xA2 |0
+<U3112> \xA3\xA3 |0
+<U3113> \xA3\xA4 |0
+<U3114> \xA3\xA5 |0
+<U3115> \xA3\xA6 |0
+<U3116> \xA3\xA7 |0
+<U3117> \xA3\xA8 |0
+<U3118> \xA3\xA9 |0
+<U3119> \xA3\xAA |0
+<U311A> \xA3\xAB |0
+<U311B> \xA3\xAC |0
+<U311C> \xA3\xAD |0
+<U311D> \xA3\xAE |0
+<U311E> \xA3\xAF |0
+<U311F> \xA3\xB0 |0
+<U3120> \xA3\xB1 |0
+<U3121> \xA3\xB2 |0
+<U3122> \xA3\xB3 |0
+<U3123> \xA3\xB4 |0
+<U3124> \xA3\xB5 |0
+<U3125> \xA3\xB6 |0
+<U3126> \xA3\xB7 |0
+<U3127> \xA3\xB8 |0
+<U3128> \xA3\xB9 |0
+<U3129> \xA3\xBA |0
+<U32A3> \xA1\xC0 |0
+<U338E> \xA2\x55 |0
+<U338F> \xA2\x56 |0
+<U339C> \xA2\x50 |0
+<U339D> \xA2\x51 |0
+<U339E> \xA2\x52 |0
+<U33A1> \xA2\x54 |0
+<U33C4> \xA2\x57 |0
+<U33CE> \xA2\x53 |0
+<U33D1> \xA1\xEB |0
+<U33D2> \xA1\xEA |0
+<U33D5> \xA2\x4F |0
+<U4E00> \xA4\x40 |0
+<U4E01> \xA4\x42 |0
+<U4E03> \xA4\x43 |0
+<U4E07> \xC9\x45 |0
+<U4E08> \xA4\x56 |0
+<U4E09> \xA4\x54 |0
+<U4E0A> \xA4\x57 |0
+<U4E0B> \xA4\x55 |0
+<U4E0C> \xC9\x46 |0
+<U4E0D> \xA4\xA3 |0
+<U4E0E> \xC9\x4F |0
+<U4E0F> \xC9\x4D |0
+<U4E10> \xA4\xA2 |0
+<U4E11> \xA4\xA1 |0
+<U4E14> \xA5\x42 |0
+<U4E15> \xA5\x41 |0
+<U4E16> \xA5\x40 |0
+<U4E18> \xA5\x43 |0
+<U4E19> \xA4\xFE |0
+<U4E1E> \xA5\xE0 |0
+<U4E1F> \xA5\xE1 |0
+<U4E26> \xA8\xC3 |0
+<U4E2B> \xA4\x58 |0
+<U4E2D> \xA4\xA4 |0
+<U4E2E> \xC9\x50 |0
+<U4E30> \xA4\xA5 |0
+<U4E31> \xC9\x63 |0
+<U4E32> \xA6\xEA |0
+<U4E33> \xCB\xB1 |0
+<U4E38> \xA4\x59 |0
+<U4E39> \xA4\xA6 |0
+<U4E3B> \xA5\x44 |0
+<U4E3C> \xC9\x64 |0
+<U4E42> \xC9\x40 |0
+<U4E43> \xA4\x44 |0
+<U4E45> \xA4\x5B |0
+<U4E47> \xC9\x47 |0
+<U4E48> \xA4\x5C |0
+<U4E4B> \xA4\xA7 |0
+<U4E4D> \xA5\x45 |0
+<U4E4E> \xA5\x47 |0
+<U4E4F> \xA5\x46 |0
+<U4E52> \xA5\xE2 |0
+<U4E53> \xA5\xE3 |0
+<U4E56> \xA8\xC4 |0
+<U4E58> \xAD\xBC |0
+<U4E59> \xA4\x41 |0
+<U4E5C> \xC9\x41 |0
+<U4E5D> \xA4\x45 |0
+<U4E5E> \xA4\x5E |0
+<U4E5F> \xA4\x5D |0
+<U4E69> \xA5\xE4 |0
+<U4E73> \xA8\xC5 |0
+<U4E7E> \xB0\xAE |0
+<U4E7F> \xD4\x4B |0
+<U4E82> \xB6\xC3 |0
+<U4E83> \xDC\xB1 |0
+<U4E84> \xDC\xB2 |0
+<U4E86> \xA4\x46 |0
+<U4E88> \xA4\xA9 |0
+<U4E8B> \xA8\xC6 |0
+<U4E8C> \xA4\x47 |0
+<U4E8D> \xC9\x48 |0
+<U4E8E> \xA4\x5F |0
+<U4E91> \xA4\xAA |0
+<U4E92> \xA4\xAC |0
+<U4E93> \xC9\x51 |0
+<U4E94> \xA4\xAD |0
+<U4E95> \xA4\xAB |0
+<U4E99> \xA5\xE5 |0
+<U4E9B> \xA8\xC7 |0
+<U4E9E> \xA8\xC8 |0
+<U4E9F> \xAB\x45 |0
+<U4EA1> \xA4\x60 |0
+<U4EA2> \xA4\xAE |0
+<U4EA4> \xA5\xE6 |0
+<U4EA5> \xA5\xE8 |0
+<U4EA6> \xA5\xE7 |0
+<U4EA8> \xA6\xEB |0
+<U4EAB> \xA8\xC9 |0
+<U4EAC> \xA8\xCA |0
+<U4EAD> \xAB\x46 |0
+<U4EAE> \xAB\x47 |0
+<U4EB3> \xAD\xBD |0
+<U4EB6> \xDC\xB3 |0
+<U4EB9> \xF6\xD6 |0
+<U4EBA> \xA4\x48 |0
+<U4EC0> \xA4\xB0 |0
+<U4EC1> \xA4\xAF |0
+<U4EC2> \xC9\x52 |0
+<U4EC3> \xA4\xB1 |0
+<U4EC4> \xA4\xB7 |0
+<U4EC6> \xA4\xB2 |0
+<U4EC7> \xA4\xB3 |0
+<U4EC8> \xC9\x54 |0
+<U4EC9> \xC9\x53 |0
+<U4ECA> \xA4\xB5 |0
+<U4ECB> \xA4\xB6 |0
+<U4ECD> \xA4\xB4 |0
+<U4ED4> \xA5\x4A |0
+<U4ED5> \xA5\x4B |0
+<U4ED6> \xA5\x4C |0
+<U4ED7> \xA5\x4D |0
+<U4ED8> \xA5\x49 |0
+<U4ED9> \xA5\x50 |0
+<U4EDA> \xC9\x6A |0
+<U4EDC> \xC9\x66 |0
+<U4EDD> \xC9\x69 |0
+<U4EDE> \xA5\x51 |0
+<U4EDF> \xA5\x61 |0
+<U4EE1> \xC9\x68 |0
+<U4EE3> \xA5\x4E |0
+<U4EE4> \xA5\x4F |0
+<U4EE5> \xA5\x48 |0
+<U4EE8> \xC9\x65 |0
+<U4EE9> \xC9\x67 |0
+<U4EF0> \xA5\xF5 |0
+<U4EF1> \xC9\xB0 |0
+<U4EF2> \xA5\xF2 |0
+<U4EF3> \xA5\xF6 |0
+<U4EF4> \xC9\xBA |0
+<U4EF5> \xC9\xAE |0
+<U4EF6> \xA5\xF3 |0
+<U4EF7> \xC9\xB2 |0
+<U4EFB> \xA5\xF4 |0
+<U4EFD> \xA5\xF7 |0
+<U4EFF> \xA5\xE9 |0
+<U4F00> \xC9\xB1 |0
+<U4F01> \xA5\xF8 |0
+<U4F02> \xC9\xB5 |0
+<U4F04> \xC9\xB9 |0
+<U4F05> \xC9\xB6 |0
+<U4F08> \xC9\xB3 |0
+<U4F09> \xA5\xEA |0
+<U4F0A> \xA5\xEC |0
+<U4F0B> \xA5\xF9 |0
+<U4F0D> \xA5\xEE |0
+<U4F0E> \xC9\xAB |0
+<U4F0F> \xA5\xF1 |0
+<U4F10> \xA5\xEF |0
+<U4F11> \xA5\xF0 |0
+<U4F12> \xC9\xBB |0
+<U4F13> \xC9\xB8 |0
+<U4F14> \xC9\xAF |0
+<U4F15> \xA5\xED |0
+<U4F18> \xC9\xAC |0
+<U4F19> \xA5\xEB |0
+<U4F1D> \xC9\xB4 |0
+<U4F22> \xC9\xB7 |0
+<U4F2C> \xC9\xAD |0
+<U4F2D> \xCA\x66 |0
+<U4F2F> \xA7\x42 |0
+<U4F30> \xA6\xF4 |0
+<U4F33> \xCA\x67 |0
+<U4F34> \xA6\xF1 |0
+<U4F36> \xA7\x44 |0
+<U4F38> \xA6\xF9 |0
+<U4F3A> \xA6\xF8 |0
+<U4F3B> \xCA\x5B |0
+<U4F3C> \xA6\xFC |0
+<U4F3D> \xA6\xF7 |0
+<U4F3E> \xCA\x60 |0
+<U4F3F> \xCA\x68 |0
+<U4F41> \xCA\x64 |0
+<U4F43> \xA6\xFA |0
+<U4F46> \xA6\xFD |0
+<U4F47> \xA6\xEE |0
+<U4F48> \xA7\x47 |0
+<U4F49> \xCA\x5D |0
+<U4F4C> \xCB\xBD |0
+<U4F4D> \xA6\xEC |0
+<U4F4E> \xA7\x43 |0
+<U4F4F> \xA6\xED |0
+<U4F50> \xA6\xF5 |0
+<U4F51> \xA6\xF6 |0
+<U4F52> \xCA\x62 |0
+<U4F53> \xCA\x5E |0
+<U4F54> \xA6\xFB |0
+<U4F55> \xA6\xF3 |0
+<U4F56> \xCA\x5A |0
+<U4F57> \xA6\xEF |0
+<U4F58> \xCA\x65 |0
+<U4F59> \xA7\x45 |0
+<U4F5A> \xA7\x48 |0
+<U4F5B> \xA6\xF2 |0
+<U4F5C> \xA7\x40 |0
+<U4F5D> \xA7\x46 |0
+<U4F5E> \xA6\xF0 |0
+<U4F5F> \xCA\x63 |0
+<U4F60> \xA7\x41 |0
+<U4F61> \xCA\x69 |0
+<U4F62> \xCA\x5C |0
+<U4F63> \xA6\xFE |0
+<U4F64> \xCA\x5F |0
+<U4F67> \xCA\x61 |0
+<U4F69> \xA8\xD8 |0
+<U4F6A> \xCB\xBF |0
+<U4F6B> \xCB\xCB |0
+<U4F6C> \xA8\xD0 |0
+<U4F6E> \xCB\xCC |0
+<U4F6F> \xA8\xCB |0
+<U4F70> \xA8\xD5 |0
+<U4F73> \xA8\xCE |0
+<U4F74> \xCB\xB9 |0
+<U4F75> \xA8\xD6 |0
+<U4F76> \xCB\xB8 |0
+<U4F77> \xCB\xBC |0
+<U4F78> \xCB\xC3 |0
+<U4F79> \xCB\xC1 |0
+<U4F7A> \xA8\xDE |0
+<U4F7B> \xA8\xD9 |0
+<U4F7C> \xCB\xB3 |0
+<U4F7D> \xCB\xB5 |0
+<U4F7E> \xA8\xDB |0
+<U4F7F> \xA8\xCF |0
+<U4F80> \xCB\xB6 |0
+<U4F81> \xCB\xC2 |0
+<U4F82> \xCB\xC9 |0
+<U4F83> \xA8\xD4 |0
+<U4F84> \xCB\xBB |0
+<U4F85> \xCB\xB4 |0
+<U4F86> \xA8\xD3 |0
+<U4F87> \xCB\xB7 |0
+<U4F88> \xA8\xD7 |0
+<U4F89> \xCB\xBA |0
+<U4F8B> \xA8\xD2 |0
+<U4F8D> \xA8\xCD |0
+<U4F8F> \xA8\xDC |0
+<U4F90> \xCB\xC4 |0
+<U4F91> \xA8\xDD |0
+<U4F92> \xCB\xC8 |0
+<U4F94> \xCB\xC6 |0
+<U4F95> \xCB\xCA |0
+<U4F96> \xA8\xDA |0
+<U4F97> \xCB\xBE |0
+<U4F98> \xCB\xB2 |0
+<U4F9A> \xCB\xC0 |0
+<U4F9B> \xA8\xD1 |0
+<U4F9C> \xCB\xC5 |0
+<U4F9D> \xA8\xCC |0
+<U4F9E> \xCB\xC7 |0
+<U4FAE> \xAB\x56 |0
+<U4FAF> \xAB\x4A |0
+<U4FB2> \xCD\xE0 |0
+<U4FB3> \xCD\xE8 |0
+<U4FB5> \xAB\x49 |0
+<U4FB6> \xAB\x51 |0
+<U4FB7> \xAB\x5D |0
+<U4FB9> \xCD\xEE |0
+<U4FBA> \xCD\xEC |0
+<U4FBB> \xCD\xE7 |0
+<U4FBF> \xAB\x4B |0
+<U4FC0> \xCD\xED |0
+<U4FC1> \xCD\xE3 |0
+<U4FC2> \xAB\x59 |0
+<U4FC3> \xAB\x50 |0
+<U4FC4> \xAB\x58 |0
+<U4FC5> \xCD\xDE |0
+<U4FC7> \xCD\xEA |0
+<U4FC9> \xCD\xE1 |0
+<U4FCA> \xAB\x54 |0
+<U4FCB> \xCD\xE2 |0
+<U4FCD> \xCD\xDD |0
+<U4FCE> \xAB\x5B |0
+<U4FCF> \xAB\x4E |0
+<U4FD0> \xAB\x57 |0
+<U4FD1> \xAB\x4D |0
+<U4FD3> \xCD\xDF |0
+<U4FD4> \xCD\xE4 |0
+<U4FD6> \xCD\xEB |0
+<U4FD7> \xAB\x55 |0
+<U4FD8> \xAB\x52 |0
+<U4FD9> \xCD\xE6 |0
+<U4FDA> \xAB\x5A |0
+<U4FDB> \xCD\xE9 |0
+<U4FDC> \xCD\xE5 |0
+<U4FDD> \xAB\x4F |0
+<U4FDE> \xAB\x5C |0
+<U4FDF> \xAB\x53 |0
+<U4FE0> \xAB\x4C |0
+<U4FE1> \xAB\x48 |0
+<U4FEC> \xCD\xEF |0
+<U4FEE> \xAD\xD7 |0
+<U4FEF> \xAD\xC1 |0
+<U4FF1> \xAD\xD1 |0
+<U4FF3> \xAD\xD6 |0
+<U4FF4> \xD0\xD0 |0
+<U4FF5> \xD0\xCF |0
+<U4FF6> \xD0\xD4 |0
+<U4FF7> \xD0\xD5 |0
+<U4FF8> \xAD\xC4 |0
+<U4FFA> \xAD\xCD |0
+<U4FFE> \xAD\xDA |0
+<U5000> \xAD\xCE |0
+<U5005> \xD0\xC9 |0
+<U5006> \xAD\xC7 |0
+<U5007> \xD0\xCA |0
+<U5009> \xAD\xDC |0
+<U500B> \xAD\xD3 |0
+<U500C> \xAD\xBE |0
+<U500D> \xAD\xBF |0
+<U500E> \xD0\xDD |0
+<U500F> \xB0\xBF |0
+<U5011> \xAD\xCC |0
+<U5012> \xAD\xCB |0
+<U5013> \xD0\xCB |0
+<U5014> \xAD\xCF |0
+<U5015> \xD4\x5B |0
+<U5016> \xAD\xC6 |0
+<U5017> \xD0\xD6 |0
+<U5018> \xAD\xD5 |0
+<U5019> \xAD\xD4 |0
+<U501A> \xAD\xCA |0
+<U501B> \xD0\xCE |0
+<U501C> \xD0\xD7 |0
+<U501E> \xD0\xC8 |0
+<U501F> \xAD\xC9 |0
+<U5020> \xD0\xD8 |0
+<U5021> \xAD\xD2 |0
+<U5022> \xD0\xCC |0
+<U5023> \xAD\xC0 |0
+<U5025> \xAD\xC3 |0
+<U5026> \xAD\xC2 |0
+<U5027> \xD0\xD9 |0
+<U5028> \xAD\xD0 |0
+<U5029> \xAD\xC5 |0
+<U502A> \xAD\xD9 |0
+<U502B> \xAD\xDB |0
+<U502C> \xD0\xD3 |0
+<U502D> \xAD\xD8 |0
+<U502F> \xD0\xDB |0
+<U5030> \xD0\xCD |0
+<U5031> \xD0\xDC |0
+<U5033> \xD0\xD1 |0
+<U5035> \xD0\xDA |0
+<U5037> \xD0\xD2 |0
+<U503C> \xAD\xC8 |0
+<U5040> \xD4\x63 |0
+<U5041> \xD4\x57 |0
+<U5043> \xB0\xB3 |0
+<U5045> \xD4\x5C |0
+<U5046> \xD4\x62 |0
+<U5047> \xB0\xB2 |0
+<U5048> \xD4\x55 |0
+<U5049> \xB0\xB6 |0
+<U504A> \xD4\x59 |0
+<U504B> \xD4\x52 |0
+<U504C> \xB0\xB4 |0
+<U504D> \xD4\x56 |0
+<U504E> \xB0\xB9 |0
+<U504F> \xB0\xBE |0
+<U5051> \xD4\x67 |0
+<U5053> \xD4\x51 |0
+<U5055> \xB0\xBA |0
+<U5057> \xD4\x66 |0
+<U505A> \xB0\xB5 |0
+<U505B> \xD4\x58 |0
+<U505C> \xB0\xB1 |0
+<U505D> \xD4\x53 |0
+<U505E> \xD4\x4F |0
+<U505F> \xD4\x5D |0
+<U5060> \xD4\x50 |0
+<U5061> \xD4\x4E |0
+<U5062> \xD4\x5A |0
+<U5063> \xD4\x60 |0
+<U5064> \xD4\x61 |0
+<U5065> \xB0\xB7 |0
+<U5068> \xD8\x5B |0
+<U5069> \xD4\x5E |0
+<U506A> \xD4\x4D |0
+<U506B> \xD4\x5F |0
+<U506D> \xB0\xC1 |0
+<U506E> \xD4\x64 |0
+<U506F> \xB0\xC0 |0
+<U5070> \xD4\x4C |0
+<U5072> \xD4\x54 |0
+<U5073> \xD4\x65 |0
+<U5074> \xB0\xBC |0
+<U5075> \xB0\xBB |0
+<U5076> \xB0\xB8 |0
+<U5077> \xB0\xBD |0
+<U507A> \xB0\xAF |0
+<U507D> \xB0\xB0 |0
+<U5080> \xB3\xC8 |0
+<U5082> \xD8\x5E |0
+<U5083> \xD8\x57 |0
+<U5085> \xB3\xC5 |0
+<U5087> \xD8\x5F |0
+<U508B> \xD8\x55 |0
+<U508C> \xD8\x58 |0
+<U508D> \xB3\xC4 |0
+<U508E> \xD8\x59 |0
+<U5091> \xB3\xC7 |0
+<U5092> \xD8\x5D |0
+<U5094> \xD8\x53 |0
+<U5095> \xD8\x52 |0
+<U5096> \xB3\xC9 |0
+<U5098> \xB3\xCA |0
+<U5099> \xB3\xC6 |0
+<U509A> \xB3\xCB |0
+<U509B> \xD8\x51 |0
+<U509C> \xD8\x5C |0
+<U509D> \xD8\x5A |0
+<U509E> \xD8\x54 |0
+<U50A2> \xB3\xC3 |0
+<U50A3> \xD8\x56 |0
+<U50AC> \xB6\xCA |0
+<U50AD> \xB6\xC4 |0
+<U50AE> \xDC\xB7 |0
+<U50AF> \xB6\xCD |0
+<U50B0> \xDC\xBD |0
+<U50B1> \xDC\xC0 |0
+<U50B2> \xB6\xC6 |0
+<U50B3> \xB6\xC7 |0
+<U50B4> \xDC\xBA |0
+<U50B5> \xB6\xC5 |0
+<U50B6> \xDC\xC3 |0
+<U50B7> \xB6\xCB |0
+<U50B8> \xDC\xC4 |0
+<U50BA> \xDC\xBF |0
+<U50BB> \xB6\xCC |0
+<U50BD> \xDC\xB4 |0
+<U50BE> \xB6\xC9 |0
+<U50BF> \xDC\xB5 |0
+<U50C1> \xDC\xBE |0
+<U50C2> \xDC\xBC |0
+<U50C4> \xDC\xB8 |0
+<U50C5> \xB6\xC8 |0
+<U50C6> \xDC\xB6 |0
+<U50C7> \xB6\xCE |0
+<U50C8> \xDC\xBB |0
+<U50C9> \xDC\xC2 |0
+<U50CA> \xDC\xB9 |0
+<U50CB> \xDC\xC1 |0
+<U50CE> \xB9\xB6 |0
+<U50CF> \xB9\xB3 |0
+<U50D1> \xB9\xB4 |0
+<U50D3> \xE0\xF9 |0
+<U50D4> \xE0\xF1 |0
+<U50D5> \xB9\xB2 |0
+<U50D6> \xB9\xAF |0
+<U50D7> \xE0\xF2 |0
+<U50DA> \xB9\xB1 |0
+<U50DB> \xE0\xF5 |0
+<U50DD> \xE0\xF7 |0
+<U50E0> \xE0\xFE |0
+<U50E3> \xE0\xFD |0
+<U50E4> \xE0\xF8 |0
+<U50E5> \xB9\xAE |0
+<U50E6> \xE0\xF0 |0
+<U50E7> \xB9\xAC |0
+<U50E8> \xE0\xF3 |0
+<U50E9> \xB9\xB7 |0
+<U50EA> \xE0\xF6 |0
+<U50EC> \xE0\xFA |0
+<U50ED> \xB9\xB0 |0
+<U50EE> \xB9\xAD |0
+<U50EF> \xE0\xFC |0
+<U50F0> \xE0\xFB |0
+<U50F1> \xB9\xB5 |0
+<U50F3> \xE0\xF4 |0
+<U50F5> \xBB\xF8 |0
+<U50F6> \xE4\xEC |0
+<U50F8> \xE4\xE9 |0
+<U50F9> \xBB\xF9 |0
+<U50FB> \xBB\xF7 |0
+<U50FD> \xE4\xF0 |0
+<U50FE> \xE4\xED |0
+<U50FF> \xE4\xE6 |0
+<U5100> \xBB\xF6 |0
+<U5102> \xBB\xFA |0
+<U5103> \xE4\xE7 |0
+<U5104> \xBB\xF5 |0
+<U5105> \xBB\xFD |0
+<U5106> \xE4\xEA |0
+<U5107> \xE4\xEB |0
+<U5108> \xBB\xFB |0
+<U5109> \xBB\xFC |0
+<U510A> \xE4\xF1 |0
+<U510B> \xE4\xEE |0
+<U510C> \xE4\xEF |0
+<U5110> \xBE\xAA |0
+<U5111> \xE8\xF8 |0
+<U5112> \xBE\xA7 |0
+<U5113> \xE8\xF5 |0
+<U5114> \xBE\xA9 |0
+<U5115> \xBE\xAB |0
+<U5117> \xE8\xF6 |0
+<U5118> \xBE\xA8 |0
+<U511A> \xE8\xF7 |0
+<U511C> \xE8\xF4 |0
+<U511F> \xC0\x76 |0
+<U5120> \xEC\xBD |0
+<U5121> \xC0\x77 |0
+<U5122> \xEC\xBB |0
+<U5124> \xEC\xBC |0
+<U5125> \xEC\xBA |0
+<U5126> \xEC\xB9 |0
+<U5129> \xEC\xBE |0
+<U512A> \xC0\x75 |0
+<U512D> \xEF\xB8 |0
+<U512E> \xEF\xB9 |0
+<U5130> \xE4\xE8 |0
+<U5131> \xEF\xB7 |0
+<U5132> \xC0\x78 |0
+<U5133> \xC3\x5F |0
+<U5134> \xF1\xEB |0
+<U5135> \xF1\xEC |0
+<U5137> \xC4\xD7 |0
+<U5138> \xC4\xD8 |0
+<U5139> \xF5\xC1 |0
+<U513A> \xF5\xC0 |0
+<U513B> \xC5\x6C |0
+<U513C> \xC5\x6B |0
+<U513D> \xF7\xD0 |0
+<U513F> \xA4\x49 |0
+<U5140> \xA4\x61 |0
+<U5141> \xA4\xB9 |0
+<U5143> \xA4\xB8 |0
+<U5144> \xA5\x53 |0
+<U5145> \xA5\x52 |0
+<U5146> \xA5\xFC |0
+<U5147> \xA5\xFB |0
+<U5148> \xA5\xFD |0
+<U5149> \xA5\xFA |0
+<U514B> \xA7\x4A |0
+<U514C> \xA7\x49 |0
+<U514D> \xA7\x4B |0
+<U5152> \xA8\xE0 |0
+<U5154> \xA8\xDF |0
+<U5155> \xA8\xE1 |0
+<U5157> \xAB\x5E |0
+<U5159> \xA2\x59 |0
+<U515A> \xD0\xDE |0
+<U515B> \xA2\x5A |0
+<U515C> \xB0\xC2 |0
+<U515D> \xA2\x5C |0
+<U515E> \xA2\x5B |0
+<U515F> \xD8\x60 |0
+<U5161> \xA2\x5D |0
+<U5162> \xB9\xB8 |0
+<U5163> \xA2\x5E |0
+<U5165> \xA4\x4A |0
+<U5167> \xA4\xBA |0
+<U5168> \xA5\xFE |0
+<U5169> \xA8\xE2 |0
+<U516B> \xA4\x4B |0
+<U516C> \xA4\xBD |0
+<U516D> \xA4\xBB |0
+<U516E> \xA4\xBC |0
+<U5171> \xA6\x40 |0
+<U5175> \xA7\x4C |0
+<U5176> \xA8\xE4 |0
+<U5177> \xA8\xE3 |0
+<U5178> \xA8\xE5 |0
+<U517C> \xAD\xDD |0
+<U5180> \xBE\xAC |0
+<U5187> \xC9\x4E |0
+<U5189> \xA5\x54 |0
+<U518A> \xA5\x55 |0
+<U518D> \xA6\x41 |0
+<U518F> \xCA\x6A |0
+<U5191> \xAB\x60 |0
+<U5192> \xAB\x5F |0
+<U5193> \xD0\xE0 |0
+<U5194> \xD0\xDF |0
+<U5195> \xB0\xC3 |0
+<U5197> \xA4\xBE |0
+<U5198> \xC9\x55 |0
+<U519E> \xCB\xCD |0
+<U51A0> \xAB\x61 |0
+<U51A2> \xAD\xE0 |0
+<U51A4> \xAD\xDE |0
+<U51A5> \xAD\xDF |0
+<U51AA> \xBE\xAD |0
+<U51AC> \xA5\x56 |0
+<U51B0> \xA6\x42 |0
+<U51B1> \xC9\xBC |0
+<U51B6> \xA7\x4D |0
+<U51B7> \xA7\x4E |0
+<U51B9> \xCA\x6B |0
+<U51BC> \xCB\xCE |0
+<U51BD> \xA8\xE6 |0
+<U51BE> \xCB\xCF |0
+<U51C4> \xD0\xE2 |0
+<U51C5> \xD0\xE3 |0
+<U51C6> \xAD\xE3 |0
+<U51C8> \xD0\xE4 |0
+<U51CA> \xD0\xE1 |0
+<U51CB> \xAD\xE4 |0
+<U51CC> \xAD\xE2 |0
+<U51CD> \xAD\xE1 |0
+<U51CE> \xD0\xE5 |0
+<U51D0> \xD4\x68 |0
+<U51D4> \xD8\x61 |0
+<U51D7> \xDC\xC5 |0
+<U51D8> \xE1\x40 |0
+<U51DC> \xBB\xFE |0
+<U51DD> \xBE\xAE |0
+<U51DE> \xE8\xF9 |0
+<U51E0> \xA4\x4C |0
+<U51E1> \xA4\x5A |0
+<U51F0> \xB0\xC4 |0
+<U51F1> \xB3\xCD |0
+<U51F3> \xB9\xB9 |0
+<U51F5> \xC9\x42 |0
+<U51F6> \xA4\xBF |0
+<U51F8> \xA5\x59 |0
+<U51F9> \xA5\x57 |0
+<U51FA> \xA5\x58 |0
+<U51FD> \xA8\xE7 |0
+<U5200> \xA4\x4D |0
+<U5201> \xA4\x4E |0
+<U5203> \xA4\x62 |0
+<U5206> \xA4\xC0 |0
+<U5207> \xA4\xC1 |0
+<U5208> \xA4\xC2 |0
+<U5209> \xC9\xBE |0
+<U520A> \xA5\x5A |0
+<U520C> \xC9\x6B |0
+<U520E> \xA6\x46 |0
+<U5210> \xC9\xBF |0
+<U5211> \xA6\x44 |0
+<U5212> \xA6\x45 |0
+<U5213> \xC9\xBD |0
+<U5216> \xA6\x47 |0
+<U5217> \xA6\x43 |0
+<U521C> \xCA\x6C |0
+<U521D> \xAA\xEC |0
+<U521E> \xCA\x6D |0
+<U5221> \xCA\x6E |0
+<U5224> \xA7\x50 |0
+<U5225> \xA7\x4F |0
+<U5228> \xA7\x53 |0
+<U5229> \xA7\x51 |0
+<U522A> \xA7\x52 |0
+<U522E> \xA8\xED |0
+<U5230> \xA8\xEC |0
+<U5231> \xCB\xD4 |0
+<U5232> \xCB\xD1 |0
+<U5233> \xCB\xD2 |0
+<U5235> \xCB\xD0 |0
+<U5236> \xA8\xEE |0
+<U5237> \xA8\xEA |0
+<U5238> \xA8\xE9 |0
+<U523A> \xA8\xEB |0
+<U523B> \xA8\xE8 |0
+<U5241> \xA8\xEF |0
+<U5243> \xAB\x63 |0
+<U5244> \xCD\xF0 |0
+<U5246> \xCB\xD3 |0
+<U5247> \xAB\x68 |0
+<U5249> \xCD\xF1 |0
+<U524A> \xAB\x64 |0
+<U524B> \xAB\x67 |0
+<U524C> \xAB\x66 |0
+<U524D> \xAB\x65 |0
+<U524E> \xAB\x62 |0
+<U5252> \xD0\xE8 |0
+<U5254> \xAD\xE7 |0
+<U5255> \xD0\xEB |0
+<U5256> \xAD\xE5 |0
+<U525A> \xD0\xE7 |0
+<U525B> \xAD\xE8 |0
+<U525C> \xAD\xE6 |0
+<U525D> \xAD\xE9 |0
+<U525E> \xD0\xE9 |0
+<U525F> \xD0\xEA |0
+<U5261> \xD0\xE6 |0
+<U5262> \xD0\xEC |0
+<U5269> \xB3\xD1 |0
+<U526A> \xB0\xC5 |0
+<U526B> \xD4\x69 |0
+<U526C> \xD4\x6B |0
+<U526D> \xD4\x6A |0
+<U526E> \xD4\x6C |0
+<U526F> \xB0\xC6 |0
+<U5272> \xB3\xCE |0
+<U5274> \xB3\xCF |0
+<U5275> \xB3\xD0 |0
+<U5277> \xB6\xD0 |0
+<U5278> \xDC\xC7 |0
+<U527A> \xDC\xC6 |0
+<U527B> \xDC\xC8 |0
+<U527C> \xDC\xC9 |0
+<U527D> \xB6\xD1 |0
+<U527F> \xB6\xCF |0
+<U5280> \xE1\x41 |0
+<U5281> \xE1\x42 |0
+<U5282> \xB9\xBB |0
+<U5283> \xB9\xBA |0
+<U5284> \xE3\x5A |0
+<U5287> \xBC\x40 |0
+<U5288> \xBC\x41 |0
+<U5289> \xBC\x42 |0
+<U528A> \xBC\x44 |0
+<U528B> \xE4\xF2 |0
+<U528C> \xE4\xF3 |0
+<U528D> \xBC\x43 |0
+<U5291> \xBE\xAF |0
+<U5293> \xBE\xB0 |0
+<U5296> \xF1\xED |0
+<U5297> \xF5\xC3 |0
+<U5298> \xF5\xC2 |0
+<U5299> \xF7\xD1 |0
+<U529B> \xA4\x4F |0
+<U529F> \xA5\x5C |0
+<U52A0> \xA5\x5B |0
+<U52A3> \xA6\x48 |0
+<U52A6> \xC9\xC0 |0
+<U52A9> \xA7\x55 |0
+<U52AA> \xA7\x56 |0
+<U52AB> \xA7\x54 |0
+<U52AC> \xA7\x57 |0
+<U52AD> \xCA\x6F |0
+<U52AE> \xCA\x70 |0
+<U52BB> \xA8\xF1 |0
+<U52BC> \xCB\xD5 |0
+<U52BE> \xA8\xF0 |0
+<U52C0> \xCD\xF2 |0
+<U52C1> \xAB\x6C |0
+<U52C2> \xCD\xF3 |0
+<U52C3> \xAB\x6B |0
+<U52C7> \xAB\x69 |0
+<U52C9> \xAB\x6A |0
+<U52CD> \xD0\xED |0
+<U52D2> \xB0\xC7 |0
+<U52D3> \xD4\x6E |0
+<U52D5> \xB0\xCA |0
+<U52D6> \xD4\x6D |0
+<U52D7> \xB1\xE5 |0
+<U52D8> \xB0\xC9 |0
+<U52D9> \xB0\xC8 |0
+<U52DB> \xB3\xD4 |0
+<U52DD> \xB3\xD3 |0
+<U52DE> \xB3\xD2 |0
+<U52DF> \xB6\xD2 |0
+<U52E2> \xB6\xD5 |0
+<U52E3> \xB6\xD6 |0
+<U52E4> \xB6\xD4 |0
+<U52E6> \xB6\xD3 |0
+<U52E9> \xE1\x43 |0
+<U52EB> \xE1\x44 |0
+<U52EF> \xE4\xF5 |0
+<U52F0> \xBC\x45 |0
+<U52F1> \xE4\xF4 |0
+<U52F3> \xBE\xB1 |0
+<U52F4> \xEC\xBF |0
+<U52F5> \xC0\x79 |0
+<U52F7> \xF1\xEE |0
+<U52F8> \xC4\x55 |0
+<U52FA> \xA4\x63 |0
+<U52FB> \xA4\xC3 |0
+<U52FC> \xC9\x56 |0
+<U52FE> \xA4\xC4 |0
+<U52FF> \xA4\xC5 |0
+<U5305> \xA5\x5D |0
+<U5306> \xA5\x5E |0
+<U5308> \xA6\x49 |0
+<U5309> \xCA\x71 |0
+<U530A> \xCB\xD6 |0
+<U530B> \xCB\xD7 |0
+<U530D> \xAB\x6D |0
+<U530E> \xD0\xEE |0
+<U530F> \xB0\xCC |0
+<U5310> \xB0\xCB |0
+<U5311> \xD8\x63 |0
+<U5312> \xD8\x62 |0
+<U5315> \xA4\x50 |0
+<U5316> \xA4\xC6 |0
+<U5317> \xA5\x5F |0
+<U5319> \xB0\xCD |0
+<U531A> \xC9\x43 |0
+<U531C> \xC9\x6C |0
+<U531D> \xA5\x60 |0
+<U531F> \xC9\xC2 |0
+<U5320> \xA6\x4B |0
+<U5321> \xA6\x4A |0
+<U5322> \xC9\xC1 |0
+<U5323> \xA7\x58 |0
+<U532A> \xAD\xEA |0
+<U532D> \xD4\x6F |0
+<U532F> \xB6\xD7 |0
+<U5330> \xE1\x45 |0
+<U5331> \xB9\xBC |0
+<U5334> \xE8\xFA |0
+<U5337> \xF3\xFD |0
+<U5339> \xA4\xC7 |0
+<U533C> \xCB\xD8 |0
+<U533D> \xCD\xF4 |0
+<U533E> \xB0\xD0 |0
+<U533F> \xB0\xCE |0
+<U5340> \xB0\xCF |0
+<U5341> \xA4\x51 |0
+<U5341> \xA2\xCC |3
+<U5343> \xA4\x64 |0
+<U5344> \xA2\xCD |0
+<U5345> \xA4\xCA |0
+<U5345> \xA2\xCE |3
+<U5347> \xA4\xC9 |0
+<U5348> \xA4\xC8 |0
+<U5349> \xA5\x63 |0
+<U534A> \xA5\x62 |0
+<U534C> \xC9\x6D |0
+<U534D> \xC9\xC3 |0
+<U5351> \xA8\xF5 |0
+<U5352> \xA8\xF2 |0
+<U5353> \xA8\xF4 |0
+<U5354> \xA8\xF3 |0
+<U5357> \xAB\x6E |0
+<U535A> \xB3\xD5 |0
+<U535C> \xA4\x52 |0
+<U535E> \xA4\xCB |0
+<U5360> \xA5\x65 |0
+<U5361> \xA5\x64 |0
+<U5363> \xCA\x72 |0
+<U5366> \xA8\xF6 |0
+<U536C> \xC9\x57 |0
+<U536E> \xA5\x67 |0
+<U536F> \xA5\x66 |0
+<U5370> \xA6\x4C |0
+<U5371> \xA6\x4D |0
+<U5372> \xCA\x73 |0
+<U5373> \xA7\x59 |0
+<U5375> \xA7\x5A |0
+<U5377> \xA8\xF7 |0
+<U5378> \xA8\xF8 |0
+<U5379> \xA8\xF9 |0
+<U537B> \xAB\x6F |0
+<U537C> \xCD\xF5 |0
+<U537F> \xAD\xEB |0
+<U5382> \xC9\x44 |0
+<U5384> \xA4\xCC |0
+<U538A> \xC9\xC4 |0
+<U538E> \xCA\x74 |0
+<U538F> \xCA\x75 |0
+<U5392> \xCB\xD9 |0
+<U5394> \xCB\xDA |0
+<U5396> \xCD\xF7 |0
+<U5397> \xCD\xF6 |0
+<U5398> \xCD\xF9 |0
+<U5399> \xCD\xF8 |0
+<U539A> \xAB\x70 |0
+<U539C> \xD4\x70 |0
+<U539D> \xAD\xED |0
+<U539E> \xD0\xEF |0
+<U539F> \xAD\xEC |0
+<U53A4> \xD8\x64 |0
+<U53A5> \xB3\xD6 |0
+<U53A7> \xD8\x65 |0
+<U53AC> \xE1\x46 |0
+<U53AD> \xB9\xBD |0
+<U53B2> \xBC\x46 |0
+<U53B4> \xF1\xEF |0
+<U53B9> \xC9\x58 |0
+<U53BB> \xA5\x68 |0
+<U53C3> \xB0\xD1 |0
+<U53C8> \xA4\x53 |0
+<U53C9> \xA4\x65 |0
+<U53CA> \xA4\xCE |0
+<U53CB> \xA4\xCD |0
+<U53CD> \xA4\xCF |0
+<U53D4> \xA8\xFB |0
+<U53D6> \xA8\xFA |0
+<U53D7> \xA8\xFC |0
+<U53DB> \xAB\x71 |0
+<U53DF> \xAD\xEE |0
+<U53E1> \xE8\xFB |0
+<U53E2> \xC2\x4F |0
+<U53E3> \xA4\x66 |0
+<U53E4> \xA5\x6A |0
+<U53E5> \xA5\x79 |0
+<U53E6> \xA5\x74 |0
+<U53E8> \xA5\x6F |0
+<U53E9> \xA5\x6E |0
+<U53EA> \xA5\x75 |0
+<U53EB> \xA5\x73 |0
+<U53EC> \xA5\x6C |0
+<U53ED> \xA5\x7A |0
+<U53EE> \xA5\x6D |0
+<U53EF> \xA5\x69 |0
+<U53F0> \xA5\x78 |0
+<U53F1> \xA5\x77 |0
+<U53F2> \xA5\x76 |0
+<U53F3> \xA5\x6B |0
+<U53F5> \xA5\x72 |0
+<U53F8> \xA5\x71 |0
+<U53FB> \xA5\x7B |0
+<U53FC> \xA5\x70 |0
+<U5401> \xA6\x53 |0
+<U5403> \xA6\x59 |0
+<U5404> \xA6\x55 |0
+<U5406> \xA6\x5B |0
+<U5407> \xC9\xC5 |0
+<U5408> \xA6\x58 |0
+<U5409> \xA6\x4E |0
+<U540A> \xA6\x51 |0
+<U540B> \xA6\x54 |0
+<U540C> \xA6\x50 |0
+<U540D> \xA6\x57 |0
+<U540E> \xA6\x5A |0
+<U540F> \xA6\x4F |0
+<U5410> \xA6\x52 |0
+<U5411> \xA6\x56 |0
+<U5412> \xA6\x5C |0
+<U5418> \xCA\x7E |0
+<U5419> \xCA\x7B |0
+<U541B> \xA7\x67 |0
+<U541C> \xCA\x7C |0
+<U541D> \xA7\x5B |0
+<U541E> \xA7\x5D |0
+<U541F> \xA7\x75 |0
+<U5420> \xA7\x70 |0
+<U5424> \xCA\xA5 |0
+<U5425> \xCA\x7D |0
+<U5426> \xA7\x5F |0
+<U5427> \xA7\x61 |0
+<U5428> \xCA\xA4 |0
+<U5429> \xA7\x68 |0
+<U542A> \xCA\x78 |0
+<U542B> \xA7\x74 |0
+<U542C> \xA7\x76 |0
+<U542D> \xA7\x5C |0
+<U542E> \xA7\x6D |0
+<U5430> \xCA\x76 |0
+<U5431> \xA7\x73 |0
+<U5433> \xA7\x64 |0
+<U5435> \xA7\x6E |0
+<U5436> \xA7\x6F |0
+<U5437> \xCA\x77 |0
+<U5438> \xA7\x6C |0
+<U5439> \xA7\x6A |0
+<U543B> \xA7\x6B |0
+<U543C> \xA7\x71 |0
+<U543D> \xCA\xA1 |0
+<U543E> \xA7\x5E |0
+<U5440> \xA7\x72 |0
+<U5441> \xCA\xA3 |0
+<U5442> \xA7\x66 |0
+<U5443> \xA7\x63 |0
+<U5445> \xCA\x7A |0
+<U5446> \xA7\x62 |0
+<U5447> \xCA\xA6 |0
+<U5448> \xA7\x65 |0
+<U544A> \xA7\x69 |0
+<U544E> \xA7\x60 |0
+<U544F> \xCA\xA2 |0
+<U5454> \xCA\x79 |0
+<U5460> \xCB\xEB |0
+<U5461> \xCB\xEA |0
+<U5462> \xA9\x4F |0
+<U5463> \xCB\xED |0
+<U5464> \xCB\xEF |0
+<U5465> \xCB\xE4 |0
+<U5466> \xCB\xE7 |0
+<U5467> \xCB\xEE |0
+<U5468> \xA9\x50 |0
+<U546B> \xCB\xE1 |0
+<U546C> \xCB\xE5 |0
+<U546F> \xCB\xE9 |0
+<U5470> \xCE\x49 |0
+<U5471> \xA9\x4B |0
+<U5472> \xCE\x4D |0
+<U5473> \xA8\xFD |0
+<U5474> \xCB\xE6 |0
+<U5475> \xA8\xFE |0
+<U5476> \xA9\x4C |0
+<U5477> \xA9\x45 |0
+<U5478> \xA9\x41 |0
+<U547A> \xCB\xE2 |0
+<U547B> \xA9\x44 |0
+<U547C> \xA9\x49 |0
+<U547D> \xA9\x52 |0
+<U547E> \xCB\xE3 |0
+<U547F> \xCB\xDC |0
+<U5480> \xA9\x43 |0
+<U5481> \xCB\xDD |0
+<U5482> \xCB\xDF |0
+<U5484> \xA9\x46 |0
+<U5486> \xA9\x48 |0
+<U5487> \xCB\xDB |0
+<U5488> \xCB\xE0 |0
+<U548B> \xA9\x51 |0
+<U548C> \xA9\x4D |0
+<U548D> \xCB\xE8 |0
+<U548E> \xA9\x53 |0
+<U5490> \xA9\x4A |0
+<U5491> \xCB\xDE |0
+<U5492> \xA9\x47 |0
+<U5495> \xA9\x42 |0
+<U5496> \xA9\x40 |0
+<U5498> \xCB\xEC |0
+<U549A> \xA9\x4E |0
+<U54A0> \xCE\x48 |0
+<U54A1> \xCD\xFB |0
+<U54A2> \xCE\x4B |0
+<U54A5> \xCD\xFD |0
+<U54A6> \xAB\x78 |0
+<U54A7> \xAB\xA8 |0
+<U54A8> \xAB\x74 |0
+<U54A9> \xAB\xA7 |0
+<U54AA> \xAB\x7D |0
+<U54AB> \xAB\xA4 |0
+<U54AC> \xAB\x72 |0
+<U54AD> \xCD\xFC |0
+<U54AE> \xCE\x43 |0
+<U54AF> \xAB\xA3 |0
+<U54B0> \xCE\x4F |0
+<U54B1> \xAB\xA5 |0
+<U54B3> \xAB\x79 |0
+<U54B6> \xCE\x45 |0
+<U54B7> \xCE\x42 |0
+<U54B8> \xAB\x77 |0
+<U54BA> \xCD\xFA |0
+<U54BB> \xAB\xA6 |0
+<U54BC> \xCE\x4A |0
+<U54BD> \xAB\x7C |0
+<U54BE> \xCE\x4C |0
+<U54BF> \xAB\xA9 |0
+<U54C0> \xAB\x73 |0
+<U54C1> \xAB\x7E |0
+<U54C2> \xAB\x7B |0
+<U54C3> \xCE\x40 |0
+<U54C4> \xAB\xA1 |0
+<U54C5> \xCE\x46 |0
+<U54C6> \xCE\x47 |0
+<U54C7> \xAB\x7A |0
+<U54C8> \xAB\xA2 |0
+<U54C9> \xAB\x76 |0
+<U54CE> \xAB\x75 |0
+<U54CF> \xCD\xFE |0
+<U54D6> \xCE\x44 |0
+<U54DE> \xCE\x4E |0
+<U54E0> \xD1\x44 |0
+<U54E1> \xAD\xFB |0
+<U54E2> \xD0\xF1 |0
+<U54E4> \xD0\xF6 |0
+<U54E5> \xAD\xF4 |0
+<U54E6> \xAE\x40 |0
+<U54E7> \xD0\xF4 |0
+<U54E8> \xAD\xEF |0
+<U54E9> \xAD\xF9 |0
+<U54EA> \xAD\xFE |0
+<U54EB> \xD0\xFB |0
+<U54ED> \xAD\xFA |0
+<U54EE> \xAD\xFD |0
+<U54F1> \xD0\xFE |0
+<U54F2> \xAD\xF5 |0
+<U54F3> \xD0\xF5 |0
+<U54F7> \xD1\x42 |0
+<U54F8> \xD1\x43 |0
+<U54FA> \xAD\xF7 |0
+<U54FB> \xD1\x41 |0
+<U54FC> \xAD\xF3 |0
+<U54FD> \xAE\x43 |0
+<U54FF> \xD0\xF8 |0
+<U5501> \xAD\xF1 |0
+<U5503> \xD1\x46 |0
+<U5504> \xD0\xF9 |0
+<U5505> \xD0\xFD |0
+<U5506> \xAD\xF6 |0
+<U5507> \xAE\x42 |0
+<U5508> \xD0\xFA |0
+<U5509> \xAD\xFC |0
+<U550A> \xD1\x40 |0
+<U550B> \xD1\x47 |0
+<U550C> \xD4\xA1 |0
+<U550E> \xD1\x45 |0
+<U550F> \xAE\x44 |0
+<U5510> \xAD\xF0 |0
+<U5511> \xD0\xFC |0
+<U5512> \xD0\xF3 |0
+<U5514> \xAD\xF8 |0
+<U5517> \xD0\xF2 |0
+<U551A> \xD0\xF7 |0
+<U5526> \xD0\xF0 |0
+<U5527> \xAE\x41 |0
+<U552A> \xD4\x77 |0
+<U552C> \xB0\xE4 |0
+<U552D> \xD4\xA7 |0
+<U552E> \xB0\xE2 |0
+<U552F> \xB0\xDF |0
+<U5530> \xD4\x7C |0
+<U5531> \xB0\xDB |0
+<U5532> \xD4\xA2 |0
+<U5533> \xB0\xE6 |0
+<U5534> \xD4\x76 |0
+<U5535> \xD4\x7B |0
+<U5536> \xD4\x7A |0
+<U5537> \xAD\xF2 |0
+<U5538> \xB0\xE1 |0
+<U5539> \xD4\xA5 |0
+<U553B> \xD4\xA8 |0
+<U553C> \xD4\x73 |0
+<U553E> \xB3\xE8 |0
+<U5540> \xD4\xA9 |0
+<U5541> \xB0\xE7 |0
+<U5543> \xB0\xD9 |0
+<U5544> \xB0\xD6 |0
+<U5545> \xD4\x7E |0
+<U5546> \xB0\xD3 |0
+<U5548> \xD4\xA6 |0
+<U554A> \xB0\xDA |0
+<U554B> \xD4\xAA |0
+<U554D> \xD4\x74 |0
+<U554E> \xD4\xA4 |0
+<U554F> \xB0\xDD |0
+<U5550> \xD4\x75 |0
+<U5551> \xD4\x78 |0
+<U5552> \xD4\x7D |0
+<U5555> \xB0\xDE |0
+<U5556> \xB0\xDC |0
+<U5557> \xB0\xE8 |0
+<U555C> \xB0\xE3 |0
+<U555E> \xB0\xD7 |0
+<U555F> \xB1\xD2 |0
+<U5561> \xB0\xD8 |0
+<U5562> \xD4\x79 |0
+<U5563> \xB0\xE5 |0
+<U5564> \xB0\xE0 |0
+<U5565> \xD4\xA3 |0
+<U5566> \xB0\xD5 |0
+<U556A> \xB0\xD4 |0
+<U5575> \xD4\x71 |0
+<U5576> \xD4\x72 |0
+<U5577> \xD8\x6A |0
+<U557B> \xB3\xD7 |0
+<U557C> \xB3\xDA |0
+<U557D> \xD8\x75 |0
+<U557E> \xB3\xEE |0
+<U557F> \xD8\x78 |0
+<U5580> \xB3\xD8 |0
+<U5581> \xD8\x71 |0
+<U5582> \xB3\xDE |0
+<U5583> \xB3\xE4 |0
+<U5584> \xB5\xBD |0
+<U5587> \xB3\xE2 |0
+<U5588> \xD8\x6E |0
+<U5589> \xB3\xEF |0
+<U558A> \xB3\xDB |0
+<U558B> \xB3\xE3 |0
+<U558C> \xD8\x76 |0
+<U558D> \xDC\xD7 |0
+<U558E> \xD8\x7B |0
+<U558F> \xD8\x6F |0
+<U5591> \xD8\x66 |0
+<U5592> \xD8\x73 |0
+<U5593> \xD8\x6D |0
+<U5594> \xB3\xE1 |0
+<U5595> \xD8\x79 |0
+<U5598> \xB3\xDD |0
+<U5599> \xB3\xF1 |0
+<U559A> \xB3\xEA |0
+<U559C> \xB3\xDF |0
+<U559D> \xB3\xDC |0
+<U559F> \xB3\xE7 |0
+<U55A1> \xD8\x7A |0
+<U55A2> \xD8\x6C |0
+<U55A3> \xD8\x72 |0
+<U55A4> \xD8\x74 |0
+<U55A5> \xD8\x68 |0
+<U55A6> \xD8\x77 |0
+<U55A7> \xB3\xD9 |0
+<U55A8> \xD8\x67 |0
+<U55AA> \xB3\xE0 |0
+<U55AB> \xB3\xF0 |0
+<U55AC> \xB3\xEC |0
+<U55AD> \xD8\x69 |0
+<U55AE> \xB3\xE6 |0
+<U55B1> \xB3\xED |0
+<U55B2> \xB3\xE9 |0
+<U55B3> \xB3\xE5 |0
+<U55B5> \xD8\x70 |0
+<U55BB> \xB3\xEB |0
+<U55BF> \xDC\xD5 |0
+<U55C0> \xDC\xD1 |0
+<U55C2> \xDC\xE0 |0
+<U55C3> \xDC\xCA |0
+<U55C4> \xDC\xD3 |0
+<U55C5> \xB6\xE5 |0
+<U55C6> \xB6\xE6 |0
+<U55C7> \xB6\xDE |0
+<U55C8> \xDC\xDC |0
+<U55C9> \xB6\xE8 |0
+<U55CA> \xDC\xCF |0
+<U55CB> \xDC\xCE |0
+<U55CC> \xDC\xCC |0
+<U55CD> \xDC\xDE |0
+<U55CE> \xB6\xDC |0
+<U55CF> \xDC\xD8 |0
+<U55D0> \xDC\xCD |0
+<U55D1> \xB6\xDF |0
+<U55D2> \xDC\xD6 |0
+<U55D3> \xB6\xDA |0
+<U55D4> \xDC\xD2 |0
+<U55D5> \xDC\xD9 |0
+<U55D6> \xDC\xDB |0
+<U55D9> \xDC\xDF |0
+<U55DA> \xB6\xE3 |0
+<U55DB> \xDC\xCB |0
+<U55DC> \xB6\xDD |0
+<U55DD> \xDC\xD0 |0
+<U55DF> \xB6\xD8 |0
+<U55E1> \xB6\xE4 |0
+<U55E2> \xDC\xDA |0
+<U55E3> \xB6\xE0 |0
+<U55E4> \xB6\xE1 |0
+<U55E5> \xB6\xE7 |0
+<U55E6> \xB6\xDB |0
+<U55E7> \xA2\x5F |0
+<U55E8> \xB6\xD9 |0
+<U55E9> \xDC\xD4 |0
+<U55EF> \xB6\xE2 |0
+<U55F2> \xDC\xDD |0
+<U55F6> \xB9\xCD |0
+<U55F7> \xB9\xC8 |0
+<U55F9> \xE1\x55 |0
+<U55FA> \xE1\x51 |0
+<U55FC> \xE1\x4B |0
+<U55FD> \xB9\xC2 |0
+<U55FE> \xB9\xBE |0
+<U55FF> \xE1\x54 |0
+<U5600> \xB9\xBF |0
+<U5601> \xE1\x4E |0
+<U5602> \xE1\x50 |0
+<U5604> \xE1\x53 |0
+<U5606> \xB9\xC4 |0
+<U5608> \xB9\xCB |0
+<U5609> \xB9\xC5 |0
+<U560C> \xE1\x49 |0
+<U560D> \xB9\xC6 |0
+<U560E> \xB9\xC7 |0
+<U560F> \xE1\x4C |0
+<U5610> \xB9\xCC |0
+<U5612> \xE1\x4A |0
+<U5613> \xE1\x4F |0
+<U5614> \xB9\xC3 |0
+<U5615> \xE1\x48 |0
+<U5616> \xB9\xC9 |0
+<U5617> \xB9\xC1 |0
+<U561B> \xB9\xC0 |0
+<U561C> \xE1\x4D |0
+<U561D> \xE1\x52 |0
+<U561F> \xB9\xCA |0
+<U5627> \xE1\x47 |0
+<U5629> \xBC\x4D |0
+<U562A> \xE5\x47 |0
+<U562C> \xE5\x44 |0
+<U562E> \xBC\x47 |0
+<U562F> \xBC\x53 |0
+<U5630> \xBC\x54 |0
+<U5632> \xBC\x4A |0
+<U5633> \xE5\x42 |0
+<U5634> \xBC\x4C |0
+<U5635> \xE4\xF9 |0
+<U5636> \xBC\x52 |0
+<U5638> \xE5\x46 |0
+<U5639> \xBC\x49 |0
+<U563A> \xE5\x48 |0
+<U563B> \xBC\x48 |0
+<U563D> \xE5\x43 |0
+<U563E> \xE5\x45 |0
+<U563F> \xBC\x4B |0
+<U5640> \xE5\x41 |0
+<U5641> \xE4\xFA |0
+<U5642> \xE4\xF7 |0
+<U5645> \xD8\x6B |0
+<U5646> \xE4\xFD |0
+<U5648> \xE4\xF6 |0
+<U5649> \xE4\xFC |0
+<U564A> \xE4\xFB |0
+<U564C> \xE4\xF8 |0
+<U564E> \xBC\x4F |0
+<U5653> \xBC\x4E |0
+<U5657> \xBC\x50 |0
+<U5658> \xE4\xFE |0
+<U5659> \xBE\xB2 |0
+<U565A> \xE5\x40 |0
+<U565E> \xE9\x45 |0
+<U5660> \xE8\xFD |0
+<U5662> \xBE\xBE |0
+<U5663> \xE9\x42 |0
+<U5664> \xBE\xB6 |0
+<U5665> \xBE\xBA |0
+<U5666> \xE9\x41 |0
+<U5668> \xBE\xB9 |0
+<U5669> \xBE\xB5 |0
+<U566A> \xBE\xB8 |0
+<U566B> \xBE\xB3 |0
+<U566C> \xBE\xBD |0
+<U566D> \xE9\x43 |0
+<U566E> \xE8\xFE |0
+<U566F> \xBE\xBC |0
+<U5670> \xE8\xFC |0
+<U5671> \xBE\xBB |0
+<U5672> \xE9\x44 |0
+<U5673> \xE9\x40 |0
+<U5674> \xBC\x51 |0
+<U5676> \xBE\xBF |0
+<U5677> \xE9\x46 |0
+<U5678> \xBE\xB7 |0
+<U5679> \xBE\xB4 |0
+<U567E> \xEC\xC6 |0
+<U567F> \xEC\xC8 |0
+<U5680> \xC0\x7B |0
+<U5681> \xEC\xC9 |0
+<U5682> \xEC\xC7 |0
+<U5683> \xEC\xC5 |0
+<U5684> \xEC\xC4 |0
+<U5685> \xC0\x7D |0
+<U5686> \xEC\xC3 |0
+<U5687> \xC0\x7E |0
+<U568C> \xEC\xC1 |0
+<U568D> \xEC\xC2 |0
+<U568E> \xC0\x7A |0
+<U568F> \xC0\xA1 |0
+<U5690> \xC0\x7C |0
+<U5693> \xEC\xC0 |0
+<U5695> \xC2\x50 |0
+<U5697> \xEF\xBC |0
+<U5698> \xEF\xBA |0
+<U5699> \xEF\xBF |0
+<U569A> \xEF\xBD |0
+<U569C> \xEF\xBB |0
+<U569D> \xEF\xBE |0
+<U56A5> \xC3\x60 |0
+<U56A6> \xF1\xF2 |0
+<U56A7> \xF1\xF3 |0
+<U56A8> \xC4\x56 |0
+<U56AA> \xF1\xF4 |0
+<U56AB> \xF1\xF0 |0
+<U56AC> \xF1\xF5 |0
+<U56AD> \xF1\xF1 |0
+<U56AE> \xC2\x51 |0
+<U56B2> \xF3\xFE |0
+<U56B3> \xF4\x41 |0
+<U56B4> \xC4\x59 |0
+<U56B5> \xF4\x40 |0
+<U56B6> \xC4\x58 |0
+<U56B7> \xC4\x57 |0
+<U56BC> \xC4\x5A |0
+<U56BD> \xF5\xC5 |0
+<U56BE> \xF5\xC6 |0
+<U56C0> \xC4\xDA |0
+<U56C1> \xC4\xD9 |0
+<U56C2> \xC4\xDB |0
+<U56C3> \xF5\xC4 |0
+<U56C5> \xF6\xD8 |0
+<U56C6> \xF6\xD7 |0
+<U56C8> \xC5\x6D |0
+<U56C9> \xC5\x6F |0
+<U56CA> \xC5\x6E |0
+<U56CB> \xF6\xD9 |0
+<U56CC> \xC5\xC8 |0
+<U56CD> \xF8\xA6 |0
+<U56D1> \xC5\xF1 |0
+<U56D3> \xF8\xA5 |0
+<U56D4> \xF8\xEE |0
+<U56D7> \xC9\x49 |0
+<U56DA> \xA5\x7D |0
+<U56DB> \xA5\x7C |0
+<U56DD> \xA6\x5F |0
+<U56DE> \xA6\x5E |0
+<U56DF> \xC9\xC7 |0
+<U56E0> \xA6\x5D |0
+<U56E1> \xC9\xC6 |0
+<U56E4> \xA7\x79 |0
+<U56E5> \xCA\xA9 |0
+<U56E7> \xCA\xA8 |0
+<U56EA> \xA7\x77 |0
+<U56EB> \xA7\x7A |0
+<U56EE> \xCA\xA7 |0
+<U56F0> \xA7\x78 |0
+<U56F7> \xCB\xF0 |0
+<U56F9> \xCB\xF1 |0
+<U56FA> \xA9\x54 |0
+<U56FF> \xAB\xAA |0
+<U5701> \xD1\x48 |0
+<U5702> \xD1\x49 |0
+<U5703> \xAE\x45 |0
+<U5704> \xAE\x46 |0
+<U5707> \xD4\xAC |0
+<U5708> \xB0\xE9 |0
+<U5709> \xB0\xEB |0
+<U570A> \xD4\xAB |0
+<U570B> \xB0\xEA |0
+<U570C> \xD8\x7C |0
+<U570D> \xB3\xF2 |0
+<U5712> \xB6\xE9 |0
+<U5713> \xB6\xEA |0
+<U5714> \xDC\xE1 |0
+<U5716> \xB9\xCF |0
+<U5718> \xB9\xCE |0
+<U571A> \xE5\x49 |0
+<U571B> \xE9\x48 |0
+<U571C> \xE9\x47 |0
+<U571E> \xF9\x6B |0
+<U571F> \xA4\x67 |0
+<U5720> \xC9\x59 |0
+<U5722> \xC9\x6E |0
+<U5723> \xC9\x6F |0
+<U5728> \xA6\x62 |0
+<U5729> \xA6\x66 |0
+<U572A> \xC9\xC9 |0
+<U572C> \xA6\x64 |0
+<U572D> \xA6\x63 |0
+<U572E> \xC9\xC8 |0
+<U572F> \xA6\x65 |0
+<U5730> \xA6\x61 |0
+<U5733> \xA6\x60 |0
+<U5734> \xC9\xCA |0
+<U573B> \xA7\xA6 |0
+<U573E> \xA7\xA3 |0
+<U5740> \xA7\x7D |0
+<U5741> \xCA\xAA |0
+<U5745> \xCA\xAB |0
+<U5747> \xA7\xA1 |0
+<U5749> \xCA\xAD |0
+<U574A> \xA7\x7B |0
+<U574B> \xCA\xAE |0
+<U574C> \xCA\xAC |0
+<U574D> \xA7\x7E |0
+<U574E> \xA7\xA2 |0
+<U574F> \xA7\xA5 |0
+<U5750> \xA7\xA4 |0
+<U5751> \xA7\x7C |0
+<U5752> \xCA\xAF |0
+<U5761> \xA9\x59 |0
+<U5762> \xCB\xFE |0
+<U5764> \xA9\x5B |0
+<U5766> \xA9\x5A |0
+<U5768> \xCC\x40 |0
+<U5769> \xA9\x58 |0
+<U576A> \xA9\x57 |0
+<U576B> \xCB\xF5 |0
+<U576D> \xCB\xF4 |0
+<U576F> \xCB\xF2 |0
+<U5770> \xCB\xF7 |0
+<U5771> \xCB\xF6 |0
+<U5772> \xCB\xF3 |0
+<U5773> \xCB\xFC |0
+<U5774> \xCB\xFD |0
+<U5775> \xCB\xFA |0
+<U5776> \xCB\xF8 |0
+<U5777> \xA9\x56 |0
+<U577B> \xCB\xFB |0
+<U577C> \xA9\x5C |0
+<U577D> \xCC\x41 |0
+<U5780> \xCB\xF9 |0
+<U5782> \xAB\xAB |0
+<U5783> \xA9\x55 |0
+<U578B> \xAB\xAC |0
+<U578C> \xCE\x54 |0
+<U578F> \xCE\x5A |0
+<U5793> \xAB\xB2 |0
+<U5794> \xCE\x58 |0
+<U5795> \xCE\x5E |0
+<U5797> \xCE\x55 |0
+<U5798> \xCE\x59 |0
+<U5799> \xCE\x5B |0
+<U579A> \xCE\x5D |0
+<U579B> \xCE\x57 |0
+<U579D> \xCE\x56 |0
+<U579E> \xCE\x51 |0
+<U579F> \xCE\x52 |0
+<U57A0> \xAB\xAD |0
+<U57A2> \xAB\xAF |0
+<U57A3> \xAB\xAE |0
+<U57A4> \xCE\x53 |0
+<U57A5> \xCE\x5C |0
+<U57AE> \xAB\xB1 |0
+<U57B5> \xCE\x50 |0
+<U57B6> \xD1\x53 |0
+<U57B8> \xD1\x52 |0
+<U57B9> \xD1\x57 |0
+<U57BA> \xD1\x4E |0
+<U57BC> \xD1\x51 |0
+<U57BD> \xD1\x50 |0
+<U57BF> \xD1\x54 |0
+<U57C1> \xD1\x58 |0
+<U57C2> \xAE\x47 |0
+<U57C3> \xAE\x4A |0
+<U57C6> \xD1\x4F |0
+<U57C7> \xD1\x55 |0
+<U57CB> \xAE\x49 |0
+<U57CC> \xD1\x4A |0
+<U57CE> \xAB\xB0 |0
+<U57CF> \xD4\xBA |0
+<U57D0> \xD1\x56 |0
+<U57D2> \xD1\x4D |0
+<U57D4> \xAE\x48 |0
+<U57D5> \xD1\x4C |0
+<U57DC> \xD4\xB1 |0
+<U57DF> \xB0\xEC |0
+<U57E0> \xB0\xF0 |0
+<U57E1> \xD4\xC1 |0
+<U57E2> \xD4\xAF |0
+<U57E3> \xD4\xBD |0
+<U57E4> \xB0\xF1 |0
+<U57E5> \xD4\xBF |0
+<U57E7> \xD4\xC5 |0
+<U57E9> \xD4\xC9 |0
+<U57EC> \xD4\xC0 |0
+<U57ED> \xD4\xB4 |0
+<U57EE> \xD4\xBC |0
+<U57F0> \xD4\xCA |0
+<U57F1> \xD4\xC8 |0
+<U57F2> \xD4\xBE |0
+<U57F3> \xD4\xB9 |0
+<U57F4> \xD4\xB2 |0
+<U57F5> \xD8\xA6 |0
+<U57F6> \xD4\xB0 |0
+<U57F7> \xB0\xF5 |0
+<U57F8> \xD4\xB7 |0
+<U57F9> \xB0\xF6 |0
+<U57FA> \xB0\xF2 |0
+<U57FB> \xD4\xAD |0
+<U57FC> \xD4\xC3 |0
+<U57FD> \xD4\xB5 |0
+<U5800> \xD4\xB3 |0
+<U5801> \xD4\xC6 |0
+<U5802> \xB0\xF3 |0
+<U5804> \xD4\xCC |0
+<U5805> \xB0\xED |0
+<U5806> \xB0\xEF |0
+<U5807> \xD4\xBB |0
+<U5808> \xD4\xB6 |0
+<U5809> \xAE\x4B |0
+<U580A> \xB0\xEE |0
+<U580B> \xD4\xB8 |0
+<U580C> \xD4\xC7 |0
+<U580D> \xD4\xCB |0
+<U580E> \xD4\xC2 |0
+<U5810> \xD4\xC4 |0
+<U5814> \xD4\xAE |0
+<U5819> \xD8\xA1 |0
+<U581B> \xD8\xAA |0
+<U581C> \xD8\xA9 |0
+<U581D> \xB3\xFA |0
+<U581E> \xD8\xA2 |0
+<U5820> \xB3\xFB |0
+<U5821> \xB3\xF9 |0
+<U5823> \xD8\xA4 |0
+<U5824> \xB3\xF6 |0
+<U5825> \xD8\xA8 |0
+<U5827> \xD8\xA3 |0
+<U5828> \xD8\xA5 |0
+<U5829> \xD8\x7D |0
+<U582A> \xB3\xF4 |0
+<U582C> \xD8\xB2 |0
+<U582D> \xD8\xB1 |0
+<U582E> \xD8\xAE |0
+<U582F> \xB3\xF3 |0
+<U5830> \xB3\xF7 |0
+<U5831> \xB3\xF8 |0
+<U5832> \xD1\x4B |0
+<U5833> \xD8\xAB |0
+<U5834> \xB3\xF5 |0
+<U5835> \xB0\xF4 |0
+<U5836> \xD8\xAD |0
+<U5837> \xD8\x7E |0
+<U5838> \xD8\xB0 |0
+<U5839> \xD8\xAF |0
+<U583B> \xD8\xB3 |0
+<U583D> \xDC\xEF |0
+<U583F> \xD8\xAC |0
+<U5848> \xD8\xA7 |0
+<U5849> \xDC\xE7 |0
+<U584A> \xB6\xF4 |0
+<U584B> \xB6\xF7 |0
+<U584C> \xB6\xF2 |0
+<U584D> \xDC\xE6 |0
+<U584E> \xDC\xEA |0
+<U584F> \xDC\xE5 |0
+<U5851> \xB6\xEC |0
+<U5852> \xB6\xF6 |0
+<U5853> \xDC\xE2 |0
+<U5854> \xB6\xF0 |0
+<U5855> \xDC\xE9 |0
+<U5857> \xB6\xEE |0
+<U5858> \xB6\xED |0
+<U5859> \xDC\xEC |0
+<U585A> \xB6\xEF |0
+<U585B> \xDC\xEE |0
+<U585D> \xDC\xEB |0
+<U585E> \xB6\xEB |0
+<U5862> \xB6\xF5 |0
+<U5863> \xDC\xF0 |0
+<U5864> \xDC\xE4 |0
+<U5865> \xDC\xED |0
+<U5868> \xDC\xE3 |0
+<U586B> \xB6\xF1 |0
+<U586D> \xB6\xF3 |0
+<U586F> \xDC\xE8 |0
+<U5871> \xDC\xF1 |0
+<U5874> \xE1\x5D |0
+<U5875> \xB9\xD0 |0
+<U5876> \xE1\x63 |0
+<U5879> \xB9\xD5 |0
+<U587A> \xE1\x5F |0
+<U587B> \xE1\x66 |0
+<U587C> \xE1\x57 |0
+<U587D> \xB9\xD7 |0
+<U587E> \xB9\xD1 |0
+<U587F> \xE1\x5C |0
+<U5880> \xBC\x55 |0
+<U5881> \xE1\x5B |0
+<U5882> \xE1\x64 |0
+<U5883> \xB9\xD2 |0
+<U5885> \xB9\xD6 |0
+<U5886> \xE1\x5A |0
+<U5887> \xE1\x60 |0
+<U5888> \xE1\x65 |0
+<U5889> \xE1\x56 |0
+<U588A> \xB9\xD4 |0
+<U588B> \xE1\x5E |0
+<U588E> \xE1\x62 |0
+<U588F> \xE1\x68 |0
+<U5890> \xE1\x58 |0
+<U5891> \xE1\x61 |0
+<U5893> \xB9\xD3 |0
+<U5894> \xE1\x67 |0
+<U5898> \xE1\x59 |0
+<U589C> \xBC\x59 |0
+<U589D> \xE5\x4B |0
+<U589E> \xBC\x57 |0
+<U589F> \xBC\x56 |0
+<U58A0> \xE5\x4D |0
+<U58A1> \xE5\x52 |0
+<U58A3> \xE5\x4E |0
+<U58A5> \xE5\x51 |0
+<U58A6> \xBC\x5C |0
+<U58A8> \xBE\xA5 |0
+<U58A9> \xBC\x5B |0
+<U58AB> \xE5\x4A |0
+<U58AC> \xE5\x50 |0
+<U58AE> \xBC\x5A |0
+<U58AF> \xE5\x4F |0
+<U58B1> \xE5\x4C |0
+<U58B3> \xBC\x58 |0
+<U58BA> \xE9\x4D |0
+<U58BB> \xF9\xD9 |0
+<U58BC> \xE9\x4F |0
+<U58BD> \xE9\x4A |0
+<U58BE> \xBE\xC1 |0
+<U58BF> \xE9\x4C |0
+<U58C1> \xBE\xC0 |0
+<U58C2> \xE9\x4E |0
+<U58C5> \xBE\xC3 |0
+<U58C6> \xE9\x50 |0
+<U58C7> \xBE\xC2 |0
+<U58C8> \xE9\x49 |0
+<U58C9> \xE9\x4B |0
+<U58CE> \xC0\xA5 |0
+<U58CF> \xEC\xCC |0
+<U58D1> \xC0\xA4 |0
+<U58D2> \xEC\xCD |0
+<U58D3> \xC0\xA3 |0
+<U58D4> \xEC\xCB |0
+<U58D5> \xC0\xA2 |0
+<U58D6> \xEC\xCA |0
+<U58D8> \xC2\x53 |0
+<U58D9> \xC2\x52 |0
+<U58DA> \xF1\xF6 |0
+<U58DB> \xF1\xF8 |0
+<U58DD> \xF1\xF7 |0
+<U58DE> \xC3\x61 |0
+<U58DF> \xC3\x62 |0
+<U58E2> \xC3\x63 |0
+<U58E3> \xF4\x42 |0
+<U58E4> \xC4\x5B |0
+<U58E7> \xF7\xD3 |0
+<U58E8> \xF7\xD2 |0
+<U58E9> \xC5\xF2 |0
+<U58EB> \xA4\x68 |0
+<U58EC> \xA4\xD0 |0
+<U58EF> \xA7\xA7 |0
+<U58F4> \xCE\x5F |0
+<U58F9> \xB3\xFC |0
+<U58FA> \xB3\xFD |0
+<U58FC> \xDC\xF2 |0
+<U58FD> \xB9\xD8 |0
+<U58FE> \xE1\x69 |0
+<U58FF> \xE5\x53 |0
+<U5903> \xC9\x5A |0
+<U5906> \xCA\xB0 |0
+<U590C> \xCC\x42 |0
+<U590D> \xCE\x60 |0
+<U590E> \xD1\x59 |0
+<U590F> \xAE\x4C |0
+<U5912> \xF1\xF9 |0
+<U5914> \xC4\xDC |0
+<U5915> \xA4\x69 |0
+<U5916> \xA5\x7E |0
+<U5917> \xC9\x70 |0
+<U5919> \xA6\x67 |0
+<U591A> \xA6\x68 |0
+<U591C> \xA9\x5D |0
+<U5920> \xB0\xF7 |0
+<U5922> \xB9\xDA |0
+<U5924> \xB9\xDB |0
+<U5925> \xB9\xD9 |0
+<U5927> \xA4\x6A |0
+<U5929> \xA4\xD1 |0
+<U592A> \xA4\xD3 |0
+<U592B> \xA4\xD2 |0
+<U592C> \xC9\x5B |0
+<U592D> \xA4\xD4 |0
+<U592E> \xA5\xA1 |0
+<U592F> \xC9\x71 |0
+<U5931> \xA5\xA2 |0
+<U5937> \xA6\x69 |0
+<U5938> \xA6\x6A |0
+<U593C> \xC9\xCB |0
+<U593E> \xA7\xA8 |0
+<U5940> \xCA\xB1 |0
+<U5944> \xA9\x61 |0
+<U5945> \xCC\x43 |0
+<U5947> \xA9\x5F |0
+<U5948> \xA9\x60 |0
+<U5949> \xA9\x5E |0
+<U594A> \xD1\x5A |0
+<U594E> \xAB\xB6 |0
+<U594F> \xAB\xB5 |0
+<U5950> \xAB\xB7 |0
+<U5951> \xAB\xB4 |0
+<U5953> \xCE\x61 |0
+<U5954> \xA9\x62 |0
+<U5955> \xAB\xB3 |0
+<U5957> \xAE\x4D |0
+<U5958> \xAE\x4E |0
+<U595A> \xAE\x4F |0
+<U595C> \xD4\xCD |0
+<U5960> \xB3\xFE |0
+<U5961> \xD8\xB4 |0
+<U5962> \xB0\xF8 |0
+<U5967> \xB6\xF8 |0
+<U5969> \xB9\xDD |0
+<U596A> \xB9\xDC |0
+<U596B> \xE1\x6A |0
+<U596D> \xBC\x5D |0
+<U596E> \xBE\xC4 |0
+<U5970> \xEF\xC0 |0
+<U5971> \xF6\xDA |0
+<U5972> \xF7\xD4 |0
+<U5973> \xA4\x6B |0
+<U5974> \xA5\xA3 |0
+<U5976> \xA5\xA4 |0
+<U5977> \xC9\xD1 |0
+<U5978> \xA6\x6C |0
+<U5979> \xA6\x6F |0
+<U597B> \xC9\xCF |0
+<U597C> \xC9\xCD |0
+<U597D> \xA6\x6E |0
+<U597E> \xC9\xD0 |0
+<U597F> \xC9\xD2 |0
+<U5980> \xC9\xCC |0
+<U5981> \xA6\x71 |0
+<U5982> \xA6\x70 |0
+<U5983> \xA6\x6D |0
+<U5984> \xA6\x6B |0
+<U5985> \xC9\xCE |0
+<U598A> \xA7\xB3 |0
+<U598D> \xA7\xB0 |0
+<U598E> \xCA\xB6 |0
+<U598F> \xCA\xB9 |0
+<U5990> \xCA\xB8 |0
+<U5992> \xA7\xAA |0
+<U5993> \xA7\xB2 |0
+<U5996> \xA7\xAF |0
+<U5997> \xCA\xB5 |0
+<U5998> \xCA\xB3 |0
+<U5999> \xA7\xAE |0
+<U599D> \xA7\xA9 |0
+<U599E> \xA7\xAC |0
+<U59A0> \xCA\xB4 |0
+<U59A1> \xCA\xBB |0
+<U59A2> \xCA\xB7 |0
+<U59A3> \xA7\xAD |0
+<U59A4> \xA7\xB1 |0
+<U59A5> \xA7\xB4 |0
+<U59A6> \xCA\xB2 |0
+<U59A7> \xCA\xBA |0
+<U59A8> \xA7\xAB |0
+<U59AE> \xA9\x67 |0
+<U59AF> \xA9\x6F |0
+<U59B1> \xCC\x4F |0
+<U59B2> \xCC\x48 |0
+<U59B3> \xA9\x70 |0
+<U59B4> \xCC\x53 |0
+<U59B5> \xCC\x44 |0
+<U59B6> \xCC\x4B |0
+<U59B9> \xA9\x66 |0
+<U59BA> \xCC\x45 |0
+<U59BB> \xA9\x64 |0
+<U59BC> \xCC\x4C |0
+<U59BD> \xCC\x50 |0
+<U59BE> \xA9\x63 |0
+<U59C0> \xCC\x51 |0
+<U59C1> \xCC\x4A |0
+<U59C3> \xCC\x4D |0
+<U59C5> \xA9\x72 |0
+<U59C6> \xA9\x69 |0
+<U59C7> \xCC\x54 |0
+<U59C8> \xCC\x52 |0
+<U59CA> \xA9\x6E |0
+<U59CB> \xA9\x6C |0
+<U59CC> \xCC\x49 |0
+<U59CD> \xA9\x6B |0
+<U59CE> \xCC\x47 |0
+<U59CF> \xCC\x46 |0
+<U59D0> \xA9\x6A |0
+<U59D1> \xA9\x68 |0
+<U59D2> \xA9\x71 |0
+<U59D3> \xA9\x6D |0
+<U59D4> \xA9\x65 |0
+<U59D6> \xCC\x4E |0
+<U59D8> \xAB\xB9 |0
+<U59DA> \xAB\xC0 |0
+<U59DB> \xCE\x6F |0
+<U59DC> \xAB\xB8 |0
+<U59DD> \xCE\x67 |0
+<U59DE> \xCE\x63 |0
+<U59E0> \xCE\x73 |0
+<U59E1> \xCE\x62 |0
+<U59E3> \xAB\xBB |0
+<U59E4> \xCE\x6C |0
+<U59E5> \xAB\xBE |0
+<U59E6> \xAB\xC1 |0
+<U59E8> \xAB\xBC |0
+<U59E9> \xCE\x70 |0
+<U59EA> \xAB\xBF |0
+<U59EC> \xAE\x56 |0
+<U59ED> \xCE\x76 |0
+<U59EE> \xCE\x64 |0
+<U59F1> \xCE\x66 |0
+<U59F2> \xCE\x6D |0
+<U59F3> \xCE\x71 |0
+<U59F4> \xCE\x75 |0
+<U59F5> \xCE\x72 |0
+<U59F6> \xCE\x6B |0
+<U59F7> \xCE\x6E |0
+<U59FA> \xCE\x68 |0
+<U59FB> \xAB\xC3 |0
+<U59FC> \xCE\x6A |0
+<U59FD> \xCE\x69 |0
+<U59FE> \xCE\x74 |0
+<U59FF> \xAB\xBA |0
+<U5A00> \xCE\x65 |0
+<U5A01> \xAB\xC2 |0
+<U5A03> \xAB\xBD |0
+<U5A09> \xAE\x5C |0
+<U5A0A> \xD1\x62 |0
+<U5A0C> \xAE\x5B |0
+<U5A0F> \xD1\x60 |0
+<U5A11> \xAE\x50 |0
+<U5A13> \xAE\x55 |0
+<U5A15> \xD1\x5F |0
+<U5A16> \xD1\x5C |0
+<U5A17> \xD1\x61 |0
+<U5A18> \xAE\x51 |0
+<U5A19> \xD1\x5B |0
+<U5A1B> \xAE\x54 |0
+<U5A1C> \xAE\x52 |0
+<U5A1E> \xD1\x63 |0
+<U5A1F> \xAE\x53 |0
+<U5A20> \xAE\x57 |0
+<U5A23> \xAE\x58 |0
+<U5A25> \xAE\x5A |0
+<U5A29> \xAE\x59 |0
+<U5A2D> \xD1\x5D |0
+<U5A2E> \xD1\x5E |0
+<U5A33> \xD1\x64 |0
+<U5A35> \xD4\xD4 |0
+<U5A36> \xB0\xF9 |0
+<U5A37> \xD8\xC2 |0
+<U5A38> \xD4\xD3 |0
+<U5A39> \xD4\xE6 |0
+<U5A3C> \xB1\x40 |0
+<U5A3E> \xD4\xE4 |0
+<U5A40> \xB0\xFE |0
+<U5A41> \xB0\xFA |0
+<U5A42> \xD4\xED |0
+<U5A43> \xD4\xDD |0
+<U5A44> \xD4\xE0 |0
+<U5A46> \xB1\x43 |0
+<U5A47> \xD4\xEA |0
+<U5A48> \xD4\xE2 |0
+<U5A49> \xB0\xFB |0
+<U5A4A> \xB1\x44 |0
+<U5A4C> \xD4\xE7 |0
+<U5A4D> \xD4\xE5 |0
+<U5A50> \xD4\xD6 |0
+<U5A51> \xD4\xEB |0
+<U5A52> \xD4\xDF |0
+<U5A53> \xD4\xDA |0
+<U5A55> \xD4\xD0 |0
+<U5A56> \xD4\xEC |0
+<U5A57> \xD4\xDC |0
+<U5A58> \xD4\xCF |0
+<U5A5A> \xB1\x42 |0
+<U5A5B> \xD4\xE1 |0
+<U5A5C> \xD4\xEE |0
+<U5A5D> \xD4\xDE |0
+<U5A5E> \xD4\xD2 |0
+<U5A5F> \xD4\xD7 |0
+<U5A60> \xD4\xCE |0
+<U5A62> \xB1\x41 |0
+<U5A64> \xD4\xDB |0
+<U5A65> \xD4\xD8 |0
+<U5A66> \xB0\xFC |0
+<U5A67> \xD4\xD1 |0
+<U5A69> \xD4\xE9 |0
+<U5A6A> \xB0\xFD |0
+<U5A6C> \xD4\xD9 |0
+<U5A6D> \xD4\xD5 |0
+<U5A70> \xD4\xE8 |0
+<U5A77> \xB4\x40 |0
+<U5A78> \xD8\xBB |0
+<U5A7A> \xD8\xB8 |0
+<U5A7B> \xD8\xC9 |0
+<U5A7C> \xD8\xBD |0
+<U5A7D> \xD8\xCA |0
+<U5A7F> \xB4\x42 |0
+<U5A83> \xD8\xC6 |0
+<U5A84> \xD8\xC3 |0
+<U5A8A> \xD8\xC4 |0
+<U5A8B> \xD8\xC7 |0
+<U5A8C> \xD8\xCB |0
+<U5A8E> \xD4\xE3 |0
+<U5A8F> \xD8\xCD |0
+<U5A90> \xDD\x47 |0
+<U5A92> \xB4\x43 |0
+<U5A93> \xD8\xCE |0
+<U5A94> \xD8\xB6 |0
+<U5A95> \xD8\xC0 |0
+<U5A97> \xD8\xC5 |0
+<U5A9A> \xB4\x41 |0
+<U5A9B> \xB4\x44 |0
+<U5A9C> \xD8\xCC |0
+<U5A9D> \xD8\xCF |0
+<U5A9E> \xD8\xBA |0
+<U5A9F> \xD8\xB7 |0
+<U5AA2> \xD8\xB9 |0
+<U5AA5> \xD8\xBE |0
+<U5AA6> \xD8\xBC |0
+<U5AA7> \xB4\x45 |0
+<U5AA9> \xD8\xC8 |0
+<U5AAC> \xD8\xBF |0
+<U5AAE> \xD8\xC1 |0
+<U5AAF> \xD8\xB5 |0
+<U5AB0> \xDC\xFA |0
+<U5AB1> \xDC\xF8 |0
+<U5AB2> \xB7\x42 |0
+<U5AB3> \xB7\x40 |0
+<U5AB4> \xDD\x43 |0
+<U5AB5> \xDC\xF9 |0
+<U5AB6> \xDD\x44 |0
+<U5AB7> \xDD\x40 |0
+<U5AB8> \xDC\xF7 |0
+<U5AB9> \xDD\x46 |0
+<U5ABA> \xDC\xF6 |0
+<U5ABB> \xDC\xFD |0
+<U5ABC> \xB6\xFE |0
+<U5ABD> \xB6\xFD |0
+<U5ABE> \xB6\xFC |0
+<U5ABF> \xDC\xFB |0
+<U5AC0> \xDD\x41 |0
+<U5AC1> \xB6\xF9 |0
+<U5AC2> \xB7\x41 |0
+<U5AC4> \xDC\xF4 |0
+<U5AC6> \xDC\xFE |0
+<U5AC7> \xDC\xF3 |0
+<U5AC8> \xDC\xFC |0
+<U5AC9> \xB6\xFA |0
+<U5ACA> \xDD\x42 |0
+<U5ACB> \xDC\xF5 |0
+<U5ACC> \xB6\xFB |0
+<U5ACD> \xDD\x45 |0
+<U5AD5> \xE1\x6E |0
+<U5AD6> \xB9\xE2 |0
+<U5AD7> \xB9\xE1 |0
+<U5AD8> \xB9\xE3 |0
+<U5AD9> \xE1\x7A |0
+<U5ADA> \xE1\x70 |0
+<U5ADB> \xE1\x76 |0
+<U5ADC> \xE1\x6B |0
+<U5ADD> \xE1\x79 |0
+<U5ADE> \xE1\x78 |0
+<U5ADF> \xE1\x7C |0
+<U5AE0> \xE1\x75 |0
+<U5AE1> \xB9\xDE |0
+<U5AE2> \xE1\x74 |0
+<U5AE3> \xB9\xE4 |0
+<U5AE5> \xE1\x6D |0
+<U5AE6> \xB9\xDF |0
+<U5AE8> \xE1\x7B |0
+<U5AE9> \xB9\xE0 |0
+<U5AEA> \xE1\x6F |0
+<U5AEB> \xE1\x72 |0
+<U5AEC> \xE1\x77 |0
+<U5AED> \xE1\x71 |0
+<U5AEE> \xE1\x6C |0
+<U5AF3> \xE1\x73 |0
+<U5AF4> \xE5\x55 |0
+<U5AF5> \xBC\x61 |0
+<U5AF6> \xE5\x58 |0
+<U5AF7> \xE5\x57 |0
+<U5AF8> \xE5\x5A |0
+<U5AF9> \xE5\x5C |0
+<U5AFA> \xF9\xDC |0
+<U5AFB> \xBC\x5F |0
+<U5AFD> \xE5\x56 |0
+<U5AFF> \xE5\x54 |0
+<U5B01> \xE5\x5D |0
+<U5B02> \xE5\x5B |0
+<U5B03> \xE5\x59 |0
+<U5B05> \xE5\x5F |0
+<U5B07> \xE5\x5E |0
+<U5B08> \xBC\x63 |0
+<U5B09> \xBC\x5E |0
+<U5B0B> \xBC\x60 |0
+<U5B0C> \xBC\x62 |0
+<U5B0F> \xE5\x60 |0
+<U5B10> \xE9\x57 |0
+<U5B13> \xE9\x56 |0
+<U5B14> \xE9\x55 |0
+<U5B16> \xE9\x58 |0
+<U5B17> \xE9\x51 |0
+<U5B19> \xE9\x52 |0
+<U5B1A> \xE9\x5A |0
+<U5B1B> \xE9\x53 |0
+<U5B1D> \xBE\xC5 |0
+<U5B1E> \xE9\x5C |0
+<U5B20> \xE9\x5B |0
+<U5B21> \xE9\x54 |0
+<U5B23> \xEC\xD1 |0
+<U5B24> \xC0\xA8 |0
+<U5B25> \xEC\xCF |0
+<U5B26> \xEC\xD4 |0
+<U5B27> \xEC\xD3 |0
+<U5B28> \xE9\x59 |0
+<U5B2A> \xC0\xA7 |0
+<U5B2C> \xEC\xD2 |0
+<U5B2D> \xEC\xCE |0
+<U5B2E> \xEC\xD6 |0
+<U5B2F> \xEC\xD5 |0
+<U5B30> \xC0\xA6 |0
+<U5B32> \xEC\xD0 |0
+<U5B34> \xBE\xC6 |0
+<U5B38> \xC2\x54 |0
+<U5B3C> \xEF\xC1 |0
+<U5B3D> \xF1\xFA |0
+<U5B3E> \xF1\xFB |0
+<U5B3F> \xF1\xFC |0
+<U5B40> \xC4\x5C |0
+<U5B43> \xC4\x5D |0
+<U5B45> \xF4\x43 |0
+<U5B47> \xF5\xC8 |0
+<U5B48> \xF5\xC7 |0
+<U5B4B> \xF6\xDB |0
+<U5B4C> \xF6\xDC |0
+<U5B4D> \xF7\xD5 |0
+<U5B4E> \xF8\xA7 |0
+<U5B50> \xA4\x6C |0
+<U5B51> \xA4\x6D |0
+<U5B53> \xA4\x6E |0
+<U5B54> \xA4\xD5 |0
+<U5B55> \xA5\xA5 |0
+<U5B56> \xC9\xD3 |0
+<U5B57> \xA6\x72 |0
+<U5B58> \xA6\x73 |0
+<U5B5A> \xA7\xB7 |0
+<U5B5B> \xA7\xB8 |0
+<U5B5C> \xA7\xB6 |0
+<U5B5D> \xA7\xB5 |0
+<U5B5F> \xA9\x73 |0
+<U5B62> \xCC\x55 |0
+<U5B63> \xA9\x75 |0
+<U5B64> \xA9\x74 |0
+<U5B65> \xCC\x56 |0
+<U5B69> \xAB\xC4 |0
+<U5B6B> \xAE\x5D |0
+<U5B6C> \xD1\x65 |0
+<U5B6E> \xD4\xF0 |0
+<U5B70> \xB1\x45 |0
+<U5B71> \xB4\x47 |0
+<U5B72> \xD4\xEF |0
+<U5B73> \xB4\x46 |0
+<U5B75> \xB9\xE5 |0
+<U5B77> \xE1\x7D |0
+<U5B78> \xBE\xC7 |0
+<U5B7A> \xC0\xA9 |0
+<U5B7B> \xEC\xD7 |0
+<U5B7D> \xC4\x5E |0
+<U5B7F> \xC5\x70 |0
+<U5B81> \xC9\x72 |0
+<U5B83> \xA5\xA6 |0
+<U5B84> \xC9\x73 |0
+<U5B85> \xA6\x76 |0
+<U5B87> \xA6\x74 |0
+<U5B88> \xA6\x75 |0
+<U5B89> \xA6\x77 |0
+<U5B8B> \xA7\xBA |0
+<U5B8C> \xA7\xB9 |0
+<U5B8E> \xCA\xBC |0
+<U5B8F> \xA7\xBB |0
+<U5B92> \xCA\xBD |0
+<U5B93> \xCC\x57 |0
+<U5B95> \xCC\x58 |0
+<U5B97> \xA9\x76 |0
+<U5B98> \xA9\x78 |0
+<U5B99> \xA9\x7A |0
+<U5B9A> \xA9\x77 |0
+<U5B9B> \xA9\x7B |0
+<U5B9C> \xA9\x79 |0
+<U5BA2> \xAB\xC8 |0
+<U5BA3> \xAB\xC5 |0
+<U5BA4> \xAB\xC7 |0
+<U5BA5> \xAB\xC9 |0
+<U5BA6> \xAB\xC6 |0
+<U5BA7> \xD1\x66 |0
+<U5BA8> \xCE\x77 |0
+<U5BAC> \xD1\x68 |0
+<U5BAD> \xD1\x67 |0
+<U5BAE> \xAE\x63 |0
+<U5BB0> \xAE\x5F |0
+<U5BB3> \xAE\x60 |0
+<U5BB4> \xAE\x62 |0
+<U5BB5> \xAE\x64 |0
+<U5BB6> \xAE\x61 |0
+<U5BB8> \xAE\x66 |0
+<U5BB9> \xAE\x65 |0
+<U5BBF> \xB1\x4A |0
+<U5BC0> \xD4\xF2 |0
+<U5BC1> \xD4\xF1 |0
+<U5BC2> \xB1\x49 |0
+<U5BC4> \xB1\x48 |0
+<U5BC5> \xB1\x47 |0
+<U5BC6> \xB1\x4B |0
+<U5BC7> \xB1\x46 |0
+<U5BCA> \xD8\xD5 |0
+<U5BCB> \xD8\xD2 |0
+<U5BCC> \xB4\x49 |0
+<U5BCD> \xD8\xD1 |0
+<U5BCE> \xD8\xD6 |0
+<U5BD0> \xB4\x4B |0
+<U5BD1> \xD8\xD4 |0
+<U5BD2> \xB4\x48 |0
+<U5BD3> \xB4\x4A |0
+<U5BD4> \xD8\xD3 |0
+<U5BD6> \xDD\x48 |0
+<U5BD8> \xDD\x49 |0
+<U5BD9> \xDD\x4A |0
+<U5BDE> \xB9\xE6 |0
+<U5BDF> \xB9\xEE |0
+<U5BE0> \xE1\x7E |0
+<U5BE1> \xB9\xE8 |0
+<U5BE2> \xB9\xEC |0
+<U5BE3> \xE1\xA1 |0
+<U5BE4> \xB9\xED |0
+<U5BE5> \xB9\xE9 |0
+<U5BE6> \xB9\xEA |0
+<U5BE7> \xB9\xE7 |0
+<U5BE8> \xB9\xEB |0
+<U5BE9> \xBC\x66 |0
+<U5BEA> \xD8\xD0 |0
+<U5BEB> \xBC\x67 |0
+<U5BEC> \xBC\x65 |0
+<U5BEE> \xBC\x64 |0
+<U5BEF> \xE9\x5D |0
+<U5BF0> \xBE\xC8 |0
+<U5BF1> \xEC\xD8 |0
+<U5BF2> \xEC\xD9 |0
+<U5BF5> \xC3\x64 |0
+<U5BF6> \xC4\x5F |0
+<U5BF8> \xA4\x6F |0
+<U5BFA> \xA6\x78 |0
+<U5C01> \xAB\xCA |0
+<U5C03> \xD1\x69 |0
+<U5C04> \xAE\x67 |0
+<U5C07> \xB1\x4E |0
+<U5C08> \xB1\x4D |0
+<U5C09> \xB1\x4C |0
+<U5C0A> \xB4\x4C |0
+<U5C0B> \xB4\x4D |0
+<U5C0C> \xD8\xD7 |0
+<U5C0D> \xB9\xEF |0
+<U5C0E> \xBE\xC9 |0
+<U5C0F> \xA4\x70 |0
+<U5C10> \xC9\x5C |0
+<U5C11> \xA4\xD6 |0
+<U5C12> \xC9\x74 |0
+<U5C15> \xC9\xD4 |0
+<U5C16> \xA6\x79 |0
+<U5C1A> \xA9\x7C |0
+<U5C1F> \xDD\x4B |0
+<U5C22> \xA4\x71 |0
+<U5C24> \xA4\xD7 |0
+<U5C25> \xC9\xD5 |0
+<U5C28> \xCA\xBE |0
+<U5C2A> \xCA\xBF |0
+<U5C2C> \xA7\xBC |0
+<U5C30> \xD8\xD8 |0
+<U5C31> \xB4\x4E |0
+<U5C33> \xDD\x4C |0
+<U5C37> \xC0\xAA |0
+<U5C38> \xA4\x72 |0
+<U5C39> \xA4\xA8 |0
+<U5C3A> \xA4\xD8 |0
+<U5C3B> \xC9\x75 |0
+<U5C3C> \xA5\xA7 |0
+<U5C3E> \xA7\xC0 |0
+<U5C3F> \xA7\xBF |0
+<U5C40> \xA7\xBD |0
+<U5C41> \xA7\xBE |0
+<U5C44> \xCC\x59 |0
+<U5C45> \xA9\x7E |0
+<U5C46> \xA9\xA1 |0
+<U5C47> \xCC\x5A |0
+<U5C48> \xA9\x7D |0
+<U5C4B> \xAB\xCE |0
+<U5C4C> \xCE\x78 |0
+<U5C4D> \xAB\xCD |0
+<U5C4E> \xAB\xCB |0
+<U5C4F> \xAB\xCC |0
+<U5C50> \xAE\x6A |0
+<U5C51> \xAE\x68 |0
+<U5C54> \xD1\x6B |0
+<U5C55> \xAE\x69 |0
+<U5C56> \xD1\x6A |0
+<U5C58> \xAE\x5E |0
+<U5C59> \xD4\xF3 |0
+<U5C5C> \xB1\x50 |0
+<U5C5D> \xB1\x51 |0
+<U5C60> \xB1\x4F |0
+<U5C62> \xB9\xF0 |0
+<U5C63> \xE1\xA2 |0
+<U5C64> \xBC\x68 |0
+<U5C65> \xBC\x69 |0
+<U5C67> \xE5\x61 |0
+<U5C68> \xC0\xAB |0
+<U5C69> \xEF\xC2 |0
+<U5C6A> \xEF\xC3 |0
+<U5C6C> \xC4\xDD |0
+<U5C6D> \xF8\xA8 |0
+<U5C6E> \xC9\x4B |0
+<U5C6F> \xA4\xD9 |0
+<U5C71> \xA4\x73 |0
+<U5C73> \xC9\x77 |0
+<U5C74> \xC9\x76 |0
+<U5C79> \xA6\x7A |0
+<U5C7A> \xC9\xD7 |0
+<U5C7B> \xC9\xD8 |0
+<U5C7C> \xC9\xD6 |0
+<U5C7E> \xC9\xD9 |0
+<U5C86> \xCA\xC7 |0
+<U5C88> \xCA\xC2 |0
+<U5C89> \xCA\xC4 |0
+<U5C8A> \xCA\xC6 |0
+<U5C8B> \xCA\xC3 |0
+<U5C8C> \xA7\xC4 |0
+<U5C8D> \xCA\xC0 |0
+<U5C8F> \xCA\xC1 |0
+<U5C90> \xA7\xC1 |0
+<U5C91> \xA7\xC2 |0
+<U5C92> \xCA\xC5 |0
+<U5C93> \xCA\xC8 |0
+<U5C94> \xA7\xC3 |0
+<U5C95> \xCA\xC9 |0
+<U5C9D> \xCC\x68 |0
+<U5C9F> \xCC\x62 |0
+<U5CA0> \xCC\x5D |0
+<U5CA1> \xA9\xA3 |0
+<U5CA2> \xCC\x65 |0
+<U5CA3> \xCC\x63 |0
+<U5CA4> \xCC\x5C |0
+<U5CA5> \xCC\x69 |0
+<U5CA6> \xCC\x6C |0
+<U5CA7> \xCC\x67 |0
+<U5CA8> \xCC\x60 |0
+<U5CA9> \xA9\xA5 |0
+<U5CAA> \xCC\x66 |0
+<U5CAB> \xA9\xA6 |0
+<U5CAC> \xCC\x61 |0
+<U5CAD> \xCC\x64 |0
+<U5CAE> \xCC\x5B |0
+<U5CAF> \xCC\x5F |0
+<U5CB0> \xCC\x6B |0
+<U5CB1> \xA9\xA7 |0
+<U5CB3> \xA9\xA8 |0
+<U5CB5> \xCC\x5E |0
+<U5CB6> \xCC\x6A |0
+<U5CB7> \xA9\xA2 |0
+<U5CB8> \xA9\xA4 |0
+<U5CC6> \xCE\xAB |0
+<U5CC7> \xCE\xA4 |0
+<U5CC8> \xCE\xAA |0
+<U5CC9> \xCE\xA3 |0
+<U5CCA> \xCE\xA5 |0
+<U5CCB> \xCE\x7D |0
+<U5CCC> \xCE\x7B |0
+<U5CCE> \xCE\xAC |0
+<U5CCF> \xCE\xA9 |0
+<U5CD0> \xCE\x79 |0
+<U5CD2> \xAB\xD0 |0
+<U5CD3> \xCE\xA7 |0
+<U5CD4> \xCE\xA8 |0
+<U5CD6> \xCE\xA6 |0
+<U5CD7> \xCE\x7C |0
+<U5CD8> \xCE\x7A |0
+<U5CD9> \xAB\xCF |0
+<U5CDA> \xCE\xA2 |0
+<U5CDB> \xCE\x7E |0
+<U5CDE> \xCE\xA1 |0
+<U5CDF> \xCE\xAD |0
+<U5CE8> \xAE\x6F |0
+<U5CEA> \xAE\x6E |0
+<U5CEC> \xD1\x6C |0
+<U5CED> \xAE\x6B |0
+<U5CEE> \xD1\x6E |0
+<U5CF0> \xAE\x70 |0
+<U5CF1> \xD1\x6F |0
+<U5CF4> \xAE\x73 |0
+<U5CF6> \xAE\x71 |0
+<U5CF7> \xD1\x70 |0
+<U5CF8> \xCE\xAE |0
+<U5CF9> \xD1\x72 |0
+<U5CFB> \xAE\x6D |0
+<U5CFD> \xAE\x6C |0
+<U5CFF> \xD1\x6D |0
+<U5D00> \xD1\x71 |0
+<U5D01> \xAE\x72 |0
+<U5D06> \xB1\x53 |0
+<U5D07> \xB1\x52 |0
+<U5D0B> \xD4\xF5 |0
+<U5D0C> \xD4\xF9 |0
+<U5D0D> \xD4\xFB |0
+<U5D0E> \xB1\x54 |0
+<U5D0F> \xD4\xFE |0
+<U5D11> \xB1\x58 |0
+<U5D12> \xD5\x41 |0
+<U5D14> \xB1\x5A |0
+<U5D16> \xB1\x56 |0
+<U5D17> \xB1\x5E |0
+<U5D19> \xB1\x5B |0
+<U5D1A> \xD4\xF7 |0
+<U5D1B> \xB1\x55 |0
+<U5D1D> \xD4\xF6 |0
+<U5D1E> \xD4\xF4 |0
+<U5D1F> \xD5\x43 |0
+<U5D20> \xD4\xF8 |0
+<U5D22> \xB1\x57 |0
+<U5D23> \xD5\x42 |0
+<U5D24> \xB1\x5C |0
+<U5D25> \xD4\xFD |0
+<U5D26> \xD4\xFC |0
+<U5D27> \xB1\x5D |0
+<U5D28> \xD4\xFA |0
+<U5D29> \xB1\x59 |0
+<U5D2E> \xD5\x44 |0
+<U5D30> \xD5\x40 |0
+<U5D31> \xD8\xE7 |0
+<U5D32> \xD8\xEE |0
+<U5D33> \xD8\xE3 |0
+<U5D34> \xB4\x51 |0
+<U5D35> \xD8\xDF |0
+<U5D36> \xD8\xEF |0
+<U5D37> \xD8\xD9 |0
+<U5D38> \xD8\xEC |0
+<U5D39> \xD8\xEA |0
+<U5D3A> \xD8\xE4 |0
+<U5D3C> \xD8\xED |0
+<U5D3D> \xD8\xE6 |0
+<U5D3F> \xD8\xDE |0
+<U5D40> \xD8\xF0 |0
+<U5D41> \xD8\xDC |0
+<U5D42> \xD8\xE9 |0
+<U5D43> \xD8\xDA |0
+<U5D45> \xD8\xF1 |0
+<U5D47> \xB4\x52 |0
+<U5D49> \xD8\xEB |0
+<U5D4A> \xDD\x4F |0
+<U5D4B> \xD8\xDD |0
+<U5D4C> \xB4\x4F |0
+<U5D4E> \xD8\xE1 |0
+<U5D50> \xB4\x50 |0
+<U5D51> \xD8\xE0 |0
+<U5D52> \xD8\xE5 |0
+<U5D55> \xD8\xE2 |0
+<U5D59> \xD8\xE8 |0
+<U5D5E> \xDD\x53 |0
+<U5D62> \xDD\x56 |0
+<U5D63> \xDD\x4E |0
+<U5D65> \xDD\x50 |0
+<U5D67> \xDD\x55 |0
+<U5D68> \xDD\x54 |0
+<U5D69> \xB7\x43 |0
+<U5D6B> \xD8\xDB |0
+<U5D6C> \xDD\x52 |0
+<U5D6F> \xB7\x44 |0
+<U5D71> \xDD\x4D |0
+<U5D72> \xDD\x51 |0
+<U5D77> \xE1\xA9 |0
+<U5D79> \xE1\xB0 |0
+<U5D7A> \xE1\xA7 |0
+<U5D7C> \xE1\xAE |0
+<U5D7D> \xE1\xA5 |0
+<U5D7E> \xE1\xAD |0
+<U5D7F> \xE1\xB1 |0
+<U5D80> \xE1\xA4 |0
+<U5D81> \xE1\xA8 |0
+<U5D82> \xE1\xA3 |0
+<U5D84> \xB9\xF1 |0
+<U5D86> \xE1\xA6 |0
+<U5D87> \xB9\xF2 |0
+<U5D88> \xE1\xAC |0
+<U5D89> \xE1\xAB |0
+<U5D8A> \xE1\xAA |0
+<U5D8D> \xE1\xAF |0
+<U5D92> \xE5\x65 |0
+<U5D93> \xE5\x67 |0
+<U5D94> \xBC\x6B |0
+<U5D95> \xE5\x68 |0
+<U5D97> \xE5\x63 |0
+<U5D99> \xE5\x62 |0
+<U5D9A> \xE5\x6C |0
+<U5D9C> \xE5\x6A |0
+<U5D9D> \xBC\x6A |0
+<U5D9E> \xE5\x6D |0
+<U5D9F> \xE5\x64 |0
+<U5DA0> \xE5\x69 |0
+<U5DA1> \xE5\x6B |0
+<U5DA2> \xE5\x66 |0
+<U5DA7> \xE9\x61 |0
+<U5DA8> \xE9\x66 |0
+<U5DA9> \xE9\x60 |0
+<U5DAA> \xE9\x65 |0
+<U5DAC> \xE9\x5E |0
+<U5DAD> \xE9\x68 |0
+<U5DAE> \xE9\x64 |0
+<U5DAF> \xE9\x69 |0
+<U5DB0> \xE9\x63 |0
+<U5DB1> \xE9\x5F |0
+<U5DB2> \xE9\x67 |0
+<U5DB4> \xE9\x6A |0
+<U5DB5> \xE9\x62 |0
+<U5DB7> \xEC\xDA |0
+<U5DB8> \xC0\xAF |0
+<U5DBA> \xC0\xAD |0
+<U5DBC> \xC0\xAC |0
+<U5DBD> \xC0\xAE |0
+<U5DC0> \xEF\xC4 |0
+<U5DC2> \xF1\x72 |0
+<U5DC3> \xF1\xFD |0
+<U5DC6> \xF4\x44 |0
+<U5DC7> \xF4\x45 |0
+<U5DC9> \xC4\x60 |0
+<U5DCB> \xF5\xC9 |0
+<U5DCD> \xC4\xDE |0
+<U5DCF> \xF5\xCA |0
+<U5DD1> \xF6\xDE |0
+<U5DD2> \xC5\x72 |0
+<U5DD4> \xC5\x71 |0
+<U5DD5> \xF6\xDD |0
+<U5DD6> \xC5\xC9 |0
+<U5DD8> \xF7\xD6 |0
+<U5DDD> \xA4\x74 |0
+<U5DDE> \xA6\x7B |0
+<U5DDF> \xC9\xDA |0
+<U5DE0> \xCA\xCA |0
+<U5DE1> \xA8\xB5 |0
+<U5DE2> \xB1\x5F |0
+<U5DE5> \xA4\x75 |0
+<U5DE6> \xA5\xAA |0
+<U5DE7> \xA5\xA9 |0
+<U5DE8> \xA5\xA8 |0
+<U5DEB> \xA7\xC5 |0
+<U5DEE> \xAE\x74 |0
+<U5DF0> \xDD\x57 |0
+<U5DF1> \xA4\x76 |0
+<U5DF2> \xA4\x77 |0
+<U5DF3> \xA4\x78 |0
+<U5DF4> \xA4\xDA |0
+<U5DF7> \xAB\xD1 |0
+<U5DF9> \xCE\xAF |0
+<U5DFD> \xB4\x53 |0
+<U5DFE> \xA4\x79 |0
+<U5DFF> \xC9\x5D |0
+<U5E02> \xA5\xAB |0
+<U5E03> \xA5\xAC |0
+<U5E04> \xC9\x78 |0
+<U5E06> \xA6\x7C |0
+<U5E0A> \xCA\xCB |0
+<U5E0C> \xA7\xC6 |0
+<U5E0E> \xCA\xCC |0
+<U5E11> \xA9\xAE |0
+<U5E14> \xCC\x6E |0
+<U5E15> \xA9\xAC |0
+<U5E16> \xA9\xAB |0
+<U5E17> \xCC\x6D |0
+<U5E18> \xA9\xA9 |0
+<U5E19> \xCC\x6F |0
+<U5E1A> \xA9\xAA |0
+<U5E1B> \xA9\xAD |0
+<U5E1D> \xAB\xD2 |0
+<U5E1F> \xAB\xD4 |0
+<U5E20> \xCE\xB3 |0
+<U5E21> \xCE\xB0 |0
+<U5E22> \xCE\xB1 |0
+<U5E23> \xCE\xB2 |0
+<U5E24> \xCE\xB4 |0
+<U5E25> \xAB\xD3 |0
+<U5E28> \xD1\x74 |0
+<U5E29> \xD1\x73 |0
+<U5E2B> \xAE\x76 |0
+<U5E2D> \xAE\x75 |0
+<U5E33> \xB1\x62 |0
+<U5E34> \xD5\x46 |0
+<U5E36> \xB1\x61 |0
+<U5E37> \xB1\x63 |0
+<U5E38> \xB1\x60 |0
+<U5E3D> \xB4\x55 |0
+<U5E3E> \xD5\x45 |0
+<U5E40> \xB4\x56 |0
+<U5E41> \xD8\xF3 |0
+<U5E43> \xB4\x57 |0
+<U5E44> \xD8\xF2 |0
+<U5E45> \xB4\x54 |0
+<U5E4A> \xDD\x5A |0
+<U5E4B> \xDD\x5C |0
+<U5E4C> \xB7\x45 |0
+<U5E4D> \xDD\x5B |0
+<U5E4E> \xDD\x59 |0
+<U5E4F> \xDD\x58 |0
+<U5E53> \xE1\xB4 |0
+<U5E54> \xB9\xF7 |0
+<U5E55> \xB9\xF5 |0
+<U5E57> \xB9\xF6 |0
+<U5E58> \xE1\xB2 |0
+<U5E59> \xE1\xB3 |0
+<U5E5B> \xB9\xF3 |0
+<U5E5C> \xE5\x71 |0
+<U5E5D> \xE5\x6F |0
+<U5E5F> \xBC\x6D |0
+<U5E60> \xE5\x70 |0
+<U5E61> \xBC\x6E |0
+<U5E62> \xBC\x6C |0
+<U5E63> \xB9\xF4 |0
+<U5E66> \xE9\x6D |0
+<U5E67> \xE9\x6B |0
+<U5E68> \xE9\x6C |0
+<U5E69> \xE5\x6E |0
+<U5E6A> \xEC\xDC |0
+<U5E6B> \xC0\xB0 |0
+<U5E6C> \xEC\xDB |0
+<U5E6D> \xEF\xC5 |0
+<U5E6E> \xEF\xC6 |0
+<U5E6F> \xE9\x6E |0
+<U5E70> \xF1\xFE |0
+<U5E72> \xA4\x7A |0
+<U5E73> \xA5\xAD |0
+<U5E74> \xA6\x7E |0
+<U5E75> \xC9\xDB |0
+<U5E76> \xA6\x7D |0
+<U5E78> \xA9\xAF |0
+<U5E79> \xB7\x46 |0
+<U5E7B> \xA4\xDB |0
+<U5E7C> \xA5\xAE |0
+<U5E7D> \xAB\xD5 |0
+<U5E7E> \xB4\x58 |0
+<U5E80> \xC9\x79 |0
+<U5E82> \xC9\x7A |0
+<U5E84> \xC9\xDC |0
+<U5E87> \xA7\xC8 |0
+<U5E88> \xCA\xD0 |0
+<U5E89> \xCA\xCE |0
+<U5E8A> \xA7\xC9 |0
+<U5E8B> \xCA\xCD |0
+<U5E8C> \xCA\xCF |0
+<U5E8D> \xCA\xD1 |0
+<U5E8F> \xA7\xC7 |0
+<U5E95> \xA9\xB3 |0
+<U5E96> \xA9\xB4 |0
+<U5E97> \xA9\xB1 |0
+<U5E9A> \xA9\xB0 |0
+<U5E9B> \xCE\xB8 |0
+<U5E9C> \xA9\xB2 |0
+<U5EA0> \xAB\xD6 |0
+<U5EA2> \xCE\xB7 |0
+<U5EA3> \xCE\xB9 |0
+<U5EA4> \xCE\xB6 |0
+<U5EA5> \xCE\xBA |0
+<U5EA6> \xAB\xD7 |0
+<U5EA7> \xAE\x79 |0
+<U5EA8> \xD1\x75 |0
+<U5EAA> \xD1\x77 |0
+<U5EAB> \xAE\x77 |0
+<U5EAC> \xD1\x78 |0
+<U5EAD> \xAE\x78 |0
+<U5EAE> \xD1\x76 |0
+<U5EB0> \xCE\xB5 |0
+<U5EB1> \xD5\x47 |0
+<U5EB2> \xD5\x4A |0
+<U5EB3> \xD5\x4B |0
+<U5EB4> \xD5\x48 |0
+<U5EB5> \xB1\x67 |0
+<U5EB6> \xB1\x66 |0
+<U5EB7> \xB1\x64 |0
+<U5EB8> \xB1\x65 |0
+<U5EB9> \xD5\x49 |0
+<U5EBE> \xB1\x68 |0
+<U5EC1> \xB4\x5A |0
+<U5EC2> \xB4\x5B |0
+<U5EC4> \xB4\x5C |0
+<U5EC5> \xDD\x5D |0
+<U5EC6> \xDD\x5F |0
+<U5EC7> \xDD\x61 |0
+<U5EC8> \xB7\x48 |0
+<U5EC9> \xB7\x47 |0
+<U5ECA> \xB4\x59 |0
+<U5ECB> \xDD\x60 |0
+<U5ECC> \xDD\x5E |0
+<U5ECE> \xE1\xB8 |0
+<U5ED1> \xE1\xB6 |0
+<U5ED2> \xE1\xBC |0
+<U5ED3> \xB9\xF8 |0
+<U5ED4> \xE1\xBD |0
+<U5ED5> \xE1\xBA |0
+<U5ED6> \xB9\xF9 |0
+<U5ED7> \xE1\xB7 |0
+<U5ED8> \xE1\xB5 |0
+<U5ED9> \xE1\xBB |0
+<U5EDA> \xBC\x70 |0
+<U5EDB> \xE5\x73 |0
+<U5EDC> \xE1\xB9 |0
+<U5EDD> \xBC\x72 |0
+<U5EDE> \xE5\x74 |0
+<U5EDF> \xBC\x71 |0
+<U5EE0> \xBC\x74 |0
+<U5EE1> \xE5\x75 |0
+<U5EE2> \xBC\x6F |0
+<U5EE3> \xBC\x73 |0
+<U5EE5> \xE9\x73 |0
+<U5EE6> \xE9\x71 |0
+<U5EE7> \xE9\x70 |0
+<U5EE8> \xE9\x72 |0
+<U5EE9> \xE9\x6F |0
+<U5EEC> \xC3\x66 |0
+<U5EEE> \xF4\x46 |0
+<U5EEF> \xF4\x47 |0
+<U5EF1> \xF5\xCB |0
+<U5EF2> \xF6\xDF |0
+<U5EF3> \xC6\x55 |0
+<U5EF6> \xA9\xB5 |0
+<U5EF7> \xA7\xCA |0
+<U5EFA> \xAB\xD8 |0
+<U5EFE> \xA4\x7B |0
+<U5EFF> \xA4\xDC |0
+<U5F01> \xA5\xAF |0
+<U5F02> \xC9\xDD |0
+<U5F04> \xA7\xCB |0
+<U5F05> \xCA\xD2 |0
+<U5F07> \xCE\xBB |0
+<U5F08> \xAB\xD9 |0
+<U5F0A> \xB9\xFA |0
+<U5F0B> \xA4\x7C |0
+<U5F0F> \xA6\xA1 |0
+<U5F12> \xB7\x49 |0
+<U5F13> \xA4\x7D |0
+<U5F14> \xA4\xDD |0
+<U5F15> \xA4\xDE |0
+<U5F17> \xA5\xB1 |0
+<U5F18> \xA5\xB0 |0
+<U5F1A> \xC9\xDE |0
+<U5F1B> \xA6\xA2 |0
+<U5F1D> \xCA\xD3 |0
+<U5F1F> \xA7\xCC |0
+<U5F22> \xCC\x71 |0
+<U5F23> \xCC\x72 |0
+<U5F24> \xCC\x73 |0
+<U5F26> \xA9\xB6 |0
+<U5F27> \xA9\xB7 |0
+<U5F28> \xCC\x70 |0
+<U5F29> \xA9\xB8 |0
+<U5F2D> \xAB\xDA |0
+<U5F2E> \xCE\xBC |0
+<U5F30> \xD1\x7A |0
+<U5F31> \xAE\x7A |0
+<U5F33> \xD1\x79 |0
+<U5F35> \xB1\x69 |0
+<U5F36> \xD5\x4C |0
+<U5F37> \xB1\x6A |0
+<U5F38> \xD5\x4D |0
+<U5F3C> \xB4\x5D |0
+<U5F40> \xDD\x62 |0
+<U5F43> \xE1\xBF |0
+<U5F44> \xE1\xBE |0
+<U5F46> \xB9\xFB |0
+<U5F48> \xBC\x75 |0
+<U5F49> \xE5\x76 |0
+<U5F4A> \xBE\xCA |0
+<U5F4B> \xE9\x74 |0
+<U5F4C> \xC0\xB1 |0
+<U5F4E> \xC5\x73 |0
+<U5F4F> \xF7\xD8 |0
+<U5F54> \xCC\x74 |0
+<U5F56> \xCE\xBD |0
+<U5F57> \xB1\x6B |0
+<U5F58> \xD8\xF4 |0
+<U5F59> \xB7\x4A |0
+<U5F5D> \xC2\x55 |0
+<U5F62> \xA7\xCE |0
+<U5F64> \xA7\xCD |0
+<U5F65> \xAB\xDB |0
+<U5F67> \xD1\x7B |0
+<U5F69> \xB1\x6D |0
+<U5F6A> \xB3\x43 |0
+<U5F6B> \xB1\x6E |0
+<U5F6C> \xB1\x6C |0
+<U5F6D> \xB4\x5E |0
+<U5F6F> \xE1\xC0 |0
+<U5F70> \xB9\xFC |0
+<U5F71> \xBC\x76 |0
+<U5F73> \xC9\x4C |0
+<U5F74> \xC9\xDF |0
+<U5F76> \xCA\xD5 |0
+<U5F77> \xA7\xCF |0
+<U5F78> \xCA\xD4 |0
+<U5F79> \xA7\xD0 |0
+<U5F7C> \xA9\xBC |0
+<U5F7D> \xCC\x77 |0
+<U5F7E> \xCC\x76 |0
+<U5F7F> \xA9\xBB |0
+<U5F80> \xA9\xB9 |0
+<U5F81> \xA9\xBA |0
+<U5F82> \xCC\x75 |0
+<U5F85> \xAB\xDD |0
+<U5F86> \xCE\xBE |0
+<U5F87> \xAB\xE0 |0
+<U5F88> \xAB\xDC |0
+<U5F89> \xAB\xE2 |0
+<U5F8A> \xAB\xDE |0
+<U5F8B> \xAB\xDF |0
+<U5F8C> \xAB\xE1 |0
+<U5F90> \xAE\x7D |0
+<U5F91> \xAE\x7C |0
+<U5F92> \xAE\x7B |0
+<U5F96> \xD5\x4F |0
+<U5F97> \xB1\x6F |0
+<U5F98> \xB1\x72 |0
+<U5F99> \xB1\x70 |0
+<U5F9B> \xD5\x4E |0
+<U5F9C> \xB1\x75 |0
+<U5F9E> \xB1\x71 |0
+<U5F9F> \xD5\x50 |0
+<U5FA0> \xB1\x74 |0
+<U5FA1> \xB1\x73 |0
+<U5FA5> \xD8\xF6 |0
+<U5FA6> \xD8\xF5 |0
+<U5FA8> \xB4\x61 |0
+<U5FA9> \xB4\x5F |0
+<U5FAA> \xB4\x60 |0
+<U5FAB> \xD8\xF7 |0
+<U5FAC> \xB7\x4B |0
+<U5FAD> \xDD\x64 |0
+<U5FAE> \xB7\x4C |0
+<U5FAF> \xDD\x63 |0
+<U5FB2> \xE5\x77 |0
+<U5FB5> \xBC\x78 |0
+<U5FB6> \xE1\xC1 |0
+<U5FB7> \xBC\x77 |0
+<U5FB9> \xB9\xFD |0
+<U5FBB> \xEC\xDE |0
+<U5FBC> \xE9\x75 |0
+<U5FBD> \xC0\xB2 |0
+<U5FBE> \xEC\xDD |0
+<U5FBF> \xF2\x40 |0
+<U5FC0> \xF4\x48 |0
+<U5FC1> \xF4\x49 |0
+<U5FC3> \xA4\xDF |0
+<U5FC5> \xA5\xB2 |0
+<U5FC9> \xC9\x7B |0
+<U5FCC> \xA7\xD2 |0
+<U5FCD> \xA7\xD4 |0
+<U5FCF> \xC9\xE2 |0
+<U5FD0> \xCA\xD8 |0
+<U5FD1> \xCA\xD7 |0
+<U5FD2> \xCA\xD6 |0
+<U5FD4> \xC9\xE1 |0
+<U5FD5> \xC9\xE0 |0
+<U5FD6> \xA6\xA4 |0
+<U5FD7> \xA7\xD3 |0
+<U5FD8> \xA7\xD1 |0
+<U5FD9> \xA6\xA3 |0
+<U5FDD> \xA9\xBD |0
+<U5FDE> \xCC\x78 |0
+<U5FE0> \xA9\xBE |0
+<U5FE1> \xCA\xDD |0
+<U5FE3> \xCA\xDF |0
+<U5FE4> \xCA\xDE |0
+<U5FE5> \xCC\x79 |0
+<U5FE8> \xCA\xDA |0
+<U5FEA> \xA7\xD8 |0
+<U5FEB> \xA7\xD6 |0
+<U5FED> \xCA\xD9 |0
+<U5FEE> \xCA\xDB |0
+<U5FEF> \xCA\xE1 |0
+<U5FF1> \xA7\xD5 |0
+<U5FF3> \xCA\xDC |0
+<U5FF4> \xCA\xE5 |0
+<U5FF5> \xA9\xC0 |0
+<U5FF7> \xCA\xE2 |0
+<U5FF8> \xA7\xD7 |0
+<U5FFA> \xCA\xE0 |0
+<U5FFB> \xCA\xE3 |0
+<U5FFD> \xA9\xBF |0
+<U5FFF> \xA9\xC1 |0
+<U6000> \xCA\xE4 |0
+<U6009> \xCC\xAF |0
+<U600A> \xCC\xA2 |0
+<U600B> \xCC\x7E |0
+<U600C> \xCC\xAE |0
+<U600D> \xCC\xA9 |0
+<U600E> \xAB\xE7 |0
+<U600F> \xA9\xC2 |0
+<U6010> \xCC\xAA |0
+<U6011> \xCC\xAD |0
+<U6012> \xAB\xE3 |0
+<U6013> \xCC\xAC |0
+<U6014> \xA9\xC3 |0
+<U6015> \xA9\xC8 |0
+<U6016> \xA9\xC6 |0
+<U6017> \xCC\xA3 |0
+<U6019> \xCC\x7C |0
+<U601A> \xCC\xA5 |0
+<U601B> \xA9\xCD |0
+<U601C> \xCC\xB0 |0
+<U601D> \xAB\xE4 |0
+<U601E> \xCC\xA6 |0
+<U6020> \xAB\xE5 |0
+<U6021> \xA9\xC9 |0
+<U6022> \xCC\xA8 |0
+<U6024> \xCE\xCD |0
+<U6025> \xAB\xE6 |0
+<U6026> \xCC\x7B |0
+<U6027> \xA9\xCA |0
+<U6028> \xAB\xE8 |0
+<U6029> \xA9\xCB |0
+<U602A> \xA9\xC7 |0
+<U602B> \xA9\xCC |0
+<U602C> \xCC\xA7 |0
+<U602D> \xCC\x7A |0
+<U602E> \xCC\xAB |0
+<U602F> \xA9\xC4 |0
+<U6032> \xCC\x7D |0
+<U6033> \xCC\xA4 |0
+<U6034> \xCC\xA1 |0
+<U6035> \xA9\xC5 |0
+<U6037> \xCE\xBF |0
+<U6039> \xCE\xC0 |0
+<U6040> \xCE\xCA |0
+<U6041> \xD1\xA1 |0
+<U6042> \xCE\xCB |0
+<U6043> \xAB\xEE |0
+<U6044> \xCE\xCE |0
+<U6045> \xCE\xC4 |0
+<U6046> \xAB\xED |0
+<U6047> \xCE\xC6 |0
+<U6049> \xCE\xC7 |0
+<U604C> \xCE\xC9 |0
+<U604D> \xAB\xE9 |0
+<U6050> \xAE\xA3 |0
+<U6052> \xF9\xDA |0
+<U6053> \xCE\xC5 |0
+<U6054> \xCE\xC1 |0
+<U6055> \xAE\xA4 |0
+<U6058> \xCE\xCF |0
+<U6059> \xAE\x7E |0
+<U605A> \xD1\x7D |0
+<U605B> \xCE\xC8 |0
+<U605D> \xD1\x7C |0
+<U605E> \xCE\xC3 |0
+<U605F> \xCE\xCC |0
+<U6062> \xAB\xEC |0
+<U6063> \xAE\xA1 |0
+<U6064> \xAB\xF2 |0
+<U6065> \xAE\xA2 |0
+<U6066> \xCE\xD0 |0
+<U6067> \xD1\x7E |0
+<U6068> \xAB\xEB |0
+<U6069> \xAE\xA6 |0
+<U606A> \xAB\xF1 |0
+<U606B> \xAB\xF0 |0
+<U606C> \xAB\xEF |0
+<U606D> \xAE\xA5 |0
+<U606E> \xCE\xD1 |0
+<U606F> \xAE\xA7 |0
+<U6070> \xAB\xEA |0
+<U6072> \xCE\xC2 |0
+<U607F> \xB1\x76 |0
+<U6080> \xD1\xA4 |0
+<U6081> \xD1\xA6 |0
+<U6083> \xD1\xA8 |0
+<U6084> \xAE\xA8 |0
+<U6085> \xAE\xAE |0
+<U6086> \xD5\x53 |0
+<U6087> \xD1\xAC |0
+<U6088> \xD1\xA3 |0
+<U6089> \xB1\x78 |0
+<U608A> \xD5\x51 |0
+<U608C> \xAE\xAD |0
+<U608D> \xAE\xAB |0
+<U608E> \xD1\xAE |0
+<U6090> \xD5\x52 |0
+<U6092> \xD1\xA5 |0
+<U6094> \xAE\xAC |0
+<U6095> \xD1\xA9 |0
+<U6096> \xAE\xAF |0
+<U6097> \xD1\xAB |0
+<U609A> \xAE\xAA |0
+<U609B> \xD1\xAA |0
+<U609C> \xD1\xAD |0
+<U609D> \xD1\xA7 |0
+<U609F> \xAE\xA9 |0
+<U60A0> \xB1\x79 |0
+<U60A2> \xD1\xA2 |0
+<U60A3> \xB1\x77 |0
+<U60A8> \xB1\x7A |0
+<U60B0> \xD5\x55 |0
+<U60B1> \xD5\x5E |0
+<U60B2> \xB4\x64 |0
+<U60B4> \xB1\x7C |0
+<U60B5> \xB1\xA3 |0
+<U60B6> \xB4\x65 |0
+<U60B7> \xD5\x60 |0
+<U60B8> \xB1\xAA |0
+<U60B9> \xD8\xF9 |0
+<U60BA> \xD5\x56 |0
+<U60BB> \xB1\xA2 |0
+<U60BC> \xB1\xA5 |0
+<U60BD> \xB1\x7E |0
+<U60BE> \xD5\x54 |0
+<U60BF> \xD5\x62 |0
+<U60C0> \xD5\x65 |0
+<U60C1> \xD9\x49 |0
+<U60C3> \xD5\x63 |0
+<U60C4> \xD8\xFD |0
+<U60C5> \xB1\xA1 |0
+<U60C6> \xB1\xA8 |0
+<U60C7> \xB1\xAC |0
+<U60C8> \xD5\x5D |0
+<U60C9> \xD8\xF8 |0
+<U60CA> \xD5\x61 |0
+<U60CB> \xB1\x7B |0
+<U60CC> \xD8\xFA |0
+<U60CD> \xD5\x64 |0
+<U60CE> \xD8\xFC |0
+<U60CF> \xD5\x59 |0
+<U60D1> \xB4\x62 |0
+<U60D3> \xD5\x57 |0
+<U60D4> \xD5\x58 |0
+<U60D5> \xB1\xA7 |0
+<U60D8> \xB1\xA6 |0
+<U60D9> \xD5\x5B |0
+<U60DA> \xB1\xAB |0
+<U60DB> \xD5\x5F |0
+<U60DC> \xB1\xA4 |0
+<U60DD> \xD5\x5C |0
+<U60DF> \xB1\xA9 |0
+<U60E0> \xB4\x66 |0
+<U60E1> \xB4\x63 |0
+<U60E2> \xD8\xFB |0
+<U60E4> \xD5\x5A |0
+<U60E6> \xB1\x7D |0
+<U60F0> \xB4\x6B |0
+<U60F1> \xB4\x6F |0
+<U60F2> \xD9\x40 |0
+<U60F3> \xB7\x51 |0
+<U60F4> \xB4\x6D |0
+<U60F5> \xD9\x44 |0
+<U60F6> \xB4\x71 |0
+<U60F7> \xDD\x65 |0
+<U60F8> \xD9\x46 |0
+<U60F9> \xB7\x53 |0
+<U60FA> \xB4\x69 |0
+<U60FB> \xB4\x6C |0
+<U60FC> \xD9\x47 |0
+<U60FE> \xD9\x48 |0
+<U60FF> \xD9\x4E |0
+<U6100> \xB4\x73 |0
+<U6101> \xB7\x54 |0
+<U6103> \xD9\x4A |0
+<U6104> \xD9\x4F |0
+<U6105> \xD9\x43 |0
+<U6106> \xB7\x5E |0
+<U6108> \xB7\x55 |0
+<U6109> \xB4\x72 |0
+<U610A> \xD9\x41 |0
+<U610B> \xD9\x50 |0
+<U610D> \xB7\x5D |0
+<U610E> \xB4\x70 |0
+<U610F> \xB7\x4E |0
+<U6110> \xD9\x4D |0
+<U6112> \xB4\x74 |0
+<U6113> \xD9\x45 |0
+<U6114> \xD8\xFE |0
+<U6115> \xB4\x6A |0
+<U6116> \xD9\x42 |0
+<U6118> \xD9\x4B |0
+<U611A> \xB7\x4D |0
+<U611B> \xB7\x52 |0
+<U611C> \xB4\x67 |0
+<U611D> \xD9\x4C |0
+<U611F> \xB7\x50 |0
+<U6123> \xB4\x68 |0
+<U6127> \xB7\x5C |0
+<U6128> \xE1\xC3 |0
+<U6129> \xDD\x70 |0
+<U612B> \xDD\x68 |0
+<U612C> \xE1\xC2 |0
+<U612E> \xDD\x6C |0
+<U612F> \xDD\x6E |0
+<U6132> \xDD\x6B |0
+<U6134> \xB7\x5B |0
+<U6136> \xDD\x6A |0
+<U6137> \xB7\x5F |0
+<U613B> \xE1\xD2 |0
+<U613E> \xB7\x5A |0
+<U613F> \xBA\x40 |0
+<U6140> \xDD\x71 |0
+<U6141> \xE1\xC4 |0
+<U6144> \xB7\x58 |0
+<U6145> \xDD\x69 |0
+<U6146> \xDD\x6D |0
+<U6147> \xB9\xFE |0
+<U6148> \xB7\x4F |0
+<U6149> \xDD\x66 |0
+<U614A> \xDD\x67 |0
+<U614B> \xBA\x41 |0
+<U614C> \xB7\x57 |0
+<U614D> \xB7\x59 |0
+<U614E> \xB7\x56 |0
+<U614F> \xDD\x6F |0
+<U6152> \xE1\xC8 |0
+<U6153> \xE1\xC9 |0
+<U6154> \xE1\xCE |0
+<U6155> \xBC\x7D |0
+<U6156> \xE1\xD5 |0
+<U6158> \xBA\x47 |0
+<U615A> \xBA\x46 |0
+<U615B> \xE1\xD0 |0
+<U615D> \xBC\x7C |0
+<U615E> \xE1\xC5 |0
+<U615F> \xBA\x45 |0
+<U6161> \xE1\xD4 |0
+<U6162> \xBA\x43 |0
+<U6163> \xBA\x44 |0
+<U6165> \xE1\xD1 |0
+<U6166> \xE5\xAA |0
+<U6167> \xBC\x7A |0
+<U6168> \xB4\x6E |0
+<U616A> \xE1\xD3 |0
+<U616B> \xBC\xA3 |0
+<U616C> \xE1\xCB |0
+<U616E> \xBC\x7B |0
+<U6170> \xBC\xA2 |0
+<U6171> \xE1\xC6 |0
+<U6172> \xE1\xCA |0
+<U6173> \xE1\xC7 |0
+<U6174> \xE1\xCD |0
+<U6175> \xBA\x48 |0
+<U6176> \xBC\x79 |0
+<U6177> \xBA\x42 |0
+<U6179> \xE5\x7A |0
+<U617A> \xE1\xCF |0
+<U617C> \xBC\xA1 |0
+<U617E> \xBC\xA4 |0
+<U6180> \xE1\xCC |0
+<U6182> \xBC\x7E |0
+<U6183> \xE5\x79 |0
+<U6189> \xE5\x7E |0
+<U618A> \xBE\xCE |0
+<U618B> \xE5\x78 |0
+<U618C> \xE9\xA3 |0
+<U618D> \xE5\xA9 |0
+<U618E> \xBC\xA8 |0
+<U6190> \xBC\xA6 |0
+<U6191> \xBE\xCC |0
+<U6192> \xE5\xA6 |0
+<U6193> \xE5\xA2 |0
+<U6194> \xBC\xAC |0
+<U6196> \xE9\x78 |0
+<U619A> \xBC\xAA |0
+<U619B> \xE5\xA1 |0
+<U619D> \xE9\x76 |0
+<U619F> \xE5\xA5 |0
+<U61A1> \xE5\xA8 |0
+<U61A2> \xE5\x7D |0
+<U61A4> \xBC\xAB |0
+<U61A7> \xBC\xA5 |0
+<U61A8> \xE9\x77 |0
+<U61A9> \xBE\xCD |0
+<U61AA> \xE5\xA7 |0
+<U61AB> \xBC\xA7 |0
+<U61AC> \xBC\xA9 |0
+<U61AD> \xE5\xA4 |0
+<U61AE> \xBC\xAD |0
+<U61AF> \xE5\xA3 |0
+<U61B0> \xE5\x7C |0
+<U61B1> \xE5\x7B |0
+<U61B2> \xBE\xCB |0
+<U61B3> \xE5\xAB |0
+<U61B4> \xE9\x7A |0
+<U61B5> \xEC\xE0 |0
+<U61B6> \xBE\xD0 |0
+<U61B8> \xE9\xA2 |0
+<U61BA> \xE9\x7E |0
+<U61BC> \xEC\xE1 |0
+<U61BE> \xBE\xD1 |0
+<U61BF> \xE9\xA1 |0
+<U61C1> \xE9\x7C |0
+<U61C2> \xC0\xB4 |0
+<U61C3> \xEC\xDF |0
+<U61C5> \xE9\x79 |0
+<U61C6> \xE9\x7B |0
+<U61C7> \xC0\xB5 |0
+<U61C8> \xBE\xD3 |0
+<U61C9> \xC0\xB3 |0
+<U61CA> \xBE\xD2 |0
+<U61CB> \xC0\xB7 |0
+<U61CC> \xE9\x7D |0
+<U61CD> \xBE\xCF |0
+<U61D6> \xEF\xCF |0
+<U61D8> \xEF\xC7 |0
+<U61DE> \xEC\xE7 |0
+<U61DF> \xEF\xC8 |0
+<U61E0> \xEC\xE3 |0
+<U61E3> \xC2\x56 |0
+<U61E4> \xEC\xE5 |0
+<U61E5> \xEC\xE4 |0
+<U61E6> \xC0\xB6 |0
+<U61E7> \xEC\xE2 |0
+<U61E8> \xEC\xE6 |0
+<U61E9> \xEF\xD0 |0
+<U61EA> \xEF\xCC |0
+<U61EB> \xEF\xCE |0
+<U61ED> \xEF\xC9 |0
+<U61EE> \xEF\xCA |0
+<U61F0> \xEF\xCD |0
+<U61F1> \xEF\xCB |0
+<U61F2> \xC3\x67 |0
+<U61F5> \xC3\x6A |0
+<U61F6> \xC3\x69 |0
+<U61F7> \xC3\x68 |0
+<U61F8> \xC4\x61 |0
+<U61F9> \xF4\x4A |0
+<U61FA> \xC4\x62 |0
+<U61FB> \xF2\x41 |0
+<U61FC> \xC4\xDF |0
+<U61FD> \xF5\xCC |0
+<U61FE> \xC4\xE0 |0
+<U61FF> \xC5\x74 |0
+<U6200> \xC5\xCA |0
+<U6201> \xF7\xD9 |0
+<U6203> \xF7\xDA |0
+<U6204> \xF7\xDB |0
+<U6207> \xF9\xBA |0
+<U6208> \xA4\xE0 |0
+<U6209> \xC9\x7C |0
+<U620A> \xA5\xB3 |0
+<U620C> \xA6\xA6 |0
+<U620D> \xA6\xA7 |0
+<U620E> \xA6\xA5 |0
+<U6210> \xA6\xA8 |0
+<U6211> \xA7\xDA |0
+<U6212> \xA7\xD9 |0
+<U6214> \xCC\xB1 |0
+<U6215> \xA9\xCF |0
+<U6216> \xA9\xCE |0
+<U6219> \xD1\xAF |0
+<U621A> \xB1\xAD |0
+<U621B> \xB1\xAE |0
+<U621F> \xB4\x75 |0
+<U6220> \xDD\x72 |0
+<U6221> \xB7\x60 |0
+<U6222> \xB7\x61 |0
+<U6223> \xDD\x74 |0
+<U6224> \xDD\x76 |0
+<U6225> \xDD\x75 |0
+<U6227> \xE1\xD7 |0
+<U6229> \xE1\xD6 |0
+<U622A> \xBA\x49 |0
+<U622B> \xE1\xD8 |0
+<U622D> \xE5\xAC |0
+<U622E> \xBC\xAE |0
+<U6230> \xBE\xD4 |0
+<U6232> \xC0\xB8 |0
+<U6233> \xC2\x57 |0
+<U6234> \xC0\xB9 |0
+<U6236> \xA4\xE1 |0
+<U623A> \xCA\xE6 |0
+<U623D> \xCC\xB2 |0
+<U623E> \xA9\xD1 |0
+<U623F> \xA9\xD0 |0
+<U6240> \xA9\xD2 |0
+<U6241> \xAB\xF3 |0
+<U6242> \xCE\xD2 |0
+<U6243> \xCE\xD3 |0
+<U6246> \xD1\xB0 |0
+<U6247> \xAE\xB0 |0
+<U6248> \xB1\xAF |0
+<U6249> \xB4\x76 |0
+<U624A> \xD9\x51 |0
+<U624B> \xA4\xE2 |0
+<U624D> \xA4\x7E |0
+<U624E> \xA4\xE3 |0
+<U6250> \xC9\x7D |0
+<U6251> \xA5\xB7 |0
+<U6252> \xA5\xB6 |0
+<U6253> \xA5\xB4 |0
+<U6254> \xA5\xB5 |0
+<U6258> \xA6\xAB |0
+<U6259> \xC9\xE9 |0
+<U625A> \xC9\xEB |0
+<U625B> \xA6\xAA |0
+<U625C> \xC9\xE3 |0
+<U625E> \xC9\xE4 |0
+<U6260> \xC9\xEA |0
+<U6261> \xC9\xE6 |0
+<U6262> \xC9\xE8 |0
+<U6263> \xA6\xA9 |0
+<U6264> \xC9\xE5 |0
+<U6265> \xC9\xEC |0
+<U6266> \xC9\xE7 |0
+<U626D> \xA7\xE1 |0
+<U626E> \xA7\xEA |0
+<U626F> \xA7\xE8 |0
+<U6270> \xCA\xF0 |0
+<U6271> \xCA\xED |0
+<U6272> \xCA\xF5 |0
+<U6273> \xA7\xE6 |0
+<U6274> \xCA\xF6 |0
+<U6276> \xA7\xDF |0
+<U6277> \xCA\xF3 |0
+<U6279> \xA7\xE5 |0
+<U627A> \xCA\xEF |0
+<U627B> \xCA\xEE |0
+<U627C> \xA7\xE3 |0
+<U627D> \xCA\xF4 |0
+<U627E> \xA7\xE4 |0
+<U627F> \xA9\xD3 |0
+<U6280> \xA7\xDE |0
+<U6281> \xCA\xF1 |0
+<U6283> \xCA\xE7 |0
+<U6284> \xA7\xDB |0
+<U6286> \xA7\xEE |0
+<U6287> \xCA\xEC |0
+<U6288> \xCA\xF2 |0
+<U6289> \xA7\xE0 |0
+<U628A> \xA7\xE2 |0
+<U628C> \xCA\xE8 |0
+<U628E> \xCA\xE9 |0
+<U628F> \xCA\xEA |0
+<U6291> \xA7\xED |0
+<U6292> \xA7\xE7 |0
+<U6293> \xA7\xEC |0
+<U6294> \xCA\xEB |0
+<U6295> \xA7\xEB |0
+<U6296> \xA7\xDD |0
+<U6297> \xA7\xDC |0
+<U6298> \xA7\xE9 |0
+<U62A8> \xA9\xE1 |0
+<U62A9> \xCC\xBE |0
+<U62AA> \xCC\xB7 |0
+<U62AB> \xA9\xDC |0
+<U62AC> \xA9\xEF |0
+<U62AD> \xCC\xB3 |0
+<U62AE> \xCC\xBA |0
+<U62AF> \xCC\xBC |0
+<U62B0> \xCC\xBF |0
+<U62B1> \xA9\xEA |0
+<U62B3> \xCC\xBB |0
+<U62B4> \xCC\xB4 |0
+<U62B5> \xA9\xE8 |0
+<U62B6> \xCC\xB8 |0
+<U62B8> \xCC\xC0 |0
+<U62B9> \xA9\xD9 |0
+<U62BB> \xCC\xBD |0
+<U62BC> \xA9\xE3 |0
+<U62BD> \xA9\xE2 |0
+<U62BE> \xCC\xB6 |0
+<U62BF> \xA9\xD7 |0
+<U62C2> \xA9\xD8 |0
+<U62C4> \xA9\xD6 |0
+<U62C6> \xA9\xEE |0
+<U62C7> \xA9\xE6 |0
+<U62C8> \xA9\xE0 |0
+<U62C9> \xA9\xD4 |0
+<U62CA> \xCC\xB9 |0
+<U62CB> \xA9\xDF |0
+<U62CC> \xA9\xD5 |0
+<U62CD> \xA9\xE7 |0
+<U62CE> \xA9\xF0 |0
+<U62CF> \xCE\xD4 |0
+<U62D0> \xA9\xE4 |0
+<U62D1> \xCC\xB5 |0
+<U62D2> \xA9\xDA |0
+<U62D3> \xA9\xDD |0
+<U62D4> \xA9\xDE |0
+<U62D6> \xA9\xEC |0
+<U62D7> \xA9\xED |0
+<U62D8> \xA9\xEB |0
+<U62D9> \xA9\xE5 |0
+<U62DA> \xA9\xE9 |0
+<U62DB> \xA9\xDB |0
+<U62DC> \xAB\xF4 |0
+<U62EB> \xCE\xDA |0
+<U62EC> \xAC\x41 |0
+<U62ED> \xAB\xF8 |0
+<U62EE> \xAB\xFA |0
+<U62EF> \xAC\x40 |0
+<U62F0> \xCE\xE6 |0
+<U62F1> \xAB\xFD |0
+<U62F2> \xD1\xB1 |0
+<U62F3> \xAE\xB1 |0
+<U62F4> \xAC\x43 |0
+<U62F5> \xCE\xD7 |0
+<U62F6> \xCE\xDF |0
+<U62F7> \xAB\xFE |0
+<U62F8> \xCE\xDE |0
+<U62F9> \xCE\xDB |0
+<U62FA> \xCE\xE3 |0
+<U62FB> \xCE\xE5 |0
+<U62FC> \xAB\xF7 |0
+<U62FD> \xAB\xFB |0
+<U62FE> \xAC\x42 |0
+<U62FF> \xAE\xB3 |0
+<U6300> \xCE\xE0 |0
+<U6301> \xAB\xF9 |0
+<U6302> \xAC\x45 |0
+<U6303> \xCE\xD9 |0
+<U6307> \xAB\xFC |0
+<U6308> \xAE\xB2 |0
+<U6309> \xAB\xF6 |0
+<U630B> \xCE\xD6 |0
+<U630C> \xCE\xDD |0
+<U630D> \xCE\xD5 |0
+<U630E> \xCE\xD8 |0
+<U630F> \xCE\xDC |0
+<U6310> \xD1\xB2 |0
+<U6311> \xAC\x44 |0
+<U6313> \xCE\xE1 |0
+<U6314> \xCE\xE2 |0
+<U6315> \xCE\xE4 |0
+<U6316> \xAB\xF5 |0
+<U6328> \xAE\xC1 |0
+<U6329> \xD1\xBE |0
+<U632A> \xAE\xBF |0
+<U632B> \xAE\xC0 |0
+<U632C> \xD1\xB4 |0
+<U632D> \xD1\xC4 |0
+<U632F> \xAE\xB6 |0
+<U6332> \xD5\x66 |0
+<U6333> \xD1\xC6 |0
+<U6334> \xD1\xC0 |0
+<U6336> \xD1\xB7 |0
+<U6338> \xD1\xC9 |0
+<U6339> \xD1\xBA |0
+<U633A> \xAE\xBC |0
+<U633B> \xD5\x7D |0
+<U633C> \xD1\xBD |0
+<U633D> \xAE\xBE |0
+<U633E> \xAE\xB5 |0
+<U6340> \xD1\xCB |0
+<U6341> \xD1\xBF |0
+<U6342> \xAE\xB8 |0
+<U6343> \xD1\xB8 |0
+<U6344> \xD1\xB5 |0
+<U6345> \xD1\xB6 |0
+<U6346> \xAE\xB9 |0
+<U6347> \xD1\xC5 |0
+<U6348> \xD1\xCC |0
+<U6349> \xAE\xBB |0
+<U634A> \xD1\xBC |0
+<U634B> \xD1\xBB |0
+<U634C> \xAE\xC3 |0
+<U634D> \xAE\xC2 |0
+<U634E> \xAE\xB4 |0
+<U634F> \xAE\xBA |0
+<U6350> \xAE\xBD |0
+<U6351> \xD1\xC8 |0
+<U6354> \xD1\xC2 |0
+<U6355> \xAE\xB7 |0
+<U6356> \xD1\xB3 |0
+<U6357> \xD1\xCA |0
+<U6358> \xD1\xC1 |0
+<U6359> \xD1\xC3 |0
+<U635A> \xD1\xC7 |0
+<U6365> \xD5\x67 |0
+<U6367> \xB1\xB7 |0
+<U6368> \xB1\xCB |0
+<U6369> \xB1\xCA |0
+<U636B> \xB1\xBF |0
+<U636D> \xD5\x79 |0
+<U636E> \xD5\x75 |0
+<U636F> \xD5\x72 |0
+<U6370> \xD5\xA6 |0
+<U6371> \xB1\xBA |0
+<U6372> \xB1\xB2 |0
+<U6375> \xD5\x77 |0
+<U6376> \xB4\xA8 |0
+<U6377> \xB1\xB6 |0
+<U6378> \xD5\xA1 |0
+<U637A> \xB1\xCC |0
+<U637B> \xB1\xC9 |0
+<U637C> \xD5\x7B |0
+<U637D> \xD5\x6A |0
+<U6380> \xB1\xC8 |0
+<U6381> \xD5\xA3 |0
+<U6382> \xD5\x69 |0
+<U6383> \xB1\xBD |0
+<U6384> \xB1\xC1 |0
+<U6385> \xD5\xA2 |0
+<U6387> \xD5\x73 |0
+<U6388> \xB1\xC2 |0
+<U6389> \xB1\xBC |0
+<U638A> \xD5\x68 |0
+<U638C> \xB4\x78 |0
+<U638D> \xD5\xA5 |0
+<U638E> \xD5\x71 |0
+<U638F> \xB1\xC7 |0
+<U6390> \xD5\x74 |0
+<U6391> \xD5\xA4 |0
+<U6392> \xB1\xC6 |0
+<U6394> \xD9\x52 |0
+<U6396> \xB1\xB3 |0
+<U6397> \xD5\x6F |0
+<U6398> \xB1\xB8 |0
+<U6399> \xB1\xC3 |0
+<U639B> \xB1\xBE |0
+<U639C> \xD5\x78 |0
+<U639D> \xD5\x6E |0
+<U639E> \xD5\x6C |0
+<U639F> \xD5\x7E |0
+<U63A0> \xB1\xB0 |0
+<U63A1> \xB1\xC4 |0
+<U63A2> \xB1\xB4 |0
+<U63A3> \xB4\x77 |0
+<U63A4> \xD5\x7C |0
+<U63A5> \xB1\xB5 |0
+<U63A7> \xB1\xB1 |0
+<U63A8> \xB1\xC0 |0
+<U63A9> \xB1\xBB |0
+<U63AA> \xB1\xB9 |0
+<U63AB> \xD5\x70 |0
+<U63AC> \xB1\xC5 |0
+<U63AD> \xD5\x6D |0
+<U63AE> \xD5\x7A |0
+<U63AF> \xD5\x76 |0
+<U63B0> \xD9\x54 |0
+<U63B1> \xD9\x53 |0
+<U63BD> \xD5\x6B |0
+<U63BE> \xD9\x64 |0
+<U63C0> \xB4\x7A |0
+<U63C2> \xD9\x6A |0
+<U63C3> \xD9\x59 |0
+<U63C4> \xD9\x67 |0
+<U63C5> \xDD\x77 |0
+<U63C6> \xB4\x7D |0
+<U63C7> \xD9\x6B |0
+<U63C8> \xD9\x6E |0
+<U63C9> \xB4\x7C |0
+<U63CA> \xD9\x5C |0
+<U63CB> \xD9\x6D |0
+<U63CC> \xD9\x6C |0
+<U63CD> \xB4\x7E |0
+<U63CE> \xD9\x55 |0
+<U63CF> \xB4\x79 |0
+<U63D0> \xB4\xA3 |0
+<U63D2> \xB4\xA1 |0
+<U63D3> \xD9\x69 |0
+<U63D5> \xD9\x5F |0
+<U63D6> \xB4\xA5 |0
+<U63D7> \xD9\x70 |0
+<U63D8> \xD9\x68 |0
+<U63D9> \xD9\x71 |0
+<U63DA> \xB4\xAD |0
+<U63DB> \xB4\xAB |0
+<U63DC> \xD9\x66 |0
+<U63DD> \xD9\x65 |0
+<U63DF> \xD9\x63 |0
+<U63E0> \xD9\x5D |0
+<U63E1> \xB4\xA4 |0
+<U63E3> \xB4\xA2 |0
+<U63E4> \xD1\xB9 |0
+<U63E5> \xD9\x56 |0
+<U63E7> \xDD\xB7 |0
+<U63E8> \xD9\x57 |0
+<U63E9> \xB4\x7B |0
+<U63EA> \xB4\xAA |0
+<U63EB> \xDD\x79 |0
+<U63ED> \xB4\xA6 |0
+<U63EE> \xB4\xA7 |0
+<U63EF> \xD9\x58 |0
+<U63F0> \xD9\x6F |0
+<U63F1> \xDD\x78 |0
+<U63F2> \xD9\x60 |0
+<U63F3> \xD9\x5B |0
+<U63F4> \xB4\xA9 |0
+<U63F5> \xD9\x61 |0
+<U63F6> \xD9\x5E |0
+<U63F9> \xB4\xAE |0
+<U6406> \xB7\x70 |0
+<U6409> \xDD\x7C |0
+<U640A> \xDD\xB1 |0
+<U640B> \xDD\xB6 |0
+<U640C> \xDD\xAA |0
+<U640D> \xB7\x6C |0
+<U640E> \xDD\xBB |0
+<U640F> \xB7\x69 |0
+<U6410> \xDD\x7A |0
+<U6412> \xDD\x7B |0
+<U6413> \xB7\x62 |0
+<U6414> \xB7\x6B |0
+<U6415> \xDD\xA4 |0
+<U6416> \xB7\x6E |0
+<U6417> \xB7\x6F |0
+<U6418> \xDD\xA5 |0
+<U641A> \xDD\xB2 |0
+<U641B> \xDD\xB8 |0
+<U641C> \xB7\x6A |0
+<U641E> \xB7\x64 |0
+<U641F> \xDD\xA3 |0
+<U6420> \xDD\x7D |0
+<U6421> \xDD\xBA |0
+<U6422> \xDD\xA8 |0
+<U6423> \xDD\xA9 |0
+<U6424> \xDD\x7E |0
+<U6425> \xDD\xB4 |0
+<U6426> \xDD\xAB |0
+<U6427> \xDD\xB5 |0
+<U6428> \xDD\xAD |0
+<U642A> \xB7\x65 |0
+<U642B> \xE1\xD9 |0
+<U642C> \xB7\x68 |0
+<U642D> \xB7\x66 |0
+<U642E> \xDD\xB9 |0
+<U642F> \xDD\xB0 |0
+<U6430> \xDD\xAC |0
+<U6433> \xDD\xA1 |0
+<U6434> \xBA\x53 |0
+<U6435> \xDD\xAF |0
+<U6436> \xB7\x6D |0
+<U6437> \xDD\xA7 |0
+<U6439> \xDD\xA6 |0
+<U643D> \xB7\x67 |0
+<U643E> \xB7\x63 |0
+<U643F> \xE1\xEE |0
+<U6440> \xDD\xB3 |0
+<U6441> \xDD\xAE |0
+<U6443> \xDD\xA2 |0
+<U644B> \xE1\xE9 |0
+<U644D> \xE1\xDA |0
+<U644E> \xE1\xE5 |0
+<U6450> \xE1\xEC |0
+<U6451> \xBA\x51 |0
+<U6452> \xB4\xAC |0
+<U6453> \xE1\xEA |0
+<U6454> \xBA\x4C |0
+<U6458> \xBA\x4B |0
+<U6459> \xE1\xF1 |0
+<U645B> \xE1\xDB |0
+<U645C> \xE1\xE8 |0
+<U645D> \xE1\xDC |0
+<U645E> \xE1\xE7 |0
+<U645F> \xBA\x4F |0
+<U6460> \xE1\xEB |0
+<U6461> \xD9\x62 |0
+<U6465> \xE1\xF2 |0
+<U6466> \xE1\xE3 |0
+<U6467> \xBA\x52 |0
+<U6468> \xE5\xBA |0
+<U6469> \xBC\xAF |0
+<U646B> \xE1\xF0 |0
+<U646C> \xE1\xEF |0
+<U646D> \xBA\x54 |0
+<U646E> \xE5\xAD |0
+<U646F> \xBC\xB0 |0
+<U6470> \xE5\xAE |0
+<U6472> \xE1\xDF |0
+<U6473> \xE1\xE0 |0
+<U6474> \xE1\xDD |0
+<U6475> \xE1\xE2 |0
+<U6476> \xE1\xDE |0
+<U6477> \xE1\xF3 |0
+<U6478> \xBA\x4E |0
+<U6479> \xBC\xB1 |0
+<U647A> \xBA\x50 |0
+<U647B> \xBA\x55 |0
+<U647D> \xE1\xE1 |0
+<U647F> \xE1\xED |0
+<U6482> \xE1\xE6 |0
+<U6485> \xE5\xB1 |0
+<U6487> \xBA\x4A |0
+<U6488> \xBC\xB4 |0
+<U6489> \xE9\xAA |0
+<U648A> \xE5\xB6 |0
+<U648B> \xE5\xB5 |0
+<U648C> \xE5\xB7 |0
+<U648F> \xE5\xB4 |0
+<U6490> \xBC\xB5 |0
+<U6492> \xBC\xBB |0
+<U6493> \xBC\xB8 |0
+<U6495> \xBC\xB9 |0
+<U6496> \xE5\xAF |0
+<U6497> \xE5\xB2 |0
+<U6498> \xE5\xBC |0
+<U6499> \xBC\xC1 |0
+<U649A> \xBC\xBF |0
+<U649C> \xE5\xB3 |0
+<U649D> \xD9\x5A |0
+<U649E> \xBC\xB2 |0
+<U649F> \xE5\xB9 |0
+<U64A0> \xE5\xB0 |0
+<U64A2> \xBC\xC2 |0
+<U64A3> \xE5\xB8 |0
+<U64A4> \xBA\x4D |0
+<U64A5> \xBC\xB7 |0
+<U64A6> \xE1\xE4 |0
+<U64A9> \xBC\xBA |0
+<U64AB> \xBC\xBE |0
+<U64AC> \xBC\xC0 |0
+<U64AD> \xBC\xBD |0
+<U64AE> \xBC\xBC |0
+<U64B0> \xBC\xB6 |0
+<U64B1> \xE5\xBB |0
+<U64B2> \xBC\xB3 |0
+<U64B3> \xBC\xC3 |0
+<U64BB> \xBE\xD8 |0
+<U64BC> \xBE\xD9 |0
+<U64BD> \xE9\xA9 |0
+<U64BE> \xBE\xE2 |0
+<U64BF> \xBE\xDF |0
+<U64C1> \xBE\xD6 |0
+<U64C2> \xBE\xDD |0
+<U64C3> \xE9\xAB |0
+<U64C4> \xBE\xDB |0
+<U64C5> \xBE\xD5 |0
+<U64C7> \xBE\xDC |0
+<U64C9> \xE9\xA8 |0
+<U64CA> \xC0\xBB |0
+<U64CB> \xBE\xD7 |0
+<U64CD> \xBE\xDE |0
+<U64CE> \xC0\xBA |0
+<U64CF> \xE9\xA7 |0
+<U64D0> \xE9\xA6 |0
+<U64D2> \xBE\xE0 |0
+<U64D4> \xBE\xE1 |0
+<U64D6> \xE9\xA5 |0
+<U64D7> \xE9\xA4 |0
+<U64D8> \xC0\xBC |0
+<U64D9> \xE9\xAE |0
+<U64DA> \xBE\xDA |0
+<U64DB> \xE9\xAC |0
+<U64E0> \xC0\xBD |0
+<U64E2> \xC0\xC2 |0
+<U64E3> \xEC\xEA |0
+<U64E4> \xEC\xEC |0
+<U64E6> \xC0\xBF |0
+<U64E8> \xEC\xED |0
+<U64E9> \xEC\xE9 |0
+<U64EB> \xEC\xEB |0
+<U64EC> \xC0\xC0 |0
+<U64ED> \xC0\xC3 |0
+<U64EF> \xEC\xE8 |0
+<U64F0> \xC0\xBE |0
+<U64F1> \xC0\xC1 |0
+<U64F2> \xC2\x59 |0
+<U64F3> \xE9\xAD |0
+<U64F4> \xC2\x58 |0
+<U64F7> \xC2\x5E |0
+<U64F8> \xEF\xD4 |0
+<U64FA> \xC2\x5C |0
+<U64FB> \xC2\x5D |0
+<U64FC> \xEF\xD7 |0
+<U64FD> \xEF\xD3 |0
+<U64FE> \xC2\x5A |0
+<U64FF> \xEF\xD1 |0
+<U6500> \xC3\x6B |0
+<U6501> \xEF\xD5 |0
+<U6503> \xEF\xD6 |0
+<U6504> \xEF\xD2 |0
+<U6506> \xC2\x5B |0
+<U6507> \xF2\x42 |0
+<U6509> \xF2\x45 |0
+<U650C> \xF2\x46 |0
+<U650D> \xF2\x44 |0
+<U650E> \xF2\x47 |0
+<U650F> \xC3\x6C |0
+<U6510> \xF2\x43 |0
+<U6513> \xF4\x4E |0
+<U6514> \xC4\x64 |0
+<U6515> \xF4\x4D |0
+<U6516> \xF4\x4C |0
+<U6517> \xF4\x4B |0
+<U6518> \xC4\x63 |0
+<U6519> \xC4\x65 |0
+<U651B> \xF5\xCD |0
+<U651C> \xC4\xE2 |0
+<U651D> \xC4\xE1 |0
+<U6520> \xF6\xE1 |0
+<U6521> \xF6\xE0 |0
+<U6522> \xF6\xE3 |0
+<U6523> \xC5\xCB |0
+<U6524> \xC5\x75 |0
+<U6525> \xF7\xDD |0
+<U6526> \xF6\xE2 |0
+<U6529> \xF7\xDC |0
+<U652A> \xC5\xCD |0
+<U652B> \xC5\xCC |0
+<U652C> \xC5\xF3 |0
+<U652D> \xF8\xA9 |0
+<U652E> \xF8\xEF |0
+<U652F> \xA4\xE4 |0
+<U6532> \xD9\x72 |0
+<U6533> \xE9\xAF |0
+<U6536> \xA6\xAC |0
+<U6537> \xCA\xF7 |0
+<U6538> \xA7\xF1 |0
+<U6539> \xA7\xEF |0
+<U653B> \xA7\xF0 |0
+<U653D> \xCC\xC1 |0
+<U653E> \xA9\xF1 |0
+<U653F> \xAC\x46 |0
+<U6541> \xCE\xE7 |0
+<U6543> \xCE\xE8 |0
+<U6545> \xAC\x47 |0
+<U6546> \xD1\xCE |0
+<U6548> \xAE\xC4 |0
+<U6549> \xAE\xC5 |0
+<U654A> \xD1\xCD |0
+<U654F> \xB1\xD3 |0
+<U6551> \xB1\xCF |0
+<U6553> \xD5\xA7 |0
+<U6554> \xB1\xD6 |0
+<U6555> \xB1\xD5 |0
+<U6556> \xB1\xCE |0
+<U6557> \xB1\xD1 |0
+<U6558> \xB1\xD4 |0
+<U6559> \xB1\xD0 |0
+<U655C> \xD9\x76 |0
+<U655D> \xB1\xCD |0
+<U655E> \xB4\xAF |0
+<U6562> \xB4\xB1 |0
+<U6563> \xB4\xB2 |0
+<U6564> \xD9\x75 |0
+<U6565> \xD9\x78 |0
+<U6566> \xB4\xB0 |0
+<U6567> \xD9\x73 |0
+<U6568> \xD9\x77 |0
+<U656A> \xD9\x74 |0
+<U656C> \xB7\x71 |0
+<U656F> \xDD\xBC |0
+<U6572> \xBA\x56 |0
+<U6573> \xE1\xF4 |0
+<U6574> \xBE\xE3 |0
+<U6575> \xBC\xC4 |0
+<U6576> \xE5\xBD |0
+<U6577> \xBC\xC5 |0
+<U6578> \xBC\xC6 |0
+<U6579> \xE5\xBF |0
+<U657A> \xE5\xBE |0
+<U657B> \xE5\xC0 |0
+<U657C> \xE9\xB1 |0
+<U657F> \xE9\xB0 |0
+<U6580> \xEC\xEF |0
+<U6581> \xEC\xEE |0
+<U6582> \xC0\xC4 |0
+<U6583> \xC0\xC5 |0
+<U6584> \xF2\x48 |0
+<U6587> \xA4\xE5 |0
+<U658C> \xD9\x79 |0
+<U6590> \xB4\xB4 |0
+<U6591> \xB4\xB3 |0
+<U6592> \xDD\xBD |0
+<U6594> \xEF\xD8 |0
+<U6595> \xC4\xE3 |0
+<U6596> \xF7\xDE |0
+<U6597> \xA4\xE6 |0
+<U6599> \xAE\xC6 |0
+<U659B> \xB1\xD8 |0
+<U659C> \xB1\xD7 |0
+<U659D> \xD9\x7A |0
+<U659E> \xD9\x7B |0
+<U659F> \xB7\x72 |0
+<U65A0> \xE1\xF5 |0
+<U65A1> \xBA\x57 |0
+<U65A2> \xE9\xB2 |0
+<U65A4> \xA4\xE7 |0
+<U65A5> \xA5\xB8 |0
+<U65A7> \xA9\xF2 |0
+<U65A8> \xCC\xC2 |0
+<U65AA> \xCE\xE9 |0
+<U65AB> \xAC\x48 |0
+<U65AC> \xB1\xD9 |0
+<U65AE> \xD9\x7C |0
+<U65AF> \xB4\xB5 |0
+<U65B0> \xB7\x73 |0
+<U65B2> \xE5\xC1 |0
+<U65B3> \xE5\xC2 |0
+<U65B6> \xEC\xF0 |0
+<U65B7> \xC2\x5F |0
+<U65B8> \xF8\xF0 |0
+<U65B9> \xA4\xE8 |0
+<U65BB> \xCC\xC3 |0
+<U65BC> \xA9\xF3 |0
+<U65BD> \xAC\x49 |0
+<U65BF> \xCE\xEA |0
+<U65C1> \xAE\xC7 |0
+<U65C2> \xD1\xD2 |0
+<U65C3> \xD1\xD0 |0
+<U65C4> \xD1\xD1 |0
+<U65C5> \xAE\xC8 |0
+<U65C6> \xD1\xCF |0
+<U65CB> \xB1\xDB |0
+<U65CC> \xB1\xDC |0
+<U65CD> \xD5\xA8 |0
+<U65CE> \xB1\xDD |0
+<U65CF> \xB1\xDA |0
+<U65D0> \xD9\x7D |0
+<U65D2> \xD9\x7E |0
+<U65D3> \xDD\xBE |0
+<U65D6> \xBA\x59 |0
+<U65D7> \xBA\x58 |0
+<U65DA> \xEC\xF1 |0
+<U65DB> \xEF\xD9 |0
+<U65DD> \xF2\x4A |0
+<U65DE> \xF2\x49 |0
+<U65DF> \xF4\x4F |0
+<U65E1> \xC9\x5E |0
+<U65E2> \xAC\x4A |0
+<U65E5> \xA4\xE9 |0
+<U65E6> \xA5\xB9 |0
+<U65E8> \xA6\xAE |0
+<U65E9> \xA6\xAD |0
+<U65EC> \xA6\xAF |0
+<U65ED> \xA6\xB0 |0
+<U65EE> \xC9\xEE |0
+<U65EF> \xC9\xED |0
+<U65F0> \xCA\xF8 |0
+<U65F1> \xA7\xF2 |0
+<U65F2> \xCA\xFB |0
+<U65F3> \xCA\xFA |0
+<U65F4> \xCA\xF9 |0
+<U65F5> \xCA\xFC |0
+<U65FA> \xA9\xF4 |0
+<U65FB> \xCC\xC9 |0
+<U65FC> \xCC\xC5 |0
+<U65FD> \xCC\xCE |0
+<U6600> \xA9\xFB |0
+<U6602> \xA9\xF9 |0
+<U6603> \xCC\xCA |0
+<U6604> \xCC\xC6 |0
+<U6605> \xCC\xCD |0
+<U6606> \xA9\xF8 |0
+<U6607> \xAA\x40 |0
+<U6608> \xCC\xC8 |0
+<U6609> \xCC\xC4 |0
+<U660A> \xA9\xFE |0
+<U660B> \xCC\xCB |0
+<U660C> \xA9\xF7 |0
+<U660D> \xCC\xCC |0
+<U660E> \xA9\xFA |0
+<U660F> \xA9\xFC |0
+<U6610> \xCC\xD0 |0
+<U6611> \xCC\xCF |0
+<U6612> \xCC\xC7 |0
+<U6613> \xA9\xF6 |0
+<U6614> \xA9\xF5 |0
+<U6615> \xA9\xFD |0
+<U661C> \xCE\xEF |0
+<U661D> \xCE\xF5 |0
+<U661F> \xAC\x50 |0
+<U6620> \xAC\x4D |0
+<U6621> \xCE\xEC |0
+<U6622> \xCE\xF1 |0
+<U6624> \xAC\x53 |0
+<U6625> \xAC\x4B |0
+<U6626> \xCE\xF0 |0
+<U6627> \xAC\x4E |0
+<U6628> \xAC\x51 |0
+<U662B> \xCE\xF3 |0
+<U662D> \xAC\x4C |0
+<U662E> \xCE\xF8 |0
+<U662F> \xAC\x4F |0
+<U6631> \xAC\x52 |0
+<U6632> \xCE\xED |0
+<U6633> \xCE\xF2 |0
+<U6634> \xCE\xF6 |0
+<U6635> \xCE\xEE |0
+<U6636> \xCE\xEB |0
+<U6639> \xCE\xF7 |0
+<U663A> \xCE\xF4 |0
+<U6641> \xAE\xD0 |0
+<U6642> \xAE\xC9 |0
+<U6643> \xAE\xCC |0
+<U6645> \xAE\xCF |0
+<U6647> \xD1\xD5 |0
+<U6649> \xAE\xCA |0
+<U664A> \xD1\xD3 |0
+<U664C> \xAE\xCE |0
+<U664F> \xAE\xCB |0
+<U6651> \xD1\xD6 |0
+<U6652> \xAE\xCD |0
+<U6659> \xD5\xAC |0
+<U665A> \xB1\xDF |0
+<U665B> \xD5\xAB |0
+<U665C> \xD5\xAD |0
+<U665D> \xB1\xDE |0
+<U665E> \xB1\xE3 |0
+<U665F> \xD1\xD4 |0
+<U6661> \xD5\xAA |0
+<U6662> \xD5\xAE |0
+<U6664> \xB1\xE0 |0
+<U6665> \xD5\xA9 |0
+<U6666> \xB1\xE2 |0
+<U6668> \xB1\xE1 |0
+<U666A> \xD9\xA7 |0
+<U666C> \xD9\xA2 |0
+<U666E> \xB4\xB6 |0
+<U666F> \xB4\xBA |0
+<U6670> \xB4\xB7 |0
+<U6671> \xD9\xA5 |0
+<U6672> \xD9\xA8 |0
+<U6674> \xB4\xB8 |0
+<U6676> \xB4\xB9 |0
+<U6677> \xB4\xBE |0
+<U6678> \xDD\xC7 |0
+<U6679> \xD9\xA6 |0
+<U667A> \xB4\xBC |0
+<U667B> \xD9\xA3 |0
+<U667C> \xD9\xA1 |0
+<U667E> \xB4\xBD |0
+<U6680> \xD9\xA4 |0
+<U6684> \xB7\x79 |0
+<U6686> \xDD\xBF |0
+<U6687> \xB7\x76 |0
+<U6688> \xB7\x77 |0
+<U6689> \xB7\x75 |0
+<U668A> \xDD\xC4 |0
+<U668B> \xDD\xC3 |0
+<U668C> \xDD\xC0 |0
+<U668D> \xB7\x7B |0
+<U6690> \xDD\xC2 |0
+<U6691> \xB4\xBB |0
+<U6694> \xDD\xC6 |0
+<U6695> \xDD\xC1 |0
+<U6696> \xB7\x78 |0
+<U6697> \xB7\x74 |0
+<U6698> \xB7\x7A |0
+<U6699> \xDD\xC5 |0
+<U669D> \xBA\x5C |0
+<U669F> \xE1\xF8 |0
+<U66A0> \xE1\xF7 |0
+<U66A1> \xE1\xF6 |0
+<U66A2> \xBA\x5A |0
+<U66A8> \xBA\x5B |0
+<U66A9> \xE5\xC5 |0
+<U66AA> \xE5\xC8 |0
+<U66AB> \xBC\xC8 |0
+<U66AE> \xBC\xC7 |0
+<U66AF> \xE5\xC9 |0
+<U66B0> \xE5\xC4 |0
+<U66B1> \xBC\xCA |0
+<U66B2> \xE5\xC6 |0
+<U66B4> \xBC\xC9 |0
+<U66B5> \xE5\xC3 |0
+<U66B7> \xE5\xC7 |0
+<U66B8> \xBE\xE9 |0
+<U66B9> \xBE\xE6 |0
+<U66BA> \xE9\xBB |0
+<U66BB> \xE9\xBA |0
+<U66BD> \xE9\xB9 |0
+<U66BE> \xE9\xB4 |0
+<U66C0> \xE9\xB5 |0
+<U66C4> \xBE\xE7 |0
+<U66C6> \xBE\xE4 |0
+<U66C7> \xBE\xE8 |0
+<U66C8> \xE9\xB3 |0
+<U66C9> \xBE\xE5 |0
+<U66CA> \xE9\xB6 |0
+<U66CB> \xE9\xB7 |0
+<U66CC> \xE9\xBC |0
+<U66CF> \xE9\xB8 |0
+<U66D2> \xEC\xF2 |0
+<U66D6> \xC0\xC7 |0
+<U66D8> \xEF\xDC |0
+<U66D9> \xC0\xC6 |0
+<U66DA> \xEF\xDA |0
+<U66DB> \xEF\xDB |0
+<U66DC> \xC2\x60 |0
+<U66DD> \xC3\x6E |0
+<U66DE> \xF2\x4B |0
+<U66E0> \xC3\x6D |0
+<U66E3> \xF4\x51 |0
+<U66E4> \xF4\x52 |0
+<U66E6> \xC4\x66 |0
+<U66E8> \xF4\x50 |0
+<U66E9> \xC4\xE4 |0
+<U66EB> \xF7\xDF |0
+<U66EC> \xC5\xCE |0
+<U66ED> \xF8\xAA |0
+<U66EE> \xF8\xAB |0
+<U66F0> \xA4\xEA |0
+<U66F2> \xA6\xB1 |0
+<U66F3> \xA6\xB2 |0
+<U66F4> \xA7\xF3 |0
+<U66F6> \xCC\xD1 |0
+<U66F7> \xAC\x54 |0
+<U66F8> \xAE\xD1 |0
+<U66F9> \xB1\xE4 |0
+<U66FC> \xB0\xD2 |0
+<U66FE> \xB4\xBF |0
+<U66FF> \xB4\xC0 |0
+<U6700> \xB3\xCC |0
+<U6701> \xD9\xA9 |0
+<U6703> \xB7\x7C |0
+<U6704> \xE1\xFA |0
+<U6705> \xE1\xF9 |0
+<U6708> \xA4\xEB |0
+<U6709> \xA6\xB3 |0
+<U670A> \xCC\xD2 |0
+<U670B> \xAA\x42 |0
+<U670D> \xAA\x41 |0
+<U670F> \xCE\xF9 |0
+<U6710> \xCE\xFA |0
+<U6712> \xD1\xD7 |0
+<U6713> \xD1\xD8 |0
+<U6714> \xAE\xD2 |0
+<U6715> \xAE\xD3 |0
+<U6717> \xAE\xD4 |0
+<U6718> \xD5\xAF |0
+<U671B> \xB1\xE6 |0
+<U671D> \xB4\xC2 |0
+<U671F> \xB4\xC1 |0
+<U6720> \xDD\xC8 |0
+<U6721> \xDF\x7A |0
+<U6722> \xE1\xFB |0
+<U6723> \xE9\xBD |0
+<U6726> \xC2\x61 |0
+<U6727> \xC4\x67 |0
+<U6728> \xA4\xEC |0
+<U672A> \xA5\xBC |0
+<U672B> \xA5\xBD |0
+<U672C> \xA5\xBB |0
+<U672D> \xA5\xBE |0
+<U672E> \xA5\xBA |0
+<U6731> \xA6\xB6 |0
+<U6733> \xC9\xF6 |0
+<U6734> \xA6\xB5 |0
+<U6735> \xA6\xB7 |0
+<U6738> \xC9\xF1 |0
+<U6739> \xC9\xF0 |0
+<U673A> \xC9\xF3 |0
+<U673B> \xC9\xF2 |0
+<U673C> \xC9\xF5 |0
+<U673D> \xA6\xB4 |0
+<U673E> \xC9\xEF |0
+<U673F> \xC9\xF4 |0
+<U6745> \xCA\xFD |0
+<U6746> \xA7\xFD |0
+<U6747> \xCA\xFE |0
+<U6748> \xCB\x43 |0
+<U6749> \xA7\xFC |0
+<U674B> \xCB\x47 |0
+<U674C> \xCB\x42 |0
+<U674D> \xCB\x45 |0
+<U674E> \xA7\xF5 |0
+<U674F> \xA7\xF6 |0
+<U6750> \xA7\xF7 |0
+<U6751> \xA7\xF8 |0
+<U6753> \xA8\x40 |0
+<U6755> \xCB\x41 |0
+<U6756> \xA7\xFA |0
+<U6757> \xA8\x41 |0
+<U6759> \xCB\x40 |0
+<U675A> \xCB\x46 |0
+<U675C> \xA7\xF9 |0
+<U675D> \xCB\x44 |0
+<U675E> \xA7\xFB |0
+<U675F> \xA7\xF4 |0
+<U6760> \xA7\xFE |0
+<U676A> \xAA\x57 |0
+<U676C> \xCC\xD4 |0
+<U676D> \xAA\x43 |0
+<U676F> \xAA\x4D |0
+<U6770> \xAA\x4E |0
+<U6771> \xAA\x46 |0
+<U6772> \xAA\x58 |0
+<U6773> \xAA\x48 |0
+<U6774> \xCC\xDC |0
+<U6775> \xAA\x53 |0
+<U6776> \xCC\xD7 |0
+<U6777> \xAA\x49 |0
+<U6778> \xCC\xE6 |0
+<U6779> \xCC\xE7 |0
+<U677A> \xCC\xDF |0
+<U677B> \xCC\xD8 |0
+<U677C> \xAA\x56 |0
+<U677D> \xCC\xE4 |0
+<U677E> \xAA\x51 |0
+<U677F> \xAA\x4F |0
+<U6781> \xCC\xE5 |0
+<U6783> \xCC\xE3 |0
+<U6784> \xCC\xDB |0
+<U6785> \xCC\xD3 |0
+<U6786> \xCC\xDA |0
+<U6787> \xAA\x4A |0
+<U6789> \xAA\x50 |0
+<U678B> \xAA\x44 |0
+<U678C> \xCC\xDE |0
+<U678D> \xCC\xDD |0
+<U678E> \xCC\xD5 |0
+<U6790> \xAA\x52 |0
+<U6791> \xCC\xE1 |0
+<U6792> \xCC\xD6 |0
+<U6793> \xAA\x55 |0
+<U6794> \xCC\xE8 |0
+<U6795> \xAA\x45 |0
+<U6797> \xAA\x4C |0
+<U6798> \xCC\xD9 |0
+<U6799> \xCC\xE2 |0
+<U679A> \xAA\x54 |0
+<U679C> \xAA\x47 |0
+<U679D> \xAA\x4B |0
+<U679F> \xCC\xE0 |0
+<U67AE> \xCF\x5B |0
+<U67AF> \xAC\x5C |0
+<U67B0> \xAC\x69 |0
+<U67B2> \xCF\x56 |0
+<U67B3> \xCF\x4C |0
+<U67B4> \xAC\x62 |0
+<U67B5> \xCF\x4A |0
+<U67B6> \xAC\x5B |0
+<U67B7> \xCF\x45 |0
+<U67B8> \xAC\x65 |0
+<U67B9> \xCF\x52 |0
+<U67BA> \xCE\xFE |0
+<U67BB> \xCF\x41 |0
+<U67C0> \xCF\x44 |0
+<U67C1> \xCE\xFB |0
+<U67C2> \xCF\x51 |0
+<U67C3> \xCF\x61 |0
+<U67C4> \xAC\x60 |0
+<U67C5> \xCF\x46 |0
+<U67C6> \xCF\x58 |0
+<U67C8> \xCE\xFD |0
+<U67C9> \xCF\x5F |0
+<U67CA> \xCF\x60 |0
+<U67CB> \xCF\x63 |0
+<U67CC> \xCF\x5A |0
+<U67CD> \xCF\x4B |0
+<U67CE> \xCF\x53 |0
+<U67CF> \xAC\x66 |0
+<U67D0> \xAC\x59 |0
+<U67D1> \xAC\x61 |0
+<U67D2> \xAC\x6D |0
+<U67D3> \xAC\x56 |0
+<U67D4> \xAC\x58 |0
+<U67D8> \xCF\x43 |0
+<U67D9> \xAC\x6A |0
+<U67DA> \xAC\x63 |0
+<U67DB> \xCF\x5D |0
+<U67DC> \xCF\x40 |0
+<U67DD> \xAC\x6C |0
+<U67DE> \xAC\x67 |0
+<U67DF> \xCF\x49 |0
+<U67E2> \xAC\x6B |0
+<U67E3> \xCF\x50 |0
+<U67E4> \xCF\x48 |0
+<U67E5> \xAC\x64 |0
+<U67E6> \xCF\x5C |0
+<U67E7> \xCF\x54 |0
+<U67E9> \xAC\x5E |0
+<U67EA> \xCF\x62 |0
+<U67EB> \xCF\x47 |0
+<U67EC> \xAC\x5A |0
+<U67ED> \xCF\x59 |0
+<U67EE> \xCF\x4F |0
+<U67EF> \xAC\x5F |0
+<U67F0> \xCF\x55 |0
+<U67F1> \xAC\x57 |0
+<U67F2> \xCE\xFC |0
+<U67F3> \xAC\x68 |0
+<U67F4> \xAE\xE3 |0
+<U67F5> \xAC\x5D |0
+<U67F6> \xCF\x4E |0
+<U67F7> \xCF\x4D |0
+<U67F8> \xCF\x42 |0
+<U67FA> \xCF\x5E |0
+<U67FC> \xCF\x57 |0
+<U67FF> \xAC\x55 |0
+<U6812> \xD1\xEC |0
+<U6813> \xAE\xEA |0
+<U6814> \xD1\xED |0
+<U6816> \xD1\xE1 |0
+<U6817> \xAE\xDF |0
+<U6818> \xAE\xEB |0
+<U681A> \xD1\xDA |0
+<U681C> \xD1\xE3 |0
+<U681D> \xD1\xEB |0
+<U681F> \xD1\xD9 |0
+<U6820> \xD1\xF4 |0
+<U6821> \xAE\xD5 |0
+<U6825> \xD1\xF3 |0
+<U6826> \xD1\xEE |0
+<U6828> \xD1\xEF |0
+<U6829> \xAE\xDD |0
+<U682A> \xAE\xE8 |0
+<U682B> \xD1\xE5 |0
+<U682D> \xD1\xE6 |0
+<U682E> \xD1\xF0 |0
+<U682F> \xD1\xE7 |0
+<U6831> \xD1\xE2 |0
+<U6832> \xD1\xDC |0
+<U6833> \xD1\xDD |0
+<U6834> \xD1\xEA |0
+<U6835> \xD1\xE4 |0
+<U6838> \xAE\xD6 |0
+<U6839> \xAE\xDA |0
+<U683A> \xD1\xF2 |0
+<U683B> \xD1\xDE |0
+<U683C> \xAE\xE6 |0
+<U683D> \xAE\xE2 |0
+<U6840> \xAE\xE5 |0
+<U6841> \xAE\xEC |0
+<U6842> \xAE\xDB |0
+<U6843> \xAE\xE7 |0
+<U6844> \xD1\xE9 |0
+<U6845> \xAE\xE9 |0
+<U6846> \xAE\xD8 |0
+<U6848> \xAE\xD7 |0
+<U6849> \xD1\xDB |0
+<U684B> \xD1\xDF |0
+<U684C> \xAE\xE0 |0
+<U684D> \xD1\xF1 |0
+<U684E> \xD1\xE8 |0
+<U684F> \xD1\xE0 |0
+<U6850> \xAE\xE4 |0
+<U6851> \xAE\xE1 |0
+<U6853> \xAE\xD9 |0
+<U6854> \xAE\xDC |0
+<U686B> \xD5\xC4 |0
+<U686D> \xD5\xB4 |0
+<U686E> \xD5\xB5 |0
+<U686F> \xD5\xB9 |0
+<U6871> \xD5\xC8 |0
+<U6872> \xD5\xC5 |0
+<U6874> \xD5\xBE |0
+<U6875> \xD5\xBD |0
+<U6876> \xB1\xED |0
+<U6877> \xD5\xC1 |0
+<U6878> \xD5\xD0 |0
+<U6879> \xD5\xB0 |0
+<U687B> \xD5\xD1 |0
+<U687C> \xD5\xC3 |0
+<U687D> \xD5\xD5 |0
+<U687E> \xD5\xC9 |0
+<U687F> \xB1\xEC |0
+<U6880> \xD5\xC7 |0
+<U6881> \xB1\xE7 |0
+<U6882> \xB1\xFC |0
+<U6883> \xB1\xF2 |0
+<U6885> \xB1\xF6 |0
+<U6886> \xB1\xF5 |0
+<U6887> \xD5\xB1 |0
+<U6889> \xD5\xCE |0
+<U688A> \xD5\xD4 |0
+<U688B> \xD5\xCC |0
+<U688C> \xD5\xD3 |0
+<U688F> \xD5\xC0 |0
+<U6890> \xD5\xB2 |0
+<U6891> \xD5\xD2 |0
+<U6892> \xD5\xC2 |0
+<U6893> \xB1\xEA |0
+<U6894> \xB1\xF7 |0
+<U6896> \xD5\xCB |0
+<U6897> \xB1\xF0 |0
+<U689B> \xD5\xCA |0
+<U689C> \xD5\xB3 |0
+<U689D> \xB1\xF8 |0
+<U689F> \xB1\xFA |0
+<U68A0> \xD5\xCD |0
+<U68A1> \xB1\xFB |0
+<U68A2> \xB1\xE9 |0
+<U68A3> \xD5\xBA |0
+<U68A4> \xD5\xCF |0
+<U68A7> \xB1\xEF |0
+<U68A8> \xB1\xF9 |0
+<U68A9> \xD5\xBC |0
+<U68AA> \xD5\xC6 |0
+<U68AB> \xD5\xB7 |0
+<U68AC> \xD5\xBB |0
+<U68AD> \xB1\xF4 |0
+<U68AE> \xD5\xB6 |0
+<U68AF> \xB1\xE8 |0
+<U68B0> \xB1\xF1 |0
+<U68B1> \xB1\xEE |0
+<U68B2> \xD5\xBF |0
+<U68B3> \xAE\xDE |0
+<U68B4> \xD9\xC0 |0
+<U68B5> \xB1\xEB |0
+<U68C4> \xB1\xF3 |0
+<U68C6> \xD9\xC3 |0
+<U68C7> \xD9\xD9 |0
+<U68C8> \xD9\xCE |0
+<U68C9> \xB4\xD6 |0
+<U68CB> \xB4\xD1 |0
+<U68CC> \xD9\xBD |0
+<U68CD> \xB4\xD2 |0
+<U68CE> \xD9\xCD |0
+<U68D0> \xD9\xC6 |0
+<U68D1> \xD9\xD3 |0
+<U68D2> \xB4\xCE |0
+<U68D3> \xD9\xAB |0
+<U68D4> \xD9\xD5 |0
+<U68D5> \xB4\xC4 |0
+<U68D6> \xD9\xB3 |0
+<U68D7> \xB4\xC7 |0
+<U68D8> \xB4\xC6 |0
+<U68DA> \xB4\xD7 |0
+<U68DC> \xD9\xAD |0
+<U68DD> \xD9\xCF |0
+<U68DE> \xD9\xD0 |0
+<U68DF> \xB4\xC9 |0
+<U68E0> \xB4\xC5 |0
+<U68E1> \xD9\xBB |0
+<U68E3> \xB4\xD0 |0
+<U68E4> \xD9\xB6 |0
+<U68E6> \xD9\xD1 |0
+<U68E7> \xB4\xCC |0
+<U68E8> \xD9\xC9 |0
+<U68E9> \xD9\xD6 |0
+<U68EA> \xD9\xB0 |0
+<U68EB> \xD9\xB5 |0
+<U68EC> \xD9\xAF |0
+<U68EE> \xB4\xCB |0
+<U68EF> \xD9\xC2 |0
+<U68F0> \xDD\xDE |0
+<U68F1> \xD9\xB1 |0
+<U68F2> \xB4\xCF |0
+<U68F3> \xD9\xBA |0
+<U68F4> \xD9\xD2 |0
+<U68F5> \xB4\xCA |0
+<U68F6> \xD9\xB7 |0
+<U68F7> \xD9\xB4 |0
+<U68F8> \xD9\xC5 |0
+<U68F9> \xB4\xCD |0
+<U68FA> \xB4\xC3 |0
+<U68FB> \xB4\xD9 |0
+<U68FC> \xD9\xC8 |0
+<U68FD> \xD9\xC7 |0
+<U6904> \xD9\xAC |0
+<U6905> \xB4\xC8 |0
+<U6906> \xD9\xD4 |0
+<U6907> \xD9\xBC |0
+<U6908> \xD9\xBE |0
+<U690A> \xD9\xCB |0
+<U690B> \xD9\xCA |0
+<U690C> \xD9\xAA |0
+<U690D> \xB4\xD3 |0
+<U690E> \xB4\xD5 |0
+<U690F> \xD9\xB2 |0
+<U6910> \xD9\xB9 |0
+<U6911> \xD9\xC1 |0
+<U6912> \xB4\xD4 |0
+<U6913> \xD9\xB8 |0
+<U6914> \xD9\xC4 |0
+<U6915> \xD9\xD7 |0
+<U6917> \xD9\xCC |0
+<U6925> \xD9\xD8 |0
+<U692A> \xD9\xAE |0
+<U692F> \xDD\xF2 |0
+<U6930> \xB7\xA6 |0
+<U6932> \xDD\xF0 |0
+<U6933> \xDD\xDB |0
+<U6934> \xDD\xE0 |0
+<U6935> \xDD\xD9 |0
+<U6937> \xDD\xEC |0
+<U6938> \xDD\xCB |0
+<U6939> \xDD\xD2 |0
+<U693B> \xDD\xEA |0
+<U693C> \xDD\xF4 |0
+<U693D> \xDD\xDC |0
+<U693F> \xDD\xCF |0
+<U6940> \xDD\xE2 |0
+<U6941> \xDD\xE7 |0
+<U6942> \xDD\xD3 |0
+<U6944> \xDD\xE4 |0
+<U6945> \xDD\xD0 |0
+<U6948> \xDD\xD7 |0
+<U6949> \xDD\xD8 |0
+<U694A> \xB7\xA8 |0
+<U694B> \xDD\xEB |0
+<U694C> \xDD\xE9 |0
+<U694E> \xDD\xCC |0
+<U694F> \xDD\xEE |0
+<U6951> \xDD\xEF |0
+<U6952> \xDD\xF1 |0
+<U6953> \xB7\xAC |0
+<U6954> \xB7\xA4 |0
+<U6956> \xD5\xB8 |0
+<U6957> \xDD\xD4 |0
+<U6958> \xDD\xE6 |0
+<U6959> \xDD\xD5 |0
+<U695A> \xB7\xA1 |0
+<U695B> \xB7\xB1 |0
+<U695C> \xDD\xED |0
+<U695D> \xB7\xAF |0
+<U695E> \xB7\xAB |0
+<U695F> \xDD\xCA |0
+<U6960> \xB7\xA3 |0
+<U6962> \xDD\xCD |0
+<U6963> \xB7\xB0 |0
+<U6965> \xDD\xDD |0
+<U6966> \xDD\xC9 |0
+<U6968> \xB7\xA9 |0
+<U6969> \xDD\xE1 |0
+<U696A> \xDD\xD1 |0
+<U696B> \xB7\xAA |0
+<U696C> \xDD\xDA |0
+<U696D> \xB7\x7E |0
+<U696E> \xB4\xD8 |0
+<U696F> \xDD\xE3 |0
+<U6970> \xD9\xBF |0
+<U6971> \xDD\xCE |0
+<U6974> \xDD\xE8 |0
+<U6975> \xB7\xA5 |0
+<U6976> \xDD\xE5 |0
+<U6977> \xB7\xA2 |0
+<U6978> \xDD\xDF |0
+<U6979> \xB7\xAD |0
+<U697A> \xDD\xD6 |0
+<U697B> \xDD\xF3 |0
+<U6982> \xB7\xA7 |0
+<U6983> \xDE\xC6 |0
+<U6986> \xB7\xAE |0
+<U698D> \xE2\x4A |0
+<U698E> \xE2\x48 |0
+<U6990> \xE2\x5E |0
+<U6991> \xE2\x46 |0
+<U6993> \xE2\x58 |0
+<U6994> \xB7\x7D |0
+<U6995> \xBA\x5F |0
+<U6996> \xE2\x42 |0
+<U6997> \xE2\x5D |0
+<U6999> \xE2\x47 |0
+<U699A> \xE2\x55 |0
+<U699B> \xBA\x64 |0
+<U699C> \xBA\x5D |0
+<U699E> \xE2\x5B |0
+<U69A0> \xE2\x40 |0
+<U69A1> \xE2\x5A |0
+<U69A3> \xBA\x6F |0
+<U69A4> \xE2\x51 |0
+<U69A5> \xE2\x61 |0
+<U69A6> \xBA\x6D |0
+<U69A7> \xE2\x49 |0
+<U69A8> \xBA\x5E |0
+<U69A9> \xE2\x4B |0
+<U69AA> \xE2\x59 |0
+<U69AB> \xBA\x67 |0
+<U69AC> \xE2\x44 |0
+<U69AD> \xBA\x6B |0
+<U69AE> \xBA\x61 |0
+<U69AF> \xE2\x4D |0
+<U69B0> \xE2\x43 |0
+<U69B1> \xE1\xFC |0
+<U69B3> \xE2\x57 |0
+<U69B4> \xBA\x68 |0
+<U69B5> \xE2\x60 |0
+<U69B6> \xE1\xFD |0
+<U69B7> \xBA\x65 |0
+<U69B9> \xE2\x53 |0
+<U69BB> \xBA\x66 |0
+<U69BC> \xE2\x45 |0
+<U69BD> \xE2\x50 |0
+<U69BE> \xE2\x4C |0
+<U69BF> \xE2\x4E |0
+<U69C1> \xBA\x60 |0
+<U69C2> \xE2\x5F |0
+<U69C3> \xBA\x6E |0
+<U69C4> \xE2\x4F |0
+<U69C6> \xE2\x62 |0
+<U69C9> \xE1\xFE |0
+<U69CA> \xE2\x54 |0
+<U69CB> \xBA\x63 |0
+<U69CC> \xBA\x6C |0
+<U69CD> \xBA\x6A |0
+<U69CE> \xE2\x41 |0
+<U69CF> \xE2\x56 |0
+<U69D0> \xBA\x69 |0
+<U69D3> \xBA\x62 |0
+<U69D4> \xE2\x52 |0
+<U69D9> \xE2\x5C |0
+<U69E2> \xE5\xD5 |0
+<U69E4> \xE5\xD1 |0
+<U69E5> \xE5\xCD |0
+<U69E6> \xE5\xE1 |0
+<U69E7> \xE5\xDE |0
+<U69E8> \xBC\xCD |0
+<U69EB> \xE5\xE5 |0
+<U69EC> \xE5\xD4 |0
+<U69ED> \xBC\xD8 |0
+<U69EE> \xE5\xDB |0
+<U69F1> \xE5\xD0 |0
+<U69F2> \xE5\xDA |0
+<U69F3> \xBC\xD5 |0
+<U69F4> \xE5\xEE |0
+<U69F6> \xE5\xEB |0
+<U69F7> \xE5\xDD |0
+<U69F8> \xE5\xCE |0
+<U69FB> \xE5\xE2 |0
+<U69FC> \xE5\xE4 |0
+<U69FD> \xBC\xD1 |0
+<U69FE> \xE5\xD8 |0
+<U69FF> \xE5\xD3 |0
+<U6A00> \xE5\xCA |0
+<U6A01> \xBC\xCE |0
+<U6A02> \xBC\xD6 |0
+<U6A04> \xE5\xE7 |0
+<U6A05> \xBC\xD7 |0
+<U6A06> \xE5\xCB |0
+<U6A07> \xE5\xED |0
+<U6A08> \xE5\xE0 |0
+<U6A09> \xE5\xE6 |0
+<U6A0A> \xBC\xD4 |0
+<U6A0D> \xE5\xE3 |0
+<U6A0F> \xE5\xEA |0
+<U6A11> \xBC\xD9 |0
+<U6A13> \xBC\xD3 |0
+<U6A14> \xE5\xDC |0
+<U6A15> \xE5\xCF |0
+<U6A16> \xE5\xEF |0
+<U6A17> \xE5\xCC |0
+<U6A18> \xE5\xE8 |0
+<U6A19> \xBC\xD0 |0
+<U6A1B> \xE5\xD6 |0
+<U6A1D> \xE5\xD7 |0
+<U6A1E> \xBC\xCF |0
+<U6A1F> \xBC\xCC |0
+<U6A20> \xE5\xD2 |0
+<U6A21> \xBC\xD2 |0
+<U6A23> \xBC\xCB |0
+<U6A25> \xE5\xE9 |0
+<U6A26> \xE5\xEC |0
+<U6A27> \xE5\xD9 |0
+<U6A28> \xE9\xCA |0
+<U6A32> \xE9\xC2 |0
+<U6A34> \xE9\xBE |0
+<U6A35> \xBE\xF6 |0
+<U6A38> \xBE\xEB |0
+<U6A39> \xBE\xF0 |0
+<U6A3A> \xBE\xEC |0
+<U6A3B> \xE9\xCC |0
+<U6A3C> \xE9\xD7 |0
+<U6A3D> \xBE\xEA |0
+<U6A3E> \xE9\xC4 |0
+<U6A3F> \xE9\xCD |0
+<U6A40> \xE5\xDF |0
+<U6A41> \xE9\xCE |0
+<U6A44> \xBE\xF1 |0
+<U6A46> \xE9\xDD |0
+<U6A47> \xBE\xF5 |0
+<U6A48> \xBE\xF8 |0
+<U6A49> \xE9\xC0 |0
+<U6A4B> \xBE\xF4 |0
+<U6A4D> \xE9\xDB |0
+<U6A4E> \xE9\xDC |0
+<U6A4F> \xE9\xD2 |0
+<U6A50> \xE9\xD1 |0
+<U6A51> \xE9\xC9 |0
+<U6A54> \xE9\xD3 |0
+<U6A55> \xE9\xDA |0
+<U6A56> \xE9\xD9 |0
+<U6A58> \xBE\xEF |0
+<U6A59> \xBE\xED |0
+<U6A5A> \xE9\xCB |0
+<U6A5B> \xE9\xC8 |0
+<U6A5D> \xE9\xC5 |0
+<U6A5E> \xE9\xD8 |0
+<U6A5F> \xBE\xF7 |0
+<U6A60> \xE9\xD6 |0
+<U6A61> \xBE\xF3 |0
+<U6A62> \xBE\xF2 |0
+<U6A64> \xE9\xD0 |0
+<U6A66> \xE9\xBF |0
+<U6A67> \xE9\xC1 |0
+<U6A68> \xE9\xC3 |0
+<U6A69> \xE9\xD5 |0
+<U6A6A> \xE9\xCF |0
+<U6A6B> \xBE\xEE |0
+<U6A6D> \xE9\xC6 |0
+<U6A6F> \xE9\xD4 |0
+<U6A76> \xE9\xC7 |0
+<U6A7E> \xC0\xCF |0
+<U6A7F> \xED\x45 |0
+<U6A80> \xC0\xC8 |0
+<U6A81> \xEC\xF5 |0
+<U6A83> \xED\x41 |0
+<U6A84> \xC0\xCA |0
+<U6A85> \xED\x48 |0
+<U6A87> \xEC\xFC |0
+<U6A89> \xEC\xF7 |0
+<U6A8C> \xED\x49 |0
+<U6A8D> \xEC\xF3 |0
+<U6A8E> \xEC\xFE |0
+<U6A90> \xC0\xD1 |0
+<U6A91> \xED\x44 |0
+<U6A92> \xED\x4A |0
+<U6A93> \xEC\xFD |0
+<U6A94> \xC0\xC9 |0
+<U6A95> \xED\x40 |0
+<U6A96> \xEC\xF4 |0
+<U6A97> \xC0\xD0 |0
+<U6A9A> \xED\x47 |0
+<U6A9B> \xEC\xF9 |0
+<U6A9C> \xC0\xCC |0
+<U6A9E> \xEC\xFB |0
+<U6A9F> \xEC\xF8 |0
+<U6AA0> \xC0\xD2 |0
+<U6AA1> \xEC\xFA |0
+<U6AA2> \xC0\xCB |0
+<U6AA3> \xC0\xCE |0
+<U6AA4> \xED\x43 |0
+<U6AA5> \xEC\xF6 |0
+<U6AA6> \xED\x46 |0
+<U6AA8> \xED\x42 |0
+<U6AAC> \xC2\x63 |0
+<U6AAD> \xEF\xE7 |0
+<U6AAE> \xC2\x68 |0
+<U6AAF> \xC2\x69 |0
+<U6AB3> \xC2\x62 |0
+<U6AB4> \xEF\xE6 |0
+<U6AB6> \xEF\xE3 |0
+<U6AB7> \xEF\xE4 |0
+<U6AB8> \xC2\x66 |0
+<U6AB9> \xEF\xDE |0
+<U6ABA> \xEF\xE2 |0
+<U6ABB> \xC2\x65 |0
+<U6ABD> \xEF\xDF |0
+<U6AC2> \xC2\x67 |0
+<U6AC3> \xC2\x64 |0
+<U6AC5> \xEF\xDD |0
+<U6AC6> \xEF\xE1 |0
+<U6AC7> \xEF\xE5 |0
+<U6ACB> \xF2\x51 |0
+<U6ACC> \xF2\x4E |0
+<U6ACD> \xF2\x57 |0
+<U6ACF> \xF2\x56 |0
+<U6AD0> \xF2\x54 |0
+<U6AD1> \xF2\x4F |0
+<U6AD3> \xC3\x72 |0
+<U6AD9> \xF2\x50 |0
+<U6ADA> \xC3\x71 |0
+<U6ADB> \xC0\xCD |0
+<U6ADC> \xF2\x53 |0
+<U6ADD> \xC3\x70 |0
+<U6ADE> \xF2\x58 |0
+<U6ADF> \xF2\x52 |0
+<U6AE0> \xF2\x4D |0
+<U6AE1> \xEF\xE0 |0
+<U6AE5> \xC3\x6F |0
+<U6AE7> \xF2\x4C |0
+<U6AE8> \xF4\x56 |0
+<U6AEA> \xF4\x55 |0
+<U6AEB> \xF2\x55 |0
+<U6AEC> \xC4\x68 |0
+<U6AEE> \xF4\x59 |0
+<U6AEF> \xF4\x5A |0
+<U6AF0> \xF4\x54 |0
+<U6AF1> \xF4\x58 |0
+<U6AF3> \xF4\x53 |0
+<U6AF8> \xF5\xD1 |0
+<U6AF9> \xF4\x57 |0
+<U6AFA> \xC4\xE7 |0
+<U6AFB> \xC4\xE5 |0
+<U6AFC> \xF5\xCF |0
+<U6B00> \xF5\xD2 |0
+<U6B02> \xF5\xCE |0
+<U6B03> \xF5\xD0 |0
+<U6B04> \xC4\xE6 |0
+<U6B08> \xF6\xE5 |0
+<U6B09> \xF6\xE6 |0
+<U6B0A> \xC5\x76 |0
+<U6B0B> \xF6\xE4 |0
+<U6B0F> \xF7\xE2 |0
+<U6B10> \xC5\xCF |0
+<U6B11> \xF7\xE0 |0
+<U6B12> \xF7\xE1 |0
+<U6B13> \xF8\xAC |0
+<U6B16> \xC6\x56 |0
+<U6B17> \xF8\xF3 |0
+<U6B18> \xF8\xF1 |0
+<U6B19> \xF8\xF2 |0
+<U6B1A> \xF8\xF4 |0
+<U6B1E> \xF9\xBB |0
+<U6B20> \xA4\xED |0
+<U6B21> \xA6\xB8 |0
+<U6B23> \xAA\x59 |0
+<U6B25> \xCC\xE9 |0
+<U6B28> \xCF\x64 |0
+<U6B2C> \xD1\xF5 |0
+<U6B2D> \xD1\xF7 |0
+<U6B2F> \xD1\xF6 |0
+<U6B31> \xD1\xF8 |0
+<U6B32> \xB1\xFD |0
+<U6B33> \xD5\xD7 |0
+<U6B34> \xD1\xF9 |0
+<U6B36> \xD5\xD6 |0
+<U6B37> \xD5\xD8 |0
+<U6B38> \xD5\xD9 |0
+<U6B39> \xD9\xDA |0
+<U6B3A> \xB4\xDB |0
+<U6B3B> \xD9\xDB |0
+<U6B3C> \xD9\xDD |0
+<U6B3D> \xB4\xDC |0
+<U6B3E> \xB4\xDA |0
+<U6B3F> \xD9\xDC |0
+<U6B41> \xDD\xFA |0
+<U6B42> \xDD\xF8 |0
+<U6B43> \xDD\xF7 |0
+<U6B45> \xDD\xF6 |0
+<U6B46> \xDD\xF5 |0
+<U6B47> \xB7\xB2 |0
+<U6B48> \xDD\xF9 |0
+<U6B49> \xBA\x70 |0
+<U6B4A> \xE2\x63 |0
+<U6B4B> \xE2\x65 |0
+<U6B4C> \xBA\x71 |0
+<U6B4D> \xE2\x64 |0
+<U6B4E> \xBC\xDB |0
+<U6B50> \xBC\xDA |0
+<U6B51> \xE5\xF0 |0
+<U6B54> \xE9\xDF |0
+<U6B55> \xE9\xDE |0
+<U6B56> \xE9\xE0 |0
+<U6B59> \xBE\xF9 |0
+<U6B5B> \xED\x4B |0
+<U6B5C> \xC0\xD3 |0
+<U6B5E> \xEF\xE8 |0
+<U6B5F> \xC2\x6A |0
+<U6B60> \xF2\x59 |0
+<U6B61> \xC5\x77 |0
+<U6B62> \xA4\xEE |0
+<U6B63> \xA5\xBF |0
+<U6B64> \xA6\xB9 |0
+<U6B65> \xA8\x42 |0
+<U6B66> \xAA\x5A |0
+<U6B67> \xAA\x5B |0
+<U6B6A> \xAC\x6E |0
+<U6B6D> \xD1\xFA |0
+<U6B72> \xB7\xB3 |0
+<U6B76> \xE6\xD1 |0
+<U6B77> \xBE\xFA |0
+<U6B78> \xC2\x6B |0
+<U6B79> \xA4\xEF |0
+<U6B7B> \xA6\xBA |0
+<U6B7E> \xCC\xEB |0
+<U6B7F> \xAA\x5C |0
+<U6B80> \xCC\xEA |0
+<U6B82> \xCF\x65 |0
+<U6B83> \xAC\x6F |0
+<U6B84> \xCF\x66 |0
+<U6B86> \xAC\x70 |0
+<U6B88> \xD1\xFC |0
+<U6B89> \xAE\xEE |0
+<U6B8A> \xAE\xED |0
+<U6B8C> \xD5\xDE |0
+<U6B8D> \xD5\xDC |0
+<U6B8E> \xD5\xDD |0
+<U6B8F> \xD5\xDB |0
+<U6B91> \xD5\xDA |0
+<U6B94> \xD9\xDE |0
+<U6B95> \xD9\xE1 |0
+<U6B96> \xB4\xDE |0
+<U6B97> \xD9\xDF |0
+<U6B98> \xB4\xDD |0
+<U6B99> \xD9\xE0 |0
+<U6B9B> \xDD\xFB |0
+<U6B9E> \xE2\x66 |0
+<U6B9F> \xE2\x67 |0
+<U6BA0> \xE2\x68 |0
+<U6BA2> \xE5\xF3 |0
+<U6BA3> \xE5\xF2 |0
+<U6BA4> \xBC\xDC |0
+<U6BA5> \xE5\xF1 |0
+<U6BA6> \xE5\xF4 |0
+<U6BA7> \xE9\xE1 |0
+<U6BAA> \xE9\xE2 |0
+<U6BAB> \xE9\xE3 |0
+<U6BAD> \xED\x4C |0
+<U6BAE> \xC0\xD4 |0
+<U6BAF> \xC2\x6C |0
+<U6BB0> \xF2\x5A |0
+<U6BB2> \xC4\xE8 |0
+<U6BB3> \xC9\x5F |0
+<U6BB5> \xAC\x71 |0
+<U6BB6> \xCF\x67 |0
+<U6BB7> \xAE\xEF |0
+<U6BBA> \xB1\xFE |0
+<U6BBC> \xB4\xDF |0
+<U6BBD> \xD9\xE2 |0
+<U6BBF> \xB7\xB5 |0
+<U6BC0> \xB7\xB4 |0
+<U6BC3> \xE2\x69 |0
+<U6BC4> \xE2\x6A |0
+<U6BC5> \xBC\xDD |0
+<U6BC6> \xBC\xDE |0
+<U6BC7> \xE9\xE5 |0
+<U6BC8> \xE9\xE4 |0
+<U6BC9> \xEF\xE9 |0
+<U6BCA> \xF7\xE3 |0
+<U6BCB> \xA4\xF0 |0
+<U6BCC> \xC9\x60 |0
+<U6BCD> \xA5\xC0 |0
+<U6BCF> \xA8\x43 |0
+<U6BD0> \xCB\x48 |0
+<U6BD2> \xAC\x72 |0
+<U6BD3> \xB7\xB6 |0
+<U6BD4> \xA4\xF1 |0
+<U6BD6> \xCF\x68 |0
+<U6BD7> \xAC\x73 |0
+<U6BD8> \xCF\x69 |0
+<U6BDA> \xC0\xD5 |0
+<U6BDB> \xA4\xF2 |0
+<U6BDE> \xCC\xEC |0
+<U6BE0> \xCF\x6A |0
+<U6BE2> \xD2\x42 |0
+<U6BE3> \xD2\x41 |0
+<U6BE4> \xD1\xFE |0
+<U6BE6> \xD1\xFD |0
+<U6BE7> \xD2\x43 |0
+<U6BE8> \xD2\x40 |0
+<U6BEB> \xB2\x40 |0
+<U6BEC> \xB2\x41 |0
+<U6BEF> \xB4\xE0 |0
+<U6BF0> \xD9\xE3 |0
+<U6BF2> \xD9\xE4 |0
+<U6BF3> \xD9\xE5 |0
+<U6BF7> \xDE\x41 |0
+<U6BF8> \xDE\x42 |0
+<U6BF9> \xDE\x40 |0
+<U6BFB> \xDD\xFD |0
+<U6BFC> \xDD\xFE |0
+<U6BFD> \xB7\xB7 |0
+<U6BFE> \xE2\x6B |0
+<U6BFF> \xE5\xF7 |0
+<U6C00> \xE5\xF6 |0
+<U6C01> \xE5\xF5 |0
+<U6C02> \xE5\xF8 |0
+<U6C03> \xE9\xE7 |0
+<U6C04> \xE9\xE6 |0
+<U6C05> \xBE\xFB |0
+<U6C06> \xE9\xE8 |0
+<U6C08> \xC0\xD6 |0
+<U6C09> \xED\x4D |0
+<U6C0B> \xEF\xEA |0
+<U6C0C> \xF2\x5B |0
+<U6C0D> \xF6\xE7 |0
+<U6C0F> \xA4\xF3 |0
+<U6C10> \xA5\xC2 |0
+<U6C11> \xA5\xC1 |0
+<U6C13> \xAA\x5D |0
+<U6C14> \xC9\x61 |0
+<U6C15> \xC9\x7E |0
+<U6C16> \xA6\xBB |0
+<U6C18> \xC9\xF7 |0
+<U6C19> \xCB\x49 |0
+<U6C1A> \xCB\x4A |0
+<U6C1B> \xAA\x5E |0
+<U6C1D> \xCC\xED |0
+<U6C1F> \xAC\x74 |0
+<U6C20> \xCF\x6B |0
+<U6C21> \xCF\x6C |0
+<U6C23> \xAE\xF0 |0
+<U6C24> \xAE\xF4 |0
+<U6C25> \xD2\x44 |0
+<U6C26> \xAE\xF3 |0
+<U6C27> \xAE\xF1 |0
+<U6C28> \xAE\xF2 |0
+<U6C2A> \xD5\xDF |0
+<U6C2B> \xB2\x42 |0
+<U6C2C> \xB4\xE3 |0
+<U6C2E> \xB4\xE1 |0
+<U6C2F> \xB4\xE2 |0
+<U6C30> \xD9\xE6 |0
+<U6C33> \xBA\x72 |0
+<U6C34> \xA4\xF4 |0
+<U6C36> \xC9\xA1 |0
+<U6C38> \xA5\xC3 |0
+<U6C3B> \xC9\xA4 |0
+<U6C3E> \xA5\xC6 |0
+<U6C3F> \xC9\xA3 |0
+<U6C40> \xA5\xC5 |0
+<U6C41> \xA5\xC4 |0
+<U6C42> \xA8\x44 |0
+<U6C43> \xC9\xA2 |0
+<U6C46> \xC9\xF8 |0
+<U6C4A> \xC9\xFC |0
+<U6C4B> \xC9\xFE |0
+<U6C4C> \xCA\x40 |0
+<U6C4D> \xA6\xC5 |0
+<U6C4E> \xA6\xC6 |0
+<U6C4F> \xC9\xFB |0
+<U6C50> \xA6\xC1 |0
+<U6C52> \xC9\xF9 |0
+<U6C54> \xC9\xFD |0
+<U6C55> \xA6\xC2 |0
+<U6C57> \xA6\xBD |0
+<U6C59> \xA6\xBE |0
+<U6C5B> \xA6\xC4 |0
+<U6C5C> \xC9\xFA |0
+<U6C5D> \xA6\xBC |0
+<U6C5E> \xA8\x45 |0
+<U6C5F> \xA6\xBF |0
+<U6C60> \xA6\xC0 |0
+<U6C61> \xA6\xC3 |0
+<U6C65> \xCB\x5B |0
+<U6C66> \xCB\x59 |0
+<U6C67> \xCB\x4C |0
+<U6C68> \xA8\x51 |0
+<U6C69> \xCB\x53 |0
+<U6C6A> \xA8\x4C |0
+<U6C6B> \xCB\x4D |0
+<U6C6D> \xCB\x55 |0
+<U6C6F> \xCB\x52 |0
+<U6C70> \xA8\x4F |0
+<U6C71> \xCB\x51 |0
+<U6C72> \xA8\x56 |0
+<U6C73> \xCB\x5A |0
+<U6C74> \xA8\x58 |0
+<U6C76> \xA8\x5A |0
+<U6C78> \xCB\x4B |0
+<U6C7A> \xA8\x4D |0
+<U6C7B> \xCB\x5C |0
+<U6C7D> \xA8\x54 |0
+<U6C7E> \xA8\x57 |0
+<U6C80> \xCD\x45 |0
+<U6C81> \xA8\x47 |0
+<U6C82> \xA8\x5E |0
+<U6C83> \xA8\x55 |0
+<U6C84> \xCB\x4E |0
+<U6C85> \xA8\x4A |0
+<U6C86> \xA8\x59 |0
+<U6C87> \xCB\x56 |0
+<U6C88> \xA8\x48 |0
+<U6C89> \xA8\x49 |0
+<U6C8A> \xCD\x43 |0
+<U6C8B> \xCB\x4F |0
+<U6C8C> \xA8\x50 |0
+<U6C8D> \xA8\x5B |0
+<U6C8E> \xCB\x5D |0
+<U6C8F> \xCB\x50 |0
+<U6C90> \xA8\x4E |0
+<U6C92> \xA8\x53 |0
+<U6C93> \xCC\xEE |0
+<U6C94> \xA8\x5C |0
+<U6C95> \xCB\x57 |0
+<U6C96> \xA8\x52 |0
+<U6C98> \xA8\x5D |0
+<U6C99> \xA8\x46 |0
+<U6C9A> \xCB\x54 |0
+<U6C9B> \xA8\x4B |0
+<U6C9C> \xCB\x58 |0
+<U6C9D> \xCD\x44 |0
+<U6CAB> \xAA\x6A |0
+<U6CAC> \xAA\x7A |0
+<U6CAD> \xCC\xF5 |0
+<U6CAE> \xAA\x71 |0
+<U6CB0> \xCD\x4B |0
+<U6CB1> \xAA\x62 |0
+<U6CB3> \xAA\x65 |0
+<U6CB4> \xCD\x42 |0
+<U6CB6> \xCC\xF3 |0
+<U6CB7> \xCC\xF7 |0
+<U6CB8> \xAA\x6D |0
+<U6CB9> \xAA\x6F |0
+<U6CBA> \xCC\xFA |0
+<U6CBB> \xAA\x76 |0
+<U6CBC> \xAA\x68 |0
+<U6CBD> \xAA\x66 |0
+<U6CBE> \xAA\x67 |0
+<U6CBF> \xAA\x75 |0
+<U6CC0> \xCD\x47 |0
+<U6CC1> \xAA\x70 |0
+<U6CC2> \xCC\xF9 |0
+<U6CC3> \xCC\xFB |0
+<U6CC4> \xAA\x6E |0
+<U6CC5> \xAA\x73 |0
+<U6CC6> \xCC\xFC |0
+<U6CC7> \xCD\x4A |0
+<U6CC9> \xAC\x75 |0
+<U6CCA> \xAA\x79 |0
+<U6CCC> \xAA\x63 |0
+<U6CCD> \xCD\x49 |0
+<U6CCF> \xCD\x4D |0
+<U6CD0> \xCC\xF8 |0
+<U6CD1> \xCD\x4F |0
+<U6CD2> \xCD\x40 |0
+<U6CD3> \xAA\x6C |0
+<U6CD4> \xCC\xF4 |0
+<U6CD5> \xAA\x6B |0
+<U6CD6> \xAA\x7D |0
+<U6CD7> \xAA\x72 |0
+<U6CD9> \xCC\xF2 |0
+<U6CDA> \xCF\x75 |0
+<U6CDB> \xAA\x78 |0
+<U6CDC> \xAA\x7C |0
+<U6CDD> \xCD\x41 |0
+<U6CDE> \xCD\x46 |0
+<U6CE0> \xAA\x7E |0
+<U6CE1> \xAA\x77 |0
+<U6CE2> \xAA\x69 |0
+<U6CE3> \xAA\x5F |0
+<U6CE5> \xAA\x64 |0
+<U6CE7> \xCC\xF6 |0
+<U6CE8> \xAA\x60 |0
+<U6CE9> \xCD\x4E |0
+<U6CEB> \xCC\xF0 |0
+<U6CEC> \xCC\xEF |0
+<U6CED> \xCC\xFD |0
+<U6CEE> \xCC\xF1 |0
+<U6CEF> \xAA\x7B |0
+<U6CF0> \xAE\xF5 |0
+<U6CF1> \xAA\x74 |0
+<U6CF2> \xCC\xFE |0
+<U6CF3> \xAA\x61 |0
+<U6CF5> \xAC\xA6 |0
+<U6CF9> \xCD\x4C |0
+<U6D00> \xCF\x7C |0
+<U6D01> \xCF\xA1 |0
+<U6D03> \xCF\xA4 |0
+<U6D04> \xCF\x77 |0
+<U6D07> \xCF\xA7 |0
+<U6D08> \xCF\xAA |0
+<U6D09> \xCF\xAC |0
+<U6D0A> \xCF\x74 |0
+<U6D0B> \xAC\x76 |0
+<U6D0C> \xAC\x7B |0
+<U6D0D> \xD2\x49 |0
+<U6D0E> \xAC\xAD |0
+<U6D0F> \xCF\xA5 |0
+<U6D10> \xCF\xAD |0
+<U6D11> \xCF\x7B |0
+<U6D12> \xCF\x73 |0
+<U6D16> \xD2\x64 |0
+<U6D17> \xAC\x7E |0
+<U6D18> \xCF\xA2 |0
+<U6D19> \xCF\x78 |0
+<U6D1A> \xCF\x7A |0
+<U6D1B> \xAC\xA5 |0
+<U6D1D> \xCF\x7D |0
+<U6D1E> \xAC\x7D |0
+<U6D1F> \xCF\x70 |0
+<U6D20> \xCF\xA8 |0
+<U6D22> \xCF\xAB |0
+<U6D25> \xAC\x7A |0
+<U6D27> \xAC\xA8 |0
+<U6D28> \xCF\x6D |0
+<U6D29> \xAC\xAA |0
+<U6D2A> \xAC\x78 |0
+<U6D2B> \xAC\xAE |0
+<U6D2C> \xCF\xA9 |0
+<U6D2D> \xCF\x6F |0
+<U6D2E> \xAC\xAB |0
+<U6D2F> \xD2\x5E |0
+<U6D30> \xCD\x48 |0
+<U6D31> \xAC\x7C |0
+<U6D32> \xAC\x77 |0
+<U6D33> \xCF\x76 |0
+<U6D34> \xCF\x6E |0
+<U6D35> \xAC\xAC |0
+<U6D36> \xAC\xA4 |0
+<U6D37> \xCF\xA3 |0
+<U6D38> \xAC\xA9 |0
+<U6D39> \xAC\xA7 |0
+<U6D3A> \xCF\x79 |0
+<U6D3B> \xAC\xA1 |0
+<U6D3C> \xCF\x71 |0
+<U6D3D> \xAC\xA2 |0
+<U6D3E> \xAC\xA3 |0
+<U6D3F> \xCF\x72 |0
+<U6D40> \xCF\xA6 |0
+<U6D41> \xAC\x79 |0
+<U6D42> \xCF\x7E |0
+<U6D58> \xD2\x4C |0
+<U6D59> \xAE\xFD |0
+<U6D5A> \xAF\x43 |0
+<U6D5E> \xD2\x55 |0
+<U6D5F> \xD2\x5B |0
+<U6D60> \xD2\x57 |0
+<U6D61> \xD2\x4A |0
+<U6D62> \xD2\x4D |0
+<U6D63> \xD2\x46 |0
+<U6D64> \xD2\x47 |0
+<U6D65> \xAF\x4A |0
+<U6D66> \xAE\xFA |0
+<U6D67> \xD2\x56 |0
+<U6D68> \xD2\x5F |0
+<U6D69> \xAF\x45 |0
+<U6D6A> \xAE\xF6 |0
+<U6D6C> \xAF\x40 |0
+<U6D6D> \xD2\x4E |0
+<U6D6E> \xAF\x42 |0
+<U6D6F> \xD2\x4F |0
+<U6D70> \xD2\x59 |0
+<U6D74> \xAF\x44 |0
+<U6D75> \xD2\x68 |0
+<U6D76> \xD2\x48 |0
+<U6D77> \xAE\xFC |0
+<U6D78> \xAE\xFB |0
+<U6D79> \xAF\x48 |0
+<U6D7A> \xD2\x45 |0
+<U6D7B> \xD2\x66 |0
+<U6D7C> \xD2\x5A |0
+<U6D7D> \xD2\x67 |0
+<U6D7E> \xD2\x61 |0
+<U6D7F> \xD2\x53 |0
+<U6D80> \xD2\x62 |0
+<U6D82> \xD2\x5C |0
+<U6D83> \xD2\x65 |0
+<U6D84> \xD2\x63 |0
+<U6D85> \xAF\x49 |0
+<U6D86> \xD2\x54 |0
+<U6D87> \xAE\xF9 |0
+<U6D88> \xAE\xF8 |0
+<U6D89> \xAF\x41 |0
+<U6D8A> \xAF\x47 |0
+<U6D8B> \xD2\x60 |0
+<U6D8C> \xAF\x46 |0
+<U6D8D> \xD2\x51 |0
+<U6D8E> \xB2\x43 |0
+<U6D90> \xD2\x69 |0
+<U6D91> \xD2\x50 |0
+<U6D92> \xD2\x4B |0
+<U6D93> \xAE\xFE |0
+<U6D94> \xAF\x4B |0
+<U6D95> \xAE\xF7 |0
+<U6D97> \xD2\x58 |0
+<U6D98> \xD2\x5D |0
+<U6DAA> \xB2\x65 |0
+<U6DAB> \xD5\xE1 |0
+<U6DAC> \xD5\xE5 |0
+<U6DAE> \xB2\x52 |0
+<U6DAF> \xB2\x50 |0
+<U6DB2> \xB2\x47 |0
+<U6DB3> \xD5\xE3 |0
+<U6DB4> \xD5\xE2 |0
+<U6DB5> \xB2\x5B |0
+<U6DB7> \xD5\xE8 |0
+<U6DB8> \xB2\x55 |0
+<U6DBA> \xD5\xFA |0
+<U6DBB> \xD6\x47 |0
+<U6DBC> \xB2\x44 |0
+<U6DBD> \xD5\xF7 |0
+<U6DBE> \xD5\xF0 |0
+<U6DBF> \xB2\x67 |0
+<U6DC0> \xD5\xE0 |0
+<U6DC2> \xD5\xFC |0
+<U6DC4> \xB2\x64 |0
+<U6DC5> \xB2\x58 |0
+<U6DC6> \xB2\x63 |0
+<U6DC7> \xB2\x4E |0
+<U6DC8> \xD5\xEC |0
+<U6DC9> \xD5\xFE |0
+<U6DCA> \xD5\xF6 |0
+<U6DCB> \xB2\x4F |0
+<U6DCC> \xB2\x49 |0
+<U6DCD> \xD6\x45 |0
+<U6DCF> \xD5\xFD |0
+<U6DD0> \xD6\x40 |0
+<U6DD1> \xB2\x51 |0
+<U6DD2> \xB2\x59 |0
+<U6DD3> \xD6\x42 |0
+<U6DD4> \xD5\xEA |0
+<U6DD5> \xD5\xFB |0
+<U6DD6> \xD5\xEF |0
+<U6DD7> \xD6\x44 |0
+<U6DD8> \xB2\x5E |0
+<U6DD9> \xB2\x46 |0
+<U6DDA> \xB2\x5C |0
+<U6DDB> \xD5\xF4 |0
+<U6DDC> \xD5\xF2 |0
+<U6DDD> \xD5\xF3 |0
+<U6DDE> \xB2\x53 |0
+<U6DDF> \xD5\xEE |0
+<U6DE0> \xD5\xED |0
+<U6DE1> \xB2\x48 |0
+<U6DE2> \xD5\xE7 |0
+<U6DE3> \xD6\x46 |0
+<U6DE4> \xB2\x4A |0
+<U6DE5> \xD5\xF1 |0
+<U6DE6> \xB2\x68 |0
+<U6DE8> \xB2\x62 |0
+<U6DE9> \xD5\xE6 |0
+<U6DEA> \xB2\x5F |0
+<U6DEB> \xB2\x5D |0
+<U6DEC> \xB2\x66 |0
+<U6DED> \xD5\xF8 |0
+<U6DEE> \xB2\x61 |0
+<U6DEF> \xD2\x52 |0
+<U6DF0> \xD5\xF9 |0
+<U6DF1> \xB2\x60 |0
+<U6DF2> \xD6\x41 |0
+<U6DF3> \xB2\x45 |0
+<U6DF4> \xD5\xF5 |0
+<U6DF5> \xB2\x57 |0
+<U6DF6> \xD5\xE9 |0
+<U6DF7> \xB2\x56 |0
+<U6DF9> \xB2\x54 |0
+<U6DFA> \xB2\x4C |0
+<U6DFB> \xB2\x4B |0
+<U6DFC> \xD9\xE7 |0
+<U6DFD> \xD6\x43 |0
+<U6E00> \xD5\xEB |0
+<U6E03> \xD9\xFC |0
+<U6E05> \xB2\x4D |0
+<U6E19> \xB5\x41 |0
+<U6E1A> \xB2\x5A |0
+<U6E1B> \xB4\xEE |0
+<U6E1C> \xD9\xF6 |0
+<U6E1D> \xB4\xFC |0
+<U6E1F> \xD9\xEA |0
+<U6E20> \xB4\xEB |0
+<U6E21> \xB4\xE7 |0
+<U6E22> \xDA\x49 |0
+<U6E23> \xB4\xED |0
+<U6E24> \xB4\xF1 |0
+<U6E25> \xB4\xEC |0
+<U6E26> \xB4\xF5 |0
+<U6E27> \xDA\x4D |0
+<U6E28> \xDA\x44 |0
+<U6E2B> \xD9\xF1 |0
+<U6E2C> \xB4\xFA |0
+<U6E2D> \xB4\xF4 |0
+<U6E2E> \xD9\xFD |0
+<U6E2F> \xB4\xE4 |0
+<U6E30> \xDA\x4A |0
+<U6E31> \xDA\x43 |0
+<U6E32> \xB4\xE8 |0
+<U6E33> \xD9\xF7 |0
+<U6E34> \xB4\xF7 |0
+<U6E35> \xDA\x55 |0
+<U6E36> \xDA\x56 |0
+<U6E38> \xB4\xE5 |0
+<U6E39> \xDA\x48 |0
+<U6E3A> \xB4\xF9 |0
+<U6E3B> \xD9\xFB |0
+<U6E3C> \xD9\xED |0
+<U6E3D> \xD9\xEE |0
+<U6E3E> \xB4\xFD |0
+<U6E3F> \xD9\xF2 |0
+<U6E40> \xD9\xF9 |0
+<U6E41> \xD9\xF3 |0
+<U6E43> \xB4\xFB |0
+<U6E44> \xB5\x44 |0
+<U6E45> \xD9\xEF |0
+<U6E46> \xD9\xE8 |0
+<U6E47> \xD9\xE9 |0
+<U6E49> \xD9\xEB |0
+<U6E4A> \xB4\xEA |0
+<U6E4B> \xD9\xF8 |0
+<U6E4D> \xB4\xF8 |0
+<U6E4E> \xB5\x42 |0
+<U6E51> \xD9\xFA |0
+<U6E52> \xDA\x53 |0
+<U6E53> \xDA\x4B |0
+<U6E54> \xB4\xE6 |0
+<U6E55> \xDA\x51 |0
+<U6E56> \xB4\xF2 |0
+<U6E58> \xB4\xF0 |0
+<U6E5A> \xDA\x57 |0
+<U6E5B> \xB4\xEF |0
+<U6E5C> \xDA\x41 |0
+<U6E5D> \xD9\xF4 |0
+<U6E5E> \xD9\xFE |0
+<U6E5F> \xB5\x47 |0
+<U6E60> \xDA\x45 |0
+<U6E61> \xDA\x42 |0
+<U6E62> \xD9\xF0 |0
+<U6E63> \xB5\x43 |0
+<U6E64> \xDA\x4F |0
+<U6E65> \xDA\x4C |0
+<U6E66> \xDA\x54 |0
+<U6E67> \xB4\xE9 |0
+<U6E68> \xDA\x40 |0
+<U6E69> \xB5\x46 |0
+<U6E6B> \xDA\x47 |0
+<U6E6E> \xB4\xF3 |0
+<U6E6F> \xB4\xF6 |0
+<U6E71> \xDA\x46 |0
+<U6E72> \xB5\x45 |0
+<U6E73> \xD9\xF5 |0
+<U6E74> \xD5\xE4 |0
+<U6E77> \xDA\x50 |0
+<U6E78> \xDA\x4E |0
+<U6E79> \xDA\x52 |0
+<U6E88> \xD9\xEC |0
+<U6E89> \xB5\x40 |0
+<U6E8D> \xDE\x61 |0
+<U6E8E> \xDE\x60 |0
+<U6E8F> \xDE\x46 |0
+<U6E90> \xB7\xBD |0
+<U6E92> \xDE\x5F |0
+<U6E93> \xDE\x49 |0
+<U6E94> \xDE\x4A |0
+<U6E96> \xB7\xC7 |0
+<U6E97> \xDE\x68 |0
+<U6E98> \xB7\xC2 |0
+<U6E99> \xDE\x5E |0
+<U6E9B> \xDE\x43 |0
+<U6E9C> \xB7\xC8 |0
+<U6E9D> \xB7\xBE |0
+<U6E9E> \xDE\x52 |0
+<U6E9F> \xDE\x48 |0
+<U6EA0> \xDE\x4B |0
+<U6EA1> \xDE\x63 |0
+<U6EA2> \xB7\xB8 |0
+<U6EA3> \xDE\x6A |0
+<U6EA4> \xDE\x62 |0
+<U6EA5> \xB7\xC1 |0
+<U6EA6> \xDE\x57 |0
+<U6EA7> \xB7\xCC |0
+<U6EAA> \xB7\xCB |0
+<U6EAB> \xB7\xC5 |0
+<U6EAE> \xDE\x69 |0
+<U6EAF> \xB7\xB9 |0
+<U6EB0> \xDE\x55 |0
+<U6EB1> \xDE\x4C |0
+<U6EB2> \xDE\x59 |0
+<U6EB3> \xDE\x65 |0
+<U6EB4> \xB7\xCD |0
+<U6EB6> \xB7\xBB |0
+<U6EB7> \xDE\x54 |0
+<U6EB9> \xDE\x4D |0
+<U6EBA> \xB7\xC4 |0
+<U6EBC> \xB7\xC3 |0
+<U6EBD> \xDE\x50 |0
+<U6EBE> \xDE\x5A |0
+<U6EBF> \xDE\x64 |0
+<U6EC0> \xDE\x47 |0
+<U6EC1> \xDE\x51 |0
+<U6EC2> \xB7\xBC |0
+<U6EC3> \xDE\x5B |0
+<U6EC4> \xB7\xC9 |0
+<U6EC5> \xB7\xC0 |0
+<U6EC6> \xDE\x4E |0
+<U6EC7> \xB7\xBF |0
+<U6EC8> \xDE\x45 |0
+<U6EC9> \xDE\x53 |0
+<U6ECA> \xDE\x67 |0
+<U6ECB> \xB4\xFE |0
+<U6ECC> \xBA\xB0 |0
+<U6ECD> \xDE\x56 |0
+<U6ECE> \xE2\x6C |0
+<U6ECF> \xDE\x58 |0
+<U6ED0> \xDE\x66 |0
+<U6ED1> \xB7\xC6 |0
+<U6ED2> \xDE\x4F |0
+<U6ED3> \xB7\xBA |0
+<U6ED4> \xB7\xCA |0
+<U6ED5> \xBC\xF0 |0
+<U6ED6> \xDE\x44 |0
+<U6ED8> \xDE\x5D |0
+<U6EDC> \xDE\x5C |0
+<U6EEB> \xE2\xAA |0
+<U6EEC> \xBA\xAD |0
+<U6EED> \xE2\x7D |0
+<U6EEE> \xE2\xA4 |0
+<U6EEF> \xBA\xA2 |0
+<U6EF1> \xE2\x6E |0
+<U6EF2> \xBA\xAF |0
+<U6EF4> \xBA\x77 |0
+<U6EF5> \xE2\x6D |0
+<U6EF6> \xE2\xB0 |0
+<U6EF7> \xBA\xB1 |0
+<U6EF8> \xE2\x71 |0
+<U6EF9> \xE2\xA3 |0
+<U6EFB> \xE2\x73 |0
+<U6EFC> \xE2\xB3 |0
+<U6EFD> \xE2\xAF |0
+<U6EFE> \xBA\x75 |0
+<U6EFF> \xBA\xA1 |0
+<U6F00> \xE6\x53 |0
+<U6F01> \xBA\xAE |0
+<U6F02> \xBA\x7D |0
+<U6F03> \xE2\x6F |0
+<U6F05> \xE2\xAE |0
+<U6F06> \xBA\xA3 |0
+<U6F07> \xE2\xAB |0
+<U6F08> \xE2\xB8 |0
+<U6F09> \xE2\x75 |0
+<U6F0A> \xE2\x7E |0
+<U6F0D> \xE2\xB6 |0
+<U6F0E> \xE2\xAC |0
+<U6F0F> \xBA\x7C |0
+<U6F12> \xE2\x7C |0
+<U6F13> \xBA\x76 |0
+<U6F14> \xBA\x74 |0
+<U6F15> \xBA\xA8 |0
+<U6F18> \xE2\x7A |0
+<U6F19> \xE2\x77 |0
+<U6F1A> \xE2\x78 |0
+<U6F1C> \xE2\xB2 |0
+<U6F1E> \xE2\xB7 |0
+<U6F1F> \xE2\xB5 |0
+<U6F20> \xBA\x7A |0
+<U6F21> \xE2\xB9 |0
+<U6F22> \xBA\x7E |0
+<U6F23> \xBA\xA7 |0
+<U6F25> \xE2\x70 |0
+<U6F26> \xE5\xFA |0
+<U6F27> \xE2\x79 |0
+<U6F29> \xBA\x78 |0
+<U6F2A> \xBA\xAC |0
+<U6F2B> \xBA\xA9 |0
+<U6F2C> \xBA\x7B |0
+<U6F2D> \xE2\xA5 |0
+<U6F2E> \xE2\x74 |0
+<U6F2F> \xBA\xAA |0
+<U6F30> \xE2\xA7 |0
+<U6F31> \xBA\xA4 |0
+<U6F32> \xBA\xA6 |0
+<U6F33> \xBA\x73 |0
+<U6F35> \xE2\xA9 |0
+<U6F36> \xE2\xA1 |0
+<U6F37> \xE2\x72 |0
+<U6F38> \xBA\xA5 |0
+<U6F39> \xE2\xB1 |0
+<U6F3A> \xE2\xB4 |0
+<U6F3B> \xE2\x7B |0
+<U6F3C> \xE2\xA8 |0
+<U6F3E> \xBA\x79 |0
+<U6F3F> \xBC\xDF |0
+<U6F40> \xE2\xA6 |0
+<U6F41> \xE5\xF9 |0
+<U6F43> \xE2\xAD |0
+<U6F4E> \xE2\x76 |0
+<U6F4F> \xE6\x44 |0
+<U6F50> \xE6\x4E |0
+<U6F51> \xBC\xE2 |0
+<U6F52> \xE6\x4D |0
+<U6F53> \xE6\x59 |0
+<U6F54> \xBC\xE4 |0
+<U6F55> \xE6\x4B |0
+<U6F57> \xE6\x4F |0
+<U6F58> \xBC\xEF |0
+<U6F5A> \xE6\x46 |0
+<U6F5B> \xBC\xE7 |0
+<U6F5D> \xE6\x52 |0
+<U6F5E> \xE9\xF0 |0
+<U6F5F> \xBC\xF3 |0
+<U6F60> \xBC\xF2 |0
+<U6F61> \xE6\x54 |0
+<U6F62> \xE6\x43 |0
+<U6F63> \xE6\x5E |0
+<U6F64> \xBC\xED |0
+<U6F66> \xBC\xE3 |0
+<U6F67> \xE6\x57 |0
+<U6F69> \xE6\x5B |0
+<U6F6A> \xE6\x60 |0
+<U6F6B> \xE6\x55 |0
+<U6F6C> \xE6\x49 |0
+<U6F6D> \xBC\xE6 |0
+<U6F6E> \xBC\xE9 |0
+<U6F6F> \xBC\xF1 |0
+<U6F70> \xBC\xEC |0
+<U6F72> \xE6\x4C |0
+<U6F73> \xE2\xA2 |0
+<U6F76> \xE6\x48 |0
+<U6F77> \xE6\x5F |0
+<U6F78> \xBC\xE8 |0
+<U6F7A> \xBC\xEB |0
+<U6F7B> \xE6\x61 |0
+<U6F7C> \xBC\xE0 |0
+<U6F7D> \xE6\x56 |0
+<U6F7E> \xE5\xFB |0
+<U6F7F> \xE6\x5C |0
+<U6F80> \xC0\xDF |0
+<U6F82> \xE6\x4A |0
+<U6F84> \xBC\xE1 |0
+<U6F85> \xE6\x45 |0
+<U6F86> \xBC\xE5 |0
+<U6F87> \xE5\xFC |0
+<U6F88> \xBA\xAB |0
+<U6F89> \xE6\x41 |0
+<U6F8B> \xE6\x5A |0
+<U6F8C> \xE6\x42 |0
+<U6F8D> \xE6\x40 |0
+<U6F8E> \xBC\xEA |0
+<U6F90> \xE6\x58 |0
+<U6F92> \xE5\xFE |0
+<U6F93> \xE6\x51 |0
+<U6F94> \xE6\x50 |0
+<U6F95> \xE6\x5D |0
+<U6F96> \xE6\x47 |0
+<U6F97> \xBC\xEE |0
+<U6F9E> \xE9\xF3 |0
+<U6FA0> \xBF\x49 |0
+<U6FA1> \xBE\xFE |0
+<U6FA2> \xEA\x40 |0
+<U6FA3> \xE9\xEB |0
+<U6FA4> \xBF\x41 |0
+<U6FA5> \xE9\xF7 |0
+<U6FA6> \xBF\x48 |0
+<U6FA7> \xBF\x43 |0
+<U6FA8> \xE9\xF5 |0
+<U6FA9> \xED\x4F |0
+<U6FAA> \xE9\xFB |0
+<U6FAB> \xEA\x42 |0
+<U6FAC> \xE9\xFA |0
+<U6FAD> \xE9\xE9 |0
+<U6FAE> \xE9\xF8 |0
+<U6FAF> \xEA\x44 |0
+<U6FB0> \xEA\x46 |0
+<U6FB1> \xBE\xFD |0
+<U6FB2> \xEA\x45 |0
+<U6FB3> \xBF\x44 |0
+<U6FB4> \xBF\x4A |0
+<U6FB6> \xBF\x47 |0
+<U6FB8> \xE9\xFE |0
+<U6FB9> \xBF\x46 |0
+<U6FBA> \xE9\xF9 |0
+<U6FBC> \xE9\xED |0
+<U6FBD> \xE9\xF2 |0
+<U6FBF> \xE9\xFD |0
+<U6FC0> \xBF\x45 |0
+<U6FC1> \xBF\x42 |0
+<U6FC2> \xBE\xFC |0
+<U6FC3> \xBF\x40 |0
+<U6FC4> \xE9\xF1 |0
+<U6FC6> \xE5\xFD |0
+<U6FC7> \xE9\xEC |0
+<U6FC8> \xE9\xEF |0
+<U6FC9> \xEA\x41 |0
+<U6FCA> \xE9\xF4 |0
+<U6FCB> \xE9\xEA |0
+<U6FCC> \xED\x4E |0
+<U6FCD> \xEA\x43 |0
+<U6FCE> \xE9\xEE |0
+<U6FCF> \xE9\xFC |0
+<U6FD4> \xED\x51 |0
+<U6FD5> \xC0\xE3 |0
+<U6FD8> \xC0\xD7 |0
+<U6FDB> \xC0\xDB |0
+<U6FDC> \xED\x53 |0
+<U6FDD> \xED\x59 |0
+<U6FDE> \xED\x57 |0
+<U6FDF> \xC0\xD9 |0
+<U6FE0> \xC0\xDA |0
+<U6FE1> \xC0\xE1 |0
+<U6FE2> \xED\x5A |0
+<U6FE3> \xED\x52 |0
+<U6FE4> \xC0\xDC |0
+<U6FE6> \xED\x56 |0
+<U6FE7> \xED\x55 |0
+<U6FE8> \xED\x5B |0
+<U6FE9> \xC0\xE2 |0
+<U6FEB> \xC0\xDD |0
+<U6FEC> \xC0\xE0 |0
+<U6FED> \xED\x54 |0
+<U6FEE> \xC0\xE4 |0
+<U6FEF> \xC0\xDE |0
+<U6FF0> \xC0\xE5 |0
+<U6FF1> \xC0\xD8 |0
+<U6FF2> \xED\x58 |0
+<U6FF4> \xED\x50 |0
+<U6FF7> \xEF\xF7 |0
+<U6FFA> \xC2\x71 |0
+<U6FFB> \xEF\xF4 |0
+<U6FFC> \xEF\xF6 |0
+<U6FFE> \xC2\x6F |0
+<U6FFF> \xEF\xF2 |0
+<U7000> \xEF\xF3 |0
+<U7001> \xEF\xEE |0
+<U7004> \xE9\xF6 |0
+<U7005> \xEF\xEF |0
+<U7006> \xC2\x70 |0
+<U7007> \xEF\xEB |0
+<U7009> \xC2\x6D |0
+<U700A> \xEF\xF8 |0
+<U700B> \xC2\x6E |0
+<U700C> \xEF\xEC |0
+<U700D> \xEF\xED |0
+<U700E> \xEF\xF1 |0
+<U700F> \xC2\x73 |0
+<U7011> \xC2\x72 |0
+<U7014> \xEF\xF0 |0
+<U7015> \xC3\x78 |0
+<U7016> \xF2\x5F |0
+<U7017> \xF2\x65 |0
+<U7018> \xC3\x79 |0
+<U7019> \xF2\x5C |0
+<U701A> \xC3\x76 |0
+<U701B> \xC3\x73 |0
+<U701C> \xF2\x67 |0
+<U701D> \xC3\x77 |0
+<U701F> \xC3\x74 |0
+<U7020> \xF2\x5E |0
+<U7021> \xF2\x61 |0
+<U7022> \xF2\x62 |0
+<U7023> \xF2\x63 |0
+<U7024> \xF2\x66 |0
+<U7026> \xEF\xF5 |0
+<U7027> \xF2\x5D |0
+<U7028> \xC3\x75 |0
+<U7029> \xF2\x64 |0
+<U702A> \xF2\x68 |0
+<U702B> \xF2\x60 |0
+<U702F> \xF4\x5D |0
+<U7030> \xC4\x6A |0
+<U7031> \xF4\x60 |0
+<U7032> \xC4\x6B |0
+<U7033> \xF4\x68 |0
+<U7034> \xF4\x5F |0
+<U7035> \xF4\x5C |0
+<U7037> \xF4\x5E |0
+<U7038> \xF4\x62 |0
+<U7039> \xF4\x65 |0
+<U703A> \xF4\x64 |0
+<U703B> \xF4\x67 |0
+<U703C> \xF4\x5B |0
+<U703E> \xC4\x69 |0
+<U703F> \xF4\x63 |0
+<U7040> \xF4\x66 |0
+<U7041> \xF4\x69 |0
+<U7042> \xF4\x61 |0
+<U7043> \xF5\xD3 |0
+<U7044> \xF5\xD4 |0
+<U7045> \xF5\xD8 |0
+<U7046> \xF5\xD9 |0
+<U7048> \xF5\xD6 |0
+<U7049> \xF5\xD7 |0
+<U704A> \xF5\xD5 |0
+<U704C> \xC4\xE9 |0
+<U7051> \xC5\x78 |0
+<U7052> \xF6\xEB |0
+<U7055> \xF6\xE8 |0
+<U7056> \xF6\xE9 |0
+<U7057> \xF6\xEA |0
+<U7058> \xC5\x79 |0
+<U705A> \xF7\xE5 |0
+<U705B> \xF7\xE4 |0
+<U705D> \xF8\xAF |0
+<U705E> \xC5\xF4 |0
+<U705F> \xF8\xAD |0
+<U7060> \xF8\xB0 |0
+<U7061> \xF8\xAE |0
+<U7062> \xF8\xF5 |0
+<U7063> \xC6\x57 |0
+<U7064> \xC6\x65 |0
+<U7065> \xF9\xA3 |0
+<U7066> \xF9\x6C |0
+<U7068> \xF9\xA2 |0
+<U7069> \xF9\xD0 |0
+<U706A> \xF9\xD1 |0
+<U706B> \xA4\xF5 |0
+<U7070> \xA6\xC7 |0
+<U7071> \xCA\x41 |0
+<U7074> \xCB\x5E |0
+<U7076> \xA8\x5F |0
+<U7078> \xA8\x62 |0
+<U707A> \xCB\x5F |0
+<U707C> \xA8\x60 |0
+<U707D> \xA8\x61 |0
+<U7082> \xCD\x58 |0
+<U7083> \xCD\x5A |0
+<U7084> \xCD\x55 |0
+<U7085> \xCD\x52 |0
+<U7086> \xCD\x54 |0
+<U708A> \xAA\xA4 |0
+<U708E> \xAA\xA2 |0
+<U7091> \xCD\x56 |0
+<U7092> \xAA\xA3 |0
+<U7093> \xCD\x53 |0
+<U7094> \xCD\x50 |0
+<U7095> \xAA\xA1 |0
+<U7096> \xCD\x57 |0
+<U7098> \xCD\x51 |0
+<U7099> \xAA\xA5 |0
+<U709A> \xCD\x59 |0
+<U709F> \xCF\xAF |0
+<U70A1> \xCF\xB3 |0
+<U70A4> \xAC\xB7 |0
+<U70A9> \xCF\xB6 |0
+<U70AB> \xAC\xAF |0
+<U70AC> \xAC\xB2 |0
+<U70AD> \xAC\xB4 |0
+<U70AE> \xAC\xB6 |0
+<U70AF> \xAC\xB3 |0
+<U70B0> \xCF\xB2 |0
+<U70B1> \xCF\xB1 |0
+<U70B3> \xAC\xB1 |0
+<U70B4> \xCF\xB4 |0
+<U70B5> \xCF\xB5 |0
+<U70B7> \xCF\xAE |0
+<U70B8> \xAC\xB5 |0
+<U70BA> \xAC\xB0 |0
+<U70BE> \xCF\xB0 |0
+<U70C5> \xD2\x77 |0
+<U70C6> \xD2\x78 |0
+<U70C7> \xD2\x79 |0
+<U70C8> \xAF\x50 |0
+<U70CA> \xAF\x4C |0
+<U70CB> \xD2\x6E |0
+<U70CD> \xD2\x76 |0
+<U70CE> \xD2\x7B |0
+<U70CF> \xAF\x51 |0
+<U70D1> \xD2\x6C |0
+<U70D2> \xD2\x72 |0
+<U70D3> \xD2\x6B |0
+<U70D4> \xD2\x75 |0
+<U70D7> \xD2\x71 |0
+<U70D8> \xAF\x4D |0
+<U70D9> \xAF\x4F |0
+<U70DA> \xD2\x7A |0
+<U70DC> \xD2\x6A |0
+<U70DD> \xD2\x6D |0
+<U70DE> \xD2\x73 |0
+<U70E0> \xD2\x74 |0
+<U70E1> \xD2\x7C |0
+<U70E2> \xD2\x70 |0
+<U70E4> \xAF\x4E |0
+<U70EF> \xB2\x6D |0
+<U70F0> \xD6\x4E |0
+<U70F3> \xD6\x50 |0
+<U70F4> \xD6\x4C |0
+<U70F6> \xD6\x58 |0
+<U70F7> \xD6\x4A |0
+<U70F8> \xD6\x57 |0
+<U70F9> \xB2\x69 |0
+<U70FA> \xD6\x48 |0
+<U70FB> \xDA\x5B |0
+<U70FC> \xD6\x52 |0
+<U70FD> \xB2\x6C |0
+<U70FF> \xD6\x53 |0
+<U7100> \xD6\x56 |0
+<U7102> \xD6\x5A |0
+<U7104> \xD6\x4F |0
+<U7106> \xD6\x54 |0
+<U7109> \xB2\x6A |0
+<U710A> \xB2\x6B |0
+<U710B> \xD6\x59 |0
+<U710C> \xD6\x4D |0
+<U710D> \xD6\x49 |0
+<U710E> \xD6\x5B |0
+<U7110> \xD6\x51 |0
+<U7113> \xD6\x55 |0
+<U7117> \xD6\x4B |0
+<U7119> \xB5\x48 |0
+<U711A> \xB5\x49 |0
+<U711B> \xDA\x65 |0
+<U711C> \xB5\x4F |0
+<U711E> \xDA\x59 |0
+<U711F> \xDA\x62 |0
+<U7120> \xDA\x58 |0
+<U7121> \xB5\x4C |0
+<U7122> \xDA\x60 |0
+<U7123> \xDA\x5E |0
+<U7125> \xDA\x5F |0
+<U7126> \xB5\x4A |0
+<U7128> \xDA\x63 |0
+<U712E> \xDA\x5C |0
+<U712F> \xDA\x5A |0
+<U7130> \xB5\x4B |0
+<U7131> \xDA\x5D |0
+<U7132> \xDA\x61 |0
+<U7136> \xB5\x4D |0
+<U713A> \xDA\x64 |0
+<U7141> \xDE\x70 |0
+<U7142> \xDE\x77 |0
+<U7143> \xDE\x79 |0
+<U7144> \xDE\xA1 |0
+<U7146> \xB7\xDA |0
+<U7147> \xDE\x6B |0
+<U7149> \xB7\xD2 |0
+<U714B> \xDE\x7A |0
+<U714C> \xB7\xD7 |0
+<U714D> \xDE\xA2 |0
+<U714E> \xB7\xCE |0
+<U7150> \xDE\x7D |0
+<U7152> \xDE\x6D |0
+<U7153> \xDE\x7E |0
+<U7154> \xDE\x6C |0
+<U7156> \xB7\xDC |0
+<U7158> \xDE\x78 |0
+<U7159> \xB7\xCF |0
+<U715A> \xDE\xA3 |0
+<U715C> \xB7\xD4 |0
+<U715D> \xDE\x71 |0
+<U715E> \xB7\xD9 |0
+<U715F> \xDE\x7C |0
+<U7160> \xDE\x6F |0
+<U7161> \xDE\x76 |0
+<U7162> \xDE\x72 |0
+<U7163> \xDE\x6E |0
+<U7164> \xB7\xD1 |0
+<U7165> \xB7\xD8 |0
+<U7166> \xB7\xD6 |0
+<U7167> \xB7\xD3 |0
+<U7168> \xB7\xDB |0
+<U7169> \xB7\xD0 |0
+<U716A> \xDE\x75 |0
+<U716C> \xB7\xD5 |0
+<U716E> \xB5\x4E |0
+<U7170> \xDE\x7B |0
+<U7172> \xDE\x73 |0
+<U7178> \xDE\x74 |0
+<U717B> \xE2\xC1 |0
+<U717D> \xBA\xB4 |0
+<U7180> \xE2\xBD |0
+<U7181> \xE2\xC3 |0
+<U7182> \xE2\xBF |0
+<U7184> \xBA\xB6 |0
+<U7185> \xE2\xBE |0
+<U7186> \xE2\xC2 |0
+<U7187> \xE2\xBA |0
+<U7189> \xE2\xBC |0
+<U718A> \xBA\xB5 |0
+<U718F> \xE2\xC0 |0
+<U7190> \xE2\xBB |0
+<U7192> \xBA\xB7 |0
+<U7194> \xBA\xB2 |0
+<U7197> \xE2\xC4 |0
+<U7199> \xBA\xB3 |0
+<U719A> \xE6\x67 |0
+<U719B> \xE6\x64 |0
+<U719C> \xE6\x70 |0
+<U719D> \xE6\x6A |0
+<U719E> \xE6\x6C |0
+<U719F> \xBC\xF4 |0
+<U71A0> \xE6\x66 |0
+<U71A1> \xE6\x6E |0
+<U71A4> \xE6\x6D |0
+<U71A5> \xE6\x6B |0
+<U71A7> \xE6\x71 |0
+<U71A8> \xBC\xF7 |0
+<U71A9> \xE6\x68 |0
+<U71AA> \xE6\x6F |0
+<U71AC> \xBC\xF5 |0
+<U71AF> \xE6\x63 |0
+<U71B0> \xE6\x65 |0
+<U71B1> \xBC\xF6 |0
+<U71B2> \xE6\x62 |0
+<U71B3> \xE6\x72 |0
+<U71B5> \xE6\x69 |0
+<U71B8> \xEA\x4A |0
+<U71B9> \xBF\x51 |0
+<U71BC> \xEA\x55 |0
+<U71BD> \xEA\x53 |0
+<U71BE> \xBF\x4B |0
+<U71BF> \xEA\x49 |0
+<U71C0> \xEA\x4C |0
+<U71C1> \xEA\x4D |0
+<U71C2> \xEA\x48 |0
+<U71C3> \xBF\x55 |0
+<U71C4> \xBF\x56 |0
+<U71C5> \xEA\x47 |0
+<U71C6> \xEA\x56 |0
+<U71C7> \xEA\x51 |0
+<U71C8> \xBF\x4F |0
+<U71C9> \xBF\x4C |0
+<U71CA> \xEA\x50 |0
+<U71CB> \xEA\x4E |0
+<U71CE> \xBF\x52 |0
+<U71CF> \xEA\x52 |0
+<U71D0> \xBF\x4D |0
+<U71D2> \xBF\x4E |0
+<U71D4> \xEA\x4F |0
+<U71D5> \xBF\x50 |0
+<U71D6> \xEA\x4B |0
+<U71D8> \xEA\x54 |0
+<U71D9> \xBF\x53 |0
+<U71DA> \xEA\x57 |0
+<U71DB> \xEA\x58 |0
+<U71DC> \xBF\x54 |0
+<U71DF> \xC0\xE7 |0
+<U71E0> \xC0\xEE |0
+<U71E1> \xED\x5C |0
+<U71E2> \xED\x62 |0
+<U71E4> \xED\x60 |0
+<U71E5> \xC0\xEA |0
+<U71E6> \xC0\xE9 |0
+<U71E7> \xC0\xE6 |0
+<U71E8> \xED\x5E |0
+<U71EC> \xC0\xEC |0
+<U71ED> \xC0\xEB |0
+<U71EE> \xC0\xE8 |0
+<U71F0> \xED\x61 |0
+<U71F1> \xED\x5D |0
+<U71F2> \xED\x5F |0
+<U71F4> \xC0\xED |0
+<U71F8> \xC2\x77 |0
+<U71F9> \xEF\xFB |0
+<U71FB> \xC2\x74 |0
+<U71FC> \xC2\x75 |0
+<U71FD> \xEF\xFD |0
+<U71FE> \xC2\x76 |0
+<U71FF> \xEF\xFA |0
+<U7201> \xEF\xF9 |0
+<U7202> \xF2\x6C |0
+<U7203> \xEF\xFC |0
+<U7205> \xF2\x6D |0
+<U7206> \xC3\x7A |0
+<U7207> \xF2\x6B |0
+<U720A> \xF2\x6A |0
+<U720C> \xF2\x69 |0
+<U720D> \xC3\x7B |0
+<U7210> \xC4\x6C |0
+<U7213> \xF4\x6A |0
+<U7214> \xF4\x6B |0
+<U7219> \xF5\xDC |0
+<U721A> \xF5\xDB |0
+<U721B> \xC4\xEA |0
+<U721D> \xF5\xDA |0
+<U721E> \xF6\xEC |0
+<U721F> \xF6\xED |0
+<U7222> \xF7\xE6 |0
+<U7223> \xF8\xB1 |0
+<U7226> \xF8\xF6 |0
+<U7227> \xF9\xBC |0
+<U7228> \xC6\x79 |0
+<U7229> \xF9\xC6 |0
+<U722A> \xA4\xF6 |0
+<U722C> \xAA\xA6 |0
+<U722D> \xAA\xA7 |0
+<U7230> \xAC\xB8 |0
+<U7235> \xC0\xEF |0
+<U7236> \xA4\xF7 |0
+<U7238> \xAA\xA8 |0
+<U7239> \xAF\x52 |0
+<U723A> \xB7\xDD |0
+<U723B> \xA4\xF8 |0
+<U723D> \xB2\x6E |0
+<U723E> \xBA\xB8 |0
+<U723F> \xC9\x62 |0
+<U7241> \xCF\xB7 |0
+<U7242> \xD2\x7D |0
+<U7244> \xE2\xC5 |0
+<U7246> \xC0\xF0 |0
+<U7247> \xA4\xF9 |0
+<U7248> \xAA\xA9 |0
+<U7249> \xCF\xB8 |0
+<U724A> \xCF\xB9 |0
+<U724B> \xDA\x66 |0
+<U724C> \xB5\x50 |0
+<U724F> \xDE\xA4 |0
+<U7252> \xB7\xDE |0
+<U7253> \xE2\xC6 |0
+<U7256> \xBC\xF8 |0
+<U7258> \xC3\x7C |0
+<U7259> \xA4\xFA |0
+<U725A> \xDA\x67 |0
+<U725B> \xA4\xFB |0
+<U725D> \xA6\xC9 |0
+<U725E> \xCA\x42 |0
+<U725F> \xA6\xC8 |0
+<U7260> \xA8\x65 |0
+<U7261> \xA8\x64 |0
+<U7262> \xA8\x63 |0
+<U7263> \xCB\x60 |0
+<U7267> \xAA\xAA |0
+<U7269> \xAA\xAB |0
+<U726A> \xCD\x5B |0
+<U726C> \xCF\xBA |0
+<U726E> \xCF\xBD |0
+<U726F> \xAC\xBA |0
+<U7270> \xCF\xBB |0
+<U7272> \xAC\xB9 |0
+<U7273> \xCF\xBC |0
+<U7274> \xAC\xBB |0
+<U7276> \xD2\xA2 |0
+<U7277> \xD2\xA1 |0
+<U7278> \xD2\x7E |0
+<U7279> \xAF\x53 |0
+<U727B> \xD6\x5D |0
+<U727C> \xD6\x5E |0
+<U727D> \xB2\x6F |0
+<U727E> \xD6\x5C |0
+<U727F> \xD6\x5F |0
+<U7280> \xB5\x52 |0
+<U7281> \xB2\x70 |0
+<U7284> \xB5\x51 |0
+<U7285> \xDA\x6B |0
+<U7286> \xDA\x6A |0
+<U7288> \xDA\x68 |0
+<U7289> \xDA\x69 |0
+<U728B> \xDA\x6C |0
+<U728C> \xDE\xA6 |0
+<U728D> \xDE\xA5 |0
+<U728E> \xDE\xA9 |0
+<U7290> \xDE\xA8 |0
+<U7291> \xDE\xA7 |0
+<U7292> \xBA\xB9 |0
+<U7293> \xE2\xC9 |0
+<U7295> \xE2\xC8 |0
+<U7296> \xBA\xBA |0
+<U7297> \xE2\xC7 |0
+<U7298> \xE6\x73 |0
+<U729A> \xE6\x74 |0
+<U729B> \xBC\xF9 |0
+<U729D> \xEA\x59 |0
+<U729E> \xEA\x5A |0
+<U72A1> \xF2\x72 |0
+<U72A2> \xC3\x7D |0
+<U72A3> \xF2\x71 |0
+<U72A4> \xF2\x70 |0
+<U72A5> \xF2\x6E |0
+<U72A6> \xF2\x6F |0
+<U72A7> \xC4\xEB |0
+<U72A8> \xF4\x6C |0
+<U72A9> \xF6\xEE |0
+<U72AA> \xF8\xF7 |0
+<U72AC> \xA4\xFC |0
+<U72AE> \xC9\xA5 |0
+<U72AF> \xA5\xC7 |0
+<U72B0> \xC9\xA6 |0
+<U72B4> \xCA\x43 |0
+<U72B5> \xCA\x44 |0
+<U72BA> \xCB\x66 |0
+<U72BD> \xCB\x62 |0
+<U72BF> \xCB\x61 |0
+<U72C0> \xAA\xAC |0
+<U72C1> \xCB\x65 |0
+<U72C2> \xA8\x67 |0
+<U72C3> \xCB\x63 |0
+<U72C4> \xA8\x66 |0
+<U72C5> \xCB\x67 |0
+<U72C6> \xCB\x64 |0
+<U72C9> \xCD\x5F |0
+<U72CA> \xCF\xBE |0
+<U72CB> \xCD\x5D |0
+<U72CC> \xCD\x64 |0
+<U72CE> \xAA\xAD |0
+<U72D0> \xAA\xB0 |0
+<U72D1> \xCD\x65 |0
+<U72D2> \xCD\x61 |0
+<U72D4> \xCD\x62 |0
+<U72D6> \xCD\x5C |0
+<U72D7> \xAA\xAF |0
+<U72D8> \xCD\x5E |0
+<U72D9> \xAA\xAE |0
+<U72DA> \xCD\x63 |0
+<U72DC> \xCD\x60 |0
+<U72DF> \xCF\xC2 |0
+<U72E0> \xAC\xBD |0
+<U72E1> \xAC\xBE |0
+<U72E3> \xCF\xC5 |0
+<U72E4> \xCF\xBF |0
+<U72E6> \xCF\xC4 |0
+<U72E8> \xCF\xC0 |0
+<U72E9> \xAC\xBC |0
+<U72EA> \xCF\xC3 |0
+<U72EB> \xCF\xC1 |0
+<U72F3> \xD2\xA8 |0
+<U72F4> \xD2\xA5 |0
+<U72F6> \xD2\xA7 |0
+<U72F7> \xAF\x58 |0
+<U72F8> \xAF\x57 |0
+<U72F9> \xAF\x55 |0
+<U72FA> \xD2\xA4 |0
+<U72FB> \xD2\xA9 |0
+<U72FC> \xAF\x54 |0
+<U72FD> \xAF\x56 |0
+<U72FE> \xD2\xA6 |0
+<U72FF> \xD6\x67 |0
+<U7300> \xD2\xA3 |0
+<U7301> \xD2\xAA |0
+<U7307> \xD6\x62 |0
+<U7308> \xD6\x66 |0
+<U730A> \xD6\x65 |0
+<U730B> \xDA\x6E |0
+<U730C> \xDA\x79 |0
+<U730F> \xD6\x68 |0
+<U7311> \xD6\x63 |0
+<U7312> \xDA\x6D |0
+<U7313> \xB2\x74 |0
+<U7316> \xB2\x73 |0
+<U7317> \xD6\x61 |0
+<U7318> \xD6\x64 |0
+<U7319> \xB2\x75 |0
+<U731B> \xB2\x72 |0
+<U731C> \xB2\x71 |0
+<U731D> \xD6\x60 |0
+<U731E> \xD6\x69 |0
+<U7322> \xDA\x70 |0
+<U7323> \xDA\x77 |0
+<U7325> \xB5\x54 |0
+<U7326> \xDA\x76 |0
+<U7327> \xDA\x73 |0
+<U7329> \xB5\x56 |0
+<U732D> \xDA\x75 |0
+<U7330> \xDA\x6F |0
+<U7331> \xDA\x71 |0
+<U7332> \xDA\x74 |0
+<U7333> \xDA\x72 |0
+<U7334> \xB5\x55 |0
+<U7335> \xDA\x78 |0
+<U7336> \xB5\x53 |0
+<U7337> \xB7\xDF |0
+<U733A> \xDE\xAD |0
+<U733B> \xDE\xAC |0
+<U733C> \xDE\xAA |0
+<U733E> \xB7\xE2 |0
+<U733F> \xB7\xE1 |0
+<U7340> \xDE\xAE |0
+<U7342> \xDE\xAB |0
+<U7343> \xE2\xCA |0
+<U7344> \xBA\xBB |0
+<U7345> \xB7\xE0 |0
+<U7349> \xDE\xB0 |0
+<U734A> \xDE\xAF |0
+<U734C> \xE2\xCD |0
+<U734D> \xE2\xCB |0
+<U734E> \xBC\xFA |0
+<U7350> \xBA\xBC |0
+<U7351> \xE2\xCC |0
+<U7352> \xE6\x76 |0
+<U7357> \xBC\xFB |0
+<U7358> \xE6\x75 |0
+<U7359> \xE6\x7E |0
+<U735A> \xE6\x7D |0
+<U735B> \xE6\x7B |0
+<U735D> \xE6\x7A |0
+<U735E> \xE6\x77 |0
+<U735F> \xE6\x78 |0
+<U7360> \xE6\x79 |0
+<U7361> \xE6\x7C |0
+<U7362> \xE6\xA1 |0
+<U7365> \xEA\x5F |0
+<U7366> \xEA\x5C |0
+<U7367> \xEA\x5D |0
+<U7368> \xBF\x57 |0
+<U7369> \xEA\x5B |0
+<U736A> \xEA\x61 |0
+<U736B> \xEA\x60 |0
+<U736C> \xEA\x5E |0
+<U736E> \xED\x64 |0
+<U736F> \xED\x65 |0
+<U7370> \xC0\xF1 |0
+<U7372> \xC0\xF2 |0
+<U7373> \xED\x63 |0
+<U7375> \xC2\x79 |0
+<U7376> \xEF\xFE |0
+<U7377> \xC2\x78 |0
+<U7378> \xC3\x7E |0
+<U737A> \xC3\xA1 |0
+<U737B> \xC4\x6D |0
+<U737C> \xF4\x6E |0
+<U737D> \xF4\x6D |0
+<U737E> \xF5\xDD |0
+<U737F> \xF6\xEF |0
+<U7380> \xC5\x7A |0
+<U7381> \xF7\xE8 |0
+<U7382> \xF7\xE7 |0
+<U7383> \xF7\xE9 |0
+<U7384> \xA5\xC8 |0
+<U7385> \xCF\xC6 |0
+<U7386> \xAF\x59 |0
+<U7387> \xB2\x76 |0
+<U7388> \xD6\x6A |0
+<U7389> \xA5\xC9 |0
+<U738A> \xC9\xA7 |0
+<U738B> \xA4\xFD |0
+<U738E> \xCA\x45 |0
+<U7392> \xCB\x6C |0
+<U7393> \xCB\x6A |0
+<U7394> \xCB\x6B |0
+<U7395> \xCB\x68 |0
+<U7396> \xA8\x68 |0
+<U7397> \xCB\x69 |0
+<U739D> \xCD\x6D |0
+<U739F> \xAA\xB3 |0
+<U73A0> \xCD\x6B |0
+<U73A1> \xCD\x67 |0
+<U73A2> \xCD\x6A |0
+<U73A4> \xCD\x66 |0
+<U73A5> \xAA\xB5 |0
+<U73A6> \xCD\x69 |0
+<U73A8> \xAA\xB2 |0
+<U73A9> \xAA\xB1 |0
+<U73AB> \xAA\xB4 |0
+<U73AC> \xCD\x6C |0
+<U73AD> \xCD\x68 |0
+<U73B2> \xAC\xC2 |0
+<U73B3> \xAC\xC5 |0
+<U73B4> \xCF\xCE |0
+<U73B5> \xCF\xCD |0
+<U73B6> \xCF\xCC |0
+<U73B7> \xAC\xBF |0
+<U73B8> \xCF\xD5 |0
+<U73B9> \xCF\xCB |0
+<U73BB> \xAC\xC1 |0
+<U73BC> \xD2\xAF |0
+<U73BE> \xCF\xD2 |0
+<U73BF> \xCF\xD0 |0
+<U73C0> \xAC\xC4 |0
+<U73C2> \xCF\xC8 |0
+<U73C3> \xCF\xD3 |0
+<U73C5> \xCF\xCA |0
+<U73C6> \xCF\xD4 |0
+<U73C7> \xCF\xD1 |0
+<U73C8> \xCF\xC9 |0
+<U73CA> \xAC\xC0 |0
+<U73CB> \xCF\xD6 |0
+<U73CC> \xCF\xC7 |0
+<U73CD> \xAC\xC3 |0
+<U73D2> \xD2\xB4 |0
+<U73D3> \xD2\xAB |0
+<U73D4> \xD2\xB6 |0
+<U73D6> \xD2\xAE |0
+<U73D7> \xD2\xB9 |0
+<U73D8> \xD2\xBA |0
+<U73D9> \xD2\xAC |0
+<U73DA> \xD2\xB8 |0
+<U73DB> \xD2\xB5 |0
+<U73DC> \xD2\xB3 |0
+<U73DD> \xD2\xB7 |0
+<U73DE> \xAF\x5F |0
+<U73E0> \xAF\x5D |0
+<U73E3> \xD2\xB1 |0
+<U73E5> \xD2\xAD |0
+<U73E7> \xD2\xB0 |0
+<U73E8> \xD2\xBB |0
+<U73E9> \xD2\xB2 |0
+<U73EA> \xAF\x5E |0
+<U73EB> \xCF\xCF |0
+<U73ED> \xAF\x5A |0
+<U73EE> \xAF\x5C |0
+<U73F4> \xD6\x78 |0
+<U73F5> \xD6\x6D |0
+<U73F6> \xD6\x6B |0
+<U73F8> \xD6\x6C |0
+<U73FA> \xD6\x73 |0
+<U73FC> \xD6\x74 |0
+<U73FD> \xD6\x70 |0
+<U73FE> \xB2\x7B |0
+<U73FF> \xD6\x75 |0
+<U7400> \xD6\x72 |0
+<U7401> \xD6\x6F |0
+<U7403> \xB2\x79 |0
+<U7404> \xD6\x6E |0
+<U7405> \xB2\x77 |0
+<U7406> \xB2\x7A |0
+<U7407> \xD6\x71 |0
+<U7408> \xD6\x79 |0
+<U7409> \xAF\x5B |0
+<U740A> \xB2\x78 |0
+<U740B> \xD6\x77 |0
+<U740C> \xD6\x76 |0
+<U740D> \xB2\x7C |0
+<U7416> \xDA\x7E |0
+<U741A> \xDA\xA1 |0
+<U741B> \xB5\x60 |0
+<U741D> \xDA\xA7 |0
+<U7420> \xDA\xA9 |0
+<U7421> \xDA\xA2 |0
+<U7422> \xB5\x5A |0
+<U7423> \xDA\xA6 |0
+<U7424> \xDA\xA5 |0
+<U7425> \xB5\x5B |0
+<U7426> \xB5\x61 |0
+<U7428> \xB5\x62 |0
+<U7429> \xDA\xA8 |0
+<U742A> \xB5\x58 |0
+<U742B> \xDA\x7D |0
+<U742C> \xDA\x7B |0
+<U742D> \xDA\xA3 |0
+<U742E> \xDA\x7A |0
+<U742F> \xB5\x5F |0
+<U7430> \xDA\x7C |0
+<U7431> \xDA\xA4 |0
+<U7432> \xDA\xAA |0
+<U7433> \xB5\x59 |0
+<U7434> \xB5\x5E |0
+<U7435> \xB5\x5C |0
+<U7436> \xB5\x5D |0
+<U743A> \xB5\x57 |0
+<U743F> \xB7\xE9 |0
+<U7440> \xDE\xB7 |0
+<U7441> \xB7\xE8 |0
+<U7442> \xDE\xBB |0
+<U7444> \xDE\xB1 |0
+<U7446> \xDE\xBC |0
+<U744A> \xDE\xB2 |0
+<U744B> \xDE\xB3 |0
+<U744D> \xDE\xBD |0
+<U744E> \xDE\xBA |0
+<U744F> \xDE\xB8 |0
+<U7450> \xDE\xB9 |0
+<U7451> \xDE\xB5 |0
+<U7452> \xDE\xB4 |0
+<U7454> \xDE\xBE |0
+<U7455> \xB7\xE5 |0
+<U7457> \xDE\xB6 |0
+<U7459> \xB7\xEA |0
+<U745A> \xB7\xE4 |0
+<U745B> \xB7\xEB |0
+<U745C> \xB7\xEC |0
+<U745E> \xB7\xE7 |0
+<U745F> \xB7\xE6 |0
+<U7462> \xE2\xCE |0
+<U7463> \xBA\xBE |0
+<U7464> \xBA\xBD |0
+<U7467> \xE2\xD3 |0
+<U7469> \xBC\xFC |0
+<U746A> \xBA\xBF |0
+<U746D> \xBA\xC1 |0
+<U746E> \xE2\xD4 |0
+<U746F> \xB7\xE3 |0
+<U7470> \xBA\xC0 |0
+<U7471> \xE2\xD0 |0
+<U7472> \xE2\xD2 |0
+<U7473> \xE2\xCF |0
+<U7475> \xE2\xD1 |0
+<U7479> \xE6\xAB |0
+<U747C> \xE6\xAA |0
+<U747D> \xE6\xA7 |0
+<U747E> \xBD\x40 |0
+<U747F> \xEA\x62 |0
+<U7480> \xBD\x41 |0
+<U7481> \xE6\xA6 |0
+<U7483> \xBC\xFE |0
+<U7485> \xE6\xA8 |0
+<U7486> \xE6\xA5 |0
+<U7487> \xE6\xA2 |0
+<U7488> \xE6\xA9 |0
+<U7489> \xE6\xA3 |0
+<U748A> \xE6\xA4 |0
+<U748B> \xBC\xFD |0
+<U7490> \xED\x69 |0
+<U7492> \xEA\x66 |0
+<U7494> \xEA\x65 |0
+<U7495> \xEA\x67 |0
+<U7497> \xED\x66 |0
+<U7498> \xBF\x5A |0
+<U749A> \xEA\x63 |0
+<U749C> \xBF\x58 |0
+<U749E> \xBF\x5C |0
+<U749F> \xBF\x5B |0
+<U74A0> \xEA\x64 |0
+<U74A1> \xEA\x68 |0
+<U74A3> \xBF\x59 |0
+<U74A5> \xED\x6D |0
+<U74A6> \xC0\xF5 |0
+<U74A7> \xC2\x7A |0
+<U74A8> \xC0\xF6 |0
+<U74A9> \xC0\xF3 |0
+<U74AA> \xED\x6A |0
+<U74AB> \xED\x68 |0
+<U74AD> \xED\x6B |0
+<U74AF> \xED\x6E |0
+<U74B0> \xC0\xF4 |0
+<U74B1> \xED\x6C |0
+<U74B2> \xED\x67 |0
+<U74B5> \xF0\x42 |0
+<U74B6> \xF0\x45 |0
+<U74B7> \xF2\x75 |0
+<U74B8> \xF0\x40 |0
+<U74BA> \xF4\x6F |0
+<U74BB> \xF0\x46 |0
+<U74BD> \xC3\xA2 |0
+<U74BE> \xF0\x44 |0
+<U74BF> \xC2\x7B |0
+<U74C0> \xF0\x41 |0
+<U74C1> \xF0\x43 |0
+<U74C2> \xF0\x47 |0
+<U74C3> \xF2\x76 |0
+<U74C5> \xF2\x74 |0
+<U74CA> \xC3\xA3 |0
+<U74CB> \xF2\x73 |0
+<U74CF> \xC4\x6E |0
+<U74D4> \xC4\xED |0
+<U74D5> \xF6\xF1 |0
+<U74D6> \xC4\xEC |0
+<U74D7> \xF6\xF3 |0
+<U74D8> \xF6\xF0 |0
+<U74D9> \xF6\xF2 |0
+<U74DA> \xC5\xD0 |0
+<U74DB> \xF8\xB2 |0
+<U74DC> \xA5\xCA |0
+<U74DD> \xCD\x6E |0
+<U74DE> \xD2\xBC |0
+<U74DF> \xD2\xBD |0
+<U74E0> \xB2\x7D |0
+<U74E1> \xDE\xBF |0
+<U74E2> \xBF\x5D |0
+<U74E3> \xC3\xA4 |0
+<U74E4> \xC5\x7B |0
+<U74E5> \xF8\xB3 |0
+<U74E6> \xA5\xCB |0
+<U74E8> \xCD\x6F |0
+<U74E9> \xA2\x60 |0
+<U74EC> \xCF\xD7 |0
+<U74EE> \xCF\xD8 |0
+<U74F4> \xD2\xBE |0
+<U74F5> \xD2\xBF |0
+<U74F6> \xB2\x7E |0
+<U74F7> \xB2\xA1 |0
+<U74FB> \xDA\xAB |0
+<U74FD> \xDE\xC2 |0
+<U74FE> \xDE\xC1 |0
+<U74FF> \xDE\xC0 |0
+<U7500> \xE2\xD5 |0
+<U7502> \xE2\xD6 |0
+<U7503> \xE2\xD7 |0
+<U7504> \xBA\xC2 |0
+<U7507> \xE6\xAD |0
+<U7508> \xE6\xAC |0
+<U750B> \xEA\x69 |0
+<U750C> \xBF\x5E |0
+<U750D> \xBF\x5F |0
+<U750F> \xED\x72 |0
+<U7510> \xED\x6F |0
+<U7511> \xED\x70 |0
+<U7512> \xED\x71 |0
+<U7513> \xF0\x49 |0
+<U7514> \xF0\x48 |0
+<U7515> \xC2\x7C |0
+<U7516> \xF2\x77 |0
+<U7517> \xF5\xDE |0
+<U7518> \xA5\xCC |0
+<U751A> \xAC\xC6 |0
+<U751C> \xB2\xA2 |0
+<U751D> \xDE\xC3 |0
+<U751F> \xA5\xCD |0
+<U7521> \xD2\xC0 |0
+<U7522> \xB2\xA3 |0
+<U7525> \xB5\x63 |0
+<U7526> \xB5\x64 |0
+<U7528> \xA5\xCE |0
+<U7529> \xA5\xCF |0
+<U752A> \xCA\x46 |0
+<U752B> \xA8\x6A |0
+<U752C> \xA8\x69 |0
+<U752D> \xAC\xC7 |0
+<U752E> \xCF\xD9 |0
+<U752F> \xDA\xAC |0
+<U7530> \xA5\xD0 |0
+<U7531> \xA5\xD1 |0
+<U7532> \xA5\xD2 |0
+<U7533> \xA5\xD3 |0
+<U7537> \xA8\x6B |0
+<U7538> \xA8\x6C |0
+<U7539> \xCB\x6E |0
+<U753A> \xCB\x6D |0
+<U753D> \xAA\xB6 |0
+<U753E> \xCD\x72 |0
+<U753F> \xCD\x70 |0
+<U7540> \xCD\x71 |0
+<U7547> \xCF\xDA |0
+<U7548> \xCF\xDB |0
+<U754B> \xAC\xCB |0
+<U754C> \xAC\xC9 |0
+<U754E> \xAC\xCA |0
+<U754F> \xAC\xC8 |0
+<U7554> \xAF\x60 |0
+<U7559> \xAF\x64 |0
+<U755A> \xAF\x63 |0
+<U755B> \xD2\xC1 |0
+<U755C> \xAF\x62 |0
+<U755D> \xAF\x61 |0
+<U755F> \xD2\xC2 |0
+<U7562> \xB2\xA6 |0
+<U7563> \xD6\x7B |0
+<U7564> \xD6\x7A |0
+<U7565> \xB2\xA4 |0
+<U7566> \xB2\xA5 |0
+<U756A> \xB5\x66 |0
+<U756B> \xB5\x65 |0
+<U756C> \xDA\xAE |0
+<U756F> \xDA\xAD |0
+<U7570> \xB2\xA7 |0
+<U7576> \xB7\xED |0
+<U7577> \xDE\xC5 |0
+<U7578> \xB7\xEE |0
+<U7579> \xDE\xC4 |0
+<U757D> \xE2\xD8 |0
+<U757E> \xE6\xAE |0
+<U757F> \xBD\x42 |0
+<U7580> \xEA\x6A |0
+<U7584> \xED\x73 |0
+<U7586> \xC3\xA6 |0
+<U7587> \xC3\xA5 |0
+<U758A> \xC5\x7C |0
+<U758B> \xA5\xD4 |0
+<U758C> \xCD\x73 |0
+<U758F> \xB2\xA8 |0
+<U7590> \xE2\xD9 |0
+<U7591> \xBA\xC3 |0
+<U7594> \xCB\x6F |0
+<U7595> \xCB\x70 |0
+<U7598> \xCD\x74 |0
+<U7599> \xAA\xB8 |0
+<U759A> \xAA\xB9 |0
+<U759D> \xAA\xB7 |0
+<U75A2> \xAC\xCF |0
+<U75A3> \xAC\xD0 |0
+<U75A4> \xAC\xCD |0
+<U75A5> \xAC\xCE |0
+<U75A7> \xCF\xDC |0
+<U75AA> \xCF\xDD |0
+<U75AB> \xAC\xCC |0
+<U75B0> \xD2\xC3 |0
+<U75B2> \xAF\x68 |0
+<U75B3> \xAF\x69 |0
+<U75B5> \xB2\xAB |0
+<U75B6> \xD2\xC9 |0
+<U75B8> \xAF\x6E |0
+<U75B9> \xAF\x6C |0
+<U75BA> \xD2\xCA |0
+<U75BB> \xD2\xC5 |0
+<U75BC> \xAF\x6B |0
+<U75BD> \xAF\x6A |0
+<U75BE> \xAF\x65 |0
+<U75BF> \xD2\xC8 |0
+<U75C0> \xD2\xC7 |0
+<U75C1> \xD2\xC4 |0
+<U75C2> \xAF\x6D |0
+<U75C4> \xD2\xC6 |0
+<U75C5> \xAF\x66 |0
+<U75C7> \xAF\x67 |0
+<U75CA> \xB2\xAC |0
+<U75CB> \xD6\xA1 |0
+<U75CC> \xD6\xA2 |0
+<U75CD> \xB2\xAD |0
+<U75CE> \xD6\x7C |0
+<U75CF> \xD6\x7E |0
+<U75D0> \xD6\xA4 |0
+<U75D1> \xD6\xA3 |0
+<U75D2> \xD6\x7D |0
+<U75D4> \xB2\xA9 |0
+<U75D5> \xB2\xAA |0
+<U75D7> \xDA\xB6 |0
+<U75D8> \xB5\x6B |0
+<U75D9> \xB5\x6A |0
+<U75DA> \xDA\xB0 |0
+<U75DB> \xB5\x68 |0
+<U75DD> \xDA\xB3 |0
+<U75DE> \xB5\x6C |0
+<U75DF> \xDA\xB4 |0
+<U75E0> \xB5\x6D |0
+<U75E1> \xDA\xB1 |0
+<U75E2> \xB5\x67 |0
+<U75E3> \xB5\x69 |0
+<U75E4> \xDA\xB5 |0
+<U75E6> \xDA\xB2 |0
+<U75E7> \xDA\xAF |0
+<U75ED> \xDE\xD2 |0
+<U75EF> \xDE\xC7 |0
+<U75F0> \xB7\xF0 |0
+<U75F1> \xB7\xF3 |0
+<U75F2> \xB7\xF2 |0
+<U75F3> \xB7\xF7 |0
+<U75F4> \xB7\xF6 |0
+<U75F5> \xDE\xD3 |0
+<U75F6> \xDE\xD1 |0
+<U75F7> \xDE\xCA |0
+<U75F8> \xDE\xCE |0
+<U75F9> \xDE\xCD |0
+<U75FA> \xB7\xF4 |0
+<U75FB> \xDE\xD0 |0
+<U75FC> \xDE\xCC |0
+<U75FD> \xDE\xD4 |0
+<U75FE> \xDE\xCB |0
+<U75FF> \xB7\xF5 |0
+<U7600> \xB7\xEF |0
+<U7601> \xB7\xF1 |0
+<U7603> \xDE\xC9 |0
+<U7608> \xE2\xDB |0
+<U7609> \xBA\xC7 |0
+<U760A> \xE2\xDF |0
+<U760B> \xBA\xC6 |0
+<U760C> \xE2\xDC |0
+<U760D> \xBA\xC5 |0
+<U760F> \xDE\xC8 |0
+<U7610> \xDE\xCF |0
+<U7611> \xE2\xDE |0
+<U7613> \xBA\xC8 |0
+<U7614> \xE2\xE0 |0
+<U7615> \xE2\xDD |0
+<U7616> \xE2\xDA |0
+<U7619> \xE6\xB1 |0
+<U761A> \xE6\xB5 |0
+<U761B> \xE6\xB7 |0
+<U761C> \xE6\xB3 |0
+<U761D> \xE6\xB2 |0
+<U761E> \xE6\xB0 |0
+<U761F> \xBD\x45 |0
+<U7620> \xBD\x43 |0
+<U7621> \xBD\x48 |0
+<U7622> \xBD\x49 |0
+<U7623> \xE6\xB4 |0
+<U7624> \xBD\x46 |0
+<U7625> \xE6\xAF |0
+<U7626> \xBD\x47 |0
+<U7627> \xBA\xC4 |0
+<U7628> \xE6\xB6 |0
+<U7629> \xBD\x44 |0
+<U762D> \xEA\x6C |0
+<U762F> \xEA\x6B |0
+<U7630> \xEA\x73 |0
+<U7631> \xEA\x6D |0
+<U7632> \xEA\x72 |0
+<U7633> \xEA\x6F |0
+<U7634> \xBF\x60 |0
+<U7635> \xEA\x71 |0
+<U7638> \xBF\x61 |0
+<U763A> \xBF\x62 |0
+<U763C> \xEA\x70 |0
+<U763D> \xEA\x6E |0
+<U7642> \xC0\xF8 |0
+<U7643> \xED\x74 |0
+<U7646> \xC0\xF7 |0
+<U7647> \xED\x77 |0
+<U7648> \xED\x75 |0
+<U7649> \xED\x76 |0
+<U764C> \xC0\xF9 |0
+<U7650> \xF0\x4D |0
+<U7652> \xC2\xA1 |0
+<U7653> \xF0\x4E |0
+<U7656> \xC2\x7D |0
+<U7657> \xF0\x4F |0
+<U7658> \xC2\x7E |0
+<U7659> \xF0\x4C |0
+<U765A> \xF0\x50 |0
+<U765C> \xF0\x4A |0
+<U765F> \xC3\xA7 |0
+<U7660> \xF2\x78 |0
+<U7661> \xC3\xA8 |0
+<U7662> \xC4\x6F |0
+<U7664> \xF0\x4B |0
+<U7665> \xC4\x70 |0
+<U7669> \xC4\xEE |0
+<U766A> \xF5\xDF |0
+<U766C> \xC5\x7E |0
+<U766D> \xF6\xF4 |0
+<U766E> \xC5\x7D |0
+<U7670> \xF7\xEA |0
+<U7671> \xC5\xF5 |0
+<U7672> \xC5\xF6 |0
+<U7675> \xF9\xCC |0
+<U7678> \xAC\xD1 |0
+<U7679> \xCF\xDE |0
+<U767B> \xB5\x6E |0
+<U767C> \xB5\x6F |0
+<U767D> \xA5\xD5 |0
+<U767E> \xA6\xCA |0
+<U767F> \xCA\x47 |0
+<U7681> \xCB\x71 |0
+<U7682> \xA8\x6D |0
+<U7684> \xAA\xBA |0
+<U7686> \xAC\xD2 |0
+<U7687> \xAC\xD3 |0
+<U7688> \xAC\xD4 |0
+<U7689> \xD6\xA6 |0
+<U768A> \xD2\xCB |0
+<U768B> \xAF\x6F |0
+<U768E> \xB2\xAE |0
+<U768F> \xD6\xA5 |0
+<U7692> \xDA\xB8 |0
+<U7693> \xB5\x71 |0
+<U7695> \xDA\xB7 |0
+<U7696> \xB5\x70 |0
+<U7699> \xDE\xD5 |0
+<U769A> \xBD\x4A |0
+<U769B> \xE6\xBB |0
+<U769C> \xE6\xB8 |0
+<U769D> \xE6\xB9 |0
+<U769E> \xE6\xBA |0
+<U76A4> \xED\x78 |0
+<U76A6> \xF0\x51 |0
+<U76AA> \xF4\x71 |0
+<U76AB> \xF4\x70 |0
+<U76AD> \xF6\xF5 |0
+<U76AE> \xA5\xD6 |0
+<U76AF> \xCD\x75 |0
+<U76B0> \xAF\x70 |0
+<U76B4> \xB5\x72 |0
+<U76B5> \xDE\xD6 |0
+<U76B8> \xE2\xE1 |0
+<U76BA> \xBD\x4B |0
+<U76BB> \xEA\x74 |0
+<U76BD> \xF0\x52 |0
+<U76BE> \xF4\x72 |0
+<U76BF> \xA5\xD7 |0
+<U76C2> \xAA\xBB |0
+<U76C3> \xAC\xD7 |0
+<U76C4> \xCF\xDF |0
+<U76C5> \xAC\xD8 |0
+<U76C6> \xAC\xD6 |0
+<U76C8> \xAC\xD5 |0
+<U76C9> \xD2\xCC |0
+<U76CA> \xAF\x71 |0
+<U76CD> \xAF\x72 |0
+<U76CE> \xAF\x73 |0
+<U76D2> \xB2\xB0 |0
+<U76D3> \xD6\xA7 |0
+<U76D4> \xB2\xAF |0
+<U76DA> \xDA\xB9 |0
+<U76DB> \xB2\xB1 |0
+<U76DC> \xB5\x73 |0
+<U76DD> \xDE\xD7 |0
+<U76DE> \xB7\xF8 |0
+<U76DF> \xB7\xF9 |0
+<U76E1> \xBA\xC9 |0
+<U76E3> \xBA\xCA |0
+<U76E4> \xBD\x4C |0
+<U76E5> \xBF\x64 |0
+<U76E6> \xEA\x75 |0
+<U76E7> \xBF\x63 |0
+<U76E9> \xED\x79 |0
+<U76EA> \xC0\xFA |0
+<U76EC> \xF0\x53 |0
+<U76ED> \xF4\x73 |0
+<U76EE> \xA5\xD8 |0
+<U76EF> \xA8\x6E |0
+<U76F0> \xCD\x78 |0
+<U76F1> \xCD\x77 |0
+<U76F2> \xAA\xBC |0
+<U76F3> \xCD\x76 |0
+<U76F4> \xAA\xBD |0
+<U76F5> \xCD\x79 |0
+<U76F7> \xCF\xE5 |0
+<U76F8> \xAC\xDB |0
+<U76F9> \xAC\xDA |0
+<U76FA> \xCF\xE7 |0
+<U76FB> \xCF\xE6 |0
+<U76FC> \xAC\xDF |0
+<U76FE> \xAC\xDE |0
+<U7701> \xAC\xD9 |0
+<U7703> \xCF\xE1 |0
+<U7704> \xCF\xE2 |0
+<U7705> \xCF\xE3 |0
+<U7707> \xAC\xE0 |0
+<U7708> \xCF\xE0 |0
+<U7709> \xAC\xDC |0
+<U770A> \xCF\xE4 |0
+<U770B> \xAC\xDD |0
+<U7710> \xD2\xCF |0
+<U7711> \xD2\xD3 |0
+<U7712> \xD2\xD1 |0
+<U7713> \xD2\xD0 |0
+<U7715> \xD2\xD4 |0
+<U7719> \xD2\xD5 |0
+<U771A> \xD2\xD6 |0
+<U771B> \xD2\xCE |0
+<U771D> \xD2\xCD |0
+<U771F> \xAF\x75 |0
+<U7720> \xAF\x76 |0
+<U7722> \xD2\xD7 |0
+<U7723> \xD2\xD2 |0
+<U7725> \xD6\xB0 |0
+<U7727> \xD2\xD8 |0
+<U7728> \xAF\x77 |0
+<U7729> \xAF\x74 |0
+<U772D> \xD6\xAA |0
+<U772F> \xD6\xA9 |0
+<U7731> \xD6\xAB |0
+<U7732> \xD6\xAC |0
+<U7733> \xD6\xAE |0
+<U7734> \xD6\xAD |0
+<U7735> \xD6\xB2 |0
+<U7736> \xB2\xB5 |0
+<U7737> \xB2\xB2 |0
+<U7738> \xB2\xB6 |0
+<U7739> \xD6\xA8 |0
+<U773A> \xB2\xB7 |0
+<U773B> \xD6\xB1 |0
+<U773C> \xB2\xB4 |0
+<U773D> \xD6\xAF |0
+<U773E> \xB2\xB3 |0
+<U7744> \xDA\xBC |0
+<U7745> \xDA\xBE |0
+<U7746> \xDA\xBA |0
+<U7747> \xDA\xBB |0
+<U774A> \xDA\xBF |0
+<U774B> \xDA\xC1 |0
+<U774C> \xDA\xC2 |0
+<U774D> \xDA\xBD |0
+<U774E> \xDA\xC0 |0
+<U774F> \xB5\x74 |0
+<U7752> \xDE\xDB |0
+<U7754> \xDE\xE0 |0
+<U7755> \xDE\xD8 |0
+<U7756> \xDE\xDC |0
+<U7759> \xDE\xE1 |0
+<U775A> \xDE\xDD |0
+<U775B> \xB7\xFA |0
+<U775C> \xB8\x43 |0
+<U775E> \xB7\xFD |0
+<U775F> \xDE\xD9 |0
+<U7760> \xDE\xDA |0
+<U7761> \xBA\xCE |0
+<U7762> \xB8\x46 |0
+<U7763> \xB7\xFE |0
+<U7765> \xB8\x44 |0
+<U7766> \xB7\xFC |0
+<U7767> \xDE\xDF |0
+<U7768> \xB8\x45 |0
+<U7769> \xDE\xDE |0
+<U776A> \xB8\x41 |0
+<U776B> \xB7\xFB |0
+<U776C> \xB8\x42 |0
+<U776D> \xDE\xE2 |0
+<U776E> \xE2\xE6 |0
+<U776F> \xE2\xE8 |0
+<U7779> \xB8\x40 |0
+<U777C> \xE2\xE3 |0
+<U777D> \xBA\xCC |0
+<U777E> \xE2\xE9 |0
+<U777F> \xBA\xCD |0
+<U7780> \xE2\xE7 |0
+<U7781> \xE2\xE2 |0
+<U7782> \xE2\xE5 |0
+<U7783> \xE2\xEA |0
+<U7784> \xBA\xCB |0
+<U7785> \xE2\xE4 |0
+<U7787> \xBD\x4E |0
+<U7788> \xE6\xBF |0
+<U7789> \xE6\xBE |0
+<U778B> \xBD\x51 |0
+<U778C> \xBD\x4F |0
+<U778D> \xE6\xBC |0
+<U778E> \xBD\x4D |0
+<U778F> \xE6\xBD |0
+<U7791> \xBD\x50 |0
+<U7795> \xEA\x7D |0
+<U7797> \xEA\xA1 |0
+<U7799> \xEA\x7E |0
+<U779A> \xEA\x76 |0
+<U779B> \xEA\x7A |0
+<U779C> \xEA\x79 |0
+<U779D> \xEA\x77 |0
+<U779E> \xBF\x66 |0
+<U779F> \xBF\x67 |0
+<U77A0> \xBF\x65 |0
+<U77A1> \xEA\x78 |0
+<U77A2> \xEA\x7B |0
+<U77A3> \xEA\x7C |0
+<U77A5> \xBF\x68 |0
+<U77A7> \xC1\x40 |0
+<U77A8> \xED\xA3 |0
+<U77AA> \xC0\xFC |0
+<U77AB> \xED\x7B |0
+<U77AC> \xC0\xFE |0
+<U77AD> \xC1\x41 |0
+<U77B0> \xC0\xFD |0
+<U77B1> \xED\xA2 |0
+<U77B2> \xED\x7C |0
+<U77B3> \xC0\xFB |0
+<U77B4> \xED\xA1 |0
+<U77B5> \xED\x7A |0
+<U77B6> \xED\x7E |0
+<U77B7> \xED\x7D |0
+<U77BA> \xF0\x55 |0
+<U77BB> \xC2\xA4 |0
+<U77BC> \xC2\xA5 |0
+<U77BD> \xC2\xA2 |0
+<U77BF> \xC2\xA3 |0
+<U77C2> \xF0\x54 |0
+<U77C4> \xF2\x7B |0
+<U77C7> \xC3\xA9 |0
+<U77C9> \xF2\x79 |0
+<U77CA> \xF2\x7A |0
+<U77CC> \xF4\x74 |0
+<U77CD> \xF4\x77 |0
+<U77CE> \xF4\x75 |0
+<U77CF> \xF4\x76 |0
+<U77D0> \xF5\xE0 |0
+<U77D3> \xC4\xEF |0
+<U77D4> \xF7\xEB |0
+<U77D5> \xF8\xB4 |0
+<U77D7> \xC5\xF7 |0
+<U77D8> \xF8\xF8 |0
+<U77D9> \xF8\xF9 |0
+<U77DA> \xC6\x66 |0
+<U77DB> \xA5\xD9 |0
+<U77DC> \xAC\xE1 |0
+<U77DE> \xDA\xC3 |0
+<U77E0> \xDE\xE3 |0
+<U77E2> \xA5\xDA |0
+<U77E3> \xA8\x6F |0
+<U77E5> \xAA\xBE |0
+<U77E7> \xCF\xE8 |0
+<U77E8> \xCF\xE9 |0
+<U77E9> \xAF\x78 |0
+<U77EC> \xDA\xC4 |0
+<U77ED> \xB5\x75 |0
+<U77EE> \xB8\x47 |0
+<U77EF> \xC1\x42 |0
+<U77F0> \xED\xA4 |0
+<U77F1> \xF2\x7C |0
+<U77F2> \xF4\x78 |0
+<U77F3> \xA5\xDB |0
+<U77F7> \xCD\xA1 |0
+<U77F8> \xCD\x7A |0
+<U77F9> \xCD\x7C |0
+<U77FA> \xCD\x7E |0
+<U77FB> \xCD\x7D |0
+<U77FC> \xCD\x7B |0
+<U77FD> \xAA\xBF |0
+<U7802> \xAC\xE2 |0
+<U7803> \xCF\xF2 |0
+<U7805> \xCF\xED |0
+<U7806> \xCF\xEA |0
+<U7809> \xCF\xF1 |0
+<U780C> \xAC\xE4 |0
+<U780D> \xAC\xE5 |0
+<U780E> \xCF\xF0 |0
+<U780F> \xCF\xEF |0
+<U7810> \xCF\xEE |0
+<U7811> \xCF\xEB |0
+<U7812> \xCF\xEC |0
+<U7813> \xCF\xF3 |0
+<U7814> \xAC\xE3 |0
+<U781D> \xAF\x7C |0
+<U781F> \xAF\xA4 |0
+<U7820> \xAF\xA3 |0
+<U7821> \xD2\xE1 |0
+<U7822> \xD2\xDB |0
+<U7823> \xD2\xD9 |0
+<U7825> \xAF\xA1 |0
+<U7826> \xD6\xB9 |0
+<U7827> \xAF\x7A |0
+<U7828> \xD2\xDE |0
+<U7829> \xD2\xE2 |0
+<U782A> \xD2\xE4 |0
+<U782B> \xD2\xE0 |0
+<U782C> \xD2\xDA |0
+<U782D> \xAF\xA2 |0
+<U782E> \xD2\xDF |0
+<U782F> \xD2\xDD |0
+<U7830> \xAF\x79 |0
+<U7831> \xD2\xE5 |0
+<U7832> \xAF\xA5 |0
+<U7833> \xD2\xE3 |0
+<U7834> \xAF\x7D |0
+<U7835> \xD2\xDC |0
+<U7837> \xAF\x7E |0
+<U7838> \xAF\x7B |0
+<U7843> \xB2\xB9 |0
+<U7845> \xD6\xBA |0
+<U7848> \xD6\xB3 |0
+<U7849> \xD6\xB5 |0
+<U784A> \xD6\xB7 |0
+<U784C> \xD6\xB8 |0
+<U784D> \xD6\xB6 |0
+<U784E> \xB2\xBA |0
+<U7850> \xD6\xBB |0
+<U7852> \xD6\xB4 |0
+<U785C> \xDA\xC8 |0
+<U785D> \xB5\x76 |0
+<U785E> \xDA\xD0 |0
+<U7860> \xDA\xC5 |0
+<U7862> \xDA\xD1 |0
+<U7864> \xDA\xC6 |0
+<U7865> \xDA\xC7 |0
+<U7868> \xDA\xCF |0
+<U7869> \xDA\xCE |0
+<U786A> \xDA\xCB |0
+<U786B> \xB2\xB8 |0
+<U786C> \xB5\x77 |0
+<U786D> \xDA\xC9 |0
+<U786E> \xDA\xCC |0
+<U786F> \xB5\x78 |0
+<U7870> \xDA\xCD |0
+<U7871> \xDA\xCA |0
+<U7879> \xDE\xEE |0
+<U787B> \xDE\xF2 |0
+<U787C> \xB8\x4E |0
+<U787E> \xE2\xF0 |0
+<U787F> \xB8\x51 |0
+<U7880> \xDE\xF0 |0
+<U7881> \xF9\xD6 |0
+<U7883> \xDE\xED |0
+<U7884> \xDE\xE8 |0
+<U7885> \xDE\xEA |0
+<U7886> \xDE\xEB |0
+<U7887> \xDE\xE4 |0
+<U7889> \xB8\x4D |0
+<U788C> \xB8\x4C |0
+<U788E> \xB8\x48 |0
+<U788F> \xDE\xE7 |0
+<U7891> \xB8\x4F |0
+<U7893> \xB8\x50 |0
+<U7894> \xDE\xE6 |0
+<U7895> \xDE\xE9 |0
+<U7896> \xDE\xF1 |0
+<U7897> \xB8\x4A |0
+<U7898> \xB8\x4B |0
+<U7899> \xDE\xEF |0
+<U789A> \xDE\xE5 |0
+<U789E> \xE2\xF2 |0
+<U789F> \xBA\xD0 |0
+<U78A0> \xE2\xF4 |0
+<U78A1> \xDE\xEC |0
+<U78A2> \xE2\xF6 |0
+<U78A3> \xBA\xD4 |0
+<U78A4> \xE2\xF7 |0
+<U78A5> \xE2\xF3 |0
+<U78A7> \xBA\xD1 |0
+<U78A8> \xE2\xEF |0
+<U78A9> \xBA\xD3 |0
+<U78AA> \xE2\xEC |0
+<U78AB> \xE2\xF1 |0
+<U78AC> \xE2\xF5 |0
+<U78AD> \xE2\xEE |0
+<U78B0> \xB8\x49 |0
+<U78B2> \xE2\xEB |0
+<U78B3> \xBA\xD2 |0
+<U78B4> \xE2\xED |0
+<U78BA> \xBD\x54 |0
+<U78BB> \xE6\xC1 |0
+<U78BC> \xBD\x58 |0
+<U78BE> \xBD\x56 |0
+<U78C1> \xBA\xCF |0
+<U78C3> \xE6\xC8 |0
+<U78C4> \xE6\xC9 |0
+<U78C5> \xBD\x53 |0
+<U78C8> \xE6\xC7 |0
+<U78C9> \xE6\xCA |0
+<U78CA> \xBD\x55 |0
+<U78CB> \xBD\x52 |0
+<U78CC> \xE6\xC3 |0
+<U78CD> \xE6\xC0 |0
+<U78CE> \xE6\xC5 |0
+<U78CF> \xE6\xC2 |0
+<U78D0> \xBD\x59 |0
+<U78D1> \xE6\xC4 |0
+<U78D4> \xE6\xC6 |0
+<U78D5> \xBD\x57 |0
+<U78DA> \xBF\x6A |0
+<U78DB> \xEA\xA8 |0
+<U78DD> \xEA\xA2 |0
+<U78DE> \xEA\xA6 |0
+<U78DF> \xEA\xAC |0
+<U78E0> \xEA\xAD |0
+<U78E1> \xEA\xA9 |0
+<U78E2> \xEA\xAA |0
+<U78E3> \xEA\xA7 |0
+<U78E5> \xEA\xA4 |0
+<U78E7> \xBF\x6C |0
+<U78E8> \xBF\x69 |0
+<U78E9> \xEA\xA3 |0
+<U78EA> \xEA\xA5 |0
+<U78EC> \xBF\x6B |0
+<U78ED> \xEA\xAB |0
+<U78EF> \xC1\x46 |0
+<U78F2> \xED\xAA |0
+<U78F3> \xED\xA5 |0
+<U78F4> \xC1\x45 |0
+<U78F7> \xC1\x43 |0
+<U78F9> \xED\xAC |0
+<U78FA> \xC1\x44 |0
+<U78FB> \xED\xA8 |0
+<U78FC> \xED\xA9 |0
+<U78FD> \xED\xA6 |0
+<U78FE> \xED\xAD |0
+<U78FF> \xF0\x56 |0
+<U7901> \xC1\x47 |0
+<U7902> \xED\xA7 |0
+<U7904> \xED\xAE |0
+<U7905> \xED\xAB |0
+<U7909> \xF0\x5A |0
+<U790C> \xF0\x57 |0
+<U790E> \xC2\xA6 |0
+<U7910> \xF0\x5B |0
+<U7911> \xF0\x5D |0
+<U7912> \xF0\x5C |0
+<U7913> \xF0\x58 |0
+<U7914> \xF0\x59 |0
+<U7917> \xF2\xA3 |0
+<U7919> \xC3\xAA |0
+<U791B> \xF2\x7E |0
+<U791C> \xF2\xA2 |0
+<U791D> \xF2\x7D |0
+<U791E> \xF2\xA4 |0
+<U7921> \xF2\xA1 |0
+<U7923> \xF4\x7A |0
+<U7924> \xF4\x7D |0
+<U7925> \xF4\x79 |0
+<U7926> \xC4\x71 |0
+<U7927> \xF4\x7B |0
+<U7928> \xF4\x7C |0
+<U7929> \xF4\x7E |0
+<U792A> \xC4\x72 |0
+<U792B> \xC4\x74 |0
+<U792C> \xC4\x73 |0
+<U792D> \xF5\xE1 |0
+<U792F> \xF5\xE3 |0
+<U7931> \xF5\xE2 |0
+<U7935> \xF6\xF6 |0
+<U7938> \xF8\xB5 |0
+<U7939> \xF8\xFA |0
+<U793A> \xA5\xDC |0
+<U793D> \xCB\x72 |0
+<U793E> \xAA\xC0 |0
+<U793F> \xCD\xA3 |0
+<U7940> \xAA\xC1 |0
+<U7941> \xAA\xC2 |0
+<U7942> \xCD\xA2 |0
+<U7944> \xCF\xF8 |0
+<U7945> \xCF\xF7 |0
+<U7946> \xAC\xE6 |0
+<U7947> \xAC\xE9 |0
+<U7948> \xAC\xE8 |0
+<U7949> \xAC\xE7 |0
+<U794A> \xCF\xF4 |0
+<U794B> \xCF\xF6 |0
+<U794C> \xCF\xF5 |0
+<U794F> \xD2\xE8 |0
+<U7950> \xAF\xA7 |0
+<U7951> \xD2\xEC |0
+<U7952> \xD2\xEB |0
+<U7953> \xD2\xEA |0
+<U7954> \xD2\xE6 |0
+<U7955> \xAF\xA6 |0
+<U7956> \xAF\xAA |0
+<U7957> \xAF\xAD |0
+<U795A> \xAF\xAE |0
+<U795B> \xD2\xE7 |0
+<U795C> \xD2\xE9 |0
+<U795D> \xAF\xAC |0
+<U795E> \xAF\xAB |0
+<U795F> \xAF\xA9 |0
+<U7960> \xAF\xA8 |0
+<U7961> \xD6\xC2 |0
+<U7963> \xD6\xC0 |0
+<U7964> \xD6\xBC |0
+<U7965> \xB2\xBB |0
+<U7967> \xD6\xBD |0
+<U7968> \xB2\xBC |0
+<U7969> \xD6\xBE |0
+<U796A> \xD6\xBF |0
+<U796B> \xD6\xC1 |0
+<U796D> \xB2\xBD |0
+<U7970> \xDA\xD5 |0
+<U7972> \xDA\xD4 |0
+<U7973> \xDA\xD3 |0
+<U7974> \xDA\xD2 |0
+<U7979> \xDE\xF6 |0
+<U797A> \xB8\x52 |0
+<U797C> \xDE\xF3 |0
+<U797D> \xDE\xF5 |0
+<U797F> \xB8\x53 |0
+<U7981> \xB8\x54 |0
+<U7982> \xDE\xF4 |0
+<U7988> \xE3\x41 |0
+<U798A> \xE2\xF9 |0
+<U798B> \xE2\xFA |0
+<U798D> \xBA\xD7 |0
+<U798E> \xBA\xD5 |0
+<U798F> \xBA\xD6 |0
+<U7990> \xE3\x43 |0
+<U7992> \xE3\x42 |0
+<U7993> \xE2\xFE |0
+<U7994> \xE2\xFD |0
+<U7995> \xE2\xFC |0
+<U7996> \xE2\xFB |0
+<U7997> \xE3\x40 |0
+<U7998> \xE2\xF8 |0
+<U799A> \xE6\xCB |0
+<U799B> \xE6\xD0 |0
+<U799C> \xE6\xCE |0
+<U79A0> \xE6\xCD |0
+<U79A1> \xE6\xCC |0
+<U79A2> \xE6\xCF |0
+<U79A4> \xEA\xAE |0
+<U79A6> \xBF\x6D |0
+<U79A7> \xC1\x48 |0
+<U79A8> \xED\xB0 |0
+<U79AA> \xC1\x49 |0
+<U79AB> \xED\xAF |0
+<U79AC> \xF0\x5F |0
+<U79AD> \xF0\x5E |0
+<U79AE> \xC2\xA7 |0
+<U79B0> \xF2\xA5 |0
+<U79B1> \xC3\xAB |0
+<U79B2> \xF4\xA1 |0
+<U79B3> \xC5\xA1 |0
+<U79B4> \xF6\xF7 |0
+<U79B6> \xF8\xB7 |0
+<U79B7> \xF8\xB6 |0
+<U79B8> \xC9\xA8 |0
+<U79B9> \xAC\xEA |0
+<U79BA> \xAC\xEB |0
+<U79BB> \xD6\xC3 |0
+<U79BD> \xB8\x56 |0
+<U79BE> \xA5\xDD |0
+<U79BF> \xA8\x72 |0
+<U79C0> \xA8\x71 |0
+<U79C1> \xA8\x70 |0
+<U79C5> \xCD\xA4 |0
+<U79C8> \xAA\xC4 |0
+<U79C9> \xAA\xC3 |0
+<U79CB> \xAC\xEE |0
+<U79CD> \xCF\xFA |0
+<U79CE> \xCF\xFD |0
+<U79CF> \xCF\xFB |0
+<U79D1> \xAC\xEC |0
+<U79D2> \xAC\xED |0
+<U79D5> \xCF\xF9 |0
+<U79D6> \xCF\xFC |0
+<U79D8> \xAF\xB5 |0
+<U79DC> \xD2\xF3 |0
+<U79DD> \xD2\xF5 |0
+<U79DE> \xD2\xF4 |0
+<U79DF> \xAF\xB2 |0
+<U79E0> \xD2\xEF |0
+<U79E3> \xAF\xB0 |0
+<U79E4> \xAF\xAF |0
+<U79E6> \xAF\xB3 |0
+<U79E7> \xAF\xB1 |0
+<U79E9> \xAF\xB4 |0
+<U79EA> \xD2\xF2 |0
+<U79EB> \xD2\xED |0
+<U79EC> \xD2\xEE |0
+<U79ED> \xD2\xF1 |0
+<U79EE> \xD2\xF0 |0
+<U79F6> \xD6\xC6 |0
+<U79F7> \xD6\xC7 |0
+<U79F8> \xD6\xC5 |0
+<U79FA> \xD6\xC4 |0
+<U79FB> \xB2\xBE |0
+<U7A00> \xB5\x7D |0
+<U7A02> \xDA\xD6 |0
+<U7A03> \xDA\xD8 |0
+<U7A04> \xDA\xDA |0
+<U7A05> \xB5\x7C |0
+<U7A08> \xB5\x7A |0
+<U7A0A> \xDA\xD7 |0
+<U7A0B> \xB5\x7B |0
+<U7A0C> \xDA\xD9 |0
+<U7A0D> \xB5\x79 |0
+<U7A10> \xDF\x41 |0
+<U7A11> \xDE\xF7 |0
+<U7A12> \xDE\xFA |0
+<U7A13> \xDE\xFE |0
+<U7A14> \xB8\x5A |0
+<U7A15> \xDE\xFC |0
+<U7A17> \xDE\xFB |0
+<U7A18> \xDE\xF8 |0
+<U7A19> \xDE\xF9 |0
+<U7A1A> \xB8\x58 |0
+<U7A1B> \xDF\x40 |0
+<U7A1C> \xB8\x57 |0
+<U7A1E> \xB8\x5C |0
+<U7A1F> \xB8\x5B |0
+<U7A20> \xB8\x59 |0
+<U7A22> \xDE\xFD |0
+<U7A26> \xE3\x49 |0
+<U7A28> \xE3\x48 |0
+<U7A2B> \xE3\x44 |0
+<U7A2E> \xBA\xD8 |0
+<U7A2F> \xE3\x47 |0
+<U7A30> \xE3\x46 |0
+<U7A31> \xBA\xD9 |0
+<U7A37> \xBD\x5E |0
+<U7A39> \xE6\xD2 |0
+<U7A3B> \xBD\x5F |0
+<U7A3C> \xBD\x5B |0
+<U7A3D> \xBD\x5D |0
+<U7A3F> \xBD\x5A |0
+<U7A40> \xBD\x5C |0
+<U7A44> \xEA\xAF |0
+<U7A46> \xBF\x70 |0
+<U7A47> \xEA\xB1 |0
+<U7A48> \xEA\xB0 |0
+<U7A4A> \xE3\x45 |0
+<U7A4B> \xBF\x72 |0
+<U7A4C> \xBF\x71 |0
+<U7A4D> \xBF\x6E |0
+<U7A4E> \xBF\x6F |0
+<U7A54> \xED\xB5 |0
+<U7A56> \xED\xB3 |0
+<U7A57> \xC1\x4A |0
+<U7A58> \xED\xB4 |0
+<U7A5A> \xED\xB6 |0
+<U7A5B> \xED\xB2 |0
+<U7A5C> \xED\xB1 |0
+<U7A5F> \xF0\x60 |0
+<U7A60> \xC2\xAA |0
+<U7A61> \xC2\xA8 |0
+<U7A62> \xC2\xA9 |0
+<U7A67> \xF2\xA6 |0
+<U7A68> \xF2\xA7 |0
+<U7A69> \xC3\xAD |0
+<U7A6B> \xC3\xAC |0
+<U7A6C> \xF4\xA3 |0
+<U7A6D> \xF4\xA4 |0
+<U7A6E> \xF4\xA2 |0
+<U7A70> \xF6\xF8 |0
+<U7A71> \xF6\xF9 |0
+<U7A74> \xA5\xDE |0
+<U7A75> \xCA\x48 |0
+<U7A76> \xA8\x73 |0
+<U7A78> \xCD\xA5 |0
+<U7A79> \xAA\xC6 |0
+<U7A7A> \xAA\xC5 |0
+<U7A7B> \xCD\xA6 |0
+<U7A7E> \xD0\x40 |0
+<U7A7F> \xAC\xEF |0
+<U7A80> \xCF\xFE |0
+<U7A81> \xAC\xF0 |0
+<U7A84> \xAF\xB6 |0
+<U7A85> \xD2\xF8 |0
+<U7A86> \xD2\xF6 |0
+<U7A87> \xD2\xFC |0
+<U7A88> \xAF\xB7 |0
+<U7A89> \xD2\xF7 |0
+<U7A8A> \xD2\xFB |0
+<U7A8B> \xD2\xF9 |0
+<U7A8C> \xD2\xFA |0
+<U7A8F> \xD6\xC8 |0
+<U7A90> \xD6\xCA |0
+<U7A92> \xB2\xBF |0
+<U7A94> \xD6\xC9 |0
+<U7A95> \xB2\xC0 |0
+<U7A96> \xB5\xA2 |0
+<U7A97> \xB5\xA1 |0
+<U7A98> \xB5\x7E |0
+<U7A99> \xDA\xDB |0
+<U7A9E> \xDF\x44 |0
+<U7A9F> \xB8\x5D |0
+<U7AA0> \xB8\x5E |0
+<U7AA2> \xDF\x43 |0
+<U7AA3> \xDF\x42 |0
+<U7AA8> \xE3\x4A |0
+<U7AA9> \xBA\xDB |0
+<U7AAA> \xBA\xDA |0
+<U7AAB> \xE3\x4B |0
+<U7AAC> \xE3\x4C |0
+<U7AAE> \xBD\x61 |0
+<U7AAF> \xBD\x60 |0
+<U7AB1> \xEA\xB5 |0
+<U7AB2> \xE6\xD3 |0
+<U7AB3> \xE6\xD5 |0
+<U7AB4> \xE6\xD4 |0
+<U7AB5> \xEA\xB4 |0
+<U7AB6> \xEA\xB2 |0
+<U7AB7> \xEA\xB6 |0
+<U7AB8> \xEA\xB3 |0
+<U7ABA> \xBF\x73 |0
+<U7ABE> \xED\xB7 |0
+<U7ABF> \xC1\x4B |0
+<U7AC0> \xED\xB8 |0
+<U7AC1> \xED\xB9 |0
+<U7AC4> \xC2\xAB |0
+<U7AC5> \xC2\xAC |0
+<U7AC7> \xC4\x75 |0
+<U7ACA> \xC5\xD1 |0
+<U7ACB> \xA5\xDF |0
+<U7AD1> \xD0\x41 |0
+<U7AD8> \xD2\xFD |0
+<U7AD9> \xAF\xB8 |0
+<U7ADF> \xB3\xBA |0
+<U7AE0> \xB3\xB9 |0
+<U7AE3> \xB5\xA4 |0
+<U7AE4> \xDA\xDD |0
+<U7AE5> \xB5\xA3 |0
+<U7AE6> \xDA\xDC |0
+<U7AEB> \xDF\x45 |0
+<U7AED> \xBA\xDC |0
+<U7AEE> \xE3\x4D |0
+<U7AEF> \xBA\xDD |0
+<U7AF6> \xC4\x76 |0
+<U7AF7> \xF4\xA5 |0
+<U7AF9> \xA6\xCB |0
+<U7AFA> \xAA\xC7 |0
+<U7AFB> \xCD\xA7 |0
+<U7AFD> \xAC\xF2 |0
+<U7AFF> \xAC\xF1 |0
+<U7B00> \xD0\x42 |0
+<U7B01> \xD0\x43 |0
+<U7B04> \xD3\x40 |0
+<U7B05> \xD3\x42 |0
+<U7B06> \xAF\xB9 |0
+<U7B08> \xD3\x44 |0
+<U7B09> \xD3\x47 |0
+<U7B0A> \xD3\x45 |0
+<U7B0E> \xD3\x46 |0
+<U7B0F> \xD3\x43 |0
+<U7B10> \xD2\xFE |0
+<U7B11> \xAF\xBA |0
+<U7B12> \xD3\x48 |0
+<U7B13> \xD3\x41 |0
+<U7B18> \xD6\xD3 |0
+<U7B19> \xB2\xC6 |0
+<U7B1A> \xD6\xDC |0
+<U7B1B> \xB2\xC3 |0
+<U7B1D> \xD6\xD5 |0
+<U7B1E> \xB2\xC7 |0
+<U7B20> \xB2\xC1 |0
+<U7B22> \xD6\xD0 |0
+<U7B23> \xD6\xDD |0
+<U7B24> \xD6\xD1 |0
+<U7B25> \xD6\xCE |0
+<U7B26> \xB2\xC5 |0
+<U7B28> \xB2\xC2 |0
+<U7B2A> \xD6\xD4 |0
+<U7B2B> \xD6\xD7 |0
+<U7B2C> \xB2\xC4 |0
+<U7B2D> \xD6\xD8 |0
+<U7B2E> \xB2\xC8 |0
+<U7B2F> \xD6\xD9 |0
+<U7B30> \xD6\xCF |0
+<U7B31> \xD6\xD6 |0
+<U7B32> \xD6\xDA |0
+<U7B33> \xD6\xD2 |0
+<U7B34> \xD6\xCD |0
+<U7B35> \xD6\xCB |0
+<U7B38> \xD6\xDB |0
+<U7B3B> \xDA\xDF |0
+<U7B40> \xDA\xE4 |0
+<U7B44> \xDA\xE0 |0
+<U7B45> \xDA\xE6 |0
+<U7B46> \xB5\xA7 |0
+<U7B47> \xD6\xCC |0
+<U7B48> \xDA\xE1 |0
+<U7B49> \xB5\xA5 |0
+<U7B4A> \xDA\xDE |0
+<U7B4B> \xB5\xAC |0
+<U7B4C> \xDA\xE2 |0
+<U7B4D> \xB5\xAB |0
+<U7B4E> \xDA\xE3 |0
+<U7B4F> \xB5\xAD |0
+<U7B50> \xB5\xA8 |0
+<U7B51> \xB5\xAE |0
+<U7B52> \xB5\xA9 |0
+<U7B54> \xB5\xAA |0
+<U7B56> \xB5\xA6 |0
+<U7B58> \xDA\xE5 |0
+<U7B60> \xB8\x61 |0
+<U7B61> \xDF\x50 |0
+<U7B63> \xDF\x53 |0
+<U7B64> \xDF\x47 |0
+<U7B65> \xDF\x4C |0
+<U7B66> \xDF\x46 |0
+<U7B67> \xB8\x63 |0
+<U7B69> \xDF\x4A |0
+<U7B6D> \xDF\x48 |0
+<U7B6E> \xB8\x62 |0
+<U7B70> \xDF\x4F |0
+<U7B71> \xDF\x4E |0
+<U7B72> \xDF\x4B |0
+<U7B73> \xDF\x4D |0
+<U7B74> \xDF\x49 |0
+<U7B75> \xBA\xE1 |0
+<U7B76> \xDF\x52 |0
+<U7B77> \xB8\x5F |0
+<U7B78> \xDF\x51 |0
+<U7B82> \xE3\x5D |0
+<U7B84> \xBA\xE8 |0
+<U7B85> \xE3\x58 |0
+<U7B87> \xBA\xE7 |0
+<U7B88> \xE3\x4E |0
+<U7B8A> \xE3\x50 |0
+<U7B8B> \xBA\xE0 |0
+<U7B8C> \xE3\x55 |0
+<U7B8D> \xE3\x54 |0
+<U7B8E> \xE3\x57 |0
+<U7B8F> \xBA\xE5 |0
+<U7B90> \xE3\x52 |0
+<U7B91> \xE3\x51 |0
+<U7B94> \xBA\xE4 |0
+<U7B95> \xBA\xDF |0
+<U7B96> \xE3\x53 |0
+<U7B97> \xBA\xE2 |0
+<U7B98> \xE3\x59 |0
+<U7B99> \xE3\x5B |0
+<U7B9B> \xE3\x56 |0
+<U7B9C> \xE3\x4F |0
+<U7B9D> \xBA\xE3 |0
+<U7BA0> \xBD\x69 |0
+<U7BA1> \xBA\xDE |0
+<U7BA4> \xE3\x5C |0
+<U7BAC> \xE6\xD9 |0
+<U7BAD> \xBD\x62 |0
+<U7BAF> \xE6\xDB |0
+<U7BB1> \xBD\x63 |0
+<U7BB4> \xBD\x65 |0
+<U7BB5> \xE6\xDE |0
+<U7BB7> \xE6\xD6 |0
+<U7BB8> \xBA\xE6 |0
+<U7BB9> \xE6\xDC |0
+<U7BBE> \xE6\xD8 |0
+<U7BC0> \xB8\x60 |0
+<U7BC1> \xBD\x68 |0
+<U7BC4> \xBD\x64 |0
+<U7BC6> \xBD\x66 |0
+<U7BC7> \xBD\x67 |0
+<U7BC9> \xBF\x76 |0
+<U7BCA> \xE6\xDD |0
+<U7BCB> \xE6\xD7 |0
+<U7BCC> \xBD\x6A |0
+<U7BCE> \xE6\xDA |0
+<U7BD4> \xEA\xC0 |0
+<U7BD5> \xEA\xBB |0
+<U7BD8> \xEA\xC5 |0
+<U7BD9> \xBF\x74 |0
+<U7BDA> \xEA\xBD |0
+<U7BDB> \xBF\x78 |0
+<U7BDC> \xEA\xC3 |0
+<U7BDD> \xEA\xBA |0
+<U7BDE> \xEA\xB7 |0
+<U7BDF> \xEA\xC6 |0
+<U7BE0> \xC1\x51 |0
+<U7BE1> \xBF\x79 |0
+<U7BE2> \xEA\xC2 |0
+<U7BE3> \xEA\xB8 |0
+<U7BE4> \xBF\x77 |0
+<U7BE5> \xEA\xBC |0
+<U7BE6> \xBF\x7B |0
+<U7BE7> \xEA\xB9 |0
+<U7BE8> \xEA\xBE |0
+<U7BE9> \xBF\x7A |0
+<U7BEA> \xEA\xC1 |0
+<U7BEB> \xEA\xC4 |0
+<U7BF0> \xED\xCB |0
+<U7BF1> \xED\xCC |0
+<U7BF2> \xED\xBC |0
+<U7BF3> \xED\xC3 |0
+<U7BF4> \xED\xC1 |0
+<U7BF7> \xC1\x4F |0
+<U7BF8> \xED\xC8 |0
+<U7BF9> \xEA\xBF |0
+<U7BFB> \xED\xBF |0
+<U7BFD> \xED\xC9 |0
+<U7BFE> \xC1\x4E |0
+<U7BFF> \xED\xBE |0
+<U7C00> \xED\xBD |0
+<U7C01> \xED\xC7 |0
+<U7C02> \xED\xC4 |0
+<U7C03> \xED\xC6 |0
+<U7C05> \xED\xBA |0
+<U7C06> \xED\xCA |0
+<U7C07> \xC1\x4C |0
+<U7C09> \xED\xC5 |0
+<U7C0A> \xED\xCE |0
+<U7C0B> \xED\xC2 |0
+<U7C0C> \xC1\x50 |0
+<U7C0D> \xC1\x4D |0
+<U7C0E> \xED\xC0 |0
+<U7C0F> \xED\xBB |0
+<U7C10> \xED\xCD |0
+<U7C11> \xBF\x75 |0
+<U7C19> \xF0\x63 |0
+<U7C1C> \xF0\x61 |0
+<U7C1D> \xF0\x67 |0
+<U7C1E> \xC2\xB0 |0
+<U7C1F> \xF0\x65 |0
+<U7C20> \xF0\x64 |0
+<U7C21> \xC2\xB2 |0
+<U7C22> \xF0\x6A |0
+<U7C23> \xC2\xB1 |0
+<U7C25> \xF0\x6B |0
+<U7C26> \xF0\x68 |0
+<U7C27> \xC2\xAE |0
+<U7C28> \xF0\x69 |0
+<U7C29> \xF0\x62 |0
+<U7C2A> \xC2\xAF |0
+<U7C2B> \xC2\xAD |0
+<U7C2C> \xF2\xAB |0
+<U7C2D> \xF0\x66 |0
+<U7C30> \xF0\x6C |0
+<U7C33> \xF2\xA8 |0
+<U7C37> \xC3\xB2 |0
+<U7C38> \xC3\xB0 |0
+<U7C39> \xF2\xAA |0
+<U7C3B> \xF2\xAC |0
+<U7C3C> \xF2\xA9 |0
+<U7C3D> \xC3\xB1 |0
+<U7C3E> \xC3\xAE |0
+<U7C3F> \xC3\xAF |0
+<U7C40> \xC3\xB3 |0
+<U7C43> \xC4\x78 |0
+<U7C45> \xF4\xAA |0
+<U7C47> \xF4\xA9 |0
+<U7C48> \xF4\xA7 |0
+<U7C49> \xF4\xA6 |0
+<U7C4A> \xF4\xA8 |0
+<U7C4C> \xC4\x77 |0
+<U7C4D> \xC4\x79 |0
+<U7C50> \xC4\xF0 |0
+<U7C53> \xF5\xE5 |0
+<U7C54> \xF5\xE4 |0
+<U7C57> \xF6\xFA |0
+<U7C59> \xF6\xFC |0
+<U7C5A> \xF6\xFE |0
+<U7C5B> \xF6\xFD |0
+<U7C5C> \xF6\xFB |0
+<U7C5F> \xC5\xA3 |0
+<U7C60> \xC5\xA2 |0
+<U7C63> \xC5\xD3 |0
+<U7C64> \xC5\xD2 |0
+<U7C65> \xC5\xD4 |0
+<U7C66> \xF7\xED |0
+<U7C67> \xF7\xEC |0
+<U7C69> \xF8\xFB |0
+<U7C6A> \xF8\xB8 |0
+<U7C6B> \xF8\xFC |0
+<U7C6C> \xC6\x58 |0
+<U7C6E> \xC6\x59 |0
+<U7C6F> \xF9\x6D |0
+<U7C72> \xC6\x7E |0
+<U7C73> \xA6\xCC |0
+<U7C75> \xCD\xA8 |0
+<U7C78> \xD0\x45 |0
+<U7C79> \xD0\x46 |0
+<U7C7A> \xD0\x44 |0
+<U7C7D> \xAC\xF3 |0
+<U7C7F> \xD0\x47 |0
+<U7C80> \xD0\x48 |0
+<U7C81> \xD0\x49 |0
+<U7C84> \xD3\x49 |0
+<U7C85> \xD3\x4F |0
+<U7C88> \xD3\x4D |0
+<U7C89> \xAF\xBB |0
+<U7C8A> \xD3\x4B |0
+<U7C8C> \xD3\x4C |0
+<U7C8D> \xD3\x4E |0
+<U7C91> \xD3\x4A |0
+<U7C92> \xB2\xC9 |0
+<U7C94> \xD6\xDE |0
+<U7C95> \xB2\xCB |0
+<U7C96> \xD6\xE0 |0
+<U7C97> \xB2\xCA |0
+<U7C98> \xD6\xDF |0
+<U7C9E> \xDA\xE8 |0
+<U7C9F> \xB5\xAF |0
+<U7CA1> \xDA\xEA |0
+<U7CA2> \xDA\xE7 |0
+<U7CA3> \xD6\xE1 |0
+<U7CA5> \xB5\xB0 |0
+<U7CA7> \xF9\xDB |0
+<U7CA8> \xDA\xE9 |0
+<U7CAF> \xDF\x56 |0
+<U7CB1> \xB8\x64 |0
+<U7CB2> \xDF\x54 |0
+<U7CB3> \xB8\x65 |0
+<U7CB4> \xDF\x55 |0
+<U7CB5> \xB8\x66 |0
+<U7CB9> \xBA\xE9 |0
+<U7CBA> \xE3\x61 |0
+<U7CBB> \xE3\x5E |0
+<U7CBC> \xE3\x60 |0
+<U7CBD> \xBA\xEA |0
+<U7CBE> \xBA\xEB |0
+<U7CBF> \xE3\x5F |0
+<U7CC5> \xE6\xDF |0
+<U7CC8> \xE6\xE0 |0
+<U7CCA> \xBD\x6B |0
+<U7CCB> \xE6\xE2 |0
+<U7CCC> \xE6\xE1 |0
+<U7CCE> \xA2\x61 |0
+<U7CD0> \xEA\xCA |0
+<U7CD1> \xEA\xCB |0
+<U7CD2> \xEA\xC7 |0
+<U7CD4> \xEA\xC8 |0
+<U7CD5> \xBF\x7C |0
+<U7CD6> \xBF\x7D |0
+<U7CD7> \xEA\xC9 |0
+<U7CD9> \xC1\x57 |0
+<U7CDC> \xC1\x53 |0
+<U7CDD> \xC1\x58 |0
+<U7CDE> \xC1\x54 |0
+<U7CDF> \xC1\x56 |0
+<U7CE0> \xC1\x52 |0
+<U7CE2> \xC1\x55 |0
+<U7CE7> \xC2\xB3 |0
+<U7CE8> \xED\xCF |0
+<U7CEA> \xF2\xAE |0
+<U7CEC> \xF2\xAD |0
+<U7CEE> \xF4\xAB |0
+<U7CEF> \xC4\x7A |0
+<U7CF0> \xC4\x7B |0
+<U7CF1> \xF7\x41 |0
+<U7CF2> \xF5\xE6 |0
+<U7CF4> \xF7\x40 |0
+<U7CF6> \xF8\xFD |0
+<U7CF7> \xF9\xA4 |0
+<U7CF8> \xA6\xCD |0
+<U7CFB> \xA8\x74 |0
+<U7CFD> \xCD\xA9 |0
+<U7CFE> \xAA\xC8 |0
+<U7D00> \xAC\xF6 |0
+<U7D01> \xD0\x4C |0
+<U7D02> \xAC\xF4 |0
+<U7D03> \xD0\x4A |0
+<U7D04> \xAC\xF9 |0
+<U7D05> \xAC\xF5 |0
+<U7D06> \xAC\xFA |0
+<U7D07> \xAC\xF8 |0
+<U7D08> \xD0\x4B |0
+<U7D09> \xAC\xF7 |0
+<U7D0A> \xAF\xBF |0
+<U7D0B> \xAF\xBE |0
+<U7D0C> \xD3\x5A |0
+<U7D0D> \xAF\xC7 |0
+<U7D0E> \xD3\x53 |0
+<U7D0F> \xD3\x59 |0
+<U7D10> \xAF\xC3 |0
+<U7D11> \xD3\x52 |0
+<U7D12> \xD3\x58 |0
+<U7D13> \xD3\x56 |0
+<U7D14> \xAF\xC2 |0
+<U7D15> \xAF\xC4 |0
+<U7D16> \xD3\x55 |0
+<U7D17> \xAF\xBD |0
+<U7D18> \xD3\x54 |0
+<U7D19> \xAF\xC8 |0
+<U7D1A> \xAF\xC5 |0
+<U7D1B> \xAF\xC9 |0
+<U7D1C> \xAF\xC6 |0
+<U7D1D> \xD3\x51 |0
+<U7D1E> \xD3\x50 |0
+<U7D1F> \xD3\x57 |0
+<U7D20> \xAF\xC0 |0
+<U7D21> \xAF\xBC |0
+<U7D22> \xAF\xC1 |0
+<U7D28> \xD6\xF0 |0
+<U7D29> \xD6\xE9 |0
+<U7D2B> \xB5\xB5 |0
+<U7D2C> \xD6\xE8 |0
+<U7D2E> \xB2\xCF |0
+<U7D2F> \xB2\xD6 |0
+<U7D30> \xB2\xD3 |0
+<U7D31> \xB2\xD9 |0
+<U7D32> \xB2\xD8 |0
+<U7D33> \xB2\xD4 |0
+<U7D35> \xD6\xE2 |0
+<U7D36> \xD6\xE5 |0
+<U7D38> \xD6\xE4 |0
+<U7D39> \xB2\xD0 |0
+<U7D3A> \xD6\xE6 |0
+<U7D3B> \xD6\xEF |0
+<U7D3C> \xB2\xD1 |0
+<U7D3D> \xD6\xE3 |0
+<U7D3E> \xD6\xEC |0
+<U7D3F> \xD6\xED |0
+<U7D40> \xB2\xD2 |0
+<U7D41> \xD6\xEA |0
+<U7D42> \xB2\xD7 |0
+<U7D43> \xB2\xCD |0
+<U7D44> \xB2\xD5 |0
+<U7D45> \xD6\xE7 |0
+<U7D46> \xB2\xCC |0
+<U7D47> \xD6\xEB |0
+<U7D4A> \xD6\xEE |0
+<U7D4E> \xDA\xFB |0
+<U7D4F> \xDA\xF2 |0
+<U7D50> \xB5\xB2 |0
+<U7D51> \xDA\xF9 |0
+<U7D52> \xDA\xF6 |0
+<U7D53> \xDA\xEE |0
+<U7D54> \xDA\xF7 |0
+<U7D55> \xB5\xB4 |0
+<U7D56> \xDA\xEF |0
+<U7D58> \xDA\xEB |0
+<U7D5B> \xB8\x6C |0
+<U7D5C> \xDA\xF4 |0
+<U7D5E> \xB5\xB1 |0
+<U7D5F> \xDA\xFA |0
+<U7D61> \xB5\xB8 |0
+<U7D62> \xB5\xBA |0
+<U7D63> \xDA\xED |0
+<U7D66> \xB5\xB9 |0
+<U7D67> \xDA\xF0 |0
+<U7D68> \xB5\xB3 |0
+<U7D69> \xDA\xF8 |0
+<U7D6A> \xDA\xF1 |0
+<U7D6B> \xDA\xF5 |0
+<U7D6D> \xDA\xF3 |0
+<U7D6E> \xB5\xB6 |0
+<U7D6F> \xDA\xEC |0
+<U7D70> \xB5\xBB |0
+<U7D71> \xB2\xCE |0
+<U7D72> \xB5\xB7 |0
+<U7D73> \xB5\xBC |0
+<U7D79> \xB8\x68 |0
+<U7D7A> \xDF\x5D |0
+<U7D7B> \xDF\x5F |0
+<U7D7C> \xDF\x61 |0
+<U7D7D> \xDF\x65 |0
+<U7D7F> \xDF\x5B |0
+<U7D80> \xDF\x59 |0
+<U7D81> \xB8\x6A |0
+<U7D83> \xDF\x60 |0
+<U7D84> \xDF\x64 |0
+<U7D85> \xDF\x5C |0
+<U7D86> \xDF\x58 |0
+<U7D88> \xDF\x57 |0
+<U7D8C> \xDF\x62 |0
+<U7D8D> \xDF\x5A |0
+<U7D8E> \xDF\x5E |0
+<U7D8F> \xB8\x6B |0
+<U7D91> \xB8\x69 |0
+<U7D92> \xDF\x66 |0
+<U7D93> \xB8\x67 |0
+<U7D94> \xDF\x63 |0
+<U7D96> \xE3\x72 |0
+<U7D9C> \xBA\xEE |0
+<U7D9D> \xE3\x6A |0
+<U7D9E> \xBD\x78 |0
+<U7D9F> \xE3\x74 |0
+<U7DA0> \xBA\xF1 |0
+<U7DA1> \xE3\x78 |0
+<U7DA2> \xBA\xF7 |0
+<U7DA3> \xE3\x65 |0
+<U7DA6> \xE3\x75 |0
+<U7DA7> \xE3\x62 |0
+<U7DA9> \xE3\x77 |0
+<U7DAA> \xE3\x66 |0
+<U7DAC> \xBA\xFE |0
+<U7DAD> \xBA\xFB |0
+<U7DAE> \xE3\x76 |0
+<U7DAF> \xE3\x70 |0
+<U7DB0> \xBA\xED |0
+<U7DB1> \xBA\xF5 |0
+<U7DB2> \xBA\xF4 |0
+<U7DB4> \xBA\xF3 |0
+<U7DB5> \xBA\xF9 |0
+<U7DB7> \xE3\x63 |0
+<U7DB8> \xBA\xFA |0
+<U7DB9> \xE3\x71 |0
+<U7DBA> \xBA\xF6 |0
+<U7DBB> \xBA\xEC |0
+<U7DBC> \xE3\x73 |0
+<U7DBD> \xBA\xEF |0
+<U7DBE> \xBA\xF0 |0
+<U7DBF> \xBA\xF8 |0
+<U7DC0> \xE3\x68 |0
+<U7DC1> \xE3\x67 |0
+<U7DC2> \xE3\x64 |0
+<U7DC4> \xE3\x6C |0
+<U7DC5> \xE3\x69 |0
+<U7DC6> \xE3\x6D |0
+<U7DC7> \xBA\xFD |0
+<U7DC9> \xE3\x79 |0
+<U7DCA> \xBA\xF2 |0
+<U7DCB> \xE3\x6E |0
+<U7DCC> \xE3\x6F |0
+<U7DCE> \xE3\x6B |0
+<U7DD2> \xBA\xFC |0
+<U7DD7> \xE6\xE7 |0
+<U7DD8> \xBD\x70 |0
+<U7DD9> \xBD\x79 |0
+<U7DDA> \xBD\x75 |0
+<U7DDB> \xE6\xE4 |0
+<U7DDD> \xBD\x72 |0
+<U7DDE> \xBD\x76 |0
+<U7DDF> \xE6\xF0 |0
+<U7DE0> \xBD\x6C |0
+<U7DE1> \xE6\xE8 |0
+<U7DE3> \xBD\x74 |0
+<U7DE6> \xE6\xEB |0
+<U7DE7> \xE6\xE6 |0
+<U7DE8> \xBD\x73 |0
+<U7DE9> \xBD\x77 |0
+<U7DEA> \xE6\xE5 |0
+<U7DEC> \xBD\x71 |0
+<U7DEE> \xE6\xEF |0
+<U7DEF> \xBD\x6E |0
+<U7DF0> \xE6\xEE |0
+<U7DF1> \xE6\xED |0
+<U7DF2> \xBD\x7A |0
+<U7DF3> \xE5\x72 |0
+<U7DF4> \xBD\x6D |0
+<U7DF6> \xE6\xEC |0
+<U7DF7> \xE6\xE3 |0
+<U7DF9> \xBD\x7B |0
+<U7DFA> \xE6\xEA |0
+<U7DFB> \xBD\x6F |0
+<U7E03> \xE6\xE9 |0
+<U7E08> \xBF\xA2 |0
+<U7E09> \xBF\xA7 |0
+<U7E0A> \xBF\x7E |0
+<U7E0B> \xEA\xD8 |0
+<U7E0C> \xEA\xCF |0
+<U7E0D> \xEA\xDB |0
+<U7E0E> \xEA\xD3 |0
+<U7E0F> \xEA\xD9 |0
+<U7E10> \xBF\xA8 |0
+<U7E11> \xBF\xA1 |0
+<U7E12> \xEA\xCC |0
+<U7E13> \xEA\xD2 |0
+<U7E14> \xEA\xDC |0
+<U7E15> \xEA\xD5 |0
+<U7E16> \xEA\xDA |0
+<U7E17> \xEA\xCE |0
+<U7E1A> \xEA\xD6 |0
+<U7E1B> \xBF\xA3 |0
+<U7E1C> \xEA\xD4 |0
+<U7E1D> \xBF\xA6 |0
+<U7E1E> \xBF\xA5 |0
+<U7E1F> \xEA\xD0 |0
+<U7E20> \xEA\xD1 |0
+<U7E21> \xEA\xCD |0
+<U7E22> \xEA\xD7 |0
+<U7E23> \xBF\xA4 |0
+<U7E24> \xEA\xDE |0
+<U7E25> \xEA\xDD |0
+<U7E29> \xED\xDA |0
+<U7E2A> \xED\xD6 |0
+<U7E2B> \xC1\x5F |0
+<U7E2D> \xED\xD0 |0
+<U7E2E> \xC1\x59 |0
+<U7E2F> \xC1\x69 |0
+<U7E30> \xED\xDC |0
+<U7E31> \xC1\x61 |0
+<U7E32> \xC1\x5D |0
+<U7E33> \xED\xD3 |0
+<U7E34> \xC1\x64 |0
+<U7E35> \xC1\x67 |0
+<U7E36> \xED\xDE |0
+<U7E37> \xC1\x5C |0
+<U7E38> \xED\xD5 |0
+<U7E39> \xC1\x65 |0
+<U7E3A> \xED\xE0 |0
+<U7E3B> \xED\xDD |0
+<U7E3C> \xED\xD1 |0
+<U7E3D> \xC1\x60 |0
+<U7E3E> \xC1\x5A |0
+<U7E3F> \xC1\x68 |0
+<U7E40> \xED\xD8 |0
+<U7E41> \xC1\x63 |0
+<U7E42> \xED\xD2 |0
+<U7E43> \xC1\x5E |0
+<U7E44> \xED\xDF |0
+<U7E45> \xC1\x62 |0
+<U7E46> \xC1\x5B |0
+<U7E47> \xED\xD9 |0
+<U7E48> \xC1\x66 |0
+<U7E49> \xED\xD7 |0
+<U7E4C> \xED\xDB |0
+<U7E50> \xF0\x6E |0
+<U7E51> \xF0\x74 |0
+<U7E52> \xC2\xB9 |0
+<U7E53> \xF0\x77 |0
+<U7E54> \xC2\xB4 |0
+<U7E55> \xC2\xB5 |0
+<U7E56> \xF0\x6F |0
+<U7E57> \xF0\x76 |0
+<U7E58> \xF0\x71 |0
+<U7E59> \xC2\xBA |0
+<U7E5A> \xC2\xB7 |0
+<U7E5C> \xF0\x6D |0
+<U7E5E> \xC2\xB6 |0
+<U7E5F> \xF0\x73 |0
+<U7E60> \xF0\x75 |0
+<U7E61> \xC2\xB8 |0
+<U7E62> \xF0\x72 |0
+<U7E63> \xF0\x70 |0
+<U7E68> \xF2\xB8 |0
+<U7E69> \xC3\xB7 |0
+<U7E6A> \xC3\xB8 |0
+<U7E6B> \xC3\xB4 |0
+<U7E6D> \xC3\xB5 |0
+<U7E6F> \xF2\xB4 |0
+<U7E70> \xF2\xB2 |0
+<U7E72> \xF2\xB6 |0
+<U7E73> \xC3\xBA |0
+<U7E74> \xF2\xB7 |0
+<U7E75> \xF2\xB0 |0
+<U7E76> \xF2\xAF |0
+<U7E77> \xF2\xB3 |0
+<U7E78> \xF2\xB1 |0
+<U7E79> \xC3\xB6 |0
+<U7E7A> \xF2\xB5 |0
+<U7E7B> \xF4\xAC |0
+<U7E7C> \xC4\x7E |0
+<U7E7D> \xC4\x7D |0
+<U7E7E> \xF4\xAD |0
+<U7E80> \xF4\xAF |0
+<U7E81> \xF4\xAE |0
+<U7E82> \xC4\xA1 |0
+<U7E86> \xF5\xEB |0
+<U7E87> \xF5\xE8 |0
+<U7E88> \xF5\xE9 |0
+<U7E8A> \xF5\xE7 |0
+<U7E8B> \xF5\xEA |0
+<U7E8C> \xC4\xF2 |0
+<U7E8D> \xF5\xEC |0
+<U7E8F> \xC4\xF1 |0
+<U7E91> \xF7\x42 |0
+<U7E93> \xC5\xD5 |0
+<U7E94> \xC5\xD7 |0
+<U7E95> \xF7\xEE |0
+<U7E96> \xC5\xD6 |0
+<U7E97> \xF8\xB9 |0
+<U7E98> \xF9\x40 |0
+<U7E99> \xF9\x42 |0
+<U7E9A> \xF8\xFE |0
+<U7E9B> \xF9\x41 |0
+<U7E9C> \xC6\x6C |0
+<U7F36> \xA6\xCE |0
+<U7F38> \xAC\xFB |0
+<U7F39> \xD2\x6F |0
+<U7F3A> \xAF\xCA |0
+<U7F3D> \xB2\xDA |0
+<U7F3E> \xDA\xFC |0
+<U7F3F> \xDA\xFD |0
+<U7F43> \xEA\xDF |0
+<U7F44> \xC1\x6A |0
+<U7F45> \xED\xE1 |0
+<U7F48> \xC2\xBB |0
+<U7F4A> \xF2\xBA |0
+<U7F4B> \xF2\xB9 |0
+<U7F4C> \xC4\xA2 |0
+<U7F4D> \xF5\xED |0
+<U7F4F> \xF7\x43 |0
+<U7F50> \xC5\xF8 |0
+<U7F51> \xCA\x49 |0
+<U7F54> \xAA\xC9 |0
+<U7F55> \xA8\x75 |0
+<U7F58> \xD0\x4D |0
+<U7F5B> \xD3\x60 |0
+<U7F5C> \xD3\x5B |0
+<U7F5D> \xD3\x5F |0
+<U7F5E> \xD3\x5D |0
+<U7F5F> \xAF\xCB |0
+<U7F60> \xD3\x5E |0
+<U7F61> \xD3\x5C |0
+<U7F63> \xD6\xF1 |0
+<U7F65> \xDA\xFE |0
+<U7F66> \xDB\x40 |0
+<U7F67> \xDF\x69 |0
+<U7F68> \xDF\x6A |0
+<U7F69> \xB8\x6E |0
+<U7F6A> \xB8\x6F |0
+<U7F6B> \xDF\x68 |0
+<U7F6C> \xDF\x6B |0
+<U7F6D> \xDF\x67 |0
+<U7F6E> \xB8\x6D |0
+<U7F70> \xBB\x40 |0
+<U7F72> \xB8\x70 |0
+<U7F73> \xE3\x7A |0
+<U7F75> \xBD\x7C |0
+<U7F76> \xE6\xF1 |0
+<U7F77> \xBD\x7D |0
+<U7F79> \xBF\xA9 |0
+<U7F7A> \xEA\xE2 |0
+<U7F7B> \xEA\xE0 |0
+<U7F7C> \xEA\xE1 |0
+<U7F7D> \xED\xE4 |0
+<U7F7E> \xED\xE3 |0
+<U7F7F> \xED\xE2 |0
+<U7F83> \xF2\xBB |0
+<U7F85> \xC3\xB9 |0
+<U7F86> \xF2\xBC |0
+<U7F87> \xF7\x44 |0
+<U7F88> \xC5\xF9 |0
+<U7F89> \xF8\xBA |0
+<U7F8A> \xA6\xCF |0
+<U7F8B> \xAA\xCB |0
+<U7F8C> \xAA\xCA |0
+<U7F8D> \xD0\x4F |0
+<U7F8E> \xAC\xFC |0
+<U7F91> \xD0\x4E |0
+<U7F92> \xD3\x62 |0
+<U7F94> \xAF\xCC |0
+<U7F95> \xD6\xF2 |0
+<U7F96> \xD3\x61 |0
+<U7F9A> \xB2\xDC |0
+<U7F9B> \xD6\xF5 |0
+<U7F9C> \xD6\xF3 |0
+<U7F9D> \xD6\xF4 |0
+<U7F9E> \xB2\xDB |0
+<U7FA0> \xDB\x42 |0
+<U7FA1> \xDB\x43 |0
+<U7FA2> \xDB\x41 |0
+<U7FA4> \xB8\x73 |0
+<U7FA5> \xDF\x6D |0
+<U7FA6> \xDF\x6C |0
+<U7FA7> \xDF\x6E |0
+<U7FA8> \xB8\x72 |0
+<U7FA9> \xB8\x71 |0
+<U7FAC> \xE6\xF2 |0
+<U7FAD> \xE6\xF4 |0
+<U7FAF> \xBD\x7E |0
+<U7FB0> \xE6\xF3 |0
+<U7FB1> \xEA\xE3 |0
+<U7FB2> \xBF\xAA |0
+<U7FB3> \xF0\x79 |0
+<U7FB5> \xF0\x78 |0
+<U7FB6> \xC3\xBB |0
+<U7FB7> \xF2\xBD |0
+<U7FB8> \xC3\xBD |0
+<U7FB9> \xC3\xBC |0
+<U7FBA> \xF4\xB0 |0
+<U7FBB> \xF5\xEE |0
+<U7FBC> \xC4\xF3 |0
+<U7FBD> \xA6\xD0 |0
+<U7FBE> \xD0\x50 |0
+<U7FBF> \xAC\xFD |0
+<U7FC0> \xD3\x65 |0
+<U7FC1> \xAF\xCE |0
+<U7FC2> \xD3\x64 |0
+<U7FC3> \xD3\x63 |0
+<U7FC5> \xAF\xCD |0
+<U7FC7> \xD6\xFB |0
+<U7FC9> \xD6\xFD |0
+<U7FCA> \xD6\xF6 |0
+<U7FCB> \xD6\xF7 |0
+<U7FCC> \xB2\xDD |0
+<U7FCD> \xD6\xF8 |0
+<U7FCE> \xB2\xDE |0
+<U7FCF> \xD6\xFC |0
+<U7FD0> \xD6\xF9 |0
+<U7FD1> \xD6\xFA |0
+<U7FD2> \xB2\xDF |0
+<U7FD4> \xB5\xBE |0
+<U7FD5> \xB5\xBF |0
+<U7FD7> \xDB\x44 |0
+<U7FDB> \xDF\x6F |0
+<U7FDC> \xDF\x70 |0
+<U7FDE> \xE3\x7E |0
+<U7FDF> \xBB\x43 |0
+<U7FE0> \xBB\x41 |0
+<U7FE1> \xBB\x42 |0
+<U7FE2> \xE3\x7B |0
+<U7FE3> \xE3\x7C |0
+<U7FE5> \xE3\x7D |0
+<U7FE6> \xE6\xF9 |0
+<U7FE8> \xE6\xFA |0
+<U7FE9> \xBD\xA1 |0
+<U7FEA> \xE6\xF7 |0
+<U7FEB> \xE6\xF6 |0
+<U7FEC> \xE6\xF8 |0
+<U7FED> \xE6\xF5 |0
+<U7FEE> \xBF\xAD |0
+<U7FEF> \xEA\xE4 |0
+<U7FF0> \xBF\xAB |0
+<U7FF1> \xBF\xAC |0
+<U7FF2> \xED\xE6 |0
+<U7FF3> \xC1\x6B |0
+<U7FF4> \xED\xE5 |0
+<U7FF5> \xEF\xA8 |0
+<U7FF7> \xF0\x7A |0
+<U7FF8> \xF0\x7B |0
+<U7FF9> \xC2\xBC |0
+<U7FFB> \xC2\xBD |0
+<U7FFC> \xC1\x6C |0
+<U7FFD> \xF2\xBE |0
+<U7FFE> \xF2\xBF |0
+<U7FFF> \xF4\xB1 |0
+<U8000> \xC4\xA3 |0
+<U8001> \xA6\xD1 |0
+<U8003> \xA6\xD2 |0
+<U8004> \xAC\xFE |0
+<U8005> \xAA\xCC |0
+<U8006> \xAF\xCF |0
+<U8007> \xD0\x51 |0
+<U800B> \xB5\xC0 |0
+<U800C> \xA6\xD3 |0
+<U800D> \xAD\x41 |0
+<U800E> \xD0\x52 |0
+<U800F> \xD0\x53 |0
+<U8010> \xAD\x40 |0
+<U8011> \xAD\x42 |0
+<U8012> \xA6\xD4 |0
+<U8014> \xD0\x54 |0
+<U8015> \xAF\xD1 |0
+<U8016> \xD3\x66 |0
+<U8017> \xAF\xD3 |0
+<U8018> \xAF\xD0 |0
+<U8019> \xAF\xD2 |0
+<U801B> \xD7\x41 |0
+<U801C> \xB2\xE0 |0
+<U801E> \xD7\x40 |0
+<U801F> \xD6\xFE |0
+<U8021> \xDF\x71 |0
+<U8024> \xE3\xA1 |0
+<U8026> \xBD\xA2 |0
+<U8028> \xBF\xAE |0
+<U8029> \xEA\xE6 |0
+<U802A> \xEA\xE5 |0
+<U802C> \xED\xE7 |0
+<U8030> \xF5\xEF |0
+<U8033> \xA6\xD5 |0
+<U8034> \xCB\x73 |0
+<U8035> \xCD\xAA |0
+<U8036> \xAD\x43 |0
+<U8037> \xD0\x55 |0
+<U8039> \xD3\x68 |0
+<U803D> \xAF\xD4 |0
+<U803E> \xD3\x67 |0
+<U803F> \xAF\xD5 |0
+<U8043> \xD7\x43 |0
+<U8046> \xB2\xE2 |0
+<U8047> \xD7\x42 |0
+<U8048> \xD7\x44 |0
+<U804A> \xB2\xE1 |0
+<U804F> \xDB\x46 |0
+<U8050> \xDB\x47 |0
+<U8051> \xDB\x45 |0
+<U8052> \xB5\xC1 |0
+<U8056> \xB8\x74 |0
+<U8058> \xB8\x75 |0
+<U805A> \xBB\x45 |0
+<U805C> \xE3\xA3 |0
+<U805D> \xE3\xA2 |0
+<U805E> \xBB\x44 |0
+<U8064> \xE6\xFB |0
+<U8067> \xE6\xFC |0
+<U806C> \xEA\xE7 |0
+<U806F> \xC1\x70 |0
+<U8070> \xC1\x6F |0
+<U8071> \xC1\x6D |0
+<U8072> \xC1\x6E |0
+<U8073> \xC1\x71 |0
+<U8075> \xF0\x7C |0
+<U8076> \xC2\xBF |0
+<U8077> \xC2\xBE |0
+<U8078> \xF2\xC0 |0
+<U8079> \xF4\xB2 |0
+<U807D> \xC5\xA5 |0
+<U807E> \xC5\xA4 |0
+<U807F> \xA6\xD6 |0
+<U8082> \xD1\xFB |0
+<U8084> \xB8\x77 |0
+<U8085> \xB5\xC2 |0
+<U8086> \xB8\x76 |0
+<U8087> \xBB\x46 |0
+<U8089> \xA6\xD7 |0
+<U808A> \xC9\xA9 |0
+<U808B> \xA6\xD8 |0
+<U808C> \xA6\xD9 |0
+<U808F> \xCD\xAB |0
+<U8090> \xCB\x76 |0
+<U8092> \xCB\x77 |0
+<U8093> \xA8\x77 |0
+<U8095> \xCB\x74 |0
+<U8096> \xA8\x76 |0
+<U8098> \xA8\x79 |0
+<U8099> \xCB\x75 |0
+<U809A> \xA8\x7B |0
+<U809B> \xA8\x7A |0
+<U809C> \xCB\x78 |0
+<U809D> \xA8\x78 |0
+<U80A1> \xAA\xD1 |0
+<U80A2> \xAA\xCF |0
+<U80A3> \xCD\xAD |0
+<U80A5> \xAA\xCE |0
+<U80A9> \xAA\xD3 |0
+<U80AA> \xAA\xD5 |0
+<U80AB> \xAA\xD2 |0
+<U80AD> \xCD\xB0 |0
+<U80AE> \xCD\xAC |0
+<U80AF> \xAA\xD6 |0
+<U80B1> \xAA\xD0 |0
+<U80B2> \xA8\x7C |0
+<U80B4> \xAA\xD4 |0
+<U80B5> \xCD\xAF |0
+<U80B8> \xCD\xAE |0
+<U80BA> \xAA\xCD |0
+<U80C2> \xD0\x5B |0
+<U80C3> \xAD\x47 |0
+<U80C4> \xAD\x48 |0
+<U80C5> \xD0\x5D |0
+<U80C7> \xD0\x57 |0
+<U80C8> \xD0\x5A |0
+<U80C9> \xD0\x63 |0
+<U80CA> \xD0\x61 |0
+<U80CC> \xAD\x49 |0
+<U80CD> \xD0\x67 |0
+<U80CE> \xAD\x4C |0
+<U80CF> \xD0\x64 |0
+<U80D0> \xD0\x5C |0
+<U80D1> \xD0\x59 |0
+<U80D4> \xDB\x49 |0
+<U80D5> \xD0\x62 |0
+<U80D6> \xAD\x44 |0
+<U80D7> \xD0\x65 |0
+<U80D8> \xD0\x56 |0
+<U80D9> \xD0\x5F |0
+<U80DA> \xAD\x46 |0
+<U80DB> \xAD\x4B |0
+<U80DC> \xD0\x60 |0
+<U80DD> \xAD\x4F |0
+<U80DE> \xAD\x4D |0
+<U80E0> \xD0\x58 |0
+<U80E1> \xAD\x4A |0
+<U80E3> \xD0\x5E |0
+<U80E4> \xAD\x4E |0
+<U80E5> \xAD\x45 |0
+<U80E6> \xD0\x66 |0
+<U80ED> \xAF\xDA |0
+<U80EF> \xAF\xE3 |0
+<U80F0> \xAF\xD8 |0
+<U80F1> \xAF\xD6 |0
+<U80F2> \xD3\x6A |0
+<U80F3> \xAF\xDE |0
+<U80F4> \xAF\xDB |0
+<U80F5> \xD3\x6C |0
+<U80F8> \xAF\xDD |0
+<U80F9> \xD3\x6B |0
+<U80FA> \xD3\x69 |0
+<U80FB> \xD3\x6E |0
+<U80FC> \xAF\xE2 |0
+<U80FD> \xAF\xE0 |0
+<U80FE> \xDB\x48 |0
+<U8100> \xD3\x6F |0
+<U8101> \xD3\x6D |0
+<U8102> \xAF\xD7 |0
+<U8105> \xAF\xD9 |0
+<U8106> \xAF\xDC |0
+<U8108> \xAF\xDF |0
+<U810A> \xAF\xE1 |0
+<U8115> \xD7\x4E |0
+<U8116> \xB2\xE4 |0
+<U8118> \xD7\x45 |0
+<U8119> \xD7\x47 |0
+<U811B> \xD7\x48 |0
+<U811D> \xD7\x50 |0
+<U811E> \xD7\x4C |0
+<U811F> \xD7\x4A |0
+<U8121> \xD7\x4D |0
+<U8122> \xD7\x51 |0
+<U8123> \xB2\xE5 |0
+<U8124> \xB2\xE9 |0
+<U8125> \xD7\x46 |0
+<U8127> \xD7\x4F |0
+<U8129> \xB2\xE7 |0
+<U812B> \xB2\xE6 |0
+<U812C> \xD7\x4B |0
+<U812D> \xD7\x49 |0
+<U812F> \xB2\xE3 |0
+<U8130> \xB2\xE8 |0
+<U8139> \xB5\xC8 |0
+<U813A> \xDB\x51 |0
+<U813D> \xDB\x4F |0
+<U813E> \xB5\xCA |0
+<U8143> \xDB\x4A |0
+<U8144> \xDF\xA1 |0
+<U8146> \xB5\xC9 |0
+<U8147> \xDB\x4E |0
+<U814A> \xDB\x4B |0
+<U814B> \xB5\xC5 |0
+<U814C> \xB5\xCB |0
+<U814D> \xDB\x50 |0
+<U814E> \xB5\xC7 |0
+<U814F> \xDB\x4D |0
+<U8150> \xBB\x47 |0
+<U8151> \xB5\xC6 |0
+<U8152> \xDB\x4C |0
+<U8153> \xB5\xCC |0
+<U8154> \xB5\xC4 |0
+<U8155> \xB5\xC3 |0
+<U815B> \xDF\x77 |0
+<U815C> \xDF\x75 |0
+<U815E> \xDF\x7B |0
+<U8160> \xDF\x73 |0
+<U8161> \xDF\xA2 |0
+<U8162> \xDF\x78 |0
+<U8164> \xDF\x72 |0
+<U8165> \xB8\x7B |0
+<U8166> \xB8\xA3 |0
+<U8167> \xDF\x7D |0
+<U8169> \xDF\x76 |0
+<U816B> \xB8\x7E |0
+<U816E> \xB8\x7C |0
+<U816F> \xDF\x7E |0
+<U8170> \xB8\x79 |0
+<U8171> \xB8\x78 |0
+<U8172> \xDF\x79 |0
+<U8173> \xB8\x7D |0
+<U8174> \xB5\xCD |0
+<U8176> \xDF\x7C |0
+<U8177> \xDF\x74 |0
+<U8178> \xB8\x7A |0
+<U8179> \xB8\xA1 |0
+<U817A> \xB8\xA2 |0
+<U817F> \xBB\x4C |0
+<U8180> \xBB\x48 |0
+<U8182> \xBB\x4D |0
+<U8183> \xE3\xA6 |0
+<U8186> \xE3\xA5 |0
+<U8187> \xE3\xA7 |0
+<U8188> \xBB\x4A |0
+<U8189> \xE3\xA4 |0
+<U818A> \xBB\x4B |0
+<U818B> \xE3\xAA |0
+<U818C> \xE3\xA9 |0
+<U818D> \xE3\xA8 |0
+<U818F> \xBB\x49 |0
+<U8195> \xE7\x41 |0
+<U8197> \xE7\x44 |0
+<U8198> \xBD\xA8 |0
+<U8199> \xE7\x43 |0
+<U819A> \xBD\xA7 |0
+<U819B> \xBD\xA3 |0
+<U819C> \xBD\xA4 |0
+<U819D> \xBD\xA5 |0
+<U819E> \xE7\x40 |0
+<U819F> \xE6\xFE |0
+<U81A0> \xBD\xA6 |0
+<U81A2> \xE7\x42 |0
+<U81A3> \xE6\xFD |0
+<U81A6> \xEA\xE9 |0
+<U81A7> \xEA\xF3 |0
+<U81A8> \xBF\xB1 |0
+<U81A9> \xBF\xB0 |0
+<U81AB> \xEA\xED |0
+<U81AC> \xEA\xEF |0
+<U81AE> \xEA\xEA |0
+<U81B0> \xEA\xEE |0
+<U81B1> \xEA\xE8 |0
+<U81B2> \xEA\xF1 |0
+<U81B3> \xBF\xAF |0
+<U81B4> \xEA\xF0 |0
+<U81B5> \xEA\xEC |0
+<U81B7> \xEA\xF2 |0
+<U81B9> \xEA\xEB |0
+<U81BA> \xC1\x74 |0
+<U81BB> \xED\xE8 |0
+<U81BC> \xED\xEE |0
+<U81BD> \xC1\x78 |0
+<U81BE> \xC1\x7A |0
+<U81BF> \xC1\x77 |0
+<U81C0> \xC1\x76 |0
+<U81C2> \xC1\x75 |0
+<U81C3> \xC1\x73 |0
+<U81C4> \xED\xE9 |0
+<U81C5> \xED\xEC |0
+<U81C6> \xC1\x72 |0
+<U81C7> \xED\xED |0
+<U81C9> \xC1\x79 |0
+<U81CA> \xED\xEB |0
+<U81CC> \xED\xEA |0
+<U81CD> \xC2\xC0 |0
+<U81CF> \xC2\xC1 |0
+<U81D0> \xF0\xA1 |0
+<U81D1> \xF0\x7D |0
+<U81D2> \xF0\x7E |0
+<U81D5> \xF2\xC2 |0
+<U81D7> \xF2\xC1 |0
+<U81D8> \xC3\xBE |0
+<U81D9> \xF4\xB4 |0
+<U81DA> \xC4\xA4 |0
+<U81DB> \xF4\xB3 |0
+<U81DD> \xF5\xF0 |0
+<U81DE> \xF7\x45 |0
+<U81DF> \xC5\xA6 |0
+<U81E0> \xF9\x43 |0
+<U81E1> \xF9\x44 |0
+<U81E2> \xC5\xD8 |0
+<U81E3> \xA6\xDA |0
+<U81E5> \xAA\xD7 |0
+<U81E6> \xDB\x52 |0
+<U81E7> \xBB\x4E |0
+<U81E8> \xC1\x7B |0
+<U81E9> \xED\xEF |0
+<U81EA> \xA6\xDB |0
+<U81EC> \xAF\xE5 |0
+<U81ED> \xAF\xE4 |0
+<U81EE> \xDB\x53 |0
+<U81F2> \xEA\xF4 |0
+<U81F3> \xA6\xDC |0
+<U81F4> \xAD\x50 |0
+<U81F7> \xDB\x54 |0
+<U81F8> \xDB\x55 |0
+<U81F9> \xDB\x56 |0
+<U81FA> \xBB\x4F |0
+<U81FB> \xBF\xB2 |0
+<U81FC> \xA6\xDD |0
+<U81FE> \xAA\xD8 |0
+<U81FF> \xD0\x68 |0
+<U8200> \xAF\xE6 |0
+<U8201> \xD3\x70 |0
+<U8202> \xB2\xEA |0
+<U8204> \xDB\x57 |0
+<U8205> \xB8\xA4 |0
+<U8207> \xBB\x50 |0
+<U8208> \xBF\xB3 |0
+<U8209> \xC1\x7C |0
+<U820A> \xC2\xC2 |0
+<U820B> \xF4\xB5 |0
+<U820C> \xA6\xDE |0
+<U820D> \xAA\xD9 |0
+<U8210> \xAF\xE7 |0
+<U8211> \xD7\x52 |0
+<U8212> \xB5\xCE |0
+<U8214> \xBB\x51 |0
+<U8215> \xE3\xAB |0
+<U8216> \xE7\x45 |0
+<U821B> \xA6\xDF |0
+<U821C> \xB5\xCF |0
+<U821D> \xDF\xA3 |0
+<U821E> \xBB\x52 |0
+<U821F> \xA6\xE0 |0
+<U8220> \xCD\xB1 |0
+<U8221> \xD0\x69 |0
+<U8222> \xAD\x51 |0
+<U8225> \xD3\x72 |0
+<U8228> \xAF\xEA |0
+<U822A> \xAF\xE8 |0
+<U822B> \xAF\xE9 |0
+<U822C> \xAF\xEB |0
+<U822F> \xD3\x71 |0
+<U8232> \xD7\x57 |0
+<U8233> \xD7\x54 |0
+<U8234> \xD7\x56 |0
+<U8235> \xB2\xEB |0
+<U8236> \xB2\xED |0
+<U8237> \xB2\xEC |0
+<U8238> \xD7\x53 |0
+<U8239> \xB2\xEE |0
+<U823A> \xD7\x55 |0
+<U823C> \xDB\x58 |0
+<U823D> \xDB\x59 |0
+<U823F> \xDB\x5A |0
+<U8240> \xDF\xA6 |0
+<U8242> \xDF\xA7 |0
+<U8244> \xDF\xA5 |0
+<U8245> \xDF\xA8 |0
+<U8247> \xB8\xA5 |0
+<U8249> \xDF\xA4 |0
+<U824B> \xBB\x53 |0
+<U824E> \xE7\x4A |0
+<U824F> \xE7\x46 |0
+<U8250> \xE7\x49 |0
+<U8251> \xE7\x4B |0
+<U8252> \xE7\x48 |0
+<U8253> \xE7\x47 |0
+<U8255> \xEA\xF5 |0
+<U8256> \xEA\xF6 |0
+<U8257> \xEA\xF7 |0
+<U8258> \xBF\xB4 |0
+<U8259> \xBF\xB5 |0
+<U825A> \xED\xF1 |0
+<U825B> \xED\xF0 |0
+<U825C> \xED\xF2 |0
+<U825E> \xF0\xA3 |0
+<U825F> \xF0\xA2 |0
+<U8261> \xF2\xC4 |0
+<U8263> \xF2\xC5 |0
+<U8264> \xF2\xC3 |0
+<U8266> \xC4\xA5 |0
+<U8268> \xF4\xB6 |0
+<U8269> \xF4\xB7 |0
+<U826B> \xF7\x46 |0
+<U826C> \xF7\xEF |0
+<U826D> \xF8\xBB |0
+<U826E> \xA6\xE1 |0
+<U826F> \xA8\x7D |0
+<U8271> \xC1\x7D |0
+<U8272> \xA6\xE2 |0
+<U8274> \xD7\x58 |0
+<U8275> \xDB\x5B |0
+<U8277> \xC6\x41 |0
+<U8278> \xCA\x4A |0
+<U827C> \xCA\x4B |0
+<U827D> \xCA\x4D |0
+<U827E> \xA6\xE3 |0
+<U827F> \xCA\x4E |0
+<U8280> \xCA\x4C |0
+<U8283> \xCB\xA2 |0
+<U8284> \xCB\xA3 |0
+<U8285> \xCB\x7B |0
+<U828A> \xCB\xA1 |0
+<U828B> \xA8\xA1 |0
+<U828D> \xA8\xA2 |0
+<U828E> \xCB\x7C |0
+<U828F> \xCB\x7A |0
+<U8290> \xCB\x79 |0
+<U8291> \xCB\x7D |0
+<U8292> \xA8\x7E |0
+<U8293> \xCB\x7E |0
+<U8294> \xD0\x6A |0
+<U8298> \xCD\xB6 |0
+<U8299> \xAA\xDC |0
+<U829A> \xCD\xB5 |0
+<U829B> \xCD\xB7 |0
+<U829D> \xAA\xDB |0
+<U829E> \xCD\xBC |0
+<U829F> \xAA\xDF |0
+<U82A0> \xCD\xB2 |0
+<U82A1> \xCD\xC0 |0
+<U82A2> \xCD\xC6 |0
+<U82A3> \xAA\xE6 |0
+<U82A4> \xCD\xC3 |0
+<U82A5> \xAA\xE3 |0
+<U82A7> \xCD\xB9 |0
+<U82A8> \xCD\xBF |0
+<U82A9> \xCD\xC1 |0
+<U82AB> \xCD\xB4 |0
+<U82AC> \xAA\xE2 |0
+<U82AD> \xAA\xDD |0
+<U82AE> \xCD\xBA |0
+<U82AF> \xAA\xE4 |0
+<U82B0> \xAA\xE7 |0
+<U82B1> \xAA\xE1 |0
+<U82B3> \xAA\xDA |0
+<U82B4> \xCD\xBE |0
+<U82B5> \xCD\xB8 |0
+<U82B6> \xCD\xC5 |0
+<U82B7> \xAA\xE9 |0
+<U82B8> \xAA\xE5 |0
+<U82B9> \xAA\xE0 |0
+<U82BA> \xCD\xBD |0
+<U82BB> \xAF\xEC |0
+<U82BC> \xCD\xBB |0
+<U82BD> \xAA\xDE |0
+<U82BE> \xAA\xE8 |0
+<U82C0> \xCD\xB3 |0
+<U82C2> \xCD\xC2 |0
+<U82C3> \xCD\xC4 |0
+<U82D1> \xAD\x62 |0
+<U82D2> \xAD\x5C |0
+<U82D3> \xAD\x64 |0
+<U82D4> \xAD\x61 |0
+<U82D5> \xD0\x71 |0
+<U82D6> \xD0\x74 |0
+<U82D7> \xAD\x5D |0
+<U82D9> \xD0\x6B |0
+<U82DB> \xAD\x56 |0
+<U82DC> \xAD\x60 |0
+<U82DE> \xAD\x63 |0
+<U82DF> \xAD\x65 |0
+<U82E0> \xD0\xA2 |0
+<U82E1> \xD0\x77 |0
+<U82E3> \xAD\x55 |0
+<U82E4> \xD0\xA1 |0
+<U82E5> \xAD\x59 |0
+<U82E6> \xAD\x57 |0
+<U82E7> \xAD\x52 |0
+<U82E8> \xD0\x6F |0
+<U82EA> \xD0\x7E |0
+<U82EB> \xD0\x73 |0
+<U82EC> \xD0\x76 |0
+<U82ED> \xD0\xA5 |0
+<U82EF> \xAD\x66 |0
+<U82F0> \xD0\x7D |0
+<U82F1> \xAD\x5E |0
+<U82F2> \xD0\x78 |0
+<U82F3> \xD0\xA4 |0
+<U82F4> \xD0\x75 |0
+<U82F5> \xD0\x79 |0
+<U82F6> \xD0\x7C |0
+<U82F9> \xD0\x6D |0
+<U82FA> \xD0\xA3 |0
+<U82FB> \xD0\x7B |0
+<U82FE> \xD0\x6C |0
+<U8300> \xD0\x70 |0
+<U8301> \xAD\x5F |0
+<U8302> \xAD\x5A |0
+<U8303> \xAD\x53 |0
+<U8304> \xAD\x58 |0
+<U8305> \xAD\x54 |0
+<U8306> \xAD\x67 |0
+<U8307> \xD0\x6E |0
+<U8308> \xD3\xA5 |0
+<U8309> \xAD\x5B |0
+<U830C> \xD0\x7A |0
+<U830D> \xCE\x41 |0
+<U8316> \xD3\xA8 |0
+<U8317> \xAF\xFA |0
+<U8319> \xD3\x76 |0
+<U831B> \xD3\xA3 |0
+<U831C> \xD3\x7D |0
+<U831E> \xD3\xB2 |0
+<U8320> \xD3\xAA |0
+<U8322> \xD3\x7E |0
+<U8324> \xD3\xA9 |0
+<U8325> \xD3\x78 |0
+<U8326> \xD3\x7C |0
+<U8327> \xD3\xB5 |0
+<U8328> \xAF\xFD |0
+<U8329> \xD3\xAD |0
+<U832A> \xD3\xA4 |0
+<U832B> \xAF\xED |0
+<U832C> \xD3\xB3 |0
+<U832D> \xD3\x74 |0
+<U832F> \xD3\xAC |0
+<U8331> \xAF\xFC |0
+<U8332> \xAF\xF7 |0
+<U8333> \xD3\x73 |0
+<U8334> \xAF\xF5 |0
+<U8335> \xAF\xF4 |0
+<U8336> \xAF\xF9 |0
+<U8337> \xD3\xAB |0
+<U8338> \xAF\xF1 |0
+<U8339> \xAF\xF8 |0
+<U833A> \xD0\x72 |0
+<U833B> \xDB\x5C |0
+<U833C> \xD3\xA6 |0
+<U833F> \xD3\x7A |0
+<U8340> \xAF\xFB |0
+<U8341> \xD3\x7B |0
+<U8342> \xD3\xA1 |0
+<U8343> \xAF\xFE |0
+<U8344> \xD3\x75 |0
+<U8345> \xD3\xAF |0
+<U8347> \xD3\xAE |0
+<U8348> \xD3\xB6 |0
+<U8349> \xAF\xF3 |0
+<U834A> \xAF\xF0 |0
+<U834B> \xD3\xB4 |0
+<U834C> \xD3\xB0 |0
+<U834D> \xD3\xA7 |0
+<U834E> \xD3\xA2 |0
+<U834F> \xAF\xF6 |0
+<U8350> \xAF\xF2 |0
+<U8351> \xD3\x77 |0
+<U8352> \xAF\xEE |0
+<U8353> \xD3\xB1 |0
+<U8354> \xAF\xEF |0
+<U8356> \xD3\x79 |0
+<U8373> \xD7\x5E |0
+<U8374> \xD7\x60 |0
+<U8375> \xD7\x65 |0
+<U8376> \xD7\x79 |0
+<U8377> \xB2\xFC |0
+<U8378> \xB2\xF2 |0
+<U837A> \xD7\x5D |0
+<U837B> \xB2\xFD |0
+<U837C> \xB2\xFE |0
+<U837D> \xD7\x68 |0
+<U837E> \xD7\x6F |0
+<U837F> \xD7\x75 |0
+<U8381> \xD7\x62 |0
+<U8383> \xD7\x69 |0
+<U8386> \xB3\x40 |0
+<U8387> \xD7\x77 |0
+<U8388> \xD7\x72 |0
+<U8389> \xB2\xFA |0
+<U838A> \xB2\xF8 |0
+<U838B> \xD7\x6E |0
+<U838C> \xD7\x6A |0
+<U838D> \xD7\x5C |0
+<U838E> \xB2\xEF |0
+<U838F> \xD7\x61 |0
+<U8390> \xD7\x59 |0
+<U8392> \xB2\xF7 |0
+<U8393> \xB2\xF9 |0
+<U8394> \xD7\x66 |0
+<U8395> \xD7\x63 |0
+<U8396> \xB2\xF4 |0
+<U8397> \xD7\x73 |0
+<U8398> \xB2\xF1 |0
+<U8399> \xD7\x64 |0
+<U839A> \xD7\x7A |0
+<U839B> \xD7\x6C |0
+<U839D> \xD7\x6B |0
+<U839E> \xB2\xF0 |0
+<U83A0> \xB2\xFB |0
+<U83A2> \xB2\xF3 |0
+<U83A3> \xD7\x5A |0
+<U83A4> \xD7\x5F |0
+<U83A5> \xD7\x70 |0
+<U83A6> \xD7\x76 |0
+<U83A7> \xB3\x41 |0
+<U83A8> \xD7\x5B |0
+<U83A9> \xD7\x67 |0
+<U83AA> \xD7\x6D |0
+<U83AB> \xB2\xF6 |0
+<U83AE> \xD7\x78 |0
+<U83AF> \xD7\x71 |0
+<U83B0> \xD7\x74 |0
+<U83BD> \xB2\xF5 |0
+<U83BF> \xDB\x6C |0
+<U83C0> \xDB\x60 |0
+<U83C1> \xB5\xD7 |0
+<U83C2> \xDB\x7D |0
+<U83C3> \xDB\xA7 |0
+<U83C4> \xDB\xAA |0
+<U83C5> \xB5\xD5 |0
+<U83C6> \xDB\x68 |0
+<U83C7> \xDB\xA3 |0
+<U83C8> \xDB\x69 |0
+<U83C9> \xDB\x77 |0
+<U83CA> \xB5\xE2 |0
+<U83CB> \xDB\x73 |0
+<U83CC> \xB5\xDF |0
+<U83CE> \xDB\x74 |0
+<U83CF> \xDB\x5D |0
+<U83D1> \xDB\xA4 |0
+<U83D4> \xB5\xE8 |0
+<U83D5> \xDB\xA1 |0
+<U83D6> \xDB\x75 |0
+<U83D7> \xDB\xAC |0
+<U83D8> \xDB\x70 |0
+<U83D9> \xDF\xC8 |0
+<U83DB> \xDB\xAF |0
+<U83DC> \xB5\xE6 |0
+<U83DD> \xDB\x6E |0
+<U83DE> \xDB\x7A |0
+<U83DF> \xB5\xE9 |0
+<U83E0> \xB5\xD4 |0
+<U83E1> \xDB\x72 |0
+<U83E2> \xDB\xAD |0
+<U83E3> \xDB\x6B |0
+<U83E4> \xDB\x64 |0
+<U83E5> \xDB\x6F |0
+<U83E7> \xDB\x63 |0
+<U83E8> \xDB\x61 |0
+<U83E9> \xB5\xD0 |0
+<U83EA> \xDB\xA5 |0
+<U83EB> \xDB\x6A |0
+<U83EC> \xDB\xA8 |0
+<U83EE> \xDB\xA9 |0
+<U83EF> \xB5\xD8 |0
+<U83F0> \xB5\xDD |0
+<U83F1> \xB5\xD9 |0
+<U83F2> \xB5\xE1 |0
+<U83F3> \xDB\x7E |0
+<U83F4> \xB5\xDA |0
+<U83F5> \xDB\x76 |0
+<U83F6> \xDB\x66 |0
+<U83F8> \xB5\xD2 |0
+<U83F9> \xDB\x5E |0
+<U83FA> \xDB\xA2 |0
+<U83FB> \xDB\xAB |0
+<U83FC> \xDB\x65 |0
+<U83FD> \xB5\xE0 |0
+<U83FE> \xDB\xB0 |0
+<U83FF> \xDB\x71 |0
+<U8401> \xDB\x6D |0
+<U8403> \xB5\xD1 |0
+<U8404> \xB5\xE5 |0
+<U8406> \xDB\x7C |0
+<U8407> \xB5\xE7 |0
+<U8409> \xDB\x78 |0
+<U840A> \xB5\xDC |0
+<U840B> \xB5\xD6 |0
+<U840C> \xB5\xDE |0
+<U840D> \xB5\xD3 |0
+<U840E> \xB5\xE4 |0
+<U840F> \xDB\x79 |0
+<U8410> \xDB\x67 |0
+<U8411> \xDB\x7B |0
+<U8412> \xDB\x62 |0
+<U8413> \xDB\xA6 |0
+<U841B> \xDB\xAE |0
+<U8423> \xDB\x5F |0
+<U8429> \xDF\xC7 |0
+<U842B> \xDF\xDD |0
+<U842C> \xB8\x55 |0
+<U842D> \xDF\xCC |0
+<U842F> \xDF\xCA |0
+<U8430> \xDF\xB5 |0
+<U8431> \xB8\xA9 |0
+<U8432> \xDF\xC5 |0
+<U8433> \xDF\xD9 |0
+<U8434> \xDF\xC1 |0
+<U8435> \xB8\xB1 |0
+<U8436> \xDF\xD8 |0
+<U8437> \xDF\xBF |0
+<U8438> \xB5\xE3 |0
+<U8439> \xDF\xCF |0
+<U843A> \xDF\xC0 |0
+<U843B> \xDF\xD6 |0
+<U843C> \xB8\xB0 |0
+<U843D> \xB8\xA8 |0
+<U843F> \xDF\xAA |0
+<U8440> \xDF\xB2 |0
+<U8442> \xDF\xCB |0
+<U8443> \xDF\xC3 |0
+<U8444> \xDF\xDC |0
+<U8445> \xDF\xC6 |0
+<U8446> \xB8\xB6 |0
+<U8447> \xDF\xD7 |0
+<U8449> \xB8\xAD |0
+<U844B> \xDF\xC9 |0
+<U844C> \xDF\xD1 |0
+<U844D> \xDF\xB6 |0
+<U844E> \xDF\xD0 |0
+<U8450> \xDF\xE1 |0
+<U8451> \xDF\xB1 |0
+<U8452> \xDF\xD2 |0
+<U8454> \xDF\xDF |0
+<U8456> \xDF\xAB |0
+<U8457> \xB5\xDB |0
+<U8459> \xDF\xB9 |0
+<U845A> \xDF\xB8 |0
+<U845B> \xB8\xAF |0
+<U845D> \xDF\xBC |0
+<U845E> \xDF\xBE |0
+<U845F> \xDF\xCD |0
+<U8460> \xDF\xDE |0
+<U8461> \xB8\xB2 |0
+<U8463> \xB8\xB3 |0
+<U8465> \xDF\xB0 |0
+<U8466> \xB8\xAB |0
+<U8467> \xDF\xB4 |0
+<U8468> \xDF\xDA |0
+<U8469> \xB8\xB4 |0
+<U846B> \xB8\xAC |0
+<U846C> \xB8\xAE |0
+<U846D> \xB8\xB5 |0
+<U846E> \xDF\xE0 |0
+<U846F> \xDF\xD3 |0
+<U8470> \xDF\xCE |0
+<U8473> \xDF\xBB |0
+<U8474> \xDF\xBA |0
+<U8475> \xB8\xAA |0
+<U8476> \xDF\xAC |0
+<U8477> \xB8\xA7 |0
+<U8478> \xDF\xC4 |0
+<U8479> \xDF\xAD |0
+<U847A> \xDF\xC2 |0
+<U847D> \xDF\xB7 |0
+<U847E> \xDF\xDB |0
+<U8482> \xB8\xA6 |0
+<U8486> \xDF\xB3 |0
+<U848D> \xDF\xAF |0
+<U848E> \xDF\xD5 |0
+<U848F> \xDF\xAE |0
+<U8490> \xBB\x60 |0
+<U8491> \xE3\xD3 |0
+<U8494> \xE3\xC2 |0
+<U8497> \xE3\xAC |0
+<U8498> \xE3\xCA |0
+<U8499> \xBB\x58 |0
+<U849A> \xE3\xBB |0
+<U849B> \xE3\xC5 |0
+<U849C> \xBB\x5B |0
+<U849D> \xE3\xBE |0
+<U849E> \xBB\x59 |0
+<U849F> \xE3\xAF |0
+<U84A0> \xE3\xCD |0
+<U84A1> \xE3\xAE |0
+<U84A2> \xE3\xC1 |0
+<U84A4> \xE3\xAD |0
+<U84A7> \xE3\xBF |0
+<U84A8> \xE3\xC8 |0
+<U84A9> \xE3\xC6 |0
+<U84AA> \xE3\xBA |0
+<U84AB> \xE3\xB5 |0
+<U84AC> \xE3\xB3 |0
+<U84AE> \xE3\xB4 |0
+<U84AF> \xE3\xC7 |0
+<U84B0> \xE3\xD2 |0
+<U84B1> \xE3\xBC |0
+<U84B2> \xBB\x5A |0
+<U84B4> \xE3\xB7 |0
+<U84B6> \xE3\xCB |0
+<U84B8> \xBB\x5D |0
+<U84B9> \xE3\xB6 |0
+<U84BA> \xE3\xB0 |0
+<U84BB> \xE3\xC0 |0
+<U84BC> \xBB\x61 |0
+<U84BF> \xBB\x55 |0
+<U84C0> \xBB\x5E |0
+<U84C1> \xE3\xB8 |0
+<U84C2> \xE3\xB2 |0
+<U84C4> \xBB\x57 |0
+<U84C5> \xDF\xD4 |0
+<U84C6> \xBB\x56 |0
+<U84C7> \xE3\xC3 |0
+<U84C9> \xBB\x54 |0
+<U84CA> \xBB\x63 |0
+<U84CB> \xBB\x5C |0
+<U84CC> \xE3\xC4 |0
+<U84CD> \xE3\xB9 |0
+<U84CE> \xE3\xB1 |0
+<U84CF> \xE3\xCC |0
+<U84D0> \xE3\xBD |0
+<U84D1> \xBB\x62 |0
+<U84D2> \xE3\xD0 |0
+<U84D3> \xBB\x5F |0
+<U84D4> \xE3\xCF |0
+<U84D6> \xE3\xC9 |0
+<U84D7> \xE3\xCE |0
+<U84DB> \xE3\xD1 |0
+<U84E7> \xE7\x73 |0
+<U84E8> \xE7\x74 |0
+<U84E9> \xE7\x67 |0
+<U84EA> \xE7\x66 |0
+<U84EB> \xE7\x62 |0
+<U84EC> \xBD\xB4 |0
+<U84EE> \xBD\xAC |0
+<U84EF> \xE7\x76 |0
+<U84F0> \xE7\x75 |0
+<U84F1> \xDF\xA9 |0
+<U84F2> \xE7\x5F |0
+<U84F3> \xE7\x63 |0
+<U84F4> \xE7\x5D |0
+<U84F6> \xE7\x70 |0
+<U84F7> \xE7\x61 |0
+<U84F9> \xE7\x77 |0
+<U84FA> \xE7\x5A |0
+<U84FB> \xE7\x58 |0
+<U84FC> \xE7\x64 |0
+<U84FD> \xE7\x6E |0
+<U84FE> \xE7\x69 |0
+<U84FF> \xBD\xB6 |0
+<U8500> \xE7\x4F |0
+<U8502> \xE7\x6D |0
+<U8506> \xBD\xB7 |0
+<U8507> \xDF\xBD |0
+<U8508> \xE7\x5B |0
+<U8509> \xE7\x52 |0
+<U850A> \xE7\x55 |0
+<U850B> \xE7\x7B |0
+<U850C> \xE7\x5C |0
+<U850D> \xE7\x53 |0
+<U850E> \xE7\x51 |0
+<U850F> \xE7\x4E |0
+<U8511> \xBD\xB0 |0
+<U8512> \xE7\x65 |0
+<U8513> \xBD\xAF |0
+<U8514> \xBD\xB3 |0
+<U8515> \xE7\x60 |0
+<U8516> \xE7\x68 |0
+<U8517> \xBD\xA9 |0
+<U8518> \xE7\x78 |0
+<U8519> \xE7\x7C |0
+<U851A> \xBD\xAB |0
+<U851C> \xE7\x57 |0
+<U851D> \xE7\x6B |0
+<U851E> \xE7\x6F |0
+<U851F> \xE7\x54 |0
+<U8520> \xE7\x79 |0
+<U8521> \xBD\xB2 |0
+<U8523> \xBD\xB1 |0
+<U8524> \xE7\x4C |0
+<U8525> \xBD\xB5 |0
+<U8526> \xE7\x72 |0
+<U8527> \xE7\x56 |0
+<U8528> \xE7\x6A |0
+<U8529> \xE7\x50 |0
+<U852A> \xE7\x5E |0
+<U852B> \xE7\x59 |0
+<U852C> \xBD\xAD |0
+<U852D> \xBD\xAE |0
+<U852E> \xE7\x6C |0
+<U852F> \xE7\x7D |0
+<U8530> \xE7\x7A |0
+<U8531> \xE7\x71 |0
+<U853B> \xE7\x4D |0
+<U853D> \xBD\xAA |0
+<U853E> \xEB\x49 |0
+<U8540> \xEB\x40 |0
+<U8541> \xEB\x43 |0
+<U8543> \xBF\xBB |0
+<U8544> \xEB\x45 |0
+<U8545> \xEA\xF9 |0
+<U8546> \xEB\x41 |0
+<U8547> \xEB\x47 |0
+<U8548> \xBF\xB8 |0
+<U8549> \xBF\xBC |0
+<U854A> \xBF\xB6 |0
+<U854D> \xEA\xFB |0
+<U854E> \xEB\x4C |0
+<U8551> \xEB\x46 |0
+<U8553> \xEA\xFC |0
+<U8554> \xEB\x55 |0
+<U8555> \xEB\x4F |0
+<U8556> \xEA\xF8 |0
+<U8557> \xEE\x46 |0
+<U8558> \xEA\xFE |0
+<U8559> \xBF\xB7 |0
+<U855B> \xEB\x4A |0
+<U855D> \xEB\x54 |0
+<U855E> \xBF\xBF |0
+<U8560> \xEB\x51 |0
+<U8561> \xEA\xFD |0
+<U8562> \xEB\x44 |0
+<U8563> \xEB\x48 |0
+<U8564> \xEB\x42 |0
+<U8565> \xEB\x56 |0
+<U8566> \xEB\x53 |0
+<U8567> \xEB\x50 |0
+<U8568> \xBF\xB9 |0
+<U8569> \xBF\xBA |0
+<U856A> \xBF\xBE |0
+<U856B> \xEA\xFA |0
+<U856C> \xEB\x57 |0
+<U856D> \xBF\xBD |0
+<U856E> \xEB\x4D |0
+<U8571> \xEB\x4B |0
+<U8575> \xEB\x4E |0
+<U8576> \xEE\x53 |0
+<U8577> \xEE\x40 |0
+<U8578> \xEE\x45 |0
+<U8579> \xEE\x52 |0
+<U857A> \xEE\x44 |0
+<U857B> \xED\xFB |0
+<U857C> \xEE\x41 |0
+<U857E> \xC1\xA2 |0
+<U8580> \xED\xF4 |0
+<U8581> \xEE\x4D |0
+<U8582> \xEE\x4F |0
+<U8583> \xED\xF3 |0
+<U8584> \xC1\xA1 |0
+<U8585> \xEE\x51 |0
+<U8586> \xEE\x49 |0
+<U8587> \xC1\xA8 |0
+<U8588> \xEE\x50 |0
+<U8589> \xEE\x42 |0
+<U858A> \xC1\xAA |0
+<U858B> \xED\xF9 |0
+<U858C> \xEB\x52 |0
+<U858D> \xEE\x4A |0
+<U858E> \xEE\x47 |0
+<U858F> \xED\xF5 |0
+<U8590> \xEE\x55 |0
+<U8591> \xC1\xA4 |0
+<U8594> \xC1\xA5 |0
+<U8595> \xED\xF7 |0
+<U8596> \xEE\x48 |0
+<U8598> \xEE\x54 |0
+<U8599> \xEE\x4B |0
+<U859A> \xED\xFD |0
+<U859B> \xC1\xA7 |0
+<U859C> \xC1\xA3 |0
+<U859D> \xEE\x4C |0
+<U859E> \xED\xFE |0
+<U859F> \xEE\x56 |0
+<U85A0> \xED\xF8 |0
+<U85A1> \xEE\x43 |0
+<U85A2> \xEE\x4E |0
+<U85A3> \xED\xFA |0
+<U85A4> \xED\xFC |0
+<U85A6> \xC2\xCB |0
+<U85A7> \xED\xF6 |0
+<U85A8> \xC1\xA9 |0
+<U85A9> \xC2\xC4 |0
+<U85AA> \xC1\x7E |0
+<U85AF> \xC1\xA6 |0
+<U85B0> \xC2\xC8 |0
+<U85B1> \xF0\xB3 |0
+<U85B3> \xF0\xA9 |0
+<U85B4> \xF0\xA4 |0
+<U85B5> \xF0\xAA |0
+<U85B6> \xF0\xB4 |0
+<U85B7> \xF0\xB8 |0
+<U85B8> \xF0\xB7 |0
+<U85B9> \xC2\xCA |0
+<U85BA> \xC2\xC9 |0
+<U85BD> \xF0\xAB |0
+<U85BE> \xF0\xB9 |0
+<U85BF> \xF0\xAE |0
+<U85C0> \xF0\xA6 |0
+<U85C2> \xF0\xA8 |0
+<U85C3> \xF0\xA7 |0
+<U85C4> \xF0\xAD |0
+<U85C5> \xF0\xB2 |0
+<U85C6> \xF0\xA5 |0
+<U85C7> \xF0\xAC |0
+<U85C8> \xF0\xB1 |0
+<U85C9> \xC2\xC7 |0
+<U85CB> \xF0\xAF |0
+<U85CD> \xC2\xC5 |0
+<U85CE> \xF0\xB0 |0
+<U85CF> \xC2\xC3 |0
+<U85D0> \xC2\xC6 |0
+<U85D1> \xF2\xD5 |0
+<U85D2> \xF0\xB5 |0
+<U85D5> \xC3\xC2 |0
+<U85D7> \xF2\xCD |0
+<U85D8> \xF2\xD1 |0
+<U85D9> \xF2\xC9 |0
+<U85DA> \xF2\xCC |0
+<U85DC> \xF2\xD4 |0
+<U85DD> \xC3\xC0 |0
+<U85DE> \xF2\xD9 |0
+<U85DF> \xF2\xD2 |0
+<U85E1> \xF2\xCA |0
+<U85E2> \xF2\xDA |0
+<U85E3> \xF2\xD3 |0
+<U85E4> \xC3\xC3 |0
+<U85E5> \xC3\xC4 |0
+<U85E6> \xF2\xD7 |0
+<U85E8> \xF2\xCB |0
+<U85E9> \xC3\xBF |0
+<U85EA> \xC3\xC1 |0
+<U85EB> \xF2\xC6 |0
+<U85EC> \xF2\xCE |0
+<U85ED> \xF2\xC8 |0
+<U85EF> \xF2\xD8 |0
+<U85F0> \xF2\xD6 |0
+<U85F1> \xF2\xC7 |0
+<U85F2> \xF2\xCF |0
+<U85F6> \xF4\xBE |0
+<U85F7> \xC3\xC5 |0
+<U85F8> \xF2\xD0 |0
+<U85F9> \xC4\xA7 |0
+<U85FA> \xC4\xA9 |0
+<U85FB> \xC4\xA6 |0
+<U85FD> \xF4\xC3 |0
+<U85FE> \xF4\xBB |0
+<U85FF> \xF4\xB9 |0
+<U8600> \xF4\xBD |0
+<U8601> \xF4\xBA |0
+<U8604> \xF4\xBF |0
+<U8605> \xF4\xC1 |0
+<U8606> \xC4\xAA |0
+<U8607> \xC4\xAC |0
+<U8609> \xF4\xC0 |0
+<U860A> \xC4\xAD |0
+<U860B> \xC4\xAB |0
+<U860C> \xF4\xC2 |0
+<U8611> \xC4\xA8 |0
+<U8617> \xC4\xF4 |0
+<U8618> \xF5\xF1 |0
+<U8619> \xF5\xF7 |0
+<U861A> \xC4\xF6 |0
+<U861B> \xF4\xBC |0
+<U861C> \xF5\xF6 |0
+<U861E> \xF5\xFD |0
+<U861F> \xF5\xF4 |0
+<U8620> \xF5\xFB |0
+<U8621> \xF5\xFA |0
+<U8622> \xF4\xB8 |0
+<U8623> \xF5\xF5 |0
+<U8624> \xF0\xB6 |0
+<U8625> \xF5\xFE |0
+<U8626> \xF5\xF3 |0
+<U8627> \xF5\xF8 |0
+<U8629> \xF5\xFC |0
+<U862A> \xF5\xF2 |0
+<U862C> \xF7\x4A |0
+<U862D> \xC4\xF5 |0
+<U862E> \xF5\xF9 |0
+<U8631> \xF7\xF4 |0
+<U8632> \xF7\x4B |0
+<U8633> \xF7\x49 |0
+<U8634> \xF7\x47 |0
+<U8635> \xF7\x48 |0
+<U8636> \xF7\x4C |0
+<U8638> \xC5\xD9 |0
+<U8639> \xF7\xF2 |0
+<U863A> \xF7\xF0 |0
+<U863B> \xF7\xF5 |0
+<U863C> \xF7\xF3 |0
+<U863E> \xF7\xF6 |0
+<U863F> \xC5\xDA |0
+<U8640> \xF7\xF1 |0
+<U8643> \xF8\xBC |0
+<U8646> \xF9\x45 |0
+<U8647> \xF9\x46 |0
+<U8648> \xF9\x47 |0
+<U864B> \xF9\xC7 |0
+<U864C> \xF9\xBD |0
+<U864D> \xCA\x4F |0
+<U864E> \xAA\xEA |0
+<U8650> \xAD\x68 |0
+<U8652> \xD3\xB8 |0
+<U8653> \xD3\xB7 |0
+<U8654> \xB0\x40 |0
+<U8655> \xB3\x42 |0
+<U8656> \xD7\x7C |0
+<U8659> \xD7\x7B |0
+<U865B> \xB5\xEA |0
+<U865C> \xB8\xB8 |0
+<U865E> \xB8\xB7 |0
+<U865F> \xB8\xB9 |0
+<U8661> \xE3\xD4 |0
+<U8662> \xE7\x7E |0
+<U8663> \xEB\x58 |0
+<U8664> \xEB\x5A |0
+<U8665> \xEB\x59 |0
+<U8667> \xC1\xAB |0
+<U8668> \xEE\x57 |0
+<U8669> \xF0\xBA |0
+<U866A> \xF9\xA5 |0
+<U866B> \xA6\xE4 |0
+<U866D> \xCD\xC9 |0
+<U866E> \xCD\xCA |0
+<U866F> \xCD\xC8 |0
+<U8670> \xCD\xC7 |0
+<U8671> \xAA\xEB |0
+<U8673> \xD0\xA9 |0
+<U8674> \xD0\xA7 |0
+<U8677> \xD0\xA6 |0
+<U8679> \xAD\x69 |0
+<U867A> \xAD\x6B |0
+<U867B> \xAD\x6A |0
+<U867C> \xD0\xA8 |0
+<U8685> \xD3\xC4 |0
+<U8686> \xD3\xC1 |0
+<U8687> \xD3\xBF |0
+<U868A> \xB0\x41 |0
+<U868B> \xD3\xC2 |0
+<U868C> \xB0\x46 |0
+<U868D> \xD3\xBC |0
+<U868E> \xD3\xCB |0
+<U8690> \xD3\xCD |0
+<U8691> \xD3\xBD |0
+<U8693> \xB0\x43 |0
+<U8694> \xD3\xCE |0
+<U8695> \xD3\xC9 |0
+<U8696> \xD3\xBB |0
+<U8697> \xD3\xC0 |0
+<U8698> \xD3\xCA |0
+<U8699> \xD3\xC6 |0
+<U869A> \xD3\xC3 |0
+<U869C> \xB0\x48 |0
+<U869D> \xD3\xCC |0
+<U869E> \xD3\xBE |0
+<U86A1> \xD3\xC7 |0
+<U86A2> \xD3\xB9 |0
+<U86A3> \xB0\x47 |0
+<U86A4> \xB0\x44 |0
+<U86A5> \xD3\xC5 |0
+<U86A7> \xD3\xC8 |0
+<U86A8> \xD3\xBA |0
+<U86A9> \xB0\x45 |0
+<U86AA> \xB0\x42 |0
+<U86AF> \xB3\x4C |0
+<U86B0> \xD7\xA5 |0
+<U86B1> \xB3\x4B |0
+<U86B3> \xD7\xA8 |0
+<U86B4> \xD7\xAB |0
+<U86B5> \xB3\x48 |0
+<U86B6> \xB3\x46 |0
+<U86B7> \xD7\x7E |0
+<U86B8> \xD7\xA9 |0
+<U86B9> \xD7\xA7 |0
+<U86BA> \xD7\xA4 |0
+<U86BB> \xD7\xAC |0
+<U86BC> \xD7\xAD |0
+<U86BD> \xD7\xAF |0
+<U86BE> \xD7\xB0 |0
+<U86BF> \xD7\x7D |0
+<U86C0> \xB3\x45 |0
+<U86C1> \xD7\xA2 |0
+<U86C2> \xD7\xA1 |0
+<U86C3> \xD7\xAE |0
+<U86C4> \xB3\x47 |0
+<U86C5> \xD7\xA3 |0
+<U86C6> \xB3\x49 |0
+<U86C7> \xB3\x44 |0
+<U86C8> \xD7\xA6 |0
+<U86C9> \xB3\x4D |0
+<U86CB> \xB3\x4A |0
+<U86CC> \xD7\xAA |0
+<U86D0> \xB5\xF1 |0
+<U86D1> \xDB\xBF |0
+<U86D3> \xDB\xB4 |0
+<U86D4> \xB5\xEE |0
+<U86D6> \xDF\xE7 |0
+<U86D7> \xDB\xBD |0
+<U86D8> \xDB\xB1 |0
+<U86D9> \xB5\xEC |0
+<U86DA> \xDB\xB6 |0
+<U86DB> \xB5\xEF |0
+<U86DC> \xDB\xBA |0
+<U86DD> \xDB\xB8 |0
+<U86DE> \xB5\xF2 |0
+<U86DF> \xB5\xEB |0
+<U86E2> \xDB\xB2 |0
+<U86E3> \xDB\xB5 |0
+<U86E4> \xB5\xF0 |0
+<U86E6> \xDB\xB3 |0
+<U86E8> \xDB\xBE |0
+<U86E9> \xDB\xBC |0
+<U86EA> \xDB\xB7 |0
+<U86EB> \xDB\xB9 |0
+<U86EC> \xDB\xBB |0
+<U86ED> \xB5\xED |0
+<U86F5> \xDF\xE8 |0
+<U86F6> \xDF\xEE |0
+<U86F7> \xDF\xE4 |0
+<U86F8> \xDF\xEA |0
+<U86F9> \xB8\xBA |0
+<U86FA> \xDF\xE6 |0
+<U86FB> \xB8\xC0 |0
+<U86FE> \xB8\xBF |0
+<U8700> \xB8\xBE |0
+<U8701> \xDF\xED |0
+<U8702> \xB8\xC1 |0
+<U8703> \xB8\xC2 |0
+<U8704> \xDF\xE3 |0
+<U8705> \xDF\xF0 |0
+<U8706> \xB8\xC3 |0
+<U8707> \xB8\xBD |0
+<U8708> \xB8\xBC |0
+<U8709> \xDF\xEC |0
+<U870A> \xB8\xC4 |0
+<U870B> \xDF\xE2 |0
+<U870C> \xDF\xE5 |0
+<U870D> \xDF\xEF |0
+<U870E> \xDF\xEB |0
+<U8711> \xE3\xF4 |0
+<U8712> \xE3\xE9 |0
+<U8713> \xB8\xBB |0
+<U8718> \xBB\x6A |0
+<U8719> \xE3\xDD |0
+<U871A> \xE3\xF2 |0
+<U871B> \xE3\xDE |0
+<U871C> \xBB\x65 |0
+<U871E> \xE3\xDB |0
+<U8720> \xE3\xE4 |0
+<U8721> \xE3\xDC |0
+<U8722> \xBB\x67 |0
+<U8723> \xE3\xD6 |0
+<U8724> \xE3\xF1 |0
+<U8725> \xBB\x68 |0
+<U8726> \xE3\xEE |0
+<U8727> \xE3\xEF |0
+<U8728> \xE3\xD7 |0
+<U8729> \xBB\x6D |0
+<U872A> \xE3\xE6 |0
+<U872C> \xE3\xE0 |0
+<U872D> \xE3\xE7 |0
+<U872E> \xE3\xDA |0
+<U8730> \xE3\xF3 |0
+<U8731> \xE3\xEB |0
+<U8732> \xE3\xE5 |0
+<U8733> \xE3\xD5 |0
+<U8734> \xBB\x69 |0
+<U8735> \xE3\xEC |0
+<U8737> \xBB\x6C |0
+<U8738> \xE3\xF0 |0
+<U873A> \xE3\xEA |0
+<U873B> \xBB\x66 |0
+<U873C> \xE3\xE8 |0
+<U873E> \xE3\xE2 |0
+<U873F> \xBB\x64 |0
+<U8740> \xE3\xD9 |0
+<U8741> \xE3\xE1 |0
+<U8742> \xE3\xED |0
+<U8743> \xE3\xDF |0
+<U8746> \xE3\xE3 |0
+<U874C> \xBD\xC1 |0
+<U874D> \xDF\xE9 |0
+<U874E> \xE7\xB2 |0
+<U874F> \xE7\xBB |0
+<U8750> \xE7\xB1 |0
+<U8751> \xE7\xAD |0
+<U8752> \xE7\xAA |0
+<U8753> \xBD\xC2 |0
+<U8754> \xE7\xA8 |0
+<U8755> \xBB\x6B |0
+<U8756> \xE7\xA1 |0
+<U8757> \xBD\xC0 |0
+<U8758> \xE7\xA7 |0
+<U8759> \xBD\xBF |0
+<U875A> \xE7\xAC |0
+<U875B> \xE7\xA9 |0
+<U875C> \xE7\xB9 |0
+<U875D> \xE7\xB4 |0
+<U875E> \xE7\xAE |0
+<U875F> \xE7\xB3 |0
+<U8760> \xBD\xBB |0
+<U8761> \xE7\xAB |0
+<U8762> \xE7\xBE |0
+<U8763> \xE7\xA2 |0
+<U8764> \xE7\xA3 |0
+<U8765> \xE7\xBA |0
+<U8766> \xBD\xBC |0
+<U8767> \xE7\xBF |0
+<U8768> \xBD\xBE |0
+<U8769> \xE7\xC0 |0
+<U876A> \xE7\xB0 |0
+<U876B> \xE3\xD8 |0
+<U876C> \xE7\xB6 |0
+<U876D> \xE7\xAF |0
+<U876E> \xE7\xB8 |0
+<U876F> \xE7\xB5 |0
+<U8773> \xE7\xA6 |0
+<U8774> \xBD\xB9 |0
+<U8775> \xE7\xBD |0
+<U8776> \xBD\xBA |0
+<U8777> \xE7\xA4 |0
+<U8778> \xBD\xBD |0
+<U8779> \xEB\x64 |0
+<U877A> \xE7\xB7 |0
+<U877B> \xE7\xBC |0
+<U8781> \xEB\x61 |0
+<U8782> \xBD\xB8 |0
+<U8783> \xBF\xC0 |0
+<U8784> \xEB\x6B |0
+<U8785> \xEB\x67 |0
+<U8787> \xEB\x65 |0
+<U8788> \xEB\x60 |0
+<U8789> \xEB\x6F |0
+<U878D> \xBF\xC4 |0
+<U878F> \xEB\x5C |0
+<U8790> \xEB\x68 |0
+<U8791> \xEB\x69 |0
+<U8792> \xEB\x5F |0
+<U8793> \xEB\x5E |0
+<U8794> \xEB\x6C |0
+<U8796> \xEB\x62 |0
+<U8797> \xEB\x5D |0
+<U8798> \xEB\x63 |0
+<U879A> \xEB\x6E |0
+<U879B> \xEB\x5B |0
+<U879C> \xEB\x6D |0
+<U879D> \xEB\x6A |0
+<U879E> \xBF\xC2 |0
+<U879F> \xBF\xC1 |0
+<U87A2> \xBF\xC3 |0
+<U87A3> \xEB\x66 |0
+<U87A4> \xF0\xCB |0
+<U87AA> \xEE\x59 |0
+<U87AB> \xC1\xB1 |0
+<U87AC> \xEE\x5D |0
+<U87AD> \xEE\x5A |0
+<U87AE> \xEE\x61 |0
+<U87AF> \xEE\x67 |0
+<U87B0> \xEE\x5C |0
+<U87B2> \xEE\x70 |0
+<U87B3> \xC1\xAE |0
+<U87B4> \xEE\x6A |0
+<U87B5> \xEE\x5F |0
+<U87B6> \xEE\x6B |0
+<U87B7> \xEE\x66 |0
+<U87B8> \xEE\x6D |0
+<U87B9> \xEE\x5E |0
+<U87BA> \xC1\xB3 |0
+<U87BB> \xC1\xB2 |0
+<U87BC> \xEE\x60 |0
+<U87BD> \xEE\x6E |0
+<U87BE> \xEE\x58 |0
+<U87BF> \xEE\x6C |0
+<U87C0> \xC1\xAC |0
+<U87C2> \xEE\x64 |0
+<U87C3> \xEE\x63 |0
+<U87C4> \xEE\x68 |0
+<U87C5> \xEE\x5B |0
+<U87C6> \xC1\xB0 |0
+<U87C8> \xC1\xB4 |0
+<U87C9> \xEE\x62 |0
+<U87CA> \xEE\x69 |0
+<U87CB> \xC1\xB5 |0
+<U87CC> \xEE\x65 |0
+<U87D1> \xC1\xAD |0
+<U87D2> \xC1\xAF |0
+<U87D3> \xF0\xC7 |0
+<U87D4> \xF0\xC5 |0
+<U87D7> \xF0\xCC |0
+<U87D8> \xF0\xC9 |0
+<U87D9> \xF0\xCD |0
+<U87DB> \xF0\xBE |0
+<U87DC> \xF0\xC6 |0
+<U87DD> \xF0\xD1 |0
+<U87DE> \xEE\x6F |0
+<U87DF> \xF0\xC2 |0
+<U87E0> \xC2\xCF |0
+<U87E1> \xE7\xA5 |0
+<U87E2> \xF0\xBD |0
+<U87E3> \xF0\xCA |0
+<U87E4> \xF0\xC4 |0
+<U87E5> \xF0\xC1 |0
+<U87E6> \xF0\xBC |0
+<U87E7> \xF0\xBB |0
+<U87E8> \xF0\xD0 |0
+<U87EA> \xF0\xC0 |0
+<U87EB> \xF0\xBF |0
+<U87EC> \xC2\xCD |0
+<U87ED> \xF0\xC8 |0
+<U87EF> \xC2\xCC |0
+<U87F2> \xC2\xCE |0
+<U87F3> \xF0\xC3 |0
+<U87F4> \xF0\xCF |0
+<U87F6> \xF2\xDE |0
+<U87F7> \xF2\xDF |0
+<U87F9> \xC3\xC9 |0
+<U87FA> \xF2\xDC |0
+<U87FB> \xC3\xC6 |0
+<U87FC> \xF2\xE4 |0
+<U87FE> \xC3\xCA |0
+<U87FF> \xF2\xE6 |0
+<U8800> \xF2\xDB |0
+<U8801> \xF0\xCE |0
+<U8802> \xF2\xE8 |0
+<U8803> \xF2\xDD |0
+<U8805> \xC3\xC7 |0
+<U8806> \xF2\xE3 |0
+<U8808> \xF2\xE5 |0
+<U8809> \xF2\xE0 |0
+<U880A> \xF2\xE7 |0
+<U880B> \xF2\xE2 |0
+<U880C> \xF2\xE1 |0
+<U880D> \xC3\xC8 |0
+<U8810> \xF4\xC5 |0
+<U8811> \xF4\xC6 |0
+<U8813> \xF4\xC8 |0
+<U8814> \xC4\xAE |0
+<U8815> \xC4\xAF |0
+<U8816> \xF4\xC9 |0
+<U8817> \xF4\xC7 |0
+<U8819> \xF4\xC4 |0
+<U881B> \xF6\x42 |0
+<U881C> \xF6\x45 |0
+<U881D> \xF6\x41 |0
+<U881F> \xC4\xFA |0
+<U8820> \xF6\x43 |0
+<U8821> \xC4\xF9 |0
+<U8822> \xC4\xF8 |0
+<U8823> \xC4\xF7 |0
+<U8824> \xF6\x44 |0
+<U8825> \xF7\x51 |0
+<U8826> \xF7\x4F |0
+<U8828> \xF7\x4E |0
+<U8829> \xF6\x40 |0
+<U882A> \xF7\x50 |0
+<U882B> \xF6\x46 |0
+<U882C> \xF7\x4D |0
+<U882E> \xF7\xF9 |0
+<U882F> \xF7\xD7 |0
+<U8830> \xF7\xF7 |0
+<U8831> \xC5\xDB |0
+<U8832> \xF7\xF8 |0
+<U8833> \xF7\xFA |0
+<U8835> \xF8\xBF |0
+<U8836> \xC5\xFA |0
+<U8837> \xF8\xBE |0
+<U8838> \xF8\xBD |0
+<U8839> \xC5\xFB |0
+<U883B> \xC6\x5A |0
+<U883C> \xF9\x6E |0
+<U883D> \xF9\xA7 |0
+<U883E> \xF9\xA6 |0
+<U883F> \xF9\xA8 |0
+<U8840> \xA6\xE5 |0
+<U8841> \xD0\xAA |0
+<U8843> \xD3\xCF |0
+<U8844> \xD3\xD0 |0
+<U8848> \xDB\xC0 |0
+<U884A> \xF6\x47 |0
+<U884B> \xF8\xC0 |0
+<U884C> \xA6\xE6 |0
+<U884D> \xAD\x6C |0
+<U884E> \xD0\xAB |0
+<U8852> \xD7\xB1 |0
+<U8853> \xB3\x4E |0
+<U8855> \xDB\xC2 |0
+<U8856> \xDB\xC1 |0
+<U8857> \xB5\xF3 |0
+<U8859> \xB8\xC5 |0
+<U885A> \xE7\xC1 |0
+<U885B> \xBD\xC3 |0
+<U885D> \xBD\xC4 |0
+<U8861> \xBF\xC5 |0
+<U8862> \xC5\xFC |0
+<U8863> \xA6\xE7 |0
+<U8867> \xD0\xAC |0
+<U8868> \xAA\xED |0
+<U8869> \xD0\xAE |0
+<U886A> \xD0\xAD |0
+<U886B> \xAD\x6D |0
+<U886D> \xD3\xD1 |0
+<U886F> \xD3\xD8 |0
+<U8870> \xB0\x49 |0
+<U8871> \xD3\xD6 |0
+<U8872> \xD3\xD4 |0
+<U8874> \xD3\xDB |0
+<U8875> \xD3\xD2 |0
+<U8876> \xD3\xD3 |0
+<U8877> \xB0\x4A |0
+<U8879> \xB0\x4E |0
+<U887C> \xD3\xDC |0
+<U887D> \xB0\x4D |0
+<U887E> \xD3\xDA |0
+<U887F> \xD3\xD7 |0
+<U8880> \xD3\xD5 |0
+<U8881> \xB0\x4B |0
+<U8882> \xB0\x4C |0
+<U8883> \xD3\xD9 |0
+<U8888> \xB3\x50 |0
+<U8889> \xD7\xB2 |0
+<U888B> \xB3\x55 |0
+<U888C> \xD7\xC2 |0
+<U888D> \xB3\x54 |0
+<U888E> \xD7\xC4 |0
+<U8891> \xD7\xB8 |0
+<U8892> \xB3\x52 |0
+<U8893> \xD7\xC3 |0
+<U8895> \xD7\xB3 |0
+<U8896> \xB3\x53 |0
+<U8897> \xD7\xBF |0
+<U8898> \xD7\xBB |0
+<U8899> \xD7\xBD |0
+<U889A> \xD7\xB7 |0
+<U889B> \xD7\xBE |0
+<U889E> \xB3\x4F |0
+<U889F> \xD7\xBA |0
+<U88A1> \xD7\xB9 |0
+<U88A2> \xD7\xB5 |0
+<U88A4> \xD7\xC0 |0
+<U88A7> \xD7\xBC |0
+<U88A8> \xD7\xB4 |0
+<U88AA> \xD7\xB6 |0
+<U88AB> \xB3\x51 |0
+<U88AC> \xD7\xC1 |0
+<U88B1> \xB5\xF6 |0
+<U88B2> \xDB\xCD |0
+<U88B6> \xDB\xC9 |0
+<U88B7> \xDB\xCB |0
+<U88B8> \xDB\xC6 |0
+<U88B9> \xDB\xC5 |0
+<U88BA> \xDB\xC3 |0
+<U88BC> \xDB\xCA |0
+<U88BD> \xDB\xCC |0
+<U88BE> \xDB\xC8 |0
+<U88C0> \xDB\xC7 |0
+<U88C1> \xB5\xF4 |0
+<U88C2> \xB5\xF5 |0
+<U88C9> \xDB\xCF |0
+<U88CA> \xB8\xCD |0
+<U88CB> \xDF\xF2 |0
+<U88CC> \xDF\xF8 |0
+<U88CD> \xDF\xF3 |0
+<U88CE> \xDF\xF4 |0
+<U88CF> \xF9\xD8 |0
+<U88D0> \xDF\xF9 |0
+<U88D2> \xB8\xCF |0
+<U88D4> \xB8\xC7 |0
+<U88D5> \xB8\xCE |0
+<U88D6> \xDF\xF1 |0
+<U88D7> \xDB\xC4 |0
+<U88D8> \xB8\xCA |0
+<U88D9> \xB8\xC8 |0
+<U88DA> \xDF\xF7 |0
+<U88DB> \xDF\xF6 |0
+<U88DC> \xB8\xC9 |0
+<U88DD> \xB8\xCB |0
+<U88DE> \xDF\xF5 |0
+<U88DF> \xB8\xC6 |0
+<U88E1> \xB8\xCC |0
+<U88E7> \xE3\xF6 |0
+<U88E8> \xBB\x74 |0
+<U88EB> \xE4\x42 |0
+<U88EC> \xE4\x41 |0
+<U88EE> \xE3\xFB |0
+<U88EF> \xBB\x76 |0
+<U88F0> \xE4\x40 |0
+<U88F1> \xE3\xF7 |0
+<U88F2> \xE3\xF8 |0
+<U88F3> \xBB\x6E |0
+<U88F4> \xBB\x70 |0
+<U88F6> \xE3\xFD |0
+<U88F7> \xE3\xF5 |0
+<U88F8> \xBB\x72 |0
+<U88F9> \xBB\x71 |0
+<U88FA> \xE3\xF9 |0
+<U88FB> \xE3\xFE |0
+<U88FC> \xE3\xFC |0
+<U88FD> \xBB\x73 |0
+<U88FE> \xE3\xFA |0
+<U8901> \xDB\xCE |0
+<U8902> \xBB\x6F |0
+<U8905> \xE7\xC2 |0
+<U8906> \xE7\xC9 |0
+<U8907> \xBD\xC6 |0
+<U8909> \xE7\xCD |0
+<U890A> \xBD\xCA |0
+<U890B> \xE7\xC5 |0
+<U890C> \xE7\xC3 |0
+<U890E> \xE7\xCC |0
+<U8910> \xBD\xC5 |0
+<U8911> \xE7\xCB |0
+<U8912> \xBD\xC7 |0
+<U8913> \xBD\xC8 |0
+<U8914> \xE7\xC4 |0
+<U8915> \xBD\xC9 |0
+<U8916> \xE7\xCA |0
+<U8917> \xE7\xC6 |0
+<U8918> \xE7\xC7 |0
+<U8919> \xE7\xC8 |0
+<U891A> \xBB\x75 |0
+<U891E> \xEB\x70 |0
+<U891F> \xEB\x7C |0
+<U8921> \xBF\xCA |0
+<U8922> \xEB\x77 |0
+<U8923> \xEB\x79 |0
+<U8925> \xBF\xC8 |0
+<U8926> \xEB\x71 |0
+<U8927> \xEB\x75 |0
+<U8929> \xEB\x78 |0
+<U892A> \xBF\xC6 |0
+<U892B> \xBF\xC9 |0
+<U892C> \xEB\x7B |0
+<U892D> \xEB\x73 |0
+<U892E> \xEB\x74 |0
+<U892F> \xEB\x7A |0
+<U8930> \xEB\x72 |0
+<U8931> \xEB\x76 |0
+<U8932> \xBF\xC7 |0
+<U8933> \xEE\x72 |0
+<U8935> \xEE\x71 |0
+<U8936> \xC1\xB7 |0
+<U8937> \xEE\x77 |0
+<U8938> \xC1\xB9 |0
+<U893B> \xC1\xB6 |0
+<U893C> \xEE\x73 |0
+<U893D> \xC1\xBA |0
+<U893E> \xEE\x74 |0
+<U8941> \xEE\x75 |0
+<U8942> \xEE\x78 |0
+<U8944> \xC1\xB8 |0
+<U8946> \xF0\xD6 |0
+<U8949> \xF0\xD9 |0
+<U894B> \xF0\xD3 |0
+<U894C> \xF0\xD5 |0
+<U894F> \xF0\xD4 |0
+<U8950> \xF0\xD7 |0
+<U8951> \xF0\xD8 |0
+<U8952> \xEE\x76 |0
+<U8953> \xF0\xD2 |0
+<U8956> \xC3\xCD |0
+<U8957> \xF2\xEC |0
+<U8958> \xF2\xEF |0
+<U8959> \xF2\xF1 |0
+<U895A> \xF2\xEA |0
+<U895B> \xF2\xEB |0
+<U895C> \xF2\xEE |0
+<U895D> \xF2\xF0 |0
+<U895E> \xC3\xCE |0
+<U895F> \xC3\xCC |0
+<U8960> \xC3\xCB |0
+<U8961> \xF2\xED |0
+<U8962> \xF2\xE9 |0
+<U8963> \xF4\xCA |0
+<U8964> \xC4\xB0 |0
+<U8966> \xF4\xCB |0
+<U8969> \xF6\x49 |0
+<U896A> \xC4\xFB |0
+<U896B> \xF6\x4B |0
+<U896C> \xC4\xFC |0
+<U896D> \xF6\x48 |0
+<U896E> \xF6\x4A |0
+<U896F> \xC5\xA8 |0
+<U8971> \xF7\x52 |0
+<U8972> \xC5\xA7 |0
+<U8973> \xF7\xFD |0
+<U8974> \xF7\xFC |0
+<U8976> \xF7\xFB |0
+<U8979> \xF9\x48 |0
+<U897A> \xF9\x49 |0
+<U897B> \xF9\x4B |0
+<U897C> \xF9\x4A |0
+<U897E> \xCA\x50 |0
+<U897F> \xA6\xE8 |0
+<U8981> \xAD\x6E |0
+<U8982> \xD7\xC5 |0
+<U8983> \xB5\xF7 |0
+<U8985> \xDF\xFA |0
+<U8986> \xC2\xD0 |0
+<U8988> \xF2\xF2 |0
+<U898B> \xA8\xA3 |0
+<U898F> \xB3\x57 |0
+<U8993> \xB3\x56 |0
+<U8995> \xDB\xD0 |0
+<U8996> \xB5\xF8 |0
+<U8997> \xDB\xD2 |0
+<U8998> \xDB\xD1 |0
+<U899B> \xDF\xFB |0
+<U899C> \xB8\xD0 |0
+<U899D> \xE4\x43 |0
+<U899E> \xE4\x46 |0
+<U899F> \xE4\x45 |0
+<U89A1> \xE4\x44 |0
+<U89A2> \xE7\xCE |0
+<U89A3> \xE7\xD0 |0
+<U89A4> \xE7\xCF |0
+<U89A6> \xBF\xCC |0
+<U89AA> \xBF\xCB |0
+<U89AC> \xC1\xBB |0
+<U89AD> \xEE\x79 |0
+<U89AE> \xEE\x7B |0
+<U89AF> \xEE\x7A |0
+<U89B2> \xC2\xD1 |0
+<U89B6> \xF2\xF4 |0
+<U89B7> \xF2\xF3 |0
+<U89B9> \xF4\xCC |0
+<U89BA> \xC4\xB1 |0
+<U89BD> \xC4\xFD |0
+<U89BE> \xF7\x54 |0
+<U89BF> \xF7\x53 |0
+<U89C0> \xC6\x5B |0
+<U89D2> \xA8\xA4 |0
+<U89D3> \xD0\xAF |0
+<U89D4> \xAD\x6F |0
+<U89D5> \xD7\xC8 |0
+<U89D6> \xD7\xC6 |0
+<U89D9> \xD7\xC7 |0
+<U89DA> \xDB\xD4 |0
+<U89DB> \xDB\xD5 |0
+<U89DC> \xE0\x43 |0
+<U89DD> \xDB\xD3 |0
+<U89DF> \xDF\xFC |0
+<U89E0> \xE0\x41 |0
+<U89E1> \xE0\x40 |0
+<U89E2> \xE0\x42 |0
+<U89E3> \xB8\xD1 |0
+<U89E4> \xDF\xFE |0
+<U89E5> \xDF\xFD |0
+<U89E6> \xE0\x44 |0
+<U89E8> \xE4\x49 |0
+<U89E9> \xE4\x47 |0
+<U89EB> \xE4\x48 |0
+<U89EC> \xE7\xD3 |0
+<U89ED> \xE7\xD1 |0
+<U89F0> \xE7\xD2 |0
+<U89F1> \xEB\x7D |0
+<U89F2> \xEE\x7C |0
+<U89F3> \xEE\x7D |0
+<U89F4> \xC2\xD2 |0
+<U89F6> \xF2\xF5 |0
+<U89F7> \xF4\xCD |0
+<U89F8> \xC4\xB2 |0
+<U89FA> \xF6\x4C |0
+<U89FB> \xF7\x55 |0
+<U89FC> \xC5\xA9 |0
+<U89FE> \xF7\xFE |0
+<U89FF> \xF9\x4C |0
+<U8A00> \xA8\xA5 |0
+<U8A02> \xAD\x71 |0
+<U8A03> \xAD\x72 |0
+<U8A04> \xD0\xB0 |0
+<U8A07> \xD0\xB1 |0
+<U8A08> \xAD\x70 |0
+<U8A0A> \xB0\x54 |0
+<U8A0C> \xB0\x52 |0
+<U8A0E> \xB0\x51 |0
+<U8A0F> \xB0\x58 |0
+<U8A10> \xB0\x50 |0
+<U8A11> \xB0\x59 |0
+<U8A12> \xD3\xDD |0
+<U8A13> \xB0\x56 |0
+<U8A15> \xB0\x53 |0
+<U8A16> \xB0\x57 |0
+<U8A17> \xB0\x55 |0
+<U8A18> \xB0\x4F |0
+<U8A1B> \xB3\x5F |0
+<U8A1D> \xB3\x59 |0
+<U8A1E> \xD7\xCC |0
+<U8A1F> \xB3\x5E |0
+<U8A22> \xB3\x60 |0
+<U8A23> \xB3\x5A |0
+<U8A25> \xB3\x5B |0
+<U8A27> \xD7\xCA |0
+<U8A2A> \xB3\x58 |0
+<U8A2C> \xD7\xCB |0
+<U8A2D> \xB3\x5D |0
+<U8A30> \xD7\xC9 |0
+<U8A31> \xB3\x5C |0
+<U8A34> \xB6\x44 |0
+<U8A36> \xB6\x46 |0
+<U8A39> \xDB\xD8 |0
+<U8A3A> \xB6\x45 |0
+<U8A3B> \xB5\xF9 |0
+<U8A3C> \xB5\xFD |0
+<U8A3E> \xB8\xE4 |0
+<U8A3F> \xE0\x49 |0
+<U8A40> \xDB\xDA |0
+<U8A41> \xB5\xFE |0
+<U8A44> \xDB\xDD |0
+<U8A45> \xDB\xDE |0
+<U8A46> \xB6\x43 |0
+<U8A48> \xDB\xE0 |0
+<U8A4A> \xDB\xE2 |0
+<U8A4C> \xDB\xE3 |0
+<U8A4D> \xDB\xD7 |0
+<U8A4E> \xDB\xD6 |0
+<U8A4F> \xDB\xE4 |0
+<U8A50> \xB6\x42 |0
+<U8A51> \xDB\xE1 |0
+<U8A52> \xDB\xDF |0
+<U8A54> \xB6\x40 |0
+<U8A55> \xB5\xFB |0
+<U8A56> \xB6\x47 |0
+<U8A57> \xDB\xDB |0
+<U8A58> \xDB\xDC |0
+<U8A59> \xDB\xD9 |0
+<U8A5B> \xB6\x41 |0
+<U8A5E> \xB5\xFC |0
+<U8A60> \xB5\xFA |0
+<U8A61> \xE0\x48 |0
+<U8A62> \xB8\xDF |0
+<U8A63> \xB8\xDA |0
+<U8A66> \xB8\xD5 |0
+<U8A68> \xB8\xE5 |0
+<U8A69> \xB8\xD6 |0
+<U8A6B> \xB8\xD2 |0
+<U8A6C> \xB8\xE1 |0
+<U8A6D> \xB8\xDE |0
+<U8A6E> \xB8\xE0 |0
+<U8A70> \xB8\xD7 |0
+<U8A71> \xB8\xDC |0
+<U8A72> \xB8\xD3 |0
+<U8A73> \xB8\xD4 |0
+<U8A74> \xE0\x50 |0
+<U8A75> \xE0\x4D |0
+<U8A76> \xE0\x45 |0
+<U8A77> \xE0\x4A |0
+<U8A79> \xB8\xE2 |0
+<U8A7A> \xE0\x51 |0
+<U8A7B> \xB8\xE3 |0
+<U8A7C> \xB8\xD9 |0
+<U8A7F> \xE0\x47 |0
+<U8A81> \xE0\x4F |0
+<U8A82> \xE0\x4B |0
+<U8A83> \xE0\x4E |0
+<U8A84> \xE0\x4C |0
+<U8A85> \xB8\xDD |0
+<U8A86> \xE0\x46 |0
+<U8A87> \xB8\xD8 |0
+<U8A8B> \xE4\x4C |0
+<U8A8C> \xBB\x78 |0
+<U8A8D> \xBB\x7B |0
+<U8A8F> \xE4\x4E |0
+<U8A91> \xBB\xA5 |0
+<U8A92> \xE4\x4D |0
+<U8A93> \xBB\x7D |0
+<U8A95> \xBD\xCF |0
+<U8A96> \xE4\x4F |0
+<U8A98> \xBB\xA4 |0
+<U8A99> \xE4\x4B |0
+<U8A9A> \xBB\xA6 |0
+<U8A9E> \xBB\x79 |0
+<U8AA0> \xB8\xDB |0
+<U8AA1> \xBB\x7C |0
+<U8AA3> \xBB\x7A |0
+<U8AA4> \xBB\x7E |0
+<U8AA5> \xBB\xA2 |0
+<U8AA6> \xBB\x77 |0
+<U8AA7> \xBB\xA7 |0
+<U8AA8> \xBB\xA3 |0
+<U8AAA> \xBB\xA1 |0
+<U8AAB> \xE4\x4A |0
+<U8AB0> \xBD\xD6 |0
+<U8AB2> \xBD\xD2 |0
+<U8AB6> \xBD\xD9 |0
+<U8AB8> \xE7\xD6 |0
+<U8AB9> \xBD\xDA |0
+<U8ABA> \xE7\xE2 |0
+<U8ABB> \xE7\xDB |0
+<U8ABC> \xBD\xCB |0
+<U8ABD> \xE7\xE3 |0
+<U8ABE> \xE7\xDD |0
+<U8ABF> \xBD\xD5 |0
+<U8AC0> \xE7\xDE |0
+<U8AC2> \xBD\xD4 |0
+<U8AC3> \xE7\xE1 |0
+<U8AC4> \xBD\xCE |0
+<U8AC5> \xE7\xDF |0
+<U8AC6> \xE7\xD5 |0
+<U8AC7> \xBD\xCD |0
+<U8AC8> \xEB\xAA |0
+<U8AC9> \xBD\xD3 |0
+<U8ACB> \xBD\xD0 |0
+<U8ACD> \xBD\xD8 |0
+<U8ACF> \xE7\xD4 |0
+<U8AD1> \xE7\xD8 |0
+<U8AD2> \xBD\xCC |0
+<U8AD3> \xE7\xD7 |0
+<U8AD4> \xE7\xD9 |0
+<U8AD5> \xE7\xDA |0
+<U8AD6> \xBD\xD7 |0
+<U8AD7> \xE7\xDC |0
+<U8AD8> \xE7\xE0 |0
+<U8AD9> \xE7\xE4 |0
+<U8ADB> \xBD\xDB |0
+<U8ADC> \xBF\xD2 |0
+<U8ADD> \xEB\xA5 |0
+<U8ADE> \xEB\xAB |0
+<U8ADF> \xEB\xA8 |0
+<U8AE0> \xEB\x7E |0
+<U8AE1> \xEB\xAC |0
+<U8AE2> \xEB\xA1 |0
+<U8AE4> \xEB\xA7 |0
+<U8AE6> \xBF\xCD |0
+<U8AE7> \xBF\xD3 |0
+<U8AE8> \xEB\xAD |0
+<U8AEB> \xBF\xCF |0
+<U8AED> \xBF\xD9 |0
+<U8AEE> \xBF\xD4 |0
+<U8AEF> \xEB\xAF |0
+<U8AF0> \xEB\xA9 |0
+<U8AF1> \xBF\xD0 |0
+<U8AF2> \xEB\xA2 |0
+<U8AF3> \xBF\xDA |0
+<U8AF4> \xEB\xA3 |0
+<U8AF5> \xEB\xA4 |0
+<U8AF6> \xBF\xDB |0
+<U8AF7> \xBF\xD8 |0
+<U8AF8> \xBD\xD1 |0
+<U8AFA> \xBF\xCE |0
+<U8AFB> \xEB\xB0 |0
+<U8AFC> \xBF\xDC |0
+<U8AFE> \xBF\xD5 |0
+<U8AFF> \xEB\xAE |0
+<U8B00> \xBF\xD1 |0
+<U8B01> \xBF\xD6 |0
+<U8B02> \xBF\xD7 |0
+<U8B04> \xC1\xC3 |0
+<U8B05> \xEE\xA4 |0
+<U8B06> \xEE\xAD |0
+<U8B07> \xEE\xAA |0
+<U8B08> \xEE\xAC |0
+<U8B0A> \xC1\xC0 |0
+<U8B0B> \xEE\xA5 |0
+<U8B0D> \xEE\xAB |0
+<U8B0E> \xC1\xBC |0
+<U8B0F> \xEE\xA7 |0
+<U8B10> \xC1\xC4 |0
+<U8B11> \xEE\xA3 |0
+<U8B12> \xEE\xA8 |0
+<U8B13> \xEE\xAF |0
+<U8B14> \xEB\xA6 |0
+<U8B15> \xEE\xA9 |0
+<U8B16> \xEE\xA2 |0
+<U8B17> \xC1\xBD |0
+<U8B18> \xEE\xA1 |0
+<U8B19> \xC1\xBE |0
+<U8B1A> \xEE\xB0 |0
+<U8B1B> \xC1\xBF |0
+<U8B1C> \xEE\xAE |0
+<U8B1D> \xC1\xC2 |0
+<U8B1E> \xEE\x7E |0
+<U8B20> \xC1\xC1 |0
+<U8B22> \xEE\xA6 |0
+<U8B23> \xF0\xDC |0
+<U8B24> \xF0\xEA |0
+<U8B25> \xF0\xE5 |0
+<U8B26> \xF0\xE7 |0
+<U8B27> \xF0\xDB |0
+<U8B28> \xC2\xD3 |0
+<U8B2A> \xF0\xDA |0
+<U8B2B> \xC2\xD6 |0
+<U8B2C> \xC2\xD5 |0
+<U8B2E> \xF0\xE9 |0
+<U8B2F> \xF0\xE1 |0
+<U8B30> \xF0\xDE |0
+<U8B31> \xF0\xE4 |0
+<U8B33> \xF0\xDD |0
+<U8B35> \xF0\xDF |0
+<U8B36> \xF0\xE8 |0
+<U8B37> \xF0\xE6 |0
+<U8B39> \xC2\xD4 |0
+<U8B3A> \xF0\xED |0
+<U8B3B> \xF0\xEB |0
+<U8B3C> \xF0\xE2 |0
+<U8B3D> \xF0\xEC |0
+<U8B3E> \xF0\xE3 |0
+<U8B40> \xF2\xF9 |0
+<U8B41> \xC3\xCF |0
+<U8B42> \xF3\x41 |0
+<U8B45> \xF6\x4F |0
+<U8B46> \xC3\xD6 |0
+<U8B47> \xF0\xE0 |0
+<U8B48> \xF2\xF7 |0
+<U8B49> \xC3\xD2 |0
+<U8B4A> \xF2\xF8 |0
+<U8B4B> \xF2\xFD |0
+<U8B4E> \xC3\xD4 |0
+<U8B4F> \xC3\xD5 |0
+<U8B50> \xF2\xF6 |0
+<U8B51> \xF3\x40 |0
+<U8B52> \xF3\x42 |0
+<U8B53> \xF2\xFA |0
+<U8B54> \xF2\xFC |0
+<U8B55> \xF2\xFE |0
+<U8B56> \xF2\xFB |0
+<U8B57> \xF3\x43 |0
+<U8B58> \xC3\xD1 |0
+<U8B59> \xC3\xD7 |0
+<U8B5A> \xC3\xD3 |0
+<U8B5C> \xC3\xD0 |0
+<U8B5D> \xF4\xD0 |0
+<U8B5F> \xC4\xB7 |0
+<U8B60> \xF4\xCE |0
+<U8B63> \xF4\xD2 |0
+<U8B65> \xF4\xD3 |0
+<U8B66> \xC4\xB5 |0
+<U8B67> \xF4\xD4 |0
+<U8B68> \xF4\xD1 |0
+<U8B6A> \xF4\xCF |0
+<U8B6B> \xC4\xB8 |0
+<U8B6C> \xC4\xB4 |0
+<U8B6D> \xF4\xD5 |0
+<U8B6F> \xC4\xB6 |0
+<U8B70> \xC4\xB3 |0
+<U8B74> \xC4\xFE |0
+<U8B77> \xC5\x40 |0
+<U8B78> \xF6\x4E |0
+<U8B79> \xF6\x4D |0
+<U8B7A> \xF6\x50 |0
+<U8B7B> \xF6\x51 |0
+<U8B7D> \xC5\x41 |0
+<U8B7E> \xF7\x56 |0
+<U8B7F> \xF7\x5B |0
+<U8B80> \xC5\xAA |0
+<U8B82> \xF7\x58 |0
+<U8B84> \xF7\x57 |0
+<U8B85> \xF7\x5A |0
+<U8B86> \xF7\x59 |0
+<U8B88> \xF8\x43 |0
+<U8B8A> \xC5\xDC |0
+<U8B8B> \xF8\x42 |0
+<U8B8C> \xF8\x40 |0
+<U8B8E> \xF8\x41 |0
+<U8B92> \xC5\xFE |0
+<U8B93> \xC5\xFD |0
+<U8B94> \xF8\xC1 |0
+<U8B95> \xF8\xC2 |0
+<U8B96> \xC6\x40 |0
+<U8B98> \xF9\x4D |0
+<U8B99> \xF9\x4E |0
+<U8B9A> \xC6\x67 |0
+<U8B9C> \xC6\x6D |0
+<U8B9E> \xF9\xA9 |0
+<U8B9F> \xF9\xC8 |0
+<U8C37> \xA8\xA6 |0
+<U8C39> \xD7\xCD |0
+<U8C3B> \xD7\xCE |0
+<U8C3C> \xE0\x52 |0
+<U8C3D> \xE4\x50 |0
+<U8C3E> \xE7\xE5 |0
+<U8C3F> \xC1\xC6 |0
+<U8C41> \xC1\xC5 |0
+<U8C42> \xF0\xEE |0
+<U8C43> \xF3\x44 |0
+<U8C45> \xF8\x44 |0
+<U8C46> \xA8\xA7 |0
+<U8C47> \xD3\xDE |0
+<U8C48> \xB0\x5A |0
+<U8C49> \xB3\x61 |0
+<U8C4A> \xE0\x54 |0
+<U8C4B> \xE0\x53 |0
+<U8C4C> \xBD\xDC |0
+<U8C4D> \xE7\xE6 |0
+<U8C4E> \xBD\xDD |0
+<U8C4F> \xEE\xB1 |0
+<U8C50> \xC2\xD7 |0
+<U8C54> \xC6\x76 |0
+<U8C55> \xA8\xA8 |0
+<U8C56> \xCD\xCB |0
+<U8C57> \xD3\xDF |0
+<U8C5A> \xB3\x62 |0
+<U8C5C> \xD7\xCF |0
+<U8C5D> \xD7\xD0 |0
+<U8C5F> \xDB\xE5 |0
+<U8C61> \xB6\x48 |0
+<U8C62> \xB8\xE6 |0
+<U8C64> \xE0\x56 |0
+<U8C65> \xE0\x55 |0
+<U8C66> \xE0\x57 |0
+<U8C68> \xE4\x51 |0
+<U8C69> \xE4\x52 |0
+<U8C6A> \xBB\xA8 |0
+<U8C6B> \xBF\xDD |0
+<U8C6C> \xBD\xDE |0
+<U8C6D> \xBF\xDE |0
+<U8C6F> \xEE\xB5 |0
+<U8C70> \xEE\xB2 |0
+<U8C71> \xEE\xB4 |0
+<U8C72> \xEE\xB3 |0
+<U8C73> \xC1\xC7 |0
+<U8C75> \xF0\xEF |0
+<U8C76> \xF3\x46 |0
+<U8C77> \xF3\x45 |0
+<U8C78> \xCB\xA4 |0
+<U8C79> \xB0\x5C |0
+<U8C7A> \xB0\x5B |0
+<U8C7B> \xD3\xE0 |0
+<U8C7D> \xD7\xD1 |0
+<U8C80> \xDB\xE7 |0
+<U8C81> \xDB\xE6 |0
+<U8C82> \xB6\x49 |0
+<U8C84> \xE0\x59 |0
+<U8C85> \xE0\x5A |0
+<U8C86> \xE0\x58 |0
+<U8C89> \xB8\xE8 |0
+<U8C8A> \xB8\xE7 |0
+<U8C8C> \xBB\xAA |0
+<U8C8D> \xBB\xA9 |0
+<U8C8F> \xE7\xE7 |0
+<U8C90> \xEB\xB3 |0
+<U8C91> \xEB\xB1 |0
+<U8C92> \xEB\xB2 |0
+<U8C93> \xBF\xDF |0
+<U8C94> \xEE\xB7 |0
+<U8C95> \xEE\xB6 |0
+<U8C97> \xF0\xF2 |0
+<U8C98> \xF0\xF1 |0
+<U8C99> \xF0\xF0 |0
+<U8C9A> \xF3\x47 |0
+<U8C9C> \xF9\xAA |0
+<U8C9D> \xA8\xA9 |0
+<U8C9E> \xAD\x73 |0
+<U8CA0> \xAD\x74 |0
+<U8CA1> \xB0\x5D |0
+<U8CA2> \xB0\x5E |0
+<U8CA3> \xD3\xE2 |0
+<U8CA4> \xD3\xE1 |0
+<U8CA5> \xD7\xD2 |0
+<U8CA7> \xB3\x68 |0
+<U8CA8> \xB3\x66 |0
+<U8CA9> \xB3\x63 |0
+<U8CAA> \xB3\x67 |0
+<U8CAB> \xB3\x65 |0
+<U8CAC> \xB3\x64 |0
+<U8CAF> \xB6\x4A |0
+<U8CB0> \xDB\xEA |0
+<U8CB2> \xB8\xED |0
+<U8CB3> \xB6\x4C |0
+<U8CB4> \xB6\x51 |0
+<U8CB5> \xDB\xEC |0
+<U8CB6> \xB6\x53 |0
+<U8CB7> \xB6\x52 |0
+<U8CB8> \xB6\x55 |0
+<U8CB9> \xDB\xEB |0
+<U8CBA> \xDB\xE8 |0
+<U8CBB> \xB6\x4F |0
+<U8CBC> \xB6\x4B |0
+<U8CBD> \xB6\x4D |0
+<U8CBE> \xDB\xE9 |0
+<U8CBF> \xB6\x54 |0
+<U8CC0> \xB6\x50 |0
+<U8CC1> \xB6\x4E |0
+<U8CC2> \xB8\xEF |0
+<U8CC3> \xB8\xEE |0
+<U8CC4> \xB8\xEC |0
+<U8CC5> \xB8\xF0 |0
+<U8CC7> \xB8\xEA |0
+<U8CC8> \xB8\xEB |0
+<U8CCA> \xB8\xE9 |0
+<U8CCC> \xE0\x5B |0
+<U8CCF> \xE4\x54 |0
+<U8CD1> \xBB\xAC |0
+<U8CD2> \xBB\xAD |0
+<U8CD3> \xBB\xAB |0
+<U8CD5> \xE4\x53 |0
+<U8CD7> \xE4\x55 |0
+<U8CD9> \xE7\xEA |0
+<U8CDA> \xE7\xEC |0
+<U8CDC> \xBD\xE7 |0
+<U8CDD> \xE7\xED |0
+<U8CDE> \xBD\xE0 |0
+<U8CDF> \xE7\xE9 |0
+<U8CE0> \xBD\xDF |0
+<U8CE1> \xBD\xE9 |0
+<U8CE2> \xBD\xE5 |0
+<U8CE3> \xBD\xE6 |0
+<U8CE4> \xBD\xE2 |0
+<U8CE5> \xE7\xE8 |0
+<U8CE6> \xBD\xE1 |0
+<U8CE7> \xE7\xEE |0
+<U8CE8> \xE7\xEB |0
+<U8CEA> \xBD\xE8 |0
+<U8CEC> \xBD\xE3 |0
+<U8CED> \xBD\xE4 |0
+<U8CEE> \xEB\xB5 |0
+<U8CF0> \xEB\xB7 |0
+<U8CF1> \xEB\xB6 |0
+<U8CF3> \xEB\xB8 |0
+<U8CF4> \xBF\xE0 |0
+<U8CF5> \xEB\xB4 |0
+<U8CF8> \xC1\xCB |0
+<U8CF9> \xEE\xB8 |0
+<U8CFA> \xC1\xC8 |0
+<U8CFB> \xC1\xCC |0
+<U8CFC> \xC1\xCA |0
+<U8CFD> \xC1\xC9 |0
+<U8CFE> \xF0\xF3 |0
+<U8D00> \xF0\xF6 |0
+<U8D02> \xF0\xF5 |0
+<U8D04> \xF0\xF4 |0
+<U8D05> \xC2\xD8 |0
+<U8D06> \xF3\x48 |0
+<U8D07> \xF3\x49 |0
+<U8D08> \xC3\xD8 |0
+<U8D09> \xF3\x4A |0
+<U8D0A> \xC3\xD9 |0
+<U8D0D> \xC4\xBA |0
+<U8D0F> \xC4\xB9 |0
+<U8D10> \xF6\x52 |0
+<U8D13> \xC5\x42 |0
+<U8D14> \xF6\x53 |0
+<U8D15> \xF7\x5C |0
+<U8D16> \xC5\xAB |0
+<U8D17> \xC5\xAC |0
+<U8D19> \xF8\x45 |0
+<U8D1B> \xC6\x42 |0
+<U8D64> \xA8\xAA |0
+<U8D66> \xB3\x6A |0
+<U8D67> \xB3\x69 |0
+<U8D68> \xE0\x5C |0
+<U8D69> \xE0\x5D |0
+<U8D6B> \xBB\xAE |0
+<U8D6C> \xEB\xB9 |0
+<U8D6D> \xBD\xEA |0
+<U8D6E> \xEB\xBA |0
+<U8D6F> \xEE\xB9 |0
+<U8D70> \xA8\xAB |0
+<U8D72> \xD0\xB2 |0
+<U8D73> \xAD\x76 |0
+<U8D74> \xAD\x75 |0
+<U8D76> \xD3\xE3 |0
+<U8D77> \xB0\x5F |0
+<U8D78> \xD3\xE4 |0
+<U8D79> \xD7\xD5 |0
+<U8D7B> \xD7\xD4 |0
+<U8D7D> \xD7\xD3 |0
+<U8D80> \xDB\xEE |0
+<U8D81> \xB6\x58 |0
+<U8D84> \xDB\xED |0
+<U8D85> \xB6\x57 |0
+<U8D89> \xDB\xEF |0
+<U8D8A> \xB6\x56 |0
+<U8D8C> \xE0\x5F |0
+<U8D8D> \xE0\x62 |0
+<U8D8E> \xE0\x60 |0
+<U8D8F> \xE0\x61 |0
+<U8D90> \xE0\x65 |0
+<U8D91> \xE0\x5E |0
+<U8D92> \xE0\x66 |0
+<U8D93> \xE0\x63 |0
+<U8D94> \xE0\x64 |0
+<U8D95> \xBB\xB0 |0
+<U8D96> \xE4\x56 |0
+<U8D99> \xBB\xAF |0
+<U8D9B> \xE7\xF2 |0
+<U8D9C> \xE7\xF0 |0
+<U8D9F> \xBD\xEB |0
+<U8DA0> \xE7\xEF |0
+<U8DA1> \xE7\xF1 |0
+<U8DA3> \xBD\xEC |0
+<U8DA5> \xEB\xBB |0
+<U8DA7> \xEB\xBC |0
+<U8DA8> \xC1\xCD |0
+<U8DAA> \xF3\x4C |0
+<U8DAB> \xF3\x4E |0
+<U8DAC> \xF3\x4B |0
+<U8DAD> \xF3\x4D |0
+<U8DAE> \xF4\xD6 |0
+<U8DAF> \xF6\x54 |0
+<U8DB2> \xF9\x6F |0
+<U8DB3> \xA8\xAC |0
+<U8DB4> \xAD\x77 |0
+<U8DB5> \xD3\xE5 |0
+<U8DB6> \xD3\xE7 |0
+<U8DB7> \xD3\xE6 |0
+<U8DB9> \xD7\xD8 |0
+<U8DBA> \xB3\x6C |0
+<U8DBC> \xD7\xD6 |0
+<U8DBE> \xB3\x6B |0
+<U8DBF> \xD7\xD9 |0
+<U8DC1> \xD7\xDA |0
+<U8DC2> \xD7\xD7 |0
+<U8DC5> \xDB\xFB |0
+<U8DC6> \xB6\x60 |0
+<U8DC7> \xDB\xF3 |0
+<U8DC8> \xDB\xF9 |0
+<U8DCB> \xB6\x5B |0
+<U8DCC> \xB6\x5E |0
+<U8DCD> \xDB\xF2 |0
+<U8DCE> \xB6\x59 |0
+<U8DCF> \xDB\xF6 |0
+<U8DD0> \xE0\x6C |0
+<U8DD1> \xB6\x5D |0
+<U8DD3> \xDB\xF1 |0
+<U8DD5> \xDB\xF7 |0
+<U8DD6> \xDB\xF4 |0
+<U8DD7> \xDB\xFA |0
+<U8DD8> \xDB\xF0 |0
+<U8DD9> \xDB\xF8 |0
+<U8DDA> \xB6\x5C |0
+<U8DDB> \xB6\x5F |0
+<U8DDC> \xDB\xF5 |0
+<U8DDD> \xB6\x5A |0
+<U8DDF> \xB8\xF2 |0
+<U8DE0> \xE0\x68 |0
+<U8DE1> \xB8\xF1 |0
+<U8DE2> \xE0\x6F |0
+<U8DE3> \xE0\x6E |0
+<U8DE4> \xB8\xF8 |0
+<U8DE6> \xB8\xF9 |0
+<U8DE7> \xE0\x70 |0
+<U8DE8> \xB8\xF3 |0
+<U8DE9> \xE0\x6D |0
+<U8DEA> \xB8\xF7 |0
+<U8DEB> \xE0\x72 |0
+<U8DEC> \xE0\x69 |0
+<U8DEE> \xE0\x6B |0
+<U8DEF> \xB8\xF4 |0
+<U8DF0> \xE0\x67 |0
+<U8DF1> \xE0\x6A |0
+<U8DF2> \xE0\x71 |0
+<U8DF3> \xB8\xF5 |0
+<U8DF4> \xE0\x73 |0
+<U8DFA> \xB8\xF6 |0
+<U8DFC> \xBB\xB1 |0
+<U8DFD> \xE4\x5B |0
+<U8DFE> \xE4\x61 |0
+<U8DFF> \xE4\x59 |0
+<U8E00> \xE4\x62 |0
+<U8E02> \xE4\x58 |0
+<U8E03> \xE4\x5D |0
+<U8E04> \xE4\x63 |0
+<U8E05> \xE4\x60 |0
+<U8E06> \xE4\x5F |0
+<U8E07> \xE4\x5E |0
+<U8E09> \xE4\x57 |0
+<U8E0A> \xE4\x5C |0
+<U8E0D> \xE4\x5A |0
+<U8E0F> \xBD\xF1 |0
+<U8E10> \xBD\xEE |0
+<U8E11> \xE7\xFB |0
+<U8E12> \xE8\x41 |0
+<U8E13> \xE8\x43 |0
+<U8E14> \xE8\x40 |0
+<U8E15> \xE7\xF8 |0
+<U8E16> \xE7\xFA |0
+<U8E17> \xE8\x45 |0
+<U8E18> \xE8\x42 |0
+<U8E19> \xE7\xFC |0
+<U8E1A> \xE8\x46 |0
+<U8E1B> \xE7\xF9 |0
+<U8E1C> \xE8\x44 |0
+<U8E1D> \xBD\xEF |0
+<U8E1E> \xBD\xF5 |0
+<U8E1F> \xBD\xF3 |0
+<U8E20> \xE7\xF3 |0
+<U8E21> \xBD\xF4 |0
+<U8E22> \xBD\xF0 |0
+<U8E23> \xE7\xF4 |0
+<U8E24> \xE7\xF6 |0
+<U8E25> \xE7\xF5 |0
+<U8E26> \xE7\xFD |0
+<U8E27> \xE7\xFE |0
+<U8E29> \xBD\xF2 |0
+<U8E2B> \xBD\xED |0
+<U8E2E> \xE7\xF7 |0
+<U8E30> \xEB\xC6 |0
+<U8E31> \xBF\xE2 |0
+<U8E33> \xEB\xBD |0
+<U8E34> \xBF\xE3 |0
+<U8E35> \xBF\xE6 |0
+<U8E36> \xEB\xC2 |0
+<U8E38> \xEB\xBF |0
+<U8E39> \xBF\xE5 |0
+<U8E3C> \xEB\xC3 |0
+<U8E3D> \xEB\xC4 |0
+<U8E3E> \xEB\xBE |0
+<U8E3F> \xEB\xC7 |0
+<U8E40> \xEB\xC0 |0
+<U8E41> \xEB\xC5 |0
+<U8E42> \xBF\xE4 |0
+<U8E44> \xBF\xE1 |0
+<U8E45> \xEB\xC1 |0
+<U8E47> \xEE\xBF |0
+<U8E48> \xC1\xD0 |0
+<U8E49> \xC1\xCE |0
+<U8E4A> \xC1\xD1 |0
+<U8E4B> \xC1\xCF |0
+<U8E4C> \xEE\xBE |0
+<U8E4D> \xEE\xBB |0
+<U8E4E> \xEE\xBA |0
+<U8E50> \xEE\xBD |0
+<U8E53> \xEE\xBC |0
+<U8E54> \xF1\x45 |0
+<U8E55> \xC2\xDE |0
+<U8E56> \xF0\xFB |0
+<U8E57> \xF0\xFA |0
+<U8E59> \xC2\xD9 |0
+<U8E5A> \xF1\x41 |0
+<U8E5B> \xF1\x40 |0
+<U8E5C> \xF0\xF7 |0
+<U8E5D> \xF1\x43 |0
+<U8E5E> \xF0\xFC |0
+<U8E5F> \xC2\xDD |0
+<U8E60> \xF0\xF9 |0
+<U8E61> \xF1\x42 |0
+<U8E62> \xF0\xF8 |0
+<U8E63> \xC2\xDA |0
+<U8E64> \xC2\xDC |0
+<U8E65> \xF0\xFD |0
+<U8E66> \xC2\xDB |0
+<U8E67> \xF0\xFE |0
+<U8E69> \xF1\x44 |0
+<U8E6A> \xF3\x52 |0
+<U8E6C> \xC3\xDE |0
+<U8E6D> \xF3\x4F |0
+<U8E6F> \xF3\x53 |0
+<U8E72> \xC3\xDB |0
+<U8E73> \xF3\x51 |0
+<U8E74> \xC3\xE0 |0
+<U8E76> \xC3\xDD |0
+<U8E78> \xF3\x50 |0
+<U8E7A> \xC3\xDF |0
+<U8E7B> \xF3\x54 |0
+<U8E7C> \xC3\xDA |0
+<U8E81> \xC4\xBC |0
+<U8E82> \xC4\xBE |0
+<U8E84> \xF4\xD9 |0
+<U8E85> \xC4\xBD |0
+<U8E86> \xF4\xD7 |0
+<U8E87> \xC3\xDC |0
+<U8E88> \xF4\xD8 |0
+<U8E89> \xC4\xBB |0
+<U8E8A> \xC5\x43 |0
+<U8E8B> \xC5\x45 |0
+<U8E8C> \xF6\x56 |0
+<U8E8D> \xC5\x44 |0
+<U8E8E> \xF6\x55 |0
+<U8E90> \xF7\x61 |0
+<U8E91> \xC5\xAD |0
+<U8E92> \xF7\x60 |0
+<U8E93> \xC5\xAE |0
+<U8E94> \xF7\x5E |0
+<U8E95> \xF7\x5D |0
+<U8E96> \xF7\x62 |0
+<U8E97> \xF7\x63 |0
+<U8E98> \xF8\x46 |0
+<U8E9A> \xF7\x5F |0
+<U8E9D> \xF8\xC6 |0
+<U8E9E> \xF8\xC3 |0
+<U8E9F> \xF8\xC4 |0
+<U8EA0> \xF8\xC5 |0
+<U8EA1> \xC6\x5C |0
+<U8EA3> \xF9\x51 |0
+<U8EA4> \xF9\x50 |0
+<U8EA5> \xF9\x4F |0
+<U8EA6> \xF9\x70 |0
+<U8EA8> \xF9\xBE |0
+<U8EA9> \xF9\xAB |0
+<U8EAA> \xC6\x6E |0
+<U8EAB> \xA8\xAD |0
+<U8EAC> \xB0\x60 |0
+<U8EB2> \xB8\xFA |0
+<U8EBA> \xBD\xF6 |0
+<U8EBD> \xEB\xC8 |0
+<U8EC0> \xC2\xDF |0
+<U8EC2> \xF3\x55 |0
+<U8EC9> \xF9\xAC |0
+<U8ECA> \xA8\xAE |0
+<U8ECB> \xAA\xEE |0
+<U8ECC> \xAD\x79 |0
+<U8ECD> \xAD\x78 |0
+<U8ECF> \xB0\x63 |0
+<U8ED1> \xD3\xE8 |0
+<U8ED2> \xB0\x61 |0
+<U8ED3> \xD3\xE9 |0
+<U8ED4> \xB0\x62 |0
+<U8ED7> \xD7\xDF |0
+<U8ED8> \xD7\xDB |0
+<U8EDB> \xB3\x6D |0
+<U8EDC> \xD7\xDE |0
+<U8EDD> \xD7\xDD |0
+<U8EDE> \xD7\xDC |0
+<U8EDF> \xB3\x6E |0
+<U8EE0> \xD7\xE0 |0
+<U8EE1> \xD7\xE1 |0
+<U8EE5> \xDC\x43 |0
+<U8EE6> \xDC\x41 |0
+<U8EE7> \xDC\x45 |0
+<U8EE8> \xDC\x46 |0
+<U8EE9> \xDC\x4C |0
+<U8EEB> \xDC\x48 |0
+<U8EEC> \xDC\x4A |0
+<U8EEE> \xDC\x42 |0
+<U8EEF> \xDB\xFC |0
+<U8EF1> \xDC\x49 |0
+<U8EF4> \xDC\x4B |0
+<U8EF5> \xDC\x44 |0
+<U8EF6> \xDC\x47 |0
+<U8EF7> \xDB\xFD |0
+<U8EF8> \xB6\x62 |0
+<U8EF9> \xDC\x40 |0
+<U8EFA> \xDB\xFE |0
+<U8EFB> \xB6\x61 |0
+<U8EFC> \xB6\x63 |0
+<U8EFE> \xB8\xFD |0
+<U8EFF> \xE0\x75 |0
+<U8F00> \xE0\x77 |0
+<U8F01> \xE0\x76 |0
+<U8F02> \xE0\x7B |0
+<U8F03> \xB8\xFB |0
+<U8F05> \xE0\x78 |0
+<U8F06> \xE0\x74 |0
+<U8F07> \xE0\x79 |0
+<U8F08> \xE0\x7A |0
+<U8F09> \xB8\xFC |0
+<U8F0A> \xB8\xFE |0
+<U8F0B> \xE0\x7C |0
+<U8F0D> \xE4\x67 |0
+<U8F0E> \xE4\x66 |0
+<U8F10> \xE4\x64 |0
+<U8F11> \xE4\x65 |0
+<U8F12> \xBB\xB3 |0
+<U8F13> \xBB\xB5 |0
+<U8F14> \xBB\xB2 |0
+<U8F15> \xBB\xB4 |0
+<U8F16> \xE8\x4D |0
+<U8F17> \xE8\x4E |0
+<U8F18> \xE8\x49 |0
+<U8F1A> \xE8\x4A |0
+<U8F1B> \xBD\xF8 |0
+<U8F1C> \xBD\xFD |0
+<U8F1D> \xBD\xF7 |0
+<U8F1E> \xBD\xFE |0
+<U8F1F> \xBD\xF9 |0
+<U8F20> \xE8\x4B |0
+<U8F23> \xE8\x4C |0
+<U8F24> \xE8\x48 |0
+<U8F25> \xBE\x40 |0
+<U8F26> \xBD\xFB |0
+<U8F29> \xBD\xFA |0
+<U8F2A> \xBD\xFC |0
+<U8F2C> \xE8\x47 |0
+<U8F2E> \xEB\xCA |0
+<U8F2F> \xBF\xE8 |0
+<U8F32> \xEB\xCC |0
+<U8F33> \xBF\xEA |0
+<U8F34> \xEB\xCF |0
+<U8F35> \xEB\xCB |0
+<U8F36> \xEB\xC9 |0
+<U8F37> \xEB\xCE |0
+<U8F38> \xBF\xE9 |0
+<U8F39> \xEB\xCD |0
+<U8F3B> \xBF\xE7 |0
+<U8F3E> \xC1\xD3 |0
+<U8F3F> \xC1\xD6 |0
+<U8F40> \xEE\xC1 |0
+<U8F42> \xC1\xD4 |0
+<U8F43> \xEE\xC0 |0
+<U8F44> \xC1\xD2 |0
+<U8F45> \xC1\xD5 |0
+<U8F46> \xF1\x46 |0
+<U8F47> \xF1\x47 |0
+<U8F48> \xF1\x48 |0
+<U8F49> \xC2\xE0 |0
+<U8F4B> \xF1\x49 |0
+<U8F4D> \xC2\xE1 |0
+<U8F4E> \xC3\xE2 |0
+<U8F4F> \xF3\x58 |0
+<U8F50> \xF3\x59 |0
+<U8F51> \xF3\x57 |0
+<U8F52> \xF3\x56 |0
+<U8F53> \xF3\x5A |0
+<U8F54> \xC3\xE1 |0
+<U8F55> \xF4\xDD |0
+<U8F56> \xF4\xDB |0
+<U8F57> \xF4\xDC |0
+<U8F58> \xF4\xDE |0
+<U8F59> \xF4\xDA |0
+<U8F5A> \xF4\xDF |0
+<U8F5B> \xF6\x58 |0
+<U8F5D> \xF6\x59 |0
+<U8F5E> \xF6\x57 |0
+<U8F5F> \xC5\x46 |0
+<U8F60> \xF7\x64 |0
+<U8F61> \xC5\xAF |0
+<U8F62> \xF7\x65 |0
+<U8F63> \xF8\x48 |0
+<U8F64> \xF8\x47 |0
+<U8F9B> \xA8\xAF |0
+<U8F9C> \xB6\x64 |0
+<U8F9F> \xB9\x40 |0
+<U8FA3> \xBB\xB6 |0
+<U8FA6> \xBF\xEC |0
+<U8FA8> \xBF\xEB |0
+<U8FAD> \xC3\xE3 |0
+<U8FAE> \xC4\x7C |0
+<U8FAF> \xC5\x47 |0
+<U8FB0> \xA8\xB0 |0
+<U8FB1> \xB0\x64 |0
+<U8FB2> \xB9\x41 |0
+<U8FB4> \xF3\x5B |0
+<U8FBF> \xCB\xA6 |0
+<U8FC2> \xA8\xB1 |0
+<U8FC4> \xA8\xB4 |0
+<U8FC5> \xA8\xB3 |0
+<U8FC6> \xA8\xB2 |0
+<U8FC9> \xCB\xA5 |0
+<U8FCB> \xCD\xCD |0
+<U8FCD> \xCD\xCF |0
+<U8FCE> \xAA\xEF |0
+<U8FD1> \xAA\xF1 |0
+<U8FD2> \xCD\xCC |0
+<U8FD3> \xCD\xCE |0
+<U8FD4> \xAA\xF0 |0
+<U8FD5> \xCD\xD1 |0
+<U8FD6> \xCD\xD0 |0
+<U8FD7> \xCD\xD2 |0
+<U8FE0> \xD0\xB6 |0
+<U8FE1> \xD0\xB4 |0
+<U8FE2> \xAD\x7C |0
+<U8FE3> \xD0\xB3 |0
+<U8FE4> \xAD\xA3 |0
+<U8FE5> \xAD\x7E |0
+<U8FE6> \xAD\x7B |0
+<U8FE8> \xAD\xA4 |0
+<U8FEA> \xAD\x7D |0
+<U8FEB> \xAD\xA2 |0
+<U8FED> \xAD\xA1 |0
+<U8FEE> \xD0\xB5 |0
+<U8FF0> \xAD\x7A |0
+<U8FF4> \xB0\x6A |0
+<U8FF5> \xD3\xEB |0
+<U8FF6> \xD3\xF1 |0
+<U8FF7> \xB0\x67 |0
+<U8FF8> \xB0\x6E |0
+<U8FFA> \xB0\x69 |0
+<U8FFB> \xD3\xEE |0
+<U8FFC> \xD3\xF0 |0
+<U8FFD> \xB0\x6C |0
+<U8FFE> \xD3\xEA |0
+<U8FFF> \xD3\xED |0
+<U9000> \xB0\x68 |0
+<U9001> \xB0\x65 |0
+<U9002> \xD3\xEC |0
+<U9003> \xB0\x6B |0
+<U9004> \xD3\xEF |0
+<U9005> \xB0\x6D |0
+<U9006> \xB0\x66 |0
+<U900B> \xD7\xE3 |0
+<U900C> \xD7\xE6 |0
+<U900D> \xB3\x70 |0
+<U900F> \xB3\x7A |0
+<U9010> \xB3\x76 |0
+<U9011> \xD7\xE4 |0
+<U9014> \xB3\x7E |0
+<U9015> \xB3\x77 |0
+<U9016> \xB3\x7C |0
+<U9017> \xB3\x72 |0
+<U9019> \xB3\x6F |0
+<U901A> \xB3\x71 |0
+<U901B> \xB3\x7D |0
+<U901C> \xD7\xE5 |0
+<U901D> \xB3\x75 |0
+<U901E> \xB3\x78 |0
+<U901F> \xB3\x74 |0
+<U9020> \xB3\x79 |0
+<U9021> \xD7\xE7 |0
+<U9022> \xB3\x7B |0
+<U9023> \xB3\x73 |0
+<U9024> \xD7\xE2 |0
+<U902D> \xDC\x4D |0
+<U902E> \xB6\x65 |0
+<U902F> \xDC\x4F |0
+<U9031> \xB6\x67 |0
+<U9032> \xB6\x69 |0
+<U9034> \xDC\x4E |0
+<U9035> \xB6\x66 |0
+<U9036> \xB6\x6A |0
+<U9038> \xB6\x68 |0
+<U903C> \xB9\x47 |0
+<U903D> \xE0\xA3 |0
+<U903E> \xB9\x4F |0
+<U903F> \xE0\x7E |0
+<U9041> \xB9\x50 |0
+<U9042> \xB9\x45 |0
+<U9044> \xE0\xA1 |0
+<U9047> \xB9\x4A |0
+<U9049> \xE0\xA2 |0
+<U904A> \xB9\x43 |0
+<U904B> \xB9\x42 |0
+<U904D> \xB9\x4D |0
+<U904E> \xB9\x4C |0
+<U904F> \xB9\x4B |0
+<U9050> \xB9\x49 |0
+<U9051> \xB9\x4E |0
+<U9052> \xE0\x7D |0
+<U9053> \xB9\x44 |0
+<U9054> \xB9\x46 |0
+<U9055> \xB9\x48 |0
+<U9058> \xBB\xB8 |0
+<U9059> \xBB\xBB |0
+<U905B> \xBB\xBF |0
+<U905C> \xBB\xB9 |0
+<U905D> \xBB\xBE |0
+<U905E> \xBB\xBC |0
+<U9060> \xBB\xB7 |0
+<U9062> \xBB\xBD |0
+<U9063> \xBB\xBA |0
+<U9067> \xE8\x52 |0
+<U9068> \xBE\x43 |0
+<U9069> \xBE\x41 |0
+<U906B> \xE8\x53 |0
+<U906D> \xBE\x44 |0
+<U906E> \xBE\x42 |0
+<U906F> \xE8\x51 |0
+<U9070> \xE8\x50 |0
+<U9072> \xBF\xF0 |0
+<U9073> \xE8\x4F |0
+<U9074> \xBF\xEE |0
+<U9075> \xBF\xED |0
+<U9076> \xEB\xD0 |0
+<U9077> \xBE\x45 |0
+<U9078> \xBF\xEF |0
+<U9079> \xEB\xD1 |0
+<U907A> \xBF\xF2 |0
+<U907B> \xEB\xD2 |0
+<U907C> \xBF\xF1 |0
+<U907D> \xC1\xD8 |0
+<U907E> \xEE\xC3 |0
+<U907F> \xC1\xD7 |0
+<U9080> \xC1\xDC |0
+<U9081> \xC1\xDA |0
+<U9082> \xC1\xDB |0
+<U9083> \xC2\xE3 |0
+<U9084> \xC1\xD9 |0
+<U9085> \xEE\xC2 |0
+<U9086> \xEB\xD3 |0
+<U9087> \xC2\xE2 |0
+<U9088> \xC2\xE4 |0
+<U908A> \xC3\xE4 |0
+<U908B> \xC3\xE5 |0
+<U908D> \xF4\xE0 |0
+<U908F> \xC5\xDE |0
+<U9090> \xC5\xDD |0
+<U9091> \xA8\xB6 |0
+<U9094> \xCA\x55 |0
+<U9095> \xB0\x6F |0
+<U9097> \xCA\x52 |0
+<U9098> \xCA\x53 |0
+<U9099> \xCA\x51 |0
+<U909B> \xCA\x54 |0
+<U909E> \xCB\xAA |0
+<U909F> \xCB\xA7 |0
+<U90A0> \xCB\xAC |0
+<U90A1> \xCB\xA8 |0
+<U90A2> \xA8\xB7 |0
+<U90A3> \xA8\xBA |0
+<U90A5> \xCB\xA9 |0
+<U90A6> \xA8\xB9 |0
+<U90A7> \xCB\xAB |0
+<U90AA> \xA8\xB8 |0
+<U90AF> \xCD\xD5 |0
+<U90B0> \xCD\xD7 |0
+<U90B1> \xAA\xF4 |0
+<U90B2> \xCD\xD3 |0
+<U90B3> \xCD\xD6 |0
+<U90B4> \xCD\xD4 |0
+<U90B5> \xAA\xF2 |0
+<U90B6> \xAA\xF5 |0
+<U90B8> \xAA\xF3 |0
+<U90BD> \xD0\xB8 |0
+<U90BE> \xD0\xBC |0
+<U90BF> \xD0\xB9 |0
+<U90C1> \xAD\xA7 |0
+<U90C3> \xAD\xA8 |0
+<U90C5> \xD0\xBB |0
+<U90C7> \xD0\xBD |0
+<U90C8> \xD0\xBF |0
+<U90CA> \xAD\xA5 |0
+<U90CB> \xD0\xBE |0
+<U90CE> \xAD\xA6 |0
+<U90D4> \xD7\xEE |0
+<U90D5> \xD0\xBA |0
+<U90D6> \xD3\xF2 |0
+<U90D7> \xD3\xFB |0
+<U90D8> \xD3\xF9 |0
+<U90D9> \xD3\xF4 |0
+<U90DA> \xD3\xF5 |0
+<U90DB> \xD3\xFA |0
+<U90DC> \xD3\xFC |0
+<U90DD> \xB0\x71 |0
+<U90DF> \xD3\xF7 |0
+<U90E0> \xD3\xF3 |0
+<U90E1> \xB0\x70 |0
+<U90E2> \xB0\x72 |0
+<U90E3> \xD3\xF6 |0
+<U90E4> \xD3\xFD |0
+<U90E5> \xD3\xF8 |0
+<U90E8> \xB3\xA1 |0
+<U90E9> \xD7\xF1 |0
+<U90EA> \xD7\xE9 |0
+<U90EB> \xD7\xEF |0
+<U90EC> \xD7\xF0 |0
+<U90ED> \xB3\xA2 |0
+<U90EF> \xD7\xE8 |0
+<U90F0> \xD7\xEA |0
+<U90F1> \xD0\xB7 |0
+<U90F2> \xD7\xEC |0
+<U90F3> \xD7\xED |0
+<U90F4> \xD7\xEB |0
+<U90F5> \xB6\x6C |0
+<U90F9> \xDC\x56 |0
+<U90FA> \xEB\xD4 |0
+<U90FB> \xDC\x57 |0
+<U90FC> \xDC\x54 |0
+<U90FD> \xB3\xA3 |0
+<U90FE> \xB6\x6E |0
+<U90FF> \xDC\x53 |0
+<U9100> \xDC\x59 |0
+<U9101> \xDC\x58 |0
+<U9102> \xB6\x6B |0
+<U9103> \xDC\x5C |0
+<U9104> \xDC\x52 |0
+<U9105> \xDC\x5B |0
+<U9106> \xDC\x50 |0
+<U9107> \xDC\x5A |0
+<U9108> \xDC\x55 |0
+<U9109> \xB6\x6D |0
+<U910B> \xE0\xAA |0
+<U910D> \xE0\xA5 |0
+<U910E> \xE0\xAB |0
+<U910F> \xE0\xA6 |0
+<U9110> \xE0\xA4 |0
+<U9111> \xE0\xA7 |0
+<U9112> \xB9\x51 |0
+<U9114> \xE0\xA9 |0
+<U9116> \xE0\xA8 |0
+<U9117> \xB9\x52 |0
+<U9118> \xBB\xC1 |0
+<U9119> \xBB\xC0 |0
+<U911A> \xE4\x6E |0
+<U911B> \xE4\x71 |0
+<U911C> \xE4\x69 |0
+<U911D> \xE4\x6D |0
+<U911E> \xBB\xC2 |0
+<U911F> \xE4\x6C |0
+<U9120> \xE4\x6A |0
+<U9121> \xE4\x70 |0
+<U9122> \xE4\x6B |0
+<U9123> \xE4\x68 |0
+<U9124> \xE4\x6F |0
+<U9126> \xE8\x59 |0
+<U9127> \xBE\x48 |0
+<U9128> \xF1\x4A |0
+<U9129> \xE8\x56 |0
+<U912A> \xE8\x57 |0
+<U912B> \xE8\x55 |0
+<U912C> \xDC\x51 |0
+<U912D> \xBE\x47 |0
+<U912E> \xE8\x5A |0
+<U912F> \xE8\x54 |0
+<U9130> \xBE\x46 |0
+<U9131> \xBE\x49 |0
+<U9132> \xE8\x58 |0
+<U9133> \xEB\xD5 |0
+<U9134> \xBF\xF3 |0
+<U9135> \xEB\xD6 |0
+<U9136> \xEB\xD7 |0
+<U9138> \xEE\xC4 |0
+<U9139> \xC1\xDD |0
+<U913A> \xF1\x4B |0
+<U913B> \xF1\x4C |0
+<U913E> \xF1\x4D |0
+<U913F> \xF3\x5D |0
+<U9140> \xF3\x5C |0
+<U9141> \xF4\xE2 |0
+<U9143> \xF4\xE1 |0
+<U9144> \xF6\x5B |0
+<U9145> \xF6\x5C |0
+<U9146> \xF6\x5A |0
+<U9147> \xF7\x66 |0
+<U9148> \xC5\xB0 |0
+<U9149> \xA8\xBB |0
+<U914A> \xAD\xAA |0
+<U914B> \xAD\xA9 |0
+<U914C> \xB0\x75 |0
+<U914D> \xB0\x74 |0
+<U914E> \xD4\x40 |0
+<U914F> \xD4\x41 |0
+<U9150> \xD3\xFE |0
+<U9152> \xB0\x73 |0
+<U9153> \xD7\xF5 |0
+<U9155> \xD7\xF6 |0
+<U9156> \xD7\xF2 |0
+<U9157> \xB3\xA4 |0
+<U9158> \xD7\xF3 |0
+<U915A> \xD7\xF4 |0
+<U915F> \xDC\x5F |0
+<U9160> \xDC\x61 |0
+<U9161> \xDC\x5D |0
+<U9162> \xDC\x60 |0
+<U9163> \xB6\x6F |0
+<U9164> \xDC\x5E |0
+<U9165> \xB6\x70 |0
+<U9168> \xDD\x73 |0
+<U9169> \xB9\x55 |0
+<U916A> \xB9\x54 |0
+<U916C> \xB9\x53 |0
+<U916E> \xE0\xAC |0
+<U916F> \xE0\xAD |0
+<U9172> \xE4\x73 |0
+<U9173> \xE4\x75 |0
+<U9174> \xBB\xC6 |0
+<U9175> \xBB\xC3 |0
+<U9177> \xBB\xC5 |0
+<U9178> \xBB\xC4 |0
+<U9179> \xE4\x74 |0
+<U917A> \xE4\x72 |0
+<U9180> \xE8\x61 |0
+<U9181> \xE8\x5E |0
+<U9182> \xE8\x5F |0
+<U9183> \xBE\x4D |0
+<U9184> \xE8\x60 |0
+<U9185> \xE8\x5B |0
+<U9186> \xE8\x5C |0
+<U9187> \xBE\x4A |0
+<U9189> \xBE\x4B |0
+<U918A> \xE8\x5D |0
+<U918B> \xBE\x4C |0
+<U918D> \xEB\xDB |0
+<U918F> \xEB\xDC |0
+<U9190> \xEB\xD9 |0
+<U9191> \xEB\xDA |0
+<U9192> \xBF\xF4 |0
+<U9193> \xEB\xD8 |0
+<U9199> \xEE\xC8 |0
+<U919A> \xEE\xC5 |0
+<U919B> \xEE\xC7 |0
+<U919C> \xC1\xE0 |0
+<U919D> \xEE\xCB |0
+<U919E> \xC1\xDF |0
+<U919F> \xEE\xC9 |0
+<U91A0> \xEE\xCC |0
+<U91A1> \xEE\xCA |0
+<U91A2> \xEE\xC6 |0
+<U91A3> \xC1\xDE |0
+<U91A5> \xF1\x4F |0
+<U91A7> \xF1\x50 |0
+<U91A8> \xF1\x4E |0
+<U91AA> \xF1\x52 |0
+<U91AB> \xC2\xE5 |0
+<U91AC> \xC2\xE6 |0
+<U91AD> \xF3\x5F |0
+<U91AE> \xC3\xE7 |0
+<U91AF> \xF1\x51 |0
+<U91B0> \xF3\x5E |0
+<U91B1> \xC3\xE6 |0
+<U91B2> \xF4\xE5 |0
+<U91B3> \xF4\xE6 |0
+<U91B4> \xC4\xBF |0
+<U91B5> \xF4\xE4 |0
+<U91B7> \xF4\xE3 |0
+<U91B9> \xF6\x5D |0
+<U91BA> \xC5\x48 |0
+<U91BC> \xF8\x49 |0
+<U91BD> \xF8\xC8 |0
+<U91BE> \xF8\xC7 |0
+<U91C0> \xC6\x43 |0
+<U91C1> \xC6\x5D |0
+<U91C2> \xF8\xC9 |0
+<U91C3> \xF9\x71 |0
+<U91C5> \xC6\x6F |0
+<U91C6> \xA8\xBC |0
+<U91C7> \xAA\xF6 |0
+<U91C9> \xB9\x56 |0
+<U91CB> \xC4\xC0 |0
+<U91CC> \xA8\xBD |0
+<U91CD> \xAD\xAB |0
+<U91CE> \xB3\xA5 |0
+<U91CF> \xB6\x71 |0
+<U91D0> \xC2\xE7 |0
+<U91D1> \xAA\xF7 |0
+<U91D3> \xD0\xC1 |0
+<U91D4> \xD0\xC0 |0
+<U91D5> \xD4\x42 |0
+<U91D7> \xB0\x78 |0
+<U91D8> \xB0\x76 |0
+<U91D9> \xB0\x7A |0
+<U91DA> \xD4\x44 |0
+<U91DC> \xB0\x79 |0
+<U91DD> \xB0\x77 |0
+<U91E2> \xD4\x43 |0
+<U91E3> \xB3\xA8 |0
+<U91E4> \xD7\xFC |0
+<U91E6> \xB3\xA7 |0
+<U91E7> \xB3\xA9 |0
+<U91E8> \xD8\x42 |0
+<U91E9> \xB3\xAB |0
+<U91EA> \xD7\xFE |0
+<U91EB> \xD8\x40 |0
+<U91EC> \xD7\xF7 |0
+<U91ED> \xB3\xAA |0
+<U91EE> \xD8\x43 |0
+<U91F1> \xD7\xF9 |0
+<U91F3> \xD7\xFA |0
+<U91F4> \xD7\xF8 |0
+<U91F5> \xB3\xA6 |0
+<U91F7> \xD8\x41 |0
+<U91F8> \xD7\xFB |0
+<U91F9> \xD7\xFD |0
+<U91FD> \xDC\x6D |0
+<U91FF> \xDC\x6C |0
+<U9200> \xDC\x6A |0
+<U9201> \xDC\x62 |0
+<U9202> \xDC\x71 |0
+<U9203> \xDC\x65 |0
+<U9204> \xDC\x6F |0
+<U9205> \xDC\x76 |0
+<U9206> \xDC\x6E |0
+<U9207> \xB6\x79 |0
+<U9209> \xB6\x75 |0
+<U920A> \xDC\x63 |0
+<U920C> \xDC\x69 |0
+<U920D> \xB6\x77 |0
+<U920F> \xDC\x68 |0
+<U9210> \xB6\x78 |0
+<U9211> \xB6\x7A |0
+<U9212> \xDC\x6B |0
+<U9214> \xB6\x72 |0
+<U9215> \xB6\x73 |0
+<U9216> \xDC\x77 |0
+<U9217> \xDC\x75 |0
+<U9219> \xDC\x74 |0
+<U921A> \xDC\x66 |0
+<U921C> \xDC\x72 |0
+<U921E> \xB6\x76 |0
+<U9223> \xB6\x74 |0
+<U9224> \xDC\x73 |0
+<U9225> \xDC\x64 |0
+<U9226> \xDC\x67 |0
+<U9227> \xDC\x70 |0
+<U922D> \xE4\xBA |0
+<U922E> \xE0\xB7 |0
+<U9230> \xE0\xB0 |0
+<U9231> \xE0\xC3 |0
+<U9232> \xE0\xCC |0
+<U9233> \xE0\xB3 |0
+<U9234> \xB9\x61 |0
+<U9236> \xE0\xC0 |0
+<U9237> \xB9\x57 |0
+<U9238> \xB9\x59 |0
+<U9239> \xB9\x65 |0
+<U923A> \xE0\xB1 |0
+<U923D> \xB9\x5A |0
+<U923E> \xB9\x5C |0
+<U923F> \xB9\x66 |0
+<U9240> \xB9\x5B |0
+<U9245> \xB9\x64 |0
+<U9246> \xE0\xB9 |0
+<U9248> \xE0\xAE |0
+<U9249> \xB9\x62 |0
+<U924A> \xE0\xB8 |0
+<U924B> \xB9\x5E |0
+<U924C> \xE0\xCA |0
+<U924D> \xB9\x63 |0
+<U924E> \xE0\xC8 |0
+<U924F> \xE0\xBC |0
+<U9250> \xE0\xC6 |0
+<U9251> \xB9\x60 |0
+<U9252> \xE0\xAF |0
+<U9253> \xE0\xC9 |0
+<U9254> \xE0\xC4 |0
+<U9256> \xE0\xCB |0
+<U9257> \xB9\x58 |0
+<U925A> \xB9\x67 |0
+<U925B> \xB9\x5D |0
+<U925E> \xE0\xB5 |0
+<U9260> \xE0\xBD |0
+<U9261> \xE0\xC1 |0
+<U9263> \xE0\xC5 |0
+<U9264> \xB9\x5F |0
+<U9265> \xE0\xB4 |0
+<U9266> \xE0\xB2 |0
+<U9267> \xE0\xBE |0
+<U926C> \xE0\xBB |0
+<U926D> \xE0\xBA |0
+<U926F> \xE0\xBF |0
+<U9270> \xE0\xC2 |0
+<U9272> \xE0\xC7 |0
+<U9276> \xE4\x78 |0
+<U9278> \xBB\xC7 |0
+<U9279> \xE4\xA4 |0
+<U927A> \xE4\x7A |0
+<U927B> \xBB\xCC |0
+<U927C> \xBB\xD0 |0
+<U927D> \xE4\xAD |0
+<U927E> \xE4\xB5 |0
+<U927F> \xE4\xA6 |0
+<U9280> \xBB\xC8 |0
+<U9282> \xE4\xAA |0
+<U9283> \xE0\xB6 |0
+<U9285> \xBB\xC9 |0
+<U9286> \xE4\xB1 |0
+<U9287> \xE4\xB6 |0
+<U9288> \xE4\xAE |0
+<U928A> \xE4\xB0 |0
+<U928B> \xE4\xB9 |0
+<U928C> \xE4\xB2 |0
+<U928D> \xE4\x7E |0
+<U928E> \xE4\xA9 |0
+<U9291> \xBB\xD1 |0
+<U9293> \xBB\xCD |0
+<U9294> \xE4\x7C |0
+<U9295> \xE4\xAB |0
+<U9296> \xBB\xCB |0
+<U9297> \xE4\xA5 |0
+<U9298> \xBB\xCA |0
+<U9299> \xE4\xB3 |0
+<U929A> \xE4\xA2 |0
+<U929B> \xE4\x79 |0
+<U929C> \xBB\xCE |0
+<U929D> \xE4\xB8 |0
+<U92A0> \xE4\x7B |0
+<U92A1> \xE4\xAF |0
+<U92A2> \xE4\xAC |0
+<U92A3> \xE4\xA7 |0
+<U92A4> \xE4\x77 |0
+<U92A5> \xE4\x76 |0
+<U92A6> \xE4\xA1 |0
+<U92A7> \xE4\xB4 |0
+<U92A8> \xBB\xCF |0
+<U92A9> \xE4\xB7 |0
+<U92AA> \xE4\x7D |0
+<U92AB> \xE4\xA3 |0
+<U92AC> \xBE\x52 |0
+<U92B2> \xBE\x5A |0
+<U92B3> \xBE\x55 |0
+<U92B4> \xE8\xA4 |0
+<U92B5> \xE8\xA1 |0
+<U92B6> \xE8\x67 |0
+<U92B7> \xBE\x50 |0
+<U92B9> \xF9\xD7 |0
+<U92BB> \xBE\x4F |0
+<U92BC> \xBE\x56 |0
+<U92C0> \xE8\x65 |0
+<U92C1> \xBE\x54 |0
+<U92C2> \xE8\x71 |0
+<U92C3> \xE8\x63 |0
+<U92C4> \xE8\x64 |0
+<U92C5> \xBE\x4E |0
+<U92C6> \xE8\xA3 |0
+<U92C7> \xBE\x58 |0
+<U92C8> \xE8\x74 |0
+<U92C9> \xE8\x79 |0
+<U92CA> \xE8\x73 |0
+<U92CB> \xEB\xEE |0
+<U92CC> \xE8\x6F |0
+<U92CD> \xE8\x77 |0
+<U92CE> \xE8\x75 |0
+<U92CF> \xE8\x68 |0
+<U92D0> \xE8\x62 |0
+<U92D1> \xE8\x7D |0
+<U92D2> \xBE\x57 |0
+<U92D3> \xE8\x7E |0
+<U92D5> \xE8\x78 |0
+<U92D7> \xE8\x6D |0
+<U92D8> \xE8\x6B |0
+<U92D9> \xE8\x66 |0
+<U92DD> \xE8\x6E |0
+<U92DE> \xE8\x7B |0
+<U92DF> \xE8\x6A |0
+<U92E0> \xE8\x7A |0
+<U92E1> \xE8\xA2 |0
+<U92E4> \xBE\x53 |0
+<U92E6> \xE8\x76 |0
+<U92E7> \xE8\x7C |0
+<U92E8> \xE8\x72 |0
+<U92E9> \xE8\x6C |0
+<U92EA> \xBE\x51 |0
+<U92EE> \xE4\xA8 |0
+<U92EF> \xE8\x70 |0
+<U92F0> \xBE\x59 |0
+<U92F1> \xE8\x69 |0
+<U92F7> \xEB\xF4 |0
+<U92F8> \xBF\xF7 |0
+<U92F9> \xEB\xF3 |0
+<U92FA> \xEB\xF0 |0
+<U92FB> \xEC\x44 |0
+<U92FC> \xBF\xFB |0
+<U92FE> \xEC\x41 |0
+<U92FF> \xEB\xF8 |0
+<U9300> \xEC\x43 |0
+<U9301> \xEB\xE9 |0
+<U9302> \xEB\xF6 |0
+<U9304> \xBF\xFD |0
+<U9306> \xEB\xE1 |0
+<U9308> \xEB\xDF |0
+<U9309> \xEC\x42 |0
+<U930B> \xEC\x40 |0
+<U930C> \xEB\xFE |0
+<U930D> \xEB\xED |0
+<U930E> \xEB\xEC |0
+<U930F> \xEB\xE2 |0
+<U9310> \xC0\x40 |0
+<U9312> \xEB\xE8 |0
+<U9313> \xEB\xF2 |0
+<U9314> \xEB\xFD |0
+<U9315> \xC0\x43 |0
+<U9316> \xEC\x45 |0
+<U9318> \xC1\xE8 |0
+<U9319> \xC0\x45 |0
+<U931A> \xBF\xFE |0
+<U931B> \xEB\xE6 |0
+<U931D> \xEB\xEF |0
+<U931E> \xEB\xDE |0
+<U931F> \xEB\xE0 |0
+<U9320> \xBF\xF5 |0
+<U9321> \xC0\x42 |0
+<U9322> \xBF\xFA |0
+<U9323> \xEB\xE7 |0
+<U9324> \xEB\xF7 |0
+<U9325> \xEB\xF1 |0
+<U9326> \xC0\x41 |0
+<U9327> \xEB\xDD |0
+<U9328> \xC1\xE3 |0
+<U9329> \xEB\xF9 |0
+<U932A> \xEB\xFC |0
+<U932B> \xBF\xFC |0
+<U932D> \xEB\xEB |0
+<U932E> \xC0\x44 |0
+<U932F> \xBF\xF9 |0
+<U9333> \xBF\xF8 |0
+<U9334> \xEB\xF5 |0
+<U9335> \xEB\xFB |0
+<U9336> \xBF\xF6 |0
+<U9338> \xEB\xE4 |0
+<U9339> \xEB\xFA |0
+<U933C> \xEB\xE5 |0
+<U9346> \xEB\xEA |0
+<U9347> \xEE\xD2 |0
+<U9349> \xEE\xD7 |0
+<U934A> \xC1\xE5 |0
+<U934B> \xC1\xE7 |0
+<U934C> \xEE\xDD |0
+<U934D> \xC1\xE1 |0
+<U934E> \xEE\xEC |0
+<U934F> \xEE\xE3 |0
+<U9350> \xEE\xD8 |0
+<U9351> \xEE\xD9 |0
+<U9352> \xEE\xE2 |0
+<U9354> \xC1\xEE |0
+<U9355> \xEE\xE1 |0
+<U9356> \xEE\xD1 |0
+<U9357> \xEE\xE0 |0
+<U9358> \xEE\xD4 |0
+<U9359> \xEE\xED |0
+<U935A> \xC1\xED |0
+<U935B> \xC1\xEB |0
+<U935C> \xEE\xD5 |0
+<U935E> \xEE\xE8 |0
+<U9360> \xEE\xDA |0
+<U9361> \xEE\xE7 |0
+<U9363> \xEE\xE9 |0
+<U9364> \xEE\xD0 |0
+<U9365> \xC1\xE6 |0
+<U9367> \xEE\xEA |0
+<U936A> \xEE\xDE |0
+<U936C> \xC1\xEA |0
+<U936D> \xEE\xDB |0
+<U9370> \xC1\xEC |0
+<U9371> \xEE\xE4 |0
+<U9375> \xC1\xE4 |0
+<U9376> \xEE\xD6 |0
+<U9377> \xEE\xE5 |0
+<U9379> \xEE\xDF |0
+<U937A> \xEB\xE3 |0
+<U937B> \xEE\xE6 |0
+<U937C> \xEE\xD3 |0
+<U937E> \xC1\xE9 |0
+<U9380> \xEE\xEB |0
+<U9382> \xC1\xE2 |0
+<U9383> \xEE\xCE |0
+<U9388> \xF1\x60 |0
+<U9389> \xF1\x59 |0
+<U938A> \xC2\xE9 |0
+<U938C> \xF1\x54 |0
+<U938D> \xF1\x63 |0
+<U938E> \xF1\x5B |0
+<U938F> \xEE\xDC |0
+<U9391> \xF1\x65 |0
+<U9392> \xF1\x55 |0
+<U9394> \xC2\xE8 |0
+<U9395> \xF1\x5F |0
+<U9396> \xC2\xEA |0
+<U9397> \xC2\xF2 |0
+<U9398> \xC2\xF0 |0
+<U9399> \xF1\x61 |0
+<U939A> \xC2\xF1 |0
+<U939B> \xF1\x57 |0
+<U939D> \xF1\x58 |0
+<U939E> \xF1\x5D |0
+<U939F> \xF1\x62 |0
+<U93A1> \xEE\xCD |0
+<U93A2> \xC2\xEB |0
+<U93A3> \xF1\x6A |0
+<U93A4> \xF1\x67 |0
+<U93A5> \xF1\x6B |0
+<U93A6> \xF1\x5E |0
+<U93A7> \xF1\x5A |0
+<U93A8> \xF1\x68 |0
+<U93A9> \xF3\x6A |0
+<U93AA> \xF1\x5C |0
+<U93AC> \xC2\xEE |0
+<U93AE> \xC2\xED |0
+<U93AF> \xEE\xCF |0
+<U93B0> \xC2\xEF |0
+<U93B1> \xF1\x64 |0
+<U93B2> \xF1\x66 |0
+<U93B3> \xC2\xEC |0
+<U93B4> \xF1\x69 |0
+<U93B5> \xF1\x53 |0
+<U93B7> \xF1\x56 |0
+<U93C0> \xF3\x73 |0
+<U93C2> \xF3\x63 |0
+<U93C3> \xC3\xEB |0
+<U93C4> \xF3\x71 |0
+<U93C7> \xF3\x61 |0
+<U93C8> \xC3\xEC |0
+<U93CA> \xF3\x6C |0
+<U93CC> \xF3\x68 |0
+<U93CD> \xC3\xF1 |0
+<U93CE> \xF3\x72 |0
+<U93CF> \xF3\x62 |0
+<U93D0> \xF3\x65 |0
+<U93D1> \xC3\xE9 |0
+<U93D2> \xF3\x74 |0
+<U93D4> \xF3\x6D |0
+<U93D5> \xF3\x70 |0
+<U93D6> \xC3\xEF |0
+<U93D7> \xC3\xF4 |0
+<U93D8> \xC3\xF2 |0
+<U93D9> \xF3\x69 |0
+<U93DA> \xF3\x64 |0
+<U93DC> \xC3\xED |0
+<U93DD> \xC3\xEE |0
+<U93DE> \xF3\x60 |0
+<U93DF> \xC3\xEA |0
+<U93E1> \xC3\xE8 |0
+<U93E2> \xC3\xF0 |0
+<U93E3> \xF3\x6F |0
+<U93E4> \xC3\xF3 |0
+<U93E6> \xF3\x6B |0
+<U93E7> \xF3\x75 |0
+<U93E8> \xC3\xF5 |0
+<U93EC> \xF3\x67 |0
+<U93EE> \xF3\x6E |0
+<U93F5> \xF4\xF3 |0
+<U93F6> \xF5\x42 |0
+<U93F7> \xF4\xF5 |0
+<U93F8> \xF4\xFC |0
+<U93F9> \xF3\x66 |0
+<U93FA> \xF4\xFA |0
+<U93FB> \xF4\xE9 |0
+<U93FC> \xF5\x40 |0
+<U93FD> \xC4\xC3 |0
+<U93FE> \xF4\xED |0
+<U93FF> \xF4\xFE |0
+<U9400> \xF4\xF4 |0
+<U9403> \xC4\xC2 |0
+<U9406> \xF5\x44 |0
+<U9407> \xF4\xF6 |0
+<U9409> \xF4\xFB |0
+<U940A> \xF4\xFD |0
+<U940B> \xF4\xE7 |0
+<U940C> \xF5\x41 |0
+<U940D> \xF4\xF2 |0
+<U940E> \xF4\xF7 |0
+<U940F> \xF4\xEB |0
+<U9410> \xF4\xEF |0
+<U9411> \xF5\x43 |0
+<U9412> \xF4\xF9 |0
+<U9413> \xF4\xE8 |0
+<U9414> \xF4\xEC |0
+<U9415> \xF4\xEE |0
+<U9416> \xF4\xF8 |0
+<U9418> \xC4\xC1 |0
+<U9419> \xF4\xF1 |0
+<U9420> \xF4\xEA |0
+<U9428> \xF4\xF0 |0
+<U9429> \xF6\x61 |0
+<U942A> \xF6\x66 |0
+<U942B> \xC5\x4F |0
+<U942C> \xF6\x68 |0
+<U942E> \xC5\x49 |0
+<U9430> \xF6\x64 |0
+<U9431> \xF6\x6A |0
+<U9432> \xC5\x4E |0
+<U9433> \xC5\x4A |0
+<U9435> \xC5\x4B |0
+<U9436> \xF6\x60 |0
+<U9437> \xF6\x67 |0
+<U9438> \xC5\x4D |0
+<U9439> \xF6\x65 |0
+<U943A> \xC5\x4C |0
+<U943B> \xF6\x5F |0
+<U943C> \xF6\x63 |0
+<U943D> \xF6\x62 |0
+<U943F> \xF6\x5E |0
+<U9440> \xF6\x69 |0
+<U9444> \xC5\xB1 |0
+<U9445> \xF7\x6D |0
+<U9446> \xF7\x70 |0
+<U9447> \xF7\x6C |0
+<U9448> \xF7\x6E |0
+<U9449> \xF7\x6F |0
+<U944A> \xF7\x69 |0
+<U944B> \xF7\x6A |0
+<U944C> \xF7\x67 |0
+<U944F> \xF7\x6B |0
+<U9450> \xF7\x68 |0
+<U9451> \xC5\xB2 |0
+<U9452> \xC5\xB3 |0
+<U9455> \xF8\x4B |0
+<U9457> \xF8\x4D |0
+<U945D> \xF8\x4C |0
+<U945E> \xF8\x4E |0
+<U9460> \xC5\xE0 |0
+<U9462> \xF8\x4A |0
+<U9463> \xC5\xDF |0
+<U9464> \xC5\xE1 |0
+<U9468> \xF8\xCB |0
+<U9469> \xF8\xCC |0
+<U946A> \xC6\x44 |0
+<U946B> \xF8\xCA |0
+<U946D> \xF9\x53 |0
+<U946E> \xF9\x52 |0
+<U946F> \xF9\x54 |0
+<U9470> \xC6\x5F |0
+<U9471> \xF9\x55 |0
+<U9472> \xC6\x5E |0
+<U9473> \xF9\x56 |0
+<U9474> \xF9\x72 |0
+<U9475> \xF9\x75 |0
+<U9476> \xF9\x74 |0
+<U9477> \xC6\x68 |0
+<U9478> \xF9\x73 |0
+<U947C> \xC6\x72 |0
+<U947D> \xC6\x70 |0
+<U947E> \xC6\x71 |0
+<U947F> \xC6\x77 |0
+<U9480> \xF9\xC0 |0
+<U9481> \xF9\xC1 |0
+<U9482> \xF9\xBF |0
+<U9483> \xF9\xC9 |0
+<U9577> \xAA\xF8 |0
+<U957A> \xD8\x44 |0
+<U957B> \xDC\x78 |0
+<U957C> \xE8\xA5 |0
+<U957D> \xF3\x76 |0
+<U9580> \xAA\xF9 |0
+<U9582> \xAD\xAC |0
+<U9583> \xB0\x7B |0
+<U9586> \xD8\x45 |0
+<U9588> \xD8\x46 |0
+<U9589> \xB3\xAC |0
+<U958B> \xB6\x7D |0
+<U958C> \xDC\x7A |0
+<U958D> \xDC\x79 |0
+<U958E> \xB6\xA3 |0
+<U958F> \xB6\x7C |0
+<U9590> \xDC\x7B |0
+<U9591> \xB6\x7E |0
+<U9592> \xB6\xA2 |0
+<U9593> \xB6\xA1 |0
+<U9594> \xB6\x7B |0
+<U9598> \xB9\x68 |0
+<U959B> \xE0\xD0 |0
+<U959C> \xE0\xCE |0
+<U959E> \xE0\xCF |0
+<U959F> \xE0\xCD |0
+<U95A1> \xBB\xD2 |0
+<U95A3> \xBB\xD5 |0
+<U95A4> \xBB\xD7 |0
+<U95A5> \xBB\xD6 |0
+<U95A8> \xBB\xD3 |0
+<U95A9> \xBB\xD4 |0
+<U95AB> \xE8\xA7 |0
+<U95AC> \xE8\xA6 |0
+<U95AD> \xBE\x5B |0
+<U95AE> \xE8\xA8 |0
+<U95B0> \xE8\xA9 |0
+<U95B1> \xBE\x5C |0
+<U95B5> \xEC\x4D |0
+<U95B6> \xEC\x4B |0
+<U95B7> \xEE\xF3 |0
+<U95B9> \xEC\x49 |0
+<U95BA> \xEC\x4A |0
+<U95BB> \xC0\x46 |0
+<U95BC> \xEC\x46 |0
+<U95BD> \xEC\x4E |0
+<U95BE> \xEC\x48 |0
+<U95BF> \xEC\x4C |0
+<U95C0> \xEE\xEF |0
+<U95C3> \xEE\xF1 |0
+<U95C5> \xEE\xF2 |0
+<U95C6> \xC1\xF3 |0
+<U95C7> \xEE\xEE |0
+<U95C8> \xC1\xF2 |0
+<U95C9> \xEE\xF0 |0
+<U95CA> \xC1\xEF |0
+<U95CB> \xC1\xF0 |0
+<U95CC> \xC1\xF1 |0
+<U95CD> \xEC\x47 |0
+<U95D0> \xC2\xF5 |0
+<U95D1> \xF1\x6E |0
+<U95D2> \xF1\x6C |0
+<U95D3> \xF1\x6D |0
+<U95D4> \xC2\xF3 |0
+<U95D5> \xC2\xF6 |0
+<U95D6> \xC2\xF4 |0
+<U95DA> \xF3\x77 |0
+<U95DB> \xF3\x78 |0
+<U95DC> \xC3\xF6 |0
+<U95DE> \xF5\x45 |0
+<U95DF> \xF5\x47 |0
+<U95E0> \xF5\x46 |0
+<U95E1> \xC4\xC4 |0
+<U95E2> \xC5\x50 |0
+<U95E3> \xF6\x6D |0
+<U95E4> \xF6\x6C |0
+<U95E5> \xF6\x6B |0
+<U961C> \xAA\xFA |0
+<U961E> \xC9\xAA |0
+<U9620> \xCA\x58 |0
+<U9621> \xA6\xE9 |0
+<U9622> \xCA\x56 |0
+<U9623> \xCA\x59 |0
+<U9624> \xCA\x57 |0
+<U9628> \xCB\xAE |0
+<U962A> \xA8\xC1 |0
+<U962C> \xA8\xC2 |0
+<U962D> \xCB\xB0 |0
+<U962E> \xA8\xBF |0
+<U962F> \xCB\xAF |0
+<U9630> \xCB\xAD |0
+<U9631> \xA8\xC0 |0
+<U9632> \xA8\xBE |0
+<U9639> \xCD\xD8 |0
+<U963A> \xCD\xDB |0
+<U963B> \xAA\xFD |0
+<U963C> \xCD\xDA |0
+<U963D> \xCD\xD9 |0
+<U963F> \xAA\xFC |0
+<U9640> \xAA\xFB |0
+<U9642> \xAB\x40 |0
+<U9643> \xCD\xDC |0
+<U9644> \xAA\xFE |0
+<U964A> \xD0\xC6 |0
+<U964B> \xAD\xAE |0
+<U964C> \xAD\xAF |0
+<U964D> \xAD\xB0 |0
+<U964E> \xD0\xC7 |0
+<U964F> \xD0\xC3 |0
+<U9650> \xAD\xAD |0
+<U9651> \xD0\xC4 |0
+<U9653> \xD0\xC5 |0
+<U9654> \xD0\xC2 |0
+<U9658> \xB0\xA4 |0
+<U965B> \xB0\xA1 |0
+<U965C> \xD4\x45 |0
+<U965D> \xB0\xA2 |0
+<U965E> \xB0\xA5 |0
+<U965F> \xD4\x46 |0
+<U9661> \xB0\x7E |0
+<U9662> \xB0\x7C |0
+<U9663> \xB0\x7D |0
+<U9664> \xB0\xA3 |0
+<U966A> \xB3\xAD |0
+<U966B> \xD8\x49 |0
+<U966C> \xB3\xB5 |0
+<U966D> \xD8\x48 |0
+<U966F> \xD8\x4B |0
+<U9670> \xB3\xB1 |0
+<U9671> \xD8\x4A |0
+<U9672> \xB6\xAB |0
+<U9673> \xB3\xAF |0
+<U9674> \xB3\xB2 |0
+<U9675> \xB3\xAE |0
+<U9676> \xB3\xB3 |0
+<U9677> \xB3\xB4 |0
+<U9678> \xB3\xB0 |0
+<U967C> \xD8\x47 |0
+<U967D> \xB6\xA7 |0
+<U967E> \xDC\x7D |0
+<U9680> \xDC\xA3 |0
+<U9683> \xDC\xA2 |0
+<U9684> \xB6\xAC |0
+<U9685> \xB6\xA8 |0
+<U9686> \xB6\xA9 |0
+<U9687> \xDC\x7C |0
+<U9688> \xDC\x7E |0
+<U9689> \xDC\xA1 |0
+<U968A> \xB6\xA4 |0
+<U968B> \xB6\xA6 |0
+<U968D> \xB6\xAA |0
+<U968E> \xB6\xA5 |0
+<U9691> \xE0\xD3 |0
+<U9692> \xE0\xD1 |0
+<U9693> \xE0\xD2 |0
+<U9694> \xB9\x6A |0
+<U9695> \xB9\x6B |0
+<U9697> \xE0\xD4 |0
+<U9698> \xB9\x69 |0
+<U9699> \xBB\xD8 |0
+<U969B> \xBB\xDA |0
+<U969C> \xBB\xD9 |0
+<U969E> \xE4\xBB |0
+<U96A1> \xE4\xBC |0
+<U96A2> \xE8\xAB |0
+<U96A4> \xE8\xAA |0
+<U96A7> \xC0\x47 |0
+<U96A8> \xC0\x48 |0
+<U96A9> \xEC\x4F |0
+<U96AA> \xC0\x49 |0
+<U96AC> \xEE\xF6 |0
+<U96AE> \xEE\xF4 |0
+<U96B0> \xEE\xF5 |0
+<U96B1> \xC1\xF4 |0
+<U96B3> \xF1\x6F |0
+<U96B4> \xC3\xF7 |0
+<U96B8> \xC1\xF5 |0
+<U96B9> \xAB\x41 |0
+<U96BB> \xB0\xA6 |0
+<U96BC> \xD4\x47 |0
+<U96BF> \xD8\x4C |0
+<U96C0> \xB3\xB6 |0
+<U96C1> \xB6\xAD |0
+<U96C2> \xDC\xA4 |0
+<U96C3> \xDC\xA6 |0
+<U96C4> \xB6\xAF |0
+<U96C5> \xB6\xAE |0
+<U96C6> \xB6\xB0 |0
+<U96C7> \xB6\xB1 |0
+<U96C8> \xDC\xA5 |0
+<U96C9> \xB9\x6E |0
+<U96CA> \xB9\x6F |0
+<U96CB> \xB9\x6D |0
+<U96CC> \xBB\xDB |0
+<U96CD> \xB9\x6C |0
+<U96CE> \xE0\xD5 |0
+<U96D2> \xBB\xDC |0
+<U96D3> \xE8\xAC |0
+<U96D4> \xEC\x50 |0
+<U96D5> \xC0\x4A |0
+<U96D6> \xC1\xF6 |0
+<U96D7> \xF1\x70 |0
+<U96D8> \xF1\x74 |0
+<U96D9> \xC2\xF9 |0
+<U96DA> \xF1\x71 |0
+<U96DB> \xC2\xFA |0
+<U96DC> \xC2\xF8 |0
+<U96DD> \xF1\x75 |0
+<U96DE> \xC2\xFB |0
+<U96DF> \xF1\x73 |0
+<U96E1> \xF3\x79 |0
+<U96E2> \xC2\xF7 |0
+<U96E3> \xC3\xF8 |0
+<U96E5> \xF8\xCD |0
+<U96E8> \xAB\x42 |0
+<U96E9> \xB3\xB8 |0
+<U96EA> \xB3\xB7 |0
+<U96EF> \xB6\xB2 |0
+<U96F0> \xDC\xA8 |0
+<U96F1> \xDC\xA7 |0
+<U96F2> \xB6\xB3 |0
+<U96F5> \xE0\xD9 |0
+<U96F6> \xB9\x73 |0
+<U96F7> \xB9\x70 |0
+<U96F8> \xE0\xD8 |0
+<U96F9> \xB9\x72 |0
+<U96FA> \xE0\xD6 |0
+<U96FB> \xB9\x71 |0
+<U96FD> \xE0\xD7 |0
+<U96FF> \xE4\xBD |0
+<U9700> \xBB\xDD |0
+<U9702> \xE8\xAF |0
+<U9704> \xBE\x5D |0
+<U9705> \xE8\xAD |0
+<U9706> \xBE\x5E |0
+<U9707> \xBE\x5F |0
+<U9708> \xE8\xAE |0
+<U9709> \xBE\x60 |0
+<U970B> \xEC\x51 |0
+<U970D> \xC0\x4E |0
+<U970E> \xC0\x4B |0
+<U970F> \xC0\x50 |0
+<U9710> \xEC\x53 |0
+<U9711> \xC0\x4C |0
+<U9712> \xEC\x52 |0
+<U9713> \xC0\x4F |0
+<U9716> \xC0\x4D |0
+<U9718> \xEE\xF9 |0
+<U9719> \xEE\xFB |0
+<U971C> \xC1\xF7 |0
+<U971D> \xEE\xFA |0
+<U971E> \xC1\xF8 |0
+<U971F> \xEE\xF8 |0
+<U9720> \xEE\xF7 |0
+<U9722> \xF1\x77 |0
+<U9723> \xF1\x76 |0
+<U9724> \xC2\xFC |0
+<U9725> \xF1\x78 |0
+<U9726> \xF3\x7E |0
+<U9727> \xC3\xFA |0
+<U9728> \xF3\x7D |0
+<U9729> \xF3\x7A |0
+<U972A> \xC3\xF9 |0
+<U972B> \xF3\x7B |0
+<U972C> \xF3\x7C |0
+<U972E> \xF5\x48 |0
+<U972F> \xF5\x49 |0
+<U9730> \xC4\xC5 |0
+<U9732> \xC5\x53 |0
+<U9735> \xF6\x6E |0
+<U9738> \xC5\x51 |0
+<U9739> \xC5\x52 |0
+<U973A> \xF6\x6F |0
+<U973D> \xC5\xB4 |0
+<U973E> \xC5\xB5 |0
+<U973F> \xF7\x71 |0
+<U9742> \xC6\x45 |0
+<U9743> \xF8\xCF |0
+<U9744> \xC6\x47 |0
+<U9746> \xF8\xCE |0
+<U9747> \xF8\xD0 |0
+<U9748> \xC6\x46 |0
+<U9749> \xF9\x57 |0
+<U974B> \xF9\xAD |0
+<U9752> \xAB\x43 |0
+<U9756> \xB9\x74 |0
+<U9758> \xE4\xBE |0
+<U975A> \xE8\xB0 |0
+<U975B> \xC0\x51 |0
+<U975C> \xC0\x52 |0
+<U975E> \xAB\x44 |0
+<U9760> \xBE\x61 |0
+<U9761> \xC3\xFB |0
+<U9762> \xAD\xB1 |0
+<U9766> \xC0\x53 |0
+<U9768> \xC5\xE2 |0
+<U9769> \xAD\xB2 |0
+<U976A> \xD8\x4D |0
+<U976C> \xDC\xA9 |0
+<U976E> \xDC\xAB |0
+<U9770> \xDC\xAA |0
+<U9772> \xE0\xDD |0
+<U9773> \xE0\xDA |0
+<U9774> \xB9\x75 |0
+<U9776> \xB9\x76 |0
+<U9777> \xE0\xDB |0
+<U9778> \xE0\xDC |0
+<U977A> \xE4\xC0 |0
+<U977B> \xE4\xC5 |0
+<U977C> \xBB\xDE |0
+<U977D> \xE4\xBF |0
+<U977E> \xE4\xC1 |0
+<U977F> \xE4\xC8 |0
+<U9780> \xE4\xC3 |0
+<U9781> \xE4\xC7 |0
+<U9782> \xE4\xC4 |0
+<U9783> \xE4\xC2 |0
+<U9784> \xE4\xC6 |0
+<U9785> \xBB\xDF |0
+<U9788> \xE8\xB3 |0
+<U978A> \xE8\xB1 |0
+<U978B> \xBE\x63 |0
+<U978D> \xBE\x62 |0
+<U978E> \xE8\xB2 |0
+<U978F> \xBE\x64 |0
+<U9794> \xEC\x56 |0
+<U9797> \xEC\x55 |0
+<U9798> \xC0\x54 |0
+<U9799> \xEC\x54 |0
+<U979A> \xEE\xFC |0
+<U979C> \xEE\xFE |0
+<U979D> \xEF\x41 |0
+<U979E> \xEF\x40 |0
+<U97A0> \xC1\xF9 |0
+<U97A1> \xEE\xFD |0
+<U97A2> \xF1\xA1 |0
+<U97A3> \xC2\xFD |0
+<U97A4> \xF1\x7D |0
+<U97A5> \xF1\xA2 |0
+<U97A6> \xC2\xFE |0
+<U97A8> \xF1\x7B |0
+<U97AA> \xF1\x7E |0
+<U97AB> \xF1\x7C |0
+<U97AC> \xF1\x79 |0
+<U97AD> \xC3\x40 |0
+<U97AE> \xF1\x7A |0
+<U97B3> \xF3\xA1 |0
+<U97B6> \xF3\xA3 |0
+<U97B7> \xF3\xA2 |0
+<U97B9> \xF5\x4A |0
+<U97BB> \xF5\x4B |0
+<U97BF> \xF6\x70 |0
+<U97C1> \xC5\xB7 |0
+<U97C3> \xC5\xB6 |0
+<U97C4> \xF8\x4F |0
+<U97C5> \xF8\x50 |0
+<U97C6> \xC6\x48 |0
+<U97C7> \xF8\xD1 |0
+<U97C9> \xC6\x69 |0
+<U97CB> \xAD\xB3 |0
+<U97CC> \xB6\xB4 |0
+<U97CD> \xE4\xCA |0
+<U97CE> \xE4\xC9 |0
+<U97CF> \xE8\xB5 |0
+<U97D0> \xE8\xB4 |0
+<U97D3> \xC1\xFA |0
+<U97D4> \xEF\x43 |0
+<U97D5> \xEF\x42 |0
+<U97D6> \xF1\xA5 |0
+<U97D7> \xF1\xA3 |0
+<U97D8> \xF1\xA6 |0
+<U97D9> \xF1\xA4 |0
+<U97DC> \xC3\xFC |0
+<U97DD> \xF3\xA4 |0
+<U97DE> \xF3\xA5 |0
+<U97DF> \xF3\xA6 |0
+<U97E1> \xF6\x71 |0
+<U97E3> \xF7\x72 |0
+<U97E5> \xF8\xD2 |0
+<U97ED> \xAD\xB4 |0
+<U97F0> \xEC\x57 |0
+<U97F1> \xEF\x44 |0
+<U97F3> \xAD\xB5 |0
+<U97F6> \xBB\xE0 |0
+<U97F8> \xEC\x58 |0
+<U97F9> \xC3\x41 |0
+<U97FA> \xF1\xA7 |0
+<U97FB> \xC3\xFD |0
+<U97FD> \xF5\x4C |0
+<U97FE> \xF5\x4D |0
+<U97FF> \xC5\x54 |0
+<U9800> \xF8\x51 |0
+<U9801> \xAD\xB6 |0
+<U9802> \xB3\xBB |0
+<U9803> \xB3\xBC |0
+<U9804> \xD8\x4E |0
+<U9805> \xB6\xB5 |0
+<U9806> \xB6\xB6 |0
+<U9807> \xDC\xAC |0
+<U9808> \xB6\xB7 |0
+<U980A> \xB9\x7A |0
+<U980C> \xB9\x7C |0
+<U980D> \xE0\xDF |0
+<U980E> \xE0\xE0 |0
+<U980F> \xE0\xDE |0
+<U9810> \xB9\x77 |0
+<U9811> \xB9\x78 |0
+<U9812> \xB9\x7B |0
+<U9813> \xB9\x79 |0
+<U9816> \xE4\xCB |0
+<U9817> \xBB\xE1 |0
+<U9818> \xBB\xE2 |0
+<U981B> \xE8\xBC |0
+<U981C> \xBE\x67 |0
+<U981D> \xE8\xB7 |0
+<U981E> \xE8\xB6 |0
+<U9820> \xE8\xBB |0
+<U9821> \xBE\x65 |0
+<U9824> \xC0\x5B |0
+<U9826> \xE8\xB8 |0
+<U9827> \xE8\xBD |0
+<U9828> \xE8\xBA |0
+<U9829> \xE8\xB9 |0
+<U982B> \xBE\x66 |0
+<U982D> \xC0\x59 |0
+<U982F> \xEC\x5A |0
+<U9830> \xC0\x55 |0
+<U9832> \xEC\x5B |0
+<U9835> \xEC\x59 |0
+<U9837> \xC0\x58 |0
+<U9838> \xC0\x56 |0
+<U9839> \xC0\x5A |0
+<U983B> \xC0\x57 |0
+<U9841> \xEF\x45 |0
+<U9843> \xEF\x4A |0
+<U9844> \xEF\x46 |0
+<U9845> \xEF\x49 |0
+<U9846> \xC1\xFB |0
+<U9848> \xED\xD4 |0
+<U9849> \xEF\x48 |0
+<U984A> \xEF\x47 |0
+<U984C> \xC3\x44 |0
+<U984D> \xC3\x42 |0
+<U984E> \xC3\x45 |0
+<U984F> \xC3\x43 |0
+<U9850> \xF1\xA8 |0
+<U9851> \xF1\xA9 |0
+<U9852> \xF1\xAA |0
+<U9853> \xC3\x46 |0
+<U9857> \xF3\xAA |0
+<U9858> \xC4\x40 |0
+<U9859> \xF3\xA8 |0
+<U985B> \xC4\x41 |0
+<U985C> \xF3\xA7 |0
+<U985D> \xF3\xA9 |0
+<U985E> \xC3\xFE |0
+<U985F> \xF5\x51 |0
+<U9860> \xF5\x4E |0
+<U9862> \xF5\x4F |0
+<U9863> \xF5\x50 |0
+<U9864> \xF6\x72 |0
+<U9865> \xC5\x56 |0
+<U9867> \xC5\x55 |0
+<U9869> \xF7\x74 |0
+<U986A> \xF7\x73 |0
+<U986B> \xC5\xB8 |0
+<U986F> \xC5\xE3 |0
+<U9870> \xC6\x49 |0
+<U9871> \xC6\x60 |0
+<U9872> \xF9\x58 |0
+<U9873> \xF9\xAE |0
+<U9874> \xF9\xAF |0
+<U98A8> \xAD\xB7 |0
+<U98A9> \xDC\xAD |0
+<U98AC> \xE0\xE1 |0
+<U98AD> \xE4\xCC |0
+<U98AE> \xE4\xCD |0
+<U98AF> \xBB\xE3 |0
+<U98B1> \xBB\xE4 |0
+<U98B2> \xE8\xBE |0
+<U98B3> \xBE\x68 |0
+<U98B6> \xC1\xFC |0
+<U98B8> \xF1\xAB |0
+<U98BA> \xC3\x47 |0
+<U98BB> \xF3\xAD |0
+<U98BC> \xC4\x42 |0
+<U98BD> \xF3\xAC |0
+<U98BE> \xF3\xAE |0
+<U98BF> \xF3\xAB |0
+<U98C0> \xF6\x75 |0
+<U98C1> \xF5\x52 |0
+<U98C2> \xF5\x53 |0
+<U98C4> \xC4\xC6 |0
+<U98C6> \xF6\x74 |0
+<U98C9> \xF6\x73 |0
+<U98CB> \xF7\x75 |0
+<U98CC> \xF9\xB0 |0
+<U98DB> \xAD\xB8 |0
+<U98DF> \xAD\xB9 |0
+<U98E2> \xB0\xA7 |0
+<U98E3> \xD4\x48 |0
+<U98E5> \xD8\x4F |0
+<U98E7> \xB6\xB8 |0
+<U98E9> \xB6\xBB |0
+<U98EA> \xB6\xB9 |0
+<U98EB> \xDC\xAE |0
+<U98ED> \xB6\xBD |0
+<U98EF> \xB6\xBA |0
+<U98F2> \xB6\xBC |0
+<U98F4> \xB9\x7E |0
+<U98F6> \xE0\xE2 |0
+<U98F9> \xE0\xE3 |0
+<U98FA> \xE8\xC0 |0
+<U98FC> \xB9\x7D |0
+<U98FD> \xB9\xA1 |0
+<U98FE> \xB9\xA2 |0
+<U9900> \xE4\xCF |0
+<U9902> \xE4\xCE |0
+<U9903> \xBB\xE5 |0
+<U9905> \xBB\xE6 |0
+<U9907> \xE4\xD0 |0
+<U9908> \xE8\xBF |0
+<U9909> \xBB\xE8 |0
+<U990A> \xBE\x69 |0
+<U990C> \xBB\xE7 |0
+<U9910> \xC0\x5C |0
+<U9911> \xE8\xC1 |0
+<U9912> \xBE\x6B |0
+<U9913> \xBE\x6A |0
+<U9914> \xE8\xC2 |0
+<U9915> \xE8\xC5 |0
+<U9916> \xE8\xC3 |0
+<U9917> \xE8\xC4 |0
+<U9918> \xBE\x6C |0
+<U991A> \xC0\x61 |0
+<U991B> \xC0\x5F |0
+<U991E> \xC0\x5E |0
+<U991F> \xEC\x5D |0
+<U9921> \xC0\x60 |0
+<U9924> \xEC\x5C |0
+<U9925> \xEF\x4B |0
+<U9927> \xEC\x5E |0
+<U9928> \xC0\x5D |0
+<U9929> \xEC\x5F |0
+<U992A> \xEF\x4E |0
+<U992B> \xEF\x4C |0
+<U992C> \xEF\x4D |0
+<U992D> \xEF\x52 |0
+<U992E> \xC3\x4B |0
+<U992F> \xEF\x51 |0
+<U9930> \xEF\x54 |0
+<U9931> \xEF\x53 |0
+<U9932> \xEF\x50 |0
+<U9933> \xEF\x4F |0
+<U9935> \xC1\xFD |0
+<U993A> \xF1\xAE |0
+<U993C> \xF1\xAD |0
+<U993D> \xC3\x4A |0
+<U993E> \xC3\x48 |0
+<U993F> \xC3\x49 |0
+<U9941> \xF1\xAC |0
+<U9943> \xF3\xB1 |0
+<U9945> \xC4\x43 |0
+<U9947> \xF3\xB0 |0
+<U9948> \xF3\xAF |0
+<U9949> \xC4\x44 |0
+<U994B> \xF5\x58 |0
+<U994C> \xF5\x57 |0
+<U994E> \xF5\x55 |0
+<U9950> \xF5\x54 |0
+<U9951> \xC4\xC8 |0
+<U9952> \xC4\xC7 |0
+<U9953> \xF5\x59 |0
+<U9954> \xF7\x76 |0
+<U9955> \xC5\xB9 |0
+<U9956> \xF6\x77 |0
+<U9957> \xC5\x57 |0
+<U9958> \xF6\x76 |0
+<U9959> \xF5\x56 |0
+<U995B> \xF7\x77 |0
+<U995C> \xC5\xE4 |0
+<U995E> \xC6\x61 |0
+<U995F> \xF9\x59 |0
+<U9961> \xF9\xB1 |0
+<U9996> \xAD\xBA |0
+<U9997> \xD8\x50 |0
+<U9998> \xEF\x55 |0
+<U9999> \xAD\xBB |0
+<U999C> \xE4\xD2 |0
+<U999D> \xE4\xD1 |0
+<U999E> \xEC\x60 |0
+<U99A1> \xEF\x57 |0
+<U99A3> \xEF\x56 |0
+<U99A5> \xC3\x4C |0
+<U99A6> \xF3\xB2 |0
+<U99A7> \xF3\xB3 |0
+<U99A8> \xC4\xC9 |0
+<U99AB> \xF9\xB2 |0
+<U99AC> \xB0\xA8 |0
+<U99AD> \xB6\xBF |0
+<U99AE> \xB6\xBE |0
+<U99AF> \xE0\xE4 |0
+<U99B0> \xE0\xE6 |0
+<U99B1> \xB9\xA4 |0
+<U99B2> \xE0\xE5 |0
+<U99B3> \xB9\xA3 |0
+<U99B4> \xB9\xA5 |0
+<U99B5> \xE0\xE7 |0
+<U99B9> \xE4\xD4 |0
+<U99BA> \xE4\xD6 |0
+<U99BB> \xE4\xD5 |0
+<U99BD> \xE4\xD8 |0
+<U99C1> \xBB\xE9 |0
+<U99C2> \xE4\xD7 |0
+<U99C3> \xE4\xD3 |0
+<U99C7> \xE4\xD9 |0
+<U99C9> \xE8\xCC |0
+<U99CB> \xE8\xCF |0
+<U99CC> \xE8\xD1 |0
+<U99CD> \xE8\xC7 |0
+<U99CE> \xE8\xCB |0
+<U99CF> \xE8\xC8 |0
+<U99D0> \xBE\x6E |0
+<U99D1> \xBE\x71 |0
+<U99D2> \xBE\x73 |0
+<U99D3> \xE8\xC9 |0
+<U99D4> \xE8\xCA |0
+<U99D5> \xBE\x72 |0
+<U99D6> \xE8\xCD |0
+<U99D7> \xE8\xD0 |0
+<U99D8> \xE8\xCE |0
+<U99D9> \xBE\x74 |0
+<U99DB> \xBE\x70 |0
+<U99DC> \xE8\xC6 |0
+<U99DD> \xBE\x6D |0
+<U99DF> \xBE\x6F |0
+<U99E2> \xC0\x63 |0
+<U99E3> \xEC\x66 |0
+<U99E4> \xEC\x64 |0
+<U99E5> \xEC\x63 |0
+<U99E7> \xEC\x69 |0
+<U99E9> \xEC\x68 |0
+<U99EA> \xEC\x67 |0
+<U99EC> \xEC\x62 |0
+<U99ED> \xC0\x62 |0
+<U99EE> \xEC\x61 |0
+<U99F0> \xEC\x65 |0
+<U99F1> \xC0\x64 |0
+<U99F4> \xEF\x5A |0
+<U99F6> \xEF\x5E |0
+<U99F7> \xEF\x5B |0
+<U99F8> \xEF\x5D |0
+<U99F9> \xEF\x5C |0
+<U99FA> \xEF\x59 |0
+<U99FB> \xEF\x5F |0
+<U99FC> \xEF\x62 |0
+<U99FD> \xEF\x60 |0
+<U99FE> \xEF\x61 |0
+<U99FF> \xC2\x40 |0
+<U9A01> \xC1\xFE |0
+<U9A02> \xEF\x58 |0
+<U9A03> \xEF\x63 |0
+<U9A04> \xF1\xB3 |0
+<U9A05> \xF1\xB6 |0
+<U9A06> \xF1\xB8 |0
+<U9A07> \xF1\xB7 |0
+<U9A09> \xF1\xB1 |0
+<U9A0A> \xF1\xB5 |0
+<U9A0B> \xF1\xB0 |0
+<U9A0D> \xF1\xB2 |0
+<U9A0E> \xC3\x4D |0
+<U9A0F> \xF1\xAF |0
+<U9A11> \xF1\xB4 |0
+<U9A14> \xF3\xC0 |0
+<U9A15> \xF3\xB5 |0
+<U9A16> \xC4\x45 |0
+<U9A19> \xC4\x46 |0
+<U9A1A> \xF3\xB4 |0
+<U9A1B> \xF3\xB9 |0
+<U9A1C> \xF3\xBF |0
+<U9A1D> \xF3\xB7 |0
+<U9A1E> \xF3\xBE |0
+<U9A20> \xF3\xBB |0
+<U9A22> \xF3\xBA |0
+<U9A23> \xF3\xBD |0
+<U9A24> \xF3\xB8 |0
+<U9A25> \xF3\xB6 |0
+<U9A27> \xF3\xBC |0
+<U9A29> \xF5\x60 |0
+<U9A2A> \xF5\x5E |0
+<U9A2B> \xC4\xCA |0
+<U9A2C> \xF5\x5D |0
+<U9A2D> \xF5\x63 |0
+<U9A2E> \xF5\x61 |0
+<U9A30> \xC4\xCB |0
+<U9A31> \xF5\x5C |0
+<U9A32> \xF5\x5A |0
+<U9A34> \xF5\x5B |0
+<U9A35> \xC4\xCD |0
+<U9A36> \xF5\x5F |0
+<U9A37> \xC4\xCC |0
+<U9A38> \xF5\x62 |0
+<U9A39> \xF6\x78 |0
+<U9A3A> \xF6\x7E |0
+<U9A3D> \xF6\x79 |0
+<U9A3E> \xC5\x5B |0
+<U9A3F> \xF6\xA1 |0
+<U9A40> \xC5\x5A |0
+<U9A41> \xF6\x7D |0
+<U9A42> \xF6\x7C |0
+<U9A43> \xC5\x59 |0
+<U9A44> \xF6\x7B |0
+<U9A45> \xC5\x58 |0
+<U9A46> \xF6\x7A |0
+<U9A48> \xF7\x7D |0
+<U9A49> \xF7\xA1 |0
+<U9A4A> \xF7\x7E |0
+<U9A4C> \xF7\x7B |0
+<U9A4D> \xC5\xBB |0
+<U9A4E> \xF7\x78 |0
+<U9A4F> \xF7\x7C |0
+<U9A50> \xF7\xA3 |0
+<U9A52> \xF7\xA2 |0
+<U9A53> \xF7\x79 |0
+<U9A54> \xF7\x7A |0
+<U9A55> \xC5\xBA |0
+<U9A56> \xF8\x52 |0
+<U9A57> \xC5\xE7 |0
+<U9A59> \xF8\x53 |0
+<U9A5A> \xC5\xE5 |0
+<U9A5B> \xC5\xE6 |0
+<U9A5E> \xF8\xD3 |0
+<U9A5F> \xC6\x4A |0
+<U9A60> \xF9\x76 |0
+<U9A62> \xC6\x6A |0
+<U9A64> \xF9\xB3 |0
+<U9A65> \xC6\x6B |0
+<U9A66> \xF9\xB4 |0
+<U9A67> \xF9\xB5 |0
+<U9A68> \xF9\xC3 |0
+<U9A69> \xF9\xC2 |0
+<U9A6A> \xC6\x7A |0
+<U9A6B> \xF9\xCD |0
+<U9AA8> \xB0\xA9 |0
+<U9AAB> \xE0\xE9 |0
+<U9AAD> \xE0\xE8 |0
+<U9AAF> \xBB\xEA |0
+<U9AB0> \xBB\xEB |0
+<U9AB1> \xE4\xDA |0
+<U9AB3> \xE8\xD2 |0
+<U9AB4> \xEC\x6C |0
+<U9AB7> \xBE\x75 |0
+<U9AB8> \xC0\x65 |0
+<U9AB9> \xEC\x6A |0
+<U9ABB> \xEC\x6D |0
+<U9ABC> \xC0\x66 |0
+<U9ABE> \xEF\x64 |0
+<U9ABF> \xEC\x6B |0
+<U9AC0> \xF1\xB9 |0
+<U9AC1> \xC3\x4E |0
+<U9AC2> \xF3\xC1 |0
+<U9AC6> \xF5\x66 |0
+<U9AC7> \xF5\x64 |0
+<U9ACA> \xF5\x65 |0
+<U9ACD> \xF6\xA2 |0
+<U9ACF> \xC5\x5C |0
+<U9AD0> \xF7\xA4 |0
+<U9AD1> \xC5\xEA |0
+<U9AD2> \xC5\xBC |0
+<U9AD3> \xC5\xE8 |0
+<U9AD4> \xC5\xE9 |0
+<U9AD5> \xF8\xD4 |0
+<U9AD6> \xC6\x62 |0
+<U9AD8> \xB0\xAA |0
+<U9ADC> \xF1\xBA |0
+<U9ADF> \xD4\x49 |0
+<U9AE1> \xB9\xA6 |0
+<U9AE3> \xE4\xDB |0
+<U9AE6> \xBB\xEC |0
+<U9AE7> \xE4\xDC |0
+<U9AEB> \xE8\xD4 |0
+<U9AEC> \xE8\xD3 |0
+<U9AED> \xC0\x68 |0
+<U9AEE> \xBE\x76 |0
+<U9AEF> \xBE\x77 |0
+<U9AF1> \xE8\xD7 |0
+<U9AF2> \xE8\xD6 |0
+<U9AF3> \xE8\xD5 |0
+<U9AF6> \xEC\x6E |0
+<U9AF7> \xEC\x71 |0
+<U9AF9> \xEC\x70 |0
+<U9AFA> \xEC\x6F |0
+<U9AFB> \xC0\x67 |0
+<U9AFC> \xEF\x68 |0
+<U9AFD> \xEF\x66 |0
+<U9AFE> \xEF\x65 |0
+<U9B01> \xEF\x67 |0
+<U9B03> \xC3\x4F |0
+<U9B04> \xF1\xBC |0
+<U9B05> \xF1\xBD |0
+<U9B06> \xC3\x50 |0
+<U9B08> \xF1\xBB |0
+<U9B0A> \xF3\xC3 |0
+<U9B0B> \xF3\xC2 |0
+<U9B0C> \xF3\xC5 |0
+<U9B0D> \xC4\x47 |0
+<U9B0E> \xF3\xC4 |0
+<U9B10> \xF5\x67 |0
+<U9B11> \xF5\x69 |0
+<U9B12> \xF5\x68 |0
+<U9B15> \xF6\xA3 |0
+<U9B16> \xF6\xA6 |0
+<U9B17> \xF6\xA4 |0
+<U9B18> \xF6\xA5 |0
+<U9B19> \xF7\xA5 |0
+<U9B1A> \xC5\xBD |0
+<U9B1E> \xF8\x54 |0
+<U9B1F> \xF8\x55 |0
+<U9B20> \xF8\x56 |0
+<U9B22> \xC6\x4B |0
+<U9B23> \xC6\x63 |0
+<U9B24> \xF9\xB6 |0
+<U9B25> \xB0\xAB |0
+<U9B27> \xBE\x78 |0
+<U9B28> \xC0\x69 |0
+<U9B29> \xF1\xBE |0
+<U9B2B> \xF7\xA6 |0
+<U9B2E> \xF9\xC4 |0
+<U9B2F> \xD4\x4A |0
+<U9B31> \xC6\x7B |0
+<U9B32> \xB0\xAC |0
+<U9B33> \xEC\x72 |0
+<U9B35> \xF1\xBF |0
+<U9B37> \xF3\xC6 |0
+<U9B3A> \xF6\xA7 |0
+<U9B3B> \xF7\xA7 |0
+<U9B3C> \xB0\xAD |0
+<U9B3E> \xE4\xDD |0
+<U9B3F> \xE4\xDE |0
+<U9B41> \xBB\xED |0
+<U9B42> \xBB\xEE |0
+<U9B43> \xE8\xD9 |0
+<U9B44> \xBE\x7A |0
+<U9B45> \xBE\x79 |0
+<U9B46> \xE8\xD8 |0
+<U9B48> \xEF\x69 |0
+<U9B4A> \xF1\xC0 |0
+<U9B4B> \xF1\xC2 |0
+<U9B4C> \xF1\xC1 |0
+<U9B4D> \xC3\x53 |0
+<U9B4E> \xC3\x52 |0
+<U9B4F> \xC3\x51 |0
+<U9B51> \xC5\x5E |0
+<U9B52> \xF6\xA8 |0
+<U9B54> \xC5\x5D |0
+<U9B55> \xF7\xA9 |0
+<U9B56> \xF7\xA8 |0
+<U9B58> \xC6\x4C |0
+<U9B59> \xF8\xD5 |0
+<U9B5A> \xB3\xBD |0
+<U9B5B> \xE0\xEA |0
+<U9B5F> \xE4\xE1 |0
+<U9B60> \xE4\xDF |0
+<U9B61> \xE4\xE0 |0
+<U9B64> \xE8\xE2 |0
+<U9B66> \xE8\xDD |0
+<U9B67> \xE8\xDA |0
+<U9B68> \xE8\xE1 |0
+<U9B6C> \xE8\xE3 |0
+<U9B6F> \xBE\x7C |0
+<U9B70> \xE8\xE0 |0
+<U9B71> \xE8\xDC |0
+<U9B74> \xE8\xDB |0
+<U9B75> \xE8\xDF |0
+<U9B76> \xE8\xDE |0
+<U9B77> \xBE\x7B |0
+<U9B7A> \xEC\x7D |0
+<U9B7B> \xEC\x78 |0
+<U9B7C> \xEC\x76 |0
+<U9B7D> \xEC\xA1 |0
+<U9B7E> \xEC\x77 |0
+<U9B80> \xEC\x73 |0
+<U9B82> \xEC\x79 |0
+<U9B85> \xEC\x74 |0
+<U9B86> \xEF\x72 |0
+<U9B87> \xEC\x75 |0
+<U9B88> \xEC\xA2 |0
+<U9B90> \xEC\x7C |0
+<U9B91> \xC0\x6A |0
+<U9B92> \xEC\x7B |0
+<U9B93> \xEC\x7A |0
+<U9B95> \xEC\x7E |0
+<U9B9A> \xEF\x6A |0
+<U9B9B> \xEF\x6D |0
+<U9B9E> \xEF\x6C |0
+<U9BA0> \xEF\x74 |0
+<U9BA1> \xEF\x6F |0
+<U9BA2> \xEF\x73 |0
+<U9BA4> \xEF\x71 |0
+<U9BA5> \xEF\x70 |0
+<U9BA6> \xEF\x6E |0
+<U9BA8> \xEF\x6B |0
+<U9BAA> \xC2\x43 |0
+<U9BAB> \xC2\x42 |0
+<U9BAD> \xC2\x44 |0
+<U9BAE> \xC2\x41 |0
+<U9BAF> \xEF\x75 |0
+<U9BB5> \xF1\xC8 |0
+<U9BB6> \xF1\xCB |0
+<U9BB8> \xF1\xC9 |0
+<U9BB9> \xF1\xCD |0
+<U9BBD> \xF1\xCE |0
+<U9BBF> \xF1\xC6 |0
+<U9BC0> \xC3\x58 |0
+<U9BC1> \xF1\xC7 |0
+<U9BC3> \xF1\xC5 |0
+<U9BC4> \xF1\xCC |0
+<U9BC6> \xF1\xC4 |0
+<U9BC7> \xF1\xC3 |0
+<U9BC8> \xC3\x57 |0
+<U9BC9> \xC3\x55 |0
+<U9BCA> \xC3\x54 |0
+<U9BD3> \xF1\xCA |0
+<U9BD4> \xF3\xCF |0
+<U9BD5> \xF3\xD5 |0
+<U9BD6> \xC4\x4A |0
+<U9BD7> \xF3\xD0 |0
+<U9BD9> \xF3\xD3 |0
+<U9BDA> \xF3\xD7 |0
+<U9BDB> \xC4\x4B |0
+<U9BDC> \xF3\xD2 |0
+<U9BDE> \xF3\xCA |0
+<U9BE0> \xF3\xC9 |0
+<U9BE1> \xF3\xD6 |0
+<U9BE2> \xF3\xCD |0
+<U9BE4> \xF3\xCB |0
+<U9BE5> \xF3\xD4 |0
+<U9BE6> \xF3\xCC |0
+<U9BE7> \xC4\x49 |0
+<U9BE8> \xC4\x48 |0
+<U9BEA> \xF3\xC7 |0
+<U9BEB> \xF3\xC8 |0
+<U9BEC> \xF3\xD1 |0
+<U9BF0> \xF3\xCE |0
+<U9BF7> \xF5\x6C |0
+<U9BF8> \xF5\x6F |0
+<U9BFD> \xC3\x56 |0
+<U9C05> \xF5\x6D |0
+<U9C06> \xF5\x73 |0
+<U9C07> \xF5\x71 |0
+<U9C08> \xF5\x6B |0
+<U9C09> \xF5\x76 |0
+<U9C0B> \xF5\x6A |0
+<U9C0D> \xC4\xCF |0
+<U9C0E> \xF5\x72 |0
+<U9C12> \xF5\x6E |0
+<U9C13> \xC4\xCE |0
+<U9C14> \xF5\x75 |0
+<U9C17> \xF5\x74 |0
+<U9C1C> \xF6\xAB |0
+<U9C1D> \xF6\xAA |0
+<U9C21> \xF6\xB1 |0
+<U9C23> \xF6\xAD |0
+<U9C24> \xF6\xB0 |0
+<U9C25> \xC5\x60 |0
+<U9C28> \xF6\xAE |0
+<U9C29> \xF6\xAF |0
+<U9C2B> \xF6\xA9 |0
+<U9C2C> \xF6\xAC |0
+<U9C2D> \xC5\x5F |0
+<U9C31> \xC5\xBF |0
+<U9C32> \xF7\xB4 |0
+<U9C33> \xF7\xAF |0
+<U9C34> \xF7\xB3 |0
+<U9C36> \xF7\xB6 |0
+<U9C37> \xF7\xB2 |0
+<U9C39> \xF7\xAE |0
+<U9C3B> \xC5\xC1 |0
+<U9C3C> \xF7\xB1 |0
+<U9C3D> \xF7\xB5 |0
+<U9C3E> \xC5\xC0 |0
+<U9C3F> \xF7\xAC |0
+<U9C40> \xF5\x70 |0
+<U9C41> \xF7\xB0 |0
+<U9C44> \xF7\xAD |0
+<U9C46> \xF7\xAA |0
+<U9C48> \xF7\xAB |0
+<U9C49> \xC5\xBE |0
+<U9C4A> \xF8\x5A |0
+<U9C4B> \xF8\x5C |0
+<U9C4C> \xF8\x5F |0
+<U9C4D> \xF8\x5B |0
+<U9C4E> \xF8\x60 |0
+<U9C50> \xF8\x59 |0
+<U9C52> \xF8\x57 |0
+<U9C54> \xC5\xEB |0
+<U9C55> \xF8\x5D |0
+<U9C56> \xC5\xED |0
+<U9C57> \xC5\xEC |0
+<U9C58> \xF8\x58 |0
+<U9C59> \xF8\x5E |0
+<U9C5E> \xF8\xDA |0
+<U9C5F> \xC6\x4D |0
+<U9C60> \xF8\xDB |0
+<U9C62> \xF8\xD9 |0
+<U9C63> \xF8\xD6 |0
+<U9C66> \xF8\xD8 |0
+<U9C67> \xF8\xD7 |0
+<U9C68> \xF9\x5A |0
+<U9C6D> \xF9\x5C |0
+<U9C6E> \xF9\x5B |0
+<U9C71> \xF9\x79 |0
+<U9C73> \xF9\x78 |0
+<U9C74> \xF9\x77 |0
+<U9C75> \xF9\x7A |0
+<U9C77> \xC6\x73 |0
+<U9C78> \xC6\x74 |0
+<U9C79> \xF9\xCA |0
+<U9C7A> \xF9\xCE |0
+<U9CE5> \xB3\xBE |0
+<U9CE6> \xDC\xAF |0
+<U9CE7> \xE0\xED |0
+<U9CE9> \xB9\xA7 |0
+<U9CEA> \xE0\xEB |0
+<U9CED> \xE0\xEC |0
+<U9CF1> \xE4\xE2 |0
+<U9CF2> \xE4\xE3 |0
+<U9CF3> \xBB\xF1 |0
+<U9CF4> \xBB\xEF |0
+<U9CF5> \xE4\xE4 |0
+<U9CF6> \xBB\xF0 |0
+<U9CF7> \xE8\xE8 |0
+<U9CF9> \xE8\xEB |0
+<U9CFA> \xE8\xE5 |0
+<U9CFB> \xE8\xEC |0
+<U9CFC> \xE8\xE4 |0
+<U9CFD> \xE8\xE6 |0
+<U9CFF> \xE8\xE7 |0
+<U9D00> \xE8\xEA |0
+<U9D03> \xBE\xA1 |0
+<U9D04> \xE8\xEF |0
+<U9D05> \xE8\xEE |0
+<U9D06> \xBE\x7D |0
+<U9D07> \xE8\xE9 |0
+<U9D08> \xE8\xED |0
+<U9D09> \xBE\x7E |0
+<U9D10> \xEC\xAC |0
+<U9D12> \xC0\x6F |0
+<U9D14> \xEC\xA7 |0
+<U9D15> \xC0\x6B |0
+<U9D17> \xEC\xA4 |0
+<U9D18> \xEC\xAA |0
+<U9D19> \xEC\xAD |0
+<U9D1B> \xC0\x70 |0
+<U9D1D> \xEC\xA9 |0
+<U9D1E> \xEC\xA6 |0
+<U9D1F> \xEC\xAE |0
+<U9D20> \xEC\xA5 |0
+<U9D22> \xEC\xAB |0
+<U9D23> \xC0\x6C |0
+<U9D25> \xEC\xA3 |0
+<U9D26> \xC0\x6D |0
+<U9D28> \xC0\x6E |0
+<U9D29> \xEC\xA8 |0
+<U9D2D> \xEF\xA9 |0
+<U9D2E> \xEF\x7A |0
+<U9D2F> \xEF\x7B |0
+<U9D30> \xEF\x7E |0
+<U9D31> \xEF\x7C |0
+<U9D33> \xEF\x76 |0
+<U9D36> \xEF\x79 |0
+<U9D37> \xEF\xA5 |0
+<U9D38> \xEF\x7D |0
+<U9D3B> \xC2\x45 |0
+<U9D3D> \xEF\xA7 |0
+<U9D3E> \xEF\xA4 |0
+<U9D3F> \xC2\x46 |0
+<U9D40> \xEF\xA6 |0
+<U9D41> \xEF\x77 |0
+<U9D42> \xEF\xA2 |0
+<U9D43> \xEF\xA3 |0
+<U9D45> \xEF\xA1 |0
+<U9D4A> \xF1\xD2 |0
+<U9D4B> \xF1\xD4 |0
+<U9D4C> \xF1\xD7 |0
+<U9D4F> \xF1\xD1 |0
+<U9D51> \xC3\x59 |0
+<U9D52> \xF1\xD9 |0
+<U9D53> \xF1\xD0 |0
+<U9D54> \xF1\xDA |0
+<U9D56> \xF1\xD6 |0
+<U9D57> \xF1\xD8 |0
+<U9D58> \xF1\xDC |0
+<U9D59> \xF1\xD5 |0
+<U9D5A> \xF1\xDD |0
+<U9D5B> \xF1\xD3 |0
+<U9D5C> \xF1\xCF |0
+<U9D5D> \xC3\x5A |0
+<U9D5F> \xF1\xDB |0
+<U9D60> \xC3\x5B |0
+<U9D61> \xC4\x4D |0
+<U9D67> \xEF\x78 |0
+<U9D68> \xF3\xF1 |0
+<U9D69> \xF3\xE8 |0
+<U9D6A> \xC4\x4F |0
+<U9D6B> \xF3\xE4 |0
+<U9D6C> \xC4\x50 |0
+<U9D6F> \xF3\xED |0
+<U9D70> \xF3\xE7 |0
+<U9D71> \xF3\xDD |0
+<U9D72> \xC4\x4E |0
+<U9D73> \xF3\xEA |0
+<U9D74> \xF3\xE5 |0
+<U9D75> \xF3\xE6 |0
+<U9D77> \xF3\xD8 |0
+<U9D78> \xF3\xDF |0
+<U9D79> \xF3\xEE |0
+<U9D7B> \xF3\xEB |0
+<U9D7D> \xF3\xE3 |0
+<U9D7F> \xF3\xEF |0
+<U9D80> \xF3\xDE |0
+<U9D81> \xF3\xD9 |0
+<U9D82> \xF3\xEC |0
+<U9D84> \xF3\xDB |0
+<U9D85> \xF3\xE9 |0
+<U9D86> \xF3\xE0 |0
+<U9D87> \xF3\xF0 |0
+<U9D88> \xF3\xDC |0
+<U9D89> \xC4\x4C |0
+<U9D8A> \xF3\xDA |0
+<U9D8B> \xF3\xE1 |0
+<U9D8C> \xF3\xE2 |0
+<U9D90> \xF5\x7D |0
+<U9D92> \xF5\x7B |0
+<U9D94> \xF5\xA2 |0
+<U9D96> \xF5\xAE |0
+<U9D97> \xF5\xA5 |0
+<U9D98> \xF5\x7C |0
+<U9D99> \xF5\x78 |0
+<U9D9A> \xF5\xA7 |0
+<U9D9B> \xF5\x7E |0
+<U9D9C> \xF5\xA3 |0
+<U9D9D> \xF5\x7A |0
+<U9D9E> \xF5\xAA |0
+<U9D9F> \xF5\x77 |0
+<U9DA0> \xF5\xA1 |0
+<U9DA1> \xF5\xA6 |0
+<U9DA2> \xF5\xA8 |0
+<U9DA3> \xF5\xAB |0
+<U9DA4> \xF5\x79 |0
+<U9DA6> \xF5\xAF |0
+<U9DA7> \xF5\xB0 |0
+<U9DA8> \xF5\xA9 |0
+<U9DA9> \xF5\xAD |0
+<U9DAA> \xF5\xA4 |0
+<U9DAC> \xF6\xC1 |0
+<U9DAD> \xF6\xC4 |0
+<U9DAF> \xC5\x61 |0
+<U9DB1> \xF6\xC3 |0
+<U9DB2> \xF6\xC8 |0
+<U9DB3> \xF6\xC6 |0
+<U9DB4> \xC5\x62 |0
+<U9DB5> \xF6\xBD |0
+<U9DB6> \xF6\xB3 |0
+<U9DB7> \xF6\xB2 |0
+<U9DB8> \xC5\x64 |0
+<U9DB9> \xF6\xBF |0
+<U9DBA> \xF6\xC0 |0
+<U9DBB> \xF6\xBC |0
+<U9DBC> \xF6\xB4 |0
+<U9DBE> \xF6\xB9 |0
+<U9DBF> \xF5\xAC |0
+<U9DC1> \xF6\xB5 |0
+<U9DC2> \xC5\x63 |0
+<U9DC3> \xF6\xBB |0
+<U9DC5> \xF6\xBA |0
+<U9DC7> \xF6\xB6 |0
+<U9DC8> \xF6\xC2 |0
+<U9DCA> \xF6\xB7 |0
+<U9DCB> \xF7\xBB |0
+<U9DCC> \xF6\xC5 |0
+<U9DCD> \xF6\xC7 |0
+<U9DCE> \xF6\xBE |0
+<U9DCF> \xF6\xB8 |0
+<U9DD0> \xF7\xBC |0
+<U9DD1> \xF7\xBE |0
+<U9DD2> \xF7\xB8 |0
+<U9DD3> \xC5\xC2 |0
+<U9DD5> \xF7\xC5 |0
+<U9DD6> \xF7\xC3 |0
+<U9DD7> \xC5\xC3 |0
+<U9DD8> \xF7\xC2 |0
+<U9DD9> \xF7\xC1 |0
+<U9DDA> \xF7\xBA |0
+<U9DDB> \xF7\xB7 |0
+<U9DDC> \xF7\xBD |0
+<U9DDD> \xF7\xC6 |0
+<U9DDE> \xF7\xB9 |0
+<U9DDF> \xF7\xBF |0
+<U9DE1> \xF8\x69 |0
+<U9DE2> \xF8\x6E |0
+<U9DE3> \xF8\x64 |0
+<U9DE4> \xF8\x67 |0
+<U9DE5> \xC5\xEE |0
+<U9DE6> \xF8\x6B |0
+<U9DE8> \xF8\x72 |0
+<U9DE9> \xF7\xC0 |0
+<U9DEB> \xF8\x65 |0
+<U9DEC> \xF8\x6F |0
+<U9DED> \xF8\x73 |0
+<U9DEE> \xF8\x6A |0
+<U9DEF> \xF8\x63 |0
+<U9DF0> \xF8\x6D |0
+<U9DF2> \xF8\x6C |0
+<U9DF3> \xF8\x71 |0
+<U9DF4> \xF8\x70 |0
+<U9DF5> \xF7\xC4 |0
+<U9DF6> \xF8\x68 |0
+<U9DF7> \xF8\x62 |0
+<U9DF8> \xF8\x66 |0
+<U9DF9> \xC6\x4E |0
+<U9DFA> \xC6\x4F |0
+<U9DFB> \xF8\x61 |0
+<U9DFD> \xF8\xE6 |0
+<U9DFE> \xF8\xDD |0
+<U9DFF> \xF8\xE5 |0
+<U9E00> \xF8\xE2 |0
+<U9E01> \xF8\xE3 |0
+<U9E02> \xF8\xDC |0
+<U9E03> \xF8\xDF |0
+<U9E04> \xF8\xE7 |0
+<U9E05> \xF8\xE1 |0
+<U9E06> \xF8\xE0 |0
+<U9E07> \xF8\xDE |0
+<U9E09> \xF8\xE4 |0
+<U9E0B> \xF9\x5D |0
+<U9E0D> \xF9\x5E |0
+<U9E0F> \xF9\x60 |0
+<U9E10> \xF9\x5F |0
+<U9E11> \xF9\x62 |0
+<U9E12> \xF9\x61 |0
+<U9E13> \xF9\x7C |0
+<U9E14> \xF9\x7B |0
+<U9E15> \xF9\xB7 |0
+<U9E17> \xF9\xB8 |0
+<U9E19> \xF9\xC5 |0
+<U9E1A> \xC6\x78 |0
+<U9E1B> \xC6\x7C |0
+<U9E1D> \xF9\xCF |0
+<U9E1E> \xC6\x7D |0
+<U9E75> \xB3\xBF |0
+<U9E79> \xC4\xD0 |0
+<U9E7A> \xF6\xC9 |0
+<U9E7C> \xC6\x50 |0
+<U9E7D> \xC6\x51 |0
+<U9E7F> \xB3\xC0 |0
+<U9E80> \xE0\xEE |0
+<U9E82> \xB9\xA8 |0
+<U9E83> \xE8\xF0 |0
+<U9E86> \xEC\xB0 |0
+<U9E87> \xEC\xB1 |0
+<U9E88> \xEC\xAF |0
+<U9E89> \xEF\xAB |0
+<U9E8A> \xEF\xAA |0
+<U9E8B> \xC2\x47 |0
+<U9E8C> \xF1\xDF |0
+<U9E8D> \xEF\xAC |0
+<U9E8E> \xF1\xDE |0
+<U9E91> \xF3\xF3 |0
+<U9E92> \xC4\x51 |0
+<U9E93> \xC4\x53 |0
+<U9E94> \xF3\xF2 |0
+<U9E97> \xC4\x52 |0
+<U9E99> \xF5\xB1 |0
+<U9E9A> \xF5\xB3 |0
+<U9E9B> \xF5\xB2 |0
+<U9E9C> \xF6\xCA |0
+<U9E9D> \xC5\x65 |0
+<U9E9F> \xC5\xEF |0
+<U9EA0> \xF8\xE8 |0
+<U9EA1> \xF9\x63 |0
+<U9EA4> \xF9\xD2 |0
+<U9EA5> \xB3\xC1 |0
+<U9EA7> \xE4\xE5 |0
+<U9EA9> \xBE\xA2 |0
+<U9EAD> \xEC\xB3 |0
+<U9EAE> \xEC\xB2 |0
+<U9EB0> \xEF\xAD |0
+<U9EB4> \xC4\x54 |0
+<U9EB5> \xC4\xD1 |0
+<U9EB6> \xF7\xC7 |0
+<U9EB7> \xF9\xCB |0
+<U9EBB> \xB3\xC2 |0
+<U9EBC> \xBB\xF2 |0
+<U9EBE> \xBE\xA3 |0
+<U9EC0> \xF3\xF4 |0
+<U9EC2> \xF8\x74 |0
+<U9EC3> \xB6\xC0 |0
+<U9EC8> \xEF\xAE |0
+<U9ECC> \xC6\x64 |0
+<U9ECD> \xB6\xC1 |0
+<U9ECE> \xBE\xA4 |0
+<U9ECF> \xC2\x48 |0
+<U9ED0> \xF8\x75 |0
+<U9ED1> \xB6\xC2 |0
+<U9ED3> \xE8\xF1 |0
+<U9ED4> \xC0\x72 |0
+<U9ED5> \xEC\xB4 |0
+<U9ED6> \xEC\xB5 |0
+<U9ED8> \xC0\x71 |0
+<U9EDA> \xEF\xAF |0
+<U9EDB> \xC2\x4C |0
+<U9EDC> \xC2\x4A |0
+<U9EDD> \xC2\x4B |0
+<U9EDE> \xC2\x49 |0
+<U9EDF> \xF1\xE0 |0
+<U9EE0> \xC3\x5C |0
+<U9EE4> \xF5\xB5 |0
+<U9EE5> \xF5\xB4 |0
+<U9EE6> \xF5\xB7 |0
+<U9EE7> \xF5\xB6 |0
+<U9EE8> \xC4\xD2 |0
+<U9EEB> \xF6\xCB |0
+<U9EED> \xF6\xCD |0
+<U9EEE> \xF6\xCC |0
+<U9EEF> \xC5\x66 |0
+<U9EF0> \xF7\xC8 |0
+<U9EF2> \xF8\x76 |0
+<U9EF3> \xF8\x77 |0
+<U9EF4> \xC5\xF0 |0
+<U9EF5> \xF9\x64 |0
+<U9EF6> \xF9\x7D |0
+<U9EF7> \xC6\x75 |0
+<U9EF9> \xDC\xB0 |0
+<U9EFA> \xEC\xB6 |0
+<U9EFB> \xEF\xB0 |0
+<U9EFC> \xF3\xF5 |0
+<U9EFD> \xE0\xEF |0
+<U9EFF> \xEF\xB1 |0
+<U9F00> \xF1\xE2 |0
+<U9F01> \xF1\xE1 |0
+<U9F06> \xF8\x78 |0
+<U9F07> \xC6\x52 |0
+<U9F09> \xF9\x65 |0
+<U9F0A> \xF9\x7E |0
+<U9F0E> \xB9\xA9 |0
+<U9F0F> \xE8\xF2 |0
+<U9F10> \xE8\xF3 |0
+<U9F12> \xEC\xB7 |0
+<U9F13> \xB9\xAA |0
+<U9F15> \xC3\x5D |0
+<U9F16> \xF1\xE3 |0
+<U9F18> \xF6\xCF |0
+<U9F19> \xC5\x67 |0
+<U9F1A> \xF6\xD0 |0
+<U9F1B> \xF6\xCE |0
+<U9F1C> \xF8\x79 |0
+<U9F1E> \xF8\xE9 |0
+<U9F20> \xB9\xAB |0
+<U9F22> \xEF\xB4 |0
+<U9F23> \xEF\xB3 |0
+<U9F24> \xEF\xB2 |0
+<U9F25> \xF1\xE4 |0
+<U9F28> \xF1\xE8 |0
+<U9F29> \xF1\xE7 |0
+<U9F2A> \xF1\xE6 |0
+<U9F2B> \xF1\xE5 |0
+<U9F2C> \xC3\x5E |0
+<U9F2D> \xF3\xF6 |0
+<U9F2E> \xF5\xB9 |0
+<U9F2F> \xC4\xD3 |0
+<U9F30> \xF5\xB8 |0
+<U9F31> \xF6\xD1 |0
+<U9F32> \xF7\xCB |0
+<U9F33> \xF7\xCA |0
+<U9F34> \xC5\xC4 |0
+<U9F35> \xF7\xC9 |0
+<U9F36> \xF8\x7C |0
+<U9F37> \xF8\x7B |0
+<U9F38> \xF8\x7A |0
+<U9F3B> \xBB\xF3 |0
+<U9F3D> \xEC\xB8 |0
+<U9F3E> \xC2\x4D |0
+<U9F40> \xF3\xF7 |0
+<U9F41> \xF3\xF8 |0
+<U9F42> \xF7\xCC |0
+<U9F43> \xF8\x7D |0
+<U9F46> \xF8\xEA |0
+<U9F47> \xF9\x66 |0
+<U9F48> \xF9\xB9 |0
+<U9F49> \xF9\xD4 |0
+<U9F4A> \xBB\xF4 |0
+<U9F4B> \xC2\x4E |0
+<U9F4C> \xF1\xE9 |0
+<U9F4D> \xF3\xF9 |0
+<U9F4E> \xF6\xD2 |0
+<U9F4F> \xF8\x7E |0
+<U9F52> \xBE\xA6 |0
+<U9F54> \xEF\xB5 |0
+<U9F55> \xF1\xEA |0
+<U9F56> \xF3\xFA |0
+<U9F57> \xF3\xFB |0
+<U9F58> \xF3\xFC |0
+<U9F59> \xF5\xBE |0
+<U9F5B> \xF5\xBA |0
+<U9F5C> \xC5\x68 |0
+<U9F5D> \xF5\xBD |0
+<U9F5E> \xF5\xBC |0
+<U9F5F> \xC4\xD4 |0
+<U9F60> \xF5\xBB |0
+<U9F61> \xC4\xD6 |0
+<U9F63> \xC4\xD5 |0
+<U9F64> \xF6\xD4 |0
+<U9F65> \xF6\xD3 |0
+<U9F66> \xC5\x69 |0
+<U9F67> \xC5\x6A |0
+<U9F6A> \xC5\xC6 |0
+<U9F6B> \xF7\xCD |0
+<U9F6C> \xC5\xC5 |0
+<U9F6E> \xF8\xA3 |0
+<U9F6F> \xF8\xA4 |0
+<U9F70> \xF8\xA2 |0
+<U9F71> \xF8\xA1 |0
+<U9F72> \xC6\x54 |0
+<U9F74> \xF8\xEB |0
+<U9F75> \xF8\xEC |0
+<U9F76> \xF8\xED |0
+<U9F77> \xC6\x53 |0
+<U9F78> \xF9\x67 |0
+<U9F79> \xF9\x6A |0
+<U9F7A> \xF9\x69 |0
+<U9F7B> \xF9\x68 |0
+<U9F7E> \xF9\xD3 |0
+<U9F8D> \xC0\x73 |0
+<U9F90> \xC3\x65 |0
+<U9F91> \xF5\xBF |0
+<U9F92> \xF6\xD5 |0
+<U9F94> \xC5\xC7 |0
+<U9F95> \xF7\xCE |0
+<U9F98> \xF9\xD5 |0
+<U9F9C> \xC0\x74 |0
+<U9FA0> \xEF\xB6 |0
+<U9FA2> \xF7\xCF |0
+<U9FA4> \xF9\xA1 |0
+<UF6B1> \xC6\xA1 |0
+<UF6B2> \xC6\xA2 |0
+<UF6B3> \xC6\xA3 |0
+<UF6B4> \xC6\xA4 |0
+<UF6B5> \xC6\xA5 |0
+<UF6B6> \xC6\xA6 |0
+<UF6B7> \xC6\xA7 |0
+<UF6B8> \xC6\xA8 |0
+<UF6B9> \xC6\xA9 |0
+<UF6BA> \xC6\xAA |0
+<UF6BB> \xC6\xAB |0
+<UF6BC> \xC6\xAC |0
+<UF6BD> \xC6\xAD |0
+<UF6BE> \xC6\xAE |0
+<UF6BF> \xC6\xAF |0
+<UF6C0> \xC6\xB0 |0
+<UF6C1> \xC6\xB1 |0
+<UF6C2> \xC6\xB2 |0
+<UF6C3> \xC6\xB3 |0
+<UF6C4> \xC6\xB4 |0
+<UF6C5> \xC6\xB5 |0
+<UF6C6> \xC6\xB6 |0
+<UF6C7> \xC6\xB7 |0
+<UF6C8> \xC6\xB8 |0
+<UF6C9> \xC6\xB9 |0
+<UF6CA> \xC6\xBA |0
+<UF6CB> \xC6\xBB |0
+<UF6CC> \xC6\xBC |0
+<UF6CD> \xC6\xBD |0
+<UF6CE> \xC6\xBE |0
+<UF6CF> \xC6\xBF |0
+<UF6D0> \xC6\xC0 |0
+<UF6D1> \xC6\xC1 |0
+<UF6D2> \xC6\xC2 |0
+<UF6D3> \xC6\xC3 |0
+<UF6D4> \xC6\xC4 |0
+<UF6D5> \xC6\xC5 |0
+<UF6D6> \xC6\xC6 |0
+<UF6D7> \xC6\xC7 |0
+<UF6D8> \xC6\xC8 |0
+<UF6D9> \xC6\xC9 |0
+<UF6DA> \xC6\xCA |0
+<UF6DB> \xC6\xCB |0
+<UF6DC> \xC6\xCC |0
+<UF6DD> \xC6\xCD |0
+<UF6DE> \xC6\xCE |0
+<UF6DF> \xC6\xCF |0
+<UF6E0> \xC6\xD0 |0
+<UF6E1> \xC6\xD1 |0
+<UF6E2> \xC6\xD2 |0
+<UF6E3> \xC6\xD3 |0
+<UF6E4> \xC6\xD4 |0
+<UF6E5> \xC6\xD5 |0
+<UF6E6> \xC6\xD6 |0
+<UF6E7> \xC6\xD7 |0
+<UF6E8> \xC6\xD8 |0
+<UF6E9> \xC6\xD9 |0
+<UF6EA> \xC6\xDA |0
+<UF6EB> \xC6\xDB |0
+<UF6EC> \xC6\xDC |0
+<UF6ED> \xC6\xDD |0
+<UF6EE> \xC6\xDE |0
+<UF6EF> \xC6\xDF |0
+<UF6F0> \xC6\xE0 |0
+<UF6F1> \xC6\xE1 |0
+<UF6F2> \xC6\xE2 |0
+<UF6F3> \xC6\xE3 |0
+<UF6F4> \xC6\xE4 |0
+<UF6F5> \xC6\xE5 |0
+<UF6F6> \xC6\xE6 |0
+<UF6F7> \xC6\xE7 |0
+<UF6F8> \xC6\xE8 |0
+<UF6F9> \xC6\xE9 |0
+<UF6FA> \xC6\xEA |0
+<UF6FB> \xC6\xEB |0
+<UF6FC> \xC6\xEC |0
+<UF6FD> \xC6\xED |0
+<UF6FE> \xC6\xEE |0
+<UF6FF> \xC6\xEF |0
+<UF700> \xC6\xF0 |0
+<UF701> \xC6\xF1 |0
+<UF702> \xC6\xF2 |0
+<UF703> \xC6\xF3 |0
+<UF704> \xC6\xF4 |0
+<UF705> \xC6\xF5 |0
+<UF706> \xC6\xF6 |0
+<UF707> \xC6\xF7 |0
+<UF708> \xC6\xF8 |0
+<UF709> \xC6\xF9 |0
+<UF70A> \xC6\xFA |0
+<UF70B> \xC6\xFB |0
+<UF70C> \xC6\xFC |0
+<UF70D> \xC6\xFD |0
+<UF70E> \xC6\xFE |0
+<UF70F> \xC7\x40 |0
+<UF710> \xC7\x41 |0
+<UF711> \xC7\x42 |0
+<UF712> \xC7\x43 |0
+<UF713> \xC7\x44 |0
+<UF714> \xC7\x45 |0
+<UF715> \xC7\x46 |0
+<UF716> \xC7\x47 |0
+<UF717> \xC7\x48 |0
+<UF718> \xC7\x49 |0
+<UF719> \xC7\x4A |0
+<UF71A> \xC7\x4B |0
+<UF71B> \xC7\x4C |0
+<UF71C> \xC7\x4D |0
+<UF71D> \xC7\x4E |0
+<UF71E> \xC7\x4F |0
+<UF71F> \xC7\x50 |0
+<UF720> \xC7\x51 |0
+<UF721> \xC7\x52 |0
+<UF722> \xC7\x53 |0
+<UF723> \xC7\x54 |0
+<UF724> \xC7\x55 |0
+<UF725> \xC7\x56 |0
+<UF726> \xC7\x57 |0
+<UF727> \xC7\x58 |0
+<UF728> \xC7\x59 |0
+<UF729> \xC7\x5A |0
+<UF72A> \xC7\x5B |0
+<UF72B> \xC7\x5C |0
+<UF72C> \xC7\x5D |0
+<UF72D> \xC7\x5E |0
+<UF72E> \xC7\x5F |0
+<UF72F> \xC7\x60 |0
+<UF730> \xC7\x61 |0
+<UF731> \xC7\x62 |0
+<UF732> \xC7\x63 |0
+<UF733> \xC7\x64 |0
+<UF734> \xC7\x65 |0
+<UF735> \xC7\x66 |0
+<UF736> \xC7\x67 |0
+<UF737> \xC7\x68 |0
+<UF738> \xC7\x69 |0
+<UF739> \xC7\x6A |0
+<UF73A> \xC7\x6B |0
+<UF73B> \xC7\x6C |0
+<UF73C> \xC7\x6D |0
+<UF73D> \xC7\x6E |0
+<UF73E> \xC7\x6F |0
+<UF73F> \xC7\x70 |0
+<UF740> \xC7\x71 |0
+<UF741> \xC7\x72 |0
+<UF742> \xC7\x73 |0
+<UF743> \xC7\x74 |0
+<UF744> \xC7\x75 |0
+<UF745> \xC7\x76 |0
+<UF746> \xC7\x77 |0
+<UF747> \xC7\x78 |0
+<UF748> \xC7\x79 |0
+<UF749> \xC7\x7A |0
+<UF74A> \xC7\x7B |0
+<UF74B> \xC7\x7C |0
+<UF74C> \xC7\x7D |0
+<UF74D> \xC7\x7E |0
+<UF74E> \xC7\xA1 |0
+<UF74F> \xC7\xA2 |0
+<UF750> \xC7\xA3 |0
+<UF751> \xC7\xA4 |0
+<UF752> \xC7\xA5 |0
+<UF753> \xC7\xA6 |0
+<UF754> \xC7\xA7 |0
+<UF755> \xC7\xA8 |0
+<UF756> \xC7\xA9 |0
+<UF757> \xC7\xAA |0
+<UF758> \xC7\xAB |0
+<UF759> \xC7\xAC |0
+<UF75A> \xC7\xAD |0
+<UF75B> \xC7\xAE |0
+<UF75C> \xC7\xAF |0
+<UF75D> \xC7\xB0 |0
+<UF75E> \xC7\xB1 |0
+<UF75F> \xC7\xB2 |0
+<UF760> \xC7\xB3 |0
+<UF761> \xC7\xB4 |0
+<UF762> \xC7\xB5 |0
+<UF763> \xC7\xB6 |0
+<UF764> \xC7\xB7 |0
+<UF765> \xC7\xB8 |0
+<UF766> \xC7\xB9 |0
+<UF767> \xC7\xBA |0
+<UF768> \xC7\xBB |0
+<UF769> \xC7\xBC |0
+<UF76A> \xC7\xBD |0
+<UF76B> \xC7\xBE |0
+<UF76C> \xC7\xBF |0
+<UF76D> \xC7\xC0 |0
+<UF76E> \xC7\xC1 |0
+<UF76F> \xC7\xC2 |0
+<UF770> \xC7\xC3 |0
+<UF771> \xC7\xC4 |0
+<UF772> \xC7\xC5 |0
+<UF773> \xC7\xC6 |0
+<UF774> \xC7\xC7 |0
+<UF775> \xC7\xC8 |0
+<UF776> \xC7\xC9 |0
+<UF777> \xC7\xCA |0
+<UF778> \xC7\xCB |0
+<UF779> \xC7\xCC |0
+<UF77A> \xC7\xCD |0
+<UF77B> \xC7\xCE |0
+<UF77C> \xC7\xCF |0
+<UF77D> \xC7\xD0 |0
+<UF77E> \xC7\xD1 |0
+<UF77F> \xC7\xD2 |0
+<UF780> \xC7\xD3 |0
+<UF781> \xC7\xD4 |0
+<UF782> \xC7\xD5 |0
+<UF783> \xC7\xD6 |0
+<UF784> \xC7\xD7 |0
+<UF785> \xC7\xD8 |0
+<UF786> \xC7\xD9 |0
+<UF787> \xC7\xDA |0
+<UF788> \xC7\xDB |0
+<UF789> \xC7\xDC |0
+<UF78A> \xC7\xDD |0
+<UF78B> \xC7\xDE |0
+<UF78C> \xC7\xDF |0
+<UF78D> \xC7\xE0 |0
+<UF78E> \xC7\xE1 |0
+<UF78F> \xC7\xE2 |0
+<UF790> \xC7\xE3 |0
+<UF791> \xC7\xE4 |0
+<UF792> \xC7\xE5 |0
+<UF793> \xC7\xE6 |0
+<UF794> \xC7\xE7 |0
+<UF795> \xC7\xE8 |0
+<UF796> \xC7\xE9 |0
+<UF797> \xC7\xEA |0
+<UF798> \xC7\xEB |0
+<UF799> \xC7\xEC |0
+<UF79A> \xC7\xED |0
+<UF79B> \xC7\xEE |0
+<UF79C> \xC7\xEF |0
+<UF79D> \xC7\xF0 |0
+<UF79E> \xC7\xF1 |0
+<UF79F> \xC7\xF2 |0
+<UF7A0> \xC7\xF3 |0
+<UF7A1> \xC7\xF4 |0
+<UF7A2> \xC7\xF5 |0
+<UF7A3> \xC7\xF6 |0
+<UF7A4> \xC7\xF7 |0
+<UF7A5> \xC7\xF8 |0
+<UF7A6> \xC7\xF9 |0
+<UF7A7> \xC7\xFA |0
+<UF7A8> \xC7\xFB |0
+<UF7A9> \xC7\xFC |0
+<UF7AA> \xC7\xFD |0
+<UF7AB> \xC7\xFE |0
+<UF7AC> \xC8\x40 |0
+<UF7AD> \xC8\x41 |0
+<UF7AE> \xC8\x42 |0
+<UF7AF> \xC8\x43 |0
+<UF7B0> \xC8\x44 |0
+<UF7B1> \xC8\x45 |0
+<UF7B2> \xC8\x46 |0
+<UF7B3> \xC8\x47 |0
+<UF7B4> \xC8\x48 |0
+<UF7B5> \xC8\x49 |0
+<UF7B6> \xC8\x4A |0
+<UF7B7> \xC8\x4B |0
+<UF7B8> \xC8\x4C |0
+<UF7B9> \xC8\x4D |0
+<UF7BA> \xC8\x4E |0
+<UF7BB> \xC8\x4F |0
+<UF7BC> \xC8\x50 |0
+<UF7BD> \xC8\x51 |0
+<UF7BE> \xC8\x52 |0
+<UF7BF> \xC8\x53 |0
+<UF7C0> \xC8\x54 |0
+<UF7C1> \xC8\x55 |0
+<UF7C2> \xC8\x56 |0
+<UF7C3> \xC8\x57 |0
+<UF7C4> \xC8\x58 |0
+<UF7C5> \xC8\x59 |0
+<UF7C6> \xC8\x5A |0
+<UF7C7> \xC8\x5B |0
+<UF7C8> \xC8\x5C |0
+<UF7C9> \xC8\x5D |0
+<UF7CA> \xC8\x5E |0
+<UF7CB> \xC8\x5F |0
+<UF7CC> \xC8\x60 |0
+<UF7CD> \xC8\x61 |0
+<UF7CE> \xC8\x62 |0
+<UF7CF> \xC8\x63 |0
+<UF7D0> \xC8\x64 |0
+<UF7D1> \xC8\x65 |0
+<UF7D2> \xC8\x66 |0
+<UF7D3> \xC8\x67 |0
+<UF7D4> \xC8\x68 |0
+<UF7D5> \xC8\x69 |0
+<UF7D6> \xC8\x6A |0
+<UF7D7> \xC8\x6B |0
+<UF7D8> \xC8\x6C |0
+<UF7D9> \xC8\x6D |0
+<UF7DA> \xC8\x6E |0
+<UF7DB> \xC8\x6F |0
+<UF7DC> \xC8\x70 |0
+<UF7DD> \xC8\x71 |0
+<UF7DE> \xC8\x72 |0
+<UF7DF> \xC8\x73 |0
+<UF7E0> \xC8\x74 |0
+<UF7E1> \xC8\x75 |0
+<UF7E2> \xC8\x76 |0
+<UF7E3> \xC8\x77 |0
+<UF7E4> \xC8\x78 |0
+<UF7E5> \xC8\x79 |0
+<UF7E6> \xC8\x7A |0
+<UF7E7> \xC8\x7B |0
+<UF7E8> \xC8\x7C |0
+<UF7E9> \xC8\x7D |0
+<UF7EA> \xC8\x7E |0
+<UF7EB> \xC8\xA1 |0
+<UF7EC> \xC8\xA2 |0
+<UF7ED> \xC8\xA3 |0
+<UF7EE> \xC8\xA4 |0
+<UF7EF> \xC8\xA5 |0
+<UF7F0> \xC8\xA6 |0
+<UF7F1> \xC8\xA7 |0
+<UF7F2> \xC8\xA8 |0
+<UF7F3> \xC8\xA9 |0
+<UF7F4> \xC8\xAA |0
+<UF7F5> \xC8\xAB |0
+<UF7F6> \xC8\xAC |0
+<UF7F7> \xC8\xAD |0
+<UF7F8> \xC8\xAE |0
+<UF7F9> \xC8\xAF |0
+<UF7FA> \xC8\xB0 |0
+<UF7FB> \xC8\xB1 |0
+<UF7FC> \xC8\xB2 |0
+<UF7FD> \xC8\xB3 |0
+<UF7FE> \xC8\xB4 |0
+<UF7FF> \xC8\xB5 |0
+<UF800> \xC8\xB6 |0
+<UF801> \xC8\xB7 |0
+<UF802> \xC8\xB8 |0
+<UF803> \xC8\xB9 |0
+<UF804> \xC8\xBA |0
+<UF805> \xC8\xBB |0
+<UF806> \xC8\xBC |0
+<UF807> \xC8\xBD |0
+<UF808> \xC8\xBE |0
+<UF809> \xC8\xBF |0
+<UF80A> \xC8\xC0 |0
+<UF80B> \xC8\xC1 |0
+<UF80C> \xC8\xC2 |0
+<UF80D> \xC8\xC3 |0
+<UF80E> \xC8\xC4 |0
+<UF80F> \xC8\xC5 |0
+<UF810> \xC8\xC6 |0
+<UF811> \xC8\xC7 |0
+<UF812> \xC8\xC8 |0
+<UF813> \xC8\xC9 |0
+<UF814> \xC8\xCA |0
+<UF815> \xC8\xCB |0
+<UF816> \xC8\xCC |0
+<UF817> \xC8\xCD |0
+<UF818> \xC8\xCE |0
+<UF819> \xC8\xCF |0
+<UF81A> \xC8\xD0 |0
+<UF81B> \xC8\xD1 |0
+<UF81C> \xC8\xD2 |0
+<UF81D> \xC8\xD3 |0
+<UF81E> \xC8\xD4 |0
+<UF81F> \xC8\xD5 |0
+<UF820> \xC8\xD6 |0
+<UF821> \xC8\xD7 |0
+<UF822> \xC8\xD8 |0
+<UF823> \xC8\xD9 |0
+<UF824> \xC8\xDA |0
+<UF825> \xC8\xDB |0
+<UF826> \xC8\xDC |0
+<UF827> \xC8\xDD |0
+<UF828> \xC8\xDE |0
+<UF829> \xC8\xDF |0
+<UF82A> \xC8\xE0 |0
+<UF82B> \xC8\xE1 |0
+<UF82C> \xC8\xE2 |0
+<UF82D> \xC8\xE3 |0
+<UF82E> \xC8\xE4 |0
+<UF82F> \xC8\xE5 |0
+<UF830> \xC8\xE6 |0
+<UF831> \xC8\xE7 |0
+<UF832> \xC8\xE8 |0
+<UF833> \xC8\xE9 |0
+<UF834> \xC8\xEA |0
+<UF835> \xC8\xEB |0
+<UF836> \xC8\xEC |0
+<UF837> \xC8\xED |0
+<UF838> \xC8\xEE |0
+<UF839> \xC8\xEF |0
+<UF83A> \xC8\xF0 |0
+<UF83B> \xC8\xF1 |0
+<UF83C> \xC8\xF2 |0
+<UF83D> \xC8\xF3 |0
+<UF83E> \xC8\xF4 |0
+<UF83F> \xC8\xF5 |0
+<UF840> \xC8\xF6 |0
+<UF841> \xC8\xF7 |0
+<UF842> \xC8\xF8 |0
+<UF843> \xC8\xF9 |0
+<UF844> \xC8\xFA |0
+<UF845> \xC8\xFB |0
+<UF846> \xC8\xFC |0
+<UF847> \xC8\xFD |0
+<UF848> \xC8\xFE |0
+<UFA0C> \xC9\x4A |0
+<UFA0D> \xDD\xFC |0
+<UFE30> \xA1\x4A |0
+<UFE31> \xA1\x57 |0
+<UFE33> \xA1\x59 |0
+<UFE34> \xA1\x5B |0
+<UFE35> \xA1\x5F |0
+<UFE36> \xA1\x60 |0
+<UFE37> \xA1\x63 |0
+<UFE38> \xA1\x64 |0
+<UFE39> \xA1\x67 |0
+<UFE3A> \xA1\x68 |0
+<UFE3B> \xA1\x6B |0
+<UFE3C> \xA1\x6C |0
+<UFE3D> \xA1\x6F |0
+<UFE3E> \xA1\x70 |0
+<UFE3F> \xA1\x73 |0
+<UFE40> \xA1\x74 |0
+<UFE41> \xA1\x77 |0
+<UFE42> \xA1\x78 |0
+<UFE43> \xA1\x7B |0
+<UFE44> \xA1\x7C |0
+<UFE49> \xA1\xC6 |0
+<UFE4A> \xA1\xC7 |0
+<UFE4B> \xA1\xCA |0
+<UFE4C> \xA1\xCB |0
+<UFE4D> \xA1\xC8 |0
+<UFE4E> \xA1\xC9 |0
+<UFE4F> \xA1\x5C |0
+<UFE50> \xA1\x4D |0
+<UFE51> \xA1\x4E |0
+<UFE52> \xA1\x4F |0
+<UFE54> \xA1\x51 |0
+<UFE55> \xA1\x52 |0
+<UFE56> \xA1\x53 |0
+<UFE57> \xA1\x54 |0
+<UFE59> \xA1\x7D |0
+<UFE5A> \xA1\x7E |0
+<UFE5B> \xA1\xA1 |0
+<UFE5C> \xA1\xA2 |0
+<UFE5D> \xA1\xA3 |0
+<UFE5E> \xA1\xA4 |0
+<UFE5F> \xA1\xCC |0
+<UFE60> \xA1\xCD |0
+<UFE61> \xA1\xCE |0
+<UFE62> \xA1\xDE |0
+<UFE63> \xA1\xDF |0
+<UFE64> \xA1\xE0 |0
+<UFE65> \xA1\xE1 |0
+<UFE66> \xA1\xE2 |0
+<UFE68> \xA2\x42 |0
+<UFE69> \xA2\x4C |0
+<UFE6A> \xA2\x4D |0
+<UFE6B> \xA2\x4E |0
+<UFF01> \xA1\x49 |0
+<UFF03> \xA1\xAD |0
+<UFF04> \xA2\x43 |0
+<UFF05> \xA2\x48 |0
+<UFF06> \xA1\xAE |0
+<UFF08> \xA1\x5D |0
+<UFF09> \xA1\x5E |0
+<UFF0A> \xA1\xAF |0
+<UFF0B> \xA1\xCF |0
+<UFF0C> \xA1\x41 |0
+<UFF0D> \xA1\xD0 |0
+<UFF0E> \xA1\x44 |0
+<UFF0F> \xA1\xFE |0
+<UFF10> \xA2\xAF |0
+<UFF11> \xA2\xB0 |0
+<UFF12> \xA2\xB1 |0
+<UFF13> \xA2\xB2 |0
+<UFF14> \xA2\xB3 |0
+<UFF15> \xA2\xB4 |0
+<UFF16> \xA2\xB5 |0
+<UFF17> \xA2\xB6 |0
+<UFF18> \xA2\xB7 |0
+<UFF19> \xA2\xB8 |0
+<UFF1A> \xA1\x47 |0
+<UFF1B> \xA1\x46 |0
+<UFF1C> \xA1\xD5 |0
+<UFF1D> \xA1\xD7 |0
+<UFF1E> \xA1\xD6 |0
+<UFF1F> \xA1\x48 |0
+<UFF20> \xA2\x49 |0
+<UFF21> \xA2\xCF |0
+<UFF22> \xA2\xD0 |0
+<UFF23> \xA2\xD1 |0
+<UFF24> \xA2\xD2 |0
+<UFF25> \xA2\xD3 |0
+<UFF26> \xA2\xD4 |0
+<UFF27> \xA2\xD5 |0
+<UFF28> \xA2\xD6 |0
+<UFF29> \xA2\xD7 |0
+<UFF2A> \xA2\xD8 |0
+<UFF2B> \xA2\xD9 |0
+<UFF2C> \xA2\xDA |0
+<UFF2D> \xA2\xDB |0
+<UFF2E> \xA2\xDC |0
+<UFF2F> \xA2\xDD |0
+<UFF30> \xA2\xDE |0
+<UFF31> \xA2\xDF |0
+<UFF32> \xA2\xE0 |0
+<UFF33> \xA2\xE1 |0
+<UFF34> \xA2\xE2 |0
+<UFF35> \xA2\xE3 |0
+<UFF36> \xA2\xE4 |0
+<UFF37> \xA2\xE5 |0
+<UFF38> \xA2\xE6 |0
+<UFF39> \xA2\xE7 |0
+<UFF3A> \xA2\xE8 |0
+<UFF3C> \xA2\x40 |0
+<UFF3F> \xA1\xC4 |0
+<UFF41> \xA2\xE9 |0
+<UFF42> \xA2\xEA |0
+<UFF43> \xA2\xEB |0
+<UFF44> \xA2\xEC |0
+<UFF45> \xA2\xED |0
+<UFF46> \xA2\xEE |0
+<UFF47> \xA2\xEF |0
+<UFF48> \xA2\xF0 |0
+<UFF49> \xA2\xF1 |0
+<UFF4A> \xA2\xF2 |0
+<UFF4B> \xA2\xF3 |0
+<UFF4C> \xA2\xF4 |0
+<UFF4D> \xA2\xF5 |0
+<UFF4E> \xA2\xF6 |0
+<UFF4F> \xA2\xF7 |0
+<UFF50> \xA2\xF8 |0
+<UFF51> \xA2\xF9 |0
+<UFF52> \xA2\xFA |0
+<UFF53> \xA2\xFB |0
+<UFF54> \xA2\xFC |0
+<UFF55> \xA2\xFD |0
+<UFF56> \xA2\xFE |0
+<UFF57> \xA3\x40 |0
+<UFF58> \xA3\x41 |0
+<UFF59> \xA3\x42 |0
+<UFF5A> \xA3\x43 |0
+<UFF5B> \xA1\x61 |0
+<UFF5C> \xA1\x55 |0
+<UFF5D> \xA1\x62 |0
+<UFF5E> \xA1\xE3 |0
+<UFFE0> \xA2\x46 |0
+<UFFE1> \xA2\x47 |0
+<UFFE3> \xA1\xC3 |0
+<UFFE5> \xA2\x44 |0
+#
+END CHARMAP
+#
diff --git a/enc/trans/ucm/glibc-BIG5HKSCS-2.3.3.ucm b/enc/trans/ucm/glibc-BIG5HKSCS-2.3.3.ucm
new file mode 100644
index 0000000000..ca8155b4eb
--- /dev/null
+++ b/enc/trans/ucm/glibc-BIG5HKSCS-2.3.3.ucm
@@ -0,0 +1,18332 @@
+# ***************************************************************************
+# *
+# * Copyright (C) 2001-2005, International Business Machines
+# * Corporation and others. All Rights Reserved.
+# *
+# ***************************************************************************
+#
+# File created on Aug 10 10:03 PDT 2005
+#
+# File created by genucm tool.
+# from glibc 2.3.3 using Linux with glibc 2.3.3
+#
+# Table Version : 1.0
+# The 1st column is the Unicode scalar value.
+# The 2nd column is the codepage byte sequence.
+# The 3rd column is the fallback indicator.
+# The fallback indicator can have one of the following values:
+# |0 for exact 1-1 roundtrip mapping
+# |1 for the best fallback codepage byte sequence.
+# |2 for the substitution character
+# |3 for the best reverse fallback Unicode scaler value
+#
+# Encoding description:
+# Encoding name: BIG5HKSCS
+#
+<code_set_name> "glibc-BIG5HKSCS-2.3.3"
+<mb_cur_max> 2
+<mb_cur_min> 1
+<uconv_class> "MBCS"
+<subchar> \x1A
+<icu:charsetFamily> "ASCII"
+# Suggested ICU specific alias information
+#<icu:alias> "glibc-BIG5HKSCS_VPUA"
+
+
+# The following was the generated state table.
+# This does not account for unassigned characters
+#<icu:state> 0-80, 88-8b:1, 8d-fe:1
+#<icu:state> 40-7e, a1-fe
+#
+CHARMAP
+#
+#UNICODE BIG5HKSCS
+#_______ _________
+<U0000> \x00 |0
+<U0001> \x01 |0
+<U0002> \x02 |0
+<U0003> \x03 |0
+<U0004> \x04 |0
+<U0005> \x05 |0
+<U0006> \x06 |0
+<U0007> \x07 |0
+<U0008> \x08 |0
+<U0009> \x09 |0
+<U000A> \x0A |0
+<U000B> \x0B |0
+<U000C> \x0C |0
+<U000D> \x0D |0
+<U000E> \x0E |0
+<U000F> \x0F |0
+<U0010> \x10 |0
+<U0011> \x11 |0
+<U0012> \x12 |0
+<U0013> \x13 |0
+<U0014> \x14 |0
+<U0015> \x15 |0
+<U0016> \x16 |0
+<U0017> \x17 |0
+<U0018> \x18 |0
+<U0019> \x19 |0
+<U001A> \x1A |0
+<U001B> \x1B |0
+<U001C> \x1C |0
+<U001D> \x1D |0
+<U001E> \x1E |0
+<U001F> \x1F |0
+<U0020> \x20 |0
+<U0021> \x21 |0
+<U0022> \x22 |0
+<U0023> \x23 |0
+<U0024> \x24 |0
+<U0025> \x25 |0
+<U0026> \x26 |0
+<U0027> \x27 |0
+<U0028> \x28 |0
+<U0029> \x29 |0
+<U002A> \x2A |0
+<U002B> \x2B |0
+<U002C> \x2C |0
+<U002D> \x2D |0
+<U002E> \x2E |0
+<U002F> \x2F |0
+<U0030> \x30 |0
+<U0031> \x31 |0
+<U0032> \x32 |0
+<U0033> \x33 |0
+<U0034> \x34 |0
+<U0035> \x35 |0
+<U0036> \x36 |0
+<U0037> \x37 |0
+<U0038> \x38 |0
+<U0039> \x39 |0
+<U003A> \x3A |0
+<U003B> \x3B |0
+<U003C> \x3C |0
+<U003D> \x3D |0
+<U003E> \x3E |0
+<U003F> \x3F |0
+<U0040> \x40 |0
+<U0041> \x41 |0
+<U0042> \x42 |0
+<U0043> \x43 |0
+<U0044> \x44 |0
+<U0045> \x45 |0
+<U0046> \x46 |0
+<U0047> \x47 |0
+<U0048> \x48 |0
+<U0049> \x49 |0
+<U004A> \x4A |0
+<U004B> \x4B |0
+<U004C> \x4C |0
+<U004D> \x4D |0
+<U004E> \x4E |0
+<U004F> \x4F |0
+<U0050> \x50 |0
+<U0051> \x51 |0
+<U0052> \x52 |0
+<U0053> \x53 |0
+<U0054> \x54 |0
+<U0055> \x55 |0
+<U0056> \x56 |0
+<U0057> \x57 |0
+<U0058> \x58 |0
+<U0059> \x59 |0
+<U005A> \x5A |0
+<U005B> \x5B |0
+<U005C> \x5C |0
+<U005D> \x5D |0
+<U005E> \x5E |0
+<U005F> \x5F |0
+<U0060> \x60 |0
+<U0061> \x61 |0
+<U0062> \x62 |0
+<U0063> \x63 |0
+<U0064> \x64 |0
+<U0065> \x65 |0
+<U0066> \x66 |0
+<U0067> \x67 |0
+<U0068> \x68 |0
+<U0069> \x69 |0
+<U006A> \x6A |0
+<U006B> \x6B |0
+<U006C> \x6C |0
+<U006D> \x6D |0
+<U006E> \x6E |0
+<U006F> \x6F |0
+<U0070> \x70 |0
+<U0071> \x71 |0
+<U0072> \x72 |0
+<U0073> \x73 |0
+<U0074> \x74 |0
+<U0075> \x75 |0
+<U0076> \x76 |0
+<U0077> \x77 |0
+<U0078> \x78 |0
+<U0079> \x79 |0
+<U007A> \x7A |0
+<U007B> \x7B |0
+<U007C> \x7C |0
+<U007D> \x7D |0
+<U007E> \x7E |0
+<U007F> \x7F |0
+#<U0080> \x80 |0
+<U00A2> \xA2\x46 |0
+<U00A3> \xA2\x47 |0
+<U00A5> \xA2\x44 |0
+<U00A7> \xA1\xB1 |0
+<U00A8> \xC6\xD8 |0
+<U00B0> \xA2\x58 |0
+<U00B1> \xA1\xD3 |0
+<U00B7> \xA1\x50 |0
+<U00C0> \x88\x59 |0
+<U00C1> \x88\x57 |0
+<U00C8> \x88\x5D |0
+<U00C9> \x88\x5B |0
+<U00CA> \x88\x66 |0
+<U00D2> \x88\x61 |0
+<U00D3> \x88\x5F |0
+<U00D7> \xA1\xD1 |0
+<U00E0> \x88\x6A |0
+<U00E1> \x88\x68 |0
+<U00E8> \x88\x6F |0
+<U00E9> \x88\x6D |0
+<U00EA> \x88\xA7 |0
+<U00EC> \x88\x73 |0
+<U00ED> \x88\x71 |0
+<U00F2> \x88\x77 |0
+<U00F3> \x88\x75 |0
+<U00F7> \xA1\xD2 |0
+<U00F8> \xC8\xFB |0
+<U00F9> \x88\x7B |0
+<U00FA> \x88\x79 |0
+<U00FC> \x88\xA2 |0
+<U0100> \x88\x56 |0
+<U0101> \x88\x67 |0
+<U0112> \x88\x5A |0
+<U0113> \x88\x6C |0
+<U011A> \x88\x5C |0
+<U011B> \x88\x6E |0
+<U012B> \x88\x70 |0
+<U014B> \xC8\xFC |0
+<U014C> \x88\x5E |0
+<U014D> \x88\x74 |0
+<U0153> \xC8\xFA |0
+<U016B> \x88\x78 |0
+<U01CD> \x88\x58 |0
+<U01CE> \x88\x69 |0
+<U01D0> \x88\x72 |0
+<U01D1> \x88\x60 |0
+<U01D2> \x88\x76 |0
+<U01D4> \x88\x7A |0
+<U01D6> \x88\x7C |0
+<U01D8> \x88\x7D |0
+<U01DA> \x88\x7E |0
+<U01DC> \x88\xA1 |0
+<U0250> \xC8\xF6 |0
+<U0251> \x88\x6B |0
+<U0254> \xC8\xF8 |0
+<U025B> \xC8\xF7 |0
+<U0261> \x88\xA8 |0
+<U026A> \xC8\xFE |0
+<U0275> \xC8\xF9 |0
+<U0283> \xC8\xF5 |0
+<U028A> \xC8\xFD |0
+<U02C6> \xC6\xD9 |0
+<U02C7> \xA3\xBE |0
+<U02C9> \xA3\xBC |0
+<U02CA> \xA3\xBD |0
+<U02CB> \xA3\xBF |0
+<U02D9> \xA3\xBB |0
+<U0391> \xA3\x44 |0
+<U0392> \xA3\x45 |0
+<U0393> \xA3\x46 |0
+<U0394> \xA3\x47 |0
+<U0395> \xA3\x48 |0
+<U0396> \xA3\x49 |0
+<U0397> \xA3\x4A |0
+<U0398> \xA3\x4B |0
+<U0399> \xA3\x4C |0
+<U039A> \xA3\x4D |0
+<U039B> \xA3\x4E |0
+<U039C> \xA3\x4F |0
+<U039D> \xA3\x50 |0
+<U039E> \xA3\x51 |0
+<U039F> \xA3\x52 |0
+<U03A0> \xA3\x53 |0
+<U03A1> \xA3\x54 |0
+<U03A3> \xA3\x55 |0
+<U03A4> \xA3\x56 |0
+<U03A5> \xA3\x57 |0
+<U03A6> \xA3\x58 |0
+<U03A7> \xA3\x59 |0
+<U03A8> \xA3\x5A |0
+<U03A9> \xA3\x5B |0
+<U03B1> \xA3\x5C |0
+<U03B2> \xA3\x5D |0
+<U03B3> \xA3\x5E |0
+<U03B4> \xA3\x5F |0
+<U03B5> \xA3\x60 |0
+<U03B6> \xA3\x61 |0
+<U03B7> \xA3\x62 |0
+<U03B8> \xA3\x63 |0
+<U03B9> \xA3\x64 |0
+<U03BA> \xA3\x65 |0
+<U03BB> \xA3\x66 |0
+<U03BC> \xA3\x67 |0
+<U03BD> \xA3\x68 |0
+<U03BE> \xA3\x69 |0
+<U03BF> \xA3\x6A |0
+<U03C0> \xA3\x6B |0
+<U03C1> \xA3\x6C |0
+<U03C3> \xA3\x6D |0
+<U03C4> \xA3\x6E |0
+<U03C5> \xA3\x6F |0
+<U03C6> \xA3\x70 |0
+<U03C7> \xA3\x71 |0
+<U03C8> \xA3\x72 |0
+<U03C9> \xA3\x73 |0
+<U0401> \xC7\xF9 |0
+<U0410> \xC7\xF3 |0
+<U0411> \xC7\xF4 |0
+<U0412> \xC7\xF5 |0
+<U0413> \xC7\xF6 |0
+<U0414> \xC7\xF7 |0
+<U0415> \xC7\xF8 |0
+<U0416> \xC7\xFA |0
+<U0417> \xC7\xFB |0
+<U0418> \xC7\xFC |0
+<U0419> \xC7\xFD |0
+<U041A> \xC7\xFE |0
+<U041B> \xC8\x40 |0
+<U041C> \xC8\x41 |0
+<U041D> \xC8\x42 |0
+<U041E> \xC8\x43 |0
+<U041F> \xC8\x44 |0
+<U0420> \xC8\x45 |0
+<U0421> \xC8\x46 |0
+<U0422> \xC8\x47 |0
+<U0423> \xC8\x48 |0
+<U0424> \xC8\x49 |0
+<U0425> \xC8\x4A |0
+<U0426> \xC8\x4B |0
+<U0427> \xC8\x4C |0
+<U0428> \xC8\x4D |0
+<U0429> \xC8\x4E |0
+<U042A> \xC8\x4F |0
+<U042B> \xC8\x50 |0
+<U042C> \xC8\x51 |0
+<U042D> \xC8\x52 |0
+<U042E> \xC8\x53 |0
+<U042F> \xC8\x54 |0
+<U0430> \xC8\x55 |0
+<U0431> \xC8\x56 |0
+<U0432> \xC8\x57 |0
+<U0433> \xC8\x58 |0
+<U0434> \xC8\x59 |0
+<U0435> \xC8\x5A |0
+<U0436> \xC8\x5C |0
+<U0437> \xC8\x5D |0
+<U0438> \xC8\x5E |0
+<U0439> \xC8\x5F |0
+<U043A> \xC8\x60 |0
+<U043B> \xC8\x61 |0
+<U043C> \xC8\x62 |0
+<U043D> \xC8\x63 |0
+<U043E> \xC8\x64 |0
+<U043F> \xC8\x65 |0
+<U0440> \xC8\x66 |0
+<U0441> \xC8\x67 |0
+<U0442> \xC8\x68 |0
+<U0443> \xC8\x69 |0
+<U0444> \xC8\x6A |0
+<U0445> \xC8\x6B |0
+<U0446> \xC8\x6C |0
+<U0447> \xC8\x6D |0
+<U0448> \xC8\x6E |0
+<U0449> \xC8\x6F |0
+<U044A> \xC8\x70 |0
+<U044B> \xC8\x71 |0
+<U044C> \xC8\x72 |0
+<U044D> \xC8\x73 |0
+<U044E> \xC8\x74 |0
+<U044F> \xC8\x75 |0
+<U0451> \xC8\x5B |0
+<U1EBE> \x88\x63 |0
+<U1EBF> \x88\xA4 |0
+<U1EC0> \x88\x65 |0
+<U1EC1> \x88\xA6 |0
+<U2013> \xA1\x56 |0
+<U2014> \xA1\x58 |0
+<U2018> \xA1\xA5 |0
+<U2019> \xA1\xA6 |0
+<U201C> \xA1\xA7 |0
+<U201D> \xA1\xA8 |0
+<U2022> \xA1\x45 |0
+<U2025> \xA1\x4C |0
+<U2026> \xA1\x4B |0
+<U2032> \xA1\xAC |0
+<U2035> \xA1\xAB |0
+<U203B> \xA1\xB0 |0
+<U203E> \xA1\xC2 |0
+<U2103> \xA2\x4A |0
+<U2105> \xA1\xC1 |0
+<U2109> \xA2\x4B |0
+<U2116> \xC8\xD2 |0
+<U2121> \xC8\xD3 |0
+<U2160> \xA2\xB9 |0
+<U2161> \xA2\xBA |0
+<U2162> \xA2\xBB |0
+<U2163> \xA2\xBC |0
+<U2164> \xA2\xBD |0
+<U2165> \xA2\xBE |0
+<U2166> \xA2\xBF |0
+<U2167> \xA2\xC0 |0
+<U2168> \xA2\xC1 |0
+<U2169> \xA2\xC2 |0
+<U2170> \xC6\xB5 |0
+<U2171> \xC6\xB6 |0
+<U2172> \xC6\xB7 |0
+<U2173> \xC6\xB8 |0
+<U2174> \xC6\xB9 |0
+<U2175> \xC6\xBA |0
+<U2176> \xC6\xBB |0
+<U2177> \xC6\xBC |0
+<U2178> \xC6\xBD |0
+<U2179> \xC6\xBE |0
+<U2190> \xA1\xF6 |0
+<U2191> \xA1\xF4 |0
+<U2192> \xA1\xF7 |0
+<U2193> \xA1\xF5 |0
+<U2196> \xA1\xF8 |0
+<U2197> \xA1\xF9 |0
+<U2198> \xA1\xFB |0
+<U2199> \xA1\xFA |0
+<U21B8> \xC8\x77 |0
+<U21B9> \xC8\x78 |0
+<U21E7> \xC8\x76 |0
+<U221A> \xA1\xD4 |0
+<U221E> \xA1\xDB |0
+<U221F> \xA1\xE8 |0
+<U2220> \xA1\xE7 |0
+<U2223> \xA1\xFD |0
+<U2225> \xA1\xFC |0
+<U2229> \xA1\xE4 |0
+<U222A> \xA1\xE5 |0
+<U222B> \xA1\xEC |0
+<U222E> \xA1\xED |0
+<U2234> \xA1\xEF |0
+<U2235> \xA1\xEE |0
+<U223C> \xA1\xE3 |0
+<U2252> \xA1\xDC |0
+<U2260> \xA1\xDA |0
+<U2261> \xA1\xDD |0
+<U2266> \xA1\xD8 |0
+<U2267> \xA1\xD9 |0
+<U22A5> \xA1\xE6 |0
+<U22BF> \xA1\xE9 |0
+<U2460> \xC6\xA1 |0
+<U2461> \xC6\xA2 |0
+<U2462> \xC6\xA3 |0
+<U2463> \xC6\xA4 |0
+<U2464> \xC6\xA5 |0
+<U2465> \xC6\xA6 |0
+<U2466> \xC6\xA7 |0
+<U2467> \xC6\xA8 |0
+<U2468> \xC6\xA9 |0
+<U2469> \xC6\xAA |0
+<U2474> \xC6\xAB |0
+<U2475> \xC6\xAC |0
+<U2476> \xC6\xAD |0
+<U2477> \xC6\xAE |0
+<U2478> \xC6\xAF |0
+<U2479> \xC6\xB0 |0
+<U247A> \xC6\xB1 |0
+<U247B> \xC6\xB2 |0
+<U247C> \xC6\xB3 |0
+<U247D> \xC6\xB4 |0
+<U2500> \xA2\x77 |0
+<U2502> \xA2\x78 |0
+<U250C> \xA2\x7A |0
+<U2510> \xA2\x7B |0
+<U2514> \xA2\x7C |0
+<U2518> \xA2\x7D |0
+<U251C> \xA2\x75 |0
+<U2524> \xA2\x74 |0
+<U252C> \xA2\x73 |0
+<U2534> \xA2\x72 |0
+<U253C> \xA2\x71 |0
+<U2550> \xF9\xF9 |0
+<U2550> \xA2\xA4 |3
+<U2551> \xF9\xF8 |0
+<U2552> \xF9\xE6 |0
+<U2553> \xF9\xEF |0
+<U2554> \xF9\xDD |0
+<U2555> \xF9\xE8 |0
+<U2556> \xF9\xF1 |0
+<U2557> \xF9\xDF |0
+<U2558> \xF9\xEC |0
+<U2559> \xF9\xF5 |0
+<U255A> \xF9\xE3 |0
+<U255B> \xF9\xEE |0
+<U255C> \xF9\xF7 |0
+<U255D> \xF9\xE5 |0
+<U255E> \xF9\xE9 |0
+<U255E> \xA2\xA5 |3
+<U255F> \xF9\xF2 |0
+<U2560> \xF9\xE0 |0
+<U2561> \xF9\xEB |0
+<U2561> \xA2\xA7 |3
+<U2562> \xF9\xF4 |0
+<U2563> \xF9\xE2 |0
+<U2564> \xF9\xE7 |0
+<U2565> \xF9\xF0 |0
+<U2566> \xF9\xDE |0
+<U2567> \xF9\xED |0
+<U2568> \xF9\xF6 |0
+<U2569> \xF9\xE4 |0
+<U256A> \xF9\xEA |0
+<U256A> \xA2\xA6 |3
+<U256B> \xF9\xF3 |0
+<U256C> \xF9\xE1 |0
+<U256D> \xF9\xFA |0
+<U256D> \xA2\x7E |3
+<U256E> \xF9\xFB |0
+<U256E> \xA2\xA1 |3
+<U256F> \xF9\xFD |0
+<U256F> \xA2\xA3 |3
+<U2570> \xF9\xFC |0
+<U2570> \xA2\xA2 |3
+<U2571> \xA2\xAC |0
+<U2572> \xA2\xAD |0
+<U2573> \xA2\xAE |0
+<U2581> \xA2\x62 |0
+<U2582> \xA2\x63 |0
+<U2583> \xA2\x64 |0
+<U2584> \xA2\x65 |0
+<U2585> \xA2\x66 |0
+<U2586> \xA2\x67 |0
+<U2587> \xA2\x68 |0
+<U2588> \xA2\x69 |0
+<U2589> \xA2\x70 |0
+<U258A> \xA2\x6F |0
+<U258B> \xA2\x6E |0
+<U258C> \xA2\x6D |0
+<U258D> \xA2\x6C |0
+<U258E> \xA2\x6B |0
+<U258F> \xA2\x6A |0
+<U2594> \xA2\x76 |0
+<U2595> \xA2\x79 |0
+<U25A0> \xA1\xBD |0
+<U25A1> \xA1\xBC |0
+<U25B2> \xA1\xB6 |0
+<U25B3> \xA1\xB5 |0
+<U25BC> \xA1\xBF |0
+<U25BD> \xA1\xBE |0
+<U25C6> \xA1\xBB |0
+<U25C7> \xA1\xBA |0
+<U25CB> \xA1\xB3 |0
+<U25CE> \xA1\xB7 |0
+<U25CF> \xA1\xB4 |0
+<U25E2> \xA2\xA8 |0
+<U25E3> \xA2\xA9 |0
+<U25E4> \xA2\xAB |0
+<U25E5> \xA2\xAA |0
+<U2605> \xA1\xB9 |0
+<U2606> \xA1\xB8 |0
+<U2609> \xA1\xF3 |0
+<U2640> \xA1\xF0 |0
+<U2641> \xA1\xF2 |0
+<U2642> \xA1\xF1 |0
+<U273D> \xC6\xE6 |0
+<U2E80> \xC8\xD6 |0
+<U2E84> \xC8\xD7 |0
+<U2E86> \xC8\xD8 |0
+<U2E87> \xC8\xD9 |0
+<U2E88> \xC8\xDA |0
+<U2E8A> \xC8\xDB |0
+<U2E8C> \xC8\xDC |0
+<U2E8D> \xC8\xDD |0
+<U2E95> \xC8\xDE |0
+<U2E9C> \xC8\xDF |0
+<U2E9D> \xC8\xE0 |0
+<U2EA5> \xC8\xE1 |0
+<U2EA7> \xC8\xE2 |0
+<U2EAA> \xC8\xE3 |0
+<U2EAC> \xC8\xE4 |0
+<U2EAE> \xC8\xE5 |0
+<U2EB6> \xC8\xE6 |0
+<U2EBC> \xC8\xE7 |0
+<U2EBE> \xC8\xE8 |0
+<U2EC6> \xC8\xE9 |0
+<U2ECA> \xC8\xEA |0
+<U2ECC> \xC8\xEB |0
+<U2ECD> \xC8\xEC |0
+<U2ECF> \xC8\xED |0
+<U2ED6> \xC8\xEE |0
+<U2ED7> \xC8\xEF |0
+<U2EDE> \xC8\xF0 |0
+<U2EE3> \xC8\xF1 |0
+<U2F33> \xC6\xCD |0
+<U3000> \xA1\x40 |0
+<U3001> \xA1\x42 |0
+<U3002> \xA1\x43 |0
+<U3003> \xA1\xB2 |0
+<U3005> \xC6\xE0 |0
+<U3006> \xC6\xE1 |0
+<U3007> \xC6\xE2 |0
+<U3008> \xA1\x71 |0
+<U3009> \xA1\x72 |0
+<U300A> \xA1\x6D |0
+<U300B> \xA1\x6E |0
+<U300C> \xA1\x75 |0
+<U300D> \xA1\x76 |0
+<U300E> \xA1\x79 |0
+<U300F> \xA1\x7A |0
+<U3010> \xA1\x69 |0
+<U3011> \xA1\x6A |0
+<U3012> \xA2\x45 |0
+<U3014> \xA1\x65 |0
+<U3015> \xA1\x66 |0
+<U301D> \xA1\xA9 |0
+<U301E> \xA1\xAA |0
+<U3021> \xA2\xC3 |0
+<U3022> \xA2\xC4 |0
+<U3023> \xA2\xC5 |0
+<U3024> \xA2\xC6 |0
+<U3025> \xA2\xC7 |0
+<U3026> \xA2\xC8 |0
+<U3027> \xA2\xC9 |0
+<U3028> \xA2\xCA |0
+<U3029> \xA2\xCB |0
+<U3041> \xC6\xE7 |0
+<U3042> \xC6\xE8 |0
+<U3043> \xC6\xE9 |0
+<U3044> \xC6\xEA |0
+<U3045> \xC6\xEB |0
+<U3046> \xC6\xEC |0
+<U3047> \xC6\xED |0
+<U3048> \xC6\xEE |0
+<U3049> \xC6\xEF |0
+<U304A> \xC6\xF0 |0
+<U304B> \xC6\xF1 |0
+<U304C> \xC6\xF2 |0
+<U304D> \xC6\xF3 |0
+<U304E> \xC6\xF4 |0
+<U304F> \xC6\xF5 |0
+<U3050> \xC6\xF6 |0
+<U3051> \xC6\xF7 |0
+<U3052> \xC6\xF8 |0
+<U3053> \xC6\xF9 |0
+<U3054> \xC6\xFA |0
+<U3055> \xC6\xFB |0
+<U3056> \xC6\xFC |0
+<U3057> \xC6\xFD |0
+<U3058> \xC6\xFE |0
+<U3059> \xC7\x40 |0
+<U305A> \xC7\x41 |0
+<U305B> \xC7\x42 |0
+<U305C> \xC7\x43 |0
+<U305D> \xC7\x44 |0
+<U305E> \xC7\x45 |0
+<U305F> \xC7\x46 |0
+<U3060> \xC7\x47 |0
+<U3061> \xC7\x48 |0
+<U3062> \xC7\x49 |0
+<U3063> \xC7\x4A |0
+<U3064> \xC7\x4B |0
+<U3065> \xC7\x4C |0
+<U3066> \xC7\x4D |0
+<U3067> \xC7\x4E |0
+<U3068> \xC7\x4F |0
+<U3069> \xC7\x50 |0
+<U306A> \xC7\x51 |0
+<U306B> \xC7\x52 |0
+<U306C> \xC7\x53 |0
+<U306D> \xC7\x54 |0
+<U306E> \xC7\x55 |0
+<U306F> \xC7\x56 |0
+<U3070> \xC7\x57 |0
+<U3071> \xC7\x58 |0
+<U3072> \xC7\x59 |0
+<U3073> \xC7\x5A |0
+<U3074> \xC7\x5B |0
+<U3075> \xC7\x5C |0
+<U3076> \xC7\x5D |0
+<U3077> \xC7\x5E |0
+<U3078> \xC7\x5F |0
+<U3079> \xC7\x60 |0
+<U307A> \xC7\x61 |0
+<U307B> \xC7\x62 |0
+<U307C> \xC7\x63 |0
+<U307D> \xC7\x64 |0
+<U307E> \xC7\x65 |0
+<U307F> \xC7\x66 |0
+<U3080> \xC7\x67 |0
+<U3081> \xC7\x68 |0
+<U3082> \xC7\x69 |0
+<U3083> \xC7\x6A |0
+<U3084> \xC7\x6B |0
+<U3085> \xC7\x6C |0
+<U3086> \xC7\x6D |0
+<U3087> \xC7\x6E |0
+<U3088> \xC7\x6F |0
+<U3089> \xC7\x70 |0
+<U308A> \xC7\x71 |0
+<U308B> \xC7\x72 |0
+<U308C> \xC7\x73 |0
+<U308D> \xC7\x74 |0
+<U308E> \xC7\x75 |0
+<U308F> \xC7\x76 |0
+<U3090> \xC7\x77 |0
+<U3091> \xC7\x78 |0
+<U3092> \xC7\x79 |0
+<U3093> \xC7\x7A |0
+<U309B> \xC8\xD4 |0
+<U309C> \xC8\xD5 |0
+<U309D> \xC6\xDC |0
+<U309E> \xC6\xDD |0
+<U30A1> \xC7\x7B |0
+<U30A2> \xC7\x7C |0
+<U30A3> \xC7\x7D |0
+<U30A4> \xC7\x7E |0
+<U30A5> \xC7\xA1 |0
+<U30A6> \xC7\xA2 |0
+<U30A7> \xC7\xA3 |0
+<U30A8> \xC7\xA4 |0
+<U30A9> \xC7\xA5 |0
+<U30AA> \xC7\xA6 |0
+<U30AB> \xC7\xA7 |0
+<U30AC> \xC7\xA8 |0
+<U30AD> \xC7\xA9 |0
+<U30AE> \xC7\xAA |0
+<U30AF> \xC7\xAB |0
+<U30B0> \xC7\xAC |0
+<U30B1> \xC7\xAD |0
+<U30B2> \xC7\xAE |0
+<U30B3> \xC7\xAF |0
+<U30B4> \xC7\xB0 |0
+<U30B5> \xC7\xB1 |0
+<U30B6> \xC7\xB2 |0
+<U30B7> \xC7\xB3 |0
+<U30B8> \xC7\xB4 |0
+<U30B9> \xC7\xB5 |0
+<U30BA> \xC7\xB6 |0
+<U30BB> \xC7\xB7 |0
+<U30BC> \xC7\xB8 |0
+<U30BD> \xC7\xB9 |0
+<U30BE> \xC7\xBA |0
+<U30BF> \xC7\xBB |0
+<U30C0> \xC7\xBC |0
+<U30C1> \xC7\xBD |0
+<U30C2> \xC7\xBE |0
+<U30C3> \xC7\xBF |0
+<U30C4> \xC7\xC0 |0
+<U30C5> \xC7\xC1 |0
+<U30C6> \xC7\xC2 |0
+<U30C7> \xC7\xC3 |0
+<U30C8> \xC7\xC4 |0
+<U30C9> \xC7\xC5 |0
+<U30CA> \xC7\xC6 |0
+<U30CB> \xC7\xC7 |0
+<U30CC> \xC7\xC8 |0
+<U30CD> \xC7\xC9 |0
+<U30CE> \xC7\xCA |0
+<U30CF> \xC7\xCB |0
+<U30D0> \xC7\xCC |0
+<U30D1> \xC7\xCD |0
+<U30D2> \xC7\xCE |0
+<U30D3> \xC7\xCF |0
+<U30D4> \xC7\xD0 |0
+<U30D5> \xC7\xD1 |0
+<U30D6> \xC7\xD2 |0
+<U30D7> \xC7\xD3 |0
+<U30D8> \xC7\xD4 |0
+<U30D9> \xC7\xD5 |0
+<U30DA> \xC7\xD6 |0
+<U30DB> \xC7\xD7 |0
+<U30DC> \xC7\xD8 |0
+<U30DD> \xC7\xD9 |0
+<U30DE> \xC7\xDA |0
+<U30DF> \xC7\xDB |0
+<U30E0> \xC7\xDC |0
+<U30E1> \xC7\xDD |0
+<U30E2> \xC7\xDE |0
+<U30E3> \xC7\xDF |0
+<U30E4> \xC7\xE0 |0
+<U30E5> \xC7\xE1 |0
+<U30E6> \xC7\xE2 |0
+<U30E7> \xC7\xE3 |0
+<U30E8> \xC7\xE4 |0
+<U30E9> \xC7\xE5 |0
+<U30EA> \xC7\xE6 |0
+<U30EB> \xC7\xE7 |0
+<U30EC> \xC7\xE8 |0
+<U30ED> \xC7\xE9 |0
+<U30EE> \xC7\xEA |0
+<U30EF> \xC7\xEB |0
+<U30F0> \xC7\xEC |0
+<U30F1> \xC7\xED |0
+<U30F2> \xC7\xEE |0
+<U30F3> \xC7\xEF |0
+<U30F4> \xC7\xF0 |0
+<U30F5> \xC7\xF1 |0
+<U30F6> \xC7\xF2 |0
+<U30FC> \xC6\xE3 |0
+<U30FD> \xC6\xDA |0
+<U30FE> \xC6\xDB |0
+<U3105> \xA3\x74 |0
+<U3106> \xA3\x75 |0
+<U3107> \xA3\x76 |0
+<U3108> \xA3\x77 |0
+<U3109> \xA3\x78 |0
+<U310A> \xA3\x79 |0
+<U310B> \xA3\x7A |0
+<U310C> \xA3\x7B |0
+<U310D> \xA3\x7C |0
+<U310E> \xA3\x7D |0
+<U310F> \xA3\x7E |0
+<U3110> \xA3\xA1 |0
+<U3111> \xA3\xA2 |0
+<U3112> \xA3\xA3 |0
+<U3113> \xA3\xA4 |0
+<U3114> \xA3\xA5 |0
+<U3115> \xA3\xA6 |0
+<U3116> \xA3\xA7 |0
+<U3117> \xA3\xA8 |0
+<U3118> \xA3\xA9 |0
+<U3119> \xA3\xAA |0
+<U311A> \xA3\xAB |0
+<U311B> \xA3\xAC |0
+<U311C> \xA3\xAD |0
+<U311D> \xA3\xAE |0
+<U311E> \xA3\xAF |0
+<U311F> \xA3\xB0 |0
+<U3120> \xA3\xB1 |0
+<U3121> \xA3\xB2 |0
+<U3122> \xA3\xB3 |0
+<U3123> \xA3\xB4 |0
+<U3124> \xA3\xB5 |0
+<U3125> \xA3\xB6 |0
+<U3126> \xA3\xB7 |0
+<U3127> \xA3\xB8 |0
+<U3128> \xA3\xB9 |0
+<U3129> \xA3\xBA |0
+<U3231> \xC8\xD1 |0
+<U32A3> \xA1\xC0 |0
+<U338E> \xA2\x55 |0
+<U338F> \xA2\x56 |0
+<U339C> \xA2\x50 |0
+<U339D> \xA2\x51 |0
+<U339E> \xA2\x52 |0
+<U33A1> \xA2\x54 |0
+<U33C4> \xA2\x57 |0
+<U33CE> \xA2\x53 |0
+<U33D1> \xA1\xEB |0
+<U33D2> \xA1\xEA |0
+<U33D5> \xA2\x4F |0
+<U3435> \x92\x77 |0
+<U3440> \x96\xDF |0
+<U344C> \x89\xD5 |0
+<U3464> \x93\xCD |0
+<U3473> \x9B\xDF |0
+<U347A> \xFA\x68 |0
+<U347D> \x89\xDA |0
+<U347E> \x8F\x59 |0
+<U3493> \x89\xDB |0
+<U3496> \x8F\x5D |0
+<U34A5> \x89\xDC |0
+<U34AF> \x96\xF7 |0
+<U34BC> \x8A\xDA |0
+<U34C1> \x8B\xDC |0
+<U34C8> \x97\xDB |0
+<U34DF> \x9E\x53 |0
+<U34E4> \x9D\xAA |0
+<U34FB> \x9B\xEA |0
+<U3506> \x8A\x6E |0
+<U353E> \x8B\xC8 |0
+<U3551> \x89\xE8 |0
+<U3553> \x89\xEA |0
+<U3561> \xFB\x70 |0
+<U356D> \x89\xED |0
+<U3570> \x94\xDD |0
+<U3572> \x89\xEE |0
+<U3577> \x9E\xB4 |0
+<U3578> \x8A\xD3 |0
+<U3584> \x92\xDB |0
+<U3597> \x94\xDB |0
+<U3598> \x89\xF9 |0
+<U35A1> \xFB\x7A |0
+<U35A5> \x89\xFB |0
+<U35AD> \x9E\xFC |0
+<U35BF> \x89\xFC |0
+<U35C1> \x89\xBF |0
+<U35C5> \x89\xFE |0
+<U35C7> \x89\xE6 |0
+<U35CA> \x9D\x46 |0
+<U35CE> \x9D\xEE |0
+<U35D2> \xA0\x7E |0
+<U35D6> \xA0\x68 |0
+<U35DB> \x98\xE9 |0
+<U35DD> \x8B\x68 |0
+<U35F1> \x8D\xFD |0
+<U35F2> \x8B\xBE |0
+<U35F3> \x9F\xD9 |0
+<U35FB> \x8A\xEB |0
+<U35FE> \x9F\xD7 |0
+<U3609> \x8B\x6A |0
+<U3618> \x9C\x5C |0
+<U361A> \x8B\xB1 |0
+<U3623> \xFB\x5E |0
+<U362D> \x9D\xF3 |0
+<U3635> \xA0\xD0 |0
+<U3639> \xFC\x66 |0
+<U363E> \x92\xE9 |0
+<U3647> \x9A\xEC |0
+<U3648> \x8F\xAB |0
+<U3649> \xFA\x48 |0
+<U364E> \x8E\x45 |0
+<U365F> \x9C\x6F |0
+<U367A> \x9E\xDE |0
+<U3681> \x89\xEF |0
+<U369A> \x96\xE9 |0
+<U36A5> \x9E\xBB |0
+<U36AA> \x94\xDE |0
+<U36AC> \x9E\xB8 |0
+<U36B0> \x97\xBA |0
+<U36B1> \xFB\x65 |0
+<U36B5> \x95\xD6 |0
+<U36B9> \x9C\xBB |0
+<U36BC> \x97\xDA |0
+<U36C1> \x8F\x45 |0
+<U36C3> \xFB\x7D |0
+<U36C4> \x91\x58 |0
+<U36C5> \xFE\x64 |0
+<U36C7> \x98\x56 |0
+<U36C8> \x9B\x4D |0
+<U36D3> \x93\x5B |0
+<U36D4> \x95\xC7 |0
+<U36D6> \x97\xE7 |0
+<U36DD> \x93\x59 |0
+<U36E1> \x91\xF5 |0
+<U36E2> \x97\xB8 |0
+<U36E5> \xFD\xA2 |0
+<U36E6> \xFB\xB6 |0
+<U36F5> \x92\xFA |0
+<U3701> \x93\x57 |0
+<U3703> \x8B\xA6 |0
+<U3708> \xFB\xB9 |0
+<U370A> \x97\xB0 |0
+<U370D> \xFD\xC4 |0
+<U371C> \x9C\xA1 |0
+<U3722> \x91\xF2 |0
+<U3723> \x91\xF9 |0
+<U3725> \x8F\xF1 |0
+<U372C> \x97\x45 |0
+<U372D> \x98\x53 |0
+<U3730> \xFE\x78 |0
+<U3732> \xFB\xC1 |0
+<U3733> \x92\x51 |0
+<U373A> \x9D\xAD |0
+<U3740> \xFD\x6C |0
+<U3743> \xFA\x6B |0
+<U3762> \x9B\xC2 |0
+<U376F> \x9A\x7B |0
+<U3797> \x8B\x60 |0
+<U37A0> \x93\x4B |0
+<U37B9> \x9A\xBD |0
+<U37BE> \x91\xB7 |0
+<U37F2> \x95\xB4 |0
+<U37F8> \xFE\xC5 |0
+<U37FB> \x9E\xF0 |0
+<U380F> \x8D\x64 |0
+<U3819> \x92\x69 |0
+<U3820> \x8D\x67 |0
+<U382D> \xFB\xEA |0
+<U3836> \xFB\xEF |0
+<U3838> \x8D\x68 |0
+<U3863> \x93\xEB |0
+<U38A0> \xFC\x42 |0
+<U38C3> \x91\x66 |0
+<U38CC> \xFA\xCD |0
+<U38D1> \x93\xDD |0
+<U38FA> \x8B\xCC |0
+<U3908> \x8D\x6D |0
+<U3914> \x8D\x6E |0
+<U3927> \x96\xA8 |0
+<U3932> \xFC\xA6 |0
+<U393F> \x8D\x6F |0
+<U394D> \x8D\x70 |0
+<U3963> \xFC\x64 |0
+<U3980> \x90\x60 |0
+<U3989> \x8D\x74 |0
+<U398A> \x97\xC3 |0
+<U3992> \x8A\xD0 |0
+<U3999> \x92\x74 |0
+<U399B> \x9B\xBE |0
+<U39A1> \x9C\xC8 |0
+<U39A4> \x9C\xBA |0
+<U39B8> \x8D\x78 |0
+<U39DC> \x9E\xB9 |0
+<U39E2> \x95\x5A |0
+<U39E5> \x91\xB4 |0
+<U39EC> \x8A\x48 |0
+<U39F8> \x8D\x7D |0
+<U39FB> \x8A\x7D |0
+<U39FE> \x8A\xC2 |0
+<U3A01> \xFD\x4A |0
+<U3A03> \x8D\xA1 |0
+<U3A06> \x8A\xD1 |0
+<U3A17> \xFC\xB4 |0
+<U3A18> \x8B\x47 |0
+<U3A29> \x93\xA4 |0
+<U3A2A> \x9E\xDA |0
+<U3A34> \x8A\x51 |0
+<U3A4B> \x8D\xA6 |0
+<U3A52> \x9E\xC5 |0
+<U3A57> \xFC\xC4 |0
+<U3A5C> \xA0\x78 |0
+<U3A5E> \x94\xB5 |0
+<U3A66> \xFC\xC2 |0
+<U3A67> \x8A\x6B |0
+<U3A97> \x8D\xAB |0
+<U3AAB> \xFA\xE8 |0
+<U3ABD> \x8D\xAD |0
+<U3ADE> \xFC\x49 |0
+<U3AE0> \x93\xC1 |0
+<U3AF0> \x90\x6F |0
+<U3AF2> \x8D\xB0 |0
+<U3AFB> \x94\x7E |0
+<U3B0E> \x90\xFA |0
+<U3B19> \x94\x79 |0
+<U3B22> \x8D\xB2 |0
+<U3B2B> \xFC\xEE |0
+<U3B39> \x99\x7B |0
+<U3B42> \x8D\xB4 |0
+<U3B58> \x8D\xB7 |0
+<U3B60> \x91\xB3 |0
+<U3B71> \x8D\xBB |0
+<U3B72> \x8D\xBA |0
+<U3B7B> \x8D\xBC |0
+<U3B7C> \x90\x44 |0
+<U3B80> \xFD\x4C |0
+<U3B96> \x93\xE4 |0
+<U3B99> \x93\xE0 |0
+<U3BA1> \xFD\x53 |0
+<U3BBC> \x8D\xC3 |0
+<U3BBE> \x9B\xB8 |0
+<U3BC2> \xFB\xF0 |0
+<U3BC4> \x93\xE9 |0
+<U3BD7> \x93\xF6 |0
+<U3BDD> \x8D\xC5 |0
+<U3BEC> \x8D\xCA |0
+<U3BF2> \x8D\xCC |0
+<U3BF3> \xFD\x5D |0
+<U3BF4> \x93\xB5 |0
+<U3C0D> \xFD\x61 |0
+<U3C11> \x9C\xF8 |0
+<U3C15> \x92\x52 |0
+<U3C18> \xA0\xE8 |0
+<U3C54> \x9C\xA5 |0
+<U3CCB> \x8D\xD6 |0
+<U3CCD> \x97\xC0 |0
+<U3CD1> \xA0\xDE |0
+<U3CD6> \x97\xD2 |0
+<U3CDC> \xFA\xA5 |0
+<U3CEB> \xFD\xA3 |0
+<U3CEF> \x8D\xDB |0
+<U3D13> \x8E\xAF |0
+<U3D1D> \x91\xB5 |0
+<U3D32> \xFD\x49 |0
+<U3D3B> \xFD\xD1 |0
+<U3D46> \x8D\xEB |0
+<U3D4C> \x97\xC6 |0
+<U3D4E> \xFD\xCE |0
+<U3D51> \x90\xFC |0
+<U3D5F> \xFC\x59 |0
+<U3D62> \x96\xD6 |0
+<U3D69> \x97\xC5 |0
+<U3D6A> \x8D\xEF |0
+<U3D6F> \x97\xD7 |0
+<U3D75> \x8D\xF0 |0
+<U3D7D> \x96\xA6 |0
+<U3D85> \xFB\xBF |0
+<U3D8A> \x8D\xF3 |0
+<U3D8F> \x94\x49 |0
+<U3D91> \x8D\xF5 |0
+<U3DA5> \x98\x72 |0
+<U3DAD> \x8E\x6B |0
+<U3DB4> \xFA\xFD |0
+<U3DBF> \x8F\x50 |0
+<U3DC6> \x9D\xCC |0
+<U3DC7> \xFC\x65 |0
+<U3DCC> \x99\x6E |0
+<U3DCD> \x94\xA1 |0
+<U3DD3> \x8F\x63 |0
+<U3DDB> \xA0\xDA |0
+<U3DE7> \x92\x53 |0
+<U3DE8> \xFD\xE9 |0
+<U3DEB> \x9D\xB5 |0
+<U3DF3> \x98\x79 |0
+<U3DF7> \x9D\x5D |0
+<U3DFC> \x8D\x63 |0
+<U3DFD> \x96\x69 |0
+<U3E06> \x9F\x70 |0
+<U3E40> \xFC\x6A |0
+<U3E43> \x8A\xC7 |0
+<U3E48> \x89\xD7 |0
+<U3E55> \xFE\x4D |0
+<U3E74> \x9E\xDD |0
+<U3EA8> \xFE\xFB |0
+<U3EA9> \x98\xBC |0
+<U3EAA> \xFA\xCC |0
+<U3EAD> \x95\xB0 |0
+<U3EB1> \x94\x64 |0
+<U3EB8> \x93\x6F |0
+<U3EBF> \x94\xB9 |0
+<U3EC2> \x95\xEC |0
+<U3EC7> \x91\xEE |0
+<U3ECA> \x98\xC3 |0
+<U3ECC> \x95\xF6 |0
+<U3ED0> \x8F\xFD |0
+<U3ED1> \x98\xC5 |0
+<U3ED6> \x97\x66 |0
+<U3ED7> \xFE\x6E |0
+<U3EDA> \x97\xDD |0
+<U3EDE> \x92\xD2 |0
+<U3EE1> \x97\x61 |0
+<U3EE2> \x98\xCB |0
+<U3EE7> \x95\xF0 |0
+<U3EE9> \x97\x5D |0
+<U3EEB> \x91\xE3 |0
+<U3EF0> \x98\xCC |0
+<U3EF3> \x94\x69 |0
+<U3EF4> \x98\xCD |0
+<U3EFA> \x98\xCE |0
+<U3EFC> \x95\xFC |0
+<U3EFF> \x94\xA3 |0
+<U3F00> \x96\x62 |0
+<U3F04> \xFE\xB6 |0
+<U3F06> \x94\x63 |0
+<U3F0E> \x98\xD0 |0
+<U3F53> \x98\xD1 |0
+<U3F58> \x94\x75 |0
+<U3F59> \xFA\xE0 |0
+<U3F63> \x94\x72 |0
+<U3F7C> \x98\xD6 |0
+<U3F93> \x8A\xF0 |0
+<U3FC0> \x98\xD9 |0
+<U3FD7> \x98\xDB |0
+<U3FDC> \x98\xDD |0
+<U3FE5> \x98\xA8 |0
+<U3FED> \x8A\x6D |0
+<U3FF9> \x8A\xFB |0
+<U3FFA> \x8A\xAE |0
+<U4004> \xFB\xC9 |0
+<U401D> \x98\xE4 |0
+<U4039> \x98\xE6 |0
+<U4045> \x98\xE8 |0
+<U4053> \x8A\x4D |0
+<U4057> \x92\x57 |0
+<U4062> \x95\xDF |0
+<U4065> \xA0\xAC |0
+<U406A> \x98\xEB |0
+<U406F> \x98\xEC |0
+<U40A8> \x98\xF4 |0
+<U40BB> \x8A\xB8 |0
+<U40BF> \x9E\xE7 |0
+<U40C8> \x94\xBC |0
+<U40D8> \xFC\xD1 |0
+<U40DF> \x9C\xC6 |0
+<U40FA> \x9E\x7E |0
+<U4103> \x98\xFE |0
+<U4104> \xFD\xE8 |0
+<U4109> \x99\x40 |0
+<U410E> \x94\xC9 |0
+<U4132> \x94\xD3 |0
+<U4167> \x99\x46 |0
+<U416C> \x90\xC0 |0
+<U416E> \x94\xD1 |0
+<U417F> \x95\x73 |0
+<U4190> \x93\xC2 |0
+<U41B2> \x99\x48 |0
+<U41C4> \x99\x4B |0
+<U41CA> \x8E\x55 |0
+<U41CF> \x99\x4E |0
+<U41DB> \x8E\xFE |0
+<U41EF> \x8E\x59 |0
+<U41F9> \x94\xEC |0
+<U4211> \x94\xEF |0
+<U4240> \x8F\x74 |0
+<U4260> \x99\x55 |0
+<U426A> \x95\x44 |0
+<U427A> \x99\x56 |0
+<U428C> \x99\x59 |0
+<U4294> \x99\x5B |0
+<U42B5> \xFA\x45 |0
+<U42B9> \x90\xB7 |0
+<U42BC> \x97\x43 |0
+<U42F4> \x95\xCD |0
+<U42FB> \x97\xC9 |0
+<U42FC> \xFD\x50 |0
+<U432B> \x8E\xB9 |0
+<U436E> \x95\xC6 |0
+<U4397> \x99\x67 |0
+<U43BA> \x8A\xB9 |0
+<U43C1> \x8D\xFC |0
+<U43D9> \x8A\x76 |0
+<U43DF> \x9D\x51 |0
+<U43ED> \x99\x73 |0
+<U43F2> \x9D\x4F |0
+<U4401> \x99\x7A |0
+<U4402> \x95\x64 |0
+<U4413> \x99\xA1 |0
+<U4425> \x99\xA5 |0
+<U442D> \x99\xA7 |0
+<U447A> \x8E\xED |0
+<U448F> \x99\xAD |0
+<U449F> \x94\x6E |0
+<U44A0> \x8F\x70 |0
+<U44A2> \xFA\xD0 |0
+<U44B0> \x99\xB3 |0
+<U44B7> \xA0\x53 |0
+<U44C0> \x96\x5C |0
+<U44C5> \xFD\x7A |0
+<U44CE> \x97\xFE |0
+<U44DD> \x92\xBD |0
+<U44DF> \x97\xFD |0
+<U44E4> \x8F\x64 |0
+<U44E9> \xFC\xF7 |0
+<U44EA> \x95\x62 |0
+<U44EB> \x97\xCD |0
+<U44EC> \x9E\x64 |0
+<U44F4> \x92\x4C |0
+<U4503> \x8E\xC9 |0
+<U4504> \x99\xBC |0
+<U4509> \x9D\xA5 |0
+<U450B> \x8F\x54 |0
+<U4516> \x8F\x7C |0
+<U451D> \x8E\xA2 |0
+<U4527> \x8F\x7A |0
+<U452E> \x97\xAE |0
+<U4533> \x96\xC8 |0
+<U453B> \x99\xC3 |0
+<U453D> \x90\xD6 |0
+<U453F> \x9C\xBE |0
+<U4543> \x8F\x76 |0
+<U4551> \x94\x70 |0
+<U4552> \xFB\x4B |0
+<U4555> \xFD\xCA |0
+<U455C> \x8E\xC7 |0
+<U4562> \xA0\xF9 |0
+<U456A> \x8F\xA9 |0
+<U4577> \x99\xC7 |0
+<U4585> \x90\xD7 |0
+<U45E9> \x9E\xDF |0
+<U4606> \x99\xCE |0
+<U460F> \x8F\xBA |0
+<U4615> \x8F\xEB |0
+<U4617> \x99\xCF |0
+<U465B> \x8F\xC2 |0
+<U467A> \x92\xC9 |0
+<U4680> \x97\xDC |0
+<U46CF> \x95\xB3 |0
+<U46D0> \x9C\x79 |0
+<U46F5> \x95\xB2 |0
+<U4713> \x8F\xDB |0
+<U4718> \x9B\xE3 |0
+<U474E> \x9E\x7A |0
+<U477C> \x9B\xEE |0
+<U4798> \x99\xDE |0
+<U47A6> \xFA\xFA |0
+<U47B6> \x9E\xE5 |0
+<U47D5> \x8A\x52 |0
+<U47ED> \x99\xE1 |0
+<U47F4> \x8A\x67 |0
+<U4800> \x8B\xB5 |0
+<U480B> \x8A\xAC |0
+<U4837> \x99\xE9 |0
+<U485D> \xFB\xCA |0
+<U4871> \x97\xDE |0
+<U489B> \x95\xD1 |0
+<U48AD> \x99\xF5 |0
+<U48AE> \xFC\x4A |0
+<U48D0> \x9B\xA9 |0
+<U48DD> \xFB\xDC |0
+<U48ED> \xFE\x56 |0
+<U48F3> \x9E\xA4 |0
+<U48FA> \x9D\x49 |0
+<U4906> \x95\xDB |0
+<U4911> \x89\xC5 |0
+<U491E> \x99\xF8 |0
+<U4925> \x96\x64 |0
+<U492A> \x90\x55 |0
+<U492D> \x96\xD4 |0
+<U4935> \x97\x7C |0
+<U493C> \x96\x4D |0
+<U493E> \x97\xE1 |0
+<U4945> \x9A\x48 |0
+<U4951> \x9A\x49 |0
+<U4953> \xFE\x7D |0
+<U4965> \x90\xAA |0
+<U496A> \x9A\x50 |0
+<U4972> \x93\x47 |0
+<U4989> \x8E\xD8 |0
+<U49A1> \x90\xC9 |0
+<U49A7> \x9A\x55 |0
+<U49DF> \x90\xBC |0
+<U49E5> \x9A\x58 |0
+<U49E7> \x8B\xB8 |0
+<U4A0F> \x90\xD5 |0
+<U4A1D> \x96\x41 |0
+<U4A24> \x9A\x5A |0
+<U4A35> \x9A\x5C |0
+<U4A96> \x97\xC2 |0
+<U4AB4> \x8A\xBB |0
+<U4AB8> \x9B\xAA |0
+<U4AD1> \x90\xF5 |0
+<U4AE4> \x9A\x60 |0
+<U4AFF> \x91\x45 |0
+<U4B19> \x9A\x63 |0
+<U4B2C> \x8B\xB6 |0
+<U4B37> \xFC\xCF |0
+<U4B6F> \x96\x6B |0
+<U4B70> \x9A\x6E |0
+<U4B72> \x91\x4F |0
+<U4B7B> \x97\x46 |0
+<U4B7E> \xA0\xE6 |0
+<U4B8E> \x92\xD7 |0
+<U4B90> \x96\x75 |0
+<U4B93> \x93\xD4 |0
+<U4B96> \x91\xBB |0
+<U4B97> \x96\x79 |0
+<U4B9D> \x9A\x70 |0
+<U4BBD> \x96\x78 |0
+<U4BBE> \x91\xCD |0
+<U4BC0> \x9C\x4A |0
+<U4C04> \xA0\x6F |0
+<U4C07> \xA0\x6A |0
+<U4C0E> \x91\x5F |0
+<U4C3B> \x9F\xA5 |0
+<U4C3E> \x89\xBA |0
+<U4C5B> \x9E\xCD |0
+<U4C6D> \x9A\x79 |0
+<U4C7D> \x9D\xCE |0
+<U4CA4> \x9D\x73 |0
+<U4CAE> \x96\xB9 |0
+<U4CB0> \x96\xBC |0
+<U4CB7> \x9C\xD1 |0
+<U4CCD> \x89\xB7 |0
+<U4CE1> \x9E\xEE |0
+<U4CED> \xFB\x43 |0
+<U4D09> \x9E\xC9 |0
+<U4D10> \xFB\xD3 |0
+<U4D34> \x91\xAE |0
+<U4D91> \x9D\x78 |0
+<U4D9C> \x9D\x7B |0
+<U4E00> \xA4\x40 |0
+<U4E01> \xA4\x42 |0
+<U4E03> \xA4\x43 |0
+<U4E04> \x9E\xB3 |0
+<U4E07> \xC9\x45 |0
+<U4E08> \xA4\x56 |0
+<U4E09> \xA4\x54 |0
+<U4E0A> \xA4\x57 |0
+<U4E0B> \xA4\x55 |0
+<U4E0C> \xC9\x46 |0
+<U4E0D> \xA4\xA3 |0
+<U4E0E> \xC9\x4F |0
+<U4E0F> \xC9\x4D |0
+<U4E10> \xA4\xA2 |0
+<U4E11> \xA4\xA1 |0
+<U4E14> \xA5\x42 |0
+<U4E15> \xA5\x41 |0
+<U4E16> \xA5\x40 |0
+<U4E18> \xA5\x43 |0
+<U4E19> \xA4\xFE |0
+<U4E1A> \x9E\xB2 |0
+<U4E1C> \x9D\xD6 |0
+<U4E1E> \xA5\xE0 |0
+<U4E1F> \xA5\xE1 |0
+<U4E21> \x99\x4F |0
+<U4E24> \x89\xCE |0
+<U4E26> \xA8\xC3 |0
+<U4E28> \x8B\xC0 |0
+<U4E2A> \x9F\xC4 |0
+<U4E2B> \xA4\x58 |0
+<U4E2C> \x8B\xD4 |0
+<U4E2D> \xA4\xA4 |0
+<U4E2E> \xC9\x50 |0
+<U4E30> \xA4\xA5 |0
+<U4E31> \xC9\x63 |0
+<U4E32> \xA6\xEA |0
+<U4E33> \xCB\xB1 |0
+<U4E36> \xC6\xBF |0
+<U4E37> \x8B\xF9 |0
+<U4E38> \xA4\x59 |0
+<U4E39> \xA4\xA6 |0
+<U4E3B> \xA5\x44 |0
+<U4E3C> \xC9\x64 |0
+<U4E3D> \x89\x46 |0
+<U4E3F> \xC6\xC0 |0
+<U4E42> \xC9\x40 |0
+<U4E43> \xA4\x44 |0
+<U4E45> \xA4\x5B |0
+<U4E47> \xC9\x47 |0
+<U4E48> \xA4\x5C |0
+<U4E49> \xFA\xE5 |0
+<U4E4B> \xA4\xA7 |0
+<U4E4D> \xA5\x45 |0
+<U4E4E> \xA5\x47 |0
+<U4E4F> \xA5\x46 |0
+<U4E52> \xA5\xE2 |0
+<U4E53> \xA5\xE3 |0
+<U4E56> \xA8\xC4 |0
+<U4E58> \xAD\xBC |0
+<U4E59> \xA4\x41 |0
+<U4E5A> \xC8\x7B |0
+<U4E5B> \x8B\xC6 |0
+<U4E5C> \xC9\x41 |0
+<U4E5D> \xA4\x45 |0
+<U4E5E> \xA4\x5E |0
+<U4E5F> \xA4\x5D |0
+<U4E69> \xA5\xE4 |0
+<U4E6A> \x9C\x57 |0
+<U4E73> \xA8\xC5 |0
+<U4E78> \x9A\xFB |0
+<U4E7E> \xB0\xAE |0
+<U4E7F> \xD4\x4B |0
+<U4E80> \x89\xD0 |0
+<U4E81> \x89\xCF |0
+<U4E82> \xB6\xC3 |0
+<U4E83> \xDC\xB1 |0
+<U4E84> \xDC\xB2 |0
+<U4E85> \xC6\xC1 |0
+<U4E86> \xA4\x46 |0
+<U4E87> \x89\xD1 |0
+<U4E88> \xA4\xA9 |0
+<U4E89> \x89\xE2 |0
+<U4E8B> \xA8\xC6 |0
+<U4E8C> \xA4\x47 |0
+<U4E8D> \xC9\x48 |0
+<U4E8E> \xA4\x5F |0
+<U4E91> \xA4\xAA |0
+<U4E92> \xA4\xAC |0
+<U4E93> \xC9\x51 |0
+<U4E94> \xA4\xAD |0
+<U4E95> \xA4\xAB |0
+<U4E98> \x92\x7E |0
+<U4E99> \xA5\xE5 |0
+<U4E9A> \x9D\xBA |0
+<U4E9B> \xA8\xC7 |0
+<U4E9E> \xA8\xC8 |0
+<U4E9F> \xAB\x45 |0
+<U4EA0> \xC6\xC2 |0
+<U4EA1> \xA4\x60 |0
+<U4EA2> \xA4\xAE |0
+<U4EA4> \xA5\xE6 |0
+<U4EA5> \xA5\xE8 |0
+<U4EA6> \xA5\xE7 |0
+<U4EA8> \xA6\xEB |0
+<U4EAB> \xA8\xC9 |0
+<U4EAC> \xA8\xCA |0
+<U4EAD> \xAB\x46 |0
+<U4EAE> \xAB\x47 |0
+<U4EB3> \xAD\xBD |0
+<U4EB6> \xDC\xB3 |0
+<U4EB7> \xFB\xF8 |0
+<U4EB9> \xF6\xD6 |0
+<U4EBA> \xA4\x48 |0
+<U4EBB> \x8B\xC7 |0
+<U4EBC> \x92\x6B |0
+<U4EBF> \x89\xD2 |0
+<U4EC0> \xA4\xB0 |0
+<U4EC1> \xA4\xAF |0
+<U4EC2> \xC9\x52 |0
+<U4EC3> \xA4\xB1 |0
+<U4EC4> \xA4\xB7 |0
+<U4EC6> \xA4\xB2 |0
+<U4EC7> \xA4\xB3 |0
+<U4EC8> \xC9\x54 |0
+<U4EC9> \xC9\x53 |0
+<U4ECA> \xA4\xB5 |0
+<U4ECB> \xA4\xB6 |0
+<U4ECD> \xA4\xB4 |0
+<U4ECE> \x9F\xCF |0
+<U4ED4> \xA5\x4A |0
+<U4ED5> \xA5\x4B |0
+<U4ED6> \xA5\x4C |0
+<U4ED7> \xA5\x4D |0
+<U4ED8> \xA5\x49 |0
+<U4ED9> \xA5\x50 |0
+<U4EDA> \xC9\x6A |0
+<U4EDC> \xC9\x66 |0
+<U4EDD> \xC9\x69 |0
+<U4EDE> \xA5\x51 |0
+<U4EDF> \xA5\x61 |0
+<U4EE1> \xC9\x68 |0
+<U4EE3> \xA5\x4E |0
+<U4EE4> \xA5\x4F |0
+<U4EE5> \xA5\x48 |0
+<U4EE8> \xC9\x65 |0
+<U4EE9> \xC9\x67 |0
+<U4EEA> \x9D\xA9 |0
+<U4EEB> \x89\xD3 |0
+<U4EEE> \x99\xE2 |0
+<U4EF0> \xA5\xF5 |0
+<U4EF1> \xC9\xB0 |0
+<U4EF2> \xA5\xF2 |0
+<U4EF3> \xA5\xF6 |0
+<U4EF4> \xC9\xBA |0
+<U4EF5> \xC9\xAE |0
+<U4EF6> \xA5\xF3 |0
+<U4EF7> \xC9\xB2 |0
+<U4EF8> \x92\x67 |0
+<U4EFB> \xA5\xF4 |0
+<U4EFD> \xA5\xF7 |0
+<U4EFF> \xA5\xE9 |0
+<U4F00> \xC9\xB1 |0
+<U4F01> \xA5\xF8 |0
+<U4F02> \xC9\xB5 |0
+<U4F03> \x92\xA4 |0
+<U4F04> \xC9\xB9 |0
+<U4F05> \xC9\xB6 |0
+<U4F08> \xC9\xB3 |0
+<U4F09> \xA5\xEA |0
+<U4F0A> \xA5\xEC |0
+<U4F0B> \xA5\xF9 |0
+<U4F0D> \xA5\xEE |0
+<U4F0E> \xC9\xAB |0
+<U4F0F> \xA5\xF1 |0
+<U4F10> \xA5\xEF |0
+<U4F11> \xA5\xF0 |0
+<U4F12> \xC9\xBB |0
+<U4F13> \xC9\xB8 |0
+<U4F14> \xC9\xAF |0
+<U4F15> \xA5\xED |0
+<U4F18> \xC9\xAC |0
+<U4F19> \xA5\xEB |0
+<U4F1A> \x89\x4E |0
+<U4F1D> \xC9\xB4 |0
+<U4F22> \xC9\xB7 |0
+<U4F28> \x89\x4F |0
+<U4F29> \x92\x78 |0
+<U4F2C> \xC9\xAD |0
+<U4F2D> \xCA\x66 |0
+<U4F2F> \xA7\x42 |0
+<U4F30> \xA6\xF4 |0
+<U4F32> \x91\xB6 |0
+<U4F33> \xCA\x67 |0
+<U4F34> \xA6\xF1 |0
+<U4F36> \xA7\x44 |0
+<U4F37> \x89\xD4 |0
+<U4F38> \xA6\xF9 |0
+<U4F39> \x9F\xD2 |0
+<U4F3A> \xA6\xF8 |0
+<U4F3B> \xCA\x5B |0
+<U4F3C> \xA6\xFC |0
+<U4F3D> \xA6\xF7 |0
+<U4F3E> \xCA\x60 |0
+<U4F3F> \xCA\x68 |0
+<U4F41> \xCA\x64 |0
+<U4F42> \x92\xA7 |0
+<U4F43> \xA6\xFA |0
+<U4F45> \x95\xA2 |0
+<U4F46> \xA6\xFD |0
+<U4F47> \xA6\xEE |0
+<U4F48> \xA7\x47 |0
+<U4F49> \xCA\x5D |0
+<U4F4B> \x92\x6E |0
+<U4F4C> \xCB\xBD |0
+<U4F4D> \xA6\xEC |0
+<U4F4E> \xA7\x43 |0
+<U4F4F> \xA6\xED |0
+<U4F50> \xA6\xF5 |0
+<U4F51> \xA6\xF6 |0
+<U4F52> \xCA\x62 |0
+<U4F53> \xCA\x5E |0
+<U4F54> \xA6\xFB |0
+<U4F55> \xA6\xF3 |0
+<U4F56> \xCA\x5A |0
+<U4F57> \xA6\xEF |0
+<U4F58> \xCA\x65 |0
+<U4F59> \xA7\x45 |0
+<U4F5A> \xA7\x48 |0
+<U4F5B> \xA6\xF2 |0
+<U4F5C> \xA7\x40 |0
+<U4F5D> \xA7\x46 |0
+<U4F5E> \xA6\xF0 |0
+<U4F5F> \xCA\x63 |0
+<U4F60> \xA7\x41 |0
+<U4F61> \xCA\x69 |0
+<U4F62> \xCA\x5C |0
+<U4F63> \xA6\xFE |0
+<U4F64> \xCA\x5F |0
+<U4F67> \xCA\x61 |0
+<U4F69> \xA8\xD8 |0
+<U4F6A> \xCB\xBF |0
+<U4F6B> \xCB\xCB |0
+<U4F6C> \xA8\xD0 |0
+<U4F6E> \xCB\xCC |0
+<U4F6F> \xA8\xCB |0
+<U4F70> \xA8\xD5 |0
+<U4F72> \x96\xEA |0
+<U4F73> \xA8\xCE |0
+<U4F74> \xCB\xB9 |0
+<U4F75> \xA8\xD6 |0
+<U4F76> \xCB\xB8 |0
+<U4F77> \xCB\xBC |0
+<U4F78> \xCB\xC3 |0
+<U4F79> \xCB\xC1 |0
+<U4F7A> \xA8\xDE |0
+<U4F7B> \xA8\xD9 |0
+<U4F7C> \xCB\xB3 |0
+<U4F7D> \xCB\xB5 |0
+<U4F7E> \xA8\xDB |0
+<U4F7F> \xA8\xCF |0
+<U4F80> \xCB\xB6 |0
+<U4F81> \xCB\xC2 |0
+<U4F82> \xCB\xC9 |0
+<U4F83> \xA8\xD4 |0
+<U4F84> \xCB\xBB |0
+<U4F85> \xCB\xB4 |0
+<U4F86> \xA8\xD3 |0
+<U4F87> \xCB\xB7 |0
+<U4F88> \xA8\xD7 |0
+<U4F89> \xCB\xBA |0
+<U4F8A> \x92\x6F |0
+<U4F8B> \xA8\xD2 |0
+<U4F8D> \xA8\xCD |0
+<U4F8F> \xA8\xDC |0
+<U4F90> \xCB\xC4 |0
+<U4F91> \xA8\xDD |0
+<U4F92> \xCB\xC8 |0
+<U4F94> \xCB\xC6 |0
+<U4F95> \xCB\xCA |0
+<U4F96> \xA8\xDA |0
+<U4F97> \xCB\xBE |0
+<U4F98> \xCB\xB2 |0
+<U4F9A> \xCB\xC0 |0
+<U4F9B> \xA8\xD1 |0
+<U4F9C> \xCB\xC5 |0
+<U4F9D> \xA8\xCC |0
+<U4F9E> \xCB\xC7 |0
+<U4FA2> \x92\xA3 |0
+<U4FA8> \x89\x50 |0
+<U4FAB> \xFA\x57 |0
+<U4FAE> \xAB\x56 |0
+<U4FAF> \xAB\x4A |0
+<U4FB0> \x98\x66 |0
+<U4FB2> \xCD\xE0 |0
+<U4FB3> \xCD\xE8 |0
+<U4FB5> \xAB\x49 |0
+<U4FB6> \xAB\x51 |0
+<U4FB7> \xAB\x5D |0
+<U4FB9> \xCD\xEE |0
+<U4FBA> \xCD\xEC |0
+<U4FBB> \xCD\xE7 |0
+<U4FBD> \x89\xD6 |0
+<U4FBF> \xAB\x4B |0
+<U4FC0> \xCD\xED |0
+<U4FC1> \xCD\xE3 |0
+<U4FC2> \xAB\x59 |0
+<U4FC3> \xAB\x50 |0
+<U4FC4> \xAB\x58 |0
+<U4FC5> \xCD\xDE |0
+<U4FC7> \xCD\xEA |0
+<U4FC8> \x98\xB2 |0
+<U4FC9> \xCD\xE1 |0
+<U4FCA> \xAB\x54 |0
+<U4FCB> \xCD\xE2 |0
+<U4FCC> \x92\xAB |0
+<U4FCD> \xCD\xDD |0
+<U4FCE> \xAB\x5B |0
+<U4FCF> \xAB\x4E |0
+<U4FD0> \xAB\x57 |0
+<U4FD1> \xAB\x4D |0
+<U4FD3> \xCD\xDF |0
+<U4FD4> \xCD\xE4 |0
+<U4FD6> \xCD\xEB |0
+<U4FD7> \xAB\x55 |0
+<U4FD8> \xAB\x52 |0
+<U4FD9> \xCD\xE6 |0
+<U4FDA> \xAB\x5A |0
+<U4FDB> \xCD\xE9 |0
+<U4FDC> \xCD\xE5 |0
+<U4FDD> \xAB\x4F |0
+<U4FDE> \xAB\x5C |0
+<U4FDF> \xAB\x53 |0
+<U4FE0> \xAB\x4C |0
+<U4FE1> \xAB\x48 |0
+<U4FE4> \x96\xDE |0
+<U4FE5> \x92\xAC |0
+<U4FEC> \xCD\xEF |0
+<U4FEE> \xAD\xD7 |0
+<U4FEF> \xAD\xC1 |0
+<U4FF1> \xAD\xD1 |0
+<U4FF2> \x9F\x6E |0
+<U4FF3> \xAD\xD6 |0
+<U4FF4> \xD0\xD0 |0
+<U4FF5> \xD0\xCF |0
+<U4FF6> \xD0\xD4 |0
+<U4FF7> \xD0\xD5 |0
+<U4FF8> \xAD\xC4 |0
+<U4FF9> \x8E\xF2 |0
+<U4FFA> \xAD\xCD |0
+<U4FFD> \x9F\x6C |0
+<U4FFE> \xAD\xDA |0
+<U5000> \xAD\xCE |0
+<U5003> \x89\xD8 |0
+<U5005> \xD0\xC9 |0
+<U5006> \xAD\xC7 |0
+<U5007> \xD0\xCA |0
+<U5008> \xFA\x59 |0
+<U5009> \xAD\xDC |0
+<U500B> \xAD\xD3 |0
+<U500C> \xAD\xBE |0
+<U500D> \xAD\xBF |0
+<U500E> \xD0\xDD |0
+<U500F> \xB0\xBF |0
+<U5011> \xAD\xCC |0
+<U5012> \xAD\xCB |0
+<U5013> \xD0\xCB |0
+<U5014> \xAD\xCF |0
+<U5015> \xD4\x5B |0
+<U5016> \xAD\xC6 |0
+<U5017> \xD0\xD6 |0
+<U5018> \xAD\xD5 |0
+<U5019> \xAD\xD4 |0
+<U501A> \xAD\xCA |0
+<U501B> \xD0\xCE |0
+<U501C> \xD0\xD7 |0
+<U501E> \xD0\xC8 |0
+<U501F> \xAD\xC9 |0
+<U5020> \xD0\xD8 |0
+<U5021> \xAD\xD2 |0
+<U5022> \xD0\xCC |0
+<U5023> \xAD\xC0 |0
+<U5025> \xAD\xC3 |0
+<U5026> \xAD\xC2 |0
+<U5027> \xD0\xD9 |0
+<U5028> \xAD\xD0 |0
+<U5029> \xAD\xC5 |0
+<U502A> \xAD\xD9 |0
+<U502B> \xAD\xDB |0
+<U502C> \xD0\xD3 |0
+<U502D> \xAD\xD8 |0
+<U502E> \x92\xA8 |0
+<U502F> \xD0\xDB |0
+<U5030> \xD0\xCD |0
+<U5031> \xD0\xDC |0
+<U5033> \xD0\xD1 |0
+<U5034> \x91\x63 |0
+<U5035> \xD0\xDA |0
+<U5037> \xD0\xD2 |0
+<U503C> \xAD\xC8 |0
+<U5040> \xD4\x63 |0
+<U5041> \xD4\x57 |0
+<U5043> \xB0\xB3 |0
+<U5045> \xD4\x5C |0
+<U5046> \xD4\x62 |0
+<U5047> \xB0\xB2 |0
+<U5048> \xD4\x55 |0
+<U5049> \xB0\xB6 |0
+<U504A> \xD4\x59 |0
+<U504B> \xD4\x52 |0
+<U504C> \xB0\xB4 |0
+<U504D> \xD4\x56 |0
+<U504E> \xB0\xB9 |0
+<U504F> \xB0\xBE |0
+<U5051> \xD4\x67 |0
+<U5053> \xD4\x51 |0
+<U5055> \xB0\xBA |0
+<U5056> \x9F\x73 |0
+<U5057> \xD4\x66 |0
+<U5058> \x92\xAD |0
+<U505A> \xB0\xB5 |0
+<U505B> \xD4\x58 |0
+<U505C> \xB0\xB1 |0
+<U505D> \xD4\x53 |0
+<U505E> \xD4\x4F |0
+<U505F> \xD4\x5D |0
+<U5060> \xD4\x50 |0
+<U5061> \xD4\x4E |0
+<U5062> \xD4\x5A |0
+<U5063> \xD4\x60 |0
+<U5064> \xD4\x61 |0
+<U5065> \xB0\xB7 |0
+<U5066> \x9B\xE9 |0
+<U5068> \xD8\x5B |0
+<U5069> \xD4\x5E |0
+<U506A> \xD4\x4D |0
+<U506B> \xD4\x5F |0
+<U506C> \x92\xA9 |0
+<U506D> \xB0\xC1 |0
+<U506E> \xD4\x64 |0
+<U506F> \xB0\xC0 |0
+<U5070> \xD4\x4C |0
+<U5072> \xD4\x54 |0
+<U5073> \xD4\x65 |0
+<U5074> \xB0\xBC |0
+<U5075> \xB0\xBB |0
+<U5076> \xB0\xB8 |0
+<U5077> \xB0\xBD |0
+<U507A> \xB0\xAF |0
+<U507D> \xB0\xB0 |0
+<U5080> \xB3\xC8 |0
+<U5081> \x92\xAA |0
+<U5082> \xD8\x5E |0
+<U5083> \xD8\x57 |0
+<U5085> \xB3\xC5 |0
+<U5087> \xD8\x5F |0
+<U5088> \x89\xD9 |0
+<U508B> \xD8\x55 |0
+<U508C> \xD8\x58 |0
+<U508D> \xB3\xC4 |0
+<U508E> \xD8\x59 |0
+<U5090> \xFD\x56 |0
+<U5091> \xB3\xC7 |0
+<U5092> \xD8\x5D |0
+<U5094> \xD8\x53 |0
+<U5095> \xD8\x52 |0
+<U5096> \xB3\xC9 |0
+<U5098> \xB3\xCA |0
+<U5099> \xB3\xC6 |0
+<U509A> \xB3\xCB |0
+<U509B> \xD8\x51 |0
+<U509C> \xD8\x5C |0
+<U509D> \xD8\x5A |0
+<U509E> \xD8\x54 |0
+<U50A2> \xB3\xC3 |0
+<U50A3> \xD8\x56 |0
+<U50A6> \x9F\xA8 |0
+<U50AC> \xB6\xCA |0
+<U50AD> \xB6\xC4 |0
+<U50AE> \xDC\xB7 |0
+<U50AF> \xB6\xCD |0
+<U50B0> \xDC\xBD |0
+<U50B1> \xDC\xC0 |0
+<U50B2> \xB6\xC6 |0
+<U50B3> \xB6\xC7 |0
+<U50B4> \xDC\xBA |0
+<U50B5> \xB6\xC5 |0
+<U50B6> \xDC\xC3 |0
+<U50B7> \xB6\xCB |0
+<U50B8> \xDC\xC4 |0
+<U50BA> \xDC\xBF |0
+<U50BB> \xB6\xCC |0
+<U50BD> \xDC\xB4 |0
+<U50BE> \xB6\xC9 |0
+<U50BF> \xDC\xB5 |0
+<U50C1> \xDC\xBE |0
+<U50C2> \xDC\xBC |0
+<U50C4> \xDC\xB8 |0
+<U50C5> \xB6\xC8 |0
+<U50C6> \xDC\xB6 |0
+<U50C7> \xB6\xCE |0
+<U50C8> \xDC\xBB |0
+<U50C9> \xDC\xC2 |0
+<U50CA> \xDC\xB9 |0
+<U50CB> \xDC\xC1 |0
+<U50CD> \x92\xA1 |0
+<U50CE> \xB9\xB6 |0
+<U50CF> \xB9\xB3 |0
+<U50D0> \x90\xE3 |0
+<U50D1> \xB9\xB4 |0
+<U50D3> \xE0\xF9 |0
+<U50D4> \xE0\xF1 |0
+<U50D5> \xB9\xB2 |0
+<U50D6> \xB9\xAF |0
+<U50D7> \xE0\xF2 |0
+<U50D9> \xA0\xA6 |0
+<U50DA> \xB9\xB1 |0
+<U50DB> \xE0\xF5 |0
+<U50DD> \xE0\xF7 |0
+<U50DF> \x94\xAB |0
+<U50E0> \xE0\xFE |0
+<U50E1> \xFC\x72 |0
+<U50E3> \xE0\xFD |0
+<U50E4> \xE0\xF8 |0
+<U50E5> \xB9\xAE |0
+<U50E6> \xE0\xF0 |0
+<U50E7> \xB9\xAC |0
+<U50E8> \xE0\xF3 |0
+<U50E9> \xB9\xB7 |0
+<U50EA> \xE0\xF6 |0
+<U50EC> \xE0\xFA |0
+<U50ED> \xB9\xB0 |0
+<U50EE> \xB9\xAD |0
+<U50EF> \xE0\xFC |0
+<U50F0> \xE0\xFB |0
+<U50F1> \xB9\xB5 |0
+<U50F3> \xE0\xF4 |0
+<U50F4> \x97\xC4 |0
+<U50F5> \xBB\xF8 |0
+<U50F6> \xE4\xEC |0
+<U50F8> \xE4\xE9 |0
+<U50F9> \xBB\xF9 |0
+<U50FB> \xBB\xF7 |0
+<U50FC> \x92\xAE |0
+<U50FD> \xE4\xF0 |0
+<U50FE> \xE4\xED |0
+<U50FF> \xE4\xE6 |0
+<U5100> \xBB\xF6 |0
+<U5101> \xFA\x67 |0
+<U5102> \xBB\xFA |0
+<U5103> \xE4\xE7 |0
+<U5104> \xBB\xF5 |0
+<U5105> \xBB\xFD |0
+<U5106> \xE4\xEA |0
+<U5107> \xE4\xEB |0
+<U5108> \xBB\xFB |0
+<U5109> \xBB\xFC |0
+<U510A> \xE4\xF1 |0
+<U510B> \xE4\xEE |0
+<U510C> \xE4\xEF |0
+<U510D> \x92\xA2 |0
+<U510E> \xFA\x69 |0
+<U5110> \xBE\xAA |0
+<U5111> \xE8\xF8 |0
+<U5112> \xBE\xA7 |0
+<U5113> \xE8\xF5 |0
+<U5114> \xBE\xA9 |0
+<U5115> \xBE\xAB |0
+<U5117> \xE8\xF6 |0
+<U5118> \xBE\xA8 |0
+<U511A> \xE8\xF7 |0
+<U511C> \xE8\xF4 |0
+<U511F> \xC0\x76 |0
+<U5120> \xEC\xBD |0
+<U5121> \xC0\x77 |0
+<U5122> \xEC\xBB |0
+<U5124> \xEC\xBC |0
+<U5125> \xEC\xBA |0
+<U5126> \xEC\xB9 |0
+<U5129> \xEC\xBE |0
+<U512A> \xC0\x75 |0
+<U512B> \x92\x68 |0
+<U512D> \xEF\xB8 |0
+<U512E> \xEF\xB9 |0
+<U5130> \xE4\xE8 |0
+<U5131> \xEF\xB7 |0
+<U5132> \xC0\x78 |0
+<U5133> \xC3\x5F |0
+<U5134> \xF1\xEB |0
+<U5135> \xF1\xEC |0
+<U5137> \xC4\xD7 |0
+<U5138> \xC4\xD8 |0
+<U5139> \xF5\xC1 |0
+<U513A> \xF5\xC0 |0
+<U513B> \xC5\x6C |0
+<U513C> \xC5\x6B |0
+<U513D> \xF7\xD0 |0
+<U513F> \xA4\x49 |0
+<U5140> \xA4\x61 |0
+<U5141> \xA4\xB9 |0
+<U5143> \xA4\xB8 |0
+<U5144> \xA5\x53 |0
+<U5145> \xA5\x52 |0
+<U5146> \xA5\xFC |0
+<U5147> \xA5\xFB |0
+<U5148> \xA5\xFD |0
+<U5149> \xA5\xFA |0
+<U514B> \xA7\x4A |0
+<U514C> \xA7\x49 |0
+<U514D> \xA7\x4B |0
+<U5152> \xA8\xE0 |0
+<U5154> \xA8\xDF |0
+<U5155> \xA8\xE1 |0
+<U5156> \x89\x51 |0
+<U5157> \xAB\x5E |0
+<U5159> \xA2\x59 |0
+<U515A> \xD0\xDE |0
+<U515B> \xA2\x5A |0
+<U515C> \xB0\xC2 |0
+<U515D> \xA2\x5C |0
+<U515E> \xA2\x5B |0
+<U515F> \xD8\x60 |0
+<U5160> \xFA\x6F |0
+<U5161> \xA2\x5D |0
+<U5162> \xB9\xB8 |0
+<U5163> \xA2\x5E |0
+<U5165> \xA4\x4A |0
+<U5167> \xA4\xBA |0
+<U5168> \xA5\xFE |0
+<U5169> \xA8\xE2 |0
+<U516A> \xFA\x71 |0
+<U516B> \xA4\x4B |0
+<U516C> \xA4\xBD |0
+<U516D> \xA4\xBB |0
+<U516E> \xA4\xBC |0
+<U5171> \xA6\x40 |0
+<U5174> \x89\x52 |0
+<U5175> \xA7\x4C |0
+<U5176> \xA8\xE4 |0
+<U5177> \xA8\xE3 |0
+<U5178> \xA8\xE5 |0
+<U5179> \x94\x5A |0
+<U517C> \xAD\xDD |0
+<U5180> \xBE\xAC |0
+<U5182> \xC6\xC3 |0
+<U5186> \x89\xDD |0
+<U5187> \xC9\x4E |0
+<U5188> \xC8\xA2 |0
+<U5189> \xA5\x54 |0
+<U518A> \xA5\x55 |0
+<U518D> \xA6\x41 |0
+<U518F> \xCA\x6A |0
+<U5191> \xAB\x60 |0
+<U5192> \xAB\x5F |0
+<U5193> \xD0\xE0 |0
+<U5194> \xD0\xDF |0
+<U5195> \xB0\xC3 |0
+<U5196> \xC6\xC4 |0
+<U5197> \xA4\xBE |0
+<U5198> \xC9\x55 |0
+<U519A> \x9E\x52 |0
+<U519C> \x89\x53 |0
+<U519E> \xCB\xCD |0
+<U51A0> \xAB\x61 |0
+<U51A2> \xAD\xE0 |0
+<U51A4> \xAD\xDE |0
+<U51A5> \xAD\xDF |0
+<U51A7> \x9E\x55 |0
+<U51A8> \x92\xBA |0
+<U51AA> \xBE\xAD |0
+<U51AB> \xC6\xC5 |0
+<U51AC> \xA5\x56 |0
+<U51B0> \xA6\x42 |0
+<U51B1> \xC9\xBC |0
+<U51B2> \xFA\x7D |0
+<U51B3> \xFA\xA8 |0
+<U51B4> \x9A\x68 |0
+<U51B5> \xFA\x47 |0
+<U51B6> \xA7\x4D |0
+<U51B7> \xA7\x4E |0
+<U51B8> \xFA\x7E |0
+<U51B9> \xCA\x6B |0
+<U51BC> \xCB\xCE |0
+<U51BD> \xA8\xE6 |0
+<U51BE> \xCB\xCF |0
+<U51C3> \x92\xBB |0
+<U51C4> \xD0\xE2 |0
+<U51C5> \xD0\xE3 |0
+<U51C6> \xAD\xE3 |0
+<U51C7> \xFD\xB6 |0
+<U51C8> \xD0\xE4 |0
+<U51C9> \xFA\xA2 |0
+<U51CA> \xD0\xE1 |0
+<U51CB> \xAD\xE4 |0
+<U51CC> \xAD\xE2 |0
+<U51CD> \xAD\xE1 |0
+<U51CE> \xD0\xE5 |0
+<U51CF> \xFA\xA3 |0
+<U51D0> \xD4\x68 |0
+<U51D1> \xFA\xA4 |0
+<U51D2> \x9B\xB4 |0
+<U51D3> \xFA\xA6 |0
+<U51D4> \xD8\x61 |0
+<U51D7> \xDC\xC5 |0
+<U51D8> \xE1\x40 |0
+<U51DB> \x89\xDF |0
+<U51DC> \xBB\xFE |0
+<U51DD> \xBE\xAE |0
+<U51DE> \xE8\xF9 |0
+<U51DF> \xFD\xDB |0
+<U51E0> \xA4\x4C |0
+<U51E1> \xA4\x5A |0
+<U51E2> \xFA\xA9 |0
+<U51E4> \x89\x54 |0
+<U51ED> \xFA\xAB |0
+<U51F0> \xB0\xC4 |0
+<U51F1> \xB3\xCD |0
+<U51F3> \xB9\xB9 |0
+<U51F4> \xFC\x7A |0
+<U51F5> \xC9\x42 |0
+<U51F6> \xA4\xBF |0
+<U51F8> \xA5\x59 |0
+<U51F9> \xA5\x57 |0
+<U51FA> \xA5\x58 |0
+<U51FC> \x89\xE0 |0
+<U51FD> \xA8\xE7 |0
+<U51FE> \x9F\x4F |0
+<U5200> \xA4\x4D |0
+<U5201> \xA4\x4E |0
+<U5202> \xC8\x7D |0
+<U5203> \xA4\x62 |0
+<U5205> \x89\xE1 |0
+<U5206> \xA4\xC0 |0
+<U5207> \xA4\xC1 |0
+<U5208> \xA4\xC2 |0
+<U5209> \xC9\xBE |0
+<U520A> \xA5\x5A |0
+<U520B> \xFA\xB0 |0
+<U520C> \xC9\x6B |0
+<U520E> \xA6\x46 |0
+<U5210> \xC9\xBF |0
+<U5211> \xA6\x44 |0
+<U5212> \xA6\x45 |0
+<U5213> \xC9\xBD |0
+<U5216> \xA6\x47 |0
+<U5217> \xA6\x43 |0
+<U521C> \xCA\x6C |0
+<U521D> \xAA\xEC |0
+<U521E> \xCA\x6D |0
+<U521F> \x9F\xCD |0
+<U5220> \xA0\xE7 |0
+<U5221> \xCA\x6E |0
+<U5224> \xA7\x50 |0
+<U5225> \xA7\x4F |0
+<U5226> \xFA\xB1 |0
+<U5227> \x89\xA6 |0
+<U5228> \xA7\x53 |0
+<U5229> \xA7\x51 |0
+<U522A> \xA7\x52 |0
+<U522E> \xA8\xED |0
+<U5230> \xA8\xEC |0
+<U5231> \xCB\xD4 |0
+<U5232> \xCB\xD1 |0
+<U5233> \xCB\xD2 |0
+<U5234> \x9E\xFA |0
+<U5235> \xCB\xD0 |0
+<U5236> \xA8\xEE |0
+<U5237> \xA8\xEA |0
+<U5238> \xA8\xE9 |0
+<U523A> \xA8\xEB |0
+<U523B> \xA8\xE8 |0
+<U523C> \xFA\xB2 |0
+<U5241> \xA8\xEF |0
+<U5243> \xAB\x63 |0
+<U5244> \xCD\xF0 |0
+<U5246> \xCB\xD3 |0
+<U5247> \xAB\x68 |0
+<U5249> \xCD\xF1 |0
+<U524A> \xAB\x64 |0
+<U524B> \xAB\x67 |0
+<U524C> \xAB\x66 |0
+<U524D> \xAB\x65 |0
+<U524E> \xAB\x62 |0
+<U5252> \xD0\xE8 |0
+<U5254> \xAD\xE7 |0
+<U5255> \xD0\xEB |0
+<U5256> \xAD\xE5 |0
+<U5257> \xFA\xB4 |0
+<U5259> \x92\xC4 |0
+<U525A> \xD0\xE7 |0
+<U525B> \xAD\xE8 |0
+<U525C> \xAD\xE6 |0
+<U525D> \xAD\xE9 |0
+<U525E> \xD0\xE9 |0
+<U525F> \xD0\xEA |0
+<U5260> \x9F\x6F |0
+<U5261> \xD0\xE6 |0
+<U5262> \xD0\xEC |0
+<U5268> \x8B\xB0 |0
+<U5269> \xB3\xD1 |0
+<U526A> \xB0\xC5 |0
+<U526B> \xD4\x69 |0
+<U526C> \xD4\x6B |0
+<U526D> \xD4\x6A |0
+<U526E> \xD4\x6C |0
+<U526F> \xB0\xC6 |0
+<U5272> \xB3\xCE |0
+<U5273> \x9F\xAC |0
+<U5274> \xB3\xCF |0
+<U5275> \xB3\xD0 |0
+<U5277> \xB6\xD0 |0
+<U5278> \xDC\xC7 |0
+<U5279> \x89\xE3 |0
+<U527A> \xDC\xC6 |0
+<U527B> \xDC\xC8 |0
+<U527C> \xDC\xC9 |0
+<U527D> \xB6\xD1 |0
+<U527F> \xB6\xCF |0
+<U5280> \xE1\x41 |0
+<U5281> \xE1\x42 |0
+<U5282> \xB9\xBB |0
+<U5283> \xB9\xBA |0
+<U5284> \xE3\x5A |0
+<U5287> \xBC\x40 |0
+<U5288> \xBC\x41 |0
+<U5289> \xBC\x42 |0
+<U528A> \xBC\x44 |0
+<U528B> \xE4\xF2 |0
+<U528C> \xE4\xF3 |0
+<U528D> \xBC\x43 |0
+<U528F> \x9B\xD3 |0
+<U5290> \x89\xE4 |0
+<U5291> \xBE\xAF |0
+<U5293> \xBE\xB0 |0
+<U5294> \xFA\xB5 |0
+<U5296> \xF1\xED |0
+<U5297> \xF5\xC3 |0
+<U5298> \xF5\xC2 |0
+<U5299> \xF7\xD1 |0
+<U529A> \x9F\xD5 |0
+<U529B> \xA4\x4F |0
+<U529F> \xA5\x5C |0
+<U52A0> \xA5\x5B |0
+<U52A1> \x89\x55 |0
+<U52A3> \xA6\x48 |0
+<U52A4> \x92\xC5 |0
+<U52A6> \xC9\xC0 |0
+<U52A8> \x89\x56 |0
+<U52A9> \xA7\x55 |0
+<U52AA> \xA7\x56 |0
+<U52AB> \xA7\x54 |0
+<U52AC> \xA7\x57 |0
+<U52AD> \xCA\x6F |0
+<U52AE> \xCA\x70 |0
+<U52B5> \xFA\xB3 |0
+<U52B9> \xFA\xB6 |0
+<U52BB> \xA8\xF1 |0
+<U52BC> \xCB\xD5 |0
+<U52BE> \xA8\xF0 |0
+<U52C0> \xCD\xF2 |0
+<U52C1> \xAB\x6C |0
+<U52C2> \xCD\xF3 |0
+<U52C3> \xAB\x6B |0
+<U52C5> \xFA\xB7 |0
+<U52C7> \xAB\x69 |0
+<U52C9> \xAB\x6A |0
+<U52CC> \x9E\xDC |0
+<U52CD> \xD0\xED |0
+<U52D0> \xFB\xC4 |0
+<U52D1> \x9F\x71 |0
+<U52D2> \xB0\xC7 |0
+<U52D3> \xD4\x6E |0
+<U52D5> \xB0\xCA |0
+<U52D6> \xD4\x6D |0
+<U52D7> \xB1\xE5 |0
+<U52D8> \xB0\xC9 |0
+<U52D9> \xB0\xC8 |0
+<U52DB> \xB3\xD4 |0
+<U52DD> \xB3\xD3 |0
+<U52DE> \xB3\xD2 |0
+<U52DF> \xB6\xD2 |0
+<U52E0> \xFA\xBA |0
+<U52E1> \x92\xC7 |0
+<U52E2> \xB6\xD5 |0
+<U52E3> \xB6\xD6 |0
+<U52E4> \xB6\xD4 |0
+<U52E6> \xB6\xD3 |0
+<U52E9> \xE1\x43 |0
+<U52EB> \xE1\x44 |0
+<U52EF> \xE4\xF5 |0
+<U52F0> \xBC\x45 |0
+<U52F1> \xE4\xF4 |0
+<U52F3> \xBE\xB1 |0
+<U52F4> \xEC\xBF |0
+<U52F5> \xC0\x79 |0
+<U52F7> \xF1\xEE |0
+<U52F8> \xC4\x55 |0
+<U52F9> \xC6\xC6 |0
+<U52FA> \xA4\x63 |0
+<U52FB> \xA4\xC3 |0
+<U52FC> \xC9\x56 |0
+<U52FE> \xA4\xC4 |0
+<U52FF> \xA4\xC5 |0
+<U5301> \x9A\x4C |0
+<U5305> \xA5\x5D |0
+<U5306> \xA5\x5E |0
+<U5308> \xA6\x49 |0
+<U5309> \xCA\x71 |0
+<U530A> \xCB\xD6 |0
+<U530B> \xCB\xD7 |0
+<U530D> \xAB\x6D |0
+<U530E> \xD0\xEE |0
+<U530F> \xB0\xCC |0
+<U5310> \xB0\xCB |0
+<U5311> \xD8\x63 |0
+<U5312> \xD8\x62 |0
+<U5315> \xA4\x50 |0
+<U5316> \xA4\xC6 |0
+<U5317> \xA5\x5F |0
+<U5319> \xB0\xCD |0
+<U531A> \xC9\x43 |0
+<U531C> \xC9\x6C |0
+<U531D> \xA5\x60 |0
+<U531F> \xC9\xC2 |0
+<U5320> \xA6\x4B |0
+<U5321> \xA6\x4A |0
+<U5322> \xC9\xC1 |0
+<U5323> \xA7\x58 |0
+<U5327> \x89\xE5 |0
+<U532A> \xAD\xEA |0
+<U532C> \x9F\x7D |0
+<U532D> \xD4\x6F |0
+<U532F> \xB6\xD7 |0
+<U5330> \xE1\x45 |0
+<U5331> \xB9\xBC |0
+<U5332> \xA0\xA9 |0
+<U5333> \xFA\xC4 |0
+<U5334> \xE8\xFA |0
+<U5337> \xF3\xFD |0
+<U5338> \xC6\xC7 |0
+<U5339> \xA4\xC7 |0
+<U533B> \x89\x57 |0
+<U533C> \xCB\xD8 |0
+<U533D> \xCD\xF4 |0
+<U533E> \xB0\xD0 |0
+<U533F> \xB0\xCE |0
+<U5340> \xB0\xCF |0
+<U5341> \xA4\x51 |0
+<U5342> \xFA\xAA |0
+<U5343> \xA4\x64 |0
+<U5344> \xA2\xCD |0
+<U5345> \xA4\xCA |0
+<U5347> \xA4\xC9 |0
+<U5348> \xA4\xC8 |0
+<U5349> \xA5\x63 |0
+<U534A> \xA5\x62 |0
+<U534C> \xC9\x6D |0
+<U534D> \xC9\xC3 |0
+<U534E> \x89\x58 |0
+<U5351> \xA8\xF5 |0
+<U5352> \xA8\xF2 |0
+<U5353> \xA8\xF4 |0
+<U5354> \xA8\xF3 |0
+<U5357> \xAB\x6E |0
+<U535A> \xB3\xD5 |0
+<U535C> \xA4\x52 |0
+<U535D> \x8B\xE3 |0
+<U535E> \xA4\xCB |0
+<U535F> \x8B\x61 |0
+<U5360> \xA5\x65 |0
+<U5361> \xA5\x64 |0
+<U5363> \xCA\x72 |0
+<U5364> \x9A\xF1 |0
+<U5366> \xA8\xF6 |0
+<U5367> \x9E\xB7 |0
+<U5369> \xC6\xC8 |0
+<U536C> \xC9\x57 |0
+<U536D> \xFA\xD1 |0
+<U536E> \xA5\x67 |0
+<U536F> \xA5\x66 |0
+<U5370> \xA6\x4C |0
+<U5371> \xA6\x4D |0
+<U5372> \xCA\x73 |0
+<U5373> \xA7\x59 |0
+<U5374> \xFA\xD2 |0
+<U5375> \xA7\x5A |0
+<U5377> \xA8\xF7 |0
+<U5378> \xA8\xF8 |0
+<U5379> \xA8\xF9 |0
+<U537B> \xAB\x6F |0
+<U537C> \xCD\xF5 |0
+<U537D> \x9E\xBA |0
+<U537E> \xFA\xD4 |0
+<U537F> \xAD\xEB |0
+<U5382> \xC9\x44 |0
+<U5384> \xA4\xCC |0
+<U538A> \xC9\xC4 |0
+<U538E> \xCA\x74 |0
+<U538F> \xCA\x75 |0
+<U5392> \xCB\xD9 |0
+<U5393> \xFA\xD9 |0
+<U5394> \xCB\xDA |0
+<U5396> \xCD\xF7 |0
+<U5397> \xCD\xF6 |0
+<U5398> \xCD\xF9 |0
+<U5399> \xCD\xF8 |0
+<U539A> \xAB\x70 |0
+<U539C> \xD4\x70 |0
+<U539D> \xAD\xED |0
+<U539E> \xD0\xEF |0
+<U539F> \xAD\xEC |0
+<U53A0> \xFA\xDB |0
+<U53A2> \x9C\xE0 |0
+<U53A4> \xD8\x64 |0
+<U53A5> \xB3\xD6 |0
+<U53A6> \xFB\xF7 |0
+<U53A7> \xD8\x65 |0
+<U53A8> \xFB\xFA |0
+<U53A9> \x89\xE7 |0
+<U53AA> \xA0\x7A |0
+<U53AB> \xFA\xDC |0
+<U53AC> \xE1\x46 |0
+<U53AD> \xB9\xBD |0
+<U53AE> \xFA\xDD |0
+<U53B0> \x89\xE9 |0
+<U53B2> \xBC\x46 |0
+<U53B4> \xF1\xEF |0
+<U53B6> \xC6\xC9 |0
+<U53B9> \xC9\x58 |0
+<U53BB> \xA5\x68 |0
+<U53C1> \xFA\xE2 |0
+<U53C2> \x89\xEB |0
+<U53C3> \xB0\xD1 |0
+<U53C5> \xFA\xE3 |0
+<U53C8> \xA4\x53 |0
+<U53C9> \xA4\x65 |0
+<U53CA> \xA4\xCE |0
+<U53CB> \xA4\xCD |0
+<U53CC> \x90\xC8 |0
+<U53CD> \xA4\xCF |0
+<U53D0> \x92\xDA |0
+<U53D1> \x89\x59 |0
+<U53D2> \x9C\xF5 |0
+<U53D4> \xA8\xFB |0
+<U53D6> \xA8\xFA |0
+<U53D7> \xA8\xFC |0
+<U53D8> \x89\x5A |0
+<U53D9> \xFA\xE7 |0
+<U53DA> \x9F\xA2 |0
+<U53DB> \xAB\x71 |0
+<U53DF> \xAD\xEE |0
+<U53E0> \xFA\xEA |0
+<U53E1> \xE8\xFB |0
+<U53E2> \xC2\x4F |0
+<U53E3> \xA4\x66 |0
+<U53E4> \xA5\x6A |0
+<U53E5> \xA5\x79 |0
+<U53E6> \xA5\x74 |0
+<U53E8> \xA5\x6F |0
+<U53E9> \xA5\x6E |0
+<U53EA> \xA5\x75 |0
+<U53EB> \xA5\x73 |0
+<U53EC> \xA5\x6C |0
+<U53ED> \xA5\x7A |0
+<U53EE> \xA5\x6D |0
+<U53EF> \xA5\x69 |0
+<U53F0> \xA5\x78 |0
+<U53F1> \xA5\x77 |0
+<U53F2> \xA5\x76 |0
+<U53F3> \xA5\x6B |0
+<U53F5> \xA5\x72 |0
+<U53F6> \xFA\xED |0
+<U53F7> \x8F\xAD |0
+<U53F8> \xA5\x71 |0
+<U53FB> \xA5\x7B |0
+<U53FC> \xA5\x70 |0
+<U53FE> \xFB\x59 |0
+<U5401> \xA6\x53 |0
+<U5403> \xA6\x59 |0
+<U5404> \xA6\x55 |0
+<U5406> \xA6\x5B |0
+<U5407> \xC9\xC5 |0
+<U5408> \xA6\x58 |0
+<U5409> \xA6\x4E |0
+<U540A> \xA6\x51 |0
+<U540B> \xA6\x54 |0
+<U540C> \xA6\x50 |0
+<U540D> \xA6\x57 |0
+<U540E> \xA6\x5A |0
+<U540F> \xA6\x4F |0
+<U5410> \xA6\x52 |0
+<U5411> \xA6\x56 |0
+<U5412> \xA6\x5C |0
+<U5413> \xFA\xEF |0
+<U5414> \x96\xEF |0
+<U5416> \x9D\xEC |0
+<U5418> \xCA\x7E |0
+<U5419> \xCA\x7B |0
+<U541A> \x9D\xCA |0
+<U541B> \xA7\x67 |0
+<U541C> \xCA\x7C |0
+<U541D> \xA7\x5B |0
+<U541E> \xA7\x5D |0
+<U541F> \xA7\x75 |0
+<U5420> \xA7\x70 |0
+<U5421> \xFD\x6D |0
+<U5423> \x89\xEC |0
+<U5424> \xCA\xA5 |0
+<U5425> \xCA\x7D |0
+<U5426> \xA7\x5F |0
+<U5427> \xA7\x61 |0
+<U5428> \xCA\xA4 |0
+<U5429> \xA7\x68 |0
+<U542A> \xCA\x78 |0
+<U542B> \xA7\x74 |0
+<U542C> \xA7\x76 |0
+<U542D> \xA7\x5C |0
+<U542E> \xA7\x6D |0
+<U542F> \xFB\x44 |0
+<U5430> \xCA\x76 |0
+<U5431> \xA7\x73 |0
+<U5432> \x9D\xE2 |0
+<U5433> \xA7\x64 |0
+<U5435> \xA7\x6E |0
+<U5436> \xA7\x6F |0
+<U5437> \xCA\x77 |0
+<U5438> \xA7\x6C |0
+<U5439> \xA7\x6A |0
+<U543B> \xA7\x6B |0
+<U543C> \xA7\x71 |0
+<U543D> \xCA\xA1 |0
+<U543E> \xA7\x5E |0
+<U5440> \xA7\x72 |0
+<U5441> \xCA\xA3 |0
+<U5442> \xA7\x66 |0
+<U5443> \xA7\x63 |0
+<U5445> \xCA\x7A |0
+<U5446> \xA7\x62 |0
+<U5447> \xCA\xA6 |0
+<U5448> \xA7\x65 |0
+<U544A> \xA7\x69 |0
+<U544B> \x9E\xC0 |0
+<U544D> \x9E\x56 |0
+<U544E> \xA7\x60 |0
+<U544F> \xCA\xA2 |0
+<U5454> \xCA\x79 |0
+<U5460> \xCB\xEB |0
+<U5461> \xCB\xEA |0
+<U5462> \xA9\x4F |0
+<U5463> \xCB\xED |0
+<U5464> \xCB\xEF |0
+<U5465> \xCB\xE4 |0
+<U5466> \xCB\xE7 |0
+<U5467> \xCB\xEE |0
+<U5468> \xA9\x50 |0
+<U5469> \x9F\x79 |0
+<U546A> \x9A\xC7 |0
+<U546B> \xCB\xE1 |0
+<U546C> \xCB\xE5 |0
+<U546D> \xFA\xF4 |0
+<U546F> \xCB\xE9 |0
+<U5470> \xCE\x49 |0
+<U5471> \xA9\x4B |0
+<U5472> \xCE\x4D |0
+<U5473> \xA8\xFD |0
+<U5474> \xCB\xE6 |0
+<U5475> \xA8\xFE |0
+<U5476> \xA9\x4C |0
+<U5477> \xA9\x45 |0
+<U5478> \xA9\x41 |0
+<U547A> \xCB\xE2 |0
+<U547B> \xA9\x44 |0
+<U547C> \xA9\x49 |0
+<U547D> \xA9\x52 |0
+<U547E> \xCB\xE3 |0
+<U547F> \xCB\xDC |0
+<U5480> \xA9\x43 |0
+<U5481> \xCB\xDD |0
+<U5482> \xCB\xDF |0
+<U5484> \xA9\x46 |0
+<U5485> \x98\xA1 |0
+<U5486> \xA9\x48 |0
+<U5487> \xCB\xDB |0
+<U5488> \xCB\xE0 |0
+<U548B> \xA9\x51 |0
+<U548C> \xA9\x4D |0
+<U548D> \xCB\xE8 |0
+<U548E> \xA9\x53 |0
+<U548F> \xFA\xF8 |0
+<U5490> \xA9\x4A |0
+<U5491> \xCB\xDE |0
+<U5492> \xA9\x47 |0
+<U5493> \x89\xF0 |0
+<U5494> \x9E\x47 |0
+<U5495> \xA9\x42 |0
+<U5496> \xA9\x40 |0
+<U5497> \x9D\xF7 |0
+<U5498> \xCB\xEC |0
+<U549A> \xA9\x4E |0
+<U549C> \x9F\xD3 |0
+<U549E> \x9A\xCA |0
+<U54A0> \xCE\x48 |0
+<U54A1> \xCD\xFB |0
+<U54A2> \xCE\x4B |0
+<U54A3> \x89\xF1 |0
+<U54A4> \xFA\xF9 |0
+<U54A5> \xCD\xFD |0
+<U54A6> \xAB\x78 |0
+<U54A7> \xAB\xA8 |0
+<U54A8> \xAB\x74 |0
+<U54A9> \xAB\xA7 |0
+<U54AA> \xAB\x7D |0
+<U54AB> \xAB\xA4 |0
+<U54AC> \xAB\x72 |0
+<U54AD> \xCD\xFC |0
+<U54AE> \xCE\x43 |0
+<U54AF> \xAB\xA3 |0
+<U54B0> \xCE\x4F |0
+<U54B1> \xAB\xA5 |0
+<U54B2> \x8E\x5A |0
+<U54B3> \xAB\x79 |0
+<U54B4> \x89\xF2 |0
+<U54B6> \xCE\x45 |0
+<U54B7> \xCE\x42 |0
+<U54B8> \xAB\x77 |0
+<U54B9> \x89\xF3 |0
+<U54BA> \xCD\xFA |0
+<U54BB> \xAB\xA6 |0
+<U54BC> \xCE\x4A |0
+<U54BD> \xAB\x7C |0
+<U54BE> \xCE\x4C |0
+<U54BF> \xAB\xA9 |0
+<U54C0> \xAB\x73 |0
+<U54C1> \xAB\x7E |0
+<U54C2> \xAB\x7B |0
+<U54C3> \xCE\x40 |0
+<U54C4> \xAB\xA1 |0
+<U54C5> \xCE\x46 |0
+<U54C6> \xCE\x47 |0
+<U54C7> \xAB\x7A |0
+<U54C8> \xAB\xA2 |0
+<U54C9> \xAB\x76 |0
+<U54CB> \x92\x5D |0
+<U54CC> \x8B\x51 |0
+<U54CD> \x92\xE0 |0
+<U54CE> \xAB\x75 |0
+<U54CF> \xCD\xFE |0
+<U54D0> \x89\xF4 |0
+<U54D6> \xCE\x44 |0
+<U54DA> \x9F\xD4 |0
+<U54DE> \xCE\x4E |0
+<U54E0> \xD1\x44 |0
+<U54E1> \xAD\xFB |0
+<U54E2> \xD0\xF1 |0
+<U54E3> \x8A\x79 |0
+<U54E4> \xD0\xF6 |0
+<U54E5> \xAD\xF4 |0
+<U54E6> \xAE\x40 |0
+<U54E7> \xD0\xF4 |0
+<U54E8> \xAD\xEF |0
+<U54E9> \xAD\xF9 |0
+<U54EA> \xAD\xFE |0
+<U54EB> \xD0\xFB |0
+<U54ED> \xAD\xFA |0
+<U54EE> \xAD\xFD |0
+<U54EF> \x89\xF5 |0
+<U54F1> \xD0\xFE |0
+<U54F2> \xAD\xF5 |0
+<U54F3> \xD0\xF5 |0
+<U54F7> \xD1\x42 |0
+<U54F8> \xD1\x43 |0
+<U54FA> \xAD\xF7 |0
+<U54FB> \xD1\x41 |0
+<U54FC> \xAD\xF3 |0
+<U54FD> \xAE\x43 |0
+<U54FF> \xD0\xF8 |0
+<U5501> \xAD\xF1 |0
+<U5502> \x97\xA7 |0
+<U5503> \xD1\x46 |0
+<U5504> \xD0\xF9 |0
+<U5505> \xD0\xFD |0
+<U5506> \xAD\xF6 |0
+<U5507> \xAE\x42 |0
+<U5508> \xD0\xFA |0
+<U5509> \xAD\xFC |0
+<U550A> \xD1\x40 |0
+<U550B> \xD1\x47 |0
+<U550C> \xD4\xA1 |0
+<U550D> \x93\xBA |0
+<U550E> \xD1\x45 |0
+<U550F> \xAE\x44 |0
+<U5510> \xAD\xF0 |0
+<U5511> \xD0\xFC |0
+<U5512> \xD0\xF3 |0
+<U5513> \x9E\x58 |0
+<U5514> \xAD\xF8 |0
+<U5517> \xD0\xF2 |0
+<U5518> \x89\xF6 |0
+<U551A> \xD0\xF7 |0
+<U551E> \x9E\x57 |0
+<U5523> \x89\xF7 |0
+<U5525> \x8A\x41 |0
+<U5526> \xD0\xF0 |0
+<U5527> \xAE\x41 |0
+<U5528> \x89\xF8 |0
+<U552A> \xD4\x77 |0
+<U552B> \xFA\xF1 |0
+<U552C> \xB0\xE4 |0
+<U552D> \xD4\xA7 |0
+<U552E> \xB0\xE2 |0
+<U552F> \xB0\xDF |0
+<U5530> \xD4\x7C |0
+<U5531> \xB0\xDB |0
+<U5532> \xD4\xA2 |0
+<U5533> \xB0\xE6 |0
+<U5534> \xD4\x76 |0
+<U5535> \xD4\x7B |0
+<U5536> \xD4\x7A |0
+<U5537> \xAD\xF2 |0
+<U5538> \xB0\xE1 |0
+<U5539> \xD4\xA5 |0
+<U553B> \xD4\xA8 |0
+<U553C> \xD4\x73 |0
+<U553E> \xB3\xE8 |0
+<U553F> \x89\xFA |0
+<U5540> \xD4\xA9 |0
+<U5541> \xB0\xE7 |0
+<U5543> \xB0\xD9 |0
+<U5544> \xB0\xD6 |0
+<U5545> \xD4\x7E |0
+<U5546> \xB0\xD3 |0
+<U5547> \xFB\x42 |0
+<U5548> \xD4\xA6 |0
+<U5549> \xFA\xBF |0
+<U554A> \xB0\xDA |0
+<U554B> \xD4\xAA |0
+<U554D> \xD4\x74 |0
+<U554E> \xD4\xA4 |0
+<U554F> \xB0\xDD |0
+<U5550> \xD4\x75 |0
+<U5551> \xD4\x78 |0
+<U5552> \xD4\x7D |0
+<U5553> \xFB\xA3 |0
+<U5555> \xB0\xDE |0
+<U5556> \xB0\xDC |0
+<U5557> \xB0\xE8 |0
+<U555C> \xB0\xE3 |0
+<U555D> \xFA\xF7 |0
+<U555E> \xB0\xD7 |0
+<U555F> \xB1\xD2 |0
+<U5561> \xB0\xD8 |0
+<U5562> \xD4\x79 |0
+<U5563> \xB0\xE5 |0
+<U5564> \xB0\xE0 |0
+<U5565> \xD4\xA3 |0
+<U5566> \xB0\xD5 |0
+<U5569> \x9E\x4E |0
+<U556A> \xB0\xD4 |0
+<U556B> \x94\xDC |0
+<U5571> \x95\xDA |0
+<U5572> \x9D\xF8 |0
+<U5573> \x9F\x6A |0
+<U5575> \xD4\x71 |0
+<U5576> \xD4\x72 |0
+<U5577> \xD8\x6A |0
+<U5579> \x8A\xB7 |0
+<U557B> \xB3\xD7 |0
+<U557C> \xB3\xDA |0
+<U557D> \xD8\x75 |0
+<U557E> \xB3\xEE |0
+<U557F> \xD8\x78 |0
+<U5580> \xB3\xD8 |0
+<U5581> \xD8\x71 |0
+<U5582> \xB3\xDE |0
+<U5583> \xB3\xE4 |0
+<U5584> \xB5\xBD |0
+<U5586> \xFB\x46 |0
+<U5587> \xB3\xE2 |0
+<U5588> \xD8\x6E |0
+<U5589> \xB3\xEF |0
+<U558A> \xB3\xDB |0
+<U558B> \xB3\xE3 |0
+<U558C> \xD8\x76 |0
+<U558D> \xDC\xD7 |0
+<U558E> \xD8\x7B |0
+<U558F> \xD8\x6F |0
+<U5590> \x8A\x46 |0
+<U5591> \xD8\x66 |0
+<U5592> \xD8\x73 |0
+<U5593> \xD8\x6D |0
+<U5594> \xB3\xE1 |0
+<U5595> \xD8\x79 |0
+<U5598> \xB3\xDD |0
+<U5599> \xB3\xF1 |0
+<U559A> \xB3\xEA |0
+<U559C> \xB3\xDF |0
+<U559D> \xB3\xDC |0
+<U559F> \xB3\xE7 |0
+<U55A1> \xD8\x7A |0
+<U55A2> \xD8\x6C |0
+<U55A3> \xD8\x72 |0
+<U55A4> \xD8\x74 |0
+<U55A5> \xD8\x68 |0
+<U55A6> \xD8\x77 |0
+<U55A7> \xB3\xD9 |0
+<U55A8> \xD8\x67 |0
+<U55A9> \xFB\x47 |0
+<U55AA> \xB3\xE0 |0
+<U55AB> \xB3\xF0 |0
+<U55AC> \xB3\xEC |0
+<U55AD> \xD8\x69 |0
+<U55AE> \xB3\xE6 |0
+<U55B0> \x91\x48 |0
+<U55B1> \xB3\xED |0
+<U55B2> \xB3\xE9 |0
+<U55B3> \xB3\xE5 |0
+<U55B4> \x92\xDE |0
+<U55B5> \xD8\x70 |0
+<U55B9> \x8B\x53 |0
+<U55BA> \x9D\xF6 |0
+<U55BB> \xB3\xEB |0
+<U55BC> \x9B\xDA |0
+<U55BF> \xDC\xD5 |0
+<U55C0> \xDC\xD1 |0
+<U55C1> \x9D\x7E |0
+<U55C2> \xDC\xE0 |0
+<U55C3> \xDC\xCA |0
+<U55C4> \xDC\xD3 |0
+<U55C5> \xB6\xE5 |0
+<U55C6> \xB6\xE6 |0
+<U55C7> \xB6\xDE |0
+<U55C8> \xDC\xDC |0
+<U55C9> \xB6\xE8 |0
+<U55CA> \xDC\xCF |0
+<U55CB> \xDC\xCE |0
+<U55CC> \xDC\xCC |0
+<U55CD> \xDC\xDE |0
+<U55CE> \xB6\xDC |0
+<U55CF> \xDC\xD8 |0
+<U55D0> \xDC\xCD |0
+<U55D1> \xB6\xDF |0
+<U55D2> \xDC\xD6 |0
+<U55D3> \xB6\xDA |0
+<U55D4> \xDC\xD2 |0
+<U55D5> \xDC\xD9 |0
+<U55D6> \xDC\xDB |0
+<U55D7> \x89\xFD |0
+<U55D8> \x99\xE4 |0
+<U55D9> \xDC\xDF |0
+<U55DA> \xB6\xE3 |0
+<U55DB> \xDC\xCB |0
+<U55DC> \xB6\xDD |0
+<U55DD> \xDC\xD0 |0
+<U55DE> \x9E\x43 |0
+<U55DF> \xB6\xD8 |0
+<U55E1> \xB6\xE4 |0
+<U55E2> \xDC\xDA |0
+<U55E3> \xB6\xE0 |0
+<U55E4> \xB6\xE1 |0
+<U55E5> \xB6\xE7 |0
+<U55E6> \xB6\xDB |0
+<U55E7> \xA2\x5F |0
+<U55E8> \xB6\xD9 |0
+<U55E9> \xDC\xD4 |0
+<U55EA> \x9D\xE9 |0
+<U55EC> \x8F\x52 |0
+<U55EF> \xB6\xE2 |0
+<U55F0> \x9D\xF5 |0
+<U55F1> \x9D\xF0 |0
+<U55F2> \xDC\xDD |0
+<U55F5> \x99\xE7 |0
+<U55F6> \xB9\xCD |0
+<U55F7> \xB9\xC8 |0
+<U55F9> \xE1\x55 |0
+<U55FA> \xE1\x51 |0
+<U55FB> \x8B\xBD |0
+<U55FC> \xE1\x4B |0
+<U55FD> \xB9\xC2 |0
+<U55FE> \xB9\xBE |0
+<U55FF> \xE1\x54 |0
+<U5600> \xB9\xBF |0
+<U5601> \xE1\x4E |0
+<U5602> \xE1\x50 |0
+<U5604> \xE1\x53 |0
+<U5605> \x9D\xEF |0
+<U5606> \xB9\xC4 |0
+<U5608> \xB9\xCB |0
+<U5609> \xB9\xC5 |0
+<U560C> \xE1\x49 |0
+<U560D> \xB9\xC6 |0
+<U560E> \xB9\xC7 |0
+<U560F> \xE1\x4C |0
+<U5610> \xB9\xCC |0
+<U5611> \x9F\xB7 |0
+<U5612> \xE1\x4A |0
+<U5613> \xE1\x4F |0
+<U5614> \xB9\xC3 |0
+<U5615> \xE1\x48 |0
+<U5616> \xB9\xC9 |0
+<U5617> \xB9\xC1 |0
+<U561B> \xB9\xC0 |0
+<U561C> \xE1\x4D |0
+<U561D> \xE1\x52 |0
+<U561E> \x9D\xD0 |0
+<U561F> \xB9\xCA |0
+<U5620> \x9F\xEB |0
+<U5621> \x8D\xA9 |0
+<U5622> \x9D\xCF |0
+<U5623> \x98\xE1 |0
+<U5625> \x9D\xE5 |0
+<U5627> \xE1\x47 |0
+<U5629> \xBC\x4D |0
+<U562A> \xE5\x47 |0
+<U562C> \xE5\x44 |0
+<U562D> \x9D\xC8 |0
+<U562E> \xBC\x47 |0
+<U562F> \xBC\x53 |0
+<U5630> \xBC\x54 |0
+<U5632> \xBC\x4A |0
+<U5633> \xE5\x42 |0
+<U5634> \xBC\x4C |0
+<U5635> \xE4\xF9 |0
+<U5636> \xBC\x52 |0
+<U5637> \xFB\x4F |0
+<U5638> \xE5\x46 |0
+<U5639> \xBC\x49 |0
+<U563A> \xE5\x48 |0
+<U563B> \xBC\x48 |0
+<U563D> \xE5\x43 |0
+<U563E> \xE5\x45 |0
+<U563F> \xBC\x4B |0
+<U5640> \xE5\x41 |0
+<U5641> \xE4\xFA |0
+<U5642> \xE4\xF7 |0
+<U5643> \x9D\xEB |0
+<U5645> \xD8\x6B |0
+<U5646> \xE4\xFD |0
+<U5648> \xE4\xF6 |0
+<U5649> \xE4\xFC |0
+<U564A> \xE4\xFB |0
+<U564C> \xE4\xF8 |0
+<U564D> \xFB\x54 |0
+<U564E> \xBC\x4F |0
+<U564F> \xFB\x55 |0
+<U5650> \x9A\xA2 |0
+<U5652> \x8A\xD6 |0
+<U5653> \xBC\x4E |0
+<U5654> \x9A\x5F |0
+<U5657> \xBC\x50 |0
+<U5658> \xE4\xFE |0
+<U5659> \xBE\xB2 |0
+<U565A> \xE5\x40 |0
+<U565D> \x9E\xF5 |0
+<U565E> \xE9\x45 |0
+<U5660> \xE8\xFD |0
+<U5661> \x8F\xB7 |0
+<U5662> \xBE\xBE |0
+<U5663> \xE9\x42 |0
+<U5664> \xBE\xB6 |0
+<U5665> \xBE\xBA |0
+<U5666> \xE9\x41 |0
+<U5668> \xBE\xB9 |0
+<U5669> \xBE\xB5 |0
+<U566A> \xBE\xB8 |0
+<U566B> \xBE\xB3 |0
+<U566C> \xBE\xBD |0
+<U566D> \xE9\x43 |0
+<U566E> \xE8\xFE |0
+<U566F> \xBE\xBC |0
+<U5670> \xE8\xFC |0
+<U5671> \xBE\xBB |0
+<U5672> \xE9\x44 |0
+<U5673> \xE9\x40 |0
+<U5674> \xBC\x51 |0
+<U5676> \xBE\xBF |0
+<U5677> \xE9\x46 |0
+<U5678> \xBE\xB7 |0
+<U5679> \xBE\xB4 |0
+<U567A> \x9A\xD2 |0
+<U567B> \x9E\x6A |0
+<U567C> \x9E\xE8 |0
+<U567E> \xEC\xC6 |0
+<U567F> \xEC\xC8 |0
+<U5680> \xC0\x7B |0
+<U5681> \xEC\xC9 |0
+<U5682> \xEC\xC7 |0
+<U5683> \xEC\xC5 |0
+<U5684> \xEC\xC4 |0
+<U5685> \xC0\x7D |0
+<U5686> \xEC\xC3 |0
+<U5687> \xC0\x7E |0
+<U5689> \x8B\xBF |0
+<U568A> \x91\xC2 |0
+<U568B> \x9D\x62 |0
+<U568C> \xEC\xC1 |0
+<U568D> \xEC\xC2 |0
+<U568E> \xC0\x7A |0
+<U568F> \xC0\xA1 |0
+<U5690> \xC0\x7C |0
+<U5692> \x92\x60 |0
+<U5693> \xEC\xC0 |0
+<U5695> \xC2\x50 |0
+<U5697> \xEF\xBC |0
+<U5698> \xEF\xBA |0
+<U5699> \xEF\xBF |0
+<U569A> \xEF\xBD |0
+<U569C> \xEF\xBB |0
+<U569D> \xEF\xBE |0
+<U569E> \x92\x5E |0
+<U569F> \x91\xC1 |0
+<U56A1> \x8A\xC5 |0
+<U56A4> \x97\xA3 |0
+<U56A5> \xC3\x60 |0
+<U56A6> \xF1\xF2 |0
+<U56A7> \xF1\xF3 |0
+<U56A8> \xC4\x56 |0
+<U56AA> \xF1\xF4 |0
+<U56AB> \xF1\xF0 |0
+<U56AC> \xF1\xF5 |0
+<U56AD> \xF1\xF1 |0
+<U56AE> \xC2\x51 |0
+<U56AF> \x8B\x6C |0
+<U56B1> \x8D\x7E |0
+<U56B2> \xF3\xFE |0
+<U56B3> \xF4\x41 |0
+<U56B4> \xC4\x59 |0
+<U56B5> \xF4\x40 |0
+<U56B6> \xC4\x58 |0
+<U56B7> \xC4\x57 |0
+<U56B9> \x9C\x54 |0
+<U56BC> \xC4\x5A |0
+<U56BD> \xF5\xC5 |0
+<U56BE> \xF5\xC6 |0
+<U56BF> \x9D\xBD |0
+<U56C0> \xC4\xDA |0
+<U56C1> \xC4\xD9 |0
+<U56C2> \xC4\xDB |0
+<U56C3> \xF5\xC4 |0
+<U56C5> \xF6\xD8 |0
+<U56C6> \xF6\xD7 |0
+<U56C8> \xC5\x6D |0
+<U56C9> \xC5\x6F |0
+<U56CA> \xC5\x6E |0
+<U56CB> \xF6\xD9 |0
+<U56CC> \xC5\xC8 |0
+<U56CD> \xF8\xA6 |0
+<U56D1> \xC5\xF1 |0
+<U56D3> \xF8\xA5 |0
+<U56D4> \xF8\xEE |0
+<U56D6> \x9C\xC5 |0
+<U56D7> \xC9\x49 |0
+<U56DA> \xA5\x7D |0
+<U56DB> \xA5\x7C |0
+<U56DD> \xA6\x5F |0
+<U56DE> \xA6\x5E |0
+<U56DF> \xC9\xC7 |0
+<U56E0> \xA6\x5D |0
+<U56E1> \xC9\xC6 |0
+<U56E2> \x89\x5B |0
+<U56E4> \xA7\x79 |0
+<U56E5> \xCA\xA9 |0
+<U56E7> \xCA\xA8 |0
+<U56EA> \xA7\x77 |0
+<U56EB> \xA7\x7A |0
+<U56ED> \xFB\x5C |0
+<U56EE> \xCA\xA7 |0
+<U56EF> \xFB\x5B |0
+<U56F0> \xA7\x78 |0
+<U56F1> \xFB\x57 |0
+<U56F7> \xCB\xF0 |0
+<U56F9> \xCB\xF1 |0
+<U56FA> \xA9\x54 |0
+<U56FD> \x98\xC7 |0
+<U56FF> \xAB\xAA |0
+<U5700> \xFB\x5A |0
+<U5701> \xD1\x48 |0
+<U5702> \xD1\x49 |0
+<U5703> \xAE\x45 |0
+<U5704> \xAE\x46 |0
+<U5707> \xD4\xAC |0
+<U5708> \xB0\xE9 |0
+<U5709> \xB0\xEB |0
+<U570A> \xD4\xAB |0
+<U570B> \xB0\xEA |0
+<U570C> \xD8\x7C |0
+<U570D> \xB3\xF2 |0
+<U5712> \xB6\xE9 |0
+<U5713> \xB6\xEA |0
+<U5714> \xDC\xE1 |0
+<U5715> \x9C\xEE |0
+<U5716> \xB9\xCF |0
+<U5718> \xB9\xCE |0
+<U571A> \xE5\x49 |0
+<U571B> \xE9\x48 |0
+<U571C> \xE9\x47 |0
+<U571D> \x92\xE2 |0
+<U571E> \xF9\x6B |0
+<U571F> \xA4\x67 |0
+<U5720> \xC9\x59 |0
+<U5722> \xC9\x6E |0
+<U5723> \xC9\x6F |0
+<U5728> \xA6\x62 |0
+<U5729> \xA6\x66 |0
+<U572A> \xC9\xC9 |0
+<U572C> \xA6\x64 |0
+<U572D> \xA6\x63 |0
+<U572E> \xC9\xC8 |0
+<U572F> \xA6\x65 |0
+<U5730> \xA6\x61 |0
+<U5732> \x94\xA7 |0
+<U5733> \xA6\x60 |0
+<U5734> \xC9\xCA |0
+<U573B> \xA7\xA6 |0
+<U573E> \xA7\xA3 |0
+<U573F> \x9B\xD4 |0
+<U5740> \xA7\x7D |0
+<U5741> \xCA\xAA |0
+<U5742> \xFB\x64 |0
+<U5743> \xFB\x76 |0
+<U5745> \xCA\xAB |0
+<U5746> \xFB\x60 |0
+<U5747> \xA7\xA1 |0
+<U5749> \xCA\xAD |0
+<U574A> \xA7\x7B |0
+<U574B> \xCA\xAE |0
+<U574C> \xCA\xAC |0
+<U574D> \xA7\x7E |0
+<U574E> \xA7\xA2 |0
+<U574F> \xA7\xA5 |0
+<U5750> \xA7\xA4 |0
+<U5751> \xA7\x7C |0
+<U5752> \xCA\xAF |0
+<U5754> \x99\xE5 |0
+<U5757> \x9A\xC2 |0
+<U575B> \x91\xFB |0
+<U575F> \xA0\x73 |0
+<U5761> \xA9\x59 |0
+<U5762> \xCB\xFE |0
+<U5764> \xA9\x5B |0
+<U5766> \xA9\x5A |0
+<U5767> \x9F\x72 |0
+<U5768> \xCC\x40 |0
+<U5769> \xA9\x58 |0
+<U576A> \xA9\x57 |0
+<U576B> \xCB\xF5 |0
+<U576D> \xCB\xF4 |0
+<U576F> \xCB\xF2 |0
+<U5770> \xCB\xF7 |0
+<U5771> \xCB\xF6 |0
+<U5772> \xCB\xF3 |0
+<U5773> \xCB\xFC |0
+<U5774> \xCB\xFD |0
+<U5775> \xCB\xFA |0
+<U5776> \xCB\xF8 |0
+<U5777> \xA9\x56 |0
+<U577A> \x9F\xCC |0
+<U577B> \xCB\xFB |0
+<U577C> \xA9\x5C |0
+<U577D> \xCC\x41 |0
+<U577E> \x98\xA5 |0
+<U577F> \x92\xE8 |0
+<U5780> \xCB\xF9 |0
+<U5782> \xAB\xAB |0
+<U5783> \xA9\x55 |0
+<U5788> \x9B\xBC |0
+<U578A> \x96\xF3 |0
+<U578B> \xAB\xAC |0
+<U578C> \xCE\x54 |0
+<U578D> \x92\xE7 |0
+<U578F> \xCE\x5A |0
+<U5790> \xFC\x67 |0
+<U5793> \xAB\xB2 |0
+<U5794> \xCE\x58 |0
+<U5795> \xCE\x5E |0
+<U5797> \xCE\x55 |0
+<U5798> \xCE\x59 |0
+<U5799> \xCE\x5B |0
+<U579A> \xCE\x5D |0
+<U579B> \xCE\x57 |0
+<U579C> \x8B\x7D |0
+<U579D> \xCE\x56 |0
+<U579E> \xCE\x51 |0
+<U579F> \xCE\x52 |0
+<U57A0> \xAB\xAD |0
+<U57A1> \x9B\xF4 |0
+<U57A2> \xAB\xAF |0
+<U57A3> \xAB\xAE |0
+<U57A4> \xCE\x53 |0
+<U57A5> \xCE\x5C |0
+<U57A7> \x9E\xF7 |0
+<U57AA> \x9E\xC1 |0
+<U57AE> \xAB\xB1 |0
+<U57B4> \x99\x6F |0
+<U57B5> \xCE\x50 |0
+<U57B6> \xD1\x53 |0
+<U57B8> \xD1\x52 |0
+<U57B9> \xD1\x57 |0
+<U57BA> \xD1\x4E |0
+<U57BB> \x96\xF1 |0
+<U57BC> \xD1\x51 |0
+<U57BD> \xD1\x50 |0
+<U57BE> \x8E\x41 |0
+<U57BF> \xD1\x54 |0
+<U57C1> \xD1\x58 |0
+<U57C2> \xAE\x47 |0
+<U57C3> \xAE\x4A |0
+<U57C4> \x95\x4A |0
+<U57C6> \xD1\x4F |0
+<U57C7> \xD1\x55 |0
+<U57C8> \x97\xE6 |0
+<U57CB> \xAE\x49 |0
+<U57CC> \xD1\x4A |0
+<U57CE> \xAB\xB0 |0
+<U57CF> \xD4\xBA |0
+<U57D0> \xD1\x56 |0
+<U57D2> \xD1\x4D |0
+<U57D4> \xAE\x48 |0
+<U57D5> \xD1\x4C |0
+<U57D7> \x96\xF5 |0
+<U57DC> \xD4\xB1 |0
+<U57DD> \x92\xE6 |0
+<U57DE> \x9F\x42 |0
+<U57DF> \xB0\xEC |0
+<U57E0> \xB0\xF0 |0
+<U57E1> \xD4\xC1 |0
+<U57E2> \xD4\xAF |0
+<U57E3> \xD4\xBD |0
+<U57E4> \xB0\xF1 |0
+<U57E5> \xD4\xBF |0
+<U57E6> \xFB\x67 |0
+<U57E7> \xD4\xC5 |0
+<U57E9> \xD4\xC9 |0
+<U57EC> \xD4\xC0 |0
+<U57ED> \xD4\xB4 |0
+<U57EE> \xD4\xBC |0
+<U57EF> \x99\xA9 |0
+<U57F0> \xD4\xCA |0
+<U57F1> \xD4\xC8 |0
+<U57F2> \xD4\xBE |0
+<U57F3> \xD4\xB9 |0
+<U57F4> \xD4\xB2 |0
+<U57F5> \xD8\xA6 |0
+<U57F6> \xD4\xB0 |0
+<U57F7> \xB0\xF5 |0
+<U57F8> \xD4\xB7 |0
+<U57F9> \xB0\xF6 |0
+<U57FA> \xB0\xF2 |0
+<U57FB> \xD4\xAD |0
+<U57FC> \xD4\xC3 |0
+<U57FD> \xD4\xB5 |0
+<U57FE> \xFA\xE6 |0
+<U5800> \xD4\xB3 |0
+<U5801> \xD4\xC6 |0
+<U5802> \xB0\xF3 |0
+<U5803> \xFB\x69 |0
+<U5804> \xD4\xCC |0
+<U5805> \xB0\xED |0
+<U5806> \xB0\xEF |0
+<U5807> \xD4\xBB |0
+<U5808> \xD4\xB6 |0
+<U5809> \xAE\x4B |0
+<U580A> \xB0\xEE |0
+<U580B> \xD4\xB8 |0
+<U580C> \xD4\xC7 |0
+<U580D> \xD4\xCB |0
+<U580E> \xD4\xC2 |0
+<U5810> \xD4\xC4 |0
+<U5812> \x97\xE5 |0
+<U5814> \xD4\xAE |0
+<U5819> \xD8\xA1 |0
+<U581B> \xD8\xAA |0
+<U581C> \xD8\xA9 |0
+<U581D> \xB3\xFA |0
+<U581E> \xD8\xA2 |0
+<U5820> \xB3\xFB |0
+<U5821> \xB3\xF9 |0
+<U5822> \x96\x7D |0
+<U5823> \xD8\xA4 |0
+<U5824> \xB3\xF6 |0
+<U5825> \xD8\xA8 |0
+<U5826> \xFB\x6C |0
+<U5827> \xD8\xA3 |0
+<U5828> \xD8\xA5 |0
+<U5829> \xD8\x7D |0
+<U582A> \xB3\xF4 |0
+<U582C> \xD8\xB2 |0
+<U582D> \xD8\xB1 |0
+<U582E> \xD8\xAE |0
+<U582F> \xB3\xF3 |0
+<U5830> \xB3\xF7 |0
+<U5831> \xB3\xF8 |0
+<U5832> \xD1\x4B |0
+<U5833> \xD8\xAB |0
+<U5834> \xB3\xF5 |0
+<U5835> \xB0\xF4 |0
+<U5836> \xD8\xAD |0
+<U5837> \xD8\x7E |0
+<U5838> \xD8\xB0 |0
+<U5839> \xD8\xAF |0
+<U583A> \x99\xA2 |0
+<U583B> \xD8\xB3 |0
+<U583D> \xDC\xEF |0
+<U583F> \xD8\xAC |0
+<U5840> \x9A\xBB |0
+<U5844> \x9A\x65 |0
+<U5847> \x94\x4E |0
+<U5848> \xD8\xA7 |0
+<U5849> \xDC\xE7 |0
+<U584A> \xB6\xF4 |0
+<U584B> \xB6\xF7 |0
+<U584C> \xB6\xF2 |0
+<U584D> \xDC\xE6 |0
+<U584E> \xDC\xEA |0
+<U584F> \xDC\xE5 |0
+<U5851> \xB6\xEC |0
+<U5852> \xB6\xF6 |0
+<U5853> \xDC\xE2 |0
+<U5854> \xB6\xF0 |0
+<U5855> \xDC\xE9 |0
+<U5857> \xB6\xEE |0
+<U5858> \xB6\xED |0
+<U5859> \xDC\xEC |0
+<U585A> \xB6\xEF |0
+<U585B> \xDC\xEE |0
+<U585C> \xFB\x6E |0
+<U585D> \xDC\xEB |0
+<U585E> \xB6\xEB |0
+<U585F> \x99\xDF |0
+<U5862> \xB6\xF5 |0
+<U5863> \xDC\xF0 |0
+<U5864> \xDC\xE4 |0
+<U5865> \xDC\xED |0
+<U5868> \xDC\xE3 |0
+<U5869> \x98\xE3 |0
+<U586B> \xB6\xF1 |0
+<U586C> \x92\x54 |0
+<U586D> \xB6\xF3 |0
+<U586F> \xDC\xE8 |0
+<U5871> \xDC\xF1 |0
+<U5872> \x96\x7B |0
+<U5873> \x8A\xAF |0
+<U5874> \xE1\x5D |0
+<U5875> \xB9\xD0 |0
+<U5876> \xE1\x63 |0
+<U5879> \xB9\xD5 |0
+<U587A> \xE1\x5F |0
+<U587B> \xE1\x66 |0
+<U587C> \xE1\x57 |0
+<U587D> \xB9\xD7 |0
+<U587E> \xB9\xD1 |0
+<U587F> \xE1\x5C |0
+<U5880> \xBC\x55 |0
+<U5881> \xE1\x5B |0
+<U5882> \xE1\x64 |0
+<U5883> \xB9\xD2 |0
+<U5885> \xB9\xD6 |0
+<U5886> \xE1\x5A |0
+<U5887> \xE1\x60 |0
+<U5888> \xE1\x65 |0
+<U5889> \xE1\x56 |0
+<U588A> \xB9\xD4 |0
+<U588B> \xE1\x5E |0
+<U588E> \xE1\x62 |0
+<U588F> \xE1\x68 |0
+<U5890> \xE1\x58 |0
+<U5891> \xE1\x61 |0
+<U5893> \xB9\xD3 |0
+<U5894> \xE1\x67 |0
+<U5898> \xE1\x59 |0
+<U5899> \x8B\xAF |0
+<U589A> \x9E\xBD |0
+<U589C> \xBC\x59 |0
+<U589D> \xE5\x4B |0
+<U589E> \xBC\x57 |0
+<U589F> \xBC\x56 |0
+<U58A0> \xE5\x4D |0
+<U58A1> \xE5\x52 |0
+<U58A3> \xE5\x4E |0
+<U58A5> \xE5\x51 |0
+<U58A6> \xBC\x5C |0
+<U58A7> \x9E\xE6 |0
+<U58A8> \xBE\xA5 |0
+<U58A9> \xBC\x5B |0
+<U58AA> \xFB\x6F |0
+<U58AB> \xE5\x4A |0
+<U58AC> \xE5\x50 |0
+<U58AE> \xBC\x5A |0
+<U58AF> \xE5\x4F |0
+<U58B0> \x8E\xE1 |0
+<U58B1> \xE5\x4C |0
+<U58B3> \xBC\x58 |0
+<U58B5> \x9B\x7D |0
+<U58B6> \x9C\x7E |0
+<U58BA> \xE9\x4D |0
+<U58BB> \xF9\xD9 |0
+<U58BC> \xE9\x4F |0
+<U58BD> \xE9\x4A |0
+<U58BE> \xBE\xC1 |0
+<U58BF> \xE9\x4C |0
+<U58C1> \xBE\xC0 |0
+<U58C2> \xE9\x4E |0
+<U58C5> \xBE\xC3 |0
+<U58C6> \xE9\x50 |0
+<U58C7> \xBE\xC2 |0
+<U58C8> \xE9\x49 |0
+<U58C9> \xE9\x4B |0
+<U58CB> \x92\xEA |0
+<U58CE> \xC0\xA5 |0
+<U58CF> \xEC\xCC |0
+<U58D1> \xC0\xA4 |0
+<U58D2> \xEC\xCD |0
+<U58D3> \xC0\xA3 |0
+<U58D4> \xEC\xCB |0
+<U58D5> \xC0\xA2 |0
+<U58D6> \xEC\xCA |0
+<U58D8> \xC2\x53 |0
+<U58D9> \xC2\x52 |0
+<U58DA> \xF1\xF6 |0
+<U58DB> \xF1\xF8 |0
+<U58DC> \xFB\x72 |0
+<U58DD> \xF1\xF7 |0
+<U58DE> \xC3\x61 |0
+<U58DF> \xC3\x62 |0
+<U58E0> \xFB\x71 |0
+<U58E2> \xC3\x63 |0
+<U58E3> \xF4\x42 |0
+<U58E4> \xC4\x5B |0
+<U58E7> \xF7\xD3 |0
+<U58E8> \xF7\xD2 |0
+<U58E9> \xC5\xF2 |0
+<U58EB> \xA4\x68 |0
+<U58EC> \xA4\xD0 |0
+<U58EF> \xA7\xA7 |0
+<U58F0> \x89\x5C |0
+<U58F2> \x98\xF0 |0
+<U58F3> \x96\xF2 |0
+<U58F4> \xCE\x5F |0
+<U58F9> \xB3\xFC |0
+<U58FA> \xB3\xFD |0
+<U58FB> \xFB\x74 |0
+<U58FC> \xDC\xF2 |0
+<U58FD> \xB9\xD8 |0
+<U58FE> \xE1\x69 |0
+<U58FF> \xE5\x53 |0
+<U5902> \x8B\xC1 |0
+<U5903> \xC9\x5A |0
+<U5904> \x89\x5D |0
+<U5905> \x89\xDE |0
+<U5906> \xCA\xB0 |0
+<U5907> \x89\x5E |0
+<U590A> \xC6\xCA |0
+<U590C> \xCC\x42 |0
+<U590D> \xCE\x60 |0
+<U590E> \xD1\x59 |0
+<U590F> \xAE\x4C |0
+<U5911> \xFE\x42 |0
+<U5912> \xF1\xF9 |0
+<U5914> \xC4\xDC |0
+<U5915> \xA4\x69 |0
+<U5916> \xA5\x7E |0
+<U5917> \xC9\x70 |0
+<U5919> \xA6\x67 |0
+<U591A> \xA6\x68 |0
+<U591C> \xA9\x5D |0
+<U591F> \xFB\x7B |0
+<U5920> \xB0\xF7 |0
+<U5922> \xB9\xDA |0
+<U5924> \xB9\xDB |0
+<U5925> \xB9\xD9 |0
+<U5927> \xA4\x6A |0
+<U5929> \xA4\xD1 |0
+<U592A> \xA4\xD3 |0
+<U592B> \xA4\xD2 |0
+<U592C> \xC9\x5B |0
+<U592D> \xA4\xD4 |0
+<U592E> \xA5\xA1 |0
+<U592F> \xC9\x71 |0
+<U5931> \xA5\xA2 |0
+<U5932> \x89\x5F |0
+<U5934> \x89\x60 |0
+<U5937> \xA6\x69 |0
+<U5938> \xA6\x6A |0
+<U593C> \xC9\xCB |0
+<U593E> \xA7\xA8 |0
+<U5940> \xCA\xB1 |0
+<U5944> \xA9\x61 |0
+<U5945> \xCC\x43 |0
+<U5947> \xA9\x5F |0
+<U5948> \xA9\x60 |0
+<U5949> \xA9\x5E |0
+<U594A> \xD1\x5A |0
+<U594E> \xAB\xB6 |0
+<U594F> \xAB\xB5 |0
+<U5950> \xAB\xB7 |0
+<U5951> \xAB\xB4 |0
+<U5953> \xCE\x61 |0
+<U5954> \xA9\x62 |0
+<U5955> \xAB\xB3 |0
+<U5957> \xAE\x4D |0
+<U5958> \xAE\x4E |0
+<U595A> \xAE\x4F |0
+<U595C> \xD4\xCD |0
+<U5960> \xB3\xFE |0
+<U5961> \xD8\xB4 |0
+<U5962> \xB0\xF8 |0
+<U5965> \x9B\xCD |0
+<U5967> \xB6\xF8 |0
+<U5969> \xB9\xDD |0
+<U596A> \xB9\xDC |0
+<U596B> \xE1\x6A |0
+<U596D> \xBC\x5D |0
+<U596E> \xBE\xC4 |0
+<U5970> \xEF\xC0 |0
+<U5971> \xF6\xDA |0
+<U5972> \xF7\xD4 |0
+<U5973> \xA4\x6B |0
+<U5974> \xA5\xA3 |0
+<U5975> \x9D\xD3 |0
+<U5976> \xA5\xA4 |0
+<U5977> \xC9\xD1 |0
+<U5978> \xA6\x6C |0
+<U5979> \xA6\x6F |0
+<U597B> \xC9\xCF |0
+<U597C> \xC9\xCD |0
+<U597D> \xA6\x6E |0
+<U597E> \xC9\xD0 |0
+<U597F> \xC9\xD2 |0
+<U5980> \xC9\xCC |0
+<U5981> \xA6\x71 |0
+<U5982> \xA6\x70 |0
+<U5983> \xA6\x6D |0
+<U5984> \xA6\x6B |0
+<U5985> \xC9\xCE |0
+<U5989> \x98\x4C |0
+<U598A> \xA7\xB3 |0
+<U598D> \xA7\xB0 |0
+<U598E> \xCA\xB6 |0
+<U598F> \xCA\xB9 |0
+<U5990> \xCA\xB8 |0
+<U5992> \xA7\xAA |0
+<U5993> \xA7\xB2 |0
+<U5994> \x97\x52 |0
+<U5996> \xA7\xAF |0
+<U5997> \xCA\xB5 |0
+<U5998> \xCA\xB3 |0
+<U5999> \xA7\xAE |0
+<U599A> \x95\xC3 |0
+<U599D> \xA7\xA9 |0
+<U599E> \xA7\xAC |0
+<U599F> \x9B\xB6 |0
+<U59A0> \xCA\xB4 |0
+<U59A1> \xCA\xBB |0
+<U59A2> \xCA\xB7 |0
+<U59A3> \xA7\xAD |0
+<U59A4> \xA7\xB1 |0
+<U59A5> \xA7\xB4 |0
+<U59A6> \xCA\xB2 |0
+<U59A7> \xCA\xBA |0
+<U59A8> \xA7\xAB |0
+<U59AC> \x9A\xB9 |0
+<U59AE> \xA9\x67 |0
+<U59AF> \xA9\x6F |0
+<U59B0> \x97\xB3 |0
+<U59B1> \xCC\x4F |0
+<U59B2> \xCC\x48 |0
+<U59B3> \xA9\x70 |0
+<U59B4> \xCC\x53 |0
+<U59B5> \xCC\x44 |0
+<U59B6> \xCC\x4B |0
+<U59B7> \x9F\x74 |0
+<U59B8> \x92\xF1 |0
+<U59B9> \xA9\x66 |0
+<U59BA> \xCC\x45 |0
+<U59BB> \xA9\x64 |0
+<U59BC> \xCC\x4C |0
+<U59BD> \xCC\x50 |0
+<U59BE> \xA9\x63 |0
+<U59C0> \xCC\x51 |0
+<U59C1> \xCC\x4A |0
+<U59C3> \xCC\x4D |0
+<U59C4> \x97\xDF |0
+<U59C5> \xA9\x72 |0
+<U59C6> \xA9\x69 |0
+<U59C7> \xCC\x54 |0
+<U59C8> \xCC\x52 |0
+<U59C9> \xFB\xA6 |0
+<U59CA> \xA9\x6E |0
+<U59CB> \xA9\x6C |0
+<U59CC> \xCC\x49 |0
+<U59CD> \xA9\x6B |0
+<U59CE> \xCC\x47 |0
+<U59CF> \xCC\x46 |0
+<U59D0> \xA9\x6A |0
+<U59D1> \xA9\x68 |0
+<U59D2> \xA9\x71 |0
+<U59D3> \xA9\x6D |0
+<U59D4> \xA9\x65 |0
+<U59D6> \xCC\x4E |0
+<U59D8> \xAB\xB9 |0
+<U59D9> \xFB\xAB |0
+<U59DA> \xAB\xC0 |0
+<U59DB> \xCE\x6F |0
+<U59DC> \xAB\xB8 |0
+<U59DD> \xCE\x67 |0
+<U59DE> \xCE\x63 |0
+<U59E0> \xCE\x73 |0
+<U59E1> \xCE\x62 |0
+<U59E3> \xAB\xBB |0
+<U59E4> \xCE\x6C |0
+<U59E5> \xAB\xBE |0
+<U59E6> \xAB\xC1 |0
+<U59E8> \xAB\xBC |0
+<U59E9> \xCE\x70 |0
+<U59EA> \xAB\xBF |0
+<U59EB> \x98\x77 |0
+<U59EC> \xAE\x56 |0
+<U59ED> \xCE\x76 |0
+<U59EE> \xCE\x64 |0
+<U59EF> \x98\x54 |0
+<U59F0> \x95\xC5 |0
+<U59F1> \xCE\x66 |0
+<U59F2> \xCE\x6D |0
+<U59F3> \xCE\x71 |0
+<U59F4> \xCE\x75 |0
+<U59F5> \xCE\x72 |0
+<U59F6> \xCE\x6B |0
+<U59F7> \xCE\x6E |0
+<U59F8> \x9D\x55 |0
+<U59F9> \xFB\xB2 |0
+<U59FA> \xCE\x68 |0
+<U59FB> \xAB\xC3 |0
+<U59FC> \xCE\x6A |0
+<U59FD> \xCE\x69 |0
+<U59FE> \xCE\x74 |0
+<U59FF> \xAB\xBA |0
+<U5A00> \xCE\x65 |0
+<U5A01> \xAB\xC2 |0
+<U5A02> \x95\x7E |0
+<U5A03> \xAB\xBD |0
+<U5A09> \xAE\x5C |0
+<U5A0A> \xD1\x62 |0
+<U5A0B> \x97\x42 |0
+<U5A0C> \xAE\x5B |0
+<U5A0D> \x94\xE6 |0
+<U5A0F> \xD1\x60 |0
+<U5A11> \xAE\x50 |0
+<U5A12> \x92\xF5 |0
+<U5A13> \xAE\x55 |0
+<U5A15> \xD1\x5F |0
+<U5A16> \xD1\x5C |0
+<U5A17> \xD1\x61 |0
+<U5A18> \xAE\x51 |0
+<U5A19> \xD1\x5B |0
+<U5A1B> \xAE\x54 |0
+<U5A1C> \xAE\x52 |0
+<U5A1E> \xD1\x63 |0
+<U5A1F> \xAE\x53 |0
+<U5A20> \xAE\x57 |0
+<U5A21> \x92\xFD |0
+<U5A23> \xAE\x58 |0
+<U5A24> \xFB\xA2 |0
+<U5A25> \xAE\x5A |0
+<U5A27> \x9C\x51 |0
+<U5A29> \xAE\x59 |0
+<U5A2A> \x94\xE9 |0
+<U5A2B> \x98\x5C |0
+<U5A2C> \x92\xF0 |0
+<U5A2D> \xD1\x5D |0
+<U5A2E> \xD1\x5E |0
+<U5A33> \xD1\x64 |0
+<U5A35> \xD4\xD4 |0
+<U5A36> \xB0\xF9 |0
+<U5A37> \xD8\xC2 |0
+<U5A38> \xD4\xD3 |0
+<U5A39> \xD4\xE6 |0
+<U5A3C> \xB1\x40 |0
+<U5A3D> \x94\x4C |0
+<U5A3E> \xD4\xE4 |0
+<U5A40> \xB0\xFE |0
+<U5A41> \xB0\xFA |0
+<U5A42> \xD4\xED |0
+<U5A43> \xD4\xDD |0
+<U5A44> \xD4\xE0 |0
+<U5A45> \x91\x6B |0
+<U5A46> \xB1\x43 |0
+<U5A47> \xD4\xEA |0
+<U5A48> \xD4\xE2 |0
+<U5A49> \xB0\xFB |0
+<U5A4A> \xB1\x44 |0
+<U5A4C> \xD4\xE7 |0
+<U5A4D> \xD4\xE5 |0
+<U5A50> \xD4\xD6 |0
+<U5A51> \xD4\xEB |0
+<U5A52> \xD4\xDF |0
+<U5A53> \xD4\xDA |0
+<U5A54> \x8B\x78 |0
+<U5A55> \xD4\xD0 |0
+<U5A56> \xD4\xEC |0
+<U5A57> \xD4\xDC |0
+<U5A58> \xD4\xCF |0
+<U5A59> \x94\xE2 |0
+<U5A5A> \xB1\x42 |0
+<U5A5B> \xD4\xE1 |0
+<U5A5C> \xD4\xEE |0
+<U5A5D> \xD4\xDE |0
+<U5A5E> \xD4\xD2 |0
+<U5A5F> \xD4\xD7 |0
+<U5A60> \xD4\xCE |0
+<U5A61> \x98\x4F |0
+<U5A62> \xB1\x41 |0
+<U5A63> \xFB\xB5 |0
+<U5A64> \xD4\xDB |0
+<U5A65> \xD4\xD8 |0
+<U5A66> \xB0\xFC |0
+<U5A67> \xD4\xD1 |0
+<U5A68> \x92\x71 |0
+<U5A69> \xD4\xE9 |0
+<U5A6A> \xB0\xFD |0
+<U5A6B> \x93\x65 |0
+<U5A6C> \xD4\xD9 |0
+<U5A6D> \xD4\xD5 |0
+<U5A6E> \x98\x5B |0
+<U5A70> \xD4\xE8 |0
+<U5A71> \x98\x50 |0
+<U5A77> \xB4\x40 |0
+<U5A78> \xD8\xBB |0
+<U5A79> \x97\xBC |0
+<U5A7A> \xD8\xB8 |0
+<U5A7B> \xD8\xC9 |0
+<U5A7C> \xD8\xBD |0
+<U5A7D> \xD8\xCA |0
+<U5A7E> \x92\xF3 |0
+<U5A7F> \xB4\x42 |0
+<U5A81> \x93\x40 |0
+<U5A82> \x98\x4D |0
+<U5A83> \xD8\xC6 |0
+<U5A84> \xD8\xC3 |0
+<U5A86> \x95\x72 |0
+<U5A88> \xFD\xEF |0
+<U5A8A> \xD8\xC4 |0
+<U5A8B> \xD8\xC7 |0
+<U5A8C> \xD8\xCB |0
+<U5A8E> \xD4\xE3 |0
+<U5A8F> \xD8\xCD |0
+<U5A90> \xDD\x47 |0
+<U5A91> \xFD\xC1 |0
+<U5A92> \xB4\x43 |0
+<U5A93> \xD8\xCE |0
+<U5A94> \xD8\xB6 |0
+<U5A95> \xD8\xC0 |0
+<U5A96> \xFB\xBA |0
+<U5A97> \xD8\xC5 |0
+<U5A99> \x92\xEB |0
+<U5A9A> \xB4\x41 |0
+<U5A9B> \xB4\x44 |0
+<U5A9C> \xD8\xCC |0
+<U5A9D> \xD8\xCF |0
+<U5A9E> \xD8\xBA |0
+<U5A9F> \xD8\xB7 |0
+<U5AA0> \xFC\x73 |0
+<U5AA1> \x97\xB7 |0
+<U5AA2> \xD8\xB9 |0
+<U5AA5> \xD8\xBE |0
+<U5AA6> \xD8\xBC |0
+<U5AA7> \xB4\x45 |0
+<U5AA9> \xD8\xC8 |0
+<U5AAB> \xFB\xB4 |0
+<U5AAC> \xD8\xBF |0
+<U5AAE> \xD8\xC1 |0
+<U5AAF> \xD8\xB5 |0
+<U5AB0> \xDC\xFA |0
+<U5AB1> \xDC\xF8 |0
+<U5AB2> \xB7\x42 |0
+<U5AB3> \xB7\x40 |0
+<U5AB4> \xDD\x43 |0
+<U5AB5> \xDC\xF9 |0
+<U5AB6> \xDD\x44 |0
+<U5AB7> \xDD\x40 |0
+<U5AB8> \xDC\xF7 |0
+<U5AB9> \xDD\x46 |0
+<U5ABA> \xDC\xF6 |0
+<U5ABB> \xDC\xFD |0
+<U5ABC> \xB6\xFE |0
+<U5ABD> \xB6\xFD |0
+<U5ABE> \xB6\xFC |0
+<U5ABF> \xDC\xFB |0
+<U5AC0> \xDD\x41 |0
+<U5AC1> \xB6\xF9 |0
+<U5AC2> \xB7\x41 |0
+<U5AC3> \x90\xA7 |0
+<U5AC4> \xDC\xF4 |0
+<U5AC6> \xDC\xFE |0
+<U5AC7> \xDC\xF3 |0
+<U5AC8> \xDC\xFC |0
+<U5AC9> \xB6\xFA |0
+<U5ACA> \xDD\x42 |0
+<U5ACB> \xDC\xF5 |0
+<U5ACC> \xB6\xFB |0
+<U5ACD> \xDD\x45 |0
+<U5ACE> \x97\x41 |0
+<U5ACF> \x92\xF4 |0
+<U5AD3> \xFB\xBC |0
+<U5AD5> \xE1\x6E |0
+<U5AD6> \xB9\xE2 |0
+<U5AD7> \xB9\xE1 |0
+<U5AD8> \xB9\xE3 |0
+<U5AD9> \xE1\x7A |0
+<U5ADA> \xE1\x70 |0
+<U5ADB> \xE1\x76 |0
+<U5ADC> \xE1\x6B |0
+<U5ADD> \xE1\x79 |0
+<U5ADE> \xE1\x78 |0
+<U5ADF> \xE1\x7C |0
+<U5AE0> \xE1\x75 |0
+<U5AE1> \xB9\xDE |0
+<U5AE2> \xE1\x74 |0
+<U5AE3> \xB9\xE4 |0
+<U5AE4> \x95\x77 |0
+<U5AE5> \xE1\x6D |0
+<U5AE6> \xB9\xDF |0
+<U5AE8> \xE1\x7B |0
+<U5AE9> \xB9\xE0 |0
+<U5AEA> \xE1\x6F |0
+<U5AEB> \xE1\x72 |0
+<U5AEC> \xE1\x77 |0
+<U5AED> \xE1\x71 |0
+<U5AEE> \xE1\x6C |0
+<U5AF0> \x9E\xE2 |0
+<U5AF2> \x8F\x78 |0
+<U5AF3> \xE1\x73 |0
+<U5AF4> \xE5\x55 |0
+<U5AF5> \xBC\x61 |0
+<U5AF6> \xE5\x58 |0
+<U5AF7> \xE5\x57 |0
+<U5AF8> \xE5\x5A |0
+<U5AF9> \xE5\x5C |0
+<U5AFA> \xF9\xDC |0
+<U5AFB> \xBC\x5F |0
+<U5AFD> \xE5\x56 |0
+<U5AFE> \x96\x72 |0
+<U5AFF> \xE5\x54 |0
+<U5B01> \xE5\x5D |0
+<U5B02> \xE5\x5B |0
+<U5B03> \xE5\x59 |0
+<U5B05> \xE5\x5F |0
+<U5B07> \xE5\x5E |0
+<U5B08> \xBC\x63 |0
+<U5B09> \xBC\x5E |0
+<U5B0B> \xBC\x60 |0
+<U5B0C> \xBC\x62 |0
+<U5B0D> \x9E\xB5 |0
+<U5B0F> \xE5\x60 |0
+<U5B10> \xE9\x57 |0
+<U5B11> \x96\x4B |0
+<U5B13> \xE9\x56 |0
+<U5B14> \xE9\x55 |0
+<U5B16> \xE9\x58 |0
+<U5B17> \xE9\x51 |0
+<U5B19> \xE9\x52 |0
+<U5B1A> \xE9\x5A |0
+<U5B1B> \xE9\x53 |0
+<U5B1D> \xBE\xC5 |0
+<U5B1E> \xE9\x5C |0
+<U5B1F> \xA0\xFA |0
+<U5B20> \xE9\x5B |0
+<U5B21> \xE9\x54 |0
+<U5B23> \xEC\xD1 |0
+<U5B24> \xC0\xA8 |0
+<U5B25> \xEC\xCF |0
+<U5B26> \xEC\xD4 |0
+<U5B27> \xEC\xD3 |0
+<U5B28> \xE9\x59 |0
+<U5B2A> \xC0\xA7 |0
+<U5B2B> \x95\x75 |0
+<U5B2C> \xEC\xD2 |0
+<U5B2D> \xEC\xCE |0
+<U5B2E> \xEC\xD6 |0
+<U5B2F> \xEC\xD5 |0
+<U5B30> \xC0\xA6 |0
+<U5B32> \xEC\xD0 |0
+<U5B34> \xBE\xC6 |0
+<U5B38> \xC2\x54 |0
+<U5B3C> \xEF\xC1 |0
+<U5B3D> \xF1\xFA |0
+<U5B3E> \xF1\xFB |0
+<U5B3F> \xF1\xFC |0
+<U5B40> \xC4\x5C |0
+<U5B41> \x90\xDA |0
+<U5B43> \xC4\x5D |0
+<U5B44> \x93\x67 |0
+<U5B45> \xF4\x43 |0
+<U5B46> \xFE\xA4 |0
+<U5B47> \xF5\xC8 |0
+<U5B48> \xF5\xC7 |0
+<U5B4A> \x90\xDF |0
+<U5B4B> \xF6\xDB |0
+<U5B4C> \xF6\xDC |0
+<U5B4D> \xF7\xD5 |0
+<U5B4E> \xF8\xA7 |0
+<U5B4F> \x93\x54 |0
+<U5B50> \xA4\x6C |0
+<U5B51> \xA4\x6D |0
+<U5B53> \xA4\x6E |0
+<U5B54> \xA4\xD5 |0
+<U5B55> \xA5\xA5 |0
+<U5B56> \xC9\xD3 |0
+<U5B57> \xA6\x72 |0
+<U5B58> \xA6\x73 |0
+<U5B5A> \xA7\xB7 |0
+<U5B5B> \xA7\xB8 |0
+<U5B5C> \xA7\xB6 |0
+<U5B5D> \xA7\xB5 |0
+<U5B5F> \xA9\x73 |0
+<U5B62> \xCC\x55 |0
+<U5B63> \xA9\x75 |0
+<U5B64> \xA9\x74 |0
+<U5B65> \xCC\x56 |0
+<U5B66> \x89\x61 |0
+<U5B68> \x8B\xB4 |0
+<U5B69> \xAB\xC4 |0
+<U5B6B> \xAE\x5D |0
+<U5B6C> \xD1\x65 |0
+<U5B6D> \x9D\xC0 |0
+<U5B6E> \xD4\xF0 |0
+<U5B70> \xB1\x45 |0
+<U5B71> \xB4\x47 |0
+<U5B72> \xD4\xEF |0
+<U5B73> \xB4\x46 |0
+<U5B74> \x8E\x48 |0
+<U5B75> \xB9\xE5 |0
+<U5B76> \xFB\xC5 |0
+<U5B77> \xE1\x7D |0
+<U5B78> \xBE\xC7 |0
+<U5B7A> \xC0\xA9 |0
+<U5B7B> \xEC\xD7 |0
+<U5B7C> \xFB\xC7 |0
+<U5B7D> \xC4\x5E |0
+<U5B7F> \xC5\x70 |0
+<U5B80> \xC6\xCB |0
+<U5B81> \xC9\x72 |0
+<U5B82> \xFA\x79 |0
+<U5B83> \xA5\xA6 |0
+<U5B84> \xC9\x73 |0
+<U5B85> \xA6\x76 |0
+<U5B87> \xA6\x74 |0
+<U5B88> \xA6\x75 |0
+<U5B89> \xA6\x77 |0
+<U5B8B> \xA7\xBA |0
+<U5B8C> \xA7\xB9 |0
+<U5B8E> \xCA\xBC |0
+<U5B8F> \xA7\xBB |0
+<U5B90> \x9E\x67 |0
+<U5B92> \xCA\xBD |0
+<U5B93> \xCC\x57 |0
+<U5B95> \xCC\x58 |0
+<U5B97> \xA9\x76 |0
+<U5B98> \xA9\x78 |0
+<U5B99> \xA9\x7A |0
+<U5B9A> \xA9\x77 |0
+<U5B9B> \xA9\x7B |0
+<U5B9C> \xA9\x79 |0
+<U5B9D> \xFB\xD2 |0
+<U5B9E> \x89\x62 |0
+<U5B9F> \x89\x63 |0
+<U5BA2> \xAB\xC8 |0
+<U5BA3> \xAB\xC5 |0
+<U5BA4> \xAB\xC7 |0
+<U5BA5> \xAB\xC9 |0
+<U5BA6> \xAB\xC6 |0
+<U5BA7> \xD1\x66 |0
+<U5BA8> \xCE\x77 |0
+<U5BAA> \xFC\x7D |0
+<U5BAC> \xD1\x68 |0
+<U5BAD> \xD1\x67 |0
+<U5BAE> \xAE\x63 |0
+<U5BB0> \xAE\x5F |0
+<U5BB3> \xAE\x60 |0
+<U5BB4> \xAE\x62 |0
+<U5BB5> \xAE\x64 |0
+<U5BB6> \xAE\x61 |0
+<U5BB8> \xAE\x66 |0
+<U5BB9> \xAE\x65 |0
+<U5BBF> \xB1\x4A |0
+<U5BC0> \xD4\xF2 |0
+<U5BC1> \xD4\xF1 |0
+<U5BC2> \xB1\x49 |0
+<U5BC3> \x9F\x6B |0
+<U5BC4> \xB1\x48 |0
+<U5BC5> \xB1\x47 |0
+<U5BC6> \xB1\x4B |0
+<U5BC7> \xB1\x46 |0
+<U5BCA> \xD8\xD5 |0
+<U5BCB> \xD8\xD2 |0
+<U5BCC> \xB4\x49 |0
+<U5BCD> \xD8\xD1 |0
+<U5BCE> \xD8\xD6 |0
+<U5BD0> \xB4\x4B |0
+<U5BD1> \xD8\xD4 |0
+<U5BD2> \xB4\x48 |0
+<U5BD3> \xB4\x4A |0
+<U5BD4> \xD8\xD3 |0
+<U5BD5> \xFB\xCC |0
+<U5BD6> \xDD\x48 |0
+<U5BD7> \xFE\xAE |0
+<U5BD8> \xDD\x49 |0
+<U5BD9> \xDD\x4A |0
+<U5BDE> \xB9\xE6 |0
+<U5BDF> \xB9\xEE |0
+<U5BE0> \xE1\x7E |0
+<U5BE1> \xB9\xE8 |0
+<U5BE2> \xB9\xEC |0
+<U5BE3> \xE1\xA1 |0
+<U5BE4> \xB9\xED |0
+<U5BE5> \xB9\xE9 |0
+<U5BE6> \xB9\xEA |0
+<U5BE7> \xB9\xE7 |0
+<U5BE8> \xB9\xEB |0
+<U5BE9> \xBC\x66 |0
+<U5BEA> \xD8\xD0 |0
+<U5BEB> \xBC\x67 |0
+<U5BEC> \xBC\x65 |0
+<U5BEE> \xBC\x64 |0
+<U5BEF> \xE9\x5D |0
+<U5BF0> \xBE\xC8 |0
+<U5BF1> \xEC\xD8 |0
+<U5BF2> \xEC\xD9 |0
+<U5BF3> \xFB\xD1 |0
+<U5BF5> \xC3\x64 |0
+<U5BF6> \xC4\x5F |0
+<U5BF8> \xA4\x6F |0
+<U5BFA> \xA6\x78 |0
+<U5BFF> \xFB\x75 |0
+<U5C01> \xAB\xCA |0
+<U5C03> \xD1\x69 |0
+<U5C04> \xAE\x67 |0
+<U5C05> \xFB\xD4 |0
+<U5C07> \xB1\x4E |0
+<U5C08> \xB1\x4D |0
+<U5C09> \xB1\x4C |0
+<U5C0A> \xB4\x4C |0
+<U5C0B> \xB4\x4D |0
+<U5C0C> \xD8\xD7 |0
+<U5C0D> \xB9\xEF |0
+<U5C0E> \xBE\xC9 |0
+<U5C0F> \xA4\x70 |0
+<U5C10> \xC9\x5C |0
+<U5C11> \xA4\xD6 |0
+<U5C12> \xC9\x74 |0
+<U5C13> \xFB\xD6 |0
+<U5C14> \xFB\xD8 |0
+<U5C15> \xC9\xD4 |0
+<U5C16> \xA6\x79 |0
+<U5C1A> \xA9\x7C |0
+<U5C1C> \x8B\x5D |0
+<U5C1E> \x93\x4C |0
+<U5C1F> \xDD\x4B |0
+<U5C20> \x9A\xE2 |0
+<U5C22> \xA4\x71 |0
+<U5C23> \x8B\xC9 |0
+<U5C24> \xA4\xD7 |0
+<U5C25> \xC9\xD5 |0
+<U5C28> \xCA\xBE |0
+<U5C2A> \xCA\xBF |0
+<U5C2C> \xA7\xBC |0
+<U5C30> \xD8\xD8 |0
+<U5C31> \xB4\x4E |0
+<U5C33> \xDD\x4C |0
+<U5C37> \xC0\xAA |0
+<U5C38> \xA4\x72 |0
+<U5C39> \xA4\xA8 |0
+<U5C3A> \xA4\xD8 |0
+<U5C3B> \xC9\x75 |0
+<U5C3C> \xA5\xA7 |0
+<U5C3E> \xA7\xC0 |0
+<U5C3F> \xA7\xBF |0
+<U5C40> \xA7\xBD |0
+<U5C41> \xA7\xBE |0
+<U5C44> \xCC\x59 |0
+<U5C45> \xA9\x7E |0
+<U5C46> \xA9\xA1 |0
+<U5C47> \xCC\x5A |0
+<U5C48> \xA9\x7D |0
+<U5C49> \xFB\xDB |0
+<U5C4A> \x9F\xC9 |0
+<U5C4B> \xAB\xCE |0
+<U5C4C> \xCE\x78 |0
+<U5C4D> \xAB\xCD |0
+<U5C4E> \xAB\xCB |0
+<U5C4F> \xAB\xCC |0
+<U5C50> \xAE\x6A |0
+<U5C51> \xAE\x68 |0
+<U5C53> \x9F\x44 |0
+<U5C54> \xD1\x6B |0
+<U5C55> \xAE\x69 |0
+<U5C56> \xD1\x6A |0
+<U5C58> \xAE\x5E |0
+<U5C59> \xD4\xF3 |0
+<U5C5C> \xB1\x50 |0
+<U5C5D> \xB1\x51 |0
+<U5C5E> \x98\xED |0
+<U5C60> \xB1\x4F |0
+<U5C62> \xB9\xF0 |0
+<U5C63> \xE1\xA2 |0
+<U5C64> \xBC\x68 |0
+<U5C65> \xBC\x69 |0
+<U5C67> \xE5\x61 |0
+<U5C68> \xC0\xAB |0
+<U5C69> \xEF\xC2 |0
+<U5C6A> \xEF\xC3 |0
+<U5C6C> \xC4\xDD |0
+<U5C6D> \xF8\xA8 |0
+<U5C6E> \xC9\x4B |0
+<U5C6F> \xA4\xD9 |0
+<U5C71> \xA4\x73 |0
+<U5C73> \xC9\x77 |0
+<U5C74> \xC9\x76 |0
+<U5C79> \xA6\x7A |0
+<U5C7A> \xC9\xD7 |0
+<U5C7B> \xC9\xD8 |0
+<U5C7C> \xC9\xD6 |0
+<U5C7E> \xC9\xD9 |0
+<U5C85> \xFB\xDD |0
+<U5C86> \xCA\xC7 |0
+<U5C88> \xCA\xC2 |0
+<U5C89> \xCA\xC4 |0
+<U5C8A> \xCA\xC6 |0
+<U5C8B> \xCA\xC3 |0
+<U5C8C> \xA7\xC4 |0
+<U5C8D> \xCA\xC0 |0
+<U5C8F> \xCA\xC1 |0
+<U5C90> \xA7\xC1 |0
+<U5C91> \xA7\xC2 |0
+<U5C92> \xCA\xC5 |0
+<U5C93> \xCA\xC8 |0
+<U5C94> \xA7\xC3 |0
+<U5C95> \xCA\xC9 |0
+<U5C99> \x8D\xF2 |0
+<U5C9A> \x89\x64 |0
+<U5C9C> \xFD\xF2 |0
+<U5C9D> \xCC\x68 |0
+<U5C9E> \x93\x4D |0
+<U5C9F> \xCC\x62 |0
+<U5CA0> \xCC\x5D |0
+<U5CA1> \xA9\xA3 |0
+<U5CA2> \xCC\x65 |0
+<U5CA3> \xCC\x63 |0
+<U5CA4> \xCC\x5C |0
+<U5CA5> \xCC\x69 |0
+<U5CA6> \xCC\x6C |0
+<U5CA7> \xCC\x67 |0
+<U5CA8> \xCC\x60 |0
+<U5CA9> \xA9\xA5 |0
+<U5CAA> \xCC\x66 |0
+<U5CAB> \xA9\xA6 |0
+<U5CAC> \xCC\x61 |0
+<U5CAD> \xCC\x64 |0
+<U5CAE> \xCC\x5B |0
+<U5CAF> \xCC\x5F |0
+<U5CB0> \xCC\x6B |0
+<U5CB1> \xA9\xA7 |0
+<U5CB3> \xA9\xA8 |0
+<U5CB5> \xCC\x5E |0
+<U5CB6> \xCC\x6A |0
+<U5CB7> \xA9\xA2 |0
+<U5CB8> \xA9\xA4 |0
+<U5CBA> \xFB\xE7 |0
+<U5CC1> \xA0\xF2 |0
+<U5CC2> \x98\x68 |0
+<U5CC6> \xCE\xAB |0
+<U5CC7> \xCE\xA4 |0
+<U5CC8> \xCE\xAA |0
+<U5CC9> \xCE\xA3 |0
+<U5CCA> \xCE\xA5 |0
+<U5CCB> \xCE\x7D |0
+<U5CCC> \xCE\x7B |0
+<U5CCE> \xCE\xAC |0
+<U5CCF> \xCE\xA9 |0
+<U5CD0> \xCE\x79 |0
+<U5CD1> \x9F\x58 |0
+<U5CD2> \xAB\xD0 |0
+<U5CD3> \xCE\xA7 |0
+<U5CD4> \xCE\xA8 |0
+<U5CD6> \xCE\xA6 |0
+<U5CD7> \xCE\x7C |0
+<U5CD8> \xCE\x7A |0
+<U5CD9> \xAB\xCF |0
+<U5CDA> \xCE\xA2 |0
+<U5CDB> \xCE\x7E |0
+<U5CDE> \xCE\xA1 |0
+<U5CDF> \xCE\xAD |0
+<U5CE5> \x8D\x73 |0
+<U5CE8> \xAE\x6F |0
+<U5CE9> \xFB\xDE |0
+<U5CEA> \xAE\x6E |0
+<U5CEC> \xD1\x6C |0
+<U5CED> \xAE\x6B |0
+<U5CEE> \xD1\x6E |0
+<U5CEF> \xFB\xDF |0
+<U5CF0> \xAE\x70 |0
+<U5CF1> \xD1\x6F |0
+<U5CF4> \xAE\x73 |0
+<U5CF6> \xAE\x71 |0
+<U5CF7> \xD1\x70 |0
+<U5CF8> \xCE\xAE |0
+<U5CF9> \xD1\x72 |0
+<U5CFB> \xAE\x6D |0
+<U5CFD> \xAE\x6C |0
+<U5CFF> \xD1\x6D |0
+<U5D00> \xD1\x71 |0
+<U5D01> \xAE\x72 |0
+<U5D06> \xB1\x53 |0
+<U5D07> \xB1\x52 |0
+<U5D0B> \xD4\xF5 |0
+<U5D0C> \xD4\xF9 |0
+<U5D0D> \xD4\xFB |0
+<U5D0E> \xB1\x54 |0
+<U5D0F> \xD4\xFE |0
+<U5D10> \xFB\xE3 |0
+<U5D11> \xB1\x58 |0
+<U5D12> \xD5\x41 |0
+<U5D14> \xB1\x5A |0
+<U5D15> \x8D\xA8 |0
+<U5D16> \xB1\x56 |0
+<U5D17> \xB1\x5E |0
+<U5D18> \xFB\xE4 |0
+<U5D19> \xB1\x5B |0
+<U5D1A> \xD4\xF7 |0
+<U5D1B> \xB1\x55 |0
+<U5D1D> \xD4\xF6 |0
+<U5D1E> \xD4\xF4 |0
+<U5D1F> \xD5\x43 |0
+<U5D20> \xD4\xF8 |0
+<U5D22> \xB1\x57 |0
+<U5D23> \xD5\x42 |0
+<U5D24> \xB1\x5C |0
+<U5D25> \xD4\xFD |0
+<U5D26> \xD4\xFC |0
+<U5D27> \xB1\x5D |0
+<U5D28> \xD4\xFA |0
+<U5D29> \xB1\x59 |0
+<U5D2C> \x9C\x75 |0
+<U5D2E> \xD5\x44 |0
+<U5D2F> \x98\x78 |0
+<U5D30> \xD5\x40 |0
+<U5D31> \xD8\xE7 |0
+<U5D32> \xD8\xEE |0
+<U5D33> \xD8\xE3 |0
+<U5D34> \xB4\x51 |0
+<U5D35> \xD8\xDF |0
+<U5D36> \xD8\xEF |0
+<U5D37> \xD8\xD9 |0
+<U5D38> \xD8\xEC |0
+<U5D39> \xD8\xEA |0
+<U5D3A> \xD8\xE4 |0
+<U5D3C> \xD8\xED |0
+<U5D3D> \xD8\xE6 |0
+<U5D3E> \x8D\x60 |0
+<U5D3F> \xD8\xDE |0
+<U5D40> \xD8\xF0 |0
+<U5D41> \xD8\xDC |0
+<U5D42> \xD8\xE9 |0
+<U5D43> \xD8\xDA |0
+<U5D45> \xD8\xF1 |0
+<U5D46> \xFB\xE5 |0
+<U5D47> \xB4\x52 |0
+<U5D48> \x8D\x61 |0
+<U5D49> \xD8\xEB |0
+<U5D4A> \xDD\x4F |0
+<U5D4B> \xD8\xDD |0
+<U5D4C> \xB4\x4F |0
+<U5D4E> \xD8\xE1 |0
+<U5D50> \xB4\x50 |0
+<U5D51> \xD8\xE0 |0
+<U5D52> \xD8\xE5 |0
+<U5D55> \xD8\xE2 |0
+<U5D56> \x8D\x62 |0
+<U5D57> \xA0\xA1 |0
+<U5D59> \xD8\xE8 |0
+<U5D5B> \x9C\x40 |0
+<U5D5E> \xDD\x53 |0
+<U5D62> \xDD\x56 |0
+<U5D63> \xDD\x4E |0
+<U5D65> \xDD\x50 |0
+<U5D67> \xDD\x55 |0
+<U5D68> \xDD\x54 |0
+<U5D69> \xB7\x43 |0
+<U5D6B> \xD8\xDB |0
+<U5D6C> \xDD\x52 |0
+<U5D6F> \xB7\x44 |0
+<U5D70> \x98\xAD |0
+<U5D71> \xDD\x4D |0
+<U5D72> \xDD\x51 |0
+<U5D74> \x9E\xEA |0
+<U5D77> \xE1\xA9 |0
+<U5D79> \xE1\xB0 |0
+<U5D7A> \xE1\xA7 |0
+<U5D7C> \xE1\xAE |0
+<U5D7D> \xE1\xA5 |0
+<U5D7E> \xE1\xAD |0
+<U5D7F> \xE1\xB1 |0
+<U5D80> \xE1\xA4 |0
+<U5D81> \xE1\xA8 |0
+<U5D82> \xE1\xA3 |0
+<U5D84> \xB9\xF1 |0
+<U5D85> \x9C\xEB |0
+<U5D86> \xE1\xA6 |0
+<U5D87> \xB9\xF2 |0
+<U5D88> \xE1\xAC |0
+<U5D89> \xE1\xAB |0
+<U5D8A> \xE1\xAA |0
+<U5D8B> \xFB\xE0 |0
+<U5D8D> \xE1\xAF |0
+<U5D8E> \x9F\x51 |0
+<U5D92> \xE5\x65 |0
+<U5D93> \xE5\x67 |0
+<U5D94> \xBC\x6B |0
+<U5D95> \xE5\x68 |0
+<U5D97> \xE5\x63 |0
+<U5D99> \xE5\x62 |0
+<U5D9A> \xE5\x6C |0
+<U5D9C> \xE5\x6A |0
+<U5D9D> \xBC\x6A |0
+<U5D9E> \xE5\x6D |0
+<U5D9F> \xE5\x64 |0
+<U5DA0> \xE5\x69 |0
+<U5DA1> \xE5\x6B |0
+<U5DA2> \xE5\x66 |0
+<U5DA4> \x8D\x65 |0
+<U5DA7> \xE9\x61 |0
+<U5DA8> \xE9\x66 |0
+<U5DA9> \xE9\x60 |0
+<U5DAA> \xE9\x65 |0
+<U5DAB> \x9C\xF1 |0
+<U5DAC> \xE9\x5E |0
+<U5DAD> \xE9\x68 |0
+<U5DAE> \xE9\x64 |0
+<U5DAF> \xE9\x69 |0
+<U5DB0> \xE9\x63 |0
+<U5DB1> \xE9\x5F |0
+<U5DB2> \xE9\x67 |0
+<U5DB4> \xE9\x6A |0
+<U5DB5> \xE9\x62 |0
+<U5DB6> \xFC\x58 |0
+<U5DB7> \xEC\xDA |0
+<U5DB8> \xC0\xAF |0
+<U5DB9> \x8D\x66 |0
+<U5DBA> \xC0\xAD |0
+<U5DBC> \xC0\xAC |0
+<U5DBD> \xC0\xAE |0
+<U5DC0> \xEF\xC4 |0
+<U5DC1> \x96\x54 |0
+<U5DC2> \xF1\x72 |0
+<U5DC3> \xF1\xFD |0
+<U5DC6> \xF4\x44 |0
+<U5DC7> \xF4\x45 |0
+<U5DC9> \xC4\x60 |0
+<U5DCB> \xF5\xC9 |0
+<U5DCD> \xC4\xDE |0
+<U5DCF> \xF5\xCA |0
+<U5DD1> \xF6\xDE |0
+<U5DD2> \xC5\x72 |0
+<U5DD4> \xC5\x71 |0
+<U5DD5> \xF6\xDD |0
+<U5DD6> \xC5\xC9 |0
+<U5DD7> \xFB\xE8 |0
+<U5DD8> \xF7\xD6 |0
+<U5DDB> \xC6\xCC |0
+<U5DDD> \xA4\x74 |0
+<U5DDE> \xA6\x7B |0
+<U5DDF> \xC9\xDA |0
+<U5DE0> \xCA\xCA |0
+<U5DE1> \xA8\xB5 |0
+<U5DE2> \xB1\x5F |0
+<U5DE5> \xA4\x75 |0
+<U5DE6> \xA5\xAA |0
+<U5DE7> \xA5\xA9 |0
+<U5DE8> \xA5\xA8 |0
+<U5DEB> \xA7\xC5 |0
+<U5DEE> \xAE\x74 |0
+<U5DF0> \xDD\x57 |0
+<U5DF1> \xA4\x76 |0
+<U5DF2> \xA4\x77 |0
+<U5DF3> \xA4\x78 |0
+<U5DF4> \xA4\xDA |0
+<U5DF5> \x9F\xCE |0
+<U5DF7> \xAB\xD1 |0
+<U5DF9> \xCE\xAF |0
+<U5DFD> \xB4\x53 |0
+<U5DFE> \xA4\x79 |0
+<U5DFF> \xC9\x5D |0
+<U5E02> \xA5\xAB |0
+<U5E03> \xA5\xAC |0
+<U5E04> \xC9\x78 |0
+<U5E06> \xA6\x7C |0
+<U5E09> \xFB\xFC |0
+<U5E0A> \xCA\xCB |0
+<U5E0B> \x9A\xE4 |0
+<U5E0C> \xA7\xC6 |0
+<U5E0E> \xCA\xCC |0
+<U5E11> \xA9\xAE |0
+<U5E12> \x9F\x75 |0
+<U5E14> \xCC\x6E |0
+<U5E15> \xA9\xAC |0
+<U5E16> \xA9\xAB |0
+<U5E17> \xCC\x6D |0
+<U5E18> \xA9\xA9 |0
+<U5E19> \xCC\x6F |0
+<U5E1A> \xA9\xAA |0
+<U5E1B> \xA9\xAD |0
+<U5E1D> \xAB\xD2 |0
+<U5E1F> \xAB\xD4 |0
+<U5E20> \xCE\xB3 |0
+<U5E21> \xCE\xB0 |0
+<U5E22> \xCE\xB1 |0
+<U5E23> \xCE\xB2 |0
+<U5E24> \xCE\xB4 |0
+<U5E25> \xAB\xD3 |0
+<U5E28> \xD1\x74 |0
+<U5E29> \xD1\x73 |0
+<U5E2B> \xAE\x76 |0
+<U5E2D> \xAE\x75 |0
+<U5E2E> \xFB\xF1 |0
+<U5E33> \xB1\x62 |0
+<U5E34> \xD5\x46 |0
+<U5E36> \xB1\x61 |0
+<U5E37> \xB1\x63 |0
+<U5E38> \xB1\x60 |0
+<U5E3D> \xB4\x55 |0
+<U5E3E> \xD5\x45 |0
+<U5E40> \xB4\x56 |0
+<U5E41> \xD8\xF3 |0
+<U5E42> \x8D\x69 |0
+<U5E43> \xB4\x57 |0
+<U5E44> \xD8\xF2 |0
+<U5E45> \xB4\x54 |0
+<U5E48> \x93\x4F |0
+<U5E4A> \xDD\x5A |0
+<U5E4B> \xDD\x5C |0
+<U5E4C> \xB7\x45 |0
+<U5E4D> \xDD\x5B |0
+<U5E4E> \xDD\x59 |0
+<U5E4F> \xDD\x58 |0
+<U5E53> \xE1\xB4 |0
+<U5E54> \xB9\xF7 |0
+<U5E55> \xB9\xF5 |0
+<U5E57> \xB9\xF6 |0
+<U5E58> \xE1\xB2 |0
+<U5E59> \xE1\xB3 |0
+<U5E5B> \xB9\xF3 |0
+<U5E5C> \xE5\x71 |0
+<U5E5D> \xE5\x6F |0
+<U5E5E> \x93\x4E |0
+<U5E5F> \xBC\x6D |0
+<U5E60> \xE5\x70 |0
+<U5E61> \xBC\x6E |0
+<U5E62> \xBC\x6C |0
+<U5E63> \xB9\xF4 |0
+<U5E66> \xE9\x6D |0
+<U5E67> \xE9\x6B |0
+<U5E68> \xE9\x6C |0
+<U5E69> \xE5\x6E |0
+<U5E6A> \xEC\xDC |0
+<U5E6B> \xC0\xB0 |0
+<U5E6C> \xEC\xDB |0
+<U5E6D> \xEF\xC5 |0
+<U5E6E> \xEF\xC6 |0
+<U5E6F> \xE9\x6E |0
+<U5E70> \xF1\xFE |0
+<U5E72> \xA4\x7A |0
+<U5E73> \xA5\xAD |0
+<U5E74> \xA6\x7E |0
+<U5E75> \xC9\xDB |0
+<U5E76> \xA6\x7D |0
+<U5E78> \xA9\xAF |0
+<U5E79> \xB7\x46 |0
+<U5E7A> \xFB\xF4 |0
+<U5E7B> \xA4\xDB |0
+<U5E7C> \xA5\xAE |0
+<U5E7D> \xAB\xD5 |0
+<U5E7E> \xB4\x58 |0
+<U5E7F> \xC6\xCE |0
+<U5E80> \xC9\x79 |0
+<U5E82> \xC9\x7A |0
+<U5E83> \xFB\xC3 |0
+<U5E84> \xC9\xDC |0
+<U5E86> \x89\x65 |0
+<U5E87> \xA7\xC8 |0
+<U5E88> \xCA\xD0 |0
+<U5E89> \xCA\xCE |0
+<U5E8A> \xA7\xC9 |0
+<U5E8B> \xCA\xCD |0
+<U5E8C> \xCA\xCF |0
+<U5E8D> \xCA\xD1 |0
+<U5E8F> \xA7\xC7 |0
+<U5E95> \xA9\xB3 |0
+<U5E96> \xA9\xB4 |0
+<U5E97> \xA9\xB1 |0
+<U5E9A> \xA9\xB0 |0
+<U5E9B> \xCE\xB8 |0
+<U5E9C> \xA9\xB2 |0
+<U5EA0> \xAB\xD6 |0
+<U5EA2> \xCE\xB7 |0
+<U5EA3> \xCE\xB9 |0
+<U5EA4> \xCE\xB6 |0
+<U5EA5> \xCE\xBA |0
+<U5EA6> \xAB\xD7 |0
+<U5EA7> \xAE\x79 |0
+<U5EA8> \xD1\x75 |0
+<U5EAA> \xD1\x77 |0
+<U5EAB> \xAE\x77 |0
+<U5EAC> \xD1\x78 |0
+<U5EAD> \xAE\x78 |0
+<U5EAE> \xD1\x76 |0
+<U5EB0> \xCE\xB5 |0
+<U5EB1> \xD5\x47 |0
+<U5EB2> \xD5\x4A |0
+<U5EB3> \xD5\x4B |0
+<U5EB4> \xD5\x48 |0
+<U5EB5> \xB1\x67 |0
+<U5EB6> \xB1\x66 |0
+<U5EB7> \xB1\x64 |0
+<U5EB8> \xB1\x65 |0
+<U5EB9> \xD5\x49 |0
+<U5EBD> \x8D\x6A |0
+<U5EBE> \xB1\x68 |0
+<U5EC1> \xB4\x5A |0
+<U5EC2> \xB4\x5B |0
+<U5EC4> \xB4\x5C |0
+<U5EC5> \xDD\x5D |0
+<U5EC6> \xDD\x5F |0
+<U5EC7> \xDD\x61 |0
+<U5EC8> \xB7\x48 |0
+<U5EC9> \xB7\x47 |0
+<U5ECA> \xB4\x59 |0
+<U5ECB> \xDD\x60 |0
+<U5ECC> \xDD\x5E |0
+<U5ECD> \x93\x53 |0
+<U5ECE> \xE1\xB8 |0
+<U5ED0> \x9D\xFB |0
+<U5ED1> \xE1\xB6 |0
+<U5ED2> \xE1\xBC |0
+<U5ED3> \xB9\xF8 |0
+<U5ED4> \xE1\xBD |0
+<U5ED5> \xE1\xBA |0
+<U5ED6> \xB9\xF9 |0
+<U5ED7> \xE1\xB7 |0
+<U5ED8> \xE1\xB5 |0
+<U5ED9> \xE1\xBB |0
+<U5EDA> \xBC\x70 |0
+<U5EDB> \xE5\x73 |0
+<U5EDC> \xE1\xB9 |0
+<U5EDD> \xBC\x72 |0
+<U5EDE> \xE5\x74 |0
+<U5EDF> \xBC\x71 |0
+<U5EE0> \xBC\x74 |0
+<U5EE1> \xE5\x75 |0
+<U5EE2> \xBC\x6F |0
+<U5EE3> \xBC\x73 |0
+<U5EE5> \xE9\x73 |0
+<U5EE6> \xE9\x71 |0
+<U5EE7> \xE9\x70 |0
+<U5EE8> \xE9\x72 |0
+<U5EE9> \xE9\x6F |0
+<U5EEC> \xC3\x66 |0
+<U5EEE> \xF4\x46 |0
+<U5EEF> \xF4\x47 |0
+<U5EF1> \xF5\xCB |0
+<U5EF2> \xF6\xDF |0
+<U5EF3> \xC6\x55 |0
+<U5EF4> \xFB\xFD |0
+<U5EF6> \xA9\xB5 |0
+<U5EF7> \xA7\xCA |0
+<U5EF8> \x90\x59 |0
+<U5EF9> \xFC\x40 |0
+<U5EFA> \xAB\xD8 |0
+<U5EFB> \xFC\x41 |0
+<U5EFC> \xFC\x43 |0
+<U5EFE> \xA4\x7B |0
+<U5EFF> \xA4\xDC |0
+<U5F01> \xA5\xAF |0
+<U5F02> \xC9\xDD |0
+<U5F04> \xA7\xCB |0
+<U5F05> \xCA\xD2 |0
+<U5F07> \xCE\xBB |0
+<U5F08> \xAB\xD9 |0
+<U5F0A> \xB9\xFA |0
+<U5F0B> \xA4\x7C |0
+<U5F0C> \x93\x61 |0
+<U5F0D> \xFC\x46 |0
+<U5F0E> \x93\x62 |0
+<U5F0F> \xA6\xA1 |0
+<U5F12> \xB7\x49 |0
+<U5F13> \xA4\x7D |0
+<U5F14> \xA4\xDD |0
+<U5F15> \xA4\xDE |0
+<U5F17> \xA5\xB1 |0
+<U5F18> \xA5\xB0 |0
+<U5F1A> \xC9\xDE |0
+<U5F1B> \xA6\xA2 |0
+<U5F1D> \xCA\xD3 |0
+<U5F1F> \xA7\xCC |0
+<U5F22> \xCC\x71 |0
+<U5F23> \xCC\x72 |0
+<U5F24> \xCC\x73 |0
+<U5F25> \x8D\x6B |0
+<U5F26> \xA9\xB6 |0
+<U5F27> \xA9\xB7 |0
+<U5F28> \xCC\x70 |0
+<U5F29> \xA9\xB8 |0
+<U5F2D> \xAB\xDA |0
+<U5F2E> \xCE\xBC |0
+<U5F30> \xD1\x7A |0
+<U5F31> \xAE\x7A |0
+<U5F33> \xD1\x79 |0
+<U5F35> \xB1\x69 |0
+<U5F36> \xD5\x4C |0
+<U5F37> \xB1\x6A |0
+<U5F38> \xD5\x4D |0
+<U5F3A> \xFC\x4C |0
+<U5F3C> \xB4\x5D |0
+<U5F40> \xDD\x62 |0
+<U5F43> \xE1\xBF |0
+<U5F44> \xE1\xBE |0
+<U5F46> \xB9\xFB |0
+<U5F48> \xBC\x75 |0
+<U5F49> \xE5\x76 |0
+<U5F4A> \xBE\xCA |0
+<U5F4B> \xE9\x74 |0
+<U5F4C> \xC0\xB1 |0
+<U5F4D> \x95\xB8 |0
+<U5F4E> \xC5\x73 |0
+<U5F4F> \xF7\xD8 |0
+<U5F50> \xC6\xD0 |0
+<U5F51> \x8B\xCA |0
+<U5F54> \xCC\x74 |0
+<U5F56> \xCE\xBD |0
+<U5F57> \xB1\x6B |0
+<U5F58> \xD8\xF4 |0
+<U5F59> \xB7\x4A |0
+<U5F5C> \x98\x7A |0
+<U5F5D> \xC2\x55 |0
+<U5F61> \xC6\xD1 |0
+<U5F62> \xA7\xCE |0
+<U5F63> \xFC\x51 |0
+<U5F64> \xA7\xCD |0
+<U5F65> \xAB\xDB |0
+<U5F67> \xD1\x7B |0
+<U5F69> \xB1\x6D |0
+<U5F6A> \xB3\x43 |0
+<U5F6B> \xB1\x6E |0
+<U5F6C> \xB1\x6C |0
+<U5F6D> \xB4\x5E |0
+<U5F6F> \xE1\xC0 |0
+<U5F70> \xB9\xFC |0
+<U5F71> \xBC\x76 |0
+<U5F72> \xFC\x54 |0
+<U5F73> \xC9\x4C |0
+<U5F74> \xC9\xDF |0
+<U5F76> \xCA\xD5 |0
+<U5F77> \xA7\xCF |0
+<U5F78> \xCA\xD4 |0
+<U5F79> \xA7\xD0 |0
+<U5F7B> \xFA\xAF |0
+<U5F7C> \xA9\xBC |0
+<U5F7D> \xCC\x77 |0
+<U5F7E> \xCC\x76 |0
+<U5F7F> \xA9\xBB |0
+<U5F80> \xA9\xB9 |0
+<U5F81> \xA9\xBA |0
+<U5F82> \xCC\x75 |0
+<U5F83> \x8D\x6C |0
+<U5F85> \xAB\xDD |0
+<U5F86> \xCE\xBE |0
+<U5F87> \xAB\xE0 |0
+<U5F88> \xAB\xDC |0
+<U5F89> \xAB\xE2 |0
+<U5F8A> \xAB\xDE |0
+<U5F8B> \xAB\xDF |0
+<U5F8C> \xAB\xE1 |0
+<U5F90> \xAE\x7D |0
+<U5F91> \xAE\x7C |0
+<U5F92> \xAE\x7B |0
+<U5F96> \xD5\x4F |0
+<U5F97> \xB1\x6F |0
+<U5F98> \xB1\x72 |0
+<U5F99> \xB1\x70 |0
+<U5F9B> \xD5\x4E |0
+<U5F9C> \xB1\x75 |0
+<U5F9E> \xB1\x71 |0
+<U5F9F> \xD5\x50 |0
+<U5FA0> \xB1\x74 |0
+<U5FA1> \xB1\x73 |0
+<U5FA4> \xFA\x61 |0
+<U5FA5> \xD8\xF6 |0
+<U5FA6> \xD8\xF5 |0
+<U5FA7> \xFC\x57 |0
+<U5FA8> \xB4\x61 |0
+<U5FA9> \xB4\x5F |0
+<U5FAA> \xB4\x60 |0
+<U5FAB> \xD8\xF7 |0
+<U5FAC> \xB7\x4B |0
+<U5FAD> \xDD\x64 |0
+<U5FAE> \xB7\x4C |0
+<U5FAF> \xDD\x63 |0
+<U5FB1> \x9B\x70 |0
+<U5FB2> \xE5\x77 |0
+<U5FB5> \xBC\x78 |0
+<U5FB6> \xE1\xC1 |0
+<U5FB7> \xBC\x77 |0
+<U5FB9> \xB9\xFD |0
+<U5FBA> \xA0\x51 |0
+<U5FBB> \xEC\xDE |0
+<U5FBC> \xE9\x75 |0
+<U5FBD> \xC0\xB2 |0
+<U5FBE> \xEC\xDD |0
+<U5FBF> \xF2\x40 |0
+<U5FC0> \xF4\x48 |0
+<U5FC1> \xF4\x49 |0
+<U5FC3> \xA4\xDF |0
+<U5FC4> \x8B\xCB |0
+<U5FC5> \xA5\xB2 |0
+<U5FC9> \xC9\x7B |0
+<U5FCC> \xA7\xD2 |0
+<U5FCD> \xA7\xD4 |0
+<U5FCF> \xC9\xE2 |0
+<U5FD0> \xCA\xD8 |0
+<U5FD1> \xCA\xD7 |0
+<U5FD2> \xCA\xD6 |0
+<U5FD4> \xC9\xE1 |0
+<U5FD5> \xC9\xE0 |0
+<U5FD6> \xA6\xA4 |0
+<U5FD7> \xA7\xD3 |0
+<U5FD8> \xA7\xD1 |0
+<U5FD9> \xA6\xA3 |0
+<U5FDB> \x93\x6E |0
+<U5FDD> \xA9\xBD |0
+<U5FDE> \xCC\x78 |0
+<U5FDF> \xFC\xD5 |0
+<U5FE0> \xA9\xBE |0
+<U5FE1> \xCA\xDD |0
+<U5FE3> \xCA\xDF |0
+<U5FE4> \xCA\xDE |0
+<U5FE5> \xCC\x79 |0
+<U5FE8> \xCA\xDA |0
+<U5FEA> \xA7\xD8 |0
+<U5FEB> \xA7\xD6 |0
+<U5FED> \xCA\xD9 |0
+<U5FEE> \xCA\xDB |0
+<U5FEF> \xCA\xE1 |0
+<U5FF1> \xA7\xD5 |0
+<U5FF3> \xCA\xDC |0
+<U5FF4> \xCA\xE5 |0
+<U5FF5> \xA9\xC0 |0
+<U5FF7> \xCA\xE2 |0
+<U5FF8> \xA7\xD7 |0
+<U5FFA> \xCA\xE0 |0
+<U5FFB> \xCA\xE3 |0
+<U5FFD> \xA9\xBF |0
+<U5FFF> \xA9\xC1 |0
+<U6000> \xCA\xE4 |0
+<U6009> \xCC\xAF |0
+<U600A> \xCC\xA2 |0
+<U600B> \xCC\x7E |0
+<U600C> \xCC\xAE |0
+<U600D> \xCC\xA9 |0
+<U600E> \xAB\xE7 |0
+<U600F> \xA9\xC2 |0
+<U6010> \xCC\xAA |0
+<U6011> \xCC\xAD |0
+<U6012> \xAB\xE3 |0
+<U6013> \xCC\xAC |0
+<U6014> \xA9\xC3 |0
+<U6015> \xA9\xC8 |0
+<U6016> \xA9\xC6 |0
+<U6017> \xCC\xA3 |0
+<U6019> \xCC\x7C |0
+<U601A> \xCC\xA5 |0
+<U601B> \xA9\xCD |0
+<U601C> \xCC\xB0 |0
+<U601D> \xAB\xE4 |0
+<U601E> \xCC\xA6 |0
+<U6020> \xAB\xE5 |0
+<U6021> \xA9\xC9 |0
+<U6022> \xCC\xA8 |0
+<U6023> \xFC\xA9 |0
+<U6024> \xCE\xCD |0
+<U6025> \xAB\xE6 |0
+<U6026> \xCC\x7B |0
+<U6027> \xA9\xCA |0
+<U6028> \xAB\xE8 |0
+<U6029> \xA9\xCB |0
+<U602A> \xA9\xC7 |0
+<U602B> \xA9\xCC |0
+<U602C> \xCC\xA7 |0
+<U602D> \xCC\x7A |0
+<U602E> \xCC\xAB |0
+<U602F> \xA9\xC4 |0
+<U6031> \xFC\x61 |0
+<U6032> \xCC\x7D |0
+<U6033> \xCC\xA4 |0
+<U6034> \xCC\xA1 |0
+<U6035> \xA9\xC5 |0
+<U6037> \xCE\xBF |0
+<U6039> \xCE\xC0 |0
+<U603B> \x89\x66 |0
+<U6040> \xCE\xCA |0
+<U6041> \xD1\xA1 |0
+<U6042> \xCE\xCB |0
+<U6043> \xAB\xEE |0
+<U6044> \xCE\xCE |0
+<U6045> \xCE\xC4 |0
+<U6046> \xAB\xED |0
+<U6047> \xCE\xC6 |0
+<U6049> \xCE\xC7 |0
+<U604A> \xFA\xCB |0
+<U604C> \xCE\xC9 |0
+<U604D> \xAB\xE9 |0
+<U6050> \xAE\xA3 |0
+<U6052> \xF9\xDA |0
+<U6053> \xCE\xC5 |0
+<U6054> \xCE\xC1 |0
+<U6055> \xAE\xA4 |0
+<U6058> \xCE\xCF |0
+<U6059> \xAE\x7E |0
+<U605A> \xD1\x7D |0
+<U605B> \xCE\xC8 |0
+<U605D> \xD1\x7C |0
+<U605E> \xCE\xC3 |0
+<U605F> \xCE\xCC |0
+<U6062> \xAB\xEC |0
+<U6063> \xAE\xA1 |0
+<U6064> \xAB\xF2 |0
+<U6065> \xAE\xA2 |0
+<U6066> \xCE\xD0 |0
+<U6067> \xD1\x7E |0
+<U6068> \xAB\xEB |0
+<U6069> \xAE\xA6 |0
+<U606A> \xAB\xF1 |0
+<U606B> \xAB\xF0 |0
+<U606C> \xAB\xEF |0
+<U606D> \xAE\xA5 |0
+<U606E> \xCE\xD1 |0
+<U606F> \xAE\xA7 |0
+<U6070> \xAB\xEA |0
+<U6072> \xCE\xC2 |0
+<U6075> \x93\x7A |0
+<U6077> \xA0\xE0 |0
+<U607E> \x93\x6B |0
+<U607F> \xB1\x76 |0
+<U6080> \xD1\xA4 |0
+<U6081> \xD1\xA6 |0
+<U6083> \xD1\xA8 |0
+<U6084> \xAE\xA8 |0
+<U6085> \xAE\xAE |0
+<U6086> \xD5\x53 |0
+<U6087> \xD1\xAC |0
+<U6088> \xD1\xA3 |0
+<U6089> \xB1\x78 |0
+<U608A> \xD5\x51 |0
+<U608C> \xAE\xAD |0
+<U608D> \xAE\xAB |0
+<U608E> \xD1\xAE |0
+<U6090> \xD5\x52 |0
+<U6092> \xD1\xA5 |0
+<U6094> \xAE\xAC |0
+<U6095> \xD1\xA9 |0
+<U6096> \xAE\xAF |0
+<U6097> \xD1\xAB |0
+<U609A> \xAE\xAA |0
+<U609B> \xD1\xAA |0
+<U609C> \xD1\xAD |0
+<U609D> \xD1\xA7 |0
+<U609E> \xFC\x6B |0
+<U609F> \xAE\xA9 |0
+<U60A0> \xB1\x79 |0
+<U60A2> \xD1\xA2 |0
+<U60A3> \xB1\x77 |0
+<U60A4> \xA0\xDC |0
+<U60A7> \x94\x68 |0
+<U60A8> \xB1\x7A |0
+<U60B0> \xD5\x55 |0
+<U60B1> \xD5\x5E |0
+<U60B2> \xB4\x64 |0
+<U60B3> \xFC\x6D |0
+<U60B4> \xB1\x7C |0
+<U60B5> \xB1\xA3 |0
+<U60B6> \xB4\x65 |0
+<U60B7> \xD5\x60 |0
+<U60B8> \xB1\xAA |0
+<U60B9> \xD8\xF9 |0
+<U60BA> \xD5\x56 |0
+<U60BB> \xB1\xA2 |0
+<U60BC> \xB1\xA5 |0
+<U60BD> \xB1\x7E |0
+<U60BE> \xD5\x54 |0
+<U60BF> \xD5\x62 |0
+<U60C0> \xD5\x65 |0
+<U60C1> \xD9\x49 |0
+<U60C3> \xD5\x63 |0
+<U60C4> \xD8\xFD |0
+<U60C5> \xB1\xA1 |0
+<U60C6> \xB1\xA8 |0
+<U60C7> \xB1\xAC |0
+<U60C8> \xD5\x5D |0
+<U60C9> \xD8\xF8 |0
+<U60CA> \xD5\x61 |0
+<U60CB> \xB1\x7B |0
+<U60CC> \xD8\xFA |0
+<U60CD> \xD5\x64 |0
+<U60CE> \xD8\xFC |0
+<U60CF> \xD5\x59 |0
+<U60D1> \xB4\x62 |0
+<U60D3> \xD5\x57 |0
+<U60D4> \xD5\x58 |0
+<U60D5> \xB1\xA7 |0
+<U60D7> \x8D\x71 |0
+<U60D8> \xB1\xA6 |0
+<U60D9> \xD5\x5B |0
+<U60DA> \xB1\xAB |0
+<U60DB> \xD5\x5F |0
+<U60DC> \xB1\xA4 |0
+<U60DD> \xD5\x5C |0
+<U60DE> \xFD\x64 |0
+<U60DF> \xB1\xA9 |0
+<U60E0> \xB4\x66 |0
+<U60E1> \xB4\x63 |0
+<U60E2> \xD8\xFB |0
+<U60E3> \x99\xBA |0
+<U60E4> \xD5\x5A |0
+<U60E6> \xB1\x7D |0
+<U60E7> \x9A\xD0 |0
+<U60E8> \x9A\x61 |0
+<U60E9> \xA0\xE5 |0
+<U60F0> \xB4\x6B |0
+<U60F1> \xB4\x6F |0
+<U60F2> \xD9\x40 |0
+<U60F3> \xB7\x51 |0
+<U60F4> \xB4\x6D |0
+<U60F5> \xD9\x44 |0
+<U60F6> \xB4\x71 |0
+<U60F7> \xDD\x65 |0
+<U60F8> \xD9\x46 |0
+<U60F9> \xB7\x53 |0
+<U60FA> \xB4\x69 |0
+<U60FB> \xB4\x6C |0
+<U60FC> \xD9\x47 |0
+<U60FD> \xA0\x5B |0
+<U60FE> \xD9\x48 |0
+<U60FF> \xD9\x4E |0
+<U6100> \xB4\x73 |0
+<U6101> \xB7\x54 |0
+<U6103> \xD9\x4A |0
+<U6104> \xD9\x4F |0
+<U6105> \xD9\x43 |0
+<U6106> \xB7\x5E |0
+<U6107> \x96\xAC |0
+<U6108> \xB7\x55 |0
+<U6109> \xB4\x72 |0
+<U610A> \xD9\x41 |0
+<U610B> \xD9\x50 |0
+<U610C> \x97\x40 |0
+<U610D> \xB7\x5D |0
+<U610E> \xB4\x70 |0
+<U610F> \xB7\x4E |0
+<U6110> \xD9\x4D |0
+<U6112> \xB4\x74 |0
+<U6113> \xD9\x45 |0
+<U6114> \xD8\xFE |0
+<U6115> \xB4\x6A |0
+<U6116> \xD9\x42 |0
+<U6118> \xD9\x4B |0
+<U6119> \x9E\xF1 |0
+<U611A> \xB7\x4D |0
+<U611B> \xB7\x52 |0
+<U611C> \xB4\x67 |0
+<U611D> \xD9\x4C |0
+<U611F> \xB7\x50 |0
+<U6123> \xB4\x68 |0
+<U6127> \xB7\x5C |0
+<U6128> \xE1\xC3 |0
+<U6129> \xDD\x70 |0
+<U612B> \xDD\x68 |0
+<U612C> \xE1\xC2 |0
+<U612E> \xDD\x6C |0
+<U612F> \xDD\x6E |0
+<U6130> \x9F\x7E |0
+<U6132> \xDD\x6B |0
+<U6134> \xB7\x5B |0
+<U6136> \xDD\x6A |0
+<U6137> \xB7\x5F |0
+<U613B> \xE1\xD2 |0
+<U613D> \x8D\x72 |0
+<U613E> \xB7\x5A |0
+<U613F> \xBA\x40 |0
+<U6140> \xDD\x71 |0
+<U6141> \xE1\xC4 |0
+<U6142> \xFC\x76 |0
+<U6144> \xB7\x58 |0
+<U6145> \xDD\x69 |0
+<U6146> \xDD\x6D |0
+<U6147> \xB9\xFE |0
+<U6148> \xB7\x4F |0
+<U6149> \xDD\x66 |0
+<U614A> \xDD\x67 |0
+<U614B> \xBA\x41 |0
+<U614C> \xB7\x57 |0
+<U614D> \xB7\x59 |0
+<U614E> \xB7\x56 |0
+<U614F> \xDD\x6F |0
+<U6150> \x96\xA9 |0
+<U6152> \xE1\xC8 |0
+<U6153> \xE1\xC9 |0
+<U6154> \xE1\xCE |0
+<U6155> \xBC\x7D |0
+<U6156> \xE1\xD5 |0
+<U6158> \xBA\x47 |0
+<U6159> \xA0\x6E |0
+<U615A> \xBA\x46 |0
+<U615B> \xE1\xD0 |0
+<U615C> \xFC\xAA |0
+<U615D> \xBC\x7C |0
+<U615E> \xE1\xC5 |0
+<U615F> \xBA\x45 |0
+<U6160> \xFB\xCD |0
+<U6161> \xE1\xD4 |0
+<U6162> \xBA\x43 |0
+<U6163> \xBA\x44 |0
+<U6164> \xFC\x74 |0
+<U6165> \xE1\xD1 |0
+<U6166> \xE5\xAA |0
+<U6167> \xBC\x7A |0
+<U6168> \xB4\x6E |0
+<U616A> \xE1\xD3 |0
+<U616B> \xBC\xA3 |0
+<U616C> \xE1\xCB |0
+<U616E> \xBC\x7B |0
+<U616F> \xA0\x74 |0
+<U6170> \xBC\xA2 |0
+<U6171> \xE1\xC6 |0
+<U6172> \xE1\xCA |0
+<U6173> \xE1\xC7 |0
+<U6174> \xE1\xCD |0
+<U6175> \xBA\x48 |0
+<U6176> \xBC\x79 |0
+<U6177> \xBA\x42 |0
+<U6179> \xE5\x7A |0
+<U617A> \xE1\xCF |0
+<U617C> \xBC\xA1 |0
+<U617D> \xA0\x71 |0
+<U617E> \xBC\xA4 |0
+<U6180> \xE1\xCC |0
+<U6181> \xFC\x79 |0
+<U6182> \xBC\x7E |0
+<U6183> \xE5\x79 |0
+<U6187> \xFC\x7C |0
+<U6189> \xE5\x7E |0
+<U618A> \xBE\xCE |0
+<U618B> \xE5\x78 |0
+<U618C> \xE9\xA3 |0
+<U618D> \xE5\xA9 |0
+<U618E> \xBC\xA8 |0
+<U6190> \xBC\xA6 |0
+<U6191> \xBE\xCC |0
+<U6192> \xE5\xA6 |0
+<U6193> \xE5\xA2 |0
+<U6194> \xBC\xAC |0
+<U6195> \x9C\x50 |0
+<U6196> \xE9\x78 |0
+<U6198> \x93\x79 |0
+<U6199> \x93\x78 |0
+<U619A> \xBC\xAA |0
+<U619B> \xE5\xA1 |0
+<U619C> \xA0\xDD |0
+<U619D> \xE9\x76 |0
+<U619F> \xE5\xA5 |0
+<U61A1> \xE5\xA8 |0
+<U61A2> \xE5\x7D |0
+<U61A4> \xBC\xAB |0
+<U61A7> \xBC\xA5 |0
+<U61A8> \xE9\x77 |0
+<U61A9> \xBE\xCD |0
+<U61AA> \xE5\xA7 |0
+<U61AB> \xBC\xA7 |0
+<U61AC> \xBC\xA9 |0
+<U61AD> \xE5\xA4 |0
+<U61AE> \xBC\xAD |0
+<U61AF> \xE5\xA3 |0
+<U61B0> \xE5\x7C |0
+<U61B1> \xE5\x7B |0
+<U61B2> \xBE\xCB |0
+<U61B3> \xE5\xAB |0
+<U61B4> \xE9\x7A |0
+<U61B5> \xEC\xE0 |0
+<U61B6> \xBE\xD0 |0
+<U61B7> \x8D\x75 |0
+<U61B8> \xE9\xA2 |0
+<U61B9> \x8D\x76 |0
+<U61BA> \xE9\x7E |0
+<U61BC> \xEC\xE1 |0
+<U61BE> \xBE\xD1 |0
+<U61BF> \xE9\xA1 |0
+<U61C0> \x93\x74 |0
+<U61C1> \xE9\x7C |0
+<U61C2> \xC0\xB4 |0
+<U61C3> \xEC\xDF |0
+<U61C5> \xE9\x79 |0
+<U61C6> \xE9\x7B |0
+<U61C7> \xC0\xB5 |0
+<U61C8> \xBE\xD3 |0
+<U61C9> \xC0\xB3 |0
+<U61CA> \xBE\xD2 |0
+<U61CB> \xC0\xB7 |0
+<U61CC> \xE9\x7D |0
+<U61CD> \xBE\xCF |0
+<U61CF> \x8D\x77 |0
+<U61D0> \xFC\xA5 |0
+<U61D3> \xFC\xA2 |0
+<U61D6> \xEF\xCF |0
+<U61D8> \xEF\xC7 |0
+<U61DA> \x90\xC3 |0
+<U61DE> \xEC\xE7 |0
+<U61DF> \xEF\xC8 |0
+<U61E0> \xEC\xE3 |0
+<U61E2> \xA0\x79 |0
+<U61E3> \xC2\x56 |0
+<U61E4> \xEC\xE5 |0
+<U61E5> \xEC\xE4 |0
+<U61E6> \xC0\xB6 |0
+<U61E7> \xEC\xE2 |0
+<U61E8> \xEC\xE6 |0
+<U61E9> \xEF\xD0 |0
+<U61EA> \xEF\xCC |0
+<U61EB> \xEF\xCE |0
+<U61ED> \xEF\xC9 |0
+<U61EE> \xEF\xCA |0
+<U61F0> \xEF\xCD |0
+<U61F1> \xEF\xCB |0
+<U61F2> \xC3\x67 |0
+<U61F5> \xC3\x6A |0
+<U61F6> \xC3\x69 |0
+<U61F7> \xC3\x68 |0
+<U61F8> \xC4\x61 |0
+<U61F9> \xF4\x4A |0
+<U61FA> \xC4\x62 |0
+<U61FB> \xF2\x41 |0
+<U61FC> \xC4\xDF |0
+<U61FD> \xF5\xCC |0
+<U61FE> \xC4\xE0 |0
+<U61FF> \xC5\x74 |0
+<U6200> \xC5\xCA |0
+<U6201> \xF7\xD9 |0
+<U6203> \xF7\xDA |0
+<U6204> \xF7\xDB |0
+<U6207> \xF9\xBA |0
+<U6208> \xA4\xE0 |0
+<U6209> \xC9\x7C |0
+<U620A> \xA5\xB3 |0
+<U620C> \xA6\xA6 |0
+<U620D> \xA6\xA7 |0
+<U620E> \xA6\xA5 |0
+<U6210> \xA6\xA8 |0
+<U6211> \xA7\xDA |0
+<U6212> \xA7\xD9 |0
+<U6214> \xCC\xB1 |0
+<U6215> \xA9\xCF |0
+<U6216> \xA9\xCE |0
+<U6219> \xD1\xAF |0
+<U621A> \xB1\xAD |0
+<U621B> \xB1\xAE |0
+<U621F> \xB4\x75 |0
+<U6220> \xDD\x72 |0
+<U6221> \xB7\x60 |0
+<U6222> \xB7\x61 |0
+<U6223> \xDD\x74 |0
+<U6224> \xDD\x76 |0
+<U6225> \xDD\x75 |0
+<U6227> \xE1\xD7 |0
+<U6229> \xE1\xD6 |0
+<U622A> \xBA\x49 |0
+<U622B> \xE1\xD8 |0
+<U622C> \x8D\x79 |0
+<U622D> \xE5\xAC |0
+<U622E> \xBC\xAE |0
+<U6230> \xBE\xD4 |0
+<U6232> \xC0\xB8 |0
+<U6233> \xC2\x57 |0
+<U6234> \xC0\xB9 |0
+<U6236> \xA4\xE1 |0
+<U6237> \x8B\xFC |0
+<U6239> \xA0\x76 |0
+<U623A> \xCA\xE6 |0
+<U623D> \xCC\xB2 |0
+<U623E> \xA9\xD1 |0
+<U623F> \xA9\xD0 |0
+<U6240> \xA9\xD2 |0
+<U6241> \xAB\xF3 |0
+<U6242> \xCE\xD2 |0
+<U6243> \xCE\xD3 |0
+<U6246> \xD1\xB0 |0
+<U6247> \xAE\xB0 |0
+<U6248> \xB1\xAF |0
+<U6249> \xB4\x76 |0
+<U624A> \xD9\x51 |0
+<U624B> \xA4\xE2 |0
+<U624C> \x8B\xCD |0
+<U624D> \xA4\x7E |0
+<U624E> \xA4\xE3 |0
+<U6250> \xC9\x7D |0
+<U6251> \xA5\xB7 |0
+<U6252> \xA5\xB6 |0
+<U6253> \xA5\xB4 |0
+<U6254> \xA5\xB5 |0
+<U6258> \xA6\xAB |0
+<U6259> \xC9\xE9 |0
+<U625A> \xC9\xEB |0
+<U625B> \xA6\xAA |0
+<U625C> \xC9\xE3 |0
+<U625E> \xC9\xE4 |0
+<U6260> \xC9\xEA |0
+<U6261> \xC9\xE6 |0
+<U6262> \xC9\xE8 |0
+<U6263> \xA6\xA9 |0
+<U6264> \xC9\xE5 |0
+<U6265> \xC9\xEC |0
+<U6266> \xC9\xE7 |0
+<U6268> \x9F\x5A |0
+<U626D> \xA7\xE1 |0
+<U626E> \xA7\xEA |0
+<U626F> \xA7\xE8 |0
+<U6270> \xCA\xF0 |0
+<U6271> \xCA\xED |0
+<U6272> \xCA\xF5 |0
+<U6273> \xA7\xE6 |0
+<U6274> \xCA\xF6 |0
+<U6276> \xA7\xDF |0
+<U6277> \xCA\xF3 |0
+<U6279> \xA7\xE5 |0
+<U627A> \xCA\xEF |0
+<U627B> \xCA\xEE |0
+<U627C> \xA7\xE3 |0
+<U627D> \xCA\xF4 |0
+<U627E> \xA7\xE4 |0
+<U627F> \xA9\xD3 |0
+<U6280> \xA7\xDE |0
+<U6281> \xCA\xF1 |0
+<U6282> \x9F\xF4 |0
+<U6283> \xCA\xE7 |0
+<U6284> \xA7\xDB |0
+<U6285> \x9F\xBA |0
+<U6286> \xA7\xEE |0
+<U6287> \xCA\xEC |0
+<U6288> \xCA\xF2 |0
+<U6289> \xA7\xE0 |0
+<U628A> \xA7\xE2 |0
+<U628C> \xCA\xE8 |0
+<U628E> \xCA\xE9 |0
+<U628F> \xCA\xEA |0
+<U6290> \x8D\x7A |0
+<U6291> \xA7\xED |0
+<U6292> \xA7\xE7 |0
+<U6293> \xA7\xEC |0
+<U6294> \xCA\xEB |0
+<U6295> \xA7\xEB |0
+<U6296> \xA7\xDD |0
+<U6297> \xA7\xDC |0
+<U6298> \xA7\xE9 |0
+<U629D> \x9E\x45 |0
+<U62A4> \x93\xB0 |0
+<U62A6> \xA0\x75 |0
+<U62A8> \xA9\xE1 |0
+<U62A9> \xCC\xBE |0
+<U62AA> \xCC\xB7 |0
+<U62AB> \xA9\xDC |0
+<U62AC> \xA9\xEF |0
+<U62AD> \xCC\xB3 |0
+<U62AE> \xCC\xBA |0
+<U62AF> \xCC\xBC |0
+<U62B0> \xCC\xBF |0
+<U62B1> \xA9\xEA |0
+<U62B3> \xCC\xBB |0
+<U62B4> \xCC\xB4 |0
+<U62B5> \xA9\xE8 |0
+<U62B6> \xCC\xB8 |0
+<U62B8> \xCC\xC0 |0
+<U62B9> \xA9\xD9 |0
+<U62BB> \xCC\xBD |0
+<U62BC> \xA9\xE3 |0
+<U62BD> \xA9\xE2 |0
+<U62BE> \xCC\xB6 |0
+<U62BF> \xA9\xD7 |0
+<U62C2> \xA9\xD8 |0
+<U62C3> \x9B\x46 |0
+<U62C4> \xA9\xD6 |0
+<U62C5> \xFC\xAE |0
+<U62C6> \xA9\xEE |0
+<U62C7> \xA9\xE6 |0
+<U62C8> \xA9\xE0 |0
+<U62C9> \xA9\xD4 |0
+<U62CA> \xCC\xB9 |0
+<U62CB> \xA9\xDF |0
+<U62CC> \xA9\xD5 |0
+<U62CD> \xA9\xE7 |0
+<U62CE> \xA9\xF0 |0
+<U62CF> \xCE\xD4 |0
+<U62D0> \xA9\xE4 |0
+<U62D1> \xCC\xB5 |0
+<U62D2> \xA9\xDA |0
+<U62D3> \xA9\xDD |0
+<U62D4> \xA9\xDE |0
+<U62D5> \xFC\xB0 |0
+<U62D6> \xA9\xEC |0
+<U62D7> \xA9\xED |0
+<U62D8> \xA9\xEB |0
+<U62D9> \xA9\xE5 |0
+<U62DA> \xA9\xE9 |0
+<U62DB> \xA9\xDB |0
+<U62DC> \xAB\xF4 |0
+<U62DF> \xFA\x51 |0
+<U62E5> \x8D\x7B |0
+<U62EB> \xCE\xDA |0
+<U62EC> \xAC\x41 |0
+<U62ED> \xAB\xF8 |0
+<U62EE> \xAB\xFA |0
+<U62EF> \xAC\x40 |0
+<U62F0> \xCE\xE6 |0
+<U62F1> \xAB\xFD |0
+<U62F2> \xD1\xB1 |0
+<U62F3> \xAE\xB1 |0
+<U62F4> \xAC\x43 |0
+<U62F5> \xCE\xD7 |0
+<U62F6> \xCE\xDF |0
+<U62F7> \xAB\xFE |0
+<U62F8> \xCE\xDE |0
+<U62F9> \xCE\xDB |0
+<U62FA> \xCE\xE3 |0
+<U62FB> \xCE\xE5 |0
+<U62FC> \xAB\xF7 |0
+<U62FD> \xAB\xFB |0
+<U62FE> \xAC\x42 |0
+<U62FF> \xAE\xB3 |0
+<U6300> \xCE\xE0 |0
+<U6301> \xAB\xF9 |0
+<U6302> \xAC\x45 |0
+<U6303> \xCE\xD9 |0
+<U6307> \xAB\xFC |0
+<U6308> \xAE\xB2 |0
+<U6309> \xAB\xF6 |0
+<U630B> \xCE\xD6 |0
+<U630C> \xCE\xDD |0
+<U630D> \xCE\xD5 |0
+<U630E> \xCE\xD8 |0
+<U630F> \xCE\xDC |0
+<U6310> \xD1\xB2 |0
+<U6311> \xAC\x44 |0
+<U6313> \xCE\xE1 |0
+<U6314> \xCE\xE2 |0
+<U6315> \xCE\xE4 |0
+<U6316> \xAB\xF5 |0
+<U6318> \x8D\x7C |0
+<U6328> \xAE\xC1 |0
+<U6329> \xD1\xBE |0
+<U632A> \xAE\xBF |0
+<U632B> \xAE\xC0 |0
+<U632C> \xD1\xB4 |0
+<U632D> \xD1\xC4 |0
+<U632E> \x9E\xD6 |0
+<U632F> \xAE\xB6 |0
+<U6331> \x93\xAC |0
+<U6332> \xD5\x66 |0
+<U6333> \xD1\xC6 |0
+<U6334> \xD1\xC0 |0
+<U6335> \x9F\x5B |0
+<U6336> \xD1\xB7 |0
+<U6337> \x93\xA9 |0
+<U6338> \xD1\xC9 |0
+<U6339> \xD1\xBA |0
+<U633A> \xAE\xBC |0
+<U633B> \xD5\x7D |0
+<U633C> \xD1\xBD |0
+<U633D> \xAE\xBE |0
+<U633E> \xAE\xB5 |0
+<U6340> \xD1\xCB |0
+<U6341> \xD1\xBF |0
+<U6342> \xAE\xB8 |0
+<U6343> \xD1\xB8 |0
+<U6344> \xD1\xB5 |0
+<U6345> \xD1\xB6 |0
+<U6346> \xAE\xB9 |0
+<U6347> \xD1\xC5 |0
+<U6348> \xD1\xCC |0
+<U6349> \xAE\xBB |0
+<U634A> \xD1\xBC |0
+<U634B> \xD1\xBB |0
+<U634C> \xAE\xC3 |0
+<U634D> \xAE\xC2 |0
+<U634E> \xAE\xB4 |0
+<U634F> \xAE\xBA |0
+<U6350> \xAE\xBD |0
+<U6351> \xD1\xC8 |0
+<U6354> \xD1\xC2 |0
+<U6355> \xAE\xB7 |0
+<U6356> \xD1\xB3 |0
+<U6357> \xD1\xCA |0
+<U6358> \xD1\xC1 |0
+<U6359> \xD1\xC3 |0
+<U635A> \xD1\xC7 |0
+<U6364> \xA0\x7C |0
+<U6365> \xD5\x67 |0
+<U6367> \xB1\xB7 |0
+<U6368> \xB1\xCB |0
+<U6369> \xB1\xCA |0
+<U636B> \xB1\xBF |0
+<U636C> \xFC\xB2 |0
+<U636D> \xD5\x79 |0
+<U636E> \xD5\x75 |0
+<U636F> \xD5\x72 |0
+<U6370> \xD5\xA6 |0
+<U6371> \xB1\xBA |0
+<U6372> \xB1\xB2 |0
+<U6375> \xD5\x77 |0
+<U6376> \xB4\xA8 |0
+<U6377> \xB1\xB6 |0
+<U6378> \xD5\xA1 |0
+<U6379> \x8A\xC1 |0
+<U637A> \xB1\xCC |0
+<U637B> \xB1\xC9 |0
+<U637C> \xD5\x7B |0
+<U637D> \xD5\x6A |0
+<U637F> \x9F\xB4 |0
+<U6380> \xB1\xC8 |0
+<U6381> \xD5\xA3 |0
+<U6382> \xD5\x69 |0
+<U6383> \xB1\xBD |0
+<U6384> \xB1\xC1 |0
+<U6385> \xD5\xA2 |0
+<U6387> \xD5\x73 |0
+<U6388> \xB1\xC2 |0
+<U6389> \xB1\xBC |0
+<U638A> \xD5\x68 |0
+<U638B> \xFC\xAC |0
+<U638C> \xB4\x78 |0
+<U638D> \xD5\xA5 |0
+<U638E> \xD5\x71 |0
+<U638F> \xB1\xC7 |0
+<U6390> \xD5\x74 |0
+<U6391> \xD5\xA4 |0
+<U6392> \xB1\xC6 |0
+<U6394> \xD9\x52 |0
+<U6396> \xB1\xB3 |0
+<U6397> \xD5\x6F |0
+<U6398> \xB1\xB8 |0
+<U6399> \xB1\xC3 |0
+<U639B> \xB1\xBE |0
+<U639C> \xD5\x78 |0
+<U639D> \xD5\x6E |0
+<U639E> \xD5\x6C |0
+<U639F> \xD5\x7E |0
+<U63A0> \xB1\xB0 |0
+<U63A1> \xB1\xC4 |0
+<U63A2> \xB1\xB4 |0
+<U63A3> \xB4\x77 |0
+<U63A4> \xD5\x7C |0
+<U63A5> \xB1\xB5 |0
+<U63A7> \xB1\xB1 |0
+<U63A8> \xB1\xC0 |0
+<U63A9> \xB1\xBB |0
+<U63AA> \xB1\xB9 |0
+<U63AB> \xD5\x70 |0
+<U63AC> \xB1\xC5 |0
+<U63AD> \xD5\x6D |0
+<U63AE> \xD5\x7A |0
+<U63AF> \xD5\x76 |0
+<U63B0> \xD9\x54 |0
+<U63B1> \xD9\x53 |0
+<U63B9> \x9E\x4C |0
+<U63BD> \xD5\x6B |0
+<U63BE> \xD9\x64 |0
+<U63C0> \xB4\x7A |0
+<U63C1> \x8F\xC5 |0
+<U63C2> \xD9\x6A |0
+<U63C3> \xD9\x59 |0
+<U63C4> \xD9\x67 |0
+<U63C5> \xDD\x77 |0
+<U63C6> \xB4\x7D |0
+<U63C7> \xD9\x6B |0
+<U63C8> \xD9\x6E |0
+<U63C9> \xB4\x7C |0
+<U63CA> \xD9\x5C |0
+<U63CB> \xD9\x6D |0
+<U63CC> \xD9\x6C |0
+<U63CD> \xB4\x7E |0
+<U63CE> \xD9\x55 |0
+<U63CF> \xB4\x79 |0
+<U63D0> \xB4\xA3 |0
+<U63D1> \x93\xAD |0
+<U63D2> \xB4\xA1 |0
+<U63D3> \xD9\x69 |0
+<U63D5> \xD9\x5F |0
+<U63D6> \xB4\xA5 |0
+<U63D7> \xD9\x70 |0
+<U63D8> \xD9\x68 |0
+<U63D9> \xD9\x71 |0
+<U63DA> \xB4\xAD |0
+<U63DB> \xB4\xAB |0
+<U63DC> \xD9\x66 |0
+<U63DD> \xD9\x65 |0
+<U63DE> \x9D\xC3 |0
+<U63DF> \xD9\x63 |0
+<U63E0> \xD9\x5D |0
+<U63E1> \xB4\xA4 |0
+<U63E2> \x8D\xA2 |0
+<U63E3> \xB4\xA2 |0
+<U63E4> \xD1\xB9 |0
+<U63E5> \xD9\x56 |0
+<U63E6> \x9D\x4A |0
+<U63E7> \xDD\xB7 |0
+<U63E8> \xD9\x57 |0
+<U63E9> \xB4\x7B |0
+<U63EA> \xB4\xAA |0
+<U63EB> \xDD\x79 |0
+<U63ED> \xB4\xA6 |0
+<U63EE> \xB4\xA7 |0
+<U63EF> \xD9\x58 |0
+<U63F0> \xD9\x6F |0
+<U63F1> \xDD\x78 |0
+<U63F2> \xD9\x60 |0
+<U63F3> \xD9\x5B |0
+<U63F4> \xB4\xA9 |0
+<U63F5> \xD9\x61 |0
+<U63F6> \xD9\x5E |0
+<U63F8> \xFC\xB6 |0
+<U63F9> \xB4\xAE |0
+<U63FB> \x8D\xA3 |0
+<U63FC> \x9E\x4B |0
+<U63FE> \x9E\x4D |0
+<U6406> \xB7\x70 |0
+<U6407> \x8D\xA4 |0
+<U6409> \xDD\x7C |0
+<U640A> \xDD\xB1 |0
+<U640B> \xDD\xB6 |0
+<U640C> \xDD\xAA |0
+<U640D> \xB7\x6C |0
+<U640E> \xDD\xBB |0
+<U640F> \xB7\x69 |0
+<U6410> \xDD\x7A |0
+<U6412> \xDD\x7B |0
+<U6413> \xB7\x62 |0
+<U6414> \xB7\x6B |0
+<U6415> \xDD\xA4 |0
+<U6416> \xB7\x6E |0
+<U6417> \xB7\x6F |0
+<U6418> \xDD\xA5 |0
+<U641A> \xDD\xB2 |0
+<U641B> \xDD\xB8 |0
+<U641C> \xB7\x6A |0
+<U641E> \xB7\x64 |0
+<U641F> \xDD\xA3 |0
+<U6420> \xDD\x7D |0
+<U6421> \xDD\xBA |0
+<U6422> \xDD\xA8 |0
+<U6423> \xDD\xA9 |0
+<U6424> \xDD\x7E |0
+<U6425> \xDD\xB4 |0
+<U6426> \xDD\xAB |0
+<U6427> \xDD\xB5 |0
+<U6428> \xDD\xAD |0
+<U642A> \xB7\x65 |0
+<U642B> \xE1\xD9 |0
+<U642C> \xB7\x68 |0
+<U642D> \xB7\x66 |0
+<U642E> \xDD\xB9 |0
+<U642F> \xDD\xB0 |0
+<U6430> \xDD\xAC |0
+<U6432> \x8A\xFD |0
+<U6433> \xDD\xA1 |0
+<U6434> \xBA\x53 |0
+<U6435> \xDD\xAF |0
+<U6436> \xB7\x6D |0
+<U6437> \xDD\xA7 |0
+<U6438> \xFC\xB5 |0
+<U6439> \xDD\xA6 |0
+<U643A> \xFC\xC3 |0
+<U643B> \x93\xB2 |0
+<U643D> \xB7\x67 |0
+<U643E> \xB7\x63 |0
+<U643F> \xE1\xEE |0
+<U6440> \xDD\xB3 |0
+<U6441> \xDD\xAE |0
+<U6443> \xDD\xA2 |0
+<U644B> \xE1\xE9 |0
+<U644D> \xE1\xDA |0
+<U644E> \xE1\xE5 |0
+<U6450> \xE1\xEC |0
+<U6451> \xBA\x51 |0
+<U6452> \xB4\xAC |0
+<U6453> \xE1\xEA |0
+<U6454> \xBA\x4C |0
+<U6458> \xBA\x4B |0
+<U6459> \xE1\xF1 |0
+<U645A> \x8D\xA5 |0
+<U645B> \xE1\xDB |0
+<U645C> \xE1\xE8 |0
+<U645D> \xE1\xDC |0
+<U645E> \xE1\xE7 |0
+<U645F> \xBA\x4F |0
+<U6460> \xE1\xEB |0
+<U6461> \xD9\x62 |0
+<U6465> \xE1\xF2 |0
+<U6466> \xE1\xE3 |0
+<U6467> \xBA\x52 |0
+<U6468> \xE5\xBA |0
+<U6469> \xBC\xAF |0
+<U646B> \xE1\xF0 |0
+<U646C> \xE1\xEF |0
+<U646D> \xBA\x54 |0
+<U646E> \xE5\xAD |0
+<U646F> \xBC\xB0 |0
+<U6470> \xE5\xAE |0
+<U6471> \x93\xA1 |0
+<U6472> \xE1\xDF |0
+<U6473> \xE1\xE0 |0
+<U6474> \xE1\xDD |0
+<U6475> \xE1\xE2 |0
+<U6476> \xE1\xDE |0
+<U6477> \xE1\xF3 |0
+<U6478> \xBA\x4E |0
+<U6479> \xBC\xB1 |0
+<U647A> \xBA\x50 |0
+<U647B> \xBA\x55 |0
+<U647C> \x8A\xC6 |0
+<U647D> \xE1\xE1 |0
+<U647F> \xE1\xED |0
+<U6482> \xE1\xE6 |0
+<U6485> \xE5\xB1 |0
+<U6487> \xBA\x4A |0
+<U6488> \xBC\xB4 |0
+<U6489> \xE9\xAA |0
+<U648A> \xE5\xB6 |0
+<U648B> \xE5\xB5 |0
+<U648C> \xE5\xB7 |0
+<U648D> \x8A\x5B |0
+<U648F> \xE5\xB4 |0
+<U6490> \xBC\xB5 |0
+<U6491> \x89\x4D |0
+<U6492> \xBC\xBB |0
+<U6493> \xBC\xB8 |0
+<U6495> \xBC\xB9 |0
+<U6496> \xE5\xAF |0
+<U6497> \xE5\xB2 |0
+<U6498> \xE5\xBC |0
+<U6499> \xBC\xC1 |0
+<U649A> \xBC\xBF |0
+<U649C> \xE5\xB3 |0
+<U649D> \xD9\x5A |0
+<U649E> \xBC\xB2 |0
+<U649F> \xE5\xB9 |0
+<U64A0> \xE5\xB0 |0
+<U64A2> \xBC\xC2 |0
+<U64A3> \xE5\xB8 |0
+<U64A4> \xBA\x4D |0
+<U64A5> \xBC\xB7 |0
+<U64A6> \xE1\xE4 |0
+<U64A9> \xBC\xBA |0
+<U64AB> \xBC\xBE |0
+<U64AC> \xBC\xC0 |0
+<U64AD> \xBC\xBD |0
+<U64AE> \xBC\xBC |0
+<U64AF> \xFE\xD4 |0
+<U64B0> \xBC\xB6 |0
+<U64B1> \xE5\xBB |0
+<U64B2> \xBC\xB3 |0
+<U64B3> \xBC\xC3 |0
+<U64B4> \x8A\x78 |0
+<U64B6> \x93\xAB |0
+<U64BB> \xBE\xD8 |0
+<U64BC> \xBE\xD9 |0
+<U64BD> \xE9\xA9 |0
+<U64BE> \xBE\xE2 |0
+<U64BF> \xBE\xDF |0
+<U64C0> \x8D\xA7 |0
+<U64C1> \xBE\xD6 |0
+<U64C2> \xBE\xDD |0
+<U64C3> \xE9\xAB |0
+<U64C4> \xBE\xDB |0
+<U64C5> \xBE\xD5 |0
+<U64C7> \xBE\xDC |0
+<U64C9> \xE9\xA8 |0
+<U64CA> \xC0\xBB |0
+<U64CB> \xBE\xD7 |0
+<U64CD> \xBE\xDE |0
+<U64CE> \xC0\xBA |0
+<U64CF> \xE9\xA7 |0
+<U64D0> \xE9\xA6 |0
+<U64D2> \xBE\xE0 |0
+<U64D3> \x9F\x45 |0
+<U64D4> \xBE\xE1 |0
+<U64D6> \xE9\xA5 |0
+<U64D7> \xE9\xA4 |0
+<U64D8> \xC0\xBC |0
+<U64D9> \xE9\xAE |0
+<U64DA> \xBE\xDA |0
+<U64DB> \xE9\xAC |0
+<U64DD> \x8A\x56 |0
+<U64E0> \xC0\xBD |0
+<U64E1> \xFC\xBF |0
+<U64E2> \xC0\xC2 |0
+<U64E3> \xEC\xEA |0
+<U64E4> \xEC\xEC |0
+<U64E5> \xFC\xC0 |0
+<U64E6> \xC0\xBF |0
+<U64E7> \x8E\xE6 |0
+<U64E8> \xEC\xED |0
+<U64E9> \xEC\xE9 |0
+<U64EA> \x8A\xA4 |0
+<U64EB> \xEC\xEB |0
+<U64EC> \xC0\xC0 |0
+<U64ED> \xC0\xC3 |0
+<U64EF> \xEC\xE8 |0
+<U64F0> \xC0\xBE |0
+<U64F1> \xC0\xC1 |0
+<U64F2> \xC2\x59 |0
+<U64F3> \xE9\xAD |0
+<U64F4> \xC2\x58 |0
+<U64F7> \xC2\x5E |0
+<U64F8> \xEF\xD4 |0
+<U64FA> \xC2\x5C |0
+<U64FB> \xC2\x5D |0
+<U64FC> \xEF\xD7 |0
+<U64FD> \xEF\xD3 |0
+<U64FE> \xC2\x5A |0
+<U64FF> \xEF\xD1 |0
+<U6500> \xC3\x6B |0
+<U6501> \xEF\xD5 |0
+<U6503> \xEF\xD6 |0
+<U6504> \xEF\xD2 |0
+<U6506> \xC2\x5B |0
+<U6507> \xF2\x42 |0
+<U6509> \xF2\x45 |0
+<U650A> \x89\x43 |0
+<U650C> \xF2\x46 |0
+<U650D> \xF2\x44 |0
+<U650E> \xF2\x47 |0
+<U650F> \xC3\x6C |0
+<U6510> \xF2\x43 |0
+<U6511> \x93\xF3 |0
+<U6513> \xF4\x4E |0
+<U6514> \xC4\x64 |0
+<U6515> \xF4\x4D |0
+<U6516> \xF4\x4C |0
+<U6517> \xF4\x4B |0
+<U6518> \xC4\x63 |0
+<U6519> \xC4\x65 |0
+<U651B> \xF5\xCD |0
+<U651C> \xC4\xE2 |0
+<U651D> \xC4\xE1 |0
+<U651E> \xFC\xAB |0
+<U651F> \x9E\xA2 |0
+<U6520> \xF6\xE1 |0
+<U6521> \xF6\xE0 |0
+<U6522> \xF6\xE3 |0
+<U6523> \xC5\xCB |0
+<U6524> \xC5\x75 |0
+<U6525> \xF7\xDD |0
+<U6526> \xF6\xE2 |0
+<U6529> \xF7\xDC |0
+<U652A> \xC5\xCD |0
+<U652B> \xC5\xCC |0
+<U652C> \xC5\xF3 |0
+<U652D> \xF8\xA9 |0
+<U652E> \xF8\xEF |0
+<U652F> \xA4\xE4 |0
+<U6530> \x9D\xC7 |0
+<U6532> \xD9\x72 |0
+<U6533> \xE9\xAF |0
+<U6534> \xC6\xD2 |0
+<U6535> \x8B\xCE |0
+<U6536> \xA6\xAC |0
+<U6537> \xCA\xF7 |0
+<U6538> \xA7\xF1 |0
+<U6539> \xA7\xEF |0
+<U653B> \xA7\xF0 |0
+<U653D> \xCC\xC1 |0
+<U653E> \xA9\xF1 |0
+<U653F> \xAC\x46 |0
+<U6541> \xCE\xE7 |0
+<U6543> \xCE\xE8 |0
+<U6545> \xAC\x47 |0
+<U6546> \xD1\xCE |0
+<U6548> \xAE\xC4 |0
+<U6549> \xAE\xC5 |0
+<U654A> \xD1\xCD |0
+<U654D> \xFC\xC5 |0
+<U654F> \xB1\xD3 |0
+<U6551> \xB1\xCF |0
+<U6553> \xD5\xA7 |0
+<U6554> \xB1\xD6 |0
+<U6555> \xB1\xD5 |0
+<U6556> \xB1\xCE |0
+<U6557> \xB1\xD1 |0
+<U6558> \xB1\xD4 |0
+<U6559> \xB1\xD0 |0
+<U655C> \xD9\x76 |0
+<U655D> \xB1\xCD |0
+<U655E> \xB4\xAF |0
+<U655F> \xFC\xCB |0
+<U6562> \xB4\xB1 |0
+<U6563> \xB4\xB2 |0
+<U6564> \xD9\x75 |0
+<U6565> \xD9\x78 |0
+<U6566> \xB4\xB0 |0
+<U6567> \xD9\x73 |0
+<U6568> \xD9\x77 |0
+<U656A> \xD9\x74 |0
+<U656B> \x93\xB3 |0
+<U656C> \xB7\x71 |0
+<U656D> \xFC\xCA |0
+<U656F> \xDD\xBC |0
+<U6572> \xBA\x56 |0
+<U6573> \xE1\xF4 |0
+<U6574> \xBE\xE3 |0
+<U6575> \xBC\xC4 |0
+<U6576> \xE5\xBD |0
+<U6577> \xBC\xC5 |0
+<U6578> \xBC\xC6 |0
+<U6579> \xE5\xBF |0
+<U657A> \xE5\xBE |0
+<U657B> \xE5\xC0 |0
+<U657C> \xE9\xB1 |0
+<U657F> \xE9\xB0 |0
+<U6580> \xEC\xEF |0
+<U6581> \xEC\xEE |0
+<U6582> \xC0\xC4 |0
+<U6583> \xC0\xC5 |0
+<U6584> \xF2\x48 |0
+<U6585> \xFC\xC9 |0
+<U6586> \x8D\xAC |0
+<U6587> \xA4\xE5 |0
+<U6588> \xFB\xC6 |0
+<U6589> \x89\x67 |0
+<U658C> \xD9\x79 |0
+<U6590> \xB4\xB4 |0
+<U6591> \xB4\xB3 |0
+<U6592> \xDD\xBD |0
+<U6594> \xEF\xD8 |0
+<U6595> \xC4\xE3 |0
+<U6596> \xF7\xDE |0
+<U6597> \xA4\xE6 |0
+<U6599> \xAE\xC6 |0
+<U659B> \xB1\xD8 |0
+<U659C> \xB1\xD7 |0
+<U659D> \xD9\x7A |0
+<U659E> \xD9\x7B |0
+<U659F> \xB7\x72 |0
+<U65A0> \xE1\xF5 |0
+<U65A1> \xBA\x57 |0
+<U65A2> \xE9\xB2 |0
+<U65A4> \xA4\xE7 |0
+<U65A5> \xA5\xB8 |0
+<U65A7> \xA9\xF2 |0
+<U65A8> \xCC\xC2 |0
+<U65AA> \xCE\xE9 |0
+<U65AB> \xAC\x48 |0
+<U65AC> \xB1\xD9 |0
+<U65AE> \xD9\x7C |0
+<U65AF> \xB4\xB5 |0
+<U65B0> \xB7\x73 |0
+<U65B2> \xE5\xC1 |0
+<U65B3> \xE5\xC2 |0
+<U65B5> \xFC\xCD |0
+<U65B6> \xEC\xF0 |0
+<U65B7> \xC2\x5F |0
+<U65B8> \xF8\xF0 |0
+<U65B9> \xA4\xE8 |0
+<U65BB> \xCC\xC3 |0
+<U65BC> \xA9\xF3 |0
+<U65BD> \xAC\x49 |0
+<U65BE> \x9C\xF3 |0
+<U65BF> \xCE\xEA |0
+<U65C1> \xAE\xC7 |0
+<U65C2> \xD1\xD2 |0
+<U65C3> \xD1\xD0 |0
+<U65C4> \xD1\xD1 |0
+<U65C5> \xAE\xC8 |0
+<U65C6> \xD1\xCF |0
+<U65CB> \xB1\xDB |0
+<U65CC> \xB1\xDC |0
+<U65CD> \xD5\xA8 |0
+<U65CE> \xB1\xDD |0
+<U65CF> \xB1\xDA |0
+<U65D0> \xD9\x7D |0
+<U65D1> \xFC\xD0 |0
+<U65D2> \xD9\x7E |0
+<U65D3> \xDD\xBE |0
+<U65D4> \x95\xBB |0
+<U65D6> \xBA\x59 |0
+<U65D7> \xBA\x58 |0
+<U65DA> \xEC\xF1 |0
+<U65DB> \xEF\xD9 |0
+<U65DD> \xF2\x4A |0
+<U65DE> \xF2\x49 |0
+<U65DF> \xF4\x4F |0
+<U65E0> \xFC\xD3 |0
+<U65E1> \xC9\x5E |0
+<U65E2> \xAC\x4A |0
+<U65E3> \xFC\xD4 |0
+<U65E5> \xA4\xE9 |0
+<U65E6> \xA5\xB9 |0
+<U65E8> \xA6\xAE |0
+<U65E9> \xA6\xAD |0
+<U65EC> \xA6\xAF |0
+<U65ED> \xA6\xB0 |0
+<U65EE> \xC9\xEE |0
+<U65EF> \xC9\xED |0
+<U65F0> \xCA\xF8 |0
+<U65F1> \xA7\xF2 |0
+<U65F2> \xCA\xFB |0
+<U65F3> \xCA\xFA |0
+<U65F4> \xCA\xF9 |0
+<U65F5> \xCA\xFC |0
+<U65FA> \xA9\xF4 |0
+<U65FB> \xCC\xC9 |0
+<U65FC> \xCC\xC5 |0
+<U65FD> \xCC\xCE |0
+<U65FF> \x8D\xAE |0
+<U6600> \xA9\xFB |0
+<U6602> \xA9\xF9 |0
+<U6603> \xCC\xCA |0
+<U6604> \xCC\xC6 |0
+<U6605> \xCC\xCD |0
+<U6606> \xA9\xF8 |0
+<U6607> \xAA\x40 |0
+<U6608> \xCC\xC8 |0
+<U6609> \xCC\xC4 |0
+<U660A> \xA9\xFE |0
+<U660B> \xCC\xCB |0
+<U660C> \xA9\xF7 |0
+<U660D> \xCC\xCC |0
+<U660E> \xA9\xFA |0
+<U660F> \xA9\xFC |0
+<U6610> \xCC\xD0 |0
+<U6611> \xCC\xCF |0
+<U6612> \xCC\xC7 |0
+<U6613> \xA9\xF6 |0
+<U6614> \xA9\xF5 |0
+<U6615> \xA9\xFD |0
+<U6618> \xFC\xD7 |0
+<U661C> \xCE\xEF |0
+<U661D> \xCE\xF5 |0
+<U661E> \x93\xDB |0
+<U661F> \xAC\x50 |0
+<U6620> \xAC\x4D |0
+<U6621> \xCE\xEC |0
+<U6622> \xCE\xF1 |0
+<U6623> \xFE\x63 |0
+<U6624> \xAC\x53 |0
+<U6625> \xAC\x4B |0
+<U6626> \xCE\xF0 |0
+<U6627> \xAC\x4E |0
+<U6628> \xAC\x51 |0
+<U662B> \xCE\xF3 |0
+<U662D> \xAC\x4C |0
+<U662E> \xCE\xF8 |0
+<U662F> \xAC\x4F |0
+<U6630> \x93\xD5 |0
+<U6631> \xAC\x52 |0
+<U6632> \xCE\xED |0
+<U6633> \xCE\xF2 |0
+<U6634> \xCE\xF6 |0
+<U6635> \xCE\xEE |0
+<U6636> \xCE\xEB |0
+<U6639> \xCE\xF7 |0
+<U663A> \xCE\xF4 |0
+<U6641> \xAE\xD0 |0
+<U6642> \xAE\xC9 |0
+<U6643> \xAE\xCC |0
+<U6644> \xFC\xDA |0
+<U6645> \xAE\xCF |0
+<U6647> \xD1\xD5 |0
+<U6648> \x9B\x71 |0
+<U6649> \xAE\xCA |0
+<U664A> \xD1\xD3 |0
+<U664B> \xFC\xDD |0
+<U664C> \xAE\xCE |0
+<U664F> \xAE\xCB |0
+<U6651> \xD1\xD6 |0
+<U6652> \xAE\xCD |0
+<U6653> \x8D\xAF |0
+<U6657> \xFA\xF2 |0
+<U6659> \xD5\xAC |0
+<U665A> \xB1\xDF |0
+<U665B> \xD5\xAB |0
+<U665C> \xD5\xAD |0
+<U665D> \xB1\xDE |0
+<U665E> \xB1\xE3 |0
+<U665F> \xD1\xD4 |0
+<U6661> \xD5\xAA |0
+<U6662> \xD5\xAE |0
+<U6663> \x93\xD8 |0
+<U6664> \xB1\xE0 |0
+<U6665> \xD5\xA9 |0
+<U6666> \xB1\xE2 |0
+<U6667> \xFC\xDF |0
+<U6668> \xB1\xE1 |0
+<U666A> \xD9\xA7 |0
+<U666B> \x93\xD3 |0
+<U666C> \xD9\xA2 |0
+<U666E> \xB4\xB6 |0
+<U666F> \xB4\xBA |0
+<U6670> \xB4\xB7 |0
+<U6671> \xD9\xA5 |0
+<U6672> \xD9\xA8 |0
+<U6673> \xFC\xE1 |0
+<U6674> \xB4\xB8 |0
+<U6676> \xB4\xB9 |0
+<U6677> \xB4\xBE |0
+<U6678> \xDD\xC7 |0
+<U6679> \xD9\xA6 |0
+<U667A> \xB4\xBC |0
+<U667B> \xD9\xA3 |0
+<U667C> \xD9\xA1 |0
+<U667D> \x8E\x76 |0
+<U667E> \xB4\xBD |0
+<U6680> \xD9\xA4 |0
+<U6684> \xB7\x79 |0
+<U6685> \xFC\x62 |0
+<U6686> \xDD\xBF |0
+<U6687> \xB7\x76 |0
+<U6688> \xB7\x77 |0
+<U6689> \xB7\x75 |0
+<U668A> \xDD\xC4 |0
+<U668B> \xDD\xC3 |0
+<U668C> \xDD\xC0 |0
+<U668D> \xB7\x7B |0
+<U668E> \x93\xD1 |0
+<U6690> \xDD\xC2 |0
+<U6691> \xB4\xBB |0
+<U6692> \x8D\xB1 |0
+<U6694> \xDD\xC6 |0
+<U6695> \xDD\xC1 |0
+<U6696> \xB7\x78 |0
+<U6697> \xB7\x74 |0
+<U6698> \xB7\x7A |0
+<U6699> \xDD\xC5 |0
+<U669A> \x98\x59 |0
+<U669D> \xBA\x5C |0
+<U669F> \xE1\xF8 |0
+<U66A0> \xE1\xF7 |0
+<U66A1> \xE1\xF6 |0
+<U66A2> \xBA\x5A |0
+<U66A4> \xFB\x52 |0
+<U66A8> \xBA\x5B |0
+<U66A9> \xE5\xC5 |0
+<U66AA> \xE5\xC8 |0
+<U66AB> \xBC\xC8 |0
+<U66AD> \xFB\x53 |0
+<U66AE> \xBC\xC7 |0
+<U66AF> \xE5\xC9 |0
+<U66B0> \xE5\xC4 |0
+<U66B1> \xBC\xCA |0
+<U66B2> \xE5\xC6 |0
+<U66B3> \xFB\x4D |0
+<U66B4> \xBC\xC9 |0
+<U66B5> \xE5\xC3 |0
+<U66B6> \x9C\xBF |0
+<U66B7> \xE5\xC7 |0
+<U66B8> \xBE\xE9 |0
+<U66B9> \xBE\xE6 |0
+<U66BA> \xE9\xBB |0
+<U66BB> \xE9\xBA |0
+<U66BD> \xE9\xB9 |0
+<U66BE> \xE9\xB4 |0
+<U66BF> \x9B\x72 |0
+<U66C0> \xE9\xB5 |0
+<U66C4> \xBE\xE7 |0
+<U66C6> \xBE\xE4 |0
+<U66C7> \xBE\xE8 |0
+<U66C8> \xE9\xB3 |0
+<U66C9> \xBE\xE5 |0
+<U66CA> \xE9\xB6 |0
+<U66CB> \xE9\xB7 |0
+<U66CC> \xE9\xBC |0
+<U66CD> \xFB\x50 |0
+<U66CE> \x93\xBE |0
+<U66CF> \xE9\xB8 |0
+<U66D2> \xEC\xF2 |0
+<U66D6> \xC0\xC7 |0
+<U66D8> \xEF\xDC |0
+<U66D9> \xC0\xC6 |0
+<U66DA> \xEF\xDA |0
+<U66DB> \xEF\xDB |0
+<U66DC> \xC2\x60 |0
+<U66DD> \xC3\x6E |0
+<U66DE> \xF2\x4B |0
+<U66E0> \xC3\x6D |0
+<U66E3> \xF4\x51 |0
+<U66E4> \xF4\x52 |0
+<U66E6> \xC4\x66 |0
+<U66E8> \xF4\x50 |0
+<U66E9> \xC4\xE4 |0
+<U66EB> \xF7\xDF |0
+<U66EC> \xC5\xCE |0
+<U66ED> \xF8\xAA |0
+<U66EE> \xF8\xAB |0
+<U66F0> \xA4\xEA |0
+<U66F1> \x9D\xF1 |0
+<U66F2> \xA6\xB1 |0
+<U66F3> \xA6\xB2 |0
+<U66F4> \xA7\xF3 |0
+<U66F6> \xCC\xD1 |0
+<U66F7> \xAC\x54 |0
+<U66F8> \xAE\xD1 |0
+<U66F9> \xB1\xE4 |0
+<U66FC> \xB0\xD2 |0
+<U66FE> \xB4\xBF |0
+<U66FF> \xB4\xC0 |0
+<U6700> \xB3\xCC |0
+<U6701> \xD9\xA9 |0
+<U6702> \xFC\xEB |0
+<U6703> \xB7\x7C |0
+<U6704> \xE1\xFA |0
+<U6705> \xE1\xF9 |0
+<U6708> \xA4\xEB |0
+<U6709> \xA6\xB3 |0
+<U670A> \xCC\xD2 |0
+<U670B> \xAA\x42 |0
+<U670C> \xA0\xBB |0
+<U670D> \xAA\x41 |0
+<U670E> \x9B\x7E |0
+<U670F> \xCE\xF9 |0
+<U6710> \xCE\xFA |0
+<U6712> \xD1\xD7 |0
+<U6713> \xD1\xD8 |0
+<U6714> \xAE\xD2 |0
+<U6715> \xAE\xD3 |0
+<U6716> \x8D\xB3 |0
+<U6717> \xAE\xD4 |0
+<U6718> \xD5\xAF |0
+<U671B> \xB1\xE6 |0
+<U671D> \xB4\xC2 |0
+<U671E> \x9A\xE8 |0
+<U671F> \xB4\xC1 |0
+<U6720> \xDD\xC8 |0
+<U6721> \xDF\x7A |0
+<U6722> \xE1\xFB |0
+<U6723> \xE9\xBD |0
+<U6725> \x8E\xDC |0
+<U6726> \xC2\x61 |0
+<U6727> \xC4\x67 |0
+<U6728> \xA4\xEC |0
+<U672A> \xA5\xBC |0
+<U672B> \xA5\xBD |0
+<U672C> \xA5\xBB |0
+<U672D> \xA5\xBE |0
+<U672E> \xA5\xBA |0
+<U6731> \xA6\xB6 |0
+<U6733> \xC9\xF6 |0
+<U6734> \xA6\xB5 |0
+<U6735> \xA6\xB7 |0
+<U6736> \x9C\xF9 |0
+<U6738> \xC9\xF1 |0
+<U6739> \xC9\xF0 |0
+<U673A> \xC9\xF3 |0
+<U673B> \xC9\xF2 |0
+<U673C> \xC9\xF5 |0
+<U673D> \xA6\xB4 |0
+<U673E> \xC9\xEF |0
+<U673F> \xC9\xF4 |0
+<U6744> \xFA\x50 |0
+<U6745> \xCA\xFD |0
+<U6746> \xA7\xFD |0
+<U6747> \xCA\xFE |0
+<U6748> \xCB\x43 |0
+<U6749> \xA7\xFC |0
+<U674B> \xCB\x47 |0
+<U674C> \xCB\x42 |0
+<U674D> \xCB\x45 |0
+<U674E> \xA7\xF5 |0
+<U674F> \xA7\xF6 |0
+<U6750> \xA7\xF7 |0
+<U6751> \xA7\xF8 |0
+<U6753> \xA8\x40 |0
+<U6755> \xCB\x41 |0
+<U6756> \xA7\xFA |0
+<U6757> \xA8\x41 |0
+<U6759> \xCB\x40 |0
+<U675A> \xCB\x46 |0
+<U675C> \xA7\xF9 |0
+<U675D> \xCB\x44 |0
+<U675E> \xA7\xFB |0
+<U675F> \xA7\xF4 |0
+<U6760> \xA7\xFE |0
+<U6761> \x98\xE7 |0
+<U6762> \xFC\xF3 |0
+<U6767> \xFC\xF2 |0
+<U676A> \xAA\x57 |0
+<U676C> \xCC\xD4 |0
+<U676D> \xAA\x43 |0
+<U676F> \xAA\x4D |0
+<U6770> \xAA\x4E |0
+<U6771> \xAA\x46 |0
+<U6772> \xAA\x58 |0
+<U6773> \xAA\x48 |0
+<U6774> \xCC\xDC |0
+<U6775> \xAA\x53 |0
+<U6776> \xCC\xD7 |0
+<U6777> \xAA\x49 |0
+<U6778> \xCC\xE6 |0
+<U6779> \xCC\xE7 |0
+<U677A> \xCC\xDF |0
+<U677B> \xCC\xD8 |0
+<U677C> \xAA\x56 |0
+<U677D> \xCC\xE4 |0
+<U677E> \xAA\x51 |0
+<U677F> \xAA\x4F |0
+<U6781> \xCC\xE5 |0
+<U6783> \xCC\xE3 |0
+<U6784> \xCC\xDB |0
+<U6785> \xCC\xD3 |0
+<U6786> \xCC\xDA |0
+<U6787> \xAA\x4A |0
+<U6789> \xAA\x50 |0
+<U678B> \xAA\x44 |0
+<U678C> \xCC\xDE |0
+<U678D> \xCC\xDD |0
+<U678E> \xCC\xD5 |0
+<U678F> \x93\xE5 |0
+<U6790> \xAA\x52 |0
+<U6791> \xCC\xE1 |0
+<U6792> \xCC\xD6 |0
+<U6793> \xAA\x55 |0
+<U6794> \xCC\xE8 |0
+<U6795> \xAA\x45 |0
+<U6797> \xAA\x4C |0
+<U6798> \xCC\xD9 |0
+<U6799> \xCC\xE2 |0
+<U679A> \xAA\x54 |0
+<U679C> \xAA\x47 |0
+<U679D> \xAA\x4B |0
+<U679F> \xCC\xE0 |0
+<U67A0> \x9A\x59 |0
+<U67A4> \x8D\xB5 |0
+<U67AC> \xFD\x4D |0
+<U67AE> \xCF\x5B |0
+<U67AF> \xAC\x5C |0
+<U67B0> \xAC\x69 |0
+<U67B1> \xFD\x5E |0
+<U67B2> \xCF\x56 |0
+<U67B3> \xCF\x4C |0
+<U67B4> \xAC\x62 |0
+<U67B5> \xCF\x4A |0
+<U67B6> \xAC\x5B |0
+<U67B7> \xCF\x45 |0
+<U67B8> \xAC\x65 |0
+<U67B9> \xCF\x52 |0
+<U67BA> \xCE\xFE |0
+<U67BB> \xCF\x41 |0
+<U67BF> \x8F\x7D |0
+<U67C0> \xCF\x44 |0
+<U67C1> \xCE\xFB |0
+<U67C2> \xCF\x51 |0
+<U67C3> \xCF\x61 |0
+<U67C4> \xAC\x60 |0
+<U67C5> \xCF\x46 |0
+<U67C6> \xCF\x58 |0
+<U67C8> \xCE\xFD |0
+<U67C9> \xCF\x5F |0
+<U67CA> \xCF\x60 |0
+<U67CB> \xCF\x63 |0
+<U67CC> \xCF\x5A |0
+<U67CD> \xCF\x4B |0
+<U67CE> \xCF\x53 |0
+<U67CF> \xAC\x66 |0
+<U67D0> \xAC\x59 |0
+<U67D1> \xAC\x61 |0
+<U67D2> \xAC\x6D |0
+<U67D3> \xAC\x56 |0
+<U67D4> \xAC\x58 |0
+<U67D6> \x95\x47 |0
+<U67D7> \xFC\xF6 |0
+<U67D8> \xCF\x43 |0
+<U67D9> \xAC\x6A |0
+<U67DA> \xAC\x63 |0
+<U67DB> \xCF\x5D |0
+<U67DC> \xCF\x40 |0
+<U67DD> \xAC\x6C |0
+<U67DE> \xAC\x67 |0
+<U67DF> \xCF\x49 |0
+<U67E2> \xAC\x6B |0
+<U67E3> \xCF\x50 |0
+<U67E4> \xCF\x48 |0
+<U67E5> \xAC\x64 |0
+<U67E6> \xCF\x5C |0
+<U67E7> \xCF\x54 |0
+<U67E9> \xAC\x5E |0
+<U67EA> \xCF\x62 |0
+<U67EB> \xCF\x47 |0
+<U67EC> \xAC\x5A |0
+<U67ED> \xCF\x59 |0
+<U67EE> \xCF\x4F |0
+<U67EF> \xAC\x5F |0
+<U67F0> \xCF\x55 |0
+<U67F1> \xAC\x57 |0
+<U67F2> \xCE\xFC |0
+<U67F3> \xAC\x68 |0
+<U67F4> \xAE\xE3 |0
+<U67F5> \xAC\x5D |0
+<U67F6> \xCF\x4E |0
+<U67F7> \xCF\x4D |0
+<U67F8> \xCF\x42 |0
+<U67F9> \x92\x50 |0
+<U67FA> \xCF\x5E |0
+<U67FC> \xCF\x57 |0
+<U67FE> \x89\x68 |0
+<U67FF> \xAC\x55 |0
+<U6800> \x8D\xB6 |0
+<U6801> \xFC\xFB |0
+<U6802> \xA0\x7D |0
+<U6803> \x98\xFC |0
+<U6804> \x89\x69 |0
+<U680D> \xFE\x4F |0
+<U6810> \x92\x56 |0
+<U6812> \xD1\xEC |0
+<U6813> \xAE\xEA |0
+<U6814> \xD1\xED |0
+<U6816> \xD1\xE1 |0
+<U6817> \xAE\xDF |0
+<U6818> \xAE\xEB |0
+<U681A> \xD1\xDA |0
+<U681B> \xFA\xC9 |0
+<U681C> \xD1\xE3 |0
+<U681D> \xD1\xEB |0
+<U681E> \x93\xE8 |0
+<U681F> \xD1\xD9 |0
+<U6820> \xD1\xF4 |0
+<U6821> \xAE\xD5 |0
+<U6822> \xFC\xF8 |0
+<U6825> \xD1\xF3 |0
+<U6826> \xD1\xEE |0
+<U6828> \xD1\xEF |0
+<U6829> \xAE\xDD |0
+<U682A> \xAE\xE8 |0
+<U682B> \xD1\xE5 |0
+<U682D> \xD1\xE6 |0
+<U682E> \xD1\xF0 |0
+<U682F> \xD1\xE7 |0
+<U6831> \xD1\xE2 |0
+<U6832> \xD1\xDC |0
+<U6833> \xD1\xDD |0
+<U6834> \xD1\xEA |0
+<U6835> \xD1\xE4 |0
+<U6836> \x9C\xE3 |0
+<U6837> \xFD\xA9 |0
+<U6838> \xAE\xD6 |0
+<U6839> \xAE\xDA |0
+<U683A> \xD1\xF2 |0
+<U683B> \xD1\xDE |0
+<U683C> \xAE\xE6 |0
+<U683D> \xAE\xE2 |0
+<U683E> \xFC\x44 |0
+<U6840> \xAE\xE5 |0
+<U6841> \xAE\xEC |0
+<U6842> \xAE\xDB |0
+<U6843> \xAE\xE7 |0
+<U6844> \xD1\xE9 |0
+<U6845> \xAE\xE9 |0
+<U6846> \xAE\xD8 |0
+<U6847> \x96\x40 |0
+<U6848> \xAE\xD7 |0
+<U6849> \xD1\xDB |0
+<U684A> \x8D\xB8 |0
+<U684B> \xD1\xDF |0
+<U684C> \xAE\xE0 |0
+<U684D> \xD1\xF1 |0
+<U684E> \xD1\xE8 |0
+<U684F> \xD1\xE0 |0
+<U6850> \xAE\xE4 |0
+<U6851> \xAE\xE1 |0
+<U6853> \xAE\xD9 |0
+<U6854> \xAE\xDC |0
+<U6855> \x9B\x4A |0
+<U6856> \x8F\xB9 |0
+<U685D> \xFC\xFE |0
+<U6865> \x89\x6A |0
+<U686B> \xD5\xC4 |0
+<U686D> \xD5\xB4 |0
+<U686E> \xD5\xB5 |0
+<U686F> \xD5\xB9 |0
+<U6871> \xD5\xC8 |0
+<U6872> \xD5\xC5 |0
+<U6874> \xD5\xBE |0
+<U6875> \xD5\xBD |0
+<U6876> \xB1\xED |0
+<U6877> \xD5\xC1 |0
+<U6878> \xD5\xD0 |0
+<U6879> \xD5\xB0 |0
+<U687B> \xD5\xD1 |0
+<U687C> \xD5\xC3 |0
+<U687D> \xD5\xD5 |0
+<U687E> \xD5\xC9 |0
+<U687F> \xB1\xEC |0
+<U6880> \xD5\xC7 |0
+<U6881> \xB1\xE7 |0
+<U6882> \xB1\xFC |0
+<U6883> \xB1\xF2 |0
+<U6884> \x8D\xB9 |0
+<U6885> \xB1\xF6 |0
+<U6886> \xB1\xF5 |0
+<U6887> \xD5\xB1 |0
+<U6888> \x91\x7E |0
+<U6889> \xD5\xCE |0
+<U688A> \xD5\xD4 |0
+<U688B> \xD5\xCC |0
+<U688C> \xD5\xD3 |0
+<U688F> \xD5\xC0 |0
+<U6890> \xD5\xB2 |0
+<U6891> \xD5\xD2 |0
+<U6892> \xD5\xC2 |0
+<U6893> \xB1\xEA |0
+<U6894> \xB1\xF7 |0
+<U6896> \xD5\xCB |0
+<U6897> \xB1\xF0 |0
+<U6898> \x93\xF4 |0
+<U689B> \xD5\xCA |0
+<U689C> \xD5\xB3 |0
+<U689D> \xB1\xF8 |0
+<U689F> \xB1\xFA |0
+<U68A0> \xD5\xCD |0
+<U68A1> \xB1\xFB |0
+<U68A2> \xB1\xE9 |0
+<U68A3> \xD5\xBA |0
+<U68A4> \xD5\xCF |0
+<U68A6> \xFB\x7C |0
+<U68A7> \xB1\xEF |0
+<U68A8> \xB1\xF9 |0
+<U68A9> \xD5\xBC |0
+<U68AA> \xD5\xC6 |0
+<U68AB> \xD5\xB7 |0
+<U68AC> \xD5\xBB |0
+<U68AD> \xB1\xF4 |0
+<U68AE> \xD5\xB6 |0
+<U68AF> \xB1\xE8 |0
+<U68B0> \xB1\xF1 |0
+<U68B1> \xB1\xEE |0
+<U68B2> \xD5\xBF |0
+<U68B3> \xAE\xDE |0
+<U68B4> \xD9\xC0 |0
+<U68B5> \xB1\xEB |0
+<U68B6> \x93\xE7 |0
+<U68B9> \x97\xEF |0
+<U68BD> \xFE\x4A |0
+<U68C3> \xFD\x45 |0
+<U68C4> \xB1\xF3 |0
+<U68C5> \x96\xA5 |0
+<U68C6> \xD9\xC3 |0
+<U68C7> \xD9\xD9 |0
+<U68C8> \xD9\xCE |0
+<U68C9> \xB4\xD6 |0
+<U68CA> \xFE\xE0 |0
+<U68CB> \xB4\xD1 |0
+<U68CC> \xD9\xBD |0
+<U68CD> \xB4\xD2 |0
+<U68CE> \xD9\xCD |0
+<U68D0> \xD9\xC6 |0
+<U68D1> \xD9\xD3 |0
+<U68D2> \xB4\xCE |0
+<U68D3> \xD9\xAB |0
+<U68D4> \xD9\xD5 |0
+<U68D5> \xB4\xC4 |0
+<U68D6> \xD9\xB3 |0
+<U68D7> \xB4\xC7 |0
+<U68D8> \xB4\xC6 |0
+<U68DA> \xB4\xD7 |0
+<U68DC> \xD9\xAD |0
+<U68DD> \xD9\xCF |0
+<U68DE> \xD9\xD0 |0
+<U68DF> \xB4\xC9 |0
+<U68E0> \xB4\xC5 |0
+<U68E1> \xD9\xBB |0
+<U68E3> \xB4\xD0 |0
+<U68E4> \xD9\xB6 |0
+<U68E6> \xD9\xD1 |0
+<U68E7> \xB4\xCC |0
+<U68E8> \xD9\xC9 |0
+<U68E9> \xD9\xD6 |0
+<U68EA> \xD9\xB0 |0
+<U68EB> \xD9\xB5 |0
+<U68EC> \xD9\xAF |0
+<U68EE> \xB4\xCB |0
+<U68EF> \xD9\xC2 |0
+<U68F0> \xDD\xDE |0
+<U68F1> \xD9\xB1 |0
+<U68F2> \xB4\xCF |0
+<U68F3> \xD9\xBA |0
+<U68F4> \xD9\xD2 |0
+<U68F5> \xB4\xCA |0
+<U68F6> \xD9\xB7 |0
+<U68F7> \xD9\xB4 |0
+<U68F8> \xD9\xC5 |0
+<U68F9> \xB4\xCD |0
+<U68FA> \xB4\xC3 |0
+<U68FB> \xB4\xD9 |0
+<U68FC> \xD9\xC8 |0
+<U68FD> \xD9\xC7 |0
+<U6900> \xFD\x48 |0
+<U6901> \xFD\x47 |0
+<U6902> \xFE\xF2 |0
+<U6903> \xFE\x6A |0
+<U6904> \xD9\xAC |0
+<U6905> \xB4\xC8 |0
+<U6906> \xD9\xD4 |0
+<U6907> \xD9\xBC |0
+<U6908> \xD9\xBE |0
+<U6909> \x8D\xBD |0
+<U690A> \xD9\xCB |0
+<U690B> \xD9\xCA |0
+<U690C> \xD9\xAA |0
+<U690D> \xB4\xD3 |0
+<U690E> \xB4\xD5 |0
+<U690F> \xD9\xB2 |0
+<U6910> \xD9\xB9 |0
+<U6911> \xD9\xC1 |0
+<U6912> \xB4\xD4 |0
+<U6913> \xD9\xB8 |0
+<U6914> \xD9\xC4 |0
+<U6915> \xD9\xD7 |0
+<U6917> \xD9\xCC |0
+<U6918> \x9B\xA1 |0
+<U691A> \x9A\xB7 |0
+<U691B> \x8E\xFC |0
+<U6925> \xD9\xD8 |0
+<U692A> \xD9\xAE |0
+<U692C> \x9F\xA1 |0
+<U692F> \xDD\xF2 |0
+<U6930> \xB7\xA6 |0
+<U6932> \xDD\xF0 |0
+<U6933> \xDD\xDB |0
+<U6934> \xDD\xE0 |0
+<U6935> \xDD\xD9 |0
+<U6936> \xFD\x51 |0
+<U6937> \xDD\xEC |0
+<U6938> \xDD\xCB |0
+<U6939> \xDD\xD2 |0
+<U693B> \xDD\xEA |0
+<U693C> \xDD\xF4 |0
+<U693D> \xDD\xDC |0
+<U693E> \xFA\xAD |0
+<U693F> \xDD\xCF |0
+<U6940> \xDD\xE2 |0
+<U6941> \xDD\xE7 |0
+<U6942> \xDD\xD3 |0
+<U6943> \x8D\xBE |0
+<U6944> \xDD\xE4 |0
+<U6945> \xDD\xD0 |0
+<U6946> \x89\xA4 |0
+<U6948> \xDD\xD7 |0
+<U6949> \xDD\xD8 |0
+<U694A> \xB7\xA8 |0
+<U694B> \xDD\xEB |0
+<U694C> \xDD\xE9 |0
+<U694E> \xDD\xCC |0
+<U694F> \xDD\xEE |0
+<U6951> \xDD\xEF |0
+<U6952> \xDD\xF1 |0
+<U6953> \xB7\xAC |0
+<U6954> \xB7\xA4 |0
+<U6955> \x9A\xD9 |0
+<U6956> \xD5\xB8 |0
+<U6957> \xDD\xD4 |0
+<U6958> \xDD\xE6 |0
+<U6959> \xDD\xD5 |0
+<U695A> \xB7\xA1 |0
+<U695B> \xB7\xB1 |0
+<U695C> \xDD\xED |0
+<U695D> \xB7\xAF |0
+<U695E> \xB7\xAB |0
+<U695F> \xDD\xCA |0
+<U6960> \xB7\xA3 |0
+<U6961> \xFD\x4E |0
+<U6962> \xDD\xCD |0
+<U6963> \xB7\xB0 |0
+<U6964> \x8D\xC0 |0
+<U6965> \xDD\xDD |0
+<U6966> \xDD\xC9 |0
+<U6967> \x97\xF0 |0
+<U6968> \xB7\xA9 |0
+<U6969> \xDD\xE1 |0
+<U696A> \xDD\xD1 |0
+<U696B> \xB7\xAA |0
+<U696C> \xDD\xDA |0
+<U696D> \xB7\x7E |0
+<U696E> \xB4\xD8 |0
+<U696F> \xDD\xE3 |0
+<U6970> \xD9\xBF |0
+<U6971> \xDD\xCE |0
+<U6972> \x93\xB4 |0
+<U6973> \xFD\x44 |0
+<U6974> \xDD\xE8 |0
+<U6975> \xB7\xA5 |0
+<U6976> \xDD\xE5 |0
+<U6977> \xB7\xA2 |0
+<U6978> \xDD\xDF |0
+<U6979> \xB7\xAD |0
+<U697A> \xDD\xD6 |0
+<U697B> \xDD\xF3 |0
+<U6980> \x9F\xA7 |0
+<U6982> \xB7\xA7 |0
+<U6983> \xDE\xC6 |0
+<U6985> \x8D\xC2 |0
+<U6986> \xB7\xAE |0
+<U698A> \x99\xB6 |0
+<U698D> \xE2\x4A |0
+<U698E> \xE2\x48 |0
+<U6990> \xE2\x5E |0
+<U6991> \xE2\x46 |0
+<U6993> \xE2\x58 |0
+<U6994> \xB7\x7D |0
+<U6995> \xBA\x5F |0
+<U6996> \xE2\x42 |0
+<U6997> \xE2\x5D |0
+<U6998> \xFD\x52 |0
+<U6999> \xE2\x47 |0
+<U699A> \xE2\x55 |0
+<U699B> \xBA\x64 |0
+<U699C> \xBA\x5D |0
+<U699E> \xE2\x5B |0
+<U699F> \x8D\xC1 |0
+<U69A0> \xE2\x40 |0
+<U69A1> \xE2\x5A |0
+<U69A2> \x8E\x46 |0
+<U69A3> \xBA\x6F |0
+<U69A4> \xE2\x51 |0
+<U69A5> \xE2\x61 |0
+<U69A6> \xBA\x6D |0
+<U69A7> \xE2\x49 |0
+<U69A8> \xBA\x5E |0
+<U69A9> \xE2\x4B |0
+<U69AA> \xE2\x59 |0
+<U69AB> \xBA\x67 |0
+<U69AC> \xE2\x44 |0
+<U69AD> \xBA\x6B |0
+<U69AE> \xBA\x61 |0
+<U69AF> \xE2\x4D |0
+<U69B0> \xE2\x43 |0
+<U69B1> \xE1\xFC |0
+<U69B2> \xA0\xD1 |0
+<U69B3> \xE2\x57 |0
+<U69B4> \xBA\x68 |0
+<U69B5> \xE2\x60 |0
+<U69B6> \xE1\xFD |0
+<U69B7> \xBA\x65 |0
+<U69B9> \xE2\x53 |0
+<U69BB> \xBA\x66 |0
+<U69BC> \xE2\x45 |0
+<U69BD> \xE2\x50 |0
+<U69BE> \xE2\x4C |0
+<U69BF> \xE2\x4E |0
+<U69C0> \x9F\xCA |0
+<U69C1> \xBA\x60 |0
+<U69C2> \xE2\x5F |0
+<U69C3> \xBA\x6E |0
+<U69C4> \xE2\x4F |0
+<U69C6> \xE2\x62 |0
+<U69C9> \xE1\xFE |0
+<U69CA> \xE2\x54 |0
+<U69CB> \xBA\x63 |0
+<U69CC> \xBA\x6C |0
+<U69CD> \xBA\x6A |0
+<U69CE> \xE2\x41 |0
+<U69CF> \xE2\x56 |0
+<U69D0> \xBA\x69 |0
+<U69D1> \x92\xCF |0
+<U69D3> \xBA\x62 |0
+<U69D4> \xE2\x52 |0
+<U69D5> \x9C\xF4 |0
+<U69D6> \x8D\xC4 |0
+<U69D9> \xE2\x5C |0
+<U69E1> \xFD\x41 |0
+<U69E2> \xE5\xD5 |0
+<U69E4> \xE5\xD1 |0
+<U69E5> \xE5\xCD |0
+<U69E6> \xE5\xE1 |0
+<U69E7> \xE5\xDE |0
+<U69E8> \xBC\xCD |0
+<U69E9> \x9B\x4C |0
+<U69EB> \xE5\xE5 |0
+<U69EC> \xE5\xD4 |0
+<U69ED> \xBC\xD8 |0
+<U69EE> \xE5\xDB |0
+<U69F1> \xE5\xD0 |0
+<U69F2> \xE5\xDA |0
+<U69F3> \xBC\xD5 |0
+<U69F4> \xE5\xEE |0
+<U69F6> \xE5\xEB |0
+<U69F7> \xE5\xDD |0
+<U69F8> \xE5\xCE |0
+<U69F9> \xFD\x57 |0
+<U69FA> \xFC\xEF |0
+<U69FB> \xE5\xE2 |0
+<U69FC> \xE5\xE4 |0
+<U69FD> \xBC\xD1 |0
+<U69FE> \xE5\xD8 |0
+<U69FF> \xE5\xD3 |0
+<U6A00> \xE5\xCA |0
+<U6A01> \xBC\xCE |0
+<U6A02> \xBC\xD6 |0
+<U6A03> \x9C\xDE |0
+<U6A04> \xE5\xE7 |0
+<U6A05> \xBC\xD7 |0
+<U6A06> \xE5\xCB |0
+<U6A07> \xE5\xED |0
+<U6A08> \xE5\xE0 |0
+<U6A09> \xE5\xE6 |0
+<U6A0A> \xBC\xD4 |0
+<U6A0B> \xFD\x42 |0
+<U6A0C> \x98\x6C |0
+<U6A0D> \xE5\xE3 |0
+<U6A0F> \xE5\xEA |0
+<U6A11> \xBC\xD9 |0
+<U6A13> \xBC\xD3 |0
+<U6A14> \xE5\xDC |0
+<U6A15> \xE5\xCF |0
+<U6A16> \xE5\xEF |0
+<U6A17> \xE5\xCC |0
+<U6A18> \xE5\xE8 |0
+<U6A19> \xBC\xD0 |0
+<U6A1A> \x97\xF9 |0
+<U6A1B> \xE5\xD6 |0
+<U6A1C> \x95\x58 |0
+<U6A1D> \xE5\xD7 |0
+<U6A1E> \xBC\xCF |0
+<U6A1F> \xBC\xCC |0
+<U6A20> \xE5\xD2 |0
+<U6A21> \xBC\xD2 |0
+<U6A23> \xBC\xCB |0
+<U6A25> \xE5\xE9 |0
+<U6A26> \xE5\xEC |0
+<U6A27> \xE5\xD9 |0
+<U6A28> \xE9\xCA |0
+<U6A2B> \x98\x5E |0
+<U6A2C> \xFE\x7B |0
+<U6A2D> \x94\xCD |0
+<U6A32> \xE9\xC2 |0
+<U6A33> \x93\xEE |0
+<U6A34> \xE9\xBE |0
+<U6A35> \xBE\xF6 |0
+<U6A38> \xBE\xEB |0
+<U6A39> \xBE\xF0 |0
+<U6A3A> \xBE\xEC |0
+<U6A3B> \xE9\xCC |0
+<U6A3C> \xE9\xD7 |0
+<U6A3D> \xBE\xEA |0
+<U6A3E> \xE9\xC4 |0
+<U6A3F> \xE9\xCD |0
+<U6A40> \xE5\xDF |0
+<U6A41> \xE9\xCE |0
+<U6A44> \xBE\xF1 |0
+<U6A45> \xFD\x5A |0
+<U6A46> \xE9\xDD |0
+<U6A47> \xBE\xF5 |0
+<U6A48> \xBE\xF8 |0
+<U6A49> \xE9\xC0 |0
+<U6A4B> \xBE\xF4 |0
+<U6A4C> \x93\xF5 |0
+<U6A4D> \xE9\xDB |0
+<U6A4E> \xE9\xDC |0
+<U6A4F> \xE9\xD2 |0
+<U6A50> \xE9\xD1 |0
+<U6A51> \xE9\xC9 |0
+<U6A52> \x93\xEF |0
+<U6A53> \x8E\xEA |0
+<U6A54> \xE9\xD3 |0
+<U6A55> \xE9\xDA |0
+<U6A56> \xE9\xD9 |0
+<U6A57> \x8F\x5B |0
+<U6A58> \xBE\xEF |0
+<U6A59> \xBE\xED |0
+<U6A5A> \xE9\xCB |0
+<U6A5B> \xE9\xC8 |0
+<U6A5D> \xE9\xC5 |0
+<U6A5E> \xE9\xD8 |0
+<U6A5F> \xBE\xF7 |0
+<U6A60> \xE9\xD6 |0
+<U6A61> \xBE\xF3 |0
+<U6A62> \xBE\xF2 |0
+<U6A64> \xE9\xD0 |0
+<U6A65> \x8D\xC6 |0
+<U6A66> \xE9\xBF |0
+<U6A67> \xE9\xC1 |0
+<U6A68> \xE9\xC3 |0
+<U6A69> \xE9\xD5 |0
+<U6A6A> \xE9\xCF |0
+<U6A6B> \xBE\xEE |0
+<U6A6D> \xE9\xC6 |0
+<U6A6F> \xE9\xD4 |0
+<U6A71> \x8D\xC8 |0
+<U6A74> \x8D\xC7 |0
+<U6A76> \xE9\xC7 |0
+<U6A7A> \x93\xF7 |0
+<U6A7E> \xC0\xCF |0
+<U6A7F> \xED\x45 |0
+<U6A80> \xC0\xC8 |0
+<U6A81> \xEC\xF5 |0
+<U6A82> \x8D\xC9 |0
+<U6A83> \xED\x41 |0
+<U6A84> \xC0\xCA |0
+<U6A85> \xED\x48 |0
+<U6A87> \xEC\xFC |0
+<U6A89> \xEC\xF7 |0
+<U6A8A> \xFB\xF2 |0
+<U6A8C> \xED\x49 |0
+<U6A8D> \xEC\xF3 |0
+<U6A8E> \xEC\xFE |0
+<U6A8F> \x96\x70 |0
+<U6A90> \xC0\xD1 |0
+<U6A91> \xED\x44 |0
+<U6A92> \xED\x4A |0
+<U6A93> \xEC\xFD |0
+<U6A94> \xC0\xC9 |0
+<U6A95> \xED\x40 |0
+<U6A96> \xEC\xF4 |0
+<U6A97> \xC0\xD0 |0
+<U6A99> \x8D\xCB |0
+<U6A9A> \xED\x47 |0
+<U6A9B> \xEC\xF9 |0
+<U6A9C> \xC0\xCC |0
+<U6A9D> \xFD\x5C |0
+<U6A9E> \xEC\xFB |0
+<U6A9F> \xEC\xF8 |0
+<U6AA0> \xC0\xD2 |0
+<U6AA1> \xEC\xFA |0
+<U6AA2> \xC0\xCB |0
+<U6AA3> \xC0\xCE |0
+<U6AA4> \xED\x43 |0
+<U6AA5> \xEC\xF6 |0
+<U6AA6> \xED\x46 |0
+<U6AA7> \x8F\x65 |0
+<U6AA8> \xED\x42 |0
+<U6AAB> \x8D\xCD |0
+<U6AAC> \xC2\x63 |0
+<U6AAD> \xEF\xE7 |0
+<U6AAE> \xC2\x68 |0
+<U6AAF> \xC2\x69 |0
+<U6AB1> \x9D\xA8 |0
+<U6AB2> \x94\xF9 |0
+<U6AB3> \xC2\x62 |0
+<U6AB4> \xEF\xE6 |0
+<U6AB5> \x8D\xCE |0
+<U6AB6> \xEF\xE3 |0
+<U6AB7> \xEF\xE4 |0
+<U6AB8> \xC2\x66 |0
+<U6AB9> \xEF\xDE |0
+<U6ABA> \xEF\xE2 |0
+<U6ABB> \xC2\x65 |0
+<U6ABD> \xEF\xDF |0
+<U6ABE> \x93\xEA |0
+<U6AC2> \xC2\x67 |0
+<U6AC3> \xC2\x64 |0
+<U6AC5> \xEF\xDD |0
+<U6AC6> \xEF\xE1 |0
+<U6AC7> \xEF\xE5 |0
+<U6AC8> \xFD\x5F |0
+<U6AC9> \x93\xF0 |0
+<U6ACA> \x9F\xB6 |0
+<U6ACB> \xF2\x51 |0
+<U6ACC> \xF2\x4E |0
+<U6ACD> \xF2\x57 |0
+<U6ACF> \xF2\x56 |0
+<U6AD0> \xF2\x54 |0
+<U6AD1> \xF2\x4F |0
+<U6AD3> \xC3\x72 |0
+<U6AD4> \x8D\xCF |0
+<U6AD8> \x97\x63 |0
+<U6AD9> \xF2\x50 |0
+<U6ADA> \xC3\x71 |0
+<U6ADB> \xC0\xCD |0
+<U6ADC> \xF2\x53 |0
+<U6ADD> \xC3\x70 |0
+<U6ADE> \xF2\x58 |0
+<U6ADF> \xF2\x52 |0
+<U6AE0> \xF2\x4D |0
+<U6AE1> \xEF\xE0 |0
+<U6AE5> \xC3\x6F |0
+<U6AE7> \xF2\x4C |0
+<U6AE8> \xF4\x56 |0
+<U6AEA> \xF4\x55 |0
+<U6AEB> \xF2\x55 |0
+<U6AEC> \xC4\x68 |0
+<U6AEE> \xF4\x59 |0
+<U6AEF> \xF4\x5A |0
+<U6AF0> \xF4\x54 |0
+<U6AF1> \xF4\x58 |0
+<U6AF3> \xF4\x53 |0
+<U6AF6> \x8D\xD0 |0
+<U6AF8> \xF5\xD1 |0
+<U6AF9> \xF4\x57 |0
+<U6AFA> \xC4\xE7 |0
+<U6AFB> \xC4\xE5 |0
+<U6AFC> \xF5\xCF |0
+<U6B00> \xF5\xD2 |0
+<U6B02> \xF5\xCE |0
+<U6B03> \xF5\xD0 |0
+<U6B04> \xC4\xE6 |0
+<U6B05> \x93\xF1 |0
+<U6B08> \xF6\xE5 |0
+<U6B09> \xF6\xE6 |0
+<U6B0A> \xC5\x76 |0
+<U6B0B> \xF6\xE4 |0
+<U6B0F> \xF7\xE2 |0
+<U6B10> \xC5\xCF |0
+<U6B11> \xF7\xE0 |0
+<U6B12> \xF7\xE1 |0
+<U6B13> \xF8\xAC |0
+<U6B16> \xC6\x56 |0
+<U6B17> \xF8\xF3 |0
+<U6B18> \xF8\xF1 |0
+<U6B19> \xF8\xF2 |0
+<U6B1A> \xF8\xF4 |0
+<U6B1D> \xFD\x62 |0
+<U6B1E> \xF9\xBB |0
+<U6B20> \xA4\xED |0
+<U6B21> \xA6\xB8 |0
+<U6B23> \xAA\x59 |0
+<U6B25> \xCC\xE9 |0
+<U6B28> \xCF\x64 |0
+<U6B2C> \xD1\xF5 |0
+<U6B2D> \xD1\xF7 |0
+<U6B2F> \xD1\xF6 |0
+<U6B31> \xD1\xF8 |0
+<U6B32> \xB1\xFD |0
+<U6B33> \xD5\xD7 |0
+<U6B34> \xD1\xF9 |0
+<U6B35> \xFD\x65 |0
+<U6B36> \xD5\xD6 |0
+<U6B37> \xD5\xD8 |0
+<U6B38> \xD5\xD9 |0
+<U6B39> \xD9\xDA |0
+<U6B3A> \xB4\xDB |0
+<U6B3B> \xD9\xDB |0
+<U6B3C> \xD9\xDD |0
+<U6B3D> \xB4\xDC |0
+<U6B3E> \xB4\xDA |0
+<U6B3F> \xD9\xDC |0
+<U6B41> \xDD\xFA |0
+<U6B42> \xDD\xF8 |0
+<U6B43> \xDD\xF7 |0
+<U6B45> \xDD\xF6 |0
+<U6B46> \xDD\xF5 |0
+<U6B47> \xB7\xB2 |0
+<U6B48> \xDD\xF9 |0
+<U6B49> \xBA\x70 |0
+<U6B4A> \xE2\x63 |0
+<U6B4B> \xE2\x65 |0
+<U6B4C> \xBA\x71 |0
+<U6B4D> \xE2\x64 |0
+<U6B4E> \xBC\xDB |0
+<U6B50> \xBC\xDA |0
+<U6B51> \xE5\xF0 |0
+<U6B52> \x9F\xDB |0
+<U6B54> \xE9\xDF |0
+<U6B55> \xE9\xDE |0
+<U6B56> \xE9\xE0 |0
+<U6B57> \x93\xF8 |0
+<U6B59> \xBE\xF9 |0
+<U6B5B> \xED\x4B |0
+<U6B5C> \xC0\xD3 |0
+<U6B5E> \xEF\xE8 |0
+<U6B5F> \xC2\x6A |0
+<U6B60> \xF2\x59 |0
+<U6B61> \xC5\x77 |0
+<U6B62> \xA4\xEE |0
+<U6B63> \xA5\xBF |0
+<U6B64> \xA6\xB9 |0
+<U6B65> \xA8\x42 |0
+<U6B66> \xAA\x5A |0
+<U6B67> \xAA\x5B |0
+<U6B6A> \xAC\x6E |0
+<U6B6D> \xD1\xFA |0
+<U6B6F> \x8B\xF7 |0
+<U6B72> \xB7\xB3 |0
+<U6B74> \xFD\x66 |0
+<U6B76> \xE6\xD1 |0
+<U6B77> \xBE\xFA |0
+<U6B78> \xC2\x6B |0
+<U6B79> \xA4\xEF |0
+<U6B7A> \x8B\xCF |0
+<U6B7B> \xA6\xBA |0
+<U6B7E> \xCC\xEB |0
+<U6B7F> \xAA\x5C |0
+<U6B80> \xCC\xEA |0
+<U6B81> \x8D\xD1 |0
+<U6B82> \xCF\x65 |0
+<U6B83> \xAC\x6F |0
+<U6B84> \xCF\x66 |0
+<U6B86> \xAC\x70 |0
+<U6B88> \xD1\xFC |0
+<U6B89> \xAE\xEE |0
+<U6B8A> \xAE\xED |0
+<U6B8C> \xD5\xDE |0
+<U6B8D> \xD5\xDC |0
+<U6B8E> \xD5\xDD |0
+<U6B8F> \xD5\xDB |0
+<U6B91> \xD5\xDA |0
+<U6B94> \xD9\xDE |0
+<U6B95> \xD9\xE1 |0
+<U6B96> \xB4\xDE |0
+<U6B97> \xD9\xDF |0
+<U6B98> \xB4\xDD |0
+<U6B99> \xD9\xE0 |0
+<U6B9B> \xDD\xFB |0
+<U6B9E> \xE2\x66 |0
+<U6B9F> \xE2\x67 |0
+<U6BA0> \xE2\x68 |0
+<U6BA2> \xE5\xF3 |0
+<U6BA3> \xE5\xF2 |0
+<U6BA4> \xBC\xDC |0
+<U6BA5> \xE5\xF1 |0
+<U6BA6> \xE5\xF4 |0
+<U6BA7> \xE9\xE1 |0
+<U6BAA> \xE9\xE2 |0
+<U6BAB> \xE9\xE3 |0
+<U6BAD> \xED\x4C |0
+<U6BAE> \xC0\xD4 |0
+<U6BAF> \xC2\x6C |0
+<U6BB0> \xF2\x5A |0
+<U6BB2> \xC4\xE8 |0
+<U6BB3> \xC9\x5F |0
+<U6BB5> \xAC\x71 |0
+<U6BB6> \xCF\x67 |0
+<U6BB7> \xAE\xEF |0
+<U6BBA> \xB1\xFE |0
+<U6BBC> \xB4\xDF |0
+<U6BBD> \xD9\xE2 |0
+<U6BBF> \xB7\xB5 |0
+<U6BC0> \xB7\xB4 |0
+<U6BC1> \x8D\xD2 |0
+<U6BC3> \xE2\x69 |0
+<U6BC4> \xE2\x6A |0
+<U6BC5> \xBC\xDD |0
+<U6BC6> \xBC\xDE |0
+<U6BC7> \xE9\xE5 |0
+<U6BC8> \xE9\xE4 |0
+<U6BC9> \xEF\xE9 |0
+<U6BCA> \xF7\xE3 |0
+<U6BCB> \xA4\xF0 |0
+<U6BCC> \xC9\x60 |0
+<U6BCD> \xA5\xC0 |0
+<U6BCF> \xA8\x43 |0
+<U6BD0> \xCB\x48 |0
+<U6BD2> \xAC\x72 |0
+<U6BD3> \xB7\xB6 |0
+<U6BD4> \xA4\xF1 |0
+<U6BD6> \xCF\x68 |0
+<U6BD7> \xAC\x73 |0
+<U6BD8> \xCF\x69 |0
+<U6BDA> \xC0\xD5 |0
+<U6BDB> \xA4\xF2 |0
+<U6BDC> \xFD\x71 |0
+<U6BDE> \xCC\xEC |0
+<U6BE0> \xCF\x6A |0
+<U6BE1> \xFD\x6F |0
+<U6BE2> \xD2\x42 |0
+<U6BE3> \xD2\x41 |0
+<U6BE4> \xD1\xFE |0
+<U6BE6> \xD1\xFD |0
+<U6BE7> \xD2\x43 |0
+<U6BE8> \xD2\x40 |0
+<U6BEA> \x8D\xD3 |0
+<U6BEB> \xB2\x40 |0
+<U6BEC> \xB2\x41 |0
+<U6BEF> \xB4\xE0 |0
+<U6BF0> \xD9\xE3 |0
+<U6BF2> \xD9\xE4 |0
+<U6BF3> \xD9\xE5 |0
+<U6BF7> \xDE\x41 |0
+<U6BF8> \xDE\x42 |0
+<U6BF9> \xDE\x40 |0
+<U6BFA> \x9F\xE7 |0
+<U6BFB> \xDD\xFD |0
+<U6BFC> \xDD\xFE |0
+<U6BFD> \xB7\xB7 |0
+<U6BFE> \xE2\x6B |0
+<U6BFF> \xE5\xF7 |0
+<U6C00> \xE5\xF6 |0
+<U6C01> \xE5\xF5 |0
+<U6C02> \xE5\xF8 |0
+<U6C03> \xE9\xE7 |0
+<U6C04> \xE9\xE6 |0
+<U6C05> \xBE\xFB |0
+<U6C06> \xE9\xE8 |0
+<U6C08> \xC0\xD6 |0
+<U6C09> \xED\x4D |0
+<U6C0B> \xEF\xEA |0
+<U6C0C> \xF2\x5B |0
+<U6C0D> \xF6\xE7 |0
+<U6C0F> \xA4\xF3 |0
+<U6C10> \xA5\xC2 |0
+<U6C11> \xA5\xC1 |0
+<U6C13> \xAA\x5D |0
+<U6C14> \xC9\x61 |0
+<U6C15> \xC9\x7E |0
+<U6C16> \xA6\xBB |0
+<U6C18> \xC9\xF7 |0
+<U6C19> \xCB\x49 |0
+<U6C1A> \xCB\x4A |0
+<U6C1B> \xAA\x5E |0
+<U6C1C> \x90\xBD |0
+<U6C1D> \xCC\xED |0
+<U6C1F> \xAC\x74 |0
+<U6C20> \xCF\x6B |0
+<U6C21> \xCF\x6C |0
+<U6C23> \xAE\xF0 |0
+<U6C24> \xAE\xF4 |0
+<U6C25> \xD2\x44 |0
+<U6C26> \xAE\xF3 |0
+<U6C27> \xAE\xF1 |0
+<U6C28> \xAE\xF2 |0
+<U6C2A> \xD5\xDF |0
+<U6C2B> \xB2\x42 |0
+<U6C2C> \xB4\xE3 |0
+<U6C2E> \xB4\xE1 |0
+<U6C2F> \xB4\xE2 |0
+<U6C30> \xD9\xE6 |0
+<U6C31> \x9F\xD0 |0
+<U6C33> \xBA\x72 |0
+<U6C34> \xA4\xF4 |0
+<U6C35> \x8B\xD0 |0
+<U6C36> \xC9\xA1 |0
+<U6C37> \xFD\x72 |0
+<U6C38> \xA5\xC3 |0
+<U6C39> \x9C\xAE |0
+<U6C3A> \x8B\xD1 |0
+<U6C3B> \xC9\xA4 |0
+<U6C3D> \x8A\xDB |0
+<U6C3E> \xA5\xC6 |0
+<U6C3F> \xC9\xA3 |0
+<U6C40> \xA5\xC5 |0
+<U6C41> \xA5\xC4 |0
+<U6C42> \xA8\x44 |0
+<U6C43> \xC9\xA2 |0
+<U6C46> \xC9\xF8 |0
+<U6C49> \xFA\xE4 |0
+<U6C4A> \xC9\xFC |0
+<U6C4B> \xC9\xFE |0
+<U6C4C> \xCA\x40 |0
+<U6C4D> \xA6\xC5 |0
+<U6C4E> \xA6\xC6 |0
+<U6C4F> \xC9\xFB |0
+<U6C50> \xA6\xC1 |0
+<U6C52> \xC9\xF9 |0
+<U6C54> \xC9\xFD |0
+<U6C55> \xA6\xC2 |0
+<U6C57> \xA6\xBD |0
+<U6C58> \x95\xCE |0
+<U6C59> \xA6\xBE |0
+<U6C5A> \xFD\x76 |0
+<U6C5B> \xA6\xC4 |0
+<U6C5C> \xC9\xFA |0
+<U6C5D> \xA6\xBC |0
+<U6C5E> \xA8\x45 |0
+<U6C5F> \xA6\xBF |0
+<U6C60> \xA6\xC0 |0
+<U6C61> \xA6\xC3 |0
+<U6C65> \xCB\x5B |0
+<U6C66> \xCB\x59 |0
+<U6C67> \xCB\x4C |0
+<U6C68> \xA8\x51 |0
+<U6C69> \xCB\x53 |0
+<U6C6A> \xA8\x4C |0
+<U6C6B> \xCB\x4D |0
+<U6C6D> \xCB\x55 |0
+<U6C6E> \xFB\x62 |0
+<U6C6F> \xCB\x52 |0
+<U6C70> \xA8\x4F |0
+<U6C71> \xCB\x51 |0
+<U6C72> \xA8\x56 |0
+<U6C73> \xCB\x5A |0
+<U6C74> \xA8\x58 |0
+<U6C75> \x8D\xD4 |0
+<U6C76> \xA8\x5A |0
+<U6C78> \xCB\x4B |0
+<U6C79> \xFD\x78 |0
+<U6C7A> \xA8\x4D |0
+<U6C7B> \xCB\x5C |0
+<U6C7D> \xA8\x54 |0
+<U6C7E> \xA8\x57 |0
+<U6C7F> \x8E\xE3 |0
+<U6C80> \xCD\x45 |0
+<U6C81> \xA8\x47 |0
+<U6C82> \xA8\x5E |0
+<U6C83> \xA8\x55 |0
+<U6C84> \xCB\x4E |0
+<U6C85> \xA8\x4A |0
+<U6C86> \xA8\x59 |0
+<U6C87> \xCB\x56 |0
+<U6C88> \xA8\x48 |0
+<U6C89> \xA8\x49 |0
+<U6C8A> \xCD\x43 |0
+<U6C8B> \xCB\x4F |0
+<U6C8C> \xA8\x50 |0
+<U6C8D> \xA8\x5B |0
+<U6C8E> \xCB\x5D |0
+<U6C8F> \xCB\x50 |0
+<U6C90> \xA8\x4E |0
+<U6C92> \xA8\x53 |0
+<U6C93> \xCC\xEE |0
+<U6C94> \xA8\x5C |0
+<U6C95> \xCB\x57 |0
+<U6C96> \xA8\x52 |0
+<U6C98> \xA8\x5D |0
+<U6C99> \xA8\x46 |0
+<U6C9A> \xCB\x54 |0
+<U6C9B> \xA8\x4B |0
+<U6C9C> \xCB\x58 |0
+<U6C9D> \xCD\x44 |0
+<U6C9F> \x90\x76 |0
+<U6CA2> \x98\xC6 |0
+<U6CAA> \x8D\xD5 |0
+<U6CAB> \xAA\x6A |0
+<U6CAC> \xAA\x7A |0
+<U6CAD> \xCC\xF5 |0
+<U6CAE> \xAA\x71 |0
+<U6CAF> \x97\xD1 |0
+<U6CB0> \xCD\x4B |0
+<U6CB1> \xAA\x62 |0
+<U6CB2> \x9E\xB6 |0
+<U6CB3> \xAA\x65 |0
+<U6CB4> \xCD\x42 |0
+<U6CB6> \xCC\xF3 |0
+<U6CB7> \xCC\xF7 |0
+<U6CB8> \xAA\x6D |0
+<U6CB9> \xAA\x6F |0
+<U6CBA> \xCC\xFA |0
+<U6CBB> \xAA\x76 |0
+<U6CBC> \xAA\x68 |0
+<U6CBD> \xAA\x66 |0
+<U6CBE> \xAA\x67 |0
+<U6CBF> \xAA\x75 |0
+<U6CC0> \xCD\x47 |0
+<U6CC1> \xAA\x70 |0
+<U6CC2> \xCC\xF9 |0
+<U6CC3> \xCC\xFB |0
+<U6CC4> \xAA\x6E |0
+<U6CC5> \xAA\x73 |0
+<U6CC6> \xCC\xFC |0
+<U6CC7> \xCD\x4A |0
+<U6CC9> \xAC\x75 |0
+<U6CCA> \xAA\x79 |0
+<U6CCB> \xFA\xC7 |0
+<U6CCC> \xAA\x63 |0
+<U6CCD> \xCD\x49 |0
+<U6CCE> \xA0\x42 |0
+<U6CCF> \xCD\x4D |0
+<U6CD0> \xCC\xF8 |0
+<U6CD1> \xCD\x4F |0
+<U6CD2> \xCD\x40 |0
+<U6CD3> \xAA\x6C |0
+<U6CD4> \xCC\xF4 |0
+<U6CD5> \xAA\x6B |0
+<U6CD6> \xAA\x7D |0
+<U6CD7> \xAA\x72 |0
+<U6CD9> \xCC\xF2 |0
+<U6CDA> \xCF\x75 |0
+<U6CDB> \xAA\x78 |0
+<U6CDC> \xAA\x7C |0
+<U6CDD> \xCD\x41 |0
+<U6CDE> \xCD\x46 |0
+<U6CDF> \x98\x73 |0
+<U6CE0> \xAA\x7E |0
+<U6CE1> \xAA\x77 |0
+<U6CE2> \xAA\x69 |0
+<U6CE3> \xAA\x5F |0
+<U6CE5> \xAA\x64 |0
+<U6CE7> \xCC\xF6 |0
+<U6CE8> \xAA\x60 |0
+<U6CE9> \xCD\x4E |0
+<U6CEA> \x9F\xFC |0
+<U6CEB> \xCC\xF0 |0
+<U6CEC> \xCC\xEF |0
+<U6CED> \xCC\xFD |0
+<U6CEE> \xCC\xF1 |0
+<U6CEF> \xAA\x7B |0
+<U6CF0> \xAE\xF5 |0
+<U6CF1> \xAA\x74 |0
+<U6CF2> \xCC\xFE |0
+<U6CF3> \xAA\x61 |0
+<U6CF5> \xAC\xA6 |0
+<U6CF9> \xCD\x4C |0
+<U6D00> \xCF\x7C |0
+<U6D01> \xCF\xA1 |0
+<U6D02> \x8D\xD7 |0
+<U6D03> \xCF\xA4 |0
+<U6D04> \xCF\x77 |0
+<U6D05> \x92\xFB |0
+<U6D06> \x8D\xD8 |0
+<U6D07> \xCF\xA7 |0
+<U6D08> \xCF\xAA |0
+<U6D09> \xCF\xAC |0
+<U6D0A> \xCF\x74 |0
+<U6D0B> \xAC\x76 |0
+<U6D0C> \xAC\x7B |0
+<U6D0D> \xD2\x49 |0
+<U6D0E> \xAC\xAD |0
+<U6D0F> \xCF\xA5 |0
+<U6D10> \xCF\xAD |0
+<U6D11> \xCF\x7B |0
+<U6D12> \xCF\x73 |0
+<U6D16> \xD2\x64 |0
+<U6D17> \xAC\x7E |0
+<U6D18> \xCF\xA2 |0
+<U6D19> \xCF\x78 |0
+<U6D1A> \xCF\x7A |0
+<U6D1B> \xAC\xA5 |0
+<U6D1D> \xCF\x7D |0
+<U6D1E> \xAC\x7D |0
+<U6D1F> \xCF\x70 |0
+<U6D20> \xCF\xA8 |0
+<U6D22> \xCF\xAB |0
+<U6D24> \x94\x4F |0
+<U6D25> \xAC\x7A |0
+<U6D26> \x8D\xD9 |0
+<U6D27> \xAC\xA8 |0
+<U6D28> \xCF\x6D |0
+<U6D29> \xAC\xAA |0
+<U6D2A> \xAC\x78 |0
+<U6D2B> \xAC\xAE |0
+<U6D2C> \xCF\xA9 |0
+<U6D2D> \xCF\x6F |0
+<U6D2E> \xAC\xAB |0
+<U6D2F> \xD2\x5E |0
+<U6D30> \xCD\x48 |0
+<U6D31> \xAC\x7C |0
+<U6D32> \xAC\x77 |0
+<U6D33> \xCF\x76 |0
+<U6D34> \xCF\x6E |0
+<U6D35> \xAC\xAC |0
+<U6D36> \xAC\xA4 |0
+<U6D37> \xCF\xA3 |0
+<U6D38> \xAC\xA9 |0
+<U6D39> \xAC\xA7 |0
+<U6D3A> \xCF\x79 |0
+<U6D3B> \xAC\xA1 |0
+<U6D3C> \xCF\x71 |0
+<U6D3D> \xAC\xA2 |0
+<U6D3E> \xAC\xA3 |0
+<U6D3F> \xCF\x72 |0
+<U6D40> \xCF\xA6 |0
+<U6D41> \xAC\x79 |0
+<U6D42> \xCF\x7E |0
+<U6D4E> \x89\x6B |0
+<U6D57> \x97\xCE |0
+<U6D58> \xD2\x4C |0
+<U6D59> \xAE\xFD |0
+<U6D5A> \xAF\x43 |0
+<U6D5B> \xFA\xF3 |0
+<U6D5C> \xFD\xAE |0
+<U6D5E> \xD2\x55 |0
+<U6D5F> \xD2\x5B |0
+<U6D60> \xD2\x57 |0
+<U6D61> \xD2\x4A |0
+<U6D62> \xD2\x4D |0
+<U6D63> \xD2\x46 |0
+<U6D64> \xD2\x47 |0
+<U6D65> \xAF\x4A |0
+<U6D66> \xAE\xFA |0
+<U6D67> \xD2\x56 |0
+<U6D68> \xD2\x5F |0
+<U6D69> \xAF\x45 |0
+<U6D6A> \xAE\xF6 |0
+<U6D6C> \xAF\x40 |0
+<U6D6D> \xD2\x4E |0
+<U6D6E> \xAF\x42 |0
+<U6D6F> \xD2\x4F |0
+<U6D70> \xD2\x59 |0
+<U6D71> \xFB\xAF |0
+<U6D72> \x92\xB7 |0
+<U6D74> \xAF\x44 |0
+<U6D75> \xD2\x68 |0
+<U6D76> \xD2\x48 |0
+<U6D77> \xAE\xFC |0
+<U6D78> \xAE\xFB |0
+<U6D79> \xAF\x48 |0
+<U6D7A> \xD2\x45 |0
+<U6D7B> \xD2\x66 |0
+<U6D7C> \xD2\x5A |0
+<U6D7D> \xD2\x67 |0
+<U6D7E> \xD2\x61 |0
+<U6D7F> \xD2\x53 |0
+<U6D80> \xD2\x62 |0
+<U6D81> \x8D\xDA |0
+<U6D82> \xD2\x5C |0
+<U6D83> \xD2\x65 |0
+<U6D84> \xD2\x63 |0
+<U6D85> \xAF\x49 |0
+<U6D86> \xD2\x54 |0
+<U6D87> \xAE\xF9 |0
+<U6D88> \xAE\xF8 |0
+<U6D89> \xAF\x41 |0
+<U6D8A> \xAF\x47 |0
+<U6D8B> \xD2\x60 |0
+<U6D8C> \xAF\x46 |0
+<U6D8D> \xD2\x51 |0
+<U6D8E> \xB2\x43 |0
+<U6D8F> \x9C\x5A |0
+<U6D90> \xD2\x69 |0
+<U6D91> \xD2\x50 |0
+<U6D92> \xD2\x4B |0
+<U6D93> \xAE\xFE |0
+<U6D94> \xAF\x4B |0
+<U6D95> \xAE\xF7 |0
+<U6D96> \xFD\xAD |0
+<U6D97> \xD2\x58 |0
+<U6D98> \xD2\x5D |0
+<U6DA4> \x8D\xDC |0
+<U6DA5> \x94\x44 |0
+<U6DAA> \xB2\x65 |0
+<U6DAB> \xD5\xE1 |0
+<U6DAC> \xD5\xE5 |0
+<U6DAE> \xB2\x52 |0
+<U6DAF> \xB2\x50 |0
+<U6DB1> \x8D\xDD |0
+<U6DB2> \xB2\x47 |0
+<U6DB3> \xD5\xE3 |0
+<U6DB4> \xD5\xE2 |0
+<U6DB5> \xB2\x5B |0
+<U6DB7> \xD5\xE8 |0
+<U6DB8> \xB2\x55 |0
+<U6DB9> \xA0\xD6 |0
+<U6DBA> \xD5\xFA |0
+<U6DBB> \xD6\x47 |0
+<U6DBC> \xB2\x44 |0
+<U6DBD> \xD5\xF7 |0
+<U6DBE> \xD5\xF0 |0
+<U6DBF> \xB2\x67 |0
+<U6DC0> \xD5\xE0 |0
+<U6DC2> \xD5\xFC |0
+<U6DC4> \xB2\x64 |0
+<U6DC5> \xB2\x58 |0
+<U6DC6> \xB2\x63 |0
+<U6DC7> \xB2\x4E |0
+<U6DC8> \xD5\xEC |0
+<U6DC9> \xD5\xFE |0
+<U6DCA> \xD5\xF6 |0
+<U6DCB> \xB2\x4F |0
+<U6DCC> \xB2\x49 |0
+<U6DCD> \xD6\x45 |0
+<U6DCF> \xD5\xFD |0
+<U6DD0> \xD6\x40 |0
+<U6DD1> \xB2\x51 |0
+<U6DD2> \xB2\x59 |0
+<U6DD3> \xD6\x42 |0
+<U6DD4> \xD5\xEA |0
+<U6DD5> \xD5\xFB |0
+<U6DD6> \xD5\xEF |0
+<U6DD7> \xD6\x44 |0
+<U6DD8> \xB2\x5E |0
+<U6DD9> \xB2\x46 |0
+<U6DDA> \xB2\x5C |0
+<U6DDB> \xD5\xF4 |0
+<U6DDC> \xD5\xF2 |0
+<U6DDD> \xD5\xF3 |0
+<U6DDE> \xB2\x53 |0
+<U6DDF> \xD5\xEE |0
+<U6DE0> \xD5\xED |0
+<U6DE1> \xB2\x48 |0
+<U6DE2> \xD5\xE7 |0
+<U6DE3> \xD6\x46 |0
+<U6DE4> \xB2\x4A |0
+<U6DE5> \xD5\xF1 |0
+<U6DE6> \xB2\x68 |0
+<U6DE8> \xB2\x62 |0
+<U6DE9> \xD5\xE6 |0
+<U6DEA> \xB2\x5F |0
+<U6DEB> \xB2\x5D |0
+<U6DEC> \xB2\x66 |0
+<U6DED> \xD5\xF8 |0
+<U6DEE> \xB2\x61 |0
+<U6DEF> \xD2\x52 |0
+<U6DF0> \xD5\xF9 |0
+<U6DF1> \xB2\x60 |0
+<U6DF2> \xD6\x41 |0
+<U6DF3> \xB2\x45 |0
+<U6DF4> \xD5\xF5 |0
+<U6DF5> \xB2\x57 |0
+<U6DF6> \xD5\xE9 |0
+<U6DF7> \xB2\x56 |0
+<U6DF9> \xB2\x54 |0
+<U6DFA> \xB2\x4C |0
+<U6DFB> \xB2\x4B |0
+<U6DFC> \xD9\xE7 |0
+<U6DFD> \xD6\x43 |0
+<U6E00> \xD5\xEB |0
+<U6E02> \x97\xD5 |0
+<U6E03> \xD9\xFC |0
+<U6E04> \x94\x4A |0
+<U6E05> \xB2\x4D |0
+<U6E0A> \x94\x4D |0
+<U6E0F> \x97\xCB |0
+<U6E15> \x8D\xDE |0
+<U6E18> \x8D\xDF |0
+<U6E19> \xB5\x41 |0
+<U6E1A> \xB2\x5A |0
+<U6E1B> \xB4\xEE |0
+<U6E1C> \xD9\xF6 |0
+<U6E1D> \xB4\xFC |0
+<U6E1F> \xD9\xEA |0
+<U6E20> \xB4\xEB |0
+<U6E21> \xB4\xE7 |0
+<U6E22> \xDA\x49 |0
+<U6E23> \xB4\xED |0
+<U6E24> \xB4\xF1 |0
+<U6E25> \xB4\xEC |0
+<U6E26> \xB4\xF5 |0
+<U6E27> \xDA\x4D |0
+<U6E28> \xDA\x44 |0
+<U6E29> \x8D\xE0 |0
+<U6E2A> \xFE\xF9 |0
+<U6E2B> \xD9\xF1 |0
+<U6E2C> \xB4\xFA |0
+<U6E2D> \xB4\xF4 |0
+<U6E2E> \xD9\xFD |0
+<U6E2F> \xB4\xE4 |0
+<U6E30> \xDA\x4A |0
+<U6E31> \xDA\x43 |0
+<U6E32> \xB4\xE8 |0
+<U6E33> \xD9\xF7 |0
+<U6E34> \xB4\xF7 |0
+<U6E35> \xDA\x55 |0
+<U6E36> \xDA\x56 |0
+<U6E38> \xB4\xE5 |0
+<U6E39> \xDA\x48 |0
+<U6E3A> \xB4\xF9 |0
+<U6E3B> \xD9\xFB |0
+<U6E3C> \xD9\xED |0
+<U6E3D> \xD9\xEE |0
+<U6E3E> \xB4\xFD |0
+<U6E3F> \xD9\xF2 |0
+<U6E40> \xD9\xF9 |0
+<U6E41> \xD9\xF3 |0
+<U6E43> \xB4\xFB |0
+<U6E44> \xB5\x44 |0
+<U6E45> \xD9\xEF |0
+<U6E46> \xD9\xE8 |0
+<U6E47> \xD9\xE9 |0
+<U6E49> \xD9\xEB |0
+<U6E4A> \xB4\xEA |0
+<U6E4B> \xD9\xF8 |0
+<U6E4D> \xB4\xF8 |0
+<U6E4E> \xB5\x42 |0
+<U6E4F> \xFD\xC0 |0
+<U6E50> \xFC\xF9 |0
+<U6E51> \xD9\xFA |0
+<U6E52> \xDA\x53 |0
+<U6E53> \xDA\x4B |0
+<U6E54> \xB4\xE6 |0
+<U6E55> \xDA\x51 |0
+<U6E56> \xB4\xF2 |0
+<U6E58> \xB4\xF0 |0
+<U6E59> \xFB\x7E |0
+<U6E5A> \xDA\x57 |0
+<U6E5B> \xB4\xEF |0
+<U6E5C> \xDA\x41 |0
+<U6E5D> \xD9\xF4 |0
+<U6E5E> \xD9\xFE |0
+<U6E5F> \xB5\x47 |0
+<U6E60> \xDA\x45 |0
+<U6E61> \xDA\x42 |0
+<U6E62> \xD9\xF0 |0
+<U6E63> \xB5\x43 |0
+<U6E64> \xDA\x4F |0
+<U6E65> \xDA\x4C |0
+<U6E66> \xDA\x54 |0
+<U6E67> \xB4\xE9 |0
+<U6E68> \xDA\x40 |0
+<U6E69> \xB5\x46 |0
+<U6E6B> \xDA\x47 |0
+<U6E6E> \xB4\xF3 |0
+<U6E6F> \xB4\xF6 |0
+<U6E71> \xDA\x46 |0
+<U6E72> \xB5\x45 |0
+<U6E73> \xD9\xF5 |0
+<U6E74> \xD5\xE4 |0
+<U6E76> \x92\xB3 |0
+<U6E77> \xDA\x50 |0
+<U6E78> \xDA\x4E |0
+<U6E79> \xDA\x52 |0
+<U6E7C> \xFD\xAF |0
+<U6E86> \x8D\xE1 |0
+<U6E88> \xD9\xEC |0
+<U6E89> \xB5\x40 |0
+<U6E8B> \x95\xD3 |0
+<U6E8D> \xDE\x61 |0
+<U6E8E> \xDE\x60 |0
+<U6E8F> \xDE\x46 |0
+<U6E90> \xB7\xBD |0
+<U6E92> \xDE\x5F |0
+<U6E93> \xDE\x49 |0
+<U6E94> \xDE\x4A |0
+<U6E96> \xB7\xC7 |0
+<U6E97> \xDE\x68 |0
+<U6E98> \xB7\xC2 |0
+<U6E99> \xDE\x5E |0
+<U6E9A> \x89\xC1 |0
+<U6E9B> \xDE\x43 |0
+<U6E9C> \xB7\xC8 |0
+<U6E9D> \xB7\xBE |0
+<U6E9E> \xDE\x52 |0
+<U6E9F> \xDE\x48 |0
+<U6EA0> \xDE\x4B |0
+<U6EA1> \xDE\x63 |0
+<U6EA2> \xB7\xB8 |0
+<U6EA3> \xDE\x6A |0
+<U6EA4> \xDE\x62 |0
+<U6EA5> \xB7\xC1 |0
+<U6EA6> \xDE\x57 |0
+<U6EA7> \xB7\xCC |0
+<U6EAA> \xB7\xCB |0
+<U6EAB> \xB7\xC5 |0
+<U6EAE> \xDE\x69 |0
+<U6EAF> \xB7\xB9 |0
+<U6EB0> \xDE\x55 |0
+<U6EB1> \xDE\x4C |0
+<U6EB2> \xDE\x59 |0
+<U6EB3> \xDE\x65 |0
+<U6EB4> \xB7\xCD |0
+<U6EB5> \xFD\x68 |0
+<U6EB6> \xB7\xBB |0
+<U6EB7> \xDE\x54 |0
+<U6EB8> \x9C\xB7 |0
+<U6EB9> \xDE\x4D |0
+<U6EBA> \xB7\xC4 |0
+<U6EBB> \x8D\xE3 |0
+<U6EBC> \xB7\xC3 |0
+<U6EBD> \xDE\x50 |0
+<U6EBE> \xDE\x5A |0
+<U6EBF> \xDE\x64 |0
+<U6EC0> \xDE\x47 |0
+<U6EC1> \xDE\x51 |0
+<U6EC2> \xB7\xBC |0
+<U6EC3> \xDE\x5B |0
+<U6EC4> \xB7\xC9 |0
+<U6EC5> \xB7\xC0 |0
+<U6EC6> \xDE\x4E |0
+<U6EC7> \xB7\xBF |0
+<U6EC8> \xDE\x45 |0
+<U6EC9> \xDE\x53 |0
+<U6ECA> \xDE\x67 |0
+<U6ECB> \xB4\xFE |0
+<U6ECC> \xBA\xB0 |0
+<U6ECD> \xDE\x56 |0
+<U6ECE> \xE2\x6C |0
+<U6ECF> \xDE\x58 |0
+<U6ED0> \xDE\x66 |0
+<U6ED1> \xB7\xC6 |0
+<U6ED2> \xDE\x4F |0
+<U6ED3> \xB7\xBA |0
+<U6ED4> \xB7\xCA |0
+<U6ED5> \xBC\xF0 |0
+<U6ED6> \xDE\x44 |0
+<U6ED8> \xDE\x5D |0
+<U6ED9> \xFA\xC0 |0
+<U6EDA> \x8D\xE5 |0
+<U6EDB> \xFA\x64 |0
+<U6EDC> \xDE\x5C |0
+<U6EDD> \x89\x47 |0
+<U6EE2> \x8D\xE4 |0
+<U6EE8> \x8D\xE7 |0
+<U6EE9> \x8D\xE8 |0
+<U6EEB> \xE2\xAA |0
+<U6EEC> \xBA\xAD |0
+<U6EED> \xE2\x7D |0
+<U6EEE> \xE2\xA4 |0
+<U6EEF> \xBA\xA2 |0
+<U6EF1> \xE2\x6E |0
+<U6EF2> \xBA\xAF |0
+<U6EF4> \xBA\x77 |0
+<U6EF5> \xE2\x6D |0
+<U6EF6> \xE2\xB0 |0
+<U6EF7> \xBA\xB1 |0
+<U6EF8> \xE2\x71 |0
+<U6EF9> \xE2\xA3 |0
+<U6EFA> \xFD\xC7 |0
+<U6EFB> \xE2\x73 |0
+<U6EFC> \xE2\xB3 |0
+<U6EFD> \xE2\xAF |0
+<U6EFE> \xBA\x75 |0
+<U6EFF> \xBA\xA1 |0
+<U6F00> \xE6\x53 |0
+<U6F01> \xBA\xAE |0
+<U6F02> \xBA\x7D |0
+<U6F03> \xE2\x6F |0
+<U6F04> \xFD\xB0 |0
+<U6F05> \xE2\xAE |0
+<U6F06> \xBA\xA3 |0
+<U6F07> \xE2\xAB |0
+<U6F08> \xE2\xB8 |0
+<U6F09> \xE2\x75 |0
+<U6F0A> \xE2\x7E |0
+<U6F0B> \x94\x45 |0
+<U6F0C> \x97\xD6 |0
+<U6F0D> \xE2\xB6 |0
+<U6F0E> \xE2\xAC |0
+<U6F0F> \xBA\x7C |0
+<U6F12> \xE2\x7C |0
+<U6F13> \xBA\x76 |0
+<U6F14> \xBA\x74 |0
+<U6F15> \xBA\xA8 |0
+<U6F16> \xFC\xC6 |0
+<U6F17> \x98\x44 |0
+<U6F18> \xE2\x7A |0
+<U6F19> \xE2\x77 |0
+<U6F1A> \xE2\x78 |0
+<U6F1C> \xE2\xB2 |0
+<U6F1E> \xE2\xB7 |0
+<U6F1F> \xE2\xB5 |0
+<U6F20> \xBA\x7A |0
+<U6F21> \xE2\xB9 |0
+<U6F22> \xBA\x7E |0
+<U6F23> \xBA\xA7 |0
+<U6F24> \x8D\xE9 |0
+<U6F25> \xE2\x70 |0
+<U6F26> \xE5\xFA |0
+<U6F27> \xE2\x79 |0
+<U6F29> \xBA\x78 |0
+<U6F2A> \xBA\xAC |0
+<U6F2B> \xBA\xA9 |0
+<U6F2C> \xBA\x7B |0
+<U6F2D> \xE2\xA5 |0
+<U6F2E> \xE2\x74 |0
+<U6F2F> \xBA\xAA |0
+<U6F30> \xE2\xA7 |0
+<U6F31> \xBA\xA4 |0
+<U6F32> \xBA\xA6 |0
+<U6F33> \xBA\x73 |0
+<U6F34> \x8D\xEA |0
+<U6F35> \xE2\xA9 |0
+<U6F36> \xE2\xA1 |0
+<U6F37> \xE2\x72 |0
+<U6F38> \xBA\xA5 |0
+<U6F39> \xE2\xB1 |0
+<U6F3A> \xE2\xB4 |0
+<U6F3B> \xE2\x7B |0
+<U6F3C> \xE2\xA8 |0
+<U6F3D> \xFE\x50 |0
+<U6F3E> \xBA\x79 |0
+<U6F3F> \xBC\xDF |0
+<U6F40> \xE2\xA6 |0
+<U6F41> \xE5\xF9 |0
+<U6F43> \xE2\xAD |0
+<U6F44> \xFD\xCC |0
+<U6F4E> \xE2\x76 |0
+<U6F4F> \xE6\x44 |0
+<U6F50> \xE6\x4E |0
+<U6F51> \xBC\xE2 |0
+<U6F52> \xE6\x4D |0
+<U6F53> \xE6\x59 |0
+<U6F54> \xBC\xE4 |0
+<U6F55> \xE6\x4B |0
+<U6F56> \x9D\xA7 |0
+<U6F57> \xE6\x4F |0
+<U6F58> \xBC\xEF |0
+<U6F5A> \xE6\x46 |0
+<U6F5B> \xBC\xE7 |0
+<U6F5C> \xFD\xCD |0
+<U6F5D> \xE6\x52 |0
+<U6F5E> \xE9\xF0 |0
+<U6F5F> \xBC\xF3 |0
+<U6F60> \xBC\xF2 |0
+<U6F61> \xE6\x54 |0
+<U6F62> \xE6\x43 |0
+<U6F63> \xE6\x5E |0
+<U6F64> \xBC\xED |0
+<U6F66> \xBC\xE3 |0
+<U6F67> \xE6\x57 |0
+<U6F69> \xE6\x5B |0
+<U6F6A> \xE6\x60 |0
+<U6F6B> \xE6\x55 |0
+<U6F6C> \xE6\x49 |0
+<U6F6D> \xBC\xE6 |0
+<U6F6E> \xBC\xE9 |0
+<U6F6F> \xBC\xF1 |0
+<U6F70> \xBC\xEC |0
+<U6F72> \xE6\x4C |0
+<U6F73> \xE2\xA2 |0
+<U6F74> \xFD\xCF |0
+<U6F76> \xE6\x48 |0
+<U6F77> \xE6\x5F |0
+<U6F78> \xBC\xE8 |0
+<U6F79> \x95\xD2 |0
+<U6F7A> \xBC\xEB |0
+<U6F7B> \xE6\x61 |0
+<U6F7C> \xBC\xE0 |0
+<U6F7D> \xE6\x56 |0
+<U6F7E> \xE5\xFB |0
+<U6F7F> \xE6\x5C |0
+<U6F80> \xC0\xDF |0
+<U6F81> \x8D\xED |0
+<U6F82> \xE6\x4A |0
+<U6F84> \xBC\xE1 |0
+<U6F85> \xE6\x45 |0
+<U6F86> \xBC\xE5 |0
+<U6F87> \xE5\xFC |0
+<U6F88> \xBA\xAB |0
+<U6F89> \xE6\x41 |0
+<U6F8A> \xFC\xBA |0
+<U6F8B> \xE6\x5A |0
+<U6F8C> \xE6\x42 |0
+<U6F8D> \xE6\x40 |0
+<U6F8E> \xBC\xEA |0
+<U6F90> \xE6\x58 |0
+<U6F92> \xE5\xFE |0
+<U6F93> \xE6\x51 |0
+<U6F94> \xE6\x50 |0
+<U6F95> \xE6\x5D |0
+<U6F96> \xE6\x47 |0
+<U6F97> \xBC\xEE |0
+<U6F9D> \xFD\xC5 |0
+<U6F9E> \xE9\xF3 |0
+<U6F9F> \xFD\xD2 |0
+<U6FA0> \xBF\x49 |0
+<U6FA1> \xBE\xFE |0
+<U6FA2> \xEA\x40 |0
+<U6FA3> \xE9\xEB |0
+<U6FA4> \xBF\x41 |0
+<U6FA5> \xE9\xF7 |0
+<U6FA6> \xBF\x48 |0
+<U6FA7> \xBF\x43 |0
+<U6FA8> \xE9\xF5 |0
+<U6FA9> \xED\x4F |0
+<U6FAA> \xE9\xFB |0
+<U6FAB> \xEA\x42 |0
+<U6FAC> \xE9\xFA |0
+<U6FAD> \xE9\xE9 |0
+<U6FAE> \xE9\xF8 |0
+<U6FAF> \xEA\x44 |0
+<U6FB0> \xEA\x46 |0
+<U6FB1> \xBE\xFD |0
+<U6FB2> \xEA\x45 |0
+<U6FB3> \xBF\x44 |0
+<U6FB4> \xBF\x4A |0
+<U6FB5> \x9C\xDC |0
+<U6FB6> \xBF\x47 |0
+<U6FB8> \xE9\xFE |0
+<U6FB9> \xBF\x46 |0
+<U6FBA> \xE9\xF9 |0
+<U6FBB> \x95\xCF |0
+<U6FBC> \xE9\xED |0
+<U6FBD> \xE9\xF2 |0
+<U6FBE> \x8D\xEE |0
+<U6FBF> \xE9\xFD |0
+<U6FC0> \xBF\x45 |0
+<U6FC1> \xBF\x42 |0
+<U6FC2> \xBE\xFC |0
+<U6FC3> \xBF\x40 |0
+<U6FC4> \xE9\xF1 |0
+<U6FC6> \xE5\xFD |0
+<U6FC7> \xE9\xEC |0
+<U6FC8> \xE9\xEF |0
+<U6FC9> \xEA\x41 |0
+<U6FCA> \xE9\xF4 |0
+<U6FCB> \xE9\xEA |0
+<U6FCC> \xED\x4E |0
+<U6FCD> \xEA\x43 |0
+<U6FCE> \xE9\xEE |0
+<U6FCF> \xE9\xFC |0
+<U6FD3> \xFD\xD4 |0
+<U6FD4> \xED\x51 |0
+<U6FD5> \xC0\xE3 |0
+<U6FD8> \xC0\xD7 |0
+<U6FD9> \x96\xEC |0
+<U6FDA> \x96\xEB |0
+<U6FDB> \xC0\xDB |0
+<U6FDC> \xED\x53 |0
+<U6FDD> \xED\x59 |0
+<U6FDE> \xED\x57 |0
+<U6FDF> \xC0\xD9 |0
+<U6FE0> \xC0\xDA |0
+<U6FE1> \xC0\xE1 |0
+<U6FE2> \xED\x5A |0
+<U6FE3> \xED\x52 |0
+<U6FE4> \xC0\xDC |0
+<U6FE6> \xED\x56 |0
+<U6FE7> \xED\x55 |0
+<U6FE8> \xED\x5B |0
+<U6FE9> \xC0\xE2 |0
+<U6FEB> \xC0\xDD |0
+<U6FEC> \xC0\xE0 |0
+<U6FED> \xED\x54 |0
+<U6FEE> \xC0\xE4 |0
+<U6FEF> \xC0\xDE |0
+<U6FF0> \xC0\xE5 |0
+<U6FF1> \xC0\xD8 |0
+<U6FF2> \xED\x58 |0
+<U6FF4> \xED\x50 |0
+<U6FF6> \x90\xB6 |0
+<U6FF7> \xEF\xF7 |0
+<U6FF8> \xFD\xC3 |0
+<U6FFA> \xC2\x71 |0
+<U6FFB> \xEF\xF4 |0
+<U6FFC> \xEF\xF6 |0
+<U6FFE> \xC2\x6F |0
+<U6FFF> \xEF\xF2 |0
+<U7000> \xEF\xF3 |0
+<U7001> \xEF\xEE |0
+<U7003> \x98\xAB |0
+<U7004> \xE9\xF6 |0
+<U7005> \xEF\xEF |0
+<U7006> \xC2\x70 |0
+<U7007> \xEF\xEB |0
+<U7009> \xC2\x6D |0
+<U700A> \xEF\xF8 |0
+<U700B> \xC2\x6E |0
+<U700C> \xEF\xEC |0
+<U700D> \xEF\xED |0
+<U700E> \xEF\xF1 |0
+<U700F> \xC2\x73 |0
+<U7011> \xC2\x72 |0
+<U7014> \xEF\xF0 |0
+<U7015> \xC3\x78 |0
+<U7016> \xF2\x5F |0
+<U7017> \xF2\x65 |0
+<U7018> \xC3\x79 |0
+<U7019> \xF2\x5C |0
+<U701A> \xC3\x76 |0
+<U701B> \xC3\x73 |0
+<U701C> \xF2\x67 |0
+<U701D> \xC3\x77 |0
+<U701E> \x96\xEE |0
+<U701F> \xC3\x74 |0
+<U7020> \xF2\x5E |0
+<U7021> \xF2\x61 |0
+<U7022> \xF2\x62 |0
+<U7023> \xF2\x63 |0
+<U7024> \xF2\x66 |0
+<U7026> \xEF\xF5 |0
+<U7027> \xF2\x5D |0
+<U7028> \xC3\x75 |0
+<U7029> \xF2\x64 |0
+<U702A> \xF2\x68 |0
+<U702B> \xF2\x60 |0
+<U702C> \x8D\xF4 |0
+<U702F> \xF4\x5D |0
+<U7030> \xC4\x6A |0
+<U7031> \xF4\x60 |0
+<U7032> \xC4\x6B |0
+<U7033> \xF4\x68 |0
+<U7034> \xF4\x5F |0
+<U7035> \xF4\x5C |0
+<U7037> \xF4\x5E |0
+<U7038> \xF4\x62 |0
+<U7039> \xF4\x65 |0
+<U703A> \xF4\x64 |0
+<U703B> \xF4\x67 |0
+<U703C> \xF4\x5B |0
+<U703E> \xC4\x69 |0
+<U703F> \xF4\x63 |0
+<U7040> \xF4\x66 |0
+<U7041> \xF4\x69 |0
+<U7042> \xF4\x61 |0
+<U7043> \xF5\xD3 |0
+<U7044> \xF5\xD4 |0
+<U7045> \xF5\xD8 |0
+<U7046> \xF5\xD9 |0
+<U7048> \xF5\xD6 |0
+<U7049> \xF5\xD7 |0
+<U704A> \xF5\xD5 |0
+<U704B> \xFD\xE0 |0
+<U704C> \xC4\xE9 |0
+<U7050> \x8D\xF6 |0
+<U7051> \xC5\x78 |0
+<U7052> \xF6\xEB |0
+<U7054> \x8D\xF7 |0
+<U7055> \xF6\xE8 |0
+<U7056> \xF6\xE9 |0
+<U7057> \xF6\xEA |0
+<U7058> \xC5\x79 |0
+<U705A> \xF7\xE5 |0
+<U705B> \xF7\xE4 |0
+<U705C> \x8F\xFA |0
+<U705D> \xF8\xAF |0
+<U705E> \xC5\xF4 |0
+<U705F> \xF8\xAD |0
+<U7060> \xF8\xB0 |0
+<U7061> \xF8\xAE |0
+<U7062> \xF8\xF5 |0
+<U7063> \xC6\x57 |0
+<U7064> \xC6\x65 |0
+<U7065> \xF9\xA3 |0
+<U7066> \xF9\x6C |0
+<U7067> \x97\xD0 |0
+<U7068> \xF9\xA2 |0
+<U7069> \xF9\xD0 |0
+<U706A> \xF9\xD1 |0
+<U706B> \xA4\xF5 |0
+<U706C> \x8B\xD2 |0
+<U706F> \x8D\xF8 |0
+<U7070> \xA6\xC7 |0
+<U7071> \xCA\x41 |0
+<U7074> \xCB\x5E |0
+<U7075> \x90\xD9 |0
+<U7076> \xA8\x5F |0
+<U7078> \xA8\x62 |0
+<U7079> \xFA\xF0 |0
+<U707A> \xCB\x5F |0
+<U707C> \xA8\x60 |0
+<U707D> \xA8\x61 |0
+<U707E> \xFD\xE1 |0
+<U707F> \x8D\xF9 |0
+<U7081> \xFD\xE3 |0
+<U7082> \xCD\x58 |0
+<U7083> \xCD\x5A |0
+<U7084> \xCD\x55 |0
+<U7085> \xCD\x52 |0
+<U7086> \xCD\x54 |0
+<U7089> \x8D\xFA |0
+<U708A> \xAA\xA4 |0
+<U708B> \xFB\x63 |0
+<U708E> \xAA\xA2 |0
+<U708F> \x90\xA6 |0
+<U7091> \xCD\x56 |0
+<U7092> \xAA\xA3 |0
+<U7093> \xCD\x53 |0
+<U7094> \xCD\x50 |0
+<U7095> \xAA\xA1 |0
+<U7096> \xCD\x57 |0
+<U7098> \xCD\x51 |0
+<U7099> \xAA\xA5 |0
+<U709A> \xCD\x59 |0
+<U709F> \xCF\xAF |0
+<U70A0> \x99\x70 |0
+<U70A1> \xCF\xB3 |0
+<U70A3> \x91\xEB |0
+<U70A4> \xAC\xB7 |0
+<U70A5> \x97\x70 |0
+<U70A6> \x98\x6F |0
+<U70A7> \xFD\xE2 |0
+<U70A9> \xCF\xB6 |0
+<U70AB> \xAC\xAF |0
+<U70AC> \xAC\xB2 |0
+<U70AD> \xAC\xB4 |0
+<U70AE> \xAC\xB6 |0
+<U70AF> \xAC\xB3 |0
+<U70B0> \xCF\xB2 |0
+<U70B1> \xCF\xB1 |0
+<U70B3> \xAC\xB1 |0
+<U70B4> \xCF\xB4 |0
+<U70B5> \xCF\xB5 |0
+<U70B7> \xCF\xAE |0
+<U70B8> \xAC\xB5 |0
+<U70B9> \x98\xF2 |0
+<U70BA> \xAC\xB0 |0
+<U70BB> \x9A\xFC |0
+<U70BC> \x89\x6C |0
+<U70BD> \xFD\xFD |0
+<U70BE> \xCF\xB0 |0
+<U70C0> \x99\x5E |0
+<U70C4> \x95\xBD |0
+<U70C5> \xD2\x77 |0
+<U70C6> \xD2\x78 |0
+<U70C7> \xD2\x79 |0
+<U70C8> \xAF\x50 |0
+<U70CA> \xAF\x4C |0
+<U70CB> \xD2\x6E |0
+<U70CC> \xFD\xE4 |0
+<U70CD> \xD2\x76 |0
+<U70CE> \xD2\x7B |0
+<U70CF> \xAF\x51 |0
+<U70D0> \x91\xE6 |0
+<U70D1> \xD2\x6C |0
+<U70D2> \xD2\x72 |0
+<U70D3> \xD2\x6B |0
+<U70D4> \xD2\x75 |0
+<U70D5> \xFD\xE5 |0
+<U70D6> \xFD\xE6 |0
+<U70D7> \xD2\x71 |0
+<U70D8> \xAF\x4D |0
+<U70D9> \xAF\x4F |0
+<U70DA> \xD2\x7A |0
+<U70DC> \xD2\x6A |0
+<U70DD> \xD2\x6D |0
+<U70DE> \xD2\x73 |0
+<U70DF> \xFD\xE7 |0
+<U70E0> \xD2\x74 |0
+<U70E1> \xD2\x7C |0
+<U70E2> \xD2\x70 |0
+<U70E4> \xAF\x4E |0
+<U70EF> \xB2\x6D |0
+<U70F0> \xD6\x4E |0
+<U70F1> \x94\x54 |0
+<U70F3> \xD6\x50 |0
+<U70F4> \xD6\x4C |0
+<U70F5> \x99\xB8 |0
+<U70F6> \xD6\x58 |0
+<U70F7> \xD6\x4A |0
+<U70F8> \xD6\x57 |0
+<U70F9> \xB2\x69 |0
+<U70FA> \xD6\x48 |0
+<U70FB> \xDA\x5B |0
+<U70FC> \xD6\x52 |0
+<U70FD> \xB2\x6C |0
+<U70FE> \x97\xE9 |0
+<U70FF> \xD6\x53 |0
+<U7100> \xD6\x56 |0
+<U7102> \xD6\x5A |0
+<U7104> \xD6\x4F |0
+<U7105> \x93\x46 |0
+<U7106> \xD6\x54 |0
+<U7109> \xB2\x6A |0
+<U710A> \xB2\x6B |0
+<U710B> \xD6\x59 |0
+<U710C> \xD6\x4D |0
+<U710D> \xD6\x49 |0
+<U710E> \xD6\x5B |0
+<U7110> \xD6\x51 |0
+<U7113> \xD6\x55 |0
+<U7117> \xD6\x4B |0
+<U7119> \xB5\x48 |0
+<U711A> \xB5\x49 |0
+<U711B> \xDA\x65 |0
+<U711C> \xB5\x4F |0
+<U711D> \x98\x63 |0
+<U711E> \xDA\x59 |0
+<U711F> \xDA\x62 |0
+<U7120> \xDA\x58 |0
+<U7121> \xB5\x4C |0
+<U7122> \xDA\x60 |0
+<U7123> \xDA\x5E |0
+<U7125> \xDA\x5F |0
+<U7126> \xB5\x4A |0
+<U7128> \xDA\x63 |0
+<U7129> \x95\xBC |0
+<U712B> \xFD\xED |0
+<U712C> \xFD\xF7 |0
+<U712E> \xDA\x5C |0
+<U712F> \xDA\x5A |0
+<U7130> \xB5\x4B |0
+<U7131> \xDA\x5D |0
+<U7132> \xDA\x61 |0
+<U7133> \x98\x70 |0
+<U7134> \x96\xF6 |0
+<U7135> \x8E\xA9 |0
+<U7136> \xB5\x4D |0
+<U713A> \xDA\x64 |0
+<U713B> \x94\x51 |0
+<U713E> \x8E\x43 |0
+<U7140> \x8B\x5A |0
+<U7141> \xDE\x70 |0
+<U7142> \xDE\x77 |0
+<U7143> \xDE\x79 |0
+<U7144> \xDE\xA1 |0
+<U7145> \xFD\xEE |0
+<U7146> \xB7\xDA |0
+<U7147> \xDE\x6B |0
+<U7149> \xB7\xD2 |0
+<U714A> \xFD\xF0 |0
+<U714B> \xDE\x7A |0
+<U714C> \xB7\xD7 |0
+<U714D> \xDE\xA2 |0
+<U714E> \xB7\xCE |0
+<U714F> \xFD\xF4 |0
+<U7150> \xDE\x7D |0
+<U7151> \x9B\xF5 |0
+<U7152> \xDE\x6D |0
+<U7153> \xDE\x7E |0
+<U7154> \xDE\x6C |0
+<U7156> \xB7\xDC |0
+<U7158> \xDE\x78 |0
+<U7159> \xB7\xCF |0
+<U715A> \xDE\xA3 |0
+<U715C> \xB7\xD4 |0
+<U715D> \xDE\x71 |0
+<U715E> \xB7\xD9 |0
+<U715F> \xDE\x7C |0
+<U7160> \xDE\x6F |0
+<U7161> \xDE\x76 |0
+<U7162> \xDE\x72 |0
+<U7163> \xDE\x6E |0
+<U7164> \xB7\xD1 |0
+<U7165> \xB7\xD8 |0
+<U7166> \xB7\xD6 |0
+<U7167> \xB7\xD3 |0
+<U7168> \xB7\xDB |0
+<U7169> \xB7\xD0 |0
+<U716A> \xDE\x75 |0
+<U716B> \x97\x7E |0
+<U716C> \xB7\xD5 |0
+<U716E> \xB5\x4E |0
+<U7170> \xDE\x7B |0
+<U7171> \x9B\xD5 |0
+<U7172> \xDE\x73 |0
+<U7173> \x9A\xC3 |0
+<U7175> \x97\xC8 |0
+<U7176> \xA0\xDB |0
+<U7177> \x91\xD0 |0
+<U7178> \xDE\x74 |0
+<U717A> \x9F\xE4 |0
+<U717B> \xE2\xC1 |0
+<U717C> \x8F\xDD |0
+<U717D> \xBA\xB4 |0
+<U717E> \x91\xE9 |0
+<U7180> \xE2\xBD |0
+<U7181> \xE2\xC3 |0
+<U7182> \xE2\xBF |0
+<U7184> \xBA\xB6 |0
+<U7185> \xE2\xBE |0
+<U7186> \xE2\xC2 |0
+<U7187> \xE2\xBA |0
+<U7188> \x98\xE0 |0
+<U7189> \xE2\xBC |0
+<U718A> \xBA\xB5 |0
+<U718C> \x92\xCA |0
+<U718E> \x98\x57 |0
+<U718F> \xE2\xC0 |0
+<U7190> \xE2\xBB |0
+<U7192> \xBA\xB7 |0
+<U7194> \xBA\xB2 |0
+<U7196> \xFD\xEB |0
+<U7197> \xE2\xC4 |0
+<U7198> \x9B\x49 |0
+<U7199> \xBA\xB3 |0
+<U719A> \xE6\x67 |0
+<U719B> \xE6\x64 |0
+<U719C> \xE6\x70 |0
+<U719D> \xE6\x6A |0
+<U719E> \xE6\x6C |0
+<U719F> \xBC\xF4 |0
+<U71A0> \xE6\x66 |0
+<U71A1> \xE6\x6E |0
+<U71A2> \x9D\x76 |0
+<U71A3> \x9E\xAF |0
+<U71A4> \xE6\x6D |0
+<U71A5> \xE6\x6B |0
+<U71A7> \xE6\x71 |0
+<U71A8> \xBC\xF7 |0
+<U71A9> \xE6\x68 |0
+<U71AA> \xE6\x6F |0
+<U71AC> \xBC\xF5 |0
+<U71AD> \x9C\xCC |0
+<U71AF> \xE6\x63 |0
+<U71B0> \xE6\x65 |0
+<U71B1> \xBC\xF6 |0
+<U71B2> \xE6\x62 |0
+<U71B3> \xE6\x72 |0
+<U71B4> \xFD\xEA |0
+<U71B5> \xE6\x69 |0
+<U71B7> \x8D\xF1 |0
+<U71B8> \xEA\x4A |0
+<U71B9> \xBF\x51 |0
+<U71BA> \xFD\xFB |0
+<U71BC> \xEA\x55 |0
+<U71BD> \xEA\x53 |0
+<U71BE> \xBF\x4B |0
+<U71BF> \xEA\x49 |0
+<U71C0> \xEA\x4C |0
+<U71C1> \xEA\x4D |0
+<U71C2> \xEA\x48 |0
+<U71C3> \xBF\x55 |0
+<U71C4> \xBF\x56 |0
+<U71C5> \xEA\x47 |0
+<U71C6> \xEA\x56 |0
+<U71C7> \xEA\x51 |0
+<U71C8> \xBF\x4F |0
+<U71C9> \xBF\x4C |0
+<U71CA> \xEA\x50 |0
+<U71CB> \xEA\x4E |0
+<U71CE> \xBF\x52 |0
+<U71CF> \xEA\x52 |0
+<U71D0> \xBF\x4D |0
+<U71D1> \x8E\x53 |0
+<U71D2> \xBF\x4E |0
+<U71D4> \xEA\x4F |0
+<U71D5> \xBF\x50 |0
+<U71D6> \xEA\x4B |0
+<U71D8> \xEA\x54 |0
+<U71D9> \xBF\x53 |0
+<U71DA> \xEA\x57 |0
+<U71DB> \xEA\x58 |0
+<U71DC> \xBF\x54 |0
+<U71DD> \xFA\xCF |0
+<U71DF> \xC0\xE7 |0
+<U71E0> \xC0\xEE |0
+<U71E1> \xED\x5C |0
+<U71E2> \xED\x62 |0
+<U71E4> \xED\x60 |0
+<U71E5> \xC0\xEA |0
+<U71E6> \xC0\xE9 |0
+<U71E7> \xC0\xE6 |0
+<U71E8> \xED\x5E |0
+<U71EB> \x96\xF9 |0
+<U71EC> \xC0\xEC |0
+<U71ED> \xC0\xEB |0
+<U71EE> \xC0\xE8 |0
+<U71F0> \xED\x61 |0
+<U71F1> \xED\x5D |0
+<U71F2> \xED\x5F |0
+<U71F4> \xC0\xED |0
+<U71F5> \x98\xBF |0
+<U71F6> \x9E\x49 |0
+<U71F8> \xC2\x77 |0
+<U71F9> \xEF\xFB |0
+<U71FB> \xC2\x74 |0
+<U71FC> \xC2\x75 |0
+<U71FD> \xEF\xFD |0
+<U71FE> \xC2\x76 |0
+<U71FF> \xEF\xFA |0
+<U7201> \xEF\xF9 |0
+<U7202> \xF2\x6C |0
+<U7203> \xEF\xFC |0
+<U7205> \xF2\x6D |0
+<U7206> \xC3\x7A |0
+<U7207> \xF2\x6B |0
+<U7209> \x9B\xCA |0
+<U720A> \xF2\x6A |0
+<U720C> \xF2\x69 |0
+<U720D> \xC3\x7B |0
+<U720E> \xFD\xFE |0
+<U720F> \x92\xDC |0
+<U7210> \xC4\x6C |0
+<U7213> \xF4\x6A |0
+<U7214> \xF4\x6B |0
+<U7215> \xFE\x41 |0
+<U7216> \x91\xCC |0
+<U7217> \x91\xE2 |0
+<U7219> \xF5\xDC |0
+<U721A> \xF5\xDB |0
+<U721B> \xC4\xEA |0
+<U721D> \xF5\xDA |0
+<U721E> \xF6\xEC |0
+<U721F> \xF6\xED |0
+<U7222> \xF7\xE6 |0
+<U7223> \xF8\xB1 |0
+<U7224> \xFE\x44 |0
+<U7226> \xF8\xF6 |0
+<U7227> \xF9\xBC |0
+<U7228> \xC6\x79 |0
+<U7229> \xF9\xC6 |0
+<U722A> \xA4\xF6 |0
+<U722B> \x8B\xD3 |0
+<U722C> \xAA\xA6 |0
+<U722D> \xAA\xA7 |0
+<U722E> \xFE\x47 |0
+<U7230> \xAC\xB8 |0
+<U7235> \xC0\xEF |0
+<U7236> \xA4\xF7 |0
+<U7238> \xAA\xA8 |0
+<U7239> \xAF\x52 |0
+<U723A> \xB7\xDD |0
+<U723B> \xA4\xF8 |0
+<U723D> \xB2\x6E |0
+<U723E> \xBA\xB8 |0
+<U723F> \xC9\x62 |0
+<U7240> \xFE\x48 |0
+<U7241> \xCF\xB7 |0
+<U7242> \xD2\x7D |0
+<U7244> \xE2\xC5 |0
+<U7246> \xC0\xF0 |0
+<U7247> \xA4\xF9 |0
+<U7248> \xAA\xA9 |0
+<U7249> \xCF\xB8 |0
+<U724A> \xCF\xB9 |0
+<U724B> \xDA\x66 |0
+<U724C> \xB5\x50 |0
+<U724F> \xDE\xA4 |0
+<U7250> \x94\x55 |0
+<U7252> \xB7\xDE |0
+<U7253> \xE2\xC6 |0
+<U7255> \xFE\x4B |0
+<U7256> \xBC\xF8 |0
+<U7257> \xFE\x4C |0
+<U7258> \xC3\x7C |0
+<U7259> \xA4\xFA |0
+<U725A> \xDA\x67 |0
+<U725B> \xA4\xFB |0
+<U725C> \x8D\xBF |0
+<U725D> \xA6\xC9 |0
+<U725E> \xCA\x42 |0
+<U725F> \xA6\xC8 |0
+<U7260> \xA8\x65 |0
+<U7261> \xA8\x64 |0
+<U7262> \xA8\x63 |0
+<U7263> \xCB\x60 |0
+<U7266> \x9E\x78 |0
+<U7267> \xAA\xAA |0
+<U7269> \xAA\xAB |0
+<U726A> \xCD\x5B |0
+<U726C> \xCF\xBA |0
+<U726E> \xCF\xBD |0
+<U726F> \xAC\xBA |0
+<U7270> \xCF\xBB |0
+<U7272> \xAC\xB9 |0
+<U7273> \xCF\xBC |0
+<U7274> \xAC\xBB |0
+<U7276> \xD2\xA2 |0
+<U7277> \xD2\xA1 |0
+<U7278> \xD2\x7E |0
+<U7279> \xAF\x53 |0
+<U727B> \xD6\x5D |0
+<U727C> \xD6\x5E |0
+<U727D> \xB2\x6F |0
+<U727E> \xD6\x5C |0
+<U727F> \xD6\x5F |0
+<U7280> \xB5\x52 |0
+<U7281> \xB2\x70 |0
+<U7282> \xFE\x51 |0
+<U7284> \xB5\x51 |0
+<U7285> \xDA\x6B |0
+<U7286> \xDA\x6A |0
+<U7287> \x94\x56 |0
+<U7288> \xDA\x68 |0
+<U7289> \xDA\x69 |0
+<U728B> \xDA\x6C |0
+<U728C> \xDE\xA6 |0
+<U728D> \xDE\xA5 |0
+<U728E> \xDE\xA9 |0
+<U728F> \x9D\x61 |0
+<U7290> \xDE\xA8 |0
+<U7291> \xDE\xA7 |0
+<U7292> \xBA\xB9 |0
+<U7293> \xE2\xC9 |0
+<U7294> \x94\x57 |0
+<U7295> \xE2\xC8 |0
+<U7296> \xBA\xBA |0
+<U7297> \xE2\xC7 |0
+<U7298> \xE6\x73 |0
+<U729A> \xE6\x74 |0
+<U729B> \xBC\xF9 |0
+<U729D> \xEA\x59 |0
+<U729E> \xEA\x5A |0
+<U729F> \x99\x66 |0
+<U72A1> \xF2\x72 |0
+<U72A2> \xC3\x7D |0
+<U72A3> \xF2\x71 |0
+<U72A4> \xF2\x70 |0
+<U72A5> \xF2\x6E |0
+<U72A6> \xF2\x6F |0
+<U72A7> \xC4\xEB |0
+<U72A8> \xF4\x6C |0
+<U72A9> \xF6\xEE |0
+<U72AA> \xF8\xF7 |0
+<U72AC> \xA4\xFC |0
+<U72AD> \x8B\xD5 |0
+<U72AE> \xC9\xA5 |0
+<U72AF> \xA5\xC7 |0
+<U72B0> \xC9\xA6 |0
+<U72B2> \xA0\x69 |0
+<U72B4> \xCA\x43 |0
+<U72B5> \xCA\x44 |0
+<U72BA> \xCB\x66 |0
+<U72BD> \xCB\x62 |0
+<U72BF> \xCB\x61 |0
+<U72C0> \xAA\xAC |0
+<U72C1> \xCB\x65 |0
+<U72C2> \xA8\x67 |0
+<U72C3> \xCB\x63 |0
+<U72C4> \xA8\x66 |0
+<U72C5> \xCB\x67 |0
+<U72C6> \xCB\x64 |0
+<U72C9> \xCD\x5F |0
+<U72CA> \xCF\xBE |0
+<U72CB> \xCD\x5D |0
+<U72CC> \xCD\x64 |0
+<U72CD> \x98\xB4 |0
+<U72CE> \xAA\xAD |0
+<U72D0> \xAA\xB0 |0
+<U72D1> \xCD\x65 |0
+<U72D2> \xCD\x61 |0
+<U72D4> \xCD\x62 |0
+<U72D6> \xCD\x5C |0
+<U72D7> \xAA\xAF |0
+<U72D8> \xCD\x5E |0
+<U72D9> \xAA\xAE |0
+<U72DA> \xCD\x63 |0
+<U72DC> \xCD\x60 |0
+<U72DF> \xCF\xC2 |0
+<U72E0> \xAC\xBD |0
+<U72E1> \xAC\xBE |0
+<U72E2> \xA0\x49 |0
+<U72E3> \xCF\xC5 |0
+<U72E4> \xCF\xBF |0
+<U72E6> \xCF\xC4 |0
+<U72E8> \xCF\xC0 |0
+<U72E9> \xAC\xBC |0
+<U72EA> \xCF\xC3 |0
+<U72EB> \xCF\xC1 |0
+<U72F3> \xD2\xA8 |0
+<U72F4> \xD2\xA5 |0
+<U72F6> \xD2\xA7 |0
+<U72F7> \xAF\x58 |0
+<U72F8> \xAF\x57 |0
+<U72F9> \xAF\x55 |0
+<U72FA> \xD2\xA4 |0
+<U72FB> \xD2\xA9 |0
+<U72FC> \xAF\x54 |0
+<U72FD> \xAF\x56 |0
+<U72FE> \xD2\xA6 |0
+<U72FF> \xD6\x67 |0
+<U7300> \xD2\xA3 |0
+<U7301> \xD2\xAA |0
+<U7302> \xA0\x4C |0
+<U7304> \x9E\x65 |0
+<U7307> \xD6\x62 |0
+<U7308> \xD6\x66 |0
+<U730A> \xD6\x65 |0
+<U730B> \xDA\x6E |0
+<U730C> \xDA\x79 |0
+<U730F> \xD6\x68 |0
+<U7310> \x98\xB5 |0
+<U7311> \xD6\x63 |0
+<U7312> \xDA\x6D |0
+<U7313> \xB2\x74 |0
+<U7316> \xB2\x73 |0
+<U7317> \xD6\x61 |0
+<U7318> \xD6\x64 |0
+<U7319> \xB2\x75 |0
+<U731B> \xB2\x72 |0
+<U731C> \xB2\x71 |0
+<U731D> \xD6\x60 |0
+<U731E> \xD6\x69 |0
+<U7322> \xDA\x70 |0
+<U7323> \xDA\x77 |0
+<U7325> \xB5\x54 |0
+<U7326> \xDA\x76 |0
+<U7327> \xDA\x73 |0
+<U7328> \xFE\x58 |0
+<U7329> \xB5\x56 |0
+<U732A> \x99\x75 |0
+<U732B> \xFE\x53 |0
+<U732C> \xA0\x65 |0
+<U732D> \xDA\x75 |0
+<U732E> \xFE\x59 |0
+<U7330> \xDA\x6F |0
+<U7331> \xDA\x71 |0
+<U7332> \xDA\x74 |0
+<U7333> \xDA\x72 |0
+<U7334> \xB5\x55 |0
+<U7335> \xDA\x78 |0
+<U7336> \xB5\x53 |0
+<U7337> \xB7\xDF |0
+<U7338> \x98\xB7 |0
+<U7339> \x98\xB8 |0
+<U733A> \xDE\xAD |0
+<U733B> \xDE\xAC |0
+<U733C> \xDE\xAA |0
+<U733E> \xB7\xE2 |0
+<U733F> \xB7\xE1 |0
+<U7340> \xDE\xAE |0
+<U7341> \x98\xBA |0
+<U7342> \xDE\xAB |0
+<U7343> \xE2\xCA |0
+<U7344> \xBA\xBB |0
+<U7345> \xB7\xE0 |0
+<U7348> \x98\xBB |0
+<U7349> \xDE\xB0 |0
+<U734A> \xDE\xAF |0
+<U734C> \xE2\xCD |0
+<U734D> \xE2\xCB |0
+<U734E> \xBC\xFA |0
+<U734F> \x9F\xBC |0
+<U7350> \xBA\xBC |0
+<U7351> \xE2\xCC |0
+<U7352> \xE6\x76 |0
+<U7357> \xBC\xFB |0
+<U7358> \xE6\x75 |0
+<U7359> \xE6\x7E |0
+<U735A> \xE6\x7D |0
+<U735B> \xE6\x7B |0
+<U735D> \xE6\x7A |0
+<U735E> \xE6\x77 |0
+<U735F> \xE6\x78 |0
+<U7360> \xE6\x79 |0
+<U7361> \xE6\x7C |0
+<U7362> \xE6\xA1 |0
+<U7365> \xEA\x5F |0
+<U7366> \xEA\x5C |0
+<U7367> \xEA\x5D |0
+<U7368> \xBF\x57 |0
+<U7369> \xEA\x5B |0
+<U736A> \xEA\x61 |0
+<U736B> \xEA\x60 |0
+<U736C> \xEA\x5E |0
+<U736E> \xED\x64 |0
+<U736F> \xED\x65 |0
+<U7370> \xC0\xF1 |0
+<U7371> \xA0\x4A |0
+<U7372> \xC0\xF2 |0
+<U7373> \xED\x63 |0
+<U7374> \x9E\xC7 |0
+<U7375> \xC2\x79 |0
+<U7376> \xEF\xFE |0
+<U7377> \xC2\x78 |0
+<U7378> \xC3\x7E |0
+<U737A> \xC3\xA1 |0
+<U737B> \xC4\x6D |0
+<U737C> \xF4\x6E |0
+<U737D> \xF4\x6D |0
+<U737E> \xF5\xDD |0
+<U737F> \xF6\xEF |0
+<U7380> \xC5\x7A |0
+<U7381> \xF7\xE8 |0
+<U7382> \xF7\xE7 |0
+<U7383> \xF7\xE9 |0
+<U7384> \xA5\xC8 |0
+<U7385> \xCF\xC6 |0
+<U7386> \xAF\x59 |0
+<U7387> \xB2\x76 |0
+<U7388> \xD6\x6A |0
+<U7389> \xA5\xC9 |0
+<U738A> \xC9\xA7 |0
+<U738B> \xA4\xFD |0
+<U738E> \xCA\x45 |0
+<U738F> \x98\xAE |0
+<U7392> \xCB\x6C |0
+<U7393> \xCB\x6A |0
+<U7394> \xCB\x6B |0
+<U7395> \xCB\x68 |0
+<U7396> \xA8\x68 |0
+<U7397> \xCB\x69 |0
+<U7398> \x92\xD6 |0
+<U739C> \xFA\xE1 |0
+<U739D> \xCD\x6D |0
+<U739E> \x91\xD4 |0
+<U739F> \xAA\xB3 |0
+<U73A0> \xCD\x6B |0
+<U73A1> \xCD\x67 |0
+<U73A2> \xCD\x6A |0
+<U73A4> \xCD\x66 |0
+<U73A5> \xAA\xB5 |0
+<U73A6> \xCD\x69 |0
+<U73A7> \xFA\xDE |0
+<U73A8> \xAA\xB2 |0
+<U73A9> \xAA\xB1 |0
+<U73AA> \xFE\x5B |0
+<U73AB> \xAA\xB4 |0
+<U73AC> \xCD\x6C |0
+<U73AD> \xCD\x68 |0
+<U73B2> \xAC\xC2 |0
+<U73B3> \xAC\xC5 |0
+<U73B4> \xCF\xCE |0
+<U73B5> \xCF\xCD |0
+<U73B6> \xCF\xCC |0
+<U73B7> \xAC\xBF |0
+<U73B8> \xCF\xD5 |0
+<U73B9> \xCF\xCB |0
+<U73BB> \xAC\xC1 |0
+<U73BC> \xD2\xAF |0
+<U73BE> \xCF\xD2 |0
+<U73BF> \xCF\xD0 |0
+<U73C0> \xAC\xC4 |0
+<U73C2> \xCF\xC8 |0
+<U73C3> \xCF\xD3 |0
+<U73C5> \xCF\xCA |0
+<U73C6> \xCF\xD4 |0
+<U73C7> \xCF\xD1 |0
+<U73C8> \xCF\xC9 |0
+<U73C9> \xFE\x5E |0
+<U73CA> \xAC\xC0 |0
+<U73CB> \xCF\xD6 |0
+<U73CC> \xCF\xC7 |0
+<U73CD> \xAC\xC3 |0
+<U73CE> \xFB\xD7 |0
+<U73CF> \xFE\x5A |0
+<U73D0> \x94\xC5 |0
+<U73D2> \xD2\xB4 |0
+<U73D3> \xD2\xAB |0
+<U73D4> \xD2\xB6 |0
+<U73D5> \xFA\xCA |0
+<U73D6> \xD2\xAE |0
+<U73D7> \xD2\xB9 |0
+<U73D8> \xD2\xBA |0
+<U73D9> \xD2\xAC |0
+<U73DA> \xD2\xB8 |0
+<U73DB> \xD2\xB5 |0
+<U73DC> \xD2\xB3 |0
+<U73DD> \xD2\xB7 |0
+<U73DE> \xAF\x5F |0
+<U73E0> \xAF\x5D |0
+<U73E1> \x98\xC1 |0
+<U73E2> \x97\x5C |0
+<U73E3> \xD2\xB1 |0
+<U73E4> \xFE\x74 |0
+<U73E5> \xD2\xAD |0
+<U73E6> \x97\x73 |0
+<U73E7> \xD2\xB0 |0
+<U73E8> \xD2\xBB |0
+<U73E9> \xD2\xB2 |0
+<U73EA> \xAF\x5E |0
+<U73EB> \xCF\xCF |0
+<U73ED> \xAF\x5A |0
+<U73EE> \xAF\x5C |0
+<U73EF> \xFA\x46 |0
+<U73F3> \x97\x64 |0
+<U73F4> \xD6\x78 |0
+<U73F5> \xD6\x6D |0
+<U73F6> \xD6\x6B |0
+<U73F7> \xFE\x68 |0
+<U73F8> \xD6\x6C |0
+<U73F9> \x96\x4E |0
+<U73FA> \xD6\x73 |0
+<U73FB> \x97\x65 |0
+<U73FC> \xD6\x74 |0
+<U73FD> \xD6\x70 |0
+<U73FE> \xB2\x7B |0
+<U73FF> \xD6\x75 |0
+<U7400> \xD6\x72 |0
+<U7401> \xD6\x6F |0
+<U7403> \xB2\x79 |0
+<U7404> \xD6\x6E |0
+<U7405> \xB2\x77 |0
+<U7406> \xB2\x7A |0
+<U7407> \xD6\x71 |0
+<U7408> \xD6\x79 |0
+<U7409> \xAF\x5B |0
+<U740A> \xB2\x78 |0
+<U740B> \xD6\x77 |0
+<U740C> \xD6\x76 |0
+<U740D> \xB2\x7C |0
+<U7411> \x89\xA1 |0
+<U7412> \x95\xFA |0
+<U7414> \x92\xD4 |0
+<U7415> \xFE\x69 |0
+<U7416> \xDA\x7E |0
+<U7417> \xFB\x45 |0
+<U7419> \x98\xC8 |0
+<U741A> \xDA\xA1 |0
+<U741B> \xB5\x60 |0
+<U741C> \x90\xEF |0
+<U741D> \xDA\xA7 |0
+<U741E> \x98\xC9 |0
+<U741F> \x98\xCA |0
+<U7420> \xDA\xA9 |0
+<U7421> \xDA\xA2 |0
+<U7422> \xB5\x5A |0
+<U7423> \xDA\xA6 |0
+<U7424> \xDA\xA5 |0
+<U7425> \xB5\x5B |0
+<U7426> \xB5\x61 |0
+<U7428> \xB5\x62 |0
+<U7429> \xDA\xA8 |0
+<U742A> \xB5\x58 |0
+<U742B> \xDA\x7D |0
+<U742C> \xDA\x7B |0
+<U742D> \xDA\xA3 |0
+<U742E> \xDA\x7A |0
+<U742F> \xB5\x5F |0
+<U7430> \xDA\x7C |0
+<U7431> \xDA\xA4 |0
+<U7432> \xDA\xAA |0
+<U7433> \xB5\x59 |0
+<U7434> \xB5\x5E |0
+<U7435> \xB5\x5C |0
+<U7436> \xB5\x5D |0
+<U7437> \x94\x6D |0
+<U7438> \x94\xB7 |0
+<U7439> \xFE\x6C |0
+<U743A> \xB5\x57 |0
+<U743C> \x94\x6B |0
+<U743F> \xB7\xE9 |0
+<U7440> \xDE\xB7 |0
+<U7441> \xB7\xE8 |0
+<U7442> \xDE\xBB |0
+<U7443> \x92\xFC |0
+<U7444> \xDE\xB1 |0
+<U7445> \x95\xEB |0
+<U7446> \xDE\xBC |0
+<U7447> \xFE\x73 |0
+<U7448> \x97\x6E |0
+<U7449> \xFE\x5F |0
+<U744A> \xDE\xB2 |0
+<U744B> \xDE\xB3 |0
+<U744D> \xDE\xBD |0
+<U744E> \xDE\xBA |0
+<U744F> \xDE\xB8 |0
+<U7450> \xDE\xB9 |0
+<U7451> \xDE\xB5 |0
+<U7452> \xDE\xB4 |0
+<U7453> \xFD\xBD |0
+<U7454> \xDE\xBE |0
+<U7455> \xB7\xE5 |0
+<U7456> \x92\xD5 |0
+<U7457> \xDE\xB6 |0
+<U7459> \xB7\xEA |0
+<U745A> \xB7\xE4 |0
+<U745B> \xB7\xEB |0
+<U745C> \xB7\xEC |0
+<U745D> \xFE\xB9 |0
+<U745E> \xB7\xE7 |0
+<U745F> \xB7\xE6 |0
+<U7460> \xFE\x71 |0
+<U7462> \xE2\xCE |0
+<U7463> \xBA\xBE |0
+<U7464> \xBA\xBD |0
+<U7465> \xFB\xBB |0
+<U7467> \xE2\xD3 |0
+<U7468> \x94\x7A |0
+<U7469> \xBC\xFC |0
+<U746A> \xBA\xBF |0
+<U746B> \x95\xFB |0
+<U746C> \xFE\x77 |0
+<U746D> \xBA\xC1 |0
+<U746E> \xE2\xD4 |0
+<U746F> \xB7\xE3 |0
+<U7470> \xBA\xC0 |0
+<U7471> \xE2\xD0 |0
+<U7472> \xE2\xD2 |0
+<U7473> \xE2\xCF |0
+<U7474> \xFE\x79 |0
+<U7475> \xE2\xD1 |0
+<U7476> \xFE\x75 |0
+<U7479> \xE6\xAB |0
+<U747A> \x94\x5D |0
+<U747C> \xE6\xAA |0
+<U747D> \xE6\xA7 |0
+<U747E> \xBD\x40 |0
+<U747F> \xEA\x62 |0
+<U7480> \xBD\x41 |0
+<U7481> \xE6\xA6 |0
+<U7482> \xFE\x7C |0
+<U7483> \xBC\xFE |0
+<U7485> \xE6\xA8 |0
+<U7486> \xE6\xA5 |0
+<U7487> \xE6\xA2 |0
+<U7488> \xE6\xA9 |0
+<U7489> \xE6\xA3 |0
+<U748A> \xE6\xA4 |0
+<U748B> \xBC\xFD |0
+<U748C> \x93\x44 |0
+<U748D> \x8E\xA6 |0
+<U7490> \xED\x69 |0
+<U7492> \xEA\x66 |0
+<U7494> \xEA\x65 |0
+<U7495> \xEA\x67 |0
+<U7497> \xED\x66 |0
+<U7498> \xBF\x5A |0
+<U7499> \x92\xD3 |0
+<U749A> \xEA\x63 |0
+<U749B> \x94\xB8 |0
+<U749C> \xBF\x58 |0
+<U749E> \xBF\x5C |0
+<U749F> \xBF\x5B |0
+<U74A0> \xEA\x64 |0
+<U74A1> \xEA\x68 |0
+<U74A3> \xBF\x59 |0
+<U74A4> \xFC\x71 |0
+<U74A5> \xED\x6D |0
+<U74A6> \xC0\xF5 |0
+<U74A7> \xC2\x7A |0
+<U74A8> \xC0\xF6 |0
+<U74A9> \xC0\xF3 |0
+<U74AA> \xED\x6A |0
+<U74AB> \xED\x68 |0
+<U74AD> \xED\x6B |0
+<U74AF> \xED\x6E |0
+<U74B0> \xC0\xF4 |0
+<U74B1> \xED\x6C |0
+<U74B2> \xED\x67 |0
+<U74B4> \x97\x5E |0
+<U74B5> \xF0\x42 |0
+<U74B6> \xF0\x45 |0
+<U74B7> \xF2\x75 |0
+<U74B8> \xF0\x40 |0
+<U74BA> \xF4\x6F |0
+<U74BB> \xF0\x46 |0
+<U74BD> \xC3\xA2 |0
+<U74BE> \xF0\x44 |0
+<U74BF> \xC2\x7B |0
+<U74C0> \xF0\x41 |0
+<U74C1> \xF0\x43 |0
+<U74C2> \xF0\x47 |0
+<U74C3> \xF2\x76 |0
+<U74C5> \xF2\x74 |0
+<U74C8> \xFE\xA7 |0
+<U74CA> \xC3\xA3 |0
+<U74CB> \xF2\x73 |0
+<U74CC> \x94\x6A |0
+<U74CF> \xC4\x6E |0
+<U74D0> \x93\xE3 |0
+<U74D3> \x98\xCF |0
+<U74D4> \xC4\xED |0
+<U74D5> \xF6\xF1 |0
+<U74D6> \xC4\xEC |0
+<U74D7> \xF6\xF3 |0
+<U74D8> \xF6\xF0 |0
+<U74D9> \xF6\xF2 |0
+<U74DA> \xC5\xD0 |0
+<U74DB> \xF8\xB2 |0
+<U74DC> \xA5\xCA |0
+<U74DD> \xCD\x6E |0
+<U74DE> \xD2\xBC |0
+<U74DF> \xD2\xBD |0
+<U74E0> \xB2\x7D |0
+<U74E1> \xDE\xBF |0
+<U74E2> \xBF\x5D |0
+<U74E3> \xC3\xA4 |0
+<U74E4> \xC5\x7B |0
+<U74E5> \xF8\xB3 |0
+<U74E6> \xA5\xCB |0
+<U74E7> \xA0\xD9 |0
+<U74E8> \xCD\x6F |0
+<U74E9> \xA2\x60 |0
+<U74EC> \xCF\xD7 |0
+<U74EE> \xCF\xD8 |0
+<U74F0> \xA0\xBF |0
+<U74F1> \xA0\x4D |0
+<U74F2> \xA0\xB8 |0
+<U74F4> \xD2\xBE |0
+<U74F5> \xD2\xBF |0
+<U74F6> \xB2\x7E |0
+<U74F7> \xB2\xA1 |0
+<U74F8> \xA0\xCE |0
+<U74FB> \xDA\xAB |0
+<U74FD> \xDE\xC2 |0
+<U74FE> \xDE\xC1 |0
+<U74FF> \xDE\xC0 |0
+<U7500> \xE2\xD5 |0
+<U7502> \xE2\xD6 |0
+<U7503> \xE2\xD7 |0
+<U7504> \xBA\xC2 |0
+<U7505> \xA0\xB7 |0
+<U7507> \xE6\xAD |0
+<U7508> \xE6\xAC |0
+<U750B> \xEA\x69 |0
+<U750C> \xBF\x5E |0
+<U750D> \xBF\x5F |0
+<U750E> \xFE\xA9 |0
+<U750F> \xED\x72 |0
+<U7510> \xED\x6F |0
+<U7511> \xED\x70 |0
+<U7512> \xED\x71 |0
+<U7513> \xF0\x49 |0
+<U7514> \xF0\x48 |0
+<U7515> \xC2\x7C |0
+<U7516> \xF2\x77 |0
+<U7517> \xF5\xDE |0
+<U7518> \xA5\xCC |0
+<U7519> \x89\xC3 |0
+<U751A> \xAC\xC6 |0
+<U751C> \xB2\xA2 |0
+<U751D> \xDE\xC3 |0
+<U751E> \xFE\xAB |0
+<U751F> \xA5\xCD |0
+<U7521> \xD2\xC0 |0
+<U7522> \xB2\xA3 |0
+<U7525> \xB5\x63 |0
+<U7526> \xB5\x64 |0
+<U7528> \xA5\xCE |0
+<U7529> \xA5\xCF |0
+<U752A> \xCA\x46 |0
+<U752B> \xA8\x6A |0
+<U752C> \xA8\x69 |0
+<U752D> \xAC\xC7 |0
+<U752E> \xCF\xD9 |0
+<U752F> \xDA\xAC |0
+<U7530> \xA5\xD0 |0
+<U7531> \xA5\xD1 |0
+<U7532> \xA5\xD2 |0
+<U7533> \xA5\xD3 |0
+<U7534> \x9D\xF4 |0
+<U7535> \x89\x6D |0
+<U7537> \xA8\x6B |0
+<U7538> \xA8\x6C |0
+<U7539> \xCB\x6E |0
+<U753A> \xCB\x6D |0
+<U753B> \x9C\x7B |0
+<U753D> \xAA\xB6 |0
+<U753E> \xCD\x72 |0
+<U753F> \xCD\x70 |0
+<U7540> \xCD\x71 |0
+<U7542> \x98\xD2 |0
+<U7546> \x9F\xA9 |0
+<U7547> \xCF\xDA |0
+<U7548> \xCF\xDB |0
+<U754A> \xFE\xB2 |0
+<U754B> \xAC\xCB |0
+<U754C> \xAC\xC9 |0
+<U754D> \xFE\xB1 |0
+<U754E> \xAC\xCA |0
+<U754F> \xAC\xC8 |0
+<U7551> \x97\xD9 |0
+<U7553> \xA0\xC4 |0
+<U7554> \xAF\x60 |0
+<U7555> \x94\x76 |0
+<U7559> \xAF\x64 |0
+<U755A> \xAF\x63 |0
+<U755B> \xD2\xC1 |0
+<U755C> \xAF\x62 |0
+<U755D> \xAF\x61 |0
+<U755F> \xD2\xC2 |0
+<U7560> \x99\x78 |0
+<U7562> \xB2\xA6 |0
+<U7563> \xD6\x7B |0
+<U7564> \xD6\x7A |0
+<U7565> \xB2\xA4 |0
+<U7566> \xB2\xA5 |0
+<U7567> \xFE\xB3 |0
+<U756A> \xB5\x66 |0
+<U756B> \xB5\x65 |0
+<U756C> \xDA\xAE |0
+<U756D> \x98\xD3 |0
+<U756E> \xFE\xB4 |0
+<U756F> \xDA\xAD |0
+<U7570> \xB2\xA7 |0
+<U7572> \x98\xD4 |0
+<U7576> \xB7\xED |0
+<U7577> \xDE\xC5 |0
+<U7578> \xB7\xEE |0
+<U7579> \xDE\xC4 |0
+<U757A> \x9F\xB9 |0
+<U757D> \xE2\xD8 |0
+<U757E> \xE6\xAE |0
+<U757F> \xBD\x42 |0
+<U7580> \xEA\x6A |0
+<U7583> \x94\x71 |0
+<U7584> \xED\x73 |0
+<U7586> \xC3\xA6 |0
+<U7587> \xC3\xA5 |0
+<U758A> \xC5\x7C |0
+<U758B> \xA5\xD4 |0
+<U758C> \xCD\x73 |0
+<U758D> \x98\xD5 |0
+<U758E> \xFE\xB8 |0
+<U758F> \xB2\xA8 |0
+<U7590> \xE2\xD9 |0
+<U7591> \xBA\xC3 |0
+<U7592> \xC6\xD4 |0
+<U7594> \xCB\x6F |0
+<U7595> \xCB\x70 |0
+<U7598> \xCD\x74 |0
+<U7599> \xAA\xB8 |0
+<U759A> \xAA\xB9 |0
+<U759D> \xAA\xB7 |0
+<U759E> \xFE\xBA |0
+<U75A2> \xAC\xCF |0
+<U75A3> \xAC\xD0 |0
+<U75A4> \xAC\xCD |0
+<U75A5> \xAC\xCE |0
+<U75A7> \xCF\xDC |0
+<U75AA> \xCF\xDD |0
+<U75AB> \xAC\xCC |0
+<U75B0> \xD2\xC3 |0
+<U75B1> \x9E\x5C |0
+<U75B2> \xAF\x68 |0
+<U75B3> \xAF\x69 |0
+<U75B4> \xFE\xBB |0
+<U75B5> \xB2\xAB |0
+<U75B6> \xD2\xC9 |0
+<U75B8> \xAF\x6E |0
+<U75B9> \xAF\x6C |0
+<U75BA> \xD2\xCA |0
+<U75BB> \xD2\xC5 |0
+<U75BC> \xAF\x6B |0
+<U75BD> \xAF\x6A |0
+<U75BE> \xAF\x65 |0
+<U75BF> \xD2\xC8 |0
+<U75C0> \xD2\xC7 |0
+<U75C1> \xD2\xC4 |0
+<U75C2> \xAF\x6D |0
+<U75C3> \xA0\x44 |0
+<U75C4> \xD2\xC6 |0
+<U75C5> \xAF\x66 |0
+<U75C7> \xAF\x67 |0
+<U75C8> \x98\xD7 |0
+<U75CA> \xB2\xAC |0
+<U75CB> \xD6\xA1 |0
+<U75CC> \xD6\xA2 |0
+<U75CD> \xB2\xAD |0
+<U75CE> \xD6\x7C |0
+<U75CF> \xD6\x7E |0
+<U75D0> \xD6\xA4 |0
+<U75D1> \xD6\xA3 |0
+<U75D2> \xD6\x7D |0
+<U75D4> \xB2\xA9 |0
+<U75D5> \xB2\xAA |0
+<U75D7> \xDA\xB6 |0
+<U75D8> \xB5\x6B |0
+<U75D9> \xB5\x6A |0
+<U75DA> \xDA\xB0 |0
+<U75DB> \xB5\x68 |0
+<U75DC> \x98\xD8 |0
+<U75DD> \xDA\xB3 |0
+<U75DE> \xB5\x6C |0
+<U75DF> \xDA\xB4 |0
+<U75E0> \xB5\x6D |0
+<U75E1> \xDA\xB1 |0
+<U75E2> \xB5\x67 |0
+<U75E3> \xB5\x69 |0
+<U75E4> \xDA\xB5 |0
+<U75E6> \xDA\xB2 |0
+<U75E7> \xDA\xAF |0
+<U75ED> \xDE\xD2 |0
+<U75EF> \xDE\xC7 |0
+<U75F0> \xB7\xF0 |0
+<U75F1> \xB7\xF3 |0
+<U75F2> \xB7\xF2 |0
+<U75F3> \xB7\xF7 |0
+<U75F4> \xB7\xF6 |0
+<U75F5> \xDE\xD3 |0
+<U75F6> \xDE\xD1 |0
+<U75F7> \xDE\xCA |0
+<U75F8> \xDE\xCE |0
+<U75F9> \xDE\xCD |0
+<U75FA> \xB7\xF4 |0
+<U75FB> \xDE\xD0 |0
+<U75FC> \xDE\xCC |0
+<U75FD> \xDE\xD4 |0
+<U75FE> \xDE\xCB |0
+<U75FF> \xB7\xF5 |0
+<U7600> \xB7\xEF |0
+<U7601> \xB7\xF1 |0
+<U7602> \xFE\xBC |0
+<U7603> \xDE\xC9 |0
+<U7607> \x9F\xFE |0
+<U7608> \xE2\xDB |0
+<U7609> \xBA\xC7 |0
+<U760A> \xE2\xDF |0
+<U760B> \xBA\xC6 |0
+<U760C> \xE2\xDC |0
+<U760D> \xBA\xC5 |0
+<U760F> \xDE\xC8 |0
+<U7610> \xDE\xCF |0
+<U7611> \xE2\xDE |0
+<U7613> \xBA\xC8 |0
+<U7614> \xE2\xE0 |0
+<U7615> \xE2\xDD |0
+<U7616> \xE2\xDA |0
+<U7619> \xE6\xB1 |0
+<U761A> \xE6\xB5 |0
+<U761B> \xE6\xB7 |0
+<U761C> \xE6\xB3 |0
+<U761D> \xE6\xB2 |0
+<U761E> \xE6\xB0 |0
+<U761F> \xBD\x45 |0
+<U7620> \xBD\x43 |0
+<U7621> \xBD\x48 |0
+<U7622> \xBD\x49 |0
+<U7623> \xE6\xB4 |0
+<U7624> \xBD\x46 |0
+<U7625> \xE6\xAF |0
+<U7626> \xBD\x47 |0
+<U7627> \xBA\xC4 |0
+<U7628> \xE6\xB6 |0
+<U7629> \xBD\x44 |0
+<U762C> \xFE\xBD |0
+<U762D> \xEA\x6C |0
+<U762F> \xEA\x6B |0
+<U7630> \xEA\x73 |0
+<U7631> \xEA\x6D |0
+<U7632> \xEA\x72 |0
+<U7633> \xEA\x6F |0
+<U7634> \xBF\x60 |0
+<U7635> \xEA\x71 |0
+<U7638> \xBF\x61 |0
+<U763A> \xBF\x62 |0
+<U763B> \x9D\xDD |0
+<U763C> \xEA\x70 |0
+<U763D> \xEA\x6E |0
+<U7640> \x9E\xE1 |0
+<U7642> \xC0\xF8 |0
+<U7643> \xED\x74 |0
+<U7646> \xC0\xF7 |0
+<U7647> \xED\x77 |0
+<U7648> \xED\x75 |0
+<U7649> \xED\x76 |0
+<U764C> \xC0\xF9 |0
+<U764D> \x98\xDA |0
+<U764E> \x9D\xDF |0
+<U764F> \xFE\xBF |0
+<U7650> \xF0\x4D |0
+<U7651> \xFE\xBE |0
+<U7652> \xC2\xA1 |0
+<U7653> \xF0\x4E |0
+<U7654> \x9E\xEB |0
+<U7656> \xC2\x7D |0
+<U7657> \xF0\x4F |0
+<U7658> \xC2\x7E |0
+<U7659> \xF0\x4C |0
+<U765A> \xF0\x50 |0
+<U765C> \xF0\x4A |0
+<U765F> \xC3\xA7 |0
+<U7660> \xF2\x78 |0
+<U7661> \xC3\xA8 |0
+<U7662> \xC4\x6F |0
+<U7664> \xF0\x4B |0
+<U7665> \xC4\x70 |0
+<U7666> \x9E\x59 |0
+<U7667> \xA0\x5C |0
+<U7669> \xC4\xEE |0
+<U766A> \xF5\xDF |0
+<U766C> \xC5\x7E |0
+<U766D> \xF6\xF4 |0
+<U766E> \xC5\x7D |0
+<U766F> \xFE\xC0 |0
+<U7670> \xF7\xEA |0
+<U7671> \xC5\xF5 |0
+<U7672> \xC5\xF6 |0
+<U7673> \x94\x77 |0
+<U7674> \x98\xDC |0
+<U7675> \xF9\xCC |0
+<U7676> \xFE\xC1 |0
+<U7678> \xAC\xD1 |0
+<U7679> \xCF\xDE |0
+<U767A> \x98\xDE |0
+<U767B> \xB5\x6E |0
+<U767C> \xB5\x6F |0
+<U767D> \xA5\xD5 |0
+<U767E> \xA6\xCA |0
+<U767F> \xCA\x47 |0
+<U7681> \xCB\x71 |0
+<U7682> \xA8\x6D |0
+<U7684> \xAA\xBA |0
+<U7686> \xAC\xD2 |0
+<U7687> \xAC\xD3 |0
+<U7688> \xAC\xD4 |0
+<U7689> \xD6\xA6 |0
+<U768A> \xD2\xCB |0
+<U768B> \xAF\x6F |0
+<U768E> \xB2\xAE |0
+<U768F> \xD6\xA5 |0
+<U7690> \xFE\xC3 |0
+<U7692> \xDA\xB8 |0
+<U7693> \xB5\x71 |0
+<U7695> \xDA\xB7 |0
+<U7696> \xB5\x70 |0
+<U7699> \xDE\xD5 |0
+<U769A> \xBD\x4A |0
+<U769B> \xE6\xBB |0
+<U769C> \xE6\xB8 |0
+<U769D> \xE6\xB9 |0
+<U769E> \xE6\xBA |0
+<U76A1> \xFE\xC8 |0
+<U76A4> \xED\x78 |0
+<U76A5> \xFE\xC9 |0
+<U76A6> \xF0\x51 |0
+<U76AA> \xF4\x71 |0
+<U76AB> \xF4\x70 |0
+<U76AD> \xF6\xF5 |0
+<U76AE> \xA5\xD6 |0
+<U76AF> \xCD\x75 |0
+<U76B0> \xAF\x70 |0
+<U76B4> \xB5\x72 |0
+<U76B5> \xDE\xD6 |0
+<U76B7> \xFE\xCA |0
+<U76B8> \xE2\xE1 |0
+<U76BA> \xBD\x4B |0
+<U76BB> \xEA\x74 |0
+<U76BD> \xF0\x52 |0
+<U76BE> \xF4\x72 |0
+<U76BF> \xA5\xD7 |0
+<U76C2> \xAA\xBB |0
+<U76C3> \xAC\xD7 |0
+<U76C4> \xCF\xDF |0
+<U76C5> \xAC\xD8 |0
+<U76C6> \xAC\xD6 |0
+<U76C8> \xAC\xD5 |0
+<U76C9> \xD2\xCC |0
+<U76CA> \xAF\x71 |0
+<U76CC> \xFE\xCB |0
+<U76CD> \xAF\x72 |0
+<U76CE> \xAF\x73 |0
+<U76D2> \xB2\xB0 |0
+<U76D3> \xD6\xA7 |0
+<U76D4> \xB2\xAF |0
+<U76D6> \x9F\xC2 |0
+<U76DA> \xDA\xB9 |0
+<U76DB> \xB2\xB1 |0
+<U76DC> \xB5\x73 |0
+<U76DD> \xDE\xD7 |0
+<U76DE> \xB7\xF8 |0
+<U76DF> \xB7\xF9 |0
+<U76E1> \xBA\xC9 |0
+<U76E3> \xBA\xCA |0
+<U76E4> \xBD\x4C |0
+<U76E5> \xBF\x64 |0
+<U76E6> \xEA\x75 |0
+<U76E7> \xBF\x63 |0
+<U76E9> \xED\x79 |0
+<U76EA> \xC0\xFA |0
+<U76EC> \xF0\x53 |0
+<U76ED> \xF4\x73 |0
+<U76EE> \xA5\xD8 |0
+<U76EF> \xA8\x6E |0
+<U76F0> \xCD\x78 |0
+<U76F1> \xCD\x77 |0
+<U76F2> \xAA\xBC |0
+<U76F3> \xCD\x76 |0
+<U76F4> \xAA\xBD |0
+<U76F5> \xCD\x79 |0
+<U76F7> \xCF\xE5 |0
+<U76F8> \xAC\xDB |0
+<U76F9> \xAC\xDA |0
+<U76FA> \xCF\xE7 |0
+<U76FB> \xCF\xE6 |0
+<U76FC> \xAC\xDF |0
+<U76FE> \xAC\xDE |0
+<U7701> \xAC\xD9 |0
+<U7703> \xCF\xE1 |0
+<U7704> \xCF\xE2 |0
+<U7705> \xCF\xE3 |0
+<U7707> \xAC\xE0 |0
+<U7708> \xCF\xE0 |0
+<U7709> \xAC\xDC |0
+<U770A> \xCF\xE4 |0
+<U770B> \xAC\xDD |0
+<U770C> \x98\xC4 |0
+<U770E> \x94\xB0 |0
+<U770F> \x94\xB1 |0
+<U7710> \xD2\xCF |0
+<U7711> \xD2\xD3 |0
+<U7712> \xD2\xD1 |0
+<U7713> \xD2\xD0 |0
+<U7715> \xD2\xD4 |0
+<U7719> \xD2\xD5 |0
+<U771A> \xD2\xD6 |0
+<U771B> \xD2\xCE |0
+<U771D> \xD2\xCD |0
+<U771E> \xFE\xD1 |0
+<U771F> \xAF\x75 |0
+<U7720> \xAF\x76 |0
+<U7722> \xD2\xD7 |0
+<U7723> \xD2\xD2 |0
+<U7724> \xA0\xC1 |0
+<U7725> \xD6\xB0 |0
+<U7726> \xFE\xD2 |0
+<U7727> \xD2\xD8 |0
+<U7728> \xAF\x77 |0
+<U7729> \xAF\x74 |0
+<U772B> \xA0\xCD |0
+<U772D> \xD6\xAA |0
+<U772F> \xD6\xA9 |0
+<U7731> \xD6\xAB |0
+<U7732> \xD6\xAC |0
+<U7733> \xD6\xAE |0
+<U7734> \xD6\xAD |0
+<U7735> \xD6\xB2 |0
+<U7736> \xB2\xB5 |0
+<U7737> \xB2\xB2 |0
+<U7738> \xB2\xB6 |0
+<U7739> \xD6\xA8 |0
+<U773A> \xB2\xB7 |0
+<U773B> \xD6\xB1 |0
+<U773C> \xB2\xB4 |0
+<U773D> \xD6\xAF |0
+<U773E> \xB2\xB3 |0
+<U7740> \xFE\xD3 |0
+<U7743> \x98\xE5 |0
+<U7744> \xDA\xBC |0
+<U7745> \xDA\xBE |0
+<U7746> \xDA\xBA |0
+<U7747> \xDA\xBB |0
+<U774A> \xDA\xBF |0
+<U774B> \xDA\xC1 |0
+<U774C> \xDA\xC2 |0
+<U774D> \xDA\xBD |0
+<U774E> \xDA\xC0 |0
+<U774F> \xB5\x74 |0
+<U7752> \xDE\xDB |0
+<U7754> \xDE\xE0 |0
+<U7755> \xDE\xD8 |0
+<U7756> \xDE\xDC |0
+<U7758> \xFE\xD6 |0
+<U7759> \xDE\xE1 |0
+<U775A> \xDE\xDD |0
+<U775B> \xB7\xFA |0
+<U775C> \xB8\x43 |0
+<U775E> \xB7\xFD |0
+<U775F> \xDE\xD9 |0
+<U7760> \xDE\xDA |0
+<U7761> \xBA\xCE |0
+<U7762> \xB8\x46 |0
+<U7763> \xB7\xFE |0
+<U7765> \xB8\x44 |0
+<U7766> \xB7\xFC |0
+<U7767> \xDE\xDF |0
+<U7768> \xB8\x45 |0
+<U7769> \xDE\xDE |0
+<U776A> \xB8\x41 |0
+<U776B> \xB7\xFB |0
+<U776C> \xB8\x42 |0
+<U776D> \xDE\xE2 |0
+<U776E> \xE2\xE6 |0
+<U776F> \xE2\xE8 |0
+<U7772> \x91\xE4 |0
+<U7777> \x8F\xC7 |0
+<U7778> \x94\xAE |0
+<U7779> \xB8\x40 |0
+<U777A> \x8A\x4F |0
+<U777B> \x94\xB2 |0
+<U777C> \xE2\xE3 |0
+<U777D> \xBA\xCC |0
+<U777E> \xE2\xE9 |0
+<U777F> \xBA\xCD |0
+<U7780> \xE2\xE7 |0
+<U7781> \xE2\xE2 |0
+<U7782> \xE2\xE5 |0
+<U7783> \xE2\xEA |0
+<U7784> \xBA\xCB |0
+<U7785> \xE2\xE4 |0
+<U7787> \xBD\x4E |0
+<U7788> \xE6\xBF |0
+<U7789> \xE6\xBE |0
+<U778B> \xBD\x51 |0
+<U778C> \xBD\x4F |0
+<U778D> \xE6\xBC |0
+<U778E> \xBD\x4D |0
+<U778F> \xE6\xBD |0
+<U7791> \xBD\x50 |0
+<U7793> \x8F\xD4 |0
+<U7795> \xEA\x7D |0
+<U7797> \xEA\xA1 |0
+<U7798> \x98\xEA |0
+<U7799> \xEA\x7E |0
+<U779A> \xEA\x76 |0
+<U779B> \xEA\x7A |0
+<U779C> \xEA\x79 |0
+<U779D> \xEA\x77 |0
+<U779E> \xBF\x66 |0
+<U779F> \xBF\x67 |0
+<U77A0> \xBF\x65 |0
+<U77A1> \xEA\x78 |0
+<U77A2> \xEA\x7B |0
+<U77A3> \xEA\x7C |0
+<U77A5> \xBF\x68 |0
+<U77A7> \xC1\x40 |0
+<U77A8> \xED\xA3 |0
+<U77AA> \xC0\xFC |0
+<U77AB> \xED\x7B |0
+<U77AC> \xC0\xFE |0
+<U77AD> \xC1\x41 |0
+<U77AF> \xFE\xD8 |0
+<U77B0> \xC0\xFD |0
+<U77B1> \xED\xA2 |0
+<U77B2> \xED\x7C |0
+<U77B3> \xC0\xFB |0
+<U77B4> \xED\xA1 |0
+<U77B5> \xED\x7A |0
+<U77B6> \xED\x7E |0
+<U77B7> \xED\x7D |0
+<U77B9> \x9D\xE0 |0
+<U77BA> \xF0\x55 |0
+<U77BB> \xC2\xA4 |0
+<U77BC> \xC2\xA5 |0
+<U77BD> \xC2\xA2 |0
+<U77BE> \x98\xEE |0
+<U77BF> \xC2\xA3 |0
+<U77C2> \xF0\x54 |0
+<U77C3> \x95\xC4 |0
+<U77C4> \xF2\x7B |0
+<U77C5> \xFC\xE8 |0
+<U77C7> \xC3\xA9 |0
+<U77C9> \xF2\x79 |0
+<U77CA> \xF2\x7A |0
+<U77CB> \x98\xEF |0
+<U77CC> \xF4\x74 |0
+<U77CD> \xF4\x77 |0
+<U77CE> \xF4\x75 |0
+<U77CF> \xF4\x76 |0
+<U77D0> \xF5\xE0 |0
+<U77D3> \xC4\xEF |0
+<U77D4> \xF7\xEB |0
+<U77D5> \xF8\xB4 |0
+<U77D7> \xC5\xF7 |0
+<U77D8> \xF8\xF8 |0
+<U77D9> \xF8\xF9 |0
+<U77DA> \xC6\x66 |0
+<U77DB> \xA5\xD9 |0
+<U77DC> \xAC\xE1 |0
+<U77DE> \xDA\xC3 |0
+<U77E0> \xDE\xE3 |0
+<U77E2> \xA5\xDA |0
+<U77E3> \xA8\x6F |0
+<U77E5> \xAA\xBE |0
+<U77E6> \xFA\xD8 |0
+<U77E7> \xCF\xE8 |0
+<U77E8> \xCF\xE9 |0
+<U77E9> \xAF\x78 |0
+<U77EC> \xDA\xC4 |0
+<U77ED> \xB5\x75 |0
+<U77EE> \xB8\x47 |0
+<U77EF> \xC1\x42 |0
+<U77F0> \xED\xA4 |0
+<U77F1> \xF2\x7C |0
+<U77F2> \xF4\x78 |0
+<U77F3> \xA5\xDB |0
+<U77F4> \xFE\xDC |0
+<U77F7> \xCD\xA1 |0
+<U77F8> \xCD\x7A |0
+<U77F9> \xCD\x7C |0
+<U77FA> \xCD\x7E |0
+<U77FB> \xCD\x7D |0
+<U77FC> \xCD\x7B |0
+<U77FD> \xAA\xBF |0
+<U77FE> \xA0\xAE |0
+<U7802> \xAC\xE2 |0
+<U7803> \xCF\xF2 |0
+<U7805> \xCF\xED |0
+<U7806> \xCF\xEA |0
+<U7808> \x9D\x4C |0
+<U7809> \xCF\xF1 |0
+<U780C> \xAC\xE4 |0
+<U780D> \xAC\xE5 |0
+<U780E> \xCF\xF0 |0
+<U780F> \xCF\xEF |0
+<U7810> \xCF\xEE |0
+<U7811> \xCF\xEB |0
+<U7812> \xCF\xEC |0
+<U7813> \xCF\xF3 |0
+<U7814> \xAC\xE3 |0
+<U7818> \x98\xF1 |0
+<U781C> \x98\xF3 |0
+<U781D> \xAF\x7C |0
+<U781E> \x94\xC1 |0
+<U781F> \xAF\xA4 |0
+<U7820> \xAF\xA3 |0
+<U7821> \xD2\xE1 |0
+<U7822> \xD2\xDB |0
+<U7823> \xD2\xD9 |0
+<U7825> \xAF\xA1 |0
+<U7826> \xD6\xB9 |0
+<U7827> \xAF\x7A |0
+<U7828> \xD2\xDE |0
+<U7829> \xD2\xE2 |0
+<U782A> \xD2\xE4 |0
+<U782B> \xD2\xE0 |0
+<U782C> \xD2\xDA |0
+<U782D> \xAF\xA2 |0
+<U782E> \xD2\xDF |0
+<U782F> \xD2\xDD |0
+<U7830> \xAF\x79 |0
+<U7831> \xD2\xE5 |0
+<U7832> \xAF\xA5 |0
+<U7833> \xD2\xE3 |0
+<U7834> \xAF\x7D |0
+<U7835> \xD2\xDC |0
+<U7837> \xAF\x7E |0
+<U7838> \xAF\x7B |0
+<U7839> \x98\xF5 |0
+<U783C> \xFA\x4F |0
+<U783D> \x96\xE2 |0
+<U7842> \x94\x50 |0
+<U7843> \xB2\xB9 |0
+<U7844> \x96\xA2 |0
+<U7845> \xD6\xBA |0
+<U7847> \x98\xF6 |0
+<U7848> \xD6\xB3 |0
+<U7849> \xD6\xB5 |0
+<U784A> \xD6\xB7 |0
+<U784B> \x96\xE5 |0
+<U784C> \xD6\xB8 |0
+<U784D> \xD6\xB6 |0
+<U784E> \xB2\xBA |0
+<U7850> \xD6\xBB |0
+<U7851> \x98\xF7 |0
+<U7852> \xD6\xB4 |0
+<U7853> \xA0\x46 |0
+<U7854> \x96\xE3 |0
+<U785C> \xDA\xC8 |0
+<U785D> \xB5\x76 |0
+<U785E> \xDA\xD0 |0
+<U7860> \xDA\xC5 |0
+<U7862> \xDA\xD1 |0
+<U7864> \xDA\xC6 |0
+<U7865> \xDA\xC7 |0
+<U7866> \x98\xF8 |0
+<U7868> \xDA\xCF |0
+<U7869> \xDA\xCE |0
+<U786A> \xDA\xCB |0
+<U786B> \xB2\xB8 |0
+<U786C> \xB5\x77 |0
+<U786D> \xDA\xC9 |0
+<U786E> \xDA\xCC |0
+<U786F> \xB5\x78 |0
+<U7870> \xDA\xCD |0
+<U7871> \xDA\xCA |0
+<U7879> \xDE\xEE |0
+<U787A> \x9E\xE4 |0
+<U787B> \xDE\xF2 |0
+<U787C> \xB8\x4E |0
+<U787E> \xE2\xF0 |0
+<U787F> \xB8\x51 |0
+<U7880> \xDE\xF0 |0
+<U7881> \xF9\xD6 |0
+<U7883> \xDE\xED |0
+<U7884> \xDE\xE8 |0
+<U7885> \xDE\xEA |0
+<U7886> \xDE\xEB |0
+<U7887> \xDE\xE4 |0
+<U7888> \x94\xC3 |0
+<U7889> \xB8\x4D |0
+<U788C> \xB8\x4C |0
+<U788D> \x94\xC2 |0
+<U788E> \xB8\x48 |0
+<U788F> \xDE\xE7 |0
+<U7891> \xB8\x4F |0
+<U7893> \xB8\x50 |0
+<U7894> \xDE\xE6 |0
+<U7895> \xDE\xE9 |0
+<U7896> \xDE\xF1 |0
+<U7897> \xB8\x4A |0
+<U7898> \xB8\x4B |0
+<U7899> \xDE\xEF |0
+<U789A> \xDE\xE5 |0
+<U789E> \xE2\xF2 |0
+<U789F> \xBA\xD0 |0
+<U78A0> \xE2\xF4 |0
+<U78A1> \xDE\xEC |0
+<U78A2> \xE2\xF6 |0
+<U78A3> \xBA\xD4 |0
+<U78A4> \xE2\xF7 |0
+<U78A5> \xE2\xF3 |0
+<U78A7> \xBA\xD1 |0
+<U78A8> \xE2\xEF |0
+<U78A9> \xBA\xD3 |0
+<U78AA> \xE2\xEC |0
+<U78AB> \xE2\xF1 |0
+<U78AC> \xE2\xF5 |0
+<U78AD> \xE2\xEE |0
+<U78AF> \xFE\xE1 |0
+<U78B0> \xB8\x49 |0
+<U78B1> \xFE\xE9 |0
+<U78B2> \xE2\xEB |0
+<U78B3> \xBA\xD2 |0
+<U78B4> \xE2\xED |0
+<U78B6> \x96\xE4 |0
+<U78B8> \x89\xAC |0
+<U78B9> \x96\xDB |0
+<U78BA> \xBD\x54 |0
+<U78BB> \xE6\xC1 |0
+<U78BC> \xBD\x58 |0
+<U78BE> \xBD\x56 |0
+<U78C1> \xBA\xCF |0
+<U78C3> \xE6\xC8 |0
+<U78C4> \xE6\xC9 |0
+<U78C5> \xBD\x53 |0
+<U78C7> \xFE\xE2 |0
+<U78C8> \xE6\xC7 |0
+<U78C9> \xE6\xCA |0
+<U78CA> \xBD\x55 |0
+<U78CB> \xBD\x52 |0
+<U78CC> \xE6\xC3 |0
+<U78CD> \xE6\xC0 |0
+<U78CE> \xE6\xC5 |0
+<U78CF> \xE6\xC2 |0
+<U78D0> \xBD\x59 |0
+<U78D1> \xE6\xC4 |0
+<U78D2> \x94\xC4 |0
+<U78D3> \xFE\xE3 |0
+<U78D4> \xE6\xC6 |0
+<U78D5> \xBD\x57 |0
+<U78D7> \xFE\xE7 |0
+<U78D8> \x9F\xFB |0
+<U78DA> \xBF\x6A |0
+<U78DB> \xEA\xA8 |0
+<U78DD> \xEA\xA2 |0
+<U78DE> \xEA\xA6 |0
+<U78DF> \xEA\xAC |0
+<U78E0> \xEA\xAD |0
+<U78E1> \xEA\xA9 |0
+<U78E2> \xEA\xAA |0
+<U78E3> \xEA\xA7 |0
+<U78E5> \xEA\xA4 |0
+<U78E7> \xBF\x6C |0
+<U78E8> \xBF\x69 |0
+<U78E9> \xEA\xA3 |0
+<U78EA> \xEA\xA5 |0
+<U78EC> \xBF\x6B |0
+<U78ED> \xEA\xAB |0
+<U78EE> \x93\xC9 |0
+<U78EF> \xC1\x46 |0
+<U78F0> \x94\xE8 |0
+<U78F1> \xFB\x56 |0
+<U78F2> \xED\xAA |0
+<U78F3> \xED\xA5 |0
+<U78F4> \xC1\x45 |0
+<U78F5> \x90\xC5 |0
+<U78F7> \xC1\x43 |0
+<U78F9> \xED\xAC |0
+<U78FA> \xC1\x44 |0
+<U78FB> \xED\xA8 |0
+<U78FC> \xED\xA9 |0
+<U78FD> \xED\xA6 |0
+<U78FE> \xED\xAD |0
+<U78FF> \xF0\x56 |0
+<U7901> \xC1\x47 |0
+<U7902> \xED\xA7 |0
+<U7904> \xED\xAE |0
+<U7905> \xED\xAB |0
+<U7906> \xA0\xA8 |0
+<U7909> \xF0\x5A |0
+<U790C> \xF0\x57 |0
+<U790E> \xC2\xA6 |0
+<U7910> \xF0\x5B |0
+<U7911> \xF0\x5D |0
+<U7912> \xF0\x5C |0
+<U7913> \xF0\x58 |0
+<U7914> \xF0\x59 |0
+<U7917> \xF2\xA3 |0
+<U7919> \xC3\xAA |0
+<U791B> \xF2\x7E |0
+<U791C> \xF2\xA2 |0
+<U791D> \xF2\x7D |0
+<U791E> \xF2\xA4 |0
+<U7921> \xF2\xA1 |0
+<U7923> \xF4\x7A |0
+<U7924> \xF4\x7D |0
+<U7925> \xF4\x79 |0
+<U7926> \xC4\x71 |0
+<U7927> \xF4\x7B |0
+<U7928> \xF4\x7C |0
+<U7929> \xF4\x7E |0
+<U792A> \xC4\x72 |0
+<U792B> \xC4\x74 |0
+<U792C> \xC4\x73 |0
+<U792D> \xF5\xE1 |0
+<U792E> \xFE\xE5 |0
+<U792F> \xF5\xE3 |0
+<U7931> \xF5\xE2 |0
+<U7932> \x98\xFD |0
+<U7933> \x98\xFB |0
+<U7934> \xFE\xE8 |0
+<U7935> \xF6\xF6 |0
+<U7936> \x8E\xBF |0
+<U7938> \xF8\xB5 |0
+<U7939> \xF8\xFA |0
+<U793A> \xA5\xDC |0
+<U793B> \x8B\xD8 |0
+<U793C> \xFE\xF7 |0
+<U793D> \xCB\x72 |0
+<U793E> \xAA\xC0 |0
+<U793F> \xCD\xA3 |0
+<U7940> \xAA\xC1 |0
+<U7941> \xAA\xC2 |0
+<U7942> \xCD\xA2 |0
+<U7944> \xCF\xF8 |0
+<U7945> \xCF\xF7 |0
+<U7946> \xAC\xE6 |0
+<U7947> \xAC\xE9 |0
+<U7948> \xAC\xE8 |0
+<U7949> \xAC\xE7 |0
+<U794A> \xCF\xF4 |0
+<U794B> \xCF\xF6 |0
+<U794C> \xCF\xF5 |0
+<U794F> \xD2\xE8 |0
+<U7950> \xAF\xA7 |0
+<U7951> \xD2\xEC |0
+<U7952> \xD2\xEB |0
+<U7953> \xD2\xEA |0
+<U7954> \xD2\xE6 |0
+<U7955> \xAF\xA6 |0
+<U7956> \xAF\xAA |0
+<U7957> \xAF\xAD |0
+<U7958> \x8F\x68 |0
+<U7959> \x94\xC6 |0
+<U795A> \xAF\xAE |0
+<U795B> \xD2\xE7 |0
+<U795C> \xD2\xE9 |0
+<U795D> \xAF\xAC |0
+<U795E> \xAF\xAB |0
+<U795F> \xAF\xA9 |0
+<U7960> \xAF\xA8 |0
+<U7961> \xD6\xC2 |0
+<U7962> \x9D\xEA |0
+<U7963> \xD6\xC0 |0
+<U7964> \xD6\xBC |0
+<U7965> \xB2\xBB |0
+<U7967> \xD6\xBD |0
+<U7968> \xB2\xBC |0
+<U7969> \xD6\xBE |0
+<U796A> \xD6\xBF |0
+<U796B> \xD6\xC1 |0
+<U796D> \xB2\xBD |0
+<U7970> \xDA\xD5 |0
+<U7971> \xFC\x69 |0
+<U7972> \xDA\xD4 |0
+<U7973> \xDA\xD3 |0
+<U7974> \xDA\xD2 |0
+<U7979> \xDE\xF6 |0
+<U797A> \xB8\x52 |0
+<U797C> \xDE\xF3 |0
+<U797D> \xDE\xF5 |0
+<U797E> \x9C\xDA |0
+<U797F> \xB8\x53 |0
+<U7980> \xFE\xF3 |0
+<U7981> \xB8\x54 |0
+<U7982> \xDE\xF4 |0
+<U7983> \x9C\x72 |0
+<U7986> \xFE\xF0 |0
+<U7987> \x89\xC9 |0
+<U7988> \xE3\x41 |0
+<U798A> \xE2\xF9 |0
+<U798B> \xE2\xFA |0
+<U798D> \xBA\xD7 |0
+<U798E> \xBA\xD5 |0
+<U798F> \xBA\xD6 |0
+<U7990> \xE3\x43 |0
+<U7991> \x99\x41 |0
+<U7992> \xE3\x42 |0
+<U7993> \xE2\xFE |0
+<U7994> \xE2\xFD |0
+<U7995> \xE2\xFC |0
+<U7996> \xE2\xFB |0
+<U7997> \xE3\x40 |0
+<U7998> \xE2\xF8 |0
+<U7999> \x99\x42 |0
+<U799A> \xE6\xCB |0
+<U799B> \xE6\xD0 |0
+<U799C> \xE6\xCE |0
+<U799D> \xFE\xF5 |0
+<U799F> \x91\xD7 |0
+<U79A0> \xE6\xCD |0
+<U79A1> \xE6\xCC |0
+<U79A2> \xE6\xCF |0
+<U79A4> \xEA\xAE |0
+<U79A5> \x94\xCC |0
+<U79A6> \xBF\x6D |0
+<U79A7> \xC1\x48 |0
+<U79A8> \xED\xB0 |0
+<U79A9> \xFE\xF8 |0
+<U79AA> \xC1\x49 |0
+<U79AB> \xED\xAF |0
+<U79AC> \xF0\x5F |0
+<U79AD> \xF0\x5E |0
+<U79AE> \xC2\xA7 |0
+<U79B0> \xF2\xA5 |0
+<U79B1> \xC3\xAB |0
+<U79B2> \xF4\xA1 |0
+<U79B3> \xC5\xA1 |0
+<U79B4> \xF6\xF7 |0
+<U79B6> \xF8\xB7 |0
+<U79B7> \xF8\xB6 |0
+<U79B8> \xC9\xA8 |0
+<U79B9> \xAC\xEA |0
+<U79BA> \xAC\xEB |0
+<U79BB> \xD6\xC3 |0
+<U79BD> \xB8\x56 |0
+<U79BE> \xA5\xDD |0
+<U79BF> \xA8\x72 |0
+<U79C0> \xA8\x71 |0
+<U79C1> \xA8\x70 |0
+<U79C4> \x97\xA8 |0
+<U79C5> \xCD\xA4 |0
+<U79C6> \xFE\xFC |0
+<U79C8> \xAA\xC4 |0
+<U79C9> \xAA\xC3 |0
+<U79CB> \xAC\xEE |0
+<U79CC> \xFD\xBF |0
+<U79CD> \xCF\xFA |0
+<U79CE> \xCF\xFD |0
+<U79CF> \xCF\xFB |0
+<U79D1> \xAC\xEC |0
+<U79D2> \xAC\xED |0
+<U79D4> \xFE\xFE |0
+<U79D5> \xCF\xF9 |0
+<U79D6> \xCF\xFC |0
+<U79D8> \xAF\xB5 |0
+<U79DC> \xD2\xF3 |0
+<U79DD> \xD2\xF5 |0
+<U79DE> \xD2\xF4 |0
+<U79DF> \xAF\xB2 |0
+<U79E0> \xD2\xEF |0
+<U79E2> \x96\xD1 |0
+<U79E3> \xAF\xB0 |0
+<U79E4> \xAF\xAF |0
+<U79E6> \xAF\xB3 |0
+<U79E7> \xAF\xB1 |0
+<U79E9> \xAF\xB4 |0
+<U79EA> \xD2\xF2 |0
+<U79EB> \xD2\xED |0
+<U79EC> \xD2\xEE |0
+<U79ED> \xD2\xF1 |0
+<U79EE> \xD2\xF0 |0
+<U79F1> \x94\xD5 |0
+<U79F4> \x94\xD0 |0
+<U79F6> \xD6\xC6 |0
+<U79F7> \xD6\xC7 |0
+<U79F8> \xD6\xC5 |0
+<U79FA> \xD6\xC4 |0
+<U79FB> \xB2\xBE |0
+<U7A00> \xB5\x7D |0
+<U7A02> \xDA\xD6 |0
+<U7A03> \xDA\xD8 |0
+<U7A04> \xDA\xDA |0
+<U7A05> \xB5\x7C |0
+<U7A06> \x99\x44 |0
+<U7A08> \xB5\x7A |0
+<U7A0A> \xDA\xD7 |0
+<U7A0B> \xB5\x7B |0
+<U7A0C> \xDA\xD9 |0
+<U7A0D> \xB5\x79 |0
+<U7A10> \xDF\x41 |0
+<U7A11> \xDE\xF7 |0
+<U7A12> \xDE\xFA |0
+<U7A13> \xDE\xFE |0
+<U7A14> \xB8\x5A |0
+<U7A15> \xDE\xFC |0
+<U7A17> \xDE\xFB |0
+<U7A18> \xDE\xF8 |0
+<U7A19> \xDE\xF9 |0
+<U7A1A> \xB8\x58 |0
+<U7A1B> \xDF\x40 |0
+<U7A1C> \xB8\x57 |0
+<U7A1E> \xB8\x5C |0
+<U7A1F> \xB8\x5B |0
+<U7A20> \xB8\x59 |0
+<U7A22> \xDE\xFD |0
+<U7A26> \xE3\x49 |0
+<U7A28> \xE3\x48 |0
+<U7A2B> \xE3\x44 |0
+<U7A2D> \xA0\xB3 |0
+<U7A2E> \xBA\xD8 |0
+<U7A2F> \xE3\x47 |0
+<U7A30> \xE3\x46 |0
+<U7A31> \xBA\xD9 |0
+<U7A37> \xBD\x5E |0
+<U7A39> \xE6\xD2 |0
+<U7A3A> \x94\xCF |0
+<U7A3B> \xBD\x5F |0
+<U7A3C> \xBD\x5B |0
+<U7A3D> \xBD\x5D |0
+<U7A3E> \x9F\xFA |0
+<U7A3F> \xBD\x5A |0
+<U7A40> \xBD\x5C |0
+<U7A43> \x91\xE5 |0
+<U7A44> \xEA\xAF |0
+<U7A45> \x9C\x6A |0
+<U7A46> \xBF\x70 |0
+<U7A47> \xEA\xB1 |0
+<U7A48> \xEA\xB0 |0
+<U7A49> \x8E\x49 |0
+<U7A4A> \xE3\x45 |0
+<U7A4B> \xBF\x72 |0
+<U7A4C> \xBF\x71 |0
+<U7A4D> \xBF\x6E |0
+<U7A4E> \xBF\x6F |0
+<U7A54> \xED\xB5 |0
+<U7A56> \xED\xB3 |0
+<U7A57> \xC1\x4A |0
+<U7A58> \xED\xB4 |0
+<U7A5A> \xED\xB6 |0
+<U7A5B> \xED\xB2 |0
+<U7A5C> \xED\xB1 |0
+<U7A5F> \xF0\x60 |0
+<U7A60> \xC2\xAA |0
+<U7A61> \xC2\xA8 |0
+<U7A62> \xC2\xA9 |0
+<U7A65> \x8E\x4C |0
+<U7A67> \xF2\xA6 |0
+<U7A68> \xF2\xA7 |0
+<U7A69> \xC3\xAD |0
+<U7A6B> \xC3\xAC |0
+<U7A6C> \xF4\xA3 |0
+<U7A6D> \xF4\xA4 |0
+<U7A6E> \xF4\xA2 |0
+<U7A70> \xF6\xF8 |0
+<U7A71> \xF6\xF9 |0
+<U7A74> \xA5\xDE |0
+<U7A75> \xCA\x48 |0
+<U7A76> \xA8\x73 |0
+<U7A78> \xCD\xA5 |0
+<U7A79> \xAA\xC6 |0
+<U7A7A> \xAA\xC5 |0
+<U7A7B> \xCD\xA6 |0
+<U7A7D> \x8E\x4D |0
+<U7A7E> \xD0\x40 |0
+<U7A7F> \xAC\xEF |0
+<U7A80> \xCF\xFE |0
+<U7A81> \xAC\xF0 |0
+<U7A83> \x9A\x73 |0
+<U7A84> \xAF\xB6 |0
+<U7A85> \xD2\xF8 |0
+<U7A86> \xD2\xF6 |0
+<U7A87> \xD2\xFC |0
+<U7A88> \xAF\xB7 |0
+<U7A89> \xD2\xF7 |0
+<U7A8A> \xD2\xFB |0
+<U7A8B> \xD2\xF9 |0
+<U7A8C> \xD2\xFA |0
+<U7A8F> \xD6\xC8 |0
+<U7A90> \xD6\xCA |0
+<U7A91> \x99\x47 |0
+<U7A92> \xB2\xBF |0
+<U7A94> \xD6\xC9 |0
+<U7A95> \xB2\xC0 |0
+<U7A96> \xB5\xA2 |0
+<U7A97> \xB5\xA1 |0
+<U7A98> \xB5\x7E |0
+<U7A99> \xDA\xDB |0
+<U7A9E> \xDF\x44 |0
+<U7A9F> \xB8\x5D |0
+<U7AA0> \xB8\x5E |0
+<U7AA2> \xDF\x43 |0
+<U7AA3> \xDF\x42 |0
+<U7AA8> \xE3\x4A |0
+<U7AA9> \xBA\xDB |0
+<U7AAA> \xBA\xDA |0
+<U7AAB> \xE3\x4B |0
+<U7AAC> \xE3\x4C |0
+<U7AAE> \xBD\x61 |0
+<U7AAF> \xBD\x60 |0
+<U7AB0> \x8E\x50 |0
+<U7AB1> \xEA\xB5 |0
+<U7AB2> \xE6\xD3 |0
+<U7AB3> \xE6\xD5 |0
+<U7AB4> \xE6\xD4 |0
+<U7AB5> \xEA\xB4 |0
+<U7AB6> \xEA\xB2 |0
+<U7AB7> \xEA\xB6 |0
+<U7AB8> \xEA\xB3 |0
+<U7ABA> \xBF\x73 |0
+<U7ABB> \x8E\x4F |0
+<U7ABC> \x99\x49 |0
+<U7ABE> \xED\xB7 |0
+<U7ABF> \xC1\x4B |0
+<U7AC0> \xED\xB8 |0
+<U7AC1> \xED\xB9 |0
+<U7AC2> \x8E\x51 |0
+<U7AC3> \x8E\x52 |0
+<U7AC4> \xC2\xAB |0
+<U7AC5> \xC2\xAC |0
+<U7AC7> \xC4\x75 |0
+<U7AC8> \x9A\xB2 |0
+<U7AC9> \x89\xA5 |0
+<U7ACA> \xC5\xD1 |0
+<U7ACB> \xA5\xDF |0
+<U7ACF> \x99\x4C |0
+<U7AD1> \xD0\x41 |0
+<U7AD3> \x9F\xF8 |0
+<U7AD8> \xD2\xFD |0
+<U7AD9> \xAF\xB8 |0
+<U7ADA> \x8E\x56 |0
+<U7ADB> \x99\x4D |0
+<U7ADC> \x91\xCA |0
+<U7ADD> \x8E\x57 |0
+<U7ADF> \xB3\xBA |0
+<U7AE0> \xB3\xB9 |0
+<U7AE2> \x94\xE1 |0
+<U7AE3> \xB5\xA4 |0
+<U7AE4> \xDA\xDD |0
+<U7AE5> \xB5\xA3 |0
+<U7AE6> \xDA\xDC |0
+<U7AE7> \x90\x47 |0
+<U7AE9> \x8F\xD8 |0
+<U7AEA> \x8E\x58 |0
+<U7AEB> \xDF\x45 |0
+<U7AED> \xBA\xDC |0
+<U7AEE> \xE3\x4D |0
+<U7AEF> \xBA\xDD |0
+<U7AF6> \xC4\x76 |0
+<U7AF7> \xF4\xA5 |0
+<U7AF9> \xA6\xCB |0
+<U7AFA> \xAA\xC7 |0
+<U7AFB> \xCD\xA7 |0
+<U7AFD> \xAC\xF2 |0
+<U7AFE> \x94\xEB |0
+<U7AFF> \xAC\xF1 |0
+<U7B00> \xD0\x42 |0
+<U7B01> \xD0\x43 |0
+<U7B04> \xD3\x40 |0
+<U7B05> \xD3\x42 |0
+<U7B06> \xAF\xB9 |0
+<U7B08> \xD3\x44 |0
+<U7B09> \xD3\x47 |0
+<U7B0A> \xD3\x45 |0
+<U7B0B> \x8E\x5C |0
+<U7B0C> \x95\x53 |0
+<U7B0E> \xD3\x46 |0
+<U7B0F> \xD3\x43 |0
+<U7B10> \xD2\xFE |0
+<U7B11> \xAF\xBA |0
+<U7B12> \xD3\x48 |0
+<U7B13> \xD3\x41 |0
+<U7B14> \x9F\xE5 |0
+<U7B18> \xD6\xD3 |0
+<U7B19> \xB2\xC6 |0
+<U7B1A> \xD6\xDC |0
+<U7B1B> \xB2\xC3 |0
+<U7B1D> \xD6\xD5 |0
+<U7B1E> \xB2\xC7 |0
+<U7B1F> \x9F\x56 |0
+<U7B20> \xB2\xC1 |0
+<U7B22> \xD6\xD0 |0
+<U7B23> \xD6\xDD |0
+<U7B24> \xD6\xD1 |0
+<U7B25> \xD6\xCE |0
+<U7B26> \xB2\xC5 |0
+<U7B27> \x95\x4F |0
+<U7B28> \xB2\xC2 |0
+<U7B29> \x8E\x5E |0
+<U7B2A> \xD6\xD4 |0
+<U7B2B> \xD6\xD7 |0
+<U7B2C> \xB2\xC4 |0
+<U7B2D> \xD6\xD8 |0
+<U7B2E> \xB2\xC8 |0
+<U7B2F> \xD6\xD9 |0
+<U7B30> \xD6\xCF |0
+<U7B31> \xD6\xD6 |0
+<U7B32> \xD6\xDA |0
+<U7B33> \xD6\xD2 |0
+<U7B34> \xD6\xCD |0
+<U7B35> \xD6\xCB |0
+<U7B38> \xD6\xDB |0
+<U7B39> \x99\x6A |0
+<U7B3B> \xDA\xDF |0
+<U7B40> \xDA\xE4 |0
+<U7B42> \x9C\x64 |0
+<U7B43> \x9C\xD9 |0
+<U7B44> \xDA\xE0 |0
+<U7B45> \xDA\xE6 |0
+<U7B46> \xB5\xA7 |0
+<U7B47> \xD6\xCC |0
+<U7B48> \xDA\xE1 |0
+<U7B49> \xB5\xA5 |0
+<U7B4A> \xDA\xDE |0
+<U7B4B> \xB5\xAC |0
+<U7B4C> \xDA\xE2 |0
+<U7B4D> \xB5\xAB |0
+<U7B4E> \xDA\xE3 |0
+<U7B4F> \xB5\xAD |0
+<U7B50> \xB5\xA8 |0
+<U7B51> \xB5\xAE |0
+<U7B52> \xB5\xA9 |0
+<U7B54> \xB5\xAA |0
+<U7B55> \x8E\x5D |0
+<U7B56> \xB5\xA6 |0
+<U7B58> \xDA\xE5 |0
+<U7B60> \xB8\x61 |0
+<U7B61> \xDF\x50 |0
+<U7B62> \x99\x50 |0
+<U7B63> \xDF\x53 |0
+<U7B64> \xDF\x47 |0
+<U7B65> \xDF\x4C |0
+<U7B66> \xDF\x46 |0
+<U7B67> \xB8\x63 |0
+<U7B69> \xDF\x4A |0
+<U7B6C> \x99\x51 |0
+<U7B6D> \xDF\x48 |0
+<U7B6E> \xB8\x62 |0
+<U7B6F> \x8E\x62 |0
+<U7B70> \xDF\x4F |0
+<U7B71> \xDF\x4E |0
+<U7B72> \xDF\x4B |0
+<U7B73> \xDF\x4D |0
+<U7B74> \xDF\x49 |0
+<U7B75> \xBA\xE1 |0
+<U7B76> \xDF\x52 |0
+<U7B77> \xB8\x5F |0
+<U7B78> \xDF\x51 |0
+<U7B7B> \x99\x52 |0
+<U7B82> \xE3\x5D |0
+<U7B84> \xBA\xE8 |0
+<U7B85> \xE3\x58 |0
+<U7B87> \xBA\xE7 |0
+<U7B88> \xE3\x4E |0
+<U7B8A> \xE3\x50 |0
+<U7B8B> \xBA\xE0 |0
+<U7B8C> \xE3\x55 |0
+<U7B8D> \xE3\x54 |0
+<U7B8E> \xE3\x57 |0
+<U7B8F> \xBA\xE5 |0
+<U7B90> \xE3\x52 |0
+<U7B91> \xE3\x51 |0
+<U7B92> \x8E\x68 |0
+<U7B94> \xBA\xE4 |0
+<U7B95> \xBA\xDF |0
+<U7B96> \xE3\x53 |0
+<U7B97> \xBA\xE2 |0
+<U7B98> \xE3\x59 |0
+<U7B99> \xE3\x5B |0
+<U7B9B> \xE3\x56 |0
+<U7B9C> \xE3\x4F |0
+<U7B9D> \xBA\xE3 |0
+<U7BA0> \xBD\x69 |0
+<U7BA1> \xBA\xDE |0
+<U7BA2> \x8E\x61 |0
+<U7BA3> \x9F\x59 |0
+<U7BA4> \xE3\x5C |0
+<U7BAC> \xE6\xD9 |0
+<U7BAD> \xBD\x62 |0
+<U7BAF> \xE6\xDB |0
+<U7BB1> \xBD\x63 |0
+<U7BB2> \x8B\xB3 |0
+<U7BB4> \xBD\x65 |0
+<U7BB5> \xE6\xDE |0
+<U7BB7> \xE6\xD6 |0
+<U7BB8> \xBA\xE6 |0
+<U7BB9> \xE6\xDC |0
+<U7BBE> \xE6\xD8 |0
+<U7BC0> \xB8\x60 |0
+<U7BC1> \xBD\x68 |0
+<U7BC4> \xBD\x64 |0
+<U7BC6> \xBD\x66 |0
+<U7BC7> \xBD\x67 |0
+<U7BC9> \xBF\x76 |0
+<U7BCA> \xE6\xDD |0
+<U7BCB> \xE6\xD7 |0
+<U7BCC> \xBD\x6A |0
+<U7BCE> \xE6\xDA |0
+<U7BCF> \x9F\x5D |0
+<U7BD0> \x8E\x66 |0
+<U7BD4> \xEA\xC0 |0
+<U7BD5> \xEA\xBB |0
+<U7BD8> \xEA\xC5 |0
+<U7BD9> \xBF\x74 |0
+<U7BDA> \xEA\xBD |0
+<U7BDB> \xBF\x78 |0
+<U7BDC> \xEA\xC3 |0
+<U7BDD> \xEA\xBA |0
+<U7BDE> \xEA\xB7 |0
+<U7BDF> \xEA\xC6 |0
+<U7BE0> \xC1\x51 |0
+<U7BE1> \xBF\x79 |0
+<U7BE2> \xEA\xC2 |0
+<U7BE3> \xEA\xB8 |0
+<U7BE4> \xBF\x77 |0
+<U7BE5> \xEA\xBC |0
+<U7BE6> \xBF\x7B |0
+<U7BE7> \xEA\xB9 |0
+<U7BE8> \xEA\xBE |0
+<U7BE9> \xBF\x7A |0
+<U7BEA> \xEA\xC1 |0
+<U7BEB> \xEA\xC4 |0
+<U7BF0> \xED\xCB |0
+<U7BF1> \xED\xCC |0
+<U7BF2> \xED\xBC |0
+<U7BF3> \xED\xC3 |0
+<U7BF4> \xED\xC1 |0
+<U7BF7> \xC1\x4F |0
+<U7BF8> \xED\xC8 |0
+<U7BF9> \xEA\xBF |0
+<U7BFA> \x8E\x6E |0
+<U7BFB> \xED\xBF |0
+<U7BFC> \x9F\x64 |0
+<U7BFD> \xED\xC9 |0
+<U7BFE> \xC1\x4E |0
+<U7BFF> \xED\xBE |0
+<U7C00> \xED\xBD |0
+<U7C01> \xED\xC7 |0
+<U7C02> \xED\xC4 |0
+<U7C03> \xED\xC6 |0
+<U7C05> \xED\xBA |0
+<U7C06> \xED\xCA |0
+<U7C07> \xC1\x4C |0
+<U7C09> \xED\xC5 |0
+<U7C0A> \xED\xCE |0
+<U7C0B> \xED\xC2 |0
+<U7C0C> \xC1\x50 |0
+<U7C0D> \xC1\x4D |0
+<U7C0E> \xED\xC0 |0
+<U7C0F> \xED\xBB |0
+<U7C10> \xED\xCD |0
+<U7C11> \xBF\x75 |0
+<U7C12> \x99\x53 |0
+<U7C15> \xFA\xB8 |0
+<U7C19> \xF0\x63 |0
+<U7C1B> \x99\x54 |0
+<U7C1C> \xF0\x61 |0
+<U7C1D> \xF0\x67 |0
+<U7C1E> \xC2\xB0 |0
+<U7C1F> \xF0\x65 |0
+<U7C20> \xF0\x64 |0
+<U7C21> \xC2\xB2 |0
+<U7C22> \xF0\x6A |0
+<U7C23> \xC2\xB1 |0
+<U7C25> \xF0\x6B |0
+<U7C26> \xF0\x68 |0
+<U7C27> \xC2\xAE |0
+<U7C28> \xF0\x69 |0
+<U7C29> \xF0\x62 |0
+<U7C2A> \xC2\xAF |0
+<U7C2B> \xC2\xAD |0
+<U7C2C> \xF2\xAB |0
+<U7C2D> \xF0\x66 |0
+<U7C30> \xF0\x6C |0
+<U7C33> \xF2\xA8 |0
+<U7C35> \x8E\x70 |0
+<U7C37> \xC3\xB2 |0
+<U7C38> \xC3\xB0 |0
+<U7C39> \xF2\xAA |0
+<U7C3B> \xF2\xAC |0
+<U7C3C> \xF2\xA9 |0
+<U7C3D> \xC3\xB1 |0
+<U7C3E> \xC3\xAE |0
+<U7C3F> \xC3\xAF |0
+<U7C40> \xC3\xB3 |0
+<U7C42> \x9F\x61 |0
+<U7C43> \xC4\x78 |0
+<U7C44> \x8E\x72 |0
+<U7C45> \xF4\xAA |0
+<U7C47> \xF4\xA9 |0
+<U7C48> \xF4\xA7 |0
+<U7C49> \xF4\xA6 |0
+<U7C4A> \xF4\xA8 |0
+<U7C4C> \xC4\x77 |0
+<U7C4D> \xC4\x79 |0
+<U7C50> \xC4\xF0 |0
+<U7C51> \xA0\x6B |0
+<U7C53> \xF5\xE5 |0
+<U7C54> \xF5\xE4 |0
+<U7C56> \x9F\x40 |0
+<U7C57> \xF6\xFA |0
+<U7C59> \xF6\xFC |0
+<U7C5A> \xF6\xFE |0
+<U7C5B> \xF6\xFD |0
+<U7C5C> \xF6\xFB |0
+<U7C5D> \x94\xED |0
+<U7C5F> \xC5\xA3 |0
+<U7C60> \xC5\xA2 |0
+<U7C63> \xC5\xD3 |0
+<U7C64> \xC5\xD2 |0
+<U7C65> \xC5\xD4 |0
+<U7C66> \xF7\xED |0
+<U7C67> \xF7\xEC |0
+<U7C69> \xF8\xFB |0
+<U7C6A> \xF8\xB8 |0
+<U7C6B> \xF8\xFC |0
+<U7C6C> \xC6\x58 |0
+<U7C6D> \x94\xEE |0
+<U7C6E> \xC6\x59 |0
+<U7C6F> \xF9\x6D |0
+<U7C70> \x9F\xBD |0
+<U7C72> \xC6\x7E |0
+<U7C73> \xA6\xCC |0
+<U7C74> \x8E\x7B |0
+<U7C75> \xCD\xA8 |0
+<U7C78> \xD0\x45 |0
+<U7C79> \xD0\x46 |0
+<U7C7A> \xD0\x44 |0
+<U7C7B> \x99\x57 |0
+<U7C7C> \x94\xF7 |0
+<U7C7D> \xAC\xF3 |0
+<U7C7E> \x9F\x5F |0
+<U7C7F> \xD0\x47 |0
+<U7C80> \xD0\x48 |0
+<U7C81> \xD0\x49 |0
+<U7C83> \x8E\x73 |0
+<U7C84> \xD3\x49 |0
+<U7C85> \xD3\x4F |0
+<U7C86> \x9F\x62 |0
+<U7C88> \xD3\x4D |0
+<U7C89> \xAF\xBB |0
+<U7C8A> \xD3\x4B |0
+<U7C8C> \xD3\x4C |0
+<U7C8D> \xD3\x4E |0
+<U7C8E> \x94\xF6 |0
+<U7C91> \xD3\x4A |0
+<U7C92> \xB2\xC9 |0
+<U7C94> \xD6\xDE |0
+<U7C95> \xB2\xCB |0
+<U7C96> \xD6\xE0 |0
+<U7C97> \xB2\xCA |0
+<U7C98> \xD6\xDF |0
+<U7C9C> \x99\x58 |0
+<U7C9E> \xDA\xE8 |0
+<U7C9F> \xB5\xAF |0
+<U7CA1> \xDA\xEA |0
+<U7CA2> \xDA\xE7 |0
+<U7CA3> \xD6\xE1 |0
+<U7CA5> \xB5\xB0 |0
+<U7CA6> \x8E\x75 |0
+<U7CA7> \xF9\xDB |0
+<U7CA8> \xDA\xE9 |0
+<U7CAC> \x90\x72 |0
+<U7CAE> \x94\xF8 |0
+<U7CAF> \xDF\x56 |0
+<U7CB1> \xB8\x64 |0
+<U7CB2> \xDF\x54 |0
+<U7CB3> \xB8\x65 |0
+<U7CB4> \xDF\x55 |0
+<U7CB5> \xB8\x66 |0
+<U7CB8> \x99\x5A |0
+<U7CB9> \xBA\xE9 |0
+<U7CBA> \xE3\x61 |0
+<U7CBB> \xE3\x5E |0
+<U7CBC> \xE3\x60 |0
+<U7CBD> \xBA\xEA |0
+<U7CBE> \xBA\xEB |0
+<U7CBF> \xE3\x5F |0
+<U7CC2> \xA0\xB0 |0
+<U7CC5> \xE6\xDF |0
+<U7CC7> \x8E\x79 |0
+<U7CC8> \xE6\xE0 |0
+<U7CC9> \x8E\x78 |0
+<U7CCA> \xBD\x6B |0
+<U7CCB> \xE6\xE2 |0
+<U7CCC> \xE6\xE1 |0
+<U7CCD> \x94\xF3 |0
+<U7CCE> \xA2\x61 |0
+<U7CD0> \xEA\xCA |0
+<U7CD1> \xEA\xCB |0
+<U7CD2> \xEA\xC7 |0
+<U7CD3> \x98\xAF |0
+<U7CD4> \xEA\xC8 |0
+<U7CD5> \xBF\x7C |0
+<U7CD6> \xBF\x7D |0
+<U7CD7> \xEA\xC9 |0
+<U7CD9> \xC1\x57 |0
+<U7CDA> \xA0\xB2 |0
+<U7CDC> \xC1\x53 |0
+<U7CDD> \xC1\x58 |0
+<U7CDE> \xC1\x54 |0
+<U7CDF> \xC1\x56 |0
+<U7CE0> \xC1\x52 |0
+<U7CE2> \xC1\x55 |0
+<U7CE6> \x8E\x7A |0
+<U7CE7> \xC2\xB3 |0
+<U7CE8> \xED\xCF |0
+<U7CEA> \xF2\xAE |0
+<U7CEC> \xF2\xAD |0
+<U7CED> \x99\x5C |0
+<U7CEE> \xF4\xAB |0
+<U7CEF> \xC4\x7A |0
+<U7CF0> \xC4\x7B |0
+<U7CF1> \xF7\x41 |0
+<U7CF2> \xF5\xE6 |0
+<U7CF3> \x8E\x7C |0
+<U7CF4> \xF7\x40 |0
+<U7CF5> \x8E\x7D |0
+<U7CF6> \xF8\xFD |0
+<U7CF7> \xF9\xA4 |0
+<U7CF8> \xA6\xCD |0
+<U7CF9> \x8B\xD9 |0
+<U7CFB> \xA8\x74 |0
+<U7CFC> \x89\xA2 |0
+<U7CFD> \xCD\xA9 |0
+<U7CFE> \xAA\xC8 |0
+<U7D00> \xAC\xF6 |0
+<U7D01> \xD0\x4C |0
+<U7D02> \xAC\xF4 |0
+<U7D03> \xD0\x4A |0
+<U7D04> \xAC\xF9 |0
+<U7D05> \xAC\xF5 |0
+<U7D06> \xAC\xFA |0
+<U7D07> \xAC\xF8 |0
+<U7D08> \xD0\x4B |0
+<U7D09> \xAC\xF7 |0
+<U7D0A> \xAF\xBF |0
+<U7D0B> \xAF\xBE |0
+<U7D0C> \xD3\x5A |0
+<U7D0D> \xAF\xC7 |0
+<U7D0E> \xD3\x53 |0
+<U7D0F> \xD3\x59 |0
+<U7D10> \xAF\xC3 |0
+<U7D11> \xD3\x52 |0
+<U7D12> \xD3\x58 |0
+<U7D13> \xD3\x56 |0
+<U7D14> \xAF\xC2 |0
+<U7D15> \xAF\xC4 |0
+<U7D16> \xD3\x55 |0
+<U7D17> \xAF\xBD |0
+<U7D18> \xD3\x54 |0
+<U7D19> \xAF\xC8 |0
+<U7D1A> \xAF\xC5 |0
+<U7D1B> \xAF\xC9 |0
+<U7D1C> \xAF\xC6 |0
+<U7D1D> \xD3\x51 |0
+<U7D1E> \xD3\x50 |0
+<U7D1F> \xD3\x57 |0
+<U7D20> \xAF\xC0 |0
+<U7D21> \xAF\xBC |0
+<U7D22> \xAF\xC1 |0
+<U7D25> \x9E\xD7 |0
+<U7D28> \xD6\xF0 |0
+<U7D29> \xD6\xE9 |0
+<U7D2B> \xB5\xB5 |0
+<U7D2C> \xD6\xE8 |0
+<U7D2E> \xB2\xCF |0
+<U7D2F> \xB2\xD6 |0
+<U7D30> \xB2\xD3 |0
+<U7D31> \xB2\xD9 |0
+<U7D32> \xB2\xD8 |0
+<U7D33> \xB2\xD4 |0
+<U7D35> \xD6\xE2 |0
+<U7D36> \xD6\xE5 |0
+<U7D38> \xD6\xE4 |0
+<U7D39> \xB2\xD0 |0
+<U7D3A> \xD6\xE6 |0
+<U7D3B> \xD6\xEF |0
+<U7D3C> \xB2\xD1 |0
+<U7D3D> \xD6\xE3 |0
+<U7D3E> \xD6\xEC |0
+<U7D3F> \xD6\xED |0
+<U7D40> \xB2\xD2 |0
+<U7D41> \xD6\xEA |0
+<U7D42> \xB2\xD7 |0
+<U7D43> \xB2\xCD |0
+<U7D44> \xB2\xD5 |0
+<U7D45> \xD6\xE7 |0
+<U7D46> \xB2\xCC |0
+<U7D47> \xD6\xEB |0
+<U7D4A> \xD6\xEE |0
+<U7D4D> \xA0\xB6 |0
+<U7D4E> \xDA\xFB |0
+<U7D4F> \xDA\xF2 |0
+<U7D50> \xB5\xB2 |0
+<U7D51> \xDA\xF9 |0
+<U7D52> \xDA\xF6 |0
+<U7D53> \xDA\xEE |0
+<U7D54> \xDA\xF7 |0
+<U7D55> \xB5\xB4 |0
+<U7D56> \xDA\xEF |0
+<U7D58> \xDA\xEB |0
+<U7D5A> \x9E\x42 |0
+<U7D5B> \xB8\x6C |0
+<U7D5C> \xDA\xF4 |0
+<U7D5D> \x8E\xA4 |0
+<U7D5E> \xB5\xB1 |0
+<U7D5F> \xDA\xFA |0
+<U7D61> \xB5\xB8 |0
+<U7D62> \xB5\xBA |0
+<U7D63> \xDA\xED |0
+<U7D66> \xB5\xB9 |0
+<U7D67> \xDA\xF0 |0
+<U7D68> \xB5\xB3 |0
+<U7D69> \xDA\xF8 |0
+<U7D6A> \xDA\xF1 |0
+<U7D6B> \xDA\xF5 |0
+<U7D6D> \xDA\xF3 |0
+<U7D6E> \xB5\xB6 |0
+<U7D6F> \xDA\xEC |0
+<U7D70> \xB5\xBB |0
+<U7D71> \xB2\xCE |0
+<U7D72> \xB5\xB7 |0
+<U7D73> \xB5\xBC |0
+<U7D79> \xB8\x68 |0
+<U7D7A> \xDF\x5D |0
+<U7D7B> \xDF\x5F |0
+<U7D7C> \xDF\x61 |0
+<U7D7D> \xDF\x65 |0
+<U7D7F> \xDF\x5B |0
+<U7D80> \xDF\x59 |0
+<U7D81> \xB8\x6A |0
+<U7D83> \xDF\x60 |0
+<U7D84> \xDF\x64 |0
+<U7D85> \xDF\x5C |0
+<U7D86> \xDF\x58 |0
+<U7D88> \xDF\x57 |0
+<U7D89> \x8E\xA7 |0
+<U7D8C> \xDF\x62 |0
+<U7D8D> \xDF\x5A |0
+<U7D8E> \xDF\x5E |0
+<U7D8F> \xB8\x6B |0
+<U7D91> \xB8\x69 |0
+<U7D92> \xDF\x66 |0
+<U7D93> \xB8\x67 |0
+<U7D94> \xDF\x63 |0
+<U7D96> \xE3\x72 |0
+<U7D97> \x95\x42 |0
+<U7D9C> \xBA\xEE |0
+<U7D9D> \xE3\x6A |0
+<U7D9E> \xBD\x78 |0
+<U7D9F> \xE3\x74 |0
+<U7DA0> \xBA\xF1 |0
+<U7DA1> \xE3\x78 |0
+<U7DA2> \xBA\xF7 |0
+<U7DA3> \xE3\x65 |0
+<U7DA4> \x98\x7D |0
+<U7DA6> \xE3\x75 |0
+<U7DA7> \xE3\x62 |0
+<U7DA8> \x97\x55 |0
+<U7DA9> \xE3\x77 |0
+<U7DAA> \xE3\x66 |0
+<U7DAB> \x8E\xA8 |0
+<U7DAC> \xBA\xFE |0
+<U7DAD> \xBA\xFB |0
+<U7DAE> \xE3\x76 |0
+<U7DAF> \xE3\x70 |0
+<U7DB0> \xBA\xED |0
+<U7DB1> \xBA\xF5 |0
+<U7DB2> \xBA\xF4 |0
+<U7DB3> \x8E\xAA |0
+<U7DB4> \xBA\xF3 |0
+<U7DB5> \xBA\xF9 |0
+<U7DB7> \xE3\x63 |0
+<U7DB8> \xBA\xFA |0
+<U7DB9> \xE3\x71 |0
+<U7DBA> \xBA\xF6 |0
+<U7DBB> \xBA\xEC |0
+<U7DBC> \xE3\x73 |0
+<U7DBD> \xBA\xEF |0
+<U7DBE> \xBA\xF0 |0
+<U7DBF> \xBA\xF8 |0
+<U7DC0> \xE3\x68 |0
+<U7DC1> \xE3\x67 |0
+<U7DC2> \xE3\x64 |0
+<U7DC4> \xE3\x6C |0
+<U7DC5> \xE3\x69 |0
+<U7DC6> \xE3\x6D |0
+<U7DC7> \xBA\xFD |0
+<U7DC9> \xE3\x79 |0
+<U7DCA> \xBA\xF2 |0
+<U7DCB> \xE3\x6E |0
+<U7DCC> \xE3\x6F |0
+<U7DCD> \x89\xA3 |0
+<U7DCE> \xE3\x6B |0
+<U7DCF> \x99\x60 |0
+<U7DD0> \x99\x62 |0
+<U7DD2> \xBA\xFC |0
+<U7DD3> \x94\xFC |0
+<U7DD4> \x99\x61 |0
+<U7DD7> \xE6\xE7 |0
+<U7DD8> \xBD\x70 |0
+<U7DD9> \xBD\x79 |0
+<U7DDA> \xBD\x75 |0
+<U7DDB> \xE6\xE4 |0
+<U7DDC> \x94\xFA |0
+<U7DDD> \xBD\x72 |0
+<U7DDE> \xBD\x76 |0
+<U7DDF> \xE6\xF0 |0
+<U7DE0> \xBD\x6C |0
+<U7DE1> \xE6\xE8 |0
+<U7DE3> \xBD\x74 |0
+<U7DE4> \x8E\xAE |0
+<U7DE5> \x8E\xB2 |0
+<U7DE6> \xE6\xEB |0
+<U7DE7> \xE6\xE6 |0
+<U7DE8> \xBD\x73 |0
+<U7DE9> \xBD\x77 |0
+<U7DEA> \xE6\xE5 |0
+<U7DEC> \xBD\x71 |0
+<U7DEE> \xE6\xEF |0
+<U7DEF> \xBD\x6E |0
+<U7DF0> \xE6\xEE |0
+<U7DF1> \xE6\xED |0
+<U7DF2> \xBD\x7A |0
+<U7DF3> \xE5\x72 |0
+<U7DF4> \xBD\x6D |0
+<U7DF5> \x8E\xB0 |0
+<U7DF6> \xE6\xEC |0
+<U7DF7> \xE6\xE3 |0
+<U7DF9> \xBD\x7B |0
+<U7DFA> \xE6\xEA |0
+<U7DFB> \xBD\x6F |0
+<U7DFD> \x99\x63 |0
+<U7DFE> \x97\xAA |0
+<U7E03> \xE6\xE9 |0
+<U7E07> \x94\xFB |0
+<U7E08> \xBF\xA2 |0
+<U7E09> \xBF\xA7 |0
+<U7E0A> \xBF\x7E |0
+<U7E0B> \xEA\xD8 |0
+<U7E0C> \xEA\xCF |0
+<U7E0D> \xEA\xDB |0
+<U7E0E> \xEA\xD3 |0
+<U7E0F> \xEA\xD9 |0
+<U7E10> \xBF\xA8 |0
+<U7E11> \xBF\xA1 |0
+<U7E12> \xEA\xCC |0
+<U7E13> \xEA\xD2 |0
+<U7E14> \xEA\xDC |0
+<U7E15> \xEA\xD5 |0
+<U7E16> \xEA\xDA |0
+<U7E17> \xEA\xCE |0
+<U7E1A> \xEA\xD6 |0
+<U7E1B> \xBF\xA3 |0
+<U7E1C> \xEA\xD4 |0
+<U7E1D> \xBF\xA6 |0
+<U7E1E> \xBF\xA5 |0
+<U7E1F> \xEA\xD0 |0
+<U7E20> \xEA\xD1 |0
+<U7E21> \xEA\xCD |0
+<U7E22> \xEA\xD7 |0
+<U7E23> \xBF\xA4 |0
+<U7E24> \xEA\xDE |0
+<U7E25> \xEA\xDD |0
+<U7E27> \x8E\xBB |0
+<U7E29> \xED\xDA |0
+<U7E2A> \xED\xD6 |0
+<U7E2B> \xC1\x5F |0
+<U7E2D> \xED\xD0 |0
+<U7E2E> \xC1\x59 |0
+<U7E2F> \xC1\x69 |0
+<U7E30> \xED\xDC |0
+<U7E31> \xC1\x61 |0
+<U7E32> \xC1\x5D |0
+<U7E33> \xED\xD3 |0
+<U7E34> \xC1\x64 |0
+<U7E35> \xC1\x67 |0
+<U7E36> \xED\xDE |0
+<U7E37> \xC1\x5C |0
+<U7E38> \xED\xD5 |0
+<U7E39> \xC1\x65 |0
+<U7E3A> \xED\xE0 |0
+<U7E3B> \xED\xDD |0
+<U7E3C> \xED\xD1 |0
+<U7E3D> \xC1\x60 |0
+<U7E3E> \xC1\x5A |0
+<U7E3F> \xC1\x68 |0
+<U7E40> \xED\xD8 |0
+<U7E41> \xC1\x63 |0
+<U7E42> \xED\xD2 |0
+<U7E43> \xC1\x5E |0
+<U7E44> \xED\xDF |0
+<U7E45> \xC1\x62 |0
+<U7E46> \xC1\x5B |0
+<U7E47> \xED\xD9 |0
+<U7E48> \xC1\x66 |0
+<U7E49> \xED\xD7 |0
+<U7E4C> \xED\xDB |0
+<U7E50> \xF0\x6E |0
+<U7E51> \xF0\x74 |0
+<U7E52> \xC2\xB9 |0
+<U7E53> \xF0\x77 |0
+<U7E54> \xC2\xB4 |0
+<U7E55> \xC2\xB5 |0
+<U7E56> \xF0\x6F |0
+<U7E57> \xF0\x76 |0
+<U7E58> \xF0\x71 |0
+<U7E59> \xC2\xBA |0
+<U7E5A> \xC2\xB7 |0
+<U7E5C> \xF0\x6D |0
+<U7E5E> \xC2\xB6 |0
+<U7E5F> \xF0\x73 |0
+<U7E60> \xF0\x75 |0
+<U7E61> \xC2\xB8 |0
+<U7E62> \xF0\x72 |0
+<U7E63> \xF0\x70 |0
+<U7E65> \x98\x76 |0
+<U7E67> \x8E\xA1 |0
+<U7E68> \xF2\xB8 |0
+<U7E69> \xC3\xB7 |0
+<U7E6A> \xC3\xB8 |0
+<U7E6B> \xC3\xB4 |0
+<U7E6D> \xC3\xB5 |0
+<U7E6E> \x8E\xB7 |0
+<U7E6F> \xF2\xB4 |0
+<U7E70> \xF2\xB2 |0
+<U7E72> \xF2\xB6 |0
+<U7E73> \xC3\xBA |0
+<U7E74> \xF2\xB7 |0
+<U7E75> \xF2\xB0 |0
+<U7E76> \xF2\xAF |0
+<U7E77> \xF2\xB3 |0
+<U7E78> \xF2\xB1 |0
+<U7E79> \xC3\xB6 |0
+<U7E7A> \xF2\xB5 |0
+<U7E7B> \xF4\xAC |0
+<U7E7C> \xC4\x7E |0
+<U7E7D> \xC4\x7D |0
+<U7E7E> \xF4\xAD |0
+<U7E7F> \x9D\xA6 |0
+<U7E80> \xF4\xAF |0
+<U7E81> \xF4\xAE |0
+<U7E82> \xC4\xA1 |0
+<U7E86> \xF5\xEB |0
+<U7E87> \xF5\xE8 |0
+<U7E88> \xF5\xE9 |0
+<U7E8A> \xF5\xE7 |0
+<U7E8B> \xF5\xEA |0
+<U7E8C> \xC4\xF2 |0
+<U7E8D> \xF5\xEC |0
+<U7E8E> \x9E\xB0 |0
+<U7E8F> \xC4\xF1 |0
+<U7E91> \xF7\x42 |0
+<U7E92> \x8E\xB8 |0
+<U7E93> \xC5\xD5 |0
+<U7E94> \xC5\xD7 |0
+<U7E95> \xF7\xEE |0
+<U7E96> \xC5\xD6 |0
+<U7E97> \xF8\xB9 |0
+<U7E98> \xF9\x40 |0
+<U7E99> \xF9\x42 |0
+<U7E9A> \xF8\xFE |0
+<U7E9B> \xF9\x41 |0
+<U7E9C> \xC6\x6C |0
+<U7E9F> \x9D\x70 |0
+<U7EA4> \x89\x6E |0
+<U7EAC> \x89\x6F |0
+<U7EBA> \x89\x70 |0
+<U7EC7> \x89\x71 |0
+<U7ECF> \x89\x72 |0
+<U7EDF> \x89\x73 |0
+<U7F06> \x89\x74 |0
+<U7F36> \xA6\xCE |0
+<U7F37> \x89\x75 |0
+<U7F38> \xAC\xFB |0
+<U7F39> \xD2\x6F |0
+<U7F3A> \xAF\xCA |0
+<U7F3D> \xB2\xDA |0
+<U7F3E> \xDA\xFC |0
+<U7F3F> \xDA\xFD |0
+<U7F40> \x8E\xBC |0
+<U7F41> \x8E\xBD |0
+<U7F43> \xEA\xDF |0
+<U7F44> \xC1\x6A |0
+<U7F45> \xED\xE1 |0
+<U7F47> \x8E\xBE |0
+<U7F48> \xC2\xBB |0
+<U7F49> \x9D\xD1 |0
+<U7F4A> \xF2\xBA |0
+<U7F4B> \xF2\xB9 |0
+<U7F4C> \xC4\xA2 |0
+<U7F4D> \xF5\xED |0
+<U7F4E> \x94\xFD |0
+<U7F4F> \xF7\x43 |0
+<U7F50> \xC5\xF8 |0
+<U7F51> \xCA\x49 |0
+<U7F52> \x8B\xD7 |0
+<U7F53> \x8B\xDA |0
+<U7F54> \xAA\xC9 |0
+<U7F55> \xA8\x75 |0
+<U7F58> \xD0\x4D |0
+<U7F5B> \xD3\x60 |0
+<U7F5C> \xD3\x5B |0
+<U7F5D> \xD3\x5F |0
+<U7F5E> \xD3\x5D |0
+<U7F5F> \xAF\xCB |0
+<U7F60> \xD3\x5E |0
+<U7F61> \xD3\x5C |0
+<U7F63> \xD6\xF1 |0
+<U7F65> \xDA\xFE |0
+<U7F66> \xDB\x40 |0
+<U7F67> \xDF\x69 |0
+<U7F68> \xDF\x6A |0
+<U7F69> \xB8\x6E |0
+<U7F6A> \xB8\x6F |0
+<U7F6B> \xDF\x68 |0
+<U7F6C> \xDF\x6B |0
+<U7F6D> \xDF\x67 |0
+<U7F6E> \xB8\x6D |0
+<U7F70> \xBB\x40 |0
+<U7F71> \xA0\xE2 |0
+<U7F72> \xB8\x70 |0
+<U7F73> \xE3\x7A |0
+<U7F75> \xBD\x7C |0
+<U7F76> \xE6\xF1 |0
+<U7F77> \xBD\x7D |0
+<U7F78> \x9F\xE9 |0
+<U7F79> \xBF\xA9 |0
+<U7F7A> \xEA\xE2 |0
+<U7F7B> \xEA\xE0 |0
+<U7F7C> \xEA\xE1 |0
+<U7F7D> \xED\xE4 |0
+<U7F7E> \xED\xE3 |0
+<U7F7F> \xED\xE2 |0
+<U7F83> \xF2\xBB |0
+<U7F85> \xC3\xB9 |0
+<U7F86> \xF2\xBC |0
+<U7F87> \xF7\x44 |0
+<U7F88> \xC5\xF9 |0
+<U7F89> \xF8\xBA |0
+<U7F8A> \xA6\xCF |0
+<U7F8B> \xAA\xCB |0
+<U7F8C> \xAA\xCA |0
+<U7F8D> \xD0\x4F |0
+<U7F8E> \xAC\xFC |0
+<U7F8F> \xFD\xA8 |0
+<U7F91> \xD0\x4E |0
+<U7F92> \xD3\x62 |0
+<U7F93> \x8A\xE7 |0
+<U7F94> \xAF\xCC |0
+<U7F95> \xD6\xF2 |0
+<U7F96> \xD3\x61 |0
+<U7F97> \x8E\xC2 |0
+<U7F9A> \xB2\xDC |0
+<U7F9B> \xD6\xF5 |0
+<U7F9C> \xD6\xF3 |0
+<U7F9D> \xD6\xF4 |0
+<U7F9E> \xB2\xDB |0
+<U7FA0> \xDB\x42 |0
+<U7FA1> \xDB\x43 |0
+<U7FA2> \xDB\x41 |0
+<U7FA3> \x8E\xC4 |0
+<U7FA4> \xB8\x73 |0
+<U7FA5> \xDF\x6D |0
+<U7FA6> \xDF\x6C |0
+<U7FA7> \xDF\x6E |0
+<U7FA8> \xB8\x72 |0
+<U7FA9> \xB8\x71 |0
+<U7FAC> \xE6\xF2 |0
+<U7FAD> \xE6\xF4 |0
+<U7FAE> \x99\x64 |0
+<U7FAF> \xBD\x7E |0
+<U7FB0> \xE6\xF3 |0
+<U7FB1> \xEA\xE3 |0
+<U7FB2> \xBF\xAA |0
+<U7FB3> \xF0\x79 |0
+<U7FB4> \x99\x65 |0
+<U7FB5> \xF0\x78 |0
+<U7FB6> \xC3\xBB |0
+<U7FB7> \xF2\xBD |0
+<U7FB8> \xC3\xBD |0
+<U7FB9> \xC3\xBC |0
+<U7FBA> \xF4\xB0 |0
+<U7FBB> \xF5\xEE |0
+<U7FBC> \xC4\xF3 |0
+<U7FBD> \xA6\xD0 |0
+<U7FBE> \xD0\x50 |0
+<U7FBF> \xAC\xFD |0
+<U7FC0> \xD3\x65 |0
+<U7FC1> \xAF\xCE |0
+<U7FC2> \xD3\x64 |0
+<U7FC3> \xD3\x63 |0
+<U7FC5> \xAF\xCD |0
+<U7FC7> \xD6\xFB |0
+<U7FC9> \xD6\xFD |0
+<U7FCA> \xD6\xF6 |0
+<U7FCB> \xD6\xF7 |0
+<U7FCC> \xB2\xDD |0
+<U7FCD> \xD6\xF8 |0
+<U7FCE> \xB2\xDE |0
+<U7FCF> \xD6\xFC |0
+<U7FD0> \xD6\xF9 |0
+<U7FD1> \xD6\xFA |0
+<U7FD2> \xB2\xDF |0
+<U7FD4> \xB5\xBE |0
+<U7FD5> \xB5\xBF |0
+<U7FD7> \xDB\x44 |0
+<U7FDB> \xDF\x6F |0
+<U7FDC> \xDF\x70 |0
+<U7FDD> \x95\x4E |0
+<U7FDE> \xE3\x7E |0
+<U7FDF> \xBB\x43 |0
+<U7FE0> \xBB\x41 |0
+<U7FE1> \xBB\x42 |0
+<U7FE2> \xE3\x7B |0
+<U7FE3> \xE3\x7C |0
+<U7FE5> \xE3\x7D |0
+<U7FE6> \xE6\xF9 |0
+<U7FE7> \x98\xB3 |0
+<U7FE8> \xE6\xFA |0
+<U7FE9> \xBD\xA1 |0
+<U7FEA> \xE6\xF7 |0
+<U7FEB> \xE6\xF6 |0
+<U7FEC> \xE6\xF8 |0
+<U7FED> \xE6\xF5 |0
+<U7FEE> \xBF\xAD |0
+<U7FEF> \xEA\xE4 |0
+<U7FF0> \xBF\xAB |0
+<U7FF1> \xBF\xAC |0
+<U7FF2> \xED\xE6 |0
+<U7FF3> \xC1\x6B |0
+<U7FF4> \xED\xE5 |0
+<U7FF5> \xEF\xA8 |0
+<U7FF7> \xF0\x7A |0
+<U7FF8> \xF0\x7B |0
+<U7FF9> \xC2\xBC |0
+<U7FFA> \x8E\xCB |0
+<U7FFB> \xC2\xBD |0
+<U7FFC> \xC1\x6C |0
+<U7FFD> \xF2\xBE |0
+<U7FFE> \xF2\xBF |0
+<U7FFF> \xF4\xB1 |0
+<U8000> \xC4\xA3 |0
+<U8001> \xA6\xD1 |0
+<U8002> \x8B\xDF |0
+<U8003> \xA6\xD2 |0
+<U8004> \xAC\xFE |0
+<U8005> \xAA\xCC |0
+<U8006> \xAF\xCF |0
+<U8007> \xD0\x51 |0
+<U8008> \x8E\xCE |0
+<U800B> \xB5\xC0 |0
+<U800C> \xA6\xD3 |0
+<U800D> \xAD\x41 |0
+<U800E> \xD0\x52 |0
+<U800F> \xD0\x53 |0
+<U8010> \xAD\x40 |0
+<U8011> \xAD\x42 |0
+<U8012> \xA6\xD4 |0
+<U8014> \xD0\x54 |0
+<U8015> \xAF\xD1 |0
+<U8016> \xD3\x66 |0
+<U8017> \xAF\xD3 |0
+<U8018> \xAF\xD0 |0
+<U8019> \xAF\xD2 |0
+<U801B> \xD7\x41 |0
+<U801C> \xB2\xE0 |0
+<U801D> \x8E\xCF |0
+<U801E> \xD7\x40 |0
+<U801F> \xD6\xFE |0
+<U8020> \x99\x68 |0
+<U8021> \xDF\x71 |0
+<U8024> \xE3\xA1 |0
+<U8025> \x99\x69 |0
+<U8026> \xBD\xA2 |0
+<U8028> \xBF\xAE |0
+<U8029> \xEA\xE6 |0
+<U802A> \xEA\xE5 |0
+<U802C> \xED\xE7 |0
+<U802E> \x99\x6B |0
+<U802F> \x8E\xD1 |0
+<U8030> \xF5\xEF |0
+<U8031> \x99\x6C |0
+<U8033> \xA6\xD5 |0
+<U8034> \xCB\x73 |0
+<U8035> \xCD\xAA |0
+<U8036> \xAD\x43 |0
+<U8037> \xD0\x55 |0
+<U8039> \xD3\x68 |0
+<U803B> \x8E\xD4 |0
+<U803C> \x8E\xD5 |0
+<U803D> \xAF\xD4 |0
+<U803E> \xD3\x67 |0
+<U803F> \xAF\xD5 |0
+<U8043> \xD7\x43 |0
+<U8046> \xB2\xE2 |0
+<U8047> \xD7\x42 |0
+<U8048> \xD7\x44 |0
+<U804A> \xB2\xE1 |0
+<U804F> \xDB\x46 |0
+<U8050> \xDB\x47 |0
+<U8051> \xDB\x45 |0
+<U8052> \xB5\xC1 |0
+<U8054> \x99\x6D |0
+<U8056> \xB8\x74 |0
+<U8058> \xB8\x75 |0
+<U805A> \xBB\x45 |0
+<U805B> \xA0\xBE |0
+<U805C> \xE3\xA3 |0
+<U805D> \xE3\xA2 |0
+<U805E> \xBB\x44 |0
+<U8061> \x8E\xD6 |0
+<U8062> \xA0\xBC |0
+<U8063> \xA0\xB5 |0
+<U8064> \xE6\xFB |0
+<U8066> \xA0\xB4 |0
+<U8067> \xE6\xFC |0
+<U806C> \xEA\xE7 |0
+<U806F> \xC1\x70 |0
+<U8070> \xC1\x6F |0
+<U8071> \xC1\x6D |0
+<U8072> \xC1\x6E |0
+<U8073> \xC1\x71 |0
+<U8075> \xF0\x7C |0
+<U8076> \xC2\xBF |0
+<U8077> \xC2\xBE |0
+<U8078> \xF2\xC0 |0
+<U8079> \xF4\xB2 |0
+<U807D> \xC5\xA5 |0
+<U807E> \xC5\xA4 |0
+<U807F> \xA6\xD6 |0
+<U8080> \x8B\xE0 |0
+<U8082> \xD1\xFB |0
+<U8084> \xB8\x77 |0
+<U8085> \xB5\xC2 |0
+<U8086> \xB8\x76 |0
+<U8087> \xBB\x46 |0
+<U8089> \xA6\xD7 |0
+<U808A> \xC9\xA9 |0
+<U808B> \xA6\xD8 |0
+<U808C> \xA6\xD9 |0
+<U808F> \xCD\xAB |0
+<U8090> \xCB\x76 |0
+<U8092> \xCB\x77 |0
+<U8093> \xA8\x77 |0
+<U8095> \xCB\x74 |0
+<U8096> \xA8\x76 |0
+<U8098> \xA8\x79 |0
+<U8099> \xCB\x75 |0
+<U809A> \xA8\x7B |0
+<U809B> \xA8\x7A |0
+<U809C> \xCB\x78 |0
+<U809D> \xA8\x78 |0
+<U809F> \x89\xB5 |0
+<U80A1> \xAA\xD1 |0
+<U80A2> \xAA\xCF |0
+<U80A3> \xCD\xAD |0
+<U80A5> \xAA\xCE |0
+<U80A7> \x8E\xDD |0
+<U80A9> \xAA\xD3 |0
+<U80AA> \xAA\xD5 |0
+<U80AB> \xAA\xD2 |0
+<U80AD> \xCD\xB0 |0
+<U80AE> \xCD\xAC |0
+<U80AF> \xAA\xD6 |0
+<U80B1> \xAA\xD0 |0
+<U80B2> \xA8\x7C |0
+<U80B4> \xAA\xD4 |0
+<U80B5> \xCD\xAF |0
+<U80B6> \x9E\x5D |0
+<U80B7> \x99\x71 |0
+<U80B8> \xCD\xAE |0
+<U80BA> \xAA\xCD |0
+<U80BC> \x89\xAE |0
+<U80BD> \x9D\xE8 |0
+<U80C2> \xD0\x5B |0
+<U80C3> \xAD\x47 |0
+<U80C4> \xAD\x48 |0
+<U80C5> \xD0\x5D |0
+<U80C6> \x95\x65 |0
+<U80C7> \xD0\x57 |0
+<U80C8> \xD0\x5A |0
+<U80C9> \xD0\x63 |0
+<U80CA> \xD0\x61 |0
+<U80CC> \xAD\x49 |0
+<U80CD> \xD0\x67 |0
+<U80CE> \xAD\x4C |0
+<U80CF> \xD0\x64 |0
+<U80D0> \xD0\x5C |0
+<U80D1> \xD0\x59 |0
+<U80D4> \xDB\x49 |0
+<U80D5> \xD0\x62 |0
+<U80D6> \xAD\x44 |0
+<U80D7> \xD0\x65 |0
+<U80D8> \xD0\x56 |0
+<U80D9> \xD0\x5F |0
+<U80DA> \xAD\x46 |0
+<U80DB> \xAD\x4B |0
+<U80DC> \xD0\x60 |0
+<U80DD> \xAD\x4F |0
+<U80DE> \xAD\x4D |0
+<U80E0> \xD0\x58 |0
+<U80E1> \xAD\x4A |0
+<U80E3> \xD0\x5E |0
+<U80E4> \xAD\x4E |0
+<U80E5> \xAD\x45 |0
+<U80E6> \xD0\x66 |0
+<U80E9> \x99\x72 |0
+<U80EC> \x8B\x5C |0
+<U80ED> \xAF\xDA |0
+<U80EF> \xAF\xE3 |0
+<U80F0> \xAF\xD8 |0
+<U80F1> \xAF\xD6 |0
+<U80F2> \xD3\x6A |0
+<U80F3> \xAF\xDE |0
+<U80F4> \xAF\xDB |0
+<U80F5> \xD3\x6C |0
+<U80F6> \x89\xB1 |0
+<U80F8> \xAF\xDD |0
+<U80F9> \xD3\x6B |0
+<U80FA> \xD3\x69 |0
+<U80FB> \xD3\x6E |0
+<U80FC> \xAF\xE2 |0
+<U80FD> \xAF\xE0 |0
+<U80FE> \xDB\x48 |0
+<U8100> \xD3\x6F |0
+<U8101> \xD3\x6D |0
+<U8102> \xAF\xD7 |0
+<U8103> \xA0\xC0 |0
+<U8105> \xAF\xD9 |0
+<U8106> \xAF\xDC |0
+<U8107> \x8E\xDF |0
+<U8108> \xAF\xDF |0
+<U8109> \x95\x66 |0
+<U810A> \xAF\xE1 |0
+<U810C> \x99\x74 |0
+<U810E> \x99\x76 |0
+<U8112> \x99\x77 |0
+<U8114> \x99\x79 |0
+<U8115> \xD7\x4E |0
+<U8116> \xB2\xE4 |0
+<U8117> \x9D\xDA |0
+<U8118> \xD7\x45 |0
+<U8119> \xD7\x47 |0
+<U811A> \x8E\xE0 |0
+<U811B> \xD7\x48 |0
+<U811D> \xD7\x50 |0
+<U811E> \xD7\x4C |0
+<U811F> \xD7\x4A |0
+<U8121> \xD7\x4D |0
+<U8122> \xD7\x51 |0
+<U8123> \xB2\xE5 |0
+<U8124> \xB2\xE9 |0
+<U8125> \xD7\x46 |0
+<U8127> \xD7\x4F |0
+<U8129> \xB2\xE7 |0
+<U812A> \x93\x5C |0
+<U812B> \xB2\xE6 |0
+<U812C> \xD7\x4B |0
+<U812D> \xD7\x49 |0
+<U812F> \xB2\xE3 |0
+<U8130> \xB2\xE8 |0
+<U8132> \x9D\xE6 |0
+<U8134> \x8B\x5F |0
+<U8137> \x95\x63 |0
+<U8139> \xB5\xC8 |0
+<U813A> \xDB\x51 |0
+<U813D> \xDB\x4F |0
+<U813E> \xB5\xCA |0
+<U8142> \x95\x67 |0
+<U8143> \xDB\x4A |0
+<U8144> \xDF\xA1 |0
+<U8146> \xB5\xC9 |0
+<U8147> \xDB\x4E |0
+<U8148> \x9D\xE3 |0
+<U814A> \xDB\x4B |0
+<U814B> \xB5\xC5 |0
+<U814C> \xB5\xCB |0
+<U814D> \xDB\x50 |0
+<U814E> \xB5\xC7 |0
+<U814F> \xDB\x4D |0
+<U8150> \xBB\x47 |0
+<U8151> \xB5\xC6 |0
+<U8152> \xDB\x4C |0
+<U8153> \xB5\xCC |0
+<U8154> \xB5\xC4 |0
+<U8155> \xB5\xC3 |0
+<U8156> \x99\x7C |0
+<U8159> \x99\x7D |0
+<U815A> \x99\x7E |0
+<U815B> \xDF\x77 |0
+<U815C> \xDF\x75 |0
+<U815E> \xDF\x7B |0
+<U8160> \xDF\x73 |0
+<U8161> \xDF\xA2 |0
+<U8162> \xDF\x78 |0
+<U8164> \xDF\x72 |0
+<U8165> \xB8\x7B |0
+<U8166> \xB8\xA3 |0
+<U8167> \xDF\x7D |0
+<U8169> \xDF\x76 |0
+<U816B> \xB8\x7E |0
+<U816D> \x8B\x5B |0
+<U816E> \xB8\x7C |0
+<U816F> \xDF\x7E |0
+<U8170> \xB8\x79 |0
+<U8171> \xB8\x78 |0
+<U8172> \xDF\x79 |0
+<U8173> \xB8\x7D |0
+<U8174> \xB5\xCD |0
+<U8176> \xDF\x7C |0
+<U8177> \xDF\x74 |0
+<U8178> \xB8\x7A |0
+<U8179> \xB8\xA1 |0
+<U817A> \xB8\xA2 |0
+<U817C> \x99\xA3 |0
+<U817F> \xBB\x4C |0
+<U8180> \xBB\x48 |0
+<U8182> \xBB\x4D |0
+<U8183> \xE3\xA6 |0
+<U8184> \x99\xA4 |0
+<U8186> \xE3\xA5 |0
+<U8187> \xE3\xA7 |0
+<U8188> \xBB\x4A |0
+<U8189> \xE3\xA4 |0
+<U818A> \xBB\x4B |0
+<U818B> \xE3\xAA |0
+<U818C> \xE3\xA9 |0
+<U818D> \xE3\xA8 |0
+<U818F> \xBB\x49 |0
+<U8193> \x99\xA6 |0
+<U8195> \xE7\x41 |0
+<U8197> \xE7\x44 |0
+<U8198> \xBD\xA8 |0
+<U8199> \xE7\x43 |0
+<U819A> \xBD\xA7 |0
+<U819B> \xBD\xA3 |0
+<U819C> \xBD\xA4 |0
+<U819D> \xBD\xA5 |0
+<U819E> \xE7\x40 |0
+<U819F> \xE6\xFE |0
+<U81A0> \xBD\xA6 |0
+<U81A2> \xE7\x42 |0
+<U81A3> \xE6\xFD |0
+<U81A5> \x99\xA8 |0
+<U81A6> \xEA\xE9 |0
+<U81A7> \xEA\xF3 |0
+<U81A8> \xBF\xB1 |0
+<U81A9> \xBF\xB0 |0
+<U81AA> \x8A\xBE |0
+<U81AB> \xEA\xED |0
+<U81AC> \xEA\xEF |0
+<U81AE> \xEA\xEA |0
+<U81B0> \xEA\xEE |0
+<U81B1> \xEA\xE8 |0
+<U81B2> \xEA\xF1 |0
+<U81B3> \xBF\xAF |0
+<U81B4> \xEA\xF0 |0
+<U81B5> \xEA\xEC |0
+<U81B6> \x9E\x61 |0
+<U81B7> \xEA\xF2 |0
+<U81B9> \xEA\xEB |0
+<U81BA> \xC1\x74 |0
+<U81BB> \xED\xE8 |0
+<U81BC> \xED\xEE |0
+<U81BD> \xC1\x78 |0
+<U81BE> \xC1\x7A |0
+<U81BF> \xC1\x77 |0
+<U81C0> \xC1\x76 |0
+<U81C1> \x99\xAA |0
+<U81C2> \xC1\x75 |0
+<U81C3> \xC1\x73 |0
+<U81C4> \xED\xE9 |0
+<U81C5> \xED\xEC |0
+<U81C6> \xC1\x72 |0
+<U81C7> \xED\xED |0
+<U81C8> \xA0\xC8 |0
+<U81C9> \xC1\x79 |0
+<U81CA> \xED\xEB |0
+<U81CC> \xED\xEA |0
+<U81CD> \xC2\xC0 |0
+<U81CF> \xC2\xC1 |0
+<U81D0> \xF0\xA1 |0
+<U81D1> \xF0\x7D |0
+<U81D2> \xF0\x7E |0
+<U81D5> \xF2\xC2 |0
+<U81D7> \xF2\xC1 |0
+<U81D8> \xC3\xBE |0
+<U81D9> \xF4\xB4 |0
+<U81DA> \xC4\xA4 |0
+<U81DB> \xF4\xB3 |0
+<U81DD> \xF5\xF0 |0
+<U81DE> \xF7\x45 |0
+<U81DF> \xC5\xA6 |0
+<U81E0> \xF9\x43 |0
+<U81E1> \xF9\x44 |0
+<U81E2> \xC5\xD8 |0
+<U81E3> \xA6\xDA |0
+<U81E4> \x99\xAB |0
+<U81E5> \xAA\xD7 |0
+<U81E6> \xDB\x52 |0
+<U81E7> \xBB\x4E |0
+<U81E8> \xC1\x7B |0
+<U81E9> \xED\xEF |0
+<U81EA> \xA6\xDB |0
+<U81EC> \xAF\xE5 |0
+<U81ED> \xAF\xE4 |0
+<U81EE> \xDB\x53 |0
+<U81EF> \xFE\xC4 |0
+<U81F2> \xEA\xF4 |0
+<U81F3> \xA6\xDC |0
+<U81F4> \xAD\x50 |0
+<U81F6> \x98\xC2 |0
+<U81F7> \xDB\x54 |0
+<U81F8> \xDB\x55 |0
+<U81F9> \xDB\x56 |0
+<U81FA> \xBB\x4F |0
+<U81FB> \xBF\xB2 |0
+<U81FC> \xA6\xDD |0
+<U81FE> \xAA\xD8 |0
+<U81FF> \xD0\x68 |0
+<U8200> \xAF\xE6 |0
+<U8201> \xD3\x70 |0
+<U8202> \xB2\xEA |0
+<U8204> \xDB\x57 |0
+<U8205> \xB8\xA4 |0
+<U8207> \xBB\x50 |0
+<U8208> \xBF\xB3 |0
+<U8209> \xC1\x7C |0
+<U820A> \xC2\xC2 |0
+<U820B> \xF4\xB5 |0
+<U820C> \xA6\xDE |0
+<U820D> \xAA\xD9 |0
+<U8210> \xAF\xE7 |0
+<U8211> \xD7\x52 |0
+<U8212> \xB5\xCE |0
+<U8214> \xBB\x51 |0
+<U8215> \xE3\xAB |0
+<U8216> \xE7\x45 |0
+<U8218> \x8E\xE8 |0
+<U821A> \xA0\xBA |0
+<U821B> \xA6\xDF |0
+<U821C> \xB5\xCF |0
+<U821D> \xDF\xA3 |0
+<U821E> \xBB\x52 |0
+<U821F> \xA6\xE0 |0
+<U8220> \xCD\xB1 |0
+<U8221> \xD0\x69 |0
+<U8222> \xAD\x51 |0
+<U8225> \xD3\x72 |0
+<U8226> \xFD\x77 |0
+<U8228> \xAF\xEA |0
+<U8229> \x8E\xEE |0
+<U822A> \xAF\xE8 |0
+<U822B> \xAF\xE9 |0
+<U822C> \xAF\xEB |0
+<U822D> \x9E\xBF |0
+<U822F> \xD3\x71 |0
+<U8232> \xD7\x57 |0
+<U8233> \xD7\x54 |0
+<U8234> \xD7\x56 |0
+<U8235> \xB2\xEB |0
+<U8236> \xB2\xED |0
+<U8237> \xB2\xEC |0
+<U8238> \xD7\x53 |0
+<U8239> \xB2\xEE |0
+<U823A> \xD7\x55 |0
+<U823C> \xDB\x58 |0
+<U823D> \xDB\x59 |0
+<U823E> \x89\xC2 |0
+<U823F> \xDB\x5A |0
+<U8240> \xDF\xA6 |0
+<U8242> \xDF\xA7 |0
+<U8244> \xDF\xA5 |0
+<U8245> \xDF\xA8 |0
+<U8247> \xB8\xA5 |0
+<U8249> \xDF\xA4 |0
+<U824B> \xBB\x53 |0
+<U824E> \xE7\x4A |0
+<U824F> \xE7\x46 |0
+<U8250> \xE7\x49 |0
+<U8251> \xE7\x4B |0
+<U8252> \xE7\x48 |0
+<U8253> \xE7\x47 |0
+<U8254> \x99\xAC |0
+<U8255> \xEA\xF5 |0
+<U8256> \xEA\xF6 |0
+<U8257> \xEA\xF7 |0
+<U8258> \xBF\xB4 |0
+<U8259> \xBF\xB5 |0
+<U825A> \xED\xF1 |0
+<U825B> \xED\xF0 |0
+<U825C> \xED\xF2 |0
+<U825E> \xF0\xA3 |0
+<U825F> \xF0\xA2 |0
+<U8261> \xF2\xC4 |0
+<U8262> \x95\x6B |0
+<U8263> \xF2\xC5 |0
+<U8264> \xF2\xC3 |0
+<U8265> \x95\x6C |0
+<U8266> \xC4\xA5 |0
+<U8268> \xF4\xB6 |0
+<U8269> \xF4\xB7 |0
+<U826B> \xF7\x46 |0
+<U826C> \xF7\xEF |0
+<U826D> \xF8\xBB |0
+<U826E> \xA6\xE1 |0
+<U826F> \xA8\x7D |0
+<U8271> \xC1\x7D |0
+<U8272> \xA6\xE2 |0
+<U8274> \xD7\x58 |0
+<U8275> \xDB\x5B |0
+<U8276> \x99\xAF |0
+<U8277> \xC6\x41 |0
+<U8278> \xCA\x4A |0
+<U8279> \x99\x4A |0
+<U827A> \x89\x76 |0
+<U827B> \x8F\x48 |0
+<U827C> \xCA\x4B |0
+<U827D> \xCA\x4D |0
+<U827E> \xA6\xE3 |0
+<U827F> \xCA\x4E |0
+<U8280> \xCA\x4C |0
+<U8283> \xCB\xA2 |0
+<U8284> \xCB\xA3 |0
+<U8285> \xCB\x7B |0
+<U8287> \xFB\xEE |0
+<U828A> \xCB\xA1 |0
+<U828B> \xA8\xA1 |0
+<U828D> \xA8\xA2 |0
+<U828E> \xCB\x7C |0
+<U828F> \xCB\x7A |0
+<U8290> \xCB\x79 |0
+<U8291> \xCB\x7D |0
+<U8292> \xA8\x7E |0
+<U8293> \xCB\x7E |0
+<U8294> \xD0\x6A |0
+<U8298> \xCD\xB6 |0
+<U8299> \xAA\xDC |0
+<U829A> \xCD\xB5 |0
+<U829B> \xCD\xB7 |0
+<U829D> \xAA\xDB |0
+<U829E> \xCD\xBC |0
+<U829F> \xAA\xDF |0
+<U82A0> \xCD\xB2 |0
+<U82A1> \xCD\xC0 |0
+<U82A2> \xCD\xC6 |0
+<U82A3> \xAA\xE6 |0
+<U82A4> \xCD\xC3 |0
+<U82A5> \xAA\xE3 |0
+<U82A6> \x99\xAE |0
+<U82A7> \xCD\xB9 |0
+<U82A8> \xCD\xBF |0
+<U82A9> \xCD\xC1 |0
+<U82AA> \x8E\xFB |0
+<U82AB> \xCD\xB4 |0
+<U82AC> \xAA\xE2 |0
+<U82AD> \xAA\xDD |0
+<U82AE> \xCD\xBA |0
+<U82AF> \xAA\xE4 |0
+<U82B0> \xAA\xE7 |0
+<U82B1> \xAA\xE1 |0
+<U82B3> \xAA\xDA |0
+<U82B4> \xCD\xBE |0
+<U82B5> \xCD\xB8 |0
+<U82B6> \xCD\xC5 |0
+<U82B7> \xAA\xE9 |0
+<U82B8> \xAA\xE5 |0
+<U82B9> \xAA\xE0 |0
+<U82BA> \xCD\xBD |0
+<U82BB> \xAF\xEC |0
+<U82BC> \xCD\xBB |0
+<U82BD> \xAA\xDE |0
+<U82BE> \xAA\xE8 |0
+<U82C0> \xCD\xB3 |0
+<U82C2> \xCD\xC2 |0
+<U82C3> \xCD\xC4 |0
+<U82C4> \x8B\x52 |0
+<U82CA> \x99\xB0 |0
+<U82CF> \x89\x77 |0
+<U82D0> \x8F\x41 |0
+<U82D1> \xAD\x62 |0
+<U82D2> \xAD\x5C |0
+<U82D3> \xAD\x64 |0
+<U82D4> \xAD\x61 |0
+<U82D5> \xD0\x71 |0
+<U82D6> \xD0\x74 |0
+<U82D7> \xAD\x5D |0
+<U82D8> \x99\xB1 |0
+<U82D9> \xD0\x6B |0
+<U82DB> \xAD\x56 |0
+<U82DC> \xAD\x60 |0
+<U82DE> \xAD\x63 |0
+<U82DF> \xAD\x65 |0
+<U82E0> \xD0\xA2 |0
+<U82E1> \xD0\x77 |0
+<U82E2> \x8F\x49 |0
+<U82E3> \xAD\x55 |0
+<U82E4> \xD0\xA1 |0
+<U82E5> \xAD\x59 |0
+<U82E6> \xAD\x57 |0
+<U82E7> \xAD\x52 |0
+<U82E8> \xD0\x6F |0
+<U82EA> \xD0\x7E |0
+<U82EB> \xD0\x73 |0
+<U82EC> \xD0\x76 |0
+<U82ED> \xD0\xA5 |0
+<U82EE> \xFA\x4D |0
+<U82EF> \xAD\x66 |0
+<U82F0> \xD0\x7D |0
+<U82F1> \xAD\x5E |0
+<U82F2> \xD0\x78 |0
+<U82F3> \xD0\xA4 |0
+<U82F4> \xD0\x75 |0
+<U82F5> \xD0\x79 |0
+<U82F6> \xD0\x7C |0
+<U82F7> \x9D\xE4 |0
+<U82F9> \xD0\x6D |0
+<U82FA> \xD0\xA3 |0
+<U82FB> \xD0\x7B |0
+<U82FC> \xFB\xE9 |0
+<U82FD> \x9B\x54 |0
+<U82FE> \xD0\x6C |0
+<U82FF> \x99\xB2 |0
+<U8300> \xD0\x70 |0
+<U8301> \xAD\x5F |0
+<U8302> \xAD\x5A |0
+<U8303> \xAD\x53 |0
+<U8304> \xAD\x58 |0
+<U8305> \xAD\x54 |0
+<U8306> \xAD\x67 |0
+<U8307> \xD0\x6E |0
+<U8308> \xD3\xA5 |0
+<U8309> \xAD\x5B |0
+<U830B> \x9E\x68 |0
+<U830C> \xD0\x7A |0
+<U830D> \xCE\x41 |0
+<U8316> \xD3\xA8 |0
+<U8317> \xAF\xFA |0
+<U8318> \x8F\x4A |0
+<U8319> \xD3\x76 |0
+<U831A> \x8F\x42 |0
+<U831B> \xD3\xA3 |0
+<U831C> \xD3\x7D |0
+<U831D> \x8F\x51 |0
+<U831E> \xD3\xB2 |0
+<U8320> \xD3\xAA |0
+<U8322> \xD3\x7E |0
+<U8324> \xD3\xA9 |0
+<U8325> \xD3\x78 |0
+<U8326> \xD3\x7C |0
+<U8327> \xD3\xB5 |0
+<U8328> \xAF\xFD |0
+<U8329> \xD3\xAD |0
+<U832A> \xD3\xA4 |0
+<U832B> \xAF\xED |0
+<U832C> \xD3\xB3 |0
+<U832D> \xD3\x74 |0
+<U832F> \xD3\xAC |0
+<U8331> \xAF\xFC |0
+<U8332> \xAF\xF7 |0
+<U8333> \xD3\x73 |0
+<U8334> \xAF\xF5 |0
+<U8335> \xAF\xF4 |0
+<U8336> \xAF\xF9 |0
+<U8337> \xD3\xAB |0
+<U8338> \xAF\xF1 |0
+<U8339> \xAF\xF8 |0
+<U833A> \xD0\x72 |0
+<U833B> \xDB\x5C |0
+<U833C> \xD3\xA6 |0
+<U833D> \x98\x46 |0
+<U833F> \xD3\x7A |0
+<U8340> \xAF\xFB |0
+<U8341> \xD3\x7B |0
+<U8342> \xD3\xA1 |0
+<U8343> \xAF\xFE |0
+<U8344> \xD3\x75 |0
+<U8345> \xD3\xAF |0
+<U8347> \xD3\xAE |0
+<U8348> \xD3\xB6 |0
+<U8349> \xAF\xF3 |0
+<U834A> \xAF\xF0 |0
+<U834B> \xD3\xB4 |0
+<U834C> \xD3\xB0 |0
+<U834D> \xD3\xA7 |0
+<U834E> \xD3\xA2 |0
+<U834F> \xAF\xF6 |0
+<U8350> \xAF\xF2 |0
+<U8351> \xD3\x77 |0
+<U8352> \xAF\xEE |0
+<U8353> \xD3\xB1 |0
+<U8354> \xAF\xEF |0
+<U8356> \xD3\x79 |0
+<U8357> \x99\xB4 |0
+<U8362> \x8E\xF5 |0
+<U8363> \xFD\x55 |0
+<U8366> \x9C\xCD |0
+<U836F> \x89\x78 |0
+<U8373> \xD7\x5E |0
+<U8374> \xD7\x60 |0
+<U8375> \xD7\x65 |0
+<U8376> \xD7\x79 |0
+<U8377> \xB2\xFC |0
+<U8378> \xB2\xF2 |0
+<U837A> \xD7\x5D |0
+<U837B> \xB2\xFD |0
+<U837C> \xB2\xFE |0
+<U837D> \xD7\x68 |0
+<U837E> \xD7\x6F |0
+<U837F> \xD7\x75 |0
+<U8381> \xD7\x62 |0
+<U8383> \xD7\x69 |0
+<U8385> \x8F\x53 |0
+<U8386> \xB3\x40 |0
+<U8387> \xD7\x77 |0
+<U8388> \xD7\x72 |0
+<U8389> \xB2\xFA |0
+<U838A> \xB2\xF8 |0
+<U838B> \xD7\x6E |0
+<U838C> \xD7\x6A |0
+<U838D> \xD7\x5C |0
+<U838E> \xB2\xEF |0
+<U838F> \xD7\x61 |0
+<U8390> \xD7\x59 |0
+<U8391> \x8F\x6F |0
+<U8392> \xB2\xF7 |0
+<U8393> \xB2\xF9 |0
+<U8394> \xD7\x66 |0
+<U8395> \xD7\x63 |0
+<U8396> \xB2\xF4 |0
+<U8397> \xD7\x73 |0
+<U8398> \xB2\xF1 |0
+<U8399> \xD7\x64 |0
+<U839A> \xD7\x7A |0
+<U839B> \xD7\x6C |0
+<U839C> \x8E\x63 |0
+<U839D> \xD7\x6B |0
+<U839E> \xB2\xF0 |0
+<U83A0> \xB2\xFB |0
+<U83A2> \xB2\xF3 |0
+<U83A3> \xD7\x5A |0
+<U83A4> \xD7\x5F |0
+<U83A5> \xD7\x70 |0
+<U83A6> \xD7\x76 |0
+<U83A7> \xB3\x41 |0
+<U83A8> \xD7\x5B |0
+<U83A9> \xD7\x67 |0
+<U83AA> \xD7\x6D |0
+<U83AB> \xB2\xF6 |0
+<U83AC> \x8F\x56 |0
+<U83AE> \xD7\x78 |0
+<U83AF> \xD7\x71 |0
+<U83B0> \xD7\x74 |0
+<U83B9> \xFE\x76 |0
+<U83BD> \xB2\xF5 |0
+<U83BE> \x9F\xC6 |0
+<U83BF> \xDB\x6C |0
+<U83C0> \xDB\x60 |0
+<U83C1> \xB5\xD7 |0
+<U83C2> \xDB\x7D |0
+<U83C3> \xDB\xA7 |0
+<U83C4> \xDB\xAA |0
+<U83C5> \xB5\xD5 |0
+<U83C6> \xDB\x68 |0
+<U83C7> \xDB\xA3 |0
+<U83C8> \xDB\x69 |0
+<U83C9> \xDB\x77 |0
+<U83CA> \xB5\xE2 |0
+<U83CB> \xDB\x73 |0
+<U83CC> \xB5\xDF |0
+<U83CD> \xFA\xAC |0
+<U83CE> \xDB\x74 |0
+<U83CF> \xDB\x5D |0
+<U83D1> \xDB\xA4 |0
+<U83D3> \x8F\x58 |0
+<U83D4> \xB5\xE8 |0
+<U83D5> \xDB\xA1 |0
+<U83D6> \xDB\x75 |0
+<U83D7> \xDB\xAC |0
+<U83D8> \xDB\x70 |0
+<U83D9> \xDF\xC8 |0
+<U83DB> \xDB\xAF |0
+<U83DC> \xB5\xE6 |0
+<U83DD> \xDB\x6E |0
+<U83DE> \xDB\x7A |0
+<U83DF> \xB5\xE9 |0
+<U83E0> \xB5\xD4 |0
+<U83E1> \xDB\x72 |0
+<U83E2> \xDB\xAD |0
+<U83E3> \xDB\x6B |0
+<U83E4> \xDB\x64 |0
+<U83E5> \xDB\x6F |0
+<U83E7> \xDB\x63 |0
+<U83E8> \xDB\x61 |0
+<U83E9> \xB5\xD0 |0
+<U83EA> \xDB\xA5 |0
+<U83EB> \xDB\x6A |0
+<U83EC> \xDB\xA8 |0
+<U83ED> \x98\x48 |0
+<U83EE> \xDB\xA9 |0
+<U83EF> \xB5\xD8 |0
+<U83F0> \xB5\xDD |0
+<U83F1> \xB5\xD9 |0
+<U83F2> \xB5\xE1 |0
+<U83F3> \xDB\x7E |0
+<U83F4> \xB5\xDA |0
+<U83F5> \xDB\x76 |0
+<U83F6> \xDB\x66 |0
+<U83F8> \xB5\xD2 |0
+<U83F9> \xDB\x5E |0
+<U83FA> \xDB\xA2 |0
+<U83FB> \xDB\xAB |0
+<U83FC> \xDB\x65 |0
+<U83FD> \xB5\xE0 |0
+<U83FE> \xDB\xB0 |0
+<U83FF> \xDB\x71 |0
+<U8401> \xDB\x6D |0
+<U8403> \xB5\xD1 |0
+<U8404> \xB5\xE5 |0
+<U8405> \x99\xB7 |0
+<U8406> \xDB\x7C |0
+<U8407> \xB5\xE7 |0
+<U8409> \xDB\x78 |0
+<U840A> \xB5\xDC |0
+<U840B> \xB5\xD6 |0
+<U840C> \xB5\xDE |0
+<U840D> \xB5\xD3 |0
+<U840E> \xB5\xE4 |0
+<U840F> \xDB\x79 |0
+<U8410> \xDB\x67 |0
+<U8411> \xDB\x7B |0
+<U8412> \xDB\x62 |0
+<U8413> \xDB\xA6 |0
+<U8414> \x96\x65 |0
+<U8416> \xFA\x6C |0
+<U8418> \x9D\xE7 |0
+<U841B> \xDB\xAE |0
+<U841C> \x9E\x62 |0
+<U8420> \x96\xCC |0
+<U8421> \x8E\x67 |0
+<U8423> \xDB\x5F |0
+<U8424> \xFC\x75 |0
+<U8426> \x98\x7E |0
+<U8429> \xDF\xC7 |0
+<U842B> \xDF\xDD |0
+<U842C> \xB8\x55 |0
+<U842D> \xDF\xCC |0
+<U842E> \xFD\xB9 |0
+<U842F> \xDF\xCA |0
+<U8430> \xDF\xB5 |0
+<U8431> \xB8\xA9 |0
+<U8432> \xDF\xC5 |0
+<U8433> \xDF\xD9 |0
+<U8434> \xDF\xC1 |0
+<U8435> \xB8\xB1 |0
+<U8436> \xDF\xD8 |0
+<U8437> \xDF\xBF |0
+<U8438> \xB5\xE3 |0
+<U8439> \xDF\xCF |0
+<U843A> \xDF\xC0 |0
+<U843B> \xDF\xD6 |0
+<U843C> \xB8\xB0 |0
+<U843D> \xB8\xA8 |0
+<U843E> \x97\xFC |0
+<U843F> \xDF\xAA |0
+<U8440> \xDF\xB2 |0
+<U8442> \xDF\xCB |0
+<U8443> \xDF\xC3 |0
+<U8444> \xDF\xDC |0
+<U8445> \xDF\xC6 |0
+<U8446> \xB8\xB6 |0
+<U8447> \xDF\xD7 |0
+<U8448> \x98\xF9 |0
+<U8449> \xB8\xAD |0
+<U844A> \x8F\x66 |0
+<U844B> \xDF\xC9 |0
+<U844C> \xDF\xD1 |0
+<U844D> \xDF\xB6 |0
+<U844E> \xDF\xD0 |0
+<U8450> \xDF\xE1 |0
+<U8451> \xDF\xB1 |0
+<U8452> \xDF\xD2 |0
+<U8453> \x95\x6E |0
+<U8454> \xDF\xDF |0
+<U8455> \x92\x45 |0
+<U8456> \xDF\xAB |0
+<U8457> \xB5\xDB |0
+<U8458> \x8F\x60 |0
+<U8459> \xDF\xB9 |0
+<U845A> \xDF\xB8 |0
+<U845B> \xB8\xAF |0
+<U845C> \x9E\xD1 |0
+<U845D> \xDF\xBC |0
+<U845E> \xDF\xBE |0
+<U845F> \xDF\xCD |0
+<U8460> \xDF\xDE |0
+<U8461> \xB8\xB2 |0
+<U8462> \xFE\xCD |0
+<U8463> \xB8\xB3 |0
+<U8464> \x99\xB9 |0
+<U8465> \xDF\xB0 |0
+<U8466> \xB8\xAB |0
+<U8467> \xDF\xB4 |0
+<U8468> \xDF\xDA |0
+<U8469> \xB8\xB4 |0
+<U846B> \xB8\xAC |0
+<U846C> \xB8\xAE |0
+<U846D> \xB8\xB5 |0
+<U846E> \xDF\xE0 |0
+<U846F> \xDF\xD3 |0
+<U8470> \xDF\xCE |0
+<U8471> \x8F\x62 |0
+<U8472> \x97\x4C |0
+<U8473> \xDF\xBB |0
+<U8474> \xDF\xBA |0
+<U8475> \xB8\xAA |0
+<U8476> \xDF\xAC |0
+<U8477> \xB8\xA7 |0
+<U8478> \xDF\xC4 |0
+<U8479> \xDF\xAD |0
+<U847A> \xDF\xC2 |0
+<U847D> \xDF\xB7 |0
+<U847E> \xDF\xDB |0
+<U847F> \x91\xC7 |0
+<U8480> \x95\x5F |0
+<U8482> \xB8\xA6 |0
+<U8486> \xDF\xB3 |0
+<U8488> \x99\xBB |0
+<U848D> \xDF\xAF |0
+<U848E> \xDF\xD5 |0
+<U848F> \xDF\xAE |0
+<U8490> \xBB\x60 |0
+<U8491> \xE3\xD3 |0
+<U8492> \x8E\x6D |0
+<U8493> \x8F\x71 |0
+<U8494> \xE3\xC2 |0
+<U8496> \x94\xCB |0
+<U8497> \xE3\xAC |0
+<U8498> \xE3\xCA |0
+<U8499> \xBB\x58 |0
+<U849A> \xE3\xBB |0
+<U849B> \xE3\xC5 |0
+<U849C> \xBB\x5B |0
+<U849D> \xE3\xBE |0
+<U849E> \xBB\x59 |0
+<U849F> \xE3\xAF |0
+<U84A0> \xE3\xCD |0
+<U84A1> \xE3\xAE |0
+<U84A2> \xE3\xC1 |0
+<U84A3> \x95\xB1 |0
+<U84A4> \xE3\xAD |0
+<U84A7> \xE3\xBF |0
+<U84A8> \xE3\xC8 |0
+<U84A9> \xE3\xC6 |0
+<U84AA> \xE3\xBA |0
+<U84AB> \xE3\xB5 |0
+<U84AC> \xE3\xB3 |0
+<U84AD> \x9A\xF2 |0
+<U84AE> \xE3\xB4 |0
+<U84AF> \xE3\xC7 |0
+<U84B0> \xE3\xD2 |0
+<U84B1> \xE3\xBC |0
+<U84B2> \xBB\x5A |0
+<U84B4> \xE3\xB7 |0
+<U84B6> \xE3\xCB |0
+<U84B8> \xBB\x5D |0
+<U84B9> \xE3\xB6 |0
+<U84BA> \xE3\xB0 |0
+<U84BB> \xE3\xC0 |0
+<U84BC> \xBB\x61 |0
+<U84BD> \x96\xC3 |0
+<U84BE> \x99\xBD |0
+<U84BF> \xBB\x55 |0
+<U84C0> \xBB\x5E |0
+<U84C1> \xE3\xB8 |0
+<U84C2> \xE3\xB2 |0
+<U84C4> \xBB\x57 |0
+<U84C5> \xDF\xD4 |0
+<U84C6> \xBB\x56 |0
+<U84C7> \xE3\xC3 |0
+<U84C9> \xBB\x54 |0
+<U84CA> \xBB\x63 |0
+<U84CB> \xBB\x5C |0
+<U84CC> \xE3\xC4 |0
+<U84CD> \xE3\xB9 |0
+<U84CE> \xE3\xB1 |0
+<U84CF> \xE3\xCC |0
+<U84D0> \xE3\xBD |0
+<U84D1> \xBB\x62 |0
+<U84D2> \xE3\xD0 |0
+<U84D3> \xBB\x5F |0
+<U84D4> \xE3\xCF |0
+<U84D6> \xE3\xC9 |0
+<U84D7> \xE3\xCE |0
+<U84DA> \xA0\xCF |0
+<U84DB> \xE3\xD1 |0
+<U84DE> \x8F\x6D |0
+<U84E1> \x99\xBE |0
+<U84E2> \x8E\xF4 |0
+<U84E4> \x8F\x72 |0
+<U84E5> \x95\xE4 |0
+<U84E7> \xE7\x73 |0
+<U84E8> \xE7\x74 |0
+<U84E9> \xE7\x67 |0
+<U84EA> \xE7\x66 |0
+<U84EB> \xE7\x62 |0
+<U84EC> \xBD\xB4 |0
+<U84EE> \xBD\xAC |0
+<U84EF> \xE7\x76 |0
+<U84F0> \xE7\x75 |0
+<U84F1> \xDF\xA9 |0
+<U84F2> \xE7\x5F |0
+<U84F3> \xE7\x63 |0
+<U84F4> \xE7\x5D |0
+<U84F6> \xE7\x70 |0
+<U84F7> \xE7\x61 |0
+<U84F8> \x99\xBF |0
+<U84F9> \xE7\x77 |0
+<U84FA> \xE7\x5A |0
+<U84FB> \xE7\x58 |0
+<U84FC> \xE7\x64 |0
+<U84FD> \xE7\x6E |0
+<U84FE> \xE7\x69 |0
+<U84FF> \xBD\xB6 |0
+<U8500> \xE7\x4F |0
+<U8502> \xE7\x6D |0
+<U8503> \x92\x42 |0
+<U8505> \xFB\xA5 |0
+<U8506> \xBD\xB7 |0
+<U8507> \xDF\xBD |0
+<U8508> \xE7\x5B |0
+<U8509> \xE7\x52 |0
+<U850A> \xE7\x55 |0
+<U850B> \xE7\x7B |0
+<U850C> \xE7\x5C |0
+<U850D> \xE7\x53 |0
+<U850E> \xE7\x51 |0
+<U850F> \xE7\x4E |0
+<U8510> \x99\xC0 |0
+<U8511> \xBD\xB0 |0
+<U8512> \xE7\x65 |0
+<U8513> \xBD\xAF |0
+<U8514> \xBD\xB3 |0
+<U8515> \xE7\x60 |0
+<U8516> \xE7\x68 |0
+<U8517> \xBD\xA9 |0
+<U8518> \xE7\x78 |0
+<U8519> \xE7\x7C |0
+<U851A> \xBD\xAB |0
+<U851C> \xE7\x57 |0
+<U851D> \xE7\x6B |0
+<U851E> \xE7\x6F |0
+<U851F> \xE7\x54 |0
+<U8520> \xE7\x79 |0
+<U8521> \xBD\xB2 |0
+<U8523> \xBD\xB1 |0
+<U8524> \xE7\x4C |0
+<U8525> \xBD\xB5 |0
+<U8526> \xE7\x72 |0
+<U8527> \xE7\x56 |0
+<U8528> \xE7\x6A |0
+<U8529> \xE7\x50 |0
+<U852A> \xE7\x5E |0
+<U852B> \xE7\x59 |0
+<U852C> \xBD\xAD |0
+<U852D> \xBD\xAE |0
+<U852E> \xE7\x6C |0
+<U852F> \xE7\x7D |0
+<U8530> \xE7\x7A |0
+<U8531> \xE7\x71 |0
+<U8533> \xFD\xB4 |0
+<U8534> \x8F\x77 |0
+<U8538> \x99\xC1 |0
+<U853B> \xE7\x4D |0
+<U853D> \xBD\xAA |0
+<U853E> \xEB\x49 |0
+<U8540> \xEB\x40 |0
+<U8541> \xEB\x43 |0
+<U8542> \xFA\xB9 |0
+<U8543> \xBF\xBB |0
+<U8544> \xEB\x45 |0
+<U8545> \xEA\xF9 |0
+<U8546> \xEB\x41 |0
+<U8547> \xEB\x47 |0
+<U8548> \xBF\xB8 |0
+<U8549> \xBF\xBC |0
+<U854A> \xBF\xB6 |0
+<U854B> \x8F\x40 |0
+<U854C> \xFA\x44 |0
+<U854D> \xEA\xFB |0
+<U854E> \xEB\x4C |0
+<U8551> \xEB\x46 |0
+<U8552> \x99\xC2 |0
+<U8553> \xEA\xFC |0
+<U8554> \xEB\x55 |0
+<U8555> \xEB\x4F |0
+<U8556> \xEA\xF8 |0
+<U8557> \xEE\x46 |0
+<U8558> \xEA\xFE |0
+<U8559> \xBF\xB7 |0
+<U855A> \x8F\x5C |0
+<U855B> \xEB\x4A |0
+<U855D> \xEB\x54 |0
+<U855E> \xBF\xBF |0
+<U8560> \xEB\x51 |0
+<U8561> \xEA\xFD |0
+<U8562> \xEB\x44 |0
+<U8563> \xEB\x48 |0
+<U8564> \xEB\x42 |0
+<U8565> \xEB\x56 |0
+<U8566> \xEB\x53 |0
+<U8567> \xEB\x50 |0
+<U8568> \xBF\xB9 |0
+<U8569> \xBF\xBA |0
+<U856A> \xBF\xBE |0
+<U856B> \xEA\xFA |0
+<U856C> \xEB\x57 |0
+<U856D> \xBF\xBD |0
+<U856E> \xEB\x4D |0
+<U856F> \x99\xC4 |0
+<U8570> \x99\xC5 |0
+<U8571> \xEB\x4B |0
+<U8573> \x8F\x7B |0
+<U8575> \xEB\x4E |0
+<U8576> \xEE\x53 |0
+<U8577> \xEE\x40 |0
+<U8578> \xEE\x45 |0
+<U8579> \xEE\x52 |0
+<U857A> \xEE\x44 |0
+<U857B> \xED\xFB |0
+<U857C> \xEE\x41 |0
+<U857E> \xC1\xA2 |0
+<U8580> \xED\xF4 |0
+<U8581> \xEE\x4D |0
+<U8582> \xEE\x4F |0
+<U8583> \xED\xF3 |0
+<U8584> \xC1\xA1 |0
+<U8585> \xEE\x51 |0
+<U8586> \xEE\x49 |0
+<U8587> \xC1\xA8 |0
+<U8588> \xEE\x50 |0
+<U8589> \xEE\x42 |0
+<U858A> \xC1\xAA |0
+<U858B> \xED\xF9 |0
+<U858C> \xEB\x52 |0
+<U858D> \xEE\x4A |0
+<U858E> \xEE\x47 |0
+<U858F> \xED\xF5 |0
+<U8590> \xEE\x55 |0
+<U8591> \xC1\xA4 |0
+<U8594> \xC1\xA5 |0
+<U8595> \xED\xF7 |0
+<U8596> \xEE\x48 |0
+<U8598> \xEE\x54 |0
+<U8599> \xEE\x4B |0
+<U859A> \xED\xFD |0
+<U859B> \xC1\xA7 |0
+<U859C> \xC1\xA3 |0
+<U859D> \xEE\x4C |0
+<U859E> \xED\xFE |0
+<U859F> \xEE\x56 |0
+<U85A0> \xED\xF8 |0
+<U85A1> \xEE\x43 |0
+<U85A2> \xEE\x4E |0
+<U85A3> \xED\xFA |0
+<U85A4> \xED\xFC |0
+<U85A6> \xC2\xCB |0
+<U85A7> \xED\xF6 |0
+<U85A8> \xC1\xA9 |0
+<U85A9> \xC2\xC4 |0
+<U85AA> \xC1\x7E |0
+<U85AF> \xC1\xA6 |0
+<U85B0> \xC2\xC8 |0
+<U85B1> \xF0\xB3 |0
+<U85B3> \xF0\xA9 |0
+<U85B4> \xF0\xA4 |0
+<U85B5> \xF0\xAA |0
+<U85B6> \xF0\xB4 |0
+<U85B7> \xF0\xB8 |0
+<U85B8> \xF0\xB7 |0
+<U85B9> \xC2\xCA |0
+<U85BA> \xC2\xC9 |0
+<U85BD> \xF0\xAB |0
+<U85BE> \xF0\xB9 |0
+<U85BF> \xF0\xAE |0
+<U85C0> \xF0\xA6 |0
+<U85C1> \x8F\xA3 |0
+<U85C2> \xF0\xA8 |0
+<U85C3> \xF0\xA7 |0
+<U85C4> \xF0\xAD |0
+<U85C5> \xF0\xB2 |0
+<U85C6> \xF0\xA5 |0
+<U85C7> \xF0\xAC |0
+<U85C8> \xF0\xB1 |0
+<U85C9> \xC2\xC7 |0
+<U85CB> \xF0\xAF |0
+<U85CD> \xC2\xC5 |0
+<U85CE> \xF0\xB0 |0
+<U85CF> \xC2\xC3 |0
+<U85D0> \xC2\xC6 |0
+<U85D1> \xF2\xD5 |0
+<U85D2> \xF0\xB5 |0
+<U85D5> \xC3\xC2 |0
+<U85D7> \xF2\xCD |0
+<U85D8> \xF2\xD1 |0
+<U85D9> \xF2\xC9 |0
+<U85DA> \xF2\xCC |0
+<U85DC> \xF2\xD4 |0
+<U85DD> \xC3\xC0 |0
+<U85DE> \xF2\xD9 |0
+<U85DF> \xF2\xD2 |0
+<U85E0> \x99\xC6 |0
+<U85E1> \xF2\xCA |0
+<U85E2> \xF2\xDA |0
+<U85E3> \xF2\xD3 |0
+<U85E4> \xC3\xC3 |0
+<U85E5> \xC3\xC4 |0
+<U85E6> \xF2\xD7 |0
+<U85E8> \xF2\xCB |0
+<U85E9> \xC3\xBF |0
+<U85EA> \xC3\xC1 |0
+<U85EB> \xF2\xC6 |0
+<U85EC> \xF2\xCE |0
+<U85ED> \xF2\xC8 |0
+<U85EE> \x96\xCD |0
+<U85EF> \xF2\xD8 |0
+<U85F0> \xF2\xD6 |0
+<U85F1> \xF2\xC7 |0
+<U85F2> \xF2\xCF |0
+<U85F6> \xF4\xBE |0
+<U85F7> \xC3\xC5 |0
+<U85F8> \xF2\xD0 |0
+<U85F9> \xC4\xA7 |0
+<U85FA> \xC4\xA9 |0
+<U85FB> \xC4\xA6 |0
+<U85FC> \x96\xC7 |0
+<U85FD> \xF4\xC3 |0
+<U85FE> \xF4\xBB |0
+<U85FF> \xF4\xB9 |0
+<U8600> \xF4\xBD |0
+<U8601> \xF4\xBA |0
+<U8602> \x8F\xA5 |0
+<U8604> \xF4\xBF |0
+<U8605> \xF4\xC1 |0
+<U8606> \xC4\xAA |0
+<U8607> \xC4\xAC |0
+<U8609> \xF4\xC0 |0
+<U860A> \xC4\xAD |0
+<U860B> \xC4\xAB |0
+<U860C> \xF4\xC2 |0
+<U860D> \xFA\xBB |0
+<U8610> \x95\x70 |0
+<U8611> \xC4\xA8 |0
+<U8614> \x93\x68 |0
+<U8616> \x8F\x7E |0
+<U8617> \xC4\xF4 |0
+<U8618> \xF5\xF1 |0
+<U8619> \xF5\xF7 |0
+<U861A> \xC4\xF6 |0
+<U861B> \xF4\xBC |0
+<U861C> \xF5\xF6 |0
+<U861E> \xF5\xFD |0
+<U861F> \xF5\xF4 |0
+<U8620> \xF5\xFB |0
+<U8621> \xF5\xFA |0
+<U8622> \xF4\xB8 |0
+<U8623> \xF5\xF5 |0
+<U8624> \xF0\xB6 |0
+<U8625> \xF5\xFE |0
+<U8626> \xF5\xF3 |0
+<U8627> \xF5\xF8 |0
+<U8628> \x8F\xAA |0
+<U8629> \xF5\xFC |0
+<U862A> \xF5\xF2 |0
+<U862C> \xF7\x4A |0
+<U862D> \xC4\xF5 |0
+<U862E> \xF5\xF9 |0
+<U862F> \xA0\x50 |0
+<U8631> \xF7\xF4 |0
+<U8632> \xF7\x4B |0
+<U8633> \xF7\x49 |0
+<U8634> \xF7\x47 |0
+<U8635> \xF7\x48 |0
+<U8636> \xF7\x4C |0
+<U8638> \xC5\xD9 |0
+<U8639> \xF7\xF2 |0
+<U863A> \xF7\xF0 |0
+<U863B> \xF7\xF5 |0
+<U863C> \xF7\xF3 |0
+<U863E> \xF7\xF6 |0
+<U863F> \xC5\xDA |0
+<U8640> \xF7\xF1 |0
+<U8642> \x90\xD3 |0
+<U8643> \xF8\xBC |0
+<U8645> \x95\x56 |0
+<U8646> \xF9\x45 |0
+<U8647> \xF9\x46 |0
+<U8648> \xF9\x47 |0
+<U864B> \xF9\xC7 |0
+<U864C> \xF9\xBD |0
+<U864D> \xCA\x4F |0
+<U864E> \xAA\xEA |0
+<U8650> \xAD\x68 |0
+<U8652> \xD3\xB8 |0
+<U8653> \xD3\xB7 |0
+<U8654> \xB0\x40 |0
+<U8655> \xB3\x42 |0
+<U8656> \xD7\x7C |0
+<U8659> \xD7\x7B |0
+<U865B> \xB5\xEA |0
+<U865C> \xB8\xB8 |0
+<U865E> \xB8\xB7 |0
+<U865F> \xB8\xB9 |0
+<U8661> \xE3\xD4 |0
+<U8662> \xE7\x7E |0
+<U8663> \xEB\x58 |0
+<U8664> \xEB\x5A |0
+<U8665> \xEB\x59 |0
+<U8667> \xC1\xAB |0
+<U8668> \xEE\x57 |0
+<U8669> \xF0\xBA |0
+<U866A> \xF9\xA5 |0
+<U866B> \xA6\xE4 |0
+<U866C> \x8F\xB8 |0
+<U866D> \xCD\xC9 |0
+<U866E> \xCD\xCA |0
+<U866F> \xCD\xC8 |0
+<U8670> \xCD\xC7 |0
+<U8671> \xAA\xEB |0
+<U8672> \x99\xC8 |0
+<U8673> \xD0\xA9 |0
+<U8674> \xD0\xA7 |0
+<U8677> \xD0\xA6 |0
+<U8679> \xAD\x69 |0
+<U867A> \xAD\x6B |0
+<U867B> \xAD\x6A |0
+<U867C> \xD0\xA8 |0
+<U867E> \x8F\xAF |0
+<U8685> \xD3\xC4 |0
+<U8686> \xD3\xC1 |0
+<U8687> \xD3\xBF |0
+<U868A> \xB0\x41 |0
+<U868B> \xD3\xC2 |0
+<U868C> \xB0\x46 |0
+<U868D> \xD3\xBC |0
+<U868E> \xD3\xCB |0
+<U8690> \xD3\xCD |0
+<U8691> \xD3\xBD |0
+<U8692> \x99\xC9 |0
+<U8693> \xB0\x43 |0
+<U8694> \xD3\xCE |0
+<U8695> \xD3\xC9 |0
+<U8696> \xD3\xBB |0
+<U8697> \xD3\xC0 |0
+<U8698> \xD3\xCA |0
+<U8699> \xD3\xC6 |0
+<U869A> \xD3\xC3 |0
+<U869C> \xB0\x48 |0
+<U869D> \xD3\xCC |0
+<U869E> \xD3\xBE |0
+<U86A0> \x95\x79 |0
+<U86A1> \xD3\xC7 |0
+<U86A2> \xD3\xB9 |0
+<U86A3> \xB0\x47 |0
+<U86A4> \xB0\x44 |0
+<U86A5> \xD3\xC5 |0
+<U86A7> \xD3\xC8 |0
+<U86A8> \xD3\xBA |0
+<U86A9> \xB0\x45 |0
+<U86AA> \xB0\x42 |0
+<U86AD> \x9F\x49 |0
+<U86AF> \xB3\x4C |0
+<U86B0> \xD7\xA5 |0
+<U86B1> \xB3\x4B |0
+<U86B2> \x99\xCA |0
+<U86B3> \xD7\xA8 |0
+<U86B4> \xD7\xAB |0
+<U86B5> \xB3\x48 |0
+<U86B6> \xB3\x46 |0
+<U86B7> \xD7\x7E |0
+<U86B8> \xD7\xA9 |0
+<U86B9> \xD7\xA7 |0
+<U86BA> \xD7\xA4 |0
+<U86BB> \xD7\xAC |0
+<U86BC> \xD7\xAD |0
+<U86BD> \xD7\xAF |0
+<U86BE> \xD7\xB0 |0
+<U86BF> \xD7\x7D |0
+<U86C0> \xB3\x45 |0
+<U86C1> \xD7\xA2 |0
+<U86C2> \xD7\xA1 |0
+<U86C3> \xD7\xAE |0
+<U86C4> \xB3\x47 |0
+<U86C5> \xD7\xA3 |0
+<U86C6> \xB3\x49 |0
+<U86C7> \xB3\x44 |0
+<U86C8> \xD7\xA6 |0
+<U86C9> \xB3\x4D |0
+<U86CB> \xB3\x4A |0
+<U86CC> \xD7\xAA |0
+<U86D0> \xB5\xF1 |0
+<U86D1> \xDB\xBF |0
+<U86D3> \xDB\xB4 |0
+<U86D4> \xB5\xEE |0
+<U86D6> \xDF\xE7 |0
+<U86D7> \xDB\xBD |0
+<U86D8> \xDB\xB1 |0
+<U86D9> \xB5\xEC |0
+<U86DA> \xDB\xB6 |0
+<U86DB> \xB5\xEF |0
+<U86DC> \xDB\xBA |0
+<U86DD> \xDB\xB8 |0
+<U86DE> \xB5\xF2 |0
+<U86DF> \xB5\xEB |0
+<U86E2> \xDB\xB2 |0
+<U86E3> \xDB\xB5 |0
+<U86E4> \xB5\xF0 |0
+<U86E6> \xDB\xB3 |0
+<U86E8> \xDB\xBE |0
+<U86E9> \xDB\xBC |0
+<U86EA> \xDB\xB7 |0
+<U86EB> \xDB\xB9 |0
+<U86EC> \xDB\xBB |0
+<U86ED> \xB5\xED |0
+<U86EF> \x99\xCB |0
+<U86F5> \xDF\xE8 |0
+<U86F6> \xDF\xEE |0
+<U86F7> \xDF\xE4 |0
+<U86F8> \xDF\xEA |0
+<U86F9> \xB8\xBA |0
+<U86FA> \xDF\xE6 |0
+<U86FB> \xB8\xC0 |0
+<U86FE> \xB8\xBF |0
+<U8700> \xB8\xBE |0
+<U8701> \xDF\xED |0
+<U8702> \xB8\xC1 |0
+<U8703> \xB8\xC2 |0
+<U8704> \xDF\xE3 |0
+<U8705> \xDF\xF0 |0
+<U8706> \xB8\xC3 |0
+<U8707> \xB8\xBD |0
+<U8708> \xB8\xBC |0
+<U8709> \xDF\xEC |0
+<U870A> \xB8\xC4 |0
+<U870B> \xDF\xE2 |0
+<U870C> \xDF\xE5 |0
+<U870D> \xDF\xEF |0
+<U870E> \xDF\xEB |0
+<U8711> \xE3\xF4 |0
+<U8712> \xE3\xE9 |0
+<U8713> \xB8\xBB |0
+<U8718> \xBB\x6A |0
+<U8719> \xE3\xDD |0
+<U871A> \xE3\xF2 |0
+<U871B> \xE3\xDE |0
+<U871C> \xBB\x65 |0
+<U871E> \xE3\xDB |0
+<U8720> \xE3\xE4 |0
+<U8721> \xE3\xDC |0
+<U8722> \xBB\x67 |0
+<U8723> \xE3\xD6 |0
+<U8724> \xE3\xF1 |0
+<U8725> \xBB\x68 |0
+<U8726> \xE3\xEE |0
+<U8727> \xE3\xEF |0
+<U8728> \xE3\xD7 |0
+<U8728> \x95\x7A |3
+<U8729> \xBB\x6D |0
+<U872A> \xE3\xE6 |0
+<U872C> \xE3\xE0 |0
+<U872D> \xE3\xE7 |0
+<U872E> \xE3\xDA |0
+<U8730> \xE3\xF3 |0
+<U8731> \xE3\xEB |0
+<U8732> \xE3\xE5 |0
+<U8733> \xE3\xD5 |0
+<U8734> \xBB\x69 |0
+<U8735> \xE3\xEC |0
+<U8737> \xBB\x6C |0
+<U8738> \xE3\xF0 |0
+<U873A> \xE3\xEA |0
+<U873B> \xBB\x66 |0
+<U873C> \xE3\xE8 |0
+<U873E> \xE3\xE2 |0
+<U873F> \xBB\x64 |0
+<U8740> \xE3\xD9 |0
+<U8741> \xE3\xE1 |0
+<U8742> \xE3\xED |0
+<U8743> \xE3\xDF |0
+<U8746> \xE3\xE3 |0
+<U874C> \xBD\xC1 |0
+<U874D> \xDF\xE9 |0
+<U874E> \xE7\xB2 |0
+<U874F> \xE7\xBB |0
+<U8750> \xE7\xB1 |0
+<U8751> \xE7\xAD |0
+<U8752> \xE7\xAA |0
+<U8753> \xBD\xC2 |0
+<U8754> \xE7\xA8 |0
+<U8755> \xBB\x6B |0
+<U8756> \xE7\xA1 |0
+<U8757> \xBD\xC0 |0
+<U8758> \xE7\xA7 |0
+<U8759> \xBD\xBF |0
+<U875A> \xE7\xAC |0
+<U875B> \xE7\xA9 |0
+<U875C> \xE7\xB9 |0
+<U875D> \xE7\xB4 |0
+<U875E> \xE7\xAE |0
+<U875F> \xE7\xB3 |0
+<U8760> \xBD\xBB |0
+<U8761> \xE7\xAB |0
+<U8762> \xE7\xBE |0
+<U8763> \xE7\xA2 |0
+<U8764> \xE7\xA3 |0
+<U8765> \xE7\xBA |0
+<U8766> \xBD\xBC |0
+<U8767> \xE7\xBF |0
+<U8768> \xBD\xBE |0
+<U8769> \xE7\xC0 |0
+<U876A> \xE7\xB0 |0
+<U876B> \xE3\xD8 |0
+<U876C> \xE7\xB6 |0
+<U876D> \xE7\xAF |0
+<U876E> \xE7\xB8 |0
+<U876F> \xE7\xB5 |0
+<U8770> \x9D\xD5 |0
+<U8771> \x8F\xB0 |0
+<U8773> \xE7\xA6 |0
+<U8774> \xBD\xB9 |0
+<U8775> \xE7\xBD |0
+<U8776> \xBD\xBA |0
+<U8777> \xE7\xA4 |0
+<U8778> \xBD\xBD |0
+<U8779> \xEB\x64 |0
+<U877A> \xE7\xB7 |0
+<U877B> \xE7\xBC |0
+<U877D> \xFA\x7A |0
+<U8781> \xEB\x61 |0
+<U8782> \xBD\xB8 |0
+<U8783> \xBF\xC0 |0
+<U8784> \xEB\x6B |0
+<U8785> \xEB\x67 |0
+<U8786> \x9E\x5F |0
+<U8787> \xEB\x65 |0
+<U8788> \xEB\x60 |0
+<U8789> \xEB\x6F |0
+<U878B> \x99\xCD |0
+<U878C> \xA0\xC9 |0
+<U878D> \xBF\xC4 |0
+<U878F> \xEB\x5C |0
+<U8790> \xEB\x68 |0
+<U8791> \xEB\x69 |0
+<U8792> \xEB\x5F |0
+<U8793> \xEB\x5E |0
+<U8794> \xEB\x6C |0
+<U8796> \xEB\x62 |0
+<U8797> \xEB\x5D |0
+<U8798> \xEB\x63 |0
+<U879A> \xEB\x6E |0
+<U879B> \xEB\x5B |0
+<U879C> \xEB\x6D |0
+<U879D> \xEB\x6A |0
+<U879E> \xBF\xC2 |0
+<U879F> \xBF\xC1 |0
+<U87A2> \xBF\xC3 |0
+<U87A3> \xEB\x66 |0
+<U87A4> \xF0\xCB |0
+<U87A5> \x9A\xDB |0
+<U87A9> \xA0\xC6 |0
+<U87AA> \xEE\x59 |0
+<U87AB> \xC1\xB1 |0
+<U87AC> \xEE\x5D |0
+<U87AD> \xEE\x5A |0
+<U87AE> \xEE\x61 |0
+<U87AF> \xEE\x67 |0
+<U87B0> \xEE\x5C |0
+<U87B1> \x8F\xB4 |0
+<U87B2> \xEE\x70 |0
+<U87B3> \xC1\xAE |0
+<U87B4> \xEE\x6A |0
+<U87B5> \xEE\x5F |0
+<U87B6> \xEE\x6B |0
+<U87B7> \xEE\x66 |0
+<U87B8> \xEE\x6D |0
+<U87B9> \xEE\x5E |0
+<U87BA> \xC1\xB3 |0
+<U87BB> \xC1\xB2 |0
+<U87BC> \xEE\x60 |0
+<U87BD> \xEE\x6E |0
+<U87BE> \xEE\x58 |0
+<U87BF> \xEE\x6C |0
+<U87C0> \xC1\xAC |0
+<U87C1> \xA0\xD7 |0
+<U87C2> \xEE\x64 |0
+<U87C3> \xEE\x63 |0
+<U87C4> \xEE\x68 |0
+<U87C5> \xEE\x5B |0
+<U87C6> \xC1\xB0 |0
+<U87C8> \xC1\xB4 |0
+<U87C9> \xEE\x62 |0
+<U87CA> \xEE\x69 |0
+<U87CB> \xC1\xB5 |0
+<U87CC> \xEE\x65 |0
+<U87CE> \xA0\xC7 |0
+<U87D1> \xC1\xAD |0
+<U87D2> \xC1\xAF |0
+<U87D3> \xF0\xC7 |0
+<U87D4> \xF0\xC5 |0
+<U87D6> \xA0\x43 |0
+<U87D7> \xF0\xCC |0
+<U87D8> \xF0\xC9 |0
+<U87D9> \xF0\xCD |0
+<U87DA> \x8F\xB5 |0
+<U87DB> \xF0\xBE |0
+<U87DC> \xF0\xC6 |0
+<U87DD> \xF0\xD1 |0
+<U87DE> \xEE\x6F |0
+<U87DF> \xF0\xC2 |0
+<U87E0> \xC2\xCF |0
+<U87E1> \xE7\xA5 |0
+<U87E2> \xF0\xBD |0
+<U87E3> \xF0\xCA |0
+<U87E4> \xF0\xC4 |0
+<U87E5> \xF0\xC1 |0
+<U87E6> \xF0\xBC |0
+<U87E7> \xF0\xBB |0
+<U87E8> \xF0\xD0 |0
+<U87EA> \xF0\xC0 |0
+<U87EB> \xF0\xBF |0
+<U87EC> \xC2\xCD |0
+<U87ED> \xF0\xC8 |0
+<U87EE> \x8F\xB2 |0
+<U87EF> \xC2\xCC |0
+<U87F2> \xC2\xCE |0
+<U87F3> \xF0\xC3 |0
+<U87F4> \xF0\xCF |0
+<U87F5> \xA0\x61 |0
+<U87F6> \xF2\xDE |0
+<U87F7> \xF2\xDF |0
+<U87F9> \xC3\xC9 |0
+<U87FA> \xF2\xDC |0
+<U87FB> \xC3\xC6 |0
+<U87FC> \xF2\xE4 |0
+<U87FE> \xC3\xCA |0
+<U87FF> \xF2\xE6 |0
+<U8800> \xF2\xDB |0
+<U8801> \xF0\xCE |0
+<U8802> \xF2\xE8 |0
+<U8803> \xF2\xDD |0
+<U8804> \x9E\x5E |0
+<U8805> \xC3\xC7 |0
+<U8806> \xF2\xE3 |0
+<U8808> \xF2\xE5 |0
+<U8809> \xF2\xE0 |0
+<U880A> \xF2\xE7 |0
+<U880B> \xF2\xE2 |0
+<U880C> \xF2\xE1 |0
+<U880D> \xC3\xC8 |0
+<U880F> \x8F\xB6 |0
+<U8810> \xF4\xC5 |0
+<U8811> \xF4\xC6 |0
+<U8813> \xF4\xC8 |0
+<U8814> \xC4\xAE |0
+<U8815> \xC4\xAF |0
+<U8816> \xF4\xC9 |0
+<U8817> \xF4\xC7 |0
+<U8818> \x9F\xE8 |0
+<U8819> \xF4\xC4 |0
+<U881B> \xF6\x42 |0
+<U881C> \xF6\x45 |0
+<U881D> \xF6\x41 |0
+<U881F> \xC4\xFA |0
+<U8820> \xF6\x43 |0
+<U8821> \xC4\xF9 |0
+<U8822> \xC4\xF8 |0
+<U8823> \xC4\xF7 |0
+<U8824> \xF6\x44 |0
+<U8825> \xF7\x51 |0
+<U8826> \xF7\x4F |0
+<U8827> \x9C\xB2 |0
+<U8828> \xF7\x4E |0
+<U8829> \xF6\x40 |0
+<U882A> \xF7\x50 |0
+<U882B> \xF6\x46 |0
+<U882C> \xF7\x4D |0
+<U882D> \x95\x7C |0
+<U882E> \xF7\xF9 |0
+<U882F> \xF7\xD7 |0
+<U8830> \xF7\xF7 |0
+<U8831> \xC5\xDB |0
+<U8832> \xF7\xF8 |0
+<U8833> \xF7\xFA |0
+<U8835> \xF8\xBF |0
+<U8836> \xC5\xFA |0
+<U8837> \xF8\xBE |0
+<U8838> \xF8\xBD |0
+<U8839> \xC5\xFB |0
+<U883B> \xC6\x5A |0
+<U883C> \xF9\x6E |0
+<U883D> \xF9\xA7 |0
+<U883E> \xF9\xA6 |0
+<U883F> \xF9\xA8 |0
+<U8840> \xA6\xE5 |0
+<U8841> \xD0\xAA |0
+<U8842> \x9F\xC7 |0
+<U8843> \xD3\xCF |0
+<U8844> \xD3\xD0 |0
+<U8845> \x8F\xBB |0
+<U8846> \x8F\xBC |0
+<U8848> \xDB\xC0 |0
+<U884A> \xF6\x47 |0
+<U884B> \xF8\xC0 |0
+<U884C> \xA6\xE6 |0
+<U884D> \xAD\x6C |0
+<U884E> \xD0\xAB |0
+<U884F> \x8F\xEC |0
+<U8852> \xD7\xB1 |0
+<U8853> \xB3\x4E |0
+<U8855> \xDB\xC2 |0
+<U8856> \xDB\xC1 |0
+<U8857> \xB5\xF3 |0
+<U8859> \xB8\xC5 |0
+<U885A> \xE7\xC1 |0
+<U885B> \xBD\xC3 |0
+<U885D> \xBD\xC4 |0
+<U885E> \x8F\xC0 |0
+<U8860> \x93\x6A |0
+<U8861> \xBF\xC5 |0
+<U8862> \xC5\xFC |0
+<U8863> \xA6\xE7 |0
+<U8864> \x8B\xE4 |0
+<U8865> \x9C\x7C |0
+<U8867> \xD0\xAC |0
+<U8868> \xAA\xED |0
+<U8869> \xD0\xAE |0
+<U886A> \xD0\xAD |0
+<U886B> \xAD\x6D |0
+<U886D> \xD3\xD1 |0
+<U886E> \x95\xA1 |0
+<U886F> \xD3\xD8 |0
+<U8870> \xB0\x49 |0
+<U8871> \xD3\xD6 |0
+<U8872> \xD3\xD4 |0
+<U8874> \xD3\xDB |0
+<U8875> \xD3\xD2 |0
+<U8876> \xD3\xD3 |0
+<U8877> \xB0\x4A |0
+<U8879> \xB0\x4E |0
+<U887C> \xD3\xDC |0
+<U887D> \xB0\x4D |0
+<U887E> \xD3\xDA |0
+<U887F> \xD3\xD7 |0
+<U8880> \xD3\xD5 |0
+<U8881> \xB0\x4B |0
+<U8882> \xB0\x4C |0
+<U8883> \xD3\xD9 |0
+<U8884> \xFE\xEC |0
+<U8887> \x95\xA3 |0
+<U8888> \xB3\x50 |0
+<U8889> \xD7\xB2 |0
+<U888B> \xB3\x55 |0
+<U888C> \xD7\xC2 |0
+<U888D> \xB3\x54 |0
+<U888E> \xD7\xC4 |0
+<U8891> \xD7\xB8 |0
+<U8892> \xB3\x52 |0
+<U8893> \xD7\xC3 |0
+<U8895> \xD7\xB3 |0
+<U8896> \xB3\x53 |0
+<U8897> \xD7\xBF |0
+<U8898> \xD7\xBB |0
+<U8899> \xD7\xBD |0
+<U889A> \xD7\xB7 |0
+<U889B> \xD7\xBE |0
+<U889C> \x8F\xC1 |0
+<U889E> \xB3\x4F |0
+<U889F> \xD7\xBA |0
+<U88A0> \xA0\x52 |0
+<U88A1> \xD7\xB9 |0
+<U88A2> \xD7\xB5 |0
+<U88A4> \xD7\xC0 |0
+<U88A7> \xD7\xBC |0
+<U88A8> \xD7\xB4 |0
+<U88AA> \xD7\xB6 |0
+<U88AB> \xB3\x51 |0
+<U88AC> \xD7\xC1 |0
+<U88AE> \x99\xD0 |0
+<U88B1> \xB5\xF6 |0
+<U88B2> \xDB\xCD |0
+<U88B4> \x8F\xC3 |0
+<U88B5> \x8F\xC4 |0
+<U88B6> \xDB\xC9 |0
+<U88B7> \xDB\xCB |0
+<U88B8> \xDB\xC6 |0
+<U88B9> \xDB\xC5 |0
+<U88BA> \xDB\xC3 |0
+<U88BC> \xDB\xCA |0
+<U88BD> \xDB\xCC |0
+<U88BE> \xDB\xC8 |0
+<U88BF> \x95\xA4 |0
+<U88C0> \xDB\xC7 |0
+<U88C1> \xB5\xF4 |0
+<U88C2> \xB5\xF5 |0
+<U88C5> \x8F\xC6 |0
+<U88C7> \x9E\x60 |0
+<U88C9> \xDB\xCF |0
+<U88CA> \xB8\xCD |0
+<U88CB> \xDF\xF2 |0
+<U88CC> \xDF\xF8 |0
+<U88CD> \xDF\xF3 |0
+<U88CE> \xDF\xF4 |0
+<U88CF> \xF9\xD8 |0
+<U88D0> \xDF\xF9 |0
+<U88D2> \xB8\xCF |0
+<U88D4> \xB8\xC7 |0
+<U88D5> \xB8\xCE |0
+<U88D6> \xDF\xF1 |0
+<U88D7> \xDB\xC4 |0
+<U88D8> \xB8\xCA |0
+<U88D9> \xB8\xC8 |0
+<U88DA> \xDF\xF7 |0
+<U88DB> \xDF\xF6 |0
+<U88DC> \xB8\xC9 |0
+<U88DD> \xB8\xCB |0
+<U88DE> \xDF\xF5 |0
+<U88DF> \xB8\xC6 |0
+<U88E1> \xB8\xCC |0
+<U88E6> \x95\xA5 |0
+<U88E7> \xE3\xF6 |0
+<U88E8> \xBB\x74 |0
+<U88EB> \xE4\x42 |0
+<U88EC> \xE4\x41 |0
+<U88EE> \xE3\xFB |0
+<U88EF> \xBB\x76 |0
+<U88F0> \xE4\x40 |0
+<U88F1> \xE3\xF7 |0
+<U88F2> \xE3\xF8 |0
+<U88F3> \xBB\x6E |0
+<U88F4> \xBB\x70 |0
+<U88F5> \x9C\xB3 |0
+<U88F6> \xE3\xFD |0
+<U88F7> \xE3\xF5 |0
+<U88F8> \xBB\x72 |0
+<U88F9> \xBB\x71 |0
+<U88FA> \xE3\xF9 |0
+<U88FB> \xE3\xFE |0
+<U88FC> \xE3\xFC |0
+<U88FD> \xBB\x73 |0
+<U88FE> \xE3\xFA |0
+<U88FF> \x99\xD1 |0
+<U8900> \xFE\xF1 |0
+<U8901> \xDB\xCE |0
+<U8902> \xBB\x6F |0
+<U8905> \xE7\xC2 |0
+<U8906> \xE7\xC9 |0
+<U8907> \xBD\xC6 |0
+<U8909> \xE7\xCD |0
+<U890A> \xBD\xCA |0
+<U890B> \xE7\xC5 |0
+<U890C> \xE7\xC3 |0
+<U890E> \xE7\xCC |0
+<U8910> \xBD\xC5 |0
+<U8911> \xE7\xCB |0
+<U8912> \xBD\xC7 |0
+<U8913> \xBD\xC8 |0
+<U8914> \xE7\xC4 |0
+<U8915> \xBD\xC9 |0
+<U8916> \xE7\xCA |0
+<U8917> \xE7\xC6 |0
+<U8918> \xE7\xC7 |0
+<U8919> \xE7\xC8 |0
+<U891A> \xBB\x75 |0
+<U891E> \xEB\x70 |0
+<U891F> \xEB\x7C |0
+<U8921> \xBF\xCA |0
+<U8922> \xEB\x77 |0
+<U8923> \xEB\x79 |0
+<U8924> \x99\xD2 |0
+<U8925> \xBF\xC8 |0
+<U8926> \xEB\x71 |0
+<U8927> \xEB\x75 |0
+<U8929> \xEB\x78 |0
+<U892A> \xBF\xC6 |0
+<U892B> \xBF\xC9 |0
+<U892C> \xEB\x7B |0
+<U892D> \xEB\x73 |0
+<U892E> \xEB\x74 |0
+<U892F> \xEB\x7A |0
+<U8930> \xEB\x72 |0
+<U8931> \xEB\x76 |0
+<U8932> \xBF\xC7 |0
+<U8933> \xEE\x72 |0
+<U8935> \xEE\x71 |0
+<U8936> \xC1\xB7 |0
+<U8937> \xEE\x77 |0
+<U8938> \xC1\xB9 |0
+<U893B> \xC1\xB6 |0
+<U893C> \xEE\x73 |0
+<U893D> \xC1\xBA |0
+<U893E> \xEE\x74 |0
+<U8941> \xEE\x75 |0
+<U8942> \xEE\x78 |0
+<U8943> \x9C\xC2 |0
+<U8944> \xC1\xB8 |0
+<U8946> \xF0\xD6 |0
+<U8947> \x99\xD3 |0
+<U8949> \xF0\xD9 |0
+<U894B> \xF0\xD3 |0
+<U894C> \xF0\xD5 |0
+<U894D> \x95\xA7 |0
+<U894F> \xF0\xD4 |0
+<U8950> \xF0\xD7 |0
+<U8951> \xF0\xD8 |0
+<U8952> \xEE\x76 |0
+<U8953> \xF0\xD2 |0
+<U8954> \x95\xA9 |0
+<U8956> \xC3\xCD |0
+<U8957> \xF2\xEC |0
+<U8958> \xF2\xEF |0
+<U8959> \xF2\xF1 |0
+<U895A> \xF2\xEA |0
+<U895B> \xF2\xEB |0
+<U895C> \xF2\xEE |0
+<U895D> \xF2\xF0 |0
+<U895E> \xC3\xCE |0
+<U895F> \xC3\xCC |0
+<U8960> \xC3\xCB |0
+<U8961> \xF2\xED |0
+<U8962> \xF2\xE9 |0
+<U8963> \xF4\xCA |0
+<U8964> \xC4\xB0 |0
+<U8965> \x95\xA6 |0
+<U8966> \xF4\xCB |0
+<U8969> \xF6\x49 |0
+<U896A> \xC4\xFB |0
+<U896B> \xF6\x4B |0
+<U896C> \xC4\xFC |0
+<U896D> \xF6\x48 |0
+<U896E> \xF6\x4A |0
+<U896F> \xC5\xA8 |0
+<U8971> \xF7\x52 |0
+<U8972> \xC5\xA7 |0
+<U8973> \xF7\xFD |0
+<U8974> \xF7\xFC |0
+<U8976> \xF7\xFB |0
+<U8977> \x9C\x5D |0
+<U8979> \xF9\x48 |0
+<U897A> \xF9\x49 |0
+<U897B> \xF9\x4B |0
+<U897C> \xF9\x4A |0
+<U897E> \xCA\x50 |0
+<U897F> \xA6\xE8 |0
+<U8980> \x98\xE2 |0
+<U8981> \xAD\x6E |0
+<U8982> \xD7\xC5 |0
+<U8983> \xB5\xF7 |0
+<U8985> \xDF\xFA |0
+<U8986> \xC2\xD0 |0
+<U8987> \x8F\xC9 |0
+<U8988> \xF2\xF2 |0
+<U8989> \xA0\xC2 |0
+<U898A> \x8F\xCA |0
+<U898B> \xA8\xA3 |0
+<U898F> \xB3\x57 |0
+<U8991> \x99\xD4 |0
+<U8993> \xB3\x56 |0
+<U8994> \xA0\xB9 |0
+<U8995> \xDB\xD0 |0
+<U8996> \xB5\xF8 |0
+<U8997> \xDB\xD2 |0
+<U8998> \xDB\xD1 |0
+<U899B> \xDF\xFB |0
+<U899C> \xB8\xD0 |0
+<U899D> \xE4\x43 |0
+<U899E> \xE4\x46 |0
+<U899F> \xE4\x45 |0
+<U89A1> \xE4\x44 |0
+<U89A2> \xE7\xCE |0
+<U89A3> \xE7\xD0 |0
+<U89A4> \xE7\xCF |0
+<U89A5> \x9B\x58 |0
+<U89A6> \xBF\xCC |0
+<U89A7> \x8F\xCD |0
+<U89A9> \xA0\xD4 |0
+<U89AA> \xBF\xCB |0
+<U89AC> \xC1\xBB |0
+<U89AD> \xEE\x79 |0
+<U89AE> \xEE\x7B |0
+<U89AF> \xEE\x7A |0
+<U89B2> \xC2\xD1 |0
+<U89B6> \xF2\xF4 |0
+<U89B7> \xF2\xF3 |0
+<U89B9> \xF4\xCC |0
+<U89BA> \xC4\xB1 |0
+<U89BC> \x8F\xCE |0
+<U89BD> \xC4\xFD |0
+<U89BE> \xF7\x54 |0
+<U89BF> \xF7\x53 |0
+<U89C0> \xC6\x5B |0
+<U89C1> \x8B\xE5 |0
+<U89C6> \x89\x79 |0
+<U89D2> \xA8\xA4 |0
+<U89D3> \xD0\xAF |0
+<U89D4> \xAD\x6F |0
+<U89D5> \xD7\xC8 |0
+<U89D6> \xD7\xC6 |0
+<U89D9> \xD7\xC7 |0
+<U89DA> \xDB\xD4 |0
+<U89DB> \xDB\xD5 |0
+<U89DC> \xE0\x43 |0
+<U89DD> \xDB\xD3 |0
+<U89DF> \xDF\xFC |0
+<U89E0> \xE0\x41 |0
+<U89E1> \xE0\x40 |0
+<U89E2> \xE0\x42 |0
+<U89E3> \xB8\xD1 |0
+<U89E4> \xDF\xFE |0
+<U89E5> \xDF\xFD |0
+<U89E6> \xE0\x44 |0
+<U89E7> \x8F\xD0 |0
+<U89E8> \xE4\x49 |0
+<U89E9> \xE4\x47 |0
+<U89EB> \xE4\x48 |0
+<U89EC> \xE7\xD3 |0
+<U89ED> \xE7\xD1 |0
+<U89F0> \xE7\xD2 |0
+<U89F1> \xEB\x7D |0
+<U89F2> \xEE\x7C |0
+<U89F3> \xEE\x7D |0
+<U89F4> \xC2\xD2 |0
+<U89F6> \xF2\xF5 |0
+<U89F7> \xF4\xCD |0
+<U89F8> \xC4\xB2 |0
+<U89FA> \xF6\x4C |0
+<U89FB> \xF7\x55 |0
+<U89FC> \xC5\xA9 |0
+<U89FE> \xF7\xFE |0
+<U89FF> \xF9\x4C |0
+<U8A00> \xA8\xA5 |0
+<U8A02> \xAD\x71 |0
+<U8A03> \xAD\x72 |0
+<U8A04> \xD0\xB0 |0
+<U8A07> \xD0\xB1 |0
+<U8A08> \xAD\x70 |0
+<U8A0A> \xB0\x54 |0
+<U8A0C> \xB0\x52 |0
+<U8A0E> \xB0\x51 |0
+<U8A0F> \xB0\x58 |0
+<U8A10> \xB0\x50 |0
+<U8A11> \xB0\x59 |0
+<U8A12> \xD3\xDD |0
+<U8A13> \xB0\x56 |0
+<U8A15> \xB0\x53 |0
+<U8A16> \xB0\x57 |0
+<U8A17> \xB0\x55 |0
+<U8A18> \xB0\x4F |0
+<U8A1B> \xB3\x5F |0
+<U8A1C> \x95\xB6 |0
+<U8A1D> \xB3\x59 |0
+<U8A1E> \xD7\xCC |0
+<U8A1F> \xB3\x5E |0
+<U8A22> \xB3\x60 |0
+<U8A23> \xB3\x5A |0
+<U8A25> \xB3\x5B |0
+<U8A27> \xD7\xCA |0
+<U8A29> \x99\xD6 |0
+<U8A2A> \xB3\x58 |0
+<U8A2B> \x95\xE5 |0
+<U8A2C> \xD7\xCB |0
+<U8A2D> \xB3\x5D |0
+<U8A30> \xD7\xC9 |0
+<U8A31> \xB3\x5C |0
+<U8A34> \xB6\x44 |0
+<U8A36> \xB6\x46 |0
+<U8A38> \x99\xD7 |0
+<U8A39> \xDB\xD8 |0
+<U8A3A> \xB6\x45 |0
+<U8A3B> \xB5\xF9 |0
+<U8A3C> \xB5\xFD |0
+<U8A3D> \x95\xB5 |0
+<U8A3E> \xB8\xE4 |0
+<U8A3F> \xE0\x49 |0
+<U8A40> \xDB\xDA |0
+<U8A41> \xB5\xFE |0
+<U8A44> \xDB\xDD |0
+<U8A45> \xDB\xDE |0
+<U8A46> \xB6\x43 |0
+<U8A48> \xDB\xE0 |0
+<U8A49> \xA0\xCA |0
+<U8A4A> \xDB\xE2 |0
+<U8A4C> \xDB\xE3 |0
+<U8A4D> \xDB\xD7 |0
+<U8A4E> \xDB\xD6 |0
+<U8A4F> \xDB\xE4 |0
+<U8A50> \xB6\x42 |0
+<U8A51> \xDB\xE1 |0
+<U8A52> \xDB\xDF |0
+<U8A54> \xB6\x40 |0
+<U8A55> \xB5\xFB |0
+<U8A56> \xB6\x47 |0
+<U8A57> \xDB\xDB |0
+<U8A58> \xDB\xDC |0
+<U8A59> \xDB\xD9 |0
+<U8A5B> \xB6\x41 |0
+<U8A5E> \xB5\xFC |0
+<U8A60> \xB5\xFA |0
+<U8A61> \xE0\x48 |0
+<U8A62> \xB8\xDF |0
+<U8A63> \xB8\xDA |0
+<U8A66> \xB8\xD5 |0
+<U8A67> \x9F\xFD |0
+<U8A68> \xB8\xE5 |0
+<U8A69> \xB8\xD6 |0
+<U8A6B> \xB8\xD2 |0
+<U8A6C> \xB8\xE1 |0
+<U8A6D> \xB8\xDE |0
+<U8A6E> \xB8\xE0 |0
+<U8A70> \xB8\xD7 |0
+<U8A71> \xB8\xDC |0
+<U8A72> \xB8\xD3 |0
+<U8A73> \xB8\xD4 |0
+<U8A74> \xE0\x50 |0
+<U8A75> \xE0\x4D |0
+<U8A76> \xE0\x45 |0
+<U8A77> \xE0\x4A |0
+<U8A79> \xB8\xE2 |0
+<U8A7A> \xE0\x51 |0
+<U8A7B> \xB8\xE3 |0
+<U8A7C> \xB8\xD9 |0
+<U8A7E> \xA0\x58 |0
+<U8A7F> \xE0\x47 |0
+<U8A81> \xE0\x4F |0
+<U8A82> \xE0\x4B |0
+<U8A83> \xE0\x4E |0
+<U8A84> \xE0\x4C |0
+<U8A85> \xB8\xDD |0
+<U8A86> \xE0\x46 |0
+<U8A87> \xB8\xD8 |0
+<U8A8B> \xE4\x4C |0
+<U8A8C> \xBB\x78 |0
+<U8A8D> \xBB\x7B |0
+<U8A8F> \xE4\x4E |0
+<U8A90> \x8F\xD6 |0
+<U8A91> \xBB\xA5 |0
+<U8A92> \xE4\x4D |0
+<U8A93> \xBB\x7D |0
+<U8A94> \x99\xD8 |0
+<U8A95> \xBD\xCF |0
+<U8A96> \xE4\x4F |0
+<U8A98> \xBB\xA4 |0
+<U8A99> \xE4\x4B |0
+<U8A9A> \xBB\xA6 |0
+<U8A9C> \x8F\xD3 |0
+<U8A9E> \xBB\x79 |0
+<U8AA0> \xB8\xDB |0
+<U8AA1> \xBB\x7C |0
+<U8AA3> \xBB\x7A |0
+<U8AA4> \xBB\x7E |0
+<U8AA5> \xBB\xA2 |0
+<U8AA6> \xBB\x77 |0
+<U8AA7> \xBB\xA7 |0
+<U8AA8> \xBB\xA3 |0
+<U8AA9> \x8F\xE5 |0
+<U8AAA> \xBB\xA1 |0
+<U8AAB> \xE4\x4A |0
+<U8AAF> \x8F\xE9 |0
+<U8AB0> \xBD\xD6 |0
+<U8AB2> \xBD\xD2 |0
+<U8AB4> \x99\xD9 |0
+<U8AB6> \xBD\xD9 |0
+<U8AB8> \xE7\xD6 |0
+<U8AB9> \xBD\xDA |0
+<U8ABA> \xE7\xE2 |0
+<U8ABB> \xE7\xDB |0
+<U8ABC> \xBD\xCB |0
+<U8ABD> \xE7\xE3 |0
+<U8ABE> \xE7\xDD |0
+<U8ABF> \xBD\xD5 |0
+<U8AC0> \xE7\xDE |0
+<U8AC2> \xBD\xD4 |0
+<U8AC3> \xE7\xE1 |0
+<U8AC4> \xBD\xCE |0
+<U8AC5> \xE7\xDF |0
+<U8AC6> \xE7\xD5 |0
+<U8AC7> \xBD\xCD |0
+<U8AC8> \xEB\xAA |0
+<U8AC9> \xBD\xD3 |0
+<U8ACB> \xBD\xD0 |0
+<U8ACD> \xBD\xD8 |0
+<U8ACF> \xE7\xD4 |0
+<U8AD1> \xE7\xD8 |0
+<U8AD2> \xBD\xCC |0
+<U8AD3> \xE7\xD7 |0
+<U8AD4> \xE7\xD9 |0
+<U8AD5> \xE7\xDA |0
+<U8AD6> \xBD\xD7 |0
+<U8AD7> \xE7\xDC |0
+<U8AD8> \xE7\xE0 |0
+<U8AD9> \xE7\xE4 |0
+<U8ADA> \x92\x7C |0
+<U8ADB> \xBD\xDB |0
+<U8ADC> \xBF\xD2 |0
+<U8ADD> \xEB\xA5 |0
+<U8ADE> \xEB\xAB |0
+<U8ADF> \xEB\xA8 |0
+<U8AE0> \xEB\x7E |0
+<U8AE1> \xEB\xAC |0
+<U8AE2> \xEB\xA1 |0
+<U8AE4> \xEB\xA7 |0
+<U8AE6> \xBF\xCD |0
+<U8AE7> \xBF\xD3 |0
+<U8AE8> \xEB\xAD |0
+<U8AEA> \x9C\x45 |0
+<U8AEB> \xBF\xCF |0
+<U8AED> \xBF\xD9 |0
+<U8AEE> \xBF\xD4 |0
+<U8AEF> \xEB\xAF |0
+<U8AF0> \xEB\xA9 |0
+<U8AF1> \xBF\xD0 |0
+<U8AF2> \xEB\xA2 |0
+<U8AF3> \xBF\xDA |0
+<U8AF4> \xEB\xA3 |0
+<U8AF5> \xEB\xA4 |0
+<U8AF6> \xBF\xDB |0
+<U8AF7> \xBF\xD8 |0
+<U8AF8> \xBD\xD1 |0
+<U8AFA> \xBF\xCE |0
+<U8AFB> \xEB\xB0 |0
+<U8AFC> \xBF\xDC |0
+<U8AFE> \xBF\xD5 |0
+<U8AFF> \xEB\xAE |0
+<U8B00> \xBF\xD1 |0
+<U8B01> \xBF\xD6 |0
+<U8B02> \xBF\xD7 |0
+<U8B04> \xC1\xC3 |0
+<U8B05> \xEE\xA4 |0
+<U8B06> \xEE\xAD |0
+<U8B07> \xEE\xAA |0
+<U8B08> \xEE\xAC |0
+<U8B0A> \xC1\xC0 |0
+<U8B0B> \xEE\xA5 |0
+<U8B0C> \x8F\xDE |0
+<U8B0D> \xEE\xAB |0
+<U8B0E> \xC1\xBC |0
+<U8B0F> \xEE\xA7 |0
+<U8B10> \xC1\xC4 |0
+<U8B11> \xEE\xA3 |0
+<U8B12> \xEE\xA8 |0
+<U8B13> \xEE\xAF |0
+<U8B14> \xEB\xA6 |0
+<U8B15> \xEE\xA9 |0
+<U8B16> \xEE\xA2 |0
+<U8B17> \xC1\xBD |0
+<U8B18> \xEE\xA1 |0
+<U8B19> \xC1\xBE |0
+<U8B1A> \xEE\xB0 |0
+<U8B1B> \xC1\xBF |0
+<U8B1C> \xEE\xAE |0
+<U8B1D> \xC1\xC2 |0
+<U8B1E> \xEE\x7E |0
+<U8B1F> \x8F\xDF |0
+<U8B20> \xC1\xC1 |0
+<U8B22> \xEE\xA6 |0
+<U8B23> \xF0\xDC |0
+<U8B24> \xF0\xEA |0
+<U8B25> \xF0\xE5 |0
+<U8B26> \xF0\xE7 |0
+<U8B27> \xF0\xDB |0
+<U8B28> \xC2\xD3 |0
+<U8B2A> \xF0\xDA |0
+<U8B2B> \xC2\xD6 |0
+<U8B2C> \xC2\xD5 |0
+<U8B2D> \xA0\x4B |0
+<U8B2E> \xF0\xE9 |0
+<U8B2F> \xF0\xE1 |0
+<U8B30> \xF0\xDE |0
+<U8B31> \xF0\xE4 |0
+<U8B33> \xF0\xDD |0
+<U8B35> \xF0\xDF |0
+<U8B36> \xF0\xE8 |0
+<U8B37> \xF0\xE6 |0
+<U8B39> \xC2\xD4 |0
+<U8B3A> \xF0\xED |0
+<U8B3B> \xF0\xEB |0
+<U8B3C> \xF0\xE2 |0
+<U8B3D> \xF0\xEC |0
+<U8B3E> \xF0\xE3 |0
+<U8B3F> \x8F\xE2 |0
+<U8B40> \xF2\xF9 |0
+<U8B41> \xC3\xCF |0
+<U8B42> \xF3\x41 |0
+<U8B43> \xA0\xCC |0
+<U8B45> \xF6\x4F |0
+<U8B46> \xC3\xD6 |0
+<U8B47> \xF0\xE0 |0
+<U8B48> \xF2\xF7 |0
+<U8B49> \xC3\xD2 |0
+<U8B4A> \xF2\xF8 |0
+<U8B4B> \xF2\xFD |0
+<U8B4C> \x8F\xE3 |0
+<U8B4D> \x8F\xE4 |0
+<U8B4E> \xC3\xD4 |0
+<U8B4F> \xC3\xD5 |0
+<U8B50> \xF2\xF6 |0
+<U8B51> \xF3\x40 |0
+<U8B52> \xF3\x42 |0
+<U8B53> \xF2\xFA |0
+<U8B54> \xF2\xFC |0
+<U8B55> \xF2\xFE |0
+<U8B56> \xF2\xFB |0
+<U8B57> \xF3\x43 |0
+<U8B58> \xC3\xD1 |0
+<U8B59> \xC3\xD7 |0
+<U8B5A> \xC3\xD3 |0
+<U8B5C> \xC3\xD0 |0
+<U8B5D> \xF4\xD0 |0
+<U8B5E> \x9B\xC4 |0
+<U8B5F> \xC4\xB7 |0
+<U8B60> \xF4\xCE |0
+<U8B62> \x9B\xFC |0
+<U8B63> \xF4\xD2 |0
+<U8B65> \xF4\xD3 |0
+<U8B66> \xC4\xB5 |0
+<U8B67> \xF4\xD4 |0
+<U8B68> \xF4\xD1 |0
+<U8B69> \x96\x4C |0
+<U8B6A> \xF4\xCF |0
+<U8B6B> \xC4\xB8 |0
+<U8B6C> \xC4\xB4 |0
+<U8B6D> \xF4\xD5 |0
+<U8B6F> \xC4\xB6 |0
+<U8B70> \xC4\xB3 |0
+<U8B74> \xC4\xFE |0
+<U8B77> \xC5\x40 |0
+<U8B78> \xF6\x4E |0
+<U8B79> \xF6\x4D |0
+<U8B7A> \xF6\x50 |0
+<U8B7B> \xF6\x51 |0
+<U8B7D> \xC5\x41 |0
+<U8B7E> \xF7\x56 |0
+<U8B7F> \xF7\x5B |0
+<U8B80> \xC5\xAA |0
+<U8B81> \x9A\xF6 |0
+<U8B82> \xF7\x58 |0
+<U8B84> \xF7\x57 |0
+<U8B85> \xF7\x5A |0
+<U8B86> \xF7\x59 |0
+<U8B88> \xF8\x43 |0
+<U8B8A> \xC5\xDC |0
+<U8B8B> \xF8\x42 |0
+<U8B8C> \xF8\x40 |0
+<U8B8E> \xF8\x41 |0
+<U8B90> \x8F\xE7 |0
+<U8B92> \xC5\xFE |0
+<U8B93> \xC5\xFD |0
+<U8B94> \xF8\xC1 |0
+<U8B95> \xF8\xC2 |0
+<U8B96> \xC6\x40 |0
+<U8B98> \xF9\x4D |0
+<U8B99> \xF9\x4E |0
+<U8B9A> \xC6\x67 |0
+<U8B9B> \x8F\xE8 |0
+<U8B9C> \xC6\x6D |0
+<U8B9E> \xF9\xA9 |0
+<U8B9F> \xF9\xC8 |0
+<U8BA0> \x8B\xE7 |0
+<U8BBE> \x89\x7A |0
+<U8BE2> \x89\x7B |0
+<U8C37> \xA8\xA6 |0
+<U8C39> \xD7\xCD |0
+<U8C3B> \xD7\xCE |0
+<U8C3C> \xE0\x52 |0
+<U8C3D> \xE4\x50 |0
+<U8C3E> \xE7\xE5 |0
+<U8C3F> \xC1\xC6 |0
+<U8C41> \xC1\xC5 |0
+<U8C42> \xF0\xEE |0
+<U8C43> \xF3\x44 |0
+<U8C45> \xF8\x44 |0
+<U8C46> \xA8\xA7 |0
+<U8C47> \xD3\xDE |0
+<U8C48> \xB0\x5A |0
+<U8C49> \xB3\x61 |0
+<U8C4A> \xE0\x54 |0
+<U8C4B> \xE0\x53 |0
+<U8C4C> \xBD\xDC |0
+<U8C4D> \xE7\xE6 |0
+<U8C4E> \xBD\xDD |0
+<U8C4F> \xEE\xB1 |0
+<U8C50> \xC2\xD7 |0
+<U8C51> \x99\xDA |0
+<U8C54> \xC6\x76 |0
+<U8C55> \xA8\xA8 |0
+<U8C56> \xCD\xCB |0
+<U8C57> \xD3\xDF |0
+<U8C5A> \xB3\x62 |0
+<U8C5C> \xD7\xCF |0
+<U8C5D> \xD7\xD0 |0
+<U8C5F> \xDB\xE5 |0
+<U8C61> \xB6\x48 |0
+<U8C62> \xB8\xE6 |0
+<U8C64> \xE0\x56 |0
+<U8C65> \xE0\x55 |0
+<U8C66> \xE0\x57 |0
+<U8C68> \xE4\x51 |0
+<U8C69> \xE4\x52 |0
+<U8C6A> \xBB\xA8 |0
+<U8C6B> \xBF\xDD |0
+<U8C6C> \xBD\xDE |0
+<U8C6D> \xBF\xDE |0
+<U8C6F> \xEE\xB5 |0
+<U8C70> \xEE\xB2 |0
+<U8C71> \xEE\xB4 |0
+<U8C72> \xEE\xB3 |0
+<U8C73> \xC1\xC7 |0
+<U8C75> \xF0\xEF |0
+<U8C76> \xF3\x46 |0
+<U8C77> \xF3\x45 |0
+<U8C78> \xCB\xA4 |0
+<U8C79> \xB0\x5C |0
+<U8C7A> \xB0\x5B |0
+<U8C7B> \xD3\xE0 |0
+<U8C7D> \xD7\xD1 |0
+<U8C80> \xDB\xE7 |0
+<U8C81> \xDB\xE6 |0
+<U8C82> \xB6\x49 |0
+<U8C84> \xE0\x59 |0
+<U8C85> \xE0\x5A |0
+<U8C86> \xE0\x58 |0
+<U8C89> \xB8\xE8 |0
+<U8C8A> \xB8\xE7 |0
+<U8C8C> \xBB\xAA |0
+<U8C8D> \xBB\xA9 |0
+<U8C8F> \xE7\xE7 |0
+<U8C90> \xEB\xB3 |0
+<U8C91> \xEB\xB1 |0
+<U8C92> \xEB\xB2 |0
+<U8C93> \xBF\xDF |0
+<U8C94> \xEE\xB7 |0
+<U8C95> \xEE\xB6 |0
+<U8C97> \xF0\xF2 |0
+<U8C98> \xF0\xF1 |0
+<U8C99> \xF0\xF0 |0
+<U8C9A> \xF3\x47 |0
+<U8C9B> \x8F\xED |0
+<U8C9C> \xF9\xAA |0
+<U8C9D> \xA8\xA9 |0
+<U8C9E> \xAD\x73 |0
+<U8C9F> \x95\xC0 |0
+<U8CA0> \xAD\x74 |0
+<U8CA1> \xB0\x5D |0
+<U8CA2> \xB0\x5E |0
+<U8CA3> \xD3\xE2 |0
+<U8CA4> \xD3\xE1 |0
+<U8CA5> \xD7\xD2 |0
+<U8CA7> \xB3\x68 |0
+<U8CA8> \xB3\x66 |0
+<U8CA9> \xB3\x63 |0
+<U8CAA> \xB3\x67 |0
+<U8CAB> \xB3\x65 |0
+<U8CAC> \xB3\x64 |0
+<U8CAD> \xA0\xCB |0
+<U8CAF> \xB6\x4A |0
+<U8CB0> \xDB\xEA |0
+<U8CB2> \xB8\xED |0
+<U8CB3> \xB6\x4C |0
+<U8CB4> \xB6\x51 |0
+<U8CB5> \xDB\xEC |0
+<U8CB6> \xB6\x53 |0
+<U8CB7> \xB6\x52 |0
+<U8CB8> \xB6\x55 |0
+<U8CB9> \xDB\xEB |0
+<U8CBA> \xDB\xE8 |0
+<U8CBB> \xB6\x4F |0
+<U8CBC> \xB6\x4B |0
+<U8CBD> \xB6\x4D |0
+<U8CBE> \xDB\xE9 |0
+<U8CBF> \xB6\x54 |0
+<U8CC0> \xB6\x50 |0
+<U8CC1> \xB6\x4E |0
+<U8CC2> \xB8\xEF |0
+<U8CC3> \xB8\xEE |0
+<U8CC4> \xB8\xEC |0
+<U8CC5> \xB8\xF0 |0
+<U8CC7> \xB8\xEA |0
+<U8CC8> \xB8\xEB |0
+<U8CCA> \xB8\xE9 |0
+<U8CCC> \xE0\x5B |0
+<U8CCD> \x9E\x48 |0
+<U8CCF> \xE4\x54 |0
+<U8CD1> \xBB\xAC |0
+<U8CD2> \xBB\xAD |0
+<U8CD3> \xBB\xAB |0
+<U8CD4> \x99\xDB |0
+<U8CD5> \xE4\x53 |0
+<U8CD6> \x8F\xF3 |0
+<U8CD7> \xE4\x55 |0
+<U8CD9> \xE7\xEA |0
+<U8CDA> \xE7\xEC |0
+<U8CDB> \x8F\xF9 |0
+<U8CDC> \xBD\xE7 |0
+<U8CDD> \xE7\xED |0
+<U8CDE> \xBD\xE0 |0
+<U8CDF> \xE7\xE9 |0
+<U8CE0> \xBD\xDF |0
+<U8CE1> \xBD\xE9 |0
+<U8CE2> \xBD\xE5 |0
+<U8CE3> \xBD\xE6 |0
+<U8CE4> \xBD\xE2 |0
+<U8CE5> \xE7\xE8 |0
+<U8CE6> \xBD\xE1 |0
+<U8CE7> \xE7\xEE |0
+<U8CE8> \xE7\xEB |0
+<U8CE9> \x95\xC1 |0
+<U8CEA> \xBD\xE8 |0
+<U8CEB> \xA0\x4E |0
+<U8CEC> \xBD\xE3 |0
+<U8CED> \xBD\xE4 |0
+<U8CEE> \xEB\xB5 |0
+<U8CF0> \xEB\xB7 |0
+<U8CF1> \xEB\xB6 |0
+<U8CF2> \x99\xDC |0
+<U8CF3> \xEB\xB8 |0
+<U8CF4> \xBF\xE0 |0
+<U8CF5> \xEB\xB4 |0
+<U8CF7> \xA0\x64 |0
+<U8CF8> \xC1\xCB |0
+<U8CF9> \xEE\xB8 |0
+<U8CFA> \xC1\xC8 |0
+<U8CFB> \xC1\xCC |0
+<U8CFC> \xC1\xCA |0
+<U8CFD> \xC1\xC9 |0
+<U8CFE> \xF0\xF3 |0
+<U8D00> \xF0\xF6 |0
+<U8D02> \xF0\xF5 |0
+<U8D03> \x8F\xF7 |0
+<U8D04> \xF0\xF4 |0
+<U8D05> \xC2\xD8 |0
+<U8D06> \xF3\x48 |0
+<U8D07> \xF3\x49 |0
+<U8D08> \xC3\xD8 |0
+<U8D09> \xF3\x4A |0
+<U8D0A> \xC3\xD9 |0
+<U8D0B> \x89\xB0 |0
+<U8D0C> \xA0\x48 |0
+<U8D0D> \xC4\xBA |0
+<U8D0F> \xC4\xB9 |0
+<U8D10> \xF6\x52 |0
+<U8D11> \x8F\xFB |0
+<U8D12> \x8F\xF6 |0
+<U8D13> \xC5\x42 |0
+<U8D14> \xF6\x53 |0
+<U8D15> \xF7\x5C |0
+<U8D16> \xC5\xAB |0
+<U8D17> \xC5\xAC |0
+<U8D18> \x9D\xDC |0
+<U8D19> \xF8\x45 |0
+<U8D1B> \xC6\x42 |0
+<U8D1C> \x99\xDD |0
+<U8D1D> \x8B\xE8 |0
+<U8D64> \xA8\xAA |0
+<U8D66> \xB3\x6A |0
+<U8D67> \xB3\x69 |0
+<U8D68> \xE0\x5C |0
+<U8D69> \xE0\x5D |0
+<U8D6B> \xBB\xAE |0
+<U8D6C> \xEB\xB9 |0
+<U8D6D> \xBD\xEA |0
+<U8D6E> \xEB\xBA |0
+<U8D6F> \xEE\xB9 |0
+<U8D70> \xA8\xAB |0
+<U8D72> \xD0\xB2 |0
+<U8D73> \xAD\x76 |0
+<U8D74> \xAD\x75 |0
+<U8D76> \xD3\xE3 |0
+<U8D77> \xB0\x5F |0
+<U8D78> \xD3\xE4 |0
+<U8D79> \xD7\xD5 |0
+<U8D7A> \x92\xC1 |0
+<U8D7B> \xD7\xD4 |0
+<U8D7D> \xD7\xD3 |0
+<U8D80> \xDB\xEE |0
+<U8D81> \xB6\x58 |0
+<U8D82> \x9F\xD6 |0
+<U8D84> \xDB\xED |0
+<U8D85> \xB6\x57 |0
+<U8D89> \xDB\xEF |0
+<U8D8A> \xB6\x56 |0
+<U8D8C> \xE0\x5F |0
+<U8D8D> \xE0\x62 |0
+<U8D8E> \xE0\x60 |0
+<U8D8F> \xE0\x61 |0
+<U8D90> \xE0\x65 |0
+<U8D91> \xE0\x5E |0
+<U8D92> \xE0\x66 |0
+<U8D93> \xE0\x63 |0
+<U8D94> \xE0\x64 |0
+<U8D95> \xBB\xB0 |0
+<U8D96> \xE4\x56 |0
+<U8D99> \xBB\xAF |0
+<U8D9B> \xE7\xF2 |0
+<U8D9C> \xE7\xF0 |0
+<U8D9F> \xBD\xEB |0
+<U8DA0> \xE7\xEF |0
+<U8DA1> \xE7\xF1 |0
+<U8DA3> \xBD\xEC |0
+<U8DA5> \xEB\xBB |0
+<U8DA6> \xA0\xD2 |0
+<U8DA7> \xEB\xBC |0
+<U8DA8> \xC1\xCD |0
+<U8DA9> \x90\x40 |0
+<U8DAA> \xF3\x4C |0
+<U8DAB> \xF3\x4E |0
+<U8DAC> \xF3\x4B |0
+<U8DAD> \xF3\x4D |0
+<U8DAE> \xF4\xD6 |0
+<U8DAF> \xF6\x54 |0
+<U8DB2> \xF9\x6F |0
+<U8DB3> \xA8\xAC |0
+<U8DB4> \xAD\x77 |0
+<U8DB5> \xD3\xE5 |0
+<U8DB6> \xD3\xE7 |0
+<U8DB7> \xD3\xE6 |0
+<U8DB9> \xD7\xD8 |0
+<U8DBA> \xB3\x6C |0
+<U8DBC> \xD7\xD6 |0
+<U8DBE> \xB3\x6B |0
+<U8DBF> \xD7\xD9 |0
+<U8DC0> \x8A\xC4 |0
+<U8DC1> \xD7\xDA |0
+<U8DC2> \xD7\xD7 |0
+<U8DC3> \x99\xE0 |0
+<U8DC5> \xDB\xFB |0
+<U8DC6> \xB6\x60 |0
+<U8DC7> \xDB\xF3 |0
+<U8DC8> \xDB\xF9 |0
+<U8DCB> \xB6\x5B |0
+<U8DCC> \xB6\x5E |0
+<U8DCD> \xDB\xF2 |0
+<U8DCE> \xB6\x59 |0
+<U8DCF> \xDB\xF6 |0
+<U8DD0> \xE0\x6C |0
+<U8DD1> \xB6\x5D |0
+<U8DD3> \xDB\xF1 |0
+<U8DD4> \x9F\xF0 |0
+<U8DD5> \xDB\xF7 |0
+<U8DD6> \xDB\xF4 |0
+<U8DD7> \xDB\xFA |0
+<U8DD8> \xDB\xF0 |0
+<U8DD9> \xDB\xF8 |0
+<U8DDA> \xB6\x5C |0
+<U8DDB> \xB6\x5F |0
+<U8DDC> \xDB\xF5 |0
+<U8DDD> \xB6\x5A |0
+<U8DDF> \xB8\xF2 |0
+<U8DE0> \xE0\x68 |0
+<U8DE1> \xB8\xF1 |0
+<U8DE2> \xE0\x6F |0
+<U8DE3> \xE0\x6E |0
+<U8DE4> \xB8\xF8 |0
+<U8DE6> \xB8\xF9 |0
+<U8DE7> \xE0\x70 |0
+<U8DE8> \xB8\xF3 |0
+<U8DE9> \xE0\x6D |0
+<U8DEA> \xB8\xF7 |0
+<U8DEB> \xE0\x72 |0
+<U8DEC> \xE0\x69 |0
+<U8DEE> \xE0\x6B |0
+<U8DEF> \xB8\xF4 |0
+<U8DF0> \xE0\x67 |0
+<U8DF1> \xE0\x6A |0
+<U8DF2> \xE0\x71 |0
+<U8DF3> \xB8\xF5 |0
+<U8DF4> \xE0\x73 |0
+<U8DFA> \xB8\xF6 |0
+<U8DFC> \xBB\xB1 |0
+<U8DFD> \xE4\x5B |0
+<U8DFE> \xE4\x61 |0
+<U8DFF> \xE4\x59 |0
+<U8E00> \xE4\x62 |0
+<U8E01> \x9F\xF3 |0
+<U8E02> \xE4\x58 |0
+<U8E03> \xE4\x5D |0
+<U8E04> \xE4\x63 |0
+<U8E05> \xE4\x60 |0
+<U8E06> \xE4\x5F |0
+<U8E07> \xE4\x5E |0
+<U8E09> \xE4\x57 |0
+<U8E0A> \xE4\x5C |0
+<U8E0D> \xE4\x5A |0
+<U8E0E> \x9D\xBF |0
+<U8E0F> \xBD\xF1 |0
+<U8E10> \xBD\xEE |0
+<U8E11> \xE7\xFB |0
+<U8E12> \xE8\x41 |0
+<U8E13> \xE8\x43 |0
+<U8E14> \xE8\x40 |0
+<U8E15> \xE7\xF8 |0
+<U8E16> \xE7\xFA |0
+<U8E17> \xE8\x45 |0
+<U8E18> \xE8\x42 |0
+<U8E19> \xE7\xFC |0
+<U8E1A> \xE8\x46 |0
+<U8E1B> \xE7\xF9 |0
+<U8E1C> \xE8\x44 |0
+<U8E1D> \xBD\xEF |0
+<U8E1E> \xBD\xF5 |0
+<U8E1F> \xBD\xF3 |0
+<U8E20> \xE7\xF3 |0
+<U8E21> \xBD\xF4 |0
+<U8E22> \xBD\xF0 |0
+<U8E23> \xE7\xF4 |0
+<U8E24> \xE7\xF6 |0
+<U8E25> \xE7\xF5 |0
+<U8E26> \xE7\xFD |0
+<U8E27> \xE7\xFE |0
+<U8E28> \x9F\xF6 |0
+<U8E29> \xBD\xF2 |0
+<U8E2A> \x95\xC8 |0
+<U8E2B> \xBD\xED |0
+<U8E2D> \x9E\x5A |0
+<U8E2E> \xE7\xF7 |0
+<U8E30> \xEB\xC6 |0
+<U8E31> \xBF\xE2 |0
+<U8E33> \xEB\xBD |0
+<U8E34> \xBF\xE3 |0
+<U8E35> \xBF\xE6 |0
+<U8E36> \xEB\xC2 |0
+<U8E38> \xEB\xBF |0
+<U8E39> \xBF\xE5 |0
+<U8E3A> \x99\xE3 |0
+<U8E3C> \xEB\xC3 |0
+<U8E3D> \xEB\xC4 |0
+<U8E3E> \xEB\xBE |0
+<U8E3F> \xEB\xC7 |0
+<U8E40> \xEB\xC0 |0
+<U8E41> \xEB\xC5 |0
+<U8E42> \xBF\xE4 |0
+<U8E44> \xBF\xE1 |0
+<U8E45> \xEB\xC1 |0
+<U8E46> \x8A\x4A |0
+<U8E47> \xEE\xBF |0
+<U8E48> \xC1\xD0 |0
+<U8E49> \xC1\xCE |0
+<U8E4A> \xC1\xD1 |0
+<U8E4B> \xC1\xCF |0
+<U8E4C> \xEE\xBE |0
+<U8E4D> \xEE\xBB |0
+<U8E4E> \xEE\xBA |0
+<U8E4F> \x9F\xF1 |0
+<U8E50> \xEE\xBD |0
+<U8E53> \xEE\xBC |0
+<U8E54> \xF1\x45 |0
+<U8E55> \xC2\xDE |0
+<U8E56> \xF0\xFB |0
+<U8E57> \xF0\xFA |0
+<U8E59> \xC2\xD9 |0
+<U8E5A> \xF1\x41 |0
+<U8E5B> \xF1\x40 |0
+<U8E5C> \xF0\xF7 |0
+<U8E5D> \xF1\x43 |0
+<U8E5E> \xF0\xFC |0
+<U8E5F> \xC2\xDD |0
+<U8E60> \xF0\xF9 |0
+<U8E61> \xF1\x42 |0
+<U8E62> \xF0\xF8 |0
+<U8E63> \xC2\xDA |0
+<U8E64> \xC2\xDC |0
+<U8E65> \xF0\xFD |0
+<U8E66> \xC2\xDB |0
+<U8E67> \xF0\xFE |0
+<U8E68> \x8A\xA7 |0
+<U8E69> \xF1\x44 |0
+<U8E6A> \xF3\x52 |0
+<U8E6C> \xC3\xDE |0
+<U8E6D> \xF3\x4F |0
+<U8E6F> \xF3\x53 |0
+<U8E71> \x99\xE6 |0
+<U8E72> \xC3\xDB |0
+<U8E73> \xF3\x51 |0
+<U8E74> \xC3\xE0 |0
+<U8E75> \x9F\xF7 |0
+<U8E76> \xC3\xDD |0
+<U8E77> \x9F\xED |0
+<U8E78> \xF3\x50 |0
+<U8E7A> \xC3\xDF |0
+<U8E7B> \xF3\x54 |0
+<U8E7C> \xC3\xDA |0
+<U8E7E> \x8A\x5C |0
+<U8E80> \x9D\xAE |0
+<U8E81> \xC4\xBC |0
+<U8E82> \xC4\xBE |0
+<U8E84> \xF4\xD9 |0
+<U8E85> \xC4\xBD |0
+<U8E86> \xF4\xD7 |0
+<U8E87> \xC3\xDC |0
+<U8E88> \xF4\xD8 |0
+<U8E89> \xC4\xBB |0
+<U8E8A> \xC5\x43 |0
+<U8E8B> \xC5\x45 |0
+<U8E8C> \xF6\x56 |0
+<U8E8D> \xC5\x44 |0
+<U8E8E> \xF6\x55 |0
+<U8E90> \xF7\x61 |0
+<U8E91> \xC5\xAD |0
+<U8E92> \xF7\x60 |0
+<U8E93> \xC5\xAE |0
+<U8E94> \xF7\x5E |0
+<U8E95> \xF7\x5D |0
+<U8E96> \xF7\x62 |0
+<U8E97> \xF7\x63 |0
+<U8E98> \xF8\x46 |0
+<U8E9A> \xF7\x5F |0
+<U8E9D> \xF8\xC6 |0
+<U8E9E> \xF8\xC3 |0
+<U8E9F> \xF8\xC4 |0
+<U8EA0> \xF8\xC5 |0
+<U8EA1> \xC6\x5C |0
+<U8EA3> \xF9\x51 |0
+<U8EA4> \xF9\x50 |0
+<U8EA5> \xF9\x4F |0
+<U8EA6> \xF9\x70 |0
+<U8EA7> \x95\xC9 |0
+<U8EA8> \xF9\xBE |0
+<U8EA9> \xF9\xAB |0
+<U8EAA> \xC6\x6E |0
+<U8EAB> \xA8\xAD |0
+<U8EAC> \xB0\x60 |0
+<U8EAD> \x90\x48 |0
+<U8EB0> \x99\xE8 |0
+<U8EB2> \xB8\xFA |0
+<U8EB6> \x90\x49 |0
+<U8EBA> \xBD\xF6 |0
+<U8EBC> \x90\xB1 |0
+<U8EBD> \xEB\xC8 |0
+<U8EC0> \xC2\xDF |0
+<U8EC2> \xF3\x55 |0
+<U8EC3> \x90\x4A |0
+<U8EC9> \xF9\xAC |0
+<U8ECA> \xA8\xAE |0
+<U8ECB> \xAA\xEE |0
+<U8ECC> \xAD\x79 |0
+<U8ECD> \xAD\x78 |0
+<U8ECE> \x99\xEA |0
+<U8ECF> \xB0\x63 |0
+<U8ED1> \xD3\xE8 |0
+<U8ED2> \xB0\x61 |0
+<U8ED3> \xD3\xE9 |0
+<U8ED4> \xB0\x62 |0
+<U8ED7> \xD7\xDF |0
+<U8ED8> \xD7\xDB |0
+<U8EDA> \x9B\xD1 |0
+<U8EDB> \xB3\x6D |0
+<U8EDC> \xD7\xDE |0
+<U8EDD> \xD7\xDD |0
+<U8EDE> \xD7\xDC |0
+<U8EDF> \xB3\x6E |0
+<U8EE0> \xD7\xE0 |0
+<U8EE1> \xD7\xE1 |0
+<U8EE2> \x99\xEB |0
+<U8EE4> \x99\xEC |0
+<U8EE5> \xDC\x43 |0
+<U8EE6> \xDC\x41 |0
+<U8EE7> \xDC\x45 |0
+<U8EE8> \xDC\x46 |0
+<U8EE9> \xDC\x4C |0
+<U8EEB> \xDC\x48 |0
+<U8EEC> \xDC\x4A |0
+<U8EED> \x99\xED |0
+<U8EEE> \xDC\x42 |0
+<U8EEF> \xDB\xFC |0
+<U8EF1> \xDC\x49 |0
+<U8EF2> \x99\xEE |0
+<U8EF4> \xDC\x4B |0
+<U8EF5> \xDC\x44 |0
+<U8EF6> \xDC\x47 |0
+<U8EF7> \xDB\xFD |0
+<U8EF8> \xB6\x62 |0
+<U8EF9> \xDC\x40 |0
+<U8EFA> \xDB\xFE |0
+<U8EFB> \xB6\x61 |0
+<U8EFC> \xB6\x63 |0
+<U8EFE> \xB8\xFD |0
+<U8EFF> \xE0\x75 |0
+<U8F00> \xE0\x77 |0
+<U8F01> \xE0\x76 |0
+<U8F02> \xE0\x7B |0
+<U8F03> \xB8\xFB |0
+<U8F05> \xE0\x78 |0
+<U8F06> \xE0\x74 |0
+<U8F07> \xE0\x79 |0
+<U8F08> \xE0\x7A |0
+<U8F09> \xB8\xFC |0
+<U8F0A> \xB8\xFE |0
+<U8F0B> \xE0\x7C |0
+<U8F0D> \xE4\x67 |0
+<U8F0E> \xE4\x66 |0
+<U8F10> \xE4\x64 |0
+<U8F11> \xE4\x65 |0
+<U8F12> \xBB\xB3 |0
+<U8F13> \xBB\xB5 |0
+<U8F14> \xBB\xB2 |0
+<U8F15> \xBB\xB4 |0
+<U8F16> \xE8\x4D |0
+<U8F17> \xE8\x4E |0
+<U8F18> \xE8\x49 |0
+<U8F19> \x90\x4C |0
+<U8F1A> \xE8\x4A |0
+<U8F1B> \xBD\xF8 |0
+<U8F1C> \xBD\xFD |0
+<U8F1D> \xBD\xF7 |0
+<U8F1E> \xBD\xFE |0
+<U8F1F> \xBD\xF9 |0
+<U8F20> \xE8\x4B |0
+<U8F23> \xE8\x4C |0
+<U8F24> \xE8\x48 |0
+<U8F25> \xBE\x40 |0
+<U8F26> \xBD\xFB |0
+<U8F29> \xBD\xFA |0
+<U8F2A> \xBD\xFC |0
+<U8F2C> \xE8\x47 |0
+<U8F2D> \x90\x4D |0
+<U8F2E> \xEB\xCA |0
+<U8F2F> \xBF\xE8 |0
+<U8F30> \x95\xCB |0
+<U8F32> \xEB\xCC |0
+<U8F33> \xBF\xEA |0
+<U8F34> \xEB\xCF |0
+<U8F35> \xEB\xCB |0
+<U8F36> \xEB\xC9 |0
+<U8F37> \xEB\xCE |0
+<U8F38> \xBF\xE9 |0
+<U8F39> \xEB\xCD |0
+<U8F3B> \xBF\xE7 |0
+<U8F3E> \xC1\xD3 |0
+<U8F3F> \xC1\xD6 |0
+<U8F40> \xEE\xC1 |0
+<U8F41> \x97\xE2 |0
+<U8F42> \xC1\xD4 |0
+<U8F43> \xEE\xC0 |0
+<U8F44> \xC1\xD2 |0
+<U8F45> \xC1\xD5 |0
+<U8F46> \xF1\x46 |0
+<U8F47> \xF1\x47 |0
+<U8F48> \xF1\x48 |0
+<U8F49> \xC2\xE0 |0
+<U8F4A> \x95\xCC |0
+<U8F4B> \xF1\x49 |0
+<U8F4D> \xC2\xE1 |0
+<U8F4E> \xC3\xE2 |0
+<U8F4F> \xF3\x58 |0
+<U8F50> \xF3\x59 |0
+<U8F51> \xF3\x57 |0
+<U8F52> \xF3\x56 |0
+<U8F53> \xF3\x5A |0
+<U8F54> \xC3\xE1 |0
+<U8F55> \xF4\xDD |0
+<U8F56> \xF4\xDB |0
+<U8F57> \xF4\xDC |0
+<U8F58> \xF4\xDE |0
+<U8F59> \xF4\xDA |0
+<U8F5A> \xF4\xDF |0
+<U8F5B> \xF6\x58 |0
+<U8F5C> \x9F\x78 |0
+<U8F5D> \xF6\x59 |0
+<U8F5E> \xF6\x57 |0
+<U8F5F> \xC5\x46 |0
+<U8F60> \xF7\x64 |0
+<U8F61> \xC5\xAF |0
+<U8F62> \xF7\x65 |0
+<U8F63> \xF8\x48 |0
+<U8F64> \xF8\x47 |0
+<U8F66> \x89\x7C |0
+<U8F67> \x89\x7D |0
+<U8F6E> \x89\x7E |0
+<U8F93> \x99\x5D |0
+<U8F9B> \xA8\xAF |0
+<U8F9C> \xB6\x64 |0
+<U8F9F> \xB9\x40 |0
+<U8FA0> \x9B\x5A |0
+<U8FA3> \xBB\xB6 |0
+<U8FA5> \x90\x50 |0
+<U8FA6> \xBF\xEC |0
+<U8FA8> \xBF\xEB |0
+<U8FAD> \xC3\xE3 |0
+<U8FAE> \xC4\x7C |0
+<U8FAF> \xC5\x47 |0
+<U8FB0> \xA8\xB0 |0
+<U8FB1> \xB0\x64 |0
+<U8FB2> \xB9\x41 |0
+<U8FB3> \x90\x54 |0
+<U8FB4> \xF3\x5B |0
+<U8FB5> \xC6\xD6 |0
+<U8FB6> \x9A\xA8 |0
+<U8FB7> \x99\xEF |0
+<U8FB8> \xFE\xEB |0
+<U8FB9> \x9D\xA3 |0
+<U8FBA> \x9D\xA1 |0
+<U8FBB> \x99\x43 |0
+<U8FBC> \x99\x45 |0
+<U8FBE> \x9D\x7D |0
+<U8FBF> \xCB\xA6 |0
+<U8FC1> \x99\xF0 |0
+<U8FC2> \xA8\xB1 |0
+<U8FC4> \xA8\xB4 |0
+<U8FC5> \xA8\xB3 |0
+<U8FC6> \xA8\xB2 |0
+<U8FC9> \xCB\xA5 |0
+<U8FCA> \x99\xF1 |0
+<U8FCB> \xCD\xCD |0
+<U8FCC> \x99\xF2 |0
+<U8FCD> \xCD\xCF |0
+<U8FCE> \xAA\xEF |0
+<U8FD0> \x9D\x60 |0
+<U8FD1> \xAA\xF1 |0
+<U8FD2> \xCD\xCC |0
+<U8FD3> \xCD\xCE |0
+<U8FD4> \xAA\xF0 |0
+<U8FD5> \xCD\xD1 |0
+<U8FD6> \xCD\xD0 |0
+<U8FD7> \xCD\xD2 |0
+<U8FDA> \xA0\xA3 |0
+<U8FE0> \xD0\xB6 |0
+<U8FE1> \xD0\xB4 |0
+<U8FE2> \xAD\x7C |0
+<U8FE3> \xD0\xB3 |0
+<U8FE4> \xAD\xA3 |0
+<U8FE5> \xAD\x7E |0
+<U8FE6> \xAD\x7B |0
+<U8FE8> \xAD\xA4 |0
+<U8FEA> \xAD\x7D |0
+<U8FEB> \xAD\xA2 |0
+<U8FED> \xAD\xA1 |0
+<U8FEE> \xD0\xB5 |0
+<U8FF0> \xAD\x7A |0
+<U8FF4> \xB0\x6A |0
+<U8FF5> \xD3\xEB |0
+<U8FF6> \xD3\xF1 |0
+<U8FF7> \xB0\x67 |0
+<U8FF8> \xB0\x6E |0
+<U8FF9> \x90\x5B |0
+<U8FFA> \xB0\x69 |0
+<U8FFB> \xD3\xEE |0
+<U8FFC> \xD3\xF0 |0
+<U8FFD> \xB0\x6C |0
+<U8FFE> \xD3\xEA |0
+<U8FFF> \xD3\xED |0
+<U9000> \xB0\x68 |0
+<U9001> \xB0\x65 |0
+<U9002> \xD3\xEC |0
+<U9003> \xB0\x6B |0
+<U9004> \xD3\xEF |0
+<U9005> \xB0\x6D |0
+<U9006> \xB0\x66 |0
+<U9008> \x9E\xDB |0
+<U900B> \xD7\xE3 |0
+<U900C> \xD7\xE6 |0
+<U900D> \xB3\x70 |0
+<U900F> \xB3\x7A |0
+<U9010> \xB3\x76 |0
+<U9011> \xD7\xE4 |0
+<U9012> \x9D\x79 |0
+<U9014> \xB3\x7E |0
+<U9015> \xB3\x77 |0
+<U9016> \xB3\x7C |0
+<U9017> \xB3\x72 |0
+<U9019> \xB3\x6F |0
+<U901A> \xB3\x71 |0
+<U901B> \xB3\x7D |0
+<U901C> \xD7\xE5 |0
+<U901D> \xB3\x75 |0
+<U901E> \xB3\x78 |0
+<U901F> \xB3\x74 |0
+<U9020> \xB3\x79 |0
+<U9021> \xD7\xE7 |0
+<U9022> \xB3\x7B |0
+<U9023> \xB3\x73 |0
+<U9024> \xD7\xE2 |0
+<U902D> \xDC\x4D |0
+<U902E> \xB6\x65 |0
+<U902F> \xDC\x4F |0
+<U9031> \xB6\x67 |0
+<U9032> \xB6\x69 |0
+<U9033> \x99\xF3 |0
+<U9034> \xDC\x4E |0
+<U9035> \xB6\x66 |0
+<U9036> \xB6\x6A |0
+<U9037> \x90\x62 |0
+<U9038> \xB6\x68 |0
+<U903C> \xB9\x47 |0
+<U903D> \xE0\xA3 |0
+<U903E> \xB9\x4F |0
+<U903F> \xE0\x7E |0
+<U9041> \xB9\x50 |0
+<U9042> \xB9\x45 |0
+<U9044> \xE0\xA1 |0
+<U9047> \xB9\x4A |0
+<U9049> \xE0\xA2 |0
+<U904A> \xB9\x43 |0
+<U904B> \xB9\x42 |0
+<U904C> \x9F\x55 |0
+<U904D> \xB9\x4D |0
+<U904E> \xB9\x4C |0
+<U904F> \xB9\x4B |0
+<U9050> \xB9\x49 |0
+<U9051> \xB9\x4E |0
+<U9052> \xE0\x7D |0
+<U9053> \xB9\x44 |0
+<U9054> \xB9\x46 |0
+<U9055> \xB9\x48 |0
+<U9056> \x9B\xF9 |0
+<U9058> \xBB\xB8 |0
+<U9059> \xBB\xBB |0
+<U905B> \xBB\xBF |0
+<U905C> \xBB\xB9 |0
+<U905D> \xBB\xBE |0
+<U905E> \xBB\xBC |0
+<U9060> \xBB\xB7 |0
+<U9061> \x90\x65 |0
+<U9062> \xBB\xBD |0
+<U9063> \xBB\xBA |0
+<U9064> \x96\xE0 |0
+<U9067> \xE8\x52 |0
+<U9068> \xBE\x43 |0
+<U9069> \xBE\x41 |0
+<U906B> \xE8\x53 |0
+<U906C> \x98\xBE |0
+<U906D> \xBE\x44 |0
+<U906E> \xBE\x42 |0
+<U906F> \xE8\x51 |0
+<U9070> \xE8\x50 |0
+<U9072> \xBF\xF0 |0
+<U9073> \xE8\x4F |0
+<U9074> \xBF\xEE |0
+<U9075> \xBF\xED |0
+<U9076> \xEB\xD0 |0
+<U9077> \xBE\x45 |0
+<U9078> \xBF\xEF |0
+<U9079> \xEB\xD1 |0
+<U907A> \xBF\xF2 |0
+<U907B> \xEB\xD2 |0
+<U907C> \xBF\xF1 |0
+<U907D> \xC1\xD8 |0
+<U907E> \xEE\xC3 |0
+<U907F> \xC1\xD7 |0
+<U9080> \xC1\xDC |0
+<U9081> \xC1\xDA |0
+<U9082> \xC1\xDB |0
+<U9083> \xC2\xE3 |0
+<U9084> \xC1\xD9 |0
+<U9085> \xEE\xC2 |0
+<U9086> \xEB\xD3 |0
+<U9087> \xC2\xE2 |0
+<U9088> \xC2\xE4 |0
+<U908A> \xC3\xE4 |0
+<U908B> \xC3\xE5 |0
+<U908D> \xF4\xE0 |0
+<U908F> \xC5\xDE |0
+<U9090> \xC5\xDD |0
+<U9091> \xA8\xB6 |0
+<U9094> \xCA\x55 |0
+<U9095> \xB0\x6F |0
+<U9097> \xCA\x52 |0
+<U9098> \xCA\x53 |0
+<U9099> \xCA\x51 |0
+<U909B> \xCA\x54 |0
+<U909E> \xCB\xAA |0
+<U909F> \xCB\xA7 |0
+<U90A0> \xCB\xAC |0
+<U90A1> \xCB\xA8 |0
+<U90A2> \xA8\xB7 |0
+<U90A3> \xA8\xBA |0
+<U90A5> \xCB\xA9 |0
+<U90A6> \xA8\xB9 |0
+<U90A7> \xCB\xAB |0
+<U90A8> \x90\x68 |0
+<U90AA> \xA8\xB8 |0
+<U90AE> \x90\x6C |0
+<U90AF> \xCD\xD5 |0
+<U90B0> \xCD\xD7 |0
+<U90B1> \xAA\xF4 |0
+<U90B2> \xCD\xD3 |0
+<U90B3> \xCD\xD6 |0
+<U90B4> \xCD\xD4 |0
+<U90B5> \xAA\xF2 |0
+<U90B6> \xAA\xF5 |0
+<U90B8> \xAA\xF3 |0
+<U90BB> \x95\xD8 |0
+<U90BD> \xD0\xB8 |0
+<U90BE> \xD0\xBC |0
+<U90BF> \xD0\xB9 |0
+<U90C1> \xAD\xA7 |0
+<U90C3> \xAD\xA8 |0
+<U90C4> \x90\x6A |0
+<U90C5> \xD0\xBB |0
+<U90C7> \xD0\xBD |0
+<U90C8> \xD0\xBF |0
+<U90CA> \xAD\xA5 |0
+<U90CB> \xD0\xBE |0
+<U90CE> \xAD\xA6 |0
+<U90D4> \xD7\xEE |0
+<U90D5> \xD0\xBA |0
+<U90D6> \xD3\xF2 |0
+<U90D7> \xD3\xFB |0
+<U90D8> \xD3\xF9 |0
+<U90D9> \xD3\xF4 |0
+<U90DA> \xD3\xF5 |0
+<U90DB> \xD3\xFA |0
+<U90DC> \xD3\xFC |0
+<U90DD> \xB0\x71 |0
+<U90DF> \xD3\xF7 |0
+<U90E0> \xD3\xF3 |0
+<U90E1> \xB0\x70 |0
+<U90E2> \xB0\x72 |0
+<U90E3> \xD3\xF6 |0
+<U90E4> \xD3\xFD |0
+<U90E5> \xD3\xF8 |0
+<U90E8> \xB3\xA1 |0
+<U90E9> \xD7\xF1 |0
+<U90EA> \xD7\xE9 |0
+<U90EB> \xD7\xEF |0
+<U90EC> \xD7\xF0 |0
+<U90ED> \xB3\xA2 |0
+<U90EF> \xD7\xE8 |0
+<U90F0> \xD7\xEA |0
+<U90F1> \xD0\xB7 |0
+<U90F2> \xD7\xEC |0
+<U90F3> \xD7\xED |0
+<U90F4> \xD7\xEB |0
+<U90F5> \xB6\x6C |0
+<U90F9> \xDC\x56 |0
+<U90FA> \xEB\xD4 |0
+<U90FB> \xDC\x57 |0
+<U90FC> \xDC\x54 |0
+<U90FD> \xB3\xA3 |0
+<U90FE> \xB6\x6E |0
+<U90FF> \xDC\x53 |0
+<U9100> \xDC\x59 |0
+<U9101> \xDC\x58 |0
+<U9102> \xB6\x6B |0
+<U9103> \xDC\x5C |0
+<U9104> \xDC\x52 |0
+<U9105> \xDC\x5B |0
+<U9106> \xDC\x50 |0
+<U9107> \xDC\x5A |0
+<U9108> \xDC\x55 |0
+<U9109> \xB6\x6D |0
+<U910B> \xE0\xAA |0
+<U910D> \xE0\xA5 |0
+<U910E> \xE0\xAB |0
+<U910F> \xE0\xA6 |0
+<U9110> \xE0\xA4 |0
+<U9111> \xE0\xA7 |0
+<U9112> \xB9\x51 |0
+<U9114> \xE0\xA9 |0
+<U9116> \xE0\xA8 |0
+<U9117> \xB9\x52 |0
+<U9118> \xBB\xC1 |0
+<U9119> \xBB\xC0 |0
+<U911A> \xE4\x6E |0
+<U911B> \xE4\x71 |0
+<U911C> \xE4\x69 |0
+<U911D> \xE4\x6D |0
+<U911E> \xBB\xC2 |0
+<U911F> \xE4\x6C |0
+<U9120> \xE4\x6A |0
+<U9121> \xE4\x70 |0
+<U9122> \xE4\x6B |0
+<U9123> \xE4\x68 |0
+<U9124> \xE4\x6F |0
+<U9126> \xE8\x59 |0
+<U9127> \xBE\x48 |0
+<U9128> \xF1\x4A |0
+<U9129> \xE8\x56 |0
+<U912A> \xE8\x57 |0
+<U912B> \xE8\x55 |0
+<U912C> \xDC\x51 |0
+<U912D> \xBE\x47 |0
+<U912E> \xE8\x5A |0
+<U912F> \xE8\x54 |0
+<U9130> \xBE\x46 |0
+<U9131> \xBE\x49 |0
+<U9132> \xE8\x58 |0
+<U9133> \xEB\xD5 |0
+<U9134> \xBF\xF3 |0
+<U9135> \xEB\xD6 |0
+<U9136> \xEB\xD7 |0
+<U9138> \xEE\xC4 |0
+<U9139> \xC1\xDD |0
+<U913A> \xF1\x4B |0
+<U913B> \xF1\x4C |0
+<U913E> \xF1\x4D |0
+<U913F> \xF3\x5D |0
+<U9140> \xF3\x5C |0
+<U9141> \xF4\xE2 |0
+<U9143> \xF4\xE1 |0
+<U9144> \xF6\x5B |0
+<U9145> \xF6\x5C |0
+<U9146> \xF6\x5A |0
+<U9147> \xF7\x66 |0
+<U9148> \xC5\xB0 |0
+<U9149> \xA8\xBB |0
+<U914A> \xAD\xAA |0
+<U914B> \xAD\xA9 |0
+<U914C> \xB0\x75 |0
+<U914D> \xB0\x74 |0
+<U914E> \xD4\x40 |0
+<U914F> \xD4\x41 |0
+<U9150> \xD3\xFE |0
+<U9151> \x9F\xB2 |0
+<U9152> \xB0\x73 |0
+<U9153> \xD7\xF5 |0
+<U9155> \xD7\xF6 |0
+<U9156> \xD7\xF2 |0
+<U9157> \xB3\xA4 |0
+<U9158> \xD7\xF3 |0
+<U9159> \x9F\xAE |0
+<U915A> \xD7\xF4 |0
+<U915C> \x9F\xB0 |0
+<U915E> \x89\xAD |0
+<U915F> \xDC\x5F |0
+<U9160> \xDC\x61 |0
+<U9161> \xDC\x5D |0
+<U9162> \xDC\x60 |0
+<U9163> \xB6\x6F |0
+<U9164> \xDC\x5E |0
+<U9165> \xB6\x70 |0
+<U9167> \x90\x6E |0
+<U9168> \xDD\x73 |0
+<U9169> \xB9\x55 |0
+<U916A> \xB9\x54 |0
+<U916C> \xB9\x53 |0
+<U916E> \xE0\xAC |0
+<U916F> \xE0\xAD |0
+<U9170> \x9E\x71 |0
+<U9172> \xE4\x73 |0
+<U9173> \xE4\x75 |0
+<U9174> \xBB\xC6 |0
+<U9175> \xBB\xC3 |0
+<U9176> \x9E\x4A |0
+<U9177> \xBB\xC5 |0
+<U9178> \xBB\xC4 |0
+<U9179> \xE4\x74 |0
+<U917A> \xE4\x72 |0
+<U917C> \x9F\xDC |0
+<U9180> \xE8\x61 |0
+<U9181> \xE8\x5E |0
+<U9182> \xE8\x5F |0
+<U9183> \xBE\x4D |0
+<U9184> \xE8\x60 |0
+<U9185> \xE8\x5B |0
+<U9186> \xE8\x5C |0
+<U9187> \xBE\x4A |0
+<U9189> \xBE\x4B |0
+<U918A> \xE8\x5D |0
+<U918B> \xBE\x4C |0
+<U918C> \x89\xAB |0
+<U918D> \xEB\xDB |0
+<U918E> \x9F\xB8 |0
+<U918F> \xEB\xDC |0
+<U9190> \xEB\xD9 |0
+<U9191> \xEB\xDA |0
+<U9192> \xBF\xF4 |0
+<U9193> \xEB\xD8 |0
+<U9199> \xEE\xC8 |0
+<U919A> \xEE\xC5 |0
+<U919B> \xEE\xC7 |0
+<U919C> \xC1\xE0 |0
+<U919D> \xEE\xCB |0
+<U919E> \xC1\xDF |0
+<U919F> \xEE\xC9 |0
+<U91A0> \xEE\xCC |0
+<U91A1> \xEE\xCA |0
+<U91A2> \xEE\xC6 |0
+<U91A3> \xC1\xDE |0
+<U91A5> \xF1\x4F |0
+<U91A7> \xF1\x50 |0
+<U91A8> \xF1\x4E |0
+<U91A9> \x90\x70 |0
+<U91AA> \xF1\x52 |0
+<U91AB> \xC2\xE5 |0
+<U91AC> \xC2\xE6 |0
+<U91AD> \xF3\x5F |0
+<U91AE> \xC3\xE7 |0
+<U91AF> \xF1\x51 |0
+<U91B0> \xF3\x5E |0
+<U91B1> \xC3\xE6 |0
+<U91B2> \xF4\xE5 |0
+<U91B3> \xF4\xE6 |0
+<U91B4> \xC4\xBF |0
+<U91B5> \xF4\xE4 |0
+<U91B6> \x8B\x63 |0
+<U91B7> \xF4\xE3 |0
+<U91B9> \xF6\x5D |0
+<U91BA> \xC5\x48 |0
+<U91BB> \x95\xDC |0
+<U91BC> \xF8\x49 |0
+<U91BD> \xF8\xC8 |0
+<U91BE> \xF8\xC7 |0
+<U91C0> \xC6\x43 |0
+<U91C1> \xC6\x5D |0
+<U91C2> \xF8\xC9 |0
+<U91C3> \xF9\x71 |0
+<U91C4> \x90\x71 |0
+<U91C5> \xC6\x6F |0
+<U91C6> \xA8\xBC |0
+<U91C7> \xAA\xF6 |0
+<U91C9> \xB9\x56 |0
+<U91CB> \xC4\xC0 |0
+<U91CC> \xA8\xBD |0
+<U91CD> \xAD\xAB |0
+<U91CE> \xB3\xA5 |0
+<U91CF> \xB6\x71 |0
+<U91D0> \xC2\xE7 |0
+<U91D1> \xAA\xF7 |0
+<U91D3> \xD0\xC1 |0
+<U91D4> \xD0\xC0 |0
+<U91D5> \xD4\x42 |0
+<U91D6> \xFC\x5E |0
+<U91D7> \xB0\x78 |0
+<U91D8> \xB0\x76 |0
+<U91D9> \xB0\x7A |0
+<U91DA> \xD4\x44 |0
+<U91DC> \xB0\x79 |0
+<U91DD> \xB0\x77 |0
+<U91DF> \x89\x49 |0
+<U91E2> \xD4\x43 |0
+<U91E3> \xB3\xA8 |0
+<U91E4> \xD7\xFC |0
+<U91E5> \x96\x5B |0
+<U91E6> \xB3\xA7 |0
+<U91E7> \xB3\xA9 |0
+<U91E8> \xD8\x42 |0
+<U91E9> \xB3\xAB |0
+<U91EA> \xD7\xFE |0
+<U91EB> \xD8\x40 |0
+<U91EC> \xD7\xF7 |0
+<U91ED> \xB3\xAA |0
+<U91EE> \xD8\x43 |0
+<U91F1> \xD7\xF9 |0
+<U91F3> \xD7\xFA |0
+<U91F4> \xD7\xF8 |0
+<U91F5> \xB3\xA6 |0
+<U91F7> \xD8\x41 |0
+<U91F8> \xD7\xFB |0
+<U91F9> \xD7\xFD |0
+<U91FA> \x94\xA6 |0
+<U91FD> \xDC\x6D |0
+<U91FE> \x8F\xD5 |0
+<U91FF> \xDC\x6C |0
+<U9200> \xDC\x6A |0
+<U9201> \xDC\x62 |0
+<U9202> \xDC\x71 |0
+<U9203> \xDC\x65 |0
+<U9204> \xDC\x6F |0
+<U9205> \xDC\x76 |0
+<U9206> \xDC\x6E |0
+<U9207> \xB6\x79 |0
+<U9208> \x9E\x73 |0
+<U9209> \xB6\x75 |0
+<U920A> \xDC\x63 |0
+<U920C> \xDC\x69 |0
+<U920D> \xB6\x77 |0
+<U920E> \x90\x75 |0
+<U920F> \xDC\x68 |0
+<U9210> \xB6\x78 |0
+<U9211> \xB6\x7A |0
+<U9212> \xDC\x6B |0
+<U9213> \x99\xF7 |0
+<U9214> \xB6\x72 |0
+<U9215> \xB6\x73 |0
+<U9216> \xDC\x77 |0
+<U9217> \xDC\x75 |0
+<U9219> \xDC\x74 |0
+<U921A> \xDC\x66 |0
+<U921C> \xDC\x72 |0
+<U921E> \xB6\x76 |0
+<U9223> \xB6\x74 |0
+<U9224> \xDC\x73 |0
+<U9225> \xDC\x64 |0
+<U9226> \xDC\x67 |0
+<U9227> \xDC\x70 |0
+<U9228> \x99\xF9 |0
+<U922A> \x96\x63 |0
+<U922B> \x95\xB9 |0
+<U922D> \xE4\xBA |0
+<U922E> \xE0\xB7 |0
+<U9230> \xE0\xB0 |0
+<U9231> \xE0\xC3 |0
+<U9232> \xE0\xCC |0
+<U9233> \xE0\xB3 |0
+<U9234> \xB9\x61 |0
+<U9235> \x94\xD4 |0
+<U9236> \xE0\xC0 |0
+<U9237> \xB9\x57 |0
+<U9238> \xB9\x59 |0
+<U9239> \xB9\x65 |0
+<U923A> \xE0\xB1 |0
+<U923C> \xFC\xFA |0
+<U923D> \xB9\x5A |0
+<U923E> \xB9\x5C |0
+<U923F> \xB9\x66 |0
+<U9240> \xB9\x5B |0
+<U9241> \x90\x77 |0
+<U9244> \x90\xAB |0
+<U9245> \xB9\x64 |0
+<U9246> \xE0\xB9 |0
+<U9248> \xE0\xAE |0
+<U9249> \xB9\x62 |0
+<U924A> \xE0\xB8 |0
+<U924B> \xB9\x5E |0
+<U924C> \xE0\xCA |0
+<U924D> \xB9\x63 |0
+<U924E> \xE0\xC8 |0
+<U924F> \xE0\xBC |0
+<U9250> \xE0\xC6 |0
+<U9251> \xB9\x60 |0
+<U9252> \xE0\xAF |0
+<U9253> \xE0\xC9 |0
+<U9254> \xE0\xC4 |0
+<U9255> \x9D\x4D |0
+<U9256> \xE0\xCB |0
+<U9257> \xB9\x58 |0
+<U9258> \x99\xFA |0
+<U925A> \xB9\x67 |0
+<U925B> \xB9\x5D |0
+<U925D> \x92\xE3 |0
+<U925E> \xE0\xB5 |0
+<U925F> \x97\xBB |0
+<U9260> \xE0\xBD |0
+<U9261> \xE0\xC1 |0
+<U9262> \x90\x78 |0
+<U9263> \xE0\xC5 |0
+<U9264> \xB9\x5F |0
+<U9265> \xE0\xB4 |0
+<U9266> \xE0\xB2 |0
+<U9267> \xE0\xBE |0
+<U926B> \x99\xFB |0
+<U926C> \xE0\xBB |0
+<U926D> \xE0\xBA |0
+<U926E> \x97\xE0 |0
+<U926F> \xE0\xBF |0
+<U9270> \xE0\xC2 |0
+<U9272> \xE0\xC7 |0
+<U9276> \xE4\x78 |0
+<U9277> \x96\xDC |0
+<U9278> \xBB\xC7 |0
+<U9279> \xE4\xA4 |0
+<U927A> \xE4\x7A |0
+<U927B> \xBB\xCC |0
+<U927C> \xBB\xD0 |0
+<U927D> \xE4\xAD |0
+<U927E> \xE4\xB5 |0
+<U927F> \xE4\xA6 |0
+<U9280> \xBB\xC8 |0
+<U9281> \x9C\xA8 |0
+<U9282> \xE4\xAA |0
+<U9283> \xE0\xB6 |0
+<U9284> \x97\x72 |0
+<U9285> \xBB\xC9 |0
+<U9286> \xE4\xB1 |0
+<U9287> \xE4\xB6 |0
+<U9288> \xE4\xAE |0
+<U9289> \x94\x40 |0
+<U928A> \xE4\xB0 |0
+<U928B> \xE4\xB9 |0
+<U928C> \xE4\xB2 |0
+<U928D> \xE4\x7E |0
+<U928E> \xE4\xA9 |0
+<U928F> \x92\xF2 |0
+<U9291> \xBB\xD1 |0
+<U9293> \xBB\xCD |0
+<U9294> \xE4\x7C |0
+<U9295> \xE4\xAB |0
+<U9296> \xBB\xCB |0
+<U9297> \xE4\xA5 |0
+<U9298> \xBB\xCA |0
+<U9299> \xE4\xB3 |0
+<U929A> \xE4\xA2 |0
+<U929B> \xE4\x79 |0
+<U929C> \xBB\xCE |0
+<U929D> \xE4\xB8 |0
+<U92A0> \xE4\x7B |0
+<U92A1> \xE4\xAF |0
+<U92A2> \xE4\xAC |0
+<U92A3> \xE4\xA7 |0
+<U92A4> \xE4\x77 |0
+<U92A5> \xE4\x76 |0
+<U92A6> \xE4\xA1 |0
+<U92A7> \xE4\xB4 |0
+<U92A8> \xBB\xCF |0
+<U92A9> \xE4\xB7 |0
+<U92AA> \xE4\x7D |0
+<U92AB> \xE4\xA3 |0
+<U92AC> \xBE\x52 |0
+<U92AE> \x99\xFD |0
+<U92B1> \x99\xFC |0
+<U92B2> \xBE\x5A |0
+<U92B3> \xBE\x55 |0
+<U92B4> \xE8\xA4 |0
+<U92B5> \xE8\xA1 |0
+<U92B6> \xE8\x67 |0
+<U92B7> \xBE\x50 |0
+<U92B9> \xF9\xD7 |0
+<U92BA> \x96\x4A |0
+<U92BB> \xBE\x4F |0
+<U92BC> \xBE\x56 |0
+<U92BE> \x96\xD8 |0
+<U92BF> \x99\xFE |0
+<U92C0> \xE8\x65 |0
+<U92C1> \xBE\x54 |0
+<U92C2> \xE8\x71 |0
+<U92C3> \xE8\x63 |0
+<U92C4> \xE8\x64 |0
+<U92C5> \xBE\x4E |0
+<U92C6> \xE8\xA3 |0
+<U92C7> \xBE\x58 |0
+<U92C8> \xE8\x74 |0
+<U92C9> \xE8\x79 |0
+<U92CA> \xE8\x73 |0
+<U92CB> \xEB\xEE |0
+<U92CC> \xE8\x6F |0
+<U92CD> \xE8\x77 |0
+<U92CE> \xE8\x75 |0
+<U92CF> \xE8\x68 |0
+<U92D0> \xE8\x62 |0
+<U92D1> \xE8\x7D |0
+<U92D2> \xBE\x57 |0
+<U92D3> \xE8\x7E |0
+<U92D4> \x90\x4B |0
+<U92D5> \xE8\x78 |0
+<U92D7> \xE8\x6D |0
+<U92D8> \xE8\x6B |0
+<U92D9> \xE8\x66 |0
+<U92DB> \xFA\x41 |0
+<U92DD> \xE8\x6E |0
+<U92DE> \xE8\x7B |0
+<U92DF> \xE8\x6A |0
+<U92E0> \xE8\x7A |0
+<U92E1> \xE8\xA2 |0
+<U92E3> \x9A\x40 |0
+<U92E4> \xBE\x53 |0
+<U92E5> \x97\x5B |0
+<U92E6> \xE8\x76 |0
+<U92E7> \xE8\x7C |0
+<U92E8> \xE8\x72 |0
+<U92E9> \xE8\x6C |0
+<U92EA> \xBE\x51 |0
+<U92EB> \x9A\x41 |0
+<U92EC> \x91\xDD |0
+<U92EE> \xE4\xA8 |0
+<U92EF> \xE8\x70 |0
+<U92F0> \xBE\x59 |0
+<U92F1> \xE8\x69 |0
+<U92F2> \x93\xFC |0
+<U92F3> \x9A\x42 |0
+<U92F4> \x9A\x43 |0
+<U92F6> \x96\x59 |0
+<U92F7> \xEB\xF4 |0
+<U92F8> \xBF\xF7 |0
+<U92F9> \xEB\xF3 |0
+<U92FA> \xEB\xF0 |0
+<U92FB> \xEC\x44 |0
+<U92FC> \xBF\xFB |0
+<U92FD> \x9A\x44 |0
+<U92FE> \xEC\x41 |0
+<U92FF> \xEB\xF8 |0
+<U9300> \xEC\x43 |0
+<U9301> \xEB\xE9 |0
+<U9302> \xEB\xF6 |0
+<U9303> \x90\x51 |0
+<U9304> \xBF\xFD |0
+<U9306> \xEB\xE1 |0
+<U9307> \x94\xBF |0
+<U9308> \xEB\xDF |0
+<U9309> \xEC\x42 |0
+<U930B> \xEC\x40 |0
+<U930C> \xEB\xFE |0
+<U930D> \xEB\xED |0
+<U930E> \xEB\xEC |0
+<U930F> \xEB\xE2 |0
+<U9310> \xC0\x40 |0
+<U9312> \xEB\xE8 |0
+<U9313> \xEB\xF2 |0
+<U9314> \xEB\xFD |0
+<U9315> \xC0\x43 |0
+<U9316> \xEC\x45 |0
+<U9318> \xC1\xE8 |0
+<U9319> \xC0\x45 |0
+<U931A> \xBF\xFE |0
+<U931B> \xEB\xE6 |0
+<U931D> \xEB\xEF |0
+<U931E> \xEB\xDE |0
+<U931F> \xEB\xE0 |0
+<U9320> \xBF\xF5 |0
+<U9321> \xC0\x42 |0
+<U9322> \xBF\xFA |0
+<U9323> \xEB\xE7 |0
+<U9324> \xEB\xF7 |0
+<U9325> \xEB\xF1 |0
+<U9326> \xC0\x41 |0
+<U9327> \xEB\xDD |0
+<U9328> \xC1\xE3 |0
+<U9329> \xEB\xF9 |0
+<U932A> \xEB\xFC |0
+<U932B> \xBF\xFC |0
+<U932C> \x90\xA2 |0
+<U932D> \xEB\xEB |0
+<U932E> \xC0\x44 |0
+<U932F> \xBF\xF9 |0
+<U9330> \x9C\xAB |0
+<U9331> \x97\x76 |0
+<U9333> \xBF\xF8 |0
+<U9334> \xEB\xF5 |0
+<U9335> \xEB\xFB |0
+<U9336> \xBF\xF6 |0
+<U9338> \xEB\xE4 |0
+<U9339> \xEB\xFA |0
+<U933C> \xEB\xE5 |0
+<U9340> \xFC\x55 |0
+<U9341> \xFE\x45 |0
+<U9342> \x94\xA8 |0
+<U9343> \x9A\x45 |0
+<U9344> \xFA\x4B |0
+<U9345> \x9D\xE1 |0
+<U9346> \xEB\xEA |0
+<U9347> \xEE\xD2 |0
+<U9348> \x96\xD9 |0
+<U9349> \xEE\xD7 |0
+<U934A> \xC1\xE5 |0
+<U934B> \xC1\xE7 |0
+<U934C> \xEE\xDD |0
+<U934D> \xC1\xE1 |0
+<U934E> \xEE\xEC |0
+<U934F> \xEE\xE3 |0
+<U9350> \xEE\xD8 |0
+<U9351> \xEE\xD9 |0
+<U9352> \xEE\xE2 |0
+<U9354> \xC1\xEE |0
+<U9355> \xEE\xE1 |0
+<U9356> \xEE\xD1 |0
+<U9357> \xEE\xE0 |0
+<U9358> \xEE\xD4 |0
+<U9359> \xEE\xED |0
+<U935A> \xC1\xED |0
+<U935B> \xC1\xEB |0
+<U935C> \xEE\xD5 |0
+<U935E> \xEE\xE8 |0
+<U935F> \x97\x74 |0
+<U9360> \xEE\xDA |0
+<U9361> \xEE\xE7 |0
+<U9362> \xFD\xF5 |0
+<U9363> \xEE\xE9 |0
+<U9364> \xEE\xD0 |0
+<U9365> \xC1\xE6 |0
+<U9366> \x92\xE5 |0
+<U9367> \xEE\xEA |0
+<U9368> \x96\x45 |0
+<U9369> \x91\xDA |0
+<U936A> \xEE\xDE |0
+<U936B> \x90\xA3 |0
+<U936C> \xC1\xEA |0
+<U936D> \xEE\xDB |0
+<U936E> \xA0\x5F |0
+<U9370> \xC1\xEC |0
+<U9371> \xEE\xE4 |0
+<U9373> \x90\xAF |0
+<U9374> \x97\xBF |0
+<U9375> \xC1\xE4 |0
+<U9376> \xEE\xD6 |0
+<U9377> \xEE\xE5 |0
+<U9378> \x91\x4C |0
+<U9379> \xEE\xDF |0
+<U937A> \xEB\xE3 |0
+<U937B> \xEE\xE6 |0
+<U937C> \xEE\xD3 |0
+<U937D> \x96\x7A |0
+<U937E> \xC1\xE9 |0
+<U9380> \xEE\xEB |0
+<U9381> \x91\xDE |0
+<U9382> \xC1\xE2 |0
+<U9383> \xEE\xCE |0
+<U9384> \x9A\x46 |0
+<U9385> \xFE\xB0 |0
+<U9386> \x97\x79 |0
+<U9387> \x94\x6C |0
+<U9388> \xF1\x60 |0
+<U9389> \xF1\x59 |0
+<U938A> \xC2\xE9 |0
+<U938C> \xF1\x54 |0
+<U938D> \xF1\x63 |0
+<U938E> \xF1\x5B |0
+<U938F> \xEE\xDC |0
+<U9390> \x98\x58 |0
+<U9391> \xF1\x65 |0
+<U9392> \xF1\x55 |0
+<U9394> \xC2\xE8 |0
+<U9395> \xF1\x5F |0
+<U9396> \xC2\xEA |0
+<U9397> \xC2\xF2 |0
+<U9398> \xC2\xF0 |0
+<U9399> \xF1\x61 |0
+<U939A> \xC2\xF1 |0
+<U939B> \xF1\x57 |0
+<U939C> \x92\x66 |0
+<U939D> \xF1\x58 |0
+<U939E> \xF1\x5D |0
+<U939F> \xF1\x62 |0
+<U93A0> \x93\xFB |0
+<U93A1> \xEE\xCD |0
+<U93A2> \xC2\xEB |0
+<U93A3> \xF1\x6A |0
+<U93A4> \xF1\x67 |0
+<U93A5> \xF1\x6B |0
+<U93A6> \xF1\x5E |0
+<U93A7> \xF1\x5A |0
+<U93A8> \xF1\x68 |0
+<U93A9> \xF3\x6A |0
+<U93AA> \xF1\x5C |0
+<U93AC> \xC2\xEE |0
+<U93AD> \x9A\x47 |0
+<U93AE> \xC2\xED |0
+<U93AF> \xEE\xCF |0
+<U93B0> \xC2\xEF |0
+<U93B1> \xF1\x64 |0
+<U93B2> \xF1\x66 |0
+<U93B3> \xC2\xEC |0
+<U93B4> \xF1\x69 |0
+<U93B5> \xF1\x53 |0
+<U93B7> \xF1\x56 |0
+<U93B8> \x97\x49 |0
+<U93BB> \x97\x48 |0
+<U93BD> \x93\x4A |0
+<U93BF> \x9C\xE2 |0
+<U93C0> \xF3\x73 |0
+<U93C2> \xF3\x63 |0
+<U93C3> \xC3\xEB |0
+<U93C4> \xF3\x71 |0
+<U93C6> \x92\x64 |0
+<U93C7> \xF3\x61 |0
+<U93C8> \xC3\xEC |0
+<U93CA> \xF3\x6C |0
+<U93CB> \x91\xDF |0
+<U93CC> \xF3\x68 |0
+<U93CD> \xC3\xF1 |0
+<U93CE> \xF3\x72 |0
+<U93CF> \xF3\x62 |0
+<U93D0> \xF3\x65 |0
+<U93D1> \xC3\xE9 |0
+<U93D2> \xF3\x74 |0
+<U93D3> \xFB\x79 |0
+<U93D4> \xF3\x6D |0
+<U93D5> \xF3\x70 |0
+<U93D6> \xC3\xEF |0
+<U93D7> \xC3\xF4 |0
+<U93D8> \xC3\xF2 |0
+<U93D9> \xF3\x69 |0
+<U93DA> \xF3\x64 |0
+<U93DB> \x96\xD7 |0
+<U93DC> \xC3\xED |0
+<U93DD> \xC3\xEE |0
+<U93DE> \xF3\x60 |0
+<U93DF> \xC3\xEA |0
+<U93E0> \x93\x43 |0
+<U93E1> \xC3\xE8 |0
+<U93E2> \xC3\xF0 |0
+<U93E3> \xF3\x6F |0
+<U93E4> \xC3\xF3 |0
+<U93E6> \xF3\x6B |0
+<U93E7> \xF3\x75 |0
+<U93E8> \xC3\xF5 |0
+<U93EC> \xF3\x67 |0
+<U93EE> \xF3\x6E |0
+<U93F0> \xFD\xCB |0
+<U93F1> \xFE\x7A |0
+<U93F3> \x91\xDB |0
+<U93F5> \xF4\xF3 |0
+<U93F6> \xF5\x42 |0
+<U93F7> \xF4\xF5 |0
+<U93F8> \xF4\xFC |0
+<U93F9> \xF3\x66 |0
+<U93FA> \xF4\xFA |0
+<U93FB> \xF4\xE9 |0
+<U93FC> \xF5\x40 |0
+<U93FD> \xC4\xC3 |0
+<U93FE> \xF4\xED |0
+<U93FF> \xF4\xFE |0
+<U9400> \xF4\xF4 |0
+<U9401> \x97\xAF |0
+<U9403> \xC4\xC2 |0
+<U9404> \x95\xDD |0
+<U9406> \xF5\x44 |0
+<U9407> \xF4\xF6 |0
+<U9408> \x93\x48 |0
+<U9409> \xF4\xFB |0
+<U940A> \xF4\xFD |0
+<U940B> \xF4\xE7 |0
+<U940C> \xF5\x41 |0
+<U940D> \xF4\xF2 |0
+<U940E> \xF4\xF7 |0
+<U940F> \xF4\xEB |0
+<U9410> \xF4\xEF |0
+<U9411> \xF5\x43 |0
+<U9412> \xF4\xF9 |0
+<U9413> \xF4\xE8 |0
+<U9414> \xF4\xEC |0
+<U9415> \xF4\xEE |0
+<U9416> \xF4\xF8 |0
+<U9417> \x9A\x4B |0
+<U9418> \xC4\xC1 |0
+<U9419> \xF4\xF1 |0
+<U941B> \xFC\x45 |0
+<U941D> \x9A\x4D |0
+<U9420> \xF4\xEA |0
+<U9424> \x91\xBC |0
+<U9425> \x90\xE2 |0
+<U9426> \x90\xB4 |0
+<U9427> \x95\xE1 |0
+<U9428> \xF4\xF0 |0
+<U9429> \xF6\x61 |0
+<U942A> \xF6\x66 |0
+<U942B> \xC5\x4F |0
+<U942C> \xF6\x68 |0
+<U942D> \x9A\x4E |0
+<U942E> \xC5\x49 |0
+<U9430> \xF6\x64 |0
+<U9431> \xF6\x6A |0
+<U9432> \xC5\x4E |0
+<U9433> \xC5\x4A |0
+<U9435> \xC5\x4B |0
+<U9436> \xF6\x60 |0
+<U9437> \xF6\x67 |0
+<U9438> \xC5\x4D |0
+<U9439> \xF6\x65 |0
+<U943A> \xC5\x4C |0
+<U943B> \xF6\x5F |0
+<U943C> \xF6\x63 |0
+<U943D> \xF6\x62 |0
+<U943E> \x9A\x4F |0
+<U943F> \xF6\x5E |0
+<U9440> \xF6\x69 |0
+<U9442> \xFE\x40 |0
+<U9443> \xFE\x43 |0
+<U9444> \xC5\xB1 |0
+<U9445> \xF7\x6D |0
+<U9446> \xF7\x70 |0
+<U9447> \xF7\x6C |0
+<U9448> \xF7\x6E |0
+<U9449> \xF7\x6F |0
+<U944A> \xF7\x69 |0
+<U944B> \xF7\x6A |0
+<U944C> \xF7\x67 |0
+<U944D> \x96\xDD |0
+<U944F> \xF7\x6B |0
+<U9450> \xF7\x68 |0
+<U9451> \xC5\xB2 |0
+<U9452> \xC5\xB3 |0
+<U9454> \x9A\x51 |0
+<U9455> \xF8\x4B |0
+<U9457> \xF8\x4D |0
+<U9458> \x96\xA7 |0
+<U945B> \x90\xB0 |0
+<U945D> \xF8\x4C |0
+<U945E> \xF8\x4E |0
+<U9460> \xC5\xE0 |0
+<U9462> \xF8\x4A |0
+<U9463> \xC5\xDF |0
+<U9464> \xC5\xE1 |0
+<U9465> \x9C\x4E |0
+<U9467> \x94\x43 |0
+<U9468> \xF8\xCB |0
+<U9469> \xF8\xCC |0
+<U946A> \xC6\x44 |0
+<U946B> \xF8\xCA |0
+<U946C> \x8E\xBA |0
+<U946D> \xF9\x53 |0
+<U946E> \xF9\x52 |0
+<U946F> \xF9\x54 |0
+<U9470> \xC6\x5F |0
+<U9471> \xF9\x55 |0
+<U9472> \xC6\x5E |0
+<U9473> \xF9\x56 |0
+<U9474> \xF9\x72 |0
+<U9475> \xF9\x75 |0
+<U9476> \xF9\x74 |0
+<U9477> \xC6\x68 |0
+<U9478> \xF9\x73 |0
+<U9479> \x9A\x52 |0
+<U947B> \xFC\xC1 |0
+<U947C> \xC6\x72 |0
+<U947D> \xC6\x70 |0
+<U947E> \xC6\x71 |0
+<U947F> \xC6\x77 |0
+<U9480> \xF9\xC0 |0
+<U9481> \xF9\xC1 |0
+<U9482> \xF9\xBF |0
+<U9483> \xF9\xC9 |0
+<U9485> \x8B\xE9 |0
+<U949F> \x9C\xAF |0
+<U94A2> \x8B\xFD |0
+<U94C1> \x9A\xBC |0
+<U94C3> \x9A\xB8 |0
+<U94DC> \x9A\xAE |0
+<U94F6> \x9A\xA7 |0
+<U952D> \x9A\x53 |0
+<U9547> \x9D\x74 |0
+<U9577> \xAA\xF8 |0
+<U9578> \x8B\xEA |0
+<U957A> \xD8\x44 |0
+<U957B> \xDC\x78 |0
+<U957C> \xE8\xA5 |0
+<U957D> \xF3\x76 |0
+<U957F> \x8B\xEB |0
+<U9580> \xAA\xF9 |0
+<U9582> \xAD\xAC |0
+<U9583> \xB0\x7B |0
+<U9585> \x90\xB2 |0
+<U9586> \xD8\x45 |0
+<U9588> \xD8\x46 |0
+<U9589> \xB3\xAC |0
+<U958B> \xB6\x7D |0
+<U958C> \xDC\x7A |0
+<U958D> \xDC\x79 |0
+<U958E> \xB6\xA3 |0
+<U958F> \xB6\x7C |0
+<U9590> \xDC\x7B |0
+<U9591> \xB6\x7E |0
+<U9592> \xB6\xA2 |0
+<U9593> \xB6\xA1 |0
+<U9594> \xB6\x7B |0
+<U9596> \x95\xE9 |0
+<U9597> \x95\xE8 |0
+<U9598> \xB9\x68 |0
+<U9599> \x95\xE6 |0
+<U959B> \xE0\xD0 |0
+<U959C> \xE0\xCE |0
+<U959E> \xE0\xCF |0
+<U959F> \xE0\xCD |0
+<U95A0> \x90\xB5 |0
+<U95A1> \xBB\xD2 |0
+<U95A2> \x9A\x54 |0
+<U95A3> \xBB\xD5 |0
+<U95A4> \xBB\xD7 |0
+<U95A5> \xBB\xD6 |0
+<U95A6> \x90\xB3 |0
+<U95A7> \x95\xE7 |0
+<U95A8> \xBB\xD3 |0
+<U95A9> \xBB\xD4 |0
+<U95AA> \x8B\x50 |0
+<U95AB> \xE8\xA7 |0
+<U95AC> \xE8\xA6 |0
+<U95AD> \xBE\x5B |0
+<U95AE> \xE8\xA8 |0
+<U95B0> \xE8\xA9 |0
+<U95B1> \xBE\x5C |0
+<U95B5> \xEC\x4D |0
+<U95B6> \xEC\x4B |0
+<U95B7> \xEE\xF3 |0
+<U95B9> \xEC\x49 |0
+<U95BA> \xEC\x4A |0
+<U95BB> \xC0\x46 |0
+<U95BC> \xEC\x46 |0
+<U95BD> \xEC\x4E |0
+<U95BE> \xEC\x48 |0
+<U95BF> \xEC\x4C |0
+<U95C0> \xEE\xEF |0
+<U95C3> \xEE\xF1 |0
+<U95C5> \xEE\xF2 |0
+<U95C6> \xC1\xF3 |0
+<U95C7> \xEE\xEE |0
+<U95C8> \xC1\xF2 |0
+<U95C9> \xEE\xF0 |0
+<U95CA> \xC1\xEF |0
+<U95CB> \xC1\xF0 |0
+<U95CC> \xC1\xF1 |0
+<U95CD> \xEC\x47 |0
+<U95D0> \xC2\xF5 |0
+<U95D1> \xF1\x6E |0
+<U95D2> \xF1\x6C |0
+<U95D3> \xF1\x6D |0
+<U95D4> \xC2\xF3 |0
+<U95D5> \xC2\xF6 |0
+<U95D6> \xC2\xF4 |0
+<U95DA> \xF3\x77 |0
+<U95DB> \xF3\x78 |0
+<U95DC> \xC3\xF6 |0
+<U95DE> \xF5\x45 |0
+<U95DF> \xF5\x47 |0
+<U95E0> \xF5\x46 |0
+<U95E1> \xC4\xC4 |0
+<U95E2> \xC5\x50 |0
+<U95E3> \xF6\x6D |0
+<U95E4> \xF6\x6C |0
+<U95E5> \xF6\x6B |0
+<U95E8> \x8B\xEC |0
+<U95F4> \x9A\x56 |0
+<U961C> \xAA\xFA |0
+<U961D> \x8B\xFB |0
+<U961E> \xC9\xAA |0
+<U9620> \xCA\x58 |0
+<U9621> \xA6\xE9 |0
+<U9622> \xCA\x56 |0
+<U9623> \xCA\x59 |0
+<U9624> \xCA\x57 |0
+<U9628> \xCB\xAE |0
+<U962A> \xA8\xC1 |0
+<U962C> \xA8\xC2 |0
+<U962D> \xCB\xB0 |0
+<U962E> \xA8\xBF |0
+<U962F> \xCB\xAF |0
+<U9630> \xCB\xAD |0
+<U9631> \xA8\xC0 |0
+<U9632> \xA8\xBE |0
+<U9633> \x9A\x57 |0
+<U9638> \xA0\xAA |0
+<U9639> \xCD\xD8 |0
+<U963A> \xCD\xDB |0
+<U963B> \xAA\xFD |0
+<U963C> \xCD\xDA |0
+<U963D> \xCD\xD9 |0
+<U963F> \xAA\xFC |0
+<U9640> \xAA\xFB |0
+<U9641> \x9F\xA6 |0
+<U9642> \xAB\x40 |0
+<U9643> \xCD\xDC |0
+<U9644> \xAA\xFE |0
+<U9645> \x99\xCC |0
+<U964A> \xD0\xC6 |0
+<U964B> \xAD\xAE |0
+<U964C> \xAD\xAF |0
+<U964D> \xAD\xB0 |0
+<U964E> \xD0\xC7 |0
+<U964F> \xD0\xC3 |0
+<U9650> \xAD\xAD |0
+<U9651> \xD0\xC4 |0
+<U9653> \xD0\xC5 |0
+<U9654> \xD0\xC2 |0
+<U9656> \x9C\x59 |0
+<U9658> \xB0\xA4 |0
+<U965B> \xB0\xA1 |0
+<U965C> \xD4\x45 |0
+<U965D> \xB0\xA2 |0
+<U965E> \xB0\xA5 |0
+<U965F> \xD4\x46 |0
+<U9661> \xB0\x7E |0
+<U9662> \xB0\x7C |0
+<U9663> \xB0\x7D |0
+<U9664> \xB0\xA3 |0
+<U9669> \x99\xB5 |0
+<U966A> \xB3\xAD |0
+<U966B> \xD8\x49 |0
+<U966C> \xB3\xB5 |0
+<U966D> \xD8\x48 |0
+<U966F> \xD8\x4B |0
+<U9670> \xB3\xB1 |0
+<U9671> \xD8\x4A |0
+<U9672> \xB6\xAB |0
+<U9673> \xB3\xAF |0
+<U9674> \xB3\xB2 |0
+<U9675> \xB3\xAE |0
+<U9676> \xB3\xB3 |0
+<U9677> \xB3\xB4 |0
+<U9678> \xB3\xB0 |0
+<U967B> \x90\xBE |0
+<U967C> \xD8\x47 |0
+<U967D> \xB6\xA7 |0
+<U967E> \xDC\x7D |0
+<U9680> \xDC\xA3 |0
+<U9681> \x9F\xAF |0
+<U9683> \xDC\xA2 |0
+<U9684> \xB6\xAC |0
+<U9685> \xB6\xA8 |0
+<U9686> \xB6\xA9 |0
+<U9687> \xDC\x7C |0
+<U9688> \xDC\x7E |0
+<U9689> \xDC\xA1 |0
+<U968A> \xB6\xA4 |0
+<U968B> \xB6\xA6 |0
+<U968D> \xB6\xAA |0
+<U968E> \xB6\xA5 |0
+<U968F> \x95\xF2 |0
+<U9691> \xE0\xD3 |0
+<U9692> \xE0\xD1 |0
+<U9693> \xE0\xD2 |0
+<U9694> \xB9\x6A |0
+<U9695> \xB9\x6B |0
+<U9696> \x90\xBF |0
+<U9697> \xE0\xD4 |0
+<U9698> \xB9\x69 |0
+<U9699> \xBB\xD8 |0
+<U969B> \xBB\xDA |0
+<U969C> \xBB\xD9 |0
+<U969E> \xE4\xBB |0
+<U96A1> \xE4\xBC |0
+<U96A2> \xE8\xAB |0
+<U96A3> \x90\xC1 |0
+<U96A4> \xE8\xAA |0
+<U96A5> \xFE\xE4 |0
+<U96A7> \xC0\x47 |0
+<U96A8> \xC0\x48 |0
+<U96A9> \xEC\x4F |0
+<U96AA> \xC0\x49 |0
+<U96AC> \xEE\xF6 |0
+<U96AE> \xEE\xF4 |0
+<U96B0> \xEE\xF5 |0
+<U96B1> \xC1\xF4 |0
+<U96B3> \xF1\x6F |0
+<U96B4> \xC3\xF7 |0
+<U96B6> \x90\xC4 |0
+<U96B8> \xC1\xF5 |0
+<U96B9> \xAB\x41 |0
+<U96BB> \xB0\xA6 |0
+<U96BC> \xD4\x47 |0
+<U96BD> \x90\xC7 |0
+<U96BF> \xD8\x4C |0
+<U96C0> \xB3\xB6 |0
+<U96C1> \xB6\xAD |0
+<U96C2> \xDC\xA4 |0
+<U96C3> \xDC\xA6 |0
+<U96C4> \xB6\xAF |0
+<U96C5> \xB6\xAE |0
+<U96C6> \xB6\xB0 |0
+<U96C7> \xB6\xB1 |0
+<U96C8> \xDC\xA5 |0
+<U96C9> \xB9\x6E |0
+<U96CA> \xB9\x6F |0
+<U96CB> \xB9\x6D |0
+<U96CC> \xBB\xDB |0
+<U96CD> \xB9\x6C |0
+<U96CE> \xE0\xD5 |0
+<U96D2> \xBB\xDC |0
+<U96D3> \xE8\xAC |0
+<U96D4> \xEC\x50 |0
+<U96D5> \xC0\x4A |0
+<U96D6> \xC1\xF6 |0
+<U96D7> \xF1\x70 |0
+<U96D8> \xF1\x74 |0
+<U96D9> \xC2\xF9 |0
+<U96DA> \xF1\x71 |0
+<U96DB> \xC2\xFA |0
+<U96DC> \xC2\xF8 |0
+<U96DD> \xF1\x75 |0
+<U96DE> \xC2\xFB |0
+<U96DF> \xF1\x73 |0
+<U96E1> \xF3\x79 |0
+<U96E2> \xC2\xF7 |0
+<U96E3> \xC3\xF8 |0
+<U96E5> \xF8\xCD |0
+<U96E8> \xAB\x42 |0
+<U96E9> \xB3\xB8 |0
+<U96EA> \xB3\xB7 |0
+<U96EF> \xB6\xB2 |0
+<U96F0> \xDC\xA8 |0
+<U96F1> \xDC\xA7 |0
+<U96F2> \xB6\xB3 |0
+<U96F4> \x92\xE4 |0
+<U96F5> \xE0\xD9 |0
+<U96F6> \xB9\x73 |0
+<U96F7> \xB9\x70 |0
+<U96F8> \xE0\xD8 |0
+<U96F9> \xB9\x72 |0
+<U96FA> \xE0\xD6 |0
+<U96FB> \xB9\x71 |0
+<U96FD> \xE0\xD7 |0
+<U96FF> \xE4\xBD |0
+<U9700> \xBB\xDD |0
+<U9702> \xE8\xAF |0
+<U9703> \x9F\x52 |0
+<U9704> \xBE\x5D |0
+<U9705> \xE8\xAD |0
+<U9706> \xBE\x5E |0
+<U9707> \xBE\x5F |0
+<U9708> \xE8\xAE |0
+<U9709> \xBE\x60 |0
+<U970B> \xEC\x51 |0
+<U970D> \xC0\x4E |0
+<U970E> \xC0\x4B |0
+<U970F> \xC0\x50 |0
+<U9710> \xEC\x53 |0
+<U9711> \xC0\x4C |0
+<U9712> \xEC\x52 |0
+<U9713> \xC0\x4F |0
+<U9716> \xC0\x4D |0
+<U9718> \xEE\xF9 |0
+<U9719> \xEE\xFB |0
+<U971B> \x90\xDB |0
+<U971C> \xC1\xF7 |0
+<U971D> \xEE\xFA |0
+<U971E> \xC1\xF8 |0
+<U971F> \xEE\xF8 |0
+<U9720> \xEE\xF7 |0
+<U9721> \xA0\x66 |0
+<U9722> \xF1\x77 |0
+<U9723> \xF1\x76 |0
+<U9724> \xC2\xFC |0
+<U9725> \xF1\x78 |0
+<U9726> \xF3\x7E |0
+<U9727> \xC3\xFA |0
+<U9728> \xF3\x7D |0
+<U9729> \xF3\x7A |0
+<U972A> \xC3\xF9 |0
+<U972B> \xF3\x7B |0
+<U972C> \xF3\x7C |0
+<U972E> \xF5\x48 |0
+<U972F> \xF5\x49 |0
+<U9730> \xC4\xC5 |0
+<U9731> \x90\xD2 |0
+<U9732> \xC5\x53 |0
+<U9735> \xF6\x6E |0
+<U9736> \x90\xD4 |0
+<U9738> \xC5\x51 |0
+<U9739> \xC5\x52 |0
+<U973A> \xF6\x6F |0
+<U973D> \xC5\xB4 |0
+<U973E> \xC5\xB5 |0
+<U973F> \xF7\x71 |0
+<U9740> \x9A\x5B |0
+<U9741> \x95\xFD |0
+<U9742> \xC6\x45 |0
+<U9743> \xF8\xCF |0
+<U9744> \xC6\x47 |0
+<U9746> \xF8\xCE |0
+<U9747> \xF8\xD0 |0
+<U9748> \xC6\x46 |0
+<U9749> \xF9\x57 |0
+<U974B> \xF9\xAD |0
+<U9751> \x8B\xC4 |0
+<U9752> \xAB\x43 |0
+<U9756> \xB9\x74 |0
+<U9757> \x90\xDE |0
+<U9758> \xE4\xBE |0
+<U975A> \xE8\xB0 |0
+<U975B> \xC0\x51 |0
+<U975C> \xC0\x52 |0
+<U975D> \x9C\xE4 |0
+<U975E> \xAB\x44 |0
+<U975F> \x90\xE1 |0
+<U9760> \xBE\x61 |0
+<U9761> \xC3\xFB |0
+<U9762> \xAD\xB1 |0
+<U9766> \xC0\x53 |0
+<U9768> \xC5\xE2 |0
+<U9769> \xAD\xB2 |0
+<U976A> \xD8\x4D |0
+<U976C> \xDC\xA9 |0
+<U976D> \x9E\x46 |0
+<U976E> \xDC\xAB |0
+<U9770> \xDC\xAA |0
+<U9771> \x96\x51 |0
+<U9772> \xE0\xDD |0
+<U9773> \xE0\xDA |0
+<U9774> \xB9\x75 |0
+<U9776> \xB9\x76 |0
+<U9777> \xE0\xDB |0
+<U9778> \xE0\xDC |0
+<U977A> \xE4\xC0 |0
+<U977B> \xE4\xC5 |0
+<U977C> \xBB\xDE |0
+<U977D> \xE4\xBF |0
+<U977E> \xE4\xC1 |0
+<U977F> \xE4\xC8 |0
+<U9780> \xE4\xC3 |0
+<U9781> \xE4\xC7 |0
+<U9782> \xE4\xC4 |0
+<U9783> \xE4\xC2 |0
+<U9784> \xE4\xC6 |0
+<U9785> \xBB\xDF |0
+<U9787> \xFB\x58 |0
+<U9788> \xE8\xB3 |0
+<U9789> \x90\xE6 |0
+<U978A> \xE8\xB1 |0
+<U978B> \xBE\x63 |0
+<U978D> \xBE\x62 |0
+<U978E> \xE8\xB2 |0
+<U978F> \xBE\x64 |0
+<U9794> \xEC\x56 |0
+<U9797> \xEC\x55 |0
+<U9798> \xC0\x54 |0
+<U9799> \xEC\x54 |0
+<U979A> \xEE\xFC |0
+<U979B> \x96\x50 |0
+<U979C> \xEE\xFE |0
+<U979D> \xEF\x41 |0
+<U979E> \xEF\x40 |0
+<U979F> \x90\xE7 |0
+<U97A0> \xC1\xF9 |0
+<U97A1> \xEE\xFD |0
+<U97A2> \xF1\xA1 |0
+<U97A3> \xC2\xFD |0
+<U97A4> \xF1\x7D |0
+<U97A5> \xF1\xA2 |0
+<U97A6> \xC2\xFE |0
+<U97A8> \xF1\x7B |0
+<U97AA> \xF1\x7E |0
+<U97AB> \xF1\x7C |0
+<U97AC> \xF1\x79 |0
+<U97AD> \xC3\x40 |0
+<U97AE> \xF1\x7A |0
+<U97B1> \x90\xE8 |0
+<U97B2> \x9A\x5D |0
+<U97B3> \xF3\xA1 |0
+<U97B4> \x9F\x7A |0
+<U97B6> \xF3\xA3 |0
+<U97B7> \xF3\xA2 |0
+<U97B8> \x9B\x5C |0
+<U97B9> \xF5\x4A |0
+<U97BA> \x9F\x7C |0
+<U97BB> \xF5\x4B |0
+<U97BD> \xFC\x52 |0
+<U97BE> \x90\xE9 |0
+<U97BF> \xF6\x70 |0
+<U97C0> \x90\xEA |0
+<U97C1> \xC5\xB7 |0
+<U97C2> \x9A\x5E |0
+<U97C3> \xC5\xB6 |0
+<U97C4> \xF8\x4F |0
+<U97C5> \xF8\x50 |0
+<U97C6> \xC6\x48 |0
+<U97C7> \xF8\xD1 |0
+<U97C8> \x9F\x76 |0
+<U97C9> \xC6\x69 |0
+<U97CB> \xAD\xB3 |0
+<U97CC> \xB6\xB4 |0
+<U97CD> \xE4\xCA |0
+<U97CE> \xE4\xC9 |0
+<U97CF> \xE8\xB5 |0
+<U97D0> \xE8\xB4 |0
+<U97D2> \x90\xEB |0
+<U97D3> \xC1\xFA |0
+<U97D4> \xEF\x43 |0
+<U97D5> \xEF\x42 |0
+<U97D6> \xF1\xA5 |0
+<U97D7> \xF1\xA3 |0
+<U97D8> \xF1\xA6 |0
+<U97D9> \xF1\xA4 |0
+<U97DC> \xC3\xFC |0
+<U97DD> \xF3\xA4 |0
+<U97DE> \xF3\xA5 |0
+<U97DF> \xF3\xA6 |0
+<U97E0> \x90\xEC |0
+<U97E1> \xF6\x71 |0
+<U97E3> \xF7\x72 |0
+<U97E5> \xF8\xD2 |0
+<U97E6> \x8B\xEE |0
+<U97ED> \xAD\xB4 |0
+<U97EE> \x90\xEE |0
+<U97F0> \xEC\x57 |0
+<U97F1> \xEF\x44 |0
+<U97F2> \x91\xC6 |0
+<U97F3> \xAD\xB5 |0
+<U97F5> \x90\xF2 |0
+<U97F6> \xBB\xE0 |0
+<U97F8> \xEC\x58 |0
+<U97F9> \xC3\x41 |0
+<U97FA> \xF1\xA7 |0
+<U97FB> \xC3\xFD |0
+<U97FD> \xF5\x4C |0
+<U97FE> \xF5\x4D |0
+<U97FF> \xC5\x54 |0
+<U9800> \xF8\x51 |0
+<U9801> \xAD\xB6 |0
+<U9802> \xB3\xBB |0
+<U9803> \xB3\xBC |0
+<U9804> \xD8\x4E |0
+<U9805> \xB6\xB5 |0
+<U9806> \xB6\xB6 |0
+<U9807> \xDC\xAC |0
+<U9808> \xB6\xB7 |0
+<U980A> \xB9\x7A |0
+<U980C> \xB9\x7C |0
+<U980D> \xE0\xDF |0
+<U980E> \xE0\xE0 |0
+<U980F> \xE0\xDE |0
+<U9810> \xB9\x77 |0
+<U9811> \xB9\x78 |0
+<U9812> \xB9\x7B |0
+<U9813> \xB9\x79 |0
+<U9814> \xFC\xBC |0
+<U9815> \x8A\x74 |0
+<U9816> \xE4\xCB |0
+<U9817> \xBB\xE1 |0
+<U9818> \xBB\xE2 |0
+<U981B> \xE8\xBC |0
+<U981C> \xBE\x67 |0
+<U981D> \xE8\xB7 |0
+<U981E> \xE8\xB6 |0
+<U981F> \x96\x57 |0
+<U9820> \xE8\xBB |0
+<U9821> \xBE\x65 |0
+<U9823> \x9C\xEF |0
+<U9824> \xC0\x5B |0
+<U9826> \xE8\xB8 |0
+<U9827> \xE8\xBD |0
+<U9828> \xE8\xBA |0
+<U9829> \xE8\xB9 |0
+<U982B> \xBE\x66 |0
+<U982D> \xC0\x59 |0
+<U982E> \x9F\xDF |0
+<U982F> \xEC\x5A |0
+<U9830> \xC0\x55 |0
+<U9832> \xEC\x5B |0
+<U9833> \x90\xF7 |0
+<U9834> \x90\xF6 |0
+<U9835> \xEC\x59 |0
+<U9837> \xC0\x58 |0
+<U9838> \xC0\x56 |0
+<U9839> \xC0\x5A |0
+<U983B> \xC0\x57 |0
+<U9841> \xEF\x45 |0
+<U9843> \xEF\x4A |0
+<U9844> \xEF\x46 |0
+<U9845> \xEF\x49 |0
+<U9846> \xC1\xFB |0
+<U9847> \x9B\x5E |0
+<U9848> \xED\xD4 |0
+<U9849> \xEF\x48 |0
+<U984A> \xEF\x47 |0
+<U984B> \x90\xF8 |0
+<U984C> \xC3\x44 |0
+<U984D> \xC3\x42 |0
+<U984E> \xC3\x45 |0
+<U984F> \xC3\x43 |0
+<U9850> \xF1\xA8 |0
+<U9851> \xF1\xA9 |0
+<U9852> \xF1\xAA |0
+<U9853> \xC3\x46 |0
+<U9857> \xF3\xAA |0
+<U9858> \xC4\x40 |0
+<U9859> \xF3\xA8 |0
+<U985B> \xC4\x41 |0
+<U985C> \xF3\xA7 |0
+<U985D> \xF3\xA9 |0
+<U985E> \xC3\xFE |0
+<U985F> \xF5\x51 |0
+<U9860> \xF5\x4E |0
+<U9862> \xF5\x4F |0
+<U9863> \xF5\x50 |0
+<U9864> \xF6\x72 |0
+<U9865> \xC5\x56 |0
+<U9866> \x90\xF9 |0
+<U9867> \xC5\x55 |0
+<U9869> \xF7\x74 |0
+<U986A> \xF7\x73 |0
+<U986B> \xC5\xB8 |0
+<U986C> \xFA\x6A |0
+<U986F> \xC5\xE3 |0
+<U9870> \xC6\x49 |0
+<U9871> \xC6\x60 |0
+<U9872> \xF9\x58 |0
+<U9873> \xF9\xAE |0
+<U9874> \xF9\xAF |0
+<U9875> \x8B\xEF |0
+<U98A8> \xAD\xB7 |0
+<U98A9> \xDC\xAD |0
+<U98AC> \xE0\xE1 |0
+<U98AD> \xE4\xCC |0
+<U98AE> \xE4\xCD |0
+<U98AF> \xBB\xE3 |0
+<U98B1> \xBB\xE4 |0
+<U98B2> \xE8\xBE |0
+<U98B3> \xBE\x68 |0
+<U98B4> \x9F\xE0 |0
+<U98B6> \xC1\xFC |0
+<U98B7> \x91\x42 |0
+<U98B8> \xF1\xAB |0
+<U98B9> \x9A\x62 |0
+<U98BA> \xC3\x47 |0
+<U98BB> \xF3\xAD |0
+<U98BC> \xC4\x42 |0
+<U98BD> \xF3\xAC |0
+<U98BE> \xF3\xAE |0
+<U98BF> \xF3\xAB |0
+<U98C0> \xF6\x75 |0
+<U98C1> \xF5\x52 |0
+<U98C2> \xF5\x53 |0
+<U98C3> \x95\x69 |0
+<U98C4> \xC4\xC6 |0
+<U98C6> \xF6\x74 |0
+<U98C7> \x91\x44 |0
+<U98C8> \x91\x43 |0
+<U98C9> \xF6\x73 |0
+<U98CA> \x91\x41 |0
+<U98CB> \xF7\x75 |0
+<U98CC> \xF9\xB0 |0
+<U98CE> \x8B\xF0 |0
+<U98DB> \xAD\xB8 |0
+<U98DC> \x96\x60 |0
+<U98DE> \x8B\xF1 |0
+<U98DF> \xAD\xB9 |0
+<U98E0> \x99\xF6 |0
+<U98E1> \x91\x49 |0
+<U98E2> \xB0\xA7 |0
+<U98E3> \xD4\x48 |0
+<U98E5> \xD8\x4F |0
+<U98E6> \x91\x4A |0
+<U98E7> \xB6\xB8 |0
+<U98E9> \xB6\xBB |0
+<U98EA> \xB6\xB9 |0
+<U98EB> \xDC\xAE |0
+<U98EC> \x91\x4B |0
+<U98ED> \xB6\xBD |0
+<U98EF> \xB6\xBA |0
+<U98F1> \x9A\x64 |0
+<U98F2> \xB6\xBC |0
+<U98F4> \xB9\x7E |0
+<U98F5> \x8A\xBF |0
+<U98F6> \xE0\xE2 |0
+<U98F9> \xE0\xE3 |0
+<U98FA> \xE8\xC0 |0
+<U98FC> \xB9\x7D |0
+<U98FD> \xB9\xA1 |0
+<U98FE> \xB9\xA2 |0
+<U9900> \xE4\xCF |0
+<U9902> \xE4\xCE |0
+<U9903> \xBB\xE5 |0
+<U9905> \xBB\xE6 |0
+<U9907> \xE4\xD0 |0
+<U9908> \xE8\xBF |0
+<U9909> \xBB\xE8 |0
+<U990A> \xBE\x69 |0
+<U990C> \xBB\xE7 |0
+<U990E> \x9A\x66 |0
+<U9910> \xC0\x5C |0
+<U9911> \xE8\xC1 |0
+<U9912> \xBE\x6B |0
+<U9913> \xBE\x6A |0
+<U9914> \xE8\xC2 |0
+<U9915> \xE8\xC5 |0
+<U9916> \xE8\xC3 |0
+<U9917> \xE8\xC4 |0
+<U9918> \xBE\x6C |0
+<U9919> \x9A\x67 |0
+<U991A> \xC0\x61 |0
+<U991B> \xC0\x5F |0
+<U991C> \x9A\x69 |0
+<U991E> \xC0\x5E |0
+<U991F> \xEC\x5D |0
+<U9921> \xC0\x60 |0
+<U9924> \xEC\x5C |0
+<U9925> \xEF\x4B |0
+<U9927> \xEC\x5E |0
+<U9928> \xC0\x5D |0
+<U9929> \xEC\x5F |0
+<U992A> \xEF\x4E |0
+<U992B> \xEF\x4C |0
+<U992C> \xEF\x4D |0
+<U992D> \xEF\x52 |0
+<U992E> \xC3\x4B |0
+<U992F> \xEF\x51 |0
+<U9930> \xEF\x54 |0
+<U9931> \xEF\x53 |0
+<U9932> \xEF\x50 |0
+<U9933> \xEF\x4F |0
+<U9935> \xC1\xFD |0
+<U9937> \x9A\x6A |0
+<U9938> \x96\x52 |0
+<U9939> \x91\x4D |0
+<U993A> \xF1\xAE |0
+<U993B> \x96\x66 |0
+<U993C> \xF1\xAD |0
+<U993D> \xC3\x4A |0
+<U993E> \xC3\x48 |0
+<U993F> \xC3\x49 |0
+<U9940> \x9F\x7B |0
+<U9941> \xF1\xAC |0
+<U9942> \x9A\x6B |0
+<U9943> \xF3\xB1 |0
+<U9945> \xC4\x43 |0
+<U9947> \xF3\xB0 |0
+<U9948> \xF3\xAF |0
+<U9949> \xC4\x44 |0
+<U994A> \xA0\x6C |0
+<U994B> \xF5\x58 |0
+<U994C> \xF5\x57 |0
+<U994D> \x96\x67 |0
+<U994E> \xF5\x55 |0
+<U9950> \xF5\x54 |0
+<U9951> \xC4\xC8 |0
+<U9952> \xC4\xC7 |0
+<U9953> \xF5\x59 |0
+<U9954> \xF7\x76 |0
+<U9955> \xC5\xB9 |0
+<U9956> \xF6\x77 |0
+<U9957> \xC5\x57 |0
+<U9958> \xF6\x76 |0
+<U9959> \xF5\x56 |0
+<U995B> \xF7\x77 |0
+<U995C> \xC5\xE4 |0
+<U995D> \x9A\x6C |0
+<U995E> \xC6\x61 |0
+<U995F> \xF9\x59 |0
+<U9961> \xF9\xB1 |0
+<U9962> \x9A\x6D |0
+<U9963> \x8B\xF2 |0
+<U9996> \xAD\xBA |0
+<U9997> \xD8\x50 |0
+<U9998> \xEF\x55 |0
+<U9999> \xAD\xBB |0
+<U999B> \x96\x6A |0
+<U999C> \xE4\xD2 |0
+<U999D> \xE4\xD1 |0
+<U999E> \xEC\x60 |0
+<U99A1> \xEF\x57 |0
+<U99A3> \xEF\x56 |0
+<U99A4> \xFC\xEA |0
+<U99A5> \xC3\x4C |0
+<U99A6> \xF3\xB2 |0
+<U99A7> \xF3\xB3 |0
+<U99A8> \xC4\xC9 |0
+<U99AA> \x96\x6C |0
+<U99AB> \xF9\xB2 |0
+<U99AC> \xB0\xA8 |0
+<U99AD> \xB6\xBF |0
+<U99AE> \xB6\xBE |0
+<U99AF> \xE0\xE4 |0
+<U99B0> \xE0\xE6 |0
+<U99B1> \xB9\xA4 |0
+<U99B2> \xE0\xE5 |0
+<U99B3> \xB9\xA3 |0
+<U99B4> \xB9\xA5 |0
+<U99B5> \xE0\xE7 |0
+<U99B8> \x91\xC4 |0
+<U99B9> \xE4\xD4 |0
+<U99BA> \xE4\xD6 |0
+<U99BB> \xE4\xD5 |0
+<U99BC> \x96\x77 |0
+<U99BD> \xE4\xD8 |0
+<U99C1> \xBB\xE9 |0
+<U99C2> \xE4\xD7 |0
+<U99C3> \xE4\xD3 |0
+<U99C4> \x99\xF4 |0
+<U99C5> \x9A\x6F |0
+<U99C7> \xE4\xD9 |0
+<U99C9> \xE8\xCC |0
+<U99CB> \xE8\xCF |0
+<U99CC> \xE8\xD1 |0
+<U99CD> \xE8\xC7 |0
+<U99CE> \xE8\xCB |0
+<U99CF> \xE8\xC8 |0
+<U99D0> \xBE\x6E |0
+<U99D1> \xBE\x71 |0
+<U99D2> \xBE\x73 |0
+<U99D3> \xE8\xC9 |0
+<U99D4> \xE8\xCA |0
+<U99D5> \xBE\x72 |0
+<U99D6> \xE8\xCD |0
+<U99D7> \xE8\xD0 |0
+<U99D8> \xE8\xCE |0
+<U99D9> \xBE\x74 |0
+<U99DA> \x9F\xAB |0
+<U99DB> \xBE\x70 |0
+<U99DC> \xE8\xC6 |0
+<U99DD> \xBE\x6D |0
+<U99DF> \xBE\x6F |0
+<U99E1> \x8E\xC1 |0
+<U99E2> \xC0\x63 |0
+<U99E3> \xEC\x66 |0
+<U99E4> \xEC\x64 |0
+<U99E5> \xEC\x63 |0
+<U99E6> \x95\x55 |0
+<U99E7> \xEC\x69 |0
+<U99E9> \xEC\x68 |0
+<U99EA> \xEC\x67 |0
+<U99EC> \xEC\x62 |0
+<U99ED> \xC0\x62 |0
+<U99EE> \xEC\x61 |0
+<U99F0> \xEC\x65 |0
+<U99F1> \xC0\x64 |0
+<U99F4> \xEF\x5A |0
+<U99F5> \x91\x52 |0
+<U99F6> \xEF\x5E |0
+<U99F7> \xEF\x5B |0
+<U99F8> \xEF\x5D |0
+<U99F9> \xEF\x5C |0
+<U99FA> \xEF\x59 |0
+<U99FB> \xEF\x5F |0
+<U99FC> \xEF\x62 |0
+<U99FD> \xEF\x60 |0
+<U99FE> \xEF\x61 |0
+<U99FF> \xC2\x40 |0
+<U9A01> \xC1\xFE |0
+<U9A02> \xEF\x58 |0
+<U9A03> \xEF\x63 |0
+<U9A04> \xF1\xB3 |0
+<U9A05> \xF1\xB6 |0
+<U9A06> \xF1\xB8 |0
+<U9A07> \xF1\xB7 |0
+<U9A09> \xF1\xB1 |0
+<U9A0A> \xF1\xB5 |0
+<U9A0B> \xF1\xB0 |0
+<U9A0C> \x91\x53 |0
+<U9A0D> \xF1\xB2 |0
+<U9A0E> \xC3\x4D |0
+<U9A0F> \xF1\xAF |0
+<U9A10> \x91\x55 |0
+<U9A11> \xF1\xB4 |0
+<U9A14> \xF3\xC0 |0
+<U9A15> \xF3\xB5 |0
+<U9A16> \xC4\x45 |0
+<U9A19> \xC4\x46 |0
+<U9A1A> \xF3\xB4 |0
+<U9A1B> \xF3\xB9 |0
+<U9A1C> \xF3\xBF |0
+<U9A1D> \xF3\xB7 |0
+<U9A1E> \xF3\xBE |0
+<U9A1F> \x95\x5D |0
+<U9A20> \xF3\xBB |0
+<U9A21> \x96\x71 |0
+<U9A22> \xF3\xBA |0
+<U9A23> \xF3\xBD |0
+<U9A24> \xF3\xB8 |0
+<U9A25> \xF3\xB6 |0
+<U9A26> \x9C\x6D |0
+<U9A27> \xF3\xBC |0
+<U9A29> \xF5\x60 |0
+<U9A2A> \xF5\x5E |0
+<U9A2B> \xC4\xCA |0
+<U9A2C> \xF5\x5D |0
+<U9A2D> \xF5\x63 |0
+<U9A2E> \xF5\x61 |0
+<U9A2F> \x96\x73 |0
+<U9A30> \xC4\xCB |0
+<U9A31> \xF5\x5C |0
+<U9A32> \xF5\x5A |0
+<U9A34> \xF5\x5B |0
+<U9A35> \xC4\xCD |0
+<U9A36> \xF5\x5F |0
+<U9A37> \xC4\xCC |0
+<U9A38> \xF5\x62 |0
+<U9A39> \xF6\x78 |0
+<U9A3A> \xF6\x7E |0
+<U9A3B> \x91\x54 |0
+<U9A3C> \x9A\x71 |0
+<U9A3D> \xF6\x79 |0
+<U9A3E> \xC5\x5B |0
+<U9A3F> \xF6\xA1 |0
+<U9A40> \xC5\x5A |0
+<U9A41> \xF6\x7D |0
+<U9A42> \xF6\x7C |0
+<U9A43> \xC5\x59 |0
+<U9A44> \xF6\x7B |0
+<U9A45> \xC5\x58 |0
+<U9A46> \xF6\x7A |0
+<U9A48> \xF7\x7D |0
+<U9A49> \xF7\xA1 |0
+<U9A4A> \xF7\x7E |0
+<U9A4C> \xF7\x7B |0
+<U9A4D> \xC5\xBB |0
+<U9A4E> \xF7\x78 |0
+<U9A4F> \xF7\x7C |0
+<U9A50> \xF7\xA3 |0
+<U9A52> \xF7\xA2 |0
+<U9A53> \xF7\x79 |0
+<U9A54> \xF7\x7A |0
+<U9A55> \xC5\xBA |0
+<U9A56> \xF8\x52 |0
+<U9A57> \xC5\xE7 |0
+<U9A58> \x91\x56 |0
+<U9A59> \xF8\x53 |0
+<U9A5A> \xC5\xE5 |0
+<U9A5B> \xC5\xE6 |0
+<U9A5C> \x96\x6D |0
+<U9A5E> \xF8\xD3 |0
+<U9A5F> \xC6\x4A |0
+<U9A60> \xF9\x76 |0
+<U9A62> \xC6\x6A |0
+<U9A63> \x95\x57 |0
+<U9A64> \xF9\xB3 |0
+<U9A65> \xC6\x6B |0
+<U9A66> \xF9\xB4 |0
+<U9A67> \xF9\xB5 |0
+<U9A68> \xF9\xC3 |0
+<U9A69> \xF9\xC2 |0
+<U9A6A> \xC6\x7A |0
+<U9A6B> \xF9\xCD |0
+<U9A6C> \x89\xC6 |0
+<U9A8F> \x89\xC7 |0
+<U9AA8> \xB0\xA9 |0
+<U9AAB> \xE0\xE9 |0
+<U9AAD> \xE0\xE8 |0
+<U9AAF> \xBB\xEA |0
+<U9AB0> \xBB\xEB |0
+<U9AB1> \xE4\xDA |0
+<U9AB2> \x8A\x6A |0
+<U9AB3> \xE8\xD2 |0
+<U9AB4> \xEC\x6C |0
+<U9AB6> \x8B\x57 |0
+<U9AB7> \xBE\x75 |0
+<U9AB8> \xC0\x65 |0
+<U9AB9> \xEC\x6A |0
+<U9ABA> \x9F\xE1 |0
+<U9ABB> \xEC\x6D |0
+<U9ABC> \xC0\x66 |0
+<U9ABD> \x9B\x5F |0
+<U9ABE> \xEF\x64 |0
+<U9ABF> \xEC\x6B |0
+<U9AC0> \xF1\xB9 |0
+<U9AC1> \xC3\x4E |0
+<U9AC2> \xF3\xC1 |0
+<U9AC6> \xF5\x66 |0
+<U9AC7> \xF5\x64 |0
+<U9ACA> \xF5\x65 |0
+<U9ACD> \xF6\xA2 |0
+<U9ACF> \xC5\x5C |0
+<U9AD0> \xF7\xA4 |0
+<U9AD1> \xC5\xEA |0
+<U9AD2> \xC5\xBC |0
+<U9AD3> \xC5\xE8 |0
+<U9AD4> \xC5\xE9 |0
+<U9AD5> \xF8\xD4 |0
+<U9AD6> \xC6\x62 |0
+<U9AD7> \xA0\x5D |0
+<U9AD8> \xB0\xAA |0
+<U9ADC> \xF1\xBA |0
+<U9ADF> \xD4\x49 |0
+<U9AE0> \x91\x5B |0
+<U9AE1> \xB9\xA6 |0
+<U9AE2> \x91\x5C |0
+<U9AE3> \xE4\xDB |0
+<U9AE6> \xBB\xEC |0
+<U9AE7> \xE4\xDC |0
+<U9AEB> \xE8\xD4 |0
+<U9AEC> \xE8\xD3 |0
+<U9AED> \xC0\x68 |0
+<U9AEE> \xBE\x76 |0
+<U9AEF> \xBE\x77 |0
+<U9AF1> \xE8\xD7 |0
+<U9AF2> \xE8\xD6 |0
+<U9AF3> \xE8\xD5 |0
+<U9AF4> \x91\x5E |0
+<U9AF6> \xEC\x6E |0
+<U9AF7> \xEC\x71 |0
+<U9AF9> \xEC\x70 |0
+<U9AFA> \xEC\x6F |0
+<U9AFB> \xC0\x67 |0
+<U9AFC> \xEF\x68 |0
+<U9AFD> \xEF\x66 |0
+<U9AFE> \xEF\x65 |0
+<U9AFF> \x9F\x5C |0
+<U9B01> \xEF\x67 |0
+<U9B02> \x9F\x57 |0
+<U9B03> \xC3\x4F |0
+<U9B04> \xF1\xBC |0
+<U9B05> \xF1\xBD |0
+<U9B06> \xC3\x50 |0
+<U9B08> \xF1\xBB |0
+<U9B09> \x9F\x65 |0
+<U9B0A> \xF3\xC3 |0
+<U9B0B> \xF3\xC2 |0
+<U9B0C> \xF3\xC5 |0
+<U9B0D> \xC4\x47 |0
+<U9B0E> \xF3\xC4 |0
+<U9B0F> \x9A\x72 |0
+<U9B10> \xF5\x67 |0
+<U9B11> \xF5\x69 |0
+<U9B12> \xF5\x68 |0
+<U9B14> \x91\x60 |0
+<U9B15> \xF6\xA3 |0
+<U9B16> \xF6\xA6 |0
+<U9B17> \xF6\xA4 |0
+<U9B18> \xF6\xA5 |0
+<U9B19> \xF7\xA5 |0
+<U9B1A> \xC5\xBD |0
+<U9B1E> \xF8\x54 |0
+<U9B1F> \xF8\x55 |0
+<U9B20> \xF8\x56 |0
+<U9B22> \xC6\x4B |0
+<U9B23> \xC6\x63 |0
+<U9B24> \xF9\xB6 |0
+<U9B25> \xB0\xAB |0
+<U9B27> \xBE\x78 |0
+<U9B28> \xC0\x69 |0
+<U9B29> \xF1\xBE |0
+<U9B2A> \x9F\x5E |0
+<U9B2B> \xF7\xA6 |0
+<U9B2D> \x91\x61 |0
+<U9B2E> \xF9\xC4 |0
+<U9B2F> \xD4\x4A |0
+<U9B31> \xC6\x7B |0
+<U9B32> \xB0\xAC |0
+<U9B33> \xEC\x72 |0
+<U9B34> \x91\x64 |0
+<U9B35> \xF1\xBF |0
+<U9B37> \xF3\xC6 |0
+<U9B39> \x9F\x41 |0
+<U9B3A> \xF6\xA7 |0
+<U9B3B> \xF7\xA7 |0
+<U9B3C> \xB0\xAD |0
+<U9B3E> \xE4\xDD |0
+<U9B3F> \xE4\xDE |0
+<U9B40> \x91\x69 |0
+<U9B41> \xBB\xED |0
+<U9B42> \xBB\xEE |0
+<U9B43> \xE8\xD9 |0
+<U9B44> \xBE\x7A |0
+<U9B45> \xBE\x79 |0
+<U9B46> \xE8\xD8 |0
+<U9B48> \xEF\x69 |0
+<U9B4A> \xF1\xC0 |0
+<U9B4B> \xF1\xC2 |0
+<U9B4C> \xF1\xC1 |0
+<U9B4D> \xC3\x53 |0
+<U9B4E> \xC3\x52 |0
+<U9B4F> \xC3\x51 |0
+<U9B50> \x91\x68 |0
+<U9B51> \xC5\x5E |0
+<U9B52> \xF6\xA8 |0
+<U9B54> \xC5\x5D |0
+<U9B55> \xF7\xA9 |0
+<U9B56> \xF7\xA8 |0
+<U9B58> \xC6\x4C |0
+<U9B59> \xF8\xD5 |0
+<U9B5A> \xB3\xBD |0
+<U9B5B> \xE0\xEA |0
+<U9B5F> \xE4\xE1 |0
+<U9B60> \xE4\xDF |0
+<U9B61> \xE4\xE0 |0
+<U9B64> \xE8\xE2 |0
+<U9B66> \xE8\xDD |0
+<U9B67> \xE8\xDA |0
+<U9B68> \xE8\xE1 |0
+<U9B69> \x9A\x74 |0
+<U9B6C> \xE8\xE3 |0
+<U9B6F> \xBE\x7C |0
+<U9B70> \xE8\xE0 |0
+<U9B71> \xE8\xDC |0
+<U9B74> \xE8\xDB |0
+<U9B75> \xE8\xDF |0
+<U9B76> \xE8\xDE |0
+<U9B77> \xBE\x7B |0
+<U9B7A> \xEC\x7D |0
+<U9B7B> \xEC\x78 |0
+<U9B7C> \xEC\x76 |0
+<U9B7D> \xEC\xA1 |0
+<U9B7E> \xEC\x77 |0
+<U9B7F> \x96\xB2 |0
+<U9B80> \xEC\x73 |0
+<U9B81> \x9A\x75 |0
+<U9B82> \xEC\x79 |0
+<U9B83> \xFD\xA5 |0
+<U9B85> \xEC\x74 |0
+<U9B86> \xEF\x72 |0
+<U9B87> \xEC\x75 |0
+<U9B88> \xEC\xA2 |0
+<U9B8B> \x9E\xE9 |0
+<U9B8D> \x8B\xBA |0
+<U9B8E> \x91\x6D |0
+<U9B8F> \xA0\x60 |0
+<U9B90> \xEC\x7C |0
+<U9B91> \xC0\x6A |0
+<U9B92> \xEC\x7B |0
+<U9B93> \xEC\x7A |0
+<U9B95> \xEC\x7E |0
+<U9B97> \x9F\xDE |0
+<U9B9A> \xEF\x6A |0
+<U9B9B> \xEF\x6D |0
+<U9B9D> \x9F\xC3 |0
+<U9B9E> \xEF\x6C |0
+<U9B9F> \x96\xB5 |0
+<U9BA0> \xEF\x74 |0
+<U9BA1> \xEF\x6F |0
+<U9BA2> \xEF\x73 |0
+<U9BA4> \xEF\x71 |0
+<U9BA5> \xEF\x70 |0
+<U9BA6> \xEF\x6E |0
+<U9BA8> \xEF\x6B |0
+<U9BAA> \xC2\x43 |0
+<U9BAB> \xC2\x42 |0
+<U9BAD> \xC2\x44 |0
+<U9BAE> \xC2\x41 |0
+<U9BAF> \xEF\x75 |0
+<U9BB0> \xA0\x67 |0
+<U9BB5> \xF1\xC8 |0
+<U9BB6> \xF1\xCB |0
+<U9BB8> \xF1\xC9 |0
+<U9BB9> \xF1\xCD |0
+<U9BBD> \xF1\xCE |0
+<U9BBF> \xF1\xC6 |0
+<U9BC0> \xC3\x58 |0
+<U9BC1> \xF1\xC7 |0
+<U9BC3> \xF1\xC5 |0
+<U9BC4> \xF1\xCC |0
+<U9BC6> \xF1\xC4 |0
+<U9BC7> \xF1\xC3 |0
+<U9BC8> \xC3\x57 |0
+<U9BC9> \xC3\x55 |0
+<U9BCA> \xC3\x54 |0
+<U9BCF> \x96\xB3 |0
+<U9BD3> \xF1\xCA |0
+<U9BD4> \xF3\xCF |0
+<U9BD5> \xF3\xD5 |0
+<U9BD6> \xC4\x4A |0
+<U9BD7> \xF3\xD0 |0
+<U9BD9> \xF3\xD3 |0
+<U9BDA> \xF3\xD7 |0
+<U9BDB> \xC4\x4B |0
+<U9BDC> \xF3\xD2 |0
+<U9BDD> \x9A\x76 |0
+<U9BDE> \xF3\xCA |0
+<U9BE0> \xF3\xC9 |0
+<U9BE1> \xF3\xD6 |0
+<U9BE2> \xF3\xCD |0
+<U9BE4> \xF3\xCB |0
+<U9BE5> \xF3\xD4 |0
+<U9BE6> \xF3\xCC |0
+<U9BE7> \xC4\x49 |0
+<U9BE8> \xC4\x48 |0
+<U9BE9> \x95\xD5 |0
+<U9BEA> \xF3\xC7 |0
+<U9BEB> \xF3\xC8 |0
+<U9BEC> \xF3\xD1 |0
+<U9BED> \x9E\xCA |0
+<U9BF0> \xF3\xCE |0
+<U9BF1> \x9A\x77 |0
+<U9BF4> \x9A\x78 |0
+<U9BF7> \xF5\x6C |0
+<U9BF8> \xF5\x6F |0
+<U9BFD> \xC3\x56 |0
+<U9BFF> \x91\x70 |0
+<U9C02> \x91\x6F |0
+<U9C05> \xF5\x6D |0
+<U9C06> \xF5\x73 |0
+<U9C07> \xF5\x71 |0
+<U9C08> \xF5\x6B |0
+<U9C09> \xF5\x76 |0
+<U9C0A> \x9F\xA3 |0
+<U9C0B> \xF5\x6A |0
+<U9C0C> \x91\x71 |0
+<U9C0D> \xC4\xCF |0
+<U9C0E> \xF5\x72 |0
+<U9C10> \x96\xB1 |0
+<U9C12> \xF5\x6E |0
+<U9C13> \xC4\xCE |0
+<U9C14> \xF5\x75 |0
+<U9C15> \x9F\x63 |0
+<U9C17> \xF5\x74 |0
+<U9C1B> \x9F\x67 |0
+<U9C1C> \xF6\xAB |0
+<U9C1D> \xF6\xAA |0
+<U9C1F> \x8B\xB9 |0
+<U9C20> \x9A\x7A |0
+<U9C21> \xF6\xB1 |0
+<U9C23> \xF6\xAD |0
+<U9C24> \xF6\xB0 |0
+<U9C25> \xC5\x60 |0
+<U9C26> \x8B\x56 |0
+<U9C28> \xF6\xAE |0
+<U9C29> \xF6\xAF |0
+<U9C2B> \xF6\xA9 |0
+<U9C2C> \xF6\xAC |0
+<U9C2D> \xC5\x5F |0
+<U9C2F> \x9A\xDA |0
+<U9C31> \xC5\xBF |0
+<U9C32> \xF7\xB4 |0
+<U9C33> \xF7\xAF |0
+<U9C34> \xF7\xB3 |0
+<U9C35> \x96\xB0 |0
+<U9C36> \xF7\xB6 |0
+<U9C37> \xF7\xB2 |0
+<U9C39> \xF7\xAE |0
+<U9C3A> \x9A\x7E |0
+<U9C3B> \xC5\xC1 |0
+<U9C3C> \xF7\xB1 |0
+<U9C3D> \xF7\xB5 |0
+<U9C3E> \xC5\xC0 |0
+<U9C3F> \xF7\xAC |0
+<U9C40> \xF5\x70 |0
+<U9C41> \xF7\xB0 |0
+<U9C44> \xF7\xAD |0
+<U9C45> \x9D\xDE |0
+<U9C46> \xF7\xAA |0
+<U9C48> \xF7\xAB |0
+<U9C49> \xC5\xBE |0
+<U9C4A> \xF8\x5A |0
+<U9C4B> \xF8\x5C |0
+<U9C4C> \xF8\x5F |0
+<U9C4D> \xF8\x5B |0
+<U9C4E> \xF8\x60 |0
+<U9C4F> \x96\xAD |0
+<U9C50> \xF8\x59 |0
+<U9C52> \xF8\x57 |0
+<U9C53> \x96\xAE |0
+<U9C54> \xC5\xEB |0
+<U9C55> \xF8\x5D |0
+<U9C56> \xC5\xED |0
+<U9C57> \xC5\xEC |0
+<U9C58> \xF8\x58 |0
+<U9C59> \xF8\x5E |0
+<U9C5D> \x9E\xA1 |0
+<U9C5E> \xF8\xDA |0
+<U9C5F> \xC6\x4D |0
+<U9C60> \xF8\xDB |0
+<U9C62> \xF8\xD9 |0
+<U9C63> \xF8\xD6 |0
+<U9C66> \xF8\xD8 |0
+<U9C67> \xF8\xD7 |0
+<U9C68> \xF9\x5A |0
+<U9C6D> \xF9\x5C |0
+<U9C6E> \xF9\x5B |0
+<U9C71> \xF9\x79 |0
+<U9C72> \x9E\x50 |0
+<U9C73> \xF9\x78 |0
+<U9C74> \xF9\x77 |0
+<U9C75> \xF9\x7A |0
+<U9C77> \xC6\x73 |0
+<U9C78> \xC6\x74 |0
+<U9C79> \xF9\xCA |0
+<U9C7A> \xF9\xCE |0
+<U9C7B> \x96\xAF |0
+<U9C7C> \x8B\xF4 |0
+<U9CE5> \xB3\xBE |0
+<U9CE6> \xDC\xAF |0
+<U9CE7> \xE0\xED |0
+<U9CE9> \xB9\xA7 |0
+<U9CEA> \xE0\xEB |0
+<U9CED> \xE0\xEC |0
+<U9CF1> \xE4\xE2 |0
+<U9CF2> \xE4\xE3 |0
+<U9CF3> \xBB\xF1 |0
+<U9CF4> \xBB\xEF |0
+<U9CF5> \xE4\xE4 |0
+<U9CF6> \xBB\xF0 |0
+<U9CF7> \xE8\xE8 |0
+<U9CF9> \xE8\xEB |0
+<U9CFA> \xE8\xE5 |0
+<U9CFB> \xE8\xEC |0
+<U9CFC> \xE8\xE4 |0
+<U9CFD> \xE8\xE6 |0
+<U9CFF> \xE8\xE7 |0
+<U9D00> \xE8\xEA |0
+<U9D02> \x9F\xA4 |0
+<U9D03> \xBE\xA1 |0
+<U9D04> \xE8\xEF |0
+<U9D05> \xE8\xEE |0
+<U9D06> \xBE\x7D |0
+<U9D07> \xE8\xE9 |0
+<U9D08> \xE8\xED |0
+<U9D09> \xBE\x7E |0
+<U9D0C> \x96\xBD |0
+<U9D10> \xEC\xAC |0
+<U9D12> \xC0\x6F |0
+<U9D14> \xEC\xA7 |0
+<U9D15> \xC0\x6B |0
+<U9D16> \x96\xF4 |0
+<U9D17> \xEC\xA4 |0
+<U9D18> \xEC\xAA |0
+<U9D19> \xEC\xAD |0
+<U9D1B> \xC0\x70 |0
+<U9D1D> \xEC\xA9 |0
+<U9D1E> \xEC\xA6 |0
+<U9D1F> \xEC\xAE |0
+<U9D20> \xEC\xA5 |0
+<U9D21> \x96\xB8 |0
+<U9D22> \xEC\xAB |0
+<U9D23> \xC0\x6C |0
+<U9D25> \xEC\xA3 |0
+<U9D26> \xC0\x6D |0
+<U9D28> \xC0\x6E |0
+<U9D29> \xEC\xA8 |0
+<U9D2D> \xEF\xA9 |0
+<U9D2E> \xEF\x7A |0
+<U9D2F> \xEF\x7B |0
+<U9D30> \xEF\x7E |0
+<U9D31> \xEF\x7C |0
+<U9D33> \xEF\x76 |0
+<U9D34> \xFA\xA1 |0
+<U9D36> \xEF\x79 |0
+<U9D37> \xEF\xA5 |0
+<U9D38> \xEF\x7D |0
+<U9D39> \x91\xA7 |0
+<U9D3B> \xC2\x45 |0
+<U9D3D> \xEF\xA7 |0
+<U9D3E> \xEF\xA4 |0
+<U9D3F> \xC2\x46 |0
+<U9D40> \xEF\xA6 |0
+<U9D41> \xEF\x77 |0
+<U9D42> \xEF\xA2 |0
+<U9D43> \xEF\xA3 |0
+<U9D44> \xA0\x5E |0
+<U9D45> \xEF\xA1 |0
+<U9D49> \x9A\x7D |0
+<U9D4A> \xF1\xD2 |0
+<U9D4B> \xF1\xD4 |0
+<U9D4C> \xF1\xD7 |0
+<U9D4E> \x89\x48 |0
+<U9D4F> \xF1\xD1 |0
+<U9D50> \x9E\xB1 |0
+<U9D51> \xC3\x59 |0
+<U9D52> \xF1\xD9 |0
+<U9D53> \xF1\xD0 |0
+<U9D54> \xF1\xDA |0
+<U9D56> \xF1\xD6 |0
+<U9D57> \xF1\xD8 |0
+<U9D58> \xF1\xDC |0
+<U9D59> \xF1\xD5 |0
+<U9D5A> \xF1\xDD |0
+<U9D5B> \xF1\xD3 |0
+<U9D5C> \xF1\xCF |0
+<U9D5D> \xC3\x5A |0
+<U9D5E> \x9D\xDB |0
+<U9D5F> \xF1\xDB |0
+<U9D60> \xC3\x5B |0
+<U9D61> \xC4\x4D |0
+<U9D67> \xEF\x78 |0
+<U9D68> \xF3\xF1 |0
+<U9D69> \xF3\xE8 |0
+<U9D6A> \xC4\x4F |0
+<U9D6B> \xF3\xE4 |0
+<U9D6C> \xC4\x50 |0
+<U9D6D> \x95\xBF |0
+<U9D6E> \x8A\x73 |0
+<U9D6F> \xF3\xED |0
+<U9D70> \xF3\xE7 |0
+<U9D71> \xF3\xDD |0
+<U9D72> \xC4\x4E |0
+<U9D73> \xF3\xEA |0
+<U9D74> \xF3\xE5 |0
+<U9D75> \xF3\xE6 |0
+<U9D77> \xF3\xD8 |0
+<U9D78> \xF3\xDF |0
+<U9D79> \xF3\xEE |0
+<U9D7B> \xF3\xEB |0
+<U9D7C> \x9E\xFE |0
+<U9D7D> \xF3\xE3 |0
+<U9D7E> \x91\x7A |0
+<U9D7F> \xF3\xEF |0
+<U9D80> \xF3\xDE |0
+<U9D81> \xF3\xD9 |0
+<U9D82> \xF3\xEC |0
+<U9D83> \x91\x7B |0
+<U9D84> \xF3\xDB |0
+<U9D85> \xF3\xE9 |0
+<U9D86> \xF3\xE0 |0
+<U9D87> \xF3\xF0 |0
+<U9D88> \xF3\xDC |0
+<U9D89> \xC4\x4C |0
+<U9D8A> \xF3\xDA |0
+<U9D8B> \xF3\xE1 |0
+<U9D8C> \xF3\xE2 |0
+<U9D90> \xF5\x7D |0
+<U9D92> \xF5\x7B |0
+<U9D93> \x9A\xA3 |0
+<U9D94> \xF5\xA2 |0
+<U9D96> \xF5\xAE |0
+<U9D97> \xF5\xA5 |0
+<U9D98> \xF5\x7C |0
+<U9D99> \xF5\x78 |0
+<U9D9A> \xF5\xA7 |0
+<U9D9B> \xF5\x7E |0
+<U9D9C> \xF5\xA3 |0
+<U9D9D> \xF5\x7A |0
+<U9D9E> \xF5\xAA |0
+<U9D9F> \xF5\x77 |0
+<U9DA0> \xF5\xA1 |0
+<U9DA1> \xF5\xA6 |0
+<U9DA2> \xF5\xA8 |0
+<U9DA3> \xF5\xAB |0
+<U9DA4> \xF5\x79 |0
+<U9DA5> \x96\xC2 |0
+<U9DA6> \xF5\xAF |0
+<U9DA7> \xF5\xB0 |0
+<U9DA8> \xF5\xA9 |0
+<U9DA9> \xF5\xAD |0
+<U9DAA> \xF5\xA4 |0
+<U9DAB> \x9F\x77 |0
+<U9DAC> \xF6\xC1 |0
+<U9DAD> \xF6\xC4 |0
+<U9DAF> \xC5\x61 |0
+<U9DB1> \xF6\xC3 |0
+<U9DB2> \xF6\xC8 |0
+<U9DB3> \xF6\xC6 |0
+<U9DB4> \xC5\x62 |0
+<U9DB5> \xF6\xBD |0
+<U9DB6> \xF6\xB3 |0
+<U9DB7> \xF6\xB2 |0
+<U9DB8> \xC5\x64 |0
+<U9DB9> \xF6\xBF |0
+<U9DBA> \xF6\xC0 |0
+<U9DBB> \xF6\xBC |0
+<U9DBC> \xF6\xB4 |0
+<U9DBD> \x9A\xA4 |0
+<U9DBE> \xF6\xB9 |0
+<U9DBF> \xF5\xAC |0
+<U9DC0> \x9A\xA5 |0
+<U9DC1> \xF6\xB5 |0
+<U9DC2> \xC5\x63 |0
+<U9DC3> \xF6\xBB |0
+<U9DC4> \x91\xA1 |0
+<U9DC5> \xF6\xBA |0
+<U9DC7> \xF6\xB6 |0
+<U9DC8> \xF6\xC2 |0
+<U9DC9> \x89\xB8 |0
+<U9DCA> \xF6\xB7 |0
+<U9DCB> \xF7\xBB |0
+<U9DCC> \xF6\xC5 |0
+<U9DCD> \xF6\xC7 |0
+<U9DCE> \xF6\xBE |0
+<U9DCF> \xF6\xB8 |0
+<U9DD0> \xF7\xBC |0
+<U9DD1> \xF7\xBE |0
+<U9DD2> \xF7\xB8 |0
+<U9DD3> \xC5\xC2 |0
+<U9DD4> \x91\x73 |0
+<U9DD5> \xF7\xC5 |0
+<U9DD6> \xF7\xC3 |0
+<U9DD7> \xC5\xC3 |0
+<U9DD8> \xF7\xC2 |0
+<U9DD9> \xF7\xC1 |0
+<U9DDA> \xF7\xBA |0
+<U9DDB> \xF7\xB7 |0
+<U9DDC> \xF7\xBD |0
+<U9DDD> \xF7\xC6 |0
+<U9DDE> \xF7\xB9 |0
+<U9DDF> \xF7\xBF |0
+<U9DE1> \xF8\x69 |0
+<U9DE2> \xF8\x6E |0
+<U9DE3> \xF8\x64 |0
+<U9DE4> \xF8\x67 |0
+<U9DE5> \xC5\xEE |0
+<U9DE6> \xF8\x6B |0
+<U9DE8> \xF8\x72 |0
+<U9DE9> \xF7\xC0 |0
+<U9DEB> \xF8\x65 |0
+<U9DEC> \xF8\x6F |0
+<U9DED> \xF8\x73 |0
+<U9DEE> \xF8\x6A |0
+<U9DEF> \xF8\x63 |0
+<U9DF0> \xF8\x6D |0
+<U9DF2> \xF8\x6C |0
+<U9DF3> \xF8\x71 |0
+<U9DF4> \xF8\x70 |0
+<U9DF5> \xF7\xC4 |0
+<U9DF6> \xF8\x68 |0
+<U9DF7> \xF8\x62 |0
+<U9DF8> \xF8\x66 |0
+<U9DF9> \xC6\x4E |0
+<U9DFA> \xC6\x4F |0
+<U9DFB> \xF8\x61 |0
+<U9DFC> \x9A\xA6 |0
+<U9DFD> \xF8\xE6 |0
+<U9DFE> \xF8\xDD |0
+<U9DFF> \xF8\xE5 |0
+<U9E00> \xF8\xE2 |0
+<U9E01> \xF8\xE3 |0
+<U9E02> \xF8\xDC |0
+<U9E03> \xF8\xDF |0
+<U9E04> \xF8\xE7 |0
+<U9E05> \xF8\xE1 |0
+<U9E06> \xF8\xE0 |0
+<U9E07> \xF8\xDE |0
+<U9E09> \xF8\xE4 |0
+<U9E0A> \x89\xBD |0
+<U9E0B> \xF9\x5D |0
+<U9E0C> \x89\xB9 |0
+<U9E0D> \xF9\x5E |0
+<U9E0E> \x91\x7D |0
+<U9E0F> \xF9\x60 |0
+<U9E10> \xF9\x5F |0
+<U9E11> \xF9\x62 |0
+<U9E12> \xF9\x61 |0
+<U9E13> \xF9\x7C |0
+<U9E14> \xF9\x7B |0
+<U9E15> \xF9\xB7 |0
+<U9E17> \xF9\xB8 |0
+<U9E18> \x96\xBB |0
+<U9E19> \xF9\xC5 |0
+<U9E1A> \xC6\x78 |0
+<U9E1B> \xC6\x7C |0
+<U9E1C> \x9F\xF2 |0
+<U9E1D> \xF9\xCF |0
+<U9E1E> \xC6\x7D |0
+<U9E1F> \x8B\xF5 |0
+<U9E75> \xB3\xBF |0
+<U9E79> \xC4\xD0 |0
+<U9E7A> \xF6\xC9 |0
+<U9E7B> \x9A\xA9 |0
+<U9E7C> \xC6\x50 |0
+<U9E7D> \xC6\x51 |0
+<U9E7F> \xB3\xC0 |0
+<U9E80> \xE0\xEE |0
+<U9E81> \x9F\x54 |0
+<U9E82> \xB9\xA8 |0
+<U9E83> \xE8\xF0 |0
+<U9E84> \x9F\xE3 |0
+<U9E85> \x9E\xED |0
+<U9E86> \xEC\xB0 |0
+<U9E87> \xEC\xB1 |0
+<U9E88> \xEC\xAF |0
+<U9E89> \xEF\xAB |0
+<U9E8A> \xEF\xAA |0
+<U9E8B> \xC2\x47 |0
+<U9E8C> \xF1\xDF |0
+<U9E8D> \xEF\xAC |0
+<U9E8E> \xF1\xDE |0
+<U9E90> \x91\xAA |0
+<U9E91> \xF3\xF3 |0
+<U9E92> \xC4\x51 |0
+<U9E93> \xC4\x53 |0
+<U9E94> \xF3\xF2 |0
+<U9E95> \x91\xAB |0
+<U9E96> \xA0\x70 |0
+<U9E97> \xC4\x52 |0
+<U9E98> \x9F\x6D |0
+<U9E99> \xF5\xB1 |0
+<U9E9A> \xF5\xB3 |0
+<U9E9B> \xF5\xB2 |0
+<U9E9C> \xF6\xCA |0
+<U9E9D> \xC5\x65 |0
+<U9E9E> \x91\xAC |0
+<U9E9F> \xC5\xEF |0
+<U9EA0> \xF8\xE8 |0
+<U9EA1> \xF9\x63 |0
+<U9EA2> \x91\xAD |0
+<U9EA4> \xF9\xD2 |0
+<U9EA5> \xB3\xC1 |0
+<U9EA6> \xA0\xFD |0
+<U9EA7> \xE4\xE5 |0
+<U9EA8> \x9F\xE2 |0
+<U9EA9> \xBE\xA2 |0
+<U9EAA> \x91\xAF |0
+<U9EAB> \x9E\x41 |0
+<U9EAC> \x9A\xAA |0
+<U9EAD> \xEC\xB3 |0
+<U9EAE> \xEC\xB2 |0
+<U9EAF> \x91\xB0 |0
+<U9EB0> \xEF\xAD |0
+<U9EB1> \x9A\xAB |0
+<U9EB4> \xC4\x54 |0
+<U9EB5> \xC4\xD1 |0
+<U9EB6> \xF7\xC7 |0
+<U9EB7> \xF9\xCB |0
+<U9EBB> \xB3\xC2 |0
+<U9EBC> \xBB\xF2 |0
+<U9EBD> \x9A\xAC |0
+<U9EBE> \xBE\xA3 |0
+<U9EBF> \x9A\x4A |0
+<U9EC0> \xF3\xF4 |0
+<U9EC1> \x91\xB2 |0
+<U9EC2> \xF8\x74 |0
+<U9EC3> \xB6\xC0 |0
+<U9EC4> \x8B\xF6 |0
+<U9EC6> \x9A\xAD |0
+<U9EC7> \x89\xB6 |0
+<U9EC8> \xEF\xAE |0
+<U9ECC> \xC6\x64 |0
+<U9ECD> \xB6\xC1 |0
+<U9ECE> \xBE\xA4 |0
+<U9ECF> \xC2\x48 |0
+<U9ED0> \xF8\x75 |0
+<U9ED1> \xB6\xC2 |0
+<U9ED3> \xE8\xF1 |0
+<U9ED4> \xC0\x72 |0
+<U9ED5> \xEC\xB4 |0
+<U9ED6> \xEC\xB5 |0
+<U9ED8> \xC0\x71 |0
+<U9EDA> \xEF\xAF |0
+<U9EDB> \xC2\x4C |0
+<U9EDC> \xC2\x4A |0
+<U9EDD> \xC2\x4B |0
+<U9EDE> \xC2\x49 |0
+<U9EDF> \xF1\xE0 |0
+<U9EE0> \xC3\x5C |0
+<U9EE2> \x9A\xAF |0
+<U9EE4> \xF5\xB5 |0
+<U9EE5> \xF5\xB4 |0
+<U9EE6> \xF5\xB7 |0
+<U9EE7> \xF5\xB6 |0
+<U9EE8> \xC4\xD2 |0
+<U9EEB> \xF6\xCB |0
+<U9EED> \xF6\xCD |0
+<U9EEE> \xF6\xCC |0
+<U9EEF> \xC5\x66 |0
+<U9EF0> \xF7\xC8 |0
+<U9EF1> \x9A\xB0 |0
+<U9EF2> \xF8\x76 |0
+<U9EF3> \xF8\x77 |0
+<U9EF4> \xC5\xF0 |0
+<U9EF5> \xF9\x64 |0
+<U9EF6> \xF9\x7D |0
+<U9EF7> \xC6\x75 |0
+<U9EF8> \x9A\xB1 |0
+<U9EF9> \xDC\xB0 |0
+<U9EFA> \xEC\xB6 |0
+<U9EFB> \xEF\xB0 |0
+<U9EFC> \xF3\xF5 |0
+<U9EFD> \xE0\xEF |0
+<U9EFE> \x9A\xA1 |0
+<U9EFF> \xEF\xB1 |0
+<U9F00> \xF1\xE2 |0
+<U9F01> \xF1\xE1 |0
+<U9F02> \x91\xB9 |0
+<U9F06> \xF8\x78 |0
+<U9F07> \xC6\x52 |0
+<U9F08> \x91\xBA |0
+<U9F09> \xF9\x65 |0
+<U9F0A> \xF9\x7E |0
+<U9F0E> \xB9\xA9 |0
+<U9F0F> \xE8\xF2 |0
+<U9F10> \xE8\xF3 |0
+<U9F12> \xEC\xB7 |0
+<U9F13> \xB9\xAA |0
+<U9F15> \xC3\x5D |0
+<U9F16> \xF1\xE3 |0
+<U9F17> \x91\xBE |0
+<U9F18> \xF6\xCF |0
+<U9F19> \xC5\x67 |0
+<U9F1A> \xF6\xD0 |0
+<U9F1B> \xF6\xCE |0
+<U9F1C> \xF8\x79 |0
+<U9F1E> \xF8\xE9 |0
+<U9F20> \xB9\xAB |0
+<U9F22> \xEF\xB4 |0
+<U9F23> \xEF\xB3 |0
+<U9F24> \xEF\xB2 |0
+<U9F25> \xF1\xE4 |0
+<U9F26> \xA0\x41 |0
+<U9F27> \x8B\xB7 |0
+<U9F28> \xF1\xE8 |0
+<U9F29> \xF1\xE7 |0
+<U9F2A> \xF1\xE6 |0
+<U9F2B> \xF1\xE5 |0
+<U9F2C> \xC3\x5E |0
+<U9F2D> \xF3\xF6 |0
+<U9F2E> \xF5\xB9 |0
+<U9F2F> \xC4\xD3 |0
+<U9F30> \xF5\xB8 |0
+<U9F31> \xF6\xD1 |0
+<U9F32> \xF7\xCB |0
+<U9F33> \xF7\xCA |0
+<U9F34> \xC5\xC4 |0
+<U9F35> \xF7\xC9 |0
+<U9F36> \xF8\x7C |0
+<U9F37> \xF8\x7B |0
+<U9F38> \xF8\x7A |0
+<U9F39> \x91\xC0 |0
+<U9F3B> \xBB\xF3 |0
+<U9F3D> \xEC\xB8 |0
+<U9F3E> \xC2\x4D |0
+<U9F40> \xF3\xF7 |0
+<U9F41> \xF3\xF8 |0
+<U9F42> \xF7\xCC |0
+<U9F43> \xF8\x7D |0
+<U9F44> \x9A\xB3 |0
+<U9F45> \x91\xC3 |0
+<U9F46> \xF8\xEA |0
+<U9F47> \xF9\x66 |0
+<U9F48> \xF9\xB9 |0
+<U9F49> \xF9\xD4 |0
+<U9F4A> \xBB\xF4 |0
+<U9F4B> \xC2\x4E |0
+<U9F4C> \xF1\xE9 |0
+<U9F4D> \xF3\xF9 |0
+<U9F4E> \xF6\xD2 |0
+<U9F4F> \xF8\x7E |0
+<U9F50> \xA0\xFC |0
+<U9F52> \xBE\xA6 |0
+<U9F53> \x9F\xEE |0
+<U9F54> \xEF\xB5 |0
+<U9F55> \xF1\xEA |0
+<U9F56> \xF3\xFA |0
+<U9F57> \xF3\xFB |0
+<U9F58> \xF3\xFC |0
+<U9F59> \xF5\xBE |0
+<U9F5A> \x9F\x69 |0
+<U9F5B> \xF5\xBA |0
+<U9F5C> \xC5\x68 |0
+<U9F5D> \xF5\xBD |0
+<U9F5E> \xF5\xBC |0
+<U9F5F> \xC4\xD4 |0
+<U9F60> \xF5\xBB |0
+<U9F61> \xC4\xD6 |0
+<U9F62> \x91\xC8 |0
+<U9F63> \xC4\xD5 |0
+<U9F64> \xF6\xD4 |0
+<U9F65> \xF6\xD3 |0
+<U9F66> \xC5\x69 |0
+<U9F67> \xC5\x6A |0
+<U9F69> \x91\xC9 |0
+<U9F6A> \xC5\xC6 |0
+<U9F6B> \xF7\xCD |0
+<U9F6C> \xC5\xC5 |0
+<U9F6E> \xF8\xA3 |0
+<U9F6F> \xF8\xA4 |0
+<U9F70> \xF8\xA2 |0
+<U9F71> \xF8\xA1 |0
+<U9F72> \xC6\x54 |0
+<U9F74> \xF8\xEB |0
+<U9F75> \xF8\xEC |0
+<U9F76> \xF8\xED |0
+<U9F77> \xC6\x53 |0
+<U9F78> \xF9\x67 |0
+<U9F79> \xF9\x6A |0
+<U9F7A> \xF9\x69 |0
+<U9F7B> \xF9\x68 |0
+<U9F7E> \xF9\xD3 |0
+<U9F7F> \x8D\xE6 |0
+<U9F8D> \xC0\x73 |0
+<U9F8E> \x91\xCB |0
+<U9F90> \xC3\x65 |0
+<U9F91> \xF5\xBF |0
+<U9F92> \xF6\xD5 |0
+<U9F94> \xC5\xC7 |0
+<U9F95> \xF7\xCE |0
+<U9F98> \xF9\xD5 |0
+<U9F99> \x89\xC8 |0
+<U9F9C> \xC0\x74 |0
+<U9F9C> \x8B\xF8 |3
+<U9F9F> \x8D\xAA |0
+<U9FA0> \xEF\xB6 |0
+<U9FA2> \xF7\xCF |0
+<U9FA4> \xF9\xA1 |0
+<U9FA5> \x9F\xDD |0
+<UE003> \xFA\x43 |0
+<UE018> \xFA\x58 |0
+<UE01B> \xFA\x5B |0
+<UE02D> \xFA\x6D |0
+<UE038> \xFA\x78 |0
+<UE04C> \xFA\xAE |0
+<UE05A> \xFA\xBC |0
+<UE094> \xFA\xF6 |0
+<UE099> \xFA\xFB |0
+<UE09A> \xFA\xFC |0
+<UE0C5> \xFB\x68 |0
+<UE0D0> \xFB\x73 |0
+<UE0F2> \xFB\xB7 |0
+<UE0F9> \xFB\xBE |0
+<UE0FD> \xFB\xC2 |0
+<UE106> \xFB\xCB |0
+<UE109> \xFB\xCE |0
+<UE10A> \xFB\xCF |0
+<UE130> \xFB\xF5 |0
+<UE150> \xFC\x56 |0
+<UE154> \xFC\x5A |0
+<UE15D> \xFC\x63 |0
+<UE168> \xFC\x6E |0
+<UE16A> \xFC\x70 |0
+<UE171> \xFC\x77 |0
+<UE175> \xFC\x7B |0
+<UE18F> \xFC\xB7 |0
+<UE1BB> \xFC\xE3 |0
+<UE1CC> \xFC\xF4 |0
+<UE1CD> \xFC\xF5 |0
+<UE1D7> \xFD\x40 |0
+<UE1EF> \xFD\x58 |0
+<UE1F2> \xFD\x5B |0
+<UE1FA> \xFD\x63 |0
+<UE1FE> \xFD\x67 |0
+<UE202> \xFD\x6B |0
+<UE20B> \xFD\x74 |0
+<UE219> \xFD\xA4 |0
+<UE21C> \xFD\xA7 |0
+<UE227> \xFD\xB2 |0
+<UE245> \xFD\xD0 |0
+<UE24A> \xFD\xD5 |0
+<UE24E> \xFD\xD9 |0
+<UE26B> \xFD\xF6 |0
+<UE27A> \xFE\x46 |0
+<UE282> \xFE\x4E |0
+<UE290> \xFE\x5C |0
+<UE29B> \xFE\x67 |0
+<UE2A1> \xFE\x6D |0
+<UE2B2> \xFE\x7E |0
+<UE2B7> \xFE\xA5 |0
+<UE2C1> \xFE\xAF |0
+<UE2C9> \xFE\xB7 |0
+<UE2D4> \xFE\xC2 |0
+<UE2E2> \xFE\xD0 |0
+<UE2EB> \xFE\xD9 |0
+<UE2EC> \xFE\xDA |0
+<UE2F0> \xFE\xDE |0
+<UE2F1> \xFE\xDF |0
+<UE300> \xFE\xEE |0
+<UE311> \x8E\x40 |0
+<UE325> \x8E\x54 |0
+<UE330> \x8E\x5F |0
+<UE345> \x8E\x74 |0
+<UE362> \x8E\xB3 |0
+<UE381> \x8E\xD2 |0
+<UE382> \x8E\xD3 |0
+<UE386> \x8E\xD7 |0
+<UE389> \x8E\xDA |0
+<UE394> \x8E\xE5 |0
+<UE396> \x8E\xE7 |0
+<UE39E> \x8E\xEF |0
+<UE3A0> \x8E\xF1 |0
+<UE3B4> \x8F\x46 |0
+<UE3BB> \x8F\x4D |0
+<UE3CD> \x8F\x5F |0
+<UE3CF> \x8F\x61 |0
+<UE3D5> \x8F\x67 |0
+<UE3E1> \x8F\x73 |0
+<UE3E7> \x8F\x79 |0
+<UE3F0> \x8F\xA4 |0
+<UE3F2> \x8F\xA6 |0
+<UE3F4> \x8F\xA8 |0
+<UE426> \x8F\xDA |0
+<UE436> \x8F\xEA |0
+<UE448> \x8F\xFC |0
+<UE44D> \x90\x42 |0
+<UE450> \x90\x45 |0
+<UE467> \x90\x5C |0
+<UE468> \x90\x5D |0
+<UE469> \x90\x5E |0
+<UE474> \x90\x69 |0
+<UE48A> \x90\xA1 |0
+<UE4A1> \x90\xB8 |0
+<UE4C1> \x90\xD8 |0
+<UE4C6> \x90\xDD |0
+<UE4DD> \x90\xF4 |0
+<UE51E> \x91\x76 |0
+<UE524> \x91\x7C |0
+<UE528> \x91\xA2 |0
+<UE52E> \x91\xA8 |0
+<UE52F> \x91\xA9 |0
+<UE56D> \x91\xE7 |0
+<UE570> \x91\xEA |0
+<UE57A> \x91\xF4 |0
+<UE57D> \x91\xF7 |0
+<UE584> \x91\xFE |0
+<UE58B> \x92\x46 |0
+<UE59A> \x92\x55 |0
+<UE59E> \x92\x59 |0
+<UE5A0> \x92\x5B |0
+<UE5A6> \x92\x61 |0
+<UE5AA> \x92\x65 |0
+<UE5C2> \x92\x7D |0
+<UE5C8> \x92\xA5 |0
+<UE5D8> \x92\xB5 |0
+<UE5F1> \x92\xCE |0
+<UE619> \x92\xF6 |0
+<UE61C> \x92\xF9 |0
+<UE646> \x93\x64 |0
+<UE654> \x93\x72 |0
+<UE660> \x93\x7E |0
+<UE66A> \x93\xAA |0
+<UE67D> \x93\xBD |0
+<UE680> \x93\xC0 |0
+<UE68E> \x93\xCE |0
+<UE697> \x93\xD7 |0
+<UE69E> \x93\xDE |0
+<UE6C0> \x94\x41 |0
+<UE6C5> \x94\x46 |0
+<UE6DE> \x94\x5F |0
+<UE6DF> \x94\x60 |0
+<UE701> \x94\xA4 |0
+<UE713> \x94\xB6 |0
+<UE725> \x94\xC8 |0
+<UE73D> \x94\xE0 |0
+<UE741> \x94\xE4 |0
+<UE752> \x94\xF5 |0
+<UE75D> \x95\x41 |0
+<UE761> \x95\x45 |0
+<UE768> \x95\x4C |0
+<UE775> \x95\x59 |0
+<UE77A> \x95\x5E |0
+<UE77D> \x95\x61 |0
+<UE790> \x95\x74 |0
+<UE797> \x95\x7B |0
+<UE7A6> \x95\xAC |0
+<UE7B4> \x95\xBA |0
+<UE7DA> \x95\xE0 |0
+<UE7DD> \x95\xE3 |0
+<UE7E8> \x95\xEE |0
+<UE7E9> \x95\xEF |0
+<UE7ED> \x95\xF3 |0
+<UE7F1> \x95\xF7 |0
+<UE7FB> \x96\x42 |0
+<UE7FC> \x96\x43 |0
+<UE800> \x96\x47 |0
+<UE80C> \x96\x53 |0
+<UE813> \x96\x5A |0
+<UE821> \x96\x68 |0
+<UE828> \x96\x6F |0
+<UE82D> \x96\x74 |0
+<UE82F> \x96\x76 |0
+<UE84D> \x96\xB6 |0
+<UE855> \x96\xBE |0
+<UE856> \x96\xBF |0
+<UE85B> \x96\xC4 |0
+<UE85D> \x96\xC6 |0
+<UE865> \x96\xCE |0
+<UE887> \x96\xF0 |0
+<UE88F> \x96\xF8 |0
+<UE891> \x96\xFA |0
+<UE8A1> \x97\x4B |0
+<UE8A4> \x97\x4E |0
+<UE8C2> \x97\x6C |0
+<UE8C3> \x97\x6D |0
+<UE8CD> \x97\x77 |0
+<UE8D5> \x97\xA1 |0
+<UE8D6> \x97\xA2 |0
+<UE8D9> \x97\xA5 |0
+<UE8DA> \x97\xA6 |0
+<UE8E1> \x97\xAD |0
+<UE8E5> \x97\xB1 |0
+<UE8FE> \x97\xCA |0
+<UE917> \x97\xE3 |0
+<UE918> \x97\xE4 |0
+<UE91F> \x97\xEB |0
+<UE925> \x97\xF1 |0
+<UE92B> \x97\xF7 |0
+<UE934> \x98\x41 |0
+<UE950> \x98\x5D |0
+<UE967> \x98\x74 |0
+<UE96E> \x98\x7B |0
+<UE96F> \x98\x7C |0
+<UE973> \x98\xA2 |0
+<UE977> \x98\xA6 |0
+<UE97A> \x98\xA9 |0
+<UE97B> \x98\xAA |0
+<UE97D> \x98\xAC |0
+<UE982> \x98\xB1 |0
+<UE991> \x98\xC0 |0
+<UE9CB> \x98\xFA |0
+<UEAA9> \x9A\x7C |0
+<UEABF> \x9A\xB4 |0
+<UEAC0> \x9A\xB5 |0
+<UEAC1> \x9A\xB6 |0
+<UEAC5> \x9A\xBA |0
+<UEAC9> \x9A\xBE |0
+<UEACA> \x9A\xBF |0
+<UEACB> \x9A\xC0 |0
+<UEACC> \x9A\xC1 |0
+<UEACF> \x9A\xC4 |0
+<UEAD0> \x9A\xC5 |0
+<UEAD1> \x9A\xC6 |0
+<UEAD3> \x9A\xC8 |0
+<UEAD4> \x9A\xC9 |0
+<UEAD6> \x9A\xCB |0
+<UEAD7> \x9A\xCC |0
+<UEAD9> \x9A\xCE |0
+<UEADA> \x9A\xCF |0
+<UEADC> \x9A\xD1 |0
+<UEADE> \x9A\xD3 |0
+<UEADF> \x9A\xD4 |0
+<UEAE0> \x9A\xD5 |0
+<UEAE1> \x9A\xD6 |0
+<UEAE2> \x9A\xD7 |0
+<UEAE3> \x9A\xD8 |0
+<UEAE7> \x9A\xDC |0
+<UEAE9> \x9A\xDE |0
+<UEAEA> \x9A\xDF |0
+<UEAEC> \x9A\xE1 |0
+<UEAEE> \x9A\xE3 |0
+<UEAF0> \x9A\xE5 |0
+<UEAF1> \x9A\xE6 |0
+<UEAF5> \x9A\xEA |0
+<UEAF6> \x9A\xEB |0
+<UEAF8> \x9A\xED |0
+<UEAF9> \x9A\xEE |0
+<UEAFA> \x9A\xEF |0
+<UEAFB> \x9A\xF0 |0
+<UEAFF> \x9A\xF4 |0
+<UEB00> \x9A\xF5 |0
+<UEB02> \x9A\xF7 |0
+<UEB03> \x9A\xF8 |0
+<UEB04> \x9A\xF9 |0
+<UEB05> \x9A\xFA |0
+<UEB08> \x9A\xFD |0
+<UEB09> \x9A\xFE |0
+<UEB0A> \x9B\x40 |0
+<UEB0B> \x9B\x41 |0
+<UEB0C> \x9B\x42 |0
+<UEB0D> \x9B\x43 |0
+<UEB0E> \x9B\x44 |0
+<UEB0F> \x9B\x45 |0
+<UEB12> \x9B\x48 |0
+<UEB15> \x9B\x4B |0
+<UEB19> \x9B\x4F |0
+<UEB1A> \x9B\x50 |0
+<UEB1B> \x9B\x51 |0
+<UEB1C> \x9B\x52 |0
+<UEB1D> \x9B\x53 |0
+<UEB1F> \x9B\x55 |0
+<UEB20> \x9B\x56 |0
+<UEB23> \x9B\x59 |0
+<UEB25> \x9B\x5B |0
+<UEB27> \x9B\x5D |0
+<UEB2A> \x9B\x60 |0
+<UEB2C> \x9B\x62 |0
+<UEB2D> \x9B\x63 |0
+<UEB2E> \x9B\x64 |0
+<UEB30> \x9B\x66 |0
+<UEB31> \x9B\x67 |0
+<UEB32> \x9B\x68 |0
+<UEB33> \x9B\x69 |0
+<UEB34> \x9B\x6A |0
+<UEB35> \x9B\x6B |0
+<UEB36> \x9B\x6C |0
+<UEB37> \x9B\x6D |0
+<UEB38> \x9B\x6E |0
+<UEB39> \x9B\x6F |0
+<UEB3D> \x9B\x73 |0
+<UEB3E> \x9B\x74 |0
+<UEB3F> \x9B\x75 |0
+<UEB43> \x9B\x79 |0
+<UEB44> \x9B\x7A |0
+<UEB4A> \x9B\xA2 |0
+<UEB4D> \x9B\xA5 |0
+<UEB4E> \x9B\xA6 |0
+<UEB53> \x9B\xAB |0
+<UEB55> \x9B\xAD |0
+<UEB56> \x9B\xAE |0
+<UEB58> \x9B\xB0 |0
+<UEB5A> \x9B\xB2 |0
+<UEB5B> \x9B\xB3 |0
+<UEB62> \x9B\xBA |0
+<UEB63> \x9B\xBB |0
+<UEB65> \x9B\xBD |0
+<UEB67> \x9B\xBF |0
+<UEB68> \x9B\xC0 |0
+<UEB69> \x9B\xC1 |0
+<UEB6F> \x9B\xC7 |0
+<UEB70> \x9B\xC8 |0
+<UEB71> \x9B\xC9 |0
+<UEB73> \x9B\xCB |0
+<UEB76> \x9B\xCE |0
+<UEB77> \x9B\xCF |0
+<UEB7A> \x9B\xD2 |0
+<UEB7E> \x9B\xD6 |0
+<UEB7F> \x9B\xD7 |0
+<UEB80> \x9B\xD8 |0
+<UEB83> \x9B\xDB |0
+<UEB88> \x9B\xE0 |0
+<UEB8A> \x9B\xE2 |0
+<UEB8C> \x9B\xE4 |0
+<UEB90> \x9B\xE8 |0
+<UEB93> \x9B\xEB |0
+<UEB95> \x9B\xED |0
+<UEB99> \x9B\xF1 |0
+<UEB9B> \x9B\xF3 |0
+<UEB9F> \x9B\xF7 |0
+<UEBA2> \x9B\xFA |0
+<UEBA5> \x9B\xFD |0
+<UEBA6> \x9B\xFE |0
+<UEBAA> \x9C\x43 |0
+<UEBAB> \x9C\x44 |0
+<UEBAE> \x9C\x47 |0
+<UEBB2> \x9C\x4B |0
+<UEBB3> \x9C\x4C |0
+<UEBBD> \x9C\x56 |0
+<UEBBF> \x9C\x58 |0
+<UEBC5> \x9C\x5E |0
+<UEBCA> \x9C\x63 |0
+<UEBCC> \x9C\x65 |0
+<UEBCE> \x9C\x67 |0
+<UEBD0> \x9C\x69 |0
+<UEBD5> \x9C\x6E |0
+<UEBD7> \x9C\x70 |0
+<UEBD8> \x9C\x71 |0
+<UEBDA> \x9C\x73 |0
+<UEBDB> \x9C\x74 |0
+<UEBDD> \x9C\x76 |0
+<UEBDF> \x9C\x78 |0
+<UEBE1> \x9C\x7A |0
+<UEBE4> \x9C\x7D |0
+<UEBE8> \x9C\xA3 |0
+<UEBE9> \x9C\xA4 |0
+<UEBEB> \x9C\xA6 |0
+<UEBEC> \x9C\xA7 |0
+<UEBEF> \x9C\xAA |0
+<UEBF2> \x9C\xAD |0
+<UEBF5> \x9C\xB0 |0
+<UEBF9> \x9C\xB4 |0
+<UEBFA> \x9C\xB5 |0
+<UEBFE> \x9C\xB9 |0
+<UEC08> \x9C\xC3 |0
+<UEC09> \x9C\xC4 |0
+<UEC0F> \x9C\xCA |0
+<UEC13> \x9C\xCE |0
+<UEC19> \x9C\xD4 |0
+<UEC1A> \x9C\xD5 |0
+<UEC1B> \x9C\xD6 |0
+<UEC1C> \x9C\xD7 |0
+<UEC24> \x9C\xDF |0
+<UEC26> \x9C\xE1 |0
+<UEC2B> \x9C\xE6 |0
+<UEC2F> \x9C\xEA |0
+<UEC32> \x9C\xED |0
+<UEC3F> \x9C\xFA |0
+<UEC43> \x9C\xFE |0
+<UEC44> \x9D\x40 |0
+<UEC45> \x9D\x41 |0
+<UEC46> \x9D\x42 |0
+<UEC47> \x9D\x43 |0
+<UEC48> \x9D\x44 |0
+<UEC49> \x9D\x45 |0
+<UEC4B> \x9D\x47 |0
+<UEC4F> \x9D\x4B |0
+<UEC52> \x9D\x4E |0
+<UEC54> \x9D\x50 |0
+<UEC56> \x9D\x52 |0
+<UEC57> \x9D\x53 |0
+<UEC58> \x9D\x54 |0
+<UEC5A> \x9D\x56 |0
+<UEC5C> \x9D\x58 |0
+<UEC5D> \x9D\x59 |0
+<UEC60> \x9D\x5C |0
+<UEC62> \x9D\x5E |0
+<UEC63> \x9D\x5F |0
+<UEC67> \x9D\x63 |0
+<UEC69> \x9D\x65 |0
+<UEC6A> \x9D\x66 |0
+<UEC6B> \x9D\x67 |0
+<UEC6C> \x9D\x68 |0
+<UEC6D> \x9D\x69 |0
+<UEC6F> \x9D\x6B |0
+<UEC70> \x9D\x6C |0
+<UEC72> \x9D\x6E |0
+<UEC73> \x9D\x6F |0
+<UEC75> \x9D\x71 |0
+<UEC79> \x9D\x75 |0
+<UEC7B> \x9D\x77 |0
+<UEC7E> \x9D\x7A |0
+<UEC84> \x9D\xA2 |0
+<UEC8E> \x9D\xAC |0
+<UEC92> \x9D\xB0 |0
+<UEC95> \x9D\xB3 |0
+<UECAF> \x9D\xCD |0
+<UECB6> \x9D\xD4 |0
+<UECCF> \x9D\xED |0
+<UECDC> \x9D\xFA |0
+<UECE0> \x9D\xFE |0
+<UECE1> \x9E\x40 |0
+<UECF0> \x9E\x4F |0
+<UECF2> \x9E\x51 |0
+<UECFC> \x9E\x5B |0
+<UED11> \x9E\x70 |0
+<UED1D> \x9E\x7C |0
+<UED24> \x9E\xA5 |0
+<UED29> \x9E\xAA |0
+<UED2C> \x9E\xAD |0
+<UED3B> \x9E\xBC |0
+<UED41> \x9E\xC2 |0
+<UED4F> \x9E\xD0 |0
+<UED52> \x9E\xD3 |0
+<UED5F> \x9E\xE0 |0
+<UED6B> \x9E\xEC |0
+<UED78> \x9E\xF9 |0
+<UED84> \x9F\x46 |0
+<UED85> \x9F\x47 |0
+<UED88> \x9F\x4A |0
+<UED8B> \x9F\x4D |0
+<UED8E> \x9F\x50 |0
+<UEDCF> \x9F\xB3 |0
+<UEDDA> \x9F\xBE |0
+<UEDED> \x9F\xD1 |0
+<UEE08> \x9F\xEC |0
+<UEE5D> \xA0\xA4 |0
+<UEE6A> \xA0\xB1 |0
+<UEEA5> \xA0\xEC |0
+<UEEB0> \xA0\xF7 |0
+<UEEB4> \xA0\xFB |0
+<UEEB7> \xA0\xFE |0
+<UF303> \x88\x40 |0
+<UF304> \x88\x41 |0
+<UF305> \x88\x42 |0
+<UF306> \x88\x43 |0
+<UF307> \x88\x44 |0
+<UF308> \x88\x45 |0
+<UF309> \x88\x46 |0
+<UF30A> \x88\x47 |0
+<UF30B> \x88\x48 |0
+<UF30C> \x88\x49 |0
+<UF30D> \x88\x4A |0
+<UF30E> \x88\x4B |0
+<UF30F> \x88\x4C |0
+<UF310> \x88\x4D |0
+<UF311> \x88\x4E |0
+<UF312> \x88\x4F |0
+<UF313> \x88\x50 |0
+<UF314> \x88\x51 |0
+<UF315> \x88\x52 |0
+<UF316> \x88\x53 |0
+<UF317> \x88\x54 |0
+<UF318> \x88\x55 |0
+<UF325> \x88\x62 |0
+<UF327> \x88\x64 |0
+<UF344> \x88\xA3 |0
+<UF346> \x88\xA5 |0
+<UF34A> \x88\xA9 |0
+<UF34B> \x88\xAA |0
+<UF3A1> \x89\x41 |0
+<UF3F0> \x89\xB2 |0
+<UF3F9> \x89\xBB |0
+<UF3FC> \x89\xBE |0
+<UF408> \x89\xCA |0
+<UF40B> \x89\xCD |0
+<UF43D> \x8A\x40 |0
+<UF441> \x8A\x44 |0
+<UF442> \x8A\x45 |0
+<UF449> \x8A\x4C |0
+<UF44D> \x8A\x50 |0
+<UF450> \x8A\x53 |0
+<UF454> \x8A\x57 |0
+<UF45A> \x8A\x5D |0
+<UF45B> \x8A\x5E |0
+<UF45C> \x8A\x5F |0
+<UF45D> \x8A\x60 |0
+<UF462> \x8A\x65 |0
+<UF465> \x8A\x68 |0
+<UF466> \x8A\x69 |0
+<UF469> \x8A\x6C |0
+<UF46D> \x8A\x70 |0
+<UF46E> \x8A\x71 |0
+<UF46F> \x8A\x72 |0
+<UF477> \x8A\x7A |0
+<UF478> \x8A\x7B |0
+<UF47C> \x8A\xA1 |0
+<UF47D> \x8A\xA2 |0
+<UF47E> \x8A\xA3 |0
+<UF480> \x8A\xA5 |0
+<UF485> \x8A\xAA |0
+<UF488> \x8A\xAD |0
+<UF48B> \x8A\xB0 |0
+<UF48D> \x8A\xB2 |0
+<UF48F> \x8A\xB4 |0
+<UF490> \x8A\xB5 |0
+<UF491> \x8A\xB6 |0
+<UF497> \x8A\xBC |0
+<UF498> \x8A\xBD |0
+<UF49B> \x8A\xC0 |0
+<UF4A4> \x8A\xC9 |0
+<UF4A7> \x8A\xCC |0
+<UF4AA> \x8A\xCF |0
+<UF4AD> \x8A\xD2 |0
+<UF4AF> \x8A\xD4 |0
+<UF4B3> \x8A\xD8 |0
+<UF4B4> \x8A\xD9 |0
+<UF4B7> \x8A\xDC |0
+<UF4BA> \x8A\xDF |0
+<UF4BB> \x8A\xE0 |0
+<UF4BC> \x8A\xE1 |0
+<UF4BD> \x8A\xE2 |0
+<UF4C0> \x8A\xE5 |0
+<UF4C1> \x8A\xE6 |0
+<UF4C3> \x8A\xE8 |0
+<UF4C8> \x8A\xED |0
+<UF4CE> \x8A\xF3 |0
+<UF4CF> \x8A\xF4 |0
+<UF4D2> \x8A\xF7 |0
+<UF4E2> \x8B\x48 |0
+<UF4E5> \x8B\x4B |0
+<UF4E7> \x8B\x4D |0
+<UF4E8> \x8B\x4E |0
+<UF4E9> \x8B\x4F |0
+<UF4F3> \x8B\x59 |0
+<UF522> \x8B\xAA |0
+<UF523> \x8B\xAB |0
+<UF525> \x8B\xAD |0
+<UF526> \x8B\xAE |0
+<UF52A> \x8B\xB2 |0
+<UF53A> \x8B\xC2 |0
+<UF53B> \x8B\xC3 |0
+<UF53D> \x8B\xC5 |0
+<UF54E> \x8B\xD6 |0
+<UF553> \x8B\xDB |0
+<UF556> \x8B\xDE |0
+<UF559> \x8B\xE1 |0
+<UF55A> \x8B\xE2 |0
+<UF55E> \x8B\xE6 |0
+<UF565> \x8B\xED |0
+<UF56B> \x8B\xF3 |0
+<UF572> \x8B\xFA |0
+<UF6B0> \x8D\xFE |0
+<UF7E5> \xC8\x79 |0
+<UF7E6> \xC8\x7A |0
+<UF7E8> \xC8\x7C |0
+<UF7EA> \xC8\x7E |0
+<UF7EB> \xC8\xA1 |0
+<UF7ED> \xC8\xA3 |0
+<UF7EE> \xC8\xA4 |0
+<UFA0C> \xC9\x4A |0
+<UFA0D> \xDD\xFC |0
+<UFE30> \xA1\x4A |0
+<UFE31> \xA1\x57 |0
+<UFE33> \xA1\x59 |0
+<UFE34> \xA1\x5B |0
+<UFE35> \xA1\x5F |0
+<UFE36> \xA1\x60 |0
+<UFE37> \xA1\x63 |0
+<UFE38> \xA1\x64 |0
+<UFE39> \xA1\x67 |0
+<UFE3A> \xA1\x68 |0
+<UFE3B> \xA1\x6B |0
+<UFE3C> \xA1\x6C |0
+<UFE3D> \xA1\x6F |0
+<UFE3E> \xA1\x70 |0
+<UFE3F> \xA1\x73 |0
+<UFE40> \xA1\x74 |0
+<UFE41> \xA1\x77 |0
+<UFE42> \xA1\x78 |0
+<UFE43> \xA1\x7B |0
+<UFE44> \xA1\x7C |0
+<UFE49> \xA1\xC6 |0
+<UFE4A> \xA1\xC7 |0
+<UFE4B> \xA1\xCA |0
+<UFE4C> \xA1\xCB |0
+<UFE4D> \xA1\xC8 |0
+<UFE4E> \xA1\xC9 |0
+<UFE4F> \xA1\x5C |0
+<UFE50> \xA1\x4D |0
+<UFE52> \xA1\x4F |0
+<UFE54> \xA1\x51 |0
+<UFE55> \xA1\x52 |0
+<UFE56> \xA1\x53 |0
+<UFE57> \xA1\x54 |0
+<UFE59> \xA1\x7D |0
+<UFE5A> \xA1\x7E |0
+<UFE5B> \xA1\xA1 |0
+<UFE5C> \xA1\xA2 |0
+<UFE5D> \xA1\xA3 |0
+<UFE5E> \xA1\xA4 |0
+<UFE5F> \xA1\xCC |0
+<UFE60> \xA1\xCD |0
+<UFE61> \xA1\xCE |0
+<UFE62> \xA1\xDE |0
+<UFE63> \xA1\xDF |0
+<UFE64> \xA1\xE0 |0
+<UFE65> \xA1\xE1 |0
+<UFE66> \xA1\xE2 |0
+<UFE69> \xA2\x4C |0
+<UFE6A> \xA2\x4D |0
+<UFE6B> \xA2\x4E |0
+<UFF01> \xA1\x49 |0
+<UFF02> \xC8\xD0 |0
+<UFF03> \xA1\xAD |0
+<UFF04> \xA2\x43 |0
+<UFF05> \xA2\x48 |0
+<UFF06> \xA1\xAE |0
+<UFF07> \xC8\xCF |0
+<UFF08> \xA1\x5D |0
+<UFF09> \xA1\x5E |0
+<UFF0A> \xA1\xAF |0
+<UFF0B> \xA1\xCF |0
+<UFF0C> \xA1\x41 |0
+<UFF0D> \xA1\xD0 |0
+<UFF0E> \xA1\x44 |0
+<UFF0F> \xA2\x41 |0
+<UFF10> \xA2\xAF |0
+<UFF11> \xA2\xB0 |0
+<UFF12> \xA2\xB1 |0
+<UFF13> \xA2\xB2 |0
+<UFF14> \xA2\xB3 |0
+<UFF15> \xA2\xB4 |0
+<UFF16> \xA2\xB5 |0
+<UFF17> \xA2\xB6 |0
+<UFF18> \xA2\xB7 |0
+<UFF19> \xA2\xB8 |0
+<UFF1A> \xA1\x47 |0
+<UFF1B> \xA1\x46 |0
+<UFF1C> \xA1\xD5 |0
+<UFF1D> \xA1\xD7 |0
+<UFF1E> \xA1\xD6 |0
+<UFF1F> \xA1\x48 |0
+<UFF20> \xA2\x49 |0
+<UFF21> \xA2\xCF |0
+<UFF22> \xA2\xD0 |0
+<UFF23> \xA2\xD1 |0
+<UFF24> \xA2\xD2 |0
+<UFF25> \xA2\xD3 |0
+<UFF26> \xA2\xD4 |0
+<UFF27> \xA2\xD5 |0
+<UFF28> \xA2\xD6 |0
+<UFF29> \xA2\xD7 |0
+<UFF2A> \xA2\xD8 |0
+<UFF2B> \xA2\xD9 |0
+<UFF2C> \xA2\xDA |0
+<UFF2D> \xA2\xDB |0
+<UFF2E> \xA2\xDC |0
+<UFF2F> \xA2\xDD |0
+<UFF30> \xA2\xDE |0
+<UFF31> \xA2\xDF |0
+<UFF32> \xA2\xE0 |0
+<UFF33> \xA2\xE1 |0
+<UFF34> \xA2\xE2 |0
+<UFF35> \xA2\xE3 |0
+<UFF36> \xA2\xE4 |0
+<UFF37> \xA2\xE5 |0
+<UFF38> \xA2\xE6 |0
+<UFF39> \xA2\xE7 |0
+<UFF3A> \xA2\xE8 |0
+<UFF3B> \xC6\xE4 |0
+<UFF3C> \xA2\x42 |0
+<UFF3D> \xC6\xE5 |0
+<UFF3F> \xA1\xC4 |0
+<UFF41> \xA2\xE9 |0
+<UFF42> \xA2\xEA |0
+<UFF43> \xA2\xEB |0
+<UFF44> \xA2\xEC |0
+<UFF45> \xA2\xED |0
+<UFF46> \xA2\xEE |0
+<UFF47> \xA2\xEF |0
+<UFF48> \xA2\xF0 |0
+<UFF49> \xA2\xF1 |0
+<UFF4A> \xA2\xF2 |0
+<UFF4B> \xA2\xF3 |0
+<UFF4C> \xA2\xF4 |0
+<UFF4D> \xA2\xF5 |0
+<UFF4E> \xA2\xF6 |0
+<UFF4F> \xA2\xF7 |0
+<UFF50> \xA2\xF8 |0
+<UFF51> \xA2\xF9 |0
+<UFF52> \xA2\xFA |0
+<UFF53> \xA2\xFB |0
+<UFF54> \xA2\xFC |0
+<UFF55> \xA2\xFD |0
+<UFF56> \xA2\xFE |0
+<UFF57> \xA3\x40 |0
+<UFF58> \xA3\x41 |0
+<UFF59> \xA3\x42 |0
+<UFF5A> \xA3\x43 |0
+<UFF5B> \xA1\x61 |0
+<UFF5C> \xA1\x55 |0
+<UFF5D> \xA1\x62 |0
+<UFF64> \xA1\x4E |0
+<UFFE2> \xC8\xCD |0
+<UFFE4> \xC8\xCE |0
+<UFFED> \xF9\xFE |0
+<U2003E> \x93\x75 |0
+<U20046> \x93\x76 |0
+<U2004E> \x95\x48 |0
+<U20068> \x8E\xC6 |0
+<U200EE> \xA0\xF6 |0
+<U20118> \xFC\xAD |0
+<U201AB> \x92\x72 |0
+<U201C1> \xFC\x47 |0
+<U201D4> \x94\xDF |0
+<U20214> \x98\xA4 |0
+<U2025B> \x94\xE7 |0
+<U20274> \x90\xCB |0
+<U20275> \x92\x7B |0
+<U20299> \x94\xD8 |0
+<U2029E> \xFC\x5F |0
+<U202A0> \xFA\x54 |0
+<U202BF> \x96\xDA |0
+<U202C0> \x92\x79 |0
+<U202E5> \xFA\x74 |0
+<U2030A> \x92\x75 |0
+<U20325> \x8D\xFB |0
+<U20341> \x8A\x49 |0
+<U20345> \x92\xDF |0
+<U20346> \x9B\x7C |0
+<U20347> \xFA\x63 |0
+<U2037E> \xFA\x60 |0
+<U2037F> \x92\x6D |0
+<U20380> \xFA\x62 |0
+<U203A7> \x97\x6B |0
+<U203B5> \xFD\x6A |0
+<U203C9> \xFD\x54 |0
+<U203CB> \x92\x73 |0
+<U203F5> \x97\xD8 |0
+<U203FC> \x9F\xBB |0
+<U20413> \x93\x42 |0
+<U20414> \x92\x76 |0
+<U2041F> \xFA\x65 |0
+<U20465> \x92\x6C |0
+<U20487> \xFA\x6E |0
+<U20491> \x92\xC0 |0
+<U20492> \x92\xBF |0
+<U204A3> \x92\xBE |0
+<U204FC> \x8A\xB3 |0
+<U204FE> \x97\x75 |0
+<U20547> \xFA\x40 |0
+<U2058E> \xFA\x76 |0
+<U205A5> \xFB\xD0 |0
+<U205B3> \xFA\x7B |0
+<U205D0> \x89\xCC |0
+<U205DF> \xFA\x42 |0
+<U205E0> \x92\xBC |0
+<U205EB> \x94\x5C |0
+<U20611> \x9B\xB5 |0
+<U20619> \x98\xA7 |0
+<U2061A> \x97\xA4 |0
+<U20630> \x90\xFD |0
+<U2070E> \x92\xC3 |0
+<U20779> \x9B\xD0 |0
+<U2082C> \x95\x50 |0
+<U20873> \x92\xC6 |0
+<U20916> \x95\x46 |0
+<U20954> \xFA\xC2 |0
+<U20979> \x9E\xC3 |0
+<U20A11> \x9C\x66 |0
+<U20A50> \x90\x53 |0
+<U20AB4> \x97\xC1 |0
+<U20B8F> \xFA\xE9 |0
+<U20BA8> \x92\x62 |0
+<U20BC6> \x92\xE1 |0
+<U20BE2> \xFA\xC6 |0
+<U20BFF> \xFA\x72 |0
+<U20C20> \x92\xCC |0
+<U20C41> \x9D\xF9 |0
+<U20C42> \x8A\x43 |0
+<U20C43> \x8A\xA6 |0
+<U20C53> \x9A\xCD |0
+<U20C77> \xFA\xEE |0
+<U20C78> \x9B\xCC |0
+<U20C9C> \x9D\x7C |0
+<U20CCF> \x99\x5F |0
+<U20CD3> \xFB\xF6 |0
+<U20CD4> \x9F\xC5 |0
+<U20CD5> \x8A\x59 |0
+<U20CD6> \x8B\x6B |0
+<U20D46> \x8A\x64 |0
+<U20D47> \x8A\xF2 |0
+<U20D48> \x8A\xF8 |0
+<U20D49> \x9D\xD8 |0
+<U20D4C> \x94\xD6 |0
+<U20D4D> \xFA\xFE |0
+<U20D4E> \xFB\xA7 |0
+<U20D7E> \x8B\x43 |0
+<U20D7F> \x8B\x44 |0
+<U20DA7> \x9E\x54 |0
+<U20E09> \x8A\xCA |0
+<U20E0A> \x9E\xA8 |0
+<U20E0D> \x92\x63 |0
+<U20E0E> \x9A\xDD |0
+<U20E0F> \x8B\x65 |0
+<U20E10> \x8B\x6F |0
+<U20E11> \x8B\x7E |0
+<U20E16> \x8F\x43 |0
+<U20E1D> \x92\xD0 |0
+<U20E6D> \x9D\xBE |0
+<U20E75> \xFC\xDE |0
+<U20E76> \x9D\xFD |0
+<U20E77> \x8B\x66 |0
+<U20E78> \x8B\x70 |0
+<U20E79> \x8B\x75 |0
+<U20E7A> \x8A\xE4 |0
+<U20E7B> \x8B\xA4 |0
+<U20EAA> \x8A\xEF |0
+<U20EAB> \x8A\xF6 |0
+<U20EAC> \x9E\x76 |0
+<U20EB6> \x9E\xE3 |0
+<U20EF8> \x9C\xB1 |0
+<U20EF9> \x9E\x77 |0
+<U20EFA> \x8B\x64 |0
+<U20EFB> \x8B\x67 |0
+<U20F2D> \x9A\xE0 |0
+<U20F2E> \x8B\x4A |0
+<U20F30> \x8A\xF1 |0
+<U20F31> \x8A\xD7 |0
+<U20F3B> \xA0\xAB |0
+<U20F8D> \x8A\xEE |0
+<U20FAD> \x8A\xFE |0
+<U20FB4> \x8A\x58 |0
+<U20FB5> \x8B\xA3 |0
+<U20FB6> \x8B\xA7 |0
+<U20FEA> \x9D\xD7 |0
+<U20FEB> \x9E\x7D |0
+<U20FEC> \x9E\xA7 |0
+<U20FED> \x9E\xAB |0
+<U2101D> \x8B\x79 |0
+<U2101E> \x8B\x7A |0
+<U2106F> \x8A\x7E |0
+<U21075> \x9E\x44 |0
+<U21076> \x9A\xE7 |0
+<U21077> \x8A\x7C |0
+<U21078> \x8B\x71 |0
+<U2107B> \x9A\xE9 |0
+<U210B4> \xFB\x4E |0
+<U210C0> \x8A\xF9 |0
+<U210C1> \x9E\x63 |0
+<U210C7> \x8B\x49 |0
+<U210C8> \x8A\xCE |0
+<U210C9> \x8B\x6E |0
+<U210F4> \x8A\x5A |0
+<U210F5> \x8B\x7B |0
+<U210F6> \x8B\x7C |0
+<U2113D> \x8A\xFA |0
+<U21148> \x8B\x72 |0
+<U21180> \x8B\xA8 |0
+<U21187> \x9E\xAE |0
+<U211D9> \x9E\x72 |0
+<U2124F> \xFB\x5F |0
+<U2127C> \x90\xBA |0
+<U212A9> \x9E\xF6 |0
+<U212B0> \x97\xED |0
+<U212E3> \x9A\xF3 |0
+<U212FE> \xA0\xEE |0
+<U21302> \x96\x7C |0
+<U21303> \x93\x45 |0
+<U21304> \x98\x6E |0
+<U21305> \xFA\x56 |0
+<U2133A> \xFC\x4B |0
+<U2139C> \x97\xC7 |0
+<U213C5> \x9C\xCB |0
+<U213C6> \x92\x40 |0
+<U213ED> \x9C\xE8 |0
+<U213FE> \x91\xFD |0
+<U21452> \x97\xE8 |0
+<U21454> \xFB\x6A |0
+<U21455> \x8B\x74 |0
+<U21497> \xFD\xC8 |0
+<U214B6> \x92\x41 |0
+<U214E8> \x96\xA1 |0
+<U214FD> \x8E\xF3 |0
+<U21596> \xFA\xD6 |0
+<U2160A> \x9C\xC7 |0
+<U21613> \xFA\xD7 |0
+<U2163E> \xFB\xA1 |0
+<U21661> \x8E\xC5 |0
+<U21692> \xFB\xA4 |0
+<U216C0> \x91\xFA |0
+<U216C1> \xFE\xDB |0
+<U216C2> \x97\xAB |0
+<U216D3> \x91\x47 |0
+<U216D5> \xFB\xB1 |0
+<U216E6> \x94\xD2 |0
+<U216E7> \xFE\x61 |0
+<U216E8> \xFA\xCE |0
+<U216FA> \x92\xED |0
+<U216FB> \x91\xF3 |0
+<U216FC> \x93\xC6 |0
+<U216FE> \x93\x5A |0
+<U21710> \x92\xEF |0
+<U21726> \xFA\xC8 |0
+<U2173A> \x98\x47 |0
+<U2173B> \x93\x66 |0
+<U2173C> \x98\x55 |0
+<U21757> \x96\xE6 |0
+<U2176C> \x9F\x43 |0
+<U2176D> \x9F\xAA |0
+<U2176E> \x94\xDA |0
+<U2176F> \x92\xEE |0
+<U21770> \xFC\xAF |0
+<U21771> \xFB\xFB |0
+<U21773> \x8E\xF9 |0
+<U21774> \x91\xF6 |0
+<U217B1> \x9C\xB6 |0
+<U217B2> \xFB\xAD |0
+<U217B3> \x98\x4E |0
+<U217B4> \x8F\x44 |0
+<U217B5> \x96\xFD |0
+<U217D9> \x97\x69 |0
+<U217DA> \x95\xD4 |0
+<U217DB> \x98\x4B |0
+<U217DC> \xFB\xAA |0
+<U217F5> \x9D\xAF |0
+<U217F6> \x9D\xC5 |0
+<U217F8> \x91\xF1 |0
+<U217F9> \x8E\xB1 |0
+<U217FA> \x97\xA9 |0
+<U217FB> \xFB\xAC |0
+<U217FC> \xFC\xB8 |0
+<U21828> \xFB\xB0 |0
+<U21829> \xFC\xD2 |0
+<U2182A> \x93\xCB |0
+<U2183A> \x8B\xAC |0
+<U2183B> \xA0\x55 |0
+<U21845> \x95\xBE |0
+<U2185E> \x8E\xE9 |0
+<U21861> \x92\xF8 |0
+<U21862> \x97\xBE |0
+<U21863> \x91\x6C |0
+<U21864> \x94\xAA |0
+<U2187B> \x9D\xC6 |0
+<U21883> \x97\xB5 |0
+<U21884> \x92\xB8 |0
+<U21885> \x91\xEF |0
+<U2189E> \xFE\xA6 |0
+<U2189F> \x97\x60 |0
+<U218A0> \x93\x58 |0
+<U218A1> \x95\x76 |0
+<U218A2> \x8F\xAC |0
+<U218BE> \x91\xEC |0
+<U218BF> \x97\xB4 |0
+<U218D6> \x97\x4A |0
+<U218D7> \xFB\x49 |0
+<U218D8> \x95\x78 |0
+<U218D9> \x93\xBC |0
+<U218FA> \x91\xD6 |0
+<U21903> \x93\x55 |0
+<U21904> \x93\x56 |0
+<U21905> \x98\x51 |0
+<U21910> \x8F\xF8 |0
+<U21911> \xFB\xC0 |0
+<U21912> \x93\xF2 |0
+<U21915> \x90\xD0 |0
+<U21927> \x93\x63 |0
+<U2193B> \x91\xA5 |0
+<U21944> \xA0\xED |0
+<U2197C> \x93\x51 |0
+<U21988> \xFE\xA8 |0
+<U21996> \x93\x50 |0
+<U219DB> \xFA\x4C |0
+<U219F3> \x92\xF7 |0
+<U21A4B> \xFE\xAD |0
+<U21B44> \xFB\xD5 |0
+<U21CA2> \x9E\x79 |0
+<U21CA5> \xFB\xD9 |0
+<U21D46> \xA0\xA7 |0
+<U21DBA> \x93\x5E |0
+<U21DCA> \x89\xCB |0
+<U21DD1> \x9F\x53 |0
+<U21DF9> \xFB\xE1 |0
+<U21E37> \xFB\xE2 |0
+<U21E89> \x90\x74 |0
+<U21EA4> \xFB\xE6 |0
+<U21EA8> \x9B\xB7 |0
+<U21ED5> \x9B\x47 |0
+<U21F6A> \xFC\x5B |0
+<U21FA1> \x9C\xFD |0
+<U22049> \xFB\xEC |0
+<U2209A> \x9B\xA8 |0
+<U220C7> \x8A\xD5 |0
+<U220FC> \xFA\x73 |0
+<U2212A> \xFD\x59 |0
+<U22173> \xFB\xED |0
+<U2217A> \x9C\xA9 |0
+<U221A1> \x8A\xA8 |0
+<U221C3> \x9B\xC3 |0
+<U2227C> \x9B\x4E |0
+<U22321> \x95\xD0 |0
+<U22325> \x90\x5F |0
+<U223BD> \x97\xEE |0
+<U223D0> \xFC\x4E |0
+<U22465> \x9E\xC6 |0
+<U22471> \xFC\x50 |0
+<U2248B> \xFD\x73 |0
+<U22513> \xFA\x5E |0
+<U2251B> \xA0\x59 |0
+<U22530> \xFA\x75 |0
+<U2258D> \x9C\xA2 |0
+<U225AF> \x93\x70 |0
+<U225BE> \x93\x71 |0
+<U2261B> \x93\x77 |0
+<U2261C> \xFE\xEF |0
+<U2262B> \x93\x6D |0
+<U22668> \xFC\x5D |0
+<U22696> \x8A\xFC |0
+<U22698> \xFB\x41 |0
+<U226F4> \x9E\x6B |0
+<U226F5> \x94\xE3 |0
+<U226F6> \x8E\xE2 |0
+<U2271B> \x9C\x4D |0
+<U2271F> \x96\xA3 |0
+<U22775> \x8A\xC3 |0
+<U22781> \x96\xAA |0
+<U227B4> \xFC\x68 |0
+<U227B5> \x8B\x6D |0
+<U22803> \x8A\xE9 |0
+<U2285F> \xFC\xA1 |0
+<U22860> \x93\x6C |0
+<U228AD> \xFE\x70 |0
+<U228C1> \xFC\xA8 |0
+<U228F7> \xFC\xE9 |0
+<U22939> \x8A\xEA |0
+<U2296B> \x96\xAB |0
+<U22980> \xFC\xA7 |0
+<U22ACF> \x8A\xCB |0
+<U22AD5> \x9B\x57 |0
+<U22B22> \x93\xA5 |0
+<U22B6A> \x93\xA3 |0
+<U22BCE> \x8B\x42 |0
+<U22C26> \x97\x50 |0
+<U22C27> \x8F\xB3 |0
+<U22C51> \x8B\x45 |0
+<U22C55> \x8B\x46 |0
+<U22C9B> \x93\x7B |0
+<U22CA1> \x93\xB1 |0
+<U22CC6> \x8A\x47 |0
+<U22D07> \x93\x7C |0
+<U22D08> \x9B\x65 |0
+<U22D67> \x93\xAF |0
+<U22DA0> \x9E\xA3 |0
+<U22DA3> \xFA\xEC |0
+<U22DA4> \x8B\x77 |0
+<U22E0D> \xFC\xB1 |0
+<U22E36> \xFC\xBB |0
+<U22E78> \x93\xA8 |0
+<U22FE3> \x97\xEC |0
+<U2304B> \xFD\xC2 |0
+<U2307D> \x91\x67 |0
+<U2307E> \xFC\xCC |0
+<U2308E> \x93\xB6 |0
+<U230B7> \x90\xE4 |0
+<U230BC> \x90\xE5 |0
+<U230DA> \x9E\xF2 |0
+<U23103> \x93\xCA |0
+<U2313D> \x8B\xBC |0
+<U23182> \x93\xCF |0
+<U231A4> \xFC\xDB |0
+<U231A5> \xFC\xDC |0
+<U231C8> \xFC\xE6 |0
+<U231C9> \x96\xE7 |0
+<U231F7> \xFC\xD8 |0
+<U231F8> \xFC\xD9 |0
+<U231F9> \xFD\xA6 |0
+<U23225> \x95\xF1 |0
+<U2322F> \x9C\xE9 |0
+<U23231> \xFC\xE4 |0
+<U23232> \x94\xAF |0
+<U23233> \xFA\x77 |0
+<U23234> \x93\xCC |0
+<U23262> \x90\x5A |0
+<U23289> \x93\xBF |0
+<U2328A> \xFB\x51 |0
+<U232AB> \x93\xB9 |0
+<U232AC> \xFE\xD7 |0
+<U232AD> \x93\xB7 |0
+<U232D2> \x93\xD9 |0
+<U232E0> \x93\xBB |0
+<U232E1> \x93\xDA |0
+<U23300> \x98\xA3 |0
+<U2330A> \x90\xD1 |0
+<U233B4> \xFA\x70 |0
+<U233E6> \xFC\xFC |0
+<U233F4> \x8B\x40 |0
+<U233F5> \xA0\x7B |0
+<U233FE> \x93\xE2 |0
+<U23400> \xFC\xD6 |0
+<U23450> \x93\xA6 |0
+<U23472> \x93\x5F |0
+<U234E5> \x97\xF2 |0
+<U23530> \x8E\xF8 |0
+<U2355A> \x8F\x47 |0
+<U23595> \x92\xB4 |0
+<U23599> \x91\xED |0
+<U2359C> \x96\xD2 |0
+<U235CD> \xFD\x46 |0
+<U235CE> \x8F\x4F |0
+<U235CF> \x95\x49 |0
+<U23600> \xFA\x5C |0
+<U2363C> \xFD\x4B |0
+<U23640> \x96\xD3 |0
+<U23677> \xA0\xF5 |0
+<U236A6> \x92\x43 |0
+<U236AD> \x97\xFA |0
+<U236BA> \x9D\xD9 |0
+<U236DF> \x97\xF4 |0
+<U236EE> \x92\x4D |0
+<U23720> \x9E\xD5 |0
+<U2372F> \x9C\xC9 |0
+<U2373F> \x92\x58 |0
+<U23766> \x8E\xC8 |0
+<U23781> \x94\xB4 |0
+<U237A2> \x93\xE1 |0
+<U237BC> \x93\xDF |0
+<U237C2> \xFC\xF0 |0
+<U237D5> \x93\xEC |0
+<U237D6> \x97\xF6 |0
+<U237D7> \x96\xCF |0
+<U23ADB> \xFD\x69 |0
+<U23AEE> \x93\x52 |0
+<U23B5A> \xFD\x6E |0
+<U23C99> \xFA\x7C |0
+<U23C9A> \x93\xFA |0
+<U23C9B> \x90\x7C |0
+<U23CB7> \x9D\xB7 |0
+<U23CC7> \xA0\xE9 |0
+<U23CC8> \xFA\x4E |0
+<U23CC9> \xFD\xA1 |0
+<U23CFC> \x9E\x74 |0
+<U23CFD> \x9F\xBF |0
+<U23CFE> \x9E\xCB |0
+<U23CFF> \x9B\xB9 |0
+<U23D5B> \x97\xB9 |0
+<U23DB6> \x9E\xD2 |0
+<U23DB7> \x97\x53 |0
+<U23DB8> \x96\xA4 |0
+<U23DB9> \x8F\xBE |0
+<U23DBA> \x94\xD9 |0
+<U23DBB> \x90\x58 |0
+<U23DBC> \xFD\x79 |0
+<U23DBD> \xFD\x7B |0
+<U23DF8> \x8E\xFA |0
+<U23E2C> \x9E\xD9 |0
+<U23E2D> \x97\xD4 |0
+<U23E2E> \x90\xBB |0
+<U23E2F> \xFD\xBC |0
+<U23E30> \xFD\xC6 |0
+<U23E31> \x92\x48 |0
+<U23E88> \x9D\xC1 |0
+<U23E89> \x92\xB9 |0
+<U23E8A> \x92\xA6 |0
+<U23E8B> \x8F\x4B |0
+<U23EBF> \x92\xB6 |0
+<U23EF7> \x9E\xD8 |0
+<U23EF8> \x94\x5E |0
+<U23EF9> \x98\x5F |0
+<U23EFA> \x94\xCE |0
+<U23EFB> \x92\x4A |0
+<U23EFC> \xFD\x70 |0
+<U23F35> \x94\x67 |0
+<U23F41> \x8D\xEC |0
+<U23F7F> \x94\x48 |0
+<U23F80> \xFA\xC1 |0
+<U23F81> \x9C\xF7 |0
+<U23F82> \xFD\xBE |0
+<U23FB7> \xFC\x7E |0
+<U23FC0> \x93\xF9 |0
+<U23FEB> \xFA\xEB |0
+<U23FEC> \xFA\xC3 |0
+<U23FED> \x97\xD3 |0
+<U23FEE> \x95\xF9 |0
+<U23FEF> \x9C\x48 |0
+<U23FF0> \x8E\x6A |0
+<U24011> \xA0\xD8 |0
+<U24039> \xFD\xD7 |0
+<U2403A> \xFB\x4A |0
+<U2403B> \x9B\xAF |0
+<U2403C> \x94\x4B |0
+<U2403D> \xFD\xC9 |0
+<U24057> \x8E\xAC |0
+<U2408B> \x92\x5A |0
+<U2408C> \xFC\xBD |0
+<U2408D> \x92\xD9 |0
+<U240C9> \x92\xDD |0
+<U24104> \x96\xBA |0
+<U2413F> \xFD\xDA |0
+<U24140> \xFD\xDE |0
+<U24144> \xFD\xD3 |0
+<U24155> \xFD\xD6 |0
+<U24156> \xFD\xDC |0
+<U24157> \xFD\xDD |0
+<U2415C> \x90\xFE |0
+<U2415F> \xFE\xA1 |0
+<U2417A> \x9C\xD8 |0
+<U241A3> \x9E\x6D |0
+<U241A4> \xFD\x7C |0
+<U241A5> \xFB\x61 |0
+<U241E2> \xFE\x60 |0
+<U241FC> \x98\x52 |0
+<U2421B> \x96\x4F |0
+<U2424B> \x91\x6E |0
+<U24256> \x98\x6D |0
+<U24259> \x98\x64 |0
+<U24276> \x94\x53 |0
+<U24277> \xFD\xEC |0
+<U24278> \xFB\x78 |0
+<U242A5> \x98\x5A |0
+<U242C9> \x93\xD0 |0
+<U242CA> \x98\x62 |0
+<U242FA> \x97\x4F |0
+<U2431A> \x94\x52 |0
+<U24348> \x91\xD2 |0
+<U24362> \x97\xEA |0
+<U24363> \xFB\x6B |0
+<U24364> \x91\xB1 |0
+<U24365> \xFD\xF3 |0
+<U2438C> \x92\xCB |0
+<U24396> \x9B\xB1 |0
+<U2439C> \xFC\xEC |0
+<U243BD> \x98\x6B |0
+<U243C1> \x97\x51 |0
+<U243E9> \x98\x71 |0
+<U243F2> \x9E\xF3 |0
+<U243F8> \x91\xE8 |0
+<U24435> \xFB\x4C |0
+<U24436> \x92\x6A |0
+<U2445A> \xFD\xF8 |0
+<U2445B> \x98\x61 |0
+<U24487> \x93\xED |0
+<U24488> \x97\x44 |0
+<U244B9> \x91\xE1 |0
+<U244CE> \x98\x69 |0
+<U244D3> \x8A\x62 |0
+<U24521> \x9C\x55 |0
+<U24578> \x8E\x77 |0
+<U2462A> \x93\xE6 |0
+<U24665> \x93\xA2 |0
+<U24697> \x94\xB3 |0
+<U246D4> \x93\x7D |0
+<U24706> \x9E\x66 |0
+<U24725> \x94\x59 |0
+<U2478F> \x94\x58 |0
+<U24823> \xFE\x54 |0
+<U248F3> \x94\xA5 |0
+<U248FF> \x95\xED |0
+<U24900> \xFD\x7E |0
+<U24901> \xFB\xEB |0
+<U2490C> \xFD\x7D |0
+<U24916> \x97\x6F |0
+<U24917> \x94\x61 |0
+<U24919> \x9F\xC1 |0
+<U2492F> \x95\xD7 |0
+<U24933> \xFA\x52 |0
+<U2493E> \x9F\x68 |0
+<U2493F> \x9B\xE7 |0
+<U24940> \xFC\xCE |0
+<U24941> \x96\xE8 |0
+<U24942> \xFA\x49 |0
+<U24962> \x95\x4D |0
+<U24963> \x9E\xF8 |0
+<U24974> \xFE\x49 |0
+<U24975> \x91\xCE |0
+<U24976> \x97\x71 |0
+<U2497F> \xFD\xB1 |0
+<U24988> \x9C\xF2 |0
+<U24989> \x93\xB8 |0
+<U2498A> \x90\x43 |0
+<U2498B> \x97\x59 |0
+<U2498C> \x94\xD7 |0
+<U2498D> \xFE\x66 |0
+<U2498E> \x94\x7D |0
+<U2498F> \xFC\x6F |0
+<U249A7> \x8E\xF7 |0
+<U249AB> \x94\x7C |0
+<U249AC> \x92\xCD |0
+<U249AD> \x97\xB2 |0
+<U249B7> \xFE\x65 |0
+<U249B8> \x96\x7E |0
+<U249B9> \x97\x58 |0
+<U249BA> \x9B\x77 |0
+<U249BB> \x91\xCF |0
+<U249DE> \x96\xD5 |0
+<U249DF> \xFC\xB3 |0
+<U249E3> \x93\xAE |0
+<U249F6> \x9C\x46 |0
+<U249F7> \x95\x5B |0
+<U249F8> \x91\xD1 |0
+<U249F9> \x94\xF4 |0
+<U24A21> \xFC\xED |0
+<U24A22> \xFD\xFA |0
+<U24A23> \xFC\xC8 |0
+<U24A24> \xFE\x62 |0
+<U24A25> \x91\xFC |0
+<U24A26> \xFE\x6B |0
+<U24A27> \xFD\xF9 |0
+<U24A28> \xFC\xC7 |0
+<U24A29> \x91\x4E |0
+<U24A2A> \x9C\xB8 |0
+<U24A3E> \x97\x67 |0
+<U24A4E> \x94\xA2 |0
+<U24A4F> \x98\x75 |0
+<U24A50> \x97\xAC |0
+<U24A51> \x91\xD3 |0
+<U24A65> \x8E\xEB |0
+<U24A66> \x97\x6A |0
+<U24A67> \x96\x5E |0
+<U24A77> \x9F\xF9 |0
+<U24A78> \x95\xF8 |0
+<U24A79> \xFE\xA2 |0
+<U24A7A> \x8F\xE6 |0
+<U24A93> \x9D\xA4 |0
+<U24A94> \x97\x68 |0
+<U24A95> \x8E\xEC |0
+<U24A96> \x94\xBD |0
+<U24AA4> \x94\x5B |0
+<U24AA5> \x9C\xF6 |0
+<U24AA6> \xFA\xA7 |0
+<U24AA7> \x9B\xD9 |0
+<U24AB1> \xFA\x5D |0
+<U24AB2> \x96\x56 |0
+<U24AB3> \x97\x62 |0
+<U24ABA> \x94\xBA |0
+<U24ABB> \xA0\x4F |0
+<U24ABC> \x92\xD8 |0
+<U24AC7> \x94\xBB |0
+<U24AD1> \x90\xCF |0
+<U24ADF> \x94\x65 |0
+<U24AE2> \x9F\x4C |0
+<U24B6E> \x9E\xBE |0
+<U24BF5> \xFB\x6D |0
+<U24C09> \x95\xCA |0
+<U24C9E> \x9D\xC2 |0
+<U24C9F> \x97\xF8 |0
+<U24CD9> \x94\x73 |0
+<U24D06> \x94\x74 |0
+<U24DB8> \x8A\x4B |0
+<U24DEA> \x8A\x55 |0
+<U24DEB> \x8B\x69 |0
+<U24E50> \x8B\x76 |0
+<U24F0E> \xA0\xF8 |0
+<U24F5C> \x98\xDF |0
+<U24F82> \xFE\xB5 |0
+<U24F97> \x96\xFB |0
+<U24F9A> \x9B\xFB |0
+<U24FA9> \x9E\xCE |0
+<U24FC2> \x9E\x7B |0
+<U2509D> \xFE\xCE |0
+<U25148> \x9D\xFC |0
+<U2517D> \xFE\xCF |0
+<U2517E> \x8B\xA5 |0
+<U251E3> \x8A\xEC |0
+<U251E6> \xFC\xE0 |0
+<U251E7> \x94\xAD |0
+<U25220> \xFE\xD5 |0
+<U25221> \x94\xAC |0
+<U252C7> \x8A\x6F |0
+<U252D8> \x8B\xA9 |0
+<U25311> \x9D\xCB |0
+<U25313> \xFC\xE7 |0
+<U25425> \x93\xC8 |0
+<U2542F> \x91\xF0 |0
+<U25430> \x8F\xE0 |0
+<U2546C> \x90\xED |0
+<U2546E> \x9B\xDC |0
+<U2555B> \x93\xC7 |0
+<U2555C> \x92\x49 |0
+<U2555D> \x96\xE1 |0
+<U25565> \x8F\xE1 |0
+<U25566> \x9B\xE5 |0
+<U25581> \x94\xC0 |0
+<U25584> \x93\xC3 |0
+<U2558F> \x93\xC5 |0
+<U255B9> \x90\x79 |0
+<U255D5> \x97\x7B |0
+<U255DB> \x90\x7E |0
+<U255E0> \xFE\xE6 |0
+<U25635> \x9D\xB8 |0
+<U25651> \x92\x70 |0
+<U25683> \x95\xA8 |0
+<U256F6> \x98\xB9 |0
+<U25706> \x91\x40 |0
+<U2571D> \xFC\xBE |0
+<U25725> \x91\x57 |0
+<U25772> \xFA\xDF |0
+<U257C7> \x9B\xE6 |0
+<U257E0> \x8E\x44 |0
+<U257E1> \x9C\x4F |0
+<U25857> \xFE\xF4 |0
+<U25872> \x93\xDC |0
+<U258E1> \x8E\x4A |0
+<U25956> \x9D\xB9 |0
+<U259AC> \x8E\x4E |0
+<U25A9C> \x94\xE5 |0
+<U25AAE> \x9B\xF0 |0
+<U25AE9> \x95\x51 |0
+<U25B74> \x8B\xBB |0
+<U25BB3> \x94\xF0 |0
+<U25BB4> \x8E\x64 |0
+<U25BC6> \x94\xEA |0
+<U25C01> \x8E\x5B |0
+<U25C06> \x9B\xF2 |0
+<U25C4A> \x9D\xC9 |0
+<U25C65> \x8E\x6C |0
+<U25CC0> \x8F\x75 |0
+<U25CC1> \x8E\x71 |0
+<U25CFE> \x8E\x60 |0
+<U25D20> \xFD\xD8 |0
+<U25D43> \x95\x52 |0
+<U25E0E> \x95\x54 |0
+<U25E81> \x9D\xBB |0
+<U25E82> \x95\x43 |0
+<U25E83> \x92\xFE |0
+<U25EA6> \x94\xF2 |0
+<U25EBC> \x94\xF1 |0
+<U25ED7> \xA0\xEA |0
+<U25ED8> \x9D\xD2 |0
+<U25F4B> \x91\xF8 |0
+<U25FE1> \x94\x62 |0
+<U25FE2> \x9B\xA4 |0
+<U26029> \x8E\xAD |0
+<U26064> \x96\xD0 |0
+<U260A4> \x97\x57 |0
+<U260A5> \x8A\x77 |0
+<U26121> \x8E\xB5 |0
+<U26159> \xA0\x6D |0
+<U2615A> \x8E\xB6 |0
+<U2615B> \x97\x56 |0
+<U2615C> \x95\x40 |0
+<U261AD> \xA0\xF3 |0
+<U261AE> \x94\xBE |0
+<U261DD> \xFD\xDF |0
+<U26258> \x9D\xBC |0
+<U26261> \x94\xFE |0
+<U262D0> \x8E\xC0 |0
+<U26351> \x8E\xC3 |0
+<U263BE> \x96\x49 |0
+<U26410> \x90\xCC |0
+<U26411> \x9C\x60 |0
+<U26412> \x95\x4B |0
+<U26489> \x8E\xCC |0
+<U26498> \x8E\xE4 |0
+<U26512> \x9C\x49 |0
+<U26572> \x8B\x5E |0
+<U265AD> \x95\x5C |0
+<U26626> \x8E\xD9 |0
+<U266AF> \x9D\xB4 |0
+<U266B1> \x92\x5F |0
+<U266E8> \x8E\xDB |0
+<U26741> \x97\x54 |0
+<U267B3> \x9E\xD4 |0
+<U267B4> \x95\x68 |0
+<U267CC> \xA0\xC3 |0
+<U2685E> \x9C\x61 |0
+<U2686E> \x9C\x5F |0
+<U26888> \xFC\x4D |0
+<U26893> \x9E\x69 |0
+<U2690E> \xFE\xC7 |0
+<U26911> \xFE\xC6 |0
+<U269A8> \x91\x65 |0
+<U269B5> \x9C\xE7 |0
+<U269F2> \x8A\x54 |0
+<U269FA> \x9C\x6C |0
+<U26A2E> \xFE\x5D |0
+<U26A42> \x95\x6A |0
+<U26A51> \x95\x6D |0
+<U26A52> \x8E\xF0 |0
+<U26B0A> \x8E\xF6 |0
+<U26B28> \xFB\xDA |0
+<U26B50> \x8B\x4C |0
+<U26B51> \xFD\x75 |0
+<U26B52> \x9B\xDD |0
+<U26B53> \xFA\xF5 |0
+<U26B96> \x8F\x6A |0
+<U26B97> \x8F\x4E |0
+<U26BB3> \xFA\x55 |0
+<U26BF7> \x9C\x41 |0
+<U26C21> \x92\x5C |0
+<U26C7E> \xFB\x66 |0
+<U26C7F> \x8E\x65 |0
+<U26C80> \x98\x49 |0
+<U26C81> \xFB\xA8 |0
+<U26C82> \x98\x42 |0
+<U26CB7> \x97\xFB |0
+<U26CB8> \x90\xCA |0
+<U26CBD> \x9C\x5B |0
+<U26CC0> \x97\x4D |0
+<U26D22> \x9F\x4B |0
+<U26D23> \x9F\xB5 |0
+<U26D24> \x93\xD2 |0
+<U26D25> \xFD\xAA |0
+<U26D26> \x98\x40 |0
+<U26D27> \x91\x46 |0
+<U26D28> \x98\x67 |0
+<U26D29> \xFA\x5A |0
+<U26D2A> \xFB\xA9 |0
+<U26DA0> \xFC\xFD |0
+<U26DA1> \xFD\xAB |0
+<U26DA2> \x91\xBD |0
+<U26DA3> \x8F\x4C |0
+<U26DA4> \x96\xC9 |0
+<U26DA5> \x8F\x55 |0
+<U26DA6> \xFB\xAE |0
+<U26DA7> \x95\x6F |0
+<U26DDC> \xA0\xF0 |0
+<U26DEA> \x94\x6F |0
+<U26DEB> \xFD\xAC |0
+<U26DF0> \x96\xCB |0
+<U26E05> \xA0\x56 |0
+<U26E42> \x8F\x5E |0
+<U26E43> \x8F\x6C |0
+<U26E44> \x8E\xA3 |0
+<U26E45> \xFB\xB3 |0
+<U26E6E> \xFC\x53 |0
+<U26E72> \xFD\xB3 |0
+<U26E77> \x8F\x6B |0
+<U26E84> \x96\xCA |0
+<U26ED0> \x9E\x6F |0
+<U26ED1> \xA0\xC5 |0
+<U26ED2> \xFC\x78 |0
+<U26ED3> \x8E\x42 |0
+<U26ED4> \x8F\x5A |0
+<U26ED5> \x90\xC2 |0
+<U26ED6> \x8E\xA5 |0
+<U26ED7> \x90\x61 |0
+<U26F26> \x92\x4F |0
+<U26F73> \x93\x73 |0
+<U26F74> \xFD\xB5 |0
+<U26F9F> \xFE\xCC |0
+<U26FA1> \xFB\xBD |0
+<U26FDE> \x98\x43 |0
+<U26FDF> \x96\xC5 |0
+<U2700E> \x89\xBC |0
+<U27052> \x92\x4B |0
+<U27053> \x98\x4A |0
+<U270AD> \xA0\xF1 |0
+<U270AE> \x9E\xFB |0
+<U270AF> \x9C\xD2 |0
+<U270CD> \x8F\xA7 |0
+<U270F8> \xFC\x5C |0
+<U27109> \x98\x45 |0
+<U2710C> \x90\x46 |0
+<U27126> \xFE\xFA |0
+<U27127> \x95\x60 |0
+<U27164> \x9F\x48 |0
+<U27165> \x92\x47 |0
+<U27175> \x90\xFB |0
+<U2721B> \x95\x71 |0
+<U272E6> \x9C\xAC |0
+<U2739A> \x8F\xAE |0
+<U27422> \x95\x7D |0
+<U27484> \x97\xB6 |0
+<U27486> \xA0\xBD |0
+<U275E0> \x8F\xBD |0
+<U275E4> \x8F\xBF |0
+<U275FD> \x93\x69 |0
+<U275FE> \x9B\xA7 |0
+<U2760C> \xFE\xEA |0
+<U27632> \x9B\xE1 |0
+<U27639> \x8B\x41 |0
+<U27655> \x9D\xB6 |0
+<U27656> \xA0\xEB |0
+<U27657> \x9B\xA3 |0
+<U27694> \x8B\xA1 |0
+<U2770F> \x8F\xC8 |0
+<U27735> \x89\x4C |0
+<U27736> \x98\x60 |0
+<U27741> \x94\xC7 |0
+<U2775E> \x8B\x58 |0
+<U27784> \x95\xAB |0
+<U27785> \x95\xAA |0
+<U27870> \x93\xD6 |0
+<U27924> \x8F\xD1 |0
+<U27967> \x99\xD5 |0
+<U27A0E> \xFB\xC8 |0
+<U27A59> \x8F\xD7 |0
+<U27ABD> \x8F\xD2 |0
+<U27ABE> \x90\x64 |0
+<U27AF4> \x98\xB6 |0
+<U27B18> \x98\xBD |0
+<U27B38> \x8F\xDC |0
+<U27B39> \xFE\xF6 |0
+<U27B3A> \x8F\xD9 |0
+<U27BF4> \x97\xF3 |0
+<U27C12> \x9B\xF8 |0
+<U27D2F> \x9E\x6C |0
+<U27D53> \x8F\xF2 |0
+<U27D54> \x8F\xEE |0
+<U27D73> \x9E\x6E |0
+<U27D8F> \x8F\xEF |0
+<U27D98> \x8F\xF4 |0
+<U27DBD> \x8F\xF5 |0
+<U27DDC> \x95\xC2 |0
+<U27E4D> \x98\x6A |0
+<U27E4F> \x97\xCF |0
+<U28002> \x90\x41 |0
+<U28009> \x9C\xDB |0
+<U280BD> \x8B\x62 |0
+<U280BE> \x8A\x4E |0
+<U280E9> \x8A\x66 |0
+<U280F4> \x9C\xFB |0
+<U2812E> \x9C\xFC |0
+<U2816F> \x9C\xE5 |0
+<U28207> \x8B\x73 |0
+<U28256> \x8A\x61 |0
+<U282CD> \x8B\xA2 |0
+<U282E2> \x9D\xF2 |0
+<U2833A> \x8E\xCA |0
+<U28365> \x90\x4E |0
+<U2837D> \x9F\xF5 |0
+<U28412> \x90\x4F |0
+<U28482> \xFB\xFE |0
+<U2853C> \x90\x63 |0
+<U2853D> \x90\x57 |0
+<U2856C> \x90\x66 |0
+<U285F4> \xFC\xE5 |0
+<U28600> \x91\x62 |0
+<U2860B> \x90\x67 |0
+<U28625> \x8F\xA1 |0
+<U2863B> \x8F\xA2 |0
+<U286AA> \x9D\x48 |0
+<U286AB> \xFA\xD3 |0
+<U286D8> \x90\xB9 |0
+<U286E6> \x90\x6B |0
+<U28804> \xFE\x57 |0
+<U2882B> \xFE\x55 |0
+<U28933> \x90\x73 |0
+<U28948> \x9B\xEF |0
+<U28949> \x9C\xF0 |0
+<U2896C> \x91\xE0 |0
+<U2897E> \x91\xD8 |0
+<U28989> \x96\x46 |0
+<U289A8> \x93\x60 |0
+<U289AA> \xFA\x53 |0
+<U289AB> \x9C\xD3 |0
+<U289BC> \xFB\x40 |0
+<U289C0> \x8D\xE2 |0
+<U289DC> \x94\x42 |0
+<U289DE> \x90\x56 |0
+<U289E1> \x98\x65 |0
+<U289E4> \xFA\x4A |0
+<U289F9> \x95\xAF |0
+<U289FA> \x97\x5A |0
+<U289FB> \x93\x49 |0
+<U289FC> \x97\x47 |0
+<U28A0F> \xA0\xF4 |0
+<U28A16> \x97\x78 |0
+<U28A25> \x8F\xCF |0
+<U28A29> \xFC\x60 |0
+<U28A44> \x91\xDC |0
+<U28A45> \x96\x61 |0
+<U28A46> \x92\xEC |0
+<U28A47> \x93\x5D |0
+<U28A48> \x8E\xDE |0
+<U28A49> \x96\xFE |0
+<U28A4A> \xFD\x4F |0
+<U28A4B> \x95\xDE |0
+<U28A59> \x98\xB0 |0
+<U28A5A> \xA0\x40 |0
+<U28A81> \x97\xBD |0
+<U28A82> \x97\x7D |0
+<U28A83> \x97\xF5 |0
+<U28A9A> \x9B\xAC |0
+<U28A9B> \xFA\xDA |0
+<U28A9C> \x92\xC2 |0
+<U28AC6> \x90\x7B |0
+<U28ACB> \x93\xFE |0
+<U28ACC> \x94\x7B |0
+<U28ADE> \xFA\xBE |0
+<U28ADF> \xFD\x43 |0
+<U28AE0> \x90\xC6 |0
+<U28AE1> \x90\xA4 |0
+<U28AE2> \x90\xA8 |0
+<U28AE3> \x94\xA9 |0
+<U28AE5> \x90\xA9 |0
+<U28B0C> \x90\x7D |0
+<U28B21> \xFD\xBA |0
+<U28B22> \x93\xC4 |0
+<U28B2B> \xFE\xED |0
+<U28B2C> \x9D\xAB |0
+<U28B2D> \xA0\xE3 |0
+<U28B2F> \x96\x48 |0
+<U28B4C> \x8A\xA9 |0
+<U28B4E> \x9B\xC5 |0
+<U28B50> \x96\x5D |0
+<U28B63> \x97\x5F |0
+<U28B64> \x96\x5F |0
+<U28B65> \x96\x6E |0
+<U28B66> \xFB\x5D |0
+<U28B6C> \x9D\xB1 |0
+<U28B8F> \xFE\xA3 |0
+<U28B99> \x9D\xB2 |0
+<U28B9C> \x95\xAE |0
+<U28B9D> \xFC\xA3 |0
+<U28BC2> \xA0\xA2 |0
+<U28BC5> \x96\x55 |0
+<U28BD7> \x93\x41 |0
+<U28BD9> \x95\xAD |0
+<U28BDA> \x91\xD5 |0
+<U28BE7> \x97\x7A |0
+<U28BE8> \xFD\xFC |0
+<U28BE9> \x8E\x47 |0
+<U28BEA> \x93\xFD |0
+<U28BEB> \x90\xA5 |0
+<U28BEC> \x90\xAC |0
+<U28BFF> \x90\xAE |0
+<U28C1D> \x95\xE2 |0
+<U28C23> \x94\x66 |0
+<U28C2B> \x91\xB8 |0
+<U28C30> \x9C\xEC |0
+<U28C39> \x90\xAD |0
+<U28CCD> \x8A\xE3 |0
+<U28D34> \x95\xEA |0
+<U28E36> \x91\xD9 |0
+<U28E65> \x95\xF5 |0
+<U28E66> \x95\xF4 |0
+<U28EB2> \xFE\x72 |0
+<U28EB3> \x92\x7A |0
+<U28ED9> \xFE\xAC |0
+<U2908B> \x91\xC5 |0
+<U290AF> \x90\xCD |0
+<U290B0> \x95\xFE |0
+<U290B1> \x91\x59 |0
+<U290E4> \x97\xCC |0
+<U290E5> \x90\xCE |0
+<U2910D> \xFE\xFD |0
+<U29110> \x9D\x5B |0
+<U2919C> \xFD\x60 |0
+<U291A8> \x9C\xCF |0
+<U291EB> \x90\xE0 |0
+<U2941D> \x90\xF3 |0
+<U29433> \x90\xF0 |0
+<U29448> \x95\xB7 |0
+<U294D9> \x8E\x4B |0
+<U294DA> \x96\x58 |0
+<U2959E> \x9E\xCF |0
+<U295E9> \x9D\x64 |0
+<U29857> \x91\x50 |0
+<U298A4> \x9C\xC1 |0
+<U298EA> \x93\xA7 |0
+<U29903> \xA0\xEF |0
+<U29905> \x91\x51 |0
+<U2992F> \x96\xC1 |0
+<U2995D> \xFC\xA4 |0
+<U2996A> \x9D\x6A |0
+<U2999D> \x92\x4E |0
+<U29B05> \x91\x5D |0
+<U29B0E> \x9D\x6D |0
+<U29BD5> \x91\x5A |0
+<U29CAD> \x9C\xC0 |0
+<U29D3E> \x91\x6A |0
+<U29D7C> \x9E\xA6 |0
+<U29E2D> \x96\xB4 |0
+<U29E68> \x91\x72 |0
+<U29EAC> \x9E\xC8 |0
+<U29EC3> \x8B\x55 |0
+<U29F23> \x9D\x72 |0
+<U29F30> \x9E\xCC |0
+<U29FB7> \x91\x74 |0
+<U2A0E1> \x91\x77 |0
+<U2A0F3> \x96\xC0 |0
+<U2A0F8> \x8F\xB1 |0
+<U2A0FE> \x96\xB7 |0
+<U2A123> \x91\x78 |0
+<U2A150> \xFB\x77 |0
+<U2A192> \x91\x75 |0
+<U2A193> \x91\xA3 |0
+<U2A1DF> \x91\x79 |0
+<U2A220> \x91\xA4 |0
+<U2A233> \x91\xA6 |0
+<U2A29F> \x90\x52 |0
+<U2A2B2> \xA0\x45 |0
+<U2A2DF> \x9C\xDD |0
+<U2A3A9> \x89\x40 |0
+<U2A5C6> \x94\x78 |0
+<U2A6A9> \x9E\x75 |0
+<U2F840> \xA0\x47 |0
+<U2F894> \xFC\x48 |0
+<U2F8CD> \x9C\x52 |0
+<U2F994> \x8E\xFD |0
+<U2F9D4> \x8F\xF0 |0
+#
+END CHARMAP
+#
diff --git a/enc/trans/ucm/windows-950-2000.ucm b/enc/trans/ucm/windows-950-2000.ucm
new file mode 100644
index 0000000000..0f3936c8d1
--- /dev/null
+++ b/enc/trans/ucm/windows-950-2000.ucm
@@ -0,0 +1,20379 @@
+# ***************************************************************************
+# *
+# * Copyright (C) 2001-2002, International Business Machines
+# * Corporation and others. All Rights Reserved.
+# *
+# ***************************************************************************
+#
+# File created on Dec 03 13:48 Pacific Standard Time 2002
+#
+# File created by genmucm tool.
+# from windows 2000 using IMultiLanguage 5.50.4522.1800
+#
+# Table Version : 1.0
+# The 1st column is the Unicode scalar value.
+# The 2nd column is the codepage byte sequence.
+# The 3rd column is the fallback indicator.
+# The fallback indicator can have one of the following values:
+# |0 for exact 1-1 roundtrip mapping
+# |1 for the best fallback codepage byte sequence.
+# |2 for the substitution character
+# |3 for the best reverse fallback Unicode scaler value
+#
+# Encoding description: Chinese Traditional (Big5)
+# Encoding name: big5
+#
+<code_set_name> "windows-950-2000"
+<mb_cur_max> 2
+<mb_cur_min> 1
+<uconv_class> "MBCS"
+<subchar> \x3F
+<icu:charsetFamily> "ASCII"
+# Suggested ICU specific alias information
+#<icu:alias> "windows-950_VPUA"
+
+<icu:state> 0-80, 81-fe:1, ff
+<icu:state> 40-7e, 80-fe
+
+# The following was the generated state table.
+# This does not account for unassigned characters
+#<icu:state> 0-80, 81-fe:1, ff
+#<icu:state> 40-7e, a1-fe
+#
+CHARMAP
+#
+#UNICODE 950
+#_______ _________
+<U0000> \x00 |0
+<U0001> \x01 |0
+<U0002> \x02 |0
+<U0003> \x03 |0
+<U0004> \x04 |0
+<U0005> \x05 |0
+<U0006> \x06 |0
+<U0007> \x07 |0
+<U0008> \x08 |0
+<U0009> \x09 |0
+<U000A> \x0A |0
+<U000B> \x0B |0
+<U000C> \x0C |0
+<U000D> \x0D |0
+<U000E> \x0E |0
+<U000F> \x0F |0
+<U0010> \x10 |0
+<U0011> \x11 |0
+<U0012> \x12 |0
+<U0013> \x13 |0
+<U0014> \x14 |0
+<U0015> \x15 |0
+<U0016> \x16 |0
+<U0017> \x17 |0
+<U0018> \x18 |0
+<U0019> \x19 |0
+<U001A> \x1A |0
+<U001B> \x1B |0
+<U001C> \x1C |0
+<U001D> \x1D |0
+<U001E> \x1E |0
+<U001F> \x1F |0
+<U0020> \x20 |0
+<U0021> \x21 |0
+<U0022> \x22 |0
+<U0023> \x23 |0
+<U0024> \x24 |0
+<U0025> \x25 |0
+<U0026> \x26 |0
+<U0027> \x27 |0
+<U0028> \x28 |0
+<U0029> \x29 |0
+<U002A> \x2A |0
+<U002B> \x2B |0
+<U002C> \x2C |0
+<U002D> \x2D |0
+<U002E> \x2E |0
+<U002F> \x2F |0
+<U0030> \x30 |0
+<U0031> \x31 |0
+<U0032> \x32 |0
+<U0033> \x33 |0
+<U0034> \x34 |0
+<U0035> \x35 |0
+<U0036> \x36 |0
+<U0037> \x37 |0
+<U0038> \x38 |0
+<U0039> \x39 |0
+<U003A> \x3A |0
+<U003B> \x3B |0
+<U003C> \x3C |0
+<U003D> \x3D |0
+<U003E> \x3E |0
+<U003F> \x3F |0
+<U0040> \x40 |0
+<U0041> \x41 |0
+<U0042> \x42 |0
+<U0043> \x43 |0
+<U0044> \x44 |0
+<U0045> \x45 |0
+<U0046> \x46 |0
+<U0047> \x47 |0
+<U0048> \x48 |0
+<U0049> \x49 |0
+<U004A> \x4A |0
+<U004B> \x4B |0
+<U004C> \x4C |0
+<U004D> \x4D |0
+<U004E> \x4E |0
+<U004F> \x4F |0
+<U0050> \x50 |0
+<U0051> \x51 |0
+<U0052> \x52 |0
+<U0053> \x53 |0
+<U0054> \x54 |0
+<U0055> \x55 |0
+<U0056> \x56 |0
+<U0057> \x57 |0
+<U0058> \x58 |0
+<U0059> \x59 |0
+<U005A> \x5A |0
+<U005B> \x5B |0
+<U005C> \x5C |0
+<U005D> \x5D |0
+<U005E> \x5E |0
+<U005F> \x5F |0
+<U0060> \x60 |0
+<U0061> \x61 |0
+<U0062> \x62 |0
+<U0063> \x63 |0
+<U0064> \x64 |0
+<U0065> \x65 |0
+<U0066> \x66 |0
+<U0067> \x67 |0
+<U0068> \x68 |0
+<U0069> \x69 |0
+<U006A> \x6A |0
+<U006B> \x6B |0
+<U006C> \x6C |0
+<U006D> \x6D |0
+<U006E> \x6E |0
+<U006F> \x6F |0
+<U0070> \x70 |0
+<U0071> \x71 |0
+<U0072> \x72 |0
+<U0073> \x73 |0
+<U0074> \x74 |0
+<U0075> \x75 |0
+<U0076> \x76 |0
+<U0077> \x77 |0
+<U0078> \x78 |0
+<U0079> \x79 |0
+<U007A> \x7A |0
+<U007B> \x7B |0
+<U007C> \x7C |0
+<U007D> \x7D |0
+<U007E> \x7E |0
+<U007F> \x7F |0
+#<U0080> \x80 |0
+<U00A1> \x21 |1
+<U00A2> \xA2\x46 |1
+<U00A3> \xA2\x47 |1
+<U00A5> \xA2\x44 |1
+<U00A6> \x7C |1
+<U00A7> \xA1\xB1 |0
+<U00A8> \xA1\x4C |1
+<U00A9> \x63 |1
+<U00AA> \x61 |1
+<U00AD> \x2D |1
+<U00AE> \x52 |1
+<U00AF> \xA1\xC2 |0
+<U00B0> \xA2\x58 |0
+<U00B1> \xA1\xD3 |0
+<U00B2> \x32 |1
+<U00B3> \x33 |1
+<U00B4> \xA1\xA6 |1
+<U00B5> \xA3\x67 |1
+<U00B7> \xA1\x50 |0
+<U00B8> \xA1\x4D |1
+<U00B9> \x31 |1
+<U00BA> \x6F |1
+<U00C0> \x41 |1
+<U00C1> \x41 |1
+<U00C2> \x41 |1
+<U00C3> \x41 |1
+<U00C4> \x41 |1
+<U00C5> \x41 |1
+<U00C6> \x41 |1
+<U00C7> \x43 |1
+<U00C8> \x45 |1
+<U00C9> \x45 |1
+<U00CA> \x45 |1
+<U00CB> \x45 |1
+<U00CC> \x49 |1
+<U00CD> \x49 |1
+<U00CE> \x49 |1
+<U00CF> \x49 |1
+<U00D0> \x44 |1
+<U00D1> \x4E |1
+<U00D2> \x4F |1
+<U00D3> \x4F |1
+<U00D4> \x4F |1
+<U00D5> \x4F |1
+<U00D6> \x4F |1
+<U00D7> \xA1\xD1 |0
+<U00D8> \x4F |1
+<U00D9> \x55 |1
+<U00DA> \x55 |1
+<U00DB> \x55 |1
+<U00DC> \x55 |1
+<U00DD> \x59 |1
+<U00DE> \x54 |1
+<U00DF> \x73 |1
+<U00E0> \x61 |1
+<U00E1> \x61 |1
+<U00E2> \x61 |1
+<U00E3> \x61 |1
+<U00E4> \x61 |1
+<U00E5> \x61 |1
+<U00E6> \x61 |1
+<U00E7> \x63 |1
+<U00E8> \x65 |1
+<U00E9> \x65 |1
+<U00EA> \x65 |1
+<U00EB> \x65 |1
+<U00EC> \x69 |1
+<U00ED> \x69 |1
+<U00EE> \x69 |1
+<U00EF> \x69 |1
+<U00F0> \x65 |1
+<U00F1> \x6E |1
+<U00F2> \x6F |1
+<U00F3> \x6F |1
+<U00F4> \x6F |1
+<U00F5> \x6F |1
+<U00F6> \x6F |1
+<U00F7> \xA1\xD2 |0
+<U00F8> \x6F |1
+<U00F9> \x75 |1
+<U00FA> \x75 |1
+<U00FB> \x75 |1
+<U00FC> \x75 |1
+<U00FD> \x79 |1
+<U00FE> \x74 |1
+<U00FF> \x79 |1
+<U02C7> \xA3\xBE |0
+<U02C9> \xA3\xBC |0
+<U02CA> \xA3\xBD |0
+<U02CB> \xA3\xBF |0
+<U02CD> \xA1\xC5 |0
+<U02D9> \xA3\xBB |0
+<U0305> \xA1\xC2 |1
+<U0391> \xA3\x44 |0
+<U0392> \xA3\x45 |0
+<U0393> \xA3\x46 |0
+<U0394> \xA3\x47 |0
+<U0395> \xA3\x48 |0
+<U0396> \xA3\x49 |0
+<U0397> \xA3\x4A |0
+<U0398> \xA3\x4B |0
+<U0399> \xA3\x4C |0
+<U039A> \xA3\x4D |0
+<U039B> \xA3\x4E |0
+<U039C> \xA3\x4F |0
+<U039D> \xA3\x50 |0
+<U039E> \xA3\x51 |0
+<U039F> \xA3\x52 |0
+<U03A0> \xA3\x53 |0
+<U03A1> \xA3\x54 |0
+<U03A3> \xA3\x55 |0
+<U03A4> \xA3\x56 |0
+<U03A5> \xA3\x57 |0
+<U03A6> \xA3\x58 |0
+<U03A7> \xA3\x59 |0
+<U03A8> \xA3\x5A |0
+<U03A9> \xA3\x5B |0
+<U03B1> \xA3\x5C |0
+<U03B2> \xA3\x5D |0
+<U03B3> \xA3\x5E |0
+<U03B4> \xA3\x5F |0
+<U03B5> \xA3\x60 |0
+<U03B6> \xA3\x61 |0
+<U03B7> \xA3\x62 |0
+<U03B8> \xA3\x63 |0
+<U03B9> \xA3\x64 |0
+<U03BA> \xA3\x65 |0
+<U03BB> \xA3\x66 |0
+<U03BC> \xA3\x67 |0
+<U03BD> \xA3\x68 |0
+<U03BE> \xA3\x69 |0
+<U03BF> \xA3\x6A |0
+<U03C0> \xA3\x6B |0
+<U03C1> \xA3\x6C |0
+<U03C3> \xA3\x6D |0
+<U03C4> \xA3\x6E |0
+<U03C5> \xA3\x6F |0
+<U03C6> \xA3\x70 |0
+<U03C7> \xA3\x71 |0
+<U03C8> \xA3\x72 |0
+<U03C9> \xA3\x73 |0
+<U2013> \xA1\x56 |0
+<U2014> \xA1\x58 |0
+<U2015> \xA2\x77 |1
+<U2016> \xA1\xFC |1
+<U2018> \xA1\xA5 |0
+<U2019> \xA1\xA6 |0
+<U201C> \xA1\xA7 |0
+<U201D> \xA1\xA8 |0
+<U2022> \xA1\x45 |1
+<U2024> \xA3\xBB |1
+<U2025> \xA1\x4C |0
+<U2026> \xA1\x4B |0
+<U2027> \xA1\x45 |0
+<U2032> \xA1\xAC |0
+<U2033> \xA1\xB2 |1
+<U2035> \xA1\xAB |0
+<U203B> \xA1\xB0 |0
+<U203E> \xA1\xC3 |1
+<U20AC> \xA3\xE1 |0
+<U2103> \xA2\x4A |0
+<U2105> \xA1\xC1 |0
+<U2109> \xA2\x4B |0
+<U2160> \xA2\xB9 |0
+<U2161> \xA2\xBA |0
+<U2162> \xA2\xBB |0
+<U2163> \xA2\xBC |0
+<U2164> \xA2\xBD |0
+<U2165> \xA2\xBE |0
+<U2166> \xA2\xBF |0
+<U2167> \xA2\xC0 |0
+<U2168> \xA2\xC1 |0
+<U2169> \xA2\xC2 |0
+<U2190> \xA1\xF6 |0
+<U2191> \xA1\xF4 |0
+<U2192> \xA1\xF7 |0
+<U2193> \xA1\xF5 |0
+<U2196> \xA1\xF8 |0
+<U2197> \xA1\xF9 |0
+<U2198> \xA1\xFB |0
+<U2199> \xA1\xFA |0
+<U2215> \xA2\x41 |0
+<U2216> \xA2\x42 |1
+<U2218> \xA2\x58 |1
+<U221A> \xA1\xD4 |0
+<U221E> \xA1\xDB |0
+<U221F> \xA1\xE8 |0
+<U2220> \xA1\xE7 |0
+<U2223> \xA1\xFD |0
+<U2225> \xA1\xFC |0
+<U2229> \xA1\xE4 |0
+<U222A> \xA1\xE5 |0
+<U222B> \xA1\xEC |0
+<U222E> \xA1\xED |0
+<U2234> \xA1\xEF |0
+<U2235> \xA1\xEE |0
+<U2252> \xA1\xDC |0
+<U2260> \xA1\xDA |0
+<U2261> \xA1\xDD |0
+<U2263> \xA1\xDD |1
+<U2266> \xA1\xD8 |0
+<U2267> \xA1\xD9 |0
+<U2295> \xA1\xF2 |0
+<U2299> \xA1\xF3 |0
+<U22A5> \xA1\xE6 |0
+<U22BF> \xA1\xE9 |0
+<U2307> \xA1\x5B |1
+<U2500> \xA2\x77 |0
+<U2502> \xA2\x78 |0
+<U250C> \xA2\x7A |0
+<U2510> \xA2\x7B |0
+<U2514> \xA2\x7C |0
+<U2518> \xA2\x7D |0
+<U251C> \xA2\x75 |0
+<U2524> \xA2\x74 |0
+<U252C> \xA2\x73 |0
+<U2534> \xA2\x72 |0
+<U253C> \xA2\x71 |0
+<U2550> \xF9\xF9 |0
+<U2550> \xA2\xA4 |3
+<U2551> \xF9\xF8 |0
+<U2552> \xF9\xE6 |0
+<U2553> \xF9\xEF |0
+<U2554> \xF9\xDD |0
+<U2555> \xF9\xE8 |0
+<U2556> \xF9\xF1 |0
+<U2557> \xF9\xDF |0
+<U2558> \xF9\xEC |0
+<U2559> \xF9\xF5 |0
+<U255A> \xF9\xE3 |0
+<U255B> \xF9\xEE |0
+<U255C> \xF9\xF7 |0
+<U255D> \xF9\xE5 |0
+<U255E> \xF9\xE9 |0
+<U255E> \xA2\xA5 |3
+<U255F> \xF9\xF2 |0
+<U2560> \xF9\xE0 |0
+<U2561> \xF9\xEB |0
+<U2561> \xA2\xA7 |3
+<U2562> \xF9\xF4 |0
+<U2563> \xF9\xE2 |0
+<U2564> \xF9\xE7 |0
+<U2565> \xF9\xF0 |0
+<U2566> \xF9\xDE |0
+<U2567> \xF9\xED |0
+<U2568> \xF9\xF6 |0
+<U2569> \xF9\xE4 |0
+<U256A> \xF9\xEA |0
+<U256A> \xA2\xA6 |3
+<U256B> \xF9\xF3 |0
+<U256C> \xF9\xE1 |0
+<U256D> \xA2\x7E |0
+<U256D> \xF9\xFA |3
+<U256E> \xA2\xA1 |0
+<U256E> \xF9\xFB |3
+<U256F> \xA2\xA3 |0
+<U256F> \xF9\xFD |3
+<U2570> \xA2\xA2 |0
+<U2570> \xF9\xFC |3
+<U2571> \xA2\xAC |0
+<U2572> \xA2\xAD |0
+<U2573> \xA2\xAE |0
+<U2574> \xA1\x5A |0
+<U2581> \xA2\x62 |0
+<U2582> \xA2\x63 |0
+<U2583> \xA2\x64 |0
+<U2584> \xA2\x65 |0
+<U2585> \xA2\x66 |0
+<U2586> \xA2\x67 |0
+<U2587> \xA2\x68 |0
+<U2588> \xA2\x69 |0
+<U2589> \xA2\x70 |0
+<U258A> \xA2\x6F |0
+<U258B> \xA2\x6E |0
+<U258C> \xA2\x6D |0
+<U258D> \xA2\x6C |0
+<U258E> \xA2\x6B |0
+<U258F> \xA2\x6A |0
+<U2593> \xF9\xFE |0
+<U2594> \xA2\x76 |0
+<U2595> \xA2\x79 |0
+<U25A0> \xA1\xBD |0
+<U25A1> \xA1\xBC |0
+<U25B2> \xA1\xB6 |0
+<U25B3> \xA1\xB5 |0
+<U25BC> \xA1\xBF |0
+<U25BD> \xA1\xBE |0
+<U25C6> \xA1\xBB |0
+<U25C7> \xA1\xBA |0
+<U25CB> \xA1\xB3 |0
+<U25CE> \xA1\xB7 |0
+<U25CF> \xA1\xB4 |0
+<U25E2> \xA2\xA8 |0
+<U25E3> \xA2\xA9 |0
+<U25E4> \xA2\xAB |0
+<U25E5> \xA2\xAA |0
+<U2605> \xA1\xB9 |0
+<U2606> \xA1\xB8 |0
+<U2609> \xA1\xF3 |1
+<U2640> \xA1\xF0 |0
+<U2641> \xA1\xF2 |1
+<U2642> \xA1\xF1 |0
+<U3000> \xA1\x40 |0
+<U3001> \xA1\x42 |0
+<U3002> \xA1\x43 |0
+<U3003> \xA1\xB2 |0
+<U3008> \xA1\x71 |0
+<U3009> \xA1\x72 |0
+<U300A> \xA1\x6D |0
+<U300B> \xA1\x6E |0
+<U300C> \xA1\x75 |0
+<U300D> \xA1\x76 |0
+<U300E> \xA1\x79 |0
+<U300F> \xA1\x7A |0
+<U3010> \xA1\x69 |0
+<U3011> \xA1\x6A |0
+<U3012> \xA2\x45 |0
+<U3014> \xA1\x65 |0
+<U3015> \xA1\x66 |0
+<U301C> \xA1\xE3 |1
+<U301D> \xA1\xA9 |0
+<U301E> \xA1\xAA |0
+<U3021> \xA2\xC3 |0
+<U3022> \xA2\xC4 |0
+<U3023> \xA2\xC5 |0
+<U3024> \xA2\xC6 |0
+<U3025> \xA2\xC7 |0
+<U3026> \xA2\xC8 |0
+<U3027> \xA2\xC9 |0
+<U3028> \xA2\xCA |0
+<U3029> \xA2\xCB |0
+<U3030> \xA1\xCA |1
+<U3105> \xA3\x74 |0
+<U3106> \xA3\x75 |0
+<U3107> \xA3\x76 |0
+<U3108> \xA3\x77 |0
+<U3109> \xA3\x78 |0
+<U310A> \xA3\x79 |0
+<U310B> \xA3\x7A |0
+<U310C> \xA3\x7B |0
+<U310D> \xA3\x7C |0
+<U310E> \xA3\x7D |0
+<U310F> \xA3\x7E |0
+<U3110> \xA3\xA1 |0
+<U3111> \xA3\xA2 |0
+<U3112> \xA3\xA3 |0
+<U3113> \xA3\xA4 |0
+<U3114> \xA3\xA5 |0
+<U3115> \xA3\xA6 |0
+<U3116> \xA3\xA7 |0
+<U3117> \xA3\xA8 |0
+<U3118> \xA3\xA9 |0
+<U3119> \xA3\xAA |0
+<U311A> \xA3\xAB |0
+<U311B> \xA3\xAC |0
+<U311C> \xA3\xAD |0
+<U311D> \xA3\xAE |0
+<U311E> \xA3\xAF |0
+<U311F> \xA3\xB0 |0
+<U3120> \xA3\xB1 |0
+<U3121> \xA3\xB2 |0
+<U3122> \xA3\xB3 |0
+<U3123> \xA3\xB4 |0
+<U3124> \xA3\xB5 |0
+<U3125> \xA3\xB6 |0
+<U3126> \xA3\xB7 |0
+<U3127> \xA3\xB8 |0
+<U3128> \xA3\xB9 |0
+<U3129> \xA3\xBA |0
+<U3192> \xA4\x40 |1
+<U3193> \xA4\x47 |1
+<U3194> \xA4\x54 |1
+<U3195> \xA5\x7C |1
+<U3196> \xA4\x57 |1
+<U3197> \xA4\xA4 |1
+<U3198> \xA4\x55 |1
+<U3199> \xA5\xD2 |1
+<U319A> \xA4\x41 |1
+<U319B> \xA4\xFE |1
+<U319C> \xA4\x42 |1
+<U319D> \xA4\xD1 |1
+<U319E> \xA6\x61 |1
+<U319F> \xA4\x48 |1
+<U3220> \xA4\x40 |1
+<U3221> \xA4\x47 |1
+<U3222> \xA4\x54 |1
+<U3223> \xA5\x7C |1
+<U3224> \xA4\xAD |1
+<U3225> \xA4\xBB |1
+<U3226> \xA4\x43 |1
+<U3227> \xA4\x4B |1
+<U3228> \xA4\x45 |1
+<U3229> \xA4\x51 |1
+<U322A> \xA4\xEB |1
+<U322B> \xA4\xF5 |1
+<U322C> \xA4\xF4 |1
+<U322D> \xA4\xEC |1
+<U322E> \xAA\xF7 |1
+<U322F> \xA4\x67 |1
+<U3230> \xA4\xE9 |1
+<U3231> \xAE\xE8 |1
+<U3232> \xA6\xB3 |1
+<U3233> \xAA\xC0 |1
+<U3234> \xA6\x57 |1
+<U3235> \xAF\x53 |1
+<U3236> \xB0\x5D |1
+<U3237> \xAF\xAC |1
+<U3238> \xB3\xD2 |1
+<U3239> \xA5\x4E |1
+<U323A> \xA9\x49 |1
+<U323B> \xBE\xC7 |1
+<U323C> \xBA\xCA |1
+<U323D> \xA5\xF8 |1
+<U323E> \xB8\xEA |1
+<U323F> \xA8\xF3 |1
+<U3240> \xB2\xBD |1
+<U3241> \xA5\xF0 |1
+<U3242> \xA6\xDB |1
+<U3243> \xA6\xDC |1
+<U3280> \xA4\x40 |1
+<U3281> \xA4\x47 |1
+<U3282> \xA4\x54 |1
+<U3283> \xA5\x7C |1
+<U3284> \xA4\xAD |1
+<U3285> \xA4\xBB |1
+<U3286> \xA4\x43 |1
+<U3287> \xA4\x4B |1
+<U3288> \xA4\x45 |1
+<U3289> \xA4\x51 |1
+<U328A> \xA4\xEB |1
+<U328B> \xA4\xF5 |1
+<U328C> \xA4\xF4 |1
+<U328D> \xA4\xEC |1
+<U328E> \xAA\xF7 |1
+<U328F> \xA4\x67 |1
+<U3290> \xA4\xE9 |1
+<U3291> \xAE\xE8 |1
+<U3292> \xA6\xB3 |1
+<U3293> \xAA\xC0 |1
+<U3294> \xA6\x57 |1
+<U3295> \xAF\x53 |1
+<U3296> \xB0\x5D |1
+<U3297> \xAF\xAC |1
+<U3298> \xB3\xD2 |1
+<U3299> \xAF\xB5 |1
+<U329A> \xA8\x6B |1
+<U329B> \xA4\x6B |1
+<U329C> \xBE\x41 |1
+<U329D> \xC0\x75 |1
+<U329E> \xA6\x4C |1
+<U329F> \xAA\x60 |1
+<U32A0> \xB6\xB5 |1
+<U32A1> \xA5\xF0 |1
+<U32A2> \xBC\x67 |1
+<U32A3> \xA1\xC0 |0
+<U32A4> \xA4\x57 |1
+<U32A5> \xA4\xA4 |1
+<U32A6> \xA4\x55 |1
+<U32A7> \xA5\xAA |1
+<U32A8> \xA5\x6B |1
+<U32A9> \xC2\xE5 |1
+<U32AA> \xA9\x76 |1
+<U32AB> \xBE\xC7 |1
+<U32AC> \xBA\xCA |1
+<U32AD> \xA5\xF8 |1
+<U32AE> \xB8\xEA |1
+<U32AF> \xA8\xF3 |1
+<U32B0> \xA9\x5D |1
+<U338E> \xA2\x55 |0
+<U338F> \xA2\x56 |0
+<U339C> \xA2\x50 |0
+<U339D> \xA2\x51 |0
+<U339E> \xA2\x52 |0
+<U33A1> \xA2\x54 |0
+<U33C4> \xA2\x57 |0
+<U33CE> \xA2\x53 |0
+<U33D1> \xA1\xEB |0
+<U33D2> \xA1\xEA |0
+<U33D5> \xA2\x4F |0
+<U4E00> \xA4\x40 |0
+<U4E01> \xA4\x42 |0
+<U4E03> \xA4\x43 |0
+<U4E07> \xC9\x45 |0
+<U4E08> \xA4\x56 |0
+<U4E09> \xA4\x54 |0
+<U4E0A> \xA4\x57 |0
+<U4E0B> \xA4\x55 |0
+<U4E0C> \xC9\x46 |0
+<U4E0D> \xA4\xA3 |0
+<U4E0E> \xC9\x4F |0
+<U4E0F> \xC9\x4D |0
+<U4E10> \xA4\xA2 |0
+<U4E11> \xA4\xA1 |0
+<U4E14> \xA5\x42 |0
+<U4E15> \xA5\x41 |0
+<U4E16> \xA5\x40 |0
+<U4E18> \xA5\x43 |0
+<U4E19> \xA4\xFE |0
+<U4E1E> \xA5\xE0 |0
+<U4E1F> \xA5\xE1 |0
+<U4E26> \xA8\xC3 |0
+<U4E2B> \xA4\x58 |0
+<U4E2D> \xA4\xA4 |0
+<U4E2E> \xC9\x50 |0
+<U4E30> \xA4\xA5 |0
+<U4E31> \xC9\x63 |0
+<U4E32> \xA6\xEA |0
+<U4E33> \xCB\xB1 |0
+<U4E38> \xA4\x59 |0
+<U4E39> \xA4\xA6 |0
+<U4E3B> \xA5\x44 |0
+<U4E3C> \xC9\x64 |0
+<U4E42> \xC9\x40 |0
+<U4E43> \xA4\x44 |0
+<U4E45> \xA4\x5B |0
+<U4E47> \xC9\x47 |0
+<U4E48> \xA4\x5C |0
+<U4E4B> \xA4\xA7 |0
+<U4E4D> \xA5\x45 |0
+<U4E4E> \xA5\x47 |0
+<U4E4F> \xA5\x46 |0
+<U4E52> \xA5\xE2 |0
+<U4E53> \xA5\xE3 |0
+<U4E56> \xA8\xC4 |0
+<U4E58> \xAD\xBC |0
+<U4E59> \xA4\x41 |0
+<U4E5C> \xC9\x41 |0
+<U4E5D> \xA4\x45 |0
+<U4E5E> \xA4\x5E |0
+<U4E5F> \xA4\x5D |0
+<U4E69> \xA5\xE4 |0
+<U4E73> \xA8\xC5 |0
+<U4E7E> \xB0\xAE |0
+<U4E7F> \xD4\x4B |0
+<U4E82> \xB6\xC3 |0
+<U4E83> \xDC\xB1 |0
+<U4E84> \xDC\xB2 |0
+<U4E86> \xA4\x46 |0
+<U4E88> \xA4\xA9 |0
+<U4E8B> \xA8\xC6 |0
+<U4E8C> \xA4\x47 |0
+<U4E8D> \xC9\x48 |0
+<U4E8E> \xA4\x5F |0
+<U4E91> \xA4\xAA |0
+<U4E92> \xA4\xAC |0
+<U4E93> \xC9\x51 |0
+<U4E94> \xA4\xAD |0
+<U4E95> \xA4\xAB |0
+<U4E99> \xA5\xE5 |0
+<U4E9B> \xA8\xC7 |0
+<U4E9E> \xA8\xC8 |0
+<U4E9F> \xAB\x45 |0
+<U4EA1> \xA4\x60 |0
+<U4EA2> \xA4\xAE |0
+<U4EA4> \xA5\xE6 |0
+<U4EA5> \xA5\xE8 |0
+<U4EA6> \xA5\xE7 |0
+<U4EA8> \xA6\xEB |0
+<U4EAB> \xA8\xC9 |0
+<U4EAC> \xA8\xCA |0
+<U4EAD> \xAB\x46 |0
+<U4EAE> \xAB\x47 |0
+<U4EB3> \xAD\xBD |0
+<U4EB6> \xDC\xB3 |0
+<U4EB9> \xF6\xD6 |0
+<U4EBA> \xA4\x48 |0
+<U4EC0> \xA4\xB0 |0
+<U4EC1> \xA4\xAF |0
+<U4EC2> \xC9\x52 |0
+<U4EC3> \xA4\xB1 |0
+<U4EC4> \xA4\xB7 |0
+<U4EC6> \xA4\xB2 |0
+<U4EC7> \xA4\xB3 |0
+<U4EC8> \xC9\x54 |0
+<U4EC9> \xC9\x53 |0
+<U4ECA> \xA4\xB5 |0
+<U4ECB> \xA4\xB6 |0
+<U4ECD> \xA4\xB4 |0
+<U4ED4> \xA5\x4A |0
+<U4ED5> \xA5\x4B |0
+<U4ED6> \xA5\x4C |0
+<U4ED7> \xA5\x4D |0
+<U4ED8> \xA5\x49 |0
+<U4ED9> \xA5\x50 |0
+<U4EDA> \xC9\x6A |0
+<U4EDC> \xC9\x66 |0
+<U4EDD> \xC9\x69 |0
+<U4EDE> \xA5\x51 |0
+<U4EDF> \xA5\x61 |0
+<U4EE1> \xC9\x68 |0
+<U4EE3> \xA5\x4E |0
+<U4EE4> \xA5\x4F |0
+<U4EE5> \xA5\x48 |0
+<U4EE8> \xC9\x65 |0
+<U4EE9> \xC9\x67 |0
+<U4EF0> \xA5\xF5 |0
+<U4EF1> \xC9\xB0 |0
+<U4EF2> \xA5\xF2 |0
+<U4EF3> \xA5\xF6 |0
+<U4EF4> \xC9\xBA |0
+<U4EF5> \xC9\xAE |0
+<U4EF6> \xA5\xF3 |0
+<U4EF7> \xC9\xB2 |0
+<U4EFB> \xA5\xF4 |0
+<U4EFD> \xA5\xF7 |0
+<U4EFF> \xA5\xE9 |0
+<U4F00> \xC9\xB1 |0
+<U4F01> \xA5\xF8 |0
+<U4F02> \xC9\xB5 |0
+<U4F04> \xC9\xB9 |0
+<U4F05> \xC9\xB6 |0
+<U4F08> \xC9\xB3 |0
+<U4F09> \xA5\xEA |0
+<U4F0A> \xA5\xEC |0
+<U4F0B> \xA5\xF9 |0
+<U4F0D> \xA5\xEE |0
+<U4F0E> \xC9\xAB |0
+<U4F0F> \xA5\xF1 |0
+<U4F10> \xA5\xEF |0
+<U4F11> \xA5\xF0 |0
+<U4F12> \xC9\xBB |0
+<U4F13> \xC9\xB8 |0
+<U4F14> \xC9\xAF |0
+<U4F15> \xA5\xED |0
+<U4F18> \xC9\xAC |0
+<U4F19> \xA5\xEB |0
+<U4F1D> \xC9\xB4 |0
+<U4F22> \xC9\xB7 |0
+<U4F2C> \xC9\xAD |0
+<U4F2D> \xCA\x66 |0
+<U4F2F> \xA7\x42 |0
+<U4F30> \xA6\xF4 |0
+<U4F33> \xCA\x67 |0
+<U4F34> \xA6\xF1 |0
+<U4F36> \xA7\x44 |0
+<U4F38> \xA6\xF9 |0
+<U4F3A> \xA6\xF8 |0
+<U4F3B> \xCA\x5B |0
+<U4F3C> \xA6\xFC |0
+<U4F3D> \xA6\xF7 |0
+<U4F3E> \xCA\x60 |0
+<U4F3F> \xCA\x68 |0
+<U4F41> \xCA\x64 |0
+<U4F43> \xA6\xFA |0
+<U4F46> \xA6\xFD |0
+<U4F47> \xA6\xEE |0
+<U4F48> \xA7\x47 |0
+<U4F49> \xCA\x5D |0
+<U4F4C> \xCB\xBD |0
+<U4F4D> \xA6\xEC |0
+<U4F4E> \xA7\x43 |0
+<U4F4F> \xA6\xED |0
+<U4F50> \xA6\xF5 |0
+<U4F51> \xA6\xF6 |0
+<U4F52> \xCA\x62 |0
+<U4F53> \xCA\x5E |0
+<U4F54> \xA6\xFB |0
+<U4F55> \xA6\xF3 |0
+<U4F56> \xCA\x5A |0
+<U4F57> \xA6\xEF |0
+<U4F58> \xCA\x65 |0
+<U4F59> \xA7\x45 |0
+<U4F5A> \xA7\x48 |0
+<U4F5B> \xA6\xF2 |0
+<U4F5C> \xA7\x40 |0
+<U4F5D> \xA7\x46 |0
+<U4F5E> \xA6\xF0 |0
+<U4F5F> \xCA\x63 |0
+<U4F60> \xA7\x41 |0
+<U4F61> \xCA\x69 |0
+<U4F62> \xCA\x5C |0
+<U4F63> \xA6\xFE |0
+<U4F64> \xCA\x5F |0
+<U4F67> \xCA\x61 |0
+<U4F69> \xA8\xD8 |0
+<U4F6A> \xCB\xBF |0
+<U4F6B> \xCB\xCB |0
+<U4F6C> \xA8\xD0 |0
+<U4F6E> \xCB\xCC |0
+<U4F6F> \xA8\xCB |0
+<U4F70> \xA8\xD5 |0
+<U4F73> \xA8\xCE |0
+<U4F74> \xCB\xB9 |0
+<U4F75> \xA8\xD6 |0
+<U4F76> \xCB\xB8 |0
+<U4F77> \xCB\xBC |0
+<U4F78> \xCB\xC3 |0
+<U4F79> \xCB\xC1 |0
+<U4F7A> \xA8\xDE |0
+<U4F7B> \xA8\xD9 |0
+<U4F7C> \xCB\xB3 |0
+<U4F7D> \xCB\xB5 |0
+<U4F7E> \xA8\xDB |0
+<U4F7F> \xA8\xCF |0
+<U4F80> \xCB\xB6 |0
+<U4F81> \xCB\xC2 |0
+<U4F82> \xCB\xC9 |0
+<U4F83> \xA8\xD4 |0
+<U4F84> \xCB\xBB |0
+<U4F85> \xCB\xB4 |0
+<U4F86> \xA8\xD3 |0
+<U4F87> \xCB\xB7 |0
+<U4F88> \xA8\xD7 |0
+<U4F89> \xCB\xBA |0
+<U4F8B> \xA8\xD2 |0
+<U4F8D> \xA8\xCD |0
+<U4F8F> \xA8\xDC |0
+<U4F90> \xCB\xC4 |0
+<U4F91> \xA8\xDD |0
+<U4F92> \xCB\xC8 |0
+<U4F94> \xCB\xC6 |0
+<U4F95> \xCB\xCA |0
+<U4F96> \xA8\xDA |0
+<U4F97> \xCB\xBE |0
+<U4F98> \xCB\xB2 |0
+<U4F9A> \xCB\xC0 |0
+<U4F9B> \xA8\xD1 |0
+<U4F9C> \xCB\xC5 |0
+<U4F9D> \xA8\xCC |0
+<U4F9E> \xCB\xC7 |0
+<U4FAE> \xAB\x56 |0
+<U4FAF> \xAB\x4A |0
+<U4FB2> \xCD\xE0 |0
+<U4FB3> \xCD\xE8 |0
+<U4FB5> \xAB\x49 |0
+<U4FB6> \xAB\x51 |0
+<U4FB7> \xAB\x5D |0
+<U4FB9> \xCD\xEE |0
+<U4FBA> \xCD\xEC |0
+<U4FBB> \xCD\xE7 |0
+<U4FBF> \xAB\x4B |0
+<U4FC0> \xCD\xED |0
+<U4FC1> \xCD\xE3 |0
+<U4FC2> \xAB\x59 |0
+<U4FC3> \xAB\x50 |0
+<U4FC4> \xAB\x58 |0
+<U4FC5> \xCD\xDE |0
+<U4FC7> \xCD\xEA |0
+<U4FC9> \xCD\xE1 |0
+<U4FCA> \xAB\x54 |0
+<U4FCB> \xCD\xE2 |0
+<U4FCD> \xCD\xDD |0
+<U4FCE> \xAB\x5B |0
+<U4FCF> \xAB\x4E |0
+<U4FD0> \xAB\x57 |0
+<U4FD1> \xAB\x4D |0
+<U4FD3> \xCD\xDF |0
+<U4FD4> \xCD\xE4 |0
+<U4FD6> \xCD\xEB |0
+<U4FD7> \xAB\x55 |0
+<U4FD8> \xAB\x52 |0
+<U4FD9> \xCD\xE6 |0
+<U4FDA> \xAB\x5A |0
+<U4FDB> \xCD\xE9 |0
+<U4FDC> \xCD\xE5 |0
+<U4FDD> \xAB\x4F |0
+<U4FDE> \xAB\x5C |0
+<U4FDF> \xAB\x53 |0
+<U4FE0> \xAB\x4C |0
+<U4FE1> \xAB\x48 |0
+<U4FEC> \xCD\xEF |0
+<U4FEE> \xAD\xD7 |0
+<U4FEF> \xAD\xC1 |0
+<U4FF1> \xAD\xD1 |0
+<U4FF3> \xAD\xD6 |0
+<U4FF4> \xD0\xD0 |0
+<U4FF5> \xD0\xCF |0
+<U4FF6> \xD0\xD4 |0
+<U4FF7> \xD0\xD5 |0
+<U4FF8> \xAD\xC4 |0
+<U4FFA> \xAD\xCD |0
+<U4FFE> \xAD\xDA |0
+<U5000> \xAD\xCE |0
+<U5005> \xD0\xC9 |0
+<U5006> \xAD\xC7 |0
+<U5007> \xD0\xCA |0
+<U5009> \xAD\xDC |0
+<U500B> \xAD\xD3 |0
+<U500C> \xAD\xBE |0
+<U500D> \xAD\xBF |0
+<U500E> \xD0\xDD |0
+<U500F> \xB0\xBF |0
+<U5011> \xAD\xCC |0
+<U5012> \xAD\xCB |0
+<U5013> \xD0\xCB |0
+<U5014> \xAD\xCF |0
+<U5015> \xD4\x5B |0
+<U5016> \xAD\xC6 |0
+<U5017> \xD0\xD6 |0
+<U5018> \xAD\xD5 |0
+<U5019> \xAD\xD4 |0
+<U501A> \xAD\xCA |0
+<U501B> \xD0\xCE |0
+<U501C> \xD0\xD7 |0
+<U501E> \xD0\xC8 |0
+<U501F> \xAD\xC9 |0
+<U5020> \xD0\xD8 |0
+<U5021> \xAD\xD2 |0
+<U5022> \xD0\xCC |0
+<U5023> \xAD\xC0 |0
+<U5025> \xAD\xC3 |0
+<U5026> \xAD\xC2 |0
+<U5027> \xD0\xD9 |0
+<U5028> \xAD\xD0 |0
+<U5029> \xAD\xC5 |0
+<U502A> \xAD\xD9 |0
+<U502B> \xAD\xDB |0
+<U502C> \xD0\xD3 |0
+<U502D> \xAD\xD8 |0
+<U502F> \xD0\xDB |0
+<U5030> \xD0\xCD |0
+<U5031> \xD0\xDC |0
+<U5033> \xD0\xD1 |0
+<U5035> \xD0\xDA |0
+<U5037> \xD0\xD2 |0
+<U503C> \xAD\xC8 |0
+<U5040> \xD4\x63 |0
+<U5041> \xD4\x57 |0
+<U5043> \xB0\xB3 |0
+<U5045> \xD4\x5C |0
+<U5046> \xD4\x62 |0
+<U5047> \xB0\xB2 |0
+<U5048> \xD4\x55 |0
+<U5049> \xB0\xB6 |0
+<U504A> \xD4\x59 |0
+<U504B> \xD4\x52 |0
+<U504C> \xB0\xB4 |0
+<U504D> \xD4\x56 |0
+<U504E> \xB0\xB9 |0
+<U504F> \xB0\xBE |0
+<U5051> \xD4\x67 |0
+<U5053> \xD4\x51 |0
+<U5055> \xB0\xBA |0
+<U5057> \xD4\x66 |0
+<U505A> \xB0\xB5 |0
+<U505B> \xD4\x58 |0
+<U505C> \xB0\xB1 |0
+<U505D> \xD4\x53 |0
+<U505E> \xD4\x4F |0
+<U505F> \xD4\x5D |0
+<U5060> \xD4\x50 |0
+<U5061> \xD4\x4E |0
+<U5062> \xD4\x5A |0
+<U5063> \xD4\x60 |0
+<U5064> \xD4\x61 |0
+<U5065> \xB0\xB7 |0
+<U5068> \xD8\x5B |0
+<U5069> \xD4\x5E |0
+<U506A> \xD4\x4D |0
+<U506B> \xD4\x5F |0
+<U506D> \xB0\xC1 |0
+<U506E> \xD4\x64 |0
+<U506F> \xB0\xC0 |0
+<U5070> \xD4\x4C |0
+<U5072> \xD4\x54 |0
+<U5073> \xD4\x65 |0
+<U5074> \xB0\xBC |0
+<U5075> \xB0\xBB |0
+<U5076> \xB0\xB8 |0
+<U5077> \xB0\xBD |0
+<U507A> \xB0\xAF |0
+<U507D> \xB0\xB0 |0
+<U5080> \xB3\xC8 |0
+<U5082> \xD8\x5E |0
+<U5083> \xD8\x57 |0
+<U5085> \xB3\xC5 |0
+<U5087> \xD8\x5F |0
+<U508B> \xD8\x55 |0
+<U508C> \xD8\x58 |0
+<U508D> \xB3\xC4 |0
+<U508E> \xD8\x59 |0
+<U5091> \xB3\xC7 |0
+<U5092> \xD8\x5D |0
+<U5094> \xD8\x53 |0
+<U5095> \xD8\x52 |0
+<U5096> \xB3\xC9 |0
+<U5098> \xB3\xCA |0
+<U5099> \xB3\xC6 |0
+<U509A> \xB3\xCB |0
+<U509B> \xD8\x51 |0
+<U509C> \xD8\x5C |0
+<U509D> \xD8\x5A |0
+<U509E> \xD8\x54 |0
+<U50A2> \xB3\xC3 |0
+<U50A3> \xD8\x56 |0
+<U50AC> \xB6\xCA |0
+<U50AD> \xB6\xC4 |0
+<U50AE> \xDC\xB7 |0
+<U50AF> \xB6\xCD |0
+<U50B0> \xDC\xBD |0
+<U50B1> \xDC\xC0 |0
+<U50B2> \xB6\xC6 |0
+<U50B3> \xB6\xC7 |0
+<U50B4> \xDC\xBA |0
+<U50B5> \xB6\xC5 |0
+<U50B6> \xDC\xC3 |0
+<U50B7> \xB6\xCB |0
+<U50B8> \xDC\xC4 |0
+<U50BA> \xDC\xBF |0
+<U50BB> \xB6\xCC |0
+<U50BD> \xDC\xB4 |0
+<U50BE> \xB6\xC9 |0
+<U50BF> \xDC\xB5 |0
+<U50C1> \xDC\xBE |0
+<U50C2> \xDC\xBC |0
+<U50C4> \xDC\xB8 |0
+<U50C5> \xB6\xC8 |0
+<U50C6> \xDC\xB6 |0
+<U50C7> \xB6\xCE |0
+<U50C8> \xDC\xBB |0
+<U50C9> \xDC\xC2 |0
+<U50CA> \xDC\xB9 |0
+<U50CB> \xDC\xC1 |0
+<U50CE> \xB9\xB6 |0
+<U50CF> \xB9\xB3 |0
+<U50D1> \xB9\xB4 |0
+<U50D3> \xE0\xF9 |0
+<U50D4> \xE0\xF1 |0
+<U50D5> \xB9\xB2 |0
+<U50D6> \xB9\xAF |0
+<U50D7> \xE0\xF2 |0
+<U50DA> \xB9\xB1 |0
+<U50DB> \xE0\xF5 |0
+<U50DD> \xE0\xF7 |0
+<U50E0> \xE0\xFE |0
+<U50E3> \xE0\xFD |0
+<U50E4> \xE0\xF8 |0
+<U50E5> \xB9\xAE |0
+<U50E6> \xE0\xF0 |0
+<U50E7> \xB9\xAC |0
+<U50E8> \xE0\xF3 |0
+<U50E9> \xB9\xB7 |0
+<U50EA> \xE0\xF6 |0
+<U50EC> \xE0\xFA |0
+<U50ED> \xB9\xB0 |0
+<U50EE> \xB9\xAD |0
+<U50EF> \xE0\xFC |0
+<U50F0> \xE0\xFB |0
+<U50F1> \xB9\xB5 |0
+<U50F3> \xE0\xF4 |0
+<U50F5> \xBB\xF8 |0
+<U50F6> \xE4\xEC |0
+<U50F8> \xE4\xE9 |0
+<U50F9> \xBB\xF9 |0
+<U50FB> \xBB\xF7 |0
+<U50FD> \xE4\xF0 |0
+<U50FE> \xE4\xED |0
+<U50FF> \xE4\xE6 |0
+<U5100> \xBB\xF6 |0
+<U5102> \xBB\xFA |0
+<U5103> \xE4\xE7 |0
+<U5104> \xBB\xF5 |0
+<U5105> \xBB\xFD |0
+<U5106> \xE4\xEA |0
+<U5107> \xE4\xEB |0
+<U5108> \xBB\xFB |0
+<U5109> \xBB\xFC |0
+<U510A> \xE4\xF1 |0
+<U510B> \xE4\xEE |0
+<U510C> \xE4\xEF |0
+<U5110> \xBE\xAA |0
+<U5111> \xE8\xF8 |0
+<U5112> \xBE\xA7 |0
+<U5113> \xE8\xF5 |0
+<U5114> \xBE\xA9 |0
+<U5115> \xBE\xAB |0
+<U5117> \xE8\xF6 |0
+<U5118> \xBE\xA8 |0
+<U511A> \xE8\xF7 |0
+<U511C> \xE8\xF4 |0
+<U511F> \xC0\x76 |0
+<U5120> \xEC\xBD |0
+<U5121> \xC0\x77 |0
+<U5122> \xEC\xBB |0
+<U5124> \xEC\xBC |0
+<U5125> \xEC\xBA |0
+<U5126> \xEC\xB9 |0
+<U5129> \xEC\xBE |0
+<U512A> \xC0\x75 |0
+<U512D> \xEF\xB8 |0
+<U512E> \xEF\xB9 |0
+<U5130> \xE4\xE8 |0
+<U5131> \xEF\xB7 |0
+<U5132> \xC0\x78 |0
+<U5133> \xC3\x5F |0
+<U5134> \xF1\xEB |0
+<U5135> \xF1\xEC |0
+<U5137> \xC4\xD7 |0
+<U5138> \xC4\xD8 |0
+<U5139> \xF5\xC1 |0
+<U513A> \xF5\xC0 |0
+<U513B> \xC5\x6C |0
+<U513C> \xC5\x6B |0
+<U513D> \xF7\xD0 |0
+<U513F> \xA4\x49 |0
+<U5140> \xA4\x61 |0
+<U5141> \xA4\xB9 |0
+<U5143> \xA4\xB8 |0
+<U5144> \xA5\x53 |0
+<U5145> \xA5\x52 |0
+<U5146> \xA5\xFC |0
+<U5147> \xA5\xFB |0
+<U5148> \xA5\xFD |0
+<U5149> \xA5\xFA |0
+<U514B> \xA7\x4A |0
+<U514C> \xA7\x49 |0
+<U514D> \xA7\x4B |0
+<U5152> \xA8\xE0 |0
+<U5154> \xA8\xDF |0
+<U5155> \xA8\xE1 |0
+<U5157> \xAB\x5E |0
+<U5159> \xA2\x59 |0
+<U515A> \xD0\xDE |0
+<U515B> \xA2\x5A |0
+<U515C> \xB0\xC2 |0
+<U515D> \xA2\x5C |0
+<U515E> \xA2\x5B |0
+<U515F> \xD8\x60 |0
+<U5161> \xA2\x5D |0
+<U5162> \xB9\xB8 |0
+<U5163> \xA2\x5E |0
+<U5165> \xA4\x4A |0
+<U5167> \xA4\xBA |0
+<U5168> \xA5\xFE |0
+<U5169> \xA8\xE2 |0
+<U516B> \xA4\x4B |0
+<U516C> \xA4\xBD |0
+<U516D> \xA4\xBB |0
+<U516E> \xA4\xBC |0
+<U5171> \xA6\x40 |0
+<U5175> \xA7\x4C |0
+<U5176> \xA8\xE4 |0
+<U5177> \xA8\xE3 |0
+<U5178> \xA8\xE5 |0
+<U517C> \xAD\xDD |0
+<U5180> \xBE\xAC |0
+<U5187> \xC9\x4E |0
+<U5189> \xA5\x54 |0
+<U518A> \xA5\x55 |0
+<U518D> \xA6\x41 |0
+<U518F> \xCA\x6A |0
+<U5191> \xAB\x60 |0
+<U5192> \xAB\x5F |0
+<U5193> \xD0\xE0 |0
+<U5194> \xD0\xDF |0
+<U5195> \xB0\xC3 |0
+<U5197> \xA4\xBE |0
+<U5198> \xC9\x55 |0
+<U519E> \xCB\xCD |0
+<U51A0> \xAB\x61 |0
+<U51A2> \xAD\xE0 |0
+<U51A4> \xAD\xDE |0
+<U51A5> \xAD\xDF |0
+<U51AA> \xBE\xAD |0
+<U51AC> \xA5\x56 |0
+<U51B0> \xA6\x42 |0
+<U51B1> \xC9\xBC |0
+<U51B6> \xA7\x4D |0
+<U51B7> \xA7\x4E |0
+<U51B9> \xCA\x6B |0
+<U51BC> \xCB\xCE |0
+<U51BD> \xA8\xE6 |0
+<U51BE> \xCB\xCF |0
+<U51C4> \xD0\xE2 |0
+<U51C5> \xD0\xE3 |0
+<U51C6> \xAD\xE3 |0
+<U51C8> \xD0\xE4 |0
+<U51CA> \xD0\xE1 |0
+<U51CB> \xAD\xE4 |0
+<U51CC> \xAD\xE2 |0
+<U51CD> \xAD\xE1 |0
+<U51CE> \xD0\xE5 |0
+<U51D0> \xD4\x68 |0
+<U51D4> \xD8\x61 |0
+<U51D7> \xDC\xC5 |0
+<U51D8> \xE1\x40 |0
+<U51DC> \xBB\xFE |0
+<U51DD> \xBE\xAE |0
+<U51DE> \xE8\xF9 |0
+<U51E0> \xA4\x4C |0
+<U51E1> \xA4\x5A |0
+<U51F0> \xB0\xC4 |0
+<U51F1> \xB3\xCD |0
+<U51F3> \xB9\xB9 |0
+<U51F5> \xC9\x42 |0
+<U51F6> \xA4\xBF |0
+<U51F8> \xA5\x59 |0
+<U51F9> \xA5\x57 |0
+<U51FA> \xA5\x58 |0
+<U51FD> \xA8\xE7 |0
+<U5200> \xA4\x4D |0
+<U5201> \xA4\x4E |0
+<U5203> \xA4\x62 |0
+<U5206> \xA4\xC0 |0
+<U5207> \xA4\xC1 |0
+<U5208> \xA4\xC2 |0
+<U5209> \xC9\xBE |0
+<U520A> \xA5\x5A |0
+<U520C> \xC9\x6B |0
+<U520E> \xA6\x46 |0
+<U5210> \xC9\xBF |0
+<U5211> \xA6\x44 |0
+<U5212> \xA6\x45 |0
+<U5213> \xC9\xBD |0
+<U5216> \xA6\x47 |0
+<U5217> \xA6\x43 |0
+<U521C> \xCA\x6C |0
+<U521D> \xAA\xEC |0
+<U521E> \xCA\x6D |0
+<U5221> \xCA\x6E |0
+<U5224> \xA7\x50 |0
+<U5225> \xA7\x4F |0
+<U5228> \xA7\x53 |0
+<U5229> \xA7\x51 |0
+<U522A> \xA7\x52 |0
+<U522E> \xA8\xED |0
+<U5230> \xA8\xEC |0
+<U5231> \xCB\xD4 |0
+<U5232> \xCB\xD1 |0
+<U5233> \xCB\xD2 |0
+<U5235> \xCB\xD0 |0
+<U5236> \xA8\xEE |0
+<U5237> \xA8\xEA |0
+<U5238> \xA8\xE9 |0
+<U523A> \xA8\xEB |0
+<U523B> \xA8\xE8 |0
+<U5241> \xA8\xEF |0
+<U5243> \xAB\x63 |0
+<U5244> \xCD\xF0 |0
+<U5246> \xCB\xD3 |0
+<U5247> \xAB\x68 |0
+<U5249> \xCD\xF1 |0
+<U524A> \xAB\x64 |0
+<U524B> \xAB\x67 |0
+<U524C> \xAB\x66 |0
+<U524D> \xAB\x65 |0
+<U524E> \xAB\x62 |0
+<U5252> \xD0\xE8 |0
+<U5254> \xAD\xE7 |0
+<U5255> \xD0\xEB |0
+<U5256> \xAD\xE5 |0
+<U525A> \xD0\xE7 |0
+<U525B> \xAD\xE8 |0
+<U525C> \xAD\xE6 |0
+<U525D> \xAD\xE9 |0
+<U525E> \xD0\xE9 |0
+<U525F> \xD0\xEA |0
+<U5261> \xD0\xE6 |0
+<U5262> \xD0\xEC |0
+<U5269> \xB3\xD1 |0
+<U526A> \xB0\xC5 |0
+<U526B> \xD4\x69 |0
+<U526C> \xD4\x6B |0
+<U526D> \xD4\x6A |0
+<U526E> \xD4\x6C |0
+<U526F> \xB0\xC6 |0
+<U5272> \xB3\xCE |0
+<U5274> \xB3\xCF |0
+<U5275> \xB3\xD0 |0
+<U5277> \xB6\xD0 |0
+<U5278> \xDC\xC7 |0
+<U527A> \xDC\xC6 |0
+<U527B> \xDC\xC8 |0
+<U527C> \xDC\xC9 |0
+<U527D> \xB6\xD1 |0
+<U527F> \xB6\xCF |0
+<U5280> \xE1\x41 |0
+<U5281> \xE1\x42 |0
+<U5282> \xB9\xBB |0
+<U5283> \xB9\xBA |0
+<U5284> \xE3\x5A |0
+<U5287> \xBC\x40 |0
+<U5288> \xBC\x41 |0
+<U5289> \xBC\x42 |0
+<U528A> \xBC\x44 |0
+<U528B> \xE4\xF2 |0
+<U528C> \xE4\xF3 |0
+<U528D> \xBC\x43 |0
+<U5291> \xBE\xAF |0
+<U5293> \xBE\xB0 |0
+<U5296> \xF1\xED |0
+<U5297> \xF5\xC3 |0
+<U5298> \xF5\xC2 |0
+<U5299> \xF7\xD1 |0
+<U529B> \xA4\x4F |0
+<U529F> \xA5\x5C |0
+<U52A0> \xA5\x5B |0
+<U52A3> \xA6\x48 |0
+<U52A6> \xC9\xC0 |0
+<U52A9> \xA7\x55 |0
+<U52AA> \xA7\x56 |0
+<U52AB> \xA7\x54 |0
+<U52AC> \xA7\x57 |0
+<U52AD> \xCA\x6F |0
+<U52AE> \xCA\x70 |0
+<U52BB> \xA8\xF1 |0
+<U52BC> \xCB\xD5 |0
+<U52BE> \xA8\xF0 |0
+<U52C0> \xCD\xF2 |0
+<U52C1> \xAB\x6C |0
+<U52C2> \xCD\xF3 |0
+<U52C3> \xAB\x6B |0
+<U52C7> \xAB\x69 |0
+<U52C9> \xAB\x6A |0
+<U52CD> \xD0\xED |0
+<U52D2> \xB0\xC7 |0
+<U52D3> \xD4\x6E |0
+<U52D5> \xB0\xCA |0
+<U52D6> \xD4\x6D |0
+<U52D7> \xB1\xE5 |0
+<U52D8> \xB0\xC9 |0
+<U52D9> \xB0\xC8 |0
+<U52DB> \xB3\xD4 |0
+<U52DD> \xB3\xD3 |0
+<U52DE> \xB3\xD2 |0
+<U52DF> \xB6\xD2 |0
+<U52E2> \xB6\xD5 |0
+<U52E3> \xB6\xD6 |0
+<U52E4> \xB6\xD4 |0
+<U52E6> \xB6\xD3 |0
+<U52E9> \xE1\x43 |0
+<U52EB> \xE1\x44 |0
+<U52EF> \xE4\xF5 |0
+<U52F0> \xBC\x45 |0
+<U52F1> \xE4\xF4 |0
+<U52F3> \xBE\xB1 |0
+<U52F4> \xEC\xBF |0
+<U52F5> \xC0\x79 |0
+<U52F7> \xF1\xEE |0
+<U52F8> \xC4\x55 |0
+<U52FA> \xA4\x63 |0
+<U52FB> \xA4\xC3 |0
+<U52FC> \xC9\x56 |0
+<U52FE> \xA4\xC4 |0
+<U52FF> \xA4\xC5 |0
+<U5305> \xA5\x5D |0
+<U5306> \xA5\x5E |0
+<U5308> \xA6\x49 |0
+<U5309> \xCA\x71 |0
+<U530A> \xCB\xD6 |0
+<U530B> \xCB\xD7 |0
+<U530D> \xAB\x6D |0
+<U530E> \xD0\xEE |0
+<U530F> \xB0\xCC |0
+<U5310> \xB0\xCB |0
+<U5311> \xD8\x63 |0
+<U5312> \xD8\x62 |0
+<U5315> \xA4\x50 |0
+<U5316> \xA4\xC6 |0
+<U5317> \xA5\x5F |0
+<U5319> \xB0\xCD |0
+<U531A> \xC9\x43 |0
+<U531C> \xC9\x6C |0
+<U531D> \xA5\x60 |0
+<U531F> \xC9\xC2 |0
+<U5320> \xA6\x4B |0
+<U5321> \xA6\x4A |0
+<U5322> \xC9\xC1 |0
+<U5323> \xA7\x58 |0
+<U532A> \xAD\xEA |0
+<U532D> \xD4\x6F |0
+<U532F> \xB6\xD7 |0
+<U5330> \xE1\x45 |0
+<U5331> \xB9\xBC |0
+<U5334> \xE8\xFA |0
+<U5337> \xF3\xFD |0
+<U5339> \xA4\xC7 |0
+<U533C> \xCB\xD8 |0
+<U533D> \xCD\xF4 |0
+<U533E> \xB0\xD0 |0
+<U533F> \xB0\xCE |0
+<U5340> \xB0\xCF |0
+<U5341> \xA4\x51 |0
+<U5341> \xA2\xCC |3
+<U5343> \xA4\x64 |0
+<U5344> \xA2\xCD |0
+<U5345> \xA4\xCA |0
+<U5345> \xA2\xCE |3
+<U5347> \xA4\xC9 |0
+<U5348> \xA4\xC8 |0
+<U5349> \xA5\x63 |0
+<U534A> \xA5\x62 |0
+<U534C> \xC9\x6D |0
+<U534D> \xC9\xC3 |0
+<U5351> \xA8\xF5 |0
+<U5352> \xA8\xF2 |0
+<U5353> \xA8\xF4 |0
+<U5354> \xA8\xF3 |0
+<U5357> \xAB\x6E |0
+<U535A> \xB3\xD5 |0
+<U535C> \xA4\x52 |0
+<U535E> \xA4\xCB |0
+<U5360> \xA5\x65 |0
+<U5361> \xA5\x64 |0
+<U5363> \xCA\x72 |0
+<U5366> \xA8\xF6 |0
+<U536C> \xC9\x57 |0
+<U536E> \xA5\x67 |0
+<U536F> \xA5\x66 |0
+<U5370> \xA6\x4C |0
+<U5371> \xA6\x4D |0
+<U5372> \xCA\x73 |0
+<U5373> \xA7\x59 |0
+<U5375> \xA7\x5A |0
+<U5377> \xA8\xF7 |0
+<U5378> \xA8\xF8 |0
+<U5379> \xA8\xF9 |0
+<U537B> \xAB\x6F |0
+<U537C> \xCD\xF5 |0
+<U537F> \xAD\xEB |0
+<U5382> \xC9\x44 |0
+<U5384> \xA4\xCC |0
+<U538A> \xC9\xC4 |0
+<U538E> \xCA\x74 |0
+<U538F> \xCA\x75 |0
+<U5392> \xCB\xD9 |0
+<U5394> \xCB\xDA |0
+<U5396> \xCD\xF7 |0
+<U5397> \xCD\xF6 |0
+<U5398> \xCD\xF9 |0
+<U5399> \xCD\xF8 |0
+<U539A> \xAB\x70 |0
+<U539C> \xD4\x70 |0
+<U539D> \xAD\xED |0
+<U539E> \xD0\xEF |0
+<U539F> \xAD\xEC |0
+<U53A4> \xD8\x64 |0
+<U53A5> \xB3\xD6 |0
+<U53A7> \xD8\x65 |0
+<U53AC> \xE1\x46 |0
+<U53AD> \xB9\xBD |0
+<U53B2> \xBC\x46 |0
+<U53B4> \xF1\xEF |0
+<U53B9> \xC9\x58 |0
+<U53BB> \xA5\x68 |0
+<U53C3> \xB0\xD1 |0
+<U53C8> \xA4\x53 |0
+<U53C9> \xA4\x65 |0
+<U53CA> \xA4\xCE |0
+<U53CB> \xA4\xCD |0
+<U53CD> \xA4\xCF |0
+<U53D4> \xA8\xFB |0
+<U53D6> \xA8\xFA |0
+<U53D7> \xA8\xFC |0
+<U53DB> \xAB\x71 |0
+<U53DF> \xAD\xEE |0
+<U53E1> \xE8\xFB |0
+<U53E2> \xC2\x4F |0
+<U53E3> \xA4\x66 |0
+<U53E4> \xA5\x6A |0
+<U53E5> \xA5\x79 |0
+<U53E6> \xA5\x74 |0
+<U53E8> \xA5\x6F |0
+<U53E9> \xA5\x6E |0
+<U53EA> \xA5\x75 |0
+<U53EB> \xA5\x73 |0
+<U53EC> \xA5\x6C |0
+<U53ED> \xA5\x7A |0
+<U53EE> \xA5\x6D |0
+<U53EF> \xA5\x69 |0
+<U53F0> \xA5\x78 |0
+<U53F1> \xA5\x77 |0
+<U53F2> \xA5\x76 |0
+<U53F3> \xA5\x6B |0
+<U53F5> \xA5\x72 |0
+<U53F8> \xA5\x71 |0
+<U53FB> \xA5\x7B |0
+<U53FC> \xA5\x70 |0
+<U5401> \xA6\x53 |0
+<U5403> \xA6\x59 |0
+<U5404> \xA6\x55 |0
+<U5406> \xA6\x5B |0
+<U5407> \xC9\xC5 |0
+<U5408> \xA6\x58 |0
+<U5409> \xA6\x4E |0
+<U540A> \xA6\x51 |0
+<U540B> \xA6\x54 |0
+<U540C> \xA6\x50 |0
+<U540D> \xA6\x57 |0
+<U540E> \xA6\x5A |0
+<U540F> \xA6\x4F |0
+<U5410> \xA6\x52 |0
+<U5411> \xA6\x56 |0
+<U5412> \xA6\x5C |0
+<U5418> \xCA\x7E |0
+<U5419> \xCA\x7B |0
+<U541B> \xA7\x67 |0
+<U541C> \xCA\x7C |0
+<U541D> \xA7\x5B |0
+<U541E> \xA7\x5D |0
+<U541F> \xA7\x75 |0
+<U5420> \xA7\x70 |0
+<U5424> \xCA\xA5 |0
+<U5425> \xCA\x7D |0
+<U5426> \xA7\x5F |0
+<U5427> \xA7\x61 |0
+<U5428> \xCA\xA4 |0
+<U5429> \xA7\x68 |0
+<U542A> \xCA\x78 |0
+<U542B> \xA7\x74 |0
+<U542C> \xA7\x76 |0
+<U542D> \xA7\x5C |0
+<U542E> \xA7\x6D |0
+<U5430> \xCA\x76 |0
+<U5431> \xA7\x73 |0
+<U5433> \xA7\x64 |0
+<U5435> \xA7\x6E |0
+<U5436> \xA7\x6F |0
+<U5437> \xCA\x77 |0
+<U5438> \xA7\x6C |0
+<U5439> \xA7\x6A |0
+<U543B> \xA7\x6B |0
+<U543C> \xA7\x71 |0
+<U543D> \xCA\xA1 |0
+<U543E> \xA7\x5E |0
+<U5440> \xA7\x72 |0
+<U5441> \xCA\xA3 |0
+<U5442> \xA7\x66 |0
+<U5443> \xA7\x63 |0
+<U5445> \xCA\x7A |0
+<U5446> \xA7\x62 |0
+<U5447> \xCA\xA6 |0
+<U5448> \xA7\x65 |0
+<U544A> \xA7\x69 |0
+<U544E> \xA7\x60 |0
+<U544F> \xCA\xA2 |0
+<U5454> \xCA\x79 |0
+<U5460> \xCB\xEB |0
+<U5461> \xCB\xEA |0
+<U5462> \xA9\x4F |0
+<U5463> \xCB\xED |0
+<U5464> \xCB\xEF |0
+<U5465> \xCB\xE4 |0
+<U5466> \xCB\xE7 |0
+<U5467> \xCB\xEE |0
+<U5468> \xA9\x50 |0
+<U546B> \xCB\xE1 |0
+<U546C> \xCB\xE5 |0
+<U546F> \xCB\xE9 |0
+<U5470> \xCE\x49 |0
+<U5471> \xA9\x4B |0
+<U5472> \xCE\x4D |0
+<U5473> \xA8\xFD |0
+<U5474> \xCB\xE6 |0
+<U5475> \xA8\xFE |0
+<U5476> \xA9\x4C |0
+<U5477> \xA9\x45 |0
+<U5478> \xA9\x41 |0
+<U547A> \xCB\xE2 |0
+<U547B> \xA9\x44 |0
+<U547C> \xA9\x49 |0
+<U547D> \xA9\x52 |0
+<U547E> \xCB\xE3 |0
+<U547F> \xCB\xDC |0
+<U5480> \xA9\x43 |0
+<U5481> \xCB\xDD |0
+<U5482> \xCB\xDF |0
+<U5484> \xA9\x46 |0
+<U5486> \xA9\x48 |0
+<U5487> \xCB\xDB |0
+<U5488> \xCB\xE0 |0
+<U548B> \xA9\x51 |0
+<U548C> \xA9\x4D |0
+<U548D> \xCB\xE8 |0
+<U548E> \xA9\x53 |0
+<U5490> \xA9\x4A |0
+<U5491> \xCB\xDE |0
+<U5492> \xA9\x47 |0
+<U5495> \xA9\x42 |0
+<U5496> \xA9\x40 |0
+<U5498> \xCB\xEC |0
+<U549A> \xA9\x4E |0
+<U54A0> \xCE\x48 |0
+<U54A1> \xCD\xFB |0
+<U54A2> \xCE\x4B |0
+<U54A5> \xCD\xFD |0
+<U54A6> \xAB\x78 |0
+<U54A7> \xAB\xA8 |0
+<U54A8> \xAB\x74 |0
+<U54A9> \xAB\xA7 |0
+<U54AA> \xAB\x7D |0
+<U54AB> \xAB\xA4 |0
+<U54AC> \xAB\x72 |0
+<U54AD> \xCD\xFC |0
+<U54AE> \xCE\x43 |0
+<U54AF> \xAB\xA3 |0
+<U54B0> \xCE\x4F |0
+<U54B1> \xAB\xA5 |0
+<U54B3> \xAB\x79 |0
+<U54B6> \xCE\x45 |0
+<U54B7> \xCE\x42 |0
+<U54B8> \xAB\x77 |0
+<U54BA> \xCD\xFA |0
+<U54BB> \xAB\xA6 |0
+<U54BC> \xCE\x4A |0
+<U54BD> \xAB\x7C |0
+<U54BE> \xCE\x4C |0
+<U54BF> \xAB\xA9 |0
+<U54C0> \xAB\x73 |0
+<U54C1> \xAB\x7E |0
+<U54C2> \xAB\x7B |0
+<U54C3> \xCE\x40 |0
+<U54C4> \xAB\xA1 |0
+<U54C5> \xCE\x46 |0
+<U54C6> \xCE\x47 |0
+<U54C7> \xAB\x7A |0
+<U54C8> \xAB\xA2 |0
+<U54C9> \xAB\x76 |0
+<U54CE> \xAB\x75 |0
+<U54CF> \xCD\xFE |0
+<U54D6> \xCE\x44 |0
+<U54DE> \xCE\x4E |0
+<U54E0> \xD1\x44 |0
+<U54E1> \xAD\xFB |0
+<U54E2> \xD0\xF1 |0
+<U54E4> \xD0\xF6 |0
+<U54E5> \xAD\xF4 |0
+<U54E6> \xAE\x40 |0
+<U54E7> \xD0\xF4 |0
+<U54E8> \xAD\xEF |0
+<U54E9> \xAD\xF9 |0
+<U54EA> \xAD\xFE |0
+<U54EB> \xD0\xFB |0
+<U54ED> \xAD\xFA |0
+<U54EE> \xAD\xFD |0
+<U54F1> \xD0\xFE |0
+<U54F2> \xAD\xF5 |0
+<U54F3> \xD0\xF5 |0
+<U54F7> \xD1\x42 |0
+<U54F8> \xD1\x43 |0
+<U54FA> \xAD\xF7 |0
+<U54FB> \xD1\x41 |0
+<U54FC> \xAD\xF3 |0
+<U54FD> \xAE\x43 |0
+<U54FF> \xD0\xF8 |0
+<U5501> \xAD\xF1 |0
+<U5503> \xD1\x46 |0
+<U5504> \xD0\xF9 |0
+<U5505> \xD0\xFD |0
+<U5506> \xAD\xF6 |0
+<U5507> \xAE\x42 |0
+<U5508> \xD0\xFA |0
+<U5509> \xAD\xFC |0
+<U550A> \xD1\x40 |0
+<U550B> \xD1\x47 |0
+<U550C> \xD4\xA1 |0
+<U550E> \xD1\x45 |0
+<U550F> \xAE\x44 |0
+<U5510> \xAD\xF0 |0
+<U5511> \xD0\xFC |0
+<U5512> \xD0\xF3 |0
+<U5514> \xAD\xF8 |0
+<U5517> \xD0\xF2 |0
+<U551A> \xD0\xF7 |0
+<U5526> \xD0\xF0 |0
+<U5527> \xAE\x41 |0
+<U552A> \xD4\x77 |0
+<U552C> \xB0\xE4 |0
+<U552D> \xD4\xA7 |0
+<U552E> \xB0\xE2 |0
+<U552F> \xB0\xDF |0
+<U5530> \xD4\x7C |0
+<U5531> \xB0\xDB |0
+<U5532> \xD4\xA2 |0
+<U5533> \xB0\xE6 |0
+<U5534> \xD4\x76 |0
+<U5535> \xD4\x7B |0
+<U5536> \xD4\x7A |0
+<U5537> \xAD\xF2 |0
+<U5538> \xB0\xE1 |0
+<U5539> \xD4\xA5 |0
+<U553B> \xD4\xA8 |0
+<U553C> \xD4\x73 |0
+<U553E> \xB3\xE8 |0
+<U5540> \xD4\xA9 |0
+<U5541> \xB0\xE7 |0
+<U5543> \xB0\xD9 |0
+<U5544> \xB0\xD6 |0
+<U5545> \xD4\x7E |0
+<U5546> \xB0\xD3 |0
+<U5548> \xD4\xA6 |0
+<U554A> \xB0\xDA |0
+<U554B> \xD4\xAA |0
+<U554D> \xD4\x74 |0
+<U554E> \xD4\xA4 |0
+<U554F> \xB0\xDD |0
+<U5550> \xD4\x75 |0
+<U5551> \xD4\x78 |0
+<U5552> \xD4\x7D |0
+<U5555> \xB0\xDE |0
+<U5556> \xB0\xDC |0
+<U5557> \xB0\xE8 |0
+<U555C> \xB0\xE3 |0
+<U555E> \xB0\xD7 |0
+<U555F> \xB1\xD2 |0
+<U5561> \xB0\xD8 |0
+<U5562> \xD4\x79 |0
+<U5563> \xB0\xE5 |0
+<U5564> \xB0\xE0 |0
+<U5565> \xD4\xA3 |0
+<U5566> \xB0\xD5 |0
+<U556A> \xB0\xD4 |0
+<U5575> \xD4\x71 |0
+<U5576> \xD4\x72 |0
+<U5577> \xD8\x6A |0
+<U557B> \xB3\xD7 |0
+<U557C> \xB3\xDA |0
+<U557D> \xD8\x75 |0
+<U557E> \xB3\xEE |0
+<U557F> \xD8\x78 |0
+<U5580> \xB3\xD8 |0
+<U5581> \xD8\x71 |0
+<U5582> \xB3\xDE |0
+<U5583> \xB3\xE4 |0
+<U5584> \xB5\xBD |0
+<U5587> \xB3\xE2 |0
+<U5588> \xD8\x6E |0
+<U5589> \xB3\xEF |0
+<U558A> \xB3\xDB |0
+<U558B> \xB3\xE3 |0
+<U558C> \xD8\x76 |0
+<U558D> \xDC\xD7 |0
+<U558E> \xD8\x7B |0
+<U558F> \xD8\x6F |0
+<U5591> \xD8\x66 |0
+<U5592> \xD8\x73 |0
+<U5593> \xD8\x6D |0
+<U5594> \xB3\xE1 |0
+<U5595> \xD8\x79 |0
+<U5598> \xB3\xDD |0
+<U5599> \xB3\xF1 |0
+<U559A> \xB3\xEA |0
+<U559C> \xB3\xDF |0
+<U559D> \xB3\xDC |0
+<U559F> \xB3\xE7 |0
+<U55A1> \xD8\x7A |0
+<U55A2> \xD8\x6C |0
+<U55A3> \xD8\x72 |0
+<U55A4> \xD8\x74 |0
+<U55A5> \xD8\x68 |0
+<U55A6> \xD8\x77 |0
+<U55A7> \xB3\xD9 |0
+<U55A8> \xD8\x67 |0
+<U55AA> \xB3\xE0 |0
+<U55AB> \xB3\xF0 |0
+<U55AC> \xB3\xEC |0
+<U55AD> \xD8\x69 |0
+<U55AE> \xB3\xE6 |0
+<U55B1> \xB3\xED |0
+<U55B2> \xB3\xE9 |0
+<U55B3> \xB3\xE5 |0
+<U55B5> \xD8\x70 |0
+<U55BB> \xB3\xEB |0
+<U55BF> \xDC\xD5 |0
+<U55C0> \xDC\xD1 |0
+<U55C2> \xDC\xE0 |0
+<U55C3> \xDC\xCA |0
+<U55C4> \xDC\xD3 |0
+<U55C5> \xB6\xE5 |0
+<U55C6> \xB6\xE6 |0
+<U55C7> \xB6\xDE |0
+<U55C8> \xDC\xDC |0
+<U55C9> \xB6\xE8 |0
+<U55CA> \xDC\xCF |0
+<U55CB> \xDC\xCE |0
+<U55CC> \xDC\xCC |0
+<U55CD> \xDC\xDE |0
+<U55CE> \xB6\xDC |0
+<U55CF> \xDC\xD8 |0
+<U55D0> \xDC\xCD |0
+<U55D1> \xB6\xDF |0
+<U55D2> \xDC\xD6 |0
+<U55D3> \xB6\xDA |0
+<U55D4> \xDC\xD2 |0
+<U55D5> \xDC\xD9 |0
+<U55D6> \xDC\xDB |0
+<U55D9> \xDC\xDF |0
+<U55DA> \xB6\xE3 |0
+<U55DB> \xDC\xCB |0
+<U55DC> \xB6\xDD |0
+<U55DD> \xDC\xD0 |0
+<U55DF> \xB6\xD8 |0
+<U55E1> \xB6\xE4 |0
+<U55E2> \xDC\xDA |0
+<U55E3> \xB6\xE0 |0
+<U55E4> \xB6\xE1 |0
+<U55E5> \xB6\xE7 |0
+<U55E6> \xB6\xDB |0
+<U55E7> \xA2\x5F |0
+<U55E8> \xB6\xD9 |0
+<U55E9> \xDC\xD4 |0
+<U55EF> \xB6\xE2 |0
+<U55F2> \xDC\xDD |0
+<U55F6> \xB9\xCD |0
+<U55F7> \xB9\xC8 |0
+<U55F9> \xE1\x55 |0
+<U55FA> \xE1\x51 |0
+<U55FC> \xE1\x4B |0
+<U55FD> \xB9\xC2 |0
+<U55FE> \xB9\xBE |0
+<U55FF> \xE1\x54 |0
+<U5600> \xB9\xBF |0
+<U5601> \xE1\x4E |0
+<U5602> \xE1\x50 |0
+<U5604> \xE1\x53 |0
+<U5606> \xB9\xC4 |0
+<U5608> \xB9\xCB |0
+<U5609> \xB9\xC5 |0
+<U560C> \xE1\x49 |0
+<U560D> \xB9\xC6 |0
+<U560E> \xB9\xC7 |0
+<U560F> \xE1\x4C |0
+<U5610> \xB9\xCC |0
+<U5612> \xE1\x4A |0
+<U5613> \xE1\x4F |0
+<U5614> \xB9\xC3 |0
+<U5615> \xE1\x48 |0
+<U5616> \xB9\xC9 |0
+<U5617> \xB9\xC1 |0
+<U561B> \xB9\xC0 |0
+<U561C> \xE1\x4D |0
+<U561D> \xE1\x52 |0
+<U561F> \xB9\xCA |0
+<U5627> \xE1\x47 |0
+<U5629> \xBC\x4D |0
+<U562A> \xE5\x47 |0
+<U562C> \xE5\x44 |0
+<U562E> \xBC\x47 |0
+<U562F> \xBC\x53 |0
+<U5630> \xBC\x54 |0
+<U5632> \xBC\x4A |0
+<U5633> \xE5\x42 |0
+<U5634> \xBC\x4C |0
+<U5635> \xE4\xF9 |0
+<U5636> \xBC\x52 |0
+<U5638> \xE5\x46 |0
+<U5639> \xBC\x49 |0
+<U563A> \xE5\x48 |0
+<U563B> \xBC\x48 |0
+<U563D> \xE5\x43 |0
+<U563E> \xE5\x45 |0
+<U563F> \xBC\x4B |0
+<U5640> \xE5\x41 |0
+<U5641> \xE4\xFA |0
+<U5642> \xE4\xF7 |0
+<U5645> \xD8\x6B |0
+<U5646> \xE4\xFD |0
+<U5648> \xE4\xF6 |0
+<U5649> \xE4\xFC |0
+<U564A> \xE4\xFB |0
+<U564C> \xE4\xF8 |0
+<U564E> \xBC\x4F |0
+<U5653> \xBC\x4E |0
+<U5657> \xBC\x50 |0
+<U5658> \xE4\xFE |0
+<U5659> \xBE\xB2 |0
+<U565A> \xE5\x40 |0
+<U565E> \xE9\x45 |0
+<U5660> \xE8\xFD |0
+<U5662> \xBE\xBE |0
+<U5663> \xE9\x42 |0
+<U5664> \xBE\xB6 |0
+<U5665> \xBE\xBA |0
+<U5666> \xE9\x41 |0
+<U5668> \xBE\xB9 |0
+<U5669> \xBE\xB5 |0
+<U566A> \xBE\xB8 |0
+<U566B> \xBE\xB3 |0
+<U566C> \xBE\xBD |0
+<U566D> \xE9\x43 |0
+<U566E> \xE8\xFE |0
+<U566F> \xBE\xBC |0
+<U5670> \xE8\xFC |0
+<U5671> \xBE\xBB |0
+<U5672> \xE9\x44 |0
+<U5673> \xE9\x40 |0
+<U5674> \xBC\x51 |0
+<U5676> \xBE\xBF |0
+<U5677> \xE9\x46 |0
+<U5678> \xBE\xB7 |0
+<U5679> \xBE\xB4 |0
+<U567E> \xEC\xC6 |0
+<U567F> \xEC\xC8 |0
+<U5680> \xC0\x7B |0
+<U5681> \xEC\xC9 |0
+<U5682> \xEC\xC7 |0
+<U5683> \xEC\xC5 |0
+<U5684> \xEC\xC4 |0
+<U5685> \xC0\x7D |0
+<U5686> \xEC\xC3 |0
+<U5687> \xC0\x7E |0
+<U568C> \xEC\xC1 |0
+<U568D> \xEC\xC2 |0
+<U568E> \xC0\x7A |0
+<U568F> \xC0\xA1 |0
+<U5690> \xC0\x7C |0
+<U5693> \xEC\xC0 |0
+<U5695> \xC2\x50 |0
+<U5697> \xEF\xBC |0
+<U5698> \xEF\xBA |0
+<U5699> \xEF\xBF |0
+<U569A> \xEF\xBD |0
+<U569C> \xEF\xBB |0
+<U569D> \xEF\xBE |0
+<U56A5> \xC3\x60 |0
+<U56A6> \xF1\xF2 |0
+<U56A7> \xF1\xF3 |0
+<U56A8> \xC4\x56 |0
+<U56AA> \xF1\xF4 |0
+<U56AB> \xF1\xF0 |0
+<U56AC> \xF1\xF5 |0
+<U56AD> \xF1\xF1 |0
+<U56AE> \xC2\x51 |0
+<U56B2> \xF3\xFE |0
+<U56B3> \xF4\x41 |0
+<U56B4> \xC4\x59 |0
+<U56B5> \xF4\x40 |0
+<U56B6> \xC4\x58 |0
+<U56B7> \xC4\x57 |0
+<U56BC> \xC4\x5A |0
+<U56BD> \xF5\xC5 |0
+<U56BE> \xF5\xC6 |0
+<U56C0> \xC4\xDA |0
+<U56C1> \xC4\xD9 |0
+<U56C2> \xC4\xDB |0
+<U56C3> \xF5\xC4 |0
+<U56C5> \xF6\xD8 |0
+<U56C6> \xF6\xD7 |0
+<U56C8> \xC5\x6D |0
+<U56C9> \xC5\x6F |0
+<U56CA> \xC5\x6E |0
+<U56CB> \xF6\xD9 |0
+<U56CC> \xC5\xC8 |0
+<U56CD> \xF8\xA6 |0
+<U56D1> \xC5\xF1 |0
+<U56D3> \xF8\xA5 |0
+<U56D4> \xF8\xEE |0
+<U56D7> \xC9\x49 |0
+<U56DA> \xA5\x7D |0
+<U56DB> \xA5\x7C |0
+<U56DD> \xA6\x5F |0
+<U56DE> \xA6\x5E |0
+<U56DF> \xC9\xC7 |0
+<U56E0> \xA6\x5D |0
+<U56E1> \xC9\xC6 |0
+<U56E4> \xA7\x79 |0
+<U56E5> \xCA\xA9 |0
+<U56E7> \xCA\xA8 |0
+<U56EA> \xA7\x77 |0
+<U56EB> \xA7\x7A |0
+<U56EE> \xCA\xA7 |0
+<U56F0> \xA7\x78 |0
+<U56F7> \xCB\xF0 |0
+<U56F9> \xCB\xF1 |0
+<U56FA> \xA9\x54 |0
+<U56FF> \xAB\xAA |0
+<U5701> \xD1\x48 |0
+<U5702> \xD1\x49 |0
+<U5703> \xAE\x45 |0
+<U5704> \xAE\x46 |0
+<U5707> \xD4\xAC |0
+<U5708> \xB0\xE9 |0
+<U5709> \xB0\xEB |0
+<U570A> \xD4\xAB |0
+<U570B> \xB0\xEA |0
+<U570C> \xD8\x7C |0
+<U570D> \xB3\xF2 |0
+<U5712> \xB6\xE9 |0
+<U5713> \xB6\xEA |0
+<U5714> \xDC\xE1 |0
+<U5716> \xB9\xCF |0
+<U5718> \xB9\xCE |0
+<U571A> \xE5\x49 |0
+<U571B> \xE9\x48 |0
+<U571C> \xE9\x47 |0
+<U571E> \xF9\x6B |0
+<U571F> \xA4\x67 |0
+<U5720> \xC9\x59 |0
+<U5722> \xC9\x6E |0
+<U5723> \xC9\x6F |0
+<U5728> \xA6\x62 |0
+<U5729> \xA6\x66 |0
+<U572A> \xC9\xC9 |0
+<U572C> \xA6\x64 |0
+<U572D> \xA6\x63 |0
+<U572E> \xC9\xC8 |0
+<U572F> \xA6\x65 |0
+<U5730> \xA6\x61 |0
+<U5733> \xA6\x60 |0
+<U5734> \xC9\xCA |0
+<U573B> \xA7\xA6 |0
+<U573E> \xA7\xA3 |0
+<U5740> \xA7\x7D |0
+<U5741> \xCA\xAA |0
+<U5745> \xCA\xAB |0
+<U5747> \xA7\xA1 |0
+<U5749> \xCA\xAD |0
+<U574A> \xA7\x7B |0
+<U574B> \xCA\xAE |0
+<U574C> \xCA\xAC |0
+<U574D> \xA7\x7E |0
+<U574E> \xA7\xA2 |0
+<U574F> \xA7\xA5 |0
+<U5750> \xA7\xA4 |0
+<U5751> \xA7\x7C |0
+<U5752> \xCA\xAF |0
+<U5761> \xA9\x59 |0
+<U5762> \xCB\xFE |0
+<U5764> \xA9\x5B |0
+<U5766> \xA9\x5A |0
+<U5768> \xCC\x40 |0
+<U5769> \xA9\x58 |0
+<U576A> \xA9\x57 |0
+<U576B> \xCB\xF5 |0
+<U576D> \xCB\xF4 |0
+<U576F> \xCB\xF2 |0
+<U5770> \xCB\xF7 |0
+<U5771> \xCB\xF6 |0
+<U5772> \xCB\xF3 |0
+<U5773> \xCB\xFC |0
+<U5774> \xCB\xFD |0
+<U5775> \xCB\xFA |0
+<U5776> \xCB\xF8 |0
+<U5777> \xA9\x56 |0
+<U577B> \xCB\xFB |0
+<U577C> \xA9\x5C |0
+<U577D> \xCC\x41 |0
+<U5780> \xCB\xF9 |0
+<U5782> \xAB\xAB |0
+<U5783> \xA9\x55 |0
+<U578B> \xAB\xAC |0
+<U578C> \xCE\x54 |0
+<U578F> \xCE\x5A |0
+<U5793> \xAB\xB2 |0
+<U5794> \xCE\x58 |0
+<U5795> \xCE\x5E |0
+<U5797> \xCE\x55 |0
+<U5798> \xCE\x59 |0
+<U5799> \xCE\x5B |0
+<U579A> \xCE\x5D |0
+<U579B> \xCE\x57 |0
+<U579D> \xCE\x56 |0
+<U579E> \xCE\x51 |0
+<U579F> \xCE\x52 |0
+<U57A0> \xAB\xAD |0
+<U57A2> \xAB\xAF |0
+<U57A3> \xAB\xAE |0
+<U57A4> \xCE\x53 |0
+<U57A5> \xCE\x5C |0
+<U57AE> \xAB\xB1 |0
+<U57B5> \xCE\x50 |0
+<U57B6> \xD1\x53 |0
+<U57B8> \xD1\x52 |0
+<U57B9> \xD1\x57 |0
+<U57BA> \xD1\x4E |0
+<U57BC> \xD1\x51 |0
+<U57BD> \xD1\x50 |0
+<U57BF> \xD1\x54 |0
+<U57C1> \xD1\x58 |0
+<U57C2> \xAE\x47 |0
+<U57C3> \xAE\x4A |0
+<U57C6> \xD1\x4F |0
+<U57C7> \xD1\x55 |0
+<U57CB> \xAE\x49 |0
+<U57CC> \xD1\x4A |0
+<U57CE> \xAB\xB0 |0
+<U57CF> \xD4\xBA |0
+<U57D0> \xD1\x56 |0
+<U57D2> \xD1\x4D |0
+<U57D4> \xAE\x48 |0
+<U57D5> \xD1\x4C |0
+<U57DC> \xD4\xB1 |0
+<U57DF> \xB0\xEC |0
+<U57E0> \xB0\xF0 |0
+<U57E1> \xD4\xC1 |0
+<U57E2> \xD4\xAF |0
+<U57E3> \xD4\xBD |0
+<U57E4> \xB0\xF1 |0
+<U57E5> \xD4\xBF |0
+<U57E7> \xD4\xC5 |0
+<U57E9> \xD4\xC9 |0
+<U57EC> \xD4\xC0 |0
+<U57ED> \xD4\xB4 |0
+<U57EE> \xD4\xBC |0
+<U57F0> \xD4\xCA |0
+<U57F1> \xD4\xC8 |0
+<U57F2> \xD4\xBE |0
+<U57F3> \xD4\xB9 |0
+<U57F4> \xD4\xB2 |0
+<U57F5> \xD8\xA6 |0
+<U57F6> \xD4\xB0 |0
+<U57F7> \xB0\xF5 |0
+<U57F8> \xD4\xB7 |0
+<U57F9> \xB0\xF6 |0
+<U57FA> \xB0\xF2 |0
+<U57FB> \xD4\xAD |0
+<U57FC> \xD4\xC3 |0
+<U57FD> \xD4\xB5 |0
+<U5800> \xD4\xB3 |0
+<U5801> \xD4\xC6 |0
+<U5802> \xB0\xF3 |0
+<U5804> \xD4\xCC |0
+<U5805> \xB0\xED |0
+<U5806> \xB0\xEF |0
+<U5807> \xD4\xBB |0
+<U5808> \xD4\xB6 |0
+<U5809> \xAE\x4B |0
+<U580A> \xB0\xEE |0
+<U580B> \xD4\xB8 |0
+<U580C> \xD4\xC7 |0
+<U580D> \xD4\xCB |0
+<U580E> \xD4\xC2 |0
+<U5810> \xD4\xC4 |0
+<U5814> \xD4\xAE |0
+<U5819> \xD8\xA1 |0
+<U581B> \xD8\xAA |0
+<U581C> \xD8\xA9 |0
+<U581D> \xB3\xFA |0
+<U581E> \xD8\xA2 |0
+<U5820> \xB3\xFB |0
+<U5821> \xB3\xF9 |0
+<U5823> \xD8\xA4 |0
+<U5824> \xB3\xF6 |0
+<U5825> \xD8\xA8 |0
+<U5827> \xD8\xA3 |0
+<U5828> \xD8\xA5 |0
+<U5829> \xD8\x7D |0
+<U582A> \xB3\xF4 |0
+<U582C> \xD8\xB2 |0
+<U582D> \xD8\xB1 |0
+<U582E> \xD8\xAE |0
+<U582F> \xB3\xF3 |0
+<U5830> \xB3\xF7 |0
+<U5831> \xB3\xF8 |0
+<U5832> \xD1\x4B |0
+<U5833> \xD8\xAB |0
+<U5834> \xB3\xF5 |0
+<U5835> \xB0\xF4 |0
+<U5836> \xD8\xAD |0
+<U5837> \xD8\x7E |0
+<U5838> \xD8\xB0 |0
+<U5839> \xD8\xAF |0
+<U583B> \xD8\xB3 |0
+<U583D> \xDC\xEF |0
+<U583F> \xD8\xAC |0
+<U5848> \xD8\xA7 |0
+<U5849> \xDC\xE7 |0
+<U584A> \xB6\xF4 |0
+<U584B> \xB6\xF7 |0
+<U584C> \xB6\xF2 |0
+<U584D> \xDC\xE6 |0
+<U584E> \xDC\xEA |0
+<U584F> \xDC\xE5 |0
+<U5851> \xB6\xEC |0
+<U5852> \xB6\xF6 |0
+<U5853> \xDC\xE2 |0
+<U5854> \xB6\xF0 |0
+<U5855> \xDC\xE9 |0
+<U5857> \xB6\xEE |0
+<U5858> \xB6\xED |0
+<U5859> \xDC\xEC |0
+<U585A> \xB6\xEF |0
+<U585B> \xDC\xEE |0
+<U585D> \xDC\xEB |0
+<U585E> \xB6\xEB |0
+<U5862> \xB6\xF5 |0
+<U5863> \xDC\xF0 |0
+<U5864> \xDC\xE4 |0
+<U5865> \xDC\xED |0
+<U5868> \xDC\xE3 |0
+<U586B> \xB6\xF1 |0
+<U586D> \xB6\xF3 |0
+<U586F> \xDC\xE8 |0
+<U5871> \xDC\xF1 |0
+<U5874> \xE1\x5D |0
+<U5875> \xB9\xD0 |0
+<U5876> \xE1\x63 |0
+<U5879> \xB9\xD5 |0
+<U587A> \xE1\x5F |0
+<U587B> \xE1\x66 |0
+<U587C> \xE1\x57 |0
+<U587D> \xB9\xD7 |0
+<U587E> \xB9\xD1 |0
+<U587F> \xE1\x5C |0
+<U5880> \xBC\x55 |0
+<U5881> \xE1\x5B |0
+<U5882> \xE1\x64 |0
+<U5883> \xB9\xD2 |0
+<U5885> \xB9\xD6 |0
+<U5886> \xE1\x5A |0
+<U5887> \xE1\x60 |0
+<U5888> \xE1\x65 |0
+<U5889> \xE1\x56 |0
+<U588A> \xB9\xD4 |0
+<U588B> \xE1\x5E |0
+<U588E> \xE1\x62 |0
+<U588F> \xE1\x68 |0
+<U5890> \xE1\x58 |0
+<U5891> \xE1\x61 |0
+<U5893> \xB9\xD3 |0
+<U5894> \xE1\x67 |0
+<U5898> \xE1\x59 |0
+<U589C> \xBC\x59 |0
+<U589D> \xE5\x4B |0
+<U589E> \xBC\x57 |0
+<U589F> \xBC\x56 |0
+<U58A0> \xE5\x4D |0
+<U58A1> \xE5\x52 |0
+<U58A3> \xE5\x4E |0
+<U58A5> \xE5\x51 |0
+<U58A6> \xBC\x5C |0
+<U58A8> \xBE\xA5 |0
+<U58A9> \xBC\x5B |0
+<U58AB> \xE5\x4A |0
+<U58AC> \xE5\x50 |0
+<U58AE> \xBC\x5A |0
+<U58AF> \xE5\x4F |0
+<U58B1> \xE5\x4C |0
+<U58B3> \xBC\x58 |0
+<U58BA> \xE9\x4D |0
+<U58BB> \xF9\xD9 |0
+<U58BC> \xE9\x4F |0
+<U58BD> \xE9\x4A |0
+<U58BE> \xBE\xC1 |0
+<U58BF> \xE9\x4C |0
+<U58C1> \xBE\xC0 |0
+<U58C2> \xE9\x4E |0
+<U58C5> \xBE\xC3 |0
+<U58C6> \xE9\x50 |0
+<U58C7> \xBE\xC2 |0
+<U58C8> \xE9\x49 |0
+<U58C9> \xE9\x4B |0
+<U58CE> \xC0\xA5 |0
+<U58CF> \xEC\xCC |0
+<U58D1> \xC0\xA4 |0
+<U58D2> \xEC\xCD |0
+<U58D3> \xC0\xA3 |0
+<U58D4> \xEC\xCB |0
+<U58D5> \xC0\xA2 |0
+<U58D6> \xEC\xCA |0
+<U58D8> \xC2\x53 |0
+<U58D9> \xC2\x52 |0
+<U58DA> \xF1\xF6 |0
+<U58DB> \xF1\xF8 |0
+<U58DD> \xF1\xF7 |0
+<U58DE> \xC3\x61 |0
+<U58DF> \xC3\x62 |0
+<U58E2> \xC3\x63 |0
+<U58E3> \xF4\x42 |0
+<U58E4> \xC4\x5B |0
+<U58E7> \xF7\xD3 |0
+<U58E8> \xF7\xD2 |0
+<U58E9> \xC5\xF2 |0
+<U58EB> \xA4\x68 |0
+<U58EC> \xA4\xD0 |0
+<U58EF> \xA7\xA7 |0
+<U58F4> \xCE\x5F |0
+<U58F9> \xB3\xFC |0
+<U58FA> \xB3\xFD |0
+<U58FC> \xDC\xF2 |0
+<U58FD> \xB9\xD8 |0
+<U58FE> \xE1\x69 |0
+<U58FF> \xE5\x53 |0
+<U5903> \xC9\x5A |0
+<U5906> \xCA\xB0 |0
+<U590C> \xCC\x42 |0
+<U590D> \xCE\x60 |0
+<U590E> \xD1\x59 |0
+<U590F> \xAE\x4C |0
+<U5912> \xF1\xF9 |0
+<U5914> \xC4\xDC |0
+<U5915> \xA4\x69 |0
+<U5916> \xA5\x7E |0
+<U5917> \xC9\x70 |0
+<U5919> \xA6\x67 |0
+<U591A> \xA6\x68 |0
+<U591C> \xA9\x5D |0
+<U5920> \xB0\xF7 |0
+<U5922> \xB9\xDA |0
+<U5924> \xB9\xDB |0
+<U5925> \xB9\xD9 |0
+<U5927> \xA4\x6A |0
+<U5929> \xA4\xD1 |0
+<U592A> \xA4\xD3 |0
+<U592B> \xA4\xD2 |0
+<U592C> \xC9\x5B |0
+<U592D> \xA4\xD4 |0
+<U592E> \xA5\xA1 |0
+<U592F> \xC9\x71 |0
+<U5931> \xA5\xA2 |0
+<U5937> \xA6\x69 |0
+<U5938> \xA6\x6A |0
+<U593C> \xC9\xCB |0
+<U593E> \xA7\xA8 |0
+<U5940> \xCA\xB1 |0
+<U5944> \xA9\x61 |0
+<U5945> \xCC\x43 |0
+<U5947> \xA9\x5F |0
+<U5948> \xA9\x60 |0
+<U5949> \xA9\x5E |0
+<U594A> \xD1\x5A |0
+<U594E> \xAB\xB6 |0
+<U594F> \xAB\xB5 |0
+<U5950> \xAB\xB7 |0
+<U5951> \xAB\xB4 |0
+<U5953> \xCE\x61 |0
+<U5954> \xA9\x62 |0
+<U5955> \xAB\xB3 |0
+<U5957> \xAE\x4D |0
+<U5958> \xAE\x4E |0
+<U595A> \xAE\x4F |0
+<U595C> \xD4\xCD |0
+<U5960> \xB3\xFE |0
+<U5961> \xD8\xB4 |0
+<U5962> \xB0\xF8 |0
+<U5967> \xB6\xF8 |0
+<U5969> \xB9\xDD |0
+<U596A> \xB9\xDC |0
+<U596B> \xE1\x6A |0
+<U596D> \xBC\x5D |0
+<U596E> \xBE\xC4 |0
+<U5970> \xEF\xC0 |0
+<U5971> \xF6\xDA |0
+<U5972> \xF7\xD4 |0
+<U5973> \xA4\x6B |0
+<U5974> \xA5\xA3 |0
+<U5976> \xA5\xA4 |0
+<U5977> \xC9\xD1 |0
+<U5978> \xA6\x6C |0
+<U5979> \xA6\x6F |0
+<U597B> \xC9\xCF |0
+<U597C> \xC9\xCD |0
+<U597D> \xA6\x6E |0
+<U597E> \xC9\xD0 |0
+<U597F> \xC9\xD2 |0
+<U5980> \xC9\xCC |0
+<U5981> \xA6\x71 |0
+<U5982> \xA6\x70 |0
+<U5983> \xA6\x6D |0
+<U5984> \xA6\x6B |0
+<U5985> \xC9\xCE |0
+<U598A> \xA7\xB3 |0
+<U598D> \xA7\xB0 |0
+<U598E> \xCA\xB6 |0
+<U598F> \xCA\xB9 |0
+<U5990> \xCA\xB8 |0
+<U5992> \xA7\xAA |0
+<U5993> \xA7\xB2 |0
+<U5996> \xA7\xAF |0
+<U5997> \xCA\xB5 |0
+<U5998> \xCA\xB3 |0
+<U5999> \xA7\xAE |0
+<U599D> \xA7\xA9 |0
+<U599E> \xA7\xAC |0
+<U59A0> \xCA\xB4 |0
+<U59A1> \xCA\xBB |0
+<U59A2> \xCA\xB7 |0
+<U59A3> \xA7\xAD |0
+<U59A4> \xA7\xB1 |0
+<U59A5> \xA7\xB4 |0
+<U59A6> \xCA\xB2 |0
+<U59A7> \xCA\xBA |0
+<U59A8> \xA7\xAB |0
+<U59AE> \xA9\x67 |0
+<U59AF> \xA9\x6F |0
+<U59B1> \xCC\x4F |0
+<U59B2> \xCC\x48 |0
+<U59B3> \xA9\x70 |0
+<U59B4> \xCC\x53 |0
+<U59B5> \xCC\x44 |0
+<U59B6> \xCC\x4B |0
+<U59B9> \xA9\x66 |0
+<U59BA> \xCC\x45 |0
+<U59BB> \xA9\x64 |0
+<U59BC> \xCC\x4C |0
+<U59BD> \xCC\x50 |0
+<U59BE> \xA9\x63 |0
+<U59C0> \xCC\x51 |0
+<U59C1> \xCC\x4A |0
+<U59C3> \xCC\x4D |0
+<U59C5> \xA9\x72 |0
+<U59C6> \xA9\x69 |0
+<U59C7> \xCC\x54 |0
+<U59C8> \xCC\x52 |0
+<U59CA> \xA9\x6E |0
+<U59CB> \xA9\x6C |0
+<U59CC> \xCC\x49 |0
+<U59CD> \xA9\x6B |0
+<U59CE> \xCC\x47 |0
+<U59CF> \xCC\x46 |0
+<U59D0> \xA9\x6A |0
+<U59D1> \xA9\x68 |0
+<U59D2> \xA9\x71 |0
+<U59D3> \xA9\x6D |0
+<U59D4> \xA9\x65 |0
+<U59D6> \xCC\x4E |0
+<U59D8> \xAB\xB9 |0
+<U59DA> \xAB\xC0 |0
+<U59DB> \xCE\x6F |0
+<U59DC> \xAB\xB8 |0
+<U59DD> \xCE\x67 |0
+<U59DE> \xCE\x63 |0
+<U59E0> \xCE\x73 |0
+<U59E1> \xCE\x62 |0
+<U59E3> \xAB\xBB |0
+<U59E4> \xCE\x6C |0
+<U59E5> \xAB\xBE |0
+<U59E6> \xAB\xC1 |0
+<U59E8> \xAB\xBC |0
+<U59E9> \xCE\x70 |0
+<U59EA> \xAB\xBF |0
+<U59EC> \xAE\x56 |0
+<U59ED> \xCE\x76 |0
+<U59EE> \xCE\x64 |0
+<U59F1> \xCE\x66 |0
+<U59F2> \xCE\x6D |0
+<U59F3> \xCE\x71 |0
+<U59F4> \xCE\x75 |0
+<U59F5> \xCE\x72 |0
+<U59F6> \xCE\x6B |0
+<U59F7> \xCE\x6E |0
+<U59FA> \xCE\x68 |0
+<U59FB> \xAB\xC3 |0
+<U59FC> \xCE\x6A |0
+<U59FD> \xCE\x69 |0
+<U59FE> \xCE\x74 |0
+<U59FF> \xAB\xBA |0
+<U5A00> \xCE\x65 |0
+<U5A01> \xAB\xC2 |0
+<U5A03> \xAB\xBD |0
+<U5A09> \xAE\x5C |0
+<U5A0A> \xD1\x62 |0
+<U5A0C> \xAE\x5B |0
+<U5A0F> \xD1\x60 |0
+<U5A11> \xAE\x50 |0
+<U5A13> \xAE\x55 |0
+<U5A15> \xD1\x5F |0
+<U5A16> \xD1\x5C |0
+<U5A17> \xD1\x61 |0
+<U5A18> \xAE\x51 |0
+<U5A19> \xD1\x5B |0
+<U5A1B> \xAE\x54 |0
+<U5A1C> \xAE\x52 |0
+<U5A1E> \xD1\x63 |0
+<U5A1F> \xAE\x53 |0
+<U5A20> \xAE\x57 |0
+<U5A23> \xAE\x58 |0
+<U5A25> \xAE\x5A |0
+<U5A29> \xAE\x59 |0
+<U5A2D> \xD1\x5D |0
+<U5A2E> \xD1\x5E |0
+<U5A33> \xD1\x64 |0
+<U5A35> \xD4\xD4 |0
+<U5A36> \xB0\xF9 |0
+<U5A37> \xD8\xC2 |0
+<U5A38> \xD4\xD3 |0
+<U5A39> \xD4\xE6 |0
+<U5A3C> \xB1\x40 |0
+<U5A3E> \xD4\xE4 |0
+<U5A40> \xB0\xFE |0
+<U5A41> \xB0\xFA |0
+<U5A42> \xD4\xED |0
+<U5A43> \xD4\xDD |0
+<U5A44> \xD4\xE0 |0
+<U5A46> \xB1\x43 |0
+<U5A47> \xD4\xEA |0
+<U5A48> \xD4\xE2 |0
+<U5A49> \xB0\xFB |0
+<U5A4A> \xB1\x44 |0
+<U5A4C> \xD4\xE7 |0
+<U5A4D> \xD4\xE5 |0
+<U5A50> \xD4\xD6 |0
+<U5A51> \xD4\xEB |0
+<U5A52> \xD4\xDF |0
+<U5A53> \xD4\xDA |0
+<U5A55> \xD4\xD0 |0
+<U5A56> \xD4\xEC |0
+<U5A57> \xD4\xDC |0
+<U5A58> \xD4\xCF |0
+<U5A5A> \xB1\x42 |0
+<U5A5B> \xD4\xE1 |0
+<U5A5C> \xD4\xEE |0
+<U5A5D> \xD4\xDE |0
+<U5A5E> \xD4\xD2 |0
+<U5A5F> \xD4\xD7 |0
+<U5A60> \xD4\xCE |0
+<U5A62> \xB1\x41 |0
+<U5A64> \xD4\xDB |0
+<U5A65> \xD4\xD8 |0
+<U5A66> \xB0\xFC |0
+<U5A67> \xD4\xD1 |0
+<U5A69> \xD4\xE9 |0
+<U5A6A> \xB0\xFD |0
+<U5A6C> \xD4\xD9 |0
+<U5A6D> \xD4\xD5 |0
+<U5A70> \xD4\xE8 |0
+<U5A77> \xB4\x40 |0
+<U5A78> \xD8\xBB |0
+<U5A7A> \xD8\xB8 |0
+<U5A7B> \xD8\xC9 |0
+<U5A7C> \xD8\xBD |0
+<U5A7D> \xD8\xCA |0
+<U5A7F> \xB4\x42 |0
+<U5A83> \xD8\xC6 |0
+<U5A84> \xD8\xC3 |0
+<U5A8A> \xD8\xC4 |0
+<U5A8B> \xD8\xC7 |0
+<U5A8C> \xD8\xCB |0
+<U5A8E> \xD4\xE3 |0
+<U5A8F> \xD8\xCD |0
+<U5A90> \xDD\x47 |0
+<U5A92> \xB4\x43 |0
+<U5A93> \xD8\xCE |0
+<U5A94> \xD8\xB6 |0
+<U5A95> \xD8\xC0 |0
+<U5A97> \xD8\xC5 |0
+<U5A9A> \xB4\x41 |0
+<U5A9B> \xB4\x44 |0
+<U5A9C> \xD8\xCC |0
+<U5A9D> \xD8\xCF |0
+<U5A9E> \xD8\xBA |0
+<U5A9F> \xD8\xB7 |0
+<U5AA2> \xD8\xB9 |0
+<U5AA5> \xD8\xBE |0
+<U5AA6> \xD8\xBC |0
+<U5AA7> \xB4\x45 |0
+<U5AA9> \xD8\xC8 |0
+<U5AAC> \xD8\xBF |0
+<U5AAE> \xD8\xC1 |0
+<U5AAF> \xD8\xB5 |0
+<U5AB0> \xDC\xFA |0
+<U5AB1> \xDC\xF8 |0
+<U5AB2> \xB7\x42 |0
+<U5AB3> \xB7\x40 |0
+<U5AB4> \xDD\x43 |0
+<U5AB5> \xDC\xF9 |0
+<U5AB6> \xDD\x44 |0
+<U5AB7> \xDD\x40 |0
+<U5AB8> \xDC\xF7 |0
+<U5AB9> \xDD\x46 |0
+<U5ABA> \xDC\xF6 |0
+<U5ABB> \xDC\xFD |0
+<U5ABC> \xB6\xFE |0
+<U5ABD> \xB6\xFD |0
+<U5ABE> \xB6\xFC |0
+<U5ABF> \xDC\xFB |0
+<U5AC0> \xDD\x41 |0
+<U5AC1> \xB6\xF9 |0
+<U5AC2> \xB7\x41 |0
+<U5AC4> \xDC\xF4 |0
+<U5AC6> \xDC\xFE |0
+<U5AC7> \xDC\xF3 |0
+<U5AC8> \xDC\xFC |0
+<U5AC9> \xB6\xFA |0
+<U5ACA> \xDD\x42 |0
+<U5ACB> \xDC\xF5 |0
+<U5ACC> \xB6\xFB |0
+<U5ACD> \xDD\x45 |0
+<U5AD5> \xE1\x6E |0
+<U5AD6> \xB9\xE2 |0
+<U5AD7> \xB9\xE1 |0
+<U5AD8> \xB9\xE3 |0
+<U5AD9> \xE1\x7A |0
+<U5ADA> \xE1\x70 |0
+<U5ADB> \xE1\x76 |0
+<U5ADC> \xE1\x6B |0
+<U5ADD> \xE1\x79 |0
+<U5ADE> \xE1\x78 |0
+<U5ADF> \xE1\x7C |0
+<U5AE0> \xE1\x75 |0
+<U5AE1> \xB9\xDE |0
+<U5AE2> \xE1\x74 |0
+<U5AE3> \xB9\xE4 |0
+<U5AE5> \xE1\x6D |0
+<U5AE6> \xB9\xDF |0
+<U5AE8> \xE1\x7B |0
+<U5AE9> \xB9\xE0 |0
+<U5AEA> \xE1\x6F |0
+<U5AEB> \xE1\x72 |0
+<U5AEC> \xE1\x77 |0
+<U5AED> \xE1\x71 |0
+<U5AEE> \xE1\x6C |0
+<U5AF3> \xE1\x73 |0
+<U5AF4> \xE5\x55 |0
+<U5AF5> \xBC\x61 |0
+<U5AF6> \xE5\x58 |0
+<U5AF7> \xE5\x57 |0
+<U5AF8> \xE5\x5A |0
+<U5AF9> \xE5\x5C |0
+<U5AFA> \xF9\xDC |0
+<U5AFB> \xBC\x5F |0
+<U5AFD> \xE5\x56 |0
+<U5AFF> \xE5\x54 |0
+<U5B01> \xE5\x5D |0
+<U5B02> \xE5\x5B |0
+<U5B03> \xE5\x59 |0
+<U5B05> \xE5\x5F |0
+<U5B07> \xE5\x5E |0
+<U5B08> \xBC\x63 |0
+<U5B09> \xBC\x5E |0
+<U5B0B> \xBC\x60 |0
+<U5B0C> \xBC\x62 |0
+<U5B0F> \xE5\x60 |0
+<U5B10> \xE9\x57 |0
+<U5B13> \xE9\x56 |0
+<U5B14> \xE9\x55 |0
+<U5B16> \xE9\x58 |0
+<U5B17> \xE9\x51 |0
+<U5B19> \xE9\x52 |0
+<U5B1A> \xE9\x5A |0
+<U5B1B> \xE9\x53 |0
+<U5B1D> \xBE\xC5 |0
+<U5B1E> \xE9\x5C |0
+<U5B20> \xE9\x5B |0
+<U5B21> \xE9\x54 |0
+<U5B23> \xEC\xD1 |0
+<U5B24> \xC0\xA8 |0
+<U5B25> \xEC\xCF |0
+<U5B26> \xEC\xD4 |0
+<U5B27> \xEC\xD3 |0
+<U5B28> \xE9\x59 |0
+<U5B2A> \xC0\xA7 |0
+<U5B2C> \xEC\xD2 |0
+<U5B2D> \xEC\xCE |0
+<U5B2E> \xEC\xD6 |0
+<U5B2F> \xEC\xD5 |0
+<U5B30> \xC0\xA6 |0
+<U5B32> \xEC\xD0 |0
+<U5B34> \xBE\xC6 |0
+<U5B38> \xC2\x54 |0
+<U5B3C> \xEF\xC1 |0
+<U5B3D> \xF1\xFA |0
+<U5B3E> \xF1\xFB |0
+<U5B3F> \xF1\xFC |0
+<U5B40> \xC4\x5C |0
+<U5B43> \xC4\x5D |0
+<U5B45> \xF4\x43 |0
+<U5B47> \xF5\xC8 |0
+<U5B48> \xF5\xC7 |0
+<U5B4B> \xF6\xDB |0
+<U5B4C> \xF6\xDC |0
+<U5B4D> \xF7\xD5 |0
+<U5B4E> \xF8\xA7 |0
+<U5B50> \xA4\x6C |0
+<U5B51> \xA4\x6D |0
+<U5B53> \xA4\x6E |0
+<U5B54> \xA4\xD5 |0
+<U5B55> \xA5\xA5 |0
+<U5B56> \xC9\xD3 |0
+<U5B57> \xA6\x72 |0
+<U5B58> \xA6\x73 |0
+<U5B5A> \xA7\xB7 |0
+<U5B5B> \xA7\xB8 |0
+<U5B5C> \xA7\xB6 |0
+<U5B5D> \xA7\xB5 |0
+<U5B5F> \xA9\x73 |0
+<U5B62> \xCC\x55 |0
+<U5B63> \xA9\x75 |0
+<U5B64> \xA9\x74 |0
+<U5B65> \xCC\x56 |0
+<U5B69> \xAB\xC4 |0
+<U5B6B> \xAE\x5D |0
+<U5B6C> \xD1\x65 |0
+<U5B6E> \xD4\xF0 |0
+<U5B70> \xB1\x45 |0
+<U5B71> \xB4\x47 |0
+<U5B72> \xD4\xEF |0
+<U5B73> \xB4\x46 |0
+<U5B75> \xB9\xE5 |0
+<U5B77> \xE1\x7D |0
+<U5B78> \xBE\xC7 |0
+<U5B7A> \xC0\xA9 |0
+<U5B7B> \xEC\xD7 |0
+<U5B7D> \xC4\x5E |0
+<U5B7F> \xC5\x70 |0
+<U5B81> \xC9\x72 |0
+<U5B83> \xA5\xA6 |0
+<U5B84> \xC9\x73 |0
+<U5B85> \xA6\x76 |0
+<U5B87> \xA6\x74 |0
+<U5B88> \xA6\x75 |0
+<U5B89> \xA6\x77 |0
+<U5B8B> \xA7\xBA |0
+<U5B8C> \xA7\xB9 |0
+<U5B8E> \xCA\xBC |0
+<U5B8F> \xA7\xBB |0
+<U5B92> \xCA\xBD |0
+<U5B93> \xCC\x57 |0
+<U5B95> \xCC\x58 |0
+<U5B97> \xA9\x76 |0
+<U5B98> \xA9\x78 |0
+<U5B99> \xA9\x7A |0
+<U5B9A> \xA9\x77 |0
+<U5B9B> \xA9\x7B |0
+<U5B9C> \xA9\x79 |0
+<U5BA2> \xAB\xC8 |0
+<U5BA3> \xAB\xC5 |0
+<U5BA4> \xAB\xC7 |0
+<U5BA5> \xAB\xC9 |0
+<U5BA6> \xAB\xC6 |0
+<U5BA7> \xD1\x66 |0
+<U5BA8> \xCE\x77 |0
+<U5BAC> \xD1\x68 |0
+<U5BAD> \xD1\x67 |0
+<U5BAE> \xAE\x63 |0
+<U5BB0> \xAE\x5F |0
+<U5BB3> \xAE\x60 |0
+<U5BB4> \xAE\x62 |0
+<U5BB5> \xAE\x64 |0
+<U5BB6> \xAE\x61 |0
+<U5BB8> \xAE\x66 |0
+<U5BB9> \xAE\x65 |0
+<U5BBF> \xB1\x4A |0
+<U5BC0> \xD4\xF2 |0
+<U5BC1> \xD4\xF1 |0
+<U5BC2> \xB1\x49 |0
+<U5BC4> \xB1\x48 |0
+<U5BC5> \xB1\x47 |0
+<U5BC6> \xB1\x4B |0
+<U5BC7> \xB1\x46 |0
+<U5BCA> \xD8\xD5 |0
+<U5BCB> \xD8\xD2 |0
+<U5BCC> \xB4\x49 |0
+<U5BCD> \xD8\xD1 |0
+<U5BCE> \xD8\xD6 |0
+<U5BD0> \xB4\x4B |0
+<U5BD1> \xD8\xD4 |0
+<U5BD2> \xB4\x48 |0
+<U5BD3> \xB4\x4A |0
+<U5BD4> \xD8\xD3 |0
+<U5BD6> \xDD\x48 |0
+<U5BD8> \xDD\x49 |0
+<U5BD9> \xDD\x4A |0
+<U5BDE> \xB9\xE6 |0
+<U5BDF> \xB9\xEE |0
+<U5BE0> \xE1\x7E |0
+<U5BE1> \xB9\xE8 |0
+<U5BE2> \xB9\xEC |0
+<U5BE3> \xE1\xA1 |0
+<U5BE4> \xB9\xED |0
+<U5BE5> \xB9\xE9 |0
+<U5BE6> \xB9\xEA |0
+<U5BE7> \xB9\xE7 |0
+<U5BE8> \xB9\xEB |0
+<U5BE9> \xBC\x66 |0
+<U5BEA> \xD8\xD0 |0
+<U5BEB> \xBC\x67 |0
+<U5BEC> \xBC\x65 |0
+<U5BEE> \xBC\x64 |0
+<U5BEF> \xE9\x5D |0
+<U5BF0> \xBE\xC8 |0
+<U5BF1> \xEC\xD8 |0
+<U5BF2> \xEC\xD9 |0
+<U5BF5> \xC3\x64 |0
+<U5BF6> \xC4\x5F |0
+<U5BF8> \xA4\x6F |0
+<U5BFA> \xA6\x78 |0
+<U5C01> \xAB\xCA |0
+<U5C03> \xD1\x69 |0
+<U5C04> \xAE\x67 |0
+<U5C07> \xB1\x4E |0
+<U5C08> \xB1\x4D |0
+<U5C09> \xB1\x4C |0
+<U5C0A> \xB4\x4C |0
+<U5C0B> \xB4\x4D |0
+<U5C0C> \xD8\xD7 |0
+<U5C0D> \xB9\xEF |0
+<U5C0E> \xBE\xC9 |0
+<U5C0F> \xA4\x70 |0
+<U5C10> \xC9\x5C |0
+<U5C11> \xA4\xD6 |0
+<U5C12> \xC9\x74 |0
+<U5C15> \xC9\xD4 |0
+<U5C16> \xA6\x79 |0
+<U5C1A> \xA9\x7C |0
+<U5C1F> \xDD\x4B |0
+<U5C22> \xA4\x71 |0
+<U5C24> \xA4\xD7 |0
+<U5C25> \xC9\xD5 |0
+<U5C28> \xCA\xBE |0
+<U5C2A> \xCA\xBF |0
+<U5C2C> \xA7\xBC |0
+<U5C30> \xD8\xD8 |0
+<U5C31> \xB4\x4E |0
+<U5C33> \xDD\x4C |0
+<U5C37> \xC0\xAA |0
+<U5C38> \xA4\x72 |0
+<U5C39> \xA4\xA8 |0
+<U5C3A> \xA4\xD8 |0
+<U5C3B> \xC9\x75 |0
+<U5C3C> \xA5\xA7 |0
+<U5C3E> \xA7\xC0 |0
+<U5C3F> \xA7\xBF |0
+<U5C40> \xA7\xBD |0
+<U5C41> \xA7\xBE |0
+<U5C44> \xCC\x59 |0
+<U5C45> \xA9\x7E |0
+<U5C46> \xA9\xA1 |0
+<U5C47> \xCC\x5A |0
+<U5C48> \xA9\x7D |0
+<U5C4B> \xAB\xCE |0
+<U5C4C> \xCE\x78 |0
+<U5C4D> \xAB\xCD |0
+<U5C4E> \xAB\xCB |0
+<U5C4F> \xAB\xCC |0
+<U5C50> \xAE\x6A |0
+<U5C51> \xAE\x68 |0
+<U5C54> \xD1\x6B |0
+<U5C55> \xAE\x69 |0
+<U5C56> \xD1\x6A |0
+<U5C58> \xAE\x5E |0
+<U5C59> \xD4\xF3 |0
+<U5C5C> \xB1\x50 |0
+<U5C5D> \xB1\x51 |0
+<U5C60> \xB1\x4F |0
+<U5C62> \xB9\xF0 |0
+<U5C63> \xE1\xA2 |0
+<U5C64> \xBC\x68 |0
+<U5C65> \xBC\x69 |0
+<U5C67> \xE5\x61 |0
+<U5C68> \xC0\xAB |0
+<U5C69> \xEF\xC2 |0
+<U5C6A> \xEF\xC3 |0
+<U5C6C> \xC4\xDD |0
+<U5C6D> \xF8\xA8 |0
+<U5C6E> \xC9\x4B |0
+<U5C6F> \xA4\xD9 |0
+<U5C71> \xA4\x73 |0
+<U5C73> \xC9\x77 |0
+<U5C74> \xC9\x76 |0
+<U5C79> \xA6\x7A |0
+<U5C7A> \xC9\xD7 |0
+<U5C7B> \xC9\xD8 |0
+<U5C7C> \xC9\xD6 |0
+<U5C7E> \xC9\xD9 |0
+<U5C86> \xCA\xC7 |0
+<U5C88> \xCA\xC2 |0
+<U5C89> \xCA\xC4 |0
+<U5C8A> \xCA\xC6 |0
+<U5C8B> \xCA\xC3 |0
+<U5C8C> \xA7\xC4 |0
+<U5C8D> \xCA\xC0 |0
+<U5C8F> \xCA\xC1 |0
+<U5C90> \xA7\xC1 |0
+<U5C91> \xA7\xC2 |0
+<U5C92> \xCA\xC5 |0
+<U5C93> \xCA\xC8 |0
+<U5C94> \xA7\xC3 |0
+<U5C95> \xCA\xC9 |0
+<U5C9D> \xCC\x68 |0
+<U5C9F> \xCC\x62 |0
+<U5CA0> \xCC\x5D |0
+<U5CA1> \xA9\xA3 |0
+<U5CA2> \xCC\x65 |0
+<U5CA3> \xCC\x63 |0
+<U5CA4> \xCC\x5C |0
+<U5CA5> \xCC\x69 |0
+<U5CA6> \xCC\x6C |0
+<U5CA7> \xCC\x67 |0
+<U5CA8> \xCC\x60 |0
+<U5CA9> \xA9\xA5 |0
+<U5CAA> \xCC\x66 |0
+<U5CAB> \xA9\xA6 |0
+<U5CAC> \xCC\x61 |0
+<U5CAD> \xCC\x64 |0
+<U5CAE> \xCC\x5B |0
+<U5CAF> \xCC\x5F |0
+<U5CB0> \xCC\x6B |0
+<U5CB1> \xA9\xA7 |0
+<U5CB3> \xA9\xA8 |0
+<U5CB5> \xCC\x5E |0
+<U5CB6> \xCC\x6A |0
+<U5CB7> \xA9\xA2 |0
+<U5CB8> \xA9\xA4 |0
+<U5CC6> \xCE\xAB |0
+<U5CC7> \xCE\xA4 |0
+<U5CC8> \xCE\xAA |0
+<U5CC9> \xCE\xA3 |0
+<U5CCA> \xCE\xA5 |0
+<U5CCB> \xCE\x7D |0
+<U5CCC> \xCE\x7B |0
+<U5CCE> \xCE\xAC |0
+<U5CCF> \xCE\xA9 |0
+<U5CD0> \xCE\x79 |0
+<U5CD2> \xAB\xD0 |0
+<U5CD3> \xCE\xA7 |0
+<U5CD4> \xCE\xA8 |0
+<U5CD6> \xCE\xA6 |0
+<U5CD7> \xCE\x7C |0
+<U5CD8> \xCE\x7A |0
+<U5CD9> \xAB\xCF |0
+<U5CDA> \xCE\xA2 |0
+<U5CDB> \xCE\x7E |0
+<U5CDE> \xCE\xA1 |0
+<U5CDF> \xCE\xAD |0
+<U5CE8> \xAE\x6F |0
+<U5CEA> \xAE\x6E |0
+<U5CEC> \xD1\x6C |0
+<U5CED> \xAE\x6B |0
+<U5CEE> \xD1\x6E |0
+<U5CF0> \xAE\x70 |0
+<U5CF1> \xD1\x6F |0
+<U5CF4> \xAE\x73 |0
+<U5CF6> \xAE\x71 |0
+<U5CF7> \xD1\x70 |0
+<U5CF8> \xCE\xAE |0
+<U5CF9> \xD1\x72 |0
+<U5CFB> \xAE\x6D |0
+<U5CFD> \xAE\x6C |0
+<U5CFF> \xD1\x6D |0
+<U5D00> \xD1\x71 |0
+<U5D01> \xAE\x72 |0
+<U5D06> \xB1\x53 |0
+<U5D07> \xB1\x52 |0
+<U5D0B> \xD4\xF5 |0
+<U5D0C> \xD4\xF9 |0
+<U5D0D> \xD4\xFB |0
+<U5D0E> \xB1\x54 |0
+<U5D0F> \xD4\xFE |0
+<U5D11> \xB1\x58 |0
+<U5D12> \xD5\x41 |0
+<U5D14> \xB1\x5A |0
+<U5D16> \xB1\x56 |0
+<U5D17> \xB1\x5E |0
+<U5D19> \xB1\x5B |0
+<U5D1A> \xD4\xF7 |0
+<U5D1B> \xB1\x55 |0
+<U5D1D> \xD4\xF6 |0
+<U5D1E> \xD4\xF4 |0
+<U5D1F> \xD5\x43 |0
+<U5D20> \xD4\xF8 |0
+<U5D22> \xB1\x57 |0
+<U5D23> \xD5\x42 |0
+<U5D24> \xB1\x5C |0
+<U5D25> \xD4\xFD |0
+<U5D26> \xD4\xFC |0
+<U5D27> \xB1\x5D |0
+<U5D28> \xD4\xFA |0
+<U5D29> \xB1\x59 |0
+<U5D2E> \xD5\x44 |0
+<U5D30> \xD5\x40 |0
+<U5D31> \xD8\xE7 |0
+<U5D32> \xD8\xEE |0
+<U5D33> \xD8\xE3 |0
+<U5D34> \xB4\x51 |0
+<U5D35> \xD8\xDF |0
+<U5D36> \xD8\xEF |0
+<U5D37> \xD8\xD9 |0
+<U5D38> \xD8\xEC |0
+<U5D39> \xD8\xEA |0
+<U5D3A> \xD8\xE4 |0
+<U5D3C> \xD8\xED |0
+<U5D3D> \xD8\xE6 |0
+<U5D3F> \xD8\xDE |0
+<U5D40> \xD8\xF0 |0
+<U5D41> \xD8\xDC |0
+<U5D42> \xD8\xE9 |0
+<U5D43> \xD8\xDA |0
+<U5D45> \xD8\xF1 |0
+<U5D47> \xB4\x52 |0
+<U5D49> \xD8\xEB |0
+<U5D4A> \xDD\x4F |0
+<U5D4B> \xD8\xDD |0
+<U5D4C> \xB4\x4F |0
+<U5D4E> \xD8\xE1 |0
+<U5D50> \xB4\x50 |0
+<U5D51> \xD8\xE0 |0
+<U5D52> \xD8\xE5 |0
+<U5D55> \xD8\xE2 |0
+<U5D59> \xD8\xE8 |0
+<U5D5E> \xDD\x53 |0
+<U5D62> \xDD\x56 |0
+<U5D63> \xDD\x4E |0
+<U5D65> \xDD\x50 |0
+<U5D67> \xDD\x55 |0
+<U5D68> \xDD\x54 |0
+<U5D69> \xB7\x43 |0
+<U5D6B> \xD8\xDB |0
+<U5D6C> \xDD\x52 |0
+<U5D6F> \xB7\x44 |0
+<U5D71> \xDD\x4D |0
+<U5D72> \xDD\x51 |0
+<U5D77> \xE1\xA9 |0
+<U5D79> \xE1\xB0 |0
+<U5D7A> \xE1\xA7 |0
+<U5D7C> \xE1\xAE |0
+<U5D7D> \xE1\xA5 |0
+<U5D7E> \xE1\xAD |0
+<U5D7F> \xE1\xB1 |0
+<U5D80> \xE1\xA4 |0
+<U5D81> \xE1\xA8 |0
+<U5D82> \xE1\xA3 |0
+<U5D84> \xB9\xF1 |0
+<U5D86> \xE1\xA6 |0
+<U5D87> \xB9\xF2 |0
+<U5D88> \xE1\xAC |0
+<U5D89> \xE1\xAB |0
+<U5D8A> \xE1\xAA |0
+<U5D8D> \xE1\xAF |0
+<U5D92> \xE5\x65 |0
+<U5D93> \xE5\x67 |0
+<U5D94> \xBC\x6B |0
+<U5D95> \xE5\x68 |0
+<U5D97> \xE5\x63 |0
+<U5D99> \xE5\x62 |0
+<U5D9A> \xE5\x6C |0
+<U5D9C> \xE5\x6A |0
+<U5D9D> \xBC\x6A |0
+<U5D9E> \xE5\x6D |0
+<U5D9F> \xE5\x64 |0
+<U5DA0> \xE5\x69 |0
+<U5DA1> \xE5\x6B |0
+<U5DA2> \xE5\x66 |0
+<U5DA7> \xE9\x61 |0
+<U5DA8> \xE9\x66 |0
+<U5DA9> \xE9\x60 |0
+<U5DAA> \xE9\x65 |0
+<U5DAC> \xE9\x5E |0
+<U5DAD> \xE9\x68 |0
+<U5DAE> \xE9\x64 |0
+<U5DAF> \xE9\x69 |0
+<U5DB0> \xE9\x63 |0
+<U5DB1> \xE9\x5F |0
+<U5DB2> \xE9\x67 |0
+<U5DB4> \xE9\x6A |0
+<U5DB5> \xE9\x62 |0
+<U5DB7> \xEC\xDA |0
+<U5DB8> \xC0\xAF |0
+<U5DBA> \xC0\xAD |0
+<U5DBC> \xC0\xAC |0
+<U5DBD> \xC0\xAE |0
+<U5DC0> \xEF\xC4 |0
+<U5DC2> \xF1\x72 |0
+<U5DC3> \xF1\xFD |0
+<U5DC6> \xF4\x44 |0
+<U5DC7> \xF4\x45 |0
+<U5DC9> \xC4\x60 |0
+<U5DCB> \xF5\xC9 |0
+<U5DCD> \xC4\xDE |0
+<U5DCF> \xF5\xCA |0
+<U5DD1> \xF6\xDE |0
+<U5DD2> \xC5\x72 |0
+<U5DD4> \xC5\x71 |0
+<U5DD5> \xF6\xDD |0
+<U5DD6> \xC5\xC9 |0
+<U5DD8> \xF7\xD6 |0
+<U5DDD> \xA4\x74 |0
+<U5DDE> \xA6\x7B |0
+<U5DDF> \xC9\xDA |0
+<U5DE0> \xCA\xCA |0
+<U5DE1> \xA8\xB5 |0
+<U5DE2> \xB1\x5F |0
+<U5DE5> \xA4\x75 |0
+<U5DE6> \xA5\xAA |0
+<U5DE7> \xA5\xA9 |0
+<U5DE8> \xA5\xA8 |0
+<U5DEB> \xA7\xC5 |0
+<U5DEE> \xAE\x74 |0
+<U5DF0> \xDD\x57 |0
+<U5DF1> \xA4\x76 |0
+<U5DF2> \xA4\x77 |0
+<U5DF3> \xA4\x78 |0
+<U5DF4> \xA4\xDA |0
+<U5DF7> \xAB\xD1 |0
+<U5DF9> \xCE\xAF |0
+<U5DFD> \xB4\x53 |0
+<U5DFE> \xA4\x79 |0
+<U5DFF> \xC9\x5D |0
+<U5E02> \xA5\xAB |0
+<U5E03> \xA5\xAC |0
+<U5E04> \xC9\x78 |0
+<U5E06> \xA6\x7C |0
+<U5E0A> \xCA\xCB |0
+<U5E0C> \xA7\xC6 |0
+<U5E0E> \xCA\xCC |0
+<U5E11> \xA9\xAE |0
+<U5E14> \xCC\x6E |0
+<U5E15> \xA9\xAC |0
+<U5E16> \xA9\xAB |0
+<U5E17> \xCC\x6D |0
+<U5E18> \xA9\xA9 |0
+<U5E19> \xCC\x6F |0
+<U5E1A> \xA9\xAA |0
+<U5E1B> \xA9\xAD |0
+<U5E1D> \xAB\xD2 |0
+<U5E1F> \xAB\xD4 |0
+<U5E20> \xCE\xB3 |0
+<U5E21> \xCE\xB0 |0
+<U5E22> \xCE\xB1 |0
+<U5E23> \xCE\xB2 |0
+<U5E24> \xCE\xB4 |0
+<U5E25> \xAB\xD3 |0
+<U5E28> \xD1\x74 |0
+<U5E29> \xD1\x73 |0
+<U5E2B> \xAE\x76 |0
+<U5E2D> \xAE\x75 |0
+<U5E33> \xB1\x62 |0
+<U5E34> \xD5\x46 |0
+<U5E36> \xB1\x61 |0
+<U5E37> \xB1\x63 |0
+<U5E38> \xB1\x60 |0
+<U5E3D> \xB4\x55 |0
+<U5E3E> \xD5\x45 |0
+<U5E40> \xB4\x56 |0
+<U5E41> \xD8\xF3 |0
+<U5E43> \xB4\x57 |0
+<U5E44> \xD8\xF2 |0
+<U5E45> \xB4\x54 |0
+<U5E4A> \xDD\x5A |0
+<U5E4B> \xDD\x5C |0
+<U5E4C> \xB7\x45 |0
+<U5E4D> \xDD\x5B |0
+<U5E4E> \xDD\x59 |0
+<U5E4F> \xDD\x58 |0
+<U5E53> \xE1\xB4 |0
+<U5E54> \xB9\xF7 |0
+<U5E55> \xB9\xF5 |0
+<U5E57> \xB9\xF6 |0
+<U5E58> \xE1\xB2 |0
+<U5E59> \xE1\xB3 |0
+<U5E5B> \xB9\xF3 |0
+<U5E5C> \xE5\x71 |0
+<U5E5D> \xE5\x6F |0
+<U5E5F> \xBC\x6D |0
+<U5E60> \xE5\x70 |0
+<U5E61> \xBC\x6E |0
+<U5E62> \xBC\x6C |0
+<U5E63> \xB9\xF4 |0
+<U5E66> \xE9\x6D |0
+<U5E67> \xE9\x6B |0
+<U5E68> \xE9\x6C |0
+<U5E69> \xE5\x6E |0
+<U5E6A> \xEC\xDC |0
+<U5E6B> \xC0\xB0 |0
+<U5E6C> \xEC\xDB |0
+<U5E6D> \xEF\xC5 |0
+<U5E6E> \xEF\xC6 |0
+<U5E6F> \xE9\x6E |0
+<U5E70> \xF1\xFE |0
+<U5E72> \xA4\x7A |0
+<U5E73> \xA5\xAD |0
+<U5E74> \xA6\x7E |0
+<U5E75> \xC9\xDB |0
+<U5E76> \xA6\x7D |0
+<U5E78> \xA9\xAF |0
+<U5E79> \xB7\x46 |0
+<U5E7B> \xA4\xDB |0
+<U5E7C> \xA5\xAE |0
+<U5E7D> \xAB\xD5 |0
+<U5E7E> \xB4\x58 |0
+<U5E80> \xC9\x79 |0
+<U5E82> \xC9\x7A |0
+<U5E84> \xC9\xDC |0
+<U5E87> \xA7\xC8 |0
+<U5E88> \xCA\xD0 |0
+<U5E89> \xCA\xCE |0
+<U5E8A> \xA7\xC9 |0
+<U5E8B> \xCA\xCD |0
+<U5E8C> \xCA\xCF |0
+<U5E8D> \xCA\xD1 |0
+<U5E8F> \xA7\xC7 |0
+<U5E95> \xA9\xB3 |0
+<U5E96> \xA9\xB4 |0
+<U5E97> \xA9\xB1 |0
+<U5E9A> \xA9\xB0 |0
+<U5E9B> \xCE\xB8 |0
+<U5E9C> \xA9\xB2 |0
+<U5EA0> \xAB\xD6 |0
+<U5EA2> \xCE\xB7 |0
+<U5EA3> \xCE\xB9 |0
+<U5EA4> \xCE\xB6 |0
+<U5EA5> \xCE\xBA |0
+<U5EA6> \xAB\xD7 |0
+<U5EA7> \xAE\x79 |0
+<U5EA8> \xD1\x75 |0
+<U5EAA> \xD1\x77 |0
+<U5EAB> \xAE\x77 |0
+<U5EAC> \xD1\x78 |0
+<U5EAD> \xAE\x78 |0
+<U5EAE> \xD1\x76 |0
+<U5EB0> \xCE\xB5 |0
+<U5EB1> \xD5\x47 |0
+<U5EB2> \xD5\x4A |0
+<U5EB3> \xD5\x4B |0
+<U5EB4> \xD5\x48 |0
+<U5EB5> \xB1\x67 |0
+<U5EB6> \xB1\x66 |0
+<U5EB7> \xB1\x64 |0
+<U5EB8> \xB1\x65 |0
+<U5EB9> \xD5\x49 |0
+<U5EBE> \xB1\x68 |0
+<U5EC1> \xB4\x5A |0
+<U5EC2> \xB4\x5B |0
+<U5EC4> \xB4\x5C |0
+<U5EC5> \xDD\x5D |0
+<U5EC6> \xDD\x5F |0
+<U5EC7> \xDD\x61 |0
+<U5EC8> \xB7\x48 |0
+<U5EC9> \xB7\x47 |0
+<U5ECA> \xB4\x59 |0
+<U5ECB> \xDD\x60 |0
+<U5ECC> \xDD\x5E |0
+<U5ECE> \xE1\xB8 |0
+<U5ED1> \xE1\xB6 |0
+<U5ED2> \xE1\xBC |0
+<U5ED3> \xB9\xF8 |0
+<U5ED4> \xE1\xBD |0
+<U5ED5> \xE1\xBA |0
+<U5ED6> \xB9\xF9 |0
+<U5ED7> \xE1\xB7 |0
+<U5ED8> \xE1\xB5 |0
+<U5ED9> \xE1\xBB |0
+<U5EDA> \xBC\x70 |0
+<U5EDB> \xE5\x73 |0
+<U5EDC> \xE1\xB9 |0
+<U5EDD> \xBC\x72 |0
+<U5EDE> \xE5\x74 |0
+<U5EDF> \xBC\x71 |0
+<U5EE0> \xBC\x74 |0
+<U5EE1> \xE5\x75 |0
+<U5EE2> \xBC\x6F |0
+<U5EE3> \xBC\x73 |0
+<U5EE5> \xE9\x73 |0
+<U5EE6> \xE9\x71 |0
+<U5EE7> \xE9\x70 |0
+<U5EE8> \xE9\x72 |0
+<U5EE9> \xE9\x6F |0
+<U5EEC> \xC3\x66 |0
+<U5EEE> \xF4\x46 |0
+<U5EEF> \xF4\x47 |0
+<U5EF1> \xF5\xCB |0
+<U5EF2> \xF6\xDF |0
+<U5EF3> \xC6\x55 |0
+<U5EF6> \xA9\xB5 |0
+<U5EF7> \xA7\xCA |0
+<U5EFA> \xAB\xD8 |0
+<U5EFE> \xA4\x7B |0
+<U5EFF> \xA4\xDC |0
+<U5F01> \xA5\xAF |0
+<U5F02> \xC9\xDD |0
+<U5F04> \xA7\xCB |0
+<U5F05> \xCA\xD2 |0
+<U5F07> \xCE\xBB |0
+<U5F08> \xAB\xD9 |0
+<U5F0A> \xB9\xFA |0
+<U5F0B> \xA4\x7C |0
+<U5F0F> \xA6\xA1 |0
+<U5F12> \xB7\x49 |0
+<U5F13> \xA4\x7D |0
+<U5F14> \xA4\xDD |0
+<U5F15> \xA4\xDE |0
+<U5F17> \xA5\xB1 |0
+<U5F18> \xA5\xB0 |0
+<U5F1A> \xC9\xDE |0
+<U5F1B> \xA6\xA2 |0
+<U5F1D> \xCA\xD3 |0
+<U5F1F> \xA7\xCC |0
+<U5F22> \xCC\x71 |0
+<U5F23> \xCC\x72 |0
+<U5F24> \xCC\x73 |0
+<U5F26> \xA9\xB6 |0
+<U5F27> \xA9\xB7 |0
+<U5F28> \xCC\x70 |0
+<U5F29> \xA9\xB8 |0
+<U5F2D> \xAB\xDA |0
+<U5F2E> \xCE\xBC |0
+<U5F30> \xD1\x7A |0
+<U5F31> \xAE\x7A |0
+<U5F33> \xD1\x79 |0
+<U5F35> \xB1\x69 |0
+<U5F36> \xD5\x4C |0
+<U5F37> \xB1\x6A |0
+<U5F38> \xD5\x4D |0
+<U5F3C> \xB4\x5D |0
+<U5F40> \xDD\x62 |0
+<U5F43> \xE1\xBF |0
+<U5F44> \xE1\xBE |0
+<U5F46> \xB9\xFB |0
+<U5F48> \xBC\x75 |0
+<U5F49> \xE5\x76 |0
+<U5F4A> \xBE\xCA |0
+<U5F4B> \xE9\x74 |0
+<U5F4C> \xC0\xB1 |0
+<U5F4E> \xC5\x73 |0
+<U5F4F> \xF7\xD8 |0
+<U5F54> \xCC\x74 |0
+<U5F56> \xCE\xBD |0
+<U5F57> \xB1\x6B |0
+<U5F58> \xD8\xF4 |0
+<U5F59> \xB7\x4A |0
+<U5F5D> \xC2\x55 |0
+<U5F62> \xA7\xCE |0
+<U5F64> \xA7\xCD |0
+<U5F65> \xAB\xDB |0
+<U5F67> \xD1\x7B |0
+<U5F69> \xB1\x6D |0
+<U5F6A> \xB3\x43 |0
+<U5F6B> \xB1\x6E |0
+<U5F6C> \xB1\x6C |0
+<U5F6D> \xB4\x5E |0
+<U5F6F> \xE1\xC0 |0
+<U5F70> \xB9\xFC |0
+<U5F71> \xBC\x76 |0
+<U5F73> \xC9\x4C |0
+<U5F74> \xC9\xDF |0
+<U5F76> \xCA\xD5 |0
+<U5F77> \xA7\xCF |0
+<U5F78> \xCA\xD4 |0
+<U5F79> \xA7\xD0 |0
+<U5F7C> \xA9\xBC |0
+<U5F7D> \xCC\x77 |0
+<U5F7E> \xCC\x76 |0
+<U5F7F> \xA9\xBB |0
+<U5F80> \xA9\xB9 |0
+<U5F81> \xA9\xBA |0
+<U5F82> \xCC\x75 |0
+<U5F85> \xAB\xDD |0
+<U5F86> \xCE\xBE |0
+<U5F87> \xAB\xE0 |0
+<U5F88> \xAB\xDC |0
+<U5F89> \xAB\xE2 |0
+<U5F8A> \xAB\xDE |0
+<U5F8B> \xAB\xDF |0
+<U5F8C> \xAB\xE1 |0
+<U5F90> \xAE\x7D |0
+<U5F91> \xAE\x7C |0
+<U5F92> \xAE\x7B |0
+<U5F96> \xD5\x4F |0
+<U5F97> \xB1\x6F |0
+<U5F98> \xB1\x72 |0
+<U5F99> \xB1\x70 |0
+<U5F9B> \xD5\x4E |0
+<U5F9C> \xB1\x75 |0
+<U5F9E> \xB1\x71 |0
+<U5F9F> \xD5\x50 |0
+<U5FA0> \xB1\x74 |0
+<U5FA1> \xB1\x73 |0
+<U5FA5> \xD8\xF6 |0
+<U5FA6> \xD8\xF5 |0
+<U5FA8> \xB4\x61 |0
+<U5FA9> \xB4\x5F |0
+<U5FAA> \xB4\x60 |0
+<U5FAB> \xD8\xF7 |0
+<U5FAC> \xB7\x4B |0
+<U5FAD> \xDD\x64 |0
+<U5FAE> \xB7\x4C |0
+<U5FAF> \xDD\x63 |0
+<U5FB2> \xE5\x77 |0
+<U5FB5> \xBC\x78 |0
+<U5FB6> \xE1\xC1 |0
+<U5FB7> \xBC\x77 |0
+<U5FB9> \xB9\xFD |0
+<U5FBB> \xEC\xDE |0
+<U5FBC> \xE9\x75 |0
+<U5FBD> \xC0\xB2 |0
+<U5FBE> \xEC\xDD |0
+<U5FBF> \xF2\x40 |0
+<U5FC0> \xF4\x48 |0
+<U5FC1> \xF4\x49 |0
+<U5FC3> \xA4\xDF |0
+<U5FC5> \xA5\xB2 |0
+<U5FC9> \xC9\x7B |0
+<U5FCC> \xA7\xD2 |0
+<U5FCD> \xA7\xD4 |0
+<U5FCF> \xC9\xE2 |0
+<U5FD0> \xCA\xD8 |0
+<U5FD1> \xCA\xD7 |0
+<U5FD2> \xCA\xD6 |0
+<U5FD4> \xC9\xE1 |0
+<U5FD5> \xC9\xE0 |0
+<U5FD6> \xA6\xA4 |0
+<U5FD7> \xA7\xD3 |0
+<U5FD8> \xA7\xD1 |0
+<U5FD9> \xA6\xA3 |0
+<U5FDD> \xA9\xBD |0
+<U5FDE> \xCC\x78 |0
+<U5FE0> \xA9\xBE |0
+<U5FE1> \xCA\xDD |0
+<U5FE3> \xCA\xDF |0
+<U5FE4> \xCA\xDE |0
+<U5FE5> \xCC\x79 |0
+<U5FE8> \xCA\xDA |0
+<U5FEA> \xA7\xD8 |0
+<U5FEB> \xA7\xD6 |0
+<U5FED> \xCA\xD9 |0
+<U5FEE> \xCA\xDB |0
+<U5FEF> \xCA\xE1 |0
+<U5FF1> \xA7\xD5 |0
+<U5FF3> \xCA\xDC |0
+<U5FF4> \xCA\xE5 |0
+<U5FF5> \xA9\xC0 |0
+<U5FF7> \xCA\xE2 |0
+<U5FF8> \xA7\xD7 |0
+<U5FFA> \xCA\xE0 |0
+<U5FFB> \xCA\xE3 |0
+<U5FFD> \xA9\xBF |0
+<U5FFF> \xA9\xC1 |0
+<U6000> \xCA\xE4 |0
+<U6009> \xCC\xAF |0
+<U600A> \xCC\xA2 |0
+<U600B> \xCC\x7E |0
+<U600C> \xCC\xAE |0
+<U600D> \xCC\xA9 |0
+<U600E> \xAB\xE7 |0
+<U600F> \xA9\xC2 |0
+<U6010> \xCC\xAA |0
+<U6011> \xCC\xAD |0
+<U6012> \xAB\xE3 |0
+<U6013> \xCC\xAC |0
+<U6014> \xA9\xC3 |0
+<U6015> \xA9\xC8 |0
+<U6016> \xA9\xC6 |0
+<U6017> \xCC\xA3 |0
+<U6019> \xCC\x7C |0
+<U601A> \xCC\xA5 |0
+<U601B> \xA9\xCD |0
+<U601C> \xCC\xB0 |0
+<U601D> \xAB\xE4 |0
+<U601E> \xCC\xA6 |0
+<U6020> \xAB\xE5 |0
+<U6021> \xA9\xC9 |0
+<U6022> \xCC\xA8 |0
+<U6024> \xCE\xCD |0
+<U6025> \xAB\xE6 |0
+<U6026> \xCC\x7B |0
+<U6027> \xA9\xCA |0
+<U6028> \xAB\xE8 |0
+<U6029> \xA9\xCB |0
+<U602A> \xA9\xC7 |0
+<U602B> \xA9\xCC |0
+<U602C> \xCC\xA7 |0
+<U602D> \xCC\x7A |0
+<U602E> \xCC\xAB |0
+<U602F> \xA9\xC4 |0
+<U6032> \xCC\x7D |0
+<U6033> \xCC\xA4 |0
+<U6034> \xCC\xA1 |0
+<U6035> \xA9\xC5 |0
+<U6037> \xCE\xBF |0
+<U6039> \xCE\xC0 |0
+<U6040> \xCE\xCA |0
+<U6041> \xD1\xA1 |0
+<U6042> \xCE\xCB |0
+<U6043> \xAB\xEE |0
+<U6044> \xCE\xCE |0
+<U6045> \xCE\xC4 |0
+<U6046> \xAB\xED |0
+<U6047> \xCE\xC6 |0
+<U6049> \xCE\xC7 |0
+<U604C> \xCE\xC9 |0
+<U604D> \xAB\xE9 |0
+<U6050> \xAE\xA3 |0
+<U6052> \xF9\xDA |0
+<U6053> \xCE\xC5 |0
+<U6054> \xCE\xC1 |0
+<U6055> \xAE\xA4 |0
+<U6058> \xCE\xCF |0
+<U6059> \xAE\x7E |0
+<U605A> \xD1\x7D |0
+<U605B> \xCE\xC8 |0
+<U605D> \xD1\x7C |0
+<U605E> \xCE\xC3 |0
+<U605F> \xCE\xCC |0
+<U6062> \xAB\xEC |0
+<U6063> \xAE\xA1 |0
+<U6064> \xAB\xF2 |0
+<U6065> \xAE\xA2 |0
+<U6066> \xCE\xD0 |0
+<U6067> \xD1\x7E |0
+<U6068> \xAB\xEB |0
+<U6069> \xAE\xA6 |0
+<U606A> \xAB\xF1 |0
+<U606B> \xAB\xF0 |0
+<U606C> \xAB\xEF |0
+<U606D> \xAE\xA5 |0
+<U606E> \xCE\xD1 |0
+<U606F> \xAE\xA7 |0
+<U6070> \xAB\xEA |0
+<U6072> \xCE\xC2 |0
+<U607F> \xB1\x76 |0
+<U6080> \xD1\xA4 |0
+<U6081> \xD1\xA6 |0
+<U6083> \xD1\xA8 |0
+<U6084> \xAE\xA8 |0
+<U6085> \xAE\xAE |0
+<U6086> \xD5\x53 |0
+<U6087> \xD1\xAC |0
+<U6088> \xD1\xA3 |0
+<U6089> \xB1\x78 |0
+<U608A> \xD5\x51 |0
+<U608C> \xAE\xAD |0
+<U608D> \xAE\xAB |0
+<U608E> \xD1\xAE |0
+<U6090> \xD5\x52 |0
+<U6092> \xD1\xA5 |0
+<U6094> \xAE\xAC |0
+<U6095> \xD1\xA9 |0
+<U6096> \xAE\xAF |0
+<U6097> \xD1\xAB |0
+<U609A> \xAE\xAA |0
+<U609B> \xD1\xAA |0
+<U609C> \xD1\xAD |0
+<U609D> \xD1\xA7 |0
+<U609F> \xAE\xA9 |0
+<U60A0> \xB1\x79 |0
+<U60A2> \xD1\xA2 |0
+<U60A3> \xB1\x77 |0
+<U60A8> \xB1\x7A |0
+<U60B0> \xD5\x55 |0
+<U60B1> \xD5\x5E |0
+<U60B2> \xB4\x64 |0
+<U60B4> \xB1\x7C |0
+<U60B5> \xB1\xA3 |0
+<U60B6> \xB4\x65 |0
+<U60B7> \xD5\x60 |0
+<U60B8> \xB1\xAA |0
+<U60B9> \xD8\xF9 |0
+<U60BA> \xD5\x56 |0
+<U60BB> \xB1\xA2 |0
+<U60BC> \xB1\xA5 |0
+<U60BD> \xB1\x7E |0
+<U60BE> \xD5\x54 |0
+<U60BF> \xD5\x62 |0
+<U60C0> \xD5\x65 |0
+<U60C1> \xD9\x49 |0
+<U60C3> \xD5\x63 |0
+<U60C4> \xD8\xFD |0
+<U60C5> \xB1\xA1 |0
+<U60C6> \xB1\xA8 |0
+<U60C7> \xB1\xAC |0
+<U60C8> \xD5\x5D |0
+<U60C9> \xD8\xF8 |0
+<U60CA> \xD5\x61 |0
+<U60CB> \xB1\x7B |0
+<U60CC> \xD8\xFA |0
+<U60CD> \xD5\x64 |0
+<U60CE> \xD8\xFC |0
+<U60CF> \xD5\x59 |0
+<U60D1> \xB4\x62 |0
+<U60D3> \xD5\x57 |0
+<U60D4> \xD5\x58 |0
+<U60D5> \xB1\xA7 |0
+<U60D8> \xB1\xA6 |0
+<U60D9> \xD5\x5B |0
+<U60DA> \xB1\xAB |0
+<U60DB> \xD5\x5F |0
+<U60DC> \xB1\xA4 |0
+<U60DD> \xD5\x5C |0
+<U60DF> \xB1\xA9 |0
+<U60E0> \xB4\x66 |0
+<U60E1> \xB4\x63 |0
+<U60E2> \xD8\xFB |0
+<U60E4> \xD5\x5A |0
+<U60E6> \xB1\x7D |0
+<U60F0> \xB4\x6B |0
+<U60F1> \xB4\x6F |0
+<U60F2> \xD9\x40 |0
+<U60F3> \xB7\x51 |0
+<U60F4> \xB4\x6D |0
+<U60F5> \xD9\x44 |0
+<U60F6> \xB4\x71 |0
+<U60F7> \xDD\x65 |0
+<U60F8> \xD9\x46 |0
+<U60F9> \xB7\x53 |0
+<U60FA> \xB4\x69 |0
+<U60FB> \xB4\x6C |0
+<U60FC> \xD9\x47 |0
+<U60FE> \xD9\x48 |0
+<U60FF> \xD9\x4E |0
+<U6100> \xB4\x73 |0
+<U6101> \xB7\x54 |0
+<U6103> \xD9\x4A |0
+<U6104> \xD9\x4F |0
+<U6105> \xD9\x43 |0
+<U6106> \xB7\x5E |0
+<U6108> \xB7\x55 |0
+<U6109> \xB4\x72 |0
+<U610A> \xD9\x41 |0
+<U610B> \xD9\x50 |0
+<U610D> \xB7\x5D |0
+<U610E> \xB4\x70 |0
+<U610F> \xB7\x4E |0
+<U6110> \xD9\x4D |0
+<U6112> \xB4\x74 |0
+<U6113> \xD9\x45 |0
+<U6114> \xD8\xFE |0
+<U6115> \xB4\x6A |0
+<U6116> \xD9\x42 |0
+<U6118> \xD9\x4B |0
+<U611A> \xB7\x4D |0
+<U611B> \xB7\x52 |0
+<U611C> \xB4\x67 |0
+<U611D> \xD9\x4C |0
+<U611F> \xB7\x50 |0
+<U6123> \xB4\x68 |0
+<U6127> \xB7\x5C |0
+<U6128> \xE1\xC3 |0
+<U6129> \xDD\x70 |0
+<U612B> \xDD\x68 |0
+<U612C> \xE1\xC2 |0
+<U612E> \xDD\x6C |0
+<U612F> \xDD\x6E |0
+<U6132> \xDD\x6B |0
+<U6134> \xB7\x5B |0
+<U6136> \xDD\x6A |0
+<U6137> \xB7\x5F |0
+<U613B> \xE1\xD2 |0
+<U613E> \xB7\x5A |0
+<U613F> \xBA\x40 |0
+<U6140> \xDD\x71 |0
+<U6141> \xE1\xC4 |0
+<U6144> \xB7\x58 |0
+<U6145> \xDD\x69 |0
+<U6146> \xDD\x6D |0
+<U6147> \xB9\xFE |0
+<U6148> \xB7\x4F |0
+<U6149> \xDD\x66 |0
+<U614A> \xDD\x67 |0
+<U614B> \xBA\x41 |0
+<U614C> \xB7\x57 |0
+<U614D> \xB7\x59 |0
+<U614E> \xB7\x56 |0
+<U614F> \xDD\x6F |0
+<U6152> \xE1\xC8 |0
+<U6153> \xE1\xC9 |0
+<U6154> \xE1\xCE |0
+<U6155> \xBC\x7D |0
+<U6156> \xE1\xD5 |0
+<U6158> \xBA\x47 |0
+<U615A> \xBA\x46 |0
+<U615B> \xE1\xD0 |0
+<U615D> \xBC\x7C |0
+<U615E> \xE1\xC5 |0
+<U615F> \xBA\x45 |0
+<U6161> \xE1\xD4 |0
+<U6162> \xBA\x43 |0
+<U6163> \xBA\x44 |0
+<U6165> \xE1\xD1 |0
+<U6166> \xE5\xAA |0
+<U6167> \xBC\x7A |0
+<U6168> \xB4\x6E |0
+<U616A> \xE1\xD3 |0
+<U616B> \xBC\xA3 |0
+<U616C> \xE1\xCB |0
+<U616E> \xBC\x7B |0
+<U6170> \xBC\xA2 |0
+<U6171> \xE1\xC6 |0
+<U6172> \xE1\xCA |0
+<U6173> \xE1\xC7 |0
+<U6174> \xE1\xCD |0
+<U6175> \xBA\x48 |0
+<U6176> \xBC\x79 |0
+<U6177> \xBA\x42 |0
+<U6179> \xE5\x7A |0
+<U617A> \xE1\xCF |0
+<U617C> \xBC\xA1 |0
+<U617E> \xBC\xA4 |0
+<U6180> \xE1\xCC |0
+<U6182> \xBC\x7E |0
+<U6183> \xE5\x79 |0
+<U6189> \xE5\x7E |0
+<U618A> \xBE\xCE |0
+<U618B> \xE5\x78 |0
+<U618C> \xE9\xA3 |0
+<U618D> \xE5\xA9 |0
+<U618E> \xBC\xA8 |0
+<U6190> \xBC\xA6 |0
+<U6191> \xBE\xCC |0
+<U6192> \xE5\xA6 |0
+<U6193> \xE5\xA2 |0
+<U6194> \xBC\xAC |0
+<U6196> \xE9\x78 |0
+<U619A> \xBC\xAA |0
+<U619B> \xE5\xA1 |0
+<U619D> \xE9\x76 |0
+<U619F> \xE5\xA5 |0
+<U61A1> \xE5\xA8 |0
+<U61A2> \xE5\x7D |0
+<U61A4> \xBC\xAB |0
+<U61A7> \xBC\xA5 |0
+<U61A8> \xE9\x77 |0
+<U61A9> \xBE\xCD |0
+<U61AA> \xE5\xA7 |0
+<U61AB> \xBC\xA7 |0
+<U61AC> \xBC\xA9 |0
+<U61AD> \xE5\xA4 |0
+<U61AE> \xBC\xAD |0
+<U61AF> \xE5\xA3 |0
+<U61B0> \xE5\x7C |0
+<U61B1> \xE5\x7B |0
+<U61B2> \xBE\xCB |0
+<U61B3> \xE5\xAB |0
+<U61B4> \xE9\x7A |0
+<U61B5> \xEC\xE0 |0
+<U61B6> \xBE\xD0 |0
+<U61B8> \xE9\xA2 |0
+<U61BA> \xE9\x7E |0
+<U61BC> \xEC\xE1 |0
+<U61BE> \xBE\xD1 |0
+<U61BF> \xE9\xA1 |0
+<U61C1> \xE9\x7C |0
+<U61C2> \xC0\xB4 |0
+<U61C3> \xEC\xDF |0
+<U61C5> \xE9\x79 |0
+<U61C6> \xE9\x7B |0
+<U61C7> \xC0\xB5 |0
+<U61C8> \xBE\xD3 |0
+<U61C9> \xC0\xB3 |0
+<U61CA> \xBE\xD2 |0
+<U61CB> \xC0\xB7 |0
+<U61CC> \xE9\x7D |0
+<U61CD> \xBE\xCF |0
+<U61D6> \xEF\xCF |0
+<U61D8> \xEF\xC7 |0
+<U61DE> \xEC\xE7 |0
+<U61DF> \xEF\xC8 |0
+<U61E0> \xEC\xE3 |0
+<U61E3> \xC2\x56 |0
+<U61E4> \xEC\xE5 |0
+<U61E5> \xEC\xE4 |0
+<U61E6> \xC0\xB6 |0
+<U61E7> \xEC\xE2 |0
+<U61E8> \xEC\xE6 |0
+<U61E9> \xEF\xD0 |0
+<U61EA> \xEF\xCC |0
+<U61EB> \xEF\xCE |0
+<U61ED> \xEF\xC9 |0
+<U61EE> \xEF\xCA |0
+<U61F0> \xEF\xCD |0
+<U61F1> \xEF\xCB |0
+<U61F2> \xC3\x67 |0
+<U61F5> \xC3\x6A |0
+<U61F6> \xC3\x69 |0
+<U61F7> \xC3\x68 |0
+<U61F8> \xC4\x61 |0
+<U61F9> \xF4\x4A |0
+<U61FA> \xC4\x62 |0
+<U61FB> \xF2\x41 |0
+<U61FC> \xC4\xDF |0
+<U61FD> \xF5\xCC |0
+<U61FE> \xC4\xE0 |0
+<U61FF> \xC5\x74 |0
+<U6200> \xC5\xCA |0
+<U6201> \xF7\xD9 |0
+<U6203> \xF7\xDA |0
+<U6204> \xF7\xDB |0
+<U6207> \xF9\xBA |0
+<U6208> \xA4\xE0 |0
+<U6209> \xC9\x7C |0
+<U620A> \xA5\xB3 |0
+<U620C> \xA6\xA6 |0
+<U620D> \xA6\xA7 |0
+<U620E> \xA6\xA5 |0
+<U6210> \xA6\xA8 |0
+<U6211> \xA7\xDA |0
+<U6212> \xA7\xD9 |0
+<U6214> \xCC\xB1 |0
+<U6215> \xA9\xCF |0
+<U6216> \xA9\xCE |0
+<U6219> \xD1\xAF |0
+<U621A> \xB1\xAD |0
+<U621B> \xB1\xAE |0
+<U621F> \xB4\x75 |0
+<U6220> \xDD\x72 |0
+<U6221> \xB7\x60 |0
+<U6222> \xB7\x61 |0
+<U6223> \xDD\x74 |0
+<U6224> \xDD\x76 |0
+<U6225> \xDD\x75 |0
+<U6227> \xE1\xD7 |0
+<U6229> \xE1\xD6 |0
+<U622A> \xBA\x49 |0
+<U622B> \xE1\xD8 |0
+<U622D> \xE5\xAC |0
+<U622E> \xBC\xAE |0
+<U6230> \xBE\xD4 |0
+<U6232> \xC0\xB8 |0
+<U6233> \xC2\x57 |0
+<U6234> \xC0\xB9 |0
+<U6236> \xA4\xE1 |0
+<U623A> \xCA\xE6 |0
+<U623D> \xCC\xB2 |0
+<U623E> \xA9\xD1 |0
+<U623F> \xA9\xD0 |0
+<U6240> \xA9\xD2 |0
+<U6241> \xAB\xF3 |0
+<U6242> \xCE\xD2 |0
+<U6243> \xCE\xD3 |0
+<U6246> \xD1\xB0 |0
+<U6247> \xAE\xB0 |0
+<U6248> \xB1\xAF |0
+<U6249> \xB4\x76 |0
+<U624A> \xD9\x51 |0
+<U624B> \xA4\xE2 |0
+<U624D> \xA4\x7E |0
+<U624E> \xA4\xE3 |0
+<U6250> \xC9\x7D |0
+<U6251> \xA5\xB7 |0
+<U6252> \xA5\xB6 |0
+<U6253> \xA5\xB4 |0
+<U6254> \xA5\xB5 |0
+<U6258> \xA6\xAB |0
+<U6259> \xC9\xE9 |0
+<U625A> \xC9\xEB |0
+<U625B> \xA6\xAA |0
+<U625C> \xC9\xE3 |0
+<U625E> \xC9\xE4 |0
+<U6260> \xC9\xEA |0
+<U6261> \xC9\xE6 |0
+<U6262> \xC9\xE8 |0
+<U6263> \xA6\xA9 |0
+<U6264> \xC9\xE5 |0
+<U6265> \xC9\xEC |0
+<U6266> \xC9\xE7 |0
+<U626D> \xA7\xE1 |0
+<U626E> \xA7\xEA |0
+<U626F> \xA7\xE8 |0
+<U6270> \xCA\xF0 |0
+<U6271> \xCA\xED |0
+<U6272> \xCA\xF5 |0
+<U6273> \xA7\xE6 |0
+<U6274> \xCA\xF6 |0
+<U6276> \xA7\xDF |0
+<U6277> \xCA\xF3 |0
+<U6279> \xA7\xE5 |0
+<U627A> \xCA\xEF |0
+<U627B> \xCA\xEE |0
+<U627C> \xA7\xE3 |0
+<U627D> \xCA\xF4 |0
+<U627E> \xA7\xE4 |0
+<U627F> \xA9\xD3 |0
+<U6280> \xA7\xDE |0
+<U6281> \xCA\xF1 |0
+<U6283> \xCA\xE7 |0
+<U6284> \xA7\xDB |0
+<U6286> \xA7\xEE |0
+<U6287> \xCA\xEC |0
+<U6288> \xCA\xF2 |0
+<U6289> \xA7\xE0 |0
+<U628A> \xA7\xE2 |0
+<U628C> \xCA\xE8 |0
+<U628E> \xCA\xE9 |0
+<U628F> \xCA\xEA |0
+<U6291> \xA7\xED |0
+<U6292> \xA7\xE7 |0
+<U6293> \xA7\xEC |0
+<U6294> \xCA\xEB |0
+<U6295> \xA7\xEB |0
+<U6296> \xA7\xDD |0
+<U6297> \xA7\xDC |0
+<U6298> \xA7\xE9 |0
+<U62A8> \xA9\xE1 |0
+<U62A9> \xCC\xBE |0
+<U62AA> \xCC\xB7 |0
+<U62AB> \xA9\xDC |0
+<U62AC> \xA9\xEF |0
+<U62AD> \xCC\xB3 |0
+<U62AE> \xCC\xBA |0
+<U62AF> \xCC\xBC |0
+<U62B0> \xCC\xBF |0
+<U62B1> \xA9\xEA |0
+<U62B3> \xCC\xBB |0
+<U62B4> \xCC\xB4 |0
+<U62B5> \xA9\xE8 |0
+<U62B6> \xCC\xB8 |0
+<U62B8> \xCC\xC0 |0
+<U62B9> \xA9\xD9 |0
+<U62BB> \xCC\xBD |0
+<U62BC> \xA9\xE3 |0
+<U62BD> \xA9\xE2 |0
+<U62BE> \xCC\xB6 |0
+<U62BF> \xA9\xD7 |0
+<U62C2> \xA9\xD8 |0
+<U62C4> \xA9\xD6 |0
+<U62C6> \xA9\xEE |0
+<U62C7> \xA9\xE6 |0
+<U62C8> \xA9\xE0 |0
+<U62C9> \xA9\xD4 |0
+<U62CA> \xCC\xB9 |0
+<U62CB> \xA9\xDF |0
+<U62CC> \xA9\xD5 |0
+<U62CD> \xA9\xE7 |0
+<U62CE> \xA9\xF0 |0
+<U62CF> \xCE\xD4 |0
+<U62D0> \xA9\xE4 |0
+<U62D1> \xCC\xB5 |0
+<U62D2> \xA9\xDA |0
+<U62D3> \xA9\xDD |0
+<U62D4> \xA9\xDE |0
+<U62D6> \xA9\xEC |0
+<U62D7> \xA9\xED |0
+<U62D8> \xA9\xEB |0
+<U62D9> \xA9\xE5 |0
+<U62DA> \xA9\xE9 |0
+<U62DB> \xA9\xDB |0
+<U62DC> \xAB\xF4 |0
+<U62EB> \xCE\xDA |0
+<U62EC> \xAC\x41 |0
+<U62ED> \xAB\xF8 |0
+<U62EE> \xAB\xFA |0
+<U62EF> \xAC\x40 |0
+<U62F0> \xCE\xE6 |0
+<U62F1> \xAB\xFD |0
+<U62F2> \xD1\xB1 |0
+<U62F3> \xAE\xB1 |0
+<U62F4> \xAC\x43 |0
+<U62F5> \xCE\xD7 |0
+<U62F6> \xCE\xDF |0
+<U62F7> \xAB\xFE |0
+<U62F8> \xCE\xDE |0
+<U62F9> \xCE\xDB |0
+<U62FA> \xCE\xE3 |0
+<U62FB> \xCE\xE5 |0
+<U62FC> \xAB\xF7 |0
+<U62FD> \xAB\xFB |0
+<U62FE> \xAC\x42 |0
+<U62FF> \xAE\xB3 |0
+<U6300> \xCE\xE0 |0
+<U6301> \xAB\xF9 |0
+<U6302> \xAC\x45 |0
+<U6303> \xCE\xD9 |0
+<U6307> \xAB\xFC |0
+<U6308> \xAE\xB2 |0
+<U6309> \xAB\xF6 |0
+<U630B> \xCE\xD6 |0
+<U630C> \xCE\xDD |0
+<U630D> \xCE\xD5 |0
+<U630E> \xCE\xD8 |0
+<U630F> \xCE\xDC |0
+<U6310> \xD1\xB2 |0
+<U6311> \xAC\x44 |0
+<U6313> \xCE\xE1 |0
+<U6314> \xCE\xE2 |0
+<U6315> \xCE\xE4 |0
+<U6316> \xAB\xF5 |0
+<U6328> \xAE\xC1 |0
+<U6329> \xD1\xBE |0
+<U632A> \xAE\xBF |0
+<U632B> \xAE\xC0 |0
+<U632C> \xD1\xB4 |0
+<U632D> \xD1\xC4 |0
+<U632F> \xAE\xB6 |0
+<U6332> \xD5\x66 |0
+<U6333> \xD1\xC6 |0
+<U6334> \xD1\xC0 |0
+<U6336> \xD1\xB7 |0
+<U6338> \xD1\xC9 |0
+<U6339> \xD1\xBA |0
+<U633A> \xAE\xBC |0
+<U633B> \xD5\x7D |0
+<U633C> \xD1\xBD |0
+<U633D> \xAE\xBE |0
+<U633E> \xAE\xB5 |0
+<U6340> \xD1\xCB |0
+<U6341> \xD1\xBF |0
+<U6342> \xAE\xB8 |0
+<U6343> \xD1\xB8 |0
+<U6344> \xD1\xB5 |0
+<U6345> \xD1\xB6 |0
+<U6346> \xAE\xB9 |0
+<U6347> \xD1\xC5 |0
+<U6348> \xD1\xCC |0
+<U6349> \xAE\xBB |0
+<U634A> \xD1\xBC |0
+<U634B> \xD1\xBB |0
+<U634C> \xAE\xC3 |0
+<U634D> \xAE\xC2 |0
+<U634E> \xAE\xB4 |0
+<U634F> \xAE\xBA |0
+<U6350> \xAE\xBD |0
+<U6351> \xD1\xC8 |0
+<U6354> \xD1\xC2 |0
+<U6355> \xAE\xB7 |0
+<U6356> \xD1\xB3 |0
+<U6357> \xD1\xCA |0
+<U6358> \xD1\xC1 |0
+<U6359> \xD1\xC3 |0
+<U635A> \xD1\xC7 |0
+<U6365> \xD5\x67 |0
+<U6367> \xB1\xB7 |0
+<U6368> \xB1\xCB |0
+<U6369> \xB1\xCA |0
+<U636B> \xB1\xBF |0
+<U636D> \xD5\x79 |0
+<U636E> \xD5\x75 |0
+<U636F> \xD5\x72 |0
+<U6370> \xD5\xA6 |0
+<U6371> \xB1\xBA |0
+<U6372> \xB1\xB2 |0
+<U6375> \xD5\x77 |0
+<U6376> \xB4\xA8 |0
+<U6377> \xB1\xB6 |0
+<U6378> \xD5\xA1 |0
+<U637A> \xB1\xCC |0
+<U637B> \xB1\xC9 |0
+<U637C> \xD5\x7B |0
+<U637D> \xD5\x6A |0
+<U6380> \xB1\xC8 |0
+<U6381> \xD5\xA3 |0
+<U6382> \xD5\x69 |0
+<U6383> \xB1\xBD |0
+<U6384> \xB1\xC1 |0
+<U6385> \xD5\xA2 |0
+<U6387> \xD5\x73 |0
+<U6388> \xB1\xC2 |0
+<U6389> \xB1\xBC |0
+<U638A> \xD5\x68 |0
+<U638C> \xB4\x78 |0
+<U638D> \xD5\xA5 |0
+<U638E> \xD5\x71 |0
+<U638F> \xB1\xC7 |0
+<U6390> \xD5\x74 |0
+<U6391> \xD5\xA4 |0
+<U6392> \xB1\xC6 |0
+<U6394> \xD9\x52 |0
+<U6396> \xB1\xB3 |0
+<U6397> \xD5\x6F |0
+<U6398> \xB1\xB8 |0
+<U6399> \xB1\xC3 |0
+<U639B> \xB1\xBE |0
+<U639C> \xD5\x78 |0
+<U639D> \xD5\x6E |0
+<U639E> \xD5\x6C |0
+<U639F> \xD5\x7E |0
+<U63A0> \xB1\xB0 |0
+<U63A1> \xB1\xC4 |0
+<U63A2> \xB1\xB4 |0
+<U63A3> \xB4\x77 |0
+<U63A4> \xD5\x7C |0
+<U63A5> \xB1\xB5 |0
+<U63A7> \xB1\xB1 |0
+<U63A8> \xB1\xC0 |0
+<U63A9> \xB1\xBB |0
+<U63AA> \xB1\xB9 |0
+<U63AB> \xD5\x70 |0
+<U63AC> \xB1\xC5 |0
+<U63AD> \xD5\x6D |0
+<U63AE> \xD5\x7A |0
+<U63AF> \xD5\x76 |0
+<U63B0> \xD9\x54 |0
+<U63B1> \xD9\x53 |0
+<U63BD> \xD5\x6B |0
+<U63BE> \xD9\x64 |0
+<U63C0> \xB4\x7A |0
+<U63C2> \xD9\x6A |0
+<U63C3> \xD9\x59 |0
+<U63C4> \xD9\x67 |0
+<U63C5> \xDD\x77 |0
+<U63C6> \xB4\x7D |0
+<U63C7> \xD9\x6B |0
+<U63C8> \xD9\x6E |0
+<U63C9> \xB4\x7C |0
+<U63CA> \xD9\x5C |0
+<U63CB> \xD9\x6D |0
+<U63CC> \xD9\x6C |0
+<U63CD> \xB4\x7E |0
+<U63CE> \xD9\x55 |0
+<U63CF> \xB4\x79 |0
+<U63D0> \xB4\xA3 |0
+<U63D2> \xB4\xA1 |0
+<U63D3> \xD9\x69 |0
+<U63D5> \xD9\x5F |0
+<U63D6> \xB4\xA5 |0
+<U63D7> \xD9\x70 |0
+<U63D8> \xD9\x68 |0
+<U63D9> \xD9\x71 |0
+<U63DA> \xB4\xAD |0
+<U63DB> \xB4\xAB |0
+<U63DC> \xD9\x66 |0
+<U63DD> \xD9\x65 |0
+<U63DF> \xD9\x63 |0
+<U63E0> \xD9\x5D |0
+<U63E1> \xB4\xA4 |0
+<U63E3> \xB4\xA2 |0
+<U63E4> \xD1\xB9 |0
+<U63E5> \xD9\x56 |0
+<U63E7> \xDD\xB7 |0
+<U63E8> \xD9\x57 |0
+<U63E9> \xB4\x7B |0
+<U63EA> \xB4\xAA |0
+<U63EB> \xDD\x79 |0
+<U63ED> \xB4\xA6 |0
+<U63EE> \xB4\xA7 |0
+<U63EF> \xD9\x58 |0
+<U63F0> \xD9\x6F |0
+<U63F1> \xDD\x78 |0
+<U63F2> \xD9\x60 |0
+<U63F3> \xD9\x5B |0
+<U63F4> \xB4\xA9 |0
+<U63F5> \xD9\x61 |0
+<U63F6> \xD9\x5E |0
+<U63F9> \xB4\xAE |0
+<U6406> \xB7\x70 |0
+<U6409> \xDD\x7C |0
+<U640A> \xDD\xB1 |0
+<U640B> \xDD\xB6 |0
+<U640C> \xDD\xAA |0
+<U640D> \xB7\x6C |0
+<U640E> \xDD\xBB |0
+<U640F> \xB7\x69 |0
+<U6410> \xDD\x7A |0
+<U6412> \xDD\x7B |0
+<U6413> \xB7\x62 |0
+<U6414> \xB7\x6B |0
+<U6415> \xDD\xA4 |0
+<U6416> \xB7\x6E |0
+<U6417> \xB7\x6F |0
+<U6418> \xDD\xA5 |0
+<U641A> \xDD\xB2 |0
+<U641B> \xDD\xB8 |0
+<U641C> \xB7\x6A |0
+<U641E> \xB7\x64 |0
+<U641F> \xDD\xA3 |0
+<U6420> \xDD\x7D |0
+<U6421> \xDD\xBA |0
+<U6422> \xDD\xA8 |0
+<U6423> \xDD\xA9 |0
+<U6424> \xDD\x7E |0
+<U6425> \xDD\xB4 |0
+<U6426> \xDD\xAB |0
+<U6427> \xDD\xB5 |0
+<U6428> \xDD\xAD |0
+<U642A> \xB7\x65 |0
+<U642B> \xE1\xD9 |0
+<U642C> \xB7\x68 |0
+<U642D> \xB7\x66 |0
+<U642E> \xDD\xB9 |0
+<U642F> \xDD\xB0 |0
+<U6430> \xDD\xAC |0
+<U6433> \xDD\xA1 |0
+<U6434> \xBA\x53 |0
+<U6435> \xDD\xAF |0
+<U6436> \xB7\x6D |0
+<U6437> \xDD\xA7 |0
+<U6439> \xDD\xA6 |0
+<U643D> \xB7\x67 |0
+<U643E> \xB7\x63 |0
+<U643F> \xE1\xEE |0
+<U6440> \xDD\xB3 |0
+<U6441> \xDD\xAE |0
+<U6443> \xDD\xA2 |0
+<U644B> \xE1\xE9 |0
+<U644D> \xE1\xDA |0
+<U644E> \xE1\xE5 |0
+<U6450> \xE1\xEC |0
+<U6451> \xBA\x51 |0
+<U6452> \xB4\xAC |0
+<U6453> \xE1\xEA |0
+<U6454> \xBA\x4C |0
+<U6458> \xBA\x4B |0
+<U6459> \xE1\xF1 |0
+<U645B> \xE1\xDB |0
+<U645C> \xE1\xE8 |0
+<U645D> \xE1\xDC |0
+<U645E> \xE1\xE7 |0
+<U645F> \xBA\x4F |0
+<U6460> \xE1\xEB |0
+<U6461> \xD9\x62 |0
+<U6465> \xE1\xF2 |0
+<U6466> \xE1\xE3 |0
+<U6467> \xBA\x52 |0
+<U6468> \xE5\xBA |0
+<U6469> \xBC\xAF |0
+<U646B> \xE1\xF0 |0
+<U646C> \xE1\xEF |0
+<U646D> \xBA\x54 |0
+<U646E> \xE5\xAD |0
+<U646F> \xBC\xB0 |0
+<U6470> \xE5\xAE |0
+<U6472> \xE1\xDF |0
+<U6473> \xE1\xE0 |0
+<U6474> \xE1\xDD |0
+<U6475> \xE1\xE2 |0
+<U6476> \xE1\xDE |0
+<U6477> \xE1\xF3 |0
+<U6478> \xBA\x4E |0
+<U6479> \xBC\xB1 |0
+<U647A> \xBA\x50 |0
+<U647B> \xBA\x55 |0
+<U647D> \xE1\xE1 |0
+<U647F> \xE1\xED |0
+<U6482> \xE1\xE6 |0
+<U6485> \xE5\xB1 |0
+<U6487> \xBA\x4A |0
+<U6488> \xBC\xB4 |0
+<U6489> \xE9\xAA |0
+<U648A> \xE5\xB6 |0
+<U648B> \xE5\xB5 |0
+<U648C> \xE5\xB7 |0
+<U648F> \xE5\xB4 |0
+<U6490> \xBC\xB5 |0
+<U6492> \xBC\xBB |0
+<U6493> \xBC\xB8 |0
+<U6495> \xBC\xB9 |0
+<U6496> \xE5\xAF |0
+<U6497> \xE5\xB2 |0
+<U6498> \xE5\xBC |0
+<U6499> \xBC\xC1 |0
+<U649A> \xBC\xBF |0
+<U649C> \xE5\xB3 |0
+<U649D> \xD9\x5A |0
+<U649E> \xBC\xB2 |0
+<U649F> \xE5\xB9 |0
+<U64A0> \xE5\xB0 |0
+<U64A2> \xBC\xC2 |0
+<U64A3> \xE5\xB8 |0
+<U64A4> \xBA\x4D |0
+<U64A5> \xBC\xB7 |0
+<U64A6> \xE1\xE4 |0
+<U64A9> \xBC\xBA |0
+<U64AB> \xBC\xBE |0
+<U64AC> \xBC\xC0 |0
+<U64AD> \xBC\xBD |0
+<U64AE> \xBC\xBC |0
+<U64B0> \xBC\xB6 |0
+<U64B1> \xE5\xBB |0
+<U64B2> \xBC\xB3 |0
+<U64B3> \xBC\xC3 |0
+<U64BB> \xBE\xD8 |0
+<U64BC> \xBE\xD9 |0
+<U64BD> \xE9\xA9 |0
+<U64BE> \xBE\xE2 |0
+<U64BF> \xBE\xDF |0
+<U64C1> \xBE\xD6 |0
+<U64C2> \xBE\xDD |0
+<U64C3> \xE9\xAB |0
+<U64C4> \xBE\xDB |0
+<U64C5> \xBE\xD5 |0
+<U64C7> \xBE\xDC |0
+<U64C9> \xE9\xA8 |0
+<U64CA> \xC0\xBB |0
+<U64CB> \xBE\xD7 |0
+<U64CD> \xBE\xDE |0
+<U64CE> \xC0\xBA |0
+<U64CF> \xE9\xA7 |0
+<U64D0> \xE9\xA6 |0
+<U64D2> \xBE\xE0 |0
+<U64D4> \xBE\xE1 |0
+<U64D6> \xE9\xA5 |0
+<U64D7> \xE9\xA4 |0
+<U64D8> \xC0\xBC |0
+<U64D9> \xE9\xAE |0
+<U64DA> \xBE\xDA |0
+<U64DB> \xE9\xAC |0
+<U64E0> \xC0\xBD |0
+<U64E2> \xC0\xC2 |0
+<U64E3> \xEC\xEA |0
+<U64E4> \xEC\xEC |0
+<U64E6> \xC0\xBF |0
+<U64E8> \xEC\xED |0
+<U64E9> \xEC\xE9 |0
+<U64EB> \xEC\xEB |0
+<U64EC> \xC0\xC0 |0
+<U64ED> \xC0\xC3 |0
+<U64EF> \xEC\xE8 |0
+<U64F0> \xC0\xBE |0
+<U64F1> \xC0\xC1 |0
+<U64F2> \xC2\x59 |0
+<U64F3> \xE9\xAD |0
+<U64F4> \xC2\x58 |0
+<U64F7> \xC2\x5E |0
+<U64F8> \xEF\xD4 |0
+<U64FA> \xC2\x5C |0
+<U64FB> \xC2\x5D |0
+<U64FC> \xEF\xD7 |0
+<U64FD> \xEF\xD3 |0
+<U64FE> \xC2\x5A |0
+<U64FF> \xEF\xD1 |0
+<U6500> \xC3\x6B |0
+<U6501> \xEF\xD5 |0
+<U6503> \xEF\xD6 |0
+<U6504> \xEF\xD2 |0
+<U6506> \xC2\x5B |0
+<U6507> \xF2\x42 |0
+<U6509> \xF2\x45 |0
+<U650C> \xF2\x46 |0
+<U650D> \xF2\x44 |0
+<U650E> \xF2\x47 |0
+<U650F> \xC3\x6C |0
+<U6510> \xF2\x43 |0
+<U6513> \xF4\x4E |0
+<U6514> \xC4\x64 |0
+<U6515> \xF4\x4D |0
+<U6516> \xF4\x4C |0
+<U6517> \xF4\x4B |0
+<U6518> \xC4\x63 |0
+<U6519> \xC4\x65 |0
+<U651B> \xF5\xCD |0
+<U651C> \xC4\xE2 |0
+<U651D> \xC4\xE1 |0
+<U6520> \xF6\xE1 |0
+<U6521> \xF6\xE0 |0
+<U6522> \xF6\xE3 |0
+<U6523> \xC5\xCB |0
+<U6524> \xC5\x75 |0
+<U6525> \xF7\xDD |0
+<U6526> \xF6\xE2 |0
+<U6529> \xF7\xDC |0
+<U652A> \xC5\xCD |0
+<U652B> \xC5\xCC |0
+<U652C> \xC5\xF3 |0
+<U652D> \xF8\xA9 |0
+<U652E> \xF8\xEF |0
+<U652F> \xA4\xE4 |0
+<U6532> \xD9\x72 |0
+<U6533> \xE9\xAF |0
+<U6536> \xA6\xAC |0
+<U6537> \xCA\xF7 |0
+<U6538> \xA7\xF1 |0
+<U6539> \xA7\xEF |0
+<U653B> \xA7\xF0 |0
+<U653D> \xCC\xC1 |0
+<U653E> \xA9\xF1 |0
+<U653F> \xAC\x46 |0
+<U6541> \xCE\xE7 |0
+<U6543> \xCE\xE8 |0
+<U6545> \xAC\x47 |0
+<U6546> \xD1\xCE |0
+<U6548> \xAE\xC4 |0
+<U6549> \xAE\xC5 |0
+<U654A> \xD1\xCD |0
+<U654F> \xB1\xD3 |0
+<U6551> \xB1\xCF |0
+<U6553> \xD5\xA7 |0
+<U6554> \xB1\xD6 |0
+<U6555> \xB1\xD5 |0
+<U6556> \xB1\xCE |0
+<U6557> \xB1\xD1 |0
+<U6558> \xB1\xD4 |0
+<U6559> \xB1\xD0 |0
+<U655C> \xD9\x76 |0
+<U655D> \xB1\xCD |0
+<U655E> \xB4\xAF |0
+<U6562> \xB4\xB1 |0
+<U6563> \xB4\xB2 |0
+<U6564> \xD9\x75 |0
+<U6565> \xD9\x78 |0
+<U6566> \xB4\xB0 |0
+<U6567> \xD9\x73 |0
+<U6568> \xD9\x77 |0
+<U656A> \xD9\x74 |0
+<U656C> \xB7\x71 |0
+<U656F> \xDD\xBC |0
+<U6572> \xBA\x56 |0
+<U6573> \xE1\xF4 |0
+<U6574> \xBE\xE3 |0
+<U6575> \xBC\xC4 |0
+<U6576> \xE5\xBD |0
+<U6577> \xBC\xC5 |0
+<U6578> \xBC\xC6 |0
+<U6579> \xE5\xBF |0
+<U657A> \xE5\xBE |0
+<U657B> \xE5\xC0 |0
+<U657C> \xE9\xB1 |0
+<U657F> \xE9\xB0 |0
+<U6580> \xEC\xEF |0
+<U6581> \xEC\xEE |0
+<U6582> \xC0\xC4 |0
+<U6583> \xC0\xC5 |0
+<U6584> \xF2\x48 |0
+<U6587> \xA4\xE5 |0
+<U658C> \xD9\x79 |0
+<U6590> \xB4\xB4 |0
+<U6591> \xB4\xB3 |0
+<U6592> \xDD\xBD |0
+<U6594> \xEF\xD8 |0
+<U6595> \xC4\xE3 |0
+<U6596> \xF7\xDE |0
+<U6597> \xA4\xE6 |0
+<U6599> \xAE\xC6 |0
+<U659B> \xB1\xD8 |0
+<U659C> \xB1\xD7 |0
+<U659D> \xD9\x7A |0
+<U659E> \xD9\x7B |0
+<U659F> \xB7\x72 |0
+<U65A0> \xE1\xF5 |0
+<U65A1> \xBA\x57 |0
+<U65A2> \xE9\xB2 |0
+<U65A4> \xA4\xE7 |0
+<U65A5> \xA5\xB8 |0
+<U65A7> \xA9\xF2 |0
+<U65A8> \xCC\xC2 |0
+<U65AA> \xCE\xE9 |0
+<U65AB> \xAC\x48 |0
+<U65AC> \xB1\xD9 |0
+<U65AE> \xD9\x7C |0
+<U65AF> \xB4\xB5 |0
+<U65B0> \xB7\x73 |0
+<U65B2> \xE5\xC1 |0
+<U65B3> \xE5\xC2 |0
+<U65B6> \xEC\xF0 |0
+<U65B7> \xC2\x5F |0
+<U65B8> \xF8\xF0 |0
+<U65B9> \xA4\xE8 |0
+<U65BB> \xCC\xC3 |0
+<U65BC> \xA9\xF3 |0
+<U65BD> \xAC\x49 |0
+<U65BF> \xCE\xEA |0
+<U65C1> \xAE\xC7 |0
+<U65C2> \xD1\xD2 |0
+<U65C3> \xD1\xD0 |0
+<U65C4> \xD1\xD1 |0
+<U65C5> \xAE\xC8 |0
+<U65C6> \xD1\xCF |0
+<U65CB> \xB1\xDB |0
+<U65CC> \xB1\xDC |0
+<U65CD> \xD5\xA8 |0
+<U65CE> \xB1\xDD |0
+<U65CF> \xB1\xDA |0
+<U65D0> \xD9\x7D |0
+<U65D2> \xD9\x7E |0
+<U65D3> \xDD\xBE |0
+<U65D6> \xBA\x59 |0
+<U65D7> \xBA\x58 |0
+<U65DA> \xEC\xF1 |0
+<U65DB> \xEF\xD9 |0
+<U65DD> \xF2\x4A |0
+<U65DE> \xF2\x49 |0
+<U65DF> \xF4\x4F |0
+<U65E1> \xC9\x5E |0
+<U65E2> \xAC\x4A |0
+<U65E5> \xA4\xE9 |0
+<U65E6> \xA5\xB9 |0
+<U65E8> \xA6\xAE |0
+<U65E9> \xA6\xAD |0
+<U65EC> \xA6\xAF |0
+<U65ED> \xA6\xB0 |0
+<U65EE> \xC9\xEE |0
+<U65EF> \xC9\xED |0
+<U65F0> \xCA\xF8 |0
+<U65F1> \xA7\xF2 |0
+<U65F2> \xCA\xFB |0
+<U65F3> \xCA\xFA |0
+<U65F4> \xCA\xF9 |0
+<U65F5> \xCA\xFC |0
+<U65FA> \xA9\xF4 |0
+<U65FB> \xCC\xC9 |0
+<U65FC> \xCC\xC5 |0
+<U65FD> \xCC\xCE |0
+<U6600> \xA9\xFB |0
+<U6602> \xA9\xF9 |0
+<U6603> \xCC\xCA |0
+<U6604> \xCC\xC6 |0
+<U6605> \xCC\xCD |0
+<U6606> \xA9\xF8 |0
+<U6607> \xAA\x40 |0
+<U6608> \xCC\xC8 |0
+<U6609> \xCC\xC4 |0
+<U660A> \xA9\xFE |0
+<U660B> \xCC\xCB |0
+<U660C> \xA9\xF7 |0
+<U660D> \xCC\xCC |0
+<U660E> \xA9\xFA |0
+<U660F> \xA9\xFC |0
+<U6610> \xCC\xD0 |0
+<U6611> \xCC\xCF |0
+<U6612> \xCC\xC7 |0
+<U6613> \xA9\xF6 |0
+<U6614> \xA9\xF5 |0
+<U6615> \xA9\xFD |0
+<U661C> \xCE\xEF |0
+<U661D> \xCE\xF5 |0
+<U661F> \xAC\x50 |0
+<U6620> \xAC\x4D |0
+<U6621> \xCE\xEC |0
+<U6622> \xCE\xF1 |0
+<U6624> \xAC\x53 |0
+<U6625> \xAC\x4B |0
+<U6626> \xCE\xF0 |0
+<U6627> \xAC\x4E |0
+<U6628> \xAC\x51 |0
+<U662B> \xCE\xF3 |0
+<U662D> \xAC\x4C |0
+<U662E> \xCE\xF8 |0
+<U662F> \xAC\x4F |0
+<U6631> \xAC\x52 |0
+<U6632> \xCE\xED |0
+<U6633> \xCE\xF2 |0
+<U6634> \xCE\xF6 |0
+<U6635> \xCE\xEE |0
+<U6636> \xCE\xEB |0
+<U6639> \xCE\xF7 |0
+<U663A> \xCE\xF4 |0
+<U6641> \xAE\xD0 |0
+<U6642> \xAE\xC9 |0
+<U6643> \xAE\xCC |0
+<U6645> \xAE\xCF |0
+<U6647> \xD1\xD5 |0
+<U6649> \xAE\xCA |0
+<U664A> \xD1\xD3 |0
+<U664C> \xAE\xCE |0
+<U664F> \xAE\xCB |0
+<U6651> \xD1\xD6 |0
+<U6652> \xAE\xCD |0
+<U6659> \xD5\xAC |0
+<U665A> \xB1\xDF |0
+<U665B> \xD5\xAB |0
+<U665C> \xD5\xAD |0
+<U665D> \xB1\xDE |0
+<U665E> \xB1\xE3 |0
+<U665F> \xD1\xD4 |0
+<U6661> \xD5\xAA |0
+<U6662> \xD5\xAE |0
+<U6664> \xB1\xE0 |0
+<U6665> \xD5\xA9 |0
+<U6666> \xB1\xE2 |0
+<U6668> \xB1\xE1 |0
+<U666A> \xD9\xA7 |0
+<U666C> \xD9\xA2 |0
+<U666E> \xB4\xB6 |0
+<U666F> \xB4\xBA |0
+<U6670> \xB4\xB7 |0
+<U6671> \xD9\xA5 |0
+<U6672> \xD9\xA8 |0
+<U6674> \xB4\xB8 |0
+<U6676> \xB4\xB9 |0
+<U6677> \xB4\xBE |0
+<U6678> \xDD\xC7 |0
+<U6679> \xD9\xA6 |0
+<U667A> \xB4\xBC |0
+<U667B> \xD9\xA3 |0
+<U667C> \xD9\xA1 |0
+<U667E> \xB4\xBD |0
+<U6680> \xD9\xA4 |0
+<U6684> \xB7\x79 |0
+<U6686> \xDD\xBF |0
+<U6687> \xB7\x76 |0
+<U6688> \xB7\x77 |0
+<U6689> \xB7\x75 |0
+<U668A> \xDD\xC4 |0
+<U668B> \xDD\xC3 |0
+<U668C> \xDD\xC0 |0
+<U668D> \xB7\x7B |0
+<U6690> \xDD\xC2 |0
+<U6691> \xB4\xBB |0
+<U6694> \xDD\xC6 |0
+<U6695> \xDD\xC1 |0
+<U6696> \xB7\x78 |0
+<U6697> \xB7\x74 |0
+<U6698> \xB7\x7A |0
+<U6699> \xDD\xC5 |0
+<U669D> \xBA\x5C |0
+<U669F> \xE1\xF8 |0
+<U66A0> \xE1\xF7 |0
+<U66A1> \xE1\xF6 |0
+<U66A2> \xBA\x5A |0
+<U66A8> \xBA\x5B |0
+<U66A9> \xE5\xC5 |0
+<U66AA> \xE5\xC8 |0
+<U66AB> \xBC\xC8 |0
+<U66AE> \xBC\xC7 |0
+<U66AF> \xE5\xC9 |0
+<U66B0> \xE5\xC4 |0
+<U66B1> \xBC\xCA |0
+<U66B2> \xE5\xC6 |0
+<U66B4> \xBC\xC9 |0
+<U66B5> \xE5\xC3 |0
+<U66B7> \xE5\xC7 |0
+<U66B8> \xBE\xE9 |0
+<U66B9> \xBE\xE6 |0
+<U66BA> \xE9\xBB |0
+<U66BB> \xE9\xBA |0
+<U66BD> \xE9\xB9 |0
+<U66BE> \xE9\xB4 |0
+<U66C0> \xE9\xB5 |0
+<U66C4> \xBE\xE7 |0
+<U66C6> \xBE\xE4 |0
+<U66C7> \xBE\xE8 |0
+<U66C8> \xE9\xB3 |0
+<U66C9> \xBE\xE5 |0
+<U66CA> \xE9\xB6 |0
+<U66CB> \xE9\xB7 |0
+<U66CC> \xE9\xBC |0
+<U66CF> \xE9\xB8 |0
+<U66D2> \xEC\xF2 |0
+<U66D6> \xC0\xC7 |0
+<U66D8> \xEF\xDC |0
+<U66D9> \xC0\xC6 |0
+<U66DA> \xEF\xDA |0
+<U66DB> \xEF\xDB |0
+<U66DC> \xC2\x60 |0
+<U66DD> \xC3\x6E |0
+<U66DE> \xF2\x4B |0
+<U66E0> \xC3\x6D |0
+<U66E3> \xF4\x51 |0
+<U66E4> \xF4\x52 |0
+<U66E6> \xC4\x66 |0
+<U66E8> \xF4\x50 |0
+<U66E9> \xC4\xE4 |0
+<U66EB> \xF7\xDF |0
+<U66EC> \xC5\xCE |0
+<U66ED> \xF8\xAA |0
+<U66EE> \xF8\xAB |0
+<U66F0> \xA4\xEA |0
+<U66F2> \xA6\xB1 |0
+<U66F3> \xA6\xB2 |0
+<U66F4> \xA7\xF3 |0
+<U66F6> \xCC\xD1 |0
+<U66F7> \xAC\x54 |0
+<U66F8> \xAE\xD1 |0
+<U66F9> \xB1\xE4 |0
+<U66FC> \xB0\xD2 |0
+<U66FE> \xB4\xBF |0
+<U66FF> \xB4\xC0 |0
+<U6700> \xB3\xCC |0
+<U6701> \xD9\xA9 |0
+<U6703> \xB7\x7C |0
+<U6704> \xE1\xFA |0
+<U6705> \xE1\xF9 |0
+<U6708> \xA4\xEB |0
+<U6709> \xA6\xB3 |0
+<U670A> \xCC\xD2 |0
+<U670B> \xAA\x42 |0
+<U670D> \xAA\x41 |0
+<U670F> \xCE\xF9 |0
+<U6710> \xCE\xFA |0
+<U6712> \xD1\xD7 |0
+<U6713> \xD1\xD8 |0
+<U6714> \xAE\xD2 |0
+<U6715> \xAE\xD3 |0
+<U6717> \xAE\xD4 |0
+<U6718> \xD5\xAF |0
+<U671B> \xB1\xE6 |0
+<U671D> \xB4\xC2 |0
+<U671F> \xB4\xC1 |0
+<U6720> \xDD\xC8 |0
+<U6721> \xDF\x7A |0
+<U6722> \xE1\xFB |0
+<U6723> \xE9\xBD |0
+<U6726> \xC2\x61 |0
+<U6727> \xC4\x67 |0
+<U6728> \xA4\xEC |0
+<U672A> \xA5\xBC |0
+<U672B> \xA5\xBD |0
+<U672C> \xA5\xBB |0
+<U672D> \xA5\xBE |0
+<U672E> \xA5\xBA |0
+<U6731> \xA6\xB6 |0
+<U6733> \xC9\xF6 |0
+<U6734> \xA6\xB5 |0
+<U6735> \xA6\xB7 |0
+<U6738> \xC9\xF1 |0
+<U6739> \xC9\xF0 |0
+<U673A> \xC9\xF3 |0
+<U673B> \xC9\xF2 |0
+<U673C> \xC9\xF5 |0
+<U673D> \xA6\xB4 |0
+<U673E> \xC9\xEF |0
+<U673F> \xC9\xF4 |0
+<U6745> \xCA\xFD |0
+<U6746> \xA7\xFD |0
+<U6747> \xCA\xFE |0
+<U6748> \xCB\x43 |0
+<U6749> \xA7\xFC |0
+<U674B> \xCB\x47 |0
+<U674C> \xCB\x42 |0
+<U674D> \xCB\x45 |0
+<U674E> \xA7\xF5 |0
+<U674F> \xA7\xF6 |0
+<U6750> \xA7\xF7 |0
+<U6751> \xA7\xF8 |0
+<U6753> \xA8\x40 |0
+<U6755> \xCB\x41 |0
+<U6756> \xA7\xFA |0
+<U6757> \xA8\x41 |0
+<U6759> \xCB\x40 |0
+<U675A> \xCB\x46 |0
+<U675C> \xA7\xF9 |0
+<U675D> \xCB\x44 |0
+<U675E> \xA7\xFB |0
+<U675F> \xA7\xF4 |0
+<U6760> \xA7\xFE |0
+<U676A> \xAA\x57 |0
+<U676C> \xCC\xD4 |0
+<U676D> \xAA\x43 |0
+<U676F> \xAA\x4D |0
+<U6770> \xAA\x4E |0
+<U6771> \xAA\x46 |0
+<U6772> \xAA\x58 |0
+<U6773> \xAA\x48 |0
+<U6774> \xCC\xDC |0
+<U6775> \xAA\x53 |0
+<U6776> \xCC\xD7 |0
+<U6777> \xAA\x49 |0
+<U6778> \xCC\xE6 |0
+<U6779> \xCC\xE7 |0
+<U677A> \xCC\xDF |0
+<U677B> \xCC\xD8 |0
+<U677C> \xAA\x56 |0
+<U677D> \xCC\xE4 |0
+<U677E> \xAA\x51 |0
+<U677F> \xAA\x4F |0
+<U6781> \xCC\xE5 |0
+<U6783> \xCC\xE3 |0
+<U6784> \xCC\xDB |0
+<U6785> \xCC\xD3 |0
+<U6786> \xCC\xDA |0
+<U6787> \xAA\x4A |0
+<U6789> \xAA\x50 |0
+<U678B> \xAA\x44 |0
+<U678C> \xCC\xDE |0
+<U678D> \xCC\xDD |0
+<U678E> \xCC\xD5 |0
+<U6790> \xAA\x52 |0
+<U6791> \xCC\xE1 |0
+<U6792> \xCC\xD6 |0
+<U6793> \xAA\x55 |0
+<U6794> \xCC\xE8 |0
+<U6795> \xAA\x45 |0
+<U6797> \xAA\x4C |0
+<U6798> \xCC\xD9 |0
+<U6799> \xCC\xE2 |0
+<U679A> \xAA\x54 |0
+<U679C> \xAA\x47 |0
+<U679D> \xAA\x4B |0
+<U679F> \xCC\xE0 |0
+<U67AE> \xCF\x5B |0
+<U67AF> \xAC\x5C |0
+<U67B0> \xAC\x69 |0
+<U67B2> \xCF\x56 |0
+<U67B3> \xCF\x4C |0
+<U67B4> \xAC\x62 |0
+<U67B5> \xCF\x4A |0
+<U67B6> \xAC\x5B |0
+<U67B7> \xCF\x45 |0
+<U67B8> \xAC\x65 |0
+<U67B9> \xCF\x52 |0
+<U67BA> \xCE\xFE |0
+<U67BB> \xCF\x41 |0
+<U67C0> \xCF\x44 |0
+<U67C1> \xCE\xFB |0
+<U67C2> \xCF\x51 |0
+<U67C3> \xCF\x61 |0
+<U67C4> \xAC\x60 |0
+<U67C5> \xCF\x46 |0
+<U67C6> \xCF\x58 |0
+<U67C8> \xCE\xFD |0
+<U67C9> \xCF\x5F |0
+<U67CA> \xCF\x60 |0
+<U67CB> \xCF\x63 |0
+<U67CC> \xCF\x5A |0
+<U67CD> \xCF\x4B |0
+<U67CE> \xCF\x53 |0
+<U67CF> \xAC\x66 |0
+<U67D0> \xAC\x59 |0
+<U67D1> \xAC\x61 |0
+<U67D2> \xAC\x6D |0
+<U67D3> \xAC\x56 |0
+<U67D4> \xAC\x58 |0
+<U67D8> \xCF\x43 |0
+<U67D9> \xAC\x6A |0
+<U67DA> \xAC\x63 |0
+<U67DB> \xCF\x5D |0
+<U67DC> \xCF\x40 |0
+<U67DD> \xAC\x6C |0
+<U67DE> \xAC\x67 |0
+<U67DF> \xCF\x49 |0
+<U67E2> \xAC\x6B |0
+<U67E3> \xCF\x50 |0
+<U67E4> \xCF\x48 |0
+<U67E5> \xAC\x64 |0
+<U67E6> \xCF\x5C |0
+<U67E7> \xCF\x54 |0
+<U67E9> \xAC\x5E |0
+<U67EA> \xCF\x62 |0
+<U67EB> \xCF\x47 |0
+<U67EC> \xAC\x5A |0
+<U67ED> \xCF\x59 |0
+<U67EE> \xCF\x4F |0
+<U67EF> \xAC\x5F |0
+<U67F0> \xCF\x55 |0
+<U67F1> \xAC\x57 |0
+<U67F2> \xCE\xFC |0
+<U67F3> \xAC\x68 |0
+<U67F4> \xAE\xE3 |0
+<U67F5> \xAC\x5D |0
+<U67F6> \xCF\x4E |0
+<U67F7> \xCF\x4D |0
+<U67F8> \xCF\x42 |0
+<U67FA> \xCF\x5E |0
+<U67FC> \xCF\x57 |0
+<U67FF> \xAC\x55 |0
+<U6812> \xD1\xEC |0
+<U6813> \xAE\xEA |0
+<U6814> \xD1\xED |0
+<U6816> \xD1\xE1 |0
+<U6817> \xAE\xDF |0
+<U6818> \xAE\xEB |0
+<U681A> \xD1\xDA |0
+<U681C> \xD1\xE3 |0
+<U681D> \xD1\xEB |0
+<U681F> \xD1\xD9 |0
+<U6820> \xD1\xF4 |0
+<U6821> \xAE\xD5 |0
+<U6825> \xD1\xF3 |0
+<U6826> \xD1\xEE |0
+<U6828> \xD1\xEF |0
+<U6829> \xAE\xDD |0
+<U682A> \xAE\xE8 |0
+<U682B> \xD1\xE5 |0
+<U682D> \xD1\xE6 |0
+<U682E> \xD1\xF0 |0
+<U682F> \xD1\xE7 |0
+<U6831> \xD1\xE2 |0
+<U6832> \xD1\xDC |0
+<U6833> \xD1\xDD |0
+<U6834> \xD1\xEA |0
+<U6835> \xD1\xE4 |0
+<U6838> \xAE\xD6 |0
+<U6839> \xAE\xDA |0
+<U683A> \xD1\xF2 |0
+<U683B> \xD1\xDE |0
+<U683C> \xAE\xE6 |0
+<U683D> \xAE\xE2 |0
+<U6840> \xAE\xE5 |0
+<U6841> \xAE\xEC |0
+<U6842> \xAE\xDB |0
+<U6843> \xAE\xE7 |0
+<U6844> \xD1\xE9 |0
+<U6845> \xAE\xE9 |0
+<U6846> \xAE\xD8 |0
+<U6848> \xAE\xD7 |0
+<U6849> \xD1\xDB |0
+<U684B> \xD1\xDF |0
+<U684C> \xAE\xE0 |0
+<U684D> \xD1\xF1 |0
+<U684E> \xD1\xE8 |0
+<U684F> \xD1\xE0 |0
+<U6850> \xAE\xE4 |0
+<U6851> \xAE\xE1 |0
+<U6853> \xAE\xD9 |0
+<U6854> \xAE\xDC |0
+<U686B> \xD5\xC4 |0
+<U686D> \xD5\xB4 |0
+<U686E> \xD5\xB5 |0
+<U686F> \xD5\xB9 |0
+<U6871> \xD5\xC8 |0
+<U6872> \xD5\xC5 |0
+<U6874> \xD5\xBE |0
+<U6875> \xD5\xBD |0
+<U6876> \xB1\xED |0
+<U6877> \xD5\xC1 |0
+<U6878> \xD5\xD0 |0
+<U6879> \xD5\xB0 |0
+<U687B> \xD5\xD1 |0
+<U687C> \xD5\xC3 |0
+<U687D> \xD5\xD5 |0
+<U687E> \xD5\xC9 |0
+<U687F> \xB1\xEC |0
+<U6880> \xD5\xC7 |0
+<U6881> \xB1\xE7 |0
+<U6882> \xB1\xFC |0
+<U6883> \xB1\xF2 |0
+<U6885> \xB1\xF6 |0
+<U6886> \xB1\xF5 |0
+<U6887> \xD5\xB1 |0
+<U6889> \xD5\xCE |0
+<U688A> \xD5\xD4 |0
+<U688B> \xD5\xCC |0
+<U688C> \xD5\xD3 |0
+<U688F> \xD5\xC0 |0
+<U6890> \xD5\xB2 |0
+<U6891> \xD5\xD2 |0
+<U6892> \xD5\xC2 |0
+<U6893> \xB1\xEA |0
+<U6894> \xB1\xF7 |0
+<U6896> \xD5\xCB |0
+<U6897> \xB1\xF0 |0
+<U689B> \xD5\xCA |0
+<U689C> \xD5\xB3 |0
+<U689D> \xB1\xF8 |0
+<U689F> \xB1\xFA |0
+<U68A0> \xD5\xCD |0
+<U68A1> \xB1\xFB |0
+<U68A2> \xB1\xE9 |0
+<U68A3> \xD5\xBA |0
+<U68A4> \xD5\xCF |0
+<U68A7> \xB1\xEF |0
+<U68A8> \xB1\xF9 |0
+<U68A9> \xD5\xBC |0
+<U68AA> \xD5\xC6 |0
+<U68AB> \xD5\xB7 |0
+<U68AC> \xD5\xBB |0
+<U68AD> \xB1\xF4 |0
+<U68AE> \xD5\xB6 |0
+<U68AF> \xB1\xE8 |0
+<U68B0> \xB1\xF1 |0
+<U68B1> \xB1\xEE |0
+<U68B2> \xD5\xBF |0
+<U68B3> \xAE\xDE |0
+<U68B4> \xD9\xC0 |0
+<U68B5> \xB1\xEB |0
+<U68C4> \xB1\xF3 |0
+<U68C6> \xD9\xC3 |0
+<U68C7> \xD9\xD9 |0
+<U68C8> \xD9\xCE |0
+<U68C9> \xB4\xD6 |0
+<U68CB> \xB4\xD1 |0
+<U68CC> \xD9\xBD |0
+<U68CD> \xB4\xD2 |0
+<U68CE> \xD9\xCD |0
+<U68D0> \xD9\xC6 |0
+<U68D1> \xD9\xD3 |0
+<U68D2> \xB4\xCE |0
+<U68D3> \xD9\xAB |0
+<U68D4> \xD9\xD5 |0
+<U68D5> \xB4\xC4 |0
+<U68D6> \xD9\xB3 |0
+<U68D7> \xB4\xC7 |0
+<U68D8> \xB4\xC6 |0
+<U68DA> \xB4\xD7 |0
+<U68DC> \xD9\xAD |0
+<U68DD> \xD9\xCF |0
+<U68DE> \xD9\xD0 |0
+<U68DF> \xB4\xC9 |0
+<U68E0> \xB4\xC5 |0
+<U68E1> \xD9\xBB |0
+<U68E3> \xB4\xD0 |0
+<U68E4> \xD9\xB6 |0
+<U68E6> \xD9\xD1 |0
+<U68E7> \xB4\xCC |0
+<U68E8> \xD9\xC9 |0
+<U68E9> \xD9\xD6 |0
+<U68EA> \xD9\xB0 |0
+<U68EB> \xD9\xB5 |0
+<U68EC> \xD9\xAF |0
+<U68EE> \xB4\xCB |0
+<U68EF> \xD9\xC2 |0
+<U68F0> \xDD\xDE |0
+<U68F1> \xD9\xB1 |0
+<U68F2> \xB4\xCF |0
+<U68F3> \xD9\xBA |0
+<U68F4> \xD9\xD2 |0
+<U68F5> \xB4\xCA |0
+<U68F6> \xD9\xB7 |0
+<U68F7> \xD9\xB4 |0
+<U68F8> \xD9\xC5 |0
+<U68F9> \xB4\xCD |0
+<U68FA> \xB4\xC3 |0
+<U68FB> \xB4\xD9 |0
+<U68FC> \xD9\xC8 |0
+<U68FD> \xD9\xC7 |0
+<U6904> \xD9\xAC |0
+<U6905> \xB4\xC8 |0
+<U6906> \xD9\xD4 |0
+<U6907> \xD9\xBC |0
+<U6908> \xD9\xBE |0
+<U690A> \xD9\xCB |0
+<U690B> \xD9\xCA |0
+<U690C> \xD9\xAA |0
+<U690D> \xB4\xD3 |0
+<U690E> \xB4\xD5 |0
+<U690F> \xD9\xB2 |0
+<U6910> \xD9\xB9 |0
+<U6911> \xD9\xC1 |0
+<U6912> \xB4\xD4 |0
+<U6913> \xD9\xB8 |0
+<U6914> \xD9\xC4 |0
+<U6915> \xD9\xD7 |0
+<U6917> \xD9\xCC |0
+<U6925> \xD9\xD8 |0
+<U692A> \xD9\xAE |0
+<U692F> \xDD\xF2 |0
+<U6930> \xB7\xA6 |0
+<U6932> \xDD\xF0 |0
+<U6933> \xDD\xDB |0
+<U6934> \xDD\xE0 |0
+<U6935> \xDD\xD9 |0
+<U6937> \xDD\xEC |0
+<U6938> \xDD\xCB |0
+<U6939> \xDD\xD2 |0
+<U693B> \xDD\xEA |0
+<U693C> \xDD\xF4 |0
+<U693D> \xDD\xDC |0
+<U693F> \xDD\xCF |0
+<U6940> \xDD\xE2 |0
+<U6941> \xDD\xE7 |0
+<U6942> \xDD\xD3 |0
+<U6944> \xDD\xE4 |0
+<U6945> \xDD\xD0 |0
+<U6948> \xDD\xD7 |0
+<U6949> \xDD\xD8 |0
+<U694A> \xB7\xA8 |0
+<U694B> \xDD\xEB |0
+<U694C> \xDD\xE9 |0
+<U694E> \xDD\xCC |0
+<U694F> \xDD\xEE |0
+<U6951> \xDD\xEF |0
+<U6952> \xDD\xF1 |0
+<U6953> \xB7\xAC |0
+<U6954> \xB7\xA4 |0
+<U6956> \xD5\xB8 |0
+<U6957> \xDD\xD4 |0
+<U6958> \xDD\xE6 |0
+<U6959> \xDD\xD5 |0
+<U695A> \xB7\xA1 |0
+<U695B> \xB7\xB1 |0
+<U695C> \xDD\xED |0
+<U695D> \xB7\xAF |0
+<U695E> \xB7\xAB |0
+<U695F> \xDD\xCA |0
+<U6960> \xB7\xA3 |0
+<U6962> \xDD\xCD |0
+<U6963> \xB7\xB0 |0
+<U6965> \xDD\xDD |0
+<U6966> \xDD\xC9 |0
+<U6968> \xB7\xA9 |0
+<U6969> \xDD\xE1 |0
+<U696A> \xDD\xD1 |0
+<U696B> \xB7\xAA |0
+<U696C> \xDD\xDA |0
+<U696D> \xB7\x7E |0
+<U696E> \xB4\xD8 |0
+<U696F> \xDD\xE3 |0
+<U6970> \xD9\xBF |0
+<U6971> \xDD\xCE |0
+<U6974> \xDD\xE8 |0
+<U6975> \xB7\xA5 |0
+<U6976> \xDD\xE5 |0
+<U6977> \xB7\xA2 |0
+<U6978> \xDD\xDF |0
+<U6979> \xB7\xAD |0
+<U697A> \xDD\xD6 |0
+<U697B> \xDD\xF3 |0
+<U6982> \xB7\xA7 |0
+<U6983> \xDE\xC6 |0
+<U6986> \xB7\xAE |0
+<U698D> \xE2\x4A |0
+<U698E> \xE2\x48 |0
+<U6990> \xE2\x5E |0
+<U6991> \xE2\x46 |0
+<U6993> \xE2\x58 |0
+<U6994> \xB7\x7D |0
+<U6995> \xBA\x5F |0
+<U6996> \xE2\x42 |0
+<U6997> \xE2\x5D |0
+<U6999> \xE2\x47 |0
+<U699A> \xE2\x55 |0
+<U699B> \xBA\x64 |0
+<U699C> \xBA\x5D |0
+<U699E> \xE2\x5B |0
+<U69A0> \xE2\x40 |0
+<U69A1> \xE2\x5A |0
+<U69A3> \xBA\x6F |0
+<U69A4> \xE2\x51 |0
+<U69A5> \xE2\x61 |0
+<U69A6> \xBA\x6D |0
+<U69A7> \xE2\x49 |0
+<U69A8> \xBA\x5E |0
+<U69A9> \xE2\x4B |0
+<U69AA> \xE2\x59 |0
+<U69AB> \xBA\x67 |0
+<U69AC> \xE2\x44 |0
+<U69AD> \xBA\x6B |0
+<U69AE> \xBA\x61 |0
+<U69AF> \xE2\x4D |0
+<U69B0> \xE2\x43 |0
+<U69B1> \xE1\xFC |0
+<U69B3> \xE2\x57 |0
+<U69B4> \xBA\x68 |0
+<U69B5> \xE2\x60 |0
+<U69B6> \xE1\xFD |0
+<U69B7> \xBA\x65 |0
+<U69B9> \xE2\x53 |0
+<U69BB> \xBA\x66 |0
+<U69BC> \xE2\x45 |0
+<U69BD> \xE2\x50 |0
+<U69BE> \xE2\x4C |0
+<U69BF> \xE2\x4E |0
+<U69C1> \xBA\x60 |0
+<U69C2> \xE2\x5F |0
+<U69C3> \xBA\x6E |0
+<U69C4> \xE2\x4F |0
+<U69C6> \xE2\x62 |0
+<U69C9> \xE1\xFE |0
+<U69CA> \xE2\x54 |0
+<U69CB> \xBA\x63 |0
+<U69CC> \xBA\x6C |0
+<U69CD> \xBA\x6A |0
+<U69CE> \xE2\x41 |0
+<U69CF> \xE2\x56 |0
+<U69D0> \xBA\x69 |0
+<U69D3> \xBA\x62 |0
+<U69D4> \xE2\x52 |0
+<U69D9> \xE2\x5C |0
+<U69E2> \xE5\xD5 |0
+<U69E4> \xE5\xD1 |0
+<U69E5> \xE5\xCD |0
+<U69E6> \xE5\xE1 |0
+<U69E7> \xE5\xDE |0
+<U69E8> \xBC\xCD |0
+<U69EB> \xE5\xE5 |0
+<U69EC> \xE5\xD4 |0
+<U69ED> \xBC\xD8 |0
+<U69EE> \xE5\xDB |0
+<U69F1> \xE5\xD0 |0
+<U69F2> \xE5\xDA |0
+<U69F3> \xBC\xD5 |0
+<U69F4> \xE5\xEE |0
+<U69F6> \xE5\xEB |0
+<U69F7> \xE5\xDD |0
+<U69F8> \xE5\xCE |0
+<U69FB> \xE5\xE2 |0
+<U69FC> \xE5\xE4 |0
+<U69FD> \xBC\xD1 |0
+<U69FE> \xE5\xD8 |0
+<U69FF> \xE5\xD3 |0
+<U6A00> \xE5\xCA |0
+<U6A01> \xBC\xCE |0
+<U6A02> \xBC\xD6 |0
+<U6A04> \xE5\xE7 |0
+<U6A05> \xBC\xD7 |0
+<U6A06> \xE5\xCB |0
+<U6A07> \xE5\xED |0
+<U6A08> \xE5\xE0 |0
+<U6A09> \xE5\xE6 |0
+<U6A0A> \xBC\xD4 |0
+<U6A0D> \xE5\xE3 |0
+<U6A0F> \xE5\xEA |0
+<U6A11> \xBC\xD9 |0
+<U6A13> \xBC\xD3 |0
+<U6A14> \xE5\xDC |0
+<U6A15> \xE5\xCF |0
+<U6A16> \xE5\xEF |0
+<U6A17> \xE5\xCC |0
+<U6A18> \xE5\xE8 |0
+<U6A19> \xBC\xD0 |0
+<U6A1B> \xE5\xD6 |0
+<U6A1D> \xE5\xD7 |0
+<U6A1E> \xBC\xCF |0
+<U6A1F> \xBC\xCC |0
+<U6A20> \xE5\xD2 |0
+<U6A21> \xBC\xD2 |0
+<U6A23> \xBC\xCB |0
+<U6A25> \xE5\xE9 |0
+<U6A26> \xE5\xEC |0
+<U6A27> \xE5\xD9 |0
+<U6A28> \xE9\xCA |0
+<U6A32> \xE9\xC2 |0
+<U6A34> \xE9\xBE |0
+<U6A35> \xBE\xF6 |0
+<U6A38> \xBE\xEB |0
+<U6A39> \xBE\xF0 |0
+<U6A3A> \xBE\xEC |0
+<U6A3B> \xE9\xCC |0
+<U6A3C> \xE9\xD7 |0
+<U6A3D> \xBE\xEA |0
+<U6A3E> \xE9\xC4 |0
+<U6A3F> \xE9\xCD |0
+<U6A40> \xE5\xDF |0
+<U6A41> \xE9\xCE |0
+<U6A44> \xBE\xF1 |0
+<U6A46> \xE9\xDD |0
+<U6A47> \xBE\xF5 |0
+<U6A48> \xBE\xF8 |0
+<U6A49> \xE9\xC0 |0
+<U6A4B> \xBE\xF4 |0
+<U6A4D> \xE9\xDB |0
+<U6A4E> \xE9\xDC |0
+<U6A4F> \xE9\xD2 |0
+<U6A50> \xE9\xD1 |0
+<U6A51> \xE9\xC9 |0
+<U6A54> \xE9\xD3 |0
+<U6A55> \xE9\xDA |0
+<U6A56> \xE9\xD9 |0
+<U6A58> \xBE\xEF |0
+<U6A59> \xBE\xED |0
+<U6A5A> \xE9\xCB |0
+<U6A5B> \xE9\xC8 |0
+<U6A5D> \xE9\xC5 |0
+<U6A5E> \xE9\xD8 |0
+<U6A5F> \xBE\xF7 |0
+<U6A60> \xE9\xD6 |0
+<U6A61> \xBE\xF3 |0
+<U6A62> \xBE\xF2 |0
+<U6A64> \xE9\xD0 |0
+<U6A66> \xE9\xBF |0
+<U6A67> \xE9\xC1 |0
+<U6A68> \xE9\xC3 |0
+<U6A69> \xE9\xD5 |0
+<U6A6A> \xE9\xCF |0
+<U6A6B> \xBE\xEE |0
+<U6A6D> \xE9\xC6 |0
+<U6A6F> \xE9\xD4 |0
+<U6A76> \xE9\xC7 |0
+<U6A7E> \xC0\xCF |0
+<U6A7F> \xED\x45 |0
+<U6A80> \xC0\xC8 |0
+<U6A81> \xEC\xF5 |0
+<U6A83> \xED\x41 |0
+<U6A84> \xC0\xCA |0
+<U6A85> \xED\x48 |0
+<U6A87> \xEC\xFC |0
+<U6A89> \xEC\xF7 |0
+<U6A8C> \xED\x49 |0
+<U6A8D> \xEC\xF3 |0
+<U6A8E> \xEC\xFE |0
+<U6A90> \xC0\xD1 |0
+<U6A91> \xED\x44 |0
+<U6A92> \xED\x4A |0
+<U6A93> \xEC\xFD |0
+<U6A94> \xC0\xC9 |0
+<U6A95> \xED\x40 |0
+<U6A96> \xEC\xF4 |0
+<U6A97> \xC0\xD0 |0
+<U6A9A> \xED\x47 |0
+<U6A9B> \xEC\xF9 |0
+<U6A9C> \xC0\xCC |0
+<U6A9E> \xEC\xFB |0
+<U6A9F> \xEC\xF8 |0
+<U6AA0> \xC0\xD2 |0
+<U6AA1> \xEC\xFA |0
+<U6AA2> \xC0\xCB |0
+<U6AA3> \xC0\xCE |0
+<U6AA4> \xED\x43 |0
+<U6AA5> \xEC\xF6 |0
+<U6AA6> \xED\x46 |0
+<U6AA8> \xED\x42 |0
+<U6AAC> \xC2\x63 |0
+<U6AAD> \xEF\xE7 |0
+<U6AAE> \xC2\x68 |0
+<U6AAF> \xC2\x69 |0
+<U6AB3> \xC2\x62 |0
+<U6AB4> \xEF\xE6 |0
+<U6AB6> \xEF\xE3 |0
+<U6AB7> \xEF\xE4 |0
+<U6AB8> \xC2\x66 |0
+<U6AB9> \xEF\xDE |0
+<U6ABA> \xEF\xE2 |0
+<U6ABB> \xC2\x65 |0
+<U6ABD> \xEF\xDF |0
+<U6AC2> \xC2\x67 |0
+<U6AC3> \xC2\x64 |0
+<U6AC5> \xEF\xDD |0
+<U6AC6> \xEF\xE1 |0
+<U6AC7> \xEF\xE5 |0
+<U6ACB> \xF2\x51 |0
+<U6ACC> \xF2\x4E |0
+<U6ACD> \xF2\x57 |0
+<U6ACF> \xF2\x56 |0
+<U6AD0> \xF2\x54 |0
+<U6AD1> \xF2\x4F |0
+<U6AD3> \xC3\x72 |0
+<U6AD9> \xF2\x50 |0
+<U6ADA> \xC3\x71 |0
+<U6ADB> \xC0\xCD |0
+<U6ADC> \xF2\x53 |0
+<U6ADD> \xC3\x70 |0
+<U6ADE> \xF2\x58 |0
+<U6ADF> \xF2\x52 |0
+<U6AE0> \xF2\x4D |0
+<U6AE1> \xEF\xE0 |0
+<U6AE5> \xC3\x6F |0
+<U6AE7> \xF2\x4C |0
+<U6AE8> \xF4\x56 |0
+<U6AEA> \xF4\x55 |0
+<U6AEB> \xF2\x55 |0
+<U6AEC> \xC4\x68 |0
+<U6AEE> \xF4\x59 |0
+<U6AEF> \xF4\x5A |0
+<U6AF0> \xF4\x54 |0
+<U6AF1> \xF4\x58 |0
+<U6AF3> \xF4\x53 |0
+<U6AF8> \xF5\xD1 |0
+<U6AF9> \xF4\x57 |0
+<U6AFA> \xC4\xE7 |0
+<U6AFB> \xC4\xE5 |0
+<U6AFC> \xF5\xCF |0
+<U6B00> \xF5\xD2 |0
+<U6B02> \xF5\xCE |0
+<U6B03> \xF5\xD0 |0
+<U6B04> \xC4\xE6 |0
+<U6B08> \xF6\xE5 |0
+<U6B09> \xF6\xE6 |0
+<U6B0A> \xC5\x76 |0
+<U6B0B> \xF6\xE4 |0
+<U6B0F> \xF7\xE2 |0
+<U6B10> \xC5\xCF |0
+<U6B11> \xF7\xE0 |0
+<U6B12> \xF7\xE1 |0
+<U6B13> \xF8\xAC |0
+<U6B16> \xC6\x56 |0
+<U6B17> \xF8\xF3 |0
+<U6B18> \xF8\xF1 |0
+<U6B19> \xF8\xF2 |0
+<U6B1A> \xF8\xF4 |0
+<U6B1E> \xF9\xBB |0
+<U6B20> \xA4\xED |0
+<U6B21> \xA6\xB8 |0
+<U6B23> \xAA\x59 |0
+<U6B25> \xCC\xE9 |0
+<U6B28> \xCF\x64 |0
+<U6B2C> \xD1\xF5 |0
+<U6B2D> \xD1\xF7 |0
+<U6B2F> \xD1\xF6 |0
+<U6B31> \xD1\xF8 |0
+<U6B32> \xB1\xFD |0
+<U6B33> \xD5\xD7 |0
+<U6B34> \xD1\xF9 |0
+<U6B36> \xD5\xD6 |0
+<U6B37> \xD5\xD8 |0
+<U6B38> \xD5\xD9 |0
+<U6B39> \xD9\xDA |0
+<U6B3A> \xB4\xDB |0
+<U6B3B> \xD9\xDB |0
+<U6B3C> \xD9\xDD |0
+<U6B3D> \xB4\xDC |0
+<U6B3E> \xB4\xDA |0
+<U6B3F> \xD9\xDC |0
+<U6B41> \xDD\xFA |0
+<U6B42> \xDD\xF8 |0
+<U6B43> \xDD\xF7 |0
+<U6B45> \xDD\xF6 |0
+<U6B46> \xDD\xF5 |0
+<U6B47> \xB7\xB2 |0
+<U6B48> \xDD\xF9 |0
+<U6B49> \xBA\x70 |0
+<U6B4A> \xE2\x63 |0
+<U6B4B> \xE2\x65 |0
+<U6B4C> \xBA\x71 |0
+<U6B4D> \xE2\x64 |0
+<U6B4E> \xBC\xDB |0
+<U6B50> \xBC\xDA |0
+<U6B51> \xE5\xF0 |0
+<U6B54> \xE9\xDF |0
+<U6B55> \xE9\xDE |0
+<U6B56> \xE9\xE0 |0
+<U6B59> \xBE\xF9 |0
+<U6B5B> \xED\x4B |0
+<U6B5C> \xC0\xD3 |0
+<U6B5E> \xEF\xE8 |0
+<U6B5F> \xC2\x6A |0
+<U6B60> \xF2\x59 |0
+<U6B61> \xC5\x77 |0
+<U6B62> \xA4\xEE |0
+<U6B63> \xA5\xBF |0
+<U6B64> \xA6\xB9 |0
+<U6B65> \xA8\x42 |0
+<U6B66> \xAA\x5A |0
+<U6B67> \xAA\x5B |0
+<U6B6A> \xAC\x6E |0
+<U6B6D> \xD1\xFA |0
+<U6B72> \xB7\xB3 |0
+<U6B76> \xE6\xD1 |0
+<U6B77> \xBE\xFA |0
+<U6B78> \xC2\x6B |0
+<U6B79> \xA4\xEF |0
+<U6B7B> \xA6\xBA |0
+<U6B7E> \xCC\xEB |0
+<U6B7F> \xAA\x5C |0
+<U6B80> \xCC\xEA |0
+<U6B82> \xCF\x65 |0
+<U6B83> \xAC\x6F |0
+<U6B84> \xCF\x66 |0
+<U6B86> \xAC\x70 |0
+<U6B88> \xD1\xFC |0
+<U6B89> \xAE\xEE |0
+<U6B8A> \xAE\xED |0
+<U6B8C> \xD5\xDE |0
+<U6B8D> \xD5\xDC |0
+<U6B8E> \xD5\xDD |0
+<U6B8F> \xD5\xDB |0
+<U6B91> \xD5\xDA |0
+<U6B94> \xD9\xDE |0
+<U6B95> \xD9\xE1 |0
+<U6B96> \xB4\xDE |0
+<U6B97> \xD9\xDF |0
+<U6B98> \xB4\xDD |0
+<U6B99> \xD9\xE0 |0
+<U6B9B> \xDD\xFB |0
+<U6B9E> \xE2\x66 |0
+<U6B9F> \xE2\x67 |0
+<U6BA0> \xE2\x68 |0
+<U6BA2> \xE5\xF3 |0
+<U6BA3> \xE5\xF2 |0
+<U6BA4> \xBC\xDC |0
+<U6BA5> \xE5\xF1 |0
+<U6BA6> \xE5\xF4 |0
+<U6BA7> \xE9\xE1 |0
+<U6BAA> \xE9\xE2 |0
+<U6BAB> \xE9\xE3 |0
+<U6BAD> \xED\x4C |0
+<U6BAE> \xC0\xD4 |0
+<U6BAF> \xC2\x6C |0
+<U6BB0> \xF2\x5A |0
+<U6BB2> \xC4\xE8 |0
+<U6BB3> \xC9\x5F |0
+<U6BB5> \xAC\x71 |0
+<U6BB6> \xCF\x67 |0
+<U6BB7> \xAE\xEF |0
+<U6BBA> \xB1\xFE |0
+<U6BBC> \xB4\xDF |0
+<U6BBD> \xD9\xE2 |0
+<U6BBF> \xB7\xB5 |0
+<U6BC0> \xB7\xB4 |0
+<U6BC3> \xE2\x69 |0
+<U6BC4> \xE2\x6A |0
+<U6BC5> \xBC\xDD |0
+<U6BC6> \xBC\xDE |0
+<U6BC7> \xE9\xE5 |0
+<U6BC8> \xE9\xE4 |0
+<U6BC9> \xEF\xE9 |0
+<U6BCA> \xF7\xE3 |0
+<U6BCB> \xA4\xF0 |0
+<U6BCC> \xC9\x60 |0
+<U6BCD> \xA5\xC0 |0
+<U6BCF> \xA8\x43 |0
+<U6BD0> \xCB\x48 |0
+<U6BD2> \xAC\x72 |0
+<U6BD3> \xB7\xB6 |0
+<U6BD4> \xA4\xF1 |0
+<U6BD6> \xCF\x68 |0
+<U6BD7> \xAC\x73 |0
+<U6BD8> \xCF\x69 |0
+<U6BDA> \xC0\xD5 |0
+<U6BDB> \xA4\xF2 |0
+<U6BDE> \xCC\xEC |0
+<U6BE0> \xCF\x6A |0
+<U6BE2> \xD2\x42 |0
+<U6BE3> \xD2\x41 |0
+<U6BE4> \xD1\xFE |0
+<U6BE6> \xD1\xFD |0
+<U6BE7> \xD2\x43 |0
+<U6BE8> \xD2\x40 |0
+<U6BEB> \xB2\x40 |0
+<U6BEC> \xB2\x41 |0
+<U6BEF> \xB4\xE0 |0
+<U6BF0> \xD9\xE3 |0
+<U6BF2> \xD9\xE4 |0
+<U6BF3> \xD9\xE5 |0
+<U6BF7> \xDE\x41 |0
+<U6BF8> \xDE\x42 |0
+<U6BF9> \xDE\x40 |0
+<U6BFB> \xDD\xFD |0
+<U6BFC> \xDD\xFE |0
+<U6BFD> \xB7\xB7 |0
+<U6BFE> \xE2\x6B |0
+<U6BFF> \xE5\xF7 |0
+<U6C00> \xE5\xF6 |0
+<U6C01> \xE5\xF5 |0
+<U6C02> \xE5\xF8 |0
+<U6C03> \xE9\xE7 |0
+<U6C04> \xE9\xE6 |0
+<U6C05> \xBE\xFB |0
+<U6C06> \xE9\xE8 |0
+<U6C08> \xC0\xD6 |0
+<U6C09> \xED\x4D |0
+<U6C0B> \xEF\xEA |0
+<U6C0C> \xF2\x5B |0
+<U6C0D> \xF6\xE7 |0
+<U6C0F> \xA4\xF3 |0
+<U6C10> \xA5\xC2 |0
+<U6C11> \xA5\xC1 |0
+<U6C13> \xAA\x5D |0
+<U6C14> \xC9\x61 |0
+<U6C15> \xC9\x7E |0
+<U6C16> \xA6\xBB |0
+<U6C18> \xC9\xF7 |0
+<U6C19> \xCB\x49 |0
+<U6C1A> \xCB\x4A |0
+<U6C1B> \xAA\x5E |0
+<U6C1D> \xCC\xED |0
+<U6C1F> \xAC\x74 |0
+<U6C20> \xCF\x6B |0
+<U6C21> \xCF\x6C |0
+<U6C23> \xAE\xF0 |0
+<U6C24> \xAE\xF4 |0
+<U6C25> \xD2\x44 |0
+<U6C26> \xAE\xF3 |0
+<U6C27> \xAE\xF1 |0
+<U6C28> \xAE\xF2 |0
+<U6C2A> \xD5\xDF |0
+<U6C2B> \xB2\x42 |0
+<U6C2C> \xB4\xE3 |0
+<U6C2E> \xB4\xE1 |0
+<U6C2F> \xB4\xE2 |0
+<U6C30> \xD9\xE6 |0
+<U6C33> \xBA\x72 |0
+<U6C34> \xA4\xF4 |0
+<U6C36> \xC9\xA1 |0
+<U6C38> \xA5\xC3 |0
+<U6C3B> \xC9\xA4 |0
+<U6C3E> \xA5\xC6 |0
+<U6C3F> \xC9\xA3 |0
+<U6C40> \xA5\xC5 |0
+<U6C41> \xA5\xC4 |0
+<U6C42> \xA8\x44 |0
+<U6C43> \xC9\xA2 |0
+<U6C46> \xC9\xF8 |0
+<U6C4A> \xC9\xFC |0
+<U6C4B> \xC9\xFE |0
+<U6C4C> \xCA\x40 |0
+<U6C4D> \xA6\xC5 |0
+<U6C4E> \xA6\xC6 |0
+<U6C4F> \xC9\xFB |0
+<U6C50> \xA6\xC1 |0
+<U6C52> \xC9\xF9 |0
+<U6C54> \xC9\xFD |0
+<U6C55> \xA6\xC2 |0
+<U6C57> \xA6\xBD |0
+<U6C59> \xA6\xBE |0
+<U6C5B> \xA6\xC4 |0
+<U6C5C> \xC9\xFA |0
+<U6C5D> \xA6\xBC |0
+<U6C5E> \xA8\x45 |0
+<U6C5F> \xA6\xBF |0
+<U6C60> \xA6\xC0 |0
+<U6C61> \xA6\xC3 |0
+<U6C65> \xCB\x5B |0
+<U6C66> \xCB\x59 |0
+<U6C67> \xCB\x4C |0
+<U6C68> \xA8\x51 |0
+<U6C69> \xCB\x53 |0
+<U6C6A> \xA8\x4C |0
+<U6C6B> \xCB\x4D |0
+<U6C6D> \xCB\x55 |0
+<U6C6F> \xCB\x52 |0
+<U6C70> \xA8\x4F |0
+<U6C71> \xCB\x51 |0
+<U6C72> \xA8\x56 |0
+<U6C73> \xCB\x5A |0
+<U6C74> \xA8\x58 |0
+<U6C76> \xA8\x5A |0
+<U6C78> \xCB\x4B |0
+<U6C7A> \xA8\x4D |0
+<U6C7B> \xCB\x5C |0
+<U6C7D> \xA8\x54 |0
+<U6C7E> \xA8\x57 |0
+<U6C80> \xCD\x45 |0
+<U6C81> \xA8\x47 |0
+<U6C82> \xA8\x5E |0
+<U6C83> \xA8\x55 |0
+<U6C84> \xCB\x4E |0
+<U6C85> \xA8\x4A |0
+<U6C86> \xA8\x59 |0
+<U6C87> \xCB\x56 |0
+<U6C88> \xA8\x48 |0
+<U6C89> \xA8\x49 |0
+<U6C8A> \xCD\x43 |0
+<U6C8B> \xCB\x4F |0
+<U6C8C> \xA8\x50 |0
+<U6C8D> \xA8\x5B |0
+<U6C8E> \xCB\x5D |0
+<U6C8F> \xCB\x50 |0
+<U6C90> \xA8\x4E |0
+<U6C92> \xA8\x53 |0
+<U6C93> \xCC\xEE |0
+<U6C94> \xA8\x5C |0
+<U6C95> \xCB\x57 |0
+<U6C96> \xA8\x52 |0
+<U6C98> \xA8\x5D |0
+<U6C99> \xA8\x46 |0
+<U6C9A> \xCB\x54 |0
+<U6C9B> \xA8\x4B |0
+<U6C9C> \xCB\x58 |0
+<U6C9D> \xCD\x44 |0
+<U6CAB> \xAA\x6A |0
+<U6CAC> \xAA\x7A |0
+<U6CAD> \xCC\xF5 |0
+<U6CAE> \xAA\x71 |0
+<U6CB0> \xCD\x4B |0
+<U6CB1> \xAA\x62 |0
+<U6CB3> \xAA\x65 |0
+<U6CB4> \xCD\x42 |0
+<U6CB6> \xCC\xF3 |0
+<U6CB7> \xCC\xF7 |0
+<U6CB8> \xAA\x6D |0
+<U6CB9> \xAA\x6F |0
+<U6CBA> \xCC\xFA |0
+<U6CBB> \xAA\x76 |0
+<U6CBC> \xAA\x68 |0
+<U6CBD> \xAA\x66 |0
+<U6CBE> \xAA\x67 |0
+<U6CBF> \xAA\x75 |0
+<U6CC0> \xCD\x47 |0
+<U6CC1> \xAA\x70 |0
+<U6CC2> \xCC\xF9 |0
+<U6CC3> \xCC\xFB |0
+<U6CC4> \xAA\x6E |0
+<U6CC5> \xAA\x73 |0
+<U6CC6> \xCC\xFC |0
+<U6CC7> \xCD\x4A |0
+<U6CC9> \xAC\x75 |0
+<U6CCA> \xAA\x79 |0
+<U6CCC> \xAA\x63 |0
+<U6CCD> \xCD\x49 |0
+<U6CCF> \xCD\x4D |0
+<U6CD0> \xCC\xF8 |0
+<U6CD1> \xCD\x4F |0
+<U6CD2> \xCD\x40 |0
+<U6CD3> \xAA\x6C |0
+<U6CD4> \xCC\xF4 |0
+<U6CD5> \xAA\x6B |0
+<U6CD6> \xAA\x7D |0
+<U6CD7> \xAA\x72 |0
+<U6CD9> \xCC\xF2 |0
+<U6CDA> \xCF\x75 |0
+<U6CDB> \xAA\x78 |0
+<U6CDC> \xAA\x7C |0
+<U6CDD> \xCD\x41 |0
+<U6CDE> \xCD\x46 |0
+<U6CE0> \xAA\x7E |0
+<U6CE1> \xAA\x77 |0
+<U6CE2> \xAA\x69 |0
+<U6CE3> \xAA\x5F |0
+<U6CE5> \xAA\x64 |0
+<U6CE7> \xCC\xF6 |0
+<U6CE8> \xAA\x60 |0
+<U6CE9> \xCD\x4E |0
+<U6CEB> \xCC\xF0 |0
+<U6CEC> \xCC\xEF |0
+<U6CED> \xCC\xFD |0
+<U6CEE> \xCC\xF1 |0
+<U6CEF> \xAA\x7B |0
+<U6CF0> \xAE\xF5 |0
+<U6CF1> \xAA\x74 |0
+<U6CF2> \xCC\xFE |0
+<U6CF3> \xAA\x61 |0
+<U6CF5> \xAC\xA6 |0
+<U6CF9> \xCD\x4C |0
+<U6D00> \xCF\x7C |0
+<U6D01> \xCF\xA1 |0
+<U6D03> \xCF\xA4 |0
+<U6D04> \xCF\x77 |0
+<U6D07> \xCF\xA7 |0
+<U6D08> \xCF\xAA |0
+<U6D09> \xCF\xAC |0
+<U6D0A> \xCF\x74 |0
+<U6D0B> \xAC\x76 |0
+<U6D0C> \xAC\x7B |0
+<U6D0D> \xD2\x49 |0
+<U6D0E> \xAC\xAD |0
+<U6D0F> \xCF\xA5 |0
+<U6D10> \xCF\xAD |0
+<U6D11> \xCF\x7B |0
+<U6D12> \xCF\x73 |0
+<U6D16> \xD2\x64 |0
+<U6D17> \xAC\x7E |0
+<U6D18> \xCF\xA2 |0
+<U6D19> \xCF\x78 |0
+<U6D1A> \xCF\x7A |0
+<U6D1B> \xAC\xA5 |0
+<U6D1D> \xCF\x7D |0
+<U6D1E> \xAC\x7D |0
+<U6D1F> \xCF\x70 |0
+<U6D20> \xCF\xA8 |0
+<U6D22> \xCF\xAB |0
+<U6D25> \xAC\x7A |0
+<U6D27> \xAC\xA8 |0
+<U6D28> \xCF\x6D |0
+<U6D29> \xAC\xAA |0
+<U6D2A> \xAC\x78 |0
+<U6D2B> \xAC\xAE |0
+<U6D2C> \xCF\xA9 |0
+<U6D2D> \xCF\x6F |0
+<U6D2E> \xAC\xAB |0
+<U6D2F> \xD2\x5E |0
+<U6D30> \xCD\x48 |0
+<U6D31> \xAC\x7C |0
+<U6D32> \xAC\x77 |0
+<U6D33> \xCF\x76 |0
+<U6D34> \xCF\x6E |0
+<U6D35> \xAC\xAC |0
+<U6D36> \xAC\xA4 |0
+<U6D37> \xCF\xA3 |0
+<U6D38> \xAC\xA9 |0
+<U6D39> \xAC\xA7 |0
+<U6D3A> \xCF\x79 |0
+<U6D3B> \xAC\xA1 |0
+<U6D3C> \xCF\x71 |0
+<U6D3D> \xAC\xA2 |0
+<U6D3E> \xAC\xA3 |0
+<U6D3F> \xCF\x72 |0
+<U6D40> \xCF\xA6 |0
+<U6D41> \xAC\x79 |0
+<U6D42> \xCF\x7E |0
+<U6D58> \xD2\x4C |0
+<U6D59> \xAE\xFD |0
+<U6D5A> \xAF\x43 |0
+<U6D5E> \xD2\x55 |0
+<U6D5F> \xD2\x5B |0
+<U6D60> \xD2\x57 |0
+<U6D61> \xD2\x4A |0
+<U6D62> \xD2\x4D |0
+<U6D63> \xD2\x46 |0
+<U6D64> \xD2\x47 |0
+<U6D65> \xAF\x4A |0
+<U6D66> \xAE\xFA |0
+<U6D67> \xD2\x56 |0
+<U6D68> \xD2\x5F |0
+<U6D69> \xAF\x45 |0
+<U6D6A> \xAE\xF6 |0
+<U6D6C> \xAF\x40 |0
+<U6D6D> \xD2\x4E |0
+<U6D6E> \xAF\x42 |0
+<U6D6F> \xD2\x4F |0
+<U6D70> \xD2\x59 |0
+<U6D74> \xAF\x44 |0
+<U6D75> \xD2\x68 |0
+<U6D76> \xD2\x48 |0
+<U6D77> \xAE\xFC |0
+<U6D78> \xAE\xFB |0
+<U6D79> \xAF\x48 |0
+<U6D7A> \xD2\x45 |0
+<U6D7B> \xD2\x66 |0
+<U6D7C> \xD2\x5A |0
+<U6D7D> \xD2\x67 |0
+<U6D7E> \xD2\x61 |0
+<U6D7F> \xD2\x53 |0
+<U6D80> \xD2\x62 |0
+<U6D82> \xD2\x5C |0
+<U6D83> \xD2\x65 |0
+<U6D84> \xD2\x63 |0
+<U6D85> \xAF\x49 |0
+<U6D86> \xD2\x54 |0
+<U6D87> \xAE\xF9 |0
+<U6D88> \xAE\xF8 |0
+<U6D89> \xAF\x41 |0
+<U6D8A> \xAF\x47 |0
+<U6D8B> \xD2\x60 |0
+<U6D8C> \xAF\x46 |0
+<U6D8D> \xD2\x51 |0
+<U6D8E> \xB2\x43 |0
+<U6D90> \xD2\x69 |0
+<U6D91> \xD2\x50 |0
+<U6D92> \xD2\x4B |0
+<U6D93> \xAE\xFE |0
+<U6D94> \xAF\x4B |0
+<U6D95> \xAE\xF7 |0
+<U6D97> \xD2\x58 |0
+<U6D98> \xD2\x5D |0
+<U6DAA> \xB2\x65 |0
+<U6DAB> \xD5\xE1 |0
+<U6DAC> \xD5\xE5 |0
+<U6DAE> \xB2\x52 |0
+<U6DAF> \xB2\x50 |0
+<U6DB2> \xB2\x47 |0
+<U6DB3> \xD5\xE3 |0
+<U6DB4> \xD5\xE2 |0
+<U6DB5> \xB2\x5B |0
+<U6DB7> \xD5\xE8 |0
+<U6DB8> \xB2\x55 |0
+<U6DBA> \xD5\xFA |0
+<U6DBB> \xD6\x47 |0
+<U6DBC> \xB2\x44 |0
+<U6DBD> \xD5\xF7 |0
+<U6DBE> \xD5\xF0 |0
+<U6DBF> \xB2\x67 |0
+<U6DC0> \xD5\xE0 |0
+<U6DC2> \xD5\xFC |0
+<U6DC4> \xB2\x64 |0
+<U6DC5> \xB2\x58 |0
+<U6DC6> \xB2\x63 |0
+<U6DC7> \xB2\x4E |0
+<U6DC8> \xD5\xEC |0
+<U6DC9> \xD5\xFE |0
+<U6DCA> \xD5\xF6 |0
+<U6DCB> \xB2\x4F |0
+<U6DCC> \xB2\x49 |0
+<U6DCD> \xD6\x45 |0
+<U6DCF> \xD5\xFD |0
+<U6DD0> \xD6\x40 |0
+<U6DD1> \xB2\x51 |0
+<U6DD2> \xB2\x59 |0
+<U6DD3> \xD6\x42 |0
+<U6DD4> \xD5\xEA |0
+<U6DD5> \xD5\xFB |0
+<U6DD6> \xD5\xEF |0
+<U6DD7> \xD6\x44 |0
+<U6DD8> \xB2\x5E |0
+<U6DD9> \xB2\x46 |0
+<U6DDA> \xB2\x5C |0
+<U6DDB> \xD5\xF4 |0
+<U6DDC> \xD5\xF2 |0
+<U6DDD> \xD5\xF3 |0
+<U6DDE> \xB2\x53 |0
+<U6DDF> \xD5\xEE |0
+<U6DE0> \xD5\xED |0
+<U6DE1> \xB2\x48 |0
+<U6DE2> \xD5\xE7 |0
+<U6DE3> \xD6\x46 |0
+<U6DE4> \xB2\x4A |0
+<U6DE5> \xD5\xF1 |0
+<U6DE6> \xB2\x68 |0
+<U6DE8> \xB2\x62 |0
+<U6DE9> \xD5\xE6 |0
+<U6DEA> \xB2\x5F |0
+<U6DEB> \xB2\x5D |0
+<U6DEC> \xB2\x66 |0
+<U6DED> \xD5\xF8 |0
+<U6DEE> \xB2\x61 |0
+<U6DEF> \xD2\x52 |0
+<U6DF0> \xD5\xF9 |0
+<U6DF1> \xB2\x60 |0
+<U6DF2> \xD6\x41 |0
+<U6DF3> \xB2\x45 |0
+<U6DF4> \xD5\xF5 |0
+<U6DF5> \xB2\x57 |0
+<U6DF6> \xD5\xE9 |0
+<U6DF7> \xB2\x56 |0
+<U6DF9> \xB2\x54 |0
+<U6DFA> \xB2\x4C |0
+<U6DFB> \xB2\x4B |0
+<U6DFC> \xD9\xE7 |0
+<U6DFD> \xD6\x43 |0
+<U6E00> \xD5\xEB |0
+<U6E03> \xD9\xFC |0
+<U6E05> \xB2\x4D |0
+<U6E19> \xB5\x41 |0
+<U6E1A> \xB2\x5A |0
+<U6E1B> \xB4\xEE |0
+<U6E1C> \xD9\xF6 |0
+<U6E1D> \xB4\xFC |0
+<U6E1F> \xD9\xEA |0
+<U6E20> \xB4\xEB |0
+<U6E21> \xB4\xE7 |0
+<U6E22> \xDA\x49 |0
+<U6E23> \xB4\xED |0
+<U6E24> \xB4\xF1 |0
+<U6E25> \xB4\xEC |0
+<U6E26> \xB4\xF5 |0
+<U6E27> \xDA\x4D |0
+<U6E28> \xDA\x44 |0
+<U6E2B> \xD9\xF1 |0
+<U6E2C> \xB4\xFA |0
+<U6E2D> \xB4\xF4 |0
+<U6E2E> \xD9\xFD |0
+<U6E2F> \xB4\xE4 |0
+<U6E30> \xDA\x4A |0
+<U6E31> \xDA\x43 |0
+<U6E32> \xB4\xE8 |0
+<U6E33> \xD9\xF7 |0
+<U6E34> \xB4\xF7 |0
+<U6E35> \xDA\x55 |0
+<U6E36> \xDA\x56 |0
+<U6E38> \xB4\xE5 |0
+<U6E39> \xDA\x48 |0
+<U6E3A> \xB4\xF9 |0
+<U6E3B> \xD9\xFB |0
+<U6E3C> \xD9\xED |0
+<U6E3D> \xD9\xEE |0
+<U6E3E> \xB4\xFD |0
+<U6E3F> \xD9\xF2 |0
+<U6E40> \xD9\xF9 |0
+<U6E41> \xD9\xF3 |0
+<U6E43> \xB4\xFB |0
+<U6E44> \xB5\x44 |0
+<U6E45> \xD9\xEF |0
+<U6E46> \xD9\xE8 |0
+<U6E47> \xD9\xE9 |0
+<U6E49> \xD9\xEB |0
+<U6E4A> \xB4\xEA |0
+<U6E4B> \xD9\xF8 |0
+<U6E4D> \xB4\xF8 |0
+<U6E4E> \xB5\x42 |0
+<U6E51> \xD9\xFA |0
+<U6E52> \xDA\x53 |0
+<U6E53> \xDA\x4B |0
+<U6E54> \xB4\xE6 |0
+<U6E55> \xDA\x51 |0
+<U6E56> \xB4\xF2 |0
+<U6E58> \xB4\xF0 |0
+<U6E5A> \xDA\x57 |0
+<U6E5B> \xB4\xEF |0
+<U6E5C> \xDA\x41 |0
+<U6E5D> \xD9\xF4 |0
+<U6E5E> \xD9\xFE |0
+<U6E5F> \xB5\x47 |0
+<U6E60> \xDA\x45 |0
+<U6E61> \xDA\x42 |0
+<U6E62> \xD9\xF0 |0
+<U6E63> \xB5\x43 |0
+<U6E64> \xDA\x4F |0
+<U6E65> \xDA\x4C |0
+<U6E66> \xDA\x54 |0
+<U6E67> \xB4\xE9 |0
+<U6E68> \xDA\x40 |0
+<U6E69> \xB5\x46 |0
+<U6E6B> \xDA\x47 |0
+<U6E6E> \xB4\xF3 |0
+<U6E6F> \xB4\xF6 |0
+<U6E71> \xDA\x46 |0
+<U6E72> \xB5\x45 |0
+<U6E73> \xD9\xF5 |0
+<U6E74> \xD5\xE4 |0
+<U6E77> \xDA\x50 |0
+<U6E78> \xDA\x4E |0
+<U6E79> \xDA\x52 |0
+<U6E88> \xD9\xEC |0
+<U6E89> \xB5\x40 |0
+<U6E8D> \xDE\x61 |0
+<U6E8E> \xDE\x60 |0
+<U6E8F> \xDE\x46 |0
+<U6E90> \xB7\xBD |0
+<U6E92> \xDE\x5F |0
+<U6E93> \xDE\x49 |0
+<U6E94> \xDE\x4A |0
+<U6E96> \xB7\xC7 |0
+<U6E97> \xDE\x68 |0
+<U6E98> \xB7\xC2 |0
+<U6E99> \xDE\x5E |0
+<U6E9B> \xDE\x43 |0
+<U6E9C> \xB7\xC8 |0
+<U6E9D> \xB7\xBE |0
+<U6E9E> \xDE\x52 |0
+<U6E9F> \xDE\x48 |0
+<U6EA0> \xDE\x4B |0
+<U6EA1> \xDE\x63 |0
+<U6EA2> \xB7\xB8 |0
+<U6EA3> \xDE\x6A |0
+<U6EA4> \xDE\x62 |0
+<U6EA5> \xB7\xC1 |0
+<U6EA6> \xDE\x57 |0
+<U6EA7> \xB7\xCC |0
+<U6EAA> \xB7\xCB |0
+<U6EAB> \xB7\xC5 |0
+<U6EAE> \xDE\x69 |0
+<U6EAF> \xB7\xB9 |0
+<U6EB0> \xDE\x55 |0
+<U6EB1> \xDE\x4C |0
+<U6EB2> \xDE\x59 |0
+<U6EB3> \xDE\x65 |0
+<U6EB4> \xB7\xCD |0
+<U6EB6> \xB7\xBB |0
+<U6EB7> \xDE\x54 |0
+<U6EB9> \xDE\x4D |0
+<U6EBA> \xB7\xC4 |0
+<U6EBC> \xB7\xC3 |0
+<U6EBD> \xDE\x50 |0
+<U6EBE> \xDE\x5A |0
+<U6EBF> \xDE\x64 |0
+<U6EC0> \xDE\x47 |0
+<U6EC1> \xDE\x51 |0
+<U6EC2> \xB7\xBC |0
+<U6EC3> \xDE\x5B |0
+<U6EC4> \xB7\xC9 |0
+<U6EC5> \xB7\xC0 |0
+<U6EC6> \xDE\x4E |0
+<U6EC7> \xB7\xBF |0
+<U6EC8> \xDE\x45 |0
+<U6EC9> \xDE\x53 |0
+<U6ECA> \xDE\x67 |0
+<U6ECB> \xB4\xFE |0
+<U6ECC> \xBA\xB0 |0
+<U6ECD> \xDE\x56 |0
+<U6ECE> \xE2\x6C |0
+<U6ECF> \xDE\x58 |0
+<U6ED0> \xDE\x66 |0
+<U6ED1> \xB7\xC6 |0
+<U6ED2> \xDE\x4F |0
+<U6ED3> \xB7\xBA |0
+<U6ED4> \xB7\xCA |0
+<U6ED5> \xBC\xF0 |0
+<U6ED6> \xDE\x44 |0
+<U6ED8> \xDE\x5D |0
+<U6EDC> \xDE\x5C |0
+<U6EEB> \xE2\xAA |0
+<U6EEC> \xBA\xAD |0
+<U6EED> \xE2\x7D |0
+<U6EEE> \xE2\xA4 |0
+<U6EEF> \xBA\xA2 |0
+<U6EF1> \xE2\x6E |0
+<U6EF2> \xBA\xAF |0
+<U6EF4> \xBA\x77 |0
+<U6EF5> \xE2\x6D |0
+<U6EF6> \xE2\xB0 |0
+<U6EF7> \xBA\xB1 |0
+<U6EF8> \xE2\x71 |0
+<U6EF9> \xE2\xA3 |0
+<U6EFB> \xE2\x73 |0
+<U6EFC> \xE2\xB3 |0
+<U6EFD> \xE2\xAF |0
+<U6EFE> \xBA\x75 |0
+<U6EFF> \xBA\xA1 |0
+<U6F00> \xE6\x53 |0
+<U6F01> \xBA\xAE |0
+<U6F02> \xBA\x7D |0
+<U6F03> \xE2\x6F |0
+<U6F05> \xE2\xAE |0
+<U6F06> \xBA\xA3 |0
+<U6F07> \xE2\xAB |0
+<U6F08> \xE2\xB8 |0
+<U6F09> \xE2\x75 |0
+<U6F0A> \xE2\x7E |0
+<U6F0D> \xE2\xB6 |0
+<U6F0E> \xE2\xAC |0
+<U6F0F> \xBA\x7C |0
+<U6F12> \xE2\x7C |0
+<U6F13> \xBA\x76 |0
+<U6F14> \xBA\x74 |0
+<U6F15> \xBA\xA8 |0
+<U6F18> \xE2\x7A |0
+<U6F19> \xE2\x77 |0
+<U6F1A> \xE2\x78 |0
+<U6F1C> \xE2\xB2 |0
+<U6F1E> \xE2\xB7 |0
+<U6F1F> \xE2\xB5 |0
+<U6F20> \xBA\x7A |0
+<U6F21> \xE2\xB9 |0
+<U6F22> \xBA\x7E |0
+<U6F23> \xBA\xA7 |0
+<U6F25> \xE2\x70 |0
+<U6F26> \xE5\xFA |0
+<U6F27> \xE2\x79 |0
+<U6F29> \xBA\x78 |0
+<U6F2A> \xBA\xAC |0
+<U6F2B> \xBA\xA9 |0
+<U6F2C> \xBA\x7B |0
+<U6F2D> \xE2\xA5 |0
+<U6F2E> \xE2\x74 |0
+<U6F2F> \xBA\xAA |0
+<U6F30> \xE2\xA7 |0
+<U6F31> \xBA\xA4 |0
+<U6F32> \xBA\xA6 |0
+<U6F33> \xBA\x73 |0
+<U6F35> \xE2\xA9 |0
+<U6F36> \xE2\xA1 |0
+<U6F37> \xE2\x72 |0
+<U6F38> \xBA\xA5 |0
+<U6F39> \xE2\xB1 |0
+<U6F3A> \xE2\xB4 |0
+<U6F3B> \xE2\x7B |0
+<U6F3C> \xE2\xA8 |0
+<U6F3E> \xBA\x79 |0
+<U6F3F> \xBC\xDF |0
+<U6F40> \xE2\xA6 |0
+<U6F41> \xE5\xF9 |0
+<U6F43> \xE2\xAD |0
+<U6F4E> \xE2\x76 |0
+<U6F4F> \xE6\x44 |0
+<U6F50> \xE6\x4E |0
+<U6F51> \xBC\xE2 |0
+<U6F52> \xE6\x4D |0
+<U6F53> \xE6\x59 |0
+<U6F54> \xBC\xE4 |0
+<U6F55> \xE6\x4B |0
+<U6F57> \xE6\x4F |0
+<U6F58> \xBC\xEF |0
+<U6F5A> \xE6\x46 |0
+<U6F5B> \xBC\xE7 |0
+<U6F5D> \xE6\x52 |0
+<U6F5E> \xE9\xF0 |0
+<U6F5F> \xBC\xF3 |0
+<U6F60> \xBC\xF2 |0
+<U6F61> \xE6\x54 |0
+<U6F62> \xE6\x43 |0
+<U6F63> \xE6\x5E |0
+<U6F64> \xBC\xED |0
+<U6F66> \xBC\xE3 |0
+<U6F67> \xE6\x57 |0
+<U6F69> \xE6\x5B |0
+<U6F6A> \xE6\x60 |0
+<U6F6B> \xE6\x55 |0
+<U6F6C> \xE6\x49 |0
+<U6F6D> \xBC\xE6 |0
+<U6F6E> \xBC\xE9 |0
+<U6F6F> \xBC\xF1 |0
+<U6F70> \xBC\xEC |0
+<U6F72> \xE6\x4C |0
+<U6F73> \xE2\xA2 |0
+<U6F76> \xE6\x48 |0
+<U6F77> \xE6\x5F |0
+<U6F78> \xBC\xE8 |0
+<U6F7A> \xBC\xEB |0
+<U6F7B> \xE6\x61 |0
+<U6F7C> \xBC\xE0 |0
+<U6F7D> \xE6\x56 |0
+<U6F7E> \xE5\xFB |0
+<U6F7F> \xE6\x5C |0
+<U6F80> \xC0\xDF |0
+<U6F82> \xE6\x4A |0
+<U6F84> \xBC\xE1 |0
+<U6F85> \xE6\x45 |0
+<U6F86> \xBC\xE5 |0
+<U6F87> \xE5\xFC |0
+<U6F88> \xBA\xAB |0
+<U6F89> \xE6\x41 |0
+<U6F8B> \xE6\x5A |0
+<U6F8C> \xE6\x42 |0
+<U6F8D> \xE6\x40 |0
+<U6F8E> \xBC\xEA |0
+<U6F90> \xE6\x58 |0
+<U6F92> \xE5\xFE |0
+<U6F93> \xE6\x51 |0
+<U6F94> \xE6\x50 |0
+<U6F95> \xE6\x5D |0
+<U6F96> \xE6\x47 |0
+<U6F97> \xBC\xEE |0
+<U6F9E> \xE9\xF3 |0
+<U6FA0> \xBF\x49 |0
+<U6FA1> \xBE\xFE |0
+<U6FA2> \xEA\x40 |0
+<U6FA3> \xE9\xEB |0
+<U6FA4> \xBF\x41 |0
+<U6FA5> \xE9\xF7 |0
+<U6FA6> \xBF\x48 |0
+<U6FA7> \xBF\x43 |0
+<U6FA8> \xE9\xF5 |0
+<U6FA9> \xED\x4F |0
+<U6FAA> \xE9\xFB |0
+<U6FAB> \xEA\x42 |0
+<U6FAC> \xE9\xFA |0
+<U6FAD> \xE9\xE9 |0
+<U6FAE> \xE9\xF8 |0
+<U6FAF> \xEA\x44 |0
+<U6FB0> \xEA\x46 |0
+<U6FB1> \xBE\xFD |0
+<U6FB2> \xEA\x45 |0
+<U6FB3> \xBF\x44 |0
+<U6FB4> \xBF\x4A |0
+<U6FB6> \xBF\x47 |0
+<U6FB8> \xE9\xFE |0
+<U6FB9> \xBF\x46 |0
+<U6FBA> \xE9\xF9 |0
+<U6FBC> \xE9\xED |0
+<U6FBD> \xE9\xF2 |0
+<U6FBF> \xE9\xFD |0
+<U6FC0> \xBF\x45 |0
+<U6FC1> \xBF\x42 |0
+<U6FC2> \xBE\xFC |0
+<U6FC3> \xBF\x40 |0
+<U6FC4> \xE9\xF1 |0
+<U6FC6> \xE5\xFD |0
+<U6FC7> \xE9\xEC |0
+<U6FC8> \xE9\xEF |0
+<U6FC9> \xEA\x41 |0
+<U6FCA> \xE9\xF4 |0
+<U6FCB> \xE9\xEA |0
+<U6FCC> \xED\x4E |0
+<U6FCD> \xEA\x43 |0
+<U6FCE> \xE9\xEE |0
+<U6FCF> \xE9\xFC |0
+<U6FD4> \xED\x51 |0
+<U6FD5> \xC0\xE3 |0
+<U6FD8> \xC0\xD7 |0
+<U6FDB> \xC0\xDB |0
+<U6FDC> \xED\x53 |0
+<U6FDD> \xED\x59 |0
+<U6FDE> \xED\x57 |0
+<U6FDF> \xC0\xD9 |0
+<U6FE0> \xC0\xDA |0
+<U6FE1> \xC0\xE1 |0
+<U6FE2> \xED\x5A |0
+<U6FE3> \xED\x52 |0
+<U6FE4> \xC0\xDC |0
+<U6FE6> \xED\x56 |0
+<U6FE7> \xED\x55 |0
+<U6FE8> \xED\x5B |0
+<U6FE9> \xC0\xE2 |0
+<U6FEB> \xC0\xDD |0
+<U6FEC> \xC0\xE0 |0
+<U6FED> \xED\x54 |0
+<U6FEE> \xC0\xE4 |0
+<U6FEF> \xC0\xDE |0
+<U6FF0> \xC0\xE5 |0
+<U6FF1> \xC0\xD8 |0
+<U6FF2> \xED\x58 |0
+<U6FF4> \xED\x50 |0
+<U6FF7> \xEF\xF7 |0
+<U6FFA> \xC2\x71 |0
+<U6FFB> \xEF\xF4 |0
+<U6FFC> \xEF\xF6 |0
+<U6FFE> \xC2\x6F |0
+<U6FFF> \xEF\xF2 |0
+<U7000> \xEF\xF3 |0
+<U7001> \xEF\xEE |0
+<U7004> \xE9\xF6 |0
+<U7005> \xEF\xEF |0
+<U7006> \xC2\x70 |0
+<U7007> \xEF\xEB |0
+<U7009> \xC2\x6D |0
+<U700A> \xEF\xF8 |0
+<U700B> \xC2\x6E |0
+<U700C> \xEF\xEC |0
+<U700D> \xEF\xED |0
+<U700E> \xEF\xF1 |0
+<U700F> \xC2\x73 |0
+<U7011> \xC2\x72 |0
+<U7014> \xEF\xF0 |0
+<U7015> \xC3\x78 |0
+<U7016> \xF2\x5F |0
+<U7017> \xF2\x65 |0
+<U7018> \xC3\x79 |0
+<U7019> \xF2\x5C |0
+<U701A> \xC3\x76 |0
+<U701B> \xC3\x73 |0
+<U701C> \xF2\x67 |0
+<U701D> \xC3\x77 |0
+<U701F> \xC3\x74 |0
+<U7020> \xF2\x5E |0
+<U7021> \xF2\x61 |0
+<U7022> \xF2\x62 |0
+<U7023> \xF2\x63 |0
+<U7024> \xF2\x66 |0
+<U7026> \xEF\xF5 |0
+<U7027> \xF2\x5D |0
+<U7028> \xC3\x75 |0
+<U7029> \xF2\x64 |0
+<U702A> \xF2\x68 |0
+<U702B> \xF2\x60 |0
+<U702F> \xF4\x5D |0
+<U7030> \xC4\x6A |0
+<U7031> \xF4\x60 |0
+<U7032> \xC4\x6B |0
+<U7033> \xF4\x68 |0
+<U7034> \xF4\x5F |0
+<U7035> \xF4\x5C |0
+<U7037> \xF4\x5E |0
+<U7038> \xF4\x62 |0
+<U7039> \xF4\x65 |0
+<U703A> \xF4\x64 |0
+<U703B> \xF4\x67 |0
+<U703C> \xF4\x5B |0
+<U703E> \xC4\x69 |0
+<U703F> \xF4\x63 |0
+<U7040> \xF4\x66 |0
+<U7041> \xF4\x69 |0
+<U7042> \xF4\x61 |0
+<U7043> \xF5\xD3 |0
+<U7044> \xF5\xD4 |0
+<U7045> \xF5\xD8 |0
+<U7046> \xF5\xD9 |0
+<U7048> \xF5\xD6 |0
+<U7049> \xF5\xD7 |0
+<U704A> \xF5\xD5 |0
+<U704C> \xC4\xE9 |0
+<U7051> \xC5\x78 |0
+<U7052> \xF6\xEB |0
+<U7055> \xF6\xE8 |0
+<U7056> \xF6\xE9 |0
+<U7057> \xF6\xEA |0
+<U7058> \xC5\x79 |0
+<U705A> \xF7\xE5 |0
+<U705B> \xF7\xE4 |0
+<U705D> \xF8\xAF |0
+<U705E> \xC5\xF4 |0
+<U705F> \xF8\xAD |0
+<U7060> \xF8\xB0 |0
+<U7061> \xF8\xAE |0
+<U7062> \xF8\xF5 |0
+<U7063> \xC6\x57 |0
+<U7064> \xC6\x65 |0
+<U7065> \xF9\xA3 |0
+<U7066> \xF9\x6C |0
+<U7068> \xF9\xA2 |0
+<U7069> \xF9\xD0 |0
+<U706A> \xF9\xD1 |0
+<U706B> \xA4\xF5 |0
+<U7070> \xA6\xC7 |0
+<U7071> \xCA\x41 |0
+<U7074> \xCB\x5E |0
+<U7076> \xA8\x5F |0
+<U7078> \xA8\x62 |0
+<U707A> \xCB\x5F |0
+<U707C> \xA8\x60 |0
+<U707D> \xA8\x61 |0
+<U7082> \xCD\x58 |0
+<U7083> \xCD\x5A |0
+<U7084> \xCD\x55 |0
+<U7085> \xCD\x52 |0
+<U7086> \xCD\x54 |0
+<U708A> \xAA\xA4 |0
+<U708E> \xAA\xA2 |0
+<U7091> \xCD\x56 |0
+<U7092> \xAA\xA3 |0
+<U7093> \xCD\x53 |0
+<U7094> \xCD\x50 |0
+<U7095> \xAA\xA1 |0
+<U7096> \xCD\x57 |0
+<U7098> \xCD\x51 |0
+<U7099> \xAA\xA5 |0
+<U709A> \xCD\x59 |0
+<U709F> \xCF\xAF |0
+<U70A1> \xCF\xB3 |0
+<U70A4> \xAC\xB7 |0
+<U70A9> \xCF\xB6 |0
+<U70AB> \xAC\xAF |0
+<U70AC> \xAC\xB2 |0
+<U70AD> \xAC\xB4 |0
+<U70AE> \xAC\xB6 |0
+<U70AF> \xAC\xB3 |0
+<U70B0> \xCF\xB2 |0
+<U70B1> \xCF\xB1 |0
+<U70B3> \xAC\xB1 |0
+<U70B4> \xCF\xB4 |0
+<U70B5> \xCF\xB5 |0
+<U70B7> \xCF\xAE |0
+<U70B8> \xAC\xB5 |0
+<U70BA> \xAC\xB0 |0
+<U70BE> \xCF\xB0 |0
+<U70C5> \xD2\x77 |0
+<U70C6> \xD2\x78 |0
+<U70C7> \xD2\x79 |0
+<U70C8> \xAF\x50 |0
+<U70CA> \xAF\x4C |0
+<U70CB> \xD2\x6E |0
+<U70CD> \xD2\x76 |0
+<U70CE> \xD2\x7B |0
+<U70CF> \xAF\x51 |0
+<U70D1> \xD2\x6C |0
+<U70D2> \xD2\x72 |0
+<U70D3> \xD2\x6B |0
+<U70D4> \xD2\x75 |0
+<U70D7> \xD2\x71 |0
+<U70D8> \xAF\x4D |0
+<U70D9> \xAF\x4F |0
+<U70DA> \xD2\x7A |0
+<U70DC> \xD2\x6A |0
+<U70DD> \xD2\x6D |0
+<U70DE> \xD2\x73 |0
+<U70E0> \xD2\x74 |0
+<U70E1> \xD2\x7C |0
+<U70E2> \xD2\x70 |0
+<U70E4> \xAF\x4E |0
+<U70EF> \xB2\x6D |0
+<U70F0> \xD6\x4E |0
+<U70F3> \xD6\x50 |0
+<U70F4> \xD6\x4C |0
+<U70F6> \xD6\x58 |0
+<U70F7> \xD6\x4A |0
+<U70F8> \xD6\x57 |0
+<U70F9> \xB2\x69 |0
+<U70FA> \xD6\x48 |0
+<U70FB> \xDA\x5B |0
+<U70FC> \xD6\x52 |0
+<U70FD> \xB2\x6C |0
+<U70FF> \xD6\x53 |0
+<U7100> \xD6\x56 |0
+<U7102> \xD6\x5A |0
+<U7104> \xD6\x4F |0
+<U7106> \xD6\x54 |0
+<U7109> \xB2\x6A |0
+<U710A> \xB2\x6B |0
+<U710B> \xD6\x59 |0
+<U710C> \xD6\x4D |0
+<U710D> \xD6\x49 |0
+<U710E> \xD6\x5B |0
+<U7110> \xD6\x51 |0
+<U7113> \xD6\x55 |0
+<U7117> \xD6\x4B |0
+<U7119> \xB5\x48 |0
+<U711A> \xB5\x49 |0
+<U711B> \xDA\x65 |0
+<U711C> \xB5\x4F |0
+<U711E> \xDA\x59 |0
+<U711F> \xDA\x62 |0
+<U7120> \xDA\x58 |0
+<U7121> \xB5\x4C |0
+<U7122> \xDA\x60 |0
+<U7123> \xDA\x5E |0
+<U7125> \xDA\x5F |0
+<U7126> \xB5\x4A |0
+<U7128> \xDA\x63 |0
+<U712E> \xDA\x5C |0
+<U712F> \xDA\x5A |0
+<U7130> \xB5\x4B |0
+<U7131> \xDA\x5D |0
+<U7132> \xDA\x61 |0
+<U7136> \xB5\x4D |0
+<U713A> \xDA\x64 |0
+<U7141> \xDE\x70 |0
+<U7142> \xDE\x77 |0
+<U7143> \xDE\x79 |0
+<U7144> \xDE\xA1 |0
+<U7146> \xB7\xDA |0
+<U7147> \xDE\x6B |0
+<U7149> \xB7\xD2 |0
+<U714B> \xDE\x7A |0
+<U714C> \xB7\xD7 |0
+<U714D> \xDE\xA2 |0
+<U714E> \xB7\xCE |0
+<U7150> \xDE\x7D |0
+<U7152> \xDE\x6D |0
+<U7153> \xDE\x7E |0
+<U7154> \xDE\x6C |0
+<U7156> \xB7\xDC |0
+<U7158> \xDE\x78 |0
+<U7159> \xB7\xCF |0
+<U715A> \xDE\xA3 |0
+<U715C> \xB7\xD4 |0
+<U715D> \xDE\x71 |0
+<U715E> \xB7\xD9 |0
+<U715F> \xDE\x7C |0
+<U7160> \xDE\x6F |0
+<U7161> \xDE\x76 |0
+<U7162> \xDE\x72 |0
+<U7163> \xDE\x6E |0
+<U7164> \xB7\xD1 |0
+<U7165> \xB7\xD8 |0
+<U7166> \xB7\xD6 |0
+<U7167> \xB7\xD3 |0
+<U7168> \xB7\xDB |0
+<U7169> \xB7\xD0 |0
+<U716A> \xDE\x75 |0
+<U716C> \xB7\xD5 |0
+<U716E> \xB5\x4E |0
+<U7170> \xDE\x7B |0
+<U7172> \xDE\x73 |0
+<U7178> \xDE\x74 |0
+<U717B> \xE2\xC1 |0
+<U717D> \xBA\xB4 |0
+<U7180> \xE2\xBD |0
+<U7181> \xE2\xC3 |0
+<U7182> \xE2\xBF |0
+<U7184> \xBA\xB6 |0
+<U7185> \xE2\xBE |0
+<U7186> \xE2\xC2 |0
+<U7187> \xE2\xBA |0
+<U7189> \xE2\xBC |0
+<U718A> \xBA\xB5 |0
+<U718F> \xE2\xC0 |0
+<U7190> \xE2\xBB |0
+<U7192> \xBA\xB7 |0
+<U7194> \xBA\xB2 |0
+<U7197> \xE2\xC4 |0
+<U7199> \xBA\xB3 |0
+<U719A> \xE6\x67 |0
+<U719B> \xE6\x64 |0
+<U719C> \xE6\x70 |0
+<U719D> \xE6\x6A |0
+<U719E> \xE6\x6C |0
+<U719F> \xBC\xF4 |0
+<U71A0> \xE6\x66 |0
+<U71A1> \xE6\x6E |0
+<U71A4> \xE6\x6D |0
+<U71A5> \xE6\x6B |0
+<U71A7> \xE6\x71 |0
+<U71A8> \xBC\xF7 |0
+<U71A9> \xE6\x68 |0
+<U71AA> \xE6\x6F |0
+<U71AC> \xBC\xF5 |0
+<U71AF> \xE6\x63 |0
+<U71B0> \xE6\x65 |0
+<U71B1> \xBC\xF6 |0
+<U71B2> \xE6\x62 |0
+<U71B3> \xE6\x72 |0
+<U71B5> \xE6\x69 |0
+<U71B8> \xEA\x4A |0
+<U71B9> \xBF\x51 |0
+<U71BC> \xEA\x55 |0
+<U71BD> \xEA\x53 |0
+<U71BE> \xBF\x4B |0
+<U71BF> \xEA\x49 |0
+<U71C0> \xEA\x4C |0
+<U71C1> \xEA\x4D |0
+<U71C2> \xEA\x48 |0
+<U71C3> \xBF\x55 |0
+<U71C4> \xBF\x56 |0
+<U71C5> \xEA\x47 |0
+<U71C6> \xEA\x56 |0
+<U71C7> \xEA\x51 |0
+<U71C8> \xBF\x4F |0
+<U71C9> \xBF\x4C |0
+<U71CA> \xEA\x50 |0
+<U71CB> \xEA\x4E |0
+<U71CE> \xBF\x52 |0
+<U71CF> \xEA\x52 |0
+<U71D0> \xBF\x4D |0
+<U71D2> \xBF\x4E |0
+<U71D4> \xEA\x4F |0
+<U71D5> \xBF\x50 |0
+<U71D6> \xEA\x4B |0
+<U71D8> \xEA\x54 |0
+<U71D9> \xBF\x53 |0
+<U71DA> \xEA\x57 |0
+<U71DB> \xEA\x58 |0
+<U71DC> \xBF\x54 |0
+<U71DF> \xC0\xE7 |0
+<U71E0> \xC0\xEE |0
+<U71E1> \xED\x5C |0
+<U71E2> \xED\x62 |0
+<U71E4> \xED\x60 |0
+<U71E5> \xC0\xEA |0
+<U71E6> \xC0\xE9 |0
+<U71E7> \xC0\xE6 |0
+<U71E8> \xED\x5E |0
+<U71EC> \xC0\xEC |0
+<U71ED> \xC0\xEB |0
+<U71EE> \xC0\xE8 |0
+<U71F0> \xED\x61 |0
+<U71F1> \xED\x5D |0
+<U71F2> \xED\x5F |0
+<U71F4> \xC0\xED |0
+<U71F8> \xC2\x77 |0
+<U71F9> \xEF\xFB |0
+<U71FB> \xC2\x74 |0
+<U71FC> \xC2\x75 |0
+<U71FD> \xEF\xFD |0
+<U71FE> \xC2\x76 |0
+<U71FF> \xEF\xFA |0
+<U7201> \xEF\xF9 |0
+<U7202> \xF2\x6C |0
+<U7203> \xEF\xFC |0
+<U7205> \xF2\x6D |0
+<U7206> \xC3\x7A |0
+<U7207> \xF2\x6B |0
+<U720A> \xF2\x6A |0
+<U720C> \xF2\x69 |0
+<U720D> \xC3\x7B |0
+<U7210> \xC4\x6C |0
+<U7213> \xF4\x6A |0
+<U7214> \xF4\x6B |0
+<U7219> \xF5\xDC |0
+<U721A> \xF5\xDB |0
+<U721B> \xC4\xEA |0
+<U721D> \xF5\xDA |0
+<U721E> \xF6\xEC |0
+<U721F> \xF6\xED |0
+<U7222> \xF7\xE6 |0
+<U7223> \xF8\xB1 |0
+<U7226> \xF8\xF6 |0
+<U7227> \xF9\xBC |0
+<U7228> \xC6\x79 |0
+<U7229> \xF9\xC6 |0
+<U722A> \xA4\xF6 |0
+<U722C> \xAA\xA6 |0
+<U722D> \xAA\xA7 |0
+<U7230> \xAC\xB8 |0
+<U7235> \xC0\xEF |0
+<U7236> \xA4\xF7 |0
+<U7238> \xAA\xA8 |0
+<U7239> \xAF\x52 |0
+<U723A> \xB7\xDD |0
+<U723B> \xA4\xF8 |0
+<U723D> \xB2\x6E |0
+<U723E> \xBA\xB8 |0
+<U723F> \xC9\x62 |0
+<U7241> \xCF\xB7 |0
+<U7242> \xD2\x7D |0
+<U7244> \xE2\xC5 |0
+<U7246> \xC0\xF0 |0
+<U7247> \xA4\xF9 |0
+<U7248> \xAA\xA9 |0
+<U7249> \xCF\xB8 |0
+<U724A> \xCF\xB9 |0
+<U724B> \xDA\x66 |0
+<U724C> \xB5\x50 |0
+<U724F> \xDE\xA4 |0
+<U7252> \xB7\xDE |0
+<U7253> \xE2\xC6 |0
+<U7256> \xBC\xF8 |0
+<U7258> \xC3\x7C |0
+<U7259> \xA4\xFA |0
+<U725A> \xDA\x67 |0
+<U725B> \xA4\xFB |0
+<U725D> \xA6\xC9 |0
+<U725E> \xCA\x42 |0
+<U725F> \xA6\xC8 |0
+<U7260> \xA8\x65 |0
+<U7261> \xA8\x64 |0
+<U7262> \xA8\x63 |0
+<U7263> \xCB\x60 |0
+<U7267> \xAA\xAA |0
+<U7269> \xAA\xAB |0
+<U726A> \xCD\x5B |0
+<U726C> \xCF\xBA |0
+<U726E> \xCF\xBD |0
+<U726F> \xAC\xBA |0
+<U7270> \xCF\xBB |0
+<U7272> \xAC\xB9 |0
+<U7273> \xCF\xBC |0
+<U7274> \xAC\xBB |0
+<U7276> \xD2\xA2 |0
+<U7277> \xD2\xA1 |0
+<U7278> \xD2\x7E |0
+<U7279> \xAF\x53 |0
+<U727B> \xD6\x5D |0
+<U727C> \xD6\x5E |0
+<U727D> \xB2\x6F |0
+<U727E> \xD6\x5C |0
+<U727F> \xD6\x5F |0
+<U7280> \xB5\x52 |0
+<U7281> \xB2\x70 |0
+<U7284> \xB5\x51 |0
+<U7285> \xDA\x6B |0
+<U7286> \xDA\x6A |0
+<U7288> \xDA\x68 |0
+<U7289> \xDA\x69 |0
+<U728B> \xDA\x6C |0
+<U728C> \xDE\xA6 |0
+<U728D> \xDE\xA5 |0
+<U728E> \xDE\xA9 |0
+<U7290> \xDE\xA8 |0
+<U7291> \xDE\xA7 |0
+<U7292> \xBA\xB9 |0
+<U7293> \xE2\xC9 |0
+<U7295> \xE2\xC8 |0
+<U7296> \xBA\xBA |0
+<U7297> \xE2\xC7 |0
+<U7298> \xE6\x73 |0
+<U729A> \xE6\x74 |0
+<U729B> \xBC\xF9 |0
+<U729D> \xEA\x59 |0
+<U729E> \xEA\x5A |0
+<U72A1> \xF2\x72 |0
+<U72A2> \xC3\x7D |0
+<U72A3> \xF2\x71 |0
+<U72A4> \xF2\x70 |0
+<U72A5> \xF2\x6E |0
+<U72A6> \xF2\x6F |0
+<U72A7> \xC4\xEB |0
+<U72A8> \xF4\x6C |0
+<U72A9> \xF6\xEE |0
+<U72AA> \xF8\xF7 |0
+<U72AC> \xA4\xFC |0
+<U72AE> \xC9\xA5 |0
+<U72AF> \xA5\xC7 |0
+<U72B0> \xC9\xA6 |0
+<U72B4> \xCA\x43 |0
+<U72B5> \xCA\x44 |0
+<U72BA> \xCB\x66 |0
+<U72BD> \xCB\x62 |0
+<U72BF> \xCB\x61 |0
+<U72C0> \xAA\xAC |0
+<U72C1> \xCB\x65 |0
+<U72C2> \xA8\x67 |0
+<U72C3> \xCB\x63 |0
+<U72C4> \xA8\x66 |0
+<U72C5> \xCB\x67 |0
+<U72C6> \xCB\x64 |0
+<U72C9> \xCD\x5F |0
+<U72CA> \xCF\xBE |0
+<U72CB> \xCD\x5D |0
+<U72CC> \xCD\x64 |0
+<U72CE> \xAA\xAD |0
+<U72D0> \xAA\xB0 |0
+<U72D1> \xCD\x65 |0
+<U72D2> \xCD\x61 |0
+<U72D4> \xCD\x62 |0
+<U72D6> \xCD\x5C |0
+<U72D7> \xAA\xAF |0
+<U72D8> \xCD\x5E |0
+<U72D9> \xAA\xAE |0
+<U72DA> \xCD\x63 |0
+<U72DC> \xCD\x60 |0
+<U72DF> \xCF\xC2 |0
+<U72E0> \xAC\xBD |0
+<U72E1> \xAC\xBE |0
+<U72E3> \xCF\xC5 |0
+<U72E4> \xCF\xBF |0
+<U72E6> \xCF\xC4 |0
+<U72E8> \xCF\xC0 |0
+<U72E9> \xAC\xBC |0
+<U72EA> \xCF\xC3 |0
+<U72EB> \xCF\xC1 |0
+<U72F3> \xD2\xA8 |0
+<U72F4> \xD2\xA5 |0
+<U72F6> \xD2\xA7 |0
+<U72F7> \xAF\x58 |0
+<U72F8> \xAF\x57 |0
+<U72F9> \xAF\x55 |0
+<U72FA> \xD2\xA4 |0
+<U72FB> \xD2\xA9 |0
+<U72FC> \xAF\x54 |0
+<U72FD> \xAF\x56 |0
+<U72FE> \xD2\xA6 |0
+<U72FF> \xD6\x67 |0
+<U7300> \xD2\xA3 |0
+<U7301> \xD2\xAA |0
+<U7307> \xD6\x62 |0
+<U7308> \xD6\x66 |0
+<U730A> \xD6\x65 |0
+<U730B> \xDA\x6E |0
+<U730C> \xDA\x79 |0
+<U730F> \xD6\x68 |0
+<U7311> \xD6\x63 |0
+<U7312> \xDA\x6D |0
+<U7313> \xB2\x74 |0
+<U7316> \xB2\x73 |0
+<U7317> \xD6\x61 |0
+<U7318> \xD6\x64 |0
+<U7319> \xB2\x75 |0
+<U731B> \xB2\x72 |0
+<U731C> \xB2\x71 |0
+<U731D> \xD6\x60 |0
+<U731E> \xD6\x69 |0
+<U7322> \xDA\x70 |0
+<U7323> \xDA\x77 |0
+<U7325> \xB5\x54 |0
+<U7326> \xDA\x76 |0
+<U7327> \xDA\x73 |0
+<U7329> \xB5\x56 |0
+<U732D> \xDA\x75 |0
+<U7330> \xDA\x6F |0
+<U7331> \xDA\x71 |0
+<U7332> \xDA\x74 |0
+<U7333> \xDA\x72 |0
+<U7334> \xB5\x55 |0
+<U7335> \xDA\x78 |0
+<U7336> \xB5\x53 |0
+<U7337> \xB7\xDF |0
+<U733A> \xDE\xAD |0
+<U733B> \xDE\xAC |0
+<U733C> \xDE\xAA |0
+<U733E> \xB7\xE2 |0
+<U733F> \xB7\xE1 |0
+<U7340> \xDE\xAE |0
+<U7342> \xDE\xAB |0
+<U7343> \xE2\xCA |0
+<U7344> \xBA\xBB |0
+<U7345> \xB7\xE0 |0
+<U7349> \xDE\xB0 |0
+<U734A> \xDE\xAF |0
+<U734C> \xE2\xCD |0
+<U734D> \xE2\xCB |0
+<U734E> \xBC\xFA |0
+<U7350> \xBA\xBC |0
+<U7351> \xE2\xCC |0
+<U7352> \xE6\x76 |0
+<U7357> \xBC\xFB |0
+<U7358> \xE6\x75 |0
+<U7359> \xE6\x7E |0
+<U735A> \xE6\x7D |0
+<U735B> \xE6\x7B |0
+<U735D> \xE6\x7A |0
+<U735E> \xE6\x77 |0
+<U735F> \xE6\x78 |0
+<U7360> \xE6\x79 |0
+<U7361> \xE6\x7C |0
+<U7362> \xE6\xA1 |0
+<U7365> \xEA\x5F |0
+<U7366> \xEA\x5C |0
+<U7367> \xEA\x5D |0
+<U7368> \xBF\x57 |0
+<U7369> \xEA\x5B |0
+<U736A> \xEA\x61 |0
+<U736B> \xEA\x60 |0
+<U736C> \xEA\x5E |0
+<U736E> \xED\x64 |0
+<U736F> \xED\x65 |0
+<U7370> \xC0\xF1 |0
+<U7372> \xC0\xF2 |0
+<U7373> \xED\x63 |0
+<U7375> \xC2\x79 |0
+<U7376> \xEF\xFE |0
+<U7377> \xC2\x78 |0
+<U7378> \xC3\x7E |0
+<U737A> \xC3\xA1 |0
+<U737B> \xC4\x6D |0
+<U737C> \xF4\x6E |0
+<U737D> \xF4\x6D |0
+<U737E> \xF5\xDD |0
+<U737F> \xF6\xEF |0
+<U7380> \xC5\x7A |0
+<U7381> \xF7\xE8 |0
+<U7382> \xF7\xE7 |0
+<U7383> \xF7\xE9 |0
+<U7384> \xA5\xC8 |0
+<U7385> \xCF\xC6 |0
+<U7386> \xAF\x59 |0
+<U7387> \xB2\x76 |0
+<U7388> \xD6\x6A |0
+<U7389> \xA5\xC9 |0
+<U738A> \xC9\xA7 |0
+<U738B> \xA4\xFD |0
+<U738E> \xCA\x45 |0
+<U7392> \xCB\x6C |0
+<U7393> \xCB\x6A |0
+<U7394> \xCB\x6B |0
+<U7395> \xCB\x68 |0
+<U7396> \xA8\x68 |0
+<U7397> \xCB\x69 |0
+<U739D> \xCD\x6D |0
+<U739F> \xAA\xB3 |0
+<U73A0> \xCD\x6B |0
+<U73A1> \xCD\x67 |0
+<U73A2> \xCD\x6A |0
+<U73A4> \xCD\x66 |0
+<U73A5> \xAA\xB5 |0
+<U73A6> \xCD\x69 |0
+<U73A8> \xAA\xB2 |0
+<U73A9> \xAA\xB1 |0
+<U73AB> \xAA\xB4 |0
+<U73AC> \xCD\x6C |0
+<U73AD> \xCD\x68 |0
+<U73B2> \xAC\xC2 |0
+<U73B3> \xAC\xC5 |0
+<U73B4> \xCF\xCE |0
+<U73B5> \xCF\xCD |0
+<U73B6> \xCF\xCC |0
+<U73B7> \xAC\xBF |0
+<U73B8> \xCF\xD5 |0
+<U73B9> \xCF\xCB |0
+<U73BB> \xAC\xC1 |0
+<U73BC> \xD2\xAF |0
+<U73BE> \xCF\xD2 |0
+<U73BF> \xCF\xD0 |0
+<U73C0> \xAC\xC4 |0
+<U73C2> \xCF\xC8 |0
+<U73C3> \xCF\xD3 |0
+<U73C5> \xCF\xCA |0
+<U73C6> \xCF\xD4 |0
+<U73C7> \xCF\xD1 |0
+<U73C8> \xCF\xC9 |0
+<U73CA> \xAC\xC0 |0
+<U73CB> \xCF\xD6 |0
+<U73CC> \xCF\xC7 |0
+<U73CD> \xAC\xC3 |0
+<U73D2> \xD2\xB4 |0
+<U73D3> \xD2\xAB |0
+<U73D4> \xD2\xB6 |0
+<U73D6> \xD2\xAE |0
+<U73D7> \xD2\xB9 |0
+<U73D8> \xD2\xBA |0
+<U73D9> \xD2\xAC |0
+<U73DA> \xD2\xB8 |0
+<U73DB> \xD2\xB5 |0
+<U73DC> \xD2\xB3 |0
+<U73DD> \xD2\xB7 |0
+<U73DE> \xAF\x5F |0
+<U73E0> \xAF\x5D |0
+<U73E3> \xD2\xB1 |0
+<U73E5> \xD2\xAD |0
+<U73E7> \xD2\xB0 |0
+<U73E8> \xD2\xBB |0
+<U73E9> \xD2\xB2 |0
+<U73EA> \xAF\x5E |0
+<U73EB> \xCF\xCF |0
+<U73ED> \xAF\x5A |0
+<U73EE> \xAF\x5C |0
+<U73F4> \xD6\x78 |0
+<U73F5> \xD6\x6D |0
+<U73F6> \xD6\x6B |0
+<U73F8> \xD6\x6C |0
+<U73FA> \xD6\x73 |0
+<U73FC> \xD6\x74 |0
+<U73FD> \xD6\x70 |0
+<U73FE> \xB2\x7B |0
+<U73FF> \xD6\x75 |0
+<U7400> \xD6\x72 |0
+<U7401> \xD6\x6F |0
+<U7403> \xB2\x79 |0
+<U7404> \xD6\x6E |0
+<U7405> \xB2\x77 |0
+<U7406> \xB2\x7A |0
+<U7407> \xD6\x71 |0
+<U7408> \xD6\x79 |0
+<U7409> \xAF\x5B |0
+<U740A> \xB2\x78 |0
+<U740B> \xD6\x77 |0
+<U740C> \xD6\x76 |0
+<U740D> \xB2\x7C |0
+<U7416> \xDA\x7E |0
+<U741A> \xDA\xA1 |0
+<U741B> \xB5\x60 |0
+<U741D> \xDA\xA7 |0
+<U7420> \xDA\xA9 |0
+<U7421> \xDA\xA2 |0
+<U7422> \xB5\x5A |0
+<U7423> \xDA\xA6 |0
+<U7424> \xDA\xA5 |0
+<U7425> \xB5\x5B |0
+<U7426> \xB5\x61 |0
+<U7428> \xB5\x62 |0
+<U7429> \xDA\xA8 |0
+<U742A> \xB5\x58 |0
+<U742B> \xDA\x7D |0
+<U742C> \xDA\x7B |0
+<U742D> \xDA\xA3 |0
+<U742E> \xDA\x7A |0
+<U742F> \xB5\x5F |0
+<U7430> \xDA\x7C |0
+<U7431> \xDA\xA4 |0
+<U7432> \xDA\xAA |0
+<U7433> \xB5\x59 |0
+<U7434> \xB5\x5E |0
+<U7435> \xB5\x5C |0
+<U7436> \xB5\x5D |0
+<U743A> \xB5\x57 |0
+<U743F> \xB7\xE9 |0
+<U7440> \xDE\xB7 |0
+<U7441> \xB7\xE8 |0
+<U7442> \xDE\xBB |0
+<U7444> \xDE\xB1 |0
+<U7446> \xDE\xBC |0
+<U744A> \xDE\xB2 |0
+<U744B> \xDE\xB3 |0
+<U744D> \xDE\xBD |0
+<U744E> \xDE\xBA |0
+<U744F> \xDE\xB8 |0
+<U7450> \xDE\xB9 |0
+<U7451> \xDE\xB5 |0
+<U7452> \xDE\xB4 |0
+<U7454> \xDE\xBE |0
+<U7455> \xB7\xE5 |0
+<U7457> \xDE\xB6 |0
+<U7459> \xB7\xEA |0
+<U745A> \xB7\xE4 |0
+<U745B> \xB7\xEB |0
+<U745C> \xB7\xEC |0
+<U745E> \xB7\xE7 |0
+<U745F> \xB7\xE6 |0
+<U7462> \xE2\xCE |0
+<U7463> \xBA\xBE |0
+<U7464> \xBA\xBD |0
+<U7467> \xE2\xD3 |0
+<U7469> \xBC\xFC |0
+<U746A> \xBA\xBF |0
+<U746D> \xBA\xC1 |0
+<U746E> \xE2\xD4 |0
+<U746F> \xB7\xE3 |0
+<U7470> \xBA\xC0 |0
+<U7471> \xE2\xD0 |0
+<U7472> \xE2\xD2 |0
+<U7473> \xE2\xCF |0
+<U7475> \xE2\xD1 |0
+<U7479> \xE6\xAB |0
+<U747C> \xE6\xAA |0
+<U747D> \xE6\xA7 |0
+<U747E> \xBD\x40 |0
+<U747F> \xEA\x62 |0
+<U7480> \xBD\x41 |0
+<U7481> \xE6\xA6 |0
+<U7483> \xBC\xFE |0
+<U7485> \xE6\xA8 |0
+<U7486> \xE6\xA5 |0
+<U7487> \xE6\xA2 |0
+<U7488> \xE6\xA9 |0
+<U7489> \xE6\xA3 |0
+<U748A> \xE6\xA4 |0
+<U748B> \xBC\xFD |0
+<U7490> \xED\x69 |0
+<U7492> \xEA\x66 |0
+<U7494> \xEA\x65 |0
+<U7495> \xEA\x67 |0
+<U7497> \xED\x66 |0
+<U7498> \xBF\x5A |0
+<U749A> \xEA\x63 |0
+<U749C> \xBF\x58 |0
+<U749E> \xBF\x5C |0
+<U749F> \xBF\x5B |0
+<U74A0> \xEA\x64 |0
+<U74A1> \xEA\x68 |0
+<U74A3> \xBF\x59 |0
+<U74A5> \xED\x6D |0
+<U74A6> \xC0\xF5 |0
+<U74A7> \xC2\x7A |0
+<U74A8> \xC0\xF6 |0
+<U74A9> \xC0\xF3 |0
+<U74AA> \xED\x6A |0
+<U74AB> \xED\x68 |0
+<U74AD> \xED\x6B |0
+<U74AF> \xED\x6E |0
+<U74B0> \xC0\xF4 |0
+<U74B1> \xED\x6C |0
+<U74B2> \xED\x67 |0
+<U74B5> \xF0\x42 |0
+<U74B6> \xF0\x45 |0
+<U74B7> \xF2\x75 |0
+<U74B8> \xF0\x40 |0
+<U74BA> \xF4\x6F |0
+<U74BB> \xF0\x46 |0
+<U74BD> \xC3\xA2 |0
+<U74BE> \xF0\x44 |0
+<U74BF> \xC2\x7B |0
+<U74C0> \xF0\x41 |0
+<U74C1> \xF0\x43 |0
+<U74C2> \xF0\x47 |0
+<U74C3> \xF2\x76 |0
+<U74C5> \xF2\x74 |0
+<U74CA> \xC3\xA3 |0
+<U74CB> \xF2\x73 |0
+<U74CF> \xC4\x6E |0
+<U74D4> \xC4\xED |0
+<U74D5> \xF6\xF1 |0
+<U74D6> \xC4\xEC |0
+<U74D7> \xF6\xF3 |0
+<U74D8> \xF6\xF0 |0
+<U74D9> \xF6\xF2 |0
+<U74DA> \xC5\xD0 |0
+<U74DB> \xF8\xB2 |0
+<U74DC> \xA5\xCA |0
+<U74DD> \xCD\x6E |0
+<U74DE> \xD2\xBC |0
+<U74DF> \xD2\xBD |0
+<U74E0> \xB2\x7D |0
+<U74E1> \xDE\xBF |0
+<U74E2> \xBF\x5D |0
+<U74E3> \xC3\xA4 |0
+<U74E4> \xC5\x7B |0
+<U74E5> \xF8\xB3 |0
+<U74E6> \xA5\xCB |0
+<U74E8> \xCD\x6F |0
+<U74E9> \xA2\x60 |0
+<U74EC> \xCF\xD7 |0
+<U74EE> \xCF\xD8 |0
+<U74F4> \xD2\xBE |0
+<U74F5> \xD2\xBF |0
+<U74F6> \xB2\x7E |0
+<U74F7> \xB2\xA1 |0
+<U74FB> \xDA\xAB |0
+<U74FD> \xDE\xC2 |0
+<U74FE> \xDE\xC1 |0
+<U74FF> \xDE\xC0 |0
+<U7500> \xE2\xD5 |0
+<U7502> \xE2\xD6 |0
+<U7503> \xE2\xD7 |0
+<U7504> \xBA\xC2 |0
+<U7507> \xE6\xAD |0
+<U7508> \xE6\xAC |0
+<U750B> \xEA\x69 |0
+<U750C> \xBF\x5E |0
+<U750D> \xBF\x5F |0
+<U750F> \xED\x72 |0
+<U7510> \xED\x6F |0
+<U7511> \xED\x70 |0
+<U7512> \xED\x71 |0
+<U7513> \xF0\x49 |0
+<U7514> \xF0\x48 |0
+<U7515> \xC2\x7C |0
+<U7516> \xF2\x77 |0
+<U7517> \xF5\xDE |0
+<U7518> \xA5\xCC |0
+<U751A> \xAC\xC6 |0
+<U751C> \xB2\xA2 |0
+<U751D> \xDE\xC3 |0
+<U751F> \xA5\xCD |0
+<U7521> \xD2\xC0 |0
+<U7522> \xB2\xA3 |0
+<U7525> \xB5\x63 |0
+<U7526> \xB5\x64 |0
+<U7528> \xA5\xCE |0
+<U7529> \xA5\xCF |0
+<U752A> \xCA\x46 |0
+<U752B> \xA8\x6A |0
+<U752C> \xA8\x69 |0
+<U752D> \xAC\xC7 |0
+<U752E> \xCF\xD9 |0
+<U752F> \xDA\xAC |0
+<U7530> \xA5\xD0 |0
+<U7531> \xA5\xD1 |0
+<U7532> \xA5\xD2 |0
+<U7533> \xA5\xD3 |0
+<U7537> \xA8\x6B |0
+<U7538> \xA8\x6C |0
+<U7539> \xCB\x6E |0
+<U753A> \xCB\x6D |0
+<U753D> \xAA\xB6 |0
+<U753E> \xCD\x72 |0
+<U753F> \xCD\x70 |0
+<U7540> \xCD\x71 |0
+<U7547> \xCF\xDA |0
+<U7548> \xCF\xDB |0
+<U754B> \xAC\xCB |0
+<U754C> \xAC\xC9 |0
+<U754E> \xAC\xCA |0
+<U754F> \xAC\xC8 |0
+<U7554> \xAF\x60 |0
+<U7559> \xAF\x64 |0
+<U755A> \xAF\x63 |0
+<U755B> \xD2\xC1 |0
+<U755C> \xAF\x62 |0
+<U755D> \xAF\x61 |0
+<U755F> \xD2\xC2 |0
+<U7562> \xB2\xA6 |0
+<U7563> \xD6\x7B |0
+<U7564> \xD6\x7A |0
+<U7565> \xB2\xA4 |0
+<U7566> \xB2\xA5 |0
+<U756A> \xB5\x66 |0
+<U756B> \xB5\x65 |0
+<U756C> \xDA\xAE |0
+<U756F> \xDA\xAD |0
+<U7570> \xB2\xA7 |0
+<U7576> \xB7\xED |0
+<U7577> \xDE\xC5 |0
+<U7578> \xB7\xEE |0
+<U7579> \xDE\xC4 |0
+<U757D> \xE2\xD8 |0
+<U757E> \xE6\xAE |0
+<U757F> \xBD\x42 |0
+<U7580> \xEA\x6A |0
+<U7584> \xED\x73 |0
+<U7586> \xC3\xA6 |0
+<U7587> \xC3\xA5 |0
+<U758A> \xC5\x7C |0
+<U758B> \xA5\xD4 |0
+<U758C> \xCD\x73 |0
+<U758F> \xB2\xA8 |0
+<U7590> \xE2\xD9 |0
+<U7591> \xBA\xC3 |0
+<U7594> \xCB\x6F |0
+<U7595> \xCB\x70 |0
+<U7598> \xCD\x74 |0
+<U7599> \xAA\xB8 |0
+<U759A> \xAA\xB9 |0
+<U759D> \xAA\xB7 |0
+<U75A2> \xAC\xCF |0
+<U75A3> \xAC\xD0 |0
+<U75A4> \xAC\xCD |0
+<U75A5> \xAC\xCE |0
+<U75A7> \xCF\xDC |0
+<U75AA> \xCF\xDD |0
+<U75AB> \xAC\xCC |0
+<U75B0> \xD2\xC3 |0
+<U75B2> \xAF\x68 |0
+<U75B3> \xAF\x69 |0
+<U75B5> \xB2\xAB |0
+<U75B6> \xD2\xC9 |0
+<U75B8> \xAF\x6E |0
+<U75B9> \xAF\x6C |0
+<U75BA> \xD2\xCA |0
+<U75BB> \xD2\xC5 |0
+<U75BC> \xAF\x6B |0
+<U75BD> \xAF\x6A |0
+<U75BE> \xAF\x65 |0
+<U75BF> \xD2\xC8 |0
+<U75C0> \xD2\xC7 |0
+<U75C1> \xD2\xC4 |0
+<U75C2> \xAF\x6D |0
+<U75C4> \xD2\xC6 |0
+<U75C5> \xAF\x66 |0
+<U75C7> \xAF\x67 |0
+<U75CA> \xB2\xAC |0
+<U75CB> \xD6\xA1 |0
+<U75CC> \xD6\xA2 |0
+<U75CD> \xB2\xAD |0
+<U75CE> \xD6\x7C |0
+<U75CF> \xD6\x7E |0
+<U75D0> \xD6\xA4 |0
+<U75D1> \xD6\xA3 |0
+<U75D2> \xD6\x7D |0
+<U75D4> \xB2\xA9 |0
+<U75D5> \xB2\xAA |0
+<U75D7> \xDA\xB6 |0
+<U75D8> \xB5\x6B |0
+<U75D9> \xB5\x6A |0
+<U75DA> \xDA\xB0 |0
+<U75DB> \xB5\x68 |0
+<U75DD> \xDA\xB3 |0
+<U75DE> \xB5\x6C |0
+<U75DF> \xDA\xB4 |0
+<U75E0> \xB5\x6D |0
+<U75E1> \xDA\xB1 |0
+<U75E2> \xB5\x67 |0
+<U75E3> \xB5\x69 |0
+<U75E4> \xDA\xB5 |0
+<U75E6> \xDA\xB2 |0
+<U75E7> \xDA\xAF |0
+<U75ED> \xDE\xD2 |0
+<U75EF> \xDE\xC7 |0
+<U75F0> \xB7\xF0 |0
+<U75F1> \xB7\xF3 |0
+<U75F2> \xB7\xF2 |0
+<U75F3> \xB7\xF7 |0
+<U75F4> \xB7\xF6 |0
+<U75F5> \xDE\xD3 |0
+<U75F6> \xDE\xD1 |0
+<U75F7> \xDE\xCA |0
+<U75F8> \xDE\xCE |0
+<U75F9> \xDE\xCD |0
+<U75FA> \xB7\xF4 |0
+<U75FB> \xDE\xD0 |0
+<U75FC> \xDE\xCC |0
+<U75FD> \xDE\xD4 |0
+<U75FE> \xDE\xCB |0
+<U75FF> \xB7\xF5 |0
+<U7600> \xB7\xEF |0
+<U7601> \xB7\xF1 |0
+<U7603> \xDE\xC9 |0
+<U7608> \xE2\xDB |0
+<U7609> \xBA\xC7 |0
+<U760A> \xE2\xDF |0
+<U760B> \xBA\xC6 |0
+<U760C> \xE2\xDC |0
+<U760D> \xBA\xC5 |0
+<U760F> \xDE\xC8 |0
+<U7610> \xDE\xCF |0
+<U7611> \xE2\xDE |0
+<U7613> \xBA\xC8 |0
+<U7614> \xE2\xE0 |0
+<U7615> \xE2\xDD |0
+<U7616> \xE2\xDA |0
+<U7619> \xE6\xB1 |0
+<U761A> \xE6\xB5 |0
+<U761B> \xE6\xB7 |0
+<U761C> \xE6\xB3 |0
+<U761D> \xE6\xB2 |0
+<U761E> \xE6\xB0 |0
+<U761F> \xBD\x45 |0
+<U7620> \xBD\x43 |0
+<U7621> \xBD\x48 |0
+<U7622> \xBD\x49 |0
+<U7623> \xE6\xB4 |0
+<U7624> \xBD\x46 |0
+<U7625> \xE6\xAF |0
+<U7626> \xBD\x47 |0
+<U7627> \xBA\xC4 |0
+<U7628> \xE6\xB6 |0
+<U7629> \xBD\x44 |0
+<U762D> \xEA\x6C |0
+<U762F> \xEA\x6B |0
+<U7630> \xEA\x73 |0
+<U7631> \xEA\x6D |0
+<U7632> \xEA\x72 |0
+<U7633> \xEA\x6F |0
+<U7634> \xBF\x60 |0
+<U7635> \xEA\x71 |0
+<U7638> \xBF\x61 |0
+<U763A> \xBF\x62 |0
+<U763C> \xEA\x70 |0
+<U763D> \xEA\x6E |0
+<U7642> \xC0\xF8 |0
+<U7643> \xED\x74 |0
+<U7646> \xC0\xF7 |0
+<U7647> \xED\x77 |0
+<U7648> \xED\x75 |0
+<U7649> \xED\x76 |0
+<U764C> \xC0\xF9 |0
+<U7650> \xF0\x4D |0
+<U7652> \xC2\xA1 |0
+<U7653> \xF0\x4E |0
+<U7656> \xC2\x7D |0
+<U7657> \xF0\x4F |0
+<U7658> \xC2\x7E |0
+<U7659> \xF0\x4C |0
+<U765A> \xF0\x50 |0
+<U765C> \xF0\x4A |0
+<U765F> \xC3\xA7 |0
+<U7660> \xF2\x78 |0
+<U7661> \xC3\xA8 |0
+<U7662> \xC4\x6F |0
+<U7664> \xF0\x4B |0
+<U7665> \xC4\x70 |0
+<U7669> \xC4\xEE |0
+<U766A> \xF5\xDF |0
+<U766C> \xC5\x7E |0
+<U766D> \xF6\xF4 |0
+<U766E> \xC5\x7D |0
+<U7670> \xF7\xEA |0
+<U7671> \xC5\xF5 |0
+<U7672> \xC5\xF6 |0
+<U7675> \xF9\xCC |0
+<U7678> \xAC\xD1 |0
+<U7679> \xCF\xDE |0
+<U767B> \xB5\x6E |0
+<U767C> \xB5\x6F |0
+<U767D> \xA5\xD5 |0
+<U767E> \xA6\xCA |0
+<U767F> \xCA\x47 |0
+<U7681> \xCB\x71 |0
+<U7682> \xA8\x6D |0
+<U7684> \xAA\xBA |0
+<U7686> \xAC\xD2 |0
+<U7687> \xAC\xD3 |0
+<U7688> \xAC\xD4 |0
+<U7689> \xD6\xA6 |0
+<U768A> \xD2\xCB |0
+<U768B> \xAF\x6F |0
+<U768E> \xB2\xAE |0
+<U768F> \xD6\xA5 |0
+<U7692> \xDA\xB8 |0
+<U7693> \xB5\x71 |0
+<U7695> \xDA\xB7 |0
+<U7696> \xB5\x70 |0
+<U7699> \xDE\xD5 |0
+<U769A> \xBD\x4A |0
+<U769B> \xE6\xBB |0
+<U769C> \xE6\xB8 |0
+<U769D> \xE6\xB9 |0
+<U769E> \xE6\xBA |0
+<U76A4> \xED\x78 |0
+<U76A6> \xF0\x51 |0
+<U76AA> \xF4\x71 |0
+<U76AB> \xF4\x70 |0
+<U76AD> \xF6\xF5 |0
+<U76AE> \xA5\xD6 |0
+<U76AF> \xCD\x75 |0
+<U76B0> \xAF\x70 |0
+<U76B4> \xB5\x72 |0
+<U76B5> \xDE\xD6 |0
+<U76B8> \xE2\xE1 |0
+<U76BA> \xBD\x4B |0
+<U76BB> \xEA\x74 |0
+<U76BD> \xF0\x52 |0
+<U76BE> \xF4\x72 |0
+<U76BF> \xA5\xD7 |0
+<U76C2> \xAA\xBB |0
+<U76C3> \xAC\xD7 |0
+<U76C4> \xCF\xDF |0
+<U76C5> \xAC\xD8 |0
+<U76C6> \xAC\xD6 |0
+<U76C8> \xAC\xD5 |0
+<U76C9> \xD2\xCC |0
+<U76CA> \xAF\x71 |0
+<U76CD> \xAF\x72 |0
+<U76CE> \xAF\x73 |0
+<U76D2> \xB2\xB0 |0
+<U76D3> \xD6\xA7 |0
+<U76D4> \xB2\xAF |0
+<U76DA> \xDA\xB9 |0
+<U76DB> \xB2\xB1 |0
+<U76DC> \xB5\x73 |0
+<U76DD> \xDE\xD7 |0
+<U76DE> \xB7\xF8 |0
+<U76DF> \xB7\xF9 |0
+<U76E1> \xBA\xC9 |0
+<U76E3> \xBA\xCA |0
+<U76E4> \xBD\x4C |0
+<U76E5> \xBF\x64 |0
+<U76E6> \xEA\x75 |0
+<U76E7> \xBF\x63 |0
+<U76E9> \xED\x79 |0
+<U76EA> \xC0\xFA |0
+<U76EC> \xF0\x53 |0
+<U76ED> \xF4\x73 |0
+<U76EE> \xA5\xD8 |0
+<U76EF> \xA8\x6E |0
+<U76F0> \xCD\x78 |0
+<U76F1> \xCD\x77 |0
+<U76F2> \xAA\xBC |0
+<U76F3> \xCD\x76 |0
+<U76F4> \xAA\xBD |0
+<U76F5> \xCD\x79 |0
+<U76F7> \xCF\xE5 |0
+<U76F8> \xAC\xDB |0
+<U76F9> \xAC\xDA |0
+<U76FA> \xCF\xE7 |0
+<U76FB> \xCF\xE6 |0
+<U76FC> \xAC\xDF |0
+<U76FE> \xAC\xDE |0
+<U7701> \xAC\xD9 |0
+<U7703> \xCF\xE1 |0
+<U7704> \xCF\xE2 |0
+<U7705> \xCF\xE3 |0
+<U7707> \xAC\xE0 |0
+<U7708> \xCF\xE0 |0
+<U7709> \xAC\xDC |0
+<U770A> \xCF\xE4 |0
+<U770B> \xAC\xDD |0
+<U7710> \xD2\xCF |0
+<U7711> \xD2\xD3 |0
+<U7712> \xD2\xD1 |0
+<U7713> \xD2\xD0 |0
+<U7715> \xD2\xD4 |0
+<U7719> \xD2\xD5 |0
+<U771A> \xD2\xD6 |0
+<U771B> \xD2\xCE |0
+<U771D> \xD2\xCD |0
+<U771F> \xAF\x75 |0
+<U7720> \xAF\x76 |0
+<U7722> \xD2\xD7 |0
+<U7723> \xD2\xD2 |0
+<U7725> \xD6\xB0 |0
+<U7727> \xD2\xD8 |0
+<U7728> \xAF\x77 |0
+<U7729> \xAF\x74 |0
+<U772D> \xD6\xAA |0
+<U772F> \xD6\xA9 |0
+<U7731> \xD6\xAB |0
+<U7732> \xD6\xAC |0
+<U7733> \xD6\xAE |0
+<U7734> \xD6\xAD |0
+<U7735> \xD6\xB2 |0
+<U7736> \xB2\xB5 |0
+<U7737> \xB2\xB2 |0
+<U7738> \xB2\xB6 |0
+<U7739> \xD6\xA8 |0
+<U773A> \xB2\xB7 |0
+<U773B> \xD6\xB1 |0
+<U773C> \xB2\xB4 |0
+<U773D> \xD6\xAF |0
+<U773E> \xB2\xB3 |0
+<U7744> \xDA\xBC |0
+<U7745> \xDA\xBE |0
+<U7746> \xDA\xBA |0
+<U7747> \xDA\xBB |0
+<U774A> \xDA\xBF |0
+<U774B> \xDA\xC1 |0
+<U774C> \xDA\xC2 |0
+<U774D> \xDA\xBD |0
+<U774E> \xDA\xC0 |0
+<U774F> \xB5\x74 |0
+<U7752> \xDE\xDB |0
+<U7754> \xDE\xE0 |0
+<U7755> \xDE\xD8 |0
+<U7756> \xDE\xDC |0
+<U7759> \xDE\xE1 |0
+<U775A> \xDE\xDD |0
+<U775B> \xB7\xFA |0
+<U775C> \xB8\x43 |0
+<U775E> \xB7\xFD |0
+<U775F> \xDE\xD9 |0
+<U7760> \xDE\xDA |0
+<U7761> \xBA\xCE |0
+<U7762> \xB8\x46 |0
+<U7763> \xB7\xFE |0
+<U7765> \xB8\x44 |0
+<U7766> \xB7\xFC |0
+<U7767> \xDE\xDF |0
+<U7768> \xB8\x45 |0
+<U7769> \xDE\xDE |0
+<U776A> \xB8\x41 |0
+<U776B> \xB7\xFB |0
+<U776C> \xB8\x42 |0
+<U776D> \xDE\xE2 |0
+<U776E> \xE2\xE6 |0
+<U776F> \xE2\xE8 |0
+<U7779> \xB8\x40 |0
+<U777C> \xE2\xE3 |0
+<U777D> \xBA\xCC |0
+<U777E> \xE2\xE9 |0
+<U777F> \xBA\xCD |0
+<U7780> \xE2\xE7 |0
+<U7781> \xE2\xE2 |0
+<U7782> \xE2\xE5 |0
+<U7783> \xE2\xEA |0
+<U7784> \xBA\xCB |0
+<U7785> \xE2\xE4 |0
+<U7787> \xBD\x4E |0
+<U7788> \xE6\xBF |0
+<U7789> \xE6\xBE |0
+<U778B> \xBD\x51 |0
+<U778C> \xBD\x4F |0
+<U778D> \xE6\xBC |0
+<U778E> \xBD\x4D |0
+<U778F> \xE6\xBD |0
+<U7791> \xBD\x50 |0
+<U7795> \xEA\x7D |0
+<U7797> \xEA\xA1 |0
+<U7799> \xEA\x7E |0
+<U779A> \xEA\x76 |0
+<U779B> \xEA\x7A |0
+<U779C> \xEA\x79 |0
+<U779D> \xEA\x77 |0
+<U779E> \xBF\x66 |0
+<U779F> \xBF\x67 |0
+<U77A0> \xBF\x65 |0
+<U77A1> \xEA\x78 |0
+<U77A2> \xEA\x7B |0
+<U77A3> \xEA\x7C |0
+<U77A5> \xBF\x68 |0
+<U77A7> \xC1\x40 |0
+<U77A8> \xED\xA3 |0
+<U77AA> \xC0\xFC |0
+<U77AB> \xED\x7B |0
+<U77AC> \xC0\xFE |0
+<U77AD> \xC1\x41 |0
+<U77B0> \xC0\xFD |0
+<U77B1> \xED\xA2 |0
+<U77B2> \xED\x7C |0
+<U77B3> \xC0\xFB |0
+<U77B4> \xED\xA1 |0
+<U77B5> \xED\x7A |0
+<U77B6> \xED\x7E |0
+<U77B7> \xED\x7D |0
+<U77BA> \xF0\x55 |0
+<U77BB> \xC2\xA4 |0
+<U77BC> \xC2\xA5 |0
+<U77BD> \xC2\xA2 |0
+<U77BF> \xC2\xA3 |0
+<U77C2> \xF0\x54 |0
+<U77C4> \xF2\x7B |0
+<U77C7> \xC3\xA9 |0
+<U77C9> \xF2\x79 |0
+<U77CA> \xF2\x7A |0
+<U77CC> \xF4\x74 |0
+<U77CD> \xF4\x77 |0
+<U77CE> \xF4\x75 |0
+<U77CF> \xF4\x76 |0
+<U77D0> \xF5\xE0 |0
+<U77D3> \xC4\xEF |0
+<U77D4> \xF7\xEB |0
+<U77D5> \xF8\xB4 |0
+<U77D7> \xC5\xF7 |0
+<U77D8> \xF8\xF8 |0
+<U77D9> \xF8\xF9 |0
+<U77DA> \xC6\x66 |0
+<U77DB> \xA5\xD9 |0
+<U77DC> \xAC\xE1 |0
+<U77DE> \xDA\xC3 |0
+<U77E0> \xDE\xE3 |0
+<U77E2> \xA5\xDA |0
+<U77E3> \xA8\x6F |0
+<U77E5> \xAA\xBE |0
+<U77E7> \xCF\xE8 |0
+<U77E8> \xCF\xE9 |0
+<U77E9> \xAF\x78 |0
+<U77EC> \xDA\xC4 |0
+<U77ED> \xB5\x75 |0
+<U77EE> \xB8\x47 |0
+<U77EF> \xC1\x42 |0
+<U77F0> \xED\xA4 |0
+<U77F1> \xF2\x7C |0
+<U77F2> \xF4\x78 |0
+<U77F3> \xA5\xDB |0
+<U77F7> \xCD\xA1 |0
+<U77F8> \xCD\x7A |0
+<U77F9> \xCD\x7C |0
+<U77FA> \xCD\x7E |0
+<U77FB> \xCD\x7D |0
+<U77FC> \xCD\x7B |0
+<U77FD> \xAA\xBF |0
+<U7802> \xAC\xE2 |0
+<U7803> \xCF\xF2 |0
+<U7805> \xCF\xED |0
+<U7806> \xCF\xEA |0
+<U7809> \xCF\xF1 |0
+<U780C> \xAC\xE4 |0
+<U780D> \xAC\xE5 |0
+<U780E> \xCF\xF0 |0
+<U780F> \xCF\xEF |0
+<U7810> \xCF\xEE |0
+<U7811> \xCF\xEB |0
+<U7812> \xCF\xEC |0
+<U7813> \xCF\xF3 |0
+<U7814> \xAC\xE3 |0
+<U781D> \xAF\x7C |0
+<U781F> \xAF\xA4 |0
+<U7820> \xAF\xA3 |0
+<U7821> \xD2\xE1 |0
+<U7822> \xD2\xDB |0
+<U7823> \xD2\xD9 |0
+<U7825> \xAF\xA1 |0
+<U7826> \xD6\xB9 |0
+<U7827> \xAF\x7A |0
+<U7828> \xD2\xDE |0
+<U7829> \xD2\xE2 |0
+<U782A> \xD2\xE4 |0
+<U782B> \xD2\xE0 |0
+<U782C> \xD2\xDA |0
+<U782D> \xAF\xA2 |0
+<U782E> \xD2\xDF |0
+<U782F> \xD2\xDD |0
+<U7830> \xAF\x79 |0
+<U7831> \xD2\xE5 |0
+<U7832> \xAF\xA5 |0
+<U7833> \xD2\xE3 |0
+<U7834> \xAF\x7D |0
+<U7835> \xD2\xDC |0
+<U7837> \xAF\x7E |0
+<U7838> \xAF\x7B |0
+<U7843> \xB2\xB9 |0
+<U7845> \xD6\xBA |0
+<U7848> \xD6\xB3 |0
+<U7849> \xD6\xB5 |0
+<U784A> \xD6\xB7 |0
+<U784C> \xD6\xB8 |0
+<U784D> \xD6\xB6 |0
+<U784E> \xB2\xBA |0
+<U7850> \xD6\xBB |0
+<U7852> \xD6\xB4 |0
+<U785C> \xDA\xC8 |0
+<U785D> \xB5\x76 |0
+<U785E> \xDA\xD0 |0
+<U7860> \xDA\xC5 |0
+<U7862> \xDA\xD1 |0
+<U7864> \xDA\xC6 |0
+<U7865> \xDA\xC7 |0
+<U7868> \xDA\xCF |0
+<U7869> \xDA\xCE |0
+<U786A> \xDA\xCB |0
+<U786B> \xB2\xB8 |0
+<U786C> \xB5\x77 |0
+<U786D> \xDA\xC9 |0
+<U786E> \xDA\xCC |0
+<U786F> \xB5\x78 |0
+<U7870> \xDA\xCD |0
+<U7871> \xDA\xCA |0
+<U7879> \xDE\xEE |0
+<U787B> \xDE\xF2 |0
+<U787C> \xB8\x4E |0
+<U787E> \xE2\xF0 |0
+<U787F> \xB8\x51 |0
+<U7880> \xDE\xF0 |0
+<U7881> \xF9\xD6 |0
+<U7883> \xDE\xED |0
+<U7884> \xDE\xE8 |0
+<U7885> \xDE\xEA |0
+<U7886> \xDE\xEB |0
+<U7887> \xDE\xE4 |0
+<U7889> \xB8\x4D |0
+<U788C> \xB8\x4C |0
+<U788E> \xB8\x48 |0
+<U788F> \xDE\xE7 |0
+<U7891> \xB8\x4F |0
+<U7893> \xB8\x50 |0
+<U7894> \xDE\xE6 |0
+<U7895> \xDE\xE9 |0
+<U7896> \xDE\xF1 |0
+<U7897> \xB8\x4A |0
+<U7898> \xB8\x4B |0
+<U7899> \xDE\xEF |0
+<U789A> \xDE\xE5 |0
+<U789E> \xE2\xF2 |0
+<U789F> \xBA\xD0 |0
+<U78A0> \xE2\xF4 |0
+<U78A1> \xDE\xEC |0
+<U78A2> \xE2\xF6 |0
+<U78A3> \xBA\xD4 |0
+<U78A4> \xE2\xF7 |0
+<U78A5> \xE2\xF3 |0
+<U78A7> \xBA\xD1 |0
+<U78A8> \xE2\xEF |0
+<U78A9> \xBA\xD3 |0
+<U78AA> \xE2\xEC |0
+<U78AB> \xE2\xF1 |0
+<U78AC> \xE2\xF5 |0
+<U78AD> \xE2\xEE |0
+<U78B0> \xB8\x49 |0
+<U78B2> \xE2\xEB |0
+<U78B3> \xBA\xD2 |0
+<U78B4> \xE2\xED |0
+<U78BA> \xBD\x54 |0
+<U78BB> \xE6\xC1 |0
+<U78BC> \xBD\x58 |0
+<U78BE> \xBD\x56 |0
+<U78C1> \xBA\xCF |0
+<U78C3> \xE6\xC8 |0
+<U78C4> \xE6\xC9 |0
+<U78C5> \xBD\x53 |0
+<U78C8> \xE6\xC7 |0
+<U78C9> \xE6\xCA |0
+<U78CA> \xBD\x55 |0
+<U78CB> \xBD\x52 |0
+<U78CC> \xE6\xC3 |0
+<U78CD> \xE6\xC0 |0
+<U78CE> \xE6\xC5 |0
+<U78CF> \xE6\xC2 |0
+<U78D0> \xBD\x59 |0
+<U78D1> \xE6\xC4 |0
+<U78D4> \xE6\xC6 |0
+<U78D5> \xBD\x57 |0
+<U78DA> \xBF\x6A |0
+<U78DB> \xEA\xA8 |0
+<U78DD> \xEA\xA2 |0
+<U78DE> \xEA\xA6 |0
+<U78DF> \xEA\xAC |0
+<U78E0> \xEA\xAD |0
+<U78E1> \xEA\xA9 |0
+<U78E2> \xEA\xAA |0
+<U78E3> \xEA\xA7 |0
+<U78E5> \xEA\xA4 |0
+<U78E7> \xBF\x6C |0
+<U78E8> \xBF\x69 |0
+<U78E9> \xEA\xA3 |0
+<U78EA> \xEA\xA5 |0
+<U78EC> \xBF\x6B |0
+<U78ED> \xEA\xAB |0
+<U78EF> \xC1\x46 |0
+<U78F2> \xED\xAA |0
+<U78F3> \xED\xA5 |0
+<U78F4> \xC1\x45 |0
+<U78F7> \xC1\x43 |0
+<U78F9> \xED\xAC |0
+<U78FA> \xC1\x44 |0
+<U78FB> \xED\xA8 |0
+<U78FC> \xED\xA9 |0
+<U78FD> \xED\xA6 |0
+<U78FE> \xED\xAD |0
+<U78FF> \xF0\x56 |0
+<U7901> \xC1\x47 |0
+<U7902> \xED\xA7 |0
+<U7904> \xED\xAE |0
+<U7905> \xED\xAB |0
+<U7909> \xF0\x5A |0
+<U790C> \xF0\x57 |0
+<U790E> \xC2\xA6 |0
+<U7910> \xF0\x5B |0
+<U7911> \xF0\x5D |0
+<U7912> \xF0\x5C |0
+<U7913> \xF0\x58 |0
+<U7914> \xF0\x59 |0
+<U7917> \xF2\xA3 |0
+<U7919> \xC3\xAA |0
+<U791B> \xF2\x7E |0
+<U791C> \xF2\xA2 |0
+<U791D> \xF2\x7D |0
+<U791E> \xF2\xA4 |0
+<U7921> \xF2\xA1 |0
+<U7923> \xF4\x7A |0
+<U7924> \xF4\x7D |0
+<U7925> \xF4\x79 |0
+<U7926> \xC4\x71 |0
+<U7927> \xF4\x7B |0
+<U7928> \xF4\x7C |0
+<U7929> \xF4\x7E |0
+<U792A> \xC4\x72 |0
+<U792B> \xC4\x74 |0
+<U792C> \xC4\x73 |0
+<U792D> \xF5\xE1 |0
+<U792F> \xF5\xE3 |0
+<U7931> \xF5\xE2 |0
+<U7935> \xF6\xF6 |0
+<U7938> \xF8\xB5 |0
+<U7939> \xF8\xFA |0
+<U793A> \xA5\xDC |0
+<U793D> \xCB\x72 |0
+<U793E> \xAA\xC0 |0
+<U793F> \xCD\xA3 |0
+<U7940> \xAA\xC1 |0
+<U7941> \xAA\xC2 |0
+<U7942> \xCD\xA2 |0
+<U7944> \xCF\xF8 |0
+<U7945> \xCF\xF7 |0
+<U7946> \xAC\xE6 |0
+<U7947> \xAC\xE9 |0
+<U7948> \xAC\xE8 |0
+<U7949> \xAC\xE7 |0
+<U794A> \xCF\xF4 |0
+<U794B> \xCF\xF6 |0
+<U794C> \xCF\xF5 |0
+<U794F> \xD2\xE8 |0
+<U7950> \xAF\xA7 |0
+<U7951> \xD2\xEC |0
+<U7952> \xD2\xEB |0
+<U7953> \xD2\xEA |0
+<U7954> \xD2\xE6 |0
+<U7955> \xAF\xA6 |0
+<U7956> \xAF\xAA |0
+<U7957> \xAF\xAD |0
+<U795A> \xAF\xAE |0
+<U795B> \xD2\xE7 |0
+<U795C> \xD2\xE9 |0
+<U795D> \xAF\xAC |0
+<U795E> \xAF\xAB |0
+<U795F> \xAF\xA9 |0
+<U7960> \xAF\xA8 |0
+<U7961> \xD6\xC2 |0
+<U7963> \xD6\xC0 |0
+<U7964> \xD6\xBC |0
+<U7965> \xB2\xBB |0
+<U7967> \xD6\xBD |0
+<U7968> \xB2\xBC |0
+<U7969> \xD6\xBE |0
+<U796A> \xD6\xBF |0
+<U796B> \xD6\xC1 |0
+<U796D> \xB2\xBD |0
+<U7970> \xDA\xD5 |0
+<U7972> \xDA\xD4 |0
+<U7973> \xDA\xD3 |0
+<U7974> \xDA\xD2 |0
+<U7979> \xDE\xF6 |0
+<U797A> \xB8\x52 |0
+<U797C> \xDE\xF3 |0
+<U797D> \xDE\xF5 |0
+<U797F> \xB8\x53 |0
+<U7981> \xB8\x54 |0
+<U7982> \xDE\xF4 |0
+<U7988> \xE3\x41 |0
+<U798A> \xE2\xF9 |0
+<U798B> \xE2\xFA |0
+<U798D> \xBA\xD7 |0
+<U798E> \xBA\xD5 |0
+<U798F> \xBA\xD6 |0
+<U7990> \xE3\x43 |0
+<U7992> \xE3\x42 |0
+<U7993> \xE2\xFE |0
+<U7994> \xE2\xFD |0
+<U7995> \xE2\xFC |0
+<U7996> \xE2\xFB |0
+<U7997> \xE3\x40 |0
+<U7998> \xE2\xF8 |0
+<U799A> \xE6\xCB |0
+<U799B> \xE6\xD0 |0
+<U799C> \xE6\xCE |0
+<U79A0> \xE6\xCD |0
+<U79A1> \xE6\xCC |0
+<U79A2> \xE6\xCF |0
+<U79A4> \xEA\xAE |0
+<U79A6> \xBF\x6D |0
+<U79A7> \xC1\x48 |0
+<U79A8> \xED\xB0 |0
+<U79AA> \xC1\x49 |0
+<U79AB> \xED\xAF |0
+<U79AC> \xF0\x5F |0
+<U79AD> \xF0\x5E |0
+<U79AE> \xC2\xA7 |0
+<U79B0> \xF2\xA5 |0
+<U79B1> \xC3\xAB |0
+<U79B2> \xF4\xA1 |0
+<U79B3> \xC5\xA1 |0
+<U79B4> \xF6\xF7 |0
+<U79B6> \xF8\xB7 |0
+<U79B7> \xF8\xB6 |0
+<U79B8> \xC9\xA8 |0
+<U79B9> \xAC\xEA |0
+<U79BA> \xAC\xEB |0
+<U79BB> \xD6\xC3 |0
+<U79BD> \xB8\x56 |0
+<U79BE> \xA5\xDD |0
+<U79BF> \xA8\x72 |0
+<U79C0> \xA8\x71 |0
+<U79C1> \xA8\x70 |0
+<U79C5> \xCD\xA4 |0
+<U79C8> \xAA\xC4 |0
+<U79C9> \xAA\xC3 |0
+<U79CB> \xAC\xEE |0
+<U79CD> \xCF\xFA |0
+<U79CE> \xCF\xFD |0
+<U79CF> \xCF\xFB |0
+<U79D1> \xAC\xEC |0
+<U79D2> \xAC\xED |0
+<U79D5> \xCF\xF9 |0
+<U79D6> \xCF\xFC |0
+<U79D8> \xAF\xB5 |0
+<U79DC> \xD2\xF3 |0
+<U79DD> \xD2\xF5 |0
+<U79DE> \xD2\xF4 |0
+<U79DF> \xAF\xB2 |0
+<U79E0> \xD2\xEF |0
+<U79E3> \xAF\xB0 |0
+<U79E4> \xAF\xAF |0
+<U79E6> \xAF\xB3 |0
+<U79E7> \xAF\xB1 |0
+<U79E9> \xAF\xB4 |0
+<U79EA> \xD2\xF2 |0
+<U79EB> \xD2\xED |0
+<U79EC> \xD2\xEE |0
+<U79ED> \xD2\xF1 |0
+<U79EE> \xD2\xF0 |0
+<U79F6> \xD6\xC6 |0
+<U79F7> \xD6\xC7 |0
+<U79F8> \xD6\xC5 |0
+<U79FA> \xD6\xC4 |0
+<U79FB> \xB2\xBE |0
+<U7A00> \xB5\x7D |0
+<U7A02> \xDA\xD6 |0
+<U7A03> \xDA\xD8 |0
+<U7A04> \xDA\xDA |0
+<U7A05> \xB5\x7C |0
+<U7A08> \xB5\x7A |0
+<U7A0A> \xDA\xD7 |0
+<U7A0B> \xB5\x7B |0
+<U7A0C> \xDA\xD9 |0
+<U7A0D> \xB5\x79 |0
+<U7A10> \xDF\x41 |0
+<U7A11> \xDE\xF7 |0
+<U7A12> \xDE\xFA |0
+<U7A13> \xDE\xFE |0
+<U7A14> \xB8\x5A |0
+<U7A15> \xDE\xFC |0
+<U7A17> \xDE\xFB |0
+<U7A18> \xDE\xF8 |0
+<U7A19> \xDE\xF9 |0
+<U7A1A> \xB8\x58 |0
+<U7A1B> \xDF\x40 |0
+<U7A1C> \xB8\x57 |0
+<U7A1E> \xB8\x5C |0
+<U7A1F> \xB8\x5B |0
+<U7A20> \xB8\x59 |0
+<U7A22> \xDE\xFD |0
+<U7A26> \xE3\x49 |0
+<U7A28> \xE3\x48 |0
+<U7A2B> \xE3\x44 |0
+<U7A2E> \xBA\xD8 |0
+<U7A2F> \xE3\x47 |0
+<U7A30> \xE3\x46 |0
+<U7A31> \xBA\xD9 |0
+<U7A37> \xBD\x5E |0
+<U7A39> \xE6\xD2 |0
+<U7A3B> \xBD\x5F |0
+<U7A3C> \xBD\x5B |0
+<U7A3D> \xBD\x5D |0
+<U7A3F> \xBD\x5A |0
+<U7A40> \xBD\x5C |0
+<U7A44> \xEA\xAF |0
+<U7A46> \xBF\x70 |0
+<U7A47> \xEA\xB1 |0
+<U7A48> \xEA\xB0 |0
+<U7A4A> \xE3\x45 |0
+<U7A4B> \xBF\x72 |0
+<U7A4C> \xBF\x71 |0
+<U7A4D> \xBF\x6E |0
+<U7A4E> \xBF\x6F |0
+<U7A54> \xED\xB5 |0
+<U7A56> \xED\xB3 |0
+<U7A57> \xC1\x4A |0
+<U7A58> \xED\xB4 |0
+<U7A5A> \xED\xB6 |0
+<U7A5B> \xED\xB2 |0
+<U7A5C> \xED\xB1 |0
+<U7A5F> \xF0\x60 |0
+<U7A60> \xC2\xAA |0
+<U7A61> \xC2\xA8 |0
+<U7A62> \xC2\xA9 |0
+<U7A67> \xF2\xA6 |0
+<U7A68> \xF2\xA7 |0
+<U7A69> \xC3\xAD |0
+<U7A6B> \xC3\xAC |0
+<U7A6C> \xF4\xA3 |0
+<U7A6D> \xF4\xA4 |0
+<U7A6E> \xF4\xA2 |0
+<U7A70> \xF6\xF8 |0
+<U7A71> \xF6\xF9 |0
+<U7A74> \xA5\xDE |0
+<U7A75> \xCA\x48 |0
+<U7A76> \xA8\x73 |0
+<U7A78> \xCD\xA5 |0
+<U7A79> \xAA\xC6 |0
+<U7A7A> \xAA\xC5 |0
+<U7A7B> \xCD\xA6 |0
+<U7A7E> \xD0\x40 |0
+<U7A7F> \xAC\xEF |0
+<U7A80> \xCF\xFE |0
+<U7A81> \xAC\xF0 |0
+<U7A84> \xAF\xB6 |0
+<U7A85> \xD2\xF8 |0
+<U7A86> \xD2\xF6 |0
+<U7A87> \xD2\xFC |0
+<U7A88> \xAF\xB7 |0
+<U7A89> \xD2\xF7 |0
+<U7A8A> \xD2\xFB |0
+<U7A8B> \xD2\xF9 |0
+<U7A8C> \xD2\xFA |0
+<U7A8F> \xD6\xC8 |0
+<U7A90> \xD6\xCA |0
+<U7A92> \xB2\xBF |0
+<U7A94> \xD6\xC9 |0
+<U7A95> \xB2\xC0 |0
+<U7A96> \xB5\xA2 |0
+<U7A97> \xB5\xA1 |0
+<U7A98> \xB5\x7E |0
+<U7A99> \xDA\xDB |0
+<U7A9E> \xDF\x44 |0
+<U7A9F> \xB8\x5D |0
+<U7AA0> \xB8\x5E |0
+<U7AA2> \xDF\x43 |0
+<U7AA3> \xDF\x42 |0
+<U7AA8> \xE3\x4A |0
+<U7AA9> \xBA\xDB |0
+<U7AAA> \xBA\xDA |0
+<U7AAB> \xE3\x4B |0
+<U7AAC> \xE3\x4C |0
+<U7AAE> \xBD\x61 |0
+<U7AAF> \xBD\x60 |0
+<U7AB1> \xEA\xB5 |0
+<U7AB2> \xE6\xD3 |0
+<U7AB3> \xE6\xD5 |0
+<U7AB4> \xE6\xD4 |0
+<U7AB5> \xEA\xB4 |0
+<U7AB6> \xEA\xB2 |0
+<U7AB7> \xEA\xB6 |0
+<U7AB8> \xEA\xB3 |0
+<U7ABA> \xBF\x73 |0
+<U7ABE> \xED\xB7 |0
+<U7ABF> \xC1\x4B |0
+<U7AC0> \xED\xB8 |0
+<U7AC1> \xED\xB9 |0
+<U7AC4> \xC2\xAB |0
+<U7AC5> \xC2\xAC |0
+<U7AC7> \xC4\x75 |0
+<U7ACA> \xC5\xD1 |0
+<U7ACB> \xA5\xDF |0
+<U7AD1> \xD0\x41 |0
+<U7AD8> \xD2\xFD |0
+<U7AD9> \xAF\xB8 |0
+<U7ADF> \xB3\xBA |0
+<U7AE0> \xB3\xB9 |0
+<U7AE3> \xB5\xA4 |0
+<U7AE4> \xDA\xDD |0
+<U7AE5> \xB5\xA3 |0
+<U7AE6> \xDA\xDC |0
+<U7AEB> \xDF\x45 |0
+<U7AED> \xBA\xDC |0
+<U7AEE> \xE3\x4D |0
+<U7AEF> \xBA\xDD |0
+<U7AF6> \xC4\x76 |0
+<U7AF7> \xF4\xA5 |0
+<U7AF9> \xA6\xCB |0
+<U7AFA> \xAA\xC7 |0
+<U7AFB> \xCD\xA7 |0
+<U7AFD> \xAC\xF2 |0
+<U7AFF> \xAC\xF1 |0
+<U7B00> \xD0\x42 |0
+<U7B01> \xD0\x43 |0
+<U7B04> \xD3\x40 |0
+<U7B05> \xD3\x42 |0
+<U7B06> \xAF\xB9 |0
+<U7B08> \xD3\x44 |0
+<U7B09> \xD3\x47 |0
+<U7B0A> \xD3\x45 |0
+<U7B0E> \xD3\x46 |0
+<U7B0F> \xD3\x43 |0
+<U7B10> \xD2\xFE |0
+<U7B11> \xAF\xBA |0
+<U7B12> \xD3\x48 |0
+<U7B13> \xD3\x41 |0
+<U7B18> \xD6\xD3 |0
+<U7B19> \xB2\xC6 |0
+<U7B1A> \xD6\xDC |0
+<U7B1B> \xB2\xC3 |0
+<U7B1D> \xD6\xD5 |0
+<U7B1E> \xB2\xC7 |0
+<U7B20> \xB2\xC1 |0
+<U7B22> \xD6\xD0 |0
+<U7B23> \xD6\xDD |0
+<U7B24> \xD6\xD1 |0
+<U7B25> \xD6\xCE |0
+<U7B26> \xB2\xC5 |0
+<U7B28> \xB2\xC2 |0
+<U7B2A> \xD6\xD4 |0
+<U7B2B> \xD6\xD7 |0
+<U7B2C> \xB2\xC4 |0
+<U7B2D> \xD6\xD8 |0
+<U7B2E> \xB2\xC8 |0
+<U7B2F> \xD6\xD9 |0
+<U7B30> \xD6\xCF |0
+<U7B31> \xD6\xD6 |0
+<U7B32> \xD6\xDA |0
+<U7B33> \xD6\xD2 |0
+<U7B34> \xD6\xCD |0
+<U7B35> \xD6\xCB |0
+<U7B38> \xD6\xDB |0
+<U7B3B> \xDA\xDF |0
+<U7B40> \xDA\xE4 |0
+<U7B44> \xDA\xE0 |0
+<U7B45> \xDA\xE6 |0
+<U7B46> \xB5\xA7 |0
+<U7B47> \xD6\xCC |0
+<U7B48> \xDA\xE1 |0
+<U7B49> \xB5\xA5 |0
+<U7B4A> \xDA\xDE |0
+<U7B4B> \xB5\xAC |0
+<U7B4C> \xDA\xE2 |0
+<U7B4D> \xB5\xAB |0
+<U7B4E> \xDA\xE3 |0
+<U7B4F> \xB5\xAD |0
+<U7B50> \xB5\xA8 |0
+<U7B51> \xB5\xAE |0
+<U7B52> \xB5\xA9 |0
+<U7B54> \xB5\xAA |0
+<U7B56> \xB5\xA6 |0
+<U7B58> \xDA\xE5 |0
+<U7B60> \xB8\x61 |0
+<U7B61> \xDF\x50 |0
+<U7B63> \xDF\x53 |0
+<U7B64> \xDF\x47 |0
+<U7B65> \xDF\x4C |0
+<U7B66> \xDF\x46 |0
+<U7B67> \xB8\x63 |0
+<U7B69> \xDF\x4A |0
+<U7B6D> \xDF\x48 |0
+<U7B6E> \xB8\x62 |0
+<U7B70> \xDF\x4F |0
+<U7B71> \xDF\x4E |0
+<U7B72> \xDF\x4B |0
+<U7B73> \xDF\x4D |0
+<U7B74> \xDF\x49 |0
+<U7B75> \xBA\xE1 |0
+<U7B76> \xDF\x52 |0
+<U7B77> \xB8\x5F |0
+<U7B78> \xDF\x51 |0
+<U7B82> \xE3\x5D |0
+<U7B84> \xBA\xE8 |0
+<U7B85> \xE3\x58 |0
+<U7B87> \xBA\xE7 |0
+<U7B88> \xE3\x4E |0
+<U7B8A> \xE3\x50 |0
+<U7B8B> \xBA\xE0 |0
+<U7B8C> \xE3\x55 |0
+<U7B8D> \xE3\x54 |0
+<U7B8E> \xE3\x57 |0
+<U7B8F> \xBA\xE5 |0
+<U7B90> \xE3\x52 |0
+<U7B91> \xE3\x51 |0
+<U7B94> \xBA\xE4 |0
+<U7B95> \xBA\xDF |0
+<U7B96> \xE3\x53 |0
+<U7B97> \xBA\xE2 |0
+<U7B98> \xE3\x59 |0
+<U7B99> \xE3\x5B |0
+<U7B9B> \xE3\x56 |0
+<U7B9C> \xE3\x4F |0
+<U7B9D> \xBA\xE3 |0
+<U7BA0> \xBD\x69 |0
+<U7BA1> \xBA\xDE |0
+<U7BA4> \xE3\x5C |0
+<U7BAC> \xE6\xD9 |0
+<U7BAD> \xBD\x62 |0
+<U7BAF> \xE6\xDB |0
+<U7BB1> \xBD\x63 |0
+<U7BB4> \xBD\x65 |0
+<U7BB5> \xE6\xDE |0
+<U7BB7> \xE6\xD6 |0
+<U7BB8> \xBA\xE6 |0
+<U7BB9> \xE6\xDC |0
+<U7BBE> \xE6\xD8 |0
+<U7BC0> \xB8\x60 |0
+<U7BC1> \xBD\x68 |0
+<U7BC4> \xBD\x64 |0
+<U7BC6> \xBD\x66 |0
+<U7BC7> \xBD\x67 |0
+<U7BC9> \xBF\x76 |0
+<U7BCA> \xE6\xDD |0
+<U7BCB> \xE6\xD7 |0
+<U7BCC> \xBD\x6A |0
+<U7BCE> \xE6\xDA |0
+<U7BD4> \xEA\xC0 |0
+<U7BD5> \xEA\xBB |0
+<U7BD8> \xEA\xC5 |0
+<U7BD9> \xBF\x74 |0
+<U7BDA> \xEA\xBD |0
+<U7BDB> \xBF\x78 |0
+<U7BDC> \xEA\xC3 |0
+<U7BDD> \xEA\xBA |0
+<U7BDE> \xEA\xB7 |0
+<U7BDF> \xEA\xC6 |0
+<U7BE0> \xC1\x51 |0
+<U7BE1> \xBF\x79 |0
+<U7BE2> \xEA\xC2 |0
+<U7BE3> \xEA\xB8 |0
+<U7BE4> \xBF\x77 |0
+<U7BE5> \xEA\xBC |0
+<U7BE6> \xBF\x7B |0
+<U7BE7> \xEA\xB9 |0
+<U7BE8> \xEA\xBE |0
+<U7BE9> \xBF\x7A |0
+<U7BEA> \xEA\xC1 |0
+<U7BEB> \xEA\xC4 |0
+<U7BF0> \xED\xCB |0
+<U7BF1> \xED\xCC |0
+<U7BF2> \xED\xBC |0
+<U7BF3> \xED\xC3 |0
+<U7BF4> \xED\xC1 |0
+<U7BF7> \xC1\x4F |0
+<U7BF8> \xED\xC8 |0
+<U7BF9> \xEA\xBF |0
+<U7BFB> \xED\xBF |0
+<U7BFD> \xED\xC9 |0
+<U7BFE> \xC1\x4E |0
+<U7BFF> \xED\xBE |0
+<U7C00> \xED\xBD |0
+<U7C01> \xED\xC7 |0
+<U7C02> \xED\xC4 |0
+<U7C03> \xED\xC6 |0
+<U7C05> \xED\xBA |0
+<U7C06> \xED\xCA |0
+<U7C07> \xC1\x4C |0
+<U7C09> \xED\xC5 |0
+<U7C0A> \xED\xCE |0
+<U7C0B> \xED\xC2 |0
+<U7C0C> \xC1\x50 |0
+<U7C0D> \xC1\x4D |0
+<U7C0E> \xED\xC0 |0
+<U7C0F> \xED\xBB |0
+<U7C10> \xED\xCD |0
+<U7C11> \xBF\x75 |0
+<U7C19> \xF0\x63 |0
+<U7C1C> \xF0\x61 |0
+<U7C1D> \xF0\x67 |0
+<U7C1E> \xC2\xB0 |0
+<U7C1F> \xF0\x65 |0
+<U7C20> \xF0\x64 |0
+<U7C21> \xC2\xB2 |0
+<U7C22> \xF0\x6A |0
+<U7C23> \xC2\xB1 |0
+<U7C25> \xF0\x6B |0
+<U7C26> \xF0\x68 |0
+<U7C27> \xC2\xAE |0
+<U7C28> \xF0\x69 |0
+<U7C29> \xF0\x62 |0
+<U7C2A> \xC2\xAF |0
+<U7C2B> \xC2\xAD |0
+<U7C2C> \xF2\xAB |0
+<U7C2D> \xF0\x66 |0
+<U7C30> \xF0\x6C |0
+<U7C33> \xF2\xA8 |0
+<U7C37> \xC3\xB2 |0
+<U7C38> \xC3\xB0 |0
+<U7C39> \xF2\xAA |0
+<U7C3B> \xF2\xAC |0
+<U7C3C> \xF2\xA9 |0
+<U7C3D> \xC3\xB1 |0
+<U7C3E> \xC3\xAE |0
+<U7C3F> \xC3\xAF |0
+<U7C40> \xC3\xB3 |0
+<U7C43> \xC4\x78 |0
+<U7C45> \xF4\xAA |0
+<U7C47> \xF4\xA9 |0
+<U7C48> \xF4\xA7 |0
+<U7C49> \xF4\xA6 |0
+<U7C4A> \xF4\xA8 |0
+<U7C4C> \xC4\x77 |0
+<U7C4D> \xC4\x79 |0
+<U7C50> \xC4\xF0 |0
+<U7C53> \xF5\xE5 |0
+<U7C54> \xF5\xE4 |0
+<U7C57> \xF6\xFA |0
+<U7C59> \xF6\xFC |0
+<U7C5A> \xF6\xFE |0
+<U7C5B> \xF6\xFD |0
+<U7C5C> \xF6\xFB |0
+<U7C5F> \xC5\xA3 |0
+<U7C60> \xC5\xA2 |0
+<U7C63> \xC5\xD3 |0
+<U7C64> \xC5\xD2 |0
+<U7C65> \xC5\xD4 |0
+<U7C66> \xF7\xED |0
+<U7C67> \xF7\xEC |0
+<U7C69> \xF8\xFB |0
+<U7C6A> \xF8\xB8 |0
+<U7C6B> \xF8\xFC |0
+<U7C6C> \xC6\x58 |0
+<U7C6E> \xC6\x59 |0
+<U7C6F> \xF9\x6D |0
+<U7C72> \xC6\x7E |0
+<U7C73> \xA6\xCC |0
+<U7C75> \xCD\xA8 |0
+<U7C78> \xD0\x45 |0
+<U7C79> \xD0\x46 |0
+<U7C7A> \xD0\x44 |0
+<U7C7D> \xAC\xF3 |0
+<U7C7F> \xD0\x47 |0
+<U7C80> \xD0\x48 |0
+<U7C81> \xD0\x49 |0
+<U7C84> \xD3\x49 |0
+<U7C85> \xD3\x4F |0
+<U7C88> \xD3\x4D |0
+<U7C89> \xAF\xBB |0
+<U7C8A> \xD3\x4B |0
+<U7C8C> \xD3\x4C |0
+<U7C8D> \xD3\x4E |0
+<U7C91> \xD3\x4A |0
+<U7C92> \xB2\xC9 |0
+<U7C94> \xD6\xDE |0
+<U7C95> \xB2\xCB |0
+<U7C96> \xD6\xE0 |0
+<U7C97> \xB2\xCA |0
+<U7C98> \xD6\xDF |0
+<U7C9E> \xDA\xE8 |0
+<U7C9F> \xB5\xAF |0
+<U7CA1> \xDA\xEA |0
+<U7CA2> \xDA\xE7 |0
+<U7CA3> \xD6\xE1 |0
+<U7CA5> \xB5\xB0 |0
+<U7CA7> \xF9\xDB |0
+<U7CA8> \xDA\xE9 |0
+<U7CAF> \xDF\x56 |0
+<U7CB1> \xB8\x64 |0
+<U7CB2> \xDF\x54 |0
+<U7CB3> \xB8\x65 |0
+<U7CB4> \xDF\x55 |0
+<U7CB5> \xB8\x66 |0
+<U7CB9> \xBA\xE9 |0
+<U7CBA> \xE3\x61 |0
+<U7CBB> \xE3\x5E |0
+<U7CBC> \xE3\x60 |0
+<U7CBD> \xBA\xEA |0
+<U7CBE> \xBA\xEB |0
+<U7CBF> \xE3\x5F |0
+<U7CC5> \xE6\xDF |0
+<U7CC8> \xE6\xE0 |0
+<U7CCA> \xBD\x6B |0
+<U7CCB> \xE6\xE2 |0
+<U7CCC> \xE6\xE1 |0
+<U7CCE> \xA2\x61 |0
+<U7CD0> \xEA\xCA |0
+<U7CD1> \xEA\xCB |0
+<U7CD2> \xEA\xC7 |0
+<U7CD4> \xEA\xC8 |0
+<U7CD5> \xBF\x7C |0
+<U7CD6> \xBF\x7D |0
+<U7CD7> \xEA\xC9 |0
+<U7CD9> \xC1\x57 |0
+<U7CDC> \xC1\x53 |0
+<U7CDD> \xC1\x58 |0
+<U7CDE> \xC1\x54 |0
+<U7CDF> \xC1\x56 |0
+<U7CE0> \xC1\x52 |0
+<U7CE2> \xC1\x55 |0
+<U7CE7> \xC2\xB3 |0
+<U7CE8> \xED\xCF |0
+<U7CEA> \xF2\xAE |0
+<U7CEC> \xF2\xAD |0
+<U7CEE> \xF4\xAB |0
+<U7CEF> \xC4\x7A |0
+<U7CF0> \xC4\x7B |0
+<U7CF1> \xF7\x41 |0
+<U7CF2> \xF5\xE6 |0
+<U7CF4> \xF7\x40 |0
+<U7CF6> \xF8\xFD |0
+<U7CF7> \xF9\xA4 |0
+<U7CF8> \xA6\xCD |0
+<U7CFB> \xA8\x74 |0
+<U7CFD> \xCD\xA9 |0
+<U7CFE> \xAA\xC8 |0
+<U7D00> \xAC\xF6 |0
+<U7D01> \xD0\x4C |0
+<U7D02> \xAC\xF4 |0
+<U7D03> \xD0\x4A |0
+<U7D04> \xAC\xF9 |0
+<U7D05> \xAC\xF5 |0
+<U7D06> \xAC\xFA |0
+<U7D07> \xAC\xF8 |0
+<U7D08> \xD0\x4B |0
+<U7D09> \xAC\xF7 |0
+<U7D0A> \xAF\xBF |0
+<U7D0B> \xAF\xBE |0
+<U7D0C> \xD3\x5A |0
+<U7D0D> \xAF\xC7 |0
+<U7D0E> \xD3\x53 |0
+<U7D0F> \xD3\x59 |0
+<U7D10> \xAF\xC3 |0
+<U7D11> \xD3\x52 |0
+<U7D12> \xD3\x58 |0
+<U7D13> \xD3\x56 |0
+<U7D14> \xAF\xC2 |0
+<U7D15> \xAF\xC4 |0
+<U7D16> \xD3\x55 |0
+<U7D17> \xAF\xBD |0
+<U7D18> \xD3\x54 |0
+<U7D19> \xAF\xC8 |0
+<U7D1A> \xAF\xC5 |0
+<U7D1B> \xAF\xC9 |0
+<U7D1C> \xAF\xC6 |0
+<U7D1D> \xD3\x51 |0
+<U7D1E> \xD3\x50 |0
+<U7D1F> \xD3\x57 |0
+<U7D20> \xAF\xC0 |0
+<U7D21> \xAF\xBC |0
+<U7D22> \xAF\xC1 |0
+<U7D28> \xD6\xF0 |0
+<U7D29> \xD6\xE9 |0
+<U7D2B> \xB5\xB5 |0
+<U7D2C> \xD6\xE8 |0
+<U7D2E> \xB2\xCF |0
+<U7D2F> \xB2\xD6 |0
+<U7D30> \xB2\xD3 |0
+<U7D31> \xB2\xD9 |0
+<U7D32> \xB2\xD8 |0
+<U7D33> \xB2\xD4 |0
+<U7D35> \xD6\xE2 |0
+<U7D36> \xD6\xE5 |0
+<U7D38> \xD6\xE4 |0
+<U7D39> \xB2\xD0 |0
+<U7D3A> \xD6\xE6 |0
+<U7D3B> \xD6\xEF |0
+<U7D3C> \xB2\xD1 |0
+<U7D3D> \xD6\xE3 |0
+<U7D3E> \xD6\xEC |0
+<U7D3F> \xD6\xED |0
+<U7D40> \xB2\xD2 |0
+<U7D41> \xD6\xEA |0
+<U7D42> \xB2\xD7 |0
+<U7D43> \xB2\xCD |0
+<U7D44> \xB2\xD5 |0
+<U7D45> \xD6\xE7 |0
+<U7D46> \xB2\xCC |0
+<U7D47> \xD6\xEB |0
+<U7D4A> \xD6\xEE |0
+<U7D4E> \xDA\xFB |0
+<U7D4F> \xDA\xF2 |0
+<U7D50> \xB5\xB2 |0
+<U7D51> \xDA\xF9 |0
+<U7D52> \xDA\xF6 |0
+<U7D53> \xDA\xEE |0
+<U7D54> \xDA\xF7 |0
+<U7D55> \xB5\xB4 |0
+<U7D56> \xDA\xEF |0
+<U7D58> \xDA\xEB |0
+<U7D5B> \xB8\x6C |0
+<U7D5C> \xDA\xF4 |0
+<U7D5E> \xB5\xB1 |0
+<U7D5F> \xDA\xFA |0
+<U7D61> \xB5\xB8 |0
+<U7D62> \xB5\xBA |0
+<U7D63> \xDA\xED |0
+<U7D66> \xB5\xB9 |0
+<U7D67> \xDA\xF0 |0
+<U7D68> \xB5\xB3 |0
+<U7D69> \xDA\xF8 |0
+<U7D6A> \xDA\xF1 |0
+<U7D6B> \xDA\xF5 |0
+<U7D6D> \xDA\xF3 |0
+<U7D6E> \xB5\xB6 |0
+<U7D6F> \xDA\xEC |0
+<U7D70> \xB5\xBB |0
+<U7D71> \xB2\xCE |0
+<U7D72> \xB5\xB7 |0
+<U7D73> \xB5\xBC |0
+<U7D79> \xB8\x68 |0
+<U7D7A> \xDF\x5D |0
+<U7D7B> \xDF\x5F |0
+<U7D7C> \xDF\x61 |0
+<U7D7D> \xDF\x65 |0
+<U7D7F> \xDF\x5B |0
+<U7D80> \xDF\x59 |0
+<U7D81> \xB8\x6A |0
+<U7D83> \xDF\x60 |0
+<U7D84> \xDF\x64 |0
+<U7D85> \xDF\x5C |0
+<U7D86> \xDF\x58 |0
+<U7D88> \xDF\x57 |0
+<U7D8C> \xDF\x62 |0
+<U7D8D> \xDF\x5A |0
+<U7D8E> \xDF\x5E |0
+<U7D8F> \xB8\x6B |0
+<U7D91> \xB8\x69 |0
+<U7D92> \xDF\x66 |0
+<U7D93> \xB8\x67 |0
+<U7D94> \xDF\x63 |0
+<U7D96> \xE3\x72 |0
+<U7D9C> \xBA\xEE |0
+<U7D9D> \xE3\x6A |0
+<U7D9E> \xBD\x78 |0
+<U7D9F> \xE3\x74 |0
+<U7DA0> \xBA\xF1 |0
+<U7DA1> \xE3\x78 |0
+<U7DA2> \xBA\xF7 |0
+<U7DA3> \xE3\x65 |0
+<U7DA6> \xE3\x75 |0
+<U7DA7> \xE3\x62 |0
+<U7DA9> \xE3\x77 |0
+<U7DAA> \xE3\x66 |0
+<U7DAC> \xBA\xFE |0
+<U7DAD> \xBA\xFB |0
+<U7DAE> \xE3\x76 |0
+<U7DAF> \xE3\x70 |0
+<U7DB0> \xBA\xED |0
+<U7DB1> \xBA\xF5 |0
+<U7DB2> \xBA\xF4 |0
+<U7DB4> \xBA\xF3 |0
+<U7DB5> \xBA\xF9 |0
+<U7DB7> \xE3\x63 |0
+<U7DB8> \xBA\xFA |0
+<U7DB9> \xE3\x71 |0
+<U7DBA> \xBA\xF6 |0
+<U7DBB> \xBA\xEC |0
+<U7DBC> \xE3\x73 |0
+<U7DBD> \xBA\xEF |0
+<U7DBE> \xBA\xF0 |0
+<U7DBF> \xBA\xF8 |0
+<U7DC0> \xE3\x68 |0
+<U7DC1> \xE3\x67 |0
+<U7DC2> \xE3\x64 |0
+<U7DC4> \xE3\x6C |0
+<U7DC5> \xE3\x69 |0
+<U7DC6> \xE3\x6D |0
+<U7DC7> \xBA\xFD |0
+<U7DC9> \xE3\x79 |0
+<U7DCA> \xBA\xF2 |0
+<U7DCB> \xE3\x6E |0
+<U7DCC> \xE3\x6F |0
+<U7DCE> \xE3\x6B |0
+<U7DD2> \xBA\xFC |0
+<U7DD7> \xE6\xE7 |0
+<U7DD8> \xBD\x70 |0
+<U7DD9> \xBD\x79 |0
+<U7DDA> \xBD\x75 |0
+<U7DDB> \xE6\xE4 |0
+<U7DDD> \xBD\x72 |0
+<U7DDE> \xBD\x76 |0
+<U7DDF> \xE6\xF0 |0
+<U7DE0> \xBD\x6C |0
+<U7DE1> \xE6\xE8 |0
+<U7DE3> \xBD\x74 |0
+<U7DE6> \xE6\xEB |0
+<U7DE7> \xE6\xE6 |0
+<U7DE8> \xBD\x73 |0
+<U7DE9> \xBD\x77 |0
+<U7DEA> \xE6\xE5 |0
+<U7DEC> \xBD\x71 |0
+<U7DEE> \xE6\xEF |0
+<U7DEF> \xBD\x6E |0
+<U7DF0> \xE6\xEE |0
+<U7DF1> \xE6\xED |0
+<U7DF2> \xBD\x7A |0
+<U7DF3> \xE5\x72 |0
+<U7DF4> \xBD\x6D |0
+<U7DF6> \xE6\xEC |0
+<U7DF7> \xE6\xE3 |0
+<U7DF9> \xBD\x7B |0
+<U7DFA> \xE6\xEA |0
+<U7DFB> \xBD\x6F |0
+<U7E03> \xE6\xE9 |0
+<U7E08> \xBF\xA2 |0
+<U7E09> \xBF\xA7 |0
+<U7E0A> \xBF\x7E |0
+<U7E0B> \xEA\xD8 |0
+<U7E0C> \xEA\xCF |0
+<U7E0D> \xEA\xDB |0
+<U7E0E> \xEA\xD3 |0
+<U7E0F> \xEA\xD9 |0
+<U7E10> \xBF\xA8 |0
+<U7E11> \xBF\xA1 |0
+<U7E12> \xEA\xCC |0
+<U7E13> \xEA\xD2 |0
+<U7E14> \xEA\xDC |0
+<U7E15> \xEA\xD5 |0
+<U7E16> \xEA\xDA |0
+<U7E17> \xEA\xCE |0
+<U7E1A> \xEA\xD6 |0
+<U7E1B> \xBF\xA3 |0
+<U7E1C> \xEA\xD4 |0
+<U7E1D> \xBF\xA6 |0
+<U7E1E> \xBF\xA5 |0
+<U7E1F> \xEA\xD0 |0
+<U7E20> \xEA\xD1 |0
+<U7E21> \xEA\xCD |0
+<U7E22> \xEA\xD7 |0
+<U7E23> \xBF\xA4 |0
+<U7E24> \xEA\xDE |0
+<U7E25> \xEA\xDD |0
+<U7E29> \xED\xDA |0
+<U7E2A> \xED\xD6 |0
+<U7E2B> \xC1\x5F |0
+<U7E2D> \xED\xD0 |0
+<U7E2E> \xC1\x59 |0
+<U7E2F> \xC1\x69 |0
+<U7E30> \xED\xDC |0
+<U7E31> \xC1\x61 |0
+<U7E32> \xC1\x5D |0
+<U7E33> \xED\xD3 |0
+<U7E34> \xC1\x64 |0
+<U7E35> \xC1\x67 |0
+<U7E36> \xED\xDE |0
+<U7E37> \xC1\x5C |0
+<U7E38> \xED\xD5 |0
+<U7E39> \xC1\x65 |0
+<U7E3A> \xED\xE0 |0
+<U7E3B> \xED\xDD |0
+<U7E3C> \xED\xD1 |0
+<U7E3D> \xC1\x60 |0
+<U7E3E> \xC1\x5A |0
+<U7E3F> \xC1\x68 |0
+<U7E40> \xED\xD8 |0
+<U7E41> \xC1\x63 |0
+<U7E42> \xED\xD2 |0
+<U7E43> \xC1\x5E |0
+<U7E44> \xED\xDF |0
+<U7E45> \xC1\x62 |0
+<U7E46> \xC1\x5B |0
+<U7E47> \xED\xD9 |0
+<U7E48> \xC1\x66 |0
+<U7E49> \xED\xD7 |0
+<U7E4C> \xED\xDB |0
+<U7E50> \xF0\x6E |0
+<U7E51> \xF0\x74 |0
+<U7E52> \xC2\xB9 |0
+<U7E53> \xF0\x77 |0
+<U7E54> \xC2\xB4 |0
+<U7E55> \xC2\xB5 |0
+<U7E56> \xF0\x6F |0
+<U7E57> \xF0\x76 |0
+<U7E58> \xF0\x71 |0
+<U7E59> \xC2\xBA |0
+<U7E5A> \xC2\xB7 |0
+<U7E5C> \xF0\x6D |0
+<U7E5E> \xC2\xB6 |0
+<U7E5F> \xF0\x73 |0
+<U7E60> \xF0\x75 |0
+<U7E61> \xC2\xB8 |0
+<U7E62> \xF0\x72 |0
+<U7E63> \xF0\x70 |0
+<U7E68> \xF2\xB8 |0
+<U7E69> \xC3\xB7 |0
+<U7E6A> \xC3\xB8 |0
+<U7E6B> \xC3\xB4 |0
+<U7E6D> \xC3\xB5 |0
+<U7E6F> \xF2\xB4 |0
+<U7E70> \xF2\xB2 |0
+<U7E72> \xF2\xB6 |0
+<U7E73> \xC3\xBA |0
+<U7E74> \xF2\xB7 |0
+<U7E75> \xF2\xB0 |0
+<U7E76> \xF2\xAF |0
+<U7E77> \xF2\xB3 |0
+<U7E78> \xF2\xB1 |0
+<U7E79> \xC3\xB6 |0
+<U7E7A> \xF2\xB5 |0
+<U7E7B> \xF4\xAC |0
+<U7E7C> \xC4\x7E |0
+<U7E7D> \xC4\x7D |0
+<U7E7E> \xF4\xAD |0
+<U7E80> \xF4\xAF |0
+<U7E81> \xF4\xAE |0
+<U7E82> \xC4\xA1 |0
+<U7E86> \xF5\xEB |0
+<U7E87> \xF5\xE8 |0
+<U7E88> \xF5\xE9 |0
+<U7E8A> \xF5\xE7 |0
+<U7E8B> \xF5\xEA |0
+<U7E8C> \xC4\xF2 |0
+<U7E8D> \xF5\xEC |0
+<U7E8F> \xC4\xF1 |0
+<U7E91> \xF7\x42 |0
+<U7E93> \xC5\xD5 |0
+<U7E94> \xC5\xD7 |0
+<U7E95> \xF7\xEE |0
+<U7E96> \xC5\xD6 |0
+<U7E97> \xF8\xB9 |0
+<U7E98> \xF9\x40 |0
+<U7E99> \xF9\x42 |0
+<U7E9A> \xF8\xFE |0
+<U7E9B> \xF9\x41 |0
+<U7E9C> \xC6\x6C |0
+<U7F36> \xA6\xCE |0
+<U7F38> \xAC\xFB |0
+<U7F39> \xD2\x6F |0
+<U7F3A> \xAF\xCA |0
+<U7F3D> \xB2\xDA |0
+<U7F3E> \xDA\xFC |0
+<U7F3F> \xDA\xFD |0
+<U7F43> \xEA\xDF |0
+<U7F44> \xC1\x6A |0
+<U7F45> \xED\xE1 |0
+<U7F48> \xC2\xBB |0
+<U7F4A> \xF2\xBA |0
+<U7F4B> \xF2\xB9 |0
+<U7F4C> \xC4\xA2 |0
+<U7F4D> \xF5\xED |0
+<U7F4F> \xF7\x43 |0
+<U7F50> \xC5\xF8 |0
+<U7F51> \xCA\x49 |0
+<U7F54> \xAA\xC9 |0
+<U7F55> \xA8\x75 |0
+<U7F58> \xD0\x4D |0
+<U7F5B> \xD3\x60 |0
+<U7F5C> \xD3\x5B |0
+<U7F5D> \xD3\x5F |0
+<U7F5E> \xD3\x5D |0
+<U7F5F> \xAF\xCB |0
+<U7F60> \xD3\x5E |0
+<U7F61> \xD3\x5C |0
+<U7F63> \xD6\xF1 |0
+<U7F65> \xDA\xFE |0
+<U7F66> \xDB\x40 |0
+<U7F67> \xDF\x69 |0
+<U7F68> \xDF\x6A |0
+<U7F69> \xB8\x6E |0
+<U7F6A> \xB8\x6F |0
+<U7F6B> \xDF\x68 |0
+<U7F6C> \xDF\x6B |0
+<U7F6D> \xDF\x67 |0
+<U7F6E> \xB8\x6D |0
+<U7F70> \xBB\x40 |0
+<U7F72> \xB8\x70 |0
+<U7F73> \xE3\x7A |0
+<U7F75> \xBD\x7C |0
+<U7F76> \xE6\xF1 |0
+<U7F77> \xBD\x7D |0
+<U7F79> \xBF\xA9 |0
+<U7F7A> \xEA\xE2 |0
+<U7F7B> \xEA\xE0 |0
+<U7F7C> \xEA\xE1 |0
+<U7F7D> \xED\xE4 |0
+<U7F7E> \xED\xE3 |0
+<U7F7F> \xED\xE2 |0
+<U7F83> \xF2\xBB |0
+<U7F85> \xC3\xB9 |0
+<U7F86> \xF2\xBC |0
+<U7F87> \xF7\x44 |0
+<U7F88> \xC5\xF9 |0
+<U7F89> \xF8\xBA |0
+<U7F8A> \xA6\xCF |0
+<U7F8B> \xAA\xCB |0
+<U7F8C> \xAA\xCA |0
+<U7F8D> \xD0\x4F |0
+<U7F8E> \xAC\xFC |0
+<U7F91> \xD0\x4E |0
+<U7F92> \xD3\x62 |0
+<U7F94> \xAF\xCC |0
+<U7F95> \xD6\xF2 |0
+<U7F96> \xD3\x61 |0
+<U7F9A> \xB2\xDC |0
+<U7F9B> \xD6\xF5 |0
+<U7F9C> \xD6\xF3 |0
+<U7F9D> \xD6\xF4 |0
+<U7F9E> \xB2\xDB |0
+<U7FA0> \xDB\x42 |0
+<U7FA1> \xDB\x43 |0
+<U7FA2> \xDB\x41 |0
+<U7FA4> \xB8\x73 |0
+<U7FA5> \xDF\x6D |0
+<U7FA6> \xDF\x6C |0
+<U7FA7> \xDF\x6E |0
+<U7FA8> \xB8\x72 |0
+<U7FA9> \xB8\x71 |0
+<U7FAC> \xE6\xF2 |0
+<U7FAD> \xE6\xF4 |0
+<U7FAF> \xBD\x7E |0
+<U7FB0> \xE6\xF3 |0
+<U7FB1> \xEA\xE3 |0
+<U7FB2> \xBF\xAA |0
+<U7FB3> \xF0\x79 |0
+<U7FB5> \xF0\x78 |0
+<U7FB6> \xC3\xBB |0
+<U7FB7> \xF2\xBD |0
+<U7FB8> \xC3\xBD |0
+<U7FB9> \xC3\xBC |0
+<U7FBA> \xF4\xB0 |0
+<U7FBB> \xF5\xEE |0
+<U7FBC> \xC4\xF3 |0
+<U7FBD> \xA6\xD0 |0
+<U7FBE> \xD0\x50 |0
+<U7FBF> \xAC\xFD |0
+<U7FC0> \xD3\x65 |0
+<U7FC1> \xAF\xCE |0
+<U7FC2> \xD3\x64 |0
+<U7FC3> \xD3\x63 |0
+<U7FC5> \xAF\xCD |0
+<U7FC7> \xD6\xFB |0
+<U7FC9> \xD6\xFD |0
+<U7FCA> \xD6\xF6 |0
+<U7FCB> \xD6\xF7 |0
+<U7FCC> \xB2\xDD |0
+<U7FCD> \xD6\xF8 |0
+<U7FCE> \xB2\xDE |0
+<U7FCF> \xD6\xFC |0
+<U7FD0> \xD6\xF9 |0
+<U7FD1> \xD6\xFA |0
+<U7FD2> \xB2\xDF |0
+<U7FD4> \xB5\xBE |0
+<U7FD5> \xB5\xBF |0
+<U7FD7> \xDB\x44 |0
+<U7FDB> \xDF\x6F |0
+<U7FDC> \xDF\x70 |0
+<U7FDE> \xE3\x7E |0
+<U7FDF> \xBB\x43 |0
+<U7FE0> \xBB\x41 |0
+<U7FE1> \xBB\x42 |0
+<U7FE2> \xE3\x7B |0
+<U7FE3> \xE3\x7C |0
+<U7FE5> \xE3\x7D |0
+<U7FE6> \xE6\xF9 |0
+<U7FE8> \xE6\xFA |0
+<U7FE9> \xBD\xA1 |0
+<U7FEA> \xE6\xF7 |0
+<U7FEB> \xE6\xF6 |0
+<U7FEC> \xE6\xF8 |0
+<U7FED> \xE6\xF5 |0
+<U7FEE> \xBF\xAD |0
+<U7FEF> \xEA\xE4 |0
+<U7FF0> \xBF\xAB |0
+<U7FF1> \xBF\xAC |0
+<U7FF2> \xED\xE6 |0
+<U7FF3> \xC1\x6B |0
+<U7FF4> \xED\xE5 |0
+<U7FF5> \xEF\xA8 |0
+<U7FF7> \xF0\x7A |0
+<U7FF8> \xF0\x7B |0
+<U7FF9> \xC2\xBC |0
+<U7FFB> \xC2\xBD |0
+<U7FFC> \xC1\x6C |0
+<U7FFD> \xF2\xBE |0
+<U7FFE> \xF2\xBF |0
+<U7FFF> \xF4\xB1 |0
+<U8000> \xC4\xA3 |0
+<U8001> \xA6\xD1 |0
+<U8003> \xA6\xD2 |0
+<U8004> \xAC\xFE |0
+<U8005> \xAA\xCC |0
+<U8006> \xAF\xCF |0
+<U8007> \xD0\x51 |0
+<U800B> \xB5\xC0 |0
+<U800C> \xA6\xD3 |0
+<U800D> \xAD\x41 |0
+<U800E> \xD0\x52 |0
+<U800F> \xD0\x53 |0
+<U8010> \xAD\x40 |0
+<U8011> \xAD\x42 |0
+<U8012> \xA6\xD4 |0
+<U8014> \xD0\x54 |0
+<U8015> \xAF\xD1 |0
+<U8016> \xD3\x66 |0
+<U8017> \xAF\xD3 |0
+<U8018> \xAF\xD0 |0
+<U8019> \xAF\xD2 |0
+<U801B> \xD7\x41 |0
+<U801C> \xB2\xE0 |0
+<U801E> \xD7\x40 |0
+<U801F> \xD6\xFE |0
+<U8021> \xDF\x71 |0
+<U8024> \xE3\xA1 |0
+<U8026> \xBD\xA2 |0
+<U8028> \xBF\xAE |0
+<U8029> \xEA\xE6 |0
+<U802A> \xEA\xE5 |0
+<U802C> \xED\xE7 |0
+<U8030> \xF5\xEF |0
+<U8033> \xA6\xD5 |0
+<U8034> \xCB\x73 |0
+<U8035> \xCD\xAA |0
+<U8036> \xAD\x43 |0
+<U8037> \xD0\x55 |0
+<U8039> \xD3\x68 |0
+<U803D> \xAF\xD4 |0
+<U803E> \xD3\x67 |0
+<U803F> \xAF\xD5 |0
+<U8043> \xD7\x43 |0
+<U8046> \xB2\xE2 |0
+<U8047> \xD7\x42 |0
+<U8048> \xD7\x44 |0
+<U804A> \xB2\xE1 |0
+<U804F> \xDB\x46 |0
+<U8050> \xDB\x47 |0
+<U8051> \xDB\x45 |0
+<U8052> \xB5\xC1 |0
+<U8056> \xB8\x74 |0
+<U8058> \xB8\x75 |0
+<U805A> \xBB\x45 |0
+<U805C> \xE3\xA3 |0
+<U805D> \xE3\xA2 |0
+<U805E> \xBB\x44 |0
+<U8064> \xE6\xFB |0
+<U8067> \xE6\xFC |0
+<U806C> \xEA\xE7 |0
+<U806F> \xC1\x70 |0
+<U8070> \xC1\x6F |0
+<U8071> \xC1\x6D |0
+<U8072> \xC1\x6E |0
+<U8073> \xC1\x71 |0
+<U8075> \xF0\x7C |0
+<U8076> \xC2\xBF |0
+<U8077> \xC2\xBE |0
+<U8078> \xF2\xC0 |0
+<U8079> \xF4\xB2 |0
+<U807D> \xC5\xA5 |0
+<U807E> \xC5\xA4 |0
+<U807F> \xA6\xD6 |0
+<U8082> \xD1\xFB |0
+<U8084> \xB8\x77 |0
+<U8085> \xB5\xC2 |0
+<U8086> \xB8\x76 |0
+<U8087> \xBB\x46 |0
+<U8089> \xA6\xD7 |0
+<U808A> \xC9\xA9 |0
+<U808B> \xA6\xD8 |0
+<U808C> \xA6\xD9 |0
+<U808F> \xCD\xAB |0
+<U8090> \xCB\x76 |0
+<U8092> \xCB\x77 |0
+<U8093> \xA8\x77 |0
+<U8095> \xCB\x74 |0
+<U8096> \xA8\x76 |0
+<U8098> \xA8\x79 |0
+<U8099> \xCB\x75 |0
+<U809A> \xA8\x7B |0
+<U809B> \xA8\x7A |0
+<U809C> \xCB\x78 |0
+<U809D> \xA8\x78 |0
+<U80A1> \xAA\xD1 |0
+<U80A2> \xAA\xCF |0
+<U80A3> \xCD\xAD |0
+<U80A5> \xAA\xCE |0
+<U80A9> \xAA\xD3 |0
+<U80AA> \xAA\xD5 |0
+<U80AB> \xAA\xD2 |0
+<U80AD> \xCD\xB0 |0
+<U80AE> \xCD\xAC |0
+<U80AF> \xAA\xD6 |0
+<U80B1> \xAA\xD0 |0
+<U80B2> \xA8\x7C |0
+<U80B4> \xAA\xD4 |0
+<U80B5> \xCD\xAF |0
+<U80B8> \xCD\xAE |0
+<U80BA> \xAA\xCD |0
+<U80C2> \xD0\x5B |0
+<U80C3> \xAD\x47 |0
+<U80C4> \xAD\x48 |0
+<U80C5> \xD0\x5D |0
+<U80C7> \xD0\x57 |0
+<U80C8> \xD0\x5A |0
+<U80C9> \xD0\x63 |0
+<U80CA> \xD0\x61 |0
+<U80CC> \xAD\x49 |0
+<U80CD> \xD0\x67 |0
+<U80CE> \xAD\x4C |0
+<U80CF> \xD0\x64 |0
+<U80D0> \xD0\x5C |0
+<U80D1> \xD0\x59 |0
+<U80D4> \xDB\x49 |0
+<U80D5> \xD0\x62 |0
+<U80D6> \xAD\x44 |0
+<U80D7> \xD0\x65 |0
+<U80D8> \xD0\x56 |0
+<U80D9> \xD0\x5F |0
+<U80DA> \xAD\x46 |0
+<U80DB> \xAD\x4B |0
+<U80DC> \xD0\x60 |0
+<U80DD> \xAD\x4F |0
+<U80DE> \xAD\x4D |0
+<U80E0> \xD0\x58 |0
+<U80E1> \xAD\x4A |0
+<U80E3> \xD0\x5E |0
+<U80E4> \xAD\x4E |0
+<U80E5> \xAD\x45 |0
+<U80E6> \xD0\x66 |0
+<U80ED> \xAF\xDA |0
+<U80EF> \xAF\xE3 |0
+<U80F0> \xAF\xD8 |0
+<U80F1> \xAF\xD6 |0
+<U80F2> \xD3\x6A |0
+<U80F3> \xAF\xDE |0
+<U80F4> \xAF\xDB |0
+<U80F5> \xD3\x6C |0
+<U80F8> \xAF\xDD |0
+<U80F9> \xD3\x6B |0
+<U80FA> \xD3\x69 |0
+<U80FB> \xD3\x6E |0
+<U80FC> \xAF\xE2 |0
+<U80FD> \xAF\xE0 |0
+<U80FE> \xDB\x48 |0
+<U8100> \xD3\x6F |0
+<U8101> \xD3\x6D |0
+<U8102> \xAF\xD7 |0
+<U8105> \xAF\xD9 |0
+<U8106> \xAF\xDC |0
+<U8108> \xAF\xDF |0
+<U810A> \xAF\xE1 |0
+<U8115> \xD7\x4E |0
+<U8116> \xB2\xE4 |0
+<U8118> \xD7\x45 |0
+<U8119> \xD7\x47 |0
+<U811B> \xD7\x48 |0
+<U811D> \xD7\x50 |0
+<U811E> \xD7\x4C |0
+<U811F> \xD7\x4A |0
+<U8121> \xD7\x4D |0
+<U8122> \xD7\x51 |0
+<U8123> \xB2\xE5 |0
+<U8124> \xB2\xE9 |0
+<U8125> \xD7\x46 |0
+<U8127> \xD7\x4F |0
+<U8129> \xB2\xE7 |0
+<U812B> \xB2\xE6 |0
+<U812C> \xD7\x4B |0
+<U812D> \xD7\x49 |0
+<U812F> \xB2\xE3 |0
+<U8130> \xB2\xE8 |0
+<U8139> \xB5\xC8 |0
+<U813A> \xDB\x51 |0
+<U813D> \xDB\x4F |0
+<U813E> \xB5\xCA |0
+<U8143> \xDB\x4A |0
+<U8144> \xDF\xA1 |0
+<U8146> \xB5\xC9 |0
+<U8147> \xDB\x4E |0
+<U814A> \xDB\x4B |0
+<U814B> \xB5\xC5 |0
+<U814C> \xB5\xCB |0
+<U814D> \xDB\x50 |0
+<U814E> \xB5\xC7 |0
+<U814F> \xDB\x4D |0
+<U8150> \xBB\x47 |0
+<U8151> \xB5\xC6 |0
+<U8152> \xDB\x4C |0
+<U8153> \xB5\xCC |0
+<U8154> \xB5\xC4 |0
+<U8155> \xB5\xC3 |0
+<U815B> \xDF\x77 |0
+<U815C> \xDF\x75 |0
+<U815E> \xDF\x7B |0
+<U8160> \xDF\x73 |0
+<U8161> \xDF\xA2 |0
+<U8162> \xDF\x78 |0
+<U8164> \xDF\x72 |0
+<U8165> \xB8\x7B |0
+<U8166> \xB8\xA3 |0
+<U8167> \xDF\x7D |0
+<U8169> \xDF\x76 |0
+<U816B> \xB8\x7E |0
+<U816E> \xB8\x7C |0
+<U816F> \xDF\x7E |0
+<U8170> \xB8\x79 |0
+<U8171> \xB8\x78 |0
+<U8172> \xDF\x79 |0
+<U8173> \xB8\x7D |0
+<U8174> \xB5\xCD |0
+<U8176> \xDF\x7C |0
+<U8177> \xDF\x74 |0
+<U8178> \xB8\x7A |0
+<U8179> \xB8\xA1 |0
+<U817A> \xB8\xA2 |0
+<U817F> \xBB\x4C |0
+<U8180> \xBB\x48 |0
+<U8182> \xBB\x4D |0
+<U8183> \xE3\xA6 |0
+<U8186> \xE3\xA5 |0
+<U8187> \xE3\xA7 |0
+<U8188> \xBB\x4A |0
+<U8189> \xE3\xA4 |0
+<U818A> \xBB\x4B |0
+<U818B> \xE3\xAA |0
+<U818C> \xE3\xA9 |0
+<U818D> \xE3\xA8 |0
+<U818F> \xBB\x49 |0
+<U8195> \xE7\x41 |0
+<U8197> \xE7\x44 |0
+<U8198> \xBD\xA8 |0
+<U8199> \xE7\x43 |0
+<U819A> \xBD\xA7 |0
+<U819B> \xBD\xA3 |0
+<U819C> \xBD\xA4 |0
+<U819D> \xBD\xA5 |0
+<U819E> \xE7\x40 |0
+<U819F> \xE6\xFE |0
+<U81A0> \xBD\xA6 |0
+<U81A2> \xE7\x42 |0
+<U81A3> \xE6\xFD |0
+<U81A6> \xEA\xE9 |0
+<U81A7> \xEA\xF3 |0
+<U81A8> \xBF\xB1 |0
+<U81A9> \xBF\xB0 |0
+<U81AB> \xEA\xED |0
+<U81AC> \xEA\xEF |0
+<U81AE> \xEA\xEA |0
+<U81B0> \xEA\xEE |0
+<U81B1> \xEA\xE8 |0
+<U81B2> \xEA\xF1 |0
+<U81B3> \xBF\xAF |0
+<U81B4> \xEA\xF0 |0
+<U81B5> \xEA\xEC |0
+<U81B7> \xEA\xF2 |0
+<U81B9> \xEA\xEB |0
+<U81BA> \xC1\x74 |0
+<U81BB> \xED\xE8 |0
+<U81BC> \xED\xEE |0
+<U81BD> \xC1\x78 |0
+<U81BE> \xC1\x7A |0
+<U81BF> \xC1\x77 |0
+<U81C0> \xC1\x76 |0
+<U81C2> \xC1\x75 |0
+<U81C3> \xC1\x73 |0
+<U81C4> \xED\xE9 |0
+<U81C5> \xED\xEC |0
+<U81C6> \xC1\x72 |0
+<U81C7> \xED\xED |0
+<U81C9> \xC1\x79 |0
+<U81CA> \xED\xEB |0
+<U81CC> \xED\xEA |0
+<U81CD> \xC2\xC0 |0
+<U81CF> \xC2\xC1 |0
+<U81D0> \xF0\xA1 |0
+<U81D1> \xF0\x7D |0
+<U81D2> \xF0\x7E |0
+<U81D5> \xF2\xC2 |0
+<U81D7> \xF2\xC1 |0
+<U81D8> \xC3\xBE |0
+<U81D9> \xF4\xB4 |0
+<U81DA> \xC4\xA4 |0
+<U81DB> \xF4\xB3 |0
+<U81DD> \xF5\xF0 |0
+<U81DE> \xF7\x45 |0
+<U81DF> \xC5\xA6 |0
+<U81E0> \xF9\x43 |0
+<U81E1> \xF9\x44 |0
+<U81E2> \xC5\xD8 |0
+<U81E3> \xA6\xDA |0
+<U81E5> \xAA\xD7 |0
+<U81E6> \xDB\x52 |0
+<U81E7> \xBB\x4E |0
+<U81E8> \xC1\x7B |0
+<U81E9> \xED\xEF |0
+<U81EA> \xA6\xDB |0
+<U81EC> \xAF\xE5 |0
+<U81ED> \xAF\xE4 |0
+<U81EE> \xDB\x53 |0
+<U81F2> \xEA\xF4 |0
+<U81F3> \xA6\xDC |0
+<U81F4> \xAD\x50 |0
+<U81F7> \xDB\x54 |0
+<U81F8> \xDB\x55 |0
+<U81F9> \xDB\x56 |0
+<U81FA> \xBB\x4F |0
+<U81FB> \xBF\xB2 |0
+<U81FC> \xA6\xDD |0
+<U81FE> \xAA\xD8 |0
+<U81FF> \xD0\x68 |0
+<U8200> \xAF\xE6 |0
+<U8201> \xD3\x70 |0
+<U8202> \xB2\xEA |0
+<U8204> \xDB\x57 |0
+<U8205> \xB8\xA4 |0
+<U8207> \xBB\x50 |0
+<U8208> \xBF\xB3 |0
+<U8209> \xC1\x7C |0
+<U820A> \xC2\xC2 |0
+<U820B> \xF4\xB5 |0
+<U820C> \xA6\xDE |0
+<U820D> \xAA\xD9 |0
+<U8210> \xAF\xE7 |0
+<U8211> \xD7\x52 |0
+<U8212> \xB5\xCE |0
+<U8214> \xBB\x51 |0
+<U8215> \xE3\xAB |0
+<U8216> \xE7\x45 |0
+<U821B> \xA6\xDF |0
+<U821C> \xB5\xCF |0
+<U821D> \xDF\xA3 |0
+<U821E> \xBB\x52 |0
+<U821F> \xA6\xE0 |0
+<U8220> \xCD\xB1 |0
+<U8221> \xD0\x69 |0
+<U8222> \xAD\x51 |0
+<U8225> \xD3\x72 |0
+<U8228> \xAF\xEA |0
+<U822A> \xAF\xE8 |0
+<U822B> \xAF\xE9 |0
+<U822C> \xAF\xEB |0
+<U822F> \xD3\x71 |0
+<U8232> \xD7\x57 |0
+<U8233> \xD7\x54 |0
+<U8234> \xD7\x56 |0
+<U8235> \xB2\xEB |0
+<U8236> \xB2\xED |0
+<U8237> \xB2\xEC |0
+<U8238> \xD7\x53 |0
+<U8239> \xB2\xEE |0
+<U823A> \xD7\x55 |0
+<U823C> \xDB\x58 |0
+<U823D> \xDB\x59 |0
+<U823F> \xDB\x5A |0
+<U8240> \xDF\xA6 |0
+<U8242> \xDF\xA7 |0
+<U8244> \xDF\xA5 |0
+<U8245> \xDF\xA8 |0
+<U8247> \xB8\xA5 |0
+<U8249> \xDF\xA4 |0
+<U824B> \xBB\x53 |0
+<U824E> \xE7\x4A |0
+<U824F> \xE7\x46 |0
+<U8250> \xE7\x49 |0
+<U8251> \xE7\x4B |0
+<U8252> \xE7\x48 |0
+<U8253> \xE7\x47 |0
+<U8255> \xEA\xF5 |0
+<U8256> \xEA\xF6 |0
+<U8257> \xEA\xF7 |0
+<U8258> \xBF\xB4 |0
+<U8259> \xBF\xB5 |0
+<U825A> \xED\xF1 |0
+<U825B> \xED\xF0 |0
+<U825C> \xED\xF2 |0
+<U825E> \xF0\xA3 |0
+<U825F> \xF0\xA2 |0
+<U8261> \xF2\xC4 |0
+<U8263> \xF2\xC5 |0
+<U8264> \xF2\xC3 |0
+<U8266> \xC4\xA5 |0
+<U8268> \xF4\xB6 |0
+<U8269> \xF4\xB7 |0
+<U826B> \xF7\x46 |0
+<U826C> \xF7\xEF |0
+<U826D> \xF8\xBB |0
+<U826E> \xA6\xE1 |0
+<U826F> \xA8\x7D |0
+<U8271> \xC1\x7D |0
+<U8272> \xA6\xE2 |0
+<U8274> \xD7\x58 |0
+<U8275> \xDB\x5B |0
+<U8277> \xC6\x41 |0
+<U8278> \xCA\x4A |0
+<U827C> \xCA\x4B |0
+<U827D> \xCA\x4D |0
+<U827E> \xA6\xE3 |0
+<U827F> \xCA\x4E |0
+<U8280> \xCA\x4C |0
+<U8283> \xCB\xA2 |0
+<U8284> \xCB\xA3 |0
+<U8285> \xCB\x7B |0
+<U828A> \xCB\xA1 |0
+<U828B> \xA8\xA1 |0
+<U828D> \xA8\xA2 |0
+<U828E> \xCB\x7C |0
+<U828F> \xCB\x7A |0
+<U8290> \xCB\x79 |0
+<U8291> \xCB\x7D |0
+<U8292> \xA8\x7E |0
+<U8293> \xCB\x7E |0
+<U8294> \xD0\x6A |0
+<U8298> \xCD\xB6 |0
+<U8299> \xAA\xDC |0
+<U829A> \xCD\xB5 |0
+<U829B> \xCD\xB7 |0
+<U829D> \xAA\xDB |0
+<U829E> \xCD\xBC |0
+<U829F> \xAA\xDF |0
+<U82A0> \xCD\xB2 |0
+<U82A1> \xCD\xC0 |0
+<U82A2> \xCD\xC6 |0
+<U82A3> \xAA\xE6 |0
+<U82A4> \xCD\xC3 |0
+<U82A5> \xAA\xE3 |0
+<U82A7> \xCD\xB9 |0
+<U82A8> \xCD\xBF |0
+<U82A9> \xCD\xC1 |0
+<U82AB> \xCD\xB4 |0
+<U82AC> \xAA\xE2 |0
+<U82AD> \xAA\xDD |0
+<U82AE> \xCD\xBA |0
+<U82AF> \xAA\xE4 |0
+<U82B0> \xAA\xE7 |0
+<U82B1> \xAA\xE1 |0
+<U82B3> \xAA\xDA |0
+<U82B4> \xCD\xBE |0
+<U82B5> \xCD\xB8 |0
+<U82B6> \xCD\xC5 |0
+<U82B7> \xAA\xE9 |0
+<U82B8> \xAA\xE5 |0
+<U82B9> \xAA\xE0 |0
+<U82BA> \xCD\xBD |0
+<U82BB> \xAF\xEC |0
+<U82BC> \xCD\xBB |0
+<U82BD> \xAA\xDE |0
+<U82BE> \xAA\xE8 |0
+<U82C0> \xCD\xB3 |0
+<U82C2> \xCD\xC2 |0
+<U82C3> \xCD\xC4 |0
+<U82D1> \xAD\x62 |0
+<U82D2> \xAD\x5C |0
+<U82D3> \xAD\x64 |0
+<U82D4> \xAD\x61 |0
+<U82D5> \xD0\x71 |0
+<U82D6> \xD0\x74 |0
+<U82D7> \xAD\x5D |0
+<U82D9> \xD0\x6B |0
+<U82DB> \xAD\x56 |0
+<U82DC> \xAD\x60 |0
+<U82DE> \xAD\x63 |0
+<U82DF> \xAD\x65 |0
+<U82E0> \xD0\xA2 |0
+<U82E1> \xD0\x77 |0
+<U82E3> \xAD\x55 |0
+<U82E4> \xD0\xA1 |0
+<U82E5> \xAD\x59 |0
+<U82E6> \xAD\x57 |0
+<U82E7> \xAD\x52 |0
+<U82E8> \xD0\x6F |0
+<U82EA> \xD0\x7E |0
+<U82EB> \xD0\x73 |0
+<U82EC> \xD0\x76 |0
+<U82ED> \xD0\xA5 |0
+<U82EF> \xAD\x66 |0
+<U82F0> \xD0\x7D |0
+<U82F1> \xAD\x5E |0
+<U82F2> \xD0\x78 |0
+<U82F3> \xD0\xA4 |0
+<U82F4> \xD0\x75 |0
+<U82F5> \xD0\x79 |0
+<U82F6> \xD0\x7C |0
+<U82F9> \xD0\x6D |0
+<U82FA> \xD0\xA3 |0
+<U82FB> \xD0\x7B |0
+<U82FE> \xD0\x6C |0
+<U8300> \xD0\x70 |0
+<U8301> \xAD\x5F |0
+<U8302> \xAD\x5A |0
+<U8303> \xAD\x53 |0
+<U8304> \xAD\x58 |0
+<U8305> \xAD\x54 |0
+<U8306> \xAD\x67 |0
+<U8307> \xD0\x6E |0
+<U8308> \xD3\xA5 |0
+<U8309> \xAD\x5B |0
+<U830C> \xD0\x7A |0
+<U830D> \xCE\x41 |0
+<U8316> \xD3\xA8 |0
+<U8317> \xAF\xFA |0
+<U8319> \xD3\x76 |0
+<U831B> \xD3\xA3 |0
+<U831C> \xD3\x7D |0
+<U831E> \xD3\xB2 |0
+<U8320> \xD3\xAA |0
+<U8322> \xD3\x7E |0
+<U8324> \xD3\xA9 |0
+<U8325> \xD3\x78 |0
+<U8326> \xD3\x7C |0
+<U8327> \xD3\xB5 |0
+<U8328> \xAF\xFD |0
+<U8329> \xD3\xAD |0
+<U832A> \xD3\xA4 |0
+<U832B> \xAF\xED |0
+<U832C> \xD3\xB3 |0
+<U832D> \xD3\x74 |0
+<U832F> \xD3\xAC |0
+<U8331> \xAF\xFC |0
+<U8332> \xAF\xF7 |0
+<U8333> \xD3\x73 |0
+<U8334> \xAF\xF5 |0
+<U8335> \xAF\xF4 |0
+<U8336> \xAF\xF9 |0
+<U8337> \xD3\xAB |0
+<U8338> \xAF\xF1 |0
+<U8339> \xAF\xF8 |0
+<U833A> \xD0\x72 |0
+<U833B> \xDB\x5C |0
+<U833C> \xD3\xA6 |0
+<U833F> \xD3\x7A |0
+<U8340> \xAF\xFB |0
+<U8341> \xD3\x7B |0
+<U8342> \xD3\xA1 |0
+<U8343> \xAF\xFE |0
+<U8344> \xD3\x75 |0
+<U8345> \xD3\xAF |0
+<U8347> \xD3\xAE |0
+<U8348> \xD3\xB6 |0
+<U8349> \xAF\xF3 |0
+<U834A> \xAF\xF0 |0
+<U834B> \xD3\xB4 |0
+<U834C> \xD3\xB0 |0
+<U834D> \xD3\xA7 |0
+<U834E> \xD3\xA2 |0
+<U834F> \xAF\xF6 |0
+<U8350> \xAF\xF2 |0
+<U8351> \xD3\x77 |0
+<U8352> \xAF\xEE |0
+<U8353> \xD3\xB1 |0
+<U8354> \xAF\xEF |0
+<U8356> \xD3\x79 |0
+<U8373> \xD7\x5E |0
+<U8374> \xD7\x60 |0
+<U8375> \xD7\x65 |0
+<U8376> \xD7\x79 |0
+<U8377> \xB2\xFC |0
+<U8378> \xB2\xF2 |0
+<U837A> \xD7\x5D |0
+<U837B> \xB2\xFD |0
+<U837C> \xB2\xFE |0
+<U837D> \xD7\x68 |0
+<U837E> \xD7\x6F |0
+<U837F> \xD7\x75 |0
+<U8381> \xD7\x62 |0
+<U8383> \xD7\x69 |0
+<U8386> \xB3\x40 |0
+<U8387> \xD7\x77 |0
+<U8388> \xD7\x72 |0
+<U8389> \xB2\xFA |0
+<U838A> \xB2\xF8 |0
+<U838B> \xD7\x6E |0
+<U838C> \xD7\x6A |0
+<U838D> \xD7\x5C |0
+<U838E> \xB2\xEF |0
+<U838F> \xD7\x61 |0
+<U8390> \xD7\x59 |0
+<U8392> \xB2\xF7 |0
+<U8393> \xB2\xF9 |0
+<U8394> \xD7\x66 |0
+<U8395> \xD7\x63 |0
+<U8396> \xB2\xF4 |0
+<U8397> \xD7\x73 |0
+<U8398> \xB2\xF1 |0
+<U8399> \xD7\x64 |0
+<U839A> \xD7\x7A |0
+<U839B> \xD7\x6C |0
+<U839D> \xD7\x6B |0
+<U839E> \xB2\xF0 |0
+<U83A0> \xB2\xFB |0
+<U83A2> \xB2\xF3 |0
+<U83A3> \xD7\x5A |0
+<U83A4> \xD7\x5F |0
+<U83A5> \xD7\x70 |0
+<U83A6> \xD7\x76 |0
+<U83A7> \xB3\x41 |0
+<U83A8> \xD7\x5B |0
+<U83A9> \xD7\x67 |0
+<U83AA> \xD7\x6D |0
+<U83AB> \xB2\xF6 |0
+<U83AE> \xD7\x78 |0
+<U83AF> \xD7\x71 |0
+<U83B0> \xD7\x74 |0
+<U83BD> \xB2\xF5 |0
+<U83BF> \xDB\x6C |0
+<U83C0> \xDB\x60 |0
+<U83C1> \xB5\xD7 |0
+<U83C2> \xDB\x7D |0
+<U83C3> \xDB\xA7 |0
+<U83C4> \xDB\xAA |0
+<U83C5> \xB5\xD5 |0
+<U83C6> \xDB\x68 |0
+<U83C7> \xDB\xA3 |0
+<U83C8> \xDB\x69 |0
+<U83C9> \xDB\x77 |0
+<U83CA> \xB5\xE2 |0
+<U83CB> \xDB\x73 |0
+<U83CC> \xB5\xDF |0
+<U83CE> \xDB\x74 |0
+<U83CF> \xDB\x5D |0
+<U83D1> \xDB\xA4 |0
+<U83D4> \xB5\xE8 |0
+<U83D5> \xDB\xA1 |0
+<U83D6> \xDB\x75 |0
+<U83D7> \xDB\xAC |0
+<U83D8> \xDB\x70 |0
+<U83D9> \xDF\xC8 |0
+<U83DB> \xDB\xAF |0
+<U83DC> \xB5\xE6 |0
+<U83DD> \xDB\x6E |0
+<U83DE> \xDB\x7A |0
+<U83DF> \xB5\xE9 |0
+<U83E0> \xB5\xD4 |0
+<U83E1> \xDB\x72 |0
+<U83E2> \xDB\xAD |0
+<U83E3> \xDB\x6B |0
+<U83E4> \xDB\x64 |0
+<U83E5> \xDB\x6F |0
+<U83E7> \xDB\x63 |0
+<U83E8> \xDB\x61 |0
+<U83E9> \xB5\xD0 |0
+<U83EA> \xDB\xA5 |0
+<U83EB> \xDB\x6A |0
+<U83EC> \xDB\xA8 |0
+<U83EE> \xDB\xA9 |0
+<U83EF> \xB5\xD8 |0
+<U83F0> \xB5\xDD |0
+<U83F1> \xB5\xD9 |0
+<U83F2> \xB5\xE1 |0
+<U83F3> \xDB\x7E |0
+<U83F4> \xB5\xDA |0
+<U83F5> \xDB\x76 |0
+<U83F6> \xDB\x66 |0
+<U83F8> \xB5\xD2 |0
+<U83F9> \xDB\x5E |0
+<U83FA> \xDB\xA2 |0
+<U83FB> \xDB\xAB |0
+<U83FC> \xDB\x65 |0
+<U83FD> \xB5\xE0 |0
+<U83FE> \xDB\xB0 |0
+<U83FF> \xDB\x71 |0
+<U8401> \xDB\x6D |0
+<U8403> \xB5\xD1 |0
+<U8404> \xB5\xE5 |0
+<U8406> \xDB\x7C |0
+<U8407> \xB5\xE7 |0
+<U8409> \xDB\x78 |0
+<U840A> \xB5\xDC |0
+<U840B> \xB5\xD6 |0
+<U840C> \xB5\xDE |0
+<U840D> \xB5\xD3 |0
+<U840E> \xB5\xE4 |0
+<U840F> \xDB\x79 |0
+<U8410> \xDB\x67 |0
+<U8411> \xDB\x7B |0
+<U8412> \xDB\x62 |0
+<U8413> \xDB\xA6 |0
+<U841B> \xDB\xAE |0
+<U8423> \xDB\x5F |0
+<U8429> \xDF\xC7 |0
+<U842B> \xDF\xDD |0
+<U842C> \xB8\x55 |0
+<U842D> \xDF\xCC |0
+<U842F> \xDF\xCA |0
+<U8430> \xDF\xB5 |0
+<U8431> \xB8\xA9 |0
+<U8432> \xDF\xC5 |0
+<U8433> \xDF\xD9 |0
+<U8434> \xDF\xC1 |0
+<U8435> \xB8\xB1 |0
+<U8436> \xDF\xD8 |0
+<U8437> \xDF\xBF |0
+<U8438> \xB5\xE3 |0
+<U8439> \xDF\xCF |0
+<U843A> \xDF\xC0 |0
+<U843B> \xDF\xD6 |0
+<U843C> \xB8\xB0 |0
+<U843D> \xB8\xA8 |0
+<U843F> \xDF\xAA |0
+<U8440> \xDF\xB2 |0
+<U8442> \xDF\xCB |0
+<U8443> \xDF\xC3 |0
+<U8444> \xDF\xDC |0
+<U8445> \xDF\xC6 |0
+<U8446> \xB8\xB6 |0
+<U8447> \xDF\xD7 |0
+<U8449> \xB8\xAD |0
+<U844B> \xDF\xC9 |0
+<U844C> \xDF\xD1 |0
+<U844D> \xDF\xB6 |0
+<U844E> \xDF\xD0 |0
+<U8450> \xDF\xE1 |0
+<U8451> \xDF\xB1 |0
+<U8452> \xDF\xD2 |0
+<U8454> \xDF\xDF |0
+<U8456> \xDF\xAB |0
+<U8457> \xB5\xDB |0
+<U8459> \xDF\xB9 |0
+<U845A> \xDF\xB8 |0
+<U845B> \xB8\xAF |0
+<U845D> \xDF\xBC |0
+<U845E> \xDF\xBE |0
+<U845F> \xDF\xCD |0
+<U8460> \xDF\xDE |0
+<U8461> \xB8\xB2 |0
+<U8463> \xB8\xB3 |0
+<U8465> \xDF\xB0 |0
+<U8466> \xB8\xAB |0
+<U8467> \xDF\xB4 |0
+<U8468> \xDF\xDA |0
+<U8469> \xB8\xB4 |0
+<U846B> \xB8\xAC |0
+<U846C> \xB8\xAE |0
+<U846D> \xB8\xB5 |0
+<U846E> \xDF\xE0 |0
+<U846F> \xDF\xD3 |0
+<U8470> \xDF\xCE |0
+<U8473> \xDF\xBB |0
+<U8474> \xDF\xBA |0
+<U8475> \xB8\xAA |0
+<U8476> \xDF\xAC |0
+<U8477> \xB8\xA7 |0
+<U8478> \xDF\xC4 |0
+<U8479> \xDF\xAD |0
+<U847A> \xDF\xC2 |0
+<U847D> \xDF\xB7 |0
+<U847E> \xDF\xDB |0
+<U8482> \xB8\xA6 |0
+<U8486> \xDF\xB3 |0
+<U848D> \xDF\xAF |0
+<U848E> \xDF\xD5 |0
+<U848F> \xDF\xAE |0
+<U8490> \xBB\x60 |0
+<U8491> \xE3\xD3 |0
+<U8494> \xE3\xC2 |0
+<U8497> \xE3\xAC |0
+<U8498> \xE3\xCA |0
+<U8499> \xBB\x58 |0
+<U849A> \xE3\xBB |0
+<U849B> \xE3\xC5 |0
+<U849C> \xBB\x5B |0
+<U849D> \xE3\xBE |0
+<U849E> \xBB\x59 |0
+<U849F> \xE3\xAF |0
+<U84A0> \xE3\xCD |0
+<U84A1> \xE3\xAE |0
+<U84A2> \xE3\xC1 |0
+<U84A4> \xE3\xAD |0
+<U84A7> \xE3\xBF |0
+<U84A8> \xE3\xC8 |0
+<U84A9> \xE3\xC6 |0
+<U84AA> \xE3\xBA |0
+<U84AB> \xE3\xB5 |0
+<U84AC> \xE3\xB3 |0
+<U84AE> \xE3\xB4 |0
+<U84AF> \xE3\xC7 |0
+<U84B0> \xE3\xD2 |0
+<U84B1> \xE3\xBC |0
+<U84B2> \xBB\x5A |0
+<U84B4> \xE3\xB7 |0
+<U84B6> \xE3\xCB |0
+<U84B8> \xBB\x5D |0
+<U84B9> \xE3\xB6 |0
+<U84BA> \xE3\xB0 |0
+<U84BB> \xE3\xC0 |0
+<U84BC> \xBB\x61 |0
+<U84BF> \xBB\x55 |0
+<U84C0> \xBB\x5E |0
+<U84C1> \xE3\xB8 |0
+<U84C2> \xE3\xB2 |0
+<U84C4> \xBB\x57 |0
+<U84C5> \xDF\xD4 |0
+<U84C6> \xBB\x56 |0
+<U84C7> \xE3\xC3 |0
+<U84C9> \xBB\x54 |0
+<U84CA> \xBB\x63 |0
+<U84CB> \xBB\x5C |0
+<U84CC> \xE3\xC4 |0
+<U84CD> \xE3\xB9 |0
+<U84CE> \xE3\xB1 |0
+<U84CF> \xE3\xCC |0
+<U84D0> \xE3\xBD |0
+<U84D1> \xBB\x62 |0
+<U84D2> \xE3\xD0 |0
+<U84D3> \xBB\x5F |0
+<U84D4> \xE3\xCF |0
+<U84D6> \xE3\xC9 |0
+<U84D7> \xE3\xCE |0
+<U84DB> \xE3\xD1 |0
+<U84E7> \xE7\x73 |0
+<U84E8> \xE7\x74 |0
+<U84E9> \xE7\x67 |0
+<U84EA> \xE7\x66 |0
+<U84EB> \xE7\x62 |0
+<U84EC> \xBD\xB4 |0
+<U84EE> \xBD\xAC |0
+<U84EF> \xE7\x76 |0
+<U84F0> \xE7\x75 |0
+<U84F1> \xDF\xA9 |0
+<U84F2> \xE7\x5F |0
+<U84F3> \xE7\x63 |0
+<U84F4> \xE7\x5D |0
+<U84F6> \xE7\x70 |0
+<U84F7> \xE7\x61 |0
+<U84F9> \xE7\x77 |0
+<U84FA> \xE7\x5A |0
+<U84FB> \xE7\x58 |0
+<U84FC> \xE7\x64 |0
+<U84FD> \xE7\x6E |0
+<U84FE> \xE7\x69 |0
+<U84FF> \xBD\xB6 |0
+<U8500> \xE7\x4F |0
+<U8502> \xE7\x6D |0
+<U8506> \xBD\xB7 |0
+<U8507> \xDF\xBD |0
+<U8508> \xE7\x5B |0
+<U8509> \xE7\x52 |0
+<U850A> \xE7\x55 |0
+<U850B> \xE7\x7B |0
+<U850C> \xE7\x5C |0
+<U850D> \xE7\x53 |0
+<U850E> \xE7\x51 |0
+<U850F> \xE7\x4E |0
+<U8511> \xBD\xB0 |0
+<U8512> \xE7\x65 |0
+<U8513> \xBD\xAF |0
+<U8514> \xBD\xB3 |0
+<U8515> \xE7\x60 |0
+<U8516> \xE7\x68 |0
+<U8517> \xBD\xA9 |0
+<U8518> \xE7\x78 |0
+<U8519> \xE7\x7C |0
+<U851A> \xBD\xAB |0
+<U851C> \xE7\x57 |0
+<U851D> \xE7\x6B |0
+<U851E> \xE7\x6F |0
+<U851F> \xE7\x54 |0
+<U8520> \xE7\x79 |0
+<U8521> \xBD\xB2 |0
+<U8523> \xBD\xB1 |0
+<U8524> \xE7\x4C |0
+<U8525> \xBD\xB5 |0
+<U8526> \xE7\x72 |0
+<U8527> \xE7\x56 |0
+<U8528> \xE7\x6A |0
+<U8529> \xE7\x50 |0
+<U852A> \xE7\x5E |0
+<U852B> \xE7\x59 |0
+<U852C> \xBD\xAD |0
+<U852D> \xBD\xAE |0
+<U852E> \xE7\x6C |0
+<U852F> \xE7\x7D |0
+<U8530> \xE7\x7A |0
+<U8531> \xE7\x71 |0
+<U853B> \xE7\x4D |0
+<U853D> \xBD\xAA |0
+<U853E> \xEB\x49 |0
+<U8540> \xEB\x40 |0
+<U8541> \xEB\x43 |0
+<U8543> \xBF\xBB |0
+<U8544> \xEB\x45 |0
+<U8545> \xEA\xF9 |0
+<U8546> \xEB\x41 |0
+<U8547> \xEB\x47 |0
+<U8548> \xBF\xB8 |0
+<U8549> \xBF\xBC |0
+<U854A> \xBF\xB6 |0
+<U854D> \xEA\xFB |0
+<U854E> \xEB\x4C |0
+<U8551> \xEB\x46 |0
+<U8553> \xEA\xFC |0
+<U8554> \xEB\x55 |0
+<U8555> \xEB\x4F |0
+<U8556> \xEA\xF8 |0
+<U8557> \xEE\x46 |0
+<U8558> \xEA\xFE |0
+<U8559> \xBF\xB7 |0
+<U855B> \xEB\x4A |0
+<U855D> \xEB\x54 |0
+<U855E> \xBF\xBF |0
+<U8560> \xEB\x51 |0
+<U8561> \xEA\xFD |0
+<U8562> \xEB\x44 |0
+<U8563> \xEB\x48 |0
+<U8564> \xEB\x42 |0
+<U8565> \xEB\x56 |0
+<U8566> \xEB\x53 |0
+<U8567> \xEB\x50 |0
+<U8568> \xBF\xB9 |0
+<U8569> \xBF\xBA |0
+<U856A> \xBF\xBE |0
+<U856B> \xEA\xFA |0
+<U856C> \xEB\x57 |0
+<U856D> \xBF\xBD |0
+<U856E> \xEB\x4D |0
+<U8571> \xEB\x4B |0
+<U8575> \xEB\x4E |0
+<U8576> \xEE\x53 |0
+<U8577> \xEE\x40 |0
+<U8578> \xEE\x45 |0
+<U8579> \xEE\x52 |0
+<U857A> \xEE\x44 |0
+<U857B> \xED\xFB |0
+<U857C> \xEE\x41 |0
+<U857E> \xC1\xA2 |0
+<U8580> \xED\xF4 |0
+<U8581> \xEE\x4D |0
+<U8582> \xEE\x4F |0
+<U8583> \xED\xF3 |0
+<U8584> \xC1\xA1 |0
+<U8585> \xEE\x51 |0
+<U8586> \xEE\x49 |0
+<U8587> \xC1\xA8 |0
+<U8588> \xEE\x50 |0
+<U8589> \xEE\x42 |0
+<U858A> \xC1\xAA |0
+<U858B> \xED\xF9 |0
+<U858C> \xEB\x52 |0
+<U858D> \xEE\x4A |0
+<U858E> \xEE\x47 |0
+<U858F> \xED\xF5 |0
+<U8590> \xEE\x55 |0
+<U8591> \xC1\xA4 |0
+<U8594> \xC1\xA5 |0
+<U8595> \xED\xF7 |0
+<U8596> \xEE\x48 |0
+<U8598> \xEE\x54 |0
+<U8599> \xEE\x4B |0
+<U859A> \xED\xFD |0
+<U859B> \xC1\xA7 |0
+<U859C> \xC1\xA3 |0
+<U859D> \xEE\x4C |0
+<U859E> \xED\xFE |0
+<U859F> \xEE\x56 |0
+<U85A0> \xED\xF8 |0
+<U85A1> \xEE\x43 |0
+<U85A2> \xEE\x4E |0
+<U85A3> \xED\xFA |0
+<U85A4> \xED\xFC |0
+<U85A6> \xC2\xCB |0
+<U85A7> \xED\xF6 |0
+<U85A8> \xC1\xA9 |0
+<U85A9> \xC2\xC4 |0
+<U85AA> \xC1\x7E |0
+<U85AF> \xC1\xA6 |0
+<U85B0> \xC2\xC8 |0
+<U85B1> \xF0\xB3 |0
+<U85B3> \xF0\xA9 |0
+<U85B4> \xF0\xA4 |0
+<U85B5> \xF0\xAA |0
+<U85B6> \xF0\xB4 |0
+<U85B7> \xF0\xB8 |0
+<U85B8> \xF0\xB7 |0
+<U85B9> \xC2\xCA |0
+<U85BA> \xC2\xC9 |0
+<U85BD> \xF0\xAB |0
+<U85BE> \xF0\xB9 |0
+<U85BF> \xF0\xAE |0
+<U85C0> \xF0\xA6 |0
+<U85C2> \xF0\xA8 |0
+<U85C3> \xF0\xA7 |0
+<U85C4> \xF0\xAD |0
+<U85C5> \xF0\xB2 |0
+<U85C6> \xF0\xA5 |0
+<U85C7> \xF0\xAC |0
+<U85C8> \xF0\xB1 |0
+<U85C9> \xC2\xC7 |0
+<U85CB> \xF0\xAF |0
+<U85CD> \xC2\xC5 |0
+<U85CE> \xF0\xB0 |0
+<U85CF> \xC2\xC3 |0
+<U85D0> \xC2\xC6 |0
+<U85D1> \xF2\xD5 |0
+<U85D2> \xF0\xB5 |0
+<U85D5> \xC3\xC2 |0
+<U85D7> \xF2\xCD |0
+<U85D8> \xF2\xD1 |0
+<U85D9> \xF2\xC9 |0
+<U85DA> \xF2\xCC |0
+<U85DC> \xF2\xD4 |0
+<U85DD> \xC3\xC0 |0
+<U85DE> \xF2\xD9 |0
+<U85DF> \xF2\xD2 |0
+<U85E1> \xF2\xCA |0
+<U85E2> \xF2\xDA |0
+<U85E3> \xF2\xD3 |0
+<U85E4> \xC3\xC3 |0
+<U85E5> \xC3\xC4 |0
+<U85E6> \xF2\xD7 |0
+<U85E8> \xF2\xCB |0
+<U85E9> \xC3\xBF |0
+<U85EA> \xC3\xC1 |0
+<U85EB> \xF2\xC6 |0
+<U85EC> \xF2\xCE |0
+<U85ED> \xF2\xC8 |0
+<U85EF> \xF2\xD8 |0
+<U85F0> \xF2\xD6 |0
+<U85F1> \xF2\xC7 |0
+<U85F2> \xF2\xCF |0
+<U85F6> \xF4\xBE |0
+<U85F7> \xC3\xC5 |0
+<U85F8> \xF2\xD0 |0
+<U85F9> \xC4\xA7 |0
+<U85FA> \xC4\xA9 |0
+<U85FB> \xC4\xA6 |0
+<U85FD> \xF4\xC3 |0
+<U85FE> \xF4\xBB |0
+<U85FF> \xF4\xB9 |0
+<U8600> \xF4\xBD |0
+<U8601> \xF4\xBA |0
+<U8604> \xF4\xBF |0
+<U8605> \xF4\xC1 |0
+<U8606> \xC4\xAA |0
+<U8607> \xC4\xAC |0
+<U8609> \xF4\xC0 |0
+<U860A> \xC4\xAD |0
+<U860B> \xC4\xAB |0
+<U860C> \xF4\xC2 |0
+<U8611> \xC4\xA8 |0
+<U8617> \xC4\xF4 |0
+<U8618> \xF5\xF1 |0
+<U8619> \xF5\xF7 |0
+<U861A> \xC4\xF6 |0
+<U861B> \xF4\xBC |0
+<U861C> \xF5\xF6 |0
+<U861E> \xF5\xFD |0
+<U861F> \xF5\xF4 |0
+<U8620> \xF5\xFB |0
+<U8621> \xF5\xFA |0
+<U8622> \xF4\xB8 |0
+<U8623> \xF5\xF5 |0
+<U8624> \xF0\xB6 |0
+<U8625> \xF5\xFE |0
+<U8626> \xF5\xF3 |0
+<U8627> \xF5\xF8 |0
+<U8629> \xF5\xFC |0
+<U862A> \xF5\xF2 |0
+<U862C> \xF7\x4A |0
+<U862D> \xC4\xF5 |0
+<U862E> \xF5\xF9 |0
+<U8631> \xF7\xF4 |0
+<U8632> \xF7\x4B |0
+<U8633> \xF7\x49 |0
+<U8634> \xF7\x47 |0
+<U8635> \xF7\x48 |0
+<U8636> \xF7\x4C |0
+<U8638> \xC5\xD9 |0
+<U8639> \xF7\xF2 |0
+<U863A> \xF7\xF0 |0
+<U863B> \xF7\xF5 |0
+<U863C> \xF7\xF3 |0
+<U863E> \xF7\xF6 |0
+<U863F> \xC5\xDA |0
+<U8640> \xF7\xF1 |0
+<U8643> \xF8\xBC |0
+<U8646> \xF9\x45 |0
+<U8647> \xF9\x46 |0
+<U8648> \xF9\x47 |0
+<U864B> \xF9\xC7 |0
+<U864C> \xF9\xBD |0
+<U864D> \xCA\x4F |0
+<U864E> \xAA\xEA |0
+<U8650> \xAD\x68 |0
+<U8652> \xD3\xB8 |0
+<U8653> \xD3\xB7 |0
+<U8654> \xB0\x40 |0
+<U8655> \xB3\x42 |0
+<U8656> \xD7\x7C |0
+<U8659> \xD7\x7B |0
+<U865B> \xB5\xEA |0
+<U865C> \xB8\xB8 |0
+<U865E> \xB8\xB7 |0
+<U865F> \xB8\xB9 |0
+<U8661> \xE3\xD4 |0
+<U8662> \xE7\x7E |0
+<U8663> \xEB\x58 |0
+<U8664> \xEB\x5A |0
+<U8665> \xEB\x59 |0
+<U8667> \xC1\xAB |0
+<U8668> \xEE\x57 |0
+<U8669> \xF0\xBA |0
+<U866A> \xF9\xA5 |0
+<U866B> \xA6\xE4 |0
+<U866D> \xCD\xC9 |0
+<U866E> \xCD\xCA |0
+<U866F> \xCD\xC8 |0
+<U8670> \xCD\xC7 |0
+<U8671> \xAA\xEB |0
+<U8673> \xD0\xA9 |0
+<U8674> \xD0\xA7 |0
+<U8677> \xD0\xA6 |0
+<U8679> \xAD\x69 |0
+<U867A> \xAD\x6B |0
+<U867B> \xAD\x6A |0
+<U867C> \xD0\xA8 |0
+<U8685> \xD3\xC4 |0
+<U8686> \xD3\xC1 |0
+<U8687> \xD3\xBF |0
+<U868A> \xB0\x41 |0
+<U868B> \xD3\xC2 |0
+<U868C> \xB0\x46 |0
+<U868D> \xD3\xBC |0
+<U868E> \xD3\xCB |0
+<U8690> \xD3\xCD |0
+<U8691> \xD3\xBD |0
+<U8693> \xB0\x43 |0
+<U8694> \xD3\xCE |0
+<U8695> \xD3\xC9 |0
+<U8696> \xD3\xBB |0
+<U8697> \xD3\xC0 |0
+<U8698> \xD3\xCA |0
+<U8699> \xD3\xC6 |0
+<U869A> \xD3\xC3 |0
+<U869C> \xB0\x48 |0
+<U869D> \xD3\xCC |0
+<U869E> \xD3\xBE |0
+<U86A1> \xD3\xC7 |0
+<U86A2> \xD3\xB9 |0
+<U86A3> \xB0\x47 |0
+<U86A4> \xB0\x44 |0
+<U86A5> \xD3\xC5 |0
+<U86A7> \xD3\xC8 |0
+<U86A8> \xD3\xBA |0
+<U86A9> \xB0\x45 |0
+<U86AA> \xB0\x42 |0
+<U86AF> \xB3\x4C |0
+<U86B0> \xD7\xA5 |0
+<U86B1> \xB3\x4B |0
+<U86B3> \xD7\xA8 |0
+<U86B4> \xD7\xAB |0
+<U86B5> \xB3\x48 |0
+<U86B6> \xB3\x46 |0
+<U86B7> \xD7\x7E |0
+<U86B8> \xD7\xA9 |0
+<U86B9> \xD7\xA7 |0
+<U86BA> \xD7\xA4 |0
+<U86BB> \xD7\xAC |0
+<U86BC> \xD7\xAD |0
+<U86BD> \xD7\xAF |0
+<U86BE> \xD7\xB0 |0
+<U86BF> \xD7\x7D |0
+<U86C0> \xB3\x45 |0
+<U86C1> \xD7\xA2 |0
+<U86C2> \xD7\xA1 |0
+<U86C3> \xD7\xAE |0
+<U86C4> \xB3\x47 |0
+<U86C5> \xD7\xA3 |0
+<U86C6> \xB3\x49 |0
+<U86C7> \xB3\x44 |0
+<U86C8> \xD7\xA6 |0
+<U86C9> \xB3\x4D |0
+<U86CB> \xB3\x4A |0
+<U86CC> \xD7\xAA |0
+<U86D0> \xB5\xF1 |0
+<U86D1> \xDB\xBF |0
+<U86D3> \xDB\xB4 |0
+<U86D4> \xB5\xEE |0
+<U86D6> \xDF\xE7 |0
+<U86D7> \xDB\xBD |0
+<U86D8> \xDB\xB1 |0
+<U86D9> \xB5\xEC |0
+<U86DA> \xDB\xB6 |0
+<U86DB> \xB5\xEF |0
+<U86DC> \xDB\xBA |0
+<U86DD> \xDB\xB8 |0
+<U86DE> \xB5\xF2 |0
+<U86DF> \xB5\xEB |0
+<U86E2> \xDB\xB2 |0
+<U86E3> \xDB\xB5 |0
+<U86E4> \xB5\xF0 |0
+<U86E6> \xDB\xB3 |0
+<U86E8> \xDB\xBE |0
+<U86E9> \xDB\xBC |0
+<U86EA> \xDB\xB7 |0
+<U86EB> \xDB\xB9 |0
+<U86EC> \xDB\xBB |0
+<U86ED> \xB5\xED |0
+<U86F5> \xDF\xE8 |0
+<U86F6> \xDF\xEE |0
+<U86F7> \xDF\xE4 |0
+<U86F8> \xDF\xEA |0
+<U86F9> \xB8\xBA |0
+<U86FA> \xDF\xE6 |0
+<U86FB> \xB8\xC0 |0
+<U86FE> \xB8\xBF |0
+<U8700> \xB8\xBE |0
+<U8701> \xDF\xED |0
+<U8702> \xB8\xC1 |0
+<U8703> \xB8\xC2 |0
+<U8704> \xDF\xE3 |0
+<U8705> \xDF\xF0 |0
+<U8706> \xB8\xC3 |0
+<U8707> \xB8\xBD |0
+<U8708> \xB8\xBC |0
+<U8709> \xDF\xEC |0
+<U870A> \xB8\xC4 |0
+<U870B> \xDF\xE2 |0
+<U870C> \xDF\xE5 |0
+<U870D> \xDF\xEF |0
+<U870E> \xDF\xEB |0
+<U8711> \xE3\xF4 |0
+<U8712> \xE3\xE9 |0
+<U8713> \xB8\xBB |0
+<U8718> \xBB\x6A |0
+<U8719> \xE3\xDD |0
+<U871A> \xE3\xF2 |0
+<U871B> \xE3\xDE |0
+<U871C> \xBB\x65 |0
+<U871E> \xE3\xDB |0
+<U8720> \xE3\xE4 |0
+<U8721> \xE3\xDC |0
+<U8722> \xBB\x67 |0
+<U8723> \xE3\xD6 |0
+<U8724> \xE3\xF1 |0
+<U8725> \xBB\x68 |0
+<U8726> \xE3\xEE |0
+<U8727> \xE3\xEF |0
+<U8728> \xE3\xD7 |0
+<U8729> \xBB\x6D |0
+<U872A> \xE3\xE6 |0
+<U872C> \xE3\xE0 |0
+<U872D> \xE3\xE7 |0
+<U872E> \xE3\xDA |0
+<U8730> \xE3\xF3 |0
+<U8731> \xE3\xEB |0
+<U8732> \xE3\xE5 |0
+<U8733> \xE3\xD5 |0
+<U8734> \xBB\x69 |0
+<U8735> \xE3\xEC |0
+<U8737> \xBB\x6C |0
+<U8738> \xE3\xF0 |0
+<U873A> \xE3\xEA |0
+<U873B> \xBB\x66 |0
+<U873C> \xE3\xE8 |0
+<U873E> \xE3\xE2 |0
+<U873F> \xBB\x64 |0
+<U8740> \xE3\xD9 |0
+<U8741> \xE3\xE1 |0
+<U8742> \xE3\xED |0
+<U8743> \xE3\xDF |0
+<U8746> \xE3\xE3 |0
+<U874C> \xBD\xC1 |0
+<U874D> \xDF\xE9 |0
+<U874E> \xE7\xB2 |0
+<U874F> \xE7\xBB |0
+<U8750> \xE7\xB1 |0
+<U8751> \xE7\xAD |0
+<U8752> \xE7\xAA |0
+<U8753> \xBD\xC2 |0
+<U8754> \xE7\xA8 |0
+<U8755> \xBB\x6B |0
+<U8756> \xE7\xA1 |0
+<U8757> \xBD\xC0 |0
+<U8758> \xE7\xA7 |0
+<U8759> \xBD\xBF |0
+<U875A> \xE7\xAC |0
+<U875B> \xE7\xA9 |0
+<U875C> \xE7\xB9 |0
+<U875D> \xE7\xB4 |0
+<U875E> \xE7\xAE |0
+<U875F> \xE7\xB3 |0
+<U8760> \xBD\xBB |0
+<U8761> \xE7\xAB |0
+<U8762> \xE7\xBE |0
+<U8763> \xE7\xA2 |0
+<U8764> \xE7\xA3 |0
+<U8765> \xE7\xBA |0
+<U8766> \xBD\xBC |0
+<U8767> \xE7\xBF |0
+<U8768> \xBD\xBE |0
+<U8769> \xE7\xC0 |0
+<U876A> \xE7\xB0 |0
+<U876B> \xE3\xD8 |0
+<U876C> \xE7\xB6 |0
+<U876D> \xE7\xAF |0
+<U876E> \xE7\xB8 |0
+<U876F> \xE7\xB5 |0
+<U8773> \xE7\xA6 |0
+<U8774> \xBD\xB9 |0
+<U8775> \xE7\xBD |0
+<U8776> \xBD\xBA |0
+<U8777> \xE7\xA4 |0
+<U8778> \xBD\xBD |0
+<U8779> \xEB\x64 |0
+<U877A> \xE7\xB7 |0
+<U877B> \xE7\xBC |0
+<U8781> \xEB\x61 |0
+<U8782> \xBD\xB8 |0
+<U8783> \xBF\xC0 |0
+<U8784> \xEB\x6B |0
+<U8785> \xEB\x67 |0
+<U8787> \xEB\x65 |0
+<U8788> \xEB\x60 |0
+<U8789> \xEB\x6F |0
+<U878D> \xBF\xC4 |0
+<U878F> \xEB\x5C |0
+<U8790> \xEB\x68 |0
+<U8791> \xEB\x69 |0
+<U8792> \xEB\x5F |0
+<U8793> \xEB\x5E |0
+<U8794> \xEB\x6C |0
+<U8796> \xEB\x62 |0
+<U8797> \xEB\x5D |0
+<U8798> \xEB\x63 |0
+<U879A> \xEB\x6E |0
+<U879B> \xEB\x5B |0
+<U879C> \xEB\x6D |0
+<U879D> \xEB\x6A |0
+<U879E> \xBF\xC2 |0
+<U879F> \xBF\xC1 |0
+<U87A2> \xBF\xC3 |0
+<U87A3> \xEB\x66 |0
+<U87A4> \xF0\xCB |0
+<U87AA> \xEE\x59 |0
+<U87AB> \xC1\xB1 |0
+<U87AC> \xEE\x5D |0
+<U87AD> \xEE\x5A |0
+<U87AE> \xEE\x61 |0
+<U87AF> \xEE\x67 |0
+<U87B0> \xEE\x5C |0
+<U87B2> \xEE\x70 |0
+<U87B3> \xC1\xAE |0
+<U87B4> \xEE\x6A |0
+<U87B5> \xEE\x5F |0
+<U87B6> \xEE\x6B |0
+<U87B7> \xEE\x66 |0
+<U87B8> \xEE\x6D |0
+<U87B9> \xEE\x5E |0
+<U87BA> \xC1\xB3 |0
+<U87BB> \xC1\xB2 |0
+<U87BC> \xEE\x60 |0
+<U87BD> \xEE\x6E |0
+<U87BE> \xEE\x58 |0
+<U87BF> \xEE\x6C |0
+<U87C0> \xC1\xAC |0
+<U87C2> \xEE\x64 |0
+<U87C3> \xEE\x63 |0
+<U87C4> \xEE\x68 |0
+<U87C5> \xEE\x5B |0
+<U87C6> \xC1\xB0 |0
+<U87C8> \xC1\xB4 |0
+<U87C9> \xEE\x62 |0
+<U87CA> \xEE\x69 |0
+<U87CB> \xC1\xB5 |0
+<U87CC> \xEE\x65 |0
+<U87D1> \xC1\xAD |0
+<U87D2> \xC1\xAF |0
+<U87D3> \xF0\xC7 |0
+<U87D4> \xF0\xC5 |0
+<U87D7> \xF0\xCC |0
+<U87D8> \xF0\xC9 |0
+<U87D9> \xF0\xCD |0
+<U87DB> \xF0\xBE |0
+<U87DC> \xF0\xC6 |0
+<U87DD> \xF0\xD1 |0
+<U87DE> \xEE\x6F |0
+<U87DF> \xF0\xC2 |0
+<U87E0> \xC2\xCF |0
+<U87E1> \xE7\xA5 |0
+<U87E2> \xF0\xBD |0
+<U87E3> \xF0\xCA |0
+<U87E4> \xF0\xC4 |0
+<U87E5> \xF0\xC1 |0
+<U87E6> \xF0\xBC |0
+<U87E7> \xF0\xBB |0
+<U87E8> \xF0\xD0 |0
+<U87EA> \xF0\xC0 |0
+<U87EB> \xF0\xBF |0
+<U87EC> \xC2\xCD |0
+<U87ED> \xF0\xC8 |0
+<U87EF> \xC2\xCC |0
+<U87F2> \xC2\xCE |0
+<U87F3> \xF0\xC3 |0
+<U87F4> \xF0\xCF |0
+<U87F6> \xF2\xDE |0
+<U87F7> \xF2\xDF |0
+<U87F9> \xC3\xC9 |0
+<U87FA> \xF2\xDC |0
+<U87FB> \xC3\xC6 |0
+<U87FC> \xF2\xE4 |0
+<U87FE> \xC3\xCA |0
+<U87FF> \xF2\xE6 |0
+<U8800> \xF2\xDB |0
+<U8801> \xF0\xCE |0
+<U8802> \xF2\xE8 |0
+<U8803> \xF2\xDD |0
+<U8805> \xC3\xC7 |0
+<U8806> \xF2\xE3 |0
+<U8808> \xF2\xE5 |0
+<U8809> \xF2\xE0 |0
+<U880A> \xF2\xE7 |0
+<U880B> \xF2\xE2 |0
+<U880C> \xF2\xE1 |0
+<U880D> \xC3\xC8 |0
+<U8810> \xF4\xC5 |0
+<U8811> \xF4\xC6 |0
+<U8813> \xF4\xC8 |0
+<U8814> \xC4\xAE |0
+<U8815> \xC4\xAF |0
+<U8816> \xF4\xC9 |0
+<U8817> \xF4\xC7 |0
+<U8819> \xF4\xC4 |0
+<U881B> \xF6\x42 |0
+<U881C> \xF6\x45 |0
+<U881D> \xF6\x41 |0
+<U881F> \xC4\xFA |0
+<U8820> \xF6\x43 |0
+<U8821> \xC4\xF9 |0
+<U8822> \xC4\xF8 |0
+<U8823> \xC4\xF7 |0
+<U8824> \xF6\x44 |0
+<U8825> \xF7\x51 |0
+<U8826> \xF7\x4F |0
+<U8828> \xF7\x4E |0
+<U8829> \xF6\x40 |0
+<U882A> \xF7\x50 |0
+<U882B> \xF6\x46 |0
+<U882C> \xF7\x4D |0
+<U882E> \xF7\xF9 |0
+<U882F> \xF7\xD7 |0
+<U8830> \xF7\xF7 |0
+<U8831> \xC5\xDB |0
+<U8832> \xF7\xF8 |0
+<U8833> \xF7\xFA |0
+<U8835> \xF8\xBF |0
+<U8836> \xC5\xFA |0
+<U8837> \xF8\xBE |0
+<U8838> \xF8\xBD |0
+<U8839> \xC5\xFB |0
+<U883B> \xC6\x5A |0
+<U883C> \xF9\x6E |0
+<U883D> \xF9\xA7 |0
+<U883E> \xF9\xA6 |0
+<U883F> \xF9\xA8 |0
+<U8840> \xA6\xE5 |0
+<U8841> \xD0\xAA |0
+<U8843> \xD3\xCF |0
+<U8844> \xD3\xD0 |0
+<U8848> \xDB\xC0 |0
+<U884A> \xF6\x47 |0
+<U884B> \xF8\xC0 |0
+<U884C> \xA6\xE6 |0
+<U884D> \xAD\x6C |0
+<U884E> \xD0\xAB |0
+<U8852> \xD7\xB1 |0
+<U8853> \xB3\x4E |0
+<U8855> \xDB\xC2 |0
+<U8856> \xDB\xC1 |0
+<U8857> \xB5\xF3 |0
+<U8859> \xB8\xC5 |0
+<U885A> \xE7\xC1 |0
+<U885B> \xBD\xC3 |0
+<U885D> \xBD\xC4 |0
+<U8861> \xBF\xC5 |0
+<U8862> \xC5\xFC |0
+<U8863> \xA6\xE7 |0
+<U8867> \xD0\xAC |0
+<U8868> \xAA\xED |0
+<U8869> \xD0\xAE |0
+<U886A> \xD0\xAD |0
+<U886B> \xAD\x6D |0
+<U886D> \xD3\xD1 |0
+<U886F> \xD3\xD8 |0
+<U8870> \xB0\x49 |0
+<U8871> \xD3\xD6 |0
+<U8872> \xD3\xD4 |0
+<U8874> \xD3\xDB |0
+<U8875> \xD3\xD2 |0
+<U8876> \xD3\xD3 |0
+<U8877> \xB0\x4A |0
+<U8879> \xB0\x4E |0
+<U887C> \xD3\xDC |0
+<U887D> \xB0\x4D |0
+<U887E> \xD3\xDA |0
+<U887F> \xD3\xD7 |0
+<U8880> \xD3\xD5 |0
+<U8881> \xB0\x4B |0
+<U8882> \xB0\x4C |0
+<U8883> \xD3\xD9 |0
+<U8888> \xB3\x50 |0
+<U8889> \xD7\xB2 |0
+<U888B> \xB3\x55 |0
+<U888C> \xD7\xC2 |0
+<U888D> \xB3\x54 |0
+<U888E> \xD7\xC4 |0
+<U8891> \xD7\xB8 |0
+<U8892> \xB3\x52 |0
+<U8893> \xD7\xC3 |0
+<U8895> \xD7\xB3 |0
+<U8896> \xB3\x53 |0
+<U8897> \xD7\xBF |0
+<U8898> \xD7\xBB |0
+<U8899> \xD7\xBD |0
+<U889A> \xD7\xB7 |0
+<U889B> \xD7\xBE |0
+<U889E> \xB3\x4F |0
+<U889F> \xD7\xBA |0
+<U88A1> \xD7\xB9 |0
+<U88A2> \xD7\xB5 |0
+<U88A4> \xD7\xC0 |0
+<U88A7> \xD7\xBC |0
+<U88A8> \xD7\xB4 |0
+<U88AA> \xD7\xB6 |0
+<U88AB> \xB3\x51 |0
+<U88AC> \xD7\xC1 |0
+<U88B1> \xB5\xF6 |0
+<U88B2> \xDB\xCD |0
+<U88B6> \xDB\xC9 |0
+<U88B7> \xDB\xCB |0
+<U88B8> \xDB\xC6 |0
+<U88B9> \xDB\xC5 |0
+<U88BA> \xDB\xC3 |0
+<U88BC> \xDB\xCA |0
+<U88BD> \xDB\xCC |0
+<U88BE> \xDB\xC8 |0
+<U88C0> \xDB\xC7 |0
+<U88C1> \xB5\xF4 |0
+<U88C2> \xB5\xF5 |0
+<U88C9> \xDB\xCF |0
+<U88CA> \xB8\xCD |0
+<U88CB> \xDF\xF2 |0
+<U88CC> \xDF\xF8 |0
+<U88CD> \xDF\xF3 |0
+<U88CE> \xDF\xF4 |0
+<U88CF> \xF9\xD8 |0
+<U88D0> \xDF\xF9 |0
+<U88D2> \xB8\xCF |0
+<U88D4> \xB8\xC7 |0
+<U88D5> \xB8\xCE |0
+<U88D6> \xDF\xF1 |0
+<U88D7> \xDB\xC4 |0
+<U88D8> \xB8\xCA |0
+<U88D9> \xB8\xC8 |0
+<U88DA> \xDF\xF7 |0
+<U88DB> \xDF\xF6 |0
+<U88DC> \xB8\xC9 |0
+<U88DD> \xB8\xCB |0
+<U88DE> \xDF\xF5 |0
+<U88DF> \xB8\xC6 |0
+<U88E1> \xB8\xCC |0
+<U88E7> \xE3\xF6 |0
+<U88E8> \xBB\x74 |0
+<U88EB> \xE4\x42 |0
+<U88EC> \xE4\x41 |0
+<U88EE> \xE3\xFB |0
+<U88EF> \xBB\x76 |0
+<U88F0> \xE4\x40 |0
+<U88F1> \xE3\xF7 |0
+<U88F2> \xE3\xF8 |0
+<U88F3> \xBB\x6E |0
+<U88F4> \xBB\x70 |0
+<U88F6> \xE3\xFD |0
+<U88F7> \xE3\xF5 |0
+<U88F8> \xBB\x72 |0
+<U88F9> \xBB\x71 |0
+<U88FA> \xE3\xF9 |0
+<U88FB> \xE3\xFE |0
+<U88FC> \xE3\xFC |0
+<U88FD> \xBB\x73 |0
+<U88FE> \xE3\xFA |0
+<U8901> \xDB\xCE |0
+<U8902> \xBB\x6F |0
+<U8905> \xE7\xC2 |0
+<U8906> \xE7\xC9 |0
+<U8907> \xBD\xC6 |0
+<U8909> \xE7\xCD |0
+<U890A> \xBD\xCA |0
+<U890B> \xE7\xC5 |0
+<U890C> \xE7\xC3 |0
+<U890E> \xE7\xCC |0
+<U8910> \xBD\xC5 |0
+<U8911> \xE7\xCB |0
+<U8912> \xBD\xC7 |0
+<U8913> \xBD\xC8 |0
+<U8914> \xE7\xC4 |0
+<U8915> \xBD\xC9 |0
+<U8916> \xE7\xCA |0
+<U8917> \xE7\xC6 |0
+<U8918> \xE7\xC7 |0
+<U8919> \xE7\xC8 |0
+<U891A> \xBB\x75 |0
+<U891E> \xEB\x70 |0
+<U891F> \xEB\x7C |0
+<U8921> \xBF\xCA |0
+<U8922> \xEB\x77 |0
+<U8923> \xEB\x79 |0
+<U8925> \xBF\xC8 |0
+<U8926> \xEB\x71 |0
+<U8927> \xEB\x75 |0
+<U8929> \xEB\x78 |0
+<U892A> \xBF\xC6 |0
+<U892B> \xBF\xC9 |0
+<U892C> \xEB\x7B |0
+<U892D> \xEB\x73 |0
+<U892E> \xEB\x74 |0
+<U892F> \xEB\x7A |0
+<U8930> \xEB\x72 |0
+<U8931> \xEB\x76 |0
+<U8932> \xBF\xC7 |0
+<U8933> \xEE\x72 |0
+<U8935> \xEE\x71 |0
+<U8936> \xC1\xB7 |0
+<U8937> \xEE\x77 |0
+<U8938> \xC1\xB9 |0
+<U893B> \xC1\xB6 |0
+<U893C> \xEE\x73 |0
+<U893D> \xC1\xBA |0
+<U893E> \xEE\x74 |0
+<U8941> \xEE\x75 |0
+<U8942> \xEE\x78 |0
+<U8944> \xC1\xB8 |0
+<U8946> \xF0\xD6 |0
+<U8949> \xF0\xD9 |0
+<U894B> \xF0\xD3 |0
+<U894C> \xF0\xD5 |0
+<U894F> \xF0\xD4 |0
+<U8950> \xF0\xD7 |0
+<U8951> \xF0\xD8 |0
+<U8952> \xEE\x76 |0
+<U8953> \xF0\xD2 |0
+<U8956> \xC3\xCD |0
+<U8957> \xF2\xEC |0
+<U8958> \xF2\xEF |0
+<U8959> \xF2\xF1 |0
+<U895A> \xF2\xEA |0
+<U895B> \xF2\xEB |0
+<U895C> \xF2\xEE |0
+<U895D> \xF2\xF0 |0
+<U895E> \xC3\xCE |0
+<U895F> \xC3\xCC |0
+<U8960> \xC3\xCB |0
+<U8961> \xF2\xED |0
+<U8962> \xF2\xE9 |0
+<U8963> \xF4\xCA |0
+<U8964> \xC4\xB0 |0
+<U8966> \xF4\xCB |0
+<U8969> \xF6\x49 |0
+<U896A> \xC4\xFB |0
+<U896B> \xF6\x4B |0
+<U896C> \xC4\xFC |0
+<U896D> \xF6\x48 |0
+<U896E> \xF6\x4A |0
+<U896F> \xC5\xA8 |0
+<U8971> \xF7\x52 |0
+<U8972> \xC5\xA7 |0
+<U8973> \xF7\xFD |0
+<U8974> \xF7\xFC |0
+<U8976> \xF7\xFB |0
+<U8979> \xF9\x48 |0
+<U897A> \xF9\x49 |0
+<U897B> \xF9\x4B |0
+<U897C> \xF9\x4A |0
+<U897E> \xCA\x50 |0
+<U897F> \xA6\xE8 |0
+<U8981> \xAD\x6E |0
+<U8982> \xD7\xC5 |0
+<U8983> \xB5\xF7 |0
+<U8985> \xDF\xFA |0
+<U8986> \xC2\xD0 |0
+<U8988> \xF2\xF2 |0
+<U898B> \xA8\xA3 |0
+<U898F> \xB3\x57 |0
+<U8993> \xB3\x56 |0
+<U8995> \xDB\xD0 |0
+<U8996> \xB5\xF8 |0
+<U8997> \xDB\xD2 |0
+<U8998> \xDB\xD1 |0
+<U899B> \xDF\xFB |0
+<U899C> \xB8\xD0 |0
+<U899D> \xE4\x43 |0
+<U899E> \xE4\x46 |0
+<U899F> \xE4\x45 |0
+<U89A1> \xE4\x44 |0
+<U89A2> \xE7\xCE |0
+<U89A3> \xE7\xD0 |0
+<U89A4> \xE7\xCF |0
+<U89A6> \xBF\xCC |0
+<U89AA> \xBF\xCB |0
+<U89AC> \xC1\xBB |0
+<U89AD> \xEE\x79 |0
+<U89AE> \xEE\x7B |0
+<U89AF> \xEE\x7A |0
+<U89B2> \xC2\xD1 |0
+<U89B6> \xF2\xF4 |0
+<U89B7> \xF2\xF3 |0
+<U89B9> \xF4\xCC |0
+<U89BA> \xC4\xB1 |0
+<U89BD> \xC4\xFD |0
+<U89BE> \xF7\x54 |0
+<U89BF> \xF7\x53 |0
+<U89C0> \xC6\x5B |0
+<U89D2> \xA8\xA4 |0
+<U89D3> \xD0\xAF |0
+<U89D4> \xAD\x6F |0
+<U89D5> \xD7\xC8 |0
+<U89D6> \xD7\xC6 |0
+<U89D9> \xD7\xC7 |0
+<U89DA> \xDB\xD4 |0
+<U89DB> \xDB\xD5 |0
+<U89DC> \xE0\x43 |0
+<U89DD> \xDB\xD3 |0
+<U89DF> \xDF\xFC |0
+<U89E0> \xE0\x41 |0
+<U89E1> \xE0\x40 |0
+<U89E2> \xE0\x42 |0
+<U89E3> \xB8\xD1 |0
+<U89E4> \xDF\xFE |0
+<U89E5> \xDF\xFD |0
+<U89E6> \xE0\x44 |0
+<U89E8> \xE4\x49 |0
+<U89E9> \xE4\x47 |0
+<U89EB> \xE4\x48 |0
+<U89EC> \xE7\xD3 |0
+<U89ED> \xE7\xD1 |0
+<U89F0> \xE7\xD2 |0
+<U89F1> \xEB\x7D |0
+<U89F2> \xEE\x7C |0
+<U89F3> \xEE\x7D |0
+<U89F4> \xC2\xD2 |0
+<U89F6> \xF2\xF5 |0
+<U89F7> \xF4\xCD |0
+<U89F8> \xC4\xB2 |0
+<U89FA> \xF6\x4C |0
+<U89FB> \xF7\x55 |0
+<U89FC> \xC5\xA9 |0
+<U89FE> \xF7\xFE |0
+<U89FF> \xF9\x4C |0
+<U8A00> \xA8\xA5 |0
+<U8A02> \xAD\x71 |0
+<U8A03> \xAD\x72 |0
+<U8A04> \xD0\xB0 |0
+<U8A07> \xD0\xB1 |0
+<U8A08> \xAD\x70 |0
+<U8A0A> \xB0\x54 |0
+<U8A0C> \xB0\x52 |0
+<U8A0E> \xB0\x51 |0
+<U8A0F> \xB0\x58 |0
+<U8A10> \xB0\x50 |0
+<U8A11> \xB0\x59 |0
+<U8A12> \xD3\xDD |0
+<U8A13> \xB0\x56 |0
+<U8A15> \xB0\x53 |0
+<U8A16> \xB0\x57 |0
+<U8A17> \xB0\x55 |0
+<U8A18> \xB0\x4F |0
+<U8A1B> \xB3\x5F |0
+<U8A1D> \xB3\x59 |0
+<U8A1E> \xD7\xCC |0
+<U8A1F> \xB3\x5E |0
+<U8A22> \xB3\x60 |0
+<U8A23> \xB3\x5A |0
+<U8A25> \xB3\x5B |0
+<U8A27> \xD7\xCA |0
+<U8A2A> \xB3\x58 |0
+<U8A2C> \xD7\xCB |0
+<U8A2D> \xB3\x5D |0
+<U8A30> \xD7\xC9 |0
+<U8A31> \xB3\x5C |0
+<U8A34> \xB6\x44 |0
+<U8A36> \xB6\x46 |0
+<U8A39> \xDB\xD8 |0
+<U8A3A> \xB6\x45 |0
+<U8A3B> \xB5\xF9 |0
+<U8A3C> \xB5\xFD |0
+<U8A3E> \xB8\xE4 |0
+<U8A3F> \xE0\x49 |0
+<U8A40> \xDB\xDA |0
+<U8A41> \xB5\xFE |0
+<U8A44> \xDB\xDD |0
+<U8A45> \xDB\xDE |0
+<U8A46> \xB6\x43 |0
+<U8A48> \xDB\xE0 |0
+<U8A4A> \xDB\xE2 |0
+<U8A4C> \xDB\xE3 |0
+<U8A4D> \xDB\xD7 |0
+<U8A4E> \xDB\xD6 |0
+<U8A4F> \xDB\xE4 |0
+<U8A50> \xB6\x42 |0
+<U8A51> \xDB\xE1 |0
+<U8A52> \xDB\xDF |0
+<U8A54> \xB6\x40 |0
+<U8A55> \xB5\xFB |0
+<U8A56> \xB6\x47 |0
+<U8A57> \xDB\xDB |0
+<U8A58> \xDB\xDC |0
+<U8A59> \xDB\xD9 |0
+<U8A5B> \xB6\x41 |0
+<U8A5E> \xB5\xFC |0
+<U8A60> \xB5\xFA |0
+<U8A61> \xE0\x48 |0
+<U8A62> \xB8\xDF |0
+<U8A63> \xB8\xDA |0
+<U8A66> \xB8\xD5 |0
+<U8A68> \xB8\xE5 |0
+<U8A69> \xB8\xD6 |0
+<U8A6B> \xB8\xD2 |0
+<U8A6C> \xB8\xE1 |0
+<U8A6D> \xB8\xDE |0
+<U8A6E> \xB8\xE0 |0
+<U8A70> \xB8\xD7 |0
+<U8A71> \xB8\xDC |0
+<U8A72> \xB8\xD3 |0
+<U8A73> \xB8\xD4 |0
+<U8A74> \xE0\x50 |0
+<U8A75> \xE0\x4D |0
+<U8A76> \xE0\x45 |0
+<U8A77> \xE0\x4A |0
+<U8A79> \xB8\xE2 |0
+<U8A7A> \xE0\x51 |0
+<U8A7B> \xB8\xE3 |0
+<U8A7C> \xB8\xD9 |0
+<U8A7F> \xE0\x47 |0
+<U8A81> \xE0\x4F |0
+<U8A82> \xE0\x4B |0
+<U8A83> \xE0\x4E |0
+<U8A84> \xE0\x4C |0
+<U8A85> \xB8\xDD |0
+<U8A86> \xE0\x46 |0
+<U8A87> \xB8\xD8 |0
+<U8A8B> \xE4\x4C |0
+<U8A8C> \xBB\x78 |0
+<U8A8D> \xBB\x7B |0
+<U8A8F> \xE4\x4E |0
+<U8A91> \xBB\xA5 |0
+<U8A92> \xE4\x4D |0
+<U8A93> \xBB\x7D |0
+<U8A95> \xBD\xCF |0
+<U8A96> \xE4\x4F |0
+<U8A98> \xBB\xA4 |0
+<U8A99> \xE4\x4B |0
+<U8A9A> \xBB\xA6 |0
+<U8A9E> \xBB\x79 |0
+<U8AA0> \xB8\xDB |0
+<U8AA1> \xBB\x7C |0
+<U8AA3> \xBB\x7A |0
+<U8AA4> \xBB\x7E |0
+<U8AA5> \xBB\xA2 |0
+<U8AA6> \xBB\x77 |0
+<U8AA7> \xBB\xA7 |0
+<U8AA8> \xBB\xA3 |0
+<U8AAA> \xBB\xA1 |0
+<U8AAB> \xE4\x4A |0
+<U8AB0> \xBD\xD6 |0
+<U8AB2> \xBD\xD2 |0
+<U8AB6> \xBD\xD9 |0
+<U8AB8> \xE7\xD6 |0
+<U8AB9> \xBD\xDA |0
+<U8ABA> \xE7\xE2 |0
+<U8ABB> \xE7\xDB |0
+<U8ABC> \xBD\xCB |0
+<U8ABD> \xE7\xE3 |0
+<U8ABE> \xE7\xDD |0
+<U8ABF> \xBD\xD5 |0
+<U8AC0> \xE7\xDE |0
+<U8AC2> \xBD\xD4 |0
+<U8AC3> \xE7\xE1 |0
+<U8AC4> \xBD\xCE |0
+<U8AC5> \xE7\xDF |0
+<U8AC6> \xE7\xD5 |0
+<U8AC7> \xBD\xCD |0
+<U8AC8> \xEB\xAA |0
+<U8AC9> \xBD\xD3 |0
+<U8ACB> \xBD\xD0 |0
+<U8ACD> \xBD\xD8 |0
+<U8ACF> \xE7\xD4 |0
+<U8AD1> \xE7\xD8 |0
+<U8AD2> \xBD\xCC |0
+<U8AD3> \xE7\xD7 |0
+<U8AD4> \xE7\xD9 |0
+<U8AD5> \xE7\xDA |0
+<U8AD6> \xBD\xD7 |0
+<U8AD7> \xE7\xDC |0
+<U8AD8> \xE7\xE0 |0
+<U8AD9> \xE7\xE4 |0
+<U8ADB> \xBD\xDB |0
+<U8ADC> \xBF\xD2 |0
+<U8ADD> \xEB\xA5 |0
+<U8ADE> \xEB\xAB |0
+<U8ADF> \xEB\xA8 |0
+<U8AE0> \xEB\x7E |0
+<U8AE1> \xEB\xAC |0
+<U8AE2> \xEB\xA1 |0
+<U8AE4> \xEB\xA7 |0
+<U8AE6> \xBF\xCD |0
+<U8AE7> \xBF\xD3 |0
+<U8AE8> \xEB\xAD |0
+<U8AEB> \xBF\xCF |0
+<U8AED> \xBF\xD9 |0
+<U8AEE> \xBF\xD4 |0
+<U8AEF> \xEB\xAF |0
+<U8AF0> \xEB\xA9 |0
+<U8AF1> \xBF\xD0 |0
+<U8AF2> \xEB\xA2 |0
+<U8AF3> \xBF\xDA |0
+<U8AF4> \xEB\xA3 |0
+<U8AF5> \xEB\xA4 |0
+<U8AF6> \xBF\xDB |0
+<U8AF7> \xBF\xD8 |0
+<U8AF8> \xBD\xD1 |0
+<U8AFA> \xBF\xCE |0
+<U8AFB> \xEB\xB0 |0
+<U8AFC> \xBF\xDC |0
+<U8AFE> \xBF\xD5 |0
+<U8AFF> \xEB\xAE |0
+<U8B00> \xBF\xD1 |0
+<U8B01> \xBF\xD6 |0
+<U8B02> \xBF\xD7 |0
+<U8B04> \xC1\xC3 |0
+<U8B05> \xEE\xA4 |0
+<U8B06> \xEE\xAD |0
+<U8B07> \xEE\xAA |0
+<U8B08> \xEE\xAC |0
+<U8B0A> \xC1\xC0 |0
+<U8B0B> \xEE\xA5 |0
+<U8B0D> \xEE\xAB |0
+<U8B0E> \xC1\xBC |0
+<U8B0F> \xEE\xA7 |0
+<U8B10> \xC1\xC4 |0
+<U8B11> \xEE\xA3 |0
+<U8B12> \xEE\xA8 |0
+<U8B13> \xEE\xAF |0
+<U8B14> \xEB\xA6 |0
+<U8B15> \xEE\xA9 |0
+<U8B16> \xEE\xA2 |0
+<U8B17> \xC1\xBD |0
+<U8B18> \xEE\xA1 |0
+<U8B19> \xC1\xBE |0
+<U8B1A> \xEE\xB0 |0
+<U8B1B> \xC1\xBF |0
+<U8B1C> \xEE\xAE |0
+<U8B1D> \xC1\xC2 |0
+<U8B1E> \xEE\x7E |0
+<U8B20> \xC1\xC1 |0
+<U8B22> \xEE\xA6 |0
+<U8B23> \xF0\xDC |0
+<U8B24> \xF0\xEA |0
+<U8B25> \xF0\xE5 |0
+<U8B26> \xF0\xE7 |0
+<U8B27> \xF0\xDB |0
+<U8B28> \xC2\xD3 |0
+<U8B2A> \xF0\xDA |0
+<U8B2B> \xC2\xD6 |0
+<U8B2C> \xC2\xD5 |0
+<U8B2E> \xF0\xE9 |0
+<U8B2F> \xF0\xE1 |0
+<U8B30> \xF0\xDE |0
+<U8B31> \xF0\xE4 |0
+<U8B33> \xF0\xDD |0
+<U8B35> \xF0\xDF |0
+<U8B36> \xF0\xE8 |0
+<U8B37> \xF0\xE6 |0
+<U8B39> \xC2\xD4 |0
+<U8B3A> \xF0\xED |0
+<U8B3B> \xF0\xEB |0
+<U8B3C> \xF0\xE2 |0
+<U8B3D> \xF0\xEC |0
+<U8B3E> \xF0\xE3 |0
+<U8B40> \xF2\xF9 |0
+<U8B41> \xC3\xCF |0
+<U8B42> \xF3\x41 |0
+<U8B45> \xF6\x4F |0
+<U8B46> \xC3\xD6 |0
+<U8B47> \xF0\xE0 |0
+<U8B48> \xF2\xF7 |0
+<U8B49> \xC3\xD2 |0
+<U8B4A> \xF2\xF8 |0
+<U8B4B> \xF2\xFD |0
+<U8B4E> \xC3\xD4 |0
+<U8B4F> \xC3\xD5 |0
+<U8B50> \xF2\xF6 |0
+<U8B51> \xF3\x40 |0
+<U8B52> \xF3\x42 |0
+<U8B53> \xF2\xFA |0
+<U8B54> \xF2\xFC |0
+<U8B55> \xF2\xFE |0
+<U8B56> \xF2\xFB |0
+<U8B57> \xF3\x43 |0
+<U8B58> \xC3\xD1 |0
+<U8B59> \xC3\xD7 |0
+<U8B5A> \xC3\xD3 |0
+<U8B5C> \xC3\xD0 |0
+<U8B5D> \xF4\xD0 |0
+<U8B5F> \xC4\xB7 |0
+<U8B60> \xF4\xCE |0
+<U8B63> \xF4\xD2 |0
+<U8B65> \xF4\xD3 |0
+<U8B66> \xC4\xB5 |0
+<U8B67> \xF4\xD4 |0
+<U8B68> \xF4\xD1 |0
+<U8B6A> \xF4\xCF |0
+<U8B6B> \xC4\xB8 |0
+<U8B6C> \xC4\xB4 |0
+<U8B6D> \xF4\xD5 |0
+<U8B6F> \xC4\xB6 |0
+<U8B70> \xC4\xB3 |0
+<U8B74> \xC4\xFE |0
+<U8B77> \xC5\x40 |0
+<U8B78> \xF6\x4E |0
+<U8B79> \xF6\x4D |0
+<U8B7A> \xF6\x50 |0
+<U8B7B> \xF6\x51 |0
+<U8B7D> \xC5\x41 |0
+<U8B7E> \xF7\x56 |0
+<U8B7F> \xF7\x5B |0
+<U8B80> \xC5\xAA |0
+<U8B82> \xF7\x58 |0
+<U8B84> \xF7\x57 |0
+<U8B85> \xF7\x5A |0
+<U8B86> \xF7\x59 |0
+<U8B88> \xF8\x43 |0
+<U8B8A> \xC5\xDC |0
+<U8B8B> \xF8\x42 |0
+<U8B8C> \xF8\x40 |0
+<U8B8E> \xF8\x41 |0
+<U8B92> \xC5\xFE |0
+<U8B93> \xC5\xFD |0
+<U8B94> \xF8\xC1 |0
+<U8B95> \xF8\xC2 |0
+<U8B96> \xC6\x40 |0
+<U8B98> \xF9\x4D |0
+<U8B99> \xF9\x4E |0
+<U8B9A> \xC6\x67 |0
+<U8B9C> \xC6\x6D |0
+<U8B9E> \xF9\xA9 |0
+<U8B9F> \xF9\xC8 |0
+<U8C37> \xA8\xA6 |0
+<U8C39> \xD7\xCD |0
+<U8C3B> \xD7\xCE |0
+<U8C3C> \xE0\x52 |0
+<U8C3D> \xE4\x50 |0
+<U8C3E> \xE7\xE5 |0
+<U8C3F> \xC1\xC6 |0
+<U8C41> \xC1\xC5 |0
+<U8C42> \xF0\xEE |0
+<U8C43> \xF3\x44 |0
+<U8C45> \xF8\x44 |0
+<U8C46> \xA8\xA7 |0
+<U8C47> \xD3\xDE |0
+<U8C48> \xB0\x5A |0
+<U8C49> \xB3\x61 |0
+<U8C4A> \xE0\x54 |0
+<U8C4B> \xE0\x53 |0
+<U8C4C> \xBD\xDC |0
+<U8C4D> \xE7\xE6 |0
+<U8C4E> \xBD\xDD |0
+<U8C4F> \xEE\xB1 |0
+<U8C50> \xC2\xD7 |0
+<U8C54> \xC6\x76 |0
+<U8C55> \xA8\xA8 |0
+<U8C56> \xCD\xCB |0
+<U8C57> \xD3\xDF |0
+<U8C5A> \xB3\x62 |0
+<U8C5C> \xD7\xCF |0
+<U8C5D> \xD7\xD0 |0
+<U8C5F> \xDB\xE5 |0
+<U8C61> \xB6\x48 |0
+<U8C62> \xB8\xE6 |0
+<U8C64> \xE0\x56 |0
+<U8C65> \xE0\x55 |0
+<U8C66> \xE0\x57 |0
+<U8C68> \xE4\x51 |0
+<U8C69> \xE4\x52 |0
+<U8C6A> \xBB\xA8 |0
+<U8C6B> \xBF\xDD |0
+<U8C6C> \xBD\xDE |0
+<U8C6D> \xBF\xDE |0
+<U8C6F> \xEE\xB5 |0
+<U8C70> \xEE\xB2 |0
+<U8C71> \xEE\xB4 |0
+<U8C72> \xEE\xB3 |0
+<U8C73> \xC1\xC7 |0
+<U8C75> \xF0\xEF |0
+<U8C76> \xF3\x46 |0
+<U8C77> \xF3\x45 |0
+<U8C78> \xCB\xA4 |0
+<U8C79> \xB0\x5C |0
+<U8C7A> \xB0\x5B |0
+<U8C7B> \xD3\xE0 |0
+<U8C7D> \xD7\xD1 |0
+<U8C80> \xDB\xE7 |0
+<U8C81> \xDB\xE6 |0
+<U8C82> \xB6\x49 |0
+<U8C84> \xE0\x59 |0
+<U8C85> \xE0\x5A |0
+<U8C86> \xE0\x58 |0
+<U8C89> \xB8\xE8 |0
+<U8C8A> \xB8\xE7 |0
+<U8C8C> \xBB\xAA |0
+<U8C8D> \xBB\xA9 |0
+<U8C8F> \xE7\xE7 |0
+<U8C90> \xEB\xB3 |0
+<U8C91> \xEB\xB1 |0
+<U8C92> \xEB\xB2 |0
+<U8C93> \xBF\xDF |0
+<U8C94> \xEE\xB7 |0
+<U8C95> \xEE\xB6 |0
+<U8C97> \xF0\xF2 |0
+<U8C98> \xF0\xF1 |0
+<U8C99> \xF0\xF0 |0
+<U8C9A> \xF3\x47 |0
+<U8C9C> \xF9\xAA |0
+<U8C9D> \xA8\xA9 |0
+<U8C9E> \xAD\x73 |0
+<U8CA0> \xAD\x74 |0
+<U8CA1> \xB0\x5D |0
+<U8CA2> \xB0\x5E |0
+<U8CA3> \xD3\xE2 |0
+<U8CA4> \xD3\xE1 |0
+<U8CA5> \xD7\xD2 |0
+<U8CA7> \xB3\x68 |0
+<U8CA8> \xB3\x66 |0
+<U8CA9> \xB3\x63 |0
+<U8CAA> \xB3\x67 |0
+<U8CAB> \xB3\x65 |0
+<U8CAC> \xB3\x64 |0
+<U8CAF> \xB6\x4A |0
+<U8CB0> \xDB\xEA |0
+<U8CB2> \xB8\xED |0
+<U8CB3> \xB6\x4C |0
+<U8CB4> \xB6\x51 |0
+<U8CB5> \xDB\xEC |0
+<U8CB6> \xB6\x53 |0
+<U8CB7> \xB6\x52 |0
+<U8CB8> \xB6\x55 |0
+<U8CB9> \xDB\xEB |0
+<U8CBA> \xDB\xE8 |0
+<U8CBB> \xB6\x4F |0
+<U8CBC> \xB6\x4B |0
+<U8CBD> \xB6\x4D |0
+<U8CBE> \xDB\xE9 |0
+<U8CBF> \xB6\x54 |0
+<U8CC0> \xB6\x50 |0
+<U8CC1> \xB6\x4E |0
+<U8CC2> \xB8\xEF |0
+<U8CC3> \xB8\xEE |0
+<U8CC4> \xB8\xEC |0
+<U8CC5> \xB8\xF0 |0
+<U8CC7> \xB8\xEA |0
+<U8CC8> \xB8\xEB |0
+<U8CCA> \xB8\xE9 |0
+<U8CCC> \xE0\x5B |0
+<U8CCF> \xE4\x54 |0
+<U8CD1> \xBB\xAC |0
+<U8CD2> \xBB\xAD |0
+<U8CD3> \xBB\xAB |0
+<U8CD5> \xE4\x53 |0
+<U8CD7> \xE4\x55 |0
+<U8CD9> \xE7\xEA |0
+<U8CDA> \xE7\xEC |0
+<U8CDC> \xBD\xE7 |0
+<U8CDD> \xE7\xED |0
+<U8CDE> \xBD\xE0 |0
+<U8CDF> \xE7\xE9 |0
+<U8CE0> \xBD\xDF |0
+<U8CE1> \xBD\xE9 |0
+<U8CE2> \xBD\xE5 |0
+<U8CE3> \xBD\xE6 |0
+<U8CE4> \xBD\xE2 |0
+<U8CE5> \xE7\xE8 |0
+<U8CE6> \xBD\xE1 |0
+<U8CE7> \xE7\xEE |0
+<U8CE8> \xE7\xEB |0
+<U8CEA> \xBD\xE8 |0
+<U8CEC> \xBD\xE3 |0
+<U8CED> \xBD\xE4 |0
+<U8CEE> \xEB\xB5 |0
+<U8CF0> \xEB\xB7 |0
+<U8CF1> \xEB\xB6 |0
+<U8CF3> \xEB\xB8 |0
+<U8CF4> \xBF\xE0 |0
+<U8CF5> \xEB\xB4 |0
+<U8CF8> \xC1\xCB |0
+<U8CF9> \xEE\xB8 |0
+<U8CFA> \xC1\xC8 |0
+<U8CFB> \xC1\xCC |0
+<U8CFC> \xC1\xCA |0
+<U8CFD> \xC1\xC9 |0
+<U8CFE> \xF0\xF3 |0
+<U8D00> \xF0\xF6 |0
+<U8D02> \xF0\xF5 |0
+<U8D04> \xF0\xF4 |0
+<U8D05> \xC2\xD8 |0
+<U8D06> \xF3\x48 |0
+<U8D07> \xF3\x49 |0
+<U8D08> \xC3\xD8 |0
+<U8D09> \xF3\x4A |0
+<U8D0A> \xC3\xD9 |0
+<U8D0D> \xC4\xBA |0
+<U8D0F> \xC4\xB9 |0
+<U8D10> \xF6\x52 |0
+<U8D13> \xC5\x42 |0
+<U8D14> \xF6\x53 |0
+<U8D15> \xF7\x5C |0
+<U8D16> \xC5\xAB |0
+<U8D17> \xC5\xAC |0
+<U8D19> \xF8\x45 |0
+<U8D1B> \xC6\x42 |0
+<U8D64> \xA8\xAA |0
+<U8D66> \xB3\x6A |0
+<U8D67> \xB3\x69 |0
+<U8D68> \xE0\x5C |0
+<U8D69> \xE0\x5D |0
+<U8D6B> \xBB\xAE |0
+<U8D6C> \xEB\xB9 |0
+<U8D6D> \xBD\xEA |0
+<U8D6E> \xEB\xBA |0
+<U8D6F> \xEE\xB9 |0
+<U8D70> \xA8\xAB |0
+<U8D72> \xD0\xB2 |0
+<U8D73> \xAD\x76 |0
+<U8D74> \xAD\x75 |0
+<U8D76> \xD3\xE3 |0
+<U8D77> \xB0\x5F |0
+<U8D78> \xD3\xE4 |0
+<U8D79> \xD7\xD5 |0
+<U8D7B> \xD7\xD4 |0
+<U8D7D> \xD7\xD3 |0
+<U8D80> \xDB\xEE |0
+<U8D81> \xB6\x58 |0
+<U8D84> \xDB\xED |0
+<U8D85> \xB6\x57 |0
+<U8D89> \xDB\xEF |0
+<U8D8A> \xB6\x56 |0
+<U8D8C> \xE0\x5F |0
+<U8D8D> \xE0\x62 |0
+<U8D8E> \xE0\x60 |0
+<U8D8F> \xE0\x61 |0
+<U8D90> \xE0\x65 |0
+<U8D91> \xE0\x5E |0
+<U8D92> \xE0\x66 |0
+<U8D93> \xE0\x63 |0
+<U8D94> \xE0\x64 |0
+<U8D95> \xBB\xB0 |0
+<U8D96> \xE4\x56 |0
+<U8D99> \xBB\xAF |0
+<U8D9B> \xE7\xF2 |0
+<U8D9C> \xE7\xF0 |0
+<U8D9F> \xBD\xEB |0
+<U8DA0> \xE7\xEF |0
+<U8DA1> \xE7\xF1 |0
+<U8DA3> \xBD\xEC |0
+<U8DA5> \xEB\xBB |0
+<U8DA7> \xEB\xBC |0
+<U8DA8> \xC1\xCD |0
+<U8DAA> \xF3\x4C |0
+<U8DAB> \xF3\x4E |0
+<U8DAC> \xF3\x4B |0
+<U8DAD> \xF3\x4D |0
+<U8DAE> \xF4\xD6 |0
+<U8DAF> \xF6\x54 |0
+<U8DB2> \xF9\x6F |0
+<U8DB3> \xA8\xAC |0
+<U8DB4> \xAD\x77 |0
+<U8DB5> \xD3\xE5 |0
+<U8DB6> \xD3\xE7 |0
+<U8DB7> \xD3\xE6 |0
+<U8DB9> \xD7\xD8 |0
+<U8DBA> \xB3\x6C |0
+<U8DBC> \xD7\xD6 |0
+<U8DBE> \xB3\x6B |0
+<U8DBF> \xD7\xD9 |0
+<U8DC1> \xD7\xDA |0
+<U8DC2> \xD7\xD7 |0
+<U8DC5> \xDB\xFB |0
+<U8DC6> \xB6\x60 |0
+<U8DC7> \xDB\xF3 |0
+<U8DC8> \xDB\xF9 |0
+<U8DCB> \xB6\x5B |0
+<U8DCC> \xB6\x5E |0
+<U8DCD> \xDB\xF2 |0
+<U8DCE> \xB6\x59 |0
+<U8DCF> \xDB\xF6 |0
+<U8DD0> \xE0\x6C |0
+<U8DD1> \xB6\x5D |0
+<U8DD3> \xDB\xF1 |0
+<U8DD5> \xDB\xF7 |0
+<U8DD6> \xDB\xF4 |0
+<U8DD7> \xDB\xFA |0
+<U8DD8> \xDB\xF0 |0
+<U8DD9> \xDB\xF8 |0
+<U8DDA> \xB6\x5C |0
+<U8DDB> \xB6\x5F |0
+<U8DDC> \xDB\xF5 |0
+<U8DDD> \xB6\x5A |0
+<U8DDF> \xB8\xF2 |0
+<U8DE0> \xE0\x68 |0
+<U8DE1> \xB8\xF1 |0
+<U8DE2> \xE0\x6F |0
+<U8DE3> \xE0\x6E |0
+<U8DE4> \xB8\xF8 |0
+<U8DE6> \xB8\xF9 |0
+<U8DE7> \xE0\x70 |0
+<U8DE8> \xB8\xF3 |0
+<U8DE9> \xE0\x6D |0
+<U8DEA> \xB8\xF7 |0
+<U8DEB> \xE0\x72 |0
+<U8DEC> \xE0\x69 |0
+<U8DEE> \xE0\x6B |0
+<U8DEF> \xB8\xF4 |0
+<U8DF0> \xE0\x67 |0
+<U8DF1> \xE0\x6A |0
+<U8DF2> \xE0\x71 |0
+<U8DF3> \xB8\xF5 |0
+<U8DF4> \xE0\x73 |0
+<U8DFA> \xB8\xF6 |0
+<U8DFC> \xBB\xB1 |0
+<U8DFD> \xE4\x5B |0
+<U8DFE> \xE4\x61 |0
+<U8DFF> \xE4\x59 |0
+<U8E00> \xE4\x62 |0
+<U8E02> \xE4\x58 |0
+<U8E03> \xE4\x5D |0
+<U8E04> \xE4\x63 |0
+<U8E05> \xE4\x60 |0
+<U8E06> \xE4\x5F |0
+<U8E07> \xE4\x5E |0
+<U8E09> \xE4\x57 |0
+<U8E0A> \xE4\x5C |0
+<U8E0D> \xE4\x5A |0
+<U8E0F> \xBD\xF1 |0
+<U8E10> \xBD\xEE |0
+<U8E11> \xE7\xFB |0
+<U8E12> \xE8\x41 |0
+<U8E13> \xE8\x43 |0
+<U8E14> \xE8\x40 |0
+<U8E15> \xE7\xF8 |0
+<U8E16> \xE7\xFA |0
+<U8E17> \xE8\x45 |0
+<U8E18> \xE8\x42 |0
+<U8E19> \xE7\xFC |0
+<U8E1A> \xE8\x46 |0
+<U8E1B> \xE7\xF9 |0
+<U8E1C> \xE8\x44 |0
+<U8E1D> \xBD\xEF |0
+<U8E1E> \xBD\xF5 |0
+<U8E1F> \xBD\xF3 |0
+<U8E20> \xE7\xF3 |0
+<U8E21> \xBD\xF4 |0
+<U8E22> \xBD\xF0 |0
+<U8E23> \xE7\xF4 |0
+<U8E24> \xE7\xF6 |0
+<U8E25> \xE7\xF5 |0
+<U8E26> \xE7\xFD |0
+<U8E27> \xE7\xFE |0
+<U8E29> \xBD\xF2 |0
+<U8E2B> \xBD\xED |0
+<U8E2E> \xE7\xF7 |0
+<U8E30> \xEB\xC6 |0
+<U8E31> \xBF\xE2 |0
+<U8E33> \xEB\xBD |0
+<U8E34> \xBF\xE3 |0
+<U8E35> \xBF\xE6 |0
+<U8E36> \xEB\xC2 |0
+<U8E38> \xEB\xBF |0
+<U8E39> \xBF\xE5 |0
+<U8E3C> \xEB\xC3 |0
+<U8E3D> \xEB\xC4 |0
+<U8E3E> \xEB\xBE |0
+<U8E3F> \xEB\xC7 |0
+<U8E40> \xEB\xC0 |0
+<U8E41> \xEB\xC5 |0
+<U8E42> \xBF\xE4 |0
+<U8E44> \xBF\xE1 |0
+<U8E45> \xEB\xC1 |0
+<U8E47> \xEE\xBF |0
+<U8E48> \xC1\xD0 |0
+<U8E49> \xC1\xCE |0
+<U8E4A> \xC1\xD1 |0
+<U8E4B> \xC1\xCF |0
+<U8E4C> \xEE\xBE |0
+<U8E4D> \xEE\xBB |0
+<U8E4E> \xEE\xBA |0
+<U8E50> \xEE\xBD |0
+<U8E53> \xEE\xBC |0
+<U8E54> \xF1\x45 |0
+<U8E55> \xC2\xDE |0
+<U8E56> \xF0\xFB |0
+<U8E57> \xF0\xFA |0
+<U8E59> \xC2\xD9 |0
+<U8E5A> \xF1\x41 |0
+<U8E5B> \xF1\x40 |0
+<U8E5C> \xF0\xF7 |0
+<U8E5D> \xF1\x43 |0
+<U8E5E> \xF0\xFC |0
+<U8E5F> \xC2\xDD |0
+<U8E60> \xF0\xF9 |0
+<U8E61> \xF1\x42 |0
+<U8E62> \xF0\xF8 |0
+<U8E63> \xC2\xDA |0
+<U8E64> \xC2\xDC |0
+<U8E65> \xF0\xFD |0
+<U8E66> \xC2\xDB |0
+<U8E67> \xF0\xFE |0
+<U8E69> \xF1\x44 |0
+<U8E6A> \xF3\x52 |0
+<U8E6C> \xC3\xDE |0
+<U8E6D> \xF3\x4F |0
+<U8E6F> \xF3\x53 |0
+<U8E72> \xC3\xDB |0
+<U8E73> \xF3\x51 |0
+<U8E74> \xC3\xE0 |0
+<U8E76> \xC3\xDD |0
+<U8E78> \xF3\x50 |0
+<U8E7A> \xC3\xDF |0
+<U8E7B> \xF3\x54 |0
+<U8E7C> \xC3\xDA |0
+<U8E81> \xC4\xBC |0
+<U8E82> \xC4\xBE |0
+<U8E84> \xF4\xD9 |0
+<U8E85> \xC4\xBD |0
+<U8E86> \xF4\xD7 |0
+<U8E87> \xC3\xDC |0
+<U8E88> \xF4\xD8 |0
+<U8E89> \xC4\xBB |0
+<U8E8A> \xC5\x43 |0
+<U8E8B> \xC5\x45 |0
+<U8E8C> \xF6\x56 |0
+<U8E8D> \xC5\x44 |0
+<U8E8E> \xF6\x55 |0
+<U8E90> \xF7\x61 |0
+<U8E91> \xC5\xAD |0
+<U8E92> \xF7\x60 |0
+<U8E93> \xC5\xAE |0
+<U8E94> \xF7\x5E |0
+<U8E95> \xF7\x5D |0
+<U8E96> \xF7\x62 |0
+<U8E97> \xF7\x63 |0
+<U8E98> \xF8\x46 |0
+<U8E9A> \xF7\x5F |0
+<U8E9D> \xF8\xC6 |0
+<U8E9E> \xF8\xC3 |0
+<U8E9F> \xF8\xC4 |0
+<U8EA0> \xF8\xC5 |0
+<U8EA1> \xC6\x5C |0
+<U8EA3> \xF9\x51 |0
+<U8EA4> \xF9\x50 |0
+<U8EA5> \xF9\x4F |0
+<U8EA6> \xF9\x70 |0
+<U8EA8> \xF9\xBE |0
+<U8EA9> \xF9\xAB |0
+<U8EAA> \xC6\x6E |0
+<U8EAB> \xA8\xAD |0
+<U8EAC> \xB0\x60 |0
+<U8EB2> \xB8\xFA |0
+<U8EBA> \xBD\xF6 |0
+<U8EBD> \xEB\xC8 |0
+<U8EC0> \xC2\xDF |0
+<U8EC2> \xF3\x55 |0
+<U8EC9> \xF9\xAC |0
+<U8ECA> \xA8\xAE |0
+<U8ECB> \xAA\xEE |0
+<U8ECC> \xAD\x79 |0
+<U8ECD> \xAD\x78 |0
+<U8ECF> \xB0\x63 |0
+<U8ED1> \xD3\xE8 |0
+<U8ED2> \xB0\x61 |0
+<U8ED3> \xD3\xE9 |0
+<U8ED4> \xB0\x62 |0
+<U8ED7> \xD7\xDF |0
+<U8ED8> \xD7\xDB |0
+<U8EDB> \xB3\x6D |0
+<U8EDC> \xD7\xDE |0
+<U8EDD> \xD7\xDD |0
+<U8EDE> \xD7\xDC |0
+<U8EDF> \xB3\x6E |0
+<U8EE0> \xD7\xE0 |0
+<U8EE1> \xD7\xE1 |0
+<U8EE5> \xDC\x43 |0
+<U8EE6> \xDC\x41 |0
+<U8EE7> \xDC\x45 |0
+<U8EE8> \xDC\x46 |0
+<U8EE9> \xDC\x4C |0
+<U8EEB> \xDC\x48 |0
+<U8EEC> \xDC\x4A |0
+<U8EEE> \xDC\x42 |0
+<U8EEF> \xDB\xFC |0
+<U8EF1> \xDC\x49 |0
+<U8EF4> \xDC\x4B |0
+<U8EF5> \xDC\x44 |0
+<U8EF6> \xDC\x47 |0
+<U8EF7> \xDB\xFD |0
+<U8EF8> \xB6\x62 |0
+<U8EF9> \xDC\x40 |0
+<U8EFA> \xDB\xFE |0
+<U8EFB> \xB6\x61 |0
+<U8EFC> \xB6\x63 |0
+<U8EFE> \xB8\xFD |0
+<U8EFF> \xE0\x75 |0
+<U8F00> \xE0\x77 |0
+<U8F01> \xE0\x76 |0
+<U8F02> \xE0\x7B |0
+<U8F03> \xB8\xFB |0
+<U8F05> \xE0\x78 |0
+<U8F06> \xE0\x74 |0
+<U8F07> \xE0\x79 |0
+<U8F08> \xE0\x7A |0
+<U8F09> \xB8\xFC |0
+<U8F0A> \xB8\xFE |0
+<U8F0B> \xE0\x7C |0
+<U8F0D> \xE4\x67 |0
+<U8F0E> \xE4\x66 |0
+<U8F10> \xE4\x64 |0
+<U8F11> \xE4\x65 |0
+<U8F12> \xBB\xB3 |0
+<U8F13> \xBB\xB5 |0
+<U8F14> \xBB\xB2 |0
+<U8F15> \xBB\xB4 |0
+<U8F16> \xE8\x4D |0
+<U8F17> \xE8\x4E |0
+<U8F18> \xE8\x49 |0
+<U8F1A> \xE8\x4A |0
+<U8F1B> \xBD\xF8 |0
+<U8F1C> \xBD\xFD |0
+<U8F1D> \xBD\xF7 |0
+<U8F1E> \xBD\xFE |0
+<U8F1F> \xBD\xF9 |0
+<U8F20> \xE8\x4B |0
+<U8F23> \xE8\x4C |0
+<U8F24> \xE8\x48 |0
+<U8F25> \xBE\x40 |0
+<U8F26> \xBD\xFB |0
+<U8F29> \xBD\xFA |0
+<U8F2A> \xBD\xFC |0
+<U8F2C> \xE8\x47 |0
+<U8F2E> \xEB\xCA |0
+<U8F2F> \xBF\xE8 |0
+<U8F32> \xEB\xCC |0
+<U8F33> \xBF\xEA |0
+<U8F34> \xEB\xCF |0
+<U8F35> \xEB\xCB |0
+<U8F36> \xEB\xC9 |0
+<U8F37> \xEB\xCE |0
+<U8F38> \xBF\xE9 |0
+<U8F39> \xEB\xCD |0
+<U8F3B> \xBF\xE7 |0
+<U8F3E> \xC1\xD3 |0
+<U8F3F> \xC1\xD6 |0
+<U8F40> \xEE\xC1 |0
+<U8F42> \xC1\xD4 |0
+<U8F43> \xEE\xC0 |0
+<U8F44> \xC1\xD2 |0
+<U8F45> \xC1\xD5 |0
+<U8F46> \xF1\x46 |0
+<U8F47> \xF1\x47 |0
+<U8F48> \xF1\x48 |0
+<U8F49> \xC2\xE0 |0
+<U8F4B> \xF1\x49 |0
+<U8F4D> \xC2\xE1 |0
+<U8F4E> \xC3\xE2 |0
+<U8F4F> \xF3\x58 |0
+<U8F50> \xF3\x59 |0
+<U8F51> \xF3\x57 |0
+<U8F52> \xF3\x56 |0
+<U8F53> \xF3\x5A |0
+<U8F54> \xC3\xE1 |0
+<U8F55> \xF4\xDD |0
+<U8F56> \xF4\xDB |0
+<U8F57> \xF4\xDC |0
+<U8F58> \xF4\xDE |0
+<U8F59> \xF4\xDA |0
+<U8F5A> \xF4\xDF |0
+<U8F5B> \xF6\x58 |0
+<U8F5D> \xF6\x59 |0
+<U8F5E> \xF6\x57 |0
+<U8F5F> \xC5\x46 |0
+<U8F60> \xF7\x64 |0
+<U8F61> \xC5\xAF |0
+<U8F62> \xF7\x65 |0
+<U8F63> \xF8\x48 |0
+<U8F64> \xF8\x47 |0
+<U8F9B> \xA8\xAF |0
+<U8F9C> \xB6\x64 |0
+<U8F9F> \xB9\x40 |0
+<U8FA3> \xBB\xB6 |0
+<U8FA6> \xBF\xEC |0
+<U8FA8> \xBF\xEB |0
+<U8FAD> \xC3\xE3 |0
+<U8FAE> \xC4\x7C |0
+<U8FAF> \xC5\x47 |0
+<U8FB0> \xA8\xB0 |0
+<U8FB1> \xB0\x64 |0
+<U8FB2> \xB9\x41 |0
+<U8FB4> \xF3\x5B |0
+<U8FBF> \xCB\xA6 |0
+<U8FC2> \xA8\xB1 |0
+<U8FC4> \xA8\xB4 |0
+<U8FC5> \xA8\xB3 |0
+<U8FC6> \xA8\xB2 |0
+<U8FC9> \xCB\xA5 |0
+<U8FCB> \xCD\xCD |0
+<U8FCD> \xCD\xCF |0
+<U8FCE> \xAA\xEF |0
+<U8FD1> \xAA\xF1 |0
+<U8FD2> \xCD\xCC |0
+<U8FD3> \xCD\xCE |0
+<U8FD4> \xAA\xF0 |0
+<U8FD5> \xCD\xD1 |0
+<U8FD6> \xCD\xD0 |0
+<U8FD7> \xCD\xD2 |0
+<U8FE0> \xD0\xB6 |0
+<U8FE1> \xD0\xB4 |0
+<U8FE2> \xAD\x7C |0
+<U8FE3> \xD0\xB3 |0
+<U8FE4> \xAD\xA3 |0
+<U8FE5> \xAD\x7E |0
+<U8FE6> \xAD\x7B |0
+<U8FE8> \xAD\xA4 |0
+<U8FEA> \xAD\x7D |0
+<U8FEB> \xAD\xA2 |0
+<U8FED> \xAD\xA1 |0
+<U8FEE> \xD0\xB5 |0
+<U8FF0> \xAD\x7A |0
+<U8FF4> \xB0\x6A |0
+<U8FF5> \xD3\xEB |0
+<U8FF6> \xD3\xF1 |0
+<U8FF7> \xB0\x67 |0
+<U8FF8> \xB0\x6E |0
+<U8FFA> \xB0\x69 |0
+<U8FFB> \xD3\xEE |0
+<U8FFC> \xD3\xF0 |0
+<U8FFD> \xB0\x6C |0
+<U8FFE> \xD3\xEA |0
+<U8FFF> \xD3\xED |0
+<U9000> \xB0\x68 |0
+<U9001> \xB0\x65 |0
+<U9002> \xD3\xEC |0
+<U9003> \xB0\x6B |0
+<U9004> \xD3\xEF |0
+<U9005> \xB0\x6D |0
+<U9006> \xB0\x66 |0
+<U900B> \xD7\xE3 |0
+<U900C> \xD7\xE6 |0
+<U900D> \xB3\x70 |0
+<U900F> \xB3\x7A |0
+<U9010> \xB3\x76 |0
+<U9011> \xD7\xE4 |0
+<U9014> \xB3\x7E |0
+<U9015> \xB3\x77 |0
+<U9016> \xB3\x7C |0
+<U9017> \xB3\x72 |0
+<U9019> \xB3\x6F |0
+<U901A> \xB3\x71 |0
+<U901B> \xB3\x7D |0
+<U901C> \xD7\xE5 |0
+<U901D> \xB3\x75 |0
+<U901E> \xB3\x78 |0
+<U901F> \xB3\x74 |0
+<U9020> \xB3\x79 |0
+<U9021> \xD7\xE7 |0
+<U9022> \xB3\x7B |0
+<U9023> \xB3\x73 |0
+<U9024> \xD7\xE2 |0
+<U902D> \xDC\x4D |0
+<U902E> \xB6\x65 |0
+<U902F> \xDC\x4F |0
+<U9031> \xB6\x67 |0
+<U9032> \xB6\x69 |0
+<U9034> \xDC\x4E |0
+<U9035> \xB6\x66 |0
+<U9036> \xB6\x6A |0
+<U9038> \xB6\x68 |0
+<U903C> \xB9\x47 |0
+<U903D> \xE0\xA3 |0
+<U903E> \xB9\x4F |0
+<U903F> \xE0\x7E |0
+<U9041> \xB9\x50 |0
+<U9042> \xB9\x45 |0
+<U9044> \xE0\xA1 |0
+<U9047> \xB9\x4A |0
+<U9049> \xE0\xA2 |0
+<U904A> \xB9\x43 |0
+<U904B> \xB9\x42 |0
+<U904D> \xB9\x4D |0
+<U904E> \xB9\x4C |0
+<U904F> \xB9\x4B |0
+<U9050> \xB9\x49 |0
+<U9051> \xB9\x4E |0
+<U9052> \xE0\x7D |0
+<U9053> \xB9\x44 |0
+<U9054> \xB9\x46 |0
+<U9055> \xB9\x48 |0
+<U9058> \xBB\xB8 |0
+<U9059> \xBB\xBB |0
+<U905B> \xBB\xBF |0
+<U905C> \xBB\xB9 |0
+<U905D> \xBB\xBE |0
+<U905E> \xBB\xBC |0
+<U9060> \xBB\xB7 |0
+<U9062> \xBB\xBD |0
+<U9063> \xBB\xBA |0
+<U9067> \xE8\x52 |0
+<U9068> \xBE\x43 |0
+<U9069> \xBE\x41 |0
+<U906B> \xE8\x53 |0
+<U906D> \xBE\x44 |0
+<U906E> \xBE\x42 |0
+<U906F> \xE8\x51 |0
+<U9070> \xE8\x50 |0
+<U9072> \xBF\xF0 |0
+<U9073> \xE8\x4F |0
+<U9074> \xBF\xEE |0
+<U9075> \xBF\xED |0
+<U9076> \xEB\xD0 |0
+<U9077> \xBE\x45 |0
+<U9078> \xBF\xEF |0
+<U9079> \xEB\xD1 |0
+<U907A> \xBF\xF2 |0
+<U907B> \xEB\xD2 |0
+<U907C> \xBF\xF1 |0
+<U907D> \xC1\xD8 |0
+<U907E> \xEE\xC3 |0
+<U907F> \xC1\xD7 |0
+<U9080> \xC1\xDC |0
+<U9081> \xC1\xDA |0
+<U9082> \xC1\xDB |0
+<U9083> \xC2\xE3 |0
+<U9084> \xC1\xD9 |0
+<U9085> \xEE\xC2 |0
+<U9086> \xEB\xD3 |0
+<U9087> \xC2\xE2 |0
+<U9088> \xC2\xE4 |0
+<U908A> \xC3\xE4 |0
+<U908B> \xC3\xE5 |0
+<U908D> \xF4\xE0 |0
+<U908F> \xC5\xDE |0
+<U9090> \xC5\xDD |0
+<U9091> \xA8\xB6 |0
+<U9094> \xCA\x55 |0
+<U9095> \xB0\x6F |0
+<U9097> \xCA\x52 |0
+<U9098> \xCA\x53 |0
+<U9099> \xCA\x51 |0
+<U909B> \xCA\x54 |0
+<U909E> \xCB\xAA |0
+<U909F> \xCB\xA7 |0
+<U90A0> \xCB\xAC |0
+<U90A1> \xCB\xA8 |0
+<U90A2> \xA8\xB7 |0
+<U90A3> \xA8\xBA |0
+<U90A5> \xCB\xA9 |0
+<U90A6> \xA8\xB9 |0
+<U90A7> \xCB\xAB |0
+<U90AA> \xA8\xB8 |0
+<U90AF> \xCD\xD5 |0
+<U90B0> \xCD\xD7 |0
+<U90B1> \xAA\xF4 |0
+<U90B2> \xCD\xD3 |0
+<U90B3> \xCD\xD6 |0
+<U90B4> \xCD\xD4 |0
+<U90B5> \xAA\xF2 |0
+<U90B6> \xAA\xF5 |0
+<U90B8> \xAA\xF3 |0
+<U90BD> \xD0\xB8 |0
+<U90BE> \xD0\xBC |0
+<U90BF> \xD0\xB9 |0
+<U90C1> \xAD\xA7 |0
+<U90C3> \xAD\xA8 |0
+<U90C5> \xD0\xBB |0
+<U90C7> \xD0\xBD |0
+<U90C8> \xD0\xBF |0
+<U90CA> \xAD\xA5 |0
+<U90CB> \xD0\xBE |0
+<U90CE> \xAD\xA6 |0
+<U90D4> \xD7\xEE |0
+<U90D5> \xD0\xBA |0
+<U90D6> \xD3\xF2 |0
+<U90D7> \xD3\xFB |0
+<U90D8> \xD3\xF9 |0
+<U90D9> \xD3\xF4 |0
+<U90DA> \xD3\xF5 |0
+<U90DB> \xD3\xFA |0
+<U90DC> \xD3\xFC |0
+<U90DD> \xB0\x71 |0
+<U90DF> \xD3\xF7 |0
+<U90E0> \xD3\xF3 |0
+<U90E1> \xB0\x70 |0
+<U90E2> \xB0\x72 |0
+<U90E3> \xD3\xF6 |0
+<U90E4> \xD3\xFD |0
+<U90E5> \xD3\xF8 |0
+<U90E8> \xB3\xA1 |0
+<U90E9> \xD7\xF1 |0
+<U90EA> \xD7\xE9 |0
+<U90EB> \xD7\xEF |0
+<U90EC> \xD7\xF0 |0
+<U90ED> \xB3\xA2 |0
+<U90EF> \xD7\xE8 |0
+<U90F0> \xD7\xEA |0
+<U90F1> \xD0\xB7 |0
+<U90F2> \xD7\xEC |0
+<U90F3> \xD7\xED |0
+<U90F4> \xD7\xEB |0
+<U90F5> \xB6\x6C |0
+<U90F9> \xDC\x56 |0
+<U90FA> \xEB\xD4 |0
+<U90FB> \xDC\x57 |0
+<U90FC> \xDC\x54 |0
+<U90FD> \xB3\xA3 |0
+<U90FE> \xB6\x6E |0
+<U90FF> \xDC\x53 |0
+<U9100> \xDC\x59 |0
+<U9101> \xDC\x58 |0
+<U9102> \xB6\x6B |0
+<U9103> \xDC\x5C |0
+<U9104> \xDC\x52 |0
+<U9105> \xDC\x5B |0
+<U9106> \xDC\x50 |0
+<U9107> \xDC\x5A |0
+<U9108> \xDC\x55 |0
+<U9109> \xB6\x6D |0
+<U910B> \xE0\xAA |0
+<U910D> \xE0\xA5 |0
+<U910E> \xE0\xAB |0
+<U910F> \xE0\xA6 |0
+<U9110> \xE0\xA4 |0
+<U9111> \xE0\xA7 |0
+<U9112> \xB9\x51 |0
+<U9114> \xE0\xA9 |0
+<U9116> \xE0\xA8 |0
+<U9117> \xB9\x52 |0
+<U9118> \xBB\xC1 |0
+<U9119> \xBB\xC0 |0
+<U911A> \xE4\x6E |0
+<U911B> \xE4\x71 |0
+<U911C> \xE4\x69 |0
+<U911D> \xE4\x6D |0
+<U911E> \xBB\xC2 |0
+<U911F> \xE4\x6C |0
+<U9120> \xE4\x6A |0
+<U9121> \xE4\x70 |0
+<U9122> \xE4\x6B |0
+<U9123> \xE4\x68 |0
+<U9124> \xE4\x6F |0
+<U9126> \xE8\x59 |0
+<U9127> \xBE\x48 |0
+<U9128> \xF1\x4A |0
+<U9129> \xE8\x56 |0
+<U912A> \xE8\x57 |0
+<U912B> \xE8\x55 |0
+<U912C> \xDC\x51 |0
+<U912D> \xBE\x47 |0
+<U912E> \xE8\x5A |0
+<U912F> \xE8\x54 |0
+<U9130> \xBE\x46 |0
+<U9131> \xBE\x49 |0
+<U9132> \xE8\x58 |0
+<U9133> \xEB\xD5 |0
+<U9134> \xBF\xF3 |0
+<U9135> \xEB\xD6 |0
+<U9136> \xEB\xD7 |0
+<U9138> \xEE\xC4 |0
+<U9139> \xC1\xDD |0
+<U913A> \xF1\x4B |0
+<U913B> \xF1\x4C |0
+<U913E> \xF1\x4D |0
+<U913F> \xF3\x5D |0
+<U9140> \xF3\x5C |0
+<U9141> \xF4\xE2 |0
+<U9143> \xF4\xE1 |0
+<U9144> \xF6\x5B |0
+<U9145> \xF6\x5C |0
+<U9146> \xF6\x5A |0
+<U9147> \xF7\x66 |0
+<U9148> \xC5\xB0 |0
+<U9149> \xA8\xBB |0
+<U914A> \xAD\xAA |0
+<U914B> \xAD\xA9 |0
+<U914C> \xB0\x75 |0
+<U914D> \xB0\x74 |0
+<U914E> \xD4\x40 |0
+<U914F> \xD4\x41 |0
+<U9150> \xD3\xFE |0
+<U9152> \xB0\x73 |0
+<U9153> \xD7\xF5 |0
+<U9155> \xD7\xF6 |0
+<U9156> \xD7\xF2 |0
+<U9157> \xB3\xA4 |0
+<U9158> \xD7\xF3 |0
+<U915A> \xD7\xF4 |0
+<U915F> \xDC\x5F |0
+<U9160> \xDC\x61 |0
+<U9161> \xDC\x5D |0
+<U9162> \xDC\x60 |0
+<U9163> \xB6\x6F |0
+<U9164> \xDC\x5E |0
+<U9165> \xB6\x70 |0
+<U9168> \xDD\x73 |0
+<U9169> \xB9\x55 |0
+<U916A> \xB9\x54 |0
+<U916C> \xB9\x53 |0
+<U916E> \xE0\xAC |0
+<U916F> \xE0\xAD |0
+<U9172> \xE4\x73 |0
+<U9173> \xE4\x75 |0
+<U9174> \xBB\xC6 |0
+<U9175> \xBB\xC3 |0
+<U9177> \xBB\xC5 |0
+<U9178> \xBB\xC4 |0
+<U9179> \xE4\x74 |0
+<U917A> \xE4\x72 |0
+<U9180> \xE8\x61 |0
+<U9181> \xE8\x5E |0
+<U9182> \xE8\x5F |0
+<U9183> \xBE\x4D |0
+<U9184> \xE8\x60 |0
+<U9185> \xE8\x5B |0
+<U9186> \xE8\x5C |0
+<U9187> \xBE\x4A |0
+<U9189> \xBE\x4B |0
+<U918A> \xE8\x5D |0
+<U918B> \xBE\x4C |0
+<U918D> \xEB\xDB |0
+<U918F> \xEB\xDC |0
+<U9190> \xEB\xD9 |0
+<U9191> \xEB\xDA |0
+<U9192> \xBF\xF4 |0
+<U9193> \xEB\xD8 |0
+<U9199> \xEE\xC8 |0
+<U919A> \xEE\xC5 |0
+<U919B> \xEE\xC7 |0
+<U919C> \xC1\xE0 |0
+<U919D> \xEE\xCB |0
+<U919E> \xC1\xDF |0
+<U919F> \xEE\xC9 |0
+<U91A0> \xEE\xCC |0
+<U91A1> \xEE\xCA |0
+<U91A2> \xEE\xC6 |0
+<U91A3> \xC1\xDE |0
+<U91A5> \xF1\x4F |0
+<U91A7> \xF1\x50 |0
+<U91A8> \xF1\x4E |0
+<U91AA> \xF1\x52 |0
+<U91AB> \xC2\xE5 |0
+<U91AC> \xC2\xE6 |0
+<U91AD> \xF3\x5F |0
+<U91AE> \xC3\xE7 |0
+<U91AF> \xF1\x51 |0
+<U91B0> \xF3\x5E |0
+<U91B1> \xC3\xE6 |0
+<U91B2> \xF4\xE5 |0
+<U91B3> \xF4\xE6 |0
+<U91B4> \xC4\xBF |0
+<U91B5> \xF4\xE4 |0
+<U91B7> \xF4\xE3 |0
+<U91B9> \xF6\x5D |0
+<U91BA> \xC5\x48 |0
+<U91BC> \xF8\x49 |0
+<U91BD> \xF8\xC8 |0
+<U91BE> \xF8\xC7 |0
+<U91C0> \xC6\x43 |0
+<U91C1> \xC6\x5D |0
+<U91C2> \xF8\xC9 |0
+<U91C3> \xF9\x71 |0
+<U91C5> \xC6\x6F |0
+<U91C6> \xA8\xBC |0
+<U91C7> \xAA\xF6 |0
+<U91C9> \xB9\x56 |0
+<U91CB> \xC4\xC0 |0
+<U91CC> \xA8\xBD |0
+<U91CD> \xAD\xAB |0
+<U91CE> \xB3\xA5 |0
+<U91CF> \xB6\x71 |0
+<U91D0> \xC2\xE7 |0
+<U91D1> \xAA\xF7 |0
+<U91D3> \xD0\xC1 |0
+<U91D4> \xD0\xC0 |0
+<U91D5> \xD4\x42 |0
+<U91D7> \xB0\x78 |0
+<U91D8> \xB0\x76 |0
+<U91D9> \xB0\x7A |0
+<U91DA> \xD4\x44 |0
+<U91DC> \xB0\x79 |0
+<U91DD> \xB0\x77 |0
+<U91E2> \xD4\x43 |0
+<U91E3> \xB3\xA8 |0
+<U91E4> \xD7\xFC |0
+<U91E6> \xB3\xA7 |0
+<U91E7> \xB3\xA9 |0
+<U91E8> \xD8\x42 |0
+<U91E9> \xB3\xAB |0
+<U91EA> \xD7\xFE |0
+<U91EB> \xD8\x40 |0
+<U91EC> \xD7\xF7 |0
+<U91ED> \xB3\xAA |0
+<U91EE> \xD8\x43 |0
+<U91F1> \xD7\xF9 |0
+<U91F3> \xD7\xFA |0
+<U91F4> \xD7\xF8 |0
+<U91F5> \xB3\xA6 |0
+<U91F7> \xD8\x41 |0
+<U91F8> \xD7\xFB |0
+<U91F9> \xD7\xFD |0
+<U91FD> \xDC\x6D |0
+<U91FF> \xDC\x6C |0
+<U9200> \xDC\x6A |0
+<U9201> \xDC\x62 |0
+<U9202> \xDC\x71 |0
+<U9203> \xDC\x65 |0
+<U9204> \xDC\x6F |0
+<U9205> \xDC\x76 |0
+<U9206> \xDC\x6E |0
+<U9207> \xB6\x79 |0
+<U9209> \xB6\x75 |0
+<U920A> \xDC\x63 |0
+<U920C> \xDC\x69 |0
+<U920D> \xB6\x77 |0
+<U920F> \xDC\x68 |0
+<U9210> \xB6\x78 |0
+<U9211> \xB6\x7A |0
+<U9212> \xDC\x6B |0
+<U9214> \xB6\x72 |0
+<U9215> \xB6\x73 |0
+<U9216> \xDC\x77 |0
+<U9217> \xDC\x75 |0
+<U9219> \xDC\x74 |0
+<U921A> \xDC\x66 |0
+<U921C> \xDC\x72 |0
+<U921E> \xB6\x76 |0
+<U9223> \xB6\x74 |0
+<U9224> \xDC\x73 |0
+<U9225> \xDC\x64 |0
+<U9226> \xDC\x67 |0
+<U9227> \xDC\x70 |0
+<U922D> \xE4\xBA |0
+<U922E> \xE0\xB7 |0
+<U9230> \xE0\xB0 |0
+<U9231> \xE0\xC3 |0
+<U9232> \xE0\xCC |0
+<U9233> \xE0\xB3 |0
+<U9234> \xB9\x61 |0
+<U9236> \xE0\xC0 |0
+<U9237> \xB9\x57 |0
+<U9238> \xB9\x59 |0
+<U9239> \xB9\x65 |0
+<U923A> \xE0\xB1 |0
+<U923D> \xB9\x5A |0
+<U923E> \xB9\x5C |0
+<U923F> \xB9\x66 |0
+<U9240> \xB9\x5B |0
+<U9245> \xB9\x64 |0
+<U9246> \xE0\xB9 |0
+<U9248> \xE0\xAE |0
+<U9249> \xB9\x62 |0
+<U924A> \xE0\xB8 |0
+<U924B> \xB9\x5E |0
+<U924C> \xE0\xCA |0
+<U924D> \xB9\x63 |0
+<U924E> \xE0\xC8 |0
+<U924F> \xE0\xBC |0
+<U9250> \xE0\xC6 |0
+<U9251> \xB9\x60 |0
+<U9252> \xE0\xAF |0
+<U9253> \xE0\xC9 |0
+<U9254> \xE0\xC4 |0
+<U9256> \xE0\xCB |0
+<U9257> \xB9\x58 |0
+<U925A> \xB9\x67 |0
+<U925B> \xB9\x5D |0
+<U925E> \xE0\xB5 |0
+<U9260> \xE0\xBD |0
+<U9261> \xE0\xC1 |0
+<U9263> \xE0\xC5 |0
+<U9264> \xB9\x5F |0
+<U9265> \xE0\xB4 |0
+<U9266> \xE0\xB2 |0
+<U9267> \xE0\xBE |0
+<U926C> \xE0\xBB |0
+<U926D> \xE0\xBA |0
+<U926F> \xE0\xBF |0
+<U9270> \xE0\xC2 |0
+<U9272> \xE0\xC7 |0
+<U9276> \xE4\x78 |0
+<U9278> \xBB\xC7 |0
+<U9279> \xE4\xA4 |0
+<U927A> \xE4\x7A |0
+<U927B> \xBB\xCC |0
+<U927C> \xBB\xD0 |0
+<U927D> \xE4\xAD |0
+<U927E> \xE4\xB5 |0
+<U927F> \xE4\xA6 |0
+<U9280> \xBB\xC8 |0
+<U9282> \xE4\xAA |0
+<U9283> \xE0\xB6 |0
+<U9285> \xBB\xC9 |0
+<U9286> \xE4\xB1 |0
+<U9287> \xE4\xB6 |0
+<U9288> \xE4\xAE |0
+<U928A> \xE4\xB0 |0
+<U928B> \xE4\xB9 |0
+<U928C> \xE4\xB2 |0
+<U928D> \xE4\x7E |0
+<U928E> \xE4\xA9 |0
+<U9291> \xBB\xD1 |0
+<U9293> \xBB\xCD |0
+<U9294> \xE4\x7C |0
+<U9295> \xE4\xAB |0
+<U9296> \xBB\xCB |0
+<U9297> \xE4\xA5 |0
+<U9298> \xBB\xCA |0
+<U9299> \xE4\xB3 |0
+<U929A> \xE4\xA2 |0
+<U929B> \xE4\x79 |0
+<U929C> \xBB\xCE |0
+<U929D> \xE4\xB8 |0
+<U92A0> \xE4\x7B |0
+<U92A1> \xE4\xAF |0
+<U92A2> \xE4\xAC |0
+<U92A3> \xE4\xA7 |0
+<U92A4> \xE4\x77 |0
+<U92A5> \xE4\x76 |0
+<U92A6> \xE4\xA1 |0
+<U92A7> \xE4\xB4 |0
+<U92A8> \xBB\xCF |0
+<U92A9> \xE4\xB7 |0
+<U92AA> \xE4\x7D |0
+<U92AB> \xE4\xA3 |0
+<U92AC> \xBE\x52 |0
+<U92B2> \xBE\x5A |0
+<U92B3> \xBE\x55 |0
+<U92B4> \xE8\xA4 |0
+<U92B5> \xE8\xA1 |0
+<U92B6> \xE8\x67 |0
+<U92B7> \xBE\x50 |0
+<U92B9> \xF9\xD7 |0
+<U92BB> \xBE\x4F |0
+<U92BC> \xBE\x56 |0
+<U92C0> \xE8\x65 |0
+<U92C1> \xBE\x54 |0
+<U92C2> \xE8\x71 |0
+<U92C3> \xE8\x63 |0
+<U92C4> \xE8\x64 |0
+<U92C5> \xBE\x4E |0
+<U92C6> \xE8\xA3 |0
+<U92C7> \xBE\x58 |0
+<U92C8> \xE8\x74 |0
+<U92C9> \xE8\x79 |0
+<U92CA> \xE8\x73 |0
+<U92CB> \xEB\xEE |0
+<U92CC> \xE8\x6F |0
+<U92CD> \xE8\x77 |0
+<U92CE> \xE8\x75 |0
+<U92CF> \xE8\x68 |0
+<U92D0> \xE8\x62 |0
+<U92D1> \xE8\x7D |0
+<U92D2> \xBE\x57 |0
+<U92D3> \xE8\x7E |0
+<U92D5> \xE8\x78 |0
+<U92D7> \xE8\x6D |0
+<U92D8> \xE8\x6B |0
+<U92D9> \xE8\x66 |0
+<U92DD> \xE8\x6E |0
+<U92DE> \xE8\x7B |0
+<U92DF> \xE8\x6A |0
+<U92E0> \xE8\x7A |0
+<U92E1> \xE8\xA2 |0
+<U92E4> \xBE\x53 |0
+<U92E6> \xE8\x76 |0
+<U92E7> \xE8\x7C |0
+<U92E8> \xE8\x72 |0
+<U92E9> \xE8\x6C |0
+<U92EA> \xBE\x51 |0
+<U92EE> \xE4\xA8 |0
+<U92EF> \xE8\x70 |0
+<U92F0> \xBE\x59 |0
+<U92F1> \xE8\x69 |0
+<U92F7> \xEB\xF4 |0
+<U92F8> \xBF\xF7 |0
+<U92F9> \xEB\xF3 |0
+<U92FA> \xEB\xF0 |0
+<U92FB> \xEC\x44 |0
+<U92FC> \xBF\xFB |0
+<U92FE> \xEC\x41 |0
+<U92FF> \xEB\xF8 |0
+<U9300> \xEC\x43 |0
+<U9301> \xEB\xE9 |0
+<U9302> \xEB\xF6 |0
+<U9304> \xBF\xFD |0
+<U9306> \xEB\xE1 |0
+<U9308> \xEB\xDF |0
+<U9309> \xEC\x42 |0
+<U930B> \xEC\x40 |0
+<U930C> \xEB\xFE |0
+<U930D> \xEB\xED |0
+<U930E> \xEB\xEC |0
+<U930F> \xEB\xE2 |0
+<U9310> \xC0\x40 |0
+<U9312> \xEB\xE8 |0
+<U9313> \xEB\xF2 |0
+<U9314> \xEB\xFD |0
+<U9315> \xC0\x43 |0
+<U9316> \xEC\x45 |0
+<U9318> \xC1\xE8 |0
+<U9319> \xC0\x45 |0
+<U931A> \xBF\xFE |0
+<U931B> \xEB\xE6 |0
+<U931D> \xEB\xEF |0
+<U931E> \xEB\xDE |0
+<U931F> \xEB\xE0 |0
+<U9320> \xBF\xF5 |0
+<U9321> \xC0\x42 |0
+<U9322> \xBF\xFA |0
+<U9323> \xEB\xE7 |0
+<U9324> \xEB\xF7 |0
+<U9325> \xEB\xF1 |0
+<U9326> \xC0\x41 |0
+<U9327> \xEB\xDD |0
+<U9328> \xC1\xE3 |0
+<U9329> \xEB\xF9 |0
+<U932A> \xEB\xFC |0
+<U932B> \xBF\xFC |0
+<U932D> \xEB\xEB |0
+<U932E> \xC0\x44 |0
+<U932F> \xBF\xF9 |0
+<U9333> \xBF\xF8 |0
+<U9334> \xEB\xF5 |0
+<U9335> \xEB\xFB |0
+<U9336> \xBF\xF6 |0
+<U9338> \xEB\xE4 |0
+<U9339> \xEB\xFA |0
+<U933C> \xEB\xE5 |0
+<U9346> \xEB\xEA |0
+<U9347> \xEE\xD2 |0
+<U9349> \xEE\xD7 |0
+<U934A> \xC1\xE5 |0
+<U934B> \xC1\xE7 |0
+<U934C> \xEE\xDD |0
+<U934D> \xC1\xE1 |0
+<U934E> \xEE\xEC |0
+<U934F> \xEE\xE3 |0
+<U9350> \xEE\xD8 |0
+<U9351> \xEE\xD9 |0
+<U9352> \xEE\xE2 |0
+<U9354> \xC1\xEE |0
+<U9355> \xEE\xE1 |0
+<U9356> \xEE\xD1 |0
+<U9357> \xEE\xE0 |0
+<U9358> \xEE\xD4 |0
+<U9359> \xEE\xED |0
+<U935A> \xC1\xED |0
+<U935B> \xC1\xEB |0
+<U935C> \xEE\xD5 |0
+<U935E> \xEE\xE8 |0
+<U9360> \xEE\xDA |0
+<U9361> \xEE\xE7 |0
+<U9363> \xEE\xE9 |0
+<U9364> \xEE\xD0 |0
+<U9365> \xC1\xE6 |0
+<U9367> \xEE\xEA |0
+<U936A> \xEE\xDE |0
+<U936C> \xC1\xEA |0
+<U936D> \xEE\xDB |0
+<U9370> \xC1\xEC |0
+<U9371> \xEE\xE4 |0
+<U9375> \xC1\xE4 |0
+<U9376> \xEE\xD6 |0
+<U9377> \xEE\xE5 |0
+<U9379> \xEE\xDF |0
+<U937A> \xEB\xE3 |0
+<U937B> \xEE\xE6 |0
+<U937C> \xEE\xD3 |0
+<U937E> \xC1\xE9 |0
+<U9380> \xEE\xEB |0
+<U9382> \xC1\xE2 |0
+<U9383> \xEE\xCE |0
+<U9388> \xF1\x60 |0
+<U9389> \xF1\x59 |0
+<U938A> \xC2\xE9 |0
+<U938C> \xF1\x54 |0
+<U938D> \xF1\x63 |0
+<U938E> \xF1\x5B |0
+<U938F> \xEE\xDC |0
+<U9391> \xF1\x65 |0
+<U9392> \xF1\x55 |0
+<U9394> \xC2\xE8 |0
+<U9395> \xF1\x5F |0
+<U9396> \xC2\xEA |0
+<U9397> \xC2\xF2 |0
+<U9398> \xC2\xF0 |0
+<U9399> \xF1\x61 |0
+<U939A> \xC2\xF1 |0
+<U939B> \xF1\x57 |0
+<U939D> \xF1\x58 |0
+<U939E> \xF1\x5D |0
+<U939F> \xF1\x62 |0
+<U93A1> \xEE\xCD |0
+<U93A2> \xC2\xEB |0
+<U93A3> \xF1\x6A |0
+<U93A4> \xF1\x67 |0
+<U93A5> \xF1\x6B |0
+<U93A6> \xF1\x5E |0
+<U93A7> \xF1\x5A |0
+<U93A8> \xF1\x68 |0
+<U93A9> \xF3\x6A |0
+<U93AA> \xF1\x5C |0
+<U93AC> \xC2\xEE |0
+<U93AE> \xC2\xED |0
+<U93AF> \xEE\xCF |0
+<U93B0> \xC2\xEF |0
+<U93B1> \xF1\x64 |0
+<U93B2> \xF1\x66 |0
+<U93B3> \xC2\xEC |0
+<U93B4> \xF1\x69 |0
+<U93B5> \xF1\x53 |0
+<U93B7> \xF1\x56 |0
+<U93C0> \xF3\x73 |0
+<U93C2> \xF3\x63 |0
+<U93C3> \xC3\xEB |0
+<U93C4> \xF3\x71 |0
+<U93C7> \xF3\x61 |0
+<U93C8> \xC3\xEC |0
+<U93CA> \xF3\x6C |0
+<U93CC> \xF3\x68 |0
+<U93CD> \xC3\xF1 |0
+<U93CE> \xF3\x72 |0
+<U93CF> \xF3\x62 |0
+<U93D0> \xF3\x65 |0
+<U93D1> \xC3\xE9 |0
+<U93D2> \xF3\x74 |0
+<U93D4> \xF3\x6D |0
+<U93D5> \xF3\x70 |0
+<U93D6> \xC3\xEF |0
+<U93D7> \xC3\xF4 |0
+<U93D8> \xC3\xF2 |0
+<U93D9> \xF3\x69 |0
+<U93DA> \xF3\x64 |0
+<U93DC> \xC3\xED |0
+<U93DD> \xC3\xEE |0
+<U93DE> \xF3\x60 |0
+<U93DF> \xC3\xEA |0
+<U93E1> \xC3\xE8 |0
+<U93E2> \xC3\xF0 |0
+<U93E3> \xF3\x6F |0
+<U93E4> \xC3\xF3 |0
+<U93E6> \xF3\x6B |0
+<U93E7> \xF3\x75 |0
+<U93E8> \xC3\xF5 |0
+<U93EC> \xF3\x67 |0
+<U93EE> \xF3\x6E |0
+<U93F5> \xF4\xF3 |0
+<U93F6> \xF5\x42 |0
+<U93F7> \xF4\xF5 |0
+<U93F8> \xF4\xFC |0
+<U93F9> \xF3\x66 |0
+<U93FA> \xF4\xFA |0
+<U93FB> \xF4\xE9 |0
+<U93FC> \xF5\x40 |0
+<U93FD> \xC4\xC3 |0
+<U93FE> \xF4\xED |0
+<U93FF> \xF4\xFE |0
+<U9400> \xF4\xF4 |0
+<U9403> \xC4\xC2 |0
+<U9406> \xF5\x44 |0
+<U9407> \xF4\xF6 |0
+<U9409> \xF4\xFB |0
+<U940A> \xF4\xFD |0
+<U940B> \xF4\xE7 |0
+<U940C> \xF5\x41 |0
+<U940D> \xF4\xF2 |0
+<U940E> \xF4\xF7 |0
+<U940F> \xF4\xEB |0
+<U9410> \xF4\xEF |0
+<U9411> \xF5\x43 |0
+<U9412> \xF4\xF9 |0
+<U9413> \xF4\xE8 |0
+<U9414> \xF4\xEC |0
+<U9415> \xF4\xEE |0
+<U9416> \xF4\xF8 |0
+<U9418> \xC4\xC1 |0
+<U9419> \xF4\xF1 |0
+<U9420> \xF4\xEA |0
+<U9428> \xF4\xF0 |0
+<U9429> \xF6\x61 |0
+<U942A> \xF6\x66 |0
+<U942B> \xC5\x4F |0
+<U942C> \xF6\x68 |0
+<U942E> \xC5\x49 |0
+<U9430> \xF6\x64 |0
+<U9431> \xF6\x6A |0
+<U9432> \xC5\x4E |0
+<U9433> \xC5\x4A |0
+<U9435> \xC5\x4B |0
+<U9436> \xF6\x60 |0
+<U9437> \xF6\x67 |0
+<U9438> \xC5\x4D |0
+<U9439> \xF6\x65 |0
+<U943A> \xC5\x4C |0
+<U943B> \xF6\x5F |0
+<U943C> \xF6\x63 |0
+<U943D> \xF6\x62 |0
+<U943F> \xF6\x5E |0
+<U9440> \xF6\x69 |0
+<U9444> \xC5\xB1 |0
+<U9445> \xF7\x6D |0
+<U9446> \xF7\x70 |0
+<U9447> \xF7\x6C |0
+<U9448> \xF7\x6E |0
+<U9449> \xF7\x6F |0
+<U944A> \xF7\x69 |0
+<U944B> \xF7\x6A |0
+<U944C> \xF7\x67 |0
+<U944F> \xF7\x6B |0
+<U9450> \xF7\x68 |0
+<U9451> \xC5\xB2 |0
+<U9452> \xC5\xB3 |0
+<U9455> \xF8\x4B |0
+<U9457> \xF8\x4D |0
+<U945D> \xF8\x4C |0
+<U945E> \xF8\x4E |0
+<U9460> \xC5\xE0 |0
+<U9462> \xF8\x4A |0
+<U9463> \xC5\xDF |0
+<U9464> \xC5\xE1 |0
+<U9468> \xF8\xCB |0
+<U9469> \xF8\xCC |0
+<U946A> \xC6\x44 |0
+<U946B> \xF8\xCA |0
+<U946D> \xF9\x53 |0
+<U946E> \xF9\x52 |0
+<U946F> \xF9\x54 |0
+<U9470> \xC6\x5F |0
+<U9471> \xF9\x55 |0
+<U9472> \xC6\x5E |0
+<U9473> \xF9\x56 |0
+<U9474> \xF9\x72 |0
+<U9475> \xF9\x75 |0
+<U9476> \xF9\x74 |0
+<U9477> \xC6\x68 |0
+<U9478> \xF9\x73 |0
+<U947C> \xC6\x72 |0
+<U947D> \xC6\x70 |0
+<U947E> \xC6\x71 |0
+<U947F> \xC6\x77 |0
+<U9480> \xF9\xC0 |0
+<U9481> \xF9\xC1 |0
+<U9482> \xF9\xBF |0
+<U9483> \xF9\xC9 |0
+<U9577> \xAA\xF8 |0
+<U957A> \xD8\x44 |0
+<U957B> \xDC\x78 |0
+<U957C> \xE8\xA5 |0
+<U957D> \xF3\x76 |0
+<U9580> \xAA\xF9 |0
+<U9582> \xAD\xAC |0
+<U9583> \xB0\x7B |0
+<U9586> \xD8\x45 |0
+<U9588> \xD8\x46 |0
+<U9589> \xB3\xAC |0
+<U958B> \xB6\x7D |0
+<U958C> \xDC\x7A |0
+<U958D> \xDC\x79 |0
+<U958E> \xB6\xA3 |0
+<U958F> \xB6\x7C |0
+<U9590> \xDC\x7B |0
+<U9591> \xB6\x7E |0
+<U9592> \xB6\xA2 |0
+<U9593> \xB6\xA1 |0
+<U9594> \xB6\x7B |0
+<U9598> \xB9\x68 |0
+<U959B> \xE0\xD0 |0
+<U959C> \xE0\xCE |0
+<U959E> \xE0\xCF |0
+<U959F> \xE0\xCD |0
+<U95A1> \xBB\xD2 |0
+<U95A3> \xBB\xD5 |0
+<U95A4> \xBB\xD7 |0
+<U95A5> \xBB\xD6 |0
+<U95A8> \xBB\xD3 |0
+<U95A9> \xBB\xD4 |0
+<U95AB> \xE8\xA7 |0
+<U95AC> \xE8\xA6 |0
+<U95AD> \xBE\x5B |0
+<U95AE> \xE8\xA8 |0
+<U95B0> \xE8\xA9 |0
+<U95B1> \xBE\x5C |0
+<U95B5> \xEC\x4D |0
+<U95B6> \xEC\x4B |0
+<U95B7> \xEE\xF3 |0
+<U95B9> \xEC\x49 |0
+<U95BA> \xEC\x4A |0
+<U95BB> \xC0\x46 |0
+<U95BC> \xEC\x46 |0
+<U95BD> \xEC\x4E |0
+<U95BE> \xEC\x48 |0
+<U95BF> \xEC\x4C |0
+<U95C0> \xEE\xEF |0
+<U95C3> \xEE\xF1 |0
+<U95C5> \xEE\xF2 |0
+<U95C6> \xC1\xF3 |0
+<U95C7> \xEE\xEE |0
+<U95C8> \xC1\xF2 |0
+<U95C9> \xEE\xF0 |0
+<U95CA> \xC1\xEF |0
+<U95CB> \xC1\xF0 |0
+<U95CC> \xC1\xF1 |0
+<U95CD> \xEC\x47 |0
+<U95D0> \xC2\xF5 |0
+<U95D1> \xF1\x6E |0
+<U95D2> \xF1\x6C |0
+<U95D3> \xF1\x6D |0
+<U95D4> \xC2\xF3 |0
+<U95D5> \xC2\xF6 |0
+<U95D6> \xC2\xF4 |0
+<U95DA> \xF3\x77 |0
+<U95DB> \xF3\x78 |0
+<U95DC> \xC3\xF6 |0
+<U95DE> \xF5\x45 |0
+<U95DF> \xF5\x47 |0
+<U95E0> \xF5\x46 |0
+<U95E1> \xC4\xC4 |0
+<U95E2> \xC5\x50 |0
+<U95E3> \xF6\x6D |0
+<U95E4> \xF6\x6C |0
+<U95E5> \xF6\x6B |0
+<U961C> \xAA\xFA |0
+<U961E> \xC9\xAA |0
+<U9620> \xCA\x58 |0
+<U9621> \xA6\xE9 |0
+<U9622> \xCA\x56 |0
+<U9623> \xCA\x59 |0
+<U9624> \xCA\x57 |0
+<U9628> \xCB\xAE |0
+<U962A> \xA8\xC1 |0
+<U962C> \xA8\xC2 |0
+<U962D> \xCB\xB0 |0
+<U962E> \xA8\xBF |0
+<U962F> \xCB\xAF |0
+<U9630> \xCB\xAD |0
+<U9631> \xA8\xC0 |0
+<U9632> \xA8\xBE |0
+<U9639> \xCD\xD8 |0
+<U963A> \xCD\xDB |0
+<U963B> \xAA\xFD |0
+<U963C> \xCD\xDA |0
+<U963D> \xCD\xD9 |0
+<U963F> \xAA\xFC |0
+<U9640> \xAA\xFB |0
+<U9642> \xAB\x40 |0
+<U9643> \xCD\xDC |0
+<U9644> \xAA\xFE |0
+<U964A> \xD0\xC6 |0
+<U964B> \xAD\xAE |0
+<U964C> \xAD\xAF |0
+<U964D> \xAD\xB0 |0
+<U964E> \xD0\xC7 |0
+<U964F> \xD0\xC3 |0
+<U9650> \xAD\xAD |0
+<U9651> \xD0\xC4 |0
+<U9653> \xD0\xC5 |0
+<U9654> \xD0\xC2 |0
+<U9658> \xB0\xA4 |0
+<U965B> \xB0\xA1 |0
+<U965C> \xD4\x45 |0
+<U965D> \xB0\xA2 |0
+<U965E> \xB0\xA5 |0
+<U965F> \xD4\x46 |0
+<U9661> \xB0\x7E |0
+<U9662> \xB0\x7C |0
+<U9663> \xB0\x7D |0
+<U9664> \xB0\xA3 |0
+<U966A> \xB3\xAD |0
+<U966B> \xD8\x49 |0
+<U966C> \xB3\xB5 |0
+<U966D> \xD8\x48 |0
+<U966F> \xD8\x4B |0
+<U9670> \xB3\xB1 |0
+<U9671> \xD8\x4A |0
+<U9672> \xB6\xAB |0
+<U9673> \xB3\xAF |0
+<U9674> \xB3\xB2 |0
+<U9675> \xB3\xAE |0
+<U9676> \xB3\xB3 |0
+<U9677> \xB3\xB4 |0
+<U9678> \xB3\xB0 |0
+<U967C> \xD8\x47 |0
+<U967D> \xB6\xA7 |0
+<U967E> \xDC\x7D |0
+<U9680> \xDC\xA3 |0
+<U9683> \xDC\xA2 |0
+<U9684> \xB6\xAC |0
+<U9685> \xB6\xA8 |0
+<U9686> \xB6\xA9 |0
+<U9687> \xDC\x7C |0
+<U9688> \xDC\x7E |0
+<U9689> \xDC\xA1 |0
+<U968A> \xB6\xA4 |0
+<U968B> \xB6\xA6 |0
+<U968D> \xB6\xAA |0
+<U968E> \xB6\xA5 |0
+<U9691> \xE0\xD3 |0
+<U9692> \xE0\xD1 |0
+<U9693> \xE0\xD2 |0
+<U9694> \xB9\x6A |0
+<U9695> \xB9\x6B |0
+<U9697> \xE0\xD4 |0
+<U9698> \xB9\x69 |0
+<U9699> \xBB\xD8 |0
+<U969B> \xBB\xDA |0
+<U969C> \xBB\xD9 |0
+<U969E> \xE4\xBB |0
+<U96A1> \xE4\xBC |0
+<U96A2> \xE8\xAB |0
+<U96A4> \xE8\xAA |0
+<U96A7> \xC0\x47 |0
+<U96A8> \xC0\x48 |0
+<U96A9> \xEC\x4F |0
+<U96AA> \xC0\x49 |0
+<U96AC> \xEE\xF6 |0
+<U96AE> \xEE\xF4 |0
+<U96B0> \xEE\xF5 |0
+<U96B1> \xC1\xF4 |0
+<U96B3> \xF1\x6F |0
+<U96B4> \xC3\xF7 |0
+<U96B8> \xC1\xF5 |0
+<U96B9> \xAB\x41 |0
+<U96BB> \xB0\xA6 |0
+<U96BC> \xD4\x47 |0
+<U96BF> \xD8\x4C |0
+<U96C0> \xB3\xB6 |0
+<U96C1> \xB6\xAD |0
+<U96C2> \xDC\xA4 |0
+<U96C3> \xDC\xA6 |0
+<U96C4> \xB6\xAF |0
+<U96C5> \xB6\xAE |0
+<U96C6> \xB6\xB0 |0
+<U96C7> \xB6\xB1 |0
+<U96C8> \xDC\xA5 |0
+<U96C9> \xB9\x6E |0
+<U96CA> \xB9\x6F |0
+<U96CB> \xB9\x6D |0
+<U96CC> \xBB\xDB |0
+<U96CD> \xB9\x6C |0
+<U96CE> \xE0\xD5 |0
+<U96D2> \xBB\xDC |0
+<U96D3> \xE8\xAC |0
+<U96D4> \xEC\x50 |0
+<U96D5> \xC0\x4A |0
+<U96D6> \xC1\xF6 |0
+<U96D7> \xF1\x70 |0
+<U96D8> \xF1\x74 |0
+<U96D9> \xC2\xF9 |0
+<U96DA> \xF1\x71 |0
+<U96DB> \xC2\xFA |0
+<U96DC> \xC2\xF8 |0
+<U96DD> \xF1\x75 |0
+<U96DE> \xC2\xFB |0
+<U96DF> \xF1\x73 |0
+<U96E1> \xF3\x79 |0
+<U96E2> \xC2\xF7 |0
+<U96E3> \xC3\xF8 |0
+<U96E5> \xF8\xCD |0
+<U96E8> \xAB\x42 |0
+<U96E9> \xB3\xB8 |0
+<U96EA> \xB3\xB7 |0
+<U96EF> \xB6\xB2 |0
+<U96F0> \xDC\xA8 |0
+<U96F1> \xDC\xA7 |0
+<U96F2> \xB6\xB3 |0
+<U96F5> \xE0\xD9 |0
+<U96F6> \xB9\x73 |0
+<U96F7> \xB9\x70 |0
+<U96F8> \xE0\xD8 |0
+<U96F9> \xB9\x72 |0
+<U96FA> \xE0\xD6 |0
+<U96FB> \xB9\x71 |0
+<U96FD> \xE0\xD7 |0
+<U96FF> \xE4\xBD |0
+<U9700> \xBB\xDD |0
+<U9702> \xE8\xAF |0
+<U9704> \xBE\x5D |0
+<U9705> \xE8\xAD |0
+<U9706> \xBE\x5E |0
+<U9707> \xBE\x5F |0
+<U9708> \xE8\xAE |0
+<U9709> \xBE\x60 |0
+<U970B> \xEC\x51 |0
+<U970D> \xC0\x4E |0
+<U970E> \xC0\x4B |0
+<U970F> \xC0\x50 |0
+<U9710> \xEC\x53 |0
+<U9711> \xC0\x4C |0
+<U9712> \xEC\x52 |0
+<U9713> \xC0\x4F |0
+<U9716> \xC0\x4D |0
+<U9718> \xEE\xF9 |0
+<U9719> \xEE\xFB |0
+<U971C> \xC1\xF7 |0
+<U971D> \xEE\xFA |0
+<U971E> \xC1\xF8 |0
+<U971F> \xEE\xF8 |0
+<U9720> \xEE\xF7 |0
+<U9722> \xF1\x77 |0
+<U9723> \xF1\x76 |0
+<U9724> \xC2\xFC |0
+<U9725> \xF1\x78 |0
+<U9726> \xF3\x7E |0
+<U9727> \xC3\xFA |0
+<U9728> \xF3\x7D |0
+<U9729> \xF3\x7A |0
+<U972A> \xC3\xF9 |0
+<U972B> \xF3\x7B |0
+<U972C> \xF3\x7C |0
+<U972E> \xF5\x48 |0
+<U972F> \xF5\x49 |0
+<U9730> \xC4\xC5 |0
+<U9732> \xC5\x53 |0
+<U9735> \xF6\x6E |0
+<U9738> \xC5\x51 |0
+<U9739> \xC5\x52 |0
+<U973A> \xF6\x6F |0
+<U973D> \xC5\xB4 |0
+<U973E> \xC5\xB5 |0
+<U973F> \xF7\x71 |0
+<U9742> \xC6\x45 |0
+<U9743> \xF8\xCF |0
+<U9744> \xC6\x47 |0
+<U9746> \xF8\xCE |0
+<U9747> \xF8\xD0 |0
+<U9748> \xC6\x46 |0
+<U9749> \xF9\x57 |0
+<U974B> \xF9\xAD |0
+<U9752> \xAB\x43 |0
+<U9756> \xB9\x74 |0
+<U9758> \xE4\xBE |0
+<U975A> \xE8\xB0 |0
+<U975B> \xC0\x51 |0
+<U975C> \xC0\x52 |0
+<U975E> \xAB\x44 |0
+<U9760> \xBE\x61 |0
+<U9761> \xC3\xFB |0
+<U9762> \xAD\xB1 |0
+<U9766> \xC0\x53 |0
+<U9768> \xC5\xE2 |0
+<U9769> \xAD\xB2 |0
+<U976A> \xD8\x4D |0
+<U976C> \xDC\xA9 |0
+<U976E> \xDC\xAB |0
+<U9770> \xDC\xAA |0
+<U9772> \xE0\xDD |0
+<U9773> \xE0\xDA |0
+<U9774> \xB9\x75 |0
+<U9776> \xB9\x76 |0
+<U9777> \xE0\xDB |0
+<U9778> \xE0\xDC |0
+<U977A> \xE4\xC0 |0
+<U977B> \xE4\xC5 |0
+<U977C> \xBB\xDE |0
+<U977D> \xE4\xBF |0
+<U977E> \xE4\xC1 |0
+<U977F> \xE4\xC8 |0
+<U9780> \xE4\xC3 |0
+<U9781> \xE4\xC7 |0
+<U9782> \xE4\xC4 |0
+<U9783> \xE4\xC2 |0
+<U9784> \xE4\xC6 |0
+<U9785> \xBB\xDF |0
+<U9788> \xE8\xB3 |0
+<U978A> \xE8\xB1 |0
+<U978B> \xBE\x63 |0
+<U978D> \xBE\x62 |0
+<U978E> \xE8\xB2 |0
+<U978F> \xBE\x64 |0
+<U9794> \xEC\x56 |0
+<U9797> \xEC\x55 |0
+<U9798> \xC0\x54 |0
+<U9799> \xEC\x54 |0
+<U979A> \xEE\xFC |0
+<U979C> \xEE\xFE |0
+<U979D> \xEF\x41 |0
+<U979E> \xEF\x40 |0
+<U97A0> \xC1\xF9 |0
+<U97A1> \xEE\xFD |0
+<U97A2> \xF1\xA1 |0
+<U97A3> \xC2\xFD |0
+<U97A4> \xF1\x7D |0
+<U97A5> \xF1\xA2 |0
+<U97A6> \xC2\xFE |0
+<U97A8> \xF1\x7B |0
+<U97AA> \xF1\x7E |0
+<U97AB> \xF1\x7C |0
+<U97AC> \xF1\x79 |0
+<U97AD> \xC3\x40 |0
+<U97AE> \xF1\x7A |0
+<U97B3> \xF3\xA1 |0
+<U97B6> \xF3\xA3 |0
+<U97B7> \xF3\xA2 |0
+<U97B9> \xF5\x4A |0
+<U97BB> \xF5\x4B |0
+<U97BF> \xF6\x70 |0
+<U97C1> \xC5\xB7 |0
+<U97C3> \xC5\xB6 |0
+<U97C4> \xF8\x4F |0
+<U97C5> \xF8\x50 |0
+<U97C6> \xC6\x48 |0
+<U97C7> \xF8\xD1 |0
+<U97C9> \xC6\x69 |0
+<U97CB> \xAD\xB3 |0
+<U97CC> \xB6\xB4 |0
+<U97CD> \xE4\xCA |0
+<U97CE> \xE4\xC9 |0
+<U97CF> \xE8\xB5 |0
+<U97D0> \xE8\xB4 |0
+<U97D3> \xC1\xFA |0
+<U97D4> \xEF\x43 |0
+<U97D5> \xEF\x42 |0
+<U97D6> \xF1\xA5 |0
+<U97D7> \xF1\xA3 |0
+<U97D8> \xF1\xA6 |0
+<U97D9> \xF1\xA4 |0
+<U97DC> \xC3\xFC |0
+<U97DD> \xF3\xA4 |0
+<U97DE> \xF3\xA5 |0
+<U97DF> \xF3\xA6 |0
+<U97E1> \xF6\x71 |0
+<U97E3> \xF7\x72 |0
+<U97E5> \xF8\xD2 |0
+<U97ED> \xAD\xB4 |0
+<U97F0> \xEC\x57 |0
+<U97F1> \xEF\x44 |0
+<U97F3> \xAD\xB5 |0
+<U97F6> \xBB\xE0 |0
+<U97F8> \xEC\x58 |0
+<U97F9> \xC3\x41 |0
+<U97FA> \xF1\xA7 |0
+<U97FB> \xC3\xFD |0
+<U97FD> \xF5\x4C |0
+<U97FE> \xF5\x4D |0
+<U97FF> \xC5\x54 |0
+<U9800> \xF8\x51 |0
+<U9801> \xAD\xB6 |0
+<U9802> \xB3\xBB |0
+<U9803> \xB3\xBC |0
+<U9804> \xD8\x4E |0
+<U9805> \xB6\xB5 |0
+<U9806> \xB6\xB6 |0
+<U9807> \xDC\xAC |0
+<U9808> \xB6\xB7 |0
+<U980A> \xB9\x7A |0
+<U980C> \xB9\x7C |0
+<U980D> \xE0\xDF |0
+<U980E> \xE0\xE0 |0
+<U980F> \xE0\xDE |0
+<U9810> \xB9\x77 |0
+<U9811> \xB9\x78 |0
+<U9812> \xB9\x7B |0
+<U9813> \xB9\x79 |0
+<U9816> \xE4\xCB |0
+<U9817> \xBB\xE1 |0
+<U9818> \xBB\xE2 |0
+<U981B> \xE8\xBC |0
+<U981C> \xBE\x67 |0
+<U981D> \xE8\xB7 |0
+<U981E> \xE8\xB6 |0
+<U9820> \xE8\xBB |0
+<U9821> \xBE\x65 |0
+<U9824> \xC0\x5B |0
+<U9826> \xE8\xB8 |0
+<U9827> \xE8\xBD |0
+<U9828> \xE8\xBA |0
+<U9829> \xE8\xB9 |0
+<U982B> \xBE\x66 |0
+<U982D> \xC0\x59 |0
+<U982F> \xEC\x5A |0
+<U9830> \xC0\x55 |0
+<U9832> \xEC\x5B |0
+<U9835> \xEC\x59 |0
+<U9837> \xC0\x58 |0
+<U9838> \xC0\x56 |0
+<U9839> \xC0\x5A |0
+<U983B> \xC0\x57 |0
+<U9841> \xEF\x45 |0
+<U9843> \xEF\x4A |0
+<U9844> \xEF\x46 |0
+<U9845> \xEF\x49 |0
+<U9846> \xC1\xFB |0
+<U9848> \xED\xD4 |0
+<U9849> \xEF\x48 |0
+<U984A> \xEF\x47 |0
+<U984C> \xC3\x44 |0
+<U984D> \xC3\x42 |0
+<U984E> \xC3\x45 |0
+<U984F> \xC3\x43 |0
+<U9850> \xF1\xA8 |0
+<U9851> \xF1\xA9 |0
+<U9852> \xF1\xAA |0
+<U9853> \xC3\x46 |0
+<U9857> \xF3\xAA |0
+<U9858> \xC4\x40 |0
+<U9859> \xF3\xA8 |0
+<U985B> \xC4\x41 |0
+<U985C> \xF3\xA7 |0
+<U985D> \xF3\xA9 |0
+<U985E> \xC3\xFE |0
+<U985F> \xF5\x51 |0
+<U9860> \xF5\x4E |0
+<U9862> \xF5\x4F |0
+<U9863> \xF5\x50 |0
+<U9864> \xF6\x72 |0
+<U9865> \xC5\x56 |0
+<U9867> \xC5\x55 |0
+<U9869> \xF7\x74 |0
+<U986A> \xF7\x73 |0
+<U986B> \xC5\xB8 |0
+<U986F> \xC5\xE3 |0
+<U9870> \xC6\x49 |0
+<U9871> \xC6\x60 |0
+<U9872> \xF9\x58 |0
+<U9873> \xF9\xAE |0
+<U9874> \xF9\xAF |0
+<U98A8> \xAD\xB7 |0
+<U98A9> \xDC\xAD |0
+<U98AC> \xE0\xE1 |0
+<U98AD> \xE4\xCC |0
+<U98AE> \xE4\xCD |0
+<U98AF> \xBB\xE3 |0
+<U98B1> \xBB\xE4 |0
+<U98B2> \xE8\xBE |0
+<U98B3> \xBE\x68 |0
+<U98B6> \xC1\xFC |0
+<U98B8> \xF1\xAB |0
+<U98BA> \xC3\x47 |0
+<U98BB> \xF3\xAD |0
+<U98BC> \xC4\x42 |0
+<U98BD> \xF3\xAC |0
+<U98BE> \xF3\xAE |0
+<U98BF> \xF3\xAB |0
+<U98C0> \xF6\x75 |0
+<U98C1> \xF5\x52 |0
+<U98C2> \xF5\x53 |0
+<U98C4> \xC4\xC6 |0
+<U98C6> \xF6\x74 |0
+<U98C9> \xF6\x73 |0
+<U98CB> \xF7\x75 |0
+<U98CC> \xF9\xB0 |0
+<U98DB> \xAD\xB8 |0
+<U98DF> \xAD\xB9 |0
+<U98E2> \xB0\xA7 |0
+<U98E3> \xD4\x48 |0
+<U98E5> \xD8\x4F |0
+<U98E7> \xB6\xB8 |0
+<U98E9> \xB6\xBB |0
+<U98EA> \xB6\xB9 |0
+<U98EB> \xDC\xAE |0
+<U98ED> \xB6\xBD |0
+<U98EF> \xB6\xBA |0
+<U98F2> \xB6\xBC |0
+<U98F4> \xB9\x7E |0
+<U98F6> \xE0\xE2 |0
+<U98F9> \xE0\xE3 |0
+<U98FA> \xE8\xC0 |0
+<U98FC> \xB9\x7D |0
+<U98FD> \xB9\xA1 |0
+<U98FE> \xB9\xA2 |0
+<U9900> \xE4\xCF |0
+<U9902> \xE4\xCE |0
+<U9903> \xBB\xE5 |0
+<U9905> \xBB\xE6 |0
+<U9907> \xE4\xD0 |0
+<U9908> \xE8\xBF |0
+<U9909> \xBB\xE8 |0
+<U990A> \xBE\x69 |0
+<U990C> \xBB\xE7 |0
+<U9910> \xC0\x5C |0
+<U9911> \xE8\xC1 |0
+<U9912> \xBE\x6B |0
+<U9913> \xBE\x6A |0
+<U9914> \xE8\xC2 |0
+<U9915> \xE8\xC5 |0
+<U9916> \xE8\xC3 |0
+<U9917> \xE8\xC4 |0
+<U9918> \xBE\x6C |0
+<U991A> \xC0\x61 |0
+<U991B> \xC0\x5F |0
+<U991E> \xC0\x5E |0
+<U991F> \xEC\x5D |0
+<U9921> \xC0\x60 |0
+<U9924> \xEC\x5C |0
+<U9925> \xEF\x4B |0
+<U9927> \xEC\x5E |0
+<U9928> \xC0\x5D |0
+<U9929> \xEC\x5F |0
+<U992A> \xEF\x4E |0
+<U992B> \xEF\x4C |0
+<U992C> \xEF\x4D |0
+<U992D> \xEF\x52 |0
+<U992E> \xC3\x4B |0
+<U992F> \xEF\x51 |0
+<U9930> \xEF\x54 |0
+<U9931> \xEF\x53 |0
+<U9932> \xEF\x50 |0
+<U9933> \xEF\x4F |0
+<U9935> \xC1\xFD |0
+<U993A> \xF1\xAE |0
+<U993C> \xF1\xAD |0
+<U993D> \xC3\x4A |0
+<U993E> \xC3\x48 |0
+<U993F> \xC3\x49 |0
+<U9941> \xF1\xAC |0
+<U9943> \xF3\xB1 |0
+<U9945> \xC4\x43 |0
+<U9947> \xF3\xB0 |0
+<U9948> \xF3\xAF |0
+<U9949> \xC4\x44 |0
+<U994B> \xF5\x58 |0
+<U994C> \xF5\x57 |0
+<U994E> \xF5\x55 |0
+<U9950> \xF5\x54 |0
+<U9951> \xC4\xC8 |0
+<U9952> \xC4\xC7 |0
+<U9953> \xF5\x59 |0
+<U9954> \xF7\x76 |0
+<U9955> \xC5\xB9 |0
+<U9956> \xF6\x77 |0
+<U9957> \xC5\x57 |0
+<U9958> \xF6\x76 |0
+<U9959> \xF5\x56 |0
+<U995B> \xF7\x77 |0
+<U995C> \xC5\xE4 |0
+<U995E> \xC6\x61 |0
+<U995F> \xF9\x59 |0
+<U9961> \xF9\xB1 |0
+<U9996> \xAD\xBA |0
+<U9997> \xD8\x50 |0
+<U9998> \xEF\x55 |0
+<U9999> \xAD\xBB |0
+<U999C> \xE4\xD2 |0
+<U999D> \xE4\xD1 |0
+<U999E> \xEC\x60 |0
+<U99A1> \xEF\x57 |0
+<U99A3> \xEF\x56 |0
+<U99A5> \xC3\x4C |0
+<U99A6> \xF3\xB2 |0
+<U99A7> \xF3\xB3 |0
+<U99A8> \xC4\xC9 |0
+<U99AB> \xF9\xB2 |0
+<U99AC> \xB0\xA8 |0
+<U99AD> \xB6\xBF |0
+<U99AE> \xB6\xBE |0
+<U99AF> \xE0\xE4 |0
+<U99B0> \xE0\xE6 |0
+<U99B1> \xB9\xA4 |0
+<U99B2> \xE0\xE5 |0
+<U99B3> \xB9\xA3 |0
+<U99B4> \xB9\xA5 |0
+<U99B5> \xE0\xE7 |0
+<U99B9> \xE4\xD4 |0
+<U99BA> \xE4\xD6 |0
+<U99BB> \xE4\xD5 |0
+<U99BD> \xE4\xD8 |0
+<U99C1> \xBB\xE9 |0
+<U99C2> \xE4\xD7 |0
+<U99C3> \xE4\xD3 |0
+<U99C7> \xE4\xD9 |0
+<U99C9> \xE8\xCC |0
+<U99CB> \xE8\xCF |0
+<U99CC> \xE8\xD1 |0
+<U99CD> \xE8\xC7 |0
+<U99CE> \xE8\xCB |0
+<U99CF> \xE8\xC8 |0
+<U99D0> \xBE\x6E |0
+<U99D1> \xBE\x71 |0
+<U99D2> \xBE\x73 |0
+<U99D3> \xE8\xC9 |0
+<U99D4> \xE8\xCA |0
+<U99D5> \xBE\x72 |0
+<U99D6> \xE8\xCD |0
+<U99D7> \xE8\xD0 |0
+<U99D8> \xE8\xCE |0
+<U99D9> \xBE\x74 |0
+<U99DB> \xBE\x70 |0
+<U99DC> \xE8\xC6 |0
+<U99DD> \xBE\x6D |0
+<U99DF> \xBE\x6F |0
+<U99E2> \xC0\x63 |0
+<U99E3> \xEC\x66 |0
+<U99E4> \xEC\x64 |0
+<U99E5> \xEC\x63 |0
+<U99E7> \xEC\x69 |0
+<U99E9> \xEC\x68 |0
+<U99EA> \xEC\x67 |0
+<U99EC> \xEC\x62 |0
+<U99ED> \xC0\x62 |0
+<U99EE> \xEC\x61 |0
+<U99F0> \xEC\x65 |0
+<U99F1> \xC0\x64 |0
+<U99F4> \xEF\x5A |0
+<U99F6> \xEF\x5E |0
+<U99F7> \xEF\x5B |0
+<U99F8> \xEF\x5D |0
+<U99F9> \xEF\x5C |0
+<U99FA> \xEF\x59 |0
+<U99FB> \xEF\x5F |0
+<U99FC> \xEF\x62 |0
+<U99FD> \xEF\x60 |0
+<U99FE> \xEF\x61 |0
+<U99FF> \xC2\x40 |0
+<U9A01> \xC1\xFE |0
+<U9A02> \xEF\x58 |0
+<U9A03> \xEF\x63 |0
+<U9A04> \xF1\xB3 |0
+<U9A05> \xF1\xB6 |0
+<U9A06> \xF1\xB8 |0
+<U9A07> \xF1\xB7 |0
+<U9A09> \xF1\xB1 |0
+<U9A0A> \xF1\xB5 |0
+<U9A0B> \xF1\xB0 |0
+<U9A0D> \xF1\xB2 |0
+<U9A0E> \xC3\x4D |0
+<U9A0F> \xF1\xAF |0
+<U9A11> \xF1\xB4 |0
+<U9A14> \xF3\xC0 |0
+<U9A15> \xF3\xB5 |0
+<U9A16> \xC4\x45 |0
+<U9A19> \xC4\x46 |0
+<U9A1A> \xF3\xB4 |0
+<U9A1B> \xF3\xB9 |0
+<U9A1C> \xF3\xBF |0
+<U9A1D> \xF3\xB7 |0
+<U9A1E> \xF3\xBE |0
+<U9A20> \xF3\xBB |0
+<U9A22> \xF3\xBA |0
+<U9A23> \xF3\xBD |0
+<U9A24> \xF3\xB8 |0
+<U9A25> \xF3\xB6 |0
+<U9A27> \xF3\xBC |0
+<U9A29> \xF5\x60 |0
+<U9A2A> \xF5\x5E |0
+<U9A2B> \xC4\xCA |0
+<U9A2C> \xF5\x5D |0
+<U9A2D> \xF5\x63 |0
+<U9A2E> \xF5\x61 |0
+<U9A30> \xC4\xCB |0
+<U9A31> \xF5\x5C |0
+<U9A32> \xF5\x5A |0
+<U9A34> \xF5\x5B |0
+<U9A35> \xC4\xCD |0
+<U9A36> \xF5\x5F |0
+<U9A37> \xC4\xCC |0
+<U9A38> \xF5\x62 |0
+<U9A39> \xF6\x78 |0
+<U9A3A> \xF6\x7E |0
+<U9A3D> \xF6\x79 |0
+<U9A3E> \xC5\x5B |0
+<U9A3F> \xF6\xA1 |0
+<U9A40> \xC5\x5A |0
+<U9A41> \xF6\x7D |0
+<U9A42> \xF6\x7C |0
+<U9A43> \xC5\x59 |0
+<U9A44> \xF6\x7B |0
+<U9A45> \xC5\x58 |0
+<U9A46> \xF6\x7A |0
+<U9A48> \xF7\x7D |0
+<U9A49> \xF7\xA1 |0
+<U9A4A> \xF7\x7E |0
+<U9A4C> \xF7\x7B |0
+<U9A4D> \xC5\xBB |0
+<U9A4E> \xF7\x78 |0
+<U9A4F> \xF7\x7C |0
+<U9A50> \xF7\xA3 |0
+<U9A52> \xF7\xA2 |0
+<U9A53> \xF7\x79 |0
+<U9A54> \xF7\x7A |0
+<U9A55> \xC5\xBA |0
+<U9A56> \xF8\x52 |0
+<U9A57> \xC5\xE7 |0
+<U9A59> \xF8\x53 |0
+<U9A5A> \xC5\xE5 |0
+<U9A5B> \xC5\xE6 |0
+<U9A5E> \xF8\xD3 |0
+<U9A5F> \xC6\x4A |0
+<U9A60> \xF9\x76 |0
+<U9A62> \xC6\x6A |0
+<U9A64> \xF9\xB3 |0
+<U9A65> \xC6\x6B |0
+<U9A66> \xF9\xB4 |0
+<U9A67> \xF9\xB5 |0
+<U9A68> \xF9\xC3 |0
+<U9A69> \xF9\xC2 |0
+<U9A6A> \xC6\x7A |0
+<U9A6B> \xF9\xCD |0
+<U9AA8> \xB0\xA9 |0
+<U9AAB> \xE0\xE9 |0
+<U9AAD> \xE0\xE8 |0
+<U9AAF> \xBB\xEA |0
+<U9AB0> \xBB\xEB |0
+<U9AB1> \xE4\xDA |0
+<U9AB3> \xE8\xD2 |0
+<U9AB4> \xEC\x6C |0
+<U9AB7> \xBE\x75 |0
+<U9AB8> \xC0\x65 |0
+<U9AB9> \xEC\x6A |0
+<U9ABB> \xEC\x6D |0
+<U9ABC> \xC0\x66 |0
+<U9ABE> \xEF\x64 |0
+<U9ABF> \xEC\x6B |0
+<U9AC0> \xF1\xB9 |0
+<U9AC1> \xC3\x4E |0
+<U9AC2> \xF3\xC1 |0
+<U9AC6> \xF5\x66 |0
+<U9AC7> \xF5\x64 |0
+<U9ACA> \xF5\x65 |0
+<U9ACD> \xF6\xA2 |0
+<U9ACF> \xC5\x5C |0
+<U9AD0> \xF7\xA4 |0
+<U9AD1> \xC5\xEA |0
+<U9AD2> \xC5\xBC |0
+<U9AD3> \xC5\xE8 |0
+<U9AD4> \xC5\xE9 |0
+<U9AD5> \xF8\xD4 |0
+<U9AD6> \xC6\x62 |0
+<U9AD8> \xB0\xAA |0
+<U9ADC> \xF1\xBA |0
+<U9ADF> \xD4\x49 |0
+<U9AE1> \xB9\xA6 |0
+<U9AE3> \xE4\xDB |0
+<U9AE6> \xBB\xEC |0
+<U9AE7> \xE4\xDC |0
+<U9AEB> \xE8\xD4 |0
+<U9AEC> \xE8\xD3 |0
+<U9AED> \xC0\x68 |0
+<U9AEE> \xBE\x76 |0
+<U9AEF> \xBE\x77 |0
+<U9AF1> \xE8\xD7 |0
+<U9AF2> \xE8\xD6 |0
+<U9AF3> \xE8\xD5 |0
+<U9AF6> \xEC\x6E |0
+<U9AF7> \xEC\x71 |0
+<U9AF9> \xEC\x70 |0
+<U9AFA> \xEC\x6F |0
+<U9AFB> \xC0\x67 |0
+<U9AFC> \xEF\x68 |0
+<U9AFD> \xEF\x66 |0
+<U9AFE> \xEF\x65 |0
+<U9B01> \xEF\x67 |0
+<U9B03> \xC3\x4F |0
+<U9B04> \xF1\xBC |0
+<U9B05> \xF1\xBD |0
+<U9B06> \xC3\x50 |0
+<U9B08> \xF1\xBB |0
+<U9B0A> \xF3\xC3 |0
+<U9B0B> \xF3\xC2 |0
+<U9B0C> \xF3\xC5 |0
+<U9B0D> \xC4\x47 |0
+<U9B0E> \xF3\xC4 |0
+<U9B10> \xF5\x67 |0
+<U9B11> \xF5\x69 |0
+<U9B12> \xF5\x68 |0
+<U9B15> \xF6\xA3 |0
+<U9B16> \xF6\xA6 |0
+<U9B17> \xF6\xA4 |0
+<U9B18> \xF6\xA5 |0
+<U9B19> \xF7\xA5 |0
+<U9B1A> \xC5\xBD |0
+<U9B1E> \xF8\x54 |0
+<U9B1F> \xF8\x55 |0
+<U9B20> \xF8\x56 |0
+<U9B22> \xC6\x4B |0
+<U9B23> \xC6\x63 |0
+<U9B24> \xF9\xB6 |0
+<U9B25> \xB0\xAB |0
+<U9B27> \xBE\x78 |0
+<U9B28> \xC0\x69 |0
+<U9B29> \xF1\xBE |0
+<U9B2B> \xF7\xA6 |0
+<U9B2E> \xF9\xC4 |0
+<U9B2F> \xD4\x4A |0
+<U9B31> \xC6\x7B |0
+<U9B32> \xB0\xAC |0
+<U9B33> \xEC\x72 |0
+<U9B35> \xF1\xBF |0
+<U9B37> \xF3\xC6 |0
+<U9B3A> \xF6\xA7 |0
+<U9B3B> \xF7\xA7 |0
+<U9B3C> \xB0\xAD |0
+<U9B3E> \xE4\xDD |0
+<U9B3F> \xE4\xDE |0
+<U9B41> \xBB\xED |0
+<U9B42> \xBB\xEE |0
+<U9B43> \xE8\xD9 |0
+<U9B44> \xBE\x7A |0
+<U9B45> \xBE\x79 |0
+<U9B46> \xE8\xD8 |0
+<U9B48> \xEF\x69 |0
+<U9B4A> \xF1\xC0 |0
+<U9B4B> \xF1\xC2 |0
+<U9B4C> \xF1\xC1 |0
+<U9B4D> \xC3\x53 |0
+<U9B4E> \xC3\x52 |0
+<U9B4F> \xC3\x51 |0
+<U9B51> \xC5\x5E |0
+<U9B52> \xF6\xA8 |0
+<U9B54> \xC5\x5D |0
+<U9B55> \xF7\xA9 |0
+<U9B56> \xF7\xA8 |0
+<U9B58> \xC6\x4C |0
+<U9B59> \xF8\xD5 |0
+<U9B5A> \xB3\xBD |0
+<U9B5B> \xE0\xEA |0
+<U9B5F> \xE4\xE1 |0
+<U9B60> \xE4\xDF |0
+<U9B61> \xE4\xE0 |0
+<U9B64> \xE8\xE2 |0
+<U9B66> \xE8\xDD |0
+<U9B67> \xE8\xDA |0
+<U9B68> \xE8\xE1 |0
+<U9B6C> \xE8\xE3 |0
+<U9B6F> \xBE\x7C |0
+<U9B70> \xE8\xE0 |0
+<U9B71> \xE8\xDC |0
+<U9B74> \xE8\xDB |0
+<U9B75> \xE8\xDF |0
+<U9B76> \xE8\xDE |0
+<U9B77> \xBE\x7B |0
+<U9B7A> \xEC\x7D |0
+<U9B7B> \xEC\x78 |0
+<U9B7C> \xEC\x76 |0
+<U9B7D> \xEC\xA1 |0
+<U9B7E> \xEC\x77 |0
+<U9B80> \xEC\x73 |0
+<U9B82> \xEC\x79 |0
+<U9B85> \xEC\x74 |0
+<U9B86> \xEF\x72 |0
+<U9B87> \xEC\x75 |0
+<U9B88> \xEC\xA2 |0
+<U9B90> \xEC\x7C |0
+<U9B91> \xC0\x6A |0
+<U9B92> \xEC\x7B |0
+<U9B93> \xEC\x7A |0
+<U9B95> \xEC\x7E |0
+<U9B9A> \xEF\x6A |0
+<U9B9B> \xEF\x6D |0
+<U9B9E> \xEF\x6C |0
+<U9BA0> \xEF\x74 |0
+<U9BA1> \xEF\x6F |0
+<U9BA2> \xEF\x73 |0
+<U9BA4> \xEF\x71 |0
+<U9BA5> \xEF\x70 |0
+<U9BA6> \xEF\x6E |0
+<U9BA8> \xEF\x6B |0
+<U9BAA> \xC2\x43 |0
+<U9BAB> \xC2\x42 |0
+<U9BAD> \xC2\x44 |0
+<U9BAE> \xC2\x41 |0
+<U9BAF> \xEF\x75 |0
+<U9BB5> \xF1\xC8 |0
+<U9BB6> \xF1\xCB |0
+<U9BB8> \xF1\xC9 |0
+<U9BB9> \xF1\xCD |0
+<U9BBD> \xF1\xCE |0
+<U9BBF> \xF1\xC6 |0
+<U9BC0> \xC3\x58 |0
+<U9BC1> \xF1\xC7 |0
+<U9BC3> \xF1\xC5 |0
+<U9BC4> \xF1\xCC |0
+<U9BC6> \xF1\xC4 |0
+<U9BC7> \xF1\xC3 |0
+<U9BC8> \xC3\x57 |0
+<U9BC9> \xC3\x55 |0
+<U9BCA> \xC3\x54 |0
+<U9BD3> \xF1\xCA |0
+<U9BD4> \xF3\xCF |0
+<U9BD5> \xF3\xD5 |0
+<U9BD6> \xC4\x4A |0
+<U9BD7> \xF3\xD0 |0
+<U9BD9> \xF3\xD3 |0
+<U9BDA> \xF3\xD7 |0
+<U9BDB> \xC4\x4B |0
+<U9BDC> \xF3\xD2 |0
+<U9BDE> \xF3\xCA |0
+<U9BE0> \xF3\xC9 |0
+<U9BE1> \xF3\xD6 |0
+<U9BE2> \xF3\xCD |0
+<U9BE4> \xF3\xCB |0
+<U9BE5> \xF3\xD4 |0
+<U9BE6> \xF3\xCC |0
+<U9BE7> \xC4\x49 |0
+<U9BE8> \xC4\x48 |0
+<U9BEA> \xF3\xC7 |0
+<U9BEB> \xF3\xC8 |0
+<U9BEC> \xF3\xD1 |0
+<U9BF0> \xF3\xCE |0
+<U9BF7> \xF5\x6C |0
+<U9BF8> \xF5\x6F |0
+<U9BFD> \xC3\x56 |0
+<U9C05> \xF5\x6D |0
+<U9C06> \xF5\x73 |0
+<U9C07> \xF5\x71 |0
+<U9C08> \xF5\x6B |0
+<U9C09> \xF5\x76 |0
+<U9C0B> \xF5\x6A |0
+<U9C0D> \xC4\xCF |0
+<U9C0E> \xF5\x72 |0
+<U9C12> \xF5\x6E |0
+<U9C13> \xC4\xCE |0
+<U9C14> \xF5\x75 |0
+<U9C17> \xF5\x74 |0
+<U9C1C> \xF6\xAB |0
+<U9C1D> \xF6\xAA |0
+<U9C21> \xF6\xB1 |0
+<U9C23> \xF6\xAD |0
+<U9C24> \xF6\xB0 |0
+<U9C25> \xC5\x60 |0
+<U9C28> \xF6\xAE |0
+<U9C29> \xF6\xAF |0
+<U9C2B> \xF6\xA9 |0
+<U9C2C> \xF6\xAC |0
+<U9C2D> \xC5\x5F |0
+<U9C31> \xC5\xBF |0
+<U9C32> \xF7\xB4 |0
+<U9C33> \xF7\xAF |0
+<U9C34> \xF7\xB3 |0
+<U9C36> \xF7\xB6 |0
+<U9C37> \xF7\xB2 |0
+<U9C39> \xF7\xAE |0
+<U9C3B> \xC5\xC1 |0
+<U9C3C> \xF7\xB1 |0
+<U9C3D> \xF7\xB5 |0
+<U9C3E> \xC5\xC0 |0
+<U9C3F> \xF7\xAC |0
+<U9C40> \xF5\x70 |0
+<U9C41> \xF7\xB0 |0
+<U9C44> \xF7\xAD |0
+<U9C46> \xF7\xAA |0
+<U9C48> \xF7\xAB |0
+<U9C49> \xC5\xBE |0
+<U9C4A> \xF8\x5A |0
+<U9C4B> \xF8\x5C |0
+<U9C4C> \xF8\x5F |0
+<U9C4D> \xF8\x5B |0
+<U9C4E> \xF8\x60 |0
+<U9C50> \xF8\x59 |0
+<U9C52> \xF8\x57 |0
+<U9C54> \xC5\xEB |0
+<U9C55> \xF8\x5D |0
+<U9C56> \xC5\xED |0
+<U9C57> \xC5\xEC |0
+<U9C58> \xF8\x58 |0
+<U9C59> \xF8\x5E |0
+<U9C5E> \xF8\xDA |0
+<U9C5F> \xC6\x4D |0
+<U9C60> \xF8\xDB |0
+<U9C62> \xF8\xD9 |0
+<U9C63> \xF8\xD6 |0
+<U9C66> \xF8\xD8 |0
+<U9C67> \xF8\xD7 |0
+<U9C68> \xF9\x5A |0
+<U9C6D> \xF9\x5C |0
+<U9C6E> \xF9\x5B |0
+<U9C71> \xF9\x79 |0
+<U9C73> \xF9\x78 |0
+<U9C74> \xF9\x77 |0
+<U9C75> \xF9\x7A |0
+<U9C77> \xC6\x73 |0
+<U9C78> \xC6\x74 |0
+<U9C79> \xF9\xCA |0
+<U9C7A> \xF9\xCE |0
+<U9CE5> \xB3\xBE |0
+<U9CE6> \xDC\xAF |0
+<U9CE7> \xE0\xED |0
+<U9CE9> \xB9\xA7 |0
+<U9CEA> \xE0\xEB |0
+<U9CED> \xE0\xEC |0
+<U9CF1> \xE4\xE2 |0
+<U9CF2> \xE4\xE3 |0
+<U9CF3> \xBB\xF1 |0
+<U9CF4> \xBB\xEF |0
+<U9CF5> \xE4\xE4 |0
+<U9CF6> \xBB\xF0 |0
+<U9CF7> \xE8\xE8 |0
+<U9CF9> \xE8\xEB |0
+<U9CFA> \xE8\xE5 |0
+<U9CFB> \xE8\xEC |0
+<U9CFC> \xE8\xE4 |0
+<U9CFD> \xE8\xE6 |0
+<U9CFF> \xE8\xE7 |0
+<U9D00> \xE8\xEA |0
+<U9D03> \xBE\xA1 |0
+<U9D04> \xE8\xEF |0
+<U9D05> \xE8\xEE |0
+<U9D06> \xBE\x7D |0
+<U9D07> \xE8\xE9 |0
+<U9D08> \xE8\xED |0
+<U9D09> \xBE\x7E |0
+<U9D10> \xEC\xAC |0
+<U9D12> \xC0\x6F |0
+<U9D14> \xEC\xA7 |0
+<U9D15> \xC0\x6B |0
+<U9D17> \xEC\xA4 |0
+<U9D18> \xEC\xAA |0
+<U9D19> \xEC\xAD |0
+<U9D1B> \xC0\x70 |0
+<U9D1D> \xEC\xA9 |0
+<U9D1E> \xEC\xA6 |0
+<U9D1F> \xEC\xAE |0
+<U9D20> \xEC\xA5 |0
+<U9D22> \xEC\xAB |0
+<U9D23> \xC0\x6C |0
+<U9D25> \xEC\xA3 |0
+<U9D26> \xC0\x6D |0
+<U9D28> \xC0\x6E |0
+<U9D29> \xEC\xA8 |0
+<U9D2D> \xEF\xA9 |0
+<U9D2E> \xEF\x7A |0
+<U9D2F> \xEF\x7B |0
+<U9D30> \xEF\x7E |0
+<U9D31> \xEF\x7C |0
+<U9D33> \xEF\x76 |0
+<U9D36> \xEF\x79 |0
+<U9D37> \xEF\xA5 |0
+<U9D38> \xEF\x7D |0
+<U9D3B> \xC2\x45 |0
+<U9D3D> \xEF\xA7 |0
+<U9D3E> \xEF\xA4 |0
+<U9D3F> \xC2\x46 |0
+<U9D40> \xEF\xA6 |0
+<U9D41> \xEF\x77 |0
+<U9D42> \xEF\xA2 |0
+<U9D43> \xEF\xA3 |0
+<U9D45> \xEF\xA1 |0
+<U9D4A> \xF1\xD2 |0
+<U9D4B> \xF1\xD4 |0
+<U9D4C> \xF1\xD7 |0
+<U9D4F> \xF1\xD1 |0
+<U9D51> \xC3\x59 |0
+<U9D52> \xF1\xD9 |0
+<U9D53> \xF1\xD0 |0
+<U9D54> \xF1\xDA |0
+<U9D56> \xF1\xD6 |0
+<U9D57> \xF1\xD8 |0
+<U9D58> \xF1\xDC |0
+<U9D59> \xF1\xD5 |0
+<U9D5A> \xF1\xDD |0
+<U9D5B> \xF1\xD3 |0
+<U9D5C> \xF1\xCF |0
+<U9D5D> \xC3\x5A |0
+<U9D5F> \xF1\xDB |0
+<U9D60> \xC3\x5B |0
+<U9D61> \xC4\x4D |0
+<U9D67> \xEF\x78 |0
+<U9D68> \xF3\xF1 |0
+<U9D69> \xF3\xE8 |0
+<U9D6A> \xC4\x4F |0
+<U9D6B> \xF3\xE4 |0
+<U9D6C> \xC4\x50 |0
+<U9D6F> \xF3\xED |0
+<U9D70> \xF3\xE7 |0
+<U9D71> \xF3\xDD |0
+<U9D72> \xC4\x4E |0
+<U9D73> \xF3\xEA |0
+<U9D74> \xF3\xE5 |0
+<U9D75> \xF3\xE6 |0
+<U9D77> \xF3\xD8 |0
+<U9D78> \xF3\xDF |0
+<U9D79> \xF3\xEE |0
+<U9D7B> \xF3\xEB |0
+<U9D7D> \xF3\xE3 |0
+<U9D7F> \xF3\xEF |0
+<U9D80> \xF3\xDE |0
+<U9D81> \xF3\xD9 |0
+<U9D82> \xF3\xEC |0
+<U9D84> \xF3\xDB |0
+<U9D85> \xF3\xE9 |0
+<U9D86> \xF3\xE0 |0
+<U9D87> \xF3\xF0 |0
+<U9D88> \xF3\xDC |0
+<U9D89> \xC4\x4C |0
+<U9D8A> \xF3\xDA |0
+<U9D8B> \xF3\xE1 |0
+<U9D8C> \xF3\xE2 |0
+<U9D90> \xF5\x7D |0
+<U9D92> \xF5\x7B |0
+<U9D94> \xF5\xA2 |0
+<U9D96> \xF5\xAE |0
+<U9D97> \xF5\xA5 |0
+<U9D98> \xF5\x7C |0
+<U9D99> \xF5\x78 |0
+<U9D9A> \xF5\xA7 |0
+<U9D9B> \xF5\x7E |0
+<U9D9C> \xF5\xA3 |0
+<U9D9D> \xF5\x7A |0
+<U9D9E> \xF5\xAA |0
+<U9D9F> \xF5\x77 |0
+<U9DA0> \xF5\xA1 |0
+<U9DA1> \xF5\xA6 |0
+<U9DA2> \xF5\xA8 |0
+<U9DA3> \xF5\xAB |0
+<U9DA4> \xF5\x79 |0
+<U9DA6> \xF5\xAF |0
+<U9DA7> \xF5\xB0 |0
+<U9DA8> \xF5\xA9 |0
+<U9DA9> \xF5\xAD |0
+<U9DAA> \xF5\xA4 |0
+<U9DAC> \xF6\xC1 |0
+<U9DAD> \xF6\xC4 |0
+<U9DAF> \xC5\x61 |0
+<U9DB1> \xF6\xC3 |0
+<U9DB2> \xF6\xC8 |0
+<U9DB3> \xF6\xC6 |0
+<U9DB4> \xC5\x62 |0
+<U9DB5> \xF6\xBD |0
+<U9DB6> \xF6\xB3 |0
+<U9DB7> \xF6\xB2 |0
+<U9DB8> \xC5\x64 |0
+<U9DB9> \xF6\xBF |0
+<U9DBA> \xF6\xC0 |0
+<U9DBB> \xF6\xBC |0
+<U9DBC> \xF6\xB4 |0
+<U9DBE> \xF6\xB9 |0
+<U9DBF> \xF5\xAC |0
+<U9DC1> \xF6\xB5 |0
+<U9DC2> \xC5\x63 |0
+<U9DC3> \xF6\xBB |0
+<U9DC5> \xF6\xBA |0
+<U9DC7> \xF6\xB6 |0
+<U9DC8> \xF6\xC2 |0
+<U9DCA> \xF6\xB7 |0
+<U9DCB> \xF7\xBB |0
+<U9DCC> \xF6\xC5 |0
+<U9DCD> \xF6\xC7 |0
+<U9DCE> \xF6\xBE |0
+<U9DCF> \xF6\xB8 |0
+<U9DD0> \xF7\xBC |0
+<U9DD1> \xF7\xBE |0
+<U9DD2> \xF7\xB8 |0
+<U9DD3> \xC5\xC2 |0
+<U9DD5> \xF7\xC5 |0
+<U9DD6> \xF7\xC3 |0
+<U9DD7> \xC5\xC3 |0
+<U9DD8> \xF7\xC2 |0
+<U9DD9> \xF7\xC1 |0
+<U9DDA> \xF7\xBA |0
+<U9DDB> \xF7\xB7 |0
+<U9DDC> \xF7\xBD |0
+<U9DDD> \xF7\xC6 |0
+<U9DDE> \xF7\xB9 |0
+<U9DDF> \xF7\xBF |0
+<U9DE1> \xF8\x69 |0
+<U9DE2> \xF8\x6E |0
+<U9DE3> \xF8\x64 |0
+<U9DE4> \xF8\x67 |0
+<U9DE5> \xC5\xEE |0
+<U9DE6> \xF8\x6B |0
+<U9DE8> \xF8\x72 |0
+<U9DE9> \xF7\xC0 |0
+<U9DEB> \xF8\x65 |0
+<U9DEC> \xF8\x6F |0
+<U9DED> \xF8\x73 |0
+<U9DEE> \xF8\x6A |0
+<U9DEF> \xF8\x63 |0
+<U9DF0> \xF8\x6D |0
+<U9DF2> \xF8\x6C |0
+<U9DF3> \xF8\x71 |0
+<U9DF4> \xF8\x70 |0
+<U9DF5> \xF7\xC4 |0
+<U9DF6> \xF8\x68 |0
+<U9DF7> \xF8\x62 |0
+<U9DF8> \xF8\x66 |0
+<U9DF9> \xC6\x4E |0
+<U9DFA> \xC6\x4F |0
+<U9DFB> \xF8\x61 |0
+<U9DFD> \xF8\xE6 |0
+<U9DFE> \xF8\xDD |0
+<U9DFF> \xF8\xE5 |0
+<U9E00> \xF8\xE2 |0
+<U9E01> \xF8\xE3 |0
+<U9E02> \xF8\xDC |0
+<U9E03> \xF8\xDF |0
+<U9E04> \xF8\xE7 |0
+<U9E05> \xF8\xE1 |0
+<U9E06> \xF8\xE0 |0
+<U9E07> \xF8\xDE |0
+<U9E09> \xF8\xE4 |0
+<U9E0B> \xF9\x5D |0
+<U9E0D> \xF9\x5E |0
+<U9E0F> \xF9\x60 |0
+<U9E10> \xF9\x5F |0
+<U9E11> \xF9\x62 |0
+<U9E12> \xF9\x61 |0
+<U9E13> \xF9\x7C |0
+<U9E14> \xF9\x7B |0
+<U9E15> \xF9\xB7 |0
+<U9E17> \xF9\xB8 |0
+<U9E19> \xF9\xC5 |0
+<U9E1A> \xC6\x78 |0
+<U9E1B> \xC6\x7C |0
+<U9E1D> \xF9\xCF |0
+<U9E1E> \xC6\x7D |0
+<U9E75> \xB3\xBF |0
+<U9E79> \xC4\xD0 |0
+<U9E7A> \xF6\xC9 |0
+<U9E7C> \xC6\x50 |0
+<U9E7D> \xC6\x51 |0
+<U9E7F> \xB3\xC0 |0
+<U9E80> \xE0\xEE |0
+<U9E82> \xB9\xA8 |0
+<U9E83> \xE8\xF0 |0
+<U9E86> \xEC\xB0 |0
+<U9E87> \xEC\xB1 |0
+<U9E88> \xEC\xAF |0
+<U9E89> \xEF\xAB |0
+<U9E8A> \xEF\xAA |0
+<U9E8B> \xC2\x47 |0
+<U9E8C> \xF1\xDF |0
+<U9E8D> \xEF\xAC |0
+<U9E8E> \xF1\xDE |0
+<U9E91> \xF3\xF3 |0
+<U9E92> \xC4\x51 |0
+<U9E93> \xC4\x53 |0
+<U9E94> \xF3\xF2 |0
+<U9E97> \xC4\x52 |0
+<U9E99> \xF5\xB1 |0
+<U9E9A> \xF5\xB3 |0
+<U9E9B> \xF5\xB2 |0
+<U9E9C> \xF6\xCA |0
+<U9E9D> \xC5\x65 |0
+<U9E9F> \xC5\xEF |0
+<U9EA0> \xF8\xE8 |0
+<U9EA1> \xF9\x63 |0
+<U9EA4> \xF9\xD2 |0
+<U9EA5> \xB3\xC1 |0
+<U9EA7> \xE4\xE5 |0
+<U9EA9> \xBE\xA2 |0
+<U9EAD> \xEC\xB3 |0
+<U9EAE> \xEC\xB2 |0
+<U9EB0> \xEF\xAD |0
+<U9EB4> \xC4\x54 |0
+<U9EB5> \xC4\xD1 |0
+<U9EB6> \xF7\xC7 |0
+<U9EB7> \xF9\xCB |0
+<U9EBB> \xB3\xC2 |0
+<U9EBC> \xBB\xF2 |0
+<U9EBE> \xBE\xA3 |0
+<U9EC0> \xF3\xF4 |0
+<U9EC2> \xF8\x74 |0
+<U9EC3> \xB6\xC0 |0
+<U9EC8> \xEF\xAE |0
+<U9ECC> \xC6\x64 |0
+<U9ECD> \xB6\xC1 |0
+<U9ECE> \xBE\xA4 |0
+<U9ECF> \xC2\x48 |0
+<U9ED0> \xF8\x75 |0
+<U9ED1> \xB6\xC2 |0
+<U9ED3> \xE8\xF1 |0
+<U9ED4> \xC0\x72 |0
+<U9ED5> \xEC\xB4 |0
+<U9ED6> \xEC\xB5 |0
+<U9ED8> \xC0\x71 |0
+<U9EDA> \xEF\xAF |0
+<U9EDB> \xC2\x4C |0
+<U9EDC> \xC2\x4A |0
+<U9EDD> \xC2\x4B |0
+<U9EDE> \xC2\x49 |0
+<U9EDF> \xF1\xE0 |0
+<U9EE0> \xC3\x5C |0
+<U9EE4> \xF5\xB5 |0
+<U9EE5> \xF5\xB4 |0
+<U9EE6> \xF5\xB7 |0
+<U9EE7> \xF5\xB6 |0
+<U9EE8> \xC4\xD2 |0
+<U9EEB> \xF6\xCB |0
+<U9EED> \xF6\xCD |0
+<U9EEE> \xF6\xCC |0
+<U9EEF> \xC5\x66 |0
+<U9EF0> \xF7\xC8 |0
+<U9EF2> \xF8\x76 |0
+<U9EF3> \xF8\x77 |0
+<U9EF4> \xC5\xF0 |0
+<U9EF5> \xF9\x64 |0
+<U9EF6> \xF9\x7D |0
+<U9EF7> \xC6\x75 |0
+<U9EF9> \xDC\xB0 |0
+<U9EFA> \xEC\xB6 |0
+<U9EFB> \xEF\xB0 |0
+<U9EFC> \xF3\xF5 |0
+<U9EFD> \xE0\xEF |0
+<U9EFF> \xEF\xB1 |0
+<U9F00> \xF1\xE2 |0
+<U9F01> \xF1\xE1 |0
+<U9F06> \xF8\x78 |0
+<U9F07> \xC6\x52 |0
+<U9F09> \xF9\x65 |0
+<U9F0A> \xF9\x7E |0
+<U9F0E> \xB9\xA9 |0
+<U9F0F> \xE8\xF2 |0
+<U9F10> \xE8\xF3 |0
+<U9F12> \xEC\xB7 |0
+<U9F13> \xB9\xAA |0
+<U9F15> \xC3\x5D |0
+<U9F16> \xF1\xE3 |0
+<U9F18> \xF6\xCF |0
+<U9F19> \xC5\x67 |0
+<U9F1A> \xF6\xD0 |0
+<U9F1B> \xF6\xCE |0
+<U9F1C> \xF8\x79 |0
+<U9F1E> \xF8\xE9 |0
+<U9F20> \xB9\xAB |0
+<U9F22> \xEF\xB4 |0
+<U9F23> \xEF\xB3 |0
+<U9F24> \xEF\xB2 |0
+<U9F25> \xF1\xE4 |0
+<U9F28> \xF1\xE8 |0
+<U9F29> \xF1\xE7 |0
+<U9F2A> \xF1\xE6 |0
+<U9F2B> \xF1\xE5 |0
+<U9F2C> \xC3\x5E |0
+<U9F2D> \xF3\xF6 |0
+<U9F2E> \xF5\xB9 |0
+<U9F2F> \xC4\xD3 |0
+<U9F30> \xF5\xB8 |0
+<U9F31> \xF6\xD1 |0
+<U9F32> \xF7\xCB |0
+<U9F33> \xF7\xCA |0
+<U9F34> \xC5\xC4 |0
+<U9F35> \xF7\xC9 |0
+<U9F36> \xF8\x7C |0
+<U9F37> \xF8\x7B |0
+<U9F38> \xF8\x7A |0
+<U9F3B> \xBB\xF3 |0
+<U9F3D> \xEC\xB8 |0
+<U9F3E> \xC2\x4D |0
+<U9F40> \xF3\xF7 |0
+<U9F41> \xF3\xF8 |0
+<U9F42> \xF7\xCC |0
+<U9F43> \xF8\x7D |0
+<U9F46> \xF8\xEA |0
+<U9F47> \xF9\x66 |0
+<U9F48> \xF9\xB9 |0
+<U9F49> \xF9\xD4 |0
+<U9F4A> \xBB\xF4 |0
+<U9F4B> \xC2\x4E |0
+<U9F4C> \xF1\xE9 |0
+<U9F4D> \xF3\xF9 |0
+<U9F4E> \xF6\xD2 |0
+<U9F4F> \xF8\x7E |0
+<U9F52> \xBE\xA6 |0
+<U9F54> \xEF\xB5 |0
+<U9F55> \xF1\xEA |0
+<U9F56> \xF3\xFA |0
+<U9F57> \xF3\xFB |0
+<U9F58> \xF3\xFC |0
+<U9F59> \xF5\xBE |0
+<U9F5B> \xF5\xBA |0
+<U9F5C> \xC5\x68 |0
+<U9F5D> \xF5\xBD |0
+<U9F5E> \xF5\xBC |0
+<U9F5F> \xC4\xD4 |0
+<U9F60> \xF5\xBB |0
+<U9F61> \xC4\xD6 |0
+<U9F63> \xC4\xD5 |0
+<U9F64> \xF6\xD4 |0
+<U9F65> \xF6\xD3 |0
+<U9F66> \xC5\x69 |0
+<U9F67> \xC5\x6A |0
+<U9F6A> \xC5\xC6 |0
+<U9F6B> \xF7\xCD |0
+<U9F6C> \xC5\xC5 |0
+<U9F6E> \xF8\xA3 |0
+<U9F6F> \xF8\xA4 |0
+<U9F70> \xF8\xA2 |0
+<U9F71> \xF8\xA1 |0
+<U9F72> \xC6\x54 |0
+<U9F74> \xF8\xEB |0
+<U9F75> \xF8\xEC |0
+<U9F76> \xF8\xED |0
+<U9F77> \xC6\x53 |0
+<U9F78> \xF9\x67 |0
+<U9F79> \xF9\x6A |0
+<U9F7A> \xF9\x69 |0
+<U9F7B> \xF9\x68 |0
+<U9F7E> \xF9\xD3 |0
+<U9F8D> \xC0\x73 |0
+<U9F90> \xC3\x65 |0
+<U9F91> \xF5\xBF |0
+<U9F92> \xF6\xD5 |0
+<U9F94> \xC5\xC7 |0
+<U9F95> \xF7\xCE |0
+<U9F98> \xF9\xD5 |0
+<U9F9C> \xC0\x74 |0
+<U9FA0> \xEF\xB6 |0
+<U9FA2> \xF7\xCF |0
+<U9FA4> \xF9\xA1 |0
+<UE000> \xFA\x40 |0
+<UE001> \xFA\x41 |0
+<UE002> \xFA\x42 |0
+<UE003> \xFA\x43 |0
+<UE004> \xFA\x44 |0
+<UE005> \xFA\x45 |0
+<UE006> \xFA\x46 |0
+<UE007> \xFA\x47 |0
+<UE008> \xFA\x48 |0
+<UE009> \xFA\x49 |0
+<UE00A> \xFA\x4A |0
+<UE00B> \xFA\x4B |0
+<UE00C> \xFA\x4C |0
+<UE00D> \xFA\x4D |0
+<UE00E> \xFA\x4E |0
+<UE00F> \xFA\x4F |0
+<UE010> \xFA\x50 |0
+<UE011> \xFA\x51 |0
+<UE012> \xFA\x52 |0
+<UE013> \xFA\x53 |0
+<UE014> \xFA\x54 |0
+<UE015> \xFA\x55 |0
+<UE016> \xFA\x56 |0
+<UE017> \xFA\x57 |0
+<UE018> \xFA\x58 |0
+<UE019> \xFA\x59 |0
+<UE01A> \xFA\x5A |0
+<UE01B> \xFA\x5B |0
+<UE01C> \xFA\x5C |0
+<UE01D> \xFA\x5D |0
+<UE01E> \xFA\x5E |0
+<UE01F> \xFA\x5F |0
+<UE020> \xFA\x60 |0
+<UE021> \xFA\x61 |0
+<UE022> \xFA\x62 |0
+<UE023> \xFA\x63 |0
+<UE024> \xFA\x64 |0
+<UE025> \xFA\x65 |0
+<UE026> \xFA\x66 |0
+<UE027> \xFA\x67 |0
+<UE028> \xFA\x68 |0
+<UE029> \xFA\x69 |0
+<UE02A> \xFA\x6A |0
+<UE02B> \xFA\x6B |0
+<UE02C> \xFA\x6C |0
+<UE02D> \xFA\x6D |0
+<UE02E> \xFA\x6E |0
+<UE02F> \xFA\x6F |0
+<UE030> \xFA\x70 |0
+<UE031> \xFA\x71 |0
+<UE032> \xFA\x72 |0
+<UE033> \xFA\x73 |0
+<UE034> \xFA\x74 |0
+<UE035> \xFA\x75 |0
+<UE036> \xFA\x76 |0
+<UE037> \xFA\x77 |0
+<UE038> \xFA\x78 |0
+<UE039> \xFA\x79 |0
+<UE03A> \xFA\x7A |0
+<UE03B> \xFA\x7B |0
+<UE03C> \xFA\x7C |0
+<UE03D> \xFA\x7D |0
+<UE03E> \xFA\x7E |0
+<UE03F> \xFA\xA1 |0
+<UE040> \xFA\xA2 |0
+<UE041> \xFA\xA3 |0
+<UE042> \xFA\xA4 |0
+<UE043> \xFA\xA5 |0
+<UE044> \xFA\xA6 |0
+<UE045> \xFA\xA7 |0
+<UE046> \xFA\xA8 |0
+<UE047> \xFA\xA9 |0
+<UE048> \xFA\xAA |0
+<UE049> \xFA\xAB |0
+<UE04A> \xFA\xAC |0
+<UE04B> \xFA\xAD |0
+<UE04C> \xFA\xAE |0
+<UE04D> \xFA\xAF |0
+<UE04E> \xFA\xB0 |0
+<UE04F> \xFA\xB1 |0
+<UE050> \xFA\xB2 |0
+<UE051> \xFA\xB3 |0
+<UE052> \xFA\xB4 |0
+<UE053> \xFA\xB5 |0
+<UE054> \xFA\xB6 |0
+<UE055> \xFA\xB7 |0
+<UE056> \xFA\xB8 |0
+<UE057> \xFA\xB9 |0
+<UE058> \xFA\xBA |0
+<UE059> \xFA\xBB |0
+<UE05A> \xFA\xBC |0
+<UE05B> \xFA\xBD |0
+<UE05C> \xFA\xBE |0
+<UE05D> \xFA\xBF |0
+<UE05E> \xFA\xC0 |0
+<UE05F> \xFA\xC1 |0
+<UE060> \xFA\xC2 |0
+<UE061> \xFA\xC3 |0
+<UE062> \xFA\xC4 |0
+<UE063> \xFA\xC5 |0
+<UE064> \xFA\xC6 |0
+<UE065> \xFA\xC7 |0
+<UE066> \xFA\xC8 |0
+<UE067> \xFA\xC9 |0
+<UE068> \xFA\xCA |0
+<UE069> \xFA\xCB |0
+<UE06A> \xFA\xCC |0
+<UE06B> \xFA\xCD |0
+<UE06C> \xFA\xCE |0
+<UE06D> \xFA\xCF |0
+<UE06E> \xFA\xD0 |0
+<UE06F> \xFA\xD1 |0
+<UE070> \xFA\xD2 |0
+<UE071> \xFA\xD3 |0
+<UE072> \xFA\xD4 |0
+<UE073> \xFA\xD5 |0
+<UE074> \xFA\xD6 |0
+<UE075> \xFA\xD7 |0
+<UE076> \xFA\xD8 |0
+<UE077> \xFA\xD9 |0
+<UE078> \xFA\xDA |0
+<UE079> \xFA\xDB |0
+<UE07A> \xFA\xDC |0
+<UE07B> \xFA\xDD |0
+<UE07C> \xFA\xDE |0
+<UE07D> \xFA\xDF |0
+<UE07E> \xFA\xE0 |0
+<UE07F> \xFA\xE1 |0
+<UE080> \xFA\xE2 |0
+<UE081> \xFA\xE3 |0
+<UE082> \xFA\xE4 |0
+<UE083> \xFA\xE5 |0
+<UE084> \xFA\xE6 |0
+<UE085> \xFA\xE7 |0
+<UE086> \xFA\xE8 |0
+<UE087> \xFA\xE9 |0
+<UE088> \xFA\xEA |0
+<UE089> \xFA\xEB |0
+<UE08A> \xFA\xEC |0
+<UE08B> \xFA\xED |0
+<UE08C> \xFA\xEE |0
+<UE08D> \xFA\xEF |0
+<UE08E> \xFA\xF0 |0
+<UE08F> \xFA\xF1 |0
+<UE090> \xFA\xF2 |0
+<UE091> \xFA\xF3 |0
+<UE092> \xFA\xF4 |0
+<UE093> \xFA\xF5 |0
+<UE094> \xFA\xF6 |0
+<UE095> \xFA\xF7 |0
+<UE096> \xFA\xF8 |0
+<UE097> \xFA\xF9 |0
+<UE098> \xFA\xFA |0
+<UE099> \xFA\xFB |0
+<UE09A> \xFA\xFC |0
+<UE09B> \xFA\xFD |0
+<UE09C> \xFA\xFE |0
+<UE09D> \xFB\x40 |0
+<UE09E> \xFB\x41 |0
+<UE09F> \xFB\x42 |0
+<UE0A0> \xFB\x43 |0
+<UE0A1> \xFB\x44 |0
+<UE0A2> \xFB\x45 |0
+<UE0A3> \xFB\x46 |0
+<UE0A4> \xFB\x47 |0
+<UE0A5> \xFB\x48 |0
+<UE0A6> \xFB\x49 |0
+<UE0A7> \xFB\x4A |0
+<UE0A8> \xFB\x4B |0
+<UE0A9> \xFB\x4C |0
+<UE0AA> \xFB\x4D |0
+<UE0AB> \xFB\x4E |0
+<UE0AC> \xFB\x4F |0
+<UE0AD> \xFB\x50 |0
+<UE0AE> \xFB\x51 |0
+<UE0AF> \xFB\x52 |0
+<UE0B0> \xFB\x53 |0
+<UE0B1> \xFB\x54 |0
+<UE0B2> \xFB\x55 |0
+<UE0B3> \xFB\x56 |0
+<UE0B4> \xFB\x57 |0
+<UE0B5> \xFB\x58 |0
+<UE0B6> \xFB\x59 |0
+<UE0B7> \xFB\x5A |0
+<UE0B8> \xFB\x5B |0
+<UE0B9> \xFB\x5C |0
+<UE0BA> \xFB\x5D |0
+<UE0BB> \xFB\x5E |0
+<UE0BC> \xFB\x5F |0
+<UE0BD> \xFB\x60 |0
+<UE0BE> \xFB\x61 |0
+<UE0BF> \xFB\x62 |0
+<UE0C0> \xFB\x63 |0
+<UE0C1> \xFB\x64 |0
+<UE0C2> \xFB\x65 |0
+<UE0C3> \xFB\x66 |0
+<UE0C4> \xFB\x67 |0
+<UE0C5> \xFB\x68 |0
+<UE0C6> \xFB\x69 |0
+<UE0C7> \xFB\x6A |0
+<UE0C8> \xFB\x6B |0
+<UE0C9> \xFB\x6C |0
+<UE0CA> \xFB\x6D |0
+<UE0CB> \xFB\x6E |0
+<UE0CC> \xFB\x6F |0
+<UE0CD> \xFB\x70 |0
+<UE0CE> \xFB\x71 |0
+<UE0CF> \xFB\x72 |0
+<UE0D0> \xFB\x73 |0
+<UE0D1> \xFB\x74 |0
+<UE0D2> \xFB\x75 |0
+<UE0D3> \xFB\x76 |0
+<UE0D4> \xFB\x77 |0
+<UE0D5> \xFB\x78 |0
+<UE0D6> \xFB\x79 |0
+<UE0D7> \xFB\x7A |0
+<UE0D8> \xFB\x7B |0
+<UE0D9> \xFB\x7C |0
+<UE0DA> \xFB\x7D |0
+<UE0DB> \xFB\x7E |0
+<UE0DC> \xFB\xA1 |0
+<UE0DD> \xFB\xA2 |0
+<UE0DE> \xFB\xA3 |0
+<UE0DF> \xFB\xA4 |0
+<UE0E0> \xFB\xA5 |0
+<UE0E1> \xFB\xA6 |0
+<UE0E2> \xFB\xA7 |0
+<UE0E3> \xFB\xA8 |0
+<UE0E4> \xFB\xA9 |0
+<UE0E5> \xFB\xAA |0
+<UE0E6> \xFB\xAB |0
+<UE0E7> \xFB\xAC |0
+<UE0E8> \xFB\xAD |0
+<UE0E9> \xFB\xAE |0
+<UE0EA> \xFB\xAF |0
+<UE0EB> \xFB\xB0 |0
+<UE0EC> \xFB\xB1 |0
+<UE0ED> \xFB\xB2 |0
+<UE0EE> \xFB\xB3 |0
+<UE0EF> \xFB\xB4 |0
+<UE0F0> \xFB\xB5 |0
+<UE0F1> \xFB\xB6 |0
+<UE0F2> \xFB\xB7 |0
+<UE0F3> \xFB\xB8 |0
+<UE0F4> \xFB\xB9 |0
+<UE0F5> \xFB\xBA |0
+<UE0F6> \xFB\xBB |0
+<UE0F7> \xFB\xBC |0
+<UE0F8> \xFB\xBD |0
+<UE0F9> \xFB\xBE |0
+<UE0FA> \xFB\xBF |0
+<UE0FB> \xFB\xC0 |0
+<UE0FC> \xFB\xC1 |0
+<UE0FD> \xFB\xC2 |0
+<UE0FE> \xFB\xC3 |0
+<UE0FF> \xFB\xC4 |0
+<UE100> \xFB\xC5 |0
+<UE101> \xFB\xC6 |0
+<UE102> \xFB\xC7 |0
+<UE103> \xFB\xC8 |0
+<UE104> \xFB\xC9 |0
+<UE105> \xFB\xCA |0
+<UE106> \xFB\xCB |0
+<UE107> \xFB\xCC |0
+<UE108> \xFB\xCD |0
+<UE109> \xFB\xCE |0
+<UE10A> \xFB\xCF |0
+<UE10B> \xFB\xD0 |0
+<UE10C> \xFB\xD1 |0
+<UE10D> \xFB\xD2 |0
+<UE10E> \xFB\xD3 |0
+<UE10F> \xFB\xD4 |0
+<UE110> \xFB\xD5 |0
+<UE111> \xFB\xD6 |0
+<UE112> \xFB\xD7 |0
+<UE113> \xFB\xD8 |0
+<UE114> \xFB\xD9 |0
+<UE115> \xFB\xDA |0
+<UE116> \xFB\xDB |0
+<UE117> \xFB\xDC |0
+<UE118> \xFB\xDD |0
+<UE119> \xFB\xDE |0
+<UE11A> \xFB\xDF |0
+<UE11B> \xFB\xE0 |0
+<UE11C> \xFB\xE1 |0
+<UE11D> \xFB\xE2 |0
+<UE11E> \xFB\xE3 |0
+<UE11F> \xFB\xE4 |0
+<UE120> \xFB\xE5 |0
+<UE121> \xFB\xE6 |0
+<UE122> \xFB\xE7 |0
+<UE123> \xFB\xE8 |0
+<UE124> \xFB\xE9 |0
+<UE125> \xFB\xEA |0
+<UE126> \xFB\xEB |0
+<UE127> \xFB\xEC |0
+<UE128> \xFB\xED |0
+<UE129> \xFB\xEE |0
+<UE12A> \xFB\xEF |0
+<UE12B> \xFB\xF0 |0
+<UE12C> \xFB\xF1 |0
+<UE12D> \xFB\xF2 |0
+<UE12E> \xFB\xF3 |0
+<UE12F> \xFB\xF4 |0
+<UE130> \xFB\xF5 |0
+<UE131> \xFB\xF6 |0
+<UE132> \xFB\xF7 |0
+<UE133> \xFB\xF8 |0
+<UE134> \xFB\xF9 |0
+<UE135> \xFB\xFA |0
+<UE136> \xFB\xFB |0
+<UE137> \xFB\xFC |0
+<UE138> \xFB\xFD |0
+<UE139> \xFB\xFE |0
+<UE13A> \xFC\x40 |0
+<UE13B> \xFC\x41 |0
+<UE13C> \xFC\x42 |0
+<UE13D> \xFC\x43 |0
+<UE13E> \xFC\x44 |0
+<UE13F> \xFC\x45 |0
+<UE140> \xFC\x46 |0
+<UE141> \xFC\x47 |0
+<UE142> \xFC\x48 |0
+<UE143> \xFC\x49 |0
+<UE144> \xFC\x4A |0
+<UE145> \xFC\x4B |0
+<UE146> \xFC\x4C |0
+<UE147> \xFC\x4D |0
+<UE148> \xFC\x4E |0
+<UE149> \xFC\x4F |0
+<UE14A> \xFC\x50 |0
+<UE14B> \xFC\x51 |0
+<UE14C> \xFC\x52 |0
+<UE14D> \xFC\x53 |0
+<UE14E> \xFC\x54 |0
+<UE14F> \xFC\x55 |0
+<UE150> \xFC\x56 |0
+<UE151> \xFC\x57 |0
+<UE152> \xFC\x58 |0
+<UE153> \xFC\x59 |0
+<UE154> \xFC\x5A |0
+<UE155> \xFC\x5B |0
+<UE156> \xFC\x5C |0
+<UE157> \xFC\x5D |0
+<UE158> \xFC\x5E |0
+<UE159> \xFC\x5F |0
+<UE15A> \xFC\x60 |0
+<UE15B> \xFC\x61 |0
+<UE15C> \xFC\x62 |0
+<UE15D> \xFC\x63 |0
+<UE15E> \xFC\x64 |0
+<UE15F> \xFC\x65 |0
+<UE160> \xFC\x66 |0
+<UE161> \xFC\x67 |0
+<UE162> \xFC\x68 |0
+<UE163> \xFC\x69 |0
+<UE164> \xFC\x6A |0
+<UE165> \xFC\x6B |0
+<UE166> \xFC\x6C |0
+<UE167> \xFC\x6D |0
+<UE168> \xFC\x6E |0
+<UE169> \xFC\x6F |0
+<UE16A> \xFC\x70 |0
+<UE16B> \xFC\x71 |0
+<UE16C> \xFC\x72 |0
+<UE16D> \xFC\x73 |0
+<UE16E> \xFC\x74 |0
+<UE16F> \xFC\x75 |0
+<UE170> \xFC\x76 |0
+<UE171> \xFC\x77 |0
+<UE172> \xFC\x78 |0
+<UE173> \xFC\x79 |0
+<UE174> \xFC\x7A |0
+<UE175> \xFC\x7B |0
+<UE176> \xFC\x7C |0
+<UE177> \xFC\x7D |0
+<UE178> \xFC\x7E |0
+<UE179> \xFC\xA1 |0
+<UE17A> \xFC\xA2 |0
+<UE17B> \xFC\xA3 |0
+<UE17C> \xFC\xA4 |0
+<UE17D> \xFC\xA5 |0
+<UE17E> \xFC\xA6 |0
+<UE17F> \xFC\xA7 |0
+<UE180> \xFC\xA8 |0
+<UE181> \xFC\xA9 |0
+<UE182> \xFC\xAA |0
+<UE183> \xFC\xAB |0
+<UE184> \xFC\xAC |0
+<UE185> \xFC\xAD |0
+<UE186> \xFC\xAE |0
+<UE187> \xFC\xAF |0
+<UE188> \xFC\xB0 |0
+<UE189> \xFC\xB1 |0
+<UE18A> \xFC\xB2 |0
+<UE18B> \xFC\xB3 |0
+<UE18C> \xFC\xB4 |0
+<UE18D> \xFC\xB5 |0
+<UE18E> \xFC\xB6 |0
+<UE18F> \xFC\xB7 |0
+<UE190> \xFC\xB8 |0
+<UE191> \xFC\xB9 |0
+<UE192> \xFC\xBA |0
+<UE193> \xFC\xBB |0
+<UE194> \xFC\xBC |0
+<UE195> \xFC\xBD |0
+<UE196> \xFC\xBE |0
+<UE197> \xFC\xBF |0
+<UE198> \xFC\xC0 |0
+<UE199> \xFC\xC1 |0
+<UE19A> \xFC\xC2 |0
+<UE19B> \xFC\xC3 |0
+<UE19C> \xFC\xC4 |0
+<UE19D> \xFC\xC5 |0
+<UE19E> \xFC\xC6 |0
+<UE19F> \xFC\xC7 |0
+<UE1A0> \xFC\xC8 |0
+<UE1A1> \xFC\xC9 |0
+<UE1A2> \xFC\xCA |0
+<UE1A3> \xFC\xCB |0
+<UE1A4> \xFC\xCC |0
+<UE1A5> \xFC\xCD |0
+<UE1A6> \xFC\xCE |0
+<UE1A7> \xFC\xCF |0
+<UE1A8> \xFC\xD0 |0
+<UE1A9> \xFC\xD1 |0
+<UE1AA> \xFC\xD2 |0
+<UE1AB> \xFC\xD3 |0
+<UE1AC> \xFC\xD4 |0
+<UE1AD> \xFC\xD5 |0
+<UE1AE> \xFC\xD6 |0
+<UE1AF> \xFC\xD7 |0
+<UE1B0> \xFC\xD8 |0
+<UE1B1> \xFC\xD9 |0
+<UE1B2> \xFC\xDA |0
+<UE1B3> \xFC\xDB |0
+<UE1B4> \xFC\xDC |0
+<UE1B5> \xFC\xDD |0
+<UE1B6> \xFC\xDE |0
+<UE1B7> \xFC\xDF |0
+<UE1B8> \xFC\xE0 |0
+<UE1B9> \xFC\xE1 |0
+<UE1BA> \xFC\xE2 |0
+<UE1BB> \xFC\xE3 |0
+<UE1BC> \xFC\xE4 |0
+<UE1BD> \xFC\xE5 |0
+<UE1BE> \xFC\xE6 |0
+<UE1BF> \xFC\xE7 |0
+<UE1C0> \xFC\xE8 |0
+<UE1C1> \xFC\xE9 |0
+<UE1C2> \xFC\xEA |0
+<UE1C3> \xFC\xEB |0
+<UE1C4> \xFC\xEC |0
+<UE1C5> \xFC\xED |0
+<UE1C6> \xFC\xEE |0
+<UE1C7> \xFC\xEF |0
+<UE1C8> \xFC\xF0 |0
+<UE1C9> \xFC\xF1 |0
+<UE1CA> \xFC\xF2 |0
+<UE1CB> \xFC\xF3 |0
+<UE1CC> \xFC\xF4 |0
+<UE1CD> \xFC\xF5 |0
+<UE1CE> \xFC\xF6 |0
+<UE1CF> \xFC\xF7 |0
+<UE1D0> \xFC\xF8 |0
+<UE1D1> \xFC\xF9 |0
+<UE1D2> \xFC\xFA |0
+<UE1D3> \xFC\xFB |0
+<UE1D4> \xFC\xFC |0
+<UE1D5> \xFC\xFD |0
+<UE1D6> \xFC\xFE |0
+<UE1D7> \xFD\x40 |0
+<UE1D8> \xFD\x41 |0
+<UE1D9> \xFD\x42 |0
+<UE1DA> \xFD\x43 |0
+<UE1DB> \xFD\x44 |0
+<UE1DC> \xFD\x45 |0
+<UE1DD> \xFD\x46 |0
+<UE1DE> \xFD\x47 |0
+<UE1DF> \xFD\x48 |0
+<UE1E0> \xFD\x49 |0
+<UE1E1> \xFD\x4A |0
+<UE1E2> \xFD\x4B |0
+<UE1E3> \xFD\x4C |0
+<UE1E4> \xFD\x4D |0
+<UE1E5> \xFD\x4E |0
+<UE1E6> \xFD\x4F |0
+<UE1E7> \xFD\x50 |0
+<UE1E8> \xFD\x51 |0
+<UE1E9> \xFD\x52 |0
+<UE1EA> \xFD\x53 |0
+<UE1EB> \xFD\x54 |0
+<UE1EC> \xFD\x55 |0
+<UE1ED> \xFD\x56 |0
+<UE1EE> \xFD\x57 |0
+<UE1EF> \xFD\x58 |0
+<UE1F0> \xFD\x59 |0
+<UE1F1> \xFD\x5A |0
+<UE1F2> \xFD\x5B |0
+<UE1F3> \xFD\x5C |0
+<UE1F4> \xFD\x5D |0
+<UE1F5> \xFD\x5E |0
+<UE1F6> \xFD\x5F |0
+<UE1F7> \xFD\x60 |0
+<UE1F8> \xFD\x61 |0
+<UE1F9> \xFD\x62 |0
+<UE1FA> \xFD\x63 |0
+<UE1FB> \xFD\x64 |0
+<UE1FC> \xFD\x65 |0
+<UE1FD> \xFD\x66 |0
+<UE1FE> \xFD\x67 |0
+<UE1FF> \xFD\x68 |0
+<UE200> \xFD\x69 |0
+<UE201> \xFD\x6A |0
+<UE202> \xFD\x6B |0
+<UE203> \xFD\x6C |0
+<UE204> \xFD\x6D |0
+<UE205> \xFD\x6E |0
+<UE206> \xFD\x6F |0
+<UE207> \xFD\x70 |0
+<UE208> \xFD\x71 |0
+<UE209> \xFD\x72 |0
+<UE20A> \xFD\x73 |0
+<UE20B> \xFD\x74 |0
+<UE20C> \xFD\x75 |0
+<UE20D> \xFD\x76 |0
+<UE20E> \xFD\x77 |0
+<UE20F> \xFD\x78 |0
+<UE210> \xFD\x79 |0
+<UE211> \xFD\x7A |0
+<UE212> \xFD\x7B |0
+<UE213> \xFD\x7C |0
+<UE214> \xFD\x7D |0
+<UE215> \xFD\x7E |0
+<UE216> \xFD\xA1 |0
+<UE217> \xFD\xA2 |0
+<UE218> \xFD\xA3 |0
+<UE219> \xFD\xA4 |0
+<UE21A> \xFD\xA5 |0
+<UE21B> \xFD\xA6 |0
+<UE21C> \xFD\xA7 |0
+<UE21D> \xFD\xA8 |0
+<UE21E> \xFD\xA9 |0
+<UE21F> \xFD\xAA |0
+<UE220> \xFD\xAB |0
+<UE221> \xFD\xAC |0
+<UE222> \xFD\xAD |0
+<UE223> \xFD\xAE |0
+<UE224> \xFD\xAF |0
+<UE225> \xFD\xB0 |0
+<UE226> \xFD\xB1 |0
+<UE227> \xFD\xB2 |0
+<UE228> \xFD\xB3 |0
+<UE229> \xFD\xB4 |0
+<UE22A> \xFD\xB5 |0
+<UE22B> \xFD\xB6 |0
+<UE22C> \xFD\xB7 |0
+<UE22D> \xFD\xB8 |0
+<UE22E> \xFD\xB9 |0
+<UE22F> \xFD\xBA |0
+<UE230> \xFD\xBB |0
+<UE231> \xFD\xBC |0
+<UE232> \xFD\xBD |0
+<UE233> \xFD\xBE |0
+<UE234> \xFD\xBF |0
+<UE235> \xFD\xC0 |0
+<UE236> \xFD\xC1 |0
+<UE237> \xFD\xC2 |0
+<UE238> \xFD\xC3 |0
+<UE239> \xFD\xC4 |0
+<UE23A> \xFD\xC5 |0
+<UE23B> \xFD\xC6 |0
+<UE23C> \xFD\xC7 |0
+<UE23D> \xFD\xC8 |0
+<UE23E> \xFD\xC9 |0
+<UE23F> \xFD\xCA |0
+<UE240> \xFD\xCB |0
+<UE241> \xFD\xCC |0
+<UE242> \xFD\xCD |0
+<UE243> \xFD\xCE |0
+<UE244> \xFD\xCF |0
+<UE245> \xFD\xD0 |0
+<UE246> \xFD\xD1 |0
+<UE247> \xFD\xD2 |0
+<UE248> \xFD\xD3 |0
+<UE249> \xFD\xD4 |0
+<UE24A> \xFD\xD5 |0
+<UE24B> \xFD\xD6 |0
+<UE24C> \xFD\xD7 |0
+<UE24D> \xFD\xD8 |0
+<UE24E> \xFD\xD9 |0
+<UE24F> \xFD\xDA |0
+<UE250> \xFD\xDB |0
+<UE251> \xFD\xDC |0
+<UE252> \xFD\xDD |0
+<UE253> \xFD\xDE |0
+<UE254> \xFD\xDF |0
+<UE255> \xFD\xE0 |0
+<UE256> \xFD\xE1 |0
+<UE257> \xFD\xE2 |0
+<UE258> \xFD\xE3 |0
+<UE259> \xFD\xE4 |0
+<UE25A> \xFD\xE5 |0
+<UE25B> \xFD\xE6 |0
+<UE25C> \xFD\xE7 |0
+<UE25D> \xFD\xE8 |0
+<UE25E> \xFD\xE9 |0
+<UE25F> \xFD\xEA |0
+<UE260> \xFD\xEB |0
+<UE261> \xFD\xEC |0
+<UE262> \xFD\xED |0
+<UE263> \xFD\xEE |0
+<UE264> \xFD\xEF |0
+<UE265> \xFD\xF0 |0
+<UE266> \xFD\xF1 |0
+<UE267> \xFD\xF2 |0
+<UE268> \xFD\xF3 |0
+<UE269> \xFD\xF4 |0
+<UE26A> \xFD\xF5 |0
+<UE26B> \xFD\xF6 |0
+<UE26C> \xFD\xF7 |0
+<UE26D> \xFD\xF8 |0
+<UE26E> \xFD\xF9 |0
+<UE26F> \xFD\xFA |0
+<UE270> \xFD\xFB |0
+<UE271> \xFD\xFC |0
+<UE272> \xFD\xFD |0
+<UE273> \xFD\xFE |0
+<UE274> \xFE\x40 |0
+<UE275> \xFE\x41 |0
+<UE276> \xFE\x42 |0
+<UE277> \xFE\x43 |0
+<UE278> \xFE\x44 |0
+<UE279> \xFE\x45 |0
+<UE27A> \xFE\x46 |0
+<UE27B> \xFE\x47 |0
+<UE27C> \xFE\x48 |0
+<UE27D> \xFE\x49 |0
+<UE27E> \xFE\x4A |0
+<UE27F> \xFE\x4B |0
+<UE280> \xFE\x4C |0
+<UE281> \xFE\x4D |0
+<UE282> \xFE\x4E |0
+<UE283> \xFE\x4F |0
+<UE284> \xFE\x50 |0
+<UE285> \xFE\x51 |0
+<UE286> \xFE\x52 |0
+<UE287> \xFE\x53 |0
+<UE288> \xFE\x54 |0
+<UE289> \xFE\x55 |0
+<UE28A> \xFE\x56 |0
+<UE28B> \xFE\x57 |0
+<UE28C> \xFE\x58 |0
+<UE28D> \xFE\x59 |0
+<UE28E> \xFE\x5A |0
+<UE28F> \xFE\x5B |0
+<UE290> \xFE\x5C |0
+<UE291> \xFE\x5D |0
+<UE292> \xFE\x5E |0
+<UE293> \xFE\x5F |0
+<UE294> \xFE\x60 |0
+<UE295> \xFE\x61 |0
+<UE296> \xFE\x62 |0
+<UE297> \xFE\x63 |0
+<UE298> \xFE\x64 |0
+<UE299> \xFE\x65 |0
+<UE29A> \xFE\x66 |0
+<UE29B> \xFE\x67 |0
+<UE29C> \xFE\x68 |0
+<UE29D> \xFE\x69 |0
+<UE29E> \xFE\x6A |0
+<UE29F> \xFE\x6B |0
+<UE2A0> \xFE\x6C |0
+<UE2A1> \xFE\x6D |0
+<UE2A2> \xFE\x6E |0
+<UE2A3> \xFE\x6F |0
+<UE2A4> \xFE\x70 |0
+<UE2A5> \xFE\x71 |0
+<UE2A6> \xFE\x72 |0
+<UE2A7> \xFE\x73 |0
+<UE2A8> \xFE\x74 |0
+<UE2A9> \xFE\x75 |0
+<UE2AA> \xFE\x76 |0
+<UE2AB> \xFE\x77 |0
+<UE2AC> \xFE\x78 |0
+<UE2AD> \xFE\x79 |0
+<UE2AE> \xFE\x7A |0
+<UE2AF> \xFE\x7B |0
+<UE2B0> \xFE\x7C |0
+<UE2B1> \xFE\x7D |0
+<UE2B2> \xFE\x7E |0
+<UE2B3> \xFE\xA1 |0
+<UE2B4> \xFE\xA2 |0
+<UE2B5> \xFE\xA3 |0
+<UE2B6> \xFE\xA4 |0
+<UE2B7> \xFE\xA5 |0
+<UE2B8> \xFE\xA6 |0
+<UE2B9> \xFE\xA7 |0
+<UE2BA> \xFE\xA8 |0
+<UE2BB> \xFE\xA9 |0
+<UE2BC> \xFE\xAA |0
+<UE2BD> \xFE\xAB |0
+<UE2BE> \xFE\xAC |0
+<UE2BF> \xFE\xAD |0
+<UE2C0> \xFE\xAE |0
+<UE2C1> \xFE\xAF |0
+<UE2C2> \xFE\xB0 |0
+<UE2C3> \xFE\xB1 |0
+<UE2C4> \xFE\xB2 |0
+<UE2C5> \xFE\xB3 |0
+<UE2C6> \xFE\xB4 |0
+<UE2C7> \xFE\xB5 |0
+<UE2C8> \xFE\xB6 |0
+<UE2C9> \xFE\xB7 |0
+<UE2CA> \xFE\xB8 |0
+<UE2CB> \xFE\xB9 |0
+<UE2CC> \xFE\xBA |0
+<UE2CD> \xFE\xBB |0
+<UE2CE> \xFE\xBC |0
+<UE2CF> \xFE\xBD |0
+<UE2D0> \xFE\xBE |0
+<UE2D1> \xFE\xBF |0
+<UE2D2> \xFE\xC0 |0
+<UE2D3> \xFE\xC1 |0
+<UE2D4> \xFE\xC2 |0
+<UE2D5> \xFE\xC3 |0
+<UE2D6> \xFE\xC4 |0
+<UE2D7> \xFE\xC5 |0
+<UE2D8> \xFE\xC6 |0
+<UE2D9> \xFE\xC7 |0
+<UE2DA> \xFE\xC8 |0
+<UE2DB> \xFE\xC9 |0
+<UE2DC> \xFE\xCA |0
+<UE2DD> \xFE\xCB |0
+<UE2DE> \xFE\xCC |0
+<UE2DF> \xFE\xCD |0
+<UE2E0> \xFE\xCE |0
+<UE2E1> \xFE\xCF |0
+<UE2E2> \xFE\xD0 |0
+<UE2E3> \xFE\xD1 |0
+<UE2E4> \xFE\xD2 |0
+<UE2E5> \xFE\xD3 |0
+<UE2E6> \xFE\xD4 |0
+<UE2E7> \xFE\xD5 |0
+<UE2E8> \xFE\xD6 |0
+<UE2E9> \xFE\xD7 |0
+<UE2EA> \xFE\xD8 |0
+<UE2EB> \xFE\xD9 |0
+<UE2EC> \xFE\xDA |0
+<UE2ED> \xFE\xDB |0
+<UE2EE> \xFE\xDC |0
+<UE2EF> \xFE\xDD |0
+<UE2F0> \xFE\xDE |0
+<UE2F1> \xFE\xDF |0
+<UE2F2> \xFE\xE0 |0
+<UE2F3> \xFE\xE1 |0
+<UE2F4> \xFE\xE2 |0
+<UE2F5> \xFE\xE3 |0
+<UE2F6> \xFE\xE4 |0
+<UE2F7> \xFE\xE5 |0
+<UE2F8> \xFE\xE6 |0
+<UE2F9> \xFE\xE7 |0
+<UE2FA> \xFE\xE8 |0
+<UE2FB> \xFE\xE9 |0
+<UE2FC> \xFE\xEA |0
+<UE2FD> \xFE\xEB |0
+<UE2FE> \xFE\xEC |0
+<UE2FF> \xFE\xED |0
+<UE300> \xFE\xEE |0
+<UE301> \xFE\xEF |0
+<UE302> \xFE\xF0 |0
+<UE303> \xFE\xF1 |0
+<UE304> \xFE\xF2 |0
+<UE305> \xFE\xF3 |0
+<UE306> \xFE\xF4 |0
+<UE307> \xFE\xF5 |0
+<UE308> \xFE\xF6 |0
+<UE309> \xFE\xF7 |0
+<UE30A> \xFE\xF8 |0
+<UE30B> \xFE\xF9 |0
+<UE30C> \xFE\xFA |0
+<UE30D> \xFE\xFB |0
+<UE30E> \xFE\xFC |0
+<UE30F> \xFE\xFD |0
+<UE310> \xFE\xFE |0
+<UE311> \x8E\x40 |0
+<UE312> \x8E\x41 |0
+<UE313> \x8E\x42 |0
+<UE314> \x8E\x43 |0
+<UE315> \x8E\x44 |0
+<UE316> \x8E\x45 |0
+<UE317> \x8E\x46 |0
+<UE318> \x8E\x47 |0
+<UE319> \x8E\x48 |0
+<UE31A> \x8E\x49 |0
+<UE31B> \x8E\x4A |0
+<UE31C> \x8E\x4B |0
+<UE31D> \x8E\x4C |0
+<UE31E> \x8E\x4D |0
+<UE31F> \x8E\x4E |0
+<UE320> \x8E\x4F |0
+<UE321> \x8E\x50 |0
+<UE322> \x8E\x51 |0
+<UE323> \x8E\x52 |0
+<UE324> \x8E\x53 |0
+<UE325> \x8E\x54 |0
+<UE326> \x8E\x55 |0
+<UE327> \x8E\x56 |0
+<UE328> \x8E\x57 |0
+<UE329> \x8E\x58 |0
+<UE32A> \x8E\x59 |0
+<UE32B> \x8E\x5A |0
+<UE32C> \x8E\x5B |0
+<UE32D> \x8E\x5C |0
+<UE32E> \x8E\x5D |0
+<UE32F> \x8E\x5E |0
+<UE330> \x8E\x5F |0
+<UE331> \x8E\x60 |0
+<UE332> \x8E\x61 |0
+<UE333> \x8E\x62 |0
+<UE334> \x8E\x63 |0
+<UE335> \x8E\x64 |0
+<UE336> \x8E\x65 |0
+<UE337> \x8E\x66 |0
+<UE338> \x8E\x67 |0
+<UE339> \x8E\x68 |0
+<UE33A> \x8E\x69 |0
+<UE33B> \x8E\x6A |0
+<UE33C> \x8E\x6B |0
+<UE33D> \x8E\x6C |0
+<UE33E> \x8E\x6D |0
+<UE33F> \x8E\x6E |0
+<UE340> \x8E\x6F |0
+<UE341> \x8E\x70 |0
+<UE342> \x8E\x71 |0
+<UE343> \x8E\x72 |0
+<UE344> \x8E\x73 |0
+<UE345> \x8E\x74 |0
+<UE346> \x8E\x75 |0
+<UE347> \x8E\x76 |0
+<UE348> \x8E\x77 |0
+<UE349> \x8E\x78 |0
+<UE34A> \x8E\x79 |0
+<UE34B> \x8E\x7A |0
+<UE34C> \x8E\x7B |0
+<UE34D> \x8E\x7C |0
+<UE34E> \x8E\x7D |0
+<UE34F> \x8E\x7E |0
+<UE350> \x8E\xA1 |0
+<UE351> \x8E\xA2 |0
+<UE352> \x8E\xA3 |0
+<UE353> \x8E\xA4 |0
+<UE354> \x8E\xA5 |0
+<UE355> \x8E\xA6 |0
+<UE356> \x8E\xA7 |0
+<UE357> \x8E\xA8 |0
+<UE358> \x8E\xA9 |0
+<UE359> \x8E\xAA |0
+<UE35A> \x8E\xAB |0
+<UE35B> \x8E\xAC |0
+<UE35C> \x8E\xAD |0
+<UE35D> \x8E\xAE |0
+<UE35E> \x8E\xAF |0
+<UE35F> \x8E\xB0 |0
+<UE360> \x8E\xB1 |0
+<UE361> \x8E\xB2 |0
+<UE362> \x8E\xB3 |0
+<UE363> \x8E\xB4 |0
+<UE364> \x8E\xB5 |0
+<UE365> \x8E\xB6 |0
+<UE366> \x8E\xB7 |0
+<UE367> \x8E\xB8 |0
+<UE368> \x8E\xB9 |0
+<UE369> \x8E\xBA |0
+<UE36A> \x8E\xBB |0
+<UE36B> \x8E\xBC |0
+<UE36C> \x8E\xBD |0
+<UE36D> \x8E\xBE |0
+<UE36E> \x8E\xBF |0
+<UE36F> \x8E\xC0 |0
+<UE370> \x8E\xC1 |0
+<UE371> \x8E\xC2 |0
+<UE372> \x8E\xC3 |0
+<UE373> \x8E\xC4 |0
+<UE374> \x8E\xC5 |0
+<UE375> \x8E\xC6 |0
+<UE376> \x8E\xC7 |0
+<UE377> \x8E\xC8 |0
+<UE378> \x8E\xC9 |0
+<UE379> \x8E\xCA |0
+<UE37A> \x8E\xCB |0
+<UE37B> \x8E\xCC |0
+<UE37C> \x8E\xCD |0
+<UE37D> \x8E\xCE |0
+<UE37E> \x8E\xCF |0
+<UE37F> \x8E\xD0 |0
+<UE380> \x8E\xD1 |0
+<UE381> \x8E\xD2 |0
+<UE382> \x8E\xD3 |0
+<UE383> \x8E\xD4 |0
+<UE384> \x8E\xD5 |0
+<UE385> \x8E\xD6 |0
+<UE386> \x8E\xD7 |0
+<UE387> \x8E\xD8 |0
+<UE388> \x8E\xD9 |0
+<UE389> \x8E\xDA |0
+<UE38A> \x8E\xDB |0
+<UE38B> \x8E\xDC |0
+<UE38C> \x8E\xDD |0
+<UE38D> \x8E\xDE |0
+<UE38E> \x8E\xDF |0
+<UE38F> \x8E\xE0 |0
+<UE390> \x8E\xE1 |0
+<UE391> \x8E\xE2 |0
+<UE392> \x8E\xE3 |0
+<UE393> \x8E\xE4 |0
+<UE394> \x8E\xE5 |0
+<UE395> \x8E\xE6 |0
+<UE396> \x8E\xE7 |0
+<UE397> \x8E\xE8 |0
+<UE398> \x8E\xE9 |0
+<UE399> \x8E\xEA |0
+<UE39A> \x8E\xEB |0
+<UE39B> \x8E\xEC |0
+<UE39C> \x8E\xED |0
+<UE39D> \x8E\xEE |0
+<UE39E> \x8E\xEF |0
+<UE39F> \x8E\xF0 |0
+<UE3A0> \x8E\xF1 |0
+<UE3A1> \x8E\xF2 |0
+<UE3A2> \x8E\xF3 |0
+<UE3A3> \x8E\xF4 |0
+<UE3A4> \x8E\xF5 |0
+<UE3A5> \x8E\xF6 |0
+<UE3A6> \x8E\xF7 |0
+<UE3A7> \x8E\xF8 |0
+<UE3A8> \x8E\xF9 |0
+<UE3A9> \x8E\xFA |0
+<UE3AA> \x8E\xFB |0
+<UE3AB> \x8E\xFC |0
+<UE3AC> \x8E\xFD |0
+<UE3AD> \x8E\xFE |0
+<UE3AE> \x8F\x40 |0
+<UE3AF> \x8F\x41 |0
+<UE3B0> \x8F\x42 |0
+<UE3B1> \x8F\x43 |0
+<UE3B2> \x8F\x44 |0
+<UE3B3> \x8F\x45 |0
+<UE3B4> \x8F\x46 |0
+<UE3B5> \x8F\x47 |0
+<UE3B6> \x8F\x48 |0
+<UE3B7> \x8F\x49 |0
+<UE3B8> \x8F\x4A |0
+<UE3B9> \x8F\x4B |0
+<UE3BA> \x8F\x4C |0
+<UE3BB> \x8F\x4D |0
+<UE3BC> \x8F\x4E |0
+<UE3BD> \x8F\x4F |0
+<UE3BE> \x8F\x50 |0
+<UE3BF> \x8F\x51 |0
+<UE3C0> \x8F\x52 |0
+<UE3C1> \x8F\x53 |0
+<UE3C2> \x8F\x54 |0
+<UE3C3> \x8F\x55 |0
+<UE3C4> \x8F\x56 |0
+<UE3C5> \x8F\x57 |0
+<UE3C6> \x8F\x58 |0
+<UE3C7> \x8F\x59 |0
+<UE3C8> \x8F\x5A |0
+<UE3C9> \x8F\x5B |0
+<UE3CA> \x8F\x5C |0
+<UE3CB> \x8F\x5D |0
+<UE3CC> \x8F\x5E |0
+<UE3CD> \x8F\x5F |0
+<UE3CE> \x8F\x60 |0
+<UE3CF> \x8F\x61 |0
+<UE3D0> \x8F\x62 |0
+<UE3D1> \x8F\x63 |0
+<UE3D2> \x8F\x64 |0
+<UE3D3> \x8F\x65 |0
+<UE3D4> \x8F\x66 |0
+<UE3D5> \x8F\x67 |0
+<UE3D6> \x8F\x68 |0
+<UE3D7> \x8F\x69 |0
+<UE3D8> \x8F\x6A |0
+<UE3D9> \x8F\x6B |0
+<UE3DA> \x8F\x6C |0
+<UE3DB> \x8F\x6D |0
+<UE3DC> \x8F\x6E |0
+<UE3DD> \x8F\x6F |0
+<UE3DE> \x8F\x70 |0
+<UE3DF> \x8F\x71 |0
+<UE3E0> \x8F\x72 |0
+<UE3E1> \x8F\x73 |0
+<UE3E2> \x8F\x74 |0
+<UE3E3> \x8F\x75 |0
+<UE3E4> \x8F\x76 |0
+<UE3E5> \x8F\x77 |0
+<UE3E6> \x8F\x78 |0
+<UE3E7> \x8F\x79 |0
+<UE3E8> \x8F\x7A |0
+<UE3E9> \x8F\x7B |0
+<UE3EA> \x8F\x7C |0
+<UE3EB> \x8F\x7D |0
+<UE3EC> \x8F\x7E |0
+<UE3ED> \x8F\xA1 |0
+<UE3EE> \x8F\xA2 |0
+<UE3EF> \x8F\xA3 |0
+<UE3F0> \x8F\xA4 |0
+<UE3F1> \x8F\xA5 |0
+<UE3F2> \x8F\xA6 |0
+<UE3F3> \x8F\xA7 |0
+<UE3F4> \x8F\xA8 |0
+<UE3F5> \x8F\xA9 |0
+<UE3F6> \x8F\xAA |0
+<UE3F7> \x8F\xAB |0
+<UE3F8> \x8F\xAC |0
+<UE3F9> \x8F\xAD |0
+<UE3FA> \x8F\xAE |0
+<UE3FB> \x8F\xAF |0
+<UE3FC> \x8F\xB0 |0
+<UE3FD> \x8F\xB1 |0
+<UE3FE> \x8F\xB2 |0
+<UE3FF> \x8F\xB3 |0
+<UE400> \x8F\xB4 |0
+<UE401> \x8F\xB5 |0
+<UE402> \x8F\xB6 |0
+<UE403> \x8F\xB7 |0
+<UE404> \x8F\xB8 |0
+<UE405> \x8F\xB9 |0
+<UE406> \x8F\xBA |0
+<UE407> \x8F\xBB |0
+<UE408> \x8F\xBC |0
+<UE409> \x8F\xBD |0
+<UE40A> \x8F\xBE |0
+<UE40B> \x8F\xBF |0
+<UE40C> \x8F\xC0 |0
+<UE40D> \x8F\xC1 |0
+<UE40E> \x8F\xC2 |0
+<UE40F> \x8F\xC3 |0
+<UE410> \x8F\xC4 |0
+<UE411> \x8F\xC5 |0
+<UE412> \x8F\xC6 |0
+<UE413> \x8F\xC7 |0
+<UE414> \x8F\xC8 |0
+<UE415> \x8F\xC9 |0
+<UE416> \x8F\xCA |0
+<UE417> \x8F\xCB |0
+<UE418> \x8F\xCC |0
+<UE419> \x8F\xCD |0
+<UE41A> \x8F\xCE |0
+<UE41B> \x8F\xCF |0
+<UE41C> \x8F\xD0 |0
+<UE41D> \x8F\xD1 |0
+<UE41E> \x8F\xD2 |0
+<UE41F> \x8F\xD3 |0
+<UE420> \x8F\xD4 |0
+<UE421> \x8F\xD5 |0
+<UE422> \x8F\xD6 |0
+<UE423> \x8F\xD7 |0
+<UE424> \x8F\xD8 |0
+<UE425> \x8F\xD9 |0
+<UE426> \x8F\xDA |0
+<UE427> \x8F\xDB |0
+<UE428> \x8F\xDC |0
+<UE429> \x8F\xDD |0
+<UE42A> \x8F\xDE |0
+<UE42B> \x8F\xDF |0
+<UE42C> \x8F\xE0 |0
+<UE42D> \x8F\xE1 |0
+<UE42E> \x8F\xE2 |0
+<UE42F> \x8F\xE3 |0
+<UE430> \x8F\xE4 |0
+<UE431> \x8F\xE5 |0
+<UE432> \x8F\xE6 |0
+<UE433> \x8F\xE7 |0
+<UE434> \x8F\xE8 |0
+<UE435> \x8F\xE9 |0
+<UE436> \x8F\xEA |0
+<UE437> \x8F\xEB |0
+<UE438> \x8F\xEC |0
+<UE439> \x8F\xED |0
+<UE43A> \x8F\xEE |0
+<UE43B> \x8F\xEF |0
+<UE43C> \x8F\xF0 |0
+<UE43D> \x8F\xF1 |0
+<UE43E> \x8F\xF2 |0
+<UE43F> \x8F\xF3 |0
+<UE440> \x8F\xF4 |0
+<UE441> \x8F\xF5 |0
+<UE442> \x8F\xF6 |0
+<UE443> \x8F\xF7 |0
+<UE444> \x8F\xF8 |0
+<UE445> \x8F\xF9 |0
+<UE446> \x8F\xFA |0
+<UE447> \x8F\xFB |0
+<UE448> \x8F\xFC |0
+<UE449> \x8F\xFD |0
+<UE44A> \x8F\xFE |0
+<UE44B> \x90\x40 |0
+<UE44C> \x90\x41 |0
+<UE44D> \x90\x42 |0
+<UE44E> \x90\x43 |0
+<UE44F> \x90\x44 |0
+<UE450> \x90\x45 |0
+<UE451> \x90\x46 |0
+<UE452> \x90\x47 |0
+<UE453> \x90\x48 |0
+<UE454> \x90\x49 |0
+<UE455> \x90\x4A |0
+<UE456> \x90\x4B |0
+<UE457> \x90\x4C |0
+<UE458> \x90\x4D |0
+<UE459> \x90\x4E |0
+<UE45A> \x90\x4F |0
+<UE45B> \x90\x50 |0
+<UE45C> \x90\x51 |0
+<UE45D> \x90\x52 |0
+<UE45E> \x90\x53 |0
+<UE45F> \x90\x54 |0
+<UE460> \x90\x55 |0
+<UE461> \x90\x56 |0
+<UE462> \x90\x57 |0
+<UE463> \x90\x58 |0
+<UE464> \x90\x59 |0
+<UE465> \x90\x5A |0
+<UE466> \x90\x5B |0
+<UE467> \x90\x5C |0
+<UE468> \x90\x5D |0
+<UE469> \x90\x5E |0
+<UE46A> \x90\x5F |0
+<UE46B> \x90\x60 |0
+<UE46C> \x90\x61 |0
+<UE46D> \x90\x62 |0
+<UE46E> \x90\x63 |0
+<UE46F> \x90\x64 |0
+<UE470> \x90\x65 |0
+<UE471> \x90\x66 |0
+<UE472> \x90\x67 |0
+<UE473> \x90\x68 |0
+<UE474> \x90\x69 |0
+<UE475> \x90\x6A |0
+<UE476> \x90\x6B |0
+<UE477> \x90\x6C |0
+<UE478> \x90\x6D |0
+<UE479> \x90\x6E |0
+<UE47A> \x90\x6F |0
+<UE47B> \x90\x70 |0
+<UE47C> \x90\x71 |0
+<UE47D> \x90\x72 |0
+<UE47E> \x90\x73 |0
+<UE47F> \x90\x74 |0
+<UE480> \x90\x75 |0
+<UE481> \x90\x76 |0
+<UE482> \x90\x77 |0
+<UE483> \x90\x78 |0
+<UE484> \x90\x79 |0
+<UE485> \x90\x7A |0
+<UE486> \x90\x7B |0
+<UE487> \x90\x7C |0
+<UE488> \x90\x7D |0
+<UE489> \x90\x7E |0
+<UE48A> \x90\xA1 |0
+<UE48B> \x90\xA2 |0
+<UE48C> \x90\xA3 |0
+<UE48D> \x90\xA4 |0
+<UE48E> \x90\xA5 |0
+<UE48F> \x90\xA6 |0
+<UE490> \x90\xA7 |0
+<UE491> \x90\xA8 |0
+<UE492> \x90\xA9 |0
+<UE493> \x90\xAA |0
+<UE494> \x90\xAB |0
+<UE495> \x90\xAC |0
+<UE496> \x90\xAD |0
+<UE497> \x90\xAE |0
+<UE498> \x90\xAF |0
+<UE499> \x90\xB0 |0
+<UE49A> \x90\xB1 |0
+<UE49B> \x90\xB2 |0
+<UE49C> \x90\xB3 |0
+<UE49D> \x90\xB4 |0
+<UE49E> \x90\xB5 |0
+<UE49F> \x90\xB6 |0
+<UE4A0> \x90\xB7 |0
+<UE4A1> \x90\xB8 |0
+<UE4A2> \x90\xB9 |0
+<UE4A3> \x90\xBA |0
+<UE4A4> \x90\xBB |0
+<UE4A5> \x90\xBC |0
+<UE4A6> \x90\xBD |0
+<UE4A7> \x90\xBE |0
+<UE4A8> \x90\xBF |0
+<UE4A9> \x90\xC0 |0
+<UE4AA> \x90\xC1 |0
+<UE4AB> \x90\xC2 |0
+<UE4AC> \x90\xC3 |0
+<UE4AD> \x90\xC4 |0
+<UE4AE> \x90\xC5 |0
+<UE4AF> \x90\xC6 |0
+<UE4B0> \x90\xC7 |0
+<UE4B1> \x90\xC8 |0
+<UE4B2> \x90\xC9 |0
+<UE4B3> \x90\xCA |0
+<UE4B4> \x90\xCB |0
+<UE4B5> \x90\xCC |0
+<UE4B6> \x90\xCD |0
+<UE4B7> \x90\xCE |0
+<UE4B8> \x90\xCF |0
+<UE4B9> \x90\xD0 |0
+<UE4BA> \x90\xD1 |0
+<UE4BB> \x90\xD2 |0
+<UE4BC> \x90\xD3 |0
+<UE4BD> \x90\xD4 |0
+<UE4BE> \x90\xD5 |0
+<UE4BF> \x90\xD6 |0
+<UE4C0> \x90\xD7 |0
+<UE4C1> \x90\xD8 |0
+<UE4C2> \x90\xD9 |0
+<UE4C3> \x90\xDA |0
+<UE4C4> \x90\xDB |0
+<UE4C5> \x90\xDC |0
+<UE4C6> \x90\xDD |0
+<UE4C7> \x90\xDE |0
+<UE4C8> \x90\xDF |0
+<UE4C9> \x90\xE0 |0
+<UE4CA> \x90\xE1 |0
+<UE4CB> \x90\xE2 |0
+<UE4CC> \x90\xE3 |0
+<UE4CD> \x90\xE4 |0
+<UE4CE> \x90\xE5 |0
+<UE4CF> \x90\xE6 |0
+<UE4D0> \x90\xE7 |0
+<UE4D1> \x90\xE8 |0
+<UE4D2> \x90\xE9 |0
+<UE4D3> \x90\xEA |0
+<UE4D4> \x90\xEB |0
+<UE4D5> \x90\xEC |0
+<UE4D6> \x90\xED |0
+<UE4D7> \x90\xEE |0
+<UE4D8> \x90\xEF |0
+<UE4D9> \x90\xF0 |0
+<UE4DA> \x90\xF1 |0
+<UE4DB> \x90\xF2 |0
+<UE4DC> \x90\xF3 |0
+<UE4DD> \x90\xF4 |0
+<UE4DE> \x90\xF5 |0
+<UE4DF> \x90\xF6 |0
+<UE4E0> \x90\xF7 |0
+<UE4E1> \x90\xF8 |0
+<UE4E2> \x90\xF9 |0
+<UE4E3> \x90\xFA |0
+<UE4E4> \x90\xFB |0
+<UE4E5> \x90\xFC |0
+<UE4E6> \x90\xFD |0
+<UE4E7> \x90\xFE |0
+<UE4E8> \x91\x40 |0
+<UE4E9> \x91\x41 |0
+<UE4EA> \x91\x42 |0
+<UE4EB> \x91\x43 |0
+<UE4EC> \x91\x44 |0
+<UE4ED> \x91\x45 |0
+<UE4EE> \x91\x46 |0
+<UE4EF> \x91\x47 |0
+<UE4F0> \x91\x48 |0
+<UE4F1> \x91\x49 |0
+<UE4F2> \x91\x4A |0
+<UE4F3> \x91\x4B |0
+<UE4F4> \x91\x4C |0
+<UE4F5> \x91\x4D |0
+<UE4F6> \x91\x4E |0
+<UE4F7> \x91\x4F |0
+<UE4F8> \x91\x50 |0
+<UE4F9> \x91\x51 |0
+<UE4FA> \x91\x52 |0
+<UE4FB> \x91\x53 |0
+<UE4FC> \x91\x54 |0
+<UE4FD> \x91\x55 |0
+<UE4FE> \x91\x56 |0
+<UE4FF> \x91\x57 |0
+<UE500> \x91\x58 |0
+<UE501> \x91\x59 |0
+<UE502> \x91\x5A |0
+<UE503> \x91\x5B |0
+<UE504> \x91\x5C |0
+<UE505> \x91\x5D |0
+<UE506> \x91\x5E |0
+<UE507> \x91\x5F |0
+<UE508> \x91\x60 |0
+<UE509> \x91\x61 |0
+<UE50A> \x91\x62 |0
+<UE50B> \x91\x63 |0
+<UE50C> \x91\x64 |0
+<UE50D> \x91\x65 |0
+<UE50E> \x91\x66 |0
+<UE50F> \x91\x67 |0
+<UE510> \x91\x68 |0
+<UE511> \x91\x69 |0
+<UE512> \x91\x6A |0
+<UE513> \x91\x6B |0
+<UE514> \x91\x6C |0
+<UE515> \x91\x6D |0
+<UE516> \x91\x6E |0
+<UE517> \x91\x6F |0
+<UE518> \x91\x70 |0
+<UE519> \x91\x71 |0
+<UE51A> \x91\x72 |0
+<UE51B> \x91\x73 |0
+<UE51C> \x91\x74 |0
+<UE51D> \x91\x75 |0
+<UE51E> \x91\x76 |0
+<UE51F> \x91\x77 |0
+<UE520> \x91\x78 |0
+<UE521> \x91\x79 |0
+<UE522> \x91\x7A |0
+<UE523> \x91\x7B |0
+<UE524> \x91\x7C |0
+<UE525> \x91\x7D |0
+<UE526> \x91\x7E |0
+<UE527> \x91\xA1 |0
+<UE528> \x91\xA2 |0
+<UE529> \x91\xA3 |0
+<UE52A> \x91\xA4 |0
+<UE52B> \x91\xA5 |0
+<UE52C> \x91\xA6 |0
+<UE52D> \x91\xA7 |0
+<UE52E> \x91\xA8 |0
+<UE52F> \x91\xA9 |0
+<UE530> \x91\xAA |0
+<UE531> \x91\xAB |0
+<UE532> \x91\xAC |0
+<UE533> \x91\xAD |0
+<UE534> \x91\xAE |0
+<UE535> \x91\xAF |0
+<UE536> \x91\xB0 |0
+<UE537> \x91\xB1 |0
+<UE538> \x91\xB2 |0
+<UE539> \x91\xB3 |0
+<UE53A> \x91\xB4 |0
+<UE53B> \x91\xB5 |0
+<UE53C> \x91\xB6 |0
+<UE53D> \x91\xB7 |0
+<UE53E> \x91\xB8 |0
+<UE53F> \x91\xB9 |0
+<UE540> \x91\xBA |0
+<UE541> \x91\xBB |0
+<UE542> \x91\xBC |0
+<UE543> \x91\xBD |0
+<UE544> \x91\xBE |0
+<UE545> \x91\xBF |0
+<UE546> \x91\xC0 |0
+<UE547> \x91\xC1 |0
+<UE548> \x91\xC2 |0
+<UE549> \x91\xC3 |0
+<UE54A> \x91\xC4 |0
+<UE54B> \x91\xC5 |0
+<UE54C> \x91\xC6 |0
+<UE54D> \x91\xC7 |0
+<UE54E> \x91\xC8 |0
+<UE54F> \x91\xC9 |0
+<UE550> \x91\xCA |0
+<UE551> \x91\xCB |0
+<UE552> \x91\xCC |0
+<UE553> \x91\xCD |0
+<UE554> \x91\xCE |0
+<UE555> \x91\xCF |0
+<UE556> \x91\xD0 |0
+<UE557> \x91\xD1 |0
+<UE558> \x91\xD2 |0
+<UE559> \x91\xD3 |0
+<UE55A> \x91\xD4 |0
+<UE55B> \x91\xD5 |0
+<UE55C> \x91\xD6 |0
+<UE55D> \x91\xD7 |0
+<UE55E> \x91\xD8 |0
+<UE55F> \x91\xD9 |0
+<UE560> \x91\xDA |0
+<UE561> \x91\xDB |0
+<UE562> \x91\xDC |0
+<UE563> \x91\xDD |0
+<UE564> \x91\xDE |0
+<UE565> \x91\xDF |0
+<UE566> \x91\xE0 |0
+<UE567> \x91\xE1 |0
+<UE568> \x91\xE2 |0
+<UE569> \x91\xE3 |0
+<UE56A> \x91\xE4 |0
+<UE56B> \x91\xE5 |0
+<UE56C> \x91\xE6 |0
+<UE56D> \x91\xE7 |0
+<UE56E> \x91\xE8 |0
+<UE56F> \x91\xE9 |0
+<UE570> \x91\xEA |0
+<UE571> \x91\xEB |0
+<UE572> \x91\xEC |0
+<UE573> \x91\xED |0
+<UE574> \x91\xEE |0
+<UE575> \x91\xEF |0
+<UE576> \x91\xF0 |0
+<UE577> \x91\xF1 |0
+<UE578> \x91\xF2 |0
+<UE579> \x91\xF3 |0
+<UE57A> \x91\xF4 |0
+<UE57B> \x91\xF5 |0
+<UE57C> \x91\xF6 |0
+<UE57D> \x91\xF7 |0
+<UE57E> \x91\xF8 |0
+<UE57F> \x91\xF9 |0
+<UE580> \x91\xFA |0
+<UE581> \x91\xFB |0
+<UE582> \x91\xFC |0
+<UE583> \x91\xFD |0
+<UE584> \x91\xFE |0
+<UE585> \x92\x40 |0
+<UE586> \x92\x41 |0
+<UE587> \x92\x42 |0
+<UE588> \x92\x43 |0
+<UE589> \x92\x44 |0
+<UE58A> \x92\x45 |0
+<UE58B> \x92\x46 |0
+<UE58C> \x92\x47 |0
+<UE58D> \x92\x48 |0
+<UE58E> \x92\x49 |0
+<UE58F> \x92\x4A |0
+<UE590> \x92\x4B |0
+<UE591> \x92\x4C |0
+<UE592> \x92\x4D |0
+<UE593> \x92\x4E |0
+<UE594> \x92\x4F |0
+<UE595> \x92\x50 |0
+<UE596> \x92\x51 |0
+<UE597> \x92\x52 |0
+<UE598> \x92\x53 |0
+<UE599> \x92\x54 |0
+<UE59A> \x92\x55 |0
+<UE59B> \x92\x56 |0
+<UE59C> \x92\x57 |0
+<UE59D> \x92\x58 |0
+<UE59E> \x92\x59 |0
+<UE59F> \x92\x5A |0
+<UE5A0> \x92\x5B |0
+<UE5A1> \x92\x5C |0
+<UE5A2> \x92\x5D |0
+<UE5A3> \x92\x5E |0
+<UE5A4> \x92\x5F |0
+<UE5A5> \x92\x60 |0
+<UE5A6> \x92\x61 |0
+<UE5A7> \x92\x62 |0
+<UE5A8> \x92\x63 |0
+<UE5A9> \x92\x64 |0
+<UE5AA> \x92\x65 |0
+<UE5AB> \x92\x66 |0
+<UE5AC> \x92\x67 |0
+<UE5AD> \x92\x68 |0
+<UE5AE> \x92\x69 |0
+<UE5AF> \x92\x6A |0
+<UE5B0> \x92\x6B |0
+<UE5B1> \x92\x6C |0
+<UE5B2> \x92\x6D |0
+<UE5B3> \x92\x6E |0
+<UE5B4> \x92\x6F |0
+<UE5B5> \x92\x70 |0
+<UE5B6> \x92\x71 |0
+<UE5B7> \x92\x72 |0
+<UE5B8> \x92\x73 |0
+<UE5B9> \x92\x74 |0
+<UE5BA> \x92\x75 |0
+<UE5BB> \x92\x76 |0
+<UE5BC> \x92\x77 |0
+<UE5BD> \x92\x78 |0
+<UE5BE> \x92\x79 |0
+<UE5BF> \x92\x7A |0
+<UE5C0> \x92\x7B |0
+<UE5C1> \x92\x7C |0
+<UE5C2> \x92\x7D |0
+<UE5C3> \x92\x7E |0
+<UE5C4> \x92\xA1 |0
+<UE5C5> \x92\xA2 |0
+<UE5C6> \x92\xA3 |0
+<UE5C7> \x92\xA4 |0
+<UE5C8> \x92\xA5 |0
+<UE5C9> \x92\xA6 |0
+<UE5CA> \x92\xA7 |0
+<UE5CB> \x92\xA8 |0
+<UE5CC> \x92\xA9 |0
+<UE5CD> \x92\xAA |0
+<UE5CE> \x92\xAB |0
+<UE5CF> \x92\xAC |0
+<UE5D0> \x92\xAD |0
+<UE5D1> \x92\xAE |0
+<UE5D2> \x92\xAF |0
+<UE5D3> \x92\xB0 |0
+<UE5D4> \x92\xB1 |0
+<UE5D5> \x92\xB2 |0
+<UE5D6> \x92\xB3 |0
+<UE5D7> \x92\xB4 |0
+<UE5D8> \x92\xB5 |0
+<UE5D9> \x92\xB6 |0
+<UE5DA> \x92\xB7 |0
+<UE5DB> \x92\xB8 |0
+<UE5DC> \x92\xB9 |0
+<UE5DD> \x92\xBA |0
+<UE5DE> \x92\xBB |0
+<UE5DF> \x92\xBC |0
+<UE5E0> \x92\xBD |0
+<UE5E1> \x92\xBE |0
+<UE5E2> \x92\xBF |0
+<UE5E3> \x92\xC0 |0
+<UE5E4> \x92\xC1 |0
+<UE5E5> \x92\xC2 |0
+<UE5E6> \x92\xC3 |0
+<UE5E7> \x92\xC4 |0
+<UE5E8> \x92\xC5 |0
+<UE5E9> \x92\xC6 |0
+<UE5EA> \x92\xC7 |0
+<UE5EB> \x92\xC8 |0
+<UE5EC> \x92\xC9 |0
+<UE5ED> \x92\xCA |0
+<UE5EE> \x92\xCB |0
+<UE5EF> \x92\xCC |0
+<UE5F0> \x92\xCD |0
+<UE5F1> \x92\xCE |0
+<UE5F2> \x92\xCF |0
+<UE5F3> \x92\xD0 |0
+<UE5F4> \x92\xD1 |0
+<UE5F5> \x92\xD2 |0
+<UE5F6> \x92\xD3 |0
+<UE5F7> \x92\xD4 |0
+<UE5F8> \x92\xD5 |0
+<UE5F9> \x92\xD6 |0
+<UE5FA> \x92\xD7 |0
+<UE5FB> \x92\xD8 |0
+<UE5FC> \x92\xD9 |0
+<UE5FD> \x92\xDA |0
+<UE5FE> \x92\xDB |0
+<UE5FF> \x92\xDC |0
+<UE600> \x92\xDD |0
+<UE601> \x92\xDE |0
+<UE602> \x92\xDF |0
+<UE603> \x92\xE0 |0
+<UE604> \x92\xE1 |0
+<UE605> \x92\xE2 |0
+<UE606> \x92\xE3 |0
+<UE607> \x92\xE4 |0
+<UE608> \x92\xE5 |0
+<UE609> \x92\xE6 |0
+<UE60A> \x92\xE7 |0
+<UE60B> \x92\xE8 |0
+<UE60C> \x92\xE9 |0
+<UE60D> \x92\xEA |0
+<UE60E> \x92\xEB |0
+<UE60F> \x92\xEC |0
+<UE610> \x92\xED |0
+<UE611> \x92\xEE |0
+<UE612> \x92\xEF |0
+<UE613> \x92\xF0 |0
+<UE614> \x92\xF1 |0
+<UE615> \x92\xF2 |0
+<UE616> \x92\xF3 |0
+<UE617> \x92\xF4 |0
+<UE618> \x92\xF5 |0
+<UE619> \x92\xF6 |0
+<UE61A> \x92\xF7 |0
+<UE61B> \x92\xF8 |0
+<UE61C> \x92\xF9 |0
+<UE61D> \x92\xFA |0
+<UE61E> \x92\xFB |0
+<UE61F> \x92\xFC |0
+<UE620> \x92\xFD |0
+<UE621> \x92\xFE |0
+<UE622> \x93\x40 |0
+<UE623> \x93\x41 |0
+<UE624> \x93\x42 |0
+<UE625> \x93\x43 |0
+<UE626> \x93\x44 |0
+<UE627> \x93\x45 |0
+<UE628> \x93\x46 |0
+<UE629> \x93\x47 |0
+<UE62A> \x93\x48 |0
+<UE62B> \x93\x49 |0
+<UE62C> \x93\x4A |0
+<UE62D> \x93\x4B |0
+<UE62E> \x93\x4C |0
+<UE62F> \x93\x4D |0
+<UE630> \x93\x4E |0
+<UE631> \x93\x4F |0
+<UE632> \x93\x50 |0
+<UE633> \x93\x51 |0
+<UE634> \x93\x52 |0
+<UE635> \x93\x53 |0
+<UE636> \x93\x54 |0
+<UE637> \x93\x55 |0
+<UE638> \x93\x56 |0
+<UE639> \x93\x57 |0
+<UE63A> \x93\x58 |0
+<UE63B> \x93\x59 |0
+<UE63C> \x93\x5A |0
+<UE63D> \x93\x5B |0
+<UE63E> \x93\x5C |0
+<UE63F> \x93\x5D |0
+<UE640> \x93\x5E |0
+<UE641> \x93\x5F |0
+<UE642> \x93\x60 |0
+<UE643> \x93\x61 |0
+<UE644> \x93\x62 |0
+<UE645> \x93\x63 |0
+<UE646> \x93\x64 |0
+<UE647> \x93\x65 |0
+<UE648> \x93\x66 |0
+<UE649> \x93\x67 |0
+<UE64A> \x93\x68 |0
+<UE64B> \x93\x69 |0
+<UE64C> \x93\x6A |0
+<UE64D> \x93\x6B |0
+<UE64E> \x93\x6C |0
+<UE64F> \x93\x6D |0
+<UE650> \x93\x6E |0
+<UE651> \x93\x6F |0
+<UE652> \x93\x70 |0
+<UE653> \x93\x71 |0
+<UE654> \x93\x72 |0
+<UE655> \x93\x73 |0
+<UE656> \x93\x74 |0
+<UE657> \x93\x75 |0
+<UE658> \x93\x76 |0
+<UE659> \x93\x77 |0
+<UE65A> \x93\x78 |0
+<UE65B> \x93\x79 |0
+<UE65C> \x93\x7A |0
+<UE65D> \x93\x7B |0
+<UE65E> \x93\x7C |0
+<UE65F> \x93\x7D |0
+<UE660> \x93\x7E |0
+<UE661> \x93\xA1 |0
+<UE662> \x93\xA2 |0
+<UE663> \x93\xA3 |0
+<UE664> \x93\xA4 |0
+<UE665> \x93\xA5 |0
+<UE666> \x93\xA6 |0
+<UE667> \x93\xA7 |0
+<UE668> \x93\xA8 |0
+<UE669> \x93\xA9 |0
+<UE66A> \x93\xAA |0
+<UE66B> \x93\xAB |0
+<UE66C> \x93\xAC |0
+<UE66D> \x93\xAD |0
+<UE66E> \x93\xAE |0
+<UE66F> \x93\xAF |0
+<UE670> \x93\xB0 |0
+<UE671> \x93\xB1 |0
+<UE672> \x93\xB2 |0
+<UE673> \x93\xB3 |0
+<UE674> \x93\xB4 |0
+<UE675> \x93\xB5 |0
+<UE676> \x93\xB6 |0
+<UE677> \x93\xB7 |0
+<UE678> \x93\xB8 |0
+<UE679> \x93\xB9 |0
+<UE67A> \x93\xBA |0
+<UE67B> \x93\xBB |0
+<UE67C> \x93\xBC |0
+<UE67D> \x93\xBD |0
+<UE67E> \x93\xBE |0
+<UE67F> \x93\xBF |0
+<UE680> \x93\xC0 |0
+<UE681> \x93\xC1 |0
+<UE682> \x93\xC2 |0
+<UE683> \x93\xC3 |0
+<UE684> \x93\xC4 |0
+<UE685> \x93\xC5 |0
+<UE686> \x93\xC6 |0
+<UE687> \x93\xC7 |0
+<UE688> \x93\xC8 |0
+<UE689> \x93\xC9 |0
+<UE68A> \x93\xCA |0
+<UE68B> \x93\xCB |0
+<UE68C> \x93\xCC |0
+<UE68D> \x93\xCD |0
+<UE68E> \x93\xCE |0
+<UE68F> \x93\xCF |0
+<UE690> \x93\xD0 |0
+<UE691> \x93\xD1 |0
+<UE692> \x93\xD2 |0
+<UE693> \x93\xD3 |0
+<UE694> \x93\xD4 |0
+<UE695> \x93\xD5 |0
+<UE696> \x93\xD6 |0
+<UE697> \x93\xD7 |0
+<UE698> \x93\xD8 |0
+<UE699> \x93\xD9 |0
+<UE69A> \x93\xDA |0
+<UE69B> \x93\xDB |0
+<UE69C> \x93\xDC |0
+<UE69D> \x93\xDD |0
+<UE69E> \x93\xDE |0
+<UE69F> \x93\xDF |0
+<UE6A0> \x93\xE0 |0
+<UE6A1> \x93\xE1 |0
+<UE6A2> \x93\xE2 |0
+<UE6A3> \x93\xE3 |0
+<UE6A4> \x93\xE4 |0
+<UE6A5> \x93\xE5 |0
+<UE6A6> \x93\xE6 |0
+<UE6A7> \x93\xE7 |0
+<UE6A8> \x93\xE8 |0
+<UE6A9> \x93\xE9 |0
+<UE6AA> \x93\xEA |0
+<UE6AB> \x93\xEB |0
+<UE6AC> \x93\xEC |0
+<UE6AD> \x93\xED |0
+<UE6AE> \x93\xEE |0
+<UE6AF> \x93\xEF |0
+<UE6B0> \x93\xF0 |0
+<UE6B1> \x93\xF1 |0
+<UE6B2> \x93\xF2 |0
+<UE6B3> \x93\xF3 |0
+<UE6B4> \x93\xF4 |0
+<UE6B5> \x93\xF5 |0
+<UE6B6> \x93\xF6 |0
+<UE6B7> \x93\xF7 |0
+<UE6B8> \x93\xF8 |0
+<UE6B9> \x93\xF9 |0
+<UE6BA> \x93\xFA |0
+<UE6BB> \x93\xFB |0
+<UE6BC> \x93\xFC |0
+<UE6BD> \x93\xFD |0
+<UE6BE> \x93\xFE |0
+<UE6BF> \x94\x40 |0
+<UE6C0> \x94\x41 |0
+<UE6C1> \x94\x42 |0
+<UE6C2> \x94\x43 |0
+<UE6C3> \x94\x44 |0
+<UE6C4> \x94\x45 |0
+<UE6C5> \x94\x46 |0
+<UE6C6> \x94\x47 |0
+<UE6C7> \x94\x48 |0
+<UE6C8> \x94\x49 |0
+<UE6C9> \x94\x4A |0
+<UE6CA> \x94\x4B |0
+<UE6CB> \x94\x4C |0
+<UE6CC> \x94\x4D |0
+<UE6CD> \x94\x4E |0
+<UE6CE> \x94\x4F |0
+<UE6CF> \x94\x50 |0
+<UE6D0> \x94\x51 |0
+<UE6D1> \x94\x52 |0
+<UE6D2> \x94\x53 |0
+<UE6D3> \x94\x54 |0
+<UE6D4> \x94\x55 |0
+<UE6D5> \x94\x56 |0
+<UE6D6> \x94\x57 |0
+<UE6D7> \x94\x58 |0
+<UE6D8> \x94\x59 |0
+<UE6D9> \x94\x5A |0
+<UE6DA> \x94\x5B |0
+<UE6DB> \x94\x5C |0
+<UE6DC> \x94\x5D |0
+<UE6DD> \x94\x5E |0
+<UE6DE> \x94\x5F |0
+<UE6DF> \x94\x60 |0
+<UE6E0> \x94\x61 |0
+<UE6E1> \x94\x62 |0
+<UE6E2> \x94\x63 |0
+<UE6E3> \x94\x64 |0
+<UE6E4> \x94\x65 |0
+<UE6E5> \x94\x66 |0
+<UE6E6> \x94\x67 |0
+<UE6E7> \x94\x68 |0
+<UE6E8> \x94\x69 |0
+<UE6E9> \x94\x6A |0
+<UE6EA> \x94\x6B |0
+<UE6EB> \x94\x6C |0
+<UE6EC> \x94\x6D |0
+<UE6ED> \x94\x6E |0
+<UE6EE> \x94\x6F |0
+<UE6EF> \x94\x70 |0
+<UE6F0> \x94\x71 |0
+<UE6F1> \x94\x72 |0
+<UE6F2> \x94\x73 |0
+<UE6F3> \x94\x74 |0
+<UE6F4> \x94\x75 |0
+<UE6F5> \x94\x76 |0
+<UE6F6> \x94\x77 |0
+<UE6F7> \x94\x78 |0
+<UE6F8> \x94\x79 |0
+<UE6F9> \x94\x7A |0
+<UE6FA> \x94\x7B |0
+<UE6FB> \x94\x7C |0
+<UE6FC> \x94\x7D |0
+<UE6FD> \x94\x7E |0
+<UE6FE> \x94\xA1 |0
+<UE6FF> \x94\xA2 |0
+<UE700> \x94\xA3 |0
+<UE701> \x94\xA4 |0
+<UE702> \x94\xA5 |0
+<UE703> \x94\xA6 |0
+<UE704> \x94\xA7 |0
+<UE705> \x94\xA8 |0
+<UE706> \x94\xA9 |0
+<UE707> \x94\xAA |0
+<UE708> \x94\xAB |0
+<UE709> \x94\xAC |0
+<UE70A> \x94\xAD |0
+<UE70B> \x94\xAE |0
+<UE70C> \x94\xAF |0
+<UE70D> \x94\xB0 |0
+<UE70E> \x94\xB1 |0
+<UE70F> \x94\xB2 |0
+<UE710> \x94\xB3 |0
+<UE711> \x94\xB4 |0
+<UE712> \x94\xB5 |0
+<UE713> \x94\xB6 |0
+<UE714> \x94\xB7 |0
+<UE715> \x94\xB8 |0
+<UE716> \x94\xB9 |0
+<UE717> \x94\xBA |0
+<UE718> \x94\xBB |0
+<UE719> \x94\xBC |0
+<UE71A> \x94\xBD |0
+<UE71B> \x94\xBE |0
+<UE71C> \x94\xBF |0
+<UE71D> \x94\xC0 |0
+<UE71E> \x94\xC1 |0
+<UE71F> \x94\xC2 |0
+<UE720> \x94\xC3 |0
+<UE721> \x94\xC4 |0
+<UE722> \x94\xC5 |0
+<UE723> \x94\xC6 |0
+<UE724> \x94\xC7 |0
+<UE725> \x94\xC8 |0
+<UE726> \x94\xC9 |0
+<UE727> \x94\xCA |0
+<UE728> \x94\xCB |0
+<UE729> \x94\xCC |0
+<UE72A> \x94\xCD |0
+<UE72B> \x94\xCE |0
+<UE72C> \x94\xCF |0
+<UE72D> \x94\xD0 |0
+<UE72E> \x94\xD1 |0
+<UE72F> \x94\xD2 |0
+<UE730> \x94\xD3 |0
+<UE731> \x94\xD4 |0
+<UE732> \x94\xD5 |0
+<UE733> \x94\xD6 |0
+<UE734> \x94\xD7 |0
+<UE735> \x94\xD8 |0
+<UE736> \x94\xD9 |0
+<UE737> \x94\xDA |0
+<UE738> \x94\xDB |0
+<UE739> \x94\xDC |0
+<UE73A> \x94\xDD |0
+<UE73B> \x94\xDE |0
+<UE73C> \x94\xDF |0
+<UE73D> \x94\xE0 |0
+<UE73E> \x94\xE1 |0
+<UE73F> \x94\xE2 |0
+<UE740> \x94\xE3 |0
+<UE741> \x94\xE4 |0
+<UE742> \x94\xE5 |0
+<UE743> \x94\xE6 |0
+<UE744> \x94\xE7 |0
+<UE745> \x94\xE8 |0
+<UE746> \x94\xE9 |0
+<UE747> \x94\xEA |0
+<UE748> \x94\xEB |0
+<UE749> \x94\xEC |0
+<UE74A> \x94\xED |0
+<UE74B> \x94\xEE |0
+<UE74C> \x94\xEF |0
+<UE74D> \x94\xF0 |0
+<UE74E> \x94\xF1 |0
+<UE74F> \x94\xF2 |0
+<UE750> \x94\xF3 |0
+<UE751> \x94\xF4 |0
+<UE752> \x94\xF5 |0
+<UE753> \x94\xF6 |0
+<UE754> \x94\xF7 |0
+<UE755> \x94\xF8 |0
+<UE756> \x94\xF9 |0
+<UE757> \x94\xFA |0
+<UE758> \x94\xFB |0
+<UE759> \x94\xFC |0
+<UE75A> \x94\xFD |0
+<UE75B> \x94\xFE |0
+<UE75C> \x95\x40 |0
+<UE75D> \x95\x41 |0
+<UE75E> \x95\x42 |0
+<UE75F> \x95\x43 |0
+<UE760> \x95\x44 |0
+<UE761> \x95\x45 |0
+<UE762> \x95\x46 |0
+<UE763> \x95\x47 |0
+<UE764> \x95\x48 |0
+<UE765> \x95\x49 |0
+<UE766> \x95\x4A |0
+<UE767> \x95\x4B |0
+<UE768> \x95\x4C |0
+<UE769> \x95\x4D |0
+<UE76A> \x95\x4E |0
+<UE76B> \x95\x4F |0
+<UE76C> \x95\x50 |0
+<UE76D> \x95\x51 |0
+<UE76E> \x95\x52 |0
+<UE76F> \x95\x53 |0
+<UE770> \x95\x54 |0
+<UE771> \x95\x55 |0
+<UE772> \x95\x56 |0
+<UE773> \x95\x57 |0
+<UE774> \x95\x58 |0
+<UE775> \x95\x59 |0
+<UE776> \x95\x5A |0
+<UE777> \x95\x5B |0
+<UE778> \x95\x5C |0
+<UE779> \x95\x5D |0
+<UE77A> \x95\x5E |0
+<UE77B> \x95\x5F |0
+<UE77C> \x95\x60 |0
+<UE77D> \x95\x61 |0
+<UE77E> \x95\x62 |0
+<UE77F> \x95\x63 |0
+<UE780> \x95\x64 |0
+<UE781> \x95\x65 |0
+<UE782> \x95\x66 |0
+<UE783> \x95\x67 |0
+<UE784> \x95\x68 |0
+<UE785> \x95\x69 |0
+<UE786> \x95\x6A |0
+<UE787> \x95\x6B |0
+<UE788> \x95\x6C |0
+<UE789> \x95\x6D |0
+<UE78A> \x95\x6E |0
+<UE78B> \x95\x6F |0
+<UE78C> \x95\x70 |0
+<UE78D> \x95\x71 |0
+<UE78E> \x95\x72 |0
+<UE78F> \x95\x73 |0
+<UE790> \x95\x74 |0
+<UE791> \x95\x75 |0
+<UE792> \x95\x76 |0
+<UE793> \x95\x77 |0
+<UE794> \x95\x78 |0
+<UE795> \x95\x79 |0
+<UE796> \x95\x7A |0
+<UE797> \x95\x7B |0
+<UE798> \x95\x7C |0
+<UE799> \x95\x7D |0
+<UE79A> \x95\x7E |0
+<UE79B> \x95\xA1 |0
+<UE79C> \x95\xA2 |0
+<UE79D> \x95\xA3 |0
+<UE79E> \x95\xA4 |0
+<UE79F> \x95\xA5 |0
+<UE7A0> \x95\xA6 |0
+<UE7A1> \x95\xA7 |0
+<UE7A2> \x95\xA8 |0
+<UE7A3> \x95\xA9 |0
+<UE7A4> \x95\xAA |0
+<UE7A5> \x95\xAB |0
+<UE7A6> \x95\xAC |0
+<UE7A7> \x95\xAD |0
+<UE7A8> \x95\xAE |0
+<UE7A9> \x95\xAF |0
+<UE7AA> \x95\xB0 |0
+<UE7AB> \x95\xB1 |0
+<UE7AC> \x95\xB2 |0
+<UE7AD> \x95\xB3 |0
+<UE7AE> \x95\xB4 |0
+<UE7AF> \x95\xB5 |0
+<UE7B0> \x95\xB6 |0
+<UE7B1> \x95\xB7 |0
+<UE7B2> \x95\xB8 |0
+<UE7B3> \x95\xB9 |0
+<UE7B4> \x95\xBA |0
+<UE7B5> \x95\xBB |0
+<UE7B6> \x95\xBC |0
+<UE7B7> \x95\xBD |0
+<UE7B8> \x95\xBE |0
+<UE7B9> \x95\xBF |0
+<UE7BA> \x95\xC0 |0
+<UE7BB> \x95\xC1 |0
+<UE7BC> \x95\xC2 |0
+<UE7BD> \x95\xC3 |0
+<UE7BE> \x95\xC4 |0
+<UE7BF> \x95\xC5 |0
+<UE7C0> \x95\xC6 |0
+<UE7C1> \x95\xC7 |0
+<UE7C2> \x95\xC8 |0
+<UE7C3> \x95\xC9 |0
+<UE7C4> \x95\xCA |0
+<UE7C5> \x95\xCB |0
+<UE7C6> \x95\xCC |0
+<UE7C7> \x95\xCD |0
+<UE7C8> \x95\xCE |0
+<UE7C9> \x95\xCF |0
+<UE7CA> \x95\xD0 |0
+<UE7CB> \x95\xD1 |0
+<UE7CC> \x95\xD2 |0
+<UE7CD> \x95\xD3 |0
+<UE7CE> \x95\xD4 |0
+<UE7CF> \x95\xD5 |0
+<UE7D0> \x95\xD6 |0
+<UE7D1> \x95\xD7 |0
+<UE7D2> \x95\xD8 |0
+<UE7D3> \x95\xD9 |0
+<UE7D4> \x95\xDA |0
+<UE7D5> \x95\xDB |0
+<UE7D6> \x95\xDC |0
+<UE7D7> \x95\xDD |0
+<UE7D8> \x95\xDE |0
+<UE7D9> \x95\xDF |0
+<UE7DA> \x95\xE0 |0
+<UE7DB> \x95\xE1 |0
+<UE7DC> \x95\xE2 |0
+<UE7DD> \x95\xE3 |0
+<UE7DE> \x95\xE4 |0
+<UE7DF> \x95\xE5 |0
+<UE7E0> \x95\xE6 |0
+<UE7E1> \x95\xE7 |0
+<UE7E2> \x95\xE8 |0
+<UE7E3> \x95\xE9 |0
+<UE7E4> \x95\xEA |0
+<UE7E5> \x95\xEB |0
+<UE7E6> \x95\xEC |0
+<UE7E7> \x95\xED |0
+<UE7E8> \x95\xEE |0
+<UE7E9> \x95\xEF |0
+<UE7EA> \x95\xF0 |0
+<UE7EB> \x95\xF1 |0
+<UE7EC> \x95\xF2 |0
+<UE7ED> \x95\xF3 |0
+<UE7EE> \x95\xF4 |0
+<UE7EF> \x95\xF5 |0
+<UE7F0> \x95\xF6 |0
+<UE7F1> \x95\xF7 |0
+<UE7F2> \x95\xF8 |0
+<UE7F3> \x95\xF9 |0
+<UE7F4> \x95\xFA |0
+<UE7F5> \x95\xFB |0
+<UE7F6> \x95\xFC |0
+<UE7F7> \x95\xFD |0
+<UE7F8> \x95\xFE |0
+<UE7F9> \x96\x40 |0
+<UE7FA> \x96\x41 |0
+<UE7FB> \x96\x42 |0
+<UE7FC> \x96\x43 |0
+<UE7FD> \x96\x44 |0
+<UE7FE> \x96\x45 |0
+<UE7FF> \x96\x46 |0
+<UE800> \x96\x47 |0
+<UE801> \x96\x48 |0
+<UE802> \x96\x49 |0
+<UE803> \x96\x4A |0
+<UE804> \x96\x4B |0
+<UE805> \x96\x4C |0
+<UE806> \x96\x4D |0
+<UE807> \x96\x4E |0
+<UE808> \x96\x4F |0
+<UE809> \x96\x50 |0
+<UE80A> \x96\x51 |0
+<UE80B> \x96\x52 |0
+<UE80C> \x96\x53 |0
+<UE80D> \x96\x54 |0
+<UE80E> \x96\x55 |0
+<UE80F> \x96\x56 |0
+<UE810> \x96\x57 |0
+<UE811> \x96\x58 |0
+<UE812> \x96\x59 |0
+<UE813> \x96\x5A |0
+<UE814> \x96\x5B |0
+<UE815> \x96\x5C |0
+<UE816> \x96\x5D |0
+<UE817> \x96\x5E |0
+<UE818> \x96\x5F |0
+<UE819> \x96\x60 |0
+<UE81A> \x96\x61 |0
+<UE81B> \x96\x62 |0
+<UE81C> \x96\x63 |0
+<UE81D> \x96\x64 |0
+<UE81E> \x96\x65 |0
+<UE81F> \x96\x66 |0
+<UE820> \x96\x67 |0
+<UE821> \x96\x68 |0
+<UE822> \x96\x69 |0
+<UE823> \x96\x6A |0
+<UE824> \x96\x6B |0
+<UE825> \x96\x6C |0
+<UE826> \x96\x6D |0
+<UE827> \x96\x6E |0
+<UE828> \x96\x6F |0
+<UE829> \x96\x70 |0
+<UE82A> \x96\x71 |0
+<UE82B> \x96\x72 |0
+<UE82C> \x96\x73 |0
+<UE82D> \x96\x74 |0
+<UE82E> \x96\x75 |0
+<UE82F> \x96\x76 |0
+<UE830> \x96\x77 |0
+<UE831> \x96\x78 |0
+<UE832> \x96\x79 |0
+<UE833> \x96\x7A |0
+<UE834> \x96\x7B |0
+<UE835> \x96\x7C |0
+<UE836> \x96\x7D |0
+<UE837> \x96\x7E |0
+<UE838> \x96\xA1 |0
+<UE839> \x96\xA2 |0
+<UE83A> \x96\xA3 |0
+<UE83B> \x96\xA4 |0
+<UE83C> \x96\xA5 |0
+<UE83D> \x96\xA6 |0
+<UE83E> \x96\xA7 |0
+<UE83F> \x96\xA8 |0
+<UE840> \x96\xA9 |0
+<UE841> \x96\xAA |0
+<UE842> \x96\xAB |0
+<UE843> \x96\xAC |0
+<UE844> \x96\xAD |0
+<UE845> \x96\xAE |0
+<UE846> \x96\xAF |0
+<UE847> \x96\xB0 |0
+<UE848> \x96\xB1 |0
+<UE849> \x96\xB2 |0
+<UE84A> \x96\xB3 |0
+<UE84B> \x96\xB4 |0
+<UE84C> \x96\xB5 |0
+<UE84D> \x96\xB6 |0
+<UE84E> \x96\xB7 |0
+<UE84F> \x96\xB8 |0
+<UE850> \x96\xB9 |0
+<UE851> \x96\xBA |0
+<UE852> \x96\xBB |0
+<UE853> \x96\xBC |0
+<UE854> \x96\xBD |0
+<UE855> \x96\xBE |0
+<UE856> \x96\xBF |0
+<UE857> \x96\xC0 |0
+<UE858> \x96\xC1 |0
+<UE859> \x96\xC2 |0
+<UE85A> \x96\xC3 |0
+<UE85B> \x96\xC4 |0
+<UE85C> \x96\xC5 |0
+<UE85D> \x96\xC6 |0
+<UE85E> \x96\xC7 |0
+<UE85F> \x96\xC8 |0
+<UE860> \x96\xC9 |0
+<UE861> \x96\xCA |0
+<UE862> \x96\xCB |0
+<UE863> \x96\xCC |0
+<UE864> \x96\xCD |0
+<UE865> \x96\xCE |0
+<UE866> \x96\xCF |0
+<UE867> \x96\xD0 |0
+<UE868> \x96\xD1 |0
+<UE869> \x96\xD2 |0
+<UE86A> \x96\xD3 |0
+<UE86B> \x96\xD4 |0
+<UE86C> \x96\xD5 |0
+<UE86D> \x96\xD6 |0
+<UE86E> \x96\xD7 |0
+<UE86F> \x96\xD8 |0
+<UE870> \x96\xD9 |0
+<UE871> \x96\xDA |0
+<UE872> \x96\xDB |0
+<UE873> \x96\xDC |0
+<UE874> \x96\xDD |0
+<UE875> \x96\xDE |0
+<UE876> \x96\xDF |0
+<UE877> \x96\xE0 |0
+<UE878> \x96\xE1 |0
+<UE879> \x96\xE2 |0
+<UE87A> \x96\xE3 |0
+<UE87B> \x96\xE4 |0
+<UE87C> \x96\xE5 |0
+<UE87D> \x96\xE6 |0
+<UE87E> \x96\xE7 |0
+<UE87F> \x96\xE8 |0
+<UE880> \x96\xE9 |0
+<UE881> \x96\xEA |0
+<UE882> \x96\xEB |0
+<UE883> \x96\xEC |0
+<UE884> \x96\xED |0
+<UE885> \x96\xEE |0
+<UE886> \x96\xEF |0
+<UE887> \x96\xF0 |0
+<UE888> \x96\xF1 |0
+<UE889> \x96\xF2 |0
+<UE88A> \x96\xF3 |0
+<UE88B> \x96\xF4 |0
+<UE88C> \x96\xF5 |0
+<UE88D> \x96\xF6 |0
+<UE88E> \x96\xF7 |0
+<UE88F> \x96\xF8 |0
+<UE890> \x96\xF9 |0
+<UE891> \x96\xFA |0
+<UE892> \x96\xFB |0
+<UE893> \x96\xFC |0
+<UE894> \x96\xFD |0
+<UE895> \x96\xFE |0
+<UE896> \x97\x40 |0
+<UE897> \x97\x41 |0
+<UE898> \x97\x42 |0
+<UE899> \x97\x43 |0
+<UE89A> \x97\x44 |0
+<UE89B> \x97\x45 |0
+<UE89C> \x97\x46 |0
+<UE89D> \x97\x47 |0
+<UE89E> \x97\x48 |0
+<UE89F> \x97\x49 |0
+<UE8A0> \x97\x4A |0
+<UE8A1> \x97\x4B |0
+<UE8A2> \x97\x4C |0
+<UE8A3> \x97\x4D |0
+<UE8A4> \x97\x4E |0
+<UE8A5> \x97\x4F |0
+<UE8A6> \x97\x50 |0
+<UE8A7> \x97\x51 |0
+<UE8A8> \x97\x52 |0
+<UE8A9> \x97\x53 |0
+<UE8AA> \x97\x54 |0
+<UE8AB> \x97\x55 |0
+<UE8AC> \x97\x56 |0
+<UE8AD> \x97\x57 |0
+<UE8AE> \x97\x58 |0
+<UE8AF> \x97\x59 |0
+<UE8B0> \x97\x5A |0
+<UE8B1> \x97\x5B |0
+<UE8B2> \x97\x5C |0
+<UE8B3> \x97\x5D |0
+<UE8B4> \x97\x5E |0
+<UE8B5> \x97\x5F |0
+<UE8B6> \x97\x60 |0
+<UE8B7> \x97\x61 |0
+<UE8B8> \x97\x62 |0
+<UE8B9> \x97\x63 |0
+<UE8BA> \x97\x64 |0
+<UE8BB> \x97\x65 |0
+<UE8BC> \x97\x66 |0
+<UE8BD> \x97\x67 |0
+<UE8BE> \x97\x68 |0
+<UE8BF> \x97\x69 |0
+<UE8C0> \x97\x6A |0
+<UE8C1> \x97\x6B |0
+<UE8C2> \x97\x6C |0
+<UE8C3> \x97\x6D |0
+<UE8C4> \x97\x6E |0
+<UE8C5> \x97\x6F |0
+<UE8C6> \x97\x70 |0
+<UE8C7> \x97\x71 |0
+<UE8C8> \x97\x72 |0
+<UE8C9> \x97\x73 |0
+<UE8CA> \x97\x74 |0
+<UE8CB> \x97\x75 |0
+<UE8CC> \x97\x76 |0
+<UE8CD> \x97\x77 |0
+<UE8CE> \x97\x78 |0
+<UE8CF> \x97\x79 |0
+<UE8D0> \x97\x7A |0
+<UE8D1> \x97\x7B |0
+<UE8D2> \x97\x7C |0
+<UE8D3> \x97\x7D |0
+<UE8D4> \x97\x7E |0
+<UE8D5> \x97\xA1 |0
+<UE8D6> \x97\xA2 |0
+<UE8D7> \x97\xA3 |0
+<UE8D8> \x97\xA4 |0
+<UE8D9> \x97\xA5 |0
+<UE8DA> \x97\xA6 |0
+<UE8DB> \x97\xA7 |0
+<UE8DC> \x97\xA8 |0
+<UE8DD> \x97\xA9 |0
+<UE8DE> \x97\xAA |0
+<UE8DF> \x97\xAB |0
+<UE8E0> \x97\xAC |0
+<UE8E1> \x97\xAD |0
+<UE8E2> \x97\xAE |0
+<UE8E3> \x97\xAF |0
+<UE8E4> \x97\xB0 |0
+<UE8E5> \x97\xB1 |0
+<UE8E6> \x97\xB2 |0
+<UE8E7> \x97\xB3 |0
+<UE8E8> \x97\xB4 |0
+<UE8E9> \x97\xB5 |0
+<UE8EA> \x97\xB6 |0
+<UE8EB> \x97\xB7 |0
+<UE8EC> \x97\xB8 |0
+<UE8ED> \x97\xB9 |0
+<UE8EE> \x97\xBA |0
+<UE8EF> \x97\xBB |0
+<UE8F0> \x97\xBC |0
+<UE8F1> \x97\xBD |0
+<UE8F2> \x97\xBE |0
+<UE8F3> \x97\xBF |0
+<UE8F4> \x97\xC0 |0
+<UE8F5> \x97\xC1 |0
+<UE8F6> \x97\xC2 |0
+<UE8F7> \x97\xC3 |0
+<UE8F8> \x97\xC4 |0
+<UE8F9> \x97\xC5 |0
+<UE8FA> \x97\xC6 |0
+<UE8FB> \x97\xC7 |0
+<UE8FC> \x97\xC8 |0
+<UE8FD> \x97\xC9 |0
+<UE8FE> \x97\xCA |0
+<UE8FF> \x97\xCB |0
+<UE900> \x97\xCC |0
+<UE901> \x97\xCD |0
+<UE902> \x97\xCE |0
+<UE903> \x97\xCF |0
+<UE904> \x97\xD0 |0
+<UE905> \x97\xD1 |0
+<UE906> \x97\xD2 |0
+<UE907> \x97\xD3 |0
+<UE908> \x97\xD4 |0
+<UE909> \x97\xD5 |0
+<UE90A> \x97\xD6 |0
+<UE90B> \x97\xD7 |0
+<UE90C> \x97\xD8 |0
+<UE90D> \x97\xD9 |0
+<UE90E> \x97\xDA |0
+<UE90F> \x97\xDB |0
+<UE910> \x97\xDC |0
+<UE911> \x97\xDD |0
+<UE912> \x97\xDE |0
+<UE913> \x97\xDF |0
+<UE914> \x97\xE0 |0
+<UE915> \x97\xE1 |0
+<UE916> \x97\xE2 |0
+<UE917> \x97\xE3 |0
+<UE918> \x97\xE4 |0
+<UE919> \x97\xE5 |0
+<UE91A> \x97\xE6 |0
+<UE91B> \x97\xE7 |0
+<UE91C> \x97\xE8 |0
+<UE91D> \x97\xE9 |0
+<UE91E> \x97\xEA |0
+<UE91F> \x97\xEB |0
+<UE920> \x97\xEC |0
+<UE921> \x97\xED |0
+<UE922> \x97\xEE |0
+<UE923> \x97\xEF |0
+<UE924> \x97\xF0 |0
+<UE925> \x97\xF1 |0
+<UE926> \x97\xF2 |0
+<UE927> \x97\xF3 |0
+<UE928> \x97\xF4 |0
+<UE929> \x97\xF5 |0
+<UE92A> \x97\xF6 |0
+<UE92B> \x97\xF7 |0
+<UE92C> \x97\xF8 |0
+<UE92D> \x97\xF9 |0
+<UE92E> \x97\xFA |0
+<UE92F> \x97\xFB |0
+<UE930> \x97\xFC |0
+<UE931> \x97\xFD |0
+<UE932> \x97\xFE |0
+<UE933> \x98\x40 |0
+<UE934> \x98\x41 |0
+<UE935> \x98\x42 |0
+<UE936> \x98\x43 |0
+<UE937> \x98\x44 |0
+<UE938> \x98\x45 |0
+<UE939> \x98\x46 |0
+<UE93A> \x98\x47 |0
+<UE93B> \x98\x48 |0
+<UE93C> \x98\x49 |0
+<UE93D> \x98\x4A |0
+<UE93E> \x98\x4B |0
+<UE93F> \x98\x4C |0
+<UE940> \x98\x4D |0
+<UE941> \x98\x4E |0
+<UE942> \x98\x4F |0
+<UE943> \x98\x50 |0
+<UE944> \x98\x51 |0
+<UE945> \x98\x52 |0
+<UE946> \x98\x53 |0
+<UE947> \x98\x54 |0
+<UE948> \x98\x55 |0
+<UE949> \x98\x56 |0
+<UE94A> \x98\x57 |0
+<UE94B> \x98\x58 |0
+<UE94C> \x98\x59 |0
+<UE94D> \x98\x5A |0
+<UE94E> \x98\x5B |0
+<UE94F> \x98\x5C |0
+<UE950> \x98\x5D |0
+<UE951> \x98\x5E |0
+<UE952> \x98\x5F |0
+<UE953> \x98\x60 |0
+<UE954> \x98\x61 |0
+<UE955> \x98\x62 |0
+<UE956> \x98\x63 |0
+<UE957> \x98\x64 |0
+<UE958> \x98\x65 |0
+<UE959> \x98\x66 |0
+<UE95A> \x98\x67 |0
+<UE95B> \x98\x68 |0
+<UE95C> \x98\x69 |0
+<UE95D> \x98\x6A |0
+<UE95E> \x98\x6B |0
+<UE95F> \x98\x6C |0
+<UE960> \x98\x6D |0
+<UE961> \x98\x6E |0
+<UE962> \x98\x6F |0
+<UE963> \x98\x70 |0
+<UE964> \x98\x71 |0
+<UE965> \x98\x72 |0
+<UE966> \x98\x73 |0
+<UE967> \x98\x74 |0
+<UE968> \x98\x75 |0
+<UE969> \x98\x76 |0
+<UE96A> \x98\x77 |0
+<UE96B> \x98\x78 |0
+<UE96C> \x98\x79 |0
+<UE96D> \x98\x7A |0
+<UE96E> \x98\x7B |0
+<UE96F> \x98\x7C |0
+<UE970> \x98\x7D |0
+<UE971> \x98\x7E |0
+<UE972> \x98\xA1 |0
+<UE973> \x98\xA2 |0
+<UE974> \x98\xA3 |0
+<UE975> \x98\xA4 |0
+<UE976> \x98\xA5 |0
+<UE977> \x98\xA6 |0
+<UE978> \x98\xA7 |0
+<UE979> \x98\xA8 |0
+<UE97A> \x98\xA9 |0
+<UE97B> \x98\xAA |0
+<UE97C> \x98\xAB |0
+<UE97D> \x98\xAC |0
+<UE97E> \x98\xAD |0
+<UE97F> \x98\xAE |0
+<UE980> \x98\xAF |0
+<UE981> \x98\xB0 |0
+<UE982> \x98\xB1 |0
+<UE983> \x98\xB2 |0
+<UE984> \x98\xB3 |0
+<UE985> \x98\xB4 |0
+<UE986> \x98\xB5 |0
+<UE987> \x98\xB6 |0
+<UE988> \x98\xB7 |0
+<UE989> \x98\xB8 |0
+<UE98A> \x98\xB9 |0
+<UE98B> \x98\xBA |0
+<UE98C> \x98\xBB |0
+<UE98D> \x98\xBC |0
+<UE98E> \x98\xBD |0
+<UE98F> \x98\xBE |0
+<UE990> \x98\xBF |0
+<UE991> \x98\xC0 |0
+<UE992> \x98\xC1 |0
+<UE993> \x98\xC2 |0
+<UE994> \x98\xC3 |0
+<UE995> \x98\xC4 |0
+<UE996> \x98\xC5 |0
+<UE997> \x98\xC6 |0
+<UE998> \x98\xC7 |0
+<UE999> \x98\xC8 |0
+<UE99A> \x98\xC9 |0
+<UE99B> \x98\xCA |0
+<UE99C> \x98\xCB |0
+<UE99D> \x98\xCC |0
+<UE99E> \x98\xCD |0
+<UE99F> \x98\xCE |0
+<UE9A0> \x98\xCF |0
+<UE9A1> \x98\xD0 |0
+<UE9A2> \x98\xD1 |0
+<UE9A3> \x98\xD2 |0
+<UE9A4> \x98\xD3 |0
+<UE9A5> \x98\xD4 |0
+<UE9A6> \x98\xD5 |0
+<UE9A7> \x98\xD6 |0
+<UE9A8> \x98\xD7 |0
+<UE9A9> \x98\xD8 |0
+<UE9AA> \x98\xD9 |0
+<UE9AB> \x98\xDA |0
+<UE9AC> \x98\xDB |0
+<UE9AD> \x98\xDC |0
+<UE9AE> \x98\xDD |0
+<UE9AF> \x98\xDE |0
+<UE9B0> \x98\xDF |0
+<UE9B1> \x98\xE0 |0
+<UE9B2> \x98\xE1 |0
+<UE9B3> \x98\xE2 |0
+<UE9B4> \x98\xE3 |0
+<UE9B5> \x98\xE4 |0
+<UE9B6> \x98\xE5 |0
+<UE9B7> \x98\xE6 |0
+<UE9B8> \x98\xE7 |0
+<UE9B9> \x98\xE8 |0
+<UE9BA> \x98\xE9 |0
+<UE9BB> \x98\xEA |0
+<UE9BC> \x98\xEB |0
+<UE9BD> \x98\xEC |0
+<UE9BE> \x98\xED |0
+<UE9BF> \x98\xEE |0
+<UE9C0> \x98\xEF |0
+<UE9C1> \x98\xF0 |0
+<UE9C2> \x98\xF1 |0
+<UE9C3> \x98\xF2 |0
+<UE9C4> \x98\xF3 |0
+<UE9C5> \x98\xF4 |0
+<UE9C6> \x98\xF5 |0
+<UE9C7> \x98\xF6 |0
+<UE9C8> \x98\xF7 |0
+<UE9C9> \x98\xF8 |0
+<UE9CA> \x98\xF9 |0
+<UE9CB> \x98\xFA |0
+<UE9CC> \x98\xFB |0
+<UE9CD> \x98\xFC |0
+<UE9CE> \x98\xFD |0
+<UE9CF> \x98\xFE |0
+<UE9D0> \x99\x40 |0
+<UE9D1> \x99\x41 |0
+<UE9D2> \x99\x42 |0
+<UE9D3> \x99\x43 |0
+<UE9D4> \x99\x44 |0
+<UE9D5> \x99\x45 |0
+<UE9D6> \x99\x46 |0
+<UE9D7> \x99\x47 |0
+<UE9D8> \x99\x48 |0
+<UE9D9> \x99\x49 |0
+<UE9DA> \x99\x4A |0
+<UE9DB> \x99\x4B |0
+<UE9DC> \x99\x4C |0
+<UE9DD> \x99\x4D |0
+<UE9DE> \x99\x4E |0
+<UE9DF> \x99\x4F |0
+<UE9E0> \x99\x50 |0
+<UE9E1> \x99\x51 |0
+<UE9E2> \x99\x52 |0
+<UE9E3> \x99\x53 |0
+<UE9E4> \x99\x54 |0
+<UE9E5> \x99\x55 |0
+<UE9E6> \x99\x56 |0
+<UE9E7> \x99\x57 |0
+<UE9E8> \x99\x58 |0
+<UE9E9> \x99\x59 |0
+<UE9EA> \x99\x5A |0
+<UE9EB> \x99\x5B |0
+<UE9EC> \x99\x5C |0
+<UE9ED> \x99\x5D |0
+<UE9EE> \x99\x5E |0
+<UE9EF> \x99\x5F |0
+<UE9F0> \x99\x60 |0
+<UE9F1> \x99\x61 |0
+<UE9F2> \x99\x62 |0
+<UE9F3> \x99\x63 |0
+<UE9F4> \x99\x64 |0
+<UE9F5> \x99\x65 |0
+<UE9F6> \x99\x66 |0
+<UE9F7> \x99\x67 |0
+<UE9F8> \x99\x68 |0
+<UE9F9> \x99\x69 |0
+<UE9FA> \x99\x6A |0
+<UE9FB> \x99\x6B |0
+<UE9FC> \x99\x6C |0
+<UE9FD> \x99\x6D |0
+<UE9FE> \x99\x6E |0
+<UE9FF> \x99\x6F |0
+<UEA00> \x99\x70 |0
+<UEA01> \x99\x71 |0
+<UEA02> \x99\x72 |0
+<UEA03> \x99\x73 |0
+<UEA04> \x99\x74 |0
+<UEA05> \x99\x75 |0
+<UEA06> \x99\x76 |0
+<UEA07> \x99\x77 |0
+<UEA08> \x99\x78 |0
+<UEA09> \x99\x79 |0
+<UEA0A> \x99\x7A |0
+<UEA0B> \x99\x7B |0
+<UEA0C> \x99\x7C |0
+<UEA0D> \x99\x7D |0
+<UEA0E> \x99\x7E |0
+<UEA0F> \x99\xA1 |0
+<UEA10> \x99\xA2 |0
+<UEA11> \x99\xA3 |0
+<UEA12> \x99\xA4 |0
+<UEA13> \x99\xA5 |0
+<UEA14> \x99\xA6 |0
+<UEA15> \x99\xA7 |0
+<UEA16> \x99\xA8 |0
+<UEA17> \x99\xA9 |0
+<UEA18> \x99\xAA |0
+<UEA19> \x99\xAB |0
+<UEA1A> \x99\xAC |0
+<UEA1B> \x99\xAD |0
+<UEA1C> \x99\xAE |0
+<UEA1D> \x99\xAF |0
+<UEA1E> \x99\xB0 |0
+<UEA1F> \x99\xB1 |0
+<UEA20> \x99\xB2 |0
+<UEA21> \x99\xB3 |0
+<UEA22> \x99\xB4 |0
+<UEA23> \x99\xB5 |0
+<UEA24> \x99\xB6 |0
+<UEA25> \x99\xB7 |0
+<UEA26> \x99\xB8 |0
+<UEA27> \x99\xB9 |0
+<UEA28> \x99\xBA |0
+<UEA29> \x99\xBB |0
+<UEA2A> \x99\xBC |0
+<UEA2B> \x99\xBD |0
+<UEA2C> \x99\xBE |0
+<UEA2D> \x99\xBF |0
+<UEA2E> \x99\xC0 |0
+<UEA2F> \x99\xC1 |0
+<UEA30> \x99\xC2 |0
+<UEA31> \x99\xC3 |0
+<UEA32> \x99\xC4 |0
+<UEA33> \x99\xC5 |0
+<UEA34> \x99\xC6 |0
+<UEA35> \x99\xC7 |0
+<UEA36> \x99\xC8 |0
+<UEA37> \x99\xC9 |0
+<UEA38> \x99\xCA |0
+<UEA39> \x99\xCB |0
+<UEA3A> \x99\xCC |0
+<UEA3B> \x99\xCD |0
+<UEA3C> \x99\xCE |0
+<UEA3D> \x99\xCF |0
+<UEA3E> \x99\xD0 |0
+<UEA3F> \x99\xD1 |0
+<UEA40> \x99\xD2 |0
+<UEA41> \x99\xD3 |0
+<UEA42> \x99\xD4 |0
+<UEA43> \x99\xD5 |0
+<UEA44> \x99\xD6 |0
+<UEA45> \x99\xD7 |0
+<UEA46> \x99\xD8 |0
+<UEA47> \x99\xD9 |0
+<UEA48> \x99\xDA |0
+<UEA49> \x99\xDB |0
+<UEA4A> \x99\xDC |0
+<UEA4B> \x99\xDD |0
+<UEA4C> \x99\xDE |0
+<UEA4D> \x99\xDF |0
+<UEA4E> \x99\xE0 |0
+<UEA4F> \x99\xE1 |0
+<UEA50> \x99\xE2 |0
+<UEA51> \x99\xE3 |0
+<UEA52> \x99\xE4 |0
+<UEA53> \x99\xE5 |0
+<UEA54> \x99\xE6 |0
+<UEA55> \x99\xE7 |0
+<UEA56> \x99\xE8 |0
+<UEA57> \x99\xE9 |0
+<UEA58> \x99\xEA |0
+<UEA59> \x99\xEB |0
+<UEA5A> \x99\xEC |0
+<UEA5B> \x99\xED |0
+<UEA5C> \x99\xEE |0
+<UEA5D> \x99\xEF |0
+<UEA5E> \x99\xF0 |0
+<UEA5F> \x99\xF1 |0
+<UEA60> \x99\xF2 |0
+<UEA61> \x99\xF3 |0
+<UEA62> \x99\xF4 |0
+<UEA63> \x99\xF5 |0
+<UEA64> \x99\xF6 |0
+<UEA65> \x99\xF7 |0
+<UEA66> \x99\xF8 |0
+<UEA67> \x99\xF9 |0
+<UEA68> \x99\xFA |0
+<UEA69> \x99\xFB |0
+<UEA6A> \x99\xFC |0
+<UEA6B> \x99\xFD |0
+<UEA6C> \x99\xFE |0
+<UEA6D> \x9A\x40 |0
+<UEA6E> \x9A\x41 |0
+<UEA6F> \x9A\x42 |0
+<UEA70> \x9A\x43 |0
+<UEA71> \x9A\x44 |0
+<UEA72> \x9A\x45 |0
+<UEA73> \x9A\x46 |0
+<UEA74> \x9A\x47 |0
+<UEA75> \x9A\x48 |0
+<UEA76> \x9A\x49 |0
+<UEA77> \x9A\x4A |0
+<UEA78> \x9A\x4B |0
+<UEA79> \x9A\x4C |0
+<UEA7A> \x9A\x4D |0
+<UEA7B> \x9A\x4E |0
+<UEA7C> \x9A\x4F |0
+<UEA7D> \x9A\x50 |0
+<UEA7E> \x9A\x51 |0
+<UEA7F> \x9A\x52 |0
+<UEA80> \x9A\x53 |0
+<UEA81> \x9A\x54 |0
+<UEA82> \x9A\x55 |0
+<UEA83> \x9A\x56 |0
+<UEA84> \x9A\x57 |0
+<UEA85> \x9A\x58 |0
+<UEA86> \x9A\x59 |0
+<UEA87> \x9A\x5A |0
+<UEA88> \x9A\x5B |0
+<UEA89> \x9A\x5C |0
+<UEA8A> \x9A\x5D |0
+<UEA8B> \x9A\x5E |0
+<UEA8C> \x9A\x5F |0
+<UEA8D> \x9A\x60 |0
+<UEA8E> \x9A\x61 |0
+<UEA8F> \x9A\x62 |0
+<UEA90> \x9A\x63 |0
+<UEA91> \x9A\x64 |0
+<UEA92> \x9A\x65 |0
+<UEA93> \x9A\x66 |0
+<UEA94> \x9A\x67 |0
+<UEA95> \x9A\x68 |0
+<UEA96> \x9A\x69 |0
+<UEA97> \x9A\x6A |0
+<UEA98> \x9A\x6B |0
+<UEA99> \x9A\x6C |0
+<UEA9A> \x9A\x6D |0
+<UEA9B> \x9A\x6E |0
+<UEA9C> \x9A\x6F |0
+<UEA9D> \x9A\x70 |0
+<UEA9E> \x9A\x71 |0
+<UEA9F> \x9A\x72 |0
+<UEAA0> \x9A\x73 |0
+<UEAA1> \x9A\x74 |0
+<UEAA2> \x9A\x75 |0
+<UEAA3> \x9A\x76 |0
+<UEAA4> \x9A\x77 |0
+<UEAA5> \x9A\x78 |0
+<UEAA6> \x9A\x79 |0
+<UEAA7> \x9A\x7A |0
+<UEAA8> \x9A\x7B |0
+<UEAA9> \x9A\x7C |0
+<UEAAA> \x9A\x7D |0
+<UEAAB> \x9A\x7E |0
+<UEAAC> \x9A\xA1 |0
+<UEAAD> \x9A\xA2 |0
+<UEAAE> \x9A\xA3 |0
+<UEAAF> \x9A\xA4 |0
+<UEAB0> \x9A\xA5 |0
+<UEAB1> \x9A\xA6 |0
+<UEAB2> \x9A\xA7 |0
+<UEAB3> \x9A\xA8 |0
+<UEAB4> \x9A\xA9 |0
+<UEAB5> \x9A\xAA |0
+<UEAB6> \x9A\xAB |0
+<UEAB7> \x9A\xAC |0
+<UEAB8> \x9A\xAD |0
+<UEAB9> \x9A\xAE |0
+<UEABA> \x9A\xAF |0
+<UEABB> \x9A\xB0 |0
+<UEABC> \x9A\xB1 |0
+<UEABD> \x9A\xB2 |0
+<UEABE> \x9A\xB3 |0
+<UEABF> \x9A\xB4 |0
+<UEAC0> \x9A\xB5 |0
+<UEAC1> \x9A\xB6 |0
+<UEAC2> \x9A\xB7 |0
+<UEAC3> \x9A\xB8 |0
+<UEAC4> \x9A\xB9 |0
+<UEAC5> \x9A\xBA |0
+<UEAC6> \x9A\xBB |0
+<UEAC7> \x9A\xBC |0
+<UEAC8> \x9A\xBD |0
+<UEAC9> \x9A\xBE |0
+<UEACA> \x9A\xBF |0
+<UEACB> \x9A\xC0 |0
+<UEACC> \x9A\xC1 |0
+<UEACD> \x9A\xC2 |0
+<UEACE> \x9A\xC3 |0
+<UEACF> \x9A\xC4 |0
+<UEAD0> \x9A\xC5 |0
+<UEAD1> \x9A\xC6 |0
+<UEAD2> \x9A\xC7 |0
+<UEAD3> \x9A\xC8 |0
+<UEAD4> \x9A\xC9 |0
+<UEAD5> \x9A\xCA |0
+<UEAD6> \x9A\xCB |0
+<UEAD7> \x9A\xCC |0
+<UEAD8> \x9A\xCD |0
+<UEAD9> \x9A\xCE |0
+<UEADA> \x9A\xCF |0
+<UEADB> \x9A\xD0 |0
+<UEADC> \x9A\xD1 |0
+<UEADD> \x9A\xD2 |0
+<UEADE> \x9A\xD3 |0
+<UEADF> \x9A\xD4 |0
+<UEAE0> \x9A\xD5 |0
+<UEAE1> \x9A\xD6 |0
+<UEAE2> \x9A\xD7 |0
+<UEAE3> \x9A\xD8 |0
+<UEAE4> \x9A\xD9 |0
+<UEAE5> \x9A\xDA |0
+<UEAE6> \x9A\xDB |0
+<UEAE7> \x9A\xDC |0
+<UEAE8> \x9A\xDD |0
+<UEAE9> \x9A\xDE |0
+<UEAEA> \x9A\xDF |0
+<UEAEB> \x9A\xE0 |0
+<UEAEC> \x9A\xE1 |0
+<UEAED> \x9A\xE2 |0
+<UEAEE> \x9A\xE3 |0
+<UEAEF> \x9A\xE4 |0
+<UEAF0> \x9A\xE5 |0
+<UEAF1> \x9A\xE6 |0
+<UEAF2> \x9A\xE7 |0
+<UEAF3> \x9A\xE8 |0
+<UEAF4> \x9A\xE9 |0
+<UEAF5> \x9A\xEA |0
+<UEAF6> \x9A\xEB |0
+<UEAF7> \x9A\xEC |0
+<UEAF8> \x9A\xED |0
+<UEAF9> \x9A\xEE |0
+<UEAFA> \x9A\xEF |0
+<UEAFB> \x9A\xF0 |0
+<UEAFC> \x9A\xF1 |0
+<UEAFD> \x9A\xF2 |0
+<UEAFE> \x9A\xF3 |0
+<UEAFF> \x9A\xF4 |0
+<UEB00> \x9A\xF5 |0
+<UEB01> \x9A\xF6 |0
+<UEB02> \x9A\xF7 |0
+<UEB03> \x9A\xF8 |0
+<UEB04> \x9A\xF9 |0
+<UEB05> \x9A\xFA |0
+<UEB06> \x9A\xFB |0
+<UEB07> \x9A\xFC |0
+<UEB08> \x9A\xFD |0
+<UEB09> \x9A\xFE |0
+<UEB0A> \x9B\x40 |0
+<UEB0B> \x9B\x41 |0
+<UEB0C> \x9B\x42 |0
+<UEB0D> \x9B\x43 |0
+<UEB0E> \x9B\x44 |0
+<UEB0F> \x9B\x45 |0
+<UEB10> \x9B\x46 |0
+<UEB11> \x9B\x47 |0
+<UEB12> \x9B\x48 |0
+<UEB13> \x9B\x49 |0
+<UEB14> \x9B\x4A |0
+<UEB15> \x9B\x4B |0
+<UEB16> \x9B\x4C |0
+<UEB17> \x9B\x4D |0
+<UEB18> \x9B\x4E |0
+<UEB19> \x9B\x4F |0
+<UEB1A> \x9B\x50 |0
+<UEB1B> \x9B\x51 |0
+<UEB1C> \x9B\x52 |0
+<UEB1D> \x9B\x53 |0
+<UEB1E> \x9B\x54 |0
+<UEB1F> \x9B\x55 |0
+<UEB20> \x9B\x56 |0
+<UEB21> \x9B\x57 |0
+<UEB22> \x9B\x58 |0
+<UEB23> \x9B\x59 |0
+<UEB24> \x9B\x5A |0
+<UEB25> \x9B\x5B |0
+<UEB26> \x9B\x5C |0
+<UEB27> \x9B\x5D |0
+<UEB28> \x9B\x5E |0
+<UEB29> \x9B\x5F |0
+<UEB2A> \x9B\x60 |0
+<UEB2B> \x9B\x61 |0
+<UEB2C> \x9B\x62 |0
+<UEB2D> \x9B\x63 |0
+<UEB2E> \x9B\x64 |0
+<UEB2F> \x9B\x65 |0
+<UEB30> \x9B\x66 |0
+<UEB31> \x9B\x67 |0
+<UEB32> \x9B\x68 |0
+<UEB33> \x9B\x69 |0
+<UEB34> \x9B\x6A |0
+<UEB35> \x9B\x6B |0
+<UEB36> \x9B\x6C |0
+<UEB37> \x9B\x6D |0
+<UEB38> \x9B\x6E |0
+<UEB39> \x9B\x6F |0
+<UEB3A> \x9B\x70 |0
+<UEB3B> \x9B\x71 |0
+<UEB3C> \x9B\x72 |0
+<UEB3D> \x9B\x73 |0
+<UEB3E> \x9B\x74 |0
+<UEB3F> \x9B\x75 |0
+<UEB40> \x9B\x76 |0
+<UEB41> \x9B\x77 |0
+<UEB42> \x9B\x78 |0
+<UEB43> \x9B\x79 |0
+<UEB44> \x9B\x7A |0
+<UEB45> \x9B\x7B |0
+<UEB46> \x9B\x7C |0
+<UEB47> \x9B\x7D |0
+<UEB48> \x9B\x7E |0
+<UEB49> \x9B\xA1 |0
+<UEB4A> \x9B\xA2 |0
+<UEB4B> \x9B\xA3 |0
+<UEB4C> \x9B\xA4 |0
+<UEB4D> \x9B\xA5 |0
+<UEB4E> \x9B\xA6 |0
+<UEB4F> \x9B\xA7 |0
+<UEB50> \x9B\xA8 |0
+<UEB51> \x9B\xA9 |0
+<UEB52> \x9B\xAA |0
+<UEB53> \x9B\xAB |0
+<UEB54> \x9B\xAC |0
+<UEB55> \x9B\xAD |0
+<UEB56> \x9B\xAE |0
+<UEB57> \x9B\xAF |0
+<UEB58> \x9B\xB0 |0
+<UEB59> \x9B\xB1 |0
+<UEB5A> \x9B\xB2 |0
+<UEB5B> \x9B\xB3 |0
+<UEB5C> \x9B\xB4 |0
+<UEB5D> \x9B\xB5 |0
+<UEB5E> \x9B\xB6 |0
+<UEB5F> \x9B\xB7 |0
+<UEB60> \x9B\xB8 |0
+<UEB61> \x9B\xB9 |0
+<UEB62> \x9B\xBA |0
+<UEB63> \x9B\xBB |0
+<UEB64> \x9B\xBC |0
+<UEB65> \x9B\xBD |0
+<UEB66> \x9B\xBE |0
+<UEB67> \x9B\xBF |0
+<UEB68> \x9B\xC0 |0
+<UEB69> \x9B\xC1 |0
+<UEB6A> \x9B\xC2 |0
+<UEB6B> \x9B\xC3 |0
+<UEB6C> \x9B\xC4 |0
+<UEB6D> \x9B\xC5 |0
+<UEB6E> \x9B\xC6 |0
+<UEB6F> \x9B\xC7 |0
+<UEB70> \x9B\xC8 |0
+<UEB71> \x9B\xC9 |0
+<UEB72> \x9B\xCA |0
+<UEB73> \x9B\xCB |0
+<UEB74> \x9B\xCC |0
+<UEB75> \x9B\xCD |0
+<UEB76> \x9B\xCE |0
+<UEB77> \x9B\xCF |0
+<UEB78> \x9B\xD0 |0
+<UEB79> \x9B\xD1 |0
+<UEB7A> \x9B\xD2 |0
+<UEB7B> \x9B\xD3 |0
+<UEB7C> \x9B\xD4 |0
+<UEB7D> \x9B\xD5 |0
+<UEB7E> \x9B\xD6 |0
+<UEB7F> \x9B\xD7 |0
+<UEB80> \x9B\xD8 |0
+<UEB81> \x9B\xD9 |0
+<UEB82> \x9B\xDA |0
+<UEB83> \x9B\xDB |0
+<UEB84> \x9B\xDC |0
+<UEB85> \x9B\xDD |0
+<UEB86> \x9B\xDE |0
+<UEB87> \x9B\xDF |0
+<UEB88> \x9B\xE0 |0
+<UEB89> \x9B\xE1 |0
+<UEB8A> \x9B\xE2 |0
+<UEB8B> \x9B\xE3 |0
+<UEB8C> \x9B\xE4 |0
+<UEB8D> \x9B\xE5 |0
+<UEB8E> \x9B\xE6 |0
+<UEB8F> \x9B\xE7 |0
+<UEB90> \x9B\xE8 |0
+<UEB91> \x9B\xE9 |0
+<UEB92> \x9B\xEA |0
+<UEB93> \x9B\xEB |0
+<UEB94> \x9B\xEC |0
+<UEB95> \x9B\xED |0
+<UEB96> \x9B\xEE |0
+<UEB97> \x9B\xEF |0
+<UEB98> \x9B\xF0 |0
+<UEB99> \x9B\xF1 |0
+<UEB9A> \x9B\xF2 |0
+<UEB9B> \x9B\xF3 |0
+<UEB9C> \x9B\xF4 |0
+<UEB9D> \x9B\xF5 |0
+<UEB9E> \x9B\xF6 |0
+<UEB9F> \x9B\xF7 |0
+<UEBA0> \x9B\xF8 |0
+<UEBA1> \x9B\xF9 |0
+<UEBA2> \x9B\xFA |0
+<UEBA3> \x9B\xFB |0
+<UEBA4> \x9B\xFC |0
+<UEBA5> \x9B\xFD |0
+<UEBA6> \x9B\xFE |0
+<UEBA7> \x9C\x40 |0
+<UEBA8> \x9C\x41 |0
+<UEBA9> \x9C\x42 |0
+<UEBAA> \x9C\x43 |0
+<UEBAB> \x9C\x44 |0
+<UEBAC> \x9C\x45 |0
+<UEBAD> \x9C\x46 |0
+<UEBAE> \x9C\x47 |0
+<UEBAF> \x9C\x48 |0
+<UEBB0> \x9C\x49 |0
+<UEBB1> \x9C\x4A |0
+<UEBB2> \x9C\x4B |0
+<UEBB3> \x9C\x4C |0
+<UEBB4> \x9C\x4D |0
+<UEBB5> \x9C\x4E |0
+<UEBB6> \x9C\x4F |0
+<UEBB7> \x9C\x50 |0
+<UEBB8> \x9C\x51 |0
+<UEBB9> \x9C\x52 |0
+<UEBBA> \x9C\x53 |0
+<UEBBB> \x9C\x54 |0
+<UEBBC> \x9C\x55 |0
+<UEBBD> \x9C\x56 |0
+<UEBBE> \x9C\x57 |0
+<UEBBF> \x9C\x58 |0
+<UEBC0> \x9C\x59 |0
+<UEBC1> \x9C\x5A |0
+<UEBC2> \x9C\x5B |0
+<UEBC3> \x9C\x5C |0
+<UEBC4> \x9C\x5D |0
+<UEBC5> \x9C\x5E |0
+<UEBC6> \x9C\x5F |0
+<UEBC7> \x9C\x60 |0
+<UEBC8> \x9C\x61 |0
+<UEBC9> \x9C\x62 |0
+<UEBCA> \x9C\x63 |0
+<UEBCB> \x9C\x64 |0
+<UEBCC> \x9C\x65 |0
+<UEBCD> \x9C\x66 |0
+<UEBCE> \x9C\x67 |0
+<UEBCF> \x9C\x68 |0
+<UEBD0> \x9C\x69 |0
+<UEBD1> \x9C\x6A |0
+<UEBD2> \x9C\x6B |0
+<UEBD3> \x9C\x6C |0
+<UEBD4> \x9C\x6D |0
+<UEBD5> \x9C\x6E |0
+<UEBD6> \x9C\x6F |0
+<UEBD7> \x9C\x70 |0
+<UEBD8> \x9C\x71 |0
+<UEBD9> \x9C\x72 |0
+<UEBDA> \x9C\x73 |0
+<UEBDB> \x9C\x74 |0
+<UEBDC> \x9C\x75 |0
+<UEBDD> \x9C\x76 |0
+<UEBDE> \x9C\x77 |0
+<UEBDF> \x9C\x78 |0
+<UEBE0> \x9C\x79 |0
+<UEBE1> \x9C\x7A |0
+<UEBE2> \x9C\x7B |0
+<UEBE3> \x9C\x7C |0
+<UEBE4> \x9C\x7D |0
+<UEBE5> \x9C\x7E |0
+<UEBE6> \x9C\xA1 |0
+<UEBE7> \x9C\xA2 |0
+<UEBE8> \x9C\xA3 |0
+<UEBE9> \x9C\xA4 |0
+<UEBEA> \x9C\xA5 |0
+<UEBEB> \x9C\xA6 |0
+<UEBEC> \x9C\xA7 |0
+<UEBED> \x9C\xA8 |0
+<UEBEE> \x9C\xA9 |0
+<UEBEF> \x9C\xAA |0
+<UEBF0> \x9C\xAB |0
+<UEBF1> \x9C\xAC |0
+<UEBF2> \x9C\xAD |0
+<UEBF3> \x9C\xAE |0
+<UEBF4> \x9C\xAF |0
+<UEBF5> \x9C\xB0 |0
+<UEBF6> \x9C\xB1 |0
+<UEBF7> \x9C\xB2 |0
+<UEBF8> \x9C\xB3 |0
+<UEBF9> \x9C\xB4 |0
+<UEBFA> \x9C\xB5 |0
+<UEBFB> \x9C\xB6 |0
+<UEBFC> \x9C\xB7 |0
+<UEBFD> \x9C\xB8 |0
+<UEBFE> \x9C\xB9 |0
+<UEBFF> \x9C\xBA |0
+<UEC00> \x9C\xBB |0
+<UEC01> \x9C\xBC |0
+<UEC02> \x9C\xBD |0
+<UEC03> \x9C\xBE |0
+<UEC04> \x9C\xBF |0
+<UEC05> \x9C\xC0 |0
+<UEC06> \x9C\xC1 |0
+<UEC07> \x9C\xC2 |0
+<UEC08> \x9C\xC3 |0
+<UEC09> \x9C\xC4 |0
+<UEC0A> \x9C\xC5 |0
+<UEC0B> \x9C\xC6 |0
+<UEC0C> \x9C\xC7 |0
+<UEC0D> \x9C\xC8 |0
+<UEC0E> \x9C\xC9 |0
+<UEC0F> \x9C\xCA |0
+<UEC10> \x9C\xCB |0
+<UEC11> \x9C\xCC |0
+<UEC12> \x9C\xCD |0
+<UEC13> \x9C\xCE |0
+<UEC14> \x9C\xCF |0
+<UEC15> \x9C\xD0 |0
+<UEC16> \x9C\xD1 |0
+<UEC17> \x9C\xD2 |0
+<UEC18> \x9C\xD3 |0
+<UEC19> \x9C\xD4 |0
+<UEC1A> \x9C\xD5 |0
+<UEC1B> \x9C\xD6 |0
+<UEC1C> \x9C\xD7 |0
+<UEC1D> \x9C\xD8 |0
+<UEC1E> \x9C\xD9 |0
+<UEC1F> \x9C\xDA |0
+<UEC20> \x9C\xDB |0
+<UEC21> \x9C\xDC |0
+<UEC22> \x9C\xDD |0
+<UEC23> \x9C\xDE |0
+<UEC24> \x9C\xDF |0
+<UEC25> \x9C\xE0 |0
+<UEC26> \x9C\xE1 |0
+<UEC27> \x9C\xE2 |0
+<UEC28> \x9C\xE3 |0
+<UEC29> \x9C\xE4 |0
+<UEC2A> \x9C\xE5 |0
+<UEC2B> \x9C\xE6 |0
+<UEC2C> \x9C\xE7 |0
+<UEC2D> \x9C\xE8 |0
+<UEC2E> \x9C\xE9 |0
+<UEC2F> \x9C\xEA |0
+<UEC30> \x9C\xEB |0
+<UEC31> \x9C\xEC |0
+<UEC32> \x9C\xED |0
+<UEC33> \x9C\xEE |0
+<UEC34> \x9C\xEF |0
+<UEC35> \x9C\xF0 |0
+<UEC36> \x9C\xF1 |0
+<UEC37> \x9C\xF2 |0
+<UEC38> \x9C\xF3 |0
+<UEC39> \x9C\xF4 |0
+<UEC3A> \x9C\xF5 |0
+<UEC3B> \x9C\xF6 |0
+<UEC3C> \x9C\xF7 |0
+<UEC3D> \x9C\xF8 |0
+<UEC3E> \x9C\xF9 |0
+<UEC3F> \x9C\xFA |0
+<UEC40> \x9C\xFB |0
+<UEC41> \x9C\xFC |0
+<UEC42> \x9C\xFD |0
+<UEC43> \x9C\xFE |0
+<UEC44> \x9D\x40 |0
+<UEC45> \x9D\x41 |0
+<UEC46> \x9D\x42 |0
+<UEC47> \x9D\x43 |0
+<UEC48> \x9D\x44 |0
+<UEC49> \x9D\x45 |0
+<UEC4A> \x9D\x46 |0
+<UEC4B> \x9D\x47 |0
+<UEC4C> \x9D\x48 |0
+<UEC4D> \x9D\x49 |0
+<UEC4E> \x9D\x4A |0
+<UEC4F> \x9D\x4B |0
+<UEC50> \x9D\x4C |0
+<UEC51> \x9D\x4D |0
+<UEC52> \x9D\x4E |0
+<UEC53> \x9D\x4F |0
+<UEC54> \x9D\x50 |0
+<UEC55> \x9D\x51 |0
+<UEC56> \x9D\x52 |0
+<UEC57> \x9D\x53 |0
+<UEC58> \x9D\x54 |0
+<UEC59> \x9D\x55 |0
+<UEC5A> \x9D\x56 |0
+<UEC5B> \x9D\x57 |0
+<UEC5C> \x9D\x58 |0
+<UEC5D> \x9D\x59 |0
+<UEC5E> \x9D\x5A |0
+<UEC5F> \x9D\x5B |0
+<UEC60> \x9D\x5C |0
+<UEC61> \x9D\x5D |0
+<UEC62> \x9D\x5E |0
+<UEC63> \x9D\x5F |0
+<UEC64> \x9D\x60 |0
+<UEC65> \x9D\x61 |0
+<UEC66> \x9D\x62 |0
+<UEC67> \x9D\x63 |0
+<UEC68> \x9D\x64 |0
+<UEC69> \x9D\x65 |0
+<UEC6A> \x9D\x66 |0
+<UEC6B> \x9D\x67 |0
+<UEC6C> \x9D\x68 |0
+<UEC6D> \x9D\x69 |0
+<UEC6E> \x9D\x6A |0
+<UEC6F> \x9D\x6B |0
+<UEC70> \x9D\x6C |0
+<UEC71> \x9D\x6D |0
+<UEC72> \x9D\x6E |0
+<UEC73> \x9D\x6F |0
+<UEC74> \x9D\x70 |0
+<UEC75> \x9D\x71 |0
+<UEC76> \x9D\x72 |0
+<UEC77> \x9D\x73 |0
+<UEC78> \x9D\x74 |0
+<UEC79> \x9D\x75 |0
+<UEC7A> \x9D\x76 |0
+<UEC7B> \x9D\x77 |0
+<UEC7C> \x9D\x78 |0
+<UEC7D> \x9D\x79 |0
+<UEC7E> \x9D\x7A |0
+<UEC7F> \x9D\x7B |0
+<UEC80> \x9D\x7C |0
+<UEC81> \x9D\x7D |0
+<UEC82> \x9D\x7E |0
+<UEC83> \x9D\xA1 |0
+<UEC84> \x9D\xA2 |0
+<UEC85> \x9D\xA3 |0
+<UEC86> \x9D\xA4 |0
+<UEC87> \x9D\xA5 |0
+<UEC88> \x9D\xA6 |0
+<UEC89> \x9D\xA7 |0
+<UEC8A> \x9D\xA8 |0
+<UEC8B> \x9D\xA9 |0
+<UEC8C> \x9D\xAA |0
+<UEC8D> \x9D\xAB |0
+<UEC8E> \x9D\xAC |0
+<UEC8F> \x9D\xAD |0
+<UEC90> \x9D\xAE |0
+<UEC91> \x9D\xAF |0
+<UEC92> \x9D\xB0 |0
+<UEC93> \x9D\xB1 |0
+<UEC94> \x9D\xB2 |0
+<UEC95> \x9D\xB3 |0
+<UEC96> \x9D\xB4 |0
+<UEC97> \x9D\xB5 |0
+<UEC98> \x9D\xB6 |0
+<UEC99> \x9D\xB7 |0
+<UEC9A> \x9D\xB8 |0
+<UEC9B> \x9D\xB9 |0
+<UEC9C> \x9D\xBA |0
+<UEC9D> \x9D\xBB |0
+<UEC9E> \x9D\xBC |0
+<UEC9F> \x9D\xBD |0
+<UECA0> \x9D\xBE |0
+<UECA1> \x9D\xBF |0
+<UECA2> \x9D\xC0 |0
+<UECA3> \x9D\xC1 |0
+<UECA4> \x9D\xC2 |0
+<UECA5> \x9D\xC3 |0
+<UECA6> \x9D\xC4 |0
+<UECA7> \x9D\xC5 |0
+<UECA8> \x9D\xC6 |0
+<UECA9> \x9D\xC7 |0
+<UECAA> \x9D\xC8 |0
+<UECAB> \x9D\xC9 |0
+<UECAC> \x9D\xCA |0
+<UECAD> \x9D\xCB |0
+<UECAE> \x9D\xCC |0
+<UECAF> \x9D\xCD |0
+<UECB0> \x9D\xCE |0
+<UECB1> \x9D\xCF |0
+<UECB2> \x9D\xD0 |0
+<UECB3> \x9D\xD1 |0
+<UECB4> \x9D\xD2 |0
+<UECB5> \x9D\xD3 |0
+<UECB6> \x9D\xD4 |0
+<UECB7> \x9D\xD5 |0
+<UECB8> \x9D\xD6 |0
+<UECB9> \x9D\xD7 |0
+<UECBA> \x9D\xD8 |0
+<UECBB> \x9D\xD9 |0
+<UECBC> \x9D\xDA |0
+<UECBD> \x9D\xDB |0
+<UECBE> \x9D\xDC |0
+<UECBF> \x9D\xDD |0
+<UECC0> \x9D\xDE |0
+<UECC1> \x9D\xDF |0
+<UECC2> \x9D\xE0 |0
+<UECC3> \x9D\xE1 |0
+<UECC4> \x9D\xE2 |0
+<UECC5> \x9D\xE3 |0
+<UECC6> \x9D\xE4 |0
+<UECC7> \x9D\xE5 |0
+<UECC8> \x9D\xE6 |0
+<UECC9> \x9D\xE7 |0
+<UECCA> \x9D\xE8 |0
+<UECCB> \x9D\xE9 |0
+<UECCC> \x9D\xEA |0
+<UECCD> \x9D\xEB |0
+<UECCE> \x9D\xEC |0
+<UECCF> \x9D\xED |0
+<UECD0> \x9D\xEE |0
+<UECD1> \x9D\xEF |0
+<UECD2> \x9D\xF0 |0
+<UECD3> \x9D\xF1 |0
+<UECD4> \x9D\xF2 |0
+<UECD5> \x9D\xF3 |0
+<UECD6> \x9D\xF4 |0
+<UECD7> \x9D\xF5 |0
+<UECD8> \x9D\xF6 |0
+<UECD9> \x9D\xF7 |0
+<UECDA> \x9D\xF8 |0
+<UECDB> \x9D\xF9 |0
+<UECDC> \x9D\xFA |0
+<UECDD> \x9D\xFB |0
+<UECDE> \x9D\xFC |0
+<UECDF> \x9D\xFD |0
+<UECE0> \x9D\xFE |0
+<UECE1> \x9E\x40 |0
+<UECE2> \x9E\x41 |0
+<UECE3> \x9E\x42 |0
+<UECE4> \x9E\x43 |0
+<UECE5> \x9E\x44 |0
+<UECE6> \x9E\x45 |0
+<UECE7> \x9E\x46 |0
+<UECE8> \x9E\x47 |0
+<UECE9> \x9E\x48 |0
+<UECEA> \x9E\x49 |0
+<UECEB> \x9E\x4A |0
+<UECEC> \x9E\x4B |0
+<UECED> \x9E\x4C |0
+<UECEE> \x9E\x4D |0
+<UECEF> \x9E\x4E |0
+<UECF0> \x9E\x4F |0
+<UECF1> \x9E\x50 |0
+<UECF2> \x9E\x51 |0
+<UECF3> \x9E\x52 |0
+<UECF4> \x9E\x53 |0
+<UECF5> \x9E\x54 |0
+<UECF6> \x9E\x55 |0
+<UECF7> \x9E\x56 |0
+<UECF8> \x9E\x57 |0
+<UECF9> \x9E\x58 |0
+<UECFA> \x9E\x59 |0
+<UECFB> \x9E\x5A |0
+<UECFC> \x9E\x5B |0
+<UECFD> \x9E\x5C |0
+<UECFE> \x9E\x5D |0
+<UECFF> \x9E\x5E |0
+<UED00> \x9E\x5F |0
+<UED01> \x9E\x60 |0
+<UED02> \x9E\x61 |0
+<UED03> \x9E\x62 |0
+<UED04> \x9E\x63 |0
+<UED05> \x9E\x64 |0
+<UED06> \x9E\x65 |0
+<UED07> \x9E\x66 |0
+<UED08> \x9E\x67 |0
+<UED09> \x9E\x68 |0
+<UED0A> \x9E\x69 |0
+<UED0B> \x9E\x6A |0
+<UED0C> \x9E\x6B |0
+<UED0D> \x9E\x6C |0
+<UED0E> \x9E\x6D |0
+<UED0F> \x9E\x6E |0
+<UED10> \x9E\x6F |0
+<UED11> \x9E\x70 |0
+<UED12> \x9E\x71 |0
+<UED13> \x9E\x72 |0
+<UED14> \x9E\x73 |0
+<UED15> \x9E\x74 |0
+<UED16> \x9E\x75 |0
+<UED17> \x9E\x76 |0
+<UED18> \x9E\x77 |0
+<UED19> \x9E\x78 |0
+<UED1A> \x9E\x79 |0
+<UED1B> \x9E\x7A |0
+<UED1C> \x9E\x7B |0
+<UED1D> \x9E\x7C |0
+<UED1E> \x9E\x7D |0
+<UED1F> \x9E\x7E |0
+<UED20> \x9E\xA1 |0
+<UED21> \x9E\xA2 |0
+<UED22> \x9E\xA3 |0
+<UED23> \x9E\xA4 |0
+<UED24> \x9E\xA5 |0
+<UED25> \x9E\xA6 |0
+<UED26> \x9E\xA7 |0
+<UED27> \x9E\xA8 |0
+<UED28> \x9E\xA9 |0
+<UED29> \x9E\xAA |0
+<UED2A> \x9E\xAB |0
+<UED2B> \x9E\xAC |0
+<UED2C> \x9E\xAD |0
+<UED2D> \x9E\xAE |0
+<UED2E> \x9E\xAF |0
+<UED2F> \x9E\xB0 |0
+<UED30> \x9E\xB1 |0
+<UED31> \x9E\xB2 |0
+<UED32> \x9E\xB3 |0
+<UED33> \x9E\xB4 |0
+<UED34> \x9E\xB5 |0
+<UED35> \x9E\xB6 |0
+<UED36> \x9E\xB7 |0
+<UED37> \x9E\xB8 |0
+<UED38> \x9E\xB9 |0
+<UED39> \x9E\xBA |0
+<UED3A> \x9E\xBB |0
+<UED3B> \x9E\xBC |0
+<UED3C> \x9E\xBD |0
+<UED3D> \x9E\xBE |0
+<UED3E> \x9E\xBF |0
+<UED3F> \x9E\xC0 |0
+<UED40> \x9E\xC1 |0
+<UED41> \x9E\xC2 |0
+<UED42> \x9E\xC3 |0
+<UED43> \x9E\xC4 |0
+<UED44> \x9E\xC5 |0
+<UED45> \x9E\xC6 |0
+<UED46> \x9E\xC7 |0
+<UED47> \x9E\xC8 |0
+<UED48> \x9E\xC9 |0
+<UED49> \x9E\xCA |0
+<UED4A> \x9E\xCB |0
+<UED4B> \x9E\xCC |0
+<UED4C> \x9E\xCD |0
+<UED4D> \x9E\xCE |0
+<UED4E> \x9E\xCF |0
+<UED4F> \x9E\xD0 |0
+<UED50> \x9E\xD1 |0
+<UED51> \x9E\xD2 |0
+<UED52> \x9E\xD3 |0
+<UED53> \x9E\xD4 |0
+<UED54> \x9E\xD5 |0
+<UED55> \x9E\xD6 |0
+<UED56> \x9E\xD7 |0
+<UED57> \x9E\xD8 |0
+<UED58> \x9E\xD9 |0
+<UED59> \x9E\xDA |0
+<UED5A> \x9E\xDB |0
+<UED5B> \x9E\xDC |0
+<UED5C> \x9E\xDD |0
+<UED5D> \x9E\xDE |0
+<UED5E> \x9E\xDF |0
+<UED5F> \x9E\xE0 |0
+<UED60> \x9E\xE1 |0
+<UED61> \x9E\xE2 |0
+<UED62> \x9E\xE3 |0
+<UED63> \x9E\xE4 |0
+<UED64> \x9E\xE5 |0
+<UED65> \x9E\xE6 |0
+<UED66> \x9E\xE7 |0
+<UED67> \x9E\xE8 |0
+<UED68> \x9E\xE9 |0
+<UED69> \x9E\xEA |0
+<UED6A> \x9E\xEB |0
+<UED6B> \x9E\xEC |0
+<UED6C> \x9E\xED |0
+<UED6D> \x9E\xEE |0
+<UED6E> \x9E\xEF |0
+<UED6F> \x9E\xF0 |0
+<UED70> \x9E\xF1 |0
+<UED71> \x9E\xF2 |0
+<UED72> \x9E\xF3 |0
+<UED73> \x9E\xF4 |0
+<UED74> \x9E\xF5 |0
+<UED75> \x9E\xF6 |0
+<UED76> \x9E\xF7 |0
+<UED77> \x9E\xF8 |0
+<UED78> \x9E\xF9 |0
+<UED79> \x9E\xFA |0
+<UED7A> \x9E\xFB |0
+<UED7B> \x9E\xFC |0
+<UED7C> \x9E\xFD |0
+<UED7D> \x9E\xFE |0
+<UED7E> \x9F\x40 |0
+<UED7F> \x9F\x41 |0
+<UED80> \x9F\x42 |0
+<UED81> \x9F\x43 |0
+<UED82> \x9F\x44 |0
+<UED83> \x9F\x45 |0
+<UED84> \x9F\x46 |0
+<UED85> \x9F\x47 |0
+<UED86> \x9F\x48 |0
+<UED87> \x9F\x49 |0
+<UED88> \x9F\x4A |0
+<UED89> \x9F\x4B |0
+<UED8A> \x9F\x4C |0
+<UED8B> \x9F\x4D |0
+<UED8C> \x9F\x4E |0
+<UED8D> \x9F\x4F |0
+<UED8E> \x9F\x50 |0
+<UED8F> \x9F\x51 |0
+<UED90> \x9F\x52 |0
+<UED91> \x9F\x53 |0
+<UED92> \x9F\x54 |0
+<UED93> \x9F\x55 |0
+<UED94> \x9F\x56 |0
+<UED95> \x9F\x57 |0
+<UED96> \x9F\x58 |0
+<UED97> \x9F\x59 |0
+<UED98> \x9F\x5A |0
+<UED99> \x9F\x5B |0
+<UED9A> \x9F\x5C |0
+<UED9B> \x9F\x5D |0
+<UED9C> \x9F\x5E |0
+<UED9D> \x9F\x5F |0
+<UED9E> \x9F\x60 |0
+<UED9F> \x9F\x61 |0
+<UEDA0> \x9F\x62 |0
+<UEDA1> \x9F\x63 |0
+<UEDA2> \x9F\x64 |0
+<UEDA3> \x9F\x65 |0
+<UEDA4> \x9F\x66 |0
+<UEDA5> \x9F\x67 |0
+<UEDA6> \x9F\x68 |0
+<UEDA7> \x9F\x69 |0
+<UEDA8> \x9F\x6A |0
+<UEDA9> \x9F\x6B |0
+<UEDAA> \x9F\x6C |0
+<UEDAB> \x9F\x6D |0
+<UEDAC> \x9F\x6E |0
+<UEDAD> \x9F\x6F |0
+<UEDAE> \x9F\x70 |0
+<UEDAF> \x9F\x71 |0
+<UEDB0> \x9F\x72 |0
+<UEDB1> \x9F\x73 |0
+<UEDB2> \x9F\x74 |0
+<UEDB3> \x9F\x75 |0
+<UEDB4> \x9F\x76 |0
+<UEDB5> \x9F\x77 |0
+<UEDB6> \x9F\x78 |0
+<UEDB7> \x9F\x79 |0
+<UEDB8> \x9F\x7A |0
+<UEDB9> \x9F\x7B |0
+<UEDBA> \x9F\x7C |0
+<UEDBB> \x9F\x7D |0
+<UEDBC> \x9F\x7E |0
+<UEDBD> \x9F\xA1 |0
+<UEDBE> \x9F\xA2 |0
+<UEDBF> \x9F\xA3 |0
+<UEDC0> \x9F\xA4 |0
+<UEDC1> \x9F\xA5 |0
+<UEDC2> \x9F\xA6 |0
+<UEDC3> \x9F\xA7 |0
+<UEDC4> \x9F\xA8 |0
+<UEDC5> \x9F\xA9 |0
+<UEDC6> \x9F\xAA |0
+<UEDC7> \x9F\xAB |0
+<UEDC8> \x9F\xAC |0
+<UEDC9> \x9F\xAD |0
+<UEDCA> \x9F\xAE |0
+<UEDCB> \x9F\xAF |0
+<UEDCC> \x9F\xB0 |0
+<UEDCD> \x9F\xB1 |0
+<UEDCE> \x9F\xB2 |0
+<UEDCF> \x9F\xB3 |0
+<UEDD0> \x9F\xB4 |0
+<UEDD1> \x9F\xB5 |0
+<UEDD2> \x9F\xB6 |0
+<UEDD3> \x9F\xB7 |0
+<UEDD4> \x9F\xB8 |0
+<UEDD5> \x9F\xB9 |0
+<UEDD6> \x9F\xBA |0
+<UEDD7> \x9F\xBB |0
+<UEDD8> \x9F\xBC |0
+<UEDD9> \x9F\xBD |0
+<UEDDA> \x9F\xBE |0
+<UEDDB> \x9F\xBF |0
+<UEDDC> \x9F\xC0 |0
+<UEDDD> \x9F\xC1 |0
+<UEDDE> \x9F\xC2 |0
+<UEDDF> \x9F\xC3 |0
+<UEDE0> \x9F\xC4 |0
+<UEDE1> \x9F\xC5 |0
+<UEDE2> \x9F\xC6 |0
+<UEDE3> \x9F\xC7 |0
+<UEDE4> \x9F\xC8 |0
+<UEDE5> \x9F\xC9 |0
+<UEDE6> \x9F\xCA |0
+<UEDE7> \x9F\xCB |0
+<UEDE8> \x9F\xCC |0
+<UEDE9> \x9F\xCD |0
+<UEDEA> \x9F\xCE |0
+<UEDEB> \x9F\xCF |0
+<UEDEC> \x9F\xD0 |0
+<UEDED> \x9F\xD1 |0
+<UEDEE> \x9F\xD2 |0
+<UEDEF> \x9F\xD3 |0
+<UEDF0> \x9F\xD4 |0
+<UEDF1> \x9F\xD5 |0
+<UEDF2> \x9F\xD6 |0
+<UEDF3> \x9F\xD7 |0
+<UEDF4> \x9F\xD8 |0
+<UEDF5> \x9F\xD9 |0
+<UEDF6> \x9F\xDA |0
+<UEDF7> \x9F\xDB |0
+<UEDF8> \x9F\xDC |0
+<UEDF9> \x9F\xDD |0
+<UEDFA> \x9F\xDE |0
+<UEDFB> \x9F\xDF |0
+<UEDFC> \x9F\xE0 |0
+<UEDFD> \x9F\xE1 |0
+<UEDFE> \x9F\xE2 |0
+<UEDFF> \x9F\xE3 |0
+<UEE00> \x9F\xE4 |0
+<UEE01> \x9F\xE5 |0
+<UEE02> \x9F\xE6 |0
+<UEE03> \x9F\xE7 |0
+<UEE04> \x9F\xE8 |0
+<UEE05> \x9F\xE9 |0
+<UEE06> \x9F\xEA |0
+<UEE07> \x9F\xEB |0
+<UEE08> \x9F\xEC |0
+<UEE09> \x9F\xED |0
+<UEE0A> \x9F\xEE |0
+<UEE0B> \x9F\xEF |0
+<UEE0C> \x9F\xF0 |0
+<UEE0D> \x9F\xF1 |0
+<UEE0E> \x9F\xF2 |0
+<UEE0F> \x9F\xF3 |0
+<UEE10> \x9F\xF4 |0
+<UEE11> \x9F\xF5 |0
+<UEE12> \x9F\xF6 |0
+<UEE13> \x9F\xF7 |0
+<UEE14> \x9F\xF8 |0
+<UEE15> \x9F\xF9 |0
+<UEE16> \x9F\xFA |0
+<UEE17> \x9F\xFB |0
+<UEE18> \x9F\xFC |0
+<UEE19> \x9F\xFD |0
+<UEE1A> \x9F\xFE |0
+<UEE1B> \xA0\x40 |0
+<UEE1C> \xA0\x41 |0
+<UEE1D> \xA0\x42 |0
+<UEE1E> \xA0\x43 |0
+<UEE1F> \xA0\x44 |0
+<UEE20> \xA0\x45 |0
+<UEE21> \xA0\x46 |0
+<UEE22> \xA0\x47 |0
+<UEE23> \xA0\x48 |0
+<UEE24> \xA0\x49 |0
+<UEE25> \xA0\x4A |0
+<UEE26> \xA0\x4B |0
+<UEE27> \xA0\x4C |0
+<UEE28> \xA0\x4D |0
+<UEE29> \xA0\x4E |0
+<UEE2A> \xA0\x4F |0
+<UEE2B> \xA0\x50 |0
+<UEE2C> \xA0\x51 |0
+<UEE2D> \xA0\x52 |0
+<UEE2E> \xA0\x53 |0
+<UEE2F> \xA0\x54 |0
+<UEE30> \xA0\x55 |0
+<UEE31> \xA0\x56 |0
+<UEE32> \xA0\x57 |0
+<UEE33> \xA0\x58 |0
+<UEE34> \xA0\x59 |0
+<UEE35> \xA0\x5A |0
+<UEE36> \xA0\x5B |0
+<UEE37> \xA0\x5C |0
+<UEE38> \xA0\x5D |0
+<UEE39> \xA0\x5E |0
+<UEE3A> \xA0\x5F |0
+<UEE3B> \xA0\x60 |0
+<UEE3C> \xA0\x61 |0
+<UEE3D> \xA0\x62 |0
+<UEE3E> \xA0\x63 |0
+<UEE3F> \xA0\x64 |0
+<UEE40> \xA0\x65 |0
+<UEE41> \xA0\x66 |0
+<UEE42> \xA0\x67 |0
+<UEE43> \xA0\x68 |0
+<UEE44> \xA0\x69 |0
+<UEE45> \xA0\x6A |0
+<UEE46> \xA0\x6B |0
+<UEE47> \xA0\x6C |0
+<UEE48> \xA0\x6D |0
+<UEE49> \xA0\x6E |0
+<UEE4A> \xA0\x6F |0
+<UEE4B> \xA0\x70 |0
+<UEE4C> \xA0\x71 |0
+<UEE4D> \xA0\x72 |0
+<UEE4E> \xA0\x73 |0
+<UEE4F> \xA0\x74 |0
+<UEE50> \xA0\x75 |0
+<UEE51> \xA0\x76 |0
+<UEE52> \xA0\x77 |0
+<UEE53> \xA0\x78 |0
+<UEE54> \xA0\x79 |0
+<UEE55> \xA0\x7A |0
+<UEE56> \xA0\x7B |0
+<UEE57> \xA0\x7C |0
+<UEE58> \xA0\x7D |0
+<UEE59> \xA0\x7E |0
+<UEE5A> \xA0\xA1 |0
+<UEE5B> \xA0\xA2 |0
+<UEE5C> \xA0\xA3 |0
+<UEE5D> \xA0\xA4 |0
+<UEE5E> \xA0\xA5 |0
+<UEE5F> \xA0\xA6 |0
+<UEE60> \xA0\xA7 |0
+<UEE61> \xA0\xA8 |0
+<UEE62> \xA0\xA9 |0
+<UEE63> \xA0\xAA |0
+<UEE64> \xA0\xAB |0
+<UEE65> \xA0\xAC |0
+<UEE66> \xA0\xAD |0
+<UEE67> \xA0\xAE |0
+<UEE68> \xA0\xAF |0
+<UEE69> \xA0\xB0 |0
+<UEE6A> \xA0\xB1 |0
+<UEE6B> \xA0\xB2 |0
+<UEE6C> \xA0\xB3 |0
+<UEE6D> \xA0\xB4 |0
+<UEE6E> \xA0\xB5 |0
+<UEE6F> \xA0\xB6 |0
+<UEE70> \xA0\xB7 |0
+<UEE71> \xA0\xB8 |0
+<UEE72> \xA0\xB9 |0
+<UEE73> \xA0\xBA |0
+<UEE74> \xA0\xBB |0
+<UEE75> \xA0\xBC |0
+<UEE76> \xA0\xBD |0
+<UEE77> \xA0\xBE |0
+<UEE78> \xA0\xBF |0
+<UEE79> \xA0\xC0 |0
+<UEE7A> \xA0\xC1 |0
+<UEE7B> \xA0\xC2 |0
+<UEE7C> \xA0\xC3 |0
+<UEE7D> \xA0\xC4 |0
+<UEE7E> \xA0\xC5 |0
+<UEE7F> \xA0\xC6 |0
+<UEE80> \xA0\xC7 |0
+<UEE81> \xA0\xC8 |0
+<UEE82> \xA0\xC9 |0
+<UEE83> \xA0\xCA |0
+<UEE84> \xA0\xCB |0
+<UEE85> \xA0\xCC |0
+<UEE86> \xA0\xCD |0
+<UEE87> \xA0\xCE |0
+<UEE88> \xA0\xCF |0
+<UEE89> \xA0\xD0 |0
+<UEE8A> \xA0\xD1 |0
+<UEE8B> \xA0\xD2 |0
+<UEE8C> \xA0\xD3 |0
+<UEE8D> \xA0\xD4 |0
+<UEE8E> \xA0\xD5 |0
+<UEE8F> \xA0\xD6 |0
+<UEE90> \xA0\xD7 |0
+<UEE91> \xA0\xD8 |0
+<UEE92> \xA0\xD9 |0
+<UEE93> \xA0\xDA |0
+<UEE94> \xA0\xDB |0
+<UEE95> \xA0\xDC |0
+<UEE96> \xA0\xDD |0
+<UEE97> \xA0\xDE |0
+<UEE98> \xA0\xDF |0
+<UEE99> \xA0\xE0 |0
+<UEE9A> \xA0\xE1 |0
+<UEE9B> \xA0\xE2 |0
+<UEE9C> \xA0\xE3 |0
+<UEE9D> \xA0\xE4 |0
+<UEE9E> \xA0\xE5 |0
+<UEE9F> \xA0\xE6 |0
+<UEEA0> \xA0\xE7 |0
+<UEEA1> \xA0\xE8 |0
+<UEEA2> \xA0\xE9 |0
+<UEEA3> \xA0\xEA |0
+<UEEA4> \xA0\xEB |0
+<UEEA5> \xA0\xEC |0
+<UEEA6> \xA0\xED |0
+<UEEA7> \xA0\xEE |0
+<UEEA8> \xA0\xEF |0
+<UEEA9> \xA0\xF0 |0
+<UEEAA> \xA0\xF1 |0
+<UEEAB> \xA0\xF2 |0
+<UEEAC> \xA0\xF3 |0
+<UEEAD> \xA0\xF4 |0
+<UEEAE> \xA0\xF5 |0
+<UEEAF> \xA0\xF6 |0
+<UEEB0> \xA0\xF7 |0
+<UEEB1> \xA0\xF8 |0
+<UEEB2> \xA0\xF9 |0
+<UEEB3> \xA0\xFA |0
+<UEEB4> \xA0\xFB |0
+<UEEB5> \xA0\xFC |0
+<UEEB6> \xA0\xFD |0
+<UEEB7> \xA0\xFE |0
+<UEEB8> \x81\x40 |0
+<UEEB9> \x81\x41 |0
+<UEEBA> \x81\x42 |0
+<UEEBB> \x81\x43 |0
+<UEEBC> \x81\x44 |0
+<UEEBD> \x81\x45 |0
+<UEEBE> \x81\x46 |0
+<UEEBF> \x81\x47 |0
+<UEEC0> \x81\x48 |0
+<UEEC1> \x81\x49 |0
+<UEEC2> \x81\x4A |0
+<UEEC3> \x81\x4B |0
+<UEEC4> \x81\x4C |0
+<UEEC5> \x81\x4D |0
+<UEEC6> \x81\x4E |0
+<UEEC7> \x81\x4F |0
+<UEEC8> \x81\x50 |0
+<UEEC9> \x81\x51 |0
+<UEECA> \x81\x52 |0
+<UEECB> \x81\x53 |0
+<UEECC> \x81\x54 |0
+<UEECD> \x81\x55 |0
+<UEECE> \x81\x56 |0
+<UEECF> \x81\x57 |0
+<UEED0> \x81\x58 |0
+<UEED1> \x81\x59 |0
+<UEED2> \x81\x5A |0
+<UEED3> \x81\x5B |0
+<UEED4> \x81\x5C |0
+<UEED5> \x81\x5D |0
+<UEED6> \x81\x5E |0
+<UEED7> \x81\x5F |0
+<UEED8> \x81\x60 |0
+<UEED9> \x81\x61 |0
+<UEEDA> \x81\x62 |0
+<UEEDB> \x81\x63 |0
+<UEEDC> \x81\x64 |0
+<UEEDD> \x81\x65 |0
+<UEEDE> \x81\x66 |0
+<UEEDF> \x81\x67 |0
+<UEEE0> \x81\x68 |0
+<UEEE1> \x81\x69 |0
+<UEEE2> \x81\x6A |0
+<UEEE3> \x81\x6B |0
+<UEEE4> \x81\x6C |0
+<UEEE5> \x81\x6D |0
+<UEEE6> \x81\x6E |0
+<UEEE7> \x81\x6F |0
+<UEEE8> \x81\x70 |0
+<UEEE9> \x81\x71 |0
+<UEEEA> \x81\x72 |0
+<UEEEB> \x81\x73 |0
+<UEEEC> \x81\x74 |0
+<UEEED> \x81\x75 |0
+<UEEEE> \x81\x76 |0
+<UEEEF> \x81\x77 |0
+<UEEF0> \x81\x78 |0
+<UEEF1> \x81\x79 |0
+<UEEF2> \x81\x7A |0
+<UEEF3> \x81\x7B |0
+<UEEF4> \x81\x7C |0
+<UEEF5> \x81\x7D |0
+<UEEF6> \x81\x7E |0
+<UEEF7> \x81\xA1 |0
+<UEEF8> \x81\xA2 |0
+<UEEF9> \x81\xA3 |0
+<UEEFA> \x81\xA4 |0
+<UEEFB> \x81\xA5 |0
+<UEEFC> \x81\xA6 |0
+<UEEFD> \x81\xA7 |0
+<UEEFE> \x81\xA8 |0
+<UEEFF> \x81\xA9 |0
+<UEF00> \x81\xAA |0
+<UEF01> \x81\xAB |0
+<UEF02> \x81\xAC |0
+<UEF03> \x81\xAD |0
+<UEF04> \x81\xAE |0
+<UEF05> \x81\xAF |0
+<UEF06> \x81\xB0 |0
+<UEF07> \x81\xB1 |0
+<UEF08> \x81\xB2 |0
+<UEF09> \x81\xB3 |0
+<UEF0A> \x81\xB4 |0
+<UEF0B> \x81\xB5 |0
+<UEF0C> \x81\xB6 |0
+<UEF0D> \x81\xB7 |0
+<UEF0E> \x81\xB8 |0
+<UEF0F> \x81\xB9 |0
+<UEF10> \x81\xBA |0
+<UEF11> \x81\xBB |0
+<UEF12> \x81\xBC |0
+<UEF13> \x81\xBD |0
+<UEF14> \x81\xBE |0
+<UEF15> \x81\xBF |0
+<UEF16> \x81\xC0 |0
+<UEF17> \x81\xC1 |0
+<UEF18> \x81\xC2 |0
+<UEF19> \x81\xC3 |0
+<UEF1A> \x81\xC4 |0
+<UEF1B> \x81\xC5 |0
+<UEF1C> \x81\xC6 |0
+<UEF1D> \x81\xC7 |0
+<UEF1E> \x81\xC8 |0
+<UEF1F> \x81\xC9 |0
+<UEF20> \x81\xCA |0
+<UEF21> \x81\xCB |0
+<UEF22> \x81\xCC |0
+<UEF23> \x81\xCD |0
+<UEF24> \x81\xCE |0
+<UEF25> \x81\xCF |0
+<UEF26> \x81\xD0 |0
+<UEF27> \x81\xD1 |0
+<UEF28> \x81\xD2 |0
+<UEF29> \x81\xD3 |0
+<UEF2A> \x81\xD4 |0
+<UEF2B> \x81\xD5 |0
+<UEF2C> \x81\xD6 |0
+<UEF2D> \x81\xD7 |0
+<UEF2E> \x81\xD8 |0
+<UEF2F> \x81\xD9 |0
+<UEF30> \x81\xDA |0
+<UEF31> \x81\xDB |0
+<UEF32> \x81\xDC |0
+<UEF33> \x81\xDD |0
+<UEF34> \x81\xDE |0
+<UEF35> \x81\xDF |0
+<UEF36> \x81\xE0 |0
+<UEF37> \x81\xE1 |0
+<UEF38> \x81\xE2 |0
+<UEF39> \x81\xE3 |0
+<UEF3A> \x81\xE4 |0
+<UEF3B> \x81\xE5 |0
+<UEF3C> \x81\xE6 |0
+<UEF3D> \x81\xE7 |0
+<UEF3E> \x81\xE8 |0
+<UEF3F> \x81\xE9 |0
+<UEF40> \x81\xEA |0
+<UEF41> \x81\xEB |0
+<UEF42> \x81\xEC |0
+<UEF43> \x81\xED |0
+<UEF44> \x81\xEE |0
+<UEF45> \x81\xEF |0
+<UEF46> \x81\xF0 |0
+<UEF47> \x81\xF1 |0
+<UEF48> \x81\xF2 |0
+<UEF49> \x81\xF3 |0
+<UEF4A> \x81\xF4 |0
+<UEF4B> \x81\xF5 |0
+<UEF4C> \x81\xF6 |0
+<UEF4D> \x81\xF7 |0
+<UEF4E> \x81\xF8 |0
+<UEF4F> \x81\xF9 |0
+<UEF50> \x81\xFA |0
+<UEF51> \x81\xFB |0
+<UEF52> \x81\xFC |0
+<UEF53> \x81\xFD |0
+<UEF54> \x81\xFE |0
+<UEF55> \x82\x40 |0
+<UEF56> \x82\x41 |0
+<UEF57> \x82\x42 |0
+<UEF58> \x82\x43 |0
+<UEF59> \x82\x44 |0
+<UEF5A> \x82\x45 |0
+<UEF5B> \x82\x46 |0
+<UEF5C> \x82\x47 |0
+<UEF5D> \x82\x48 |0
+<UEF5E> \x82\x49 |0
+<UEF5F> \x82\x4A |0
+<UEF60> \x82\x4B |0
+<UEF61> \x82\x4C |0
+<UEF62> \x82\x4D |0
+<UEF63> \x82\x4E |0
+<UEF64> \x82\x4F |0
+<UEF65> \x82\x50 |0
+<UEF66> \x82\x51 |0
+<UEF67> \x82\x52 |0
+<UEF68> \x82\x53 |0
+<UEF69> \x82\x54 |0
+<UEF6A> \x82\x55 |0
+<UEF6B> \x82\x56 |0
+<UEF6C> \x82\x57 |0
+<UEF6D> \x82\x58 |0
+<UEF6E> \x82\x59 |0
+<UEF6F> \x82\x5A |0
+<UEF70> \x82\x5B |0
+<UEF71> \x82\x5C |0
+<UEF72> \x82\x5D |0
+<UEF73> \x82\x5E |0
+<UEF74> \x82\x5F |0
+<UEF75> \x82\x60 |0
+<UEF76> \x82\x61 |0
+<UEF77> \x82\x62 |0
+<UEF78> \x82\x63 |0
+<UEF79> \x82\x64 |0
+<UEF7A> \x82\x65 |0
+<UEF7B> \x82\x66 |0
+<UEF7C> \x82\x67 |0
+<UEF7D> \x82\x68 |0
+<UEF7E> \x82\x69 |0
+<UEF7F> \x82\x6A |0
+<UEF80> \x82\x6B |0
+<UEF81> \x82\x6C |0
+<UEF82> \x82\x6D |0
+<UEF83> \x82\x6E |0
+<UEF84> \x82\x6F |0
+<UEF85> \x82\x70 |0
+<UEF86> \x82\x71 |0
+<UEF87> \x82\x72 |0
+<UEF88> \x82\x73 |0
+<UEF89> \x82\x74 |0
+<UEF8A> \x82\x75 |0
+<UEF8B> \x82\x76 |0
+<UEF8C> \x82\x77 |0
+<UEF8D> \x82\x78 |0
+<UEF8E> \x82\x79 |0
+<UEF8F> \x82\x7A |0
+<UEF90> \x82\x7B |0
+<UEF91> \x82\x7C |0
+<UEF92> \x82\x7D |0
+<UEF93> \x82\x7E |0
+<UEF94> \x82\xA1 |0
+<UEF95> \x82\xA2 |0
+<UEF96> \x82\xA3 |0
+<UEF97> \x82\xA4 |0
+<UEF98> \x82\xA5 |0
+<UEF99> \x82\xA6 |0
+<UEF9A> \x82\xA7 |0
+<UEF9B> \x82\xA8 |0
+<UEF9C> \x82\xA9 |0
+<UEF9D> \x82\xAA |0
+<UEF9E> \x82\xAB |0
+<UEF9F> \x82\xAC |0
+<UEFA0> \x82\xAD |0
+<UEFA1> \x82\xAE |0
+<UEFA2> \x82\xAF |0
+<UEFA3> \x82\xB0 |0
+<UEFA4> \x82\xB1 |0
+<UEFA5> \x82\xB2 |0
+<UEFA6> \x82\xB3 |0
+<UEFA7> \x82\xB4 |0
+<UEFA8> \x82\xB5 |0
+<UEFA9> \x82\xB6 |0
+<UEFAA> \x82\xB7 |0
+<UEFAB> \x82\xB8 |0
+<UEFAC> \x82\xB9 |0
+<UEFAD> \x82\xBA |0
+<UEFAE> \x82\xBB |0
+<UEFAF> \x82\xBC |0
+<UEFB0> \x82\xBD |0
+<UEFB1> \x82\xBE |0
+<UEFB2> \x82\xBF |0
+<UEFB3> \x82\xC0 |0
+<UEFB4> \x82\xC1 |0
+<UEFB5> \x82\xC2 |0
+<UEFB6> \x82\xC3 |0
+<UEFB7> \x82\xC4 |0
+<UEFB8> \x82\xC5 |0
+<UEFB9> \x82\xC6 |0
+<UEFBA> \x82\xC7 |0
+<UEFBB> \x82\xC8 |0
+<UEFBC> \x82\xC9 |0
+<UEFBD> \x82\xCA |0
+<UEFBE> \x82\xCB |0
+<UEFBF> \x82\xCC |0
+<UEFC0> \x82\xCD |0
+<UEFC1> \x82\xCE |0
+<UEFC2> \x82\xCF |0
+<UEFC3> \x82\xD0 |0
+<UEFC4> \x82\xD1 |0
+<UEFC5> \x82\xD2 |0
+<UEFC6> \x82\xD3 |0
+<UEFC7> \x82\xD4 |0
+<UEFC8> \x82\xD5 |0
+<UEFC9> \x82\xD6 |0
+<UEFCA> \x82\xD7 |0
+<UEFCB> \x82\xD8 |0
+<UEFCC> \x82\xD9 |0
+<UEFCD> \x82\xDA |0
+<UEFCE> \x82\xDB |0
+<UEFCF> \x82\xDC |0
+<UEFD0> \x82\xDD |0
+<UEFD1> \x82\xDE |0
+<UEFD2> \x82\xDF |0
+<UEFD3> \x82\xE0 |0
+<UEFD4> \x82\xE1 |0
+<UEFD5> \x82\xE2 |0
+<UEFD6> \x82\xE3 |0
+<UEFD7> \x82\xE4 |0
+<UEFD8> \x82\xE5 |0
+<UEFD9> \x82\xE6 |0
+<UEFDA> \x82\xE7 |0
+<UEFDB> \x82\xE8 |0
+<UEFDC> \x82\xE9 |0
+<UEFDD> \x82\xEA |0
+<UEFDE> \x82\xEB |0
+<UEFDF> \x82\xEC |0
+<UEFE0> \x82\xED |0
+<UEFE1> \x82\xEE |0
+<UEFE2> \x82\xEF |0
+<UEFE3> \x82\xF0 |0
+<UEFE4> \x82\xF1 |0
+<UEFE5> \x82\xF2 |0
+<UEFE6> \x82\xF3 |0
+<UEFE7> \x82\xF4 |0
+<UEFE8> \x82\xF5 |0
+<UEFE9> \x82\xF6 |0
+<UEFEA> \x82\xF7 |0
+<UEFEB> \x82\xF8 |0
+<UEFEC> \x82\xF9 |0
+<UEFED> \x82\xFA |0
+<UEFEE> \x82\xFB |0
+<UEFEF> \x82\xFC |0
+<UEFF0> \x82\xFD |0
+<UEFF1> \x82\xFE |0
+<UEFF2> \x83\x40 |0
+<UEFF3> \x83\x41 |0
+<UEFF4> \x83\x42 |0
+<UEFF5> \x83\x43 |0
+<UEFF6> \x83\x44 |0
+<UEFF7> \x83\x45 |0
+<UEFF8> \x83\x46 |0
+<UEFF9> \x83\x47 |0
+<UEFFA> \x83\x48 |0
+<UEFFB> \x83\x49 |0
+<UEFFC> \x83\x4A |0
+<UEFFD> \x83\x4B |0
+<UEFFE> \x83\x4C |0
+<UEFFF> \x83\x4D |0
+<UF000> \x83\x4E |0
+<UF001> \x83\x4F |0
+<UF002> \x83\x50 |0
+<UF003> \x83\x51 |0
+<UF004> \x83\x52 |0
+<UF005> \x83\x53 |0
+<UF006> \x83\x54 |0
+<UF007> \x83\x55 |0
+<UF008> \x83\x56 |0
+<UF009> \x83\x57 |0
+<UF00A> \x83\x58 |0
+<UF00B> \x83\x59 |0
+<UF00C> \x83\x5A |0
+<UF00D> \x83\x5B |0
+<UF00E> \x83\x5C |0
+<UF00F> \x83\x5D |0
+<UF010> \x83\x5E |0
+<UF011> \x83\x5F |0
+<UF012> \x83\x60 |0
+<UF013> \x83\x61 |0
+<UF014> \x83\x62 |0
+<UF015> \x83\x63 |0
+<UF016> \x83\x64 |0
+<UF017> \x83\x65 |0
+<UF018> \x83\x66 |0
+<UF019> \x83\x67 |0
+<UF01A> \x83\x68 |0
+<UF01B> \x83\x69 |0
+<UF01C> \x83\x6A |0
+<UF01D> \x83\x6B |0
+<UF01E> \x83\x6C |0
+<UF01F> \x83\x6D |0
+<UF020> \x83\x6E |0
+<UF021> \x83\x6F |0
+<UF022> \x83\x70 |0
+<UF023> \x83\x71 |0
+<UF024> \x83\x72 |0
+<UF025> \x83\x73 |0
+<UF026> \x83\x74 |0
+<UF027> \x83\x75 |0
+<UF028> \x83\x76 |0
+<UF029> \x83\x77 |0
+<UF02A> \x83\x78 |0
+<UF02B> \x83\x79 |0
+<UF02C> \x83\x7A |0
+<UF02D> \x83\x7B |0
+<UF02E> \x83\x7C |0
+<UF02F> \x83\x7D |0
+<UF030> \x83\x7E |0
+<UF031> \x83\xA1 |0
+<UF032> \x83\xA2 |0
+<UF033> \x83\xA3 |0
+<UF034> \x83\xA4 |0
+<UF035> \x83\xA5 |0
+<UF036> \x83\xA6 |0
+<UF037> \x83\xA7 |0
+<UF038> \x83\xA8 |0
+<UF039> \x83\xA9 |0
+<UF03A> \x83\xAA |0
+<UF03B> \x83\xAB |0
+<UF03C> \x83\xAC |0
+<UF03D> \x83\xAD |0
+<UF03E> \x83\xAE |0
+<UF03F> \x83\xAF |0
+<UF040> \x83\xB0 |0
+<UF041> \x83\xB1 |0
+<UF042> \x83\xB2 |0
+<UF043> \x83\xB3 |0
+<UF044> \x83\xB4 |0
+<UF045> \x83\xB5 |0
+<UF046> \x83\xB6 |0
+<UF047> \x83\xB7 |0
+<UF048> \x83\xB8 |0
+<UF049> \x83\xB9 |0
+<UF04A> \x83\xBA |0
+<UF04B> \x83\xBB |0
+<UF04C> \x83\xBC |0
+<UF04D> \x83\xBD |0
+<UF04E> \x83\xBE |0
+<UF04F> \x83\xBF |0
+<UF050> \x83\xC0 |0
+<UF051> \x83\xC1 |0
+<UF052> \x83\xC2 |0
+<UF053> \x83\xC3 |0
+<UF054> \x83\xC4 |0
+<UF055> \x83\xC5 |0
+<UF056> \x83\xC6 |0
+<UF057> \x83\xC7 |0
+<UF058> \x83\xC8 |0
+<UF059> \x83\xC9 |0
+<UF05A> \x83\xCA |0
+<UF05B> \x83\xCB |0
+<UF05C> \x83\xCC |0
+<UF05D> \x83\xCD |0
+<UF05E> \x83\xCE |0
+<UF05F> \x83\xCF |0
+<UF060> \x83\xD0 |0
+<UF061> \x83\xD1 |0
+<UF062> \x83\xD2 |0
+<UF063> \x83\xD3 |0
+<UF064> \x83\xD4 |0
+<UF065> \x83\xD5 |0
+<UF066> \x83\xD6 |0
+<UF067> \x83\xD7 |0
+<UF068> \x83\xD8 |0
+<UF069> \x83\xD9 |0
+<UF06A> \x83\xDA |0
+<UF06B> \x83\xDB |0
+<UF06C> \x83\xDC |0
+<UF06D> \x83\xDD |0
+<UF06E> \x83\xDE |0
+<UF06F> \x83\xDF |0
+<UF070> \x83\xE0 |0
+<UF071> \x83\xE1 |0
+<UF072> \x83\xE2 |0
+<UF073> \x83\xE3 |0
+<UF074> \x83\xE4 |0
+<UF075> \x83\xE5 |0
+<UF076> \x83\xE6 |0
+<UF077> \x83\xE7 |0
+<UF078> \x83\xE8 |0
+<UF079> \x83\xE9 |0
+<UF07A> \x83\xEA |0
+<UF07B> \x83\xEB |0
+<UF07C> \x83\xEC |0
+<UF07D> \x83\xED |0
+<UF07E> \x83\xEE |0
+<UF07F> \x83\xEF |0
+<UF080> \x83\xF0 |0
+<UF081> \x83\xF1 |0
+<UF082> \x83\xF2 |0
+<UF083> \x83\xF3 |0
+<UF084> \x83\xF4 |0
+<UF085> \x83\xF5 |0
+<UF086> \x83\xF6 |0
+<UF087> \x83\xF7 |0
+<UF088> \x83\xF8 |0
+<UF089> \x83\xF9 |0
+<UF08A> \x83\xFA |0
+<UF08B> \x83\xFB |0
+<UF08C> \x83\xFC |0
+<UF08D> \x83\xFD |0
+<UF08E> \x83\xFE |0
+<UF08F> \x84\x40 |0
+<UF090> \x84\x41 |0
+<UF091> \x84\x42 |0
+<UF092> \x84\x43 |0
+<UF093> \x84\x44 |0
+<UF094> \x84\x45 |0
+<UF095> \x84\x46 |0
+<UF096> \x84\x47 |0
+<UF097> \x84\x48 |0
+<UF098> \x84\x49 |0
+<UF099> \x84\x4A |0
+<UF09A> \x84\x4B |0
+<UF09B> \x84\x4C |0
+<UF09C> \x84\x4D |0
+<UF09D> \x84\x4E |0
+<UF09E> \x84\x4F |0
+<UF09F> \x84\x50 |0
+<UF0A0> \x84\x51 |0
+<UF0A1> \x84\x52 |0
+<UF0A2> \x84\x53 |0
+<UF0A3> \x84\x54 |0
+<UF0A4> \x84\x55 |0
+<UF0A5> \x84\x56 |0
+<UF0A6> \x84\x57 |0
+<UF0A7> \x84\x58 |0
+<UF0A8> \x84\x59 |0
+<UF0A9> \x84\x5A |0
+<UF0AA> \x84\x5B |0
+<UF0AB> \x84\x5C |0
+<UF0AC> \x84\x5D |0
+<UF0AD> \x84\x5E |0
+<UF0AE> \x84\x5F |0
+<UF0AF> \x84\x60 |0
+<UF0B0> \x84\x61 |0
+<UF0B1> \x84\x62 |0
+<UF0B2> \x84\x63 |0
+<UF0B3> \x84\x64 |0
+<UF0B4> \x84\x65 |0
+<UF0B5> \x84\x66 |0
+<UF0B6> \x84\x67 |0
+<UF0B7> \x84\x68 |0
+<UF0B8> \x84\x69 |0
+<UF0B9> \x84\x6A |0
+<UF0BA> \x84\x6B |0
+<UF0BB> \x84\x6C |0
+<UF0BC> \x84\x6D |0
+<UF0BD> \x84\x6E |0
+<UF0BE> \x84\x6F |0
+<UF0BF> \x84\x70 |0
+<UF0C0> \x84\x71 |0
+<UF0C1> \x84\x72 |0
+<UF0C2> \x84\x73 |0
+<UF0C3> \x84\x74 |0
+<UF0C4> \x84\x75 |0
+<UF0C5> \x84\x76 |0
+<UF0C6> \x84\x77 |0
+<UF0C7> \x84\x78 |0
+<UF0C8> \x84\x79 |0
+<UF0C9> \x84\x7A |0
+<UF0CA> \x84\x7B |0
+<UF0CB> \x84\x7C |0
+<UF0CC> \x84\x7D |0
+<UF0CD> \x84\x7E |0
+<UF0CE> \x84\xA1 |0
+<UF0CF> \x84\xA2 |0
+<UF0D0> \x84\xA3 |0
+<UF0D1> \x84\xA4 |0
+<UF0D2> \x84\xA5 |0
+<UF0D3> \x84\xA6 |0
+<UF0D4> \x84\xA7 |0
+<UF0D5> \x84\xA8 |0
+<UF0D6> \x84\xA9 |0
+<UF0D7> \x84\xAA |0
+<UF0D8> \x84\xAB |0
+<UF0D9> \x84\xAC |0
+<UF0DA> \x84\xAD |0
+<UF0DB> \x84\xAE |0
+<UF0DC> \x84\xAF |0
+<UF0DD> \x84\xB0 |0
+<UF0DE> \x84\xB1 |0
+<UF0DF> \x84\xB2 |0
+<UF0E0> \x84\xB3 |0
+<UF0E1> \x84\xB4 |0
+<UF0E2> \x84\xB5 |0
+<UF0E3> \x84\xB6 |0
+<UF0E4> \x84\xB7 |0
+<UF0E5> \x84\xB8 |0
+<UF0E6> \x84\xB9 |0
+<UF0E7> \x84\xBA |0
+<UF0E8> \x84\xBB |0
+<UF0E9> \x84\xBC |0
+<UF0EA> \x84\xBD |0
+<UF0EB> \x84\xBE |0
+<UF0EC> \x84\xBF |0
+<UF0ED> \x84\xC0 |0
+<UF0EE> \x84\xC1 |0
+<UF0EF> \x84\xC2 |0
+<UF0F0> \x84\xC3 |0
+<UF0F1> \x84\xC4 |0
+<UF0F2> \x84\xC5 |0
+<UF0F3> \x84\xC6 |0
+<UF0F4> \x84\xC7 |0
+<UF0F5> \x84\xC8 |0
+<UF0F6> \x84\xC9 |0
+<UF0F7> \x84\xCA |0
+<UF0F8> \x84\xCB |0
+<UF0F9> \x84\xCC |0
+<UF0FA> \x84\xCD |0
+<UF0FB> \x84\xCE |0
+<UF0FC> \x84\xCF |0
+<UF0FD> \x84\xD0 |0
+<UF0FE> \x84\xD1 |0
+<UF0FF> \x84\xD2 |0
+<UF100> \x84\xD3 |0
+<UF101> \x84\xD4 |0
+<UF102> \x84\xD5 |0
+<UF103> \x84\xD6 |0
+<UF104> \x84\xD7 |0
+<UF105> \x84\xD8 |0
+<UF106> \x84\xD9 |0
+<UF107> \x84\xDA |0
+<UF108> \x84\xDB |0
+<UF109> \x84\xDC |0
+<UF10A> \x84\xDD |0
+<UF10B> \x84\xDE |0
+<UF10C> \x84\xDF |0
+<UF10D> \x84\xE0 |0
+<UF10E> \x84\xE1 |0
+<UF10F> \x84\xE2 |0
+<UF110> \x84\xE3 |0
+<UF111> \x84\xE4 |0
+<UF112> \x84\xE5 |0
+<UF113> \x84\xE6 |0
+<UF114> \x84\xE7 |0
+<UF115> \x84\xE8 |0
+<UF116> \x84\xE9 |0
+<UF117> \x84\xEA |0
+<UF118> \x84\xEB |0
+<UF119> \x84\xEC |0
+<UF11A> \x84\xED |0
+<UF11B> \x84\xEE |0
+<UF11C> \x84\xEF |0
+<UF11D> \x84\xF0 |0
+<UF11E> \x84\xF1 |0
+<UF11F> \x84\xF2 |0
+<UF120> \x84\xF3 |0
+<UF121> \x84\xF4 |0
+<UF122> \x84\xF5 |0
+<UF123> \x84\xF6 |0
+<UF124> \x84\xF7 |0
+<UF125> \x84\xF8 |0
+<UF126> \x84\xF9 |0
+<UF127> \x84\xFA |0
+<UF128> \x84\xFB |0
+<UF129> \x84\xFC |0
+<UF12A> \x84\xFD |0
+<UF12B> \x84\xFE |0
+<UF12C> \x85\x40 |0
+<UF12D> \x85\x41 |0
+<UF12E> \x85\x42 |0
+<UF12F> \x85\x43 |0
+<UF130> \x85\x44 |0
+<UF131> \x85\x45 |0
+<UF132> \x85\x46 |0
+<UF133> \x85\x47 |0
+<UF134> \x85\x48 |0
+<UF135> \x85\x49 |0
+<UF136> \x85\x4A |0
+<UF137> \x85\x4B |0
+<UF138> \x85\x4C |0
+<UF139> \x85\x4D |0
+<UF13A> \x85\x4E |0
+<UF13B> \x85\x4F |0
+<UF13C> \x85\x50 |0
+<UF13D> \x85\x51 |0
+<UF13E> \x85\x52 |0
+<UF13F> \x85\x53 |0
+<UF140> \x85\x54 |0
+<UF141> \x85\x55 |0
+<UF142> \x85\x56 |0
+<UF143> \x85\x57 |0
+<UF144> \x85\x58 |0
+<UF145> \x85\x59 |0
+<UF146> \x85\x5A |0
+<UF147> \x85\x5B |0
+<UF148> \x85\x5C |0
+<UF149> \x85\x5D |0
+<UF14A> \x85\x5E |0
+<UF14B> \x85\x5F |0
+<UF14C> \x85\x60 |0
+<UF14D> \x85\x61 |0
+<UF14E> \x85\x62 |0
+<UF14F> \x85\x63 |0
+<UF150> \x85\x64 |0
+<UF151> \x85\x65 |0
+<UF152> \x85\x66 |0
+<UF153> \x85\x67 |0
+<UF154> \x85\x68 |0
+<UF155> \x85\x69 |0
+<UF156> \x85\x6A |0
+<UF157> \x85\x6B |0
+<UF158> \x85\x6C |0
+<UF159> \x85\x6D |0
+<UF15A> \x85\x6E |0
+<UF15B> \x85\x6F |0
+<UF15C> \x85\x70 |0
+<UF15D> \x85\x71 |0
+<UF15E> \x85\x72 |0
+<UF15F> \x85\x73 |0
+<UF160> \x85\x74 |0
+<UF161> \x85\x75 |0
+<UF162> \x85\x76 |0
+<UF163> \x85\x77 |0
+<UF164> \x85\x78 |0
+<UF165> \x85\x79 |0
+<UF166> \x85\x7A |0
+<UF167> \x85\x7B |0
+<UF168> \x85\x7C |0
+<UF169> \x85\x7D |0
+<UF16A> \x85\x7E |0
+<UF16B> \x85\xA1 |0
+<UF16C> \x85\xA2 |0
+<UF16D> \x85\xA3 |0
+<UF16E> \x85\xA4 |0
+<UF16F> \x85\xA5 |0
+<UF170> \x85\xA6 |0
+<UF171> \x85\xA7 |0
+<UF172> \x85\xA8 |0
+<UF173> \x85\xA9 |0
+<UF174> \x85\xAA |0
+<UF175> \x85\xAB |0
+<UF176> \x85\xAC |0
+<UF177> \x85\xAD |0
+<UF178> \x85\xAE |0
+<UF179> \x85\xAF |0
+<UF17A> \x85\xB0 |0
+<UF17B> \x85\xB1 |0
+<UF17C> \x85\xB2 |0
+<UF17D> \x85\xB3 |0
+<UF17E> \x85\xB4 |0
+<UF17F> \x85\xB5 |0
+<UF180> \x85\xB6 |0
+<UF181> \x85\xB7 |0
+<UF182> \x85\xB8 |0
+<UF183> \x85\xB9 |0
+<UF184> \x85\xBA |0
+<UF185> \x85\xBB |0
+<UF186> \x85\xBC |0
+<UF187> \x85\xBD |0
+<UF188> \x85\xBE |0
+<UF189> \x85\xBF |0
+<UF18A> \x85\xC0 |0
+<UF18B> \x85\xC1 |0
+<UF18C> \x85\xC2 |0
+<UF18D> \x85\xC3 |0
+<UF18E> \x85\xC4 |0
+<UF18F> \x85\xC5 |0
+<UF190> \x85\xC6 |0
+<UF191> \x85\xC7 |0
+<UF192> \x85\xC8 |0
+<UF193> \x85\xC9 |0
+<UF194> \x85\xCA |0
+<UF195> \x85\xCB |0
+<UF196> \x85\xCC |0
+<UF197> \x85\xCD |0
+<UF198> \x85\xCE |0
+<UF199> \x85\xCF |0
+<UF19A> \x85\xD0 |0
+<UF19B> \x85\xD1 |0
+<UF19C> \x85\xD2 |0
+<UF19D> \x85\xD3 |0
+<UF19E> \x85\xD4 |0
+<UF19F> \x85\xD5 |0
+<UF1A0> \x85\xD6 |0
+<UF1A1> \x85\xD7 |0
+<UF1A2> \x85\xD8 |0
+<UF1A3> \x85\xD9 |0
+<UF1A4> \x85\xDA |0
+<UF1A5> \x85\xDB |0
+<UF1A6> \x85\xDC |0
+<UF1A7> \x85\xDD |0
+<UF1A8> \x85\xDE |0
+<UF1A9> \x85\xDF |0
+<UF1AA> \x85\xE0 |0
+<UF1AB> \x85\xE1 |0
+<UF1AC> \x85\xE2 |0
+<UF1AD> \x85\xE3 |0
+<UF1AE> \x85\xE4 |0
+<UF1AF> \x85\xE5 |0
+<UF1B0> \x85\xE6 |0
+<UF1B1> \x85\xE7 |0
+<UF1B2> \x85\xE8 |0
+<UF1B3> \x85\xE9 |0
+<UF1B4> \x85\xEA |0
+<UF1B5> \x85\xEB |0
+<UF1B6> \x85\xEC |0
+<UF1B7> \x85\xED |0
+<UF1B8> \x85\xEE |0
+<UF1B9> \x85\xEF |0
+<UF1BA> \x85\xF0 |0
+<UF1BB> \x85\xF1 |0
+<UF1BC> \x85\xF2 |0
+<UF1BD> \x85\xF3 |0
+<UF1BE> \x85\xF4 |0
+<UF1BF> \x85\xF5 |0
+<UF1C0> \x85\xF6 |0
+<UF1C1> \x85\xF7 |0
+<UF1C2> \x85\xF8 |0
+<UF1C3> \x85\xF9 |0
+<UF1C4> \x85\xFA |0
+<UF1C5> \x85\xFB |0
+<UF1C6> \x85\xFC |0
+<UF1C7> \x85\xFD |0
+<UF1C8> \x85\xFE |0
+<UF1C9> \x86\x40 |0
+<UF1CA> \x86\x41 |0
+<UF1CB> \x86\x42 |0
+<UF1CC> \x86\x43 |0
+<UF1CD> \x86\x44 |0
+<UF1CE> \x86\x45 |0
+<UF1CF> \x86\x46 |0
+<UF1D0> \x86\x47 |0
+<UF1D1> \x86\x48 |0
+<UF1D2> \x86\x49 |0
+<UF1D3> \x86\x4A |0
+<UF1D4> \x86\x4B |0
+<UF1D5> \x86\x4C |0
+<UF1D6> \x86\x4D |0
+<UF1D7> \x86\x4E |0
+<UF1D8> \x86\x4F |0
+<UF1D9> \x86\x50 |0
+<UF1DA> \x86\x51 |0
+<UF1DB> \x86\x52 |0
+<UF1DC> \x86\x53 |0
+<UF1DD> \x86\x54 |0
+<UF1DE> \x86\x55 |0
+<UF1DF> \x86\x56 |0
+<UF1E0> \x86\x57 |0
+<UF1E1> \x86\x58 |0
+<UF1E2> \x86\x59 |0
+<UF1E3> \x86\x5A |0
+<UF1E4> \x86\x5B |0
+<UF1E5> \x86\x5C |0
+<UF1E6> \x86\x5D |0
+<UF1E7> \x86\x5E |0
+<UF1E8> \x86\x5F |0
+<UF1E9> \x86\x60 |0
+<UF1EA> \x86\x61 |0
+<UF1EB> \x86\x62 |0
+<UF1EC> \x86\x63 |0
+<UF1ED> \x86\x64 |0
+<UF1EE> \x86\x65 |0
+<UF1EF> \x86\x66 |0
+<UF1F0> \x86\x67 |0
+<UF1F1> \x86\x68 |0
+<UF1F2> \x86\x69 |0
+<UF1F3> \x86\x6A |0
+<UF1F4> \x86\x6B |0
+<UF1F5> \x86\x6C |0
+<UF1F6> \x86\x6D |0
+<UF1F7> \x86\x6E |0
+<UF1F8> \x86\x6F |0
+<UF1F9> \x86\x70 |0
+<UF1FA> \x86\x71 |0
+<UF1FB> \x86\x72 |0
+<UF1FC> \x86\x73 |0
+<UF1FD> \x86\x74 |0
+<UF1FE> \x86\x75 |0
+<UF1FF> \x86\x76 |0
+<UF200> \x86\x77 |0
+<UF201> \x86\x78 |0
+<UF202> \x86\x79 |0
+<UF203> \x86\x7A |0
+<UF204> \x86\x7B |0
+<UF205> \x86\x7C |0
+<UF206> \x86\x7D |0
+<UF207> \x86\x7E |0
+<UF208> \x86\xA1 |0
+<UF209> \x86\xA2 |0
+<UF20A> \x86\xA3 |0
+<UF20B> \x86\xA4 |0
+<UF20C> \x86\xA5 |0
+<UF20D> \x86\xA6 |0
+<UF20E> \x86\xA7 |0
+<UF20F> \x86\xA8 |0
+<UF210> \x86\xA9 |0
+<UF211> \x86\xAA |0
+<UF212> \x86\xAB |0
+<UF213> \x86\xAC |0
+<UF214> \x86\xAD |0
+<UF215> \x86\xAE |0
+<UF216> \x86\xAF |0
+<UF217> \x86\xB0 |0
+<UF218> \x86\xB1 |0
+<UF219> \x86\xB2 |0
+<UF21A> \x86\xB3 |0
+<UF21B> \x86\xB4 |0
+<UF21C> \x86\xB5 |0
+<UF21D> \x86\xB6 |0
+<UF21E> \x86\xB7 |0
+<UF21F> \x86\xB8 |0
+<UF220> \x86\xB9 |0
+<UF221> \x86\xBA |0
+<UF222> \x86\xBB |0
+<UF223> \x86\xBC |0
+<UF224> \x86\xBD |0
+<UF225> \x86\xBE |0
+<UF226> \x86\xBF |0
+<UF227> \x86\xC0 |0
+<UF228> \x86\xC1 |0
+<UF229> \x86\xC2 |0
+<UF22A> \x86\xC3 |0
+<UF22B> \x86\xC4 |0
+<UF22C> \x86\xC5 |0
+<UF22D> \x86\xC6 |0
+<UF22E> \x86\xC7 |0
+<UF22F> \x86\xC8 |0
+<UF230> \x86\xC9 |0
+<UF231> \x86\xCA |0
+<UF232> \x86\xCB |0
+<UF233> \x86\xCC |0
+<UF234> \x86\xCD |0
+<UF235> \x86\xCE |0
+<UF236> \x86\xCF |0
+<UF237> \x86\xD0 |0
+<UF238> \x86\xD1 |0
+<UF239> \x86\xD2 |0
+<UF23A> \x86\xD3 |0
+<UF23B> \x86\xD4 |0
+<UF23C> \x86\xD5 |0
+<UF23D> \x86\xD6 |0
+<UF23E> \x86\xD7 |0
+<UF23F> \x86\xD8 |0
+<UF240> \x86\xD9 |0
+<UF241> \x86\xDA |0
+<UF242> \x86\xDB |0
+<UF243> \x86\xDC |0
+<UF244> \x86\xDD |0
+<UF245> \x86\xDE |0
+<UF246> \x86\xDF |0
+<UF247> \x86\xE0 |0
+<UF248> \x86\xE1 |0
+<UF249> \x86\xE2 |0
+<UF24A> \x86\xE3 |0
+<UF24B> \x86\xE4 |0
+<UF24C> \x86\xE5 |0
+<UF24D> \x86\xE6 |0
+<UF24E> \x86\xE7 |0
+<UF24F> \x86\xE8 |0
+<UF250> \x86\xE9 |0
+<UF251> \x86\xEA |0
+<UF252> \x86\xEB |0
+<UF253> \x86\xEC |0
+<UF254> \x86\xED |0
+<UF255> \x86\xEE |0
+<UF256> \x86\xEF |0
+<UF257> \x86\xF0 |0
+<UF258> \x86\xF1 |0
+<UF259> \x86\xF2 |0
+<UF25A> \x86\xF3 |0
+<UF25B> \x86\xF4 |0
+<UF25C> \x86\xF5 |0
+<UF25D> \x86\xF6 |0
+<UF25E> \x86\xF7 |0
+<UF25F> \x86\xF8 |0
+<UF260> \x86\xF9 |0
+<UF261> \x86\xFA |0
+<UF262> \x86\xFB |0
+<UF263> \x86\xFC |0
+<UF264> \x86\xFD |0
+<UF265> \x86\xFE |0
+<UF266> \x87\x40 |0
+<UF267> \x87\x41 |0
+<UF268> \x87\x42 |0
+<UF269> \x87\x43 |0
+<UF26A> \x87\x44 |0
+<UF26B> \x87\x45 |0
+<UF26C> \x87\x46 |0
+<UF26D> \x87\x47 |0
+<UF26E> \x87\x48 |0
+<UF26F> \x87\x49 |0
+<UF270> \x87\x4A |0
+<UF271> \x87\x4B |0
+<UF272> \x87\x4C |0
+<UF273> \x87\x4D |0
+<UF274> \x87\x4E |0
+<UF275> \x87\x4F |0
+<UF276> \x87\x50 |0
+<UF277> \x87\x51 |0
+<UF278> \x87\x52 |0
+<UF279> \x87\x53 |0
+<UF27A> \x87\x54 |0
+<UF27B> \x87\x55 |0
+<UF27C> \x87\x56 |0
+<UF27D> \x87\x57 |0
+<UF27E> \x87\x58 |0
+<UF27F> \x87\x59 |0
+<UF280> \x87\x5A |0
+<UF281> \x87\x5B |0
+<UF282> \x87\x5C |0
+<UF283> \x87\x5D |0
+<UF284> \x87\x5E |0
+<UF285> \x87\x5F |0
+<UF286> \x87\x60 |0
+<UF287> \x87\x61 |0
+<UF288> \x87\x62 |0
+<UF289> \x87\x63 |0
+<UF28A> \x87\x64 |0
+<UF28B> \x87\x65 |0
+<UF28C> \x87\x66 |0
+<UF28D> \x87\x67 |0
+<UF28E> \x87\x68 |0
+<UF28F> \x87\x69 |0
+<UF290> \x87\x6A |0
+<UF291> \x87\x6B |0
+<UF292> \x87\x6C |0
+<UF293> \x87\x6D |0
+<UF294> \x87\x6E |0
+<UF295> \x87\x6F |0
+<UF296> \x87\x70 |0
+<UF297> \x87\x71 |0
+<UF298> \x87\x72 |0
+<UF299> \x87\x73 |0
+<UF29A> \x87\x74 |0
+<UF29B> \x87\x75 |0
+<UF29C> \x87\x76 |0
+<UF29D> \x87\x77 |0
+<UF29E> \x87\x78 |0
+<UF29F> \x87\x79 |0
+<UF2A0> \x87\x7A |0
+<UF2A1> \x87\x7B |0
+<UF2A2> \x87\x7C |0
+<UF2A3> \x87\x7D |0
+<UF2A4> \x87\x7E |0
+<UF2A5> \x87\xA1 |0
+<UF2A6> \x87\xA2 |0
+<UF2A7> \x87\xA3 |0
+<UF2A8> \x87\xA4 |0
+<UF2A9> \x87\xA5 |0
+<UF2AA> \x87\xA6 |0
+<UF2AB> \x87\xA7 |0
+<UF2AC> \x87\xA8 |0
+<UF2AD> \x87\xA9 |0
+<UF2AE> \x87\xAA |0
+<UF2AF> \x87\xAB |0
+<UF2B0> \x87\xAC |0
+<UF2B1> \x87\xAD |0
+<UF2B2> \x87\xAE |0
+<UF2B3> \x87\xAF |0
+<UF2B4> \x87\xB0 |0
+<UF2B5> \x87\xB1 |0
+<UF2B6> \x87\xB2 |0
+<UF2B7> \x87\xB3 |0
+<UF2B8> \x87\xB4 |0
+<UF2B9> \x87\xB5 |0
+<UF2BA> \x87\xB6 |0
+<UF2BB> \x87\xB7 |0
+<UF2BC> \x87\xB8 |0
+<UF2BD> \x87\xB9 |0
+<UF2BE> \x87\xBA |0
+<UF2BF> \x87\xBB |0
+<UF2C0> \x87\xBC |0
+<UF2C1> \x87\xBD |0
+<UF2C2> \x87\xBE |0
+<UF2C3> \x87\xBF |0
+<UF2C4> \x87\xC0 |0
+<UF2C5> \x87\xC1 |0
+<UF2C6> \x87\xC2 |0
+<UF2C7> \x87\xC3 |0
+<UF2C8> \x87\xC4 |0
+<UF2C9> \x87\xC5 |0
+<UF2CA> \x87\xC6 |0
+<UF2CB> \x87\xC7 |0
+<UF2CC> \x87\xC8 |0
+<UF2CD> \x87\xC9 |0
+<UF2CE> \x87\xCA |0
+<UF2CF> \x87\xCB |0
+<UF2D0> \x87\xCC |0
+<UF2D1> \x87\xCD |0
+<UF2D2> \x87\xCE |0
+<UF2D3> \x87\xCF |0
+<UF2D4> \x87\xD0 |0
+<UF2D5> \x87\xD1 |0
+<UF2D6> \x87\xD2 |0
+<UF2D7> \x87\xD3 |0
+<UF2D8> \x87\xD4 |0
+<UF2D9> \x87\xD5 |0
+<UF2DA> \x87\xD6 |0
+<UF2DB> \x87\xD7 |0
+<UF2DC> \x87\xD8 |0
+<UF2DD> \x87\xD9 |0
+<UF2DE> \x87\xDA |0
+<UF2DF> \x87\xDB |0
+<UF2E0> \x87\xDC |0
+<UF2E1> \x87\xDD |0
+<UF2E2> \x87\xDE |0
+<UF2E3> \x87\xDF |0
+<UF2E4> \x87\xE0 |0
+<UF2E5> \x87\xE1 |0
+<UF2E6> \x87\xE2 |0
+<UF2E7> \x87\xE3 |0
+<UF2E8> \x87\xE4 |0
+<UF2E9> \x87\xE5 |0
+<UF2EA> \x87\xE6 |0
+<UF2EB> \x87\xE7 |0
+<UF2EC> \x87\xE8 |0
+<UF2ED> \x87\xE9 |0
+<UF2EE> \x87\xEA |0
+<UF2EF> \x87\xEB |0
+<UF2F0> \x87\xEC |0
+<UF2F1> \x87\xED |0
+<UF2F2> \x87\xEE |0
+<UF2F3> \x87\xEF |0
+<UF2F4> \x87\xF0 |0
+<UF2F5> \x87\xF1 |0
+<UF2F6> \x87\xF2 |0
+<UF2F7> \x87\xF3 |0
+<UF2F8> \x87\xF4 |0
+<UF2F9> \x87\xF5 |0
+<UF2FA> \x87\xF6 |0
+<UF2FB> \x87\xF7 |0
+<UF2FC> \x87\xF8 |0
+<UF2FD> \x87\xF9 |0
+<UF2FE> \x87\xFA |0
+<UF2FF> \x87\xFB |0
+<UF300> \x87\xFC |0
+<UF301> \x87\xFD |0
+<UF302> \x87\xFE |0
+<UF303> \x88\x40 |0
+<UF304> \x88\x41 |0
+<UF305> \x88\x42 |0
+<UF306> \x88\x43 |0
+<UF307> \x88\x44 |0
+<UF308> \x88\x45 |0
+<UF309> \x88\x46 |0
+<UF30A> \x88\x47 |0
+<UF30B> \x88\x48 |0
+<UF30C> \x88\x49 |0
+<UF30D> \x88\x4A |0
+<UF30E> \x88\x4B |0
+<UF30F> \x88\x4C |0
+<UF310> \x88\x4D |0
+<UF311> \x88\x4E |0
+<UF312> \x88\x4F |0
+<UF313> \x88\x50 |0
+<UF314> \x88\x51 |0
+<UF315> \x88\x52 |0
+<UF316> \x88\x53 |0
+<UF317> \x88\x54 |0
+<UF318> \x88\x55 |0
+<UF319> \x88\x56 |0
+<UF31A> \x88\x57 |0
+<UF31B> \x88\x58 |0
+<UF31C> \x88\x59 |0
+<UF31D> \x88\x5A |0
+<UF31E> \x88\x5B |0
+<UF31F> \x88\x5C |0
+<UF320> \x88\x5D |0
+<UF321> \x88\x5E |0
+<UF322> \x88\x5F |0
+<UF323> \x88\x60 |0
+<UF324> \x88\x61 |0
+<UF325> \x88\x62 |0
+<UF326> \x88\x63 |0
+<UF327> \x88\x64 |0
+<UF328> \x88\x65 |0
+<UF329> \x88\x66 |0
+<UF32A> \x88\x67 |0
+<UF32B> \x88\x68 |0
+<UF32C> \x88\x69 |0
+<UF32D> \x88\x6A |0
+<UF32E> \x88\x6B |0
+<UF32F> \x88\x6C |0
+<UF330> \x88\x6D |0
+<UF331> \x88\x6E |0
+<UF332> \x88\x6F |0
+<UF333> \x88\x70 |0
+<UF334> \x88\x71 |0
+<UF335> \x88\x72 |0
+<UF336> \x88\x73 |0
+<UF337> \x88\x74 |0
+<UF338> \x88\x75 |0
+<UF339> \x88\x76 |0
+<UF33A> \x88\x77 |0
+<UF33B> \x88\x78 |0
+<UF33C> \x88\x79 |0
+<UF33D> \x88\x7A |0
+<UF33E> \x88\x7B |0
+<UF33F> \x88\x7C |0
+<UF340> \x88\x7D |0
+<UF341> \x88\x7E |0
+<UF342> \x88\xA1 |0
+<UF343> \x88\xA2 |0
+<UF344> \x88\xA3 |0
+<UF345> \x88\xA4 |0
+<UF346> \x88\xA5 |0
+<UF347> \x88\xA6 |0
+<UF348> \x88\xA7 |0
+<UF349> \x88\xA8 |0
+<UF34A> \x88\xA9 |0
+<UF34B> \x88\xAA |0
+<UF34C> \x88\xAB |0
+<UF34D> \x88\xAC |0
+<UF34E> \x88\xAD |0
+<UF34F> \x88\xAE |0
+<UF350> \x88\xAF |0
+<UF351> \x88\xB0 |0
+<UF352> \x88\xB1 |0
+<UF353> \x88\xB2 |0
+<UF354> \x88\xB3 |0
+<UF355> \x88\xB4 |0
+<UF356> \x88\xB5 |0
+<UF357> \x88\xB6 |0
+<UF358> \x88\xB7 |0
+<UF359> \x88\xB8 |0
+<UF35A> \x88\xB9 |0
+<UF35B> \x88\xBA |0
+<UF35C> \x88\xBB |0
+<UF35D> \x88\xBC |0
+<UF35E> \x88\xBD |0
+<UF35F> \x88\xBE |0
+<UF360> \x88\xBF |0
+<UF361> \x88\xC0 |0
+<UF362> \x88\xC1 |0
+<UF363> \x88\xC2 |0
+<UF364> \x88\xC3 |0
+<UF365> \x88\xC4 |0
+<UF366> \x88\xC5 |0
+<UF367> \x88\xC6 |0
+<UF368> \x88\xC7 |0
+<UF369> \x88\xC8 |0
+<UF36A> \x88\xC9 |0
+<UF36B> \x88\xCA |0
+<UF36C> \x88\xCB |0
+<UF36D> \x88\xCC |0
+<UF36E> \x88\xCD |0
+<UF36F> \x88\xCE |0
+<UF370> \x88\xCF |0
+<UF371> \x88\xD0 |0
+<UF372> \x88\xD1 |0
+<UF373> \x88\xD2 |0
+<UF374> \x88\xD3 |0
+<UF375> \x88\xD4 |0
+<UF376> \x88\xD5 |0
+<UF377> \x88\xD6 |0
+<UF378> \x88\xD7 |0
+<UF379> \x88\xD8 |0
+<UF37A> \x88\xD9 |0
+<UF37B> \x88\xDA |0
+<UF37C> \x88\xDB |0
+<UF37D> \x88\xDC |0
+<UF37E> \x88\xDD |0
+<UF37F> \x88\xDE |0
+<UF380> \x88\xDF |0
+<UF381> \x88\xE0 |0
+<UF382> \x88\xE1 |0
+<UF383> \x88\xE2 |0
+<UF384> \x88\xE3 |0
+<UF385> \x88\xE4 |0
+<UF386> \x88\xE5 |0
+<UF387> \x88\xE6 |0
+<UF388> \x88\xE7 |0
+<UF389> \x88\xE8 |0
+<UF38A> \x88\xE9 |0
+<UF38B> \x88\xEA |0
+<UF38C> \x88\xEB |0
+<UF38D> \x88\xEC |0
+<UF38E> \x88\xED |0
+<UF38F> \x88\xEE |0
+<UF390> \x88\xEF |0
+<UF391> \x88\xF0 |0
+<UF392> \x88\xF1 |0
+<UF393> \x88\xF2 |0
+<UF394> \x88\xF3 |0
+<UF395> \x88\xF4 |0
+<UF396> \x88\xF5 |0
+<UF397> \x88\xF6 |0
+<UF398> \x88\xF7 |0
+<UF399> \x88\xF8 |0
+<UF39A> \x88\xF9 |0
+<UF39B> \x88\xFA |0
+<UF39C> \x88\xFB |0
+<UF39D> \x88\xFC |0
+<UF39E> \x88\xFD |0
+<UF39F> \x88\xFE |0
+<UF3A0> \x89\x40 |0
+<UF3A1> \x89\x41 |0
+<UF3A2> \x89\x42 |0
+<UF3A3> \x89\x43 |0
+<UF3A4> \x89\x44 |0
+<UF3A5> \x89\x45 |0
+<UF3A6> \x89\x46 |0
+<UF3A7> \x89\x47 |0
+<UF3A8> \x89\x48 |0
+<UF3A9> \x89\x49 |0
+<UF3AA> \x89\x4A |0
+<UF3AB> \x89\x4B |0
+<UF3AC> \x89\x4C |0
+<UF3AD> \x89\x4D |0
+<UF3AE> \x89\x4E |0
+<UF3AF> \x89\x4F |0
+<UF3B0> \x89\x50 |0
+<UF3B1> \x89\x51 |0
+<UF3B2> \x89\x52 |0
+<UF3B3> \x89\x53 |0
+<UF3B4> \x89\x54 |0
+<UF3B5> \x89\x55 |0
+<UF3B6> \x89\x56 |0
+<UF3B7> \x89\x57 |0
+<UF3B8> \x89\x58 |0
+<UF3B9> \x89\x59 |0
+<UF3BA> \x89\x5A |0
+<UF3BB> \x89\x5B |0
+<UF3BC> \x89\x5C |0
+<UF3BD> \x89\x5D |0
+<UF3BE> \x89\x5E |0
+<UF3BF> \x89\x5F |0
+<UF3C0> \x89\x60 |0
+<UF3C1> \x89\x61 |0
+<UF3C2> \x89\x62 |0
+<UF3C3> \x89\x63 |0
+<UF3C4> \x89\x64 |0
+<UF3C5> \x89\x65 |0
+<UF3C6> \x89\x66 |0
+<UF3C7> \x89\x67 |0
+<UF3C8> \x89\x68 |0
+<UF3C9> \x89\x69 |0
+<UF3CA> \x89\x6A |0
+<UF3CB> \x89\x6B |0
+<UF3CC> \x89\x6C |0
+<UF3CD> \x89\x6D |0
+<UF3CE> \x89\x6E |0
+<UF3CF> \x89\x6F |0
+<UF3D0> \x89\x70 |0
+<UF3D1> \x89\x71 |0
+<UF3D2> \x89\x72 |0
+<UF3D3> \x89\x73 |0
+<UF3D4> \x89\x74 |0
+<UF3D5> \x89\x75 |0
+<UF3D6> \x89\x76 |0
+<UF3D7> \x89\x77 |0
+<UF3D8> \x89\x78 |0
+<UF3D9> \x89\x79 |0
+<UF3DA> \x89\x7A |0
+<UF3DB> \x89\x7B |0
+<UF3DC> \x89\x7C |0
+<UF3DD> \x89\x7D |0
+<UF3DE> \x89\x7E |0
+<UF3DF> \x89\xA1 |0
+<UF3E0> \x89\xA2 |0
+<UF3E1> \x89\xA3 |0
+<UF3E2> \x89\xA4 |0
+<UF3E3> \x89\xA5 |0
+<UF3E4> \x89\xA6 |0
+<UF3E5> \x89\xA7 |0
+<UF3E6> \x89\xA8 |0
+<UF3E7> \x89\xA9 |0
+<UF3E8> \x89\xAA |0
+<UF3E9> \x89\xAB |0
+<UF3EA> \x89\xAC |0
+<UF3EB> \x89\xAD |0
+<UF3EC> \x89\xAE |0
+<UF3ED> \x89\xAF |0
+<UF3EE> \x89\xB0 |0
+<UF3EF> \x89\xB1 |0
+<UF3F0> \x89\xB2 |0
+<UF3F1> \x89\xB3 |0
+<UF3F2> \x89\xB4 |0
+<UF3F3> \x89\xB5 |0
+<UF3F4> \x89\xB6 |0
+<UF3F5> \x89\xB7 |0
+<UF3F6> \x89\xB8 |0
+<UF3F7> \x89\xB9 |0
+<UF3F8> \x89\xBA |0
+<UF3F9> \x89\xBB |0
+<UF3FA> \x89\xBC |0
+<UF3FB> \x89\xBD |0
+<UF3FC> \x89\xBE |0
+<UF3FD> \x89\xBF |0
+<UF3FE> \x89\xC0 |0
+<UF3FF> \x89\xC1 |0
+<UF400> \x89\xC2 |0
+<UF401> \x89\xC3 |0
+<UF402> \x89\xC4 |0
+<UF403> \x89\xC5 |0
+<UF404> \x89\xC6 |0
+<UF405> \x89\xC7 |0
+<UF406> \x89\xC8 |0
+<UF407> \x89\xC9 |0
+<UF408> \x89\xCA |0
+<UF409> \x89\xCB |0
+<UF40A> \x89\xCC |0
+<UF40B> \x89\xCD |0
+<UF40C> \x89\xCE |0
+<UF40D> \x89\xCF |0
+<UF40E> \x89\xD0 |0
+<UF40F> \x89\xD1 |0
+<UF410> \x89\xD2 |0
+<UF411> \x89\xD3 |0
+<UF412> \x89\xD4 |0
+<UF413> \x89\xD5 |0
+<UF414> \x89\xD6 |0
+<UF415> \x89\xD7 |0
+<UF416> \x89\xD8 |0
+<UF417> \x89\xD9 |0
+<UF418> \x89\xDA |0
+<UF419> \x89\xDB |0
+<UF41A> \x89\xDC |0
+<UF41B> \x89\xDD |0
+<UF41C> \x89\xDE |0
+<UF41D> \x89\xDF |0
+<UF41E> \x89\xE0 |0
+<UF41F> \x89\xE1 |0
+<UF420> \x89\xE2 |0
+<UF421> \x89\xE3 |0
+<UF422> \x89\xE4 |0
+<UF423> \x89\xE5 |0
+<UF424> \x89\xE6 |0
+<UF425> \x89\xE7 |0
+<UF426> \x89\xE8 |0
+<UF427> \x89\xE9 |0
+<UF428> \x89\xEA |0
+<UF429> \x89\xEB |0
+<UF42A> \x89\xEC |0
+<UF42B> \x89\xED |0
+<UF42C> \x89\xEE |0
+<UF42D> \x89\xEF |0
+<UF42E> \x89\xF0 |0
+<UF42F> \x89\xF1 |0
+<UF430> \x89\xF2 |0
+<UF431> \x89\xF3 |0
+<UF432> \x89\xF4 |0
+<UF433> \x89\xF5 |0
+<UF434> \x89\xF6 |0
+<UF435> \x89\xF7 |0
+<UF436> \x89\xF8 |0
+<UF437> \x89\xF9 |0
+<UF438> \x89\xFA |0
+<UF439> \x89\xFB |0
+<UF43A> \x89\xFC |0
+<UF43B> \x89\xFD |0
+<UF43C> \x89\xFE |0
+<UF43D> \x8A\x40 |0
+<UF43E> \x8A\x41 |0
+<UF43F> \x8A\x42 |0
+<UF440> \x8A\x43 |0
+<UF441> \x8A\x44 |0
+<UF442> \x8A\x45 |0
+<UF443> \x8A\x46 |0
+<UF444> \x8A\x47 |0
+<UF445> \x8A\x48 |0
+<UF446> \x8A\x49 |0
+<UF447> \x8A\x4A |0
+<UF448> \x8A\x4B |0
+<UF449> \x8A\x4C |0
+<UF44A> \x8A\x4D |0
+<UF44B> \x8A\x4E |0
+<UF44C> \x8A\x4F |0
+<UF44D> \x8A\x50 |0
+<UF44E> \x8A\x51 |0
+<UF44F> \x8A\x52 |0
+<UF450> \x8A\x53 |0
+<UF451> \x8A\x54 |0
+<UF452> \x8A\x55 |0
+<UF453> \x8A\x56 |0
+<UF454> \x8A\x57 |0
+<UF455> \x8A\x58 |0
+<UF456> \x8A\x59 |0
+<UF457> \x8A\x5A |0
+<UF458> \x8A\x5B |0
+<UF459> \x8A\x5C |0
+<UF45A> \x8A\x5D |0
+<UF45B> \x8A\x5E |0
+<UF45C> \x8A\x5F |0
+<UF45D> \x8A\x60 |0
+<UF45E> \x8A\x61 |0
+<UF45F> \x8A\x62 |0
+<UF460> \x8A\x63 |0
+<UF461> \x8A\x64 |0
+<UF462> \x8A\x65 |0
+<UF463> \x8A\x66 |0
+<UF464> \x8A\x67 |0
+<UF465> \x8A\x68 |0
+<UF466> \x8A\x69 |0
+<UF467> \x8A\x6A |0
+<UF468> \x8A\x6B |0
+<UF469> \x8A\x6C |0
+<UF46A> \x8A\x6D |0
+<UF46B> \x8A\x6E |0
+<UF46C> \x8A\x6F |0
+<UF46D> \x8A\x70 |0
+<UF46E> \x8A\x71 |0
+<UF46F> \x8A\x72 |0
+<UF470> \x8A\x73 |0
+<UF471> \x8A\x74 |0
+<UF472> \x8A\x75 |0
+<UF473> \x8A\x76 |0
+<UF474> \x8A\x77 |0
+<UF475> \x8A\x78 |0
+<UF476> \x8A\x79 |0
+<UF477> \x8A\x7A |0
+<UF478> \x8A\x7B |0
+<UF479> \x8A\x7C |0
+<UF47A> \x8A\x7D |0
+<UF47B> \x8A\x7E |0
+<UF47C> \x8A\xA1 |0
+<UF47D> \x8A\xA2 |0
+<UF47E> \x8A\xA3 |0
+<UF47F> \x8A\xA4 |0
+<UF480> \x8A\xA5 |0
+<UF481> \x8A\xA6 |0
+<UF482> \x8A\xA7 |0
+<UF483> \x8A\xA8 |0
+<UF484> \x8A\xA9 |0
+<UF485> \x8A\xAA |0
+<UF486> \x8A\xAB |0
+<UF487> \x8A\xAC |0
+<UF488> \x8A\xAD |0
+<UF489> \x8A\xAE |0
+<UF48A> \x8A\xAF |0
+<UF48B> \x8A\xB0 |0
+<UF48C> \x8A\xB1 |0
+<UF48D> \x8A\xB2 |0
+<UF48E> \x8A\xB3 |0
+<UF48F> \x8A\xB4 |0
+<UF490> \x8A\xB5 |0
+<UF491> \x8A\xB6 |0
+<UF492> \x8A\xB7 |0
+<UF493> \x8A\xB8 |0
+<UF494> \x8A\xB9 |0
+<UF495> \x8A\xBA |0
+<UF496> \x8A\xBB |0
+<UF497> \x8A\xBC |0
+<UF498> \x8A\xBD |0
+<UF499> \x8A\xBE |0
+<UF49A> \x8A\xBF |0
+<UF49B> \x8A\xC0 |0
+<UF49C> \x8A\xC1 |0
+<UF49D> \x8A\xC2 |0
+<UF49E> \x8A\xC3 |0
+<UF49F> \x8A\xC4 |0
+<UF4A0> \x8A\xC5 |0
+<UF4A1> \x8A\xC6 |0
+<UF4A2> \x8A\xC7 |0
+<UF4A3> \x8A\xC8 |0
+<UF4A4> \x8A\xC9 |0
+<UF4A5> \x8A\xCA |0
+<UF4A6> \x8A\xCB |0
+<UF4A7> \x8A\xCC |0
+<UF4A8> \x8A\xCD |0
+<UF4A9> \x8A\xCE |0
+<UF4AA> \x8A\xCF |0
+<UF4AB> \x8A\xD0 |0
+<UF4AC> \x8A\xD1 |0
+<UF4AD> \x8A\xD2 |0
+<UF4AE> \x8A\xD3 |0
+<UF4AF> \x8A\xD4 |0
+<UF4B0> \x8A\xD5 |0
+<UF4B1> \x8A\xD6 |0
+<UF4B2> \x8A\xD7 |0
+<UF4B3> \x8A\xD8 |0
+<UF4B4> \x8A\xD9 |0
+<UF4B5> \x8A\xDA |0
+<UF4B6> \x8A\xDB |0
+<UF4B7> \x8A\xDC |0
+<UF4B8> \x8A\xDD |0
+<UF4B9> \x8A\xDE |0
+<UF4BA> \x8A\xDF |0
+<UF4BB> \x8A\xE0 |0
+<UF4BC> \x8A\xE1 |0
+<UF4BD> \x8A\xE2 |0
+<UF4BE> \x8A\xE3 |0
+<UF4BF> \x8A\xE4 |0
+<UF4C0> \x8A\xE5 |0
+<UF4C1> \x8A\xE6 |0
+<UF4C2> \x8A\xE7 |0
+<UF4C3> \x8A\xE8 |0
+<UF4C4> \x8A\xE9 |0
+<UF4C5> \x8A\xEA |0
+<UF4C6> \x8A\xEB |0
+<UF4C7> \x8A\xEC |0
+<UF4C8> \x8A\xED |0
+<UF4C9> \x8A\xEE |0
+<UF4CA> \x8A\xEF |0
+<UF4CB> \x8A\xF0 |0
+<UF4CC> \x8A\xF1 |0
+<UF4CD> \x8A\xF2 |0
+<UF4CE> \x8A\xF3 |0
+<UF4CF> \x8A\xF4 |0
+<UF4D0> \x8A\xF5 |0
+<UF4D1> \x8A\xF6 |0
+<UF4D2> \x8A\xF7 |0
+<UF4D3> \x8A\xF8 |0
+<UF4D4> \x8A\xF9 |0
+<UF4D5> \x8A\xFA |0
+<UF4D6> \x8A\xFB |0
+<UF4D7> \x8A\xFC |0
+<UF4D8> \x8A\xFD |0
+<UF4D9> \x8A\xFE |0
+<UF4DA> \x8B\x40 |0
+<UF4DB> \x8B\x41 |0
+<UF4DC> \x8B\x42 |0
+<UF4DD> \x8B\x43 |0
+<UF4DE> \x8B\x44 |0
+<UF4DF> \x8B\x45 |0
+<UF4E0> \x8B\x46 |0
+<UF4E1> \x8B\x47 |0
+<UF4E2> \x8B\x48 |0
+<UF4E3> \x8B\x49 |0
+<UF4E4> \x8B\x4A |0
+<UF4E5> \x8B\x4B |0
+<UF4E6> \x8B\x4C |0
+<UF4E7> \x8B\x4D |0
+<UF4E8> \x8B\x4E |0
+<UF4E9> \x8B\x4F |0
+<UF4EA> \x8B\x50 |0
+<UF4EB> \x8B\x51 |0
+<UF4EC> \x8B\x52 |0
+<UF4ED> \x8B\x53 |0
+<UF4EE> \x8B\x54 |0
+<UF4EF> \x8B\x55 |0
+<UF4F0> \x8B\x56 |0
+<UF4F1> \x8B\x57 |0
+<UF4F2> \x8B\x58 |0
+<UF4F3> \x8B\x59 |0
+<UF4F4> \x8B\x5A |0
+<UF4F5> \x8B\x5B |0
+<UF4F6> \x8B\x5C |0
+<UF4F7> \x8B\x5D |0
+<UF4F8> \x8B\x5E |0
+<UF4F9> \x8B\x5F |0
+<UF4FA> \x8B\x60 |0
+<UF4FB> \x8B\x61 |0
+<UF4FC> \x8B\x62 |0
+<UF4FD> \x8B\x63 |0
+<UF4FE> \x8B\x64 |0
+<UF4FF> \x8B\x65 |0
+<UF500> \x8B\x66 |0
+<UF501> \x8B\x67 |0
+<UF502> \x8B\x68 |0
+<UF503> \x8B\x69 |0
+<UF504> \x8B\x6A |0
+<UF505> \x8B\x6B |0
+<UF506> \x8B\x6C |0
+<UF507> \x8B\x6D |0
+<UF508> \x8B\x6E |0
+<UF509> \x8B\x6F |0
+<UF50A> \x8B\x70 |0
+<UF50B> \x8B\x71 |0
+<UF50C> \x8B\x72 |0
+<UF50D> \x8B\x73 |0
+<UF50E> \x8B\x74 |0
+<UF50F> \x8B\x75 |0
+<UF510> \x8B\x76 |0
+<UF511> \x8B\x77 |0
+<UF512> \x8B\x78 |0
+<UF513> \x8B\x79 |0
+<UF514> \x8B\x7A |0
+<UF515> \x8B\x7B |0
+<UF516> \x8B\x7C |0
+<UF517> \x8B\x7D |0
+<UF518> \x8B\x7E |0
+<UF519> \x8B\xA1 |0
+<UF51A> \x8B\xA2 |0
+<UF51B> \x8B\xA3 |0
+<UF51C> \x8B\xA4 |0
+<UF51D> \x8B\xA5 |0
+<UF51E> \x8B\xA6 |0
+<UF51F> \x8B\xA7 |0
+<UF520> \x8B\xA8 |0
+<UF521> \x8B\xA9 |0
+<UF522> \x8B\xAA |0
+<UF523> \x8B\xAB |0
+<UF524> \x8B\xAC |0
+<UF525> \x8B\xAD |0
+<UF526> \x8B\xAE |0
+<UF527> \x8B\xAF |0
+<UF528> \x8B\xB0 |0
+<UF529> \x8B\xB1 |0
+<UF52A> \x8B\xB2 |0
+<UF52B> \x8B\xB3 |0
+<UF52C> \x8B\xB4 |0
+<UF52D> \x8B\xB5 |0
+<UF52E> \x8B\xB6 |0
+<UF52F> \x8B\xB7 |0
+<UF530> \x8B\xB8 |0
+<UF531> \x8B\xB9 |0
+<UF532> \x8B\xBA |0
+<UF533> \x8B\xBB |0
+<UF534> \x8B\xBC |0
+<UF535> \x8B\xBD |0
+<UF536> \x8B\xBE |0
+<UF537> \x8B\xBF |0
+<UF538> \x8B\xC0 |0
+<UF539> \x8B\xC1 |0
+<UF53A> \x8B\xC2 |0
+<UF53B> \x8B\xC3 |0
+<UF53C> \x8B\xC4 |0
+<UF53D> \x8B\xC5 |0
+<UF53E> \x8B\xC6 |0
+<UF53F> \x8B\xC7 |0
+<UF540> \x8B\xC8 |0
+<UF541> \x8B\xC9 |0
+<UF542> \x8B\xCA |0
+<UF543> \x8B\xCB |0
+<UF544> \x8B\xCC |0
+<UF545> \x8B\xCD |0
+<UF546> \x8B\xCE |0
+<UF547> \x8B\xCF |0
+<UF548> \x8B\xD0 |0
+<UF549> \x8B\xD1 |0
+<UF54A> \x8B\xD2 |0
+<UF54B> \x8B\xD3 |0
+<UF54C> \x8B\xD4 |0
+<UF54D> \x8B\xD5 |0
+<UF54E> \x8B\xD6 |0
+<UF54F> \x8B\xD7 |0
+<UF550> \x8B\xD8 |0
+<UF551> \x8B\xD9 |0
+<UF552> \x8B\xDA |0
+<UF553> \x8B\xDB |0
+<UF554> \x8B\xDC |0
+<UF555> \x8B\xDD |0
+<UF556> \x8B\xDE |0
+<UF557> \x8B\xDF |0
+<UF558> \x8B\xE0 |0
+<UF559> \x8B\xE1 |0
+<UF55A> \x8B\xE2 |0
+<UF55B> \x8B\xE3 |0
+<UF55C> \x8B\xE4 |0
+<UF55D> \x8B\xE5 |0
+<UF55E> \x8B\xE6 |0
+<UF55F> \x8B\xE7 |0
+<UF560> \x8B\xE8 |0
+<UF561> \x8B\xE9 |0
+<UF562> \x8B\xEA |0
+<UF563> \x8B\xEB |0
+<UF564> \x8B\xEC |0
+<UF565> \x8B\xED |0
+<UF566> \x8B\xEE |0
+<UF567> \x8B\xEF |0
+<UF568> \x8B\xF0 |0
+<UF569> \x8B\xF1 |0
+<UF56A> \x8B\xF2 |0
+<UF56B> \x8B\xF3 |0
+<UF56C> \x8B\xF4 |0
+<UF56D> \x8B\xF5 |0
+<UF56E> \x8B\xF6 |0
+<UF56F> \x8B\xF7 |0
+<UF570> \x8B\xF8 |0
+<UF571> \x8B\xF9 |0
+<UF572> \x8B\xFA |0
+<UF573> \x8B\xFB |0
+<UF574> \x8B\xFC |0
+<UF575> \x8B\xFD |0
+<UF576> \x8B\xFE |0
+<UF577> \x8C\x40 |0
+<UF578> \x8C\x41 |0
+<UF579> \x8C\x42 |0
+<UF57A> \x8C\x43 |0
+<UF57B> \x8C\x44 |0
+<UF57C> \x8C\x45 |0
+<UF57D> \x8C\x46 |0
+<UF57E> \x8C\x47 |0
+<UF57F> \x8C\x48 |0
+<UF580> \x8C\x49 |0
+<UF581> \x8C\x4A |0
+<UF582> \x8C\x4B |0
+<UF583> \x8C\x4C |0
+<UF584> \x8C\x4D |0
+<UF585> \x8C\x4E |0
+<UF586> \x8C\x4F |0
+<UF587> \x8C\x50 |0
+<UF588> \x8C\x51 |0
+<UF589> \x8C\x52 |0
+<UF58A> \x8C\x53 |0
+<UF58B> \x8C\x54 |0
+<UF58C> \x8C\x55 |0
+<UF58D> \x8C\x56 |0
+<UF58E> \x8C\x57 |0
+<UF58F> \x8C\x58 |0
+<UF590> \x8C\x59 |0
+<UF591> \x8C\x5A |0
+<UF592> \x8C\x5B |0
+<UF593> \x8C\x5C |0
+<UF594> \x8C\x5D |0
+<UF595> \x8C\x5E |0
+<UF596> \x8C\x5F |0
+<UF597> \x8C\x60 |0
+<UF598> \x8C\x61 |0
+<UF599> \x8C\x62 |0
+<UF59A> \x8C\x63 |0
+<UF59B> \x8C\x64 |0
+<UF59C> \x8C\x65 |0
+<UF59D> \x8C\x66 |0
+<UF59E> \x8C\x67 |0
+<UF59F> \x8C\x68 |0
+<UF5A0> \x8C\x69 |0
+<UF5A1> \x8C\x6A |0
+<UF5A2> \x8C\x6B |0
+<UF5A3> \x8C\x6C |0
+<UF5A4> \x8C\x6D |0
+<UF5A5> \x8C\x6E |0
+<UF5A6> \x8C\x6F |0
+<UF5A7> \x8C\x70 |0
+<UF5A8> \x8C\x71 |0
+<UF5A9> \x8C\x72 |0
+<UF5AA> \x8C\x73 |0
+<UF5AB> \x8C\x74 |0
+<UF5AC> \x8C\x75 |0
+<UF5AD> \x8C\x76 |0
+<UF5AE> \x8C\x77 |0
+<UF5AF> \x8C\x78 |0
+<UF5B0> \x8C\x79 |0
+<UF5B1> \x8C\x7A |0
+<UF5B2> \x8C\x7B |0
+<UF5B3> \x8C\x7C |0
+<UF5B4> \x8C\x7D |0
+<UF5B5> \x8C\x7E |0
+<UF5B6> \x8C\xA1 |0
+<UF5B7> \x8C\xA2 |0
+<UF5B8> \x8C\xA3 |0
+<UF5B9> \x8C\xA4 |0
+<UF5BA> \x8C\xA5 |0
+<UF5BB> \x8C\xA6 |0
+<UF5BC> \x8C\xA7 |0
+<UF5BD> \x8C\xA8 |0
+<UF5BE> \x8C\xA9 |0
+<UF5BF> \x8C\xAA |0
+<UF5C0> \x8C\xAB |0
+<UF5C1> \x8C\xAC |0
+<UF5C2> \x8C\xAD |0
+<UF5C3> \x8C\xAE |0
+<UF5C4> \x8C\xAF |0
+<UF5C5> \x8C\xB0 |0
+<UF5C6> \x8C\xB1 |0
+<UF5C7> \x8C\xB2 |0
+<UF5C8> \x8C\xB3 |0
+<UF5C9> \x8C\xB4 |0
+<UF5CA> \x8C\xB5 |0
+<UF5CB> \x8C\xB6 |0
+<UF5CC> \x8C\xB7 |0
+<UF5CD> \x8C\xB8 |0
+<UF5CE> \x8C\xB9 |0
+<UF5CF> \x8C\xBA |0
+<UF5D0> \x8C\xBB |0
+<UF5D1> \x8C\xBC |0
+<UF5D2> \x8C\xBD |0
+<UF5D3> \x8C\xBE |0
+<UF5D4> \x8C\xBF |0
+<UF5D5> \x8C\xC0 |0
+<UF5D6> \x8C\xC1 |0
+<UF5D7> \x8C\xC2 |0
+<UF5D8> \x8C\xC3 |0
+<UF5D9> \x8C\xC4 |0
+<UF5DA> \x8C\xC5 |0
+<UF5DB> \x8C\xC6 |0
+<UF5DC> \x8C\xC7 |0
+<UF5DD> \x8C\xC8 |0
+<UF5DE> \x8C\xC9 |0
+<UF5DF> \x8C\xCA |0
+<UF5E0> \x8C\xCB |0
+<UF5E1> \x8C\xCC |0
+<UF5E2> \x8C\xCD |0
+<UF5E3> \x8C\xCE |0
+<UF5E4> \x8C\xCF |0
+<UF5E5> \x8C\xD0 |0
+<UF5E6> \x8C\xD1 |0
+<UF5E7> \x8C\xD2 |0
+<UF5E8> \x8C\xD3 |0
+<UF5E9> \x8C\xD4 |0
+<UF5EA> \x8C\xD5 |0
+<UF5EB> \x8C\xD6 |0
+<UF5EC> \x8C\xD7 |0
+<UF5ED> \x8C\xD8 |0
+<UF5EE> \x8C\xD9 |0
+<UF5EF> \x8C\xDA |0
+<UF5F0> \x8C\xDB |0
+<UF5F1> \x8C\xDC |0
+<UF5F2> \x8C\xDD |0
+<UF5F3> \x8C\xDE |0
+<UF5F4> \x8C\xDF |0
+<UF5F5> \x8C\xE0 |0
+<UF5F6> \x8C\xE1 |0
+<UF5F7> \x8C\xE2 |0
+<UF5F8> \x8C\xE3 |0
+<UF5F9> \x8C\xE4 |0
+<UF5FA> \x8C\xE5 |0
+<UF5FB> \x8C\xE6 |0
+<UF5FC> \x8C\xE7 |0
+<UF5FD> \x8C\xE8 |0
+<UF5FE> \x8C\xE9 |0
+<UF5FF> \x8C\xEA |0
+<UF600> \x8C\xEB |0
+<UF601> \x8C\xEC |0
+<UF602> \x8C\xED |0
+<UF603> \x8C\xEE |0
+<UF604> \x8C\xEF |0
+<UF605> \x8C\xF0 |0
+<UF606> \x8C\xF1 |0
+<UF607> \x8C\xF2 |0
+<UF608> \x8C\xF3 |0
+<UF609> \x8C\xF4 |0
+<UF60A> \x8C\xF5 |0
+<UF60B> \x8C\xF6 |0
+<UF60C> \x8C\xF7 |0
+<UF60D> \x8C\xF8 |0
+<UF60E> \x8C\xF9 |0
+<UF60F> \x8C\xFA |0
+<UF610> \x8C\xFB |0
+<UF611> \x8C\xFC |0
+<UF612> \x8C\xFD |0
+<UF613> \x8C\xFE |0
+<UF614> \x8D\x40 |0
+<UF615> \x8D\x41 |0
+<UF616> \x8D\x42 |0
+<UF617> \x8D\x43 |0
+<UF618> \x8D\x44 |0
+<UF619> \x8D\x45 |0
+<UF61A> \x8D\x46 |0
+<UF61B> \x8D\x47 |0
+<UF61C> \x8D\x48 |0
+<UF61D> \x8D\x49 |0
+<UF61E> \x8D\x4A |0
+<UF61F> \x8D\x4B |0
+<UF620> \x8D\x4C |0
+<UF621> \x8D\x4D |0
+<UF622> \x8D\x4E |0
+<UF623> \x8D\x4F |0
+<UF624> \x8D\x50 |0
+<UF625> \x8D\x51 |0
+<UF626> \x8D\x52 |0
+<UF627> \x8D\x53 |0
+<UF628> \x8D\x54 |0
+<UF629> \x8D\x55 |0
+<UF62A> \x8D\x56 |0
+<UF62B> \x8D\x57 |0
+<UF62C> \x8D\x58 |0
+<UF62D> \x8D\x59 |0
+<UF62E> \x8D\x5A |0
+<UF62F> \x8D\x5B |0
+<UF630> \x8D\x5C |0
+<UF631> \x8D\x5D |0
+<UF632> \x8D\x5E |0
+<UF633> \x8D\x5F |0
+<UF634> \x8D\x60 |0
+<UF635> \x8D\x61 |0
+<UF636> \x8D\x62 |0
+<UF637> \x8D\x63 |0
+<UF638> \x8D\x64 |0
+<UF639> \x8D\x65 |0
+<UF63A> \x8D\x66 |0
+<UF63B> \x8D\x67 |0
+<UF63C> \x8D\x68 |0
+<UF63D> \x8D\x69 |0
+<UF63E> \x8D\x6A |0
+<UF63F> \x8D\x6B |0
+<UF640> \x8D\x6C |0
+<UF641> \x8D\x6D |0
+<UF642> \x8D\x6E |0
+<UF643> \x8D\x6F |0
+<UF644> \x8D\x70 |0
+<UF645> \x8D\x71 |0
+<UF646> \x8D\x72 |0
+<UF647> \x8D\x73 |0
+<UF648> \x8D\x74 |0
+<UF649> \x8D\x75 |0
+<UF64A> \x8D\x76 |0
+<UF64B> \x8D\x77 |0
+<UF64C> \x8D\x78 |0
+<UF64D> \x8D\x79 |0
+<UF64E> \x8D\x7A |0
+<UF64F> \x8D\x7B |0
+<UF650> \x8D\x7C |0
+<UF651> \x8D\x7D |0
+<UF652> \x8D\x7E |0
+<UF653> \x8D\xA1 |0
+<UF654> \x8D\xA2 |0
+<UF655> \x8D\xA3 |0
+<UF656> \x8D\xA4 |0
+<UF657> \x8D\xA5 |0
+<UF658> \x8D\xA6 |0
+<UF659> \x8D\xA7 |0
+<UF65A> \x8D\xA8 |0
+<UF65B> \x8D\xA9 |0
+<UF65C> \x8D\xAA |0
+<UF65D> \x8D\xAB |0
+<UF65E> \x8D\xAC |0
+<UF65F> \x8D\xAD |0
+<UF660> \x8D\xAE |0
+<UF661> \x8D\xAF |0
+<UF662> \x8D\xB0 |0
+<UF663> \x8D\xB1 |0
+<UF664> \x8D\xB2 |0
+<UF665> \x8D\xB3 |0
+<UF666> \x8D\xB4 |0
+<UF667> \x8D\xB5 |0
+<UF668> \x8D\xB6 |0
+<UF669> \x8D\xB7 |0
+<UF66A> \x8D\xB8 |0
+<UF66B> \x8D\xB9 |0
+<UF66C> \x8D\xBA |0
+<UF66D> \x8D\xBB |0
+<UF66E> \x8D\xBC |0
+<UF66F> \x8D\xBD |0
+<UF670> \x8D\xBE |0
+<UF671> \x8D\xBF |0
+<UF672> \x8D\xC0 |0
+<UF673> \x8D\xC1 |0
+<UF674> \x8D\xC2 |0
+<UF675> \x8D\xC3 |0
+<UF676> \x8D\xC4 |0
+<UF677> \x8D\xC5 |0
+<UF678> \x8D\xC6 |0
+<UF679> \x8D\xC7 |0
+<UF67A> \x8D\xC8 |0
+<UF67B> \x8D\xC9 |0
+<UF67C> \x8D\xCA |0
+<UF67D> \x8D\xCB |0
+<UF67E> \x8D\xCC |0
+<UF67F> \x8D\xCD |0
+<UF680> \x8D\xCE |0
+<UF681> \x8D\xCF |0
+<UF682> \x8D\xD0 |0
+<UF683> \x8D\xD1 |0
+<UF684> \x8D\xD2 |0
+<UF685> \x8D\xD3 |0
+<UF686> \x8D\xD4 |0
+<UF687> \x8D\xD5 |0
+<UF688> \x8D\xD6 |0
+<UF689> \x8D\xD7 |0
+<UF68A> \x8D\xD8 |0
+<UF68B> \x8D\xD9 |0
+<UF68C> \x8D\xDA |0
+<UF68D> \x8D\xDB |0
+<UF68E> \x8D\xDC |0
+<UF68F> \x8D\xDD |0
+<UF690> \x8D\xDE |0
+<UF691> \x8D\xDF |0
+<UF692> \x8D\xE0 |0
+<UF693> \x8D\xE1 |0
+<UF694> \x8D\xE2 |0
+<UF695> \x8D\xE3 |0
+<UF696> \x8D\xE4 |0
+<UF697> \x8D\xE5 |0
+<UF698> \x8D\xE6 |0
+<UF699> \x8D\xE7 |0
+<UF69A> \x8D\xE8 |0
+<UF69B> \x8D\xE9 |0
+<UF69C> \x8D\xEA |0
+<UF69D> \x8D\xEB |0
+<UF69E> \x8D\xEC |0
+<UF69F> \x8D\xED |0
+<UF6A0> \x8D\xEE |0
+<UF6A1> \x8D\xEF |0
+<UF6A2> \x8D\xF0 |0
+<UF6A3> \x8D\xF1 |0
+<UF6A4> \x8D\xF2 |0
+<UF6A5> \x8D\xF3 |0
+<UF6A6> \x8D\xF4 |0
+<UF6A7> \x8D\xF5 |0
+<UF6A8> \x8D\xF6 |0
+<UF6A9> \x8D\xF7 |0
+<UF6AA> \x8D\xF8 |0
+<UF6AB> \x8D\xF9 |0
+<UF6AC> \x8D\xFA |0
+<UF6AD> \x8D\xFB |0
+<UF6AE> \x8D\xFC |0
+<UF6AF> \x8D\xFD |0
+<UF6B0> \x8D\xFE |0
+<UF6B1> \xC6\xA1 |0
+<UF6B2> \xC6\xA2 |0
+<UF6B3> \xC6\xA3 |0
+<UF6B4> \xC6\xA4 |0
+<UF6B5> \xC6\xA5 |0
+<UF6B6> \xC6\xA6 |0
+<UF6B7> \xC6\xA7 |0
+<UF6B8> \xC6\xA8 |0
+<UF6B9> \xC6\xA9 |0
+<UF6BA> \xC6\xAA |0
+<UF6BB> \xC6\xAB |0
+<UF6BC> \xC6\xAC |0
+<UF6BD> \xC6\xAD |0
+<UF6BE> \xC6\xAE |0
+<UF6BF> \xC6\xAF |0
+<UF6C0> \xC6\xB0 |0
+<UF6C1> \xC6\xB1 |0
+<UF6C2> \xC6\xB2 |0
+<UF6C3> \xC6\xB3 |0
+<UF6C4> \xC6\xB4 |0
+<UF6C5> \xC6\xB5 |0
+<UF6C6> \xC6\xB6 |0
+<UF6C7> \xC6\xB7 |0
+<UF6C8> \xC6\xB8 |0
+<UF6C9> \xC6\xB9 |0
+<UF6CA> \xC6\xBA |0
+<UF6CB> \xC6\xBB |0
+<UF6CC> \xC6\xBC |0
+<UF6CD> \xC6\xBD |0
+<UF6CE> \xC6\xBE |0
+<UF6CF> \xC6\xBF |0
+<UF6D0> \xC6\xC0 |0
+<UF6D1> \xC6\xC1 |0
+<UF6D2> \xC6\xC2 |0
+<UF6D3> \xC6\xC3 |0
+<UF6D4> \xC6\xC4 |0
+<UF6D5> \xC6\xC5 |0
+<UF6D6> \xC6\xC6 |0
+<UF6D7> \xC6\xC7 |0
+<UF6D8> \xC6\xC8 |0
+<UF6D9> \xC6\xC9 |0
+<UF6DA> \xC6\xCA |0
+<UF6DB> \xC6\xCB |0
+<UF6DC> \xC6\xCC |0
+<UF6DD> \xC6\xCD |0
+<UF6DE> \xC6\xCE |0
+<UF6DF> \xC6\xCF |0
+<UF6E0> \xC6\xD0 |0
+<UF6E1> \xC6\xD1 |0
+<UF6E2> \xC6\xD2 |0
+<UF6E3> \xC6\xD3 |0
+<UF6E4> \xC6\xD4 |0
+<UF6E5> \xC6\xD5 |0
+<UF6E6> \xC6\xD6 |0
+<UF6E7> \xC6\xD7 |0
+<UF6E8> \xC6\xD8 |0
+<UF6E9> \xC6\xD9 |0
+<UF6EA> \xC6\xDA |0
+<UF6EB> \xC6\xDB |0
+<UF6EC> \xC6\xDC |0
+<UF6ED> \xC6\xDD |0
+<UF6EE> \xC6\xDE |0
+<UF6EF> \xC6\xDF |0
+<UF6F0> \xC6\xE0 |0
+<UF6F1> \xC6\xE1 |0
+<UF6F2> \xC6\xE2 |0
+<UF6F3> \xC6\xE3 |0
+<UF6F4> \xC6\xE4 |0
+<UF6F5> \xC6\xE5 |0
+<UF6F6> \xC6\xE6 |0
+<UF6F7> \xC6\xE7 |0
+<UF6F8> \xC6\xE8 |0
+<UF6F9> \xC6\xE9 |0
+<UF6FA> \xC6\xEA |0
+<UF6FB> \xC6\xEB |0
+<UF6FC> \xC6\xEC |0
+<UF6FD> \xC6\xED |0
+<UF6FE> \xC6\xEE |0
+<UF6FF> \xC6\xEF |0
+<UF700> \xC6\xF0 |0
+<UF701> \xC6\xF1 |0
+<UF702> \xC6\xF2 |0
+<UF703> \xC6\xF3 |0
+<UF704> \xC6\xF4 |0
+<UF705> \xC6\xF5 |0
+<UF706> \xC6\xF6 |0
+<UF707> \xC6\xF7 |0
+<UF708> \xC6\xF8 |0
+<UF709> \xC6\xF9 |0
+<UF70A> \xC6\xFA |0
+<UF70B> \xC6\xFB |0
+<UF70C> \xC6\xFC |0
+<UF70D> \xC6\xFD |0
+<UF70E> \xC6\xFE |0
+<UF70F> \xC7\x40 |0
+<UF710> \xC7\x41 |0
+<UF711> \xC7\x42 |0
+<UF712> \xC7\x43 |0
+<UF713> \xC7\x44 |0
+<UF714> \xC7\x45 |0
+<UF715> \xC7\x46 |0
+<UF716> \xC7\x47 |0
+<UF717> \xC7\x48 |0
+<UF718> \xC7\x49 |0
+<UF719> \xC7\x4A |0
+<UF71A> \xC7\x4B |0
+<UF71B> \xC7\x4C |0
+<UF71C> \xC7\x4D |0
+<UF71D> \xC7\x4E |0
+<UF71E> \xC7\x4F |0
+<UF71F> \xC7\x50 |0
+<UF720> \xC7\x51 |0
+<UF721> \xC7\x52 |0
+<UF722> \xC7\x53 |0
+<UF723> \xC7\x54 |0
+<UF724> \xC7\x55 |0
+<UF725> \xC7\x56 |0
+<UF726> \xC7\x57 |0
+<UF727> \xC7\x58 |0
+<UF728> \xC7\x59 |0
+<UF729> \xC7\x5A |0
+<UF72A> \xC7\x5B |0
+<UF72B> \xC7\x5C |0
+<UF72C> \xC7\x5D |0
+<UF72D> \xC7\x5E |0
+<UF72E> \xC7\x5F |0
+<UF72F> \xC7\x60 |0
+<UF730> \xC7\x61 |0
+<UF731> \xC7\x62 |0
+<UF732> \xC7\x63 |0
+<UF733> \xC7\x64 |0
+<UF734> \xC7\x65 |0
+<UF735> \xC7\x66 |0
+<UF736> \xC7\x67 |0
+<UF737> \xC7\x68 |0
+<UF738> \xC7\x69 |0
+<UF739> \xC7\x6A |0
+<UF73A> \xC7\x6B |0
+<UF73B> \xC7\x6C |0
+<UF73C> \xC7\x6D |0
+<UF73D> \xC7\x6E |0
+<UF73E> \xC7\x6F |0
+<UF73F> \xC7\x70 |0
+<UF740> \xC7\x71 |0
+<UF741> \xC7\x72 |0
+<UF742> \xC7\x73 |0
+<UF743> \xC7\x74 |0
+<UF744> \xC7\x75 |0
+<UF745> \xC7\x76 |0
+<UF746> \xC7\x77 |0
+<UF747> \xC7\x78 |0
+<UF748> \xC7\x79 |0
+<UF749> \xC7\x7A |0
+<UF74A> \xC7\x7B |0
+<UF74B> \xC7\x7C |0
+<UF74C> \xC7\x7D |0
+<UF74D> \xC7\x7E |0
+<UF74E> \xC7\xA1 |0
+<UF74F> \xC7\xA2 |0
+<UF750> \xC7\xA3 |0
+<UF751> \xC7\xA4 |0
+<UF752> \xC7\xA5 |0
+<UF753> \xC7\xA6 |0
+<UF754> \xC7\xA7 |0
+<UF755> \xC7\xA8 |0
+<UF756> \xC7\xA9 |0
+<UF757> \xC7\xAA |0
+<UF758> \xC7\xAB |0
+<UF759> \xC7\xAC |0
+<UF75A> \xC7\xAD |0
+<UF75B> \xC7\xAE |0
+<UF75C> \xC7\xAF |0
+<UF75D> \xC7\xB0 |0
+<UF75E> \xC7\xB1 |0
+<UF75F> \xC7\xB2 |0
+<UF760> \xC7\xB3 |0
+<UF761> \xC7\xB4 |0
+<UF762> \xC7\xB5 |0
+<UF763> \xC7\xB6 |0
+<UF764> \xC7\xB7 |0
+<UF765> \xC7\xB8 |0
+<UF766> \xC7\xB9 |0
+<UF767> \xC7\xBA |0
+<UF768> \xC7\xBB |0
+<UF769> \xC7\xBC |0
+<UF76A> \xC7\xBD |0
+<UF76B> \xC7\xBE |0
+<UF76C> \xC7\xBF |0
+<UF76D> \xC7\xC0 |0
+<UF76E> \xC7\xC1 |0
+<UF76F> \xC7\xC2 |0
+<UF770> \xC7\xC3 |0
+<UF771> \xC7\xC4 |0
+<UF772> \xC7\xC5 |0
+<UF773> \xC7\xC6 |0
+<UF774> \xC7\xC7 |0
+<UF775> \xC7\xC8 |0
+<UF776> \xC7\xC9 |0
+<UF777> \xC7\xCA |0
+<UF778> \xC7\xCB |0
+<UF779> \xC7\xCC |0
+<UF77A> \xC7\xCD |0
+<UF77B> \xC7\xCE |0
+<UF77C> \xC7\xCF |0
+<UF77D> \xC7\xD0 |0
+<UF77E> \xC7\xD1 |0
+<UF77F> \xC7\xD2 |0
+<UF780> \xC7\xD3 |0
+<UF781> \xC7\xD4 |0
+<UF782> \xC7\xD5 |0
+<UF783> \xC7\xD6 |0
+<UF784> \xC7\xD7 |0
+<UF785> \xC7\xD8 |0
+<UF786> \xC7\xD9 |0
+<UF787> \xC7\xDA |0
+<UF788> \xC7\xDB |0
+<UF789> \xC7\xDC |0
+<UF78A> \xC7\xDD |0
+<UF78B> \xC7\xDE |0
+<UF78C> \xC7\xDF |0
+<UF78D> \xC7\xE0 |0
+<UF78E> \xC7\xE1 |0
+<UF78F> \xC7\xE2 |0
+<UF790> \xC7\xE3 |0
+<UF791> \xC7\xE4 |0
+<UF792> \xC7\xE5 |0
+<UF793> \xC7\xE6 |0
+<UF794> \xC7\xE7 |0
+<UF795> \xC7\xE8 |0
+<UF796> \xC7\xE9 |0
+<UF797> \xC7\xEA |0
+<UF798> \xC7\xEB |0
+<UF799> \xC7\xEC |0
+<UF79A> \xC7\xED |0
+<UF79B> \xC7\xEE |0
+<UF79C> \xC7\xEF |0
+<UF79D> \xC7\xF0 |0
+<UF79E> \xC7\xF1 |0
+<UF79F> \xC7\xF2 |0
+<UF7A0> \xC7\xF3 |0
+<UF7A1> \xC7\xF4 |0
+<UF7A2> \xC7\xF5 |0
+<UF7A3> \xC7\xF6 |0
+<UF7A4> \xC7\xF7 |0
+<UF7A5> \xC7\xF8 |0
+<UF7A6> \xC7\xF9 |0
+<UF7A7> \xC7\xFA |0
+<UF7A8> \xC7\xFB |0
+<UF7A9> \xC7\xFC |0
+<UF7AA> \xC7\xFD |0
+<UF7AB> \xC7\xFE |0
+<UF7AC> \xC8\x40 |0
+<UF7AD> \xC8\x41 |0
+<UF7AE> \xC8\x42 |0
+<UF7AF> \xC8\x43 |0
+<UF7B0> \xC8\x44 |0
+<UF7B1> \xC8\x45 |0
+<UF7B2> \xC8\x46 |0
+<UF7B3> \xC8\x47 |0
+<UF7B4> \xC8\x48 |0
+<UF7B5> \xC8\x49 |0
+<UF7B6> \xC8\x4A |0
+<UF7B7> \xC8\x4B |0
+<UF7B8> \xC8\x4C |0
+<UF7B9> \xC8\x4D |0
+<UF7BA> \xC8\x4E |0
+<UF7BB> \xC8\x4F |0
+<UF7BC> \xC8\x50 |0
+<UF7BD> \xC8\x51 |0
+<UF7BE> \xC8\x52 |0
+<UF7BF> \xC8\x53 |0
+<UF7C0> \xC8\x54 |0
+<UF7C1> \xC8\x55 |0
+<UF7C2> \xC8\x56 |0
+<UF7C3> \xC8\x57 |0
+<UF7C4> \xC8\x58 |0
+<UF7C5> \xC8\x59 |0
+<UF7C6> \xC8\x5A |0
+<UF7C7> \xC8\x5B |0
+<UF7C8> \xC8\x5C |0
+<UF7C9> \xC8\x5D |0
+<UF7CA> \xC8\x5E |0
+<UF7CB> \xC8\x5F |0
+<UF7CC> \xC8\x60 |0
+<UF7CD> \xC8\x61 |0
+<UF7CE> \xC8\x62 |0
+<UF7CF> \xC8\x63 |0
+<UF7D0> \xC8\x64 |0
+<UF7D1> \xC8\x65 |0
+<UF7D2> \xC8\x66 |0
+<UF7D3> \xC8\x67 |0
+<UF7D4> \xC8\x68 |0
+<UF7D5> \xC8\x69 |0
+<UF7D6> \xC8\x6A |0
+<UF7D7> \xC8\x6B |0
+<UF7D8> \xC8\x6C |0
+<UF7D9> \xC8\x6D |0
+<UF7DA> \xC8\x6E |0
+<UF7DB> \xC8\x6F |0
+<UF7DC> \xC8\x70 |0
+<UF7DD> \xC8\x71 |0
+<UF7DE> \xC8\x72 |0
+<UF7DF> \xC8\x73 |0
+<UF7E0> \xC8\x74 |0
+<UF7E1> \xC8\x75 |0
+<UF7E2> \xC8\x76 |0
+<UF7E3> \xC8\x77 |0
+<UF7E4> \xC8\x78 |0
+<UF7E5> \xC8\x79 |0
+<UF7E6> \xC8\x7A |0
+<UF7E7> \xC8\x7B |0
+<UF7E8> \xC8\x7C |0
+<UF7E9> \xC8\x7D |0
+<UF7EA> \xC8\x7E |0
+<UF7EB> \xC8\xA1 |0
+<UF7EC> \xC8\xA2 |0
+<UF7ED> \xC8\xA3 |0
+<UF7EE> \xC8\xA4 |0
+<UF7EF> \xC8\xA5 |0
+<UF7F0> \xC8\xA6 |0
+<UF7F1> \xC8\xA7 |0
+<UF7F2> \xC8\xA8 |0
+<UF7F3> \xC8\xA9 |0
+<UF7F4> \xC8\xAA |0
+<UF7F5> \xC8\xAB |0
+<UF7F6> \xC8\xAC |0
+<UF7F7> \xC8\xAD |0
+<UF7F8> \xC8\xAE |0
+<UF7F9> \xC8\xAF |0
+<UF7FA> \xC8\xB0 |0
+<UF7FB> \xC8\xB1 |0
+<UF7FC> \xC8\xB2 |0
+<UF7FD> \xC8\xB3 |0
+<UF7FE> \xC8\xB4 |0
+<UF7FF> \xC8\xB5 |0
+<UF800> \xC8\xB6 |0
+<UF801> \xC8\xB7 |0
+<UF802> \xC8\xB8 |0
+<UF803> \xC8\xB9 |0
+<UF804> \xC8\xBA |0
+<UF805> \xC8\xBB |0
+<UF806> \xC8\xBC |0
+<UF807> \xC8\xBD |0
+<UF808> \xC8\xBE |0
+<UF809> \xC8\xBF |0
+<UF80A> \xC8\xC0 |0
+<UF80B> \xC8\xC1 |0
+<UF80C> \xC8\xC2 |0
+<UF80D> \xC8\xC3 |0
+<UF80E> \xC8\xC4 |0
+<UF80F> \xC8\xC5 |0
+<UF810> \xC8\xC6 |0
+<UF811> \xC8\xC7 |0
+<UF812> \xC8\xC8 |0
+<UF813> \xC8\xC9 |0
+<UF814> \xC8\xCA |0
+<UF815> \xC8\xCB |0
+<UF816> \xC8\xCC |0
+<UF817> \xC8\xCD |0
+<UF818> \xC8\xCE |0
+<UF819> \xC8\xCF |0
+<UF81A> \xC8\xD0 |0
+<UF81B> \xC8\xD1 |0
+<UF81C> \xC8\xD2 |0
+<UF81D> \xC8\xD3 |0
+<UF81E> \xC8\xD4 |0
+<UF81F> \xC8\xD5 |0
+<UF820> \xC8\xD6 |0
+<UF821> \xC8\xD7 |0
+<UF822> \xC8\xD8 |0
+<UF823> \xC8\xD9 |0
+<UF824> \xC8\xDA |0
+<UF825> \xC8\xDB |0
+<UF826> \xC8\xDC |0
+<UF827> \xC8\xDD |0
+<UF828> \xC8\xDE |0
+<UF829> \xC8\xDF |0
+<UF82A> \xC8\xE0 |0
+<UF82B> \xC8\xE1 |0
+<UF82C> \xC8\xE2 |0
+<UF82D> \xC8\xE3 |0
+<UF82E> \xC8\xE4 |0
+<UF82F> \xC8\xE5 |0
+<UF830> \xC8\xE6 |0
+<UF831> \xC8\xE7 |0
+<UF832> \xC8\xE8 |0
+<UF833> \xC8\xE9 |0
+<UF834> \xC8\xEA |0
+<UF835> \xC8\xEB |0
+<UF836> \xC8\xEC |0
+<UF837> \xC8\xED |0
+<UF838> \xC8\xEE |0
+<UF839> \xC8\xEF |0
+<UF83A> \xC8\xF0 |0
+<UF83B> \xC8\xF1 |0
+<UF83C> \xC8\xF2 |0
+<UF83D> \xC8\xF3 |0
+<UF83E> \xC8\xF4 |0
+<UF83F> \xC8\xF5 |0
+<UF840> \xC8\xF6 |0
+<UF841> \xC8\xF7 |0
+<UF842> \xC8\xF8 |0
+<UF843> \xC8\xF9 |0
+<UF844> \xC8\xFA |0
+<UF845> \xC8\xFB |0
+<UF846> \xC8\xFC |0
+<UF847> \xC8\xFD |0
+<UF848> \xC8\xFE |0
+#<UF8F8> \xFF |0
+<UF900> \xB0\x5A |1
+<UF901> \xA7\xF3 |1
+<UF902> \xA8\xAE |1
+<UF903> \xB8\xEB |1
+<UF904> \xB7\xC6 |1
+<UF905> \xA6\xEA |1
+<UF906> \xA5\x79 |1
+<UF907> \xC0\x74 |1
+<UF908> \xC0\x74 |1
+<UF909> \xAB\xB4 |1
+<UF90A> \xAA\xF7 |1
+<UF90B> \xB3\xE2 |1
+<UF90C> \xA9\x60 |1
+<UF90D> \xC3\x69 |1
+<UF90E> \xC4\xEE |1
+<UF90F> \xC3\xB9 |1
+<UF910> \xC5\xDA |1
+<UF911> \xC1\xB3 |1
+<UF912> \xBB\x72 |1
+<UF913> \xC5\xDE |1
+<UF914> \xBC\xD6 |1
+<UF915> \xAC\xA5 |1
+<UF916> \xAF\x4F |1
+<UF917> \xAF\x5F |1
+<UF918> \xB8\xA8 |1
+<UF919> \xB9\x54 |1
+<UF91A> \xC0\x64 |1
+<UF91B> \xB6\xC3 |1
+<UF91C> \xA7\x5A |1
+<UF91D> \xC4\xE6 |1
+<UF91E> \xC4\xEA |1
+<UF91F> \xC4\xF5 |1
+<UF920> \xC6\x7D |1
+<UF921> \xB4\x50 |1
+<UF922> \xC0\xDD |1
+<UF923> \xC2\xC5 |1
+<UF924> \xC4\xB0 |1
+<UF925> \xA9\xD4 |1
+<UF926> \xC3\xBE |1
+<UF927> \xC4\xFA |1
+<UF928> \xB4\x59 |1
+<UF929> \xAE\xD4 |1
+<UF92A> \xAE\xF6 |1
+<UF92B> \xAF\x54 |1
+<UF92D> \xA8\xD3 |1
+<UF92E> \xA7\x4E |1
+<UF92F> \xB3\xD2 |1
+<UF930> \xBE\xDB |1
+<UF931> \xC3\x72 |1
+<UF932> \xC4\x6C |1
+<UF933> \xBF\x63 |1
+<UF934> \xA6\xD1 |1
+<UF935> \xC4\xAA |1
+<UF936> \xB8\xB8 |1
+<UF937> \xB8\xF4 |1
+<UF938> \xC5\x53 |1
+<UF939> \xBE\x7C |1
+<UF93A> \xC6\x4F |1
+<UF93B> \xB8\x4C |1
+<UF93C> \xB8\x53 |1
+<UF93D> \xBA\xF1 |1
+<UF93E> \xDB\x77 |1
+<UF93F> \xBF\xFD |1
+<UF940> \xB3\xC0 |1
+<UF941> \xBD\xD7 |1
+<UF942> \xC3\x62 |1
+<UF943> \xA7\xCB |1
+<UF944> \xC5\xA2 |1
+<UF945> \xC5\xA4 |1
+<UF946> \xA8\x63 |1
+<UF947> \xBD\x55 |1
+<UF948> \xB8\xEF |1
+<UF949> \xB9\x70 |1
+<UF94A> \xC2\x53 |1
+<UF94B> \xB9\xF0 |1
+<UF94C> \xBC\xD3 |1
+<UF94D> \xB2\x5C |1
+<UF94E> \xBA\x7C |1
+<UF94F> \xB2\xD6 |1
+<UF950> \xC1\x5C |1
+<UF951> \xAD\xAE |1
+<UF952> \xB0\xC7 |1
+<UF953> \xA6\xD8 |1
+<UF954> \xBB\xFE |1
+<UF955> \xAD\xE2 |1
+<UF956> \xB8\x57 |1
+<UF957> \xBA\xF0 |1
+<UF958> \xB5\xD9 |1
+<UF959> \xB3\xAE |1
+<UF95A> \xC5\xAA |1
+<UF95B> \xCE\xD4 |1
+<UF95C> \xBC\xD6 |1
+<UF95D> \xBF\xD5 |1
+<UF95E> \xA4\xA6 |1
+<UF95F> \xB9\xE7 |1
+<UF960> \xAB\xE3 |1
+<UF961> \xB2\x76 |1
+<UF962> \xB2\xA7 |1
+<UF963> \xA5\x5F |1
+<UF964> \xED\xA8 |1
+<UF965> \xAB\x4B |1
+<UF966> \xB4\x5F |1
+<UF967> \xA4\xA3 |1
+<UF968> \xAA\x63 |1
+<UF969> \xBC\xC6 |1
+<UF96A> \xAF\xC1 |1
+<UF96B> \xB0\xD1 |1
+<UF96C> \xB6\xEB |1
+<UF96D> \xAC\xD9 |1
+<UF96E> \xB8\xAD |1
+<UF96F> \xBB\xA1 |1
+<UF970> \xB1\xFE |1
+<UF971> \xA8\xB0 |1
+<UF972> \xA8\x48 |1
+<UF973> \xAC\x42 |1
+<UF974> \xAD\x59 |1
+<UF975> \xB1\xB0 |1
+<UF976> \xB2\xA4 |1
+<UF977> \xAB\x47 |1
+<UF978> \xA8\xE2 |1
+<UF97A> \xB1\xE7 |1
+<UF97B> \xC2\xB3 |1
+<UF97C> \xA8\x7D |1
+<UF97D> \xBD\xCC |1
+<UF97E> \xB6\x71 |1
+<UF97F> \xC0\x79 |1
+<UF980> \xA7\x66 |1
+<UF981> \xA4\x6B |1
+<UF982> \xC3\x66 |1
+<UF983> \xAE\xC8 |1
+<UF984> \xC2\x6F |1
+<UF985> \xC4\x72 |1
+<UF986> \xBE\x5B |1
+<UF987> \xC6\x7A |1
+<UF988> \xC4\x52 |1
+<UF989> \xBE\xA4 |1
+<UF98A> \xA4\x4F |1
+<UF98B> \xBE\xE4 |1
+<UF98C> \xBE\xFA |1
+<UF98D> \xF7\x65 |1
+<UF98E> \xA6\x7E |1
+<UF98F> \xBC\xA6 |1
+<UF990> \xC5\xCA |1
+<UF991> \xBC\xBF |1
+<UF992> \xBA\xA7 |1
+<UF993> \xB7\xD2 |1
+<UF994> \xE6\xA3 |1
+<UF996> \xBD\x6D |1
+<UF997> \xC1\x70 |1
+<UF998> \xBD\xFB |1
+<UF999> \xBD\xAC |1
+<UF99A> \xB3\x73 |1
+<UF99B> \xC1\xE5 |1
+<UF99C> \xA6\x43 |1
+<UF99D> \xA6\x48 |1
+<UF99E> \xAB\x7C |1
+<UF99F> \xAF\x50 |1
+<UF9A0> \xB5\xF5 |1
+<UF9A1> \xBB\xA1 |1
+<UF9A2> \xB7\x47 |1
+<UF9A3> \xA9\xC0 |1
+<UF9A4> \xB1\xC9 |1
+<UF9A5> \xC0\xD4 |1
+<UF9A6> \xC3\xAE |1
+<UF9A7> \xC2\x79 |1
+<UF9A8> \xA5\x4F |1
+<UF9A9> \xCB\xF1 |1
+<UF9AA> \xB9\xE7 |1
+<UF9AB> \xC0\xAD |1
+<UF9AC> \xCC\xB0 |1
+<UF9AD> \xAC\xC2 |1
+<UF9AE> \xBC\xFC |1
+<UF9AF> \xB2\xDC |1
+<UF9B0> \xB2\xE2 |1
+<UF9B1> \xB9\x61 |1
+<UF9B2> \xB9\x73 |1
+<UF9B3> \xC6\x46 |1
+<UF9B4> \xBB\xE2 |1
+<UF9B5> \xA8\xD2 |1
+<UF9B6> \xC2\xA7 |1
+<UF9B7> \xC4\xBF |1
+<UF9B8> \xC1\xF5 |1
+<UF9B9> \xB4\x63 |1
+<UF9BA> \xA4\x46 |1
+<UF9BB> \xB9\xB1 |1
+<UF9BC> \xBC\x64 |1
+<UF9BD> \xA7\xBF |1
+<UF9BE> \xAE\xC6 |1
+<UF9BF> \xBC\xD6 |1
+<UF9C0> \xBF\x52 |1
+<UF9C1> \xC0\xF8 |1
+<UF9C2> \xE7\x64 |1
+<UF9C3> \xBF\xF1 |1
+<UF9C4> \xC0\x73 |1
+<UF9C5> \xB7\x77 |1
+<UF9C6> \xA8\xBF |1
+<UF9C7> \xBC\x42 |1
+<UF9C8> \xCC\xD8 |1
+<UF9C9> \xAC\x68 |1
+<UF9CA> \xAC\x79 |1
+<UF9CB> \xB7\xC8 |1
+<UF9CC> \xAF\x5B |1
+<UF9CD> \xAF\x64 |1
+<UF9CE> \xB2\xB8 |1
+<UF9CF> \xAF\xC3 |1
+<UF9D0> \xC3\xFE |1
+<UF9D1> \xA4\xBB |1
+<UF9D2> \xBC\xAE |1
+<UF9D3> \xB3\xB0 |1
+<UF9D4> \xAD\xDB |1
+<UF9D5> \xB1\x5B |1
+<UF9D6> \xB2\x5F |1
+<UF9D7> \xBD\xFC |1
+<UF9D8> \xAB\xDF |1
+<UF9D9> \xB7\x58 |1
+<UF9DA> \xAE\xDF |1
+<UF9DB> \xB2\x76 |1
+<UF9DC> \xB6\xA9 |1
+<UF9DD> \xA7\x51 |1
+<UF9DE> \xA6\x4F |1
+<UF9DF> \xBC\x69 |1
+<UF9E0> \xA9\xF6 |1
+<UF9E1> \xA7\xF5 |1
+<UF9E2> \xB1\xF9 |1
+<UF9E3> \xAA\x64 |1
+<UF9E4> \xB2\x7A |1
+<UF9E5> \xB5\x67 |1
+<UF9E6> \xBF\xA9 |1
+<UF9E8> \xB8\xCC |1
+<UF9E9> \xA8\xBD |1
+<UF9EA> \xC2\xF7 |1
+<UF9EB> \xB0\xCE |1
+<UF9EC> \xB7\xC4 |1
+<UF9ED> \xA7\x5B |1
+<UF9EE> \xBF\x4D |1
+<UF9EF> \xBF\x5A |1
+<UF9F0> \xC4\xA9 |1
+<UF9F2> \xC5\xEC |1
+<UF9F3> \xC5\xEF |1
+<UF9F4> \xAA\x4C |1
+<UF9F5> \xB2\x4F |1
+<UF9F6> \xC1\x7B |1
+<UF9F7> \xA5\xDF |1
+<UF9F8> \xB2\xC1 |1
+<UF9F9> \xB2\xC9 |1
+<UF9FA> \xAA\xAC |1
+<UF9FB> \xAA\xA5 |1
+<UF9FC> \xC3\xD1 |1
+<UF9FD> \xA4\xB0 |1
+<UF9FE> \xAF\xF9 |1
+<UF9FF> \xA8\xEB |1
+<UFA00> \xA4\xC1 |1
+<UFA01> \xAB\xD7 |1
+<UFA02> \xA9\xDD |1
+<UFA03> \xBF\x7D |1
+<UFA04> \xA6\x76 |1
+<UFA05> \xAC\x7D |1
+<UFA06> \xBC\xC9 |1
+<UFA07> \xBF\xE7 |1
+<UFA08> \xA6\xE6 |1
+<UFA09> \xAD\xB0 |1
+<UFA0A> \xA8\xA3 |1
+<UFA0B> \xB9\xF8 |1
+<UFA0C> \xC9\x4A |0
+<UFA0D> \xDD\xFC |0
+<UFA10> \xB6\xEF |1
+<UFA12> \xB4\xB8 |1
+<UFA15> \xE8\xF9 |1
+<UFA16> \xBD\xDE |1
+<UFA17> \xAF\x71 |1
+<UFA19> \xAF\xAB |1
+<UFA1A> \xB2\xBB |1
+<UFA1B> \xBA\xD6 |1
+<UFA1C> \xB9\x74 |1
+<UFA1D> \xBA\xEB |1
+<UFA1E> \xA6\xD0 |1
+<UFA22> \xBD\xD1 |1
+<UFA25> \xB6\x68 |1
+<UFA26> \xB3\xA3 |1
+<UFA2A> \xB6\xBA |1
+<UFA2B> \xB9\x7D |1
+<UFA2C> \xC0\x5D |1
+<UFA2D> \xC5\x62 |1
+<UFE30> \xA1\x4A |0
+<UFE31> \xA1\x57 |0
+<UFE33> \xA1\x59 |0
+<UFE34> \xA1\x5B |0
+<UFE35> \xA1\x5F |0
+<UFE36> \xA1\x60 |0
+<UFE37> \xA1\x63 |0
+<UFE38> \xA1\x64 |0
+<UFE39> \xA1\x67 |0
+<UFE3A> \xA1\x68 |0
+<UFE3B> \xA1\x6B |0
+<UFE3C> \xA1\x6C |0
+<UFE3D> \xA1\x6F |0
+<UFE3E> \xA1\x70 |0
+<UFE3F> \xA1\x73 |0
+<UFE40> \xA1\x74 |0
+<UFE41> \xA1\x77 |0
+<UFE42> \xA1\x78 |0
+<UFE43> \xA1\x7B |0
+<UFE44> \xA1\x7C |0
+<UFE49> \xA1\xC6 |0
+<UFE4A> \xA1\xC7 |0
+<UFE4B> \xA1\xCA |0
+<UFE4C> \xA1\xCB |0
+<UFE4D> \xA1\xC8 |0
+<UFE4E> \xA1\xC9 |0
+<UFE4F> \xA1\x5C |0
+<UFE50> \xA1\x4D |0
+<UFE51> \xA1\x4E |0
+<UFE52> \xA1\x4F |0
+<UFE54> \xA1\x51 |0
+<UFE55> \xA1\x52 |0
+<UFE56> \xA1\x53 |0
+<UFE57> \xA1\x54 |0
+<UFE59> \xA1\x7D |0
+<UFE5A> \xA1\x7E |0
+<UFE5B> \xA1\xA1 |0
+<UFE5C> \xA1\xA2 |0
+<UFE5D> \xA1\xA3 |0
+<UFE5E> \xA1\xA4 |0
+<UFE5F> \xA1\xCC |0
+<UFE60> \xA1\xCD |0
+<UFE61> \xA1\xCE |0
+<UFE62> \xA1\xDE |0
+<UFE63> \xA1\xDF |0
+<UFE64> \xA1\xE0 |0
+<UFE65> \xA1\xE1 |0
+<UFE66> \xA1\xE2 |0
+<UFE68> \xA2\x42 |0
+<UFE69> \xA2\x4C |0
+<UFE6A> \xA2\x4D |0
+<UFE6B> \xA2\x4E |0
+<UFF01> \xA1\x49 |0
+<UFF02> \xA1\xA8 |1
+<UFF03> \xA1\xAD |0
+<UFF04> \xA2\x43 |0
+<UFF05> \xA2\x48 |0
+<UFF06> \xA1\xAE |0
+<UFF07> \xA1\xA6 |1
+<UFF08> \xA1\x5D |0
+<UFF09> \xA1\x5E |0
+<UFF0A> \xA1\xAF |0
+<UFF0B> \xA1\xCF |0
+<UFF0C> \xA1\x41 |0
+<UFF0D> \xA1\xD0 |0
+<UFF0E> \xA1\x44 |0
+<UFF0F> \xA1\xFE |0
+<UFF10> \xA2\xAF |0
+<UFF11> \xA2\xB0 |0
+<UFF12> \xA2\xB1 |0
+<UFF13> \xA2\xB2 |0
+<UFF14> \xA2\xB3 |0
+<UFF15> \xA2\xB4 |0
+<UFF16> \xA2\xB5 |0
+<UFF17> \xA2\xB6 |0
+<UFF18> \xA2\xB7 |0
+<UFF19> \xA2\xB8 |0
+<UFF1A> \xA1\x47 |0
+<UFF1B> \xA1\x46 |0
+<UFF1C> \xA1\xD5 |0
+<UFF1D> \xA1\xD7 |0
+<UFF1E> \xA1\xD6 |0
+<UFF1F> \xA1\x48 |0
+<UFF20> \xA2\x49 |0
+<UFF21> \xA2\xCF |0
+<UFF22> \xA2\xD0 |0
+<UFF23> \xA2\xD1 |0
+<UFF24> \xA2\xD2 |0
+<UFF25> \xA2\xD3 |0
+<UFF26> \xA2\xD4 |0
+<UFF27> \xA2\xD5 |0
+<UFF28> \xA2\xD6 |0
+<UFF29> \xA2\xD7 |0
+<UFF2A> \xA2\xD8 |0
+<UFF2B> \xA2\xD9 |0
+<UFF2C> \xA2\xDA |0
+<UFF2D> \xA2\xDB |0
+<UFF2E> \xA2\xDC |0
+<UFF2F> \xA2\xDD |0
+<UFF30> \xA2\xDE |0
+<UFF31> \xA2\xDF |0
+<UFF32> \xA2\xE0 |0
+<UFF33> \xA2\xE1 |0
+<UFF34> \xA2\xE2 |0
+<UFF35> \xA2\xE3 |0
+<UFF36> \xA2\xE4 |0
+<UFF37> \xA2\xE5 |0
+<UFF38> \xA2\xE6 |0
+<UFF39> \xA2\xE7 |0
+<UFF3A> \xA2\xE8 |0
+<UFF3B> \xA1\x65 |1
+<UFF3C> \xA2\x40 |0
+<UFF3D> \xA1\x66 |1
+<UFF3E> \xA1\x73 |1
+<UFF3F> \xA1\xC4 |0
+<UFF40> \xA1\xA5 |1
+<UFF41> \xA2\xE9 |0
+<UFF42> \xA2\xEA |0
+<UFF43> \xA2\xEB |0
+<UFF44> \xA2\xEC |0
+<UFF45> \xA2\xED |0
+<UFF46> \xA2\xEE |0
+<UFF47> \xA2\xEF |0
+<UFF48> \xA2\xF0 |0
+<UFF49> \xA2\xF1 |0
+<UFF4A> \xA2\xF2 |0
+<UFF4B> \xA2\xF3 |0
+<UFF4C> \xA2\xF4 |0
+<UFF4D> \xA2\xF5 |0
+<UFF4E> \xA2\xF6 |0
+<UFF4F> \xA2\xF7 |0
+<UFF50> \xA2\xF8 |0
+<UFF51> \xA2\xF9 |0
+<UFF52> \xA2\xFA |0
+<UFF53> \xA2\xFB |0
+<UFF54> \xA2\xFC |0
+<UFF55> \xA2\xFD |0
+<UFF56> \xA2\xFE |0
+<UFF57> \xA3\x40 |0
+<UFF58> \xA3\x41 |0
+<UFF59> \xA3\x42 |0
+<UFF5A> \xA3\x43 |0
+<UFF5B> \xA1\x61 |0
+<UFF5C> \xA1\x55 |0
+<UFF5D> \xA1\x62 |0
+<UFF5E> \xA1\xE3 |0
+<UFF64> \xA1\x4E |1
+<UFFE0> \xA2\x46 |0
+<UFFE1> \xA2\x47 |0
+<UFFE3> \xA1\xC3 |0
+<UFFE5> \xA2\x44 |0
+#
+END CHARMAP
+#
diff --git a/enc/trans/ucm/windows-950_hkscs-2001.ucm b/enc/trans/ucm/windows-950_hkscs-2001.ucm
new file mode 100644
index 0000000000..f7ecf5a3db
--- /dev/null
+++ b/enc/trans/ucm/windows-950_hkscs-2001.ucm
@@ -0,0 +1,23446 @@
+# ***************************************************************************
+# *
+# * Copyright (C) 2001-2002, International Business Machines
+# * Corporation and others. All Rights Reserved.
+# *
+# ***************************************************************************
+#
+# File created on Apr 01 11:35 Pacific Standard Time 2003
+#
+# File created by genmucm tool.
+# from windows 2000 using IMultiLanguage 5.50.4522.1800
+#
+# Table Version : 1.0
+# The 1st column is the Unicode scalar value.
+# The 2nd column is the codepage byte sequence.
+# The 3rd column is the fallback indicator.
+# The fallback indicator can have one of the following values:
+# |0 for exact 1-1 roundtrip mapping
+# |1 for the best fallback codepage byte sequence.
+# |2 for the substitution character
+# |3 for the best reverse fallback Unicode scaler value
+#
+# Encoding description: Chinese Traditional (Big5)
+# Encoding name: big5
+# Comment: Warning this is a non-standard windows-950 implementation
+# you must use http://www.microsoft.com/hk/hkscs/ to get this mapping.
+#
+<code_set_name> "windows-950_hkscs-2001"
+<mb_cur_max> 2
+<mb_cur_min> 1
+<uconv_class> "MBCS"
+<subchar> \x3F
+<icu:charsetFamily> "ASCII"
+# Suggested ICU specific alias information
+#<icu:alias> "windows-950_VPUA"
+
+<icu:state> 0-80, 81-fe:1, ff
+<icu:state> 40-7e, 80-fe
+
+# The following was the generated state table.
+# This does not account for unassigned characters
+#<icu:state> 0-80, 81-fe:1, ff
+#<icu:state> 40-7e, a1-fe
+#
+CHARMAP
+#
+#UNICODE 950
+#_______ _________
+<U0000> \x00 |0
+<U0001> \x01 |0
+<U0002> \x02 |0
+<U0003> \x03 |0
+<U0004> \x04 |0
+<U0005> \x05 |0
+<U0006> \x06 |0
+<U0007> \x07 |0
+<U0008> \x08 |0
+<U0009> \x09 |0
+<U000A> \x0A |0
+<U000B> \x0B |0
+<U000C> \x0C |0
+<U000D> \x0D |0
+<U000E> \x0E |0
+<U000F> \x0F |0
+<U0010> \x10 |0
+<U0011> \x11 |0
+<U0012> \x12 |0
+<U0013> \x13 |0
+<U0014> \x14 |0
+<U0015> \x15 |0
+<U0016> \x16 |0
+<U0017> \x17 |0
+<U0018> \x18 |0
+<U0019> \x19 |0
+<U001A> \x1A |0
+<U001B> \x1B |0
+<U001C> \x1C |0
+<U001D> \x1D |0
+<U001E> \x1E |0
+<U001F> \x1F |0
+<U0020> \x20 |0
+<U0021> \x21 |0
+<U0022> \x22 |0
+<U0023> \x23 |0
+<U0024> \x24 |0
+<U0025> \x25 |0
+<U0026> \x26 |0
+<U0027> \x27 |0
+<U0028> \x28 |0
+<U0029> \x29 |0
+<U002A> \x2A |0
+<U002B> \x2B |0
+<U002C> \x2C |0
+<U002D> \x2D |0
+<U002E> \x2E |0
+<U002F> \x2F |0
+<U0030> \x30 |0
+<U0031> \x31 |0
+<U0032> \x32 |0
+<U0033> \x33 |0
+<U0034> \x34 |0
+<U0035> \x35 |0
+<U0036> \x36 |0
+<U0037> \x37 |0
+<U0038> \x38 |0
+<U0039> \x39 |0
+<U003A> \x3A |0
+<U003B> \x3B |0
+<U003C> \x3C |0
+<U003D> \x3D |0
+<U003E> \x3E |0
+<U003F> \x3F |0
+<U0040> \x40 |0
+<U0041> \x41 |0
+<U0042> \x42 |0
+<U0043> \x43 |0
+<U0044> \x44 |0
+<U0045> \x45 |0
+<U0046> \x46 |0
+<U0047> \x47 |0
+<U0048> \x48 |0
+<U0049> \x49 |0
+<U004A> \x4A |0
+<U004B> \x4B |0
+<U004C> \x4C |0
+<U004D> \x4D |0
+<U004E> \x4E |0
+<U004F> \x4F |0
+<U0050> \x50 |0
+<U0051> \x51 |0
+<U0052> \x52 |0
+<U0053> \x53 |0
+<U0054> \x54 |0
+<U0055> \x55 |0
+<U0056> \x56 |0
+<U0057> \x57 |0
+<U0058> \x58 |0
+<U0059> \x59 |0
+<U005A> \x5A |0
+<U005B> \x5B |0
+<U005C> \x5C |0
+<U005D> \x5D |0
+<U005E> \x5E |0
+<U005F> \x5F |0
+<U0060> \x60 |0
+<U0061> \x61 |0
+<U0062> \x62 |0
+<U0063> \x63 |0
+<U0064> \x64 |0
+<U0065> \x65 |0
+<U0066> \x66 |0
+<U0067> \x67 |0
+<U0068> \x68 |0
+<U0069> \x69 |0
+<U006A> \x6A |0
+<U006B> \x6B |0
+<U006C> \x6C |0
+<U006D> \x6D |0
+<U006E> \x6E |0
+<U006F> \x6F |0
+<U0070> \x70 |0
+<U0071> \x71 |0
+<U0072> \x72 |0
+<U0073> \x73 |0
+<U0074> \x74 |0
+<U0075> \x75 |0
+<U0076> \x76 |0
+<U0077> \x77 |0
+<U0078> \x78 |0
+<U0079> \x79 |0
+<U007A> \x7A |0
+<U007B> \x7B |0
+<U007C> \x7C |0
+<U007D> \x7D |0
+<U007E> \x7E |0
+<U007F> \x7F |0
+#<U0080> \x80 |0
+<U00A1> \x21 |1
+<U00A2> \xA2\x46 |1
+<U00A3> \xA2\x47 |1
+<U00A5> \xA2\x44 |1
+<U00A6> \x7C |1
+<U00A7> \xA1\xB1 |0
+<U00A8> \xC6\xD8 |0
+<U00A9> \x63 |1
+<U00AA> \x61 |1
+<U00AD> \x2D |1
+<U00AE> \x52 |1
+<U00AF> \xA1\xC2 |0
+<U00B0> \xA2\x58 |0
+<U00B1> \xA1\xD3 |0
+<U00B2> \x32 |1
+<U00B3> \x33 |1
+<U00B4> \xA1\xA6 |1
+<U00B5> \xA3\x67 |1
+<U00B7> \xA1\x50 |0
+<U00B8> \xA1\x4D |1
+<U00B9> \x31 |1
+<U00BA> \x6F |1
+<U00C0> \x88\x59 |0
+<U00C1> \x88\x57 |0
+<U00C2> \x41 |1
+<U00C3> \x41 |1
+<U00C4> \x41 |1
+<U00C5> \x41 |1
+<U00C6> \x41 |1
+<U00C7> \x43 |1
+<U00C8> \x88\x5D |0
+<U00C9> \x88\x5B |0
+<U00CA> \x88\x66 |0
+<U00CB> \x45 |1
+<U00CC> \x49 |1
+<U00CD> \x49 |1
+<U00CE> \x49 |1
+<U00CF> \x49 |1
+<U00D0> \x44 |1
+<U00D1> \x4E |1
+<U00D2> \x88\x61 |0
+<U00D3> \x88\x5F |0
+<U00D4> \x4F |1
+<U00D5> \x4F |1
+<U00D6> \x4F |1
+<U00D7> \xA1\xD1 |0
+<U00D8> \x4F |1
+<U00D9> \x55 |1
+<U00DA> \x55 |1
+<U00DB> \x55 |1
+<U00DC> \x55 |1
+<U00DD> \x59 |1
+<U00DE> \x54 |1
+<U00DF> \x73 |1
+<U00E0> \x88\x6A |0
+<U00E1> \x88\x68 |0
+<U00E2> \x61 |1
+<U00E3> \x61 |1
+<U00E4> \x61 |1
+<U00E5> \x61 |1
+<U00E6> \x61 |1
+<U00E7> \x63 |1
+<U00E8> \x88\x6F |0
+<U00E9> \x88\x6D |0
+<U00EA> \x88\xA7 |0
+<U00EB> \x65 |1
+<U00EC> \x88\x73 |0
+<U00ED> \x88\x71 |0
+<U00EE> \x69 |1
+<U00EF> \x69 |1
+<U00F0> \x65 |1
+<U00F1> \x6E |1
+<U00F2> \x88\x77 |0
+<U00F3> \x88\x75 |0
+<U00F4> \x6F |1
+<U00F5> \x6F |1
+<U00F6> \x6F |1
+<U00F7> \xA1\xD2 |0
+<U00F8> \xC8\xFB |0
+<U00F9> \x88\x7B |0
+<U00FA> \x88\x79 |0
+<U00FB> \x75 |1
+<U00FC> \x88\xA2 |0
+<U00FD> \x79 |1
+<U00FE> \x74 |1
+<U00FF> \x79 |1
+<U0100> \x88\x56 |0
+<U0101> \x88\x67 |0
+<U0112> \x88\x5A |0
+<U0113> \x88\x6C |0
+<U011A> \x88\x5C |0
+<U011B> \x88\x6E |0
+<U012B> \x88\x70 |0
+<U014B> \xC8\xFC |0
+<U014C> \x88\x5E |0
+<U014D> \x88\x74 |0
+<U0153> \xC8\xFA |0
+<U016B> \x88\x78 |0
+<U01CD> \x88\x58 |0
+<U01CE> \x88\x69 |0
+<U01D0> \x88\x72 |0
+<U01D1> \x88\x60 |0
+<U01D2> \x88\x76 |0
+<U01D4> \x88\x7A |0
+<U01D6> \x88\x7C |0
+<U01D8> \x88\x7D |0
+<U01DA> \x88\x7E |0
+<U01DC> \x88\xA1 |0
+<U0250> \xC8\xF6 |0
+<U0251> \x88\x6B |0
+<U0254> \xC8\xF8 |0
+<U025B> \xC8\xF7 |0
+<U0261> \x88\xA8 |0
+<U026A> \xC8\xFE |0
+<U0275> \xC8\xF9 |0
+<U0283> \xC8\xF5 |0
+<U028A> \xC8\xFD |0
+<U02C6> \xC6\xD9 |0
+<U02C7> \xA3\xBE |0
+<U02C9> \xA3\xBC |0
+<U02CA> \xA3\xBD |0
+<U02CB> \xA3\xBF |0
+<U02CD> \xA1\xC5 |0
+<U02D9> \xA3\xBB |0
+<U0305> \xA1\xC2 |1
+<U0391> \xA3\x44 |0
+<U0392> \xA3\x45 |0
+<U0393> \xA3\x46 |0
+<U0394> \xA3\x47 |0
+<U0395> \xA3\x48 |0
+<U0396> \xA3\x49 |0
+<U0397> \xA3\x4A |0
+<U0398> \xA3\x4B |0
+<U0399> \xA3\x4C |0
+<U039A> \xA3\x4D |0
+<U039B> \xA3\x4E |0
+<U039C> \xA3\x4F |0
+<U039D> \xA3\x50 |0
+<U039E> \xA3\x51 |0
+<U039F> \xA3\x52 |0
+<U03A0> \xA3\x53 |0
+<U03A1> \xA3\x54 |0
+<U03A3> \xA3\x55 |0
+<U03A4> \xA3\x56 |0
+<U03A5> \xA3\x57 |0
+<U03A6> \xA3\x58 |0
+<U03A7> \xA3\x59 |0
+<U03A8> \xA3\x5A |0
+<U03A9> \xA3\x5B |0
+<U03B1> \xA3\x5C |0
+<U03B2> \xA3\x5D |0
+<U03B3> \xA3\x5E |0
+<U03B4> \xA3\x5F |0
+<U03B5> \xA3\x60 |0
+<U03B6> \xA3\x61 |0
+<U03B7> \xA3\x62 |0
+<U03B8> \xA3\x63 |0
+<U03B9> \xA3\x64 |0
+<U03BA> \xA3\x65 |0
+<U03BB> \xA3\x66 |0
+<U03BC> \xA3\x67 |0
+<U03BD> \xA3\x68 |0
+<U03BE> \xA3\x69 |0
+<U03BF> \xA3\x6A |0
+<U03C0> \xA3\x6B |0
+<U03C1> \xA3\x6C |0
+<U03C3> \xA3\x6D |0
+<U03C4> \xA3\x6E |0
+<U03C5> \xA3\x6F |0
+<U03C6> \xA3\x70 |0
+<U03C7> \xA3\x71 |0
+<U03C8> \xA3\x72 |0
+<U03C9> \xA3\x73 |0
+<U0401> \xC7\xF9 |0
+<U0410> \xC7\xF3 |0
+<U0411> \xC7\xF4 |0
+<U0412> \xC7\xF5 |0
+<U0413> \xC7\xF6 |0
+<U0414> \xC7\xF7 |0
+<U0415> \xC7\xF8 |0
+<U0416> \xC7\xFA |0
+<U0417> \xC7\xFB |0
+<U0418> \xC7\xFC |0
+<U0419> \xC7\xFD |0
+<U041A> \xC7\xFE |0
+<U041B> \xC8\x40 |0
+<U041C> \xC8\x41 |0
+<U041D> \xC8\x42 |0
+<U041E> \xC8\x43 |0
+<U041F> \xC8\x44 |0
+<U0420> \xC8\x45 |0
+<U0421> \xC8\x46 |0
+<U0422> \xC8\x47 |0
+<U0423> \xC8\x48 |0
+<U0424> \xC8\x49 |0
+<U0425> \xC8\x4A |0
+<U0426> \xC8\x4B |0
+<U0427> \xC8\x4C |0
+<U0428> \xC8\x4D |0
+<U0429> \xC8\x4E |0
+<U042A> \xC8\x4F |0
+<U042B> \xC8\x50 |0
+<U042C> \xC8\x51 |0
+<U042D> \xC8\x52 |0
+<U042E> \xC8\x53 |0
+<U042F> \xC8\x54 |0
+<U0430> \xC8\x55 |0
+<U0431> \xC8\x56 |0
+<U0432> \xC8\x57 |0
+<U0433> \xC8\x58 |0
+<U0434> \xC8\x59 |0
+<U0435> \xC8\x5A |0
+<U0436> \xC8\x5C |0
+<U0437> \xC8\x5D |0
+<U0438> \xC8\x5E |0
+<U0439> \xC8\x5F |0
+<U043A> \xC8\x60 |0
+<U043B> \xC8\x61 |0
+<U043C> \xC8\x62 |0
+<U043D> \xC8\x63 |0
+<U043E> \xC8\x64 |0
+<U043F> \xC8\x65 |0
+<U0440> \xC8\x66 |0
+<U0441> \xC8\x67 |0
+<U0442> \xC8\x68 |0
+<U0443> \xC8\x69 |0
+<U0444> \xC8\x6A |0
+<U0445> \xC8\x6B |0
+<U0446> \xC8\x6C |0
+<U0447> \xC8\x6D |0
+<U0448> \xC8\x6E |0
+<U0449> \xC8\x6F |0
+<U044A> \xC8\x70 |0
+<U044B> \xC8\x71 |0
+<U044C> \xC8\x72 |0
+<U044D> \xC8\x73 |0
+<U044E> \xC8\x74 |0
+<U044F> \xC8\x75 |0
+<U0451> \xC8\x5B |0
+<U1EBE> \x88\x63 |0
+<U1EBF> \x88\xA4 |0
+<U1EC0> \x88\x65 |0
+<U1EC1> \x88\xA6 |0
+<U2013> \xA1\x56 |0
+<U2014> \xA1\x58 |0
+<U2015> \xA2\x77 |1
+<U2016> \xA1\xFC |1
+<U2018> \xA1\xA5 |0
+<U2019> \xA1\xA6 |0
+<U201C> \xA1\xA7 |0
+<U201D> \xA1\xA8 |0
+<U2022> \xA1\x45 |1
+<U2024> \xA3\xBB |1
+<U2025> \xA1\x4C |0
+<U2026> \xA1\x4B |0
+<U2027> \xA1\x45 |0
+<U2032> \xA1\xAC |0
+<U2033> \xA1\xB2 |1
+<U2035> \xA1\xAB |0
+<U203B> \xA1\xB0 |0
+<U203E> \xA1\xC3 |1
+<U20AC> \xA3\xE1 |0
+<U2103> \xA2\x4A |0
+<U2105> \xA1\xC1 |0
+<U2109> \xA2\x4B |0
+<U2116> \xC8\xD2 |0
+<U2121> \xC8\xD3 |0
+<U2160> \xA2\xB9 |0
+<U2161> \xA2\xBA |0
+<U2162> \xA2\xBB |0
+<U2163> \xA2\xBC |0
+<U2164> \xA2\xBD |0
+<U2165> \xA2\xBE |0
+<U2166> \xA2\xBF |0
+<U2167> \xA2\xC0 |0
+<U2168> \xA2\xC1 |0
+<U2169> \xA2\xC2 |0
+<U2170> \xC6\xB5 |0
+<U2171> \xC6\xB6 |0
+<U2172> \xC6\xB7 |0
+<U2173> \xC6\xB8 |0
+<U2174> \xC6\xB9 |0
+<U2175> \xC6\xBA |0
+<U2176> \xC6\xBB |0
+<U2177> \xC6\xBC |0
+<U2178> \xC6\xBD |0
+<U2179> \xC6\xBE |0
+<U2190> \xA1\xF6 |0
+<U2191> \xA1\xF4 |0
+<U2192> \xA1\xF7 |0
+<U2193> \xA1\xF5 |0
+<U2196> \xA1\xF8 |0
+<U2197> \xA1\xF9 |0
+<U2198> \xA1\xFB |0
+<U2199> \xA1\xFA |0
+<U21B8> \xC8\x77 |0
+<U21B9> \xC8\x78 |0
+<U21E7> \xC8\x76 |0
+<U2215> \xA2\x41 |0
+<U2216> \xA2\x42 |1
+<U2218> \xA2\x58 |1
+<U221A> \xA1\xD4 |0
+<U221E> \xA1\xDB |0
+<U221F> \xA1\xE8 |0
+<U2220> \xA1\xE7 |0
+<U2223> \xA1\xFD |0
+<U2225> \xA1\xFC |0
+<U2229> \xA1\xE4 |0
+<U222A> \xA1\xE5 |0
+<U222B> \xA1\xEC |0
+<U222E> \xA1\xED |0
+<U2234> \xA1\xEF |0
+<U2235> \xA1\xEE |0
+<U2252> \xA1\xDC |0
+<U2260> \xA1\xDA |0
+<U2261> \xA1\xDD |0
+<U2263> \xA1\xDD |1
+<U2266> \xA1\xD8 |0
+<U2267> \xA1\xD9 |0
+<U2295> \xA1\xF2 |0
+<U2299> \xA1\xF3 |0
+<U22A5> \xA1\xE6 |0
+<U22BF> \xA1\xE9 |0
+<U2307> \xA1\x5B |1
+<U2460> \xC6\xA1 |0
+<U2461> \xC6\xA2 |0
+<U2462> \xC6\xA3 |0
+<U2463> \xC6\xA4 |0
+<U2464> \xC6\xA5 |0
+<U2465> \xC6\xA6 |0
+<U2466> \xC6\xA7 |0
+<U2467> \xC6\xA8 |0
+<U2468> \xC6\xA9 |0
+<U2469> \xC6\xAA |0
+<U2474> \xC6\xAB |0
+<U2475> \xC6\xAC |0
+<U2476> \xC6\xAD |0
+<U2477> \xC6\xAE |0
+<U2478> \xC6\xAF |0
+<U2479> \xC6\xB0 |0
+<U247A> \xC6\xB1 |0
+<U247B> \xC6\xB2 |0
+<U247C> \xC6\xB3 |0
+<U247D> \xC6\xB4 |0
+<U2500> \xA2\x77 |0
+<U2502> \xA2\x78 |0
+<U250C> \xA2\x7A |0
+<U2510> \xA2\x7B |0
+<U2514> \xA2\x7C |0
+<U2518> \xA2\x7D |0
+<U251C> \xA2\x75 |0
+<U2524> \xA2\x74 |0
+<U252C> \xA2\x73 |0
+<U2534> \xA2\x72 |0
+<U253C> \xA2\x71 |0
+<U2550> \xF9\xF9 |0
+<U2550> \xA2\xA4 |3
+<U2551> \xF9\xF8 |0
+<U2552> \xF9\xE6 |0
+<U2553> \xF9\xEF |0
+<U2554> \xF9\xDD |0
+<U2555> \xF9\xE8 |0
+<U2556> \xF9\xF1 |0
+<U2557> \xF9\xDF |0
+<U2558> \xF9\xEC |0
+<U2559> \xF9\xF5 |0
+<U255A> \xF9\xE3 |0
+<U255B> \xF9\xEE |0
+<U255C> \xF9\xF7 |0
+<U255D> \xF9\xE5 |0
+<U255E> \xF9\xE9 |0
+<U255E> \xA2\xA5 |3
+<U255F> \xF9\xF2 |0
+<U2560> \xF9\xE0 |0
+<U2561> \xF9\xEB |0
+<U2561> \xA2\xA7 |3
+<U2562> \xF9\xF4 |0
+<U2563> \xF9\xE2 |0
+<U2564> \xF9\xE7 |0
+<U2565> \xF9\xF0 |0
+<U2566> \xF9\xDE |0
+<U2567> \xF9\xED |0
+<U2568> \xF9\xF6 |0
+<U2569> \xF9\xE4 |0
+<U256A> \xF9\xEA |0
+<U256A> \xA2\xA6 |3
+<U256B> \xF9\xF3 |0
+<U256C> \xF9\xE1 |0
+<U256D> \xF9\xFA |0
+<U256D> \xA2\x7E |3
+<U256E> \xF9\xFB |0
+<U256E> \xA2\xA1 |3
+<U256F> \xF9\xFD |0
+<U256F> \xA2\xA3 |3
+<U2570> \xF9\xFC |0
+<U2570> \xA2\xA2 |3
+<U2571> \xA2\xAC |0
+<U2572> \xA2\xAD |0
+<U2573> \xA2\xAE |0
+<U2574> \xA1\x5A |0
+<U2581> \xA2\x62 |0
+<U2582> \xA2\x63 |0
+<U2583> \xA2\x64 |0
+<U2584> \xA2\x65 |0
+<U2585> \xA2\x66 |0
+<U2586> \xA2\x67 |0
+<U2587> \xA2\x68 |0
+<U2588> \xA2\x69 |0
+<U2589> \xA2\x70 |0
+<U258A> \xA2\x6F |0
+<U258B> \xA2\x6E |0
+<U258C> \xA2\x6D |0
+<U258D> \xA2\x6C |0
+<U258E> \xA2\x6B |0
+<U258F> \xA2\x6A |0
+<U2593> \xF9\xFE |1
+<U2594> \xA2\x76 |0
+<U2595> \xA2\x79 |0
+<U25A0> \xA1\xBD |0
+<U25A1> \xA1\xBC |0
+<U25B2> \xA1\xB6 |0
+<U25B3> \xA1\xB5 |0
+<U25BC> \xA1\xBF |0
+<U25BD> \xA1\xBE |0
+<U25C6> \xA1\xBB |0
+<U25C7> \xA1\xBA |0
+<U25CB> \xA1\xB3 |0
+<U25CE> \xA1\xB7 |0
+<U25CF> \xA1\xB4 |0
+<U25E2> \xA2\xA8 |0
+<U25E3> \xA2\xA9 |0
+<U25E4> \xA2\xAB |0
+<U25E5> \xA2\xAA |0
+<U2605> \xA1\xB9 |0
+<U2606> \xA1\xB8 |0
+<U2609> \xA1\xF3 |1
+<U2640> \xA1\xF0 |0
+<U2641> \xA1\xF2 |1
+<U2642> \xA1\xF1 |0
+<U273D> \xC6\xE6 |0
+<U2E80> \xC8\xD6 |0
+<U2E84> \xC8\xD7 |0
+<U2E86> \xC8\xD8 |0
+<U2E87> \xC8\xD9 |0
+<U2E88> \xC8\xDA |0
+<U2E8A> \xC8\xDB |0
+<U2E8C> \xC8\xDC |0
+<U2E8D> \xC8\xDD |0
+<U2E95> \xC8\xDE |0
+<U2E9C> \xC8\xDF |0
+<U2E9D> \xC8\xE0 |0
+<U2EA5> \xC8\xE1 |0
+<U2EA7> \xC8\xE2 |0
+<U2EAA> \xC8\xE3 |0
+<U2EAC> \xC8\xE4 |0
+<U2EAE> \xC8\xE5 |0
+<U2EB6> \xC8\xE6 |0
+<U2EBC> \xC8\xE7 |0
+<U2EBE> \xC8\xE8 |0
+<U2EC6> \xC8\xE9 |0
+<U2ECA> \xC8\xEA |0
+<U2ECC> \xC8\xEB |0
+<U2ECD> \xC8\xEC |0
+<U2ECF> \xC8\xED |0
+<U2ED6> \xC8\xEE |0
+<U2ED7> \xC8\xEF |0
+<U2EDE> \xC8\xF0 |0
+<U2EE3> \xC8\xF1 |0
+<U2F33> \xC6\xCD |0
+<U3000> \xA1\x40 |0
+<U3001> \xA1\x42 |0
+<U3002> \xA1\x43 |0
+<U3003> \xA1\xB2 |0
+<U3005> \xC6\xE0 |0
+<U3006> \xC6\xE1 |0
+<U3007> \xC6\xE2 |0
+<U3008> \xA1\x71 |0
+<U3009> \xA1\x72 |0
+<U300A> \xA1\x6D |0
+<U300B> \xA1\x6E |0
+<U300C> \xA1\x75 |0
+<U300D> \xA1\x76 |0
+<U300E> \xA1\x79 |0
+<U300F> \xA1\x7A |0
+<U3010> \xA1\x69 |0
+<U3011> \xA1\x6A |0
+<U3012> \xA2\x45 |0
+<U3014> \xA1\x65 |0
+<U3015> \xA1\x66 |0
+<U301C> \xA1\xE3 |1
+<U301D> \xA1\xA9 |0
+<U301E> \xA1\xAA |0
+<U3021> \xA2\xC3 |0
+<U3022> \xA2\xC4 |0
+<U3023> \xA2\xC5 |0
+<U3024> \xA2\xC6 |0
+<U3025> \xA2\xC7 |0
+<U3026> \xA2\xC8 |0
+<U3027> \xA2\xC9 |0
+<U3028> \xA2\xCA |0
+<U3029> \xA2\xCB |0
+<U3030> \xA1\xCA |1
+<U3041> \xC6\xE7 |0
+<U3042> \xC6\xE8 |0
+<U3043> \xC6\xE9 |0
+<U3044> \xC6\xEA |0
+<U3045> \xC6\xEB |0
+<U3046> \xC6\xEC |0
+<U3047> \xC6\xED |0
+<U3048> \xC6\xEE |0
+<U3049> \xC6\xEF |0
+<U304A> \xC6\xF0 |0
+<U304B> \xC6\xF1 |0
+<U304C> \xC6\xF2 |0
+<U304D> \xC6\xF3 |0
+<U304E> \xC6\xF4 |0
+<U304F> \xC6\xF5 |0
+<U3050> \xC6\xF6 |0
+<U3051> \xC6\xF7 |0
+<U3052> \xC6\xF8 |0
+<U3053> \xC6\xF9 |0
+<U3054> \xC6\xFA |0
+<U3055> \xC6\xFB |0
+<U3056> \xC6\xFC |0
+<U3057> \xC6\xFD |0
+<U3058> \xC6\xFE |0
+<U3059> \xC7\x40 |0
+<U305A> \xC7\x41 |0
+<U305B> \xC7\x42 |0
+<U305C> \xC7\x43 |0
+<U305D> \xC7\x44 |0
+<U305E> \xC7\x45 |0
+<U305F> \xC7\x46 |0
+<U3060> \xC7\x47 |0
+<U3061> \xC7\x48 |0
+<U3062> \xC7\x49 |0
+<U3063> \xC7\x4A |0
+<U3064> \xC7\x4B |0
+<U3065> \xC7\x4C |0
+<U3066> \xC7\x4D |0
+<U3067> \xC7\x4E |0
+<U3068> \xC7\x4F |0
+<U3069> \xC7\x50 |0
+<U306A> \xC7\x51 |0
+<U306B> \xC7\x52 |0
+<U306C> \xC7\x53 |0
+<U306D> \xC7\x54 |0
+<U306E> \xC7\x55 |0
+<U306F> \xC7\x56 |0
+<U3070> \xC7\x57 |0
+<U3071> \xC7\x58 |0
+<U3072> \xC7\x59 |0
+<U3073> \xC7\x5A |0
+<U3074> \xC7\x5B |0
+<U3075> \xC7\x5C |0
+<U3076> \xC7\x5D |0
+<U3077> \xC7\x5E |0
+<U3078> \xC7\x5F |0
+<U3079> \xC7\x60 |0
+<U307A> \xC7\x61 |0
+<U307B> \xC7\x62 |0
+<U307C> \xC7\x63 |0
+<U307D> \xC7\x64 |0
+<U307E> \xC7\x65 |0
+<U307F> \xC7\x66 |0
+<U3080> \xC7\x67 |0
+<U3081> \xC7\x68 |0
+<U3082> \xC7\x69 |0
+<U3083> \xC7\x6A |0
+<U3084> \xC7\x6B |0
+<U3085> \xC7\x6C |0
+<U3086> \xC7\x6D |0
+<U3087> \xC7\x6E |0
+<U3088> \xC7\x6F |0
+<U3089> \xC7\x70 |0
+<U308A> \xC7\x71 |0
+<U308B> \xC7\x72 |0
+<U308C> \xC7\x73 |0
+<U308D> \xC7\x74 |0
+<U308E> \xC7\x75 |0
+<U308F> \xC7\x76 |0
+<U3090> \xC7\x77 |0
+<U3091> \xC7\x78 |0
+<U3092> \xC7\x79 |0
+<U3093> \xC7\x7A |0
+<U309B> \xC8\xD4 |0
+<U309C> \xC8\xD5 |0
+<U309D> \xC6\xDC |0
+<U309E> \xC6\xDD |0
+<U30A1> \xC7\x7B |0
+<U30A2> \xC7\x7C |0
+<U30A3> \xC7\x7D |0
+<U30A4> \xC7\x7E |0
+<U30A5> \xC7\xA1 |0
+<U30A6> \xC7\xA2 |0
+<U30A7> \xC7\xA3 |0
+<U30A8> \xC7\xA4 |0
+<U30A9> \xC7\xA5 |0
+<U30AA> \xC7\xA6 |0
+<U30AB> \xC7\xA7 |0
+<U30AC> \xC7\xA8 |0
+<U30AD> \xC7\xA9 |0
+<U30AE> \xC7\xAA |0
+<U30AF> \xC7\xAB |0
+<U30B0> \xC7\xAC |0
+<U30B1> \xC7\xAD |0
+<U30B2> \xC7\xAE |0
+<U30B3> \xC7\xAF |0
+<U30B4> \xC7\xB0 |0
+<U30B5> \xC7\xB1 |0
+<U30B6> \xC7\xB2 |0
+<U30B7> \xC7\xB3 |0
+<U30B8> \xC7\xB4 |0
+<U30B9> \xC7\xB5 |0
+<U30BA> \xC7\xB6 |0
+<U30BB> \xC7\xB7 |0
+<U30BC> \xC7\xB8 |0
+<U30BD> \xC7\xB9 |0
+<U30BE> \xC7\xBA |0
+<U30BF> \xC7\xBB |0
+<U30C0> \xC7\xBC |0
+<U30C1> \xC7\xBD |0
+<U30C2> \xC7\xBE |0
+<U30C3> \xC7\xBF |0
+<U30C4> \xC7\xC0 |0
+<U30C5> \xC7\xC1 |0
+<U30C6> \xC7\xC2 |0
+<U30C7> \xC7\xC3 |0
+<U30C8> \xC7\xC4 |0
+<U30C9> \xC7\xC5 |0
+<U30CA> \xC7\xC6 |0
+<U30CB> \xC7\xC7 |0
+<U30CC> \xC7\xC8 |0
+<U30CD> \xC7\xC9 |0
+<U30CE> \xC7\xCA |0
+<U30CF> \xC7\xCB |0
+<U30D0> \xC7\xCC |0
+<U30D1> \xC7\xCD |0
+<U30D2> \xC7\xCE |0
+<U30D3> \xC7\xCF |0
+<U30D4> \xC7\xD0 |0
+<U30D5> \xC7\xD1 |0
+<U30D6> \xC7\xD2 |0
+<U30D7> \xC7\xD3 |0
+<U30D8> \xC7\xD4 |0
+<U30D9> \xC7\xD5 |0
+<U30DA> \xC7\xD6 |0
+<U30DB> \xC7\xD7 |0
+<U30DC> \xC7\xD8 |0
+<U30DD> \xC7\xD9 |0
+<U30DE> \xC7\xDA |0
+<U30DF> \xC7\xDB |0
+<U30E0> \xC7\xDC |0
+<U30E1> \xC7\xDD |0
+<U30E2> \xC7\xDE |0
+<U30E3> \xC7\xDF |0
+<U30E4> \xC7\xE0 |0
+<U30E5> \xC7\xE1 |0
+<U30E6> \xC7\xE2 |0
+<U30E7> \xC7\xE3 |0
+<U30E8> \xC7\xE4 |0
+<U30E9> \xC7\xE5 |0
+<U30EA> \xC7\xE6 |0
+<U30EB> \xC7\xE7 |0
+<U30EC> \xC7\xE8 |0
+<U30ED> \xC7\xE9 |0
+<U30EE> \xC7\xEA |0
+<U30EF> \xC7\xEB |0
+<U30F0> \xC7\xEC |0
+<U30F1> \xC7\xED |0
+<U30F2> \xC7\xEE |0
+<U30F3> \xC7\xEF |0
+<U30F4> \xC7\xF0 |0
+<U30F5> \xC7\xF1 |0
+<U30F6> \xC7\xF2 |0
+<U30FC> \xC6\xE3 |0
+<U30FD> \xC6\xDA |0
+<U30FE> \xC6\xDB |0
+<U3105> \xA3\x74 |0
+<U3106> \xA3\x75 |0
+<U3107> \xA3\x76 |0
+<U3108> \xA3\x77 |0
+<U3109> \xA3\x78 |0
+<U310A> \xA3\x79 |0
+<U310B> \xA3\x7A |0
+<U310C> \xA3\x7B |0
+<U310D> \xA3\x7C |0
+<U310E> \xA3\x7D |0
+<U310F> \xA3\x7E |0
+<U3110> \xA3\xA1 |0
+<U3111> \xA3\xA2 |0
+<U3112> \xA3\xA3 |0
+<U3113> \xA3\xA4 |0
+<U3114> \xA3\xA5 |0
+<U3115> \xA3\xA6 |0
+<U3116> \xA3\xA7 |0
+<U3117> \xA3\xA8 |0
+<U3118> \xA3\xA9 |0
+<U3119> \xA3\xAA |0
+<U311A> \xA3\xAB |0
+<U311B> \xA3\xAC |0
+<U311C> \xA3\xAD |0
+<U311D> \xA3\xAE |0
+<U311E> \xA3\xAF |0
+<U311F> \xA3\xB0 |0
+<U3120> \xA3\xB1 |0
+<U3121> \xA3\xB2 |0
+<U3122> \xA3\xB3 |0
+<U3123> \xA3\xB4 |0
+<U3124> \xA3\xB5 |0
+<U3125> \xA3\xB6 |0
+<U3126> \xA3\xB7 |0
+<U3127> \xA3\xB8 |0
+<U3128> \xA3\xB9 |0
+<U3129> \xA3\xBA |0
+<U3192> \xA4\x40 |1
+<U3193> \xA4\x47 |1
+<U3194> \xA4\x54 |1
+<U3195> \xA5\x7C |1
+<U3196> \xA4\x57 |1
+<U3197> \xA4\xA4 |1
+<U3198> \xA4\x55 |1
+<U3199> \xA5\xD2 |1
+<U319A> \xA4\x41 |1
+<U319B> \xA4\xFE |1
+<U319C> \xA4\x42 |1
+<U319D> \xA4\xD1 |1
+<U319E> \xA6\x61 |1
+<U319F> \xA4\x48 |1
+<U3220> \xA4\x40 |1
+<U3221> \xA4\x47 |1
+<U3222> \xA4\x54 |1
+<U3223> \xA5\x7C |1
+<U3224> \xA4\xAD |1
+<U3225> \xA4\xBB |1
+<U3226> \xA4\x43 |1
+<U3227> \xA4\x4B |1
+<U3228> \xA4\x45 |1
+<U3229> \xA4\x51 |1
+<U322A> \xA4\xEB |1
+<U322B> \xA4\xF5 |1
+<U322C> \xA4\xF4 |1
+<U322D> \xA4\xEC |1
+<U322E> \xAA\xF7 |1
+<U322F> \xA4\x67 |1
+<U3230> \xA4\xE9 |1
+<U3231> \xC8\xD1 |0
+<U3232> \xA6\xB3 |1
+<U3233> \xAA\xC0 |1
+<U3234> \xA6\x57 |1
+<U3235> \xAF\x53 |1
+<U3236> \xB0\x5D |1
+<U3237> \xAF\xAC |1
+<U3238> \xB3\xD2 |1
+<U3239> \xA5\x4E |1
+<U323A> \xA9\x49 |1
+<U323B> \xBE\xC7 |1
+<U323C> \xBA\xCA |1
+<U323D> \xA5\xF8 |1
+<U323E> \xB8\xEA |1
+<U323F> \xA8\xF3 |1
+<U3240> \xB2\xBD |1
+<U3241> \xA5\xF0 |1
+<U3242> \xA6\xDB |1
+<U3243> \xA6\xDC |1
+<U3280> \xA4\x40 |1
+<U3281> \xA4\x47 |1
+<U3282> \xA4\x54 |1
+<U3283> \xA5\x7C |1
+<U3284> \xA4\xAD |1
+<U3285> \xA4\xBB |1
+<U3286> \xA4\x43 |1
+<U3287> \xA4\x4B |1
+<U3288> \xA4\x45 |1
+<U3289> \xA4\x51 |1
+<U328A> \xA4\xEB |1
+<U328B> \xA4\xF5 |1
+<U328C> \xA4\xF4 |1
+<U328D> \xA4\xEC |1
+<U328E> \xAA\xF7 |1
+<U328F> \xA4\x67 |1
+<U3290> \xA4\xE9 |1
+<U3291> \xAE\xE8 |1
+<U3292> \xA6\xB3 |1
+<U3293> \xAA\xC0 |1
+<U3294> \xA6\x57 |1
+<U3295> \xAF\x53 |1
+<U3296> \xB0\x5D |1
+<U3297> \xAF\xAC |1
+<U3298> \xB3\xD2 |1
+<U3299> \xAF\xB5 |1
+<U329A> \xA8\x6B |1
+<U329B> \xA4\x6B |1
+<U329C> \xBE\x41 |1
+<U329D> \xC0\x75 |1
+<U329E> \xA6\x4C |1
+<U329F> \xAA\x60 |1
+<U32A0> \xB6\xB5 |1
+<U32A1> \xA5\xF0 |1
+<U32A2> \xBC\x67 |1
+<U32A3> \xA1\xC0 |0
+<U32A4> \xA4\x57 |1
+<U32A5> \xA4\xA4 |1
+<U32A6> \xA4\x55 |1
+<U32A7> \xA5\xAA |1
+<U32A8> \xA5\x6B |1
+<U32A9> \xC2\xE5 |1
+<U32AA> \xA9\x76 |1
+<U32AB> \xBE\xC7 |1
+<U32AC> \xBA\xCA |1
+<U32AD> \xA5\xF8 |1
+<U32AE> \xB8\xEA |1
+<U32AF> \xA8\xF3 |1
+<U32B0> \xA9\x5D |1
+<U338E> \xA2\x55 |0
+<U338F> \xA2\x56 |0
+<U339C> \xA2\x50 |0
+<U339D> \xA2\x51 |0
+<U339E> \xA2\x52 |0
+<U33A1> \xA2\x54 |0
+<U33C4> \xA2\x57 |0
+<U33CE> \xA2\x53 |0
+<U33D1> \xA1\xEB |0
+<U33D2> \xA1\xEA |0
+<U33D5> \xA2\x4F |0
+<U3435> \x92\x77 |0
+<U3440> \x96\xDF |0
+<U344C> \x89\xD5 |0
+<U3464> \x93\xCD |0
+<U3473> \x9B\xDF |0
+<U347A> \xFA\x68 |0
+<U347D> \x89\xDA |0
+<U347E> \x8F\x59 |0
+<U3493> \x89\xDB |0
+<U3496> \x8F\x5D |0
+<U34A5> \x89\xDC |0
+<U34AF> \x96\xF7 |0
+<U34BC> \x8A\xDA |0
+<U34C1> \x8B\xDC |0
+<U34C8> \x97\xDB |0
+<U34DF> \x9E\x53 |0
+<U34E4> \x9D\xAA |0
+<U34FB> \x9B\xEA |0
+<U3506> \x8A\x6E |0
+<U353E> \x8B\xC8 |0
+<U3551> \x89\xE8 |0
+<U3553> \x89\xEA |0
+<U3559> \x8C\x4B |0
+<U3561> \xFB\x70 |0
+<U356D> \x89\xED |0
+<U3570> \x94\xDD |0
+<U3572> \x89\xEE |0
+<U3577> \x9E\xB4 |0
+<U3578> \x8A\xD3 |0
+<U3584> \x92\xDB |0
+<U3597> \x94\xDB |0
+<U3598> \x89\xF9 |0
+<U35A1> \xFB\x7A |0
+<U35A5> \x89\xFB |0
+<U35AD> \x9E\xFC |0
+<U35BF> \x89\xFC |0
+<U35C1> \x89\xBF |0
+<U35C5> \x89\xFE |0
+<U35C7> \x89\xE6 |0
+<U35CA> \x9D\x46 |0
+<U35CE> \x9D\xEE |0
+<U35D2> \xA0\x7E |0
+<U35D6> \xA0\x68 |0
+<U35DB> \x98\xE9 |0
+<U35DD> \x8B\x68 |0
+<U35F1> \x8D\xFD |0
+<U35F2> \x8B\xBE |0
+<U35F3> \x9F\xD9 |0
+<U35FB> \x8A\xEB |0
+<U35FE> \x9F\xD7 |0
+<U3609> \x8B\x6A |0
+<U3618> \x9C\x5C |0
+<U361A> \x8B\xB1 |0
+<U3623> \xFB\x5E |0
+<U362D> \x9D\xF3 |0
+<U3635> \xA0\xD0 |0
+<U3639> \xFC\x66 |0
+<U363E> \x92\xE9 |0
+<U3647> \x9A\xEC |0
+<U3648> \x8F\xAB |0
+<U3649> \xFA\x48 |0
+<U364E> \x8E\x45 |0
+<U365F> \x9C\x6F |0
+<U367A> \x9E\xDE |0
+<U3681> \x89\xEF |0
+<U369A> \x96\xE9 |0
+<U36A5> \x9E\xBB |0
+<U36AA> \x94\xDE |0
+<U36AC> \x9E\xB8 |0
+<U36B0> \x97\xBA |0
+<U36B1> \xFB\x65 |0
+<U36B5> \x95\xD6 |0
+<U36B9> \x9C\xBB |0
+<U36BC> \x97\xDA |0
+<U36C1> \x8F\x45 |0
+<U36C3> \xFB\x7D |0
+<U36C4> \x91\x58 |0
+<U36C5> \xFE\x64 |0
+<U36C7> \x98\x56 |0
+<U36C8> \x9B\x4D |0
+<U36D3> \x93\x5B |0
+<U36D4> \x95\xC7 |0
+<U36D6> \x97\xE7 |0
+<U36DD> \x93\x59 |0
+<U36E1> \x91\xF5 |0
+<U36E2> \x97\xB8 |0
+<U36E5> \xFD\xA2 |0
+<U36E6> \xFB\xB6 |0
+<U36F5> \x92\xFA |0
+<U3701> \x93\x57 |0
+<U3703> \x8B\xA6 |0
+<U3708> \xFB\xB9 |0
+<U370A> \x97\xB0 |0
+<U370D> \xFD\xC4 |0
+<U371C> \x9C\xA1 |0
+<U3722> \x91\xF2 |0
+<U3723> \x91\xF9 |0
+<U3725> \x8F\xF1 |0
+<U372C> \x97\x45 |0
+<U372D> \x98\x53 |0
+<U3730> \xFE\x78 |0
+<U3732> \xFB\xC1 |0
+<U3733> \x92\x51 |0
+<U373A> \x9D\xAD |0
+<U3740> \xFD\x6C |0
+<U3743> \xFA\x6B |0
+<U3762> \x9B\xC2 |0
+<U376F> \x9A\x7B |0
+<U3797> \x8B\x60 |0
+<U37A0> \x93\x4B |0
+<U37B9> \x9A\xBD |0
+<U37BE> \x91\xB7 |0
+<U37F2> \x95\xB4 |0
+<U37F8> \xFE\xC5 |0
+<U37FB> \x9E\xF0 |0
+<U380F> \x8D\x64 |0
+<U3819> \x92\x69 |0
+<U3820> \x8D\x67 |0
+<U382D> \xFB\xEA |0
+<U3836> \xFB\xEF |0
+<U3838> \x8D\x68 |0
+<U3863> \x93\xEB |0
+<U38A0> \xFC\x42 |0
+<U38C3> \x91\x66 |0
+<U38CC> \xFA\xCD |0
+<U38D1> \x93\xDD |0
+<U38FA> \x8B\xCC |0
+<U3908> \x8D\x6D |0
+<U3914> \x8D\x6E |0
+<U3927> \x96\xA8 |0
+<U3932> \xFC\xA6 |0
+<U393F> \x8D\x6F |0
+<U394D> \x8D\x70 |0
+<U3963> \xFC\x64 |0
+<U3980> \x90\x60 |0
+<U3989> \x8D\x74 |0
+<U398A> \x97\xC3 |0
+<U3992> \x8A\xD0 |0
+<U3999> \x92\x74 |0
+<U399B> \x9B\xBE |0
+<U39A1> \x9C\xC8 |0
+<U39A4> \x9C\xBA |0
+<U39B8> \x8D\x78 |0
+<U39DC> \x9E\xB9 |0
+<U39E2> \x95\x5A |0
+<U39E5> \x91\xB4 |0
+<U39EC> \x8A\x48 |0
+<U39F8> \x8D\x7D |0
+<U39FB> \x8A\x7D |0
+<U39FE> \x8A\xC2 |0
+<U3A01> \xFD\x4A |0
+<U3A03> \x8D\xA1 |0
+<U3A06> \x8A\xD1 |0
+<U3A17> \xFC\xB4 |0
+<U3A18> \x8B\x47 |0
+<U3A29> \x93\xA4 |0
+<U3A2A> \x9E\xDA |0
+<U3A34> \x8A\x51 |0
+<U3A4B> \x8D\xA6 |0
+<U3A52> \x9E\xC5 |0
+<U3A57> \xFC\xC4 |0
+<U3A5C> \xA0\x78 |0
+<U3A5E> \x94\xB5 |0
+<U3A66> \xFC\xC2 |0
+<U3A67> \x8A\x6B |0
+<U3A97> \x8D\xAB |0
+<U3AAB> \xFA\xE8 |0
+<U3ABD> \x8D\xAD |0
+<U3ADE> \xFC\x49 |0
+<U3AE0> \x93\xC1 |0
+<U3AF0> \x90\x6F |0
+<U3AF2> \x8D\xB0 |0
+<U3AFB> \x94\x7E |0
+<U3B0E> \x90\xFA |0
+<U3B19> \x94\x79 |0
+<U3B22> \x8D\xB2 |0
+<U3B2B> \xFC\xEE |0
+<U3B39> \x99\x7B |0
+<U3B42> \x8D\xB4 |0
+<U3B58> \x8D\xB7 |0
+<U3B60> \x91\xB3 |0
+<U3B71> \x8D\xBB |0
+<U3B72> \x8D\xBA |0
+<U3B7B> \x8D\xBC |0
+<U3B7C> \x90\x44 |0
+<U3B80> \xFD\x4C |0
+<U3B96> \x93\xE4 |0
+<U3B99> \x93\xE0 |0
+<U3BA1> \xFD\x53 |0
+<U3BBC> \x8D\xC3 |0
+<U3BBE> \x9B\xB8 |0
+<U3BC2> \xFB\xF0 |0
+<U3BC4> \x93\xE9 |0
+<U3BD7> \x93\xF6 |0
+<U3BDD> \x8D\xC5 |0
+<U3BEC> \x8D\xCA |0
+<U3BF2> \x8D\xCC |0
+<U3BF3> \xFD\x5D |0
+<U3BF4> \x93\xB5 |0
+<U3C0D> \xFD\x61 |0
+<U3C11> \x9C\xF8 |0
+<U3C15> \x92\x52 |0
+<U3C18> \xA0\xE8 |0
+<U3C54> \x9C\xA5 |0
+<U3C8B> \x8C\x56 |0
+<U3CCB> \x8D\xD6 |0
+<U3CCD> \x97\xC0 |0
+<U3CD1> \xA0\xDE |0
+<U3CD6> \x97\xD2 |0
+<U3CDC> \xFA\xA5 |0
+<U3CEB> \xFD\xA3 |0
+<U3CEF> \x8D\xDB |0
+<U3D13> \x8E\xAF |0
+<U3D1D> \x91\xB5 |0
+<U3D32> \xFD\x49 |0
+<U3D3B> \xFD\xD1 |0
+<U3D46> \x8D\xEB |0
+<U3D4C> \x97\xC6 |0
+<U3D4E> \xFD\xCE |0
+<U3D51> \x90\xFC |0
+<U3D5F> \xFC\x59 |0
+<U3D62> \x96\xD6 |0
+<U3D69> \x97\xC5 |0
+<U3D6A> \x8D\xEF |0
+<U3D6F> \x97\xD7 |0
+<U3D75> \x8D\xF0 |0
+<U3D7D> \x96\xA6 |0
+<U3D85> \xFB\xBF |0
+<U3D8A> \x8D\xF3 |0
+<U3D8F> \x94\x49 |0
+<U3D91> \x8D\xF5 |0
+<U3DA5> \x98\x72 |0
+<U3DAD> \x8E\x6B |0
+<U3DB4> \xFA\xFD |0
+<U3DBF> \x8F\x50 |0
+<U3DC6> \x9D\xCC |0
+<U3DC7> \xFC\x65 |0
+<U3DC9> \x8C\x44 |0
+<U3DCC> \x99\x6E |0
+<U3DCD> \x94\xA1 |0
+<U3DD3> \x8F\x63 |0
+<U3DDB> \xA0\xDA |0
+<U3DE7> \x92\x53 |0
+<U3DE8> \xFD\xE9 |0
+<U3DEB> \x9D\xB5 |0
+<U3DF3> \x98\x79 |0
+<U3DF7> \x9D\x5D |0
+<U3DFC> \x8D\x63 |0
+<U3DFD> \x96\x69 |0
+<U3E06> \x9F\x70 |0
+<U3E40> \xFC\x6A |0
+<U3E43> \x8A\xC7 |0
+<U3E48> \x89\xD7 |0
+<U3E55> \xFE\x4D |0
+<U3E74> \x9E\xDD |0
+<U3EA8> \xFE\xFB |0
+<U3EA9> \x98\xBC |0
+<U3EAA> \xFA\xCC |0
+<U3EAD> \x95\xB0 |0
+<U3EB1> \x94\x64 |0
+<U3EB8> \x93\x6F |0
+<U3EBF> \x94\xB9 |0
+<U3EC2> \x95\xEC |0
+<U3EC7> \x91\xEE |0
+<U3ECA> \x98\xC3 |0
+<U3ECC> \x95\xF6 |0
+<U3ED0> \x8F\xFD |0
+<U3ED1> \x98\xC5 |0
+<U3ED6> \x97\x66 |0
+<U3ED7> \xFE\x6E |0
+<U3EDA> \x97\xDD |0
+<U3EDB> \x8C\xAA |0
+<U3EDE> \x92\xD2 |0
+<U3EE1> \x97\x61 |0
+<U3EE2> \x98\xCB |0
+<U3EE7> \x95\xF0 |0
+<U3EE9> \x97\x5D |0
+<U3EEB> \x91\xE3 |0
+<U3EF0> \x98\xCC |0
+<U3EF3> \x94\x69 |0
+<U3EF4> \x98\xCD |0
+<U3EFA> \x98\xCE |0
+<U3EFC> \x95\xFC |0
+<U3EFF> \x94\xA3 |0
+<U3F00> \x96\x62 |0
+<U3F04> \xFE\xB6 |0
+<U3F06> \x94\x63 |0
+<U3F0E> \x98\xD0 |0
+<U3F53> \x98\xD1 |0
+<U3F58> \x94\x75 |0
+<U3F59> \xFA\xE0 |0
+<U3F63> \x94\x72 |0
+<U3F7C> \x98\xD6 |0
+<U3F93> \x8A\xF0 |0
+<U3FC0> \x98\xD9 |0
+<U3FD7> \x98\xDB |0
+<U3FDC> \x98\xDD |0
+<U3FE5> \x98\xA8 |0
+<U3FED> \x8A\x6D |0
+<U3FF9> \x8A\xFB |0
+<U3FFA> \x8A\xAE |0
+<U4004> \xFB\xC9 |0
+<U4009> \x8C\x5D |0
+<U401D> \x98\xE4 |0
+<U4039> \x98\xE6 |0
+<U4045> \x98\xE8 |0
+<U4053> \x8A\x4D |0
+<U4057> \x92\x57 |0
+<U4062> \x95\xDF |0
+<U4065> \xA0\xAC |0
+<U406A> \x98\xEB |0
+<U406F> \x98\xEC |0
+<U4071> \x8C\xC3 |0
+<U40A8> \x98\xF4 |0
+<U40BB> \x8A\xB8 |0
+<U40BF> \x9E\xE7 |0
+<U40C8> \x94\xBC |0
+<U40D8> \xFC\xD1 |0
+<U40DF> \x9C\xC6 |0
+<U40FA> \x9E\x7E |0
+<U4103> \x98\xFE |0
+<U4104> \xFD\xE8 |0
+<U4109> \x99\x40 |0
+<U410E> \x94\xC9 |0
+<U4132> \x94\xD3 |0
+<U4167> \x99\x46 |0
+<U416C> \x90\xC0 |0
+<U416E> \x94\xD1 |0
+<U417F> \x95\x73 |0
+<U4190> \x93\xC2 |0
+<U41B2> \x99\x48 |0
+<U41C4> \x99\x4B |0
+<U41CA> \x8E\x55 |0
+<U41CF> \x99\x4E |0
+<U41DB> \x8E\xFE |0
+<U41EF> \x8E\x59 |0
+<U41F9> \x94\xEC |0
+<U4211> \x94\xEF |0
+<U4223> \x8C\x60 |0
+<U4240> \x8F\x74 |0
+<U4260> \x99\x55 |0
+<U426A> \x95\x44 |0
+<U4276> \x8C\xCB |0
+<U427A> \x99\x56 |0
+<U428C> \x99\x59 |0
+<U4294> \x99\x5B |0
+<U42A2> \x8C\xC4 |0
+<U42B5> \xFA\x45 |0
+<U42B9> \x90\xB7 |0
+<U42BC> \x97\x43 |0
+<U42F4> \x95\xCD |0
+<U42FB> \x97\xC9 |0
+<U42FC> \xFD\x50 |0
+<U432B> \x8E\xB9 |0
+<U436E> \x95\xC6 |0
+<U4397> \x99\x67 |0
+<U43BA> \x8A\xB9 |0
+<U43C1> \x8D\xFC |0
+<U43D9> \x8A\x76 |0
+<U43DF> \x9D\x51 |0
+<U43ED> \x99\x73 |0
+<U43F2> \x9D\x4F |0
+<U4401> \x99\x7A |0
+<U4402> \x95\x64 |0
+<U4413> \x99\xA1 |0
+<U4425> \x99\xA5 |0
+<U442D> \x99\xA7 |0
+<U447A> \x8E\xED |0
+<U448F> \x99\xAD |0
+<U449F> \x94\x6E |0
+<U44A0> \x8F\x70 |0
+<U44A2> \xFA\xD0 |0
+<U44B0> \x99\xB3 |0
+<U44B7> \xA0\x53 |0
+<U44C0> \x96\x5C |0
+<U44C5> \xFD\x7A |0
+<U44CE> \x97\xFE |0
+<U44DD> \x92\xBD |0
+<U44DF> \x97\xFD |0
+<U44E4> \x8F\x64 |0
+<U44E9> \xFC\xF7 |0
+<U44EA> \x95\x62 |0
+<U44EB> \x97\xCD |0
+<U44EC> \x9E\x64 |0
+<U44F4> \x92\x4C |0
+<U4503> \x8E\xC9 |0
+<U4504> \x99\xBC |0
+<U4509> \x9D\xA5 |0
+<U450B> \x8F\x54 |0
+<U4516> \x8F\x7C |0
+<U451D> \x8E\xA2 |0
+<U4527> \x8F\x7A |0
+<U452E> \x97\xAE |0
+<U4533> \x96\xC8 |0
+<U453B> \x99\xC3 |0
+<U453D> \x90\xD6 |0
+<U453F> \x9C\xBE |0
+<U4543> \x8F\x76 |0
+<U4551> \x94\x70 |0
+<U4552> \xFB\x4B |0
+<U4555> \xFD\xCA |0
+<U455C> \x8E\xC7 |0
+<U4562> \xA0\xF9 |0
+<U456A> \x8F\xA9 |0
+<U4577> \x99\xC7 |0
+<U4585> \x90\xD7 |0
+<U45E9> \x9E\xDF |0
+<U4606> \x99\xCE |0
+<U460F> \x8F\xBA |0
+<U4615> \x8F\xEB |0
+<U4617> \x99\xCF |0
+<U465B> \x8F\xC2 |0
+<U467A> \x92\xC9 |0
+<U4680> \x97\xDC |0
+<U46CF> \x95\xB3 |0
+<U46D0> \x9C\x79 |0
+<U46F5> \x95\xB2 |0
+<U4713> \x8F\xDB |0
+<U4718> \x9B\xE3 |0
+<U474E> \x9E\x7A |0
+<U477C> \x9B\xEE |0
+<U4798> \x99\xDE |0
+<U47A6> \xFA\xFA |0
+<U47B6> \x9E\xE5 |0
+<U47D5> \x8A\x52 |0
+<U47ED> \x99\xE1 |0
+<U47F4> \x8A\x67 |0
+<U4800> \x8B\xB5 |0
+<U480B> \x8A\xAC |0
+<U4837> \x99\xE9 |0
+<U485D> \xFB\xCA |0
+<U4871> \x97\xDE |0
+<U489B> \x95\xD1 |0
+<U48AD> \x99\xF5 |0
+<U48AE> \xFC\x4A |0
+<U48D0> \x9B\xA9 |0
+<U48DD> \xFB\xDC |0
+<U48ED> \xFE\x56 |0
+<U48F3> \x9E\xA4 |0
+<U48FA> \x9D\x49 |0
+<U4906> \x95\xDB |0
+<U4911> \x89\xC5 |0
+<U491E> \x99\xF8 |0
+<U4925> \x96\x64 |0
+<U492A> \x90\x55 |0
+<U492D> \x96\xD4 |0
+<U4935> \x97\x7C |0
+<U493C> \x96\x4D |0
+<U493E> \x97\xE1 |0
+<U4945> \x9A\x48 |0
+<U4951> \x9A\x49 |0
+<U4953> \xFE\x7D |0
+<U4965> \x90\xAA |0
+<U496A> \x9A\x50 |0
+<U4972> \x93\x47 |0
+<U4989> \x8E\xD8 |0
+<U49A1> \x90\xC9 |0
+<U49A7> \x9A\x55 |0
+<U49DF> \x90\xBC |0
+<U49E5> \x9A\x58 |0
+<U49E7> \x8B\xB8 |0
+<U4A0F> \x90\xD5 |0
+<U4A1D> \x96\x41 |0
+<U4A24> \x9A\x5A |0
+<U4A35> \x9A\x5C |0
+<U4A96> \x97\xC2 |0
+<U4AB4> \x8A\xBB |0
+<U4AB8> \x9B\xAA |0
+<U4AD1> \x90\xF5 |0
+<U4AE4> \x9A\x60 |0
+<U4AFF> \x91\x45 |0
+<U4B10> \x8C\x58 |0
+<U4B19> \x9A\x63 |0
+<U4B20> \x8C\x49 |0
+<U4B2C> \x8B\xB6 |0
+<U4B37> \xFC\xCF |0
+<U4B6F> \x96\x6B |0
+<U4B70> \x9A\x6E |0
+<U4B72> \x91\x4F |0
+<U4B7B> \x97\x46 |0
+<U4B7E> \xA0\xE6 |0
+<U4B8E> \x92\xD7 |0
+<U4B90> \x96\x75 |0
+<U4B93> \x93\xD4 |0
+<U4B96> \x91\xBB |0
+<U4B97> \x96\x79 |0
+<U4B9D> \x9A\x70 |0
+<U4BBD> \x96\x78 |0
+<U4BBE> \x91\xCD |0
+<U4BC0> \x9C\x4A |0
+<U4C04> \xA0\x6F |0
+<U4C07> \xA0\x6A |0
+<U4C0E> \x91\x5F |0
+<U4C3B> \x9F\xA5 |0
+<U4C3E> \x89\xBA |0
+<U4C5B> \x9E\xCD |0
+<U4C6D> \x9A\x79 |0
+<U4C7D> \x9D\xCE |0
+<U4C81> \x8C\xD2 |0
+<U4CA4> \x9D\x73 |0
+<U4CAE> \x96\xB9 |0
+<U4CB0> \x96\xBC |0
+<U4CB7> \x9C\xD1 |0
+<U4CCD> \x89\xB7 |0
+<U4CE1> \x9E\xEE |0
+<U4CED> \xFB\x43 |0
+<U4D09> \x9E\xC9 |0
+<U4D10> \xFB\xD3 |0
+<U4D34> \x91\xAE |0
+<U4D91> \x9D\x78 |0
+<U4D9C> \x9D\x7B |0
+<U4E00> \xA4\x40 |0
+<U4E01> \xA4\x42 |0
+<U4E03> \xA4\x43 |0
+<U4E04> \x9E\xB3 |0
+<U4E07> \xC9\x45 |0
+<U4E08> \xA4\x56 |0
+<U4E09> \xA4\x54 |0
+<U4E0A> \xA4\x57 |0
+<U4E0B> \xA4\x55 |0
+<U4E0C> \xC9\x46 |0
+<U4E0D> \xA4\xA3 |0
+<U4E0E> \xC9\x4F |0
+<U4E0F> \xC9\x4D |0
+<U4E10> \xA4\xA2 |0
+<U4E11> \xA4\xA1 |0
+<U4E14> \xA5\x42 |0
+<U4E15> \xA5\x41 |0
+<U4E16> \xA5\x40 |0
+<U4E18> \xA5\x43 |0
+<U4E19> \xA4\xFE |0
+<U4E1A> \x9E\xB2 |0
+<U4E1C> \x9D\xD6 |0
+<U4E1E> \xA5\xE0 |0
+<U4E1F> \xA5\xE1 |0
+<U4E21> \x99\x4F |0
+<U4E24> \x89\xCE |0
+<U4E26> \xA8\xC3 |0
+<U4E28> \x8B\xC0 |0
+<U4E2A> \x9F\xC4 |0
+<U4E2B> \xA4\x58 |0
+<U4E2C> \x8B\xD4 |0
+<U4E2D> \xA4\xA4 |0
+<U4E2E> \xC9\x50 |0
+<U4E2F> \x8C\x72 |0
+<U4E30> \xA4\xA5 |0
+<U4E31> \xC9\x63 |0
+<U4E32> \xA6\xEA |0
+<U4E33> \xCB\xB1 |0
+<U4E36> \xC6\xBF |0
+<U4E37> \x8B\xF9 |0
+<U4E38> \xA4\x59 |0
+<U4E39> \xA4\xA6 |0
+<U4E3B> \xA5\x44 |0
+<U4E3C> \xC9\x64 |0
+<U4E3D> \x89\x46 |0
+<U4E3F> \xC6\xC0 |0
+<U4E42> \xC9\x40 |0
+<U4E43> \xA4\x44 |0
+<U4E45> \xA4\x5B |0
+<U4E47> \xC9\x47 |0
+<U4E48> \xA4\x5C |0
+<U4E49> \xFA\xE5 |0
+<U4E4B> \xA4\xA7 |0
+<U4E4D> \xA5\x45 |0
+<U4E4E> \xA5\x47 |0
+<U4E4F> \xA5\x46 |0
+<U4E52> \xA5\xE2 |0
+<U4E53> \xA5\xE3 |0
+<U4E56> \xA8\xC4 |0
+<U4E58> \xAD\xBC |0
+<U4E59> \xA4\x41 |0
+<U4E5A> \xC8\x7B |0
+<U4E5B> \x8B\xC6 |0
+<U4E5C> \xC9\x41 |0
+<U4E5D> \xA4\x45 |0
+<U4E5E> \xA4\x5E |0
+<U4E5F> \xA4\x5D |0
+<U4E69> \xA5\xE4 |0
+<U4E6A> \x9C\x57 |0
+<U4E73> \xA8\xC5 |0
+<U4E78> \x9A\xFB |0
+<U4E7E> \xB0\xAE |0
+<U4E7F> \xD4\x4B |0
+<U4E80> \x89\xD0 |0
+<U4E81> \x89\xCF |0
+<U4E82> \xB6\xC3 |0
+<U4E83> \xDC\xB1 |0
+<U4E84> \xDC\xB2 |0
+<U4E85> \xC6\xC1 |0
+<U4E86> \xA4\x46 |0
+<U4E87> \x89\xD1 |0
+<U4E88> \xA4\xA9 |0
+<U4E89> \x89\xE2 |0
+<U4E8B> \xA8\xC6 |0
+<U4E8C> \xA4\x47 |0
+<U4E8D> \xC9\x48 |0
+<U4E8E> \xA4\x5F |0
+<U4E91> \xA4\xAA |0
+<U4E92> \xA4\xAC |0
+<U4E93> \xC9\x51 |0
+<U4E94> \xA4\xAD |0
+<U4E95> \xA4\xAB |0
+<U4E98> \x92\x7E |0
+<U4E99> \xA5\xE5 |0
+<U4E9A> \x9D\xBA |0
+<U4E9B> \xA8\xC7 |0
+<U4E9E> \xA8\xC8 |0
+<U4E9F> \xAB\x45 |0
+<U4EA0> \xC6\xC2 |0
+<U4EA1> \xA4\x60 |0
+<U4EA2> \xA4\xAE |0
+<U4EA3> \x8C\x6F |0
+<U4EA4> \xA5\xE6 |0
+<U4EA5> \xA5\xE8 |0
+<U4EA6> \xA5\xE7 |0
+<U4EA8> \xA6\xEB |0
+<U4EAB> \xA8\xC9 |0
+<U4EAC> \xA8\xCA |0
+<U4EAD> \xAB\x46 |0
+<U4EAE> \xAB\x47 |0
+<U4EB3> \xAD\xBD |0
+<U4EB6> \xDC\xB3 |0
+<U4EB7> \xFB\xF8 |0
+<U4EB9> \xF6\xD6 |0
+<U4EBA> \xA4\x48 |0
+<U4EBB> \x8B\xC7 |0
+<U4EBC> \x92\x6B |0
+<U4EBF> \x89\xD2 |0
+<U4EC0> \xA4\xB0 |0
+<U4EC1> \xA4\xAF |0
+<U4EC2> \xC9\x52 |0
+<U4EC3> \xA4\xB1 |0
+<U4EC4> \xA4\xB7 |0
+<U4EC6> \xA4\xB2 |0
+<U4EC7> \xA4\xB3 |0
+<U4EC8> \xC9\x54 |0
+<U4EC9> \xC9\x53 |0
+<U4ECA> \xA4\xB5 |0
+<U4ECB> \xA4\xB6 |0
+<U4ECD> \xA4\xB4 |0
+<U4ECE> \x9F\xCF |0
+<U4ED4> \xA5\x4A |0
+<U4ED5> \xA5\x4B |0
+<U4ED6> \xA5\x4C |0
+<U4ED7> \xA5\x4D |0
+<U4ED8> \xA5\x49 |0
+<U4ED9> \xA5\x50 |0
+<U4EDA> \xC9\x6A |0
+<U4EDC> \xC9\x66 |0
+<U4EDD> \xC9\x69 |0
+<U4EDE> \xA5\x51 |0
+<U4EDF> \xA5\x61 |0
+<U4EE1> \xC9\x68 |0
+<U4EE3> \xA5\x4E |0
+<U4EE4> \xA5\x4F |0
+<U4EE5> \xA5\x48 |0
+<U4EE8> \xC9\x65 |0
+<U4EE9> \xC9\x67 |0
+<U4EEA> \x9D\xA9 |0
+<U4EEB> \x89\xD3 |0
+<U4EEE> \x99\xE2 |0
+<U4EF0> \xA5\xF5 |0
+<U4EF1> \xC9\xB0 |0
+<U4EF2> \xA5\xF2 |0
+<U4EF3> \xA5\xF6 |0
+<U4EF4> \xC9\xBA |0
+<U4EF5> \xC9\xAE |0
+<U4EF6> \xA5\xF3 |0
+<U4EF7> \xC9\xB2 |0
+<U4EF8> \x92\x67 |0
+<U4EFB> \xA5\xF4 |0
+<U4EFD> \xA5\xF7 |0
+<U4EFF> \xA5\xE9 |0
+<U4F00> \xC9\xB1 |0
+<U4F01> \xA5\xF8 |0
+<U4F02> \xC9\xB5 |0
+<U4F03> \x92\xA4 |0
+<U4F04> \xC9\xB9 |0
+<U4F05> \xC9\xB6 |0
+<U4F08> \xC9\xB3 |0
+<U4F09> \xA5\xEA |0
+<U4F0A> \xA5\xEC |0
+<U4F0B> \xA5\xF9 |0
+<U4F0D> \xA5\xEE |0
+<U4F0E> \xC9\xAB |0
+<U4F0F> \xA5\xF1 |0
+<U4F10> \xA5\xEF |0
+<U4F11> \xA5\xF0 |0
+<U4F12> \xC9\xBB |0
+<U4F13> \xC9\xB8 |0
+<U4F14> \xC9\xAF |0
+<U4F15> \xA5\xED |0
+<U4F17> \x8C\x73 |0
+<U4F18> \xC9\xAC |0
+<U4F19> \xA5\xEB |0
+<U4F1A> \x89\x4E |0
+<U4F1D> \xC9\xB4 |0
+<U4F22> \xC9\xB7 |0
+<U4F28> \x89\x4F |0
+<U4F29> \x92\x78 |0
+<U4F2C> \xC9\xAD |0
+<U4F2D> \xCA\x66 |0
+<U4F2F> \xA7\x42 |0
+<U4F30> \xA6\xF4 |0
+<U4F32> \x91\xB6 |0
+<U4F33> \xCA\x67 |0
+<U4F34> \xA6\xF1 |0
+<U4F36> \xA7\x44 |0
+<U4F37> \x89\xD4 |0
+<U4F38> \xA6\xF9 |0
+<U4F39> \x9F\xD2 |0
+<U4F3A> \xA6\xF8 |0
+<U4F3B> \xCA\x5B |0
+<U4F3C> \xA6\xFC |0
+<U4F3D> \xA6\xF7 |0
+<U4F3E> \xCA\x60 |0
+<U4F3F> \xCA\x68 |0
+<U4F41> \xCA\x64 |0
+<U4F42> \x92\xA7 |0
+<U4F43> \xA6\xFA |0
+<U4F45> \x95\xA2 |0
+<U4F46> \xA6\xFD |0
+<U4F47> \xA6\xEE |0
+<U4F48> \xA7\x47 |0
+<U4F49> \xCA\x5D |0
+<U4F4B> \x92\x6E |0
+<U4F4C> \xCB\xBD |0
+<U4F4D> \xA6\xEC |0
+<U4F4E> \xA7\x43 |0
+<U4F4F> \xA6\xED |0
+<U4F50> \xA6\xF5 |0
+<U4F51> \xA6\xF6 |0
+<U4F52> \xCA\x62 |0
+<U4F53> \xCA\x5E |0
+<U4F54> \xA6\xFB |0
+<U4F55> \xA6\xF3 |0
+<U4F56> \xCA\x5A |0
+<U4F57> \xA6\xEF |0
+<U4F58> \xCA\x65 |0
+<U4F59> \xA7\x45 |0
+<U4F5A> \xA7\x48 |0
+<U4F5B> \xA6\xF2 |0
+<U4F5C> \xA7\x40 |0
+<U4F5D> \xA7\x46 |0
+<U4F5E> \xA6\xF0 |0
+<U4F5F> \xCA\x63 |0
+<U4F60> \xA7\x41 |0
+<U4F61> \xCA\x69 |0
+<U4F62> \xCA\x5C |0
+<U4F63> \xA6\xFE |0
+<U4F64> \xCA\x5F |0
+<U4F67> \xCA\x61 |0
+<U4F69> \xA8\xD8 |0
+<U4F6A> \xCB\xBF |0
+<U4F6B> \xCB\xCB |0
+<U4F6C> \xA8\xD0 |0
+<U4F6E> \xCB\xCC |0
+<U4F6F> \xA8\xCB |0
+<U4F70> \xA8\xD5 |0
+<U4F72> \x96\xEA |0
+<U4F73> \xA8\xCE |0
+<U4F74> \xCB\xB9 |0
+<U4F75> \xA8\xD6 |0
+<U4F76> \xCB\xB8 |0
+<U4F77> \xCB\xBC |0
+<U4F78> \xCB\xC3 |0
+<U4F79> \xCB\xC1 |0
+<U4F7A> \xA8\xDE |0
+<U4F7B> \xA8\xD9 |0
+<U4F7C> \xCB\xB3 |0
+<U4F7D> \xCB\xB5 |0
+<U4F7E> \xA8\xDB |0
+<U4F7F> \xA8\xCF |0
+<U4F80> \xCB\xB6 |0
+<U4F81> \xCB\xC2 |0
+<U4F82> \xCB\xC9 |0
+<U4F83> \xA8\xD4 |0
+<U4F84> \xCB\xBB |0
+<U4F85> \xCB\xB4 |0
+<U4F86> \xA8\xD3 |0
+<U4F87> \xCB\xB7 |0
+<U4F88> \xA8\xD7 |0
+<U4F89> \xCB\xBA |0
+<U4F8A> \x92\x6F |0
+<U4F8B> \xA8\xD2 |0
+<U4F8D> \xA8\xCD |0
+<U4F8F> \xA8\xDC |0
+<U4F90> \xCB\xC4 |0
+<U4F91> \xA8\xDD |0
+<U4F92> \xCB\xC8 |0
+<U4F94> \xCB\xC6 |0
+<U4F95> \xCB\xCA |0
+<U4F96> \xA8\xDA |0
+<U4F97> \xCB\xBE |0
+<U4F98> \xCB\xB2 |0
+<U4F9A> \xCB\xC0 |0
+<U4F9B> \xA8\xD1 |0
+<U4F9C> \xCB\xC5 |0
+<U4F9D> \xA8\xCC |0
+<U4F9E> \xCB\xC7 |0
+<U4FA2> \x92\xA3 |0
+<U4FA8> \x89\x50 |0
+<U4FAB> \xFA\x57 |0
+<U4FAE> \xAB\x56 |0
+<U4FAF> \xAB\x4A |0
+<U4FB0> \x98\x66 |0
+<U4FB2> \xCD\xE0 |0
+<U4FB3> \xCD\xE8 |0
+<U4FB5> \xAB\x49 |0
+<U4FB6> \xAB\x51 |0
+<U4FB7> \xAB\x5D |0
+<U4FB9> \xCD\xEE |0
+<U4FBA> \xCD\xEC |0
+<U4FBB> \xCD\xE7 |0
+<U4FBD> \x89\xD6 |0
+<U4FBF> \xAB\x4B |0
+<U4FC0> \xCD\xED |0
+<U4FC1> \xCD\xE3 |0
+<U4FC2> \xAB\x59 |0
+<U4FC3> \xAB\x50 |0
+<U4FC4> \xAB\x58 |0
+<U4FC5> \xCD\xDE |0
+<U4FC7> \xCD\xEA |0
+<U4FC8> \x98\xB2 |0
+<U4FC9> \xCD\xE1 |0
+<U4FCA> \xAB\x54 |0
+<U4FCB> \xCD\xE2 |0
+<U4FCC> \x92\xAB |0
+<U4FCD> \xCD\xDD |0
+<U4FCE> \xAB\x5B |0
+<U4FCF> \xAB\x4E |0
+<U4FD0> \xAB\x57 |0
+<U4FD1> \xAB\x4D |0
+<U4FD3> \xCD\xDF |0
+<U4FD4> \xCD\xE4 |0
+<U4FD6> \xCD\xEB |0
+<U4FD7> \xAB\x55 |0
+<U4FD8> \xAB\x52 |0
+<U4FD9> \xCD\xE6 |0
+<U4FDA> \xAB\x5A |0
+<U4FDB> \xCD\xE9 |0
+<U4FDC> \xCD\xE5 |0
+<U4FDD> \xAB\x4F |0
+<U4FDE> \xAB\x5C |0
+<U4FDF> \xAB\x53 |0
+<U4FE0> \xAB\x4C |0
+<U4FE1> \xAB\x48 |0
+<U4FE4> \x96\xDE |0
+<U4FE5> \x92\xAC |0
+<U4FEC> \xCD\xEF |0
+<U4FEE> \xAD\xD7 |0
+<U4FEF> \xAD\xC1 |0
+<U4FF0> \x8C\x70 |0
+<U4FF1> \xAD\xD1 |0
+<U4FF2> \x9F\x6E |0
+<U4FF3> \xAD\xD6 |0
+<U4FF4> \xD0\xD0 |0
+<U4FF5> \xD0\xCF |0
+<U4FF6> \xD0\xD4 |0
+<U4FF7> \xD0\xD5 |0
+<U4FF8> \xAD\xC4 |0
+<U4FF9> \x8E\xF2 |0
+<U4FFA> \xAD\xCD |0
+<U4FFD> \x9F\x6C |0
+<U4FFE> \xAD\xDA |0
+<U5000> \xAD\xCE |0
+<U5003> \x89\xD8 |0
+<U5005> \xD0\xC9 |0
+<U5006> \xAD\xC7 |0
+<U5007> \xD0\xCA |0
+<U5008> \xFA\x59 |0
+<U5009> \xAD\xDC |0
+<U500B> \xAD\xD3 |0
+<U500C> \xAD\xBE |0
+<U500D> \xAD\xBF |0
+<U500E> \xD0\xDD |0
+<U500F> \xB0\xBF |0
+<U5011> \xAD\xCC |0
+<U5012> \xAD\xCB |0
+<U5013> \xD0\xCB |0
+<U5014> \xAD\xCF |0
+<U5015> \xD4\x5B |0
+<U5016> \xAD\xC6 |0
+<U5017> \xD0\xD6 |0
+<U5018> \xAD\xD5 |0
+<U5019> \xAD\xD4 |0
+<U501A> \xAD\xCA |0
+<U501B> \xD0\xCE |0
+<U501C> \xD0\xD7 |0
+<U501E> \xD0\xC8 |0
+<U501F> \xAD\xC9 |0
+<U5020> \xD0\xD8 |0
+<U5021> \xAD\xD2 |0
+<U5022> \xD0\xCC |0
+<U5023> \xAD\xC0 |0
+<U5025> \xAD\xC3 |0
+<U5026> \xAD\xC2 |0
+<U5027> \xD0\xD9 |0
+<U5028> \xAD\xD0 |0
+<U5029> \xAD\xC5 |0
+<U502A> \xAD\xD9 |0
+<U502B> \xAD\xDB |0
+<U502C> \xD0\xD3 |0
+<U502D> \xAD\xD8 |0
+<U502E> \x92\xA8 |0
+<U502F> \xD0\xDB |0
+<U5030> \xD0\xCD |0
+<U5031> \xD0\xDC |0
+<U5033> \xD0\xD1 |0
+<U5034> \x91\x63 |0
+<U5035> \xD0\xDA |0
+<U5037> \xD0\xD2 |0
+<U503B> \x8C\x40 |0
+<U503C> \xAD\xC8 |0
+<U5040> \xD4\x63 |0
+<U5041> \xD4\x57 |0
+<U5043> \xB0\xB3 |0
+<U5045> \xD4\x5C |0
+<U5046> \xD4\x62 |0
+<U5047> \xB0\xB2 |0
+<U5048> \xD4\x55 |0
+<U5049> \xB0\xB6 |0
+<U504A> \xD4\x59 |0
+<U504B> \xD4\x52 |0
+<U504C> \xB0\xB4 |0
+<U504D> \xD4\x56 |0
+<U504E> \xB0\xB9 |0
+<U504F> \xB0\xBE |0
+<U5051> \xD4\x67 |0
+<U5053> \xD4\x51 |0
+<U5055> \xB0\xBA |0
+<U5056> \x9F\x73 |0
+<U5057> \xD4\x66 |0
+<U5058> \x92\xAD |0
+<U505A> \xB0\xB5 |0
+<U505B> \xD4\x58 |0
+<U505C> \xB0\xB1 |0
+<U505D> \xD4\x53 |0
+<U505E> \xD4\x4F |0
+<U505F> \xD4\x5D |0
+<U5060> \xD4\x50 |0
+<U5061> \xD4\x4E |0
+<U5062> \xD4\x5A |0
+<U5063> \xD4\x60 |0
+<U5064> \xD4\x61 |0
+<U5065> \xB0\xB7 |0
+<U5066> \x9B\xE9 |0
+<U5068> \xD8\x5B |0
+<U5069> \xD4\x5E |0
+<U506A> \xD4\x4D |0
+<U506B> \xD4\x5F |0
+<U506C> \x92\xA9 |0
+<U506D> \xB0\xC1 |0
+<U506E> \xD4\x64 |0
+<U506F> \xB0\xC0 |0
+<U5070> \xD4\x4C |0
+<U5072> \xD4\x54 |0
+<U5073> \xD4\x65 |0
+<U5074> \xB0\xBC |0
+<U5075> \xB0\xBB |0
+<U5076> \xB0\xB8 |0
+<U5077> \xB0\xBD |0
+<U507A> \xB0\xAF |0
+<U507D> \xB0\xB0 |0
+<U5080> \xB3\xC8 |0
+<U5081> \x92\xAA |0
+<U5082> \xD8\x5E |0
+<U5083> \xD8\x57 |0
+<U5085> \xB3\xC5 |0
+<U5087> \xD8\x5F |0
+<U5088> \x89\xD9 |0
+<U508B> \xD8\x55 |0
+<U508C> \xD8\x58 |0
+<U508D> \xB3\xC4 |0
+<U508E> \xD8\x59 |0
+<U5090> \xFD\x56 |0
+<U5091> \xB3\xC7 |0
+<U5092> \xD8\x5D |0
+<U5094> \xD8\x53 |0
+<U5095> \xD8\x52 |0
+<U5096> \xB3\xC9 |0
+<U5098> \xB3\xCA |0
+<U5099> \xB3\xC6 |0
+<U509A> \xB3\xCB |0
+<U509B> \xD8\x51 |0
+<U509C> \xD8\x5C |0
+<U509D> \xD8\x5A |0
+<U509E> \xD8\x54 |0
+<U50A2> \xB3\xC3 |0
+<U50A3> \xD8\x56 |0
+<U50A6> \x9F\xA8 |0
+<U50AC> \xB6\xCA |0
+<U50AD> \xB6\xC4 |0
+<U50AE> \xDC\xB7 |0
+<U50AF> \xB6\xCD |0
+<U50B0> \xDC\xBD |0
+<U50B1> \xDC\xC0 |0
+<U50B2> \xB6\xC6 |0
+<U50B3> \xB6\xC7 |0
+<U50B4> \xDC\xBA |0
+<U50B5> \xB6\xC5 |0
+<U50B6> \xDC\xC3 |0
+<U50B7> \xB6\xCB |0
+<U50B8> \xDC\xC4 |0
+<U50BA> \xDC\xBF |0
+<U50BB> \xB6\xCC |0
+<U50BC> \x8C\x71 |0
+<U50BD> \xDC\xB4 |0
+<U50BE> \xB6\xC9 |0
+<U50BF> \xDC\xB5 |0
+<U50C1> \xDC\xBE |0
+<U50C2> \xDC\xBC |0
+<U50C4> \xDC\xB8 |0
+<U50C5> \xB6\xC8 |0
+<U50C6> \xDC\xB6 |0
+<U50C7> \xB6\xCE |0
+<U50C8> \xDC\xBB |0
+<U50C9> \xDC\xC2 |0
+<U50CA> \xDC\xB9 |0
+<U50CB> \xDC\xC1 |0
+<U50CD> \x92\xA1 |0
+<U50CE> \xB9\xB6 |0
+<U50CF> \xB9\xB3 |0
+<U50D0> \x90\xE3 |0
+<U50D1> \xB9\xB4 |0
+<U50D3> \xE0\xF9 |0
+<U50D4> \xE0\xF1 |0
+<U50D5> \xB9\xB2 |0
+<U50D6> \xB9\xAF |0
+<U50D7> \xE0\xF2 |0
+<U50D9> \xA0\xA6 |0
+<U50DA> \xB9\xB1 |0
+<U50DB> \xE0\xF5 |0
+<U50DD> \xE0\xF7 |0
+<U50DF> \x94\xAB |0
+<U50E0> \xE0\xFE |0
+<U50E1> \xFC\x72 |0
+<U50E3> \xE0\xFD |0
+<U50E4> \xE0\xF8 |0
+<U50E5> \xB9\xAE |0
+<U50E6> \xE0\xF0 |0
+<U50E7> \xB9\xAC |0
+<U50E8> \xE0\xF3 |0
+<U50E9> \xB9\xB7 |0
+<U50EA> \xE0\xF6 |0
+<U50EC> \xE0\xFA |0
+<U50ED> \xB9\xB0 |0
+<U50EE> \xB9\xAD |0
+<U50EF> \xE0\xFC |0
+<U50F0> \xE0\xFB |0
+<U50F1> \xB9\xB5 |0
+<U50F3> \xE0\xF4 |0
+<U50F4> \x97\xC4 |0
+<U50F5> \xBB\xF8 |0
+<U50F6> \xE4\xEC |0
+<U50F8> \xE4\xE9 |0
+<U50F9> \xBB\xF9 |0
+<U50FB> \xBB\xF7 |0
+<U50FC> \x92\xAE |0
+<U50FD> \xE4\xF0 |0
+<U50FE> \xE4\xED |0
+<U50FF> \xE4\xE6 |0
+<U5100> \xBB\xF6 |0
+<U5101> \xFA\x67 |0
+<U5102> \xBB\xFA |0
+<U5103> \xE4\xE7 |0
+<U5104> \xBB\xF5 |0
+<U5105> \xBB\xFD |0
+<U5106> \xE4\xEA |0
+<U5107> \xE4\xEB |0
+<U5108> \xBB\xFB |0
+<U5109> \xBB\xFC |0
+<U510A> \xE4\xF1 |0
+<U510B> \xE4\xEE |0
+<U510C> \xE4\xEF |0
+<U510D> \x92\xA2 |0
+<U510E> \xFA\x69 |0
+<U5110> \xBE\xAA |0
+<U5111> \xE8\xF8 |0
+<U5112> \xBE\xA7 |0
+<U5113> \xE8\xF5 |0
+<U5114> \xBE\xA9 |0
+<U5115> \xBE\xAB |0
+<U5117> \xE8\xF6 |0
+<U5118> \xBE\xA8 |0
+<U511A> \xE8\xF7 |0
+<U511C> \xE8\xF4 |0
+<U511F> \xC0\x76 |0
+<U5120> \xEC\xBD |0
+<U5121> \xC0\x77 |0
+<U5122> \xEC\xBB |0
+<U5124> \xEC\xBC |0
+<U5125> \xEC\xBA |0
+<U5126> \xEC\xB9 |0
+<U5129> \xEC\xBE |0
+<U512A> \xC0\x75 |0
+<U512B> \x92\x68 |0
+<U512D> \xEF\xB8 |0
+<U512E> \xEF\xB9 |0
+<U5130> \xE4\xE8 |0
+<U5131> \xEF\xB7 |0
+<U5132> \xC0\x78 |0
+<U5133> \xC3\x5F |0
+<U5134> \xF1\xEB |0
+<U5135> \xF1\xEC |0
+<U5137> \xC4\xD7 |0
+<U5138> \xC4\xD8 |0
+<U5139> \xF5\xC1 |0
+<U513A> \xF5\xC0 |0
+<U513B> \xC5\x6C |0
+<U513C> \xC5\x6B |0
+<U513D> \xF7\xD0 |0
+<U513F> \xA4\x49 |0
+<U5140> \xA4\x61 |0
+<U5141> \xA4\xB9 |0
+<U5143> \xA4\xB8 |0
+<U5144> \xA5\x53 |0
+<U5145> \xA5\x52 |0
+<U5146> \xA5\xFC |0
+<U5147> \xA5\xFB |0
+<U5148> \xA5\xFD |0
+<U5149> \xA5\xFA |0
+<U514B> \xA7\x4A |0
+<U514C> \xA7\x49 |0
+<U514D> \xA7\x4B |0
+<U5152> \xA8\xE0 |0
+<U5154> \xA8\xDF |0
+<U5155> \xA8\xE1 |0
+<U5156> \x89\x51 |0
+<U5157> \xAB\x5E |0
+<U5159> \xA2\x59 |0
+<U515A> \xD0\xDE |0
+<U515B> \xA2\x5A |0
+<U515C> \xB0\xC2 |0
+<U515D> \xA2\x5C |0
+<U515E> \xA2\x5B |0
+<U515F> \xD8\x60 |0
+<U5160> \xFA\x6F |0
+<U5161> \xA2\x5D |0
+<U5162> \xB9\xB8 |0
+<U5163> \xA2\x5E |0
+<U5165> \xA4\x4A |0
+<U5167> \xA4\xBA |0
+<U5168> \xA5\xFE |0
+<U5169> \xA8\xE2 |0
+<U516A> \xFA\x71 |0
+<U516B> \xA4\x4B |0
+<U516C> \xA4\xBD |0
+<U516D> \xA4\xBB |0
+<U516E> \xA4\xBC |0
+<U5171> \xA6\x40 |0
+<U5174> \x89\x52 |0
+<U5175> \xA7\x4C |0
+<U5176> \xA8\xE4 |0
+<U5177> \xA8\xE3 |0
+<U5178> \xA8\xE5 |0
+<U5179> \x94\x5A |0
+<U517C> \xAD\xDD |0
+<U5180> \xBE\xAC |0
+<U5182> \xC6\xC3 |0
+<U5186> \x89\xDD |0
+<U5187> \xC9\x4E |0
+<U5188> \xC8\xA2 |0
+<U5189> \xA5\x54 |0
+<U518A> \xA5\x55 |0
+<U518D> \xA6\x41 |0
+<U518F> \xCA\x6A |0
+<U5191> \xAB\x60 |0
+<U5192> \xAB\x5F |0
+<U5193> \xD0\xE0 |0
+<U5194> \xD0\xDF |0
+<U5195> \xB0\xC3 |0
+<U5196> \xC6\xC4 |0
+<U5197> \xA4\xBE |0
+<U5198> \xC9\x55 |0
+<U519A> \x9E\x52 |0
+<U519C> \x89\x53 |0
+<U519E> \xCB\xCD |0
+<U51A0> \xAB\x61 |0
+<U51A2> \xAD\xE0 |0
+<U51A4> \xAD\xDE |0
+<U51A5> \xAD\xDF |0
+<U51A7> \x9E\x55 |0
+<U51A8> \x92\xBA |0
+<U51AA> \xBE\xAD |0
+<U51AB> \xC6\xC5 |0
+<U51AC> \xA5\x56 |0
+<U51AE> \x8C\x5B |0
+<U51B0> \xA6\x42 |0
+<U51B1> \xC9\xBC |0
+<U51B2> \xFA\x7D |0
+<U51B3> \xFA\xA8 |0
+<U51B4> \x9A\x68 |0
+<U51B5> \xFA\x47 |0
+<U51B6> \xA7\x4D |0
+<U51B7> \xA7\x4E |0
+<U51B8> \xFA\x7E |0
+<U51B9> \xCA\x6B |0
+<U51BC> \xCB\xCE |0
+<U51BD> \xA8\xE6 |0
+<U51BE> \xCB\xCF |0
+<U51C3> \x92\xBB |0
+<U51C4> \xD0\xE2 |0
+<U51C5> \xD0\xE3 |0
+<U51C6> \xAD\xE3 |0
+<U51C7> \xFD\xB6 |0
+<U51C8> \xD0\xE4 |0
+<U51C9> \xFA\xA2 |0
+<U51CA> \xD0\xE1 |0
+<U51CB> \xAD\xE4 |0
+<U51CC> \xAD\xE2 |0
+<U51CD> \xAD\xE1 |0
+<U51CE> \xD0\xE5 |0
+<U51CF> \xFA\xA3 |0
+<U51D0> \xD4\x68 |0
+<U51D1> \xFA\xA4 |0
+<U51D2> \x9B\xB4 |0
+<U51D3> \xFA\xA6 |0
+<U51D4> \xD8\x61 |0
+<U51D7> \xDC\xC5 |0
+<U51D8> \xE1\x40 |0
+<U51DB> \x89\xDF |0
+<U51DC> \xBB\xFE |0
+<U51DD> \xBE\xAE |0
+<U51DE> \xE8\xF9 |0
+<U51DF> \xFD\xDB |0
+<U51E0> \xA4\x4C |0
+<U51E1> \xA4\x5A |0
+<U51E2> \xFA\xA9 |0
+<U51E4> \x89\x54 |0
+<U51ED> \xFA\xAB |0
+<U51F0> \xB0\xC4 |0
+<U51F1> \xB3\xCD |0
+<U51F3> \xB9\xB9 |0
+<U51F4> \xFC\x7A |0
+<U51F5> \xC9\x42 |0
+<U51F6> \xA4\xBF |0
+<U51F8> \xA5\x59 |0
+<U51F9> \xA5\x57 |0
+<U51FA> \xA5\x58 |0
+<U51FC> \x89\xE0 |0
+<U51FD> \xA8\xE7 |0
+<U51FE> \x9F\x4F |0
+<U5200> \xA4\x4D |0
+<U5201> \xA4\x4E |0
+<U5202> \xC8\x7D |0
+<U5203> \xA4\x62 |0
+<U5205> \x89\xE1 |0
+<U5206> \xA4\xC0 |0
+<U5207> \xA4\xC1 |0
+<U5208> \xA4\xC2 |0
+<U5209> \xC9\xBE |0
+<U520A> \xA5\x5A |0
+<U520B> \xFA\xB0 |0
+<U520C> \xC9\x6B |0
+<U520E> \xA6\x46 |0
+<U5210> \xC9\xBF |0
+<U5211> \xA6\x44 |0
+<U5212> \xA6\x45 |0
+<U5213> \xC9\xBD |0
+<U5216> \xA6\x47 |0
+<U5217> \xA6\x43 |0
+<U521C> \xCA\x6C |0
+<U521D> \xAA\xEC |0
+<U521E> \xCA\x6D |0
+<U521F> \x9F\xCD |0
+<U5220> \xA0\xE7 |0
+<U5221> \xCA\x6E |0
+<U5224> \xA7\x50 |0
+<U5225> \xA7\x4F |0
+<U5226> \xFA\xB1 |0
+<U5227> \x89\xA6 |0
+<U5228> \xA7\x53 |0
+<U5229> \xA7\x51 |0
+<U522A> \xA7\x52 |0
+<U522E> \xA8\xED |0
+<U5230> \xA8\xEC |0
+<U5231> \xCB\xD4 |0
+<U5232> \xCB\xD1 |0
+<U5233> \xCB\xD2 |0
+<U5234> \x9E\xFA |0
+<U5235> \xCB\xD0 |0
+<U5236> \xA8\xEE |0
+<U5237> \xA8\xEA |0
+<U5238> \xA8\xE9 |0
+<U523A> \xA8\xEB |0
+<U523B> \xA8\xE8 |0
+<U523C> \xFA\xB2 |0
+<U5241> \xA8\xEF |0
+<U5243> \xAB\x63 |0
+<U5244> \xCD\xF0 |0
+<U5246> \xCB\xD3 |0
+<U5247> \xAB\x68 |0
+<U5249> \xCD\xF1 |0
+<U524A> \xAB\x64 |0
+<U524B> \xAB\x67 |0
+<U524C> \xAB\x66 |0
+<U524D> \xAB\x65 |0
+<U524E> \xAB\x62 |0
+<U5252> \xD0\xE8 |0
+<U5254> \xAD\xE7 |0
+<U5255> \xD0\xEB |0
+<U5256> \xAD\xE5 |0
+<U5257> \xFA\xB4 |0
+<U5259> \x92\xC4 |0
+<U525A> \xD0\xE7 |0
+<U525B> \xAD\xE8 |0
+<U525C> \xAD\xE6 |0
+<U525D> \xAD\xE9 |0
+<U525E> \xD0\xE9 |0
+<U525F> \xD0\xEA |0
+<U5260> \x9F\x6F |0
+<U5261> \xD0\xE6 |0
+<U5262> \xD0\xEC |0
+<U5268> \x8B\xB0 |0
+<U5269> \xB3\xD1 |0
+<U526A> \xB0\xC5 |0
+<U526B> \xD4\x69 |0
+<U526C> \xD4\x6B |0
+<U526D> \xD4\x6A |0
+<U526E> \xD4\x6C |0
+<U526F> \xB0\xC6 |0
+<U5272> \xB3\xCE |0
+<U5273> \x9F\xAC |0
+<U5274> \xB3\xCF |0
+<U5275> \xB3\xD0 |0
+<U5277> \xB6\xD0 |0
+<U5278> \xDC\xC7 |0
+<U5279> \x89\xE3 |0
+<U527A> \xDC\xC6 |0
+<U527B> \xDC\xC8 |0
+<U527C> \xDC\xC9 |0
+<U527D> \xB6\xD1 |0
+<U527F> \xB6\xCF |0
+<U5280> \xE1\x41 |0
+<U5281> \xE1\x42 |0
+<U5282> \xB9\xBB |0
+<U5283> \xB9\xBA |0
+<U5284> \xE3\x5A |0
+<U5287> \xBC\x40 |0
+<U5288> \xBC\x41 |0
+<U5289> \xBC\x42 |0
+<U528A> \xBC\x44 |0
+<U528B> \xE4\xF2 |0
+<U528C> \xE4\xF3 |0
+<U528D> \xBC\x43 |0
+<U528F> \x9B\xD3 |0
+<U5290> \x89\xE4 |0
+<U5291> \xBE\xAF |0
+<U5293> \xBE\xB0 |0
+<U5294> \xFA\xB5 |0
+<U5296> \xF1\xED |0
+<U5297> \xF5\xC3 |0
+<U5298> \xF5\xC2 |0
+<U5299> \xF7\xD1 |0
+<U529A> \x9F\xD5 |0
+<U529B> \xA4\x4F |0
+<U529F> \xA5\x5C |0
+<U52A0> \xA5\x5B |0
+<U52A1> \x89\x55 |0
+<U52A3> \xA6\x48 |0
+<U52A4> \x92\xC5 |0
+<U52A6> \xC9\xC0 |0
+<U52A8> \x89\x56 |0
+<U52A9> \xA7\x55 |0
+<U52AA> \xA7\x56 |0
+<U52AB> \xA7\x54 |0
+<U52AC> \xA7\x57 |0
+<U52AD> \xCA\x6F |0
+<U52AE> \xCA\x70 |0
+<U52B5> \xFA\xB3 |0
+<U52B9> \xFA\xB6 |0
+<U52BB> \xA8\xF1 |0
+<U52BC> \xCB\xD5 |0
+<U52BE> \xA8\xF0 |0
+<U52C0> \xCD\xF2 |0
+<U52C1> \xAB\x6C |0
+<U52C2> \xCD\xF3 |0
+<U52C3> \xAB\x6B |0
+<U52C5> \xFA\xB7 |0
+<U52C7> \xAB\x69 |0
+<U52C9> \xAB\x6A |0
+<U52CC> \x9E\xDC |0
+<U52CD> \xD0\xED |0
+<U52D0> \xFB\xC4 |0
+<U52D1> \x9F\x71 |0
+<U52D2> \xB0\xC7 |0
+<U52D3> \xD4\x6E |0
+<U52D5> \xB0\xCA |0
+<U52D6> \xD4\x6D |0
+<U52D7> \xB1\xE5 |0
+<U52D8> \xB0\xC9 |0
+<U52D9> \xB0\xC8 |0
+<U52DB> \xB3\xD4 |0
+<U52DD> \xB3\xD3 |0
+<U52DE> \xB3\xD2 |0
+<U52DF> \xB6\xD2 |0
+<U52E0> \xFA\xBA |0
+<U52E1> \x92\xC7 |0
+<U52E2> \xB6\xD5 |0
+<U52E3> \xB6\xD6 |0
+<U52E4> \xB6\xD4 |0
+<U52E6> \xB6\xD3 |0
+<U52E9> \xE1\x43 |0
+<U52EB> \xE1\x44 |0
+<U52EF> \xE4\xF5 |0
+<U52F0> \xBC\x45 |0
+<U52F1> \xE4\xF4 |0
+<U52F3> \xBE\xB1 |0
+<U52F4> \xEC\xBF |0
+<U52F5> \xC0\x79 |0
+<U52F7> \xF1\xEE |0
+<U52F8> \xC4\x55 |0
+<U52F9> \xC6\xC6 |0
+<U52FA> \xA4\x63 |0
+<U52FB> \xA4\xC3 |0
+<U52FC> \xC9\x56 |0
+<U52FE> \xA4\xC4 |0
+<U52FF> \xA4\xC5 |0
+<U5301> \x9A\x4C |0
+<U5305> \xA5\x5D |0
+<U5306> \xA5\x5E |0
+<U5308> \xA6\x49 |0
+<U5309> \xCA\x71 |0
+<U530A> \xCB\xD6 |0
+<U530B> \xCB\xD7 |0
+<U530D> \xAB\x6D |0
+<U530E> \xD0\xEE |0
+<U530F> \xB0\xCC |0
+<U5310> \xB0\xCB |0
+<U5311> \xD8\x63 |0
+<U5312> \xD8\x62 |0
+<U5315> \xA4\x50 |0
+<U5316> \xA4\xC6 |0
+<U5317> \xA5\x5F |0
+<U5319> \xB0\xCD |0
+<U531A> \xC9\x43 |0
+<U531C> \xC9\x6C |0
+<U531D> \xA5\x60 |0
+<U531F> \xC9\xC2 |0
+<U5320> \xA6\x4B |0
+<U5321> \xA6\x4A |0
+<U5322> \xC9\xC1 |0
+<U5323> \xA7\x58 |0
+<U5324> \x8C\x68 |0
+<U5327> \x89\xE5 |0
+<U532A> \xAD\xEA |0
+<U532C> \x9F\x7D |0
+<U532D> \xD4\x6F |0
+<U532F> \xB6\xD7 |0
+<U5330> \xE1\x45 |0
+<U5331> \xB9\xBC |0
+<U5332> \xA0\xA9 |0
+<U5333> \xFA\xC4 |0
+<U5334> \xE8\xFA |0
+<U5337> \xF3\xFD |0
+<U5338> \xC6\xC7 |0
+<U5339> \xA4\xC7 |0
+<U533B> \x89\x57 |0
+<U533C> \xCB\xD8 |0
+<U533D> \xCD\xF4 |0
+<U533E> \xB0\xD0 |0
+<U533F> \xB0\xCE |0
+<U5340> \xB0\xCF |0
+<U5341> \xA4\x51 |0
+<U5341> \xA2\xCC |3
+<U5342> \xFA\xAA |0
+<U5343> \xA4\x64 |0
+<U5344> \xA2\xCD |0
+<U5345> \xA4\xCA |0
+<U5345> \xA2\xCE |3
+<U5347> \xA4\xC9 |0
+<U5348> \xA4\xC8 |0
+<U5349> \xA5\x63 |0
+<U534A> \xA5\x62 |0
+<U534C> \xC9\x6D |0
+<U534D> \xC9\xC3 |0
+<U534E> \x89\x58 |0
+<U5351> \xA8\xF5 |0
+<U5352> \xA8\xF2 |0
+<U5353> \xA8\xF4 |0
+<U5354> \xA8\xF3 |0
+<U5357> \xAB\x6E |0
+<U535A> \xB3\xD5 |0
+<U535C> \xA4\x52 |0
+<U535D> \x8B\xE3 |0
+<U535E> \xA4\xCB |0
+<U535F> \x8B\x61 |0
+<U5360> \xA5\x65 |0
+<U5361> \xA5\x64 |0
+<U5363> \xCA\x72 |0
+<U5364> \x9A\xF1 |0
+<U5366> \xA8\xF6 |0
+<U5367> \x9E\xB7 |0
+<U5369> \xC6\xC8 |0
+<U536C> \xC9\x57 |0
+<U536D> \xFA\xD1 |0
+<U536E> \xA5\x67 |0
+<U536F> \xA5\x66 |0
+<U5370> \xA6\x4C |0
+<U5371> \xA6\x4D |0
+<U5372> \xCA\x73 |0
+<U5373> \xA7\x59 |0
+<U5374> \xFA\xD2 |0
+<U5375> \xA7\x5A |0
+<U5377> \xA8\xF7 |0
+<U5378> \xA8\xF8 |0
+<U5379> \xA8\xF9 |0
+<U537B> \xAB\x6F |0
+<U537C> \xCD\xF5 |0
+<U537D> \x9E\xBA |0
+<U537E> \xFA\xD4 |0
+<U537F> \xAD\xEB |0
+<U5382> \xC9\x44 |0
+<U5384> \xA4\xCC |0
+<U538A> \xC9\xC4 |0
+<U538E> \xCA\x74 |0
+<U538F> \xCA\x75 |0
+<U5392> \xCB\xD9 |0
+<U5393> \xFA\xD9 |0
+<U5394> \xCB\xDA |0
+<U5396> \xCD\xF7 |0
+<U5397> \xCD\xF6 |0
+<U5398> \xCD\xF9 |0
+<U5399> \xCD\xF8 |0
+<U539A> \xAB\x70 |0
+<U539C> \xD4\x70 |0
+<U539D> \xAD\xED |0
+<U539E> \xD0\xEF |0
+<U539F> \xAD\xEC |0
+<U53A0> \xFA\xDB |0
+<U53A2> \x9C\xE0 |0
+<U53A4> \xD8\x64 |0
+<U53A5> \xB3\xD6 |0
+<U53A6> \xFB\xF7 |0
+<U53A7> \xD8\x65 |0
+<U53A8> \xFB\xFA |0
+<U53A9> \x89\xE7 |0
+<U53AA> \xA0\x7A |0
+<U53AB> \xFA\xDC |0
+<U53AC> \xE1\x46 |0
+<U53AD> \xB9\xBD |0
+<U53AE> \xFA\xDD |0
+<U53B0> \x89\xE9 |0
+<U53B2> \xBC\x46 |0
+<U53B4> \xF1\xEF |0
+<U53B6> \xC6\xC9 |0
+<U53B9> \xC9\x58 |0
+<U53BB> \xA5\x68 |0
+<U53C1> \xFA\xE2 |0
+<U53C2> \x89\xEB |0
+<U53C3> \xB0\xD1 |0
+<U53C5> \xFA\xE3 |0
+<U53C8> \xA4\x53 |0
+<U53C9> \xA4\x65 |0
+<U53CA> \xA4\xCE |0
+<U53CB> \xA4\xCD |0
+<U53CC> \x90\xC8 |0
+<U53CD> \xA4\xCF |0
+<U53D0> \x92\xDA |0
+<U53D1> \x89\x59 |0
+<U53D2> \x9C\xF5 |0
+<U53D4> \xA8\xFB |0
+<U53D6> \xA8\xFA |0
+<U53D7> \xA8\xFC |0
+<U53D8> \x89\x5A |0
+<U53D9> \xFA\xE7 |0
+<U53DA> \x9F\xA2 |0
+<U53DB> \xAB\x71 |0
+<U53DF> \xAD\xEE |0
+<U53E0> \xFA\xEA |0
+<U53E1> \xE8\xFB |0
+<U53E2> \xC2\x4F |0
+<U53E3> \xA4\x66 |0
+<U53E4> \xA5\x6A |0
+<U53E5> \xA5\x79 |0
+<U53E6> \xA5\x74 |0
+<U53E8> \xA5\x6F |0
+<U53E9> \xA5\x6E |0
+<U53EA> \xA5\x75 |0
+<U53EB> \xA5\x73 |0
+<U53EC> \xA5\x6C |0
+<U53ED> \xA5\x7A |0
+<U53EE> \xA5\x6D |0
+<U53EF> \xA5\x69 |0
+<U53F0> \xA5\x78 |0
+<U53F1> \xA5\x77 |0
+<U53F2> \xA5\x76 |0
+<U53F3> \xA5\x6B |0
+<U53F5> \xA5\x72 |0
+<U53F6> \xFA\xED |0
+<U53F7> \x8F\xAD |0
+<U53F8> \xA5\x71 |0
+<U53FB> \xA5\x7B |0
+<U53FC> \xA5\x70 |0
+<U53FE> \xFB\x59 |0
+<U5401> \xA6\x53 |0
+<U5403> \xA6\x59 |0
+<U5404> \xA6\x55 |0
+<U5406> \xA6\x5B |0
+<U5407> \xC9\xC5 |0
+<U5408> \xA6\x58 |0
+<U5409> \xA6\x4E |0
+<U540A> \xA6\x51 |0
+<U540B> \xA6\x54 |0
+<U540C> \xA6\x50 |0
+<U540D> \xA6\x57 |0
+<U540E> \xA6\x5A |0
+<U540F> \xA6\x4F |0
+<U5410> \xA6\x52 |0
+<U5411> \xA6\x56 |0
+<U5412> \xA6\x5C |0
+<U5413> \xFA\xEF |0
+<U5414> \x96\xEF |0
+<U5416> \x9D\xEC |0
+<U5418> \xCA\x7E |0
+<U5419> \xCA\x7B |0
+<U541A> \x9D\xCA |0
+<U541B> \xA7\x67 |0
+<U541C> \xCA\x7C |0
+<U541D> \xA7\x5B |0
+<U541E> \xA7\x5D |0
+<U541F> \xA7\x75 |0
+<U5420> \xA7\x70 |0
+<U5421> \xFD\x6D |0
+<U5423> \x89\xEC |0
+<U5424> \xCA\xA5 |0
+<U5425> \xCA\x7D |0
+<U5426> \xA7\x5F |0
+<U5427> \xA7\x61 |0
+<U5428> \xCA\xA4 |0
+<U5429> \xA7\x68 |0
+<U542A> \xCA\x78 |0
+<U542B> \xA7\x74 |0
+<U542C> \xA7\x76 |0
+<U542D> \xA7\x5C |0
+<U542E> \xA7\x6D |0
+<U542F> \xFB\x44 |0
+<U5430> \xCA\x76 |0
+<U5431> \xA7\x73 |0
+<U5432> \x9D\xE2 |0
+<U5433> \xA7\x64 |0
+<U5434> \x8C\x75 |0
+<U5435> \xA7\x6E |0
+<U5436> \xA7\x6F |0
+<U5437> \xCA\x77 |0
+<U5438> \xA7\x6C |0
+<U5439> \xA7\x6A |0
+<U543B> \xA7\x6B |0
+<U543C> \xA7\x71 |0
+<U543D> \xCA\xA1 |0
+<U543E> \xA7\x5E |0
+<U5440> \xA7\x72 |0
+<U5441> \xCA\xA3 |0
+<U5442> \xA7\x66 |0
+<U5443> \xA7\x63 |0
+<U5445> \xCA\x7A |0
+<U5446> \xA7\x62 |0
+<U5447> \xCA\xA6 |0
+<U5448> \xA7\x65 |0
+<U544A> \xA7\x69 |0
+<U544B> \x9E\xC0 |0
+<U544D> \x9E\x56 |0
+<U544E> \xA7\x60 |0
+<U544F> \xCA\xA2 |0
+<U5454> \xCA\x79 |0
+<U5460> \xCB\xEB |0
+<U5461> \xCB\xEA |0
+<U5462> \xA9\x4F |0
+<U5463> \xCB\xED |0
+<U5464> \xCB\xEF |0
+<U5465> \xCB\xE4 |0
+<U5466> \xCB\xE7 |0
+<U5467> \xCB\xEE |0
+<U5468> \xA9\x50 |0
+<U5469> \x9F\x79 |0
+<U546A> \x9A\xC7 |0
+<U546B> \xCB\xE1 |0
+<U546C> \xCB\xE5 |0
+<U546D> \xFA\xF4 |0
+<U546F> \xCB\xE9 |0
+<U5470> \xCE\x49 |0
+<U5471> \xA9\x4B |0
+<U5472> \xCE\x4D |0
+<U5473> \xA8\xFD |0
+<U5474> \xCB\xE6 |0
+<U5475> \xA8\xFE |0
+<U5476> \xA9\x4C |0
+<U5477> \xA9\x45 |0
+<U5478> \xA9\x41 |0
+<U547A> \xCB\xE2 |0
+<U547B> \xA9\x44 |0
+<U547C> \xA9\x49 |0
+<U547D> \xA9\x52 |0
+<U547E> \xCB\xE3 |0
+<U547F> \xCB\xDC |0
+<U5480> \xA9\x43 |0
+<U5481> \xCB\xDD |0
+<U5482> \xCB\xDF |0
+<U5484> \xA9\x46 |0
+<U5485> \x98\xA1 |0
+<U5486> \xA9\x48 |0
+<U5487> \xCB\xDB |0
+<U5488> \xCB\xE0 |0
+<U548B> \xA9\x51 |0
+<U548C> \xA9\x4D |0
+<U548D> \xCB\xE8 |0
+<U548E> \xA9\x53 |0
+<U548F> \xFA\xF8 |0
+<U5490> \xA9\x4A |0
+<U5491> \xCB\xDE |0
+<U5492> \xA9\x47 |0
+<U5493> \x89\xF0 |0
+<U5494> \x9E\x47 |0
+<U5495> \xA9\x42 |0
+<U5496> \xA9\x40 |0
+<U5497> \x9D\xF7 |0
+<U5498> \xCB\xEC |0
+<U549A> \xA9\x4E |0
+<U549C> \x9F\xD3 |0
+<U549E> \x9A\xCA |0
+<U54A0> \xCE\x48 |0
+<U54A1> \xCD\xFB |0
+<U54A2> \xCE\x4B |0
+<U54A3> \x89\xF1 |0
+<U54A4> \xFA\xF9 |0
+<U54A5> \xCD\xFD |0
+<U54A6> \xAB\x78 |0
+<U54A7> \xAB\xA8 |0
+<U54A8> \xAB\x74 |0
+<U54A9> \xAB\xA7 |0
+<U54AA> \xAB\x7D |0
+<U54AB> \xAB\xA4 |0
+<U54AC> \xAB\x72 |0
+<U54AD> \xCD\xFC |0
+<U54AE> \xCE\x43 |0
+<U54AF> \xAB\xA3 |0
+<U54B0> \xCE\x4F |0
+<U54B1> \xAB\xA5 |0
+<U54B2> \x8E\x5A |0
+<U54B3> \xAB\x79 |0
+<U54B4> \x89\xF2 |0
+<U54B6> \xCE\x45 |0
+<U54B7> \xCE\x42 |0
+<U54B8> \xAB\x77 |0
+<U54B9> \x89\xF3 |0
+<U54BA> \xCD\xFA |0
+<U54BB> \xAB\xA6 |0
+<U54BC> \xCE\x4A |0
+<U54BD> \xAB\x7C |0
+<U54BE> \xCE\x4C |0
+<U54BF> \xAB\xA9 |0
+<U54C0> \xAB\x73 |0
+<U54C1> \xAB\x7E |0
+<U54C2> \xAB\x7B |0
+<U54C3> \xCE\x40 |0
+<U54C4> \xAB\xA1 |0
+<U54C5> \xCE\x46 |0
+<U54C6> \xCE\x47 |0
+<U54C7> \xAB\x7A |0
+<U54C8> \xAB\xA2 |0
+<U54C9> \xAB\x76 |0
+<U54CB> \x92\x5D |0
+<U54CC> \x8B\x51 |0
+<U54CD> \x92\xE0 |0
+<U54CE> \xAB\x75 |0
+<U54CF> \xCD\xFE |0
+<U54D0> \x89\xF4 |0
+<U54D6> \xCE\x44 |0
+<U54DA> \x9F\xD4 |0
+<U54DE> \xCE\x4E |0
+<U54E0> \xD1\x44 |0
+<U54E1> \xAD\xFB |0
+<U54E2> \xD0\xF1 |0
+<U54E3> \x8A\x79 |0
+<U54E4> \xD0\xF6 |0
+<U54E5> \xAD\xF4 |0
+<U54E6> \xAE\x40 |0
+<U54E7> \xD0\xF4 |0
+<U54E8> \xAD\xEF |0
+<U54E9> \xAD\xF9 |0
+<U54EA> \xAD\xFE |0
+<U54EB> \xD0\xFB |0
+<U54ED> \xAD\xFA |0
+<U54EE> \xAD\xFD |0
+<U54EF> \x89\xF5 |0
+<U54F1> \xD0\xFE |0
+<U54F2> \xAD\xF5 |0
+<U54F3> \xD0\xF5 |0
+<U54F7> \xD1\x42 |0
+<U54F8> \xD1\x43 |0
+<U54FA> \xAD\xF7 |0
+<U54FB> \xD1\x41 |0
+<U54FC> \xAD\xF3 |0
+<U54FD> \xAE\x43 |0
+<U54FF> \xD0\xF8 |0
+<U5501> \xAD\xF1 |0
+<U5502> \x97\xA7 |0
+<U5503> \xD1\x46 |0
+<U5504> \xD0\xF9 |0
+<U5505> \xD0\xFD |0
+<U5506> \xAD\xF6 |0
+<U5507> \xAE\x42 |0
+<U5508> \xD0\xFA |0
+<U5509> \xAD\xFC |0
+<U550A> \xD1\x40 |0
+<U550B> \xD1\x47 |0
+<U550C> \xD4\xA1 |0
+<U550D> \x93\xBA |0
+<U550E> \xD1\x45 |0
+<U550F> \xAE\x44 |0
+<U5510> \xAD\xF0 |0
+<U5511> \xD0\xFC |0
+<U5512> \xD0\xF3 |0
+<U5513> \x9E\x58 |0
+<U5514> \xAD\xF8 |0
+<U5517> \xD0\xF2 |0
+<U5518> \x89\xF6 |0
+<U551A> \xD0\xF7 |0
+<U551E> \x9E\x57 |0
+<U5523> \x89\xF7 |0
+<U5525> \x8A\x41 |0
+<U5526> \xD0\xF0 |0
+<U5527> \xAE\x41 |0
+<U5528> \x89\xF8 |0
+<U552A> \xD4\x77 |0
+<U552B> \xFA\xF1 |0
+<U552C> \xB0\xE4 |0
+<U552D> \xD4\xA7 |0
+<U552E> \xB0\xE2 |0
+<U552F> \xB0\xDF |0
+<U5530> \xD4\x7C |0
+<U5531> \xB0\xDB |0
+<U5532> \xD4\xA2 |0
+<U5533> \xB0\xE6 |0
+<U5534> \xD4\x76 |0
+<U5535> \xD4\x7B |0
+<U5536> \xD4\x7A |0
+<U5537> \xAD\xF2 |0
+<U5538> \xB0\xE1 |0
+<U5539> \xD4\xA5 |0
+<U553B> \xD4\xA8 |0
+<U553C> \xD4\x73 |0
+<U553E> \xB3\xE8 |0
+<U553F> \x89\xFA |0
+<U5540> \xD4\xA9 |0
+<U5541> \xB0\xE7 |0
+<U5543> \xB0\xD9 |0
+<U5544> \xB0\xD6 |0
+<U5545> \xD4\x7E |0
+<U5546> \xB0\xD3 |0
+<U5547> \xFB\x42 |0
+<U5548> \xD4\xA6 |0
+<U5549> \xFA\xBF |0
+<U554A> \xB0\xDA |0
+<U554B> \xD4\xAA |0
+<U554D> \xD4\x74 |0
+<U554E> \xD4\xA4 |0
+<U554F> \xB0\xDD |0
+<U5550> \xD4\x75 |0
+<U5551> \xD4\x78 |0
+<U5552> \xD4\x7D |0
+<U5553> \xFB\xA3 |0
+<U5555> \xB0\xDE |0
+<U5556> \xB0\xDC |0
+<U5557> \xB0\xE8 |0
+<U555C> \xB0\xE3 |0
+<U555D> \xFA\xF7 |0
+<U555E> \xB0\xD7 |0
+<U555F> \xB1\xD2 |0
+<U5561> \xB0\xD8 |0
+<U5562> \xD4\x79 |0
+<U5563> \xB0\xE5 |0
+<U5564> \xB0\xE0 |0
+<U5565> \xD4\xA3 |0
+<U5566> \xB0\xD5 |0
+<U5569> \x9E\x4E |0
+<U556A> \xB0\xD4 |0
+<U556B> \x94\xDC |0
+<U5571> \x95\xDA |0
+<U5572> \x9D\xF8 |0
+<U5573> \x9F\x6A |0
+<U5575> \xD4\x71 |0
+<U5576> \xD4\x72 |0
+<U5577> \xD8\x6A |0
+<U5579> \x8A\xB7 |0
+<U557B> \xB3\xD7 |0
+<U557C> \xB3\xDA |0
+<U557D> \xD8\x75 |0
+<U557E> \xB3\xEE |0
+<U557F> \xD8\x78 |0
+<U5580> \xB3\xD8 |0
+<U5581> \xD8\x71 |0
+<U5582> \xB3\xDE |0
+<U5583> \xB3\xE4 |0
+<U5584> \xB5\xBD |0
+<U5586> \xFB\x46 |0
+<U5587> \xB3\xE2 |0
+<U5588> \xD8\x6E |0
+<U5589> \xB3\xEF |0
+<U558A> \xB3\xDB |0
+<U558B> \xB3\xE3 |0
+<U558C> \xD8\x76 |0
+<U558D> \xDC\xD7 |0
+<U558E> \xD8\x7B |0
+<U558F> \xD8\x6F |0
+<U5590> \x8A\x46 |0
+<U5591> \xD8\x66 |0
+<U5592> \xD8\x73 |0
+<U5593> \xD8\x6D |0
+<U5594> \xB3\xE1 |0
+<U5595> \xD8\x79 |0
+<U5598> \xB3\xDD |0
+<U5599> \xB3\xF1 |0
+<U559A> \xB3\xEA |0
+<U559C> \xB3\xDF |0
+<U559D> \xB3\xDC |0
+<U559F> \xB3\xE7 |0
+<U55A1> \xD8\x7A |0
+<U55A2> \xD8\x6C |0
+<U55A3> \xD8\x72 |0
+<U55A4> \xD8\x74 |0
+<U55A5> \xD8\x68 |0
+<U55A6> \xD8\x77 |0
+<U55A7> \xB3\xD9 |0
+<U55A8> \xD8\x67 |0
+<U55A9> \xFB\x47 |0
+<U55AA> \xB3\xE0 |0
+<U55AB> \xB3\xF0 |0
+<U55AC> \xB3\xEC |0
+<U55AD> \xD8\x69 |0
+<U55AE> \xB3\xE6 |0
+<U55B0> \x91\x48 |0
+<U55B1> \xB3\xED |0
+<U55B2> \xB3\xE9 |0
+<U55B3> \xB3\xE5 |0
+<U55B4> \x92\xDE |0
+<U55B5> \xD8\x70 |0
+<U55B9> \x8B\x53 |0
+<U55BA> \x9D\xF6 |0
+<U55BB> \xB3\xEB |0
+<U55BC> \x9B\xDA |0
+<U55BF> \xDC\xD5 |0
+<U55C0> \xDC\xD1 |0
+<U55C1> \x9D\x7E |0
+<U55C2> \xDC\xE0 |0
+<U55C3> \xDC\xCA |0
+<U55C4> \xDC\xD3 |0
+<U55C5> \xB6\xE5 |0
+<U55C6> \xB6\xE6 |0
+<U55C7> \xB6\xDE |0
+<U55C8> \xDC\xDC |0
+<U55C9> \xB6\xE8 |0
+<U55CA> \xDC\xCF |0
+<U55CB> \xDC\xCE |0
+<U55CC> \xDC\xCC |0
+<U55CD> \xDC\xDE |0
+<U55CE> \xB6\xDC |0
+<U55CF> \xDC\xD8 |0
+<U55D0> \xDC\xCD |0
+<U55D1> \xB6\xDF |0
+<U55D2> \xDC\xD6 |0
+<U55D3> \xB6\xDA |0
+<U55D4> \xDC\xD2 |0
+<U55D5> \xDC\xD9 |0
+<U55D6> \xDC\xDB |0
+<U55D7> \x89\xFD |0
+<U55D8> \x99\xE4 |0
+<U55D9> \xDC\xDF |0
+<U55DA> \xB6\xE3 |0
+<U55DB> \xDC\xCB |0
+<U55DC> \xB6\xDD |0
+<U55DD> \xDC\xD0 |0
+<U55DE> \x9E\x43 |0
+<U55DF> \xB6\xD8 |0
+<U55E1> \xB6\xE4 |0
+<U55E2> \xDC\xDA |0
+<U55E3> \xB6\xE0 |0
+<U55E4> \xB6\xE1 |0
+<U55E5> \xB6\xE7 |0
+<U55E6> \xB6\xDB |0
+<U55E7> \xA2\x5F |0
+<U55E8> \xB6\xD9 |0
+<U55E9> \xDC\xD4 |0
+<U55EA> \x9D\xE9 |0
+<U55EC> \x8F\x52 |0
+<U55EF> \xB6\xE2 |0
+<U55F0> \x9D\xF5 |0
+<U55F1> \x9D\xF0 |0
+<U55F2> \xDC\xDD |0
+<U55F5> \x99\xE7 |0
+<U55F6> \xB9\xCD |0
+<U55F7> \xB9\xC8 |0
+<U55F9> \xE1\x55 |0
+<U55FA> \xE1\x51 |0
+<U55FB> \x8B\xBD |0
+<U55FC> \xE1\x4B |0
+<U55FD> \xB9\xC2 |0
+<U55FE> \xB9\xBE |0
+<U55FF> \xE1\x54 |0
+<U5600> \xB9\xBF |0
+<U5601> \xE1\x4E |0
+<U5602> \xE1\x50 |0
+<U5604> \xE1\x53 |0
+<U5605> \x9D\xEF |0
+<U5606> \xB9\xC4 |0
+<U5608> \xB9\xCB |0
+<U5609> \xB9\xC5 |0
+<U560C> \xE1\x49 |0
+<U560D> \xB9\xC6 |0
+<U560E> \xB9\xC7 |0
+<U560F> \xE1\x4C |0
+<U5610> \xB9\xCC |0
+<U5611> \x9F\xB7 |0
+<U5612> \xE1\x4A |0
+<U5613> \xE1\x4F |0
+<U5614> \xB9\xC3 |0
+<U5615> \xE1\x48 |0
+<U5616> \xB9\xC9 |0
+<U5617> \xB9\xC1 |0
+<U561B> \xB9\xC0 |0
+<U561C> \xE1\x4D |0
+<U561D> \xE1\x52 |0
+<U561E> \x9D\xD0 |0
+<U561F> \xB9\xCA |0
+<U5620> \x9F\xEB |0
+<U5621> \x8D\xA9 |0
+<U5622> \x9D\xCF |0
+<U5623> \x98\xE1 |0
+<U5625> \x9D\xE5 |0
+<U5627> \xE1\x47 |0
+<U5629> \xBC\x4D |0
+<U562A> \xE5\x47 |0
+<U562C> \xE5\x44 |0
+<U562D> \x9D\xC8 |0
+<U562E> \xBC\x47 |0
+<U562F> \xBC\x53 |0
+<U5630> \xBC\x54 |0
+<U5632> \xBC\x4A |0
+<U5633> \xE5\x42 |0
+<U5634> \xBC\x4C |0
+<U5635> \xE4\xF9 |0
+<U5636> \xBC\x52 |0
+<U5637> \xFB\x4F |0
+<U5638> \xE5\x46 |0
+<U5639> \xBC\x49 |0
+<U563A> \xE5\x48 |0
+<U563B> \xBC\x48 |0
+<U563D> \xE5\x43 |0
+<U563E> \xE5\x45 |0
+<U563F> \xBC\x4B |0
+<U5640> \xE5\x41 |0
+<U5641> \xE4\xFA |0
+<U5642> \xE4\xF7 |0
+<U5643> \x9D\xEB |0
+<U5645> \xD8\x6B |0
+<U5646> \xE4\xFD |0
+<U5648> \xE4\xF6 |0
+<U5649> \xE4\xFC |0
+<U564A> \xE4\xFB |0
+<U564C> \xE4\xF8 |0
+<U564D> \xFB\x54 |0
+<U564E> \xBC\x4F |0
+<U564F> \xFB\x55 |0
+<U5650> \x9A\xA2 |0
+<U5652> \x8A\xD6 |0
+<U5653> \xBC\x4E |0
+<U5654> \x9A\x5F |0
+<U5657> \xBC\x50 |0
+<U5658> \xE4\xFE |0
+<U5659> \xBE\xB2 |0
+<U565A> \xE5\x40 |0
+<U565D> \x9E\xF5 |0
+<U565E> \xE9\x45 |0
+<U5660> \xE8\xFD |0
+<U5661> \x8F\xB7 |0
+<U5662> \xBE\xBE |0
+<U5663> \xE9\x42 |0
+<U5664> \xBE\xB6 |0
+<U5665> \xBE\xBA |0
+<U5666> \xE9\x41 |0
+<U5668> \xBE\xB9 |0
+<U5669> \xBE\xB5 |0
+<U566A> \xBE\xB8 |0
+<U566B> \xBE\xB3 |0
+<U566C> \xBE\xBD |0
+<U566D> \xE9\x43 |0
+<U566E> \xE8\xFE |0
+<U566F> \xBE\xBC |0
+<U5670> \xE8\xFC |0
+<U5671> \xBE\xBB |0
+<U5672> \xE9\x44 |0
+<U5673> \xE9\x40 |0
+<U5674> \xBC\x51 |0
+<U5676> \xBE\xBF |0
+<U5677> \xE9\x46 |0
+<U5678> \xBE\xB7 |0
+<U5679> \xBE\xB4 |0
+<U567A> \x9A\xD2 |0
+<U567B> \x9E\x6A |0
+<U567C> \x9E\xE8 |0
+<U567E> \xEC\xC6 |0
+<U567F> \xEC\xC8 |0
+<U5680> \xC0\x7B |0
+<U5681> \xEC\xC9 |0
+<U5682> \xEC\xC7 |0
+<U5683> \xEC\xC5 |0
+<U5684> \xEC\xC4 |0
+<U5685> \xC0\x7D |0
+<U5686> \xEC\xC3 |0
+<U5687> \xC0\x7E |0
+<U5689> \x8B\xBF |0
+<U568A> \x91\xC2 |0
+<U568B> \x9D\x62 |0
+<U568C> \xEC\xC1 |0
+<U568D> \xEC\xC2 |0
+<U568E> \xC0\x7A |0
+<U568F> \xC0\xA1 |0
+<U5690> \xC0\x7C |0
+<U5692> \x92\x60 |0
+<U5693> \xEC\xC0 |0
+<U5695> \xC2\x50 |0
+<U5697> \xEF\xBC |0
+<U5698> \xEF\xBA |0
+<U5699> \xEF\xBF |0
+<U569A> \xEF\xBD |0
+<U569C> \xEF\xBB |0
+<U569D> \xEF\xBE |0
+<U569E> \x92\x5E |0
+<U569F> \x91\xC1 |0
+<U56A1> \x8A\xC5 |0
+<U56A4> \x97\xA3 |0
+<U56A5> \xC3\x60 |0
+<U56A6> \xF1\xF2 |0
+<U56A7> \xF1\xF3 |0
+<U56A8> \xC4\x56 |0
+<U56AA> \xF1\xF4 |0
+<U56AB> \xF1\xF0 |0
+<U56AC> \xF1\xF5 |0
+<U56AD> \xF1\xF1 |0
+<U56AE> \xC2\x51 |0
+<U56AF> \x8B\x6C |0
+<U56B1> \x8D\x7E |0
+<U56B2> \xF3\xFE |0
+<U56B3> \xF4\x41 |0
+<U56B4> \xC4\x59 |0
+<U56B5> \xF4\x40 |0
+<U56B6> \xC4\x58 |0
+<U56B7> \xC4\x57 |0
+<U56B9> \x9C\x54 |0
+<U56BC> \xC4\x5A |0
+<U56BD> \xF5\xC5 |0
+<U56BE> \xF5\xC6 |0
+<U56BF> \x9D\xBD |0
+<U56C0> \xC4\xDA |0
+<U56C1> \xC4\xD9 |0
+<U56C2> \xC4\xDB |0
+<U56C3> \xF5\xC4 |0
+<U56C5> \xF6\xD8 |0
+<U56C6> \xF6\xD7 |0
+<U56C8> \xC5\x6D |0
+<U56C9> \xC5\x6F |0
+<U56CA> \xC5\x6E |0
+<U56CB> \xF6\xD9 |0
+<U56CC> \xC5\xC8 |0
+<U56CD> \xF8\xA6 |0
+<U56D1> \xC5\xF1 |0
+<U56D3> \xF8\xA5 |0
+<U56D4> \xF8\xEE |0
+<U56D6> \x9C\xC5 |0
+<U56D7> \xC9\x49 |0
+<U56DA> \xA5\x7D |0
+<U56DB> \xA5\x7C |0
+<U56DD> \xA6\x5F |0
+<U56DE> \xA6\x5E |0
+<U56DF> \xC9\xC7 |0
+<U56E0> \xA6\x5D |0
+<U56E1> \xC9\xC6 |0
+<U56E2> \x89\x5B |0
+<U56E4> \xA7\x79 |0
+<U56E5> \xCA\xA9 |0
+<U56E7> \xCA\xA8 |0
+<U56EA> \xA7\x77 |0
+<U56EB> \xA7\x7A |0
+<U56ED> \xFB\x5C |0
+<U56EE> \xCA\xA7 |0
+<U56EF> \xFB\x5B |0
+<U56F0> \xA7\x78 |0
+<U56F1> \xFB\x57 |0
+<U56F7> \xCB\xF0 |0
+<U56F9> \xCB\xF1 |0
+<U56FA> \xA9\x54 |0
+<U56FD> \x98\xC7 |0
+<U56FF> \xAB\xAA |0
+<U5700> \xFB\x5A |0
+<U5701> \xD1\x48 |0
+<U5702> \xD1\x49 |0
+<U5703> \xAE\x45 |0
+<U5704> \xAE\x46 |0
+<U5707> \xD4\xAC |0
+<U5708> \xB0\xE9 |0
+<U5709> \xB0\xEB |0
+<U570A> \xD4\xAB |0
+<U570B> \xB0\xEA |0
+<U570C> \xD8\x7C |0
+<U570D> \xB3\xF2 |0
+<U5712> \xB6\xE9 |0
+<U5713> \xB6\xEA |0
+<U5714> \xDC\xE1 |0
+<U5715> \x9C\xEE |0
+<U5716> \xB9\xCF |0
+<U5718> \xB9\xCE |0
+<U571A> \xE5\x49 |0
+<U571B> \xE9\x48 |0
+<U571C> \xE9\x47 |0
+<U571D> \x92\xE2 |0
+<U571E> \xF9\x6B |0
+<U571F> \xA4\x67 |0
+<U5720> \xC9\x59 |0
+<U5722> \xC9\x6E |0
+<U5723> \xC9\x6F |0
+<U5728> \xA6\x62 |0
+<U5729> \xA6\x66 |0
+<U572A> \xC9\xC9 |0
+<U572C> \xA6\x64 |0
+<U572D> \xA6\x63 |0
+<U572E> \xC9\xC8 |0
+<U572F> \xA6\x65 |0
+<U5730> \xA6\x61 |0
+<U5732> \x94\xA7 |0
+<U5733> \xA6\x60 |0
+<U5734> \xC9\xCA |0
+<U573B> \xA7\xA6 |0
+<U573D> \x8C\xCC |0
+<U573E> \xA7\xA3 |0
+<U573F> \x9B\xD4 |0
+<U5740> \xA7\x7D |0
+<U5741> \xCA\xAA |0
+<U5742> \xFB\x64 |0
+<U5743> \xFB\x76 |0
+<U5745> \xCA\xAB |0
+<U5746> \xFB\x60 |0
+<U5747> \xA7\xA1 |0
+<U5749> \xCA\xAD |0
+<U574A> \xA7\x7B |0
+<U574B> \xCA\xAE |0
+<U574C> \xCA\xAC |0
+<U574D> \xA7\x7E |0
+<U574E> \xA7\xA2 |0
+<U574F> \xA7\xA5 |0
+<U5750> \xA7\xA4 |0
+<U5751> \xA7\x7C |0
+<U5752> \xCA\xAF |0
+<U5754> \x99\xE5 |0
+<U5757> \x9A\xC2 |0
+<U575B> \x91\xFB |0
+<U575F> \xA0\x73 |0
+<U5761> \xA9\x59 |0
+<U5762> \xCB\xFE |0
+<U5764> \xA9\x5B |0
+<U5766> \xA9\x5A |0
+<U5767> \x9F\x72 |0
+<U5768> \xCC\x40 |0
+<U5769> \xA9\x58 |0
+<U576A> \xA9\x57 |0
+<U576B> \xCB\xF5 |0
+<U576D> \xCB\xF4 |0
+<U576F> \xCB\xF2 |0
+<U5770> \xCB\xF7 |0
+<U5771> \xCB\xF6 |0
+<U5772> \xCB\xF3 |0
+<U5773> \xCB\xFC |0
+<U5774> \xCB\xFD |0
+<U5775> \xCB\xFA |0
+<U5776> \xCB\xF8 |0
+<U5777> \xA9\x56 |0
+<U577A> \x9F\xCC |0
+<U577B> \xCB\xFB |0
+<U577C> \xA9\x5C |0
+<U577D> \xCC\x41 |0
+<U577E> \x98\xA5 |0
+<U577F> \x92\xE8 |0
+<U5780> \xCB\xF9 |0
+<U5782> \xAB\xAB |0
+<U5783> \xA9\x55 |0
+<U5788> \x9B\xBC |0
+<U578A> \x96\xF3 |0
+<U578B> \xAB\xAC |0
+<U578C> \xCE\x54 |0
+<U578D> \x92\xE7 |0
+<U578F> \xCE\x5A |0
+<U5790> \xFC\x67 |0
+<U5793> \xAB\xB2 |0
+<U5794> \xCE\x58 |0
+<U5795> \xCE\x5E |0
+<U5797> \xCE\x55 |0
+<U5798> \xCE\x59 |0
+<U5799> \xCE\x5B |0
+<U579A> \xCE\x5D |0
+<U579B> \xCE\x57 |0
+<U579C> \x8B\x7D |0
+<U579D> \xCE\x56 |0
+<U579E> \xCE\x51 |0
+<U579F> \xCE\x52 |0
+<U57A0> \xAB\xAD |0
+<U57A1> \x9B\xF4 |0
+<U57A2> \xAB\xAF |0
+<U57A3> \xAB\xAE |0
+<U57A4> \xCE\x53 |0
+<U57A5> \xCE\x5C |0
+<U57A7> \x9E\xF7 |0
+<U57AA> \x9E\xC1 |0
+<U57AE> \xAB\xB1 |0
+<U57B4> \x99\x6F |0
+<U57B5> \xCE\x50 |0
+<U57B6> \xD1\x53 |0
+<U57B8> \xD1\x52 |0
+<U57B9> \xD1\x57 |0
+<U57BA> \xD1\x4E |0
+<U57BB> \x96\xF1 |0
+<U57BC> \xD1\x51 |0
+<U57BD> \xD1\x50 |0
+<U57BE> \x8E\x41 |0
+<U57BF> \xD1\x54 |0
+<U57C1> \xD1\x58 |0
+<U57C2> \xAE\x47 |0
+<U57C3> \xAE\x4A |0
+<U57C4> \x95\x4A |0
+<U57C6> \xD1\x4F |0
+<U57C7> \xD1\x55 |0
+<U57C8> \x97\xE6 |0
+<U57CB> \xAE\x49 |0
+<U57CC> \xD1\x4A |0
+<U57CE> \xAB\xB0 |0
+<U57CF> \xD4\xBA |0
+<U57D0> \xD1\x56 |0
+<U57D2> \xD1\x4D |0
+<U57D4> \xAE\x48 |0
+<U57D5> \xD1\x4C |0
+<U57D7> \x96\xF5 |0
+<U57DC> \xD4\xB1 |0
+<U57DD> \x92\xE6 |0
+<U57DE> \x9F\x42 |0
+<U57DF> \xB0\xEC |0
+<U57E0> \xB0\xF0 |0
+<U57E1> \xD4\xC1 |0
+<U57E2> \xD4\xAF |0
+<U57E3> \xD4\xBD |0
+<U57E4> \xB0\xF1 |0
+<U57E5> \xD4\xBF |0
+<U57E6> \xFB\x67 |0
+<U57E7> \xD4\xC5 |0
+<U57E9> \xD4\xC9 |0
+<U57EC> \xD4\xC0 |0
+<U57ED> \xD4\xB4 |0
+<U57EE> \xD4\xBC |0
+<U57EF> \x99\xA9 |0
+<U57F0> \xD4\xCA |0
+<U57F1> \xD4\xC8 |0
+<U57F2> \xD4\xBE |0
+<U57F3> \xD4\xB9 |0
+<U57F4> \xD4\xB2 |0
+<U57F5> \xD8\xA6 |0
+<U57F6> \xD4\xB0 |0
+<U57F7> \xB0\xF5 |0
+<U57F8> \xD4\xB7 |0
+<U57F9> \xB0\xF6 |0
+<U57FA> \xB0\xF2 |0
+<U57FB> \xD4\xAD |0
+<U57FC> \xD4\xC3 |0
+<U57FD> \xD4\xB5 |0
+<U57FE> \xFA\xE6 |0
+<U5800> \xD4\xB3 |0
+<U5801> \xD4\xC6 |0
+<U5802> \xB0\xF3 |0
+<U5803> \xFB\x69 |0
+<U5804> \xD4\xCC |0
+<U5805> \xB0\xED |0
+<U5806> \xB0\xEF |0
+<U5807> \xD4\xBB |0
+<U5808> \xD4\xB6 |0
+<U5809> \xAE\x4B |0
+<U580A> \xB0\xEE |0
+<U580B> \xD4\xB8 |0
+<U580C> \xD4\xC7 |0
+<U580D> \xD4\xCB |0
+<U580E> \xD4\xC2 |0
+<U5810> \xD4\xC4 |0
+<U5812> \x97\xE5 |0
+<U5814> \xD4\xAE |0
+<U5819> \xD8\xA1 |0
+<U581B> \xD8\xAA |0
+<U581C> \xD8\xA9 |0
+<U581D> \xB3\xFA |0
+<U581E> \xD8\xA2 |0
+<U5820> \xB3\xFB |0
+<U5821> \xB3\xF9 |0
+<U5822> \x96\x7D |0
+<U5823> \xD8\xA4 |0
+<U5824> \xB3\xF6 |0
+<U5825> \xD8\xA8 |0
+<U5826> \xFB\x6C |0
+<U5827> \xD8\xA3 |0
+<U5828> \xD8\xA5 |0
+<U5829> \xD8\x7D |0
+<U582A> \xB3\xF4 |0
+<U582C> \xD8\xB2 |0
+<U582D> \xD8\xB1 |0
+<U582E> \xD8\xAE |0
+<U582F> \xB3\xF3 |0
+<U5830> \xB3\xF7 |0
+<U5831> \xB3\xF8 |0
+<U5832> \xD1\x4B |0
+<U5833> \xD8\xAB |0
+<U5834> \xB3\xF5 |0
+<U5835> \xB0\xF4 |0
+<U5836> \xD8\xAD |0
+<U5837> \xD8\x7E |0
+<U5838> \xD8\xB0 |0
+<U5839> \xD8\xAF |0
+<U583A> \x99\xA2 |0
+<U583B> \xD8\xB3 |0
+<U583D> \xDC\xEF |0
+<U583F> \xD8\xAC |0
+<U5840> \x9A\xBB |0
+<U5844> \x9A\x65 |0
+<U5847> \x94\x4E |0
+<U5848> \xD8\xA7 |0
+<U5849> \xDC\xE7 |0
+<U584A> \xB6\xF4 |0
+<U584B> \xB6\xF7 |0
+<U584C> \xB6\xF2 |0
+<U584D> \xDC\xE6 |0
+<U584E> \xDC\xEA |0
+<U584F> \xDC\xE5 |0
+<U5851> \xB6\xEC |0
+<U5852> \xB6\xF6 |0
+<U5853> \xDC\xE2 |0
+<U5854> \xB6\xF0 |0
+<U5855> \xDC\xE9 |0
+<U5857> \xB6\xEE |0
+<U5858> \xB6\xED |0
+<U5859> \xDC\xEC |0
+<U585A> \xB6\xEF |0
+<U585B> \xDC\xEE |0
+<U585C> \xFB\x6E |0
+<U585D> \xDC\xEB |0
+<U585E> \xB6\xEB |0
+<U585F> \x99\xDF |0
+<U5862> \xB6\xF5 |0
+<U5863> \xDC\xF0 |0
+<U5864> \xDC\xE4 |0
+<U5865> \xDC\xED |0
+<U5868> \xDC\xE3 |0
+<U5869> \x98\xE3 |0
+<U586B> \xB6\xF1 |0
+<U586C> \x92\x54 |0
+<U586D> \xB6\xF3 |0
+<U586F> \xDC\xE8 |0
+<U5871> \xDC\xF1 |0
+<U5872> \x96\x7B |0
+<U5873> \x8A\xAF |0
+<U5874> \xE1\x5D |0
+<U5875> \xB9\xD0 |0
+<U5876> \xE1\x63 |0
+<U5879> \xB9\xD5 |0
+<U587A> \xE1\x5F |0
+<U587B> \xE1\x66 |0
+<U587C> \xE1\x57 |0
+<U587D> \xB9\xD7 |0
+<U587E> \xB9\xD1 |0
+<U587F> \xE1\x5C |0
+<U5880> \xBC\x55 |0
+<U5881> \xE1\x5B |0
+<U5882> \xE1\x64 |0
+<U5883> \xB9\xD2 |0
+<U5885> \xB9\xD6 |0
+<U5886> \xE1\x5A |0
+<U5887> \xE1\x60 |0
+<U5888> \xE1\x65 |0
+<U5889> \xE1\x56 |0
+<U588A> \xB9\xD4 |0
+<U588B> \xE1\x5E |0
+<U588E> \xE1\x62 |0
+<U588F> \xE1\x68 |0
+<U5890> \xE1\x58 |0
+<U5891> \xE1\x61 |0
+<U5892> \x8C\x77 |0
+<U5893> \xB9\xD3 |0
+<U5894> \xE1\x67 |0
+<U5898> \xE1\x59 |0
+<U5899> \x8B\xAF |0
+<U589A> \x9E\xBD |0
+<U589C> \xBC\x59 |0
+<U589D> \xE5\x4B |0
+<U589E> \xBC\x57 |0
+<U589F> \xBC\x56 |0
+<U58A0> \xE5\x4D |0
+<U58A1> \xE5\x52 |0
+<U58A3> \xE5\x4E |0
+<U58A5> \xE5\x51 |0
+<U58A6> \xBC\x5C |0
+<U58A7> \x9E\xE6 |0
+<U58A8> \xBE\xA5 |0
+<U58A9> \xBC\x5B |0
+<U58AA> \xFB\x6F |0
+<U58AB> \xE5\x4A |0
+<U58AC> \xE5\x50 |0
+<U58AE> \xBC\x5A |0
+<U58AF> \xE5\x4F |0
+<U58B0> \x8E\xE1 |0
+<U58B1> \xE5\x4C |0
+<U58B3> \xBC\x58 |0
+<U58B5> \x9B\x7D |0
+<U58B6> \x9C\x7E |0
+<U58BA> \xE9\x4D |0
+<U58BB> \xF9\xD9 |0
+<U58BC> \xE9\x4F |0
+<U58BD> \xE9\x4A |0
+<U58BE> \xBE\xC1 |0
+<U58BF> \xE9\x4C |0
+<U58C1> \xBE\xC0 |0
+<U58C2> \xE9\x4E |0
+<U58C5> \xBE\xC3 |0
+<U58C6> \xE9\x50 |0
+<U58C7> \xBE\xC2 |0
+<U58C8> \xE9\x49 |0
+<U58C9> \xE9\x4B |0
+<U58CB> \x92\xEA |0
+<U58CE> \xC0\xA5 |0
+<U58CF> \xEC\xCC |0
+<U58D0> \x8C\x78 |0
+<U58D1> \xC0\xA4 |0
+<U58D2> \xEC\xCD |0
+<U58D3> \xC0\xA3 |0
+<U58D4> \xEC\xCB |0
+<U58D5> \xC0\xA2 |0
+<U58D6> \xEC\xCA |0
+<U58D8> \xC2\x53 |0
+<U58D9> \xC2\x52 |0
+<U58DA> \xF1\xF6 |0
+<U58DB> \xF1\xF8 |0
+<U58DC> \xFB\x72 |0
+<U58DD> \xF1\xF7 |0
+<U58DE> \xC3\x61 |0
+<U58DF> \xC3\x62 |0
+<U58E0> \xFB\x71 |0
+<U58E2> \xC3\x63 |0
+<U58E3> \xF4\x42 |0
+<U58E4> \xC4\x5B |0
+<U58E7> \xF7\xD3 |0
+<U58E8> \xF7\xD2 |0
+<U58E9> \xC5\xF2 |0
+<U58EB> \xA4\x68 |0
+<U58EC> \xA4\xD0 |0
+<U58EF> \xA7\xA7 |0
+<U58F0> \x89\x5C |0
+<U58F2> \x98\xF0 |0
+<U58F3> \x96\xF2 |0
+<U58F4> \xCE\x5F |0
+<U58F9> \xB3\xFC |0
+<U58FA> \xB3\xFD |0
+<U58FB> \xFB\x74 |0
+<U58FC> \xDC\xF2 |0
+<U58FD> \xB9\xD8 |0
+<U58FE> \xE1\x69 |0
+<U58FF> \xE5\x53 |0
+<U5902> \x8B\xC1 |0
+<U5903> \xC9\x5A |0
+<U5904> \x89\x5D |0
+<U5905> \x89\xDE |0
+<U5906> \xCA\xB0 |0
+<U5907> \x89\x5E |0
+<U590A> \xC6\xCA |0
+<U590C> \xCC\x42 |0
+<U590D> \xCE\x60 |0
+<U590E> \xD1\x59 |0
+<U590F> \xAE\x4C |0
+<U5911> \xFE\x42 |0
+<U5912> \xF1\xF9 |0
+<U5914> \xC4\xDC |0
+<U5915> \xA4\x69 |0
+<U5916> \xA5\x7E |0
+<U5917> \xC9\x70 |0
+<U5919> \xA6\x67 |0
+<U591A> \xA6\x68 |0
+<U591C> \xA9\x5D |0
+<U591F> \xFB\x7B |0
+<U5920> \xB0\xF7 |0
+<U5922> \xB9\xDA |0
+<U5924> \xB9\xDB |0
+<U5925> \xB9\xD9 |0
+<U5927> \xA4\x6A |0
+<U5929> \xA4\xD1 |0
+<U592A> \xA4\xD3 |0
+<U592B> \xA4\xD2 |0
+<U592C> \xC9\x5B |0
+<U592D> \xA4\xD4 |0
+<U592E> \xA5\xA1 |0
+<U592F> \xC9\x71 |0
+<U5931> \xA5\xA2 |0
+<U5932> \x89\x5F |0
+<U5934> \x89\x60 |0
+<U5937> \xA6\x69 |0
+<U5938> \xA6\x6A |0
+<U593C> \xC9\xCB |0
+<U593E> \xA7\xA8 |0
+<U5940> \xCA\xB1 |0
+<U5944> \xA9\x61 |0
+<U5945> \xCC\x43 |0
+<U5947> \xA9\x5F |0
+<U5948> \xA9\x60 |0
+<U5949> \xA9\x5E |0
+<U594A> \xD1\x5A |0
+<U594E> \xAB\xB6 |0
+<U594F> \xAB\xB5 |0
+<U5950> \xAB\xB7 |0
+<U5951> \xAB\xB4 |0
+<U5953> \xCE\x61 |0
+<U5954> \xA9\x62 |0
+<U5955> \xAB\xB3 |0
+<U5957> \xAE\x4D |0
+<U5958> \xAE\x4E |0
+<U595A> \xAE\x4F |0
+<U595C> \xD4\xCD |0
+<U5960> \xB3\xFE |0
+<U5961> \xD8\xB4 |0
+<U5962> \xB0\xF8 |0
+<U5965> \x9B\xCD |0
+<U5967> \xB6\xF8 |0
+<U5969> \xB9\xDD |0
+<U596A> \xB9\xDC |0
+<U596B> \xE1\x6A |0
+<U596D> \xBC\x5D |0
+<U596E> \xBE\xC4 |0
+<U5970> \xEF\xC0 |0
+<U5971> \xF6\xDA |0
+<U5972> \xF7\xD4 |0
+<U5973> \xA4\x6B |0
+<U5974> \xA5\xA3 |0
+<U5975> \x9D\xD3 |0
+<U5976> \xA5\xA4 |0
+<U5977> \xC9\xD1 |0
+<U5978> \xA6\x6C |0
+<U5979> \xA6\x6F |0
+<U597B> \xC9\xCF |0
+<U597C> \xC9\xCD |0
+<U597D> \xA6\x6E |0
+<U597E> \xC9\xD0 |0
+<U597F> \xC9\xD2 |0
+<U5980> \xC9\xCC |0
+<U5981> \xA6\x71 |0
+<U5982> \xA6\x70 |0
+<U5983> \xA6\x6D |0
+<U5984> \xA6\x6B |0
+<U5985> \xC9\xCE |0
+<U5989> \x98\x4C |0
+<U598A> \xA7\xB3 |0
+<U598D> \xA7\xB0 |0
+<U598E> \xCA\xB6 |0
+<U598F> \xCA\xB9 |0
+<U5990> \xCA\xB8 |0
+<U5992> \xA7\xAA |0
+<U5993> \xA7\xB2 |0
+<U5994> \x97\x52 |0
+<U5996> \xA7\xAF |0
+<U5997> \xCA\xB5 |0
+<U5998> \xCA\xB3 |0
+<U5999> \xA7\xAE |0
+<U599A> \x95\xC3 |0
+<U599D> \xA7\xA9 |0
+<U599E> \xA7\xAC |0
+<U599F> \x9B\xB6 |0
+<U59A0> \xCA\xB4 |0
+<U59A1> \xCA\xBB |0
+<U59A2> \xCA\xB7 |0
+<U59A3> \xA7\xAD |0
+<U59A4> \xA7\xB1 |0
+<U59A5> \xA7\xB4 |0
+<U59A6> \xCA\xB2 |0
+<U59A7> \xCA\xBA |0
+<U59A8> \xA7\xAB |0
+<U59AC> \x9A\xB9 |0
+<U59AE> \xA9\x67 |0
+<U59AF> \xA9\x6F |0
+<U59B0> \x97\xB3 |0
+<U59B1> \xCC\x4F |0
+<U59B2> \xCC\x48 |0
+<U59B3> \xA9\x70 |0
+<U59B4> \xCC\x53 |0
+<U59B5> \xCC\x44 |0
+<U59B6> \xCC\x4B |0
+<U59B7> \x9F\x74 |0
+<U59B8> \x92\xF1 |0
+<U59B9> \xA9\x66 |0
+<U59BA> \xCC\x45 |0
+<U59BB> \xA9\x64 |0
+<U59BC> \xCC\x4C |0
+<U59BD> \xCC\x50 |0
+<U59BE> \xA9\x63 |0
+<U59C0> \xCC\x51 |0
+<U59C1> \xCC\x4A |0
+<U59C3> \xCC\x4D |0
+<U59C4> \x97\xDF |0
+<U59C5> \xA9\x72 |0
+<U59C6> \xA9\x69 |0
+<U59C7> \xCC\x54 |0
+<U59C8> \xCC\x52 |0
+<U59C9> \xFB\xA6 |0
+<U59CA> \xA9\x6E |0
+<U59CB> \xA9\x6C |0
+<U59CC> \xCC\x49 |0
+<U59CD> \xA9\x6B |0
+<U59CE> \xCC\x47 |0
+<U59CF> \xCC\x46 |0
+<U59D0> \xA9\x6A |0
+<U59D1> \xA9\x68 |0
+<U59D2> \xA9\x71 |0
+<U59D3> \xA9\x6D |0
+<U59D4> \xA9\x65 |0
+<U59D6> \xCC\x4E |0
+<U59D8> \xAB\xB9 |0
+<U59D9> \xFB\xAB |0
+<U59DA> \xAB\xC0 |0
+<U59DB> \xCE\x6F |0
+<U59DC> \xAB\xB8 |0
+<U59DD> \xCE\x67 |0
+<U59DE> \xCE\x63 |0
+<U59E0> \xCE\x73 |0
+<U59E1> \xCE\x62 |0
+<U59E3> \xAB\xBB |0
+<U59E4> \xCE\x6C |0
+<U59E5> \xAB\xBE |0
+<U59E6> \xAB\xC1 |0
+<U59E8> \xAB\xBC |0
+<U59E9> \xCE\x70 |0
+<U59EA> \xAB\xBF |0
+<U59EB> \x98\x77 |0
+<U59EC> \xAE\x56 |0
+<U59ED> \xCE\x76 |0
+<U59EE> \xCE\x64 |0
+<U59EF> \x98\x54 |0
+<U59F0> \x95\xC5 |0
+<U59F1> \xCE\x66 |0
+<U59F2> \xCE\x6D |0
+<U59F3> \xCE\x71 |0
+<U59F4> \xCE\x75 |0
+<U59F5> \xCE\x72 |0
+<U59F6> \xCE\x6B |0
+<U59F7> \xCE\x6E |0
+<U59F8> \x9D\x55 |0
+<U59F9> \xFB\xB2 |0
+<U59FA> \xCE\x68 |0
+<U59FB> \xAB\xC3 |0
+<U59FC> \xCE\x6A |0
+<U59FD> \xCE\x69 |0
+<U59FE> \xCE\x74 |0
+<U59FF> \xAB\xBA |0
+<U5A00> \xCE\x65 |0
+<U5A01> \xAB\xC2 |0
+<U5A02> \x95\x7E |0
+<U5A03> \xAB\xBD |0
+<U5A09> \xAE\x5C |0
+<U5A0A> \xD1\x62 |0
+<U5A0B> \x97\x42 |0
+<U5A0C> \xAE\x5B |0
+<U5A0D> \x94\xE6 |0
+<U5A0F> \xD1\x60 |0
+<U5A11> \xAE\x50 |0
+<U5A12> \x92\xF5 |0
+<U5A13> \xAE\x55 |0
+<U5A15> \xD1\x5F |0
+<U5A16> \xD1\x5C |0
+<U5A17> \xD1\x61 |0
+<U5A18> \xAE\x51 |0
+<U5A19> \xD1\x5B |0
+<U5A1A> \x8C\xC5 |0
+<U5A1B> \xAE\x54 |0
+<U5A1C> \xAE\x52 |0
+<U5A1E> \xD1\x63 |0
+<U5A1F> \xAE\x53 |0
+<U5A20> \xAE\x57 |0
+<U5A21> \x92\xFD |0
+<U5A23> \xAE\x58 |0
+<U5A24> \xFB\xA2 |0
+<U5A25> \xAE\x5A |0
+<U5A27> \x9C\x51 |0
+<U5A29> \xAE\x59 |0
+<U5A2A> \x94\xE9 |0
+<U5A2B> \x98\x5C |0
+<U5A2C> \x92\xF0 |0
+<U5A2D> \xD1\x5D |0
+<U5A2E> \xD1\x5E |0
+<U5A33> \xD1\x64 |0
+<U5A35> \xD4\xD4 |0
+<U5A36> \xB0\xF9 |0
+<U5A37> \xD8\xC2 |0
+<U5A38> \xD4\xD3 |0
+<U5A39> \xD4\xE6 |0
+<U5A3C> \xB1\x40 |0
+<U5A3D> \x94\x4C |0
+<U5A3E> \xD4\xE4 |0
+<U5A40> \xB0\xFE |0
+<U5A41> \xB0\xFA |0
+<U5A42> \xD4\xED |0
+<U5A43> \xD4\xDD |0
+<U5A44> \xD4\xE0 |0
+<U5A45> \x91\x6B |0
+<U5A46> \xB1\x43 |0
+<U5A47> \xD4\xEA |0
+<U5A48> \xD4\xE2 |0
+<U5A49> \xB0\xFB |0
+<U5A4A> \xB1\x44 |0
+<U5A4C> \xD4\xE7 |0
+<U5A4D> \xD4\xE5 |0
+<U5A50> \xD4\xD6 |0
+<U5A51> \xD4\xEB |0
+<U5A52> \xD4\xDF |0
+<U5A53> \xD4\xDA |0
+<U5A54> \x8B\x78 |0
+<U5A55> \xD4\xD0 |0
+<U5A56> \xD4\xEC |0
+<U5A57> \xD4\xDC |0
+<U5A58> \xD4\xCF |0
+<U5A59> \x94\xE2 |0
+<U5A5A> \xB1\x42 |0
+<U5A5B> \xD4\xE1 |0
+<U5A5C> \xD4\xEE |0
+<U5A5D> \xD4\xDE |0
+<U5A5E> \xD4\xD2 |0
+<U5A5F> \xD4\xD7 |0
+<U5A60> \xD4\xCE |0
+<U5A61> \x98\x4F |0
+<U5A62> \xB1\x41 |0
+<U5A63> \xFB\xB5 |0
+<U5A64> \xD4\xDB |0
+<U5A65> \xD4\xD8 |0
+<U5A66> \xB0\xFC |0
+<U5A67> \xD4\xD1 |0
+<U5A68> \x92\x71 |0
+<U5A69> \xD4\xE9 |0
+<U5A6A> \xB0\xFD |0
+<U5A6B> \x93\x65 |0
+<U5A6C> \xD4\xD9 |0
+<U5A6D> \xD4\xD5 |0
+<U5A6E> \x98\x5B |0
+<U5A70> \xD4\xE8 |0
+<U5A71> \x98\x50 |0
+<U5A77> \xB4\x40 |0
+<U5A78> \xD8\xBB |0
+<U5A79> \x97\xBC |0
+<U5A7A> \xD8\xB8 |0
+<U5A7B> \xD8\xC9 |0
+<U5A7C> \xD8\xBD |0
+<U5A7D> \xD8\xCA |0
+<U5A7E> \x92\xF3 |0
+<U5A7F> \xB4\x42 |0
+<U5A81> \x93\x40 |0
+<U5A82> \x98\x4D |0
+<U5A83> \xD8\xC6 |0
+<U5A84> \xD8\xC3 |0
+<U5A86> \x95\x72 |0
+<U5A88> \xFD\xEF |0
+<U5A8A> \xD8\xC4 |0
+<U5A8B> \xD8\xC7 |0
+<U5A8C> \xD8\xCB |0
+<U5A8E> \xD4\xE3 |0
+<U5A8F> \xD8\xCD |0
+<U5A90> \xDD\x47 |0
+<U5A91> \xFD\xC1 |0
+<U5A92> \xB4\x43 |0
+<U5A93> \xD8\xCE |0
+<U5A94> \xD8\xB6 |0
+<U5A95> \xD8\xC0 |0
+<U5A96> \xFB\xBA |0
+<U5A97> \xD8\xC5 |0
+<U5A99> \x92\xEB |0
+<U5A9A> \xB4\x41 |0
+<U5A9B> \xB4\x44 |0
+<U5A9C> \xD8\xCC |0
+<U5A9D> \xD8\xCF |0
+<U5A9E> \xD8\xBA |0
+<U5A9F> \xD8\xB7 |0
+<U5AA0> \xFC\x73 |0
+<U5AA1> \x97\xB7 |0
+<U5AA2> \xD8\xB9 |0
+<U5AA5> \xD8\xBE |0
+<U5AA6> \xD8\xBC |0
+<U5AA7> \xB4\x45 |0
+<U5AA9> \xD8\xC8 |0
+<U5AAB> \xFB\xB4 |0
+<U5AAC> \xD8\xBF |0
+<U5AAE> \xD8\xC1 |0
+<U5AAF> \xD8\xB5 |0
+<U5AB0> \xDC\xFA |0
+<U5AB1> \xDC\xF8 |0
+<U5AB2> \xB7\x42 |0
+<U5AB3> \xB7\x40 |0
+<U5AB4> \xDD\x43 |0
+<U5AB5> \xDC\xF9 |0
+<U5AB6> \xDD\x44 |0
+<U5AB7> \xDD\x40 |0
+<U5AB8> \xDC\xF7 |0
+<U5AB9> \xDD\x46 |0
+<U5ABA> \xDC\xF6 |0
+<U5ABB> \xDC\xFD |0
+<U5ABC> \xB6\xFE |0
+<U5ABD> \xB6\xFD |0
+<U5ABE> \xB6\xFC |0
+<U5ABF> \xDC\xFB |0
+<U5AC0> \xDD\x41 |0
+<U5AC1> \xB6\xF9 |0
+<U5AC2> \xB7\x41 |0
+<U5AC3> \x90\xA7 |0
+<U5AC4> \xDC\xF4 |0
+<U5AC6> \xDC\xFE |0
+<U5AC7> \xDC\xF3 |0
+<U5AC8> \xDC\xFC |0
+<U5AC9> \xB6\xFA |0
+<U5ACA> \xDD\x42 |0
+<U5ACB> \xDC\xF5 |0
+<U5ACC> \xB6\xFB |0
+<U5ACD> \xDD\x45 |0
+<U5ACE> \x97\x41 |0
+<U5ACF> \x92\xF4 |0
+<U5AD3> \xFB\xBC |0
+<U5AD5> \xE1\x6E |0
+<U5AD6> \xB9\xE2 |0
+<U5AD7> \xB9\xE1 |0
+<U5AD8> \xB9\xE3 |0
+<U5AD9> \xE1\x7A |0
+<U5ADA> \xE1\x70 |0
+<U5ADB> \xE1\x76 |0
+<U5ADC> \xE1\x6B |0
+<U5ADD> \xE1\x79 |0
+<U5ADE> \xE1\x78 |0
+<U5ADF> \xE1\x7C |0
+<U5AE0> \xE1\x75 |0
+<U5AE1> \xB9\xDE |0
+<U5AE2> \xE1\x74 |0
+<U5AE3> \xB9\xE4 |0
+<U5AE4> \x95\x77 |0
+<U5AE5> \xE1\x6D |0
+<U5AE6> \xB9\xDF |0
+<U5AE8> \xE1\x7B |0
+<U5AE9> \xB9\xE0 |0
+<U5AEA> \xE1\x6F |0
+<U5AEB> \xE1\x72 |0
+<U5AEC> \xE1\x77 |0
+<U5AED> \xE1\x71 |0
+<U5AEE> \xE1\x6C |0
+<U5AF0> \x9E\xE2 |0
+<U5AF2> \x8F\x78 |0
+<U5AF3> \xE1\x73 |0
+<U5AF4> \xE5\x55 |0
+<U5AF5> \xBC\x61 |0
+<U5AF6> \xE5\x58 |0
+<U5AF7> \xE5\x57 |0
+<U5AF8> \xE5\x5A |0
+<U5AF9> \xE5\x5C |0
+<U5AFA> \xF9\xDC |0
+<U5AFB> \xBC\x5F |0
+<U5AFD> \xE5\x56 |0
+<U5AFE> \x96\x72 |0
+<U5AFF> \xE5\x54 |0
+<U5B01> \xE5\x5D |0
+<U5B02> \xE5\x5B |0
+<U5B03> \xE5\x59 |0
+<U5B05> \xE5\x5F |0
+<U5B07> \xE5\x5E |0
+<U5B08> \xBC\x63 |0
+<U5B09> \xBC\x5E |0
+<U5B0B> \xBC\x60 |0
+<U5B0C> \xBC\x62 |0
+<U5B0D> \x9E\xB5 |0
+<U5B0F> \xE5\x60 |0
+<U5B10> \xE9\x57 |0
+<U5B11> \x96\x4B |0
+<U5B13> \xE9\x56 |0
+<U5B14> \xE9\x55 |0
+<U5B15> \x8C\xAC |0
+<U5B16> \xE9\x58 |0
+<U5B17> \xE9\x51 |0
+<U5B19> \xE9\x52 |0
+<U5B1A> \xE9\x5A |0
+<U5B1B> \xE9\x53 |0
+<U5B1D> \xBE\xC5 |0
+<U5B1E> \xE9\x5C |0
+<U5B1F> \xA0\xFA |0
+<U5B20> \xE9\x5B |0
+<U5B21> \xE9\x54 |0
+<U5B23> \xEC\xD1 |0
+<U5B24> \xC0\xA8 |0
+<U5B25> \xEC\xCF |0
+<U5B26> \xEC\xD4 |0
+<U5B27> \xEC\xD3 |0
+<U5B28> \xE9\x59 |0
+<U5B2A> \xC0\xA7 |0
+<U5B2B> \x95\x75 |0
+<U5B2C> \xEC\xD2 |0
+<U5B2D> \xEC\xCE |0
+<U5B2E> \xEC\xD6 |0
+<U5B2F> \xEC\xD5 |0
+<U5B30> \xC0\xA6 |0
+<U5B32> \xEC\xD0 |0
+<U5B34> \xBE\xC6 |0
+<U5B38> \xC2\x54 |0
+<U5B3C> \xEF\xC1 |0
+<U5B3D> \xF1\xFA |0
+<U5B3E> \xF1\xFB |0
+<U5B3F> \xF1\xFC |0
+<U5B40> \xC4\x5C |0
+<U5B41> \x90\xDA |0
+<U5B43> \xC4\x5D |0
+<U5B44> \x93\x67 |0
+<U5B45> \xF4\x43 |0
+<U5B46> \xFE\xA4 |0
+<U5B47> \xF5\xC8 |0
+<U5B48> \xF5\xC7 |0
+<U5B4A> \x90\xDF |0
+<U5B4B> \xF6\xDB |0
+<U5B4C> \xF6\xDC |0
+<U5B4D> \xF7\xD5 |0
+<U5B4E> \xF8\xA7 |0
+<U5B4F> \x93\x54 |0
+<U5B50> \xA4\x6C |0
+<U5B51> \xA4\x6D |0
+<U5B53> \xA4\x6E |0
+<U5B54> \xA4\xD5 |0
+<U5B55> \xA5\xA5 |0
+<U5B56> \xC9\xD3 |0
+<U5B57> \xA6\x72 |0
+<U5B58> \xA6\x73 |0
+<U5B5A> \xA7\xB7 |0
+<U5B5B> \xA7\xB8 |0
+<U5B5C> \xA7\xB6 |0
+<U5B5D> \xA7\xB5 |0
+<U5B5F> \xA9\x73 |0
+<U5B62> \xCC\x55 |0
+<U5B63> \xA9\x75 |0
+<U5B64> \xA9\x74 |0
+<U5B65> \xCC\x56 |0
+<U5B66> \x89\x61 |0
+<U5B68> \x8B\xB4 |0
+<U5B69> \xAB\xC4 |0
+<U5B6B> \xAE\x5D |0
+<U5B6C> \xD1\x65 |0
+<U5B6D> \x9D\xC0 |0
+<U5B6E> \xD4\xF0 |0
+<U5B70> \xB1\x45 |0
+<U5B71> \xB4\x47 |0
+<U5B72> \xD4\xEF |0
+<U5B73> \xB4\x46 |0
+<U5B74> \x8E\x48 |0
+<U5B75> \xB9\xE5 |0
+<U5B76> \xFB\xC5 |0
+<U5B77> \xE1\x7D |0
+<U5B78> \xBE\xC7 |0
+<U5B7A> \xC0\xA9 |0
+<U5B7B> \xEC\xD7 |0
+<U5B7C> \xFB\xC7 |0
+<U5B7D> \xC4\x5E |0
+<U5B7F> \xC5\x70 |0
+<U5B80> \xC6\xCB |0
+<U5B81> \xC9\x72 |0
+<U5B82> \xFA\x79 |0
+<U5B83> \xA5\xA6 |0
+<U5B84> \xC9\x73 |0
+<U5B85> \xA6\x76 |0
+<U5B87> \xA6\x74 |0
+<U5B88> \xA6\x75 |0
+<U5B89> \xA6\x77 |0
+<U5B8B> \xA7\xBA |0
+<U5B8C> \xA7\xB9 |0
+<U5B8E> \xCA\xBC |0
+<U5B8F> \xA7\xBB |0
+<U5B90> \x9E\x67 |0
+<U5B92> \xCA\xBD |0
+<U5B93> \xCC\x57 |0
+<U5B95> \xCC\x58 |0
+<U5B96> \x8C\xD9 |0
+<U5B97> \xA9\x76 |0
+<U5B98> \xA9\x78 |0
+<U5B99> \xA9\x7A |0
+<U5B9A> \xA9\x77 |0
+<U5B9B> \xA9\x7B |0
+<U5B9C> \xA9\x79 |0
+<U5B9D> \xFB\xD2 |0
+<U5B9E> \x89\x62 |0
+<U5B9F> \x89\x63 |0
+<U5BA2> \xAB\xC8 |0
+<U5BA3> \xAB\xC5 |0
+<U5BA4> \xAB\xC7 |0
+<U5BA5> \xAB\xC9 |0
+<U5BA6> \xAB\xC6 |0
+<U5BA7> \xD1\x66 |0
+<U5BA8> \xCE\x77 |0
+<U5BAA> \xFC\x7D |0
+<U5BAC> \xD1\x68 |0
+<U5BAD> \xD1\x67 |0
+<U5BAE> \xAE\x63 |0
+<U5BB0> \xAE\x5F |0
+<U5BB3> \xAE\x60 |0
+<U5BB4> \xAE\x62 |0
+<U5BB5> \xAE\x64 |0
+<U5BB6> \xAE\x61 |0
+<U5BB8> \xAE\x66 |0
+<U5BB9> \xAE\x65 |0
+<U5BBF> \xB1\x4A |0
+<U5BC0> \xD4\xF2 |0
+<U5BC1> \xD4\xF1 |0
+<U5BC2> \xB1\x49 |0
+<U5BC3> \x9F\x6B |0
+<U5BC4> \xB1\x48 |0
+<U5BC5> \xB1\x47 |0
+<U5BC6> \xB1\x4B |0
+<U5BC7> \xB1\x46 |0
+<U5BCA> \xD8\xD5 |0
+<U5BCB> \xD8\xD2 |0
+<U5BCC> \xB4\x49 |0
+<U5BCD> \xD8\xD1 |0
+<U5BCE> \xD8\xD6 |0
+<U5BD0> \xB4\x4B |0
+<U5BD1> \xD8\xD4 |0
+<U5BD2> \xB4\x48 |0
+<U5BD3> \xB4\x4A |0
+<U5BD4> \xD8\xD3 |0
+<U5BD5> \xFB\xCC |0
+<U5BD6> \xDD\x48 |0
+<U5BD7> \xFE\xAE |0
+<U5BD8> \xDD\x49 |0
+<U5BD9> \xDD\x4A |0
+<U5BDE> \xB9\xE6 |0
+<U5BDF> \xB9\xEE |0
+<U5BE0> \xE1\x7E |0
+<U5BE1> \xB9\xE8 |0
+<U5BE2> \xB9\xEC |0
+<U5BE3> \xE1\xA1 |0
+<U5BE4> \xB9\xED |0
+<U5BE5> \xB9\xE9 |0
+<U5BE6> \xB9\xEA |0
+<U5BE7> \xB9\xE7 |0
+<U5BE8> \xB9\xEB |0
+<U5BE9> \xBC\x66 |0
+<U5BEA> \xD8\xD0 |0
+<U5BEB> \xBC\x67 |0
+<U5BEC> \xBC\x65 |0
+<U5BEE> \xBC\x64 |0
+<U5BEF> \xE9\x5D |0
+<U5BF0> \xBE\xC8 |0
+<U5BF1> \xEC\xD8 |0
+<U5BF2> \xEC\xD9 |0
+<U5BF3> \xFB\xD1 |0
+<U5BF5> \xC3\x64 |0
+<U5BF6> \xC4\x5F |0
+<U5BF8> \xA4\x6F |0
+<U5BFA> \xA6\x78 |0
+<U5BFF> \xFB\x75 |0
+<U5C01> \xAB\xCA |0
+<U5C03> \xD1\x69 |0
+<U5C04> \xAE\x67 |0
+<U5C05> \xFB\xD4 |0
+<U5C07> \xB1\x4E |0
+<U5C08> \xB1\x4D |0
+<U5C09> \xB1\x4C |0
+<U5C0A> \xB4\x4C |0
+<U5C0B> \xB4\x4D |0
+<U5C0C> \xD8\xD7 |0
+<U5C0D> \xB9\xEF |0
+<U5C0E> \xBE\xC9 |0
+<U5C0F> \xA4\x70 |0
+<U5C10> \xC9\x5C |0
+<U5C11> \xA4\xD6 |0
+<U5C12> \xC9\x74 |0
+<U5C13> \xFB\xD6 |0
+<U5C14> \xFB\xD8 |0
+<U5C15> \xC9\xD4 |0
+<U5C16> \xA6\x79 |0
+<U5C1A> \xA9\x7C |0
+<U5C1C> \x8B\x5D |0
+<U5C1E> \x93\x4C |0
+<U5C1F> \xDD\x4B |0
+<U5C20> \x9A\xE2 |0
+<U5C22> \xA4\x71 |0
+<U5C23> \x8B\xC9 |0
+<U5C24> \xA4\xD7 |0
+<U5C25> \xC9\xD5 |0
+<U5C28> \xCA\xBE |0
+<U5C2A> \xCA\xBF |0
+<U5C2C> \xA7\xBC |0
+<U5C30> \xD8\xD8 |0
+<U5C31> \xB4\x4E |0
+<U5C33> \xDD\x4C |0
+<U5C37> \xC0\xAA |0
+<U5C38> \xA4\x72 |0
+<U5C39> \xA4\xA8 |0
+<U5C3A> \xA4\xD8 |0
+<U5C3B> \xC9\x75 |0
+<U5C3C> \xA5\xA7 |0
+<U5C3E> \xA7\xC0 |0
+<U5C3F> \xA7\xBF |0
+<U5C40> \xA7\xBD |0
+<U5C41> \xA7\xBE |0
+<U5C44> \xCC\x59 |0
+<U5C45> \xA9\x7E |0
+<U5C46> \xA9\xA1 |0
+<U5C47> \xCC\x5A |0
+<U5C48> \xA9\x7D |0
+<U5C49> \xFB\xDB |0
+<U5C4A> \x9F\xC9 |0
+<U5C4B> \xAB\xCE |0
+<U5C4C> \xCE\x78 |0
+<U5C4D> \xAB\xCD |0
+<U5C4E> \xAB\xCB |0
+<U5C4F> \xAB\xCC |0
+<U5C50> \xAE\x6A |0
+<U5C51> \xAE\x68 |0
+<U5C53> \x9F\x44 |0
+<U5C54> \xD1\x6B |0
+<U5C55> \xAE\x69 |0
+<U5C56> \xD1\x6A |0
+<U5C58> \xAE\x5E |0
+<U5C59> \xD4\xF3 |0
+<U5C5C> \xB1\x50 |0
+<U5C5D> \xB1\x51 |0
+<U5C5E> \x98\xED |0
+<U5C60> \xB1\x4F |0
+<U5C62> \xB9\xF0 |0
+<U5C63> \xE1\xA2 |0
+<U5C64> \xBC\x68 |0
+<U5C65> \xBC\x69 |0
+<U5C67> \xE5\x61 |0
+<U5C68> \xC0\xAB |0
+<U5C69> \xEF\xC2 |0
+<U5C6A> \xEF\xC3 |0
+<U5C6C> \xC4\xDD |0
+<U5C6D> \xF8\xA8 |0
+<U5C6E> \xC9\x4B |0
+<U5C6F> \xA4\xD9 |0
+<U5C71> \xA4\x73 |0
+<U5C73> \xC9\x77 |0
+<U5C74> \xC9\x76 |0
+<U5C79> \xA6\x7A |0
+<U5C7A> \xC9\xD7 |0
+<U5C7B> \xC9\xD8 |0
+<U5C7C> \xC9\xD6 |0
+<U5C7E> \xC9\xD9 |0
+<U5C85> \xFB\xDD |0
+<U5C86> \xCA\xC7 |0
+<U5C88> \xCA\xC2 |0
+<U5C89> \xCA\xC4 |0
+<U5C8A> \xCA\xC6 |0
+<U5C8B> \xCA\xC3 |0
+<U5C8C> \xA7\xC4 |0
+<U5C8D> \xCA\xC0 |0
+<U5C8F> \xCA\xC1 |0
+<U5C90> \xA7\xC1 |0
+<U5C91> \xA7\xC2 |0
+<U5C92> \xCA\xC5 |0
+<U5C93> \xCA\xC8 |0
+<U5C94> \xA7\xC3 |0
+<U5C95> \xCA\xC9 |0
+<U5C99> \x8D\xF2 |0
+<U5C9A> \x89\x64 |0
+<U5C9C> \xFD\xF2 |0
+<U5C9D> \xCC\x68 |0
+<U5C9E> \x93\x4D |0
+<U5C9F> \xCC\x62 |0
+<U5CA0> \xCC\x5D |0
+<U5CA1> \xA9\xA3 |0
+<U5CA2> \xCC\x65 |0
+<U5CA3> \xCC\x63 |0
+<U5CA4> \xCC\x5C |0
+<U5CA5> \xCC\x69 |0
+<U5CA6> \xCC\x6C |0
+<U5CA7> \xCC\x67 |0
+<U5CA8> \xCC\x60 |0
+<U5CA9> \xA9\xA5 |0
+<U5CAA> \xCC\x66 |0
+<U5CAB> \xA9\xA6 |0
+<U5CAC> \xCC\x61 |0
+<U5CAD> \xCC\x64 |0
+<U5CAE> \xCC\x5B |0
+<U5CAF> \xCC\x5F |0
+<U5CB0> \xCC\x6B |0
+<U5CB1> \xA9\xA7 |0
+<U5CB3> \xA9\xA8 |0
+<U5CB5> \xCC\x5E |0
+<U5CB6> \xCC\x6A |0
+<U5CB7> \xA9\xA2 |0
+<U5CB8> \xA9\xA4 |0
+<U5CBA> \xFB\xE7 |0
+<U5CC1> \xA0\xF2 |0
+<U5CC2> \x98\x68 |0
+<U5CC6> \xCE\xAB |0
+<U5CC7> \xCE\xA4 |0
+<U5CC8> \xCE\xAA |0
+<U5CC9> \xCE\xA3 |0
+<U5CCA> \xCE\xA5 |0
+<U5CCB> \xCE\x7D |0
+<U5CCC> \xCE\x7B |0
+<U5CCE> \xCE\xAC |0
+<U5CCF> \xCE\xA9 |0
+<U5CD0> \xCE\x79 |0
+<U5CD1> \x9F\x58 |0
+<U5CD2> \xAB\xD0 |0
+<U5CD3> \xCE\xA7 |0
+<U5CD4> \xCE\xA8 |0
+<U5CD6> \xCE\xA6 |0
+<U5CD7> \xCE\x7C |0
+<U5CD8> \xCE\x7A |0
+<U5CD9> \xAB\xCF |0
+<U5CDA> \xCE\xA2 |0
+<U5CDB> \xCE\x7E |0
+<U5CDE> \xCE\xA1 |0
+<U5CDF> \xCE\xAD |0
+<U5CE5> \x8D\x73 |0
+<U5CE8> \xAE\x6F |0
+<U5CE9> \xFB\xDE |0
+<U5CEA> \xAE\x6E |0
+<U5CEC> \xD1\x6C |0
+<U5CED> \xAE\x6B |0
+<U5CEE> \xD1\x6E |0
+<U5CEF> \xFB\xDF |0
+<U5CF0> \xAE\x70 |0
+<U5CF1> \xD1\x6F |0
+<U5CF4> \xAE\x73 |0
+<U5CF5> \x8C\x48 |0
+<U5CF6> \xAE\x71 |0
+<U5CF7> \xD1\x70 |0
+<U5CF8> \xCE\xAE |0
+<U5CF9> \xD1\x72 |0
+<U5CFB> \xAE\x6D |0
+<U5CFD> \xAE\x6C |0
+<U5CFF> \xD1\x6D |0
+<U5D00> \xD1\x71 |0
+<U5D01> \xAE\x72 |0
+<U5D06> \xB1\x53 |0
+<U5D07> \xB1\x52 |0
+<U5D0B> \xD4\xF5 |0
+<U5D0C> \xD4\xF9 |0
+<U5D0D> \xD4\xFB |0
+<U5D0E> \xB1\x54 |0
+<U5D0F> \xD4\xFE |0
+<U5D10> \xFB\xE3 |0
+<U5D11> \xB1\x58 |0
+<U5D12> \xD5\x41 |0
+<U5D14> \xB1\x5A |0
+<U5D15> \x8D\xA8 |0
+<U5D16> \xB1\x56 |0
+<U5D17> \xB1\x5E |0
+<U5D18> \xFB\xE4 |0
+<U5D19> \xB1\x5B |0
+<U5D1A> \xD4\xF7 |0
+<U5D1B> \xB1\x55 |0
+<U5D1D> \xD4\xF6 |0
+<U5D1E> \xD4\xF4 |0
+<U5D1F> \xD5\x43 |0
+<U5D20> \xD4\xF8 |0
+<U5D22> \xB1\x57 |0
+<U5D23> \xD5\x42 |0
+<U5D24> \xB1\x5C |0
+<U5D25> \xD4\xFD |0
+<U5D26> \xD4\xFC |0
+<U5D27> \xB1\x5D |0
+<U5D28> \xD4\xFA |0
+<U5D29> \xB1\x59 |0
+<U5D2C> \x9C\x75 |0
+<U5D2E> \xD5\x44 |0
+<U5D2F> \x98\x78 |0
+<U5D30> \xD5\x40 |0
+<U5D31> \xD8\xE7 |0
+<U5D32> \xD8\xEE |0
+<U5D33> \xD8\xE3 |0
+<U5D34> \xB4\x51 |0
+<U5D35> \xD8\xDF |0
+<U5D36> \xD8\xEF |0
+<U5D37> \xD8\xD9 |0
+<U5D38> \xD8\xEC |0
+<U5D39> \xD8\xEA |0
+<U5D3A> \xD8\xE4 |0
+<U5D3C> \xD8\xED |0
+<U5D3D> \xD8\xE6 |0
+<U5D3E> \x8D\x60 |0
+<U5D3F> \xD8\xDE |0
+<U5D40> \xD8\xF0 |0
+<U5D41> \xD8\xDC |0
+<U5D42> \xD8\xE9 |0
+<U5D43> \xD8\xDA |0
+<U5D45> \xD8\xF1 |0
+<U5D46> \xFB\xE5 |0
+<U5D47> \xB4\x52 |0
+<U5D48> \x8D\x61 |0
+<U5D49> \xD8\xEB |0
+<U5D4A> \xDD\x4F |0
+<U5D4B> \xD8\xDD |0
+<U5D4C> \xB4\x4F |0
+<U5D4E> \xD8\xE1 |0
+<U5D50> \xB4\x50 |0
+<U5D51> \xD8\xE0 |0
+<U5D52> \xD8\xE5 |0
+<U5D55> \xD8\xE2 |0
+<U5D56> \x8D\x62 |0
+<U5D57> \xA0\xA1 |0
+<U5D59> \xD8\xE8 |0
+<U5D5B> \x9C\x40 |0
+<U5D5E> \xDD\x53 |0
+<U5D62> \xDD\x56 |0
+<U5D63> \xDD\x4E |0
+<U5D65> \xDD\x50 |0
+<U5D67> \xDD\x55 |0
+<U5D68> \xDD\x54 |0
+<U5D69> \xB7\x43 |0
+<U5D6B> \xD8\xDB |0
+<U5D6C> \xDD\x52 |0
+<U5D6F> \xB7\x44 |0
+<U5D70> \x98\xAD |0
+<U5D71> \xDD\x4D |0
+<U5D72> \xDD\x51 |0
+<U5D74> \x9E\xEA |0
+<U5D77> \xE1\xA9 |0
+<U5D79> \xE1\xB0 |0
+<U5D7A> \xE1\xA7 |0
+<U5D7B> \x8C\xD4 |0
+<U5D7C> \xE1\xAE |0
+<U5D7D> \xE1\xA5 |0
+<U5D7E> \xE1\xAD |0
+<U5D7F> \xE1\xB1 |0
+<U5D80> \xE1\xA4 |0
+<U5D81> \xE1\xA8 |0
+<U5D82> \xE1\xA3 |0
+<U5D84> \xB9\xF1 |0
+<U5D85> \x9C\xEB |0
+<U5D86> \xE1\xA6 |0
+<U5D87> \xB9\xF2 |0
+<U5D88> \xE1\xAC |0
+<U5D89> \xE1\xAB |0
+<U5D8A> \xE1\xAA |0
+<U5D8B> \xFB\xE0 |0
+<U5D8D> \xE1\xAF |0
+<U5D8E> \x9F\x51 |0
+<U5D92> \xE5\x65 |0
+<U5D93> \xE5\x67 |0
+<U5D94> \xBC\x6B |0
+<U5D95> \xE5\x68 |0
+<U5D97> \xE5\x63 |0
+<U5D99> \xE5\x62 |0
+<U5D9A> \xE5\x6C |0
+<U5D9C> \xE5\x6A |0
+<U5D9D> \xBC\x6A |0
+<U5D9E> \xE5\x6D |0
+<U5D9F> \xE5\x64 |0
+<U5DA0> \xE5\x69 |0
+<U5DA1> \xE5\x6B |0
+<U5DA2> \xE5\x66 |0
+<U5DA4> \x8D\x65 |0
+<U5DA7> \xE9\x61 |0
+<U5DA8> \xE9\x66 |0
+<U5DA9> \xE9\x60 |0
+<U5DAA> \xE9\x65 |0
+<U5DAB> \x9C\xF1 |0
+<U5DAC> \xE9\x5E |0
+<U5DAD> \xE9\x68 |0
+<U5DAE> \xE9\x64 |0
+<U5DAF> \xE9\x69 |0
+<U5DB0> \xE9\x63 |0
+<U5DB1> \xE9\x5F |0
+<U5DB2> \xE9\x67 |0
+<U5DB4> \xE9\x6A |0
+<U5DB5> \xE9\x62 |0
+<U5DB6> \xFC\x58 |0
+<U5DB7> \xEC\xDA |0
+<U5DB8> \xC0\xAF |0
+<U5DB9> \x8D\x66 |0
+<U5DBA> \xC0\xAD |0
+<U5DBC> \xC0\xAC |0
+<U5DBD> \xC0\xAE |0
+<U5DC0> \xEF\xC4 |0
+<U5DC1> \x96\x54 |0
+<U5DC2> \xF1\x72 |0
+<U5DC3> \xF1\xFD |0
+<U5DC6> \xF4\x44 |0
+<U5DC7> \xF4\x45 |0
+<U5DC9> \xC4\x60 |0
+<U5DCB> \xF5\xC9 |0
+<U5DCD> \xC4\xDE |0
+<U5DCF> \xF5\xCA |0
+<U5DD1> \xF6\xDE |0
+<U5DD2> \xC5\x72 |0
+<U5DD4> \xC5\x71 |0
+<U5DD5> \xF6\xDD |0
+<U5DD6> \xC5\xC9 |0
+<U5DD7> \xFB\xE8 |0
+<U5DD8> \xF7\xD6 |0
+<U5DDB> \xC6\xCC |0
+<U5DDD> \xA4\x74 |0
+<U5DDE> \xA6\x7B |0
+<U5DDF> \xC9\xDA |0
+<U5DE0> \xCA\xCA |0
+<U5DE1> \xA8\xB5 |0
+<U5DE2> \xB1\x5F |0
+<U5DE5> \xA4\x75 |0
+<U5DE6> \xA5\xAA |0
+<U5DE7> \xA5\xA9 |0
+<U5DE8> \xA5\xA8 |0
+<U5DEB> \xA7\xC5 |0
+<U5DEE> \xAE\x74 |0
+<U5DF0> \xDD\x57 |0
+<U5DF1> \xA4\x76 |0
+<U5DF2> \xA4\x77 |0
+<U5DF3> \xA4\x78 |0
+<U5DF4> \xA4\xDA |0
+<U5DF5> \x9F\xCE |0
+<U5DF7> \xAB\xD1 |0
+<U5DF9> \xCE\xAF |0
+<U5DFD> \xB4\x53 |0
+<U5DFE> \xA4\x79 |0
+<U5DFF> \xC9\x5D |0
+<U5E02> \xA5\xAB |0
+<U5E03> \xA5\xAC |0
+<U5E04> \xC9\x78 |0
+<U5E06> \xA6\x7C |0
+<U5E09> \xFB\xFC |0
+<U5E0A> \xCA\xCB |0
+<U5E0B> \x9A\xE4 |0
+<U5E0C> \xA7\xC6 |0
+<U5E0E> \xCA\xCC |0
+<U5E11> \xA9\xAE |0
+<U5E12> \x9F\x75 |0
+<U5E14> \xCC\x6E |0
+<U5E15> \xA9\xAC |0
+<U5E16> \xA9\xAB |0
+<U5E17> \xCC\x6D |0
+<U5E18> \xA9\xA9 |0
+<U5E19> \xCC\x6F |0
+<U5E1A> \xA9\xAA |0
+<U5E1B> \xA9\xAD |0
+<U5E1D> \xAB\xD2 |0
+<U5E1F> \xAB\xD4 |0
+<U5E20> \xCE\xB3 |0
+<U5E21> \xCE\xB0 |0
+<U5E22> \xCE\xB1 |0
+<U5E23> \xCE\xB2 |0
+<U5E24> \xCE\xB4 |0
+<U5E25> \xAB\xD3 |0
+<U5E28> \xD1\x74 |0
+<U5E29> \xD1\x73 |0
+<U5E2B> \xAE\x76 |0
+<U5E2D> \xAE\x75 |0
+<U5E2E> \xFB\xF1 |0
+<U5E33> \xB1\x62 |0
+<U5E34> \xD5\x46 |0
+<U5E36> \xB1\x61 |0
+<U5E37> \xB1\x63 |0
+<U5E38> \xB1\x60 |0
+<U5E3D> \xB4\x55 |0
+<U5E3E> \xD5\x45 |0
+<U5E40> \xB4\x56 |0
+<U5E41> \xD8\xF3 |0
+<U5E42> \x8D\x69 |0
+<U5E43> \xB4\x57 |0
+<U5E44> \xD8\xF2 |0
+<U5E45> \xB4\x54 |0
+<U5E48> \x93\x4F |0
+<U5E4A> \xDD\x5A |0
+<U5E4B> \xDD\x5C |0
+<U5E4C> \xB7\x45 |0
+<U5E4D> \xDD\x5B |0
+<U5E4E> \xDD\x59 |0
+<U5E4F> \xDD\x58 |0
+<U5E53> \xE1\xB4 |0
+<U5E54> \xB9\xF7 |0
+<U5E55> \xB9\xF5 |0
+<U5E57> \xB9\xF6 |0
+<U5E58> \xE1\xB2 |0
+<U5E59> \xE1\xB3 |0
+<U5E5B> \xB9\xF3 |0
+<U5E5C> \xE5\x71 |0
+<U5E5D> \xE5\x6F |0
+<U5E5E> \x93\x4E |0
+<U5E5F> \xBC\x6D |0
+<U5E60> \xE5\x70 |0
+<U5E61> \xBC\x6E |0
+<U5E62> \xBC\x6C |0
+<U5E63> \xB9\xF4 |0
+<U5E66> \xE9\x6D |0
+<U5E67> \xE9\x6B |0
+<U5E68> \xE9\x6C |0
+<U5E69> \xE5\x6E |0
+<U5E6A> \xEC\xDC |0
+<U5E6B> \xC0\xB0 |0
+<U5E6C> \xEC\xDB |0
+<U5E6D> \xEF\xC5 |0
+<U5E6E> \xEF\xC6 |0
+<U5E6F> \xE9\x6E |0
+<U5E70> \xF1\xFE |0
+<U5E72> \xA4\x7A |0
+<U5E73> \xA5\xAD |0
+<U5E74> \xA6\x7E |0
+<U5E75> \xC9\xDB |0
+<U5E76> \xA6\x7D |0
+<U5E78> \xA9\xAF |0
+<U5E79> \xB7\x46 |0
+<U5E7A> \xFB\xF4 |0
+<U5E7B> \xA4\xDB |0
+<U5E7C> \xA5\xAE |0
+<U5E7D> \xAB\xD5 |0
+<U5E7E> \xB4\x58 |0
+<U5E7F> \xC6\xCE |0
+<U5E80> \xC9\x79 |0
+<U5E82> \xC9\x7A |0
+<U5E83> \xFB\xC3 |0
+<U5E84> \xC9\xDC |0
+<U5E86> \x89\x65 |0
+<U5E87> \xA7\xC8 |0
+<U5E88> \xCA\xD0 |0
+<U5E89> \xCA\xCE |0
+<U5E8A> \xA7\xC9 |0
+<U5E8B> \xCA\xCD |0
+<U5E8C> \xCA\xCF |0
+<U5E8D> \xCA\xD1 |0
+<U5E8F> \xA7\xC7 |0
+<U5E92> \x8C\x7A |0
+<U5E95> \xA9\xB3 |0
+<U5E96> \xA9\xB4 |0
+<U5E97> \xA9\xB1 |0
+<U5E99> \x8C\x7B |0
+<U5E9A> \xA9\xB0 |0
+<U5E9B> \xCE\xB8 |0
+<U5E9C> \xA9\xB2 |0
+<U5EA0> \xAB\xD6 |0
+<U5EA2> \xCE\xB7 |0
+<U5EA3> \xCE\xB9 |0
+<U5EA4> \xCE\xB6 |0
+<U5EA5> \xCE\xBA |0
+<U5EA6> \xAB\xD7 |0
+<U5EA7> \xAE\x79 |0
+<U5EA8> \xD1\x75 |0
+<U5EAA> \xD1\x77 |0
+<U5EAB> \xAE\x77 |0
+<U5EAC> \xD1\x78 |0
+<U5EAD> \xAE\x78 |0
+<U5EAE> \xD1\x76 |0
+<U5EB0> \xCE\xB5 |0
+<U5EB1> \xD5\x47 |0
+<U5EB2> \xD5\x4A |0
+<U5EB3> \xD5\x4B |0
+<U5EB4> \xD5\x48 |0
+<U5EB5> \xB1\x67 |0
+<U5EB6> \xB1\x66 |0
+<U5EB7> \xB1\x64 |0
+<U5EB8> \xB1\x65 |0
+<U5EB9> \xD5\x49 |0
+<U5EBD> \x8D\x6A |0
+<U5EBE> \xB1\x68 |0
+<U5EC1> \xB4\x5A |0
+<U5EC2> \xB4\x5B |0
+<U5EC4> \xB4\x5C |0
+<U5EC5> \xDD\x5D |0
+<U5EC6> \xDD\x5F |0
+<U5EC7> \xDD\x61 |0
+<U5EC8> \xB7\x48 |0
+<U5EC9> \xB7\x47 |0
+<U5ECA> \xB4\x59 |0
+<U5ECB> \xDD\x60 |0
+<U5ECC> \xDD\x5E |0
+<U5ECD> \x93\x53 |0
+<U5ECE> \xE1\xB8 |0
+<U5ED0> \x9D\xFB |0
+<U5ED1> \xE1\xB6 |0
+<U5ED2> \xE1\xBC |0
+<U5ED3> \xB9\xF8 |0
+<U5ED4> \xE1\xBD |0
+<U5ED5> \xE1\xBA |0
+<U5ED6> \xB9\xF9 |0
+<U5ED7> \xE1\xB7 |0
+<U5ED8> \xE1\xB5 |0
+<U5ED9> \xE1\xBB |0
+<U5EDA> \xBC\x70 |0
+<U5EDB> \xE5\x73 |0
+<U5EDC> \xE1\xB9 |0
+<U5EDD> \xBC\x72 |0
+<U5EDE> \xE5\x74 |0
+<U5EDF> \xBC\x71 |0
+<U5EE0> \xBC\x74 |0
+<U5EE1> \xE5\x75 |0
+<U5EE2> \xBC\x6F |0
+<U5EE3> \xBC\x73 |0
+<U5EE5> \xE9\x73 |0
+<U5EE6> \xE9\x71 |0
+<U5EE7> \xE9\x70 |0
+<U5EE8> \xE9\x72 |0
+<U5EE9> \xE9\x6F |0
+<U5EEC> \xC3\x66 |0
+<U5EEE> \xF4\x46 |0
+<U5EEF> \xF4\x47 |0
+<U5EF1> \xF5\xCB |0
+<U5EF2> \xF6\xDF |0
+<U5EF3> \xC6\x55 |0
+<U5EF4> \xFB\xFD |0
+<U5EF6> \xA9\xB5 |0
+<U5EF7> \xA7\xCA |0
+<U5EF8> \x90\x59 |0
+<U5EF9> \xFC\x40 |0
+<U5EFA> \xAB\xD8 |0
+<U5EFB> \xFC\x41 |0
+<U5EFC> \xFC\x43 |0
+<U5EFE> \xA4\x7B |0
+<U5EFF> \xA4\xDC |0
+<U5F01> \xA5\xAF |0
+<U5F02> \xC9\xDD |0
+<U5F04> \xA7\xCB |0
+<U5F05> \xCA\xD2 |0
+<U5F07> \xCE\xBB |0
+<U5F08> \xAB\xD9 |0
+<U5F0A> \xB9\xFA |0
+<U5F0B> \xA4\x7C |0
+<U5F0C> \x93\x61 |0
+<U5F0D> \xFC\x46 |0
+<U5F0E> \x93\x62 |0
+<U5F0F> \xA6\xA1 |0
+<U5F12> \xB7\x49 |0
+<U5F13> \xA4\x7D |0
+<U5F14> \xA4\xDD |0
+<U5F15> \xA4\xDE |0
+<U5F17> \xA5\xB1 |0
+<U5F18> \xA5\xB0 |0
+<U5F1A> \xC9\xDE |0
+<U5F1B> \xA6\xA2 |0
+<U5F1D> \xCA\xD3 |0
+<U5F1F> \xA7\xCC |0
+<U5F22> \xCC\x71 |0
+<U5F23> \xCC\x72 |0
+<U5F24> \xCC\x73 |0
+<U5F25> \x8D\x6B |0
+<U5F26> \xA9\xB6 |0
+<U5F27> \xA9\xB7 |0
+<U5F28> \xCC\x70 |0
+<U5F29> \xA9\xB8 |0
+<U5F2D> \xAB\xDA |0
+<U5F2E> \xCE\xBC |0
+<U5F30> \xD1\x7A |0
+<U5F31> \xAE\x7A |0
+<U5F33> \xD1\x79 |0
+<U5F35> \xB1\x69 |0
+<U5F36> \xD5\x4C |0
+<U5F37> \xB1\x6A |0
+<U5F38> \xD5\x4D |0
+<U5F3A> \xFC\x4C |0
+<U5F3C> \xB4\x5D |0
+<U5F40> \xDD\x62 |0
+<U5F43> \xE1\xBF |0
+<U5F44> \xE1\xBE |0
+<U5F46> \xB9\xFB |0
+<U5F48> \xBC\x75 |0
+<U5F49> \xE5\x76 |0
+<U5F4A> \xBE\xCA |0
+<U5F4B> \xE9\x74 |0
+<U5F4C> \xC0\xB1 |0
+<U5F4D> \x95\xB8 |0
+<U5F4E> \xC5\x73 |0
+<U5F4F> \xF7\xD8 |0
+<U5F50> \xC6\xD0 |0
+<U5F51> \x8B\xCA |0
+<U5F54> \xCC\x74 |0
+<U5F56> \xCE\xBD |0
+<U5F57> \xB1\x6B |0
+<U5F58> \xD8\xF4 |0
+<U5F59> \xB7\x4A |0
+<U5F5C> \x98\x7A |0
+<U5F5D> \xC2\x55 |0
+<U5F61> \xC6\xD1 |0
+<U5F62> \xA7\xCE |0
+<U5F63> \xFC\x51 |0
+<U5F64> \xA7\xCD |0
+<U5F65> \xAB\xDB |0
+<U5F67> \xD1\x7B |0
+<U5F69> \xB1\x6D |0
+<U5F6A> \xB3\x43 |0
+<U5F6B> \xB1\x6E |0
+<U5F6C> \xB1\x6C |0
+<U5F6D> \xB4\x5E |0
+<U5F6F> \xE1\xC0 |0
+<U5F70> \xB9\xFC |0
+<U5F71> \xBC\x76 |0
+<U5F72> \xFC\x54 |0
+<U5F73> \xC9\x4C |0
+<U5F74> \xC9\xDF |0
+<U5F76> \xCA\xD5 |0
+<U5F77> \xA7\xCF |0
+<U5F78> \xCA\xD4 |0
+<U5F79> \xA7\xD0 |0
+<U5F7B> \xFA\xAF |0
+<U5F7C> \xA9\xBC |0
+<U5F7D> \xCC\x77 |0
+<U5F7E> \xCC\x76 |0
+<U5F7F> \xA9\xBB |0
+<U5F80> \xA9\xB9 |0
+<U5F81> \xA9\xBA |0
+<U5F82> \xCC\x75 |0
+<U5F83> \x8D\x6C |0
+<U5F85> \xAB\xDD |0
+<U5F86> \xCE\xBE |0
+<U5F87> \xAB\xE0 |0
+<U5F88> \xAB\xDC |0
+<U5F89> \xAB\xE2 |0
+<U5F8A> \xAB\xDE |0
+<U5F8B> \xAB\xDF |0
+<U5F8C> \xAB\xE1 |0
+<U5F90> \xAE\x7D |0
+<U5F91> \xAE\x7C |0
+<U5F92> \xAE\x7B |0
+<U5F96> \xD5\x4F |0
+<U5F97> \xB1\x6F |0
+<U5F98> \xB1\x72 |0
+<U5F99> \xB1\x70 |0
+<U5F9B> \xD5\x4E |0
+<U5F9C> \xB1\x75 |0
+<U5F9E> \xB1\x71 |0
+<U5F9F> \xD5\x50 |0
+<U5FA0> \xB1\x74 |0
+<U5FA1> \xB1\x73 |0
+<U5FA4> \xFA\x61 |0
+<U5FA5> \xD8\xF6 |0
+<U5FA6> \xD8\xF5 |0
+<U5FA7> \xFC\x57 |0
+<U5FA8> \xB4\x61 |0
+<U5FA9> \xB4\x5F |0
+<U5FAA> \xB4\x60 |0
+<U5FAB> \xD8\xF7 |0
+<U5FAC> \xB7\x4B |0
+<U5FAD> \xDD\x64 |0
+<U5FAE> \xB7\x4C |0
+<U5FAF> \xDD\x63 |0
+<U5FB1> \x9B\x70 |0
+<U5FB2> \xE5\x77 |0
+<U5FB5> \xBC\x78 |0
+<U5FB6> \xE1\xC1 |0
+<U5FB7> \xBC\x77 |0
+<U5FB9> \xB9\xFD |0
+<U5FBA> \xA0\x51 |0
+<U5FBB> \xEC\xDE |0
+<U5FBC> \xE9\x75 |0
+<U5FBD> \xC0\xB2 |0
+<U5FBE> \xEC\xDD |0
+<U5FBF> \xF2\x40 |0
+<U5FC0> \xF4\x48 |0
+<U5FC1> \xF4\x49 |0
+<U5FC2> \x8C\x7C |0
+<U5FC3> \xA4\xDF |0
+<U5FC4> \x8B\xCB |0
+<U5FC5> \xA5\xB2 |0
+<U5FC9> \xC9\x7B |0
+<U5FCC> \xA7\xD2 |0
+<U5FCD> \xA7\xD4 |0
+<U5FCF> \xC9\xE2 |0
+<U5FD0> \xCA\xD8 |0
+<U5FD1> \xCA\xD7 |0
+<U5FD2> \xCA\xD6 |0
+<U5FD4> \xC9\xE1 |0
+<U5FD5> \xC9\xE0 |0
+<U5FD6> \xA6\xA4 |0
+<U5FD7> \xA7\xD3 |0
+<U5FD8> \xA7\xD1 |0
+<U5FD9> \xA6\xA3 |0
+<U5FDB> \x93\x6E |0
+<U5FDD> \xA9\xBD |0
+<U5FDE> \xCC\x78 |0
+<U5FDF> \xFC\xD5 |0
+<U5FE0> \xA9\xBE |0
+<U5FE1> \xCA\xDD |0
+<U5FE3> \xCA\xDF |0
+<U5FE4> \xCA\xDE |0
+<U5FE5> \xCC\x79 |0
+<U5FE8> \xCA\xDA |0
+<U5FEA> \xA7\xD8 |0
+<U5FEB> \xA7\xD6 |0
+<U5FED> \xCA\xD9 |0
+<U5FEE> \xCA\xDB |0
+<U5FEF> \xCA\xE1 |0
+<U5FF1> \xA7\xD5 |0
+<U5FF3> \xCA\xDC |0
+<U5FF4> \xCA\xE5 |0
+<U5FF5> \xA9\xC0 |0
+<U5FF7> \xCA\xE2 |0
+<U5FF8> \xA7\xD7 |0
+<U5FFA> \xCA\xE0 |0
+<U5FFB> \xCA\xE3 |0
+<U5FFD> \xA9\xBF |0
+<U5FFF> \xA9\xC1 |0
+<U6000> \xCA\xE4 |0
+<U6009> \xCC\xAF |0
+<U600A> \xCC\xA2 |0
+<U600B> \xCC\x7E |0
+<U600C> \xCC\xAE |0
+<U600D> \xCC\xA9 |0
+<U600E> \xAB\xE7 |0
+<U600F> \xA9\xC2 |0
+<U6010> \xCC\xAA |0
+<U6011> \xCC\xAD |0
+<U6012> \xAB\xE3 |0
+<U6013> \xCC\xAC |0
+<U6014> \xA9\xC3 |0
+<U6015> \xA9\xC8 |0
+<U6016> \xA9\xC6 |0
+<U6017> \xCC\xA3 |0
+<U6019> \xCC\x7C |0
+<U601A> \xCC\xA5 |0
+<U601B> \xA9\xCD |0
+<U601C> \xCC\xB0 |0
+<U601D> \xAB\xE4 |0
+<U601E> \xCC\xA6 |0
+<U6020> \xAB\xE5 |0
+<U6021> \xA9\xC9 |0
+<U6022> \xCC\xA8 |0
+<U6023> \xFC\xA9 |0
+<U6024> \xCE\xCD |0
+<U6025> \xAB\xE6 |0
+<U6026> \xCC\x7B |0
+<U6027> \xA9\xCA |0
+<U6028> \xAB\xE8 |0
+<U6029> \xA9\xCB |0
+<U602A> \xA9\xC7 |0
+<U602B> \xA9\xCC |0
+<U602C> \xCC\xA7 |0
+<U602D> \xCC\x7A |0
+<U602E> \xCC\xAB |0
+<U602F> \xA9\xC4 |0
+<U6031> \xFC\x61 |0
+<U6032> \xCC\x7D |0
+<U6033> \xCC\xA4 |0
+<U6034> \xCC\xA1 |0
+<U6035> \xA9\xC5 |0
+<U6037> \xCE\xBF |0
+<U6039> \xCE\xC0 |0
+<U603B> \x89\x66 |0
+<U6040> \xCE\xCA |0
+<U6041> \xD1\xA1 |0
+<U6042> \xCE\xCB |0
+<U6043> \xAB\xEE |0
+<U6044> \xCE\xCE |0
+<U6045> \xCE\xC4 |0
+<U6046> \xAB\xED |0
+<U6047> \xCE\xC6 |0
+<U6049> \xCE\xC7 |0
+<U604A> \xFA\xCB |0
+<U604C> \xCE\xC9 |0
+<U604D> \xAB\xE9 |0
+<U6050> \xAE\xA3 |0
+<U6052> \xF9\xDA |0
+<U6053> \xCE\xC5 |0
+<U6054> \xCE\xC1 |0
+<U6055> \xAE\xA4 |0
+<U6058> \xCE\xCF |0
+<U6059> \xAE\x7E |0
+<U605A> \xD1\x7D |0
+<U605B> \xCE\xC8 |0
+<U605D> \xD1\x7C |0
+<U605E> \xCE\xC3 |0
+<U605F> \xCE\xCC |0
+<U6062> \xAB\xEC |0
+<U6063> \xAE\xA1 |0
+<U6064> \xAB\xF2 |0
+<U6065> \xAE\xA2 |0
+<U6066> \xCE\xD0 |0
+<U6067> \xD1\x7E |0
+<U6068> \xAB\xEB |0
+<U6069> \xAE\xA6 |0
+<U606A> \xAB\xF1 |0
+<U606B> \xAB\xF0 |0
+<U606C> \xAB\xEF |0
+<U606D> \xAE\xA5 |0
+<U606E> \xCE\xD1 |0
+<U606F> \xAE\xA7 |0
+<U6070> \xAB\xEA |0
+<U6072> \xCE\xC2 |0
+<U6075> \x93\x7A |0
+<U6077> \xA0\xE0 |0
+<U607E> \x93\x6B |0
+<U607F> \xB1\x76 |0
+<U6080> \xD1\xA4 |0
+<U6081> \xD1\xA6 |0
+<U6083> \xD1\xA8 |0
+<U6084> \xAE\xA8 |0
+<U6085> \xAE\xAE |0
+<U6086> \xD5\x53 |0
+<U6087> \xD1\xAC |0
+<U6088> \xD1\xA3 |0
+<U6089> \xB1\x78 |0
+<U608A> \xD5\x51 |0
+<U608C> \xAE\xAD |0
+<U608D> \xAE\xAB |0
+<U608E> \xD1\xAE |0
+<U6090> \xD5\x52 |0
+<U6092> \xD1\xA5 |0
+<U6094> \xAE\xAC |0
+<U6095> \xD1\xA9 |0
+<U6096> \xAE\xAF |0
+<U6097> \xD1\xAB |0
+<U609A> \xAE\xAA |0
+<U609B> \xD1\xAA |0
+<U609C> \xD1\xAD |0
+<U609D> \xD1\xA7 |0
+<U609E> \xFC\x6B |0
+<U609F> \xAE\xA9 |0
+<U60A0> \xB1\x79 |0
+<U60A2> \xD1\xA2 |0
+<U60A3> \xB1\x77 |0
+<U60A4> \xA0\xDC |0
+<U60A7> \x94\x68 |0
+<U60A8> \xB1\x7A |0
+<U60B0> \xD5\x55 |0
+<U60B1> \xD5\x5E |0
+<U60B2> \xB4\x64 |0
+<U60B3> \xFC\x6D |0
+<U60B4> \xB1\x7C |0
+<U60B5> \xB1\xA3 |0
+<U60B6> \xB4\x65 |0
+<U60B7> \xD5\x60 |0
+<U60B8> \xB1\xAA |0
+<U60B9> \xD8\xF9 |0
+<U60BA> \xD5\x56 |0
+<U60BB> \xB1\xA2 |0
+<U60BC> \xB1\xA5 |0
+<U60BD> \xB1\x7E |0
+<U60BE> \xD5\x54 |0
+<U60BF> \xD5\x62 |0
+<U60C0> \xD5\x65 |0
+<U60C1> \xD9\x49 |0
+<U60C3> \xD5\x63 |0
+<U60C4> \xD8\xFD |0
+<U60C5> \xB1\xA1 |0
+<U60C6> \xB1\xA8 |0
+<U60C7> \xB1\xAC |0
+<U60C8> \xD5\x5D |0
+<U60C9> \xD8\xF8 |0
+<U60CA> \xD5\x61 |0
+<U60CB> \xB1\x7B |0
+<U60CC> \xD8\xFA |0
+<U60CD> \xD5\x64 |0
+<U60CE> \xD8\xFC |0
+<U60CF> \xD5\x59 |0
+<U60D1> \xB4\x62 |0
+<U60D3> \xD5\x57 |0
+<U60D4> \xD5\x58 |0
+<U60D5> \xB1\xA7 |0
+<U60D7> \x8D\x71 |0
+<U60D8> \xB1\xA6 |0
+<U60D9> \xD5\x5B |0
+<U60DA> \xB1\xAB |0
+<U60DB> \xD5\x5F |0
+<U60DC> \xB1\xA4 |0
+<U60DD> \xD5\x5C |0
+<U60DE> \xFD\x64 |0
+<U60DF> \xB1\xA9 |0
+<U60E0> \xB4\x66 |0
+<U60E1> \xB4\x63 |0
+<U60E2> \xD8\xFB |0
+<U60E3> \x99\xBA |0
+<U60E4> \xD5\x5A |0
+<U60E6> \xB1\x7D |0
+<U60E7> \x9A\xD0 |0
+<U60E8> \x9A\x61 |0
+<U60E9> \xA0\xE5 |0
+<U60F0> \xB4\x6B |0
+<U60F1> \xB4\x6F |0
+<U60F2> \xD9\x40 |0
+<U60F3> \xB7\x51 |0
+<U60F4> \xB4\x6D |0
+<U60F5> \xD9\x44 |0
+<U60F6> \xB4\x71 |0
+<U60F7> \xDD\x65 |0
+<U60F8> \xD9\x46 |0
+<U60F9> \xB7\x53 |0
+<U60FA> \xB4\x69 |0
+<U60FB> \xB4\x6C |0
+<U60FC> \xD9\x47 |0
+<U60FD> \xA0\x5B |0
+<U60FE> \xD9\x48 |0
+<U60FF> \xD9\x4E |0
+<U6100> \xB4\x73 |0
+<U6101> \xB7\x54 |0
+<U6103> \xD9\x4A |0
+<U6104> \xD9\x4F |0
+<U6105> \xD9\x43 |0
+<U6106> \xB7\x5E |0
+<U6107> \x96\xAC |0
+<U6108> \xB7\x55 |0
+<U6109> \xB4\x72 |0
+<U610A> \xD9\x41 |0
+<U610B> \xD9\x50 |0
+<U610C> \x97\x40 |0
+<U610D> \xB7\x5D |0
+<U610E> \xB4\x70 |0
+<U610F> \xB7\x4E |0
+<U6110> \xD9\x4D |0
+<U6112> \xB4\x74 |0
+<U6113> \xD9\x45 |0
+<U6114> \xD8\xFE |0
+<U6115> \xB4\x6A |0
+<U6116> \xD9\x42 |0
+<U6118> \xD9\x4B |0
+<U6119> \x9E\xF1 |0
+<U611A> \xB7\x4D |0
+<U611B> \xB7\x52 |0
+<U611C> \xB4\x67 |0
+<U611D> \xD9\x4C |0
+<U611F> \xB7\x50 |0
+<U6122> \x8C\x4D |0
+<U6123> \xB4\x68 |0
+<U6127> \xB7\x5C |0
+<U6128> \xE1\xC3 |0
+<U6129> \xDD\x70 |0
+<U612B> \xDD\x68 |0
+<U612C> \xE1\xC2 |0
+<U612E> \xDD\x6C |0
+<U612F> \xDD\x6E |0
+<U6130> \x9F\x7E |0
+<U6132> \xDD\x6B |0
+<U6134> \xB7\x5B |0
+<U6136> \xDD\x6A |0
+<U6137> \xB7\x5F |0
+<U613B> \xE1\xD2 |0
+<U613D> \x8D\x72 |0
+<U613E> \xB7\x5A |0
+<U613F> \xBA\x40 |0
+<U6140> \xDD\x71 |0
+<U6141> \xE1\xC4 |0
+<U6142> \xFC\x76 |0
+<U6144> \xB7\x58 |0
+<U6145> \xDD\x69 |0
+<U6146> \xDD\x6D |0
+<U6147> \xB9\xFE |0
+<U6148> \xB7\x4F |0
+<U6149> \xDD\x66 |0
+<U614A> \xDD\x67 |0
+<U614B> \xBA\x41 |0
+<U614C> \xB7\x57 |0
+<U614D> \xB7\x59 |0
+<U614E> \xB7\x56 |0
+<U614F> \xDD\x6F |0
+<U6150> \x96\xA9 |0
+<U6152> \xE1\xC8 |0
+<U6153> \xE1\xC9 |0
+<U6154> \xE1\xCE |0
+<U6155> \xBC\x7D |0
+<U6156> \xE1\xD5 |0
+<U6158> \xBA\x47 |0
+<U6159> \xA0\x6E |0
+<U615A> \xBA\x46 |0
+<U615B> \xE1\xD0 |0
+<U615C> \xFC\xAA |0
+<U615D> \xBC\x7C |0
+<U615E> \xE1\xC5 |0
+<U615F> \xBA\x45 |0
+<U6160> \xFB\xCD |0
+<U6161> \xE1\xD4 |0
+<U6162> \xBA\x43 |0
+<U6163> \xBA\x44 |0
+<U6164> \xFC\x74 |0
+<U6165> \xE1\xD1 |0
+<U6166> \xE5\xAA |0
+<U6167> \xBC\x7A |0
+<U6168> \xB4\x6E |0
+<U616A> \xE1\xD3 |0
+<U616B> \xBC\xA3 |0
+<U616C> \xE1\xCB |0
+<U616E> \xBC\x7B |0
+<U616F> \xA0\x74 |0
+<U6170> \xBC\xA2 |0
+<U6171> \xE1\xC6 |0
+<U6172> \xE1\xCA |0
+<U6173> \xE1\xC7 |0
+<U6174> \xE1\xCD |0
+<U6175> \xBA\x48 |0
+<U6176> \xBC\x79 |0
+<U6177> \xBA\x42 |0
+<U6179> \xE5\x7A |0
+<U617A> \xE1\xCF |0
+<U617C> \xBC\xA1 |0
+<U617D> \xA0\x71 |0
+<U617E> \xBC\xA4 |0
+<U6180> \xE1\xCC |0
+<U6181> \xFC\x79 |0
+<U6182> \xBC\x7E |0
+<U6183> \xE5\x79 |0
+<U6187> \xFC\x7C |0
+<U6189> \xE5\x7E |0
+<U618A> \xBE\xCE |0
+<U618B> \xE5\x78 |0
+<U618C> \xE9\xA3 |0
+<U618D> \xE5\xA9 |0
+<U618E> \xBC\xA8 |0
+<U6190> \xBC\xA6 |0
+<U6191> \xBE\xCC |0
+<U6192> \xE5\xA6 |0
+<U6193> \xE5\xA2 |0
+<U6194> \xBC\xAC |0
+<U6195> \x9C\x50 |0
+<U6196> \xE9\x78 |0
+<U6198> \x93\x79 |0
+<U6199> \x93\x78 |0
+<U619A> \xBC\xAA |0
+<U619B> \xE5\xA1 |0
+<U619C> \xA0\xDD |0
+<U619D> \xE9\x76 |0
+<U619F> \xE5\xA5 |0
+<U61A1> \xE5\xA8 |0
+<U61A2> \xE5\x7D |0
+<U61A4> \xBC\xAB |0
+<U61A7> \xBC\xA5 |0
+<U61A8> \xE9\x77 |0
+<U61A9> \xBE\xCD |0
+<U61AA> \xE5\xA7 |0
+<U61AB> \xBC\xA7 |0
+<U61AC> \xBC\xA9 |0
+<U61AD> \xE5\xA4 |0
+<U61AE> \xBC\xAD |0
+<U61AF> \xE5\xA3 |0
+<U61B0> \xE5\x7C |0
+<U61B1> \xE5\x7B |0
+<U61B2> \xBE\xCB |0
+<U61B3> \xE5\xAB |0
+<U61B4> \xE9\x7A |0
+<U61B5> \xEC\xE0 |0
+<U61B6> \xBE\xD0 |0
+<U61B7> \x8D\x75 |0
+<U61B8> \xE9\xA2 |0
+<U61B9> \x8D\x76 |0
+<U61BA> \xE9\x7E |0
+<U61BC> \xEC\xE1 |0
+<U61BE> \xBE\xD1 |0
+<U61BF> \xE9\xA1 |0
+<U61C0> \x93\x74 |0
+<U61C1> \xE9\x7C |0
+<U61C2> \xC0\xB4 |0
+<U61C3> \xEC\xDF |0
+<U61C5> \xE9\x79 |0
+<U61C6> \xE9\x7B |0
+<U61C7> \xC0\xB5 |0
+<U61C8> \xBE\xD3 |0
+<U61C9> \xC0\xB3 |0
+<U61CA> \xBE\xD2 |0
+<U61CB> \xC0\xB7 |0
+<U61CC> \xE9\x7D |0
+<U61CD> \xBE\xCF |0
+<U61CF> \x8D\x77 |0
+<U61D0> \xFC\xA5 |0
+<U61D3> \xFC\xA2 |0
+<U61D6> \xEF\xCF |0
+<U61D8> \xEF\xC7 |0
+<U61DA> \x90\xC3 |0
+<U61DE> \xEC\xE7 |0
+<U61DF> \xEF\xC8 |0
+<U61E0> \xEC\xE3 |0
+<U61E2> \xA0\x79 |0
+<U61E3> \xC2\x56 |0
+<U61E4> \xEC\xE5 |0
+<U61E5> \xEC\xE4 |0
+<U61E6> \xC0\xB6 |0
+<U61E7> \xEC\xE2 |0
+<U61E8> \xEC\xE6 |0
+<U61E9> \xEF\xD0 |0
+<U61EA> \xEF\xCC |0
+<U61EB> \xEF\xCE |0
+<U61ED> \xEF\xC9 |0
+<U61EE> \xEF\xCA |0
+<U61F0> \xEF\xCD |0
+<U61F1> \xEF\xCB |0
+<U61F2> \xC3\x67 |0
+<U61F5> \xC3\x6A |0
+<U61F6> \xC3\x69 |0
+<U61F7> \xC3\x68 |0
+<U61F8> \xC4\x61 |0
+<U61F9> \xF4\x4A |0
+<U61FA> \xC4\x62 |0
+<U61FB> \xF2\x41 |0
+<U61FC> \xC4\xDF |0
+<U61FD> \xF5\xCC |0
+<U61FE> \xC4\xE0 |0
+<U61FF> \xC5\x74 |0
+<U6200> \xC5\xCA |0
+<U6201> \xF7\xD9 |0
+<U6203> \xF7\xDA |0
+<U6204> \xF7\xDB |0
+<U6207> \xF9\xBA |0
+<U6208> \xA4\xE0 |0
+<U6209> \xC9\x7C |0
+<U620A> \xA5\xB3 |0
+<U620C> \xA6\xA6 |0
+<U620D> \xA6\xA7 |0
+<U620E> \xA6\xA5 |0
+<U6210> \xA6\xA8 |0
+<U6211> \xA7\xDA |0
+<U6212> \xA7\xD9 |0
+<U6214> \xCC\xB1 |0
+<U6215> \xA9\xCF |0
+<U6216> \xA9\xCE |0
+<U6219> \xD1\xAF |0
+<U621A> \xB1\xAD |0
+<U621B> \xB1\xAE |0
+<U621F> \xB4\x75 |0
+<U6220> \xDD\x72 |0
+<U6221> \xB7\x60 |0
+<U6222> \xB7\x61 |0
+<U6223> \xDD\x74 |0
+<U6224> \xDD\x76 |0
+<U6225> \xDD\x75 |0
+<U6227> \xE1\xD7 |0
+<U6229> \xE1\xD6 |0
+<U622A> \xBA\x49 |0
+<U622B> \xE1\xD8 |0
+<U622C> \x8D\x79 |0
+<U622D> \xE5\xAC |0
+<U622E> \xBC\xAE |0
+<U6230> \xBE\xD4 |0
+<U6232> \xC0\xB8 |0
+<U6233> \xC2\x57 |0
+<U6234> \xC0\xB9 |0
+<U6236> \xA4\xE1 |0
+<U6237> \x8B\xFC |0
+<U6239> \xA0\x76 |0
+<U623A> \xCA\xE6 |0
+<U623D> \xCC\xB2 |0
+<U623E> \xA9\xD1 |0
+<U623F> \xA9\xD0 |0
+<U6240> \xA9\xD2 |0
+<U6241> \xAB\xF3 |0
+<U6242> \xCE\xD2 |0
+<U6243> \xCE\xD3 |0
+<U6246> \xD1\xB0 |0
+<U6247> \xAE\xB0 |0
+<U6248> \xB1\xAF |0
+<U6249> \xB4\x76 |0
+<U624A> \xD9\x51 |0
+<U624B> \xA4\xE2 |0
+<U624C> \x8B\xCD |0
+<U624D> \xA4\x7E |0
+<U624E> \xA4\xE3 |0
+<U6250> \xC9\x7D |0
+<U6251> \xA5\xB7 |0
+<U6252> \xA5\xB6 |0
+<U6253> \xA5\xB4 |0
+<U6254> \xA5\xB5 |0
+<U6258> \xA6\xAB |0
+<U6259> \xC9\xE9 |0
+<U625A> \xC9\xEB |0
+<U625B> \xA6\xAA |0
+<U625C> \xC9\xE3 |0
+<U625E> \xC9\xE4 |0
+<U6260> \xC9\xEA |0
+<U6261> \xC9\xE6 |0
+<U6262> \xC9\xE8 |0
+<U6263> \xA6\xA9 |0
+<U6264> \xC9\xE5 |0
+<U6265> \xC9\xEC |0
+<U6266> \xC9\xE7 |0
+<U6268> \x9F\x5A |0
+<U626D> \xA7\xE1 |0
+<U626E> \xA7\xEA |0
+<U626F> \xA7\xE8 |0
+<U6270> \xCA\xF0 |0
+<U6271> \xCA\xED |0
+<U6272> \xCA\xF5 |0
+<U6273> \xA7\xE6 |0
+<U6274> \xCA\xF6 |0
+<U6276> \xA7\xDF |0
+<U6277> \xCA\xF3 |0
+<U6279> \xA7\xE5 |0
+<U627A> \xCA\xEF |0
+<U627B> \xCA\xEE |0
+<U627C> \xA7\xE3 |0
+<U627D> \xCA\xF4 |0
+<U627E> \xA7\xE4 |0
+<U627F> \xA9\xD3 |0
+<U6280> \xA7\xDE |0
+<U6281> \xCA\xF1 |0
+<U6282> \x9F\xF4 |0
+<U6283> \xCA\xE7 |0
+<U6284> \xA7\xDB |0
+<U6285> \x9F\xBA |0
+<U6286> \xA7\xEE |0
+<U6287> \xCA\xEC |0
+<U6288> \xCA\xF2 |0
+<U6289> \xA7\xE0 |0
+<U628A> \xA7\xE2 |0
+<U628C> \xCA\xE8 |0
+<U628E> \xCA\xE9 |0
+<U628F> \xCA\xEA |0
+<U6290> \x8D\x7A |0
+<U6291> \xA7\xED |0
+<U6292> \xA7\xE7 |0
+<U6293> \xA7\xEC |0
+<U6294> \xCA\xEB |0
+<U6295> \xA7\xEB |0
+<U6296> \xA7\xDD |0
+<U6297> \xA7\xDC |0
+<U6298> \xA7\xE9 |0
+<U629D> \x9E\x45 |0
+<U62A4> \x93\xB0 |0
+<U62A6> \xA0\x75 |0
+<U62A8> \xA9\xE1 |0
+<U62A9> \xCC\xBE |0
+<U62AA> \xCC\xB7 |0
+<U62AB> \xA9\xDC |0
+<U62AC> \xA9\xEF |0
+<U62AD> \xCC\xB3 |0
+<U62AE> \xCC\xBA |0
+<U62AF> \xCC\xBC |0
+<U62B0> \xCC\xBF |0
+<U62B1> \xA9\xEA |0
+<U62B3> \xCC\xBB |0
+<U62B4> \xCC\xB4 |0
+<U62B5> \xA9\xE8 |0
+<U62B6> \xCC\xB8 |0
+<U62B8> \xCC\xC0 |0
+<U62B9> \xA9\xD9 |0
+<U62BB> \xCC\xBD |0
+<U62BC> \xA9\xE3 |0
+<U62BD> \xA9\xE2 |0
+<U62BE> \xCC\xB6 |0
+<U62BF> \xA9\xD7 |0
+<U62C2> \xA9\xD8 |0
+<U62C3> \x9B\x46 |0
+<U62C4> \xA9\xD6 |0
+<U62C5> \xFC\xAE |0
+<U62C6> \xA9\xEE |0
+<U62C7> \xA9\xE6 |0
+<U62C8> \xA9\xE0 |0
+<U62C9> \xA9\xD4 |0
+<U62CA> \xCC\xB9 |0
+<U62CB> \xA9\xDF |0
+<U62CC> \xA9\xD5 |0
+<U62CD> \xA9\xE7 |0
+<U62CE> \xA9\xF0 |0
+<U62CF> \xCE\xD4 |0
+<U62D0> \xA9\xE4 |0
+<U62D1> \xCC\xB5 |0
+<U62D2> \xA9\xDA |0
+<U62D3> \xA9\xDD |0
+<U62D4> \xA9\xDE |0
+<U62D5> \xFC\xB0 |0
+<U62D6> \xA9\xEC |0
+<U62D7> \xA9\xED |0
+<U62D8> \xA9\xEB |0
+<U62D9> \xA9\xE5 |0
+<U62DA> \xA9\xE9 |0
+<U62DB> \xA9\xDB |0
+<U62DC> \xAB\xF4 |0
+<U62DF> \xFA\x51 |0
+<U62E5> \x8D\x7B |0
+<U62EB> \xCE\xDA |0
+<U62EC> \xAC\x41 |0
+<U62ED> \xAB\xF8 |0
+<U62EE> \xAB\xFA |0
+<U62EF> \xAC\x40 |0
+<U62F0> \xCE\xE6 |0
+<U62F1> \xAB\xFD |0
+<U62F2> \xD1\xB1 |0
+<U62F3> \xAE\xB1 |0
+<U62F4> \xAC\x43 |0
+<U62F5> \xCE\xD7 |0
+<U62F6> \xCE\xDF |0
+<U62F7> \xAB\xFE |0
+<U62F8> \xCE\xDE |0
+<U62F9> \xCE\xDB |0
+<U62FA> \xCE\xE3 |0
+<U62FB> \xCE\xE5 |0
+<U62FC> \xAB\xF7 |0
+<U62FD> \xAB\xFB |0
+<U62FE> \xAC\x42 |0
+<U62FF> \xAE\xB3 |0
+<U6300> \xCE\xE0 |0
+<U6301> \xAB\xF9 |0
+<U6302> \xAC\x45 |0
+<U6303> \xCE\xD9 |0
+<U6307> \xAB\xFC |0
+<U6308> \xAE\xB2 |0
+<U6309> \xAB\xF6 |0
+<U630B> \xCE\xD6 |0
+<U630C> \xCE\xDD |0
+<U630D> \xCE\xD5 |0
+<U630E> \xCE\xD8 |0
+<U630F> \xCE\xDC |0
+<U6310> \xD1\xB2 |0
+<U6311> \xAC\x44 |0
+<U6313> \xCE\xE1 |0
+<U6314> \xCE\xE2 |0
+<U6315> \xCE\xE4 |0
+<U6316> \xAB\xF5 |0
+<U6318> \x8D\x7C |0
+<U6328> \xAE\xC1 |0
+<U6329> \xD1\xBE |0
+<U632A> \xAE\xBF |0
+<U632B> \xAE\xC0 |0
+<U632C> \xD1\xB4 |0
+<U632D> \xD1\xC4 |0
+<U632E> \x9E\xD6 |0
+<U632F> \xAE\xB6 |0
+<U6331> \x93\xAC |0
+<U6332> \xD5\x66 |0
+<U6333> \xD1\xC6 |0
+<U6334> \xD1\xC0 |0
+<U6335> \x9F\x5B |0
+<U6336> \xD1\xB7 |0
+<U6337> \x93\xA9 |0
+<U6338> \xD1\xC9 |0
+<U6339> \xD1\xBA |0
+<U633A> \xAE\xBC |0
+<U633B> \xD5\x7D |0
+<U633C> \xD1\xBD |0
+<U633D> \xAE\xBE |0
+<U633E> \xAE\xB5 |0
+<U6340> \xD1\xCB |0
+<U6341> \xD1\xBF |0
+<U6342> \xAE\xB8 |0
+<U6343> \xD1\xB8 |0
+<U6344> \xD1\xB5 |0
+<U6345> \xD1\xB6 |0
+<U6346> \xAE\xB9 |0
+<U6347> \xD1\xC5 |0
+<U6348> \xD1\xCC |0
+<U6349> \xAE\xBB |0
+<U634A> \xD1\xBC |0
+<U634B> \xD1\xBB |0
+<U634C> \xAE\xC3 |0
+<U634D> \xAE\xC2 |0
+<U634E> \xAE\xB4 |0
+<U634F> \xAE\xBA |0
+<U6350> \xAE\xBD |0
+<U6351> \xD1\xC8 |0
+<U6354> \xD1\xC2 |0
+<U6355> \xAE\xB7 |0
+<U6356> \xD1\xB3 |0
+<U6357> \xD1\xCA |0
+<U6358> \xD1\xC1 |0
+<U6359> \xD1\xC3 |0
+<U635A> \xD1\xC7 |0
+<U6364> \xA0\x7C |0
+<U6365> \xD5\x67 |0
+<U6367> \xB1\xB7 |0
+<U6368> \xB1\xCB |0
+<U6369> \xB1\xCA |0
+<U636B> \xB1\xBF |0
+<U636C> \xFC\xB2 |0
+<U636D> \xD5\x79 |0
+<U636E> \xD5\x75 |0
+<U636F> \xD5\x72 |0
+<U6370> \xD5\xA6 |0
+<U6371> \xB1\xBA |0
+<U6372> \xB1\xB2 |0
+<U6375> \xD5\x77 |0
+<U6376> \xB4\xA8 |0
+<U6377> \xB1\xB6 |0
+<U6378> \xD5\xA1 |0
+<U6379> \x8A\xC1 |0
+<U637A> \xB1\xCC |0
+<U637B> \xB1\xC9 |0
+<U637C> \xD5\x7B |0
+<U637D> \xD5\x6A |0
+<U637F> \x9F\xB4 |0
+<U6380> \xB1\xC8 |0
+<U6381> \xD5\xA3 |0
+<U6382> \xD5\x69 |0
+<U6383> \xB1\xBD |0
+<U6384> \xB1\xC1 |0
+<U6385> \xD5\xA2 |0
+<U6387> \xD5\x73 |0
+<U6388> \xB1\xC2 |0
+<U6389> \xB1\xBC |0
+<U638A> \xD5\x68 |0
+<U638B> \xFC\xAC |0
+<U638C> \xB4\x78 |0
+<U638D> \xD5\xA5 |0
+<U638E> \xD5\x71 |0
+<U638F> \xB1\xC7 |0
+<U6390> \xD5\x74 |0
+<U6391> \xD5\xA4 |0
+<U6392> \xB1\xC6 |0
+<U6394> \xD9\x52 |0
+<U6396> \xB1\xB3 |0
+<U6397> \xD5\x6F |0
+<U6398> \xB1\xB8 |0
+<U6399> \xB1\xC3 |0
+<U639B> \xB1\xBE |0
+<U639C> \xD5\x78 |0
+<U639D> \xD5\x6E |0
+<U639E> \xD5\x6C |0
+<U639F> \xD5\x7E |0
+<U63A0> \xB1\xB0 |0
+<U63A1> \xB1\xC4 |0
+<U63A2> \xB1\xB4 |0
+<U63A3> \xB4\x77 |0
+<U63A4> \xD5\x7C |0
+<U63A5> \xB1\xB5 |0
+<U63A7> \xB1\xB1 |0
+<U63A8> \xB1\xC0 |0
+<U63A9> \xB1\xBB |0
+<U63AA> \xB1\xB9 |0
+<U63AB> \xD5\x70 |0
+<U63AC> \xB1\xC5 |0
+<U63AD> \xD5\x6D |0
+<U63AE> \xD5\x7A |0
+<U63AF> \xD5\x76 |0
+<U63B0> \xD9\x54 |0
+<U63B1> \xD9\x53 |0
+<U63B9> \x9E\x4C |0
+<U63BD> \xD5\x6B |0
+<U63BE> \xD9\x64 |0
+<U63C0> \xB4\x7A |0
+<U63C1> \x8F\xC5 |0
+<U63C2> \xD9\x6A |0
+<U63C3> \xD9\x59 |0
+<U63C4> \xD9\x67 |0
+<U63C5> \xDD\x77 |0
+<U63C6> \xB4\x7D |0
+<U63C7> \xD9\x6B |0
+<U63C8> \xD9\x6E |0
+<U63C9> \xB4\x7C |0
+<U63CA> \xD9\x5C |0
+<U63CB> \xD9\x6D |0
+<U63CC> \xD9\x6C |0
+<U63CD> \xB4\x7E |0
+<U63CE> \xD9\x55 |0
+<U63CF> \xB4\x79 |0
+<U63D0> \xB4\xA3 |0
+<U63D1> \x93\xAD |0
+<U63D2> \xB4\xA1 |0
+<U63D3> \xD9\x69 |0
+<U63D5> \xD9\x5F |0
+<U63D6> \xB4\xA5 |0
+<U63D7> \xD9\x70 |0
+<U63D8> \xD9\x68 |0
+<U63D9> \xD9\x71 |0
+<U63DA> \xB4\xAD |0
+<U63DB> \xB4\xAB |0
+<U63DC> \xD9\x66 |0
+<U63DD> \xD9\x65 |0
+<U63DE> \x9D\xC3 |0
+<U63DF> \xD9\x63 |0
+<U63E0> \xD9\x5D |0
+<U63E1> \xB4\xA4 |0
+<U63E2> \x8D\xA2 |0
+<U63E3> \xB4\xA2 |0
+<U63E4> \xD1\xB9 |0
+<U63E5> \xD9\x56 |0
+<U63E6> \x9D\x4A |0
+<U63E7> \xDD\xB7 |0
+<U63E8> \xD9\x57 |0
+<U63E9> \xB4\x7B |0
+<U63EA> \xB4\xAA |0
+<U63EB> \xDD\x79 |0
+<U63ED> \xB4\xA6 |0
+<U63EE> \xB4\xA7 |0
+<U63EF> \xD9\x58 |0
+<U63F0> \xD9\x6F |0
+<U63F1> \xDD\x78 |0
+<U63F2> \xD9\x60 |0
+<U63F3> \xD9\x5B |0
+<U63F4> \xB4\xA9 |0
+<U63F5> \xD9\x61 |0
+<U63F6> \xD9\x5E |0
+<U63F8> \xFC\xB6 |0
+<U63F9> \xB4\xAE |0
+<U63FB> \x8D\xA3 |0
+<U63FC> \x9E\x4B |0
+<U63FE> \x9E\x4D |0
+<U6406> \xB7\x70 |0
+<U6407> \x8D\xA4 |0
+<U6409> \xDD\x7C |0
+<U640A> \xDD\xB1 |0
+<U640B> \xDD\xB6 |0
+<U640C> \xDD\xAA |0
+<U640D> \xB7\x6C |0
+<U640E> \xDD\xBB |0
+<U640F> \xB7\x69 |0
+<U6410> \xDD\x7A |0
+<U6412> \xDD\x7B |0
+<U6413> \xB7\x62 |0
+<U6414> \xB7\x6B |0
+<U6415> \xDD\xA4 |0
+<U6416> \xB7\x6E |0
+<U6417> \xB7\x6F |0
+<U6418> \xDD\xA5 |0
+<U641A> \xDD\xB2 |0
+<U641B> \xDD\xB8 |0
+<U641C> \xB7\x6A |0
+<U641E> \xB7\x64 |0
+<U641F> \xDD\xA3 |0
+<U6420> \xDD\x7D |0
+<U6421> \xDD\xBA |0
+<U6422> \xDD\xA8 |0
+<U6423> \xDD\xA9 |0
+<U6424> \xDD\x7E |0
+<U6425> \xDD\xB4 |0
+<U6426> \xDD\xAB |0
+<U6427> \xDD\xB5 |0
+<U6428> \xDD\xAD |0
+<U642A> \xB7\x65 |0
+<U642B> \xE1\xD9 |0
+<U642C> \xB7\x68 |0
+<U642D> \xB7\x66 |0
+<U642E> \xDD\xB9 |0
+<U642F> \xDD\xB0 |0
+<U6430> \xDD\xAC |0
+<U6432> \x8A\xFD |0
+<U6433> \xDD\xA1 |0
+<U6434> \xBA\x53 |0
+<U6435> \xDD\xAF |0
+<U6436> \xB7\x6D |0
+<U6437> \xDD\xA7 |0
+<U6438> \xFC\xB5 |0
+<U6439> \xDD\xA6 |0
+<U643A> \xFC\xC3 |0
+<U643B> \x93\xB2 |0
+<U643D> \xB7\x67 |0
+<U643E> \xB7\x63 |0
+<U643F> \xE1\xEE |0
+<U6440> \xDD\xB3 |0
+<U6441> \xDD\xAE |0
+<U6443> \xDD\xA2 |0
+<U644B> \xE1\xE9 |0
+<U644D> \xE1\xDA |0
+<U644E> \xE1\xE5 |0
+<U6450> \xE1\xEC |0
+<U6451> \xBA\x51 |0
+<U6452> \xB4\xAC |0
+<U6453> \xE1\xEA |0
+<U6454> \xBA\x4C |0
+<U6458> \xBA\x4B |0
+<U6459> \xE1\xF1 |0
+<U645A> \x8D\xA5 |0
+<U645B> \xE1\xDB |0
+<U645C> \xE1\xE8 |0
+<U645D> \xE1\xDC |0
+<U645E> \xE1\xE7 |0
+<U645F> \xBA\x4F |0
+<U6460> \xE1\xEB |0
+<U6461> \xD9\x62 |0
+<U6465> \xE1\xF2 |0
+<U6466> \xE1\xE3 |0
+<U6467> \xBA\x52 |0
+<U6468> \xE5\xBA |0
+<U6469> \xBC\xAF |0
+<U646B> \xE1\xF0 |0
+<U646C> \xE1\xEF |0
+<U646D> \xBA\x54 |0
+<U646E> \xE5\xAD |0
+<U646F> \xBC\xB0 |0
+<U6470> \xE5\xAE |0
+<U6471> \x93\xA1 |0
+<U6472> \xE1\xDF |0
+<U6473> \xE1\xE0 |0
+<U6474> \xE1\xDD |0
+<U6475> \xE1\xE2 |0
+<U6476> \xE1\xDE |0
+<U6477> \xE1\xF3 |0
+<U6478> \xBA\x4E |0
+<U6479> \xBC\xB1 |0
+<U647A> \xBA\x50 |0
+<U647B> \xBA\x55 |0
+<U647C> \x8A\xC6 |0
+<U647D> \xE1\xE1 |0
+<U647F> \xE1\xED |0
+<U6482> \xE1\xE6 |0
+<U6485> \xE5\xB1 |0
+<U6487> \xBA\x4A |0
+<U6488> \xBC\xB4 |0
+<U6489> \xE9\xAA |0
+<U648A> \xE5\xB6 |0
+<U648B> \xE5\xB5 |0
+<U648C> \xE5\xB7 |0
+<U648D> \x8A\x5B |0
+<U648F> \xE5\xB4 |0
+<U6490> \xBC\xB5 |0
+<U6491> \x89\x4D |0
+<U6492> \xBC\xBB |0
+<U6493> \xBC\xB8 |0
+<U6495> \xBC\xB9 |0
+<U6496> \xE5\xAF |0
+<U6497> \xE5\xB2 |0
+<U6498> \xE5\xBC |0
+<U6499> \xBC\xC1 |0
+<U649A> \xBC\xBF |0
+<U649C> \xE5\xB3 |0
+<U649D> \xD9\x5A |0
+<U649E> \xBC\xB2 |0
+<U649F> \xE5\xB9 |0
+<U64A0> \xE5\xB0 |0
+<U64A2> \xBC\xC2 |0
+<U64A3> \xE5\xB8 |0
+<U64A4> \xBA\x4D |0
+<U64A5> \xBC\xB7 |0
+<U64A6> \xE1\xE4 |0
+<U64A9> \xBC\xBA |0
+<U64AB> \xBC\xBE |0
+<U64AC> \xBC\xC0 |0
+<U64AD> \xBC\xBD |0
+<U64AE> \xBC\xBC |0
+<U64AF> \xFE\xD4 |0
+<U64B0> \xBC\xB6 |0
+<U64B1> \xE5\xBB |0
+<U64B2> \xBC\xB3 |0
+<U64B3> \xBC\xC3 |0
+<U64B4> \x8A\x78 |0
+<U64B6> \x93\xAB |0
+<U64BB> \xBE\xD8 |0
+<U64BC> \xBE\xD9 |0
+<U64BD> \xE9\xA9 |0
+<U64BE> \xBE\xE2 |0
+<U64BF> \xBE\xDF |0
+<U64C0> \x8D\xA7 |0
+<U64C1> \xBE\xD6 |0
+<U64C2> \xBE\xDD |0
+<U64C3> \xE9\xAB |0
+<U64C4> \xBE\xDB |0
+<U64C5> \xBE\xD5 |0
+<U64C7> \xBE\xDC |0
+<U64C9> \xE9\xA8 |0
+<U64CA> \xC0\xBB |0
+<U64CB> \xBE\xD7 |0
+<U64CD> \xBE\xDE |0
+<U64CE> \xC0\xBA |0
+<U64CF> \xE9\xA7 |0
+<U64D0> \xE9\xA6 |0
+<U64D2> \xBE\xE0 |0
+<U64D3> \x9F\x45 |0
+<U64D4> \xBE\xE1 |0
+<U64D6> \xE9\xA5 |0
+<U64D7> \xE9\xA4 |0
+<U64D8> \xC0\xBC |0
+<U64D9> \xE9\xAE |0
+<U64DA> \xBE\xDA |0
+<U64DB> \xE9\xAC |0
+<U64DD> \x8A\x56 |0
+<U64E0> \xC0\xBD |0
+<U64E1> \xFC\xBF |0
+<U64E2> \xC0\xC2 |0
+<U64E3> \xEC\xEA |0
+<U64E4> \xEC\xEC |0
+<U64E5> \xFC\xC0 |0
+<U64E6> \xC0\xBF |0
+<U64E7> \x8E\xE6 |0
+<U64E8> \xEC\xED |0
+<U64E9> \xEC\xE9 |0
+<U64EA> \x8A\xA4 |0
+<U64EB> \xEC\xEB |0
+<U64EC> \xC0\xC0 |0
+<U64ED> \xC0\xC3 |0
+<U64EF> \xEC\xE8 |0
+<U64F0> \xC0\xBE |0
+<U64F1> \xC0\xC1 |0
+<U64F2> \xC2\x59 |0
+<U64F3> \xE9\xAD |0
+<U64F4> \xC2\x58 |0
+<U64F7> \xC2\x5E |0
+<U64F8> \xEF\xD4 |0
+<U64FA> \xC2\x5C |0
+<U64FB> \xC2\x5D |0
+<U64FC> \xEF\xD7 |0
+<U64FD> \xEF\xD3 |0
+<U64FE> \xC2\x5A |0
+<U64FF> \xEF\xD1 |0
+<U6500> \xC3\x6B |0
+<U6501> \xEF\xD5 |0
+<U6503> \xEF\xD6 |0
+<U6504> \xEF\xD2 |0
+<U6506> \xC2\x5B |0
+<U6507> \xF2\x42 |0
+<U6509> \xF2\x45 |0
+<U650A> \x89\x43 |0
+<U650C> \xF2\x46 |0
+<U650D> \xF2\x44 |0
+<U650E> \xF2\x47 |0
+<U650F> \xC3\x6C |0
+<U6510> \xF2\x43 |0
+<U6511> \x93\xF3 |0
+<U6513> \xF4\x4E |0
+<U6514> \xC4\x64 |0
+<U6515> \xF4\x4D |0
+<U6516> \xF4\x4C |0
+<U6517> \xF4\x4B |0
+<U6518> \xC4\x63 |0
+<U6519> \xC4\x65 |0
+<U651B> \xF5\xCD |0
+<U651C> \xC4\xE2 |0
+<U651D> \xC4\xE1 |0
+<U651E> \xFC\xAB |0
+<U651F> \x9E\xA2 |0
+<U6520> \xF6\xE1 |0
+<U6521> \xF6\xE0 |0
+<U6522> \xF6\xE3 |0
+<U6523> \xC5\xCB |0
+<U6524> \xC5\x75 |0
+<U6525> \xF7\xDD |0
+<U6526> \xF6\xE2 |0
+<U6529> \xF7\xDC |0
+<U652A> \xC5\xCD |0
+<U652B> \xC5\xCC |0
+<U652C> \xC5\xF3 |0
+<U652D> \xF8\xA9 |0
+<U652E> \xF8\xEF |0
+<U652F> \xA4\xE4 |0
+<U6530> \x9D\xC7 |0
+<U6532> \xD9\x72 |0
+<U6533> \xE9\xAF |0
+<U6534> \xC6\xD2 |0
+<U6535> \x8B\xCE |0
+<U6536> \xA6\xAC |0
+<U6537> \xCA\xF7 |0
+<U6538> \xA7\xF1 |0
+<U6539> \xA7\xEF |0
+<U653B> \xA7\xF0 |0
+<U653D> \xCC\xC1 |0
+<U653E> \xA9\xF1 |0
+<U653F> \xAC\x46 |0
+<U6541> \xCE\xE7 |0
+<U6543> \xCE\xE8 |0
+<U6545> \xAC\x47 |0
+<U6546> \xD1\xCE |0
+<U6548> \xAE\xC4 |0
+<U6549> \xAE\xC5 |0
+<U654A> \xD1\xCD |0
+<U654D> \xFC\xC5 |0
+<U654F> \xB1\xD3 |0
+<U6551> \xB1\xCF |0
+<U6553> \xD5\xA7 |0
+<U6554> \xB1\xD6 |0
+<U6555> \xB1\xD5 |0
+<U6556> \xB1\xCE |0
+<U6557> \xB1\xD1 |0
+<U6558> \xB1\xD4 |0
+<U6559> \xB1\xD0 |0
+<U655C> \xD9\x76 |0
+<U655D> \xB1\xCD |0
+<U655E> \xB4\xAF |0
+<U655F> \xFC\xCB |0
+<U6562> \xB4\xB1 |0
+<U6563> \xB4\xB2 |0
+<U6564> \xD9\x75 |0
+<U6565> \xD9\x78 |0
+<U6566> \xB4\xB0 |0
+<U6567> \xD9\x73 |0
+<U6568> \xD9\x77 |0
+<U656A> \xD9\x74 |0
+<U656B> \x93\xB3 |0
+<U656C> \xB7\x71 |0
+<U656D> \xFC\xCA |0
+<U656F> \xDD\xBC |0
+<U6572> \xBA\x56 |0
+<U6573> \xE1\xF4 |0
+<U6574> \xBE\xE3 |0
+<U6575> \xBC\xC4 |0
+<U6576> \xE5\xBD |0
+<U6577> \xBC\xC5 |0
+<U6578> \xBC\xC6 |0
+<U6579> \xE5\xBF |0
+<U657A> \xE5\xBE |0
+<U657B> \xE5\xC0 |0
+<U657C> \xE9\xB1 |0
+<U657F> \xE9\xB0 |0
+<U6580> \xEC\xEF |0
+<U6581> \xEC\xEE |0
+<U6582> \xC0\xC4 |0
+<U6583> \xC0\xC5 |0
+<U6584> \xF2\x48 |0
+<U6585> \xFC\xC9 |0
+<U6586> \x8D\xAC |0
+<U6587> \xA4\xE5 |0
+<U6588> \xFB\xC6 |0
+<U6589> \x89\x67 |0
+<U658B> \x8C\x7E |0
+<U658C> \xD9\x79 |0
+<U6590> \xB4\xB4 |0
+<U6591> \xB4\xB3 |0
+<U6592> \xDD\xBD |0
+<U6594> \xEF\xD8 |0
+<U6595> \xC4\xE3 |0
+<U6596> \xF7\xDE |0
+<U6597> \xA4\xE6 |0
+<U6599> \xAE\xC6 |0
+<U659B> \xB1\xD8 |0
+<U659C> \xB1\xD7 |0
+<U659D> \xD9\x7A |0
+<U659E> \xD9\x7B |0
+<U659F> \xB7\x72 |0
+<U65A0> \xE1\xF5 |0
+<U65A1> \xBA\x57 |0
+<U65A2> \xE9\xB2 |0
+<U65A4> \xA4\xE7 |0
+<U65A5> \xA5\xB8 |0
+<U65A7> \xA9\xF2 |0
+<U65A8> \xCC\xC2 |0
+<U65AA> \xCE\xE9 |0
+<U65AB> \xAC\x48 |0
+<U65AC> \xB1\xD9 |0
+<U65AE> \xD9\x7C |0
+<U65AF> \xB4\xB5 |0
+<U65B0> \xB7\x73 |0
+<U65B2> \xE5\xC1 |0
+<U65B3> \xE5\xC2 |0
+<U65B5> \xFC\xCD |0
+<U65B6> \xEC\xF0 |0
+<U65B7> \xC2\x5F |0
+<U65B8> \xF8\xF0 |0
+<U65B9> \xA4\xE8 |0
+<U65BB> \xCC\xC3 |0
+<U65BC> \xA9\xF3 |0
+<U65BD> \xAC\x49 |0
+<U65BE> \x9C\xF3 |0
+<U65BF> \xCE\xEA |0
+<U65C1> \xAE\xC7 |0
+<U65C2> \xD1\xD2 |0
+<U65C3> \xD1\xD0 |0
+<U65C4> \xD1\xD1 |0
+<U65C5> \xAE\xC8 |0
+<U65C6> \xD1\xCF |0
+<U65CB> \xB1\xDB |0
+<U65CC> \xB1\xDC |0
+<U65CD> \xD5\xA8 |0
+<U65CE> \xB1\xDD |0
+<U65CF> \xB1\xDA |0
+<U65D0> \xD9\x7D |0
+<U65D1> \xFC\xD0 |0
+<U65D2> \xD9\x7E |0
+<U65D3> \xDD\xBE |0
+<U65D4> \x95\xBB |0
+<U65D6> \xBA\x59 |0
+<U65D7> \xBA\x58 |0
+<U65DA> \xEC\xF1 |0
+<U65DB> \xEF\xD9 |0
+<U65DD> \xF2\x4A |0
+<U65DE> \xF2\x49 |0
+<U65DF> \xF4\x4F |0
+<U65E0> \xFC\xD3 |0
+<U65E1> \xC9\x5E |0
+<U65E2> \xAC\x4A |0
+<U65E3> \xFC\xD4 |0
+<U65E5> \xA4\xE9 |0
+<U65E6> \xA5\xB9 |0
+<U65E8> \xA6\xAE |0
+<U65E9> \xA6\xAD |0
+<U65EC> \xA6\xAF |0
+<U65ED> \xA6\xB0 |0
+<U65EE> \xC9\xEE |0
+<U65EF> \xC9\xED |0
+<U65F0> \xCA\xF8 |0
+<U65F1> \xA7\xF2 |0
+<U65F2> \xCA\xFB |0
+<U65F3> \xCA\xFA |0
+<U65F4> \xCA\xF9 |0
+<U65F5> \xCA\xFC |0
+<U65FA> \xA9\xF4 |0
+<U65FB> \xCC\xC9 |0
+<U65FC> \xCC\xC5 |0
+<U65FD> \xCC\xCE |0
+<U65FF> \x8D\xAE |0
+<U6600> \xA9\xFB |0
+<U6602> \xA9\xF9 |0
+<U6603> \xCC\xCA |0
+<U6604> \xCC\xC6 |0
+<U6605> \xCC\xCD |0
+<U6606> \xA9\xF8 |0
+<U6607> \xAA\x40 |0
+<U6608> \xCC\xC8 |0
+<U6609> \xCC\xC4 |0
+<U660A> \xA9\xFE |0
+<U660B> \xCC\xCB |0
+<U660C> \xA9\xF7 |0
+<U660D> \xCC\xCC |0
+<U660E> \xA9\xFA |0
+<U660F> \xA9\xFC |0
+<U6610> \xCC\xD0 |0
+<U6611> \xCC\xCF |0
+<U6612> \xCC\xC7 |0
+<U6613> \xA9\xF6 |0
+<U6614> \xA9\xF5 |0
+<U6615> \xA9\xFD |0
+<U6618> \xFC\xD7 |0
+<U661C> \xCE\xEF |0
+<U661D> \xCE\xF5 |0
+<U661E> \x93\xDB |0
+<U661F> \xAC\x50 |0
+<U6620> \xAC\x4D |0
+<U6621> \xCE\xEC |0
+<U6622> \xCE\xF1 |0
+<U6623> \xFE\x63 |0
+<U6624> \xAC\x53 |0
+<U6625> \xAC\x4B |0
+<U6626> \xCE\xF0 |0
+<U6627> \xAC\x4E |0
+<U6628> \xAC\x51 |0
+<U662B> \xCE\xF3 |0
+<U662D> \xAC\x4C |0
+<U662E> \xCE\xF8 |0
+<U662F> \xAC\x4F |0
+<U6630> \x93\xD5 |0
+<U6631> \xAC\x52 |0
+<U6632> \xCE\xED |0
+<U6633> \xCE\xF2 |0
+<U6634> \xCE\xF6 |0
+<U6635> \xCE\xEE |0
+<U6636> \xCE\xEB |0
+<U6639> \xCE\xF7 |0
+<U663A> \xCE\xF4 |0
+<U6641> \xAE\xD0 |0
+<U6642> \xAE\xC9 |0
+<U6643> \xAE\xCC |0
+<U6644> \xFC\xDA |0
+<U6645> \xAE\xCF |0
+<U6647> \xD1\xD5 |0
+<U6648> \x9B\x71 |0
+<U6649> \xAE\xCA |0
+<U664A> \xD1\xD3 |0
+<U664B> \xFC\xDD |0
+<U664C> \xAE\xCE |0
+<U664F> \xAE\xCB |0
+<U6651> \xD1\xD6 |0
+<U6652> \xAE\xCD |0
+<U6653> \x8D\xAF |0
+<U6657> \xFA\xF2 |0
+<U6659> \xD5\xAC |0
+<U665A> \xB1\xDF |0
+<U665B> \xD5\xAB |0
+<U665C> \xD5\xAD |0
+<U665D> \xB1\xDE |0
+<U665E> \xB1\xE3 |0
+<U665F> \xD1\xD4 |0
+<U6661> \xD5\xAA |0
+<U6662> \xD5\xAE |0
+<U6663> \x93\xD8 |0
+<U6664> \xB1\xE0 |0
+<U6665> \xD5\xA9 |0
+<U6666> \xB1\xE2 |0
+<U6667> \xFC\xDF |0
+<U6668> \xB1\xE1 |0
+<U666A> \xD9\xA7 |0
+<U666B> \x93\xD3 |0
+<U666C> \xD9\xA2 |0
+<U666E> \xB4\xB6 |0
+<U666F> \xB4\xBA |0
+<U6670> \xB4\xB7 |0
+<U6671> \xD9\xA5 |0
+<U6672> \xD9\xA8 |0
+<U6673> \xFC\xE1 |0
+<U6674> \xB4\xB8 |0
+<U6676> \xB4\xB9 |0
+<U6677> \xB4\xBE |0
+<U6678> \xDD\xC7 |0
+<U6679> \xD9\xA6 |0
+<U667A> \xB4\xBC |0
+<U667B> \xD9\xA3 |0
+<U667C> \xD9\xA1 |0
+<U667D> \x8E\x76 |0
+<U667E> \xB4\xBD |0
+<U6680> \xD9\xA4 |0
+<U6684> \xB7\x79 |0
+<U6685> \xFC\x62 |0
+<U6686> \xDD\xBF |0
+<U6687> \xB7\x76 |0
+<U6688> \xB7\x77 |0
+<U6689> \xB7\x75 |0
+<U668A> \xDD\xC4 |0
+<U668B> \xDD\xC3 |0
+<U668C> \xDD\xC0 |0
+<U668D> \xB7\x7B |0
+<U668E> \x93\xD1 |0
+<U6690> \xDD\xC2 |0
+<U6691> \xB4\xBB |0
+<U6692> \x8D\xB1 |0
+<U6694> \xDD\xC6 |0
+<U6695> \xDD\xC1 |0
+<U6696> \xB7\x78 |0
+<U6697> \xB7\x74 |0
+<U6698> \xB7\x7A |0
+<U6699> \xDD\xC5 |0
+<U669A> \x98\x59 |0
+<U669D> \xBA\x5C |0
+<U669F> \xE1\xF8 |0
+<U66A0> \xE1\xF7 |0
+<U66A1> \xE1\xF6 |0
+<U66A2> \xBA\x5A |0
+<U66A4> \xFB\x52 |0
+<U66A8> \xBA\x5B |0
+<U66A9> \xE5\xC5 |0
+<U66AA> \xE5\xC8 |0
+<U66AB> \xBC\xC8 |0
+<U66AD> \xFB\x53 |0
+<U66AE> \xBC\xC7 |0
+<U66AF> \xE5\xC9 |0
+<U66B0> \xE5\xC4 |0
+<U66B1> \xBC\xCA |0
+<U66B2> \xE5\xC6 |0
+<U66B3> \xFB\x4D |0
+<U66B4> \xBC\xC9 |0
+<U66B5> \xE5\xC3 |0
+<U66B6> \x9C\xBF |0
+<U66B7> \xE5\xC7 |0
+<U66B8> \xBE\xE9 |0
+<U66B9> \xBE\xE6 |0
+<U66BA> \xE9\xBB |0
+<U66BB> \xE9\xBA |0
+<U66BD> \xE9\xB9 |0
+<U66BE> \xE9\xB4 |0
+<U66BF> \x9B\x72 |0
+<U66C0> \xE9\xB5 |0
+<U66C4> \xBE\xE7 |0
+<U66C6> \xBE\xE4 |0
+<U66C7> \xBE\xE8 |0
+<U66C8> \xE9\xB3 |0
+<U66C9> \xBE\xE5 |0
+<U66CA> \xE9\xB6 |0
+<U66CB> \xE9\xB7 |0
+<U66CC> \xE9\xBC |0
+<U66CD> \xFB\x50 |0
+<U66CE> \x93\xBE |0
+<U66CF> \xE9\xB8 |0
+<U66D2> \xEC\xF2 |0
+<U66D6> \xC0\xC7 |0
+<U66D8> \xEF\xDC |0
+<U66D9> \xC0\xC6 |0
+<U66DA> \xEF\xDA |0
+<U66DB> \xEF\xDB |0
+<U66DC> \xC2\x60 |0
+<U66DD> \xC3\x6E |0
+<U66DE> \xF2\x4B |0
+<U66E0> \xC3\x6D |0
+<U66E3> \xF4\x51 |0
+<U66E4> \xF4\x52 |0
+<U66E6> \xC4\x66 |0
+<U66E8> \xF4\x50 |0
+<U66E9> \xC4\xE4 |0
+<U66EB> \xF7\xDF |0
+<U66EC> \xC5\xCE |0
+<U66ED> \xF8\xAA |0
+<U66EE> \xF8\xAB |0
+<U66F0> \xA4\xEA |0
+<U66F1> \x9D\xF1 |0
+<U66F2> \xA6\xB1 |0
+<U66F3> \xA6\xB2 |0
+<U66F4> \xA7\xF3 |0
+<U66F6> \xCC\xD1 |0
+<U66F7> \xAC\x54 |0
+<U66F8> \xAE\xD1 |0
+<U66F9> \xB1\xE4 |0
+<U66FC> \xB0\xD2 |0
+<U66FE> \xB4\xBF |0
+<U66FF> \xB4\xC0 |0
+<U6700> \xB3\xCC |0
+<U6701> \xD9\xA9 |0
+<U6702> \xFC\xEB |0
+<U6703> \xB7\x7C |0
+<U6704> \xE1\xFA |0
+<U6705> \xE1\xF9 |0
+<U6708> \xA4\xEB |0
+<U6709> \xA6\xB3 |0
+<U670A> \xCC\xD2 |0
+<U670B> \xAA\x42 |0
+<U670C> \xA0\xBB |0
+<U670D> \xAA\x41 |0
+<U670E> \x9B\x7E |0
+<U670F> \xCE\xF9 |0
+<U6710> \xCE\xFA |0
+<U6712> \xD1\xD7 |0
+<U6713> \xD1\xD8 |0
+<U6714> \xAE\xD2 |0
+<U6715> \xAE\xD3 |0
+<U6716> \x8D\xB3 |0
+<U6717> \xAE\xD4 |0
+<U6718> \xD5\xAF |0
+<U6719> \x8C\x52 |0
+<U671B> \xB1\xE6 |0
+<U671D> \xB4\xC2 |0
+<U671E> \x9A\xE8 |0
+<U671F> \xB4\xC1 |0
+<U6720> \xDD\xC8 |0
+<U6721> \xDF\x7A |0
+<U6722> \xE1\xFB |0
+<U6723> \xE9\xBD |0
+<U6725> \x8E\xDC |0
+<U6726> \xC2\x61 |0
+<U6727> \xC4\x67 |0
+<U6728> \xA4\xEC |0
+<U672A> \xA5\xBC |0
+<U672B> \xA5\xBD |0
+<U672C> \xA5\xBB |0
+<U672D> \xA5\xBE |0
+<U672E> \xA5\xBA |0
+<U6731> \xA6\xB6 |0
+<U6733> \xC9\xF6 |0
+<U6734> \xA6\xB5 |0
+<U6735> \xA6\xB7 |0
+<U6736> \x9C\xF9 |0
+<U6738> \xC9\xF1 |0
+<U6739> \xC9\xF0 |0
+<U673A> \xC9\xF3 |0
+<U673B> \xC9\xF2 |0
+<U673C> \xC9\xF5 |0
+<U673D> \xA6\xB4 |0
+<U673E> \xC9\xEF |0
+<U673F> \xC9\xF4 |0
+<U6744> \xFA\x50 |0
+<U6745> \xCA\xFD |0
+<U6746> \xA7\xFD |0
+<U6747> \xCA\xFE |0
+<U6748> \xCB\x43 |0
+<U6749> \xA7\xFC |0
+<U674B> \xCB\x47 |0
+<U674C> \xCB\x42 |0
+<U674D> \xCB\x45 |0
+<U674E> \xA7\xF5 |0
+<U674F> \xA7\xF6 |0
+<U6750> \xA7\xF7 |0
+<U6751> \xA7\xF8 |0
+<U6753> \xA8\x40 |0
+<U6755> \xCB\x41 |0
+<U6756> \xA7\xFA |0
+<U6757> \xA8\x41 |0
+<U6759> \xCB\x40 |0
+<U675A> \xCB\x46 |0
+<U675C> \xA7\xF9 |0
+<U675D> \xCB\x44 |0
+<U675E> \xA7\xFB |0
+<U675F> \xA7\xF4 |0
+<U6760> \xA7\xFE |0
+<U6761> \x98\xE7 |0
+<U6762> \xFC\xF3 |0
+<U6767> \xFC\xF2 |0
+<U676A> \xAA\x57 |0
+<U676B> \x8C\xCA |0
+<U676C> \xCC\xD4 |0
+<U676D> \xAA\x43 |0
+<U676F> \xAA\x4D |0
+<U6770> \xAA\x4E |0
+<U6771> \xAA\x46 |0
+<U6772> \xAA\x58 |0
+<U6773> \xAA\x48 |0
+<U6774> \xCC\xDC |0
+<U6775> \xAA\x53 |0
+<U6776> \xCC\xD7 |0
+<U6777> \xAA\x49 |0
+<U6778> \xCC\xE6 |0
+<U6779> \xCC\xE7 |0
+<U677A> \xCC\xDF |0
+<U677B> \xCC\xD8 |0
+<U677C> \xAA\x56 |0
+<U677D> \xCC\xE4 |0
+<U677E> \xAA\x51 |0
+<U677F> \xAA\x4F |0
+<U6781> \xCC\xE5 |0
+<U6783> \xCC\xE3 |0
+<U6784> \xCC\xDB |0
+<U6785> \xCC\xD3 |0
+<U6786> \xCC\xDA |0
+<U6787> \xAA\x4A |0
+<U6789> \xAA\x50 |0
+<U678B> \xAA\x44 |0
+<U678C> \xCC\xDE |0
+<U678D> \xCC\xDD |0
+<U678E> \xCC\xD5 |0
+<U678F> \x93\xE5 |0
+<U6790> \xAA\x52 |0
+<U6791> \xCC\xE1 |0
+<U6792> \xCC\xD6 |0
+<U6793> \xAA\x55 |0
+<U6794> \xCC\xE8 |0
+<U6795> \xAA\x45 |0
+<U6797> \xAA\x4C |0
+<U6798> \xCC\xD9 |0
+<U6799> \xCC\xE2 |0
+<U679A> \xAA\x54 |0
+<U679C> \xAA\x47 |0
+<U679D> \xAA\x4B |0
+<U679F> \xCC\xE0 |0
+<U67A0> \x9A\x59 |0
+<U67A4> \x8D\xB5 |0
+<U67AC> \xFD\x4D |0
+<U67AE> \xCF\x5B |0
+<U67AF> \xAC\x5C |0
+<U67B0> \xAC\x69 |0
+<U67B1> \xFD\x5E |0
+<U67B2> \xCF\x56 |0
+<U67B3> \xCF\x4C |0
+<U67B4> \xAC\x62 |0
+<U67B5> \xCF\x4A |0
+<U67B6> \xAC\x5B |0
+<U67B7> \xCF\x45 |0
+<U67B8> \xAC\x65 |0
+<U67B9> \xCF\x52 |0
+<U67BA> \xCE\xFE |0
+<U67BB> \xCF\x41 |0
+<U67BF> \x8F\x7D |0
+<U67C0> \xCF\x44 |0
+<U67C1> \xCE\xFB |0
+<U67C2> \xCF\x51 |0
+<U67C3> \xCF\x61 |0
+<U67C4> \xAC\x60 |0
+<U67C5> \xCF\x46 |0
+<U67C6> \xCF\x58 |0
+<U67C8> \xCE\xFD |0
+<U67C9> \xCF\x5F |0
+<U67CA> \xCF\x60 |0
+<U67CB> \xCF\x63 |0
+<U67CC> \xCF\x5A |0
+<U67CD> \xCF\x4B |0
+<U67CE> \xCF\x53 |0
+<U67CF> \xAC\x66 |0
+<U67D0> \xAC\x59 |0
+<U67D1> \xAC\x61 |0
+<U67D2> \xAC\x6D |0
+<U67D3> \xAC\x56 |0
+<U67D4> \xAC\x58 |0
+<U67D6> \x95\x47 |0
+<U67D7> \xFC\xF6 |0
+<U67D8> \xCF\x43 |0
+<U67D9> \xAC\x6A |0
+<U67DA> \xAC\x63 |0
+<U67DB> \xCF\x5D |0
+<U67DC> \xCF\x40 |0
+<U67DD> \xAC\x6C |0
+<U67DE> \xAC\x67 |0
+<U67DF> \xCF\x49 |0
+<U67E2> \xAC\x6B |0
+<U67E3> \xCF\x50 |0
+<U67E4> \xCF\x48 |0
+<U67E5> \xAC\x64 |0
+<U67E6> \xCF\x5C |0
+<U67E7> \xCF\x54 |0
+<U67E9> \xAC\x5E |0
+<U67EA> \xCF\x62 |0
+<U67EB> \xCF\x47 |0
+<U67EC> \xAC\x5A |0
+<U67ED> \xCF\x59 |0
+<U67EE> \xCF\x4F |0
+<U67EF> \xAC\x5F |0
+<U67F0> \xCF\x55 |0
+<U67F1> \xAC\x57 |0
+<U67F2> \xCE\xFC |0
+<U67F3> \xAC\x68 |0
+<U67F4> \xAE\xE3 |0
+<U67F5> \xAC\x5D |0
+<U67F6> \xCF\x4E |0
+<U67F7> \xCF\x4D |0
+<U67F8> \xCF\x42 |0
+<U67F9> \x92\x50 |0
+<U67FA> \xCF\x5E |0
+<U67FC> \xCF\x57 |0
+<U67FE> \x89\x68 |0
+<U67FF> \xAC\x55 |0
+<U6800> \x8D\xB6 |0
+<U6801> \xFC\xFB |0
+<U6802> \xA0\x7D |0
+<U6803> \x98\xFC |0
+<U6804> \x89\x69 |0
+<U680D> \xFE\x4F |0
+<U6810> \x92\x56 |0
+<U6812> \xD1\xEC |0
+<U6813> \xAE\xEA |0
+<U6814> \xD1\xED |0
+<U6816> \xD1\xE1 |0
+<U6817> \xAE\xDF |0
+<U6818> \xAE\xEB |0
+<U681A> \xD1\xDA |0
+<U681B> \xFA\xC9 |0
+<U681C> \xD1\xE3 |0
+<U681D> \xD1\xEB |0
+<U681E> \x93\xE8 |0
+<U681F> \xD1\xD9 |0
+<U6820> \xD1\xF4 |0
+<U6821> \xAE\xD5 |0
+<U6822> \xFC\xF8 |0
+<U6825> \xD1\xF3 |0
+<U6826> \xD1\xEE |0
+<U6828> \xD1\xEF |0
+<U6829> \xAE\xDD |0
+<U682A> \xAE\xE8 |0
+<U682B> \xD1\xE5 |0
+<U682D> \xD1\xE6 |0
+<U682E> \xD1\xF0 |0
+<U682F> \xD1\xE7 |0
+<U6831> \xD1\xE2 |0
+<U6832> \xD1\xDC |0
+<U6833> \xD1\xDD |0
+<U6834> \xD1\xEA |0
+<U6835> \xD1\xE4 |0
+<U6836> \x9C\xE3 |0
+<U6837> \xFD\xA9 |0
+<U6838> \xAE\xD6 |0
+<U6839> \xAE\xDA |0
+<U683A> \xD1\xF2 |0
+<U683B> \xD1\xDE |0
+<U683C> \xAE\xE6 |0
+<U683D> \xAE\xE2 |0
+<U683E> \xFC\x44 |0
+<U6840> \xAE\xE5 |0
+<U6841> \xAE\xEC |0
+<U6842> \xAE\xDB |0
+<U6843> \xAE\xE7 |0
+<U6844> \xD1\xE9 |0
+<U6845> \xAE\xE9 |0
+<U6846> \xAE\xD8 |0
+<U6847> \x96\x40 |0
+<U6848> \xAE\xD7 |0
+<U6849> \xD1\xDB |0
+<U684A> \x8D\xB8 |0
+<U684B> \xD1\xDF |0
+<U684C> \xAE\xE0 |0
+<U684D> \xD1\xF1 |0
+<U684E> \xD1\xE8 |0
+<U684F> \xD1\xE0 |0
+<U6850> \xAE\xE4 |0
+<U6851> \xAE\xE1 |0
+<U6853> \xAE\xD9 |0
+<U6854> \xAE\xDC |0
+<U6855> \x9B\x4A |0
+<U6856> \x8F\xB9 |0
+<U685D> \xFC\xFE |0
+<U6865> \x89\x6A |0
+<U686B> \xD5\xC4 |0
+<U686D> \xD5\xB4 |0
+<U686E> \xD5\xB5 |0
+<U686F> \xD5\xB9 |0
+<U6871> \xD5\xC8 |0
+<U6872> \xD5\xC5 |0
+<U6874> \xD5\xBE |0
+<U6875> \xD5\xBD |0
+<U6876> \xB1\xED |0
+<U6877> \xD5\xC1 |0
+<U6878> \xD5\xD0 |0
+<U6879> \xD5\xB0 |0
+<U687B> \xD5\xD1 |0
+<U687C> \xD5\xC3 |0
+<U687D> \xD5\xD5 |0
+<U687E> \xD5\xC9 |0
+<U687F> \xB1\xEC |0
+<U6880> \xD5\xC7 |0
+<U6881> \xB1\xE7 |0
+<U6882> \xB1\xFC |0
+<U6883> \xB1\xF2 |0
+<U6884> \x8D\xB9 |0
+<U6885> \xB1\xF6 |0
+<U6886> \xB1\xF5 |0
+<U6887> \xD5\xB1 |0
+<U6888> \x91\x7E |0
+<U6889> \xD5\xCE |0
+<U688A> \xD5\xD4 |0
+<U688B> \xD5\xCC |0
+<U688C> \xD5\xD3 |0
+<U688F> \xD5\xC0 |0
+<U6890> \xD5\xB2 |0
+<U6891> \xD5\xD2 |0
+<U6892> \xD5\xC2 |0
+<U6893> \xB1\xEA |0
+<U6894> \xB1\xF7 |0
+<U6896> \xD5\xCB |0
+<U6897> \xB1\xF0 |0
+<U6898> \x93\xF4 |0
+<U689B> \xD5\xCA |0
+<U689C> \xD5\xB3 |0
+<U689D> \xB1\xF8 |0
+<U689F> \xB1\xFA |0
+<U68A0> \xD5\xCD |0
+<U68A1> \xB1\xFB |0
+<U68A2> \xB1\xE9 |0
+<U68A3> \xD5\xBA |0
+<U68A4> \xD5\xCF |0
+<U68A6> \xFB\x7C |0
+<U68A7> \xB1\xEF |0
+<U68A8> \xB1\xF9 |0
+<U68A9> \xD5\xBC |0
+<U68AA> \xD5\xC6 |0
+<U68AB> \xD5\xB7 |0
+<U68AC> \xD5\xBB |0
+<U68AD> \xB1\xF4 |0
+<U68AE> \xD5\xB6 |0
+<U68AF> \xB1\xE8 |0
+<U68B0> \xB1\xF1 |0
+<U68B1> \xB1\xEE |0
+<U68B2> \xD5\xBF |0
+<U68B3> \xAE\xDE |0
+<U68B4> \xD9\xC0 |0
+<U68B5> \xB1\xEB |0
+<U68B6> \x93\xE7 |0
+<U68B9> \x97\xEF |0
+<U68BD> \xFE\x4A |0
+<U68C3> \xFD\x45 |0
+<U68C4> \xB1\xF3 |0
+<U68C5> \x96\xA5 |0
+<U68C6> \xD9\xC3 |0
+<U68C7> \xD9\xD9 |0
+<U68C8> \xD9\xCE |0
+<U68C9> \xB4\xD6 |0
+<U68CA> \xFE\xE0 |0
+<U68CB> \xB4\xD1 |0
+<U68CC> \xD9\xBD |0
+<U68CD> \xB4\xD2 |0
+<U68CE> \xD9\xCD |0
+<U68D0> \xD9\xC6 |0
+<U68D1> \xD9\xD3 |0
+<U68D2> \xB4\xCE |0
+<U68D3> \xD9\xAB |0
+<U68D4> \xD9\xD5 |0
+<U68D5> \xB4\xC4 |0
+<U68D6> \xD9\xB3 |0
+<U68D7> \xB4\xC7 |0
+<U68D8> \xB4\xC6 |0
+<U68DA> \xB4\xD7 |0
+<U68DC> \xD9\xAD |0
+<U68DD> \xD9\xCF |0
+<U68DE> \xD9\xD0 |0
+<U68DF> \xB4\xC9 |0
+<U68E0> \xB4\xC5 |0
+<U68E1> \xD9\xBB |0
+<U68E3> \xB4\xD0 |0
+<U68E4> \xD9\xB6 |0
+<U68E6> \xD9\xD1 |0
+<U68E7> \xB4\xCC |0
+<U68E8> \xD9\xC9 |0
+<U68E9> \xD9\xD6 |0
+<U68EA> \xD9\xB0 |0
+<U68EB> \xD9\xB5 |0
+<U68EC> \xD9\xAF |0
+<U68EE> \xB4\xCB |0
+<U68EF> \xD9\xC2 |0
+<U68F0> \xDD\xDE |0
+<U68F1> \xD9\xB1 |0
+<U68F2> \xB4\xCF |0
+<U68F3> \xD9\xBA |0
+<U68F4> \xD9\xD2 |0
+<U68F5> \xB4\xCA |0
+<U68F6> \xD9\xB7 |0
+<U68F7> \xD9\xB4 |0
+<U68F8> \xD9\xC5 |0
+<U68F9> \xB4\xCD |0
+<U68FA> \xB4\xC3 |0
+<U68FB> \xB4\xD9 |0
+<U68FC> \xD9\xC8 |0
+<U68FD> \xD9\xC7 |0
+<U6900> \xFD\x48 |0
+<U6901> \xFD\x47 |0
+<U6902> \xFE\xF2 |0
+<U6903> \xFE\x6A |0
+<U6904> \xD9\xAC |0
+<U6905> \xB4\xC8 |0
+<U6906> \xD9\xD4 |0
+<U6907> \xD9\xBC |0
+<U6908> \xD9\xBE |0
+<U6909> \x8D\xBD |0
+<U690A> \xD9\xCB |0
+<U690B> \xD9\xCA |0
+<U690C> \xD9\xAA |0
+<U690D> \xB4\xD3 |0
+<U690E> \xB4\xD5 |0
+<U690F> \xD9\xB2 |0
+<U6910> \xD9\xB9 |0
+<U6911> \xD9\xC1 |0
+<U6912> \xB4\xD4 |0
+<U6913> \xD9\xB8 |0
+<U6914> \xD9\xC4 |0
+<U6915> \xD9\xD7 |0
+<U6917> \xD9\xCC |0
+<U6918> \x9B\xA1 |0
+<U6919> \x8C\xA2 |0
+<U691A> \x9A\xB7 |0
+<U691B> \x8E\xFC |0
+<U6925> \xD9\xD8 |0
+<U692A> \xD9\xAE |0
+<U692C> \x9F\xA1 |0
+<U692F> \xDD\xF2 |0
+<U6930> \xB7\xA6 |0
+<U6932> \xDD\xF0 |0
+<U6933> \xDD\xDB |0
+<U6934> \xDD\xE0 |0
+<U6935> \xDD\xD9 |0
+<U6936> \xFD\x51 |0
+<U6937> \xDD\xEC |0
+<U6938> \xDD\xCB |0
+<U6939> \xDD\xD2 |0
+<U693B> \xDD\xEA |0
+<U693C> \xDD\xF4 |0
+<U693D> \xDD\xDC |0
+<U693E> \xFA\xAD |0
+<U693F> \xDD\xCF |0
+<U6940> \xDD\xE2 |0
+<U6941> \xDD\xE7 |0
+<U6942> \xDD\xD3 |0
+<U6943> \x8D\xBE |0
+<U6944> \xDD\xE4 |0
+<U6945> \xDD\xD0 |0
+<U6946> \x89\xA4 |0
+<U6948> \xDD\xD7 |0
+<U6949> \xDD\xD8 |0
+<U694A> \xB7\xA8 |0
+<U694B> \xDD\xEB |0
+<U694C> \xDD\xE9 |0
+<U694E> \xDD\xCC |0
+<U694F> \xDD\xEE |0
+<U6951> \xDD\xEF |0
+<U6952> \xDD\xF1 |0
+<U6953> \xB7\xAC |0
+<U6954> \xB7\xA4 |0
+<U6955> \x9A\xD9 |0
+<U6956> \xD5\xB8 |0
+<U6957> \xDD\xD4 |0
+<U6958> \xDD\xE6 |0
+<U6959> \xDD\xD5 |0
+<U695A> \xB7\xA1 |0
+<U695B> \xB7\xB1 |0
+<U695C> \xDD\xED |0
+<U695D> \xB7\xAF |0
+<U695E> \xB7\xAB |0
+<U695F> \xDD\xCA |0
+<U6960> \xB7\xA3 |0
+<U6961> \xFD\x4E |0
+<U6962> \xDD\xCD |0
+<U6963> \xB7\xB0 |0
+<U6964> \x8D\xC0 |0
+<U6965> \xDD\xDD |0
+<U6966> \xDD\xC9 |0
+<U6967> \x97\xF0 |0
+<U6968> \xB7\xA9 |0
+<U6969> \xDD\xE1 |0
+<U696A> \xDD\xD1 |0
+<U696B> \xB7\xAA |0
+<U696C> \xDD\xDA |0
+<U696D> \xB7\x7E |0
+<U696E> \xB4\xD8 |0
+<U696F> \xDD\xE3 |0
+<U6970> \xD9\xBF |0
+<U6971> \xDD\xCE |0
+<U6972> \x93\xB4 |0
+<U6973> \xFD\x44 |0
+<U6974> \xDD\xE8 |0
+<U6975> \xB7\xA5 |0
+<U6976> \xDD\xE5 |0
+<U6977> \xB7\xA2 |0
+<U6978> \xDD\xDF |0
+<U6979> \xB7\xAD |0
+<U697A> \xDD\xD6 |0
+<U697B> \xDD\xF3 |0
+<U6980> \x9F\xA7 |0
+<U6982> \xB7\xA7 |0
+<U6983> \xDE\xC6 |0
+<U6985> \x8D\xC2 |0
+<U6986> \xB7\xAE |0
+<U698A> \x99\xB6 |0
+<U698D> \xE2\x4A |0
+<U698E> \xE2\x48 |0
+<U6990> \xE2\x5E |0
+<U6991> \xE2\x46 |0
+<U6993> \xE2\x58 |0
+<U6994> \xB7\x7D |0
+<U6995> \xBA\x5F |0
+<U6996> \xE2\x42 |0
+<U6997> \xE2\x5D |0
+<U6998> \xFD\x52 |0
+<U6999> \xE2\x47 |0
+<U699A> \xE2\x55 |0
+<U699B> \xBA\x64 |0
+<U699C> \xBA\x5D |0
+<U699E> \xE2\x5B |0
+<U699F> \x8D\xC1 |0
+<U69A0> \xE2\x40 |0
+<U69A1> \xE2\x5A |0
+<U69A2> \x8E\x46 |0
+<U69A3> \xBA\x6F |0
+<U69A4> \xE2\x51 |0
+<U69A5> \xE2\x61 |0
+<U69A6> \xBA\x6D |0
+<U69A7> \xE2\x49 |0
+<U69A8> \xBA\x5E |0
+<U69A9> \xE2\x4B |0
+<U69AA> \xE2\x59 |0
+<U69AB> \xBA\x67 |0
+<U69AC> \xE2\x44 |0
+<U69AD> \xBA\x6B |0
+<U69AE> \xBA\x61 |0
+<U69AF> \xE2\x4D |0
+<U69B0> \xE2\x43 |0
+<U69B1> \xE1\xFC |0
+<U69B2> \xA0\xD1 |0
+<U69B3> \xE2\x57 |0
+<U69B4> \xBA\x68 |0
+<U69B5> \xE2\x60 |0
+<U69B6> \xE1\xFD |0
+<U69B7> \xBA\x65 |0
+<U69B9> \xE2\x53 |0
+<U69BB> \xBA\x66 |0
+<U69BC> \xE2\x45 |0
+<U69BD> \xE2\x50 |0
+<U69BE> \xE2\x4C |0
+<U69BF> \xE2\x4E |0
+<U69C0> \x9F\xCA |0
+<U69C1> \xBA\x60 |0
+<U69C2> \xE2\x5F |0
+<U69C3> \xBA\x6E |0
+<U69C4> \xE2\x4F |0
+<U69C6> \xE2\x62 |0
+<U69C9> \xE1\xFE |0
+<U69CA> \xE2\x54 |0
+<U69CB> \xBA\x63 |0
+<U69CC> \xBA\x6C |0
+<U69CD> \xBA\x6A |0
+<U69CE> \xE2\x41 |0
+<U69CF> \xE2\x56 |0
+<U69D0> \xBA\x69 |0
+<U69D1> \x92\xCF |0
+<U69D3> \xBA\x62 |0
+<U69D4> \xE2\x52 |0
+<U69D5> \x9C\xF4 |0
+<U69D6> \x8D\xC4 |0
+<U69D9> \xE2\x5C |0
+<U69E1> \xFD\x41 |0
+<U69E2> \xE5\xD5 |0
+<U69E4> \xE5\xD1 |0
+<U69E5> \xE5\xCD |0
+<U69E6> \xE5\xE1 |0
+<U69E7> \xE5\xDE |0
+<U69E8> \xBC\xCD |0
+<U69E9> \x9B\x4C |0
+<U69EB> \xE5\xE5 |0
+<U69EC> \xE5\xD4 |0
+<U69ED> \xBC\xD8 |0
+<U69EE> \xE5\xDB |0
+<U69F1> \xE5\xD0 |0
+<U69F2> \xE5\xDA |0
+<U69F3> \xBC\xD5 |0
+<U69F4> \xE5\xEE |0
+<U69F6> \xE5\xEB |0
+<U69F7> \xE5\xDD |0
+<U69F8> \xE5\xCE |0
+<U69F9> \xFD\x57 |0
+<U69FA> \xFC\xEF |0
+<U69FB> \xE5\xE2 |0
+<U69FC> \xE5\xE4 |0
+<U69FD> \xBC\xD1 |0
+<U69FE> \xE5\xD8 |0
+<U69FF> \xE5\xD3 |0
+<U6A00> \xE5\xCA |0
+<U6A01> \xBC\xCE |0
+<U6A02> \xBC\xD6 |0
+<U6A03> \x9C\xDE |0
+<U6A04> \xE5\xE7 |0
+<U6A05> \xBC\xD7 |0
+<U6A06> \xE5\xCB |0
+<U6A07> \xE5\xED |0
+<U6A08> \xE5\xE0 |0
+<U6A09> \xE5\xE6 |0
+<U6A0A> \xBC\xD4 |0
+<U6A0B> \xFD\x42 |0
+<U6A0C> \x98\x6C |0
+<U6A0D> \xE5\xE3 |0
+<U6A0F> \xE5\xEA |0
+<U6A11> \xBC\xD9 |0
+<U6A13> \xBC\xD3 |0
+<U6A14> \xE5\xDC |0
+<U6A15> \xE5\xCF |0
+<U6A16> \xE5\xEF |0
+<U6A17> \xE5\xCC |0
+<U6A18> \xE5\xE8 |0
+<U6A19> \xBC\xD0 |0
+<U6A1A> \x97\xF9 |0
+<U6A1B> \xE5\xD6 |0
+<U6A1C> \x95\x58 |0
+<U6A1D> \xE5\xD7 |0
+<U6A1E> \xBC\xCF |0
+<U6A1F> \xBC\xCC |0
+<U6A20> \xE5\xD2 |0
+<U6A21> \xBC\xD2 |0
+<U6A23> \xBC\xCB |0
+<U6A25> \xE5\xE9 |0
+<U6A26> \xE5\xEC |0
+<U6A27> \xE5\xD9 |0
+<U6A28> \xE9\xCA |0
+<U6A2B> \x98\x5E |0
+<U6A2C> \xFE\x7B |0
+<U6A2D> \x94\xCD |0
+<U6A32> \xE9\xC2 |0
+<U6A33> \x93\xEE |0
+<U6A34> \xE9\xBE |0
+<U6A35> \xBE\xF6 |0
+<U6A38> \xBE\xEB |0
+<U6A39> \xBE\xF0 |0
+<U6A3A> \xBE\xEC |0
+<U6A3B> \xE9\xCC |0
+<U6A3C> \xE9\xD7 |0
+<U6A3D> \xBE\xEA |0
+<U6A3E> \xE9\xC4 |0
+<U6A3F> \xE9\xCD |0
+<U6A40> \xE5\xDF |0
+<U6A41> \xE9\xCE |0
+<U6A43> \x8C\xA3 |0
+<U6A44> \xBE\xF1 |0
+<U6A45> \xFD\x5A |0
+<U6A46> \xE9\xDD |0
+<U6A47> \xBE\xF5 |0
+<U6A48> \xBE\xF8 |0
+<U6A49> \xE9\xC0 |0
+<U6A4B> \xBE\xF4 |0
+<U6A4C> \x93\xF5 |0
+<U6A4D> \xE9\xDB |0
+<U6A4E> \xE9\xDC |0
+<U6A4F> \xE9\xD2 |0
+<U6A50> \xE9\xD1 |0
+<U6A51> \xE9\xC9 |0
+<U6A52> \x93\xEF |0
+<U6A53> \x8E\xEA |0
+<U6A54> \xE9\xD3 |0
+<U6A55> \xE9\xDA |0
+<U6A56> \xE9\xD9 |0
+<U6A57> \x8F\x5B |0
+<U6A58> \xBE\xEF |0
+<U6A59> \xBE\xED |0
+<U6A5A> \xE9\xCB |0
+<U6A5B> \xE9\xC8 |0
+<U6A5D> \xE9\xC5 |0
+<U6A5E> \xE9\xD8 |0
+<U6A5F> \xBE\xF7 |0
+<U6A60> \xE9\xD6 |0
+<U6A61> \xBE\xF3 |0
+<U6A62> \xBE\xF2 |0
+<U6A63> \x8C\x5E |0
+<U6A64> \xE9\xD0 |0
+<U6A65> \x8D\xC6 |0
+<U6A66> \xE9\xBF |0
+<U6A67> \xE9\xC1 |0
+<U6A68> \xE9\xC3 |0
+<U6A69> \xE9\xD5 |0
+<U6A6A> \xE9\xCF |0
+<U6A6B> \xBE\xEE |0
+<U6A6D> \xE9\xC6 |0
+<U6A6F> \xE9\xD4 |0
+<U6A71> \x8D\xC8 |0
+<U6A74> \x8D\xC7 |0
+<U6A76> \xE9\xC7 |0
+<U6A7A> \x93\xF7 |0
+<U6A7E> \xC0\xCF |0
+<U6A7F> \xED\x45 |0
+<U6A80> \xC0\xC8 |0
+<U6A81> \xEC\xF5 |0
+<U6A82> \x8D\xC9 |0
+<U6A83> \xED\x41 |0
+<U6A84> \xC0\xCA |0
+<U6A85> \xED\x48 |0
+<U6A87> \xEC\xFC |0
+<U6A89> \xEC\xF7 |0
+<U6A8A> \xFB\xF2 |0
+<U6A8C> \xED\x49 |0
+<U6A8D> \xEC\xF3 |0
+<U6A8E> \xEC\xFE |0
+<U6A8F> \x96\x70 |0
+<U6A90> \xC0\xD1 |0
+<U6A91> \xED\x44 |0
+<U6A92> \xED\x4A |0
+<U6A93> \xEC\xFD |0
+<U6A94> \xC0\xC9 |0
+<U6A95> \xED\x40 |0
+<U6A96> \xEC\xF4 |0
+<U6A97> \xC0\xD0 |0
+<U6A99> \x8D\xCB |0
+<U6A9A> \xED\x47 |0
+<U6A9B> \xEC\xF9 |0
+<U6A9C> \xC0\xCC |0
+<U6A9D> \xFD\x5C |0
+<U6A9E> \xEC\xFB |0
+<U6A9F> \xEC\xF8 |0
+<U6AA0> \xC0\xD2 |0
+<U6AA1> \xEC\xFA |0
+<U6AA2> \xC0\xCB |0
+<U6AA3> \xC0\xCE |0
+<U6AA4> \xED\x43 |0
+<U6AA5> \xEC\xF6 |0
+<U6AA6> \xED\x46 |0
+<U6AA7> \x8F\x65 |0
+<U6AA8> \xED\x42 |0
+<U6AAB> \x8D\xCD |0
+<U6AAC> \xC2\x63 |0
+<U6AAD> \xEF\xE7 |0
+<U6AAE> \xC2\x68 |0
+<U6AAF> \xC2\x69 |0
+<U6AB1> \x9D\xA8 |0
+<U6AB2> \x94\xF9 |0
+<U6AB3> \xC2\x62 |0
+<U6AB4> \xEF\xE6 |0
+<U6AB5> \x8D\xCE |0
+<U6AB6> \xEF\xE3 |0
+<U6AB7> \xEF\xE4 |0
+<U6AB8> \xC2\x66 |0
+<U6AB9> \xEF\xDE |0
+<U6ABA> \xEF\xE2 |0
+<U6ABB> \xC2\x65 |0
+<U6ABD> \xEF\xDF |0
+<U6ABE> \x93\xEA |0
+<U6AC2> \xC2\x67 |0
+<U6AC3> \xC2\x64 |0
+<U6AC5> \xEF\xDD |0
+<U6AC6> \xEF\xE1 |0
+<U6AC7> \xEF\xE5 |0
+<U6AC8> \xFD\x5F |0
+<U6AC9> \x93\xF0 |0
+<U6ACA> \x9F\xB6 |0
+<U6ACB> \xF2\x51 |0
+<U6ACC> \xF2\x4E |0
+<U6ACD> \xF2\x57 |0
+<U6ACF> \xF2\x56 |0
+<U6AD0> \xF2\x54 |0
+<U6AD1> \xF2\x4F |0
+<U6AD3> \xC3\x72 |0
+<U6AD4> \x8D\xCF |0
+<U6AD8> \x97\x63 |0
+<U6AD9> \xF2\x50 |0
+<U6ADA> \xC3\x71 |0
+<U6ADB> \xC0\xCD |0
+<U6ADC> \xF2\x53 |0
+<U6ADD> \xC3\x70 |0
+<U6ADE> \xF2\x58 |0
+<U6ADF> \xF2\x52 |0
+<U6AE0> \xF2\x4D |0
+<U6AE1> \xEF\xE0 |0
+<U6AE5> \xC3\x6F |0
+<U6AE7> \xF2\x4C |0
+<U6AE8> \xF4\x56 |0
+<U6AEA> \xF4\x55 |0
+<U6AEB> \xF2\x55 |0
+<U6AEC> \xC4\x68 |0
+<U6AEE> \xF4\x59 |0
+<U6AEF> \xF4\x5A |0
+<U6AF0> \xF4\x54 |0
+<U6AF1> \xF4\x58 |0
+<U6AF3> \xF4\x53 |0
+<U6AF6> \x8D\xD0 |0
+<U6AF8> \xF5\xD1 |0
+<U6AF9> \xF4\x57 |0
+<U6AFA> \xC4\xE7 |0
+<U6AFB> \xC4\xE5 |0
+<U6AFC> \xF5\xCF |0
+<U6B00> \xF5\xD2 |0
+<U6B02> \xF5\xCE |0
+<U6B03> \xF5\xD0 |0
+<U6B04> \xC4\xE6 |0
+<U6B05> \x93\xF1 |0
+<U6B08> \xF6\xE5 |0
+<U6B09> \xF6\xE6 |0
+<U6B0A> \xC5\x76 |0
+<U6B0B> \xF6\xE4 |0
+<U6B0F> \xF7\xE2 |0
+<U6B10> \xC5\xCF |0
+<U6B11> \xF7\xE0 |0
+<U6B12> \xF7\xE1 |0
+<U6B13> \xF8\xAC |0
+<U6B16> \xC6\x56 |0
+<U6B17> \xF8\xF3 |0
+<U6B18> \xF8\xF1 |0
+<U6B19> \xF8\xF2 |0
+<U6B1A> \xF8\xF4 |0
+<U6B1D> \xFD\x62 |0
+<U6B1E> \xF9\xBB |0
+<U6B20> \xA4\xED |0
+<U6B21> \xA6\xB8 |0
+<U6B23> \xAA\x59 |0
+<U6B25> \xCC\xE9 |0
+<U6B28> \xCF\x64 |0
+<U6B2C> \xD1\xF5 |0
+<U6B2D> \xD1\xF7 |0
+<U6B2F> \xD1\xF6 |0
+<U6B31> \xD1\xF8 |0
+<U6B32> \xB1\xFD |0
+<U6B33> \xD5\xD7 |0
+<U6B34> \xD1\xF9 |0
+<U6B35> \xFD\x65 |0
+<U6B36> \xD5\xD6 |0
+<U6B37> \xD5\xD8 |0
+<U6B38> \xD5\xD9 |0
+<U6B39> \xD9\xDA |0
+<U6B3A> \xB4\xDB |0
+<U6B3B> \xD9\xDB |0
+<U6B3C> \xD9\xDD |0
+<U6B3D> \xB4\xDC |0
+<U6B3E> \xB4\xDA |0
+<U6B3F> \xD9\xDC |0
+<U6B41> \xDD\xFA |0
+<U6B42> \xDD\xF8 |0
+<U6B43> \xDD\xF7 |0
+<U6B45> \xDD\xF6 |0
+<U6B46> \xDD\xF5 |0
+<U6B47> \xB7\xB2 |0
+<U6B48> \xDD\xF9 |0
+<U6B49> \xBA\x70 |0
+<U6B4A> \xE2\x63 |0
+<U6B4B> \xE2\x65 |0
+<U6B4C> \xBA\x71 |0
+<U6B4D> \xE2\x64 |0
+<U6B4E> \xBC\xDB |0
+<U6B50> \xBC\xDA |0
+<U6B51> \xE5\xF0 |0
+<U6B52> \x9F\xDB |0
+<U6B54> \xE9\xDF |0
+<U6B55> \xE9\xDE |0
+<U6B56> \xE9\xE0 |0
+<U6B57> \x93\xF8 |0
+<U6B59> \xBE\xF9 |0
+<U6B5B> \xED\x4B |0
+<U6B5C> \xC0\xD3 |0
+<U6B5E> \xEF\xE8 |0
+<U6B5F> \xC2\x6A |0
+<U6B60> \xF2\x59 |0
+<U6B61> \xC5\x77 |0
+<U6B62> \xA4\xEE |0
+<U6B63> \xA5\xBF |0
+<U6B64> \xA6\xB9 |0
+<U6B65> \xA8\x42 |0
+<U6B66> \xAA\x5A |0
+<U6B67> \xAA\x5B |0
+<U6B6A> \xAC\x6E |0
+<U6B6D> \xD1\xFA |0
+<U6B6F> \x8B\xF7 |0
+<U6B72> \xB7\xB3 |0
+<U6B74> \xFD\x66 |0
+<U6B76> \xE6\xD1 |0
+<U6B77> \xBE\xFA |0
+<U6B78> \xC2\x6B |0
+<U6B79> \xA4\xEF |0
+<U6B7A> \x8B\xCF |0
+<U6B7B> \xA6\xBA |0
+<U6B7E> \xCC\xEB |0
+<U6B7F> \xAA\x5C |0
+<U6B80> \xCC\xEA |0
+<U6B81> \x8D\xD1 |0
+<U6B82> \xCF\x65 |0
+<U6B83> \xAC\x6F |0
+<U6B84> \xCF\x66 |0
+<U6B86> \xAC\x70 |0
+<U6B88> \xD1\xFC |0
+<U6B89> \xAE\xEE |0
+<U6B8A> \xAE\xED |0
+<U6B8C> \xD5\xDE |0
+<U6B8D> \xD5\xDC |0
+<U6B8E> \xD5\xDD |0
+<U6B8F> \xD5\xDB |0
+<U6B91> \xD5\xDA |0
+<U6B94> \xD9\xDE |0
+<U6B95> \xD9\xE1 |0
+<U6B96> \xB4\xDE |0
+<U6B97> \xD9\xDF |0
+<U6B98> \xB4\xDD |0
+<U6B99> \xD9\xE0 |0
+<U6B9B> \xDD\xFB |0
+<U6B9E> \xE2\x66 |0
+<U6B9F> \xE2\x67 |0
+<U6BA0> \xE2\x68 |0
+<U6BA2> \xE5\xF3 |0
+<U6BA3> \xE5\xF2 |0
+<U6BA4> \xBC\xDC |0
+<U6BA5> \xE5\xF1 |0
+<U6BA6> \xE5\xF4 |0
+<U6BA7> \xE9\xE1 |0
+<U6BAA> \xE9\xE2 |0
+<U6BAB> \xE9\xE3 |0
+<U6BAD> \xED\x4C |0
+<U6BAE> \xC0\xD4 |0
+<U6BAF> \xC2\x6C |0
+<U6BB0> \xF2\x5A |0
+<U6BB2> \xC4\xE8 |0
+<U6BB3> \xC9\x5F |0
+<U6BB5> \xAC\x71 |0
+<U6BB6> \xCF\x67 |0
+<U6BB7> \xAE\xEF |0
+<U6BBA> \xB1\xFE |0
+<U6BBC> \xB4\xDF |0
+<U6BBD> \xD9\xE2 |0
+<U6BBF> \xB7\xB5 |0
+<U6BC0> \xB7\xB4 |0
+<U6BC1> \x8D\xD2 |0
+<U6BC3> \xE2\x69 |0
+<U6BC4> \xE2\x6A |0
+<U6BC5> \xBC\xDD |0
+<U6BC6> \xBC\xDE |0
+<U6BC7> \xE9\xE5 |0
+<U6BC8> \xE9\xE4 |0
+<U6BC9> \xEF\xE9 |0
+<U6BCA> \xF7\xE3 |0
+<U6BCB> \xA4\xF0 |0
+<U6BCC> \xC9\x60 |0
+<U6BCD> \xA5\xC0 |0
+<U6BCF> \xA8\x43 |0
+<U6BD0> \xCB\x48 |0
+<U6BD2> \xAC\x72 |0
+<U6BD3> \xB7\xB6 |0
+<U6BD4> \xA4\xF1 |0
+<U6BD6> \xCF\x68 |0
+<U6BD7> \xAC\x73 |0
+<U6BD8> \xCF\x69 |0
+<U6BDA> \xC0\xD5 |0
+<U6BDB> \xA4\xF2 |0
+<U6BDC> \xFD\x71 |0
+<U6BDE> \xCC\xEC |0
+<U6BE0> \xCF\x6A |0
+<U6BE1> \xFD\x6F |0
+<U6BE2> \xD2\x42 |0
+<U6BE3> \xD2\x41 |0
+<U6BE4> \xD1\xFE |0
+<U6BE6> \xD1\xFD |0
+<U6BE7> \xD2\x43 |0
+<U6BE8> \xD2\x40 |0
+<U6BEA> \x8D\xD3 |0
+<U6BEB> \xB2\x40 |0
+<U6BEC> \xB2\x41 |0
+<U6BEF> \xB4\xE0 |0
+<U6BF0> \xD9\xE3 |0
+<U6BF2> \xD9\xE4 |0
+<U6BF3> \xD9\xE5 |0
+<U6BF7> \xDE\x41 |0
+<U6BF8> \xDE\x42 |0
+<U6BF9> \xDE\x40 |0
+<U6BFA> \x9F\xE7 |0
+<U6BFB> \xDD\xFD |0
+<U6BFC> \xDD\xFE |0
+<U6BFD> \xB7\xB7 |0
+<U6BFE> \xE2\x6B |0
+<U6BFF> \xE5\xF7 |0
+<U6C00> \xE5\xF6 |0
+<U6C01> \xE5\xF5 |0
+<U6C02> \xE5\xF8 |0
+<U6C03> \xE9\xE7 |0
+<U6C04> \xE9\xE6 |0
+<U6C05> \xBE\xFB |0
+<U6C06> \xE9\xE8 |0
+<U6C08> \xC0\xD6 |0
+<U6C09> \xED\x4D |0
+<U6C0B> \xEF\xEA |0
+<U6C0C> \xF2\x5B |0
+<U6C0D> \xF6\xE7 |0
+<U6C0F> \xA4\xF3 |0
+<U6C10> \xA5\xC2 |0
+<U6C11> \xA5\xC1 |0
+<U6C13> \xAA\x5D |0
+<U6C14> \xC9\x61 |0
+<U6C15> \xC9\x7E |0
+<U6C16> \xA6\xBB |0
+<U6C18> \xC9\xF7 |0
+<U6C19> \xCB\x49 |0
+<U6C1A> \xCB\x4A |0
+<U6C1B> \xAA\x5E |0
+<U6C1C> \x90\xBD |0
+<U6C1D> \xCC\xED |0
+<U6C1F> \xAC\x74 |0
+<U6C20> \xCF\x6B |0
+<U6C21> \xCF\x6C |0
+<U6C23> \xAE\xF0 |0
+<U6C24> \xAE\xF4 |0
+<U6C25> \xD2\x44 |0
+<U6C26> \xAE\xF3 |0
+<U6C27> \xAE\xF1 |0
+<U6C28> \xAE\xF2 |0
+<U6C2A> \xD5\xDF |0
+<U6C2B> \xB2\x42 |0
+<U6C2C> \xB4\xE3 |0
+<U6C2E> \xB4\xE1 |0
+<U6C2F> \xB4\xE2 |0
+<U6C30> \xD9\xE6 |0
+<U6C31> \x9F\xD0 |0
+<U6C33> \xBA\x72 |0
+<U6C34> \xA4\xF4 |0
+<U6C35> \x8B\xD0 |0
+<U6C36> \xC9\xA1 |0
+<U6C37> \xFD\x72 |0
+<U6C38> \xA5\xC3 |0
+<U6C39> \x9C\xAE |0
+<U6C3A> \x8B\xD1 |0
+<U6C3B> \xC9\xA4 |0
+<U6C3D> \x8A\xDB |0
+<U6C3E> \xA5\xC6 |0
+<U6C3F> \xC9\xA3 |0
+<U6C40> \xA5\xC5 |0
+<U6C41> \xA5\xC4 |0
+<U6C42> \xA8\x44 |0
+<U6C43> \xC9\xA2 |0
+<U6C46> \xC9\xF8 |0
+<U6C49> \xFA\xE4 |0
+<U6C4A> \xC9\xFC |0
+<U6C4B> \xC9\xFE |0
+<U6C4C> \xCA\x40 |0
+<U6C4D> \xA6\xC5 |0
+<U6C4E> \xA6\xC6 |0
+<U6C4F> \xC9\xFB |0
+<U6C50> \xA6\xC1 |0
+<U6C52> \xC9\xF9 |0
+<U6C54> \xC9\xFD |0
+<U6C55> \xA6\xC2 |0
+<U6C57> \xA6\xBD |0
+<U6C58> \x95\xCE |0
+<U6C59> \xA6\xBE |0
+<U6C5A> \xFD\x76 |0
+<U6C5B> \xA6\xC4 |0
+<U6C5C> \xC9\xFA |0
+<U6C5D> \xA6\xBC |0
+<U6C5E> \xA8\x45 |0
+<U6C5F> \xA6\xBF |0
+<U6C60> \xA6\xC0 |0
+<U6C61> \xA6\xC3 |0
+<U6C65> \xCB\x5B |0
+<U6C66> \xCB\x59 |0
+<U6C67> \xCB\x4C |0
+<U6C68> \xA8\x51 |0
+<U6C69> \xCB\x53 |0
+<U6C6A> \xA8\x4C |0
+<U6C6B> \xCB\x4D |0
+<U6C6D> \xCB\x55 |0
+<U6C6E> \xFB\x62 |0
+<U6C6F> \xCB\x52 |0
+<U6C70> \xA8\x4F |0
+<U6C71> \xCB\x51 |0
+<U6C72> \xA8\x56 |0
+<U6C73> \xCB\x5A |0
+<U6C74> \xA8\x58 |0
+<U6C75> \x8D\xD4 |0
+<U6C76> \xA8\x5A |0
+<U6C78> \xCB\x4B |0
+<U6C79> \xFD\x78 |0
+<U6C7A> \xA8\x4D |0
+<U6C7B> \xCB\x5C |0
+<U6C7D> \xA8\x54 |0
+<U6C7E> \xA8\x57 |0
+<U6C7F> \x8E\xE3 |0
+<U6C80> \xCD\x45 |0
+<U6C81> \xA8\x47 |0
+<U6C82> \xA8\x5E |0
+<U6C83> \xA8\x55 |0
+<U6C84> \xCB\x4E |0
+<U6C85> \xA8\x4A |0
+<U6C86> \xA8\x59 |0
+<U6C87> \xCB\x56 |0
+<U6C88> \xA8\x48 |0
+<U6C89> \xA8\x49 |0
+<U6C8A> \xCD\x43 |0
+<U6C8B> \xCB\x4F |0
+<U6C8C> \xA8\x50 |0
+<U6C8D> \xA8\x5B |0
+<U6C8E> \xCB\x5D |0
+<U6C8F> \xCB\x50 |0
+<U6C90> \xA8\x4E |0
+<U6C92> \xA8\x53 |0
+<U6C93> \xCC\xEE |0
+<U6C94> \xA8\x5C |0
+<U6C95> \xCB\x57 |0
+<U6C96> \xA8\x52 |0
+<U6C98> \xA8\x5D |0
+<U6C99> \xA8\x46 |0
+<U6C9A> \xCB\x54 |0
+<U6C9B> \xA8\x4B |0
+<U6C9C> \xCB\x58 |0
+<U6C9D> \xCD\x44 |0
+<U6C9F> \x90\x76 |0
+<U6CA2> \x98\xC6 |0
+<U6CAA> \x8D\xD5 |0
+<U6CAB> \xAA\x6A |0
+<U6CAC> \xAA\x7A |0
+<U6CAD> \xCC\xF5 |0
+<U6CAE> \xAA\x71 |0
+<U6CAF> \x97\xD1 |0
+<U6CB0> \xCD\x4B |0
+<U6CB1> \xAA\x62 |0
+<U6CB2> \x9E\xB6 |0
+<U6CB3> \xAA\x65 |0
+<U6CB4> \xCD\x42 |0
+<U6CB6> \xCC\xF3 |0
+<U6CB7> \xCC\xF7 |0
+<U6CB8> \xAA\x6D |0
+<U6CB9> \xAA\x6F |0
+<U6CBA> \xCC\xFA |0
+<U6CBB> \xAA\x76 |0
+<U6CBC> \xAA\x68 |0
+<U6CBD> \xAA\x66 |0
+<U6CBE> \xAA\x67 |0
+<U6CBF> \xAA\x75 |0
+<U6CC0> \xCD\x47 |0
+<U6CC1> \xAA\x70 |0
+<U6CC2> \xCC\xF9 |0
+<U6CC3> \xCC\xFB |0
+<U6CC4> \xAA\x6E |0
+<U6CC5> \xAA\x73 |0
+<U6CC6> \xCC\xFC |0
+<U6CC7> \xCD\x4A |0
+<U6CC9> \xAC\x75 |0
+<U6CCA> \xAA\x79 |0
+<U6CCB> \xFA\xC7 |0
+<U6CCC> \xAA\x63 |0
+<U6CCD> \xCD\x49 |0
+<U6CCE> \xA0\x42 |0
+<U6CCF> \xCD\x4D |0
+<U6CD0> \xCC\xF8 |0
+<U6CD1> \xCD\x4F |0
+<U6CD2> \xCD\x40 |0
+<U6CD3> \xAA\x6C |0
+<U6CD4> \xCC\xF4 |0
+<U6CD5> \xAA\x6B |0
+<U6CD6> \xAA\x7D |0
+<U6CD7> \xAA\x72 |0
+<U6CD9> \xCC\xF2 |0
+<U6CDA> \xCF\x75 |0
+<U6CDB> \xAA\x78 |0
+<U6CDC> \xAA\x7C |0
+<U6CDD> \xCD\x41 |0
+<U6CDE> \xCD\x46 |0
+<U6CDF> \x98\x73 |0
+<U6CE0> \xAA\x7E |0
+<U6CE1> \xAA\x77 |0
+<U6CE2> \xAA\x69 |0
+<U6CE3> \xAA\x5F |0
+<U6CE5> \xAA\x64 |0
+<U6CE7> \xCC\xF6 |0
+<U6CE8> \xAA\x60 |0
+<U6CE9> \xCD\x4E |0
+<U6CEA> \x9F\xFC |0
+<U6CEB> \xCC\xF0 |0
+<U6CEC> \xCC\xEF |0
+<U6CED> \xCC\xFD |0
+<U6CEE> \xCC\xF1 |0
+<U6CEF> \xAA\x7B |0
+<U6CF0> \xAE\xF5 |0
+<U6CF1> \xAA\x74 |0
+<U6CF2> \xCC\xFE |0
+<U6CF3> \xAA\x61 |0
+<U6CF5> \xAC\xA6 |0
+<U6CF9> \xCD\x4C |0
+<U6CFF> \x8C\xA5 |0
+<U6D00> \xCF\x7C |0
+<U6D01> \xCF\xA1 |0
+<U6D02> \x8D\xD7 |0
+<U6D03> \xCF\xA4 |0
+<U6D04> \xCF\x77 |0
+<U6D05> \x92\xFB |0
+<U6D06> \x8D\xD8 |0
+<U6D07> \xCF\xA7 |0
+<U6D08> \xCF\xAA |0
+<U6D09> \xCF\xAC |0
+<U6D0A> \xCF\x74 |0
+<U6D0B> \xAC\x76 |0
+<U6D0C> \xAC\x7B |0
+<U6D0D> \xD2\x49 |0
+<U6D0E> \xAC\xAD |0
+<U6D0F> \xCF\xA5 |0
+<U6D10> \xCF\xAD |0
+<U6D11> \xCF\x7B |0
+<U6D12> \xCF\x73 |0
+<U6D16> \xD2\x64 |0
+<U6D17> \xAC\x7E |0
+<U6D18> \xCF\xA2 |0
+<U6D19> \xCF\x78 |0
+<U6D1A> \xCF\x7A |0
+<U6D1B> \xAC\xA5 |0
+<U6D1D> \xCF\x7D |0
+<U6D1E> \xAC\x7D |0
+<U6D1F> \xCF\x70 |0
+<U6D20> \xCF\xA8 |0
+<U6D22> \xCF\xAB |0
+<U6D24> \x94\x4F |0
+<U6D25> \xAC\x7A |0
+<U6D26> \x8D\xD9 |0
+<U6D27> \xAC\xA8 |0
+<U6D28> \xCF\x6D |0
+<U6D29> \xAC\xAA |0
+<U6D2A> \xAC\x78 |0
+<U6D2B> \xAC\xAE |0
+<U6D2C> \xCF\xA9 |0
+<U6D2D> \xCF\x6F |0
+<U6D2E> \xAC\xAB |0
+<U6D2F> \xD2\x5E |0
+<U6D30> \xCD\x48 |0
+<U6D31> \xAC\x7C |0
+<U6D32> \xAC\x77 |0
+<U6D33> \xCF\x76 |0
+<U6D34> \xCF\x6E |0
+<U6D35> \xAC\xAC |0
+<U6D36> \xAC\xA4 |0
+<U6D37> \xCF\xA3 |0
+<U6D38> \xAC\xA9 |0
+<U6D39> \xAC\xA7 |0
+<U6D3A> \xCF\x79 |0
+<U6D3B> \xAC\xA1 |0
+<U6D3C> \xCF\x71 |0
+<U6D3D> \xAC\xA2 |0
+<U6D3E> \xAC\xA3 |0
+<U6D3F> \xCF\x72 |0
+<U6D40> \xCF\xA6 |0
+<U6D41> \xAC\x79 |0
+<U6D42> \xCF\x7E |0
+<U6D4E> \x89\x6B |0
+<U6D57> \x97\xCE |0
+<U6D58> \xD2\x4C |0
+<U6D59> \xAE\xFD |0
+<U6D5A> \xAF\x43 |0
+<U6D5B> \xFA\xF3 |0
+<U6D5C> \xFD\xAE |0
+<U6D5E> \xD2\x55 |0
+<U6D5F> \xD2\x5B |0
+<U6D60> \xD2\x57 |0
+<U6D61> \xD2\x4A |0
+<U6D62> \xD2\x4D |0
+<U6D63> \xD2\x46 |0
+<U6D64> \xD2\x47 |0
+<U6D65> \xAF\x4A |0
+<U6D66> \xAE\xFA |0
+<U6D67> \xD2\x56 |0
+<U6D68> \xD2\x5F |0
+<U6D69> \xAF\x45 |0
+<U6D6A> \xAE\xF6 |0
+<U6D6C> \xAF\x40 |0
+<U6D6D> \xD2\x4E |0
+<U6D6E> \xAF\x42 |0
+<U6D6F> \xD2\x4F |0
+<U6D70> \xD2\x59 |0
+<U6D71> \xFB\xAF |0
+<U6D72> \x92\xB7 |0
+<U6D74> \xAF\x44 |0
+<U6D75> \xD2\x68 |0
+<U6D76> \xD2\x48 |0
+<U6D77> \xAE\xFC |0
+<U6D78> \xAE\xFB |0
+<U6D79> \xAF\x48 |0
+<U6D7A> \xD2\x45 |0
+<U6D7B> \xD2\x66 |0
+<U6D7C> \xD2\x5A |0
+<U6D7D> \xD2\x67 |0
+<U6D7E> \xD2\x61 |0
+<U6D7F> \xD2\x53 |0
+<U6D80> \xD2\x62 |0
+<U6D81> \x8D\xDA |0
+<U6D82> \xD2\x5C |0
+<U6D83> \xD2\x65 |0
+<U6D84> \xD2\x63 |0
+<U6D85> \xAF\x49 |0
+<U6D86> \xD2\x54 |0
+<U6D87> \xAE\xF9 |0
+<U6D88> \xAE\xF8 |0
+<U6D89> \xAF\x41 |0
+<U6D8A> \xAF\x47 |0
+<U6D8B> \xD2\x60 |0
+<U6D8C> \xAF\x46 |0
+<U6D8D> \xD2\x51 |0
+<U6D8E> \xB2\x43 |0
+<U6D8F> \x9C\x5A |0
+<U6D90> \xD2\x69 |0
+<U6D91> \xD2\x50 |0
+<U6D92> \xD2\x4B |0
+<U6D93> \xAE\xFE |0
+<U6D94> \xAF\x4B |0
+<U6D95> \xAE\xF7 |0
+<U6D96> \xFD\xAD |0
+<U6D97> \xD2\x58 |0
+<U6D98> \xD2\x5D |0
+<U6DA4> \x8D\xDC |0
+<U6DA5> \x94\x44 |0
+<U6DAA> \xB2\x65 |0
+<U6DAB> \xD5\xE1 |0
+<U6DAC> \xD5\xE5 |0
+<U6DAE> \xB2\x52 |0
+<U6DAF> \xB2\x50 |0
+<U6DB1> \x8D\xDD |0
+<U6DB2> \xB2\x47 |0
+<U6DB3> \xD5\xE3 |0
+<U6DB4> \xD5\xE2 |0
+<U6DB5> \xB2\x5B |0
+<U6DB7> \xD5\xE8 |0
+<U6DB8> \xB2\x55 |0
+<U6DB9> \xA0\xD6 |0
+<U6DBA> \xD5\xFA |0
+<U6DBB> \xD6\x47 |0
+<U6DBC> \xB2\x44 |0
+<U6DBD> \xD5\xF7 |0
+<U6DBE> \xD5\xF0 |0
+<U6DBF> \xB2\x67 |0
+<U6DC0> \xD5\xE0 |0
+<U6DC2> \xD5\xFC |0
+<U6DC4> \xB2\x64 |0
+<U6DC5> \xB2\x58 |0
+<U6DC6> \xB2\x63 |0
+<U6DC7> \xB2\x4E |0
+<U6DC8> \xD5\xEC |0
+<U6DC9> \xD5\xFE |0
+<U6DCA> \xD5\xF6 |0
+<U6DCB> \xB2\x4F |0
+<U6DCC> \xB2\x49 |0
+<U6DCD> \xD6\x45 |0
+<U6DCF> \xD5\xFD |0
+<U6DD0> \xD6\x40 |0
+<U6DD1> \xB2\x51 |0
+<U6DD2> \xB2\x59 |0
+<U6DD3> \xD6\x42 |0
+<U6DD4> \xD5\xEA |0
+<U6DD5> \xD5\xFB |0
+<U6DD6> \xD5\xEF |0
+<U6DD7> \xD6\x44 |0
+<U6DD8> \xB2\x5E |0
+<U6DD9> \xB2\x46 |0
+<U6DDA> \xB2\x5C |0
+<U6DDB> \xD5\xF4 |0
+<U6DDC> \xD5\xF2 |0
+<U6DDD> \xD5\xF3 |0
+<U6DDE> \xB2\x53 |0
+<U6DDF> \xD5\xEE |0
+<U6DE0> \xD5\xED |0
+<U6DE1> \xB2\x48 |0
+<U6DE2> \xD5\xE7 |0
+<U6DE3> \xD6\x46 |0
+<U6DE4> \xB2\x4A |0
+<U6DE5> \xD5\xF1 |0
+<U6DE6> \xB2\x68 |0
+<U6DE8> \xB2\x62 |0
+<U6DE9> \xD5\xE6 |0
+<U6DEA> \xB2\x5F |0
+<U6DEB> \xB2\x5D |0
+<U6DEC> \xB2\x66 |0
+<U6DED> \xD5\xF8 |0
+<U6DEE> \xB2\x61 |0
+<U6DEF> \xD2\x52 |0
+<U6DF0> \xD5\xF9 |0
+<U6DF1> \xB2\x60 |0
+<U6DF2> \xD6\x41 |0
+<U6DF3> \xB2\x45 |0
+<U6DF4> \xD5\xF5 |0
+<U6DF5> \xB2\x57 |0
+<U6DF6> \xD5\xE9 |0
+<U6DF7> \xB2\x56 |0
+<U6DF9> \xB2\x54 |0
+<U6DFA> \xB2\x4C |0
+<U6DFB> \xB2\x4B |0
+<U6DFC> \xD9\xE7 |0
+<U6DFD> \xD6\x43 |0
+<U6DFE> \x8C\x41 |0
+<U6E00> \xD5\xEB |0
+<U6E02> \x97\xD5 |0
+<U6E03> \xD9\xFC |0
+<U6E04> \x94\x4A |0
+<U6E05> \xB2\x4D |0
+<U6E0A> \x94\x4D |0
+<U6E0F> \x97\xCB |0
+<U6E15> \x8D\xDE |0
+<U6E18> \x8D\xDF |0
+<U6E19> \xB5\x41 |0
+<U6E1A> \xB2\x5A |0
+<U6E1B> \xB4\xEE |0
+<U6E1C> \xD9\xF6 |0
+<U6E1D> \xB4\xFC |0
+<U6E1F> \xD9\xEA |0
+<U6E20> \xB4\xEB |0
+<U6E21> \xB4\xE7 |0
+<U6E22> \xDA\x49 |0
+<U6E23> \xB4\xED |0
+<U6E24> \xB4\xF1 |0
+<U6E25> \xB4\xEC |0
+<U6E26> \xB4\xF5 |0
+<U6E27> \xDA\x4D |0
+<U6E28> \xDA\x44 |0
+<U6E29> \x8D\xE0 |0
+<U6E2A> \xFE\xF9 |0
+<U6E2B> \xD9\xF1 |0
+<U6E2C> \xB4\xFA |0
+<U6E2D> \xB4\xF4 |0
+<U6E2E> \xD9\xFD |0
+<U6E2F> \xB4\xE4 |0
+<U6E30> \xDA\x4A |0
+<U6E31> \xDA\x43 |0
+<U6E32> \xB4\xE8 |0
+<U6E33> \xD9\xF7 |0
+<U6E34> \xB4\xF7 |0
+<U6E35> \xDA\x55 |0
+<U6E36> \xDA\x56 |0
+<U6E38> \xB4\xE5 |0
+<U6E39> \xDA\x48 |0
+<U6E3A> \xB4\xF9 |0
+<U6E3B> \xD9\xFB |0
+<U6E3C> \xD9\xED |0
+<U6E3D> \xD9\xEE |0
+<U6E3E> \xB4\xFD |0
+<U6E3F> \xD9\xF2 |0
+<U6E40> \xD9\xF9 |0
+<U6E41> \xD9\xF3 |0
+<U6E43> \xB4\xFB |0
+<U6E44> \xB5\x44 |0
+<U6E45> \xD9\xEF |0
+<U6E46> \xD9\xE8 |0
+<U6E47> \xD9\xE9 |0
+<U6E49> \xD9\xEB |0
+<U6E4A> \xB4\xEA |0
+<U6E4B> \xD9\xF8 |0
+<U6E4D> \xB4\xF8 |0
+<U6E4E> \xB5\x42 |0
+<U6E4F> \xFD\xC0 |0
+<U6E50> \xFC\xF9 |0
+<U6E51> \xD9\xFA |0
+<U6E52> \xDA\x53 |0
+<U6E53> \xDA\x4B |0
+<U6E54> \xB4\xE6 |0
+<U6E55> \xDA\x51 |0
+<U6E56> \xB4\xF2 |0
+<U6E58> \xB4\xF0 |0
+<U6E59> \xFB\x7E |0
+<U6E5A> \xDA\x57 |0
+<U6E5B> \xB4\xEF |0
+<U6E5C> \xDA\x41 |0
+<U6E5D> \xD9\xF4 |0
+<U6E5E> \xD9\xFE |0
+<U6E5F> \xB5\x47 |0
+<U6E60> \xDA\x45 |0
+<U6E61> \xDA\x42 |0
+<U6E62> \xD9\xF0 |0
+<U6E63> \xB5\x43 |0
+<U6E64> \xDA\x4F |0
+<U6E65> \xDA\x4C |0
+<U6E66> \xDA\x54 |0
+<U6E67> \xB4\xE9 |0
+<U6E68> \xDA\x40 |0
+<U6E69> \xB5\x46 |0
+<U6E6B> \xDA\x47 |0
+<U6E6E> \xB4\xF3 |0
+<U6E6F> \xB4\xF6 |0
+<U6E71> \xDA\x46 |0
+<U6E72> \xB5\x45 |0
+<U6E73> \xD9\xF5 |0
+<U6E74> \xD5\xE4 |0
+<U6E76> \x92\xB3 |0
+<U6E77> \xDA\x50 |0
+<U6E78> \xDA\x4E |0
+<U6E79> \xDA\x52 |0
+<U6E7C> \xFD\xAF |0
+<U6E86> \x8D\xE1 |0
+<U6E88> \xD9\xEC |0
+<U6E89> \xB5\x40 |0
+<U6E8B> \x95\xD3 |0
+<U6E8D> \xDE\x61 |0
+<U6E8E> \xDE\x60 |0
+<U6E8F> \xDE\x46 |0
+<U6E90> \xB7\xBD |0
+<U6E92> \xDE\x5F |0
+<U6E93> \xDE\x49 |0
+<U6E94> \xDE\x4A |0
+<U6E96> \xB7\xC7 |0
+<U6E97> \xDE\x68 |0
+<U6E98> \xB7\xC2 |0
+<U6E99> \xDE\x5E |0
+<U6E9A> \x89\xC1 |0
+<U6E9B> \xDE\x43 |0
+<U6E9C> \xB7\xC8 |0
+<U6E9D> \xB7\xBE |0
+<U6E9E> \xDE\x52 |0
+<U6E9F> \xDE\x48 |0
+<U6EA0> \xDE\x4B |0
+<U6EA1> \xDE\x63 |0
+<U6EA2> \xB7\xB8 |0
+<U6EA3> \xDE\x6A |0
+<U6EA4> \xDE\x62 |0
+<U6EA5> \xB7\xC1 |0
+<U6EA6> \xDE\x57 |0
+<U6EA7> \xB7\xCC |0
+<U6EAA> \xB7\xCB |0
+<U6EAB> \xB7\xC5 |0
+<U6EAE> \xDE\x69 |0
+<U6EAF> \xB7\xB9 |0
+<U6EB0> \xDE\x55 |0
+<U6EB1> \xDE\x4C |0
+<U6EB2> \xDE\x59 |0
+<U6EB3> \xDE\x65 |0
+<U6EB4> \xB7\xCD |0
+<U6EB5> \xFD\x68 |0
+<U6EB6> \xB7\xBB |0
+<U6EB7> \xDE\x54 |0
+<U6EB8> \x9C\xB7 |0
+<U6EB9> \xDE\x4D |0
+<U6EBA> \xB7\xC4 |0
+<U6EBB> \x8D\xE3 |0
+<U6EBC> \xB7\xC3 |0
+<U6EBD> \xDE\x50 |0
+<U6EBE> \xDE\x5A |0
+<U6EBF> \xDE\x64 |0
+<U6EC0> \xDE\x47 |0
+<U6EC1> \xDE\x51 |0
+<U6EC2> \xB7\xBC |0
+<U6EC3> \xDE\x5B |0
+<U6EC4> \xB7\xC9 |0
+<U6EC5> \xB7\xC0 |0
+<U6EC6> \xDE\x4E |0
+<U6EC7> \xB7\xBF |0
+<U6EC8> \xDE\x45 |0
+<U6EC9> \xDE\x53 |0
+<U6ECA> \xDE\x67 |0
+<U6ECB> \xB4\xFE |0
+<U6ECC> \xBA\xB0 |0
+<U6ECD> \xDE\x56 |0
+<U6ECE> \xE2\x6C |0
+<U6ECF> \xDE\x58 |0
+<U6ED0> \xDE\x66 |0
+<U6ED1> \xB7\xC6 |0
+<U6ED2> \xDE\x4F |0
+<U6ED3> \xB7\xBA |0
+<U6ED4> \xB7\xCA |0
+<U6ED5> \xBC\xF0 |0
+<U6ED6> \xDE\x44 |0
+<U6ED8> \xDE\x5D |0
+<U6ED9> \xFA\xC0 |0
+<U6EDA> \x8D\xE5 |0
+<U6EDB> \xFA\x64 |0
+<U6EDC> \xDE\x5C |0
+<U6EDD> \x89\x47 |0
+<U6EE2> \x8D\xE4 |0
+<U6EE8> \x8D\xE7 |0
+<U6EE9> \x8D\xE8 |0
+<U6EEB> \xE2\xAA |0
+<U6EEC> \xBA\xAD |0
+<U6EED> \xE2\x7D |0
+<U6EEE> \xE2\xA4 |0
+<U6EEF> \xBA\xA2 |0
+<U6EF1> \xE2\x6E |0
+<U6EF2> \xBA\xAF |0
+<U6EF4> \xBA\x77 |0
+<U6EF5> \xE2\x6D |0
+<U6EF6> \xE2\xB0 |0
+<U6EF7> \xBA\xB1 |0
+<U6EF8> \xE2\x71 |0
+<U6EF9> \xE2\xA3 |0
+<U6EFA> \xFD\xC7 |0
+<U6EFB> \xE2\x73 |0
+<U6EFC> \xE2\xB3 |0
+<U6EFD> \xE2\xAF |0
+<U6EFE> \xBA\x75 |0
+<U6EFF> \xBA\xA1 |0
+<U6F00> \xE6\x53 |0
+<U6F01> \xBA\xAE |0
+<U6F02> \xBA\x7D |0
+<U6F03> \xE2\x6F |0
+<U6F04> \xFD\xB0 |0
+<U6F05> \xE2\xAE |0
+<U6F06> \xBA\xA3 |0
+<U6F07> \xE2\xAB |0
+<U6F08> \xE2\xB8 |0
+<U6F09> \xE2\x75 |0
+<U6F0A> \xE2\x7E |0
+<U6F0B> \x94\x45 |0
+<U6F0C> \x97\xD6 |0
+<U6F0D> \xE2\xB6 |0
+<U6F0E> \xE2\xAC |0
+<U6F0F> \xBA\x7C |0
+<U6F12> \xE2\x7C |0
+<U6F13> \xBA\x76 |0
+<U6F14> \xBA\x74 |0
+<U6F15> \xBA\xA8 |0
+<U6F16> \xFC\xC6 |0
+<U6F17> \x98\x44 |0
+<U6F18> \xE2\x7A |0
+<U6F19> \xE2\x77 |0
+<U6F1A> \xE2\x78 |0
+<U6F1C> \xE2\xB2 |0
+<U6F1E> \xE2\xB7 |0
+<U6F1F> \xE2\xB5 |0
+<U6F20> \xBA\x7A |0
+<U6F21> \xE2\xB9 |0
+<U6F22> \xBA\x7E |0
+<U6F23> \xBA\xA7 |0
+<U6F24> \x8D\xE9 |0
+<U6F25> \xE2\x70 |0
+<U6F26> \xE5\xFA |0
+<U6F27> \xE2\x79 |0
+<U6F29> \xBA\x78 |0
+<U6F2A> \xBA\xAC |0
+<U6F2B> \xBA\xA9 |0
+<U6F2C> \xBA\x7B |0
+<U6F2D> \xE2\xA5 |0
+<U6F2E> \xE2\x74 |0
+<U6F2F> \xBA\xAA |0
+<U6F30> \xE2\xA7 |0
+<U6F31> \xBA\xA4 |0
+<U6F32> \xBA\xA6 |0
+<U6F33> \xBA\x73 |0
+<U6F34> \x8D\xEA |0
+<U6F35> \xE2\xA9 |0
+<U6F36> \xE2\xA1 |0
+<U6F37> \xE2\x72 |0
+<U6F38> \xBA\xA5 |0
+<U6F39> \xE2\xB1 |0
+<U6F3A> \xE2\xB4 |0
+<U6F3B> \xE2\x7B |0
+<U6F3C> \xE2\xA8 |0
+<U6F3D> \xFE\x50 |0
+<U6F3E> \xBA\x79 |0
+<U6F3F> \xBC\xDF |0
+<U6F40> \xE2\xA6 |0
+<U6F41> \xE5\xF9 |0
+<U6F43> \xE2\xAD |0
+<U6F44> \xFD\xCC |0
+<U6F4E> \xE2\x76 |0
+<U6F4F> \xE6\x44 |0
+<U6F50> \xE6\x4E |0
+<U6F51> \xBC\xE2 |0
+<U6F52> \xE6\x4D |0
+<U6F53> \xE6\x59 |0
+<U6F54> \xBC\xE4 |0
+<U6F55> \xE6\x4B |0
+<U6F56> \x9D\xA7 |0
+<U6F57> \xE6\x4F |0
+<U6F58> \xBC\xEF |0
+<U6F5A> \xE6\x46 |0
+<U6F5B> \xBC\xE7 |0
+<U6F5C> \xFD\xCD |0
+<U6F5D> \xE6\x52 |0
+<U6F5E> \xE9\xF0 |0
+<U6F5F> \xBC\xF3 |0
+<U6F60> \xBC\xF2 |0
+<U6F61> \xE6\x54 |0
+<U6F62> \xE6\x43 |0
+<U6F63> \xE6\x5E |0
+<U6F64> \xBC\xED |0
+<U6F66> \xBC\xE3 |0
+<U6F67> \xE6\x57 |0
+<U6F69> \xE6\x5B |0
+<U6F6A> \xE6\x60 |0
+<U6F6B> \xE6\x55 |0
+<U6F6C> \xE6\x49 |0
+<U6F6D> \xBC\xE6 |0
+<U6F6E> \xBC\xE9 |0
+<U6F6F> \xBC\xF1 |0
+<U6F70> \xBC\xEC |0
+<U6F72> \xE6\x4C |0
+<U6F73> \xE2\xA2 |0
+<U6F74> \xFD\xCF |0
+<U6F76> \xE6\x48 |0
+<U6F77> \xE6\x5F |0
+<U6F78> \xBC\xE8 |0
+<U6F79> \x95\xD2 |0
+<U6F7A> \xBC\xEB |0
+<U6F7B> \xE6\x61 |0
+<U6F7C> \xBC\xE0 |0
+<U6F7D> \xE6\x56 |0
+<U6F7E> \xE5\xFB |0
+<U6F7F> \xE6\x5C |0
+<U6F80> \xC0\xDF |0
+<U6F81> \x8D\xED |0
+<U6F82> \xE6\x4A |0
+<U6F84> \xBC\xE1 |0
+<U6F85> \xE6\x45 |0
+<U6F86> \xBC\xE5 |0
+<U6F87> \xE5\xFC |0
+<U6F88> \xBA\xAB |0
+<U6F89> \xE6\x41 |0
+<U6F8A> \xFC\xBA |0
+<U6F8B> \xE6\x5A |0
+<U6F8C> \xE6\x42 |0
+<U6F8D> \xE6\x40 |0
+<U6F8E> \xBC\xEA |0
+<U6F90> \xE6\x58 |0
+<U6F92> \xE5\xFE |0
+<U6F93> \xE6\x51 |0
+<U6F94> \xE6\x50 |0
+<U6F95> \xE6\x5D |0
+<U6F96> \xE6\x47 |0
+<U6F97> \xBC\xEE |0
+<U6F9D> \xFD\xC5 |0
+<U6F9E> \xE9\xF3 |0
+<U6F9F> \xFD\xD2 |0
+<U6FA0> \xBF\x49 |0
+<U6FA1> \xBE\xFE |0
+<U6FA2> \xEA\x40 |0
+<U6FA3> \xE9\xEB |0
+<U6FA4> \xBF\x41 |0
+<U6FA5> \xE9\xF7 |0
+<U6FA6> \xBF\x48 |0
+<U6FA7> \xBF\x43 |0
+<U6FA8> \xE9\xF5 |0
+<U6FA9> \xED\x4F |0
+<U6FAA> \xE9\xFB |0
+<U6FAB> \xEA\x42 |0
+<U6FAC> \xE9\xFA |0
+<U6FAD> \xE9\xE9 |0
+<U6FAE> \xE9\xF8 |0
+<U6FAF> \xEA\x44 |0
+<U6FB0> \xEA\x46 |0
+<U6FB1> \xBE\xFD |0
+<U6FB2> \xEA\x45 |0
+<U6FB3> \xBF\x44 |0
+<U6FB4> \xBF\x4A |0
+<U6FB5> \x9C\xDC |0
+<U6FB6> \xBF\x47 |0
+<U6FB8> \xE9\xFE |0
+<U6FB9> \xBF\x46 |0
+<U6FBA> \xE9\xF9 |0
+<U6FBB> \x95\xCF |0
+<U6FBC> \xE9\xED |0
+<U6FBD> \xE9\xF2 |0
+<U6FBE> \x8D\xEE |0
+<U6FBF> \xE9\xFD |0
+<U6FC0> \xBF\x45 |0
+<U6FC1> \xBF\x42 |0
+<U6FC2> \xBE\xFC |0
+<U6FC3> \xBF\x40 |0
+<U6FC4> \xE9\xF1 |0
+<U6FC6> \xE5\xFD |0
+<U6FC7> \xE9\xEC |0
+<U6FC8> \xE9\xEF |0
+<U6FC9> \xEA\x41 |0
+<U6FCA> \xE9\xF4 |0
+<U6FCB> \xE9\xEA |0
+<U6FCC> \xED\x4E |0
+<U6FCD> \xEA\x43 |0
+<U6FCE> \xE9\xEE |0
+<U6FCF> \xE9\xFC |0
+<U6FD3> \xFD\xD4 |0
+<U6FD4> \xED\x51 |0
+<U6FD5> \xC0\xE3 |0
+<U6FD8> \xC0\xD7 |0
+<U6FD9> \x96\xEC |0
+<U6FDA> \x96\xEB |0
+<U6FDB> \xC0\xDB |0
+<U6FDC> \xED\x53 |0
+<U6FDD> \xED\x59 |0
+<U6FDE> \xED\x57 |0
+<U6FDF> \xC0\xD9 |0
+<U6FE0> \xC0\xDA |0
+<U6FE1> \xC0\xE1 |0
+<U6FE2> \xED\x5A |0
+<U6FE3> \xED\x52 |0
+<U6FE4> \xC0\xDC |0
+<U6FE6> \xED\x56 |0
+<U6FE7> \xED\x55 |0
+<U6FE8> \xED\x5B |0
+<U6FE9> \xC0\xE2 |0
+<U6FEB> \xC0\xDD |0
+<U6FEC> \xC0\xE0 |0
+<U6FED> \xED\x54 |0
+<U6FEE> \xC0\xE4 |0
+<U6FEF> \xC0\xDE |0
+<U6FF0> \xC0\xE5 |0
+<U6FF1> \xC0\xD8 |0
+<U6FF2> \xED\x58 |0
+<U6FF4> \xED\x50 |0
+<U6FF6> \x90\xB6 |0
+<U6FF7> \xEF\xF7 |0
+<U6FF8> \xFD\xC3 |0
+<U6FFA> \xC2\x71 |0
+<U6FFB> \xEF\xF4 |0
+<U6FFC> \xEF\xF6 |0
+<U6FFE> \xC2\x6F |0
+<U6FFF> \xEF\xF2 |0
+<U7000> \xEF\xF3 |0
+<U7001> \xEF\xEE |0
+<U7003> \x98\xAB |0
+<U7004> \xE9\xF6 |0
+<U7005> \xEF\xEF |0
+<U7006> \xC2\x70 |0
+<U7007> \xEF\xEB |0
+<U7009> \xC2\x6D |0
+<U700A> \xEF\xF8 |0
+<U700B> \xC2\x6E |0
+<U700C> \xEF\xEC |0
+<U700D> \xEF\xED |0
+<U700E> \xEF\xF1 |0
+<U700F> \xC2\x73 |0
+<U7011> \xC2\x72 |0
+<U7014> \xEF\xF0 |0
+<U7015> \xC3\x78 |0
+<U7016> \xF2\x5F |0
+<U7017> \xF2\x65 |0
+<U7018> \xC3\x79 |0
+<U7019> \xF2\x5C |0
+<U701A> \xC3\x76 |0
+<U701B> \xC3\x73 |0
+<U701C> \xF2\x67 |0
+<U701D> \xC3\x77 |0
+<U701E> \x96\xEE |0
+<U701F> \xC3\x74 |0
+<U7020> \xF2\x5E |0
+<U7021> \xF2\x61 |0
+<U7022> \xF2\x62 |0
+<U7023> \xF2\x63 |0
+<U7024> \xF2\x66 |0
+<U7026> \xEF\xF5 |0
+<U7027> \xF2\x5D |0
+<U7028> \xC3\x75 |0
+<U7029> \xF2\x64 |0
+<U702A> \xF2\x68 |0
+<U702B> \xF2\x60 |0
+<U702C> \x8D\xF4 |0
+<U702F> \xF4\x5D |0
+<U7030> \xC4\x6A |0
+<U7031> \xF4\x60 |0
+<U7032> \xC4\x6B |0
+<U7033> \xF4\x68 |0
+<U7034> \xF4\x5F |0
+<U7035> \xF4\x5C |0
+<U7037> \xF4\x5E |0
+<U7038> \xF4\x62 |0
+<U7039> \xF4\x65 |0
+<U703A> \xF4\x64 |0
+<U703B> \xF4\x67 |0
+<U703C> \xF4\x5B |0
+<U703E> \xC4\x69 |0
+<U703F> \xF4\x63 |0
+<U7040> \xF4\x66 |0
+<U7041> \xF4\x69 |0
+<U7042> \xF4\x61 |0
+<U7043> \xF5\xD3 |0
+<U7044> \xF5\xD4 |0
+<U7045> \xF5\xD8 |0
+<U7046> \xF5\xD9 |0
+<U7048> \xF5\xD6 |0
+<U7049> \xF5\xD7 |0
+<U704A> \xF5\xD5 |0
+<U704B> \xFD\xE0 |0
+<U704C> \xC4\xE9 |0
+<U704D> \x8C\x67 |0
+<U7050> \x8D\xF6 |0
+<U7051> \xC5\x78 |0
+<U7052> \xF6\xEB |0
+<U7054> \x8D\xF7 |0
+<U7055> \xF6\xE8 |0
+<U7056> \xF6\xE9 |0
+<U7057> \xF6\xEA |0
+<U7058> \xC5\x79 |0
+<U705A> \xF7\xE5 |0
+<U705B> \xF7\xE4 |0
+<U705C> \x8F\xFA |0
+<U705D> \xF8\xAF |0
+<U705E> \xC5\xF4 |0
+<U705F> \xF8\xAD |0
+<U7060> \xF8\xB0 |0
+<U7061> \xF8\xAE |0
+<U7062> \xF8\xF5 |0
+<U7063> \xC6\x57 |0
+<U7064> \xC6\x65 |0
+<U7065> \xF9\xA3 |0
+<U7066> \xF9\x6C |0
+<U7067> \x97\xD0 |0
+<U7068> \xF9\xA2 |0
+<U7069> \xF9\xD0 |0
+<U706A> \xF9\xD1 |0
+<U706B> \xA4\xF5 |0
+<U706C> \x8B\xD2 |0
+<U706F> \x8D\xF8 |0
+<U7070> \xA6\xC7 |0
+<U7071> \xCA\x41 |0
+<U7074> \xCB\x5E |0
+<U7075> \x90\xD9 |0
+<U7076> \xA8\x5F |0
+<U7077> \x8C\x47 |0
+<U7078> \xA8\x62 |0
+<U7079> \xFA\xF0 |0
+<U707A> \xCB\x5F |0
+<U707C> \xA8\x60 |0
+<U707D> \xA8\x61 |0
+<U707E> \xFD\xE1 |0
+<U707F> \x8D\xF9 |0
+<U7081> \xFD\xE3 |0
+<U7082> \xCD\x58 |0
+<U7083> \xCD\x5A |0
+<U7084> \xCD\x55 |0
+<U7085> \xCD\x52 |0
+<U7086> \xCD\x54 |0
+<U7089> \x8D\xFA |0
+<U708A> \xAA\xA4 |0
+<U708B> \xFB\x63 |0
+<U708E> \xAA\xA2 |0
+<U708F> \x90\xA6 |0
+<U7091> \xCD\x56 |0
+<U7092> \xAA\xA3 |0
+<U7093> \xCD\x53 |0
+<U7094> \xCD\x50 |0
+<U7095> \xAA\xA1 |0
+<U7096> \xCD\x57 |0
+<U7098> \xCD\x51 |0
+<U7099> \xAA\xA5 |0
+<U709A> \xCD\x59 |0
+<U709F> \xCF\xAF |0
+<U70A0> \x99\x70 |0
+<U70A1> \xCF\xB3 |0
+<U70A3> \x91\xEB |0
+<U70A4> \xAC\xB7 |0
+<U70A5> \x97\x70 |0
+<U70A6> \x98\x6F |0
+<U70A7> \xFD\xE2 |0
+<U70A9> \xCF\xB6 |0
+<U70AB> \xAC\xAF |0
+<U70AC> \xAC\xB2 |0
+<U70AD> \xAC\xB4 |0
+<U70AE> \xAC\xB6 |0
+<U70AF> \xAC\xB3 |0
+<U70B0> \xCF\xB2 |0
+<U70B1> \xCF\xB1 |0
+<U70B3> \xAC\xB1 |0
+<U70B4> \xCF\xB4 |0
+<U70B5> \xCF\xB5 |0
+<U70B7> \xCF\xAE |0
+<U70B8> \xAC\xB5 |0
+<U70B9> \x98\xF2 |0
+<U70BA> \xAC\xB0 |0
+<U70BB> \x9A\xFC |0
+<U70BC> \x89\x6C |0
+<U70BD> \xFD\xFD |0
+<U70BE> \xCF\xB0 |0
+<U70C0> \x99\x5E |0
+<U70C4> \x95\xBD |0
+<U70C5> \xD2\x77 |0
+<U70C6> \xD2\x78 |0
+<U70C7> \xD2\x79 |0
+<U70C8> \xAF\x50 |0
+<U70CA> \xAF\x4C |0
+<U70CB> \xD2\x6E |0
+<U70CC> \xFD\xE4 |0
+<U70CD> \xD2\x76 |0
+<U70CE> \xD2\x7B |0
+<U70CF> \xAF\x51 |0
+<U70D0> \x91\xE6 |0
+<U70D1> \xD2\x6C |0
+<U70D2> \xD2\x72 |0
+<U70D3> \xD2\x6B |0
+<U70D4> \xD2\x75 |0
+<U70D5> \xFD\xE5 |0
+<U70D6> \xFD\xE6 |0
+<U70D7> \xD2\x71 |0
+<U70D8> \xAF\x4D |0
+<U70D9> \xAF\x4F |0
+<U70DA> \xD2\x7A |0
+<U70DC> \xD2\x6A |0
+<U70DD> \xD2\x6D |0
+<U70DE> \xD2\x73 |0
+<U70DF> \xFD\xE7 |0
+<U70E0> \xD2\x74 |0
+<U70E1> \xD2\x7C |0
+<U70E2> \xD2\x70 |0
+<U70E4> \xAF\x4E |0
+<U70EF> \xB2\x6D |0
+<U70F0> \xD6\x4E |0
+<U70F1> \x94\x54 |0
+<U70F3> \xD6\x50 |0
+<U70F4> \xD6\x4C |0
+<U70F5> \x99\xB8 |0
+<U70F6> \xD6\x58 |0
+<U70F7> \xD6\x4A |0
+<U70F8> \xD6\x57 |0
+<U70F9> \xB2\x69 |0
+<U70FA> \xD6\x48 |0
+<U70FB> \xDA\x5B |0
+<U70FC> \xD6\x52 |0
+<U70FD> \xB2\x6C |0
+<U70FE> \x97\xE9 |0
+<U70FF> \xD6\x53 |0
+<U7100> \xD6\x56 |0
+<U7102> \xD6\x5A |0
+<U7104> \xD6\x4F |0
+<U7105> \x93\x46 |0
+<U7106> \xD6\x54 |0
+<U7109> \xB2\x6A |0
+<U710A> \xB2\x6B |0
+<U710B> \xD6\x59 |0
+<U710C> \xD6\x4D |0
+<U710D> \xD6\x49 |0
+<U710E> \xD6\x5B |0
+<U7110> \xD6\x51 |0
+<U7113> \xD6\x55 |0
+<U7117> \xD6\x4B |0
+<U7119> \xB5\x48 |0
+<U711A> \xB5\x49 |0
+<U711B> \xDA\x65 |0
+<U711C> \xB5\x4F |0
+<U711D> \x98\x63 |0
+<U711E> \xDA\x59 |0
+<U711F> \xDA\x62 |0
+<U7120> \xDA\x58 |0
+<U7121> \xB5\x4C |0
+<U7122> \xDA\x60 |0
+<U7123> \xDA\x5E |0
+<U7125> \xDA\x5F |0
+<U7126> \xB5\x4A |0
+<U7128> \xDA\x63 |0
+<U7129> \x95\xBC |0
+<U712B> \xFD\xED |0
+<U712C> \xFD\xF7 |0
+<U712E> \xDA\x5C |0
+<U712F> \xDA\x5A |0
+<U7130> \xB5\x4B |0
+<U7131> \xDA\x5D |0
+<U7132> \xDA\x61 |0
+<U7133> \x98\x70 |0
+<U7134> \x96\xF6 |0
+<U7135> \x8E\xA9 |0
+<U7136> \xB5\x4D |0
+<U713A> \xDA\x64 |0
+<U713B> \x94\x51 |0
+<U713E> \x8E\x43 |0
+<U7140> \x8B\x5A |0
+<U7141> \xDE\x70 |0
+<U7142> \xDE\x77 |0
+<U7143> \xDE\x79 |0
+<U7144> \xDE\xA1 |0
+<U7145> \xFD\xEE |0
+<U7146> \xB7\xDA |0
+<U7147> \xDE\x6B |0
+<U7149> \xB7\xD2 |0
+<U714A> \xFD\xF0 |0
+<U714B> \xDE\x7A |0
+<U714C> \xB7\xD7 |0
+<U714D> \xDE\xA2 |0
+<U714E> \xB7\xCE |0
+<U714F> \xFD\xF4 |0
+<U7150> \xDE\x7D |0
+<U7151> \x9B\xF5 |0
+<U7152> \xDE\x6D |0
+<U7153> \xDE\x7E |0
+<U7154> \xDE\x6C |0
+<U7156> \xB7\xDC |0
+<U7158> \xDE\x78 |0
+<U7159> \xB7\xCF |0
+<U715A> \xDE\xA3 |0
+<U715C> \xB7\xD4 |0
+<U715D> \xDE\x71 |0
+<U715E> \xB7\xD9 |0
+<U715F> \xDE\x7C |0
+<U7160> \xDE\x6F |0
+<U7161> \xDE\x76 |0
+<U7162> \xDE\x72 |0
+<U7163> \xDE\x6E |0
+<U7164> \xB7\xD1 |0
+<U7165> \xB7\xD8 |0
+<U7166> \xB7\xD6 |0
+<U7167> \xB7\xD3 |0
+<U7168> \xB7\xDB |0
+<U7169> \xB7\xD0 |0
+<U716A> \xDE\x75 |0
+<U716B> \x97\x7E |0
+<U716C> \xB7\xD5 |0
+<U716E> \xB5\x4E |0
+<U7170> \xDE\x7B |0
+<U7171> \x9B\xD5 |0
+<U7172> \xDE\x73 |0
+<U7173> \x9A\xC3 |0
+<U7175> \x97\xC8 |0
+<U7176> \xA0\xDB |0
+<U7177> \x91\xD0 |0
+<U7178> \xDE\x74 |0
+<U717A> \x9F\xE4 |0
+<U717B> \xE2\xC1 |0
+<U717C> \x8F\xDD |0
+<U717D> \xBA\xB4 |0
+<U717E> \x91\xE9 |0
+<U7180> \xE2\xBD |0
+<U7181> \xE2\xC3 |0
+<U7182> \xE2\xBF |0
+<U7184> \xBA\xB6 |0
+<U7185> \xE2\xBE |0
+<U7186> \xE2\xC2 |0
+<U7187> \xE2\xBA |0
+<U7188> \x98\xE0 |0
+<U7189> \xE2\xBC |0
+<U718A> \xBA\xB5 |0
+<U718C> \x92\xCA |0
+<U718E> \x98\x57 |0
+<U718F> \xE2\xC0 |0
+<U7190> \xE2\xBB |0
+<U7191> \x8C\x51 |0
+<U7192> \xBA\xB7 |0
+<U7194> \xBA\xB2 |0
+<U7196> \xFD\xEB |0
+<U7197> \xE2\xC4 |0
+<U7198> \x9B\x49 |0
+<U7199> \xBA\xB3 |0
+<U719A> \xE6\x67 |0
+<U719B> \xE6\x64 |0
+<U719C> \xE6\x70 |0
+<U719D> \xE6\x6A |0
+<U719E> \xE6\x6C |0
+<U719F> \xBC\xF4 |0
+<U71A0> \xE6\x66 |0
+<U71A1> \xE6\x6E |0
+<U71A2> \x9D\x76 |0
+<U71A3> \x9E\xAF |0
+<U71A4> \xE6\x6D |0
+<U71A5> \xE6\x6B |0
+<U71A7> \xE6\x71 |0
+<U71A8> \xBC\xF7 |0
+<U71A9> \xE6\x68 |0
+<U71AA> \xE6\x6F |0
+<U71AC> \xBC\xF5 |0
+<U71AD> \x9C\xCC |0
+<U71AF> \xE6\x63 |0
+<U71B0> \xE6\x65 |0
+<U71B1> \xBC\xF6 |0
+<U71B2> \xE6\x62 |0
+<U71B3> \xE6\x72 |0
+<U71B4> \xFD\xEA |0
+<U71B5> \xE6\x69 |0
+<U71B7> \x8D\xF1 |0
+<U71B8> \xEA\x4A |0
+<U71B9> \xBF\x51 |0
+<U71BA> \xFD\xFB |0
+<U71BC> \xEA\x55 |0
+<U71BD> \xEA\x53 |0
+<U71BE> \xBF\x4B |0
+<U71BF> \xEA\x49 |0
+<U71C0> \xEA\x4C |0
+<U71C1> \xEA\x4D |0
+<U71C2> \xEA\x48 |0
+<U71C3> \xBF\x55 |0
+<U71C4> \xBF\x56 |0
+<U71C5> \xEA\x47 |0
+<U71C6> \xEA\x56 |0
+<U71C7> \xEA\x51 |0
+<U71C8> \xBF\x4F |0
+<U71C9> \xBF\x4C |0
+<U71CA> \xEA\x50 |0
+<U71CB> \xEA\x4E |0
+<U71CE> \xBF\x52 |0
+<U71CF> \xEA\x52 |0
+<U71D0> \xBF\x4D |0
+<U71D1> \x8E\x53 |0
+<U71D2> \xBF\x4E |0
+<U71D4> \xEA\x4F |0
+<U71D5> \xBF\x50 |0
+<U71D6> \xEA\x4B |0
+<U71D8> \xEA\x54 |0
+<U71D9> \xBF\x53 |0
+<U71DA> \xEA\x57 |0
+<U71DB> \xEA\x58 |0
+<U71DC> \xBF\x54 |0
+<U71DD> \xFA\xCF |0
+<U71DF> \xC0\xE7 |0
+<U71E0> \xC0\xEE |0
+<U71E1> \xED\x5C |0
+<U71E2> \xED\x62 |0
+<U71E4> \xED\x60 |0
+<U71E5> \xC0\xEA |0
+<U71E6> \xC0\xE9 |0
+<U71E7> \xC0\xE6 |0
+<U71E8> \xED\x5E |0
+<U71EB> \x96\xF9 |0
+<U71EC> \xC0\xEC |0
+<U71ED> \xC0\xEB |0
+<U71EE> \xC0\xE8 |0
+<U71F0> \xED\x61 |0
+<U71F1> \xED\x5D |0
+<U71F2> \xED\x5F |0
+<U71F4> \xC0\xED |0
+<U71F5> \x98\xBF |0
+<U71F6> \x9E\x49 |0
+<U71F8> \xC2\x77 |0
+<U71F9> \xEF\xFB |0
+<U71FB> \xC2\x74 |0
+<U71FC> \xC2\x75 |0
+<U71FD> \xEF\xFD |0
+<U71FE> \xC2\x76 |0
+<U71FF> \xEF\xFA |0
+<U7200> \x8C\xA7 |0
+<U7201> \xEF\xF9 |0
+<U7202> \xF2\x6C |0
+<U7203> \xEF\xFC |0
+<U7205> \xF2\x6D |0
+<U7206> \xC3\x7A |0
+<U7207> \xF2\x6B |0
+<U7209> \x9B\xCA |0
+<U720A> \xF2\x6A |0
+<U720C> \xF2\x69 |0
+<U720D> \xC3\x7B |0
+<U720E> \xFD\xFE |0
+<U720F> \x92\xDC |0
+<U7210> \xC4\x6C |0
+<U7213> \xF4\x6A |0
+<U7214> \xF4\x6B |0
+<U7215> \xFE\x41 |0
+<U7216> \x91\xCC |0
+<U7217> \x91\xE2 |0
+<U7219> \xF5\xDC |0
+<U721A> \xF5\xDB |0
+<U721B> \xC4\xEA |0
+<U721D> \xF5\xDA |0
+<U721E> \xF6\xEC |0
+<U721F> \xF6\xED |0
+<U7222> \xF7\xE6 |0
+<U7223> \xF8\xB1 |0
+<U7224> \xFE\x44 |0
+<U7226> \xF8\xF6 |0
+<U7227> \xF9\xBC |0
+<U7228> \xC6\x79 |0
+<U7229> \xF9\xC6 |0
+<U722A> \xA4\xF6 |0
+<U722B> \x8B\xD3 |0
+<U722C> \xAA\xA6 |0
+<U722D> \xAA\xA7 |0
+<U722E> \xFE\x47 |0
+<U7230> \xAC\xB8 |0
+<U7235> \xC0\xEF |0
+<U7236> \xA4\xF7 |0
+<U7238> \xAA\xA8 |0
+<U7239> \xAF\x52 |0
+<U723A> \xB7\xDD |0
+<U723B> \xA4\xF8 |0
+<U723D> \xB2\x6E |0
+<U723E> \xBA\xB8 |0
+<U723F> \xC9\x62 |0
+<U7240> \xFE\x48 |0
+<U7241> \xCF\xB7 |0
+<U7242> \xD2\x7D |0
+<U7244> \xE2\xC5 |0
+<U7246> \xC0\xF0 |0
+<U7247> \xA4\xF9 |0
+<U7248> \xAA\xA9 |0
+<U7249> \xCF\xB8 |0
+<U724A> \xCF\xB9 |0
+<U724B> \xDA\x66 |0
+<U724C> \xB5\x50 |0
+<U724F> \xDE\xA4 |0
+<U7250> \x94\x55 |0
+<U7252> \xB7\xDE |0
+<U7253> \xE2\xC6 |0
+<U7255> \xFE\x4B |0
+<U7256> \xBC\xF8 |0
+<U7257> \xFE\x4C |0
+<U7258> \xC3\x7C |0
+<U7259> \xA4\xFA |0
+<U725A> \xDA\x67 |0
+<U725B> \xA4\xFB |0
+<U725C> \x8D\xBF |0
+<U725D> \xA6\xC9 |0
+<U725E> \xCA\x42 |0
+<U725F> \xA6\xC8 |0
+<U7260> \xA8\x65 |0
+<U7261> \xA8\x64 |0
+<U7262> \xA8\x63 |0
+<U7263> \xCB\x60 |0
+<U7266> \x9E\x78 |0
+<U7267> \xAA\xAA |0
+<U7269> \xAA\xAB |0
+<U726A> \xCD\x5B |0
+<U726C> \xCF\xBA |0
+<U726E> \xCF\xBD |0
+<U726F> \xAC\xBA |0
+<U7270> \xCF\xBB |0
+<U7272> \xAC\xB9 |0
+<U7273> \xCF\xBC |0
+<U7274> \xAC\xBB |0
+<U7276> \xD2\xA2 |0
+<U7277> \xD2\xA1 |0
+<U7278> \xD2\x7E |0
+<U7279> \xAF\x53 |0
+<U727B> \xD6\x5D |0
+<U727C> \xD6\x5E |0
+<U727D> \xB2\x6F |0
+<U727E> \xD6\x5C |0
+<U727F> \xD6\x5F |0
+<U7280> \xB5\x52 |0
+<U7281> \xB2\x70 |0
+<U7282> \xFE\x51 |0
+<U7284> \xB5\x51 |0
+<U7285> \xDA\x6B |0
+<U7286> \xDA\x6A |0
+<U7287> \x94\x56 |0
+<U7288> \xDA\x68 |0
+<U7289> \xDA\x69 |0
+<U728B> \xDA\x6C |0
+<U728C> \xDE\xA6 |0
+<U728D> \xDE\xA5 |0
+<U728E> \xDE\xA9 |0
+<U728F> \x9D\x61 |0
+<U7290> \xDE\xA8 |0
+<U7291> \xDE\xA7 |0
+<U7292> \xBA\xB9 |0
+<U7293> \xE2\xC9 |0
+<U7294> \x94\x57 |0
+<U7295> \xE2\xC8 |0
+<U7296> \xBA\xBA |0
+<U7297> \xE2\xC7 |0
+<U7298> \xE6\x73 |0
+<U729A> \xE6\x74 |0
+<U729B> \xBC\xF9 |0
+<U729D> \xEA\x59 |0
+<U729E> \xEA\x5A |0
+<U729F> \x99\x66 |0
+<U72A1> \xF2\x72 |0
+<U72A2> \xC3\x7D |0
+<U72A3> \xF2\x71 |0
+<U72A4> \xF2\x70 |0
+<U72A5> \xF2\x6E |0
+<U72A6> \xF2\x6F |0
+<U72A7> \xC4\xEB |0
+<U72A8> \xF4\x6C |0
+<U72A9> \xF6\xEE |0
+<U72AA> \xF8\xF7 |0
+<U72AC> \xA4\xFC |0
+<U72AD> \x8B\xD5 |0
+<U72AE> \xC9\xA5 |0
+<U72AF> \xA5\xC7 |0
+<U72B0> \xC9\xA6 |0
+<U72B2> \xA0\x69 |0
+<U72B4> \xCA\x43 |0
+<U72B5> \xCA\x44 |0
+<U72BA> \xCB\x66 |0
+<U72BD> \xCB\x62 |0
+<U72BF> \xCB\x61 |0
+<U72C0> \xAA\xAC |0
+<U72C1> \xCB\x65 |0
+<U72C2> \xA8\x67 |0
+<U72C3> \xCB\x63 |0
+<U72C4> \xA8\x66 |0
+<U72C5> \xCB\x67 |0
+<U72C6> \xCB\x64 |0
+<U72C9> \xCD\x5F |0
+<U72CA> \xCF\xBE |0
+<U72CB> \xCD\x5D |0
+<U72CC> \xCD\x64 |0
+<U72CD> \x98\xB4 |0
+<U72CE> \xAA\xAD |0
+<U72D0> \xAA\xB0 |0
+<U72D1> \xCD\x65 |0
+<U72D2> \xCD\x61 |0
+<U72D4> \xCD\x62 |0
+<U72D6> \xCD\x5C |0
+<U72D7> \xAA\xAF |0
+<U72D8> \xCD\x5E |0
+<U72D9> \xAA\xAE |0
+<U72DA> \xCD\x63 |0
+<U72DC> \xCD\x60 |0
+<U72DF> \xCF\xC2 |0
+<U72E0> \xAC\xBD |0
+<U72E1> \xAC\xBE |0
+<U72E2> \xA0\x49 |0
+<U72E3> \xCF\xC5 |0
+<U72E4> \xCF\xBF |0
+<U72E6> \xCF\xC4 |0
+<U72E8> \xCF\xC0 |0
+<U72E9> \xAC\xBC |0
+<U72EA> \xCF\xC3 |0
+<U72EB> \xCF\xC1 |0
+<U72F3> \xD2\xA8 |0
+<U72F4> \xD2\xA5 |0
+<U72F6> \xD2\xA7 |0
+<U72F7> \xAF\x58 |0
+<U72F8> \xAF\x57 |0
+<U72F9> \xAF\x55 |0
+<U72FA> \xD2\xA4 |0
+<U72FB> \xD2\xA9 |0
+<U72FC> \xAF\x54 |0
+<U72FD> \xAF\x56 |0
+<U72FE> \xD2\xA6 |0
+<U72FF> \xD6\x67 |0
+<U7300> \xD2\xA3 |0
+<U7301> \xD2\xAA |0
+<U7302> \xA0\x4C |0
+<U7304> \x9E\x65 |0
+<U7307> \xD6\x62 |0
+<U7308> \xD6\x66 |0
+<U730A> \xD6\x65 |0
+<U730B> \xDA\x6E |0
+<U730C> \xDA\x79 |0
+<U730F> \xD6\x68 |0
+<U7310> \x98\xB5 |0
+<U7311> \xD6\x63 |0
+<U7312> \xDA\x6D |0
+<U7313> \xB2\x74 |0
+<U7316> \xB2\x73 |0
+<U7317> \xD6\x61 |0
+<U7318> \xD6\x64 |0
+<U7319> \xB2\x75 |0
+<U731B> \xB2\x72 |0
+<U731C> \xB2\x71 |0
+<U731D> \xD6\x60 |0
+<U731E> \xD6\x69 |0
+<U7322> \xDA\x70 |0
+<U7323> \xDA\x77 |0
+<U7325> \xB5\x54 |0
+<U7326> \xDA\x76 |0
+<U7327> \xDA\x73 |0
+<U7328> \xFE\x58 |0
+<U7329> \xB5\x56 |0
+<U732A> \x99\x75 |0
+<U732B> \xFE\x53 |0
+<U732C> \xA0\x65 |0
+<U732D> \xDA\x75 |0
+<U732E> \xFE\x59 |0
+<U7330> \xDA\x6F |0
+<U7331> \xDA\x71 |0
+<U7332> \xDA\x74 |0
+<U7333> \xDA\x72 |0
+<U7334> \xB5\x55 |0
+<U7335> \xDA\x78 |0
+<U7336> \xB5\x53 |0
+<U7337> \xB7\xDF |0
+<U7338> \x98\xB7 |0
+<U7339> \x98\xB8 |0
+<U733A> \xDE\xAD |0
+<U733B> \xDE\xAC |0
+<U733C> \xDE\xAA |0
+<U733E> \xB7\xE2 |0
+<U733F> \xB7\xE1 |0
+<U7340> \xDE\xAE |0
+<U7341> \x98\xBA |0
+<U7342> \xDE\xAB |0
+<U7343> \xE2\xCA |0
+<U7344> \xBA\xBB |0
+<U7345> \xB7\xE0 |0
+<U7348> \x98\xBB |0
+<U7349> \xDE\xB0 |0
+<U734A> \xDE\xAF |0
+<U734C> \xE2\xCD |0
+<U734D> \xE2\xCB |0
+<U734E> \xBC\xFA |0
+<U734F> \x9F\xBC |0
+<U7350> \xBA\xBC |0
+<U7351> \xE2\xCC |0
+<U7352> \xE6\x76 |0
+<U7357> \xBC\xFB |0
+<U7358> \xE6\x75 |0
+<U7359> \xE6\x7E |0
+<U735A> \xE6\x7D |0
+<U735B> \xE6\x7B |0
+<U735D> \xE6\x7A |0
+<U735E> \xE6\x77 |0
+<U735F> \xE6\x78 |0
+<U7360> \xE6\x79 |0
+<U7361> \xE6\x7C |0
+<U7362> \xE6\xA1 |0
+<U7365> \xEA\x5F |0
+<U7366> \xEA\x5C |0
+<U7367> \xEA\x5D |0
+<U7368> \xBF\x57 |0
+<U7369> \xEA\x5B |0
+<U736A> \xEA\x61 |0
+<U736B> \xEA\x60 |0
+<U736C> \xEA\x5E |0
+<U736E> \xED\x64 |0
+<U736F> \xED\x65 |0
+<U7370> \xC0\xF1 |0
+<U7371> \xA0\x4A |0
+<U7372> \xC0\xF2 |0
+<U7373> \xED\x63 |0
+<U7374> \x9E\xC7 |0
+<U7375> \xC2\x79 |0
+<U7376> \xEF\xFE |0
+<U7377> \xC2\x78 |0
+<U7378> \xC3\x7E |0
+<U737A> \xC3\xA1 |0
+<U737B> \xC4\x6D |0
+<U737C> \xF4\x6E |0
+<U737D> \xF4\x6D |0
+<U737E> \xF5\xDD |0
+<U737F> \xF6\xEF |0
+<U7380> \xC5\x7A |0
+<U7381> \xF7\xE8 |0
+<U7382> \xF7\xE7 |0
+<U7383> \xF7\xE9 |0
+<U7384> \xA5\xC8 |0
+<U7385> \xCF\xC6 |0
+<U7386> \xAF\x59 |0
+<U7387> \xB2\x76 |0
+<U7388> \xD6\x6A |0
+<U7389> \xA5\xC9 |0
+<U738A> \xC9\xA7 |0
+<U738B> \xA4\xFD |0
+<U738C> \x8C\xA9 |0
+<U738E> \xCA\x45 |0
+<U738F> \x98\xAE |0
+<U7392> \xCB\x6C |0
+<U7393> \xCB\x6A |0
+<U7394> \xCB\x6B |0
+<U7395> \xCB\x68 |0
+<U7396> \xA8\x68 |0
+<U7397> \xCB\x69 |0
+<U7398> \x92\xD6 |0
+<U739C> \xFA\xE1 |0
+<U739D> \xCD\x6D |0
+<U739E> \x91\xD4 |0
+<U739F> \xAA\xB3 |0
+<U73A0> \xCD\x6B |0
+<U73A1> \xCD\x67 |0
+<U73A2> \xCD\x6A |0
+<U73A4> \xCD\x66 |0
+<U73A5> \xAA\xB5 |0
+<U73A6> \xCD\x69 |0
+<U73A7> \xFA\xDE |0
+<U73A8> \xAA\xB2 |0
+<U73A9> \xAA\xB1 |0
+<U73AA> \xFE\x5B |0
+<U73AB> \xAA\xB4 |0
+<U73AC> \xCD\x6C |0
+<U73AD> \xCD\x68 |0
+<U73B2> \xAC\xC2 |0
+<U73B3> \xAC\xC5 |0
+<U73B4> \xCF\xCE |0
+<U73B5> \xCF\xCD |0
+<U73B6> \xCF\xCC |0
+<U73B7> \xAC\xBF |0
+<U73B8> \xCF\xD5 |0
+<U73B9> \xCF\xCB |0
+<U73BA> \x8C\x53 |0
+<U73BB> \xAC\xC1 |0
+<U73BC> \xD2\xAF |0
+<U73BE> \xCF\xD2 |0
+<U73BF> \xCF\xD0 |0
+<U73C0> \xAC\xC4 |0
+<U73C2> \xCF\xC8 |0
+<U73C3> \xCF\xD3 |0
+<U73C5> \xCF\xCA |0
+<U73C6> \xCF\xD4 |0
+<U73C7> \xCF\xD1 |0
+<U73C8> \xCF\xC9 |0
+<U73C9> \xFE\x5E |0
+<U73CA> \xAC\xC0 |0
+<U73CB> \xCF\xD6 |0
+<U73CC> \xCF\xC7 |0
+<U73CD> \xAC\xC3 |0
+<U73CE> \xFB\xD7 |0
+<U73CF> \xFE\x5A |0
+<U73D0> \x94\xC5 |0
+<U73D2> \xD2\xB4 |0
+<U73D3> \xD2\xAB |0
+<U73D4> \xD2\xB6 |0
+<U73D5> \xFA\xCA |0
+<U73D6> \xD2\xAE |0
+<U73D7> \xD2\xB9 |0
+<U73D8> \xD2\xBA |0
+<U73D9> \xD2\xAC |0
+<U73DA> \xD2\xB8 |0
+<U73DB> \xD2\xB5 |0
+<U73DC> \xD2\xB3 |0
+<U73DD> \xD2\xB7 |0
+<U73DE> \xAF\x5F |0
+<U73E0> \xAF\x5D |0
+<U73E1> \x98\xC1 |0
+<U73E2> \x97\x5C |0
+<U73E3> \xD2\xB1 |0
+<U73E4> \xFE\x74 |0
+<U73E5> \xD2\xAD |0
+<U73E6> \x97\x73 |0
+<U73E7> \xD2\xB0 |0
+<U73E8> \xD2\xBB |0
+<U73E9> \xD2\xB2 |0
+<U73EA> \xAF\x5E |0
+<U73EB> \xCF\xCF |0
+<U73ED> \xAF\x5A |0
+<U73EE> \xAF\x5C |0
+<U73EF> \xFA\x46 |0
+<U73F3> \x97\x64 |0
+<U73F4> \xD6\x78 |0
+<U73F5> \xD6\x6D |0
+<U73F6> \xD6\x6B |0
+<U73F7> \xFE\x68 |0
+<U73F8> \xD6\x6C |0
+<U73F9> \x96\x4E |0
+<U73FA> \xD6\x73 |0
+<U73FB> \x97\x65 |0
+<U73FC> \xD6\x74 |0
+<U73FD> \xD6\x70 |0
+<U73FE> \xB2\x7B |0
+<U73FF> \xD6\x75 |0
+<U7400> \xD6\x72 |0
+<U7401> \xD6\x6F |0
+<U7402> \x8C\x5A |0
+<U7403> \xB2\x79 |0
+<U7404> \xD6\x6E |0
+<U7405> \xB2\x77 |0
+<U7406> \xB2\x7A |0
+<U7407> \xD6\x71 |0
+<U7408> \xD6\x79 |0
+<U7409> \xAF\x5B |0
+<U740A> \xB2\x78 |0
+<U740B> \xD6\x77 |0
+<U740C> \xD6\x76 |0
+<U740D> \xB2\x7C |0
+<U7411> \x89\xA1 |0
+<U7412> \x95\xFA |0
+<U7414> \x92\xD4 |0
+<U7415> \xFE\x69 |0
+<U7416> \xDA\x7E |0
+<U7417> \xFB\x45 |0
+<U7419> \x98\xC8 |0
+<U741A> \xDA\xA1 |0
+<U741B> \xB5\x60 |0
+<U741C> \x90\xEF |0
+<U741D> \xDA\xA7 |0
+<U741E> \x98\xC9 |0
+<U741F> \x98\xCA |0
+<U7420> \xDA\xA9 |0
+<U7421> \xDA\xA2 |0
+<U7422> \xB5\x5A |0
+<U7423> \xDA\xA6 |0
+<U7424> \xDA\xA5 |0
+<U7425> \xB5\x5B |0
+<U7426> \xB5\x61 |0
+<U7428> \xB5\x62 |0
+<U7429> \xDA\xA8 |0
+<U742A> \xB5\x58 |0
+<U742B> \xDA\x7D |0
+<U742C> \xDA\x7B |0
+<U742D> \xDA\xA3 |0
+<U742E> \xDA\x7A |0
+<U742F> \xB5\x5F |0
+<U7430> \xDA\x7C |0
+<U7431> \xDA\xA4 |0
+<U7432> \xDA\xAA |0
+<U7433> \xB5\x59 |0
+<U7434> \xB5\x5E |0
+<U7435> \xB5\x5C |0
+<U7436> \xB5\x5D |0
+<U7437> \x94\x6D |0
+<U7438> \x94\xB7 |0
+<U7439> \xFE\x6C |0
+<U743A> \xB5\x57 |0
+<U743C> \x94\x6B |0
+<U743F> \xB7\xE9 |0
+<U7440> \xDE\xB7 |0
+<U7441> \xB7\xE8 |0
+<U7442> \xDE\xBB |0
+<U7443> \x92\xFC |0
+<U7444> \xDE\xB1 |0
+<U7445> \x95\xEB |0
+<U7446> \xDE\xBC |0
+<U7447> \xFE\x73 |0
+<U7448> \x97\x6E |0
+<U7449> \xFE\x5F |0
+<U744A> \xDE\xB2 |0
+<U744B> \xDE\xB3 |0
+<U744D> \xDE\xBD |0
+<U744E> \xDE\xBA |0
+<U744F> \xDE\xB8 |0
+<U7450> \xDE\xB9 |0
+<U7451> \xDE\xB5 |0
+<U7452> \xDE\xB4 |0
+<U7453> \xFD\xBD |0
+<U7454> \xDE\xBE |0
+<U7455> \xB7\xE5 |0
+<U7456> \x92\xD5 |0
+<U7457> \xDE\xB6 |0
+<U7459> \xB7\xEA |0
+<U745A> \xB7\xE4 |0
+<U745B> \xB7\xEB |0
+<U745C> \xB7\xEC |0
+<U745D> \xFE\xB9 |0
+<U745E> \xB7\xE7 |0
+<U745F> \xB7\xE6 |0
+<U7460> \xFE\x71 |0
+<U7462> \xE2\xCE |0
+<U7463> \xBA\xBE |0
+<U7464> \xBA\xBD |0
+<U7465> \xFB\xBB |0
+<U7467> \xE2\xD3 |0
+<U7468> \x94\x7A |0
+<U7469> \xBC\xFC |0
+<U746A> \xBA\xBF |0
+<U746B> \x95\xFB |0
+<U746C> \xFE\x77 |0
+<U746D> \xBA\xC1 |0
+<U746E> \xE2\xD4 |0
+<U746F> \xB7\xE3 |0
+<U7470> \xBA\xC0 |0
+<U7471> \xE2\xD0 |0
+<U7472> \xE2\xD2 |0
+<U7473> \xE2\xCF |0
+<U7474> \xFE\x79 |0
+<U7475> \xE2\xD1 |0
+<U7476> \xFE\x75 |0
+<U7479> \xE6\xAB |0
+<U747A> \x94\x5D |0
+<U747C> \xE6\xAA |0
+<U747D> \xE6\xA7 |0
+<U747E> \xBD\x40 |0
+<U747F> \xEA\x62 |0
+<U7480> \xBD\x41 |0
+<U7481> \xE6\xA6 |0
+<U7482> \xFE\x7C |0
+<U7483> \xBC\xFE |0
+<U7485> \xE6\xA8 |0
+<U7486> \xE6\xA5 |0
+<U7487> \xE6\xA2 |0
+<U7488> \xE6\xA9 |0
+<U7489> \xE6\xA3 |0
+<U748A> \xE6\xA4 |0
+<U748B> \xBC\xFD |0
+<U748C> \x93\x44 |0
+<U748D> \x8E\xA6 |0
+<U7490> \xED\x69 |0
+<U7492> \xEA\x66 |0
+<U7494> \xEA\x65 |0
+<U7495> \xEA\x67 |0
+<U7497> \xED\x66 |0
+<U7498> \xBF\x5A |0
+<U7499> \x92\xD3 |0
+<U749A> \xEA\x63 |0
+<U749B> \x94\xB8 |0
+<U749C> \xBF\x58 |0
+<U749E> \xBF\x5C |0
+<U749F> \xBF\x5B |0
+<U74A0> \xEA\x64 |0
+<U74A1> \xEA\x68 |0
+<U74A3> \xBF\x59 |0
+<U74A4> \xFC\x71 |0
+<U74A5> \xED\x6D |0
+<U74A6> \xC0\xF5 |0
+<U74A7> \xC2\x7A |0
+<U74A8> \xC0\xF6 |0
+<U74A9> \xC0\xF3 |0
+<U74AA> \xED\x6A |0
+<U74AB> \xED\x68 |0
+<U74AD> \xED\x6B |0
+<U74AF> \xED\x6E |0
+<U74B0> \xC0\xF4 |0
+<U74B1> \xED\x6C |0
+<U74B2> \xED\x67 |0
+<U74B4> \x97\x5E |0
+<U74B5> \xF0\x42 |0
+<U74B6> \xF0\x45 |0
+<U74B7> \xF2\x75 |0
+<U74B8> \xF0\x40 |0
+<U74B9> \x8C\xAD |0
+<U74BA> \xF4\x6F |0
+<U74BB> \xF0\x46 |0
+<U74BD> \xC3\xA2 |0
+<U74BE> \xF0\x44 |0
+<U74BF> \xC2\x7B |0
+<U74C0> \xF0\x41 |0
+<U74C1> \xF0\x43 |0
+<U74C2> \xF0\x47 |0
+<U74C3> \xF2\x76 |0
+<U74C5> \xF2\x74 |0
+<U74C8> \xFE\xA7 |0
+<U74CA> \xC3\xA3 |0
+<U74CB> \xF2\x73 |0
+<U74CC> \x94\x6A |0
+<U74CF> \xC4\x6E |0
+<U74D0> \x93\xE3 |0
+<U74D3> \x98\xCF |0
+<U74D4> \xC4\xED |0
+<U74D5> \xF6\xF1 |0
+<U74D6> \xC4\xEC |0
+<U74D7> \xF6\xF3 |0
+<U74D8> \xF6\xF0 |0
+<U74D9> \xF6\xF2 |0
+<U74DA> \xC5\xD0 |0
+<U74DB> \xF8\xB2 |0
+<U74DC> \xA5\xCA |0
+<U74DD> \xCD\x6E |0
+<U74DE> \xD2\xBC |0
+<U74DF> \xD2\xBD |0
+<U74E0> \xB2\x7D |0
+<U74E1> \xDE\xBF |0
+<U74E2> \xBF\x5D |0
+<U74E3> \xC3\xA4 |0
+<U74E4> \xC5\x7B |0
+<U74E5> \xF8\xB3 |0
+<U74E6> \xA5\xCB |0
+<U74E7> \xA0\xD9 |0
+<U74E8> \xCD\x6F |0
+<U74E9> \xA2\x60 |0
+<U74EC> \xCF\xD7 |0
+<U74EE> \xCF\xD8 |0
+<U74F0> \xA0\xBF |0
+<U74F1> \xA0\x4D |0
+<U74F2> \xA0\xB8 |0
+<U74F4> \xD2\xBE |0
+<U74F5> \xD2\xBF |0
+<U74F6> \xB2\x7E |0
+<U74F7> \xB2\xA1 |0
+<U74F8> \xA0\xCE |0
+<U74FB> \xDA\xAB |0
+<U74FD> \xDE\xC2 |0
+<U74FE> \xDE\xC1 |0
+<U74FF> \xDE\xC0 |0
+<U7500> \xE2\xD5 |0
+<U7502> \xE2\xD6 |0
+<U7503> \xE2\xD7 |0
+<U7504> \xBA\xC2 |0
+<U7505> \xA0\xB7 |0
+<U7507> \xE6\xAD |0
+<U7508> \xE6\xAC |0
+<U750B> \xEA\x69 |0
+<U750C> \xBF\x5E |0
+<U750D> \xBF\x5F |0
+<U750E> \xFE\xA9 |0
+<U750F> \xED\x72 |0
+<U7510> \xED\x6F |0
+<U7511> \xED\x70 |0
+<U7512> \xED\x71 |0
+<U7513> \xF0\x49 |0
+<U7514> \xF0\x48 |0
+<U7515> \xC2\x7C |0
+<U7516> \xF2\x77 |0
+<U7517> \xF5\xDE |0
+<U7518> \xA5\xCC |0
+<U7519> \x89\xC3 |0
+<U751A> \xAC\xC6 |0
+<U751C> \xB2\xA2 |0
+<U751D> \xDE\xC3 |0
+<U751E> \xFE\xAB |0
+<U751F> \xA5\xCD |0
+<U7521> \xD2\xC0 |0
+<U7522> \xB2\xA3 |0
+<U7525> \xB5\x63 |0
+<U7526> \xB5\x64 |0
+<U7528> \xA5\xCE |0
+<U7529> \xA5\xCF |0
+<U752A> \xCA\x46 |0
+<U752B> \xA8\x6A |0
+<U752C> \xA8\x69 |0
+<U752D> \xAC\xC7 |0
+<U752E> \xCF\xD9 |0
+<U752F> \xDA\xAC |0
+<U7530> \xA5\xD0 |0
+<U7531> \xA5\xD1 |0
+<U7532> \xA5\xD2 |0
+<U7533> \xA5\xD3 |0
+<U7534> \x9D\xF4 |0
+<U7535> \x89\x6D |0
+<U7537> \xA8\x6B |0
+<U7538> \xA8\x6C |0
+<U7539> \xCB\x6E |0
+<U753A> \xCB\x6D |0
+<U753B> \x9C\x7B |0
+<U753D> \xAA\xB6 |0
+<U753E> \xCD\x72 |0
+<U753F> \xCD\x70 |0
+<U7540> \xCD\x71 |0
+<U7542> \x98\xD2 |0
+<U7546> \x9F\xA9 |0
+<U7547> \xCF\xDA |0
+<U7548> \xCF\xDB |0
+<U754A> \xFE\xB2 |0
+<U754B> \xAC\xCB |0
+<U754C> \xAC\xC9 |0
+<U754D> \xFE\xB1 |0
+<U754E> \xAC\xCA |0
+<U754F> \xAC\xC8 |0
+<U7551> \x97\xD9 |0
+<U7553> \xA0\xC4 |0
+<U7554> \xAF\x60 |0
+<U7555> \x94\x76 |0
+<U7559> \xAF\x64 |0
+<U755A> \xAF\x63 |0
+<U755B> \xD2\xC1 |0
+<U755C> \xAF\x62 |0
+<U755D> \xAF\x61 |0
+<U755F> \xD2\xC2 |0
+<U7560> \x99\x78 |0
+<U7562> \xB2\xA6 |0
+<U7563> \xD6\x7B |0
+<U7564> \xD6\x7A |0
+<U7565> \xB2\xA4 |0
+<U7566> \xB2\xA5 |0
+<U7567> \xFE\xB3 |0
+<U756A> \xB5\x66 |0
+<U756B> \xB5\x65 |0
+<U756C> \xDA\xAE |0
+<U756D> \x98\xD3 |0
+<U756E> \xFE\xB4 |0
+<U756F> \xDA\xAD |0
+<U7570> \xB2\xA7 |0
+<U7572> \x98\xD4 |0
+<U7576> \xB7\xED |0
+<U7577> \xDE\xC5 |0
+<U7578> \xB7\xEE |0
+<U7579> \xDE\xC4 |0
+<U757A> \x9F\xB9 |0
+<U757D> \xE2\xD8 |0
+<U757E> \xE6\xAE |0
+<U757F> \xBD\x42 |0
+<U7580> \xEA\x6A |0
+<U7583> \x94\x71 |0
+<U7584> \xED\x73 |0
+<U7586> \xC3\xA6 |0
+<U7587> \xC3\xA5 |0
+<U758A> \xC5\x7C |0
+<U758B> \xA5\xD4 |0
+<U758C> \xCD\x73 |0
+<U758D> \x98\xD5 |0
+<U758E> \xFE\xB8 |0
+<U758F> \xB2\xA8 |0
+<U7590> \xE2\xD9 |0
+<U7591> \xBA\xC3 |0
+<U7592> \xC6\xD4 |0
+<U7594> \xCB\x6F |0
+<U7595> \xCB\x70 |0
+<U7598> \xCD\x74 |0
+<U7599> \xAA\xB8 |0
+<U759A> \xAA\xB9 |0
+<U759D> \xAA\xB7 |0
+<U759E> \xFE\xBA |0
+<U75A2> \xAC\xCF |0
+<U75A3> \xAC\xD0 |0
+<U75A4> \xAC\xCD |0
+<U75A5> \xAC\xCE |0
+<U75A7> \xCF\xDC |0
+<U75AA> \xCF\xDD |0
+<U75AB> \xAC\xCC |0
+<U75B0> \xD2\xC3 |0
+<U75B1> \x9E\x5C |0
+<U75B2> \xAF\x68 |0
+<U75B3> \xAF\x69 |0
+<U75B4> \xFE\xBB |0
+<U75B5> \xB2\xAB |0
+<U75B6> \xD2\xC9 |0
+<U75B8> \xAF\x6E |0
+<U75B9> \xAF\x6C |0
+<U75BA> \xD2\xCA |0
+<U75BB> \xD2\xC5 |0
+<U75BC> \xAF\x6B |0
+<U75BD> \xAF\x6A |0
+<U75BE> \xAF\x65 |0
+<U75BF> \xD2\xC8 |0
+<U75C0> \xD2\xC7 |0
+<U75C1> \xD2\xC4 |0
+<U75C2> \xAF\x6D |0
+<U75C3> \xA0\x44 |0
+<U75C4> \xD2\xC6 |0
+<U75C5> \xAF\x66 |0
+<U75C7> \xAF\x67 |0
+<U75C8> \x98\xD7 |0
+<U75CA> \xB2\xAC |0
+<U75CB> \xD6\xA1 |0
+<U75CC> \xD6\xA2 |0
+<U75CD> \xB2\xAD |0
+<U75CE> \xD6\x7C |0
+<U75CF> \xD6\x7E |0
+<U75D0> \xD6\xA4 |0
+<U75D1> \xD6\xA3 |0
+<U75D2> \xD6\x7D |0
+<U75D4> \xB2\xA9 |0
+<U75D5> \xB2\xAA |0
+<U75D7> \xDA\xB6 |0
+<U75D8> \xB5\x6B |0
+<U75D9> \xB5\x6A |0
+<U75DA> \xDA\xB0 |0
+<U75DB> \xB5\x68 |0
+<U75DC> \x98\xD8 |0
+<U75DD> \xDA\xB3 |0
+<U75DE> \xB5\x6C |0
+<U75DF> \xDA\xB4 |0
+<U75E0> \xB5\x6D |0
+<U75E1> \xDA\xB1 |0
+<U75E2> \xB5\x67 |0
+<U75E3> \xB5\x69 |0
+<U75E4> \xDA\xB5 |0
+<U75E6> \xDA\xB2 |0
+<U75E7> \xDA\xAF |0
+<U75ED> \xDE\xD2 |0
+<U75EF> \xDE\xC7 |0
+<U75F0> \xB7\xF0 |0
+<U75F1> \xB7\xF3 |0
+<U75F2> \xB7\xF2 |0
+<U75F3> \xB7\xF7 |0
+<U75F4> \xB7\xF6 |0
+<U75F5> \xDE\xD3 |0
+<U75F6> \xDE\xD1 |0
+<U75F7> \xDE\xCA |0
+<U75F8> \xDE\xCE |0
+<U75F9> \xDE\xCD |0
+<U75FA> \xB7\xF4 |0
+<U75FB> \xDE\xD0 |0
+<U75FC> \xDE\xCC |0
+<U75FD> \xDE\xD4 |0
+<U75FE> \xDE\xCB |0
+<U75FF> \xB7\xF5 |0
+<U7600> \xB7\xEF |0
+<U7601> \xB7\xF1 |0
+<U7602> \xFE\xBC |0
+<U7603> \xDE\xC9 |0
+<U7607> \x9F\xFE |0
+<U7608> \xE2\xDB |0
+<U7609> \xBA\xC7 |0
+<U760A> \xE2\xDF |0
+<U760B> \xBA\xC6 |0
+<U760C> \xE2\xDC |0
+<U760D> \xBA\xC5 |0
+<U760F> \xDE\xC8 |0
+<U7610> \xDE\xCF |0
+<U7611> \xE2\xDE |0
+<U7613> \xBA\xC8 |0
+<U7614> \xE2\xE0 |0
+<U7615> \xE2\xDD |0
+<U7616> \xE2\xDA |0
+<U7619> \xE6\xB1 |0
+<U761A> \xE6\xB5 |0
+<U761B> \xE6\xB7 |0
+<U761C> \xE6\xB3 |0
+<U761D> \xE6\xB2 |0
+<U761E> \xE6\xB0 |0
+<U761F> \xBD\x45 |0
+<U7620> \xBD\x43 |0
+<U7621> \xBD\x48 |0
+<U7622> \xBD\x49 |0
+<U7623> \xE6\xB4 |0
+<U7624> \xBD\x46 |0
+<U7625> \xE6\xAF |0
+<U7626> \xBD\x47 |0
+<U7627> \xBA\xC4 |0
+<U7628> \xE6\xB6 |0
+<U7629> \xBD\x44 |0
+<U762C> \xFE\xBD |0
+<U762D> \xEA\x6C |0
+<U762F> \xEA\x6B |0
+<U7630> \xEA\x73 |0
+<U7631> \xEA\x6D |0
+<U7632> \xEA\x72 |0
+<U7633> \xEA\x6F |0
+<U7634> \xBF\x60 |0
+<U7635> \xEA\x71 |0
+<U7638> \xBF\x61 |0
+<U763A> \xBF\x62 |0
+<U763B> \x9D\xDD |0
+<U763C> \xEA\x70 |0
+<U763D> \xEA\x6E |0
+<U7640> \x9E\xE1 |0
+<U7642> \xC0\xF8 |0
+<U7643> \xED\x74 |0
+<U7646> \xC0\xF7 |0
+<U7647> \xED\x77 |0
+<U7648> \xED\x75 |0
+<U7649> \xED\x76 |0
+<U764C> \xC0\xF9 |0
+<U764D> \x98\xDA |0
+<U764E> \x9D\xDF |0
+<U764F> \xFE\xBF |0
+<U7650> \xF0\x4D |0
+<U7651> \xFE\xBE |0
+<U7652> \xC2\xA1 |0
+<U7653> \xF0\x4E |0
+<U7654> \x9E\xEB |0
+<U7656> \xC2\x7D |0
+<U7657> \xF0\x4F |0
+<U7658> \xC2\x7E |0
+<U7659> \xF0\x4C |0
+<U765A> \xF0\x50 |0
+<U765C> \xF0\x4A |0
+<U765F> \xC3\xA7 |0
+<U7660> \xF2\x78 |0
+<U7661> \xC3\xA8 |0
+<U7662> \xC4\x6F |0
+<U7664> \xF0\x4B |0
+<U7665> \xC4\x70 |0
+<U7666> \x9E\x59 |0
+<U7667> \xA0\x5C |0
+<U7669> \xC4\xEE |0
+<U766A> \xF5\xDF |0
+<U766C> \xC5\x7E |0
+<U766D> \xF6\xF4 |0
+<U766E> \xC5\x7D |0
+<U766F> \xFE\xC0 |0
+<U7670> \xF7\xEA |0
+<U7671> \xC5\xF5 |0
+<U7672> \xC5\xF6 |0
+<U7673> \x94\x77 |0
+<U7674> \x98\xDC |0
+<U7675> \xF9\xCC |0
+<U7676> \xFE\xC1 |0
+<U7678> \xAC\xD1 |0
+<U7679> \xCF\xDE |0
+<U767A> \x98\xDE |0
+<U767B> \xB5\x6E |0
+<U767C> \xB5\x6F |0
+<U767D> \xA5\xD5 |0
+<U767E> \xA6\xCA |0
+<U767F> \xCA\x47 |0
+<U7681> \xCB\x71 |0
+<U7682> \xA8\x6D |0
+<U7684> \xAA\xBA |0
+<U7686> \xAC\xD2 |0
+<U7687> \xAC\xD3 |0
+<U7688> \xAC\xD4 |0
+<U7689> \xD6\xA6 |0
+<U768A> \xD2\xCB |0
+<U768B> \xAF\x6F |0
+<U768E> \xB2\xAE |0
+<U768F> \xD6\xA5 |0
+<U7690> \xFE\xC3 |0
+<U7692> \xDA\xB8 |0
+<U7693> \xB5\x71 |0
+<U7695> \xDA\xB7 |0
+<U7696> \xB5\x70 |0
+<U7699> \xDE\xD5 |0
+<U769A> \xBD\x4A |0
+<U769B> \xE6\xBB |0
+<U769C> \xE6\xB8 |0
+<U769D> \xE6\xB9 |0
+<U769E> \xE6\xBA |0
+<U76A1> \xFE\xC8 |0
+<U76A4> \xED\x78 |0
+<U76A5> \xFE\xC9 |0
+<U76A6> \xF0\x51 |0
+<U76AA> \xF4\x71 |0
+<U76AB> \xF4\x70 |0
+<U76AD> \xF6\xF5 |0
+<U76AE> \xA5\xD6 |0
+<U76AF> \xCD\x75 |0
+<U76B0> \xAF\x70 |0
+<U76B4> \xB5\x72 |0
+<U76B5> \xDE\xD6 |0
+<U76B7> \xFE\xCA |0
+<U76B8> \xE2\xE1 |0
+<U76BA> \xBD\x4B |0
+<U76BB> \xEA\x74 |0
+<U76BD> \xF0\x52 |0
+<U76BE> \xF4\x72 |0
+<U76BF> \xA5\xD7 |0
+<U76C2> \xAA\xBB |0
+<U76C3> \xAC\xD7 |0
+<U76C4> \xCF\xDF |0
+<U76C5> \xAC\xD8 |0
+<U76C6> \xAC\xD6 |0
+<U76C8> \xAC\xD5 |0
+<U76C9> \xD2\xCC |0
+<U76CA> \xAF\x71 |0
+<U76CC> \xFE\xCB |0
+<U76CD> \xAF\x72 |0
+<U76CE> \xAF\x73 |0
+<U76D2> \xB2\xB0 |0
+<U76D3> \xD6\xA7 |0
+<U76D4> \xB2\xAF |0
+<U76D6> \x9F\xC2 |0
+<U76D9> \x8C\x6B |0
+<U76DA> \xDA\xB9 |0
+<U76DB> \xB2\xB1 |0
+<U76DC> \xB5\x73 |0
+<U76DD> \xDE\xD7 |0
+<U76DE> \xB7\xF8 |0
+<U76DF> \xB7\xF9 |0
+<U76E1> \xBA\xC9 |0
+<U76E3> \xBA\xCA |0
+<U76E4> \xBD\x4C |0
+<U76E5> \xBF\x64 |0
+<U76E6> \xEA\x75 |0
+<U76E7> \xBF\x63 |0
+<U76E9> \xED\x79 |0
+<U76EA> \xC0\xFA |0
+<U76EC> \xF0\x53 |0
+<U76ED> \xF4\x73 |0
+<U76EE> \xA5\xD8 |0
+<U76EF> \xA8\x6E |0
+<U76F0> \xCD\x78 |0
+<U76F1> \xCD\x77 |0
+<U76F2> \xAA\xBC |0
+<U76F3> \xCD\x76 |0
+<U76F4> \xAA\xBD |0
+<U76F5> \xCD\x79 |0
+<U76F7> \xCF\xE5 |0
+<U76F8> \xAC\xDB |0
+<U76F9> \xAC\xDA |0
+<U76FA> \xCF\xE7 |0
+<U76FB> \xCF\xE6 |0
+<U76FC> \xAC\xDF |0
+<U76FE> \xAC\xDE |0
+<U7701> \xAC\xD9 |0
+<U7703> \xCF\xE1 |0
+<U7704> \xCF\xE2 |0
+<U7705> \xCF\xE3 |0
+<U7707> \xAC\xE0 |0
+<U7708> \xCF\xE0 |0
+<U7709> \xAC\xDC |0
+<U770A> \xCF\xE4 |0
+<U770B> \xAC\xDD |0
+<U770C> \x98\xC4 |0
+<U770E> \x94\xB0 |0
+<U770F> \x94\xB1 |0
+<U7710> \xD2\xCF |0
+<U7711> \xD2\xD3 |0
+<U7712> \xD2\xD1 |0
+<U7713> \xD2\xD0 |0
+<U7715> \xD2\xD4 |0
+<U7719> \xD2\xD5 |0
+<U771A> \xD2\xD6 |0
+<U771B> \xD2\xCE |0
+<U771D> \xD2\xCD |0
+<U771E> \xFE\xD1 |0
+<U771F> \xAF\x75 |0
+<U7720> \xAF\x76 |0
+<U7722> \xD2\xD7 |0
+<U7723> \xD2\xD2 |0
+<U7724> \xA0\xC1 |0
+<U7725> \xD6\xB0 |0
+<U7726> \xFE\xD2 |0
+<U7727> \xD2\xD8 |0
+<U7728> \xAF\x77 |0
+<U7729> \xAF\x74 |0
+<U772B> \xA0\xCD |0
+<U772D> \xD6\xAA |0
+<U772F> \xD6\xA9 |0
+<U7731> \xD6\xAB |0
+<U7732> \xD6\xAC |0
+<U7733> \xD6\xAE |0
+<U7734> \xD6\xAD |0
+<U7735> \xD6\xB2 |0
+<U7736> \xB2\xB5 |0
+<U7737> \xB2\xB2 |0
+<U7738> \xB2\xB6 |0
+<U7739> \xD6\xA8 |0
+<U773A> \xB2\xB7 |0
+<U773B> \xD6\xB1 |0
+<U773C> \xB2\xB4 |0
+<U773D> \xD6\xAF |0
+<U773E> \xB2\xB3 |0
+<U7740> \xFE\xD3 |0
+<U7743> \x98\xE5 |0
+<U7744> \xDA\xBC |0
+<U7745> \xDA\xBE |0
+<U7746> \xDA\xBA |0
+<U7747> \xDA\xBB |0
+<U774A> \xDA\xBF |0
+<U774B> \xDA\xC1 |0
+<U774C> \xDA\xC2 |0
+<U774D> \xDA\xBD |0
+<U774E> \xDA\xC0 |0
+<U774F> \xB5\x74 |0
+<U7752> \xDE\xDB |0
+<U7754> \xDE\xE0 |0
+<U7755> \xDE\xD8 |0
+<U7756> \xDE\xDC |0
+<U7758> \xFE\xD6 |0
+<U7759> \xDE\xE1 |0
+<U775A> \xDE\xDD |0
+<U775B> \xB7\xFA |0
+<U775C> \xB8\x43 |0
+<U775E> \xB7\xFD |0
+<U775F> \xDE\xD9 |0
+<U7760> \xDE\xDA |0
+<U7761> \xBA\xCE |0
+<U7762> \xB8\x46 |0
+<U7763> \xB7\xFE |0
+<U7765> \xB8\x44 |0
+<U7766> \xB7\xFC |0
+<U7767> \xDE\xDF |0
+<U7768> \xB8\x45 |0
+<U7769> \xDE\xDE |0
+<U776A> \xB8\x41 |0
+<U776B> \xB7\xFB |0
+<U776C> \xB8\x42 |0
+<U776D> \xDE\xE2 |0
+<U776E> \xE2\xE6 |0
+<U776F> \xE2\xE8 |0
+<U7772> \x91\xE4 |0
+<U7777> \x8F\xC7 |0
+<U7778> \x94\xAE |0
+<U7779> \xB8\x40 |0
+<U777A> \x8A\x4F |0
+<U777B> \x94\xB2 |0
+<U777C> \xE2\xE3 |0
+<U777D> \xBA\xCC |0
+<U777E> \xE2\xE9 |0
+<U777F> \xBA\xCD |0
+<U7780> \xE2\xE7 |0
+<U7781> \xE2\xE2 |0
+<U7782> \xE2\xE5 |0
+<U7783> \xE2\xEA |0
+<U7784> \xBA\xCB |0
+<U7785> \xE2\xE4 |0
+<U7787> \xBD\x4E |0
+<U7788> \xE6\xBF |0
+<U7789> \xE6\xBE |0
+<U778B> \xBD\x51 |0
+<U778C> \xBD\x4F |0
+<U778D> \xE6\xBC |0
+<U778E> \xBD\x4D |0
+<U778F> \xE6\xBD |0
+<U7791> \xBD\x50 |0
+<U7793> \x8F\xD4 |0
+<U7795> \xEA\x7D |0
+<U7797> \xEA\xA1 |0
+<U7798> \x98\xEA |0
+<U7799> \xEA\x7E |0
+<U779A> \xEA\x76 |0
+<U779B> \xEA\x7A |0
+<U779C> \xEA\x79 |0
+<U779D> \xEA\x77 |0
+<U779E> \xBF\x66 |0
+<U779F> \xBF\x67 |0
+<U77A0> \xBF\x65 |0
+<U77A1> \xEA\x78 |0
+<U77A2> \xEA\x7B |0
+<U77A3> \xEA\x7C |0
+<U77A5> \xBF\x68 |0
+<U77A7> \xC1\x40 |0
+<U77A8> \xED\xA3 |0
+<U77AA> \xC0\xFC |0
+<U77AB> \xED\x7B |0
+<U77AC> \xC0\xFE |0
+<U77AD> \xC1\x41 |0
+<U77AF> \xFE\xD8 |0
+<U77B0> \xC0\xFD |0
+<U77B1> \xED\xA2 |0
+<U77B2> \xED\x7C |0
+<U77B3> \xC0\xFB |0
+<U77B4> \xED\xA1 |0
+<U77B5> \xED\x7A |0
+<U77B6> \xED\x7E |0
+<U77B7> \xED\x7D |0
+<U77B9> \x9D\xE0 |0
+<U77BA> \xF0\x55 |0
+<U77BB> \xC2\xA4 |0
+<U77BC> \xC2\xA5 |0
+<U77BD> \xC2\xA2 |0
+<U77BE> \x98\xEE |0
+<U77BF> \xC2\xA3 |0
+<U77C2> \xF0\x54 |0
+<U77C3> \x95\xC4 |0
+<U77C4> \xF2\x7B |0
+<U77C5> \xFC\xE8 |0
+<U77C7> \xC3\xA9 |0
+<U77C9> \xF2\x79 |0
+<U77CA> \xF2\x7A |0
+<U77CB> \x98\xEF |0
+<U77CC> \xF4\x74 |0
+<U77CD> \xF4\x77 |0
+<U77CE> \xF4\x75 |0
+<U77CF> \xF4\x76 |0
+<U77D0> \xF5\xE0 |0
+<U77D3> \xC4\xEF |0
+<U77D4> \xF7\xEB |0
+<U77D5> \xF8\xB4 |0
+<U77D7> \xC5\xF7 |0
+<U77D8> \xF8\xF8 |0
+<U77D9> \xF8\xF9 |0
+<U77DA> \xC6\x66 |0
+<U77DB> \xA5\xD9 |0
+<U77DC> \xAC\xE1 |0
+<U77DD> \x8C\x6E |0
+<U77DE> \xDA\xC3 |0
+<U77E0> \xDE\xE3 |0
+<U77E2> \xA5\xDA |0
+<U77E3> \xA8\x6F |0
+<U77E5> \xAA\xBE |0
+<U77E6> \xFA\xD8 |0
+<U77E7> \xCF\xE8 |0
+<U77E8> \xCF\xE9 |0
+<U77E9> \xAF\x78 |0
+<U77EC> \xDA\xC4 |0
+<U77ED> \xB5\x75 |0
+<U77EE> \xB8\x47 |0
+<U77EF> \xC1\x42 |0
+<U77F0> \xED\xA4 |0
+<U77F1> \xF2\x7C |0
+<U77F2> \xF4\x78 |0
+<U77F3> \xA5\xDB |0
+<U77F4> \xFE\xDC |0
+<U77F7> \xCD\xA1 |0
+<U77F8> \xCD\x7A |0
+<U77F9> \xCD\x7C |0
+<U77FA> \xCD\x7E |0
+<U77FB> \xCD\x7D |0
+<U77FC> \xCD\x7B |0
+<U77FD> \xAA\xBF |0
+<U77FE> \xA0\xAE |0
+<U7802> \xAC\xE2 |0
+<U7803> \xCF\xF2 |0
+<U7805> \xCF\xED |0
+<U7806> \xCF\xEA |0
+<U7808> \x9D\x4C |0
+<U7809> \xCF\xF1 |0
+<U780C> \xAC\xE4 |0
+<U780D> \xAC\xE5 |0
+<U780E> \xCF\xF0 |0
+<U780F> \xCF\xEF |0
+<U7810> \xCF\xEE |0
+<U7811> \xCF\xEB |0
+<U7812> \xCF\xEC |0
+<U7813> \xCF\xF3 |0
+<U7814> \xAC\xE3 |0
+<U7818> \x98\xF1 |0
+<U781C> \x98\xF3 |0
+<U781D> \xAF\x7C |0
+<U781E> \x94\xC1 |0
+<U781F> \xAF\xA4 |0
+<U7820> \xAF\xA3 |0
+<U7821> \xD2\xE1 |0
+<U7822> \xD2\xDB |0
+<U7823> \xD2\xD9 |0
+<U7825> \xAF\xA1 |0
+<U7826> \xD6\xB9 |0
+<U7827> \xAF\x7A |0
+<U7828> \xD2\xDE |0
+<U7829> \xD2\xE2 |0
+<U782A> \xD2\xE4 |0
+<U782B> \xD2\xE0 |0
+<U782C> \xD2\xDA |0
+<U782D> \xAF\xA2 |0
+<U782E> \xD2\xDF |0
+<U782F> \xD2\xDD |0
+<U7830> \xAF\x79 |0
+<U7831> \xD2\xE5 |0
+<U7832> \xAF\xA5 |0
+<U7833> \xD2\xE3 |0
+<U7834> \xAF\x7D |0
+<U7835> \xD2\xDC |0
+<U7837> \xAF\x7E |0
+<U7838> \xAF\x7B |0
+<U7839> \x98\xF5 |0
+<U783C> \xFA\x4F |0
+<U783D> \x96\xE2 |0
+<U7842> \x94\x50 |0
+<U7843> \xB2\xB9 |0
+<U7844> \x96\xA2 |0
+<U7845> \xD6\xBA |0
+<U7847> \x98\xF6 |0
+<U7848> \xD6\xB3 |0
+<U7849> \xD6\xB5 |0
+<U784A> \xD6\xB7 |0
+<U784B> \x96\xE5 |0
+<U784C> \xD6\xB8 |0
+<U784D> \xD6\xB6 |0
+<U784E> \xB2\xBA |0
+<U7850> \xD6\xBB |0
+<U7851> \x98\xF7 |0
+<U7852> \xD6\xB4 |0
+<U7853> \xA0\x46 |0
+<U7854> \x96\xE3 |0
+<U785C> \xDA\xC8 |0
+<U785D> \xB5\x76 |0
+<U785E> \xDA\xD0 |0
+<U7860> \xDA\xC5 |0
+<U7862> \xDA\xD1 |0
+<U7864> \xDA\xC6 |0
+<U7865> \xDA\xC7 |0
+<U7866> \x98\xF8 |0
+<U7868> \xDA\xCF |0
+<U7869> \xDA\xCE |0
+<U786A> \xDA\xCB |0
+<U786B> \xB2\xB8 |0
+<U786C> \xB5\x77 |0
+<U786D> \xDA\xC9 |0
+<U786E> \xDA\xCC |0
+<U786F> \xB5\x78 |0
+<U7870> \xDA\xCD |0
+<U7871> \xDA\xCA |0
+<U7879> \xDE\xEE |0
+<U787A> \x9E\xE4 |0
+<U787B> \xDE\xF2 |0
+<U787C> \xB8\x4E |0
+<U787E> \xE2\xF0 |0
+<U787F> \xB8\x51 |0
+<U7880> \xDE\xF0 |0
+<U7881> \xF9\xD6 |0
+<U7883> \xDE\xED |0
+<U7884> \xDE\xE8 |0
+<U7885> \xDE\xEA |0
+<U7886> \xDE\xEB |0
+<U7887> \xDE\xE4 |0
+<U7888> \x94\xC3 |0
+<U7889> \xB8\x4D |0
+<U788C> \xB8\x4C |0
+<U788D> \x94\xC2 |0
+<U788E> \xB8\x48 |0
+<U788F> \xDE\xE7 |0
+<U7891> \xB8\x4F |0
+<U7893> \xB8\x50 |0
+<U7894> \xDE\xE6 |0
+<U7895> \xDE\xE9 |0
+<U7896> \xDE\xF1 |0
+<U7897> \xB8\x4A |0
+<U7898> \xB8\x4B |0
+<U7899> \xDE\xEF |0
+<U789A> \xDE\xE5 |0
+<U789E> \xE2\xF2 |0
+<U789F> \xBA\xD0 |0
+<U78A0> \xE2\xF4 |0
+<U78A1> \xDE\xEC |0
+<U78A2> \xE2\xF6 |0
+<U78A3> \xBA\xD4 |0
+<U78A4> \xE2\xF7 |0
+<U78A5> \xE2\xF3 |0
+<U78A7> \xBA\xD1 |0
+<U78A8> \xE2\xEF |0
+<U78A9> \xBA\xD3 |0
+<U78AA> \xE2\xEC |0
+<U78AB> \xE2\xF1 |0
+<U78AC> \xE2\xF5 |0
+<U78AD> \xE2\xEE |0
+<U78AF> \xFE\xE1 |0
+<U78B0> \xB8\x49 |0
+<U78B1> \xFE\xE9 |0
+<U78B2> \xE2\xEB |0
+<U78B3> \xBA\xD2 |0
+<U78B4> \xE2\xED |0
+<U78B6> \x96\xE4 |0
+<U78B8> \x89\xAC |0
+<U78B9> \x96\xDB |0
+<U78BA> \xBD\x54 |0
+<U78BB> \xE6\xC1 |0
+<U78BC> \xBD\x58 |0
+<U78BE> \xBD\x56 |0
+<U78C1> \xBA\xCF |0
+<U78C3> \xE6\xC8 |0
+<U78C4> \xE6\xC9 |0
+<U78C5> \xBD\x53 |0
+<U78C7> \xFE\xE2 |0
+<U78C8> \xE6\xC7 |0
+<U78C9> \xE6\xCA |0
+<U78CA> \xBD\x55 |0
+<U78CB> \xBD\x52 |0
+<U78CC> \xE6\xC3 |0
+<U78CD> \xE6\xC0 |0
+<U78CE> \xE6\xC5 |0
+<U78CF> \xE6\xC2 |0
+<U78D0> \xBD\x59 |0
+<U78D1> \xE6\xC4 |0
+<U78D2> \x94\xC4 |0
+<U78D3> \xFE\xE3 |0
+<U78D4> \xE6\xC6 |0
+<U78D5> \xBD\x57 |0
+<U78D7> \xFE\xE7 |0
+<U78D8> \x9F\xFB |0
+<U78DA> \xBF\x6A |0
+<U78DB> \xEA\xA8 |0
+<U78DD> \xEA\xA2 |0
+<U78DE> \xEA\xA6 |0
+<U78DF> \xEA\xAC |0
+<U78E0> \xEA\xAD |0
+<U78E1> \xEA\xA9 |0
+<U78E2> \xEA\xAA |0
+<U78E3> \xEA\xA7 |0
+<U78E4> \x8C\x59 |0
+<U78E5> \xEA\xA4 |0
+<U78E7> \xBF\x6C |0
+<U78E8> \xBF\x69 |0
+<U78E9> \xEA\xA3 |0
+<U78EA> \xEA\xA5 |0
+<U78EC> \xBF\x6B |0
+<U78ED> \xEA\xAB |0
+<U78EE> \x93\xC9 |0
+<U78EF> \xC1\x46 |0
+<U78F0> \x94\xE8 |0
+<U78F1> \xFB\x56 |0
+<U78F2> \xED\xAA |0
+<U78F3> \xED\xA5 |0
+<U78F4> \xC1\x45 |0
+<U78F5> \x90\xC5 |0
+<U78F7> \xC1\x43 |0
+<U78F9> \xED\xAC |0
+<U78FA> \xC1\x44 |0
+<U78FB> \xED\xA8 |0
+<U78FC> \xED\xA9 |0
+<U78FD> \xED\xA6 |0
+<U78FE> \xED\xAD |0
+<U78FF> \xF0\x56 |0
+<U7901> \xC1\x47 |0
+<U7902> \xED\xA7 |0
+<U7904> \xED\xAE |0
+<U7905> \xED\xAB |0
+<U7906> \xA0\xA8 |0
+<U7909> \xF0\x5A |0
+<U790C> \xF0\x57 |0
+<U790E> \xC2\xA6 |0
+<U7910> \xF0\x5B |0
+<U7911> \xF0\x5D |0
+<U7912> \xF0\x5C |0
+<U7913> \xF0\x58 |0
+<U7914> \xF0\x59 |0
+<U7917> \xF2\xA3 |0
+<U7919> \xC3\xAA |0
+<U791B> \xF2\x7E |0
+<U791C> \xF2\xA2 |0
+<U791D> \xF2\x7D |0
+<U791E> \xF2\xA4 |0
+<U7921> \xF2\xA1 |0
+<U7923> \xF4\x7A |0
+<U7924> \xF4\x7D |0
+<U7925> \xF4\x79 |0
+<U7926> \xC4\x71 |0
+<U7927> \xF4\x7B |0
+<U7928> \xF4\x7C |0
+<U7929> \xF4\x7E |0
+<U792A> \xC4\x72 |0
+<U792B> \xC4\x74 |0
+<U792C> \xC4\x73 |0
+<U792D> \xF5\xE1 |0
+<U792E> \xFE\xE5 |0
+<U792F> \xF5\xE3 |0
+<U7931> \xF5\xE2 |0
+<U7932> \x98\xFD |0
+<U7933> \x98\xFB |0
+<U7934> \xFE\xE8 |0
+<U7935> \xF6\xF6 |0
+<U7936> \x8E\xBF |0
+<U7938> \xF8\xB5 |0
+<U7939> \xF8\xFA |0
+<U793A> \xA5\xDC |0
+<U793B> \x8B\xD8 |0
+<U793C> \xFE\xF7 |0
+<U793D> \xCB\x72 |0
+<U793E> \xAA\xC0 |0
+<U793F> \xCD\xA3 |0
+<U7940> \xAA\xC1 |0
+<U7941> \xAA\xC2 |0
+<U7942> \xCD\xA2 |0
+<U7944> \xCF\xF8 |0
+<U7945> \xCF\xF7 |0
+<U7946> \xAC\xE6 |0
+<U7947> \xAC\xE9 |0
+<U7948> \xAC\xE8 |0
+<U7949> \xAC\xE7 |0
+<U794A> \xCF\xF4 |0
+<U794B> \xCF\xF6 |0
+<U794C> \xCF\xF5 |0
+<U794F> \xD2\xE8 |0
+<U7950> \xAF\xA7 |0
+<U7951> \xD2\xEC |0
+<U7952> \xD2\xEB |0
+<U7953> \xD2\xEA |0
+<U7954> \xD2\xE6 |0
+<U7955> \xAF\xA6 |0
+<U7956> \xAF\xAA |0
+<U7957> \xAF\xAD |0
+<U7958> \x8F\x68 |0
+<U7959> \x94\xC6 |0
+<U795A> \xAF\xAE |0
+<U795B> \xD2\xE7 |0
+<U795C> \xD2\xE9 |0
+<U795D> \xAF\xAC |0
+<U795E> \xAF\xAB |0
+<U795F> \xAF\xA9 |0
+<U7960> \xAF\xA8 |0
+<U7961> \xD6\xC2 |0
+<U7962> \x9D\xEA |0
+<U7963> \xD6\xC0 |0
+<U7964> \xD6\xBC |0
+<U7965> \xB2\xBB |0
+<U7967> \xD6\xBD |0
+<U7968> \xB2\xBC |0
+<U7969> \xD6\xBE |0
+<U796A> \xD6\xBF |0
+<U796B> \xD6\xC1 |0
+<U796D> \xB2\xBD |0
+<U7970> \xDA\xD5 |0
+<U7971> \xFC\x69 |0
+<U7972> \xDA\xD4 |0
+<U7973> \xDA\xD3 |0
+<U7974> \xDA\xD2 |0
+<U7979> \xDE\xF6 |0
+<U797A> \xB8\x52 |0
+<U797C> \xDE\xF3 |0
+<U797D> \xDE\xF5 |0
+<U797E> \x9C\xDA |0
+<U797F> \xB8\x53 |0
+<U7980> \xFE\xF3 |0
+<U7981> \xB8\x54 |0
+<U7982> \xDE\xF4 |0
+<U7983> \x9C\x72 |0
+<U7986> \xFE\xF0 |0
+<U7987> \x89\xC9 |0
+<U7988> \xE3\x41 |0
+<U798A> \xE2\xF9 |0
+<U798B> \xE2\xFA |0
+<U798D> \xBA\xD7 |0
+<U798E> \xBA\xD5 |0
+<U798F> \xBA\xD6 |0
+<U7990> \xE3\x43 |0
+<U7991> \x99\x41 |0
+<U7992> \xE3\x42 |0
+<U7993> \xE2\xFE |0
+<U7994> \xE2\xFD |0
+<U7995> \xE2\xFC |0
+<U7996> \xE2\xFB |0
+<U7997> \xE3\x40 |0
+<U7998> \xE2\xF8 |0
+<U7999> \x99\x42 |0
+<U799A> \xE6\xCB |0
+<U799B> \xE6\xD0 |0
+<U799C> \xE6\xCE |0
+<U799D> \xFE\xF5 |0
+<U799F> \x91\xD7 |0
+<U79A0> \xE6\xCD |0
+<U79A1> \xE6\xCC |0
+<U79A2> \xE6\xCF |0
+<U79A4> \xEA\xAE |0
+<U79A5> \x94\xCC |0
+<U79A6> \xBF\x6D |0
+<U79A7> \xC1\x48 |0
+<U79A8> \xED\xB0 |0
+<U79A9> \xFE\xF8 |0
+<U79AA> \xC1\x49 |0
+<U79AB> \xED\xAF |0
+<U79AC> \xF0\x5F |0
+<U79AD> \xF0\x5E |0
+<U79AE> \xC2\xA7 |0
+<U79B0> \xF2\xA5 |0
+<U79B1> \xC3\xAB |0
+<U79B2> \xF4\xA1 |0
+<U79B3> \xC5\xA1 |0
+<U79B4> \xF6\xF7 |0
+<U79B6> \xF8\xB7 |0
+<U79B7> \xF8\xB6 |0
+<U79B8> \xC9\xA8 |0
+<U79B9> \xAC\xEA |0
+<U79BA> \xAC\xEB |0
+<U79BB> \xD6\xC3 |0
+<U79BD> \xB8\x56 |0
+<U79BE> \xA5\xDD |0
+<U79BF> \xA8\x72 |0
+<U79C0> \xA8\x71 |0
+<U79C1> \xA8\x70 |0
+<U79C4> \x97\xA8 |0
+<U79C5> \xCD\xA4 |0
+<U79C6> \xFE\xFC |0
+<U79C8> \xAA\xC4 |0
+<U79C9> \xAA\xC3 |0
+<U79CB> \xAC\xEE |0
+<U79CC> \xFD\xBF |0
+<U79CD> \xCF\xFA |0
+<U79CE> \xCF\xFD |0
+<U79CF> \xCF\xFB |0
+<U79D1> \xAC\xEC |0
+<U79D2> \xAC\xED |0
+<U79D4> \xFE\xFE |0
+<U79D5> \xCF\xF9 |0
+<U79D6> \xCF\xFC |0
+<U79D8> \xAF\xB5 |0
+<U79DC> \xD2\xF3 |0
+<U79DD> \xD2\xF5 |0
+<U79DE> \xD2\xF4 |0
+<U79DF> \xAF\xB2 |0
+<U79E0> \xD2\xEF |0
+<U79E2> \x96\xD1 |0
+<U79E3> \xAF\xB0 |0
+<U79E4> \xAF\xAF |0
+<U79E6> \xAF\xB3 |0
+<U79E7> \xAF\xB1 |0
+<U79E9> \xAF\xB4 |0
+<U79EA> \xD2\xF2 |0
+<U79EB> \xD2\xED |0
+<U79EC> \xD2\xEE |0
+<U79ED> \xD2\xF1 |0
+<U79EE> \xD2\xF0 |0
+<U79F1> \x94\xD5 |0
+<U79F4> \x94\xD0 |0
+<U79F6> \xD6\xC6 |0
+<U79F7> \xD6\xC7 |0
+<U79F8> \xD6\xC5 |0
+<U79FA> \xD6\xC4 |0
+<U79FB> \xB2\xBE |0
+<U7A00> \xB5\x7D |0
+<U7A02> \xDA\xD6 |0
+<U7A03> \xDA\xD8 |0
+<U7A04> \xDA\xDA |0
+<U7A05> \xB5\x7C |0
+<U7A06> \x99\x44 |0
+<U7A08> \xB5\x7A |0
+<U7A0A> \xDA\xD7 |0
+<U7A0B> \xB5\x7B |0
+<U7A0C> \xDA\xD9 |0
+<U7A0D> \xB5\x79 |0
+<U7A10> \xDF\x41 |0
+<U7A11> \xDE\xF7 |0
+<U7A12> \xDE\xFA |0
+<U7A13> \xDE\xFE |0
+<U7A14> \xB8\x5A |0
+<U7A15> \xDE\xFC |0
+<U7A17> \xDE\xFB |0
+<U7A18> \xDE\xF8 |0
+<U7A19> \xDE\xF9 |0
+<U7A1A> \xB8\x58 |0
+<U7A1B> \xDF\x40 |0
+<U7A1C> \xB8\x57 |0
+<U7A1E> \xB8\x5C |0
+<U7A1F> \xB8\x5B |0
+<U7A20> \xB8\x59 |0
+<U7A22> \xDE\xFD |0
+<U7A26> \xE3\x49 |0
+<U7A28> \xE3\x48 |0
+<U7A2A> \x8C\x63 |0
+<U7A2B> \xE3\x44 |0
+<U7A2D> \xA0\xB3 |0
+<U7A2E> \xBA\xD8 |0
+<U7A2F> \xE3\x47 |0
+<U7A30> \xE3\x46 |0
+<U7A31> \xBA\xD9 |0
+<U7A37> \xBD\x5E |0
+<U7A39> \xE6\xD2 |0
+<U7A3A> \x94\xCF |0
+<U7A3B> \xBD\x5F |0
+<U7A3C> \xBD\x5B |0
+<U7A3D> \xBD\x5D |0
+<U7A3E> \x9F\xFA |0
+<U7A3F> \xBD\x5A |0
+<U7A40> \xBD\x5C |0
+<U7A43> \x91\xE5 |0
+<U7A44> \xEA\xAF |0
+<U7A45> \x9C\x6A |0
+<U7A46> \xBF\x70 |0
+<U7A47> \xEA\xB1 |0
+<U7A48> \xEA\xB0 |0
+<U7A49> \x8E\x49 |0
+<U7A4A> \xE3\x45 |0
+<U7A4B> \xBF\x72 |0
+<U7A4C> \xBF\x71 |0
+<U7A4D> \xBF\x6E |0
+<U7A4E> \xBF\x6F |0
+<U7A54> \xED\xB5 |0
+<U7A56> \xED\xB3 |0
+<U7A57> \xC1\x4A |0
+<U7A58> \xED\xB4 |0
+<U7A5A> \xED\xB6 |0
+<U7A5B> \xED\xB2 |0
+<U7A5C> \xED\xB1 |0
+<U7A5F> \xF0\x60 |0
+<U7A60> \xC2\xAA |0
+<U7A61> \xC2\xA8 |0
+<U7A62> \xC2\xA9 |0
+<U7A65> \x8E\x4C |0
+<U7A67> \xF2\xA6 |0
+<U7A68> \xF2\xA7 |0
+<U7A69> \xC3\xAD |0
+<U7A6B> \xC3\xAC |0
+<U7A6C> \xF4\xA3 |0
+<U7A6D> \xF4\xA4 |0
+<U7A6E> \xF4\xA2 |0
+<U7A70> \xF6\xF8 |0
+<U7A71> \xF6\xF9 |0
+<U7A74> \xA5\xDE |0
+<U7A75> \xCA\x48 |0
+<U7A76> \xA8\x73 |0
+<U7A78> \xCD\xA5 |0
+<U7A79> \xAA\xC6 |0
+<U7A7A> \xAA\xC5 |0
+<U7A7B> \xCD\xA6 |0
+<U7A7D> \x8E\x4D |0
+<U7A7E> \xD0\x40 |0
+<U7A7F> \xAC\xEF |0
+<U7A80> \xCF\xFE |0
+<U7A81> \xAC\xF0 |0
+<U7A83> \x9A\x73 |0
+<U7A84> \xAF\xB6 |0
+<U7A85> \xD2\xF8 |0
+<U7A86> \xD2\xF6 |0
+<U7A87> \xD2\xFC |0
+<U7A88> \xAF\xB7 |0
+<U7A89> \xD2\xF7 |0
+<U7A8A> \xD2\xFB |0
+<U7A8B> \xD2\xF9 |0
+<U7A8C> \xD2\xFA |0
+<U7A8F> \xD6\xC8 |0
+<U7A90> \xD6\xCA |0
+<U7A91> \x99\x47 |0
+<U7A92> \xB2\xBF |0
+<U7A93> \x8C\xB1 |0
+<U7A94> \xD6\xC9 |0
+<U7A95> \xB2\xC0 |0
+<U7A96> \xB5\xA2 |0
+<U7A97> \xB5\xA1 |0
+<U7A98> \xB5\x7E |0
+<U7A99> \xDA\xDB |0
+<U7A9E> \xDF\x44 |0
+<U7A9F> \xB8\x5D |0
+<U7AA0> \xB8\x5E |0
+<U7AA2> \xDF\x43 |0
+<U7AA3> \xDF\x42 |0
+<U7AA8> \xE3\x4A |0
+<U7AA9> \xBA\xDB |0
+<U7AAA> \xBA\xDA |0
+<U7AAB> \xE3\x4B |0
+<U7AAC> \xE3\x4C |0
+<U7AAE> \xBD\x61 |0
+<U7AAF> \xBD\x60 |0
+<U7AB0> \x8E\x50 |0
+<U7AB1> \xEA\xB5 |0
+<U7AB2> \xE6\xD3 |0
+<U7AB3> \xE6\xD5 |0
+<U7AB4> \xE6\xD4 |0
+<U7AB5> \xEA\xB4 |0
+<U7AB6> \xEA\xB2 |0
+<U7AB7> \xEA\xB6 |0
+<U7AB8> \xEA\xB3 |0
+<U7ABA> \xBF\x73 |0
+<U7ABB> \x8E\x4F |0
+<U7ABC> \x99\x49 |0
+<U7ABE> \xED\xB7 |0
+<U7ABF> \xC1\x4B |0
+<U7AC0> \xED\xB8 |0
+<U7AC1> \xED\xB9 |0
+<U7AC2> \x8E\x51 |0
+<U7AC3> \x8E\x52 |0
+<U7AC4> \xC2\xAB |0
+<U7AC5> \xC2\xAC |0
+<U7AC7> \xC4\x75 |0
+<U7AC8> \x9A\xB2 |0
+<U7AC9> \x89\xA5 |0
+<U7ACA> \xC5\xD1 |0
+<U7ACB> \xA5\xDF |0
+<U7ACF> \x99\x4C |0
+<U7AD1> \xD0\x41 |0
+<U7AD3> \x9F\xF8 |0
+<U7AD8> \xD2\xFD |0
+<U7AD9> \xAF\xB8 |0
+<U7ADA> \x8E\x56 |0
+<U7ADB> \x99\x4D |0
+<U7ADC> \x91\xCA |0
+<U7ADD> \x8E\x57 |0
+<U7ADF> \xB3\xBA |0
+<U7AE0> \xB3\xB9 |0
+<U7AE2> \x94\xE1 |0
+<U7AE3> \xB5\xA4 |0
+<U7AE4> \xDA\xDD |0
+<U7AE5> \xB5\xA3 |0
+<U7AE6> \xDA\xDC |0
+<U7AE7> \x90\x47 |0
+<U7AE9> \x8F\xD8 |0
+<U7AEA> \x8E\x58 |0
+<U7AEB> \xDF\x45 |0
+<U7AED> \xBA\xDC |0
+<U7AEE> \xE3\x4D |0
+<U7AEF> \xBA\xDD |0
+<U7AF6> \xC4\x76 |0
+<U7AF7> \xF4\xA5 |0
+<U7AF9> \xA6\xCB |0
+<U7AFA> \xAA\xC7 |0
+<U7AFB> \xCD\xA7 |0
+<U7AFD> \xAC\xF2 |0
+<U7AFE> \x94\xEB |0
+<U7AFF> \xAC\xF1 |0
+<U7B00> \xD0\x42 |0
+<U7B01> \xD0\x43 |0
+<U7B04> \xD3\x40 |0
+<U7B05> \xD3\x42 |0
+<U7B06> \xAF\xB9 |0
+<U7B08> \xD3\x44 |0
+<U7B09> \xD3\x47 |0
+<U7B0A> \xD3\x45 |0
+<U7B0B> \x8E\x5C |0
+<U7B0C> \x95\x53 |0
+<U7B0E> \xD3\x46 |0
+<U7B0F> \xD3\x43 |0
+<U7B10> \xD2\xFE |0
+<U7B11> \xAF\xBA |0
+<U7B12> \xD3\x48 |0
+<U7B13> \xD3\x41 |0
+<U7B14> \x9F\xE5 |0
+<U7B18> \xD6\xD3 |0
+<U7B19> \xB2\xC6 |0
+<U7B1A> \xD6\xDC |0
+<U7B1B> \xB2\xC3 |0
+<U7B1D> \xD6\xD5 |0
+<U7B1E> \xB2\xC7 |0
+<U7B1F> \x9F\x56 |0
+<U7B20> \xB2\xC1 |0
+<U7B22> \xD6\xD0 |0
+<U7B23> \xD6\xDD |0
+<U7B24> \xD6\xD1 |0
+<U7B25> \xD6\xCE |0
+<U7B26> \xB2\xC5 |0
+<U7B27> \x95\x4F |0
+<U7B28> \xB2\xC2 |0
+<U7B29> \x8E\x5E |0
+<U7B2A> \xD6\xD4 |0
+<U7B2B> \xD6\xD7 |0
+<U7B2C> \xB2\xC4 |0
+<U7B2D> \xD6\xD8 |0
+<U7B2E> \xB2\xC8 |0
+<U7B2F> \xD6\xD9 |0
+<U7B30> \xD6\xCF |0
+<U7B31> \xD6\xD6 |0
+<U7B32> \xD6\xDA |0
+<U7B33> \xD6\xD2 |0
+<U7B34> \xD6\xCD |0
+<U7B35> \xD6\xCB |0
+<U7B38> \xD6\xDB |0
+<U7B39> \x99\x6A |0
+<U7B3B> \xDA\xDF |0
+<U7B40> \xDA\xE4 |0
+<U7B42> \x9C\x64 |0
+<U7B43> \x9C\xD9 |0
+<U7B44> \xDA\xE0 |0
+<U7B45> \xDA\xE6 |0
+<U7B46> \xB5\xA7 |0
+<U7B47> \xD6\xCC |0
+<U7B48> \xDA\xE1 |0
+<U7B49> \xB5\xA5 |0
+<U7B4A> \xDA\xDE |0
+<U7B4B> \xB5\xAC |0
+<U7B4C> \xDA\xE2 |0
+<U7B4D> \xB5\xAB |0
+<U7B4E> \xDA\xE3 |0
+<U7B4F> \xB5\xAD |0
+<U7B50> \xB5\xA8 |0
+<U7B51> \xB5\xAE |0
+<U7B52> \xB5\xA9 |0
+<U7B54> \xB5\xAA |0
+<U7B55> \x8E\x5D |0
+<U7B56> \xB5\xA6 |0
+<U7B58> \xDA\xE5 |0
+<U7B60> \xB8\x61 |0
+<U7B61> \xDF\x50 |0
+<U7B62> \x99\x50 |0
+<U7B63> \xDF\x53 |0
+<U7B64> \xDF\x47 |0
+<U7B65> \xDF\x4C |0
+<U7B66> \xDF\x46 |0
+<U7B67> \xB8\x63 |0
+<U7B69> \xDF\x4A |0
+<U7B6C> \x99\x51 |0
+<U7B6D> \xDF\x48 |0
+<U7B6E> \xB8\x62 |0
+<U7B6F> \x8E\x62 |0
+<U7B70> \xDF\x4F |0
+<U7B71> \xDF\x4E |0
+<U7B72> \xDF\x4B |0
+<U7B73> \xDF\x4D |0
+<U7B74> \xDF\x49 |0
+<U7B75> \xBA\xE1 |0
+<U7B76> \xDF\x52 |0
+<U7B77> \xB8\x5F |0
+<U7B78> \xDF\x51 |0
+<U7B7B> \x99\x52 |0
+<U7B82> \xE3\x5D |0
+<U7B84> \xBA\xE8 |0
+<U7B85> \xE3\x58 |0
+<U7B87> \xBA\xE7 |0
+<U7B88> \xE3\x4E |0
+<U7B8A> \xE3\x50 |0
+<U7B8B> \xBA\xE0 |0
+<U7B8C> \xE3\x55 |0
+<U7B8D> \xE3\x54 |0
+<U7B8E> \xE3\x57 |0
+<U7B8F> \xBA\xE5 |0
+<U7B90> \xE3\x52 |0
+<U7B91> \xE3\x51 |0
+<U7B92> \x8E\x68 |0
+<U7B94> \xBA\xE4 |0
+<U7B95> \xBA\xDF |0
+<U7B96> \xE3\x53 |0
+<U7B97> \xBA\xE2 |0
+<U7B98> \xE3\x59 |0
+<U7B99> \xE3\x5B |0
+<U7B9B> \xE3\x56 |0
+<U7B9C> \xE3\x4F |0
+<U7B9D> \xBA\xE3 |0
+<U7BA0> \xBD\x69 |0
+<U7BA1> \xBA\xDE |0
+<U7BA2> \x8E\x61 |0
+<U7BA3> \x9F\x59 |0
+<U7BA4> \xE3\x5C |0
+<U7BAC> \xE6\xD9 |0
+<U7BAD> \xBD\x62 |0
+<U7BAF> \xE6\xDB |0
+<U7BB1> \xBD\x63 |0
+<U7BB2> \x8B\xB3 |0
+<U7BB4> \xBD\x65 |0
+<U7BB5> \xE6\xDE |0
+<U7BB7> \xE6\xD6 |0
+<U7BB8> \xBA\xE6 |0
+<U7BB9> \xE6\xDC |0
+<U7BBE> \xE6\xD8 |0
+<U7BC0> \xB8\x60 |0
+<U7BC1> \xBD\x68 |0
+<U7BC4> \xBD\x64 |0
+<U7BC6> \xBD\x66 |0
+<U7BC7> \xBD\x67 |0
+<U7BC9> \xBF\x76 |0
+<U7BCA> \xE6\xDD |0
+<U7BCB> \xE6\xD7 |0
+<U7BCC> \xBD\x6A |0
+<U7BCE> \xE6\xDA |0
+<U7BCF> \x9F\x5D |0
+<U7BD0> \x8E\x66 |0
+<U7BD4> \xEA\xC0 |0
+<U7BD5> \xEA\xBB |0
+<U7BD8> \xEA\xC5 |0
+<U7BD9> \xBF\x74 |0
+<U7BDA> \xEA\xBD |0
+<U7BDB> \xBF\x78 |0
+<U7BDC> \xEA\xC3 |0
+<U7BDD> \xEA\xBA |0
+<U7BDE> \xEA\xB7 |0
+<U7BDF> \xEA\xC6 |0
+<U7BE0> \xC1\x51 |0
+<U7BE1> \xBF\x79 |0
+<U7BE2> \xEA\xC2 |0
+<U7BE3> \xEA\xB8 |0
+<U7BE4> \xBF\x77 |0
+<U7BE5> \xEA\xBC |0
+<U7BE6> \xBF\x7B |0
+<U7BE7> \xEA\xB9 |0
+<U7BE8> \xEA\xBE |0
+<U7BE9> \xBF\x7A |0
+<U7BEA> \xEA\xC1 |0
+<U7BEB> \xEA\xC4 |0
+<U7BEC> \x8C\xB2 |0
+<U7BF0> \xED\xCB |0
+<U7BF1> \xED\xCC |0
+<U7BF2> \xED\xBC |0
+<U7BF3> \xED\xC3 |0
+<U7BF4> \xED\xC1 |0
+<U7BF7> \xC1\x4F |0
+<U7BF8> \xED\xC8 |0
+<U7BF9> \xEA\xBF |0
+<U7BFA> \x8E\x6E |0
+<U7BFB> \xED\xBF |0
+<U7BFC> \x9F\x64 |0
+<U7BFD> \xED\xC9 |0
+<U7BFE> \xC1\x4E |0
+<U7BFF> \xED\xBE |0
+<U7C00> \xED\xBD |0
+<U7C01> \xED\xC7 |0
+<U7C02> \xED\xC4 |0
+<U7C03> \xED\xC6 |0
+<U7C05> \xED\xBA |0
+<U7C06> \xED\xCA |0
+<U7C07> \xC1\x4C |0
+<U7C09> \xED\xC5 |0
+<U7C0A> \xED\xCE |0
+<U7C0B> \xED\xC2 |0
+<U7C0C> \xC1\x50 |0
+<U7C0D> \xC1\x4D |0
+<U7C0E> \xED\xC0 |0
+<U7C0F> \xED\xBB |0
+<U7C10> \xED\xCD |0
+<U7C11> \xBF\x75 |0
+<U7C12> \x99\x53 |0
+<U7C15> \xFA\xB8 |0
+<U7C19> \xF0\x63 |0
+<U7C1B> \x99\x54 |0
+<U7C1C> \xF0\x61 |0
+<U7C1D> \xF0\x67 |0
+<U7C1E> \xC2\xB0 |0
+<U7C1F> \xF0\x65 |0
+<U7C20> \xF0\x64 |0
+<U7C21> \xC2\xB2 |0
+<U7C22> \xF0\x6A |0
+<U7C23> \xC2\xB1 |0
+<U7C25> \xF0\x6B |0
+<U7C26> \xF0\x68 |0
+<U7C27> \xC2\xAE |0
+<U7C28> \xF0\x69 |0
+<U7C29> \xF0\x62 |0
+<U7C2A> \xC2\xAF |0
+<U7C2B> \xC2\xAD |0
+<U7C2C> \xF2\xAB |0
+<U7C2D> \xF0\x66 |0
+<U7C30> \xF0\x6C |0
+<U7C33> \xF2\xA8 |0
+<U7C35> \x8E\x70 |0
+<U7C37> \xC3\xB2 |0
+<U7C38> \xC3\xB0 |0
+<U7C39> \xF2\xAA |0
+<U7C3B> \xF2\xAC |0
+<U7C3C> \xF2\xA9 |0
+<U7C3D> \xC3\xB1 |0
+<U7C3E> \xC3\xAE |0
+<U7C3F> \xC3\xAF |0
+<U7C40> \xC3\xB3 |0
+<U7C42> \x9F\x61 |0
+<U7C43> \xC4\x78 |0
+<U7C44> \x8E\x72 |0
+<U7C45> \xF4\xAA |0
+<U7C47> \xF4\xA9 |0
+<U7C48> \xF4\xA7 |0
+<U7C49> \xF4\xA6 |0
+<U7C4A> \xF4\xA8 |0
+<U7C4C> \xC4\x77 |0
+<U7C4D> \xC4\x79 |0
+<U7C50> \xC4\xF0 |0
+<U7C51> \xA0\x6B |0
+<U7C53> \xF5\xE5 |0
+<U7C54> \xF5\xE4 |0
+<U7C56> \x9F\x40 |0
+<U7C57> \xF6\xFA |0
+<U7C59> \xF6\xFC |0
+<U7C5A> \xF6\xFE |0
+<U7C5B> \xF6\xFD |0
+<U7C5C> \xF6\xFB |0
+<U7C5D> \x94\xED |0
+<U7C5F> \xC5\xA3 |0
+<U7C60> \xC5\xA2 |0
+<U7C63> \xC5\xD3 |0
+<U7C64> \xC5\xD2 |0
+<U7C65> \xC5\xD4 |0
+<U7C66> \xF7\xED |0
+<U7C67> \xF7\xEC |0
+<U7C69> \xF8\xFB |0
+<U7C6A> \xF8\xB8 |0
+<U7C6B> \xF8\xFC |0
+<U7C6C> \xC6\x58 |0
+<U7C6D> \x94\xEE |0
+<U7C6E> \xC6\x59 |0
+<U7C6F> \xF9\x6D |0
+<U7C70> \x9F\xBD |0
+<U7C72> \xC6\x7E |0
+<U7C73> \xA6\xCC |0
+<U7C74> \x8E\x7B |0
+<U7C75> \xCD\xA8 |0
+<U7C78> \xD0\x45 |0
+<U7C79> \xD0\x46 |0
+<U7C7A> \xD0\x44 |0
+<U7C7B> \x99\x57 |0
+<U7C7C> \x94\xF7 |0
+<U7C7D> \xAC\xF3 |0
+<U7C7E> \x9F\x5F |0
+<U7C7F> \xD0\x47 |0
+<U7C80> \xD0\x48 |0
+<U7C81> \xD0\x49 |0
+<U7C83> \x8E\x73 |0
+<U7C84> \xD3\x49 |0
+<U7C85> \xD3\x4F |0
+<U7C86> \x9F\x62 |0
+<U7C88> \xD3\x4D |0
+<U7C89> \xAF\xBB |0
+<U7C8A> \xD3\x4B |0
+<U7C8C> \xD3\x4C |0
+<U7C8D> \xD3\x4E |0
+<U7C8E> \x94\xF6 |0
+<U7C91> \xD3\x4A |0
+<U7C92> \xB2\xC9 |0
+<U7C94> \xD6\xDE |0
+<U7C95> \xB2\xCB |0
+<U7C96> \xD6\xE0 |0
+<U7C97> \xB2\xCA |0
+<U7C98> \xD6\xDF |0
+<U7C9C> \x99\x58 |0
+<U7C9E> \xDA\xE8 |0
+<U7C9F> \xB5\xAF |0
+<U7CA1> \xDA\xEA |0
+<U7CA2> \xDA\xE7 |0
+<U7CA3> \xD6\xE1 |0
+<U7CA5> \xB5\xB0 |0
+<U7CA6> \x8E\x75 |0
+<U7CA7> \xF9\xDB |0
+<U7CA8> \xDA\xE9 |0
+<U7CAC> \x90\x72 |0
+<U7CAE> \x94\xF8 |0
+<U7CAF> \xDF\x56 |0
+<U7CB1> \xB8\x64 |0
+<U7CB2> \xDF\x54 |0
+<U7CB3> \xB8\x65 |0
+<U7CB4> \xDF\x55 |0
+<U7CB5> \xB8\x66 |0
+<U7CB8> \x99\x5A |0
+<U7CB9> \xBA\xE9 |0
+<U7CBA> \xE3\x61 |0
+<U7CBB> \xE3\x5E |0
+<U7CBC> \xE3\x60 |0
+<U7CBD> \xBA\xEA |0
+<U7CBE> \xBA\xEB |0
+<U7CBF> \xE3\x5F |0
+<U7CC2> \xA0\xB0 |0
+<U7CC3> \x8C\xB3 |0
+<U7CC5> \xE6\xDF |0
+<U7CC7> \x8E\x79 |0
+<U7CC8> \xE6\xE0 |0
+<U7CC9> \x8E\x78 |0
+<U7CCA> \xBD\x6B |0
+<U7CCB> \xE6\xE2 |0
+<U7CCC> \xE6\xE1 |0
+<U7CCD> \x94\xF3 |0
+<U7CCE> \xA2\x61 |0
+<U7CD0> \xEA\xCA |0
+<U7CD1> \xEA\xCB |0
+<U7CD2> \xEA\xC7 |0
+<U7CD3> \x98\xAF |0
+<U7CD4> \xEA\xC8 |0
+<U7CD5> \xBF\x7C |0
+<U7CD6> \xBF\x7D |0
+<U7CD7> \xEA\xC9 |0
+<U7CD9> \xC1\x57 |0
+<U7CDA> \xA0\xB2 |0
+<U7CDC> \xC1\x53 |0
+<U7CDD> \xC1\x58 |0
+<U7CDE> \xC1\x54 |0
+<U7CDF> \xC1\x56 |0
+<U7CE0> \xC1\x52 |0
+<U7CE2> \xC1\x55 |0
+<U7CE6> \x8E\x7A |0
+<U7CE7> \xC2\xB3 |0
+<U7CE8> \xED\xCF |0
+<U7CEA> \xF2\xAE |0
+<U7CEC> \xF2\xAD |0
+<U7CED> \x99\x5C |0
+<U7CEE> \xF4\xAB |0
+<U7CEF> \xC4\x7A |0
+<U7CF0> \xC4\x7B |0
+<U7CF1> \xF7\x41 |0
+<U7CF2> \xF5\xE6 |0
+<U7CF3> \x8E\x7C |0
+<U7CF4> \xF7\x40 |0
+<U7CF5> \x8E\x7D |0
+<U7CF6> \xF8\xFD |0
+<U7CF7> \xF9\xA4 |0
+<U7CF8> \xA6\xCD |0
+<U7CF9> \x8B\xD9 |0
+<U7CFB> \xA8\x74 |0
+<U7CFC> \x89\xA2 |0
+<U7CFD> \xCD\xA9 |0
+<U7CFE> \xAA\xC8 |0
+<U7D00> \xAC\xF6 |0
+<U7D01> \xD0\x4C |0
+<U7D02> \xAC\xF4 |0
+<U7D03> \xD0\x4A |0
+<U7D04> \xAC\xF9 |0
+<U7D05> \xAC\xF5 |0
+<U7D06> \xAC\xFA |0
+<U7D07> \xAC\xF8 |0
+<U7D08> \xD0\x4B |0
+<U7D09> \xAC\xF7 |0
+<U7D0A> \xAF\xBF |0
+<U7D0B> \xAF\xBE |0
+<U7D0C> \xD3\x5A |0
+<U7D0D> \xAF\xC7 |0
+<U7D0E> \xD3\x53 |0
+<U7D0F> \xD3\x59 |0
+<U7D10> \xAF\xC3 |0
+<U7D11> \xD3\x52 |0
+<U7D12> \xD3\x58 |0
+<U7D13> \xD3\x56 |0
+<U7D14> \xAF\xC2 |0
+<U7D15> \xAF\xC4 |0
+<U7D16> \xD3\x55 |0
+<U7D17> \xAF\xBD |0
+<U7D18> \xD3\x54 |0
+<U7D19> \xAF\xC8 |0
+<U7D1A> \xAF\xC5 |0
+<U7D1B> \xAF\xC9 |0
+<U7D1C> \xAF\xC6 |0
+<U7D1D> \xD3\x51 |0
+<U7D1E> \xD3\x50 |0
+<U7D1F> \xD3\x57 |0
+<U7D20> \xAF\xC0 |0
+<U7D21> \xAF\xBC |0
+<U7D22> \xAF\xC1 |0
+<U7D25> \x9E\xD7 |0
+<U7D28> \xD6\xF0 |0
+<U7D29> \xD6\xE9 |0
+<U7D2B> \xB5\xB5 |0
+<U7D2C> \xD6\xE8 |0
+<U7D2E> \xB2\xCF |0
+<U7D2F> \xB2\xD6 |0
+<U7D30> \xB2\xD3 |0
+<U7D31> \xB2\xD9 |0
+<U7D32> \xB2\xD8 |0
+<U7D33> \xB2\xD4 |0
+<U7D35> \xD6\xE2 |0
+<U7D36> \xD6\xE5 |0
+<U7D38> \xD6\xE4 |0
+<U7D39> \xB2\xD0 |0
+<U7D3A> \xD6\xE6 |0
+<U7D3B> \xD6\xEF |0
+<U7D3C> \xB2\xD1 |0
+<U7D3D> \xD6\xE3 |0
+<U7D3E> \xD6\xEC |0
+<U7D3F> \xD6\xED |0
+<U7D40> \xB2\xD2 |0
+<U7D41> \xD6\xEA |0
+<U7D42> \xB2\xD7 |0
+<U7D43> \xB2\xCD |0
+<U7D44> \xB2\xD5 |0
+<U7D45> \xD6\xE7 |0
+<U7D46> \xB2\xCC |0
+<U7D47> \xD6\xEB |0
+<U7D4A> \xD6\xEE |0
+<U7D4D> \xA0\xB6 |0
+<U7D4E> \xDA\xFB |0
+<U7D4F> \xDA\xF2 |0
+<U7D50> \xB5\xB2 |0
+<U7D51> \xDA\xF9 |0
+<U7D52> \xDA\xF6 |0
+<U7D53> \xDA\xEE |0
+<U7D54> \xDA\xF7 |0
+<U7D55> \xB5\xB4 |0
+<U7D56> \xDA\xEF |0
+<U7D58> \xDA\xEB |0
+<U7D5A> \x9E\x42 |0
+<U7D5B> \xB8\x6C |0
+<U7D5C> \xDA\xF4 |0
+<U7D5D> \x8E\xA4 |0
+<U7D5E> \xB5\xB1 |0
+<U7D5F> \xDA\xFA |0
+<U7D61> \xB5\xB8 |0
+<U7D62> \xB5\xBA |0
+<U7D63> \xDA\xED |0
+<U7D66> \xB5\xB9 |0
+<U7D67> \xDA\xF0 |0
+<U7D68> \xB5\xB3 |0
+<U7D69> \xDA\xF8 |0
+<U7D6A> \xDA\xF1 |0
+<U7D6B> \xDA\xF5 |0
+<U7D6D> \xDA\xF3 |0
+<U7D6E> \xB5\xB6 |0
+<U7D6F> \xDA\xEC |0
+<U7D70> \xB5\xBB |0
+<U7D71> \xB2\xCE |0
+<U7D72> \xB5\xB7 |0
+<U7D73> \xB5\xBC |0
+<U7D79> \xB8\x68 |0
+<U7D7A> \xDF\x5D |0
+<U7D7B> \xDF\x5F |0
+<U7D7C> \xDF\x61 |0
+<U7D7D> \xDF\x65 |0
+<U7D7F> \xDF\x5B |0
+<U7D80> \xDF\x59 |0
+<U7D81> \xB8\x6A |0
+<U7D83> \xDF\x60 |0
+<U7D84> \xDF\x64 |0
+<U7D85> \xDF\x5C |0
+<U7D86> \xDF\x58 |0
+<U7D88> \xDF\x57 |0
+<U7D89> \x8E\xA7 |0
+<U7D8B> \x8C\x76 |0
+<U7D8C> \xDF\x62 |0
+<U7D8D> \xDF\x5A |0
+<U7D8E> \xDF\x5E |0
+<U7D8F> \xB8\x6B |0
+<U7D91> \xB8\x69 |0
+<U7D92> \xDF\x66 |0
+<U7D93> \xB8\x67 |0
+<U7D94> \xDF\x63 |0
+<U7D96> \xE3\x72 |0
+<U7D97> \x95\x42 |0
+<U7D9C> \xBA\xEE |0
+<U7D9D> \xE3\x6A |0
+<U7D9E> \xBD\x78 |0
+<U7D9F> \xE3\x74 |0
+<U7DA0> \xBA\xF1 |0
+<U7DA1> \xE3\x78 |0
+<U7DA2> \xBA\xF7 |0
+<U7DA3> \xE3\x65 |0
+<U7DA4> \x98\x7D |0
+<U7DA6> \xE3\x75 |0
+<U7DA7> \xE3\x62 |0
+<U7DA8> \x97\x55 |0
+<U7DA9> \xE3\x77 |0
+<U7DAA> \xE3\x66 |0
+<U7DAB> \x8E\xA8 |0
+<U7DAC> \xBA\xFE |0
+<U7DAD> \xBA\xFB |0
+<U7DAE> \xE3\x76 |0
+<U7DAF> \xE3\x70 |0
+<U7DB0> \xBA\xED |0
+<U7DB1> \xBA\xF5 |0
+<U7DB2> \xBA\xF4 |0
+<U7DB3> \x8E\xAA |0
+<U7DB4> \xBA\xF3 |0
+<U7DB5> \xBA\xF9 |0
+<U7DB7> \xE3\x63 |0
+<U7DB8> \xBA\xFA |0
+<U7DB9> \xE3\x71 |0
+<U7DBA> \xBA\xF6 |0
+<U7DBB> \xBA\xEC |0
+<U7DBC> \xE3\x73 |0
+<U7DBD> \xBA\xEF |0
+<U7DBE> \xBA\xF0 |0
+<U7DBF> \xBA\xF8 |0
+<U7DC0> \xE3\x68 |0
+<U7DC1> \xE3\x67 |0
+<U7DC2> \xE3\x64 |0
+<U7DC4> \xE3\x6C |0
+<U7DC5> \xE3\x69 |0
+<U7DC6> \xE3\x6D |0
+<U7DC7> \xBA\xFD |0
+<U7DC9> \xE3\x79 |0
+<U7DCA> \xBA\xF2 |0
+<U7DCB> \xE3\x6E |0
+<U7DCC> \xE3\x6F |0
+<U7DCD> \x89\xA3 |0
+<U7DCE> \xE3\x6B |0
+<U7DCF> \x99\x60 |0
+<U7DD0> \x99\x62 |0
+<U7DD2> \xBA\xFC |0
+<U7DD3> \x94\xFC |0
+<U7DD4> \x99\x61 |0
+<U7DD7> \xE6\xE7 |0
+<U7DD8> \xBD\x70 |0
+<U7DD9> \xBD\x79 |0
+<U7DDA> \xBD\x75 |0
+<U7DDB> \xE6\xE4 |0
+<U7DDC> \x94\xFA |0
+<U7DDD> \xBD\x72 |0
+<U7DDE> \xBD\x76 |0
+<U7DDF> \xE6\xF0 |0
+<U7DE0> \xBD\x6C |0
+<U7DE1> \xE6\xE8 |0
+<U7DE3> \xBD\x74 |0
+<U7DE4> \x8E\xAE |0
+<U7DE5> \x8E\xB2 |0
+<U7DE6> \xE6\xEB |0
+<U7DE7> \xE6\xE6 |0
+<U7DE8> \xBD\x73 |0
+<U7DE9> \xBD\x77 |0
+<U7DEA> \xE6\xE5 |0
+<U7DEC> \xBD\x71 |0
+<U7DEE> \xE6\xEF |0
+<U7DEF> \xBD\x6E |0
+<U7DF0> \xE6\xEE |0
+<U7DF1> \xE6\xED |0
+<U7DF2> \xBD\x7A |0
+<U7DF3> \xE5\x72 |0
+<U7DF4> \xBD\x6D |0
+<U7DF5> \x8E\xB0 |0
+<U7DF6> \xE6\xEC |0
+<U7DF7> \xE6\xE3 |0
+<U7DF9> \xBD\x7B |0
+<U7DFA> \xE6\xEA |0
+<U7DFB> \xBD\x6F |0
+<U7DFD> \x99\x63 |0
+<U7DFE> \x97\xAA |0
+<U7E03> \xE6\xE9 |0
+<U7E07> \x94\xFB |0
+<U7E08> \xBF\xA2 |0
+<U7E09> \xBF\xA7 |0
+<U7E0A> \xBF\x7E |0
+<U7E0B> \xEA\xD8 |0
+<U7E0C> \xEA\xCF |0
+<U7E0D> \xEA\xDB |0
+<U7E0E> \xEA\xD3 |0
+<U7E0F> \xEA\xD9 |0
+<U7E10> \xBF\xA8 |0
+<U7E11> \xBF\xA1 |0
+<U7E12> \xEA\xCC |0
+<U7E13> \xEA\xD2 |0
+<U7E14> \xEA\xDC |0
+<U7E15> \xEA\xD5 |0
+<U7E16> \xEA\xDA |0
+<U7E17> \xEA\xCE |0
+<U7E1A> \xEA\xD6 |0
+<U7E1B> \xBF\xA3 |0
+<U7E1C> \xEA\xD4 |0
+<U7E1D> \xBF\xA6 |0
+<U7E1E> \xBF\xA5 |0
+<U7E1F> \xEA\xD0 |0
+<U7E20> \xEA\xD1 |0
+<U7E21> \xEA\xCD |0
+<U7E22> \xEA\xD7 |0
+<U7E23> \xBF\xA4 |0
+<U7E24> \xEA\xDE |0
+<U7E25> \xEA\xDD |0
+<U7E27> \x8E\xBB |0
+<U7E29> \xED\xDA |0
+<U7E2A> \xED\xD6 |0
+<U7E2B> \xC1\x5F |0
+<U7E2D> \xED\xD0 |0
+<U7E2E> \xC1\x59 |0
+<U7E2F> \xC1\x69 |0
+<U7E30> \xED\xDC |0
+<U7E31> \xC1\x61 |0
+<U7E32> \xC1\x5D |0
+<U7E33> \xED\xD3 |0
+<U7E34> \xC1\x64 |0
+<U7E35> \xC1\x67 |0
+<U7E36> \xED\xDE |0
+<U7E37> \xC1\x5C |0
+<U7E38> \xED\xD5 |0
+<U7E39> \xC1\x65 |0
+<U7E3A> \xED\xE0 |0
+<U7E3B> \xED\xDD |0
+<U7E3C> \xED\xD1 |0
+<U7E3D> \xC1\x60 |0
+<U7E3E> \xC1\x5A |0
+<U7E3F> \xC1\x68 |0
+<U7E40> \xED\xD8 |0
+<U7E41> \xC1\x63 |0
+<U7E42> \xED\xD2 |0
+<U7E43> \xC1\x5E |0
+<U7E44> \xED\xDF |0
+<U7E45> \xC1\x62 |0
+<U7E46> \xC1\x5B |0
+<U7E47> \xED\xD9 |0
+<U7E48> \xC1\x66 |0
+<U7E49> \xED\xD7 |0
+<U7E4C> \xED\xDB |0
+<U7E50> \xF0\x6E |0
+<U7E51> \xF0\x74 |0
+<U7E52> \xC2\xB9 |0
+<U7E53> \xF0\x77 |0
+<U7E54> \xC2\xB4 |0
+<U7E55> \xC2\xB5 |0
+<U7E56> \xF0\x6F |0
+<U7E57> \xF0\x76 |0
+<U7E58> \xF0\x71 |0
+<U7E59> \xC2\xBA |0
+<U7E5A> \xC2\xB7 |0
+<U7E5B> \x8C\xDC |0
+<U7E5C> \xF0\x6D |0
+<U7E5E> \xC2\xB6 |0
+<U7E5F> \xF0\x73 |0
+<U7E60> \xF0\x75 |0
+<U7E61> \xC2\xB8 |0
+<U7E62> \xF0\x72 |0
+<U7E63> \xF0\x70 |0
+<U7E65> \x98\x76 |0
+<U7E67> \x8E\xA1 |0
+<U7E68> \xF2\xB8 |0
+<U7E69> \xC3\xB7 |0
+<U7E6A> \xC3\xB8 |0
+<U7E6B> \xC3\xB4 |0
+<U7E6C> \x8C\xB4 |0
+<U7E6D> \xC3\xB5 |0
+<U7E6E> \x8E\xB7 |0
+<U7E6F> \xF2\xB4 |0
+<U7E70> \xF2\xB2 |0
+<U7E72> \xF2\xB6 |0
+<U7E73> \xC3\xBA |0
+<U7E74> \xF2\xB7 |0
+<U7E75> \xF2\xB0 |0
+<U7E76> \xF2\xAF |0
+<U7E77> \xF2\xB3 |0
+<U7E78> \xF2\xB1 |0
+<U7E79> \xC3\xB6 |0
+<U7E7A> \xF2\xB5 |0
+<U7E7B> \xF4\xAC |0
+<U7E7C> \xC4\x7E |0
+<U7E7D> \xC4\x7D |0
+<U7E7E> \xF4\xAD |0
+<U7E7F> \x9D\xA6 |0
+<U7E80> \xF4\xAF |0
+<U7E81> \xF4\xAE |0
+<U7E82> \xC4\xA1 |0
+<U7E86> \xF5\xEB |0
+<U7E87> \xF5\xE8 |0
+<U7E88> \xF5\xE9 |0
+<U7E8A> \xF5\xE7 |0
+<U7E8B> \xF5\xEA |0
+<U7E8C> \xC4\xF2 |0
+<U7E8D> \xF5\xEC |0
+<U7E8E> \x9E\xB0 |0
+<U7E8F> \xC4\xF1 |0
+<U7E91> \xF7\x42 |0
+<U7E92> \x8E\xB8 |0
+<U7E93> \xC5\xD5 |0
+<U7E94> \xC5\xD7 |0
+<U7E95> \xF7\xEE |0
+<U7E96> \xC5\xD6 |0
+<U7E97> \xF8\xB9 |0
+<U7E98> \xF9\x40 |0
+<U7E99> \xF9\x42 |0
+<U7E9A> \xF8\xFE |0
+<U7E9B> \xF9\x41 |0
+<U7E9C> \xC6\x6C |0
+<U7E9F> \x9D\x70 |0
+<U7EA4> \x89\x6E |0
+<U7EAC> \x89\x6F |0
+<U7EBA> \x89\x70 |0
+<U7EC7> \x89\x71 |0
+<U7ECF> \x89\x72 |0
+<U7EDF> \x89\x73 |0
+<U7F06> \x89\x74 |0
+<U7F36> \xA6\xCE |0
+<U7F37> \x89\x75 |0
+<U7F38> \xAC\xFB |0
+<U7F39> \xD2\x6F |0
+<U7F3A> \xAF\xCA |0
+<U7F3D> \xB2\xDA |0
+<U7F3E> \xDA\xFC |0
+<U7F3F> \xDA\xFD |0
+<U7F40> \x8E\xBC |0
+<U7F41> \x8E\xBD |0
+<U7F43> \xEA\xDF |0
+<U7F44> \xC1\x6A |0
+<U7F45> \xED\xE1 |0
+<U7F47> \x8E\xBE |0
+<U7F48> \xC2\xBB |0
+<U7F49> \x9D\xD1 |0
+<U7F4A> \xF2\xBA |0
+<U7F4B> \xF2\xB9 |0
+<U7F4C> \xC4\xA2 |0
+<U7F4D> \xF5\xED |0
+<U7F4E> \x94\xFD |0
+<U7F4F> \xF7\x43 |0
+<U7F50> \xC5\xF8 |0
+<U7F51> \xCA\x49 |0
+<U7F52> \x8B\xD7 |0
+<U7F53> \x8B\xDA |0
+<U7F54> \xAA\xC9 |0
+<U7F55> \xA8\x75 |0
+<U7F58> \xD0\x4D |0
+<U7F5B> \xD3\x60 |0
+<U7F5C> \xD3\x5B |0
+<U7F5D> \xD3\x5F |0
+<U7F5E> \xD3\x5D |0
+<U7F5F> \xAF\xCB |0
+<U7F60> \xD3\x5E |0
+<U7F61> \xD3\x5C |0
+<U7F63> \xD6\xF1 |0
+<U7F65> \xDA\xFE |0
+<U7F66> \xDB\x40 |0
+<U7F67> \xDF\x69 |0
+<U7F68> \xDF\x6A |0
+<U7F69> \xB8\x6E |0
+<U7F6A> \xB8\x6F |0
+<U7F6B> \xDF\x68 |0
+<U7F6C> \xDF\x6B |0
+<U7F6D> \xDF\x67 |0
+<U7F6E> \xB8\x6D |0
+<U7F70> \xBB\x40 |0
+<U7F71> \xA0\xE2 |0
+<U7F72> \xB8\x70 |0
+<U7F73> \xE3\x7A |0
+<U7F75> \xBD\x7C |0
+<U7F76> \xE6\xF1 |0
+<U7F77> \xBD\x7D |0
+<U7F78> \x9F\xE9 |0
+<U7F79> \xBF\xA9 |0
+<U7F7A> \xEA\xE2 |0
+<U7F7B> \xEA\xE0 |0
+<U7F7C> \xEA\xE1 |0
+<U7F7D> \xED\xE4 |0
+<U7F7E> \xED\xE3 |0
+<U7F7F> \xED\xE2 |0
+<U7F83> \xF2\xBB |0
+<U7F85> \xC3\xB9 |0
+<U7F86> \xF2\xBC |0
+<U7F87> \xF7\x44 |0
+<U7F88> \xC5\xF9 |0
+<U7F89> \xF8\xBA |0
+<U7F8A> \xA6\xCF |0
+<U7F8B> \xAA\xCB |0
+<U7F8C> \xAA\xCA |0
+<U7F8D> \xD0\x4F |0
+<U7F8E> \xAC\xFC |0
+<U7F8F> \xFD\xA8 |0
+<U7F91> \xD0\x4E |0
+<U7F92> \xD3\x62 |0
+<U7F93> \x8A\xE7 |0
+<U7F94> \xAF\xCC |0
+<U7F95> \xD6\xF2 |0
+<U7F96> \xD3\x61 |0
+<U7F97> \x8E\xC2 |0
+<U7F9A> \xB2\xDC |0
+<U7F9B> \xD6\xF5 |0
+<U7F9C> \xD6\xF3 |0
+<U7F9D> \xD6\xF4 |0
+<U7F9E> \xB2\xDB |0
+<U7FA0> \xDB\x42 |0
+<U7FA1> \xDB\x43 |0
+<U7FA2> \xDB\x41 |0
+<U7FA3> \x8E\xC4 |0
+<U7FA4> \xB8\x73 |0
+<U7FA5> \xDF\x6D |0
+<U7FA6> \xDF\x6C |0
+<U7FA7> \xDF\x6E |0
+<U7FA8> \xB8\x72 |0
+<U7FA9> \xB8\x71 |0
+<U7FAC> \xE6\xF2 |0
+<U7FAD> \xE6\xF4 |0
+<U7FAE> \x99\x64 |0
+<U7FAF> \xBD\x7E |0
+<U7FB0> \xE6\xF3 |0
+<U7FB1> \xEA\xE3 |0
+<U7FB2> \xBF\xAA |0
+<U7FB3> \xF0\x79 |0
+<U7FB4> \x99\x65 |0
+<U7FB5> \xF0\x78 |0
+<U7FB6> \xC3\xBB |0
+<U7FB7> \xF2\xBD |0
+<U7FB8> \xC3\xBD |0
+<U7FB9> \xC3\xBC |0
+<U7FBA> \xF4\xB0 |0
+<U7FBB> \xF5\xEE |0
+<U7FBC> \xC4\xF3 |0
+<U7FBD> \xA6\xD0 |0
+<U7FBE> \xD0\x50 |0
+<U7FBF> \xAC\xFD |0
+<U7FC0> \xD3\x65 |0
+<U7FC1> \xAF\xCE |0
+<U7FC2> \xD3\x64 |0
+<U7FC3> \xD3\x63 |0
+<U7FC5> \xAF\xCD |0
+<U7FC7> \xD6\xFB |0
+<U7FC9> \xD6\xFD |0
+<U7FCA> \xD6\xF6 |0
+<U7FCB> \xD6\xF7 |0
+<U7FCC> \xB2\xDD |0
+<U7FCD> \xD6\xF8 |0
+<U7FCE> \xB2\xDE |0
+<U7FCF> \xD6\xFC |0
+<U7FD0> \xD6\xF9 |0
+<U7FD1> \xD6\xFA |0
+<U7FD2> \xB2\xDF |0
+<U7FD4> \xB5\xBE |0
+<U7FD5> \xB5\xBF |0
+<U7FD7> \xDB\x44 |0
+<U7FDB> \xDF\x6F |0
+<U7FDC> \xDF\x70 |0
+<U7FDD> \x95\x4E |0
+<U7FDE> \xE3\x7E |0
+<U7FDF> \xBB\x43 |0
+<U7FE0> \xBB\x41 |0
+<U7FE1> \xBB\x42 |0
+<U7FE2> \xE3\x7B |0
+<U7FE3> \xE3\x7C |0
+<U7FE5> \xE3\x7D |0
+<U7FE6> \xE6\xF9 |0
+<U7FE7> \x98\xB3 |0
+<U7FE8> \xE6\xFA |0
+<U7FE9> \xBD\xA1 |0
+<U7FEA> \xE6\xF7 |0
+<U7FEB> \xE6\xF6 |0
+<U7FEC> \xE6\xF8 |0
+<U7FED> \xE6\xF5 |0
+<U7FEE> \xBF\xAD |0
+<U7FEF> \xEA\xE4 |0
+<U7FF0> \xBF\xAB |0
+<U7FF1> \xBF\xAC |0
+<U7FF2> \xED\xE6 |0
+<U7FF3> \xC1\x6B |0
+<U7FF4> \xED\xE5 |0
+<U7FF5> \xEF\xA8 |0
+<U7FF7> \xF0\x7A |0
+<U7FF8> \xF0\x7B |0
+<U7FF9> \xC2\xBC |0
+<U7FFA> \x8E\xCB |0
+<U7FFB> \xC2\xBD |0
+<U7FFC> \xC1\x6C |0
+<U7FFD> \xF2\xBE |0
+<U7FFE> \xF2\xBF |0
+<U7FFF> \xF4\xB1 |0
+<U8000> \xC4\xA3 |0
+<U8001> \xA6\xD1 |0
+<U8002> \x8B\xDF |0
+<U8003> \xA6\xD2 |0
+<U8004> \xAC\xFE |0
+<U8005> \xAA\xCC |0
+<U8006> \xAF\xCF |0
+<U8007> \xD0\x51 |0
+<U8008> \x8E\xCE |0
+<U800B> \xB5\xC0 |0
+<U800C> \xA6\xD3 |0
+<U800D> \xAD\x41 |0
+<U800E> \xD0\x52 |0
+<U800F> \xD0\x53 |0
+<U8010> \xAD\x40 |0
+<U8011> \xAD\x42 |0
+<U8012> \xA6\xD4 |0
+<U8014> \xD0\x54 |0
+<U8015> \xAF\xD1 |0
+<U8016> \xD3\x66 |0
+<U8017> \xAF\xD3 |0
+<U8018> \xAF\xD0 |0
+<U8019> \xAF\xD2 |0
+<U801B> \xD7\x41 |0
+<U801C> \xB2\xE0 |0
+<U801D> \x8E\xCF |0
+<U801E> \xD7\x40 |0
+<U801F> \xD6\xFE |0
+<U8020> \x99\x68 |0
+<U8021> \xDF\x71 |0
+<U8024> \xE3\xA1 |0
+<U8025> \x99\x69 |0
+<U8026> \xBD\xA2 |0
+<U8028> \xBF\xAE |0
+<U8029> \xEA\xE6 |0
+<U802A> \xEA\xE5 |0
+<U802C> \xED\xE7 |0
+<U802E> \x99\x6B |0
+<U802F> \x8E\xD1 |0
+<U8030> \xF5\xEF |0
+<U8031> \x99\x6C |0
+<U8033> \xA6\xD5 |0
+<U8034> \xCB\x73 |0
+<U8035> \xCD\xAA |0
+<U8036> \xAD\x43 |0
+<U8037> \xD0\x55 |0
+<U8039> \xD3\x68 |0
+<U803B> \x8E\xD4 |0
+<U803C> \x8E\xD5 |0
+<U803D> \xAF\xD4 |0
+<U803E> \xD3\x67 |0
+<U803F> \xAF\xD5 |0
+<U8043> \xD7\x43 |0
+<U8046> \xB2\xE2 |0
+<U8047> \xD7\x42 |0
+<U8048> \xD7\x44 |0
+<U804A> \xB2\xE1 |0
+<U804F> \xDB\x46 |0
+<U8050> \xDB\x47 |0
+<U8051> \xDB\x45 |0
+<U8052> \xB5\xC1 |0
+<U8054> \x99\x6D |0
+<U8056> \xB8\x74 |0
+<U8058> \xB8\x75 |0
+<U805A> \xBB\x45 |0
+<U805B> \xA0\xBE |0
+<U805C> \xE3\xA3 |0
+<U805D> \xE3\xA2 |0
+<U805E> \xBB\x44 |0
+<U8061> \x8E\xD6 |0
+<U8062> \xA0\xBC |0
+<U8063> \xA0\xB5 |0
+<U8064> \xE6\xFB |0
+<U8066> \xA0\xB4 |0
+<U8067> \xE6\xFC |0
+<U806C> \xEA\xE7 |0
+<U806F> \xC1\x70 |0
+<U8070> \xC1\x6F |0
+<U8071> \xC1\x6D |0
+<U8072> \xC1\x6E |0
+<U8073> \xC1\x71 |0
+<U8075> \xF0\x7C |0
+<U8076> \xC2\xBF |0
+<U8077> \xC2\xBE |0
+<U8078> \xF2\xC0 |0
+<U8079> \xF4\xB2 |0
+<U807D> \xC5\xA5 |0
+<U807E> \xC5\xA4 |0
+<U807F> \xA6\xD6 |0
+<U8080> \x8B\xE0 |0
+<U8082> \xD1\xFB |0
+<U8084> \xB8\x77 |0
+<U8085> \xB5\xC2 |0
+<U8086> \xB8\x76 |0
+<U8087> \xBB\x46 |0
+<U8089> \xA6\xD7 |0
+<U808A> \xC9\xA9 |0
+<U808B> \xA6\xD8 |0
+<U808C> \xA6\xD9 |0
+<U808F> \xCD\xAB |0
+<U8090> \xCB\x76 |0
+<U8092> \xCB\x77 |0
+<U8093> \xA8\x77 |0
+<U8095> \xCB\x74 |0
+<U8096> \xA8\x76 |0
+<U8098> \xA8\x79 |0
+<U8099> \xCB\x75 |0
+<U809A> \xA8\x7B |0
+<U809B> \xA8\x7A |0
+<U809C> \xCB\x78 |0
+<U809D> \xA8\x78 |0
+<U809F> \x89\xB5 |0
+<U80A1> \xAA\xD1 |0
+<U80A2> \xAA\xCF |0
+<U80A3> \xCD\xAD |0
+<U80A5> \xAA\xCE |0
+<U80A7> \x8E\xDD |0
+<U80A9> \xAA\xD3 |0
+<U80AA> \xAA\xD5 |0
+<U80AB> \xAA\xD2 |0
+<U80AD> \xCD\xB0 |0
+<U80AE> \xCD\xAC |0
+<U80AF> \xAA\xD6 |0
+<U80B1> \xAA\xD0 |0
+<U80B2> \xA8\x7C |0
+<U80B4> \xAA\xD4 |0
+<U80B5> \xCD\xAF |0
+<U80B6> \x9E\x5D |0
+<U80B7> \x99\x71 |0
+<U80B8> \xCD\xAE |0
+<U80BA> \xAA\xCD |0
+<U80BC> \x89\xAE |0
+<U80BD> \x9D\xE8 |0
+<U80C2> \xD0\x5B |0
+<U80C3> \xAD\x47 |0
+<U80C4> \xAD\x48 |0
+<U80C5> \xD0\x5D |0
+<U80C6> \x95\x65 |0
+<U80C7> \xD0\x57 |0
+<U80C8> \xD0\x5A |0
+<U80C9> \xD0\x63 |0
+<U80CA> \xD0\x61 |0
+<U80CC> \xAD\x49 |0
+<U80CD> \xD0\x67 |0
+<U80CE> \xAD\x4C |0
+<U80CF> \xD0\x64 |0
+<U80D0> \xD0\x5C |0
+<U80D1> \xD0\x59 |0
+<U80D4> \xDB\x49 |0
+<U80D5> \xD0\x62 |0
+<U80D6> \xAD\x44 |0
+<U80D7> \xD0\x65 |0
+<U80D8> \xD0\x56 |0
+<U80D9> \xD0\x5F |0
+<U80DA> \xAD\x46 |0
+<U80DB> \xAD\x4B |0
+<U80DC> \xD0\x60 |0
+<U80DD> \xAD\x4F |0
+<U80DE> \xAD\x4D |0
+<U80E0> \xD0\x58 |0
+<U80E1> \xAD\x4A |0
+<U80E3> \xD0\x5E |0
+<U80E4> \xAD\x4E |0
+<U80E5> \xAD\x45 |0
+<U80E6> \xD0\x66 |0
+<U80E9> \x99\x72 |0
+<U80EC> \x8B\x5C |0
+<U80ED> \xAF\xDA |0
+<U80EF> \xAF\xE3 |0
+<U80F0> \xAF\xD8 |0
+<U80F1> \xAF\xD6 |0
+<U80F2> \xD3\x6A |0
+<U80F3> \xAF\xDE |0
+<U80F4> \xAF\xDB |0
+<U80F5> \xD3\x6C |0
+<U80F6> \x89\xB1 |0
+<U80F8> \xAF\xDD |0
+<U80F9> \xD3\x6B |0
+<U80FA> \xD3\x69 |0
+<U80FB> \xD3\x6E |0
+<U80FC> \xAF\xE2 |0
+<U80FD> \xAF\xE0 |0
+<U80FE> \xDB\x48 |0
+<U8100> \xD3\x6F |0
+<U8101> \xD3\x6D |0
+<U8102> \xAF\xD7 |0
+<U8103> \xA0\xC0 |0
+<U8105> \xAF\xD9 |0
+<U8106> \xAF\xDC |0
+<U8107> \x8E\xDF |0
+<U8108> \xAF\xDF |0
+<U8109> \x95\x66 |0
+<U810A> \xAF\xE1 |0
+<U810C> \x99\x74 |0
+<U810E> \x99\x76 |0
+<U8112> \x99\x77 |0
+<U8114> \x99\x79 |0
+<U8115> \xD7\x4E |0
+<U8116> \xB2\xE4 |0
+<U8117> \x9D\xDA |0
+<U8118> \xD7\x45 |0
+<U8119> \xD7\x47 |0
+<U811A> \x8E\xE0 |0
+<U811B> \xD7\x48 |0
+<U811D> \xD7\x50 |0
+<U811E> \xD7\x4C |0
+<U811F> \xD7\x4A |0
+<U8121> \xD7\x4D |0
+<U8122> \xD7\x51 |0
+<U8123> \xB2\xE5 |0
+<U8124> \xB2\xE9 |0
+<U8125> \xD7\x46 |0
+<U8127> \xD7\x4F |0
+<U8129> \xB2\xE7 |0
+<U812A> \x93\x5C |0
+<U812B> \xB2\xE6 |0
+<U812C> \xD7\x4B |0
+<U812D> \xD7\x49 |0
+<U812F> \xB2\xE3 |0
+<U8130> \xB2\xE8 |0
+<U8132> \x9D\xE6 |0
+<U8134> \x8B\x5F |0
+<U8137> \x95\x63 |0
+<U8139> \xB5\xC8 |0
+<U813A> \xDB\x51 |0
+<U813D> \xDB\x4F |0
+<U813E> \xB5\xCA |0
+<U8142> \x95\x67 |0
+<U8143> \xDB\x4A |0
+<U8144> \xDF\xA1 |0
+<U8146> \xB5\xC9 |0
+<U8147> \xDB\x4E |0
+<U8148> \x9D\xE3 |0
+<U814A> \xDB\x4B |0
+<U814B> \xB5\xC5 |0
+<U814C> \xB5\xCB |0
+<U814D> \xDB\x50 |0
+<U814E> \xB5\xC7 |0
+<U814F> \xDB\x4D |0
+<U8150> \xBB\x47 |0
+<U8151> \xB5\xC6 |0
+<U8152> \xDB\x4C |0
+<U8153> \xB5\xCC |0
+<U8154> \xB5\xC4 |0
+<U8155> \xB5\xC3 |0
+<U8156> \x99\x7C |0
+<U8159> \x99\x7D |0
+<U815A> \x99\x7E |0
+<U815B> \xDF\x77 |0
+<U815C> \xDF\x75 |0
+<U815E> \xDF\x7B |0
+<U8160> \xDF\x73 |0
+<U8161> \xDF\xA2 |0
+<U8162> \xDF\x78 |0
+<U8164> \xDF\x72 |0
+<U8165> \xB8\x7B |0
+<U8166> \xB8\xA3 |0
+<U8167> \xDF\x7D |0
+<U8169> \xDF\x76 |0
+<U816B> \xB8\x7E |0
+<U816D> \x8B\x5B |0
+<U816E> \xB8\x7C |0
+<U816F> \xDF\x7E |0
+<U8170> \xB8\x79 |0
+<U8171> \xB8\x78 |0
+<U8172> \xDF\x79 |0
+<U8173> \xB8\x7D |0
+<U8174> \xB5\xCD |0
+<U8176> \xDF\x7C |0
+<U8177> \xDF\x74 |0
+<U8178> \xB8\x7A |0
+<U8179> \xB8\xA1 |0
+<U817A> \xB8\xA2 |0
+<U817C> \x99\xA3 |0
+<U817F> \xBB\x4C |0
+<U8180> \xBB\x48 |0
+<U8182> \xBB\x4D |0
+<U8183> \xE3\xA6 |0
+<U8184> \x99\xA4 |0
+<U8186> \xE3\xA5 |0
+<U8187> \xE3\xA7 |0
+<U8188> \xBB\x4A |0
+<U8189> \xE3\xA4 |0
+<U818A> \xBB\x4B |0
+<U818B> \xE3\xAA |0
+<U818C> \xE3\xA9 |0
+<U818D> \xE3\xA8 |0
+<U818F> \xBB\x49 |0
+<U8193> \x99\xA6 |0
+<U8195> \xE7\x41 |0
+<U8197> \xE7\x44 |0
+<U8198> \xBD\xA8 |0
+<U8199> \xE7\x43 |0
+<U819A> \xBD\xA7 |0
+<U819B> \xBD\xA3 |0
+<U819C> \xBD\xA4 |0
+<U819D> \xBD\xA5 |0
+<U819E> \xE7\x40 |0
+<U819F> \xE6\xFE |0
+<U81A0> \xBD\xA6 |0
+<U81A2> \xE7\x42 |0
+<U81A3> \xE6\xFD |0
+<U81A5> \x99\xA8 |0
+<U81A6> \xEA\xE9 |0
+<U81A7> \xEA\xF3 |0
+<U81A8> \xBF\xB1 |0
+<U81A9> \xBF\xB0 |0
+<U81AA> \x8A\xBE |0
+<U81AB> \xEA\xED |0
+<U81AC> \xEA\xEF |0
+<U81AE> \xEA\xEA |0
+<U81B0> \xEA\xEE |0
+<U81B1> \xEA\xE8 |0
+<U81B2> \xEA\xF1 |0
+<U81B3> \xBF\xAF |0
+<U81B4> \xEA\xF0 |0
+<U81B5> \xEA\xEC |0
+<U81B6> \x9E\x61 |0
+<U81B7> \xEA\xF2 |0
+<U81B9> \xEA\xEB |0
+<U81BA> \xC1\x74 |0
+<U81BB> \xED\xE8 |0
+<U81BC> \xED\xEE |0
+<U81BD> \xC1\x78 |0
+<U81BE> \xC1\x7A |0
+<U81BF> \xC1\x77 |0
+<U81C0> \xC1\x76 |0
+<U81C1> \x99\xAA |0
+<U81C2> \xC1\x75 |0
+<U81C3> \xC1\x73 |0
+<U81C4> \xED\xE9 |0
+<U81C5> \xED\xEC |0
+<U81C6> \xC1\x72 |0
+<U81C7> \xED\xED |0
+<U81C8> \xA0\xC8 |0
+<U81C9> \xC1\x79 |0
+<U81CA> \xED\xEB |0
+<U81CC> \xED\xEA |0
+<U81CD> \xC2\xC0 |0
+<U81CF> \xC2\xC1 |0
+<U81D0> \xF0\xA1 |0
+<U81D1> \xF0\x7D |0
+<U81D2> \xF0\x7E |0
+<U81D5> \xF2\xC2 |0
+<U81D7> \xF2\xC1 |0
+<U81D8> \xC3\xBE |0
+<U81D9> \xF4\xB4 |0
+<U81DA> \xC4\xA4 |0
+<U81DB> \xF4\xB3 |0
+<U81DD> \xF5\xF0 |0
+<U81DE> \xF7\x45 |0
+<U81DF> \xC5\xA6 |0
+<U81E0> \xF9\x43 |0
+<U81E1> \xF9\x44 |0
+<U81E2> \xC5\xD8 |0
+<U81E3> \xA6\xDA |0
+<U81E4> \x99\xAB |0
+<U81E5> \xAA\xD7 |0
+<U81E6> \xDB\x52 |0
+<U81E7> \xBB\x4E |0
+<U81E8> \xC1\x7B |0
+<U81E9> \xED\xEF |0
+<U81EA> \xA6\xDB |0
+<U81EC> \xAF\xE5 |0
+<U81ED> \xAF\xE4 |0
+<U81EE> \xDB\x53 |0
+<U81EF> \xFE\xC4 |0
+<U81F2> \xEA\xF4 |0
+<U81F3> \xA6\xDC |0
+<U81F4> \xAD\x50 |0
+<U81F6> \x98\xC2 |0
+<U81F7> \xDB\x54 |0
+<U81F8> \xDB\x55 |0
+<U81F9> \xDB\x56 |0
+<U81FA> \xBB\x4F |0
+<U81FB> \xBF\xB2 |0
+<U81FC> \xA6\xDD |0
+<U81FE> \xAA\xD8 |0
+<U81FF> \xD0\x68 |0
+<U8200> \xAF\xE6 |0
+<U8201> \xD3\x70 |0
+<U8202> \xB2\xEA |0
+<U8204> \xDB\x57 |0
+<U8205> \xB8\xA4 |0
+<U8207> \xBB\x50 |0
+<U8208> \xBF\xB3 |0
+<U8209> \xC1\x7C |0
+<U820A> \xC2\xC2 |0
+<U820B> \xF4\xB5 |0
+<U820C> \xA6\xDE |0
+<U820D> \xAA\xD9 |0
+<U8210> \xAF\xE7 |0
+<U8211> \xD7\x52 |0
+<U8212> \xB5\xCE |0
+<U8214> \xBB\x51 |0
+<U8215> \xE3\xAB |0
+<U8216> \xE7\x45 |0
+<U8218> \x8E\xE8 |0
+<U821A> \xA0\xBA |0
+<U821B> \xA6\xDF |0
+<U821C> \xB5\xCF |0
+<U821D> \xDF\xA3 |0
+<U821E> \xBB\x52 |0
+<U821F> \xA6\xE0 |0
+<U8220> \xCD\xB1 |0
+<U8221> \xD0\x69 |0
+<U8222> \xAD\x51 |0
+<U8225> \xD3\x72 |0
+<U8226> \xFD\x77 |0
+<U8228> \xAF\xEA |0
+<U8229> \x8E\xEE |0
+<U822A> \xAF\xE8 |0
+<U822B> \xAF\xE9 |0
+<U822C> \xAF\xEB |0
+<U822D> \x9E\xBF |0
+<U822F> \xD3\x71 |0
+<U8232> \xD7\x57 |0
+<U8233> \xD7\x54 |0
+<U8234> \xD7\x56 |0
+<U8235> \xB2\xEB |0
+<U8236> \xB2\xED |0
+<U8237> \xB2\xEC |0
+<U8238> \xD7\x53 |0
+<U8239> \xB2\xEE |0
+<U823A> \xD7\x55 |0
+<U823C> \xDB\x58 |0
+<U823D> \xDB\x59 |0
+<U823E> \x89\xC2 |0
+<U823F> \xDB\x5A |0
+<U8240> \xDF\xA6 |0
+<U8242> \xDF\xA7 |0
+<U8244> \xDF\xA5 |0
+<U8245> \xDF\xA8 |0
+<U8247> \xB8\xA5 |0
+<U8249> \xDF\xA4 |0
+<U824B> \xBB\x53 |0
+<U824E> \xE7\x4A |0
+<U824F> \xE7\x46 |0
+<U8250> \xE7\x49 |0
+<U8251> \xE7\x4B |0
+<U8252> \xE7\x48 |0
+<U8253> \xE7\x47 |0
+<U8254> \x99\xAC |0
+<U8255> \xEA\xF5 |0
+<U8256> \xEA\xF6 |0
+<U8257> \xEA\xF7 |0
+<U8258> \xBF\xB4 |0
+<U8259> \xBF\xB5 |0
+<U825A> \xED\xF1 |0
+<U825B> \xED\xF0 |0
+<U825C> \xED\xF2 |0
+<U825E> \xF0\xA3 |0
+<U825F> \xF0\xA2 |0
+<U8261> \xF2\xC4 |0
+<U8262> \x95\x6B |0
+<U8263> \xF2\xC5 |0
+<U8264> \xF2\xC3 |0
+<U8265> \x95\x6C |0
+<U8266> \xC4\xA5 |0
+<U8268> \xF4\xB6 |0
+<U8269> \xF4\xB7 |0
+<U826B> \xF7\x46 |0
+<U826C> \xF7\xEF |0
+<U826D> \xF8\xBB |0
+<U826E> \xA6\xE1 |0
+<U826F> \xA8\x7D |0
+<U8271> \xC1\x7D |0
+<U8272> \xA6\xE2 |0
+<U8274> \xD7\x58 |0
+<U8275> \xDB\x5B |0
+<U8276> \x99\xAF |0
+<U8277> \xC6\x41 |0
+<U8278> \xCA\x4A |0
+<U8279> \x99\x4A |0
+<U827A> \x89\x76 |0
+<U827B> \x8F\x48 |0
+<U827C> \xCA\x4B |0
+<U827D> \xCA\x4D |0
+<U827E> \xA6\xE3 |0
+<U827F> \xCA\x4E |0
+<U8280> \xCA\x4C |0
+<U8283> \xCB\xA2 |0
+<U8284> \xCB\xA3 |0
+<U8285> \xCB\x7B |0
+<U8287> \xFB\xEE |0
+<U828A> \xCB\xA1 |0
+<U828B> \xA8\xA1 |0
+<U828D> \xA8\xA2 |0
+<U828E> \xCB\x7C |0
+<U828F> \xCB\x7A |0
+<U8290> \xCB\x79 |0
+<U8291> \xCB\x7D |0
+<U8292> \xA8\x7E |0
+<U8293> \xCB\x7E |0
+<U8294> \xD0\x6A |0
+<U8298> \xCD\xB6 |0
+<U8299> \xAA\xDC |0
+<U829A> \xCD\xB5 |0
+<U829B> \xCD\xB7 |0
+<U829D> \xAA\xDB |0
+<U829E> \xCD\xBC |0
+<U829F> \xAA\xDF |0
+<U82A0> \xCD\xB2 |0
+<U82A1> \xCD\xC0 |0
+<U82A2> \xCD\xC6 |0
+<U82A3> \xAA\xE6 |0
+<U82A4> \xCD\xC3 |0
+<U82A5> \xAA\xE3 |0
+<U82A6> \x99\xAE |0
+<U82A7> \xCD\xB9 |0
+<U82A8> \xCD\xBF |0
+<U82A9> \xCD\xC1 |0
+<U82AA> \x8E\xFB |0
+<U82AB> \xCD\xB4 |0
+<U82AC> \xAA\xE2 |0
+<U82AD> \xAA\xDD |0
+<U82AE> \xCD\xBA |0
+<U82AF> \xAA\xE4 |0
+<U82B0> \xAA\xE7 |0
+<U82B1> \xAA\xE1 |0
+<U82B3> \xAA\xDA |0
+<U82B4> \xCD\xBE |0
+<U82B5> \xCD\xB8 |0
+<U82B6> \xCD\xC5 |0
+<U82B7> \xAA\xE9 |0
+<U82B8> \xAA\xE5 |0
+<U82B9> \xAA\xE0 |0
+<U82BA> \xCD\xBD |0
+<U82BB> \xAF\xEC |0
+<U82BC> \xCD\xBB |0
+<U82BD> \xAA\xDE |0
+<U82BE> \xAA\xE8 |0
+<U82BF> \x8C\xD0 |0
+<U82C0> \xCD\xB3 |0
+<U82C2> \xCD\xC2 |0
+<U82C3> \xCD\xC4 |0
+<U82C4> \x8B\x52 |0
+<U82CA> \x99\xB0 |0
+<U82CF> \x89\x77 |0
+<U82D0> \x8F\x41 |0
+<U82D1> \xAD\x62 |0
+<U82D2> \xAD\x5C |0
+<U82D3> \xAD\x64 |0
+<U82D4> \xAD\x61 |0
+<U82D5> \xD0\x71 |0
+<U82D6> \xD0\x74 |0
+<U82D7> \xAD\x5D |0
+<U82D8> \x99\xB1 |0
+<U82D9> \xD0\x6B |0
+<U82DB> \xAD\x56 |0
+<U82DC> \xAD\x60 |0
+<U82DE> \xAD\x63 |0
+<U82DF> \xAD\x65 |0
+<U82E0> \xD0\xA2 |0
+<U82E1> \xD0\x77 |0
+<U82E2> \x8F\x49 |0
+<U82E3> \xAD\x55 |0
+<U82E4> \xD0\xA1 |0
+<U82E5> \xAD\x59 |0
+<U82E6> \xAD\x57 |0
+<U82E7> \xAD\x52 |0
+<U82E8> \xD0\x6F |0
+<U82EA> \xD0\x7E |0
+<U82EB> \xD0\x73 |0
+<U82EC> \xD0\x76 |0
+<U82ED> \xD0\xA5 |0
+<U82EE> \xFA\x4D |0
+<U82EF> \xAD\x66 |0
+<U82F0> \xD0\x7D |0
+<U82F1> \xAD\x5E |0
+<U82F2> \xD0\x78 |0
+<U82F3> \xD0\xA4 |0
+<U82F4> \xD0\x75 |0
+<U82F5> \xD0\x79 |0
+<U82F6> \xD0\x7C |0
+<U82F7> \x9D\xE4 |0
+<U82F8> \x8C\xB5 |0
+<U82F9> \xD0\x6D |0
+<U82FA> \xD0\xA3 |0
+<U82FB> \xD0\x7B |0
+<U82FC> \xFB\xE9 |0
+<U82FD> \x9B\x54 |0
+<U82FE> \xD0\x6C |0
+<U82FF> \x99\xB2 |0
+<U8300> \xD0\x70 |0
+<U8301> \xAD\x5F |0
+<U8302> \xAD\x5A |0
+<U8303> \xAD\x53 |0
+<U8304> \xAD\x58 |0
+<U8305> \xAD\x54 |0
+<U8306> \xAD\x67 |0
+<U8307> \xD0\x6E |0
+<U8308> \xD3\xA5 |0
+<U8309> \xAD\x5B |0
+<U830B> \x9E\x68 |0
+<U830C> \xD0\x7A |0
+<U830D> \xCE\x41 |0
+<U8316> \xD3\xA8 |0
+<U8317> \xAF\xFA |0
+<U8318> \x8F\x4A |0
+<U8319> \xD3\x76 |0
+<U831A> \x8F\x42 |0
+<U831B> \xD3\xA3 |0
+<U831C> \xD3\x7D |0
+<U831D> \x8F\x51 |0
+<U831E> \xD3\xB2 |0
+<U8320> \xD3\xAA |0
+<U8322> \xD3\x7E |0
+<U8324> \xD3\xA9 |0
+<U8325> \xD3\x78 |0
+<U8326> \xD3\x7C |0
+<U8327> \xD3\xB5 |0
+<U8328> \xAF\xFD |0
+<U8329> \xD3\xAD |0
+<U832A> \xD3\xA4 |0
+<U832B> \xAF\xED |0
+<U832C> \xD3\xB3 |0
+<U832D> \xD3\x74 |0
+<U832F> \xD3\xAC |0
+<U8331> \xAF\xFC |0
+<U8332> \xAF\xF7 |0
+<U8333> \xD3\x73 |0
+<U8334> \xAF\xF5 |0
+<U8335> \xAF\xF4 |0
+<U8336> \xAF\xF9 |0
+<U8337> \xD3\xAB |0
+<U8338> \xAF\xF1 |0
+<U8339> \xAF\xF8 |0
+<U833A> \xD0\x72 |0
+<U833B> \xDB\x5C |0
+<U833C> \xD3\xA6 |0
+<U833D> \x98\x46 |0
+<U833F> \xD3\x7A |0
+<U8340> \xAF\xFB |0
+<U8341> \xD3\x7B |0
+<U8342> \xD3\xA1 |0
+<U8343> \xAF\xFE |0
+<U8344> \xD3\x75 |0
+<U8345> \xD3\xAF |0
+<U8347> \xD3\xAE |0
+<U8348> \xD3\xB6 |0
+<U8349> \xAF\xF3 |0
+<U834A> \xAF\xF0 |0
+<U834B> \xD3\xB4 |0
+<U834C> \xD3\xB0 |0
+<U834D> \xD3\xA7 |0
+<U834E> \xD3\xA2 |0
+<U834F> \xAF\xF6 |0
+<U8350> \xAF\xF2 |0
+<U8351> \xD3\x77 |0
+<U8352> \xAF\xEE |0
+<U8353> \xD3\xB1 |0
+<U8354> \xAF\xEF |0
+<U8356> \xD3\x79 |0
+<U8357> \x99\xB4 |0
+<U8362> \x8E\xF5 |0
+<U8363> \xFD\x55 |0
+<U8366> \x9C\xCD |0
+<U836F> \x89\x78 |0
+<U8373> \xD7\x5E |0
+<U8374> \xD7\x60 |0
+<U8375> \xD7\x65 |0
+<U8376> \xD7\x79 |0
+<U8377> \xB2\xFC |0
+<U8378> \xB2\xF2 |0
+<U837A> \xD7\x5D |0
+<U837B> \xB2\xFD |0
+<U837C> \xB2\xFE |0
+<U837D> \xD7\x68 |0
+<U837E> \xD7\x6F |0
+<U837F> \xD7\x75 |0
+<U8381> \xD7\x62 |0
+<U8383> \xD7\x69 |0
+<U8385> \x8F\x53 |0
+<U8386> \xB3\x40 |0
+<U8387> \xD7\x77 |0
+<U8388> \xD7\x72 |0
+<U8389> \xB2\xFA |0
+<U838A> \xB2\xF8 |0
+<U838B> \xD7\x6E |0
+<U838C> \xD7\x6A |0
+<U838D> \xD7\x5C |0
+<U838E> \xB2\xEF |0
+<U838F> \xD7\x61 |0
+<U8390> \xD7\x59 |0
+<U8391> \x8F\x6F |0
+<U8392> \xB2\xF7 |0
+<U8393> \xB2\xF9 |0
+<U8394> \xD7\x66 |0
+<U8395> \xD7\x63 |0
+<U8396> \xB2\xF4 |0
+<U8397> \xD7\x73 |0
+<U8398> \xB2\xF1 |0
+<U8399> \xD7\x64 |0
+<U839A> \xD7\x7A |0
+<U839B> \xD7\x6C |0
+<U839C> \x8E\x63 |0
+<U839D> \xD7\x6B |0
+<U839E> \xB2\xF0 |0
+<U83A0> \xB2\xFB |0
+<U83A2> \xB2\xF3 |0
+<U83A3> \xD7\x5A |0
+<U83A4> \xD7\x5F |0
+<U83A5> \xD7\x70 |0
+<U83A6> \xD7\x76 |0
+<U83A7> \xB3\x41 |0
+<U83A8> \xD7\x5B |0
+<U83A9> \xD7\x67 |0
+<U83AA> \xD7\x6D |0
+<U83AB> \xB2\xF6 |0
+<U83AC> \x8F\x56 |0
+<U83AE> \xD7\x78 |0
+<U83AF> \xD7\x71 |0
+<U83B0> \xD7\x74 |0
+<U83B9> \xFE\x76 |0
+<U83BD> \xB2\xF5 |0
+<U83BE> \x9F\xC6 |0
+<U83BF> \xDB\x6C |0
+<U83C0> \xDB\x60 |0
+<U83C1> \xB5\xD7 |0
+<U83C2> \xDB\x7D |0
+<U83C3> \xDB\xA7 |0
+<U83C4> \xDB\xAA |0
+<U83C5> \xB5\xD5 |0
+<U83C6> \xDB\x68 |0
+<U83C7> \xDB\xA3 |0
+<U83C8> \xDB\x69 |0
+<U83C9> \xDB\x77 |0
+<U83CA> \xB5\xE2 |0
+<U83CB> \xDB\x73 |0
+<U83CC> \xB5\xDF |0
+<U83CD> \xFA\xAC |0
+<U83CE> \xDB\x74 |0
+<U83CF> \xDB\x5D |0
+<U83D1> \xDB\xA4 |0
+<U83D3> \x8F\x58 |0
+<U83D4> \xB5\xE8 |0
+<U83D5> \xDB\xA1 |0
+<U83D6> \xDB\x75 |0
+<U83D7> \xDB\xAC |0
+<U83D8> \xDB\x70 |0
+<U83D9> \xDF\xC8 |0
+<U83DB> \xDB\xAF |0
+<U83DC> \xB5\xE6 |0
+<U83DD> \xDB\x6E |0
+<U83DE> \xDB\x7A |0
+<U83DF> \xB5\xE9 |0
+<U83E0> \xB5\xD4 |0
+<U83E1> \xDB\x72 |0
+<U83E2> \xDB\xAD |0
+<U83E3> \xDB\x6B |0
+<U83E4> \xDB\x64 |0
+<U83E5> \xDB\x6F |0
+<U83E7> \xDB\x63 |0
+<U83E8> \xDB\x61 |0
+<U83E9> \xB5\xD0 |0
+<U83EA> \xDB\xA5 |0
+<U83EB> \xDB\x6A |0
+<U83EC> \xDB\xA8 |0
+<U83ED> \x98\x48 |0
+<U83EE> \xDB\xA9 |0
+<U83EF> \xB5\xD8 |0
+<U83F0> \xB5\xDD |0
+<U83F1> \xB5\xD9 |0
+<U83F2> \xB5\xE1 |0
+<U83F3> \xDB\x7E |0
+<U83F4> \xB5\xDA |0
+<U83F5> \xDB\x76 |0
+<U83F6> \xDB\x66 |0
+<U83F8> \xB5\xD2 |0
+<U83F9> \xDB\x5E |0
+<U83FA> \xDB\xA2 |0
+<U83FB> \xDB\xAB |0
+<U83FC> \xDB\x65 |0
+<U83FD> \xB5\xE0 |0
+<U83FE> \xDB\xB0 |0
+<U83FF> \xDB\x71 |0
+<U8401> \xDB\x6D |0
+<U8403> \xB5\xD1 |0
+<U8404> \xB5\xE5 |0
+<U8405> \x99\xB7 |0
+<U8406> \xDB\x7C |0
+<U8407> \xB5\xE7 |0
+<U8409> \xDB\x78 |0
+<U840A> \xB5\xDC |0
+<U840B> \xB5\xD6 |0
+<U840C> \xB5\xDE |0
+<U840D> \xB5\xD3 |0
+<U840E> \xB5\xE4 |0
+<U840F> \xDB\x79 |0
+<U8410> \xDB\x67 |0
+<U8411> \xDB\x7B |0
+<U8412> \xDB\x62 |0
+<U8413> \xDB\xA6 |0
+<U8414> \x96\x65 |0
+<U8416> \xFA\x6C |0
+<U8418> \x9D\xE7 |0
+<U841B> \xDB\xAE |0
+<U841C> \x9E\x62 |0
+<U8420> \x96\xCC |0
+<U8421> \x8E\x67 |0
+<U8423> \xDB\x5F |0
+<U8424> \xFC\x75 |0
+<U8426> \x98\x7E |0
+<U8429> \xDF\xC7 |0
+<U842B> \xDF\xDD |0
+<U842C> \xB8\x55 |0
+<U842D> \xDF\xCC |0
+<U842E> \xFD\xB9 |0
+<U842F> \xDF\xCA |0
+<U8430> \xDF\xB5 |0
+<U8431> \xB8\xA9 |0
+<U8432> \xDF\xC5 |0
+<U8433> \xDF\xD9 |0
+<U8434> \xDF\xC1 |0
+<U8435> \xB8\xB1 |0
+<U8436> \xDF\xD8 |0
+<U8437> \xDF\xBF |0
+<U8438> \xB5\xE3 |0
+<U8439> \xDF\xCF |0
+<U843A> \xDF\xC0 |0
+<U843B> \xDF\xD6 |0
+<U843C> \xB8\xB0 |0
+<U843D> \xB8\xA8 |0
+<U843E> \x97\xFC |0
+<U843F> \xDF\xAA |0
+<U8440> \xDF\xB2 |0
+<U8442> \xDF\xCB |0
+<U8443> \xDF\xC3 |0
+<U8444> \xDF\xDC |0
+<U8445> \xDF\xC6 |0
+<U8446> \xB8\xB6 |0
+<U8447> \xDF\xD7 |0
+<U8448> \x98\xF9 |0
+<U8449> \xB8\xAD |0
+<U844A> \x8F\x66 |0
+<U844B> \xDF\xC9 |0
+<U844C> \xDF\xD1 |0
+<U844D> \xDF\xB6 |0
+<U844E> \xDF\xD0 |0
+<U8450> \xDF\xE1 |0
+<U8451> \xDF\xB1 |0
+<U8452> \xDF\xD2 |0
+<U8453> \x95\x6E |0
+<U8454> \xDF\xDF |0
+<U8455> \x92\x45 |0
+<U8456> \xDF\xAB |0
+<U8457> \xB5\xDB |0
+<U8458> \x8F\x60 |0
+<U8459> \xDF\xB9 |0
+<U845A> \xDF\xB8 |0
+<U845B> \xB8\xAF |0
+<U845C> \x9E\xD1 |0
+<U845D> \xDF\xBC |0
+<U845E> \xDF\xBE |0
+<U845F> \xDF\xCD |0
+<U8460> \xDF\xDE |0
+<U8461> \xB8\xB2 |0
+<U8462> \xFE\xCD |0
+<U8463> \xB8\xB3 |0
+<U8464> \x99\xB9 |0
+<U8465> \xDF\xB0 |0
+<U8466> \xB8\xAB |0
+<U8467> \xDF\xB4 |0
+<U8468> \xDF\xDA |0
+<U8469> \xB8\xB4 |0
+<U846B> \xB8\xAC |0
+<U846C> \xB8\xAE |0
+<U846D> \xB8\xB5 |0
+<U846E> \xDF\xE0 |0
+<U846F> \xDF\xD3 |0
+<U8470> \xDF\xCE |0
+<U8471> \x8F\x62 |0
+<U8472> \x97\x4C |0
+<U8473> \xDF\xBB |0
+<U8474> \xDF\xBA |0
+<U8475> \xB8\xAA |0
+<U8476> \xDF\xAC |0
+<U8477> \xB8\xA7 |0
+<U8478> \xDF\xC4 |0
+<U8479> \xDF\xAD |0
+<U847A> \xDF\xC2 |0
+<U847D> \xDF\xB7 |0
+<U847E> \xDF\xDB |0
+<U847F> \x91\xC7 |0
+<U8480> \x95\x5F |0
+<U8482> \xB8\xA6 |0
+<U8486> \xDF\xB3 |0
+<U8488> \x99\xBB |0
+<U848D> \xDF\xAF |0
+<U848E> \xDF\xD5 |0
+<U848F> \xDF\xAE |0
+<U8490> \xBB\x60 |0
+<U8491> \xE3\xD3 |0
+<U8492> \x8E\x6D |0
+<U8493> \x8F\x71 |0
+<U8494> \xE3\xC2 |0
+<U8496> \x94\xCB |0
+<U8497> \xE3\xAC |0
+<U8498> \xE3\xCA |0
+<U8499> \xBB\x58 |0
+<U849A> \xE3\xBB |0
+<U849B> \xE3\xC5 |0
+<U849C> \xBB\x5B |0
+<U849D> \xE3\xBE |0
+<U849E> \xBB\x59 |0
+<U849F> \xE3\xAF |0
+<U84A0> \xE3\xCD |0
+<U84A1> \xE3\xAE |0
+<U84A2> \xE3\xC1 |0
+<U84A3> \x95\xB1 |0
+<U84A4> \xE3\xAD |0
+<U84A7> \xE3\xBF |0
+<U84A8> \xE3\xC8 |0
+<U84A9> \xE3\xC6 |0
+<U84AA> \xE3\xBA |0
+<U84AB> \xE3\xB5 |0
+<U84AC> \xE3\xB3 |0
+<U84AD> \x9A\xF2 |0
+<U84AE> \xE3\xB4 |0
+<U84AF> \xE3\xC7 |0
+<U84B0> \xE3\xD2 |0
+<U84B1> \xE3\xBC |0
+<U84B2> \xBB\x5A |0
+<U84B4> \xE3\xB7 |0
+<U84B6> \xE3\xCB |0
+<U84B8> \xBB\x5D |0
+<U84B9> \xE3\xB6 |0
+<U84BA> \xE3\xB0 |0
+<U84BB> \xE3\xC0 |0
+<U84BC> \xBB\x61 |0
+<U84BD> \x96\xC3 |0
+<U84BE> \x99\xBD |0
+<U84BF> \xBB\x55 |0
+<U84C0> \xBB\x5E |0
+<U84C1> \xE3\xB8 |0
+<U84C2> \xE3\xB2 |0
+<U84C4> \xBB\x57 |0
+<U84C5> \xDF\xD4 |0
+<U84C6> \xBB\x56 |0
+<U84C7> \xE3\xC3 |0
+<U84C9> \xBB\x54 |0
+<U84CA> \xBB\x63 |0
+<U84CB> \xBB\x5C |0
+<U84CC> \xE3\xC4 |0
+<U84CD> \xE3\xB9 |0
+<U84CE> \xE3\xB1 |0
+<U84CF> \xE3\xCC |0
+<U84D0> \xE3\xBD |0
+<U84D1> \xBB\x62 |0
+<U84D2> \xE3\xD0 |0
+<U84D3> \xBB\x5F |0
+<U84D4> \xE3\xCF |0
+<U84D6> \xE3\xC9 |0
+<U84D7> \xE3\xCE |0
+<U84DA> \xA0\xCF |0
+<U84DB> \xE3\xD1 |0
+<U84DE> \x8F\x6D |0
+<U84E1> \x99\xBE |0
+<U84E2> \x8E\xF4 |0
+<U84E4> \x8F\x72 |0
+<U84E5> \x95\xE4 |0
+<U84E7> \xE7\x73 |0
+<U84E8> \xE7\x74 |0
+<U84E9> \xE7\x67 |0
+<U84EA> \xE7\x66 |0
+<U84EB> \xE7\x62 |0
+<U84EC> \xBD\xB4 |0
+<U84EE> \xBD\xAC |0
+<U84EF> \xE7\x76 |0
+<U84F0> \xE7\x75 |0
+<U84F1> \xDF\xA9 |0
+<U84F2> \xE7\x5F |0
+<U84F3> \xE7\x63 |0
+<U84F4> \xE7\x5D |0
+<U84F6> \xE7\x70 |0
+<U84F7> \xE7\x61 |0
+<U84F8> \x99\xBF |0
+<U84F9> \xE7\x77 |0
+<U84FA> \xE7\x5A |0
+<U84FB> \xE7\x58 |0
+<U84FC> \xE7\x64 |0
+<U84FD> \xE7\x6E |0
+<U84FE> \xE7\x69 |0
+<U84FF> \xBD\xB6 |0
+<U8500> \xE7\x4F |0
+<U8502> \xE7\x6D |0
+<U8503> \x92\x42 |0
+<U8505> \xFB\xA5 |0
+<U8506> \xBD\xB7 |0
+<U8507> \xDF\xBD |0
+<U8508> \xE7\x5B |0
+<U8509> \xE7\x52 |0
+<U850A> \xE7\x55 |0
+<U850B> \xE7\x7B |0
+<U850C> \xE7\x5C |0
+<U850D> \xE7\x53 |0
+<U850E> \xE7\x51 |0
+<U850F> \xE7\x4E |0
+<U8510> \x99\xC0 |0
+<U8511> \xBD\xB0 |0
+<U8512> \xE7\x65 |0
+<U8513> \xBD\xAF |0
+<U8514> \xBD\xB3 |0
+<U8515> \xE7\x60 |0
+<U8516> \xE7\x68 |0
+<U8517> \xBD\xA9 |0
+<U8518> \xE7\x78 |0
+<U8519> \xE7\x7C |0
+<U851A> \xBD\xAB |0
+<U851C> \xE7\x57 |0
+<U851D> \xE7\x6B |0
+<U851E> \xE7\x6F |0
+<U851F> \xE7\x54 |0
+<U8520> \xE7\x79 |0
+<U8521> \xBD\xB2 |0
+<U8523> \xBD\xB1 |0
+<U8524> \xE7\x4C |0
+<U8525> \xBD\xB5 |0
+<U8526> \xE7\x72 |0
+<U8527> \xE7\x56 |0
+<U8528> \xE7\x6A |0
+<U8529> \xE7\x50 |0
+<U852A> \xE7\x5E |0
+<U852B> \xE7\x59 |0
+<U852C> \xBD\xAD |0
+<U852D> \xBD\xAE |0
+<U852E> \xE7\x6C |0
+<U852F> \xE7\x7D |0
+<U8530> \xE7\x7A |0
+<U8531> \xE7\x71 |0
+<U8533> \xFD\xB4 |0
+<U8534> \x8F\x77 |0
+<U8538> \x99\xC1 |0
+<U853B> \xE7\x4D |0
+<U853D> \xBD\xAA |0
+<U853E> \xEB\x49 |0
+<U8540> \xEB\x40 |0
+<U8541> \xEB\x43 |0
+<U8542> \xFA\xB9 |0
+<U8543> \xBF\xBB |0
+<U8544> \xEB\x45 |0
+<U8545> \xEA\xF9 |0
+<U8546> \xEB\x41 |0
+<U8547> \xEB\x47 |0
+<U8548> \xBF\xB8 |0
+<U8549> \xBF\xBC |0
+<U854A> \xBF\xB6 |0
+<U854B> \x8F\x40 |0
+<U854C> \xFA\x44 |0
+<U854D> \xEA\xFB |0
+<U854E> \xEB\x4C |0
+<U8551> \xEB\x46 |0
+<U8552> \x99\xC2 |0
+<U8553> \xEA\xFC |0
+<U8554> \xEB\x55 |0
+<U8555> \xEB\x4F |0
+<U8556> \xEA\xF8 |0
+<U8557> \xEE\x46 |0
+<U8558> \xEA\xFE |0
+<U8559> \xBF\xB7 |0
+<U855A> \x8F\x5C |0
+<U855B> \xEB\x4A |0
+<U855D> \xEB\x54 |0
+<U855E> \xBF\xBF |0
+<U855F> \x8C\xBD |0
+<U8560> \xEB\x51 |0
+<U8561> \xEA\xFD |0
+<U8562> \xEB\x44 |0
+<U8563> \xEB\x48 |0
+<U8564> \xEB\x42 |0
+<U8565> \xEB\x56 |0
+<U8566> \xEB\x53 |0
+<U8567> \xEB\x50 |0
+<U8568> \xBF\xB9 |0
+<U8569> \xBF\xBA |0
+<U856A> \xBF\xBE |0
+<U856B> \xEA\xFA |0
+<U856C> \xEB\x57 |0
+<U856D> \xBF\xBD |0
+<U856E> \xEB\x4D |0
+<U856F> \x99\xC4 |0
+<U8570> \x99\xC5 |0
+<U8571> \xEB\x4B |0
+<U8573> \x8F\x7B |0
+<U8575> \xEB\x4E |0
+<U8576> \xEE\x53 |0
+<U8577> \xEE\x40 |0
+<U8578> \xEE\x45 |0
+<U8579> \xEE\x52 |0
+<U857A> \xEE\x44 |0
+<U857B> \xED\xFB |0
+<U857C> \xEE\x41 |0
+<U857E> \xC1\xA2 |0
+<U8580> \xED\xF4 |0
+<U8581> \xEE\x4D |0
+<U8582> \xEE\x4F |0
+<U8583> \xED\xF3 |0
+<U8584> \xC1\xA1 |0
+<U8585> \xEE\x51 |0
+<U8586> \xEE\x49 |0
+<U8587> \xC1\xA8 |0
+<U8588> \xEE\x50 |0
+<U8589> \xEE\x42 |0
+<U858A> \xC1\xAA |0
+<U858B> \xED\xF9 |0
+<U858C> \xEB\x52 |0
+<U858D> \xEE\x4A |0
+<U858E> \xEE\x47 |0
+<U858F> \xED\xF5 |0
+<U8590> \xEE\x55 |0
+<U8591> \xC1\xA4 |0
+<U8594> \xC1\xA5 |0
+<U8595> \xED\xF7 |0
+<U8596> \xEE\x48 |0
+<U8597> \x8C\xB6 |0
+<U8598> \xEE\x54 |0
+<U8599> \xEE\x4B |0
+<U859A> \xED\xFD |0
+<U859B> \xC1\xA7 |0
+<U859C> \xC1\xA3 |0
+<U859D> \xEE\x4C |0
+<U859E> \xED\xFE |0
+<U859F> \xEE\x56 |0
+<U85A0> \xED\xF8 |0
+<U85A1> \xEE\x43 |0
+<U85A2> \xEE\x4E |0
+<U85A3> \xED\xFA |0
+<U85A4> \xED\xFC |0
+<U85A6> \xC2\xCB |0
+<U85A7> \xED\xF6 |0
+<U85A8> \xC1\xA9 |0
+<U85A9> \xC2\xC4 |0
+<U85AA> \xC1\x7E |0
+<U85AF> \xC1\xA6 |0
+<U85B0> \xC2\xC8 |0
+<U85B1> \xF0\xB3 |0
+<U85B3> \xF0\xA9 |0
+<U85B4> \xF0\xA4 |0
+<U85B5> \xF0\xAA |0
+<U85B6> \xF0\xB4 |0
+<U85B7> \xF0\xB8 |0
+<U85B8> \xF0\xB7 |0
+<U85B9> \xC2\xCA |0
+<U85BA> \xC2\xC9 |0
+<U85BD> \xF0\xAB |0
+<U85BE> \xF0\xB9 |0
+<U85BF> \xF0\xAE |0
+<U85C0> \xF0\xA6 |0
+<U85C1> \x8F\xA3 |0
+<U85C2> \xF0\xA8 |0
+<U85C3> \xF0\xA7 |0
+<U85C4> \xF0\xAD |0
+<U85C5> \xF0\xB2 |0
+<U85C6> \xF0\xA5 |0
+<U85C7> \xF0\xAC |0
+<U85C8> \xF0\xB1 |0
+<U85C9> \xC2\xC7 |0
+<U85CB> \xF0\xAF |0
+<U85CD> \xC2\xC5 |0
+<U85CE> \xF0\xB0 |0
+<U85CF> \xC2\xC3 |0
+<U85D0> \xC2\xC6 |0
+<U85D1> \xF2\xD5 |0
+<U85D2> \xF0\xB5 |0
+<U85D5> \xC3\xC2 |0
+<U85D6> \x8C\xCE |0
+<U85D7> \xF2\xCD |0
+<U85D8> \xF2\xD1 |0
+<U85D9> \xF2\xC9 |0
+<U85DA> \xF2\xCC |0
+<U85DC> \xF2\xD4 |0
+<U85DD> \xC3\xC0 |0
+<U85DE> \xF2\xD9 |0
+<U85DF> \xF2\xD2 |0
+<U85E0> \x99\xC6 |0
+<U85E1> \xF2\xCA |0
+<U85E2> \xF2\xDA |0
+<U85E3> \xF2\xD3 |0
+<U85E4> \xC3\xC3 |0
+<U85E5> \xC3\xC4 |0
+<U85E6> \xF2\xD7 |0
+<U85E8> \xF2\xCB |0
+<U85E9> \xC3\xBF |0
+<U85EA> \xC3\xC1 |0
+<U85EB> \xF2\xC6 |0
+<U85EC> \xF2\xCE |0
+<U85ED> \xF2\xC8 |0
+<U85EE> \x96\xCD |0
+<U85EF> \xF2\xD8 |0
+<U85F0> \xF2\xD6 |0
+<U85F1> \xF2\xC7 |0
+<U85F2> \xF2\xCF |0
+<U85F6> \xF4\xBE |0
+<U85F7> \xC3\xC5 |0
+<U85F8> \xF2\xD0 |0
+<U85F9> \xC4\xA7 |0
+<U85FA> \xC4\xA9 |0
+<U85FB> \xC4\xA6 |0
+<U85FC> \x96\xC7 |0
+<U85FD> \xF4\xC3 |0
+<U85FE> \xF4\xBB |0
+<U85FF> \xF4\xB9 |0
+<U8600> \xF4\xBD |0
+<U8601> \xF4\xBA |0
+<U8602> \x8F\xA5 |0
+<U8604> \xF4\xBF |0
+<U8605> \xF4\xC1 |0
+<U8606> \xC4\xAA |0
+<U8607> \xC4\xAC |0
+<U8609> \xF4\xC0 |0
+<U860A> \xC4\xAD |0
+<U860B> \xC4\xAB |0
+<U860C> \xF4\xC2 |0
+<U860D> \xFA\xBB |0
+<U860F> \x8C\x61 |0
+<U8610> \x95\x70 |0
+<U8611> \xC4\xA8 |0
+<U8614> \x93\x68 |0
+<U8616> \x8F\x7E |0
+<U8617> \xC4\xF4 |0
+<U8618> \xF5\xF1 |0
+<U8619> \xF5\xF7 |0
+<U861A> \xC4\xF6 |0
+<U861B> \xF4\xBC |0
+<U861C> \xF5\xF6 |0
+<U861E> \xF5\xFD |0
+<U861F> \xF5\xF4 |0
+<U8620> \xF5\xFB |0
+<U8621> \xF5\xFA |0
+<U8622> \xF4\xB8 |0
+<U8623> \xF5\xF5 |0
+<U8624> \xF0\xB6 |0
+<U8625> \xF5\xFE |0
+<U8626> \xF5\xF3 |0
+<U8627> \xF5\xF8 |0
+<U8628> \x8F\xAA |0
+<U8629> \xF5\xFC |0
+<U862A> \xF5\xF2 |0
+<U862C> \xF7\x4A |0
+<U862D> \xC4\xF5 |0
+<U862E> \xF5\xF9 |0
+<U862F> \xA0\x50 |0
+<U8631> \xF7\xF4 |0
+<U8632> \xF7\x4B |0
+<U8633> \xF7\x49 |0
+<U8634> \xF7\x47 |0
+<U8635> \xF7\x48 |0
+<U8636> \xF7\x4C |0
+<U8638> \xC5\xD9 |0
+<U8639> \xF7\xF2 |0
+<U863A> \xF7\xF0 |0
+<U863B> \xF7\xF5 |0
+<U863C> \xF7\xF3 |0
+<U863E> \xF7\xF6 |0
+<U863F> \xC5\xDA |0
+<U8640> \xF7\xF1 |0
+<U8642> \x90\xD3 |0
+<U8643> \xF8\xBC |0
+<U8645> \x95\x56 |0
+<U8646> \xF9\x45 |0
+<U8647> \xF9\x46 |0
+<U8648> \xF9\x47 |0
+<U864B> \xF9\xC7 |0
+<U864C> \xF9\xBD |0
+<U864D> \xCA\x4F |0
+<U864E> \xAA\xEA |0
+<U8650> \xAD\x68 |0
+<U8652> \xD3\xB8 |0
+<U8653> \xD3\xB7 |0
+<U8654> \xB0\x40 |0
+<U8655> \xB3\x42 |0
+<U8656> \xD7\x7C |0
+<U8659> \xD7\x7B |0
+<U865B> \xB5\xEA |0
+<U865C> \xB8\xB8 |0
+<U865E> \xB8\xB7 |0
+<U865F> \xB8\xB9 |0
+<U8661> \xE3\xD4 |0
+<U8662> \xE7\x7E |0
+<U8663> \xEB\x58 |0
+<U8664> \xEB\x5A |0
+<U8665> \xEB\x59 |0
+<U8667> \xC1\xAB |0
+<U8668> \xEE\x57 |0
+<U8669> \xF0\xBA |0
+<U866A> \xF9\xA5 |0
+<U866B> \xA6\xE4 |0
+<U866C> \x8F\xB8 |0
+<U866D> \xCD\xC9 |0
+<U866E> \xCD\xCA |0
+<U866F> \xCD\xC8 |0
+<U8670> \xCD\xC7 |0
+<U8671> \xAA\xEB |0
+<U8672> \x99\xC8 |0
+<U8673> \xD0\xA9 |0
+<U8674> \xD0\xA7 |0
+<U8677> \xD0\xA6 |0
+<U8679> \xAD\x69 |0
+<U867A> \xAD\x6B |0
+<U867B> \xAD\x6A |0
+<U867C> \xD0\xA8 |0
+<U867E> \x8F\xAF |0
+<U8685> \xD3\xC4 |0
+<U8686> \xD3\xC1 |0
+<U8687> \xD3\xBF |0
+<U868A> \xB0\x41 |0
+<U868B> \xD3\xC2 |0
+<U868C> \xB0\x46 |0
+<U868D> \xD3\xBC |0
+<U868E> \xD3\xCB |0
+<U8690> \xD3\xCD |0
+<U8691> \xD3\xBD |0
+<U8692> \x99\xC9 |0
+<U8693> \xB0\x43 |0
+<U8694> \xD3\xCE |0
+<U8695> \xD3\xC9 |0
+<U8696> \xD3\xBB |0
+<U8697> \xD3\xC0 |0
+<U8698> \xD3\xCA |0
+<U8699> \xD3\xC6 |0
+<U869A> \xD3\xC3 |0
+<U869C> \xB0\x48 |0
+<U869D> \xD3\xCC |0
+<U869E> \xD3\xBE |0
+<U86A0> \x95\x79 |0
+<U86A1> \xD3\xC7 |0
+<U86A2> \xD3\xB9 |0
+<U86A3> \xB0\x47 |0
+<U86A4> \xB0\x44 |0
+<U86A5> \xD3\xC5 |0
+<U86A7> \xD3\xC8 |0
+<U86A8> \xD3\xBA |0
+<U86A9> \xB0\x45 |0
+<U86AA> \xB0\x42 |0
+<U86AD> \x9F\x49 |0
+<U86AF> \xB3\x4C |0
+<U86B0> \xD7\xA5 |0
+<U86B1> \xB3\x4B |0
+<U86B2> \x99\xCA |0
+<U86B3> \xD7\xA8 |0
+<U86B4> \xD7\xAB |0
+<U86B5> \xB3\x48 |0
+<U86B6> \xB3\x46 |0
+<U86B7> \xD7\x7E |0
+<U86B8> \xD7\xA9 |0
+<U86B9> \xD7\xA7 |0
+<U86BA> \xD7\xA4 |0
+<U86BB> \xD7\xAC |0
+<U86BC> \xD7\xAD |0
+<U86BD> \xD7\xAF |0
+<U86BE> \xD7\xB0 |0
+<U86BF> \xD7\x7D |0
+<U86C0> \xB3\x45 |0
+<U86C1> \xD7\xA2 |0
+<U86C2> \xD7\xA1 |0
+<U86C3> \xD7\xAE |0
+<U86C4> \xB3\x47 |0
+<U86C5> \xD7\xA3 |0
+<U86C6> \xB3\x49 |0
+<U86C7> \xB3\x44 |0
+<U86C8> \xD7\xA6 |0
+<U86C9> \xB3\x4D |0
+<U86CB> \xB3\x4A |0
+<U86CC> \xD7\xAA |0
+<U86D0> \xB5\xF1 |0
+<U86D1> \xDB\xBF |0
+<U86D3> \xDB\xB4 |0
+<U86D4> \xB5\xEE |0
+<U86D6> \xDF\xE7 |0
+<U86D7> \xDB\xBD |0
+<U86D8> \xDB\xB1 |0
+<U86D9> \xB5\xEC |0
+<U86DA> \xDB\xB6 |0
+<U86DB> \xB5\xEF |0
+<U86DC> \xDB\xBA |0
+<U86DD> \xDB\xB8 |0
+<U86DE> \xB5\xF2 |0
+<U86DF> \xB5\xEB |0
+<U86E2> \xDB\xB2 |0
+<U86E3> \xDB\xB5 |0
+<U86E4> \xB5\xF0 |0
+<U86E6> \xDB\xB3 |0
+<U86E8> \xDB\xBE |0
+<U86E9> \xDB\xBC |0
+<U86EA> \xDB\xB7 |0
+<U86EB> \xDB\xB9 |0
+<U86EC> \xDB\xBB |0
+<U86ED> \xB5\xED |0
+<U86EF> \x99\xCB |0
+<U86F5> \xDF\xE8 |0
+<U86F6> \xDF\xEE |0
+<U86F7> \xDF\xE4 |0
+<U86F8> \xDF\xEA |0
+<U86F9> \xB8\xBA |0
+<U86FA> \xDF\xE6 |0
+<U86FB> \xB8\xC0 |0
+<U86FE> \xB8\xBF |0
+<U8700> \xB8\xBE |0
+<U8701> \xDF\xED |0
+<U8702> \xB8\xC1 |0
+<U8703> \xB8\xC2 |0
+<U8704> \xDF\xE3 |0
+<U8705> \xDF\xF0 |0
+<U8706> \xB8\xC3 |0
+<U8707> \xB8\xBD |0
+<U8708> \xB8\xBC |0
+<U8709> \xDF\xEC |0
+<U870A> \xB8\xC4 |0
+<U870B> \xDF\xE2 |0
+<U870C> \xDF\xE5 |0
+<U870D> \xDF\xEF |0
+<U870E> \xDF\xEB |0
+<U8711> \xE3\xF4 |0
+<U8712> \xE3\xE9 |0
+<U8713> \xB8\xBB |0
+<U8718> \xBB\x6A |0
+<U8719> \xE3\xDD |0
+<U871A> \xE3\xF2 |0
+<U871B> \xE3\xDE |0
+<U871C> \xBB\x65 |0
+<U871E> \xE3\xDB |0
+<U8720> \xE3\xE4 |0
+<U8721> \xE3\xDC |0
+<U8722> \xBB\x67 |0
+<U8723> \xE3\xD6 |0
+<U8724> \xE3\xF1 |0
+<U8725> \xBB\x68 |0
+<U8726> \xE3\xEE |0
+<U8727> \xE3\xEF |0
+<U8728> \xE3\xD7 |0
+<U8729> \xBB\x6D |0
+<U872A> \xE3\xE6 |0
+<U872C> \xE3\xE0 |0
+<U872D> \xE3\xE7 |0
+<U872E> \xE3\xDA |0
+<U8730> \xE3\xF3 |0
+<U8731> \xE3\xEB |0
+<U8732> \xE3\xE5 |0
+<U8733> \xE3\xD5 |0
+<U8734> \xBB\x69 |0
+<U8735> \xE3\xEC |0
+<U8737> \xBB\x6C |0
+<U8738> \xE3\xF0 |0
+<U873A> \xE3\xEA |0
+<U873B> \xBB\x66 |0
+<U873C> \xE3\xE8 |0
+<U873E> \xE3\xE2 |0
+<U873F> \xBB\x64 |0
+<U8740> \xE3\xD9 |0
+<U8741> \xE3\xE1 |0
+<U8742> \xE3\xED |0
+<U8743> \xE3\xDF |0
+<U8746> \xE3\xE3 |0
+<U874C> \xBD\xC1 |0
+<U874D> \xDF\xE9 |0
+<U874E> \xE7\xB2 |0
+<U874F> \xE7\xBB |0
+<U8750> \xE7\xB1 |0
+<U8751> \xE7\xAD |0
+<U8752> \xE7\xAA |0
+<U8753> \xBD\xC2 |0
+<U8754> \xE7\xA8 |0
+<U8755> \xBB\x6B |0
+<U8756> \xE7\xA1 |0
+<U8757> \xBD\xC0 |0
+<U8758> \xE7\xA7 |0
+<U8759> \xBD\xBF |0
+<U875A> \xE7\xAC |0
+<U875B> \xE7\xA9 |0
+<U875C> \xE7\xB9 |0
+<U875D> \xE7\xB4 |0
+<U875E> \xE7\xAE |0
+<U875F> \xE7\xB3 |0
+<U8760> \xBD\xBB |0
+<U8761> \xE7\xAB |0
+<U8762> \xE7\xBE |0
+<U8763> \xE7\xA2 |0
+<U8764> \xE7\xA3 |0
+<U8765> \xE7\xBA |0
+<U8766> \xBD\xBC |0
+<U8767> \xE7\xBF |0
+<U8768> \xBD\xBE |0
+<U8769> \xE7\xC0 |0
+<U876A> \xE7\xB0 |0
+<U876B> \xE3\xD8 |0
+<U876C> \xE7\xB6 |0
+<U876D> \xE7\xAF |0
+<U876E> \xE7\xB8 |0
+<U876F> \xE7\xB5 |0
+<U8770> \x9D\xD5 |0
+<U8771> \x8F\xB0 |0
+<U8773> \xE7\xA6 |0
+<U8774> \xBD\xB9 |0
+<U8775> \xE7\xBD |0
+<U8776> \xBD\xBA |0
+<U8777> \xE7\xA4 |0
+<U8778> \xBD\xBD |0
+<U8779> \xEB\x64 |0
+<U877A> \xE7\xB7 |0
+<U877B> \xE7\xBC |0
+<U877D> \xFA\x7A |0
+<U8781> \xEB\x61 |0
+<U8782> \xBD\xB8 |0
+<U8783> \xBF\xC0 |0
+<U8784> \xEB\x6B |0
+<U8785> \xEB\x67 |0
+<U8786> \x9E\x5F |0
+<U8787> \xEB\x65 |0
+<U8788> \xEB\x60 |0
+<U8789> \xEB\x6F |0
+<U878B> \x99\xCD |0
+<U878C> \xA0\xC9 |0
+<U878D> \xBF\xC4 |0
+<U878F> \xEB\x5C |0
+<U8790> \xEB\x68 |0
+<U8791> \xEB\x69 |0
+<U8792> \xEB\x5F |0
+<U8793> \xEB\x5E |0
+<U8794> \xEB\x6C |0
+<U8796> \xEB\x62 |0
+<U8797> \xEB\x5D |0
+<U8798> \xEB\x63 |0
+<U879A> \xEB\x6E |0
+<U879B> \xEB\x5B |0
+<U879C> \xEB\x6D |0
+<U879D> \xEB\x6A |0
+<U879E> \xBF\xC2 |0
+<U879F> \xBF\xC1 |0
+<U87A2> \xBF\xC3 |0
+<U87A3> \xEB\x66 |0
+<U87A4> \xF0\xCB |0
+<U87A5> \x9A\xDB |0
+<U87A9> \xA0\xC6 |0
+<U87AA> \xEE\x59 |0
+<U87AB> \xC1\xB1 |0
+<U87AC> \xEE\x5D |0
+<U87AD> \xEE\x5A |0
+<U87AE> \xEE\x61 |0
+<U87AF> \xEE\x67 |0
+<U87B0> \xEE\x5C |0
+<U87B1> \x8F\xB4 |0
+<U87B2> \xEE\x70 |0
+<U87B3> \xC1\xAE |0
+<U87B4> \xEE\x6A |0
+<U87B5> \xEE\x5F |0
+<U87B6> \xEE\x6B |0
+<U87B7> \xEE\x66 |0
+<U87B8> \xEE\x6D |0
+<U87B9> \xEE\x5E |0
+<U87BA> \xC1\xB3 |0
+<U87BB> \xC1\xB2 |0
+<U87BC> \xEE\x60 |0
+<U87BD> \xEE\x6E |0
+<U87BE> \xEE\x58 |0
+<U87BF> \xEE\x6C |0
+<U87C0> \xC1\xAC |0
+<U87C1> \xA0\xD7 |0
+<U87C2> \xEE\x64 |0
+<U87C3> \xEE\x63 |0
+<U87C4> \xEE\x68 |0
+<U87C5> \xEE\x5B |0
+<U87C6> \xC1\xB0 |0
+<U87C8> \xC1\xB4 |0
+<U87C9> \xEE\x62 |0
+<U87CA> \xEE\x69 |0
+<U87CB> \xC1\xB5 |0
+<U87CC> \xEE\x65 |0
+<U87CE> \xA0\xC7 |0
+<U87D1> \xC1\xAD |0
+<U87D2> \xC1\xAF |0
+<U87D3> \xF0\xC7 |0
+<U87D4> \xF0\xC5 |0
+<U87D6> \xA0\x43 |0
+<U87D7> \xF0\xCC |0
+<U87D8> \xF0\xC9 |0
+<U87D9> \xF0\xCD |0
+<U87DA> \x8F\xB5 |0
+<U87DB> \xF0\xBE |0
+<U87DC> \xF0\xC6 |0
+<U87DD> \xF0\xD1 |0
+<U87DE> \xEE\x6F |0
+<U87DF> \xF0\xC2 |0
+<U87E0> \xC2\xCF |0
+<U87E1> \xE7\xA5 |0
+<U87E2> \xF0\xBD |0
+<U87E3> \xF0\xCA |0
+<U87E4> \xF0\xC4 |0
+<U87E5> \xF0\xC1 |0
+<U87E6> \xF0\xBC |0
+<U87E7> \xF0\xBB |0
+<U87E8> \xF0\xD0 |0
+<U87EA> \xF0\xC0 |0
+<U87EB> \xF0\xBF |0
+<U87EC> \xC2\xCD |0
+<U87ED> \xF0\xC8 |0
+<U87EE> \x8F\xB2 |0
+<U87EF> \xC2\xCC |0
+<U87F2> \xC2\xCE |0
+<U87F3> \xF0\xC3 |0
+<U87F4> \xF0\xCF |0
+<U87F5> \xA0\x61 |0
+<U87F6> \xF2\xDE |0
+<U87F7> \xF2\xDF |0
+<U87F9> \xC3\xC9 |0
+<U87FA> \xF2\xDC |0
+<U87FB> \xC3\xC6 |0
+<U87FC> \xF2\xE4 |0
+<U87FE> \xC3\xCA |0
+<U87FF> \xF2\xE6 |0
+<U8800> \xF2\xDB |0
+<U8801> \xF0\xCE |0
+<U8802> \xF2\xE8 |0
+<U8803> \xF2\xDD |0
+<U8804> \x9E\x5E |0
+<U8805> \xC3\xC7 |0
+<U8806> \xF2\xE3 |0
+<U8808> \xF2\xE5 |0
+<U8809> \xF2\xE0 |0
+<U880A> \xF2\xE7 |0
+<U880B> \xF2\xE2 |0
+<U880C> \xF2\xE1 |0
+<U880D> \xC3\xC8 |0
+<U880F> \x8F\xB6 |0
+<U8810> \xF4\xC5 |0
+<U8811> \xF4\xC6 |0
+<U8813> \xF4\xC8 |0
+<U8814> \xC4\xAE |0
+<U8815> \xC4\xAF |0
+<U8816> \xF4\xC9 |0
+<U8817> \xF4\xC7 |0
+<U8818> \x9F\xE8 |0
+<U8819> \xF4\xC4 |0
+<U881B> \xF6\x42 |0
+<U881C> \xF6\x45 |0
+<U881D> \xF6\x41 |0
+<U881F> \xC4\xFA |0
+<U8820> \xF6\x43 |0
+<U8821> \xC4\xF9 |0
+<U8822> \xC4\xF8 |0
+<U8823> \xC4\xF7 |0
+<U8824> \xF6\x44 |0
+<U8825> \xF7\x51 |0
+<U8826> \xF7\x4F |0
+<U8827> \x9C\xB2 |0
+<U8828> \xF7\x4E |0
+<U8829> \xF6\x40 |0
+<U882A> \xF7\x50 |0
+<U882B> \xF6\x46 |0
+<U882C> \xF7\x4D |0
+<U882D> \x95\x7C |0
+<U882E> \xF7\xF9 |0
+<U882F> \xF7\xD7 |0
+<U8830> \xF7\xF7 |0
+<U8831> \xC5\xDB |0
+<U8832> \xF7\xF8 |0
+<U8833> \xF7\xFA |0
+<U8835> \xF8\xBF |0
+<U8836> \xC5\xFA |0
+<U8837> \xF8\xBE |0
+<U8838> \xF8\xBD |0
+<U8839> \xC5\xFB |0
+<U883B> \xC6\x5A |0
+<U883C> \xF9\x6E |0
+<U883D> \xF9\xA7 |0
+<U883E> \xF9\xA6 |0
+<U883F> \xF9\xA8 |0
+<U8840> \xA6\xE5 |0
+<U8841> \xD0\xAA |0
+<U8842> \x9F\xC7 |0
+<U8843> \xD3\xCF |0
+<U8844> \xD3\xD0 |0
+<U8845> \x8F\xBB |0
+<U8846> \x8F\xBC |0
+<U8848> \xDB\xC0 |0
+<U884A> \xF6\x47 |0
+<U884B> \xF8\xC0 |0
+<U884C> \xA6\xE6 |0
+<U884D> \xAD\x6C |0
+<U884E> \xD0\xAB |0
+<U884F> \x8F\xEC |0
+<U8852> \xD7\xB1 |0
+<U8853> \xB3\x4E |0
+<U8855> \xDB\xC2 |0
+<U8856> \xDB\xC1 |0
+<U8857> \xB5\xF3 |0
+<U8859> \xB8\xC5 |0
+<U885A> \xE7\xC1 |0
+<U885B> \xBD\xC3 |0
+<U885D> \xBD\xC4 |0
+<U885E> \x8F\xC0 |0
+<U8860> \x93\x6A |0
+<U8861> \xBF\xC5 |0
+<U8862> \xC5\xFC |0
+<U8863> \xA6\xE7 |0
+<U8864> \x8B\xE4 |0
+<U8865> \x9C\x7C |0
+<U8867> \xD0\xAC |0
+<U8868> \xAA\xED |0
+<U8869> \xD0\xAE |0
+<U886A> \xD0\xAD |0
+<U886B> \xAD\x6D |0
+<U886D> \xD3\xD1 |0
+<U886E> \x95\xA1 |0
+<U886F> \xD3\xD8 |0
+<U8870> \xB0\x49 |0
+<U8871> \xD3\xD6 |0
+<U8872> \xD3\xD4 |0
+<U8874> \xD3\xDB |0
+<U8875> \xD3\xD2 |0
+<U8876> \xD3\xD3 |0
+<U8877> \xB0\x4A |0
+<U8879> \xB0\x4E |0
+<U887C> \xD3\xDC |0
+<U887D> \xB0\x4D |0
+<U887E> \xD3\xDA |0
+<U887F> \xD3\xD7 |0
+<U8880> \xD3\xD5 |0
+<U8881> \xB0\x4B |0
+<U8882> \xB0\x4C |0
+<U8883> \xD3\xD9 |0
+<U8884> \xFE\xEC |0
+<U8887> \x95\xA3 |0
+<U8888> \xB3\x50 |0
+<U8889> \xD7\xB2 |0
+<U888B> \xB3\x55 |0
+<U888C> \xD7\xC2 |0
+<U888D> \xB3\x54 |0
+<U888E> \xD7\xC4 |0
+<U888F> \x8C\x45 |0
+<U8890> \x8C\xB8 |0
+<U8891> \xD7\xB8 |0
+<U8892> \xB3\x52 |0
+<U8893> \xD7\xC3 |0
+<U8895> \xD7\xB3 |0
+<U8896> \xB3\x53 |0
+<U8897> \xD7\xBF |0
+<U8898> \xD7\xBB |0
+<U8899> \xD7\xBD |0
+<U889A> \xD7\xB7 |0
+<U889B> \xD7\xBE |0
+<U889C> \x8F\xC1 |0
+<U889E> \xB3\x4F |0
+<U889F> \xD7\xBA |0
+<U88A0> \xA0\x52 |0
+<U88A1> \xD7\xB9 |0
+<U88A2> \xD7\xB5 |0
+<U88A4> \xD7\xC0 |0
+<U88A7> \xD7\xBC |0
+<U88A8> \xD7\xB4 |0
+<U88AA> \xD7\xB6 |0
+<U88AB> \xB3\x51 |0
+<U88AC> \xD7\xC1 |0
+<U88AE> \x99\xD0 |0
+<U88B1> \xB5\xF6 |0
+<U88B2> \xDB\xCD |0
+<U88B4> \x8F\xC3 |0
+<U88B5> \x8F\xC4 |0
+<U88B6> \xDB\xC9 |0
+<U88B7> \xDB\xCB |0
+<U88B8> \xDB\xC6 |0
+<U88B9> \xDB\xC5 |0
+<U88BA> \xDB\xC3 |0
+<U88BC> \xDB\xCA |0
+<U88BD> \xDB\xCC |0
+<U88BE> \xDB\xC8 |0
+<U88BF> \x95\xA4 |0
+<U88C0> \xDB\xC7 |0
+<U88C1> \xB5\xF4 |0
+<U88C2> \xB5\xF5 |0
+<U88C5> \x8F\xC6 |0
+<U88C7> \x9E\x60 |0
+<U88C9> \xDB\xCF |0
+<U88CA> \xB8\xCD |0
+<U88CB> \xDF\xF2 |0
+<U88CC> \xDF\xF8 |0
+<U88CD> \xDF\xF3 |0
+<U88CE> \xDF\xF4 |0
+<U88CF> \xF9\xD8 |0
+<U88D0> \xDF\xF9 |0
+<U88D2> \xB8\xCF |0
+<U88D4> \xB8\xC7 |0
+<U88D5> \xB8\xCE |0
+<U88D6> \xDF\xF1 |0
+<U88D7> \xDB\xC4 |0
+<U88D8> \xB8\xCA |0
+<U88D9> \xB8\xC8 |0
+<U88DA> \xDF\xF7 |0
+<U88DB> \xDF\xF6 |0
+<U88DC> \xB8\xC9 |0
+<U88DD> \xB8\xCB |0
+<U88DE> \xDF\xF5 |0
+<U88DF> \xB8\xC6 |0
+<U88E1> \xB8\xCC |0
+<U88E6> \x95\xA5 |0
+<U88E7> \xE3\xF6 |0
+<U88E8> \xBB\x74 |0
+<U88EB> \xE4\x42 |0
+<U88EC> \xE4\x41 |0
+<U88EE> \xE3\xFB |0
+<U88EF> \xBB\x76 |0
+<U88F0> \xE4\x40 |0
+<U88F1> \xE3\xF7 |0
+<U88F2> \xE3\xF8 |0
+<U88F3> \xBB\x6E |0
+<U88F4> \xBB\x70 |0
+<U88F5> \x9C\xB3 |0
+<U88F6> \xE3\xFD |0
+<U88F7> \xE3\xF5 |0
+<U88F8> \xBB\x72 |0
+<U88F9> \xBB\x71 |0
+<U88FA> \xE3\xF9 |0
+<U88FB> \xE3\xFE |0
+<U88FC> \xE3\xFC |0
+<U88FD> \xBB\x73 |0
+<U88FE> \xE3\xFA |0
+<U88FF> \x99\xD1 |0
+<U8900> \xFE\xF1 |0
+<U8901> \xDB\xCE |0
+<U8902> \xBB\x6F |0
+<U8905> \xE7\xC2 |0
+<U8906> \xE7\xC9 |0
+<U8907> \xBD\xC6 |0
+<U8909> \xE7\xCD |0
+<U890A> \xBD\xCA |0
+<U890B> \xE7\xC5 |0
+<U890C> \xE7\xC3 |0
+<U890E> \xE7\xCC |0
+<U8910> \xBD\xC5 |0
+<U8911> \xE7\xCB |0
+<U8912> \xBD\xC7 |0
+<U8913> \xBD\xC8 |0
+<U8914> \xE7\xC4 |0
+<U8915> \xBD\xC9 |0
+<U8916> \xE7\xCA |0
+<U8917> \xE7\xC6 |0
+<U8918> \xE7\xC7 |0
+<U8919> \xE7\xC8 |0
+<U891A> \xBB\x75 |0
+<U891E> \xEB\x70 |0
+<U891F> \xEB\x7C |0
+<U8921> \xBF\xCA |0
+<U8922> \xEB\x77 |0
+<U8923> \xEB\x79 |0
+<U8924> \x99\xD2 |0
+<U8925> \xBF\xC8 |0
+<U8926> \xEB\x71 |0
+<U8927> \xEB\x75 |0
+<U8929> \xEB\x78 |0
+<U892A> \xBF\xC6 |0
+<U892B> \xBF\xC9 |0
+<U892C> \xEB\x7B |0
+<U892D> \xEB\x73 |0
+<U892E> \xEB\x74 |0
+<U892F> \xEB\x7A |0
+<U8930> \xEB\x72 |0
+<U8931> \xEB\x76 |0
+<U8932> \xBF\xC7 |0
+<U8933> \xEE\x72 |0
+<U8935> \xEE\x71 |0
+<U8936> \xC1\xB7 |0
+<U8937> \xEE\x77 |0
+<U8938> \xC1\xB9 |0
+<U893B> \xC1\xB6 |0
+<U893C> \xEE\x73 |0
+<U893D> \xC1\xBA |0
+<U893E> \xEE\x74 |0
+<U8941> \xEE\x75 |0
+<U8942> \xEE\x78 |0
+<U8943> \x9C\xC2 |0
+<U8944> \xC1\xB8 |0
+<U8946> \xF0\xD6 |0
+<U8947> \x99\xD3 |0
+<U8949> \xF0\xD9 |0
+<U894B> \xF0\xD3 |0
+<U894C> \xF0\xD5 |0
+<U894D> \x95\xA7 |0
+<U894F> \xF0\xD4 |0
+<U8950> \xF0\xD7 |0
+<U8951> \xF0\xD8 |0
+<U8952> \xEE\x76 |0
+<U8953> \xF0\xD2 |0
+<U8954> \x95\xA9 |0
+<U8956> \xC3\xCD |0
+<U8957> \xF2\xEC |0
+<U8958> \xF2\xEF |0
+<U8959> \xF2\xF1 |0
+<U895A> \xF2\xEA |0
+<U895B> \xF2\xEB |0
+<U895C> \xF2\xEE |0
+<U895D> \xF2\xF0 |0
+<U895E> \xC3\xCE |0
+<U895F> \xC3\xCC |0
+<U8960> \xC3\xCB |0
+<U8961> \xF2\xED |0
+<U8962> \xF2\xE9 |0
+<U8963> \xF4\xCA |0
+<U8964> \xC4\xB0 |0
+<U8965> \x95\xA6 |0
+<U8966> \xF4\xCB |0
+<U8969> \xF6\x49 |0
+<U896A> \xC4\xFB |0
+<U896B> \xF6\x4B |0
+<U896C> \xC4\xFC |0
+<U896D> \xF6\x48 |0
+<U896E> \xF6\x4A |0
+<U896F> \xC5\xA8 |0
+<U8971> \xF7\x52 |0
+<U8972> \xC5\xA7 |0
+<U8973> \xF7\xFD |0
+<U8974> \xF7\xFC |0
+<U8976> \xF7\xFB |0
+<U8977> \x9C\x5D |0
+<U8979> \xF9\x48 |0
+<U897A> \xF9\x49 |0
+<U897B> \xF9\x4B |0
+<U897C> \xF9\x4A |0
+<U897E> \xCA\x50 |0
+<U897F> \xA6\xE8 |0
+<U8980> \x98\xE2 |0
+<U8981> \xAD\x6E |0
+<U8982> \xD7\xC5 |0
+<U8983> \xB5\xF7 |0
+<U8985> \xDF\xFA |0
+<U8986> \xC2\xD0 |0
+<U8987> \x8F\xC9 |0
+<U8988> \xF2\xF2 |0
+<U8989> \xA0\xC2 |0
+<U898A> \x8F\xCA |0
+<U898B> \xA8\xA3 |0
+<U898F> \xB3\x57 |0
+<U8991> \x99\xD4 |0
+<U8993> \xB3\x56 |0
+<U8994> \xA0\xB9 |0
+<U8995> \xDB\xD0 |0
+<U8996> \xB5\xF8 |0
+<U8997> \xDB\xD2 |0
+<U8998> \xDB\xD1 |0
+<U899B> \xDF\xFB |0
+<U899C> \xB8\xD0 |0
+<U899D> \xE4\x43 |0
+<U899E> \xE4\x46 |0
+<U899F> \xE4\x45 |0
+<U89A1> \xE4\x44 |0
+<U89A2> \xE7\xCE |0
+<U89A3> \xE7\xD0 |0
+<U89A4> \xE7\xCF |0
+<U89A5> \x9B\x58 |0
+<U89A6> \xBF\xCC |0
+<U89A7> \x8F\xCD |0
+<U89A9> \xA0\xD4 |0
+<U89AA> \xBF\xCB |0
+<U89AC> \xC1\xBB |0
+<U89AD> \xEE\x79 |0
+<U89AE> \xEE\x7B |0
+<U89AF> \xEE\x7A |0
+<U89B2> \xC2\xD1 |0
+<U89B6> \xF2\xF4 |0
+<U89B7> \xF2\xF3 |0
+<U89B9> \xF4\xCC |0
+<U89BA> \xC4\xB1 |0
+<U89BC> \x8F\xCE |0
+<U89BD> \xC4\xFD |0
+<U89BE> \xF7\x54 |0
+<U89BF> \xF7\x53 |0
+<U89C0> \xC6\x5B |0
+<U89C1> \x8B\xE5 |0
+<U89C6> \x89\x79 |0
+<U89D2> \xA8\xA4 |0
+<U89D3> \xD0\xAF |0
+<U89D4> \xAD\x6F |0
+<U89D5> \xD7\xC8 |0
+<U89D6> \xD7\xC6 |0
+<U89D9> \xD7\xC7 |0
+<U89DA> \xDB\xD4 |0
+<U89DB> \xDB\xD5 |0
+<U89DC> \xE0\x43 |0
+<U89DD> \xDB\xD3 |0
+<U89DF> \xDF\xFC |0
+<U89E0> \xE0\x41 |0
+<U89E1> \xE0\x40 |0
+<U89E2> \xE0\x42 |0
+<U89E3> \xB8\xD1 |0
+<U89E4> \xDF\xFE |0
+<U89E5> \xDF\xFD |0
+<U89E6> \xE0\x44 |0
+<U89E7> \x8F\xD0 |0
+<U89E8> \xE4\x49 |0
+<U89E9> \xE4\x47 |0
+<U89EB> \xE4\x48 |0
+<U89EC> \xE7\xD3 |0
+<U89ED> \xE7\xD1 |0
+<U89F0> \xE7\xD2 |0
+<U89F1> \xEB\x7D |0
+<U89F2> \xEE\x7C |0
+<U89F3> \xEE\x7D |0
+<U89F4> \xC2\xD2 |0
+<U89F6> \xF2\xF5 |0
+<U89F7> \xF4\xCD |0
+<U89F8> \xC4\xB2 |0
+<U89FA> \xF6\x4C |0
+<U89FB> \xF7\x55 |0
+<U89FC> \xC5\xA9 |0
+<U89FE> \xF7\xFE |0
+<U89FF> \xF9\x4C |0
+<U8A00> \xA8\xA5 |0
+<U8A02> \xAD\x71 |0
+<U8A03> \xAD\x72 |0
+<U8A04> \xD0\xB0 |0
+<U8A07> \xD0\xB1 |0
+<U8A08> \xAD\x70 |0
+<U8A0A> \xB0\x54 |0
+<U8A0C> \xB0\x52 |0
+<U8A0E> \xB0\x51 |0
+<U8A0F> \xB0\x58 |0
+<U8A10> \xB0\x50 |0
+<U8A11> \xB0\x59 |0
+<U8A12> \xD3\xDD |0
+<U8A13> \xB0\x56 |0
+<U8A15> \xB0\x53 |0
+<U8A16> \xB0\x57 |0
+<U8A17> \xB0\x55 |0
+<U8A18> \xB0\x4F |0
+<U8A1B> \xB3\x5F |0
+<U8A1C> \x95\xB6 |0
+<U8A1D> \xB3\x59 |0
+<U8A1E> \xD7\xCC |0
+<U8A1F> \xB3\x5E |0
+<U8A22> \xB3\x60 |0
+<U8A23> \xB3\x5A |0
+<U8A25> \xB3\x5B |0
+<U8A27> \xD7\xCA |0
+<U8A29> \x99\xD6 |0
+<U8A2A> \xB3\x58 |0
+<U8A2B> \x95\xE5 |0
+<U8A2C> \xD7\xCB |0
+<U8A2D> \xB3\x5D |0
+<U8A30> \xD7\xC9 |0
+<U8A31> \xB3\x5C |0
+<U8A34> \xB6\x44 |0
+<U8A36> \xB6\x46 |0
+<U8A38> \x99\xD7 |0
+<U8A39> \xDB\xD8 |0
+<U8A3A> \xB6\x45 |0
+<U8A3B> \xB5\xF9 |0
+<U8A3C> \xB5\xFD |0
+<U8A3D> \x95\xB5 |0
+<U8A3E> \xB8\xE4 |0
+<U8A3F> \xE0\x49 |0
+<U8A40> \xDB\xDA |0
+<U8A41> \xB5\xFE |0
+<U8A44> \xDB\xDD |0
+<U8A45> \xDB\xDE |0
+<U8A46> \xB6\x43 |0
+<U8A48> \xDB\xE0 |0
+<U8A49> \xA0\xCA |0
+<U8A4A> \xDB\xE2 |0
+<U8A4C> \xDB\xE3 |0
+<U8A4D> \xDB\xD7 |0
+<U8A4E> \xDB\xD6 |0
+<U8A4F> \xDB\xE4 |0
+<U8A50> \xB6\x42 |0
+<U8A51> \xDB\xE1 |0
+<U8A52> \xDB\xDF |0
+<U8A54> \xB6\x40 |0
+<U8A55> \xB5\xFB |0
+<U8A56> \xB6\x47 |0
+<U8A57> \xDB\xDB |0
+<U8A58> \xDB\xDC |0
+<U8A59> \xDB\xD9 |0
+<U8A5B> \xB6\x41 |0
+<U8A5E> \xB5\xFC |0
+<U8A60> \xB5\xFA |0
+<U8A61> \xE0\x48 |0
+<U8A62> \xB8\xDF |0
+<U8A63> \xB8\xDA |0
+<U8A66> \xB8\xD5 |0
+<U8A67> \x9F\xFD |0
+<U8A68> \xB8\xE5 |0
+<U8A69> \xB8\xD6 |0
+<U8A6B> \xB8\xD2 |0
+<U8A6C> \xB8\xE1 |0
+<U8A6D> \xB8\xDE |0
+<U8A6E> \xB8\xE0 |0
+<U8A70> \xB8\xD7 |0
+<U8A71> \xB8\xDC |0
+<U8A72> \xB8\xD3 |0
+<U8A73> \xB8\xD4 |0
+<U8A74> \xE0\x50 |0
+<U8A75> \xE0\x4D |0
+<U8A76> \xE0\x45 |0
+<U8A77> \xE0\x4A |0
+<U8A79> \xB8\xE2 |0
+<U8A7A> \xE0\x51 |0
+<U8A7B> \xB8\xE3 |0
+<U8A7C> \xB8\xD9 |0
+<U8A7E> \xA0\x58 |0
+<U8A7F> \xE0\x47 |0
+<U8A81> \xE0\x4F |0
+<U8A82> \xE0\x4B |0
+<U8A83> \xE0\x4E |0
+<U8A84> \xE0\x4C |0
+<U8A85> \xB8\xDD |0
+<U8A86> \xE0\x46 |0
+<U8A87> \xB8\xD8 |0
+<U8A8B> \xE4\x4C |0
+<U8A8C> \xBB\x78 |0
+<U8A8D> \xBB\x7B |0
+<U8A8F> \xE4\x4E |0
+<U8A90> \x8F\xD6 |0
+<U8A91> \xBB\xA5 |0
+<U8A92> \xE4\x4D |0
+<U8A93> \xBB\x7D |0
+<U8A94> \x99\xD8 |0
+<U8A95> \xBD\xCF |0
+<U8A96> \xE4\x4F |0
+<U8A98> \xBB\xA4 |0
+<U8A99> \xE4\x4B |0
+<U8A9A> \xBB\xA6 |0
+<U8A9C> \x8F\xD3 |0
+<U8A9E> \xBB\x79 |0
+<U8AA0> \xB8\xDB |0
+<U8AA1> \xBB\x7C |0
+<U8AA3> \xBB\x7A |0
+<U8AA4> \xBB\x7E |0
+<U8AA5> \xBB\xA2 |0
+<U8AA6> \xBB\x77 |0
+<U8AA7> \xBB\xA7 |0
+<U8AA8> \xBB\xA3 |0
+<U8AA9> \x8F\xE5 |0
+<U8AAA> \xBB\xA1 |0
+<U8AAB> \xE4\x4A |0
+<U8AAF> \x8F\xE9 |0
+<U8AB0> \xBD\xD6 |0
+<U8AB2> \xBD\xD2 |0
+<U8AB4> \x99\xD9 |0
+<U8AB6> \xBD\xD9 |0
+<U8AB8> \xE7\xD6 |0
+<U8AB9> \xBD\xDA |0
+<U8ABA> \xE7\xE2 |0
+<U8ABB> \xE7\xDB |0
+<U8ABC> \xBD\xCB |0
+<U8ABD> \xE7\xE3 |0
+<U8ABE> \xE7\xDD |0
+<U8ABF> \xBD\xD5 |0
+<U8AC0> \xE7\xDE |0
+<U8AC2> \xBD\xD4 |0
+<U8AC3> \xE7\xE1 |0
+<U8AC4> \xBD\xCE |0
+<U8AC5> \xE7\xDF |0
+<U8AC6> \xE7\xD5 |0
+<U8AC7> \xBD\xCD |0
+<U8AC8> \xEB\xAA |0
+<U8AC9> \xBD\xD3 |0
+<U8ACB> \xBD\xD0 |0
+<U8ACD> \xBD\xD8 |0
+<U8ACF> \xE7\xD4 |0
+<U8AD1> \xE7\xD8 |0
+<U8AD2> \xBD\xCC |0
+<U8AD3> \xE7\xD7 |0
+<U8AD4> \xE7\xD9 |0
+<U8AD5> \xE7\xDA |0
+<U8AD6> \xBD\xD7 |0
+<U8AD7> \xE7\xDC |0
+<U8AD8> \xE7\xE0 |0
+<U8AD9> \xE7\xE4 |0
+<U8ADA> \x92\x7C |0
+<U8ADB> \xBD\xDB |0
+<U8ADC> \xBF\xD2 |0
+<U8ADD> \xEB\xA5 |0
+<U8ADE> \xEB\xAB |0
+<U8ADF> \xEB\xA8 |0
+<U8AE0> \xEB\x7E |0
+<U8AE1> \xEB\xAC |0
+<U8AE2> \xEB\xA1 |0
+<U8AE4> \xEB\xA7 |0
+<U8AE6> \xBF\xCD |0
+<U8AE7> \xBF\xD3 |0
+<U8AE8> \xEB\xAD |0
+<U8AEA> \x9C\x45 |0
+<U8AEB> \xBF\xCF |0
+<U8AED> \xBF\xD9 |0
+<U8AEE> \xBF\xD4 |0
+<U8AEF> \xEB\xAF |0
+<U8AF0> \xEB\xA9 |0
+<U8AF1> \xBF\xD0 |0
+<U8AF2> \xEB\xA2 |0
+<U8AF3> \xBF\xDA |0
+<U8AF4> \xEB\xA3 |0
+<U8AF5> \xEB\xA4 |0
+<U8AF6> \xBF\xDB |0
+<U8AF7> \xBF\xD8 |0
+<U8AF8> \xBD\xD1 |0
+<U8AFA> \xBF\xCE |0
+<U8AFB> \xEB\xB0 |0
+<U8AFC> \xBF\xDC |0
+<U8AFE> \xBF\xD5 |0
+<U8AFF> \xEB\xAE |0
+<U8B00> \xBF\xD1 |0
+<U8B01> \xBF\xD6 |0
+<U8B02> \xBF\xD7 |0
+<U8B04> \xC1\xC3 |0
+<U8B05> \xEE\xA4 |0
+<U8B06> \xEE\xAD |0
+<U8B07> \xEE\xAA |0
+<U8B08> \xEE\xAC |0
+<U8B0A> \xC1\xC0 |0
+<U8B0B> \xEE\xA5 |0
+<U8B0C> \x8F\xDE |0
+<U8B0D> \xEE\xAB |0
+<U8B0E> \xC1\xBC |0
+<U8B0F> \xEE\xA7 |0
+<U8B10> \xC1\xC4 |0
+<U8B11> \xEE\xA3 |0
+<U8B12> \xEE\xA8 |0
+<U8B13> \xEE\xAF |0
+<U8B14> \xEB\xA6 |0
+<U8B15> \xEE\xA9 |0
+<U8B16> \xEE\xA2 |0
+<U8B17> \xC1\xBD |0
+<U8B18> \xEE\xA1 |0
+<U8B19> \xC1\xBE |0
+<U8B1A> \xEE\xB0 |0
+<U8B1B> \xC1\xBF |0
+<U8B1C> \xEE\xAE |0
+<U8B1D> \xC1\xC2 |0
+<U8B1E> \xEE\x7E |0
+<U8B1F> \x8F\xDF |0
+<U8B20> \xC1\xC1 |0
+<U8B22> \xEE\xA6 |0
+<U8B23> \xF0\xDC |0
+<U8B24> \xF0\xEA |0
+<U8B25> \xF0\xE5 |0
+<U8B26> \xF0\xE7 |0
+<U8B27> \xF0\xDB |0
+<U8B28> \xC2\xD3 |0
+<U8B2A> \xF0\xDA |0
+<U8B2B> \xC2\xD6 |0
+<U8B2C> \xC2\xD5 |0
+<U8B2D> \xA0\x4B |0
+<U8B2E> \xF0\xE9 |0
+<U8B2F> \xF0\xE1 |0
+<U8B30> \xF0\xDE |0
+<U8B31> \xF0\xE4 |0
+<U8B33> \xF0\xDD |0
+<U8B35> \xF0\xDF |0
+<U8B36> \xF0\xE8 |0
+<U8B37> \xF0\xE6 |0
+<U8B39> \xC2\xD4 |0
+<U8B3A> \xF0\xED |0
+<U8B3B> \xF0\xEB |0
+<U8B3C> \xF0\xE2 |0
+<U8B3D> \xF0\xEC |0
+<U8B3E> \xF0\xE3 |0
+<U8B3F> \x8F\xE2 |0
+<U8B40> \xF2\xF9 |0
+<U8B41> \xC3\xCF |0
+<U8B42> \xF3\x41 |0
+<U8B43> \xA0\xCC |0
+<U8B45> \xF6\x4F |0
+<U8B46> \xC3\xD6 |0
+<U8B47> \xF0\xE0 |0
+<U8B48> \xF2\xF7 |0
+<U8B49> \xC3\xD2 |0
+<U8B4A> \xF2\xF8 |0
+<U8B4B> \xF2\xFD |0
+<U8B4C> \x8F\xE3 |0
+<U8B4D> \x8F\xE4 |0
+<U8B4E> \xC3\xD4 |0
+<U8B4F> \xC3\xD5 |0
+<U8B50> \xF2\xF6 |0
+<U8B51> \xF3\x40 |0
+<U8B52> \xF3\x42 |0
+<U8B53> \xF2\xFA |0
+<U8B54> \xF2\xFC |0
+<U8B55> \xF2\xFE |0
+<U8B56> \xF2\xFB |0
+<U8B57> \xF3\x43 |0
+<U8B58> \xC3\xD1 |0
+<U8B59> \xC3\xD7 |0
+<U8B5A> \xC3\xD3 |0
+<U8B5C> \xC3\xD0 |0
+<U8B5D> \xF4\xD0 |0
+<U8B5E> \x9B\xC4 |0
+<U8B5F> \xC4\xB7 |0
+<U8B60> \xF4\xCE |0
+<U8B62> \x9B\xFC |0
+<U8B63> \xF4\xD2 |0
+<U8B65> \xF4\xD3 |0
+<U8B66> \xC4\xB5 |0
+<U8B67> \xF4\xD4 |0
+<U8B68> \xF4\xD1 |0
+<U8B69> \x96\x4C |0
+<U8B6A> \xF4\xCF |0
+<U8B6B> \xC4\xB8 |0
+<U8B6C> \xC4\xB4 |0
+<U8B6D> \xF4\xD5 |0
+<U8B6F> \xC4\xB6 |0
+<U8B70> \xC4\xB3 |0
+<U8B74> \xC4\xFE |0
+<U8B77> \xC5\x40 |0
+<U8B78> \xF6\x4E |0
+<U8B79> \xF6\x4D |0
+<U8B7A> \xF6\x50 |0
+<U8B7B> \xF6\x51 |0
+<U8B7D> \xC5\x41 |0
+<U8B7E> \xF7\x56 |0
+<U8B7F> \xF7\x5B |0
+<U8B80> \xC5\xAA |0
+<U8B81> \x9A\xF6 |0
+<U8B82> \xF7\x58 |0
+<U8B83> \x8C\xAE |0
+<U8B84> \xF7\x57 |0
+<U8B85> \xF7\x5A |0
+<U8B86> \xF7\x59 |0
+<U8B88> \xF8\x43 |0
+<U8B8A> \xC5\xDC |0
+<U8B8B> \xF8\x42 |0
+<U8B8C> \xF8\x40 |0
+<U8B8E> \xF8\x41 |0
+<U8B90> \x8F\xE7 |0
+<U8B92> \xC5\xFE |0
+<U8B93> \xC5\xFD |0
+<U8B94> \xF8\xC1 |0
+<U8B95> \xF8\xC2 |0
+<U8B96> \xC6\x40 |0
+<U8B98> \xF9\x4D |0
+<U8B99> \xF9\x4E |0
+<U8B9A> \xC6\x67 |0
+<U8B9B> \x8F\xE8 |0
+<U8B9C> \xC6\x6D |0
+<U8B9E> \xF9\xA9 |0
+<U8B9F> \xF9\xC8 |0
+<U8BA0> \x8B\xE7 |0
+<U8BBE> \x89\x7A |0
+<U8BE2> \x89\x7B |0
+<U8C37> \xA8\xA6 |0
+<U8C39> \xD7\xCD |0
+<U8C3B> \xD7\xCE |0
+<U8C3C> \xE0\x52 |0
+<U8C3D> \xE4\x50 |0
+<U8C3E> \xE7\xE5 |0
+<U8C3F> \xC1\xC6 |0
+<U8C41> \xC1\xC5 |0
+<U8C42> \xF0\xEE |0
+<U8C43> \xF3\x44 |0
+<U8C45> \xF8\x44 |0
+<U8C46> \xA8\xA7 |0
+<U8C47> \xD3\xDE |0
+<U8C48> \xB0\x5A |0
+<U8C49> \xB3\x61 |0
+<U8C4A> \xE0\x54 |0
+<U8C4B> \xE0\x53 |0
+<U8C4C> \xBD\xDC |0
+<U8C4D> \xE7\xE6 |0
+<U8C4E> \xBD\xDD |0
+<U8C4F> \xEE\xB1 |0
+<U8C50> \xC2\xD7 |0
+<U8C51> \x99\xDA |0
+<U8C54> \xC6\x76 |0
+<U8C55> \xA8\xA8 |0
+<U8C56> \xCD\xCB |0
+<U8C57> \xD3\xDF |0
+<U8C5A> \xB3\x62 |0
+<U8C5C> \xD7\xCF |0
+<U8C5D> \xD7\xD0 |0
+<U8C5F> \xDB\xE5 |0
+<U8C61> \xB6\x48 |0
+<U8C62> \xB8\xE6 |0
+<U8C64> \xE0\x56 |0
+<U8C65> \xE0\x55 |0
+<U8C66> \xE0\x57 |0
+<U8C68> \xE4\x51 |0
+<U8C69> \xE4\x52 |0
+<U8C6A> \xBB\xA8 |0
+<U8C6B> \xBF\xDD |0
+<U8C6C> \xBD\xDE |0
+<U8C6D> \xBF\xDE |0
+<U8C6F> \xEE\xB5 |0
+<U8C70> \xEE\xB2 |0
+<U8C71> \xEE\xB4 |0
+<U8C72> \xEE\xB3 |0
+<U8C73> \xC1\xC7 |0
+<U8C75> \xF0\xEF |0
+<U8C76> \xF3\x46 |0
+<U8C77> \xF3\x45 |0
+<U8C78> \xCB\xA4 |0
+<U8C79> \xB0\x5C |0
+<U8C7A> \xB0\x5B |0
+<U8C7B> \xD3\xE0 |0
+<U8C7D> \xD7\xD1 |0
+<U8C80> \xDB\xE7 |0
+<U8C81> \xDB\xE6 |0
+<U8C82> \xB6\x49 |0
+<U8C84> \xE0\x59 |0
+<U8C85> \xE0\x5A |0
+<U8C86> \xE0\x58 |0
+<U8C89> \xB8\xE8 |0
+<U8C8A> \xB8\xE7 |0
+<U8C8C> \xBB\xAA |0
+<U8C8D> \xBB\xA9 |0
+<U8C8F> \xE7\xE7 |0
+<U8C90> \xEB\xB3 |0
+<U8C91> \xEB\xB1 |0
+<U8C92> \xEB\xB2 |0
+<U8C93> \xBF\xDF |0
+<U8C94> \xEE\xB7 |0
+<U8C95> \xEE\xB6 |0
+<U8C97> \xF0\xF2 |0
+<U8C98> \xF0\xF1 |0
+<U8C99> \xF0\xF0 |0
+<U8C9A> \xF3\x47 |0
+<U8C9B> \x8F\xED |0
+<U8C9C> \xF9\xAA |0
+<U8C9D> \xA8\xA9 |0
+<U8C9E> \xAD\x73 |0
+<U8C9F> \x95\xC0 |0
+<U8CA0> \xAD\x74 |0
+<U8CA1> \xB0\x5D |0
+<U8CA2> \xB0\x5E |0
+<U8CA3> \xD3\xE2 |0
+<U8CA4> \xD3\xE1 |0
+<U8CA5> \xD7\xD2 |0
+<U8CA7> \xB3\x68 |0
+<U8CA8> \xB3\x66 |0
+<U8CA9> \xB3\x63 |0
+<U8CAA> \xB3\x67 |0
+<U8CAB> \xB3\x65 |0
+<U8CAC> \xB3\x64 |0
+<U8CAD> \xA0\xCB |0
+<U8CAF> \xB6\x4A |0
+<U8CB0> \xDB\xEA |0
+<U8CB2> \xB8\xED |0
+<U8CB3> \xB6\x4C |0
+<U8CB4> \xB6\x51 |0
+<U8CB5> \xDB\xEC |0
+<U8CB6> \xB6\x53 |0
+<U8CB7> \xB6\x52 |0
+<U8CB8> \xB6\x55 |0
+<U8CB9> \xDB\xEB |0
+<U8CBA> \xDB\xE8 |0
+<U8CBB> \xB6\x4F |0
+<U8CBC> \xB6\x4B |0
+<U8CBD> \xB6\x4D |0
+<U8CBE> \xDB\xE9 |0
+<U8CBF> \xB6\x54 |0
+<U8CC0> \xB6\x50 |0
+<U8CC1> \xB6\x4E |0
+<U8CC2> \xB8\xEF |0
+<U8CC3> \xB8\xEE |0
+<U8CC4> \xB8\xEC |0
+<U8CC5> \xB8\xF0 |0
+<U8CC7> \xB8\xEA |0
+<U8CC8> \xB8\xEB |0
+<U8CCA> \xB8\xE9 |0
+<U8CCC> \xE0\x5B |0
+<U8CCD> \x9E\x48 |0
+<U8CCF> \xE4\x54 |0
+<U8CD1> \xBB\xAC |0
+<U8CD2> \xBB\xAD |0
+<U8CD3> \xBB\xAB |0
+<U8CD4> \x99\xDB |0
+<U8CD5> \xE4\x53 |0
+<U8CD6> \x8F\xF3 |0
+<U8CD7> \xE4\x55 |0
+<U8CD9> \xE7\xEA |0
+<U8CDA> \xE7\xEC |0
+<U8CDB> \x8F\xF9 |0
+<U8CDC> \xBD\xE7 |0
+<U8CDD> \xE7\xED |0
+<U8CDE> \xBD\xE0 |0
+<U8CDF> \xE7\xE9 |0
+<U8CE0> \xBD\xDF |0
+<U8CE1> \xBD\xE9 |0
+<U8CE2> \xBD\xE5 |0
+<U8CE3> \xBD\xE6 |0
+<U8CE4> \xBD\xE2 |0
+<U8CE5> \xE7\xE8 |0
+<U8CE6> \xBD\xE1 |0
+<U8CE7> \xE7\xEE |0
+<U8CE8> \xE7\xEB |0
+<U8CE9> \x95\xC1 |0
+<U8CEA> \xBD\xE8 |0
+<U8CEB> \xA0\x4E |0
+<U8CEC> \xBD\xE3 |0
+<U8CED> \xBD\xE4 |0
+<U8CEE> \xEB\xB5 |0
+<U8CF0> \xEB\xB7 |0
+<U8CF1> \xEB\xB6 |0
+<U8CF2> \x99\xDC |0
+<U8CF3> \xEB\xB8 |0
+<U8CF4> \xBF\xE0 |0
+<U8CF5> \xEB\xB4 |0
+<U8CF7> \xA0\x64 |0
+<U8CF8> \xC1\xCB |0
+<U8CF9> \xEE\xB8 |0
+<U8CFA> \xC1\xC8 |0
+<U8CFB> \xC1\xCC |0
+<U8CFC> \xC1\xCA |0
+<U8CFD> \xC1\xC9 |0
+<U8CFE> \xF0\xF3 |0
+<U8D00> \xF0\xF6 |0
+<U8D02> \xF0\xF5 |0
+<U8D03> \x8F\xF7 |0
+<U8D04> \xF0\xF4 |0
+<U8D05> \xC2\xD8 |0
+<U8D06> \xF3\x48 |0
+<U8D07> \xF3\x49 |0
+<U8D08> \xC3\xD8 |0
+<U8D09> \xF3\x4A |0
+<U8D0A> \xC3\xD9 |0
+<U8D0B> \x89\xB0 |0
+<U8D0C> \xA0\x48 |0
+<U8D0D> \xC4\xBA |0
+<U8D0F> \xC4\xB9 |0
+<U8D10> \xF6\x52 |0
+<U8D11> \x8F\xFB |0
+<U8D12> \x8F\xF6 |0
+<U8D13> \xC5\x42 |0
+<U8D14> \xF6\x53 |0
+<U8D15> \xF7\x5C |0
+<U8D16> \xC5\xAB |0
+<U8D17> \xC5\xAC |0
+<U8D18> \x9D\xDC |0
+<U8D19> \xF8\x45 |0
+<U8D1B> \xC6\x42 |0
+<U8D1C> \x99\xDD |0
+<U8D1D> \x8B\xE8 |0
+<U8D64> \xA8\xAA |0
+<U8D66> \xB3\x6A |0
+<U8D67> \xB3\x69 |0
+<U8D68> \xE0\x5C |0
+<U8D69> \xE0\x5D |0
+<U8D6B> \xBB\xAE |0
+<U8D6C> \xEB\xB9 |0
+<U8D6D> \xBD\xEA |0
+<U8D6E> \xEB\xBA |0
+<U8D6F> \xEE\xB9 |0
+<U8D70> \xA8\xAB |0
+<U8D72> \xD0\xB2 |0
+<U8D73> \xAD\x76 |0
+<U8D74> \xAD\x75 |0
+<U8D76> \xD3\xE3 |0
+<U8D77> \xB0\x5F |0
+<U8D78> \xD3\xE4 |0
+<U8D79> \xD7\xD5 |0
+<U8D7A> \x92\xC1 |0
+<U8D7B> \xD7\xD4 |0
+<U8D7D> \xD7\xD3 |0
+<U8D80> \xDB\xEE |0
+<U8D81> \xB6\x58 |0
+<U8D82> \x9F\xD6 |0
+<U8D84> \xDB\xED |0
+<U8D85> \xB6\x57 |0
+<U8D89> \xDB\xEF |0
+<U8D8A> \xB6\x56 |0
+<U8D8C> \xE0\x5F |0
+<U8D8D> \xE0\x62 |0
+<U8D8E> \xE0\x60 |0
+<U8D8F> \xE0\x61 |0
+<U8D90> \xE0\x65 |0
+<U8D91> \xE0\x5E |0
+<U8D92> \xE0\x66 |0
+<U8D93> \xE0\x63 |0
+<U8D94> \xE0\x64 |0
+<U8D95> \xBB\xB0 |0
+<U8D96> \xE4\x56 |0
+<U8D99> \xBB\xAF |0
+<U8D9B> \xE7\xF2 |0
+<U8D9C> \xE7\xF0 |0
+<U8D9F> \xBD\xEB |0
+<U8DA0> \xE7\xEF |0
+<U8DA1> \xE7\xF1 |0
+<U8DA3> \xBD\xEC |0
+<U8DA5> \xEB\xBB |0
+<U8DA6> \xA0\xD2 |0
+<U8DA7> \xEB\xBC |0
+<U8DA8> \xC1\xCD |0
+<U8DA9> \x90\x40 |0
+<U8DAA> \xF3\x4C |0
+<U8DAB> \xF3\x4E |0
+<U8DAC> \xF3\x4B |0
+<U8DAD> \xF3\x4D |0
+<U8DAE> \xF4\xD6 |0
+<U8DAF> \xF6\x54 |0
+<U8DB2> \xF9\x6F |0
+<U8DB3> \xA8\xAC |0
+<U8DB4> \xAD\x77 |0
+<U8DB5> \xD3\xE5 |0
+<U8DB6> \xD3\xE7 |0
+<U8DB7> \xD3\xE6 |0
+<U8DB9> \xD7\xD8 |0
+<U8DBA> \xB3\x6C |0
+<U8DBC> \xD7\xD6 |0
+<U8DBE> \xB3\x6B |0
+<U8DBF> \xD7\xD9 |0
+<U8DC0> \x8A\xC4 |0
+<U8DC1> \xD7\xDA |0
+<U8DC2> \xD7\xD7 |0
+<U8DC3> \x99\xE0 |0
+<U8DC5> \xDB\xFB |0
+<U8DC6> \xB6\x60 |0
+<U8DC7> \xDB\xF3 |0
+<U8DC8> \xDB\xF9 |0
+<U8DCB> \xB6\x5B |0
+<U8DCC> \xB6\x5E |0
+<U8DCD> \xDB\xF2 |0
+<U8DCE> \xB6\x59 |0
+<U8DCF> \xDB\xF6 |0
+<U8DD0> \xE0\x6C |0
+<U8DD1> \xB6\x5D |0
+<U8DD3> \xDB\xF1 |0
+<U8DD4> \x9F\xF0 |0
+<U8DD5> \xDB\xF7 |0
+<U8DD6> \xDB\xF4 |0
+<U8DD7> \xDB\xFA |0
+<U8DD8> \xDB\xF0 |0
+<U8DD9> \xDB\xF8 |0
+<U8DDA> \xB6\x5C |0
+<U8DDB> \xB6\x5F |0
+<U8DDC> \xDB\xF5 |0
+<U8DDD> \xB6\x5A |0
+<U8DDF> \xB8\xF2 |0
+<U8DE0> \xE0\x68 |0
+<U8DE1> \xB8\xF1 |0
+<U8DE2> \xE0\x6F |0
+<U8DE3> \xE0\x6E |0
+<U8DE4> \xB8\xF8 |0
+<U8DE6> \xB8\xF9 |0
+<U8DE7> \xE0\x70 |0
+<U8DE8> \xB8\xF3 |0
+<U8DE9> \xE0\x6D |0
+<U8DEA> \xB8\xF7 |0
+<U8DEB> \xE0\x72 |0
+<U8DEC> \xE0\x69 |0
+<U8DEE> \xE0\x6B |0
+<U8DEF> \xB8\xF4 |0
+<U8DF0> \xE0\x67 |0
+<U8DF1> \xE0\x6A |0
+<U8DF2> \xE0\x71 |0
+<U8DF3> \xB8\xF5 |0
+<U8DF4> \xE0\x73 |0
+<U8DFA> \xB8\xF6 |0
+<U8DFC> \xBB\xB1 |0
+<U8DFD> \xE4\x5B |0
+<U8DFE> \xE4\x61 |0
+<U8DFF> \xE4\x59 |0
+<U8E00> \xE4\x62 |0
+<U8E01> \x9F\xF3 |0
+<U8E02> \xE4\x58 |0
+<U8E03> \xE4\x5D |0
+<U8E04> \xE4\x63 |0
+<U8E05> \xE4\x60 |0
+<U8E06> \xE4\x5F |0
+<U8E07> \xE4\x5E |0
+<U8E09> \xE4\x57 |0
+<U8E0A> \xE4\x5C |0
+<U8E0D> \xE4\x5A |0
+<U8E0E> \x9D\xBF |0
+<U8E0F> \xBD\xF1 |0
+<U8E10> \xBD\xEE |0
+<U8E11> \xE7\xFB |0
+<U8E12> \xE8\x41 |0
+<U8E13> \xE8\x43 |0
+<U8E14> \xE8\x40 |0
+<U8E15> \xE7\xF8 |0
+<U8E16> \xE7\xFA |0
+<U8E17> \xE8\x45 |0
+<U8E18> \xE8\x42 |0
+<U8E19> \xE7\xFC |0
+<U8E1A> \xE8\x46 |0
+<U8E1B> \xE7\xF9 |0
+<U8E1C> \xE8\x44 |0
+<U8E1D> \xBD\xEF |0
+<U8E1E> \xBD\xF5 |0
+<U8E1F> \xBD\xF3 |0
+<U8E20> \xE7\xF3 |0
+<U8E21> \xBD\xF4 |0
+<U8E22> \xBD\xF0 |0
+<U8E23> \xE7\xF4 |0
+<U8E24> \xE7\xF6 |0
+<U8E25> \xE7\xF5 |0
+<U8E26> \xE7\xFD |0
+<U8E27> \xE7\xFE |0
+<U8E28> \x9F\xF6 |0
+<U8E29> \xBD\xF2 |0
+<U8E2A> \x95\xC8 |0
+<U8E2B> \xBD\xED |0
+<U8E2D> \x9E\x5A |0
+<U8E2E> \xE7\xF7 |0
+<U8E30> \xEB\xC6 |0
+<U8E31> \xBF\xE2 |0
+<U8E33> \xEB\xBD |0
+<U8E34> \xBF\xE3 |0
+<U8E35> \xBF\xE6 |0
+<U8E36> \xEB\xC2 |0
+<U8E38> \xEB\xBF |0
+<U8E39> \xBF\xE5 |0
+<U8E3A> \x99\xE3 |0
+<U8E3C> \xEB\xC3 |0
+<U8E3D> \xEB\xC4 |0
+<U8E3E> \xEB\xBE |0
+<U8E3F> \xEB\xC7 |0
+<U8E40> \xEB\xC0 |0
+<U8E41> \xEB\xC5 |0
+<U8E42> \xBF\xE4 |0
+<U8E44> \xBF\xE1 |0
+<U8E45> \xEB\xC1 |0
+<U8E46> \x8A\x4A |0
+<U8E47> \xEE\xBF |0
+<U8E48> \xC1\xD0 |0
+<U8E49> \xC1\xCE |0
+<U8E4A> \xC1\xD1 |0
+<U8E4B> \xC1\xCF |0
+<U8E4C> \xEE\xBE |0
+<U8E4D> \xEE\xBB |0
+<U8E4E> \xEE\xBA |0
+<U8E4F> \x9F\xF1 |0
+<U8E50> \xEE\xBD |0
+<U8E53> \xEE\xBC |0
+<U8E54> \xF1\x45 |0
+<U8E55> \xC2\xDE |0
+<U8E56> \xF0\xFB |0
+<U8E57> \xF0\xFA |0
+<U8E59> \xC2\xD9 |0
+<U8E5A> \xF1\x41 |0
+<U8E5B> \xF1\x40 |0
+<U8E5C> \xF0\xF7 |0
+<U8E5D> \xF1\x43 |0
+<U8E5E> \xF0\xFC |0
+<U8E5F> \xC2\xDD |0
+<U8E60> \xF0\xF9 |0
+<U8E61> \xF1\x42 |0
+<U8E62> \xF0\xF8 |0
+<U8E63> \xC2\xDA |0
+<U8E64> \xC2\xDC |0
+<U8E65> \xF0\xFD |0
+<U8E66> \xC2\xDB |0
+<U8E67> \xF0\xFE |0
+<U8E68> \x8A\xA7 |0
+<U8E69> \xF1\x44 |0
+<U8E6A> \xF3\x52 |0
+<U8E6C> \xC3\xDE |0
+<U8E6D> \xF3\x4F |0
+<U8E6F> \xF3\x53 |0
+<U8E71> \x99\xE6 |0
+<U8E72> \xC3\xDB |0
+<U8E73> \xF3\x51 |0
+<U8E74> \xC3\xE0 |0
+<U8E75> \x9F\xF7 |0
+<U8E76> \xC3\xDD |0
+<U8E77> \x9F\xED |0
+<U8E78> \xF3\x50 |0
+<U8E7A> \xC3\xDF |0
+<U8E7B> \xF3\x54 |0
+<U8E7C> \xC3\xDA |0
+<U8E7E> \x8A\x5C |0
+<U8E80> \x9D\xAE |0
+<U8E81> \xC4\xBC |0
+<U8E82> \xC4\xBE |0
+<U8E84> \xF4\xD9 |0
+<U8E85> \xC4\xBD |0
+<U8E86> \xF4\xD7 |0
+<U8E87> \xC3\xDC |0
+<U8E88> \xF4\xD8 |0
+<U8E89> \xC4\xBB |0
+<U8E8A> \xC5\x43 |0
+<U8E8B> \xC5\x45 |0
+<U8E8C> \xF6\x56 |0
+<U8E8D> \xC5\x44 |0
+<U8E8E> \xF6\x55 |0
+<U8E90> \xF7\x61 |0
+<U8E91> \xC5\xAD |0
+<U8E92> \xF7\x60 |0
+<U8E93> \xC5\xAE |0
+<U8E94> \xF7\x5E |0
+<U8E95> \xF7\x5D |0
+<U8E96> \xF7\x62 |0
+<U8E97> \xF7\x63 |0
+<U8E98> \xF8\x46 |0
+<U8E9A> \xF7\x5F |0
+<U8E9D> \xF8\xC6 |0
+<U8E9E> \xF8\xC3 |0
+<U8E9F> \xF8\xC4 |0
+<U8EA0> \xF8\xC5 |0
+<U8EA1> \xC6\x5C |0
+<U8EA3> \xF9\x51 |0
+<U8EA4> \xF9\x50 |0
+<U8EA5> \xF9\x4F |0
+<U8EA6> \xF9\x70 |0
+<U8EA7> \x95\xC9 |0
+<U8EA8> \xF9\xBE |0
+<U8EA9> \xF9\xAB |0
+<U8EAA> \xC6\x6E |0
+<U8EAB> \xA8\xAD |0
+<U8EAC> \xB0\x60 |0
+<U8EAD> \x90\x48 |0
+<U8EB0> \x99\xE8 |0
+<U8EB2> \xB8\xFA |0
+<U8EB6> \x90\x49 |0
+<U8EB9> \x8C\xBA |0
+<U8EBA> \xBD\xF6 |0
+<U8EBC> \x90\xB1 |0
+<U8EBD> \xEB\xC8 |0
+<U8EC0> \xC2\xDF |0
+<U8EC2> \xF3\x55 |0
+<U8EC3> \x90\x4A |0
+<U8EC9> \xF9\xAC |0
+<U8ECA> \xA8\xAE |0
+<U8ECB> \xAA\xEE |0
+<U8ECC> \xAD\x79 |0
+<U8ECD> \xAD\x78 |0
+<U8ECE> \x99\xEA |0
+<U8ECF> \xB0\x63 |0
+<U8ED1> \xD3\xE8 |0
+<U8ED2> \xB0\x61 |0
+<U8ED3> \xD3\xE9 |0
+<U8ED4> \xB0\x62 |0
+<U8ED7> \xD7\xDF |0
+<U8ED8> \xD7\xDB |0
+<U8EDA> \x9B\xD1 |0
+<U8EDB> \xB3\x6D |0
+<U8EDC> \xD7\xDE |0
+<U8EDD> \xD7\xDD |0
+<U8EDE> \xD7\xDC |0
+<U8EDF> \xB3\x6E |0
+<U8EE0> \xD7\xE0 |0
+<U8EE1> \xD7\xE1 |0
+<U8EE2> \x99\xEB |0
+<U8EE4> \x99\xEC |0
+<U8EE5> \xDC\x43 |0
+<U8EE6> \xDC\x41 |0
+<U8EE7> \xDC\x45 |0
+<U8EE8> \xDC\x46 |0
+<U8EE9> \xDC\x4C |0
+<U8EEB> \xDC\x48 |0
+<U8EEC> \xDC\x4A |0
+<U8EED> \x99\xED |0
+<U8EEE> \xDC\x42 |0
+<U8EEF> \xDB\xFC |0
+<U8EF1> \xDC\x49 |0
+<U8EF2> \x99\xEE |0
+<U8EF4> \xDC\x4B |0
+<U8EF5> \xDC\x44 |0
+<U8EF6> \xDC\x47 |0
+<U8EF7> \xDB\xFD |0
+<U8EF8> \xB6\x62 |0
+<U8EF9> \xDC\x40 |0
+<U8EFA> \xDB\xFE |0
+<U8EFB> \xB6\x61 |0
+<U8EFC> \xB6\x63 |0
+<U8EFE> \xB8\xFD |0
+<U8EFF> \xE0\x75 |0
+<U8F00> \xE0\x77 |0
+<U8F01> \xE0\x76 |0
+<U8F02> \xE0\x7B |0
+<U8F03> \xB8\xFB |0
+<U8F05> \xE0\x78 |0
+<U8F06> \xE0\x74 |0
+<U8F07> \xE0\x79 |0
+<U8F08> \xE0\x7A |0
+<U8F09> \xB8\xFC |0
+<U8F0A> \xB8\xFE |0
+<U8F0B> \xE0\x7C |0
+<U8F0D> \xE4\x67 |0
+<U8F0E> \xE4\x66 |0
+<U8F10> \xE4\x64 |0
+<U8F11> \xE4\x65 |0
+<U8F12> \xBB\xB3 |0
+<U8F13> \xBB\xB5 |0
+<U8F14> \xBB\xB2 |0
+<U8F15> \xBB\xB4 |0
+<U8F16> \xE8\x4D |0
+<U8F17> \xE8\x4E |0
+<U8F18> \xE8\x49 |0
+<U8F19> \x90\x4C |0
+<U8F1A> \xE8\x4A |0
+<U8F1B> \xBD\xF8 |0
+<U8F1C> \xBD\xFD |0
+<U8F1D> \xBD\xF7 |0
+<U8F1E> \xBD\xFE |0
+<U8F1F> \xBD\xF9 |0
+<U8F20> \xE8\x4B |0
+<U8F23> \xE8\x4C |0
+<U8F24> \xE8\x48 |0
+<U8F25> \xBE\x40 |0
+<U8F26> \xBD\xFB |0
+<U8F29> \xBD\xFA |0
+<U8F2A> \xBD\xFC |0
+<U8F2C> \xE8\x47 |0
+<U8F2D> \x90\x4D |0
+<U8F2E> \xEB\xCA |0
+<U8F2F> \xBF\xE8 |0
+<U8F30> \x95\xCB |0
+<U8F32> \xEB\xCC |0
+<U8F33> \xBF\xEA |0
+<U8F34> \xEB\xCF |0
+<U8F35> \xEB\xCB |0
+<U8F36> \xEB\xC9 |0
+<U8F37> \xEB\xCE |0
+<U8F38> \xBF\xE9 |0
+<U8F39> \xEB\xCD |0
+<U8F3B> \xBF\xE7 |0
+<U8F3E> \xC1\xD3 |0
+<U8F3F> \xC1\xD6 |0
+<U8F40> \xEE\xC1 |0
+<U8F41> \x97\xE2 |0
+<U8F42> \xC1\xD4 |0
+<U8F43> \xEE\xC0 |0
+<U8F44> \xC1\xD2 |0
+<U8F45> \xC1\xD5 |0
+<U8F46> \xF1\x46 |0
+<U8F47> \xF1\x47 |0
+<U8F48> \xF1\x48 |0
+<U8F49> \xC2\xE0 |0
+<U8F4A> \x95\xCC |0
+<U8F4B> \xF1\x49 |0
+<U8F4D> \xC2\xE1 |0
+<U8F4E> \xC3\xE2 |0
+<U8F4F> \xF3\x58 |0
+<U8F50> \xF3\x59 |0
+<U8F51> \xF3\x57 |0
+<U8F52> \xF3\x56 |0
+<U8F53> \xF3\x5A |0
+<U8F54> \xC3\xE1 |0
+<U8F55> \xF4\xDD |0
+<U8F56> \xF4\xDB |0
+<U8F57> \xF4\xDC |0
+<U8F58> \xF4\xDE |0
+<U8F59> \xF4\xDA |0
+<U8F5A> \xF4\xDF |0
+<U8F5B> \xF6\x58 |0
+<U8F5C> \x9F\x78 |0
+<U8F5D> \xF6\x59 |0
+<U8F5E> \xF6\x57 |0
+<U8F5F> \xC5\x46 |0
+<U8F60> \xF7\x64 |0
+<U8F61> \xC5\xAF |0
+<U8F62> \xF7\x65 |0
+<U8F63> \xF8\x48 |0
+<U8F64> \xF8\x47 |0
+<U8F66> \x89\x7C |0
+<U8F67> \x89\x7D |0
+<U8F6E> \x89\x7E |0
+<U8F93> \x99\x5D |0
+<U8F9B> \xA8\xAF |0
+<U8F9C> \xB6\x64 |0
+<U8F9F> \xB9\x40 |0
+<U8FA0> \x9B\x5A |0
+<U8FA3> \xBB\xB6 |0
+<U8FA5> \x90\x50 |0
+<U8FA6> \xBF\xEC |0
+<U8FA7> \x8C\x4F |0
+<U8FA8> \xBF\xEB |0
+<U8FAD> \xC3\xE3 |0
+<U8FAE> \xC4\x7C |0
+<U8FAF> \xC5\x47 |0
+<U8FB0> \xA8\xB0 |0
+<U8FB1> \xB0\x64 |0
+<U8FB2> \xB9\x41 |0
+<U8FB3> \x90\x54 |0
+<U8FB4> \xF3\x5B |0
+<U8FB5> \xC6\xD6 |0
+<U8FB6> \x9A\xA8 |0
+<U8FB7> \x99\xEF |0
+<U8FB8> \xFE\xEB |0
+<U8FB9> \x9D\xA3 |0
+<U8FBA> \x9D\xA1 |0
+<U8FBB> \x99\x43 |0
+<U8FBC> \x99\x45 |0
+<U8FBE> \x9D\x7D |0
+<U8FBF> \xCB\xA6 |0
+<U8FC1> \x99\xF0 |0
+<U8FC2> \xA8\xB1 |0
+<U8FC4> \xA8\xB4 |0
+<U8FC5> \xA8\xB3 |0
+<U8FC6> \xA8\xB2 |0
+<U8FC9> \xCB\xA5 |0
+<U8FCA> \x99\xF1 |0
+<U8FCB> \xCD\xCD |0
+<U8FCC> \x99\xF2 |0
+<U8FCD> \xCD\xCF |0
+<U8FCE> \xAA\xEF |0
+<U8FCF> \x8C\xBC |0
+<U8FD0> \x9D\x60 |0
+<U8FD1> \xAA\xF1 |0
+<U8FD2> \xCD\xCC |0
+<U8FD3> \xCD\xCE |0
+<U8FD4> \xAA\xF0 |0
+<U8FD5> \xCD\xD1 |0
+<U8FD6> \xCD\xD0 |0
+<U8FD7> \xCD\xD2 |0
+<U8FDA> \xA0\xA3 |0
+<U8FE0> \xD0\xB6 |0
+<U8FE1> \xD0\xB4 |0
+<U8FE2> \xAD\x7C |0
+<U8FE3> \xD0\xB3 |0
+<U8FE4> \xAD\xA3 |0
+<U8FE5> \xAD\x7E |0
+<U8FE6> \xAD\x7B |0
+<U8FE8> \xAD\xA4 |0
+<U8FEA> \xAD\x7D |0
+<U8FEB> \xAD\xA2 |0
+<U8FED> \xAD\xA1 |0
+<U8FEE> \xD0\xB5 |0
+<U8FF0> \xAD\x7A |0
+<U8FF4> \xB0\x6A |0
+<U8FF5> \xD3\xEB |0
+<U8FF6> \xD3\xF1 |0
+<U8FF7> \xB0\x67 |0
+<U8FF8> \xB0\x6E |0
+<U8FF9> \x90\x5B |0
+<U8FFA> \xB0\x69 |0
+<U8FFB> \xD3\xEE |0
+<U8FFC> \xD3\xF0 |0
+<U8FFD> \xB0\x6C |0
+<U8FFE> \xD3\xEA |0
+<U8FFF> \xD3\xED |0
+<U9000> \xB0\x68 |0
+<U9001> \xB0\x65 |0
+<U9002> \xD3\xEC |0
+<U9003> \xB0\x6B |0
+<U9004> \xD3\xEF |0
+<U9005> \xB0\x6D |0
+<U9006> \xB0\x66 |0
+<U9008> \x9E\xDB |0
+<U900B> \xD7\xE3 |0
+<U900C> \xD7\xE6 |0
+<U900D> \xB3\x70 |0
+<U900F> \xB3\x7A |0
+<U9010> \xB3\x76 |0
+<U9011> \xD7\xE4 |0
+<U9012> \x9D\x79 |0
+<U9014> \xB3\x7E |0
+<U9015> \xB3\x77 |0
+<U9016> \xB3\x7C |0
+<U9017> \xB3\x72 |0
+<U9019> \xB3\x6F |0
+<U901A> \xB3\x71 |0
+<U901B> \xB3\x7D |0
+<U901C> \xD7\xE5 |0
+<U901D> \xB3\x75 |0
+<U901E> \xB3\x78 |0
+<U901F> \xB3\x74 |0
+<U9020> \xB3\x79 |0
+<U9021> \xD7\xE7 |0
+<U9022> \xB3\x7B |0
+<U9023> \xB3\x73 |0
+<U9024> \xD7\xE2 |0
+<U902D> \xDC\x4D |0
+<U902E> \xB6\x65 |0
+<U902F> \xDC\x4F |0
+<U9031> \xB6\x67 |0
+<U9032> \xB6\x69 |0
+<U9033> \x99\xF3 |0
+<U9034> \xDC\x4E |0
+<U9035> \xB6\x66 |0
+<U9036> \xB6\x6A |0
+<U9037> \x90\x62 |0
+<U9038> \xB6\x68 |0
+<U903C> \xB9\x47 |0
+<U903D> \xE0\xA3 |0
+<U903E> \xB9\x4F |0
+<U903F> \xE0\x7E |0
+<U9041> \xB9\x50 |0
+<U9042> \xB9\x45 |0
+<U9044> \xE0\xA1 |0
+<U9047> \xB9\x4A |0
+<U9049> \xE0\xA2 |0
+<U904A> \xB9\x43 |0
+<U904B> \xB9\x42 |0
+<U904C> \x9F\x55 |0
+<U904D> \xB9\x4D |0
+<U904E> \xB9\x4C |0
+<U904F> \xB9\x4B |0
+<U9050> \xB9\x49 |0
+<U9051> \xB9\x4E |0
+<U9052> \xE0\x7D |0
+<U9053> \xB9\x44 |0
+<U9054> \xB9\x46 |0
+<U9055> \xB9\x48 |0
+<U9056> \x9B\xF9 |0
+<U9058> \xBB\xB8 |0
+<U9059> \xBB\xBB |0
+<U905B> \xBB\xBF |0
+<U905C> \xBB\xB9 |0
+<U905D> \xBB\xBE |0
+<U905E> \xBB\xBC |0
+<U9060> \xBB\xB7 |0
+<U9061> \x90\x65 |0
+<U9062> \xBB\xBD |0
+<U9063> \xBB\xBA |0
+<U9064> \x96\xE0 |0
+<U9067> \xE8\x52 |0
+<U9068> \xBE\x43 |0
+<U9069> \xBE\x41 |0
+<U906B> \xE8\x53 |0
+<U906C> \x98\xBE |0
+<U906D> \xBE\x44 |0
+<U906E> \xBE\x42 |0
+<U906F> \xE8\x51 |0
+<U9070> \xE8\x50 |0
+<U9072> \xBF\xF0 |0
+<U9073> \xE8\x4F |0
+<U9074> \xBF\xEE |0
+<U9075> \xBF\xED |0
+<U9076> \xEB\xD0 |0
+<U9077> \xBE\x45 |0
+<U9078> \xBF\xEF |0
+<U9079> \xEB\xD1 |0
+<U907A> \xBF\xF2 |0
+<U907B> \xEB\xD2 |0
+<U907C> \xBF\xF1 |0
+<U907D> \xC1\xD8 |0
+<U907E> \xEE\xC3 |0
+<U907F> \xC1\xD7 |0
+<U9080> \xC1\xDC |0
+<U9081> \xC1\xDA |0
+<U9082> \xC1\xDB |0
+<U9083> \xC2\xE3 |0
+<U9084> \xC1\xD9 |0
+<U9085> \xEE\xC2 |0
+<U9086> \xEB\xD3 |0
+<U9087> \xC2\xE2 |0
+<U9088> \xC2\xE4 |0
+<U908A> \xC3\xE4 |0
+<U908B> \xC3\xE5 |0
+<U908D> \xF4\xE0 |0
+<U908F> \xC5\xDE |0
+<U9090> \xC5\xDD |0
+<U9091> \xA8\xB6 |0
+<U9094> \xCA\x55 |0
+<U9095> \xB0\x6F |0
+<U9097> \xCA\x52 |0
+<U9098> \xCA\x53 |0
+<U9099> \xCA\x51 |0
+<U909B> \xCA\x54 |0
+<U909E> \xCB\xAA |0
+<U909F> \xCB\xA7 |0
+<U90A0> \xCB\xAC |0
+<U90A1> \xCB\xA8 |0
+<U90A2> \xA8\xB7 |0
+<U90A3> \xA8\xBA |0
+<U90A5> \xCB\xA9 |0
+<U90A6> \xA8\xB9 |0
+<U90A7> \xCB\xAB |0
+<U90A8> \x90\x68 |0
+<U90AA> \xA8\xB8 |0
+<U90AE> \x90\x6C |0
+<U90AF> \xCD\xD5 |0
+<U90B0> \xCD\xD7 |0
+<U90B1> \xAA\xF4 |0
+<U90B2> \xCD\xD3 |0
+<U90B3> \xCD\xD6 |0
+<U90B4> \xCD\xD4 |0
+<U90B5> \xAA\xF2 |0
+<U90B6> \xAA\xF5 |0
+<U90B8> \xAA\xF3 |0
+<U90BB> \x95\xD8 |0
+<U90BD> \xD0\xB8 |0
+<U90BE> \xD0\xBC |0
+<U90BF> \xD0\xB9 |0
+<U90C1> \xAD\xA7 |0
+<U90C3> \xAD\xA8 |0
+<U90C4> \x90\x6A |0
+<U90C5> \xD0\xBB |0
+<U90C7> \xD0\xBD |0
+<U90C8> \xD0\xBF |0
+<U90CA> \xAD\xA5 |0
+<U90CB> \xD0\xBE |0
+<U90CE> \xAD\xA6 |0
+<U90D4> \xD7\xEE |0
+<U90D5> \xD0\xBA |0
+<U90D6> \xD3\xF2 |0
+<U90D7> \xD3\xFB |0
+<U90D8> \xD3\xF9 |0
+<U90D9> \xD3\xF4 |0
+<U90DA> \xD3\xF5 |0
+<U90DB> \xD3\xFA |0
+<U90DC> \xD3\xFC |0
+<U90DD> \xB0\x71 |0
+<U90DF> \xD3\xF7 |0
+<U90E0> \xD3\xF3 |0
+<U90E1> \xB0\x70 |0
+<U90E2> \xB0\x72 |0
+<U90E3> \xD3\xF6 |0
+<U90E4> \xD3\xFD |0
+<U90E5> \xD3\xF8 |0
+<U90E8> \xB3\xA1 |0
+<U90E9> \xD7\xF1 |0
+<U90EA> \xD7\xE9 |0
+<U90EB> \xD7\xEF |0
+<U90EC> \xD7\xF0 |0
+<U90ED> \xB3\xA2 |0
+<U90EF> \xD7\xE8 |0
+<U90F0> \xD7\xEA |0
+<U90F1> \xD0\xB7 |0
+<U90F2> \xD7\xEC |0
+<U90F3> \xD7\xED |0
+<U90F4> \xD7\xEB |0
+<U90F5> \xB6\x6C |0
+<U90F9> \xDC\x56 |0
+<U90FA> \xEB\xD4 |0
+<U90FB> \xDC\x57 |0
+<U90FC> \xDC\x54 |0
+<U90FD> \xB3\xA3 |0
+<U90FE> \xB6\x6E |0
+<U90FF> \xDC\x53 |0
+<U9100> \xDC\x59 |0
+<U9101> \xDC\x58 |0
+<U9102> \xB6\x6B |0
+<U9103> \xDC\x5C |0
+<U9104> \xDC\x52 |0
+<U9105> \xDC\x5B |0
+<U9106> \xDC\x50 |0
+<U9107> \xDC\x5A |0
+<U9108> \xDC\x55 |0
+<U9109> \xB6\x6D |0
+<U910B> \xE0\xAA |0
+<U910D> \xE0\xA5 |0
+<U910E> \xE0\xAB |0
+<U910F> \xE0\xA6 |0
+<U9110> \xE0\xA4 |0
+<U9111> \xE0\xA7 |0
+<U9112> \xB9\x51 |0
+<U9114> \xE0\xA9 |0
+<U9116> \xE0\xA8 |0
+<U9117> \xB9\x52 |0
+<U9118> \xBB\xC1 |0
+<U9119> \xBB\xC0 |0
+<U911A> \xE4\x6E |0
+<U911B> \xE4\x71 |0
+<U911C> \xE4\x69 |0
+<U911D> \xE4\x6D |0
+<U911E> \xBB\xC2 |0
+<U911F> \xE4\x6C |0
+<U9120> \xE4\x6A |0
+<U9121> \xE4\x70 |0
+<U9122> \xE4\x6B |0
+<U9123> \xE4\x68 |0
+<U9124> \xE4\x6F |0
+<U9126> \xE8\x59 |0
+<U9127> \xBE\x48 |0
+<U9128> \xF1\x4A |0
+<U9129> \xE8\x56 |0
+<U912A> \xE8\x57 |0
+<U912B> \xE8\x55 |0
+<U912C> \xDC\x51 |0
+<U912D> \xBE\x47 |0
+<U912E> \xE8\x5A |0
+<U912F> \xE8\x54 |0
+<U9130> \xBE\x46 |0
+<U9131> \xBE\x49 |0
+<U9132> \xE8\x58 |0
+<U9133> \xEB\xD5 |0
+<U9134> \xBF\xF3 |0
+<U9135> \xEB\xD6 |0
+<U9136> \xEB\xD7 |0
+<U9138> \xEE\xC4 |0
+<U9139> \xC1\xDD |0
+<U913A> \xF1\x4B |0
+<U913B> \xF1\x4C |0
+<U913E> \xF1\x4D |0
+<U913F> \xF3\x5D |0
+<U9140> \xF3\x5C |0
+<U9141> \xF4\xE2 |0
+<U9143> \xF4\xE1 |0
+<U9144> \xF6\x5B |0
+<U9145> \xF6\x5C |0
+<U9146> \xF6\x5A |0
+<U9147> \xF7\x66 |0
+<U9148> \xC5\xB0 |0
+<U9149> \xA8\xBB |0
+<U914A> \xAD\xAA |0
+<U914B> \xAD\xA9 |0
+<U914C> \xB0\x75 |0
+<U914D> \xB0\x74 |0
+<U914E> \xD4\x40 |0
+<U914F> \xD4\x41 |0
+<U9150> \xD3\xFE |0
+<U9151> \x9F\xB2 |0
+<U9152> \xB0\x73 |0
+<U9153> \xD7\xF5 |0
+<U9155> \xD7\xF6 |0
+<U9156> \xD7\xF2 |0
+<U9157> \xB3\xA4 |0
+<U9158> \xD7\xF3 |0
+<U9159> \x9F\xAE |0
+<U915A> \xD7\xF4 |0
+<U915C> \x9F\xB0 |0
+<U915E> \x89\xAD |0
+<U915F> \xDC\x5F |0
+<U9160> \xDC\x61 |0
+<U9161> \xDC\x5D |0
+<U9162> \xDC\x60 |0
+<U9163> \xB6\x6F |0
+<U9164> \xDC\x5E |0
+<U9165> \xB6\x70 |0
+<U9167> \x90\x6E |0
+<U9168> \xDD\x73 |0
+<U9169> \xB9\x55 |0
+<U916A> \xB9\x54 |0
+<U916C> \xB9\x53 |0
+<U916E> \xE0\xAC |0
+<U916F> \xE0\xAD |0
+<U9170> \x9E\x71 |0
+<U9172> \xE4\x73 |0
+<U9173> \xE4\x75 |0
+<U9174> \xBB\xC6 |0
+<U9175> \xBB\xC3 |0
+<U9176> \x9E\x4A |0
+<U9177> \xBB\xC5 |0
+<U9178> \xBB\xC4 |0
+<U9179> \xE4\x74 |0
+<U917A> \xE4\x72 |0
+<U917C> \x9F\xDC |0
+<U9180> \xE8\x61 |0
+<U9181> \xE8\x5E |0
+<U9182> \xE8\x5F |0
+<U9183> \xBE\x4D |0
+<U9184> \xE8\x60 |0
+<U9185> \xE8\x5B |0
+<U9186> \xE8\x5C |0
+<U9187> \xBE\x4A |0
+<U9189> \xBE\x4B |0
+<U918A> \xE8\x5D |0
+<U918B> \xBE\x4C |0
+<U918C> \x89\xAB |0
+<U918D> \xEB\xDB |0
+<U918E> \x9F\xB8 |0
+<U918F> \xEB\xDC |0
+<U9190> \xEB\xD9 |0
+<U9191> \xEB\xDA |0
+<U9192> \xBF\xF4 |0
+<U9193> \xEB\xD8 |0
+<U9199> \xEE\xC8 |0
+<U919A> \xEE\xC5 |0
+<U919B> \xEE\xC7 |0
+<U919C> \xC1\xE0 |0
+<U919D> \xEE\xCB |0
+<U919E> \xC1\xDF |0
+<U919F> \xEE\xC9 |0
+<U91A0> \xEE\xCC |0
+<U91A1> \xEE\xCA |0
+<U91A2> \xEE\xC6 |0
+<U91A3> \xC1\xDE |0
+<U91A5> \xF1\x4F |0
+<U91A7> \xF1\x50 |0
+<U91A8> \xF1\x4E |0
+<U91A9> \x90\x70 |0
+<U91AA> \xF1\x52 |0
+<U91AB> \xC2\xE5 |0
+<U91AC> \xC2\xE6 |0
+<U91AD> \xF3\x5F |0
+<U91AE> \xC3\xE7 |0
+<U91AF> \xF1\x51 |0
+<U91B0> \xF3\x5E |0
+<U91B1> \xC3\xE6 |0
+<U91B2> \xF4\xE5 |0
+<U91B3> \xF4\xE6 |0
+<U91B4> \xC4\xBF |0
+<U91B5> \xF4\xE4 |0
+<U91B6> \x8B\x63 |0
+<U91B7> \xF4\xE3 |0
+<U91B9> \xF6\x5D |0
+<U91BA> \xC5\x48 |0
+<U91BB> \x95\xDC |0
+<U91BC> \xF8\x49 |0
+<U91BD> \xF8\xC8 |0
+<U91BE> \xF8\xC7 |0
+<U91C0> \xC6\x43 |0
+<U91C1> \xC6\x5D |0
+<U91C2> \xF8\xC9 |0
+<U91C3> \xF9\x71 |0
+<U91C4> \x90\x71 |0
+<U91C5> \xC6\x6F |0
+<U91C6> \xA8\xBC |0
+<U91C7> \xAA\xF6 |0
+<U91C9> \xB9\x56 |0
+<U91CB> \xC4\xC0 |0
+<U91CC> \xA8\xBD |0
+<U91CD> \xAD\xAB |0
+<U91CE> \xB3\xA5 |0
+<U91CF> \xB6\x71 |0
+<U91D0> \xC2\xE7 |0
+<U91D1> \xAA\xF7 |0
+<U91D3> \xD0\xC1 |0
+<U91D4> \xD0\xC0 |0
+<U91D5> \xD4\x42 |0
+<U91D6> \xFC\x5E |0
+<U91D7> \xB0\x78 |0
+<U91D8> \xB0\x76 |0
+<U91D9> \xB0\x7A |0
+<U91DA> \xD4\x44 |0
+<U91DC> \xB0\x79 |0
+<U91DD> \xB0\x77 |0
+<U91DF> \x89\x49 |0
+<U91E2> \xD4\x43 |0
+<U91E3> \xB3\xA8 |0
+<U91E4> \xD7\xFC |0
+<U91E5> \x96\x5B |0
+<U91E6> \xB3\xA7 |0
+<U91E7> \xB3\xA9 |0
+<U91E8> \xD8\x42 |0
+<U91E9> \xB3\xAB |0
+<U91EA> \xD7\xFE |0
+<U91EB> \xD8\x40 |0
+<U91EC> \xD7\xF7 |0
+<U91ED> \xB3\xAA |0
+<U91EE> \xD8\x43 |0
+<U91F1> \xD7\xF9 |0
+<U91F3> \xD7\xFA |0
+<U91F4> \xD7\xF8 |0
+<U91F5> \xB3\xA6 |0
+<U91F6> \x8C\x50 |0
+<U91F7> \xD8\x41 |0
+<U91F8> \xD7\xFB |0
+<U91F9> \xD7\xFD |0
+<U91FA> \x94\xA6 |0
+<U91FD> \xDC\x6D |0
+<U91FE> \x8F\xD5 |0
+<U91FF> \xDC\x6C |0
+<U9200> \xDC\x6A |0
+<U9201> \xDC\x62 |0
+<U9202> \xDC\x71 |0
+<U9203> \xDC\x65 |0
+<U9204> \xDC\x6F |0
+<U9205> \xDC\x76 |0
+<U9206> \xDC\x6E |0
+<U9207> \xB6\x79 |0
+<U9208> \x9E\x73 |0
+<U9209> \xB6\x75 |0
+<U920A> \xDC\x63 |0
+<U920C> \xDC\x69 |0
+<U920D> \xB6\x77 |0
+<U920E> \x90\x75 |0
+<U920F> \xDC\x68 |0
+<U9210> \xB6\x78 |0
+<U9211> \xB6\x7A |0
+<U9212> \xDC\x6B |0
+<U9213> \x99\xF7 |0
+<U9214> \xB6\x72 |0
+<U9215> \xB6\x73 |0
+<U9216> \xDC\x77 |0
+<U9217> \xDC\x75 |0
+<U9219> \xDC\x74 |0
+<U921A> \xDC\x66 |0
+<U921C> \xDC\x72 |0
+<U921E> \xB6\x76 |0
+<U9221> \x8C\xBF |0
+<U9223> \xB6\x74 |0
+<U9224> \xDC\x73 |0
+<U9225> \xDC\x64 |0
+<U9226> \xDC\x67 |0
+<U9227> \xDC\x70 |0
+<U9228> \x99\xF9 |0
+<U922A> \x96\x63 |0
+<U922B> \x95\xB9 |0
+<U922D> \xE4\xBA |0
+<U922E> \xE0\xB7 |0
+<U9230> \xE0\xB0 |0
+<U9231> \xE0\xC3 |0
+<U9232> \xE0\xCC |0
+<U9233> \xE0\xB3 |0
+<U9234> \xB9\x61 |0
+<U9235> \x94\xD4 |0
+<U9236> \xE0\xC0 |0
+<U9237> \xB9\x57 |0
+<U9238> \xB9\x59 |0
+<U9239> \xB9\x65 |0
+<U923A> \xE0\xB1 |0
+<U923C> \xFC\xFA |0
+<U923D> \xB9\x5A |0
+<U923E> \xB9\x5C |0
+<U923F> \xB9\x66 |0
+<U9240> \xB9\x5B |0
+<U9241> \x90\x77 |0
+<U9244> \x90\xAB |0
+<U9245> \xB9\x64 |0
+<U9246> \xE0\xB9 |0
+<U9248> \xE0\xAE |0
+<U9249> \xB9\x62 |0
+<U924A> \xE0\xB8 |0
+<U924B> \xB9\x5E |0
+<U924C> \xE0\xCA |0
+<U924D> \xB9\x63 |0
+<U924E> \xE0\xC8 |0
+<U924F> \xE0\xBC |0
+<U9250> \xE0\xC6 |0
+<U9251> \xB9\x60 |0
+<U9252> \xE0\xAF |0
+<U9253> \xE0\xC9 |0
+<U9254> \xE0\xC4 |0
+<U9255> \x9D\x4D |0
+<U9256> \xE0\xCB |0
+<U9257> \xB9\x58 |0
+<U9258> \x99\xFA |0
+<U925A> \xB9\x67 |0
+<U925B> \xB9\x5D |0
+<U925D> \x92\xE3 |0
+<U925E> \xE0\xB5 |0
+<U925F> \x97\xBB |0
+<U9260> \xE0\xBD |0
+<U9261> \xE0\xC1 |0
+<U9262> \x90\x78 |0
+<U9263> \xE0\xC5 |0
+<U9264> \xB9\x5F |0
+<U9265> \xE0\xB4 |0
+<U9266> \xE0\xB2 |0
+<U9267> \xE0\xBE |0
+<U926B> \x99\xFB |0
+<U926C> \xE0\xBB |0
+<U926D> \xE0\xBA |0
+<U926E> \x97\xE0 |0
+<U926F> \xE0\xBF |0
+<U9270> \xE0\xC2 |0
+<U9272> \xE0\xC7 |0
+<U9276> \xE4\x78 |0
+<U9277> \x96\xDC |0
+<U9278> \xBB\xC7 |0
+<U9279> \xE4\xA4 |0
+<U927A> \xE4\x7A |0
+<U927B> \xBB\xCC |0
+<U927C> \xBB\xD0 |0
+<U927D> \xE4\xAD |0
+<U927E> \xE4\xB5 |0
+<U927F> \xE4\xA6 |0
+<U9280> \xBB\xC8 |0
+<U9281> \x9C\xA8 |0
+<U9282> \xE4\xAA |0
+<U9283> \xE0\xB6 |0
+<U9284> \x97\x72 |0
+<U9285> \xBB\xC9 |0
+<U9286> \xE4\xB1 |0
+<U9287> \xE4\xB6 |0
+<U9288> \xE4\xAE |0
+<U9289> \x94\x40 |0
+<U928A> \xE4\xB0 |0
+<U928B> \xE4\xB9 |0
+<U928C> \xE4\xB2 |0
+<U928D> \xE4\x7E |0
+<U928E> \xE4\xA9 |0
+<U928F> \x92\xF2 |0
+<U9291> \xBB\xD1 |0
+<U9293> \xBB\xCD |0
+<U9294> \xE4\x7C |0
+<U9295> \xE4\xAB |0
+<U9296> \xBB\xCB |0
+<U9297> \xE4\xA5 |0
+<U9298> \xBB\xCA |0
+<U9299> \xE4\xB3 |0
+<U929A> \xE4\xA2 |0
+<U929B> \xE4\x79 |0
+<U929C> \xBB\xCE |0
+<U929D> \xE4\xB8 |0
+<U92A0> \xE4\x7B |0
+<U92A1> \xE4\xAF |0
+<U92A2> \xE4\xAC |0
+<U92A3> \xE4\xA7 |0
+<U92A4> \xE4\x77 |0
+<U92A5> \xE4\x76 |0
+<U92A6> \xE4\xA1 |0
+<U92A7> \xE4\xB4 |0
+<U92A8> \xBB\xCF |0
+<U92A9> \xE4\xB7 |0
+<U92AA> \xE4\x7D |0
+<U92AB> \xE4\xA3 |0
+<U92AC> \xBE\x52 |0
+<U92AE> \x99\xFD |0
+<U92B1> \x99\xFC |0
+<U92B2> \xBE\x5A |0
+<U92B3> \xBE\x55 |0
+<U92B4> \xE8\xA4 |0
+<U92B5> \xE8\xA1 |0
+<U92B6> \xE8\x67 |0
+<U92B7> \xBE\x50 |0
+<U92B9> \xF9\xD7 |0
+<U92BA> \x96\x4A |0
+<U92BB> \xBE\x4F |0
+<U92BC> \xBE\x56 |0
+<U92BE> \x96\xD8 |0
+<U92BF> \x99\xFE |0
+<U92C0> \xE8\x65 |0
+<U92C1> \xBE\x54 |0
+<U92C2> \xE8\x71 |0
+<U92C3> \xE8\x63 |0
+<U92C4> \xE8\x64 |0
+<U92C5> \xBE\x4E |0
+<U92C6> \xE8\xA3 |0
+<U92C7> \xBE\x58 |0
+<U92C8> \xE8\x74 |0
+<U92C9> \xE8\x79 |0
+<U92CA> \xE8\x73 |0
+<U92CB> \xEB\xEE |0
+<U92CC> \xE8\x6F |0
+<U92CD> \xE8\x77 |0
+<U92CE> \xE8\x75 |0
+<U92CF> \xE8\x68 |0
+<U92D0> \xE8\x62 |0
+<U92D1> \xE8\x7D |0
+<U92D2> \xBE\x57 |0
+<U92D3> \xE8\x7E |0
+<U92D4> \x90\x4B |0
+<U92D5> \xE8\x78 |0
+<U92D7> \xE8\x6D |0
+<U92D8> \xE8\x6B |0
+<U92D9> \xE8\x66 |0
+<U92DB> \xFA\x41 |0
+<U92DD> \xE8\x6E |0
+<U92DE> \xE8\x7B |0
+<U92DF> \xE8\x6A |0
+<U92E0> \xE8\x7A |0
+<U92E1> \xE8\xA2 |0
+<U92E3> \x9A\x40 |0
+<U92E4> \xBE\x53 |0
+<U92E5> \x97\x5B |0
+<U92E6> \xE8\x76 |0
+<U92E7> \xE8\x7C |0
+<U92E8> \xE8\x72 |0
+<U92E9> \xE8\x6C |0
+<U92EA> \xBE\x51 |0
+<U92EB> \x9A\x41 |0
+<U92EC> \x91\xDD |0
+<U92EE> \xE4\xA8 |0
+<U92EF> \xE8\x70 |0
+<U92F0> \xBE\x59 |0
+<U92F1> \xE8\x69 |0
+<U92F2> \x93\xFC |0
+<U92F3> \x9A\x42 |0
+<U92F4> \x9A\x43 |0
+<U92F6> \x96\x59 |0
+<U92F7> \xEB\xF4 |0
+<U92F8> \xBF\xF7 |0
+<U92F9> \xEB\xF3 |0
+<U92FA> \xEB\xF0 |0
+<U92FB> \xEC\x44 |0
+<U92FC> \xBF\xFB |0
+<U92FD> \x9A\x44 |0
+<U92FE> \xEC\x41 |0
+<U92FF> \xEB\xF8 |0
+<U9300> \xEC\x43 |0
+<U9301> \xEB\xE9 |0
+<U9302> \xEB\xF6 |0
+<U9303> \x90\x51 |0
+<U9304> \xBF\xFD |0
+<U9306> \xEB\xE1 |0
+<U9307> \x94\xBF |0
+<U9308> \xEB\xDF |0
+<U9309> \xEC\x42 |0
+<U930B> \xEC\x40 |0
+<U930C> \xEB\xFE |0
+<U930D> \xEB\xED |0
+<U930E> \xEB\xEC |0
+<U930F> \xEB\xE2 |0
+<U9310> \xC0\x40 |0
+<U9312> \xEB\xE8 |0
+<U9313> \xEB\xF2 |0
+<U9314> \xEB\xFD |0
+<U9315> \xC0\x43 |0
+<U9316> \xEC\x45 |0
+<U9318> \xC1\xE8 |0
+<U9319> \xC0\x45 |0
+<U931A> \xBF\xFE |0
+<U931B> \xEB\xE6 |0
+<U931D> \xEB\xEF |0
+<U931E> \xEB\xDE |0
+<U931F> \xEB\xE0 |0
+<U9320> \xBF\xF5 |0
+<U9321> \xC0\x42 |0
+<U9322> \xBF\xFA |0
+<U9323> \xEB\xE7 |0
+<U9324> \xEB\xF7 |0
+<U9325> \xEB\xF1 |0
+<U9326> \xC0\x41 |0
+<U9327> \xEB\xDD |0
+<U9328> \xC1\xE3 |0
+<U9329> \xEB\xF9 |0
+<U932A> \xEB\xFC |0
+<U932B> \xBF\xFC |0
+<U932C> \x90\xA2 |0
+<U932D> \xEB\xEB |0
+<U932E> \xC0\x44 |0
+<U932F> \xBF\xF9 |0
+<U9330> \x9C\xAB |0
+<U9331> \x97\x76 |0
+<U9333> \xBF\xF8 |0
+<U9334> \xEB\xF5 |0
+<U9335> \xEB\xFB |0
+<U9336> \xBF\xF6 |0
+<U9338> \xEB\xE4 |0
+<U9339> \xEB\xFA |0
+<U933C> \xEB\xE5 |0
+<U9340> \xFC\x55 |0
+<U9341> \xFE\x45 |0
+<U9342> \x94\xA8 |0
+<U9343> \x9A\x45 |0
+<U9344> \xFA\x4B |0
+<U9345> \x9D\xE1 |0
+<U9346> \xEB\xEA |0
+<U9347> \xEE\xD2 |0
+<U9348> \x96\xD9 |0
+<U9349> \xEE\xD7 |0
+<U934A> \xC1\xE5 |0
+<U934B> \xC1\xE7 |0
+<U934C> \xEE\xDD |0
+<U934D> \xC1\xE1 |0
+<U934E> \xEE\xEC |0
+<U934F> \xEE\xE3 |0
+<U9350> \xEE\xD8 |0
+<U9351> \xEE\xD9 |0
+<U9352> \xEE\xE2 |0
+<U9354> \xC1\xEE |0
+<U9355> \xEE\xE1 |0
+<U9356> \xEE\xD1 |0
+<U9357> \xEE\xE0 |0
+<U9358> \xEE\xD4 |0
+<U9359> \xEE\xED |0
+<U935A> \xC1\xED |0
+<U935B> \xC1\xEB |0
+<U935C> \xEE\xD5 |0
+<U935E> \xEE\xE8 |0
+<U935F> \x97\x74 |0
+<U9360> \xEE\xDA |0
+<U9361> \xEE\xE7 |0
+<U9362> \xFD\xF5 |0
+<U9363> \xEE\xE9 |0
+<U9364> \xEE\xD0 |0
+<U9365> \xC1\xE6 |0
+<U9366> \x92\xE5 |0
+<U9367> \xEE\xEA |0
+<U9368> \x96\x45 |0
+<U9369> \x91\xDA |0
+<U936A> \xEE\xDE |0
+<U936B> \x90\xA3 |0
+<U936C> \xC1\xEA |0
+<U936D> \xEE\xDB |0
+<U936E> \xA0\x5F |0
+<U9370> \xC1\xEC |0
+<U9371> \xEE\xE4 |0
+<U9373> \x90\xAF |0
+<U9374> \x97\xBF |0
+<U9375> \xC1\xE4 |0
+<U9376> \xEE\xD6 |0
+<U9377> \xEE\xE5 |0
+<U9378> \x91\x4C |0
+<U9379> \xEE\xDF |0
+<U937A> \xEB\xE3 |0
+<U937B> \xEE\xE6 |0
+<U937C> \xEE\xD3 |0
+<U937D> \x96\x7A |0
+<U937E> \xC1\xE9 |0
+<U9380> \xEE\xEB |0
+<U9381> \x91\xDE |0
+<U9382> \xC1\xE2 |0
+<U9383> \xEE\xCE |0
+<U9384> \x9A\x46 |0
+<U9385> \xFE\xB0 |0
+<U9386> \x97\x79 |0
+<U9387> \x94\x6C |0
+<U9388> \xF1\x60 |0
+<U9389> \xF1\x59 |0
+<U938A> \xC2\xE9 |0
+<U938C> \xF1\x54 |0
+<U938D> \xF1\x63 |0
+<U938E> \xF1\x5B |0
+<U938F> \xEE\xDC |0
+<U9390> \x98\x58 |0
+<U9391> \xF1\x65 |0
+<U9392> \xF1\x55 |0
+<U9394> \xC2\xE8 |0
+<U9395> \xF1\x5F |0
+<U9396> \xC2\xEA |0
+<U9397> \xC2\xF2 |0
+<U9398> \xC2\xF0 |0
+<U9399> \xF1\x61 |0
+<U939A> \xC2\xF1 |0
+<U939B> \xF1\x57 |0
+<U939C> \x92\x66 |0
+<U939D> \xF1\x58 |0
+<U939E> \xF1\x5D |0
+<U939F> \xF1\x62 |0
+<U93A0> \x93\xFB |0
+<U93A1> \xEE\xCD |0
+<U93A2> \xC2\xEB |0
+<U93A3> \xF1\x6A |0
+<U93A4> \xF1\x67 |0
+<U93A5> \xF1\x6B |0
+<U93A6> \xF1\x5E |0
+<U93A7> \xF1\x5A |0
+<U93A8> \xF1\x68 |0
+<U93A9> \xF3\x6A |0
+<U93AA> \xF1\x5C |0
+<U93AC> \xC2\xEE |0
+<U93AD> \x9A\x47 |0
+<U93AE> \xC2\xED |0
+<U93AF> \xEE\xCF |0
+<U93B0> \xC2\xEF |0
+<U93B1> \xF1\x64 |0
+<U93B2> \xF1\x66 |0
+<U93B3> \xC2\xEC |0
+<U93B4> \xF1\x69 |0
+<U93B5> \xF1\x53 |0
+<U93B7> \xF1\x56 |0
+<U93B8> \x97\x49 |0
+<U93BB> \x97\x48 |0
+<U93BD> \x93\x4A |0
+<U93BF> \x9C\xE2 |0
+<U93C0> \xF3\x73 |0
+<U93C2> \xF3\x63 |0
+<U93C3> \xC3\xEB |0
+<U93C4> \xF3\x71 |0
+<U93C6> \x92\x64 |0
+<U93C7> \xF3\x61 |0
+<U93C8> \xC3\xEC |0
+<U93CA> \xF3\x6C |0
+<U93CB> \x91\xDF |0
+<U93CC> \xF3\x68 |0
+<U93CD> \xC3\xF1 |0
+<U93CE> \xF3\x72 |0
+<U93CF> \xF3\x62 |0
+<U93D0> \xF3\x65 |0
+<U93D1> \xC3\xE9 |0
+<U93D2> \xF3\x74 |0
+<U93D3> \xFB\x79 |0
+<U93D4> \xF3\x6D |0
+<U93D5> \xF3\x70 |0
+<U93D6> \xC3\xEF |0
+<U93D7> \xC3\xF4 |0
+<U93D8> \xC3\xF2 |0
+<U93D9> \xF3\x69 |0
+<U93DA> \xF3\x64 |0
+<U93DB> \x96\xD7 |0
+<U93DC> \xC3\xED |0
+<U93DD> \xC3\xEE |0
+<U93DE> \xF3\x60 |0
+<U93DF> \xC3\xEA |0
+<U93E0> \x93\x43 |0
+<U93E1> \xC3\xE8 |0
+<U93E2> \xC3\xF0 |0
+<U93E3> \xF3\x6F |0
+<U93E4> \xC3\xF3 |0
+<U93E6> \xF3\x6B |0
+<U93E7> \xF3\x75 |0
+<U93E8> \xC3\xF5 |0
+<U93EC> \xF3\x67 |0
+<U93EE> \xF3\x6E |0
+<U93F0> \xFD\xCB |0
+<U93F1> \xFE\x7A |0
+<U93F3> \x91\xDB |0
+<U93F4> \x8C\x6A |0
+<U93F5> \xF4\xF3 |0
+<U93F6> \xF5\x42 |0
+<U93F7> \xF4\xF5 |0
+<U93F8> \xF4\xFC |0
+<U93F9> \xF3\x66 |0
+<U93FA> \xF4\xFA |0
+<U93FB> \xF4\xE9 |0
+<U93FC> \xF5\x40 |0
+<U93FD> \xC4\xC3 |0
+<U93FE> \xF4\xED |0
+<U93FF> \xF4\xFE |0
+<U9400> \xF4\xF4 |0
+<U9401> \x97\xAF |0
+<U9403> \xC4\xC2 |0
+<U9404> \x95\xDD |0
+<U9406> \xF5\x44 |0
+<U9407> \xF4\xF6 |0
+<U9408> \x93\x48 |0
+<U9409> \xF4\xFB |0
+<U940A> \xF4\xFD |0
+<U940B> \xF4\xE7 |0
+<U940C> \xF5\x41 |0
+<U940D> \xF4\xF2 |0
+<U940E> \xF4\xF7 |0
+<U940F> \xF4\xEB |0
+<U9410> \xF4\xEF |0
+<U9411> \xF5\x43 |0
+<U9412> \xF4\xF9 |0
+<U9413> \xF4\xE8 |0
+<U9414> \xF4\xEC |0
+<U9415> \xF4\xEE |0
+<U9416> \xF4\xF8 |0
+<U9417> \x9A\x4B |0
+<U9418> \xC4\xC1 |0
+<U9419> \xF4\xF1 |0
+<U941B> \xFC\x45 |0
+<U941D> \x9A\x4D |0
+<U9420> \xF4\xEA |0
+<U9424> \x91\xBC |0
+<U9425> \x90\xE2 |0
+<U9426> \x90\xB4 |0
+<U9427> \x95\xE1 |0
+<U9428> \xF4\xF0 |0
+<U9429> \xF6\x61 |0
+<U942A> \xF6\x66 |0
+<U942B> \xC5\x4F |0
+<U942C> \xF6\x68 |0
+<U942D> \x9A\x4E |0
+<U942E> \xC5\x49 |0
+<U9430> \xF6\x64 |0
+<U9431> \xF6\x6A |0
+<U9432> \xC5\x4E |0
+<U9433> \xC5\x4A |0
+<U9435> \xC5\x4B |0
+<U9436> \xF6\x60 |0
+<U9437> \xF6\x67 |0
+<U9438> \xC5\x4D |0
+<U9439> \xF6\x65 |0
+<U943A> \xC5\x4C |0
+<U943B> \xF6\x5F |0
+<U943C> \xF6\x63 |0
+<U943D> \xF6\x62 |0
+<U943E> \x9A\x4F |0
+<U943F> \xF6\x5E |0
+<U9440> \xF6\x69 |0
+<U9442> \xFE\x40 |0
+<U9443> \xFE\x43 |0
+<U9444> \xC5\xB1 |0
+<U9445> \xF7\x6D |0
+<U9446> \xF7\x70 |0
+<U9447> \xF7\x6C |0
+<U9448> \xF7\x6E |0
+<U9449> \xF7\x6F |0
+<U944A> \xF7\x69 |0
+<U944B> \xF7\x6A |0
+<U944C> \xF7\x67 |0
+<U944D> \x96\xDD |0
+<U944F> \xF7\x6B |0
+<U9450> \xF7\x68 |0
+<U9451> \xC5\xB2 |0
+<U9452> \xC5\xB3 |0
+<U9454> \x9A\x51 |0
+<U9455> \xF8\x4B |0
+<U9457> \xF8\x4D |0
+<U9458> \x96\xA7 |0
+<U945B> \x90\xB0 |0
+<U945D> \xF8\x4C |0
+<U945E> \xF8\x4E |0
+<U9460> \xC5\xE0 |0
+<U9462> \xF8\x4A |0
+<U9463> \xC5\xDF |0
+<U9464> \xC5\xE1 |0
+<U9465> \x9C\x4E |0
+<U9467> \x94\x43 |0
+<U9468> \xF8\xCB |0
+<U9469> \xF8\xCC |0
+<U946A> \xC6\x44 |0
+<U946B> \xF8\xCA |0
+<U946C> \x8E\xBA |0
+<U946D> \xF9\x53 |0
+<U946E> \xF9\x52 |0
+<U946F> \xF9\x54 |0
+<U9470> \xC6\x5F |0
+<U9471> \xF9\x55 |0
+<U9472> \xC6\x5E |0
+<U9473> \xF9\x56 |0
+<U9474> \xF9\x72 |0
+<U9475> \xF9\x75 |0
+<U9476> \xF9\x74 |0
+<U9477> \xC6\x68 |0
+<U9478> \xF9\x73 |0
+<U9479> \x9A\x52 |0
+<U947B> \xFC\xC1 |0
+<U947C> \xC6\x72 |0
+<U947D> \xC6\x70 |0
+<U947E> \xC6\x71 |0
+<U947F> \xC6\x77 |0
+<U9480> \xF9\xC0 |0
+<U9481> \xF9\xC1 |0
+<U9482> \xF9\xBF |0
+<U9483> \xF9\xC9 |0
+<U9485> \x8B\xE9 |0
+<U949F> \x9C\xAF |0
+<U94A2> \x8B\xFD |0
+<U94C1> \x9A\xBC |0
+<U94C3> \x9A\xB8 |0
+<U94DC> \x9A\xAE |0
+<U94F6> \x9A\xA7 |0
+<U952D> \x9A\x53 |0
+<U9547> \x9D\x74 |0
+<U9577> \xAA\xF8 |0
+<U9578> \x8B\xEA |0
+<U957A> \xD8\x44 |0
+<U957B> \xDC\x78 |0
+<U957C> \xE8\xA5 |0
+<U957D> \xF3\x76 |0
+<U957F> \x8B\xEB |0
+<U9580> \xAA\xF9 |0
+<U9582> \xAD\xAC |0
+<U9583> \xB0\x7B |0
+<U9585> \x90\xB2 |0
+<U9586> \xD8\x45 |0
+<U9588> \xD8\x46 |0
+<U9589> \xB3\xAC |0
+<U958B> \xB6\x7D |0
+<U958C> \xDC\x7A |0
+<U958D> \xDC\x79 |0
+<U958E> \xB6\xA3 |0
+<U958F> \xB6\x7C |0
+<U9590> \xDC\x7B |0
+<U9591> \xB6\x7E |0
+<U9592> \xB6\xA2 |0
+<U9593> \xB6\xA1 |0
+<U9594> \xB6\x7B |0
+<U9596> \x95\xE9 |0
+<U9597> \x95\xE8 |0
+<U9598> \xB9\x68 |0
+<U9599> \x95\xE6 |0
+<U959B> \xE0\xD0 |0
+<U959C> \xE0\xCE |0
+<U959E> \xE0\xCF |0
+<U959F> \xE0\xCD |0
+<U95A0> \x90\xB5 |0
+<U95A1> \xBB\xD2 |0
+<U95A2> \x9A\x54 |0
+<U95A3> \xBB\xD5 |0
+<U95A4> \xBB\xD7 |0
+<U95A5> \xBB\xD6 |0
+<U95A6> \x90\xB3 |0
+<U95A7> \x95\xE7 |0
+<U95A8> \xBB\xD3 |0
+<U95A9> \xBB\xD4 |0
+<U95AA> \x8B\x50 |0
+<U95AB> \xE8\xA7 |0
+<U95AC> \xE8\xA6 |0
+<U95AD> \xBE\x5B |0
+<U95AE> \xE8\xA8 |0
+<U95B0> \xE8\xA9 |0
+<U95B1> \xBE\x5C |0
+<U95B5> \xEC\x4D |0
+<U95B6> \xEC\x4B |0
+<U95B7> \xEE\xF3 |0
+<U95B9> \xEC\x49 |0
+<U95BA> \xEC\x4A |0
+<U95BB> \xC0\x46 |0
+<U95BC> \xEC\x46 |0
+<U95BD> \xEC\x4E |0
+<U95BE> \xEC\x48 |0
+<U95BF> \xEC\x4C |0
+<U95C0> \xEE\xEF |0
+<U95C3> \xEE\xF1 |0
+<U95C5> \xEE\xF2 |0
+<U95C6> \xC1\xF3 |0
+<U95C7> \xEE\xEE |0
+<U95C8> \xC1\xF2 |0
+<U95C9> \xEE\xF0 |0
+<U95CA> \xC1\xEF |0
+<U95CB> \xC1\xF0 |0
+<U95CC> \xC1\xF1 |0
+<U95CD> \xEC\x47 |0
+<U95D0> \xC2\xF5 |0
+<U95D1> \xF1\x6E |0
+<U95D2> \xF1\x6C |0
+<U95D3> \xF1\x6D |0
+<U95D4> \xC2\xF3 |0
+<U95D5> \xC2\xF6 |0
+<U95D6> \xC2\xF4 |0
+<U95DA> \xF3\x77 |0
+<U95DB> \xF3\x78 |0
+<U95DC> \xC3\xF6 |0
+<U95DE> \xF5\x45 |0
+<U95DF> \xF5\x47 |0
+<U95E0> \xF5\x46 |0
+<U95E1> \xC4\xC4 |0
+<U95E2> \xC5\x50 |0
+<U95E3> \xF6\x6D |0
+<U95E4> \xF6\x6C |0
+<U95E5> \xF6\x6B |0
+<U95E8> \x8B\xEC |0
+<U95F4> \x9A\x56 |0
+<U961C> \xAA\xFA |0
+<U961D> \x8B\xFB |0
+<U961E> \xC9\xAA |0
+<U9620> \xCA\x58 |0
+<U9621> \xA6\xE9 |0
+<U9622> \xCA\x56 |0
+<U9623> \xCA\x59 |0
+<U9624> \xCA\x57 |0
+<U9628> \xCB\xAE |0
+<U962A> \xA8\xC1 |0
+<U962C> \xA8\xC2 |0
+<U962D> \xCB\xB0 |0
+<U962E> \xA8\xBF |0
+<U962F> \xCB\xAF |0
+<U9630> \xCB\xAD |0
+<U9631> \xA8\xC0 |0
+<U9632> \xA8\xBE |0
+<U9633> \x9A\x57 |0
+<U9638> \xA0\xAA |0
+<U9639> \xCD\xD8 |0
+<U963A> \xCD\xDB |0
+<U963B> \xAA\xFD |0
+<U963C> \xCD\xDA |0
+<U963D> \xCD\xD9 |0
+<U963F> \xAA\xFC |0
+<U9640> \xAA\xFB |0
+<U9641> \x9F\xA6 |0
+<U9642> \xAB\x40 |0
+<U9643> \xCD\xDC |0
+<U9644> \xAA\xFE |0
+<U9645> \x99\xCC |0
+<U964A> \xD0\xC6 |0
+<U964B> \xAD\xAE |0
+<U964C> \xAD\xAF |0
+<U964D> \xAD\xB0 |0
+<U964E> \xD0\xC7 |0
+<U964F> \xD0\xC3 |0
+<U9650> \xAD\xAD |0
+<U9651> \xD0\xC4 |0
+<U9653> \xD0\xC5 |0
+<U9654> \xD0\xC2 |0
+<U9656> \x9C\x59 |0
+<U9658> \xB0\xA4 |0
+<U965B> \xB0\xA1 |0
+<U965C> \xD4\x45 |0
+<U965D> \xB0\xA2 |0
+<U965E> \xB0\xA5 |0
+<U965F> \xD4\x46 |0
+<U9661> \xB0\x7E |0
+<U9662> \xB0\x7C |0
+<U9663> \xB0\x7D |0
+<U9664> \xB0\xA3 |0
+<U9669> \x99\xB5 |0
+<U966A> \xB3\xAD |0
+<U966B> \xD8\x49 |0
+<U966C> \xB3\xB5 |0
+<U966D> \xD8\x48 |0
+<U966F> \xD8\x4B |0
+<U9670> \xB3\xB1 |0
+<U9671> \xD8\x4A |0
+<U9672> \xB6\xAB |0
+<U9673> \xB3\xAF |0
+<U9674> \xB3\xB2 |0
+<U9675> \xB3\xAE |0
+<U9676> \xB3\xB3 |0
+<U9677> \xB3\xB4 |0
+<U9678> \xB3\xB0 |0
+<U967B> \x90\xBE |0
+<U967C> \xD8\x47 |0
+<U967D> \xB6\xA7 |0
+<U967E> \xDC\x7D |0
+<U9680> \xDC\xA3 |0
+<U9681> \x9F\xAF |0
+<U9683> \xDC\xA2 |0
+<U9684> \xB6\xAC |0
+<U9685> \xB6\xA8 |0
+<U9686> \xB6\xA9 |0
+<U9687> \xDC\x7C |0
+<U9688> \xDC\x7E |0
+<U9689> \xDC\xA1 |0
+<U968A> \xB6\xA4 |0
+<U968B> \xB6\xA6 |0
+<U968D> \xB6\xAA |0
+<U968E> \xB6\xA5 |0
+<U968F> \x95\xF2 |0
+<U9691> \xE0\xD3 |0
+<U9692> \xE0\xD1 |0
+<U9693> \xE0\xD2 |0
+<U9694> \xB9\x6A |0
+<U9695> \xB9\x6B |0
+<U9696> \x90\xBF |0
+<U9697> \xE0\xD4 |0
+<U9698> \xB9\x69 |0
+<U9699> \xBB\xD8 |0
+<U969B> \xBB\xDA |0
+<U969C> \xBB\xD9 |0
+<U969E> \xE4\xBB |0
+<U96A1> \xE4\xBC |0
+<U96A2> \xE8\xAB |0
+<U96A3> \x90\xC1 |0
+<U96A4> \xE8\xAA |0
+<U96A5> \xFE\xE4 |0
+<U96A7> \xC0\x47 |0
+<U96A8> \xC0\x48 |0
+<U96A9> \xEC\x4F |0
+<U96AA> \xC0\x49 |0
+<U96AC> \xEE\xF6 |0
+<U96AE> \xEE\xF4 |0
+<U96B0> \xEE\xF5 |0
+<U96B1> \xC1\xF4 |0
+<U96B3> \xF1\x6F |0
+<U96B4> \xC3\xF7 |0
+<U96B6> \x90\xC4 |0
+<U96B8> \xC1\xF5 |0
+<U96B9> \xAB\x41 |0
+<U96BB> \xB0\xA6 |0
+<U96BC> \xD4\x47 |0
+<U96BD> \x90\xC7 |0
+<U96BF> \xD8\x4C |0
+<U96C0> \xB3\xB6 |0
+<U96C1> \xB6\xAD |0
+<U96C2> \xDC\xA4 |0
+<U96C3> \xDC\xA6 |0
+<U96C4> \xB6\xAF |0
+<U96C5> \xB6\xAE |0
+<U96C6> \xB6\xB0 |0
+<U96C7> \xB6\xB1 |0
+<U96C8> \xDC\xA5 |0
+<U96C9> \xB9\x6E |0
+<U96CA> \xB9\x6F |0
+<U96CB> \xB9\x6D |0
+<U96CC> \xBB\xDB |0
+<U96CD> \xB9\x6C |0
+<U96CE> \xE0\xD5 |0
+<U96D2> \xBB\xDC |0
+<U96D3> \xE8\xAC |0
+<U96D4> \xEC\x50 |0
+<U96D5> \xC0\x4A |0
+<U96D6> \xC1\xF6 |0
+<U96D7> \xF1\x70 |0
+<U96D8> \xF1\x74 |0
+<U96D9> \xC2\xF9 |0
+<U96DA> \xF1\x71 |0
+<U96DB> \xC2\xFA |0
+<U96DC> \xC2\xF8 |0
+<U96DD> \xF1\x75 |0
+<U96DE> \xC2\xFB |0
+<U96DF> \xF1\x73 |0
+<U96E1> \xF3\x79 |0
+<U96E2> \xC2\xF7 |0
+<U96E3> \xC3\xF8 |0
+<U96E5> \xF8\xCD |0
+<U96E8> \xAB\x42 |0
+<U96E9> \xB3\xB8 |0
+<U96EA> \xB3\xB7 |0
+<U96EF> \xB6\xB2 |0
+<U96F0> \xDC\xA8 |0
+<U96F1> \xDC\xA7 |0
+<U96F2> \xB6\xB3 |0
+<U96F4> \x92\xE4 |0
+<U96F5> \xE0\xD9 |0
+<U96F6> \xB9\x73 |0
+<U96F7> \xB9\x70 |0
+<U96F8> \xE0\xD8 |0
+<U96F9> \xB9\x72 |0
+<U96FA> \xE0\xD6 |0
+<U96FB> \xB9\x71 |0
+<U96FD> \xE0\xD7 |0
+<U96FF> \xE4\xBD |0
+<U9700> \xBB\xDD |0
+<U9702> \xE8\xAF |0
+<U9703> \x9F\x52 |0
+<U9704> \xBE\x5D |0
+<U9705> \xE8\xAD |0
+<U9706> \xBE\x5E |0
+<U9707> \xBE\x5F |0
+<U9708> \xE8\xAE |0
+<U9709> \xBE\x60 |0
+<U970B> \xEC\x51 |0
+<U970D> \xC0\x4E |0
+<U970E> \xC0\x4B |0
+<U970F> \xC0\x50 |0
+<U9710> \xEC\x53 |0
+<U9711> \xC0\x4C |0
+<U9712> \xEC\x52 |0
+<U9713> \xC0\x4F |0
+<U9716> \xC0\x4D |0
+<U9718> \xEE\xF9 |0
+<U9719> \xEE\xFB |0
+<U971B> \x90\xDB |0
+<U971C> \xC1\xF7 |0
+<U971D> \xEE\xFA |0
+<U971E> \xC1\xF8 |0
+<U971F> \xEE\xF8 |0
+<U9720> \xEE\xF7 |0
+<U9721> \xA0\x66 |0
+<U9722> \xF1\x77 |0
+<U9723> \xF1\x76 |0
+<U9724> \xC2\xFC |0
+<U9725> \xF1\x78 |0
+<U9726> \xF3\x7E |0
+<U9727> \xC3\xFA |0
+<U9728> \xF3\x7D |0
+<U9729> \xF3\x7A |0
+<U972A> \xC3\xF9 |0
+<U972B> \xF3\x7B |0
+<U972C> \xF3\x7C |0
+<U972E> \xF5\x48 |0
+<U972F> \xF5\x49 |0
+<U9730> \xC4\xC5 |0
+<U9731> \x90\xD2 |0
+<U9732> \xC5\x53 |0
+<U9735> \xF6\x6E |0
+<U9736> \x90\xD4 |0
+<U9738> \xC5\x51 |0
+<U9739> \xC5\x52 |0
+<U973A> \xF6\x6F |0
+<U973D> \xC5\xB4 |0
+<U973E> \xC5\xB5 |0
+<U973F> \xF7\x71 |0
+<U9740> \x9A\x5B |0
+<U9741> \x95\xFD |0
+<U9742> \xC6\x45 |0
+<U9743> \xF8\xCF |0
+<U9744> \xC6\x47 |0
+<U9746> \xF8\xCE |0
+<U9747> \xF8\xD0 |0
+<U9748> \xC6\x46 |0
+<U9749> \xF9\x57 |0
+<U974B> \xF9\xAD |0
+<U9751> \x8B\xC4 |0
+<U9752> \xAB\x43 |0
+<U9755> \x8C\x66 |0
+<U9756> \xB9\x74 |0
+<U9757> \x90\xDE |0
+<U9758> \xE4\xBE |0
+<U975A> \xE8\xB0 |0
+<U975B> \xC0\x51 |0
+<U975C> \xC0\x52 |0
+<U975D> \x9C\xE4 |0
+<U975E> \xAB\x44 |0
+<U975F> \x90\xE1 |0
+<U9760> \xBE\x61 |0
+<U9761> \xC3\xFB |0
+<U9762> \xAD\xB1 |0
+<U9766> \xC0\x53 |0
+<U9768> \xC5\xE2 |0
+<U9769> \xAD\xB2 |0
+<U976A> \xD8\x4D |0
+<U976C> \xDC\xA9 |0
+<U976D> \x9E\x46 |0
+<U976E> \xDC\xAB |0
+<U9770> \xDC\xAA |0
+<U9771> \x96\x51 |0
+<U9772> \xE0\xDD |0
+<U9773> \xE0\xDA |0
+<U9774> \xB9\x75 |0
+<U9776> \xB9\x76 |0
+<U9777> \xE0\xDB |0
+<U9778> \xE0\xDC |0
+<U977A> \xE4\xC0 |0
+<U977B> \xE4\xC5 |0
+<U977C> \xBB\xDE |0
+<U977D> \xE4\xBF |0
+<U977E> \xE4\xC1 |0
+<U977F> \xE4\xC8 |0
+<U9780> \xE4\xC3 |0
+<U9781> \xE4\xC7 |0
+<U9782> \xE4\xC4 |0
+<U9783> \xE4\xC2 |0
+<U9784> \xE4\xC6 |0
+<U9785> \xBB\xDF |0
+<U9787> \xFB\x58 |0
+<U9788> \xE8\xB3 |0
+<U9789> \x90\xE6 |0
+<U978A> \xE8\xB1 |0
+<U978B> \xBE\x63 |0
+<U978D> \xBE\x62 |0
+<U978E> \xE8\xB2 |0
+<U978F> \xBE\x64 |0
+<U9794> \xEC\x56 |0
+<U9797> \xEC\x55 |0
+<U9798> \xC0\x54 |0
+<U9799> \xEC\x54 |0
+<U979A> \xEE\xFC |0
+<U979B> \x96\x50 |0
+<U979C> \xEE\xFE |0
+<U979D> \xEF\x41 |0
+<U979E> \xEF\x40 |0
+<U979F> \x90\xE7 |0
+<U97A0> \xC1\xF9 |0
+<U97A1> \xEE\xFD |0
+<U97A2> \xF1\xA1 |0
+<U97A3> \xC2\xFD |0
+<U97A4> \xF1\x7D |0
+<U97A5> \xF1\xA2 |0
+<U97A6> \xC2\xFE |0
+<U97A8> \xF1\x7B |0
+<U97AA> \xF1\x7E |0
+<U97AB> \xF1\x7C |0
+<U97AC> \xF1\x79 |0
+<U97AD> \xC3\x40 |0
+<U97AE> \xF1\x7A |0
+<U97B1> \x90\xE8 |0
+<U97B2> \x9A\x5D |0
+<U97B3> \xF3\xA1 |0
+<U97B4> \x9F\x7A |0
+<U97B6> \xF3\xA3 |0
+<U97B7> \xF3\xA2 |0
+<U97B8> \x9B\x5C |0
+<U97B9> \xF5\x4A |0
+<U97BA> \x9F\x7C |0
+<U97BB> \xF5\x4B |0
+<U97BD> \xFC\x52 |0
+<U97BE> \x90\xE9 |0
+<U97BF> \xF6\x70 |0
+<U97C0> \x90\xEA |0
+<U97C1> \xC5\xB7 |0
+<U97C2> \x9A\x5E |0
+<U97C3> \xC5\xB6 |0
+<U97C4> \xF8\x4F |0
+<U97C5> \xF8\x50 |0
+<U97C6> \xC6\x48 |0
+<U97C7> \xF8\xD1 |0
+<U97C8> \x9F\x76 |0
+<U97C9> \xC6\x69 |0
+<U97CB> \xAD\xB3 |0
+<U97CC> \xB6\xB4 |0
+<U97CD> \xE4\xCA |0
+<U97CE> \xE4\xC9 |0
+<U97CF> \xE8\xB5 |0
+<U97D0> \xE8\xB4 |0
+<U97D2> \x90\xEB |0
+<U97D3> \xC1\xFA |0
+<U97D4> \xEF\x43 |0
+<U97D5> \xEF\x42 |0
+<U97D6> \xF1\xA5 |0
+<U97D7> \xF1\xA3 |0
+<U97D8> \xF1\xA6 |0
+<U97D9> \xF1\xA4 |0
+<U97DC> \xC3\xFC |0
+<U97DD> \xF3\xA4 |0
+<U97DE> \xF3\xA5 |0
+<U97DF> \xF3\xA6 |0
+<U97E0> \x90\xEC |0
+<U97E1> \xF6\x71 |0
+<U97E3> \xF7\x72 |0
+<U97E5> \xF8\xD2 |0
+<U97E6> \x8B\xEE |0
+<U97ED> \xAD\xB4 |0
+<U97EE> \x90\xEE |0
+<U97F0> \xEC\x57 |0
+<U97F1> \xEF\x44 |0
+<U97F2> \x91\xC6 |0
+<U97F3> \xAD\xB5 |0
+<U97F5> \x90\xF2 |0
+<U97F6> \xBB\xE0 |0
+<U97F8> \xEC\x58 |0
+<U97F9> \xC3\x41 |0
+<U97FA> \xF1\xA7 |0
+<U97FB> \xC3\xFD |0
+<U97FD> \xF5\x4C |0
+<U97FE> \xF5\x4D |0
+<U97FF> \xC5\x54 |0
+<U9800> \xF8\x51 |0
+<U9801> \xAD\xB6 |0
+<U9802> \xB3\xBB |0
+<U9803> \xB3\xBC |0
+<U9804> \xD8\x4E |0
+<U9805> \xB6\xB5 |0
+<U9806> \xB6\xB6 |0
+<U9807> \xDC\xAC |0
+<U9808> \xB6\xB7 |0
+<U980A> \xB9\x7A |0
+<U980C> \xB9\x7C |0
+<U980D> \xE0\xDF |0
+<U980E> \xE0\xE0 |0
+<U980F> \xE0\xDE |0
+<U9810> \xB9\x77 |0
+<U9811> \xB9\x78 |0
+<U9812> \xB9\x7B |0
+<U9813> \xB9\x79 |0
+<U9814> \xFC\xBC |0
+<U9815> \x8A\x74 |0
+<U9816> \xE4\xCB |0
+<U9817> \xBB\xE1 |0
+<U9818> \xBB\xE2 |0
+<U981B> \xE8\xBC |0
+<U981C> \xBE\x67 |0
+<U981D> \xE8\xB7 |0
+<U981E> \xE8\xB6 |0
+<U981F> \x96\x57 |0
+<U9820> \xE8\xBB |0
+<U9821> \xBE\x65 |0
+<U9823> \x9C\xEF |0
+<U9824> \xC0\x5B |0
+<U9826> \xE8\xB8 |0
+<U9827> \xE8\xBD |0
+<U9828> \xE8\xBA |0
+<U9829> \xE8\xB9 |0
+<U982B> \xBE\x66 |0
+<U982D> \xC0\x59 |0
+<U982E> \x9F\xDF |0
+<U982F> \xEC\x5A |0
+<U9830> \xC0\x55 |0
+<U9832> \xEC\x5B |0
+<U9833> \x90\xF7 |0
+<U9834> \x90\xF6 |0
+<U9835> \xEC\x59 |0
+<U9837> \xC0\x58 |0
+<U9838> \xC0\x56 |0
+<U9839> \xC0\x5A |0
+<U983B> \xC0\x57 |0
+<U9841> \xEF\x45 |0
+<U9843> \xEF\x4A |0
+<U9844> \xEF\x46 |0
+<U9845> \xEF\x49 |0
+<U9846> \xC1\xFB |0
+<U9847> \x9B\x5E |0
+<U9848> \xED\xD4 |0
+<U9849> \xEF\x48 |0
+<U984A> \xEF\x47 |0
+<U984B> \x90\xF8 |0
+<U984C> \xC3\x44 |0
+<U984D> \xC3\x42 |0
+<U984E> \xC3\x45 |0
+<U984F> \xC3\x43 |0
+<U9850> \xF1\xA8 |0
+<U9851> \xF1\xA9 |0
+<U9852> \xF1\xAA |0
+<U9853> \xC3\x46 |0
+<U9857> \xF3\xAA |0
+<U9858> \xC4\x40 |0
+<U9859> \xF3\xA8 |0
+<U985B> \xC4\x41 |0
+<U985C> \xF3\xA7 |0
+<U985D> \xF3\xA9 |0
+<U985E> \xC3\xFE |0
+<U985F> \xF5\x51 |0
+<U9860> \xF5\x4E |0
+<U9862> \xF5\x4F |0
+<U9863> \xF5\x50 |0
+<U9864> \xF6\x72 |0
+<U9865> \xC5\x56 |0
+<U9866> \x90\xF9 |0
+<U9867> \xC5\x55 |0
+<U9868> \x8C\xC9 |0
+<U9869> \xF7\x74 |0
+<U986A> \xF7\x73 |0
+<U986B> \xC5\xB8 |0
+<U986C> \xFA\x6A |0
+<U986F> \xC5\xE3 |0
+<U9870> \xC6\x49 |0
+<U9871> \xC6\x60 |0
+<U9872> \xF9\x58 |0
+<U9873> \xF9\xAE |0
+<U9874> \xF9\xAF |0
+<U9875> \x8B\xEF |0
+<U98A8> \xAD\xB7 |0
+<U98A9> \xDC\xAD |0
+<U98AC> \xE0\xE1 |0
+<U98AD> \xE4\xCC |0
+<U98AE> \xE4\xCD |0
+<U98AF> \xBB\xE3 |0
+<U98B1> \xBB\xE4 |0
+<U98B2> \xE8\xBE |0
+<U98B3> \xBE\x68 |0
+<U98B4> \x9F\xE0 |0
+<U98B6> \xC1\xFC |0
+<U98B7> \x91\x42 |0
+<U98B8> \xF1\xAB |0
+<U98B9> \x9A\x62 |0
+<U98BA> \xC3\x47 |0
+<U98BB> \xF3\xAD |0
+<U98BC> \xC4\x42 |0
+<U98BD> \xF3\xAC |0
+<U98BE> \xF3\xAE |0
+<U98BF> \xF3\xAB |0
+<U98C0> \xF6\x75 |0
+<U98C1> \xF5\x52 |0
+<U98C2> \xF5\x53 |0
+<U98C3> \x95\x69 |0
+<U98C4> \xC4\xC6 |0
+<U98C6> \xF6\x74 |0
+<U98C7> \x91\x44 |0
+<U98C8> \x91\x43 |0
+<U98C9> \xF6\x73 |0
+<U98CA> \x91\x41 |0
+<U98CB> \xF7\x75 |0
+<U98CC> \xF9\xB0 |0
+<U98CE> \x8B\xF0 |0
+<U98DB> \xAD\xB8 |0
+<U98DC> \x96\x60 |0
+<U98DE> \x8B\xF1 |0
+<U98DF> \xAD\xB9 |0
+<U98E0> \x99\xF6 |0
+<U98E1> \x91\x49 |0
+<U98E2> \xB0\xA7 |0
+<U98E3> \xD4\x48 |0
+<U98E5> \xD8\x4F |0
+<U98E6> \x91\x4A |0
+<U98E7> \xB6\xB8 |0
+<U98E9> \xB6\xBB |0
+<U98EA> \xB6\xB9 |0
+<U98EB> \xDC\xAE |0
+<U98EC> \x91\x4B |0
+<U98ED> \xB6\xBD |0
+<U98EF> \xB6\xBA |0
+<U98F1> \x9A\x64 |0
+<U98F2> \xB6\xBC |0
+<U98F4> \xB9\x7E |0
+<U98F5> \x8A\xBF |0
+<U98F6> \xE0\xE2 |0
+<U98F9> \xE0\xE3 |0
+<U98FA> \xE8\xC0 |0
+<U98FC> \xB9\x7D |0
+<U98FD> \xB9\xA1 |0
+<U98FE> \xB9\xA2 |0
+<U9900> \xE4\xCF |0
+<U9902> \xE4\xCE |0
+<U9903> \xBB\xE5 |0
+<U9905> \xBB\xE6 |0
+<U9907> \xE4\xD0 |0
+<U9908> \xE8\xBF |0
+<U9909> \xBB\xE8 |0
+<U990A> \xBE\x69 |0
+<U990C> \xBB\xE7 |0
+<U990E> \x9A\x66 |0
+<U9910> \xC0\x5C |0
+<U9911> \xE8\xC1 |0
+<U9912> \xBE\x6B |0
+<U9913> \xBE\x6A |0
+<U9914> \xE8\xC2 |0
+<U9915> \xE8\xC5 |0
+<U9916> \xE8\xC3 |0
+<U9917> \xE8\xC4 |0
+<U9918> \xBE\x6C |0
+<U9919> \x9A\x67 |0
+<U991A> \xC0\x61 |0
+<U991B> \xC0\x5F |0
+<U991C> \x9A\x69 |0
+<U991E> \xC0\x5E |0
+<U991F> \xEC\x5D |0
+<U9921> \xC0\x60 |0
+<U9924> \xEC\x5C |0
+<U9925> \xEF\x4B |0
+<U9927> \xEC\x5E |0
+<U9928> \xC0\x5D |0
+<U9929> \xEC\x5F |0
+<U992A> \xEF\x4E |0
+<U992B> \xEF\x4C |0
+<U992C> \xEF\x4D |0
+<U992D> \xEF\x52 |0
+<U992E> \xC3\x4B |0
+<U992F> \xEF\x51 |0
+<U9930> \xEF\x54 |0
+<U9931> \xEF\x53 |0
+<U9932> \xEF\x50 |0
+<U9933> \xEF\x4F |0
+<U9935> \xC1\xFD |0
+<U9937> \x9A\x6A |0
+<U9938> \x96\x52 |0
+<U9939> \x91\x4D |0
+<U993A> \xF1\xAE |0
+<U993B> \x96\x66 |0
+<U993C> \xF1\xAD |0
+<U993D> \xC3\x4A |0
+<U993E> \xC3\x48 |0
+<U993F> \xC3\x49 |0
+<U9940> \x9F\x7B |0
+<U9941> \xF1\xAC |0
+<U9942> \x9A\x6B |0
+<U9943> \xF3\xB1 |0
+<U9945> \xC4\x43 |0
+<U9947> \xF3\xB0 |0
+<U9948> \xF3\xAF |0
+<U9949> \xC4\x44 |0
+<U994A> \xA0\x6C |0
+<U994B> \xF5\x58 |0
+<U994C> \xF5\x57 |0
+<U994D> \x96\x67 |0
+<U994E> \xF5\x55 |0
+<U9950> \xF5\x54 |0
+<U9951> \xC4\xC8 |0
+<U9952> \xC4\xC7 |0
+<U9953> \xF5\x59 |0
+<U9954> \xF7\x76 |0
+<U9955> \xC5\xB9 |0
+<U9956> \xF6\x77 |0
+<U9957> \xC5\x57 |0
+<U9958> \xF6\x76 |0
+<U9959> \xF5\x56 |0
+<U995B> \xF7\x77 |0
+<U995C> \xC5\xE4 |0
+<U995D> \x9A\x6C |0
+<U995E> \xC6\x61 |0
+<U995F> \xF9\x59 |0
+<U9961> \xF9\xB1 |0
+<U9962> \x9A\x6D |0
+<U9963> \x8B\xF2 |0
+<U9996> \xAD\xBA |0
+<U9997> \xD8\x50 |0
+<U9998> \xEF\x55 |0
+<U9999> \xAD\xBB |0
+<U999B> \x96\x6A |0
+<U999C> \xE4\xD2 |0
+<U999D> \xE4\xD1 |0
+<U999E> \xEC\x60 |0
+<U99A1> \xEF\x57 |0
+<U99A3> \xEF\x56 |0
+<U99A4> \xFC\xEA |0
+<U99A5> \xC3\x4C |0
+<U99A6> \xF3\xB2 |0
+<U99A7> \xF3\xB3 |0
+<U99A8> \xC4\xC9 |0
+<U99AA> \x96\x6C |0
+<U99AB> \xF9\xB2 |0
+<U99AC> \xB0\xA8 |0
+<U99AD> \xB6\xBF |0
+<U99AE> \xB6\xBE |0
+<U99AF> \xE0\xE4 |0
+<U99B0> \xE0\xE6 |0
+<U99B1> \xB9\xA4 |0
+<U99B2> \xE0\xE5 |0
+<U99B3> \xB9\xA3 |0
+<U99B4> \xB9\xA5 |0
+<U99B5> \xE0\xE7 |0
+<U99B8> \x91\xC4 |0
+<U99B9> \xE4\xD4 |0
+<U99BA> \xE4\xD6 |0
+<U99BB> \xE4\xD5 |0
+<U99BC> \x96\x77 |0
+<U99BD> \xE4\xD8 |0
+<U99C1> \xBB\xE9 |0
+<U99C2> \xE4\xD7 |0
+<U99C3> \xE4\xD3 |0
+<U99C4> \x99\xF4 |0
+<U99C5> \x9A\x6F |0
+<U99C7> \xE4\xD9 |0
+<U99C9> \xE8\xCC |0
+<U99CB> \xE8\xCF |0
+<U99CC> \xE8\xD1 |0
+<U99CD> \xE8\xC7 |0
+<U99CE> \xE8\xCB |0
+<U99CF> \xE8\xC8 |0
+<U99D0> \xBE\x6E |0
+<U99D1> \xBE\x71 |0
+<U99D2> \xBE\x73 |0
+<U99D3> \xE8\xC9 |0
+<U99D4> \xE8\xCA |0
+<U99D5> \xBE\x72 |0
+<U99D6> \xE8\xCD |0
+<U99D7> \xE8\xD0 |0
+<U99D8> \xE8\xCE |0
+<U99D9> \xBE\x74 |0
+<U99DA> \x9F\xAB |0
+<U99DB> \xBE\x70 |0
+<U99DC> \xE8\xC6 |0
+<U99DD> \xBE\x6D |0
+<U99DF> \xBE\x6F |0
+<U99E0> \x8C\xBE |0
+<U99E1> \x8E\xC1 |0
+<U99E2> \xC0\x63 |0
+<U99E3> \xEC\x66 |0
+<U99E4> \xEC\x64 |0
+<U99E5> \xEC\x63 |0
+<U99E6> \x95\x55 |0
+<U99E7> \xEC\x69 |0
+<U99E9> \xEC\x68 |0
+<U99EA> \xEC\x67 |0
+<U99EC> \xEC\x62 |0
+<U99ED> \xC0\x62 |0
+<U99EE> \xEC\x61 |0
+<U99F0> \xEC\x65 |0
+<U99F1> \xC0\x64 |0
+<U99F4> \xEF\x5A |0
+<U99F5> \x91\x52 |0
+<U99F6> \xEF\x5E |0
+<U99F7> \xEF\x5B |0
+<U99F8> \xEF\x5D |0
+<U99F9> \xEF\x5C |0
+<U99FA> \xEF\x59 |0
+<U99FB> \xEF\x5F |0
+<U99FC> \xEF\x62 |0
+<U99FD> \xEF\x60 |0
+<U99FE> \xEF\x61 |0
+<U99FF> \xC2\x40 |0
+<U9A01> \xC1\xFE |0
+<U9A02> \xEF\x58 |0
+<U9A03> \xEF\x63 |0
+<U9A04> \xF1\xB3 |0
+<U9A05> \xF1\xB6 |0
+<U9A06> \xF1\xB8 |0
+<U9A07> \xF1\xB7 |0
+<U9A09> \xF1\xB1 |0
+<U9A0A> \xF1\xB5 |0
+<U9A0B> \xF1\xB0 |0
+<U9A0C> \x91\x53 |0
+<U9A0D> \xF1\xB2 |0
+<U9A0E> \xC3\x4D |0
+<U9A0F> \xF1\xAF |0
+<U9A10> \x91\x55 |0
+<U9A11> \xF1\xB4 |0
+<U9A14> \xF3\xC0 |0
+<U9A15> \xF3\xB5 |0
+<U9A16> \xC4\x45 |0
+<U9A19> \xC4\x46 |0
+<U9A1A> \xF3\xB4 |0
+<U9A1B> \xF3\xB9 |0
+<U9A1C> \xF3\xBF |0
+<U9A1D> \xF3\xB7 |0
+<U9A1E> \xF3\xBE |0
+<U9A1F> \x95\x5D |0
+<U9A20> \xF3\xBB |0
+<U9A21> \x96\x71 |0
+<U9A22> \xF3\xBA |0
+<U9A23> \xF3\xBD |0
+<U9A24> \xF3\xB8 |0
+<U9A25> \xF3\xB6 |0
+<U9A26> \x9C\x6D |0
+<U9A27> \xF3\xBC |0
+<U9A29> \xF5\x60 |0
+<U9A2A> \xF5\x5E |0
+<U9A2B> \xC4\xCA |0
+<U9A2C> \xF5\x5D |0
+<U9A2D> \xF5\x63 |0
+<U9A2E> \xF5\x61 |0
+<U9A2F> \x96\x73 |0
+<U9A30> \xC4\xCB |0
+<U9A31> \xF5\x5C |0
+<U9A32> \xF5\x5A |0
+<U9A34> \xF5\x5B |0
+<U9A35> \xC4\xCD |0
+<U9A36> \xF5\x5F |0
+<U9A37> \xC4\xCC |0
+<U9A38> \xF5\x62 |0
+<U9A39> \xF6\x78 |0
+<U9A3A> \xF6\x7E |0
+<U9A3B> \x91\x54 |0
+<U9A3C> \x9A\x71 |0
+<U9A3D> \xF6\x79 |0
+<U9A3E> \xC5\x5B |0
+<U9A3F> \xF6\xA1 |0
+<U9A40> \xC5\x5A |0
+<U9A41> \xF6\x7D |0
+<U9A42> \xF6\x7C |0
+<U9A43> \xC5\x59 |0
+<U9A44> \xF6\x7B |0
+<U9A45> \xC5\x58 |0
+<U9A46> \xF6\x7A |0
+<U9A48> \xF7\x7D |0
+<U9A49> \xF7\xA1 |0
+<U9A4A> \xF7\x7E |0
+<U9A4C> \xF7\x7B |0
+<U9A4D> \xC5\xBB |0
+<U9A4E> \xF7\x78 |0
+<U9A4F> \xF7\x7C |0
+<U9A50> \xF7\xA3 |0
+<U9A52> \xF7\xA2 |0
+<U9A53> \xF7\x79 |0
+<U9A54> \xF7\x7A |0
+<U9A55> \xC5\xBA |0
+<U9A56> \xF8\x52 |0
+<U9A57> \xC5\xE7 |0
+<U9A58> \x91\x56 |0
+<U9A59> \xF8\x53 |0
+<U9A5A> \xC5\xE5 |0
+<U9A5B> \xC5\xE6 |0
+<U9A5C> \x96\x6D |0
+<U9A5E> \xF8\xD3 |0
+<U9A5F> \xC6\x4A |0
+<U9A60> \xF9\x76 |0
+<U9A62> \xC6\x6A |0
+<U9A63> \x95\x57 |0
+<U9A64> \xF9\xB3 |0
+<U9A65> \xC6\x6B |0
+<U9A66> \xF9\xB4 |0
+<U9A67> \xF9\xB5 |0
+<U9A68> \xF9\xC3 |0
+<U9A69> \xF9\xC2 |0
+<U9A6A> \xC6\x7A |0
+<U9A6B> \xF9\xCD |0
+<U9A6C> \x89\xC6 |0
+<U9A8F> \x89\xC7 |0
+<U9AA8> \xB0\xA9 |0
+<U9AAB> \xE0\xE9 |0
+<U9AAD> \xE0\xE8 |0
+<U9AAF> \xBB\xEA |0
+<U9AB0> \xBB\xEB |0
+<U9AB1> \xE4\xDA |0
+<U9AB2> \x8A\x6A |0
+<U9AB3> \xE8\xD2 |0
+<U9AB4> \xEC\x6C |0
+<U9AB6> \x8B\x57 |0
+<U9AB7> \xBE\x75 |0
+<U9AB8> \xC0\x65 |0
+<U9AB9> \xEC\x6A |0
+<U9ABA> \x9F\xE1 |0
+<U9ABB> \xEC\x6D |0
+<U9ABC> \xC0\x66 |0
+<U9ABD> \x9B\x5F |0
+<U9ABE> \xEF\x64 |0
+<U9ABF> \xEC\x6B |0
+<U9AC0> \xF1\xB9 |0
+<U9AC1> \xC3\x4E |0
+<U9AC2> \xF3\xC1 |0
+<U9AC6> \xF5\x66 |0
+<U9AC7> \xF5\x64 |0
+<U9ACA> \xF5\x65 |0
+<U9ACD> \xF6\xA2 |0
+<U9ACF> \xC5\x5C |0
+<U9AD0> \xF7\xA4 |0
+<U9AD1> \xC5\xEA |0
+<U9AD2> \xC5\xBC |0
+<U9AD3> \xC5\xE8 |0
+<U9AD4> \xC5\xE9 |0
+<U9AD5> \xF8\xD4 |0
+<U9AD6> \xC6\x62 |0
+<U9AD7> \xA0\x5D |0
+<U9AD8> \xB0\xAA |0
+<U9ADC> \xF1\xBA |0
+<U9ADF> \xD4\x49 |0
+<U9AE0> \x91\x5B |0
+<U9AE1> \xB9\xA6 |0
+<U9AE2> \x91\x5C |0
+<U9AE3> \xE4\xDB |0
+<U9AE6> \xBB\xEC |0
+<U9AE7> \xE4\xDC |0
+<U9AEB> \xE8\xD4 |0
+<U9AEC> \xE8\xD3 |0
+<U9AED> \xC0\x68 |0
+<U9AEE> \xBE\x76 |0
+<U9AEF> \xBE\x77 |0
+<U9AF1> \xE8\xD7 |0
+<U9AF2> \xE8\xD6 |0
+<U9AF3> \xE8\xD5 |0
+<U9AF4> \x91\x5E |0
+<U9AF6> \xEC\x6E |0
+<U9AF7> \xEC\x71 |0
+<U9AF9> \xEC\x70 |0
+<U9AFA> \xEC\x6F |0
+<U9AFB> \xC0\x67 |0
+<U9AFC> \xEF\x68 |0
+<U9AFD> \xEF\x66 |0
+<U9AFE> \xEF\x65 |0
+<U9AFF> \x9F\x5C |0
+<U9B01> \xEF\x67 |0
+<U9B02> \x9F\x57 |0
+<U9B03> \xC3\x4F |0
+<U9B04> \xF1\xBC |0
+<U9B05> \xF1\xBD |0
+<U9B06> \xC3\x50 |0
+<U9B08> \xF1\xBB |0
+<U9B09> \x9F\x65 |0
+<U9B0A> \xF3\xC3 |0
+<U9B0B> \xF3\xC2 |0
+<U9B0C> \xF3\xC5 |0
+<U9B0D> \xC4\x47 |0
+<U9B0E> \xF3\xC4 |0
+<U9B0F> \x9A\x72 |0
+<U9B10> \xF5\x67 |0
+<U9B11> \xF5\x69 |0
+<U9B12> \xF5\x68 |0
+<U9B14> \x91\x60 |0
+<U9B15> \xF6\xA3 |0
+<U9B16> \xF6\xA6 |0
+<U9B17> \xF6\xA4 |0
+<U9B18> \xF6\xA5 |0
+<U9B19> \xF7\xA5 |0
+<U9B1A> \xC5\xBD |0
+<U9B1E> \xF8\x54 |0
+<U9B1F> \xF8\x55 |0
+<U9B20> \xF8\x56 |0
+<U9B22> \xC6\x4B |0
+<U9B23> \xC6\x63 |0
+<U9B24> \xF9\xB6 |0
+<U9B25> \xB0\xAB |0
+<U9B27> \xBE\x78 |0
+<U9B28> \xC0\x69 |0
+<U9B29> \xF1\xBE |0
+<U9B2A> \x9F\x5E |0
+<U9B2B> \xF7\xA6 |0
+<U9B2D> \x91\x61 |0
+<U9B2E> \xF9\xC4 |0
+<U9B2F> \xD4\x4A |0
+<U9B31> \xC6\x7B |0
+<U9B32> \xB0\xAC |0
+<U9B33> \xEC\x72 |0
+<U9B34> \x91\x64 |0
+<U9B35> \xF1\xBF |0
+<U9B37> \xF3\xC6 |0
+<U9B39> \x9F\x41 |0
+<U9B3A> \xF6\xA7 |0
+<U9B3B> \xF7\xA7 |0
+<U9B3C> \xB0\xAD |0
+<U9B3E> \xE4\xDD |0
+<U9B3F> \xE4\xDE |0
+<U9B40> \x91\x69 |0
+<U9B41> \xBB\xED |0
+<U9B42> \xBB\xEE |0
+<U9B43> \xE8\xD9 |0
+<U9B44> \xBE\x7A |0
+<U9B45> \xBE\x79 |0
+<U9B46> \xE8\xD8 |0
+<U9B48> \xEF\x69 |0
+<U9B4A> \xF1\xC0 |0
+<U9B4B> \xF1\xC2 |0
+<U9B4C> \xF1\xC1 |0
+<U9B4D> \xC3\x53 |0
+<U9B4E> \xC3\x52 |0
+<U9B4F> \xC3\x51 |0
+<U9B50> \x91\x68 |0
+<U9B51> \xC5\x5E |0
+<U9B52> \xF6\xA8 |0
+<U9B54> \xC5\x5D |0
+<U9B55> \xF7\xA9 |0
+<U9B56> \xF7\xA8 |0
+<U9B58> \xC6\x4C |0
+<U9B59> \xF8\xD5 |0
+<U9B5A> \xB3\xBD |0
+<U9B5B> \xE0\xEA |0
+<U9B5F> \xE4\xE1 |0
+<U9B60> \xE4\xDF |0
+<U9B61> \xE4\xE0 |0
+<U9B64> \xE8\xE2 |0
+<U9B66> \xE8\xDD |0
+<U9B67> \xE8\xDA |0
+<U9B68> \xE8\xE1 |0
+<U9B69> \x9A\x74 |0
+<U9B6C> \xE8\xE3 |0
+<U9B6F> \xBE\x7C |0
+<U9B70> \xE8\xE0 |0
+<U9B71> \xE8\xDC |0
+<U9B74> \xE8\xDB |0
+<U9B75> \xE8\xDF |0
+<U9B76> \xE8\xDE |0
+<U9B77> \xBE\x7B |0
+<U9B7A> \xEC\x7D |0
+<U9B7B> \xEC\x78 |0
+<U9B7C> \xEC\x76 |0
+<U9B7D> \xEC\xA1 |0
+<U9B7E> \xEC\x77 |0
+<U9B7F> \x96\xB2 |0
+<U9B80> \xEC\x73 |0
+<U9B81> \x9A\x75 |0
+<U9B82> \xEC\x79 |0
+<U9B83> \xFD\xA5 |0
+<U9B85> \xEC\x74 |0
+<U9B86> \xEF\x72 |0
+<U9B87> \xEC\x75 |0
+<U9B88> \xEC\xA2 |0
+<U9B8B> \x9E\xE9 |0
+<U9B8D> \x8B\xBA |0
+<U9B8E> \x91\x6D |0
+<U9B8F> \xA0\x60 |0
+<U9B90> \xEC\x7C |0
+<U9B91> \xC0\x6A |0
+<U9B92> \xEC\x7B |0
+<U9B93> \xEC\x7A |0
+<U9B95> \xEC\x7E |0
+<U9B97> \x9F\xDE |0
+<U9B9A> \xEF\x6A |0
+<U9B9B> \xEF\x6D |0
+<U9B9D> \x9F\xC3 |0
+<U9B9E> \xEF\x6C |0
+<U9B9F> \x96\xB5 |0
+<U9BA0> \xEF\x74 |0
+<U9BA1> \xEF\x6F |0
+<U9BA2> \xEF\x73 |0
+<U9BA4> \xEF\x71 |0
+<U9BA5> \xEF\x70 |0
+<U9BA6> \xEF\x6E |0
+<U9BA8> \xEF\x6B |0
+<U9BAA> \xC2\x43 |0
+<U9BAB> \xC2\x42 |0
+<U9BAD> \xC2\x44 |0
+<U9BAE> \xC2\x41 |0
+<U9BAF> \xEF\x75 |0
+<U9BB0> \xA0\x67 |0
+<U9BB5> \xF1\xC8 |0
+<U9BB6> \xF1\xCB |0
+<U9BB8> \xF1\xC9 |0
+<U9BB9> \xF1\xCD |0
+<U9BBD> \xF1\xCE |0
+<U9BBF> \xF1\xC6 |0
+<U9BC0> \xC3\x58 |0
+<U9BC1> \xF1\xC7 |0
+<U9BC3> \xF1\xC5 |0
+<U9BC4> \xF1\xCC |0
+<U9BC6> \xF1\xC4 |0
+<U9BC7> \xF1\xC3 |0
+<U9BC8> \xC3\x57 |0
+<U9BC9> \xC3\x55 |0
+<U9BCA> \xC3\x54 |0
+<U9BCF> \x96\xB3 |0
+<U9BD3> \xF1\xCA |0
+<U9BD4> \xF3\xCF |0
+<U9BD5> \xF3\xD5 |0
+<U9BD6> \xC4\x4A |0
+<U9BD7> \xF3\xD0 |0
+<U9BD9> \xF3\xD3 |0
+<U9BDA> \xF3\xD7 |0
+<U9BDB> \xC4\x4B |0
+<U9BDC> \xF3\xD2 |0
+<U9BDD> \x9A\x76 |0
+<U9BDE> \xF3\xCA |0
+<U9BE0> \xF3\xC9 |0
+<U9BE1> \xF3\xD6 |0
+<U9BE2> \xF3\xCD |0
+<U9BE4> \xF3\xCB |0
+<U9BE5> \xF3\xD4 |0
+<U9BE6> \xF3\xCC |0
+<U9BE7> \xC4\x49 |0
+<U9BE8> \xC4\x48 |0
+<U9BE9> \x95\xD5 |0
+<U9BEA> \xF3\xC7 |0
+<U9BEB> \xF3\xC8 |0
+<U9BEC> \xF3\xD1 |0
+<U9BED> \x9E\xCA |0
+<U9BF0> \xF3\xCE |0
+<U9BF1> \x9A\x77 |0
+<U9BF4> \x9A\x78 |0
+<U9BF7> \xF5\x6C |0
+<U9BF8> \xF5\x6F |0
+<U9BFD> \xC3\x56 |0
+<U9BFF> \x91\x70 |0
+<U9C02> \x91\x6F |0
+<U9C05> \xF5\x6D |0
+<U9C06> \xF5\x73 |0
+<U9C07> \xF5\x71 |0
+<U9C08> \xF5\x6B |0
+<U9C09> \xF5\x76 |0
+<U9C0A> \x9F\xA3 |0
+<U9C0B> \xF5\x6A |0
+<U9C0C> \x91\x71 |0
+<U9C0D> \xC4\xCF |0
+<U9C0E> \xF5\x72 |0
+<U9C10> \x96\xB1 |0
+<U9C12> \xF5\x6E |0
+<U9C13> \xC4\xCE |0
+<U9C14> \xF5\x75 |0
+<U9C15> \x9F\x63 |0
+<U9C17> \xF5\x74 |0
+<U9C1B> \x9F\x67 |0
+<U9C1C> \xF6\xAB |0
+<U9C1D> \xF6\xAA |0
+<U9C1F> \x8B\xB9 |0
+<U9C20> \x9A\x7A |0
+<U9C21> \xF6\xB1 |0
+<U9C23> \xF6\xAD |0
+<U9C24> \xF6\xB0 |0
+<U9C25> \xC5\x60 |0
+<U9C26> \x8B\x56 |0
+<U9C28> \xF6\xAE |0
+<U9C29> \xF6\xAF |0
+<U9C2B> \xF6\xA9 |0
+<U9C2C> \xF6\xAC |0
+<U9C2D> \xC5\x5F |0
+<U9C2F> \x9A\xDA |0
+<U9C31> \xC5\xBF |0
+<U9C32> \xF7\xB4 |0
+<U9C33> \xF7\xAF |0
+<U9C34> \xF7\xB3 |0
+<U9C35> \x96\xB0 |0
+<U9C36> \xF7\xB6 |0
+<U9C37> \xF7\xB2 |0
+<U9C39> \xF7\xAE |0
+<U9C3A> \x9A\x7E |0
+<U9C3B> \xC5\xC1 |0
+<U9C3C> \xF7\xB1 |0
+<U9C3D> \xF7\xB5 |0
+<U9C3E> \xC5\xC0 |0
+<U9C3F> \xF7\xAC |0
+<U9C40> \xF5\x70 |0
+<U9C41> \xF7\xB0 |0
+<U9C44> \xF7\xAD |0
+<U9C45> \x9D\xDE |0
+<U9C46> \xF7\xAA |0
+<U9C48> \xF7\xAB |0
+<U9C49> \xC5\xBE |0
+<U9C4A> \xF8\x5A |0
+<U9C4B> \xF8\x5C |0
+<U9C4C> \xF8\x5F |0
+<U9C4D> \xF8\x5B |0
+<U9C4E> \xF8\x60 |0
+<U9C4F> \x96\xAD |0
+<U9C50> \xF8\x59 |0
+<U9C52> \xF8\x57 |0
+<U9C53> \x96\xAE |0
+<U9C54> \xC5\xEB |0
+<U9C55> \xF8\x5D |0
+<U9C56> \xC5\xED |0
+<U9C57> \xC5\xEC |0
+<U9C58> \xF8\x58 |0
+<U9C59> \xF8\x5E |0
+<U9C5D> \x9E\xA1 |0
+<U9C5E> \xF8\xDA |0
+<U9C5F> \xC6\x4D |0
+<U9C60> \xF8\xDB |0
+<U9C62> \xF8\xD9 |0
+<U9C63> \xF8\xD6 |0
+<U9C66> \xF8\xD8 |0
+<U9C67> \xF8\xD7 |0
+<U9C68> \xF9\x5A |0
+<U9C6D> \xF9\x5C |0
+<U9C6E> \xF9\x5B |0
+<U9C71> \xF9\x79 |0
+<U9C72> \x9E\x50 |0
+<U9C73> \xF9\x78 |0
+<U9C74> \xF9\x77 |0
+<U9C75> \xF9\x7A |0
+<U9C77> \xC6\x73 |0
+<U9C78> \xC6\x74 |0
+<U9C79> \xF9\xCA |0
+<U9C7A> \xF9\xCE |0
+<U9C7B> \x96\xAF |0
+<U9C7C> \x8B\xF4 |0
+<U9CE5> \xB3\xBE |0
+<U9CE6> \xDC\xAF |0
+<U9CE7> \xE0\xED |0
+<U9CE9> \xB9\xA7 |0
+<U9CEA> \xE0\xEB |0
+<U9CED> \xE0\xEC |0
+<U9CF1> \xE4\xE2 |0
+<U9CF2> \xE4\xE3 |0
+<U9CF3> \xBB\xF1 |0
+<U9CF4> \xBB\xEF |0
+<U9CF5> \xE4\xE4 |0
+<U9CF6> \xBB\xF0 |0
+<U9CF7> \xE8\xE8 |0
+<U9CF9> \xE8\xEB |0
+<U9CFA> \xE8\xE5 |0
+<U9CFB> \xE8\xEC |0
+<U9CFC> \xE8\xE4 |0
+<U9CFD> \xE8\xE6 |0
+<U9CFF> \xE8\xE7 |0
+<U9D00> \xE8\xEA |0
+<U9D02> \x9F\xA4 |0
+<U9D03> \xBE\xA1 |0
+<U9D04> \xE8\xEF |0
+<U9D05> \xE8\xEE |0
+<U9D06> \xBE\x7D |0
+<U9D07> \xE8\xE9 |0
+<U9D08> \xE8\xED |0
+<U9D09> \xBE\x7E |0
+<U9D0C> \x96\xBD |0
+<U9D10> \xEC\xAC |0
+<U9D12> \xC0\x6F |0
+<U9D14> \xEC\xA7 |0
+<U9D15> \xC0\x6B |0
+<U9D16> \x96\xF4 |0
+<U9D17> \xEC\xA4 |0
+<U9D18> \xEC\xAA |0
+<U9D19> \xEC\xAD |0
+<U9D1B> \xC0\x70 |0
+<U9D1D> \xEC\xA9 |0
+<U9D1E> \xEC\xA6 |0
+<U9D1F> \xEC\xAE |0
+<U9D20> \xEC\xA5 |0
+<U9D21> \x96\xB8 |0
+<U9D22> \xEC\xAB |0
+<U9D23> \xC0\x6C |0
+<U9D25> \xEC\xA3 |0
+<U9D26> \xC0\x6D |0
+<U9D28> \xC0\x6E |0
+<U9D29> \xEC\xA8 |0
+<U9D2D> \xEF\xA9 |0
+<U9D2E> \xEF\x7A |0
+<U9D2F> \xEF\x7B |0
+<U9D30> \xEF\x7E |0
+<U9D31> \xEF\x7C |0
+<U9D33> \xEF\x76 |0
+<U9D34> \xFA\xA1 |0
+<U9D36> \xEF\x79 |0
+<U9D37> \xEF\xA5 |0
+<U9D38> \xEF\x7D |0
+<U9D39> \x91\xA7 |0
+<U9D3B> \xC2\x45 |0
+<U9D3D> \xEF\xA7 |0
+<U9D3E> \xEF\xA4 |0
+<U9D3F> \xC2\x46 |0
+<U9D40> \xEF\xA6 |0
+<U9D41> \xEF\x77 |0
+<U9D42> \xEF\xA2 |0
+<U9D43> \xEF\xA3 |0
+<U9D44> \xA0\x5E |0
+<U9D45> \xEF\xA1 |0
+<U9D49> \x9A\x7D |0
+<U9D4A> \xF1\xD2 |0
+<U9D4B> \xF1\xD4 |0
+<U9D4C> \xF1\xD7 |0
+<U9D4E> \x89\x48 |0
+<U9D4F> \xF1\xD1 |0
+<U9D50> \x9E\xB1 |0
+<U9D51> \xC3\x59 |0
+<U9D52> \xF1\xD9 |0
+<U9D53> \xF1\xD0 |0
+<U9D54> \xF1\xDA |0
+<U9D56> \xF1\xD6 |0
+<U9D57> \xF1\xD8 |0
+<U9D58> \xF1\xDC |0
+<U9D59> \xF1\xD5 |0
+<U9D5A> \xF1\xDD |0
+<U9D5B> \xF1\xD3 |0
+<U9D5C> \xF1\xCF |0
+<U9D5D> \xC3\x5A |0
+<U9D5E> \x9D\xDB |0
+<U9D5F> \xF1\xDB |0
+<U9D60> \xC3\x5B |0
+<U9D61> \xC4\x4D |0
+<U9D67> \xEF\x78 |0
+<U9D68> \xF3\xF1 |0
+<U9D69> \xF3\xE8 |0
+<U9D6A> \xC4\x4F |0
+<U9D6B> \xF3\xE4 |0
+<U9D6C> \xC4\x50 |0
+<U9D6D> \x95\xBF |0
+<U9D6E> \x8A\x73 |0
+<U9D6F> \xF3\xED |0
+<U9D70> \xF3\xE7 |0
+<U9D71> \xF3\xDD |0
+<U9D72> \xC4\x4E |0
+<U9D73> \xF3\xEA |0
+<U9D74> \xF3\xE5 |0
+<U9D75> \xF3\xE6 |0
+<U9D77> \xF3\xD8 |0
+<U9D78> \xF3\xDF |0
+<U9D79> \xF3\xEE |0
+<U9D7B> \xF3\xEB |0
+<U9D7C> \x9E\xFE |0
+<U9D7D> \xF3\xE3 |0
+<U9D7E> \x91\x7A |0
+<U9D7F> \xF3\xEF |0
+<U9D80> \xF3\xDE |0
+<U9D81> \xF3\xD9 |0
+<U9D82> \xF3\xEC |0
+<U9D83> \x91\x7B |0
+<U9D84> \xF3\xDB |0
+<U9D85> \xF3\xE9 |0
+<U9D86> \xF3\xE0 |0
+<U9D87> \xF3\xF0 |0
+<U9D88> \xF3\xDC |0
+<U9D89> \xC4\x4C |0
+<U9D8A> \xF3\xDA |0
+<U9D8B> \xF3\xE1 |0
+<U9D8C> \xF3\xE2 |0
+<U9D90> \xF5\x7D |0
+<U9D92> \xF5\x7B |0
+<U9D93> \x9A\xA3 |0
+<U9D94> \xF5\xA2 |0
+<U9D96> \xF5\xAE |0
+<U9D97> \xF5\xA5 |0
+<U9D98> \xF5\x7C |0
+<U9D99> \xF5\x78 |0
+<U9D9A> \xF5\xA7 |0
+<U9D9B> \xF5\x7E |0
+<U9D9C> \xF5\xA3 |0
+<U9D9D> \xF5\x7A |0
+<U9D9E> \xF5\xAA |0
+<U9D9F> \xF5\x77 |0
+<U9DA0> \xF5\xA1 |0
+<U9DA1> \xF5\xA6 |0
+<U9DA2> \xF5\xA8 |0
+<U9DA3> \xF5\xAB |0
+<U9DA4> \xF5\x79 |0
+<U9DA5> \x96\xC2 |0
+<U9DA6> \xF5\xAF |0
+<U9DA7> \xF5\xB0 |0
+<U9DA8> \xF5\xA9 |0
+<U9DA9> \xF5\xAD |0
+<U9DAA> \xF5\xA4 |0
+<U9DAB> \x9F\x77 |0
+<U9DAC> \xF6\xC1 |0
+<U9DAD> \xF6\xC4 |0
+<U9DAF> \xC5\x61 |0
+<U9DB1> \xF6\xC3 |0
+<U9DB2> \xF6\xC8 |0
+<U9DB3> \xF6\xC6 |0
+<U9DB4> \xC5\x62 |0
+<U9DB5> \xF6\xBD |0
+<U9DB6> \xF6\xB3 |0
+<U9DB7> \xF6\xB2 |0
+<U9DB8> \xC5\x64 |0
+<U9DB9> \xF6\xBF |0
+<U9DBA> \xF6\xC0 |0
+<U9DBB> \xF6\xBC |0
+<U9DBC> \xF6\xB4 |0
+<U9DBD> \x9A\xA4 |0
+<U9DBE> \xF6\xB9 |0
+<U9DBF> \xF5\xAC |0
+<U9DC0> \x9A\xA5 |0
+<U9DC1> \xF6\xB5 |0
+<U9DC2> \xC5\x63 |0
+<U9DC3> \xF6\xBB |0
+<U9DC4> \x91\xA1 |0
+<U9DC5> \xF6\xBA |0
+<U9DC7> \xF6\xB6 |0
+<U9DC8> \xF6\xC2 |0
+<U9DC9> \x89\xB8 |0
+<U9DCA> \xF6\xB7 |0
+<U9DCB> \xF7\xBB |0
+<U9DCC> \xF6\xC5 |0
+<U9DCD> \xF6\xC7 |0
+<U9DCE> \xF6\xBE |0
+<U9DCF> \xF6\xB8 |0
+<U9DD0> \xF7\xBC |0
+<U9DD1> \xF7\xBE |0
+<U9DD2> \xF7\xB8 |0
+<U9DD3> \xC5\xC2 |0
+<U9DD4> \x91\x73 |0
+<U9DD5> \xF7\xC5 |0
+<U9DD6> \xF7\xC3 |0
+<U9DD7> \xC5\xC3 |0
+<U9DD8> \xF7\xC2 |0
+<U9DD9> \xF7\xC1 |0
+<U9DDA> \xF7\xBA |0
+<U9DDB> \xF7\xB7 |0
+<U9DDC> \xF7\xBD |0
+<U9DDD> \xF7\xC6 |0
+<U9DDE> \xF7\xB9 |0
+<U9DDF> \xF7\xBF |0
+<U9DE1> \xF8\x69 |0
+<U9DE2> \xF8\x6E |0
+<U9DE3> \xF8\x64 |0
+<U9DE4> \xF8\x67 |0
+<U9DE5> \xC5\xEE |0
+<U9DE6> \xF8\x6B |0
+<U9DE8> \xF8\x72 |0
+<U9DE9> \xF7\xC0 |0
+<U9DEB> \xF8\x65 |0
+<U9DEC> \xF8\x6F |0
+<U9DED> \xF8\x73 |0
+<U9DEE> \xF8\x6A |0
+<U9DEF> \xF8\x63 |0
+<U9DF0> \xF8\x6D |0
+<U9DF2> \xF8\x6C |0
+<U9DF3> \xF8\x71 |0
+<U9DF4> \xF8\x70 |0
+<U9DF5> \xF7\xC4 |0
+<U9DF6> \xF8\x68 |0
+<U9DF7> \xF8\x62 |0
+<U9DF8> \xF8\x66 |0
+<U9DF9> \xC6\x4E |0
+<U9DFA> \xC6\x4F |0
+<U9DFB> \xF8\x61 |0
+<U9DFC> \x9A\xA6 |0
+<U9DFD> \xF8\xE6 |0
+<U9DFE> \xF8\xDD |0
+<U9DFF> \xF8\xE5 |0
+<U9E00> \xF8\xE2 |0
+<U9E01> \xF8\xE3 |0
+<U9E02> \xF8\xDC |0
+<U9E03> \xF8\xDF |0
+<U9E04> \xF8\xE7 |0
+<U9E05> \xF8\xE1 |0
+<U9E06> \xF8\xE0 |0
+<U9E07> \xF8\xDE |0
+<U9E09> \xF8\xE4 |0
+<U9E0A> \x89\xBD |0
+<U9E0B> \xF9\x5D |0
+<U9E0C> \x89\xB9 |0
+<U9E0D> \xF9\x5E |0
+<U9E0E> \x91\x7D |0
+<U9E0F> \xF9\x60 |0
+<U9E10> \xF9\x5F |0
+<U9E11> \xF9\x62 |0
+<U9E12> \xF9\x61 |0
+<U9E13> \xF9\x7C |0
+<U9E14> \xF9\x7B |0
+<U9E15> \xF9\xB7 |0
+<U9E17> \xF9\xB8 |0
+<U9E18> \x96\xBB |0
+<U9E19> \xF9\xC5 |0
+<U9E1A> \xC6\x78 |0
+<U9E1B> \xC6\x7C |0
+<U9E1C> \x9F\xF2 |0
+<U9E1D> \xF9\xCF |0
+<U9E1E> \xC6\x7D |0
+<U9E1F> \x8B\xF5 |0
+<U9E75> \xB3\xBF |0
+<U9E79> \xC4\xD0 |0
+<U9E7A> \xF6\xC9 |0
+<U9E7B> \x9A\xA9 |0
+<U9E7C> \xC6\x50 |0
+<U9E7D> \xC6\x51 |0
+<U9E7F> \xB3\xC0 |0
+<U9E80> \xE0\xEE |0
+<U9E81> \x9F\x54 |0
+<U9E82> \xB9\xA8 |0
+<U9E83> \xE8\xF0 |0
+<U9E84> \x9F\xE3 |0
+<U9E85> \x9E\xED |0
+<U9E86> \xEC\xB0 |0
+<U9E87> \xEC\xB1 |0
+<U9E88> \xEC\xAF |0
+<U9E89> \xEF\xAB |0
+<U9E8A> \xEF\xAA |0
+<U9E8B> \xC2\x47 |0
+<U9E8C> \xF1\xDF |0
+<U9E8D> \xEF\xAC |0
+<U9E8E> \xF1\xDE |0
+<U9E90> \x91\xAA |0
+<U9E91> \xF3\xF3 |0
+<U9E92> \xC4\x51 |0
+<U9E93> \xC4\x53 |0
+<U9E94> \xF3\xF2 |0
+<U9E95> \x91\xAB |0
+<U9E96> \xA0\x70 |0
+<U9E97> \xC4\x52 |0
+<U9E98> \x9F\x6D |0
+<U9E99> \xF5\xB1 |0
+<U9E9A> \xF5\xB3 |0
+<U9E9B> \xF5\xB2 |0
+<U9E9C> \xF6\xCA |0
+<U9E9D> \xC5\x65 |0
+<U9E9E> \x91\xAC |0
+<U9E9F> \xC5\xEF |0
+<U9EA0> \xF8\xE8 |0
+<U9EA1> \xF9\x63 |0
+<U9EA2> \x91\xAD |0
+<U9EA4> \xF9\xD2 |0
+<U9EA5> \xB3\xC1 |0
+<U9EA6> \xA0\xFD |0
+<U9EA7> \xE4\xE5 |0
+<U9EA8> \x9F\xE2 |0
+<U9EA9> \xBE\xA2 |0
+<U9EAA> \x91\xAF |0
+<U9EAB> \x9E\x41 |0
+<U9EAC> \x9A\xAA |0
+<U9EAD> \xEC\xB3 |0
+<U9EAE> \xEC\xB2 |0
+<U9EAF> \x91\xB0 |0
+<U9EB0> \xEF\xAD |0
+<U9EB1> \x9A\xAB |0
+<U9EB4> \xC4\x54 |0
+<U9EB5> \xC4\xD1 |0
+<U9EB6> \xF7\xC7 |0
+<U9EB7> \xF9\xCB |0
+<U9EBB> \xB3\xC2 |0
+<U9EBC> \xBB\xF2 |0
+<U9EBD> \x9A\xAC |0
+<U9EBE> \xBE\xA3 |0
+<U9EBF> \x9A\x4A |0
+<U9EC0> \xF3\xF4 |0
+<U9EC1> \x91\xB2 |0
+<U9EC2> \xF8\x74 |0
+<U9EC3> \xB6\xC0 |0
+<U9EC4> \x8B\xF6 |0
+<U9EC6> \x9A\xAD |0
+<U9EC7> \x89\xB6 |0
+<U9EC8> \xEF\xAE |0
+<U9ECC> \xC6\x64 |0
+<U9ECD> \xB6\xC1 |0
+<U9ECE> \xBE\xA4 |0
+<U9ECF> \xC2\x48 |0
+<U9ED0> \xF8\x75 |0
+<U9ED1> \xB6\xC2 |0
+<U9ED3> \xE8\xF1 |0
+<U9ED4> \xC0\x72 |0
+<U9ED5> \xEC\xB4 |0
+<U9ED6> \xEC\xB5 |0
+<U9ED8> \xC0\x71 |0
+<U9EDA> \xEF\xAF |0
+<U9EDB> \xC2\x4C |0
+<U9EDC> \xC2\x4A |0
+<U9EDD> \xC2\x4B |0
+<U9EDE> \xC2\x49 |0
+<U9EDF> \xF1\xE0 |0
+<U9EE0> \xC3\x5C |0
+<U9EE2> \x9A\xAF |0
+<U9EE4> \xF5\xB5 |0
+<U9EE5> \xF5\xB4 |0
+<U9EE6> \xF5\xB7 |0
+<U9EE7> \xF5\xB6 |0
+<U9EE8> \xC4\xD2 |0
+<U9EEB> \xF6\xCB |0
+<U9EED> \xF6\xCD |0
+<U9EEE> \xF6\xCC |0
+<U9EEF> \xC5\x66 |0
+<U9EF0> \xF7\xC8 |0
+<U9EF1> \x9A\xB0 |0
+<U9EF2> \xF8\x76 |0
+<U9EF3> \xF8\x77 |0
+<U9EF4> \xC5\xF0 |0
+<U9EF5> \xF9\x64 |0
+<U9EF6> \xF9\x7D |0
+<U9EF7> \xC6\x75 |0
+<U9EF8> \x9A\xB1 |0
+<U9EF9> \xDC\xB0 |0
+<U9EFA> \xEC\xB6 |0
+<U9EFB> \xEF\xB0 |0
+<U9EFC> \xF3\xF5 |0
+<U9EFD> \xE0\xEF |0
+<U9EFE> \x9A\xA1 |0
+<U9EFF> \xEF\xB1 |0
+<U9F00> \xF1\xE2 |0
+<U9F01> \xF1\xE1 |0
+<U9F02> \x91\xB9 |0
+<U9F06> \xF8\x78 |0
+<U9F07> \xC6\x52 |0
+<U9F08> \x91\xBA |0
+<U9F09> \xF9\x65 |0
+<U9F0A> \xF9\x7E |0
+<U9F0E> \xB9\xA9 |0
+<U9F0F> \xE8\xF2 |0
+<U9F10> \xE8\xF3 |0
+<U9F12> \xEC\xB7 |0
+<U9F13> \xB9\xAA |0
+<U9F15> \xC3\x5D |0
+<U9F16> \xF1\xE3 |0
+<U9F17> \x91\xBE |0
+<U9F18> \xF6\xCF |0
+<U9F19> \xC5\x67 |0
+<U9F1A> \xF6\xD0 |0
+<U9F1B> \xF6\xCE |0
+<U9F1C> \xF8\x79 |0
+<U9F1E> \xF8\xE9 |0
+<U9F20> \xB9\xAB |0
+<U9F22> \xEF\xB4 |0
+<U9F23> \xEF\xB3 |0
+<U9F24> \xEF\xB2 |0
+<U9F25> \xF1\xE4 |0
+<U9F26> \xA0\x41 |0
+<U9F27> \x8B\xB7 |0
+<U9F28> \xF1\xE8 |0
+<U9F29> \xF1\xE7 |0
+<U9F2A> \xF1\xE6 |0
+<U9F2B> \xF1\xE5 |0
+<U9F2C> \xC3\x5E |0
+<U9F2D> \xF3\xF6 |0
+<U9F2E> \xF5\xB9 |0
+<U9F2F> \xC4\xD3 |0
+<U9F30> \xF5\xB8 |0
+<U9F31> \xF6\xD1 |0
+<U9F32> \xF7\xCB |0
+<U9F33> \xF7\xCA |0
+<U9F34> \xC5\xC4 |0
+<U9F35> \xF7\xC9 |0
+<U9F36> \xF8\x7C |0
+<U9F37> \xF8\x7B |0
+<U9F38> \xF8\x7A |0
+<U9F39> \x91\xC0 |0
+<U9F3B> \xBB\xF3 |0
+<U9F3D> \xEC\xB8 |0
+<U9F3E> \xC2\x4D |0
+<U9F40> \xF3\xF7 |0
+<U9F41> \xF3\xF8 |0
+<U9F42> \xF7\xCC |0
+<U9F43> \xF8\x7D |0
+<U9F44> \x9A\xB3 |0
+<U9F45> \x91\xC3 |0
+<U9F46> \xF8\xEA |0
+<U9F47> \xF9\x66 |0
+<U9F48> \xF9\xB9 |0
+<U9F49> \xF9\xD4 |0
+<U9F4A> \xBB\xF4 |0
+<U9F4B> \xC2\x4E |0
+<U9F4C> \xF1\xE9 |0
+<U9F4D> \xF3\xF9 |0
+<U9F4E> \xF6\xD2 |0
+<U9F4F> \xF8\x7E |0
+<U9F50> \xA0\xFC |0
+<U9F52> \xBE\xA6 |0
+<U9F53> \x9F\xEE |0
+<U9F54> \xEF\xB5 |0
+<U9F55> \xF1\xEA |0
+<U9F56> \xF3\xFA |0
+<U9F57> \xF3\xFB |0
+<U9F58> \xF3\xFC |0
+<U9F59> \xF5\xBE |0
+<U9F5A> \x9F\x69 |0
+<U9F5B> \xF5\xBA |0
+<U9F5C> \xC5\x68 |0
+<U9F5D> \xF5\xBD |0
+<U9F5E> \xF5\xBC |0
+<U9F5F> \xC4\xD4 |0
+<U9F60> \xF5\xBB |0
+<U9F61> \xC4\xD6 |0
+<U9F62> \x91\xC8 |0
+<U9F63> \xC4\xD5 |0
+<U9F64> \xF6\xD4 |0
+<U9F65> \xF6\xD3 |0
+<U9F66> \xC5\x69 |0
+<U9F67> \xC5\x6A |0
+<U9F69> \x91\xC9 |0
+<U9F6A> \xC5\xC6 |0
+<U9F6B> \xF7\xCD |0
+<U9F6C> \xC5\xC5 |0
+<U9F6E> \xF8\xA3 |0
+<U9F6F> \xF8\xA4 |0
+<U9F70> \xF8\xA2 |0
+<U9F71> \xF8\xA1 |0
+<U9F72> \xC6\x54 |0
+<U9F74> \xF8\xEB |0
+<U9F75> \xF8\xEC |0
+<U9F76> \xF8\xED |0
+<U9F77> \xC6\x53 |0
+<U9F78> \xF9\x67 |0
+<U9F79> \xF9\x6A |0
+<U9F7A> \xF9\x69 |0
+<U9F7B> \xF9\x68 |0
+<U9F7E> \xF9\xD3 |0
+<U9F7F> \x8D\xE6 |0
+<U9F8D> \xC0\x73 |0
+<U9F8E> \x91\xCB |0
+<U9F90> \xC3\x65 |0
+<U9F91> \xF5\xBF |0
+<U9F92> \xF6\xD5 |0
+<U9F94> \xC5\xC7 |0
+<U9F95> \xF7\xCE |0
+<U9F98> \xF9\xD5 |0
+<U9F99> \x89\xC8 |0
+<U9F9C> \xC0\x74 |0
+<U9F9F> \x8D\xAA |0
+<U9FA0> \xEF\xB6 |0
+<U9FA2> \xF7\xCF |0
+<U9FA4> \xF9\xA1 |0
+<U9FA5> \x9F\xDD |0
+<UE000> \xFA\x40 |0
+<UE001> \xFA\x41 |1
+<UE002> \xFA\x42 |0
+<UE003> \xFA\x43 |0
+<UE004> \xFA\x44 |1
+<UE005> \xFA\x45 |1
+<UE006> \xFA\x46 |1
+<UE007> \xFA\x47 |1
+<UE008> \xFA\x48 |1
+<UE009> \xFA\x49 |0
+<UE00A> \xFA\x4A |0
+<UE00B> \xFA\x4B |1
+<UE00C> \xFA\x4C |0
+<UE00D> \xFA\x4D |1
+<UE00E> \xFA\x4E |0
+<UE00F> \xFA\x4F |1
+<UE010> \xFA\x50 |1
+<UE011> \xFA\x51 |1
+<UE012> \xFA\x52 |0
+<UE013> \xFA\x53 |0
+<UE014> \xFA\x54 |0
+<UE015> \xFA\x55 |0
+<UE016> \xFA\x56 |0
+<UE017> \xFA\x57 |1
+<UE018> \xFA\x58 |0
+<UE019> \xFA\x59 |1
+<UE01A> \xFA\x5A |0
+<UE01B> \xFA\x5B |0
+<UE01C> \xFA\x5C |0
+<UE01D> \xFA\x5D |0
+<UE01E> \xFA\x5E |0
+<UE01F> \xFA\x5F |0
+<UE020> \xFA\x60 |0
+<UE021> \xFA\x61 |1
+<UE022> \xFA\x62 |0
+<UE023> \xFA\x63 |0
+<UE024> \xFA\x64 |1
+<UE025> \xFA\x65 |0
+<UE026> \xFA\x66 |0
+<UE027> \xFA\x67 |1
+<UE028> \xFA\x68 |1
+<UE029> \xFA\x69 |1
+<UE02A> \xFA\x6A |1
+<UE02B> \xFA\x6B |1
+<UE02C> \xFA\x6C |1
+<UE02D> \xFA\x6D |0
+<UE02E> \xFA\x6E |0
+<UE02F> \xFA\x6F |1
+<UE030> \xFA\x70 |0
+<UE031> \xFA\x71 |1
+<UE032> \xFA\x72 |0
+<UE033> \xFA\x73 |0
+<UE034> \xFA\x74 |0
+<UE035> \xFA\x75 |0
+<UE036> \xFA\x76 |0
+<UE037> \xFA\x77 |0
+<UE038> \xFA\x78 |0
+<UE039> \xFA\x79 |1
+<UE03A> \xFA\x7A |1
+<UE03B> \xFA\x7B |0
+<UE03C> \xFA\x7C |0
+<UE03D> \xFA\x7D |1
+<UE03E> \xFA\x7E |1
+<UE03F> \xFA\xA1 |1
+<UE040> \xFA\xA2 |1
+<UE041> \xFA\xA3 |1
+<UE042> \xFA\xA4 |1
+<UE043> \xFA\xA5 |1
+<UE044> \xFA\xA6 |1
+<UE045> \xFA\xA7 |0
+<UE046> \xFA\xA8 |1
+<UE047> \xFA\xA9 |1
+<UE048> \xFA\xAA |1
+<UE049> \xFA\xAB |1
+<UE04A> \xFA\xAC |1
+<UE04B> \xFA\xAD |1
+<UE04C> \xFA\xAE |0
+<UE04D> \xFA\xAF |1
+<UE04E> \xFA\xB0 |1
+<UE04F> \xFA\xB1 |1
+<UE050> \xFA\xB2 |1
+<UE051> \xFA\xB3 |1
+<UE052> \xFA\xB4 |1
+<UE053> \xFA\xB5 |1
+<UE054> \xFA\xB6 |1
+<UE055> \xFA\xB7 |1
+<UE056> \xFA\xB8 |1
+<UE057> \xFA\xB9 |1
+<UE058> \xFA\xBA |1
+<UE059> \xFA\xBB |1
+<UE05A> \xFA\xBC |0
+<UE05B> \xFA\xBD |0
+<UE05C> \xFA\xBE |0
+<UE05D> \xFA\xBF |1
+<UE05E> \xFA\xC0 |1
+<UE05F> \xFA\xC1 |0
+<UE060> \xFA\xC2 |0
+<UE061> \xFA\xC3 |0
+<UE062> \xFA\xC4 |1
+<UE063> \xFA\xC5 |0
+<UE064> \xFA\xC6 |0
+<UE065> \xFA\xC7 |1
+<UE066> \xFA\xC8 |0
+<UE067> \xFA\xC9 |1
+<UE068> \xFA\xCA |1
+<UE069> \xFA\xCB |1
+<UE06A> \xFA\xCC |1
+<UE06B> \xFA\xCD |1
+<UE06C> \xFA\xCE |0
+<UE06D> \xFA\xCF |1
+<UE06E> \xFA\xD0 |1
+<UE06F> \xFA\xD1 |1
+<UE070> \xFA\xD2 |1
+<UE071> \xFA\xD3 |0
+<UE072> \xFA\xD4 |1
+<UE073> \xFA\xD5 |0
+<UE074> \xFA\xD6 |0
+<UE075> \xFA\xD7 |0
+<UE076> \xFA\xD8 |1
+<UE077> \xFA\xD9 |1
+<UE078> \xFA\xDA |0
+<UE079> \xFA\xDB |1
+<UE07A> \xFA\xDC |1
+<UE07B> \xFA\xDD |1
+<UE07C> \xFA\xDE |1
+<UE07D> \xFA\xDF |0
+<UE07E> \xFA\xE0 |1
+<UE07F> \xFA\xE1 |1
+<UE080> \xFA\xE2 |1
+<UE081> \xFA\xE3 |1
+<UE082> \xFA\xE4 |1
+<UE083> \xFA\xE5 |1
+<UE084> \xFA\xE6 |1
+<UE085> \xFA\xE7 |1
+<UE086> \xFA\xE8 |1
+<UE087> \xFA\xE9 |0
+<UE088> \xFA\xEA |1
+<UE089> \xFA\xEB |0
+<UE08A> \xFA\xEC |0
+<UE08B> \xFA\xED |1
+<UE08C> \xFA\xEE |0
+<UE08D> \xFA\xEF |1
+<UE08E> \xFA\xF0 |1
+<UE08F> \xFA\xF1 |1
+<UE090> \xFA\xF2 |1
+<UE091> \xFA\xF3 |1
+<UE092> \xFA\xF4 |1
+<UE093> \xFA\xF5 |0
+<UE094> \xFA\xF6 |0
+<UE095> \xFA\xF7 |1
+<UE096> \xFA\xF8 |1
+<UE097> \xFA\xF9 |1
+<UE098> \xFA\xFA |1
+<UE099> \xFA\xFB |0
+<UE09A> \xFA\xFC |0
+<UE09B> \xFA\xFD |1
+<UE09C> \xFA\xFE |0
+<UE09D> \xFB\x40 |0
+<UE09E> \xFB\x41 |0
+<UE09F> \xFB\x42 |1
+<UE0A0> \xFB\x43 |1
+<UE0A1> \xFB\x44 |1
+<UE0A2> \xFB\x45 |1
+<UE0A3> \xFB\x46 |1
+<UE0A4> \xFB\x47 |1
+<UE0A5> \xFB\x48 |0
+<UE0A6> \xFB\x49 |0
+<UE0A7> \xFB\x4A |0
+<UE0A8> \xFB\x4B |1
+<UE0A9> \xFB\x4C |0
+<UE0AA> \xFB\x4D |1
+<UE0AB> \xFB\x4E |0
+<UE0AC> \xFB\x4F |1
+<UE0AD> \xFB\x50 |1
+<UE0AE> \xFB\x51 |0
+<UE0AF> \xFB\x52 |1
+<UE0B0> \xFB\x53 |1
+<UE0B1> \xFB\x54 |1
+<UE0B2> \xFB\x55 |1
+<UE0B3> \xFB\x56 |1
+<UE0B4> \xFB\x57 |1
+<UE0B5> \xFB\x58 |1
+<UE0B6> \xFB\x59 |1
+<UE0B7> \xFB\x5A |1
+<UE0B8> \xFB\x5B |1
+<UE0B9> \xFB\x5C |1
+<UE0BA> \xFB\x5D |0
+<UE0BB> \xFB\x5E |1
+<UE0BC> \xFB\x5F |0
+<UE0BD> \xFB\x60 |1
+<UE0BE> \xFB\x61 |0
+<UE0BF> \xFB\x62 |1
+<UE0C0> \xFB\x63 |1
+<UE0C1> \xFB\x64 |1
+<UE0C2> \xFB\x65 |1
+<UE0C3> \xFB\x66 |0
+<UE0C4> \xFB\x67 |1
+<UE0C5> \xFB\x68 |0
+<UE0C6> \xFB\x69 |1
+<UE0C7> \xFB\x6A |0
+<UE0C8> \xFB\x6B |0
+<UE0C9> \xFB\x6C |1
+<UE0CA> \xFB\x6D |0
+<UE0CB> \xFB\x6E |1
+<UE0CC> \xFB\x6F |1
+<UE0CD> \xFB\x70 |1
+<UE0CE> \xFB\x71 |1
+<UE0CF> \xFB\x72 |1
+<UE0D0> \xFB\x73 |0
+<UE0D1> \xFB\x74 |1
+<UE0D2> \xFB\x75 |1
+<UE0D3> \xFB\x76 |1
+<UE0D4> \xFB\x77 |0
+<UE0D5> \xFB\x78 |0
+<UE0D6> \xFB\x79 |1
+<UE0D7> \xFB\x7A |1
+<UE0D8> \xFB\x7B |1
+<UE0D9> \xFB\x7C |1
+<UE0DA> \xFB\x7D |1
+<UE0DB> \xFB\x7E |1
+<UE0DC> \xFB\xA1 |0
+<UE0DD> \xFB\xA2 |1
+<UE0DE> \xFB\xA3 |1
+<UE0DF> \xFB\xA4 |0
+<UE0E0> \xFB\xA5 |1
+<UE0E1> \xFB\xA6 |1
+<UE0E2> \xFB\xA7 |0
+<UE0E3> \xFB\xA8 |0
+<UE0E4> \xFB\xA9 |0
+<UE0E5> \xFB\xAA |0
+<UE0E6> \xFB\xAB |1
+<UE0E7> \xFB\xAC |0
+<UE0E8> \xFB\xAD |0
+<UE0E9> \xFB\xAE |0
+<UE0EA> \xFB\xAF |1
+<UE0EB> \xFB\xB0 |0
+<UE0EC> \xFB\xB1 |0
+<UE0ED> \xFB\xB2 |1
+<UE0EE> \xFB\xB3 |0
+<UE0EF> \xFB\xB4 |1
+<UE0F0> \xFB\xB5 |1
+<UE0F1> \xFB\xB6 |1
+<UE0F2> \xFB\xB7 |0
+<UE0F3> \xFB\xB8 |0
+<UE0F4> \xFB\xB9 |1
+<UE0F5> \xFB\xBA |1
+<UE0F6> \xFB\xBB |1
+<UE0F7> \xFB\xBC |1
+<UE0F8> \xFB\xBD |0
+<UE0F9> \xFB\xBE |0
+<UE0FA> \xFB\xBF |1
+<UE0FB> \xFB\xC0 |0
+<UE0FC> \xFB\xC1 |1
+<UE0FD> \xFB\xC2 |0
+<UE0FE> \xFB\xC3 |1
+<UE0FF> \xFB\xC4 |1
+<UE100> \xFB\xC5 |1
+<UE101> \xFB\xC6 |1
+<UE102> \xFB\xC7 |1
+<UE103> \xFB\xC8 |0
+<UE104> \xFB\xC9 |1
+<UE105> \xFB\xCA |1
+<UE106> \xFB\xCB |0
+<UE107> \xFB\xCC |1
+<UE108> \xFB\xCD |1
+<UE109> \xFB\xCE |0
+<UE10A> \xFB\xCF |0
+<UE10B> \xFB\xD0 |0
+<UE10C> \xFB\xD1 |1
+<UE10D> \xFB\xD2 |1
+<UE10E> \xFB\xD3 |1
+<UE10F> \xFB\xD4 |1
+<UE110> \xFB\xD5 |0
+<UE111> \xFB\xD6 |1
+<UE112> \xFB\xD7 |1
+<UE113> \xFB\xD8 |1
+<UE114> \xFB\xD9 |0
+<UE115> \xFB\xDA |0
+<UE116> \xFB\xDB |1
+<UE117> \xFB\xDC |1
+<UE118> \xFB\xDD |1
+<UE119> \xFB\xDE |1
+<UE11A> \xFB\xDF |1
+<UE11B> \xFB\xE0 |1
+<UE11C> \xFB\xE1 |0
+<UE11D> \xFB\xE2 |0
+<UE11E> \xFB\xE3 |1
+<UE11F> \xFB\xE4 |1
+<UE120> \xFB\xE5 |1
+<UE121> \xFB\xE6 |0
+<UE122> \xFB\xE7 |1
+<UE123> \xFB\xE8 |1
+<UE124> \xFB\xE9 |1
+<UE125> \xFB\xEA |1
+<UE126> \xFB\xEB |0
+<UE127> \xFB\xEC |0
+<UE128> \xFB\xED |0
+<UE129> \xFB\xEE |1
+<UE12A> \xFB\xEF |1
+<UE12B> \xFB\xF0 |1
+<UE12C> \xFB\xF1 |1
+<UE12D> \xFB\xF2 |1
+<UE12E> \xFB\xF3 |0
+<UE12F> \xFB\xF4 |1
+<UE130> \xFB\xF5 |0
+<UE131> \xFB\xF6 |0
+<UE132> \xFB\xF7 |1
+<UE133> \xFB\xF8 |1
+<UE134> \xFB\xF9 |0
+<UE135> \xFB\xFA |1
+<UE136> \xFB\xFB |0
+<UE137> \xFB\xFC |1
+<UE138> \xFB\xFD |1
+<UE139> \xFB\xFE |0
+<UE13A> \xFC\x40 |1
+<UE13B> \xFC\x41 |1
+<UE13C> \xFC\x42 |1
+<UE13D> \xFC\x43 |1
+<UE13E> \xFC\x44 |1
+<UE13F> \xFC\x45 |1
+<UE140> \xFC\x46 |1
+<UE141> \xFC\x47 |0
+<UE142> \xFC\x48 |0
+<UE143> \xFC\x49 |1
+<UE144> \xFC\x4A |1
+<UE145> \xFC\x4B |0
+<UE146> \xFC\x4C |1
+<UE147> \xFC\x4D |0
+<UE148> \xFC\x4E |0
+<UE149> \xFC\x4F |0
+<UE14A> \xFC\x50 |0
+<UE14B> \xFC\x51 |1
+<UE14C> \xFC\x52 |1
+<UE14D> \xFC\x53 |0
+<UE14E> \xFC\x54 |1
+<UE14F> \xFC\x55 |1
+<UE150> \xFC\x56 |0
+<UE151> \xFC\x57 |1
+<UE152> \xFC\x58 |1
+<UE153> \xFC\x59 |1
+<UE154> \xFC\x5A |0
+<UE155> \xFC\x5B |0
+<UE156> \xFC\x5C |0
+<UE157> \xFC\x5D |0
+<UE158> \xFC\x5E |1
+<UE159> \xFC\x5F |0
+<UE15A> \xFC\x60 |0
+<UE15B> \xFC\x61 |1
+<UE15C> \xFC\x62 |1
+<UE15D> \xFC\x63 |0
+<UE15E> \xFC\x64 |1
+<UE15F> \xFC\x65 |1
+<UE160> \xFC\x66 |1
+<UE161> \xFC\x67 |1
+<UE162> \xFC\x68 |0
+<UE163> \xFC\x69 |1
+<UE164> \xFC\x6A |1
+<UE165> \xFC\x6B |1
+<UE166> \xFC\x6C |0
+<UE167> \xFC\x6D |1
+<UE168> \xFC\x6E |0
+<UE169> \xFC\x6F |0
+<UE16A> \xFC\x70 |0
+<UE16B> \xFC\x71 |1
+<UE16C> \xFC\x72 |1
+<UE16D> \xFC\x73 |1
+<UE16E> \xFC\x74 |1
+<UE16F> \xFC\x75 |1
+<UE170> \xFC\x76 |1
+<UE171> \xFC\x77 |0
+<UE172> \xFC\x78 |0
+<UE173> \xFC\x79 |1
+<UE174> \xFC\x7A |1
+<UE175> \xFC\x7B |0
+<UE176> \xFC\x7C |1
+<UE177> \xFC\x7D |1
+<UE178> \xFC\x7E |0
+<UE179> \xFC\xA1 |0
+<UE17A> \xFC\xA2 |1
+<UE17B> \xFC\xA3 |0
+<UE17C> \xFC\xA4 |0
+<UE17D> \xFC\xA5 |1
+<UE17E> \xFC\xA6 |1
+<UE17F> \xFC\xA7 |0
+<UE180> \xFC\xA8 |0
+<UE181> \xFC\xA9 |1
+<UE182> \xFC\xAA |1
+<UE183> \xFC\xAB |1
+<UE184> \xFC\xAC |1
+<UE185> \xFC\xAD |0
+<UE186> \xFC\xAE |1
+<UE187> \xFC\xAF |0
+<UE188> \xFC\xB0 |1
+<UE189> \xFC\xB1 |0
+<UE18A> \xFC\xB2 |1
+<UE18B> \xFC\xB3 |0
+<UE18C> \xFC\xB4 |1
+<UE18D> \xFC\xB5 |1
+<UE18E> \xFC\xB6 |1
+<UE18F> \xFC\xB7 |0
+<UE190> \xFC\xB8 |0
+<UE191> \xFC\xB9 |0
+<UE192> \xFC\xBA |1
+<UE193> \xFC\xBB |0
+<UE194> \xFC\xBC |1
+<UE195> \xFC\xBD |0
+<UE196> \xFC\xBE |0
+<UE197> \xFC\xBF |1
+<UE198> \xFC\xC0 |1
+<UE199> \xFC\xC1 |1
+<UE19A> \xFC\xC2 |1
+<UE19B> \xFC\xC3 |1
+<UE19C> \xFC\xC4 |1
+<UE19D> \xFC\xC5 |1
+<UE19E> \xFC\xC6 |1
+<UE19F> \xFC\xC7 |0
+<UE1A0> \xFC\xC8 |0
+<UE1A1> \xFC\xC9 |1
+<UE1A2> \xFC\xCA |1
+<UE1A3> \xFC\xCB |1
+<UE1A4> \xFC\xCC |0
+<UE1A5> \xFC\xCD |1
+<UE1A6> \xFC\xCE |0
+<UE1A7> \xFC\xCF |1
+<UE1A8> \xFC\xD0 |1
+<UE1A9> \xFC\xD1 |1
+<UE1AA> \xFC\xD2 |0
+<UE1AB> \xFC\xD3 |1
+<UE1AC> \xFC\xD4 |1
+<UE1AD> \xFC\xD5 |1
+<UE1AE> \xFC\xD6 |0
+<UE1AF> \xFC\xD7 |1
+<UE1B0> \xFC\xD8 |0
+<UE1B1> \xFC\xD9 |0
+<UE1B2> \xFC\xDA |1
+<UE1B3> \xFC\xDB |0
+<UE1B4> \xFC\xDC |0
+<UE1B5> \xFC\xDD |1
+<UE1B6> \xFC\xDE |0
+<UE1B7> \xFC\xDF |1
+<UE1B8> \xFC\xE0 |0
+<UE1B9> \xFC\xE1 |1
+<UE1BA> \xFC\xE2 |0
+<UE1BB> \xFC\xE3 |0
+<UE1BC> \xFC\xE4 |0
+<UE1BD> \xFC\xE5 |0
+<UE1BE> \xFC\xE6 |0
+<UE1BF> \xFC\xE7 |0
+<UE1C0> \xFC\xE8 |1
+<UE1C1> \xFC\xE9 |0
+<UE1C2> \xFC\xEA |1
+<UE1C3> \xFC\xEB |1
+<UE1C4> \xFC\xEC |0
+<UE1C5> \xFC\xED |0
+<UE1C6> \xFC\xEE |1
+<UE1C7> \xFC\xEF |1
+<UE1C8> \xFC\xF0 |0
+<UE1C9> \xFC\xF1 |0
+<UE1CA> \xFC\xF2 |1
+<UE1CB> \xFC\xF3 |1
+<UE1CC> \xFC\xF4 |0
+<UE1CD> \xFC\xF5 |0
+<UE1CE> \xFC\xF6 |1
+<UE1CF> \xFC\xF7 |1
+<UE1D0> \xFC\xF8 |1
+<UE1D1> \xFC\xF9 |1
+<UE1D2> \xFC\xFA |1
+<UE1D3> \xFC\xFB |1
+<UE1D4> \xFC\xFC |0
+<UE1D5> \xFC\xFD |0
+<UE1D6> \xFC\xFE |1
+<UE1D7> \xFD\x40 |0
+<UE1D8> \xFD\x41 |1
+<UE1D9> \xFD\x42 |1
+<UE1DA> \xFD\x43 |0
+<UE1DB> \xFD\x44 |1
+<UE1DC> \xFD\x45 |1
+<UE1DD> \xFD\x46 |0
+<UE1DE> \xFD\x47 |1
+<UE1DF> \xFD\x48 |1
+<UE1E0> \xFD\x49 |1
+<UE1E1> \xFD\x4A |1
+<UE1E2> \xFD\x4B |0
+<UE1E3> \xFD\x4C |1
+<UE1E4> \xFD\x4D |1
+<UE1E5> \xFD\x4E |1
+<UE1E6> \xFD\x4F |0
+<UE1E7> \xFD\x50 |1
+<UE1E8> \xFD\x51 |1
+<UE1E9> \xFD\x52 |1
+<UE1EA> \xFD\x53 |1
+<UE1EB> \xFD\x54 |0
+<UE1EC> \xFD\x55 |1
+<UE1ED> \xFD\x56 |1
+<UE1EE> \xFD\x57 |1
+<UE1EF> \xFD\x58 |0
+<UE1F0> \xFD\x59 |0
+<UE1F1> \xFD\x5A |1
+<UE1F2> \xFD\x5B |0
+<UE1F3> \xFD\x5C |1
+<UE1F4> \xFD\x5D |1
+<UE1F5> \xFD\x5E |1
+<UE1F6> \xFD\x5F |1
+<UE1F7> \xFD\x60 |0
+<UE1F8> \xFD\x61 |1
+<UE1F9> \xFD\x62 |1
+<UE1FA> \xFD\x63 |0
+<UE1FB> \xFD\x64 |1
+<UE1FC> \xFD\x65 |1
+<UE1FD> \xFD\x66 |1
+<UE1FE> \xFD\x67 |0
+<UE1FF> \xFD\x68 |1
+<UE200> \xFD\x69 |0
+<UE201> \xFD\x6A |0
+<UE202> \xFD\x6B |0
+<UE203> \xFD\x6C |1
+<UE204> \xFD\x6D |1
+<UE205> \xFD\x6E |0
+<UE206> \xFD\x6F |1
+<UE207> \xFD\x70 |0
+<UE208> \xFD\x71 |1
+<UE209> \xFD\x72 |1
+<UE20A> \xFD\x73 |0
+<UE20B> \xFD\x74 |0
+<UE20C> \xFD\x75 |0
+<UE20D> \xFD\x76 |1
+<UE20E> \xFD\x77 |1
+<UE20F> \xFD\x78 |1
+<UE210> \xFD\x79 |0
+<UE211> \xFD\x7A |1
+<UE212> \xFD\x7B |0
+<UE213> \xFD\x7C |0
+<UE214> \xFD\x7D |0
+<UE215> \xFD\x7E |0
+<UE216> \xFD\xA1 |0
+<UE217> \xFD\xA2 |1
+<UE218> \xFD\xA3 |1
+<UE219> \xFD\xA4 |0
+<UE21A> \xFD\xA5 |1
+<UE21B> \xFD\xA6 |0
+<UE21C> \xFD\xA7 |0
+<UE21D> \xFD\xA8 |1
+<UE21E> \xFD\xA9 |1
+<UE21F> \xFD\xAA |0
+<UE220> \xFD\xAB |0
+<UE221> \xFD\xAC |0
+<UE222> \xFD\xAD |1
+<UE223> \xFD\xAE |1
+<UE224> \xFD\xAF |1
+<UE225> \xFD\xB0 |1
+<UE226> \xFD\xB1 |0
+<UE227> \xFD\xB2 |0
+<UE228> \xFD\xB3 |0
+<UE229> \xFD\xB4 |1
+<UE22A> \xFD\xB5 |0
+<UE22B> \xFD\xB6 |1
+<UE22C> \xFD\xB7 |0
+<UE22D> \xFD\xB8 |0
+<UE22E> \xFD\xB9 |1
+<UE22F> \xFD\xBA |0
+<UE230> \xFD\xBB |0
+<UE231> \xFD\xBC |0
+<UE232> \xFD\xBD |1
+<UE233> \xFD\xBE |0
+<UE234> \xFD\xBF |1
+<UE235> \xFD\xC0 |1
+<UE236> \xFD\xC1 |1
+<UE237> \xFD\xC2 |0
+<UE238> \xFD\xC3 |1
+<UE239> \xFD\xC4 |1
+<UE23A> \xFD\xC5 |1
+<UE23B> \xFD\xC6 |0
+<UE23C> \xFD\xC7 |1
+<UE23D> \xFD\xC8 |0
+<UE23E> \xFD\xC9 |0
+<UE23F> \xFD\xCA |1
+<UE240> \xFD\xCB |1
+<UE241> \xFD\xCC |1
+<UE242> \xFD\xCD |1
+<UE243> \xFD\xCE |1
+<UE244> \xFD\xCF |1
+<UE245> \xFD\xD0 |0
+<UE246> \xFD\xD1 |1
+<UE247> \xFD\xD2 |1
+<UE248> \xFD\xD3 |0
+<UE249> \xFD\xD4 |1
+<UE24A> \xFD\xD5 |0
+<UE24B> \xFD\xD6 |0
+<UE24C> \xFD\xD7 |0
+<UE24D> \xFD\xD8 |0
+<UE24E> \xFD\xD9 |0
+<UE24F> \xFD\xDA |0
+<UE250> \xFD\xDB |1
+<UE251> \xFD\xDC |0
+<UE252> \xFD\xDD |0
+<UE253> \xFD\xDE |0
+<UE254> \xFD\xDF |0
+<UE255> \xFD\xE0 |1
+<UE256> \xFD\xE1 |1
+<UE257> \xFD\xE2 |1
+<UE258> \xFD\xE3 |1
+<UE259> \xFD\xE4 |1
+<UE25A> \xFD\xE5 |1
+<UE25B> \xFD\xE6 |1
+<UE25C> \xFD\xE7 |1
+<UE25D> \xFD\xE8 |1
+<UE25E> \xFD\xE9 |1
+<UE25F> \xFD\xEA |1
+<UE260> \xFD\xEB |1
+<UE261> \xFD\xEC |0
+<UE262> \xFD\xED |1
+<UE263> \xFD\xEE |1
+<UE264> \xFD\xEF |1
+<UE265> \xFD\xF0 |1
+<UE266> \xFD\xF1 |0
+<UE267> \xFD\xF2 |1
+<UE268> \xFD\xF3 |0
+<UE269> \xFD\xF4 |1
+<UE26A> \xFD\xF5 |1
+<UE26B> \xFD\xF6 |0
+<UE26C> \xFD\xF7 |1
+<UE26D> \xFD\xF8 |0
+<UE26E> \xFD\xF9 |0
+<UE26F> \xFD\xFA |0
+<UE270> \xFD\xFB |1
+<UE271> \xFD\xFC |0
+<UE272> \xFD\xFD |1
+<UE273> \xFD\xFE |1
+<UE274> \xFE\x40 |1
+<UE275> \xFE\x41 |1
+<UE276> \xFE\x42 |1
+<UE277> \xFE\x43 |1
+<UE278> \xFE\x44 |1
+<UE279> \xFE\x45 |1
+<UE27A> \xFE\x46 |0
+<UE27B> \xFE\x47 |1
+<UE27C> \xFE\x48 |1
+<UE27D> \xFE\x49 |0
+<UE27E> \xFE\x4A |1
+<UE27F> \xFE\x4B |1
+<UE280> \xFE\x4C |1
+<UE281> \xFE\x4D |1
+<UE282> \xFE\x4E |0
+<UE283> \xFE\x4F |1
+<UE284> \xFE\x50 |1
+<UE285> \xFE\x51 |1
+<UE286> \xFE\x52 |0
+<UE287> \xFE\x53 |1
+<UE288> \xFE\x54 |0
+<UE289> \xFE\x55 |0
+<UE28A> \xFE\x56 |1
+<UE28B> \xFE\x57 |0
+<UE28C> \xFE\x58 |1
+<UE28D> \xFE\x59 |1
+<UE28E> \xFE\x5A |1
+<UE28F> \xFE\x5B |1
+<UE290> \xFE\x5C |0
+<UE291> \xFE\x5D |0
+<UE292> \xFE\x5E |1
+<UE293> \xFE\x5F |1
+<UE294> \xFE\x60 |0
+<UE295> \xFE\x61 |0
+<UE296> \xFE\x62 |0
+<UE297> \xFE\x63 |1
+<UE298> \xFE\x64 |1
+<UE299> \xFE\x65 |0
+<UE29A> \xFE\x66 |0
+<UE29B> \xFE\x67 |0
+<UE29C> \xFE\x68 |1
+<UE29D> \xFE\x69 |1
+<UE29E> \xFE\x6A |1
+<UE29F> \xFE\x6B |0
+<UE2A0> \xFE\x6C |1
+<UE2A1> \xFE\x6D |0
+<UE2A2> \xFE\x6E |1
+<UE2A3> \xFE\x6F |0
+<UE2A4> \xFE\x70 |0
+<UE2A5> \xFE\x71 |1
+<UE2A6> \xFE\x72 |0
+<UE2A7> \xFE\x73 |1
+<UE2A8> \xFE\x74 |1
+<UE2A9> \xFE\x75 |1
+<UE2AA> \xFE\x76 |1
+<UE2AB> \xFE\x77 |1
+<UE2AC> \xFE\x78 |1
+<UE2AD> \xFE\x79 |1
+<UE2AE> \xFE\x7A |1
+<UE2AF> \xFE\x7B |1
+<UE2B0> \xFE\x7C |1
+<UE2B1> \xFE\x7D |1
+<UE2B2> \xFE\x7E |0
+<UE2B3> \xFE\xA1 |0
+<UE2B4> \xFE\xA2 |0
+<UE2B5> \xFE\xA3 |0
+<UE2B6> \xFE\xA4 |1
+<UE2B7> \xFE\xA5 |0
+<UE2B8> \xFE\xA6 |0
+<UE2B9> \xFE\xA7 |1
+<UE2BA> \xFE\xA8 |0
+<UE2BB> \xFE\xA9 |1
+<UE2BC> \xFE\xAA |0
+<UE2BD> \xFE\xAB |1
+<UE2BE> \xFE\xAC |0
+<UE2BF> \xFE\xAD |0
+<UE2C0> \xFE\xAE |1
+<UE2C1> \xFE\xAF |0
+<UE2C2> \xFE\xB0 |1
+<UE2C3> \xFE\xB1 |1
+<UE2C4> \xFE\xB2 |1
+<UE2C5> \xFE\xB3 |1
+<UE2C6> \xFE\xB4 |1
+<UE2C7> \xFE\xB5 |0
+<UE2C8> \xFE\xB6 |1
+<UE2C9> \xFE\xB7 |0
+<UE2CA> \xFE\xB8 |1
+<UE2CB> \xFE\xB9 |1
+<UE2CC> \xFE\xBA |1
+<UE2CD> \xFE\xBB |1
+<UE2CE> \xFE\xBC |1
+<UE2CF> \xFE\xBD |1
+<UE2D0> \xFE\xBE |1
+<UE2D1> \xFE\xBF |1
+<UE2D2> \xFE\xC0 |1
+<UE2D3> \xFE\xC1 |1
+<UE2D4> \xFE\xC2 |0
+<UE2D5> \xFE\xC3 |1
+<UE2D6> \xFE\xC4 |1
+<UE2D7> \xFE\xC5 |1
+<UE2D8> \xFE\xC6 |0
+<UE2D9> \xFE\xC7 |0
+<UE2DA> \xFE\xC8 |1
+<UE2DB> \xFE\xC9 |1
+<UE2DC> \xFE\xCA |1
+<UE2DD> \xFE\xCB |1
+<UE2DE> \xFE\xCC |0
+<UE2DF> \xFE\xCD |1
+<UE2E0> \xFE\xCE |0
+<UE2E1> \xFE\xCF |0
+<UE2E2> \xFE\xD0 |0
+<UE2E3> \xFE\xD1 |1
+<UE2E4> \xFE\xD2 |1
+<UE2E5> \xFE\xD3 |1
+<UE2E6> \xFE\xD4 |1
+<UE2E7> \xFE\xD5 |0
+<UE2E8> \xFE\xD6 |1
+<UE2E9> \xFE\xD7 |0
+<UE2EA> \xFE\xD8 |1
+<UE2EB> \xFE\xD9 |0
+<UE2EC> \xFE\xDA |0
+<UE2ED> \xFE\xDB |0
+<UE2EE> \xFE\xDC |1
+<UE2EF> \xFE\xDD |0
+<UE2F0> \xFE\xDE |0
+<UE2F1> \xFE\xDF |0
+<UE2F2> \xFE\xE0 |1
+<UE2F3> \xFE\xE1 |1
+<UE2F4> \xFE\xE2 |1
+<UE2F5> \xFE\xE3 |1
+<UE2F6> \xFE\xE4 |1
+<UE2F7> \xFE\xE5 |1
+<UE2F8> \xFE\xE6 |0
+<UE2F9> \xFE\xE7 |1
+<UE2FA> \xFE\xE8 |1
+<UE2FB> \xFE\xE9 |1
+<UE2FC> \xFE\xEA |0
+<UE2FD> \xFE\xEB |1
+<UE2FE> \xFE\xEC |1
+<UE2FF> \xFE\xED |0
+<UE300> \xFE\xEE |0
+<UE301> \xFE\xEF |0
+<UE302> \xFE\xF0 |1
+<UE303> \xFE\xF1 |1
+<UE304> \xFE\xF2 |1
+<UE305> \xFE\xF3 |1
+<UE306> \xFE\xF4 |0
+<UE307> \xFE\xF5 |1
+<UE308> \xFE\xF6 |0
+<UE309> \xFE\xF7 |1
+<UE30A> \xFE\xF8 |1
+<UE30B> \xFE\xF9 |1
+<UE30C> \xFE\xFA |0
+<UE30D> \xFE\xFB |1
+<UE30E> \xFE\xFC |1
+<UE30F> \xFE\xFD |0
+<UE310> \xFE\xFE |1
+<UE311> \x8E\x40 |0
+<UE312> \x8E\x41 |1
+<UE313> \x8E\x42 |0
+<UE314> \x8E\x43 |1
+<UE315> \x8E\x44 |0
+<UE316> \x8E\x45 |1
+<UE317> \x8E\x46 |1
+<UE318> \x8E\x47 |0
+<UE319> \x8E\x48 |1
+<UE31A> \x8E\x49 |1
+<UE31B> \x8E\x4A |0
+<UE31C> \x8E\x4B |0
+<UE31D> \x8E\x4C |1
+<UE31E> \x8E\x4D |1
+<UE31F> \x8E\x4E |0
+<UE320> \x8E\x4F |1
+<UE321> \x8E\x50 |1
+<UE322> \x8E\x51 |1
+<UE323> \x8E\x52 |1
+<UE324> \x8E\x53 |1
+<UE325> \x8E\x54 |0
+<UE326> \x8E\x55 |1
+<UE327> \x8E\x56 |1
+<UE328> \x8E\x57 |1
+<UE329> \x8E\x58 |1
+<UE32A> \x8E\x59 |1
+<UE32B> \x8E\x5A |1
+<UE32C> \x8E\x5B |0
+<UE32D> \x8E\x5C |1
+<UE32E> \x8E\x5D |1
+<UE32F> \x8E\x5E |1
+<UE330> \x8E\x5F |0
+<UE331> \x8E\x60 |0
+<UE332> \x8E\x61 |1
+<UE333> \x8E\x62 |1
+<UE334> \x8E\x63 |1
+<UE335> \x8E\x64 |0
+<UE336> \x8E\x65 |0
+<UE337> \x8E\x66 |1
+<UE338> \x8E\x67 |1
+<UE339> \x8E\x68 |1
+<UE33A> \x8E\x69 |0
+<UE33B> \x8E\x6A |0
+<UE33C> \x8E\x6B |1
+<UE33D> \x8E\x6C |0
+<UE33E> \x8E\x6D |1
+<UE33F> \x8E\x6E |1
+<UE340> \x8E\x6F |0
+<UE341> \x8E\x70 |1
+<UE342> \x8E\x71 |0
+<UE343> \x8E\x72 |1
+<UE344> \x8E\x73 |1
+<UE345> \x8E\x74 |0
+<UE346> \x8E\x75 |1
+<UE347> \x8E\x76 |1
+<UE348> \x8E\x77 |0
+<UE349> \x8E\x78 |1
+<UE34A> \x8E\x79 |1
+<UE34B> \x8E\x7A |1
+<UE34C> \x8E\x7B |1
+<UE34D> \x8E\x7C |1
+<UE34E> \x8E\x7D |1
+<UE34F> \x8E\x7E |0
+<UE350> \x8E\xA1 |1
+<UE351> \x8E\xA2 |1
+<UE352> \x8E\xA3 |0
+<UE353> \x8E\xA4 |1
+<UE354> \x8E\xA5 |0
+<UE355> \x8E\xA6 |1
+<UE356> \x8E\xA7 |1
+<UE357> \x8E\xA8 |1
+<UE358> \x8E\xA9 |1
+<UE359> \x8E\xAA |1
+<UE35A> \x8E\xAB |0
+<UE35B> \x8E\xAC |0
+<UE35C> \x8E\xAD |0
+<UE35D> \x8E\xAE |1
+<UE35E> \x8E\xAF |1
+<UE35F> \x8E\xB0 |1
+<UE360> \x8E\xB1 |0
+<UE361> \x8E\xB2 |1
+<UE362> \x8E\xB3 |0
+<UE363> \x8E\xB4 |0
+<UE364> \x8E\xB5 |0
+<UE365> \x8E\xB6 |0
+<UE366> \x8E\xB7 |1
+<UE367> \x8E\xB8 |1
+<UE368> \x8E\xB9 |1
+<UE369> \x8E\xBA |1
+<UE36A> \x8E\xBB |1
+<UE36B> \x8E\xBC |1
+<UE36C> \x8E\xBD |1
+<UE36D> \x8E\xBE |1
+<UE36E> \x8E\xBF |1
+<UE36F> \x8E\xC0 |0
+<UE370> \x8E\xC1 |1
+<UE371> \x8E\xC2 |1
+<UE372> \x8E\xC3 |0
+<UE373> \x8E\xC4 |1
+<UE374> \x8E\xC5 |0
+<UE375> \x8E\xC6 |0
+<UE376> \x8E\xC7 |1
+<UE377> \x8E\xC8 |0
+<UE378> \x8E\xC9 |1
+<UE379> \x8E\xCA |0
+<UE37A> \x8E\xCB |1
+<UE37B> \x8E\xCC |0
+<UE37C> \x8E\xCD |0
+<UE37D> \x8E\xCE |1
+<UE37E> \x8E\xCF |1
+<UE37F> \x8E\xD0 |0
+<UE380> \x8E\xD1 |1
+<UE381> \x8E\xD2 |0
+<UE382> \x8E\xD3 |0
+<UE383> \x8E\xD4 |1
+<UE384> \x8E\xD5 |1
+<UE385> \x8E\xD6 |1
+<UE386> \x8E\xD7 |0
+<UE387> \x8E\xD8 |1
+<UE388> \x8E\xD9 |0
+<UE389> \x8E\xDA |0
+<UE38A> \x8E\xDB |0
+<UE38B> \x8E\xDC |1
+<UE38C> \x8E\xDD |1
+<UE38D> \x8E\xDE |0
+<UE38E> \x8E\xDF |1
+<UE38F> \x8E\xE0 |1
+<UE390> \x8E\xE1 |1
+<UE391> \x8E\xE2 |0
+<UE392> \x8E\xE3 |1
+<UE393> \x8E\xE4 |0
+<UE394> \x8E\xE5 |0
+<UE395> \x8E\xE6 |1
+<UE396> \x8E\xE7 |0
+<UE397> \x8E\xE8 |1
+<UE398> \x8E\xE9 |0
+<UE399> \x8E\xEA |1
+<UE39A> \x8E\xEB |0
+<UE39B> \x8E\xEC |0
+<UE39C> \x8E\xED |1
+<UE39D> \x8E\xEE |1
+<UE39E> \x8E\xEF |0
+<UE39F> \x8E\xF0 |0
+<UE3A0> \x8E\xF1 |0
+<UE3A1> \x8E\xF2 |1
+<UE3A2> \x8E\xF3 |0
+<UE3A3> \x8E\xF4 |1
+<UE3A4> \x8E\xF5 |1
+<UE3A5> \x8E\xF6 |0
+<UE3A6> \x8E\xF7 |0
+<UE3A7> \x8E\xF8 |0
+<UE3A8> \x8E\xF9 |0
+<UE3A9> \x8E\xFA |0
+<UE3AA> \x8E\xFB |1
+<UE3AB> \x8E\xFC |1
+<UE3AC> \x8E\xFD |0
+<UE3AD> \x8E\xFE |1
+<UE3AE> \x8F\x40 |1
+<UE3AF> \x8F\x41 |1
+<UE3B0> \x8F\x42 |1
+<UE3B1> \x8F\x43 |0
+<UE3B2> \x8F\x44 |0
+<UE3B3> \x8F\x45 |1
+<UE3B4> \x8F\x46 |0
+<UE3B5> \x8F\x47 |0
+<UE3B6> \x8F\x48 |1
+<UE3B7> \x8F\x49 |1
+<UE3B8> \x8F\x4A |1
+<UE3B9> \x8F\x4B |0
+<UE3BA> \x8F\x4C |0
+<UE3BB> \x8F\x4D |0
+<UE3BC> \x8F\x4E |0
+<UE3BD> \x8F\x4F |0
+<UE3BE> \x8F\x50 |1
+<UE3BF> \x8F\x51 |1
+<UE3C0> \x8F\x52 |1
+<UE3C1> \x8F\x53 |1
+<UE3C2> \x8F\x54 |1
+<UE3C3> \x8F\x55 |0
+<UE3C4> \x8F\x56 |1
+<UE3C5> \x8F\x57 |0
+<UE3C6> \x8F\x58 |1
+<UE3C7> \x8F\x59 |1
+<UE3C8> \x8F\x5A |0
+<UE3C9> \x8F\x5B |1
+<UE3CA> \x8F\x5C |1
+<UE3CB> \x8F\x5D |1
+<UE3CC> \x8F\x5E |0
+<UE3CD> \x8F\x5F |0
+<UE3CE> \x8F\x60 |1
+<UE3CF> \x8F\x61 |0
+<UE3D0> \x8F\x62 |1
+<UE3D1> \x8F\x63 |1
+<UE3D2> \x8F\x64 |1
+<UE3D3> \x8F\x65 |1
+<UE3D4> \x8F\x66 |1
+<UE3D5> \x8F\x67 |0
+<UE3D6> \x8F\x68 |1
+<UE3D7> \x8F\x69 |0
+<UE3D8> \x8F\x6A |0
+<UE3D9> \x8F\x6B |0
+<UE3DA> \x8F\x6C |0
+<UE3DB> \x8F\x6D |1
+<UE3DC> \x8F\x6E |0
+<UE3DD> \x8F\x6F |1
+<UE3DE> \x8F\x70 |1
+<UE3DF> \x8F\x71 |1
+<UE3E0> \x8F\x72 |1
+<UE3E1> \x8F\x73 |0
+<UE3E2> \x8F\x74 |1
+<UE3E3> \x8F\x75 |0
+<UE3E4> \x8F\x76 |1
+<UE3E5> \x8F\x77 |1
+<UE3E6> \x8F\x78 |1
+<UE3E7> \x8F\x79 |0
+<UE3E8> \x8F\x7A |1
+<UE3E9> \x8F\x7B |1
+<UE3EA> \x8F\x7C |1
+<UE3EB> \x8F\x7D |1
+<UE3EC> \x8F\x7E |1
+<UE3ED> \x8F\xA1 |0
+<UE3EE> \x8F\xA2 |0
+<UE3EF> \x8F\xA3 |1
+<UE3F0> \x8F\xA4 |0
+<UE3F1> \x8F\xA5 |1
+<UE3F2> \x8F\xA6 |0
+<UE3F3> \x8F\xA7 |0
+<UE3F4> \x8F\xA8 |0
+<UE3F5> \x8F\xA9 |1
+<UE3F6> \x8F\xAA |1
+<UE3F7> \x8F\xAB |1
+<UE3F8> \x8F\xAC |0
+<UE3F9> \x8F\xAD |1
+<UE3FA> \x8F\xAE |0
+<UE3FB> \x8F\xAF |1
+<UE3FC> \x8F\xB0 |1
+<UE3FD> \x8F\xB1 |0
+<UE3FE> \x8F\xB2 |1
+<UE3FF> \x8F\xB3 |0
+<UE400> \x8F\xB4 |1
+<UE401> \x8F\xB5 |1
+<UE402> \x8F\xB6 |1
+<UE403> \x8F\xB7 |1
+<UE404> \x8F\xB8 |1
+<UE405> \x8F\xB9 |1
+<UE406> \x8F\xBA |1
+<UE407> \x8F\xBB |1
+<UE408> \x8F\xBC |1
+<UE409> \x8F\xBD |0
+<UE40A> \x8F\xBE |0
+<UE40B> \x8F\xBF |0
+<UE40C> \x8F\xC0 |1
+<UE40D> \x8F\xC1 |1
+<UE40E> \x8F\xC2 |1
+<UE40F> \x8F\xC3 |1
+<UE410> \x8F\xC4 |1
+<UE411> \x8F\xC5 |1
+<UE412> \x8F\xC6 |1
+<UE413> \x8F\xC7 |1
+<UE414> \x8F\xC8 |0
+<UE415> \x8F\xC9 |1
+<UE416> \x8F\xCA |1
+<UE417> \x8F\xCB |0
+<UE418> \x8F\xCC |0
+<UE419> \x8F\xCD |1
+<UE41A> \x8F\xCE |1
+<UE41B> \x8F\xCF |0
+<UE41C> \x8F\xD0 |1
+<UE41D> \x8F\xD1 |0
+<UE41E> \x8F\xD2 |0
+<UE41F> \x8F\xD3 |1
+<UE420> \x8F\xD4 |1
+<UE421> \x8F\xD5 |1
+<UE422> \x8F\xD6 |1
+<UE423> \x8F\xD7 |0
+<UE424> \x8F\xD8 |1
+<UE425> \x8F\xD9 |0
+<UE426> \x8F\xDA |0
+<UE427> \x8F\xDB |1
+<UE428> \x8F\xDC |0
+<UE429> \x8F\xDD |1
+<UE42A> \x8F\xDE |1
+<UE42B> \x8F\xDF |1
+<UE42C> \x8F\xE0 |0
+<UE42D> \x8F\xE1 |0
+<UE42E> \x8F\xE2 |1
+<UE42F> \x8F\xE3 |1
+<UE430> \x8F\xE4 |1
+<UE431> \x8F\xE5 |1
+<UE432> \x8F\xE6 |0
+<UE433> \x8F\xE7 |1
+<UE434> \x8F\xE8 |1
+<UE435> \x8F\xE9 |1
+<UE436> \x8F\xEA |0
+<UE437> \x8F\xEB |1
+<UE438> \x8F\xEC |1
+<UE439> \x8F\xED |1
+<UE43A> \x8F\xEE |0
+<UE43B> \x8F\xEF |0
+<UE43C> \x8F\xF0 |0
+<UE43D> \x8F\xF1 |1
+<UE43E> \x8F\xF2 |0
+<UE43F> \x8F\xF3 |1
+<UE440> \x8F\xF4 |0
+<UE441> \x8F\xF5 |0
+<UE442> \x8F\xF6 |1
+<UE443> \x8F\xF7 |1
+<UE444> \x8F\xF8 |0
+<UE445> \x8F\xF9 |1
+<UE446> \x8F\xFA |1
+<UE447> \x8F\xFB |1
+<UE448> \x8F\xFC |0
+<UE449> \x8F\xFD |1
+<UE44A> \x8F\xFE |0
+<UE44B> \x90\x40 |1
+<UE44C> \x90\x41 |0
+<UE44D> \x90\x42 |0
+<UE44E> \x90\x43 |0
+<UE44F> \x90\x44 |1
+<UE450> \x90\x45 |0
+<UE451> \x90\x46 |0
+<UE452> \x90\x47 |1
+<UE453> \x90\x48 |1
+<UE454> \x90\x49 |1
+<UE455> \x90\x4A |1
+<UE456> \x90\x4B |1
+<UE457> \x90\x4C |1
+<UE458> \x90\x4D |1
+<UE459> \x90\x4E |0
+<UE45A> \x90\x4F |0
+<UE45B> \x90\x50 |1
+<UE45C> \x90\x51 |1
+<UE45D> \x90\x52 |0
+<UE45E> \x90\x53 |0
+<UE45F> \x90\x54 |1
+<UE460> \x90\x55 |1
+<UE461> \x90\x56 |0
+<UE462> \x90\x57 |0
+<UE463> \x90\x58 |0
+<UE464> \x90\x59 |1
+<UE465> \x90\x5A |0
+<UE466> \x90\x5B |1
+<UE467> \x90\x5C |0
+<UE468> \x90\x5D |0
+<UE469> \x90\x5E |0
+<UE46A> \x90\x5F |0
+<UE46B> \x90\x60 |1
+<UE46C> \x90\x61 |0
+<UE46D> \x90\x62 |1
+<UE46E> \x90\x63 |0
+<UE46F> \x90\x64 |0
+<UE470> \x90\x65 |1
+<UE471> \x90\x66 |0
+<UE472> \x90\x67 |0
+<UE473> \x90\x68 |1
+<UE474> \x90\x69 |0
+<UE475> \x90\x6A |1
+<UE476> \x90\x6B |0
+<UE477> \x90\x6C |1
+<UE478> \x90\x6D |0
+<UE479> \x90\x6E |1
+<UE47A> \x90\x6F |1
+<UE47B> \x90\x70 |1
+<UE47C> \x90\x71 |1
+<UE47D> \x90\x72 |1
+<UE47E> \x90\x73 |0
+<UE47F> \x90\x74 |0
+<UE480> \x90\x75 |1
+<UE481> \x90\x76 |1
+<UE482> \x90\x77 |1
+<UE483> \x90\x78 |1
+<UE484> \x90\x79 |0
+<UE485> \x90\x7A |0
+<UE486> \x90\x7B |0
+<UE487> \x90\x7C |0
+<UE488> \x90\x7D |0
+<UE489> \x90\x7E |0
+<UE48A> \x90\xA1 |0
+<UE48B> \x90\xA2 |1
+<UE48C> \x90\xA3 |1
+<UE48D> \x90\xA4 |0
+<UE48E> \x90\xA5 |0
+<UE48F> \x90\xA6 |1
+<UE490> \x90\xA7 |1
+<UE491> \x90\xA8 |0
+<UE492> \x90\xA9 |0
+<UE493> \x90\xAA |1
+<UE494> \x90\xAB |1
+<UE495> \x90\xAC |0
+<UE496> \x90\xAD |0
+<UE497> \x90\xAE |0
+<UE498> \x90\xAF |1
+<UE499> \x90\xB0 |1
+<UE49A> \x90\xB1 |1
+<UE49B> \x90\xB2 |1
+<UE49C> \x90\xB3 |1
+<UE49D> \x90\xB4 |1
+<UE49E> \x90\xB5 |1
+<UE49F> \x90\xB6 |1
+<UE4A0> \x90\xB7 |1
+<UE4A1> \x90\xB8 |0
+<UE4A2> \x90\xB9 |0
+<UE4A3> \x90\xBA |0
+<UE4A4> \x90\xBB |0
+<UE4A5> \x90\xBC |1
+<UE4A6> \x90\xBD |1
+<UE4A7> \x90\xBE |1
+<UE4A8> \x90\xBF |1
+<UE4A9> \x90\xC0 |1
+<UE4AA> \x90\xC1 |1
+<UE4AB> \x90\xC2 |0
+<UE4AC> \x90\xC3 |1
+<UE4AD> \x90\xC4 |1
+<UE4AE> \x90\xC5 |1
+<UE4AF> \x90\xC6 |0
+<UE4B0> \x90\xC7 |1
+<UE4B1> \x90\xC8 |1
+<UE4B2> \x90\xC9 |1
+<UE4B3> \x90\xCA |0
+<UE4B4> \x90\xCB |0
+<UE4B5> \x90\xCC |0
+<UE4B6> \x90\xCD |0
+<UE4B7> \x90\xCE |0
+<UE4B8> \x90\xCF |0
+<UE4B9> \x90\xD0 |0
+<UE4BA> \x90\xD1 |0
+<UE4BB> \x90\xD2 |1
+<UE4BC> \x90\xD3 |1
+<UE4BD> \x90\xD4 |1
+<UE4BE> \x90\xD5 |1
+<UE4BF> \x90\xD6 |1
+<UE4C0> \x90\xD7 |1
+<UE4C1> \x90\xD8 |0
+<UE4C2> \x90\xD9 |1
+<UE4C3> \x90\xDA |1
+<UE4C4> \x90\xDB |1
+<UE4C5> \x90\xDC |0
+<UE4C6> \x90\xDD |0
+<UE4C7> \x90\xDE |1
+<UE4C8> \x90\xDF |1
+<UE4C9> \x90\xE0 |0
+<UE4CA> \x90\xE1 |1
+<UE4CB> \x90\xE2 |1
+<UE4CC> \x90\xE3 |1
+<UE4CD> \x90\xE4 |0
+<UE4CE> \x90\xE5 |0
+<UE4CF> \x90\xE6 |1
+<UE4D0> \x90\xE7 |1
+<UE4D1> \x90\xE8 |1
+<UE4D2> \x90\xE9 |1
+<UE4D3> \x90\xEA |1
+<UE4D4> \x90\xEB |1
+<UE4D5> \x90\xEC |1
+<UE4D6> \x90\xED |0
+<UE4D7> \x90\xEE |1
+<UE4D8> \x90\xEF |1
+<UE4D9> \x90\xF0 |0
+<UE4DA> \x90\xF1 |0
+<UE4DB> \x90\xF2 |1
+<UE4DC> \x90\xF3 |0
+<UE4DD> \x90\xF4 |0
+<UE4DE> \x90\xF5 |1
+<UE4DF> \x90\xF6 |1
+<UE4E0> \x90\xF7 |1
+<UE4E1> \x90\xF8 |1
+<UE4E2> \x90\xF9 |1
+<UE4E3> \x90\xFA |1
+<UE4E4> \x90\xFB |0
+<UE4E5> \x90\xFC |1
+<UE4E6> \x90\xFD |0
+<UE4E7> \x90\xFE |0
+<UE4E8> \x91\x40 |0
+<UE4E9> \x91\x41 |1
+<UE4EA> \x91\x42 |1
+<UE4EB> \x91\x43 |1
+<UE4EC> \x91\x44 |1
+<UE4ED> \x91\x45 |1
+<UE4EE> \x91\x46 |0
+<UE4EF> \x91\x47 |0
+<UE4F0> \x91\x48 |1
+<UE4F1> \x91\x49 |1
+<UE4F2> \x91\x4A |1
+<UE4F3> \x91\x4B |1
+<UE4F4> \x91\x4C |1
+<UE4F5> \x91\x4D |1
+<UE4F6> \x91\x4E |0
+<UE4F7> \x91\x4F |1
+<UE4F8> \x91\x50 |0
+<UE4F9> \x91\x51 |0
+<UE4FA> \x91\x52 |1
+<UE4FB> \x91\x53 |1
+<UE4FC> \x91\x54 |1
+<UE4FD> \x91\x55 |1
+<UE4FE> \x91\x56 |1
+<UE4FF> \x91\x57 |0
+<UE500> \x91\x58 |1
+<UE501> \x91\x59 |0
+<UE502> \x91\x5A |0
+<UE503> \x91\x5B |1
+<UE504> \x91\x5C |1
+<UE505> \x91\x5D |0
+<UE506> \x91\x5E |1
+<UE507> \x91\x5F |1
+<UE508> \x91\x60 |1
+<UE509> \x91\x61 |1
+<UE50A> \x91\x62 |0
+<UE50B> \x91\x63 |1
+<UE50C> \x91\x64 |1
+<UE50D> \x91\x65 |0
+<UE50E> \x91\x66 |1
+<UE50F> \x91\x67 |0
+<UE510> \x91\x68 |1
+<UE511> \x91\x69 |1
+<UE512> \x91\x6A |0
+<UE513> \x91\x6B |1
+<UE514> \x91\x6C |0
+<UE515> \x91\x6D |1
+<UE516> \x91\x6E |0
+<UE517> \x91\x6F |1
+<UE518> \x91\x70 |1
+<UE519> \x91\x71 |1
+<UE51A> \x91\x72 |0
+<UE51B> \x91\x73 |1
+<UE51C> \x91\x74 |0
+<UE51D> \x91\x75 |0
+<UE51E> \x91\x76 |0
+<UE51F> \x91\x77 |0
+<UE520> \x91\x78 |0
+<UE521> \x91\x79 |0
+<UE522> \x91\x7A |1
+<UE523> \x91\x7B |1
+<UE524> \x91\x7C |0
+<UE525> \x91\x7D |1
+<UE526> \x91\x7E |1
+<UE527> \x91\xA1 |1
+<UE528> \x91\xA2 |0
+<UE529> \x91\xA3 |0
+<UE52A> \x91\xA4 |0
+<UE52B> \x91\xA5 |0
+<UE52C> \x91\xA6 |0
+<UE52D> \x91\xA7 |1
+<UE52E> \x91\xA8 |0
+<UE52F> \x91\xA9 |0
+<UE530> \x91\xAA |1
+<UE531> \x91\xAB |1
+<UE532> \x91\xAC |1
+<UE533> \x91\xAD |1
+<UE534> \x91\xAE |1
+<UE535> \x91\xAF |1
+<UE536> \x91\xB0 |1
+<UE537> \x91\xB1 |0
+<UE538> \x91\xB2 |1
+<UE539> \x91\xB3 |1
+<UE53A> \x91\xB4 |1
+<UE53B> \x91\xB5 |1
+<UE53C> \x91\xB6 |1
+<UE53D> \x91\xB7 |1
+<UE53E> \x91\xB8 |0
+<UE53F> \x91\xB9 |1
+<UE540> \x91\xBA |1
+<UE541> \x91\xBB |1
+<UE542> \x91\xBC |1
+<UE543> \x91\xBD |0
+<UE544> \x91\xBE |1
+<UE545> \x91\xBF |0
+<UE546> \x91\xC0 |1
+<UE547> \x91\xC1 |1
+<UE548> \x91\xC2 |1
+<UE549> \x91\xC3 |1
+<UE54A> \x91\xC4 |1
+<UE54B> \x91\xC5 |0
+<UE54C> \x91\xC6 |1
+<UE54D> \x91\xC7 |1
+<UE54E> \x91\xC8 |1
+<UE54F> \x91\xC9 |1
+<UE550> \x91\xCA |1
+<UE551> \x91\xCB |1
+<UE552> \x91\xCC |1
+<UE553> \x91\xCD |1
+<UE554> \x91\xCE |0
+<UE555> \x91\xCF |0
+<UE556> \x91\xD0 |1
+<UE557> \x91\xD1 |0
+<UE558> \x91\xD2 |0
+<UE559> \x91\xD3 |0
+<UE55A> \x91\xD4 |1
+<UE55B> \x91\xD5 |0
+<UE55C> \x91\xD6 |0
+<UE55D> \x91\xD7 |1
+<UE55E> \x91\xD8 |0
+<UE55F> \x91\xD9 |0
+<UE560> \x91\xDA |1
+<UE561> \x91\xDB |1
+<UE562> \x91\xDC |0
+<UE563> \x91\xDD |1
+<UE564> \x91\xDE |1
+<UE565> \x91\xDF |1
+<UE566> \x91\xE0 |0
+<UE567> \x91\xE1 |0
+<UE568> \x91\xE2 |1
+<UE569> \x91\xE3 |1
+<UE56A> \x91\xE4 |1
+<UE56B> \x91\xE5 |1
+<UE56C> \x91\xE6 |1
+<UE56D> \x91\xE7 |0
+<UE56E> \x91\xE8 |0
+<UE56F> \x91\xE9 |1
+<UE570> \x91\xEA |0
+<UE571> \x91\xEB |1
+<UE572> \x91\xEC |0
+<UE573> \x91\xED |0
+<UE574> \x91\xEE |1
+<UE575> \x91\xEF |0
+<UE576> \x91\xF0 |0
+<UE577> \x91\xF1 |0
+<UE578> \x91\xF2 |1
+<UE579> \x91\xF3 |0
+<UE57A> \x91\xF4 |0
+<UE57B> \x91\xF5 |1
+<UE57C> \x91\xF6 |0
+<UE57D> \x91\xF7 |0
+<UE57E> \x91\xF8 |0
+<UE57F> \x91\xF9 |1
+<UE580> \x91\xFA |0
+<UE581> \x91\xFB |1
+<UE582> \x91\xFC |0
+<UE583> \x91\xFD |0
+<UE584> \x91\xFE |0
+<UE585> \x92\x40 |0
+<UE586> \x92\x41 |0
+<UE587> \x92\x42 |1
+<UE588> \x92\x43 |0
+<UE589> \x92\x44 |0
+<UE58A> \x92\x45 |1
+<UE58B> \x92\x46 |0
+<UE58C> \x92\x47 |0
+<UE58D> \x92\x48 |0
+<UE58E> \x92\x49 |0
+<UE58F> \x92\x4A |0
+<UE590> \x92\x4B |0
+<UE591> \x92\x4C |1
+<UE592> \x92\x4D |0
+<UE593> \x92\x4E |0
+<UE594> \x92\x4F |0
+<UE595> \x92\x50 |1
+<UE596> \x92\x51 |1
+<UE597> \x92\x52 |1
+<UE598> \x92\x53 |1
+<UE599> \x92\x54 |1
+<UE59A> \x92\x55 |0
+<UE59B> \x92\x56 |1
+<UE59C> \x92\x57 |1
+<UE59D> \x92\x58 |0
+<UE59E> \x92\x59 |0
+<UE59F> \x92\x5A |0
+<UE5A0> \x92\x5B |0
+<UE5A1> \x92\x5C |0
+<UE5A2> \x92\x5D |1
+<UE5A3> \x92\x5E |1
+<UE5A4> \x92\x5F |0
+<UE5A5> \x92\x60 |1
+<UE5A6> \x92\x61 |0
+<UE5A7> \x92\x62 |0
+<UE5A8> \x92\x63 |0
+<UE5A9> \x92\x64 |1
+<UE5AA> \x92\x65 |0
+<UE5AB> \x92\x66 |1
+<UE5AC> \x92\x67 |1
+<UE5AD> \x92\x68 |1
+<UE5AE> \x92\x69 |1
+<UE5AF> \x92\x6A |0
+<UE5B0> \x92\x6B |1
+<UE5B1> \x92\x6C |0
+<UE5B2> \x92\x6D |0
+<UE5B3> \x92\x6E |1
+<UE5B4> \x92\x6F |1
+<UE5B5> \x92\x70 |0
+<UE5B6> \x92\x71 |1
+<UE5B7> \x92\x72 |0
+<UE5B8> \x92\x73 |0
+<UE5B9> \x92\x74 |1
+<UE5BA> \x92\x75 |0
+<UE5BB> \x92\x76 |0
+<UE5BC> \x92\x77 |1
+<UE5BD> \x92\x78 |1
+<UE5BE> \x92\x79 |0
+<UE5BF> \x92\x7A |0
+<UE5C0> \x92\x7B |0
+<UE5C1> \x92\x7C |1
+<UE5C2> \x92\x7D |0
+<UE5C3> \x92\x7E |1
+<UE5C4> \x92\xA1 |1
+<UE5C5> \x92\xA2 |1
+<UE5C6> \x92\xA3 |1
+<UE5C7> \x92\xA4 |1
+<UE5C8> \x92\xA5 |0
+<UE5C9> \x92\xA6 |0
+<UE5CA> \x92\xA7 |1
+<UE5CB> \x92\xA8 |1
+<UE5CC> \x92\xA9 |1
+<UE5CD> \x92\xAA |1
+<UE5CE> \x92\xAB |1
+<UE5CF> \x92\xAC |1
+<UE5D0> \x92\xAD |1
+<UE5D1> \x92\xAE |1
+<UE5D2> \x92\xAF |0
+<UE5D3> \x92\xB0 |0
+<UE5D4> \x92\xB1 |0
+<UE5D5> \x92\xB2 |0
+<UE5D6> \x92\xB3 |1
+<UE5D7> \x92\xB4 |0
+<UE5D8> \x92\xB5 |0
+<UE5D9> \x92\xB6 |0
+<UE5DA> \x92\xB7 |1
+<UE5DB> \x92\xB8 |0
+<UE5DC> \x92\xB9 |0
+<UE5DD> \x92\xBA |1
+<UE5DE> \x92\xBB |1
+<UE5DF> \x92\xBC |0
+<UE5E0> \x92\xBD |1
+<UE5E1> \x92\xBE |0
+<UE5E2> \x92\xBF |0
+<UE5E3> \x92\xC0 |0
+<UE5E4> \x92\xC1 |1
+<UE5E5> \x92\xC2 |0
+<UE5E6> \x92\xC3 |0
+<UE5E7> \x92\xC4 |1
+<UE5E8> \x92\xC5 |1
+<UE5E9> \x92\xC6 |0
+<UE5EA> \x92\xC7 |1
+<UE5EB> \x92\xC8 |0
+<UE5EC> \x92\xC9 |1
+<UE5ED> \x92\xCA |1
+<UE5EE> \x92\xCB |0
+<UE5EF> \x92\xCC |0
+<UE5F0> \x92\xCD |0
+<UE5F1> \x92\xCE |0
+<UE5F2> \x92\xCF |1
+<UE5F3> \x92\xD0 |0
+<UE5F4> \x92\xD1 |0
+<UE5F5> \x92\xD2 |1
+<UE5F6> \x92\xD3 |1
+<UE5F7> \x92\xD4 |1
+<UE5F8> \x92\xD5 |1
+<UE5F9> \x92\xD6 |1
+<UE5FA> \x92\xD7 |1
+<UE5FB> \x92\xD8 |0
+<UE5FC> \x92\xD9 |0
+<UE5FD> \x92\xDA |1
+<UE5FE> \x92\xDB |1
+<UE5FF> \x92\xDC |1
+<UE600> \x92\xDD |0
+<UE601> \x92\xDE |1
+<UE602> \x92\xDF |0
+<UE603> \x92\xE0 |1
+<UE604> \x92\xE1 |0
+<UE605> \x92\xE2 |1
+<UE606> \x92\xE3 |1
+<UE607> \x92\xE4 |1
+<UE608> \x92\xE5 |1
+<UE609> \x92\xE6 |1
+<UE60A> \x92\xE7 |1
+<UE60B> \x92\xE8 |1
+<UE60C> \x92\xE9 |1
+<UE60D> \x92\xEA |1
+<UE60E> \x92\xEB |1
+<UE60F> \x92\xEC |0
+<UE610> \x92\xED |0
+<UE611> \x92\xEE |0
+<UE612> \x92\xEF |0
+<UE613> \x92\xF0 |1
+<UE614> \x92\xF1 |1
+<UE615> \x92\xF2 |1
+<UE616> \x92\xF3 |1
+<UE617> \x92\xF4 |1
+<UE618> \x92\xF5 |1
+<UE619> \x92\xF6 |0
+<UE61A> \x92\xF7 |0
+<UE61B> \x92\xF8 |0
+<UE61C> \x92\xF9 |0
+<UE61D> \x92\xFA |1
+<UE61E> \x92\xFB |1
+<UE61F> \x92\xFC |1
+<UE620> \x92\xFD |1
+<UE621> \x92\xFE |0
+<UE622> \x93\x40 |1
+<UE623> \x93\x41 |0
+<UE624> \x93\x42 |0
+<UE625> \x93\x43 |1
+<UE626> \x93\x44 |1
+<UE627> \x93\x45 |0
+<UE628> \x93\x46 |1
+<UE629> \x93\x47 |1
+<UE62A> \x93\x48 |1
+<UE62B> \x93\x49 |0
+<UE62C> \x93\x4A |1
+<UE62D> \x93\x4B |1
+<UE62E> \x93\x4C |1
+<UE62F> \x93\x4D |1
+<UE630> \x93\x4E |1
+<UE631> \x93\x4F |1
+<UE632> \x93\x50 |0
+<UE633> \x93\x51 |0
+<UE634> \x93\x52 |0
+<UE635> \x93\x53 |1
+<UE636> \x93\x54 |1
+<UE637> \x93\x55 |0
+<UE638> \x93\x56 |0
+<UE639> \x93\x57 |1
+<UE63A> \x93\x58 |0
+<UE63B> \x93\x59 |1
+<UE63C> \x93\x5A |0
+<UE63D> \x93\x5B |1
+<UE63E> \x93\x5C |1
+<UE63F> \x93\x5D |0
+<UE640> \x93\x5E |0
+<UE641> \x93\x5F |0
+<UE642> \x93\x60 |0
+<UE643> \x93\x61 |1
+<UE644> \x93\x62 |1
+<UE645> \x93\x63 |0
+<UE646> \x93\x64 |0
+<UE647> \x93\x65 |1
+<UE648> \x93\x66 |0
+<UE649> \x93\x67 |1
+<UE64A> \x93\x68 |1
+<UE64B> \x93\x69 |0
+<UE64C> \x93\x6A |1
+<UE64D> \x93\x6B |1
+<UE64E> \x93\x6C |0
+<UE64F> \x93\x6D |0
+<UE650> \x93\x6E |1
+<UE651> \x93\x6F |1
+<UE652> \x93\x70 |0
+<UE653> \x93\x71 |0
+<UE654> \x93\x72 |0
+<UE655> \x93\x73 |0
+<UE656> \x93\x74 |1
+<UE657> \x93\x75 |0
+<UE658> \x93\x76 |0
+<UE659> \x93\x77 |0
+<UE65A> \x93\x78 |1
+<UE65B> \x93\x79 |1
+<UE65C> \x93\x7A |1
+<UE65D> \x93\x7B |0
+<UE65E> \x93\x7C |0
+<UE65F> \x93\x7D |0
+<UE660> \x93\x7E |0
+<UE661> \x93\xA1 |1
+<UE662> \x93\xA2 |0
+<UE663> \x93\xA3 |0
+<UE664> \x93\xA4 |1
+<UE665> \x93\xA5 |0
+<UE666> \x93\xA6 |0
+<UE667> \x93\xA7 |0
+<UE668> \x93\xA8 |0
+<UE669> \x93\xA9 |1
+<UE66A> \x93\xAA |0
+<UE66B> \x93\xAB |1
+<UE66C> \x93\xAC |1
+<UE66D> \x93\xAD |1
+<UE66E> \x93\xAE |0
+<UE66F> \x93\xAF |0
+<UE670> \x93\xB0 |1
+<UE671> \x93\xB1 |0
+<UE672> \x93\xB2 |1
+<UE673> \x93\xB3 |1
+<UE674> \x93\xB4 |1
+<UE675> \x93\xB5 |1
+<UE676> \x93\xB6 |0
+<UE677> \x93\xB7 |0
+<UE678> \x93\xB8 |0
+<UE679> \x93\xB9 |0
+<UE67A> \x93\xBA |1
+<UE67B> \x93\xBB |0
+<UE67C> \x93\xBC |0
+<UE67D> \x93\xBD |0
+<UE67E> \x93\xBE |1
+<UE67F> \x93\xBF |0
+<UE680> \x93\xC0 |0
+<UE681> \x93\xC1 |1
+<UE682> \x93\xC2 |1
+<UE683> \x93\xC3 |0
+<UE684> \x93\xC4 |0
+<UE685> \x93\xC5 |0
+<UE686> \x93\xC6 |0
+<UE687> \x93\xC7 |0
+<UE688> \x93\xC8 |0
+<UE689> \x93\xC9 |1
+<UE68A> \x93\xCA |0
+<UE68B> \x93\xCB |0
+<UE68C> \x93\xCC |0
+<UE68D> \x93\xCD |1
+<UE68E> \x93\xCE |0
+<UE68F> \x93\xCF |0
+<UE690> \x93\xD0 |0
+<UE691> \x93\xD1 |1
+<UE692> \x93\xD2 |0
+<UE693> \x93\xD3 |1
+<UE694> \x93\xD4 |1
+<UE695> \x93\xD5 |1
+<UE696> \x93\xD6 |0
+<UE697> \x93\xD7 |0
+<UE698> \x93\xD8 |1
+<UE699> \x93\xD9 |0
+<UE69A> \x93\xDA |0
+<UE69B> \x93\xDB |1
+<UE69C> \x93\xDC |0
+<UE69D> \x93\xDD |1
+<UE69E> \x93\xDE |0
+<UE69F> \x93\xDF |0
+<UE6A0> \x93\xE0 |1
+<UE6A1> \x93\xE1 |0
+<UE6A2> \x93\xE2 |0
+<UE6A3> \x93\xE3 |1
+<UE6A4> \x93\xE4 |1
+<UE6A5> \x93\xE5 |1
+<UE6A6> \x93\xE6 |0
+<UE6A7> \x93\xE7 |1
+<UE6A8> \x93\xE8 |1
+<UE6A9> \x93\xE9 |1
+<UE6AA> \x93\xEA |1
+<UE6AB> \x93\xEB |1
+<UE6AC> \x93\xEC |0
+<UE6AD> \x93\xED |0
+<UE6AE> \x93\xEE |1
+<UE6AF> \x93\xEF |1
+<UE6B0> \x93\xF0 |1
+<UE6B1> \x93\xF1 |1
+<UE6B2> \x93\xF2 |0
+<UE6B3> \x93\xF3 |1
+<UE6B4> \x93\xF4 |1
+<UE6B5> \x93\xF5 |1
+<UE6B6> \x93\xF6 |1
+<UE6B7> \x93\xF7 |1
+<UE6B8> \x93\xF8 |1
+<UE6B9> \x93\xF9 |0
+<UE6BA> \x93\xFA |0
+<UE6BB> \x93\xFB |1
+<UE6BC> \x93\xFC |1
+<UE6BD> \x93\xFD |0
+<UE6BE> \x93\xFE |0
+<UE6BF> \x94\x40 |1
+<UE6C0> \x94\x41 |0
+<UE6C1> \x94\x42 |0
+<UE6C2> \x94\x43 |1
+<UE6C3> \x94\x44 |1
+<UE6C4> \x94\x45 |1
+<UE6C5> \x94\x46 |0
+<UE6C6> \x94\x47 |0
+<UE6C7> \x94\x48 |0
+<UE6C8> \x94\x49 |1
+<UE6C9> \x94\x4A |1
+<UE6CA> \x94\x4B |0
+<UE6CB> \x94\x4C |1
+<UE6CC> \x94\x4D |1
+<UE6CD> \x94\x4E |1
+<UE6CE> \x94\x4F |1
+<UE6CF> \x94\x50 |1
+<UE6D0> \x94\x51 |1
+<UE6D1> \x94\x52 |0
+<UE6D2> \x94\x53 |0
+<UE6D3> \x94\x54 |1
+<UE6D4> \x94\x55 |1
+<UE6D5> \x94\x56 |1
+<UE6D6> \x94\x57 |1
+<UE6D7> \x94\x58 |0
+<UE6D8> \x94\x59 |0
+<UE6D9> \x94\x5A |1
+<UE6DA> \x94\x5B |0
+<UE6DB> \x94\x5C |0
+<UE6DC> \x94\x5D |1
+<UE6DD> \x94\x5E |0
+<UE6DE> \x94\x5F |0
+<UE6DF> \x94\x60 |0
+<UE6E0> \x94\x61 |0
+<UE6E1> \x94\x62 |0
+<UE6E2> \x94\x63 |1
+<UE6E3> \x94\x64 |1
+<UE6E4> \x94\x65 |0
+<UE6E5> \x94\x66 |0
+<UE6E6> \x94\x67 |0
+<UE6E7> \x94\x68 |1
+<UE6E8> \x94\x69 |1
+<UE6E9> \x94\x6A |1
+<UE6EA> \x94\x6B |1
+<UE6EB> \x94\x6C |1
+<UE6EC> \x94\x6D |1
+<UE6ED> \x94\x6E |1
+<UE6EE> \x94\x6F |0
+<UE6EF> \x94\x70 |1
+<UE6F0> \x94\x71 |1
+<UE6F1> \x94\x72 |1
+<UE6F2> \x94\x73 |0
+<UE6F3> \x94\x74 |0
+<UE6F4> \x94\x75 |1
+<UE6F5> \x94\x76 |1
+<UE6F6> \x94\x77 |1
+<UE6F7> \x94\x78 |0
+<UE6F8> \x94\x79 |1
+<UE6F9> \x94\x7A |1
+<UE6FA> \x94\x7B |0
+<UE6FB> \x94\x7C |0
+<UE6FC> \x94\x7D |0
+<UE6FD> \x94\x7E |1
+<UE6FE> \x94\xA1 |1
+<UE6FF> \x94\xA2 |0
+<UE700> \x94\xA3 |1
+<UE701> \x94\xA4 |0
+<UE702> \x94\xA5 |0
+<UE703> \x94\xA6 |1
+<UE704> \x94\xA7 |1
+<UE705> \x94\xA8 |1
+<UE706> \x94\xA9 |0
+<UE707> \x94\xAA |0
+<UE708> \x94\xAB |1
+<UE709> \x94\xAC |0
+<UE70A> \x94\xAD |0
+<UE70B> \x94\xAE |1
+<UE70C> \x94\xAF |0
+<UE70D> \x94\xB0 |1
+<UE70E> \x94\xB1 |1
+<UE70F> \x94\xB2 |1
+<UE710> \x94\xB3 |0
+<UE711> \x94\xB4 |0
+<UE712> \x94\xB5 |1
+<UE713> \x94\xB6 |0
+<UE714> \x94\xB7 |1
+<UE715> \x94\xB8 |1
+<UE716> \x94\xB9 |1
+<UE717> \x94\xBA |0
+<UE718> \x94\xBB |0
+<UE719> \x94\xBC |1
+<UE71A> \x94\xBD |0
+<UE71B> \x94\xBE |0
+<UE71C> \x94\xBF |1
+<UE71D> \x94\xC0 |0
+<UE71E> \x94\xC1 |1
+<UE71F> \x94\xC2 |1
+<UE720> \x94\xC3 |1
+<UE721> \x94\xC4 |1
+<UE722> \x94\xC5 |1
+<UE723> \x94\xC6 |1
+<UE724> \x94\xC7 |0
+<UE725> \x94\xC8 |0
+<UE726> \x94\xC9 |1
+<UE727> \x94\xCA |0
+<UE728> \x94\xCB |1
+<UE729> \x94\xCC |1
+<UE72A> \x94\xCD |1
+<UE72B> \x94\xCE |0
+<UE72C> \x94\xCF |1
+<UE72D> \x94\xD0 |1
+<UE72E> \x94\xD1 |1
+<UE72F> \x94\xD2 |0
+<UE730> \x94\xD3 |1
+<UE731> \x94\xD4 |1
+<UE732> \x94\xD5 |1
+<UE733> \x94\xD6 |0
+<UE734> \x94\xD7 |0
+<UE735> \x94\xD8 |0
+<UE736> \x94\xD9 |0
+<UE737> \x94\xDA |0
+<UE738> \x94\xDB |1
+<UE739> \x94\xDC |1
+<UE73A> \x94\xDD |1
+<UE73B> \x94\xDE |1
+<UE73C> \x94\xDF |0
+<UE73D> \x94\xE0 |0
+<UE73E> \x94\xE1 |1
+<UE73F> \x94\xE2 |1
+<UE740> \x94\xE3 |0
+<UE741> \x94\xE4 |0
+<UE742> \x94\xE5 |0
+<UE743> \x94\xE6 |1
+<UE744> \x94\xE7 |0
+<UE745> \x94\xE8 |1
+<UE746> \x94\xE9 |1
+<UE747> \x94\xEA |0
+<UE748> \x94\xEB |1
+<UE749> \x94\xEC |1
+<UE74A> \x94\xED |1
+<UE74B> \x94\xEE |1
+<UE74C> \x94\xEF |1
+<UE74D> \x94\xF0 |0
+<UE74E> \x94\xF1 |0
+<UE74F> \x94\xF2 |0
+<UE750> \x94\xF3 |1
+<UE751> \x94\xF4 |0
+<UE752> \x94\xF5 |0
+<UE753> \x94\xF6 |1
+<UE754> \x94\xF7 |1
+<UE755> \x94\xF8 |1
+<UE756> \x94\xF9 |1
+<UE757> \x94\xFA |1
+<UE758> \x94\xFB |1
+<UE759> \x94\xFC |1
+<UE75A> \x94\xFD |1
+<UE75B> \x94\xFE |0
+<UE75C> \x95\x40 |0
+<UE75D> \x95\x41 |0
+<UE75E> \x95\x42 |1
+<UE75F> \x95\x43 |0
+<UE760> \x95\x44 |1
+<UE761> \x95\x45 |0
+<UE762> \x95\x46 |0
+<UE763> \x95\x47 |1
+<UE764> \x95\x48 |0
+<UE765> \x95\x49 |0
+<UE766> \x95\x4A |1
+<UE767> \x95\x4B |0
+<UE768> \x95\x4C |0
+<UE769> \x95\x4D |0
+<UE76A> \x95\x4E |1
+<UE76B> \x95\x4F |1
+<UE76C> \x95\x50 |0
+<UE76D> \x95\x51 |0
+<UE76E> \x95\x52 |0
+<UE76F> \x95\x53 |1
+<UE770> \x95\x54 |0
+<UE771> \x95\x55 |1
+<UE772> \x95\x56 |1
+<UE773> \x95\x57 |1
+<UE774> \x95\x58 |1
+<UE775> \x95\x59 |0
+<UE776> \x95\x5A |1
+<UE777> \x95\x5B |0
+<UE778> \x95\x5C |0
+<UE779> \x95\x5D |1
+<UE77A> \x95\x5E |0
+<UE77B> \x95\x5F |1
+<UE77C> \x95\x60 |0
+<UE77D> \x95\x61 |0
+<UE77E> \x95\x62 |1
+<UE77F> \x95\x63 |1
+<UE780> \x95\x64 |1
+<UE781> \x95\x65 |1
+<UE782> \x95\x66 |1
+<UE783> \x95\x67 |1
+<UE784> \x95\x68 |0
+<UE785> \x95\x69 |1
+<UE786> \x95\x6A |0
+<UE787> \x95\x6B |1
+<UE788> \x95\x6C |1
+<UE789> \x95\x6D |0
+<UE78A> \x95\x6E |1
+<UE78B> \x95\x6F |0
+<UE78C> \x95\x70 |1
+<UE78D> \x95\x71 |0
+<UE78E> \x95\x72 |1
+<UE78F> \x95\x73 |1
+<UE790> \x95\x74 |0
+<UE791> \x95\x75 |1
+<UE792> \x95\x76 |0
+<UE793> \x95\x77 |1
+<UE794> \x95\x78 |0
+<UE795> \x95\x79 |1
+<UE796> \x95\x7A |0
+<UE797> \x95\x7B |0
+<UE798> \x95\x7C |1
+<UE799> \x95\x7D |0
+<UE79A> \x95\x7E |1
+<UE79B> \x95\xA1 |1
+<UE79C> \x95\xA2 |1
+<UE79D> \x95\xA3 |1
+<UE79E> \x95\xA4 |1
+<UE79F> \x95\xA5 |1
+<UE7A0> \x95\xA6 |1
+<UE7A1> \x95\xA7 |1
+<UE7A2> \x95\xA8 |0
+<UE7A3> \x95\xA9 |1
+<UE7A4> \x95\xAA |0
+<UE7A5> \x95\xAB |0
+<UE7A6> \x95\xAC |0
+<UE7A7> \x95\xAD |0
+<UE7A8> \x95\xAE |0
+<UE7A9> \x95\xAF |0
+<UE7AA> \x95\xB0 |1
+<UE7AB> \x95\xB1 |1
+<UE7AC> \x95\xB2 |1
+<UE7AD> \x95\xB3 |1
+<UE7AE> \x95\xB4 |1
+<UE7AF> \x95\xB5 |1
+<UE7B0> \x95\xB6 |1
+<UE7B1> \x95\xB7 |0
+<UE7B2> \x95\xB8 |1
+<UE7B3> \x95\xB9 |1
+<UE7B4> \x95\xBA |0
+<UE7B5> \x95\xBB |1
+<UE7B6> \x95\xBC |1
+<UE7B7> \x95\xBD |1
+<UE7B8> \x95\xBE |0
+<UE7B9> \x95\xBF |1
+<UE7BA> \x95\xC0 |1
+<UE7BB> \x95\xC1 |1
+<UE7BC> \x95\xC2 |0
+<UE7BD> \x95\xC3 |1
+<UE7BE> \x95\xC4 |1
+<UE7BF> \x95\xC5 |1
+<UE7C0> \x95\xC6 |1
+<UE7C1> \x95\xC7 |1
+<UE7C2> \x95\xC8 |1
+<UE7C3> \x95\xC9 |1
+<UE7C4> \x95\xCA |0
+<UE7C5> \x95\xCB |1
+<UE7C6> \x95\xCC |1
+<UE7C7> \x95\xCD |1
+<UE7C8> \x95\xCE |1
+<UE7C9> \x95\xCF |1
+<UE7CA> \x95\xD0 |0
+<UE7CB> \x95\xD1 |1
+<UE7CC> \x95\xD2 |1
+<UE7CD> \x95\xD3 |1
+<UE7CE> \x95\xD4 |0
+<UE7CF> \x95\xD5 |1
+<UE7D0> \x95\xD6 |1
+<UE7D1> \x95\xD7 |0
+<UE7D2> \x95\xD8 |1
+<UE7D3> \x95\xD9 |0
+<UE7D4> \x95\xDA |1
+<UE7D5> \x95\xDB |1
+<UE7D6> \x95\xDC |1
+<UE7D7> \x95\xDD |1
+<UE7D8> \x95\xDE |0
+<UE7D9> \x95\xDF |1
+<UE7DA> \x95\xE0 |0
+<UE7DB> \x95\xE1 |1
+<UE7DC> \x95\xE2 |0
+<UE7DD> \x95\xE3 |0
+<UE7DE> \x95\xE4 |1
+<UE7DF> \x95\xE5 |1
+<UE7E0> \x95\xE6 |1
+<UE7E1> \x95\xE7 |1
+<UE7E2> \x95\xE8 |1
+<UE7E3> \x95\xE9 |1
+<UE7E4> \x95\xEA |0
+<UE7E5> \x95\xEB |1
+<UE7E6> \x95\xEC |1
+<UE7E7> \x95\xED |0
+<UE7E8> \x95\xEE |0
+<UE7E9> \x95\xEF |0
+<UE7EA> \x95\xF0 |1
+<UE7EB> \x95\xF1 |0
+<UE7EC> \x95\xF2 |1
+<UE7ED> \x95\xF3 |0
+<UE7EE> \x95\xF4 |0
+<UE7EF> \x95\xF5 |0
+<UE7F0> \x95\xF6 |1
+<UE7F1> \x95\xF7 |0
+<UE7F2> \x95\xF8 |0
+<UE7F3> \x95\xF9 |0
+<UE7F4> \x95\xFA |1
+<UE7F5> \x95\xFB |1
+<UE7F6> \x95\xFC |1
+<UE7F7> \x95\xFD |1
+<UE7F8> \x95\xFE |0
+<UE7F9> \x96\x40 |1
+<UE7FA> \x96\x41 |1
+<UE7FB> \x96\x42 |0
+<UE7FC> \x96\x43 |0
+<UE7FD> \x96\x44 |0
+<UE7FE> \x96\x45 |1
+<UE7FF> \x96\x46 |0
+<UE800> \x96\x47 |0
+<UE801> \x96\x48 |0
+<UE802> \x96\x49 |0
+<UE803> \x96\x4A |1
+<UE804> \x96\x4B |1
+<UE805> \x96\x4C |1
+<UE806> \x96\x4D |1
+<UE807> \x96\x4E |1
+<UE808> \x96\x4F |0
+<UE809> \x96\x50 |1
+<UE80A> \x96\x51 |1
+<UE80B> \x96\x52 |1
+<UE80C> \x96\x53 |0
+<UE80D> \x96\x54 |1
+<UE80E> \x96\x55 |0
+<UE80F> \x96\x56 |0
+<UE810> \x96\x57 |1
+<UE811> \x96\x58 |0
+<UE812> \x96\x59 |1
+<UE813> \x96\x5A |0
+<UE814> \x96\x5B |1
+<UE815> \x96\x5C |1
+<UE816> \x96\x5D |0
+<UE817> \x96\x5E |0
+<UE818> \x96\x5F |0
+<UE819> \x96\x60 |1
+<UE81A> \x96\x61 |0
+<UE81B> \x96\x62 |1
+<UE81C> \x96\x63 |1
+<UE81D> \x96\x64 |1
+<UE81E> \x96\x65 |1
+<UE81F> \x96\x66 |1
+<UE820> \x96\x67 |1
+<UE821> \x96\x68 |0
+<UE822> \x96\x69 |1
+<UE823> \x96\x6A |1
+<UE824> \x96\x6B |1
+<UE825> \x96\x6C |1
+<UE826> \x96\x6D |1
+<UE827> \x96\x6E |0
+<UE828> \x96\x6F |0
+<UE829> \x96\x70 |1
+<UE82A> \x96\x71 |1
+<UE82B> \x96\x72 |1
+<UE82C> \x96\x73 |1
+<UE82D> \x96\x74 |0
+<UE82E> \x96\x75 |1
+<UE82F> \x96\x76 |0
+<UE830> \x96\x77 |1
+<UE831> \x96\x78 |1
+<UE832> \x96\x79 |1
+<UE833> \x96\x7A |1
+<UE834> \x96\x7B |1
+<UE835> \x96\x7C |0
+<UE836> \x96\x7D |1
+<UE837> \x96\x7E |0
+<UE838> \x96\xA1 |0
+<UE839> \x96\xA2 |1
+<UE83A> \x96\xA3 |0
+<UE83B> \x96\xA4 |0
+<UE83C> \x96\xA5 |1
+<UE83D> \x96\xA6 |1
+<UE83E> \x96\xA7 |1
+<UE83F> \x96\xA8 |1
+<UE840> \x96\xA9 |1
+<UE841> \x96\xAA |0
+<UE842> \x96\xAB |0
+<UE843> \x96\xAC |1
+<UE844> \x96\xAD |1
+<UE845> \x96\xAE |1
+<UE846> \x96\xAF |1
+<UE847> \x96\xB0 |1
+<UE848> \x96\xB1 |1
+<UE849> \x96\xB2 |1
+<UE84A> \x96\xB3 |1
+<UE84B> \x96\xB4 |0
+<UE84C> \x96\xB5 |1
+<UE84D> \x96\xB6 |0
+<UE84E> \x96\xB7 |0
+<UE84F> \x96\xB8 |1
+<UE850> \x96\xB9 |1
+<UE851> \x96\xBA |0
+<UE852> \x96\xBB |1
+<UE853> \x96\xBC |1
+<UE854> \x96\xBD |1
+<UE855> \x96\xBE |0
+<UE856> \x96\xBF |0
+<UE857> \x96\xC0 |0
+<UE858> \x96\xC1 |0
+<UE859> \x96\xC2 |1
+<UE85A> \x96\xC3 |1
+<UE85B> \x96\xC4 |0
+<UE85C> \x96\xC5 |0
+<UE85D> \x96\xC6 |0
+<UE85E> \x96\xC7 |1
+<UE85F> \x96\xC8 |1
+<UE860> \x96\xC9 |0
+<UE861> \x96\xCA |0
+<UE862> \x96\xCB |0
+<UE863> \x96\xCC |1
+<UE864> \x96\xCD |1
+<UE865> \x96\xCE |0
+<UE866> \x96\xCF |0
+<UE867> \x96\xD0 |0
+<UE868> \x96\xD1 |1
+<UE869> \x96\xD2 |0
+<UE86A> \x96\xD3 |0
+<UE86B> \x96\xD4 |1
+<UE86C> \x96\xD5 |0
+<UE86D> \x96\xD6 |1
+<UE86E> \x96\xD7 |1
+<UE86F> \x96\xD8 |1
+<UE870> \x96\xD9 |1
+<UE871> \x96\xDA |0
+<UE872> \x96\xDB |1
+<UE873> \x96\xDC |1
+<UE874> \x96\xDD |1
+<UE875> \x96\xDE |1
+<UE876> \x96\xDF |1
+<UE877> \x96\xE0 |1
+<UE878> \x96\xE1 |0
+<UE879> \x96\xE2 |1
+<UE87A> \x96\xE3 |1
+<UE87B> \x96\xE4 |1
+<UE87C> \x96\xE5 |1
+<UE87D> \x96\xE6 |0
+<UE87E> \x96\xE7 |0
+<UE87F> \x96\xE8 |0
+<UE880> \x96\xE9 |1
+<UE881> \x96\xEA |1
+<UE882> \x96\xEB |1
+<UE883> \x96\xEC |1
+<UE884> \x96\xED |0
+<UE885> \x96\xEE |1
+<UE886> \x96\xEF |1
+<UE887> \x96\xF0 |0
+<UE888> \x96\xF1 |1
+<UE889> \x96\xF2 |1
+<UE88A> \x96\xF3 |1
+<UE88B> \x96\xF4 |1
+<UE88C> \x96\xF5 |1
+<UE88D> \x96\xF6 |1
+<UE88E> \x96\xF7 |1
+<UE88F> \x96\xF8 |0
+<UE890> \x96\xF9 |1
+<UE891> \x96\xFA |0
+<UE892> \x96\xFB |0
+<UE893> \x96\xFC |0
+<UE894> \x96\xFD |0
+<UE895> \x96\xFE |0
+<UE896> \x97\x40 |1
+<UE897> \x97\x41 |1
+<UE898> \x97\x42 |1
+<UE899> \x97\x43 |1
+<UE89A> \x97\x44 |0
+<UE89B> \x97\x45 |1
+<UE89C> \x97\x46 |1
+<UE89D> \x97\x47 |0
+<UE89E> \x97\x48 |1
+<UE89F> \x97\x49 |1
+<UE8A0> \x97\x4A |0
+<UE8A1> \x97\x4B |0
+<UE8A2> \x97\x4C |1
+<UE8A3> \x97\x4D |0
+<UE8A4> \x97\x4E |0
+<UE8A5> \x97\x4F |0
+<UE8A6> \x97\x50 |0
+<UE8A7> \x97\x51 |0
+<UE8A8> \x97\x52 |1
+<UE8A9> \x97\x53 |0
+<UE8AA> \x97\x54 |0
+<UE8AB> \x97\x55 |1
+<UE8AC> \x97\x56 |0
+<UE8AD> \x97\x57 |0
+<UE8AE> \x97\x58 |0
+<UE8AF> \x97\x59 |0
+<UE8B0> \x97\x5A |0
+<UE8B1> \x97\x5B |1
+<UE8B2> \x97\x5C |1
+<UE8B3> \x97\x5D |1
+<UE8B4> \x97\x5E |1
+<UE8B5> \x97\x5F |0
+<UE8B6> \x97\x60 |0
+<UE8B7> \x97\x61 |1
+<UE8B8> \x97\x62 |0
+<UE8B9> \x97\x63 |1
+<UE8BA> \x97\x64 |1
+<UE8BB> \x97\x65 |1
+<UE8BC> \x97\x66 |1
+<UE8BD> \x97\x67 |0
+<UE8BE> \x97\x68 |0
+<UE8BF> \x97\x69 |0
+<UE8C0> \x97\x6A |0
+<UE8C1> \x97\x6B |0
+<UE8C2> \x97\x6C |0
+<UE8C3> \x97\x6D |0
+<UE8C4> \x97\x6E |1
+<UE8C5> \x97\x6F |0
+<UE8C6> \x97\x70 |1
+<UE8C7> \x97\x71 |0
+<UE8C8> \x97\x72 |1
+<UE8C9> \x97\x73 |1
+<UE8CA> \x97\x74 |1
+<UE8CB> \x97\x75 |0
+<UE8CC> \x97\x76 |1
+<UE8CD> \x97\x77 |0
+<UE8CE> \x97\x78 |0
+<UE8CF> \x97\x79 |1
+<UE8D0> \x97\x7A |0
+<UE8D1> \x97\x7B |0
+<UE8D2> \x97\x7C |1
+<UE8D3> \x97\x7D |0
+<UE8D4> \x97\x7E |1
+<UE8D5> \x97\xA1 |0
+<UE8D6> \x97\xA2 |0
+<UE8D7> \x97\xA3 |1
+<UE8D8> \x97\xA4 |0
+<UE8D9> \x97\xA5 |0
+<UE8DA> \x97\xA6 |0
+<UE8DB> \x97\xA7 |1
+<UE8DC> \x97\xA8 |1
+<UE8DD> \x97\xA9 |0
+<UE8DE> \x97\xAA |1
+<UE8DF> \x97\xAB |0
+<UE8E0> \x97\xAC |0
+<UE8E1> \x97\xAD |0
+<UE8E2> \x97\xAE |1
+<UE8E3> \x97\xAF |1
+<UE8E4> \x97\xB0 |1
+<UE8E5> \x97\xB1 |0
+<UE8E6> \x97\xB2 |0
+<UE8E7> \x97\xB3 |1
+<UE8E8> \x97\xB4 |0
+<UE8E9> \x97\xB5 |0
+<UE8EA> \x97\xB6 |0
+<UE8EB> \x97\xB7 |1
+<UE8EC> \x97\xB8 |1
+<UE8ED> \x97\xB9 |0
+<UE8EE> \x97\xBA |1
+<UE8EF> \x97\xBB |1
+<UE8F0> \x97\xBC |1
+<UE8F1> \x97\xBD |0
+<UE8F2> \x97\xBE |0
+<UE8F3> \x97\xBF |1
+<UE8F4> \x97\xC0 |1
+<UE8F5> \x97\xC1 |0
+<UE8F6> \x97\xC2 |1
+<UE8F7> \x97\xC3 |1
+<UE8F8> \x97\xC4 |1
+<UE8F9> \x97\xC5 |1
+<UE8FA> \x97\xC6 |1
+<UE8FB> \x97\xC7 |0
+<UE8FC> \x97\xC8 |1
+<UE8FD> \x97\xC9 |1
+<UE8FE> \x97\xCA |0
+<UE8FF> \x97\xCB |1
+<UE900> \x97\xCC |0
+<UE901> \x97\xCD |1
+<UE902> \x97\xCE |1
+<UE903> \x97\xCF |0
+<UE904> \x97\xD0 |1
+<UE905> \x97\xD1 |1
+<UE906> \x97\xD2 |1
+<UE907> \x97\xD3 |0
+<UE908> \x97\xD4 |0
+<UE909> \x97\xD5 |1
+<UE90A> \x97\xD6 |1
+<UE90B> \x97\xD7 |1
+<UE90C> \x97\xD8 |0
+<UE90D> \x97\xD9 |1
+<UE90E> \x97\xDA |1
+<UE90F> \x97\xDB |1
+<UE910> \x97\xDC |1
+<UE911> \x97\xDD |1
+<UE912> \x97\xDE |1
+<UE913> \x97\xDF |1
+<UE914> \x97\xE0 |1
+<UE915> \x97\xE1 |1
+<UE916> \x97\xE2 |1
+<UE917> \x97\xE3 |0
+<UE918> \x97\xE4 |0
+<UE919> \x97\xE5 |1
+<UE91A> \x97\xE6 |1
+<UE91B> \x97\xE7 |1
+<UE91C> \x97\xE8 |0
+<UE91D> \x97\xE9 |1
+<UE91E> \x97\xEA |0
+<UE91F> \x97\xEB |0
+<UE920> \x97\xEC |0
+<UE921> \x97\xED |0
+<UE922> \x97\xEE |0
+<UE923> \x97\xEF |1
+<UE924> \x97\xF0 |1
+<UE925> \x97\xF1 |0
+<UE926> \x97\xF2 |0
+<UE927> \x97\xF3 |0
+<UE928> \x97\xF4 |0
+<UE929> \x97\xF5 |0
+<UE92A> \x97\xF6 |0
+<UE92B> \x97\xF7 |0
+<UE92C> \x97\xF8 |0
+<UE92D> \x97\xF9 |1
+<UE92E> \x97\xFA |0
+<UE92F> \x97\xFB |0
+<UE930> \x97\xFC |1
+<UE931> \x97\xFD |1
+<UE932> \x97\xFE |1
+<UE933> \x98\x40 |0
+<UE934> \x98\x41 |0
+<UE935> \x98\x42 |0
+<UE936> \x98\x43 |0
+<UE937> \x98\x44 |1
+<UE938> \x98\x45 |0
+<UE939> \x98\x46 |1
+<UE93A> \x98\x47 |0
+<UE93B> \x98\x48 |1
+<UE93C> \x98\x49 |0
+<UE93D> \x98\x4A |0
+<UE93E> \x98\x4B |0
+<UE93F> \x98\x4C |1
+<UE940> \x98\x4D |1
+<UE941> \x98\x4E |0
+<UE942> \x98\x4F |1
+<UE943> \x98\x50 |1
+<UE944> \x98\x51 |0
+<UE945> \x98\x52 |0
+<UE946> \x98\x53 |1
+<UE947> \x98\x54 |1
+<UE948> \x98\x55 |0
+<UE949> \x98\x56 |1
+<UE94A> \x98\x57 |1
+<UE94B> \x98\x58 |1
+<UE94C> \x98\x59 |1
+<UE94D> \x98\x5A |0
+<UE94E> \x98\x5B |1
+<UE94F> \x98\x5C |1
+<UE950> \x98\x5D |0
+<UE951> \x98\x5E |1
+<UE952> \x98\x5F |0
+<UE953> \x98\x60 |0
+<UE954> \x98\x61 |0
+<UE955> \x98\x62 |0
+<UE956> \x98\x63 |1
+<UE957> \x98\x64 |0
+<UE958> \x98\x65 |0
+<UE959> \x98\x66 |1
+<UE95A> \x98\x67 |0
+<UE95B> \x98\x68 |1
+<UE95C> \x98\x69 |0
+<UE95D> \x98\x6A |0
+<UE95E> \x98\x6B |0
+<UE95F> \x98\x6C |1
+<UE960> \x98\x6D |0
+<UE961> \x98\x6E |0
+<UE962> \x98\x6F |1
+<UE963> \x98\x70 |1
+<UE964> \x98\x71 |0
+<UE965> \x98\x72 |1
+<UE966> \x98\x73 |1
+<UE967> \x98\x74 |0
+<UE968> \x98\x75 |0
+<UE969> \x98\x76 |1
+<UE96A> \x98\x77 |1
+<UE96B> \x98\x78 |1
+<UE96C> \x98\x79 |1
+<UE96D> \x98\x7A |1
+<UE96E> \x98\x7B |0
+<UE96F> \x98\x7C |0
+<UE970> \x98\x7D |1
+<UE971> \x98\x7E |1
+<UE972> \x98\xA1 |1
+<UE973> \x98\xA2 |0
+<UE974> \x98\xA3 |0
+<UE975> \x98\xA4 |0
+<UE976> \x98\xA5 |1
+<UE977> \x98\xA6 |0
+<UE978> \x98\xA7 |0
+<UE979> \x98\xA8 |1
+<UE97A> \x98\xA9 |0
+<UE97B> \x98\xAA |0
+<UE97C> \x98\xAB |1
+<UE97D> \x98\xAC |0
+<UE97E> \x98\xAD |1
+<UE97F> \x98\xAE |1
+<UE980> \x98\xAF |1
+<UE981> \x98\xB0 |0
+<UE982> \x98\xB1 |0
+<UE983> \x98\xB2 |1
+<UE984> \x98\xB3 |1
+<UE985> \x98\xB4 |1
+<UE986> \x98\xB5 |1
+<UE987> \x98\xB6 |0
+<UE988> \x98\xB7 |1
+<UE989> \x98\xB8 |1
+<UE98A> \x98\xB9 |0
+<UE98B> \x98\xBA |1
+<UE98C> \x98\xBB |1
+<UE98D> \x98\xBC |1
+<UE98E> \x98\xBD |0
+<UE98F> \x98\xBE |1
+<UE990> \x98\xBF |1
+<UE991> \x98\xC0 |0
+<UE992> \x98\xC1 |1
+<UE993> \x98\xC2 |1
+<UE994> \x98\xC3 |1
+<UE995> \x98\xC4 |1
+<UE996> \x98\xC5 |1
+<UE997> \x98\xC6 |1
+<UE998> \x98\xC7 |1
+<UE999> \x98\xC8 |1
+<UE99A> \x98\xC9 |1
+<UE99B> \x98\xCA |1
+<UE99C> \x98\xCB |1
+<UE99D> \x98\xCC |1
+<UE99E> \x98\xCD |1
+<UE99F> \x98\xCE |1
+<UE9A0> \x98\xCF |1
+<UE9A1> \x98\xD0 |1
+<UE9A2> \x98\xD1 |1
+<UE9A3> \x98\xD2 |1
+<UE9A4> \x98\xD3 |1
+<UE9A5> \x98\xD4 |1
+<UE9A6> \x98\xD5 |1
+<UE9A7> \x98\xD6 |1
+<UE9A8> \x98\xD7 |1
+<UE9A9> \x98\xD8 |1
+<UE9AA> \x98\xD9 |1
+<UE9AB> \x98\xDA |1
+<UE9AC> \x98\xDB |1
+<UE9AD> \x98\xDC |1
+<UE9AE> \x98\xDD |1
+<UE9AF> \x98\xDE |1
+<UE9B0> \x98\xDF |0
+<UE9B1> \x98\xE0 |1
+<UE9B2> \x98\xE1 |1
+<UE9B3> \x98\xE2 |1
+<UE9B4> \x98\xE3 |1
+<UE9B5> \x98\xE4 |1
+<UE9B6> \x98\xE5 |1
+<UE9B7> \x98\xE6 |1
+<UE9B8> \x98\xE7 |1
+<UE9B9> \x98\xE8 |1
+<UE9BA> \x98\xE9 |1
+<UE9BB> \x98\xEA |1
+<UE9BC> \x98\xEB |1
+<UE9BD> \x98\xEC |1
+<UE9BE> \x98\xED |1
+<UE9BF> \x98\xEE |1
+<UE9C0> \x98\xEF |1
+<UE9C1> \x98\xF0 |1
+<UE9C2> \x98\xF1 |1
+<UE9C3> \x98\xF2 |1
+<UE9C4> \x98\xF3 |1
+<UE9C5> \x98\xF4 |1
+<UE9C6> \x98\xF5 |1
+<UE9C7> \x98\xF6 |1
+<UE9C8> \x98\xF7 |1
+<UE9C9> \x98\xF8 |1
+<UE9CA> \x98\xF9 |1
+<UE9CB> \x98\xFA |0
+<UE9CC> \x98\xFB |1
+<UE9CD> \x98\xFC |1
+<UE9CE> \x98\xFD |1
+<UE9CF> \x98\xFE |1
+<UE9D0> \x99\x40 |1
+<UE9D1> \x99\x41 |1
+<UE9D2> \x99\x42 |1
+<UE9D3> \x99\x43 |1
+<UE9D4> \x99\x44 |1
+<UE9D5> \x99\x45 |1
+<UE9D6> \x99\x46 |1
+<UE9D7> \x99\x47 |1
+<UE9D8> \x99\x48 |1
+<UE9D9> \x99\x49 |1
+<UE9DA> \x99\x4A |1
+<UE9DB> \x99\x4B |1
+<UE9DC> \x99\x4C |1
+<UE9DD> \x99\x4D |1
+<UE9DE> \x99\x4E |1
+<UE9DF> \x99\x4F |1
+<UE9E0> \x99\x50 |1
+<UE9E1> \x99\x51 |1
+<UE9E2> \x99\x52 |1
+<UE9E3> \x99\x53 |1
+<UE9E4> \x99\x54 |1
+<UE9E5> \x99\x55 |1
+<UE9E6> \x99\x56 |1
+<UE9E7> \x99\x57 |1
+<UE9E8> \x99\x58 |1
+<UE9E9> \x99\x59 |1
+<UE9EA> \x99\x5A |1
+<UE9EB> \x99\x5B |1
+<UE9EC> \x99\x5C |1
+<UE9ED> \x99\x5D |1
+<UE9EE> \x99\x5E |1
+<UE9EF> \x99\x5F |0
+<UE9F0> \x99\x60 |1
+<UE9F1> \x99\x61 |1
+<UE9F2> \x99\x62 |1
+<UE9F3> \x99\x63 |1
+<UE9F4> \x99\x64 |1
+<UE9F5> \x99\x65 |1
+<UE9F6> \x99\x66 |1
+<UE9F7> \x99\x67 |1
+<UE9F8> \x99\x68 |1
+<UE9F9> \x99\x69 |1
+<UE9FA> \x99\x6A |1
+<UE9FB> \x99\x6B |1
+<UE9FC> \x99\x6C |1
+<UE9FD> \x99\x6D |1
+<UE9FE> \x99\x6E |1
+<UE9FF> \x99\x6F |1
+<UEA00> \x99\x70 |1
+<UEA01> \x99\x71 |1
+<UEA02> \x99\x72 |1
+<UEA03> \x99\x73 |1
+<UEA04> \x99\x74 |1
+<UEA05> \x99\x75 |1
+<UEA06> \x99\x76 |1
+<UEA07> \x99\x77 |1
+<UEA08> \x99\x78 |1
+<UEA09> \x99\x79 |1
+<UEA0A> \x99\x7A |1
+<UEA0B> \x99\x7B |1
+<UEA0C> \x99\x7C |1
+<UEA0D> \x99\x7D |1
+<UEA0E> \x99\x7E |1
+<UEA0F> \x99\xA1 |1
+<UEA10> \x99\xA2 |1
+<UEA11> \x99\xA3 |1
+<UEA12> \x99\xA4 |1
+<UEA13> \x99\xA5 |1
+<UEA14> \x99\xA6 |1
+<UEA15> \x99\xA7 |1
+<UEA16> \x99\xA8 |1
+<UEA17> \x99\xA9 |1
+<UEA18> \x99\xAA |1
+<UEA19> \x99\xAB |1
+<UEA1A> \x99\xAC |1
+<UEA1B> \x99\xAD |1
+<UEA1C> \x99\xAE |1
+<UEA1D> \x99\xAF |1
+<UEA1E> \x99\xB0 |1
+<UEA1F> \x99\xB1 |1
+<UEA20> \x99\xB2 |1
+<UEA21> \x99\xB3 |1
+<UEA22> \x99\xB4 |1
+<UEA23> \x99\xB5 |1
+<UEA24> \x99\xB6 |1
+<UEA25> \x99\xB7 |1
+<UEA26> \x99\xB8 |1
+<UEA27> \x99\xB9 |1
+<UEA28> \x99\xBA |1
+<UEA29> \x99\xBB |1
+<UEA2A> \x99\xBC |1
+<UEA2B> \x99\xBD |1
+<UEA2C> \x99\xBE |1
+<UEA2D> \x99\xBF |1
+<UEA2E> \x99\xC0 |1
+<UEA2F> \x99\xC1 |1
+<UEA30> \x99\xC2 |1
+<UEA31> \x99\xC3 |1
+<UEA32> \x99\xC4 |1
+<UEA33> \x99\xC5 |1
+<UEA34> \x99\xC6 |1
+<UEA35> \x99\xC7 |1
+<UEA36> \x99\xC8 |1
+<UEA37> \x99\xC9 |1
+<UEA38> \x99\xCA |1
+<UEA39> \x99\xCB |1
+<UEA3A> \x99\xCC |1
+<UEA3B> \x99\xCD |1
+<UEA3C> \x99\xCE |1
+<UEA3D> \x99\xCF |1
+<UEA3E> \x99\xD0 |1
+<UEA3F> \x99\xD1 |1
+<UEA40> \x99\xD2 |1
+<UEA41> \x99\xD3 |1
+<UEA42> \x99\xD4 |1
+<UEA43> \x99\xD5 |0
+<UEA44> \x99\xD6 |1
+<UEA45> \x99\xD7 |1
+<UEA46> \x99\xD8 |1
+<UEA47> \x99\xD9 |1
+<UEA48> \x99\xDA |1
+<UEA49> \x99\xDB |1
+<UEA4A> \x99\xDC |1
+<UEA4B> \x99\xDD |1
+<UEA4C> \x99\xDE |1
+<UEA4D> \x99\xDF |1
+<UEA4E> \x99\xE0 |1
+<UEA4F> \x99\xE1 |1
+<UEA50> \x99\xE2 |1
+<UEA51> \x99\xE3 |1
+<UEA52> \x99\xE4 |1
+<UEA53> \x99\xE5 |1
+<UEA54> \x99\xE6 |1
+<UEA55> \x99\xE7 |1
+<UEA56> \x99\xE8 |1
+<UEA57> \x99\xE9 |1
+<UEA58> \x99\xEA |1
+<UEA59> \x99\xEB |1
+<UEA5A> \x99\xEC |1
+<UEA5B> \x99\xED |1
+<UEA5C> \x99\xEE |1
+<UEA5D> \x99\xEF |1
+<UEA5E> \x99\xF0 |1
+<UEA5F> \x99\xF1 |1
+<UEA60> \x99\xF2 |1
+<UEA61> \x99\xF3 |1
+<UEA62> \x99\xF4 |1
+<UEA63> \x99\xF5 |1
+<UEA64> \x99\xF6 |1
+<UEA65> \x99\xF7 |1
+<UEA66> \x99\xF8 |1
+<UEA67> \x99\xF9 |1
+<UEA68> \x99\xFA |1
+<UEA69> \x99\xFB |1
+<UEA6A> \x99\xFC |1
+<UEA6B> \x99\xFD |1
+<UEA6C> \x99\xFE |1
+<UEA6D> \x9A\x40 |1
+<UEA6E> \x9A\x41 |1
+<UEA6F> \x9A\x42 |1
+<UEA70> \x9A\x43 |1
+<UEA71> \x9A\x44 |1
+<UEA72> \x9A\x45 |1
+<UEA73> \x9A\x46 |1
+<UEA74> \x9A\x47 |1
+<UEA75> \x9A\x48 |1
+<UEA76> \x9A\x49 |1
+<UEA77> \x9A\x4A |1
+<UEA78> \x9A\x4B |1
+<UEA79> \x9A\x4C |1
+<UEA7A> \x9A\x4D |1
+<UEA7B> \x9A\x4E |1
+<UEA7C> \x9A\x4F |1
+<UEA7D> \x9A\x50 |1
+<UEA7E> \x9A\x51 |1
+<UEA7F> \x9A\x52 |1
+<UEA80> \x9A\x53 |1
+<UEA81> \x9A\x54 |1
+<UEA82> \x9A\x55 |1
+<UEA83> \x9A\x56 |1
+<UEA84> \x9A\x57 |1
+<UEA85> \x9A\x58 |1
+<UEA86> \x9A\x59 |1
+<UEA87> \x9A\x5A |1
+<UEA88> \x9A\x5B |1
+<UEA89> \x9A\x5C |1
+<UEA8A> \x9A\x5D |1
+<UEA8B> \x9A\x5E |1
+<UEA8C> \x9A\x5F |1
+<UEA8D> \x9A\x60 |1
+<UEA8E> \x9A\x61 |1
+<UEA8F> \x9A\x62 |1
+<UEA90> \x9A\x63 |1
+<UEA91> \x9A\x64 |1
+<UEA92> \x9A\x65 |1
+<UEA93> \x9A\x66 |1
+<UEA94> \x9A\x67 |1
+<UEA95> \x9A\x68 |1
+<UEA96> \x9A\x69 |1
+<UEA97> \x9A\x6A |1
+<UEA98> \x9A\x6B |1
+<UEA99> \x9A\x6C |1
+<UEA9A> \x9A\x6D |1
+<UEA9B> \x9A\x6E |1
+<UEA9C> \x9A\x6F |1
+<UEA9D> \x9A\x70 |1
+<UEA9E> \x9A\x71 |1
+<UEA9F> \x9A\x72 |1
+<UEAA0> \x9A\x73 |1
+<UEAA1> \x9A\x74 |1
+<UEAA2> \x9A\x75 |1
+<UEAA3> \x9A\x76 |1
+<UEAA4> \x9A\x77 |1
+<UEAA5> \x9A\x78 |1
+<UEAA6> \x9A\x79 |1
+<UEAA7> \x9A\x7A |1
+<UEAA8> \x9A\x7B |1
+<UEAA9> \x9A\x7C |0
+<UEAAA> \x9A\x7D |1
+<UEAAB> \x9A\x7E |1
+<UEAAC> \x9A\xA1 |1
+<UEAAD> \x9A\xA2 |1
+<UEAAE> \x9A\xA3 |1
+<UEAAF> \x9A\xA4 |1
+<UEAB0> \x9A\xA5 |1
+<UEAB1> \x9A\xA6 |1
+<UEAB2> \x9A\xA7 |1
+<UEAB3> \x9A\xA8 |1
+<UEAB4> \x9A\xA9 |1
+<UEAB5> \x9A\xAA |1
+<UEAB6> \x9A\xAB |1
+<UEAB7> \x9A\xAC |1
+<UEAB8> \x9A\xAD |1
+<UEAB9> \x9A\xAE |1
+<UEABA> \x9A\xAF |1
+<UEABB> \x9A\xB0 |1
+<UEABC> \x9A\xB1 |1
+<UEABD> \x9A\xB2 |1
+<UEABE> \x9A\xB3 |1
+<UEABF> \x9A\xB4 |0
+<UEAC0> \x9A\xB5 |0
+<UEAC1> \x9A\xB6 |0
+<UEAC2> \x9A\xB7 |1
+<UEAC3> \x9A\xB8 |1
+<UEAC4> \x9A\xB9 |1
+<UEAC5> \x9A\xBA |0
+<UEAC6> \x9A\xBB |1
+<UEAC7> \x9A\xBC |1
+<UEAC8> \x9A\xBD |1
+<UEAC9> \x9A\xBE |0
+<UEACA> \x9A\xBF |0
+<UEACB> \x9A\xC0 |0
+<UEACC> \x9A\xC1 |0
+<UEACD> \x9A\xC2 |1
+<UEACE> \x9A\xC3 |1
+<UEACF> \x9A\xC4 |0
+<UEAD0> \x9A\xC5 |0
+<UEAD1> \x9A\xC6 |0
+<UEAD2> \x9A\xC7 |1
+<UEAD3> \x9A\xC8 |0
+<UEAD4> \x9A\xC9 |0
+<UEAD5> \x9A\xCA |1
+<UEAD6> \x9A\xCB |0
+<UEAD7> \x9A\xCC |0
+<UEAD8> \x9A\xCD |0
+<UEAD9> \x9A\xCE |0
+<UEADA> \x9A\xCF |0
+<UEADB> \x9A\xD0 |1
+<UEADC> \x9A\xD1 |0
+<UEADD> \x9A\xD2 |1
+<UEADE> \x9A\xD3 |0
+<UEADF> \x9A\xD4 |0
+<UEAE0> \x9A\xD5 |0
+<UEAE1> \x9A\xD6 |0
+<UEAE2> \x9A\xD7 |0
+<UEAE3> \x9A\xD8 |0
+<UEAE4> \x9A\xD9 |1
+<UEAE5> \x9A\xDA |1
+<UEAE6> \x9A\xDB |1
+<UEAE7> \x9A\xDC |0
+<UEAE8> \x9A\xDD |0
+<UEAE9> \x9A\xDE |0
+<UEAEA> \x9A\xDF |0
+<UEAEB> \x9A\xE0 |0
+<UEAEC> \x9A\xE1 |0
+<UEAED> \x9A\xE2 |1
+<UEAEE> \x9A\xE3 |0
+<UEAEF> \x9A\xE4 |1
+<UEAF0> \x9A\xE5 |0
+<UEAF1> \x9A\xE6 |0
+<UEAF2> \x9A\xE7 |0
+<UEAF3> \x9A\xE8 |1
+<UEAF4> \x9A\xE9 |0
+<UEAF5> \x9A\xEA |0
+<UEAF6> \x9A\xEB |0
+<UEAF7> \x9A\xEC |1
+<UEAF8> \x9A\xED |0
+<UEAF9> \x9A\xEE |0
+<UEAFA> \x9A\xEF |0
+<UEAFB> \x9A\xF0 |0
+<UEAFC> \x9A\xF1 |1
+<UEAFD> \x9A\xF2 |1
+<UEAFE> \x9A\xF3 |0
+<UEAFF> \x9A\xF4 |0
+<UEB00> \x9A\xF5 |0
+<UEB01> \x9A\xF6 |1
+<UEB02> \x9A\xF7 |0
+<UEB03> \x9A\xF8 |0
+<UEB04> \x9A\xF9 |0
+<UEB05> \x9A\xFA |0
+<UEB06> \x9A\xFB |1
+<UEB07> \x9A\xFC |1
+<UEB08> \x9A\xFD |0
+<UEB09> \x9A\xFE |0
+<UEB0A> \x9B\x40 |0
+<UEB0B> \x9B\x41 |0
+<UEB0C> \x9B\x42 |0
+<UEB0D> \x9B\x43 |0
+<UEB0E> \x9B\x44 |0
+<UEB0F> \x9B\x45 |0
+<UEB10> \x9B\x46 |1
+<UEB11> \x9B\x47 |0
+<UEB12> \x9B\x48 |0
+<UEB13> \x9B\x49 |1
+<UEB14> \x9B\x4A |1
+<UEB15> \x9B\x4B |0
+<UEB16> \x9B\x4C |1
+<UEB17> \x9B\x4D |1
+<UEB18> \x9B\x4E |0
+<UEB19> \x9B\x4F |0
+<UEB1A> \x9B\x50 |0
+<UEB1B> \x9B\x51 |0
+<UEB1C> \x9B\x52 |0
+<UEB1D> \x9B\x53 |0
+<UEB1E> \x9B\x54 |1
+<UEB1F> \x9B\x55 |0
+<UEB20> \x9B\x56 |0
+<UEB21> \x9B\x57 |0
+<UEB22> \x9B\x58 |1
+<UEB23> \x9B\x59 |0
+<UEB24> \x9B\x5A |1
+<UEB25> \x9B\x5B |0
+<UEB26> \x9B\x5C |1
+<UEB27> \x9B\x5D |0
+<UEB28> \x9B\x5E |1
+<UEB29> \x9B\x5F |1
+<UEB2A> \x9B\x60 |0
+<UEB2B> \x9B\x61 |0
+<UEB2C> \x9B\x62 |0
+<UEB2D> \x9B\x63 |0
+<UEB2E> \x9B\x64 |0
+<UEB2F> \x9B\x65 |0
+<UEB30> \x9B\x66 |0
+<UEB31> \x9B\x67 |0
+<UEB32> \x9B\x68 |0
+<UEB33> \x9B\x69 |0
+<UEB34> \x9B\x6A |0
+<UEB35> \x9B\x6B |0
+<UEB36> \x9B\x6C |0
+<UEB37> \x9B\x6D |0
+<UEB38> \x9B\x6E |0
+<UEB39> \x9B\x6F |0
+<UEB3A> \x9B\x70 |1
+<UEB3B> \x9B\x71 |1
+<UEB3C> \x9B\x72 |1
+<UEB3D> \x9B\x73 |0
+<UEB3E> \x9B\x74 |0
+<UEB3F> \x9B\x75 |0
+<UEB40> \x9B\x76 |0
+<UEB41> \x9B\x77 |0
+<UEB42> \x9B\x78 |0
+<UEB43> \x9B\x79 |0
+<UEB44> \x9B\x7A |0
+<UEB45> \x9B\x7B |0
+<UEB46> \x9B\x7C |0
+<UEB47> \x9B\x7D |1
+<UEB48> \x9B\x7E |1
+<UEB49> \x9B\xA1 |1
+<UEB4A> \x9B\xA2 |0
+<UEB4B> \x9B\xA3 |0
+<UEB4C> \x9B\xA4 |0
+<UEB4D> \x9B\xA5 |0
+<UEB4E> \x9B\xA6 |0
+<UEB4F> \x9B\xA7 |0
+<UEB50> \x9B\xA8 |0
+<UEB51> \x9B\xA9 |1
+<UEB52> \x9B\xAA |1
+<UEB53> \x9B\xAB |0
+<UEB54> \x9B\xAC |0
+<UEB55> \x9B\xAD |0
+<UEB56> \x9B\xAE |0
+<UEB57> \x9B\xAF |0
+<UEB58> \x9B\xB0 |0
+<UEB59> \x9B\xB1 |0
+<UEB5A> \x9B\xB2 |0
+<UEB5B> \x9B\xB3 |0
+<UEB5C> \x9B\xB4 |1
+<UEB5D> \x9B\xB5 |0
+<UEB5E> \x9B\xB6 |1
+<UEB5F> \x9B\xB7 |0
+<UEB60> \x9B\xB8 |1
+<UEB61> \x9B\xB9 |0
+<UEB62> \x9B\xBA |0
+<UEB63> \x9B\xBB |0
+<UEB64> \x9B\xBC |1
+<UEB65> \x9B\xBD |0
+<UEB66> \x9B\xBE |1
+<UEB67> \x9B\xBF |0
+<UEB68> \x9B\xC0 |0
+<UEB69> \x9B\xC1 |0
+<UEB6A> \x9B\xC2 |1
+<UEB6B> \x9B\xC3 |0
+<UEB6C> \x9B\xC4 |1
+<UEB6D> \x9B\xC5 |0
+<UEB6E> \x9B\xC6 |0
+<UEB6F> \x9B\xC7 |0
+<UEB70> \x9B\xC8 |0
+<UEB71> \x9B\xC9 |0
+<UEB72> \x9B\xCA |1
+<UEB73> \x9B\xCB |0
+<UEB74> \x9B\xCC |0
+<UEB75> \x9B\xCD |1
+<UEB76> \x9B\xCE |0
+<UEB77> \x9B\xCF |0
+<UEB78> \x9B\xD0 |0
+<UEB79> \x9B\xD1 |1
+<UEB7A> \x9B\xD2 |0
+<UEB7B> \x9B\xD3 |1
+<UEB7C> \x9B\xD4 |1
+<UEB7D> \x9B\xD5 |1
+<UEB7E> \x9B\xD6 |0
+<UEB7F> \x9B\xD7 |0
+<UEB80> \x9B\xD8 |0
+<UEB81> \x9B\xD9 |0
+<UEB82> \x9B\xDA |1
+<UEB83> \x9B\xDB |0
+<UEB84> \x9B\xDC |0
+<UEB85> \x9B\xDD |0
+<UEB86> \x9B\xDE |0
+<UEB87> \x9B\xDF |1
+<UEB88> \x9B\xE0 |0
+<UEB89> \x9B\xE1 |0
+<UEB8A> \x9B\xE2 |0
+<UEB8B> \x9B\xE3 |1
+<UEB8C> \x9B\xE4 |0
+<UEB8D> \x9B\xE5 |0
+<UEB8E> \x9B\xE6 |0
+<UEB8F> \x9B\xE7 |0
+<UEB90> \x9B\xE8 |0
+<UEB91> \x9B\xE9 |1
+<UEB92> \x9B\xEA |1
+<UEB93> \x9B\xEB |0
+<UEB94> \x9B\xEC |0
+<UEB95> \x9B\xED |0
+<UEB96> \x9B\xEE |1
+<UEB97> \x9B\xEF |0
+<UEB98> \x9B\xF0 |0
+<UEB99> \x9B\xF1 |0
+<UEB9A> \x9B\xF2 |0
+<UEB9B> \x9B\xF3 |0
+<UEB9C> \x9B\xF4 |1
+<UEB9D> \x9B\xF5 |1
+<UEB9E> \x9B\xF6 |0
+<UEB9F> \x9B\xF7 |0
+<UEBA0> \x9B\xF8 |0
+<UEBA1> \x9B\xF9 |1
+<UEBA2> \x9B\xFA |0
+<UEBA3> \x9B\xFB |0
+<UEBA4> \x9B\xFC |1
+<UEBA5> \x9B\xFD |0
+<UEBA6> \x9B\xFE |0
+<UEBA7> \x9C\x40 |1
+<UEBA8> \x9C\x41 |0
+<UEBA9> \x9C\x42 |0
+<UEBAA> \x9C\x43 |0
+<UEBAB> \x9C\x44 |0
+<UEBAC> \x9C\x45 |1
+<UEBAD> \x9C\x46 |0
+<UEBAE> \x9C\x47 |0
+<UEBAF> \x9C\x48 |0
+<UEBB0> \x9C\x49 |0
+<UEBB1> \x9C\x4A |1
+<UEBB2> \x9C\x4B |0
+<UEBB3> \x9C\x4C |0
+<UEBB4> \x9C\x4D |0
+<UEBB5> \x9C\x4E |1
+<UEBB6> \x9C\x4F |0
+<UEBB7> \x9C\x50 |1
+<UEBB8> \x9C\x51 |1
+<UEBB9> \x9C\x52 |0
+<UEBBA> \x9C\x53 |0
+<UEBBB> \x9C\x54 |1
+<UEBBC> \x9C\x55 |0
+<UEBBD> \x9C\x56 |0
+<UEBBE> \x9C\x57 |1
+<UEBBF> \x9C\x58 |0
+<UEBC0> \x9C\x59 |1
+<UEBC1> \x9C\x5A |1
+<UEBC2> \x9C\x5B |0
+<UEBC3> \x9C\x5C |1
+<UEBC4> \x9C\x5D |1
+<UEBC5> \x9C\x5E |0
+<UEBC6> \x9C\x5F |0
+<UEBC7> \x9C\x60 |0
+<UEBC8> \x9C\x61 |0
+<UEBC9> \x9C\x62 |0
+<UEBCA> \x9C\x63 |0
+<UEBCB> \x9C\x64 |1
+<UEBCC> \x9C\x65 |0
+<UEBCD> \x9C\x66 |0
+<UEBCE> \x9C\x67 |0
+<UEBCF> \x9C\x68 |0
+<UEBD0> \x9C\x69 |0
+<UEBD1> \x9C\x6A |1
+<UEBD2> \x9C\x6B |0
+<UEBD3> \x9C\x6C |0
+<UEBD4> \x9C\x6D |1
+<UEBD5> \x9C\x6E |0
+<UEBD6> \x9C\x6F |1
+<UEBD7> \x9C\x70 |0
+<UEBD8> \x9C\x71 |0
+<UEBD9> \x9C\x72 |1
+<UEBDA> \x9C\x73 |0
+<UEBDB> \x9C\x74 |0
+<UEBDC> \x9C\x75 |1
+<UEBDD> \x9C\x76 |0
+<UEBDE> \x9C\x77 |0
+<UEBDF> \x9C\x78 |0
+<UEBE0> \x9C\x79 |1
+<UEBE1> \x9C\x7A |0
+<UEBE2> \x9C\x7B |1
+<UEBE3> \x9C\x7C |1
+<UEBE4> \x9C\x7D |0
+<UEBE5> \x9C\x7E |1
+<UEBE6> \x9C\xA1 |1
+<UEBE7> \x9C\xA2 |0
+<UEBE8> \x9C\xA3 |0
+<UEBE9> \x9C\xA4 |0
+<UEBEA> \x9C\xA5 |1
+<UEBEB> \x9C\xA6 |0
+<UEBEC> \x9C\xA7 |0
+<UEBED> \x9C\xA8 |1
+<UEBEE> \x9C\xA9 |0
+<UEBEF> \x9C\xAA |0
+<UEBF0> \x9C\xAB |1
+<UEBF1> \x9C\xAC |0
+<UEBF2> \x9C\xAD |0
+<UEBF3> \x9C\xAE |1
+<UEBF4> \x9C\xAF |1
+<UEBF5> \x9C\xB0 |0
+<UEBF6> \x9C\xB1 |0
+<UEBF7> \x9C\xB2 |1
+<UEBF8> \x9C\xB3 |1
+<UEBF9> \x9C\xB4 |0
+<UEBFA> \x9C\xB5 |0
+<UEBFB> \x9C\xB6 |0
+<UEBFC> \x9C\xB7 |1
+<UEBFD> \x9C\xB8 |0
+<UEBFE> \x9C\xB9 |0
+<UEBFF> \x9C\xBA |1
+<UEC00> \x9C\xBB |1
+<UEC01> \x9C\xBC |0
+<UEC02> \x9C\xBD |0
+<UEC03> \x9C\xBE |1
+<UEC04> \x9C\xBF |1
+<UEC05> \x9C\xC0 |0
+<UEC06> \x9C\xC1 |0
+<UEC07> \x9C\xC2 |1
+<UEC08> \x9C\xC3 |0
+<UEC09> \x9C\xC4 |0
+<UEC0A> \x9C\xC5 |1
+<UEC0B> \x9C\xC6 |1
+<UEC0C> \x9C\xC7 |0
+<UEC0D> \x9C\xC8 |1
+<UEC0E> \x9C\xC9 |0
+<UEC0F> \x9C\xCA |0
+<UEC10> \x9C\xCB |0
+<UEC11> \x9C\xCC |1
+<UEC12> \x9C\xCD |1
+<UEC13> \x9C\xCE |0
+<UEC14> \x9C\xCF |0
+<UEC15> \x9C\xD0 |0
+<UEC16> \x9C\xD1 |1
+<UEC17> \x9C\xD2 |0
+<UEC18> \x9C\xD3 |0
+<UEC19> \x9C\xD4 |0
+<UEC1A> \x9C\xD5 |0
+<UEC1B> \x9C\xD6 |0
+<UEC1C> \x9C\xD7 |0
+<UEC1D> \x9C\xD8 |0
+<UEC1E> \x9C\xD9 |1
+<UEC1F> \x9C\xDA |1
+<UEC20> \x9C\xDB |0
+<UEC21> \x9C\xDC |1
+<UEC22> \x9C\xDD |0
+<UEC23> \x9C\xDE |1
+<UEC24> \x9C\xDF |0
+<UEC25> \x9C\xE0 |1
+<UEC26> \x9C\xE1 |0
+<UEC27> \x9C\xE2 |1
+<UEC28> \x9C\xE3 |1
+<UEC29> \x9C\xE4 |1
+<UEC2A> \x9C\xE5 |0
+<UEC2B> \x9C\xE6 |0
+<UEC2C> \x9C\xE7 |0
+<UEC2D> \x9C\xE8 |0
+<UEC2E> \x9C\xE9 |0
+<UEC2F> \x9C\xEA |0
+<UEC30> \x9C\xEB |1
+<UEC31> \x9C\xEC |0
+<UEC32> \x9C\xED |0
+<UEC33> \x9C\xEE |1
+<UEC34> \x9C\xEF |1
+<UEC35> \x9C\xF0 |0
+<UEC36> \x9C\xF1 |1
+<UEC37> \x9C\xF2 |0
+<UEC38> \x9C\xF3 |1
+<UEC39> \x9C\xF4 |1
+<UEC3A> \x9C\xF5 |1
+<UEC3B> \x9C\xF6 |0
+<UEC3C> \x9C\xF7 |0
+<UEC3D> \x9C\xF8 |1
+<UEC3E> \x9C\xF9 |1
+<UEC3F> \x9C\xFA |0
+<UEC40> \x9C\xFB |0
+<UEC41> \x9C\xFC |0
+<UEC42> \x9C\xFD |0
+<UEC43> \x9C\xFE |0
+<UEC44> \x9D\x40 |0
+<UEC45> \x9D\x41 |0
+<UEC46> \x9D\x42 |0
+<UEC47> \x9D\x43 |0
+<UEC48> \x9D\x44 |0
+<UEC49> \x9D\x45 |0
+<UEC4A> \x9D\x46 |1
+<UEC4B> \x9D\x47 |0
+<UEC4C> \x9D\x48 |0
+<UEC4D> \x9D\x49 |1
+<UEC4E> \x9D\x4A |1
+<UEC4F> \x9D\x4B |0
+<UEC50> \x9D\x4C |1
+<UEC51> \x9D\x4D |1
+<UEC52> \x9D\x4E |0
+<UEC53> \x9D\x4F |1
+<UEC54> \x9D\x50 |0
+<UEC55> \x9D\x51 |1
+<UEC56> \x9D\x52 |0
+<UEC57> \x9D\x53 |0
+<UEC58> \x9D\x54 |0
+<UEC59> \x9D\x55 |1
+<UEC5A> \x9D\x56 |0
+<UEC5B> \x9D\x57 |0
+<UEC5C> \x9D\x58 |0
+<UEC5D> \x9D\x59 |0
+<UEC5E> \x9D\x5A |0
+<UEC5F> \x9D\x5B |0
+<UEC60> \x9D\x5C |0
+<UEC61> \x9D\x5D |1
+<UEC62> \x9D\x5E |0
+<UEC63> \x9D\x5F |0
+<UEC64> \x9D\x60 |1
+<UEC65> \x9D\x61 |1
+<UEC66> \x9D\x62 |1
+<UEC67> \x9D\x63 |0
+<UEC68> \x9D\x64 |0
+<UEC69> \x9D\x65 |0
+<UEC6A> \x9D\x66 |0
+<UEC6B> \x9D\x67 |0
+<UEC6C> \x9D\x68 |0
+<UEC6D> \x9D\x69 |0
+<UEC6E> \x9D\x6A |0
+<UEC6F> \x9D\x6B |0
+<UEC70> \x9D\x6C |0
+<UEC71> \x9D\x6D |0
+<UEC72> \x9D\x6E |0
+<UEC73> \x9D\x6F |0
+<UEC74> \x9D\x70 |1
+<UEC75> \x9D\x71 |0
+<UEC76> \x9D\x72 |0
+<UEC77> \x9D\x73 |1
+<UEC78> \x9D\x74 |1
+<UEC79> \x9D\x75 |0
+<UEC7A> \x9D\x76 |1
+<UEC7B> \x9D\x77 |0
+<UEC7C> \x9D\x78 |1
+<UEC7D> \x9D\x79 |1
+<UEC7E> \x9D\x7A |0
+<UEC7F> \x9D\x7B |1
+<UEC80> \x9D\x7C |0
+<UEC81> \x9D\x7D |1
+<UEC82> \x9D\x7E |1
+<UEC83> \x9D\xA1 |1
+<UEC84> \x9D\xA2 |0
+<UEC85> \x9D\xA3 |1
+<UEC86> \x9D\xA4 |0
+<UEC87> \x9D\xA5 |1
+<UEC88> \x9D\xA6 |1
+<UEC89> \x9D\xA7 |1
+<UEC8A> \x9D\xA8 |1
+<UEC8B> \x9D\xA9 |1
+<UEC8C> \x9D\xAA |1
+<UEC8D> \x9D\xAB |0
+<UEC8E> \x9D\xAC |0
+<UEC8F> \x9D\xAD |1
+<UEC90> \x9D\xAE |1
+<UEC91> \x9D\xAF |0
+<UEC92> \x9D\xB0 |0
+<UEC93> \x9D\xB1 |0
+<UEC94> \x9D\xB2 |0
+<UEC95> \x9D\xB3 |0
+<UEC96> \x9D\xB4 |0
+<UEC97> \x9D\xB5 |1
+<UEC98> \x9D\xB6 |0
+<UEC99> \x9D\xB7 |0
+<UEC9A> \x9D\xB8 |0
+<UEC9B> \x9D\xB9 |0
+<UEC9C> \x9D\xBA |1
+<UEC9D> \x9D\xBB |0
+<UEC9E> \x9D\xBC |0
+<UEC9F> \x9D\xBD |1
+<UECA0> \x9D\xBE |0
+<UECA1> \x9D\xBF |1
+<UECA2> \x9D\xC0 |1
+<UECA3> \x9D\xC1 |0
+<UECA4> \x9D\xC2 |0
+<UECA5> \x9D\xC3 |1
+<UECA6> \x9D\xC4 |0
+<UECA7> \x9D\xC5 |0
+<UECA8> \x9D\xC6 |0
+<UECA9> \x9D\xC7 |1
+<UECAA> \x9D\xC8 |1
+<UECAB> \x9D\xC9 |0
+<UECAC> \x9D\xCA |1
+<UECAD> \x9D\xCB |0
+<UECAE> \x9D\xCC |1
+<UECAF> \x9D\xCD |0
+<UECB0> \x9D\xCE |1
+<UECB1> \x9D\xCF |1
+<UECB2> \x9D\xD0 |1
+<UECB3> \x9D\xD1 |1
+<UECB4> \x9D\xD2 |0
+<UECB5> \x9D\xD3 |1
+<UECB6> \x9D\xD4 |0
+<UECB7> \x9D\xD5 |1
+<UECB8> \x9D\xD6 |1
+<UECB9> \x9D\xD7 |0
+<UECBA> \x9D\xD8 |0
+<UECBB> \x9D\xD9 |0
+<UECBC> \x9D\xDA |1
+<UECBD> \x9D\xDB |1
+<UECBE> \x9D\xDC |1
+<UECBF> \x9D\xDD |1
+<UECC0> \x9D\xDE |1
+<UECC1> \x9D\xDF |1
+<UECC2> \x9D\xE0 |1
+<UECC3> \x9D\xE1 |1
+<UECC4> \x9D\xE2 |1
+<UECC5> \x9D\xE3 |1
+<UECC6> \x9D\xE4 |1
+<UECC7> \x9D\xE5 |1
+<UECC8> \x9D\xE6 |1
+<UECC9> \x9D\xE7 |1
+<UECCA> \x9D\xE8 |1
+<UECCB> \x9D\xE9 |1
+<UECCC> \x9D\xEA |1
+<UECCD> \x9D\xEB |1
+<UECCE> \x9D\xEC |1
+<UECCF> \x9D\xED |0
+<UECD0> \x9D\xEE |1
+<UECD1> \x9D\xEF |1
+<UECD2> \x9D\xF0 |1
+<UECD3> \x9D\xF1 |1
+<UECD4> \x9D\xF2 |0
+<UECD5> \x9D\xF3 |1
+<UECD6> \x9D\xF4 |1
+<UECD7> \x9D\xF5 |1
+<UECD8> \x9D\xF6 |1
+<UECD9> \x9D\xF7 |1
+<UECDA> \x9D\xF8 |1
+<UECDB> \x9D\xF9 |0
+<UECDC> \x9D\xFA |0
+<UECDD> \x9D\xFB |1
+<UECDE> \x9D\xFC |0
+<UECDF> \x9D\xFD |0
+<UECE0> \x9D\xFE |0
+<UECE1> \x9E\x40 |0
+<UECE2> \x9E\x41 |1
+<UECE3> \x9E\x42 |1
+<UECE4> \x9E\x43 |1
+<UECE5> \x9E\x44 |0
+<UECE6> \x9E\x45 |1
+<UECE7> \x9E\x46 |1
+<UECE8> \x9E\x47 |1
+<UECE9> \x9E\x48 |1
+<UECEA> \x9E\x49 |1
+<UECEB> \x9E\x4A |1
+<UECEC> \x9E\x4B |1
+<UECED> \x9E\x4C |1
+<UECEE> \x9E\x4D |1
+<UECEF> \x9E\x4E |1
+<UECF0> \x9E\x4F |0
+<UECF1> \x9E\x50 |1
+<UECF2> \x9E\x51 |0
+<UECF3> \x9E\x52 |1
+<UECF4> \x9E\x53 |1
+<UECF5> \x9E\x54 |0
+<UECF6> \x9E\x55 |1
+<UECF7> \x9E\x56 |1
+<UECF8> \x9E\x57 |1
+<UECF9> \x9E\x58 |1
+<UECFA> \x9E\x59 |1
+<UECFB> \x9E\x5A |1
+<UECFC> \x9E\x5B |0
+<UECFD> \x9E\x5C |1
+<UECFE> \x9E\x5D |1
+<UECFF> \x9E\x5E |1
+<UED00> \x9E\x5F |1
+<UED01> \x9E\x60 |1
+<UED02> \x9E\x61 |1
+<UED03> \x9E\x62 |1
+<UED04> \x9E\x63 |0
+<UED05> \x9E\x64 |1
+<UED06> \x9E\x65 |1
+<UED07> \x9E\x66 |0
+<UED08> \x9E\x67 |1
+<UED09> \x9E\x68 |1
+<UED0A> \x9E\x69 |0
+<UED0B> \x9E\x6A |1
+<UED0C> \x9E\x6B |0
+<UED0D> \x9E\x6C |0
+<UED0E> \x9E\x6D |0
+<UED0F> \x9E\x6E |0
+<UED10> \x9E\x6F |0
+<UED11> \x9E\x70 |0
+<UED12> \x9E\x71 |1
+<UED13> \x9E\x72 |0
+<UED14> \x9E\x73 |1
+<UED15> \x9E\x74 |0
+<UED16> \x9E\x75 |0
+<UED17> \x9E\x76 |0
+<UED18> \x9E\x77 |0
+<UED19> \x9E\x78 |1
+<UED1A> \x9E\x79 |0
+<UED1B> \x9E\x7A |1
+<UED1C> \x9E\x7B |0
+<UED1D> \x9E\x7C |0
+<UED1E> \x9E\x7D |0
+<UED1F> \x9E\x7E |1
+<UED20> \x9E\xA1 |1
+<UED21> \x9E\xA2 |1
+<UED22> \x9E\xA3 |0
+<UED23> \x9E\xA4 |1
+<UED24> \x9E\xA5 |0
+<UED25> \x9E\xA6 |0
+<UED26> \x9E\xA7 |0
+<UED27> \x9E\xA8 |0
+<UED28> \x9E\xA9 |0
+<UED29> \x9E\xAA |0
+<UED2A> \x9E\xAB |0
+<UED2B> \x9E\xAC |0
+<UED2C> \x9E\xAD |0
+<UED2D> \x9E\xAE |0
+<UED2E> \x9E\xAF |1
+<UED2F> \x9E\xB0 |1
+<UED30> \x9E\xB1 |1
+<UED31> \x9E\xB2 |1
+<UED32> \x9E\xB3 |1
+<UED33> \x9E\xB4 |1
+<UED34> \x9E\xB5 |1
+<UED35> \x9E\xB6 |1
+<UED36> \x9E\xB7 |1
+<UED37> \x9E\xB8 |1
+<UED38> \x9E\xB9 |1
+<UED39> \x9E\xBA |1
+<UED3A> \x9E\xBB |1
+<UED3B> \x9E\xBC |0
+<UED3C> \x9E\xBD |1
+<UED3D> \x9E\xBE |0
+<UED3E> \x9E\xBF |1
+<UED3F> \x9E\xC0 |1
+<UED40> \x9E\xC1 |1
+<UED41> \x9E\xC2 |0
+<UED42> \x9E\xC3 |0
+<UED43> \x9E\xC4 |0
+<UED44> \x9E\xC5 |1
+<UED45> \x9E\xC6 |0
+<UED46> \x9E\xC7 |1
+<UED47> \x9E\xC8 |0
+<UED48> \x9E\xC9 |1
+<UED49> \x9E\xCA |1
+<UED4A> \x9E\xCB |0
+<UED4B> \x9E\xCC |0
+<UED4C> \x9E\xCD |1
+<UED4D> \x9E\xCE |0
+<UED4E> \x9E\xCF |0
+<UED4F> \x9E\xD0 |0
+<UED50> \x9E\xD1 |1
+<UED51> \x9E\xD2 |0
+<UED52> \x9E\xD3 |0
+<UED53> \x9E\xD4 |0
+<UED54> \x9E\xD5 |0
+<UED55> \x9E\xD6 |1
+<UED56> \x9E\xD7 |1
+<UED57> \x9E\xD8 |0
+<UED58> \x9E\xD9 |0
+<UED59> \x9E\xDA |1
+<UED5A> \x9E\xDB |1
+<UED5B> \x9E\xDC |1
+<UED5C> \x9E\xDD |1
+<UED5D> \x9E\xDE |1
+<UED5E> \x9E\xDF |1
+<UED5F> \x9E\xE0 |0
+<UED60> \x9E\xE1 |1
+<UED61> \x9E\xE2 |1
+<UED62> \x9E\xE3 |0
+<UED63> \x9E\xE4 |1
+<UED64> \x9E\xE5 |1
+<UED65> \x9E\xE6 |1
+<UED66> \x9E\xE7 |1
+<UED67> \x9E\xE8 |1
+<UED68> \x9E\xE9 |1
+<UED69> \x9E\xEA |1
+<UED6A> \x9E\xEB |1
+<UED6B> \x9E\xEC |0
+<UED6C> \x9E\xED |1
+<UED6D> \x9E\xEE |1
+<UED6E> \x9E\xEF |0
+<UED6F> \x9E\xF0 |1
+<UED70> \x9E\xF1 |1
+<UED71> \x9E\xF2 |0
+<UED72> \x9E\xF3 |0
+<UED73> \x9E\xF4 |0
+<UED74> \x9E\xF5 |1
+<UED75> \x9E\xF6 |0
+<UED76> \x9E\xF7 |1
+<UED77> \x9E\xF8 |0
+<UED78> \x9E\xF9 |0
+<UED79> \x9E\xFA |1
+<UED7A> \x9E\xFB |0
+<UED7B> \x9E\xFC |1
+<UED7C> \x9E\xFD |0
+<UED7D> \x9E\xFE |1
+<UED7E> \x9F\x40 |1
+<UED7F> \x9F\x41 |1
+<UED80> \x9F\x42 |1
+<UED81> \x9F\x43 |0
+<UED82> \x9F\x44 |1
+<UED83> \x9F\x45 |1
+<UED84> \x9F\x46 |0
+<UED85> \x9F\x47 |0
+<UED86> \x9F\x48 |0
+<UED87> \x9F\x49 |1
+<UED88> \x9F\x4A |0
+<UED89> \x9F\x4B |0
+<UED8A> \x9F\x4C |0
+<UED8B> \x9F\x4D |0
+<UED8C> \x9F\x4E |0
+<UED8D> \x9F\x4F |1
+<UED8E> \x9F\x50 |0
+<UED8F> \x9F\x51 |1
+<UED90> \x9F\x52 |1
+<UED91> \x9F\x53 |0
+<UED92> \x9F\x54 |1
+<UED93> \x9F\x55 |1
+<UED94> \x9F\x56 |1
+<UED95> \x9F\x57 |1
+<UED96> \x9F\x58 |1
+<UED97> \x9F\x59 |1
+<UED98> \x9F\x5A |1
+<UED99> \x9F\x5B |1
+<UED9A> \x9F\x5C |1
+<UED9B> \x9F\x5D |1
+<UED9C> \x9F\x5E |1
+<UED9D> \x9F\x5F |1
+<UED9E> \x9F\x60 |0
+<UED9F> \x9F\x61 |1
+<UEDA0> \x9F\x62 |1
+<UEDA1> \x9F\x63 |1
+<UEDA2> \x9F\x64 |1
+<UEDA3> \x9F\x65 |1
+<UEDA4> \x9F\x66 |0
+<UEDA5> \x9F\x67 |1
+<UEDA6> \x9F\x68 |0
+<UEDA7> \x9F\x69 |1
+<UEDA8> \x9F\x6A |1
+<UEDA9> \x9F\x6B |1
+<UEDAA> \x9F\x6C |1
+<UEDAB> \x9F\x6D |1
+<UEDAC> \x9F\x6E |1
+<UEDAD> \x9F\x6F |1
+<UEDAE> \x9F\x70 |1
+<UEDAF> \x9F\x71 |1
+<UEDB0> \x9F\x72 |1
+<UEDB1> \x9F\x73 |1
+<UEDB2> \x9F\x74 |1
+<UEDB3> \x9F\x75 |1
+<UEDB4> \x9F\x76 |1
+<UEDB5> \x9F\x77 |1
+<UEDB6> \x9F\x78 |1
+<UEDB7> \x9F\x79 |1
+<UEDB8> \x9F\x7A |1
+<UEDB9> \x9F\x7B |1
+<UEDBA> \x9F\x7C |1
+<UEDBB> \x9F\x7D |1
+<UEDBC> \x9F\x7E |1
+<UEDBD> \x9F\xA1 |1
+<UEDBE> \x9F\xA2 |1
+<UEDBF> \x9F\xA3 |1
+<UEDC0> \x9F\xA4 |1
+<UEDC1> \x9F\xA5 |1
+<UEDC2> \x9F\xA6 |1
+<UEDC3> \x9F\xA7 |1
+<UEDC4> \x9F\xA8 |1
+<UEDC5> \x9F\xA9 |1
+<UEDC6> \x9F\xAA |0
+<UEDC7> \x9F\xAB |1
+<UEDC8> \x9F\xAC |1
+<UEDC9> \x9F\xAD |0
+<UEDCA> \x9F\xAE |1
+<UEDCB> \x9F\xAF |1
+<UEDCC> \x9F\xB0 |1
+<UEDCD> \x9F\xB1 |0
+<UEDCE> \x9F\xB2 |1
+<UEDCF> \x9F\xB3 |0
+<UEDD0> \x9F\xB4 |1
+<UEDD1> \x9F\xB5 |0
+<UEDD2> \x9F\xB6 |1
+<UEDD3> \x9F\xB7 |1
+<UEDD4> \x9F\xB8 |1
+<UEDD5> \x9F\xB9 |1
+<UEDD6> \x9F\xBA |1
+<UEDD7> \x9F\xBB |0
+<UEDD8> \x9F\xBC |1
+<UEDD9> \x9F\xBD |1
+<UEDDA> \x9F\xBE |0
+<UEDDB> \x9F\xBF |0
+<UEDDC> \x9F\xC0 |0
+<UEDDD> \x9F\xC1 |0
+<UEDDE> \x9F\xC2 |1
+<UEDDF> \x9F\xC3 |1
+<UEDE0> \x9F\xC4 |1
+<UEDE1> \x9F\xC5 |0
+<UEDE2> \x9F\xC6 |1
+<UEDE3> \x9F\xC7 |1
+<UEDE4> \x9F\xC8 |0
+<UEDE5> \x9F\xC9 |1
+<UEDE6> \x9F\xCA |1
+<UEDE7> \x9F\xCB |0
+<UEDE8> \x9F\xCC |1
+<UEDE9> \x9F\xCD |1
+<UEDEA> \x9F\xCE |1
+<UEDEB> \x9F\xCF |1
+<UEDEC> \x9F\xD0 |1
+<UEDED> \x9F\xD1 |0
+<UEDEE> \x9F\xD2 |1
+<UEDEF> \x9F\xD3 |1
+<UEDF0> \x9F\xD4 |1
+<UEDF1> \x9F\xD5 |1
+<UEDF2> \x9F\xD6 |1
+<UEDF3> \x9F\xD7 |1
+<UEDF4> \x9F\xD8 |0
+<UEDF5> \x9F\xD9 |1
+<UEDF6> \x9F\xDA |0
+<UEDF7> \x9F\xDB |1
+<UEDF8> \x9F\xDC |1
+<UEDF9> \x9F\xDD |1
+<UEDFA> \x9F\xDE |1
+<UEDFB> \x9F\xDF |1
+<UEDFC> \x9F\xE0 |1
+<UEDFD> \x9F\xE1 |1
+<UEDFE> \x9F\xE2 |1
+<UEDFF> \x9F\xE3 |1
+<UEE00> \x9F\xE4 |1
+<UEE01> \x9F\xE5 |1
+<UEE02> \x9F\xE6 |0
+<UEE03> \x9F\xE7 |1
+<UEE04> \x9F\xE8 |1
+<UEE05> \x9F\xE9 |1
+<UEE06> \x9F\xEA |0
+<UEE07> \x9F\xEB |1
+<UEE08> \x9F\xEC |0
+<UEE09> \x9F\xED |1
+<UEE0A> \x9F\xEE |1
+<UEE0B> \x9F\xEF |0
+<UEE0C> \x9F\xF0 |1
+<UEE0D> \x9F\xF1 |1
+<UEE0E> \x9F\xF2 |1
+<UEE0F> \x9F\xF3 |1
+<UEE10> \x9F\xF4 |1
+<UEE11> \x9F\xF5 |0
+<UEE12> \x9F\xF6 |1
+<UEE13> \x9F\xF7 |1
+<UEE14> \x9F\xF8 |1
+<UEE15> \x9F\xF9 |0
+<UEE16> \x9F\xFA |1
+<UEE17> \x9F\xFB |1
+<UEE18> \x9F\xFC |1
+<UEE19> \x9F\xFD |1
+<UEE1A> \x9F\xFE |1
+<UEE1B> \xA0\x40 |0
+<UEE1C> \xA0\x41 |1
+<UEE1D> \xA0\x42 |1
+<UEE1E> \xA0\x43 |1
+<UEE1F> \xA0\x44 |1
+<UEE20> \xA0\x45 |0
+<UEE21> \xA0\x46 |1
+<UEE22> \xA0\x47 |0
+<UEE23> \xA0\x48 |1
+<UEE24> \xA0\x49 |1
+<UEE25> \xA0\x4A |1
+<UEE26> \xA0\x4B |1
+<UEE27> \xA0\x4C |1
+<UEE28> \xA0\x4D |1
+<UEE29> \xA0\x4E |1
+<UEE2A> \xA0\x4F |0
+<UEE2B> \xA0\x50 |1
+<UEE2C> \xA0\x51 |1
+<UEE2D> \xA0\x52 |1
+<UEE2E> \xA0\x53 |1
+<UEE2F> \xA0\x54 |0
+<UEE30> \xA0\x55 |0
+<UEE31> \xA0\x56 |0
+<UEE32> \xA0\x57 |0
+<UEE33> \xA0\x58 |1
+<UEE34> \xA0\x59 |0
+<UEE35> \xA0\x5A |0
+<UEE36> \xA0\x5B |1
+<UEE37> \xA0\x5C |1
+<UEE38> \xA0\x5D |1
+<UEE39> \xA0\x5E |1
+<UEE3A> \xA0\x5F |1
+<UEE3B> \xA0\x60 |1
+<UEE3C> \xA0\x61 |1
+<UEE3D> \xA0\x62 |0
+<UEE3E> \xA0\x63 |0
+<UEE3F> \xA0\x64 |1
+<UEE40> \xA0\x65 |1
+<UEE41> \xA0\x66 |1
+<UEE42> \xA0\x67 |1
+<UEE43> \xA0\x68 |1
+<UEE44> \xA0\x69 |1
+<UEE45> \xA0\x6A |1
+<UEE46> \xA0\x6B |1
+<UEE47> \xA0\x6C |1
+<UEE48> \xA0\x6D |0
+<UEE49> \xA0\x6E |1
+<UEE4A> \xA0\x6F |1
+<UEE4B> \xA0\x70 |1
+<UEE4C> \xA0\x71 |1
+<UEE4D> \xA0\x72 |0
+<UEE4E> \xA0\x73 |1
+<UEE4F> \xA0\x74 |1
+<UEE50> \xA0\x75 |1
+<UEE51> \xA0\x76 |1
+<UEE52> \xA0\x77 |0
+<UEE53> \xA0\x78 |1
+<UEE54> \xA0\x79 |1
+<UEE55> \xA0\x7A |1
+<UEE56> \xA0\x7B |0
+<UEE57> \xA0\x7C |1
+<UEE58> \xA0\x7D |1
+<UEE59> \xA0\x7E |1
+<UEE5A> \xA0\xA1 |1
+<UEE5B> \xA0\xA2 |0
+<UEE5C> \xA0\xA3 |1
+<UEE5D> \xA0\xA4 |0
+<UEE5E> \xA0\xA5 |0
+<UEE5F> \xA0\xA6 |1
+<UEE60> \xA0\xA7 |0
+<UEE61> \xA0\xA8 |1
+<UEE62> \xA0\xA9 |1
+<UEE63> \xA0\xAA |1
+<UEE64> \xA0\xAB |0
+<UEE65> \xA0\xAC |1
+<UEE66> \xA0\xAD |0
+<UEE67> \xA0\xAE |1
+<UEE68> \xA0\xAF |0
+<UEE69> \xA0\xB0 |1
+<UEE6A> \xA0\xB1 |0
+<UEE6B> \xA0\xB2 |1
+<UEE6C> \xA0\xB3 |1
+<UEE6D> \xA0\xB4 |1
+<UEE6E> \xA0\xB5 |1
+<UEE6F> \xA0\xB6 |1
+<UEE70> \xA0\xB7 |1
+<UEE71> \xA0\xB8 |1
+<UEE72> \xA0\xB9 |1
+<UEE73> \xA0\xBA |1
+<UEE74> \xA0\xBB |1
+<UEE75> \xA0\xBC |1
+<UEE76> \xA0\xBD |0
+<UEE77> \xA0\xBE |1
+<UEE78> \xA0\xBF |1
+<UEE79> \xA0\xC0 |1
+<UEE7A> \xA0\xC1 |1
+<UEE7B> \xA0\xC2 |1
+<UEE7C> \xA0\xC3 |0
+<UEE7D> \xA0\xC4 |1
+<UEE7E> \xA0\xC5 |0
+<UEE7F> \xA0\xC6 |1
+<UEE80> \xA0\xC7 |1
+<UEE81> \xA0\xC8 |1
+<UEE82> \xA0\xC9 |1
+<UEE83> \xA0\xCA |1
+<UEE84> \xA0\xCB |1
+<UEE85> \xA0\xCC |1
+<UEE86> \xA0\xCD |1
+<UEE87> \xA0\xCE |1
+<UEE88> \xA0\xCF |1
+<UEE89> \xA0\xD0 |1
+<UEE8A> \xA0\xD1 |1
+<UEE8B> \xA0\xD2 |1
+<UEE8C> \xA0\xD3 |0
+<UEE8D> \xA0\xD4 |1
+<UEE8E> \xA0\xD5 |0
+<UEE8F> \xA0\xD6 |1
+<UEE90> \xA0\xD7 |1
+<UEE91> \xA0\xD8 |0
+<UEE92> \xA0\xD9 |1
+<UEE93> \xA0\xDA |1
+<UEE94> \xA0\xDB |1
+<UEE95> \xA0\xDC |1
+<UEE96> \xA0\xDD |1
+<UEE97> \xA0\xDE |1
+<UEE98> \xA0\xDF |0
+<UEE99> \xA0\xE0 |1
+<UEE9A> \xA0\xE1 |0
+<UEE9B> \xA0\xE2 |1
+<UEE9C> \xA0\xE3 |0
+<UEE9D> \xA0\xE4 |0
+<UEE9E> \xA0\xE5 |1
+<UEE9F> \xA0\xE6 |1
+<UEEA0> \xA0\xE7 |1
+<UEEA1> \xA0\xE8 |1
+<UEEA2> \xA0\xE9 |0
+<UEEA3> \xA0\xEA |0
+<UEEA4> \xA0\xEB |0
+<UEEA5> \xA0\xEC |0
+<UEEA6> \xA0\xED |0
+<UEEA7> \xA0\xEE |0
+<UEEA8> \xA0\xEF |0
+<UEEA9> \xA0\xF0 |0
+<UEEAA> \xA0\xF1 |0
+<UEEAB> \xA0\xF2 |1
+<UEEAC> \xA0\xF3 |0
+<UEEAD> \xA0\xF4 |0
+<UEEAE> \xA0\xF5 |0
+<UEEAF> \xA0\xF6 |0
+<UEEB0> \xA0\xF7 |0
+<UEEB1> \xA0\xF8 |0
+<UEEB2> \xA0\xF9 |1
+<UEEB3> \xA0\xFA |1
+<UEEB4> \xA0\xFB |0
+<UEEB5> \xA0\xFC |1
+<UEEB6> \xA0\xFD |1
+<UEEB7> \xA0\xFE |0
+<UEEB8> \x81\x40 |0
+<UEEB9> \x81\x41 |0
+<UEEBA> \x81\x42 |0
+<UEEBB> \x81\x43 |0
+<UEEBC> \x81\x44 |0
+<UEEBD> \x81\x45 |0
+<UEEBE> \x81\x46 |0
+<UEEBF> \x81\x47 |0
+<UEEC0> \x81\x48 |0
+<UEEC1> \x81\x49 |0
+<UEEC2> \x81\x4A |0
+<UEEC3> \x81\x4B |0
+<UEEC4> \x81\x4C |0
+<UEEC5> \x81\x4D |0
+<UEEC6> \x81\x4E |0
+<UEEC7> \x81\x4F |0
+<UEEC8> \x81\x50 |0
+<UEEC9> \x81\x51 |0
+<UEECA> \x81\x52 |0
+<UEECB> \x81\x53 |0
+<UEECC> \x81\x54 |0
+<UEECD> \x81\x55 |0
+<UEECE> \x81\x56 |0
+<UEECF> \x81\x57 |0
+<UEED0> \x81\x58 |0
+<UEED1> \x81\x59 |0
+<UEED2> \x81\x5A |0
+<UEED3> \x81\x5B |0
+<UEED4> \x81\x5C |0
+<UEED5> \x81\x5D |0
+<UEED6> \x81\x5E |0
+<UEED7> \x81\x5F |0
+<UEED8> \x81\x60 |0
+<UEED9> \x81\x61 |0
+<UEEDA> \x81\x62 |0
+<UEEDB> \x81\x63 |0
+<UEEDC> \x81\x64 |0
+<UEEDD> \x81\x65 |0
+<UEEDE> \x81\x66 |0
+<UEEDF> \x81\x67 |0
+<UEEE0> \x81\x68 |0
+<UEEE1> \x81\x69 |0
+<UEEE2> \x81\x6A |0
+<UEEE3> \x81\x6B |0
+<UEEE4> \x81\x6C |0
+<UEEE5> \x81\x6D |0
+<UEEE6> \x81\x6E |0
+<UEEE7> \x81\x6F |0
+<UEEE8> \x81\x70 |0
+<UEEE9> \x81\x71 |0
+<UEEEA> \x81\x72 |0
+<UEEEB> \x81\x73 |0
+<UEEEC> \x81\x74 |0
+<UEEED> \x81\x75 |0
+<UEEEE> \x81\x76 |0
+<UEEEF> \x81\x77 |0
+<UEEF0> \x81\x78 |0
+<UEEF1> \x81\x79 |0
+<UEEF2> \x81\x7A |0
+<UEEF3> \x81\x7B |0
+<UEEF4> \x81\x7C |0
+<UEEF5> \x81\x7D |0
+<UEEF6> \x81\x7E |0
+<UEEF7> \x81\xA1 |0
+<UEEF8> \x81\xA2 |0
+<UEEF9> \x81\xA3 |0
+<UEEFA> \x81\xA4 |0
+<UEEFB> \x81\xA5 |0
+<UEEFC> \x81\xA6 |0
+<UEEFD> \x81\xA7 |0
+<UEEFE> \x81\xA8 |0
+<UEEFF> \x81\xA9 |0
+<UEF00> \x81\xAA |0
+<UEF01> \x81\xAB |0
+<UEF02> \x81\xAC |0
+<UEF03> \x81\xAD |0
+<UEF04> \x81\xAE |0
+<UEF05> \x81\xAF |0
+<UEF06> \x81\xB0 |0
+<UEF07> \x81\xB1 |0
+<UEF08> \x81\xB2 |0
+<UEF09> \x81\xB3 |0
+<UEF0A> \x81\xB4 |0
+<UEF0B> \x81\xB5 |0
+<UEF0C> \x81\xB6 |0
+<UEF0D> \x81\xB7 |0
+<UEF0E> \x81\xB8 |0
+<UEF0F> \x81\xB9 |0
+<UEF10> \x81\xBA |0
+<UEF11> \x81\xBB |0
+<UEF12> \x81\xBC |0
+<UEF13> \x81\xBD |0
+<UEF14> \x81\xBE |0
+<UEF15> \x81\xBF |0
+<UEF16> \x81\xC0 |0
+<UEF17> \x81\xC1 |0
+<UEF18> \x81\xC2 |0
+<UEF19> \x81\xC3 |0
+<UEF1A> \x81\xC4 |0
+<UEF1B> \x81\xC5 |0
+<UEF1C> \x81\xC6 |0
+<UEF1D> \x81\xC7 |0
+<UEF1E> \x81\xC8 |0
+<UEF1F> \x81\xC9 |0
+<UEF20> \x81\xCA |0
+<UEF21> \x81\xCB |0
+<UEF22> \x81\xCC |0
+<UEF23> \x81\xCD |0
+<UEF24> \x81\xCE |0
+<UEF25> \x81\xCF |0
+<UEF26> \x81\xD0 |0
+<UEF27> \x81\xD1 |0
+<UEF28> \x81\xD2 |0
+<UEF29> \x81\xD3 |0
+<UEF2A> \x81\xD4 |0
+<UEF2B> \x81\xD5 |0
+<UEF2C> \x81\xD6 |0
+<UEF2D> \x81\xD7 |0
+<UEF2E> \x81\xD8 |0
+<UEF2F> \x81\xD9 |0
+<UEF30> \x81\xDA |0
+<UEF31> \x81\xDB |0
+<UEF32> \x81\xDC |0
+<UEF33> \x81\xDD |0
+<UEF34> \x81\xDE |0
+<UEF35> \x81\xDF |0
+<UEF36> \x81\xE0 |0
+<UEF37> \x81\xE1 |0
+<UEF38> \x81\xE2 |0
+<UEF39> \x81\xE3 |0
+<UEF3A> \x81\xE4 |0
+<UEF3B> \x81\xE5 |0
+<UEF3C> \x81\xE6 |0
+<UEF3D> \x81\xE7 |0
+<UEF3E> \x81\xE8 |0
+<UEF3F> \x81\xE9 |0
+<UEF40> \x81\xEA |0
+<UEF41> \x81\xEB |0
+<UEF42> \x81\xEC |0
+<UEF43> \x81\xED |0
+<UEF44> \x81\xEE |0
+<UEF45> \x81\xEF |0
+<UEF46> \x81\xF0 |0
+<UEF47> \x81\xF1 |0
+<UEF48> \x81\xF2 |0
+<UEF49> \x81\xF3 |0
+<UEF4A> \x81\xF4 |0
+<UEF4B> \x81\xF5 |0
+<UEF4C> \x81\xF6 |0
+<UEF4D> \x81\xF7 |0
+<UEF4E> \x81\xF8 |0
+<UEF4F> \x81\xF9 |0
+<UEF50> \x81\xFA |0
+<UEF51> \x81\xFB |0
+<UEF52> \x81\xFC |0
+<UEF53> \x81\xFD |0
+<UEF54> \x81\xFE |0
+<UEF55> \x82\x40 |0
+<UEF56> \x82\x41 |0
+<UEF57> \x82\x42 |0
+<UEF58> \x82\x43 |0
+<UEF59> \x82\x44 |0
+<UEF5A> \x82\x45 |0
+<UEF5B> \x82\x46 |0
+<UEF5C> \x82\x47 |0
+<UEF5D> \x82\x48 |0
+<UEF5E> \x82\x49 |0
+<UEF5F> \x82\x4A |0
+<UEF60> \x82\x4B |0
+<UEF61> \x82\x4C |0
+<UEF62> \x82\x4D |0
+<UEF63> \x82\x4E |0
+<UEF64> \x82\x4F |0
+<UEF65> \x82\x50 |0
+<UEF66> \x82\x51 |0
+<UEF67> \x82\x52 |0
+<UEF68> \x82\x53 |0
+<UEF69> \x82\x54 |0
+<UEF6A> \x82\x55 |0
+<UEF6B> \x82\x56 |0
+<UEF6C> \x82\x57 |0
+<UEF6D> \x82\x58 |0
+<UEF6E> \x82\x59 |0
+<UEF6F> \x82\x5A |0
+<UEF70> \x82\x5B |0
+<UEF71> \x82\x5C |0
+<UEF72> \x82\x5D |0
+<UEF73> \x82\x5E |0
+<UEF74> \x82\x5F |0
+<UEF75> \x82\x60 |0
+<UEF76> \x82\x61 |0
+<UEF77> \x82\x62 |0
+<UEF78> \x82\x63 |0
+<UEF79> \x82\x64 |0
+<UEF7A> \x82\x65 |0
+<UEF7B> \x82\x66 |0
+<UEF7C> \x82\x67 |0
+<UEF7D> \x82\x68 |0
+<UEF7E> \x82\x69 |0
+<UEF7F> \x82\x6A |0
+<UEF80> \x82\x6B |0
+<UEF81> \x82\x6C |0
+<UEF82> \x82\x6D |0
+<UEF83> \x82\x6E |0
+<UEF84> \x82\x6F |0
+<UEF85> \x82\x70 |0
+<UEF86> \x82\x71 |0
+<UEF87> \x82\x72 |0
+<UEF88> \x82\x73 |0
+<UEF89> \x82\x74 |0
+<UEF8A> \x82\x75 |0
+<UEF8B> \x82\x76 |0
+<UEF8C> \x82\x77 |0
+<UEF8D> \x82\x78 |0
+<UEF8E> \x82\x79 |0
+<UEF8F> \x82\x7A |0
+<UEF90> \x82\x7B |0
+<UEF91> \x82\x7C |0
+<UEF92> \x82\x7D |0
+<UEF93> \x82\x7E |0
+<UEF94> \x82\xA1 |0
+<UEF95> \x82\xA2 |0
+<UEF96> \x82\xA3 |0
+<UEF97> \x82\xA4 |0
+<UEF98> \x82\xA5 |0
+<UEF99> \x82\xA6 |0
+<UEF9A> \x82\xA7 |0
+<UEF9B> \x82\xA8 |0
+<UEF9C> \x82\xA9 |0
+<UEF9D> \x82\xAA |0
+<UEF9E> \x82\xAB |0
+<UEF9F> \x82\xAC |0
+<UEFA0> \x82\xAD |0
+<UEFA1> \x82\xAE |0
+<UEFA2> \x82\xAF |0
+<UEFA3> \x82\xB0 |0
+<UEFA4> \x82\xB1 |0
+<UEFA5> \x82\xB2 |0
+<UEFA6> \x82\xB3 |0
+<UEFA7> \x82\xB4 |0
+<UEFA8> \x82\xB5 |0
+<UEFA9> \x82\xB6 |0
+<UEFAA> \x82\xB7 |0
+<UEFAB> \x82\xB8 |0
+<UEFAC> \x82\xB9 |0
+<UEFAD> \x82\xBA |0
+<UEFAE> \x82\xBB |0
+<UEFAF> \x82\xBC |0
+<UEFB0> \x82\xBD |0
+<UEFB1> \x82\xBE |0
+<UEFB2> \x82\xBF |0
+<UEFB3> \x82\xC0 |0
+<UEFB4> \x82\xC1 |0
+<UEFB5> \x82\xC2 |0
+<UEFB6> \x82\xC3 |0
+<UEFB7> \x82\xC4 |0
+<UEFB8> \x82\xC5 |0
+<UEFB9> \x82\xC6 |0
+<UEFBA> \x82\xC7 |0
+<UEFBB> \x82\xC8 |0
+<UEFBC> \x82\xC9 |0
+<UEFBD> \x82\xCA |0
+<UEFBE> \x82\xCB |0
+<UEFBF> \x82\xCC |0
+<UEFC0> \x82\xCD |0
+<UEFC1> \x82\xCE |0
+<UEFC2> \x82\xCF |0
+<UEFC3> \x82\xD0 |0
+<UEFC4> \x82\xD1 |0
+<UEFC5> \x82\xD2 |0
+<UEFC6> \x82\xD3 |0
+<UEFC7> \x82\xD4 |0
+<UEFC8> \x82\xD5 |0
+<UEFC9> \x82\xD6 |0
+<UEFCA> \x82\xD7 |0
+<UEFCB> \x82\xD8 |0
+<UEFCC> \x82\xD9 |0
+<UEFCD> \x82\xDA |0
+<UEFCE> \x82\xDB |0
+<UEFCF> \x82\xDC |0
+<UEFD0> \x82\xDD |0
+<UEFD1> \x82\xDE |0
+<UEFD2> \x82\xDF |0
+<UEFD3> \x82\xE0 |0
+<UEFD4> \x82\xE1 |0
+<UEFD5> \x82\xE2 |0
+<UEFD6> \x82\xE3 |0
+<UEFD7> \x82\xE4 |0
+<UEFD8> \x82\xE5 |0
+<UEFD9> \x82\xE6 |0
+<UEFDA> \x82\xE7 |0
+<UEFDB> \x82\xE8 |0
+<UEFDC> \x82\xE9 |0
+<UEFDD> \x82\xEA |0
+<UEFDE> \x82\xEB |0
+<UEFDF> \x82\xEC |0
+<UEFE0> \x82\xED |0
+<UEFE1> \x82\xEE |0
+<UEFE2> \x82\xEF |0
+<UEFE3> \x82\xF0 |0
+<UEFE4> \x82\xF1 |0
+<UEFE5> \x82\xF2 |0
+<UEFE6> \x82\xF3 |0
+<UEFE7> \x82\xF4 |0
+<UEFE8> \x82\xF5 |0
+<UEFE9> \x82\xF6 |0
+<UEFEA> \x82\xF7 |0
+<UEFEB> \x82\xF8 |0
+<UEFEC> \x82\xF9 |0
+<UEFED> \x82\xFA |0
+<UEFEE> \x82\xFB |0
+<UEFEF> \x82\xFC |0
+<UEFF0> \x82\xFD |0
+<UEFF1> \x82\xFE |0
+<UEFF2> \x83\x40 |0
+<UEFF3> \x83\x41 |0
+<UEFF4> \x83\x42 |0
+<UEFF5> \x83\x43 |0
+<UEFF6> \x83\x44 |0
+<UEFF7> \x83\x45 |0
+<UEFF8> \x83\x46 |0
+<UEFF9> \x83\x47 |0
+<UEFFA> \x83\x48 |0
+<UEFFB> \x83\x49 |0
+<UEFFC> \x83\x4A |0
+<UEFFD> \x83\x4B |0
+<UEFFE> \x83\x4C |0
+<UEFFF> \x83\x4D |0
+<UF000> \x83\x4E |0
+<UF001> \x83\x4F |0
+<UF002> \x83\x50 |0
+<UF003> \x83\x51 |0
+<UF004> \x83\x52 |0
+<UF005> \x83\x53 |0
+<UF006> \x83\x54 |0
+<UF007> \x83\x55 |0
+<UF008> \x83\x56 |0
+<UF009> \x83\x57 |0
+<UF00A> \x83\x58 |0
+<UF00B> \x83\x59 |0
+<UF00C> \x83\x5A |0
+<UF00D> \x83\x5B |0
+<UF00E> \x83\x5C |0
+<UF00F> \x83\x5D |0
+<UF010> \x83\x5E |0
+<UF011> \x83\x5F |0
+<UF012> \x83\x60 |0
+<UF013> \x83\x61 |0
+<UF014> \x83\x62 |0
+<UF015> \x83\x63 |0
+<UF016> \x83\x64 |0
+<UF017> \x83\x65 |0
+<UF018> \x83\x66 |0
+<UF019> \x83\x67 |0
+<UF01A> \x83\x68 |0
+<UF01B> \x83\x69 |0
+<UF01C> \x83\x6A |0
+<UF01D> \x83\x6B |0
+<UF01E> \x83\x6C |0
+<UF01F> \x83\x6D |0
+<UF020> \x83\x6E |0
+<UF021> \x83\x6F |0
+<UF022> \x83\x70 |0
+<UF023> \x83\x71 |0
+<UF024> \x83\x72 |0
+<UF025> \x83\x73 |0
+<UF026> \x83\x74 |0
+<UF027> \x83\x75 |0
+<UF028> \x83\x76 |0
+<UF029> \x83\x77 |0
+<UF02A> \x83\x78 |0
+<UF02B> \x83\x79 |0
+<UF02C> \x83\x7A |0
+<UF02D> \x83\x7B |0
+<UF02E> \x83\x7C |0
+<UF02F> \x83\x7D |0
+<UF030> \x83\x7E |0
+<UF031> \x83\xA1 |0
+<UF032> \x83\xA2 |0
+<UF033> \x83\xA3 |0
+<UF034> \x83\xA4 |0
+<UF035> \x83\xA5 |0
+<UF036> \x83\xA6 |0
+<UF037> \x83\xA7 |0
+<UF038> \x83\xA8 |0
+<UF039> \x83\xA9 |0
+<UF03A> \x83\xAA |0
+<UF03B> \x83\xAB |0
+<UF03C> \x83\xAC |0
+<UF03D> \x83\xAD |0
+<UF03E> \x83\xAE |0
+<UF03F> \x83\xAF |0
+<UF040> \x83\xB0 |0
+<UF041> \x83\xB1 |0
+<UF042> \x83\xB2 |0
+<UF043> \x83\xB3 |0
+<UF044> \x83\xB4 |0
+<UF045> \x83\xB5 |0
+<UF046> \x83\xB6 |0
+<UF047> \x83\xB7 |0
+<UF048> \x83\xB8 |0
+<UF049> \x83\xB9 |0
+<UF04A> \x83\xBA |0
+<UF04B> \x83\xBB |0
+<UF04C> \x83\xBC |0
+<UF04D> \x83\xBD |0
+<UF04E> \x83\xBE |0
+<UF04F> \x83\xBF |0
+<UF050> \x83\xC0 |0
+<UF051> \x83\xC1 |0
+<UF052> \x83\xC2 |0
+<UF053> \x83\xC3 |0
+<UF054> \x83\xC4 |0
+<UF055> \x83\xC5 |0
+<UF056> \x83\xC6 |0
+<UF057> \x83\xC7 |0
+<UF058> \x83\xC8 |0
+<UF059> \x83\xC9 |0
+<UF05A> \x83\xCA |0
+<UF05B> \x83\xCB |0
+<UF05C> \x83\xCC |0
+<UF05D> \x83\xCD |0
+<UF05E> \x83\xCE |0
+<UF05F> \x83\xCF |0
+<UF060> \x83\xD0 |0
+<UF061> \x83\xD1 |0
+<UF062> \x83\xD2 |0
+<UF063> \x83\xD3 |0
+<UF064> \x83\xD4 |0
+<UF065> \x83\xD5 |0
+<UF066> \x83\xD6 |0
+<UF067> \x83\xD7 |0
+<UF068> \x83\xD8 |0
+<UF069> \x83\xD9 |0
+<UF06A> \x83\xDA |0
+<UF06B> \x83\xDB |0
+<UF06C> \x83\xDC |0
+<UF06D> \x83\xDD |0
+<UF06E> \x83\xDE |0
+<UF06F> \x83\xDF |0
+<UF070> \x83\xE0 |0
+<UF071> \x83\xE1 |0
+<UF072> \x83\xE2 |0
+<UF073> \x83\xE3 |0
+<UF074> \x83\xE4 |0
+<UF075> \x83\xE5 |0
+<UF076> \x83\xE6 |0
+<UF077> \x83\xE7 |0
+<UF078> \x83\xE8 |0
+<UF079> \x83\xE9 |0
+<UF07A> \x83\xEA |0
+<UF07B> \x83\xEB |0
+<UF07C> \x83\xEC |0
+<UF07D> \x83\xED |0
+<UF07E> \x83\xEE |0
+<UF07F> \x83\xEF |0
+<UF080> \x83\xF0 |0
+<UF081> \x83\xF1 |0
+<UF082> \x83\xF2 |0
+<UF083> \x83\xF3 |0
+<UF084> \x83\xF4 |0
+<UF085> \x83\xF5 |0
+<UF086> \x83\xF6 |0
+<UF087> \x83\xF7 |0
+<UF088> \x83\xF8 |0
+<UF089> \x83\xF9 |0
+<UF08A> \x83\xFA |0
+<UF08B> \x83\xFB |0
+<UF08C> \x83\xFC |0
+<UF08D> \x83\xFD |0
+<UF08E> \x83\xFE |0
+<UF08F> \x84\x40 |0
+<UF090> \x84\x41 |0
+<UF091> \x84\x42 |0
+<UF092> \x84\x43 |0
+<UF093> \x84\x44 |0
+<UF094> \x84\x45 |0
+<UF095> \x84\x46 |0
+<UF096> \x84\x47 |0
+<UF097> \x84\x48 |0
+<UF098> \x84\x49 |0
+<UF099> \x84\x4A |0
+<UF09A> \x84\x4B |0
+<UF09B> \x84\x4C |0
+<UF09C> \x84\x4D |0
+<UF09D> \x84\x4E |0
+<UF09E> \x84\x4F |0
+<UF09F> \x84\x50 |0
+<UF0A0> \x84\x51 |0
+<UF0A1> \x84\x52 |0
+<UF0A2> \x84\x53 |0
+<UF0A3> \x84\x54 |0
+<UF0A4> \x84\x55 |0
+<UF0A5> \x84\x56 |0
+<UF0A6> \x84\x57 |0
+<UF0A7> \x84\x58 |0
+<UF0A8> \x84\x59 |0
+<UF0A9> \x84\x5A |0
+<UF0AA> \x84\x5B |0
+<UF0AB> \x84\x5C |0
+<UF0AC> \x84\x5D |0
+<UF0AD> \x84\x5E |0
+<UF0AE> \x84\x5F |0
+<UF0AF> \x84\x60 |0
+<UF0B0> \x84\x61 |0
+<UF0B1> \x84\x62 |0
+<UF0B2> \x84\x63 |0
+<UF0B3> \x84\x64 |0
+<UF0B4> \x84\x65 |0
+<UF0B5> \x84\x66 |0
+<UF0B6> \x84\x67 |0
+<UF0B7> \x84\x68 |0
+<UF0B8> \x84\x69 |0
+<UF0B9> \x84\x6A |0
+<UF0BA> \x84\x6B |0
+<UF0BB> \x84\x6C |0
+<UF0BC> \x84\x6D |0
+<UF0BD> \x84\x6E |0
+<UF0BE> \x84\x6F |0
+<UF0BF> \x84\x70 |0
+<UF0C0> \x84\x71 |0
+<UF0C1> \x84\x72 |0
+<UF0C2> \x84\x73 |0
+<UF0C3> \x84\x74 |0
+<UF0C4> \x84\x75 |0
+<UF0C5> \x84\x76 |0
+<UF0C6> \x84\x77 |0
+<UF0C7> \x84\x78 |0
+<UF0C8> \x84\x79 |0
+<UF0C9> \x84\x7A |0
+<UF0CA> \x84\x7B |0
+<UF0CB> \x84\x7C |0
+<UF0CC> \x84\x7D |0
+<UF0CD> \x84\x7E |0
+<UF0CE> \x84\xA1 |0
+<UF0CF> \x84\xA2 |0
+<UF0D0> \x84\xA3 |0
+<UF0D1> \x84\xA4 |0
+<UF0D2> \x84\xA5 |0
+<UF0D3> \x84\xA6 |0
+<UF0D4> \x84\xA7 |0
+<UF0D5> \x84\xA8 |0
+<UF0D6> \x84\xA9 |0
+<UF0D7> \x84\xAA |0
+<UF0D8> \x84\xAB |0
+<UF0D9> \x84\xAC |0
+<UF0DA> \x84\xAD |0
+<UF0DB> \x84\xAE |0
+<UF0DC> \x84\xAF |0
+<UF0DD> \x84\xB0 |0
+<UF0DE> \x84\xB1 |0
+<UF0DF> \x84\xB2 |0
+<UF0E0> \x84\xB3 |0
+<UF0E1> \x84\xB4 |0
+<UF0E2> \x84\xB5 |0
+<UF0E3> \x84\xB6 |0
+<UF0E4> \x84\xB7 |0
+<UF0E5> \x84\xB8 |0
+<UF0E6> \x84\xB9 |0
+<UF0E7> \x84\xBA |0
+<UF0E8> \x84\xBB |0
+<UF0E9> \x84\xBC |0
+<UF0EA> \x84\xBD |0
+<UF0EB> \x84\xBE |0
+<UF0EC> \x84\xBF |0
+<UF0ED> \x84\xC0 |0
+<UF0EE> \x84\xC1 |0
+<UF0EF> \x84\xC2 |0
+<UF0F0> \x84\xC3 |0
+<UF0F1> \x84\xC4 |0
+<UF0F2> \x84\xC5 |0
+<UF0F3> \x84\xC6 |0
+<UF0F4> \x84\xC7 |0
+<UF0F5> \x84\xC8 |0
+<UF0F6> \x84\xC9 |0
+<UF0F7> \x84\xCA |0
+<UF0F8> \x84\xCB |0
+<UF0F9> \x84\xCC |0
+<UF0FA> \x84\xCD |0
+<UF0FB> \x84\xCE |0
+<UF0FC> \x84\xCF |0
+<UF0FD> \x84\xD0 |0
+<UF0FE> \x84\xD1 |0
+<UF0FF> \x84\xD2 |0
+<UF100> \x84\xD3 |0
+<UF101> \x84\xD4 |0
+<UF102> \x84\xD5 |0
+<UF103> \x84\xD6 |0
+<UF104> \x84\xD7 |0
+<UF105> \x84\xD8 |0
+<UF106> \x84\xD9 |0
+<UF107> \x84\xDA |0
+<UF108> \x84\xDB |0
+<UF109> \x84\xDC |0
+<UF10A> \x84\xDD |0
+<UF10B> \x84\xDE |0
+<UF10C> \x84\xDF |0
+<UF10D> \x84\xE0 |0
+<UF10E> \x84\xE1 |0
+<UF10F> \x84\xE2 |0
+<UF110> \x84\xE3 |0
+<UF111> \x84\xE4 |0
+<UF112> \x84\xE5 |0
+<UF113> \x84\xE6 |0
+<UF114> \x84\xE7 |0
+<UF115> \x84\xE8 |0
+<UF116> \x84\xE9 |0
+<UF117> \x84\xEA |0
+<UF118> \x84\xEB |0
+<UF119> \x84\xEC |0
+<UF11A> \x84\xED |0
+<UF11B> \x84\xEE |0
+<UF11C> \x84\xEF |0
+<UF11D> \x84\xF0 |0
+<UF11E> \x84\xF1 |0
+<UF11F> \x84\xF2 |0
+<UF120> \x84\xF3 |0
+<UF121> \x84\xF4 |0
+<UF122> \x84\xF5 |0
+<UF123> \x84\xF6 |0
+<UF124> \x84\xF7 |0
+<UF125> \x84\xF8 |0
+<UF126> \x84\xF9 |0
+<UF127> \x84\xFA |0
+<UF128> \x84\xFB |0
+<UF129> \x84\xFC |0
+<UF12A> \x84\xFD |0
+<UF12B> \x84\xFE |0
+<UF12C> \x85\x40 |0
+<UF12D> \x85\x41 |0
+<UF12E> \x85\x42 |0
+<UF12F> \x85\x43 |0
+<UF130> \x85\x44 |0
+<UF131> \x85\x45 |0
+<UF132> \x85\x46 |0
+<UF133> \x85\x47 |0
+<UF134> \x85\x48 |0
+<UF135> \x85\x49 |0
+<UF136> \x85\x4A |0
+<UF137> \x85\x4B |0
+<UF138> \x85\x4C |0
+<UF139> \x85\x4D |0
+<UF13A> \x85\x4E |0
+<UF13B> \x85\x4F |0
+<UF13C> \x85\x50 |0
+<UF13D> \x85\x51 |0
+<UF13E> \x85\x52 |0
+<UF13F> \x85\x53 |0
+<UF140> \x85\x54 |0
+<UF141> \x85\x55 |0
+<UF142> \x85\x56 |0
+<UF143> \x85\x57 |0
+<UF144> \x85\x58 |0
+<UF145> \x85\x59 |0
+<UF146> \x85\x5A |0
+<UF147> \x85\x5B |0
+<UF148> \x85\x5C |0
+<UF149> \x85\x5D |0
+<UF14A> \x85\x5E |0
+<UF14B> \x85\x5F |0
+<UF14C> \x85\x60 |0
+<UF14D> \x85\x61 |0
+<UF14E> \x85\x62 |0
+<UF14F> \x85\x63 |0
+<UF150> \x85\x64 |0
+<UF151> \x85\x65 |0
+<UF152> \x85\x66 |0
+<UF153> \x85\x67 |0
+<UF154> \x85\x68 |0
+<UF155> \x85\x69 |0
+<UF156> \x85\x6A |0
+<UF157> \x85\x6B |0
+<UF158> \x85\x6C |0
+<UF159> \x85\x6D |0
+<UF15A> \x85\x6E |0
+<UF15B> \x85\x6F |0
+<UF15C> \x85\x70 |0
+<UF15D> \x85\x71 |0
+<UF15E> \x85\x72 |0
+<UF15F> \x85\x73 |0
+<UF160> \x85\x74 |0
+<UF161> \x85\x75 |0
+<UF162> \x85\x76 |0
+<UF163> \x85\x77 |0
+<UF164> \x85\x78 |0
+<UF165> \x85\x79 |0
+<UF166> \x85\x7A |0
+<UF167> \x85\x7B |0
+<UF168> \x85\x7C |0
+<UF169> \x85\x7D |0
+<UF16A> \x85\x7E |0
+<UF16B> \x85\xA1 |0
+<UF16C> \x85\xA2 |0
+<UF16D> \x85\xA3 |0
+<UF16E> \x85\xA4 |0
+<UF16F> \x85\xA5 |0
+<UF170> \x85\xA6 |0
+<UF171> \x85\xA7 |0
+<UF172> \x85\xA8 |0
+<UF173> \x85\xA9 |0
+<UF174> \x85\xAA |0
+<UF175> \x85\xAB |0
+<UF176> \x85\xAC |0
+<UF177> \x85\xAD |0
+<UF178> \x85\xAE |0
+<UF179> \x85\xAF |0
+<UF17A> \x85\xB0 |0
+<UF17B> \x85\xB1 |0
+<UF17C> \x85\xB2 |0
+<UF17D> \x85\xB3 |0
+<UF17E> \x85\xB4 |0
+<UF17F> \x85\xB5 |0
+<UF180> \x85\xB6 |0
+<UF181> \x85\xB7 |0
+<UF182> \x85\xB8 |0
+<UF183> \x85\xB9 |0
+<UF184> \x85\xBA |0
+<UF185> \x85\xBB |0
+<UF186> \x85\xBC |0
+<UF187> \x85\xBD |0
+<UF188> \x85\xBE |0
+<UF189> \x85\xBF |0
+<UF18A> \x85\xC0 |0
+<UF18B> \x85\xC1 |0
+<UF18C> \x85\xC2 |0
+<UF18D> \x85\xC3 |0
+<UF18E> \x85\xC4 |0
+<UF18F> \x85\xC5 |0
+<UF190> \x85\xC6 |0
+<UF191> \x85\xC7 |0
+<UF192> \x85\xC8 |0
+<UF193> \x85\xC9 |0
+<UF194> \x85\xCA |0
+<UF195> \x85\xCB |0
+<UF196> \x85\xCC |0
+<UF197> \x85\xCD |0
+<UF198> \x85\xCE |0
+<UF199> \x85\xCF |0
+<UF19A> \x85\xD0 |0
+<UF19B> \x85\xD1 |0
+<UF19C> \x85\xD2 |0
+<UF19D> \x85\xD3 |0
+<UF19E> \x85\xD4 |0
+<UF19F> \x85\xD5 |0
+<UF1A0> \x85\xD6 |0
+<UF1A1> \x85\xD7 |0
+<UF1A2> \x85\xD8 |0
+<UF1A3> \x85\xD9 |0
+<UF1A4> \x85\xDA |0
+<UF1A5> \x85\xDB |0
+<UF1A6> \x85\xDC |0
+<UF1A7> \x85\xDD |0
+<UF1A8> \x85\xDE |0
+<UF1A9> \x85\xDF |0
+<UF1AA> \x85\xE0 |0
+<UF1AB> \x85\xE1 |0
+<UF1AC> \x85\xE2 |0
+<UF1AD> \x85\xE3 |0
+<UF1AE> \x85\xE4 |0
+<UF1AF> \x85\xE5 |0
+<UF1B0> \x85\xE6 |0
+<UF1B1> \x85\xE7 |0
+<UF1B2> \x85\xE8 |0
+<UF1B3> \x85\xE9 |0
+<UF1B4> \x85\xEA |0
+<UF1B5> \x85\xEB |0
+<UF1B6> \x85\xEC |0
+<UF1B7> \x85\xED |0
+<UF1B8> \x85\xEE |0
+<UF1B9> \x85\xEF |0
+<UF1BA> \x85\xF0 |0
+<UF1BB> \x85\xF1 |0
+<UF1BC> \x85\xF2 |0
+<UF1BD> \x85\xF3 |0
+<UF1BE> \x85\xF4 |0
+<UF1BF> \x85\xF5 |0
+<UF1C0> \x85\xF6 |0
+<UF1C1> \x85\xF7 |0
+<UF1C2> \x85\xF8 |0
+<UF1C3> \x85\xF9 |0
+<UF1C4> \x85\xFA |0
+<UF1C5> \x85\xFB |0
+<UF1C6> \x85\xFC |0
+<UF1C7> \x85\xFD |0
+<UF1C8> \x85\xFE |0
+<UF1C9> \x86\x40 |0
+<UF1CA> \x86\x41 |0
+<UF1CB> \x86\x42 |0
+<UF1CC> \x86\x43 |0
+<UF1CD> \x86\x44 |0
+<UF1CE> \x86\x45 |0
+<UF1CF> \x86\x46 |0
+<UF1D0> \x86\x47 |0
+<UF1D1> \x86\x48 |0
+<UF1D2> \x86\x49 |0
+<UF1D3> \x86\x4A |0
+<UF1D4> \x86\x4B |0
+<UF1D5> \x86\x4C |0
+<UF1D6> \x86\x4D |0
+<UF1D7> \x86\x4E |0
+<UF1D8> \x86\x4F |0
+<UF1D9> \x86\x50 |0
+<UF1DA> \x86\x51 |0
+<UF1DB> \x86\x52 |0
+<UF1DC> \x86\x53 |0
+<UF1DD> \x86\x54 |0
+<UF1DE> \x86\x55 |0
+<UF1DF> \x86\x56 |0
+<UF1E0> \x86\x57 |0
+<UF1E1> \x86\x58 |0
+<UF1E2> \x86\x59 |0
+<UF1E3> \x86\x5A |0
+<UF1E4> \x86\x5B |0
+<UF1E5> \x86\x5C |0
+<UF1E6> \x86\x5D |0
+<UF1E7> \x86\x5E |0
+<UF1E8> \x86\x5F |0
+<UF1E9> \x86\x60 |0
+<UF1EA> \x86\x61 |0
+<UF1EB> \x86\x62 |0
+<UF1EC> \x86\x63 |0
+<UF1ED> \x86\x64 |0
+<UF1EE> \x86\x65 |0
+<UF1EF> \x86\x66 |0
+<UF1F0> \x86\x67 |0
+<UF1F1> \x86\x68 |0
+<UF1F2> \x86\x69 |0
+<UF1F3> \x86\x6A |0
+<UF1F4> \x86\x6B |0
+<UF1F5> \x86\x6C |0
+<UF1F6> \x86\x6D |0
+<UF1F7> \x86\x6E |0
+<UF1F8> \x86\x6F |0
+<UF1F9> \x86\x70 |0
+<UF1FA> \x86\x71 |0
+<UF1FB> \x86\x72 |0
+<UF1FC> \x86\x73 |0
+<UF1FD> \x86\x74 |0
+<UF1FE> \x86\x75 |0
+<UF1FF> \x86\x76 |0
+<UF200> \x86\x77 |0
+<UF201> \x86\x78 |0
+<UF202> \x86\x79 |0
+<UF203> \x86\x7A |0
+<UF204> \x86\x7B |0
+<UF205> \x86\x7C |0
+<UF206> \x86\x7D |0
+<UF207> \x86\x7E |0
+<UF208> \x86\xA1 |0
+<UF209> \x86\xA2 |0
+<UF20A> \x86\xA3 |0
+<UF20B> \x86\xA4 |0
+<UF20C> \x86\xA5 |0
+<UF20D> \x86\xA6 |0
+<UF20E> \x86\xA7 |0
+<UF20F> \x86\xA8 |0
+<UF210> \x86\xA9 |0
+<UF211> \x86\xAA |0
+<UF212> \x86\xAB |0
+<UF213> \x86\xAC |0
+<UF214> \x86\xAD |0
+<UF215> \x86\xAE |0
+<UF216> \x86\xAF |0
+<UF217> \x86\xB0 |0
+<UF218> \x86\xB1 |0
+<UF219> \x86\xB2 |0
+<UF21A> \x86\xB3 |0
+<UF21B> \x86\xB4 |0
+<UF21C> \x86\xB5 |0
+<UF21D> \x86\xB6 |0
+<UF21E> \x86\xB7 |0
+<UF21F> \x86\xB8 |0
+<UF220> \x86\xB9 |0
+<UF221> \x86\xBA |0
+<UF222> \x86\xBB |0
+<UF223> \x86\xBC |0
+<UF224> \x86\xBD |0
+<UF225> \x86\xBE |0
+<UF226> \x86\xBF |0
+<UF227> \x86\xC0 |0
+<UF228> \x86\xC1 |0
+<UF229> \x86\xC2 |0
+<UF22A> \x86\xC3 |0
+<UF22B> \x86\xC4 |0
+<UF22C> \x86\xC5 |0
+<UF22D> \x86\xC6 |0
+<UF22E> \x86\xC7 |0
+<UF22F> \x86\xC8 |0
+<UF230> \x86\xC9 |0
+<UF231> \x86\xCA |0
+<UF232> \x86\xCB |0
+<UF233> \x86\xCC |0
+<UF234> \x86\xCD |0
+<UF235> \x86\xCE |0
+<UF236> \x86\xCF |0
+<UF237> \x86\xD0 |0
+<UF238> \x86\xD1 |0
+<UF239> \x86\xD2 |0
+<UF23A> \x86\xD3 |0
+<UF23B> \x86\xD4 |0
+<UF23C> \x86\xD5 |0
+<UF23D> \x86\xD6 |0
+<UF23E> \x86\xD7 |0
+<UF23F> \x86\xD8 |0
+<UF240> \x86\xD9 |0
+<UF241> \x86\xDA |0
+<UF242> \x86\xDB |0
+<UF243> \x86\xDC |0
+<UF244> \x86\xDD |0
+<UF245> \x86\xDE |0
+<UF246> \x86\xDF |0
+<UF247> \x86\xE0 |0
+<UF248> \x86\xE1 |0
+<UF249> \x86\xE2 |0
+<UF24A> \x86\xE3 |0
+<UF24B> \x86\xE4 |0
+<UF24C> \x86\xE5 |0
+<UF24D> \x86\xE6 |0
+<UF24E> \x86\xE7 |0
+<UF24F> \x86\xE8 |0
+<UF250> \x86\xE9 |0
+<UF251> \x86\xEA |0
+<UF252> \x86\xEB |0
+<UF253> \x86\xEC |0
+<UF254> \x86\xED |0
+<UF255> \x86\xEE |0
+<UF256> \x86\xEF |0
+<UF257> \x86\xF0 |0
+<UF258> \x86\xF1 |0
+<UF259> \x86\xF2 |0
+<UF25A> \x86\xF3 |0
+<UF25B> \x86\xF4 |0
+<UF25C> \x86\xF5 |0
+<UF25D> \x86\xF6 |0
+<UF25E> \x86\xF7 |0
+<UF25F> \x86\xF8 |0
+<UF260> \x86\xF9 |0
+<UF261> \x86\xFA |0
+<UF262> \x86\xFB |0
+<UF263> \x86\xFC |0
+<UF264> \x86\xFD |0
+<UF265> \x86\xFE |0
+<UF266> \x87\x40 |0
+<UF267> \x87\x41 |0
+<UF268> \x87\x42 |0
+<UF269> \x87\x43 |0
+<UF26A> \x87\x44 |0
+<UF26B> \x87\x45 |0
+<UF26C> \x87\x46 |0
+<UF26D> \x87\x47 |0
+<UF26E> \x87\x48 |0
+<UF26F> \x87\x49 |0
+<UF270> \x87\x4A |0
+<UF271> \x87\x4B |0
+<UF272> \x87\x4C |0
+<UF273> \x87\x4D |0
+<UF274> \x87\x4E |0
+<UF275> \x87\x4F |0
+<UF276> \x87\x50 |0
+<UF277> \x87\x51 |0
+<UF278> \x87\x52 |0
+<UF279> \x87\x53 |0
+<UF27A> \x87\x54 |0
+<UF27B> \x87\x55 |0
+<UF27C> \x87\x56 |0
+<UF27D> \x87\x57 |0
+<UF27E> \x87\x58 |0
+<UF27F> \x87\x59 |0
+<UF280> \x87\x5A |0
+<UF281> \x87\x5B |0
+<UF282> \x87\x5C |0
+<UF283> \x87\x5D |0
+<UF284> \x87\x5E |0
+<UF285> \x87\x5F |0
+<UF286> \x87\x60 |0
+<UF287> \x87\x61 |0
+<UF288> \x87\x62 |0
+<UF289> \x87\x63 |0
+<UF28A> \x87\x64 |0
+<UF28B> \x87\x65 |0
+<UF28C> \x87\x66 |0
+<UF28D> \x87\x67 |0
+<UF28E> \x87\x68 |0
+<UF28F> \x87\x69 |0
+<UF290> \x87\x6A |0
+<UF291> \x87\x6B |0
+<UF292> \x87\x6C |0
+<UF293> \x87\x6D |0
+<UF294> \x87\x6E |0
+<UF295> \x87\x6F |0
+<UF296> \x87\x70 |0
+<UF297> \x87\x71 |0
+<UF298> \x87\x72 |0
+<UF299> \x87\x73 |0
+<UF29A> \x87\x74 |0
+<UF29B> \x87\x75 |0
+<UF29C> \x87\x76 |0
+<UF29D> \x87\x77 |0
+<UF29E> \x87\x78 |0
+<UF29F> \x87\x79 |0
+<UF2A0> \x87\x7A |0
+<UF2A1> \x87\x7B |0
+<UF2A2> \x87\x7C |0
+<UF2A3> \x87\x7D |0
+<UF2A4> \x87\x7E |0
+<UF2A5> \x87\xA1 |0
+<UF2A6> \x87\xA2 |0
+<UF2A7> \x87\xA3 |0
+<UF2A8> \x87\xA4 |0
+<UF2A9> \x87\xA5 |0
+<UF2AA> \x87\xA6 |0
+<UF2AB> \x87\xA7 |0
+<UF2AC> \x87\xA8 |0
+<UF2AD> \x87\xA9 |0
+<UF2AE> \x87\xAA |0
+<UF2AF> \x87\xAB |0
+<UF2B0> \x87\xAC |0
+<UF2B1> \x87\xAD |0
+<UF2B2> \x87\xAE |0
+<UF2B3> \x87\xAF |0
+<UF2B4> \x87\xB0 |0
+<UF2B5> \x87\xB1 |0
+<UF2B6> \x87\xB2 |0
+<UF2B7> \x87\xB3 |0
+<UF2B8> \x87\xB4 |0
+<UF2B9> \x87\xB5 |0
+<UF2BA> \x87\xB6 |0
+<UF2BB> \x87\xB7 |0
+<UF2BC> \x87\xB8 |0
+<UF2BD> \x87\xB9 |0
+<UF2BE> \x87\xBA |0
+<UF2BF> \x87\xBB |0
+<UF2C0> \x87\xBC |0
+<UF2C1> \x87\xBD |0
+<UF2C2> \x87\xBE |0
+<UF2C3> \x87\xBF |0
+<UF2C4> \x87\xC0 |0
+<UF2C5> \x87\xC1 |0
+<UF2C6> \x87\xC2 |0
+<UF2C7> \x87\xC3 |0
+<UF2C8> \x87\xC4 |0
+<UF2C9> \x87\xC5 |0
+<UF2CA> \x87\xC6 |0
+<UF2CB> \x87\xC7 |0
+<UF2CC> \x87\xC8 |0
+<UF2CD> \x87\xC9 |0
+<UF2CE> \x87\xCA |0
+<UF2CF> \x87\xCB |0
+<UF2D0> \x87\xCC |0
+<UF2D1> \x87\xCD |0
+<UF2D2> \x87\xCE |0
+<UF2D3> \x87\xCF |0
+<UF2D4> \x87\xD0 |0
+<UF2D5> \x87\xD1 |0
+<UF2D6> \x87\xD2 |0
+<UF2D7> \x87\xD3 |0
+<UF2D8> \x87\xD4 |0
+<UF2D9> \x87\xD5 |0
+<UF2DA> \x87\xD6 |0
+<UF2DB> \x87\xD7 |0
+<UF2DC> \x87\xD8 |0
+<UF2DD> \x87\xD9 |0
+<UF2DE> \x87\xDA |0
+<UF2DF> \x87\xDB |0
+<UF2E0> \x87\xDC |0
+<UF2E1> \x87\xDD |0
+<UF2E2> \x87\xDE |0
+<UF2E3> \x87\xDF |0
+<UF2E4> \x87\xE0 |0
+<UF2E5> \x87\xE1 |0
+<UF2E6> \x87\xE2 |0
+<UF2E7> \x87\xE3 |0
+<UF2E8> \x87\xE4 |0
+<UF2E9> \x87\xE5 |0
+<UF2EA> \x87\xE6 |0
+<UF2EB> \x87\xE7 |0
+<UF2EC> \x87\xE8 |0
+<UF2ED> \x87\xE9 |0
+<UF2EE> \x87\xEA |0
+<UF2EF> \x87\xEB |0
+<UF2F0> \x87\xEC |0
+<UF2F1> \x87\xED |0
+<UF2F2> \x87\xEE |0
+<UF2F3> \x87\xEF |0
+<UF2F4> \x87\xF0 |0
+<UF2F5> \x87\xF1 |0
+<UF2F6> \x87\xF2 |0
+<UF2F7> \x87\xF3 |0
+<UF2F8> \x87\xF4 |0
+<UF2F9> \x87\xF5 |0
+<UF2FA> \x87\xF6 |0
+<UF2FB> \x87\xF7 |0
+<UF2FC> \x87\xF8 |0
+<UF2FD> \x87\xF9 |0
+<UF2FE> \x87\xFA |0
+<UF2FF> \x87\xFB |0
+<UF300> \x87\xFC |0
+<UF301> \x87\xFD |0
+<UF302> \x87\xFE |0
+<UF303> \x88\x40 |0
+<UF304> \x88\x41 |0
+<UF305> \x88\x42 |0
+<UF306> \x88\x43 |0
+<UF307> \x88\x44 |0
+<UF308> \x88\x45 |0
+<UF309> \x88\x46 |0
+<UF30A> \x88\x47 |0
+<UF30B> \x88\x48 |0
+<UF30C> \x88\x49 |0
+<UF30D> \x88\x4A |0
+<UF30E> \x88\x4B |0
+<UF30F> \x88\x4C |0
+<UF310> \x88\x4D |0
+<UF311> \x88\x4E |0
+<UF312> \x88\x4F |0
+<UF313> \x88\x50 |0
+<UF314> \x88\x51 |0
+<UF315> \x88\x52 |0
+<UF316> \x88\x53 |0
+<UF317> \x88\x54 |0
+<UF318> \x88\x55 |0
+<UF319> \x88\x56 |1
+<UF31A> \x88\x57 |1
+<UF31B> \x88\x58 |1
+<UF31C> \x88\x59 |1
+<UF31D> \x88\x5A |1
+<UF31E> \x88\x5B |1
+<UF31F> \x88\x5C |1
+<UF320> \x88\x5D |1
+<UF321> \x88\x5E |1
+<UF322> \x88\x5F |1
+<UF323> \x88\x60 |1
+<UF324> \x88\x61 |1
+<UF325> \x88\x62 |0
+<UF326> \x88\x63 |1
+<UF327> \x88\x64 |0
+<UF328> \x88\x65 |1
+<UF329> \x88\x66 |1
+<UF32A> \x88\x67 |1
+<UF32B> \x88\x68 |1
+<UF32C> \x88\x69 |1
+<UF32D> \x88\x6A |1
+<UF32E> \x88\x6B |1
+<UF32F> \x88\x6C |1
+<UF330> \x88\x6D |1
+<UF331> \x88\x6E |1
+<UF332> \x88\x6F |1
+<UF333> \x88\x70 |1
+<UF334> \x88\x71 |1
+<UF335> \x88\x72 |1
+<UF336> \x88\x73 |1
+<UF337> \x88\x74 |1
+<UF338> \x88\x75 |1
+<UF339> \x88\x76 |1
+<UF33A> \x88\x77 |1
+<UF33B> \x88\x78 |1
+<UF33C> \x88\x79 |1
+<UF33D> \x88\x7A |1
+<UF33E> \x88\x7B |1
+<UF33F> \x88\x7C |1
+<UF340> \x88\x7D |1
+<UF341> \x88\x7E |1
+<UF342> \x88\xA1 |1
+<UF343> \x88\xA2 |1
+<UF344> \x88\xA3 |0
+<UF345> \x88\xA4 |1
+<UF346> \x88\xA5 |0
+<UF347> \x88\xA6 |1
+<UF348> \x88\xA7 |1
+<UF349> \x88\xA8 |1
+<UF34A> \x88\xA9 |0
+<UF34B> \x88\xAA |0
+<UF34C> \x88\xAB |0
+<UF34D> \x88\xAC |0
+<UF34E> \x88\xAD |0
+<UF34F> \x88\xAE |0
+<UF350> \x88\xAF |0
+<UF351> \x88\xB0 |0
+<UF352> \x88\xB1 |0
+<UF353> \x88\xB2 |0
+<UF354> \x88\xB3 |0
+<UF355> \x88\xB4 |0
+<UF356> \x88\xB5 |0
+<UF357> \x88\xB6 |0
+<UF358> \x88\xB7 |0
+<UF359> \x88\xB8 |0
+<UF35A> \x88\xB9 |0
+<UF35B> \x88\xBA |0
+<UF35C> \x88\xBB |0
+<UF35D> \x88\xBC |0
+<UF35E> \x88\xBD |0
+<UF35F> \x88\xBE |0
+<UF360> \x88\xBF |0
+<UF361> \x88\xC0 |0
+<UF362> \x88\xC1 |0
+<UF363> \x88\xC2 |0
+<UF364> \x88\xC3 |0
+<UF365> \x88\xC4 |0
+<UF366> \x88\xC5 |0
+<UF367> \x88\xC6 |0
+<UF368> \x88\xC7 |0
+<UF369> \x88\xC8 |0
+<UF36A> \x88\xC9 |0
+<UF36B> \x88\xCA |0
+<UF36C> \x88\xCB |0
+<UF36D> \x88\xCC |0
+<UF36E> \x88\xCD |0
+<UF36F> \x88\xCE |0
+<UF370> \x88\xCF |0
+<UF371> \x88\xD0 |0
+<UF372> \x88\xD1 |0
+<UF373> \x88\xD2 |0
+<UF374> \x88\xD3 |0
+<UF375> \x88\xD4 |0
+<UF376> \x88\xD5 |0
+<UF377> \x88\xD6 |0
+<UF378> \x88\xD7 |0
+<UF379> \x88\xD8 |0
+<UF37A> \x88\xD9 |0
+<UF37B> \x88\xDA |0
+<UF37C> \x88\xDB |0
+<UF37D> \x88\xDC |0
+<UF37E> \x88\xDD |0
+<UF37F> \x88\xDE |0
+<UF380> \x88\xDF |0
+<UF381> \x88\xE0 |0
+<UF382> \x88\xE1 |0
+<UF383> \x88\xE2 |0
+<UF384> \x88\xE3 |0
+<UF385> \x88\xE4 |0
+<UF386> \x88\xE5 |0
+<UF387> \x88\xE6 |0
+<UF388> \x88\xE7 |0
+<UF389> \x88\xE8 |0
+<UF38A> \x88\xE9 |0
+<UF38B> \x88\xEA |0
+<UF38C> \x88\xEB |0
+<UF38D> \x88\xEC |0
+<UF38E> \x88\xED |0
+<UF38F> \x88\xEE |0
+<UF390> \x88\xEF |0
+<UF391> \x88\xF0 |0
+<UF392> \x88\xF1 |0
+<UF393> \x88\xF2 |0
+<UF394> \x88\xF3 |0
+<UF395> \x88\xF4 |0
+<UF396> \x88\xF5 |0
+<UF397> \x88\xF6 |0
+<UF398> \x88\xF7 |0
+<UF399> \x88\xF8 |0
+<UF39A> \x88\xF9 |0
+<UF39B> \x88\xFA |0
+<UF39C> \x88\xFB |0
+<UF39D> \x88\xFC |0
+<UF39E> \x88\xFD |0
+<UF39F> \x88\xFE |0
+<UF3A0> \x89\x40 |0
+<UF3A1> \x89\x41 |0
+<UF3A2> \x89\x42 |0
+<UF3A3> \x89\x43 |1
+<UF3A4> \x89\x44 |0
+<UF3A5> \x89\x45 |0
+<UF3A6> \x89\x46 |1
+<UF3A7> \x89\x47 |1
+<UF3A8> \x89\x48 |1
+<UF3A9> \x89\x49 |1
+<UF3AA> \x89\x4A |0
+<UF3AB> \x89\x4B |0
+<UF3AC> \x89\x4C |0
+<UF3AD> \x89\x4D |1
+<UF3AE> \x89\x4E |1
+<UF3AF> \x89\x4F |1
+<UF3B0> \x89\x50 |1
+<UF3B1> \x89\x51 |1
+<UF3B2> \x89\x52 |1
+<UF3B3> \x89\x53 |1
+<UF3B4> \x89\x54 |1
+<UF3B5> \x89\x55 |1
+<UF3B6> \x89\x56 |1
+<UF3B7> \x89\x57 |1
+<UF3B8> \x89\x58 |1
+<UF3B9> \x89\x59 |1
+<UF3BA> \x89\x5A |1
+<UF3BB> \x89\x5B |1
+<UF3BC> \x89\x5C |1
+<UF3BD> \x89\x5D |1
+<UF3BE> \x89\x5E |1
+<UF3BF> \x89\x5F |1
+<UF3C0> \x89\x60 |1
+<UF3C1> \x89\x61 |1
+<UF3C2> \x89\x62 |1
+<UF3C3> \x89\x63 |1
+<UF3C4> \x89\x64 |1
+<UF3C5> \x89\x65 |1
+<UF3C6> \x89\x66 |1
+<UF3C7> \x89\x67 |1
+<UF3C8> \x89\x68 |1
+<UF3C9> \x89\x69 |1
+<UF3CA> \x89\x6A |1
+<UF3CB> \x89\x6B |1
+<UF3CC> \x89\x6C |1
+<UF3CD> \x89\x6D |1
+<UF3CE> \x89\x6E |1
+<UF3CF> \x89\x6F |1
+<UF3D0> \x89\x70 |1
+<UF3D1> \x89\x71 |1
+<UF3D2> \x89\x72 |1
+<UF3D3> \x89\x73 |1
+<UF3D4> \x89\x74 |1
+<UF3D5> \x89\x75 |1
+<UF3D6> \x89\x76 |1
+<UF3D7> \x89\x77 |1
+<UF3D8> \x89\x78 |1
+<UF3D9> \x89\x79 |1
+<UF3DA> \x89\x7A |1
+<UF3DB> \x89\x7B |1
+<UF3DC> \x89\x7C |1
+<UF3DD> \x89\x7D |1
+<UF3DE> \x89\x7E |1
+<UF3DF> \x89\xA1 |1
+<UF3E0> \x89\xA2 |1
+<UF3E1> \x89\xA3 |1
+<UF3E2> \x89\xA4 |1
+<UF3E3> \x89\xA5 |1
+<UF3E4> \x89\xA6 |1
+<UF3E5> \x89\xA7 |0
+<UF3E6> \x89\xA8 |0
+<UF3E7> \x89\xA9 |0
+<UF3E8> \x89\xAA |0
+<UF3E9> \x89\xAB |1
+<UF3EA> \x89\xAC |1
+<UF3EB> \x89\xAD |1
+<UF3EC> \x89\xAE |1
+<UF3ED> \x89\xAF |0
+<UF3EE> \x89\xB0 |1
+<UF3EF> \x89\xB1 |1
+<UF3F0> \x89\xB2 |0
+<UF3F1> \x89\xB3 |0
+<UF3F2> \x89\xB4 |0
+<UF3F3> \x89\xB5 |1
+<UF3F4> \x89\xB6 |1
+<UF3F5> \x89\xB7 |1
+<UF3F6> \x89\xB8 |1
+<UF3F7> \x89\xB9 |1
+<UF3F8> \x89\xBA |1
+<UF3F9> \x89\xBB |0
+<UF3FA> \x89\xBC |0
+<UF3FB> \x89\xBD |1
+<UF3FC> \x89\xBE |0
+<UF3FD> \x89\xBF |1
+<UF3FE> \x89\xC0 |0
+<UF3FF> \x89\xC1 |1
+<UF400> \x89\xC2 |1
+<UF401> \x89\xC3 |1
+<UF402> \x89\xC4 |0
+<UF403> \x89\xC5 |1
+<UF404> \x89\xC6 |1
+<UF405> \x89\xC7 |1
+<UF406> \x89\xC8 |1
+<UF407> \x89\xC9 |1
+<UF408> \x89\xCA |0
+<UF409> \x89\xCB |0
+<UF40A> \x89\xCC |0
+<UF40B> \x89\xCD |0
+<UF40C> \x89\xCE |1
+<UF40D> \x89\xCF |1
+<UF40E> \x89\xD0 |1
+<UF40F> \x89\xD1 |1
+<UF410> \x89\xD2 |1
+<UF411> \x89\xD3 |1
+<UF412> \x89\xD4 |1
+<UF413> \x89\xD5 |1
+<UF414> \x89\xD6 |1
+<UF415> \x89\xD7 |1
+<UF416> \x89\xD8 |1
+<UF417> \x89\xD9 |1
+<UF418> \x89\xDA |1
+<UF419> \x89\xDB |1
+<UF41A> \x89\xDC |1
+<UF41B> \x89\xDD |1
+<UF41C> \x89\xDE |1
+<UF41D> \x89\xDF |1
+<UF41E> \x89\xE0 |1
+<UF41F> \x89\xE1 |1
+<UF420> \x89\xE2 |1
+<UF421> \x89\xE3 |1
+<UF422> \x89\xE4 |1
+<UF423> \x89\xE5 |1
+<UF424> \x89\xE6 |1
+<UF425> \x89\xE7 |1
+<UF426> \x89\xE8 |1
+<UF427> \x89\xE9 |1
+<UF428> \x89\xEA |1
+<UF429> \x89\xEB |1
+<UF42A> \x89\xEC |1
+<UF42B> \x89\xED |1
+<UF42C> \x89\xEE |1
+<UF42D> \x89\xEF |1
+<UF42E> \x89\xF0 |1
+<UF42F> \x89\xF1 |1
+<UF430> \x89\xF2 |1
+<UF431> \x89\xF3 |1
+<UF432> \x89\xF4 |1
+<UF433> \x89\xF5 |1
+<UF434> \x89\xF6 |1
+<UF435> \x89\xF7 |1
+<UF436> \x89\xF8 |1
+<UF437> \x89\xF9 |1
+<UF438> \x89\xFA |1
+<UF439> \x89\xFB |1
+<UF43A> \x89\xFC |1
+<UF43B> \x89\xFD |1
+<UF43C> \x89\xFE |1
+<UF43D> \x8A\x40 |0
+<UF43E> \x8A\x41 |1
+<UF43F> \x8A\x42 |0
+<UF440> \x8A\x43 |0
+<UF441> \x8A\x44 |0
+<UF442> \x8A\x45 |0
+<UF443> \x8A\x46 |1
+<UF444> \x8A\x47 |0
+<UF445> \x8A\x48 |1
+<UF446> \x8A\x49 |0
+<UF447> \x8A\x4A |1
+<UF448> \x8A\x4B |0
+<UF449> \x8A\x4C |0
+<UF44A> \x8A\x4D |1
+<UF44B> \x8A\x4E |0
+<UF44C> \x8A\x4F |1
+<UF44D> \x8A\x50 |0
+<UF44E> \x8A\x51 |1
+<UF44F> \x8A\x52 |1
+<UF450> \x8A\x53 |0
+<UF451> \x8A\x54 |0
+<UF452> \x8A\x55 |0
+<UF453> \x8A\x56 |1
+<UF454> \x8A\x57 |0
+<UF455> \x8A\x58 |0
+<UF456> \x8A\x59 |0
+<UF457> \x8A\x5A |0
+<UF458> \x8A\x5B |1
+<UF459> \x8A\x5C |1
+<UF45A> \x8A\x5D |0
+<UF45B> \x8A\x5E |0
+<UF45C> \x8A\x5F |0
+<UF45D> \x8A\x60 |0
+<UF45E> \x8A\x61 |0
+<UF45F> \x8A\x62 |0
+<UF460> \x8A\x63 |0
+<UF461> \x8A\x64 |0
+<UF462> \x8A\x65 |0
+<UF463> \x8A\x66 |0
+<UF464> \x8A\x67 |1
+<UF465> \x8A\x68 |0
+<UF466> \x8A\x69 |0
+<UF467> \x8A\x6A |1
+<UF468> \x8A\x6B |1
+<UF469> \x8A\x6C |0
+<UF46A> \x8A\x6D |1
+<UF46B> \x8A\x6E |1
+<UF46C> \x8A\x6F |0
+<UF46D> \x8A\x70 |0
+<UF46E> \x8A\x71 |0
+<UF46F> \x8A\x72 |0
+<UF470> \x8A\x73 |1
+<UF471> \x8A\x74 |1
+<UF472> \x8A\x75 |0
+<UF473> \x8A\x76 |1
+<UF474> \x8A\x77 |0
+<UF475> \x8A\x78 |1
+<UF476> \x8A\x79 |1
+<UF477> \x8A\x7A |0
+<UF478> \x8A\x7B |0
+<UF479> \x8A\x7C |0
+<UF47A> \x8A\x7D |1
+<UF47B> \x8A\x7E |0
+<UF47C> \x8A\xA1 |0
+<UF47D> \x8A\xA2 |0
+<UF47E> \x8A\xA3 |0
+<UF47F> \x8A\xA4 |1
+<UF480> \x8A\xA5 |0
+<UF481> \x8A\xA6 |0
+<UF482> \x8A\xA7 |1
+<UF483> \x8A\xA8 |0
+<UF484> \x8A\xA9 |0
+<UF485> \x8A\xAA |0
+<UF486> \x8A\xAB |0
+<UF487> \x8A\xAC |1
+<UF488> \x8A\xAD |0
+<UF489> \x8A\xAE |1
+<UF48A> \x8A\xAF |1
+<UF48B> \x8A\xB0 |0
+<UF48C> \x8A\xB1 |0
+<UF48D> \x8A\xB2 |0
+<UF48E> \x8A\xB3 |0
+<UF48F> \x8A\xB4 |0
+<UF490> \x8A\xB5 |0
+<UF491> \x8A\xB6 |0
+<UF492> \x8A\xB7 |1
+<UF493> \x8A\xB8 |1
+<UF494> \x8A\xB9 |1
+<UF495> \x8A\xBA |0
+<UF496> \x8A\xBB |1
+<UF497> \x8A\xBC |0
+<UF498> \x8A\xBD |0
+<UF499> \x8A\xBE |1
+<UF49A> \x8A\xBF |1
+<UF49B> \x8A\xC0 |0
+<UF49C> \x8A\xC1 |1
+<UF49D> \x8A\xC2 |1
+<UF49E> \x8A\xC3 |0
+<UF49F> \x8A\xC4 |1
+<UF4A0> \x8A\xC5 |1
+<UF4A1> \x8A\xC6 |1
+<UF4A2> \x8A\xC7 |1
+<UF4A3> \x8A\xC8 |0
+<UF4A4> \x8A\xC9 |0
+<UF4A5> \x8A\xCA |0
+<UF4A6> \x8A\xCB |0
+<UF4A7> \x8A\xCC |0
+<UF4A8> \x8A\xCD |0
+<UF4A9> \x8A\xCE |0
+<UF4AA> \x8A\xCF |0
+<UF4AB> \x8A\xD0 |1
+<UF4AC> \x8A\xD1 |1
+<UF4AD> \x8A\xD2 |0
+<UF4AE> \x8A\xD3 |1
+<UF4AF> \x8A\xD4 |0
+<UF4B0> \x8A\xD5 |0
+<UF4B1> \x8A\xD6 |1
+<UF4B2> \x8A\xD7 |0
+<UF4B3> \x8A\xD8 |0
+<UF4B4> \x8A\xD9 |0
+<UF4B5> \x8A\xDA |1
+<UF4B6> \x8A\xDB |1
+<UF4B7> \x8A\xDC |0
+<UF4B8> \x8A\xDD |0
+<UF4B9> \x8A\xDE |0
+<UF4BA> \x8A\xDF |0
+<UF4BB> \x8A\xE0 |0
+<UF4BC> \x8A\xE1 |0
+<UF4BD> \x8A\xE2 |0
+<UF4BE> \x8A\xE3 |0
+<UF4BF> \x8A\xE4 |0
+<UF4C0> \x8A\xE5 |0
+<UF4C1> \x8A\xE6 |0
+<UF4C2> \x8A\xE7 |1
+<UF4C3> \x8A\xE8 |0
+<UF4C4> \x8A\xE9 |0
+<UF4C5> \x8A\xEA |0
+<UF4C6> \x8A\xEB |1
+<UF4C7> \x8A\xEC |0
+<UF4C8> \x8A\xED |0
+<UF4C9> \x8A\xEE |0
+<UF4CA> \x8A\xEF |0
+<UF4CB> \x8A\xF0 |1
+<UF4CC> \x8A\xF1 |0
+<UF4CD> \x8A\xF2 |0
+<UF4CE> \x8A\xF3 |0
+<UF4CF> \x8A\xF4 |0
+<UF4D0> \x8A\xF5 |0
+<UF4D1> \x8A\xF6 |0
+<UF4D2> \x8A\xF7 |0
+<UF4D3> \x8A\xF8 |0
+<UF4D4> \x8A\xF9 |0
+<UF4D5> \x8A\xFA |0
+<UF4D6> \x8A\xFB |1
+<UF4D7> \x8A\xFC |0
+<UF4D8> \x8A\xFD |1
+<UF4D9> \x8A\xFE |0
+<UF4DA> \x8B\x40 |0
+<UF4DB> \x8B\x41 |0
+<UF4DC> \x8B\x42 |0
+<UF4DD> \x8B\x43 |0
+<UF4DE> \x8B\x44 |0
+<UF4DF> \x8B\x45 |0
+<UF4E0> \x8B\x46 |0
+<UF4E1> \x8B\x47 |1
+<UF4E2> \x8B\x48 |0
+<UF4E3> \x8B\x49 |0
+<UF4E4> \x8B\x4A |0
+<UF4E5> \x8B\x4B |0
+<UF4E6> \x8B\x4C |0
+<UF4E7> \x8B\x4D |0
+<UF4E8> \x8B\x4E |0
+<UF4E9> \x8B\x4F |0
+<UF4EA> \x8B\x50 |1
+<UF4EB> \x8B\x51 |1
+<UF4EC> \x8B\x52 |1
+<UF4ED> \x8B\x53 |1
+<UF4EE> \x8B\x54 |0
+<UF4EF> \x8B\x55 |0
+<UF4F0> \x8B\x56 |1
+<UF4F1> \x8B\x57 |1
+<UF4F2> \x8B\x58 |0
+<UF4F3> \x8B\x59 |0
+<UF4F4> \x8B\x5A |1
+<UF4F5> \x8B\x5B |1
+<UF4F6> \x8B\x5C |1
+<UF4F7> \x8B\x5D |1
+<UF4F8> \x8B\x5E |0
+<UF4F9> \x8B\x5F |1
+<UF4FA> \x8B\x60 |1
+<UF4FB> \x8B\x61 |1
+<UF4FC> \x8B\x62 |0
+<UF4FD> \x8B\x63 |1
+<UF4FE> \x8B\x64 |0
+<UF4FF> \x8B\x65 |0
+<UF500> \x8B\x66 |0
+<UF501> \x8B\x67 |0
+<UF502> \x8B\x68 |1
+<UF503> \x8B\x69 |0
+<UF504> \x8B\x6A |1
+<UF505> \x8B\x6B |0
+<UF506> \x8B\x6C |1
+<UF507> \x8B\x6D |0
+<UF508> \x8B\x6E |0
+<UF509> \x8B\x6F |0
+<UF50A> \x8B\x70 |0
+<UF50B> \x8B\x71 |0
+<UF50C> \x8B\x72 |0
+<UF50D> \x8B\x73 |0
+<UF50E> \x8B\x74 |0
+<UF50F> \x8B\x75 |0
+<UF510> \x8B\x76 |0
+<UF511> \x8B\x77 |0
+<UF512> \x8B\x78 |1
+<UF513> \x8B\x79 |0
+<UF514> \x8B\x7A |0
+<UF515> \x8B\x7B |0
+<UF516> \x8B\x7C |0
+<UF517> \x8B\x7D |1
+<UF518> \x8B\x7E |0
+<UF519> \x8B\xA1 |0
+<UF51A> \x8B\xA2 |0
+<UF51B> \x8B\xA3 |0
+<UF51C> \x8B\xA4 |0
+<UF51D> \x8B\xA5 |0
+<UF51E> \x8B\xA6 |1
+<UF51F> \x8B\xA7 |0
+<UF520> \x8B\xA8 |0
+<UF521> \x8B\xA9 |0
+<UF522> \x8B\xAA |0
+<UF523> \x8B\xAB |0
+<UF524> \x8B\xAC |0
+<UF525> \x8B\xAD |0
+<UF526> \x8B\xAE |0
+<UF527> \x8B\xAF |1
+<UF528> \x8B\xB0 |1
+<UF529> \x8B\xB1 |1
+<UF52A> \x8B\xB2 |0
+<UF52B> \x8B\xB3 |1
+<UF52C> \x8B\xB4 |1
+<UF52D> \x8B\xB5 |1
+<UF52E> \x8B\xB6 |1
+<UF52F> \x8B\xB7 |1
+<UF530> \x8B\xB8 |1
+<UF531> \x8B\xB9 |1
+<UF532> \x8B\xBA |1
+<UF533> \x8B\xBB |0
+<UF534> \x8B\xBC |0
+<UF535> \x8B\xBD |1
+<UF536> \x8B\xBE |1
+<UF537> \x8B\xBF |1
+<UF538> \x8B\xC0 |1
+<UF539> \x8B\xC1 |1
+<UF53A> \x8B\xC2 |0
+<UF53B> \x8B\xC3 |0
+<UF53C> \x8B\xC4 |1
+<UF53D> \x8B\xC5 |0
+<UF53E> \x8B\xC6 |1
+<UF53F> \x8B\xC7 |1
+<UF540> \x8B\xC8 |1
+<UF541> \x8B\xC9 |1
+<UF542> \x8B\xCA |1
+<UF543> \x8B\xCB |1
+<UF544> \x8B\xCC |1
+<UF545> \x8B\xCD |1
+<UF546> \x8B\xCE |1
+<UF547> \x8B\xCF |1
+<UF548> \x8B\xD0 |1
+<UF549> \x8B\xD1 |1
+<UF54A> \x8B\xD2 |1
+<UF54B> \x8B\xD3 |1
+<UF54C> \x8B\xD4 |1
+<UF54D> \x8B\xD5 |1
+<UF54E> \x8B\xD6 |0
+<UF54F> \x8B\xD7 |1
+<UF550> \x8B\xD8 |1
+<UF551> \x8B\xD9 |1
+<UF552> \x8B\xDA |1
+<UF553> \x8B\xDB |0
+<UF554> \x8B\xDC |1
+<UF555> \x8B\xDD |0
+<UF556> \x8B\xDE |0
+<UF557> \x8B\xDF |1
+<UF558> \x8B\xE0 |1
+<UF559> \x8B\xE1 |0
+<UF55A> \x8B\xE2 |0
+<UF55B> \x8B\xE3 |1
+<UF55C> \x8B\xE4 |1
+<UF55D> \x8B\xE5 |1
+<UF55E> \x8B\xE6 |0
+<UF55F> \x8B\xE7 |1
+<UF560> \x8B\xE8 |1
+<UF561> \x8B\xE9 |1
+<UF562> \x8B\xEA |1
+<UF563> \x8B\xEB |1
+<UF564> \x8B\xEC |1
+<UF565> \x8B\xED |0
+<UF566> \x8B\xEE |1
+<UF567> \x8B\xEF |1
+<UF568> \x8B\xF0 |1
+<UF569> \x8B\xF1 |1
+<UF56A> \x8B\xF2 |1
+<UF56B> \x8B\xF3 |0
+<UF56C> \x8B\xF4 |1
+<UF56D> \x8B\xF5 |1
+<UF56E> \x8B\xF6 |1
+<UF56F> \x8B\xF7 |1
+<UF570> \x8B\xF8 |1
+<UF571> \x8B\xF9 |1
+<UF572> \x8B\xFA |0
+<UF573> \x8B\xFB |1
+<UF574> \x8B\xFC |1
+<UF575> \x8B\xFD |1
+<UF576> \x8B\xFE |0
+<UF577> \x8C\x40 |1
+<UF578> \x8C\x41 |1
+<UF579> \x8C\x42 |0
+<UF57A> \x8C\x43 |0
+<UF57B> \x8C\x44 |1
+<UF57C> \x8C\x45 |1
+<UF57D> \x8C\x46 |0
+<UF57E> \x8C\x47 |1
+<UF57F> \x8C\x48 |1
+<UF580> \x8C\x49 |1
+<UF581> \x8C\x4A |0
+<UF582> \x8C\x4B |1
+<UF583> \x8C\x4C |0
+<UF584> \x8C\x4D |1
+<UF585> \x8C\x4E |0
+<UF586> \x8C\x4F |1
+<UF587> \x8C\x50 |1
+<UF588> \x8C\x51 |1
+<UF589> \x8C\x52 |1
+<UF58A> \x8C\x53 |1
+<UF58B> \x8C\x54 |0
+<UF58C> \x8C\x55 |0
+<UF58D> \x8C\x56 |1
+<UF58E> \x8C\x57 |0
+<UF58F> \x8C\x58 |1
+<UF590> \x8C\x59 |1
+<UF591> \x8C\x5A |1
+<UF592> \x8C\x5B |1
+<UF593> \x8C\x5C |0
+<UF594> \x8C\x5D |1
+<UF595> \x8C\x5E |1
+<UF596> \x8C\x5F |0
+<UF597> \x8C\x60 |1
+<UF598> \x8C\x61 |1
+<UF599> \x8C\x62 |0
+<UF59A> \x8C\x63 |1
+<UF59B> \x8C\x64 |0
+<UF59C> \x8C\x65 |0
+<UF59D> \x8C\x66 |1
+<UF59E> \x8C\x67 |1
+<UF59F> \x8C\x68 |1
+<UF5A0> \x8C\x69 |0
+<UF5A1> \x8C\x6A |1
+<UF5A2> \x8C\x6B |1
+<UF5A3> \x8C\x6C |0
+<UF5A4> \x8C\x6D |0
+<UF5A5> \x8C\x6E |1
+<UF5A6> \x8C\x6F |1
+<UF5A7> \x8C\x70 |1
+<UF5A8> \x8C\x71 |1
+<UF5A9> \x8C\x72 |1
+<UF5AA> \x8C\x73 |1
+<UF5AB> \x8C\x74 |0
+<UF5AC> \x8C\x75 |1
+<UF5AD> \x8C\x76 |1
+<UF5AE> \x8C\x77 |1
+<UF5AF> \x8C\x78 |1
+<UF5B0> \x8C\x79 |0
+<UF5B1> \x8C\x7A |1
+<UF5B2> \x8C\x7B |1
+<UF5B3> \x8C\x7C |1
+<UF5B4> \x8C\x7D |0
+<UF5B5> \x8C\x7E |1
+<UF5B6> \x8C\xA1 |0
+<UF5B7> \x8C\xA2 |1
+<UF5B8> \x8C\xA3 |1
+<UF5B9> \x8C\xA4 |0
+<UF5BA> \x8C\xA5 |1
+<UF5BB> \x8C\xA6 |0
+<UF5BC> \x8C\xA7 |1
+<UF5BD> \x8C\xA8 |0
+<UF5BE> \x8C\xA9 |1
+<UF5BF> \x8C\xAA |1
+<UF5C0> \x8C\xAB |0
+<UF5C1> \x8C\xAC |1
+<UF5C2> \x8C\xAD |1
+<UF5C3> \x8C\xAE |1
+<UF5C4> \x8C\xAF |0
+<UF5C5> \x8C\xB0 |0
+<UF5C6> \x8C\xB1 |1
+<UF5C7> \x8C\xB2 |1
+<UF5C8> \x8C\xB3 |1
+<UF5C9> \x8C\xB4 |1
+<UF5CA> \x8C\xB5 |1
+<UF5CB> \x8C\xB6 |1
+<UF5CC> \x8C\xB7 |0
+<UF5CD> \x8C\xB8 |1
+<UF5CE> \x8C\xB9 |0
+<UF5CF> \x8C\xBA |1
+<UF5D0> \x8C\xBB |0
+<UF5D1> \x8C\xBC |1
+<UF5D2> \x8C\xBD |1
+<UF5D3> \x8C\xBE |1
+<UF5D4> \x8C\xBF |1
+<UF5D5> \x8C\xC0 |0
+<UF5D6> \x8C\xC1 |0
+<UF5D7> \x8C\xC2 |0
+<UF5D8> \x8C\xC3 |1
+<UF5D9> \x8C\xC4 |1
+<UF5DA> \x8C\xC5 |1
+<UF5DB> \x8C\xC6 |0
+<UF5DC> \x8C\xC7 |0
+<UF5DD> \x8C\xC8 |0
+<UF5DE> \x8C\xC9 |1
+<UF5DF> \x8C\xCA |1
+<UF5E0> \x8C\xCB |1
+<UF5E1> \x8C\xCC |1
+<UF5E2> \x8C\xCD |0
+<UF5E3> \x8C\xCE |1
+<UF5E4> \x8C\xCF |0
+<UF5E5> \x8C\xD0 |1
+<UF5E6> \x8C\xD1 |0
+<UF5E7> \x8C\xD2 |1
+<UF5E8> \x8C\xD3 |0
+<UF5E9> \x8C\xD4 |1
+<UF5EA> \x8C\xD5 |0
+<UF5EB> \x8C\xD6 |0
+<UF5EC> \x8C\xD7 |0
+<UF5ED> \x8C\xD8 |0
+<UF5EE> \x8C\xD9 |1
+<UF5EF> \x8C\xDA |0
+<UF5F0> \x8C\xDB |0
+<UF5F1> \x8C\xDC |1
+<UF5F2> \x8C\xDD |0
+<UF5F3> \x8C\xDE |0
+<UF5F4> \x8C\xDF |0
+<UF5F5> \x8C\xE0 |0
+<UF5F6> \x8C\xE1 |0
+<UF5F7> \x8C\xE2 |0
+<UF5F8> \x8C\xE3 |0
+<UF5F9> \x8C\xE4 |0
+<UF5FA> \x8C\xE5 |0
+<UF5FB> \x8C\xE6 |0
+<UF5FC> \x8C\xE7 |0
+<UF5FD> \x8C\xE8 |0
+<UF5FE> \x8C\xE9 |0
+<UF5FF> \x8C\xEA |0
+<UF600> \x8C\xEB |0
+<UF601> \x8C\xEC |0
+<UF602> \x8C\xED |0
+<UF603> \x8C\xEE |0
+<UF604> \x8C\xEF |0
+<UF605> \x8C\xF0 |0
+<UF606> \x8C\xF1 |0
+<UF607> \x8C\xF2 |0
+<UF608> \x8C\xF3 |0
+<UF609> \x8C\xF4 |0
+<UF60A> \x8C\xF5 |0
+<UF60B> \x8C\xF6 |0
+<UF60C> \x8C\xF7 |0
+<UF60D> \x8C\xF8 |0
+<UF60E> \x8C\xF9 |0
+<UF60F> \x8C\xFA |0
+<UF610> \x8C\xFB |0
+<UF611> \x8C\xFC |0
+<UF612> \x8C\xFD |0
+<UF613> \x8C\xFE |0
+<UF614> \x8D\x40 |0
+<UF615> \x8D\x41 |0
+<UF616> \x8D\x42 |0
+<UF617> \x8D\x43 |0
+<UF618> \x8D\x44 |0
+<UF619> \x8D\x45 |0
+<UF61A> \x8D\x46 |0
+<UF61B> \x8D\x47 |0
+<UF61C> \x8D\x48 |0
+<UF61D> \x8D\x49 |0
+<UF61E> \x8D\x4A |0
+<UF61F> \x8D\x4B |0
+<UF620> \x8D\x4C |0
+<UF621> \x8D\x4D |0
+<UF622> \x8D\x4E |0
+<UF623> \x8D\x4F |0
+<UF624> \x8D\x50 |0
+<UF625> \x8D\x51 |0
+<UF626> \x8D\x52 |0
+<UF627> \x8D\x53 |0
+<UF628> \x8D\x54 |0
+<UF629> \x8D\x55 |0
+<UF62A> \x8D\x56 |0
+<UF62B> \x8D\x57 |0
+<UF62C> \x8D\x58 |0
+<UF62D> \x8D\x59 |0
+<UF62E> \x8D\x5A |0
+<UF62F> \x8D\x5B |0
+<UF630> \x8D\x5C |0
+<UF631> \x8D\x5D |0
+<UF632> \x8D\x5E |0
+<UF633> \x8D\x5F |0
+<UF634> \x8D\x60 |1
+<UF635> \x8D\x61 |1
+<UF636> \x8D\x62 |1
+<UF637> \x8D\x63 |1
+<UF638> \x8D\x64 |1
+<UF639> \x8D\x65 |1
+<UF63A> \x8D\x66 |1
+<UF63B> \x8D\x67 |1
+<UF63C> \x8D\x68 |1
+<UF63D> \x8D\x69 |1
+<UF63E> \x8D\x6A |1
+<UF63F> \x8D\x6B |1
+<UF640> \x8D\x6C |1
+<UF641> \x8D\x6D |1
+<UF642> \x8D\x6E |1
+<UF643> \x8D\x6F |1
+<UF644> \x8D\x70 |1
+<UF645> \x8D\x71 |1
+<UF646> \x8D\x72 |1
+<UF647> \x8D\x73 |1
+<UF648> \x8D\x74 |1
+<UF649> \x8D\x75 |1
+<UF64A> \x8D\x76 |1
+<UF64B> \x8D\x77 |1
+<UF64C> \x8D\x78 |1
+<UF64D> \x8D\x79 |1
+<UF64E> \x8D\x7A |1
+<UF64F> \x8D\x7B |1
+<UF650> \x8D\x7C |1
+<UF651> \x8D\x7D |1
+<UF652> \x8D\x7E |1
+<UF653> \x8D\xA1 |1
+<UF654> \x8D\xA2 |1
+<UF655> \x8D\xA3 |1
+<UF656> \x8D\xA4 |1
+<UF657> \x8D\xA5 |1
+<UF658> \x8D\xA6 |1
+<UF659> \x8D\xA7 |1
+<UF65A> \x8D\xA8 |1
+<UF65B> \x8D\xA9 |1
+<UF65C> \x8D\xAA |1
+<UF65D> \x8D\xAB |1
+<UF65E> \x8D\xAC |1
+<UF65F> \x8D\xAD |1
+<UF660> \x8D\xAE |1
+<UF661> \x8D\xAF |1
+<UF662> \x8D\xB0 |1
+<UF663> \x8D\xB1 |1
+<UF664> \x8D\xB2 |1
+<UF665> \x8D\xB3 |1
+<UF666> \x8D\xB4 |1
+<UF667> \x8D\xB5 |1
+<UF668> \x8D\xB6 |1
+<UF669> \x8D\xB7 |1
+<UF66A> \x8D\xB8 |1
+<UF66B> \x8D\xB9 |1
+<UF66C> \x8D\xBA |1
+<UF66D> \x8D\xBB |1
+<UF66E> \x8D\xBC |1
+<UF66F> \x8D\xBD |1
+<UF670> \x8D\xBE |1
+<UF671> \x8D\xBF |1
+<UF672> \x8D\xC0 |1
+<UF673> \x8D\xC1 |1
+<UF674> \x8D\xC2 |1
+<UF675> \x8D\xC3 |1
+<UF676> \x8D\xC4 |1
+<UF677> \x8D\xC5 |1
+<UF678> \x8D\xC6 |1
+<UF679> \x8D\xC7 |1
+<UF67A> \x8D\xC8 |1
+<UF67B> \x8D\xC9 |1
+<UF67C> \x8D\xCA |1
+<UF67D> \x8D\xCB |1
+<UF67E> \x8D\xCC |1
+<UF67F> \x8D\xCD |1
+<UF680> \x8D\xCE |1
+<UF681> \x8D\xCF |1
+<UF682> \x8D\xD0 |1
+<UF683> \x8D\xD1 |1
+<UF684> \x8D\xD2 |1
+<UF685> \x8D\xD3 |1
+<UF686> \x8D\xD4 |1
+<UF687> \x8D\xD5 |1
+<UF688> \x8D\xD6 |1
+<UF689> \x8D\xD7 |1
+<UF68A> \x8D\xD8 |1
+<UF68B> \x8D\xD9 |1
+<UF68C> \x8D\xDA |1
+<UF68D> \x8D\xDB |1
+<UF68E> \x8D\xDC |1
+<UF68F> \x8D\xDD |1
+<UF690> \x8D\xDE |1
+<UF691> \x8D\xDF |1
+<UF692> \x8D\xE0 |1
+<UF693> \x8D\xE1 |1
+<UF694> \x8D\xE2 |0
+<UF695> \x8D\xE3 |1
+<UF696> \x8D\xE4 |1
+<UF697> \x8D\xE5 |1
+<UF698> \x8D\xE6 |1
+<UF699> \x8D\xE7 |1
+<UF69A> \x8D\xE8 |1
+<UF69B> \x8D\xE9 |1
+<UF69C> \x8D\xEA |1
+<UF69D> \x8D\xEB |1
+<UF69E> \x8D\xEC |0
+<UF69F> \x8D\xED |1
+<UF6A0> \x8D\xEE |1
+<UF6A1> \x8D\xEF |1
+<UF6A2> \x8D\xF0 |1
+<UF6A3> \x8D\xF1 |1
+<UF6A4> \x8D\xF2 |1
+<UF6A5> \x8D\xF3 |1
+<UF6A6> \x8D\xF4 |1
+<UF6A7> \x8D\xF5 |1
+<UF6A8> \x8D\xF6 |1
+<UF6A9> \x8D\xF7 |1
+<UF6AA> \x8D\xF8 |1
+<UF6AB> \x8D\xF9 |1
+<UF6AC> \x8D\xFA |1
+<UF6AD> \x8D\xFB |0
+<UF6AE> \x8D\xFC |1
+<UF6AF> \x8D\xFD |1
+<UF6B0> \x8D\xFE |0
+<UF6B1> \xC6\xA1 |1
+<UF6B2> \xC6\xA2 |1
+<UF6B3> \xC6\xA3 |1
+<UF6B4> \xC6\xA4 |1
+<UF6B5> \xC6\xA5 |1
+<UF6B6> \xC6\xA6 |1
+<UF6B7> \xC6\xA7 |1
+<UF6B8> \xC6\xA8 |1
+<UF6B9> \xC6\xA9 |1
+<UF6BA> \xC6\xAA |1
+<UF6BB> \xC6\xAB |1
+<UF6BC> \xC6\xAC |1
+<UF6BD> \xC6\xAD |1
+<UF6BE> \xC6\xAE |1
+<UF6BF> \xC6\xAF |1
+<UF6C0> \xC6\xB0 |1
+<UF6C1> \xC6\xB1 |1
+<UF6C2> \xC6\xB2 |1
+<UF6C3> \xC6\xB3 |1
+<UF6C4> \xC6\xB4 |1
+<UF6C5> \xC6\xB5 |1
+<UF6C6> \xC6\xB6 |1
+<UF6C7> \xC6\xB7 |1
+<UF6C8> \xC6\xB8 |1
+<UF6C9> \xC6\xB9 |1
+<UF6CA> \xC6\xBA |1
+<UF6CB> \xC6\xBB |1
+<UF6CC> \xC6\xBC |1
+<UF6CD> \xC6\xBD |1
+<UF6CE> \xC6\xBE |1
+<UF6CF> \xC6\xBF |1
+<UF6D0> \xC6\xC0 |1
+<UF6D1> \xC6\xC1 |1
+<UF6D2> \xC6\xC2 |1
+<UF6D3> \xC6\xC3 |1
+<UF6D4> \xC6\xC4 |1
+<UF6D5> \xC6\xC5 |1
+<UF6D6> \xC6\xC6 |1
+<UF6D7> \xC6\xC7 |1
+<UF6D8> \xC6\xC8 |1
+<UF6D9> \xC6\xC9 |1
+<UF6DA> \xC6\xCA |1
+<UF6DB> \xC6\xCB |1
+<UF6DC> \xC6\xCC |1
+<UF6DD> \xC6\xCD |1
+<UF6DE> \xC6\xCE |1
+<UF6DF> \xC6\xCF |0
+<UF6E0> \xC6\xD0 |1
+<UF6E1> \xC6\xD1 |1
+<UF6E2> \xC6\xD2 |1
+<UF6E3> \xC6\xD3 |0
+<UF6E4> \xC6\xD4 |1
+<UF6E5> \xC6\xD5 |0
+<UF6E6> \xC6\xD6 |1
+<UF6E7> \xC6\xD7 |0
+<UF6E8> \xC6\xD8 |1
+<UF6E9> \xC6\xD9 |1
+<UF6EA> \xC6\xDA |1
+<UF6EB> \xC6\xDB |1
+<UF6EC> \xC6\xDC |1
+<UF6ED> \xC6\xDD |1
+<UF6EE> \xC6\xDE |0
+<UF6EF> \xC6\xDF |0
+<UF6F0> \xC6\xE0 |1
+<UF6F1> \xC6\xE1 |1
+<UF6F2> \xC6\xE2 |1
+<UF6F3> \xC6\xE3 |1
+<UF6F4> \xC6\xE4 |1
+<UF6F5> \xC6\xE5 |1
+<UF6F6> \xC6\xE6 |1
+<UF6F7> \xC6\xE7 |1
+<UF6F8> \xC6\xE8 |1
+<UF6F9> \xC6\xE9 |1
+<UF6FA> \xC6\xEA |1
+<UF6FB> \xC6\xEB |1
+<UF6FC> \xC6\xEC |1
+<UF6FD> \xC6\xED |1
+<UF6FE> \xC6\xEE |1
+<UF6FF> \xC6\xEF |1
+<UF700> \xC6\xF0 |1
+<UF701> \xC6\xF1 |1
+<UF702> \xC6\xF2 |1
+<UF703> \xC6\xF3 |1
+<UF704> \xC6\xF4 |1
+<UF705> \xC6\xF5 |1
+<UF706> \xC6\xF6 |1
+<UF707> \xC6\xF7 |1
+<UF708> \xC6\xF8 |1
+<UF709> \xC6\xF9 |1
+<UF70A> \xC6\xFA |1
+<UF70B> \xC6\xFB |1
+<UF70C> \xC6\xFC |1
+<UF70D> \xC6\xFD |1
+<UF70E> \xC6\xFE |1
+<UF70F> \xC7\x40 |1
+<UF710> \xC7\x41 |1
+<UF711> \xC7\x42 |1
+<UF712> \xC7\x43 |1
+<UF713> \xC7\x44 |1
+<UF714> \xC7\x45 |1
+<UF715> \xC7\x46 |1
+<UF716> \xC7\x47 |1
+<UF717> \xC7\x48 |1
+<UF718> \xC7\x49 |1
+<UF719> \xC7\x4A |1
+<UF71A> \xC7\x4B |1
+<UF71B> \xC7\x4C |1
+<UF71C> \xC7\x4D |1
+<UF71D> \xC7\x4E |1
+<UF71E> \xC7\x4F |1
+<UF71F> \xC7\x50 |1
+<UF720> \xC7\x51 |1
+<UF721> \xC7\x52 |1
+<UF722> \xC7\x53 |1
+<UF723> \xC7\x54 |1
+<UF724> \xC7\x55 |1
+<UF725> \xC7\x56 |1
+<UF726> \xC7\x57 |1
+<UF727> \xC7\x58 |1
+<UF728> \xC7\x59 |1
+<UF729> \xC7\x5A |1
+<UF72A> \xC7\x5B |1
+<UF72B> \xC7\x5C |1
+<UF72C> \xC7\x5D |1
+<UF72D> \xC7\x5E |1
+<UF72E> \xC7\x5F |1
+<UF72F> \xC7\x60 |1
+<UF730> \xC7\x61 |1
+<UF731> \xC7\x62 |1
+<UF732> \xC7\x63 |1
+<UF733> \xC7\x64 |1
+<UF734> \xC7\x65 |1
+<UF735> \xC7\x66 |1
+<UF736> \xC7\x67 |1
+<UF737> \xC7\x68 |1
+<UF738> \xC7\x69 |1
+<UF739> \xC7\x6A |1
+<UF73A> \xC7\x6B |1
+<UF73B> \xC7\x6C |1
+<UF73C> \xC7\x6D |1
+<UF73D> \xC7\x6E |1
+<UF73E> \xC7\x6F |1
+<UF73F> \xC7\x70 |1
+<UF740> \xC7\x71 |1
+<UF741> \xC7\x72 |1
+<UF742> \xC7\x73 |1
+<UF743> \xC7\x74 |1
+<UF744> \xC7\x75 |1
+<UF745> \xC7\x76 |1
+<UF746> \xC7\x77 |1
+<UF747> \xC7\x78 |1
+<UF748> \xC7\x79 |1
+<UF749> \xC7\x7A |1
+<UF74A> \xC7\x7B |1
+<UF74B> \xC7\x7C |1
+<UF74C> \xC7\x7D |1
+<UF74D> \xC7\x7E |1
+<UF74E> \xC7\xA1 |1
+<UF74F> \xC7\xA2 |1
+<UF750> \xC7\xA3 |1
+<UF751> \xC7\xA4 |1
+<UF752> \xC7\xA5 |1
+<UF753> \xC7\xA6 |1
+<UF754> \xC7\xA7 |1
+<UF755> \xC7\xA8 |1
+<UF756> \xC7\xA9 |1
+<UF757> \xC7\xAA |1
+<UF758> \xC7\xAB |1
+<UF759> \xC7\xAC |1
+<UF75A> \xC7\xAD |1
+<UF75B> \xC7\xAE |1
+<UF75C> \xC7\xAF |1
+<UF75D> \xC7\xB0 |1
+<UF75E> \xC7\xB1 |1
+<UF75F> \xC7\xB2 |1
+<UF760> \xC7\xB3 |1
+<UF761> \xC7\xB4 |1
+<UF762> \xC7\xB5 |1
+<UF763> \xC7\xB6 |1
+<UF764> \xC7\xB7 |1
+<UF765> \xC7\xB8 |1
+<UF766> \xC7\xB9 |1
+<UF767> \xC7\xBA |1
+<UF768> \xC7\xBB |1
+<UF769> \xC7\xBC |1
+<UF76A> \xC7\xBD |1
+<UF76B> \xC7\xBE |1
+<UF76C> \xC7\xBF |1
+<UF76D> \xC7\xC0 |1
+<UF76E> \xC7\xC1 |1
+<UF76F> \xC7\xC2 |1
+<UF770> \xC7\xC3 |1
+<UF771> \xC7\xC4 |1
+<UF772> \xC7\xC5 |1
+<UF773> \xC7\xC6 |1
+<UF774> \xC7\xC7 |1
+<UF775> \xC7\xC8 |1
+<UF776> \xC7\xC9 |1
+<UF777> \xC7\xCA |1
+<UF778> \xC7\xCB |1
+<UF779> \xC7\xCC |1
+<UF77A> \xC7\xCD |1
+<UF77B> \xC7\xCE |1
+<UF77C> \xC7\xCF |1
+<UF77D> \xC7\xD0 |1
+<UF77E> \xC7\xD1 |1
+<UF77F> \xC7\xD2 |1
+<UF780> \xC7\xD3 |1
+<UF781> \xC7\xD4 |1
+<UF782> \xC7\xD5 |1
+<UF783> \xC7\xD6 |1
+<UF784> \xC7\xD7 |1
+<UF785> \xC7\xD8 |1
+<UF786> \xC7\xD9 |1
+<UF787> \xC7\xDA |1
+<UF788> \xC7\xDB |1
+<UF789> \xC7\xDC |1
+<UF78A> \xC7\xDD |1
+<UF78B> \xC7\xDE |1
+<UF78C> \xC7\xDF |1
+<UF78D> \xC7\xE0 |1
+<UF78E> \xC7\xE1 |1
+<UF78F> \xC7\xE2 |1
+<UF790> \xC7\xE3 |1
+<UF791> \xC7\xE4 |1
+<UF792> \xC7\xE5 |1
+<UF793> \xC7\xE6 |1
+<UF794> \xC7\xE7 |1
+<UF795> \xC7\xE8 |1
+<UF796> \xC7\xE9 |1
+<UF797> \xC7\xEA |1
+<UF798> \xC7\xEB |1
+<UF799> \xC7\xEC |1
+<UF79A> \xC7\xED |1
+<UF79B> \xC7\xEE |1
+<UF79C> \xC7\xEF |1
+<UF79D> \xC7\xF0 |1
+<UF79E> \xC7\xF1 |1
+<UF79F> \xC7\xF2 |1
+<UF7A0> \xC7\xF3 |1
+<UF7A1> \xC7\xF4 |1
+<UF7A2> \xC7\xF5 |1
+<UF7A3> \xC7\xF6 |1
+<UF7A4> \xC7\xF7 |1
+<UF7A5> \xC7\xF8 |1
+<UF7A6> \xC7\xF9 |1
+<UF7A7> \xC7\xFA |1
+<UF7A8> \xC7\xFB |1
+<UF7A9> \xC7\xFC |1
+<UF7AA> \xC7\xFD |1
+<UF7AB> \xC7\xFE |1
+<UF7AC> \xC8\x40 |1
+<UF7AD> \xC8\x41 |1
+<UF7AE> \xC8\x42 |1
+<UF7AF> \xC8\x43 |1
+<UF7B0> \xC8\x44 |1
+<UF7B1> \xC8\x45 |1
+<UF7B2> \xC8\x46 |1
+<UF7B3> \xC8\x47 |1
+<UF7B4> \xC8\x48 |1
+<UF7B5> \xC8\x49 |1
+<UF7B6> \xC8\x4A |1
+<UF7B7> \xC8\x4B |1
+<UF7B8> \xC8\x4C |1
+<UF7B9> \xC8\x4D |1
+<UF7BA> \xC8\x4E |1
+<UF7BB> \xC8\x4F |1
+<UF7BC> \xC8\x50 |1
+<UF7BD> \xC8\x51 |1
+<UF7BE> \xC8\x52 |1
+<UF7BF> \xC8\x53 |1
+<UF7C0> \xC8\x54 |1
+<UF7C1> \xC8\x55 |1
+<UF7C2> \xC8\x56 |1
+<UF7C3> \xC8\x57 |1
+<UF7C4> \xC8\x58 |1
+<UF7C5> \xC8\x59 |1
+<UF7C6> \xC8\x5A |1
+<UF7C7> \xC8\x5B |1
+<UF7C8> \xC8\x5C |1
+<UF7C9> \xC8\x5D |1
+<UF7CA> \xC8\x5E |1
+<UF7CB> \xC8\x5F |1
+<UF7CC> \xC8\x60 |1
+<UF7CD> \xC8\x61 |1
+<UF7CE> \xC8\x62 |1
+<UF7CF> \xC8\x63 |1
+<UF7D0> \xC8\x64 |1
+<UF7D1> \xC8\x65 |1
+<UF7D2> \xC8\x66 |1
+<UF7D3> \xC8\x67 |1
+<UF7D4> \xC8\x68 |1
+<UF7D5> \xC8\x69 |1
+<UF7D6> \xC8\x6A |1
+<UF7D7> \xC8\x6B |1
+<UF7D8> \xC8\x6C |1
+<UF7D9> \xC8\x6D |1
+<UF7DA> \xC8\x6E |1
+<UF7DB> \xC8\x6F |1
+<UF7DC> \xC8\x70 |1
+<UF7DD> \xC8\x71 |1
+<UF7DE> \xC8\x72 |1
+<UF7DF> \xC8\x73 |1
+<UF7E0> \xC8\x74 |1
+<UF7E1> \xC8\x75 |1
+<UF7E2> \xC8\x76 |1
+<UF7E3> \xC8\x77 |1
+<UF7E4> \xC8\x78 |1
+<UF7E5> \xC8\x79 |0
+<UF7E6> \xC8\x7A |0
+<UF7E7> \xC8\x7B |1
+<UF7E8> \xC8\x7C |0
+<UF7E9> \xC8\x7D |1
+<UF7EA> \xC8\x7E |0
+<UF7EB> \xC8\xA1 |0
+<UF7EC> \xC8\xA2 |1
+<UF7ED> \xC8\xA3 |0
+<UF7EE> \xC8\xA4 |0
+<UF7EF> \xC8\xA5 |0
+<UF7F0> \xC8\xA6 |0
+<UF7F1> \xC8\xA7 |0
+<UF7F2> \xC8\xA8 |0
+<UF7F3> \xC8\xA9 |0
+<UF7F4> \xC8\xAA |0
+<UF7F5> \xC8\xAB |0
+<UF7F6> \xC8\xAC |0
+<UF7F7> \xC8\xAD |0
+<UF7F8> \xC8\xAE |0
+<UF7F9> \xC8\xAF |0
+<UF7FA> \xC8\xB0 |0
+<UF7FB> \xC8\xB1 |0
+<UF7FC> \xC8\xB2 |0
+<UF7FD> \xC8\xB3 |0
+<UF7FE> \xC8\xB4 |0
+<UF7FF> \xC8\xB5 |0
+<UF800> \xC8\xB6 |0
+<UF801> \xC8\xB7 |0
+<UF802> \xC8\xB8 |0
+<UF803> \xC8\xB9 |0
+<UF804> \xC8\xBA |0
+<UF805> \xC8\xBB |0
+<UF806> \xC8\xBC |0
+<UF807> \xC8\xBD |0
+<UF808> \xC8\xBE |0
+<UF809> \xC8\xBF |0
+<UF80A> \xC8\xC0 |0
+<UF80B> \xC8\xC1 |0
+<UF80C> \xC8\xC2 |0
+<UF80D> \xC8\xC3 |0
+<UF80E> \xC8\xC4 |0
+<UF80F> \xC8\xC5 |0
+<UF810> \xC8\xC6 |0
+<UF811> \xC8\xC7 |0
+<UF812> \xC8\xC8 |0
+<UF813> \xC8\xC9 |0
+<UF814> \xC8\xCA |0
+<UF815> \xC8\xCB |0
+<UF816> \xC8\xCC |0
+<UF817> \xC8\xCD |1
+<UF818> \xC8\xCE |1
+<UF819> \xC8\xCF |1
+<UF81A> \xC8\xD0 |1
+<UF81B> \xC8\xD1 |1
+<UF81C> \xC8\xD2 |1
+<UF81D> \xC8\xD3 |1
+<UF81E> \xC8\xD4 |1
+<UF81F> \xC8\xD5 |1
+<UF820> \xC8\xD6 |1
+<UF821> \xC8\xD7 |1
+<UF822> \xC8\xD8 |1
+<UF823> \xC8\xD9 |1
+<UF824> \xC8\xDA |1
+<UF825> \xC8\xDB |1
+<UF826> \xC8\xDC |1
+<UF827> \xC8\xDD |1
+<UF828> \xC8\xDE |1
+<UF829> \xC8\xDF |1
+<UF82A> \xC8\xE0 |1
+<UF82B> \xC8\xE1 |1
+<UF82C> \xC8\xE2 |1
+<UF82D> \xC8\xE3 |1
+<UF82E> \xC8\xE4 |1
+<UF82F> \xC8\xE5 |1
+<UF830> \xC8\xE6 |1
+<UF831> \xC8\xE7 |1
+<UF832> \xC8\xE8 |1
+<UF833> \xC8\xE9 |1
+<UF834> \xC8\xEA |1
+<UF835> \xC8\xEB |1
+<UF836> \xC8\xEC |1
+<UF837> \xC8\xED |1
+<UF838> \xC8\xEE |1
+<UF839> \xC8\xEF |1
+<UF83A> \xC8\xF0 |1
+<UF83B> \xC8\xF1 |1
+<UF83C> \xC8\xF2 |0
+<UF83D> \xC8\xF3 |0
+<UF83E> \xC8\xF4 |0
+<UF83F> \xC8\xF5 |1
+<UF840> \xC8\xF6 |1
+<UF841> \xC8\xF7 |1
+<UF842> \xC8\xF8 |1
+<UF843> \xC8\xF9 |1
+<UF844> \xC8\xFA |1
+<UF845> \xC8\xFB |1
+<UF846> \xC8\xFC |1
+<UF847> \xC8\xFD |1
+<UF848> \xC8\xFE |1
+#<UF8F8> \xFF |0
+<UF900> \xB0\x5A |1
+<UF901> \xA7\xF3 |1
+<UF902> \xA8\xAE |1
+<UF903> \xB8\xEB |1
+<UF904> \xB7\xC6 |1
+<UF905> \xA6\xEA |1
+<UF906> \xA5\x79 |1
+<UF907> \x8B\xF8 |0
+<UF908> \xC0\x74 |1
+<UF909> \xAB\xB4 |1
+<UF90A> \xAA\xF7 |1
+<UF90B> \xB3\xE2 |1
+<UF90C> \xA9\x60 |1
+<UF90D> \xC3\x69 |1
+<UF90E> \xC4\xEE |1
+<UF90F> \xC3\xB9 |1
+<UF910> \xC5\xDA |1
+<UF911> \xC1\xB3 |1
+<UF912> \xBB\x72 |1
+<UF913> \xC5\xDE |1
+<UF914> \xBC\xD6 |1
+<UF915> \xAC\xA5 |1
+<UF916> \xAF\x4F |1
+<UF917> \xAF\x5F |1
+<UF918> \xB8\xA8 |1
+<UF919> \xB9\x54 |1
+<UF91A> \xC0\x64 |1
+<UF91B> \xB6\xC3 |1
+<UF91C> \xA7\x5A |1
+<UF91D> \xC4\xE6 |1
+<UF91E> \xC4\xEA |1
+<UF91F> \xC4\xF5 |1
+<UF920> \xC6\x7D |1
+<UF921> \xB4\x50 |1
+<UF922> \xC0\xDD |1
+<UF923> \xC2\xC5 |1
+<UF924> \xC4\xB0 |1
+<UF925> \xA9\xD4 |1
+<UF926> \xC3\xBE |1
+<UF927> \xC4\xFA |1
+<UF928> \xB4\x59 |1
+<UF929> \xAE\xD4 |1
+<UF92A> \xAE\xF6 |1
+<UF92B> \xAF\x54 |1
+<UF92D> \xA8\xD3 |1
+<UF92E> \xA7\x4E |1
+<UF92F> \xB3\xD2 |1
+<UF930> \xBE\xDB |1
+<UF931> \xC3\x72 |1
+<UF932> \xC4\x6C |1
+<UF933> \xBF\x63 |1
+<UF934> \xA6\xD1 |1
+<UF935> \xC4\xAA |1
+<UF936> \xB8\xB8 |1
+<UF937> \xB8\xF4 |1
+<UF938> \xC5\x53 |1
+<UF939> \xBE\x7C |1
+<UF93A> \xC6\x4F |1
+<UF93B> \xB8\x4C |1
+<UF93C> \xB8\x53 |1
+<UF93D> \xBA\xF1 |1
+<UF93E> \xDB\x77 |1
+<UF93F> \xBF\xFD |1
+<UF940> \xB3\xC0 |1
+<UF941> \xBD\xD7 |1
+<UF942> \xC3\x62 |1
+<UF943> \xA7\xCB |1
+<UF944> \xC5\xA2 |1
+<UF945> \xC5\xA4 |1
+<UF946> \xA8\x63 |1
+<UF947> \xBD\x55 |1
+<UF948> \xB8\xEF |1
+<UF949> \xB9\x70 |1
+<UF94A> \xC2\x53 |1
+<UF94B> \xB9\xF0 |1
+<UF94C> \xBC\xD3 |1
+<UF94D> \xB2\x5C |1
+<UF94E> \xBA\x7C |1
+<UF94F> \xB2\xD6 |1
+<UF950> \xC1\x5C |1
+<UF951> \xAD\xAE |1
+<UF952> \xB0\xC7 |1
+<UF953> \xA6\xD8 |1
+<UF954> \xBB\xFE |1
+<UF955> \xAD\xE2 |1
+<UF956> \xB8\x57 |1
+<UF957> \xBA\xF0 |1
+<UF958> \xB5\xD9 |1
+<UF959> \xB3\xAE |1
+<UF95A> \xC5\xAA |1
+<UF95B> \xCE\xD4 |1
+<UF95C> \xBC\xD6 |1
+<UF95D> \xBF\xD5 |1
+<UF95E> \xA4\xA6 |1
+<UF95F> \xB9\xE7 |1
+<UF960> \xAB\xE3 |1
+<UF961> \xB2\x76 |1
+<UF962> \xB2\xA7 |1
+<UF963> \xA5\x5F |1
+<UF964> \xED\xA8 |1
+<UF965> \xAB\x4B |1
+<UF966> \xB4\x5F |1
+<UF967> \xA4\xA3 |1
+<UF968> \xAA\x63 |1
+<UF969> \xBC\xC6 |1
+<UF96A> \xAF\xC1 |1
+<UF96B> \xB0\xD1 |1
+<UF96C> \xB6\xEB |1
+<UF96D> \xAC\xD9 |1
+<UF96E> \xB8\xAD |1
+<UF96F> \xBB\xA1 |1
+<UF970> \xB1\xFE |1
+<UF971> \xA8\xB0 |1
+<UF972> \xA8\x48 |1
+<UF973> \xAC\x42 |1
+<UF974> \xAD\x59 |1
+<UF975> \xB1\xB0 |1
+<UF976> \xB2\xA4 |1
+<UF977> \xAB\x47 |1
+<UF978> \xA8\xE2 |1
+<UF97A> \xB1\xE7 |1
+<UF97B> \xC2\xB3 |1
+<UF97C> \xA8\x7D |1
+<UF97D> \xBD\xCC |1
+<UF97E> \xB6\x71 |1
+<UF97F> \xC0\x79 |1
+<UF980> \xA7\x66 |1
+<UF981> \xA4\x6B |1
+<UF982> \xC3\x66 |1
+<UF983> \xAE\xC8 |1
+<UF984> \xC2\x6F |1
+<UF985> \xC4\x72 |1
+<UF986> \xBE\x5B |1
+<UF987> \xC6\x7A |1
+<UF988> \xC4\x52 |1
+<UF989> \xBE\xA4 |1
+<UF98A> \xA4\x4F |1
+<UF98B> \xBE\xE4 |1
+<UF98C> \xBE\xFA |1
+<UF98D> \xF7\x65 |1
+<UF98E> \xA6\x7E |1
+<UF98F> \xBC\xA6 |1
+<UF990> \xC5\xCA |1
+<UF991> \xBC\xBF |1
+<UF992> \xBA\xA7 |1
+<UF993> \xB7\xD2 |1
+<UF994> \xE6\xA3 |1
+<UF996> \xBD\x6D |1
+<UF997> \xC1\x70 |1
+<UF998> \xBD\xFB |1
+<UF999> \xBD\xAC |1
+<UF99A> \xB3\x73 |1
+<UF99B> \xC1\xE5 |1
+<UF99C> \xA6\x43 |1
+<UF99D> \xA6\x48 |1
+<UF99E> \xAB\x7C |1
+<UF99F> \xAF\x50 |1
+<UF9A0> \xB5\xF5 |1
+<UF9A1> \xBB\xA1 |1
+<UF9A2> \xB7\x47 |1
+<UF9A3> \xA9\xC0 |1
+<UF9A4> \xB1\xC9 |1
+<UF9A5> \xC0\xD4 |1
+<UF9A6> \xC3\xAE |1
+<UF9A7> \xC2\x79 |1
+<UF9A8> \xA5\x4F |1
+<UF9A9> \xCB\xF1 |1
+<UF9AA> \xB9\xE7 |1
+<UF9AB> \xC0\xAD |1
+<UF9AC> \xCC\xB0 |1
+<UF9AD> \xAC\xC2 |1
+<UF9AE> \xBC\xFC |1
+<UF9AF> \xB2\xDC |1
+<UF9B0> \xB2\xE2 |1
+<UF9B1> \xB9\x61 |1
+<UF9B2> \xB9\x73 |1
+<UF9B3> \xC6\x46 |1
+<UF9B4> \xBB\xE2 |1
+<UF9B5> \xA8\xD2 |1
+<UF9B6> \xC2\xA7 |1
+<UF9B7> \xC4\xBF |1
+<UF9B8> \xC1\xF5 |1
+<UF9B9> \xB4\x63 |1
+<UF9BA> \xA4\x46 |1
+<UF9BB> \xB9\xB1 |1
+<UF9BC> \xBC\x64 |1
+<UF9BD> \xA7\xBF |1
+<UF9BE> \xAE\xC6 |1
+<UF9BF> \xBC\xD6 |1
+<UF9C0> \xBF\x52 |1
+<UF9C1> \xC0\xF8 |1
+<UF9C2> \xE7\x64 |1
+<UF9C3> \xBF\xF1 |1
+<UF9C4> \xC0\x73 |1
+<UF9C5> \xB7\x77 |1
+<UF9C6> \xA8\xBF |1
+<UF9C7> \xBC\x42 |1
+<UF9C8> \xCC\xD8 |1
+<UF9C9> \xAC\x68 |1
+<UF9CA> \xAC\x79 |1
+<UF9CB> \xB7\xC8 |1
+<UF9CC> \xAF\x5B |1
+<UF9CD> \xAF\x64 |1
+<UF9CE> \xB2\xB8 |1
+<UF9CF> \xAF\xC3 |1
+<UF9D0> \xC3\xFE |1
+<UF9D1> \xA4\xBB |1
+<UF9D2> \xBC\xAE |1
+<UF9D3> \xB3\xB0 |1
+<UF9D4> \xAD\xDB |1
+<UF9D5> \xB1\x5B |1
+<UF9D6> \xB2\x5F |1
+<UF9D7> \xBD\xFC |1
+<UF9D8> \xAB\xDF |1
+<UF9D9> \xB7\x58 |1
+<UF9DA> \xAE\xDF |1
+<UF9DB> \xB2\x76 |1
+<UF9DC> \xB6\xA9 |1
+<UF9DD> \xA7\x51 |1
+<UF9DE> \xA6\x4F |1
+<UF9DF> \xBC\x69 |1
+<UF9E0> \xA9\xF6 |1
+<UF9E1> \xA7\xF5 |1
+<UF9E2> \xB1\xF9 |1
+<UF9E3> \xAA\x64 |1
+<UF9E4> \xB2\x7A |1
+<UF9E5> \xB5\x67 |1
+<UF9E6> \xBF\xA9 |1
+<UF9E8> \xB8\xCC |1
+<UF9E9> \xA8\xBD |1
+<UF9EA> \xC2\xF7 |1
+<UF9EB> \xB0\xCE |1
+<UF9EC> \xB7\xC4 |1
+<UF9ED> \xA7\x5B |1
+<UF9EE> \xBF\x4D |1
+<UF9EF> \xBF\x5A |1
+<UF9F0> \xC4\xA9 |1
+<UF9F2> \xC5\xEC |1
+<UF9F3> \xC5\xEF |1
+<UF9F4> \xAA\x4C |1
+<UF9F5> \xB2\x4F |1
+<UF9F6> \xC1\x7B |1
+<UF9F7> \xA5\xDF |1
+<UF9F8> \xB2\xC1 |1
+<UF9F9> \xB2\xC9 |1
+<UF9FA> \xAA\xAC |1
+<UF9FB> \xAA\xA5 |1
+<UF9FC> \xC3\xD1 |1
+<UF9FD> \xA4\xB0 |1
+<UF9FE> \xAF\xF9 |1
+<UF9FF> \xA8\xEB |1
+<UFA00> \xA4\xC1 |1
+<UFA01> \xAB\xD7 |1
+<UFA02> \xA9\xDD |1
+<UFA03> \xBF\x7D |1
+<UFA04> \xA6\x76 |1
+<UFA05> \xAC\x7D |1
+<UFA06> \xBC\xC9 |1
+<UFA07> \xBF\xE7 |1
+<UFA08> \xA6\xE6 |1
+<UFA09> \xAD\xB0 |1
+<UFA0A> \xA8\xA3 |1
+<UFA0B> \xB9\xF8 |1
+<UFA0C> \xC9\x4A |0
+<UFA0D> \xDD\xFC |0
+<UFA10> \xB6\xEF |1
+<UFA12> \xB4\xB8 |1
+<UFA15> \xE8\xF9 |1
+<UFA16> \xBD\xDE |1
+<UFA17> \xAF\x71 |1
+<UFA19> \xAF\xAB |1
+<UFA1A> \xB2\xBB |1
+<UFA1B> \xBA\xD6 |1
+<UFA1C> \xB9\x74 |1
+<UFA1D> \xBA\xEB |1
+<UFA1E> \xA6\xD0 |1
+<UFA22> \xBD\xD1 |1
+<UFA25> \xB6\x68 |1
+<UFA26> \xB3\xA3 |1
+<UFA2A> \xB6\xBA |1
+<UFA2B> \xB9\x7D |1
+<UFA2C> \xC0\x5D |1
+<UFA2D> \xC5\x62 |1
+<UFE30> \xA1\x4A |0
+<UFE31> \xA1\x57 |0
+<UFE33> \xA1\x59 |0
+<UFE34> \xA1\x5B |0
+<UFE35> \xA1\x5F |0
+<UFE36> \xA1\x60 |0
+<UFE37> \xA1\x63 |0
+<UFE38> \xA1\x64 |0
+<UFE39> \xA1\x67 |0
+<UFE3A> \xA1\x68 |0
+<UFE3B> \xA1\x6B |0
+<UFE3C> \xA1\x6C |0
+<UFE3D> \xA1\x6F |0
+<UFE3E> \xA1\x70 |0
+<UFE3F> \xA1\x73 |0
+<UFE40> \xA1\x74 |0
+<UFE41> \xA1\x77 |0
+<UFE42> \xA1\x78 |0
+<UFE43> \xA1\x7B |0
+<UFE44> \xA1\x7C |0
+<UFE49> \xA1\xC6 |0
+<UFE4A> \xA1\xC7 |0
+<UFE4B> \xA1\xCA |0
+<UFE4C> \xA1\xCB |0
+<UFE4D> \xA1\xC8 |0
+<UFE4E> \xA1\xC9 |0
+<UFE4F> \xA1\x5C |0
+<UFE50> \xA1\x4D |0
+<UFE51> \xA1\x4E |0
+<UFE52> \xA1\x4F |0
+<UFE54> \xA1\x51 |0
+<UFE55> \xA1\x52 |0
+<UFE56> \xA1\x53 |0
+<UFE57> \xA1\x54 |0
+<UFE59> \xA1\x7D |0
+<UFE5A> \xA1\x7E |0
+<UFE5B> \xA1\xA1 |0
+<UFE5C> \xA1\xA2 |0
+<UFE5D> \xA1\xA3 |0
+<UFE5E> \xA1\xA4 |0
+<UFE5F> \xA1\xCC |0
+<UFE60> \xA1\xCD |0
+<UFE61> \xA1\xCE |0
+<UFE62> \xA1\xDE |0
+<UFE63> \xA1\xDF |0
+<UFE64> \xA1\xE0 |0
+<UFE65> \xA1\xE1 |0
+<UFE66> \xA1\xE2 |0
+<UFE68> \xA2\x42 |0
+<UFE69> \xA2\x4C |0
+<UFE6A> \xA2\x4D |0
+<UFE6B> \xA2\x4E |0
+<UFF01> \xA1\x49 |0
+<UFF02> \xC8\xD0 |0
+<UFF03> \xA1\xAD |0
+<UFF04> \xA2\x43 |0
+<UFF05> \xA2\x48 |0
+<UFF06> \xA1\xAE |0
+<UFF07> \xC8\xCF |0
+<UFF08> \xA1\x5D |0
+<UFF09> \xA1\x5E |0
+<UFF0A> \xA1\xAF |0
+<UFF0B> \xA1\xCF |0
+<UFF0C> \xA1\x41 |0
+<UFF0D> \xA1\xD0 |0
+<UFF0E> \xA1\x44 |0
+<UFF0F> \xA1\xFE |0
+<UFF10> \xA2\xAF |0
+<UFF11> \xA2\xB0 |0
+<UFF12> \xA2\xB1 |0
+<UFF13> \xA2\xB2 |0
+<UFF14> \xA2\xB3 |0
+<UFF15> \xA2\xB4 |0
+<UFF16> \xA2\xB5 |0
+<UFF17> \xA2\xB6 |0
+<UFF18> \xA2\xB7 |0
+<UFF19> \xA2\xB8 |0
+<UFF1A> \xA1\x47 |0
+<UFF1B> \xA1\x46 |0
+<UFF1C> \xA1\xD5 |0
+<UFF1D> \xA1\xD7 |0
+<UFF1E> \xA1\xD6 |0
+<UFF1F> \xA1\x48 |0
+<UFF20> \xA2\x49 |0
+<UFF21> \xA2\xCF |0
+<UFF22> \xA2\xD0 |0
+<UFF23> \xA2\xD1 |0
+<UFF24> \xA2\xD2 |0
+<UFF25> \xA2\xD3 |0
+<UFF26> \xA2\xD4 |0
+<UFF27> \xA2\xD5 |0
+<UFF28> \xA2\xD6 |0
+<UFF29> \xA2\xD7 |0
+<UFF2A> \xA2\xD8 |0
+<UFF2B> \xA2\xD9 |0
+<UFF2C> \xA2\xDA |0
+<UFF2D> \xA2\xDB |0
+<UFF2E> \xA2\xDC |0
+<UFF2F> \xA2\xDD |0
+<UFF30> \xA2\xDE |0
+<UFF31> \xA2\xDF |0
+<UFF32> \xA2\xE0 |0
+<UFF33> \xA2\xE1 |0
+<UFF34> \xA2\xE2 |0
+<UFF35> \xA2\xE3 |0
+<UFF36> \xA2\xE4 |0
+<UFF37> \xA2\xE5 |0
+<UFF38> \xA2\xE6 |0
+<UFF39> \xA2\xE7 |0
+<UFF3A> \xA2\xE8 |0
+<UFF3B> \xC6\xE4 |0
+<UFF3C> \xA2\x40 |0
+<UFF3D> \xC6\xE5 |0
+<UFF3E> \xA1\x73 |1
+<UFF3F> \xA1\xC4 |0
+<UFF40> \xA1\xA5 |1
+<UFF41> \xA2\xE9 |0
+<UFF42> \xA2\xEA |0
+<UFF43> \xA2\xEB |0
+<UFF44> \xA2\xEC |0
+<UFF45> \xA2\xED |0
+<UFF46> \xA2\xEE |0
+<UFF47> \xA2\xEF |0
+<UFF48> \xA2\xF0 |0
+<UFF49> \xA2\xF1 |0
+<UFF4A> \xA2\xF2 |0
+<UFF4B> \xA2\xF3 |0
+<UFF4C> \xA2\xF4 |0
+<UFF4D> \xA2\xF5 |0
+<UFF4E> \xA2\xF6 |0
+<UFF4F> \xA2\xF7 |0
+<UFF50> \xA2\xF8 |0
+<UFF51> \xA2\xF9 |0
+<UFF52> \xA2\xFA |0
+<UFF53> \xA2\xFB |0
+<UFF54> \xA2\xFC |0
+<UFF55> \xA2\xFD |0
+<UFF56> \xA2\xFE |0
+<UFF57> \xA3\x40 |0
+<UFF58> \xA3\x41 |0
+<UFF59> \xA3\x42 |0
+<UFF5A> \xA3\x43 |0
+<UFF5B> \xA1\x61 |0
+<UFF5C> \xA1\x55 |0
+<UFF5D> \xA1\x62 |0
+<UFF5E> \xA1\xE3 |0
+<UFF64> \xA1\x4E |1
+<UFFE0> \xA2\x46 |0
+<UFFE1> \xA2\x47 |0
+<UFFE2> \xC8\xCD |0
+<UFFE3> \xA1\xC3 |0
+<UFFE4> \xC8\xCE |0
+<UFFE5> \xA2\x44 |0
+<UFFED> \xF9\xFE |0
+#
+END CHARMAP
+#
diff --git a/enc/trans/utf8_mac.trans b/enc/trans/utf8_mac.trans
index 5a12b59f03..8ea0afd73f 100644
--- a/enc/trans/utf8_mac.trans
+++ b/enc/trans/utf8_mac.trans
@@ -52,7 +52,7 @@ struct from_utf8_mac_status {
int end;
int len;
};
-#define buf_length(sp) (sp->len)
+#define buf_length(sp) ((sp)->len)
int
buf_bytesize(struct from_utf8_mac_status *sp)
@@ -85,10 +85,10 @@ buf_shift(struct from_utf8_mac_status *sp)
void
buf_shift_char(struct from_utf8_mac_status *sp)
{
- while (sp->beg != sp->end) {
+ if (sp->beg == sp->end) return;
+ do {
buf_shift(sp);
- if ((sp->buf[sp->beg] & 0xC0) != 0x80) break;
- }
+ } while (sp->beg != sp->end && (sp->buf[sp->beg] & 0xC0) == 0x80);
}
void
@@ -150,10 +150,10 @@ buf_apply(int mode, struct from_utf8_mac_status *sp, unsigned char *o)
next_info = get_info(next_info, sp);
switch (next_info & 0x1F) {
case THREEbt:
- o[n++] = getBT1(next_info);
case TWObt:
+ o[n++] = getBT1(next_info);
o[n++] = getBT2(next_info);
- o[n++] = getBT3(next_info);
+ if (THREEbt == (next_info & 0x1F)) o[n++] = getBT3(next_info);
if (mode == 3) {
buf_clear(sp);
}
@@ -193,21 +193,12 @@ fun_so_from_utf8_mac(void *statep,
unsigned char *o, size_t osize)
{
struct from_utf8_mac_status *sp = statep;
- int n = 0;
+ ssize_t n = 0;
switch (l) {
case 1:
n = from_utf8_mac_finish(sp, o, osize);
break;
- case 3:
- if (s[0] == 0xE3 && s[1] == 0x82 && (s[2] == 0x99 || s[2] == 0x9A)) {
- n = from_utf8_mac_finish(sp, o, osize);
- o[n++] = *s++;
- o[n++] = *s++;
- o[n++] = *s++;
- return n;
- }
- break;
case 4:
n = from_utf8_mac_finish(sp, o, osize);
o[n++] = *s++;
diff --git a/enc/trans/utf_16_32.trans b/enc/trans/utf_16_32.trans
index 1bf6ed0975..c841df035f 100644
--- a/enc/trans/utf_16_32.trans
+++ b/enc/trans/utf_16_32.trans
@@ -22,6 +22,14 @@
transcode_generate_node(ActionMap.parse(map), "from_UTF_32BE")
map = {}
+ map["{00-ff}{00-ff}"] = :func_si
+ transcode_generate_node(ActionMap.parse(map), "from_UTF_16")
+
+ map = {}
+ map["{00-ff}{00-ff}{00-ff}{00-ff}"] = :func_si
+ transcode_generate_node(ActionMap.parse(map), "from_UTF_32")
+
+ map = {}
map["{00-7f}"] = :func_so
map["{c2-df}{80-bf}"] = :func_so
map["e0{a0-bf}{80-bf}"] = :func_so
@@ -259,6 +267,134 @@ fun_so_to_utf_32le(void *statep, const unsigned char *s, size_t l, unsigned char
return 4;
}
+static int
+state_init(void *statep)
+{
+ unsigned char *sp = statep;
+ *sp = 0;
+ return 0;
+}
+
+static VALUE
+fun_si_from_utf_16(void *statep, const unsigned char *s, size_t l)
+{
+ #define BE 1
+ #define LE 2
+ unsigned char *sp = statep;
+ switch (*sp) {
+ case 0:
+ if (s[0] == 0xFE && s[1] == 0xFF) {
+ *sp = BE;
+ return ZERObt;
+ }
+ else if (s[0] == 0xFF && s[1] == 0xFE) {
+ *sp = LE;
+ return ZERObt;
+ }
+ break;
+ case BE:
+ if (s[0] < 0xD8 || 0xDF < s[0]) {
+ return (VALUE)FUNso;
+ }
+ else if (s[0] <= 0xDB) {
+ return (VALUE)from_UTF_16BE_D8toDB_00toFF;
+ }
+ break;
+ case LE:
+ if (s[1] < 0xD8 || 0xDF < s[1]) {
+ return (VALUE)FUNso;
+ }
+ else if (s[1] <= 0xDB) {
+ return (VALUE)from_UTF_16LE_00toFF_D8toDB;
+ }
+ break;
+ }
+ return (VALUE)INVALID;
+}
+
+static ssize_t
+fun_so_from_utf_16(void *statep, const unsigned char *s, size_t l, unsigned char *o, size_t osize)
+{
+ unsigned char *sp = statep;
+ switch (*sp) {
+ case BE:
+ return fun_so_from_utf_16be(statep, s, l, o, osize);
+ case LE:
+ return fun_so_from_utf_16le(statep, s, l, o, osize);
+ }
+ return 0;
+}
+
+static VALUE
+fun_si_from_utf_32(void *statep, const unsigned char *s, size_t l)
+{
+ unsigned char *sp = statep;
+ switch (*sp) {
+ case 0:
+ if (s[0] == 0 && s[1] == 0 && s[2] == 0xFE && s[3] == 0xFF) {
+ *sp = BE;
+ return ZERObt;
+ }
+ else if (s[0] == 0xFF && s[1] == 0xFE && s[2] == 0 && s[3] == 0) {
+ *sp = LE;
+ return ZERObt;
+ }
+ break;
+ case BE:
+ if (s[0] == 0 && ((0 < s[1] && s[1] <= 0x10) ||
+ (s[1] == 0 && (s[2] < 0xD8 || 0xDF < s[2]))))
+ return (VALUE)FUNso;
+ break;
+ case LE:
+ if (s[3] == 0 && ((0 < s[2] && s[2] <= 0x10) ||
+ (s[2] == 0 && (s[1] < 0xD8 || 0xDF < s[1]))))
+ return (VALUE)FUNso;
+ break;
+ }
+ return (VALUE)INVALID;
+}
+
+static ssize_t
+fun_so_from_utf_32(void *statep, const unsigned char *s, size_t l, unsigned char *o, size_t osize)
+{
+ unsigned char *sp = statep;
+ switch (*sp) {
+ case BE:
+ return fun_so_from_utf_32be(statep, s, l, o, osize);
+ case LE:
+ return fun_so_from_utf_32le(statep, s, l, o, osize);
+ }
+ return 0;
+}
+
+static ssize_t
+fun_so_to_utf_16(void *statep, const unsigned char *s, size_t l, unsigned char *o, size_t osize)
+{
+ unsigned char *sp = statep;
+ if (*sp == 0) {
+ *o++ = 0xFE;
+ *o++ = 0xFF;
+ *sp = 1;
+ return 2 + fun_so_to_utf_16be(statep, s, l, o, osize);
+ }
+ return fun_so_to_utf_16be(statep, s, l, o, osize);
+}
+
+static ssize_t
+fun_so_to_utf_32(void *statep, const unsigned char *s, size_t l, unsigned char *o, size_t osize)
+{
+ unsigned char *sp = statep;
+ if (*sp == 0) {
+ *o++ = 0x00;
+ *o++ = 0x00;
+ *o++ = 0xFE;
+ *o++ = 0xFF;
+ *sp = 1;
+ return 4 + fun_so_to_utf_32be(statep, s, l, o, osize);
+ }
+ return fun_so_to_utf_32be(statep, s, l, o, osize);
+}
+
static const rb_transcoder
rb_from_UTF_16BE = {
"UTF-16BE", "UTF-8", from_UTF_16BE,
@@ -355,6 +491,54 @@ rb_to_UTF_32LE = {
NULL, NULL, NULL, fun_so_to_utf_32le
};
+static const rb_transcoder
+rb_from_UTF_16 = {
+ "UTF-16", "UTF-8", from_UTF_16,
+ TRANSCODE_TABLE_INFO,
+ 2, /* input_unit_length */
+ 4, /* max_input */
+ 4, /* max_output */
+ asciicompat_decoder, /* asciicompat_type */
+ 1, state_init, NULL, /* state_size, state_init, state_fini */
+ NULL, fun_si_from_utf_16, NULL, fun_so_from_utf_16
+};
+
+static const rb_transcoder
+rb_from_UTF_32 = {
+ "UTF-32", "UTF-8", from_UTF_32,
+ TRANSCODE_TABLE_INFO,
+ 4, /* input_unit_length */
+ 4, /* max_input */
+ 4, /* max_output */
+ asciicompat_decoder, /* asciicompat_type */
+ 1, state_init, NULL, /* state_size, state_init, state_fini */
+ NULL, fun_si_from_utf_32, NULL, fun_so_from_utf_32
+};
+
+static const rb_transcoder
+rb_to_UTF_16 = {
+ "UTF-8", "UTF-16", from_UTF_8,
+ TRANSCODE_TABLE_INFO,
+ 1, /* input_unit_length */
+ 4, /* max_input */
+ 4, /* max_output */
+ asciicompat_encoder, /* asciicompat_type */
+ 1, state_init, NULL, /* state_size, state_init, state_fini */
+ NULL, NULL, NULL, fun_so_to_utf_16
+};
+
+static const rb_transcoder
+rb_to_UTF_32 = {
+ "UTF-8", "UTF-32", from_UTF_8,
+ TRANSCODE_TABLE_INFO,
+ 1, /* input_unit_length */
+ 4, /* max_input */
+ 4, /* max_output */
+ asciicompat_encoder, /* asciicompat_type */
+ 1, state_init, NULL, /* state_size, state_init, state_fini */
+ NULL, NULL, NULL, fun_so_to_utf_32
+};
+
void
Init_utf_16_32(void)
{
@@ -366,4 +550,8 @@ Init_utf_16_32(void)
rb_register_transcoder(&rb_to_UTF_32BE);
rb_register_transcoder(&rb_from_UTF_32LE);
rb_register_transcoder(&rb_to_UTF_32LE);
+ rb_register_transcoder(&rb_from_UTF_16);
+ rb_register_transcoder(&rb_to_UTF_16);
+ rb_register_transcoder(&rb_from_UTF_32);
+ rb_register_transcoder(&rb_to_UTF_32);
}
diff --git a/enc/unicode.c b/enc/unicode.c
index 2dfcbba3f6..beb5fa39f0 100644
--- a/enc/unicode.c
+++ b/enc/unicode.c
@@ -2,7 +2,7 @@
unicode.c - Oniguruma (regular expression library)
**********************************************************************/
/*-
- * Copyright (c) 2002-2007 K.Kosako <sndgk393 AT ybb DOT ne DOT jp>
+ * Copyright (c) 2002-2008 K.Kosako <sndgk393 AT ybb DOT ne DOT jp>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -71,8458 +71,7 @@ static const unsigned short EncUNICODE_ISO_8859_1_CtypeTable[256] = {
0x30e2, 0x30e2, 0x30e2, 0x30e2, 0x30e2, 0x30e2, 0x30e2, 0x30e2
};
-/* 'NEWLINE' */
-static const OnigCodePoint CR_NEWLINE[] = {
- 1,
- 0x000a, 0x000a
-}; /* CR_NEWLINE */
-
-/* 'Alpha': [[:Alpha:]] */
-static const OnigCodePoint CR_Alpha[] = {
- 418,
- 0x0041, 0x005a,
- 0x0061, 0x007a,
- 0x00aa, 0x00aa,
- 0x00b5, 0x00b5,
- 0x00ba, 0x00ba,
- 0x00c0, 0x00d6,
- 0x00d8, 0x00f6,
- 0x00f8, 0x0241,
- 0x0250, 0x02c1,
- 0x02c6, 0x02d1,
- 0x02e0, 0x02e4,
- 0x02ee, 0x02ee,
- 0x0300, 0x036f,
- 0x037a, 0x037a,
- 0x0386, 0x0386,
- 0x0388, 0x038a,
- 0x038c, 0x038c,
- 0x038e, 0x03a1,
- 0x03a3, 0x03ce,
- 0x03d0, 0x03f5,
- 0x03f7, 0x0481,
- 0x0483, 0x0486,
- 0x0488, 0x04ce,
- 0x04d0, 0x04f9,
- 0x0500, 0x050f,
- 0x0531, 0x0556,
- 0x0559, 0x0559,
- 0x0561, 0x0587,
- 0x0591, 0x05b9,
- 0x05bb, 0x05bd,
- 0x05bf, 0x05bf,
- 0x05c1, 0x05c2,
- 0x05c4, 0x05c5,
- 0x05c7, 0x05c7,
- 0x05d0, 0x05ea,
- 0x05f0, 0x05f2,
- 0x0610, 0x0615,
- 0x0621, 0x063a,
- 0x0640, 0x065e,
- 0x066e, 0x06d3,
- 0x06d5, 0x06dc,
- 0x06de, 0x06e8,
- 0x06ea, 0x06ef,
- 0x06fa, 0x06fc,
- 0x06ff, 0x06ff,
- 0x0710, 0x074a,
- 0x074d, 0x076d,
- 0x0780, 0x07b1,
- 0x0901, 0x0939,
- 0x093c, 0x094d,
- 0x0950, 0x0954,
- 0x0958, 0x0963,
- 0x097d, 0x097d,
- 0x0981, 0x0983,
- 0x0985, 0x098c,
- 0x098f, 0x0990,
- 0x0993, 0x09a8,
- 0x09aa, 0x09b0,
- 0x09b2, 0x09b2,
- 0x09b6, 0x09b9,
- 0x09bc, 0x09c4,
- 0x09c7, 0x09c8,
- 0x09cb, 0x09ce,
- 0x09d7, 0x09d7,
- 0x09dc, 0x09dd,
- 0x09df, 0x09e3,
- 0x09f0, 0x09f1,
- 0x0a01, 0x0a03,
- 0x0a05, 0x0a0a,
- 0x0a0f, 0x0a10,
- 0x0a13, 0x0a28,
- 0x0a2a, 0x0a30,
- 0x0a32, 0x0a33,
- 0x0a35, 0x0a36,
- 0x0a38, 0x0a39,
- 0x0a3c, 0x0a3c,
- 0x0a3e, 0x0a42,
- 0x0a47, 0x0a48,
- 0x0a4b, 0x0a4d,
- 0x0a59, 0x0a5c,
- 0x0a5e, 0x0a5e,
- 0x0a70, 0x0a74,
- 0x0a81, 0x0a83,
- 0x0a85, 0x0a8d,
- 0x0a8f, 0x0a91,
- 0x0a93, 0x0aa8,
- 0x0aaa, 0x0ab0,
- 0x0ab2, 0x0ab3,
- 0x0ab5, 0x0ab9,
- 0x0abc, 0x0ac5,
- 0x0ac7, 0x0ac9,
- 0x0acb, 0x0acd,
- 0x0ad0, 0x0ad0,
- 0x0ae0, 0x0ae3,
- 0x0b01, 0x0b03,
- 0x0b05, 0x0b0c,
- 0x0b0f, 0x0b10,
- 0x0b13, 0x0b28,
- 0x0b2a, 0x0b30,
- 0x0b32, 0x0b33,
- 0x0b35, 0x0b39,
- 0x0b3c, 0x0b43,
- 0x0b47, 0x0b48,
- 0x0b4b, 0x0b4d,
- 0x0b56, 0x0b57,
- 0x0b5c, 0x0b5d,
- 0x0b5f, 0x0b61,
- 0x0b71, 0x0b71,
- 0x0b82, 0x0b83,
- 0x0b85, 0x0b8a,
- 0x0b8e, 0x0b90,
- 0x0b92, 0x0b95,
- 0x0b99, 0x0b9a,
- 0x0b9c, 0x0b9c,
- 0x0b9e, 0x0b9f,
- 0x0ba3, 0x0ba4,
- 0x0ba8, 0x0baa,
- 0x0bae, 0x0bb9,
- 0x0bbe, 0x0bc2,
- 0x0bc6, 0x0bc8,
- 0x0bca, 0x0bcd,
- 0x0bd7, 0x0bd7,
- 0x0c01, 0x0c03,
- 0x0c05, 0x0c0c,
- 0x0c0e, 0x0c10,
- 0x0c12, 0x0c28,
- 0x0c2a, 0x0c33,
- 0x0c35, 0x0c39,
- 0x0c3e, 0x0c44,
- 0x0c46, 0x0c48,
- 0x0c4a, 0x0c4d,
- 0x0c55, 0x0c56,
- 0x0c60, 0x0c61,
- 0x0c82, 0x0c83,
- 0x0c85, 0x0c8c,
- 0x0c8e, 0x0c90,
- 0x0c92, 0x0ca8,
- 0x0caa, 0x0cb3,
- 0x0cb5, 0x0cb9,
- 0x0cbc, 0x0cc4,
- 0x0cc6, 0x0cc8,
- 0x0cca, 0x0ccd,
- 0x0cd5, 0x0cd6,
- 0x0cde, 0x0cde,
- 0x0ce0, 0x0ce1,
- 0x0d02, 0x0d03,
- 0x0d05, 0x0d0c,
- 0x0d0e, 0x0d10,
- 0x0d12, 0x0d28,
- 0x0d2a, 0x0d39,
- 0x0d3e, 0x0d43,
- 0x0d46, 0x0d48,
- 0x0d4a, 0x0d4d,
- 0x0d57, 0x0d57,
- 0x0d60, 0x0d61,
- 0x0d82, 0x0d83,
- 0x0d85, 0x0d96,
- 0x0d9a, 0x0db1,
- 0x0db3, 0x0dbb,
- 0x0dbd, 0x0dbd,
- 0x0dc0, 0x0dc6,
- 0x0dca, 0x0dca,
- 0x0dcf, 0x0dd4,
- 0x0dd6, 0x0dd6,
- 0x0dd8, 0x0ddf,
- 0x0df2, 0x0df3,
- 0x0e01, 0x0e3a,
- 0x0e40, 0x0e4e,
- 0x0e81, 0x0e82,
- 0x0e84, 0x0e84,
- 0x0e87, 0x0e88,
- 0x0e8a, 0x0e8a,
- 0x0e8d, 0x0e8d,
- 0x0e94, 0x0e97,
- 0x0e99, 0x0e9f,
- 0x0ea1, 0x0ea3,
- 0x0ea5, 0x0ea5,
- 0x0ea7, 0x0ea7,
- 0x0eaa, 0x0eab,
- 0x0ead, 0x0eb9,
- 0x0ebb, 0x0ebd,
- 0x0ec0, 0x0ec4,
- 0x0ec6, 0x0ec6,
- 0x0ec8, 0x0ecd,
- 0x0edc, 0x0edd,
- 0x0f00, 0x0f00,
- 0x0f18, 0x0f19,
- 0x0f35, 0x0f35,
- 0x0f37, 0x0f37,
- 0x0f39, 0x0f39,
- 0x0f3e, 0x0f47,
- 0x0f49, 0x0f6a,
- 0x0f71, 0x0f84,
- 0x0f86, 0x0f8b,
- 0x0f90, 0x0f97,
- 0x0f99, 0x0fbc,
- 0x0fc6, 0x0fc6,
- 0x1000, 0x1021,
- 0x1023, 0x1027,
- 0x1029, 0x102a,
- 0x102c, 0x1032,
- 0x1036, 0x1039,
- 0x1050, 0x1059,
- 0x10a0, 0x10c5,
- 0x10d0, 0x10fa,
- 0x10fc, 0x10fc,
- 0x1100, 0x1159,
- 0x115f, 0x11a2,
- 0x11a8, 0x11f9,
- 0x1200, 0x1248,
- 0x124a, 0x124d,
- 0x1250, 0x1256,
- 0x1258, 0x1258,
- 0x125a, 0x125d,
- 0x1260, 0x1288,
- 0x128a, 0x128d,
- 0x1290, 0x12b0,
- 0x12b2, 0x12b5,
- 0x12b8, 0x12be,
- 0x12c0, 0x12c0,
- 0x12c2, 0x12c5,
- 0x12c8, 0x12d6,
- 0x12d8, 0x1310,
- 0x1312, 0x1315,
- 0x1318, 0x135a,
- 0x135f, 0x135f,
- 0x1380, 0x138f,
- 0x13a0, 0x13f4,
- 0x1401, 0x166c,
- 0x166f, 0x1676,
- 0x1681, 0x169a,
- 0x16a0, 0x16ea,
- 0x1700, 0x170c,
- 0x170e, 0x1714,
- 0x1720, 0x1734,
- 0x1740, 0x1753,
- 0x1760, 0x176c,
- 0x176e, 0x1770,
- 0x1772, 0x1773,
- 0x1780, 0x17b3,
- 0x17b6, 0x17d3,
- 0x17d7, 0x17d7,
- 0x17dc, 0x17dd,
- 0x180b, 0x180d,
- 0x1820, 0x1877,
- 0x1880, 0x18a9,
- 0x1900, 0x191c,
- 0x1920, 0x192b,
- 0x1930, 0x193b,
- 0x1950, 0x196d,
- 0x1970, 0x1974,
- 0x1980, 0x19a9,
- 0x19b0, 0x19c9,
- 0x1a00, 0x1a1b,
- 0x1d00, 0x1dc3,
- 0x1e00, 0x1e9b,
- 0x1ea0, 0x1ef9,
- 0x1f00, 0x1f15,
- 0x1f18, 0x1f1d,
- 0x1f20, 0x1f45,
- 0x1f48, 0x1f4d,
- 0x1f50, 0x1f57,
- 0x1f59, 0x1f59,
- 0x1f5b, 0x1f5b,
- 0x1f5d, 0x1f5d,
- 0x1f5f, 0x1f7d,
- 0x1f80, 0x1fb4,
- 0x1fb6, 0x1fbc,
- 0x1fbe, 0x1fbe,
- 0x1fc2, 0x1fc4,
- 0x1fc6, 0x1fcc,
- 0x1fd0, 0x1fd3,
- 0x1fd6, 0x1fdb,
- 0x1fe0, 0x1fec,
- 0x1ff2, 0x1ff4,
- 0x1ff6, 0x1ffc,
- 0x2071, 0x2071,
- 0x207f, 0x207f,
- 0x2090, 0x2094,
- 0x20d0, 0x20eb,
- 0x2102, 0x2102,
- 0x2107, 0x2107,
- 0x210a, 0x2113,
- 0x2115, 0x2115,
- 0x2119, 0x211d,
- 0x2124, 0x2124,
- 0x2126, 0x2126,
- 0x2128, 0x2128,
- 0x212a, 0x212d,
- 0x212f, 0x2131,
- 0x2133, 0x2139,
- 0x213c, 0x213f,
- 0x2145, 0x2149,
- 0x2c00, 0x2c2e,
- 0x2c30, 0x2c5e,
- 0x2c80, 0x2ce4,
- 0x2d00, 0x2d25,
- 0x2d30, 0x2d65,
- 0x2d6f, 0x2d6f,
- 0x2d80, 0x2d96,
- 0x2da0, 0x2da6,
- 0x2da8, 0x2dae,
- 0x2db0, 0x2db6,
- 0x2db8, 0x2dbe,
- 0x2dc0, 0x2dc6,
- 0x2dc8, 0x2dce,
- 0x2dd0, 0x2dd6,
- 0x2dd8, 0x2dde,
- 0x3005, 0x3006,
- 0x302a, 0x302f,
- 0x3031, 0x3035,
- 0x303b, 0x303c,
- 0x3041, 0x3096,
- 0x3099, 0x309a,
- 0x309d, 0x309f,
- 0x30a1, 0x30fa,
- 0x30fc, 0x30ff,
- 0x3105, 0x312c,
- 0x3131, 0x318e,
- 0x31a0, 0x31b7,
- 0x31f0, 0x31ff,
- 0x3400, 0x4db5,
- 0x4e00, 0x9fbb,
- 0xa000, 0xa48c,
- 0xa800, 0xa827,
- 0xac00, 0xd7a3,
- 0xf900, 0xfa2d,
- 0xfa30, 0xfa6a,
- 0xfa70, 0xfad9,
- 0xfb00, 0xfb06,
- 0xfb13, 0xfb17,
- 0xfb1d, 0xfb28,
- 0xfb2a, 0xfb36,
- 0xfb38, 0xfb3c,
- 0xfb3e, 0xfb3e,
- 0xfb40, 0xfb41,
- 0xfb43, 0xfb44,
- 0xfb46, 0xfbb1,
- 0xfbd3, 0xfd3d,
- 0xfd50, 0xfd8f,
- 0xfd92, 0xfdc7,
- 0xfdf0, 0xfdfb,
- 0xfe00, 0xfe0f,
- 0xfe20, 0xfe23,
- 0xfe70, 0xfe74,
- 0xfe76, 0xfefc,
- 0xff21, 0xff3a,
- 0xff41, 0xff5a,
- 0xff66, 0xffbe,
- 0xffc2, 0xffc7,
- 0xffca, 0xffcf,
- 0xffd2, 0xffd7,
- 0xffda, 0xffdc,
- 0x10000, 0x1000b,
- 0x1000d, 0x10026,
- 0x10028, 0x1003a,
- 0x1003c, 0x1003d,
- 0x1003f, 0x1004d,
- 0x10050, 0x1005d,
- 0x10080, 0x100fa,
- 0x10300, 0x1031e,
- 0x10330, 0x10349,
- 0x10380, 0x1039d,
- 0x103a0, 0x103c3,
- 0x103c8, 0x103cf,
- 0x10400, 0x1049d,
- 0x10800, 0x10805,
- 0x10808, 0x10808,
- 0x1080a, 0x10835,
- 0x10837, 0x10838,
- 0x1083c, 0x1083c,
- 0x1083f, 0x1083f,
- 0x10a00, 0x10a03,
- 0x10a05, 0x10a06,
- 0x10a0c, 0x10a13,
- 0x10a15, 0x10a17,
- 0x10a19, 0x10a33,
- 0x10a38, 0x10a3a,
- 0x10a3f, 0x10a3f,
- 0x1d165, 0x1d169,
- 0x1d16d, 0x1d172,
- 0x1d17b, 0x1d182,
- 0x1d185, 0x1d18b,
- 0x1d1aa, 0x1d1ad,
- 0x1d242, 0x1d244,
- 0x1d400, 0x1d454,
- 0x1d456, 0x1d49c,
- 0x1d49e, 0x1d49f,
- 0x1d4a2, 0x1d4a2,
- 0x1d4a5, 0x1d4a6,
- 0x1d4a9, 0x1d4ac,
- 0x1d4ae, 0x1d4b9,
- 0x1d4bb, 0x1d4bb,
- 0x1d4bd, 0x1d4c3,
- 0x1d4c5, 0x1d505,
- 0x1d507, 0x1d50a,
- 0x1d50d, 0x1d514,
- 0x1d516, 0x1d51c,
- 0x1d51e, 0x1d539,
- 0x1d53b, 0x1d53e,
- 0x1d540, 0x1d544,
- 0x1d546, 0x1d546,
- 0x1d54a, 0x1d550,
- 0x1d552, 0x1d6a5,
- 0x1d6a8, 0x1d6c0,
- 0x1d6c2, 0x1d6da,
- 0x1d6dc, 0x1d6fa,
- 0x1d6fc, 0x1d714,
- 0x1d716, 0x1d734,
- 0x1d736, 0x1d74e,
- 0x1d750, 0x1d76e,
- 0x1d770, 0x1d788,
- 0x1d78a, 0x1d7a8,
- 0x1d7aa, 0x1d7c2,
- 0x1d7c4, 0x1d7c9,
- 0x20000, 0x2a6d6,
- 0x2f800, 0x2fa1d,
- 0xe0100, 0xe01ef
-}; /* CR_Alpha */
-
-/* 'Blank': [[:Blank:]] */
-static const OnigCodePoint CR_Blank[] = {
- 9,
- 0x0009, 0x0009,
- 0x0020, 0x0020,
- 0x00a0, 0x00a0,
- 0x1680, 0x1680,
- 0x180e, 0x180e,
- 0x2000, 0x200a,
- 0x202f, 0x202f,
- 0x205f, 0x205f,
- 0x3000, 0x3000
-}; /* CR_Blank */
-
-/* 'Cntrl': [[:Cntrl:]] */
-static const OnigCodePoint CR_Cntrl[] = {
- 19,
- 0x0000, 0x001f,
- 0x007f, 0x009f,
- 0x00ad, 0x00ad,
- 0x0600, 0x0603,
- 0x06dd, 0x06dd,
- 0x070f, 0x070f,
- 0x17b4, 0x17b5,
- 0x200b, 0x200f,
- 0x202a, 0x202e,
- 0x2060, 0x2063,
- 0x206a, 0x206f,
- 0xd800, 0xf8ff,
- 0xfeff, 0xfeff,
- 0xfff9, 0xfffb,
- 0x1d173, 0x1d17a,
- 0xe0001, 0xe0001,
- 0xe0020, 0xe007f,
- 0xf0000, 0xffffd,
- 0x100000, 0x10fffd
-}; /* CR_Cntrl */
-
-/* 'Digit': [[:Digit:]] */
-static const OnigCodePoint CR_Digit[] = {
- 23,
- 0x0030, 0x0039,
- 0x0660, 0x0669,
- 0x06f0, 0x06f9,
- 0x0966, 0x096f,
- 0x09e6, 0x09ef,
- 0x0a66, 0x0a6f,
- 0x0ae6, 0x0aef,
- 0x0b66, 0x0b6f,
- 0x0be6, 0x0bef,
- 0x0c66, 0x0c6f,
- 0x0ce6, 0x0cef,
- 0x0d66, 0x0d6f,
- 0x0e50, 0x0e59,
- 0x0ed0, 0x0ed9,
- 0x0f20, 0x0f29,
- 0x1040, 0x1049,
- 0x17e0, 0x17e9,
- 0x1810, 0x1819,
- 0x1946, 0x194f,
- 0x19d0, 0x19d9,
- 0xff10, 0xff19,
- 0x104a0, 0x104a9,
- 0x1d7ce, 0x1d7ff
-}; /* CR_Digit */
-
-/* 'Graph': [[:Graph:]] */
-static const OnigCodePoint CR_Graph[] = {
- 424,
- 0x0021, 0x007e,
- 0x00a1, 0x0241,
- 0x0250, 0x036f,
- 0x0374, 0x0375,
- 0x037a, 0x037a,
- 0x037e, 0x037e,
- 0x0384, 0x038a,
- 0x038c, 0x038c,
- 0x038e, 0x03a1,
- 0x03a3, 0x03ce,
- 0x03d0, 0x0486,
- 0x0488, 0x04ce,
- 0x04d0, 0x04f9,
- 0x0500, 0x050f,
- 0x0531, 0x0556,
- 0x0559, 0x055f,
- 0x0561, 0x0587,
- 0x0589, 0x058a,
- 0x0591, 0x05b9,
- 0x05bb, 0x05c7,
- 0x05d0, 0x05ea,
- 0x05f0, 0x05f4,
- 0x0600, 0x0603,
- 0x060b, 0x0615,
- 0x061b, 0x061b,
- 0x061e, 0x061f,
- 0x0621, 0x063a,
- 0x0640, 0x065e,
- 0x0660, 0x070d,
- 0x070f, 0x074a,
- 0x074d, 0x076d,
- 0x0780, 0x07b1,
- 0x0901, 0x0939,
- 0x093c, 0x094d,
- 0x0950, 0x0954,
- 0x0958, 0x0970,
- 0x097d, 0x097d,
- 0x0981, 0x0983,
- 0x0985, 0x098c,
- 0x098f, 0x0990,
- 0x0993, 0x09a8,
- 0x09aa, 0x09b0,
- 0x09b2, 0x09b2,
- 0x09b6, 0x09b9,
- 0x09bc, 0x09c4,
- 0x09c7, 0x09c8,
- 0x09cb, 0x09ce,
- 0x09d7, 0x09d7,
- 0x09dc, 0x09dd,
- 0x09df, 0x09e3,
- 0x09e6, 0x09fa,
- 0x0a01, 0x0a03,
- 0x0a05, 0x0a0a,
- 0x0a0f, 0x0a10,
- 0x0a13, 0x0a28,
- 0x0a2a, 0x0a30,
- 0x0a32, 0x0a33,
- 0x0a35, 0x0a36,
- 0x0a38, 0x0a39,
- 0x0a3c, 0x0a3c,
- 0x0a3e, 0x0a42,
- 0x0a47, 0x0a48,
- 0x0a4b, 0x0a4d,
- 0x0a59, 0x0a5c,
- 0x0a5e, 0x0a5e,
- 0x0a66, 0x0a74,
- 0x0a81, 0x0a83,
- 0x0a85, 0x0a8d,
- 0x0a8f, 0x0a91,
- 0x0a93, 0x0aa8,
- 0x0aaa, 0x0ab0,
- 0x0ab2, 0x0ab3,
- 0x0ab5, 0x0ab9,
- 0x0abc, 0x0ac5,
- 0x0ac7, 0x0ac9,
- 0x0acb, 0x0acd,
- 0x0ad0, 0x0ad0,
- 0x0ae0, 0x0ae3,
- 0x0ae6, 0x0aef,
- 0x0af1, 0x0af1,
- 0x0b01, 0x0b03,
- 0x0b05, 0x0b0c,
- 0x0b0f, 0x0b10,
- 0x0b13, 0x0b28,
- 0x0b2a, 0x0b30,
- 0x0b32, 0x0b33,
- 0x0b35, 0x0b39,
- 0x0b3c, 0x0b43,
- 0x0b47, 0x0b48,
- 0x0b4b, 0x0b4d,
- 0x0b56, 0x0b57,
- 0x0b5c, 0x0b5d,
- 0x0b5f, 0x0b61,
- 0x0b66, 0x0b71,
- 0x0b82, 0x0b83,
- 0x0b85, 0x0b8a,
- 0x0b8e, 0x0b90,
- 0x0b92, 0x0b95,
- 0x0b99, 0x0b9a,
- 0x0b9c, 0x0b9c,
- 0x0b9e, 0x0b9f,
- 0x0ba3, 0x0ba4,
- 0x0ba8, 0x0baa,
- 0x0bae, 0x0bb9,
- 0x0bbe, 0x0bc2,
- 0x0bc6, 0x0bc8,
- 0x0bca, 0x0bcd,
- 0x0bd7, 0x0bd7,
- 0x0be6, 0x0bfa,
- 0x0c01, 0x0c03,
- 0x0c05, 0x0c0c,
- 0x0c0e, 0x0c10,
- 0x0c12, 0x0c28,
- 0x0c2a, 0x0c33,
- 0x0c35, 0x0c39,
- 0x0c3e, 0x0c44,
- 0x0c46, 0x0c48,
- 0x0c4a, 0x0c4d,
- 0x0c55, 0x0c56,
- 0x0c60, 0x0c61,
- 0x0c66, 0x0c6f,
- 0x0c82, 0x0c83,
- 0x0c85, 0x0c8c,
- 0x0c8e, 0x0c90,
- 0x0c92, 0x0ca8,
- 0x0caa, 0x0cb3,
- 0x0cb5, 0x0cb9,
- 0x0cbc, 0x0cc4,
- 0x0cc6, 0x0cc8,
- 0x0cca, 0x0ccd,
- 0x0cd5, 0x0cd6,
- 0x0cde, 0x0cde,
- 0x0ce0, 0x0ce1,
- 0x0ce6, 0x0cef,
- 0x0d02, 0x0d03,
- 0x0d05, 0x0d0c,
- 0x0d0e, 0x0d10,
- 0x0d12, 0x0d28,
- 0x0d2a, 0x0d39,
- 0x0d3e, 0x0d43,
- 0x0d46, 0x0d48,
- 0x0d4a, 0x0d4d,
- 0x0d57, 0x0d57,
- 0x0d60, 0x0d61,
- 0x0d66, 0x0d6f,
- 0x0d82, 0x0d83,
- 0x0d85, 0x0d96,
- 0x0d9a, 0x0db1,
- 0x0db3, 0x0dbb,
- 0x0dbd, 0x0dbd,
- 0x0dc0, 0x0dc6,
- 0x0dca, 0x0dca,
- 0x0dcf, 0x0dd4,
- 0x0dd6, 0x0dd6,
- 0x0dd8, 0x0ddf,
- 0x0df2, 0x0df4,
- 0x0e01, 0x0e3a,
- 0x0e3f, 0x0e5b,
- 0x0e81, 0x0e82,
- 0x0e84, 0x0e84,
- 0x0e87, 0x0e88,
- 0x0e8a, 0x0e8a,
- 0x0e8d, 0x0e8d,
- 0x0e94, 0x0e97,
- 0x0e99, 0x0e9f,
- 0x0ea1, 0x0ea3,
- 0x0ea5, 0x0ea5,
- 0x0ea7, 0x0ea7,
- 0x0eaa, 0x0eab,
- 0x0ead, 0x0eb9,
- 0x0ebb, 0x0ebd,
- 0x0ec0, 0x0ec4,
- 0x0ec6, 0x0ec6,
- 0x0ec8, 0x0ecd,
- 0x0ed0, 0x0ed9,
- 0x0edc, 0x0edd,
- 0x0f00, 0x0f47,
- 0x0f49, 0x0f6a,
- 0x0f71, 0x0f8b,
- 0x0f90, 0x0f97,
- 0x0f99, 0x0fbc,
- 0x0fbe, 0x0fcc,
- 0x0fcf, 0x0fd1,
- 0x1000, 0x1021,
- 0x1023, 0x1027,
- 0x1029, 0x102a,
- 0x102c, 0x1032,
- 0x1036, 0x1039,
- 0x1040, 0x1059,
- 0x10a0, 0x10c5,
- 0x10d0, 0x10fc,
- 0x1100, 0x1159,
- 0x115f, 0x11a2,
- 0x11a8, 0x11f9,
- 0x1200, 0x1248,
- 0x124a, 0x124d,
- 0x1250, 0x1256,
- 0x1258, 0x1258,
- 0x125a, 0x125d,
- 0x1260, 0x1288,
- 0x128a, 0x128d,
- 0x1290, 0x12b0,
- 0x12b2, 0x12b5,
- 0x12b8, 0x12be,
- 0x12c0, 0x12c0,
- 0x12c2, 0x12c5,
- 0x12c8, 0x12d6,
- 0x12d8, 0x1310,
- 0x1312, 0x1315,
- 0x1318, 0x135a,
- 0x135f, 0x137c,
- 0x1380, 0x1399,
- 0x13a0, 0x13f4,
- 0x1401, 0x1676,
- 0x1681, 0x169c,
- 0x16a0, 0x16f0,
- 0x1700, 0x170c,
- 0x170e, 0x1714,
- 0x1720, 0x1736,
- 0x1740, 0x1753,
- 0x1760, 0x176c,
- 0x176e, 0x1770,
- 0x1772, 0x1773,
- 0x1780, 0x17dd,
- 0x17e0, 0x17e9,
- 0x17f0, 0x17f9,
- 0x1800, 0x180d,
- 0x1810, 0x1819,
- 0x1820, 0x1877,
- 0x1880, 0x18a9,
- 0x1900, 0x191c,
- 0x1920, 0x192b,
- 0x1930, 0x193b,
- 0x1940, 0x1940,
- 0x1944, 0x196d,
- 0x1970, 0x1974,
- 0x1980, 0x19a9,
- 0x19b0, 0x19c9,
- 0x19d0, 0x19d9,
- 0x19de, 0x1a1b,
- 0x1a1e, 0x1a1f,
- 0x1d00, 0x1dc3,
- 0x1e00, 0x1e9b,
- 0x1ea0, 0x1ef9,
- 0x1f00, 0x1f15,
- 0x1f18, 0x1f1d,
- 0x1f20, 0x1f45,
- 0x1f48, 0x1f4d,
- 0x1f50, 0x1f57,
- 0x1f59, 0x1f59,
- 0x1f5b, 0x1f5b,
- 0x1f5d, 0x1f5d,
- 0x1f5f, 0x1f7d,
- 0x1f80, 0x1fb4,
- 0x1fb6, 0x1fc4,
- 0x1fc6, 0x1fd3,
- 0x1fd6, 0x1fdb,
- 0x1fdd, 0x1fef,
- 0x1ff2, 0x1ff4,
- 0x1ff6, 0x1ffe,
- 0x200b, 0x2027,
- 0x202a, 0x202e,
- 0x2030, 0x205e,
- 0x2060, 0x2063,
- 0x206a, 0x2071,
- 0x2074, 0x208e,
- 0x2090, 0x2094,
- 0x20a0, 0x20b5,
- 0x20d0, 0x20eb,
- 0x2100, 0x214c,
- 0x2153, 0x2183,
- 0x2190, 0x23db,
- 0x2400, 0x2426,
- 0x2440, 0x244a,
- 0x2460, 0x269c,
- 0x26a0, 0x26b1,
- 0x2701, 0x2704,
- 0x2706, 0x2709,
- 0x270c, 0x2727,
- 0x2729, 0x274b,
- 0x274d, 0x274d,
- 0x274f, 0x2752,
- 0x2756, 0x2756,
- 0x2758, 0x275e,
- 0x2761, 0x2794,
- 0x2798, 0x27af,
- 0x27b1, 0x27be,
- 0x27c0, 0x27c6,
- 0x27d0, 0x27eb,
- 0x27f0, 0x2b13,
- 0x2c00, 0x2c2e,
- 0x2c30, 0x2c5e,
- 0x2c80, 0x2cea,
- 0x2cf9, 0x2d25,
- 0x2d30, 0x2d65,
- 0x2d6f, 0x2d6f,
- 0x2d80, 0x2d96,
- 0x2da0, 0x2da6,
- 0x2da8, 0x2dae,
- 0x2db0, 0x2db6,
- 0x2db8, 0x2dbe,
- 0x2dc0, 0x2dc6,
- 0x2dc8, 0x2dce,
- 0x2dd0, 0x2dd6,
- 0x2dd8, 0x2dde,
- 0x2e00, 0x2e17,
- 0x2e1c, 0x2e1d,
- 0x2e80, 0x2e99,
- 0x2e9b, 0x2ef3,
- 0x2f00, 0x2fd5,
- 0x2ff0, 0x2ffb,
- 0x3001, 0x303f,
- 0x3041, 0x3096,
- 0x3099, 0x30ff,
- 0x3105, 0x312c,
- 0x3131, 0x318e,
- 0x3190, 0x31b7,
- 0x31c0, 0x31cf,
- 0x31f0, 0x321e,
- 0x3220, 0x3243,
- 0x3250, 0x32fe,
- 0x3300, 0x4db5,
- 0x4dc0, 0x9fbb,
- 0xa000, 0xa48c,
- 0xa490, 0xa4c6,
- 0xa700, 0xa716,
- 0xa800, 0xa82b,
- 0xac00, 0xd7a3,
- 0xe000, 0xfa2d,
- 0xfa30, 0xfa6a,
- 0xfa70, 0xfad9,
- 0xfb00, 0xfb06,
- 0xfb13, 0xfb17,
- 0xfb1d, 0xfb36,
- 0xfb38, 0xfb3c,
- 0xfb3e, 0xfb3e,
- 0xfb40, 0xfb41,
- 0xfb43, 0xfb44,
- 0xfb46, 0xfbb1,
- 0xfbd3, 0xfd3f,
- 0xfd50, 0xfd8f,
- 0xfd92, 0xfdc7,
- 0xfdf0, 0xfdfd,
- 0xfe00, 0xfe19,
- 0xfe20, 0xfe23,
- 0xfe30, 0xfe52,
- 0xfe54, 0xfe66,
- 0xfe68, 0xfe6b,
- 0xfe70, 0xfe74,
- 0xfe76, 0xfefc,
- 0xfeff, 0xfeff,
- 0xff01, 0xffbe,
- 0xffc2, 0xffc7,
- 0xffca, 0xffcf,
- 0xffd2, 0xffd7,
- 0xffda, 0xffdc,
- 0xffe0, 0xffe6,
- 0xffe8, 0xffee,
- 0xfff9, 0xfffd,
- 0x10000, 0x1000b,
- 0x1000d, 0x10026,
- 0x10028, 0x1003a,
- 0x1003c, 0x1003d,
- 0x1003f, 0x1004d,
- 0x10050, 0x1005d,
- 0x10080, 0x100fa,
- 0x10100, 0x10102,
- 0x10107, 0x10133,
- 0x10137, 0x1018a,
- 0x10300, 0x1031e,
- 0x10320, 0x10323,
- 0x10330, 0x1034a,
- 0x10380, 0x1039d,
- 0x1039f, 0x103c3,
- 0x103c8, 0x103d5,
- 0x10400, 0x1049d,
- 0x104a0, 0x104a9,
- 0x10800, 0x10805,
- 0x10808, 0x10808,
- 0x1080a, 0x10835,
- 0x10837, 0x10838,
- 0x1083c, 0x1083c,
- 0x1083f, 0x1083f,
- 0x10a00, 0x10a03,
- 0x10a05, 0x10a06,
- 0x10a0c, 0x10a13,
- 0x10a15, 0x10a17,
- 0x10a19, 0x10a33,
- 0x10a38, 0x10a3a,
- 0x10a3f, 0x10a47,
- 0x10a50, 0x10a58,
- 0x1d000, 0x1d0f5,
- 0x1d100, 0x1d126,
- 0x1d12a, 0x1d1dd,
- 0x1d200, 0x1d245,
- 0x1d300, 0x1d356,
- 0x1d400, 0x1d454,
- 0x1d456, 0x1d49c,
- 0x1d49e, 0x1d49f,
- 0x1d4a2, 0x1d4a2,
- 0x1d4a5, 0x1d4a6,
- 0x1d4a9, 0x1d4ac,
- 0x1d4ae, 0x1d4b9,
- 0x1d4bb, 0x1d4bb,
- 0x1d4bd, 0x1d4c3,
- 0x1d4c5, 0x1d505,
- 0x1d507, 0x1d50a,
- 0x1d50d, 0x1d514,
- 0x1d516, 0x1d51c,
- 0x1d51e, 0x1d539,
- 0x1d53b, 0x1d53e,
- 0x1d540, 0x1d544,
- 0x1d546, 0x1d546,
- 0x1d54a, 0x1d550,
- 0x1d552, 0x1d6a5,
- 0x1d6a8, 0x1d7c9,
- 0x1d7ce, 0x1d7ff,
- 0x20000, 0x2a6d6,
- 0x2f800, 0x2fa1d,
- 0xe0001, 0xe0001,
- 0xe0020, 0xe007f,
- 0xe0100, 0xe01ef,
- 0xf0000, 0xffffd,
- 0x100000, 0x10fffd
-}; /* CR_Graph */
-
-/* 'Lower': [[:Lower:]] */
-static const OnigCodePoint CR_Lower[] = {
- 480,
- 0x0061, 0x007a,
- 0x00aa, 0x00aa,
- 0x00b5, 0x00b5,
- 0x00ba, 0x00ba,
- 0x00df, 0x00f6,
- 0x00f8, 0x00ff,
- 0x0101, 0x0101,
- 0x0103, 0x0103,
- 0x0105, 0x0105,
- 0x0107, 0x0107,
- 0x0109, 0x0109,
- 0x010b, 0x010b,
- 0x010d, 0x010d,
- 0x010f, 0x010f,
- 0x0111, 0x0111,
- 0x0113, 0x0113,
- 0x0115, 0x0115,
- 0x0117, 0x0117,
- 0x0119, 0x0119,
- 0x011b, 0x011b,
- 0x011d, 0x011d,
- 0x011f, 0x011f,
- 0x0121, 0x0121,
- 0x0123, 0x0123,
- 0x0125, 0x0125,
- 0x0127, 0x0127,
- 0x0129, 0x0129,
- 0x012b, 0x012b,
- 0x012d, 0x012d,
- 0x012f, 0x012f,
- 0x0131, 0x0131,
- 0x0133, 0x0133,
- 0x0135, 0x0135,
- 0x0137, 0x0138,
- 0x013a, 0x013a,
- 0x013c, 0x013c,
- 0x013e, 0x013e,
- 0x0140, 0x0140,
- 0x0142, 0x0142,
- 0x0144, 0x0144,
- 0x0146, 0x0146,
- 0x0148, 0x0149,
- 0x014b, 0x014b,
- 0x014d, 0x014d,
- 0x014f, 0x014f,
- 0x0151, 0x0151,
- 0x0153, 0x0153,
- 0x0155, 0x0155,
- 0x0157, 0x0157,
- 0x0159, 0x0159,
- 0x015b, 0x015b,
- 0x015d, 0x015d,
- 0x015f, 0x015f,
- 0x0161, 0x0161,
- 0x0163, 0x0163,
- 0x0165, 0x0165,
- 0x0167, 0x0167,
- 0x0169, 0x0169,
- 0x016b, 0x016b,
- 0x016d, 0x016d,
- 0x016f, 0x016f,
- 0x0171, 0x0171,
- 0x0173, 0x0173,
- 0x0175, 0x0175,
- 0x0177, 0x0177,
- 0x017a, 0x017a,
- 0x017c, 0x017c,
- 0x017e, 0x0180,
- 0x0183, 0x0183,
- 0x0185, 0x0185,
- 0x0188, 0x0188,
- 0x018c, 0x018d,
- 0x0192, 0x0192,
- 0x0195, 0x0195,
- 0x0199, 0x019b,
- 0x019e, 0x019e,
- 0x01a1, 0x01a1,
- 0x01a3, 0x01a3,
- 0x01a5, 0x01a5,
- 0x01a8, 0x01a8,
- 0x01aa, 0x01ab,
- 0x01ad, 0x01ad,
- 0x01b0, 0x01b0,
- 0x01b4, 0x01b4,
- 0x01b6, 0x01b6,
- 0x01b9, 0x01ba,
- 0x01bd, 0x01bf,
- 0x01c6, 0x01c6,
- 0x01c9, 0x01c9,
- 0x01cc, 0x01cc,
- 0x01ce, 0x01ce,
- 0x01d0, 0x01d0,
- 0x01d2, 0x01d2,
- 0x01d4, 0x01d4,
- 0x01d6, 0x01d6,
- 0x01d8, 0x01d8,
- 0x01da, 0x01da,
- 0x01dc, 0x01dd,
- 0x01df, 0x01df,
- 0x01e1, 0x01e1,
- 0x01e3, 0x01e3,
- 0x01e5, 0x01e5,
- 0x01e7, 0x01e7,
- 0x01e9, 0x01e9,
- 0x01eb, 0x01eb,
- 0x01ed, 0x01ed,
- 0x01ef, 0x01f0,
- 0x01f3, 0x01f3,
- 0x01f5, 0x01f5,
- 0x01f9, 0x01f9,
- 0x01fb, 0x01fb,
- 0x01fd, 0x01fd,
- 0x01ff, 0x01ff,
- 0x0201, 0x0201,
- 0x0203, 0x0203,
- 0x0205, 0x0205,
- 0x0207, 0x0207,
- 0x0209, 0x0209,
- 0x020b, 0x020b,
- 0x020d, 0x020d,
- 0x020f, 0x020f,
- 0x0211, 0x0211,
- 0x0213, 0x0213,
- 0x0215, 0x0215,
- 0x0217, 0x0217,
- 0x0219, 0x0219,
- 0x021b, 0x021b,
- 0x021d, 0x021d,
- 0x021f, 0x021f,
- 0x0221, 0x0221,
- 0x0223, 0x0223,
- 0x0225, 0x0225,
- 0x0227, 0x0227,
- 0x0229, 0x0229,
- 0x022b, 0x022b,
- 0x022d, 0x022d,
- 0x022f, 0x022f,
- 0x0231, 0x0231,
- 0x0233, 0x0239,
- 0x023c, 0x023c,
- 0x023f, 0x0240,
- 0x0250, 0x02af,
- 0x0390, 0x0390,
- 0x03ac, 0x03ce,
- 0x03d0, 0x03d1,
- 0x03d5, 0x03d7,
- 0x03d9, 0x03d9,
- 0x03db, 0x03db,
- 0x03dd, 0x03dd,
- 0x03df, 0x03df,
- 0x03e1, 0x03e1,
- 0x03e3, 0x03e3,
- 0x03e5, 0x03e5,
- 0x03e7, 0x03e7,
- 0x03e9, 0x03e9,
- 0x03eb, 0x03eb,
- 0x03ed, 0x03ed,
- 0x03ef, 0x03f3,
- 0x03f5, 0x03f5,
- 0x03f8, 0x03f8,
- 0x03fb, 0x03fc,
- 0x0430, 0x045f,
- 0x0461, 0x0461,
- 0x0463, 0x0463,
- 0x0465, 0x0465,
- 0x0467, 0x0467,
- 0x0469, 0x0469,
- 0x046b, 0x046b,
- 0x046d, 0x046d,
- 0x046f, 0x046f,
- 0x0471, 0x0471,
- 0x0473, 0x0473,
- 0x0475, 0x0475,
- 0x0477, 0x0477,
- 0x0479, 0x0479,
- 0x047b, 0x047b,
- 0x047d, 0x047d,
- 0x047f, 0x047f,
- 0x0481, 0x0481,
- 0x048b, 0x048b,
- 0x048d, 0x048d,
- 0x048f, 0x048f,
- 0x0491, 0x0491,
- 0x0493, 0x0493,
- 0x0495, 0x0495,
- 0x0497, 0x0497,
- 0x0499, 0x0499,
- 0x049b, 0x049b,
- 0x049d, 0x049d,
- 0x049f, 0x049f,
- 0x04a1, 0x04a1,
- 0x04a3, 0x04a3,
- 0x04a5, 0x04a5,
- 0x04a7, 0x04a7,
- 0x04a9, 0x04a9,
- 0x04ab, 0x04ab,
- 0x04ad, 0x04ad,
- 0x04af, 0x04af,
- 0x04b1, 0x04b1,
- 0x04b3, 0x04b3,
- 0x04b5, 0x04b5,
- 0x04b7, 0x04b7,
- 0x04b9, 0x04b9,
- 0x04bb, 0x04bb,
- 0x04bd, 0x04bd,
- 0x04bf, 0x04bf,
- 0x04c2, 0x04c2,
- 0x04c4, 0x04c4,
- 0x04c6, 0x04c6,
- 0x04c8, 0x04c8,
- 0x04ca, 0x04ca,
- 0x04cc, 0x04cc,
- 0x04ce, 0x04ce,
- 0x04d1, 0x04d1,
- 0x04d3, 0x04d3,
- 0x04d5, 0x04d5,
- 0x04d7, 0x04d7,
- 0x04d9, 0x04d9,
- 0x04db, 0x04db,
- 0x04dd, 0x04dd,
- 0x04df, 0x04df,
- 0x04e1, 0x04e1,
- 0x04e3, 0x04e3,
- 0x04e5, 0x04e5,
- 0x04e7, 0x04e7,
- 0x04e9, 0x04e9,
- 0x04eb, 0x04eb,
- 0x04ed, 0x04ed,
- 0x04ef, 0x04ef,
- 0x04f1, 0x04f1,
- 0x04f3, 0x04f3,
- 0x04f5, 0x04f5,
- 0x04f7, 0x04f7,
- 0x04f9, 0x04f9,
- 0x0501, 0x0501,
- 0x0503, 0x0503,
- 0x0505, 0x0505,
- 0x0507, 0x0507,
- 0x0509, 0x0509,
- 0x050b, 0x050b,
- 0x050d, 0x050d,
- 0x050f, 0x050f,
- 0x0561, 0x0587,
- 0x1d00, 0x1d2b,
- 0x1d62, 0x1d77,
- 0x1d79, 0x1d9a,
- 0x1e01, 0x1e01,
- 0x1e03, 0x1e03,
- 0x1e05, 0x1e05,
- 0x1e07, 0x1e07,
- 0x1e09, 0x1e09,
- 0x1e0b, 0x1e0b,
- 0x1e0d, 0x1e0d,
- 0x1e0f, 0x1e0f,
- 0x1e11, 0x1e11,
- 0x1e13, 0x1e13,
- 0x1e15, 0x1e15,
- 0x1e17, 0x1e17,
- 0x1e19, 0x1e19,
- 0x1e1b, 0x1e1b,
- 0x1e1d, 0x1e1d,
- 0x1e1f, 0x1e1f,
- 0x1e21, 0x1e21,
- 0x1e23, 0x1e23,
- 0x1e25, 0x1e25,
- 0x1e27, 0x1e27,
- 0x1e29, 0x1e29,
- 0x1e2b, 0x1e2b,
- 0x1e2d, 0x1e2d,
- 0x1e2f, 0x1e2f,
- 0x1e31, 0x1e31,
- 0x1e33, 0x1e33,
- 0x1e35, 0x1e35,
- 0x1e37, 0x1e37,
- 0x1e39, 0x1e39,
- 0x1e3b, 0x1e3b,
- 0x1e3d, 0x1e3d,
- 0x1e3f, 0x1e3f,
- 0x1e41, 0x1e41,
- 0x1e43, 0x1e43,
- 0x1e45, 0x1e45,
- 0x1e47, 0x1e47,
- 0x1e49, 0x1e49,
- 0x1e4b, 0x1e4b,
- 0x1e4d, 0x1e4d,
- 0x1e4f, 0x1e4f,
- 0x1e51, 0x1e51,
- 0x1e53, 0x1e53,
- 0x1e55, 0x1e55,
- 0x1e57, 0x1e57,
- 0x1e59, 0x1e59,
- 0x1e5b, 0x1e5b,
- 0x1e5d, 0x1e5d,
- 0x1e5f, 0x1e5f,
- 0x1e61, 0x1e61,
- 0x1e63, 0x1e63,
- 0x1e65, 0x1e65,
- 0x1e67, 0x1e67,
- 0x1e69, 0x1e69,
- 0x1e6b, 0x1e6b,
- 0x1e6d, 0x1e6d,
- 0x1e6f, 0x1e6f,
- 0x1e71, 0x1e71,
- 0x1e73, 0x1e73,
- 0x1e75, 0x1e75,
- 0x1e77, 0x1e77,
- 0x1e79, 0x1e79,
- 0x1e7b, 0x1e7b,
- 0x1e7d, 0x1e7d,
- 0x1e7f, 0x1e7f,
- 0x1e81, 0x1e81,
- 0x1e83, 0x1e83,
- 0x1e85, 0x1e85,
- 0x1e87, 0x1e87,
- 0x1e89, 0x1e89,
- 0x1e8b, 0x1e8b,
- 0x1e8d, 0x1e8d,
- 0x1e8f, 0x1e8f,
- 0x1e91, 0x1e91,
- 0x1e93, 0x1e93,
- 0x1e95, 0x1e9b,
- 0x1ea1, 0x1ea1,
- 0x1ea3, 0x1ea3,
- 0x1ea5, 0x1ea5,
- 0x1ea7, 0x1ea7,
- 0x1ea9, 0x1ea9,
- 0x1eab, 0x1eab,
- 0x1ead, 0x1ead,
- 0x1eaf, 0x1eaf,
- 0x1eb1, 0x1eb1,
- 0x1eb3, 0x1eb3,
- 0x1eb5, 0x1eb5,
- 0x1eb7, 0x1eb7,
- 0x1eb9, 0x1eb9,
- 0x1ebb, 0x1ebb,
- 0x1ebd, 0x1ebd,
- 0x1ebf, 0x1ebf,
- 0x1ec1, 0x1ec1,
- 0x1ec3, 0x1ec3,
- 0x1ec5, 0x1ec5,
- 0x1ec7, 0x1ec7,
- 0x1ec9, 0x1ec9,
- 0x1ecb, 0x1ecb,
- 0x1ecd, 0x1ecd,
- 0x1ecf, 0x1ecf,
- 0x1ed1, 0x1ed1,
- 0x1ed3, 0x1ed3,
- 0x1ed5, 0x1ed5,
- 0x1ed7, 0x1ed7,
- 0x1ed9, 0x1ed9,
- 0x1edb, 0x1edb,
- 0x1edd, 0x1edd,
- 0x1edf, 0x1edf,
- 0x1ee1, 0x1ee1,
- 0x1ee3, 0x1ee3,
- 0x1ee5, 0x1ee5,
- 0x1ee7, 0x1ee7,
- 0x1ee9, 0x1ee9,
- 0x1eeb, 0x1eeb,
- 0x1eed, 0x1eed,
- 0x1eef, 0x1eef,
- 0x1ef1, 0x1ef1,
- 0x1ef3, 0x1ef3,
- 0x1ef5, 0x1ef5,
- 0x1ef7, 0x1ef7,
- 0x1ef9, 0x1ef9,
- 0x1f00, 0x1f07,
- 0x1f10, 0x1f15,
- 0x1f20, 0x1f27,
- 0x1f30, 0x1f37,
- 0x1f40, 0x1f45,
- 0x1f50, 0x1f57,
- 0x1f60, 0x1f67,
- 0x1f70, 0x1f7d,
- 0x1f80, 0x1f87,
- 0x1f90, 0x1f97,
- 0x1fa0, 0x1fa7,
- 0x1fb0, 0x1fb4,
- 0x1fb6, 0x1fb7,
- 0x1fbe, 0x1fbe,
- 0x1fc2, 0x1fc4,
- 0x1fc6, 0x1fc7,
- 0x1fd0, 0x1fd3,
- 0x1fd6, 0x1fd7,
- 0x1fe0, 0x1fe7,
- 0x1ff2, 0x1ff4,
- 0x1ff6, 0x1ff7,
- 0x2071, 0x2071,
- 0x207f, 0x207f,
- 0x210a, 0x210a,
- 0x210e, 0x210f,
- 0x2113, 0x2113,
- 0x212f, 0x212f,
- 0x2134, 0x2134,
- 0x2139, 0x2139,
- 0x213c, 0x213d,
- 0x2146, 0x2149,
- 0x2c30, 0x2c5e,
- 0x2c81, 0x2c81,
- 0x2c83, 0x2c83,
- 0x2c85, 0x2c85,
- 0x2c87, 0x2c87,
- 0x2c89, 0x2c89,
- 0x2c8b, 0x2c8b,
- 0x2c8d, 0x2c8d,
- 0x2c8f, 0x2c8f,
- 0x2c91, 0x2c91,
- 0x2c93, 0x2c93,
- 0x2c95, 0x2c95,
- 0x2c97, 0x2c97,
- 0x2c99, 0x2c99,
- 0x2c9b, 0x2c9b,
- 0x2c9d, 0x2c9d,
- 0x2c9f, 0x2c9f,
- 0x2ca1, 0x2ca1,
- 0x2ca3, 0x2ca3,
- 0x2ca5, 0x2ca5,
- 0x2ca7, 0x2ca7,
- 0x2ca9, 0x2ca9,
- 0x2cab, 0x2cab,
- 0x2cad, 0x2cad,
- 0x2caf, 0x2caf,
- 0x2cb1, 0x2cb1,
- 0x2cb3, 0x2cb3,
- 0x2cb5, 0x2cb5,
- 0x2cb7, 0x2cb7,
- 0x2cb9, 0x2cb9,
- 0x2cbb, 0x2cbb,
- 0x2cbd, 0x2cbd,
- 0x2cbf, 0x2cbf,
- 0x2cc1, 0x2cc1,
- 0x2cc3, 0x2cc3,
- 0x2cc5, 0x2cc5,
- 0x2cc7, 0x2cc7,
- 0x2cc9, 0x2cc9,
- 0x2ccb, 0x2ccb,
- 0x2ccd, 0x2ccd,
- 0x2ccf, 0x2ccf,
- 0x2cd1, 0x2cd1,
- 0x2cd3, 0x2cd3,
- 0x2cd5, 0x2cd5,
- 0x2cd7, 0x2cd7,
- 0x2cd9, 0x2cd9,
- 0x2cdb, 0x2cdb,
- 0x2cdd, 0x2cdd,
- 0x2cdf, 0x2cdf,
- 0x2ce1, 0x2ce1,
- 0x2ce3, 0x2ce4,
- 0x2d00, 0x2d25,
- 0xfb00, 0xfb06,
- 0xfb13, 0xfb17,
- 0xff41, 0xff5a,
- 0x10428, 0x1044f,
- 0x1d41a, 0x1d433,
- 0x1d44e, 0x1d454,
- 0x1d456, 0x1d467,
- 0x1d482, 0x1d49b,
- 0x1d4b6, 0x1d4b9,
- 0x1d4bb, 0x1d4bb,
- 0x1d4bd, 0x1d4c3,
- 0x1d4c5, 0x1d4cf,
- 0x1d4ea, 0x1d503,
- 0x1d51e, 0x1d537,
- 0x1d552, 0x1d56b,
- 0x1d586, 0x1d59f,
- 0x1d5ba, 0x1d5d3,
- 0x1d5ee, 0x1d607,
- 0x1d622, 0x1d63b,
- 0x1d656, 0x1d66f,
- 0x1d68a, 0x1d6a5,
- 0x1d6c2, 0x1d6da,
- 0x1d6dc, 0x1d6e1,
- 0x1d6fc, 0x1d714,
- 0x1d716, 0x1d71b,
- 0x1d736, 0x1d74e,
- 0x1d750, 0x1d755,
- 0x1d770, 0x1d788,
- 0x1d78a, 0x1d78f,
- 0x1d7aa, 0x1d7c2,
- 0x1d7c4, 0x1d7c9
-}; /* CR_Lower */
-
-/* 'Print': [[:Print:]] */
-static const OnigCodePoint CR_Print[] = {
- 423,
- 0x0009, 0x000d,
- 0x0020, 0x007e,
- 0x0085, 0x0085,
- 0x00a0, 0x0241,
- 0x0250, 0x036f,
- 0x0374, 0x0375,
- 0x037a, 0x037a,
- 0x037e, 0x037e,
- 0x0384, 0x038a,
- 0x038c, 0x038c,
- 0x038e, 0x03a1,
- 0x03a3, 0x03ce,
- 0x03d0, 0x0486,
- 0x0488, 0x04ce,
- 0x04d0, 0x04f9,
- 0x0500, 0x050f,
- 0x0531, 0x0556,
- 0x0559, 0x055f,
- 0x0561, 0x0587,
- 0x0589, 0x058a,
- 0x0591, 0x05b9,
- 0x05bb, 0x05c7,
- 0x05d0, 0x05ea,
- 0x05f0, 0x05f4,
- 0x0600, 0x0603,
- 0x060b, 0x0615,
- 0x061b, 0x061b,
- 0x061e, 0x061f,
- 0x0621, 0x063a,
- 0x0640, 0x065e,
- 0x0660, 0x070d,
- 0x070f, 0x074a,
- 0x074d, 0x076d,
- 0x0780, 0x07b1,
- 0x0901, 0x0939,
- 0x093c, 0x094d,
- 0x0950, 0x0954,
- 0x0958, 0x0970,
- 0x097d, 0x097d,
- 0x0981, 0x0983,
- 0x0985, 0x098c,
- 0x098f, 0x0990,
- 0x0993, 0x09a8,
- 0x09aa, 0x09b0,
- 0x09b2, 0x09b2,
- 0x09b6, 0x09b9,
- 0x09bc, 0x09c4,
- 0x09c7, 0x09c8,
- 0x09cb, 0x09ce,
- 0x09d7, 0x09d7,
- 0x09dc, 0x09dd,
- 0x09df, 0x09e3,
- 0x09e6, 0x09fa,
- 0x0a01, 0x0a03,
- 0x0a05, 0x0a0a,
- 0x0a0f, 0x0a10,
- 0x0a13, 0x0a28,
- 0x0a2a, 0x0a30,
- 0x0a32, 0x0a33,
- 0x0a35, 0x0a36,
- 0x0a38, 0x0a39,
- 0x0a3c, 0x0a3c,
- 0x0a3e, 0x0a42,
- 0x0a47, 0x0a48,
- 0x0a4b, 0x0a4d,
- 0x0a59, 0x0a5c,
- 0x0a5e, 0x0a5e,
- 0x0a66, 0x0a74,
- 0x0a81, 0x0a83,
- 0x0a85, 0x0a8d,
- 0x0a8f, 0x0a91,
- 0x0a93, 0x0aa8,
- 0x0aaa, 0x0ab0,
- 0x0ab2, 0x0ab3,
- 0x0ab5, 0x0ab9,
- 0x0abc, 0x0ac5,
- 0x0ac7, 0x0ac9,
- 0x0acb, 0x0acd,
- 0x0ad0, 0x0ad0,
- 0x0ae0, 0x0ae3,
- 0x0ae6, 0x0aef,
- 0x0af1, 0x0af1,
- 0x0b01, 0x0b03,
- 0x0b05, 0x0b0c,
- 0x0b0f, 0x0b10,
- 0x0b13, 0x0b28,
- 0x0b2a, 0x0b30,
- 0x0b32, 0x0b33,
- 0x0b35, 0x0b39,
- 0x0b3c, 0x0b43,
- 0x0b47, 0x0b48,
- 0x0b4b, 0x0b4d,
- 0x0b56, 0x0b57,
- 0x0b5c, 0x0b5d,
- 0x0b5f, 0x0b61,
- 0x0b66, 0x0b71,
- 0x0b82, 0x0b83,
- 0x0b85, 0x0b8a,
- 0x0b8e, 0x0b90,
- 0x0b92, 0x0b95,
- 0x0b99, 0x0b9a,
- 0x0b9c, 0x0b9c,
- 0x0b9e, 0x0b9f,
- 0x0ba3, 0x0ba4,
- 0x0ba8, 0x0baa,
- 0x0bae, 0x0bb9,
- 0x0bbe, 0x0bc2,
- 0x0bc6, 0x0bc8,
- 0x0bca, 0x0bcd,
- 0x0bd7, 0x0bd7,
- 0x0be6, 0x0bfa,
- 0x0c01, 0x0c03,
- 0x0c05, 0x0c0c,
- 0x0c0e, 0x0c10,
- 0x0c12, 0x0c28,
- 0x0c2a, 0x0c33,
- 0x0c35, 0x0c39,
- 0x0c3e, 0x0c44,
- 0x0c46, 0x0c48,
- 0x0c4a, 0x0c4d,
- 0x0c55, 0x0c56,
- 0x0c60, 0x0c61,
- 0x0c66, 0x0c6f,
- 0x0c82, 0x0c83,
- 0x0c85, 0x0c8c,
- 0x0c8e, 0x0c90,
- 0x0c92, 0x0ca8,
- 0x0caa, 0x0cb3,
- 0x0cb5, 0x0cb9,
- 0x0cbc, 0x0cc4,
- 0x0cc6, 0x0cc8,
- 0x0cca, 0x0ccd,
- 0x0cd5, 0x0cd6,
- 0x0cde, 0x0cde,
- 0x0ce0, 0x0ce1,
- 0x0ce6, 0x0cef,
- 0x0d02, 0x0d03,
- 0x0d05, 0x0d0c,
- 0x0d0e, 0x0d10,
- 0x0d12, 0x0d28,
- 0x0d2a, 0x0d39,
- 0x0d3e, 0x0d43,
- 0x0d46, 0x0d48,
- 0x0d4a, 0x0d4d,
- 0x0d57, 0x0d57,
- 0x0d60, 0x0d61,
- 0x0d66, 0x0d6f,
- 0x0d82, 0x0d83,
- 0x0d85, 0x0d96,
- 0x0d9a, 0x0db1,
- 0x0db3, 0x0dbb,
- 0x0dbd, 0x0dbd,
- 0x0dc0, 0x0dc6,
- 0x0dca, 0x0dca,
- 0x0dcf, 0x0dd4,
- 0x0dd6, 0x0dd6,
- 0x0dd8, 0x0ddf,
- 0x0df2, 0x0df4,
- 0x0e01, 0x0e3a,
- 0x0e3f, 0x0e5b,
- 0x0e81, 0x0e82,
- 0x0e84, 0x0e84,
- 0x0e87, 0x0e88,
- 0x0e8a, 0x0e8a,
- 0x0e8d, 0x0e8d,
- 0x0e94, 0x0e97,
- 0x0e99, 0x0e9f,
- 0x0ea1, 0x0ea3,
- 0x0ea5, 0x0ea5,
- 0x0ea7, 0x0ea7,
- 0x0eaa, 0x0eab,
- 0x0ead, 0x0eb9,
- 0x0ebb, 0x0ebd,
- 0x0ec0, 0x0ec4,
- 0x0ec6, 0x0ec6,
- 0x0ec8, 0x0ecd,
- 0x0ed0, 0x0ed9,
- 0x0edc, 0x0edd,
- 0x0f00, 0x0f47,
- 0x0f49, 0x0f6a,
- 0x0f71, 0x0f8b,
- 0x0f90, 0x0f97,
- 0x0f99, 0x0fbc,
- 0x0fbe, 0x0fcc,
- 0x0fcf, 0x0fd1,
- 0x1000, 0x1021,
- 0x1023, 0x1027,
- 0x1029, 0x102a,
- 0x102c, 0x1032,
- 0x1036, 0x1039,
- 0x1040, 0x1059,
- 0x10a0, 0x10c5,
- 0x10d0, 0x10fc,
- 0x1100, 0x1159,
- 0x115f, 0x11a2,
- 0x11a8, 0x11f9,
- 0x1200, 0x1248,
- 0x124a, 0x124d,
- 0x1250, 0x1256,
- 0x1258, 0x1258,
- 0x125a, 0x125d,
- 0x1260, 0x1288,
- 0x128a, 0x128d,
- 0x1290, 0x12b0,
- 0x12b2, 0x12b5,
- 0x12b8, 0x12be,
- 0x12c0, 0x12c0,
- 0x12c2, 0x12c5,
- 0x12c8, 0x12d6,
- 0x12d8, 0x1310,
- 0x1312, 0x1315,
- 0x1318, 0x135a,
- 0x135f, 0x137c,
- 0x1380, 0x1399,
- 0x13a0, 0x13f4,
- 0x1401, 0x1676,
- 0x1680, 0x169c,
- 0x16a0, 0x16f0,
- 0x1700, 0x170c,
- 0x170e, 0x1714,
- 0x1720, 0x1736,
- 0x1740, 0x1753,
- 0x1760, 0x176c,
- 0x176e, 0x1770,
- 0x1772, 0x1773,
- 0x1780, 0x17dd,
- 0x17e0, 0x17e9,
- 0x17f0, 0x17f9,
- 0x1800, 0x180e,
- 0x1810, 0x1819,
- 0x1820, 0x1877,
- 0x1880, 0x18a9,
- 0x1900, 0x191c,
- 0x1920, 0x192b,
- 0x1930, 0x193b,
- 0x1940, 0x1940,
- 0x1944, 0x196d,
- 0x1970, 0x1974,
- 0x1980, 0x19a9,
- 0x19b0, 0x19c9,
- 0x19d0, 0x19d9,
- 0x19de, 0x1a1b,
- 0x1a1e, 0x1a1f,
- 0x1d00, 0x1dc3,
- 0x1e00, 0x1e9b,
- 0x1ea0, 0x1ef9,
- 0x1f00, 0x1f15,
- 0x1f18, 0x1f1d,
- 0x1f20, 0x1f45,
- 0x1f48, 0x1f4d,
- 0x1f50, 0x1f57,
- 0x1f59, 0x1f59,
- 0x1f5b, 0x1f5b,
- 0x1f5d, 0x1f5d,
- 0x1f5f, 0x1f7d,
- 0x1f80, 0x1fb4,
- 0x1fb6, 0x1fc4,
- 0x1fc6, 0x1fd3,
- 0x1fd6, 0x1fdb,
- 0x1fdd, 0x1fef,
- 0x1ff2, 0x1ff4,
- 0x1ff6, 0x1ffe,
- 0x2000, 0x2063,
- 0x206a, 0x2071,
- 0x2074, 0x208e,
- 0x2090, 0x2094,
- 0x20a0, 0x20b5,
- 0x20d0, 0x20eb,
- 0x2100, 0x214c,
- 0x2153, 0x2183,
- 0x2190, 0x23db,
- 0x2400, 0x2426,
- 0x2440, 0x244a,
- 0x2460, 0x269c,
- 0x26a0, 0x26b1,
- 0x2701, 0x2704,
- 0x2706, 0x2709,
- 0x270c, 0x2727,
- 0x2729, 0x274b,
- 0x274d, 0x274d,
- 0x274f, 0x2752,
- 0x2756, 0x2756,
- 0x2758, 0x275e,
- 0x2761, 0x2794,
- 0x2798, 0x27af,
- 0x27b1, 0x27be,
- 0x27c0, 0x27c6,
- 0x27d0, 0x27eb,
- 0x27f0, 0x2b13,
- 0x2c00, 0x2c2e,
- 0x2c30, 0x2c5e,
- 0x2c80, 0x2cea,
- 0x2cf9, 0x2d25,
- 0x2d30, 0x2d65,
- 0x2d6f, 0x2d6f,
- 0x2d80, 0x2d96,
- 0x2da0, 0x2da6,
- 0x2da8, 0x2dae,
- 0x2db0, 0x2db6,
- 0x2db8, 0x2dbe,
- 0x2dc0, 0x2dc6,
- 0x2dc8, 0x2dce,
- 0x2dd0, 0x2dd6,
- 0x2dd8, 0x2dde,
- 0x2e00, 0x2e17,
- 0x2e1c, 0x2e1d,
- 0x2e80, 0x2e99,
- 0x2e9b, 0x2ef3,
- 0x2f00, 0x2fd5,
- 0x2ff0, 0x2ffb,
- 0x3000, 0x303f,
- 0x3041, 0x3096,
- 0x3099, 0x30ff,
- 0x3105, 0x312c,
- 0x3131, 0x318e,
- 0x3190, 0x31b7,
- 0x31c0, 0x31cf,
- 0x31f0, 0x321e,
- 0x3220, 0x3243,
- 0x3250, 0x32fe,
- 0x3300, 0x4db5,
- 0x4dc0, 0x9fbb,
- 0xa000, 0xa48c,
- 0xa490, 0xa4c6,
- 0xa700, 0xa716,
- 0xa800, 0xa82b,
- 0xac00, 0xd7a3,
- 0xe000, 0xfa2d,
- 0xfa30, 0xfa6a,
- 0xfa70, 0xfad9,
- 0xfb00, 0xfb06,
- 0xfb13, 0xfb17,
- 0xfb1d, 0xfb36,
- 0xfb38, 0xfb3c,
- 0xfb3e, 0xfb3e,
- 0xfb40, 0xfb41,
- 0xfb43, 0xfb44,
- 0xfb46, 0xfbb1,
- 0xfbd3, 0xfd3f,
- 0xfd50, 0xfd8f,
- 0xfd92, 0xfdc7,
- 0xfdf0, 0xfdfd,
- 0xfe00, 0xfe19,
- 0xfe20, 0xfe23,
- 0xfe30, 0xfe52,
- 0xfe54, 0xfe66,
- 0xfe68, 0xfe6b,
- 0xfe70, 0xfe74,
- 0xfe76, 0xfefc,
- 0xfeff, 0xfeff,
- 0xff01, 0xffbe,
- 0xffc2, 0xffc7,
- 0xffca, 0xffcf,
- 0xffd2, 0xffd7,
- 0xffda, 0xffdc,
- 0xffe0, 0xffe6,
- 0xffe8, 0xffee,
- 0xfff9, 0xfffd,
- 0x10000, 0x1000b,
- 0x1000d, 0x10026,
- 0x10028, 0x1003a,
- 0x1003c, 0x1003d,
- 0x1003f, 0x1004d,
- 0x10050, 0x1005d,
- 0x10080, 0x100fa,
- 0x10100, 0x10102,
- 0x10107, 0x10133,
- 0x10137, 0x1018a,
- 0x10300, 0x1031e,
- 0x10320, 0x10323,
- 0x10330, 0x1034a,
- 0x10380, 0x1039d,
- 0x1039f, 0x103c3,
- 0x103c8, 0x103d5,
- 0x10400, 0x1049d,
- 0x104a0, 0x104a9,
- 0x10800, 0x10805,
- 0x10808, 0x10808,
- 0x1080a, 0x10835,
- 0x10837, 0x10838,
- 0x1083c, 0x1083c,
- 0x1083f, 0x1083f,
- 0x10a00, 0x10a03,
- 0x10a05, 0x10a06,
- 0x10a0c, 0x10a13,
- 0x10a15, 0x10a17,
- 0x10a19, 0x10a33,
- 0x10a38, 0x10a3a,
- 0x10a3f, 0x10a47,
- 0x10a50, 0x10a58,
- 0x1d000, 0x1d0f5,
- 0x1d100, 0x1d126,
- 0x1d12a, 0x1d1dd,
- 0x1d200, 0x1d245,
- 0x1d300, 0x1d356,
- 0x1d400, 0x1d454,
- 0x1d456, 0x1d49c,
- 0x1d49e, 0x1d49f,
- 0x1d4a2, 0x1d4a2,
- 0x1d4a5, 0x1d4a6,
- 0x1d4a9, 0x1d4ac,
- 0x1d4ae, 0x1d4b9,
- 0x1d4bb, 0x1d4bb,
- 0x1d4bd, 0x1d4c3,
- 0x1d4c5, 0x1d505,
- 0x1d507, 0x1d50a,
- 0x1d50d, 0x1d514,
- 0x1d516, 0x1d51c,
- 0x1d51e, 0x1d539,
- 0x1d53b, 0x1d53e,
- 0x1d540, 0x1d544,
- 0x1d546, 0x1d546,
- 0x1d54a, 0x1d550,
- 0x1d552, 0x1d6a5,
- 0x1d6a8, 0x1d7c9,
- 0x1d7ce, 0x1d7ff,
- 0x20000, 0x2a6d6,
- 0x2f800, 0x2fa1d,
- 0xe0001, 0xe0001,
- 0xe0020, 0xe007f,
- 0xe0100, 0xe01ef,
- 0xf0000, 0xffffd,
- 0x100000, 0x10fffd
-}; /* CR_Print */
-
-/* 'Punct': [[:Punct:]] */
-static const OnigCodePoint CR_Punct[] = {
- 96,
- 0x0021, 0x0023,
- 0x0025, 0x002a,
- 0x002c, 0x002f,
- 0x003a, 0x003b,
- 0x003f, 0x0040,
- 0x005b, 0x005d,
- 0x005f, 0x005f,
- 0x007b, 0x007b,
- 0x007d, 0x007d,
- 0x00a1, 0x00a1,
- 0x00ab, 0x00ab,
- 0x00b7, 0x00b7,
- 0x00bb, 0x00bb,
- 0x00bf, 0x00bf,
- 0x037e, 0x037e,
- 0x0387, 0x0387,
- 0x055a, 0x055f,
- 0x0589, 0x058a,
- 0x05be, 0x05be,
- 0x05c0, 0x05c0,
- 0x05c3, 0x05c3,
- 0x05c6, 0x05c6,
- 0x05f3, 0x05f4,
- 0x060c, 0x060d,
- 0x061b, 0x061b,
- 0x061e, 0x061f,
- 0x066a, 0x066d,
- 0x06d4, 0x06d4,
- 0x0700, 0x070d,
- 0x0964, 0x0965,
- 0x0970, 0x0970,
- 0x0df4, 0x0df4,
- 0x0e4f, 0x0e4f,
- 0x0e5a, 0x0e5b,
- 0x0f04, 0x0f12,
- 0x0f3a, 0x0f3d,
- 0x0f85, 0x0f85,
- 0x0fd0, 0x0fd1,
- 0x104a, 0x104f,
- 0x10fb, 0x10fb,
- 0x1361, 0x1368,
- 0x166d, 0x166e,
- 0x169b, 0x169c,
- 0x16eb, 0x16ed,
- 0x1735, 0x1736,
- 0x17d4, 0x17d6,
- 0x17d8, 0x17da,
- 0x1800, 0x180a,
- 0x1944, 0x1945,
- 0x19de, 0x19df,
- 0x1a1e, 0x1a1f,
- 0x2010, 0x2027,
- 0x2030, 0x2043,
- 0x2045, 0x2051,
- 0x2053, 0x205e,
- 0x207d, 0x207e,
- 0x208d, 0x208e,
- 0x2329, 0x232a,
- 0x23b4, 0x23b6,
- 0x2768, 0x2775,
- 0x27c5, 0x27c6,
- 0x27e6, 0x27eb,
- 0x2983, 0x2998,
- 0x29d8, 0x29db,
- 0x29fc, 0x29fd,
- 0x2cf9, 0x2cfc,
- 0x2cfe, 0x2cff,
- 0x2e00, 0x2e17,
- 0x2e1c, 0x2e1d,
- 0x3001, 0x3003,
- 0x3008, 0x3011,
- 0x3014, 0x301f,
- 0x3030, 0x3030,
- 0x303d, 0x303d,
- 0x30a0, 0x30a0,
- 0x30fb, 0x30fb,
- 0xfd3e, 0xfd3f,
- 0xfe10, 0xfe19,
- 0xfe30, 0xfe52,
- 0xfe54, 0xfe61,
- 0xfe63, 0xfe63,
- 0xfe68, 0xfe68,
- 0xfe6a, 0xfe6b,
- 0xff01, 0xff03,
- 0xff05, 0xff0a,
- 0xff0c, 0xff0f,
- 0xff1a, 0xff1b,
- 0xff1f, 0xff20,
- 0xff3b, 0xff3d,
- 0xff3f, 0xff3f,
- 0xff5b, 0xff5b,
- 0xff5d, 0xff5d,
- 0xff5f, 0xff65,
- 0x10100, 0x10101,
- 0x1039f, 0x1039f,
- 0x10a50, 0x10a58
-}; /* CR_Punct */
-
-/* 'Space': [[:Space:]] */
-static const OnigCodePoint CR_Space[] = {
- 11,
- 0x0009, 0x000d,
- 0x0020, 0x0020,
- 0x0085, 0x0085,
- 0x00a0, 0x00a0,
- 0x1680, 0x1680,
- 0x180e, 0x180e,
- 0x2000, 0x200a,
- 0x2028, 0x2029,
- 0x202f, 0x202f,
- 0x205f, 0x205f,
- 0x3000, 0x3000
-}; /* CR_Space */
-
-/* 'Upper': [[:Upper:]] */
-static const OnigCodePoint CR_Upper[] = {
- 476,
- 0x0041, 0x005a,
- 0x00c0, 0x00d6,
- 0x00d8, 0x00de,
- 0x0100, 0x0100,
- 0x0102, 0x0102,
- 0x0104, 0x0104,
- 0x0106, 0x0106,
- 0x0108, 0x0108,
- 0x010a, 0x010a,
- 0x010c, 0x010c,
- 0x010e, 0x010e,
- 0x0110, 0x0110,
- 0x0112, 0x0112,
- 0x0114, 0x0114,
- 0x0116, 0x0116,
- 0x0118, 0x0118,
- 0x011a, 0x011a,
- 0x011c, 0x011c,
- 0x011e, 0x011e,
- 0x0120, 0x0120,
- 0x0122, 0x0122,
- 0x0124, 0x0124,
- 0x0126, 0x0126,
- 0x0128, 0x0128,
- 0x012a, 0x012a,
- 0x012c, 0x012c,
- 0x012e, 0x012e,
- 0x0130, 0x0130,
- 0x0132, 0x0132,
- 0x0134, 0x0134,
- 0x0136, 0x0136,
- 0x0139, 0x0139,
- 0x013b, 0x013b,
- 0x013d, 0x013d,
- 0x013f, 0x013f,
- 0x0141, 0x0141,
- 0x0143, 0x0143,
- 0x0145, 0x0145,
- 0x0147, 0x0147,
- 0x014a, 0x014a,
- 0x014c, 0x014c,
- 0x014e, 0x014e,
- 0x0150, 0x0150,
- 0x0152, 0x0152,
- 0x0154, 0x0154,
- 0x0156, 0x0156,
- 0x0158, 0x0158,
- 0x015a, 0x015a,
- 0x015c, 0x015c,
- 0x015e, 0x015e,
- 0x0160, 0x0160,
- 0x0162, 0x0162,
- 0x0164, 0x0164,
- 0x0166, 0x0166,
- 0x0168, 0x0168,
- 0x016a, 0x016a,
- 0x016c, 0x016c,
- 0x016e, 0x016e,
- 0x0170, 0x0170,
- 0x0172, 0x0172,
- 0x0174, 0x0174,
- 0x0176, 0x0176,
- 0x0178, 0x0179,
- 0x017b, 0x017b,
- 0x017d, 0x017d,
- 0x0181, 0x0182,
- 0x0184, 0x0184,
- 0x0186, 0x0187,
- 0x0189, 0x018b,
- 0x018e, 0x0191,
- 0x0193, 0x0194,
- 0x0196, 0x0198,
- 0x019c, 0x019d,
- 0x019f, 0x01a0,
- 0x01a2, 0x01a2,
- 0x01a4, 0x01a4,
- 0x01a6, 0x01a7,
- 0x01a9, 0x01a9,
- 0x01ac, 0x01ac,
- 0x01ae, 0x01af,
- 0x01b1, 0x01b3,
- 0x01b5, 0x01b5,
- 0x01b7, 0x01b8,
- 0x01bc, 0x01bc,
- 0x01c4, 0x01c4,
- 0x01c7, 0x01c7,
- 0x01ca, 0x01ca,
- 0x01cd, 0x01cd,
- 0x01cf, 0x01cf,
- 0x01d1, 0x01d1,
- 0x01d3, 0x01d3,
- 0x01d5, 0x01d5,
- 0x01d7, 0x01d7,
- 0x01d9, 0x01d9,
- 0x01db, 0x01db,
- 0x01de, 0x01de,
- 0x01e0, 0x01e0,
- 0x01e2, 0x01e2,
- 0x01e4, 0x01e4,
- 0x01e6, 0x01e6,
- 0x01e8, 0x01e8,
- 0x01ea, 0x01ea,
- 0x01ec, 0x01ec,
- 0x01ee, 0x01ee,
- 0x01f1, 0x01f1,
- 0x01f4, 0x01f4,
- 0x01f6, 0x01f8,
- 0x01fa, 0x01fa,
- 0x01fc, 0x01fc,
- 0x01fe, 0x01fe,
- 0x0200, 0x0200,
- 0x0202, 0x0202,
- 0x0204, 0x0204,
- 0x0206, 0x0206,
- 0x0208, 0x0208,
- 0x020a, 0x020a,
- 0x020c, 0x020c,
- 0x020e, 0x020e,
- 0x0210, 0x0210,
- 0x0212, 0x0212,
- 0x0214, 0x0214,
- 0x0216, 0x0216,
- 0x0218, 0x0218,
- 0x021a, 0x021a,
- 0x021c, 0x021c,
- 0x021e, 0x021e,
- 0x0220, 0x0220,
- 0x0222, 0x0222,
- 0x0224, 0x0224,
- 0x0226, 0x0226,
- 0x0228, 0x0228,
- 0x022a, 0x022a,
- 0x022c, 0x022c,
- 0x022e, 0x022e,
- 0x0230, 0x0230,
- 0x0232, 0x0232,
- 0x023a, 0x023b,
- 0x023d, 0x023e,
- 0x0241, 0x0241,
- 0x0386, 0x0386,
- 0x0388, 0x038a,
- 0x038c, 0x038c,
- 0x038e, 0x038f,
- 0x0391, 0x03a1,
- 0x03a3, 0x03ab,
- 0x03d2, 0x03d4,
- 0x03d8, 0x03d8,
- 0x03da, 0x03da,
- 0x03dc, 0x03dc,
- 0x03de, 0x03de,
- 0x03e0, 0x03e0,
- 0x03e2, 0x03e2,
- 0x03e4, 0x03e4,
- 0x03e6, 0x03e6,
- 0x03e8, 0x03e8,
- 0x03ea, 0x03ea,
- 0x03ec, 0x03ec,
- 0x03ee, 0x03ee,
- 0x03f4, 0x03f4,
- 0x03f7, 0x03f7,
- 0x03f9, 0x03fa,
- 0x03fd, 0x042f,
- 0x0460, 0x0460,
- 0x0462, 0x0462,
- 0x0464, 0x0464,
- 0x0466, 0x0466,
- 0x0468, 0x0468,
- 0x046a, 0x046a,
- 0x046c, 0x046c,
- 0x046e, 0x046e,
- 0x0470, 0x0470,
- 0x0472, 0x0472,
- 0x0474, 0x0474,
- 0x0476, 0x0476,
- 0x0478, 0x0478,
- 0x047a, 0x047a,
- 0x047c, 0x047c,
- 0x047e, 0x047e,
- 0x0480, 0x0480,
- 0x048a, 0x048a,
- 0x048c, 0x048c,
- 0x048e, 0x048e,
- 0x0490, 0x0490,
- 0x0492, 0x0492,
- 0x0494, 0x0494,
- 0x0496, 0x0496,
- 0x0498, 0x0498,
- 0x049a, 0x049a,
- 0x049c, 0x049c,
- 0x049e, 0x049e,
- 0x04a0, 0x04a0,
- 0x04a2, 0x04a2,
- 0x04a4, 0x04a4,
- 0x04a6, 0x04a6,
- 0x04a8, 0x04a8,
- 0x04aa, 0x04aa,
- 0x04ac, 0x04ac,
- 0x04ae, 0x04ae,
- 0x04b0, 0x04b0,
- 0x04b2, 0x04b2,
- 0x04b4, 0x04b4,
- 0x04b6, 0x04b6,
- 0x04b8, 0x04b8,
- 0x04ba, 0x04ba,
- 0x04bc, 0x04bc,
- 0x04be, 0x04be,
- 0x04c0, 0x04c1,
- 0x04c3, 0x04c3,
- 0x04c5, 0x04c5,
- 0x04c7, 0x04c7,
- 0x04c9, 0x04c9,
- 0x04cb, 0x04cb,
- 0x04cd, 0x04cd,
- 0x04d0, 0x04d0,
- 0x04d2, 0x04d2,
- 0x04d4, 0x04d4,
- 0x04d6, 0x04d6,
- 0x04d8, 0x04d8,
- 0x04da, 0x04da,
- 0x04dc, 0x04dc,
- 0x04de, 0x04de,
- 0x04e0, 0x04e0,
- 0x04e2, 0x04e2,
- 0x04e4, 0x04e4,
- 0x04e6, 0x04e6,
- 0x04e8, 0x04e8,
- 0x04ea, 0x04ea,
- 0x04ec, 0x04ec,
- 0x04ee, 0x04ee,
- 0x04f0, 0x04f0,
- 0x04f2, 0x04f2,
- 0x04f4, 0x04f4,
- 0x04f6, 0x04f6,
- 0x04f8, 0x04f8,
- 0x0500, 0x0500,
- 0x0502, 0x0502,
- 0x0504, 0x0504,
- 0x0506, 0x0506,
- 0x0508, 0x0508,
- 0x050a, 0x050a,
- 0x050c, 0x050c,
- 0x050e, 0x050e,
- 0x0531, 0x0556,
- 0x10a0, 0x10c5,
- 0x1e00, 0x1e00,
- 0x1e02, 0x1e02,
- 0x1e04, 0x1e04,
- 0x1e06, 0x1e06,
- 0x1e08, 0x1e08,
- 0x1e0a, 0x1e0a,
- 0x1e0c, 0x1e0c,
- 0x1e0e, 0x1e0e,
- 0x1e10, 0x1e10,
- 0x1e12, 0x1e12,
- 0x1e14, 0x1e14,
- 0x1e16, 0x1e16,
- 0x1e18, 0x1e18,
- 0x1e1a, 0x1e1a,
- 0x1e1c, 0x1e1c,
- 0x1e1e, 0x1e1e,
- 0x1e20, 0x1e20,
- 0x1e22, 0x1e22,
- 0x1e24, 0x1e24,
- 0x1e26, 0x1e26,
- 0x1e28, 0x1e28,
- 0x1e2a, 0x1e2a,
- 0x1e2c, 0x1e2c,
- 0x1e2e, 0x1e2e,
- 0x1e30, 0x1e30,
- 0x1e32, 0x1e32,
- 0x1e34, 0x1e34,
- 0x1e36, 0x1e36,
- 0x1e38, 0x1e38,
- 0x1e3a, 0x1e3a,
- 0x1e3c, 0x1e3c,
- 0x1e3e, 0x1e3e,
- 0x1e40, 0x1e40,
- 0x1e42, 0x1e42,
- 0x1e44, 0x1e44,
- 0x1e46, 0x1e46,
- 0x1e48, 0x1e48,
- 0x1e4a, 0x1e4a,
- 0x1e4c, 0x1e4c,
- 0x1e4e, 0x1e4e,
- 0x1e50, 0x1e50,
- 0x1e52, 0x1e52,
- 0x1e54, 0x1e54,
- 0x1e56, 0x1e56,
- 0x1e58, 0x1e58,
- 0x1e5a, 0x1e5a,
- 0x1e5c, 0x1e5c,
- 0x1e5e, 0x1e5e,
- 0x1e60, 0x1e60,
- 0x1e62, 0x1e62,
- 0x1e64, 0x1e64,
- 0x1e66, 0x1e66,
- 0x1e68, 0x1e68,
- 0x1e6a, 0x1e6a,
- 0x1e6c, 0x1e6c,
- 0x1e6e, 0x1e6e,
- 0x1e70, 0x1e70,
- 0x1e72, 0x1e72,
- 0x1e74, 0x1e74,
- 0x1e76, 0x1e76,
- 0x1e78, 0x1e78,
- 0x1e7a, 0x1e7a,
- 0x1e7c, 0x1e7c,
- 0x1e7e, 0x1e7e,
- 0x1e80, 0x1e80,
- 0x1e82, 0x1e82,
- 0x1e84, 0x1e84,
- 0x1e86, 0x1e86,
- 0x1e88, 0x1e88,
- 0x1e8a, 0x1e8a,
- 0x1e8c, 0x1e8c,
- 0x1e8e, 0x1e8e,
- 0x1e90, 0x1e90,
- 0x1e92, 0x1e92,
- 0x1e94, 0x1e94,
- 0x1ea0, 0x1ea0,
- 0x1ea2, 0x1ea2,
- 0x1ea4, 0x1ea4,
- 0x1ea6, 0x1ea6,
- 0x1ea8, 0x1ea8,
- 0x1eaa, 0x1eaa,
- 0x1eac, 0x1eac,
- 0x1eae, 0x1eae,
- 0x1eb0, 0x1eb0,
- 0x1eb2, 0x1eb2,
- 0x1eb4, 0x1eb4,
- 0x1eb6, 0x1eb6,
- 0x1eb8, 0x1eb8,
- 0x1eba, 0x1eba,
- 0x1ebc, 0x1ebc,
- 0x1ebe, 0x1ebe,
- 0x1ec0, 0x1ec0,
- 0x1ec2, 0x1ec2,
- 0x1ec4, 0x1ec4,
- 0x1ec6, 0x1ec6,
- 0x1ec8, 0x1ec8,
- 0x1eca, 0x1eca,
- 0x1ecc, 0x1ecc,
- 0x1ece, 0x1ece,
- 0x1ed0, 0x1ed0,
- 0x1ed2, 0x1ed2,
- 0x1ed4, 0x1ed4,
- 0x1ed6, 0x1ed6,
- 0x1ed8, 0x1ed8,
- 0x1eda, 0x1eda,
- 0x1edc, 0x1edc,
- 0x1ede, 0x1ede,
- 0x1ee0, 0x1ee0,
- 0x1ee2, 0x1ee2,
- 0x1ee4, 0x1ee4,
- 0x1ee6, 0x1ee6,
- 0x1ee8, 0x1ee8,
- 0x1eea, 0x1eea,
- 0x1eec, 0x1eec,
- 0x1eee, 0x1eee,
- 0x1ef0, 0x1ef0,
- 0x1ef2, 0x1ef2,
- 0x1ef4, 0x1ef4,
- 0x1ef6, 0x1ef6,
- 0x1ef8, 0x1ef8,
- 0x1f08, 0x1f0f,
- 0x1f18, 0x1f1d,
- 0x1f28, 0x1f2f,
- 0x1f38, 0x1f3f,
- 0x1f48, 0x1f4d,
- 0x1f59, 0x1f59,
- 0x1f5b, 0x1f5b,
- 0x1f5d, 0x1f5d,
- 0x1f5f, 0x1f5f,
- 0x1f68, 0x1f6f,
- 0x1fb8, 0x1fbb,
- 0x1fc8, 0x1fcb,
- 0x1fd8, 0x1fdb,
- 0x1fe8, 0x1fec,
- 0x1ff8, 0x1ffb,
- 0x2102, 0x2102,
- 0x2107, 0x2107,
- 0x210b, 0x210d,
- 0x2110, 0x2112,
- 0x2115, 0x2115,
- 0x2119, 0x211d,
- 0x2124, 0x2124,
- 0x2126, 0x2126,
- 0x2128, 0x2128,
- 0x212a, 0x212d,
- 0x2130, 0x2131,
- 0x2133, 0x2133,
- 0x213e, 0x213f,
- 0x2145, 0x2145,
- 0x2c00, 0x2c2e,
- 0x2c80, 0x2c80,
- 0x2c82, 0x2c82,
- 0x2c84, 0x2c84,
- 0x2c86, 0x2c86,
- 0x2c88, 0x2c88,
- 0x2c8a, 0x2c8a,
- 0x2c8c, 0x2c8c,
- 0x2c8e, 0x2c8e,
- 0x2c90, 0x2c90,
- 0x2c92, 0x2c92,
- 0x2c94, 0x2c94,
- 0x2c96, 0x2c96,
- 0x2c98, 0x2c98,
- 0x2c9a, 0x2c9a,
- 0x2c9c, 0x2c9c,
- 0x2c9e, 0x2c9e,
- 0x2ca0, 0x2ca0,
- 0x2ca2, 0x2ca2,
- 0x2ca4, 0x2ca4,
- 0x2ca6, 0x2ca6,
- 0x2ca8, 0x2ca8,
- 0x2caa, 0x2caa,
- 0x2cac, 0x2cac,
- 0x2cae, 0x2cae,
- 0x2cb0, 0x2cb0,
- 0x2cb2, 0x2cb2,
- 0x2cb4, 0x2cb4,
- 0x2cb6, 0x2cb6,
- 0x2cb8, 0x2cb8,
- 0x2cba, 0x2cba,
- 0x2cbc, 0x2cbc,
- 0x2cbe, 0x2cbe,
- 0x2cc0, 0x2cc0,
- 0x2cc2, 0x2cc2,
- 0x2cc4, 0x2cc4,
- 0x2cc6, 0x2cc6,
- 0x2cc8, 0x2cc8,
- 0x2cca, 0x2cca,
- 0x2ccc, 0x2ccc,
- 0x2cce, 0x2cce,
- 0x2cd0, 0x2cd0,
- 0x2cd2, 0x2cd2,
- 0x2cd4, 0x2cd4,
- 0x2cd6, 0x2cd6,
- 0x2cd8, 0x2cd8,
- 0x2cda, 0x2cda,
- 0x2cdc, 0x2cdc,
- 0x2cde, 0x2cde,
- 0x2ce0, 0x2ce0,
- 0x2ce2, 0x2ce2,
- 0xff21, 0xff3a,
- 0x10400, 0x10427,
- 0x1d400, 0x1d419,
- 0x1d434, 0x1d44d,
- 0x1d468, 0x1d481,
- 0x1d49c, 0x1d49c,
- 0x1d49e, 0x1d49f,
- 0x1d4a2, 0x1d4a2,
- 0x1d4a5, 0x1d4a6,
- 0x1d4a9, 0x1d4ac,
- 0x1d4ae, 0x1d4b5,
- 0x1d4d0, 0x1d4e9,
- 0x1d504, 0x1d505,
- 0x1d507, 0x1d50a,
- 0x1d50d, 0x1d514,
- 0x1d516, 0x1d51c,
- 0x1d538, 0x1d539,
- 0x1d53b, 0x1d53e,
- 0x1d540, 0x1d544,
- 0x1d546, 0x1d546,
- 0x1d54a, 0x1d550,
- 0x1d56c, 0x1d585,
- 0x1d5a0, 0x1d5b9,
- 0x1d5d4, 0x1d5ed,
- 0x1d608, 0x1d621,
- 0x1d63c, 0x1d655,
- 0x1d670, 0x1d689,
- 0x1d6a8, 0x1d6c0,
- 0x1d6e2, 0x1d6fa,
- 0x1d71c, 0x1d734,
- 0x1d756, 0x1d76e,
- 0x1d790, 0x1d7a8
-}; /* CR_Upper */
-
-/* 'XDigit': [[:XDigit:]] */
-static const OnigCodePoint CR_XDigit[] = {
- 3,
- 0x0030, 0x0039,
- 0x0041, 0x0046,
- 0x0061, 0x0066
-}; /* CR_XDigit */
-
-/* 'Word': [[:Word:]] */
-static const OnigCodePoint CR_Word[] = {
- 464,
- 0x0030, 0x0039,
- 0x0041, 0x005a,
- 0x005f, 0x005f,
- 0x0061, 0x007a,
- 0x00aa, 0x00aa,
- 0x00b2, 0x00b3,
- 0x00b5, 0x00b5,
- 0x00b9, 0x00ba,
- 0x00bc, 0x00be,
- 0x00c0, 0x00d6,
- 0x00d8, 0x00f6,
- 0x00f8, 0x0241,
- 0x0250, 0x02c1,
- 0x02c6, 0x02d1,
- 0x02e0, 0x02e4,
- 0x02ee, 0x02ee,
- 0x0300, 0x036f,
- 0x037a, 0x037a,
- 0x0386, 0x0386,
- 0x0388, 0x038a,
- 0x038c, 0x038c,
- 0x038e, 0x03a1,
- 0x03a3, 0x03ce,
- 0x03d0, 0x03f5,
- 0x03f7, 0x0481,
- 0x0483, 0x0486,
- 0x0488, 0x04ce,
- 0x04d0, 0x04f9,
- 0x0500, 0x050f,
- 0x0531, 0x0556,
- 0x0559, 0x0559,
- 0x0561, 0x0587,
- 0x0591, 0x05b9,
- 0x05bb, 0x05bd,
- 0x05bf, 0x05bf,
- 0x05c1, 0x05c2,
- 0x05c4, 0x05c5,
- 0x05c7, 0x05c7,
- 0x05d0, 0x05ea,
- 0x05f0, 0x05f2,
- 0x0610, 0x0615,
- 0x0621, 0x063a,
- 0x0640, 0x065e,
- 0x0660, 0x0669,
- 0x066e, 0x06d3,
- 0x06d5, 0x06dc,
- 0x06de, 0x06e8,
- 0x06ea, 0x06fc,
- 0x06ff, 0x06ff,
- 0x0710, 0x074a,
- 0x074d, 0x076d,
- 0x0780, 0x07b1,
- 0x0901, 0x0939,
- 0x093c, 0x094d,
- 0x0950, 0x0954,
- 0x0958, 0x0963,
- 0x0966, 0x096f,
- 0x097d, 0x097d,
- 0x0981, 0x0983,
- 0x0985, 0x098c,
- 0x098f, 0x0990,
- 0x0993, 0x09a8,
- 0x09aa, 0x09b0,
- 0x09b2, 0x09b2,
- 0x09b6, 0x09b9,
- 0x09bc, 0x09c4,
- 0x09c7, 0x09c8,
- 0x09cb, 0x09ce,
- 0x09d7, 0x09d7,
- 0x09dc, 0x09dd,
- 0x09df, 0x09e3,
- 0x09e6, 0x09f1,
- 0x09f4, 0x09f9,
- 0x0a01, 0x0a03,
- 0x0a05, 0x0a0a,
- 0x0a0f, 0x0a10,
- 0x0a13, 0x0a28,
- 0x0a2a, 0x0a30,
- 0x0a32, 0x0a33,
- 0x0a35, 0x0a36,
- 0x0a38, 0x0a39,
- 0x0a3c, 0x0a3c,
- 0x0a3e, 0x0a42,
- 0x0a47, 0x0a48,
- 0x0a4b, 0x0a4d,
- 0x0a59, 0x0a5c,
- 0x0a5e, 0x0a5e,
- 0x0a66, 0x0a74,
- 0x0a81, 0x0a83,
- 0x0a85, 0x0a8d,
- 0x0a8f, 0x0a91,
- 0x0a93, 0x0aa8,
- 0x0aaa, 0x0ab0,
- 0x0ab2, 0x0ab3,
- 0x0ab5, 0x0ab9,
- 0x0abc, 0x0ac5,
- 0x0ac7, 0x0ac9,
- 0x0acb, 0x0acd,
- 0x0ad0, 0x0ad0,
- 0x0ae0, 0x0ae3,
- 0x0ae6, 0x0aef,
- 0x0b01, 0x0b03,
- 0x0b05, 0x0b0c,
- 0x0b0f, 0x0b10,
- 0x0b13, 0x0b28,
- 0x0b2a, 0x0b30,
- 0x0b32, 0x0b33,
- 0x0b35, 0x0b39,
- 0x0b3c, 0x0b43,
- 0x0b47, 0x0b48,
- 0x0b4b, 0x0b4d,
- 0x0b56, 0x0b57,
- 0x0b5c, 0x0b5d,
- 0x0b5f, 0x0b61,
- 0x0b66, 0x0b6f,
- 0x0b71, 0x0b71,
- 0x0b82, 0x0b83,
- 0x0b85, 0x0b8a,
- 0x0b8e, 0x0b90,
- 0x0b92, 0x0b95,
- 0x0b99, 0x0b9a,
- 0x0b9c, 0x0b9c,
- 0x0b9e, 0x0b9f,
- 0x0ba3, 0x0ba4,
- 0x0ba8, 0x0baa,
- 0x0bae, 0x0bb9,
- 0x0bbe, 0x0bc2,
- 0x0bc6, 0x0bc8,
- 0x0bca, 0x0bcd,
- 0x0bd7, 0x0bd7,
- 0x0be6, 0x0bf2,
- 0x0c01, 0x0c03,
- 0x0c05, 0x0c0c,
- 0x0c0e, 0x0c10,
- 0x0c12, 0x0c28,
- 0x0c2a, 0x0c33,
- 0x0c35, 0x0c39,
- 0x0c3e, 0x0c44,
- 0x0c46, 0x0c48,
- 0x0c4a, 0x0c4d,
- 0x0c55, 0x0c56,
- 0x0c60, 0x0c61,
- 0x0c66, 0x0c6f,
- 0x0c82, 0x0c83,
- 0x0c85, 0x0c8c,
- 0x0c8e, 0x0c90,
- 0x0c92, 0x0ca8,
- 0x0caa, 0x0cb3,
- 0x0cb5, 0x0cb9,
- 0x0cbc, 0x0cc4,
- 0x0cc6, 0x0cc8,
- 0x0cca, 0x0ccd,
- 0x0cd5, 0x0cd6,
- 0x0cde, 0x0cde,
- 0x0ce0, 0x0ce1,
- 0x0ce6, 0x0cef,
- 0x0d02, 0x0d03,
- 0x0d05, 0x0d0c,
- 0x0d0e, 0x0d10,
- 0x0d12, 0x0d28,
- 0x0d2a, 0x0d39,
- 0x0d3e, 0x0d43,
- 0x0d46, 0x0d48,
- 0x0d4a, 0x0d4d,
- 0x0d57, 0x0d57,
- 0x0d60, 0x0d61,
- 0x0d66, 0x0d6f,
- 0x0d82, 0x0d83,
- 0x0d85, 0x0d96,
- 0x0d9a, 0x0db1,
- 0x0db3, 0x0dbb,
- 0x0dbd, 0x0dbd,
- 0x0dc0, 0x0dc6,
- 0x0dca, 0x0dca,
- 0x0dcf, 0x0dd4,
- 0x0dd6, 0x0dd6,
- 0x0dd8, 0x0ddf,
- 0x0df2, 0x0df3,
- 0x0e01, 0x0e3a,
- 0x0e40, 0x0e4e,
- 0x0e50, 0x0e59,
- 0x0e81, 0x0e82,
- 0x0e84, 0x0e84,
- 0x0e87, 0x0e88,
- 0x0e8a, 0x0e8a,
- 0x0e8d, 0x0e8d,
- 0x0e94, 0x0e97,
- 0x0e99, 0x0e9f,
- 0x0ea1, 0x0ea3,
- 0x0ea5, 0x0ea5,
- 0x0ea7, 0x0ea7,
- 0x0eaa, 0x0eab,
- 0x0ead, 0x0eb9,
- 0x0ebb, 0x0ebd,
- 0x0ec0, 0x0ec4,
- 0x0ec6, 0x0ec6,
- 0x0ec8, 0x0ecd,
- 0x0ed0, 0x0ed9,
- 0x0edc, 0x0edd,
- 0x0f00, 0x0f00,
- 0x0f18, 0x0f19,
- 0x0f20, 0x0f33,
- 0x0f35, 0x0f35,
- 0x0f37, 0x0f37,
- 0x0f39, 0x0f39,
- 0x0f3e, 0x0f47,
- 0x0f49, 0x0f6a,
- 0x0f71, 0x0f84,
- 0x0f86, 0x0f8b,
- 0x0f90, 0x0f97,
- 0x0f99, 0x0fbc,
- 0x0fc6, 0x0fc6,
- 0x1000, 0x1021,
- 0x1023, 0x1027,
- 0x1029, 0x102a,
- 0x102c, 0x1032,
- 0x1036, 0x1039,
- 0x1040, 0x1049,
- 0x1050, 0x1059,
- 0x10a0, 0x10c5,
- 0x10d0, 0x10fa,
- 0x10fc, 0x10fc,
- 0x1100, 0x1159,
- 0x115f, 0x11a2,
- 0x11a8, 0x11f9,
- 0x1200, 0x1248,
- 0x124a, 0x124d,
- 0x1250, 0x1256,
- 0x1258, 0x1258,
- 0x125a, 0x125d,
- 0x1260, 0x1288,
- 0x128a, 0x128d,
- 0x1290, 0x12b0,
- 0x12b2, 0x12b5,
- 0x12b8, 0x12be,
- 0x12c0, 0x12c0,
- 0x12c2, 0x12c5,
- 0x12c8, 0x12d6,
- 0x12d8, 0x1310,
- 0x1312, 0x1315,
- 0x1318, 0x135a,
- 0x135f, 0x135f,
- 0x1369, 0x137c,
- 0x1380, 0x138f,
- 0x13a0, 0x13f4,
- 0x1401, 0x166c,
- 0x166f, 0x1676,
- 0x1681, 0x169a,
- 0x16a0, 0x16ea,
- 0x16ee, 0x16f0,
- 0x1700, 0x170c,
- 0x170e, 0x1714,
- 0x1720, 0x1734,
- 0x1740, 0x1753,
- 0x1760, 0x176c,
- 0x176e, 0x1770,
- 0x1772, 0x1773,
- 0x1780, 0x17b3,
- 0x17b6, 0x17d3,
- 0x17d7, 0x17d7,
- 0x17dc, 0x17dd,
- 0x17e0, 0x17e9,
- 0x17f0, 0x17f9,
- 0x180b, 0x180d,
- 0x1810, 0x1819,
- 0x1820, 0x1877,
- 0x1880, 0x18a9,
- 0x1900, 0x191c,
- 0x1920, 0x192b,
- 0x1930, 0x193b,
- 0x1946, 0x196d,
- 0x1970, 0x1974,
- 0x1980, 0x19a9,
- 0x19b0, 0x19c9,
- 0x19d0, 0x19d9,
- 0x1a00, 0x1a1b,
- 0x1d00, 0x1dc3,
- 0x1e00, 0x1e9b,
- 0x1ea0, 0x1ef9,
- 0x1f00, 0x1f15,
- 0x1f18, 0x1f1d,
- 0x1f20, 0x1f45,
- 0x1f48, 0x1f4d,
- 0x1f50, 0x1f57,
- 0x1f59, 0x1f59,
- 0x1f5b, 0x1f5b,
- 0x1f5d, 0x1f5d,
- 0x1f5f, 0x1f7d,
- 0x1f80, 0x1fb4,
- 0x1fb6, 0x1fbc,
- 0x1fbe, 0x1fbe,
- 0x1fc2, 0x1fc4,
- 0x1fc6, 0x1fcc,
- 0x1fd0, 0x1fd3,
- 0x1fd6, 0x1fdb,
- 0x1fe0, 0x1fec,
- 0x1ff2, 0x1ff4,
- 0x1ff6, 0x1ffc,
- 0x203f, 0x2040,
- 0x2054, 0x2054,
- 0x2070, 0x2071,
- 0x2074, 0x2079,
- 0x207f, 0x2089,
- 0x2090, 0x2094,
- 0x20d0, 0x20eb,
- 0x2102, 0x2102,
- 0x2107, 0x2107,
- 0x210a, 0x2113,
- 0x2115, 0x2115,
- 0x2119, 0x211d,
- 0x2124, 0x2124,
- 0x2126, 0x2126,
- 0x2128, 0x2128,
- 0x212a, 0x212d,
- 0x212f, 0x2131,
- 0x2133, 0x2139,
- 0x213c, 0x213f,
- 0x2145, 0x2149,
- 0x2153, 0x2183,
- 0x2460, 0x249b,
- 0x24ea, 0x24ff,
- 0x2776, 0x2793,
- 0x2c00, 0x2c2e,
- 0x2c30, 0x2c5e,
- 0x2c80, 0x2ce4,
- 0x2cfd, 0x2cfd,
- 0x2d00, 0x2d25,
- 0x2d30, 0x2d65,
- 0x2d6f, 0x2d6f,
- 0x2d80, 0x2d96,
- 0x2da0, 0x2da6,
- 0x2da8, 0x2dae,
- 0x2db0, 0x2db6,
- 0x2db8, 0x2dbe,
- 0x2dc0, 0x2dc6,
- 0x2dc8, 0x2dce,
- 0x2dd0, 0x2dd6,
- 0x2dd8, 0x2dde,
- 0x3005, 0x3007,
- 0x3021, 0x302f,
- 0x3031, 0x3035,
- 0x3038, 0x303c,
- 0x3041, 0x3096,
- 0x3099, 0x309a,
- 0x309d, 0x309f,
- 0x30a1, 0x30fa,
- 0x30fc, 0x30ff,
- 0x3105, 0x312c,
- 0x3131, 0x318e,
- 0x3192, 0x3195,
- 0x31a0, 0x31b7,
- 0x31f0, 0x31ff,
- 0x3220, 0x3229,
- 0x3251, 0x325f,
- 0x3280, 0x3289,
- 0x32b1, 0x32bf,
- 0x3400, 0x4db5,
- 0x4e00, 0x9fbb,
- 0xa000, 0xa48c,
- 0xa800, 0xa827,
- 0xac00, 0xd7a3,
- 0xf900, 0xfa2d,
- 0xfa30, 0xfa6a,
- 0xfa70, 0xfad9,
- 0xfb00, 0xfb06,
- 0xfb13, 0xfb17,
- 0xfb1d, 0xfb28,
- 0xfb2a, 0xfb36,
- 0xfb38, 0xfb3c,
- 0xfb3e, 0xfb3e,
- 0xfb40, 0xfb41,
- 0xfb43, 0xfb44,
- 0xfb46, 0xfbb1,
- 0xfbd3, 0xfd3d,
- 0xfd50, 0xfd8f,
- 0xfd92, 0xfdc7,
- 0xfdf0, 0xfdfb,
- 0xfe00, 0xfe0f,
- 0xfe20, 0xfe23,
- 0xfe33, 0xfe34,
- 0xfe4d, 0xfe4f,
- 0xfe70, 0xfe74,
- 0xfe76, 0xfefc,
- 0xff10, 0xff19,
- 0xff21, 0xff3a,
- 0xff3f, 0xff3f,
- 0xff41, 0xff5a,
- 0xff66, 0xffbe,
- 0xffc2, 0xffc7,
- 0xffca, 0xffcf,
- 0xffd2, 0xffd7,
- 0xffda, 0xffdc,
- 0x10000, 0x1000b,
- 0x1000d, 0x10026,
- 0x10028, 0x1003a,
- 0x1003c, 0x1003d,
- 0x1003f, 0x1004d,
- 0x10050, 0x1005d,
- 0x10080, 0x100fa,
- 0x10107, 0x10133,
- 0x10140, 0x10178,
- 0x1018a, 0x1018a,
- 0x10300, 0x1031e,
- 0x10320, 0x10323,
- 0x10330, 0x1034a,
- 0x10380, 0x1039d,
- 0x103a0, 0x103c3,
- 0x103c8, 0x103cf,
- 0x103d1, 0x103d5,
- 0x10400, 0x1049d,
- 0x104a0, 0x104a9,
- 0x10800, 0x10805,
- 0x10808, 0x10808,
- 0x1080a, 0x10835,
- 0x10837, 0x10838,
- 0x1083c, 0x1083c,
- 0x1083f, 0x1083f,
- 0x10a00, 0x10a03,
- 0x10a05, 0x10a06,
- 0x10a0c, 0x10a13,
- 0x10a15, 0x10a17,
- 0x10a19, 0x10a33,
- 0x10a38, 0x10a3a,
- 0x10a3f, 0x10a47,
- 0x1d165, 0x1d169,
- 0x1d16d, 0x1d172,
- 0x1d17b, 0x1d182,
- 0x1d185, 0x1d18b,
- 0x1d1aa, 0x1d1ad,
- 0x1d242, 0x1d244,
- 0x1d400, 0x1d454,
- 0x1d456, 0x1d49c,
- 0x1d49e, 0x1d49f,
- 0x1d4a2, 0x1d4a2,
- 0x1d4a5, 0x1d4a6,
- 0x1d4a9, 0x1d4ac,
- 0x1d4ae, 0x1d4b9,
- 0x1d4bb, 0x1d4bb,
- 0x1d4bd, 0x1d4c3,
- 0x1d4c5, 0x1d505,
- 0x1d507, 0x1d50a,
- 0x1d50d, 0x1d514,
- 0x1d516, 0x1d51c,
- 0x1d51e, 0x1d539,
- 0x1d53b, 0x1d53e,
- 0x1d540, 0x1d544,
- 0x1d546, 0x1d546,
- 0x1d54a, 0x1d550,
- 0x1d552, 0x1d6a5,
- 0x1d6a8, 0x1d6c0,
- 0x1d6c2, 0x1d6da,
- 0x1d6dc, 0x1d6fa,
- 0x1d6fc, 0x1d714,
- 0x1d716, 0x1d734,
- 0x1d736, 0x1d74e,
- 0x1d750, 0x1d76e,
- 0x1d770, 0x1d788,
- 0x1d78a, 0x1d7a8,
- 0x1d7aa, 0x1d7c2,
- 0x1d7c4, 0x1d7c9,
- 0x1d7ce, 0x1d7ff,
- 0x20000, 0x2a6d6,
- 0x2f800, 0x2fa1d,
- 0xe0100, 0xe01ef
-}; /* CR_Word */
-
-/* 'Alnum': [[:Alnum:]] */
-static const OnigCodePoint CR_Alnum[] = {
- 436,
- 0x0030, 0x0039,
- 0x0041, 0x005a,
- 0x0061, 0x007a,
- 0x00aa, 0x00aa,
- 0x00b5, 0x00b5,
- 0x00ba, 0x00ba,
- 0x00c0, 0x00d6,
- 0x00d8, 0x00f6,
- 0x00f8, 0x0241,
- 0x0250, 0x02c1,
- 0x02c6, 0x02d1,
- 0x02e0, 0x02e4,
- 0x02ee, 0x02ee,
- 0x0300, 0x036f,
- 0x037a, 0x037a,
- 0x0386, 0x0386,
- 0x0388, 0x038a,
- 0x038c, 0x038c,
- 0x038e, 0x03a1,
- 0x03a3, 0x03ce,
- 0x03d0, 0x03f5,
- 0x03f7, 0x0481,
- 0x0483, 0x0486,
- 0x0488, 0x04ce,
- 0x04d0, 0x04f9,
- 0x0500, 0x050f,
- 0x0531, 0x0556,
- 0x0559, 0x0559,
- 0x0561, 0x0587,
- 0x0591, 0x05b9,
- 0x05bb, 0x05bd,
- 0x05bf, 0x05bf,
- 0x05c1, 0x05c2,
- 0x05c4, 0x05c5,
- 0x05c7, 0x05c7,
- 0x05d0, 0x05ea,
- 0x05f0, 0x05f2,
- 0x0610, 0x0615,
- 0x0621, 0x063a,
- 0x0640, 0x065e,
- 0x0660, 0x0669,
- 0x066e, 0x06d3,
- 0x06d5, 0x06dc,
- 0x06de, 0x06e8,
- 0x06ea, 0x06fc,
- 0x06ff, 0x06ff,
- 0x0710, 0x074a,
- 0x074d, 0x076d,
- 0x0780, 0x07b1,
- 0x0901, 0x0939,
- 0x093c, 0x094d,
- 0x0950, 0x0954,
- 0x0958, 0x0963,
- 0x0966, 0x096f,
- 0x097d, 0x097d,
- 0x0981, 0x0983,
- 0x0985, 0x098c,
- 0x098f, 0x0990,
- 0x0993, 0x09a8,
- 0x09aa, 0x09b0,
- 0x09b2, 0x09b2,
- 0x09b6, 0x09b9,
- 0x09bc, 0x09c4,
- 0x09c7, 0x09c8,
- 0x09cb, 0x09ce,
- 0x09d7, 0x09d7,
- 0x09dc, 0x09dd,
- 0x09df, 0x09e3,
- 0x09e6, 0x09f1,
- 0x0a01, 0x0a03,
- 0x0a05, 0x0a0a,
- 0x0a0f, 0x0a10,
- 0x0a13, 0x0a28,
- 0x0a2a, 0x0a30,
- 0x0a32, 0x0a33,
- 0x0a35, 0x0a36,
- 0x0a38, 0x0a39,
- 0x0a3c, 0x0a3c,
- 0x0a3e, 0x0a42,
- 0x0a47, 0x0a48,
- 0x0a4b, 0x0a4d,
- 0x0a59, 0x0a5c,
- 0x0a5e, 0x0a5e,
- 0x0a66, 0x0a74,
- 0x0a81, 0x0a83,
- 0x0a85, 0x0a8d,
- 0x0a8f, 0x0a91,
- 0x0a93, 0x0aa8,
- 0x0aaa, 0x0ab0,
- 0x0ab2, 0x0ab3,
- 0x0ab5, 0x0ab9,
- 0x0abc, 0x0ac5,
- 0x0ac7, 0x0ac9,
- 0x0acb, 0x0acd,
- 0x0ad0, 0x0ad0,
- 0x0ae0, 0x0ae3,
- 0x0ae6, 0x0aef,
- 0x0b01, 0x0b03,
- 0x0b05, 0x0b0c,
- 0x0b0f, 0x0b10,
- 0x0b13, 0x0b28,
- 0x0b2a, 0x0b30,
- 0x0b32, 0x0b33,
- 0x0b35, 0x0b39,
- 0x0b3c, 0x0b43,
- 0x0b47, 0x0b48,
- 0x0b4b, 0x0b4d,
- 0x0b56, 0x0b57,
- 0x0b5c, 0x0b5d,
- 0x0b5f, 0x0b61,
- 0x0b66, 0x0b6f,
- 0x0b71, 0x0b71,
- 0x0b82, 0x0b83,
- 0x0b85, 0x0b8a,
- 0x0b8e, 0x0b90,
- 0x0b92, 0x0b95,
- 0x0b99, 0x0b9a,
- 0x0b9c, 0x0b9c,
- 0x0b9e, 0x0b9f,
- 0x0ba3, 0x0ba4,
- 0x0ba8, 0x0baa,
- 0x0bae, 0x0bb9,
- 0x0bbe, 0x0bc2,
- 0x0bc6, 0x0bc8,
- 0x0bca, 0x0bcd,
- 0x0bd7, 0x0bd7,
- 0x0be6, 0x0bef,
- 0x0c01, 0x0c03,
- 0x0c05, 0x0c0c,
- 0x0c0e, 0x0c10,
- 0x0c12, 0x0c28,
- 0x0c2a, 0x0c33,
- 0x0c35, 0x0c39,
- 0x0c3e, 0x0c44,
- 0x0c46, 0x0c48,
- 0x0c4a, 0x0c4d,
- 0x0c55, 0x0c56,
- 0x0c60, 0x0c61,
- 0x0c66, 0x0c6f,
- 0x0c82, 0x0c83,
- 0x0c85, 0x0c8c,
- 0x0c8e, 0x0c90,
- 0x0c92, 0x0ca8,
- 0x0caa, 0x0cb3,
- 0x0cb5, 0x0cb9,
- 0x0cbc, 0x0cc4,
- 0x0cc6, 0x0cc8,
- 0x0cca, 0x0ccd,
- 0x0cd5, 0x0cd6,
- 0x0cde, 0x0cde,
- 0x0ce0, 0x0ce1,
- 0x0ce6, 0x0cef,
- 0x0d02, 0x0d03,
- 0x0d05, 0x0d0c,
- 0x0d0e, 0x0d10,
- 0x0d12, 0x0d28,
- 0x0d2a, 0x0d39,
- 0x0d3e, 0x0d43,
- 0x0d46, 0x0d48,
- 0x0d4a, 0x0d4d,
- 0x0d57, 0x0d57,
- 0x0d60, 0x0d61,
- 0x0d66, 0x0d6f,
- 0x0d82, 0x0d83,
- 0x0d85, 0x0d96,
- 0x0d9a, 0x0db1,
- 0x0db3, 0x0dbb,
- 0x0dbd, 0x0dbd,
- 0x0dc0, 0x0dc6,
- 0x0dca, 0x0dca,
- 0x0dcf, 0x0dd4,
- 0x0dd6, 0x0dd6,
- 0x0dd8, 0x0ddf,
- 0x0df2, 0x0df3,
- 0x0e01, 0x0e3a,
- 0x0e40, 0x0e4e,
- 0x0e50, 0x0e59,
- 0x0e81, 0x0e82,
- 0x0e84, 0x0e84,
- 0x0e87, 0x0e88,
- 0x0e8a, 0x0e8a,
- 0x0e8d, 0x0e8d,
- 0x0e94, 0x0e97,
- 0x0e99, 0x0e9f,
- 0x0ea1, 0x0ea3,
- 0x0ea5, 0x0ea5,
- 0x0ea7, 0x0ea7,
- 0x0eaa, 0x0eab,
- 0x0ead, 0x0eb9,
- 0x0ebb, 0x0ebd,
- 0x0ec0, 0x0ec4,
- 0x0ec6, 0x0ec6,
- 0x0ec8, 0x0ecd,
- 0x0ed0, 0x0ed9,
- 0x0edc, 0x0edd,
- 0x0f00, 0x0f00,
- 0x0f18, 0x0f19,
- 0x0f20, 0x0f29,
- 0x0f35, 0x0f35,
- 0x0f37, 0x0f37,
- 0x0f39, 0x0f39,
- 0x0f3e, 0x0f47,
- 0x0f49, 0x0f6a,
- 0x0f71, 0x0f84,
- 0x0f86, 0x0f8b,
- 0x0f90, 0x0f97,
- 0x0f99, 0x0fbc,
- 0x0fc6, 0x0fc6,
- 0x1000, 0x1021,
- 0x1023, 0x1027,
- 0x1029, 0x102a,
- 0x102c, 0x1032,
- 0x1036, 0x1039,
- 0x1040, 0x1049,
- 0x1050, 0x1059,
- 0x10a0, 0x10c5,
- 0x10d0, 0x10fa,
- 0x10fc, 0x10fc,
- 0x1100, 0x1159,
- 0x115f, 0x11a2,
- 0x11a8, 0x11f9,
- 0x1200, 0x1248,
- 0x124a, 0x124d,
- 0x1250, 0x1256,
- 0x1258, 0x1258,
- 0x125a, 0x125d,
- 0x1260, 0x1288,
- 0x128a, 0x128d,
- 0x1290, 0x12b0,
- 0x12b2, 0x12b5,
- 0x12b8, 0x12be,
- 0x12c0, 0x12c0,
- 0x12c2, 0x12c5,
- 0x12c8, 0x12d6,
- 0x12d8, 0x1310,
- 0x1312, 0x1315,
- 0x1318, 0x135a,
- 0x135f, 0x135f,
- 0x1380, 0x138f,
- 0x13a0, 0x13f4,
- 0x1401, 0x166c,
- 0x166f, 0x1676,
- 0x1681, 0x169a,
- 0x16a0, 0x16ea,
- 0x1700, 0x170c,
- 0x170e, 0x1714,
- 0x1720, 0x1734,
- 0x1740, 0x1753,
- 0x1760, 0x176c,
- 0x176e, 0x1770,
- 0x1772, 0x1773,
- 0x1780, 0x17b3,
- 0x17b6, 0x17d3,
- 0x17d7, 0x17d7,
- 0x17dc, 0x17dd,
- 0x17e0, 0x17e9,
- 0x180b, 0x180d,
- 0x1810, 0x1819,
- 0x1820, 0x1877,
- 0x1880, 0x18a9,
- 0x1900, 0x191c,
- 0x1920, 0x192b,
- 0x1930, 0x193b,
- 0x1946, 0x196d,
- 0x1970, 0x1974,
- 0x1980, 0x19a9,
- 0x19b0, 0x19c9,
- 0x19d0, 0x19d9,
- 0x1a00, 0x1a1b,
- 0x1d00, 0x1dc3,
- 0x1e00, 0x1e9b,
- 0x1ea0, 0x1ef9,
- 0x1f00, 0x1f15,
- 0x1f18, 0x1f1d,
- 0x1f20, 0x1f45,
- 0x1f48, 0x1f4d,
- 0x1f50, 0x1f57,
- 0x1f59, 0x1f59,
- 0x1f5b, 0x1f5b,
- 0x1f5d, 0x1f5d,
- 0x1f5f, 0x1f7d,
- 0x1f80, 0x1fb4,
- 0x1fb6, 0x1fbc,
- 0x1fbe, 0x1fbe,
- 0x1fc2, 0x1fc4,
- 0x1fc6, 0x1fcc,
- 0x1fd0, 0x1fd3,
- 0x1fd6, 0x1fdb,
- 0x1fe0, 0x1fec,
- 0x1ff2, 0x1ff4,
- 0x1ff6, 0x1ffc,
- 0x2071, 0x2071,
- 0x207f, 0x207f,
- 0x2090, 0x2094,
- 0x20d0, 0x20eb,
- 0x2102, 0x2102,
- 0x2107, 0x2107,
- 0x210a, 0x2113,
- 0x2115, 0x2115,
- 0x2119, 0x211d,
- 0x2124, 0x2124,
- 0x2126, 0x2126,
- 0x2128, 0x2128,
- 0x212a, 0x212d,
- 0x212f, 0x2131,
- 0x2133, 0x2139,
- 0x213c, 0x213f,
- 0x2145, 0x2149,
- 0x2c00, 0x2c2e,
- 0x2c30, 0x2c5e,
- 0x2c80, 0x2ce4,
- 0x2d00, 0x2d25,
- 0x2d30, 0x2d65,
- 0x2d6f, 0x2d6f,
- 0x2d80, 0x2d96,
- 0x2da0, 0x2da6,
- 0x2da8, 0x2dae,
- 0x2db0, 0x2db6,
- 0x2db8, 0x2dbe,
- 0x2dc0, 0x2dc6,
- 0x2dc8, 0x2dce,
- 0x2dd0, 0x2dd6,
- 0x2dd8, 0x2dde,
- 0x3005, 0x3006,
- 0x302a, 0x302f,
- 0x3031, 0x3035,
- 0x303b, 0x303c,
- 0x3041, 0x3096,
- 0x3099, 0x309a,
- 0x309d, 0x309f,
- 0x30a1, 0x30fa,
- 0x30fc, 0x30ff,
- 0x3105, 0x312c,
- 0x3131, 0x318e,
- 0x31a0, 0x31b7,
- 0x31f0, 0x31ff,
- 0x3400, 0x4db5,
- 0x4e00, 0x9fbb,
- 0xa000, 0xa48c,
- 0xa800, 0xa827,
- 0xac00, 0xd7a3,
- 0xf900, 0xfa2d,
- 0xfa30, 0xfa6a,
- 0xfa70, 0xfad9,
- 0xfb00, 0xfb06,
- 0xfb13, 0xfb17,
- 0xfb1d, 0xfb28,
- 0xfb2a, 0xfb36,
- 0xfb38, 0xfb3c,
- 0xfb3e, 0xfb3e,
- 0xfb40, 0xfb41,
- 0xfb43, 0xfb44,
- 0xfb46, 0xfbb1,
- 0xfbd3, 0xfd3d,
- 0xfd50, 0xfd8f,
- 0xfd92, 0xfdc7,
- 0xfdf0, 0xfdfb,
- 0xfe00, 0xfe0f,
- 0xfe20, 0xfe23,
- 0xfe70, 0xfe74,
- 0xfe76, 0xfefc,
- 0xff10, 0xff19,
- 0xff21, 0xff3a,
- 0xff41, 0xff5a,
- 0xff66, 0xffbe,
- 0xffc2, 0xffc7,
- 0xffca, 0xffcf,
- 0xffd2, 0xffd7,
- 0xffda, 0xffdc,
- 0x10000, 0x1000b,
- 0x1000d, 0x10026,
- 0x10028, 0x1003a,
- 0x1003c, 0x1003d,
- 0x1003f, 0x1004d,
- 0x10050, 0x1005d,
- 0x10080, 0x100fa,
- 0x10300, 0x1031e,
- 0x10330, 0x10349,
- 0x10380, 0x1039d,
- 0x103a0, 0x103c3,
- 0x103c8, 0x103cf,
- 0x10400, 0x1049d,
- 0x104a0, 0x104a9,
- 0x10800, 0x10805,
- 0x10808, 0x10808,
- 0x1080a, 0x10835,
- 0x10837, 0x10838,
- 0x1083c, 0x1083c,
- 0x1083f, 0x1083f,
- 0x10a00, 0x10a03,
- 0x10a05, 0x10a06,
- 0x10a0c, 0x10a13,
- 0x10a15, 0x10a17,
- 0x10a19, 0x10a33,
- 0x10a38, 0x10a3a,
- 0x10a3f, 0x10a3f,
- 0x1d165, 0x1d169,
- 0x1d16d, 0x1d172,
- 0x1d17b, 0x1d182,
- 0x1d185, 0x1d18b,
- 0x1d1aa, 0x1d1ad,
- 0x1d242, 0x1d244,
- 0x1d400, 0x1d454,
- 0x1d456, 0x1d49c,
- 0x1d49e, 0x1d49f,
- 0x1d4a2, 0x1d4a2,
- 0x1d4a5, 0x1d4a6,
- 0x1d4a9, 0x1d4ac,
- 0x1d4ae, 0x1d4b9,
- 0x1d4bb, 0x1d4bb,
- 0x1d4bd, 0x1d4c3,
- 0x1d4c5, 0x1d505,
- 0x1d507, 0x1d50a,
- 0x1d50d, 0x1d514,
- 0x1d516, 0x1d51c,
- 0x1d51e, 0x1d539,
- 0x1d53b, 0x1d53e,
- 0x1d540, 0x1d544,
- 0x1d546, 0x1d546,
- 0x1d54a, 0x1d550,
- 0x1d552, 0x1d6a5,
- 0x1d6a8, 0x1d6c0,
- 0x1d6c2, 0x1d6da,
- 0x1d6dc, 0x1d6fa,
- 0x1d6fc, 0x1d714,
- 0x1d716, 0x1d734,
- 0x1d736, 0x1d74e,
- 0x1d750, 0x1d76e,
- 0x1d770, 0x1d788,
- 0x1d78a, 0x1d7a8,
- 0x1d7aa, 0x1d7c2,
- 0x1d7c4, 0x1d7c9,
- 0x1d7ce, 0x1d7ff,
- 0x20000, 0x2a6d6,
- 0x2f800, 0x2fa1d,
- 0xe0100, 0xe01ef
-}; /* CR_Alnum */
-
-/* 'ASCII': [[:ASCII:]] */
-static const OnigCodePoint CR_ASCII[] = {
- 1,
- 0x0000, 0x007f
-}; /* CR_ASCII */
-
-#ifdef USE_UNICODE_PROPERTIES
-
-/* 'Any': - */
-static const OnigCodePoint CR_Any[] = {
- 1,
- 0x0000, 0x10ffff
-}; /* CR_Any */
-
-/* 'Assigned': - */
-static const OnigCodePoint CR_Assigned[] = {
- 420,
- 0x0000, 0x0241,
- 0x0250, 0x036f,
- 0x0374, 0x0375,
- 0x037a, 0x037a,
- 0x037e, 0x037e,
- 0x0384, 0x038a,
- 0x038c, 0x038c,
- 0x038e, 0x03a1,
- 0x03a3, 0x03ce,
- 0x03d0, 0x0486,
- 0x0488, 0x04ce,
- 0x04d0, 0x04f9,
- 0x0500, 0x050f,
- 0x0531, 0x0556,
- 0x0559, 0x055f,
- 0x0561, 0x0587,
- 0x0589, 0x058a,
- 0x0591, 0x05b9,
- 0x05bb, 0x05c7,
- 0x05d0, 0x05ea,
- 0x05f0, 0x05f4,
- 0x0600, 0x0603,
- 0x060b, 0x0615,
- 0x061b, 0x061b,
- 0x061e, 0x061f,
- 0x0621, 0x063a,
- 0x0640, 0x065e,
- 0x0660, 0x070d,
- 0x070f, 0x074a,
- 0x074d, 0x076d,
- 0x0780, 0x07b1,
- 0x0901, 0x0939,
- 0x093c, 0x094d,
- 0x0950, 0x0954,
- 0x0958, 0x0970,
- 0x097d, 0x097d,
- 0x0981, 0x0983,
- 0x0985, 0x098c,
- 0x098f, 0x0990,
- 0x0993, 0x09a8,
- 0x09aa, 0x09b0,
- 0x09b2, 0x09b2,
- 0x09b6, 0x09b9,
- 0x09bc, 0x09c4,
- 0x09c7, 0x09c8,
- 0x09cb, 0x09ce,
- 0x09d7, 0x09d7,
- 0x09dc, 0x09dd,
- 0x09df, 0x09e3,
- 0x09e6, 0x09fa,
- 0x0a01, 0x0a03,
- 0x0a05, 0x0a0a,
- 0x0a0f, 0x0a10,
- 0x0a13, 0x0a28,
- 0x0a2a, 0x0a30,
- 0x0a32, 0x0a33,
- 0x0a35, 0x0a36,
- 0x0a38, 0x0a39,
- 0x0a3c, 0x0a3c,
- 0x0a3e, 0x0a42,
- 0x0a47, 0x0a48,
- 0x0a4b, 0x0a4d,
- 0x0a59, 0x0a5c,
- 0x0a5e, 0x0a5e,
- 0x0a66, 0x0a74,
- 0x0a81, 0x0a83,
- 0x0a85, 0x0a8d,
- 0x0a8f, 0x0a91,
- 0x0a93, 0x0aa8,
- 0x0aaa, 0x0ab0,
- 0x0ab2, 0x0ab3,
- 0x0ab5, 0x0ab9,
- 0x0abc, 0x0ac5,
- 0x0ac7, 0x0ac9,
- 0x0acb, 0x0acd,
- 0x0ad0, 0x0ad0,
- 0x0ae0, 0x0ae3,
- 0x0ae6, 0x0aef,
- 0x0af1, 0x0af1,
- 0x0b01, 0x0b03,
- 0x0b05, 0x0b0c,
- 0x0b0f, 0x0b10,
- 0x0b13, 0x0b28,
- 0x0b2a, 0x0b30,
- 0x0b32, 0x0b33,
- 0x0b35, 0x0b39,
- 0x0b3c, 0x0b43,
- 0x0b47, 0x0b48,
- 0x0b4b, 0x0b4d,
- 0x0b56, 0x0b57,
- 0x0b5c, 0x0b5d,
- 0x0b5f, 0x0b61,
- 0x0b66, 0x0b71,
- 0x0b82, 0x0b83,
- 0x0b85, 0x0b8a,
- 0x0b8e, 0x0b90,
- 0x0b92, 0x0b95,
- 0x0b99, 0x0b9a,
- 0x0b9c, 0x0b9c,
- 0x0b9e, 0x0b9f,
- 0x0ba3, 0x0ba4,
- 0x0ba8, 0x0baa,
- 0x0bae, 0x0bb9,
- 0x0bbe, 0x0bc2,
- 0x0bc6, 0x0bc8,
- 0x0bca, 0x0bcd,
- 0x0bd7, 0x0bd7,
- 0x0be6, 0x0bfa,
- 0x0c01, 0x0c03,
- 0x0c05, 0x0c0c,
- 0x0c0e, 0x0c10,
- 0x0c12, 0x0c28,
- 0x0c2a, 0x0c33,
- 0x0c35, 0x0c39,
- 0x0c3e, 0x0c44,
- 0x0c46, 0x0c48,
- 0x0c4a, 0x0c4d,
- 0x0c55, 0x0c56,
- 0x0c60, 0x0c61,
- 0x0c66, 0x0c6f,
- 0x0c82, 0x0c83,
- 0x0c85, 0x0c8c,
- 0x0c8e, 0x0c90,
- 0x0c92, 0x0ca8,
- 0x0caa, 0x0cb3,
- 0x0cb5, 0x0cb9,
- 0x0cbc, 0x0cc4,
- 0x0cc6, 0x0cc8,
- 0x0cca, 0x0ccd,
- 0x0cd5, 0x0cd6,
- 0x0cde, 0x0cde,
- 0x0ce0, 0x0ce1,
- 0x0ce6, 0x0cef,
- 0x0d02, 0x0d03,
- 0x0d05, 0x0d0c,
- 0x0d0e, 0x0d10,
- 0x0d12, 0x0d28,
- 0x0d2a, 0x0d39,
- 0x0d3e, 0x0d43,
- 0x0d46, 0x0d48,
- 0x0d4a, 0x0d4d,
- 0x0d57, 0x0d57,
- 0x0d60, 0x0d61,
- 0x0d66, 0x0d6f,
- 0x0d82, 0x0d83,
- 0x0d85, 0x0d96,
- 0x0d9a, 0x0db1,
- 0x0db3, 0x0dbb,
- 0x0dbd, 0x0dbd,
- 0x0dc0, 0x0dc6,
- 0x0dca, 0x0dca,
- 0x0dcf, 0x0dd4,
- 0x0dd6, 0x0dd6,
- 0x0dd8, 0x0ddf,
- 0x0df2, 0x0df4,
- 0x0e01, 0x0e3a,
- 0x0e3f, 0x0e5b,
- 0x0e81, 0x0e82,
- 0x0e84, 0x0e84,
- 0x0e87, 0x0e88,
- 0x0e8a, 0x0e8a,
- 0x0e8d, 0x0e8d,
- 0x0e94, 0x0e97,
- 0x0e99, 0x0e9f,
- 0x0ea1, 0x0ea3,
- 0x0ea5, 0x0ea5,
- 0x0ea7, 0x0ea7,
- 0x0eaa, 0x0eab,
- 0x0ead, 0x0eb9,
- 0x0ebb, 0x0ebd,
- 0x0ec0, 0x0ec4,
- 0x0ec6, 0x0ec6,
- 0x0ec8, 0x0ecd,
- 0x0ed0, 0x0ed9,
- 0x0edc, 0x0edd,
- 0x0f00, 0x0f47,
- 0x0f49, 0x0f6a,
- 0x0f71, 0x0f8b,
- 0x0f90, 0x0f97,
- 0x0f99, 0x0fbc,
- 0x0fbe, 0x0fcc,
- 0x0fcf, 0x0fd1,
- 0x1000, 0x1021,
- 0x1023, 0x1027,
- 0x1029, 0x102a,
- 0x102c, 0x1032,
- 0x1036, 0x1039,
- 0x1040, 0x1059,
- 0x10a0, 0x10c5,
- 0x10d0, 0x10fc,
- 0x1100, 0x1159,
- 0x115f, 0x11a2,
- 0x11a8, 0x11f9,
- 0x1200, 0x1248,
- 0x124a, 0x124d,
- 0x1250, 0x1256,
- 0x1258, 0x1258,
- 0x125a, 0x125d,
- 0x1260, 0x1288,
- 0x128a, 0x128d,
- 0x1290, 0x12b0,
- 0x12b2, 0x12b5,
- 0x12b8, 0x12be,
- 0x12c0, 0x12c0,
- 0x12c2, 0x12c5,
- 0x12c8, 0x12d6,
- 0x12d8, 0x1310,
- 0x1312, 0x1315,
- 0x1318, 0x135a,
- 0x135f, 0x137c,
- 0x1380, 0x1399,
- 0x13a0, 0x13f4,
- 0x1401, 0x1676,
- 0x1680, 0x169c,
- 0x16a0, 0x16f0,
- 0x1700, 0x170c,
- 0x170e, 0x1714,
- 0x1720, 0x1736,
- 0x1740, 0x1753,
- 0x1760, 0x176c,
- 0x176e, 0x1770,
- 0x1772, 0x1773,
- 0x1780, 0x17dd,
- 0x17e0, 0x17e9,
- 0x17f0, 0x17f9,
- 0x1800, 0x180e,
- 0x1810, 0x1819,
- 0x1820, 0x1877,
- 0x1880, 0x18a9,
- 0x1900, 0x191c,
- 0x1920, 0x192b,
- 0x1930, 0x193b,
- 0x1940, 0x1940,
- 0x1944, 0x196d,
- 0x1970, 0x1974,
- 0x1980, 0x19a9,
- 0x19b0, 0x19c9,
- 0x19d0, 0x19d9,
- 0x19de, 0x1a1b,
- 0x1a1e, 0x1a1f,
- 0x1d00, 0x1dc3,
- 0x1e00, 0x1e9b,
- 0x1ea0, 0x1ef9,
- 0x1f00, 0x1f15,
- 0x1f18, 0x1f1d,
- 0x1f20, 0x1f45,
- 0x1f48, 0x1f4d,
- 0x1f50, 0x1f57,
- 0x1f59, 0x1f59,
- 0x1f5b, 0x1f5b,
- 0x1f5d, 0x1f5d,
- 0x1f5f, 0x1f7d,
- 0x1f80, 0x1fb4,
- 0x1fb6, 0x1fc4,
- 0x1fc6, 0x1fd3,
- 0x1fd6, 0x1fdb,
- 0x1fdd, 0x1fef,
- 0x1ff2, 0x1ff4,
- 0x1ff6, 0x1ffe,
- 0x2000, 0x2063,
- 0x206a, 0x2071,
- 0x2074, 0x208e,
- 0x2090, 0x2094,
- 0x20a0, 0x20b5,
- 0x20d0, 0x20eb,
- 0x2100, 0x214c,
- 0x2153, 0x2183,
- 0x2190, 0x23db,
- 0x2400, 0x2426,
- 0x2440, 0x244a,
- 0x2460, 0x269c,
- 0x26a0, 0x26b1,
- 0x2701, 0x2704,
- 0x2706, 0x2709,
- 0x270c, 0x2727,
- 0x2729, 0x274b,
- 0x274d, 0x274d,
- 0x274f, 0x2752,
- 0x2756, 0x2756,
- 0x2758, 0x275e,
- 0x2761, 0x2794,
- 0x2798, 0x27af,
- 0x27b1, 0x27be,
- 0x27c0, 0x27c6,
- 0x27d0, 0x27eb,
- 0x27f0, 0x2b13,
- 0x2c00, 0x2c2e,
- 0x2c30, 0x2c5e,
- 0x2c80, 0x2cea,
- 0x2cf9, 0x2d25,
- 0x2d30, 0x2d65,
- 0x2d6f, 0x2d6f,
- 0x2d80, 0x2d96,
- 0x2da0, 0x2da6,
- 0x2da8, 0x2dae,
- 0x2db0, 0x2db6,
- 0x2db8, 0x2dbe,
- 0x2dc0, 0x2dc6,
- 0x2dc8, 0x2dce,
- 0x2dd0, 0x2dd6,
- 0x2dd8, 0x2dde,
- 0x2e00, 0x2e17,
- 0x2e1c, 0x2e1d,
- 0x2e80, 0x2e99,
- 0x2e9b, 0x2ef3,
- 0x2f00, 0x2fd5,
- 0x2ff0, 0x2ffb,
- 0x3000, 0x303f,
- 0x3041, 0x3096,
- 0x3099, 0x30ff,
- 0x3105, 0x312c,
- 0x3131, 0x318e,
- 0x3190, 0x31b7,
- 0x31c0, 0x31cf,
- 0x31f0, 0x321e,
- 0x3220, 0x3243,
- 0x3250, 0x32fe,
- 0x3300, 0x4db5,
- 0x4dc0, 0x9fbb,
- 0xa000, 0xa48c,
- 0xa490, 0xa4c6,
- 0xa700, 0xa716,
- 0xa800, 0xa82b,
- 0xac00, 0xd7a3,
- 0xd800, 0xfa2d,
- 0xfa30, 0xfa6a,
- 0xfa70, 0xfad9,
- 0xfb00, 0xfb06,
- 0xfb13, 0xfb17,
- 0xfb1d, 0xfb36,
- 0xfb38, 0xfb3c,
- 0xfb3e, 0xfb3e,
- 0xfb40, 0xfb41,
- 0xfb43, 0xfb44,
- 0xfb46, 0xfbb1,
- 0xfbd3, 0xfd3f,
- 0xfd50, 0xfd8f,
- 0xfd92, 0xfdc7,
- 0xfdf0, 0xfdfd,
- 0xfe00, 0xfe19,
- 0xfe20, 0xfe23,
- 0xfe30, 0xfe52,
- 0xfe54, 0xfe66,
- 0xfe68, 0xfe6b,
- 0xfe70, 0xfe74,
- 0xfe76, 0xfefc,
- 0xfeff, 0xfeff,
- 0xff01, 0xffbe,
- 0xffc2, 0xffc7,
- 0xffca, 0xffcf,
- 0xffd2, 0xffd7,
- 0xffda, 0xffdc,
- 0xffe0, 0xffe6,
- 0xffe8, 0xffee,
- 0xfff9, 0xfffd,
- 0x10000, 0x1000b,
- 0x1000d, 0x10026,
- 0x10028, 0x1003a,
- 0x1003c, 0x1003d,
- 0x1003f, 0x1004d,
- 0x10050, 0x1005d,
- 0x10080, 0x100fa,
- 0x10100, 0x10102,
- 0x10107, 0x10133,
- 0x10137, 0x1018a,
- 0x10300, 0x1031e,
- 0x10320, 0x10323,
- 0x10330, 0x1034a,
- 0x10380, 0x1039d,
- 0x1039f, 0x103c3,
- 0x103c8, 0x103d5,
- 0x10400, 0x1049d,
- 0x104a0, 0x104a9,
- 0x10800, 0x10805,
- 0x10808, 0x10808,
- 0x1080a, 0x10835,
- 0x10837, 0x10838,
- 0x1083c, 0x1083c,
- 0x1083f, 0x1083f,
- 0x10a00, 0x10a03,
- 0x10a05, 0x10a06,
- 0x10a0c, 0x10a13,
- 0x10a15, 0x10a17,
- 0x10a19, 0x10a33,
- 0x10a38, 0x10a3a,
- 0x10a3f, 0x10a47,
- 0x10a50, 0x10a58,
- 0x1d000, 0x1d0f5,
- 0x1d100, 0x1d126,
- 0x1d12a, 0x1d1dd,
- 0x1d200, 0x1d245,
- 0x1d300, 0x1d356,
- 0x1d400, 0x1d454,
- 0x1d456, 0x1d49c,
- 0x1d49e, 0x1d49f,
- 0x1d4a2, 0x1d4a2,
- 0x1d4a5, 0x1d4a6,
- 0x1d4a9, 0x1d4ac,
- 0x1d4ae, 0x1d4b9,
- 0x1d4bb, 0x1d4bb,
- 0x1d4bd, 0x1d4c3,
- 0x1d4c5, 0x1d505,
- 0x1d507, 0x1d50a,
- 0x1d50d, 0x1d514,
- 0x1d516, 0x1d51c,
- 0x1d51e, 0x1d539,
- 0x1d53b, 0x1d53e,
- 0x1d540, 0x1d544,
- 0x1d546, 0x1d546,
- 0x1d54a, 0x1d550,
- 0x1d552, 0x1d6a5,
- 0x1d6a8, 0x1d7c9,
- 0x1d7ce, 0x1d7ff,
- 0x20000, 0x2a6d6,
- 0x2f800, 0x2fa1d,
- 0xe0001, 0xe0001,
- 0xe0020, 0xe007f,
- 0xe0100, 0xe01ef,
- 0xf0000, 0xffffd,
- 0x100000, 0x10fffd
-}; /* CR_Assigned */
-
-/* 'C': Major Category */
-static const OnigCodePoint CR_C[] = {
- 422,
- 0x0000, 0x001f,
- 0x007f, 0x009f,
- 0x00ad, 0x00ad,
- 0x0242, 0x024f,
- 0x0370, 0x0373,
- 0x0376, 0x0379,
- 0x037b, 0x037d,
- 0x037f, 0x0383,
- 0x038b, 0x038b,
- 0x038d, 0x038d,
- 0x03a2, 0x03a2,
- 0x03cf, 0x03cf,
- 0x0487, 0x0487,
- 0x04cf, 0x04cf,
- 0x04fa, 0x04ff,
- 0x0510, 0x0530,
- 0x0557, 0x0558,
- 0x0560, 0x0560,
- 0x0588, 0x0588,
- 0x058b, 0x0590,
- 0x05ba, 0x05ba,
- 0x05c8, 0x05cf,
- 0x05eb, 0x05ef,
- 0x05f5, 0x060a,
- 0x0616, 0x061a,
- 0x061c, 0x061d,
- 0x0620, 0x0620,
- 0x063b, 0x063f,
- 0x065f, 0x065f,
- 0x06dd, 0x06dd,
- 0x070e, 0x070f,
- 0x074b, 0x074c,
- 0x076e, 0x077f,
- 0x07b2, 0x0900,
- 0x093a, 0x093b,
- 0x094e, 0x094f,
- 0x0955, 0x0957,
- 0x0971, 0x097c,
- 0x097e, 0x0980,
- 0x0984, 0x0984,
- 0x098d, 0x098e,
- 0x0991, 0x0992,
- 0x09a9, 0x09a9,
- 0x09b1, 0x09b1,
- 0x09b3, 0x09b5,
- 0x09ba, 0x09bb,
- 0x09c5, 0x09c6,
- 0x09c9, 0x09ca,
- 0x09cf, 0x09d6,
- 0x09d8, 0x09db,
- 0x09de, 0x09de,
- 0x09e4, 0x09e5,
- 0x09fb, 0x0a00,
- 0x0a04, 0x0a04,
- 0x0a0b, 0x0a0e,
- 0x0a11, 0x0a12,
- 0x0a29, 0x0a29,
- 0x0a31, 0x0a31,
- 0x0a34, 0x0a34,
- 0x0a37, 0x0a37,
- 0x0a3a, 0x0a3b,
- 0x0a3d, 0x0a3d,
- 0x0a43, 0x0a46,
- 0x0a49, 0x0a4a,
- 0x0a4e, 0x0a58,
- 0x0a5d, 0x0a5d,
- 0x0a5f, 0x0a65,
- 0x0a75, 0x0a80,
- 0x0a84, 0x0a84,
- 0x0a8e, 0x0a8e,
- 0x0a92, 0x0a92,
- 0x0aa9, 0x0aa9,
- 0x0ab1, 0x0ab1,
- 0x0ab4, 0x0ab4,
- 0x0aba, 0x0abb,
- 0x0ac6, 0x0ac6,
- 0x0aca, 0x0aca,
- 0x0ace, 0x0acf,
- 0x0ad1, 0x0adf,
- 0x0ae4, 0x0ae5,
- 0x0af0, 0x0af0,
- 0x0af2, 0x0b00,
- 0x0b04, 0x0b04,
- 0x0b0d, 0x0b0e,
- 0x0b11, 0x0b12,
- 0x0b29, 0x0b29,
- 0x0b31, 0x0b31,
- 0x0b34, 0x0b34,
- 0x0b3a, 0x0b3b,
- 0x0b44, 0x0b46,
- 0x0b49, 0x0b4a,
- 0x0b4e, 0x0b55,
- 0x0b58, 0x0b5b,
- 0x0b5e, 0x0b5e,
- 0x0b62, 0x0b65,
- 0x0b72, 0x0b81,
- 0x0b84, 0x0b84,
- 0x0b8b, 0x0b8d,
- 0x0b91, 0x0b91,
- 0x0b96, 0x0b98,
- 0x0b9b, 0x0b9b,
- 0x0b9d, 0x0b9d,
- 0x0ba0, 0x0ba2,
- 0x0ba5, 0x0ba7,
- 0x0bab, 0x0bad,
- 0x0bba, 0x0bbd,
- 0x0bc3, 0x0bc5,
- 0x0bc9, 0x0bc9,
- 0x0bce, 0x0bd6,
- 0x0bd8, 0x0be5,
- 0x0bfb, 0x0c00,
- 0x0c04, 0x0c04,
- 0x0c0d, 0x0c0d,
- 0x0c11, 0x0c11,
- 0x0c29, 0x0c29,
- 0x0c34, 0x0c34,
- 0x0c3a, 0x0c3d,
- 0x0c45, 0x0c45,
- 0x0c49, 0x0c49,
- 0x0c4e, 0x0c54,
- 0x0c57, 0x0c5f,
- 0x0c62, 0x0c65,
- 0x0c70, 0x0c81,
- 0x0c84, 0x0c84,
- 0x0c8d, 0x0c8d,
- 0x0c91, 0x0c91,
- 0x0ca9, 0x0ca9,
- 0x0cb4, 0x0cb4,
- 0x0cba, 0x0cbb,
- 0x0cc5, 0x0cc5,
- 0x0cc9, 0x0cc9,
- 0x0cce, 0x0cd4,
- 0x0cd7, 0x0cdd,
- 0x0cdf, 0x0cdf,
- 0x0ce2, 0x0ce5,
- 0x0cf0, 0x0d01,
- 0x0d04, 0x0d04,
- 0x0d0d, 0x0d0d,
- 0x0d11, 0x0d11,
- 0x0d29, 0x0d29,
- 0x0d3a, 0x0d3d,
- 0x0d44, 0x0d45,
- 0x0d49, 0x0d49,
- 0x0d4e, 0x0d56,
- 0x0d58, 0x0d5f,
- 0x0d62, 0x0d65,
- 0x0d70, 0x0d81,
- 0x0d84, 0x0d84,
- 0x0d97, 0x0d99,
- 0x0db2, 0x0db2,
- 0x0dbc, 0x0dbc,
- 0x0dbe, 0x0dbf,
- 0x0dc7, 0x0dc9,
- 0x0dcb, 0x0dce,
- 0x0dd5, 0x0dd5,
- 0x0dd7, 0x0dd7,
- 0x0de0, 0x0df1,
- 0x0df5, 0x0e00,
- 0x0e3b, 0x0e3e,
- 0x0e5c, 0x0e80,
- 0x0e83, 0x0e83,
- 0x0e85, 0x0e86,
- 0x0e89, 0x0e89,
- 0x0e8b, 0x0e8c,
- 0x0e8e, 0x0e93,
- 0x0e98, 0x0e98,
- 0x0ea0, 0x0ea0,
- 0x0ea4, 0x0ea4,
- 0x0ea6, 0x0ea6,
- 0x0ea8, 0x0ea9,
- 0x0eac, 0x0eac,
- 0x0eba, 0x0eba,
- 0x0ebe, 0x0ebf,
- 0x0ec5, 0x0ec5,
- 0x0ec7, 0x0ec7,
- 0x0ece, 0x0ecf,
- 0x0eda, 0x0edb,
- 0x0ede, 0x0eff,
- 0x0f48, 0x0f48,
- 0x0f6b, 0x0f70,
- 0x0f8c, 0x0f8f,
- 0x0f98, 0x0f98,
- 0x0fbd, 0x0fbd,
- 0x0fcd, 0x0fce,
- 0x0fd2, 0x0fff,
- 0x1022, 0x1022,
- 0x1028, 0x1028,
- 0x102b, 0x102b,
- 0x1033, 0x1035,
- 0x103a, 0x103f,
- 0x105a, 0x109f,
- 0x10c6, 0x10cf,
- 0x10fd, 0x10ff,
- 0x115a, 0x115e,
- 0x11a3, 0x11a7,
- 0x11fa, 0x11ff,
- 0x1249, 0x1249,
- 0x124e, 0x124f,
- 0x1257, 0x1257,
- 0x1259, 0x1259,
- 0x125e, 0x125f,
- 0x1289, 0x1289,
- 0x128e, 0x128f,
- 0x12b1, 0x12b1,
- 0x12b6, 0x12b7,
- 0x12bf, 0x12bf,
- 0x12c1, 0x12c1,
- 0x12c6, 0x12c7,
- 0x12d7, 0x12d7,
- 0x1311, 0x1311,
- 0x1316, 0x1317,
- 0x135b, 0x135e,
- 0x137d, 0x137f,
- 0x139a, 0x139f,
- 0x13f5, 0x1400,
- 0x1677, 0x167f,
- 0x169d, 0x169f,
- 0x16f1, 0x16ff,
- 0x170d, 0x170d,
- 0x1715, 0x171f,
- 0x1737, 0x173f,
- 0x1754, 0x175f,
- 0x176d, 0x176d,
- 0x1771, 0x1771,
- 0x1774, 0x177f,
- 0x17b4, 0x17b5,
- 0x17de, 0x17df,
- 0x17ea, 0x17ef,
- 0x17fa, 0x17ff,
- 0x180f, 0x180f,
- 0x181a, 0x181f,
- 0x1878, 0x187f,
- 0x18aa, 0x18ff,
- 0x191d, 0x191f,
- 0x192c, 0x192f,
- 0x193c, 0x193f,
- 0x1941, 0x1943,
- 0x196e, 0x196f,
- 0x1975, 0x197f,
- 0x19aa, 0x19af,
- 0x19ca, 0x19cf,
- 0x19da, 0x19dd,
- 0x1a1c, 0x1a1d,
- 0x1a20, 0x1cff,
- 0x1dc4, 0x1dff,
- 0x1e9c, 0x1e9f,
- 0x1efa, 0x1eff,
- 0x1f16, 0x1f17,
- 0x1f1e, 0x1f1f,
- 0x1f46, 0x1f47,
- 0x1f4e, 0x1f4f,
- 0x1f58, 0x1f58,
- 0x1f5a, 0x1f5a,
- 0x1f5c, 0x1f5c,
- 0x1f5e, 0x1f5e,
- 0x1f7e, 0x1f7f,
- 0x1fb5, 0x1fb5,
- 0x1fc5, 0x1fc5,
- 0x1fd4, 0x1fd5,
- 0x1fdc, 0x1fdc,
- 0x1ff0, 0x1ff1,
- 0x1ff5, 0x1ff5,
- 0x1fff, 0x1fff,
- 0x200b, 0x200f,
- 0x202a, 0x202e,
- 0x2060, 0x206f,
- 0x2072, 0x2073,
- 0x208f, 0x208f,
- 0x2095, 0x209f,
- 0x20b6, 0x20cf,
- 0x20ec, 0x20ff,
- 0x214d, 0x2152,
- 0x2184, 0x218f,
- 0x23dc, 0x23ff,
- 0x2427, 0x243f,
- 0x244b, 0x245f,
- 0x269d, 0x269f,
- 0x26b2, 0x2700,
- 0x2705, 0x2705,
- 0x270a, 0x270b,
- 0x2728, 0x2728,
- 0x274c, 0x274c,
- 0x274e, 0x274e,
- 0x2753, 0x2755,
- 0x2757, 0x2757,
- 0x275f, 0x2760,
- 0x2795, 0x2797,
- 0x27b0, 0x27b0,
- 0x27bf, 0x27bf,
- 0x27c7, 0x27cf,
- 0x27ec, 0x27ef,
- 0x2b14, 0x2bff,
- 0x2c2f, 0x2c2f,
- 0x2c5f, 0x2c7f,
- 0x2ceb, 0x2cf8,
- 0x2d26, 0x2d2f,
- 0x2d66, 0x2d6e,
- 0x2d70, 0x2d7f,
- 0x2d97, 0x2d9f,
- 0x2da7, 0x2da7,
- 0x2daf, 0x2daf,
- 0x2db7, 0x2db7,
- 0x2dbf, 0x2dbf,
- 0x2dc7, 0x2dc7,
- 0x2dcf, 0x2dcf,
- 0x2dd7, 0x2dd7,
- 0x2ddf, 0x2dff,
- 0x2e18, 0x2e1b,
- 0x2e1e, 0x2e7f,
- 0x2e9a, 0x2e9a,
- 0x2ef4, 0x2eff,
- 0x2fd6, 0x2fef,
- 0x2ffc, 0x2fff,
- 0x3040, 0x3040,
- 0x3097, 0x3098,
- 0x3100, 0x3104,
- 0x312d, 0x3130,
- 0x318f, 0x318f,
- 0x31b8, 0x31bf,
- 0x31d0, 0x31ef,
- 0x321f, 0x321f,
- 0x3244, 0x324f,
- 0x32ff, 0x32ff,
- 0x4db6, 0x4dbf,
- 0x9fbc, 0x9fff,
- 0xa48d, 0xa48f,
- 0xa4c7, 0xa6ff,
- 0xa717, 0xa7ff,
- 0xa82c, 0xabff,
- 0xd7a4, 0xf8ff,
- 0xfa2e, 0xfa2f,
- 0xfa6b, 0xfa6f,
- 0xfada, 0xfaff,
- 0xfb07, 0xfb12,
- 0xfb18, 0xfb1c,
- 0xfb37, 0xfb37,
- 0xfb3d, 0xfb3d,
- 0xfb3f, 0xfb3f,
- 0xfb42, 0xfb42,
- 0xfb45, 0xfb45,
- 0xfbb2, 0xfbd2,
- 0xfd40, 0xfd4f,
- 0xfd90, 0xfd91,
- 0xfdc8, 0xfdef,
- 0xfdfe, 0xfdff,
- 0xfe1a, 0xfe1f,
- 0xfe24, 0xfe2f,
- 0xfe53, 0xfe53,
- 0xfe67, 0xfe67,
- 0xfe6c, 0xfe6f,
- 0xfe75, 0xfe75,
- 0xfefd, 0xff00,
- 0xffbf, 0xffc1,
- 0xffc8, 0xffc9,
- 0xffd0, 0xffd1,
- 0xffd8, 0xffd9,
- 0xffdd, 0xffdf,
- 0xffe7, 0xffe7,
- 0xffef, 0xfffb,
- 0xfffe, 0xffff,
- 0x1000c, 0x1000c,
- 0x10027, 0x10027,
- 0x1003b, 0x1003b,
- 0x1003e, 0x1003e,
- 0x1004e, 0x1004f,
- 0x1005e, 0x1007f,
- 0x100fb, 0x100ff,
- 0x10103, 0x10106,
- 0x10134, 0x10136,
- 0x1018b, 0x102ff,
- 0x1031f, 0x1031f,
- 0x10324, 0x1032f,
- 0x1034b, 0x1037f,
- 0x1039e, 0x1039e,
- 0x103c4, 0x103c7,
- 0x103d6, 0x103ff,
- 0x1049e, 0x1049f,
- 0x104aa, 0x107ff,
- 0x10806, 0x10807,
- 0x10809, 0x10809,
- 0x10836, 0x10836,
- 0x10839, 0x1083b,
- 0x1083d, 0x1083e,
- 0x10840, 0x109ff,
- 0x10a04, 0x10a04,
- 0x10a07, 0x10a0b,
- 0x10a14, 0x10a14,
- 0x10a18, 0x10a18,
- 0x10a34, 0x10a37,
- 0x10a3b, 0x10a3e,
- 0x10a48, 0x10a4f,
- 0x10a59, 0x1cfff,
- 0x1d0f6, 0x1d0ff,
- 0x1d127, 0x1d129,
- 0x1d173, 0x1d17a,
- 0x1d1de, 0x1d1ff,
- 0x1d246, 0x1d2ff,
- 0x1d357, 0x1d3ff,
- 0x1d455, 0x1d455,
- 0x1d49d, 0x1d49d,
- 0x1d4a0, 0x1d4a1,
- 0x1d4a3, 0x1d4a4,
- 0x1d4a7, 0x1d4a8,
- 0x1d4ad, 0x1d4ad,
- 0x1d4ba, 0x1d4ba,
- 0x1d4bc, 0x1d4bc,
- 0x1d4c4, 0x1d4c4,
- 0x1d506, 0x1d506,
- 0x1d50b, 0x1d50c,
- 0x1d515, 0x1d515,
- 0x1d51d, 0x1d51d,
- 0x1d53a, 0x1d53a,
- 0x1d53f, 0x1d53f,
- 0x1d545, 0x1d545,
- 0x1d547, 0x1d549,
- 0x1d551, 0x1d551,
- 0x1d6a6, 0x1d6a7,
- 0x1d7ca, 0x1d7cd,
- 0x1d800, 0x1ffff,
- 0x2a6d7, 0x2f7ff,
- 0x2fa1e, 0xe00ff,
- 0xe01f0, 0x10ffff
-}; /* CR_C */
-
-/* 'Cc': General Category */
-static const OnigCodePoint CR_Cc[] = {
- 2,
- 0x0000, 0x001f,
- 0x007f, 0x009f
-}; /* CR_Cc */
-
-/* 'Cf': General Category */
-static const OnigCodePoint CR_Cf[] = {
- 14,
- 0x00ad, 0x00ad,
- 0x0600, 0x0603,
- 0x06dd, 0x06dd,
- 0x070f, 0x070f,
- 0x17b4, 0x17b5,
- 0x200b, 0x200f,
- 0x202a, 0x202e,
- 0x2060, 0x2063,
- 0x206a, 0x206f,
- 0xfeff, 0xfeff,
- 0xfff9, 0xfffb,
- 0x1d173, 0x1d17a,
- 0xe0001, 0xe0001,
- 0xe0020, 0xe007f
-}; /* CR_Cf */
-
-/* 'Cn': General Category */
-static const OnigCodePoint CR_Cn[] = {
- 420,
- 0x0242, 0x024f,
- 0x0370, 0x0373,
- 0x0376, 0x0379,
- 0x037b, 0x037d,
- 0x037f, 0x0383,
- 0x038b, 0x038b,
- 0x038d, 0x038d,
- 0x03a2, 0x03a2,
- 0x03cf, 0x03cf,
- 0x0487, 0x0487,
- 0x04cf, 0x04cf,
- 0x04fa, 0x04ff,
- 0x0510, 0x0530,
- 0x0557, 0x0558,
- 0x0560, 0x0560,
- 0x0588, 0x0588,
- 0x058b, 0x0590,
- 0x05ba, 0x05ba,
- 0x05c8, 0x05cf,
- 0x05eb, 0x05ef,
- 0x05f5, 0x05ff,
- 0x0604, 0x060a,
- 0x0616, 0x061a,
- 0x061c, 0x061d,
- 0x0620, 0x0620,
- 0x063b, 0x063f,
- 0x065f, 0x065f,
- 0x070e, 0x070e,
- 0x074b, 0x074c,
- 0x076e, 0x077f,
- 0x07b2, 0x0900,
- 0x093a, 0x093b,
- 0x094e, 0x094f,
- 0x0955, 0x0957,
- 0x0971, 0x097c,
- 0x097e, 0x0980,
- 0x0984, 0x0984,
- 0x098d, 0x098e,
- 0x0991, 0x0992,
- 0x09a9, 0x09a9,
- 0x09b1, 0x09b1,
- 0x09b3, 0x09b5,
- 0x09ba, 0x09bb,
- 0x09c5, 0x09c6,
- 0x09c9, 0x09ca,
- 0x09cf, 0x09d6,
- 0x09d8, 0x09db,
- 0x09de, 0x09de,
- 0x09e4, 0x09e5,
- 0x09fb, 0x0a00,
- 0x0a04, 0x0a04,
- 0x0a0b, 0x0a0e,
- 0x0a11, 0x0a12,
- 0x0a29, 0x0a29,
- 0x0a31, 0x0a31,
- 0x0a34, 0x0a34,
- 0x0a37, 0x0a37,
- 0x0a3a, 0x0a3b,
- 0x0a3d, 0x0a3d,
- 0x0a43, 0x0a46,
- 0x0a49, 0x0a4a,
- 0x0a4e, 0x0a58,
- 0x0a5d, 0x0a5d,
- 0x0a5f, 0x0a65,
- 0x0a75, 0x0a80,
- 0x0a84, 0x0a84,
- 0x0a8e, 0x0a8e,
- 0x0a92, 0x0a92,
- 0x0aa9, 0x0aa9,
- 0x0ab1, 0x0ab1,
- 0x0ab4, 0x0ab4,
- 0x0aba, 0x0abb,
- 0x0ac6, 0x0ac6,
- 0x0aca, 0x0aca,
- 0x0ace, 0x0acf,
- 0x0ad1, 0x0adf,
- 0x0ae4, 0x0ae5,
- 0x0af0, 0x0af0,
- 0x0af2, 0x0b00,
- 0x0b04, 0x0b04,
- 0x0b0d, 0x0b0e,
- 0x0b11, 0x0b12,
- 0x0b29, 0x0b29,
- 0x0b31, 0x0b31,
- 0x0b34, 0x0b34,
- 0x0b3a, 0x0b3b,
- 0x0b44, 0x0b46,
- 0x0b49, 0x0b4a,
- 0x0b4e, 0x0b55,
- 0x0b58, 0x0b5b,
- 0x0b5e, 0x0b5e,
- 0x0b62, 0x0b65,
- 0x0b72, 0x0b81,
- 0x0b84, 0x0b84,
- 0x0b8b, 0x0b8d,
- 0x0b91, 0x0b91,
- 0x0b96, 0x0b98,
- 0x0b9b, 0x0b9b,
- 0x0b9d, 0x0b9d,
- 0x0ba0, 0x0ba2,
- 0x0ba5, 0x0ba7,
- 0x0bab, 0x0bad,
- 0x0bba, 0x0bbd,
- 0x0bc3, 0x0bc5,
- 0x0bc9, 0x0bc9,
- 0x0bce, 0x0bd6,
- 0x0bd8, 0x0be5,
- 0x0bfb, 0x0c00,
- 0x0c04, 0x0c04,
- 0x0c0d, 0x0c0d,
- 0x0c11, 0x0c11,
- 0x0c29, 0x0c29,
- 0x0c34, 0x0c34,
- 0x0c3a, 0x0c3d,
- 0x0c45, 0x0c45,
- 0x0c49, 0x0c49,
- 0x0c4e, 0x0c54,
- 0x0c57, 0x0c5f,
- 0x0c62, 0x0c65,
- 0x0c70, 0x0c81,
- 0x0c84, 0x0c84,
- 0x0c8d, 0x0c8d,
- 0x0c91, 0x0c91,
- 0x0ca9, 0x0ca9,
- 0x0cb4, 0x0cb4,
- 0x0cba, 0x0cbb,
- 0x0cc5, 0x0cc5,
- 0x0cc9, 0x0cc9,
- 0x0cce, 0x0cd4,
- 0x0cd7, 0x0cdd,
- 0x0cdf, 0x0cdf,
- 0x0ce2, 0x0ce5,
- 0x0cf0, 0x0d01,
- 0x0d04, 0x0d04,
- 0x0d0d, 0x0d0d,
- 0x0d11, 0x0d11,
- 0x0d29, 0x0d29,
- 0x0d3a, 0x0d3d,
- 0x0d44, 0x0d45,
- 0x0d49, 0x0d49,
- 0x0d4e, 0x0d56,
- 0x0d58, 0x0d5f,
- 0x0d62, 0x0d65,
- 0x0d70, 0x0d81,
- 0x0d84, 0x0d84,
- 0x0d97, 0x0d99,
- 0x0db2, 0x0db2,
- 0x0dbc, 0x0dbc,
- 0x0dbe, 0x0dbf,
- 0x0dc7, 0x0dc9,
- 0x0dcb, 0x0dce,
- 0x0dd5, 0x0dd5,
- 0x0dd7, 0x0dd7,
- 0x0de0, 0x0df1,
- 0x0df5, 0x0e00,
- 0x0e3b, 0x0e3e,
- 0x0e5c, 0x0e80,
- 0x0e83, 0x0e83,
- 0x0e85, 0x0e86,
- 0x0e89, 0x0e89,
- 0x0e8b, 0x0e8c,
- 0x0e8e, 0x0e93,
- 0x0e98, 0x0e98,
- 0x0ea0, 0x0ea0,
- 0x0ea4, 0x0ea4,
- 0x0ea6, 0x0ea6,
- 0x0ea8, 0x0ea9,
- 0x0eac, 0x0eac,
- 0x0eba, 0x0eba,
- 0x0ebe, 0x0ebf,
- 0x0ec5, 0x0ec5,
- 0x0ec7, 0x0ec7,
- 0x0ece, 0x0ecf,
- 0x0eda, 0x0edb,
- 0x0ede, 0x0eff,
- 0x0f48, 0x0f48,
- 0x0f6b, 0x0f70,
- 0x0f8c, 0x0f8f,
- 0x0f98, 0x0f98,
- 0x0fbd, 0x0fbd,
- 0x0fcd, 0x0fce,
- 0x0fd2, 0x0fff,
- 0x1022, 0x1022,
- 0x1028, 0x1028,
- 0x102b, 0x102b,
- 0x1033, 0x1035,
- 0x103a, 0x103f,
- 0x105a, 0x109f,
- 0x10c6, 0x10cf,
- 0x10fd, 0x10ff,
- 0x115a, 0x115e,
- 0x11a3, 0x11a7,
- 0x11fa, 0x11ff,
- 0x1249, 0x1249,
- 0x124e, 0x124f,
- 0x1257, 0x1257,
- 0x1259, 0x1259,
- 0x125e, 0x125f,
- 0x1289, 0x1289,
- 0x128e, 0x128f,
- 0x12b1, 0x12b1,
- 0x12b6, 0x12b7,
- 0x12bf, 0x12bf,
- 0x12c1, 0x12c1,
- 0x12c6, 0x12c7,
- 0x12d7, 0x12d7,
- 0x1311, 0x1311,
- 0x1316, 0x1317,
- 0x135b, 0x135e,
- 0x137d, 0x137f,
- 0x139a, 0x139f,
- 0x13f5, 0x1400,
- 0x1677, 0x167f,
- 0x169d, 0x169f,
- 0x16f1, 0x16ff,
- 0x170d, 0x170d,
- 0x1715, 0x171f,
- 0x1737, 0x173f,
- 0x1754, 0x175f,
- 0x176d, 0x176d,
- 0x1771, 0x1771,
- 0x1774, 0x177f,
- 0x17de, 0x17df,
- 0x17ea, 0x17ef,
- 0x17fa, 0x17ff,
- 0x180f, 0x180f,
- 0x181a, 0x181f,
- 0x1878, 0x187f,
- 0x18aa, 0x18ff,
- 0x191d, 0x191f,
- 0x192c, 0x192f,
- 0x193c, 0x193f,
- 0x1941, 0x1943,
- 0x196e, 0x196f,
- 0x1975, 0x197f,
- 0x19aa, 0x19af,
- 0x19ca, 0x19cf,
- 0x19da, 0x19dd,
- 0x1a1c, 0x1a1d,
- 0x1a20, 0x1cff,
- 0x1dc4, 0x1dff,
- 0x1e9c, 0x1e9f,
- 0x1efa, 0x1eff,
- 0x1f16, 0x1f17,
- 0x1f1e, 0x1f1f,
- 0x1f46, 0x1f47,
- 0x1f4e, 0x1f4f,
- 0x1f58, 0x1f58,
- 0x1f5a, 0x1f5a,
- 0x1f5c, 0x1f5c,
- 0x1f5e, 0x1f5e,
- 0x1f7e, 0x1f7f,
- 0x1fb5, 0x1fb5,
- 0x1fc5, 0x1fc5,
- 0x1fd4, 0x1fd5,
- 0x1fdc, 0x1fdc,
- 0x1ff0, 0x1ff1,
- 0x1ff5, 0x1ff5,
- 0x1fff, 0x1fff,
- 0x2064, 0x2069,
- 0x2072, 0x2073,
- 0x208f, 0x208f,
- 0x2095, 0x209f,
- 0x20b6, 0x20cf,
- 0x20ec, 0x20ff,
- 0x214d, 0x2152,
- 0x2184, 0x218f,
- 0x23dc, 0x23ff,
- 0x2427, 0x243f,
- 0x244b, 0x245f,
- 0x269d, 0x269f,
- 0x26b2, 0x2700,
- 0x2705, 0x2705,
- 0x270a, 0x270b,
- 0x2728, 0x2728,
- 0x274c, 0x274c,
- 0x274e, 0x274e,
- 0x2753, 0x2755,
- 0x2757, 0x2757,
- 0x275f, 0x2760,
- 0x2795, 0x2797,
- 0x27b0, 0x27b0,
- 0x27bf, 0x27bf,
- 0x27c7, 0x27cf,
- 0x27ec, 0x27ef,
- 0x2b14, 0x2bff,
- 0x2c2f, 0x2c2f,
- 0x2c5f, 0x2c7f,
- 0x2ceb, 0x2cf8,
- 0x2d26, 0x2d2f,
- 0x2d66, 0x2d6e,
- 0x2d70, 0x2d7f,
- 0x2d97, 0x2d9f,
- 0x2da7, 0x2da7,
- 0x2daf, 0x2daf,
- 0x2db7, 0x2db7,
- 0x2dbf, 0x2dbf,
- 0x2dc7, 0x2dc7,
- 0x2dcf, 0x2dcf,
- 0x2dd7, 0x2dd7,
- 0x2ddf, 0x2dff,
- 0x2e18, 0x2e1b,
- 0x2e1e, 0x2e7f,
- 0x2e9a, 0x2e9a,
- 0x2ef4, 0x2eff,
- 0x2fd6, 0x2fef,
- 0x2ffc, 0x2fff,
- 0x3040, 0x3040,
- 0x3097, 0x3098,
- 0x3100, 0x3104,
- 0x312d, 0x3130,
- 0x318f, 0x318f,
- 0x31b8, 0x31bf,
- 0x31d0, 0x31ef,
- 0x321f, 0x321f,
- 0x3244, 0x324f,
- 0x32ff, 0x32ff,
- 0x4db6, 0x4dbf,
- 0x9fbc, 0x9fff,
- 0xa48d, 0xa48f,
- 0xa4c7, 0xa6ff,
- 0xa717, 0xa7ff,
- 0xa82c, 0xabff,
- 0xd7a4, 0xd7ff,
- 0xfa2e, 0xfa2f,
- 0xfa6b, 0xfa6f,
- 0xfada, 0xfaff,
- 0xfb07, 0xfb12,
- 0xfb18, 0xfb1c,
- 0xfb37, 0xfb37,
- 0xfb3d, 0xfb3d,
- 0xfb3f, 0xfb3f,
- 0xfb42, 0xfb42,
- 0xfb45, 0xfb45,
- 0xfbb2, 0xfbd2,
- 0xfd40, 0xfd4f,
- 0xfd90, 0xfd91,
- 0xfdc8, 0xfdef,
- 0xfdfe, 0xfdff,
- 0xfe1a, 0xfe1f,
- 0xfe24, 0xfe2f,
- 0xfe53, 0xfe53,
- 0xfe67, 0xfe67,
- 0xfe6c, 0xfe6f,
- 0xfe75, 0xfe75,
- 0xfefd, 0xfefe,
- 0xff00, 0xff00,
- 0xffbf, 0xffc1,
- 0xffc8, 0xffc9,
- 0xffd0, 0xffd1,
- 0xffd8, 0xffd9,
- 0xffdd, 0xffdf,
- 0xffe7, 0xffe7,
- 0xffef, 0xfff8,
- 0xfffe, 0xffff,
- 0x1000c, 0x1000c,
- 0x10027, 0x10027,
- 0x1003b, 0x1003b,
- 0x1003e, 0x1003e,
- 0x1004e, 0x1004f,
- 0x1005e, 0x1007f,
- 0x100fb, 0x100ff,
- 0x10103, 0x10106,
- 0x10134, 0x10136,
- 0x1018b, 0x102ff,
- 0x1031f, 0x1031f,
- 0x10324, 0x1032f,
- 0x1034b, 0x1037f,
- 0x1039e, 0x1039e,
- 0x103c4, 0x103c7,
- 0x103d6, 0x103ff,
- 0x1049e, 0x1049f,
- 0x104aa, 0x107ff,
- 0x10806, 0x10807,
- 0x10809, 0x10809,
- 0x10836, 0x10836,
- 0x10839, 0x1083b,
- 0x1083d, 0x1083e,
- 0x10840, 0x109ff,
- 0x10a04, 0x10a04,
- 0x10a07, 0x10a0b,
- 0x10a14, 0x10a14,
- 0x10a18, 0x10a18,
- 0x10a34, 0x10a37,
- 0x10a3b, 0x10a3e,
- 0x10a48, 0x10a4f,
- 0x10a59, 0x1cfff,
- 0x1d0f6, 0x1d0ff,
- 0x1d127, 0x1d129,
- 0x1d1de, 0x1d1ff,
- 0x1d246, 0x1d2ff,
- 0x1d357, 0x1d3ff,
- 0x1d455, 0x1d455,
- 0x1d49d, 0x1d49d,
- 0x1d4a0, 0x1d4a1,
- 0x1d4a3, 0x1d4a4,
- 0x1d4a7, 0x1d4a8,
- 0x1d4ad, 0x1d4ad,
- 0x1d4ba, 0x1d4ba,
- 0x1d4bc, 0x1d4bc,
- 0x1d4c4, 0x1d4c4,
- 0x1d506, 0x1d506,
- 0x1d50b, 0x1d50c,
- 0x1d515, 0x1d515,
- 0x1d51d, 0x1d51d,
- 0x1d53a, 0x1d53a,
- 0x1d53f, 0x1d53f,
- 0x1d545, 0x1d545,
- 0x1d547, 0x1d549,
- 0x1d551, 0x1d551,
- 0x1d6a6, 0x1d6a7,
- 0x1d7ca, 0x1d7cd,
- 0x1d800, 0x1ffff,
- 0x2a6d7, 0x2f7ff,
- 0x2fa1e, 0xe0000,
- 0xe0002, 0xe001f,
- 0xe0080, 0xe00ff,
- 0xe01f0, 0xeffff,
- 0xffffe, 0xfffff,
- 0x10fffe, 0x10ffff
-}; /* CR_Cn */
-
-/* 'Co': General Category */
-static const OnigCodePoint CR_Co[] = {
- 3,
- 0xe000, 0xf8ff,
- 0xf0000, 0xffffd,
- 0x100000, 0x10fffd
-}; /* CR_Co */
-
-/* 'Cs': General Category */
-static const OnigCodePoint CR_Cs[] = {
- 1,
- 0xd800, 0xdfff
-}; /* CR_Cs */
-
-/* 'L': Major Category */
-static const OnigCodePoint CR_L[] = {
- 347,
- 0x0041, 0x005a,
- 0x0061, 0x007a,
- 0x00aa, 0x00aa,
- 0x00b5, 0x00b5,
- 0x00ba, 0x00ba,
- 0x00c0, 0x00d6,
- 0x00d8, 0x00f6,
- 0x00f8, 0x0241,
- 0x0250, 0x02c1,
- 0x02c6, 0x02d1,
- 0x02e0, 0x02e4,
- 0x02ee, 0x02ee,
- 0x037a, 0x037a,
- 0x0386, 0x0386,
- 0x0388, 0x038a,
- 0x038c, 0x038c,
- 0x038e, 0x03a1,
- 0x03a3, 0x03ce,
- 0x03d0, 0x03f5,
- 0x03f7, 0x0481,
- 0x048a, 0x04ce,
- 0x04d0, 0x04f9,
- 0x0500, 0x050f,
- 0x0531, 0x0556,
- 0x0559, 0x0559,
- 0x0561, 0x0587,
- 0x05d0, 0x05ea,
- 0x05f0, 0x05f2,
- 0x0621, 0x063a,
- 0x0640, 0x064a,
- 0x066e, 0x066f,
- 0x0671, 0x06d3,
- 0x06d5, 0x06d5,
- 0x06e5, 0x06e6,
- 0x06ee, 0x06ef,
- 0x06fa, 0x06fc,
- 0x06ff, 0x06ff,
- 0x0710, 0x0710,
- 0x0712, 0x072f,
- 0x074d, 0x076d,
- 0x0780, 0x07a5,
- 0x07b1, 0x07b1,
- 0x0904, 0x0939,
- 0x093d, 0x093d,
- 0x0950, 0x0950,
- 0x0958, 0x0961,
- 0x097d, 0x097d,
- 0x0985, 0x098c,
- 0x098f, 0x0990,
- 0x0993, 0x09a8,
- 0x09aa, 0x09b0,
- 0x09b2, 0x09b2,
- 0x09b6, 0x09b9,
- 0x09bd, 0x09bd,
- 0x09ce, 0x09ce,
- 0x09dc, 0x09dd,
- 0x09df, 0x09e1,
- 0x09f0, 0x09f1,
- 0x0a05, 0x0a0a,
- 0x0a0f, 0x0a10,
- 0x0a13, 0x0a28,
- 0x0a2a, 0x0a30,
- 0x0a32, 0x0a33,
- 0x0a35, 0x0a36,
- 0x0a38, 0x0a39,
- 0x0a59, 0x0a5c,
- 0x0a5e, 0x0a5e,
- 0x0a72, 0x0a74,
- 0x0a85, 0x0a8d,
- 0x0a8f, 0x0a91,
- 0x0a93, 0x0aa8,
- 0x0aaa, 0x0ab0,
- 0x0ab2, 0x0ab3,
- 0x0ab5, 0x0ab9,
- 0x0abd, 0x0abd,
- 0x0ad0, 0x0ad0,
- 0x0ae0, 0x0ae1,
- 0x0b05, 0x0b0c,
- 0x0b0f, 0x0b10,
- 0x0b13, 0x0b28,
- 0x0b2a, 0x0b30,
- 0x0b32, 0x0b33,
- 0x0b35, 0x0b39,
- 0x0b3d, 0x0b3d,
- 0x0b5c, 0x0b5d,
- 0x0b5f, 0x0b61,
- 0x0b71, 0x0b71,
- 0x0b83, 0x0b83,
- 0x0b85, 0x0b8a,
- 0x0b8e, 0x0b90,
- 0x0b92, 0x0b95,
- 0x0b99, 0x0b9a,
- 0x0b9c, 0x0b9c,
- 0x0b9e, 0x0b9f,
- 0x0ba3, 0x0ba4,
- 0x0ba8, 0x0baa,
- 0x0bae, 0x0bb9,
- 0x0c05, 0x0c0c,
- 0x0c0e, 0x0c10,
- 0x0c12, 0x0c28,
- 0x0c2a, 0x0c33,
- 0x0c35, 0x0c39,
- 0x0c60, 0x0c61,
- 0x0c85, 0x0c8c,
- 0x0c8e, 0x0c90,
- 0x0c92, 0x0ca8,
- 0x0caa, 0x0cb3,
- 0x0cb5, 0x0cb9,
- 0x0cbd, 0x0cbd,
- 0x0cde, 0x0cde,
- 0x0ce0, 0x0ce1,
- 0x0d05, 0x0d0c,
- 0x0d0e, 0x0d10,
- 0x0d12, 0x0d28,
- 0x0d2a, 0x0d39,
- 0x0d60, 0x0d61,
- 0x0d85, 0x0d96,
- 0x0d9a, 0x0db1,
- 0x0db3, 0x0dbb,
- 0x0dbd, 0x0dbd,
- 0x0dc0, 0x0dc6,
- 0x0e01, 0x0e30,
- 0x0e32, 0x0e33,
- 0x0e40, 0x0e46,
- 0x0e81, 0x0e82,
- 0x0e84, 0x0e84,
- 0x0e87, 0x0e88,
- 0x0e8a, 0x0e8a,
- 0x0e8d, 0x0e8d,
- 0x0e94, 0x0e97,
- 0x0e99, 0x0e9f,
- 0x0ea1, 0x0ea3,
- 0x0ea5, 0x0ea5,
- 0x0ea7, 0x0ea7,
- 0x0eaa, 0x0eab,
- 0x0ead, 0x0eb0,
- 0x0eb2, 0x0eb3,
- 0x0ebd, 0x0ebd,
- 0x0ec0, 0x0ec4,
- 0x0ec6, 0x0ec6,
- 0x0edc, 0x0edd,
- 0x0f00, 0x0f00,
- 0x0f40, 0x0f47,
- 0x0f49, 0x0f6a,
- 0x0f88, 0x0f8b,
- 0x1000, 0x1021,
- 0x1023, 0x1027,
- 0x1029, 0x102a,
- 0x1050, 0x1055,
- 0x10a0, 0x10c5,
- 0x10d0, 0x10fa,
- 0x10fc, 0x10fc,
- 0x1100, 0x1159,
- 0x115f, 0x11a2,
- 0x11a8, 0x11f9,
- 0x1200, 0x1248,
- 0x124a, 0x124d,
- 0x1250, 0x1256,
- 0x1258, 0x1258,
- 0x125a, 0x125d,
- 0x1260, 0x1288,
- 0x128a, 0x128d,
- 0x1290, 0x12b0,
- 0x12b2, 0x12b5,
- 0x12b8, 0x12be,
- 0x12c0, 0x12c0,
- 0x12c2, 0x12c5,
- 0x12c8, 0x12d6,
- 0x12d8, 0x1310,
- 0x1312, 0x1315,
- 0x1318, 0x135a,
- 0x1380, 0x138f,
- 0x13a0, 0x13f4,
- 0x1401, 0x166c,
- 0x166f, 0x1676,
- 0x1681, 0x169a,
- 0x16a0, 0x16ea,
- 0x1700, 0x170c,
- 0x170e, 0x1711,
- 0x1720, 0x1731,
- 0x1740, 0x1751,
- 0x1760, 0x176c,
- 0x176e, 0x1770,
- 0x1780, 0x17b3,
- 0x17d7, 0x17d7,
- 0x17dc, 0x17dc,
- 0x1820, 0x1877,
- 0x1880, 0x18a8,
- 0x1900, 0x191c,
- 0x1950, 0x196d,
- 0x1970, 0x1974,
- 0x1980, 0x19a9,
- 0x19c1, 0x19c7,
- 0x1a00, 0x1a16,
- 0x1d00, 0x1dbf,
- 0x1e00, 0x1e9b,
- 0x1ea0, 0x1ef9,
- 0x1f00, 0x1f15,
- 0x1f18, 0x1f1d,
- 0x1f20, 0x1f45,
- 0x1f48, 0x1f4d,
- 0x1f50, 0x1f57,
- 0x1f59, 0x1f59,
- 0x1f5b, 0x1f5b,
- 0x1f5d, 0x1f5d,
- 0x1f5f, 0x1f7d,
- 0x1f80, 0x1fb4,
- 0x1fb6, 0x1fbc,
- 0x1fbe, 0x1fbe,
- 0x1fc2, 0x1fc4,
- 0x1fc6, 0x1fcc,
- 0x1fd0, 0x1fd3,
- 0x1fd6, 0x1fdb,
- 0x1fe0, 0x1fec,
- 0x1ff2, 0x1ff4,
- 0x1ff6, 0x1ffc,
- 0x2071, 0x2071,
- 0x207f, 0x207f,
- 0x2090, 0x2094,
- 0x2102, 0x2102,
- 0x2107, 0x2107,
- 0x210a, 0x2113,
- 0x2115, 0x2115,
- 0x2119, 0x211d,
- 0x2124, 0x2124,
- 0x2126, 0x2126,
- 0x2128, 0x2128,
- 0x212a, 0x212d,
- 0x212f, 0x2131,
- 0x2133, 0x2139,
- 0x213c, 0x213f,
- 0x2145, 0x2149,
- 0x2c00, 0x2c2e,
- 0x2c30, 0x2c5e,
- 0x2c80, 0x2ce4,
- 0x2d00, 0x2d25,
- 0x2d30, 0x2d65,
- 0x2d6f, 0x2d6f,
- 0x2d80, 0x2d96,
- 0x2da0, 0x2da6,
- 0x2da8, 0x2dae,
- 0x2db0, 0x2db6,
- 0x2db8, 0x2dbe,
- 0x2dc0, 0x2dc6,
- 0x2dc8, 0x2dce,
- 0x2dd0, 0x2dd6,
- 0x2dd8, 0x2dde,
- 0x3005, 0x3006,
- 0x3031, 0x3035,
- 0x303b, 0x303c,
- 0x3041, 0x3096,
- 0x309d, 0x309f,
- 0x30a1, 0x30fa,
- 0x30fc, 0x30ff,
- 0x3105, 0x312c,
- 0x3131, 0x318e,
- 0x31a0, 0x31b7,
- 0x31f0, 0x31ff,
- 0x3400, 0x4db5,
- 0x4e00, 0x9fbb,
- 0xa000, 0xa48c,
- 0xa800, 0xa801,
- 0xa803, 0xa805,
- 0xa807, 0xa80a,
- 0xa80c, 0xa822,
- 0xac00, 0xd7a3,
- 0xf900, 0xfa2d,
- 0xfa30, 0xfa6a,
- 0xfa70, 0xfad9,
- 0xfb00, 0xfb06,
- 0xfb13, 0xfb17,
- 0xfb1d, 0xfb1d,
- 0xfb1f, 0xfb28,
- 0xfb2a, 0xfb36,
- 0xfb38, 0xfb3c,
- 0xfb3e, 0xfb3e,
- 0xfb40, 0xfb41,
- 0xfb43, 0xfb44,
- 0xfb46, 0xfbb1,
- 0xfbd3, 0xfd3d,
- 0xfd50, 0xfd8f,
- 0xfd92, 0xfdc7,
- 0xfdf0, 0xfdfb,
- 0xfe70, 0xfe74,
- 0xfe76, 0xfefc,
- 0xff21, 0xff3a,
- 0xff41, 0xff5a,
- 0xff66, 0xffbe,
- 0xffc2, 0xffc7,
- 0xffca, 0xffcf,
- 0xffd2, 0xffd7,
- 0xffda, 0xffdc,
- 0x10000, 0x1000b,
- 0x1000d, 0x10026,
- 0x10028, 0x1003a,
- 0x1003c, 0x1003d,
- 0x1003f, 0x1004d,
- 0x10050, 0x1005d,
- 0x10080, 0x100fa,
- 0x10300, 0x1031e,
- 0x10330, 0x10349,
- 0x10380, 0x1039d,
- 0x103a0, 0x103c3,
- 0x103c8, 0x103cf,
- 0x10400, 0x1049d,
- 0x10800, 0x10805,
- 0x10808, 0x10808,
- 0x1080a, 0x10835,
- 0x10837, 0x10838,
- 0x1083c, 0x1083c,
- 0x1083f, 0x1083f,
- 0x10a00, 0x10a00,
- 0x10a10, 0x10a13,
- 0x10a15, 0x10a17,
- 0x10a19, 0x10a33,
- 0x1d400, 0x1d454,
- 0x1d456, 0x1d49c,
- 0x1d49e, 0x1d49f,
- 0x1d4a2, 0x1d4a2,
- 0x1d4a5, 0x1d4a6,
- 0x1d4a9, 0x1d4ac,
- 0x1d4ae, 0x1d4b9,
- 0x1d4bb, 0x1d4bb,
- 0x1d4bd, 0x1d4c3,
- 0x1d4c5, 0x1d505,
- 0x1d507, 0x1d50a,
- 0x1d50d, 0x1d514,
- 0x1d516, 0x1d51c,
- 0x1d51e, 0x1d539,
- 0x1d53b, 0x1d53e,
- 0x1d540, 0x1d544,
- 0x1d546, 0x1d546,
- 0x1d54a, 0x1d550,
- 0x1d552, 0x1d6a5,
- 0x1d6a8, 0x1d6c0,
- 0x1d6c2, 0x1d6da,
- 0x1d6dc, 0x1d6fa,
- 0x1d6fc, 0x1d714,
- 0x1d716, 0x1d734,
- 0x1d736, 0x1d74e,
- 0x1d750, 0x1d76e,
- 0x1d770, 0x1d788,
- 0x1d78a, 0x1d7a8,
- 0x1d7aa, 0x1d7c2,
- 0x1d7c4, 0x1d7c9,
- 0x20000, 0x2a6d6,
- 0x2f800, 0x2fa1d
-}; /* CR_L */
-
-/* 'Ll': General Category */
-static const OnigCodePoint CR_Ll[] = {
- 480,
- 0x0061, 0x007a,
- 0x00aa, 0x00aa,
- 0x00b5, 0x00b5,
- 0x00ba, 0x00ba,
- 0x00df, 0x00f6,
- 0x00f8, 0x00ff,
- 0x0101, 0x0101,
- 0x0103, 0x0103,
- 0x0105, 0x0105,
- 0x0107, 0x0107,
- 0x0109, 0x0109,
- 0x010b, 0x010b,
- 0x010d, 0x010d,
- 0x010f, 0x010f,
- 0x0111, 0x0111,
- 0x0113, 0x0113,
- 0x0115, 0x0115,
- 0x0117, 0x0117,
- 0x0119, 0x0119,
- 0x011b, 0x011b,
- 0x011d, 0x011d,
- 0x011f, 0x011f,
- 0x0121, 0x0121,
- 0x0123, 0x0123,
- 0x0125, 0x0125,
- 0x0127, 0x0127,
- 0x0129, 0x0129,
- 0x012b, 0x012b,
- 0x012d, 0x012d,
- 0x012f, 0x012f,
- 0x0131, 0x0131,
- 0x0133, 0x0133,
- 0x0135, 0x0135,
- 0x0137, 0x0138,
- 0x013a, 0x013a,
- 0x013c, 0x013c,
- 0x013e, 0x013e,
- 0x0140, 0x0140,
- 0x0142, 0x0142,
- 0x0144, 0x0144,
- 0x0146, 0x0146,
- 0x0148, 0x0149,
- 0x014b, 0x014b,
- 0x014d, 0x014d,
- 0x014f, 0x014f,
- 0x0151, 0x0151,
- 0x0153, 0x0153,
- 0x0155, 0x0155,
- 0x0157, 0x0157,
- 0x0159, 0x0159,
- 0x015b, 0x015b,
- 0x015d, 0x015d,
- 0x015f, 0x015f,
- 0x0161, 0x0161,
- 0x0163, 0x0163,
- 0x0165, 0x0165,
- 0x0167, 0x0167,
- 0x0169, 0x0169,
- 0x016b, 0x016b,
- 0x016d, 0x016d,
- 0x016f, 0x016f,
- 0x0171, 0x0171,
- 0x0173, 0x0173,
- 0x0175, 0x0175,
- 0x0177, 0x0177,
- 0x017a, 0x017a,
- 0x017c, 0x017c,
- 0x017e, 0x0180,
- 0x0183, 0x0183,
- 0x0185, 0x0185,
- 0x0188, 0x0188,
- 0x018c, 0x018d,
- 0x0192, 0x0192,
- 0x0195, 0x0195,
- 0x0199, 0x019b,
- 0x019e, 0x019e,
- 0x01a1, 0x01a1,
- 0x01a3, 0x01a3,
- 0x01a5, 0x01a5,
- 0x01a8, 0x01a8,
- 0x01aa, 0x01ab,
- 0x01ad, 0x01ad,
- 0x01b0, 0x01b0,
- 0x01b4, 0x01b4,
- 0x01b6, 0x01b6,
- 0x01b9, 0x01ba,
- 0x01bd, 0x01bf,
- 0x01c6, 0x01c6,
- 0x01c9, 0x01c9,
- 0x01cc, 0x01cc,
- 0x01ce, 0x01ce,
- 0x01d0, 0x01d0,
- 0x01d2, 0x01d2,
- 0x01d4, 0x01d4,
- 0x01d6, 0x01d6,
- 0x01d8, 0x01d8,
- 0x01da, 0x01da,
- 0x01dc, 0x01dd,
- 0x01df, 0x01df,
- 0x01e1, 0x01e1,
- 0x01e3, 0x01e3,
- 0x01e5, 0x01e5,
- 0x01e7, 0x01e7,
- 0x01e9, 0x01e9,
- 0x01eb, 0x01eb,
- 0x01ed, 0x01ed,
- 0x01ef, 0x01f0,
- 0x01f3, 0x01f3,
- 0x01f5, 0x01f5,
- 0x01f9, 0x01f9,
- 0x01fb, 0x01fb,
- 0x01fd, 0x01fd,
- 0x01ff, 0x01ff,
- 0x0201, 0x0201,
- 0x0203, 0x0203,
- 0x0205, 0x0205,
- 0x0207, 0x0207,
- 0x0209, 0x0209,
- 0x020b, 0x020b,
- 0x020d, 0x020d,
- 0x020f, 0x020f,
- 0x0211, 0x0211,
- 0x0213, 0x0213,
- 0x0215, 0x0215,
- 0x0217, 0x0217,
- 0x0219, 0x0219,
- 0x021b, 0x021b,
- 0x021d, 0x021d,
- 0x021f, 0x021f,
- 0x0221, 0x0221,
- 0x0223, 0x0223,
- 0x0225, 0x0225,
- 0x0227, 0x0227,
- 0x0229, 0x0229,
- 0x022b, 0x022b,
- 0x022d, 0x022d,
- 0x022f, 0x022f,
- 0x0231, 0x0231,
- 0x0233, 0x0239,
- 0x023c, 0x023c,
- 0x023f, 0x0240,
- 0x0250, 0x02af,
- 0x0390, 0x0390,
- 0x03ac, 0x03ce,
- 0x03d0, 0x03d1,
- 0x03d5, 0x03d7,
- 0x03d9, 0x03d9,
- 0x03db, 0x03db,
- 0x03dd, 0x03dd,
- 0x03df, 0x03df,
- 0x03e1, 0x03e1,
- 0x03e3, 0x03e3,
- 0x03e5, 0x03e5,
- 0x03e7, 0x03e7,
- 0x03e9, 0x03e9,
- 0x03eb, 0x03eb,
- 0x03ed, 0x03ed,
- 0x03ef, 0x03f3,
- 0x03f5, 0x03f5,
- 0x03f8, 0x03f8,
- 0x03fb, 0x03fc,
- 0x0430, 0x045f,
- 0x0461, 0x0461,
- 0x0463, 0x0463,
- 0x0465, 0x0465,
- 0x0467, 0x0467,
- 0x0469, 0x0469,
- 0x046b, 0x046b,
- 0x046d, 0x046d,
- 0x046f, 0x046f,
- 0x0471, 0x0471,
- 0x0473, 0x0473,
- 0x0475, 0x0475,
- 0x0477, 0x0477,
- 0x0479, 0x0479,
- 0x047b, 0x047b,
- 0x047d, 0x047d,
- 0x047f, 0x047f,
- 0x0481, 0x0481,
- 0x048b, 0x048b,
- 0x048d, 0x048d,
- 0x048f, 0x048f,
- 0x0491, 0x0491,
- 0x0493, 0x0493,
- 0x0495, 0x0495,
- 0x0497, 0x0497,
- 0x0499, 0x0499,
- 0x049b, 0x049b,
- 0x049d, 0x049d,
- 0x049f, 0x049f,
- 0x04a1, 0x04a1,
- 0x04a3, 0x04a3,
- 0x04a5, 0x04a5,
- 0x04a7, 0x04a7,
- 0x04a9, 0x04a9,
- 0x04ab, 0x04ab,
- 0x04ad, 0x04ad,
- 0x04af, 0x04af,
- 0x04b1, 0x04b1,
- 0x04b3, 0x04b3,
- 0x04b5, 0x04b5,
- 0x04b7, 0x04b7,
- 0x04b9, 0x04b9,
- 0x04bb, 0x04bb,
- 0x04bd, 0x04bd,
- 0x04bf, 0x04bf,
- 0x04c2, 0x04c2,
- 0x04c4, 0x04c4,
- 0x04c6, 0x04c6,
- 0x04c8, 0x04c8,
- 0x04ca, 0x04ca,
- 0x04cc, 0x04cc,
- 0x04ce, 0x04ce,
- 0x04d1, 0x04d1,
- 0x04d3, 0x04d3,
- 0x04d5, 0x04d5,
- 0x04d7, 0x04d7,
- 0x04d9, 0x04d9,
- 0x04db, 0x04db,
- 0x04dd, 0x04dd,
- 0x04df, 0x04df,
- 0x04e1, 0x04e1,
- 0x04e3, 0x04e3,
- 0x04e5, 0x04e5,
- 0x04e7, 0x04e7,
- 0x04e9, 0x04e9,
- 0x04eb, 0x04eb,
- 0x04ed, 0x04ed,
- 0x04ef, 0x04ef,
- 0x04f1, 0x04f1,
- 0x04f3, 0x04f3,
- 0x04f5, 0x04f5,
- 0x04f7, 0x04f7,
- 0x04f9, 0x04f9,
- 0x0501, 0x0501,
- 0x0503, 0x0503,
- 0x0505, 0x0505,
- 0x0507, 0x0507,
- 0x0509, 0x0509,
- 0x050b, 0x050b,
- 0x050d, 0x050d,
- 0x050f, 0x050f,
- 0x0561, 0x0587,
- 0x1d00, 0x1d2b,
- 0x1d62, 0x1d77,
- 0x1d79, 0x1d9a,
- 0x1e01, 0x1e01,
- 0x1e03, 0x1e03,
- 0x1e05, 0x1e05,
- 0x1e07, 0x1e07,
- 0x1e09, 0x1e09,
- 0x1e0b, 0x1e0b,
- 0x1e0d, 0x1e0d,
- 0x1e0f, 0x1e0f,
- 0x1e11, 0x1e11,
- 0x1e13, 0x1e13,
- 0x1e15, 0x1e15,
- 0x1e17, 0x1e17,
- 0x1e19, 0x1e19,
- 0x1e1b, 0x1e1b,
- 0x1e1d, 0x1e1d,
- 0x1e1f, 0x1e1f,
- 0x1e21, 0x1e21,
- 0x1e23, 0x1e23,
- 0x1e25, 0x1e25,
- 0x1e27, 0x1e27,
- 0x1e29, 0x1e29,
- 0x1e2b, 0x1e2b,
- 0x1e2d, 0x1e2d,
- 0x1e2f, 0x1e2f,
- 0x1e31, 0x1e31,
- 0x1e33, 0x1e33,
- 0x1e35, 0x1e35,
- 0x1e37, 0x1e37,
- 0x1e39, 0x1e39,
- 0x1e3b, 0x1e3b,
- 0x1e3d, 0x1e3d,
- 0x1e3f, 0x1e3f,
- 0x1e41, 0x1e41,
- 0x1e43, 0x1e43,
- 0x1e45, 0x1e45,
- 0x1e47, 0x1e47,
- 0x1e49, 0x1e49,
- 0x1e4b, 0x1e4b,
- 0x1e4d, 0x1e4d,
- 0x1e4f, 0x1e4f,
- 0x1e51, 0x1e51,
- 0x1e53, 0x1e53,
- 0x1e55, 0x1e55,
- 0x1e57, 0x1e57,
- 0x1e59, 0x1e59,
- 0x1e5b, 0x1e5b,
- 0x1e5d, 0x1e5d,
- 0x1e5f, 0x1e5f,
- 0x1e61, 0x1e61,
- 0x1e63, 0x1e63,
- 0x1e65, 0x1e65,
- 0x1e67, 0x1e67,
- 0x1e69, 0x1e69,
- 0x1e6b, 0x1e6b,
- 0x1e6d, 0x1e6d,
- 0x1e6f, 0x1e6f,
- 0x1e71, 0x1e71,
- 0x1e73, 0x1e73,
- 0x1e75, 0x1e75,
- 0x1e77, 0x1e77,
- 0x1e79, 0x1e79,
- 0x1e7b, 0x1e7b,
- 0x1e7d, 0x1e7d,
- 0x1e7f, 0x1e7f,
- 0x1e81, 0x1e81,
- 0x1e83, 0x1e83,
- 0x1e85, 0x1e85,
- 0x1e87, 0x1e87,
- 0x1e89, 0x1e89,
- 0x1e8b, 0x1e8b,
- 0x1e8d, 0x1e8d,
- 0x1e8f, 0x1e8f,
- 0x1e91, 0x1e91,
- 0x1e93, 0x1e93,
- 0x1e95, 0x1e9b,
- 0x1ea1, 0x1ea1,
- 0x1ea3, 0x1ea3,
- 0x1ea5, 0x1ea5,
- 0x1ea7, 0x1ea7,
- 0x1ea9, 0x1ea9,
- 0x1eab, 0x1eab,
- 0x1ead, 0x1ead,
- 0x1eaf, 0x1eaf,
- 0x1eb1, 0x1eb1,
- 0x1eb3, 0x1eb3,
- 0x1eb5, 0x1eb5,
- 0x1eb7, 0x1eb7,
- 0x1eb9, 0x1eb9,
- 0x1ebb, 0x1ebb,
- 0x1ebd, 0x1ebd,
- 0x1ebf, 0x1ebf,
- 0x1ec1, 0x1ec1,
- 0x1ec3, 0x1ec3,
- 0x1ec5, 0x1ec5,
- 0x1ec7, 0x1ec7,
- 0x1ec9, 0x1ec9,
- 0x1ecb, 0x1ecb,
- 0x1ecd, 0x1ecd,
- 0x1ecf, 0x1ecf,
- 0x1ed1, 0x1ed1,
- 0x1ed3, 0x1ed3,
- 0x1ed5, 0x1ed5,
- 0x1ed7, 0x1ed7,
- 0x1ed9, 0x1ed9,
- 0x1edb, 0x1edb,
- 0x1edd, 0x1edd,
- 0x1edf, 0x1edf,
- 0x1ee1, 0x1ee1,
- 0x1ee3, 0x1ee3,
- 0x1ee5, 0x1ee5,
- 0x1ee7, 0x1ee7,
- 0x1ee9, 0x1ee9,
- 0x1eeb, 0x1eeb,
- 0x1eed, 0x1eed,
- 0x1eef, 0x1eef,
- 0x1ef1, 0x1ef1,
- 0x1ef3, 0x1ef3,
- 0x1ef5, 0x1ef5,
- 0x1ef7, 0x1ef7,
- 0x1ef9, 0x1ef9,
- 0x1f00, 0x1f07,
- 0x1f10, 0x1f15,
- 0x1f20, 0x1f27,
- 0x1f30, 0x1f37,
- 0x1f40, 0x1f45,
- 0x1f50, 0x1f57,
- 0x1f60, 0x1f67,
- 0x1f70, 0x1f7d,
- 0x1f80, 0x1f87,
- 0x1f90, 0x1f97,
- 0x1fa0, 0x1fa7,
- 0x1fb0, 0x1fb4,
- 0x1fb6, 0x1fb7,
- 0x1fbe, 0x1fbe,
- 0x1fc2, 0x1fc4,
- 0x1fc6, 0x1fc7,
- 0x1fd0, 0x1fd3,
- 0x1fd6, 0x1fd7,
- 0x1fe0, 0x1fe7,
- 0x1ff2, 0x1ff4,
- 0x1ff6, 0x1ff7,
- 0x2071, 0x2071,
- 0x207f, 0x207f,
- 0x210a, 0x210a,
- 0x210e, 0x210f,
- 0x2113, 0x2113,
- 0x212f, 0x212f,
- 0x2134, 0x2134,
- 0x2139, 0x2139,
- 0x213c, 0x213d,
- 0x2146, 0x2149,
- 0x2c30, 0x2c5e,
- 0x2c81, 0x2c81,
- 0x2c83, 0x2c83,
- 0x2c85, 0x2c85,
- 0x2c87, 0x2c87,
- 0x2c89, 0x2c89,
- 0x2c8b, 0x2c8b,
- 0x2c8d, 0x2c8d,
- 0x2c8f, 0x2c8f,
- 0x2c91, 0x2c91,
- 0x2c93, 0x2c93,
- 0x2c95, 0x2c95,
- 0x2c97, 0x2c97,
- 0x2c99, 0x2c99,
- 0x2c9b, 0x2c9b,
- 0x2c9d, 0x2c9d,
- 0x2c9f, 0x2c9f,
- 0x2ca1, 0x2ca1,
- 0x2ca3, 0x2ca3,
- 0x2ca5, 0x2ca5,
- 0x2ca7, 0x2ca7,
- 0x2ca9, 0x2ca9,
- 0x2cab, 0x2cab,
- 0x2cad, 0x2cad,
- 0x2caf, 0x2caf,
- 0x2cb1, 0x2cb1,
- 0x2cb3, 0x2cb3,
- 0x2cb5, 0x2cb5,
- 0x2cb7, 0x2cb7,
- 0x2cb9, 0x2cb9,
- 0x2cbb, 0x2cbb,
- 0x2cbd, 0x2cbd,
- 0x2cbf, 0x2cbf,
- 0x2cc1, 0x2cc1,
- 0x2cc3, 0x2cc3,
- 0x2cc5, 0x2cc5,
- 0x2cc7, 0x2cc7,
- 0x2cc9, 0x2cc9,
- 0x2ccb, 0x2ccb,
- 0x2ccd, 0x2ccd,
- 0x2ccf, 0x2ccf,
- 0x2cd1, 0x2cd1,
- 0x2cd3, 0x2cd3,
- 0x2cd5, 0x2cd5,
- 0x2cd7, 0x2cd7,
- 0x2cd9, 0x2cd9,
- 0x2cdb, 0x2cdb,
- 0x2cdd, 0x2cdd,
- 0x2cdf, 0x2cdf,
- 0x2ce1, 0x2ce1,
- 0x2ce3, 0x2ce4,
- 0x2d00, 0x2d25,
- 0xfb00, 0xfb06,
- 0xfb13, 0xfb17,
- 0xff41, 0xff5a,
- 0x10428, 0x1044f,
- 0x1d41a, 0x1d433,
- 0x1d44e, 0x1d454,
- 0x1d456, 0x1d467,
- 0x1d482, 0x1d49b,
- 0x1d4b6, 0x1d4b9,
- 0x1d4bb, 0x1d4bb,
- 0x1d4bd, 0x1d4c3,
- 0x1d4c5, 0x1d4cf,
- 0x1d4ea, 0x1d503,
- 0x1d51e, 0x1d537,
- 0x1d552, 0x1d56b,
- 0x1d586, 0x1d59f,
- 0x1d5ba, 0x1d5d3,
- 0x1d5ee, 0x1d607,
- 0x1d622, 0x1d63b,
- 0x1d656, 0x1d66f,
- 0x1d68a, 0x1d6a5,
- 0x1d6c2, 0x1d6da,
- 0x1d6dc, 0x1d6e1,
- 0x1d6fc, 0x1d714,
- 0x1d716, 0x1d71b,
- 0x1d736, 0x1d74e,
- 0x1d750, 0x1d755,
- 0x1d770, 0x1d788,
- 0x1d78a, 0x1d78f,
- 0x1d7aa, 0x1d7c2,
- 0x1d7c4, 0x1d7c9
-}; /* CR_Ll */
-
-/* 'Lm': General Category */
-static const OnigCodePoint CR_Lm[] = {
- 26,
- 0x02b0, 0x02c1,
- 0x02c6, 0x02d1,
- 0x02e0, 0x02e4,
- 0x02ee, 0x02ee,
- 0x037a, 0x037a,
- 0x0559, 0x0559,
- 0x0640, 0x0640,
- 0x06e5, 0x06e6,
- 0x0e46, 0x0e46,
- 0x0ec6, 0x0ec6,
- 0x10fc, 0x10fc,
- 0x17d7, 0x17d7,
- 0x1843, 0x1843,
- 0x1d2c, 0x1d61,
- 0x1d78, 0x1d78,
- 0x1d9b, 0x1dbf,
- 0x2090, 0x2094,
- 0x2d6f, 0x2d6f,
- 0x3005, 0x3005,
- 0x3031, 0x3035,
- 0x303b, 0x303b,
- 0x309d, 0x309e,
- 0x30fc, 0x30fe,
- 0xa015, 0xa015,
- 0xff70, 0xff70,
- 0xff9e, 0xff9f
-}; /* CR_Lm */
-
-/* 'Lo': General Category */
-static const OnigCodePoint CR_Lo[] = {
- 245,
- 0x01bb, 0x01bb,
- 0x01c0, 0x01c3,
- 0x05d0, 0x05ea,
- 0x05f0, 0x05f2,
- 0x0621, 0x063a,
- 0x0641, 0x064a,
- 0x066e, 0x066f,
- 0x0671, 0x06d3,
- 0x06d5, 0x06d5,
- 0x06ee, 0x06ef,
- 0x06fa, 0x06fc,
- 0x06ff, 0x06ff,
- 0x0710, 0x0710,
- 0x0712, 0x072f,
- 0x074d, 0x076d,
- 0x0780, 0x07a5,
- 0x07b1, 0x07b1,
- 0x0904, 0x0939,
- 0x093d, 0x093d,
- 0x0950, 0x0950,
- 0x0958, 0x0961,
- 0x097d, 0x097d,
- 0x0985, 0x098c,
- 0x098f, 0x0990,
- 0x0993, 0x09a8,
- 0x09aa, 0x09b0,
- 0x09b2, 0x09b2,
- 0x09b6, 0x09b9,
- 0x09bd, 0x09bd,
- 0x09ce, 0x09ce,
- 0x09dc, 0x09dd,
- 0x09df, 0x09e1,
- 0x09f0, 0x09f1,
- 0x0a05, 0x0a0a,
- 0x0a0f, 0x0a10,
- 0x0a13, 0x0a28,
- 0x0a2a, 0x0a30,
- 0x0a32, 0x0a33,
- 0x0a35, 0x0a36,
- 0x0a38, 0x0a39,
- 0x0a59, 0x0a5c,
- 0x0a5e, 0x0a5e,
- 0x0a72, 0x0a74,
- 0x0a85, 0x0a8d,
- 0x0a8f, 0x0a91,
- 0x0a93, 0x0aa8,
- 0x0aaa, 0x0ab0,
- 0x0ab2, 0x0ab3,
- 0x0ab5, 0x0ab9,
- 0x0abd, 0x0abd,
- 0x0ad0, 0x0ad0,
- 0x0ae0, 0x0ae1,
- 0x0b05, 0x0b0c,
- 0x0b0f, 0x0b10,
- 0x0b13, 0x0b28,
- 0x0b2a, 0x0b30,
- 0x0b32, 0x0b33,
- 0x0b35, 0x0b39,
- 0x0b3d, 0x0b3d,
- 0x0b5c, 0x0b5d,
- 0x0b5f, 0x0b61,
- 0x0b71, 0x0b71,
- 0x0b83, 0x0b83,
- 0x0b85, 0x0b8a,
- 0x0b8e, 0x0b90,
- 0x0b92, 0x0b95,
- 0x0b99, 0x0b9a,
- 0x0b9c, 0x0b9c,
- 0x0b9e, 0x0b9f,
- 0x0ba3, 0x0ba4,
- 0x0ba8, 0x0baa,
- 0x0bae, 0x0bb9,
- 0x0c05, 0x0c0c,
- 0x0c0e, 0x0c10,
- 0x0c12, 0x0c28,
- 0x0c2a, 0x0c33,
- 0x0c35, 0x0c39,
- 0x0c60, 0x0c61,
- 0x0c85, 0x0c8c,
- 0x0c8e, 0x0c90,
- 0x0c92, 0x0ca8,
- 0x0caa, 0x0cb3,
- 0x0cb5, 0x0cb9,
- 0x0cbd, 0x0cbd,
- 0x0cde, 0x0cde,
- 0x0ce0, 0x0ce1,
- 0x0d05, 0x0d0c,
- 0x0d0e, 0x0d10,
- 0x0d12, 0x0d28,
- 0x0d2a, 0x0d39,
- 0x0d60, 0x0d61,
- 0x0d85, 0x0d96,
- 0x0d9a, 0x0db1,
- 0x0db3, 0x0dbb,
- 0x0dbd, 0x0dbd,
- 0x0dc0, 0x0dc6,
- 0x0e01, 0x0e30,
- 0x0e32, 0x0e33,
- 0x0e40, 0x0e45,
- 0x0e81, 0x0e82,
- 0x0e84, 0x0e84,
- 0x0e87, 0x0e88,
- 0x0e8a, 0x0e8a,
- 0x0e8d, 0x0e8d,
- 0x0e94, 0x0e97,
- 0x0e99, 0x0e9f,
- 0x0ea1, 0x0ea3,
- 0x0ea5, 0x0ea5,
- 0x0ea7, 0x0ea7,
- 0x0eaa, 0x0eab,
- 0x0ead, 0x0eb0,
- 0x0eb2, 0x0eb3,
- 0x0ebd, 0x0ebd,
- 0x0ec0, 0x0ec4,
- 0x0edc, 0x0edd,
- 0x0f00, 0x0f00,
- 0x0f40, 0x0f47,
- 0x0f49, 0x0f6a,
- 0x0f88, 0x0f8b,
- 0x1000, 0x1021,
- 0x1023, 0x1027,
- 0x1029, 0x102a,
- 0x1050, 0x1055,
- 0x10d0, 0x10fa,
- 0x1100, 0x1159,
- 0x115f, 0x11a2,
- 0x11a8, 0x11f9,
- 0x1200, 0x1248,
- 0x124a, 0x124d,
- 0x1250, 0x1256,
- 0x1258, 0x1258,
- 0x125a, 0x125d,
- 0x1260, 0x1288,
- 0x128a, 0x128d,
- 0x1290, 0x12b0,
- 0x12b2, 0x12b5,
- 0x12b8, 0x12be,
- 0x12c0, 0x12c0,
- 0x12c2, 0x12c5,
- 0x12c8, 0x12d6,
- 0x12d8, 0x1310,
- 0x1312, 0x1315,
- 0x1318, 0x135a,
- 0x1380, 0x138f,
- 0x13a0, 0x13f4,
- 0x1401, 0x166c,
- 0x166f, 0x1676,
- 0x1681, 0x169a,
- 0x16a0, 0x16ea,
- 0x1700, 0x170c,
- 0x170e, 0x1711,
- 0x1720, 0x1731,
- 0x1740, 0x1751,
- 0x1760, 0x176c,
- 0x176e, 0x1770,
- 0x1780, 0x17b3,
- 0x17dc, 0x17dc,
- 0x1820, 0x1842,
- 0x1844, 0x1877,
- 0x1880, 0x18a8,
- 0x1900, 0x191c,
- 0x1950, 0x196d,
- 0x1970, 0x1974,
- 0x1980, 0x19a9,
- 0x19c1, 0x19c7,
- 0x1a00, 0x1a16,
- 0x2135, 0x2138,
- 0x2d30, 0x2d65,
- 0x2d80, 0x2d96,
- 0x2da0, 0x2da6,
- 0x2da8, 0x2dae,
- 0x2db0, 0x2db6,
- 0x2db8, 0x2dbe,
- 0x2dc0, 0x2dc6,
- 0x2dc8, 0x2dce,
- 0x2dd0, 0x2dd6,
- 0x2dd8, 0x2dde,
- 0x3006, 0x3006,
- 0x303c, 0x303c,
- 0x3041, 0x3096,
- 0x309f, 0x309f,
- 0x30a1, 0x30fa,
- 0x30ff, 0x30ff,
- 0x3105, 0x312c,
- 0x3131, 0x318e,
- 0x31a0, 0x31b7,
- 0x31f0, 0x31ff,
- 0x3400, 0x4db5,
- 0x4e00, 0x9fbb,
- 0xa000, 0xa014,
- 0xa016, 0xa48c,
- 0xa800, 0xa801,
- 0xa803, 0xa805,
- 0xa807, 0xa80a,
- 0xa80c, 0xa822,
- 0xac00, 0xd7a3,
- 0xf900, 0xfa2d,
- 0xfa30, 0xfa6a,
- 0xfa70, 0xfad9,
- 0xfb1d, 0xfb1d,
- 0xfb1f, 0xfb28,
- 0xfb2a, 0xfb36,
- 0xfb38, 0xfb3c,
- 0xfb3e, 0xfb3e,
- 0xfb40, 0xfb41,
- 0xfb43, 0xfb44,
- 0xfb46, 0xfbb1,
- 0xfbd3, 0xfd3d,
- 0xfd50, 0xfd8f,
- 0xfd92, 0xfdc7,
- 0xfdf0, 0xfdfb,
- 0xfe70, 0xfe74,
- 0xfe76, 0xfefc,
- 0xff66, 0xff6f,
- 0xff71, 0xff9d,
- 0xffa0, 0xffbe,
- 0xffc2, 0xffc7,
- 0xffca, 0xffcf,
- 0xffd2, 0xffd7,
- 0xffda, 0xffdc,
- 0x10000, 0x1000b,
- 0x1000d, 0x10026,
- 0x10028, 0x1003a,
- 0x1003c, 0x1003d,
- 0x1003f, 0x1004d,
- 0x10050, 0x1005d,
- 0x10080, 0x100fa,
- 0x10300, 0x1031e,
- 0x10330, 0x10349,
- 0x10380, 0x1039d,
- 0x103a0, 0x103c3,
- 0x103c8, 0x103cf,
- 0x10450, 0x1049d,
- 0x10800, 0x10805,
- 0x10808, 0x10808,
- 0x1080a, 0x10835,
- 0x10837, 0x10838,
- 0x1083c, 0x1083c,
- 0x1083f, 0x1083f,
- 0x10a00, 0x10a00,
- 0x10a10, 0x10a13,
- 0x10a15, 0x10a17,
- 0x10a19, 0x10a33,
- 0x20000, 0x2a6d6,
- 0x2f800, 0x2fa1d
-}; /* CR_Lo */
-
-/* 'Lt': General Category */
-static const OnigCodePoint CR_Lt[] = {
- 10,
- 0x01c5, 0x01c5,
- 0x01c8, 0x01c8,
- 0x01cb, 0x01cb,
- 0x01f2, 0x01f2,
- 0x1f88, 0x1f8f,
- 0x1f98, 0x1f9f,
- 0x1fa8, 0x1faf,
- 0x1fbc, 0x1fbc,
- 0x1fcc, 0x1fcc,
- 0x1ffc, 0x1ffc
-}; /* CR_Lt */
-
-/* 'Lu': General Category */
-static const OnigCodePoint CR_Lu[] = {
- 476,
- 0x0041, 0x005a,
- 0x00c0, 0x00d6,
- 0x00d8, 0x00de,
- 0x0100, 0x0100,
- 0x0102, 0x0102,
- 0x0104, 0x0104,
- 0x0106, 0x0106,
- 0x0108, 0x0108,
- 0x010a, 0x010a,
- 0x010c, 0x010c,
- 0x010e, 0x010e,
- 0x0110, 0x0110,
- 0x0112, 0x0112,
- 0x0114, 0x0114,
- 0x0116, 0x0116,
- 0x0118, 0x0118,
- 0x011a, 0x011a,
- 0x011c, 0x011c,
- 0x011e, 0x011e,
- 0x0120, 0x0120,
- 0x0122, 0x0122,
- 0x0124, 0x0124,
- 0x0126, 0x0126,
- 0x0128, 0x0128,
- 0x012a, 0x012a,
- 0x012c, 0x012c,
- 0x012e, 0x012e,
- 0x0130, 0x0130,
- 0x0132, 0x0132,
- 0x0134, 0x0134,
- 0x0136, 0x0136,
- 0x0139, 0x0139,
- 0x013b, 0x013b,
- 0x013d, 0x013d,
- 0x013f, 0x013f,
- 0x0141, 0x0141,
- 0x0143, 0x0143,
- 0x0145, 0x0145,
- 0x0147, 0x0147,
- 0x014a, 0x014a,
- 0x014c, 0x014c,
- 0x014e, 0x014e,
- 0x0150, 0x0150,
- 0x0152, 0x0152,
- 0x0154, 0x0154,
- 0x0156, 0x0156,
- 0x0158, 0x0158,
- 0x015a, 0x015a,
- 0x015c, 0x015c,
- 0x015e, 0x015e,
- 0x0160, 0x0160,
- 0x0162, 0x0162,
- 0x0164, 0x0164,
- 0x0166, 0x0166,
- 0x0168, 0x0168,
- 0x016a, 0x016a,
- 0x016c, 0x016c,
- 0x016e, 0x016e,
- 0x0170, 0x0170,
- 0x0172, 0x0172,
- 0x0174, 0x0174,
- 0x0176, 0x0176,
- 0x0178, 0x0179,
- 0x017b, 0x017b,
- 0x017d, 0x017d,
- 0x0181, 0x0182,
- 0x0184, 0x0184,
- 0x0186, 0x0187,
- 0x0189, 0x018b,
- 0x018e, 0x0191,
- 0x0193, 0x0194,
- 0x0196, 0x0198,
- 0x019c, 0x019d,
- 0x019f, 0x01a0,
- 0x01a2, 0x01a2,
- 0x01a4, 0x01a4,
- 0x01a6, 0x01a7,
- 0x01a9, 0x01a9,
- 0x01ac, 0x01ac,
- 0x01ae, 0x01af,
- 0x01b1, 0x01b3,
- 0x01b5, 0x01b5,
- 0x01b7, 0x01b8,
- 0x01bc, 0x01bc,
- 0x01c4, 0x01c4,
- 0x01c7, 0x01c7,
- 0x01ca, 0x01ca,
- 0x01cd, 0x01cd,
- 0x01cf, 0x01cf,
- 0x01d1, 0x01d1,
- 0x01d3, 0x01d3,
- 0x01d5, 0x01d5,
- 0x01d7, 0x01d7,
- 0x01d9, 0x01d9,
- 0x01db, 0x01db,
- 0x01de, 0x01de,
- 0x01e0, 0x01e0,
- 0x01e2, 0x01e2,
- 0x01e4, 0x01e4,
- 0x01e6, 0x01e6,
- 0x01e8, 0x01e8,
- 0x01ea, 0x01ea,
- 0x01ec, 0x01ec,
- 0x01ee, 0x01ee,
- 0x01f1, 0x01f1,
- 0x01f4, 0x01f4,
- 0x01f6, 0x01f8,
- 0x01fa, 0x01fa,
- 0x01fc, 0x01fc,
- 0x01fe, 0x01fe,
- 0x0200, 0x0200,
- 0x0202, 0x0202,
- 0x0204, 0x0204,
- 0x0206, 0x0206,
- 0x0208, 0x0208,
- 0x020a, 0x020a,
- 0x020c, 0x020c,
- 0x020e, 0x020e,
- 0x0210, 0x0210,
- 0x0212, 0x0212,
- 0x0214, 0x0214,
- 0x0216, 0x0216,
- 0x0218, 0x0218,
- 0x021a, 0x021a,
- 0x021c, 0x021c,
- 0x021e, 0x021e,
- 0x0220, 0x0220,
- 0x0222, 0x0222,
- 0x0224, 0x0224,
- 0x0226, 0x0226,
- 0x0228, 0x0228,
- 0x022a, 0x022a,
- 0x022c, 0x022c,
- 0x022e, 0x022e,
- 0x0230, 0x0230,
- 0x0232, 0x0232,
- 0x023a, 0x023b,
- 0x023d, 0x023e,
- 0x0241, 0x0241,
- 0x0386, 0x0386,
- 0x0388, 0x038a,
- 0x038c, 0x038c,
- 0x038e, 0x038f,
- 0x0391, 0x03a1,
- 0x03a3, 0x03ab,
- 0x03d2, 0x03d4,
- 0x03d8, 0x03d8,
- 0x03da, 0x03da,
- 0x03dc, 0x03dc,
- 0x03de, 0x03de,
- 0x03e0, 0x03e0,
- 0x03e2, 0x03e2,
- 0x03e4, 0x03e4,
- 0x03e6, 0x03e6,
- 0x03e8, 0x03e8,
- 0x03ea, 0x03ea,
- 0x03ec, 0x03ec,
- 0x03ee, 0x03ee,
- 0x03f4, 0x03f4,
- 0x03f7, 0x03f7,
- 0x03f9, 0x03fa,
- 0x03fd, 0x042f,
- 0x0460, 0x0460,
- 0x0462, 0x0462,
- 0x0464, 0x0464,
- 0x0466, 0x0466,
- 0x0468, 0x0468,
- 0x046a, 0x046a,
- 0x046c, 0x046c,
- 0x046e, 0x046e,
- 0x0470, 0x0470,
- 0x0472, 0x0472,
- 0x0474, 0x0474,
- 0x0476, 0x0476,
- 0x0478, 0x0478,
- 0x047a, 0x047a,
- 0x047c, 0x047c,
- 0x047e, 0x047e,
- 0x0480, 0x0480,
- 0x048a, 0x048a,
- 0x048c, 0x048c,
- 0x048e, 0x048e,
- 0x0490, 0x0490,
- 0x0492, 0x0492,
- 0x0494, 0x0494,
- 0x0496, 0x0496,
- 0x0498, 0x0498,
- 0x049a, 0x049a,
- 0x049c, 0x049c,
- 0x049e, 0x049e,
- 0x04a0, 0x04a0,
- 0x04a2, 0x04a2,
- 0x04a4, 0x04a4,
- 0x04a6, 0x04a6,
- 0x04a8, 0x04a8,
- 0x04aa, 0x04aa,
- 0x04ac, 0x04ac,
- 0x04ae, 0x04ae,
- 0x04b0, 0x04b0,
- 0x04b2, 0x04b2,
- 0x04b4, 0x04b4,
- 0x04b6, 0x04b6,
- 0x04b8, 0x04b8,
- 0x04ba, 0x04ba,
- 0x04bc, 0x04bc,
- 0x04be, 0x04be,
- 0x04c0, 0x04c1,
- 0x04c3, 0x04c3,
- 0x04c5, 0x04c5,
- 0x04c7, 0x04c7,
- 0x04c9, 0x04c9,
- 0x04cb, 0x04cb,
- 0x04cd, 0x04cd,
- 0x04d0, 0x04d0,
- 0x04d2, 0x04d2,
- 0x04d4, 0x04d4,
- 0x04d6, 0x04d6,
- 0x04d8, 0x04d8,
- 0x04da, 0x04da,
- 0x04dc, 0x04dc,
- 0x04de, 0x04de,
- 0x04e0, 0x04e0,
- 0x04e2, 0x04e2,
- 0x04e4, 0x04e4,
- 0x04e6, 0x04e6,
- 0x04e8, 0x04e8,
- 0x04ea, 0x04ea,
- 0x04ec, 0x04ec,
- 0x04ee, 0x04ee,
- 0x04f0, 0x04f0,
- 0x04f2, 0x04f2,
- 0x04f4, 0x04f4,
- 0x04f6, 0x04f6,
- 0x04f8, 0x04f8,
- 0x0500, 0x0500,
- 0x0502, 0x0502,
- 0x0504, 0x0504,
- 0x0506, 0x0506,
- 0x0508, 0x0508,
- 0x050a, 0x050a,
- 0x050c, 0x050c,
- 0x050e, 0x050e,
- 0x0531, 0x0556,
- 0x10a0, 0x10c5,
- 0x1e00, 0x1e00,
- 0x1e02, 0x1e02,
- 0x1e04, 0x1e04,
- 0x1e06, 0x1e06,
- 0x1e08, 0x1e08,
- 0x1e0a, 0x1e0a,
- 0x1e0c, 0x1e0c,
- 0x1e0e, 0x1e0e,
- 0x1e10, 0x1e10,
- 0x1e12, 0x1e12,
- 0x1e14, 0x1e14,
- 0x1e16, 0x1e16,
- 0x1e18, 0x1e18,
- 0x1e1a, 0x1e1a,
- 0x1e1c, 0x1e1c,
- 0x1e1e, 0x1e1e,
- 0x1e20, 0x1e20,
- 0x1e22, 0x1e22,
- 0x1e24, 0x1e24,
- 0x1e26, 0x1e26,
- 0x1e28, 0x1e28,
- 0x1e2a, 0x1e2a,
- 0x1e2c, 0x1e2c,
- 0x1e2e, 0x1e2e,
- 0x1e30, 0x1e30,
- 0x1e32, 0x1e32,
- 0x1e34, 0x1e34,
- 0x1e36, 0x1e36,
- 0x1e38, 0x1e38,
- 0x1e3a, 0x1e3a,
- 0x1e3c, 0x1e3c,
- 0x1e3e, 0x1e3e,
- 0x1e40, 0x1e40,
- 0x1e42, 0x1e42,
- 0x1e44, 0x1e44,
- 0x1e46, 0x1e46,
- 0x1e48, 0x1e48,
- 0x1e4a, 0x1e4a,
- 0x1e4c, 0x1e4c,
- 0x1e4e, 0x1e4e,
- 0x1e50, 0x1e50,
- 0x1e52, 0x1e52,
- 0x1e54, 0x1e54,
- 0x1e56, 0x1e56,
- 0x1e58, 0x1e58,
- 0x1e5a, 0x1e5a,
- 0x1e5c, 0x1e5c,
- 0x1e5e, 0x1e5e,
- 0x1e60, 0x1e60,
- 0x1e62, 0x1e62,
- 0x1e64, 0x1e64,
- 0x1e66, 0x1e66,
- 0x1e68, 0x1e68,
- 0x1e6a, 0x1e6a,
- 0x1e6c, 0x1e6c,
- 0x1e6e, 0x1e6e,
- 0x1e70, 0x1e70,
- 0x1e72, 0x1e72,
- 0x1e74, 0x1e74,
- 0x1e76, 0x1e76,
- 0x1e78, 0x1e78,
- 0x1e7a, 0x1e7a,
- 0x1e7c, 0x1e7c,
- 0x1e7e, 0x1e7e,
- 0x1e80, 0x1e80,
- 0x1e82, 0x1e82,
- 0x1e84, 0x1e84,
- 0x1e86, 0x1e86,
- 0x1e88, 0x1e88,
- 0x1e8a, 0x1e8a,
- 0x1e8c, 0x1e8c,
- 0x1e8e, 0x1e8e,
- 0x1e90, 0x1e90,
- 0x1e92, 0x1e92,
- 0x1e94, 0x1e94,
- 0x1ea0, 0x1ea0,
- 0x1ea2, 0x1ea2,
- 0x1ea4, 0x1ea4,
- 0x1ea6, 0x1ea6,
- 0x1ea8, 0x1ea8,
- 0x1eaa, 0x1eaa,
- 0x1eac, 0x1eac,
- 0x1eae, 0x1eae,
- 0x1eb0, 0x1eb0,
- 0x1eb2, 0x1eb2,
- 0x1eb4, 0x1eb4,
- 0x1eb6, 0x1eb6,
- 0x1eb8, 0x1eb8,
- 0x1eba, 0x1eba,
- 0x1ebc, 0x1ebc,
- 0x1ebe, 0x1ebe,
- 0x1ec0, 0x1ec0,
- 0x1ec2, 0x1ec2,
- 0x1ec4, 0x1ec4,
- 0x1ec6, 0x1ec6,
- 0x1ec8, 0x1ec8,
- 0x1eca, 0x1eca,
- 0x1ecc, 0x1ecc,
- 0x1ece, 0x1ece,
- 0x1ed0, 0x1ed0,
- 0x1ed2, 0x1ed2,
- 0x1ed4, 0x1ed4,
- 0x1ed6, 0x1ed6,
- 0x1ed8, 0x1ed8,
- 0x1eda, 0x1eda,
- 0x1edc, 0x1edc,
- 0x1ede, 0x1ede,
- 0x1ee0, 0x1ee0,
- 0x1ee2, 0x1ee2,
- 0x1ee4, 0x1ee4,
- 0x1ee6, 0x1ee6,
- 0x1ee8, 0x1ee8,
- 0x1eea, 0x1eea,
- 0x1eec, 0x1eec,
- 0x1eee, 0x1eee,
- 0x1ef0, 0x1ef0,
- 0x1ef2, 0x1ef2,
- 0x1ef4, 0x1ef4,
- 0x1ef6, 0x1ef6,
- 0x1ef8, 0x1ef8,
- 0x1f08, 0x1f0f,
- 0x1f18, 0x1f1d,
- 0x1f28, 0x1f2f,
- 0x1f38, 0x1f3f,
- 0x1f48, 0x1f4d,
- 0x1f59, 0x1f59,
- 0x1f5b, 0x1f5b,
- 0x1f5d, 0x1f5d,
- 0x1f5f, 0x1f5f,
- 0x1f68, 0x1f6f,
- 0x1fb8, 0x1fbb,
- 0x1fc8, 0x1fcb,
- 0x1fd8, 0x1fdb,
- 0x1fe8, 0x1fec,
- 0x1ff8, 0x1ffb,
- 0x2102, 0x2102,
- 0x2107, 0x2107,
- 0x210b, 0x210d,
- 0x2110, 0x2112,
- 0x2115, 0x2115,
- 0x2119, 0x211d,
- 0x2124, 0x2124,
- 0x2126, 0x2126,
- 0x2128, 0x2128,
- 0x212a, 0x212d,
- 0x2130, 0x2131,
- 0x2133, 0x2133,
- 0x213e, 0x213f,
- 0x2145, 0x2145,
- 0x2c00, 0x2c2e,
- 0x2c80, 0x2c80,
- 0x2c82, 0x2c82,
- 0x2c84, 0x2c84,
- 0x2c86, 0x2c86,
- 0x2c88, 0x2c88,
- 0x2c8a, 0x2c8a,
- 0x2c8c, 0x2c8c,
- 0x2c8e, 0x2c8e,
- 0x2c90, 0x2c90,
- 0x2c92, 0x2c92,
- 0x2c94, 0x2c94,
- 0x2c96, 0x2c96,
- 0x2c98, 0x2c98,
- 0x2c9a, 0x2c9a,
- 0x2c9c, 0x2c9c,
- 0x2c9e, 0x2c9e,
- 0x2ca0, 0x2ca0,
- 0x2ca2, 0x2ca2,
- 0x2ca4, 0x2ca4,
- 0x2ca6, 0x2ca6,
- 0x2ca8, 0x2ca8,
- 0x2caa, 0x2caa,
- 0x2cac, 0x2cac,
- 0x2cae, 0x2cae,
- 0x2cb0, 0x2cb0,
- 0x2cb2, 0x2cb2,
- 0x2cb4, 0x2cb4,
- 0x2cb6, 0x2cb6,
- 0x2cb8, 0x2cb8,
- 0x2cba, 0x2cba,
- 0x2cbc, 0x2cbc,
- 0x2cbe, 0x2cbe,
- 0x2cc0, 0x2cc0,
- 0x2cc2, 0x2cc2,
- 0x2cc4, 0x2cc4,
- 0x2cc6, 0x2cc6,
- 0x2cc8, 0x2cc8,
- 0x2cca, 0x2cca,
- 0x2ccc, 0x2ccc,
- 0x2cce, 0x2cce,
- 0x2cd0, 0x2cd0,
- 0x2cd2, 0x2cd2,
- 0x2cd4, 0x2cd4,
- 0x2cd6, 0x2cd6,
- 0x2cd8, 0x2cd8,
- 0x2cda, 0x2cda,
- 0x2cdc, 0x2cdc,
- 0x2cde, 0x2cde,
- 0x2ce0, 0x2ce0,
- 0x2ce2, 0x2ce2,
- 0xff21, 0xff3a,
- 0x10400, 0x10427,
- 0x1d400, 0x1d419,
- 0x1d434, 0x1d44d,
- 0x1d468, 0x1d481,
- 0x1d49c, 0x1d49c,
- 0x1d49e, 0x1d49f,
- 0x1d4a2, 0x1d4a2,
- 0x1d4a5, 0x1d4a6,
- 0x1d4a9, 0x1d4ac,
- 0x1d4ae, 0x1d4b5,
- 0x1d4d0, 0x1d4e9,
- 0x1d504, 0x1d505,
- 0x1d507, 0x1d50a,
- 0x1d50d, 0x1d514,
- 0x1d516, 0x1d51c,
- 0x1d538, 0x1d539,
- 0x1d53b, 0x1d53e,
- 0x1d540, 0x1d544,
- 0x1d546, 0x1d546,
- 0x1d54a, 0x1d550,
- 0x1d56c, 0x1d585,
- 0x1d5a0, 0x1d5b9,
- 0x1d5d4, 0x1d5ed,
- 0x1d608, 0x1d621,
- 0x1d63c, 0x1d655,
- 0x1d670, 0x1d689,
- 0x1d6a8, 0x1d6c0,
- 0x1d6e2, 0x1d6fa,
- 0x1d71c, 0x1d734,
- 0x1d756, 0x1d76e,
- 0x1d790, 0x1d7a8
-}; /* CR_Lu */
-
-/* 'M': Major Category */
-static const OnigCodePoint CR_M[] = {
- 133,
- 0x0300, 0x036f,
- 0x0483, 0x0486,
- 0x0488, 0x0489,
- 0x0591, 0x05b9,
- 0x05bb, 0x05bd,
- 0x05bf, 0x05bf,
- 0x05c1, 0x05c2,
- 0x05c4, 0x05c5,
- 0x05c7, 0x05c7,
- 0x0610, 0x0615,
- 0x064b, 0x065e,
- 0x0670, 0x0670,
- 0x06d6, 0x06dc,
- 0x06de, 0x06e4,
- 0x06e7, 0x06e8,
- 0x06ea, 0x06ed,
- 0x0711, 0x0711,
- 0x0730, 0x074a,
- 0x07a6, 0x07b0,
- 0x0901, 0x0903,
- 0x093c, 0x093c,
- 0x093e, 0x094d,
- 0x0951, 0x0954,
- 0x0962, 0x0963,
- 0x0981, 0x0983,
- 0x09bc, 0x09bc,
- 0x09be, 0x09c4,
- 0x09c7, 0x09c8,
- 0x09cb, 0x09cd,
- 0x09d7, 0x09d7,
- 0x09e2, 0x09e3,
- 0x0a01, 0x0a03,
- 0x0a3c, 0x0a3c,
- 0x0a3e, 0x0a42,
- 0x0a47, 0x0a48,
- 0x0a4b, 0x0a4d,
- 0x0a70, 0x0a71,
- 0x0a81, 0x0a83,
- 0x0abc, 0x0abc,
- 0x0abe, 0x0ac5,
- 0x0ac7, 0x0ac9,
- 0x0acb, 0x0acd,
- 0x0ae2, 0x0ae3,
- 0x0b01, 0x0b03,
- 0x0b3c, 0x0b3c,
- 0x0b3e, 0x0b43,
- 0x0b47, 0x0b48,
- 0x0b4b, 0x0b4d,
- 0x0b56, 0x0b57,
- 0x0b82, 0x0b82,
- 0x0bbe, 0x0bc2,
- 0x0bc6, 0x0bc8,
- 0x0bca, 0x0bcd,
- 0x0bd7, 0x0bd7,
- 0x0c01, 0x0c03,
- 0x0c3e, 0x0c44,
- 0x0c46, 0x0c48,
- 0x0c4a, 0x0c4d,
- 0x0c55, 0x0c56,
- 0x0c82, 0x0c83,
- 0x0cbc, 0x0cbc,
- 0x0cbe, 0x0cc4,
- 0x0cc6, 0x0cc8,
- 0x0cca, 0x0ccd,
- 0x0cd5, 0x0cd6,
- 0x0d02, 0x0d03,
- 0x0d3e, 0x0d43,
- 0x0d46, 0x0d48,
- 0x0d4a, 0x0d4d,
- 0x0d57, 0x0d57,
- 0x0d82, 0x0d83,
- 0x0dca, 0x0dca,
- 0x0dcf, 0x0dd4,
- 0x0dd6, 0x0dd6,
- 0x0dd8, 0x0ddf,
- 0x0df2, 0x0df3,
- 0x0e31, 0x0e31,
- 0x0e34, 0x0e3a,
- 0x0e47, 0x0e4e,
- 0x0eb1, 0x0eb1,
- 0x0eb4, 0x0eb9,
- 0x0ebb, 0x0ebc,
- 0x0ec8, 0x0ecd,
- 0x0f18, 0x0f19,
- 0x0f35, 0x0f35,
- 0x0f37, 0x0f37,
- 0x0f39, 0x0f39,
- 0x0f3e, 0x0f3f,
- 0x0f71, 0x0f84,
- 0x0f86, 0x0f87,
- 0x0f90, 0x0f97,
- 0x0f99, 0x0fbc,
- 0x0fc6, 0x0fc6,
- 0x102c, 0x1032,
- 0x1036, 0x1039,
- 0x1056, 0x1059,
- 0x135f, 0x135f,
- 0x1712, 0x1714,
- 0x1732, 0x1734,
- 0x1752, 0x1753,
- 0x1772, 0x1773,
- 0x17b6, 0x17d3,
- 0x17dd, 0x17dd,
- 0x180b, 0x180d,
- 0x18a9, 0x18a9,
- 0x1920, 0x192b,
- 0x1930, 0x193b,
- 0x19b0, 0x19c0,
- 0x19c8, 0x19c9,
- 0x1a17, 0x1a1b,
- 0x1dc0, 0x1dc3,
- 0x20d0, 0x20eb,
- 0x302a, 0x302f,
- 0x3099, 0x309a,
- 0xa802, 0xa802,
- 0xa806, 0xa806,
- 0xa80b, 0xa80b,
- 0xa823, 0xa827,
- 0xfb1e, 0xfb1e,
- 0xfe00, 0xfe0f,
- 0xfe20, 0xfe23,
- 0x10a01, 0x10a03,
- 0x10a05, 0x10a06,
- 0x10a0c, 0x10a0f,
- 0x10a38, 0x10a3a,
- 0x10a3f, 0x10a3f,
- 0x1d165, 0x1d169,
- 0x1d16d, 0x1d172,
- 0x1d17b, 0x1d182,
- 0x1d185, 0x1d18b,
- 0x1d1aa, 0x1d1ad,
- 0x1d242, 0x1d244,
- 0xe0100, 0xe01ef
-}; /* CR_M */
-
-/* 'Mc': General Category */
-static const OnigCodePoint CR_Mc[] = {
- 63,
- 0x0903, 0x0903,
- 0x093e, 0x0940,
- 0x0949, 0x094c,
- 0x0982, 0x0983,
- 0x09be, 0x09c0,
- 0x09c7, 0x09c8,
- 0x09cb, 0x09cc,
- 0x09d7, 0x09d7,
- 0x0a03, 0x0a03,
- 0x0a3e, 0x0a40,
- 0x0a83, 0x0a83,
- 0x0abe, 0x0ac0,
- 0x0ac9, 0x0ac9,
- 0x0acb, 0x0acc,
- 0x0b02, 0x0b03,
- 0x0b3e, 0x0b3e,
- 0x0b40, 0x0b40,
- 0x0b47, 0x0b48,
- 0x0b4b, 0x0b4c,
- 0x0b57, 0x0b57,
- 0x0bbe, 0x0bbf,
- 0x0bc1, 0x0bc2,
- 0x0bc6, 0x0bc8,
- 0x0bca, 0x0bcc,
- 0x0bd7, 0x0bd7,
- 0x0c01, 0x0c03,
- 0x0c41, 0x0c44,
- 0x0c82, 0x0c83,
- 0x0cbe, 0x0cbe,
- 0x0cc0, 0x0cc4,
- 0x0cc7, 0x0cc8,
- 0x0cca, 0x0ccb,
- 0x0cd5, 0x0cd6,
- 0x0d02, 0x0d03,
- 0x0d3e, 0x0d40,
- 0x0d46, 0x0d48,
- 0x0d4a, 0x0d4c,
- 0x0d57, 0x0d57,
- 0x0d82, 0x0d83,
- 0x0dcf, 0x0dd1,
- 0x0dd8, 0x0ddf,
- 0x0df2, 0x0df3,
- 0x0f3e, 0x0f3f,
- 0x0f7f, 0x0f7f,
- 0x102c, 0x102c,
- 0x1031, 0x1031,
- 0x1038, 0x1038,
- 0x1056, 0x1057,
- 0x17b6, 0x17b6,
- 0x17be, 0x17c5,
- 0x17c7, 0x17c8,
- 0x1923, 0x1926,
- 0x1929, 0x192b,
- 0x1930, 0x1931,
- 0x1933, 0x1938,
- 0x19b0, 0x19c0,
- 0x19c8, 0x19c9,
- 0x1a19, 0x1a1b,
- 0xa802, 0xa802,
- 0xa823, 0xa824,
- 0xa827, 0xa827,
- 0x1d165, 0x1d166,
- 0x1d16d, 0x1d172
-}; /* CR_Mc */
-
-/* 'Me': General Category */
-static const OnigCodePoint CR_Me[] = {
- 4,
- 0x0488, 0x0489,
- 0x06de, 0x06de,
- 0x20dd, 0x20e0,
- 0x20e2, 0x20e4
-}; /* CR_Me */
-
-/* 'Mn': General Category */
-static const OnigCodePoint CR_Mn[] = {
- 124,
- 0x0300, 0x036f,
- 0x0483, 0x0486,
- 0x0591, 0x05b9,
- 0x05bb, 0x05bd,
- 0x05bf, 0x05bf,
- 0x05c1, 0x05c2,
- 0x05c4, 0x05c5,
- 0x05c7, 0x05c7,
- 0x0610, 0x0615,
- 0x064b, 0x065e,
- 0x0670, 0x0670,
- 0x06d6, 0x06dc,
- 0x06df, 0x06e4,
- 0x06e7, 0x06e8,
- 0x06ea, 0x06ed,
- 0x0711, 0x0711,
- 0x0730, 0x074a,
- 0x07a6, 0x07b0,
- 0x0901, 0x0902,
- 0x093c, 0x093c,
- 0x0941, 0x0948,
- 0x094d, 0x094d,
- 0x0951, 0x0954,
- 0x0962, 0x0963,
- 0x0981, 0x0981,
- 0x09bc, 0x09bc,
- 0x09c1, 0x09c4,
- 0x09cd, 0x09cd,
- 0x09e2, 0x09e3,
- 0x0a01, 0x0a02,
- 0x0a3c, 0x0a3c,
- 0x0a41, 0x0a42,
- 0x0a47, 0x0a48,
- 0x0a4b, 0x0a4d,
- 0x0a70, 0x0a71,
- 0x0a81, 0x0a82,
- 0x0abc, 0x0abc,
- 0x0ac1, 0x0ac5,
- 0x0ac7, 0x0ac8,
- 0x0acd, 0x0acd,
- 0x0ae2, 0x0ae3,
- 0x0b01, 0x0b01,
- 0x0b3c, 0x0b3c,
- 0x0b3f, 0x0b3f,
- 0x0b41, 0x0b43,
- 0x0b4d, 0x0b4d,
- 0x0b56, 0x0b56,
- 0x0b82, 0x0b82,
- 0x0bc0, 0x0bc0,
- 0x0bcd, 0x0bcd,
- 0x0c3e, 0x0c40,
- 0x0c46, 0x0c48,
- 0x0c4a, 0x0c4d,
- 0x0c55, 0x0c56,
- 0x0cbc, 0x0cbc,
- 0x0cbf, 0x0cbf,
- 0x0cc6, 0x0cc6,
- 0x0ccc, 0x0ccd,
- 0x0d41, 0x0d43,
- 0x0d4d, 0x0d4d,
- 0x0dca, 0x0dca,
- 0x0dd2, 0x0dd4,
- 0x0dd6, 0x0dd6,
- 0x0e31, 0x0e31,
- 0x0e34, 0x0e3a,
- 0x0e47, 0x0e4e,
- 0x0eb1, 0x0eb1,
- 0x0eb4, 0x0eb9,
- 0x0ebb, 0x0ebc,
- 0x0ec8, 0x0ecd,
- 0x0f18, 0x0f19,
- 0x0f35, 0x0f35,
- 0x0f37, 0x0f37,
- 0x0f39, 0x0f39,
- 0x0f71, 0x0f7e,
- 0x0f80, 0x0f84,
- 0x0f86, 0x0f87,
- 0x0f90, 0x0f97,
- 0x0f99, 0x0fbc,
- 0x0fc6, 0x0fc6,
- 0x102d, 0x1030,
- 0x1032, 0x1032,
- 0x1036, 0x1037,
- 0x1039, 0x1039,
- 0x1058, 0x1059,
- 0x135f, 0x135f,
- 0x1712, 0x1714,
- 0x1732, 0x1734,
- 0x1752, 0x1753,
- 0x1772, 0x1773,
- 0x17b7, 0x17bd,
- 0x17c6, 0x17c6,
- 0x17c9, 0x17d3,
- 0x17dd, 0x17dd,
- 0x180b, 0x180d,
- 0x18a9, 0x18a9,
- 0x1920, 0x1922,
- 0x1927, 0x1928,
- 0x1932, 0x1932,
- 0x1939, 0x193b,
- 0x1a17, 0x1a18,
- 0x1dc0, 0x1dc3,
- 0x20d0, 0x20dc,
- 0x20e1, 0x20e1,
- 0x20e5, 0x20eb,
- 0x302a, 0x302f,
- 0x3099, 0x309a,
- 0xa806, 0xa806,
- 0xa80b, 0xa80b,
- 0xa825, 0xa826,
- 0xfb1e, 0xfb1e,
- 0xfe00, 0xfe0f,
- 0xfe20, 0xfe23,
- 0x10a01, 0x10a03,
- 0x10a05, 0x10a06,
- 0x10a0c, 0x10a0f,
- 0x10a38, 0x10a3a,
- 0x10a3f, 0x10a3f,
- 0x1d167, 0x1d169,
- 0x1d17b, 0x1d182,
- 0x1d185, 0x1d18b,
- 0x1d1aa, 0x1d1ad,
- 0x1d242, 0x1d244,
- 0xe0100, 0xe01ef
-}; /* CR_Mn */
-
-/* 'N': Major Category */
-static const OnigCodePoint CR_N[] = {
- 53,
- 0x0030, 0x0039,
- 0x00b2, 0x00b3,
- 0x00b9, 0x00b9,
- 0x00bc, 0x00be,
- 0x0660, 0x0669,
- 0x06f0, 0x06f9,
- 0x0966, 0x096f,
- 0x09e6, 0x09ef,
- 0x09f4, 0x09f9,
- 0x0a66, 0x0a6f,
- 0x0ae6, 0x0aef,
- 0x0b66, 0x0b6f,
- 0x0be6, 0x0bf2,
- 0x0c66, 0x0c6f,
- 0x0ce6, 0x0cef,
- 0x0d66, 0x0d6f,
- 0x0e50, 0x0e59,
- 0x0ed0, 0x0ed9,
- 0x0f20, 0x0f33,
- 0x1040, 0x1049,
- 0x1369, 0x137c,
- 0x16ee, 0x16f0,
- 0x17e0, 0x17e9,
- 0x17f0, 0x17f9,
- 0x1810, 0x1819,
- 0x1946, 0x194f,
- 0x19d0, 0x19d9,
- 0x2070, 0x2070,
- 0x2074, 0x2079,
- 0x2080, 0x2089,
- 0x2153, 0x2183,
- 0x2460, 0x249b,
- 0x24ea, 0x24ff,
- 0x2776, 0x2793,
- 0x2cfd, 0x2cfd,
- 0x3007, 0x3007,
- 0x3021, 0x3029,
- 0x3038, 0x303a,
- 0x3192, 0x3195,
- 0x3220, 0x3229,
- 0x3251, 0x325f,
- 0x3280, 0x3289,
- 0x32b1, 0x32bf,
- 0xff10, 0xff19,
- 0x10107, 0x10133,
- 0x10140, 0x10178,
- 0x1018a, 0x1018a,
- 0x10320, 0x10323,
- 0x1034a, 0x1034a,
- 0x103d1, 0x103d5,
- 0x104a0, 0x104a9,
- 0x10a40, 0x10a47,
- 0x1d7ce, 0x1d7ff
-}; /* CR_N */
-
-/* 'Nd': General Category */
-static const OnigCodePoint CR_Nd[] = {
- 23,
- 0x0030, 0x0039,
- 0x0660, 0x0669,
- 0x06f0, 0x06f9,
- 0x0966, 0x096f,
- 0x09e6, 0x09ef,
- 0x0a66, 0x0a6f,
- 0x0ae6, 0x0aef,
- 0x0b66, 0x0b6f,
- 0x0be6, 0x0bef,
- 0x0c66, 0x0c6f,
- 0x0ce6, 0x0cef,
- 0x0d66, 0x0d6f,
- 0x0e50, 0x0e59,
- 0x0ed0, 0x0ed9,
- 0x0f20, 0x0f29,
- 0x1040, 0x1049,
- 0x17e0, 0x17e9,
- 0x1810, 0x1819,
- 0x1946, 0x194f,
- 0x19d0, 0x19d9,
- 0xff10, 0xff19,
- 0x104a0, 0x104a9,
- 0x1d7ce, 0x1d7ff
-}; /* CR_Nd */
-
-/* 'Nl': General Category */
-static const OnigCodePoint CR_Nl[] = {
- 8,
- 0x16ee, 0x16f0,
- 0x2160, 0x2183,
- 0x3007, 0x3007,
- 0x3021, 0x3029,
- 0x3038, 0x303a,
- 0x10140, 0x10174,
- 0x1034a, 0x1034a,
- 0x103d1, 0x103d5
-}; /* CR_Nl */
-
-/* 'No': General Category */
-static const OnigCodePoint CR_No[] = {
- 26,
- 0x00b2, 0x00b3,
- 0x00b9, 0x00b9,
- 0x00bc, 0x00be,
- 0x09f4, 0x09f9,
- 0x0bf0, 0x0bf2,
- 0x0f2a, 0x0f33,
- 0x1369, 0x137c,
- 0x17f0, 0x17f9,
- 0x2070, 0x2070,
- 0x2074, 0x2079,
- 0x2080, 0x2089,
- 0x2153, 0x215f,
- 0x2460, 0x249b,
- 0x24ea, 0x24ff,
- 0x2776, 0x2793,
- 0x2cfd, 0x2cfd,
- 0x3192, 0x3195,
- 0x3220, 0x3229,
- 0x3251, 0x325f,
- 0x3280, 0x3289,
- 0x32b1, 0x32bf,
- 0x10107, 0x10133,
- 0x10175, 0x10178,
- 0x1018a, 0x1018a,
- 0x10320, 0x10323,
- 0x10a40, 0x10a47
-}; /* CR_No */
-
-/* 'P': Major Category */
-static const OnigCodePoint CR_P[] = {
- 96,
- 0x0021, 0x0023,
- 0x0025, 0x002a,
- 0x002c, 0x002f,
- 0x003a, 0x003b,
- 0x003f, 0x0040,
- 0x005b, 0x005d,
- 0x005f, 0x005f,
- 0x007b, 0x007b,
- 0x007d, 0x007d,
- 0x00a1, 0x00a1,
- 0x00ab, 0x00ab,
- 0x00b7, 0x00b7,
- 0x00bb, 0x00bb,
- 0x00bf, 0x00bf,
- 0x037e, 0x037e,
- 0x0387, 0x0387,
- 0x055a, 0x055f,
- 0x0589, 0x058a,
- 0x05be, 0x05be,
- 0x05c0, 0x05c0,
- 0x05c3, 0x05c3,
- 0x05c6, 0x05c6,
- 0x05f3, 0x05f4,
- 0x060c, 0x060d,
- 0x061b, 0x061b,
- 0x061e, 0x061f,
- 0x066a, 0x066d,
- 0x06d4, 0x06d4,
- 0x0700, 0x070d,
- 0x0964, 0x0965,
- 0x0970, 0x0970,
- 0x0df4, 0x0df4,
- 0x0e4f, 0x0e4f,
- 0x0e5a, 0x0e5b,
- 0x0f04, 0x0f12,
- 0x0f3a, 0x0f3d,
- 0x0f85, 0x0f85,
- 0x0fd0, 0x0fd1,
- 0x104a, 0x104f,
- 0x10fb, 0x10fb,
- 0x1361, 0x1368,
- 0x166d, 0x166e,
- 0x169b, 0x169c,
- 0x16eb, 0x16ed,
- 0x1735, 0x1736,
- 0x17d4, 0x17d6,
- 0x17d8, 0x17da,
- 0x1800, 0x180a,
- 0x1944, 0x1945,
- 0x19de, 0x19df,
- 0x1a1e, 0x1a1f,
- 0x2010, 0x2027,
- 0x2030, 0x2043,
- 0x2045, 0x2051,
- 0x2053, 0x205e,
- 0x207d, 0x207e,
- 0x208d, 0x208e,
- 0x2329, 0x232a,
- 0x23b4, 0x23b6,
- 0x2768, 0x2775,
- 0x27c5, 0x27c6,
- 0x27e6, 0x27eb,
- 0x2983, 0x2998,
- 0x29d8, 0x29db,
- 0x29fc, 0x29fd,
- 0x2cf9, 0x2cfc,
- 0x2cfe, 0x2cff,
- 0x2e00, 0x2e17,
- 0x2e1c, 0x2e1d,
- 0x3001, 0x3003,
- 0x3008, 0x3011,
- 0x3014, 0x301f,
- 0x3030, 0x3030,
- 0x303d, 0x303d,
- 0x30a0, 0x30a0,
- 0x30fb, 0x30fb,
- 0xfd3e, 0xfd3f,
- 0xfe10, 0xfe19,
- 0xfe30, 0xfe52,
- 0xfe54, 0xfe61,
- 0xfe63, 0xfe63,
- 0xfe68, 0xfe68,
- 0xfe6a, 0xfe6b,
- 0xff01, 0xff03,
- 0xff05, 0xff0a,
- 0xff0c, 0xff0f,
- 0xff1a, 0xff1b,
- 0xff1f, 0xff20,
- 0xff3b, 0xff3d,
- 0xff3f, 0xff3f,
- 0xff5b, 0xff5b,
- 0xff5d, 0xff5d,
- 0xff5f, 0xff65,
- 0x10100, 0x10101,
- 0x1039f, 0x1039f,
- 0x10a50, 0x10a58
-}; /* CR_P */
-
-/* 'Pc': General Category */
-static const OnigCodePoint CR_Pc[] = {
- 6,
- 0x005f, 0x005f,
- 0x203f, 0x2040,
- 0x2054, 0x2054,
- 0xfe33, 0xfe34,
- 0xfe4d, 0xfe4f,
- 0xff3f, 0xff3f
-}; /* CR_Pc */
-
-/* 'Pd': General Category */
-static const OnigCodePoint CR_Pd[] = {
- 12,
- 0x002d, 0x002d,
- 0x058a, 0x058a,
- 0x1806, 0x1806,
- 0x2010, 0x2015,
- 0x2e17, 0x2e17,
- 0x301c, 0x301c,
- 0x3030, 0x3030,
- 0x30a0, 0x30a0,
- 0xfe31, 0xfe32,
- 0xfe58, 0xfe58,
- 0xfe63, 0xfe63,
- 0xff0d, 0xff0d
-}; /* CR_Pd */
-
-/* 'Pe': General Category */
-static const OnigCodePoint CR_Pe[] = {
- 65,
- 0x0029, 0x0029,
- 0x005d, 0x005d,
- 0x007d, 0x007d,
- 0x0f3b, 0x0f3b,
- 0x0f3d, 0x0f3d,
- 0x169c, 0x169c,
- 0x2046, 0x2046,
- 0x207e, 0x207e,
- 0x208e, 0x208e,
- 0x232a, 0x232a,
- 0x23b5, 0x23b5,
- 0x2769, 0x2769,
- 0x276b, 0x276b,
- 0x276d, 0x276d,
- 0x276f, 0x276f,
- 0x2771, 0x2771,
- 0x2773, 0x2773,
- 0x2775, 0x2775,
- 0x27c6, 0x27c6,
- 0x27e7, 0x27e7,
- 0x27e9, 0x27e9,
- 0x27eb, 0x27eb,
- 0x2984, 0x2984,
- 0x2986, 0x2986,
- 0x2988, 0x2988,
- 0x298a, 0x298a,
- 0x298c, 0x298c,
- 0x298e, 0x298e,
- 0x2990, 0x2990,
- 0x2992, 0x2992,
- 0x2994, 0x2994,
- 0x2996, 0x2996,
- 0x2998, 0x2998,
- 0x29d9, 0x29d9,
- 0x29db, 0x29db,
- 0x29fd, 0x29fd,
- 0x3009, 0x3009,
- 0x300b, 0x300b,
- 0x300d, 0x300d,
- 0x300f, 0x300f,
- 0x3011, 0x3011,
- 0x3015, 0x3015,
- 0x3017, 0x3017,
- 0x3019, 0x3019,
- 0x301b, 0x301b,
- 0x301e, 0x301f,
- 0xfd3f, 0xfd3f,
- 0xfe18, 0xfe18,
- 0xfe36, 0xfe36,
- 0xfe38, 0xfe38,
- 0xfe3a, 0xfe3a,
- 0xfe3c, 0xfe3c,
- 0xfe3e, 0xfe3e,
- 0xfe40, 0xfe40,
- 0xfe42, 0xfe42,
- 0xfe44, 0xfe44,
- 0xfe48, 0xfe48,
- 0xfe5a, 0xfe5a,
- 0xfe5c, 0xfe5c,
- 0xfe5e, 0xfe5e,
- 0xff09, 0xff09,
- 0xff3d, 0xff3d,
- 0xff5d, 0xff5d,
- 0xff60, 0xff60,
- 0xff63, 0xff63
-}; /* CR_Pe */
-
-/* 'Pf': General Category */
-static const OnigCodePoint CR_Pf[] = {
- 9,
- 0x00bb, 0x00bb,
- 0x2019, 0x2019,
- 0x201d, 0x201d,
- 0x203a, 0x203a,
- 0x2e03, 0x2e03,
- 0x2e05, 0x2e05,
- 0x2e0a, 0x2e0a,
- 0x2e0d, 0x2e0d,
- 0x2e1d, 0x2e1d
-}; /* CR_Pf */
-
-/* 'Pi': General Category */
-static const OnigCodePoint CR_Pi[] = {
- 10,
- 0x00ab, 0x00ab,
- 0x2018, 0x2018,
- 0x201b, 0x201c,
- 0x201f, 0x201f,
- 0x2039, 0x2039,
- 0x2e02, 0x2e02,
- 0x2e04, 0x2e04,
- 0x2e09, 0x2e09,
- 0x2e0c, 0x2e0c,
- 0x2e1c, 0x2e1c
-}; /* CR_Pi */
-
-/* 'Po': General Category */
-static const OnigCodePoint CR_Po[] = {
- 88,
- 0x0021, 0x0023,
- 0x0025, 0x0027,
- 0x002a, 0x002a,
- 0x002c, 0x002c,
- 0x002e, 0x002f,
- 0x003a, 0x003b,
- 0x003f, 0x0040,
- 0x005c, 0x005c,
- 0x00a1, 0x00a1,
- 0x00b7, 0x00b7,
- 0x00bf, 0x00bf,
- 0x037e, 0x037e,
- 0x0387, 0x0387,
- 0x055a, 0x055f,
- 0x0589, 0x0589,
- 0x05be, 0x05be,
- 0x05c0, 0x05c0,
- 0x05c3, 0x05c3,
- 0x05c6, 0x05c6,
- 0x05f3, 0x05f4,
- 0x060c, 0x060d,
- 0x061b, 0x061b,
- 0x061e, 0x061f,
- 0x066a, 0x066d,
- 0x06d4, 0x06d4,
- 0x0700, 0x070d,
- 0x0964, 0x0965,
- 0x0970, 0x0970,
- 0x0df4, 0x0df4,
- 0x0e4f, 0x0e4f,
- 0x0e5a, 0x0e5b,
- 0x0f04, 0x0f12,
- 0x0f85, 0x0f85,
- 0x0fd0, 0x0fd1,
- 0x104a, 0x104f,
- 0x10fb, 0x10fb,
- 0x1361, 0x1368,
- 0x166d, 0x166e,
- 0x16eb, 0x16ed,
- 0x1735, 0x1736,
- 0x17d4, 0x17d6,
- 0x17d8, 0x17da,
- 0x1800, 0x1805,
- 0x1807, 0x180a,
- 0x1944, 0x1945,
- 0x19de, 0x19df,
- 0x1a1e, 0x1a1f,
- 0x2016, 0x2017,
- 0x2020, 0x2027,
- 0x2030, 0x2038,
- 0x203b, 0x203e,
- 0x2041, 0x2043,
- 0x2047, 0x2051,
- 0x2053, 0x2053,
- 0x2055, 0x205e,
- 0x23b6, 0x23b6,
- 0x2cf9, 0x2cfc,
- 0x2cfe, 0x2cff,
- 0x2e00, 0x2e01,
- 0x2e06, 0x2e08,
- 0x2e0b, 0x2e0b,
- 0x2e0e, 0x2e16,
- 0x3001, 0x3003,
- 0x303d, 0x303d,
- 0x30fb, 0x30fb,
- 0xfe10, 0xfe16,
- 0xfe19, 0xfe19,
- 0xfe30, 0xfe30,
- 0xfe45, 0xfe46,
- 0xfe49, 0xfe4c,
- 0xfe50, 0xfe52,
- 0xfe54, 0xfe57,
- 0xfe5f, 0xfe61,
- 0xfe68, 0xfe68,
- 0xfe6a, 0xfe6b,
- 0xff01, 0xff03,
- 0xff05, 0xff07,
- 0xff0a, 0xff0a,
- 0xff0c, 0xff0c,
- 0xff0e, 0xff0f,
- 0xff1a, 0xff1b,
- 0xff1f, 0xff20,
- 0xff3c, 0xff3c,
- 0xff61, 0xff61,
- 0xff64, 0xff65,
- 0x10100, 0x10101,
- 0x1039f, 0x1039f,
- 0x10a50, 0x10a58
-}; /* CR_Po */
-
-/* 'Ps': General Category */
-static const OnigCodePoint CR_Ps[] = {
- 67,
- 0x0028, 0x0028,
- 0x005b, 0x005b,
- 0x007b, 0x007b,
- 0x0f3a, 0x0f3a,
- 0x0f3c, 0x0f3c,
- 0x169b, 0x169b,
- 0x201a, 0x201a,
- 0x201e, 0x201e,
- 0x2045, 0x2045,
- 0x207d, 0x207d,
- 0x208d, 0x208d,
- 0x2329, 0x2329,
- 0x23b4, 0x23b4,
- 0x2768, 0x2768,
- 0x276a, 0x276a,
- 0x276c, 0x276c,
- 0x276e, 0x276e,
- 0x2770, 0x2770,
- 0x2772, 0x2772,
- 0x2774, 0x2774,
- 0x27c5, 0x27c5,
- 0x27e6, 0x27e6,
- 0x27e8, 0x27e8,
- 0x27ea, 0x27ea,
- 0x2983, 0x2983,
- 0x2985, 0x2985,
- 0x2987, 0x2987,
- 0x2989, 0x2989,
- 0x298b, 0x298b,
- 0x298d, 0x298d,
- 0x298f, 0x298f,
- 0x2991, 0x2991,
- 0x2993, 0x2993,
- 0x2995, 0x2995,
- 0x2997, 0x2997,
- 0x29d8, 0x29d8,
- 0x29da, 0x29da,
- 0x29fc, 0x29fc,
- 0x3008, 0x3008,
- 0x300a, 0x300a,
- 0x300c, 0x300c,
- 0x300e, 0x300e,
- 0x3010, 0x3010,
- 0x3014, 0x3014,
- 0x3016, 0x3016,
- 0x3018, 0x3018,
- 0x301a, 0x301a,
- 0x301d, 0x301d,
- 0xfd3e, 0xfd3e,
- 0xfe17, 0xfe17,
- 0xfe35, 0xfe35,
- 0xfe37, 0xfe37,
- 0xfe39, 0xfe39,
- 0xfe3b, 0xfe3b,
- 0xfe3d, 0xfe3d,
- 0xfe3f, 0xfe3f,
- 0xfe41, 0xfe41,
- 0xfe43, 0xfe43,
- 0xfe47, 0xfe47,
- 0xfe59, 0xfe59,
- 0xfe5b, 0xfe5b,
- 0xfe5d, 0xfe5d,
- 0xff08, 0xff08,
- 0xff3b, 0xff3b,
- 0xff5b, 0xff5b,
- 0xff5f, 0xff5f,
- 0xff62, 0xff62
-}; /* CR_Ps */
-
-/* 'S': Major Category */
-static const OnigCodePoint CR_S[] = {
- 162,
- 0x0024, 0x0024,
- 0x002b, 0x002b,
- 0x003c, 0x003e,
- 0x005e, 0x005e,
- 0x0060, 0x0060,
- 0x007c, 0x007c,
- 0x007e, 0x007e,
- 0x00a2, 0x00a9,
- 0x00ac, 0x00ac,
- 0x00ae, 0x00b1,
- 0x00b4, 0x00b4,
- 0x00b6, 0x00b6,
- 0x00b8, 0x00b8,
- 0x00d7, 0x00d7,
- 0x00f7, 0x00f7,
- 0x02c2, 0x02c5,
- 0x02d2, 0x02df,
- 0x02e5, 0x02ed,
- 0x02ef, 0x02ff,
- 0x0374, 0x0375,
- 0x0384, 0x0385,
- 0x03f6, 0x03f6,
- 0x0482, 0x0482,
- 0x060b, 0x060b,
- 0x060e, 0x060f,
- 0x06e9, 0x06e9,
- 0x06fd, 0x06fe,
- 0x09f2, 0x09f3,
- 0x09fa, 0x09fa,
- 0x0af1, 0x0af1,
- 0x0b70, 0x0b70,
- 0x0bf3, 0x0bfa,
- 0x0e3f, 0x0e3f,
- 0x0f01, 0x0f03,
- 0x0f13, 0x0f17,
- 0x0f1a, 0x0f1f,
- 0x0f34, 0x0f34,
- 0x0f36, 0x0f36,
- 0x0f38, 0x0f38,
- 0x0fbe, 0x0fc5,
- 0x0fc7, 0x0fcc,
- 0x0fcf, 0x0fcf,
- 0x1360, 0x1360,
- 0x1390, 0x1399,
- 0x17db, 0x17db,
- 0x1940, 0x1940,
- 0x19e0, 0x19ff,
- 0x1fbd, 0x1fbd,
- 0x1fbf, 0x1fc1,
- 0x1fcd, 0x1fcf,
- 0x1fdd, 0x1fdf,
- 0x1fed, 0x1fef,
- 0x1ffd, 0x1ffe,
- 0x2044, 0x2044,
- 0x2052, 0x2052,
- 0x207a, 0x207c,
- 0x208a, 0x208c,
- 0x20a0, 0x20b5,
- 0x2100, 0x2101,
- 0x2103, 0x2106,
- 0x2108, 0x2109,
- 0x2114, 0x2114,
- 0x2116, 0x2118,
- 0x211e, 0x2123,
- 0x2125, 0x2125,
- 0x2127, 0x2127,
- 0x2129, 0x2129,
- 0x212e, 0x212e,
- 0x2132, 0x2132,
- 0x213a, 0x213b,
- 0x2140, 0x2144,
- 0x214a, 0x214c,
- 0x2190, 0x2328,
- 0x232b, 0x23b3,
- 0x23b7, 0x23db,
- 0x2400, 0x2426,
- 0x2440, 0x244a,
- 0x249c, 0x24e9,
- 0x2500, 0x269c,
- 0x26a0, 0x26b1,
- 0x2701, 0x2704,
- 0x2706, 0x2709,
- 0x270c, 0x2727,
- 0x2729, 0x274b,
- 0x274d, 0x274d,
- 0x274f, 0x2752,
- 0x2756, 0x2756,
- 0x2758, 0x275e,
- 0x2761, 0x2767,
- 0x2794, 0x2794,
- 0x2798, 0x27af,
- 0x27b1, 0x27be,
- 0x27c0, 0x27c4,
- 0x27d0, 0x27e5,
- 0x27f0, 0x2982,
- 0x2999, 0x29d7,
- 0x29dc, 0x29fb,
- 0x29fe, 0x2b13,
- 0x2ce5, 0x2cea,
- 0x2e80, 0x2e99,
- 0x2e9b, 0x2ef3,
- 0x2f00, 0x2fd5,
- 0x2ff0, 0x2ffb,
- 0x3004, 0x3004,
- 0x3012, 0x3013,
- 0x3020, 0x3020,
- 0x3036, 0x3037,
- 0x303e, 0x303f,
- 0x309b, 0x309c,
- 0x3190, 0x3191,
- 0x3196, 0x319f,
- 0x31c0, 0x31cf,
- 0x3200, 0x321e,
- 0x322a, 0x3243,
- 0x3250, 0x3250,
- 0x3260, 0x327f,
- 0x328a, 0x32b0,
- 0x32c0, 0x32fe,
- 0x3300, 0x33ff,
- 0x4dc0, 0x4dff,
- 0xa490, 0xa4c6,
- 0xa700, 0xa716,
- 0xa828, 0xa82b,
- 0xfb29, 0xfb29,
- 0xfdfc, 0xfdfd,
- 0xfe62, 0xfe62,
- 0xfe64, 0xfe66,
- 0xfe69, 0xfe69,
- 0xff04, 0xff04,
- 0xff0b, 0xff0b,
- 0xff1c, 0xff1e,
- 0xff3e, 0xff3e,
- 0xff40, 0xff40,
- 0xff5c, 0xff5c,
- 0xff5e, 0xff5e,
- 0xffe0, 0xffe6,
- 0xffe8, 0xffee,
- 0xfffc, 0xfffd,
- 0x10102, 0x10102,
- 0x10137, 0x1013f,
- 0x10179, 0x10189,
- 0x103d0, 0x103d0,
- 0x1d000, 0x1d0f5,
- 0x1d100, 0x1d126,
- 0x1d12a, 0x1d164,
- 0x1d16a, 0x1d16c,
- 0x1d183, 0x1d184,
- 0x1d18c, 0x1d1a9,
- 0x1d1ae, 0x1d1dd,
- 0x1d200, 0x1d241,
- 0x1d245, 0x1d245,
- 0x1d300, 0x1d356,
- 0x1d6c1, 0x1d6c1,
- 0x1d6db, 0x1d6db,
- 0x1d6fb, 0x1d6fb,
- 0x1d715, 0x1d715,
- 0x1d735, 0x1d735,
- 0x1d74f, 0x1d74f,
- 0x1d76f, 0x1d76f,
- 0x1d789, 0x1d789,
- 0x1d7a9, 0x1d7a9,
- 0x1d7c3, 0x1d7c3
-}; /* CR_S */
-
-/* 'Sc': General Category */
-static const OnigCodePoint CR_Sc[] = {
- 14,
- 0x0024, 0x0024,
- 0x00a2, 0x00a5,
- 0x060b, 0x060b,
- 0x09f2, 0x09f3,
- 0x0af1, 0x0af1,
- 0x0bf9, 0x0bf9,
- 0x0e3f, 0x0e3f,
- 0x17db, 0x17db,
- 0x20a0, 0x20b5,
- 0xfdfc, 0xfdfc,
- 0xfe69, 0xfe69,
- 0xff04, 0xff04,
- 0xffe0, 0xffe1,
- 0xffe5, 0xffe6
-}; /* CR_Sc */
-
-/* 'Sk': General Category */
-static const OnigCodePoint CR_Sk[] = {
- 23,
- 0x005e, 0x005e,
- 0x0060, 0x0060,
- 0x00a8, 0x00a8,
- 0x00af, 0x00af,
- 0x00b4, 0x00b4,
- 0x00b8, 0x00b8,
- 0x02c2, 0x02c5,
- 0x02d2, 0x02df,
- 0x02e5, 0x02ed,
- 0x02ef, 0x02ff,
- 0x0374, 0x0375,
- 0x0384, 0x0385,
- 0x1fbd, 0x1fbd,
- 0x1fbf, 0x1fc1,
- 0x1fcd, 0x1fcf,
- 0x1fdd, 0x1fdf,
- 0x1fed, 0x1fef,
- 0x1ffd, 0x1ffe,
- 0x309b, 0x309c,
- 0xa700, 0xa716,
- 0xff3e, 0xff3e,
- 0xff40, 0xff40,
- 0xffe3, 0xffe3
-}; /* CR_Sk */
-
-/* 'Sm': General Category */
-static const OnigCodePoint CR_Sm[] = {
- 59,
- 0x002b, 0x002b,
- 0x003c, 0x003e,
- 0x007c, 0x007c,
- 0x007e, 0x007e,
- 0x00ac, 0x00ac,
- 0x00b1, 0x00b1,
- 0x00d7, 0x00d7,
- 0x00f7, 0x00f7,
- 0x03f6, 0x03f6,
- 0x2044, 0x2044,
- 0x2052, 0x2052,
- 0x207a, 0x207c,
- 0x208a, 0x208c,
- 0x2140, 0x2144,
- 0x214b, 0x214b,
- 0x2190, 0x2194,
- 0x219a, 0x219b,
- 0x21a0, 0x21a0,
- 0x21a3, 0x21a3,
- 0x21a6, 0x21a6,
- 0x21ae, 0x21ae,
- 0x21ce, 0x21cf,
- 0x21d2, 0x21d2,
- 0x21d4, 0x21d4,
- 0x21f4, 0x22ff,
- 0x2308, 0x230b,
- 0x2320, 0x2321,
- 0x237c, 0x237c,
- 0x239b, 0x23b3,
- 0x25b7, 0x25b7,
- 0x25c1, 0x25c1,
- 0x25f8, 0x25ff,
- 0x266f, 0x266f,
- 0x27c0, 0x27c4,
- 0x27d0, 0x27e5,
- 0x27f0, 0x27ff,
- 0x2900, 0x2982,
- 0x2999, 0x29d7,
- 0x29dc, 0x29fb,
- 0x29fe, 0x2aff,
- 0xfb29, 0xfb29,
- 0xfe62, 0xfe62,
- 0xfe64, 0xfe66,
- 0xff0b, 0xff0b,
- 0xff1c, 0xff1e,
- 0xff5c, 0xff5c,
- 0xff5e, 0xff5e,
- 0xffe2, 0xffe2,
- 0xffe9, 0xffec,
- 0x1d6c1, 0x1d6c1,
- 0x1d6db, 0x1d6db,
- 0x1d6fb, 0x1d6fb,
- 0x1d715, 0x1d715,
- 0x1d735, 0x1d735,
- 0x1d74f, 0x1d74f,
- 0x1d76f, 0x1d76f,
- 0x1d789, 0x1d789,
- 0x1d7a9, 0x1d7a9,
- 0x1d7c3, 0x1d7c3
-}; /* CR_Sm */
-
-/* 'So': General Category */
-static const OnigCodePoint CR_So[] = {
- 120,
- 0x00a6, 0x00a7,
- 0x00a9, 0x00a9,
- 0x00ae, 0x00ae,
- 0x00b0, 0x00b0,
- 0x00b6, 0x00b6,
- 0x0482, 0x0482,
- 0x060e, 0x060f,
- 0x06e9, 0x06e9,
- 0x06fd, 0x06fe,
- 0x09fa, 0x09fa,
- 0x0b70, 0x0b70,
- 0x0bf3, 0x0bf8,
- 0x0bfa, 0x0bfa,
- 0x0f01, 0x0f03,
- 0x0f13, 0x0f17,
- 0x0f1a, 0x0f1f,
- 0x0f34, 0x0f34,
- 0x0f36, 0x0f36,
- 0x0f38, 0x0f38,
- 0x0fbe, 0x0fc5,
- 0x0fc7, 0x0fcc,
- 0x0fcf, 0x0fcf,
- 0x1360, 0x1360,
- 0x1390, 0x1399,
- 0x1940, 0x1940,
- 0x19e0, 0x19ff,
- 0x2100, 0x2101,
- 0x2103, 0x2106,
- 0x2108, 0x2109,
- 0x2114, 0x2114,
- 0x2116, 0x2118,
- 0x211e, 0x2123,
- 0x2125, 0x2125,
- 0x2127, 0x2127,
- 0x2129, 0x2129,
- 0x212e, 0x212e,
- 0x2132, 0x2132,
- 0x213a, 0x213b,
- 0x214a, 0x214a,
- 0x214c, 0x214c,
- 0x2195, 0x2199,
- 0x219c, 0x219f,
- 0x21a1, 0x21a2,
- 0x21a4, 0x21a5,
- 0x21a7, 0x21ad,
- 0x21af, 0x21cd,
- 0x21d0, 0x21d1,
- 0x21d3, 0x21d3,
- 0x21d5, 0x21f3,
- 0x2300, 0x2307,
- 0x230c, 0x231f,
- 0x2322, 0x2328,
- 0x232b, 0x237b,
- 0x237d, 0x239a,
- 0x23b7, 0x23db,
- 0x2400, 0x2426,
- 0x2440, 0x244a,
- 0x249c, 0x24e9,
- 0x2500, 0x25b6,
- 0x25b8, 0x25c0,
- 0x25c2, 0x25f7,
- 0x2600, 0x266e,
- 0x2670, 0x269c,
- 0x26a0, 0x26b1,
- 0x2701, 0x2704,
- 0x2706, 0x2709,
- 0x270c, 0x2727,
- 0x2729, 0x274b,
- 0x274d, 0x274d,
- 0x274f, 0x2752,
- 0x2756, 0x2756,
- 0x2758, 0x275e,
- 0x2761, 0x2767,
- 0x2794, 0x2794,
- 0x2798, 0x27af,
- 0x27b1, 0x27be,
- 0x2800, 0x28ff,
- 0x2b00, 0x2b13,
- 0x2ce5, 0x2cea,
- 0x2e80, 0x2e99,
- 0x2e9b, 0x2ef3,
- 0x2f00, 0x2fd5,
- 0x2ff0, 0x2ffb,
- 0x3004, 0x3004,
- 0x3012, 0x3013,
- 0x3020, 0x3020,
- 0x3036, 0x3037,
- 0x303e, 0x303f,
- 0x3190, 0x3191,
- 0x3196, 0x319f,
- 0x31c0, 0x31cf,
- 0x3200, 0x321e,
- 0x322a, 0x3243,
- 0x3250, 0x3250,
- 0x3260, 0x327f,
- 0x328a, 0x32b0,
- 0x32c0, 0x32fe,
- 0x3300, 0x33ff,
- 0x4dc0, 0x4dff,
- 0xa490, 0xa4c6,
- 0xa828, 0xa82b,
- 0xfdfd, 0xfdfd,
- 0xffe4, 0xffe4,
- 0xffe8, 0xffe8,
- 0xffed, 0xffee,
- 0xfffc, 0xfffd,
- 0x10102, 0x10102,
- 0x10137, 0x1013f,
- 0x10179, 0x10189,
- 0x103d0, 0x103d0,
- 0x1d000, 0x1d0f5,
- 0x1d100, 0x1d126,
- 0x1d12a, 0x1d164,
- 0x1d16a, 0x1d16c,
- 0x1d183, 0x1d184,
- 0x1d18c, 0x1d1a9,
- 0x1d1ae, 0x1d1dd,
- 0x1d200, 0x1d241,
- 0x1d245, 0x1d245,
- 0x1d300, 0x1d356
-}; /* CR_So */
-
-/* 'Z': Major Category */
-static const OnigCodePoint CR_Z[] = {
- 9,
- 0x0020, 0x0020,
- 0x00a0, 0x00a0,
- 0x1680, 0x1680,
- 0x180e, 0x180e,
- 0x2000, 0x200a,
- 0x2028, 0x2029,
- 0x202f, 0x202f,
- 0x205f, 0x205f,
- 0x3000, 0x3000
-}; /* CR_Z */
-
-/* 'Zl': General Category */
-static const OnigCodePoint CR_Zl[] = {
- 1,
- 0x2028, 0x2028
-}; /* CR_Zl */
-
-/* 'Zp': General Category */
-static const OnigCodePoint CR_Zp[] = {
- 1,
- 0x2029, 0x2029
-}; /* CR_Zp */
-
-/* 'Zs': General Category */
-static const OnigCodePoint CR_Zs[] = {
- 8,
- 0x0020, 0x0020,
- 0x00a0, 0x00a0,
- 0x1680, 0x1680,
- 0x180e, 0x180e,
- 0x2000, 0x200a,
- 0x202f, 0x202f,
- 0x205f, 0x205f,
- 0x3000, 0x3000
-}; /* CR_Zs */
-
-/* 'Arabic': Script */
-static const OnigCodePoint CR_Arabic[] = {
- 17,
- 0x060b, 0x060b,
- 0x060d, 0x0615,
- 0x061e, 0x061e,
- 0x0621, 0x063a,
- 0x0641, 0x064a,
- 0x0656, 0x065e,
- 0x066a, 0x066f,
- 0x0671, 0x06dc,
- 0x06de, 0x06ff,
- 0x0750, 0x076d,
- 0xfb50, 0xfbb1,
- 0xfbd3, 0xfd3d,
- 0xfd50, 0xfd8f,
- 0xfd92, 0xfdc7,
- 0xfdf0, 0xfdfc,
- 0xfe70, 0xfe74,
- 0xfe76, 0xfefc
-}; /* CR_Arabic */
-
-/* 'Armenian': Script */
-static const OnigCodePoint CR_Armenian[] = {
- 5,
- 0x0531, 0x0556,
- 0x0559, 0x055f,
- 0x0561, 0x0587,
- 0x058a, 0x058a,
- 0xfb13, 0xfb17
-}; /* CR_Armenian */
-
-/* 'Bengali': Script */
-static const OnigCodePoint CR_Bengali[] = {
- 14,
- 0x0981, 0x0983,
- 0x0985, 0x098c,
- 0x098f, 0x0990,
- 0x0993, 0x09a8,
- 0x09aa, 0x09b0,
- 0x09b2, 0x09b2,
- 0x09b6, 0x09b9,
- 0x09bc, 0x09c4,
- 0x09c7, 0x09c8,
- 0x09cb, 0x09ce,
- 0x09d7, 0x09d7,
- 0x09dc, 0x09dd,
- 0x09df, 0x09e3,
- 0x09e6, 0x09fa
-}; /* CR_Bengali */
-
-/* 'Bopomofo': Script */
-static const OnigCodePoint CR_Bopomofo[] = {
- 2,
- 0x3105, 0x312c,
- 0x31a0, 0x31b7
-}; /* CR_Bopomofo */
-
-/* 'Braille': Script */
-static const OnigCodePoint CR_Braille[] = {
- 1,
- 0x2800, 0x28ff
-}; /* CR_Braille */
-
-/* 'Buginese': Script */
-static const OnigCodePoint CR_Buginese[] = {
- 2,
- 0x1a00, 0x1a1b,
- 0x1a1e, 0x1a1f
-}; /* CR_Buginese */
-
-/* 'Buhid': Script */
-static const OnigCodePoint CR_Buhid[] = {
- 1,
- 0x1740, 0x1753
-}; /* CR_Buhid */
-
-/* 'Canadian_Aboriginal': Script */
-static const OnigCodePoint CR_Canadian_Aboriginal[] = {
- 1,
- 0x1401, 0x1676
-}; /* CR_Canadian_Aboriginal */
-
-/* 'Cherokee': Script */
-static const OnigCodePoint CR_Cherokee[] = {
- 1,
- 0x13a0, 0x13f4
-}; /* CR_Cherokee */
-
-/* 'Common': Script */
-static const OnigCodePoint CR_Common[] = {
- 126,
- 0x0000, 0x0040,
- 0x005b, 0x0060,
- 0x007b, 0x00a9,
- 0x00ab, 0x00b9,
- 0x00bb, 0x00bf,
- 0x00d7, 0x00d7,
- 0x00f7, 0x00f7,
- 0x02b9, 0x02df,
- 0x02e5, 0x02ff,
- 0x037e, 0x037e,
- 0x0387, 0x0387,
- 0x0589, 0x0589,
- 0x0600, 0x0603,
- 0x060c, 0x060c,
- 0x061b, 0x061b,
- 0x061f, 0x061f,
- 0x0640, 0x0640,
- 0x0660, 0x0669,
- 0x06dd, 0x06dd,
- 0x0964, 0x0965,
- 0x0970, 0x0970,
- 0x0e3f, 0x0e3f,
- 0x10fb, 0x10fb,
- 0x16eb, 0x16ed,
- 0x1735, 0x1736,
- 0x2000, 0x200b,
- 0x200e, 0x2063,
- 0x206a, 0x2070,
- 0x2074, 0x207e,
- 0x2080, 0x208e,
- 0x20a0, 0x20b5,
- 0x2100, 0x2125,
- 0x2127, 0x2129,
- 0x212c, 0x214c,
- 0x2153, 0x2183,
- 0x2190, 0x23db,
- 0x2400, 0x2426,
- 0x2440, 0x244a,
- 0x2460, 0x269c,
- 0x26a0, 0x26b1,
- 0x2701, 0x2704,
- 0x2706, 0x2709,
- 0x270c, 0x2727,
- 0x2729, 0x274b,
- 0x274d, 0x274d,
- 0x274f, 0x2752,
- 0x2756, 0x2756,
- 0x2758, 0x275e,
- 0x2761, 0x2794,
- 0x2798, 0x27af,
- 0x27b1, 0x27be,
- 0x27c0, 0x27c6,
- 0x27d0, 0x27eb,
- 0x27f0, 0x27ff,
- 0x2900, 0x2b13,
- 0x2e00, 0x2e17,
- 0x2e1c, 0x2e1d,
- 0x2ff0, 0x2ffb,
- 0x3000, 0x3004,
- 0x3006, 0x3006,
- 0x3008, 0x3020,
- 0x3030, 0x3037,
- 0x303c, 0x303f,
- 0x309b, 0x309c,
- 0x30a0, 0x30a0,
- 0x30fb, 0x30fc,
- 0x3190, 0x319f,
- 0x31c0, 0x31cf,
- 0x3220, 0x3243,
- 0x3250, 0x325f,
- 0x327e, 0x32fe,
- 0x3300, 0x33ff,
- 0x4dc0, 0x4dff,
- 0xa700, 0xa716,
- 0xe000, 0xf8ff,
- 0xfd3e, 0xfd3f,
- 0xfdfd, 0xfdfd,
- 0xfe10, 0xfe19,
- 0xfe30, 0xfe52,
- 0xfe54, 0xfe66,
- 0xfe68, 0xfe6b,
- 0xfeff, 0xfeff,
- 0xff01, 0xff20,
- 0xff3b, 0xff40,
- 0xff5b, 0xff65,
- 0xff70, 0xff70,
- 0xff9e, 0xff9f,
- 0xffe0, 0xffe6,
- 0xffe8, 0xffee,
- 0xfff9, 0xfffd,
- 0x10100, 0x10102,
- 0x10107, 0x10133,
- 0x10137, 0x1013f,
- 0x1d000, 0x1d0f5,
- 0x1d100, 0x1d126,
- 0x1d12a, 0x1d166,
- 0x1d16a, 0x1d17a,
- 0x1d183, 0x1d184,
- 0x1d18c, 0x1d1a9,
- 0x1d1ae, 0x1d1dd,
- 0x1d300, 0x1d356,
- 0x1d400, 0x1d454,
- 0x1d456, 0x1d49c,
- 0x1d49e, 0x1d49f,
- 0x1d4a2, 0x1d4a2,
- 0x1d4a5, 0x1d4a6,
- 0x1d4a9, 0x1d4ac,
- 0x1d4ae, 0x1d4b9,
- 0x1d4bb, 0x1d4bb,
- 0x1d4bd, 0x1d4c3,
- 0x1d4c5, 0x1d505,
- 0x1d507, 0x1d50a,
- 0x1d50d, 0x1d514,
- 0x1d516, 0x1d51c,
- 0x1d51e, 0x1d539,
- 0x1d53b, 0x1d53e,
- 0x1d540, 0x1d544,
- 0x1d546, 0x1d546,
- 0x1d54a, 0x1d550,
- 0x1d552, 0x1d6a5,
- 0x1d6a8, 0x1d7c9,
- 0x1d7ce, 0x1d7ff,
- 0xe0001, 0xe0001,
- 0xe0020, 0xe007f,
- 0xf0000, 0xffffd,
- 0x100000, 0x10fffd
-}; /* CR_Common */
-
-/* 'Coptic': Script */
-static const OnigCodePoint CR_Coptic[] = {
- 3,
- 0x03e2, 0x03ef,
- 0x2c80, 0x2cea,
- 0x2cf9, 0x2cff
-}; /* CR_Coptic */
-
-/* 'Cypriot': Script */
-static const OnigCodePoint CR_Cypriot[] = {
- 6,
- 0x10800, 0x10805,
- 0x10808, 0x10808,
- 0x1080a, 0x10835,
- 0x10837, 0x10838,
- 0x1083c, 0x1083c,
- 0x1083f, 0x1083f
-}; /* CR_Cypriot */
-
-/* 'Cyrillic': Script */
-static const OnigCodePoint CR_Cyrillic[] = {
- 6,
- 0x0400, 0x0486,
- 0x0488, 0x04ce,
- 0x04d0, 0x04f9,
- 0x0500, 0x050f,
- 0x1d2b, 0x1d2b,
- 0x1d78, 0x1d78
-}; /* CR_Cyrillic */
-
-/* 'Deseret': Script */
-static const OnigCodePoint CR_Deseret[] = {
- 1,
- 0x10400, 0x1044f
-}; /* CR_Deseret */
-
-/* 'Devanagari': Script */
-static const OnigCodePoint CR_Devanagari[] = {
- 6,
- 0x0901, 0x0939,
- 0x093c, 0x094d,
- 0x0950, 0x0954,
- 0x0958, 0x0963,
- 0x0966, 0x096f,
- 0x097d, 0x097d
-}; /* CR_Devanagari */
-
-/* 'Ethiopic': Script */
-static const OnigCodePoint CR_Ethiopic[] = {
- 27,
- 0x1200, 0x1248,
- 0x124a, 0x124d,
- 0x1250, 0x1256,
- 0x1258, 0x1258,
- 0x125a, 0x125d,
- 0x1260, 0x1288,
- 0x128a, 0x128d,
- 0x1290, 0x12b0,
- 0x12b2, 0x12b5,
- 0x12b8, 0x12be,
- 0x12c0, 0x12c0,
- 0x12c2, 0x12c5,
- 0x12c8, 0x12d6,
- 0x12d8, 0x1310,
- 0x1312, 0x1315,
- 0x1318, 0x135a,
- 0x135f, 0x137c,
- 0x1380, 0x1399,
- 0x2d80, 0x2d96,
- 0x2da0, 0x2da6,
- 0x2da8, 0x2dae,
- 0x2db0, 0x2db6,
- 0x2db8, 0x2dbe,
- 0x2dc0, 0x2dc6,
- 0x2dc8, 0x2dce,
- 0x2dd0, 0x2dd6,
- 0x2dd8, 0x2dde
-}; /* CR_Ethiopic */
-
-/* 'Georgian': Script */
-static const OnigCodePoint CR_Georgian[] = {
- 4,
- 0x10a0, 0x10c5,
- 0x10d0, 0x10fa,
- 0x10fc, 0x10fc,
- 0x2d00, 0x2d25
-}; /* CR_Georgian */
-
-/* 'Glagolitic': Script */
-static const OnigCodePoint CR_Glagolitic[] = {
- 2,
- 0x2c00, 0x2c2e,
- 0x2c30, 0x2c5e
-}; /* CR_Glagolitic */
-
-/* 'Gothic': Script */
-static const OnigCodePoint CR_Gothic[] = {
- 1,
- 0x10330, 0x1034a
-}; /* CR_Gothic */
-
-/* 'Greek': Script */
-static const OnigCodePoint CR_Greek[] = {
- 31,
- 0x0374, 0x0375,
- 0x037a, 0x037a,
- 0x0384, 0x0386,
- 0x0388, 0x038a,
- 0x038c, 0x038c,
- 0x038e, 0x03a1,
- 0x03a3, 0x03ce,
- 0x03d0, 0x03e1,
- 0x03f0, 0x03ff,
- 0x1d26, 0x1d2a,
- 0x1d5d, 0x1d61,
- 0x1d66, 0x1d6a,
- 0x1f00, 0x1f15,
- 0x1f18, 0x1f1d,
- 0x1f20, 0x1f45,
- 0x1f48, 0x1f4d,
- 0x1f50, 0x1f57,
- 0x1f59, 0x1f59,
- 0x1f5b, 0x1f5b,
- 0x1f5d, 0x1f5d,
- 0x1f5f, 0x1f7d,
- 0x1f80, 0x1fb4,
- 0x1fb6, 0x1fc4,
- 0x1fc6, 0x1fd3,
- 0x1fd6, 0x1fdb,
- 0x1fdd, 0x1fef,
- 0x1ff2, 0x1ff4,
- 0x1ff6, 0x1ffe,
- 0x2126, 0x2126,
- 0x10140, 0x1018a,
- 0x1d200, 0x1d245
-}; /* CR_Greek */
-
-/* 'Gujarati': Script */
-static const OnigCodePoint CR_Gujarati[] = {
- 14,
- 0x0a81, 0x0a83,
- 0x0a85, 0x0a8d,
- 0x0a8f, 0x0a91,
- 0x0a93, 0x0aa8,
- 0x0aaa, 0x0ab0,
- 0x0ab2, 0x0ab3,
- 0x0ab5, 0x0ab9,
- 0x0abc, 0x0ac5,
- 0x0ac7, 0x0ac9,
- 0x0acb, 0x0acd,
- 0x0ad0, 0x0ad0,
- 0x0ae0, 0x0ae3,
- 0x0ae6, 0x0aef,
- 0x0af1, 0x0af1
-}; /* CR_Gujarati */
-
-/* 'Gurmukhi': Script */
-static const OnigCodePoint CR_Gurmukhi[] = {
- 15,
- 0x0a01, 0x0a03,
- 0x0a05, 0x0a0a,
- 0x0a0f, 0x0a10,
- 0x0a13, 0x0a28,
- 0x0a2a, 0x0a30,
- 0x0a32, 0x0a33,
- 0x0a35, 0x0a36,
- 0x0a38, 0x0a39,
- 0x0a3c, 0x0a3c,
- 0x0a3e, 0x0a42,
- 0x0a47, 0x0a48,
- 0x0a4b, 0x0a4d,
- 0x0a59, 0x0a5c,
- 0x0a5e, 0x0a5e,
- 0x0a66, 0x0a74
-}; /* CR_Gurmukhi */
-
-/* 'Han': Script */
-static const OnigCodePoint CR_Han[] = {
- 14,
- 0x2e80, 0x2e99,
- 0x2e9b, 0x2ef3,
- 0x2f00, 0x2fd5,
- 0x3005, 0x3005,
- 0x3007, 0x3007,
- 0x3021, 0x3029,
- 0x3038, 0x303b,
- 0x3400, 0x4db5,
- 0x4e00, 0x9fbb,
- 0xf900, 0xfa2d,
- 0xfa30, 0xfa6a,
- 0xfa70, 0xfad9,
- 0x20000, 0x2a6d6,
- 0x2f800, 0x2fa1d
-}; /* CR_Han */
-
-/* 'Hangul': Script */
-static const OnigCodePoint CR_Hangul[] = {
- 12,
- 0x1100, 0x1159,
- 0x115f, 0x11a2,
- 0x11a8, 0x11f9,
- 0x3131, 0x318e,
- 0x3200, 0x321e,
- 0x3260, 0x327d,
- 0xac00, 0xd7a3,
- 0xffa0, 0xffbe,
- 0xffc2, 0xffc7,
- 0xffca, 0xffcf,
- 0xffd2, 0xffd7,
- 0xffda, 0xffdc
-}; /* CR_Hangul */
-
-/* 'Hanunoo': Script */
-static const OnigCodePoint CR_Hanunoo[] = {
- 1,
- 0x1720, 0x1734
-}; /* CR_Hanunoo */
-
-/* 'Hebrew': Script */
-static const OnigCodePoint CR_Hebrew[] = {
- 10,
- 0x0591, 0x05b9,
- 0x05bb, 0x05c7,
- 0x05d0, 0x05ea,
- 0x05f0, 0x05f4,
- 0xfb1d, 0xfb36,
- 0xfb38, 0xfb3c,
- 0xfb3e, 0xfb3e,
- 0xfb40, 0xfb41,
- 0xfb43, 0xfb44,
- 0xfb46, 0xfb4f
-}; /* CR_Hebrew */
-
-/* 'Hiragana': Script */
-static const OnigCodePoint CR_Hiragana[] = {
- 2,
- 0x3041, 0x3096,
- 0x309d, 0x309f
-}; /* CR_Hiragana */
-
-/* 'Inherited': Script */
-static const OnigCodePoint CR_Inherited[] = {
- 15,
- 0x0300, 0x036f,
- 0x064b, 0x0655,
- 0x0670, 0x0670,
- 0x1dc0, 0x1dc3,
- 0x200c, 0x200d,
- 0x20d0, 0x20eb,
- 0x302a, 0x302f,
- 0x3099, 0x309a,
- 0xfe00, 0xfe0f,
- 0xfe20, 0xfe23,
- 0x1d167, 0x1d169,
- 0x1d17b, 0x1d182,
- 0x1d185, 0x1d18b,
- 0x1d1aa, 0x1d1ad,
- 0xe0100, 0xe01ef
-}; /* CR_Inherited */
-
-/* 'Kannada': Script */
-static const OnigCodePoint CR_Kannada[] = {
- 13,
- 0x0c82, 0x0c83,
- 0x0c85, 0x0c8c,
- 0x0c8e, 0x0c90,
- 0x0c92, 0x0ca8,
- 0x0caa, 0x0cb3,
- 0x0cb5, 0x0cb9,
- 0x0cbc, 0x0cc4,
- 0x0cc6, 0x0cc8,
- 0x0cca, 0x0ccd,
- 0x0cd5, 0x0cd6,
- 0x0cde, 0x0cde,
- 0x0ce0, 0x0ce1,
- 0x0ce6, 0x0cef
-}; /* CR_Kannada */
-
-/* 'Katakana': Script */
-static const OnigCodePoint CR_Katakana[] = {
- 5,
- 0x30a1, 0x30fa,
- 0x30fd, 0x30ff,
- 0x31f0, 0x31ff,
- 0xff66, 0xff6f,
- 0xff71, 0xff9d
-}; /* CR_Katakana */
-
-/* 'Kharoshthi': Script */
-static const OnigCodePoint CR_Kharoshthi[] = {
- 8,
- 0x10a00, 0x10a03,
- 0x10a05, 0x10a06,
- 0x10a0c, 0x10a13,
- 0x10a15, 0x10a17,
- 0x10a19, 0x10a33,
- 0x10a38, 0x10a3a,
- 0x10a3f, 0x10a47,
- 0x10a50, 0x10a58
-}; /* CR_Kharoshthi */
-
-/* 'Khmer': Script */
-static const OnigCodePoint CR_Khmer[] = {
- 4,
- 0x1780, 0x17dd,
- 0x17e0, 0x17e9,
- 0x17f0, 0x17f9,
- 0x19e0, 0x19ff
-}; /* CR_Khmer */
-
-/* 'Lao': Script */
-static const OnigCodePoint CR_Lao[] = {
- 18,
- 0x0e81, 0x0e82,
- 0x0e84, 0x0e84,
- 0x0e87, 0x0e88,
- 0x0e8a, 0x0e8a,
- 0x0e8d, 0x0e8d,
- 0x0e94, 0x0e97,
- 0x0e99, 0x0e9f,
- 0x0ea1, 0x0ea3,
- 0x0ea5, 0x0ea5,
- 0x0ea7, 0x0ea7,
- 0x0eaa, 0x0eab,
- 0x0ead, 0x0eb9,
- 0x0ebb, 0x0ebd,
- 0x0ec0, 0x0ec4,
- 0x0ec6, 0x0ec6,
- 0x0ec8, 0x0ecd,
- 0x0ed0, 0x0ed9,
- 0x0edc, 0x0edd
-}; /* CR_Lao */
-
-/* 'Latin': Script */
-static const OnigCodePoint CR_Latin[] = {
- 23,
- 0x0041, 0x005a,
- 0x0061, 0x007a,
- 0x00aa, 0x00aa,
- 0x00ba, 0x00ba,
- 0x00c0, 0x00d6,
- 0x00d8, 0x00f6,
- 0x00f8, 0x0241,
- 0x0250, 0x02b8,
- 0x02e0, 0x02e4,
- 0x1d00, 0x1d25,
- 0x1d2c, 0x1d5c,
- 0x1d62, 0x1d65,
- 0x1d6b, 0x1d77,
- 0x1d79, 0x1dbf,
- 0x1e00, 0x1e9b,
- 0x1ea0, 0x1ef9,
- 0x2071, 0x2071,
- 0x207f, 0x207f,
- 0x2090, 0x2094,
- 0x212a, 0x212b,
- 0xfb00, 0xfb06,
- 0xff21, 0xff3a,
- 0xff41, 0xff5a
-}; /* CR_Latin */
-
-/* 'Limbu': Script */
-static const OnigCodePoint CR_Limbu[] = {
- 5,
- 0x1900, 0x191c,
- 0x1920, 0x192b,
- 0x1930, 0x193b,
- 0x1940, 0x1940,
- 0x1944, 0x194f
-}; /* CR_Limbu */
-
-/* 'Linear_B': Script */
-static const OnigCodePoint CR_Linear_B[] = {
- 7,
- 0x10000, 0x1000b,
- 0x1000d, 0x10026,
- 0x10028, 0x1003a,
- 0x1003c, 0x1003d,
- 0x1003f, 0x1004d,
- 0x10050, 0x1005d,
- 0x10080, 0x100fa
-}; /* CR_Linear_B */
-
-/* 'Malayalam': Script */
-static const OnigCodePoint CR_Malayalam[] = {
- 11,
- 0x0d02, 0x0d03,
- 0x0d05, 0x0d0c,
- 0x0d0e, 0x0d10,
- 0x0d12, 0x0d28,
- 0x0d2a, 0x0d39,
- 0x0d3e, 0x0d43,
- 0x0d46, 0x0d48,
- 0x0d4a, 0x0d4d,
- 0x0d57, 0x0d57,
- 0x0d60, 0x0d61,
- 0x0d66, 0x0d6f
-}; /* CR_Malayalam */
-
-/* 'Mongolian': Script */
-static const OnigCodePoint CR_Mongolian[] = {
- 4,
- 0x1800, 0x180e,
- 0x1810, 0x1819,
- 0x1820, 0x1877,
- 0x1880, 0x18a9
-}; /* CR_Mongolian */
-
-/* 'Myanmar': Script */
-static const OnigCodePoint CR_Myanmar[] = {
- 6,
- 0x1000, 0x1021,
- 0x1023, 0x1027,
- 0x1029, 0x102a,
- 0x102c, 0x1032,
- 0x1036, 0x1039,
- 0x1040, 0x1059
-}; /* CR_Myanmar */
-
-/* 'New_Tai_Lue': Script */
-static const OnigCodePoint CR_New_Tai_Lue[] = {
- 4,
- 0x1980, 0x19a9,
- 0x19b0, 0x19c9,
- 0x19d0, 0x19d9,
- 0x19de, 0x19df
-}; /* CR_New_Tai_Lue */
-
-/* 'Ogham': Script */
-static const OnigCodePoint CR_Ogham[] = {
- 1,
- 0x1680, 0x169c
-}; /* CR_Ogham */
-
-/* 'Old_Italic': Script */
-static const OnigCodePoint CR_Old_Italic[] = {
- 2,
- 0x10300, 0x1031e,
- 0x10320, 0x10323
-}; /* CR_Old_Italic */
-
-/* 'Old_Persian': Script */
-static const OnigCodePoint CR_Old_Persian[] = {
- 2,
- 0x103a0, 0x103c3,
- 0x103c8, 0x103d5
-}; /* CR_Old_Persian */
-
-/* 'Oriya': Script */
-static const OnigCodePoint CR_Oriya[] = {
- 14,
- 0x0b01, 0x0b03,
- 0x0b05, 0x0b0c,
- 0x0b0f, 0x0b10,
- 0x0b13, 0x0b28,
- 0x0b2a, 0x0b30,
- 0x0b32, 0x0b33,
- 0x0b35, 0x0b39,
- 0x0b3c, 0x0b43,
- 0x0b47, 0x0b48,
- 0x0b4b, 0x0b4d,
- 0x0b56, 0x0b57,
- 0x0b5c, 0x0b5d,
- 0x0b5f, 0x0b61,
- 0x0b66, 0x0b71
-}; /* CR_Oriya */
-
-/* 'Osmanya': Script */
-static const OnigCodePoint CR_Osmanya[] = {
- 2,
- 0x10480, 0x1049d,
- 0x104a0, 0x104a9
-}; /* CR_Osmanya */
-
-/* 'Runic': Script */
-static const OnigCodePoint CR_Runic[] = {
- 2,
- 0x16a0, 0x16ea,
- 0x16ee, 0x16f0
-}; /* CR_Runic */
-
-/* 'Shavian': Script */
-static const OnigCodePoint CR_Shavian[] = {
- 1,
- 0x10450, 0x1047f
-}; /* CR_Shavian */
-
-/* 'Sinhala': Script */
-static const OnigCodePoint CR_Sinhala[] = {
- 11,
- 0x0d82, 0x0d83,
- 0x0d85, 0x0d96,
- 0x0d9a, 0x0db1,
- 0x0db3, 0x0dbb,
- 0x0dbd, 0x0dbd,
- 0x0dc0, 0x0dc6,
- 0x0dca, 0x0dca,
- 0x0dcf, 0x0dd4,
- 0x0dd6, 0x0dd6,
- 0x0dd8, 0x0ddf,
- 0x0df2, 0x0df4
-}; /* CR_Sinhala */
-
-/* 'Syloti_Nagri': Script */
-static const OnigCodePoint CR_Syloti_Nagri[] = {
- 1,
- 0xa800, 0xa82b
-}; /* CR_Syloti_Nagri */
-
-/* 'Syriac': Script */
-static const OnigCodePoint CR_Syriac[] = {
- 3,
- 0x0700, 0x070d,
- 0x070f, 0x074a,
- 0x074d, 0x074f
-}; /* CR_Syriac */
-
-/* 'Tagalog': Script */
-static const OnigCodePoint CR_Tagalog[] = {
- 2,
- 0x1700, 0x170c,
- 0x170e, 0x1714
-}; /* CR_Tagalog */
-
-/* 'Tagbanwa': Script */
-static const OnigCodePoint CR_Tagbanwa[] = {
- 3,
- 0x1760, 0x176c,
- 0x176e, 0x1770,
- 0x1772, 0x1773
-}; /* CR_Tagbanwa */
-
-/* 'Tai_Le': Script */
-static const OnigCodePoint CR_Tai_Le[] = {
- 2,
- 0x1950, 0x196d,
- 0x1970, 0x1974
-}; /* CR_Tai_Le */
-
-/* 'Tamil': Script */
-static const OnigCodePoint CR_Tamil[] = {
- 15,
- 0x0b82, 0x0b83,
- 0x0b85, 0x0b8a,
- 0x0b8e, 0x0b90,
- 0x0b92, 0x0b95,
- 0x0b99, 0x0b9a,
- 0x0b9c, 0x0b9c,
- 0x0b9e, 0x0b9f,
- 0x0ba3, 0x0ba4,
- 0x0ba8, 0x0baa,
- 0x0bae, 0x0bb9,
- 0x0bbe, 0x0bc2,
- 0x0bc6, 0x0bc8,
- 0x0bca, 0x0bcd,
- 0x0bd7, 0x0bd7,
- 0x0be6, 0x0bfa
-}; /* CR_Tamil */
-
-/* 'Telugu': Script */
-static const OnigCodePoint CR_Telugu[] = {
- 12,
- 0x0c01, 0x0c03,
- 0x0c05, 0x0c0c,
- 0x0c0e, 0x0c10,
- 0x0c12, 0x0c28,
- 0x0c2a, 0x0c33,
- 0x0c35, 0x0c39,
- 0x0c3e, 0x0c44,
- 0x0c46, 0x0c48,
- 0x0c4a, 0x0c4d,
- 0x0c55, 0x0c56,
- 0x0c60, 0x0c61,
- 0x0c66, 0x0c6f
-}; /* CR_Telugu */
-
-/* 'Thaana': Script */
-static const OnigCodePoint CR_Thaana[] = {
- 1,
- 0x0780, 0x07b1
-}; /* CR_Thaana */
-
-/* 'Thai': Script */
-static const OnigCodePoint CR_Thai[] = {
- 2,
- 0x0e01, 0x0e3a,
- 0x0e40, 0x0e5b
-}; /* CR_Thai */
-
-/* 'Tibetan': Script */
-static const OnigCodePoint CR_Tibetan[] = {
- 7,
- 0x0f00, 0x0f47,
- 0x0f49, 0x0f6a,
- 0x0f71, 0x0f8b,
- 0x0f90, 0x0f97,
- 0x0f99, 0x0fbc,
- 0x0fbe, 0x0fcc,
- 0x0fcf, 0x0fd1
-}; /* CR_Tibetan */
-
-/* 'Tifinagh': Script */
-static const OnigCodePoint CR_Tifinagh[] = {
- 2,
- 0x2d30, 0x2d65,
- 0x2d6f, 0x2d6f
-}; /* CR_Tifinagh */
-
-/* 'Ugaritic': Script */
-static const OnigCodePoint CR_Ugaritic[] = {
- 2,
- 0x10380, 0x1039d,
- 0x1039f, 0x1039f
-}; /* CR_Ugaritic */
-
-/* 'Yi': Script */
-static const OnigCodePoint CR_Yi[] = {
- 2,
- 0xa000, 0xa48c,
- 0xa490, 0xa4c6
-}; /* CR_Yi */
-
-
-#endif /* USE_UNICODE_PROPERTIES */
-
+#include "enc/unicode/name2ctype.h"
typedef struct {
int n;
@@ -10486,263 +2035,8 @@ static const CaseUnfold_13_Type CaseUnfold_13[] = {
{ {0x03c9, 0x0342, 0x03b9}, {1, {0x1ff7 }}}
};
-
-static PosixBracketEntryType HashEntryData[] = {
- { (UChar* )"NEWLINE", 0, 7 },
- { (UChar* )"Alpha", 1, 5 },
- { (UChar* )"Blank", 2, 5 },
- { (UChar* )"Cntrl", 3, 5 },
- { (UChar* )"Digit", 4, 5 },
- { (UChar* )"Graph", 5, 5 },
- { (UChar* )"Lower", 6, 5 },
- { (UChar* )"Print", 7, 5 },
- { (UChar* )"Punct", 8, 5 },
- { (UChar* )"Space", 9, 5 },
- { (UChar* )"Upper", 10, 5 },
- { (UChar* )"XDigit", 11, 6 },
- { (UChar* )"Word", 12, 4 },
- { (UChar* )"Alnum", 13, 5 },
- { (UChar* )"ASCII", 14, 5 },
-
-#ifdef USE_UNICODE_PROPERTIES
- { (UChar* )"Any", 15, 3 },
- { (UChar* )"Assigned", 16, 8 },
- { (UChar* )"C", 17, 1 },
- { (UChar* )"Cc", 18, 2 },
- { (UChar* )"Cf", 19, 2 },
- { (UChar* )"Cn", 20, 2 },
- { (UChar* )"Co", 21, 2 },
- { (UChar* )"Cs", 22, 2 },
- { (UChar* )"L", 23, 1 },
- { (UChar* )"Ll", 24, 2 },
- { (UChar* )"Lm", 25, 2 },
- { (UChar* )"Lo", 26, 2 },
- { (UChar* )"Lt", 27, 2 },
- { (UChar* )"Lu", 28, 2 },
- { (UChar* )"M", 29, 1 },
- { (UChar* )"Mc", 30, 2 },
- { (UChar* )"Me", 31, 2 },
- { (UChar* )"Mn", 32, 2 },
- { (UChar* )"N", 33, 1 },
- { (UChar* )"Nd", 34, 2 },
- { (UChar* )"Nl", 35, 2 },
- { (UChar* )"No", 36, 2 },
- { (UChar* )"P", 37, 1 },
- { (UChar* )"Pc", 38, 2 },
- { (UChar* )"Pd", 39, 2 },
- { (UChar* )"Pe", 40, 2 },
- { (UChar* )"Pf", 41, 2 },
- { (UChar* )"Pi", 42, 2 },
- { (UChar* )"Po", 43, 2 },
- { (UChar* )"Ps", 44, 2 },
- { (UChar* )"S", 45, 1 },
- { (UChar* )"Sc", 46, 2 },
- { (UChar* )"Sk", 47, 2 },
- { (UChar* )"Sm", 48, 2 },
- { (UChar* )"So", 49, 2 },
- { (UChar* )"Z", 50, 1 },
- { (UChar* )"Zl", 51, 2 },
- { (UChar* )"Zp", 52, 2 },
- { (UChar* )"Zs", 53, 2 },
- { (UChar* )"Arabic", 54, 6 },
- { (UChar* )"Armenian", 55, 8 },
- { (UChar* )"Bengali", 56, 7 },
- { (UChar* )"Bopomofo", 57, 8 },
- { (UChar* )"Braille", 58, 7 },
- { (UChar* )"Buginese", 59, 8 },
- { (UChar* )"Buhid", 60, 5 },
- { (UChar* )"Canadian_Aboriginal", 61, 19 },
- { (UChar* )"Cherokee", 62, 8 },
- { (UChar* )"Common", 63, 6 },
- { (UChar* )"Coptic", 64, 6 },
- { (UChar* )"Cypriot", 65, 7 },
- { (UChar* )"Cyrillic", 66, 8 },
- { (UChar* )"Deseret", 67, 7 },
- { (UChar* )"Devanagari", 68, 10 },
- { (UChar* )"Ethiopic", 69, 8 },
- { (UChar* )"Georgian", 70, 8 },
- { (UChar* )"Glagolitic", 71, 10 },
- { (UChar* )"Gothic", 72, 6 },
- { (UChar* )"Greek", 73, 5 },
- { (UChar* )"Gujarati", 74, 8 },
- { (UChar* )"Gurmukhi", 75, 8 },
- { (UChar* )"Han", 76, 3 },
- { (UChar* )"Hangul", 77, 6 },
- { (UChar* )"Hanunoo", 78, 7 },
- { (UChar* )"Hebrew", 79, 6 },
- { (UChar* )"Hiragana", 80, 8 },
- { (UChar* )"Inherited", 81, 9 },
- { (UChar* )"Kannada", 82, 7 },
- { (UChar* )"Katakana", 83, 8 },
- { (UChar* )"Kharoshthi", 84, 10 },
- { (UChar* )"Khmer", 85, 5 },
- { (UChar* )"Lao", 86, 3 },
- { (UChar* )"Latin", 87, 5 },
- { (UChar* )"Limbu", 88, 5 },
- { (UChar* )"Linear_B", 89, 8 },
- { (UChar* )"Malayalam", 90, 9 },
- { (UChar* )"Mongolian", 91, 9 },
- { (UChar* )"Myanmar", 92, 7 },
- { (UChar* )"New_Tai_Lue", 93, 11 },
- { (UChar* )"Ogham", 94, 5 },
- { (UChar* )"Old_Italic", 95, 10 },
- { (UChar* )"Old_Persian", 96, 11 },
- { (UChar* )"Oriya", 97, 5 },
- { (UChar* )"Osmanya", 98, 7 },
- { (UChar* )"Runic", 99, 5 },
- { (UChar* )"Shavian", 100, 7 },
- { (UChar* )"Sinhala", 101, 7 },
- { (UChar* )"Syloti_Nagri", 102, 12 },
- { (UChar* )"Syriac", 103, 6 },
- { (UChar* )"Tagalog", 104, 7 },
- { (UChar* )"Tagbanwa", 105, 8 },
- { (UChar* )"Tai_Le", 106, 6 },
- { (UChar* )"Tamil", 107, 5 },
- { (UChar* )"Telugu", 108, 6 },
- { (UChar* )"Thaana", 109, 6 },
- { (UChar* )"Thai", 110, 4 },
- { (UChar* )"Tibetan", 111, 7 },
- { (UChar* )"Tifinagh", 112, 8 },
- { (UChar* )"Ugaritic", 113, 8 },
- { (UChar* )"Yi", 114, 2 },
-#endif /* USE_UNICODE_PROPERTIES */
- { (UChar* )NULL, -1, 0 }
-};
-
-#ifdef USE_UNICODE_PROPERTIES
-#define CODE_RANGES_NUM 115
-#else
-#define CODE_RANGES_NUM 15
-#endif
-
-static const OnigCodePoint* CodeRanges[CODE_RANGES_NUM];
-static int CodeRangeTableInited = 0;
-
-static void init_code_range_array(void) {
- THREAD_ATOMIC_START;
-
- CodeRanges[0] = CR_NEWLINE;
- CodeRanges[1] = CR_Alpha;
- CodeRanges[2] = CR_Blank;
- CodeRanges[3] = CR_Cntrl;
- CodeRanges[4] = CR_Digit;
- CodeRanges[5] = CR_Graph;
- CodeRanges[6] = CR_Lower;
- CodeRanges[7] = CR_Print;
- CodeRanges[8] = CR_Punct;
- CodeRanges[9] = CR_Space;
- CodeRanges[10] = CR_Upper;
- CodeRanges[11] = CR_XDigit;
- CodeRanges[12] = CR_Word;
- CodeRanges[13] = CR_Alnum;
- CodeRanges[14] = CR_ASCII;
-
-#ifdef USE_UNICODE_PROPERTIES
- CodeRanges[15] = CR_Any;
- CodeRanges[16] = CR_Assigned;
- CodeRanges[17] = CR_C;
- CodeRanges[18] = CR_Cc;
- CodeRanges[19] = CR_Cf;
- CodeRanges[20] = CR_Cn;
- CodeRanges[21] = CR_Co;
- CodeRanges[22] = CR_Cs;
- CodeRanges[23] = CR_L;
- CodeRanges[24] = CR_Ll;
- CodeRanges[25] = CR_Lm;
- CodeRanges[26] = CR_Lo;
- CodeRanges[27] = CR_Lt;
- CodeRanges[28] = CR_Lu;
- CodeRanges[29] = CR_M;
- CodeRanges[30] = CR_Mc;
- CodeRanges[31] = CR_Me;
- CodeRanges[32] = CR_Mn;
- CodeRanges[33] = CR_N;
- CodeRanges[34] = CR_Nd;
- CodeRanges[35] = CR_Nl;
- CodeRanges[36] = CR_No;
- CodeRanges[37] = CR_P;
- CodeRanges[38] = CR_Pc;
- CodeRanges[39] = CR_Pd;
- CodeRanges[40] = CR_Pe;
- CodeRanges[41] = CR_Pf;
- CodeRanges[42] = CR_Pi;
- CodeRanges[43] = CR_Po;
- CodeRanges[44] = CR_Ps;
- CodeRanges[45] = CR_S;
- CodeRanges[46] = CR_Sc;
- CodeRanges[47] = CR_Sk;
- CodeRanges[48] = CR_Sm;
- CodeRanges[49] = CR_So;
- CodeRanges[50] = CR_Z;
- CodeRanges[51] = CR_Zl;
- CodeRanges[52] = CR_Zp;
- CodeRanges[53] = CR_Zs;
- CodeRanges[54] = CR_Arabic;
- CodeRanges[55] = CR_Armenian;
- CodeRanges[56] = CR_Bengali;
- CodeRanges[57] = CR_Bopomofo;
- CodeRanges[58] = CR_Braille;
- CodeRanges[59] = CR_Buginese;
- CodeRanges[60] = CR_Buhid;
- CodeRanges[61] = CR_Canadian_Aboriginal;
- CodeRanges[62] = CR_Cherokee;
- CodeRanges[63] = CR_Common;
- CodeRanges[64] = CR_Coptic;
- CodeRanges[65] = CR_Cypriot;
- CodeRanges[66] = CR_Cyrillic;
- CodeRanges[67] = CR_Deseret;
- CodeRanges[68] = CR_Devanagari;
- CodeRanges[69] = CR_Ethiopic;
- CodeRanges[70] = CR_Georgian;
- CodeRanges[71] = CR_Glagolitic;
- CodeRanges[72] = CR_Gothic;
- CodeRanges[73] = CR_Greek;
- CodeRanges[74] = CR_Gujarati;
- CodeRanges[75] = CR_Gurmukhi;
- CodeRanges[76] = CR_Han;
- CodeRanges[77] = CR_Hangul;
- CodeRanges[78] = CR_Hanunoo;
- CodeRanges[79] = CR_Hebrew;
- CodeRanges[80] = CR_Hiragana;
- CodeRanges[81] = CR_Inherited;
- CodeRanges[82] = CR_Kannada;
- CodeRanges[83] = CR_Katakana;
- CodeRanges[84] = CR_Kharoshthi;
- CodeRanges[85] = CR_Khmer;
- CodeRanges[86] = CR_Lao;
- CodeRanges[87] = CR_Latin;
- CodeRanges[88] = CR_Limbu;
- CodeRanges[89] = CR_Linear_B;
- CodeRanges[90] = CR_Malayalam;
- CodeRanges[91] = CR_Mongolian;
- CodeRanges[92] = CR_Myanmar;
- CodeRanges[93] = CR_New_Tai_Lue;
- CodeRanges[94] = CR_Ogham;
- CodeRanges[95] = CR_Old_Italic;
- CodeRanges[96] = CR_Old_Persian;
- CodeRanges[97] = CR_Oriya;
- CodeRanges[98] = CR_Osmanya;
- CodeRanges[99] = CR_Runic;
- CodeRanges[100] = CR_Shavian;
- CodeRanges[101] = CR_Sinhala;
- CodeRanges[102] = CR_Syloti_Nagri;
- CodeRanges[103] = CR_Syriac;
- CodeRanges[104] = CR_Tagalog;
- CodeRanges[105] = CR_Tagbanwa;
- CodeRanges[106] = CR_Tai_Le;
- CodeRanges[107] = CR_Tamil;
- CodeRanges[108] = CR_Telugu;
- CodeRanges[109] = CR_Thaana;
- CodeRanges[110] = CR_Thai;
- CodeRanges[111] = CR_Tibetan;
- CodeRanges[112] = CR_Tifinagh;
- CodeRanges[113] = CR_Ugaritic;
- CodeRanges[114] = CR_Yi;
-#endif /* USE_UNICODE_PROPERTIES */
-
- CodeRangeTableInited = 1;
- THREAD_ATOMIC_END;
-}
+#define numberof(array) (int)(sizeof(array) / sizeof((array)[0]))
+#define CODE_RANGES_NUM numberof(CodeRanges)
extern int
onigenc_unicode_is_code_ctype(OnigCodePoint code, unsigned int ctype, OnigEncoding enc ARG_UNUSED)
@@ -10759,8 +2053,6 @@ onigenc_unicode_is_code_ctype(OnigCodePoint code, unsigned int ctype, OnigEncodi
return ONIGERR_TYPE_BUG;
}
- if (CodeRangeTableInited == 0) init_code_range_array();
-
return onig_is_in_code_range((UChar* )CodeRanges[ctype], code);
}
@@ -10772,8 +2064,6 @@ onigenc_unicode_ctype_code_range(int ctype, const OnigCodePoint* ranges[])
return ONIGERR_TYPE_BUG;
}
- if (CodeRangeTableInited == 0) init_code_range_array();
-
*ranges = CodeRanges[ctype];
return 0;
@@ -10790,59 +2080,33 @@ onigenc_utf16_32_get_ctype_code_range(OnigCtype ctype, OnigCodePoint* sb_out,
#include "ruby/st.h"
-#define PROPERTY_NAME_MAX_SIZE 20
-
-static st_table* NameCtypeTable;
-static int NameTableInited = 0;
-
-static int init_name_ctype_table(void)
-{
- PosixBracketEntryType *pb;
-
- THREAD_ATOMIC_START;
-
- NameCtypeTable = onig_st_init_strend_table_with_size(100);
- if (ONIG_IS_NULL(NameCtypeTable)) return ONIGERR_MEMORY;
-
- for (pb = HashEntryData; ONIG_IS_NOT_NULL(pb->name); pb++) {
- onig_st_insert_strend(NameCtypeTable, pb->name, pb->name + pb->len,
- (st_data_t )pb->ctype);
- }
-
- NameTableInited = 1;
- THREAD_ATOMIC_END;
- return 0;
-}
+#define PROPERTY_NAME_MAX_SIZE MAX_WORD_LENGTH
extern int
onigenc_unicode_property_name_to_ctype(OnigEncoding enc, UChar* name, UChar* end)
{
int len;
- st_data_t ctype;
+ int ctype;
UChar buf[PROPERTY_NAME_MAX_SIZE];
UChar *p;
OnigCodePoint code;
- p = name;
len = 0;
- while (p < end) {
+ for (p = name; p < end; p += enclen(enc, p, end)) {
code = ONIGENC_MBC_TO_CODE(enc, p, end);
+ if (code == ' ' || code == '-' || code == '_')
+ continue;
if (code >= 0x80)
return ONIGERR_INVALID_CHAR_PROPERTY_NAME;
- buf[len++] = (UChar )code;
+ buf[len++] = (UChar )TOLOWER((unsigned char)code);
if (len >= PROPERTY_NAME_MAX_SIZE)
return ONIGERR_INVALID_CHAR_PROPERTY_NAME;
-
- p += enclen(enc, p, end);
}
buf[len] = 0;
- if (NameTableInited == 0) init_name_ctype_table();
-
- if (onig_st_lookup_strend(NameCtypeTable, buf, buf + len,
- &ctype) == 0) {
+ if ((ctype = uniname2ctype(buf, len)) < 0) {
return ONIGERR_INVALID_CHAR_PROPERTY_NAME;
}
@@ -10857,10 +2121,10 @@ code2_cmp(OnigCodePoint* x, OnigCodePoint* y)
return 1;
}
-static int
+static st_index_t
code2_hash(OnigCodePoint* x)
{
- return (int )(x[0] + x[1]);
+ return (st_index_t )(x[0] + x[1]);
}
static const struct st_hash_type type_code2_hash = {
@@ -10875,10 +2139,10 @@ code3_cmp(OnigCodePoint* x, OnigCodePoint* y)
return 1;
}
-static int
+static st_index_t
code3_hash(OnigCodePoint* x)
{
- return (int )(x[0] + x[1] + x[2]);
+ return (st_index_t )(x[0] + x[1] + x[2]);
}
static const struct st_hash_type type_code3_hash = {
@@ -10905,12 +2169,11 @@ static int init_case_fold_table(void)
FoldTable = st_init_numtable_with_size(1200);
if (ONIG_IS_NULL(FoldTable)) return ONIGERR_MEMORY;
- for (i = 0; i < (int )(sizeof(CaseFold)/sizeof(CaseFold_11_Type)); i++) {
+ for (i = 0; i < numberof(CaseFold); i++) {
p = &CaseFold[i];
st_add_direct(FoldTable, (st_data_t )p->from, (st_data_t )&(p->to));
}
- for (i = 0; i < (int )(sizeof(CaseFold_Locale)/sizeof(CaseFold_11_Type));
- i++) {
+ for (i = 0; i < numberof(CaseFold_Locale); i++) {
p = &CaseFold_Locale[i];
st_add_direct(FoldTable, (st_data_t )p->from, (st_data_t )&(p->to));
}
@@ -10918,14 +2181,11 @@ static int init_case_fold_table(void)
Unfold1Table = st_init_numtable_with_size(1000);
if (ONIG_IS_NULL(Unfold1Table)) return ONIGERR_MEMORY;
- for (i = 0; i < (int )(sizeof(CaseUnfold_11)/sizeof(CaseUnfold_11_Type));
- i++) {
+ for (i = 0; i < numberof(CaseUnfold_11); i++) {
p1 = &CaseUnfold_11[i];
st_add_direct(Unfold1Table, (st_data_t )p1->from, (st_data_t )&(p1->to));
}
- for (i = 0;
- i < (int )(sizeof(CaseUnfold_11_Locale)/sizeof(CaseUnfold_11_Type));
- i++) {
+ for (i = 0; i < numberof(CaseUnfold_11_Locale); i++) {
p1 = &CaseUnfold_11_Locale[i];
st_add_direct(Unfold1Table, (st_data_t )p1->from, (st_data_t )&(p1->to));
}
@@ -10933,14 +2193,11 @@ static int init_case_fold_table(void)
Unfold2Table = st_init_table_with_size(&type_code2_hash, 200);
if (ONIG_IS_NULL(Unfold2Table)) return ONIGERR_MEMORY;
- for (i = 0; i < (int )(sizeof(CaseUnfold_12)/sizeof(CaseUnfold_12_Type));
- i++) {
+ for (i = 0; i < numberof(CaseUnfold_12); i++) {
p2 = &CaseUnfold_12[i];
st_add_direct(Unfold2Table, (st_data_t )p2->from, (st_data_t )(&p2->to));
}
- for (i = 0;
- i < (int )(sizeof(CaseUnfold_12_Locale)/sizeof(CaseUnfold_12_Type));
- i++) {
+ for (i = 0; i < numberof(CaseUnfold_12_Locale); i++) {
p2 = &CaseUnfold_12_Locale[i];
st_add_direct(Unfold2Table, (st_data_t )p2->from, (st_data_t )(&p2->to));
}
@@ -10948,8 +2205,7 @@ static int init_case_fold_table(void)
Unfold3Table = st_init_table_with_size(&type_code3_hash, 30);
if (ONIG_IS_NULL(Unfold3Table)) return ONIGERR_MEMORY;
- for (i = 0; i < (int )(sizeof(CaseUnfold_13)/sizeof(CaseUnfold_13_Type));
- i++) {
+ for (i = 0; i < numberof(CaseUnfold_13); i++) {
p3 = &CaseUnfold_13[i];
st_add_direct(Unfold3Table, (st_data_t )p3->from, (st_data_t )(&p3->to));
}
@@ -10988,14 +2244,15 @@ onigenc_unicode_mbc_case_fold(OnigEncoding enc,
if (onig_st_lookup(FoldTable, (st_data_t )code, (void* )&to) != 0) {
if (to->n == 1) {
- return ONIGENC_CODE_TO_MBC(enc, to->code[0], fold);
+ return ONIGENC_CODE_TO_MBC(enc, to->code[0], fold);
}
#if 0
/* NO NEEDS TO CHECK */
- else if ((flag & INTERNAL_ONIGENC_CASE_FOLD_MULTI_CHAR) != 0) {
+ else if ((flag & INTERNAL_ONIGENC_CASE_FOLD_MULTI_CHAR) != 0)
#else
- else {
+ else
#endif
+ {
rlen = 0;
for (i = 0; i < to->n; i++) {
len = ONIGENC_CODE_TO_MBC(enc, to->code[i], fold);
@@ -11023,8 +2280,7 @@ onigenc_unicode_apply_all_case_fold(OnigCaseFoldType flag,
/* if (CaseFoldInited == 0) init_case_fold_table(); */
- for (i = 0; i < (int )(sizeof(CaseUnfold_11)/sizeof(CaseUnfold_11_Type));
- i++) {
+ for (i = 0; i < numberof(CaseUnfold_11); i++) {
p11 = &CaseUnfold_11[i];
for (j = 0; j < p11->to.n; j++) {
code = p11->from;
@@ -11063,9 +2319,7 @@ onigenc_unicode_apply_all_case_fold(OnigCaseFoldType flag,
}
else {
#endif
- for (i = 0;
- i < (int )(sizeof(CaseUnfold_11_Locale)/sizeof(CaseUnfold_11_Type));
- i++) {
+ for (i = 0; i < numberof(CaseUnfold_11_Locale); i++) {
p11 = &CaseUnfold_11_Locale[i];
for (j = 0; j < p11->to.n; j++) {
code = p11->from;
@@ -11092,12 +2346,11 @@ onigenc_unicode_apply_all_case_fold(OnigCaseFoldType flag,
#endif
if ((flag & INTERNAL_ONIGENC_CASE_FOLD_MULTI_CHAR) != 0) {
- for (i = 0; i < (int )(sizeof(CaseUnfold_12)/sizeof(CaseUnfold_12_Type));
- i++) {
+ for (i = 0; i < numberof(CaseUnfold_12); i++) {
for (j = 0; j < CaseUnfold_12[i].to.n; j++) {
r = (*f)(CaseUnfold_12[i].to.code[j],
(OnigCodePoint* )CaseUnfold_12[i].from, 2, arg);
- if (r != 0) return r;
+ if (r != 0) return r;
for (k = 0; k < CaseUnfold_12[i].to.n; k++) {
if (k == j) continue;
@@ -11112,13 +2365,11 @@ onigenc_unicode_apply_all_case_fold(OnigCaseFoldType flag,
#ifdef USE_UNICODE_CASE_FOLD_TURKISH_AZERI
if ((flag & ONIGENC_CASE_FOLD_TURKISH_AZERI) == 0) {
#endif
- for (i = 0;
- i < (int )(sizeof(CaseUnfold_12_Locale)/sizeof(CaseUnfold_12_Type));
- i++) {
+ for (i = 0; i < numberof(CaseUnfold_12_Locale); i++) {
for (j = 0; j < CaseUnfold_12_Locale[i].to.n; j++) {
r = (*f)(CaseUnfold_12_Locale[i].to.code[j],
(OnigCodePoint* )CaseUnfold_12_Locale[i].from, 2, arg);
- if (r != 0) return r;
+ if (r != 0) return r;
for (k = 0; k < CaseUnfold_12_Locale[i].to.n; k++) {
if (k == j) continue;
@@ -11134,12 +2385,11 @@ onigenc_unicode_apply_all_case_fold(OnigCaseFoldType flag,
}
#endif
- for (i = 0; i < (int )(sizeof(CaseUnfold_13)/sizeof(CaseUnfold_13_Type));
- i++) {
+ for (i = 0; i < numberof(CaseUnfold_13); i++) {
for (j = 0; j < CaseUnfold_13[i].to.n; j++) {
r = (*f)(CaseUnfold_13[i].to.code[j],
(OnigCodePoint* )CaseUnfold_13[i].from, 3, arg);
- if (r != 0) return r;
+ if (r != 0) return r;
for (k = 0; k < CaseUnfold_13[i].to.n; k++) {
if (k == j) continue;
diff --git a/enc/unicode/name2ctype.h b/enc/unicode/name2ctype.h
new file mode 100644
index 0000000000..a45ea59a4b
--- /dev/null
+++ b/enc/unicode/name2ctype.h
@@ -0,0 +1,23866 @@
+/* C code produced by gperf version 3.0.3 */
+/* Command-line: gperf -7 -c -j1 -i1 -t -C -P -T -H uniname2ctype_hash -Q uniname2ctype_pool -N uniname2ctype_p */
+#ifndef USE_UNICODE_PROPERTIES
+/* Computed positions: -k'1,3' */
+#else /* USE_UNICODE_PROPERTIES */
+/* Computed positions: -k'1-3,5-6,12,16,$' */
+#endif /* USE_UNICODE_PROPERTIES */
+
+#if !((' ' == 32) && ('!' == 33) && ('"' == 34) && ('#' == 35) \
+ && ('%' == 37) && ('&' == 38) && ('\'' == 39) && ('(' == 40) \
+ && (')' == 41) && ('*' == 42) && ('+' == 43) && (',' == 44) \
+ && ('-' == 45) && ('.' == 46) && ('/' == 47) && ('0' == 48) \
+ && ('1' == 49) && ('2' == 50) && ('3' == 51) && ('4' == 52) \
+ && ('5' == 53) && ('6' == 54) && ('7' == 55) && ('8' == 56) \
+ && ('9' == 57) && (':' == 58) && (';' == 59) && ('<' == 60) \
+ && ('=' == 61) && ('>' == 62) && ('?' == 63) && ('A' == 65) \
+ && ('B' == 66) && ('C' == 67) && ('D' == 68) && ('E' == 69) \
+ && ('F' == 70) && ('G' == 71) && ('H' == 72) && ('I' == 73) \
+ && ('J' == 74) && ('K' == 75) && ('L' == 76) && ('M' == 77) \
+ && ('N' == 78) && ('O' == 79) && ('P' == 80) && ('Q' == 81) \
+ && ('R' == 82) && ('S' == 83) && ('T' == 84) && ('U' == 85) \
+ && ('V' == 86) && ('W' == 87) && ('X' == 88) && ('Y' == 89) \
+ && ('Z' == 90) && ('[' == 91) && ('\\' == 92) && (']' == 93) \
+ && ('^' == 94) && ('_' == 95) && ('a' == 97) && ('b' == 98) \
+ && ('c' == 99) && ('d' == 100) && ('e' == 101) && ('f' == 102) \
+ && ('g' == 103) && ('h' == 104) && ('i' == 105) && ('j' == 106) \
+ && ('k' == 107) && ('l' == 108) && ('m' == 109) && ('n' == 110) \
+ && ('o' == 111) && ('p' == 112) && ('q' == 113) && ('r' == 114) \
+ && ('s' == 115) && ('t' == 116) && ('u' == 117) && ('v' == 118) \
+ && ('w' == 119) && ('x' == 120) && ('y' == 121) && ('z' == 122) \
+ && ('{' == 123) && ('|' == 124) && ('}' == 125) && ('~' == 126))
+/* The character set is not based on ISO-646. */
+error "gperf generated tables don't work with this execution character set. Please report a bug to <bug-gnu-gperf@gnu.org>."
+#endif
+
+
+#define long size_t
+
+#ifdef USE_UNICODE_PROPERTIES
+#ifdef USE_UNICODE_PROPERTIES
+/* 'Any': - */
+static const OnigCodePoint CR_Any[] = {
+ 1,
+ 0x0000, 0x10ffff,
+}; /* CR_Any */
+
+/* 'Assigned': - */
+static const OnigCodePoint CR_Assigned[] = {
+ 501,
+ 0x0000, 0x0377,
+ 0x037a, 0x037e,
+ 0x0384, 0x038a,
+ 0x038c, 0x038c,
+ 0x038e, 0x03a1,
+ 0x03a3, 0x0527,
+ 0x0531, 0x0556,
+ 0x0559, 0x055f,
+ 0x0561, 0x0587,
+ 0x0589, 0x058a,
+ 0x0591, 0x05c7,
+ 0x05d0, 0x05ea,
+ 0x05f0, 0x05f4,
+ 0x0600, 0x0603,
+ 0x0606, 0x061b,
+ 0x061e, 0x070d,
+ 0x070f, 0x074a,
+ 0x074d, 0x07b1,
+ 0x07c0, 0x07fa,
+ 0x0800, 0x082d,
+ 0x0830, 0x083e,
+ 0x0840, 0x085b,
+ 0x085e, 0x085e,
+ 0x0900, 0x0977,
+ 0x0979, 0x097f,
+ 0x0981, 0x0983,
+ 0x0985, 0x098c,
+ 0x098f, 0x0990,
+ 0x0993, 0x09a8,
+ 0x09aa, 0x09b0,
+ 0x09b2, 0x09b2,
+ 0x09b6, 0x09b9,
+ 0x09bc, 0x09c4,
+ 0x09c7, 0x09c8,
+ 0x09cb, 0x09ce,
+ 0x09d7, 0x09d7,
+ 0x09dc, 0x09dd,
+ 0x09df, 0x09e3,
+ 0x09e6, 0x09fb,
+ 0x0a01, 0x0a03,
+ 0x0a05, 0x0a0a,
+ 0x0a0f, 0x0a10,
+ 0x0a13, 0x0a28,
+ 0x0a2a, 0x0a30,
+ 0x0a32, 0x0a33,
+ 0x0a35, 0x0a36,
+ 0x0a38, 0x0a39,
+ 0x0a3c, 0x0a3c,
+ 0x0a3e, 0x0a42,
+ 0x0a47, 0x0a48,
+ 0x0a4b, 0x0a4d,
+ 0x0a51, 0x0a51,
+ 0x0a59, 0x0a5c,
+ 0x0a5e, 0x0a5e,
+ 0x0a66, 0x0a75,
+ 0x0a81, 0x0a83,
+ 0x0a85, 0x0a8d,
+ 0x0a8f, 0x0a91,
+ 0x0a93, 0x0aa8,
+ 0x0aaa, 0x0ab0,
+ 0x0ab2, 0x0ab3,
+ 0x0ab5, 0x0ab9,
+ 0x0abc, 0x0ac5,
+ 0x0ac7, 0x0ac9,
+ 0x0acb, 0x0acd,
+ 0x0ad0, 0x0ad0,
+ 0x0ae0, 0x0ae3,
+ 0x0ae6, 0x0aef,
+ 0x0af1, 0x0af1,
+ 0x0b01, 0x0b03,
+ 0x0b05, 0x0b0c,
+ 0x0b0f, 0x0b10,
+ 0x0b13, 0x0b28,
+ 0x0b2a, 0x0b30,
+ 0x0b32, 0x0b33,
+ 0x0b35, 0x0b39,
+ 0x0b3c, 0x0b44,
+ 0x0b47, 0x0b48,
+ 0x0b4b, 0x0b4d,
+ 0x0b56, 0x0b57,
+ 0x0b5c, 0x0b5d,
+ 0x0b5f, 0x0b63,
+ 0x0b66, 0x0b77,
+ 0x0b82, 0x0b83,
+ 0x0b85, 0x0b8a,
+ 0x0b8e, 0x0b90,
+ 0x0b92, 0x0b95,
+ 0x0b99, 0x0b9a,
+ 0x0b9c, 0x0b9c,
+ 0x0b9e, 0x0b9f,
+ 0x0ba3, 0x0ba4,
+ 0x0ba8, 0x0baa,
+ 0x0bae, 0x0bb9,
+ 0x0bbe, 0x0bc2,
+ 0x0bc6, 0x0bc8,
+ 0x0bca, 0x0bcd,
+ 0x0bd0, 0x0bd0,
+ 0x0bd7, 0x0bd7,
+ 0x0be6, 0x0bfa,
+ 0x0c01, 0x0c03,
+ 0x0c05, 0x0c0c,
+ 0x0c0e, 0x0c10,
+ 0x0c12, 0x0c28,
+ 0x0c2a, 0x0c33,
+ 0x0c35, 0x0c39,
+ 0x0c3d, 0x0c44,
+ 0x0c46, 0x0c48,
+ 0x0c4a, 0x0c4d,
+ 0x0c55, 0x0c56,
+ 0x0c58, 0x0c59,
+ 0x0c60, 0x0c63,
+ 0x0c66, 0x0c6f,
+ 0x0c78, 0x0c7f,
+ 0x0c82, 0x0c83,
+ 0x0c85, 0x0c8c,
+ 0x0c8e, 0x0c90,
+ 0x0c92, 0x0ca8,
+ 0x0caa, 0x0cb3,
+ 0x0cb5, 0x0cb9,
+ 0x0cbc, 0x0cc4,
+ 0x0cc6, 0x0cc8,
+ 0x0cca, 0x0ccd,
+ 0x0cd5, 0x0cd6,
+ 0x0cde, 0x0cde,
+ 0x0ce0, 0x0ce3,
+ 0x0ce6, 0x0cef,
+ 0x0cf1, 0x0cf2,
+ 0x0d02, 0x0d03,
+ 0x0d05, 0x0d0c,
+ 0x0d0e, 0x0d10,
+ 0x0d12, 0x0d3a,
+ 0x0d3d, 0x0d44,
+ 0x0d46, 0x0d48,
+ 0x0d4a, 0x0d4e,
+ 0x0d57, 0x0d57,
+ 0x0d60, 0x0d63,
+ 0x0d66, 0x0d75,
+ 0x0d79, 0x0d7f,
+ 0x0d82, 0x0d83,
+ 0x0d85, 0x0d96,
+ 0x0d9a, 0x0db1,
+ 0x0db3, 0x0dbb,
+ 0x0dbd, 0x0dbd,
+ 0x0dc0, 0x0dc6,
+ 0x0dca, 0x0dca,
+ 0x0dcf, 0x0dd4,
+ 0x0dd6, 0x0dd6,
+ 0x0dd8, 0x0ddf,
+ 0x0df2, 0x0df4,
+ 0x0e01, 0x0e3a,
+ 0x0e3f, 0x0e5b,
+ 0x0e81, 0x0e82,
+ 0x0e84, 0x0e84,
+ 0x0e87, 0x0e88,
+ 0x0e8a, 0x0e8a,
+ 0x0e8d, 0x0e8d,
+ 0x0e94, 0x0e97,
+ 0x0e99, 0x0e9f,
+ 0x0ea1, 0x0ea3,
+ 0x0ea5, 0x0ea5,
+ 0x0ea7, 0x0ea7,
+ 0x0eaa, 0x0eab,
+ 0x0ead, 0x0eb9,
+ 0x0ebb, 0x0ebd,
+ 0x0ec0, 0x0ec4,
+ 0x0ec6, 0x0ec6,
+ 0x0ec8, 0x0ecd,
+ 0x0ed0, 0x0ed9,
+ 0x0edc, 0x0edd,
+ 0x0f00, 0x0f47,
+ 0x0f49, 0x0f6c,
+ 0x0f71, 0x0f97,
+ 0x0f99, 0x0fbc,
+ 0x0fbe, 0x0fcc,
+ 0x0fce, 0x0fda,
+ 0x1000, 0x10c5,
+ 0x10d0, 0x10fc,
+ 0x1100, 0x1248,
+ 0x124a, 0x124d,
+ 0x1250, 0x1256,
+ 0x1258, 0x1258,
+ 0x125a, 0x125d,
+ 0x1260, 0x1288,
+ 0x128a, 0x128d,
+ 0x1290, 0x12b0,
+ 0x12b2, 0x12b5,
+ 0x12b8, 0x12be,
+ 0x12c0, 0x12c0,
+ 0x12c2, 0x12c5,
+ 0x12c8, 0x12d6,
+ 0x12d8, 0x1310,
+ 0x1312, 0x1315,
+ 0x1318, 0x135a,
+ 0x135d, 0x137c,
+ 0x1380, 0x1399,
+ 0x13a0, 0x13f4,
+ 0x1400, 0x169c,
+ 0x16a0, 0x16f0,
+ 0x1700, 0x170c,
+ 0x170e, 0x1714,
+ 0x1720, 0x1736,
+ 0x1740, 0x1753,
+ 0x1760, 0x176c,
+ 0x176e, 0x1770,
+ 0x1772, 0x1773,
+ 0x1780, 0x17dd,
+ 0x17e0, 0x17e9,
+ 0x17f0, 0x17f9,
+ 0x1800, 0x180e,
+ 0x1810, 0x1819,
+ 0x1820, 0x1877,
+ 0x1880, 0x18aa,
+ 0x18b0, 0x18f5,
+ 0x1900, 0x191c,
+ 0x1920, 0x192b,
+ 0x1930, 0x193b,
+ 0x1940, 0x1940,
+ 0x1944, 0x196d,
+ 0x1970, 0x1974,
+ 0x1980, 0x19ab,
+ 0x19b0, 0x19c9,
+ 0x19d0, 0x19da,
+ 0x19de, 0x1a1b,
+ 0x1a1e, 0x1a5e,
+ 0x1a60, 0x1a7c,
+ 0x1a7f, 0x1a89,
+ 0x1a90, 0x1a99,
+ 0x1aa0, 0x1aad,
+ 0x1b00, 0x1b4b,
+ 0x1b50, 0x1b7c,
+ 0x1b80, 0x1baa,
+ 0x1bae, 0x1bb9,
+ 0x1bc0, 0x1bf3,
+ 0x1bfc, 0x1c37,
+ 0x1c3b, 0x1c49,
+ 0x1c4d, 0x1c7f,
+ 0x1cd0, 0x1cf2,
+ 0x1d00, 0x1de6,
+ 0x1dfc, 0x1f15,
+ 0x1f18, 0x1f1d,
+ 0x1f20, 0x1f45,
+ 0x1f48, 0x1f4d,
+ 0x1f50, 0x1f57,
+ 0x1f59, 0x1f59,
+ 0x1f5b, 0x1f5b,
+ 0x1f5d, 0x1f5d,
+ 0x1f5f, 0x1f7d,
+ 0x1f80, 0x1fb4,
+ 0x1fb6, 0x1fc4,
+ 0x1fc6, 0x1fd3,
+ 0x1fd6, 0x1fdb,
+ 0x1fdd, 0x1fef,
+ 0x1ff2, 0x1ff4,
+ 0x1ff6, 0x1ffe,
+ 0x2000, 0x2064,
+ 0x206a, 0x2071,
+ 0x2074, 0x208e,
+ 0x2090, 0x209c,
+ 0x20a0, 0x20b9,
+ 0x20d0, 0x20f0,
+ 0x2100, 0x2189,
+ 0x2190, 0x23f3,
+ 0x2400, 0x2426,
+ 0x2440, 0x244a,
+ 0x2460, 0x26ff,
+ 0x2701, 0x27ca,
+ 0x27cc, 0x27cc,
+ 0x27ce, 0x2b4c,
+ 0x2b50, 0x2b59,
+ 0x2c00, 0x2c2e,
+ 0x2c30, 0x2c5e,
+ 0x2c60, 0x2cf1,
+ 0x2cf9, 0x2d25,
+ 0x2d30, 0x2d65,
+ 0x2d6f, 0x2d70,
+ 0x2d7f, 0x2d96,
+ 0x2da0, 0x2da6,
+ 0x2da8, 0x2dae,
+ 0x2db0, 0x2db6,
+ 0x2db8, 0x2dbe,
+ 0x2dc0, 0x2dc6,
+ 0x2dc8, 0x2dce,
+ 0x2dd0, 0x2dd6,
+ 0x2dd8, 0x2dde,
+ 0x2de0, 0x2e31,
+ 0x2e80, 0x2e99,
+ 0x2e9b, 0x2ef3,
+ 0x2f00, 0x2fd5,
+ 0x2ff0, 0x2ffb,
+ 0x3000, 0x303f,
+ 0x3041, 0x3096,
+ 0x3099, 0x30ff,
+ 0x3105, 0x312d,
+ 0x3131, 0x318e,
+ 0x3190, 0x31ba,
+ 0x31c0, 0x31e3,
+ 0x31f0, 0x321e,
+ 0x3220, 0x32fe,
+ 0x3300, 0x4db5,
+ 0x4dc0, 0x9fcb,
+ 0xa000, 0xa48c,
+ 0xa490, 0xa4c6,
+ 0xa4d0, 0xa62b,
+ 0xa640, 0xa673,
+ 0xa67c, 0xa697,
+ 0xa6a0, 0xa6f7,
+ 0xa700, 0xa78e,
+ 0xa790, 0xa791,
+ 0xa7a0, 0xa7a9,
+ 0xa7fa, 0xa82b,
+ 0xa830, 0xa839,
+ 0xa840, 0xa877,
+ 0xa880, 0xa8c4,
+ 0xa8ce, 0xa8d9,
+ 0xa8e0, 0xa8fb,
+ 0xa900, 0xa953,
+ 0xa95f, 0xa97c,
+ 0xa980, 0xa9cd,
+ 0xa9cf, 0xa9d9,
+ 0xa9de, 0xa9df,
+ 0xaa00, 0xaa36,
+ 0xaa40, 0xaa4d,
+ 0xaa50, 0xaa59,
+ 0xaa5c, 0xaa7b,
+ 0xaa80, 0xaac2,
+ 0xaadb, 0xaadf,
+ 0xab01, 0xab06,
+ 0xab09, 0xab0e,
+ 0xab11, 0xab16,
+ 0xab20, 0xab26,
+ 0xab28, 0xab2e,
+ 0xabc0, 0xabed,
+ 0xabf0, 0xabf9,
+ 0xac00, 0xd7a3,
+ 0xd7b0, 0xd7c6,
+ 0xd7cb, 0xd7fb,
+ 0xd800, 0xfa2d,
+ 0xfa30, 0xfa6d,
+ 0xfa70, 0xfad9,
+ 0xfb00, 0xfb06,
+ 0xfb13, 0xfb17,
+ 0xfb1d, 0xfb36,
+ 0xfb38, 0xfb3c,
+ 0xfb3e, 0xfb3e,
+ 0xfb40, 0xfb41,
+ 0xfb43, 0xfb44,
+ 0xfb46, 0xfbc1,
+ 0xfbd3, 0xfd3f,
+ 0xfd50, 0xfd8f,
+ 0xfd92, 0xfdc7,
+ 0xfdf0, 0xfdfd,
+ 0xfe00, 0xfe19,
+ 0xfe20, 0xfe26,
+ 0xfe30, 0xfe52,
+ 0xfe54, 0xfe66,
+ 0xfe68, 0xfe6b,
+ 0xfe70, 0xfe74,
+ 0xfe76, 0xfefc,
+ 0xfeff, 0xfeff,
+ 0xff01, 0xffbe,
+ 0xffc2, 0xffc7,
+ 0xffca, 0xffcf,
+ 0xffd2, 0xffd7,
+ 0xffda, 0xffdc,
+ 0xffe0, 0xffe6,
+ 0xffe8, 0xffee,
+ 0xfff9, 0xfffd,
+ 0x10000, 0x1000b,
+ 0x1000d, 0x10026,
+ 0x10028, 0x1003a,
+ 0x1003c, 0x1003d,
+ 0x1003f, 0x1004d,
+ 0x10050, 0x1005d,
+ 0x10080, 0x100fa,
+ 0x10100, 0x10102,
+ 0x10107, 0x10133,
+ 0x10137, 0x1018a,
+ 0x10190, 0x1019b,
+ 0x101d0, 0x101fd,
+ 0x10280, 0x1029c,
+ 0x102a0, 0x102d0,
+ 0x10300, 0x1031e,
+ 0x10320, 0x10323,
+ 0x10330, 0x1034a,
+ 0x10380, 0x1039d,
+ 0x1039f, 0x103c3,
+ 0x103c8, 0x103d5,
+ 0x10400, 0x1049d,
+ 0x104a0, 0x104a9,
+ 0x10800, 0x10805,
+ 0x10808, 0x10808,
+ 0x1080a, 0x10835,
+ 0x10837, 0x10838,
+ 0x1083c, 0x1083c,
+ 0x1083f, 0x10855,
+ 0x10857, 0x1085f,
+ 0x10900, 0x1091b,
+ 0x1091f, 0x10939,
+ 0x1093f, 0x1093f,
+ 0x10a00, 0x10a03,
+ 0x10a05, 0x10a06,
+ 0x10a0c, 0x10a13,
+ 0x10a15, 0x10a17,
+ 0x10a19, 0x10a33,
+ 0x10a38, 0x10a3a,
+ 0x10a3f, 0x10a47,
+ 0x10a50, 0x10a58,
+ 0x10a60, 0x10a7f,
+ 0x10b00, 0x10b35,
+ 0x10b39, 0x10b55,
+ 0x10b58, 0x10b72,
+ 0x10b78, 0x10b7f,
+ 0x10c00, 0x10c48,
+ 0x10e60, 0x10e7e,
+ 0x11000, 0x1104d,
+ 0x11052, 0x1106f,
+ 0x11080, 0x110c1,
+ 0x12000, 0x1236e,
+ 0x12400, 0x12462,
+ 0x12470, 0x12473,
+ 0x13000, 0x1342e,
+ 0x16800, 0x16a38,
+ 0x1b000, 0x1b001,
+ 0x1d000, 0x1d0f5,
+ 0x1d100, 0x1d126,
+ 0x1d129, 0x1d1dd,
+ 0x1d200, 0x1d245,
+ 0x1d300, 0x1d356,
+ 0x1d360, 0x1d371,
+ 0x1d400, 0x1d454,
+ 0x1d456, 0x1d49c,
+ 0x1d49e, 0x1d49f,
+ 0x1d4a2, 0x1d4a2,
+ 0x1d4a5, 0x1d4a6,
+ 0x1d4a9, 0x1d4ac,
+ 0x1d4ae, 0x1d4b9,
+ 0x1d4bb, 0x1d4bb,
+ 0x1d4bd, 0x1d4c3,
+ 0x1d4c5, 0x1d505,
+ 0x1d507, 0x1d50a,
+ 0x1d50d, 0x1d514,
+ 0x1d516, 0x1d51c,
+ 0x1d51e, 0x1d539,
+ 0x1d53b, 0x1d53e,
+ 0x1d540, 0x1d544,
+ 0x1d546, 0x1d546,
+ 0x1d54a, 0x1d550,
+ 0x1d552, 0x1d6a5,
+ 0x1d6a8, 0x1d7cb,
+ 0x1d7ce, 0x1d7ff,
+ 0x1f000, 0x1f02b,
+ 0x1f030, 0x1f093,
+ 0x1f0a0, 0x1f0ae,
+ 0x1f0b1, 0x1f0be,
+ 0x1f0c1, 0x1f0cf,
+ 0x1f0d1, 0x1f0df,
+ 0x1f100, 0x1f10a,
+ 0x1f110, 0x1f12e,
+ 0x1f130, 0x1f169,
+ 0x1f170, 0x1f19a,
+ 0x1f1e6, 0x1f202,
+ 0x1f210, 0x1f23a,
+ 0x1f240, 0x1f248,
+ 0x1f250, 0x1f251,
+ 0x1f300, 0x1f320,
+ 0x1f330, 0x1f335,
+ 0x1f337, 0x1f37c,
+ 0x1f380, 0x1f393,
+ 0x1f3a0, 0x1f3c4,
+ 0x1f3c6, 0x1f3ca,
+ 0x1f3e0, 0x1f3f0,
+ 0x1f400, 0x1f43e,
+ 0x1f440, 0x1f440,
+ 0x1f442, 0x1f4f7,
+ 0x1f4f9, 0x1f4fc,
+ 0x1f500, 0x1f53d,
+ 0x1f550, 0x1f567,
+ 0x1f5fb, 0x1f5ff,
+ 0x1f601, 0x1f610,
+ 0x1f612, 0x1f614,
+ 0x1f616, 0x1f616,
+ 0x1f618, 0x1f618,
+ 0x1f61a, 0x1f61a,
+ 0x1f61c, 0x1f61e,
+ 0x1f620, 0x1f625,
+ 0x1f628, 0x1f62b,
+ 0x1f62d, 0x1f62d,
+ 0x1f630, 0x1f633,
+ 0x1f635, 0x1f640,
+ 0x1f645, 0x1f64f,
+ 0x1f680, 0x1f6c5,
+ 0x1f700, 0x1f773,
+ 0x20000, 0x2a6d6,
+ 0x2a700, 0x2b734,
+ 0x2b740, 0x2b81d,
+ 0x2f800, 0x2fa1d,
+ 0xe0001, 0xe0001,
+ 0xe0020, 0xe007f,
+ 0xe0100, 0xe01ef,
+ 0xf0000, 0xffffd,
+ 0x100000, 0x10fffd,
+}; /* CR_Assigned */
+
+/* 'C': Major Category */
+static const OnigCodePoint CR_C[] = {
+ 20,
+ 0x0000, 0x001f,
+ 0x007f, 0x009f,
+ 0x00ad, 0x00ad,
+ 0x0600, 0x0603,
+ 0x06dd, 0x06dd,
+ 0x070f, 0x070f,
+ 0x17b4, 0x17b5,
+ 0x200b, 0x200f,
+ 0x202a, 0x202e,
+ 0x2060, 0x2064,
+ 0x206a, 0x206f,
+ 0xd800, 0xf8ff,
+ 0xfeff, 0xfeff,
+ 0xfff9, 0xfffb,
+ 0x110bd, 0x110bd,
+ 0x1d173, 0x1d17a,
+ 0xe0001, 0xe0001,
+ 0xe0020, 0xe007f,
+ 0xf0000, 0xffffd,
+ 0x100000, 0x10ffff,
+}; /* CR_C */
+
+/* 'Cc': General Category */
+static const OnigCodePoint CR_Cc[] = {
+ 2,
+ 0x0000, 0x001f,
+ 0x007f, 0x009f,
+}; /* CR_Cc */
+
+/* 'Cf': General Category */
+static const OnigCodePoint CR_Cf[] = {
+ 15,
+ 0x00ad, 0x00ad,
+ 0x0600, 0x0603,
+ 0x06dd, 0x06dd,
+ 0x070f, 0x070f,
+ 0x17b4, 0x17b5,
+ 0x200b, 0x200f,
+ 0x202a, 0x202e,
+ 0x2060, 0x2064,
+ 0x206a, 0x206f,
+ 0xfeff, 0xfeff,
+ 0xfff9, 0xfffb,
+ 0x110bd, 0x110bd,
+ 0x1d173, 0x1d17a,
+ 0xe0001, 0xe0001,
+ 0xe0020, 0xe007f,
+}; /* CR_Cf */
+
+/* 'Cn': General Category */
+static const OnigCodePoint CR_Cn[] = {
+ 501,
+ 0x0378, 0x0379,
+ 0x037f, 0x0383,
+ 0x038b, 0x038b,
+ 0x038d, 0x038d,
+ 0x03a2, 0x03a2,
+ 0x0528, 0x0530,
+ 0x0557, 0x0558,
+ 0x0560, 0x0560,
+ 0x0588, 0x0588,
+ 0x058b, 0x0590,
+ 0x05c8, 0x05cf,
+ 0x05eb, 0x05ef,
+ 0x05f5, 0x05ff,
+ 0x0604, 0x0605,
+ 0x061c, 0x061d,
+ 0x070e, 0x070e,
+ 0x074b, 0x074c,
+ 0x07b2, 0x07bf,
+ 0x07fb, 0x07ff,
+ 0x082e, 0x082f,
+ 0x083f, 0x083f,
+ 0x085c, 0x085d,
+ 0x085f, 0x08ff,
+ 0x0978, 0x0978,
+ 0x0980, 0x0980,
+ 0x0984, 0x0984,
+ 0x098d, 0x098e,
+ 0x0991, 0x0992,
+ 0x09a9, 0x09a9,
+ 0x09b1, 0x09b1,
+ 0x09b3, 0x09b5,
+ 0x09ba, 0x09bb,
+ 0x09c5, 0x09c6,
+ 0x09c9, 0x09ca,
+ 0x09cf, 0x09d6,
+ 0x09d8, 0x09db,
+ 0x09de, 0x09de,
+ 0x09e4, 0x09e5,
+ 0x09fc, 0x0a00,
+ 0x0a04, 0x0a04,
+ 0x0a0b, 0x0a0e,
+ 0x0a11, 0x0a12,
+ 0x0a29, 0x0a29,
+ 0x0a31, 0x0a31,
+ 0x0a34, 0x0a34,
+ 0x0a37, 0x0a37,
+ 0x0a3a, 0x0a3b,
+ 0x0a3d, 0x0a3d,
+ 0x0a43, 0x0a46,
+ 0x0a49, 0x0a4a,
+ 0x0a4e, 0x0a50,
+ 0x0a52, 0x0a58,
+ 0x0a5d, 0x0a5d,
+ 0x0a5f, 0x0a65,
+ 0x0a76, 0x0a80,
+ 0x0a84, 0x0a84,
+ 0x0a8e, 0x0a8e,
+ 0x0a92, 0x0a92,
+ 0x0aa9, 0x0aa9,
+ 0x0ab1, 0x0ab1,
+ 0x0ab4, 0x0ab4,
+ 0x0aba, 0x0abb,
+ 0x0ac6, 0x0ac6,
+ 0x0aca, 0x0aca,
+ 0x0ace, 0x0acf,
+ 0x0ad1, 0x0adf,
+ 0x0ae4, 0x0ae5,
+ 0x0af0, 0x0af0,
+ 0x0af2, 0x0b00,
+ 0x0b04, 0x0b04,
+ 0x0b0d, 0x0b0e,
+ 0x0b11, 0x0b12,
+ 0x0b29, 0x0b29,
+ 0x0b31, 0x0b31,
+ 0x0b34, 0x0b34,
+ 0x0b3a, 0x0b3b,
+ 0x0b45, 0x0b46,
+ 0x0b49, 0x0b4a,
+ 0x0b4e, 0x0b55,
+ 0x0b58, 0x0b5b,
+ 0x0b5e, 0x0b5e,
+ 0x0b64, 0x0b65,
+ 0x0b78, 0x0b81,
+ 0x0b84, 0x0b84,
+ 0x0b8b, 0x0b8d,
+ 0x0b91, 0x0b91,
+ 0x0b96, 0x0b98,
+ 0x0b9b, 0x0b9b,
+ 0x0b9d, 0x0b9d,
+ 0x0ba0, 0x0ba2,
+ 0x0ba5, 0x0ba7,
+ 0x0bab, 0x0bad,
+ 0x0bba, 0x0bbd,
+ 0x0bc3, 0x0bc5,
+ 0x0bc9, 0x0bc9,
+ 0x0bce, 0x0bcf,
+ 0x0bd1, 0x0bd6,
+ 0x0bd8, 0x0be5,
+ 0x0bfb, 0x0c00,
+ 0x0c04, 0x0c04,
+ 0x0c0d, 0x0c0d,
+ 0x0c11, 0x0c11,
+ 0x0c29, 0x0c29,
+ 0x0c34, 0x0c34,
+ 0x0c3a, 0x0c3c,
+ 0x0c45, 0x0c45,
+ 0x0c49, 0x0c49,
+ 0x0c4e, 0x0c54,
+ 0x0c57, 0x0c57,
+ 0x0c5a, 0x0c5f,
+ 0x0c64, 0x0c65,
+ 0x0c70, 0x0c77,
+ 0x0c80, 0x0c81,
+ 0x0c84, 0x0c84,
+ 0x0c8d, 0x0c8d,
+ 0x0c91, 0x0c91,
+ 0x0ca9, 0x0ca9,
+ 0x0cb4, 0x0cb4,
+ 0x0cba, 0x0cbb,
+ 0x0cc5, 0x0cc5,
+ 0x0cc9, 0x0cc9,
+ 0x0cce, 0x0cd4,
+ 0x0cd7, 0x0cdd,
+ 0x0cdf, 0x0cdf,
+ 0x0ce4, 0x0ce5,
+ 0x0cf0, 0x0cf0,
+ 0x0cf3, 0x0d01,
+ 0x0d04, 0x0d04,
+ 0x0d0d, 0x0d0d,
+ 0x0d11, 0x0d11,
+ 0x0d3b, 0x0d3c,
+ 0x0d45, 0x0d45,
+ 0x0d49, 0x0d49,
+ 0x0d4f, 0x0d56,
+ 0x0d58, 0x0d5f,
+ 0x0d64, 0x0d65,
+ 0x0d76, 0x0d78,
+ 0x0d80, 0x0d81,
+ 0x0d84, 0x0d84,
+ 0x0d97, 0x0d99,
+ 0x0db2, 0x0db2,
+ 0x0dbc, 0x0dbc,
+ 0x0dbe, 0x0dbf,
+ 0x0dc7, 0x0dc9,
+ 0x0dcb, 0x0dce,
+ 0x0dd5, 0x0dd5,
+ 0x0dd7, 0x0dd7,
+ 0x0de0, 0x0df1,
+ 0x0df5, 0x0e00,
+ 0x0e3b, 0x0e3e,
+ 0x0e5c, 0x0e80,
+ 0x0e83, 0x0e83,
+ 0x0e85, 0x0e86,
+ 0x0e89, 0x0e89,
+ 0x0e8b, 0x0e8c,
+ 0x0e8e, 0x0e93,
+ 0x0e98, 0x0e98,
+ 0x0ea0, 0x0ea0,
+ 0x0ea4, 0x0ea4,
+ 0x0ea6, 0x0ea6,
+ 0x0ea8, 0x0ea9,
+ 0x0eac, 0x0eac,
+ 0x0eba, 0x0eba,
+ 0x0ebe, 0x0ebf,
+ 0x0ec5, 0x0ec5,
+ 0x0ec7, 0x0ec7,
+ 0x0ece, 0x0ecf,
+ 0x0eda, 0x0edb,
+ 0x0ede, 0x0eff,
+ 0x0f48, 0x0f48,
+ 0x0f6d, 0x0f70,
+ 0x0f98, 0x0f98,
+ 0x0fbd, 0x0fbd,
+ 0x0fcd, 0x0fcd,
+ 0x0fdb, 0x0fff,
+ 0x10c6, 0x10cf,
+ 0x10fd, 0x10ff,
+ 0x1249, 0x1249,
+ 0x124e, 0x124f,
+ 0x1257, 0x1257,
+ 0x1259, 0x1259,
+ 0x125e, 0x125f,
+ 0x1289, 0x1289,
+ 0x128e, 0x128f,
+ 0x12b1, 0x12b1,
+ 0x12b6, 0x12b7,
+ 0x12bf, 0x12bf,
+ 0x12c1, 0x12c1,
+ 0x12c6, 0x12c7,
+ 0x12d7, 0x12d7,
+ 0x1311, 0x1311,
+ 0x1316, 0x1317,
+ 0x135b, 0x135c,
+ 0x137d, 0x137f,
+ 0x139a, 0x139f,
+ 0x13f5, 0x13ff,
+ 0x169d, 0x169f,
+ 0x16f1, 0x16ff,
+ 0x170d, 0x170d,
+ 0x1715, 0x171f,
+ 0x1737, 0x173f,
+ 0x1754, 0x175f,
+ 0x176d, 0x176d,
+ 0x1771, 0x1771,
+ 0x1774, 0x177f,
+ 0x17de, 0x17df,
+ 0x17ea, 0x17ef,
+ 0x17fa, 0x17ff,
+ 0x180f, 0x180f,
+ 0x181a, 0x181f,
+ 0x1878, 0x187f,
+ 0x18ab, 0x18af,
+ 0x18f6, 0x18ff,
+ 0x191d, 0x191f,
+ 0x192c, 0x192f,
+ 0x193c, 0x193f,
+ 0x1941, 0x1943,
+ 0x196e, 0x196f,
+ 0x1975, 0x197f,
+ 0x19ac, 0x19af,
+ 0x19ca, 0x19cf,
+ 0x19db, 0x19dd,
+ 0x1a1c, 0x1a1d,
+ 0x1a5f, 0x1a5f,
+ 0x1a7d, 0x1a7e,
+ 0x1a8a, 0x1a8f,
+ 0x1a9a, 0x1a9f,
+ 0x1aae, 0x1aff,
+ 0x1b4c, 0x1b4f,
+ 0x1b7d, 0x1b7f,
+ 0x1bab, 0x1bad,
+ 0x1bba, 0x1bbf,
+ 0x1bf4, 0x1bfb,
+ 0x1c38, 0x1c3a,
+ 0x1c4a, 0x1c4c,
+ 0x1c80, 0x1ccf,
+ 0x1cf3, 0x1cff,
+ 0x1de7, 0x1dfb,
+ 0x1f16, 0x1f17,
+ 0x1f1e, 0x1f1f,
+ 0x1f46, 0x1f47,
+ 0x1f4e, 0x1f4f,
+ 0x1f58, 0x1f58,
+ 0x1f5a, 0x1f5a,
+ 0x1f5c, 0x1f5c,
+ 0x1f5e, 0x1f5e,
+ 0x1f7e, 0x1f7f,
+ 0x1fb5, 0x1fb5,
+ 0x1fc5, 0x1fc5,
+ 0x1fd4, 0x1fd5,
+ 0x1fdc, 0x1fdc,
+ 0x1ff0, 0x1ff1,
+ 0x1ff5, 0x1ff5,
+ 0x1fff, 0x1fff,
+ 0x2065, 0x2069,
+ 0x2072, 0x2073,
+ 0x208f, 0x208f,
+ 0x209d, 0x209f,
+ 0x20ba, 0x20cf,
+ 0x20f1, 0x20ff,
+ 0x218a, 0x218f,
+ 0x23f4, 0x23ff,
+ 0x2427, 0x243f,
+ 0x244b, 0x245f,
+ 0x2700, 0x2700,
+ 0x27cb, 0x27cb,
+ 0x27cd, 0x27cd,
+ 0x2b4d, 0x2b4f,
+ 0x2b5a, 0x2bff,
+ 0x2c2f, 0x2c2f,
+ 0x2c5f, 0x2c5f,
+ 0x2cf2, 0x2cf8,
+ 0x2d26, 0x2d2f,
+ 0x2d66, 0x2d6e,
+ 0x2d71, 0x2d7e,
+ 0x2d97, 0x2d9f,
+ 0x2da7, 0x2da7,
+ 0x2daf, 0x2daf,
+ 0x2db7, 0x2db7,
+ 0x2dbf, 0x2dbf,
+ 0x2dc7, 0x2dc7,
+ 0x2dcf, 0x2dcf,
+ 0x2dd7, 0x2dd7,
+ 0x2ddf, 0x2ddf,
+ 0x2e32, 0x2e7f,
+ 0x2e9a, 0x2e9a,
+ 0x2ef4, 0x2eff,
+ 0x2fd6, 0x2fef,
+ 0x2ffc, 0x2fff,
+ 0x3040, 0x3040,
+ 0x3097, 0x3098,
+ 0x3100, 0x3104,
+ 0x312e, 0x3130,
+ 0x318f, 0x318f,
+ 0x31bb, 0x31bf,
+ 0x31e4, 0x31ef,
+ 0x321f, 0x321f,
+ 0x32ff, 0x32ff,
+ 0x4db6, 0x4dbf,
+ 0x9fcc, 0x9fff,
+ 0xa48d, 0xa48f,
+ 0xa4c7, 0xa4cf,
+ 0xa62c, 0xa63f,
+ 0xa674, 0xa67b,
+ 0xa698, 0xa69f,
+ 0xa6f8, 0xa6ff,
+ 0xa78f, 0xa78f,
+ 0xa792, 0xa79f,
+ 0xa7aa, 0xa7f9,
+ 0xa82c, 0xa82f,
+ 0xa83a, 0xa83f,
+ 0xa878, 0xa87f,
+ 0xa8c5, 0xa8cd,
+ 0xa8da, 0xa8df,
+ 0xa8fc, 0xa8ff,
+ 0xa954, 0xa95e,
+ 0xa97d, 0xa97f,
+ 0xa9ce, 0xa9ce,
+ 0xa9da, 0xa9dd,
+ 0xa9e0, 0xa9ff,
+ 0xaa37, 0xaa3f,
+ 0xaa4e, 0xaa4f,
+ 0xaa5a, 0xaa5b,
+ 0xaa7c, 0xaa7f,
+ 0xaac3, 0xaada,
+ 0xaae0, 0xab00,
+ 0xab07, 0xab08,
+ 0xab0f, 0xab10,
+ 0xab17, 0xab1f,
+ 0xab27, 0xab27,
+ 0xab2f, 0xabbf,
+ 0xabee, 0xabef,
+ 0xabfa, 0xabff,
+ 0xd7a4, 0xd7af,
+ 0xd7c7, 0xd7ca,
+ 0xd7fc, 0xd7ff,
+ 0xfa2e, 0xfa2f,
+ 0xfa6e, 0xfa6f,
+ 0xfada, 0xfaff,
+ 0xfb07, 0xfb12,
+ 0xfb18, 0xfb1c,
+ 0xfb37, 0xfb37,
+ 0xfb3d, 0xfb3d,
+ 0xfb3f, 0xfb3f,
+ 0xfb42, 0xfb42,
+ 0xfb45, 0xfb45,
+ 0xfbc2, 0xfbd2,
+ 0xfd40, 0xfd4f,
+ 0xfd90, 0xfd91,
+ 0xfdc8, 0xfdef,
+ 0xfdfe, 0xfdff,
+ 0xfe1a, 0xfe1f,
+ 0xfe27, 0xfe2f,
+ 0xfe53, 0xfe53,
+ 0xfe67, 0xfe67,
+ 0xfe6c, 0xfe6f,
+ 0xfe75, 0xfe75,
+ 0xfefd, 0xfefe,
+ 0xff00, 0xff00,
+ 0xffbf, 0xffc1,
+ 0xffc8, 0xffc9,
+ 0xffd0, 0xffd1,
+ 0xffd8, 0xffd9,
+ 0xffdd, 0xffdf,
+ 0xffe7, 0xffe7,
+ 0xffef, 0xfff8,
+ 0xfffe, 0xffff,
+ 0x1000c, 0x1000c,
+ 0x10027, 0x10027,
+ 0x1003b, 0x1003b,
+ 0x1003e, 0x1003e,
+ 0x1004e, 0x1004f,
+ 0x1005e, 0x1007f,
+ 0x100fb, 0x100ff,
+ 0x10103, 0x10106,
+ 0x10134, 0x10136,
+ 0x1018b, 0x1018f,
+ 0x1019c, 0x101cf,
+ 0x101fe, 0x1027f,
+ 0x1029d, 0x1029f,
+ 0x102d1, 0x102ff,
+ 0x1031f, 0x1031f,
+ 0x10324, 0x1032f,
+ 0x1034b, 0x1037f,
+ 0x1039e, 0x1039e,
+ 0x103c4, 0x103c7,
+ 0x103d6, 0x103ff,
+ 0x1049e, 0x1049f,
+ 0x104aa, 0x107ff,
+ 0x10806, 0x10807,
+ 0x10809, 0x10809,
+ 0x10836, 0x10836,
+ 0x10839, 0x1083b,
+ 0x1083d, 0x1083e,
+ 0x10856, 0x10856,
+ 0x10860, 0x108ff,
+ 0x1091c, 0x1091e,
+ 0x1093a, 0x1093e,
+ 0x10940, 0x109ff,
+ 0x10a04, 0x10a04,
+ 0x10a07, 0x10a0b,
+ 0x10a14, 0x10a14,
+ 0x10a18, 0x10a18,
+ 0x10a34, 0x10a37,
+ 0x10a3b, 0x10a3e,
+ 0x10a48, 0x10a4f,
+ 0x10a59, 0x10a5f,
+ 0x10a80, 0x10aff,
+ 0x10b36, 0x10b38,
+ 0x10b56, 0x10b57,
+ 0x10b73, 0x10b77,
+ 0x10b80, 0x10bff,
+ 0x10c49, 0x10e5f,
+ 0x10e7f, 0x10fff,
+ 0x1104e, 0x11051,
+ 0x11070, 0x1107f,
+ 0x110c2, 0x11fff,
+ 0x1236f, 0x123ff,
+ 0x12463, 0x1246f,
+ 0x12474, 0x12fff,
+ 0x1342f, 0x167ff,
+ 0x16a39, 0x1afff,
+ 0x1b002, 0x1cfff,
+ 0x1d0f6, 0x1d0ff,
+ 0x1d127, 0x1d128,
+ 0x1d1de, 0x1d1ff,
+ 0x1d246, 0x1d2ff,
+ 0x1d357, 0x1d35f,
+ 0x1d372, 0x1d3ff,
+ 0x1d455, 0x1d455,
+ 0x1d49d, 0x1d49d,
+ 0x1d4a0, 0x1d4a1,
+ 0x1d4a3, 0x1d4a4,
+ 0x1d4a7, 0x1d4a8,
+ 0x1d4ad, 0x1d4ad,
+ 0x1d4ba, 0x1d4ba,
+ 0x1d4bc, 0x1d4bc,
+ 0x1d4c4, 0x1d4c4,
+ 0x1d506, 0x1d506,
+ 0x1d50b, 0x1d50c,
+ 0x1d515, 0x1d515,
+ 0x1d51d, 0x1d51d,
+ 0x1d53a, 0x1d53a,
+ 0x1d53f, 0x1d53f,
+ 0x1d545, 0x1d545,
+ 0x1d547, 0x1d549,
+ 0x1d551, 0x1d551,
+ 0x1d6a6, 0x1d6a7,
+ 0x1d7cc, 0x1d7cd,
+ 0x1d800, 0x1efff,
+ 0x1f02c, 0x1f02f,
+ 0x1f094, 0x1f09f,
+ 0x1f0af, 0x1f0b0,
+ 0x1f0bf, 0x1f0c0,
+ 0x1f0d0, 0x1f0d0,
+ 0x1f0e0, 0x1f0ff,
+ 0x1f10b, 0x1f10f,
+ 0x1f12f, 0x1f12f,
+ 0x1f16a, 0x1f16f,
+ 0x1f19b, 0x1f1e5,
+ 0x1f203, 0x1f20f,
+ 0x1f23b, 0x1f23f,
+ 0x1f249, 0x1f24f,
+ 0x1f252, 0x1f2ff,
+ 0x1f321, 0x1f32f,
+ 0x1f336, 0x1f336,
+ 0x1f37d, 0x1f37f,
+ 0x1f394, 0x1f39f,
+ 0x1f3c5, 0x1f3c5,
+ 0x1f3cb, 0x1f3df,
+ 0x1f3f1, 0x1f3ff,
+ 0x1f43f, 0x1f43f,
+ 0x1f441, 0x1f441,
+ 0x1f4f8, 0x1f4f8,
+ 0x1f4fd, 0x1f4ff,
+ 0x1f53e, 0x1f54f,
+ 0x1f568, 0x1f5fa,
+ 0x1f600, 0x1f600,
+ 0x1f611, 0x1f611,
+ 0x1f615, 0x1f615,
+ 0x1f617, 0x1f617,
+ 0x1f619, 0x1f619,
+ 0x1f61b, 0x1f61b,
+ 0x1f61f, 0x1f61f,
+ 0x1f626, 0x1f627,
+ 0x1f62c, 0x1f62c,
+ 0x1f62e, 0x1f62f,
+ 0x1f634, 0x1f634,
+ 0x1f641, 0x1f644,
+ 0x1f650, 0x1f67f,
+ 0x1f6c6, 0x1f6ff,
+ 0x1f774, 0x1ffff,
+ 0x2a6d7, 0x2a6ff,
+ 0x2b735, 0x2b73f,
+ 0x2b81e, 0x2f7ff,
+ 0x2fa1e, 0xe0000,
+ 0xe0002, 0xe001f,
+ 0xe0080, 0xe00ff,
+ 0xe01f0, 0xeffff,
+ 0xffffe, 0xfffff,
+ 0x10fffe, 0x10ffff,
+}; /* CR_Cn */
+
+/* 'Co': General Category */
+static const OnigCodePoint CR_Co[] = {
+ 3,
+ 0xe000, 0xf8ff,
+ 0xf0000, 0xffffd,
+ 0x100000, 0x10fffd,
+}; /* CR_Co */
+
+/* 'Cs': General Category */
+static const OnigCodePoint CR_Cs[] = {
+ 1,
+ 0xd800, 0xdfff,
+}; /* CR_Cs */
+
+/* 'L': Major Category */
+static const OnigCodePoint CR_L[] = {
+ 435,
+ 0x0041, 0x005a,
+ 0x0061, 0x007a,
+ 0x00aa, 0x00aa,
+ 0x00b5, 0x00b5,
+ 0x00ba, 0x00ba,
+ 0x00c0, 0x00d6,
+ 0x00d8, 0x00f6,
+ 0x00f8, 0x02c1,
+ 0x02c6, 0x02d1,
+ 0x02e0, 0x02e4,
+ 0x02ec, 0x02ec,
+ 0x02ee, 0x02ee,
+ 0x0370, 0x0374,
+ 0x0376, 0x0377,
+ 0x037a, 0x037d,
+ 0x0386, 0x0386,
+ 0x0388, 0x038a,
+ 0x038c, 0x038c,
+ 0x038e, 0x03a1,
+ 0x03a3, 0x03f5,
+ 0x03f7, 0x0481,
+ 0x048a, 0x0527,
+ 0x0531, 0x0556,
+ 0x0559, 0x0559,
+ 0x0561, 0x0587,
+ 0x05d0, 0x05ea,
+ 0x05f0, 0x05f2,
+ 0x0620, 0x064a,
+ 0x066e, 0x066f,
+ 0x0671, 0x06d3,
+ 0x06d5, 0x06d5,
+ 0x06e5, 0x06e6,
+ 0x06ee, 0x06ef,
+ 0x06fa, 0x06fc,
+ 0x06ff, 0x06ff,
+ 0x0710, 0x0710,
+ 0x0712, 0x072f,
+ 0x074d, 0x07a5,
+ 0x07b1, 0x07b1,
+ 0x07ca, 0x07ea,
+ 0x07f4, 0x07f5,
+ 0x07fa, 0x07fa,
+ 0x0800, 0x0815,
+ 0x081a, 0x081a,
+ 0x0824, 0x0824,
+ 0x0828, 0x0828,
+ 0x0840, 0x0858,
+ 0x0904, 0x0939,
+ 0x093d, 0x093d,
+ 0x0950, 0x0950,
+ 0x0958, 0x0961,
+ 0x0971, 0x0977,
+ 0x0979, 0x097f,
+ 0x0985, 0x098c,
+ 0x098f, 0x0990,
+ 0x0993, 0x09a8,
+ 0x09aa, 0x09b0,
+ 0x09b2, 0x09b2,
+ 0x09b6, 0x09b9,
+ 0x09bd, 0x09bd,
+ 0x09ce, 0x09ce,
+ 0x09dc, 0x09dd,
+ 0x09df, 0x09e1,
+ 0x09f0, 0x09f1,
+ 0x0a05, 0x0a0a,
+ 0x0a0f, 0x0a10,
+ 0x0a13, 0x0a28,
+ 0x0a2a, 0x0a30,
+ 0x0a32, 0x0a33,
+ 0x0a35, 0x0a36,
+ 0x0a38, 0x0a39,
+ 0x0a59, 0x0a5c,
+ 0x0a5e, 0x0a5e,
+ 0x0a72, 0x0a74,
+ 0x0a85, 0x0a8d,
+ 0x0a8f, 0x0a91,
+ 0x0a93, 0x0aa8,
+ 0x0aaa, 0x0ab0,
+ 0x0ab2, 0x0ab3,
+ 0x0ab5, 0x0ab9,
+ 0x0abd, 0x0abd,
+ 0x0ad0, 0x0ad0,
+ 0x0ae0, 0x0ae1,
+ 0x0b05, 0x0b0c,
+ 0x0b0f, 0x0b10,
+ 0x0b13, 0x0b28,
+ 0x0b2a, 0x0b30,
+ 0x0b32, 0x0b33,
+ 0x0b35, 0x0b39,
+ 0x0b3d, 0x0b3d,
+ 0x0b5c, 0x0b5d,
+ 0x0b5f, 0x0b61,
+ 0x0b71, 0x0b71,
+ 0x0b83, 0x0b83,
+ 0x0b85, 0x0b8a,
+ 0x0b8e, 0x0b90,
+ 0x0b92, 0x0b95,
+ 0x0b99, 0x0b9a,
+ 0x0b9c, 0x0b9c,
+ 0x0b9e, 0x0b9f,
+ 0x0ba3, 0x0ba4,
+ 0x0ba8, 0x0baa,
+ 0x0bae, 0x0bb9,
+ 0x0bd0, 0x0bd0,
+ 0x0c05, 0x0c0c,
+ 0x0c0e, 0x0c10,
+ 0x0c12, 0x0c28,
+ 0x0c2a, 0x0c33,
+ 0x0c35, 0x0c39,
+ 0x0c3d, 0x0c3d,
+ 0x0c58, 0x0c59,
+ 0x0c60, 0x0c61,
+ 0x0c85, 0x0c8c,
+ 0x0c8e, 0x0c90,
+ 0x0c92, 0x0ca8,
+ 0x0caa, 0x0cb3,
+ 0x0cb5, 0x0cb9,
+ 0x0cbd, 0x0cbd,
+ 0x0cde, 0x0cde,
+ 0x0ce0, 0x0ce1,
+ 0x0cf1, 0x0cf2,
+ 0x0d05, 0x0d0c,
+ 0x0d0e, 0x0d10,
+ 0x0d12, 0x0d3a,
+ 0x0d3d, 0x0d3d,
+ 0x0d4e, 0x0d4e,
+ 0x0d60, 0x0d61,
+ 0x0d7a, 0x0d7f,
+ 0x0d85, 0x0d96,
+ 0x0d9a, 0x0db1,
+ 0x0db3, 0x0dbb,
+ 0x0dbd, 0x0dbd,
+ 0x0dc0, 0x0dc6,
+ 0x0e01, 0x0e30,
+ 0x0e32, 0x0e33,
+ 0x0e40, 0x0e46,
+ 0x0e81, 0x0e82,
+ 0x0e84, 0x0e84,
+ 0x0e87, 0x0e88,
+ 0x0e8a, 0x0e8a,
+ 0x0e8d, 0x0e8d,
+ 0x0e94, 0x0e97,
+ 0x0e99, 0x0e9f,
+ 0x0ea1, 0x0ea3,
+ 0x0ea5, 0x0ea5,
+ 0x0ea7, 0x0ea7,
+ 0x0eaa, 0x0eab,
+ 0x0ead, 0x0eb0,
+ 0x0eb2, 0x0eb3,
+ 0x0ebd, 0x0ebd,
+ 0x0ec0, 0x0ec4,
+ 0x0ec6, 0x0ec6,
+ 0x0edc, 0x0edd,
+ 0x0f00, 0x0f00,
+ 0x0f40, 0x0f47,
+ 0x0f49, 0x0f6c,
+ 0x0f88, 0x0f8c,
+ 0x1000, 0x102a,
+ 0x103f, 0x103f,
+ 0x1050, 0x1055,
+ 0x105a, 0x105d,
+ 0x1061, 0x1061,
+ 0x1065, 0x1066,
+ 0x106e, 0x1070,
+ 0x1075, 0x1081,
+ 0x108e, 0x108e,
+ 0x10a0, 0x10c5,
+ 0x10d0, 0x10fa,
+ 0x10fc, 0x10fc,
+ 0x1100, 0x1248,
+ 0x124a, 0x124d,
+ 0x1250, 0x1256,
+ 0x1258, 0x1258,
+ 0x125a, 0x125d,
+ 0x1260, 0x1288,
+ 0x128a, 0x128d,
+ 0x1290, 0x12b0,
+ 0x12b2, 0x12b5,
+ 0x12b8, 0x12be,
+ 0x12c0, 0x12c0,
+ 0x12c2, 0x12c5,
+ 0x12c8, 0x12d6,
+ 0x12d8, 0x1310,
+ 0x1312, 0x1315,
+ 0x1318, 0x135a,
+ 0x1380, 0x138f,
+ 0x13a0, 0x13f4,
+ 0x1401, 0x166c,
+ 0x166f, 0x167f,
+ 0x1681, 0x169a,
+ 0x16a0, 0x16ea,
+ 0x1700, 0x170c,
+ 0x170e, 0x1711,
+ 0x1720, 0x1731,
+ 0x1740, 0x1751,
+ 0x1760, 0x176c,
+ 0x176e, 0x1770,
+ 0x1780, 0x17b3,
+ 0x17d7, 0x17d7,
+ 0x17dc, 0x17dc,
+ 0x1820, 0x1877,
+ 0x1880, 0x18a8,
+ 0x18aa, 0x18aa,
+ 0x18b0, 0x18f5,
+ 0x1900, 0x191c,
+ 0x1950, 0x196d,
+ 0x1970, 0x1974,
+ 0x1980, 0x19ab,
+ 0x19c1, 0x19c7,
+ 0x1a00, 0x1a16,
+ 0x1a20, 0x1a54,
+ 0x1aa7, 0x1aa7,
+ 0x1b05, 0x1b33,
+ 0x1b45, 0x1b4b,
+ 0x1b83, 0x1ba0,
+ 0x1bae, 0x1baf,
+ 0x1bc0, 0x1be5,
+ 0x1c00, 0x1c23,
+ 0x1c4d, 0x1c4f,
+ 0x1c5a, 0x1c7d,
+ 0x1ce9, 0x1cec,
+ 0x1cee, 0x1cf1,
+ 0x1d00, 0x1dbf,
+ 0x1e00, 0x1f15,
+ 0x1f18, 0x1f1d,
+ 0x1f20, 0x1f45,
+ 0x1f48, 0x1f4d,
+ 0x1f50, 0x1f57,
+ 0x1f59, 0x1f59,
+ 0x1f5b, 0x1f5b,
+ 0x1f5d, 0x1f5d,
+ 0x1f5f, 0x1f7d,
+ 0x1f80, 0x1fb4,
+ 0x1fb6, 0x1fbc,
+ 0x1fbe, 0x1fbe,
+ 0x1fc2, 0x1fc4,
+ 0x1fc6, 0x1fcc,
+ 0x1fd0, 0x1fd3,
+ 0x1fd6, 0x1fdb,
+ 0x1fe0, 0x1fec,
+ 0x1ff2, 0x1ff4,
+ 0x1ff6, 0x1ffc,
+ 0x2071, 0x2071,
+ 0x207f, 0x207f,
+ 0x2090, 0x209c,
+ 0x2102, 0x2102,
+ 0x2107, 0x2107,
+ 0x210a, 0x2113,
+ 0x2115, 0x2115,
+ 0x2119, 0x211d,
+ 0x2124, 0x2124,
+ 0x2126, 0x2126,
+ 0x2128, 0x2128,
+ 0x212a, 0x212d,
+ 0x212f, 0x2139,
+ 0x213c, 0x213f,
+ 0x2145, 0x2149,
+ 0x214e, 0x214e,
+ 0x2183, 0x2184,
+ 0x2c00, 0x2c2e,
+ 0x2c30, 0x2c5e,
+ 0x2c60, 0x2ce4,
+ 0x2ceb, 0x2cee,
+ 0x2d00, 0x2d25,
+ 0x2d30, 0x2d65,
+ 0x2d6f, 0x2d6f,
+ 0x2d80, 0x2d96,
+ 0x2da0, 0x2da6,
+ 0x2da8, 0x2dae,
+ 0x2db0, 0x2db6,
+ 0x2db8, 0x2dbe,
+ 0x2dc0, 0x2dc6,
+ 0x2dc8, 0x2dce,
+ 0x2dd0, 0x2dd6,
+ 0x2dd8, 0x2dde,
+ 0x2e2f, 0x2e2f,
+ 0x3005, 0x3006,
+ 0x3031, 0x3035,
+ 0x303b, 0x303c,
+ 0x3041, 0x3096,
+ 0x309d, 0x309f,
+ 0x30a1, 0x30fa,
+ 0x30fc, 0x30ff,
+ 0x3105, 0x312d,
+ 0x3131, 0x318e,
+ 0x31a0, 0x31ba,
+ 0x31f0, 0x31ff,
+ 0x3400, 0x4db5,
+ 0x4e00, 0x9fcb,
+ 0xa000, 0xa48c,
+ 0xa4d0, 0xa4fd,
+ 0xa500, 0xa60c,
+ 0xa610, 0xa61f,
+ 0xa62a, 0xa62b,
+ 0xa640, 0xa66e,
+ 0xa67f, 0xa697,
+ 0xa6a0, 0xa6e5,
+ 0xa717, 0xa71f,
+ 0xa722, 0xa788,
+ 0xa78b, 0xa78e,
+ 0xa790, 0xa791,
+ 0xa7a0, 0xa7a9,
+ 0xa7fa, 0xa801,
+ 0xa803, 0xa805,
+ 0xa807, 0xa80a,
+ 0xa80c, 0xa822,
+ 0xa840, 0xa873,
+ 0xa882, 0xa8b3,
+ 0xa8f2, 0xa8f7,
+ 0xa8fb, 0xa8fb,
+ 0xa90a, 0xa925,
+ 0xa930, 0xa946,
+ 0xa960, 0xa97c,
+ 0xa984, 0xa9b2,
+ 0xa9cf, 0xa9cf,
+ 0xaa00, 0xaa28,
+ 0xaa40, 0xaa42,
+ 0xaa44, 0xaa4b,
+ 0xaa60, 0xaa76,
+ 0xaa7a, 0xaa7a,
+ 0xaa80, 0xaaaf,
+ 0xaab1, 0xaab1,
+ 0xaab5, 0xaab6,
+ 0xaab9, 0xaabd,
+ 0xaac0, 0xaac0,
+ 0xaac2, 0xaac2,
+ 0xaadb, 0xaadd,
+ 0xab01, 0xab06,
+ 0xab09, 0xab0e,
+ 0xab11, 0xab16,
+ 0xab20, 0xab26,
+ 0xab28, 0xab2e,
+ 0xabc0, 0xabe2,
+ 0xac00, 0xd7a3,
+ 0xd7b0, 0xd7c6,
+ 0xd7cb, 0xd7fb,
+ 0xf900, 0xfa2d,
+ 0xfa30, 0xfa6d,
+ 0xfa70, 0xfad9,
+ 0xfb00, 0xfb06,
+ 0xfb13, 0xfb17,
+ 0xfb1d, 0xfb1d,
+ 0xfb1f, 0xfb28,
+ 0xfb2a, 0xfb36,
+ 0xfb38, 0xfb3c,
+ 0xfb3e, 0xfb3e,
+ 0xfb40, 0xfb41,
+ 0xfb43, 0xfb44,
+ 0xfb46, 0xfbb1,
+ 0xfbd3, 0xfd3d,
+ 0xfd50, 0xfd8f,
+ 0xfd92, 0xfdc7,
+ 0xfdf0, 0xfdfb,
+ 0xfe70, 0xfe74,
+ 0xfe76, 0xfefc,
+ 0xff21, 0xff3a,
+ 0xff41, 0xff5a,
+ 0xff66, 0xffbe,
+ 0xffc2, 0xffc7,
+ 0xffca, 0xffcf,
+ 0xffd2, 0xffd7,
+ 0xffda, 0xffdc,
+ 0x10000, 0x1000b,
+ 0x1000d, 0x10026,
+ 0x10028, 0x1003a,
+ 0x1003c, 0x1003d,
+ 0x1003f, 0x1004d,
+ 0x10050, 0x1005d,
+ 0x10080, 0x100fa,
+ 0x10280, 0x1029c,
+ 0x102a0, 0x102d0,
+ 0x10300, 0x1031e,
+ 0x10330, 0x10340,
+ 0x10342, 0x10349,
+ 0x10380, 0x1039d,
+ 0x103a0, 0x103c3,
+ 0x103c8, 0x103cf,
+ 0x10400, 0x1049d,
+ 0x10800, 0x10805,
+ 0x10808, 0x10808,
+ 0x1080a, 0x10835,
+ 0x10837, 0x10838,
+ 0x1083c, 0x1083c,
+ 0x1083f, 0x10855,
+ 0x10900, 0x10915,
+ 0x10920, 0x10939,
+ 0x10a00, 0x10a00,
+ 0x10a10, 0x10a13,
+ 0x10a15, 0x10a17,
+ 0x10a19, 0x10a33,
+ 0x10a60, 0x10a7c,
+ 0x10b00, 0x10b35,
+ 0x10b40, 0x10b55,
+ 0x10b60, 0x10b72,
+ 0x10c00, 0x10c48,
+ 0x11003, 0x11037,
+ 0x11083, 0x110af,
+ 0x12000, 0x1236e,
+ 0x13000, 0x1342e,
+ 0x16800, 0x16a38,
+ 0x1b000, 0x1b001,
+ 0x1d400, 0x1d454,
+ 0x1d456, 0x1d49c,
+ 0x1d49e, 0x1d49f,
+ 0x1d4a2, 0x1d4a2,
+ 0x1d4a5, 0x1d4a6,
+ 0x1d4a9, 0x1d4ac,
+ 0x1d4ae, 0x1d4b9,
+ 0x1d4bb, 0x1d4bb,
+ 0x1d4bd, 0x1d4c3,
+ 0x1d4c5, 0x1d505,
+ 0x1d507, 0x1d50a,
+ 0x1d50d, 0x1d514,
+ 0x1d516, 0x1d51c,
+ 0x1d51e, 0x1d539,
+ 0x1d53b, 0x1d53e,
+ 0x1d540, 0x1d544,
+ 0x1d546, 0x1d546,
+ 0x1d54a, 0x1d550,
+ 0x1d552, 0x1d6a5,
+ 0x1d6a8, 0x1d6c0,
+ 0x1d6c2, 0x1d6da,
+ 0x1d6dc, 0x1d6fa,
+ 0x1d6fc, 0x1d714,
+ 0x1d716, 0x1d734,
+ 0x1d736, 0x1d74e,
+ 0x1d750, 0x1d76e,
+ 0x1d770, 0x1d788,
+ 0x1d78a, 0x1d7a8,
+ 0x1d7aa, 0x1d7c2,
+ 0x1d7c4, 0x1d7cb,
+ 0x20000, 0x2a6d6,
+ 0x2a700, 0x2b734,
+ 0x2b740, 0x2b81d,
+ 0x2f800, 0x2fa1d,
+}; /* CR_L */
+
+/* 'Ll': General Category */
+static const OnigCodePoint CR_Ll[] = {
+ 609,
+ 0x0061, 0x007a,
+ 0x00aa, 0x00aa,
+ 0x00b5, 0x00b5,
+ 0x00ba, 0x00ba,
+ 0x00df, 0x00f6,
+ 0x00f8, 0x00ff,
+ 0x0101, 0x0101,
+ 0x0103, 0x0103,
+ 0x0105, 0x0105,
+ 0x0107, 0x0107,
+ 0x0109, 0x0109,
+ 0x010b, 0x010b,
+ 0x010d, 0x010d,
+ 0x010f, 0x010f,
+ 0x0111, 0x0111,
+ 0x0113, 0x0113,
+ 0x0115, 0x0115,
+ 0x0117, 0x0117,
+ 0x0119, 0x0119,
+ 0x011b, 0x011b,
+ 0x011d, 0x011d,
+ 0x011f, 0x011f,
+ 0x0121, 0x0121,
+ 0x0123, 0x0123,
+ 0x0125, 0x0125,
+ 0x0127, 0x0127,
+ 0x0129, 0x0129,
+ 0x012b, 0x012b,
+ 0x012d, 0x012d,
+ 0x012f, 0x012f,
+ 0x0131, 0x0131,
+ 0x0133, 0x0133,
+ 0x0135, 0x0135,
+ 0x0137, 0x0138,
+ 0x013a, 0x013a,
+ 0x013c, 0x013c,
+ 0x013e, 0x013e,
+ 0x0140, 0x0140,
+ 0x0142, 0x0142,
+ 0x0144, 0x0144,
+ 0x0146, 0x0146,
+ 0x0148, 0x0149,
+ 0x014b, 0x014b,
+ 0x014d, 0x014d,
+ 0x014f, 0x014f,
+ 0x0151, 0x0151,
+ 0x0153, 0x0153,
+ 0x0155, 0x0155,
+ 0x0157, 0x0157,
+ 0x0159, 0x0159,
+ 0x015b, 0x015b,
+ 0x015d, 0x015d,
+ 0x015f, 0x015f,
+ 0x0161, 0x0161,
+ 0x0163, 0x0163,
+ 0x0165, 0x0165,
+ 0x0167, 0x0167,
+ 0x0169, 0x0169,
+ 0x016b, 0x016b,
+ 0x016d, 0x016d,
+ 0x016f, 0x016f,
+ 0x0171, 0x0171,
+ 0x0173, 0x0173,
+ 0x0175, 0x0175,
+ 0x0177, 0x0177,
+ 0x017a, 0x017a,
+ 0x017c, 0x017c,
+ 0x017e, 0x0180,
+ 0x0183, 0x0183,
+ 0x0185, 0x0185,
+ 0x0188, 0x0188,
+ 0x018c, 0x018d,
+ 0x0192, 0x0192,
+ 0x0195, 0x0195,
+ 0x0199, 0x019b,
+ 0x019e, 0x019e,
+ 0x01a1, 0x01a1,
+ 0x01a3, 0x01a3,
+ 0x01a5, 0x01a5,
+ 0x01a8, 0x01a8,
+ 0x01aa, 0x01ab,
+ 0x01ad, 0x01ad,
+ 0x01b0, 0x01b0,
+ 0x01b4, 0x01b4,
+ 0x01b6, 0x01b6,
+ 0x01b9, 0x01ba,
+ 0x01bd, 0x01bf,
+ 0x01c6, 0x01c6,
+ 0x01c9, 0x01c9,
+ 0x01cc, 0x01cc,
+ 0x01ce, 0x01ce,
+ 0x01d0, 0x01d0,
+ 0x01d2, 0x01d2,
+ 0x01d4, 0x01d4,
+ 0x01d6, 0x01d6,
+ 0x01d8, 0x01d8,
+ 0x01da, 0x01da,
+ 0x01dc, 0x01dd,
+ 0x01df, 0x01df,
+ 0x01e1, 0x01e1,
+ 0x01e3, 0x01e3,
+ 0x01e5, 0x01e5,
+ 0x01e7, 0x01e7,
+ 0x01e9, 0x01e9,
+ 0x01eb, 0x01eb,
+ 0x01ed, 0x01ed,
+ 0x01ef, 0x01f0,
+ 0x01f3, 0x01f3,
+ 0x01f5, 0x01f5,
+ 0x01f9, 0x01f9,
+ 0x01fb, 0x01fb,
+ 0x01fd, 0x01fd,
+ 0x01ff, 0x01ff,
+ 0x0201, 0x0201,
+ 0x0203, 0x0203,
+ 0x0205, 0x0205,
+ 0x0207, 0x0207,
+ 0x0209, 0x0209,
+ 0x020b, 0x020b,
+ 0x020d, 0x020d,
+ 0x020f, 0x020f,
+ 0x0211, 0x0211,
+ 0x0213, 0x0213,
+ 0x0215, 0x0215,
+ 0x0217, 0x0217,
+ 0x0219, 0x0219,
+ 0x021b, 0x021b,
+ 0x021d, 0x021d,
+ 0x021f, 0x021f,
+ 0x0221, 0x0221,
+ 0x0223, 0x0223,
+ 0x0225, 0x0225,
+ 0x0227, 0x0227,
+ 0x0229, 0x0229,
+ 0x022b, 0x022b,
+ 0x022d, 0x022d,
+ 0x022f, 0x022f,
+ 0x0231, 0x0231,
+ 0x0233, 0x0239,
+ 0x023c, 0x023c,
+ 0x023f, 0x0240,
+ 0x0242, 0x0242,
+ 0x0247, 0x0247,
+ 0x0249, 0x0249,
+ 0x024b, 0x024b,
+ 0x024d, 0x024d,
+ 0x024f, 0x0293,
+ 0x0295, 0x02af,
+ 0x0371, 0x0371,
+ 0x0373, 0x0373,
+ 0x0377, 0x0377,
+ 0x037b, 0x037d,
+ 0x0390, 0x0390,
+ 0x03ac, 0x03ce,
+ 0x03d0, 0x03d1,
+ 0x03d5, 0x03d7,
+ 0x03d9, 0x03d9,
+ 0x03db, 0x03db,
+ 0x03dd, 0x03dd,
+ 0x03df, 0x03df,
+ 0x03e1, 0x03e1,
+ 0x03e3, 0x03e3,
+ 0x03e5, 0x03e5,
+ 0x03e7, 0x03e7,
+ 0x03e9, 0x03e9,
+ 0x03eb, 0x03eb,
+ 0x03ed, 0x03ed,
+ 0x03ef, 0x03f3,
+ 0x03f5, 0x03f5,
+ 0x03f8, 0x03f8,
+ 0x03fb, 0x03fc,
+ 0x0430, 0x045f,
+ 0x0461, 0x0461,
+ 0x0463, 0x0463,
+ 0x0465, 0x0465,
+ 0x0467, 0x0467,
+ 0x0469, 0x0469,
+ 0x046b, 0x046b,
+ 0x046d, 0x046d,
+ 0x046f, 0x046f,
+ 0x0471, 0x0471,
+ 0x0473, 0x0473,
+ 0x0475, 0x0475,
+ 0x0477, 0x0477,
+ 0x0479, 0x0479,
+ 0x047b, 0x047b,
+ 0x047d, 0x047d,
+ 0x047f, 0x047f,
+ 0x0481, 0x0481,
+ 0x048b, 0x048b,
+ 0x048d, 0x048d,
+ 0x048f, 0x048f,
+ 0x0491, 0x0491,
+ 0x0493, 0x0493,
+ 0x0495, 0x0495,
+ 0x0497, 0x0497,
+ 0x0499, 0x0499,
+ 0x049b, 0x049b,
+ 0x049d, 0x049d,
+ 0x049f, 0x049f,
+ 0x04a1, 0x04a1,
+ 0x04a3, 0x04a3,
+ 0x04a5, 0x04a5,
+ 0x04a7, 0x04a7,
+ 0x04a9, 0x04a9,
+ 0x04ab, 0x04ab,
+ 0x04ad, 0x04ad,
+ 0x04af, 0x04af,
+ 0x04b1, 0x04b1,
+ 0x04b3, 0x04b3,
+ 0x04b5, 0x04b5,
+ 0x04b7, 0x04b7,
+ 0x04b9, 0x04b9,
+ 0x04bb, 0x04bb,
+ 0x04bd, 0x04bd,
+ 0x04bf, 0x04bf,
+ 0x04c2, 0x04c2,
+ 0x04c4, 0x04c4,
+ 0x04c6, 0x04c6,
+ 0x04c8, 0x04c8,
+ 0x04ca, 0x04ca,
+ 0x04cc, 0x04cc,
+ 0x04ce, 0x04cf,
+ 0x04d1, 0x04d1,
+ 0x04d3, 0x04d3,
+ 0x04d5, 0x04d5,
+ 0x04d7, 0x04d7,
+ 0x04d9, 0x04d9,
+ 0x04db, 0x04db,
+ 0x04dd, 0x04dd,
+ 0x04df, 0x04df,
+ 0x04e1, 0x04e1,
+ 0x04e3, 0x04e3,
+ 0x04e5, 0x04e5,
+ 0x04e7, 0x04e7,
+ 0x04e9, 0x04e9,
+ 0x04eb, 0x04eb,
+ 0x04ed, 0x04ed,
+ 0x04ef, 0x04ef,
+ 0x04f1, 0x04f1,
+ 0x04f3, 0x04f3,
+ 0x04f5, 0x04f5,
+ 0x04f7, 0x04f7,
+ 0x04f9, 0x04f9,
+ 0x04fb, 0x04fb,
+ 0x04fd, 0x04fd,
+ 0x04ff, 0x04ff,
+ 0x0501, 0x0501,
+ 0x0503, 0x0503,
+ 0x0505, 0x0505,
+ 0x0507, 0x0507,
+ 0x0509, 0x0509,
+ 0x050b, 0x050b,
+ 0x050d, 0x050d,
+ 0x050f, 0x050f,
+ 0x0511, 0x0511,
+ 0x0513, 0x0513,
+ 0x0515, 0x0515,
+ 0x0517, 0x0517,
+ 0x0519, 0x0519,
+ 0x051b, 0x051b,
+ 0x051d, 0x051d,
+ 0x051f, 0x051f,
+ 0x0521, 0x0521,
+ 0x0523, 0x0523,
+ 0x0525, 0x0525,
+ 0x0527, 0x0527,
+ 0x0561, 0x0587,
+ 0x1d00, 0x1d2b,
+ 0x1d62, 0x1d77,
+ 0x1d79, 0x1d9a,
+ 0x1e01, 0x1e01,
+ 0x1e03, 0x1e03,
+ 0x1e05, 0x1e05,
+ 0x1e07, 0x1e07,
+ 0x1e09, 0x1e09,
+ 0x1e0b, 0x1e0b,
+ 0x1e0d, 0x1e0d,
+ 0x1e0f, 0x1e0f,
+ 0x1e11, 0x1e11,
+ 0x1e13, 0x1e13,
+ 0x1e15, 0x1e15,
+ 0x1e17, 0x1e17,
+ 0x1e19, 0x1e19,
+ 0x1e1b, 0x1e1b,
+ 0x1e1d, 0x1e1d,
+ 0x1e1f, 0x1e1f,
+ 0x1e21, 0x1e21,
+ 0x1e23, 0x1e23,
+ 0x1e25, 0x1e25,
+ 0x1e27, 0x1e27,
+ 0x1e29, 0x1e29,
+ 0x1e2b, 0x1e2b,
+ 0x1e2d, 0x1e2d,
+ 0x1e2f, 0x1e2f,
+ 0x1e31, 0x1e31,
+ 0x1e33, 0x1e33,
+ 0x1e35, 0x1e35,
+ 0x1e37, 0x1e37,
+ 0x1e39, 0x1e39,
+ 0x1e3b, 0x1e3b,
+ 0x1e3d, 0x1e3d,
+ 0x1e3f, 0x1e3f,
+ 0x1e41, 0x1e41,
+ 0x1e43, 0x1e43,
+ 0x1e45, 0x1e45,
+ 0x1e47, 0x1e47,
+ 0x1e49, 0x1e49,
+ 0x1e4b, 0x1e4b,
+ 0x1e4d, 0x1e4d,
+ 0x1e4f, 0x1e4f,
+ 0x1e51, 0x1e51,
+ 0x1e53, 0x1e53,
+ 0x1e55, 0x1e55,
+ 0x1e57, 0x1e57,
+ 0x1e59, 0x1e59,
+ 0x1e5b, 0x1e5b,
+ 0x1e5d, 0x1e5d,
+ 0x1e5f, 0x1e5f,
+ 0x1e61, 0x1e61,
+ 0x1e63, 0x1e63,
+ 0x1e65, 0x1e65,
+ 0x1e67, 0x1e67,
+ 0x1e69, 0x1e69,
+ 0x1e6b, 0x1e6b,
+ 0x1e6d, 0x1e6d,
+ 0x1e6f, 0x1e6f,
+ 0x1e71, 0x1e71,
+ 0x1e73, 0x1e73,
+ 0x1e75, 0x1e75,
+ 0x1e77, 0x1e77,
+ 0x1e79, 0x1e79,
+ 0x1e7b, 0x1e7b,
+ 0x1e7d, 0x1e7d,
+ 0x1e7f, 0x1e7f,
+ 0x1e81, 0x1e81,
+ 0x1e83, 0x1e83,
+ 0x1e85, 0x1e85,
+ 0x1e87, 0x1e87,
+ 0x1e89, 0x1e89,
+ 0x1e8b, 0x1e8b,
+ 0x1e8d, 0x1e8d,
+ 0x1e8f, 0x1e8f,
+ 0x1e91, 0x1e91,
+ 0x1e93, 0x1e93,
+ 0x1e95, 0x1e9d,
+ 0x1e9f, 0x1e9f,
+ 0x1ea1, 0x1ea1,
+ 0x1ea3, 0x1ea3,
+ 0x1ea5, 0x1ea5,
+ 0x1ea7, 0x1ea7,
+ 0x1ea9, 0x1ea9,
+ 0x1eab, 0x1eab,
+ 0x1ead, 0x1ead,
+ 0x1eaf, 0x1eaf,
+ 0x1eb1, 0x1eb1,
+ 0x1eb3, 0x1eb3,
+ 0x1eb5, 0x1eb5,
+ 0x1eb7, 0x1eb7,
+ 0x1eb9, 0x1eb9,
+ 0x1ebb, 0x1ebb,
+ 0x1ebd, 0x1ebd,
+ 0x1ebf, 0x1ebf,
+ 0x1ec1, 0x1ec1,
+ 0x1ec3, 0x1ec3,
+ 0x1ec5, 0x1ec5,
+ 0x1ec7, 0x1ec7,
+ 0x1ec9, 0x1ec9,
+ 0x1ecb, 0x1ecb,
+ 0x1ecd, 0x1ecd,
+ 0x1ecf, 0x1ecf,
+ 0x1ed1, 0x1ed1,
+ 0x1ed3, 0x1ed3,
+ 0x1ed5, 0x1ed5,
+ 0x1ed7, 0x1ed7,
+ 0x1ed9, 0x1ed9,
+ 0x1edb, 0x1edb,
+ 0x1edd, 0x1edd,
+ 0x1edf, 0x1edf,
+ 0x1ee1, 0x1ee1,
+ 0x1ee3, 0x1ee3,
+ 0x1ee5, 0x1ee5,
+ 0x1ee7, 0x1ee7,
+ 0x1ee9, 0x1ee9,
+ 0x1eeb, 0x1eeb,
+ 0x1eed, 0x1eed,
+ 0x1eef, 0x1eef,
+ 0x1ef1, 0x1ef1,
+ 0x1ef3, 0x1ef3,
+ 0x1ef5, 0x1ef5,
+ 0x1ef7, 0x1ef7,
+ 0x1ef9, 0x1ef9,
+ 0x1efb, 0x1efb,
+ 0x1efd, 0x1efd,
+ 0x1eff, 0x1f07,
+ 0x1f10, 0x1f15,
+ 0x1f20, 0x1f27,
+ 0x1f30, 0x1f37,
+ 0x1f40, 0x1f45,
+ 0x1f50, 0x1f57,
+ 0x1f60, 0x1f67,
+ 0x1f70, 0x1f7d,
+ 0x1f80, 0x1f87,
+ 0x1f90, 0x1f97,
+ 0x1fa0, 0x1fa7,
+ 0x1fb0, 0x1fb4,
+ 0x1fb6, 0x1fb7,
+ 0x1fbe, 0x1fbe,
+ 0x1fc2, 0x1fc4,
+ 0x1fc6, 0x1fc7,
+ 0x1fd0, 0x1fd3,
+ 0x1fd6, 0x1fd7,
+ 0x1fe0, 0x1fe7,
+ 0x1ff2, 0x1ff4,
+ 0x1ff6, 0x1ff7,
+ 0x210a, 0x210a,
+ 0x210e, 0x210f,
+ 0x2113, 0x2113,
+ 0x212f, 0x212f,
+ 0x2134, 0x2134,
+ 0x2139, 0x2139,
+ 0x213c, 0x213d,
+ 0x2146, 0x2149,
+ 0x214e, 0x214e,
+ 0x2184, 0x2184,
+ 0x2c30, 0x2c5e,
+ 0x2c61, 0x2c61,
+ 0x2c65, 0x2c66,
+ 0x2c68, 0x2c68,
+ 0x2c6a, 0x2c6a,
+ 0x2c6c, 0x2c6c,
+ 0x2c71, 0x2c71,
+ 0x2c73, 0x2c74,
+ 0x2c76, 0x2c7c,
+ 0x2c81, 0x2c81,
+ 0x2c83, 0x2c83,
+ 0x2c85, 0x2c85,
+ 0x2c87, 0x2c87,
+ 0x2c89, 0x2c89,
+ 0x2c8b, 0x2c8b,
+ 0x2c8d, 0x2c8d,
+ 0x2c8f, 0x2c8f,
+ 0x2c91, 0x2c91,
+ 0x2c93, 0x2c93,
+ 0x2c95, 0x2c95,
+ 0x2c97, 0x2c97,
+ 0x2c99, 0x2c99,
+ 0x2c9b, 0x2c9b,
+ 0x2c9d, 0x2c9d,
+ 0x2c9f, 0x2c9f,
+ 0x2ca1, 0x2ca1,
+ 0x2ca3, 0x2ca3,
+ 0x2ca5, 0x2ca5,
+ 0x2ca7, 0x2ca7,
+ 0x2ca9, 0x2ca9,
+ 0x2cab, 0x2cab,
+ 0x2cad, 0x2cad,
+ 0x2caf, 0x2caf,
+ 0x2cb1, 0x2cb1,
+ 0x2cb3, 0x2cb3,
+ 0x2cb5, 0x2cb5,
+ 0x2cb7, 0x2cb7,
+ 0x2cb9, 0x2cb9,
+ 0x2cbb, 0x2cbb,
+ 0x2cbd, 0x2cbd,
+ 0x2cbf, 0x2cbf,
+ 0x2cc1, 0x2cc1,
+ 0x2cc3, 0x2cc3,
+ 0x2cc5, 0x2cc5,
+ 0x2cc7, 0x2cc7,
+ 0x2cc9, 0x2cc9,
+ 0x2ccb, 0x2ccb,
+ 0x2ccd, 0x2ccd,
+ 0x2ccf, 0x2ccf,
+ 0x2cd1, 0x2cd1,
+ 0x2cd3, 0x2cd3,
+ 0x2cd5, 0x2cd5,
+ 0x2cd7, 0x2cd7,
+ 0x2cd9, 0x2cd9,
+ 0x2cdb, 0x2cdb,
+ 0x2cdd, 0x2cdd,
+ 0x2cdf, 0x2cdf,
+ 0x2ce1, 0x2ce1,
+ 0x2ce3, 0x2ce4,
+ 0x2cec, 0x2cec,
+ 0x2cee, 0x2cee,
+ 0x2d00, 0x2d25,
+ 0xa641, 0xa641,
+ 0xa643, 0xa643,
+ 0xa645, 0xa645,
+ 0xa647, 0xa647,
+ 0xa649, 0xa649,
+ 0xa64b, 0xa64b,
+ 0xa64d, 0xa64d,
+ 0xa64f, 0xa64f,
+ 0xa651, 0xa651,
+ 0xa653, 0xa653,
+ 0xa655, 0xa655,
+ 0xa657, 0xa657,
+ 0xa659, 0xa659,
+ 0xa65b, 0xa65b,
+ 0xa65d, 0xa65d,
+ 0xa65f, 0xa65f,
+ 0xa661, 0xa661,
+ 0xa663, 0xa663,
+ 0xa665, 0xa665,
+ 0xa667, 0xa667,
+ 0xa669, 0xa669,
+ 0xa66b, 0xa66b,
+ 0xa66d, 0xa66d,
+ 0xa681, 0xa681,
+ 0xa683, 0xa683,
+ 0xa685, 0xa685,
+ 0xa687, 0xa687,
+ 0xa689, 0xa689,
+ 0xa68b, 0xa68b,
+ 0xa68d, 0xa68d,
+ 0xa68f, 0xa68f,
+ 0xa691, 0xa691,
+ 0xa693, 0xa693,
+ 0xa695, 0xa695,
+ 0xa697, 0xa697,
+ 0xa723, 0xa723,
+ 0xa725, 0xa725,
+ 0xa727, 0xa727,
+ 0xa729, 0xa729,
+ 0xa72b, 0xa72b,
+ 0xa72d, 0xa72d,
+ 0xa72f, 0xa731,
+ 0xa733, 0xa733,
+ 0xa735, 0xa735,
+ 0xa737, 0xa737,
+ 0xa739, 0xa739,
+ 0xa73b, 0xa73b,
+ 0xa73d, 0xa73d,
+ 0xa73f, 0xa73f,
+ 0xa741, 0xa741,
+ 0xa743, 0xa743,
+ 0xa745, 0xa745,
+ 0xa747, 0xa747,
+ 0xa749, 0xa749,
+ 0xa74b, 0xa74b,
+ 0xa74d, 0xa74d,
+ 0xa74f, 0xa74f,
+ 0xa751, 0xa751,
+ 0xa753, 0xa753,
+ 0xa755, 0xa755,
+ 0xa757, 0xa757,
+ 0xa759, 0xa759,
+ 0xa75b, 0xa75b,
+ 0xa75d, 0xa75d,
+ 0xa75f, 0xa75f,
+ 0xa761, 0xa761,
+ 0xa763, 0xa763,
+ 0xa765, 0xa765,
+ 0xa767, 0xa767,
+ 0xa769, 0xa769,
+ 0xa76b, 0xa76b,
+ 0xa76d, 0xa76d,
+ 0xa76f, 0xa76f,
+ 0xa771, 0xa778,
+ 0xa77a, 0xa77a,
+ 0xa77c, 0xa77c,
+ 0xa77f, 0xa77f,
+ 0xa781, 0xa781,
+ 0xa783, 0xa783,
+ 0xa785, 0xa785,
+ 0xa787, 0xa787,
+ 0xa78c, 0xa78c,
+ 0xa78e, 0xa78e,
+ 0xa791, 0xa791,
+ 0xa7a1, 0xa7a1,
+ 0xa7a3, 0xa7a3,
+ 0xa7a5, 0xa7a5,
+ 0xa7a7, 0xa7a7,
+ 0xa7a9, 0xa7a9,
+ 0xa7fa, 0xa7fa,
+ 0xfb00, 0xfb06,
+ 0xfb13, 0xfb17,
+ 0xff41, 0xff5a,
+ 0x10428, 0x1044f,
+ 0x1d41a, 0x1d433,
+ 0x1d44e, 0x1d454,
+ 0x1d456, 0x1d467,
+ 0x1d482, 0x1d49b,
+ 0x1d4b6, 0x1d4b9,
+ 0x1d4bb, 0x1d4bb,
+ 0x1d4bd, 0x1d4c3,
+ 0x1d4c5, 0x1d4cf,
+ 0x1d4ea, 0x1d503,
+ 0x1d51e, 0x1d537,
+ 0x1d552, 0x1d56b,
+ 0x1d586, 0x1d59f,
+ 0x1d5ba, 0x1d5d3,
+ 0x1d5ee, 0x1d607,
+ 0x1d622, 0x1d63b,
+ 0x1d656, 0x1d66f,
+ 0x1d68a, 0x1d6a5,
+ 0x1d6c2, 0x1d6da,
+ 0x1d6dc, 0x1d6e1,
+ 0x1d6fc, 0x1d714,
+ 0x1d716, 0x1d71b,
+ 0x1d736, 0x1d74e,
+ 0x1d750, 0x1d755,
+ 0x1d770, 0x1d788,
+ 0x1d78a, 0x1d78f,
+ 0x1d7aa, 0x1d7c2,
+ 0x1d7c4, 0x1d7c9,
+ 0x1d7cb, 0x1d7cb,
+}; /* CR_Ll */
+
+/* 'Lm': General Category */
+static const OnigCodePoint CR_Lm[] = {
+ 49,
+ 0x02b0, 0x02c1,
+ 0x02c6, 0x02d1,
+ 0x02e0, 0x02e4,
+ 0x02ec, 0x02ec,
+ 0x02ee, 0x02ee,
+ 0x0374, 0x0374,
+ 0x037a, 0x037a,
+ 0x0559, 0x0559,
+ 0x0640, 0x0640,
+ 0x06e5, 0x06e6,
+ 0x07f4, 0x07f5,
+ 0x07fa, 0x07fa,
+ 0x081a, 0x081a,
+ 0x0824, 0x0824,
+ 0x0828, 0x0828,
+ 0x0971, 0x0971,
+ 0x0e46, 0x0e46,
+ 0x0ec6, 0x0ec6,
+ 0x10fc, 0x10fc,
+ 0x17d7, 0x17d7,
+ 0x1843, 0x1843,
+ 0x1aa7, 0x1aa7,
+ 0x1c78, 0x1c7d,
+ 0x1d2c, 0x1d61,
+ 0x1d78, 0x1d78,
+ 0x1d9b, 0x1dbf,
+ 0x2071, 0x2071,
+ 0x207f, 0x207f,
+ 0x2090, 0x209c,
+ 0x2c7d, 0x2c7d,
+ 0x2d6f, 0x2d6f,
+ 0x2e2f, 0x2e2f,
+ 0x3005, 0x3005,
+ 0x3031, 0x3035,
+ 0x303b, 0x303b,
+ 0x309d, 0x309e,
+ 0x30fc, 0x30fe,
+ 0xa015, 0xa015,
+ 0xa4f8, 0xa4fd,
+ 0xa60c, 0xa60c,
+ 0xa67f, 0xa67f,
+ 0xa717, 0xa71f,
+ 0xa770, 0xa770,
+ 0xa788, 0xa788,
+ 0xa9cf, 0xa9cf,
+ 0xaa70, 0xaa70,
+ 0xaadd, 0xaadd,
+ 0xff70, 0xff70,
+ 0xff9e, 0xff9f,
+}; /* CR_Lm */
+
+/* 'Lo': General Category */
+static const OnigCodePoint CR_Lo[] = {
+ 323,
+ 0x01bb, 0x01bb,
+ 0x01c0, 0x01c3,
+ 0x0294, 0x0294,
+ 0x05d0, 0x05ea,
+ 0x05f0, 0x05f2,
+ 0x0620, 0x063f,
+ 0x0641, 0x064a,
+ 0x066e, 0x066f,
+ 0x0671, 0x06d3,
+ 0x06d5, 0x06d5,
+ 0x06ee, 0x06ef,
+ 0x06fa, 0x06fc,
+ 0x06ff, 0x06ff,
+ 0x0710, 0x0710,
+ 0x0712, 0x072f,
+ 0x074d, 0x07a5,
+ 0x07b1, 0x07b1,
+ 0x07ca, 0x07ea,
+ 0x0800, 0x0815,
+ 0x0840, 0x0858,
+ 0x0904, 0x0939,
+ 0x093d, 0x093d,
+ 0x0950, 0x0950,
+ 0x0958, 0x0961,
+ 0x0972, 0x0977,
+ 0x0979, 0x097f,
+ 0x0985, 0x098c,
+ 0x098f, 0x0990,
+ 0x0993, 0x09a8,
+ 0x09aa, 0x09b0,
+ 0x09b2, 0x09b2,
+ 0x09b6, 0x09b9,
+ 0x09bd, 0x09bd,
+ 0x09ce, 0x09ce,
+ 0x09dc, 0x09dd,
+ 0x09df, 0x09e1,
+ 0x09f0, 0x09f1,
+ 0x0a05, 0x0a0a,
+ 0x0a0f, 0x0a10,
+ 0x0a13, 0x0a28,
+ 0x0a2a, 0x0a30,
+ 0x0a32, 0x0a33,
+ 0x0a35, 0x0a36,
+ 0x0a38, 0x0a39,
+ 0x0a59, 0x0a5c,
+ 0x0a5e, 0x0a5e,
+ 0x0a72, 0x0a74,
+ 0x0a85, 0x0a8d,
+ 0x0a8f, 0x0a91,
+ 0x0a93, 0x0aa8,
+ 0x0aaa, 0x0ab0,
+ 0x0ab2, 0x0ab3,
+ 0x0ab5, 0x0ab9,
+ 0x0abd, 0x0abd,
+ 0x0ad0, 0x0ad0,
+ 0x0ae0, 0x0ae1,
+ 0x0b05, 0x0b0c,
+ 0x0b0f, 0x0b10,
+ 0x0b13, 0x0b28,
+ 0x0b2a, 0x0b30,
+ 0x0b32, 0x0b33,
+ 0x0b35, 0x0b39,
+ 0x0b3d, 0x0b3d,
+ 0x0b5c, 0x0b5d,
+ 0x0b5f, 0x0b61,
+ 0x0b71, 0x0b71,
+ 0x0b83, 0x0b83,
+ 0x0b85, 0x0b8a,
+ 0x0b8e, 0x0b90,
+ 0x0b92, 0x0b95,
+ 0x0b99, 0x0b9a,
+ 0x0b9c, 0x0b9c,
+ 0x0b9e, 0x0b9f,
+ 0x0ba3, 0x0ba4,
+ 0x0ba8, 0x0baa,
+ 0x0bae, 0x0bb9,
+ 0x0bd0, 0x0bd0,
+ 0x0c05, 0x0c0c,
+ 0x0c0e, 0x0c10,
+ 0x0c12, 0x0c28,
+ 0x0c2a, 0x0c33,
+ 0x0c35, 0x0c39,
+ 0x0c3d, 0x0c3d,
+ 0x0c58, 0x0c59,
+ 0x0c60, 0x0c61,
+ 0x0c85, 0x0c8c,
+ 0x0c8e, 0x0c90,
+ 0x0c92, 0x0ca8,
+ 0x0caa, 0x0cb3,
+ 0x0cb5, 0x0cb9,
+ 0x0cbd, 0x0cbd,
+ 0x0cde, 0x0cde,
+ 0x0ce0, 0x0ce1,
+ 0x0cf1, 0x0cf2,
+ 0x0d05, 0x0d0c,
+ 0x0d0e, 0x0d10,
+ 0x0d12, 0x0d3a,
+ 0x0d3d, 0x0d3d,
+ 0x0d4e, 0x0d4e,
+ 0x0d60, 0x0d61,
+ 0x0d7a, 0x0d7f,
+ 0x0d85, 0x0d96,
+ 0x0d9a, 0x0db1,
+ 0x0db3, 0x0dbb,
+ 0x0dbd, 0x0dbd,
+ 0x0dc0, 0x0dc6,
+ 0x0e01, 0x0e30,
+ 0x0e32, 0x0e33,
+ 0x0e40, 0x0e45,
+ 0x0e81, 0x0e82,
+ 0x0e84, 0x0e84,
+ 0x0e87, 0x0e88,
+ 0x0e8a, 0x0e8a,
+ 0x0e8d, 0x0e8d,
+ 0x0e94, 0x0e97,
+ 0x0e99, 0x0e9f,
+ 0x0ea1, 0x0ea3,
+ 0x0ea5, 0x0ea5,
+ 0x0ea7, 0x0ea7,
+ 0x0eaa, 0x0eab,
+ 0x0ead, 0x0eb0,
+ 0x0eb2, 0x0eb3,
+ 0x0ebd, 0x0ebd,
+ 0x0ec0, 0x0ec4,
+ 0x0edc, 0x0edd,
+ 0x0f00, 0x0f00,
+ 0x0f40, 0x0f47,
+ 0x0f49, 0x0f6c,
+ 0x0f88, 0x0f8c,
+ 0x1000, 0x102a,
+ 0x103f, 0x103f,
+ 0x1050, 0x1055,
+ 0x105a, 0x105d,
+ 0x1061, 0x1061,
+ 0x1065, 0x1066,
+ 0x106e, 0x1070,
+ 0x1075, 0x1081,
+ 0x108e, 0x108e,
+ 0x10d0, 0x10fa,
+ 0x1100, 0x1248,
+ 0x124a, 0x124d,
+ 0x1250, 0x1256,
+ 0x1258, 0x1258,
+ 0x125a, 0x125d,
+ 0x1260, 0x1288,
+ 0x128a, 0x128d,
+ 0x1290, 0x12b0,
+ 0x12b2, 0x12b5,
+ 0x12b8, 0x12be,
+ 0x12c0, 0x12c0,
+ 0x12c2, 0x12c5,
+ 0x12c8, 0x12d6,
+ 0x12d8, 0x1310,
+ 0x1312, 0x1315,
+ 0x1318, 0x135a,
+ 0x1380, 0x138f,
+ 0x13a0, 0x13f4,
+ 0x1401, 0x166c,
+ 0x166f, 0x167f,
+ 0x1681, 0x169a,
+ 0x16a0, 0x16ea,
+ 0x1700, 0x170c,
+ 0x170e, 0x1711,
+ 0x1720, 0x1731,
+ 0x1740, 0x1751,
+ 0x1760, 0x176c,
+ 0x176e, 0x1770,
+ 0x1780, 0x17b3,
+ 0x17dc, 0x17dc,
+ 0x1820, 0x1842,
+ 0x1844, 0x1877,
+ 0x1880, 0x18a8,
+ 0x18aa, 0x18aa,
+ 0x18b0, 0x18f5,
+ 0x1900, 0x191c,
+ 0x1950, 0x196d,
+ 0x1970, 0x1974,
+ 0x1980, 0x19ab,
+ 0x19c1, 0x19c7,
+ 0x1a00, 0x1a16,
+ 0x1a20, 0x1a54,
+ 0x1b05, 0x1b33,
+ 0x1b45, 0x1b4b,
+ 0x1b83, 0x1ba0,
+ 0x1bae, 0x1baf,
+ 0x1bc0, 0x1be5,
+ 0x1c00, 0x1c23,
+ 0x1c4d, 0x1c4f,
+ 0x1c5a, 0x1c77,
+ 0x1ce9, 0x1cec,
+ 0x1cee, 0x1cf1,
+ 0x2135, 0x2138,
+ 0x2d30, 0x2d65,
+ 0x2d80, 0x2d96,
+ 0x2da0, 0x2da6,
+ 0x2da8, 0x2dae,
+ 0x2db0, 0x2db6,
+ 0x2db8, 0x2dbe,
+ 0x2dc0, 0x2dc6,
+ 0x2dc8, 0x2dce,
+ 0x2dd0, 0x2dd6,
+ 0x2dd8, 0x2dde,
+ 0x3006, 0x3006,
+ 0x303c, 0x303c,
+ 0x3041, 0x3096,
+ 0x309f, 0x309f,
+ 0x30a1, 0x30fa,
+ 0x30ff, 0x30ff,
+ 0x3105, 0x312d,
+ 0x3131, 0x318e,
+ 0x31a0, 0x31ba,
+ 0x31f0, 0x31ff,
+ 0x3400, 0x4db5,
+ 0x4e00, 0x9fcb,
+ 0xa000, 0xa014,
+ 0xa016, 0xa48c,
+ 0xa4d0, 0xa4f7,
+ 0xa500, 0xa60b,
+ 0xa610, 0xa61f,
+ 0xa62a, 0xa62b,
+ 0xa66e, 0xa66e,
+ 0xa6a0, 0xa6e5,
+ 0xa7fb, 0xa801,
+ 0xa803, 0xa805,
+ 0xa807, 0xa80a,
+ 0xa80c, 0xa822,
+ 0xa840, 0xa873,
+ 0xa882, 0xa8b3,
+ 0xa8f2, 0xa8f7,
+ 0xa8fb, 0xa8fb,
+ 0xa90a, 0xa925,
+ 0xa930, 0xa946,
+ 0xa960, 0xa97c,
+ 0xa984, 0xa9b2,
+ 0xaa00, 0xaa28,
+ 0xaa40, 0xaa42,
+ 0xaa44, 0xaa4b,
+ 0xaa60, 0xaa6f,
+ 0xaa71, 0xaa76,
+ 0xaa7a, 0xaa7a,
+ 0xaa80, 0xaaaf,
+ 0xaab1, 0xaab1,
+ 0xaab5, 0xaab6,
+ 0xaab9, 0xaabd,
+ 0xaac0, 0xaac0,
+ 0xaac2, 0xaac2,
+ 0xaadb, 0xaadc,
+ 0xab01, 0xab06,
+ 0xab09, 0xab0e,
+ 0xab11, 0xab16,
+ 0xab20, 0xab26,
+ 0xab28, 0xab2e,
+ 0xabc0, 0xabe2,
+ 0xac00, 0xd7a3,
+ 0xd7b0, 0xd7c6,
+ 0xd7cb, 0xd7fb,
+ 0xf900, 0xfa2d,
+ 0xfa30, 0xfa6d,
+ 0xfa70, 0xfad9,
+ 0xfb1d, 0xfb1d,
+ 0xfb1f, 0xfb28,
+ 0xfb2a, 0xfb36,
+ 0xfb38, 0xfb3c,
+ 0xfb3e, 0xfb3e,
+ 0xfb40, 0xfb41,
+ 0xfb43, 0xfb44,
+ 0xfb46, 0xfbb1,
+ 0xfbd3, 0xfd3d,
+ 0xfd50, 0xfd8f,
+ 0xfd92, 0xfdc7,
+ 0xfdf0, 0xfdfb,
+ 0xfe70, 0xfe74,
+ 0xfe76, 0xfefc,
+ 0xff66, 0xff6f,
+ 0xff71, 0xff9d,
+ 0xffa0, 0xffbe,
+ 0xffc2, 0xffc7,
+ 0xffca, 0xffcf,
+ 0xffd2, 0xffd7,
+ 0xffda, 0xffdc,
+ 0x10000, 0x1000b,
+ 0x1000d, 0x10026,
+ 0x10028, 0x1003a,
+ 0x1003c, 0x1003d,
+ 0x1003f, 0x1004d,
+ 0x10050, 0x1005d,
+ 0x10080, 0x100fa,
+ 0x10280, 0x1029c,
+ 0x102a0, 0x102d0,
+ 0x10300, 0x1031e,
+ 0x10330, 0x10340,
+ 0x10342, 0x10349,
+ 0x10380, 0x1039d,
+ 0x103a0, 0x103c3,
+ 0x103c8, 0x103cf,
+ 0x10450, 0x1049d,
+ 0x10800, 0x10805,
+ 0x10808, 0x10808,
+ 0x1080a, 0x10835,
+ 0x10837, 0x10838,
+ 0x1083c, 0x1083c,
+ 0x1083f, 0x10855,
+ 0x10900, 0x10915,
+ 0x10920, 0x10939,
+ 0x10a00, 0x10a00,
+ 0x10a10, 0x10a13,
+ 0x10a15, 0x10a17,
+ 0x10a19, 0x10a33,
+ 0x10a60, 0x10a7c,
+ 0x10b00, 0x10b35,
+ 0x10b40, 0x10b55,
+ 0x10b60, 0x10b72,
+ 0x10c00, 0x10c48,
+ 0x11003, 0x11037,
+ 0x11083, 0x110af,
+ 0x12000, 0x1236e,
+ 0x13000, 0x1342e,
+ 0x16800, 0x16a38,
+ 0x1b000, 0x1b001,
+ 0x20000, 0x2a6d6,
+ 0x2a700, 0x2b734,
+ 0x2b740, 0x2b81d,
+ 0x2f800, 0x2fa1d,
+}; /* CR_Lo */
+
+/* 'Lt': General Category */
+static const OnigCodePoint CR_Lt[] = {
+ 10,
+ 0x01c5, 0x01c5,
+ 0x01c8, 0x01c8,
+ 0x01cb, 0x01cb,
+ 0x01f2, 0x01f2,
+ 0x1f88, 0x1f8f,
+ 0x1f98, 0x1f9f,
+ 0x1fa8, 0x1faf,
+ 0x1fbc, 0x1fbc,
+ 0x1fcc, 0x1fcc,
+ 0x1ffc, 0x1ffc,
+}; /* CR_Lt */
+
+/* 'Lu': General Category */
+static const OnigCodePoint CR_Lu[] = {
+ 603,
+ 0x0041, 0x005a,
+ 0x00c0, 0x00d6,
+ 0x00d8, 0x00de,
+ 0x0100, 0x0100,
+ 0x0102, 0x0102,
+ 0x0104, 0x0104,
+ 0x0106, 0x0106,
+ 0x0108, 0x0108,
+ 0x010a, 0x010a,
+ 0x010c, 0x010c,
+ 0x010e, 0x010e,
+ 0x0110, 0x0110,
+ 0x0112, 0x0112,
+ 0x0114, 0x0114,
+ 0x0116, 0x0116,
+ 0x0118, 0x0118,
+ 0x011a, 0x011a,
+ 0x011c, 0x011c,
+ 0x011e, 0x011e,
+ 0x0120, 0x0120,
+ 0x0122, 0x0122,
+ 0x0124, 0x0124,
+ 0x0126, 0x0126,
+ 0x0128, 0x0128,
+ 0x012a, 0x012a,
+ 0x012c, 0x012c,
+ 0x012e, 0x012e,
+ 0x0130, 0x0130,
+ 0x0132, 0x0132,
+ 0x0134, 0x0134,
+ 0x0136, 0x0136,
+ 0x0139, 0x0139,
+ 0x013b, 0x013b,
+ 0x013d, 0x013d,
+ 0x013f, 0x013f,
+ 0x0141, 0x0141,
+ 0x0143, 0x0143,
+ 0x0145, 0x0145,
+ 0x0147, 0x0147,
+ 0x014a, 0x014a,
+ 0x014c, 0x014c,
+ 0x014e, 0x014e,
+ 0x0150, 0x0150,
+ 0x0152, 0x0152,
+ 0x0154, 0x0154,
+ 0x0156, 0x0156,
+ 0x0158, 0x0158,
+ 0x015a, 0x015a,
+ 0x015c, 0x015c,
+ 0x015e, 0x015e,
+ 0x0160, 0x0160,
+ 0x0162, 0x0162,
+ 0x0164, 0x0164,
+ 0x0166, 0x0166,
+ 0x0168, 0x0168,
+ 0x016a, 0x016a,
+ 0x016c, 0x016c,
+ 0x016e, 0x016e,
+ 0x0170, 0x0170,
+ 0x0172, 0x0172,
+ 0x0174, 0x0174,
+ 0x0176, 0x0176,
+ 0x0178, 0x0179,
+ 0x017b, 0x017b,
+ 0x017d, 0x017d,
+ 0x0181, 0x0182,
+ 0x0184, 0x0184,
+ 0x0186, 0x0187,
+ 0x0189, 0x018b,
+ 0x018e, 0x0191,
+ 0x0193, 0x0194,
+ 0x0196, 0x0198,
+ 0x019c, 0x019d,
+ 0x019f, 0x01a0,
+ 0x01a2, 0x01a2,
+ 0x01a4, 0x01a4,
+ 0x01a6, 0x01a7,
+ 0x01a9, 0x01a9,
+ 0x01ac, 0x01ac,
+ 0x01ae, 0x01af,
+ 0x01b1, 0x01b3,
+ 0x01b5, 0x01b5,
+ 0x01b7, 0x01b8,
+ 0x01bc, 0x01bc,
+ 0x01c4, 0x01c4,
+ 0x01c7, 0x01c7,
+ 0x01ca, 0x01ca,
+ 0x01cd, 0x01cd,
+ 0x01cf, 0x01cf,
+ 0x01d1, 0x01d1,
+ 0x01d3, 0x01d3,
+ 0x01d5, 0x01d5,
+ 0x01d7, 0x01d7,
+ 0x01d9, 0x01d9,
+ 0x01db, 0x01db,
+ 0x01de, 0x01de,
+ 0x01e0, 0x01e0,
+ 0x01e2, 0x01e2,
+ 0x01e4, 0x01e4,
+ 0x01e6, 0x01e6,
+ 0x01e8, 0x01e8,
+ 0x01ea, 0x01ea,
+ 0x01ec, 0x01ec,
+ 0x01ee, 0x01ee,
+ 0x01f1, 0x01f1,
+ 0x01f4, 0x01f4,
+ 0x01f6, 0x01f8,
+ 0x01fa, 0x01fa,
+ 0x01fc, 0x01fc,
+ 0x01fe, 0x01fe,
+ 0x0200, 0x0200,
+ 0x0202, 0x0202,
+ 0x0204, 0x0204,
+ 0x0206, 0x0206,
+ 0x0208, 0x0208,
+ 0x020a, 0x020a,
+ 0x020c, 0x020c,
+ 0x020e, 0x020e,
+ 0x0210, 0x0210,
+ 0x0212, 0x0212,
+ 0x0214, 0x0214,
+ 0x0216, 0x0216,
+ 0x0218, 0x0218,
+ 0x021a, 0x021a,
+ 0x021c, 0x021c,
+ 0x021e, 0x021e,
+ 0x0220, 0x0220,
+ 0x0222, 0x0222,
+ 0x0224, 0x0224,
+ 0x0226, 0x0226,
+ 0x0228, 0x0228,
+ 0x022a, 0x022a,
+ 0x022c, 0x022c,
+ 0x022e, 0x022e,
+ 0x0230, 0x0230,
+ 0x0232, 0x0232,
+ 0x023a, 0x023b,
+ 0x023d, 0x023e,
+ 0x0241, 0x0241,
+ 0x0243, 0x0246,
+ 0x0248, 0x0248,
+ 0x024a, 0x024a,
+ 0x024c, 0x024c,
+ 0x024e, 0x024e,
+ 0x0370, 0x0370,
+ 0x0372, 0x0372,
+ 0x0376, 0x0376,
+ 0x0386, 0x0386,
+ 0x0388, 0x038a,
+ 0x038c, 0x038c,
+ 0x038e, 0x038f,
+ 0x0391, 0x03a1,
+ 0x03a3, 0x03ab,
+ 0x03cf, 0x03cf,
+ 0x03d2, 0x03d4,
+ 0x03d8, 0x03d8,
+ 0x03da, 0x03da,
+ 0x03dc, 0x03dc,
+ 0x03de, 0x03de,
+ 0x03e0, 0x03e0,
+ 0x03e2, 0x03e2,
+ 0x03e4, 0x03e4,
+ 0x03e6, 0x03e6,
+ 0x03e8, 0x03e8,
+ 0x03ea, 0x03ea,
+ 0x03ec, 0x03ec,
+ 0x03ee, 0x03ee,
+ 0x03f4, 0x03f4,
+ 0x03f7, 0x03f7,
+ 0x03f9, 0x03fa,
+ 0x03fd, 0x042f,
+ 0x0460, 0x0460,
+ 0x0462, 0x0462,
+ 0x0464, 0x0464,
+ 0x0466, 0x0466,
+ 0x0468, 0x0468,
+ 0x046a, 0x046a,
+ 0x046c, 0x046c,
+ 0x046e, 0x046e,
+ 0x0470, 0x0470,
+ 0x0472, 0x0472,
+ 0x0474, 0x0474,
+ 0x0476, 0x0476,
+ 0x0478, 0x0478,
+ 0x047a, 0x047a,
+ 0x047c, 0x047c,
+ 0x047e, 0x047e,
+ 0x0480, 0x0480,
+ 0x048a, 0x048a,
+ 0x048c, 0x048c,
+ 0x048e, 0x048e,
+ 0x0490, 0x0490,
+ 0x0492, 0x0492,
+ 0x0494, 0x0494,
+ 0x0496, 0x0496,
+ 0x0498, 0x0498,
+ 0x049a, 0x049a,
+ 0x049c, 0x049c,
+ 0x049e, 0x049e,
+ 0x04a0, 0x04a0,
+ 0x04a2, 0x04a2,
+ 0x04a4, 0x04a4,
+ 0x04a6, 0x04a6,
+ 0x04a8, 0x04a8,
+ 0x04aa, 0x04aa,
+ 0x04ac, 0x04ac,
+ 0x04ae, 0x04ae,
+ 0x04b0, 0x04b0,
+ 0x04b2, 0x04b2,
+ 0x04b4, 0x04b4,
+ 0x04b6, 0x04b6,
+ 0x04b8, 0x04b8,
+ 0x04ba, 0x04ba,
+ 0x04bc, 0x04bc,
+ 0x04be, 0x04be,
+ 0x04c0, 0x04c1,
+ 0x04c3, 0x04c3,
+ 0x04c5, 0x04c5,
+ 0x04c7, 0x04c7,
+ 0x04c9, 0x04c9,
+ 0x04cb, 0x04cb,
+ 0x04cd, 0x04cd,
+ 0x04d0, 0x04d0,
+ 0x04d2, 0x04d2,
+ 0x04d4, 0x04d4,
+ 0x04d6, 0x04d6,
+ 0x04d8, 0x04d8,
+ 0x04da, 0x04da,
+ 0x04dc, 0x04dc,
+ 0x04de, 0x04de,
+ 0x04e0, 0x04e0,
+ 0x04e2, 0x04e2,
+ 0x04e4, 0x04e4,
+ 0x04e6, 0x04e6,
+ 0x04e8, 0x04e8,
+ 0x04ea, 0x04ea,
+ 0x04ec, 0x04ec,
+ 0x04ee, 0x04ee,
+ 0x04f0, 0x04f0,
+ 0x04f2, 0x04f2,
+ 0x04f4, 0x04f4,
+ 0x04f6, 0x04f6,
+ 0x04f8, 0x04f8,
+ 0x04fa, 0x04fa,
+ 0x04fc, 0x04fc,
+ 0x04fe, 0x04fe,
+ 0x0500, 0x0500,
+ 0x0502, 0x0502,
+ 0x0504, 0x0504,
+ 0x0506, 0x0506,
+ 0x0508, 0x0508,
+ 0x050a, 0x050a,
+ 0x050c, 0x050c,
+ 0x050e, 0x050e,
+ 0x0510, 0x0510,
+ 0x0512, 0x0512,
+ 0x0514, 0x0514,
+ 0x0516, 0x0516,
+ 0x0518, 0x0518,
+ 0x051a, 0x051a,
+ 0x051c, 0x051c,
+ 0x051e, 0x051e,
+ 0x0520, 0x0520,
+ 0x0522, 0x0522,
+ 0x0524, 0x0524,
+ 0x0526, 0x0526,
+ 0x0531, 0x0556,
+ 0x10a0, 0x10c5,
+ 0x1e00, 0x1e00,
+ 0x1e02, 0x1e02,
+ 0x1e04, 0x1e04,
+ 0x1e06, 0x1e06,
+ 0x1e08, 0x1e08,
+ 0x1e0a, 0x1e0a,
+ 0x1e0c, 0x1e0c,
+ 0x1e0e, 0x1e0e,
+ 0x1e10, 0x1e10,
+ 0x1e12, 0x1e12,
+ 0x1e14, 0x1e14,
+ 0x1e16, 0x1e16,
+ 0x1e18, 0x1e18,
+ 0x1e1a, 0x1e1a,
+ 0x1e1c, 0x1e1c,
+ 0x1e1e, 0x1e1e,
+ 0x1e20, 0x1e20,
+ 0x1e22, 0x1e22,
+ 0x1e24, 0x1e24,
+ 0x1e26, 0x1e26,
+ 0x1e28, 0x1e28,
+ 0x1e2a, 0x1e2a,
+ 0x1e2c, 0x1e2c,
+ 0x1e2e, 0x1e2e,
+ 0x1e30, 0x1e30,
+ 0x1e32, 0x1e32,
+ 0x1e34, 0x1e34,
+ 0x1e36, 0x1e36,
+ 0x1e38, 0x1e38,
+ 0x1e3a, 0x1e3a,
+ 0x1e3c, 0x1e3c,
+ 0x1e3e, 0x1e3e,
+ 0x1e40, 0x1e40,
+ 0x1e42, 0x1e42,
+ 0x1e44, 0x1e44,
+ 0x1e46, 0x1e46,
+ 0x1e48, 0x1e48,
+ 0x1e4a, 0x1e4a,
+ 0x1e4c, 0x1e4c,
+ 0x1e4e, 0x1e4e,
+ 0x1e50, 0x1e50,
+ 0x1e52, 0x1e52,
+ 0x1e54, 0x1e54,
+ 0x1e56, 0x1e56,
+ 0x1e58, 0x1e58,
+ 0x1e5a, 0x1e5a,
+ 0x1e5c, 0x1e5c,
+ 0x1e5e, 0x1e5e,
+ 0x1e60, 0x1e60,
+ 0x1e62, 0x1e62,
+ 0x1e64, 0x1e64,
+ 0x1e66, 0x1e66,
+ 0x1e68, 0x1e68,
+ 0x1e6a, 0x1e6a,
+ 0x1e6c, 0x1e6c,
+ 0x1e6e, 0x1e6e,
+ 0x1e70, 0x1e70,
+ 0x1e72, 0x1e72,
+ 0x1e74, 0x1e74,
+ 0x1e76, 0x1e76,
+ 0x1e78, 0x1e78,
+ 0x1e7a, 0x1e7a,
+ 0x1e7c, 0x1e7c,
+ 0x1e7e, 0x1e7e,
+ 0x1e80, 0x1e80,
+ 0x1e82, 0x1e82,
+ 0x1e84, 0x1e84,
+ 0x1e86, 0x1e86,
+ 0x1e88, 0x1e88,
+ 0x1e8a, 0x1e8a,
+ 0x1e8c, 0x1e8c,
+ 0x1e8e, 0x1e8e,
+ 0x1e90, 0x1e90,
+ 0x1e92, 0x1e92,
+ 0x1e94, 0x1e94,
+ 0x1e9e, 0x1e9e,
+ 0x1ea0, 0x1ea0,
+ 0x1ea2, 0x1ea2,
+ 0x1ea4, 0x1ea4,
+ 0x1ea6, 0x1ea6,
+ 0x1ea8, 0x1ea8,
+ 0x1eaa, 0x1eaa,
+ 0x1eac, 0x1eac,
+ 0x1eae, 0x1eae,
+ 0x1eb0, 0x1eb0,
+ 0x1eb2, 0x1eb2,
+ 0x1eb4, 0x1eb4,
+ 0x1eb6, 0x1eb6,
+ 0x1eb8, 0x1eb8,
+ 0x1eba, 0x1eba,
+ 0x1ebc, 0x1ebc,
+ 0x1ebe, 0x1ebe,
+ 0x1ec0, 0x1ec0,
+ 0x1ec2, 0x1ec2,
+ 0x1ec4, 0x1ec4,
+ 0x1ec6, 0x1ec6,
+ 0x1ec8, 0x1ec8,
+ 0x1eca, 0x1eca,
+ 0x1ecc, 0x1ecc,
+ 0x1ece, 0x1ece,
+ 0x1ed0, 0x1ed0,
+ 0x1ed2, 0x1ed2,
+ 0x1ed4, 0x1ed4,
+ 0x1ed6, 0x1ed6,
+ 0x1ed8, 0x1ed8,
+ 0x1eda, 0x1eda,
+ 0x1edc, 0x1edc,
+ 0x1ede, 0x1ede,
+ 0x1ee0, 0x1ee0,
+ 0x1ee2, 0x1ee2,
+ 0x1ee4, 0x1ee4,
+ 0x1ee6, 0x1ee6,
+ 0x1ee8, 0x1ee8,
+ 0x1eea, 0x1eea,
+ 0x1eec, 0x1eec,
+ 0x1eee, 0x1eee,
+ 0x1ef0, 0x1ef0,
+ 0x1ef2, 0x1ef2,
+ 0x1ef4, 0x1ef4,
+ 0x1ef6, 0x1ef6,
+ 0x1ef8, 0x1ef8,
+ 0x1efa, 0x1efa,
+ 0x1efc, 0x1efc,
+ 0x1efe, 0x1efe,
+ 0x1f08, 0x1f0f,
+ 0x1f18, 0x1f1d,
+ 0x1f28, 0x1f2f,
+ 0x1f38, 0x1f3f,
+ 0x1f48, 0x1f4d,
+ 0x1f59, 0x1f59,
+ 0x1f5b, 0x1f5b,
+ 0x1f5d, 0x1f5d,
+ 0x1f5f, 0x1f5f,
+ 0x1f68, 0x1f6f,
+ 0x1fb8, 0x1fbb,
+ 0x1fc8, 0x1fcb,
+ 0x1fd8, 0x1fdb,
+ 0x1fe8, 0x1fec,
+ 0x1ff8, 0x1ffb,
+ 0x2102, 0x2102,
+ 0x2107, 0x2107,
+ 0x210b, 0x210d,
+ 0x2110, 0x2112,
+ 0x2115, 0x2115,
+ 0x2119, 0x211d,
+ 0x2124, 0x2124,
+ 0x2126, 0x2126,
+ 0x2128, 0x2128,
+ 0x212a, 0x212d,
+ 0x2130, 0x2133,
+ 0x213e, 0x213f,
+ 0x2145, 0x2145,
+ 0x2183, 0x2183,
+ 0x2c00, 0x2c2e,
+ 0x2c60, 0x2c60,
+ 0x2c62, 0x2c64,
+ 0x2c67, 0x2c67,
+ 0x2c69, 0x2c69,
+ 0x2c6b, 0x2c6b,
+ 0x2c6d, 0x2c70,
+ 0x2c72, 0x2c72,
+ 0x2c75, 0x2c75,
+ 0x2c7e, 0x2c80,
+ 0x2c82, 0x2c82,
+ 0x2c84, 0x2c84,
+ 0x2c86, 0x2c86,
+ 0x2c88, 0x2c88,
+ 0x2c8a, 0x2c8a,
+ 0x2c8c, 0x2c8c,
+ 0x2c8e, 0x2c8e,
+ 0x2c90, 0x2c90,
+ 0x2c92, 0x2c92,
+ 0x2c94, 0x2c94,
+ 0x2c96, 0x2c96,
+ 0x2c98, 0x2c98,
+ 0x2c9a, 0x2c9a,
+ 0x2c9c, 0x2c9c,
+ 0x2c9e, 0x2c9e,
+ 0x2ca0, 0x2ca0,
+ 0x2ca2, 0x2ca2,
+ 0x2ca4, 0x2ca4,
+ 0x2ca6, 0x2ca6,
+ 0x2ca8, 0x2ca8,
+ 0x2caa, 0x2caa,
+ 0x2cac, 0x2cac,
+ 0x2cae, 0x2cae,
+ 0x2cb0, 0x2cb0,
+ 0x2cb2, 0x2cb2,
+ 0x2cb4, 0x2cb4,
+ 0x2cb6, 0x2cb6,
+ 0x2cb8, 0x2cb8,
+ 0x2cba, 0x2cba,
+ 0x2cbc, 0x2cbc,
+ 0x2cbe, 0x2cbe,
+ 0x2cc0, 0x2cc0,
+ 0x2cc2, 0x2cc2,
+ 0x2cc4, 0x2cc4,
+ 0x2cc6, 0x2cc6,
+ 0x2cc8, 0x2cc8,
+ 0x2cca, 0x2cca,
+ 0x2ccc, 0x2ccc,
+ 0x2cce, 0x2cce,
+ 0x2cd0, 0x2cd0,
+ 0x2cd2, 0x2cd2,
+ 0x2cd4, 0x2cd4,
+ 0x2cd6, 0x2cd6,
+ 0x2cd8, 0x2cd8,
+ 0x2cda, 0x2cda,
+ 0x2cdc, 0x2cdc,
+ 0x2cde, 0x2cde,
+ 0x2ce0, 0x2ce0,
+ 0x2ce2, 0x2ce2,
+ 0x2ceb, 0x2ceb,
+ 0x2ced, 0x2ced,
+ 0xa640, 0xa640,
+ 0xa642, 0xa642,
+ 0xa644, 0xa644,
+ 0xa646, 0xa646,
+ 0xa648, 0xa648,
+ 0xa64a, 0xa64a,
+ 0xa64c, 0xa64c,
+ 0xa64e, 0xa64e,
+ 0xa650, 0xa650,
+ 0xa652, 0xa652,
+ 0xa654, 0xa654,
+ 0xa656, 0xa656,
+ 0xa658, 0xa658,
+ 0xa65a, 0xa65a,
+ 0xa65c, 0xa65c,
+ 0xa65e, 0xa65e,
+ 0xa660, 0xa660,
+ 0xa662, 0xa662,
+ 0xa664, 0xa664,
+ 0xa666, 0xa666,
+ 0xa668, 0xa668,
+ 0xa66a, 0xa66a,
+ 0xa66c, 0xa66c,
+ 0xa680, 0xa680,
+ 0xa682, 0xa682,
+ 0xa684, 0xa684,
+ 0xa686, 0xa686,
+ 0xa688, 0xa688,
+ 0xa68a, 0xa68a,
+ 0xa68c, 0xa68c,
+ 0xa68e, 0xa68e,
+ 0xa690, 0xa690,
+ 0xa692, 0xa692,
+ 0xa694, 0xa694,
+ 0xa696, 0xa696,
+ 0xa722, 0xa722,
+ 0xa724, 0xa724,
+ 0xa726, 0xa726,
+ 0xa728, 0xa728,
+ 0xa72a, 0xa72a,
+ 0xa72c, 0xa72c,
+ 0xa72e, 0xa72e,
+ 0xa732, 0xa732,
+ 0xa734, 0xa734,
+ 0xa736, 0xa736,
+ 0xa738, 0xa738,
+ 0xa73a, 0xa73a,
+ 0xa73c, 0xa73c,
+ 0xa73e, 0xa73e,
+ 0xa740, 0xa740,
+ 0xa742, 0xa742,
+ 0xa744, 0xa744,
+ 0xa746, 0xa746,
+ 0xa748, 0xa748,
+ 0xa74a, 0xa74a,
+ 0xa74c, 0xa74c,
+ 0xa74e, 0xa74e,
+ 0xa750, 0xa750,
+ 0xa752, 0xa752,
+ 0xa754, 0xa754,
+ 0xa756, 0xa756,
+ 0xa758, 0xa758,
+ 0xa75a, 0xa75a,
+ 0xa75c, 0xa75c,
+ 0xa75e, 0xa75e,
+ 0xa760, 0xa760,
+ 0xa762, 0xa762,
+ 0xa764, 0xa764,
+ 0xa766, 0xa766,
+ 0xa768, 0xa768,
+ 0xa76a, 0xa76a,
+ 0xa76c, 0xa76c,
+ 0xa76e, 0xa76e,
+ 0xa779, 0xa779,
+ 0xa77b, 0xa77b,
+ 0xa77d, 0xa77e,
+ 0xa780, 0xa780,
+ 0xa782, 0xa782,
+ 0xa784, 0xa784,
+ 0xa786, 0xa786,
+ 0xa78b, 0xa78b,
+ 0xa78d, 0xa78d,
+ 0xa790, 0xa790,
+ 0xa7a0, 0xa7a0,
+ 0xa7a2, 0xa7a2,
+ 0xa7a4, 0xa7a4,
+ 0xa7a6, 0xa7a6,
+ 0xa7a8, 0xa7a8,
+ 0xff21, 0xff3a,
+ 0x10400, 0x10427,
+ 0x1d400, 0x1d419,
+ 0x1d434, 0x1d44d,
+ 0x1d468, 0x1d481,
+ 0x1d49c, 0x1d49c,
+ 0x1d49e, 0x1d49f,
+ 0x1d4a2, 0x1d4a2,
+ 0x1d4a5, 0x1d4a6,
+ 0x1d4a9, 0x1d4ac,
+ 0x1d4ae, 0x1d4b5,
+ 0x1d4d0, 0x1d4e9,
+ 0x1d504, 0x1d505,
+ 0x1d507, 0x1d50a,
+ 0x1d50d, 0x1d514,
+ 0x1d516, 0x1d51c,
+ 0x1d538, 0x1d539,
+ 0x1d53b, 0x1d53e,
+ 0x1d540, 0x1d544,
+ 0x1d546, 0x1d546,
+ 0x1d54a, 0x1d550,
+ 0x1d56c, 0x1d585,
+ 0x1d5a0, 0x1d5b9,
+ 0x1d5d4, 0x1d5ed,
+ 0x1d608, 0x1d621,
+ 0x1d63c, 0x1d655,
+ 0x1d670, 0x1d689,
+ 0x1d6a8, 0x1d6c0,
+ 0x1d6e2, 0x1d6fa,
+ 0x1d71c, 0x1d734,
+ 0x1d756, 0x1d76e,
+ 0x1d790, 0x1d7a8,
+ 0x1d7ca, 0x1d7ca,
+}; /* CR_Lu */
+
+/* 'M': Major Category */
+static const OnigCodePoint CR_M[] = {
+ 193,
+ 0x0300, 0x036f,
+ 0x0483, 0x0489,
+ 0x0591, 0x05bd,
+ 0x05bf, 0x05bf,
+ 0x05c1, 0x05c2,
+ 0x05c4, 0x05c5,
+ 0x05c7, 0x05c7,
+ 0x0610, 0x061a,
+ 0x064b, 0x065f,
+ 0x0670, 0x0670,
+ 0x06d6, 0x06dc,
+ 0x06df, 0x06e4,
+ 0x06e7, 0x06e8,
+ 0x06ea, 0x06ed,
+ 0x0711, 0x0711,
+ 0x0730, 0x074a,
+ 0x07a6, 0x07b0,
+ 0x07eb, 0x07f3,
+ 0x0816, 0x0819,
+ 0x081b, 0x0823,
+ 0x0825, 0x0827,
+ 0x0829, 0x082d,
+ 0x0859, 0x085b,
+ 0x0900, 0x0903,
+ 0x093a, 0x093c,
+ 0x093e, 0x094f,
+ 0x0951, 0x0957,
+ 0x0962, 0x0963,
+ 0x0981, 0x0983,
+ 0x09bc, 0x09bc,
+ 0x09be, 0x09c4,
+ 0x09c7, 0x09c8,
+ 0x09cb, 0x09cd,
+ 0x09d7, 0x09d7,
+ 0x09e2, 0x09e3,
+ 0x0a01, 0x0a03,
+ 0x0a3c, 0x0a3c,
+ 0x0a3e, 0x0a42,
+ 0x0a47, 0x0a48,
+ 0x0a4b, 0x0a4d,
+ 0x0a51, 0x0a51,
+ 0x0a70, 0x0a71,
+ 0x0a75, 0x0a75,
+ 0x0a81, 0x0a83,
+ 0x0abc, 0x0abc,
+ 0x0abe, 0x0ac5,
+ 0x0ac7, 0x0ac9,
+ 0x0acb, 0x0acd,
+ 0x0ae2, 0x0ae3,
+ 0x0b01, 0x0b03,
+ 0x0b3c, 0x0b3c,
+ 0x0b3e, 0x0b44,
+ 0x0b47, 0x0b48,
+ 0x0b4b, 0x0b4d,
+ 0x0b56, 0x0b57,
+ 0x0b62, 0x0b63,
+ 0x0b82, 0x0b82,
+ 0x0bbe, 0x0bc2,
+ 0x0bc6, 0x0bc8,
+ 0x0bca, 0x0bcd,
+ 0x0bd7, 0x0bd7,
+ 0x0c01, 0x0c03,
+ 0x0c3e, 0x0c44,
+ 0x0c46, 0x0c48,
+ 0x0c4a, 0x0c4d,
+ 0x0c55, 0x0c56,
+ 0x0c62, 0x0c63,
+ 0x0c82, 0x0c83,
+ 0x0cbc, 0x0cbc,
+ 0x0cbe, 0x0cc4,
+ 0x0cc6, 0x0cc8,
+ 0x0cca, 0x0ccd,
+ 0x0cd5, 0x0cd6,
+ 0x0ce2, 0x0ce3,
+ 0x0d02, 0x0d03,
+ 0x0d3e, 0x0d44,
+ 0x0d46, 0x0d48,
+ 0x0d4a, 0x0d4d,
+ 0x0d57, 0x0d57,
+ 0x0d62, 0x0d63,
+ 0x0d82, 0x0d83,
+ 0x0dca, 0x0dca,
+ 0x0dcf, 0x0dd4,
+ 0x0dd6, 0x0dd6,
+ 0x0dd8, 0x0ddf,
+ 0x0df2, 0x0df3,
+ 0x0e31, 0x0e31,
+ 0x0e34, 0x0e3a,
+ 0x0e47, 0x0e4e,
+ 0x0eb1, 0x0eb1,
+ 0x0eb4, 0x0eb9,
+ 0x0ebb, 0x0ebc,
+ 0x0ec8, 0x0ecd,
+ 0x0f18, 0x0f19,
+ 0x0f35, 0x0f35,
+ 0x0f37, 0x0f37,
+ 0x0f39, 0x0f39,
+ 0x0f3e, 0x0f3f,
+ 0x0f71, 0x0f84,
+ 0x0f86, 0x0f87,
+ 0x0f8d, 0x0f97,
+ 0x0f99, 0x0fbc,
+ 0x0fc6, 0x0fc6,
+ 0x102b, 0x103e,
+ 0x1056, 0x1059,
+ 0x105e, 0x1060,
+ 0x1062, 0x1064,
+ 0x1067, 0x106d,
+ 0x1071, 0x1074,
+ 0x1082, 0x108d,
+ 0x108f, 0x108f,
+ 0x109a, 0x109d,
+ 0x135d, 0x135f,
+ 0x1712, 0x1714,
+ 0x1732, 0x1734,
+ 0x1752, 0x1753,
+ 0x1772, 0x1773,
+ 0x17b6, 0x17d3,
+ 0x17dd, 0x17dd,
+ 0x180b, 0x180d,
+ 0x18a9, 0x18a9,
+ 0x1920, 0x192b,
+ 0x1930, 0x193b,
+ 0x19b0, 0x19c0,
+ 0x19c8, 0x19c9,
+ 0x1a17, 0x1a1b,
+ 0x1a55, 0x1a5e,
+ 0x1a60, 0x1a7c,
+ 0x1a7f, 0x1a7f,
+ 0x1b00, 0x1b04,
+ 0x1b34, 0x1b44,
+ 0x1b6b, 0x1b73,
+ 0x1b80, 0x1b82,
+ 0x1ba1, 0x1baa,
+ 0x1be6, 0x1bf3,
+ 0x1c24, 0x1c37,
+ 0x1cd0, 0x1cd2,
+ 0x1cd4, 0x1ce8,
+ 0x1ced, 0x1ced,
+ 0x1cf2, 0x1cf2,
+ 0x1dc0, 0x1de6,
+ 0x1dfc, 0x1dff,
+ 0x20d0, 0x20f0,
+ 0x2cef, 0x2cf1,
+ 0x2d7f, 0x2d7f,
+ 0x2de0, 0x2dff,
+ 0x302a, 0x302f,
+ 0x3099, 0x309a,
+ 0xa66f, 0xa672,
+ 0xa67c, 0xa67d,
+ 0xa6f0, 0xa6f1,
+ 0xa802, 0xa802,
+ 0xa806, 0xa806,
+ 0xa80b, 0xa80b,
+ 0xa823, 0xa827,
+ 0xa880, 0xa881,
+ 0xa8b4, 0xa8c4,
+ 0xa8e0, 0xa8f1,
+ 0xa926, 0xa92d,
+ 0xa947, 0xa953,
+ 0xa980, 0xa983,
+ 0xa9b3, 0xa9c0,
+ 0xaa29, 0xaa36,
+ 0xaa43, 0xaa43,
+ 0xaa4c, 0xaa4d,
+ 0xaa7b, 0xaa7b,
+ 0xaab0, 0xaab0,
+ 0xaab2, 0xaab4,
+ 0xaab7, 0xaab8,
+ 0xaabe, 0xaabf,
+ 0xaac1, 0xaac1,
+ 0xabe3, 0xabea,
+ 0xabec, 0xabed,
+ 0xfb1e, 0xfb1e,
+ 0xfe00, 0xfe0f,
+ 0xfe20, 0xfe26,
+ 0x101fd, 0x101fd,
+ 0x10a01, 0x10a03,
+ 0x10a05, 0x10a06,
+ 0x10a0c, 0x10a0f,
+ 0x10a38, 0x10a3a,
+ 0x10a3f, 0x10a3f,
+ 0x11000, 0x11002,
+ 0x11038, 0x11046,
+ 0x11080, 0x11082,
+ 0x110b0, 0x110ba,
+ 0x1d165, 0x1d169,
+ 0x1d16d, 0x1d172,
+ 0x1d17b, 0x1d182,
+ 0x1d185, 0x1d18b,
+ 0x1d1aa, 0x1d1ad,
+ 0x1d242, 0x1d244,
+ 0xe0100, 0xe01ef,
+}; /* CR_M */
+
+/* 'Mc': General Category */
+static const OnigCodePoint CR_Mc[] = {
+ 113,
+ 0x0903, 0x0903,
+ 0x093b, 0x093b,
+ 0x093e, 0x0940,
+ 0x0949, 0x094c,
+ 0x094e, 0x094f,
+ 0x0982, 0x0983,
+ 0x09be, 0x09c0,
+ 0x09c7, 0x09c8,
+ 0x09cb, 0x09cc,
+ 0x09d7, 0x09d7,
+ 0x0a03, 0x0a03,
+ 0x0a3e, 0x0a40,
+ 0x0a83, 0x0a83,
+ 0x0abe, 0x0ac0,
+ 0x0ac9, 0x0ac9,
+ 0x0acb, 0x0acc,
+ 0x0b02, 0x0b03,
+ 0x0b3e, 0x0b3e,
+ 0x0b40, 0x0b40,
+ 0x0b47, 0x0b48,
+ 0x0b4b, 0x0b4c,
+ 0x0b57, 0x0b57,
+ 0x0bbe, 0x0bbf,
+ 0x0bc1, 0x0bc2,
+ 0x0bc6, 0x0bc8,
+ 0x0bca, 0x0bcc,
+ 0x0bd7, 0x0bd7,
+ 0x0c01, 0x0c03,
+ 0x0c41, 0x0c44,
+ 0x0c82, 0x0c83,
+ 0x0cbe, 0x0cbe,
+ 0x0cc0, 0x0cc4,
+ 0x0cc7, 0x0cc8,
+ 0x0cca, 0x0ccb,
+ 0x0cd5, 0x0cd6,
+ 0x0d02, 0x0d03,
+ 0x0d3e, 0x0d40,
+ 0x0d46, 0x0d48,
+ 0x0d4a, 0x0d4c,
+ 0x0d57, 0x0d57,
+ 0x0d82, 0x0d83,
+ 0x0dcf, 0x0dd1,
+ 0x0dd8, 0x0ddf,
+ 0x0df2, 0x0df3,
+ 0x0f3e, 0x0f3f,
+ 0x0f7f, 0x0f7f,
+ 0x102b, 0x102c,
+ 0x1031, 0x1031,
+ 0x1038, 0x1038,
+ 0x103b, 0x103c,
+ 0x1056, 0x1057,
+ 0x1062, 0x1064,
+ 0x1067, 0x106d,
+ 0x1083, 0x1084,
+ 0x1087, 0x108c,
+ 0x108f, 0x108f,
+ 0x109a, 0x109c,
+ 0x17b6, 0x17b6,
+ 0x17be, 0x17c5,
+ 0x17c7, 0x17c8,
+ 0x1923, 0x1926,
+ 0x1929, 0x192b,
+ 0x1930, 0x1931,
+ 0x1933, 0x1938,
+ 0x19b0, 0x19c0,
+ 0x19c8, 0x19c9,
+ 0x1a19, 0x1a1b,
+ 0x1a55, 0x1a55,
+ 0x1a57, 0x1a57,
+ 0x1a61, 0x1a61,
+ 0x1a63, 0x1a64,
+ 0x1a6d, 0x1a72,
+ 0x1b04, 0x1b04,
+ 0x1b35, 0x1b35,
+ 0x1b3b, 0x1b3b,
+ 0x1b3d, 0x1b41,
+ 0x1b43, 0x1b44,
+ 0x1b82, 0x1b82,
+ 0x1ba1, 0x1ba1,
+ 0x1ba6, 0x1ba7,
+ 0x1baa, 0x1baa,
+ 0x1be7, 0x1be7,
+ 0x1bea, 0x1bec,
+ 0x1bee, 0x1bee,
+ 0x1bf2, 0x1bf3,
+ 0x1c24, 0x1c2b,
+ 0x1c34, 0x1c35,
+ 0x1ce1, 0x1ce1,
+ 0x1cf2, 0x1cf2,
+ 0xa823, 0xa824,
+ 0xa827, 0xa827,
+ 0xa880, 0xa881,
+ 0xa8b4, 0xa8c3,
+ 0xa952, 0xa953,
+ 0xa983, 0xa983,
+ 0xa9b4, 0xa9b5,
+ 0xa9ba, 0xa9bb,
+ 0xa9bd, 0xa9c0,
+ 0xaa2f, 0xaa30,
+ 0xaa33, 0xaa34,
+ 0xaa4d, 0xaa4d,
+ 0xaa7b, 0xaa7b,
+ 0xabe3, 0xabe4,
+ 0xabe6, 0xabe7,
+ 0xabe9, 0xabea,
+ 0xabec, 0xabec,
+ 0x11000, 0x11000,
+ 0x11002, 0x11002,
+ 0x11082, 0x11082,
+ 0x110b0, 0x110b2,
+ 0x110b7, 0x110b8,
+ 0x1d165, 0x1d166,
+ 0x1d16d, 0x1d172,
+}; /* CR_Mc */
+
+/* 'Me': General Category */
+static const OnigCodePoint CR_Me[] = {
+ 4,
+ 0x0488, 0x0489,
+ 0x20dd, 0x20e0,
+ 0x20e2, 0x20e4,
+ 0xa670, 0xa672,
+}; /* CR_Me */
+
+/* 'Mn': General Category */
+static const OnigCodePoint CR_Mn[] = {
+ 203,
+ 0x0300, 0x036f,
+ 0x0483, 0x0487,
+ 0x0591, 0x05bd,
+ 0x05bf, 0x05bf,
+ 0x05c1, 0x05c2,
+ 0x05c4, 0x05c5,
+ 0x05c7, 0x05c7,
+ 0x0610, 0x061a,
+ 0x064b, 0x065f,
+ 0x0670, 0x0670,
+ 0x06d6, 0x06dc,
+ 0x06df, 0x06e4,
+ 0x06e7, 0x06e8,
+ 0x06ea, 0x06ed,
+ 0x0711, 0x0711,
+ 0x0730, 0x074a,
+ 0x07a6, 0x07b0,
+ 0x07eb, 0x07f3,
+ 0x0816, 0x0819,
+ 0x081b, 0x0823,
+ 0x0825, 0x0827,
+ 0x0829, 0x082d,
+ 0x0859, 0x085b,
+ 0x0900, 0x0902,
+ 0x093a, 0x093a,
+ 0x093c, 0x093c,
+ 0x0941, 0x0948,
+ 0x094d, 0x094d,
+ 0x0951, 0x0957,
+ 0x0962, 0x0963,
+ 0x0981, 0x0981,
+ 0x09bc, 0x09bc,
+ 0x09c1, 0x09c4,
+ 0x09cd, 0x09cd,
+ 0x09e2, 0x09e3,
+ 0x0a01, 0x0a02,
+ 0x0a3c, 0x0a3c,
+ 0x0a41, 0x0a42,
+ 0x0a47, 0x0a48,
+ 0x0a4b, 0x0a4d,
+ 0x0a51, 0x0a51,
+ 0x0a70, 0x0a71,
+ 0x0a75, 0x0a75,
+ 0x0a81, 0x0a82,
+ 0x0abc, 0x0abc,
+ 0x0ac1, 0x0ac5,
+ 0x0ac7, 0x0ac8,
+ 0x0acd, 0x0acd,
+ 0x0ae2, 0x0ae3,
+ 0x0b01, 0x0b01,
+ 0x0b3c, 0x0b3c,
+ 0x0b3f, 0x0b3f,
+ 0x0b41, 0x0b44,
+ 0x0b4d, 0x0b4d,
+ 0x0b56, 0x0b56,
+ 0x0b62, 0x0b63,
+ 0x0b82, 0x0b82,
+ 0x0bc0, 0x0bc0,
+ 0x0bcd, 0x0bcd,
+ 0x0c3e, 0x0c40,
+ 0x0c46, 0x0c48,
+ 0x0c4a, 0x0c4d,
+ 0x0c55, 0x0c56,
+ 0x0c62, 0x0c63,
+ 0x0cbc, 0x0cbc,
+ 0x0cbf, 0x0cbf,
+ 0x0cc6, 0x0cc6,
+ 0x0ccc, 0x0ccd,
+ 0x0ce2, 0x0ce3,
+ 0x0d41, 0x0d44,
+ 0x0d4d, 0x0d4d,
+ 0x0d62, 0x0d63,
+ 0x0dca, 0x0dca,
+ 0x0dd2, 0x0dd4,
+ 0x0dd6, 0x0dd6,
+ 0x0e31, 0x0e31,
+ 0x0e34, 0x0e3a,
+ 0x0e47, 0x0e4e,
+ 0x0eb1, 0x0eb1,
+ 0x0eb4, 0x0eb9,
+ 0x0ebb, 0x0ebc,
+ 0x0ec8, 0x0ecd,
+ 0x0f18, 0x0f19,
+ 0x0f35, 0x0f35,
+ 0x0f37, 0x0f37,
+ 0x0f39, 0x0f39,
+ 0x0f71, 0x0f7e,
+ 0x0f80, 0x0f84,
+ 0x0f86, 0x0f87,
+ 0x0f8d, 0x0f97,
+ 0x0f99, 0x0fbc,
+ 0x0fc6, 0x0fc6,
+ 0x102d, 0x1030,
+ 0x1032, 0x1037,
+ 0x1039, 0x103a,
+ 0x103d, 0x103e,
+ 0x1058, 0x1059,
+ 0x105e, 0x1060,
+ 0x1071, 0x1074,
+ 0x1082, 0x1082,
+ 0x1085, 0x1086,
+ 0x108d, 0x108d,
+ 0x109d, 0x109d,
+ 0x135d, 0x135f,
+ 0x1712, 0x1714,
+ 0x1732, 0x1734,
+ 0x1752, 0x1753,
+ 0x1772, 0x1773,
+ 0x17b7, 0x17bd,
+ 0x17c6, 0x17c6,
+ 0x17c9, 0x17d3,
+ 0x17dd, 0x17dd,
+ 0x180b, 0x180d,
+ 0x18a9, 0x18a9,
+ 0x1920, 0x1922,
+ 0x1927, 0x1928,
+ 0x1932, 0x1932,
+ 0x1939, 0x193b,
+ 0x1a17, 0x1a18,
+ 0x1a56, 0x1a56,
+ 0x1a58, 0x1a5e,
+ 0x1a60, 0x1a60,
+ 0x1a62, 0x1a62,
+ 0x1a65, 0x1a6c,
+ 0x1a73, 0x1a7c,
+ 0x1a7f, 0x1a7f,
+ 0x1b00, 0x1b03,
+ 0x1b34, 0x1b34,
+ 0x1b36, 0x1b3a,
+ 0x1b3c, 0x1b3c,
+ 0x1b42, 0x1b42,
+ 0x1b6b, 0x1b73,
+ 0x1b80, 0x1b81,
+ 0x1ba2, 0x1ba5,
+ 0x1ba8, 0x1ba9,
+ 0x1be6, 0x1be6,
+ 0x1be8, 0x1be9,
+ 0x1bed, 0x1bed,
+ 0x1bef, 0x1bf1,
+ 0x1c2c, 0x1c33,
+ 0x1c36, 0x1c37,
+ 0x1cd0, 0x1cd2,
+ 0x1cd4, 0x1ce0,
+ 0x1ce2, 0x1ce8,
+ 0x1ced, 0x1ced,
+ 0x1dc0, 0x1de6,
+ 0x1dfc, 0x1dff,
+ 0x20d0, 0x20dc,
+ 0x20e1, 0x20e1,
+ 0x20e5, 0x20f0,
+ 0x2cef, 0x2cf1,
+ 0x2d7f, 0x2d7f,
+ 0x2de0, 0x2dff,
+ 0x302a, 0x302f,
+ 0x3099, 0x309a,
+ 0xa66f, 0xa66f,
+ 0xa67c, 0xa67d,
+ 0xa6f0, 0xa6f1,
+ 0xa802, 0xa802,
+ 0xa806, 0xa806,
+ 0xa80b, 0xa80b,
+ 0xa825, 0xa826,
+ 0xa8c4, 0xa8c4,
+ 0xa8e0, 0xa8f1,
+ 0xa926, 0xa92d,
+ 0xa947, 0xa951,
+ 0xa980, 0xa982,
+ 0xa9b3, 0xa9b3,
+ 0xa9b6, 0xa9b9,
+ 0xa9bc, 0xa9bc,
+ 0xaa29, 0xaa2e,
+ 0xaa31, 0xaa32,
+ 0xaa35, 0xaa36,
+ 0xaa43, 0xaa43,
+ 0xaa4c, 0xaa4c,
+ 0xaab0, 0xaab0,
+ 0xaab2, 0xaab4,
+ 0xaab7, 0xaab8,
+ 0xaabe, 0xaabf,
+ 0xaac1, 0xaac1,
+ 0xabe5, 0xabe5,
+ 0xabe8, 0xabe8,
+ 0xabed, 0xabed,
+ 0xfb1e, 0xfb1e,
+ 0xfe00, 0xfe0f,
+ 0xfe20, 0xfe26,
+ 0x101fd, 0x101fd,
+ 0x10a01, 0x10a03,
+ 0x10a05, 0x10a06,
+ 0x10a0c, 0x10a0f,
+ 0x10a38, 0x10a3a,
+ 0x10a3f, 0x10a3f,
+ 0x11001, 0x11001,
+ 0x11038, 0x11046,
+ 0x11080, 0x11081,
+ 0x110b3, 0x110b6,
+ 0x110b9, 0x110ba,
+ 0x1d167, 0x1d169,
+ 0x1d17b, 0x1d182,
+ 0x1d185, 0x1d18b,
+ 0x1d1aa, 0x1d1ad,
+ 0x1d242, 0x1d244,
+ 0xe0100, 0xe01ef,
+}; /* CR_Mn */
+
+/* 'N': Major Category */
+static const OnigCodePoint CR_N[] = {
+ 83,
+ 0x0030, 0x0039,
+ 0x00b2, 0x00b3,
+ 0x00b9, 0x00b9,
+ 0x00bc, 0x00be,
+ 0x0660, 0x0669,
+ 0x06f0, 0x06f9,
+ 0x07c0, 0x07c9,
+ 0x0966, 0x096f,
+ 0x09e6, 0x09ef,
+ 0x09f4, 0x09f9,
+ 0x0a66, 0x0a6f,
+ 0x0ae6, 0x0aef,
+ 0x0b66, 0x0b6f,
+ 0x0b72, 0x0b77,
+ 0x0be6, 0x0bf2,
+ 0x0c66, 0x0c6f,
+ 0x0c78, 0x0c7e,
+ 0x0ce6, 0x0cef,
+ 0x0d66, 0x0d75,
+ 0x0e50, 0x0e59,
+ 0x0ed0, 0x0ed9,
+ 0x0f20, 0x0f33,
+ 0x1040, 0x1049,
+ 0x1090, 0x1099,
+ 0x1369, 0x137c,
+ 0x16ee, 0x16f0,
+ 0x17e0, 0x17e9,
+ 0x17f0, 0x17f9,
+ 0x1810, 0x1819,
+ 0x1946, 0x194f,
+ 0x19d0, 0x19da,
+ 0x1a80, 0x1a89,
+ 0x1a90, 0x1a99,
+ 0x1b50, 0x1b59,
+ 0x1bb0, 0x1bb9,
+ 0x1c40, 0x1c49,
+ 0x1c50, 0x1c59,
+ 0x2070, 0x2070,
+ 0x2074, 0x2079,
+ 0x2080, 0x2089,
+ 0x2150, 0x2182,
+ 0x2185, 0x2189,
+ 0x2460, 0x249b,
+ 0x24ea, 0x24ff,
+ 0x2776, 0x2793,
+ 0x2cfd, 0x2cfd,
+ 0x3007, 0x3007,
+ 0x3021, 0x3029,
+ 0x3038, 0x303a,
+ 0x3192, 0x3195,
+ 0x3220, 0x3229,
+ 0x3251, 0x325f,
+ 0x3280, 0x3289,
+ 0x32b1, 0x32bf,
+ 0xa620, 0xa629,
+ 0xa6e6, 0xa6ef,
+ 0xa830, 0xa835,
+ 0xa8d0, 0xa8d9,
+ 0xa900, 0xa909,
+ 0xa9d0, 0xa9d9,
+ 0xaa50, 0xaa59,
+ 0xabf0, 0xabf9,
+ 0xff10, 0xff19,
+ 0x10107, 0x10133,
+ 0x10140, 0x10178,
+ 0x1018a, 0x1018a,
+ 0x10320, 0x10323,
+ 0x10341, 0x10341,
+ 0x1034a, 0x1034a,
+ 0x103d1, 0x103d5,
+ 0x104a0, 0x104a9,
+ 0x10858, 0x1085f,
+ 0x10916, 0x1091b,
+ 0x10a40, 0x10a47,
+ 0x10a7d, 0x10a7e,
+ 0x10b58, 0x10b5f,
+ 0x10b78, 0x10b7f,
+ 0x10e60, 0x10e7e,
+ 0x11052, 0x1106f,
+ 0x12400, 0x12462,
+ 0x1d360, 0x1d371,
+ 0x1d7ce, 0x1d7ff,
+ 0x1f100, 0x1f10a,
+}; /* CR_N */
+
+/* 'Nd': General Category */
+static const OnigCodePoint CR_Nd[] = {
+ 38,
+ 0x0030, 0x0039,
+ 0x0660, 0x0669,
+ 0x06f0, 0x06f9,
+ 0x07c0, 0x07c9,
+ 0x0966, 0x096f,
+ 0x09e6, 0x09ef,
+ 0x0a66, 0x0a6f,
+ 0x0ae6, 0x0aef,
+ 0x0b66, 0x0b6f,
+ 0x0be6, 0x0bef,
+ 0x0c66, 0x0c6f,
+ 0x0ce6, 0x0cef,
+ 0x0d66, 0x0d6f,
+ 0x0e50, 0x0e59,
+ 0x0ed0, 0x0ed9,
+ 0x0f20, 0x0f29,
+ 0x1040, 0x1049,
+ 0x1090, 0x1099,
+ 0x17e0, 0x17e9,
+ 0x1810, 0x1819,
+ 0x1946, 0x194f,
+ 0x19d0, 0x19d9,
+ 0x1a80, 0x1a89,
+ 0x1a90, 0x1a99,
+ 0x1b50, 0x1b59,
+ 0x1bb0, 0x1bb9,
+ 0x1c40, 0x1c49,
+ 0x1c50, 0x1c59,
+ 0xa620, 0xa629,
+ 0xa8d0, 0xa8d9,
+ 0xa900, 0xa909,
+ 0xa9d0, 0xa9d9,
+ 0xaa50, 0xaa59,
+ 0xabf0, 0xabf9,
+ 0xff10, 0xff19,
+ 0x104a0, 0x104a9,
+ 0x11066, 0x1106f,
+ 0x1d7ce, 0x1d7ff,
+}; /* CR_Nd */
+
+/* 'Nl': General Category */
+static const OnigCodePoint CR_Nl[] = {
+ 12,
+ 0x16ee, 0x16f0,
+ 0x2160, 0x2182,
+ 0x2185, 0x2188,
+ 0x3007, 0x3007,
+ 0x3021, 0x3029,
+ 0x3038, 0x303a,
+ 0xa6e6, 0xa6ef,
+ 0x10140, 0x10174,
+ 0x10341, 0x10341,
+ 0x1034a, 0x1034a,
+ 0x103d1, 0x103d5,
+ 0x12400, 0x12462,
+}; /* CR_Nl */
+
+/* 'No': General Category */
+static const OnigCodePoint CR_No[] = {
+ 41,
+ 0x00b2, 0x00b3,
+ 0x00b9, 0x00b9,
+ 0x00bc, 0x00be,
+ 0x09f4, 0x09f9,
+ 0x0b72, 0x0b77,
+ 0x0bf0, 0x0bf2,
+ 0x0c78, 0x0c7e,
+ 0x0d70, 0x0d75,
+ 0x0f2a, 0x0f33,
+ 0x1369, 0x137c,
+ 0x17f0, 0x17f9,
+ 0x19da, 0x19da,
+ 0x2070, 0x2070,
+ 0x2074, 0x2079,
+ 0x2080, 0x2089,
+ 0x2150, 0x215f,
+ 0x2189, 0x2189,
+ 0x2460, 0x249b,
+ 0x24ea, 0x24ff,
+ 0x2776, 0x2793,
+ 0x2cfd, 0x2cfd,
+ 0x3192, 0x3195,
+ 0x3220, 0x3229,
+ 0x3251, 0x325f,
+ 0x3280, 0x3289,
+ 0x32b1, 0x32bf,
+ 0xa830, 0xa835,
+ 0x10107, 0x10133,
+ 0x10175, 0x10178,
+ 0x1018a, 0x1018a,
+ 0x10320, 0x10323,
+ 0x10858, 0x1085f,
+ 0x10916, 0x1091b,
+ 0x10a40, 0x10a47,
+ 0x10a7d, 0x10a7e,
+ 0x10b58, 0x10b5f,
+ 0x10b78, 0x10b7f,
+ 0x10e60, 0x10e7e,
+ 0x11052, 0x11065,
+ 0x1d360, 0x1d371,
+ 0x1f100, 0x1f10a,
+}; /* CR_No */
+
+/* 'P': Major Category */
+static const OnigCodePoint CR_P[] = {
+ 133,
+ 0x0021, 0x0023,
+ 0x0025, 0x002a,
+ 0x002c, 0x002f,
+ 0x003a, 0x003b,
+ 0x003f, 0x0040,
+ 0x005b, 0x005d,
+ 0x005f, 0x005f,
+ 0x007b, 0x007b,
+ 0x007d, 0x007d,
+ 0x00a1, 0x00a1,
+ 0x00ab, 0x00ab,
+ 0x00b7, 0x00b7,
+ 0x00bb, 0x00bb,
+ 0x00bf, 0x00bf,
+ 0x037e, 0x037e,
+ 0x0387, 0x0387,
+ 0x055a, 0x055f,
+ 0x0589, 0x058a,
+ 0x05be, 0x05be,
+ 0x05c0, 0x05c0,
+ 0x05c3, 0x05c3,
+ 0x05c6, 0x05c6,
+ 0x05f3, 0x05f4,
+ 0x0609, 0x060a,
+ 0x060c, 0x060d,
+ 0x061b, 0x061b,
+ 0x061e, 0x061f,
+ 0x066a, 0x066d,
+ 0x06d4, 0x06d4,
+ 0x0700, 0x070d,
+ 0x07f7, 0x07f9,
+ 0x0830, 0x083e,
+ 0x085e, 0x085e,
+ 0x0964, 0x0965,
+ 0x0970, 0x0970,
+ 0x0df4, 0x0df4,
+ 0x0e4f, 0x0e4f,
+ 0x0e5a, 0x0e5b,
+ 0x0f04, 0x0f12,
+ 0x0f3a, 0x0f3d,
+ 0x0f85, 0x0f85,
+ 0x0fd0, 0x0fd4,
+ 0x0fd9, 0x0fda,
+ 0x104a, 0x104f,
+ 0x10fb, 0x10fb,
+ 0x1361, 0x1368,
+ 0x1400, 0x1400,
+ 0x166d, 0x166e,
+ 0x169b, 0x169c,
+ 0x16eb, 0x16ed,
+ 0x1735, 0x1736,
+ 0x17d4, 0x17d6,
+ 0x17d8, 0x17da,
+ 0x1800, 0x180a,
+ 0x1944, 0x1945,
+ 0x1a1e, 0x1a1f,
+ 0x1aa0, 0x1aa6,
+ 0x1aa8, 0x1aad,
+ 0x1b5a, 0x1b60,
+ 0x1bfc, 0x1bff,
+ 0x1c3b, 0x1c3f,
+ 0x1c7e, 0x1c7f,
+ 0x1cd3, 0x1cd3,
+ 0x2010, 0x2027,
+ 0x2030, 0x2043,
+ 0x2045, 0x2051,
+ 0x2053, 0x205e,
+ 0x207d, 0x207e,
+ 0x208d, 0x208e,
+ 0x2329, 0x232a,
+ 0x2768, 0x2775,
+ 0x27c5, 0x27c6,
+ 0x27e6, 0x27ef,
+ 0x2983, 0x2998,
+ 0x29d8, 0x29db,
+ 0x29fc, 0x29fd,
+ 0x2cf9, 0x2cfc,
+ 0x2cfe, 0x2cff,
+ 0x2d70, 0x2d70,
+ 0x2e00, 0x2e2e,
+ 0x2e30, 0x2e31,
+ 0x3001, 0x3003,
+ 0x3008, 0x3011,
+ 0x3014, 0x301f,
+ 0x3030, 0x3030,
+ 0x303d, 0x303d,
+ 0x30a0, 0x30a0,
+ 0x30fb, 0x30fb,
+ 0xa4fe, 0xa4ff,
+ 0xa60d, 0xa60f,
+ 0xa673, 0xa673,
+ 0xa67e, 0xa67e,
+ 0xa6f2, 0xa6f7,
+ 0xa874, 0xa877,
+ 0xa8ce, 0xa8cf,
+ 0xa8f8, 0xa8fa,
+ 0xa92e, 0xa92f,
+ 0xa95f, 0xa95f,
+ 0xa9c1, 0xa9cd,
+ 0xa9de, 0xa9df,
+ 0xaa5c, 0xaa5f,
+ 0xaade, 0xaadf,
+ 0xabeb, 0xabeb,
+ 0xfd3e, 0xfd3f,
+ 0xfe10, 0xfe19,
+ 0xfe30, 0xfe52,
+ 0xfe54, 0xfe61,
+ 0xfe63, 0xfe63,
+ 0xfe68, 0xfe68,
+ 0xfe6a, 0xfe6b,
+ 0xff01, 0xff03,
+ 0xff05, 0xff0a,
+ 0xff0c, 0xff0f,
+ 0xff1a, 0xff1b,
+ 0xff1f, 0xff20,
+ 0xff3b, 0xff3d,
+ 0xff3f, 0xff3f,
+ 0xff5b, 0xff5b,
+ 0xff5d, 0xff5d,
+ 0xff5f, 0xff65,
+ 0x10100, 0x10101,
+ 0x1039f, 0x1039f,
+ 0x103d0, 0x103d0,
+ 0x10857, 0x10857,
+ 0x1091f, 0x1091f,
+ 0x1093f, 0x1093f,
+ 0x10a50, 0x10a58,
+ 0x10a7f, 0x10a7f,
+ 0x10b39, 0x10b3f,
+ 0x11047, 0x1104d,
+ 0x110bb, 0x110bc,
+ 0x110be, 0x110c1,
+ 0x12470, 0x12473,
+}; /* CR_P */
+
+/* 'Pc': General Category */
+static const OnigCodePoint CR_Pc[] = {
+ 6,
+ 0x005f, 0x005f,
+ 0x203f, 0x2040,
+ 0x2054, 0x2054,
+ 0xfe33, 0xfe34,
+ 0xfe4d, 0xfe4f,
+ 0xff3f, 0xff3f,
+}; /* CR_Pc */
+
+/* 'Pd': General Category */
+static const OnigCodePoint CR_Pd[] = {
+ 15,
+ 0x002d, 0x002d,
+ 0x058a, 0x058a,
+ 0x05be, 0x05be,
+ 0x1400, 0x1400,
+ 0x1806, 0x1806,
+ 0x2010, 0x2015,
+ 0x2e17, 0x2e17,
+ 0x2e1a, 0x2e1a,
+ 0x301c, 0x301c,
+ 0x3030, 0x3030,
+ 0x30a0, 0x30a0,
+ 0xfe31, 0xfe32,
+ 0xfe58, 0xfe58,
+ 0xfe63, 0xfe63,
+ 0xff0d, 0xff0d,
+}; /* CR_Pd */
+
+/* 'Pe': General Category */
+static const OnigCodePoint CR_Pe[] = {
+ 70,
+ 0x0029, 0x0029,
+ 0x005d, 0x005d,
+ 0x007d, 0x007d,
+ 0x0f3b, 0x0f3b,
+ 0x0f3d, 0x0f3d,
+ 0x169c, 0x169c,
+ 0x2046, 0x2046,
+ 0x207e, 0x207e,
+ 0x208e, 0x208e,
+ 0x232a, 0x232a,
+ 0x2769, 0x2769,
+ 0x276b, 0x276b,
+ 0x276d, 0x276d,
+ 0x276f, 0x276f,
+ 0x2771, 0x2771,
+ 0x2773, 0x2773,
+ 0x2775, 0x2775,
+ 0x27c6, 0x27c6,
+ 0x27e7, 0x27e7,
+ 0x27e9, 0x27e9,
+ 0x27eb, 0x27eb,
+ 0x27ed, 0x27ed,
+ 0x27ef, 0x27ef,
+ 0x2984, 0x2984,
+ 0x2986, 0x2986,
+ 0x2988, 0x2988,
+ 0x298a, 0x298a,
+ 0x298c, 0x298c,
+ 0x298e, 0x298e,
+ 0x2990, 0x2990,
+ 0x2992, 0x2992,
+ 0x2994, 0x2994,
+ 0x2996, 0x2996,
+ 0x2998, 0x2998,
+ 0x29d9, 0x29d9,
+ 0x29db, 0x29db,
+ 0x29fd, 0x29fd,
+ 0x2e23, 0x2e23,
+ 0x2e25, 0x2e25,
+ 0x2e27, 0x2e27,
+ 0x2e29, 0x2e29,
+ 0x3009, 0x3009,
+ 0x300b, 0x300b,
+ 0x300d, 0x300d,
+ 0x300f, 0x300f,
+ 0x3011, 0x3011,
+ 0x3015, 0x3015,
+ 0x3017, 0x3017,
+ 0x3019, 0x3019,
+ 0x301b, 0x301b,
+ 0x301e, 0x301f,
+ 0xfd3f, 0xfd3f,
+ 0xfe18, 0xfe18,
+ 0xfe36, 0xfe36,
+ 0xfe38, 0xfe38,
+ 0xfe3a, 0xfe3a,
+ 0xfe3c, 0xfe3c,
+ 0xfe3e, 0xfe3e,
+ 0xfe40, 0xfe40,
+ 0xfe42, 0xfe42,
+ 0xfe44, 0xfe44,
+ 0xfe48, 0xfe48,
+ 0xfe5a, 0xfe5a,
+ 0xfe5c, 0xfe5c,
+ 0xfe5e, 0xfe5e,
+ 0xff09, 0xff09,
+ 0xff3d, 0xff3d,
+ 0xff5d, 0xff5d,
+ 0xff60, 0xff60,
+ 0xff63, 0xff63,
+}; /* CR_Pe */
+
+/* 'Pf': General Category */
+static const OnigCodePoint CR_Pf[] = {
+ 10,
+ 0x00bb, 0x00bb,
+ 0x2019, 0x2019,
+ 0x201d, 0x201d,
+ 0x203a, 0x203a,
+ 0x2e03, 0x2e03,
+ 0x2e05, 0x2e05,
+ 0x2e0a, 0x2e0a,
+ 0x2e0d, 0x2e0d,
+ 0x2e1d, 0x2e1d,
+ 0x2e21, 0x2e21,
+}; /* CR_Pf */
+
+/* 'Pi': General Category */
+static const OnigCodePoint CR_Pi[] = {
+ 11,
+ 0x00ab, 0x00ab,
+ 0x2018, 0x2018,
+ 0x201b, 0x201c,
+ 0x201f, 0x201f,
+ 0x2039, 0x2039,
+ 0x2e02, 0x2e02,
+ 0x2e04, 0x2e04,
+ 0x2e09, 0x2e09,
+ 0x2e0c, 0x2e0c,
+ 0x2e1c, 0x2e1c,
+ 0x2e20, 0x2e20,
+}; /* CR_Pi */
+
+/* 'Po': General Category */
+static const OnigCodePoint CR_Po[] = {
+ 128,
+ 0x0021, 0x0023,
+ 0x0025, 0x0027,
+ 0x002a, 0x002a,
+ 0x002c, 0x002c,
+ 0x002e, 0x002f,
+ 0x003a, 0x003b,
+ 0x003f, 0x0040,
+ 0x005c, 0x005c,
+ 0x00a1, 0x00a1,
+ 0x00b7, 0x00b7,
+ 0x00bf, 0x00bf,
+ 0x037e, 0x037e,
+ 0x0387, 0x0387,
+ 0x055a, 0x055f,
+ 0x0589, 0x0589,
+ 0x05c0, 0x05c0,
+ 0x05c3, 0x05c3,
+ 0x05c6, 0x05c6,
+ 0x05f3, 0x05f4,
+ 0x0609, 0x060a,
+ 0x060c, 0x060d,
+ 0x061b, 0x061b,
+ 0x061e, 0x061f,
+ 0x066a, 0x066d,
+ 0x06d4, 0x06d4,
+ 0x0700, 0x070d,
+ 0x07f7, 0x07f9,
+ 0x0830, 0x083e,
+ 0x085e, 0x085e,
+ 0x0964, 0x0965,
+ 0x0970, 0x0970,
+ 0x0df4, 0x0df4,
+ 0x0e4f, 0x0e4f,
+ 0x0e5a, 0x0e5b,
+ 0x0f04, 0x0f12,
+ 0x0f85, 0x0f85,
+ 0x0fd0, 0x0fd4,
+ 0x0fd9, 0x0fda,
+ 0x104a, 0x104f,
+ 0x10fb, 0x10fb,
+ 0x1361, 0x1368,
+ 0x166d, 0x166e,
+ 0x16eb, 0x16ed,
+ 0x1735, 0x1736,
+ 0x17d4, 0x17d6,
+ 0x17d8, 0x17da,
+ 0x1800, 0x1805,
+ 0x1807, 0x180a,
+ 0x1944, 0x1945,
+ 0x1a1e, 0x1a1f,
+ 0x1aa0, 0x1aa6,
+ 0x1aa8, 0x1aad,
+ 0x1b5a, 0x1b60,
+ 0x1bfc, 0x1bff,
+ 0x1c3b, 0x1c3f,
+ 0x1c7e, 0x1c7f,
+ 0x1cd3, 0x1cd3,
+ 0x2016, 0x2017,
+ 0x2020, 0x2027,
+ 0x2030, 0x2038,
+ 0x203b, 0x203e,
+ 0x2041, 0x2043,
+ 0x2047, 0x2051,
+ 0x2053, 0x2053,
+ 0x2055, 0x205e,
+ 0x2cf9, 0x2cfc,
+ 0x2cfe, 0x2cff,
+ 0x2d70, 0x2d70,
+ 0x2e00, 0x2e01,
+ 0x2e06, 0x2e08,
+ 0x2e0b, 0x2e0b,
+ 0x2e0e, 0x2e16,
+ 0x2e18, 0x2e19,
+ 0x2e1b, 0x2e1b,
+ 0x2e1e, 0x2e1f,
+ 0x2e2a, 0x2e2e,
+ 0x2e30, 0x2e31,
+ 0x3001, 0x3003,
+ 0x303d, 0x303d,
+ 0x30fb, 0x30fb,
+ 0xa4fe, 0xa4ff,
+ 0xa60d, 0xa60f,
+ 0xa673, 0xa673,
+ 0xa67e, 0xa67e,
+ 0xa6f2, 0xa6f7,
+ 0xa874, 0xa877,
+ 0xa8ce, 0xa8cf,
+ 0xa8f8, 0xa8fa,
+ 0xa92e, 0xa92f,
+ 0xa95f, 0xa95f,
+ 0xa9c1, 0xa9cd,
+ 0xa9de, 0xa9df,
+ 0xaa5c, 0xaa5f,
+ 0xaade, 0xaadf,
+ 0xabeb, 0xabeb,
+ 0xfe10, 0xfe16,
+ 0xfe19, 0xfe19,
+ 0xfe30, 0xfe30,
+ 0xfe45, 0xfe46,
+ 0xfe49, 0xfe4c,
+ 0xfe50, 0xfe52,
+ 0xfe54, 0xfe57,
+ 0xfe5f, 0xfe61,
+ 0xfe68, 0xfe68,
+ 0xfe6a, 0xfe6b,
+ 0xff01, 0xff03,
+ 0xff05, 0xff07,
+ 0xff0a, 0xff0a,
+ 0xff0c, 0xff0c,
+ 0xff0e, 0xff0f,
+ 0xff1a, 0xff1b,
+ 0xff1f, 0xff20,
+ 0xff3c, 0xff3c,
+ 0xff61, 0xff61,
+ 0xff64, 0xff65,
+ 0x10100, 0x10101,
+ 0x1039f, 0x1039f,
+ 0x103d0, 0x103d0,
+ 0x10857, 0x10857,
+ 0x1091f, 0x1091f,
+ 0x1093f, 0x1093f,
+ 0x10a50, 0x10a58,
+ 0x10a7f, 0x10a7f,
+ 0x10b39, 0x10b3f,
+ 0x11047, 0x1104d,
+ 0x110bb, 0x110bc,
+ 0x110be, 0x110c1,
+ 0x12470, 0x12473,
+}; /* CR_Po */
+
+/* 'Ps': General Category */
+static const OnigCodePoint CR_Ps[] = {
+ 72,
+ 0x0028, 0x0028,
+ 0x005b, 0x005b,
+ 0x007b, 0x007b,
+ 0x0f3a, 0x0f3a,
+ 0x0f3c, 0x0f3c,
+ 0x169b, 0x169b,
+ 0x201a, 0x201a,
+ 0x201e, 0x201e,
+ 0x2045, 0x2045,
+ 0x207d, 0x207d,
+ 0x208d, 0x208d,
+ 0x2329, 0x2329,
+ 0x2768, 0x2768,
+ 0x276a, 0x276a,
+ 0x276c, 0x276c,
+ 0x276e, 0x276e,
+ 0x2770, 0x2770,
+ 0x2772, 0x2772,
+ 0x2774, 0x2774,
+ 0x27c5, 0x27c5,
+ 0x27e6, 0x27e6,
+ 0x27e8, 0x27e8,
+ 0x27ea, 0x27ea,
+ 0x27ec, 0x27ec,
+ 0x27ee, 0x27ee,
+ 0x2983, 0x2983,
+ 0x2985, 0x2985,
+ 0x2987, 0x2987,
+ 0x2989, 0x2989,
+ 0x298b, 0x298b,
+ 0x298d, 0x298d,
+ 0x298f, 0x298f,
+ 0x2991, 0x2991,
+ 0x2993, 0x2993,
+ 0x2995, 0x2995,
+ 0x2997, 0x2997,
+ 0x29d8, 0x29d8,
+ 0x29da, 0x29da,
+ 0x29fc, 0x29fc,
+ 0x2e22, 0x2e22,
+ 0x2e24, 0x2e24,
+ 0x2e26, 0x2e26,
+ 0x2e28, 0x2e28,
+ 0x3008, 0x3008,
+ 0x300a, 0x300a,
+ 0x300c, 0x300c,
+ 0x300e, 0x300e,
+ 0x3010, 0x3010,
+ 0x3014, 0x3014,
+ 0x3016, 0x3016,
+ 0x3018, 0x3018,
+ 0x301a, 0x301a,
+ 0x301d, 0x301d,
+ 0xfd3e, 0xfd3e,
+ 0xfe17, 0xfe17,
+ 0xfe35, 0xfe35,
+ 0xfe37, 0xfe37,
+ 0xfe39, 0xfe39,
+ 0xfe3b, 0xfe3b,
+ 0xfe3d, 0xfe3d,
+ 0xfe3f, 0xfe3f,
+ 0xfe41, 0xfe41,
+ 0xfe43, 0xfe43,
+ 0xfe47, 0xfe47,
+ 0xfe59, 0xfe59,
+ 0xfe5b, 0xfe5b,
+ 0xfe5d, 0xfe5d,
+ 0xff08, 0xff08,
+ 0xff3b, 0xff3b,
+ 0xff5b, 0xff5b,
+ 0xff5f, 0xff5f,
+ 0xff62, 0xff62,
+}; /* CR_Ps */
+
+/* 'S': Major Category */
+static const OnigCodePoint CR_S[] = {
+ 208,
+ 0x0024, 0x0024,
+ 0x002b, 0x002b,
+ 0x003c, 0x003e,
+ 0x005e, 0x005e,
+ 0x0060, 0x0060,
+ 0x007c, 0x007c,
+ 0x007e, 0x007e,
+ 0x00a2, 0x00a9,
+ 0x00ac, 0x00ac,
+ 0x00ae, 0x00b1,
+ 0x00b4, 0x00b4,
+ 0x00b6, 0x00b6,
+ 0x00b8, 0x00b8,
+ 0x00d7, 0x00d7,
+ 0x00f7, 0x00f7,
+ 0x02c2, 0x02c5,
+ 0x02d2, 0x02df,
+ 0x02e5, 0x02eb,
+ 0x02ed, 0x02ed,
+ 0x02ef, 0x02ff,
+ 0x0375, 0x0375,
+ 0x0384, 0x0385,
+ 0x03f6, 0x03f6,
+ 0x0482, 0x0482,
+ 0x0606, 0x0608,
+ 0x060b, 0x060b,
+ 0x060e, 0x060f,
+ 0x06de, 0x06de,
+ 0x06e9, 0x06e9,
+ 0x06fd, 0x06fe,
+ 0x07f6, 0x07f6,
+ 0x09f2, 0x09f3,
+ 0x09fa, 0x09fb,
+ 0x0af1, 0x0af1,
+ 0x0b70, 0x0b70,
+ 0x0bf3, 0x0bfa,
+ 0x0c7f, 0x0c7f,
+ 0x0d79, 0x0d79,
+ 0x0e3f, 0x0e3f,
+ 0x0f01, 0x0f03,
+ 0x0f13, 0x0f17,
+ 0x0f1a, 0x0f1f,
+ 0x0f34, 0x0f34,
+ 0x0f36, 0x0f36,
+ 0x0f38, 0x0f38,
+ 0x0fbe, 0x0fc5,
+ 0x0fc7, 0x0fcc,
+ 0x0fce, 0x0fcf,
+ 0x0fd5, 0x0fd8,
+ 0x109e, 0x109f,
+ 0x1360, 0x1360,
+ 0x1390, 0x1399,
+ 0x17db, 0x17db,
+ 0x1940, 0x1940,
+ 0x19de, 0x19ff,
+ 0x1b61, 0x1b6a,
+ 0x1b74, 0x1b7c,
+ 0x1fbd, 0x1fbd,
+ 0x1fbf, 0x1fc1,
+ 0x1fcd, 0x1fcf,
+ 0x1fdd, 0x1fdf,
+ 0x1fed, 0x1fef,
+ 0x1ffd, 0x1ffe,
+ 0x2044, 0x2044,
+ 0x2052, 0x2052,
+ 0x207a, 0x207c,
+ 0x208a, 0x208c,
+ 0x20a0, 0x20b9,
+ 0x2100, 0x2101,
+ 0x2103, 0x2106,
+ 0x2108, 0x2109,
+ 0x2114, 0x2114,
+ 0x2116, 0x2118,
+ 0x211e, 0x2123,
+ 0x2125, 0x2125,
+ 0x2127, 0x2127,
+ 0x2129, 0x2129,
+ 0x212e, 0x212e,
+ 0x213a, 0x213b,
+ 0x2140, 0x2144,
+ 0x214a, 0x214d,
+ 0x214f, 0x214f,
+ 0x2190, 0x2328,
+ 0x232b, 0x23f3,
+ 0x2400, 0x2426,
+ 0x2440, 0x244a,
+ 0x249c, 0x24e9,
+ 0x2500, 0x26ff,
+ 0x2701, 0x2767,
+ 0x2794, 0x27c4,
+ 0x27c7, 0x27ca,
+ 0x27cc, 0x27cc,
+ 0x27ce, 0x27e5,
+ 0x27f0, 0x2982,
+ 0x2999, 0x29d7,
+ 0x29dc, 0x29fb,
+ 0x29fe, 0x2b4c,
+ 0x2b50, 0x2b59,
+ 0x2ce5, 0x2cea,
+ 0x2e80, 0x2e99,
+ 0x2e9b, 0x2ef3,
+ 0x2f00, 0x2fd5,
+ 0x2ff0, 0x2ffb,
+ 0x3004, 0x3004,
+ 0x3012, 0x3013,
+ 0x3020, 0x3020,
+ 0x3036, 0x3037,
+ 0x303e, 0x303f,
+ 0x309b, 0x309c,
+ 0x3190, 0x3191,
+ 0x3196, 0x319f,
+ 0x31c0, 0x31e3,
+ 0x3200, 0x321e,
+ 0x322a, 0x3250,
+ 0x3260, 0x327f,
+ 0x328a, 0x32b0,
+ 0x32c0, 0x32fe,
+ 0x3300, 0x33ff,
+ 0x4dc0, 0x4dff,
+ 0xa490, 0xa4c6,
+ 0xa700, 0xa716,
+ 0xa720, 0xa721,
+ 0xa789, 0xa78a,
+ 0xa828, 0xa82b,
+ 0xa836, 0xa839,
+ 0xaa77, 0xaa79,
+ 0xfb29, 0xfb29,
+ 0xfbb2, 0xfbc1,
+ 0xfdfc, 0xfdfd,
+ 0xfe62, 0xfe62,
+ 0xfe64, 0xfe66,
+ 0xfe69, 0xfe69,
+ 0xff04, 0xff04,
+ 0xff0b, 0xff0b,
+ 0xff1c, 0xff1e,
+ 0xff3e, 0xff3e,
+ 0xff40, 0xff40,
+ 0xff5c, 0xff5c,
+ 0xff5e, 0xff5e,
+ 0xffe0, 0xffe6,
+ 0xffe8, 0xffee,
+ 0xfffc, 0xfffd,
+ 0x10102, 0x10102,
+ 0x10137, 0x1013f,
+ 0x10179, 0x10189,
+ 0x10190, 0x1019b,
+ 0x101d0, 0x101fc,
+ 0x1d000, 0x1d0f5,
+ 0x1d100, 0x1d126,
+ 0x1d129, 0x1d164,
+ 0x1d16a, 0x1d16c,
+ 0x1d183, 0x1d184,
+ 0x1d18c, 0x1d1a9,
+ 0x1d1ae, 0x1d1dd,
+ 0x1d200, 0x1d241,
+ 0x1d245, 0x1d245,
+ 0x1d300, 0x1d356,
+ 0x1d6c1, 0x1d6c1,
+ 0x1d6db, 0x1d6db,
+ 0x1d6fb, 0x1d6fb,
+ 0x1d715, 0x1d715,
+ 0x1d735, 0x1d735,
+ 0x1d74f, 0x1d74f,
+ 0x1d76f, 0x1d76f,
+ 0x1d789, 0x1d789,
+ 0x1d7a9, 0x1d7a9,
+ 0x1d7c3, 0x1d7c3,
+ 0x1f000, 0x1f02b,
+ 0x1f030, 0x1f093,
+ 0x1f0a0, 0x1f0ae,
+ 0x1f0b1, 0x1f0be,
+ 0x1f0c1, 0x1f0cf,
+ 0x1f0d1, 0x1f0df,
+ 0x1f110, 0x1f12e,
+ 0x1f130, 0x1f169,
+ 0x1f170, 0x1f19a,
+ 0x1f1e6, 0x1f202,
+ 0x1f210, 0x1f23a,
+ 0x1f240, 0x1f248,
+ 0x1f250, 0x1f251,
+ 0x1f300, 0x1f320,
+ 0x1f330, 0x1f335,
+ 0x1f337, 0x1f37c,
+ 0x1f380, 0x1f393,
+ 0x1f3a0, 0x1f3c4,
+ 0x1f3c6, 0x1f3ca,
+ 0x1f3e0, 0x1f3f0,
+ 0x1f400, 0x1f43e,
+ 0x1f440, 0x1f440,
+ 0x1f442, 0x1f4f7,
+ 0x1f4f9, 0x1f4fc,
+ 0x1f500, 0x1f53d,
+ 0x1f550, 0x1f567,
+ 0x1f5fb, 0x1f5ff,
+ 0x1f601, 0x1f610,
+ 0x1f612, 0x1f614,
+ 0x1f616, 0x1f616,
+ 0x1f618, 0x1f618,
+ 0x1f61a, 0x1f61a,
+ 0x1f61c, 0x1f61e,
+ 0x1f620, 0x1f625,
+ 0x1f628, 0x1f62b,
+ 0x1f62d, 0x1f62d,
+ 0x1f630, 0x1f633,
+ 0x1f635, 0x1f640,
+ 0x1f645, 0x1f64f,
+ 0x1f680, 0x1f6c5,
+ 0x1f700, 0x1f773,
+}; /* CR_S */
+
+/* 'Sc': General Category */
+static const OnigCodePoint CR_Sc[] = {
+ 16,
+ 0x0024, 0x0024,
+ 0x00a2, 0x00a5,
+ 0x060b, 0x060b,
+ 0x09f2, 0x09f3,
+ 0x09fb, 0x09fb,
+ 0x0af1, 0x0af1,
+ 0x0bf9, 0x0bf9,
+ 0x0e3f, 0x0e3f,
+ 0x17db, 0x17db,
+ 0x20a0, 0x20b9,
+ 0xa838, 0xa838,
+ 0xfdfc, 0xfdfc,
+ 0xfe69, 0xfe69,
+ 0xff04, 0xff04,
+ 0xffe0, 0xffe1,
+ 0xffe5, 0xffe6,
+}; /* CR_Sc */
+
+/* 'Sk': General Category */
+static const OnigCodePoint CR_Sk[] = {
+ 27,
+ 0x005e, 0x005e,
+ 0x0060, 0x0060,
+ 0x00a8, 0x00a8,
+ 0x00af, 0x00af,
+ 0x00b4, 0x00b4,
+ 0x00b8, 0x00b8,
+ 0x02c2, 0x02c5,
+ 0x02d2, 0x02df,
+ 0x02e5, 0x02eb,
+ 0x02ed, 0x02ed,
+ 0x02ef, 0x02ff,
+ 0x0375, 0x0375,
+ 0x0384, 0x0385,
+ 0x1fbd, 0x1fbd,
+ 0x1fbf, 0x1fc1,
+ 0x1fcd, 0x1fcf,
+ 0x1fdd, 0x1fdf,
+ 0x1fed, 0x1fef,
+ 0x1ffd, 0x1ffe,
+ 0x309b, 0x309c,
+ 0xa700, 0xa716,
+ 0xa720, 0xa721,
+ 0xa789, 0xa78a,
+ 0xfbb2, 0xfbc1,
+ 0xff3e, 0xff3e,
+ 0xff40, 0xff40,
+ 0xffe3, 0xffe3,
+}; /* CR_Sk */
+
+/* 'Sm': General Category */
+static const OnigCodePoint CR_Sm[] = {
+ 66,
+ 0x002b, 0x002b,
+ 0x003c, 0x003e,
+ 0x007c, 0x007c,
+ 0x007e, 0x007e,
+ 0x00ac, 0x00ac,
+ 0x00b1, 0x00b1,
+ 0x00d7, 0x00d7,
+ 0x00f7, 0x00f7,
+ 0x03f6, 0x03f6,
+ 0x0606, 0x0608,
+ 0x2044, 0x2044,
+ 0x2052, 0x2052,
+ 0x207a, 0x207c,
+ 0x208a, 0x208c,
+ 0x2118, 0x2118,
+ 0x2140, 0x2144,
+ 0x214b, 0x214b,
+ 0x2190, 0x2194,
+ 0x219a, 0x219b,
+ 0x21a0, 0x21a0,
+ 0x21a3, 0x21a3,
+ 0x21a6, 0x21a6,
+ 0x21ae, 0x21ae,
+ 0x21ce, 0x21cf,
+ 0x21d2, 0x21d2,
+ 0x21d4, 0x21d4,
+ 0x21f4, 0x22ff,
+ 0x2308, 0x230b,
+ 0x2320, 0x2321,
+ 0x237c, 0x237c,
+ 0x239b, 0x23b3,
+ 0x23dc, 0x23e1,
+ 0x25b7, 0x25b7,
+ 0x25c1, 0x25c1,
+ 0x25f8, 0x25ff,
+ 0x266f, 0x266f,
+ 0x27c0, 0x27c4,
+ 0x27c7, 0x27ca,
+ 0x27cc, 0x27cc,
+ 0x27ce, 0x27e5,
+ 0x27f0, 0x27ff,
+ 0x2900, 0x2982,
+ 0x2999, 0x29d7,
+ 0x29dc, 0x29fb,
+ 0x29fe, 0x2aff,
+ 0x2b30, 0x2b44,
+ 0x2b47, 0x2b4c,
+ 0xfb29, 0xfb29,
+ 0xfe62, 0xfe62,
+ 0xfe64, 0xfe66,
+ 0xff0b, 0xff0b,
+ 0xff1c, 0xff1e,
+ 0xff5c, 0xff5c,
+ 0xff5e, 0xff5e,
+ 0xffe2, 0xffe2,
+ 0xffe9, 0xffec,
+ 0x1d6c1, 0x1d6c1,
+ 0x1d6db, 0x1d6db,
+ 0x1d6fb, 0x1d6fb,
+ 0x1d715, 0x1d715,
+ 0x1d735, 0x1d735,
+ 0x1d74f, 0x1d74f,
+ 0x1d76f, 0x1d76f,
+ 0x1d789, 0x1d789,
+ 0x1d7a9, 0x1d7a9,
+ 0x1d7c3, 0x1d7c3,
+}; /* CR_Sm */
+
+/* 'So': General Category */
+static const OnigCodePoint CR_So[] = {
+ 164,
+ 0x00a6, 0x00a7,
+ 0x00a9, 0x00a9,
+ 0x00ae, 0x00ae,
+ 0x00b0, 0x00b0,
+ 0x00b6, 0x00b6,
+ 0x0482, 0x0482,
+ 0x060e, 0x060f,
+ 0x06de, 0x06de,
+ 0x06e9, 0x06e9,
+ 0x06fd, 0x06fe,
+ 0x07f6, 0x07f6,
+ 0x09fa, 0x09fa,
+ 0x0b70, 0x0b70,
+ 0x0bf3, 0x0bf8,
+ 0x0bfa, 0x0bfa,
+ 0x0c7f, 0x0c7f,
+ 0x0d79, 0x0d79,
+ 0x0f01, 0x0f03,
+ 0x0f13, 0x0f17,
+ 0x0f1a, 0x0f1f,
+ 0x0f34, 0x0f34,
+ 0x0f36, 0x0f36,
+ 0x0f38, 0x0f38,
+ 0x0fbe, 0x0fc5,
+ 0x0fc7, 0x0fcc,
+ 0x0fce, 0x0fcf,
+ 0x0fd5, 0x0fd8,
+ 0x109e, 0x109f,
+ 0x1360, 0x1360,
+ 0x1390, 0x1399,
+ 0x1940, 0x1940,
+ 0x19de, 0x19ff,
+ 0x1b61, 0x1b6a,
+ 0x1b74, 0x1b7c,
+ 0x2100, 0x2101,
+ 0x2103, 0x2106,
+ 0x2108, 0x2109,
+ 0x2114, 0x2114,
+ 0x2116, 0x2117,
+ 0x211e, 0x2123,
+ 0x2125, 0x2125,
+ 0x2127, 0x2127,
+ 0x2129, 0x2129,
+ 0x212e, 0x212e,
+ 0x213a, 0x213b,
+ 0x214a, 0x214a,
+ 0x214c, 0x214d,
+ 0x214f, 0x214f,
+ 0x2195, 0x2199,
+ 0x219c, 0x219f,
+ 0x21a1, 0x21a2,
+ 0x21a4, 0x21a5,
+ 0x21a7, 0x21ad,
+ 0x21af, 0x21cd,
+ 0x21d0, 0x21d1,
+ 0x21d3, 0x21d3,
+ 0x21d5, 0x21f3,
+ 0x2300, 0x2307,
+ 0x230c, 0x231f,
+ 0x2322, 0x2328,
+ 0x232b, 0x237b,
+ 0x237d, 0x239a,
+ 0x23b4, 0x23db,
+ 0x23e2, 0x23f3,
+ 0x2400, 0x2426,
+ 0x2440, 0x244a,
+ 0x249c, 0x24e9,
+ 0x2500, 0x25b6,
+ 0x25b8, 0x25c0,
+ 0x25c2, 0x25f7,
+ 0x2600, 0x266e,
+ 0x2670, 0x26ff,
+ 0x2701, 0x2767,
+ 0x2794, 0x27bf,
+ 0x2800, 0x28ff,
+ 0x2b00, 0x2b2f,
+ 0x2b45, 0x2b46,
+ 0x2b50, 0x2b59,
+ 0x2ce5, 0x2cea,
+ 0x2e80, 0x2e99,
+ 0x2e9b, 0x2ef3,
+ 0x2f00, 0x2fd5,
+ 0x2ff0, 0x2ffb,
+ 0x3004, 0x3004,
+ 0x3012, 0x3013,
+ 0x3020, 0x3020,
+ 0x3036, 0x3037,
+ 0x303e, 0x303f,
+ 0x3190, 0x3191,
+ 0x3196, 0x319f,
+ 0x31c0, 0x31e3,
+ 0x3200, 0x321e,
+ 0x322a, 0x3250,
+ 0x3260, 0x327f,
+ 0x328a, 0x32b0,
+ 0x32c0, 0x32fe,
+ 0x3300, 0x33ff,
+ 0x4dc0, 0x4dff,
+ 0xa490, 0xa4c6,
+ 0xa828, 0xa82b,
+ 0xa836, 0xa837,
+ 0xa839, 0xa839,
+ 0xaa77, 0xaa79,
+ 0xfdfd, 0xfdfd,
+ 0xffe4, 0xffe4,
+ 0xffe8, 0xffe8,
+ 0xffed, 0xffee,
+ 0xfffc, 0xfffd,
+ 0x10102, 0x10102,
+ 0x10137, 0x1013f,
+ 0x10179, 0x10189,
+ 0x10190, 0x1019b,
+ 0x101d0, 0x101fc,
+ 0x1d000, 0x1d0f5,
+ 0x1d100, 0x1d126,
+ 0x1d129, 0x1d164,
+ 0x1d16a, 0x1d16c,
+ 0x1d183, 0x1d184,
+ 0x1d18c, 0x1d1a9,
+ 0x1d1ae, 0x1d1dd,
+ 0x1d200, 0x1d241,
+ 0x1d245, 0x1d245,
+ 0x1d300, 0x1d356,
+ 0x1f000, 0x1f02b,
+ 0x1f030, 0x1f093,
+ 0x1f0a0, 0x1f0ae,
+ 0x1f0b1, 0x1f0be,
+ 0x1f0c1, 0x1f0cf,
+ 0x1f0d1, 0x1f0df,
+ 0x1f110, 0x1f12e,
+ 0x1f130, 0x1f169,
+ 0x1f170, 0x1f19a,
+ 0x1f1e6, 0x1f202,
+ 0x1f210, 0x1f23a,
+ 0x1f240, 0x1f248,
+ 0x1f250, 0x1f251,
+ 0x1f300, 0x1f320,
+ 0x1f330, 0x1f335,
+ 0x1f337, 0x1f37c,
+ 0x1f380, 0x1f393,
+ 0x1f3a0, 0x1f3c4,
+ 0x1f3c6, 0x1f3ca,
+ 0x1f3e0, 0x1f3f0,
+ 0x1f400, 0x1f43e,
+ 0x1f440, 0x1f440,
+ 0x1f442, 0x1f4f7,
+ 0x1f4f9, 0x1f4fc,
+ 0x1f500, 0x1f53d,
+ 0x1f550, 0x1f567,
+ 0x1f5fb, 0x1f5ff,
+ 0x1f601, 0x1f610,
+ 0x1f612, 0x1f614,
+ 0x1f616, 0x1f616,
+ 0x1f618, 0x1f618,
+ 0x1f61a, 0x1f61a,
+ 0x1f61c, 0x1f61e,
+ 0x1f620, 0x1f625,
+ 0x1f628, 0x1f62b,
+ 0x1f62d, 0x1f62d,
+ 0x1f630, 0x1f633,
+ 0x1f635, 0x1f640,
+ 0x1f645, 0x1f64f,
+ 0x1f680, 0x1f6c5,
+ 0x1f700, 0x1f773,
+}; /* CR_So */
+
+/* 'Z': Major Category */
+static const OnigCodePoint CR_Z[] = {
+ 9,
+ 0x0020, 0x0020,
+ 0x00a0, 0x00a0,
+ 0x1680, 0x1680,
+ 0x180e, 0x180e,
+ 0x2000, 0x200a,
+ 0x2028, 0x2029,
+ 0x202f, 0x202f,
+ 0x205f, 0x205f,
+ 0x3000, 0x3000,
+}; /* CR_Z */
+
+/* 'Zl': General Category */
+static const OnigCodePoint CR_Zl[] = {
+ 1,
+ 0x2028, 0x2028,
+}; /* CR_Zl */
+
+/* 'Zp': General Category */
+static const OnigCodePoint CR_Zp[] = {
+ 1,
+ 0x2029, 0x2029,
+}; /* CR_Zp */
+
+/* 'Zs': General Category */
+static const OnigCodePoint CR_Zs[] = {
+ 8,
+ 0x0020, 0x0020,
+ 0x00a0, 0x00a0,
+ 0x1680, 0x1680,
+ 0x180e, 0x180e,
+ 0x2000, 0x200a,
+ 0x202f, 0x202f,
+ 0x205f, 0x205f,
+ 0x3000, 0x3000,
+}; /* CR_Zs */
+
+/* 'Math': Derived Property */
+static const OnigCodePoint CR_Math[] = {
+ 106,
+ 0x002b, 0x002b,
+ 0x003c, 0x003e,
+ 0x005e, 0x005e,
+ 0x007c, 0x007c,
+ 0x007e, 0x007e,
+ 0x00ac, 0x00ac,
+ 0x00b1, 0x00b1,
+ 0x00d7, 0x00d7,
+ 0x00f7, 0x00f7,
+ 0x03d0, 0x03d2,
+ 0x03d5, 0x03d5,
+ 0x03f0, 0x03f1,
+ 0x03f4, 0x03f6,
+ 0x0606, 0x0608,
+ 0x2016, 0x2016,
+ 0x2032, 0x2034,
+ 0x2040, 0x2040,
+ 0x2044, 0x2044,
+ 0x2052, 0x2052,
+ 0x2061, 0x2064,
+ 0x207a, 0x207e,
+ 0x208a, 0x208e,
+ 0x20d0, 0x20dc,
+ 0x20e1, 0x20e1,
+ 0x20e5, 0x20e6,
+ 0x20eb, 0x20ef,
+ 0x2102, 0x2102,
+ 0x2107, 0x2107,
+ 0x210a, 0x2113,
+ 0x2115, 0x2115,
+ 0x2118, 0x211d,
+ 0x2124, 0x2124,
+ 0x2128, 0x2129,
+ 0x212c, 0x212d,
+ 0x212f, 0x2131,
+ 0x2133, 0x2138,
+ 0x213c, 0x2149,
+ 0x214b, 0x214b,
+ 0x2190, 0x21a7,
+ 0x21a9, 0x21ae,
+ 0x21b0, 0x21b1,
+ 0x21b6, 0x21b7,
+ 0x21bc, 0x21db,
+ 0x21dd, 0x21dd,
+ 0x21e4, 0x21e5,
+ 0x21f4, 0x22ff,
+ 0x2308, 0x230b,
+ 0x2320, 0x2321,
+ 0x237c, 0x237c,
+ 0x239b, 0x23b5,
+ 0x23b7, 0x23b7,
+ 0x23d0, 0x23d0,
+ 0x23dc, 0x23e2,
+ 0x25a0, 0x25a1,
+ 0x25ae, 0x25b7,
+ 0x25bc, 0x25c1,
+ 0x25c6, 0x25c7,
+ 0x25ca, 0x25cb,
+ 0x25cf, 0x25d3,
+ 0x25e2, 0x25e2,
+ 0x25e4, 0x25e4,
+ 0x25e7, 0x25ec,
+ 0x25f8, 0x25ff,
+ 0x2605, 0x2606,
+ 0x2640, 0x2640,
+ 0x2642, 0x2642,
+ 0x2660, 0x2663,
+ 0x266d, 0x266f,
+ 0x27c0, 0x27ca,
+ 0x27cc, 0x27cc,
+ 0x27ce, 0x27ff,
+ 0x2900, 0x2aff,
+ 0x2b30, 0x2b44,
+ 0x2b47, 0x2b4c,
+ 0xfb29, 0xfb29,
+ 0xfe61, 0xfe66,
+ 0xfe68, 0xfe68,
+ 0xff0b, 0xff0b,
+ 0xff1c, 0xff1e,
+ 0xff3c, 0xff3c,
+ 0xff3e, 0xff3e,
+ 0xff5c, 0xff5c,
+ 0xff5e, 0xff5e,
+ 0xffe2, 0xffe2,
+ 0xffe9, 0xffec,
+ 0x1d400, 0x1d454,
+ 0x1d456, 0x1d49c,
+ 0x1d49e, 0x1d49f,
+ 0x1d4a2, 0x1d4a2,
+ 0x1d4a5, 0x1d4a6,
+ 0x1d4a9, 0x1d4ac,
+ 0x1d4ae, 0x1d4b9,
+ 0x1d4bb, 0x1d4bb,
+ 0x1d4bd, 0x1d4c3,
+ 0x1d4c5, 0x1d505,
+ 0x1d507, 0x1d50a,
+ 0x1d50d, 0x1d514,
+ 0x1d516, 0x1d51c,
+ 0x1d51e, 0x1d539,
+ 0x1d53b, 0x1d53e,
+ 0x1d540, 0x1d544,
+ 0x1d546, 0x1d546,
+ 0x1d54a, 0x1d550,
+ 0x1d552, 0x1d6a5,
+ 0x1d6a8, 0x1d7cb,
+ 0x1d7ce, 0x1d7ff,
+}; /* CR_Math */
+
+/* 'Alphabetic': Derived Property */
+static const OnigCodePoint CR_Alphabetic[] = {
+ 486,
+ 0x0041, 0x005a,
+ 0x0061, 0x007a,
+ 0x00aa, 0x00aa,
+ 0x00b5, 0x00b5,
+ 0x00ba, 0x00ba,
+ 0x00c0, 0x00d6,
+ 0x00d8, 0x00f6,
+ 0x00f8, 0x02c1,
+ 0x02c6, 0x02d1,
+ 0x02e0, 0x02e4,
+ 0x02ec, 0x02ec,
+ 0x02ee, 0x02ee,
+ 0x0345, 0x0345,
+ 0x0370, 0x0374,
+ 0x0376, 0x0377,
+ 0x037a, 0x037d,
+ 0x0386, 0x0386,
+ 0x0388, 0x038a,
+ 0x038c, 0x038c,
+ 0x038e, 0x03a1,
+ 0x03a3, 0x03f5,
+ 0x03f7, 0x0481,
+ 0x048a, 0x0527,
+ 0x0531, 0x0556,
+ 0x0559, 0x0559,
+ 0x0561, 0x0587,
+ 0x05b0, 0x05bd,
+ 0x05bf, 0x05bf,
+ 0x05c1, 0x05c2,
+ 0x05c4, 0x05c5,
+ 0x05c7, 0x05c7,
+ 0x05d0, 0x05ea,
+ 0x05f0, 0x05f2,
+ 0x0610, 0x061a,
+ 0x0620, 0x0657,
+ 0x0659, 0x065f,
+ 0x066e, 0x06d3,
+ 0x06d5, 0x06dc,
+ 0x06e1, 0x06e8,
+ 0x06ed, 0x06ef,
+ 0x06fa, 0x06fc,
+ 0x06ff, 0x06ff,
+ 0x0710, 0x073f,
+ 0x074d, 0x07b1,
+ 0x07ca, 0x07ea,
+ 0x07f4, 0x07f5,
+ 0x07fa, 0x07fa,
+ 0x0800, 0x0817,
+ 0x081a, 0x082c,
+ 0x0840, 0x0858,
+ 0x0900, 0x093b,
+ 0x093d, 0x094c,
+ 0x094e, 0x0950,
+ 0x0955, 0x0963,
+ 0x0971, 0x0977,
+ 0x0979, 0x097f,
+ 0x0981, 0x0983,
+ 0x0985, 0x098c,
+ 0x098f, 0x0990,
+ 0x0993, 0x09a8,
+ 0x09aa, 0x09b0,
+ 0x09b2, 0x09b2,
+ 0x09b6, 0x09b9,
+ 0x09bd, 0x09c4,
+ 0x09c7, 0x09c8,
+ 0x09cb, 0x09cc,
+ 0x09ce, 0x09ce,
+ 0x09d7, 0x09d7,
+ 0x09dc, 0x09dd,
+ 0x09df, 0x09e3,
+ 0x09f0, 0x09f1,
+ 0x0a01, 0x0a03,
+ 0x0a05, 0x0a0a,
+ 0x0a0f, 0x0a10,
+ 0x0a13, 0x0a28,
+ 0x0a2a, 0x0a30,
+ 0x0a32, 0x0a33,
+ 0x0a35, 0x0a36,
+ 0x0a38, 0x0a39,
+ 0x0a3e, 0x0a42,
+ 0x0a47, 0x0a48,
+ 0x0a4b, 0x0a4c,
+ 0x0a51, 0x0a51,
+ 0x0a59, 0x0a5c,
+ 0x0a5e, 0x0a5e,
+ 0x0a70, 0x0a75,
+ 0x0a81, 0x0a83,
+ 0x0a85, 0x0a8d,
+ 0x0a8f, 0x0a91,
+ 0x0a93, 0x0aa8,
+ 0x0aaa, 0x0ab0,
+ 0x0ab2, 0x0ab3,
+ 0x0ab5, 0x0ab9,
+ 0x0abd, 0x0ac5,
+ 0x0ac7, 0x0ac9,
+ 0x0acb, 0x0acc,
+ 0x0ad0, 0x0ad0,
+ 0x0ae0, 0x0ae3,
+ 0x0b01, 0x0b03,
+ 0x0b05, 0x0b0c,
+ 0x0b0f, 0x0b10,
+ 0x0b13, 0x0b28,
+ 0x0b2a, 0x0b30,
+ 0x0b32, 0x0b33,
+ 0x0b35, 0x0b39,
+ 0x0b3d, 0x0b44,
+ 0x0b47, 0x0b48,
+ 0x0b4b, 0x0b4c,
+ 0x0b56, 0x0b57,
+ 0x0b5c, 0x0b5d,
+ 0x0b5f, 0x0b63,
+ 0x0b71, 0x0b71,
+ 0x0b82, 0x0b83,
+ 0x0b85, 0x0b8a,
+ 0x0b8e, 0x0b90,
+ 0x0b92, 0x0b95,
+ 0x0b99, 0x0b9a,
+ 0x0b9c, 0x0b9c,
+ 0x0b9e, 0x0b9f,
+ 0x0ba3, 0x0ba4,
+ 0x0ba8, 0x0baa,
+ 0x0bae, 0x0bb9,
+ 0x0bbe, 0x0bc2,
+ 0x0bc6, 0x0bc8,
+ 0x0bca, 0x0bcc,
+ 0x0bd0, 0x0bd0,
+ 0x0bd7, 0x0bd7,
+ 0x0c01, 0x0c03,
+ 0x0c05, 0x0c0c,
+ 0x0c0e, 0x0c10,
+ 0x0c12, 0x0c28,
+ 0x0c2a, 0x0c33,
+ 0x0c35, 0x0c39,
+ 0x0c3d, 0x0c44,
+ 0x0c46, 0x0c48,
+ 0x0c4a, 0x0c4c,
+ 0x0c55, 0x0c56,
+ 0x0c58, 0x0c59,
+ 0x0c60, 0x0c63,
+ 0x0c82, 0x0c83,
+ 0x0c85, 0x0c8c,
+ 0x0c8e, 0x0c90,
+ 0x0c92, 0x0ca8,
+ 0x0caa, 0x0cb3,
+ 0x0cb5, 0x0cb9,
+ 0x0cbd, 0x0cc4,
+ 0x0cc6, 0x0cc8,
+ 0x0cca, 0x0ccc,
+ 0x0cd5, 0x0cd6,
+ 0x0cde, 0x0cde,
+ 0x0ce0, 0x0ce3,
+ 0x0cf1, 0x0cf2,
+ 0x0d02, 0x0d03,
+ 0x0d05, 0x0d0c,
+ 0x0d0e, 0x0d10,
+ 0x0d12, 0x0d3a,
+ 0x0d3d, 0x0d44,
+ 0x0d46, 0x0d48,
+ 0x0d4a, 0x0d4c,
+ 0x0d4e, 0x0d4e,
+ 0x0d57, 0x0d57,
+ 0x0d60, 0x0d63,
+ 0x0d7a, 0x0d7f,
+ 0x0d82, 0x0d83,
+ 0x0d85, 0x0d96,
+ 0x0d9a, 0x0db1,
+ 0x0db3, 0x0dbb,
+ 0x0dbd, 0x0dbd,
+ 0x0dc0, 0x0dc6,
+ 0x0dcf, 0x0dd4,
+ 0x0dd6, 0x0dd6,
+ 0x0dd8, 0x0ddf,
+ 0x0df2, 0x0df3,
+ 0x0e01, 0x0e3a,
+ 0x0e40, 0x0e46,
+ 0x0e4d, 0x0e4d,
+ 0x0e81, 0x0e82,
+ 0x0e84, 0x0e84,
+ 0x0e87, 0x0e88,
+ 0x0e8a, 0x0e8a,
+ 0x0e8d, 0x0e8d,
+ 0x0e94, 0x0e97,
+ 0x0e99, 0x0e9f,
+ 0x0ea1, 0x0ea3,
+ 0x0ea5, 0x0ea5,
+ 0x0ea7, 0x0ea7,
+ 0x0eaa, 0x0eab,
+ 0x0ead, 0x0eb9,
+ 0x0ebb, 0x0ebd,
+ 0x0ec0, 0x0ec4,
+ 0x0ec6, 0x0ec6,
+ 0x0ecd, 0x0ecd,
+ 0x0edc, 0x0edd,
+ 0x0f00, 0x0f00,
+ 0x0f40, 0x0f47,
+ 0x0f49, 0x0f6c,
+ 0x0f71, 0x0f81,
+ 0x0f88, 0x0f97,
+ 0x0f99, 0x0fbc,
+ 0x1000, 0x1036,
+ 0x1038, 0x1038,
+ 0x103b, 0x103f,
+ 0x1050, 0x1062,
+ 0x1065, 0x1068,
+ 0x106e, 0x1086,
+ 0x108e, 0x108e,
+ 0x109c, 0x109d,
+ 0x10a0, 0x10c5,
+ 0x10d0, 0x10fa,
+ 0x10fc, 0x10fc,
+ 0x1100, 0x1248,
+ 0x124a, 0x124d,
+ 0x1250, 0x1256,
+ 0x1258, 0x1258,
+ 0x125a, 0x125d,
+ 0x1260, 0x1288,
+ 0x128a, 0x128d,
+ 0x1290, 0x12b0,
+ 0x12b2, 0x12b5,
+ 0x12b8, 0x12be,
+ 0x12c0, 0x12c0,
+ 0x12c2, 0x12c5,
+ 0x12c8, 0x12d6,
+ 0x12d8, 0x1310,
+ 0x1312, 0x1315,
+ 0x1318, 0x135a,
+ 0x135f, 0x135f,
+ 0x1380, 0x138f,
+ 0x13a0, 0x13f4,
+ 0x1401, 0x166c,
+ 0x166f, 0x167f,
+ 0x1681, 0x169a,
+ 0x16a0, 0x16ea,
+ 0x16ee, 0x16f0,
+ 0x1700, 0x170c,
+ 0x170e, 0x1713,
+ 0x1720, 0x1733,
+ 0x1740, 0x1753,
+ 0x1760, 0x176c,
+ 0x176e, 0x1770,
+ 0x1772, 0x1773,
+ 0x1780, 0x17b3,
+ 0x17b6, 0x17c8,
+ 0x17d7, 0x17d7,
+ 0x17dc, 0x17dc,
+ 0x1820, 0x1877,
+ 0x1880, 0x18aa,
+ 0x18b0, 0x18f5,
+ 0x1900, 0x191c,
+ 0x1920, 0x192b,
+ 0x1930, 0x1938,
+ 0x1950, 0x196d,
+ 0x1970, 0x1974,
+ 0x1980, 0x19ab,
+ 0x19b0, 0x19c9,
+ 0x1a00, 0x1a1b,
+ 0x1a20, 0x1a5e,
+ 0x1a61, 0x1a74,
+ 0x1aa7, 0x1aa7,
+ 0x1b00, 0x1b33,
+ 0x1b35, 0x1b43,
+ 0x1b45, 0x1b4b,
+ 0x1b80, 0x1ba9,
+ 0x1bae, 0x1baf,
+ 0x1bc0, 0x1be5,
+ 0x1be7, 0x1bf1,
+ 0x1c00, 0x1c35,
+ 0x1c4d, 0x1c4f,
+ 0x1c5a, 0x1c7d,
+ 0x1ce9, 0x1cec,
+ 0x1cee, 0x1cf2,
+ 0x1d00, 0x1dbf,
+ 0x1e00, 0x1f15,
+ 0x1f18, 0x1f1d,
+ 0x1f20, 0x1f45,
+ 0x1f48, 0x1f4d,
+ 0x1f50, 0x1f57,
+ 0x1f59, 0x1f59,
+ 0x1f5b, 0x1f5b,
+ 0x1f5d, 0x1f5d,
+ 0x1f5f, 0x1f7d,
+ 0x1f80, 0x1fb4,
+ 0x1fb6, 0x1fbc,
+ 0x1fbe, 0x1fbe,
+ 0x1fc2, 0x1fc4,
+ 0x1fc6, 0x1fcc,
+ 0x1fd0, 0x1fd3,
+ 0x1fd6, 0x1fdb,
+ 0x1fe0, 0x1fec,
+ 0x1ff2, 0x1ff4,
+ 0x1ff6, 0x1ffc,
+ 0x2071, 0x2071,
+ 0x207f, 0x207f,
+ 0x2090, 0x209c,
+ 0x2102, 0x2102,
+ 0x2107, 0x2107,
+ 0x210a, 0x2113,
+ 0x2115, 0x2115,
+ 0x2119, 0x211d,
+ 0x2124, 0x2124,
+ 0x2126, 0x2126,
+ 0x2128, 0x2128,
+ 0x212a, 0x212d,
+ 0x212f, 0x2139,
+ 0x213c, 0x213f,
+ 0x2145, 0x2149,
+ 0x214e, 0x214e,
+ 0x2160, 0x2188,
+ 0x24b6, 0x24e9,
+ 0x2c00, 0x2c2e,
+ 0x2c30, 0x2c5e,
+ 0x2c60, 0x2ce4,
+ 0x2ceb, 0x2cee,
+ 0x2d00, 0x2d25,
+ 0x2d30, 0x2d65,
+ 0x2d6f, 0x2d6f,
+ 0x2d80, 0x2d96,
+ 0x2da0, 0x2da6,
+ 0x2da8, 0x2dae,
+ 0x2db0, 0x2db6,
+ 0x2db8, 0x2dbe,
+ 0x2dc0, 0x2dc6,
+ 0x2dc8, 0x2dce,
+ 0x2dd0, 0x2dd6,
+ 0x2dd8, 0x2dde,
+ 0x2de0, 0x2dff,
+ 0x2e2f, 0x2e2f,
+ 0x3005, 0x3007,
+ 0x3021, 0x3029,
+ 0x3031, 0x3035,
+ 0x3038, 0x303c,
+ 0x3041, 0x3096,
+ 0x309d, 0x309f,
+ 0x30a1, 0x30fa,
+ 0x30fc, 0x30ff,
+ 0x3105, 0x312d,
+ 0x3131, 0x318e,
+ 0x31a0, 0x31ba,
+ 0x31f0, 0x31ff,
+ 0x3400, 0x4db5,
+ 0x4e00, 0x9fcb,
+ 0xa000, 0xa48c,
+ 0xa4d0, 0xa4fd,
+ 0xa500, 0xa60c,
+ 0xa610, 0xa61f,
+ 0xa62a, 0xa62b,
+ 0xa640, 0xa66e,
+ 0xa67f, 0xa697,
+ 0xa6a0, 0xa6ef,
+ 0xa717, 0xa71f,
+ 0xa722, 0xa788,
+ 0xa78b, 0xa78e,
+ 0xa790, 0xa791,
+ 0xa7a0, 0xa7a9,
+ 0xa7fa, 0xa801,
+ 0xa803, 0xa805,
+ 0xa807, 0xa80a,
+ 0xa80c, 0xa827,
+ 0xa840, 0xa873,
+ 0xa880, 0xa8c3,
+ 0xa8f2, 0xa8f7,
+ 0xa8fb, 0xa8fb,
+ 0xa90a, 0xa92a,
+ 0xa930, 0xa952,
+ 0xa960, 0xa97c,
+ 0xa980, 0xa9b2,
+ 0xa9b4, 0xa9bf,
+ 0xa9cf, 0xa9cf,
+ 0xaa00, 0xaa36,
+ 0xaa40, 0xaa4d,
+ 0xaa60, 0xaa76,
+ 0xaa7a, 0xaa7a,
+ 0xaa80, 0xaabe,
+ 0xaac0, 0xaac0,
+ 0xaac2, 0xaac2,
+ 0xaadb, 0xaadd,
+ 0xab01, 0xab06,
+ 0xab09, 0xab0e,
+ 0xab11, 0xab16,
+ 0xab20, 0xab26,
+ 0xab28, 0xab2e,
+ 0xabc0, 0xabea,
+ 0xac00, 0xd7a3,
+ 0xd7b0, 0xd7c6,
+ 0xd7cb, 0xd7fb,
+ 0xf900, 0xfa2d,
+ 0xfa30, 0xfa6d,
+ 0xfa70, 0xfad9,
+ 0xfb00, 0xfb06,
+ 0xfb13, 0xfb17,
+ 0xfb1d, 0xfb28,
+ 0xfb2a, 0xfb36,
+ 0xfb38, 0xfb3c,
+ 0xfb3e, 0xfb3e,
+ 0xfb40, 0xfb41,
+ 0xfb43, 0xfb44,
+ 0xfb46, 0xfbb1,
+ 0xfbd3, 0xfd3d,
+ 0xfd50, 0xfd8f,
+ 0xfd92, 0xfdc7,
+ 0xfdf0, 0xfdfb,
+ 0xfe70, 0xfe74,
+ 0xfe76, 0xfefc,
+ 0xff21, 0xff3a,
+ 0xff41, 0xff5a,
+ 0xff66, 0xffbe,
+ 0xffc2, 0xffc7,
+ 0xffca, 0xffcf,
+ 0xffd2, 0xffd7,
+ 0xffda, 0xffdc,
+ 0x10000, 0x1000b,
+ 0x1000d, 0x10026,
+ 0x10028, 0x1003a,
+ 0x1003c, 0x1003d,
+ 0x1003f, 0x1004d,
+ 0x10050, 0x1005d,
+ 0x10080, 0x100fa,
+ 0x10140, 0x10174,
+ 0x10280, 0x1029c,
+ 0x102a0, 0x102d0,
+ 0x10300, 0x1031e,
+ 0x10330, 0x1034a,
+ 0x10380, 0x1039d,
+ 0x103a0, 0x103c3,
+ 0x103c8, 0x103cf,
+ 0x103d1, 0x103d5,
+ 0x10400, 0x1049d,
+ 0x10800, 0x10805,
+ 0x10808, 0x10808,
+ 0x1080a, 0x10835,
+ 0x10837, 0x10838,
+ 0x1083c, 0x1083c,
+ 0x1083f, 0x10855,
+ 0x10900, 0x10915,
+ 0x10920, 0x10939,
+ 0x10a00, 0x10a03,
+ 0x10a05, 0x10a06,
+ 0x10a0c, 0x10a13,
+ 0x10a15, 0x10a17,
+ 0x10a19, 0x10a33,
+ 0x10a60, 0x10a7c,
+ 0x10b00, 0x10b35,
+ 0x10b40, 0x10b55,
+ 0x10b60, 0x10b72,
+ 0x10c00, 0x10c48,
+ 0x11000, 0x11045,
+ 0x11082, 0x110b8,
+ 0x12000, 0x1236e,
+ 0x12400, 0x12462,
+ 0x13000, 0x1342e,
+ 0x16800, 0x16a38,
+ 0x1b000, 0x1b001,
+ 0x1d400, 0x1d454,
+ 0x1d456, 0x1d49c,
+ 0x1d49e, 0x1d49f,
+ 0x1d4a2, 0x1d4a2,
+ 0x1d4a5, 0x1d4a6,
+ 0x1d4a9, 0x1d4ac,
+ 0x1d4ae, 0x1d4b9,
+ 0x1d4bb, 0x1d4bb,
+ 0x1d4bd, 0x1d4c3,
+ 0x1d4c5, 0x1d505,
+ 0x1d507, 0x1d50a,
+ 0x1d50d, 0x1d514,
+ 0x1d516, 0x1d51c,
+ 0x1d51e, 0x1d539,
+ 0x1d53b, 0x1d53e,
+ 0x1d540, 0x1d544,
+ 0x1d546, 0x1d546,
+ 0x1d54a, 0x1d550,
+ 0x1d552, 0x1d6a5,
+ 0x1d6a8, 0x1d6c0,
+ 0x1d6c2, 0x1d6da,
+ 0x1d6dc, 0x1d6fa,
+ 0x1d6fc, 0x1d714,
+ 0x1d716, 0x1d734,
+ 0x1d736, 0x1d74e,
+ 0x1d750, 0x1d76e,
+ 0x1d770, 0x1d788,
+ 0x1d78a, 0x1d7a8,
+ 0x1d7aa, 0x1d7c2,
+ 0x1d7c4, 0x1d7cb,
+ 0x20000, 0x2a6d6,
+ 0x2a700, 0x2b734,
+ 0x2b740, 0x2b81d,
+ 0x2f800, 0x2fa1d,
+}; /* CR_Alphabetic */
+
+/* 'Lowercase': Derived Property */
+static const OnigCodePoint CR_Lowercase[] = {
+ 612,
+ 0x0061, 0x007a,
+ 0x00aa, 0x00aa,
+ 0x00b5, 0x00b5,
+ 0x00ba, 0x00ba,
+ 0x00df, 0x00f6,
+ 0x00f8, 0x00ff,
+ 0x0101, 0x0101,
+ 0x0103, 0x0103,
+ 0x0105, 0x0105,
+ 0x0107, 0x0107,
+ 0x0109, 0x0109,
+ 0x010b, 0x010b,
+ 0x010d, 0x010d,
+ 0x010f, 0x010f,
+ 0x0111, 0x0111,
+ 0x0113, 0x0113,
+ 0x0115, 0x0115,
+ 0x0117, 0x0117,
+ 0x0119, 0x0119,
+ 0x011b, 0x011b,
+ 0x011d, 0x011d,
+ 0x011f, 0x011f,
+ 0x0121, 0x0121,
+ 0x0123, 0x0123,
+ 0x0125, 0x0125,
+ 0x0127, 0x0127,
+ 0x0129, 0x0129,
+ 0x012b, 0x012b,
+ 0x012d, 0x012d,
+ 0x012f, 0x012f,
+ 0x0131, 0x0131,
+ 0x0133, 0x0133,
+ 0x0135, 0x0135,
+ 0x0137, 0x0138,
+ 0x013a, 0x013a,
+ 0x013c, 0x013c,
+ 0x013e, 0x013e,
+ 0x0140, 0x0140,
+ 0x0142, 0x0142,
+ 0x0144, 0x0144,
+ 0x0146, 0x0146,
+ 0x0148, 0x0149,
+ 0x014b, 0x014b,
+ 0x014d, 0x014d,
+ 0x014f, 0x014f,
+ 0x0151, 0x0151,
+ 0x0153, 0x0153,
+ 0x0155, 0x0155,
+ 0x0157, 0x0157,
+ 0x0159, 0x0159,
+ 0x015b, 0x015b,
+ 0x015d, 0x015d,
+ 0x015f, 0x015f,
+ 0x0161, 0x0161,
+ 0x0163, 0x0163,
+ 0x0165, 0x0165,
+ 0x0167, 0x0167,
+ 0x0169, 0x0169,
+ 0x016b, 0x016b,
+ 0x016d, 0x016d,
+ 0x016f, 0x016f,
+ 0x0171, 0x0171,
+ 0x0173, 0x0173,
+ 0x0175, 0x0175,
+ 0x0177, 0x0177,
+ 0x017a, 0x017a,
+ 0x017c, 0x017c,
+ 0x017e, 0x0180,
+ 0x0183, 0x0183,
+ 0x0185, 0x0185,
+ 0x0188, 0x0188,
+ 0x018c, 0x018d,
+ 0x0192, 0x0192,
+ 0x0195, 0x0195,
+ 0x0199, 0x019b,
+ 0x019e, 0x019e,
+ 0x01a1, 0x01a1,
+ 0x01a3, 0x01a3,
+ 0x01a5, 0x01a5,
+ 0x01a8, 0x01a8,
+ 0x01aa, 0x01ab,
+ 0x01ad, 0x01ad,
+ 0x01b0, 0x01b0,
+ 0x01b4, 0x01b4,
+ 0x01b6, 0x01b6,
+ 0x01b9, 0x01ba,
+ 0x01bd, 0x01bf,
+ 0x01c6, 0x01c6,
+ 0x01c9, 0x01c9,
+ 0x01cc, 0x01cc,
+ 0x01ce, 0x01ce,
+ 0x01d0, 0x01d0,
+ 0x01d2, 0x01d2,
+ 0x01d4, 0x01d4,
+ 0x01d6, 0x01d6,
+ 0x01d8, 0x01d8,
+ 0x01da, 0x01da,
+ 0x01dc, 0x01dd,
+ 0x01df, 0x01df,
+ 0x01e1, 0x01e1,
+ 0x01e3, 0x01e3,
+ 0x01e5, 0x01e5,
+ 0x01e7, 0x01e7,
+ 0x01e9, 0x01e9,
+ 0x01eb, 0x01eb,
+ 0x01ed, 0x01ed,
+ 0x01ef, 0x01f0,
+ 0x01f3, 0x01f3,
+ 0x01f5, 0x01f5,
+ 0x01f9, 0x01f9,
+ 0x01fb, 0x01fb,
+ 0x01fd, 0x01fd,
+ 0x01ff, 0x01ff,
+ 0x0201, 0x0201,
+ 0x0203, 0x0203,
+ 0x0205, 0x0205,
+ 0x0207, 0x0207,
+ 0x0209, 0x0209,
+ 0x020b, 0x020b,
+ 0x020d, 0x020d,
+ 0x020f, 0x020f,
+ 0x0211, 0x0211,
+ 0x0213, 0x0213,
+ 0x0215, 0x0215,
+ 0x0217, 0x0217,
+ 0x0219, 0x0219,
+ 0x021b, 0x021b,
+ 0x021d, 0x021d,
+ 0x021f, 0x021f,
+ 0x0221, 0x0221,
+ 0x0223, 0x0223,
+ 0x0225, 0x0225,
+ 0x0227, 0x0227,
+ 0x0229, 0x0229,
+ 0x022b, 0x022b,
+ 0x022d, 0x022d,
+ 0x022f, 0x022f,
+ 0x0231, 0x0231,
+ 0x0233, 0x0239,
+ 0x023c, 0x023c,
+ 0x023f, 0x0240,
+ 0x0242, 0x0242,
+ 0x0247, 0x0247,
+ 0x0249, 0x0249,
+ 0x024b, 0x024b,
+ 0x024d, 0x024d,
+ 0x024f, 0x0293,
+ 0x0295, 0x02b8,
+ 0x02c0, 0x02c1,
+ 0x02e0, 0x02e4,
+ 0x0345, 0x0345,
+ 0x0371, 0x0371,
+ 0x0373, 0x0373,
+ 0x0377, 0x0377,
+ 0x037a, 0x037d,
+ 0x0390, 0x0390,
+ 0x03ac, 0x03ce,
+ 0x03d0, 0x03d1,
+ 0x03d5, 0x03d7,
+ 0x03d9, 0x03d9,
+ 0x03db, 0x03db,
+ 0x03dd, 0x03dd,
+ 0x03df, 0x03df,
+ 0x03e1, 0x03e1,
+ 0x03e3, 0x03e3,
+ 0x03e5, 0x03e5,
+ 0x03e7, 0x03e7,
+ 0x03e9, 0x03e9,
+ 0x03eb, 0x03eb,
+ 0x03ed, 0x03ed,
+ 0x03ef, 0x03f3,
+ 0x03f5, 0x03f5,
+ 0x03f8, 0x03f8,
+ 0x03fb, 0x03fc,
+ 0x0430, 0x045f,
+ 0x0461, 0x0461,
+ 0x0463, 0x0463,
+ 0x0465, 0x0465,
+ 0x0467, 0x0467,
+ 0x0469, 0x0469,
+ 0x046b, 0x046b,
+ 0x046d, 0x046d,
+ 0x046f, 0x046f,
+ 0x0471, 0x0471,
+ 0x0473, 0x0473,
+ 0x0475, 0x0475,
+ 0x0477, 0x0477,
+ 0x0479, 0x0479,
+ 0x047b, 0x047b,
+ 0x047d, 0x047d,
+ 0x047f, 0x047f,
+ 0x0481, 0x0481,
+ 0x048b, 0x048b,
+ 0x048d, 0x048d,
+ 0x048f, 0x048f,
+ 0x0491, 0x0491,
+ 0x0493, 0x0493,
+ 0x0495, 0x0495,
+ 0x0497, 0x0497,
+ 0x0499, 0x0499,
+ 0x049b, 0x049b,
+ 0x049d, 0x049d,
+ 0x049f, 0x049f,
+ 0x04a1, 0x04a1,
+ 0x04a3, 0x04a3,
+ 0x04a5, 0x04a5,
+ 0x04a7, 0x04a7,
+ 0x04a9, 0x04a9,
+ 0x04ab, 0x04ab,
+ 0x04ad, 0x04ad,
+ 0x04af, 0x04af,
+ 0x04b1, 0x04b1,
+ 0x04b3, 0x04b3,
+ 0x04b5, 0x04b5,
+ 0x04b7, 0x04b7,
+ 0x04b9, 0x04b9,
+ 0x04bb, 0x04bb,
+ 0x04bd, 0x04bd,
+ 0x04bf, 0x04bf,
+ 0x04c2, 0x04c2,
+ 0x04c4, 0x04c4,
+ 0x04c6, 0x04c6,
+ 0x04c8, 0x04c8,
+ 0x04ca, 0x04ca,
+ 0x04cc, 0x04cc,
+ 0x04ce, 0x04cf,
+ 0x04d1, 0x04d1,
+ 0x04d3, 0x04d3,
+ 0x04d5, 0x04d5,
+ 0x04d7, 0x04d7,
+ 0x04d9, 0x04d9,
+ 0x04db, 0x04db,
+ 0x04dd, 0x04dd,
+ 0x04df, 0x04df,
+ 0x04e1, 0x04e1,
+ 0x04e3, 0x04e3,
+ 0x04e5, 0x04e5,
+ 0x04e7, 0x04e7,
+ 0x04e9, 0x04e9,
+ 0x04eb, 0x04eb,
+ 0x04ed, 0x04ed,
+ 0x04ef, 0x04ef,
+ 0x04f1, 0x04f1,
+ 0x04f3, 0x04f3,
+ 0x04f5, 0x04f5,
+ 0x04f7, 0x04f7,
+ 0x04f9, 0x04f9,
+ 0x04fb, 0x04fb,
+ 0x04fd, 0x04fd,
+ 0x04ff, 0x04ff,
+ 0x0501, 0x0501,
+ 0x0503, 0x0503,
+ 0x0505, 0x0505,
+ 0x0507, 0x0507,
+ 0x0509, 0x0509,
+ 0x050b, 0x050b,
+ 0x050d, 0x050d,
+ 0x050f, 0x050f,
+ 0x0511, 0x0511,
+ 0x0513, 0x0513,
+ 0x0515, 0x0515,
+ 0x0517, 0x0517,
+ 0x0519, 0x0519,
+ 0x051b, 0x051b,
+ 0x051d, 0x051d,
+ 0x051f, 0x051f,
+ 0x0521, 0x0521,
+ 0x0523, 0x0523,
+ 0x0525, 0x0525,
+ 0x0527, 0x0527,
+ 0x0561, 0x0587,
+ 0x1d00, 0x1dbf,
+ 0x1e01, 0x1e01,
+ 0x1e03, 0x1e03,
+ 0x1e05, 0x1e05,
+ 0x1e07, 0x1e07,
+ 0x1e09, 0x1e09,
+ 0x1e0b, 0x1e0b,
+ 0x1e0d, 0x1e0d,
+ 0x1e0f, 0x1e0f,
+ 0x1e11, 0x1e11,
+ 0x1e13, 0x1e13,
+ 0x1e15, 0x1e15,
+ 0x1e17, 0x1e17,
+ 0x1e19, 0x1e19,
+ 0x1e1b, 0x1e1b,
+ 0x1e1d, 0x1e1d,
+ 0x1e1f, 0x1e1f,
+ 0x1e21, 0x1e21,
+ 0x1e23, 0x1e23,
+ 0x1e25, 0x1e25,
+ 0x1e27, 0x1e27,
+ 0x1e29, 0x1e29,
+ 0x1e2b, 0x1e2b,
+ 0x1e2d, 0x1e2d,
+ 0x1e2f, 0x1e2f,
+ 0x1e31, 0x1e31,
+ 0x1e33, 0x1e33,
+ 0x1e35, 0x1e35,
+ 0x1e37, 0x1e37,
+ 0x1e39, 0x1e39,
+ 0x1e3b, 0x1e3b,
+ 0x1e3d, 0x1e3d,
+ 0x1e3f, 0x1e3f,
+ 0x1e41, 0x1e41,
+ 0x1e43, 0x1e43,
+ 0x1e45, 0x1e45,
+ 0x1e47, 0x1e47,
+ 0x1e49, 0x1e49,
+ 0x1e4b, 0x1e4b,
+ 0x1e4d, 0x1e4d,
+ 0x1e4f, 0x1e4f,
+ 0x1e51, 0x1e51,
+ 0x1e53, 0x1e53,
+ 0x1e55, 0x1e55,
+ 0x1e57, 0x1e57,
+ 0x1e59, 0x1e59,
+ 0x1e5b, 0x1e5b,
+ 0x1e5d, 0x1e5d,
+ 0x1e5f, 0x1e5f,
+ 0x1e61, 0x1e61,
+ 0x1e63, 0x1e63,
+ 0x1e65, 0x1e65,
+ 0x1e67, 0x1e67,
+ 0x1e69, 0x1e69,
+ 0x1e6b, 0x1e6b,
+ 0x1e6d, 0x1e6d,
+ 0x1e6f, 0x1e6f,
+ 0x1e71, 0x1e71,
+ 0x1e73, 0x1e73,
+ 0x1e75, 0x1e75,
+ 0x1e77, 0x1e77,
+ 0x1e79, 0x1e79,
+ 0x1e7b, 0x1e7b,
+ 0x1e7d, 0x1e7d,
+ 0x1e7f, 0x1e7f,
+ 0x1e81, 0x1e81,
+ 0x1e83, 0x1e83,
+ 0x1e85, 0x1e85,
+ 0x1e87, 0x1e87,
+ 0x1e89, 0x1e89,
+ 0x1e8b, 0x1e8b,
+ 0x1e8d, 0x1e8d,
+ 0x1e8f, 0x1e8f,
+ 0x1e91, 0x1e91,
+ 0x1e93, 0x1e93,
+ 0x1e95, 0x1e9d,
+ 0x1e9f, 0x1e9f,
+ 0x1ea1, 0x1ea1,
+ 0x1ea3, 0x1ea3,
+ 0x1ea5, 0x1ea5,
+ 0x1ea7, 0x1ea7,
+ 0x1ea9, 0x1ea9,
+ 0x1eab, 0x1eab,
+ 0x1ead, 0x1ead,
+ 0x1eaf, 0x1eaf,
+ 0x1eb1, 0x1eb1,
+ 0x1eb3, 0x1eb3,
+ 0x1eb5, 0x1eb5,
+ 0x1eb7, 0x1eb7,
+ 0x1eb9, 0x1eb9,
+ 0x1ebb, 0x1ebb,
+ 0x1ebd, 0x1ebd,
+ 0x1ebf, 0x1ebf,
+ 0x1ec1, 0x1ec1,
+ 0x1ec3, 0x1ec3,
+ 0x1ec5, 0x1ec5,
+ 0x1ec7, 0x1ec7,
+ 0x1ec9, 0x1ec9,
+ 0x1ecb, 0x1ecb,
+ 0x1ecd, 0x1ecd,
+ 0x1ecf, 0x1ecf,
+ 0x1ed1, 0x1ed1,
+ 0x1ed3, 0x1ed3,
+ 0x1ed5, 0x1ed5,
+ 0x1ed7, 0x1ed7,
+ 0x1ed9, 0x1ed9,
+ 0x1edb, 0x1edb,
+ 0x1edd, 0x1edd,
+ 0x1edf, 0x1edf,
+ 0x1ee1, 0x1ee1,
+ 0x1ee3, 0x1ee3,
+ 0x1ee5, 0x1ee5,
+ 0x1ee7, 0x1ee7,
+ 0x1ee9, 0x1ee9,
+ 0x1eeb, 0x1eeb,
+ 0x1eed, 0x1eed,
+ 0x1eef, 0x1eef,
+ 0x1ef1, 0x1ef1,
+ 0x1ef3, 0x1ef3,
+ 0x1ef5, 0x1ef5,
+ 0x1ef7, 0x1ef7,
+ 0x1ef9, 0x1ef9,
+ 0x1efb, 0x1efb,
+ 0x1efd, 0x1efd,
+ 0x1eff, 0x1f07,
+ 0x1f10, 0x1f15,
+ 0x1f20, 0x1f27,
+ 0x1f30, 0x1f37,
+ 0x1f40, 0x1f45,
+ 0x1f50, 0x1f57,
+ 0x1f60, 0x1f67,
+ 0x1f70, 0x1f7d,
+ 0x1f80, 0x1f87,
+ 0x1f90, 0x1f97,
+ 0x1fa0, 0x1fa7,
+ 0x1fb0, 0x1fb4,
+ 0x1fb6, 0x1fb7,
+ 0x1fbe, 0x1fbe,
+ 0x1fc2, 0x1fc4,
+ 0x1fc6, 0x1fc7,
+ 0x1fd0, 0x1fd3,
+ 0x1fd6, 0x1fd7,
+ 0x1fe0, 0x1fe7,
+ 0x1ff2, 0x1ff4,
+ 0x1ff6, 0x1ff7,
+ 0x2090, 0x2094,
+ 0x210a, 0x210a,
+ 0x210e, 0x210f,
+ 0x2113, 0x2113,
+ 0x212f, 0x212f,
+ 0x2134, 0x2134,
+ 0x2139, 0x2139,
+ 0x213c, 0x213d,
+ 0x2146, 0x2149,
+ 0x214e, 0x214e,
+ 0x2170, 0x217f,
+ 0x2184, 0x2184,
+ 0x24d0, 0x24e9,
+ 0x2c30, 0x2c5e,
+ 0x2c61, 0x2c61,
+ 0x2c65, 0x2c66,
+ 0x2c68, 0x2c68,
+ 0x2c6a, 0x2c6a,
+ 0x2c6c, 0x2c6c,
+ 0x2c71, 0x2c71,
+ 0x2c73, 0x2c74,
+ 0x2c76, 0x2c7d,
+ 0x2c81, 0x2c81,
+ 0x2c83, 0x2c83,
+ 0x2c85, 0x2c85,
+ 0x2c87, 0x2c87,
+ 0x2c89, 0x2c89,
+ 0x2c8b, 0x2c8b,
+ 0x2c8d, 0x2c8d,
+ 0x2c8f, 0x2c8f,
+ 0x2c91, 0x2c91,
+ 0x2c93, 0x2c93,
+ 0x2c95, 0x2c95,
+ 0x2c97, 0x2c97,
+ 0x2c99, 0x2c99,
+ 0x2c9b, 0x2c9b,
+ 0x2c9d, 0x2c9d,
+ 0x2c9f, 0x2c9f,
+ 0x2ca1, 0x2ca1,
+ 0x2ca3, 0x2ca3,
+ 0x2ca5, 0x2ca5,
+ 0x2ca7, 0x2ca7,
+ 0x2ca9, 0x2ca9,
+ 0x2cab, 0x2cab,
+ 0x2cad, 0x2cad,
+ 0x2caf, 0x2caf,
+ 0x2cb1, 0x2cb1,
+ 0x2cb3, 0x2cb3,
+ 0x2cb5, 0x2cb5,
+ 0x2cb7, 0x2cb7,
+ 0x2cb9, 0x2cb9,
+ 0x2cbb, 0x2cbb,
+ 0x2cbd, 0x2cbd,
+ 0x2cbf, 0x2cbf,
+ 0x2cc1, 0x2cc1,
+ 0x2cc3, 0x2cc3,
+ 0x2cc5, 0x2cc5,
+ 0x2cc7, 0x2cc7,
+ 0x2cc9, 0x2cc9,
+ 0x2ccb, 0x2ccb,
+ 0x2ccd, 0x2ccd,
+ 0x2ccf, 0x2ccf,
+ 0x2cd1, 0x2cd1,
+ 0x2cd3, 0x2cd3,
+ 0x2cd5, 0x2cd5,
+ 0x2cd7, 0x2cd7,
+ 0x2cd9, 0x2cd9,
+ 0x2cdb, 0x2cdb,
+ 0x2cdd, 0x2cdd,
+ 0x2cdf, 0x2cdf,
+ 0x2ce1, 0x2ce1,
+ 0x2ce3, 0x2ce4,
+ 0x2cec, 0x2cec,
+ 0x2cee, 0x2cee,
+ 0x2d00, 0x2d25,
+ 0xa641, 0xa641,
+ 0xa643, 0xa643,
+ 0xa645, 0xa645,
+ 0xa647, 0xa647,
+ 0xa649, 0xa649,
+ 0xa64b, 0xa64b,
+ 0xa64d, 0xa64d,
+ 0xa64f, 0xa64f,
+ 0xa651, 0xa651,
+ 0xa653, 0xa653,
+ 0xa655, 0xa655,
+ 0xa657, 0xa657,
+ 0xa659, 0xa659,
+ 0xa65b, 0xa65b,
+ 0xa65d, 0xa65d,
+ 0xa65f, 0xa65f,
+ 0xa661, 0xa661,
+ 0xa663, 0xa663,
+ 0xa665, 0xa665,
+ 0xa667, 0xa667,
+ 0xa669, 0xa669,
+ 0xa66b, 0xa66b,
+ 0xa66d, 0xa66d,
+ 0xa681, 0xa681,
+ 0xa683, 0xa683,
+ 0xa685, 0xa685,
+ 0xa687, 0xa687,
+ 0xa689, 0xa689,
+ 0xa68b, 0xa68b,
+ 0xa68d, 0xa68d,
+ 0xa68f, 0xa68f,
+ 0xa691, 0xa691,
+ 0xa693, 0xa693,
+ 0xa695, 0xa695,
+ 0xa697, 0xa697,
+ 0xa723, 0xa723,
+ 0xa725, 0xa725,
+ 0xa727, 0xa727,
+ 0xa729, 0xa729,
+ 0xa72b, 0xa72b,
+ 0xa72d, 0xa72d,
+ 0xa72f, 0xa731,
+ 0xa733, 0xa733,
+ 0xa735, 0xa735,
+ 0xa737, 0xa737,
+ 0xa739, 0xa739,
+ 0xa73b, 0xa73b,
+ 0xa73d, 0xa73d,
+ 0xa73f, 0xa73f,
+ 0xa741, 0xa741,
+ 0xa743, 0xa743,
+ 0xa745, 0xa745,
+ 0xa747, 0xa747,
+ 0xa749, 0xa749,
+ 0xa74b, 0xa74b,
+ 0xa74d, 0xa74d,
+ 0xa74f, 0xa74f,
+ 0xa751, 0xa751,
+ 0xa753, 0xa753,
+ 0xa755, 0xa755,
+ 0xa757, 0xa757,
+ 0xa759, 0xa759,
+ 0xa75b, 0xa75b,
+ 0xa75d, 0xa75d,
+ 0xa75f, 0xa75f,
+ 0xa761, 0xa761,
+ 0xa763, 0xa763,
+ 0xa765, 0xa765,
+ 0xa767, 0xa767,
+ 0xa769, 0xa769,
+ 0xa76b, 0xa76b,
+ 0xa76d, 0xa76d,
+ 0xa76f, 0xa778,
+ 0xa77a, 0xa77a,
+ 0xa77c, 0xa77c,
+ 0xa77f, 0xa77f,
+ 0xa781, 0xa781,
+ 0xa783, 0xa783,
+ 0xa785, 0xa785,
+ 0xa787, 0xa787,
+ 0xa78c, 0xa78c,
+ 0xa78e, 0xa78e,
+ 0xa791, 0xa791,
+ 0xa7a1, 0xa7a1,
+ 0xa7a3, 0xa7a3,
+ 0xa7a5, 0xa7a5,
+ 0xa7a7, 0xa7a7,
+ 0xa7a9, 0xa7a9,
+ 0xa7fa, 0xa7fa,
+ 0xfb00, 0xfb06,
+ 0xfb13, 0xfb17,
+ 0xff41, 0xff5a,
+ 0x10428, 0x1044f,
+ 0x1d41a, 0x1d433,
+ 0x1d44e, 0x1d454,
+ 0x1d456, 0x1d467,
+ 0x1d482, 0x1d49b,
+ 0x1d4b6, 0x1d4b9,
+ 0x1d4bb, 0x1d4bb,
+ 0x1d4bd, 0x1d4c3,
+ 0x1d4c5, 0x1d4cf,
+ 0x1d4ea, 0x1d503,
+ 0x1d51e, 0x1d537,
+ 0x1d552, 0x1d56b,
+ 0x1d586, 0x1d59f,
+ 0x1d5ba, 0x1d5d3,
+ 0x1d5ee, 0x1d607,
+ 0x1d622, 0x1d63b,
+ 0x1d656, 0x1d66f,
+ 0x1d68a, 0x1d6a5,
+ 0x1d6c2, 0x1d6da,
+ 0x1d6dc, 0x1d6e1,
+ 0x1d6fc, 0x1d714,
+ 0x1d716, 0x1d71b,
+ 0x1d736, 0x1d74e,
+ 0x1d750, 0x1d755,
+ 0x1d770, 0x1d788,
+ 0x1d78a, 0x1d78f,
+ 0x1d7aa, 0x1d7c2,
+ 0x1d7c4, 0x1d7c9,
+ 0x1d7cb, 0x1d7cb,
+}; /* CR_Lowercase */
+
+/* 'Uppercase': Derived Property */
+static const OnigCodePoint CR_Uppercase[] = {
+ 605,
+ 0x0041, 0x005a,
+ 0x00c0, 0x00d6,
+ 0x00d8, 0x00de,
+ 0x0100, 0x0100,
+ 0x0102, 0x0102,
+ 0x0104, 0x0104,
+ 0x0106, 0x0106,
+ 0x0108, 0x0108,
+ 0x010a, 0x010a,
+ 0x010c, 0x010c,
+ 0x010e, 0x010e,
+ 0x0110, 0x0110,
+ 0x0112, 0x0112,
+ 0x0114, 0x0114,
+ 0x0116, 0x0116,
+ 0x0118, 0x0118,
+ 0x011a, 0x011a,
+ 0x011c, 0x011c,
+ 0x011e, 0x011e,
+ 0x0120, 0x0120,
+ 0x0122, 0x0122,
+ 0x0124, 0x0124,
+ 0x0126, 0x0126,
+ 0x0128, 0x0128,
+ 0x012a, 0x012a,
+ 0x012c, 0x012c,
+ 0x012e, 0x012e,
+ 0x0130, 0x0130,
+ 0x0132, 0x0132,
+ 0x0134, 0x0134,
+ 0x0136, 0x0136,
+ 0x0139, 0x0139,
+ 0x013b, 0x013b,
+ 0x013d, 0x013d,
+ 0x013f, 0x013f,
+ 0x0141, 0x0141,
+ 0x0143, 0x0143,
+ 0x0145, 0x0145,
+ 0x0147, 0x0147,
+ 0x014a, 0x014a,
+ 0x014c, 0x014c,
+ 0x014e, 0x014e,
+ 0x0150, 0x0150,
+ 0x0152, 0x0152,
+ 0x0154, 0x0154,
+ 0x0156, 0x0156,
+ 0x0158, 0x0158,
+ 0x015a, 0x015a,
+ 0x015c, 0x015c,
+ 0x015e, 0x015e,
+ 0x0160, 0x0160,
+ 0x0162, 0x0162,
+ 0x0164, 0x0164,
+ 0x0166, 0x0166,
+ 0x0168, 0x0168,
+ 0x016a, 0x016a,
+ 0x016c, 0x016c,
+ 0x016e, 0x016e,
+ 0x0170, 0x0170,
+ 0x0172, 0x0172,
+ 0x0174, 0x0174,
+ 0x0176, 0x0176,
+ 0x0178, 0x0179,
+ 0x017b, 0x017b,
+ 0x017d, 0x017d,
+ 0x0181, 0x0182,
+ 0x0184, 0x0184,
+ 0x0186, 0x0187,
+ 0x0189, 0x018b,
+ 0x018e, 0x0191,
+ 0x0193, 0x0194,
+ 0x0196, 0x0198,
+ 0x019c, 0x019d,
+ 0x019f, 0x01a0,
+ 0x01a2, 0x01a2,
+ 0x01a4, 0x01a4,
+ 0x01a6, 0x01a7,
+ 0x01a9, 0x01a9,
+ 0x01ac, 0x01ac,
+ 0x01ae, 0x01af,
+ 0x01b1, 0x01b3,
+ 0x01b5, 0x01b5,
+ 0x01b7, 0x01b8,
+ 0x01bc, 0x01bc,
+ 0x01c4, 0x01c4,
+ 0x01c7, 0x01c7,
+ 0x01ca, 0x01ca,
+ 0x01cd, 0x01cd,
+ 0x01cf, 0x01cf,
+ 0x01d1, 0x01d1,
+ 0x01d3, 0x01d3,
+ 0x01d5, 0x01d5,
+ 0x01d7, 0x01d7,
+ 0x01d9, 0x01d9,
+ 0x01db, 0x01db,
+ 0x01de, 0x01de,
+ 0x01e0, 0x01e0,
+ 0x01e2, 0x01e2,
+ 0x01e4, 0x01e4,
+ 0x01e6, 0x01e6,
+ 0x01e8, 0x01e8,
+ 0x01ea, 0x01ea,
+ 0x01ec, 0x01ec,
+ 0x01ee, 0x01ee,
+ 0x01f1, 0x01f1,
+ 0x01f4, 0x01f4,
+ 0x01f6, 0x01f8,
+ 0x01fa, 0x01fa,
+ 0x01fc, 0x01fc,
+ 0x01fe, 0x01fe,
+ 0x0200, 0x0200,
+ 0x0202, 0x0202,
+ 0x0204, 0x0204,
+ 0x0206, 0x0206,
+ 0x0208, 0x0208,
+ 0x020a, 0x020a,
+ 0x020c, 0x020c,
+ 0x020e, 0x020e,
+ 0x0210, 0x0210,
+ 0x0212, 0x0212,
+ 0x0214, 0x0214,
+ 0x0216, 0x0216,
+ 0x0218, 0x0218,
+ 0x021a, 0x021a,
+ 0x021c, 0x021c,
+ 0x021e, 0x021e,
+ 0x0220, 0x0220,
+ 0x0222, 0x0222,
+ 0x0224, 0x0224,
+ 0x0226, 0x0226,
+ 0x0228, 0x0228,
+ 0x022a, 0x022a,
+ 0x022c, 0x022c,
+ 0x022e, 0x022e,
+ 0x0230, 0x0230,
+ 0x0232, 0x0232,
+ 0x023a, 0x023b,
+ 0x023d, 0x023e,
+ 0x0241, 0x0241,
+ 0x0243, 0x0246,
+ 0x0248, 0x0248,
+ 0x024a, 0x024a,
+ 0x024c, 0x024c,
+ 0x024e, 0x024e,
+ 0x0370, 0x0370,
+ 0x0372, 0x0372,
+ 0x0376, 0x0376,
+ 0x0386, 0x0386,
+ 0x0388, 0x038a,
+ 0x038c, 0x038c,
+ 0x038e, 0x038f,
+ 0x0391, 0x03a1,
+ 0x03a3, 0x03ab,
+ 0x03cf, 0x03cf,
+ 0x03d2, 0x03d4,
+ 0x03d8, 0x03d8,
+ 0x03da, 0x03da,
+ 0x03dc, 0x03dc,
+ 0x03de, 0x03de,
+ 0x03e0, 0x03e0,
+ 0x03e2, 0x03e2,
+ 0x03e4, 0x03e4,
+ 0x03e6, 0x03e6,
+ 0x03e8, 0x03e8,
+ 0x03ea, 0x03ea,
+ 0x03ec, 0x03ec,
+ 0x03ee, 0x03ee,
+ 0x03f4, 0x03f4,
+ 0x03f7, 0x03f7,
+ 0x03f9, 0x03fa,
+ 0x03fd, 0x042f,
+ 0x0460, 0x0460,
+ 0x0462, 0x0462,
+ 0x0464, 0x0464,
+ 0x0466, 0x0466,
+ 0x0468, 0x0468,
+ 0x046a, 0x046a,
+ 0x046c, 0x046c,
+ 0x046e, 0x046e,
+ 0x0470, 0x0470,
+ 0x0472, 0x0472,
+ 0x0474, 0x0474,
+ 0x0476, 0x0476,
+ 0x0478, 0x0478,
+ 0x047a, 0x047a,
+ 0x047c, 0x047c,
+ 0x047e, 0x047e,
+ 0x0480, 0x0480,
+ 0x048a, 0x048a,
+ 0x048c, 0x048c,
+ 0x048e, 0x048e,
+ 0x0490, 0x0490,
+ 0x0492, 0x0492,
+ 0x0494, 0x0494,
+ 0x0496, 0x0496,
+ 0x0498, 0x0498,
+ 0x049a, 0x049a,
+ 0x049c, 0x049c,
+ 0x049e, 0x049e,
+ 0x04a0, 0x04a0,
+ 0x04a2, 0x04a2,
+ 0x04a4, 0x04a4,
+ 0x04a6, 0x04a6,
+ 0x04a8, 0x04a8,
+ 0x04aa, 0x04aa,
+ 0x04ac, 0x04ac,
+ 0x04ae, 0x04ae,
+ 0x04b0, 0x04b0,
+ 0x04b2, 0x04b2,
+ 0x04b4, 0x04b4,
+ 0x04b6, 0x04b6,
+ 0x04b8, 0x04b8,
+ 0x04ba, 0x04ba,
+ 0x04bc, 0x04bc,
+ 0x04be, 0x04be,
+ 0x04c0, 0x04c1,
+ 0x04c3, 0x04c3,
+ 0x04c5, 0x04c5,
+ 0x04c7, 0x04c7,
+ 0x04c9, 0x04c9,
+ 0x04cb, 0x04cb,
+ 0x04cd, 0x04cd,
+ 0x04d0, 0x04d0,
+ 0x04d2, 0x04d2,
+ 0x04d4, 0x04d4,
+ 0x04d6, 0x04d6,
+ 0x04d8, 0x04d8,
+ 0x04da, 0x04da,
+ 0x04dc, 0x04dc,
+ 0x04de, 0x04de,
+ 0x04e0, 0x04e0,
+ 0x04e2, 0x04e2,
+ 0x04e4, 0x04e4,
+ 0x04e6, 0x04e6,
+ 0x04e8, 0x04e8,
+ 0x04ea, 0x04ea,
+ 0x04ec, 0x04ec,
+ 0x04ee, 0x04ee,
+ 0x04f0, 0x04f0,
+ 0x04f2, 0x04f2,
+ 0x04f4, 0x04f4,
+ 0x04f6, 0x04f6,
+ 0x04f8, 0x04f8,
+ 0x04fa, 0x04fa,
+ 0x04fc, 0x04fc,
+ 0x04fe, 0x04fe,
+ 0x0500, 0x0500,
+ 0x0502, 0x0502,
+ 0x0504, 0x0504,
+ 0x0506, 0x0506,
+ 0x0508, 0x0508,
+ 0x050a, 0x050a,
+ 0x050c, 0x050c,
+ 0x050e, 0x050e,
+ 0x0510, 0x0510,
+ 0x0512, 0x0512,
+ 0x0514, 0x0514,
+ 0x0516, 0x0516,
+ 0x0518, 0x0518,
+ 0x051a, 0x051a,
+ 0x051c, 0x051c,
+ 0x051e, 0x051e,
+ 0x0520, 0x0520,
+ 0x0522, 0x0522,
+ 0x0524, 0x0524,
+ 0x0526, 0x0526,
+ 0x0531, 0x0556,
+ 0x10a0, 0x10c5,
+ 0x1e00, 0x1e00,
+ 0x1e02, 0x1e02,
+ 0x1e04, 0x1e04,
+ 0x1e06, 0x1e06,
+ 0x1e08, 0x1e08,
+ 0x1e0a, 0x1e0a,
+ 0x1e0c, 0x1e0c,
+ 0x1e0e, 0x1e0e,
+ 0x1e10, 0x1e10,
+ 0x1e12, 0x1e12,
+ 0x1e14, 0x1e14,
+ 0x1e16, 0x1e16,
+ 0x1e18, 0x1e18,
+ 0x1e1a, 0x1e1a,
+ 0x1e1c, 0x1e1c,
+ 0x1e1e, 0x1e1e,
+ 0x1e20, 0x1e20,
+ 0x1e22, 0x1e22,
+ 0x1e24, 0x1e24,
+ 0x1e26, 0x1e26,
+ 0x1e28, 0x1e28,
+ 0x1e2a, 0x1e2a,
+ 0x1e2c, 0x1e2c,
+ 0x1e2e, 0x1e2e,
+ 0x1e30, 0x1e30,
+ 0x1e32, 0x1e32,
+ 0x1e34, 0x1e34,
+ 0x1e36, 0x1e36,
+ 0x1e38, 0x1e38,
+ 0x1e3a, 0x1e3a,
+ 0x1e3c, 0x1e3c,
+ 0x1e3e, 0x1e3e,
+ 0x1e40, 0x1e40,
+ 0x1e42, 0x1e42,
+ 0x1e44, 0x1e44,
+ 0x1e46, 0x1e46,
+ 0x1e48, 0x1e48,
+ 0x1e4a, 0x1e4a,
+ 0x1e4c, 0x1e4c,
+ 0x1e4e, 0x1e4e,
+ 0x1e50, 0x1e50,
+ 0x1e52, 0x1e52,
+ 0x1e54, 0x1e54,
+ 0x1e56, 0x1e56,
+ 0x1e58, 0x1e58,
+ 0x1e5a, 0x1e5a,
+ 0x1e5c, 0x1e5c,
+ 0x1e5e, 0x1e5e,
+ 0x1e60, 0x1e60,
+ 0x1e62, 0x1e62,
+ 0x1e64, 0x1e64,
+ 0x1e66, 0x1e66,
+ 0x1e68, 0x1e68,
+ 0x1e6a, 0x1e6a,
+ 0x1e6c, 0x1e6c,
+ 0x1e6e, 0x1e6e,
+ 0x1e70, 0x1e70,
+ 0x1e72, 0x1e72,
+ 0x1e74, 0x1e74,
+ 0x1e76, 0x1e76,
+ 0x1e78, 0x1e78,
+ 0x1e7a, 0x1e7a,
+ 0x1e7c, 0x1e7c,
+ 0x1e7e, 0x1e7e,
+ 0x1e80, 0x1e80,
+ 0x1e82, 0x1e82,
+ 0x1e84, 0x1e84,
+ 0x1e86, 0x1e86,
+ 0x1e88, 0x1e88,
+ 0x1e8a, 0x1e8a,
+ 0x1e8c, 0x1e8c,
+ 0x1e8e, 0x1e8e,
+ 0x1e90, 0x1e90,
+ 0x1e92, 0x1e92,
+ 0x1e94, 0x1e94,
+ 0x1e9e, 0x1e9e,
+ 0x1ea0, 0x1ea0,
+ 0x1ea2, 0x1ea2,
+ 0x1ea4, 0x1ea4,
+ 0x1ea6, 0x1ea6,
+ 0x1ea8, 0x1ea8,
+ 0x1eaa, 0x1eaa,
+ 0x1eac, 0x1eac,
+ 0x1eae, 0x1eae,
+ 0x1eb0, 0x1eb0,
+ 0x1eb2, 0x1eb2,
+ 0x1eb4, 0x1eb4,
+ 0x1eb6, 0x1eb6,
+ 0x1eb8, 0x1eb8,
+ 0x1eba, 0x1eba,
+ 0x1ebc, 0x1ebc,
+ 0x1ebe, 0x1ebe,
+ 0x1ec0, 0x1ec0,
+ 0x1ec2, 0x1ec2,
+ 0x1ec4, 0x1ec4,
+ 0x1ec6, 0x1ec6,
+ 0x1ec8, 0x1ec8,
+ 0x1eca, 0x1eca,
+ 0x1ecc, 0x1ecc,
+ 0x1ece, 0x1ece,
+ 0x1ed0, 0x1ed0,
+ 0x1ed2, 0x1ed2,
+ 0x1ed4, 0x1ed4,
+ 0x1ed6, 0x1ed6,
+ 0x1ed8, 0x1ed8,
+ 0x1eda, 0x1eda,
+ 0x1edc, 0x1edc,
+ 0x1ede, 0x1ede,
+ 0x1ee0, 0x1ee0,
+ 0x1ee2, 0x1ee2,
+ 0x1ee4, 0x1ee4,
+ 0x1ee6, 0x1ee6,
+ 0x1ee8, 0x1ee8,
+ 0x1eea, 0x1eea,
+ 0x1eec, 0x1eec,
+ 0x1eee, 0x1eee,
+ 0x1ef0, 0x1ef0,
+ 0x1ef2, 0x1ef2,
+ 0x1ef4, 0x1ef4,
+ 0x1ef6, 0x1ef6,
+ 0x1ef8, 0x1ef8,
+ 0x1efa, 0x1efa,
+ 0x1efc, 0x1efc,
+ 0x1efe, 0x1efe,
+ 0x1f08, 0x1f0f,
+ 0x1f18, 0x1f1d,
+ 0x1f28, 0x1f2f,
+ 0x1f38, 0x1f3f,
+ 0x1f48, 0x1f4d,
+ 0x1f59, 0x1f59,
+ 0x1f5b, 0x1f5b,
+ 0x1f5d, 0x1f5d,
+ 0x1f5f, 0x1f5f,
+ 0x1f68, 0x1f6f,
+ 0x1fb8, 0x1fbb,
+ 0x1fc8, 0x1fcb,
+ 0x1fd8, 0x1fdb,
+ 0x1fe8, 0x1fec,
+ 0x1ff8, 0x1ffb,
+ 0x2102, 0x2102,
+ 0x2107, 0x2107,
+ 0x210b, 0x210d,
+ 0x2110, 0x2112,
+ 0x2115, 0x2115,
+ 0x2119, 0x211d,
+ 0x2124, 0x2124,
+ 0x2126, 0x2126,
+ 0x2128, 0x2128,
+ 0x212a, 0x212d,
+ 0x2130, 0x2133,
+ 0x213e, 0x213f,
+ 0x2145, 0x2145,
+ 0x2160, 0x216f,
+ 0x2183, 0x2183,
+ 0x24b6, 0x24cf,
+ 0x2c00, 0x2c2e,
+ 0x2c60, 0x2c60,
+ 0x2c62, 0x2c64,
+ 0x2c67, 0x2c67,
+ 0x2c69, 0x2c69,
+ 0x2c6b, 0x2c6b,
+ 0x2c6d, 0x2c70,
+ 0x2c72, 0x2c72,
+ 0x2c75, 0x2c75,
+ 0x2c7e, 0x2c80,
+ 0x2c82, 0x2c82,
+ 0x2c84, 0x2c84,
+ 0x2c86, 0x2c86,
+ 0x2c88, 0x2c88,
+ 0x2c8a, 0x2c8a,
+ 0x2c8c, 0x2c8c,
+ 0x2c8e, 0x2c8e,
+ 0x2c90, 0x2c90,
+ 0x2c92, 0x2c92,
+ 0x2c94, 0x2c94,
+ 0x2c96, 0x2c96,
+ 0x2c98, 0x2c98,
+ 0x2c9a, 0x2c9a,
+ 0x2c9c, 0x2c9c,
+ 0x2c9e, 0x2c9e,
+ 0x2ca0, 0x2ca0,
+ 0x2ca2, 0x2ca2,
+ 0x2ca4, 0x2ca4,
+ 0x2ca6, 0x2ca6,
+ 0x2ca8, 0x2ca8,
+ 0x2caa, 0x2caa,
+ 0x2cac, 0x2cac,
+ 0x2cae, 0x2cae,
+ 0x2cb0, 0x2cb0,
+ 0x2cb2, 0x2cb2,
+ 0x2cb4, 0x2cb4,
+ 0x2cb6, 0x2cb6,
+ 0x2cb8, 0x2cb8,
+ 0x2cba, 0x2cba,
+ 0x2cbc, 0x2cbc,
+ 0x2cbe, 0x2cbe,
+ 0x2cc0, 0x2cc0,
+ 0x2cc2, 0x2cc2,
+ 0x2cc4, 0x2cc4,
+ 0x2cc6, 0x2cc6,
+ 0x2cc8, 0x2cc8,
+ 0x2cca, 0x2cca,
+ 0x2ccc, 0x2ccc,
+ 0x2cce, 0x2cce,
+ 0x2cd0, 0x2cd0,
+ 0x2cd2, 0x2cd2,
+ 0x2cd4, 0x2cd4,
+ 0x2cd6, 0x2cd6,
+ 0x2cd8, 0x2cd8,
+ 0x2cda, 0x2cda,
+ 0x2cdc, 0x2cdc,
+ 0x2cde, 0x2cde,
+ 0x2ce0, 0x2ce0,
+ 0x2ce2, 0x2ce2,
+ 0x2ceb, 0x2ceb,
+ 0x2ced, 0x2ced,
+ 0xa640, 0xa640,
+ 0xa642, 0xa642,
+ 0xa644, 0xa644,
+ 0xa646, 0xa646,
+ 0xa648, 0xa648,
+ 0xa64a, 0xa64a,
+ 0xa64c, 0xa64c,
+ 0xa64e, 0xa64e,
+ 0xa650, 0xa650,
+ 0xa652, 0xa652,
+ 0xa654, 0xa654,
+ 0xa656, 0xa656,
+ 0xa658, 0xa658,
+ 0xa65a, 0xa65a,
+ 0xa65c, 0xa65c,
+ 0xa65e, 0xa65e,
+ 0xa660, 0xa660,
+ 0xa662, 0xa662,
+ 0xa664, 0xa664,
+ 0xa666, 0xa666,
+ 0xa668, 0xa668,
+ 0xa66a, 0xa66a,
+ 0xa66c, 0xa66c,
+ 0xa680, 0xa680,
+ 0xa682, 0xa682,
+ 0xa684, 0xa684,
+ 0xa686, 0xa686,
+ 0xa688, 0xa688,
+ 0xa68a, 0xa68a,
+ 0xa68c, 0xa68c,
+ 0xa68e, 0xa68e,
+ 0xa690, 0xa690,
+ 0xa692, 0xa692,
+ 0xa694, 0xa694,
+ 0xa696, 0xa696,
+ 0xa722, 0xa722,
+ 0xa724, 0xa724,
+ 0xa726, 0xa726,
+ 0xa728, 0xa728,
+ 0xa72a, 0xa72a,
+ 0xa72c, 0xa72c,
+ 0xa72e, 0xa72e,
+ 0xa732, 0xa732,
+ 0xa734, 0xa734,
+ 0xa736, 0xa736,
+ 0xa738, 0xa738,
+ 0xa73a, 0xa73a,
+ 0xa73c, 0xa73c,
+ 0xa73e, 0xa73e,
+ 0xa740, 0xa740,
+ 0xa742, 0xa742,
+ 0xa744, 0xa744,
+ 0xa746, 0xa746,
+ 0xa748, 0xa748,
+ 0xa74a, 0xa74a,
+ 0xa74c, 0xa74c,
+ 0xa74e, 0xa74e,
+ 0xa750, 0xa750,
+ 0xa752, 0xa752,
+ 0xa754, 0xa754,
+ 0xa756, 0xa756,
+ 0xa758, 0xa758,
+ 0xa75a, 0xa75a,
+ 0xa75c, 0xa75c,
+ 0xa75e, 0xa75e,
+ 0xa760, 0xa760,
+ 0xa762, 0xa762,
+ 0xa764, 0xa764,
+ 0xa766, 0xa766,
+ 0xa768, 0xa768,
+ 0xa76a, 0xa76a,
+ 0xa76c, 0xa76c,
+ 0xa76e, 0xa76e,
+ 0xa779, 0xa779,
+ 0xa77b, 0xa77b,
+ 0xa77d, 0xa77e,
+ 0xa780, 0xa780,
+ 0xa782, 0xa782,
+ 0xa784, 0xa784,
+ 0xa786, 0xa786,
+ 0xa78b, 0xa78b,
+ 0xa78d, 0xa78d,
+ 0xa790, 0xa790,
+ 0xa7a0, 0xa7a0,
+ 0xa7a2, 0xa7a2,
+ 0xa7a4, 0xa7a4,
+ 0xa7a6, 0xa7a6,
+ 0xa7a8, 0xa7a8,
+ 0xff21, 0xff3a,
+ 0x10400, 0x10427,
+ 0x1d400, 0x1d419,
+ 0x1d434, 0x1d44d,
+ 0x1d468, 0x1d481,
+ 0x1d49c, 0x1d49c,
+ 0x1d49e, 0x1d49f,
+ 0x1d4a2, 0x1d4a2,
+ 0x1d4a5, 0x1d4a6,
+ 0x1d4a9, 0x1d4ac,
+ 0x1d4ae, 0x1d4b5,
+ 0x1d4d0, 0x1d4e9,
+ 0x1d504, 0x1d505,
+ 0x1d507, 0x1d50a,
+ 0x1d50d, 0x1d514,
+ 0x1d516, 0x1d51c,
+ 0x1d538, 0x1d539,
+ 0x1d53b, 0x1d53e,
+ 0x1d540, 0x1d544,
+ 0x1d546, 0x1d546,
+ 0x1d54a, 0x1d550,
+ 0x1d56c, 0x1d585,
+ 0x1d5a0, 0x1d5b9,
+ 0x1d5d4, 0x1d5ed,
+ 0x1d608, 0x1d621,
+ 0x1d63c, 0x1d655,
+ 0x1d670, 0x1d689,
+ 0x1d6a8, 0x1d6c0,
+ 0x1d6e2, 0x1d6fa,
+ 0x1d71c, 0x1d734,
+ 0x1d756, 0x1d76e,
+ 0x1d790, 0x1d7a8,
+ 0x1d7ca, 0x1d7ca,
+}; /* CR_Uppercase */
+
+/* 'Cased': Derived Property */
+static const OnigCodePoint CR_Cased[] = {
+ 112,
+ 0x0041, 0x005a,
+ 0x0061, 0x007a,
+ 0x00aa, 0x00aa,
+ 0x00b5, 0x00b5,
+ 0x00ba, 0x00ba,
+ 0x00c0, 0x00d6,
+ 0x00d8, 0x00f6,
+ 0x00f8, 0x01ba,
+ 0x01bc, 0x01bf,
+ 0x01c4, 0x0293,
+ 0x0295, 0x02b8,
+ 0x02c0, 0x02c1,
+ 0x02e0, 0x02e4,
+ 0x0345, 0x0345,
+ 0x0370, 0x0373,
+ 0x0376, 0x0377,
+ 0x037a, 0x037d,
+ 0x0386, 0x0386,
+ 0x0388, 0x038a,
+ 0x038c, 0x038c,
+ 0x038e, 0x03a1,
+ 0x03a3, 0x03f5,
+ 0x03f7, 0x0481,
+ 0x048a, 0x0527,
+ 0x0531, 0x0556,
+ 0x0561, 0x0587,
+ 0x10a0, 0x10c5,
+ 0x1d00, 0x1dbf,
+ 0x1e00, 0x1f15,
+ 0x1f18, 0x1f1d,
+ 0x1f20, 0x1f45,
+ 0x1f48, 0x1f4d,
+ 0x1f50, 0x1f57,
+ 0x1f59, 0x1f59,
+ 0x1f5b, 0x1f5b,
+ 0x1f5d, 0x1f5d,
+ 0x1f5f, 0x1f7d,
+ 0x1f80, 0x1fb4,
+ 0x1fb6, 0x1fbc,
+ 0x1fbe, 0x1fbe,
+ 0x1fc2, 0x1fc4,
+ 0x1fc6, 0x1fcc,
+ 0x1fd0, 0x1fd3,
+ 0x1fd6, 0x1fdb,
+ 0x1fe0, 0x1fec,
+ 0x1ff2, 0x1ff4,
+ 0x1ff6, 0x1ffc,
+ 0x2090, 0x2094,
+ 0x2102, 0x2102,
+ 0x2107, 0x2107,
+ 0x210a, 0x2113,
+ 0x2115, 0x2115,
+ 0x2119, 0x211d,
+ 0x2124, 0x2124,
+ 0x2126, 0x2126,
+ 0x2128, 0x2128,
+ 0x212a, 0x212d,
+ 0x212f, 0x2134,
+ 0x2139, 0x2139,
+ 0x213c, 0x213f,
+ 0x2145, 0x2149,
+ 0x214e, 0x214e,
+ 0x2160, 0x217f,
+ 0x2183, 0x2184,
+ 0x24b6, 0x24e9,
+ 0x2c00, 0x2c2e,
+ 0x2c30, 0x2c5e,
+ 0x2c60, 0x2ce4,
+ 0x2ceb, 0x2cee,
+ 0x2d00, 0x2d25,
+ 0xa640, 0xa66d,
+ 0xa680, 0xa697,
+ 0xa722, 0xa787,
+ 0xa78b, 0xa78e,
+ 0xa790, 0xa791,
+ 0xa7a0, 0xa7a9,
+ 0xa7fa, 0xa7fa,
+ 0xfb00, 0xfb06,
+ 0xfb13, 0xfb17,
+ 0xff21, 0xff3a,
+ 0xff41, 0xff5a,
+ 0x10400, 0x1044f,
+ 0x1d400, 0x1d454,
+ 0x1d456, 0x1d49c,
+ 0x1d49e, 0x1d49f,
+ 0x1d4a2, 0x1d4a2,
+ 0x1d4a5, 0x1d4a6,
+ 0x1d4a9, 0x1d4ac,
+ 0x1d4ae, 0x1d4b9,
+ 0x1d4bb, 0x1d4bb,
+ 0x1d4bd, 0x1d4c3,
+ 0x1d4c5, 0x1d505,
+ 0x1d507, 0x1d50a,
+ 0x1d50d, 0x1d514,
+ 0x1d516, 0x1d51c,
+ 0x1d51e, 0x1d539,
+ 0x1d53b, 0x1d53e,
+ 0x1d540, 0x1d544,
+ 0x1d546, 0x1d546,
+ 0x1d54a, 0x1d550,
+ 0x1d552, 0x1d6a5,
+ 0x1d6a8, 0x1d6c0,
+ 0x1d6c2, 0x1d6da,
+ 0x1d6dc, 0x1d6fa,
+ 0x1d6fc, 0x1d714,
+ 0x1d716, 0x1d734,
+ 0x1d736, 0x1d74e,
+ 0x1d750, 0x1d76e,
+ 0x1d770, 0x1d788,
+ 0x1d78a, 0x1d7a8,
+ 0x1d7aa, 0x1d7c2,
+ 0x1d7c4, 0x1d7cb,
+}; /* CR_Cased */
+
+/* 'Case_Ignorable': Derived Property */
+static const OnigCodePoint CR_Case_Ignorable[] = {
+ 277,
+ 0x0027, 0x0027,
+ 0x002e, 0x002e,
+ 0x003a, 0x003a,
+ 0x005e, 0x005e,
+ 0x0060, 0x0060,
+ 0x00a8, 0x00a8,
+ 0x00ad, 0x00ad,
+ 0x00af, 0x00af,
+ 0x00b4, 0x00b4,
+ 0x00b7, 0x00b8,
+ 0x02b0, 0x036f,
+ 0x0374, 0x0375,
+ 0x037a, 0x037a,
+ 0x0384, 0x0385,
+ 0x0387, 0x0387,
+ 0x0483, 0x0489,
+ 0x0559, 0x0559,
+ 0x0591, 0x05bd,
+ 0x05bf, 0x05bf,
+ 0x05c1, 0x05c2,
+ 0x05c4, 0x05c5,
+ 0x05c7, 0x05c7,
+ 0x05f4, 0x05f4,
+ 0x0600, 0x0603,
+ 0x0610, 0x061a,
+ 0x0640, 0x0640,
+ 0x064b, 0x065f,
+ 0x0670, 0x0670,
+ 0x06d6, 0x06dd,
+ 0x06df, 0x06e8,
+ 0x06ea, 0x06ed,
+ 0x070f, 0x070f,
+ 0x0711, 0x0711,
+ 0x0730, 0x074a,
+ 0x07a6, 0x07b0,
+ 0x07eb, 0x07f5,
+ 0x07fa, 0x07fa,
+ 0x0816, 0x082d,
+ 0x0859, 0x085b,
+ 0x0900, 0x0902,
+ 0x093a, 0x093a,
+ 0x093c, 0x093c,
+ 0x0941, 0x0948,
+ 0x094d, 0x094d,
+ 0x0951, 0x0957,
+ 0x0962, 0x0963,
+ 0x0971, 0x0971,
+ 0x0981, 0x0981,
+ 0x09bc, 0x09bc,
+ 0x09c1, 0x09c4,
+ 0x09cd, 0x09cd,
+ 0x09e2, 0x09e3,
+ 0x0a01, 0x0a02,
+ 0x0a3c, 0x0a3c,
+ 0x0a41, 0x0a42,
+ 0x0a47, 0x0a48,
+ 0x0a4b, 0x0a4d,
+ 0x0a51, 0x0a51,
+ 0x0a70, 0x0a71,
+ 0x0a75, 0x0a75,
+ 0x0a81, 0x0a82,
+ 0x0abc, 0x0abc,
+ 0x0ac1, 0x0ac5,
+ 0x0ac7, 0x0ac8,
+ 0x0acd, 0x0acd,
+ 0x0ae2, 0x0ae3,
+ 0x0b01, 0x0b01,
+ 0x0b3c, 0x0b3c,
+ 0x0b3f, 0x0b3f,
+ 0x0b41, 0x0b44,
+ 0x0b4d, 0x0b4d,
+ 0x0b56, 0x0b56,
+ 0x0b62, 0x0b63,
+ 0x0b82, 0x0b82,
+ 0x0bc0, 0x0bc0,
+ 0x0bcd, 0x0bcd,
+ 0x0c3e, 0x0c40,
+ 0x0c46, 0x0c48,
+ 0x0c4a, 0x0c4d,
+ 0x0c55, 0x0c56,
+ 0x0c62, 0x0c63,
+ 0x0cbc, 0x0cbc,
+ 0x0cbf, 0x0cbf,
+ 0x0cc6, 0x0cc6,
+ 0x0ccc, 0x0ccd,
+ 0x0ce2, 0x0ce3,
+ 0x0d41, 0x0d44,
+ 0x0d4d, 0x0d4d,
+ 0x0d62, 0x0d63,
+ 0x0dca, 0x0dca,
+ 0x0dd2, 0x0dd4,
+ 0x0dd6, 0x0dd6,
+ 0x0e31, 0x0e31,
+ 0x0e34, 0x0e3a,
+ 0x0e46, 0x0e4e,
+ 0x0eb1, 0x0eb1,
+ 0x0eb4, 0x0eb9,
+ 0x0ebb, 0x0ebc,
+ 0x0ec6, 0x0ec6,
+ 0x0ec8, 0x0ecd,
+ 0x0f18, 0x0f19,
+ 0x0f35, 0x0f35,
+ 0x0f37, 0x0f37,
+ 0x0f39, 0x0f39,
+ 0x0f71, 0x0f7e,
+ 0x0f80, 0x0f84,
+ 0x0f86, 0x0f87,
+ 0x0f8d, 0x0f97,
+ 0x0f99, 0x0fbc,
+ 0x0fc6, 0x0fc6,
+ 0x102d, 0x1030,
+ 0x1032, 0x1037,
+ 0x1039, 0x103a,
+ 0x103d, 0x103e,
+ 0x1058, 0x1059,
+ 0x105e, 0x1060,
+ 0x1071, 0x1074,
+ 0x1082, 0x1082,
+ 0x1085, 0x1086,
+ 0x108d, 0x108d,
+ 0x109d, 0x109d,
+ 0x10fc, 0x10fc,
+ 0x135d, 0x135f,
+ 0x1712, 0x1714,
+ 0x1732, 0x1734,
+ 0x1752, 0x1753,
+ 0x1772, 0x1773,
+ 0x17b4, 0x17b5,
+ 0x17b7, 0x17bd,
+ 0x17c6, 0x17c6,
+ 0x17c9, 0x17d3,
+ 0x17d7, 0x17d7,
+ 0x17dd, 0x17dd,
+ 0x180b, 0x180d,
+ 0x1843, 0x1843,
+ 0x18a9, 0x18a9,
+ 0x1920, 0x1922,
+ 0x1927, 0x1928,
+ 0x1932, 0x1932,
+ 0x1939, 0x193b,
+ 0x1a17, 0x1a18,
+ 0x1a56, 0x1a56,
+ 0x1a58, 0x1a5e,
+ 0x1a60, 0x1a60,
+ 0x1a62, 0x1a62,
+ 0x1a65, 0x1a6c,
+ 0x1a73, 0x1a7c,
+ 0x1a7f, 0x1a7f,
+ 0x1aa7, 0x1aa7,
+ 0x1b00, 0x1b03,
+ 0x1b34, 0x1b34,
+ 0x1b36, 0x1b3a,
+ 0x1b3c, 0x1b3c,
+ 0x1b42, 0x1b42,
+ 0x1b6b, 0x1b73,
+ 0x1b80, 0x1b81,
+ 0x1ba2, 0x1ba5,
+ 0x1ba8, 0x1ba9,
+ 0x1be6, 0x1be6,
+ 0x1be8, 0x1be9,
+ 0x1bed, 0x1bed,
+ 0x1bef, 0x1bf1,
+ 0x1c2c, 0x1c33,
+ 0x1c36, 0x1c37,
+ 0x1c78, 0x1c7d,
+ 0x1cd0, 0x1cd2,
+ 0x1cd4, 0x1ce0,
+ 0x1ce2, 0x1ce8,
+ 0x1ced, 0x1ced,
+ 0x1d2c, 0x1d61,
+ 0x1d78, 0x1d78,
+ 0x1d9b, 0x1de6,
+ 0x1dfc, 0x1dff,
+ 0x1fbd, 0x1fbd,
+ 0x1fbf, 0x1fc1,
+ 0x1fcd, 0x1fcf,
+ 0x1fdd, 0x1fdf,
+ 0x1fed, 0x1fef,
+ 0x1ffd, 0x1ffe,
+ 0x200b, 0x200f,
+ 0x2018, 0x2019,
+ 0x2024, 0x2024,
+ 0x2027, 0x2027,
+ 0x202a, 0x202e,
+ 0x2060, 0x2064,
+ 0x206a, 0x206f,
+ 0x2071, 0x2071,
+ 0x207f, 0x207f,
+ 0x2090, 0x209c,
+ 0x20d0, 0x20f0,
+ 0x2c7d, 0x2c7d,
+ 0x2cef, 0x2cf1,
+ 0x2d6f, 0x2d6f,
+ 0x2d7f, 0x2d7f,
+ 0x2de0, 0x2dff,
+ 0x2e2f, 0x2e2f,
+ 0x3005, 0x3005,
+ 0x302a, 0x302f,
+ 0x3031, 0x3035,
+ 0x303b, 0x303b,
+ 0x3099, 0x309e,
+ 0x30fc, 0x30fe,
+ 0xa015, 0xa015,
+ 0xa4f8, 0xa4fd,
+ 0xa60c, 0xa60c,
+ 0xa66f, 0xa672,
+ 0xa67c, 0xa67d,
+ 0xa67f, 0xa67f,
+ 0xa6f0, 0xa6f1,
+ 0xa700, 0xa721,
+ 0xa770, 0xa770,
+ 0xa788, 0xa78a,
+ 0xa802, 0xa802,
+ 0xa806, 0xa806,
+ 0xa80b, 0xa80b,
+ 0xa825, 0xa826,
+ 0xa8c4, 0xa8c4,
+ 0xa8e0, 0xa8f1,
+ 0xa926, 0xa92d,
+ 0xa947, 0xa951,
+ 0xa980, 0xa982,
+ 0xa9b3, 0xa9b3,
+ 0xa9b6, 0xa9b9,
+ 0xa9bc, 0xa9bc,
+ 0xa9cf, 0xa9cf,
+ 0xaa29, 0xaa2e,
+ 0xaa31, 0xaa32,
+ 0xaa35, 0xaa36,
+ 0xaa43, 0xaa43,
+ 0xaa4c, 0xaa4c,
+ 0xaa70, 0xaa70,
+ 0xaab0, 0xaab0,
+ 0xaab2, 0xaab4,
+ 0xaab7, 0xaab8,
+ 0xaabe, 0xaabf,
+ 0xaac1, 0xaac1,
+ 0xaadd, 0xaadd,
+ 0xabe5, 0xabe5,
+ 0xabe8, 0xabe8,
+ 0xabed, 0xabed,
+ 0xfb1e, 0xfb1e,
+ 0xfbb2, 0xfbc1,
+ 0xfe00, 0xfe0f,
+ 0xfe13, 0xfe13,
+ 0xfe20, 0xfe26,
+ 0xfe52, 0xfe52,
+ 0xfe55, 0xfe55,
+ 0xfeff, 0xfeff,
+ 0xff07, 0xff07,
+ 0xff0e, 0xff0e,
+ 0xff1a, 0xff1a,
+ 0xff3e, 0xff3e,
+ 0xff40, 0xff40,
+ 0xff70, 0xff70,
+ 0xff9e, 0xff9f,
+ 0xffe3, 0xffe3,
+ 0xfff9, 0xfffb,
+ 0x101fd, 0x101fd,
+ 0x10a01, 0x10a03,
+ 0x10a05, 0x10a06,
+ 0x10a0c, 0x10a0f,
+ 0x10a38, 0x10a3a,
+ 0x10a3f, 0x10a3f,
+ 0x11001, 0x11001,
+ 0x11038, 0x11046,
+ 0x11080, 0x11081,
+ 0x110b3, 0x110b6,
+ 0x110b9, 0x110ba,
+ 0x110bd, 0x110bd,
+ 0x1d167, 0x1d169,
+ 0x1d173, 0x1d182,
+ 0x1d185, 0x1d18b,
+ 0x1d1aa, 0x1d1ad,
+ 0x1d242, 0x1d244,
+ 0xe0001, 0xe0001,
+ 0xe0020, 0xe007f,
+ 0xe0100, 0xe01ef,
+}; /* CR_Case_Ignorable */
+
+/* 'Changes_When_Lowercased': Derived Property */
+static const OnigCodePoint CR_Changes_When_Lowercased[] = {
+ 566,
+ 0x0041, 0x005a,
+ 0x00c0, 0x00d6,
+ 0x00d8, 0x00de,
+ 0x0100, 0x0100,
+ 0x0102, 0x0102,
+ 0x0104, 0x0104,
+ 0x0106, 0x0106,
+ 0x0108, 0x0108,
+ 0x010a, 0x010a,
+ 0x010c, 0x010c,
+ 0x010e, 0x010e,
+ 0x0110, 0x0110,
+ 0x0112, 0x0112,
+ 0x0114, 0x0114,
+ 0x0116, 0x0116,
+ 0x0118, 0x0118,
+ 0x011a, 0x011a,
+ 0x011c, 0x011c,
+ 0x011e, 0x011e,
+ 0x0120, 0x0120,
+ 0x0122, 0x0122,
+ 0x0124, 0x0124,
+ 0x0126, 0x0126,
+ 0x0128, 0x0128,
+ 0x012a, 0x012a,
+ 0x012c, 0x012c,
+ 0x012e, 0x012e,
+ 0x0130, 0x0130,
+ 0x0132, 0x0132,
+ 0x0134, 0x0134,
+ 0x0136, 0x0136,
+ 0x0139, 0x0139,
+ 0x013b, 0x013b,
+ 0x013d, 0x013d,
+ 0x013f, 0x013f,
+ 0x0141, 0x0141,
+ 0x0143, 0x0143,
+ 0x0145, 0x0145,
+ 0x0147, 0x0147,
+ 0x014a, 0x014a,
+ 0x014c, 0x014c,
+ 0x014e, 0x014e,
+ 0x0150, 0x0150,
+ 0x0152, 0x0152,
+ 0x0154, 0x0154,
+ 0x0156, 0x0156,
+ 0x0158, 0x0158,
+ 0x015a, 0x015a,
+ 0x015c, 0x015c,
+ 0x015e, 0x015e,
+ 0x0160, 0x0160,
+ 0x0162, 0x0162,
+ 0x0164, 0x0164,
+ 0x0166, 0x0166,
+ 0x0168, 0x0168,
+ 0x016a, 0x016a,
+ 0x016c, 0x016c,
+ 0x016e, 0x016e,
+ 0x0170, 0x0170,
+ 0x0172, 0x0172,
+ 0x0174, 0x0174,
+ 0x0176, 0x0176,
+ 0x0178, 0x0179,
+ 0x017b, 0x017b,
+ 0x017d, 0x017d,
+ 0x0181, 0x0182,
+ 0x0184, 0x0184,
+ 0x0186, 0x0187,
+ 0x0189, 0x018b,
+ 0x018e, 0x0191,
+ 0x0193, 0x0194,
+ 0x0196, 0x0198,
+ 0x019c, 0x019d,
+ 0x019f, 0x01a0,
+ 0x01a2, 0x01a2,
+ 0x01a4, 0x01a4,
+ 0x01a6, 0x01a7,
+ 0x01a9, 0x01a9,
+ 0x01ac, 0x01ac,
+ 0x01ae, 0x01af,
+ 0x01b1, 0x01b3,
+ 0x01b5, 0x01b5,
+ 0x01b7, 0x01b8,
+ 0x01bc, 0x01bc,
+ 0x01c4, 0x01c5,
+ 0x01c7, 0x01c8,
+ 0x01ca, 0x01cb,
+ 0x01cd, 0x01cd,
+ 0x01cf, 0x01cf,
+ 0x01d1, 0x01d1,
+ 0x01d3, 0x01d3,
+ 0x01d5, 0x01d5,
+ 0x01d7, 0x01d7,
+ 0x01d9, 0x01d9,
+ 0x01db, 0x01db,
+ 0x01de, 0x01de,
+ 0x01e0, 0x01e0,
+ 0x01e2, 0x01e2,
+ 0x01e4, 0x01e4,
+ 0x01e6, 0x01e6,
+ 0x01e8, 0x01e8,
+ 0x01ea, 0x01ea,
+ 0x01ec, 0x01ec,
+ 0x01ee, 0x01ee,
+ 0x01f1, 0x01f2,
+ 0x01f4, 0x01f4,
+ 0x01f6, 0x01f8,
+ 0x01fa, 0x01fa,
+ 0x01fc, 0x01fc,
+ 0x01fe, 0x01fe,
+ 0x0200, 0x0200,
+ 0x0202, 0x0202,
+ 0x0204, 0x0204,
+ 0x0206, 0x0206,
+ 0x0208, 0x0208,
+ 0x020a, 0x020a,
+ 0x020c, 0x020c,
+ 0x020e, 0x020e,
+ 0x0210, 0x0210,
+ 0x0212, 0x0212,
+ 0x0214, 0x0214,
+ 0x0216, 0x0216,
+ 0x0218, 0x0218,
+ 0x021a, 0x021a,
+ 0x021c, 0x021c,
+ 0x021e, 0x021e,
+ 0x0220, 0x0220,
+ 0x0222, 0x0222,
+ 0x0224, 0x0224,
+ 0x0226, 0x0226,
+ 0x0228, 0x0228,
+ 0x022a, 0x022a,
+ 0x022c, 0x022c,
+ 0x022e, 0x022e,
+ 0x0230, 0x0230,
+ 0x0232, 0x0232,
+ 0x023a, 0x023b,
+ 0x023d, 0x023e,
+ 0x0241, 0x0241,
+ 0x0243, 0x0246,
+ 0x0248, 0x0248,
+ 0x024a, 0x024a,
+ 0x024c, 0x024c,
+ 0x024e, 0x024e,
+ 0x0370, 0x0370,
+ 0x0372, 0x0372,
+ 0x0376, 0x0376,
+ 0x0386, 0x0386,
+ 0x0388, 0x038a,
+ 0x038c, 0x038c,
+ 0x038e, 0x038f,
+ 0x0391, 0x03a1,
+ 0x03a3, 0x03ab,
+ 0x03cf, 0x03cf,
+ 0x03d8, 0x03d8,
+ 0x03da, 0x03da,
+ 0x03dc, 0x03dc,
+ 0x03de, 0x03de,
+ 0x03e0, 0x03e0,
+ 0x03e2, 0x03e2,
+ 0x03e4, 0x03e4,
+ 0x03e6, 0x03e6,
+ 0x03e8, 0x03e8,
+ 0x03ea, 0x03ea,
+ 0x03ec, 0x03ec,
+ 0x03ee, 0x03ee,
+ 0x03f4, 0x03f4,
+ 0x03f7, 0x03f7,
+ 0x03f9, 0x03fa,
+ 0x03fd, 0x042f,
+ 0x0460, 0x0460,
+ 0x0462, 0x0462,
+ 0x0464, 0x0464,
+ 0x0466, 0x0466,
+ 0x0468, 0x0468,
+ 0x046a, 0x046a,
+ 0x046c, 0x046c,
+ 0x046e, 0x046e,
+ 0x0470, 0x0470,
+ 0x0472, 0x0472,
+ 0x0474, 0x0474,
+ 0x0476, 0x0476,
+ 0x0478, 0x0478,
+ 0x047a, 0x047a,
+ 0x047c, 0x047c,
+ 0x047e, 0x047e,
+ 0x0480, 0x0480,
+ 0x048a, 0x048a,
+ 0x048c, 0x048c,
+ 0x048e, 0x048e,
+ 0x0490, 0x0490,
+ 0x0492, 0x0492,
+ 0x0494, 0x0494,
+ 0x0496, 0x0496,
+ 0x0498, 0x0498,
+ 0x049a, 0x049a,
+ 0x049c, 0x049c,
+ 0x049e, 0x049e,
+ 0x04a0, 0x04a0,
+ 0x04a2, 0x04a2,
+ 0x04a4, 0x04a4,
+ 0x04a6, 0x04a6,
+ 0x04a8, 0x04a8,
+ 0x04aa, 0x04aa,
+ 0x04ac, 0x04ac,
+ 0x04ae, 0x04ae,
+ 0x04b0, 0x04b0,
+ 0x04b2, 0x04b2,
+ 0x04b4, 0x04b4,
+ 0x04b6, 0x04b6,
+ 0x04b8, 0x04b8,
+ 0x04ba, 0x04ba,
+ 0x04bc, 0x04bc,
+ 0x04be, 0x04be,
+ 0x04c0, 0x04c1,
+ 0x04c3, 0x04c3,
+ 0x04c5, 0x04c5,
+ 0x04c7, 0x04c7,
+ 0x04c9, 0x04c9,
+ 0x04cb, 0x04cb,
+ 0x04cd, 0x04cd,
+ 0x04d0, 0x04d0,
+ 0x04d2, 0x04d2,
+ 0x04d4, 0x04d4,
+ 0x04d6, 0x04d6,
+ 0x04d8, 0x04d8,
+ 0x04da, 0x04da,
+ 0x04dc, 0x04dc,
+ 0x04de, 0x04de,
+ 0x04e0, 0x04e0,
+ 0x04e2, 0x04e2,
+ 0x04e4, 0x04e4,
+ 0x04e6, 0x04e6,
+ 0x04e8, 0x04e8,
+ 0x04ea, 0x04ea,
+ 0x04ec, 0x04ec,
+ 0x04ee, 0x04ee,
+ 0x04f0, 0x04f0,
+ 0x04f2, 0x04f2,
+ 0x04f4, 0x04f4,
+ 0x04f6, 0x04f6,
+ 0x04f8, 0x04f8,
+ 0x04fa, 0x04fa,
+ 0x04fc, 0x04fc,
+ 0x04fe, 0x04fe,
+ 0x0500, 0x0500,
+ 0x0502, 0x0502,
+ 0x0504, 0x0504,
+ 0x0506, 0x0506,
+ 0x0508, 0x0508,
+ 0x050a, 0x050a,
+ 0x050c, 0x050c,
+ 0x050e, 0x050e,
+ 0x0510, 0x0510,
+ 0x0512, 0x0512,
+ 0x0514, 0x0514,
+ 0x0516, 0x0516,
+ 0x0518, 0x0518,
+ 0x051a, 0x051a,
+ 0x051c, 0x051c,
+ 0x051e, 0x051e,
+ 0x0520, 0x0520,
+ 0x0522, 0x0522,
+ 0x0524, 0x0524,
+ 0x0526, 0x0526,
+ 0x0531, 0x0556,
+ 0x10a0, 0x10c5,
+ 0x1e00, 0x1e00,
+ 0x1e02, 0x1e02,
+ 0x1e04, 0x1e04,
+ 0x1e06, 0x1e06,
+ 0x1e08, 0x1e08,
+ 0x1e0a, 0x1e0a,
+ 0x1e0c, 0x1e0c,
+ 0x1e0e, 0x1e0e,
+ 0x1e10, 0x1e10,
+ 0x1e12, 0x1e12,
+ 0x1e14, 0x1e14,
+ 0x1e16, 0x1e16,
+ 0x1e18, 0x1e18,
+ 0x1e1a, 0x1e1a,
+ 0x1e1c, 0x1e1c,
+ 0x1e1e, 0x1e1e,
+ 0x1e20, 0x1e20,
+ 0x1e22, 0x1e22,
+ 0x1e24, 0x1e24,
+ 0x1e26, 0x1e26,
+ 0x1e28, 0x1e28,
+ 0x1e2a, 0x1e2a,
+ 0x1e2c, 0x1e2c,
+ 0x1e2e, 0x1e2e,
+ 0x1e30, 0x1e30,
+ 0x1e32, 0x1e32,
+ 0x1e34, 0x1e34,
+ 0x1e36, 0x1e36,
+ 0x1e38, 0x1e38,
+ 0x1e3a, 0x1e3a,
+ 0x1e3c, 0x1e3c,
+ 0x1e3e, 0x1e3e,
+ 0x1e40, 0x1e40,
+ 0x1e42, 0x1e42,
+ 0x1e44, 0x1e44,
+ 0x1e46, 0x1e46,
+ 0x1e48, 0x1e48,
+ 0x1e4a, 0x1e4a,
+ 0x1e4c, 0x1e4c,
+ 0x1e4e, 0x1e4e,
+ 0x1e50, 0x1e50,
+ 0x1e52, 0x1e52,
+ 0x1e54, 0x1e54,
+ 0x1e56, 0x1e56,
+ 0x1e58, 0x1e58,
+ 0x1e5a, 0x1e5a,
+ 0x1e5c, 0x1e5c,
+ 0x1e5e, 0x1e5e,
+ 0x1e60, 0x1e60,
+ 0x1e62, 0x1e62,
+ 0x1e64, 0x1e64,
+ 0x1e66, 0x1e66,
+ 0x1e68, 0x1e68,
+ 0x1e6a, 0x1e6a,
+ 0x1e6c, 0x1e6c,
+ 0x1e6e, 0x1e6e,
+ 0x1e70, 0x1e70,
+ 0x1e72, 0x1e72,
+ 0x1e74, 0x1e74,
+ 0x1e76, 0x1e76,
+ 0x1e78, 0x1e78,
+ 0x1e7a, 0x1e7a,
+ 0x1e7c, 0x1e7c,
+ 0x1e7e, 0x1e7e,
+ 0x1e80, 0x1e80,
+ 0x1e82, 0x1e82,
+ 0x1e84, 0x1e84,
+ 0x1e86, 0x1e86,
+ 0x1e88, 0x1e88,
+ 0x1e8a, 0x1e8a,
+ 0x1e8c, 0x1e8c,
+ 0x1e8e, 0x1e8e,
+ 0x1e90, 0x1e90,
+ 0x1e92, 0x1e92,
+ 0x1e94, 0x1e94,
+ 0x1e9e, 0x1e9e,
+ 0x1ea0, 0x1ea0,
+ 0x1ea2, 0x1ea2,
+ 0x1ea4, 0x1ea4,
+ 0x1ea6, 0x1ea6,
+ 0x1ea8, 0x1ea8,
+ 0x1eaa, 0x1eaa,
+ 0x1eac, 0x1eac,
+ 0x1eae, 0x1eae,
+ 0x1eb0, 0x1eb0,
+ 0x1eb2, 0x1eb2,
+ 0x1eb4, 0x1eb4,
+ 0x1eb6, 0x1eb6,
+ 0x1eb8, 0x1eb8,
+ 0x1eba, 0x1eba,
+ 0x1ebc, 0x1ebc,
+ 0x1ebe, 0x1ebe,
+ 0x1ec0, 0x1ec0,
+ 0x1ec2, 0x1ec2,
+ 0x1ec4, 0x1ec4,
+ 0x1ec6, 0x1ec6,
+ 0x1ec8, 0x1ec8,
+ 0x1eca, 0x1eca,
+ 0x1ecc, 0x1ecc,
+ 0x1ece, 0x1ece,
+ 0x1ed0, 0x1ed0,
+ 0x1ed2, 0x1ed2,
+ 0x1ed4, 0x1ed4,
+ 0x1ed6, 0x1ed6,
+ 0x1ed8, 0x1ed8,
+ 0x1eda, 0x1eda,
+ 0x1edc, 0x1edc,
+ 0x1ede, 0x1ede,
+ 0x1ee0, 0x1ee0,
+ 0x1ee2, 0x1ee2,
+ 0x1ee4, 0x1ee4,
+ 0x1ee6, 0x1ee6,
+ 0x1ee8, 0x1ee8,
+ 0x1eea, 0x1eea,
+ 0x1eec, 0x1eec,
+ 0x1eee, 0x1eee,
+ 0x1ef0, 0x1ef0,
+ 0x1ef2, 0x1ef2,
+ 0x1ef4, 0x1ef4,
+ 0x1ef6, 0x1ef6,
+ 0x1ef8, 0x1ef8,
+ 0x1efa, 0x1efa,
+ 0x1efc, 0x1efc,
+ 0x1efe, 0x1efe,
+ 0x1f08, 0x1f0f,
+ 0x1f18, 0x1f1d,
+ 0x1f28, 0x1f2f,
+ 0x1f38, 0x1f3f,
+ 0x1f48, 0x1f4d,
+ 0x1f59, 0x1f59,
+ 0x1f5b, 0x1f5b,
+ 0x1f5d, 0x1f5d,
+ 0x1f5f, 0x1f5f,
+ 0x1f68, 0x1f6f,
+ 0x1f88, 0x1f8f,
+ 0x1f98, 0x1f9f,
+ 0x1fa8, 0x1faf,
+ 0x1fb8, 0x1fbc,
+ 0x1fc8, 0x1fcc,
+ 0x1fd8, 0x1fdb,
+ 0x1fe8, 0x1fec,
+ 0x1ff8, 0x1ffc,
+ 0x2126, 0x2126,
+ 0x212a, 0x212b,
+ 0x2132, 0x2132,
+ 0x2160, 0x216f,
+ 0x2183, 0x2183,
+ 0x24b6, 0x24cf,
+ 0x2c00, 0x2c2e,
+ 0x2c60, 0x2c60,
+ 0x2c62, 0x2c64,
+ 0x2c67, 0x2c67,
+ 0x2c69, 0x2c69,
+ 0x2c6b, 0x2c6b,
+ 0x2c6d, 0x2c70,
+ 0x2c72, 0x2c72,
+ 0x2c75, 0x2c75,
+ 0x2c7e, 0x2c80,
+ 0x2c82, 0x2c82,
+ 0x2c84, 0x2c84,
+ 0x2c86, 0x2c86,
+ 0x2c88, 0x2c88,
+ 0x2c8a, 0x2c8a,
+ 0x2c8c, 0x2c8c,
+ 0x2c8e, 0x2c8e,
+ 0x2c90, 0x2c90,
+ 0x2c92, 0x2c92,
+ 0x2c94, 0x2c94,
+ 0x2c96, 0x2c96,
+ 0x2c98, 0x2c98,
+ 0x2c9a, 0x2c9a,
+ 0x2c9c, 0x2c9c,
+ 0x2c9e, 0x2c9e,
+ 0x2ca0, 0x2ca0,
+ 0x2ca2, 0x2ca2,
+ 0x2ca4, 0x2ca4,
+ 0x2ca6, 0x2ca6,
+ 0x2ca8, 0x2ca8,
+ 0x2caa, 0x2caa,
+ 0x2cac, 0x2cac,
+ 0x2cae, 0x2cae,
+ 0x2cb0, 0x2cb0,
+ 0x2cb2, 0x2cb2,
+ 0x2cb4, 0x2cb4,
+ 0x2cb6, 0x2cb6,
+ 0x2cb8, 0x2cb8,
+ 0x2cba, 0x2cba,
+ 0x2cbc, 0x2cbc,
+ 0x2cbe, 0x2cbe,
+ 0x2cc0, 0x2cc0,
+ 0x2cc2, 0x2cc2,
+ 0x2cc4, 0x2cc4,
+ 0x2cc6, 0x2cc6,
+ 0x2cc8, 0x2cc8,
+ 0x2cca, 0x2cca,
+ 0x2ccc, 0x2ccc,
+ 0x2cce, 0x2cce,
+ 0x2cd0, 0x2cd0,
+ 0x2cd2, 0x2cd2,
+ 0x2cd4, 0x2cd4,
+ 0x2cd6, 0x2cd6,
+ 0x2cd8, 0x2cd8,
+ 0x2cda, 0x2cda,
+ 0x2cdc, 0x2cdc,
+ 0x2cde, 0x2cde,
+ 0x2ce0, 0x2ce0,
+ 0x2ce2, 0x2ce2,
+ 0x2ceb, 0x2ceb,
+ 0x2ced, 0x2ced,
+ 0xa640, 0xa640,
+ 0xa642, 0xa642,
+ 0xa644, 0xa644,
+ 0xa646, 0xa646,
+ 0xa648, 0xa648,
+ 0xa64a, 0xa64a,
+ 0xa64c, 0xa64c,
+ 0xa64e, 0xa64e,
+ 0xa650, 0xa650,
+ 0xa652, 0xa652,
+ 0xa654, 0xa654,
+ 0xa656, 0xa656,
+ 0xa658, 0xa658,
+ 0xa65a, 0xa65a,
+ 0xa65c, 0xa65c,
+ 0xa65e, 0xa65e,
+ 0xa660, 0xa660,
+ 0xa662, 0xa662,
+ 0xa664, 0xa664,
+ 0xa666, 0xa666,
+ 0xa668, 0xa668,
+ 0xa66a, 0xa66a,
+ 0xa66c, 0xa66c,
+ 0xa680, 0xa680,
+ 0xa682, 0xa682,
+ 0xa684, 0xa684,
+ 0xa686, 0xa686,
+ 0xa688, 0xa688,
+ 0xa68a, 0xa68a,
+ 0xa68c, 0xa68c,
+ 0xa68e, 0xa68e,
+ 0xa690, 0xa690,
+ 0xa692, 0xa692,
+ 0xa694, 0xa694,
+ 0xa696, 0xa696,
+ 0xa722, 0xa722,
+ 0xa724, 0xa724,
+ 0xa726, 0xa726,
+ 0xa728, 0xa728,
+ 0xa72a, 0xa72a,
+ 0xa72c, 0xa72c,
+ 0xa72e, 0xa72e,
+ 0xa732, 0xa732,
+ 0xa734, 0xa734,
+ 0xa736, 0xa736,
+ 0xa738, 0xa738,
+ 0xa73a, 0xa73a,
+ 0xa73c, 0xa73c,
+ 0xa73e, 0xa73e,
+ 0xa740, 0xa740,
+ 0xa742, 0xa742,
+ 0xa744, 0xa744,
+ 0xa746, 0xa746,
+ 0xa748, 0xa748,
+ 0xa74a, 0xa74a,
+ 0xa74c, 0xa74c,
+ 0xa74e, 0xa74e,
+ 0xa750, 0xa750,
+ 0xa752, 0xa752,
+ 0xa754, 0xa754,
+ 0xa756, 0xa756,
+ 0xa758, 0xa758,
+ 0xa75a, 0xa75a,
+ 0xa75c, 0xa75c,
+ 0xa75e, 0xa75e,
+ 0xa760, 0xa760,
+ 0xa762, 0xa762,
+ 0xa764, 0xa764,
+ 0xa766, 0xa766,
+ 0xa768, 0xa768,
+ 0xa76a, 0xa76a,
+ 0xa76c, 0xa76c,
+ 0xa76e, 0xa76e,
+ 0xa779, 0xa779,
+ 0xa77b, 0xa77b,
+ 0xa77d, 0xa77e,
+ 0xa780, 0xa780,
+ 0xa782, 0xa782,
+ 0xa784, 0xa784,
+ 0xa786, 0xa786,
+ 0xa78b, 0xa78b,
+ 0xa78d, 0xa78d,
+ 0xa790, 0xa790,
+ 0xa7a0, 0xa7a0,
+ 0xa7a2, 0xa7a2,
+ 0xa7a4, 0xa7a4,
+ 0xa7a6, 0xa7a6,
+ 0xa7a8, 0xa7a8,
+ 0xff21, 0xff3a,
+ 0x10400, 0x10427,
+}; /* CR_Changes_When_Lowercased */
+
+/* 'Changes_When_Uppercased': Derived Property */
+static const OnigCodePoint CR_Changes_When_Uppercased[] = {
+ 582,
+ 0x0061, 0x007a,
+ 0x00b5, 0x00b5,
+ 0x00df, 0x00f6,
+ 0x00f8, 0x00ff,
+ 0x0101, 0x0101,
+ 0x0103, 0x0103,
+ 0x0105, 0x0105,
+ 0x0107, 0x0107,
+ 0x0109, 0x0109,
+ 0x010b, 0x010b,
+ 0x010d, 0x010d,
+ 0x010f, 0x010f,
+ 0x0111, 0x0111,
+ 0x0113, 0x0113,
+ 0x0115, 0x0115,
+ 0x0117, 0x0117,
+ 0x0119, 0x0119,
+ 0x011b, 0x011b,
+ 0x011d, 0x011d,
+ 0x011f, 0x011f,
+ 0x0121, 0x0121,
+ 0x0123, 0x0123,
+ 0x0125, 0x0125,
+ 0x0127, 0x0127,
+ 0x0129, 0x0129,
+ 0x012b, 0x012b,
+ 0x012d, 0x012d,
+ 0x012f, 0x012f,
+ 0x0131, 0x0131,
+ 0x0133, 0x0133,
+ 0x0135, 0x0135,
+ 0x0137, 0x0137,
+ 0x013a, 0x013a,
+ 0x013c, 0x013c,
+ 0x013e, 0x013e,
+ 0x0140, 0x0140,
+ 0x0142, 0x0142,
+ 0x0144, 0x0144,
+ 0x0146, 0x0146,
+ 0x0148, 0x0149,
+ 0x014b, 0x014b,
+ 0x014d, 0x014d,
+ 0x014f, 0x014f,
+ 0x0151, 0x0151,
+ 0x0153, 0x0153,
+ 0x0155, 0x0155,
+ 0x0157, 0x0157,
+ 0x0159, 0x0159,
+ 0x015b, 0x015b,
+ 0x015d, 0x015d,
+ 0x015f, 0x015f,
+ 0x0161, 0x0161,
+ 0x0163, 0x0163,
+ 0x0165, 0x0165,
+ 0x0167, 0x0167,
+ 0x0169, 0x0169,
+ 0x016b, 0x016b,
+ 0x016d, 0x016d,
+ 0x016f, 0x016f,
+ 0x0171, 0x0171,
+ 0x0173, 0x0173,
+ 0x0175, 0x0175,
+ 0x0177, 0x0177,
+ 0x017a, 0x017a,
+ 0x017c, 0x017c,
+ 0x017e, 0x0180,
+ 0x0183, 0x0183,
+ 0x0185, 0x0185,
+ 0x0188, 0x0188,
+ 0x018c, 0x018c,
+ 0x0192, 0x0192,
+ 0x0195, 0x0195,
+ 0x0199, 0x019a,
+ 0x019e, 0x019e,
+ 0x01a1, 0x01a1,
+ 0x01a3, 0x01a3,
+ 0x01a5, 0x01a5,
+ 0x01a8, 0x01a8,
+ 0x01ad, 0x01ad,
+ 0x01b0, 0x01b0,
+ 0x01b4, 0x01b4,
+ 0x01b6, 0x01b6,
+ 0x01b9, 0x01b9,
+ 0x01bd, 0x01bd,
+ 0x01bf, 0x01bf,
+ 0x01c5, 0x01c6,
+ 0x01c8, 0x01c9,
+ 0x01cb, 0x01cc,
+ 0x01ce, 0x01ce,
+ 0x01d0, 0x01d0,
+ 0x01d2, 0x01d2,
+ 0x01d4, 0x01d4,
+ 0x01d6, 0x01d6,
+ 0x01d8, 0x01d8,
+ 0x01da, 0x01da,
+ 0x01dc, 0x01dd,
+ 0x01df, 0x01df,
+ 0x01e1, 0x01e1,
+ 0x01e3, 0x01e3,
+ 0x01e5, 0x01e5,
+ 0x01e7, 0x01e7,
+ 0x01e9, 0x01e9,
+ 0x01eb, 0x01eb,
+ 0x01ed, 0x01ed,
+ 0x01ef, 0x01f0,
+ 0x01f2, 0x01f3,
+ 0x01f5, 0x01f5,
+ 0x01f9, 0x01f9,
+ 0x01fb, 0x01fb,
+ 0x01fd, 0x01fd,
+ 0x01ff, 0x01ff,
+ 0x0201, 0x0201,
+ 0x0203, 0x0203,
+ 0x0205, 0x0205,
+ 0x0207, 0x0207,
+ 0x0209, 0x0209,
+ 0x020b, 0x020b,
+ 0x020d, 0x020d,
+ 0x020f, 0x020f,
+ 0x0211, 0x0211,
+ 0x0213, 0x0213,
+ 0x0215, 0x0215,
+ 0x0217, 0x0217,
+ 0x0219, 0x0219,
+ 0x021b, 0x021b,
+ 0x021d, 0x021d,
+ 0x021f, 0x021f,
+ 0x0223, 0x0223,
+ 0x0225, 0x0225,
+ 0x0227, 0x0227,
+ 0x0229, 0x0229,
+ 0x022b, 0x022b,
+ 0x022d, 0x022d,
+ 0x022f, 0x022f,
+ 0x0231, 0x0231,
+ 0x0233, 0x0233,
+ 0x023c, 0x023c,
+ 0x023f, 0x0240,
+ 0x0242, 0x0242,
+ 0x0247, 0x0247,
+ 0x0249, 0x0249,
+ 0x024b, 0x024b,
+ 0x024d, 0x024d,
+ 0x024f, 0x0254,
+ 0x0256, 0x0257,
+ 0x0259, 0x0259,
+ 0x025b, 0x025b,
+ 0x0260, 0x0260,
+ 0x0263, 0x0263,
+ 0x0265, 0x0265,
+ 0x0268, 0x0269,
+ 0x026b, 0x026b,
+ 0x026f, 0x026f,
+ 0x0271, 0x0272,
+ 0x0275, 0x0275,
+ 0x027d, 0x027d,
+ 0x0280, 0x0280,
+ 0x0283, 0x0283,
+ 0x0288, 0x028c,
+ 0x0292, 0x0292,
+ 0x0345, 0x0345,
+ 0x0371, 0x0371,
+ 0x0373, 0x0373,
+ 0x0377, 0x0377,
+ 0x037b, 0x037d,
+ 0x0390, 0x0390,
+ 0x03ac, 0x03ce,
+ 0x03d0, 0x03d1,
+ 0x03d5, 0x03d7,
+ 0x03d9, 0x03d9,
+ 0x03db, 0x03db,
+ 0x03dd, 0x03dd,
+ 0x03df, 0x03df,
+ 0x03e1, 0x03e1,
+ 0x03e3, 0x03e3,
+ 0x03e5, 0x03e5,
+ 0x03e7, 0x03e7,
+ 0x03e9, 0x03e9,
+ 0x03eb, 0x03eb,
+ 0x03ed, 0x03ed,
+ 0x03ef, 0x03f2,
+ 0x03f5, 0x03f5,
+ 0x03f8, 0x03f8,
+ 0x03fb, 0x03fb,
+ 0x0430, 0x045f,
+ 0x0461, 0x0461,
+ 0x0463, 0x0463,
+ 0x0465, 0x0465,
+ 0x0467, 0x0467,
+ 0x0469, 0x0469,
+ 0x046b, 0x046b,
+ 0x046d, 0x046d,
+ 0x046f, 0x046f,
+ 0x0471, 0x0471,
+ 0x0473, 0x0473,
+ 0x0475, 0x0475,
+ 0x0477, 0x0477,
+ 0x0479, 0x0479,
+ 0x047b, 0x047b,
+ 0x047d, 0x047d,
+ 0x047f, 0x047f,
+ 0x0481, 0x0481,
+ 0x048b, 0x048b,
+ 0x048d, 0x048d,
+ 0x048f, 0x048f,
+ 0x0491, 0x0491,
+ 0x0493, 0x0493,
+ 0x0495, 0x0495,
+ 0x0497, 0x0497,
+ 0x0499, 0x0499,
+ 0x049b, 0x049b,
+ 0x049d, 0x049d,
+ 0x049f, 0x049f,
+ 0x04a1, 0x04a1,
+ 0x04a3, 0x04a3,
+ 0x04a5, 0x04a5,
+ 0x04a7, 0x04a7,
+ 0x04a9, 0x04a9,
+ 0x04ab, 0x04ab,
+ 0x04ad, 0x04ad,
+ 0x04af, 0x04af,
+ 0x04b1, 0x04b1,
+ 0x04b3, 0x04b3,
+ 0x04b5, 0x04b5,
+ 0x04b7, 0x04b7,
+ 0x04b9, 0x04b9,
+ 0x04bb, 0x04bb,
+ 0x04bd, 0x04bd,
+ 0x04bf, 0x04bf,
+ 0x04c2, 0x04c2,
+ 0x04c4, 0x04c4,
+ 0x04c6, 0x04c6,
+ 0x04c8, 0x04c8,
+ 0x04ca, 0x04ca,
+ 0x04cc, 0x04cc,
+ 0x04ce, 0x04cf,
+ 0x04d1, 0x04d1,
+ 0x04d3, 0x04d3,
+ 0x04d5, 0x04d5,
+ 0x04d7, 0x04d7,
+ 0x04d9, 0x04d9,
+ 0x04db, 0x04db,
+ 0x04dd, 0x04dd,
+ 0x04df, 0x04df,
+ 0x04e1, 0x04e1,
+ 0x04e3, 0x04e3,
+ 0x04e5, 0x04e5,
+ 0x04e7, 0x04e7,
+ 0x04e9, 0x04e9,
+ 0x04eb, 0x04eb,
+ 0x04ed, 0x04ed,
+ 0x04ef, 0x04ef,
+ 0x04f1, 0x04f1,
+ 0x04f3, 0x04f3,
+ 0x04f5, 0x04f5,
+ 0x04f7, 0x04f7,
+ 0x04f9, 0x04f9,
+ 0x04fb, 0x04fb,
+ 0x04fd, 0x04fd,
+ 0x04ff, 0x04ff,
+ 0x0501, 0x0501,
+ 0x0503, 0x0503,
+ 0x0505, 0x0505,
+ 0x0507, 0x0507,
+ 0x0509, 0x0509,
+ 0x050b, 0x050b,
+ 0x050d, 0x050d,
+ 0x050f, 0x050f,
+ 0x0511, 0x0511,
+ 0x0513, 0x0513,
+ 0x0515, 0x0515,
+ 0x0517, 0x0517,
+ 0x0519, 0x0519,
+ 0x051b, 0x051b,
+ 0x051d, 0x051d,
+ 0x051f, 0x051f,
+ 0x0521, 0x0521,
+ 0x0523, 0x0523,
+ 0x0525, 0x0525,
+ 0x0527, 0x0527,
+ 0x0561, 0x0587,
+ 0x1d79, 0x1d79,
+ 0x1d7d, 0x1d7d,
+ 0x1e01, 0x1e01,
+ 0x1e03, 0x1e03,
+ 0x1e05, 0x1e05,
+ 0x1e07, 0x1e07,
+ 0x1e09, 0x1e09,
+ 0x1e0b, 0x1e0b,
+ 0x1e0d, 0x1e0d,
+ 0x1e0f, 0x1e0f,
+ 0x1e11, 0x1e11,
+ 0x1e13, 0x1e13,
+ 0x1e15, 0x1e15,
+ 0x1e17, 0x1e17,
+ 0x1e19, 0x1e19,
+ 0x1e1b, 0x1e1b,
+ 0x1e1d, 0x1e1d,
+ 0x1e1f, 0x1e1f,
+ 0x1e21, 0x1e21,
+ 0x1e23, 0x1e23,
+ 0x1e25, 0x1e25,
+ 0x1e27, 0x1e27,
+ 0x1e29, 0x1e29,
+ 0x1e2b, 0x1e2b,
+ 0x1e2d, 0x1e2d,
+ 0x1e2f, 0x1e2f,
+ 0x1e31, 0x1e31,
+ 0x1e33, 0x1e33,
+ 0x1e35, 0x1e35,
+ 0x1e37, 0x1e37,
+ 0x1e39, 0x1e39,
+ 0x1e3b, 0x1e3b,
+ 0x1e3d, 0x1e3d,
+ 0x1e3f, 0x1e3f,
+ 0x1e41, 0x1e41,
+ 0x1e43, 0x1e43,
+ 0x1e45, 0x1e45,
+ 0x1e47, 0x1e47,
+ 0x1e49, 0x1e49,
+ 0x1e4b, 0x1e4b,
+ 0x1e4d, 0x1e4d,
+ 0x1e4f, 0x1e4f,
+ 0x1e51, 0x1e51,
+ 0x1e53, 0x1e53,
+ 0x1e55, 0x1e55,
+ 0x1e57, 0x1e57,
+ 0x1e59, 0x1e59,
+ 0x1e5b, 0x1e5b,
+ 0x1e5d, 0x1e5d,
+ 0x1e5f, 0x1e5f,
+ 0x1e61, 0x1e61,
+ 0x1e63, 0x1e63,
+ 0x1e65, 0x1e65,
+ 0x1e67, 0x1e67,
+ 0x1e69, 0x1e69,
+ 0x1e6b, 0x1e6b,
+ 0x1e6d, 0x1e6d,
+ 0x1e6f, 0x1e6f,
+ 0x1e71, 0x1e71,
+ 0x1e73, 0x1e73,
+ 0x1e75, 0x1e75,
+ 0x1e77, 0x1e77,
+ 0x1e79, 0x1e79,
+ 0x1e7b, 0x1e7b,
+ 0x1e7d, 0x1e7d,
+ 0x1e7f, 0x1e7f,
+ 0x1e81, 0x1e81,
+ 0x1e83, 0x1e83,
+ 0x1e85, 0x1e85,
+ 0x1e87, 0x1e87,
+ 0x1e89, 0x1e89,
+ 0x1e8b, 0x1e8b,
+ 0x1e8d, 0x1e8d,
+ 0x1e8f, 0x1e8f,
+ 0x1e91, 0x1e91,
+ 0x1e93, 0x1e93,
+ 0x1e95, 0x1e9b,
+ 0x1ea1, 0x1ea1,
+ 0x1ea3, 0x1ea3,
+ 0x1ea5, 0x1ea5,
+ 0x1ea7, 0x1ea7,
+ 0x1ea9, 0x1ea9,
+ 0x1eab, 0x1eab,
+ 0x1ead, 0x1ead,
+ 0x1eaf, 0x1eaf,
+ 0x1eb1, 0x1eb1,
+ 0x1eb3, 0x1eb3,
+ 0x1eb5, 0x1eb5,
+ 0x1eb7, 0x1eb7,
+ 0x1eb9, 0x1eb9,
+ 0x1ebb, 0x1ebb,
+ 0x1ebd, 0x1ebd,
+ 0x1ebf, 0x1ebf,
+ 0x1ec1, 0x1ec1,
+ 0x1ec3, 0x1ec3,
+ 0x1ec5, 0x1ec5,
+ 0x1ec7, 0x1ec7,
+ 0x1ec9, 0x1ec9,
+ 0x1ecb, 0x1ecb,
+ 0x1ecd, 0x1ecd,
+ 0x1ecf, 0x1ecf,
+ 0x1ed1, 0x1ed1,
+ 0x1ed3, 0x1ed3,
+ 0x1ed5, 0x1ed5,
+ 0x1ed7, 0x1ed7,
+ 0x1ed9, 0x1ed9,
+ 0x1edb, 0x1edb,
+ 0x1edd, 0x1edd,
+ 0x1edf, 0x1edf,
+ 0x1ee1, 0x1ee1,
+ 0x1ee3, 0x1ee3,
+ 0x1ee5, 0x1ee5,
+ 0x1ee7, 0x1ee7,
+ 0x1ee9, 0x1ee9,
+ 0x1eeb, 0x1eeb,
+ 0x1eed, 0x1eed,
+ 0x1eef, 0x1eef,
+ 0x1ef1, 0x1ef1,
+ 0x1ef3, 0x1ef3,
+ 0x1ef5, 0x1ef5,
+ 0x1ef7, 0x1ef7,
+ 0x1ef9, 0x1ef9,
+ 0x1efb, 0x1efb,
+ 0x1efd, 0x1efd,
+ 0x1eff, 0x1f07,
+ 0x1f10, 0x1f15,
+ 0x1f20, 0x1f27,
+ 0x1f30, 0x1f37,
+ 0x1f40, 0x1f45,
+ 0x1f50, 0x1f57,
+ 0x1f60, 0x1f67,
+ 0x1f70, 0x1f7d,
+ 0x1f80, 0x1fb4,
+ 0x1fb6, 0x1fb7,
+ 0x1fbc, 0x1fbc,
+ 0x1fbe, 0x1fbe,
+ 0x1fc2, 0x1fc4,
+ 0x1fc6, 0x1fc7,
+ 0x1fcc, 0x1fcc,
+ 0x1fd0, 0x1fd3,
+ 0x1fd6, 0x1fd7,
+ 0x1fe0, 0x1fe7,
+ 0x1ff2, 0x1ff4,
+ 0x1ff6, 0x1ff7,
+ 0x1ffc, 0x1ffc,
+ 0x214e, 0x214e,
+ 0x2170, 0x217f,
+ 0x2184, 0x2184,
+ 0x24d0, 0x24e9,
+ 0x2c30, 0x2c5e,
+ 0x2c61, 0x2c61,
+ 0x2c65, 0x2c66,
+ 0x2c68, 0x2c68,
+ 0x2c6a, 0x2c6a,
+ 0x2c6c, 0x2c6c,
+ 0x2c73, 0x2c73,
+ 0x2c76, 0x2c76,
+ 0x2c81, 0x2c81,
+ 0x2c83, 0x2c83,
+ 0x2c85, 0x2c85,
+ 0x2c87, 0x2c87,
+ 0x2c89, 0x2c89,
+ 0x2c8b, 0x2c8b,
+ 0x2c8d, 0x2c8d,
+ 0x2c8f, 0x2c8f,
+ 0x2c91, 0x2c91,
+ 0x2c93, 0x2c93,
+ 0x2c95, 0x2c95,
+ 0x2c97, 0x2c97,
+ 0x2c99, 0x2c99,
+ 0x2c9b, 0x2c9b,
+ 0x2c9d, 0x2c9d,
+ 0x2c9f, 0x2c9f,
+ 0x2ca1, 0x2ca1,
+ 0x2ca3, 0x2ca3,
+ 0x2ca5, 0x2ca5,
+ 0x2ca7, 0x2ca7,
+ 0x2ca9, 0x2ca9,
+ 0x2cab, 0x2cab,
+ 0x2cad, 0x2cad,
+ 0x2caf, 0x2caf,
+ 0x2cb1, 0x2cb1,
+ 0x2cb3, 0x2cb3,
+ 0x2cb5, 0x2cb5,
+ 0x2cb7, 0x2cb7,
+ 0x2cb9, 0x2cb9,
+ 0x2cbb, 0x2cbb,
+ 0x2cbd, 0x2cbd,
+ 0x2cbf, 0x2cbf,
+ 0x2cc1, 0x2cc1,
+ 0x2cc3, 0x2cc3,
+ 0x2cc5, 0x2cc5,
+ 0x2cc7, 0x2cc7,
+ 0x2cc9, 0x2cc9,
+ 0x2ccb, 0x2ccb,
+ 0x2ccd, 0x2ccd,
+ 0x2ccf, 0x2ccf,
+ 0x2cd1, 0x2cd1,
+ 0x2cd3, 0x2cd3,
+ 0x2cd5, 0x2cd5,
+ 0x2cd7, 0x2cd7,
+ 0x2cd9, 0x2cd9,
+ 0x2cdb, 0x2cdb,
+ 0x2cdd, 0x2cdd,
+ 0x2cdf, 0x2cdf,
+ 0x2ce1, 0x2ce1,
+ 0x2ce3, 0x2ce3,
+ 0x2cec, 0x2cec,
+ 0x2cee, 0x2cee,
+ 0x2d00, 0x2d25,
+ 0xa641, 0xa641,
+ 0xa643, 0xa643,
+ 0xa645, 0xa645,
+ 0xa647, 0xa647,
+ 0xa649, 0xa649,
+ 0xa64b, 0xa64b,
+ 0xa64d, 0xa64d,
+ 0xa64f, 0xa64f,
+ 0xa651, 0xa651,
+ 0xa653, 0xa653,
+ 0xa655, 0xa655,
+ 0xa657, 0xa657,
+ 0xa659, 0xa659,
+ 0xa65b, 0xa65b,
+ 0xa65d, 0xa65d,
+ 0xa65f, 0xa65f,
+ 0xa661, 0xa661,
+ 0xa663, 0xa663,
+ 0xa665, 0xa665,
+ 0xa667, 0xa667,
+ 0xa669, 0xa669,
+ 0xa66b, 0xa66b,
+ 0xa66d, 0xa66d,
+ 0xa681, 0xa681,
+ 0xa683, 0xa683,
+ 0xa685, 0xa685,
+ 0xa687, 0xa687,
+ 0xa689, 0xa689,
+ 0xa68b, 0xa68b,
+ 0xa68d, 0xa68d,
+ 0xa68f, 0xa68f,
+ 0xa691, 0xa691,
+ 0xa693, 0xa693,
+ 0xa695, 0xa695,
+ 0xa697, 0xa697,
+ 0xa723, 0xa723,
+ 0xa725, 0xa725,
+ 0xa727, 0xa727,
+ 0xa729, 0xa729,
+ 0xa72b, 0xa72b,
+ 0xa72d, 0xa72d,
+ 0xa72f, 0xa72f,
+ 0xa733, 0xa733,
+ 0xa735, 0xa735,
+ 0xa737, 0xa737,
+ 0xa739, 0xa739,
+ 0xa73b, 0xa73b,
+ 0xa73d, 0xa73d,
+ 0xa73f, 0xa73f,
+ 0xa741, 0xa741,
+ 0xa743, 0xa743,
+ 0xa745, 0xa745,
+ 0xa747, 0xa747,
+ 0xa749, 0xa749,
+ 0xa74b, 0xa74b,
+ 0xa74d, 0xa74d,
+ 0xa74f, 0xa74f,
+ 0xa751, 0xa751,
+ 0xa753, 0xa753,
+ 0xa755, 0xa755,
+ 0xa757, 0xa757,
+ 0xa759, 0xa759,
+ 0xa75b, 0xa75b,
+ 0xa75d, 0xa75d,
+ 0xa75f, 0xa75f,
+ 0xa761, 0xa761,
+ 0xa763, 0xa763,
+ 0xa765, 0xa765,
+ 0xa767, 0xa767,
+ 0xa769, 0xa769,
+ 0xa76b, 0xa76b,
+ 0xa76d, 0xa76d,
+ 0xa76f, 0xa76f,
+ 0xa77a, 0xa77a,
+ 0xa77c, 0xa77c,
+ 0xa77f, 0xa77f,
+ 0xa781, 0xa781,
+ 0xa783, 0xa783,
+ 0xa785, 0xa785,
+ 0xa787, 0xa787,
+ 0xa78c, 0xa78c,
+ 0xa791, 0xa791,
+ 0xa7a1, 0xa7a1,
+ 0xa7a3, 0xa7a3,
+ 0xa7a5, 0xa7a5,
+ 0xa7a7, 0xa7a7,
+ 0xa7a9, 0xa7a9,
+ 0xfb00, 0xfb06,
+ 0xfb13, 0xfb17,
+ 0xff41, 0xff5a,
+ 0x10428, 0x1044f,
+}; /* CR_Changes_When_Uppercased */
+
+/* 'Changes_When_Titlecased': Derived Property */
+static const OnigCodePoint CR_Changes_When_Titlecased[] = {
+ 583,
+ 0x0061, 0x007a,
+ 0x00b5, 0x00b5,
+ 0x00df, 0x00f6,
+ 0x00f8, 0x00ff,
+ 0x0101, 0x0101,
+ 0x0103, 0x0103,
+ 0x0105, 0x0105,
+ 0x0107, 0x0107,
+ 0x0109, 0x0109,
+ 0x010b, 0x010b,
+ 0x010d, 0x010d,
+ 0x010f, 0x010f,
+ 0x0111, 0x0111,
+ 0x0113, 0x0113,
+ 0x0115, 0x0115,
+ 0x0117, 0x0117,
+ 0x0119, 0x0119,
+ 0x011b, 0x011b,
+ 0x011d, 0x011d,
+ 0x011f, 0x011f,
+ 0x0121, 0x0121,
+ 0x0123, 0x0123,
+ 0x0125, 0x0125,
+ 0x0127, 0x0127,
+ 0x0129, 0x0129,
+ 0x012b, 0x012b,
+ 0x012d, 0x012d,
+ 0x012f, 0x012f,
+ 0x0131, 0x0131,
+ 0x0133, 0x0133,
+ 0x0135, 0x0135,
+ 0x0137, 0x0137,
+ 0x013a, 0x013a,
+ 0x013c, 0x013c,
+ 0x013e, 0x013e,
+ 0x0140, 0x0140,
+ 0x0142, 0x0142,
+ 0x0144, 0x0144,
+ 0x0146, 0x0146,
+ 0x0148, 0x0149,
+ 0x014b, 0x014b,
+ 0x014d, 0x014d,
+ 0x014f, 0x014f,
+ 0x0151, 0x0151,
+ 0x0153, 0x0153,
+ 0x0155, 0x0155,
+ 0x0157, 0x0157,
+ 0x0159, 0x0159,
+ 0x015b, 0x015b,
+ 0x015d, 0x015d,
+ 0x015f, 0x015f,
+ 0x0161, 0x0161,
+ 0x0163, 0x0163,
+ 0x0165, 0x0165,
+ 0x0167, 0x0167,
+ 0x0169, 0x0169,
+ 0x016b, 0x016b,
+ 0x016d, 0x016d,
+ 0x016f, 0x016f,
+ 0x0171, 0x0171,
+ 0x0173, 0x0173,
+ 0x0175, 0x0175,
+ 0x0177, 0x0177,
+ 0x017a, 0x017a,
+ 0x017c, 0x017c,
+ 0x017e, 0x0180,
+ 0x0183, 0x0183,
+ 0x0185, 0x0185,
+ 0x0188, 0x0188,
+ 0x018c, 0x018c,
+ 0x0192, 0x0192,
+ 0x0195, 0x0195,
+ 0x0199, 0x019a,
+ 0x019e, 0x019e,
+ 0x01a1, 0x01a1,
+ 0x01a3, 0x01a3,
+ 0x01a5, 0x01a5,
+ 0x01a8, 0x01a8,
+ 0x01ad, 0x01ad,
+ 0x01b0, 0x01b0,
+ 0x01b4, 0x01b4,
+ 0x01b6, 0x01b6,
+ 0x01b9, 0x01b9,
+ 0x01bd, 0x01bd,
+ 0x01bf, 0x01bf,
+ 0x01c4, 0x01c4,
+ 0x01c6, 0x01c7,
+ 0x01c9, 0x01ca,
+ 0x01cc, 0x01cc,
+ 0x01ce, 0x01ce,
+ 0x01d0, 0x01d0,
+ 0x01d2, 0x01d2,
+ 0x01d4, 0x01d4,
+ 0x01d6, 0x01d6,
+ 0x01d8, 0x01d8,
+ 0x01da, 0x01da,
+ 0x01dc, 0x01dd,
+ 0x01df, 0x01df,
+ 0x01e1, 0x01e1,
+ 0x01e3, 0x01e3,
+ 0x01e5, 0x01e5,
+ 0x01e7, 0x01e7,
+ 0x01e9, 0x01e9,
+ 0x01eb, 0x01eb,
+ 0x01ed, 0x01ed,
+ 0x01ef, 0x01f1,
+ 0x01f3, 0x01f3,
+ 0x01f5, 0x01f5,
+ 0x01f9, 0x01f9,
+ 0x01fb, 0x01fb,
+ 0x01fd, 0x01fd,
+ 0x01ff, 0x01ff,
+ 0x0201, 0x0201,
+ 0x0203, 0x0203,
+ 0x0205, 0x0205,
+ 0x0207, 0x0207,
+ 0x0209, 0x0209,
+ 0x020b, 0x020b,
+ 0x020d, 0x020d,
+ 0x020f, 0x020f,
+ 0x0211, 0x0211,
+ 0x0213, 0x0213,
+ 0x0215, 0x0215,
+ 0x0217, 0x0217,
+ 0x0219, 0x0219,
+ 0x021b, 0x021b,
+ 0x021d, 0x021d,
+ 0x021f, 0x021f,
+ 0x0223, 0x0223,
+ 0x0225, 0x0225,
+ 0x0227, 0x0227,
+ 0x0229, 0x0229,
+ 0x022b, 0x022b,
+ 0x022d, 0x022d,
+ 0x022f, 0x022f,
+ 0x0231, 0x0231,
+ 0x0233, 0x0233,
+ 0x023c, 0x023c,
+ 0x023f, 0x0240,
+ 0x0242, 0x0242,
+ 0x0247, 0x0247,
+ 0x0249, 0x0249,
+ 0x024b, 0x024b,
+ 0x024d, 0x024d,
+ 0x024f, 0x0254,
+ 0x0256, 0x0257,
+ 0x0259, 0x0259,
+ 0x025b, 0x025b,
+ 0x0260, 0x0260,
+ 0x0263, 0x0263,
+ 0x0265, 0x0265,
+ 0x0268, 0x0269,
+ 0x026b, 0x026b,
+ 0x026f, 0x026f,
+ 0x0271, 0x0272,
+ 0x0275, 0x0275,
+ 0x027d, 0x027d,
+ 0x0280, 0x0280,
+ 0x0283, 0x0283,
+ 0x0288, 0x028c,
+ 0x0292, 0x0292,
+ 0x0345, 0x0345,
+ 0x0371, 0x0371,
+ 0x0373, 0x0373,
+ 0x0377, 0x0377,
+ 0x037b, 0x037d,
+ 0x0390, 0x0390,
+ 0x03ac, 0x03ce,
+ 0x03d0, 0x03d1,
+ 0x03d5, 0x03d7,
+ 0x03d9, 0x03d9,
+ 0x03db, 0x03db,
+ 0x03dd, 0x03dd,
+ 0x03df, 0x03df,
+ 0x03e1, 0x03e1,
+ 0x03e3, 0x03e3,
+ 0x03e5, 0x03e5,
+ 0x03e7, 0x03e7,
+ 0x03e9, 0x03e9,
+ 0x03eb, 0x03eb,
+ 0x03ed, 0x03ed,
+ 0x03ef, 0x03f2,
+ 0x03f5, 0x03f5,
+ 0x03f8, 0x03f8,
+ 0x03fb, 0x03fb,
+ 0x0430, 0x045f,
+ 0x0461, 0x0461,
+ 0x0463, 0x0463,
+ 0x0465, 0x0465,
+ 0x0467, 0x0467,
+ 0x0469, 0x0469,
+ 0x046b, 0x046b,
+ 0x046d, 0x046d,
+ 0x046f, 0x046f,
+ 0x0471, 0x0471,
+ 0x0473, 0x0473,
+ 0x0475, 0x0475,
+ 0x0477, 0x0477,
+ 0x0479, 0x0479,
+ 0x047b, 0x047b,
+ 0x047d, 0x047d,
+ 0x047f, 0x047f,
+ 0x0481, 0x0481,
+ 0x048b, 0x048b,
+ 0x048d, 0x048d,
+ 0x048f, 0x048f,
+ 0x0491, 0x0491,
+ 0x0493, 0x0493,
+ 0x0495, 0x0495,
+ 0x0497, 0x0497,
+ 0x0499, 0x0499,
+ 0x049b, 0x049b,
+ 0x049d, 0x049d,
+ 0x049f, 0x049f,
+ 0x04a1, 0x04a1,
+ 0x04a3, 0x04a3,
+ 0x04a5, 0x04a5,
+ 0x04a7, 0x04a7,
+ 0x04a9, 0x04a9,
+ 0x04ab, 0x04ab,
+ 0x04ad, 0x04ad,
+ 0x04af, 0x04af,
+ 0x04b1, 0x04b1,
+ 0x04b3, 0x04b3,
+ 0x04b5, 0x04b5,
+ 0x04b7, 0x04b7,
+ 0x04b9, 0x04b9,
+ 0x04bb, 0x04bb,
+ 0x04bd, 0x04bd,
+ 0x04bf, 0x04bf,
+ 0x04c2, 0x04c2,
+ 0x04c4, 0x04c4,
+ 0x04c6, 0x04c6,
+ 0x04c8, 0x04c8,
+ 0x04ca, 0x04ca,
+ 0x04cc, 0x04cc,
+ 0x04ce, 0x04cf,
+ 0x04d1, 0x04d1,
+ 0x04d3, 0x04d3,
+ 0x04d5, 0x04d5,
+ 0x04d7, 0x04d7,
+ 0x04d9, 0x04d9,
+ 0x04db, 0x04db,
+ 0x04dd, 0x04dd,
+ 0x04df, 0x04df,
+ 0x04e1, 0x04e1,
+ 0x04e3, 0x04e3,
+ 0x04e5, 0x04e5,
+ 0x04e7, 0x04e7,
+ 0x04e9, 0x04e9,
+ 0x04eb, 0x04eb,
+ 0x04ed, 0x04ed,
+ 0x04ef, 0x04ef,
+ 0x04f1, 0x04f1,
+ 0x04f3, 0x04f3,
+ 0x04f5, 0x04f5,
+ 0x04f7, 0x04f7,
+ 0x04f9, 0x04f9,
+ 0x04fb, 0x04fb,
+ 0x04fd, 0x04fd,
+ 0x04ff, 0x04ff,
+ 0x0501, 0x0501,
+ 0x0503, 0x0503,
+ 0x0505, 0x0505,
+ 0x0507, 0x0507,
+ 0x0509, 0x0509,
+ 0x050b, 0x050b,
+ 0x050d, 0x050d,
+ 0x050f, 0x050f,
+ 0x0511, 0x0511,
+ 0x0513, 0x0513,
+ 0x0515, 0x0515,
+ 0x0517, 0x0517,
+ 0x0519, 0x0519,
+ 0x051b, 0x051b,
+ 0x051d, 0x051d,
+ 0x051f, 0x051f,
+ 0x0521, 0x0521,
+ 0x0523, 0x0523,
+ 0x0525, 0x0525,
+ 0x0527, 0x0527,
+ 0x0561, 0x0587,
+ 0x1d79, 0x1d79,
+ 0x1d7d, 0x1d7d,
+ 0x1e01, 0x1e01,
+ 0x1e03, 0x1e03,
+ 0x1e05, 0x1e05,
+ 0x1e07, 0x1e07,
+ 0x1e09, 0x1e09,
+ 0x1e0b, 0x1e0b,
+ 0x1e0d, 0x1e0d,
+ 0x1e0f, 0x1e0f,
+ 0x1e11, 0x1e11,
+ 0x1e13, 0x1e13,
+ 0x1e15, 0x1e15,
+ 0x1e17, 0x1e17,
+ 0x1e19, 0x1e19,
+ 0x1e1b, 0x1e1b,
+ 0x1e1d, 0x1e1d,
+ 0x1e1f, 0x1e1f,
+ 0x1e21, 0x1e21,
+ 0x1e23, 0x1e23,
+ 0x1e25, 0x1e25,
+ 0x1e27, 0x1e27,
+ 0x1e29, 0x1e29,
+ 0x1e2b, 0x1e2b,
+ 0x1e2d, 0x1e2d,
+ 0x1e2f, 0x1e2f,
+ 0x1e31, 0x1e31,
+ 0x1e33, 0x1e33,
+ 0x1e35, 0x1e35,
+ 0x1e37, 0x1e37,
+ 0x1e39, 0x1e39,
+ 0x1e3b, 0x1e3b,
+ 0x1e3d, 0x1e3d,
+ 0x1e3f, 0x1e3f,
+ 0x1e41, 0x1e41,
+ 0x1e43, 0x1e43,
+ 0x1e45, 0x1e45,
+ 0x1e47, 0x1e47,
+ 0x1e49, 0x1e49,
+ 0x1e4b, 0x1e4b,
+ 0x1e4d, 0x1e4d,
+ 0x1e4f, 0x1e4f,
+ 0x1e51, 0x1e51,
+ 0x1e53, 0x1e53,
+ 0x1e55, 0x1e55,
+ 0x1e57, 0x1e57,
+ 0x1e59, 0x1e59,
+ 0x1e5b, 0x1e5b,
+ 0x1e5d, 0x1e5d,
+ 0x1e5f, 0x1e5f,
+ 0x1e61, 0x1e61,
+ 0x1e63, 0x1e63,
+ 0x1e65, 0x1e65,
+ 0x1e67, 0x1e67,
+ 0x1e69, 0x1e69,
+ 0x1e6b, 0x1e6b,
+ 0x1e6d, 0x1e6d,
+ 0x1e6f, 0x1e6f,
+ 0x1e71, 0x1e71,
+ 0x1e73, 0x1e73,
+ 0x1e75, 0x1e75,
+ 0x1e77, 0x1e77,
+ 0x1e79, 0x1e79,
+ 0x1e7b, 0x1e7b,
+ 0x1e7d, 0x1e7d,
+ 0x1e7f, 0x1e7f,
+ 0x1e81, 0x1e81,
+ 0x1e83, 0x1e83,
+ 0x1e85, 0x1e85,
+ 0x1e87, 0x1e87,
+ 0x1e89, 0x1e89,
+ 0x1e8b, 0x1e8b,
+ 0x1e8d, 0x1e8d,
+ 0x1e8f, 0x1e8f,
+ 0x1e91, 0x1e91,
+ 0x1e93, 0x1e93,
+ 0x1e95, 0x1e9b,
+ 0x1ea1, 0x1ea1,
+ 0x1ea3, 0x1ea3,
+ 0x1ea5, 0x1ea5,
+ 0x1ea7, 0x1ea7,
+ 0x1ea9, 0x1ea9,
+ 0x1eab, 0x1eab,
+ 0x1ead, 0x1ead,
+ 0x1eaf, 0x1eaf,
+ 0x1eb1, 0x1eb1,
+ 0x1eb3, 0x1eb3,
+ 0x1eb5, 0x1eb5,
+ 0x1eb7, 0x1eb7,
+ 0x1eb9, 0x1eb9,
+ 0x1ebb, 0x1ebb,
+ 0x1ebd, 0x1ebd,
+ 0x1ebf, 0x1ebf,
+ 0x1ec1, 0x1ec1,
+ 0x1ec3, 0x1ec3,
+ 0x1ec5, 0x1ec5,
+ 0x1ec7, 0x1ec7,
+ 0x1ec9, 0x1ec9,
+ 0x1ecb, 0x1ecb,
+ 0x1ecd, 0x1ecd,
+ 0x1ecf, 0x1ecf,
+ 0x1ed1, 0x1ed1,
+ 0x1ed3, 0x1ed3,
+ 0x1ed5, 0x1ed5,
+ 0x1ed7, 0x1ed7,
+ 0x1ed9, 0x1ed9,
+ 0x1edb, 0x1edb,
+ 0x1edd, 0x1edd,
+ 0x1edf, 0x1edf,
+ 0x1ee1, 0x1ee1,
+ 0x1ee3, 0x1ee3,
+ 0x1ee5, 0x1ee5,
+ 0x1ee7, 0x1ee7,
+ 0x1ee9, 0x1ee9,
+ 0x1eeb, 0x1eeb,
+ 0x1eed, 0x1eed,
+ 0x1eef, 0x1eef,
+ 0x1ef1, 0x1ef1,
+ 0x1ef3, 0x1ef3,
+ 0x1ef5, 0x1ef5,
+ 0x1ef7, 0x1ef7,
+ 0x1ef9, 0x1ef9,
+ 0x1efb, 0x1efb,
+ 0x1efd, 0x1efd,
+ 0x1eff, 0x1f07,
+ 0x1f10, 0x1f15,
+ 0x1f20, 0x1f27,
+ 0x1f30, 0x1f37,
+ 0x1f40, 0x1f45,
+ 0x1f50, 0x1f57,
+ 0x1f60, 0x1f67,
+ 0x1f70, 0x1f7d,
+ 0x1f80, 0x1f87,
+ 0x1f90, 0x1f97,
+ 0x1fa0, 0x1fa7,
+ 0x1fb0, 0x1fb4,
+ 0x1fb6, 0x1fb7,
+ 0x1fbe, 0x1fbe,
+ 0x1fc2, 0x1fc4,
+ 0x1fc6, 0x1fc7,
+ 0x1fd0, 0x1fd3,
+ 0x1fd6, 0x1fd7,
+ 0x1fe0, 0x1fe7,
+ 0x1ff2, 0x1ff4,
+ 0x1ff6, 0x1ff7,
+ 0x214e, 0x214e,
+ 0x2170, 0x217f,
+ 0x2184, 0x2184,
+ 0x24d0, 0x24e9,
+ 0x2c30, 0x2c5e,
+ 0x2c61, 0x2c61,
+ 0x2c65, 0x2c66,
+ 0x2c68, 0x2c68,
+ 0x2c6a, 0x2c6a,
+ 0x2c6c, 0x2c6c,
+ 0x2c73, 0x2c73,
+ 0x2c76, 0x2c76,
+ 0x2c81, 0x2c81,
+ 0x2c83, 0x2c83,
+ 0x2c85, 0x2c85,
+ 0x2c87, 0x2c87,
+ 0x2c89, 0x2c89,
+ 0x2c8b, 0x2c8b,
+ 0x2c8d, 0x2c8d,
+ 0x2c8f, 0x2c8f,
+ 0x2c91, 0x2c91,
+ 0x2c93, 0x2c93,
+ 0x2c95, 0x2c95,
+ 0x2c97, 0x2c97,
+ 0x2c99, 0x2c99,
+ 0x2c9b, 0x2c9b,
+ 0x2c9d, 0x2c9d,
+ 0x2c9f, 0x2c9f,
+ 0x2ca1, 0x2ca1,
+ 0x2ca3, 0x2ca3,
+ 0x2ca5, 0x2ca5,
+ 0x2ca7, 0x2ca7,
+ 0x2ca9, 0x2ca9,
+ 0x2cab, 0x2cab,
+ 0x2cad, 0x2cad,
+ 0x2caf, 0x2caf,
+ 0x2cb1, 0x2cb1,
+ 0x2cb3, 0x2cb3,
+ 0x2cb5, 0x2cb5,
+ 0x2cb7, 0x2cb7,
+ 0x2cb9, 0x2cb9,
+ 0x2cbb, 0x2cbb,
+ 0x2cbd, 0x2cbd,
+ 0x2cbf, 0x2cbf,
+ 0x2cc1, 0x2cc1,
+ 0x2cc3, 0x2cc3,
+ 0x2cc5, 0x2cc5,
+ 0x2cc7, 0x2cc7,
+ 0x2cc9, 0x2cc9,
+ 0x2ccb, 0x2ccb,
+ 0x2ccd, 0x2ccd,
+ 0x2ccf, 0x2ccf,
+ 0x2cd1, 0x2cd1,
+ 0x2cd3, 0x2cd3,
+ 0x2cd5, 0x2cd5,
+ 0x2cd7, 0x2cd7,
+ 0x2cd9, 0x2cd9,
+ 0x2cdb, 0x2cdb,
+ 0x2cdd, 0x2cdd,
+ 0x2cdf, 0x2cdf,
+ 0x2ce1, 0x2ce1,
+ 0x2ce3, 0x2ce3,
+ 0x2cec, 0x2cec,
+ 0x2cee, 0x2cee,
+ 0x2d00, 0x2d25,
+ 0xa641, 0xa641,
+ 0xa643, 0xa643,
+ 0xa645, 0xa645,
+ 0xa647, 0xa647,
+ 0xa649, 0xa649,
+ 0xa64b, 0xa64b,
+ 0xa64d, 0xa64d,
+ 0xa64f, 0xa64f,
+ 0xa651, 0xa651,
+ 0xa653, 0xa653,
+ 0xa655, 0xa655,
+ 0xa657, 0xa657,
+ 0xa659, 0xa659,
+ 0xa65b, 0xa65b,
+ 0xa65d, 0xa65d,
+ 0xa65f, 0xa65f,
+ 0xa661, 0xa661,
+ 0xa663, 0xa663,
+ 0xa665, 0xa665,
+ 0xa667, 0xa667,
+ 0xa669, 0xa669,
+ 0xa66b, 0xa66b,
+ 0xa66d, 0xa66d,
+ 0xa681, 0xa681,
+ 0xa683, 0xa683,
+ 0xa685, 0xa685,
+ 0xa687, 0xa687,
+ 0xa689, 0xa689,
+ 0xa68b, 0xa68b,
+ 0xa68d, 0xa68d,
+ 0xa68f, 0xa68f,
+ 0xa691, 0xa691,
+ 0xa693, 0xa693,
+ 0xa695, 0xa695,
+ 0xa697, 0xa697,
+ 0xa723, 0xa723,
+ 0xa725, 0xa725,
+ 0xa727, 0xa727,
+ 0xa729, 0xa729,
+ 0xa72b, 0xa72b,
+ 0xa72d, 0xa72d,
+ 0xa72f, 0xa72f,
+ 0xa733, 0xa733,
+ 0xa735, 0xa735,
+ 0xa737, 0xa737,
+ 0xa739, 0xa739,
+ 0xa73b, 0xa73b,
+ 0xa73d, 0xa73d,
+ 0xa73f, 0xa73f,
+ 0xa741, 0xa741,
+ 0xa743, 0xa743,
+ 0xa745, 0xa745,
+ 0xa747, 0xa747,
+ 0xa749, 0xa749,
+ 0xa74b, 0xa74b,
+ 0xa74d, 0xa74d,
+ 0xa74f, 0xa74f,
+ 0xa751, 0xa751,
+ 0xa753, 0xa753,
+ 0xa755, 0xa755,
+ 0xa757, 0xa757,
+ 0xa759, 0xa759,
+ 0xa75b, 0xa75b,
+ 0xa75d, 0xa75d,
+ 0xa75f, 0xa75f,
+ 0xa761, 0xa761,
+ 0xa763, 0xa763,
+ 0xa765, 0xa765,
+ 0xa767, 0xa767,
+ 0xa769, 0xa769,
+ 0xa76b, 0xa76b,
+ 0xa76d, 0xa76d,
+ 0xa76f, 0xa76f,
+ 0xa77a, 0xa77a,
+ 0xa77c, 0xa77c,
+ 0xa77f, 0xa77f,
+ 0xa781, 0xa781,
+ 0xa783, 0xa783,
+ 0xa785, 0xa785,
+ 0xa787, 0xa787,
+ 0xa78c, 0xa78c,
+ 0xa791, 0xa791,
+ 0xa7a1, 0xa7a1,
+ 0xa7a3, 0xa7a3,
+ 0xa7a5, 0xa7a5,
+ 0xa7a7, 0xa7a7,
+ 0xa7a9, 0xa7a9,
+ 0xfb00, 0xfb06,
+ 0xfb13, 0xfb17,
+ 0xff41, 0xff5a,
+ 0x10428, 0x1044f,
+}; /* CR_Changes_When_Titlecased */
+
+/* 'Changes_When_Casefolded': Derived Property */
+static const OnigCodePoint CR_Changes_When_Casefolded[] = {
+ 577,
+ 0x0041, 0x005a,
+ 0x00b5, 0x00b5,
+ 0x00c0, 0x00d6,
+ 0x00d8, 0x00df,
+ 0x0100, 0x0100,
+ 0x0102, 0x0102,
+ 0x0104, 0x0104,
+ 0x0106, 0x0106,
+ 0x0108, 0x0108,
+ 0x010a, 0x010a,
+ 0x010c, 0x010c,
+ 0x010e, 0x010e,
+ 0x0110, 0x0110,
+ 0x0112, 0x0112,
+ 0x0114, 0x0114,
+ 0x0116, 0x0116,
+ 0x0118, 0x0118,
+ 0x011a, 0x011a,
+ 0x011c, 0x011c,
+ 0x011e, 0x011e,
+ 0x0120, 0x0120,
+ 0x0122, 0x0122,
+ 0x0124, 0x0124,
+ 0x0126, 0x0126,
+ 0x0128, 0x0128,
+ 0x012a, 0x012a,
+ 0x012c, 0x012c,
+ 0x012e, 0x012e,
+ 0x0130, 0x0130,
+ 0x0132, 0x0132,
+ 0x0134, 0x0134,
+ 0x0136, 0x0136,
+ 0x0139, 0x0139,
+ 0x013b, 0x013b,
+ 0x013d, 0x013d,
+ 0x013f, 0x013f,
+ 0x0141, 0x0141,
+ 0x0143, 0x0143,
+ 0x0145, 0x0145,
+ 0x0147, 0x0147,
+ 0x0149, 0x014a,
+ 0x014c, 0x014c,
+ 0x014e, 0x014e,
+ 0x0150, 0x0150,
+ 0x0152, 0x0152,
+ 0x0154, 0x0154,
+ 0x0156, 0x0156,
+ 0x0158, 0x0158,
+ 0x015a, 0x015a,
+ 0x015c, 0x015c,
+ 0x015e, 0x015e,
+ 0x0160, 0x0160,
+ 0x0162, 0x0162,
+ 0x0164, 0x0164,
+ 0x0166, 0x0166,
+ 0x0168, 0x0168,
+ 0x016a, 0x016a,
+ 0x016c, 0x016c,
+ 0x016e, 0x016e,
+ 0x0170, 0x0170,
+ 0x0172, 0x0172,
+ 0x0174, 0x0174,
+ 0x0176, 0x0176,
+ 0x0178, 0x0179,
+ 0x017b, 0x017b,
+ 0x017d, 0x017d,
+ 0x017f, 0x017f,
+ 0x0181, 0x0182,
+ 0x0184, 0x0184,
+ 0x0186, 0x0187,
+ 0x0189, 0x018b,
+ 0x018e, 0x0191,
+ 0x0193, 0x0194,
+ 0x0196, 0x0198,
+ 0x019c, 0x019d,
+ 0x019f, 0x01a0,
+ 0x01a2, 0x01a2,
+ 0x01a4, 0x01a4,
+ 0x01a6, 0x01a7,
+ 0x01a9, 0x01a9,
+ 0x01ac, 0x01ac,
+ 0x01ae, 0x01af,
+ 0x01b1, 0x01b3,
+ 0x01b5, 0x01b5,
+ 0x01b7, 0x01b8,
+ 0x01bc, 0x01bc,
+ 0x01c4, 0x01c5,
+ 0x01c7, 0x01c8,
+ 0x01ca, 0x01cb,
+ 0x01cd, 0x01cd,
+ 0x01cf, 0x01cf,
+ 0x01d1, 0x01d1,
+ 0x01d3, 0x01d3,
+ 0x01d5, 0x01d5,
+ 0x01d7, 0x01d7,
+ 0x01d9, 0x01d9,
+ 0x01db, 0x01db,
+ 0x01de, 0x01de,
+ 0x01e0, 0x01e0,
+ 0x01e2, 0x01e2,
+ 0x01e4, 0x01e4,
+ 0x01e6, 0x01e6,
+ 0x01e8, 0x01e8,
+ 0x01ea, 0x01ea,
+ 0x01ec, 0x01ec,
+ 0x01ee, 0x01ee,
+ 0x01f1, 0x01f2,
+ 0x01f4, 0x01f4,
+ 0x01f6, 0x01f8,
+ 0x01fa, 0x01fa,
+ 0x01fc, 0x01fc,
+ 0x01fe, 0x01fe,
+ 0x0200, 0x0200,
+ 0x0202, 0x0202,
+ 0x0204, 0x0204,
+ 0x0206, 0x0206,
+ 0x0208, 0x0208,
+ 0x020a, 0x020a,
+ 0x020c, 0x020c,
+ 0x020e, 0x020e,
+ 0x0210, 0x0210,
+ 0x0212, 0x0212,
+ 0x0214, 0x0214,
+ 0x0216, 0x0216,
+ 0x0218, 0x0218,
+ 0x021a, 0x021a,
+ 0x021c, 0x021c,
+ 0x021e, 0x021e,
+ 0x0220, 0x0220,
+ 0x0222, 0x0222,
+ 0x0224, 0x0224,
+ 0x0226, 0x0226,
+ 0x0228, 0x0228,
+ 0x022a, 0x022a,
+ 0x022c, 0x022c,
+ 0x022e, 0x022e,
+ 0x0230, 0x0230,
+ 0x0232, 0x0232,
+ 0x023a, 0x023b,
+ 0x023d, 0x023e,
+ 0x0241, 0x0241,
+ 0x0243, 0x0246,
+ 0x0248, 0x0248,
+ 0x024a, 0x024a,
+ 0x024c, 0x024c,
+ 0x024e, 0x024e,
+ 0x0345, 0x0345,
+ 0x0370, 0x0370,
+ 0x0372, 0x0372,
+ 0x0376, 0x0376,
+ 0x0386, 0x0386,
+ 0x0388, 0x038a,
+ 0x038c, 0x038c,
+ 0x038e, 0x038f,
+ 0x0391, 0x03a1,
+ 0x03a3, 0x03ab,
+ 0x03c2, 0x03c2,
+ 0x03cf, 0x03d1,
+ 0x03d5, 0x03d6,
+ 0x03d8, 0x03d8,
+ 0x03da, 0x03da,
+ 0x03dc, 0x03dc,
+ 0x03de, 0x03de,
+ 0x03e0, 0x03e0,
+ 0x03e2, 0x03e2,
+ 0x03e4, 0x03e4,
+ 0x03e6, 0x03e6,
+ 0x03e8, 0x03e8,
+ 0x03ea, 0x03ea,
+ 0x03ec, 0x03ec,
+ 0x03ee, 0x03ee,
+ 0x03f0, 0x03f1,
+ 0x03f4, 0x03f5,
+ 0x03f7, 0x03f7,
+ 0x03f9, 0x03fa,
+ 0x03fd, 0x042f,
+ 0x0460, 0x0460,
+ 0x0462, 0x0462,
+ 0x0464, 0x0464,
+ 0x0466, 0x0466,
+ 0x0468, 0x0468,
+ 0x046a, 0x046a,
+ 0x046c, 0x046c,
+ 0x046e, 0x046e,
+ 0x0470, 0x0470,
+ 0x0472, 0x0472,
+ 0x0474, 0x0474,
+ 0x0476, 0x0476,
+ 0x0478, 0x0478,
+ 0x047a, 0x047a,
+ 0x047c, 0x047c,
+ 0x047e, 0x047e,
+ 0x0480, 0x0480,
+ 0x048a, 0x048a,
+ 0x048c, 0x048c,
+ 0x048e, 0x048e,
+ 0x0490, 0x0490,
+ 0x0492, 0x0492,
+ 0x0494, 0x0494,
+ 0x0496, 0x0496,
+ 0x0498, 0x0498,
+ 0x049a, 0x049a,
+ 0x049c, 0x049c,
+ 0x049e, 0x049e,
+ 0x04a0, 0x04a0,
+ 0x04a2, 0x04a2,
+ 0x04a4, 0x04a4,
+ 0x04a6, 0x04a6,
+ 0x04a8, 0x04a8,
+ 0x04aa, 0x04aa,
+ 0x04ac, 0x04ac,
+ 0x04ae, 0x04ae,
+ 0x04b0, 0x04b0,
+ 0x04b2, 0x04b2,
+ 0x04b4, 0x04b4,
+ 0x04b6, 0x04b6,
+ 0x04b8, 0x04b8,
+ 0x04ba, 0x04ba,
+ 0x04bc, 0x04bc,
+ 0x04be, 0x04be,
+ 0x04c0, 0x04c1,
+ 0x04c3, 0x04c3,
+ 0x04c5, 0x04c5,
+ 0x04c7, 0x04c7,
+ 0x04c9, 0x04c9,
+ 0x04cb, 0x04cb,
+ 0x04cd, 0x04cd,
+ 0x04d0, 0x04d0,
+ 0x04d2, 0x04d2,
+ 0x04d4, 0x04d4,
+ 0x04d6, 0x04d6,
+ 0x04d8, 0x04d8,
+ 0x04da, 0x04da,
+ 0x04dc, 0x04dc,
+ 0x04de, 0x04de,
+ 0x04e0, 0x04e0,
+ 0x04e2, 0x04e2,
+ 0x04e4, 0x04e4,
+ 0x04e6, 0x04e6,
+ 0x04e8, 0x04e8,
+ 0x04ea, 0x04ea,
+ 0x04ec, 0x04ec,
+ 0x04ee, 0x04ee,
+ 0x04f0, 0x04f0,
+ 0x04f2, 0x04f2,
+ 0x04f4, 0x04f4,
+ 0x04f6, 0x04f6,
+ 0x04f8, 0x04f8,
+ 0x04fa, 0x04fa,
+ 0x04fc, 0x04fc,
+ 0x04fe, 0x04fe,
+ 0x0500, 0x0500,
+ 0x0502, 0x0502,
+ 0x0504, 0x0504,
+ 0x0506, 0x0506,
+ 0x0508, 0x0508,
+ 0x050a, 0x050a,
+ 0x050c, 0x050c,
+ 0x050e, 0x050e,
+ 0x0510, 0x0510,
+ 0x0512, 0x0512,
+ 0x0514, 0x0514,
+ 0x0516, 0x0516,
+ 0x0518, 0x0518,
+ 0x051a, 0x051a,
+ 0x051c, 0x051c,
+ 0x051e, 0x051e,
+ 0x0520, 0x0520,
+ 0x0522, 0x0522,
+ 0x0524, 0x0524,
+ 0x0526, 0x0526,
+ 0x0531, 0x0556,
+ 0x0587, 0x0587,
+ 0x10a0, 0x10c5,
+ 0x1e00, 0x1e00,
+ 0x1e02, 0x1e02,
+ 0x1e04, 0x1e04,
+ 0x1e06, 0x1e06,
+ 0x1e08, 0x1e08,
+ 0x1e0a, 0x1e0a,
+ 0x1e0c, 0x1e0c,
+ 0x1e0e, 0x1e0e,
+ 0x1e10, 0x1e10,
+ 0x1e12, 0x1e12,
+ 0x1e14, 0x1e14,
+ 0x1e16, 0x1e16,
+ 0x1e18, 0x1e18,
+ 0x1e1a, 0x1e1a,
+ 0x1e1c, 0x1e1c,
+ 0x1e1e, 0x1e1e,
+ 0x1e20, 0x1e20,
+ 0x1e22, 0x1e22,
+ 0x1e24, 0x1e24,
+ 0x1e26, 0x1e26,
+ 0x1e28, 0x1e28,
+ 0x1e2a, 0x1e2a,
+ 0x1e2c, 0x1e2c,
+ 0x1e2e, 0x1e2e,
+ 0x1e30, 0x1e30,
+ 0x1e32, 0x1e32,
+ 0x1e34, 0x1e34,
+ 0x1e36, 0x1e36,
+ 0x1e38, 0x1e38,
+ 0x1e3a, 0x1e3a,
+ 0x1e3c, 0x1e3c,
+ 0x1e3e, 0x1e3e,
+ 0x1e40, 0x1e40,
+ 0x1e42, 0x1e42,
+ 0x1e44, 0x1e44,
+ 0x1e46, 0x1e46,
+ 0x1e48, 0x1e48,
+ 0x1e4a, 0x1e4a,
+ 0x1e4c, 0x1e4c,
+ 0x1e4e, 0x1e4e,
+ 0x1e50, 0x1e50,
+ 0x1e52, 0x1e52,
+ 0x1e54, 0x1e54,
+ 0x1e56, 0x1e56,
+ 0x1e58, 0x1e58,
+ 0x1e5a, 0x1e5a,
+ 0x1e5c, 0x1e5c,
+ 0x1e5e, 0x1e5e,
+ 0x1e60, 0x1e60,
+ 0x1e62, 0x1e62,
+ 0x1e64, 0x1e64,
+ 0x1e66, 0x1e66,
+ 0x1e68, 0x1e68,
+ 0x1e6a, 0x1e6a,
+ 0x1e6c, 0x1e6c,
+ 0x1e6e, 0x1e6e,
+ 0x1e70, 0x1e70,
+ 0x1e72, 0x1e72,
+ 0x1e74, 0x1e74,
+ 0x1e76, 0x1e76,
+ 0x1e78, 0x1e78,
+ 0x1e7a, 0x1e7a,
+ 0x1e7c, 0x1e7c,
+ 0x1e7e, 0x1e7e,
+ 0x1e80, 0x1e80,
+ 0x1e82, 0x1e82,
+ 0x1e84, 0x1e84,
+ 0x1e86, 0x1e86,
+ 0x1e88, 0x1e88,
+ 0x1e8a, 0x1e8a,
+ 0x1e8c, 0x1e8c,
+ 0x1e8e, 0x1e8e,
+ 0x1e90, 0x1e90,
+ 0x1e92, 0x1e92,
+ 0x1e94, 0x1e94,
+ 0x1e9a, 0x1e9b,
+ 0x1e9e, 0x1e9e,
+ 0x1ea0, 0x1ea0,
+ 0x1ea2, 0x1ea2,
+ 0x1ea4, 0x1ea4,
+ 0x1ea6, 0x1ea6,
+ 0x1ea8, 0x1ea8,
+ 0x1eaa, 0x1eaa,
+ 0x1eac, 0x1eac,
+ 0x1eae, 0x1eae,
+ 0x1eb0, 0x1eb0,
+ 0x1eb2, 0x1eb2,
+ 0x1eb4, 0x1eb4,
+ 0x1eb6, 0x1eb6,
+ 0x1eb8, 0x1eb8,
+ 0x1eba, 0x1eba,
+ 0x1ebc, 0x1ebc,
+ 0x1ebe, 0x1ebe,
+ 0x1ec0, 0x1ec0,
+ 0x1ec2, 0x1ec2,
+ 0x1ec4, 0x1ec4,
+ 0x1ec6, 0x1ec6,
+ 0x1ec8, 0x1ec8,
+ 0x1eca, 0x1eca,
+ 0x1ecc, 0x1ecc,
+ 0x1ece, 0x1ece,
+ 0x1ed0, 0x1ed0,
+ 0x1ed2, 0x1ed2,
+ 0x1ed4, 0x1ed4,
+ 0x1ed6, 0x1ed6,
+ 0x1ed8, 0x1ed8,
+ 0x1eda, 0x1eda,
+ 0x1edc, 0x1edc,
+ 0x1ede, 0x1ede,
+ 0x1ee0, 0x1ee0,
+ 0x1ee2, 0x1ee2,
+ 0x1ee4, 0x1ee4,
+ 0x1ee6, 0x1ee6,
+ 0x1ee8, 0x1ee8,
+ 0x1eea, 0x1eea,
+ 0x1eec, 0x1eec,
+ 0x1eee, 0x1eee,
+ 0x1ef0, 0x1ef0,
+ 0x1ef2, 0x1ef2,
+ 0x1ef4, 0x1ef4,
+ 0x1ef6, 0x1ef6,
+ 0x1ef8, 0x1ef8,
+ 0x1efa, 0x1efa,
+ 0x1efc, 0x1efc,
+ 0x1efe, 0x1efe,
+ 0x1f08, 0x1f0f,
+ 0x1f18, 0x1f1d,
+ 0x1f28, 0x1f2f,
+ 0x1f38, 0x1f3f,
+ 0x1f48, 0x1f4d,
+ 0x1f59, 0x1f59,
+ 0x1f5b, 0x1f5b,
+ 0x1f5d, 0x1f5d,
+ 0x1f5f, 0x1f5f,
+ 0x1f68, 0x1f6f,
+ 0x1f80, 0x1faf,
+ 0x1fb2, 0x1fb4,
+ 0x1fb7, 0x1fbc,
+ 0x1fc2, 0x1fc4,
+ 0x1fc7, 0x1fcc,
+ 0x1fd8, 0x1fdb,
+ 0x1fe8, 0x1fec,
+ 0x1ff2, 0x1ff4,
+ 0x1ff7, 0x1ffc,
+ 0x2126, 0x2126,
+ 0x212a, 0x212b,
+ 0x2132, 0x2132,
+ 0x2160, 0x216f,
+ 0x2183, 0x2183,
+ 0x24b6, 0x24cf,
+ 0x2c00, 0x2c2e,
+ 0x2c60, 0x2c60,
+ 0x2c62, 0x2c64,
+ 0x2c67, 0x2c67,
+ 0x2c69, 0x2c69,
+ 0x2c6b, 0x2c6b,
+ 0x2c6d, 0x2c70,
+ 0x2c72, 0x2c72,
+ 0x2c75, 0x2c75,
+ 0x2c7e, 0x2c80,
+ 0x2c82, 0x2c82,
+ 0x2c84, 0x2c84,
+ 0x2c86, 0x2c86,
+ 0x2c88, 0x2c88,
+ 0x2c8a, 0x2c8a,
+ 0x2c8c, 0x2c8c,
+ 0x2c8e, 0x2c8e,
+ 0x2c90, 0x2c90,
+ 0x2c92, 0x2c92,
+ 0x2c94, 0x2c94,
+ 0x2c96, 0x2c96,
+ 0x2c98, 0x2c98,
+ 0x2c9a, 0x2c9a,
+ 0x2c9c, 0x2c9c,
+ 0x2c9e, 0x2c9e,
+ 0x2ca0, 0x2ca0,
+ 0x2ca2, 0x2ca2,
+ 0x2ca4, 0x2ca4,
+ 0x2ca6, 0x2ca6,
+ 0x2ca8, 0x2ca8,
+ 0x2caa, 0x2caa,
+ 0x2cac, 0x2cac,
+ 0x2cae, 0x2cae,
+ 0x2cb0, 0x2cb0,
+ 0x2cb2, 0x2cb2,
+ 0x2cb4, 0x2cb4,
+ 0x2cb6, 0x2cb6,
+ 0x2cb8, 0x2cb8,
+ 0x2cba, 0x2cba,
+ 0x2cbc, 0x2cbc,
+ 0x2cbe, 0x2cbe,
+ 0x2cc0, 0x2cc0,
+ 0x2cc2, 0x2cc2,
+ 0x2cc4, 0x2cc4,
+ 0x2cc6, 0x2cc6,
+ 0x2cc8, 0x2cc8,
+ 0x2cca, 0x2cca,
+ 0x2ccc, 0x2ccc,
+ 0x2cce, 0x2cce,
+ 0x2cd0, 0x2cd0,
+ 0x2cd2, 0x2cd2,
+ 0x2cd4, 0x2cd4,
+ 0x2cd6, 0x2cd6,
+ 0x2cd8, 0x2cd8,
+ 0x2cda, 0x2cda,
+ 0x2cdc, 0x2cdc,
+ 0x2cde, 0x2cde,
+ 0x2ce0, 0x2ce0,
+ 0x2ce2, 0x2ce2,
+ 0x2ceb, 0x2ceb,
+ 0x2ced, 0x2ced,
+ 0xa640, 0xa640,
+ 0xa642, 0xa642,
+ 0xa644, 0xa644,
+ 0xa646, 0xa646,
+ 0xa648, 0xa648,
+ 0xa64a, 0xa64a,
+ 0xa64c, 0xa64c,
+ 0xa64e, 0xa64e,
+ 0xa650, 0xa650,
+ 0xa652, 0xa652,
+ 0xa654, 0xa654,
+ 0xa656, 0xa656,
+ 0xa658, 0xa658,
+ 0xa65a, 0xa65a,
+ 0xa65c, 0xa65c,
+ 0xa65e, 0xa65e,
+ 0xa660, 0xa660,
+ 0xa662, 0xa662,
+ 0xa664, 0xa664,
+ 0xa666, 0xa666,
+ 0xa668, 0xa668,
+ 0xa66a, 0xa66a,
+ 0xa66c, 0xa66c,
+ 0xa680, 0xa680,
+ 0xa682, 0xa682,
+ 0xa684, 0xa684,
+ 0xa686, 0xa686,
+ 0xa688, 0xa688,
+ 0xa68a, 0xa68a,
+ 0xa68c, 0xa68c,
+ 0xa68e, 0xa68e,
+ 0xa690, 0xa690,
+ 0xa692, 0xa692,
+ 0xa694, 0xa694,
+ 0xa696, 0xa696,
+ 0xa722, 0xa722,
+ 0xa724, 0xa724,
+ 0xa726, 0xa726,
+ 0xa728, 0xa728,
+ 0xa72a, 0xa72a,
+ 0xa72c, 0xa72c,
+ 0xa72e, 0xa72e,
+ 0xa732, 0xa732,
+ 0xa734, 0xa734,
+ 0xa736, 0xa736,
+ 0xa738, 0xa738,
+ 0xa73a, 0xa73a,
+ 0xa73c, 0xa73c,
+ 0xa73e, 0xa73e,
+ 0xa740, 0xa740,
+ 0xa742, 0xa742,
+ 0xa744, 0xa744,
+ 0xa746, 0xa746,
+ 0xa748, 0xa748,
+ 0xa74a, 0xa74a,
+ 0xa74c, 0xa74c,
+ 0xa74e, 0xa74e,
+ 0xa750, 0xa750,
+ 0xa752, 0xa752,
+ 0xa754, 0xa754,
+ 0xa756, 0xa756,
+ 0xa758, 0xa758,
+ 0xa75a, 0xa75a,
+ 0xa75c, 0xa75c,
+ 0xa75e, 0xa75e,
+ 0xa760, 0xa760,
+ 0xa762, 0xa762,
+ 0xa764, 0xa764,
+ 0xa766, 0xa766,
+ 0xa768, 0xa768,
+ 0xa76a, 0xa76a,
+ 0xa76c, 0xa76c,
+ 0xa76e, 0xa76e,
+ 0xa779, 0xa779,
+ 0xa77b, 0xa77b,
+ 0xa77d, 0xa77e,
+ 0xa780, 0xa780,
+ 0xa782, 0xa782,
+ 0xa784, 0xa784,
+ 0xa786, 0xa786,
+ 0xa78b, 0xa78b,
+ 0xa78d, 0xa78d,
+ 0xa790, 0xa790,
+ 0xa7a0, 0xa7a0,
+ 0xa7a2, 0xa7a2,
+ 0xa7a4, 0xa7a4,
+ 0xa7a6, 0xa7a6,
+ 0xa7a8, 0xa7a8,
+ 0xfb00, 0xfb06,
+ 0xfb13, 0xfb17,
+ 0xff21, 0xff3a,
+ 0x10400, 0x10427,
+}; /* CR_Changes_When_Casefolded */
+
+/* 'Changes_When_Casemapped': Derived Property */
+static const OnigCodePoint CR_Changes_When_Casemapped[] = {
+ 99,
+ 0x0041, 0x005a,
+ 0x0061, 0x007a,
+ 0x00b5, 0x00b5,
+ 0x00c0, 0x00d6,
+ 0x00d8, 0x00f6,
+ 0x00f8, 0x0137,
+ 0x0139, 0x018c,
+ 0x018e, 0x019a,
+ 0x019c, 0x01a9,
+ 0x01ac, 0x01b9,
+ 0x01bc, 0x01bd,
+ 0x01bf, 0x01bf,
+ 0x01c4, 0x0220,
+ 0x0222, 0x0233,
+ 0x023a, 0x0254,
+ 0x0256, 0x0257,
+ 0x0259, 0x0259,
+ 0x025b, 0x025b,
+ 0x0260, 0x0260,
+ 0x0263, 0x0263,
+ 0x0265, 0x0265,
+ 0x0268, 0x0269,
+ 0x026b, 0x026b,
+ 0x026f, 0x026f,
+ 0x0271, 0x0272,
+ 0x0275, 0x0275,
+ 0x027d, 0x027d,
+ 0x0280, 0x0280,
+ 0x0283, 0x0283,
+ 0x0288, 0x028c,
+ 0x0292, 0x0292,
+ 0x0345, 0x0345,
+ 0x0370, 0x0373,
+ 0x0376, 0x0377,
+ 0x037b, 0x037d,
+ 0x0386, 0x0386,
+ 0x0388, 0x038a,
+ 0x038c, 0x038c,
+ 0x038e, 0x03a1,
+ 0x03a3, 0x03d1,
+ 0x03d5, 0x03f2,
+ 0x03f4, 0x03f5,
+ 0x03f7, 0x03fb,
+ 0x03fd, 0x0481,
+ 0x048a, 0x0527,
+ 0x0531, 0x0556,
+ 0x0561, 0x0587,
+ 0x10a0, 0x10c5,
+ 0x1d79, 0x1d79,
+ 0x1d7d, 0x1d7d,
+ 0x1e00, 0x1e9b,
+ 0x1e9e, 0x1e9e,
+ 0x1ea0, 0x1f15,
+ 0x1f18, 0x1f1d,
+ 0x1f20, 0x1f45,
+ 0x1f48, 0x1f4d,
+ 0x1f50, 0x1f57,
+ 0x1f59, 0x1f59,
+ 0x1f5b, 0x1f5b,
+ 0x1f5d, 0x1f5d,
+ 0x1f5f, 0x1f7d,
+ 0x1f80, 0x1fb4,
+ 0x1fb6, 0x1fbc,
+ 0x1fbe, 0x1fbe,
+ 0x1fc2, 0x1fc4,
+ 0x1fc6, 0x1fcc,
+ 0x1fd0, 0x1fd3,
+ 0x1fd6, 0x1fdb,
+ 0x1fe0, 0x1fec,
+ 0x1ff2, 0x1ff4,
+ 0x1ff6, 0x1ffc,
+ 0x2126, 0x2126,
+ 0x212a, 0x212b,
+ 0x2132, 0x2132,
+ 0x214e, 0x214e,
+ 0x2160, 0x217f,
+ 0x2183, 0x2184,
+ 0x24b6, 0x24e9,
+ 0x2c00, 0x2c2e,
+ 0x2c30, 0x2c5e,
+ 0x2c60, 0x2c70,
+ 0x2c72, 0x2c73,
+ 0x2c75, 0x2c76,
+ 0x2c7e, 0x2ce3,
+ 0x2ceb, 0x2cee,
+ 0x2d00, 0x2d25,
+ 0xa640, 0xa66d,
+ 0xa680, 0xa697,
+ 0xa722, 0xa72f,
+ 0xa732, 0xa76f,
+ 0xa779, 0xa787,
+ 0xa78b, 0xa78d,
+ 0xa790, 0xa791,
+ 0xa7a0, 0xa7a9,
+ 0xfb00, 0xfb06,
+ 0xfb13, 0xfb17,
+ 0xff21, 0xff3a,
+ 0xff41, 0xff5a,
+ 0x10400, 0x1044f,
+}; /* CR_Changes_When_Casemapped */
+
+/* 'ID_Start': Derived Property */
+static const OnigCodePoint CR_ID_Start[] = {
+ 437,
+ 0x0041, 0x005a,
+ 0x0061, 0x007a,
+ 0x00aa, 0x00aa,
+ 0x00b5, 0x00b5,
+ 0x00ba, 0x00ba,
+ 0x00c0, 0x00d6,
+ 0x00d8, 0x00f6,
+ 0x00f8, 0x02c1,
+ 0x02c6, 0x02d1,
+ 0x02e0, 0x02e4,
+ 0x02ec, 0x02ec,
+ 0x02ee, 0x02ee,
+ 0x0370, 0x0374,
+ 0x0376, 0x0377,
+ 0x037a, 0x037d,
+ 0x0386, 0x0386,
+ 0x0388, 0x038a,
+ 0x038c, 0x038c,
+ 0x038e, 0x03a1,
+ 0x03a3, 0x03f5,
+ 0x03f7, 0x0481,
+ 0x048a, 0x0527,
+ 0x0531, 0x0556,
+ 0x0559, 0x0559,
+ 0x0561, 0x0587,
+ 0x05d0, 0x05ea,
+ 0x05f0, 0x05f2,
+ 0x0620, 0x064a,
+ 0x066e, 0x066f,
+ 0x0671, 0x06d3,
+ 0x06d5, 0x06d5,
+ 0x06e5, 0x06e6,
+ 0x06ee, 0x06ef,
+ 0x06fa, 0x06fc,
+ 0x06ff, 0x06ff,
+ 0x0710, 0x0710,
+ 0x0712, 0x072f,
+ 0x074d, 0x07a5,
+ 0x07b1, 0x07b1,
+ 0x07ca, 0x07ea,
+ 0x07f4, 0x07f5,
+ 0x07fa, 0x07fa,
+ 0x0800, 0x0815,
+ 0x081a, 0x081a,
+ 0x0824, 0x0824,
+ 0x0828, 0x0828,
+ 0x0840, 0x0858,
+ 0x0904, 0x0939,
+ 0x093d, 0x093d,
+ 0x0950, 0x0950,
+ 0x0958, 0x0961,
+ 0x0971, 0x0977,
+ 0x0979, 0x097f,
+ 0x0985, 0x098c,
+ 0x098f, 0x0990,
+ 0x0993, 0x09a8,
+ 0x09aa, 0x09b0,
+ 0x09b2, 0x09b2,
+ 0x09b6, 0x09b9,
+ 0x09bd, 0x09bd,
+ 0x09ce, 0x09ce,
+ 0x09dc, 0x09dd,
+ 0x09df, 0x09e1,
+ 0x09f0, 0x09f1,
+ 0x0a05, 0x0a0a,
+ 0x0a0f, 0x0a10,
+ 0x0a13, 0x0a28,
+ 0x0a2a, 0x0a30,
+ 0x0a32, 0x0a33,
+ 0x0a35, 0x0a36,
+ 0x0a38, 0x0a39,
+ 0x0a59, 0x0a5c,
+ 0x0a5e, 0x0a5e,
+ 0x0a72, 0x0a74,
+ 0x0a85, 0x0a8d,
+ 0x0a8f, 0x0a91,
+ 0x0a93, 0x0aa8,
+ 0x0aaa, 0x0ab0,
+ 0x0ab2, 0x0ab3,
+ 0x0ab5, 0x0ab9,
+ 0x0abd, 0x0abd,
+ 0x0ad0, 0x0ad0,
+ 0x0ae0, 0x0ae1,
+ 0x0b05, 0x0b0c,
+ 0x0b0f, 0x0b10,
+ 0x0b13, 0x0b28,
+ 0x0b2a, 0x0b30,
+ 0x0b32, 0x0b33,
+ 0x0b35, 0x0b39,
+ 0x0b3d, 0x0b3d,
+ 0x0b5c, 0x0b5d,
+ 0x0b5f, 0x0b61,
+ 0x0b71, 0x0b71,
+ 0x0b83, 0x0b83,
+ 0x0b85, 0x0b8a,
+ 0x0b8e, 0x0b90,
+ 0x0b92, 0x0b95,
+ 0x0b99, 0x0b9a,
+ 0x0b9c, 0x0b9c,
+ 0x0b9e, 0x0b9f,
+ 0x0ba3, 0x0ba4,
+ 0x0ba8, 0x0baa,
+ 0x0bae, 0x0bb9,
+ 0x0bd0, 0x0bd0,
+ 0x0c05, 0x0c0c,
+ 0x0c0e, 0x0c10,
+ 0x0c12, 0x0c28,
+ 0x0c2a, 0x0c33,
+ 0x0c35, 0x0c39,
+ 0x0c3d, 0x0c3d,
+ 0x0c58, 0x0c59,
+ 0x0c60, 0x0c61,
+ 0x0c85, 0x0c8c,
+ 0x0c8e, 0x0c90,
+ 0x0c92, 0x0ca8,
+ 0x0caa, 0x0cb3,
+ 0x0cb5, 0x0cb9,
+ 0x0cbd, 0x0cbd,
+ 0x0cde, 0x0cde,
+ 0x0ce0, 0x0ce1,
+ 0x0cf1, 0x0cf2,
+ 0x0d05, 0x0d0c,
+ 0x0d0e, 0x0d10,
+ 0x0d12, 0x0d3a,
+ 0x0d3d, 0x0d3d,
+ 0x0d4e, 0x0d4e,
+ 0x0d60, 0x0d61,
+ 0x0d7a, 0x0d7f,
+ 0x0d85, 0x0d96,
+ 0x0d9a, 0x0db1,
+ 0x0db3, 0x0dbb,
+ 0x0dbd, 0x0dbd,
+ 0x0dc0, 0x0dc6,
+ 0x0e01, 0x0e30,
+ 0x0e32, 0x0e33,
+ 0x0e40, 0x0e46,
+ 0x0e81, 0x0e82,
+ 0x0e84, 0x0e84,
+ 0x0e87, 0x0e88,
+ 0x0e8a, 0x0e8a,
+ 0x0e8d, 0x0e8d,
+ 0x0e94, 0x0e97,
+ 0x0e99, 0x0e9f,
+ 0x0ea1, 0x0ea3,
+ 0x0ea5, 0x0ea5,
+ 0x0ea7, 0x0ea7,
+ 0x0eaa, 0x0eab,
+ 0x0ead, 0x0eb0,
+ 0x0eb2, 0x0eb3,
+ 0x0ebd, 0x0ebd,
+ 0x0ec0, 0x0ec4,
+ 0x0ec6, 0x0ec6,
+ 0x0edc, 0x0edd,
+ 0x0f00, 0x0f00,
+ 0x0f40, 0x0f47,
+ 0x0f49, 0x0f6c,
+ 0x0f88, 0x0f8c,
+ 0x1000, 0x102a,
+ 0x103f, 0x103f,
+ 0x1050, 0x1055,
+ 0x105a, 0x105d,
+ 0x1061, 0x1061,
+ 0x1065, 0x1066,
+ 0x106e, 0x1070,
+ 0x1075, 0x1081,
+ 0x108e, 0x108e,
+ 0x10a0, 0x10c5,
+ 0x10d0, 0x10fa,
+ 0x10fc, 0x10fc,
+ 0x1100, 0x1248,
+ 0x124a, 0x124d,
+ 0x1250, 0x1256,
+ 0x1258, 0x1258,
+ 0x125a, 0x125d,
+ 0x1260, 0x1288,
+ 0x128a, 0x128d,
+ 0x1290, 0x12b0,
+ 0x12b2, 0x12b5,
+ 0x12b8, 0x12be,
+ 0x12c0, 0x12c0,
+ 0x12c2, 0x12c5,
+ 0x12c8, 0x12d6,
+ 0x12d8, 0x1310,
+ 0x1312, 0x1315,
+ 0x1318, 0x135a,
+ 0x1380, 0x138f,
+ 0x13a0, 0x13f4,
+ 0x1401, 0x166c,
+ 0x166f, 0x167f,
+ 0x1681, 0x169a,
+ 0x16a0, 0x16ea,
+ 0x16ee, 0x16f0,
+ 0x1700, 0x170c,
+ 0x170e, 0x1711,
+ 0x1720, 0x1731,
+ 0x1740, 0x1751,
+ 0x1760, 0x176c,
+ 0x176e, 0x1770,
+ 0x1780, 0x17b3,
+ 0x17d7, 0x17d7,
+ 0x17dc, 0x17dc,
+ 0x1820, 0x1877,
+ 0x1880, 0x18a8,
+ 0x18aa, 0x18aa,
+ 0x18b0, 0x18f5,
+ 0x1900, 0x191c,
+ 0x1950, 0x196d,
+ 0x1970, 0x1974,
+ 0x1980, 0x19ab,
+ 0x19c1, 0x19c7,
+ 0x1a00, 0x1a16,
+ 0x1a20, 0x1a54,
+ 0x1aa7, 0x1aa7,
+ 0x1b05, 0x1b33,
+ 0x1b45, 0x1b4b,
+ 0x1b83, 0x1ba0,
+ 0x1bae, 0x1baf,
+ 0x1bc0, 0x1be5,
+ 0x1c00, 0x1c23,
+ 0x1c4d, 0x1c4f,
+ 0x1c5a, 0x1c7d,
+ 0x1ce9, 0x1cec,
+ 0x1cee, 0x1cf1,
+ 0x1d00, 0x1dbf,
+ 0x1e00, 0x1f15,
+ 0x1f18, 0x1f1d,
+ 0x1f20, 0x1f45,
+ 0x1f48, 0x1f4d,
+ 0x1f50, 0x1f57,
+ 0x1f59, 0x1f59,
+ 0x1f5b, 0x1f5b,
+ 0x1f5d, 0x1f5d,
+ 0x1f5f, 0x1f7d,
+ 0x1f80, 0x1fb4,
+ 0x1fb6, 0x1fbc,
+ 0x1fbe, 0x1fbe,
+ 0x1fc2, 0x1fc4,
+ 0x1fc6, 0x1fcc,
+ 0x1fd0, 0x1fd3,
+ 0x1fd6, 0x1fdb,
+ 0x1fe0, 0x1fec,
+ 0x1ff2, 0x1ff4,
+ 0x1ff6, 0x1ffc,
+ 0x2071, 0x2071,
+ 0x207f, 0x207f,
+ 0x2090, 0x209c,
+ 0x2102, 0x2102,
+ 0x2107, 0x2107,
+ 0x210a, 0x2113,
+ 0x2115, 0x2115,
+ 0x2118, 0x211d,
+ 0x2124, 0x2124,
+ 0x2126, 0x2126,
+ 0x2128, 0x2128,
+ 0x212a, 0x2139,
+ 0x213c, 0x213f,
+ 0x2145, 0x2149,
+ 0x214e, 0x214e,
+ 0x2160, 0x2188,
+ 0x2c00, 0x2c2e,
+ 0x2c30, 0x2c5e,
+ 0x2c60, 0x2ce4,
+ 0x2ceb, 0x2cee,
+ 0x2d00, 0x2d25,
+ 0x2d30, 0x2d65,
+ 0x2d6f, 0x2d6f,
+ 0x2d80, 0x2d96,
+ 0x2da0, 0x2da6,
+ 0x2da8, 0x2dae,
+ 0x2db0, 0x2db6,
+ 0x2db8, 0x2dbe,
+ 0x2dc0, 0x2dc6,
+ 0x2dc8, 0x2dce,
+ 0x2dd0, 0x2dd6,
+ 0x2dd8, 0x2dde,
+ 0x3005, 0x3007,
+ 0x3021, 0x3029,
+ 0x3031, 0x3035,
+ 0x3038, 0x303c,
+ 0x3041, 0x3096,
+ 0x309b, 0x309f,
+ 0x30a1, 0x30fa,
+ 0x30fc, 0x30ff,
+ 0x3105, 0x312d,
+ 0x3131, 0x318e,
+ 0x31a0, 0x31ba,
+ 0x31f0, 0x31ff,
+ 0x3400, 0x4db5,
+ 0x4e00, 0x9fcb,
+ 0xa000, 0xa48c,
+ 0xa4d0, 0xa4fd,
+ 0xa500, 0xa60c,
+ 0xa610, 0xa61f,
+ 0xa62a, 0xa62b,
+ 0xa640, 0xa66e,
+ 0xa67f, 0xa697,
+ 0xa6a0, 0xa6ef,
+ 0xa717, 0xa71f,
+ 0xa722, 0xa788,
+ 0xa78b, 0xa78e,
+ 0xa790, 0xa791,
+ 0xa7a0, 0xa7a9,
+ 0xa7fa, 0xa801,
+ 0xa803, 0xa805,
+ 0xa807, 0xa80a,
+ 0xa80c, 0xa822,
+ 0xa840, 0xa873,
+ 0xa882, 0xa8b3,
+ 0xa8f2, 0xa8f7,
+ 0xa8fb, 0xa8fb,
+ 0xa90a, 0xa925,
+ 0xa930, 0xa946,
+ 0xa960, 0xa97c,
+ 0xa984, 0xa9b2,
+ 0xa9cf, 0xa9cf,
+ 0xaa00, 0xaa28,
+ 0xaa40, 0xaa42,
+ 0xaa44, 0xaa4b,
+ 0xaa60, 0xaa76,
+ 0xaa7a, 0xaa7a,
+ 0xaa80, 0xaaaf,
+ 0xaab1, 0xaab1,
+ 0xaab5, 0xaab6,
+ 0xaab9, 0xaabd,
+ 0xaac0, 0xaac0,
+ 0xaac2, 0xaac2,
+ 0xaadb, 0xaadd,
+ 0xab01, 0xab06,
+ 0xab09, 0xab0e,
+ 0xab11, 0xab16,
+ 0xab20, 0xab26,
+ 0xab28, 0xab2e,
+ 0xabc0, 0xabe2,
+ 0xac00, 0xd7a3,
+ 0xd7b0, 0xd7c6,
+ 0xd7cb, 0xd7fb,
+ 0xf900, 0xfa2d,
+ 0xfa30, 0xfa6d,
+ 0xfa70, 0xfad9,
+ 0xfb00, 0xfb06,
+ 0xfb13, 0xfb17,
+ 0xfb1d, 0xfb1d,
+ 0xfb1f, 0xfb28,
+ 0xfb2a, 0xfb36,
+ 0xfb38, 0xfb3c,
+ 0xfb3e, 0xfb3e,
+ 0xfb40, 0xfb41,
+ 0xfb43, 0xfb44,
+ 0xfb46, 0xfbb1,
+ 0xfbd3, 0xfd3d,
+ 0xfd50, 0xfd8f,
+ 0xfd92, 0xfdc7,
+ 0xfdf0, 0xfdfb,
+ 0xfe70, 0xfe74,
+ 0xfe76, 0xfefc,
+ 0xff21, 0xff3a,
+ 0xff41, 0xff5a,
+ 0xff66, 0xffbe,
+ 0xffc2, 0xffc7,
+ 0xffca, 0xffcf,
+ 0xffd2, 0xffd7,
+ 0xffda, 0xffdc,
+ 0x10000, 0x1000b,
+ 0x1000d, 0x10026,
+ 0x10028, 0x1003a,
+ 0x1003c, 0x1003d,
+ 0x1003f, 0x1004d,
+ 0x10050, 0x1005d,
+ 0x10080, 0x100fa,
+ 0x10140, 0x10174,
+ 0x10280, 0x1029c,
+ 0x102a0, 0x102d0,
+ 0x10300, 0x1031e,
+ 0x10330, 0x1034a,
+ 0x10380, 0x1039d,
+ 0x103a0, 0x103c3,
+ 0x103c8, 0x103cf,
+ 0x103d1, 0x103d5,
+ 0x10400, 0x1049d,
+ 0x10800, 0x10805,
+ 0x10808, 0x10808,
+ 0x1080a, 0x10835,
+ 0x10837, 0x10838,
+ 0x1083c, 0x1083c,
+ 0x1083f, 0x10855,
+ 0x10900, 0x10915,
+ 0x10920, 0x10939,
+ 0x10a00, 0x10a00,
+ 0x10a10, 0x10a13,
+ 0x10a15, 0x10a17,
+ 0x10a19, 0x10a33,
+ 0x10a60, 0x10a7c,
+ 0x10b00, 0x10b35,
+ 0x10b40, 0x10b55,
+ 0x10b60, 0x10b72,
+ 0x10c00, 0x10c48,
+ 0x11003, 0x11037,
+ 0x11083, 0x110af,
+ 0x12000, 0x1236e,
+ 0x12400, 0x12462,
+ 0x13000, 0x1342e,
+ 0x16800, 0x16a38,
+ 0x1b000, 0x1b001,
+ 0x1d400, 0x1d454,
+ 0x1d456, 0x1d49c,
+ 0x1d49e, 0x1d49f,
+ 0x1d4a2, 0x1d4a2,
+ 0x1d4a5, 0x1d4a6,
+ 0x1d4a9, 0x1d4ac,
+ 0x1d4ae, 0x1d4b9,
+ 0x1d4bb, 0x1d4bb,
+ 0x1d4bd, 0x1d4c3,
+ 0x1d4c5, 0x1d505,
+ 0x1d507, 0x1d50a,
+ 0x1d50d, 0x1d514,
+ 0x1d516, 0x1d51c,
+ 0x1d51e, 0x1d539,
+ 0x1d53b, 0x1d53e,
+ 0x1d540, 0x1d544,
+ 0x1d546, 0x1d546,
+ 0x1d54a, 0x1d550,
+ 0x1d552, 0x1d6a5,
+ 0x1d6a8, 0x1d6c0,
+ 0x1d6c2, 0x1d6da,
+ 0x1d6dc, 0x1d6fa,
+ 0x1d6fc, 0x1d714,
+ 0x1d716, 0x1d734,
+ 0x1d736, 0x1d74e,
+ 0x1d750, 0x1d76e,
+ 0x1d770, 0x1d788,
+ 0x1d78a, 0x1d7a8,
+ 0x1d7aa, 0x1d7c2,
+ 0x1d7c4, 0x1d7cb,
+ 0x20000, 0x2a6d6,
+ 0x2a700, 0x2b734,
+ 0x2b740, 0x2b81d,
+ 0x2f800, 0x2fa1d,
+}; /* CR_ID_Start */
+
+/* 'ID_Continue': Derived Property */
+static const OnigCodePoint CR_ID_Continue[] = {
+ 514,
+ 0x0030, 0x0039,
+ 0x0041, 0x005a,
+ 0x005f, 0x005f,
+ 0x0061, 0x007a,
+ 0x00aa, 0x00aa,
+ 0x00b5, 0x00b5,
+ 0x00b7, 0x00b7,
+ 0x00ba, 0x00ba,
+ 0x00c0, 0x00d6,
+ 0x00d8, 0x00f6,
+ 0x00f8, 0x02c1,
+ 0x02c6, 0x02d1,
+ 0x02e0, 0x02e4,
+ 0x02ec, 0x02ec,
+ 0x02ee, 0x02ee,
+ 0x0300, 0x0374,
+ 0x0376, 0x0377,
+ 0x037a, 0x037d,
+ 0x0386, 0x038a,
+ 0x038c, 0x038c,
+ 0x038e, 0x03a1,
+ 0x03a3, 0x03f5,
+ 0x03f7, 0x0481,
+ 0x0483, 0x0487,
+ 0x048a, 0x0527,
+ 0x0531, 0x0556,
+ 0x0559, 0x0559,
+ 0x0561, 0x0587,
+ 0x0591, 0x05bd,
+ 0x05bf, 0x05bf,
+ 0x05c1, 0x05c2,
+ 0x05c4, 0x05c5,
+ 0x05c7, 0x05c7,
+ 0x05d0, 0x05ea,
+ 0x05f0, 0x05f2,
+ 0x0610, 0x061a,
+ 0x0620, 0x0669,
+ 0x066e, 0x06d3,
+ 0x06d5, 0x06dc,
+ 0x06df, 0x06e8,
+ 0x06ea, 0x06fc,
+ 0x06ff, 0x06ff,
+ 0x0710, 0x074a,
+ 0x074d, 0x07b1,
+ 0x07c0, 0x07f5,
+ 0x07fa, 0x07fa,
+ 0x0800, 0x082d,
+ 0x0840, 0x085b,
+ 0x0900, 0x0963,
+ 0x0966, 0x096f,
+ 0x0971, 0x0977,
+ 0x0979, 0x097f,
+ 0x0981, 0x0983,
+ 0x0985, 0x098c,
+ 0x098f, 0x0990,
+ 0x0993, 0x09a8,
+ 0x09aa, 0x09b0,
+ 0x09b2, 0x09b2,
+ 0x09b6, 0x09b9,
+ 0x09bc, 0x09c4,
+ 0x09c7, 0x09c8,
+ 0x09cb, 0x09ce,
+ 0x09d7, 0x09d7,
+ 0x09dc, 0x09dd,
+ 0x09df, 0x09e3,
+ 0x09e6, 0x09f1,
+ 0x0a01, 0x0a03,
+ 0x0a05, 0x0a0a,
+ 0x0a0f, 0x0a10,
+ 0x0a13, 0x0a28,
+ 0x0a2a, 0x0a30,
+ 0x0a32, 0x0a33,
+ 0x0a35, 0x0a36,
+ 0x0a38, 0x0a39,
+ 0x0a3c, 0x0a3c,
+ 0x0a3e, 0x0a42,
+ 0x0a47, 0x0a48,
+ 0x0a4b, 0x0a4d,
+ 0x0a51, 0x0a51,
+ 0x0a59, 0x0a5c,
+ 0x0a5e, 0x0a5e,
+ 0x0a66, 0x0a75,
+ 0x0a81, 0x0a83,
+ 0x0a85, 0x0a8d,
+ 0x0a8f, 0x0a91,
+ 0x0a93, 0x0aa8,
+ 0x0aaa, 0x0ab0,
+ 0x0ab2, 0x0ab3,
+ 0x0ab5, 0x0ab9,
+ 0x0abc, 0x0ac5,
+ 0x0ac7, 0x0ac9,
+ 0x0acb, 0x0acd,
+ 0x0ad0, 0x0ad0,
+ 0x0ae0, 0x0ae3,
+ 0x0ae6, 0x0aef,
+ 0x0b01, 0x0b03,
+ 0x0b05, 0x0b0c,
+ 0x0b0f, 0x0b10,
+ 0x0b13, 0x0b28,
+ 0x0b2a, 0x0b30,
+ 0x0b32, 0x0b33,
+ 0x0b35, 0x0b39,
+ 0x0b3c, 0x0b44,
+ 0x0b47, 0x0b48,
+ 0x0b4b, 0x0b4d,
+ 0x0b56, 0x0b57,
+ 0x0b5c, 0x0b5d,
+ 0x0b5f, 0x0b63,
+ 0x0b66, 0x0b6f,
+ 0x0b71, 0x0b71,
+ 0x0b82, 0x0b83,
+ 0x0b85, 0x0b8a,
+ 0x0b8e, 0x0b90,
+ 0x0b92, 0x0b95,
+ 0x0b99, 0x0b9a,
+ 0x0b9c, 0x0b9c,
+ 0x0b9e, 0x0b9f,
+ 0x0ba3, 0x0ba4,
+ 0x0ba8, 0x0baa,
+ 0x0bae, 0x0bb9,
+ 0x0bbe, 0x0bc2,
+ 0x0bc6, 0x0bc8,
+ 0x0bca, 0x0bcd,
+ 0x0bd0, 0x0bd0,
+ 0x0bd7, 0x0bd7,
+ 0x0be6, 0x0bef,
+ 0x0c01, 0x0c03,
+ 0x0c05, 0x0c0c,
+ 0x0c0e, 0x0c10,
+ 0x0c12, 0x0c28,
+ 0x0c2a, 0x0c33,
+ 0x0c35, 0x0c39,
+ 0x0c3d, 0x0c44,
+ 0x0c46, 0x0c48,
+ 0x0c4a, 0x0c4d,
+ 0x0c55, 0x0c56,
+ 0x0c58, 0x0c59,
+ 0x0c60, 0x0c63,
+ 0x0c66, 0x0c6f,
+ 0x0c82, 0x0c83,
+ 0x0c85, 0x0c8c,
+ 0x0c8e, 0x0c90,
+ 0x0c92, 0x0ca8,
+ 0x0caa, 0x0cb3,
+ 0x0cb5, 0x0cb9,
+ 0x0cbc, 0x0cc4,
+ 0x0cc6, 0x0cc8,
+ 0x0cca, 0x0ccd,
+ 0x0cd5, 0x0cd6,
+ 0x0cde, 0x0cde,
+ 0x0ce0, 0x0ce3,
+ 0x0ce6, 0x0cef,
+ 0x0cf1, 0x0cf2,
+ 0x0d02, 0x0d03,
+ 0x0d05, 0x0d0c,
+ 0x0d0e, 0x0d10,
+ 0x0d12, 0x0d3a,
+ 0x0d3d, 0x0d44,
+ 0x0d46, 0x0d48,
+ 0x0d4a, 0x0d4e,
+ 0x0d57, 0x0d57,
+ 0x0d60, 0x0d63,
+ 0x0d66, 0x0d6f,
+ 0x0d7a, 0x0d7f,
+ 0x0d82, 0x0d83,
+ 0x0d85, 0x0d96,
+ 0x0d9a, 0x0db1,
+ 0x0db3, 0x0dbb,
+ 0x0dbd, 0x0dbd,
+ 0x0dc0, 0x0dc6,
+ 0x0dca, 0x0dca,
+ 0x0dcf, 0x0dd4,
+ 0x0dd6, 0x0dd6,
+ 0x0dd8, 0x0ddf,
+ 0x0df2, 0x0df3,
+ 0x0e01, 0x0e3a,
+ 0x0e40, 0x0e4e,
+ 0x0e50, 0x0e59,
+ 0x0e81, 0x0e82,
+ 0x0e84, 0x0e84,
+ 0x0e87, 0x0e88,
+ 0x0e8a, 0x0e8a,
+ 0x0e8d, 0x0e8d,
+ 0x0e94, 0x0e97,
+ 0x0e99, 0x0e9f,
+ 0x0ea1, 0x0ea3,
+ 0x0ea5, 0x0ea5,
+ 0x0ea7, 0x0ea7,
+ 0x0eaa, 0x0eab,
+ 0x0ead, 0x0eb9,
+ 0x0ebb, 0x0ebd,
+ 0x0ec0, 0x0ec4,
+ 0x0ec6, 0x0ec6,
+ 0x0ec8, 0x0ecd,
+ 0x0ed0, 0x0ed9,
+ 0x0edc, 0x0edd,
+ 0x0f00, 0x0f00,
+ 0x0f18, 0x0f19,
+ 0x0f20, 0x0f29,
+ 0x0f35, 0x0f35,
+ 0x0f37, 0x0f37,
+ 0x0f39, 0x0f39,
+ 0x0f3e, 0x0f47,
+ 0x0f49, 0x0f6c,
+ 0x0f71, 0x0f84,
+ 0x0f86, 0x0f97,
+ 0x0f99, 0x0fbc,
+ 0x0fc6, 0x0fc6,
+ 0x1000, 0x1049,
+ 0x1050, 0x109d,
+ 0x10a0, 0x10c5,
+ 0x10d0, 0x10fa,
+ 0x10fc, 0x10fc,
+ 0x1100, 0x1248,
+ 0x124a, 0x124d,
+ 0x1250, 0x1256,
+ 0x1258, 0x1258,
+ 0x125a, 0x125d,
+ 0x1260, 0x1288,
+ 0x128a, 0x128d,
+ 0x1290, 0x12b0,
+ 0x12b2, 0x12b5,
+ 0x12b8, 0x12be,
+ 0x12c0, 0x12c0,
+ 0x12c2, 0x12c5,
+ 0x12c8, 0x12d6,
+ 0x12d8, 0x1310,
+ 0x1312, 0x1315,
+ 0x1318, 0x135a,
+ 0x135d, 0x135f,
+ 0x1369, 0x1371,
+ 0x1380, 0x138f,
+ 0x13a0, 0x13f4,
+ 0x1401, 0x166c,
+ 0x166f, 0x167f,
+ 0x1681, 0x169a,
+ 0x16a0, 0x16ea,
+ 0x16ee, 0x16f0,
+ 0x1700, 0x170c,
+ 0x170e, 0x1714,
+ 0x1720, 0x1734,
+ 0x1740, 0x1753,
+ 0x1760, 0x176c,
+ 0x176e, 0x1770,
+ 0x1772, 0x1773,
+ 0x1780, 0x17b3,
+ 0x17b6, 0x17d3,
+ 0x17d7, 0x17d7,
+ 0x17dc, 0x17dd,
+ 0x17e0, 0x17e9,
+ 0x180b, 0x180d,
+ 0x1810, 0x1819,
+ 0x1820, 0x1877,
+ 0x1880, 0x18aa,
+ 0x18b0, 0x18f5,
+ 0x1900, 0x191c,
+ 0x1920, 0x192b,
+ 0x1930, 0x193b,
+ 0x1946, 0x196d,
+ 0x1970, 0x1974,
+ 0x1980, 0x19ab,
+ 0x19b0, 0x19c9,
+ 0x19d0, 0x19da,
+ 0x1a00, 0x1a1b,
+ 0x1a20, 0x1a5e,
+ 0x1a60, 0x1a7c,
+ 0x1a7f, 0x1a89,
+ 0x1a90, 0x1a99,
+ 0x1aa7, 0x1aa7,
+ 0x1b00, 0x1b4b,
+ 0x1b50, 0x1b59,
+ 0x1b6b, 0x1b73,
+ 0x1b80, 0x1baa,
+ 0x1bae, 0x1bb9,
+ 0x1bc0, 0x1bf3,
+ 0x1c00, 0x1c37,
+ 0x1c40, 0x1c49,
+ 0x1c4d, 0x1c7d,
+ 0x1cd0, 0x1cd2,
+ 0x1cd4, 0x1cf2,
+ 0x1d00, 0x1de6,
+ 0x1dfc, 0x1f15,
+ 0x1f18, 0x1f1d,
+ 0x1f20, 0x1f45,
+ 0x1f48, 0x1f4d,
+ 0x1f50, 0x1f57,
+ 0x1f59, 0x1f59,
+ 0x1f5b, 0x1f5b,
+ 0x1f5d, 0x1f5d,
+ 0x1f5f, 0x1f7d,
+ 0x1f80, 0x1fb4,
+ 0x1fb6, 0x1fbc,
+ 0x1fbe, 0x1fbe,
+ 0x1fc2, 0x1fc4,
+ 0x1fc6, 0x1fcc,
+ 0x1fd0, 0x1fd3,
+ 0x1fd6, 0x1fdb,
+ 0x1fe0, 0x1fec,
+ 0x1ff2, 0x1ff4,
+ 0x1ff6, 0x1ffc,
+ 0x203f, 0x2040,
+ 0x2054, 0x2054,
+ 0x2071, 0x2071,
+ 0x207f, 0x207f,
+ 0x2090, 0x209c,
+ 0x20d0, 0x20dc,
+ 0x20e1, 0x20e1,
+ 0x20e5, 0x20f0,
+ 0x2102, 0x2102,
+ 0x2107, 0x2107,
+ 0x210a, 0x2113,
+ 0x2115, 0x2115,
+ 0x2118, 0x211d,
+ 0x2124, 0x2124,
+ 0x2126, 0x2126,
+ 0x2128, 0x2128,
+ 0x212a, 0x2139,
+ 0x213c, 0x213f,
+ 0x2145, 0x2149,
+ 0x214e, 0x214e,
+ 0x2160, 0x2188,
+ 0x2c00, 0x2c2e,
+ 0x2c30, 0x2c5e,
+ 0x2c60, 0x2ce4,
+ 0x2ceb, 0x2cf1,
+ 0x2d00, 0x2d25,
+ 0x2d30, 0x2d65,
+ 0x2d6f, 0x2d6f,
+ 0x2d7f, 0x2d96,
+ 0x2da0, 0x2da6,
+ 0x2da8, 0x2dae,
+ 0x2db0, 0x2db6,
+ 0x2db8, 0x2dbe,
+ 0x2dc0, 0x2dc6,
+ 0x2dc8, 0x2dce,
+ 0x2dd0, 0x2dd6,
+ 0x2dd8, 0x2dde,
+ 0x2de0, 0x2dff,
+ 0x3005, 0x3007,
+ 0x3021, 0x302f,
+ 0x3031, 0x3035,
+ 0x3038, 0x303c,
+ 0x3041, 0x3096,
+ 0x3099, 0x309f,
+ 0x30a1, 0x30fa,
+ 0x30fc, 0x30ff,
+ 0x3105, 0x312d,
+ 0x3131, 0x318e,
+ 0x31a0, 0x31ba,
+ 0x31f0, 0x31ff,
+ 0x3400, 0x4db5,
+ 0x4e00, 0x9fcb,
+ 0xa000, 0xa48c,
+ 0xa4d0, 0xa4fd,
+ 0xa500, 0xa60c,
+ 0xa610, 0xa62b,
+ 0xa640, 0xa66f,
+ 0xa67c, 0xa67d,
+ 0xa67f, 0xa697,
+ 0xa6a0, 0xa6f1,
+ 0xa717, 0xa71f,
+ 0xa722, 0xa788,
+ 0xa78b, 0xa78e,
+ 0xa790, 0xa791,
+ 0xa7a0, 0xa7a9,
+ 0xa7fa, 0xa827,
+ 0xa840, 0xa873,
+ 0xa880, 0xa8c4,
+ 0xa8d0, 0xa8d9,
+ 0xa8e0, 0xa8f7,
+ 0xa8fb, 0xa8fb,
+ 0xa900, 0xa92d,
+ 0xa930, 0xa953,
+ 0xa960, 0xa97c,
+ 0xa980, 0xa9c0,
+ 0xa9cf, 0xa9d9,
+ 0xaa00, 0xaa36,
+ 0xaa40, 0xaa4d,
+ 0xaa50, 0xaa59,
+ 0xaa60, 0xaa76,
+ 0xaa7a, 0xaa7b,
+ 0xaa80, 0xaac2,
+ 0xaadb, 0xaadd,
+ 0xab01, 0xab06,
+ 0xab09, 0xab0e,
+ 0xab11, 0xab16,
+ 0xab20, 0xab26,
+ 0xab28, 0xab2e,
+ 0xabc0, 0xabea,
+ 0xabec, 0xabed,
+ 0xabf0, 0xabf9,
+ 0xac00, 0xd7a3,
+ 0xd7b0, 0xd7c6,
+ 0xd7cb, 0xd7fb,
+ 0xf900, 0xfa2d,
+ 0xfa30, 0xfa6d,
+ 0xfa70, 0xfad9,
+ 0xfb00, 0xfb06,
+ 0xfb13, 0xfb17,
+ 0xfb1d, 0xfb28,
+ 0xfb2a, 0xfb36,
+ 0xfb38, 0xfb3c,
+ 0xfb3e, 0xfb3e,
+ 0xfb40, 0xfb41,
+ 0xfb43, 0xfb44,
+ 0xfb46, 0xfbb1,
+ 0xfbd3, 0xfd3d,
+ 0xfd50, 0xfd8f,
+ 0xfd92, 0xfdc7,
+ 0xfdf0, 0xfdfb,
+ 0xfe00, 0xfe0f,
+ 0xfe20, 0xfe26,
+ 0xfe33, 0xfe34,
+ 0xfe4d, 0xfe4f,
+ 0xfe70, 0xfe74,
+ 0xfe76, 0xfefc,
+ 0xff10, 0xff19,
+ 0xff21, 0xff3a,
+ 0xff3f, 0xff3f,
+ 0xff41, 0xff5a,
+ 0xff66, 0xffbe,
+ 0xffc2, 0xffc7,
+ 0xffca, 0xffcf,
+ 0xffd2, 0xffd7,
+ 0xffda, 0xffdc,
+ 0x10000, 0x1000b,
+ 0x1000d, 0x10026,
+ 0x10028, 0x1003a,
+ 0x1003c, 0x1003d,
+ 0x1003f, 0x1004d,
+ 0x10050, 0x1005d,
+ 0x10080, 0x100fa,
+ 0x10140, 0x10174,
+ 0x101fd, 0x101fd,
+ 0x10280, 0x1029c,
+ 0x102a0, 0x102d0,
+ 0x10300, 0x1031e,
+ 0x10330, 0x1034a,
+ 0x10380, 0x1039d,
+ 0x103a0, 0x103c3,
+ 0x103c8, 0x103cf,
+ 0x103d1, 0x103d5,
+ 0x10400, 0x1049d,
+ 0x104a0, 0x104a9,
+ 0x10800, 0x10805,
+ 0x10808, 0x10808,
+ 0x1080a, 0x10835,
+ 0x10837, 0x10838,
+ 0x1083c, 0x1083c,
+ 0x1083f, 0x10855,
+ 0x10900, 0x10915,
+ 0x10920, 0x10939,
+ 0x10a00, 0x10a03,
+ 0x10a05, 0x10a06,
+ 0x10a0c, 0x10a13,
+ 0x10a15, 0x10a17,
+ 0x10a19, 0x10a33,
+ 0x10a38, 0x10a3a,
+ 0x10a3f, 0x10a3f,
+ 0x10a60, 0x10a7c,
+ 0x10b00, 0x10b35,
+ 0x10b40, 0x10b55,
+ 0x10b60, 0x10b72,
+ 0x10c00, 0x10c48,
+ 0x11000, 0x11046,
+ 0x11066, 0x1106f,
+ 0x11080, 0x110ba,
+ 0x12000, 0x1236e,
+ 0x12400, 0x12462,
+ 0x13000, 0x1342e,
+ 0x16800, 0x16a38,
+ 0x1b000, 0x1b001,
+ 0x1d165, 0x1d169,
+ 0x1d16d, 0x1d172,
+ 0x1d17b, 0x1d182,
+ 0x1d185, 0x1d18b,
+ 0x1d1aa, 0x1d1ad,
+ 0x1d242, 0x1d244,
+ 0x1d400, 0x1d454,
+ 0x1d456, 0x1d49c,
+ 0x1d49e, 0x1d49f,
+ 0x1d4a2, 0x1d4a2,
+ 0x1d4a5, 0x1d4a6,
+ 0x1d4a9, 0x1d4ac,
+ 0x1d4ae, 0x1d4b9,
+ 0x1d4bb, 0x1d4bb,
+ 0x1d4bd, 0x1d4c3,
+ 0x1d4c5, 0x1d505,
+ 0x1d507, 0x1d50a,
+ 0x1d50d, 0x1d514,
+ 0x1d516, 0x1d51c,
+ 0x1d51e, 0x1d539,
+ 0x1d53b, 0x1d53e,
+ 0x1d540, 0x1d544,
+ 0x1d546, 0x1d546,
+ 0x1d54a, 0x1d550,
+ 0x1d552, 0x1d6a5,
+ 0x1d6a8, 0x1d6c0,
+ 0x1d6c2, 0x1d6da,
+ 0x1d6dc, 0x1d6fa,
+ 0x1d6fc, 0x1d714,
+ 0x1d716, 0x1d734,
+ 0x1d736, 0x1d74e,
+ 0x1d750, 0x1d76e,
+ 0x1d770, 0x1d788,
+ 0x1d78a, 0x1d7a8,
+ 0x1d7aa, 0x1d7c2,
+ 0x1d7c4, 0x1d7cb,
+ 0x1d7ce, 0x1d7ff,
+ 0x20000, 0x2a6d6,
+ 0x2a700, 0x2b734,
+ 0x2b740, 0x2b81d,
+ 0x2f800, 0x2fa1d,
+ 0xe0100, 0xe01ef,
+}; /* CR_ID_Continue */
+
+/* 'XID_Start': Derived Property */
+static const OnigCodePoint CR_XID_Start[] = {
+ 444,
+ 0x0041, 0x005a,
+ 0x0061, 0x007a,
+ 0x00aa, 0x00aa,
+ 0x00b5, 0x00b5,
+ 0x00ba, 0x00ba,
+ 0x00c0, 0x00d6,
+ 0x00d8, 0x00f6,
+ 0x00f8, 0x02c1,
+ 0x02c6, 0x02d1,
+ 0x02e0, 0x02e4,
+ 0x02ec, 0x02ec,
+ 0x02ee, 0x02ee,
+ 0x0370, 0x0374,
+ 0x0376, 0x0377,
+ 0x037b, 0x037d,
+ 0x0386, 0x0386,
+ 0x0388, 0x038a,
+ 0x038c, 0x038c,
+ 0x038e, 0x03a1,
+ 0x03a3, 0x03f5,
+ 0x03f7, 0x0481,
+ 0x048a, 0x0527,
+ 0x0531, 0x0556,
+ 0x0559, 0x0559,
+ 0x0561, 0x0587,
+ 0x05d0, 0x05ea,
+ 0x05f0, 0x05f2,
+ 0x0620, 0x064a,
+ 0x066e, 0x066f,
+ 0x0671, 0x06d3,
+ 0x06d5, 0x06d5,
+ 0x06e5, 0x06e6,
+ 0x06ee, 0x06ef,
+ 0x06fa, 0x06fc,
+ 0x06ff, 0x06ff,
+ 0x0710, 0x0710,
+ 0x0712, 0x072f,
+ 0x074d, 0x07a5,
+ 0x07b1, 0x07b1,
+ 0x07ca, 0x07ea,
+ 0x07f4, 0x07f5,
+ 0x07fa, 0x07fa,
+ 0x0800, 0x0815,
+ 0x081a, 0x081a,
+ 0x0824, 0x0824,
+ 0x0828, 0x0828,
+ 0x0840, 0x0858,
+ 0x0904, 0x0939,
+ 0x093d, 0x093d,
+ 0x0950, 0x0950,
+ 0x0958, 0x0961,
+ 0x0971, 0x0977,
+ 0x0979, 0x097f,
+ 0x0985, 0x098c,
+ 0x098f, 0x0990,
+ 0x0993, 0x09a8,
+ 0x09aa, 0x09b0,
+ 0x09b2, 0x09b2,
+ 0x09b6, 0x09b9,
+ 0x09bd, 0x09bd,
+ 0x09ce, 0x09ce,
+ 0x09dc, 0x09dd,
+ 0x09df, 0x09e1,
+ 0x09f0, 0x09f1,
+ 0x0a05, 0x0a0a,
+ 0x0a0f, 0x0a10,
+ 0x0a13, 0x0a28,
+ 0x0a2a, 0x0a30,
+ 0x0a32, 0x0a33,
+ 0x0a35, 0x0a36,
+ 0x0a38, 0x0a39,
+ 0x0a59, 0x0a5c,
+ 0x0a5e, 0x0a5e,
+ 0x0a72, 0x0a74,
+ 0x0a85, 0x0a8d,
+ 0x0a8f, 0x0a91,
+ 0x0a93, 0x0aa8,
+ 0x0aaa, 0x0ab0,
+ 0x0ab2, 0x0ab3,
+ 0x0ab5, 0x0ab9,
+ 0x0abd, 0x0abd,
+ 0x0ad0, 0x0ad0,
+ 0x0ae0, 0x0ae1,
+ 0x0b05, 0x0b0c,
+ 0x0b0f, 0x0b10,
+ 0x0b13, 0x0b28,
+ 0x0b2a, 0x0b30,
+ 0x0b32, 0x0b33,
+ 0x0b35, 0x0b39,
+ 0x0b3d, 0x0b3d,
+ 0x0b5c, 0x0b5d,
+ 0x0b5f, 0x0b61,
+ 0x0b71, 0x0b71,
+ 0x0b83, 0x0b83,
+ 0x0b85, 0x0b8a,
+ 0x0b8e, 0x0b90,
+ 0x0b92, 0x0b95,
+ 0x0b99, 0x0b9a,
+ 0x0b9c, 0x0b9c,
+ 0x0b9e, 0x0b9f,
+ 0x0ba3, 0x0ba4,
+ 0x0ba8, 0x0baa,
+ 0x0bae, 0x0bb9,
+ 0x0bd0, 0x0bd0,
+ 0x0c05, 0x0c0c,
+ 0x0c0e, 0x0c10,
+ 0x0c12, 0x0c28,
+ 0x0c2a, 0x0c33,
+ 0x0c35, 0x0c39,
+ 0x0c3d, 0x0c3d,
+ 0x0c58, 0x0c59,
+ 0x0c60, 0x0c61,
+ 0x0c85, 0x0c8c,
+ 0x0c8e, 0x0c90,
+ 0x0c92, 0x0ca8,
+ 0x0caa, 0x0cb3,
+ 0x0cb5, 0x0cb9,
+ 0x0cbd, 0x0cbd,
+ 0x0cde, 0x0cde,
+ 0x0ce0, 0x0ce1,
+ 0x0cf1, 0x0cf2,
+ 0x0d05, 0x0d0c,
+ 0x0d0e, 0x0d10,
+ 0x0d12, 0x0d3a,
+ 0x0d3d, 0x0d3d,
+ 0x0d4e, 0x0d4e,
+ 0x0d60, 0x0d61,
+ 0x0d7a, 0x0d7f,
+ 0x0d85, 0x0d96,
+ 0x0d9a, 0x0db1,
+ 0x0db3, 0x0dbb,
+ 0x0dbd, 0x0dbd,
+ 0x0dc0, 0x0dc6,
+ 0x0e01, 0x0e30,
+ 0x0e32, 0x0e32,
+ 0x0e40, 0x0e46,
+ 0x0e81, 0x0e82,
+ 0x0e84, 0x0e84,
+ 0x0e87, 0x0e88,
+ 0x0e8a, 0x0e8a,
+ 0x0e8d, 0x0e8d,
+ 0x0e94, 0x0e97,
+ 0x0e99, 0x0e9f,
+ 0x0ea1, 0x0ea3,
+ 0x0ea5, 0x0ea5,
+ 0x0ea7, 0x0ea7,
+ 0x0eaa, 0x0eab,
+ 0x0ead, 0x0eb0,
+ 0x0eb2, 0x0eb2,
+ 0x0ebd, 0x0ebd,
+ 0x0ec0, 0x0ec4,
+ 0x0ec6, 0x0ec6,
+ 0x0edc, 0x0edd,
+ 0x0f00, 0x0f00,
+ 0x0f40, 0x0f47,
+ 0x0f49, 0x0f6c,
+ 0x0f88, 0x0f8c,
+ 0x1000, 0x102a,
+ 0x103f, 0x103f,
+ 0x1050, 0x1055,
+ 0x105a, 0x105d,
+ 0x1061, 0x1061,
+ 0x1065, 0x1066,
+ 0x106e, 0x1070,
+ 0x1075, 0x1081,
+ 0x108e, 0x108e,
+ 0x10a0, 0x10c5,
+ 0x10d0, 0x10fa,
+ 0x10fc, 0x10fc,
+ 0x1100, 0x1248,
+ 0x124a, 0x124d,
+ 0x1250, 0x1256,
+ 0x1258, 0x1258,
+ 0x125a, 0x125d,
+ 0x1260, 0x1288,
+ 0x128a, 0x128d,
+ 0x1290, 0x12b0,
+ 0x12b2, 0x12b5,
+ 0x12b8, 0x12be,
+ 0x12c0, 0x12c0,
+ 0x12c2, 0x12c5,
+ 0x12c8, 0x12d6,
+ 0x12d8, 0x1310,
+ 0x1312, 0x1315,
+ 0x1318, 0x135a,
+ 0x1380, 0x138f,
+ 0x13a0, 0x13f4,
+ 0x1401, 0x166c,
+ 0x166f, 0x167f,
+ 0x1681, 0x169a,
+ 0x16a0, 0x16ea,
+ 0x16ee, 0x16f0,
+ 0x1700, 0x170c,
+ 0x170e, 0x1711,
+ 0x1720, 0x1731,
+ 0x1740, 0x1751,
+ 0x1760, 0x176c,
+ 0x176e, 0x1770,
+ 0x1780, 0x17b3,
+ 0x17d7, 0x17d7,
+ 0x17dc, 0x17dc,
+ 0x1820, 0x1877,
+ 0x1880, 0x18a8,
+ 0x18aa, 0x18aa,
+ 0x18b0, 0x18f5,
+ 0x1900, 0x191c,
+ 0x1950, 0x196d,
+ 0x1970, 0x1974,
+ 0x1980, 0x19ab,
+ 0x19c1, 0x19c7,
+ 0x1a00, 0x1a16,
+ 0x1a20, 0x1a54,
+ 0x1aa7, 0x1aa7,
+ 0x1b05, 0x1b33,
+ 0x1b45, 0x1b4b,
+ 0x1b83, 0x1ba0,
+ 0x1bae, 0x1baf,
+ 0x1bc0, 0x1be5,
+ 0x1c00, 0x1c23,
+ 0x1c4d, 0x1c4f,
+ 0x1c5a, 0x1c7d,
+ 0x1ce9, 0x1cec,
+ 0x1cee, 0x1cf1,
+ 0x1d00, 0x1dbf,
+ 0x1e00, 0x1f15,
+ 0x1f18, 0x1f1d,
+ 0x1f20, 0x1f45,
+ 0x1f48, 0x1f4d,
+ 0x1f50, 0x1f57,
+ 0x1f59, 0x1f59,
+ 0x1f5b, 0x1f5b,
+ 0x1f5d, 0x1f5d,
+ 0x1f5f, 0x1f7d,
+ 0x1f80, 0x1fb4,
+ 0x1fb6, 0x1fbc,
+ 0x1fbe, 0x1fbe,
+ 0x1fc2, 0x1fc4,
+ 0x1fc6, 0x1fcc,
+ 0x1fd0, 0x1fd3,
+ 0x1fd6, 0x1fdb,
+ 0x1fe0, 0x1fec,
+ 0x1ff2, 0x1ff4,
+ 0x1ff6, 0x1ffc,
+ 0x2071, 0x2071,
+ 0x207f, 0x207f,
+ 0x2090, 0x209c,
+ 0x2102, 0x2102,
+ 0x2107, 0x2107,
+ 0x210a, 0x2113,
+ 0x2115, 0x2115,
+ 0x2118, 0x211d,
+ 0x2124, 0x2124,
+ 0x2126, 0x2126,
+ 0x2128, 0x2128,
+ 0x212a, 0x2139,
+ 0x213c, 0x213f,
+ 0x2145, 0x2149,
+ 0x214e, 0x214e,
+ 0x2160, 0x2188,
+ 0x2c00, 0x2c2e,
+ 0x2c30, 0x2c5e,
+ 0x2c60, 0x2ce4,
+ 0x2ceb, 0x2cee,
+ 0x2d00, 0x2d25,
+ 0x2d30, 0x2d65,
+ 0x2d6f, 0x2d6f,
+ 0x2d80, 0x2d96,
+ 0x2da0, 0x2da6,
+ 0x2da8, 0x2dae,
+ 0x2db0, 0x2db6,
+ 0x2db8, 0x2dbe,
+ 0x2dc0, 0x2dc6,
+ 0x2dc8, 0x2dce,
+ 0x2dd0, 0x2dd6,
+ 0x2dd8, 0x2dde,
+ 0x3005, 0x3007,
+ 0x3021, 0x3029,
+ 0x3031, 0x3035,
+ 0x3038, 0x303c,
+ 0x3041, 0x3096,
+ 0x309d, 0x309f,
+ 0x30a1, 0x30fa,
+ 0x30fc, 0x30ff,
+ 0x3105, 0x312d,
+ 0x3131, 0x318e,
+ 0x31a0, 0x31ba,
+ 0x31f0, 0x31ff,
+ 0x3400, 0x4db5,
+ 0x4e00, 0x9fcb,
+ 0xa000, 0xa48c,
+ 0xa4d0, 0xa4fd,
+ 0xa500, 0xa60c,
+ 0xa610, 0xa61f,
+ 0xa62a, 0xa62b,
+ 0xa640, 0xa66e,
+ 0xa67f, 0xa697,
+ 0xa6a0, 0xa6ef,
+ 0xa717, 0xa71f,
+ 0xa722, 0xa788,
+ 0xa78b, 0xa78e,
+ 0xa790, 0xa791,
+ 0xa7a0, 0xa7a9,
+ 0xa7fa, 0xa801,
+ 0xa803, 0xa805,
+ 0xa807, 0xa80a,
+ 0xa80c, 0xa822,
+ 0xa840, 0xa873,
+ 0xa882, 0xa8b3,
+ 0xa8f2, 0xa8f7,
+ 0xa8fb, 0xa8fb,
+ 0xa90a, 0xa925,
+ 0xa930, 0xa946,
+ 0xa960, 0xa97c,
+ 0xa984, 0xa9b2,
+ 0xa9cf, 0xa9cf,
+ 0xaa00, 0xaa28,
+ 0xaa40, 0xaa42,
+ 0xaa44, 0xaa4b,
+ 0xaa60, 0xaa76,
+ 0xaa7a, 0xaa7a,
+ 0xaa80, 0xaaaf,
+ 0xaab1, 0xaab1,
+ 0xaab5, 0xaab6,
+ 0xaab9, 0xaabd,
+ 0xaac0, 0xaac0,
+ 0xaac2, 0xaac2,
+ 0xaadb, 0xaadd,
+ 0xab01, 0xab06,
+ 0xab09, 0xab0e,
+ 0xab11, 0xab16,
+ 0xab20, 0xab26,
+ 0xab28, 0xab2e,
+ 0xabc0, 0xabe2,
+ 0xac00, 0xd7a3,
+ 0xd7b0, 0xd7c6,
+ 0xd7cb, 0xd7fb,
+ 0xf900, 0xfa2d,
+ 0xfa30, 0xfa6d,
+ 0xfa70, 0xfad9,
+ 0xfb00, 0xfb06,
+ 0xfb13, 0xfb17,
+ 0xfb1d, 0xfb1d,
+ 0xfb1f, 0xfb28,
+ 0xfb2a, 0xfb36,
+ 0xfb38, 0xfb3c,
+ 0xfb3e, 0xfb3e,
+ 0xfb40, 0xfb41,
+ 0xfb43, 0xfb44,
+ 0xfb46, 0xfbb1,
+ 0xfbd3, 0xfc5d,
+ 0xfc64, 0xfd3d,
+ 0xfd50, 0xfd8f,
+ 0xfd92, 0xfdc7,
+ 0xfdf0, 0xfdf9,
+ 0xfe71, 0xfe71,
+ 0xfe73, 0xfe73,
+ 0xfe77, 0xfe77,
+ 0xfe79, 0xfe79,
+ 0xfe7b, 0xfe7b,
+ 0xfe7d, 0xfe7d,
+ 0xfe7f, 0xfefc,
+ 0xff21, 0xff3a,
+ 0xff41, 0xff5a,
+ 0xff66, 0xff9d,
+ 0xffa0, 0xffbe,
+ 0xffc2, 0xffc7,
+ 0xffca, 0xffcf,
+ 0xffd2, 0xffd7,
+ 0xffda, 0xffdc,
+ 0x10000, 0x1000b,
+ 0x1000d, 0x10026,
+ 0x10028, 0x1003a,
+ 0x1003c, 0x1003d,
+ 0x1003f, 0x1004d,
+ 0x10050, 0x1005d,
+ 0x10080, 0x100fa,
+ 0x10140, 0x10174,
+ 0x10280, 0x1029c,
+ 0x102a0, 0x102d0,
+ 0x10300, 0x1031e,
+ 0x10330, 0x1034a,
+ 0x10380, 0x1039d,
+ 0x103a0, 0x103c3,
+ 0x103c8, 0x103cf,
+ 0x103d1, 0x103d5,
+ 0x10400, 0x1049d,
+ 0x10800, 0x10805,
+ 0x10808, 0x10808,
+ 0x1080a, 0x10835,
+ 0x10837, 0x10838,
+ 0x1083c, 0x1083c,
+ 0x1083f, 0x10855,
+ 0x10900, 0x10915,
+ 0x10920, 0x10939,
+ 0x10a00, 0x10a00,
+ 0x10a10, 0x10a13,
+ 0x10a15, 0x10a17,
+ 0x10a19, 0x10a33,
+ 0x10a60, 0x10a7c,
+ 0x10b00, 0x10b35,
+ 0x10b40, 0x10b55,
+ 0x10b60, 0x10b72,
+ 0x10c00, 0x10c48,
+ 0x11003, 0x11037,
+ 0x11083, 0x110af,
+ 0x12000, 0x1236e,
+ 0x12400, 0x12462,
+ 0x13000, 0x1342e,
+ 0x16800, 0x16a38,
+ 0x1b000, 0x1b001,
+ 0x1d400, 0x1d454,
+ 0x1d456, 0x1d49c,
+ 0x1d49e, 0x1d49f,
+ 0x1d4a2, 0x1d4a2,
+ 0x1d4a5, 0x1d4a6,
+ 0x1d4a9, 0x1d4ac,
+ 0x1d4ae, 0x1d4b9,
+ 0x1d4bb, 0x1d4bb,
+ 0x1d4bd, 0x1d4c3,
+ 0x1d4c5, 0x1d505,
+ 0x1d507, 0x1d50a,
+ 0x1d50d, 0x1d514,
+ 0x1d516, 0x1d51c,
+ 0x1d51e, 0x1d539,
+ 0x1d53b, 0x1d53e,
+ 0x1d540, 0x1d544,
+ 0x1d546, 0x1d546,
+ 0x1d54a, 0x1d550,
+ 0x1d552, 0x1d6a5,
+ 0x1d6a8, 0x1d6c0,
+ 0x1d6c2, 0x1d6da,
+ 0x1d6dc, 0x1d6fa,
+ 0x1d6fc, 0x1d714,
+ 0x1d716, 0x1d734,
+ 0x1d736, 0x1d74e,
+ 0x1d750, 0x1d76e,
+ 0x1d770, 0x1d788,
+ 0x1d78a, 0x1d7a8,
+ 0x1d7aa, 0x1d7c2,
+ 0x1d7c4, 0x1d7cb,
+ 0x20000, 0x2a6d6,
+ 0x2a700, 0x2b734,
+ 0x2b740, 0x2b81d,
+ 0x2f800, 0x2fa1d,
+}; /* CR_XID_Start */
+
+/* 'XID_Continue': Derived Property */
+static const OnigCodePoint CR_XID_Continue[] = {
+ 521,
+ 0x0030, 0x0039,
+ 0x0041, 0x005a,
+ 0x005f, 0x005f,
+ 0x0061, 0x007a,
+ 0x00aa, 0x00aa,
+ 0x00b5, 0x00b5,
+ 0x00b7, 0x00b7,
+ 0x00ba, 0x00ba,
+ 0x00c0, 0x00d6,
+ 0x00d8, 0x00f6,
+ 0x00f8, 0x02c1,
+ 0x02c6, 0x02d1,
+ 0x02e0, 0x02e4,
+ 0x02ec, 0x02ec,
+ 0x02ee, 0x02ee,
+ 0x0300, 0x0374,
+ 0x0376, 0x0377,
+ 0x037b, 0x037d,
+ 0x0386, 0x038a,
+ 0x038c, 0x038c,
+ 0x038e, 0x03a1,
+ 0x03a3, 0x03f5,
+ 0x03f7, 0x0481,
+ 0x0483, 0x0487,
+ 0x048a, 0x0527,
+ 0x0531, 0x0556,
+ 0x0559, 0x0559,
+ 0x0561, 0x0587,
+ 0x0591, 0x05bd,
+ 0x05bf, 0x05bf,
+ 0x05c1, 0x05c2,
+ 0x05c4, 0x05c5,
+ 0x05c7, 0x05c7,
+ 0x05d0, 0x05ea,
+ 0x05f0, 0x05f2,
+ 0x0610, 0x061a,
+ 0x0620, 0x0669,
+ 0x066e, 0x06d3,
+ 0x06d5, 0x06dc,
+ 0x06df, 0x06e8,
+ 0x06ea, 0x06fc,
+ 0x06ff, 0x06ff,
+ 0x0710, 0x074a,
+ 0x074d, 0x07b1,
+ 0x07c0, 0x07f5,
+ 0x07fa, 0x07fa,
+ 0x0800, 0x082d,
+ 0x0840, 0x085b,
+ 0x0900, 0x0963,
+ 0x0966, 0x096f,
+ 0x0971, 0x0977,
+ 0x0979, 0x097f,
+ 0x0981, 0x0983,
+ 0x0985, 0x098c,
+ 0x098f, 0x0990,
+ 0x0993, 0x09a8,
+ 0x09aa, 0x09b0,
+ 0x09b2, 0x09b2,
+ 0x09b6, 0x09b9,
+ 0x09bc, 0x09c4,
+ 0x09c7, 0x09c8,
+ 0x09cb, 0x09ce,
+ 0x09d7, 0x09d7,
+ 0x09dc, 0x09dd,
+ 0x09df, 0x09e3,
+ 0x09e6, 0x09f1,
+ 0x0a01, 0x0a03,
+ 0x0a05, 0x0a0a,
+ 0x0a0f, 0x0a10,
+ 0x0a13, 0x0a28,
+ 0x0a2a, 0x0a30,
+ 0x0a32, 0x0a33,
+ 0x0a35, 0x0a36,
+ 0x0a38, 0x0a39,
+ 0x0a3c, 0x0a3c,
+ 0x0a3e, 0x0a42,
+ 0x0a47, 0x0a48,
+ 0x0a4b, 0x0a4d,
+ 0x0a51, 0x0a51,
+ 0x0a59, 0x0a5c,
+ 0x0a5e, 0x0a5e,
+ 0x0a66, 0x0a75,
+ 0x0a81, 0x0a83,
+ 0x0a85, 0x0a8d,
+ 0x0a8f, 0x0a91,
+ 0x0a93, 0x0aa8,
+ 0x0aaa, 0x0ab0,
+ 0x0ab2, 0x0ab3,
+ 0x0ab5, 0x0ab9,
+ 0x0abc, 0x0ac5,
+ 0x0ac7, 0x0ac9,
+ 0x0acb, 0x0acd,
+ 0x0ad0, 0x0ad0,
+ 0x0ae0, 0x0ae3,
+ 0x0ae6, 0x0aef,
+ 0x0b01, 0x0b03,
+ 0x0b05, 0x0b0c,
+ 0x0b0f, 0x0b10,
+ 0x0b13, 0x0b28,
+ 0x0b2a, 0x0b30,
+ 0x0b32, 0x0b33,
+ 0x0b35, 0x0b39,
+ 0x0b3c, 0x0b44,
+ 0x0b47, 0x0b48,
+ 0x0b4b, 0x0b4d,
+ 0x0b56, 0x0b57,
+ 0x0b5c, 0x0b5d,
+ 0x0b5f, 0x0b63,
+ 0x0b66, 0x0b6f,
+ 0x0b71, 0x0b71,
+ 0x0b82, 0x0b83,
+ 0x0b85, 0x0b8a,
+ 0x0b8e, 0x0b90,
+ 0x0b92, 0x0b95,
+ 0x0b99, 0x0b9a,
+ 0x0b9c, 0x0b9c,
+ 0x0b9e, 0x0b9f,
+ 0x0ba3, 0x0ba4,
+ 0x0ba8, 0x0baa,
+ 0x0bae, 0x0bb9,
+ 0x0bbe, 0x0bc2,
+ 0x0bc6, 0x0bc8,
+ 0x0bca, 0x0bcd,
+ 0x0bd0, 0x0bd0,
+ 0x0bd7, 0x0bd7,
+ 0x0be6, 0x0bef,
+ 0x0c01, 0x0c03,
+ 0x0c05, 0x0c0c,
+ 0x0c0e, 0x0c10,
+ 0x0c12, 0x0c28,
+ 0x0c2a, 0x0c33,
+ 0x0c35, 0x0c39,
+ 0x0c3d, 0x0c44,
+ 0x0c46, 0x0c48,
+ 0x0c4a, 0x0c4d,
+ 0x0c55, 0x0c56,
+ 0x0c58, 0x0c59,
+ 0x0c60, 0x0c63,
+ 0x0c66, 0x0c6f,
+ 0x0c82, 0x0c83,
+ 0x0c85, 0x0c8c,
+ 0x0c8e, 0x0c90,
+ 0x0c92, 0x0ca8,
+ 0x0caa, 0x0cb3,
+ 0x0cb5, 0x0cb9,
+ 0x0cbc, 0x0cc4,
+ 0x0cc6, 0x0cc8,
+ 0x0cca, 0x0ccd,
+ 0x0cd5, 0x0cd6,
+ 0x0cde, 0x0cde,
+ 0x0ce0, 0x0ce3,
+ 0x0ce6, 0x0cef,
+ 0x0cf1, 0x0cf2,
+ 0x0d02, 0x0d03,
+ 0x0d05, 0x0d0c,
+ 0x0d0e, 0x0d10,
+ 0x0d12, 0x0d3a,
+ 0x0d3d, 0x0d44,
+ 0x0d46, 0x0d48,
+ 0x0d4a, 0x0d4e,
+ 0x0d57, 0x0d57,
+ 0x0d60, 0x0d63,
+ 0x0d66, 0x0d6f,
+ 0x0d7a, 0x0d7f,
+ 0x0d82, 0x0d83,
+ 0x0d85, 0x0d96,
+ 0x0d9a, 0x0db1,
+ 0x0db3, 0x0dbb,
+ 0x0dbd, 0x0dbd,
+ 0x0dc0, 0x0dc6,
+ 0x0dca, 0x0dca,
+ 0x0dcf, 0x0dd4,
+ 0x0dd6, 0x0dd6,
+ 0x0dd8, 0x0ddf,
+ 0x0df2, 0x0df3,
+ 0x0e01, 0x0e3a,
+ 0x0e40, 0x0e4e,
+ 0x0e50, 0x0e59,
+ 0x0e81, 0x0e82,
+ 0x0e84, 0x0e84,
+ 0x0e87, 0x0e88,
+ 0x0e8a, 0x0e8a,
+ 0x0e8d, 0x0e8d,
+ 0x0e94, 0x0e97,
+ 0x0e99, 0x0e9f,
+ 0x0ea1, 0x0ea3,
+ 0x0ea5, 0x0ea5,
+ 0x0ea7, 0x0ea7,
+ 0x0eaa, 0x0eab,
+ 0x0ead, 0x0eb9,
+ 0x0ebb, 0x0ebd,
+ 0x0ec0, 0x0ec4,
+ 0x0ec6, 0x0ec6,
+ 0x0ec8, 0x0ecd,
+ 0x0ed0, 0x0ed9,
+ 0x0edc, 0x0edd,
+ 0x0f00, 0x0f00,
+ 0x0f18, 0x0f19,
+ 0x0f20, 0x0f29,
+ 0x0f35, 0x0f35,
+ 0x0f37, 0x0f37,
+ 0x0f39, 0x0f39,
+ 0x0f3e, 0x0f47,
+ 0x0f49, 0x0f6c,
+ 0x0f71, 0x0f84,
+ 0x0f86, 0x0f97,
+ 0x0f99, 0x0fbc,
+ 0x0fc6, 0x0fc6,
+ 0x1000, 0x1049,
+ 0x1050, 0x109d,
+ 0x10a0, 0x10c5,
+ 0x10d0, 0x10fa,
+ 0x10fc, 0x10fc,
+ 0x1100, 0x1248,
+ 0x124a, 0x124d,
+ 0x1250, 0x1256,
+ 0x1258, 0x1258,
+ 0x125a, 0x125d,
+ 0x1260, 0x1288,
+ 0x128a, 0x128d,
+ 0x1290, 0x12b0,
+ 0x12b2, 0x12b5,
+ 0x12b8, 0x12be,
+ 0x12c0, 0x12c0,
+ 0x12c2, 0x12c5,
+ 0x12c8, 0x12d6,
+ 0x12d8, 0x1310,
+ 0x1312, 0x1315,
+ 0x1318, 0x135a,
+ 0x135d, 0x135f,
+ 0x1369, 0x1371,
+ 0x1380, 0x138f,
+ 0x13a0, 0x13f4,
+ 0x1401, 0x166c,
+ 0x166f, 0x167f,
+ 0x1681, 0x169a,
+ 0x16a0, 0x16ea,
+ 0x16ee, 0x16f0,
+ 0x1700, 0x170c,
+ 0x170e, 0x1714,
+ 0x1720, 0x1734,
+ 0x1740, 0x1753,
+ 0x1760, 0x176c,
+ 0x176e, 0x1770,
+ 0x1772, 0x1773,
+ 0x1780, 0x17b3,
+ 0x17b6, 0x17d3,
+ 0x17d7, 0x17d7,
+ 0x17dc, 0x17dd,
+ 0x17e0, 0x17e9,
+ 0x180b, 0x180d,
+ 0x1810, 0x1819,
+ 0x1820, 0x1877,
+ 0x1880, 0x18aa,
+ 0x18b0, 0x18f5,
+ 0x1900, 0x191c,
+ 0x1920, 0x192b,
+ 0x1930, 0x193b,
+ 0x1946, 0x196d,
+ 0x1970, 0x1974,
+ 0x1980, 0x19ab,
+ 0x19b0, 0x19c9,
+ 0x19d0, 0x19da,
+ 0x1a00, 0x1a1b,
+ 0x1a20, 0x1a5e,
+ 0x1a60, 0x1a7c,
+ 0x1a7f, 0x1a89,
+ 0x1a90, 0x1a99,
+ 0x1aa7, 0x1aa7,
+ 0x1b00, 0x1b4b,
+ 0x1b50, 0x1b59,
+ 0x1b6b, 0x1b73,
+ 0x1b80, 0x1baa,
+ 0x1bae, 0x1bb9,
+ 0x1bc0, 0x1bf3,
+ 0x1c00, 0x1c37,
+ 0x1c40, 0x1c49,
+ 0x1c4d, 0x1c7d,
+ 0x1cd0, 0x1cd2,
+ 0x1cd4, 0x1cf2,
+ 0x1d00, 0x1de6,
+ 0x1dfc, 0x1f15,
+ 0x1f18, 0x1f1d,
+ 0x1f20, 0x1f45,
+ 0x1f48, 0x1f4d,
+ 0x1f50, 0x1f57,
+ 0x1f59, 0x1f59,
+ 0x1f5b, 0x1f5b,
+ 0x1f5d, 0x1f5d,
+ 0x1f5f, 0x1f7d,
+ 0x1f80, 0x1fb4,
+ 0x1fb6, 0x1fbc,
+ 0x1fbe, 0x1fbe,
+ 0x1fc2, 0x1fc4,
+ 0x1fc6, 0x1fcc,
+ 0x1fd0, 0x1fd3,
+ 0x1fd6, 0x1fdb,
+ 0x1fe0, 0x1fec,
+ 0x1ff2, 0x1ff4,
+ 0x1ff6, 0x1ffc,
+ 0x203f, 0x2040,
+ 0x2054, 0x2054,
+ 0x2071, 0x2071,
+ 0x207f, 0x207f,
+ 0x2090, 0x209c,
+ 0x20d0, 0x20dc,
+ 0x20e1, 0x20e1,
+ 0x20e5, 0x20f0,
+ 0x2102, 0x2102,
+ 0x2107, 0x2107,
+ 0x210a, 0x2113,
+ 0x2115, 0x2115,
+ 0x2118, 0x211d,
+ 0x2124, 0x2124,
+ 0x2126, 0x2126,
+ 0x2128, 0x2128,
+ 0x212a, 0x2139,
+ 0x213c, 0x213f,
+ 0x2145, 0x2149,
+ 0x214e, 0x214e,
+ 0x2160, 0x2188,
+ 0x2c00, 0x2c2e,
+ 0x2c30, 0x2c5e,
+ 0x2c60, 0x2ce4,
+ 0x2ceb, 0x2cf1,
+ 0x2d00, 0x2d25,
+ 0x2d30, 0x2d65,
+ 0x2d6f, 0x2d6f,
+ 0x2d7f, 0x2d96,
+ 0x2da0, 0x2da6,
+ 0x2da8, 0x2dae,
+ 0x2db0, 0x2db6,
+ 0x2db8, 0x2dbe,
+ 0x2dc0, 0x2dc6,
+ 0x2dc8, 0x2dce,
+ 0x2dd0, 0x2dd6,
+ 0x2dd8, 0x2dde,
+ 0x2de0, 0x2dff,
+ 0x3005, 0x3007,
+ 0x3021, 0x302f,
+ 0x3031, 0x3035,
+ 0x3038, 0x303c,
+ 0x3041, 0x3096,
+ 0x3099, 0x309a,
+ 0x309d, 0x309f,
+ 0x30a1, 0x30fa,
+ 0x30fc, 0x30ff,
+ 0x3105, 0x312d,
+ 0x3131, 0x318e,
+ 0x31a0, 0x31ba,
+ 0x31f0, 0x31ff,
+ 0x3400, 0x4db5,
+ 0x4e00, 0x9fcb,
+ 0xa000, 0xa48c,
+ 0xa4d0, 0xa4fd,
+ 0xa500, 0xa60c,
+ 0xa610, 0xa62b,
+ 0xa640, 0xa66f,
+ 0xa67c, 0xa67d,
+ 0xa67f, 0xa697,
+ 0xa6a0, 0xa6f1,
+ 0xa717, 0xa71f,
+ 0xa722, 0xa788,
+ 0xa78b, 0xa78e,
+ 0xa790, 0xa791,
+ 0xa7a0, 0xa7a9,
+ 0xa7fa, 0xa827,
+ 0xa840, 0xa873,
+ 0xa880, 0xa8c4,
+ 0xa8d0, 0xa8d9,
+ 0xa8e0, 0xa8f7,
+ 0xa8fb, 0xa8fb,
+ 0xa900, 0xa92d,
+ 0xa930, 0xa953,
+ 0xa960, 0xa97c,
+ 0xa980, 0xa9c0,
+ 0xa9cf, 0xa9d9,
+ 0xaa00, 0xaa36,
+ 0xaa40, 0xaa4d,
+ 0xaa50, 0xaa59,
+ 0xaa60, 0xaa76,
+ 0xaa7a, 0xaa7b,
+ 0xaa80, 0xaac2,
+ 0xaadb, 0xaadd,
+ 0xab01, 0xab06,
+ 0xab09, 0xab0e,
+ 0xab11, 0xab16,
+ 0xab20, 0xab26,
+ 0xab28, 0xab2e,
+ 0xabc0, 0xabea,
+ 0xabec, 0xabed,
+ 0xabf0, 0xabf9,
+ 0xac00, 0xd7a3,
+ 0xd7b0, 0xd7c6,
+ 0xd7cb, 0xd7fb,
+ 0xf900, 0xfa2d,
+ 0xfa30, 0xfa6d,
+ 0xfa70, 0xfad9,
+ 0xfb00, 0xfb06,
+ 0xfb13, 0xfb17,
+ 0xfb1d, 0xfb28,
+ 0xfb2a, 0xfb36,
+ 0xfb38, 0xfb3c,
+ 0xfb3e, 0xfb3e,
+ 0xfb40, 0xfb41,
+ 0xfb43, 0xfb44,
+ 0xfb46, 0xfbb1,
+ 0xfbd3, 0xfc5d,
+ 0xfc64, 0xfd3d,
+ 0xfd50, 0xfd8f,
+ 0xfd92, 0xfdc7,
+ 0xfdf0, 0xfdf9,
+ 0xfe00, 0xfe0f,
+ 0xfe20, 0xfe26,
+ 0xfe33, 0xfe34,
+ 0xfe4d, 0xfe4f,
+ 0xfe71, 0xfe71,
+ 0xfe73, 0xfe73,
+ 0xfe77, 0xfe77,
+ 0xfe79, 0xfe79,
+ 0xfe7b, 0xfe7b,
+ 0xfe7d, 0xfe7d,
+ 0xfe7f, 0xfefc,
+ 0xff10, 0xff19,
+ 0xff21, 0xff3a,
+ 0xff3f, 0xff3f,
+ 0xff41, 0xff5a,
+ 0xff66, 0xffbe,
+ 0xffc2, 0xffc7,
+ 0xffca, 0xffcf,
+ 0xffd2, 0xffd7,
+ 0xffda, 0xffdc,
+ 0x10000, 0x1000b,
+ 0x1000d, 0x10026,
+ 0x10028, 0x1003a,
+ 0x1003c, 0x1003d,
+ 0x1003f, 0x1004d,
+ 0x10050, 0x1005d,
+ 0x10080, 0x100fa,
+ 0x10140, 0x10174,
+ 0x101fd, 0x101fd,
+ 0x10280, 0x1029c,
+ 0x102a0, 0x102d0,
+ 0x10300, 0x1031e,
+ 0x10330, 0x1034a,
+ 0x10380, 0x1039d,
+ 0x103a0, 0x103c3,
+ 0x103c8, 0x103cf,
+ 0x103d1, 0x103d5,
+ 0x10400, 0x1049d,
+ 0x104a0, 0x104a9,
+ 0x10800, 0x10805,
+ 0x10808, 0x10808,
+ 0x1080a, 0x10835,
+ 0x10837, 0x10838,
+ 0x1083c, 0x1083c,
+ 0x1083f, 0x10855,
+ 0x10900, 0x10915,
+ 0x10920, 0x10939,
+ 0x10a00, 0x10a03,
+ 0x10a05, 0x10a06,
+ 0x10a0c, 0x10a13,
+ 0x10a15, 0x10a17,
+ 0x10a19, 0x10a33,
+ 0x10a38, 0x10a3a,
+ 0x10a3f, 0x10a3f,
+ 0x10a60, 0x10a7c,
+ 0x10b00, 0x10b35,
+ 0x10b40, 0x10b55,
+ 0x10b60, 0x10b72,
+ 0x10c00, 0x10c48,
+ 0x11000, 0x11046,
+ 0x11066, 0x1106f,
+ 0x11080, 0x110ba,
+ 0x12000, 0x1236e,
+ 0x12400, 0x12462,
+ 0x13000, 0x1342e,
+ 0x16800, 0x16a38,
+ 0x1b000, 0x1b001,
+ 0x1d165, 0x1d169,
+ 0x1d16d, 0x1d172,
+ 0x1d17b, 0x1d182,
+ 0x1d185, 0x1d18b,
+ 0x1d1aa, 0x1d1ad,
+ 0x1d242, 0x1d244,
+ 0x1d400, 0x1d454,
+ 0x1d456, 0x1d49c,
+ 0x1d49e, 0x1d49f,
+ 0x1d4a2, 0x1d4a2,
+ 0x1d4a5, 0x1d4a6,
+ 0x1d4a9, 0x1d4ac,
+ 0x1d4ae, 0x1d4b9,
+ 0x1d4bb, 0x1d4bb,
+ 0x1d4bd, 0x1d4c3,
+ 0x1d4c5, 0x1d505,
+ 0x1d507, 0x1d50a,
+ 0x1d50d, 0x1d514,
+ 0x1d516, 0x1d51c,
+ 0x1d51e, 0x1d539,
+ 0x1d53b, 0x1d53e,
+ 0x1d540, 0x1d544,
+ 0x1d546, 0x1d546,
+ 0x1d54a, 0x1d550,
+ 0x1d552, 0x1d6a5,
+ 0x1d6a8, 0x1d6c0,
+ 0x1d6c2, 0x1d6da,
+ 0x1d6dc, 0x1d6fa,
+ 0x1d6fc, 0x1d714,
+ 0x1d716, 0x1d734,
+ 0x1d736, 0x1d74e,
+ 0x1d750, 0x1d76e,
+ 0x1d770, 0x1d788,
+ 0x1d78a, 0x1d7a8,
+ 0x1d7aa, 0x1d7c2,
+ 0x1d7c4, 0x1d7cb,
+ 0x1d7ce, 0x1d7ff,
+ 0x20000, 0x2a6d6,
+ 0x2a700, 0x2b734,
+ 0x2b740, 0x2b81d,
+ 0x2f800, 0x2fa1d,
+ 0xe0100, 0xe01ef,
+}; /* CR_XID_Continue */
+
+/* 'Default_Ignorable_Code_Point': Derived Property */
+static const OnigCodePoint CR_Default_Ignorable_Code_Point[] = {
+ 15,
+ 0x00ad, 0x00ad,
+ 0x034f, 0x034f,
+ 0x115f, 0x1160,
+ 0x17b4, 0x17b5,
+ 0x180b, 0x180d,
+ 0x200b, 0x200f,
+ 0x202a, 0x202e,
+ 0x2060, 0x206f,
+ 0x3164, 0x3164,
+ 0xfe00, 0xfe0f,
+ 0xfeff, 0xfeff,
+ 0xffa0, 0xffa0,
+ 0xfff0, 0xfff8,
+ 0x1d173, 0x1d17a,
+ 0xe0000, 0xe0fff,
+}; /* CR_Default_Ignorable_Code_Point */
+
+/* 'Grapheme_Extend': Derived Property */
+static const OnigCodePoint CR_Grapheme_Extend[] = {
+ 215,
+ 0x0300, 0x036f,
+ 0x0483, 0x0489,
+ 0x0591, 0x05bd,
+ 0x05bf, 0x05bf,
+ 0x05c1, 0x05c2,
+ 0x05c4, 0x05c5,
+ 0x05c7, 0x05c7,
+ 0x0610, 0x061a,
+ 0x064b, 0x065f,
+ 0x0670, 0x0670,
+ 0x06d6, 0x06dc,
+ 0x06df, 0x06e4,
+ 0x06e7, 0x06e8,
+ 0x06ea, 0x06ed,
+ 0x0711, 0x0711,
+ 0x0730, 0x074a,
+ 0x07a6, 0x07b0,
+ 0x07eb, 0x07f3,
+ 0x0816, 0x0819,
+ 0x081b, 0x0823,
+ 0x0825, 0x0827,
+ 0x0829, 0x082d,
+ 0x0859, 0x085b,
+ 0x0900, 0x0902,
+ 0x093a, 0x093a,
+ 0x093c, 0x093c,
+ 0x0941, 0x0948,
+ 0x094d, 0x094d,
+ 0x0951, 0x0957,
+ 0x0962, 0x0963,
+ 0x0981, 0x0981,
+ 0x09bc, 0x09bc,
+ 0x09be, 0x09be,
+ 0x09c1, 0x09c4,
+ 0x09cd, 0x09cd,
+ 0x09d7, 0x09d7,
+ 0x09e2, 0x09e3,
+ 0x0a01, 0x0a02,
+ 0x0a3c, 0x0a3c,
+ 0x0a41, 0x0a42,
+ 0x0a47, 0x0a48,
+ 0x0a4b, 0x0a4d,
+ 0x0a51, 0x0a51,
+ 0x0a70, 0x0a71,
+ 0x0a75, 0x0a75,
+ 0x0a81, 0x0a82,
+ 0x0abc, 0x0abc,
+ 0x0ac1, 0x0ac5,
+ 0x0ac7, 0x0ac8,
+ 0x0acd, 0x0acd,
+ 0x0ae2, 0x0ae3,
+ 0x0b01, 0x0b01,
+ 0x0b3c, 0x0b3c,
+ 0x0b3e, 0x0b3f,
+ 0x0b41, 0x0b44,
+ 0x0b4d, 0x0b4d,
+ 0x0b56, 0x0b57,
+ 0x0b62, 0x0b63,
+ 0x0b82, 0x0b82,
+ 0x0bbe, 0x0bbe,
+ 0x0bc0, 0x0bc0,
+ 0x0bcd, 0x0bcd,
+ 0x0bd7, 0x0bd7,
+ 0x0c3e, 0x0c40,
+ 0x0c46, 0x0c48,
+ 0x0c4a, 0x0c4d,
+ 0x0c55, 0x0c56,
+ 0x0c62, 0x0c63,
+ 0x0cbc, 0x0cbc,
+ 0x0cbf, 0x0cbf,
+ 0x0cc2, 0x0cc2,
+ 0x0cc6, 0x0cc6,
+ 0x0ccc, 0x0ccd,
+ 0x0cd5, 0x0cd6,
+ 0x0ce2, 0x0ce3,
+ 0x0d3e, 0x0d3e,
+ 0x0d41, 0x0d44,
+ 0x0d4d, 0x0d4d,
+ 0x0d57, 0x0d57,
+ 0x0d62, 0x0d63,
+ 0x0dca, 0x0dca,
+ 0x0dcf, 0x0dcf,
+ 0x0dd2, 0x0dd4,
+ 0x0dd6, 0x0dd6,
+ 0x0ddf, 0x0ddf,
+ 0x0e31, 0x0e31,
+ 0x0e34, 0x0e3a,
+ 0x0e47, 0x0e4e,
+ 0x0eb1, 0x0eb1,
+ 0x0eb4, 0x0eb9,
+ 0x0ebb, 0x0ebc,
+ 0x0ec8, 0x0ecd,
+ 0x0f18, 0x0f19,
+ 0x0f35, 0x0f35,
+ 0x0f37, 0x0f37,
+ 0x0f39, 0x0f39,
+ 0x0f71, 0x0f7e,
+ 0x0f80, 0x0f84,
+ 0x0f86, 0x0f87,
+ 0x0f8d, 0x0f97,
+ 0x0f99, 0x0fbc,
+ 0x0fc6, 0x0fc6,
+ 0x102d, 0x1030,
+ 0x1032, 0x1037,
+ 0x1039, 0x103a,
+ 0x103d, 0x103e,
+ 0x1058, 0x1059,
+ 0x105e, 0x1060,
+ 0x1071, 0x1074,
+ 0x1082, 0x1082,
+ 0x1085, 0x1086,
+ 0x108d, 0x108d,
+ 0x109d, 0x109d,
+ 0x135d, 0x135f,
+ 0x1712, 0x1714,
+ 0x1732, 0x1734,
+ 0x1752, 0x1753,
+ 0x1772, 0x1773,
+ 0x17b7, 0x17bd,
+ 0x17c6, 0x17c6,
+ 0x17c9, 0x17d3,
+ 0x17dd, 0x17dd,
+ 0x180b, 0x180d,
+ 0x18a9, 0x18a9,
+ 0x1920, 0x1922,
+ 0x1927, 0x1928,
+ 0x1932, 0x1932,
+ 0x1939, 0x193b,
+ 0x1a17, 0x1a18,
+ 0x1a56, 0x1a56,
+ 0x1a58, 0x1a5e,
+ 0x1a60, 0x1a60,
+ 0x1a62, 0x1a62,
+ 0x1a65, 0x1a6c,
+ 0x1a73, 0x1a7c,
+ 0x1a7f, 0x1a7f,
+ 0x1b00, 0x1b03,
+ 0x1b34, 0x1b34,
+ 0x1b36, 0x1b3a,
+ 0x1b3c, 0x1b3c,
+ 0x1b42, 0x1b42,
+ 0x1b6b, 0x1b73,
+ 0x1b80, 0x1b81,
+ 0x1ba2, 0x1ba5,
+ 0x1ba8, 0x1ba9,
+ 0x1be6, 0x1be6,
+ 0x1be8, 0x1be9,
+ 0x1bed, 0x1bed,
+ 0x1bef, 0x1bf1,
+ 0x1c2c, 0x1c33,
+ 0x1c36, 0x1c37,
+ 0x1cd0, 0x1cd2,
+ 0x1cd4, 0x1ce0,
+ 0x1ce2, 0x1ce8,
+ 0x1ced, 0x1ced,
+ 0x1dc0, 0x1de6,
+ 0x1dfc, 0x1dff,
+ 0x200c, 0x200d,
+ 0x20d0, 0x20f0,
+ 0x2cef, 0x2cf1,
+ 0x2d7f, 0x2d7f,
+ 0x2de0, 0x2dff,
+ 0x302a, 0x302f,
+ 0x3099, 0x309a,
+ 0xa66f, 0xa672,
+ 0xa67c, 0xa67d,
+ 0xa6f0, 0xa6f1,
+ 0xa802, 0xa802,
+ 0xa806, 0xa806,
+ 0xa80b, 0xa80b,
+ 0xa825, 0xa826,
+ 0xa8c4, 0xa8c4,
+ 0xa8e0, 0xa8f1,
+ 0xa926, 0xa92d,
+ 0xa947, 0xa951,
+ 0xa980, 0xa982,
+ 0xa9b3, 0xa9b3,
+ 0xa9b6, 0xa9b9,
+ 0xa9bc, 0xa9bc,
+ 0xaa29, 0xaa2e,
+ 0xaa31, 0xaa32,
+ 0xaa35, 0xaa36,
+ 0xaa43, 0xaa43,
+ 0xaa4c, 0xaa4c,
+ 0xaab0, 0xaab0,
+ 0xaab2, 0xaab4,
+ 0xaab7, 0xaab8,
+ 0xaabe, 0xaabf,
+ 0xaac1, 0xaac1,
+ 0xabe5, 0xabe5,
+ 0xabe8, 0xabe8,
+ 0xabed, 0xabed,
+ 0xfb1e, 0xfb1e,
+ 0xfe00, 0xfe0f,
+ 0xfe20, 0xfe26,
+ 0xff9e, 0xff9f,
+ 0x101fd, 0x101fd,
+ 0x10a01, 0x10a03,
+ 0x10a05, 0x10a06,
+ 0x10a0c, 0x10a0f,
+ 0x10a38, 0x10a3a,
+ 0x10a3f, 0x10a3f,
+ 0x11001, 0x11001,
+ 0x11038, 0x11046,
+ 0x11080, 0x11081,
+ 0x110b3, 0x110b6,
+ 0x110b9, 0x110ba,
+ 0x1d165, 0x1d165,
+ 0x1d167, 0x1d169,
+ 0x1d16e, 0x1d172,
+ 0x1d17b, 0x1d182,
+ 0x1d185, 0x1d18b,
+ 0x1d1aa, 0x1d1ad,
+ 0x1d242, 0x1d244,
+ 0xe0100, 0xe01ef,
+}; /* CR_Grapheme_Extend */
+
+/* 'Grapheme_Base': Derived Property */
+static const OnigCodePoint CR_Grapheme_Base[] = {
+ 596,
+ 0x0020, 0x007e,
+ 0x00a0, 0x00ac,
+ 0x00ae, 0x02ff,
+ 0x0370, 0x0377,
+ 0x037a, 0x037e,
+ 0x0384, 0x038a,
+ 0x038c, 0x038c,
+ 0x038e, 0x03a1,
+ 0x03a3, 0x0482,
+ 0x048a, 0x0527,
+ 0x0531, 0x0556,
+ 0x0559, 0x055f,
+ 0x0561, 0x0587,
+ 0x0589, 0x058a,
+ 0x05be, 0x05be,
+ 0x05c0, 0x05c0,
+ 0x05c3, 0x05c3,
+ 0x05c6, 0x05c6,
+ 0x05d0, 0x05ea,
+ 0x05f0, 0x05f4,
+ 0x0606, 0x060f,
+ 0x061b, 0x061b,
+ 0x061e, 0x064a,
+ 0x0660, 0x066f,
+ 0x0671, 0x06d5,
+ 0x06de, 0x06de,
+ 0x06e5, 0x06e6,
+ 0x06e9, 0x06e9,
+ 0x06ee, 0x070d,
+ 0x0710, 0x0710,
+ 0x0712, 0x072f,
+ 0x074d, 0x07a5,
+ 0x07b1, 0x07b1,
+ 0x07c0, 0x07ea,
+ 0x07f4, 0x07fa,
+ 0x0800, 0x0815,
+ 0x081a, 0x081a,
+ 0x0824, 0x0824,
+ 0x0828, 0x0828,
+ 0x0830, 0x083e,
+ 0x0840, 0x0858,
+ 0x085e, 0x085e,
+ 0x0903, 0x0939,
+ 0x093b, 0x093b,
+ 0x093d, 0x0940,
+ 0x0949, 0x094c,
+ 0x094e, 0x0950,
+ 0x0958, 0x0961,
+ 0x0964, 0x0977,
+ 0x0979, 0x097f,
+ 0x0982, 0x0983,
+ 0x0985, 0x098c,
+ 0x098f, 0x0990,
+ 0x0993, 0x09a8,
+ 0x09aa, 0x09b0,
+ 0x09b2, 0x09b2,
+ 0x09b6, 0x09b9,
+ 0x09bd, 0x09bd,
+ 0x09bf, 0x09c0,
+ 0x09c7, 0x09c8,
+ 0x09cb, 0x09cc,
+ 0x09ce, 0x09ce,
+ 0x09dc, 0x09dd,
+ 0x09df, 0x09e1,
+ 0x09e6, 0x09fb,
+ 0x0a03, 0x0a03,
+ 0x0a05, 0x0a0a,
+ 0x0a0f, 0x0a10,
+ 0x0a13, 0x0a28,
+ 0x0a2a, 0x0a30,
+ 0x0a32, 0x0a33,
+ 0x0a35, 0x0a36,
+ 0x0a38, 0x0a39,
+ 0x0a3e, 0x0a40,
+ 0x0a59, 0x0a5c,
+ 0x0a5e, 0x0a5e,
+ 0x0a66, 0x0a6f,
+ 0x0a72, 0x0a74,
+ 0x0a83, 0x0a83,
+ 0x0a85, 0x0a8d,
+ 0x0a8f, 0x0a91,
+ 0x0a93, 0x0aa8,
+ 0x0aaa, 0x0ab0,
+ 0x0ab2, 0x0ab3,
+ 0x0ab5, 0x0ab9,
+ 0x0abd, 0x0ac0,
+ 0x0ac9, 0x0ac9,
+ 0x0acb, 0x0acc,
+ 0x0ad0, 0x0ad0,
+ 0x0ae0, 0x0ae1,
+ 0x0ae6, 0x0aef,
+ 0x0af1, 0x0af1,
+ 0x0b02, 0x0b03,
+ 0x0b05, 0x0b0c,
+ 0x0b0f, 0x0b10,
+ 0x0b13, 0x0b28,
+ 0x0b2a, 0x0b30,
+ 0x0b32, 0x0b33,
+ 0x0b35, 0x0b39,
+ 0x0b3d, 0x0b3d,
+ 0x0b40, 0x0b40,
+ 0x0b47, 0x0b48,
+ 0x0b4b, 0x0b4c,
+ 0x0b5c, 0x0b5d,
+ 0x0b5f, 0x0b61,
+ 0x0b66, 0x0b77,
+ 0x0b83, 0x0b83,
+ 0x0b85, 0x0b8a,
+ 0x0b8e, 0x0b90,
+ 0x0b92, 0x0b95,
+ 0x0b99, 0x0b9a,
+ 0x0b9c, 0x0b9c,
+ 0x0b9e, 0x0b9f,
+ 0x0ba3, 0x0ba4,
+ 0x0ba8, 0x0baa,
+ 0x0bae, 0x0bb9,
+ 0x0bbf, 0x0bbf,
+ 0x0bc1, 0x0bc2,
+ 0x0bc6, 0x0bc8,
+ 0x0bca, 0x0bcc,
+ 0x0bd0, 0x0bd0,
+ 0x0be6, 0x0bfa,
+ 0x0c01, 0x0c03,
+ 0x0c05, 0x0c0c,
+ 0x0c0e, 0x0c10,
+ 0x0c12, 0x0c28,
+ 0x0c2a, 0x0c33,
+ 0x0c35, 0x0c39,
+ 0x0c3d, 0x0c3d,
+ 0x0c41, 0x0c44,
+ 0x0c58, 0x0c59,
+ 0x0c60, 0x0c61,
+ 0x0c66, 0x0c6f,
+ 0x0c78, 0x0c7f,
+ 0x0c82, 0x0c83,
+ 0x0c85, 0x0c8c,
+ 0x0c8e, 0x0c90,
+ 0x0c92, 0x0ca8,
+ 0x0caa, 0x0cb3,
+ 0x0cb5, 0x0cb9,
+ 0x0cbd, 0x0cbe,
+ 0x0cc0, 0x0cc1,
+ 0x0cc3, 0x0cc4,
+ 0x0cc7, 0x0cc8,
+ 0x0cca, 0x0ccb,
+ 0x0cde, 0x0cde,
+ 0x0ce0, 0x0ce1,
+ 0x0ce6, 0x0cef,
+ 0x0cf1, 0x0cf2,
+ 0x0d02, 0x0d03,
+ 0x0d05, 0x0d0c,
+ 0x0d0e, 0x0d10,
+ 0x0d12, 0x0d3a,
+ 0x0d3d, 0x0d3d,
+ 0x0d3f, 0x0d40,
+ 0x0d46, 0x0d48,
+ 0x0d4a, 0x0d4c,
+ 0x0d4e, 0x0d4e,
+ 0x0d60, 0x0d61,
+ 0x0d66, 0x0d75,
+ 0x0d79, 0x0d7f,
+ 0x0d82, 0x0d83,
+ 0x0d85, 0x0d96,
+ 0x0d9a, 0x0db1,
+ 0x0db3, 0x0dbb,
+ 0x0dbd, 0x0dbd,
+ 0x0dc0, 0x0dc6,
+ 0x0dd0, 0x0dd1,
+ 0x0dd8, 0x0dde,
+ 0x0df2, 0x0df4,
+ 0x0e01, 0x0e30,
+ 0x0e32, 0x0e33,
+ 0x0e3f, 0x0e46,
+ 0x0e4f, 0x0e5b,
+ 0x0e81, 0x0e82,
+ 0x0e84, 0x0e84,
+ 0x0e87, 0x0e88,
+ 0x0e8a, 0x0e8a,
+ 0x0e8d, 0x0e8d,
+ 0x0e94, 0x0e97,
+ 0x0e99, 0x0e9f,
+ 0x0ea1, 0x0ea3,
+ 0x0ea5, 0x0ea5,
+ 0x0ea7, 0x0ea7,
+ 0x0eaa, 0x0eab,
+ 0x0ead, 0x0eb0,
+ 0x0eb2, 0x0eb3,
+ 0x0ebd, 0x0ebd,
+ 0x0ec0, 0x0ec4,
+ 0x0ec6, 0x0ec6,
+ 0x0ed0, 0x0ed9,
+ 0x0edc, 0x0edd,
+ 0x0f00, 0x0f17,
+ 0x0f1a, 0x0f34,
+ 0x0f36, 0x0f36,
+ 0x0f38, 0x0f38,
+ 0x0f3a, 0x0f47,
+ 0x0f49, 0x0f6c,
+ 0x0f7f, 0x0f7f,
+ 0x0f85, 0x0f85,
+ 0x0f88, 0x0f8c,
+ 0x0fbe, 0x0fc5,
+ 0x0fc7, 0x0fcc,
+ 0x0fce, 0x0fda,
+ 0x1000, 0x102c,
+ 0x1031, 0x1031,
+ 0x1038, 0x1038,
+ 0x103b, 0x103c,
+ 0x103f, 0x1057,
+ 0x105a, 0x105d,
+ 0x1061, 0x1070,
+ 0x1075, 0x1081,
+ 0x1083, 0x1084,
+ 0x1087, 0x108c,
+ 0x108e, 0x109c,
+ 0x109e, 0x10c5,
+ 0x10d0, 0x10fc,
+ 0x1100, 0x1248,
+ 0x124a, 0x124d,
+ 0x1250, 0x1256,
+ 0x1258, 0x1258,
+ 0x125a, 0x125d,
+ 0x1260, 0x1288,
+ 0x128a, 0x128d,
+ 0x1290, 0x12b0,
+ 0x12b2, 0x12b5,
+ 0x12b8, 0x12be,
+ 0x12c0, 0x12c0,
+ 0x12c2, 0x12c5,
+ 0x12c8, 0x12d6,
+ 0x12d8, 0x1310,
+ 0x1312, 0x1315,
+ 0x1318, 0x135a,
+ 0x1360, 0x137c,
+ 0x1380, 0x1399,
+ 0x13a0, 0x13f4,
+ 0x1400, 0x169c,
+ 0x16a0, 0x16f0,
+ 0x1700, 0x170c,
+ 0x170e, 0x1711,
+ 0x1720, 0x1731,
+ 0x1735, 0x1736,
+ 0x1740, 0x1751,
+ 0x1760, 0x176c,
+ 0x176e, 0x1770,
+ 0x1780, 0x17b3,
+ 0x17b6, 0x17b6,
+ 0x17be, 0x17c5,
+ 0x17c7, 0x17c8,
+ 0x17d4, 0x17dc,
+ 0x17e0, 0x17e9,
+ 0x17f0, 0x17f9,
+ 0x1800, 0x180a,
+ 0x180e, 0x180e,
+ 0x1810, 0x1819,
+ 0x1820, 0x1877,
+ 0x1880, 0x18a8,
+ 0x18aa, 0x18aa,
+ 0x18b0, 0x18f5,
+ 0x1900, 0x191c,
+ 0x1923, 0x1926,
+ 0x1929, 0x192b,
+ 0x1930, 0x1931,
+ 0x1933, 0x1938,
+ 0x1940, 0x1940,
+ 0x1944, 0x196d,
+ 0x1970, 0x1974,
+ 0x1980, 0x19ab,
+ 0x19b0, 0x19c9,
+ 0x19d0, 0x19da,
+ 0x19de, 0x1a16,
+ 0x1a19, 0x1a1b,
+ 0x1a1e, 0x1a55,
+ 0x1a57, 0x1a57,
+ 0x1a61, 0x1a61,
+ 0x1a63, 0x1a64,
+ 0x1a6d, 0x1a72,
+ 0x1a80, 0x1a89,
+ 0x1a90, 0x1a99,
+ 0x1aa0, 0x1aad,
+ 0x1b04, 0x1b33,
+ 0x1b35, 0x1b35,
+ 0x1b3b, 0x1b3b,
+ 0x1b3d, 0x1b41,
+ 0x1b43, 0x1b4b,
+ 0x1b50, 0x1b6a,
+ 0x1b74, 0x1b7c,
+ 0x1b82, 0x1ba1,
+ 0x1ba6, 0x1ba7,
+ 0x1baa, 0x1baa,
+ 0x1bae, 0x1bb9,
+ 0x1bc0, 0x1be5,
+ 0x1be7, 0x1be7,
+ 0x1bea, 0x1bec,
+ 0x1bee, 0x1bee,
+ 0x1bf2, 0x1bf3,
+ 0x1bfc, 0x1c2b,
+ 0x1c34, 0x1c35,
+ 0x1c3b, 0x1c49,
+ 0x1c4d, 0x1c7f,
+ 0x1cd3, 0x1cd3,
+ 0x1ce1, 0x1ce1,
+ 0x1ce9, 0x1cec,
+ 0x1cee, 0x1cf2,
+ 0x1d00, 0x1dbf,
+ 0x1e00, 0x1f15,
+ 0x1f18, 0x1f1d,
+ 0x1f20, 0x1f45,
+ 0x1f48, 0x1f4d,
+ 0x1f50, 0x1f57,
+ 0x1f59, 0x1f59,
+ 0x1f5b, 0x1f5b,
+ 0x1f5d, 0x1f5d,
+ 0x1f5f, 0x1f7d,
+ 0x1f80, 0x1fb4,
+ 0x1fb6, 0x1fc4,
+ 0x1fc6, 0x1fd3,
+ 0x1fd6, 0x1fdb,
+ 0x1fdd, 0x1fef,
+ 0x1ff2, 0x1ff4,
+ 0x1ff6, 0x1ffe,
+ 0x2000, 0x200a,
+ 0x2010, 0x2027,
+ 0x202f, 0x205f,
+ 0x2070, 0x2071,
+ 0x2074, 0x208e,
+ 0x2090, 0x209c,
+ 0x20a0, 0x20b9,
+ 0x2100, 0x2189,
+ 0x2190, 0x23f3,
+ 0x2400, 0x2426,
+ 0x2440, 0x244a,
+ 0x2460, 0x26ff,
+ 0x2701, 0x27ca,
+ 0x27cc, 0x27cc,
+ 0x27ce, 0x2b4c,
+ 0x2b50, 0x2b59,
+ 0x2c00, 0x2c2e,
+ 0x2c30, 0x2c5e,
+ 0x2c60, 0x2cee,
+ 0x2cf9, 0x2d25,
+ 0x2d30, 0x2d65,
+ 0x2d6f, 0x2d70,
+ 0x2d80, 0x2d96,
+ 0x2da0, 0x2da6,
+ 0x2da8, 0x2dae,
+ 0x2db0, 0x2db6,
+ 0x2db8, 0x2dbe,
+ 0x2dc0, 0x2dc6,
+ 0x2dc8, 0x2dce,
+ 0x2dd0, 0x2dd6,
+ 0x2dd8, 0x2dde,
+ 0x2e00, 0x2e31,
+ 0x2e80, 0x2e99,
+ 0x2e9b, 0x2ef3,
+ 0x2f00, 0x2fd5,
+ 0x2ff0, 0x2ffb,
+ 0x3000, 0x3029,
+ 0x3030, 0x303f,
+ 0x3041, 0x3096,
+ 0x309b, 0x30ff,
+ 0x3105, 0x312d,
+ 0x3131, 0x318e,
+ 0x3190, 0x31ba,
+ 0x31c0, 0x31e3,
+ 0x31f0, 0x321e,
+ 0x3220, 0x32fe,
+ 0x3300, 0x4db5,
+ 0x4dc0, 0x9fcb,
+ 0xa000, 0xa48c,
+ 0xa490, 0xa4c6,
+ 0xa4d0, 0xa62b,
+ 0xa640, 0xa66e,
+ 0xa673, 0xa673,
+ 0xa67e, 0xa697,
+ 0xa6a0, 0xa6ef,
+ 0xa6f2, 0xa6f7,
+ 0xa700, 0xa78e,
+ 0xa790, 0xa791,
+ 0xa7a0, 0xa7a9,
+ 0xa7fa, 0xa801,
+ 0xa803, 0xa805,
+ 0xa807, 0xa80a,
+ 0xa80c, 0xa824,
+ 0xa827, 0xa82b,
+ 0xa830, 0xa839,
+ 0xa840, 0xa877,
+ 0xa880, 0xa8c3,
+ 0xa8ce, 0xa8d9,
+ 0xa8f2, 0xa8fb,
+ 0xa900, 0xa925,
+ 0xa92e, 0xa946,
+ 0xa952, 0xa953,
+ 0xa95f, 0xa97c,
+ 0xa983, 0xa9b2,
+ 0xa9b4, 0xa9b5,
+ 0xa9ba, 0xa9bb,
+ 0xa9bd, 0xa9cd,
+ 0xa9cf, 0xa9d9,
+ 0xa9de, 0xa9df,
+ 0xaa00, 0xaa28,
+ 0xaa2f, 0xaa30,
+ 0xaa33, 0xaa34,
+ 0xaa40, 0xaa42,
+ 0xaa44, 0xaa4b,
+ 0xaa4d, 0xaa4d,
+ 0xaa50, 0xaa59,
+ 0xaa5c, 0xaa7b,
+ 0xaa80, 0xaaaf,
+ 0xaab1, 0xaab1,
+ 0xaab5, 0xaab6,
+ 0xaab9, 0xaabd,
+ 0xaac0, 0xaac0,
+ 0xaac2, 0xaac2,
+ 0xaadb, 0xaadf,
+ 0xab01, 0xab06,
+ 0xab09, 0xab0e,
+ 0xab11, 0xab16,
+ 0xab20, 0xab26,
+ 0xab28, 0xab2e,
+ 0xabc0, 0xabe4,
+ 0xabe6, 0xabe7,
+ 0xabe9, 0xabec,
+ 0xabf0, 0xabf9,
+ 0xac00, 0xd7a3,
+ 0xd7b0, 0xd7c6,
+ 0xd7cb, 0xd7fb,
+ 0xf900, 0xfa2d,
+ 0xfa30, 0xfa6d,
+ 0xfa70, 0xfad9,
+ 0xfb00, 0xfb06,
+ 0xfb13, 0xfb17,
+ 0xfb1d, 0xfb1d,
+ 0xfb1f, 0xfb36,
+ 0xfb38, 0xfb3c,
+ 0xfb3e, 0xfb3e,
+ 0xfb40, 0xfb41,
+ 0xfb43, 0xfb44,
+ 0xfb46, 0xfbc1,
+ 0xfbd3, 0xfd3f,
+ 0xfd50, 0xfd8f,
+ 0xfd92, 0xfdc7,
+ 0xfdf0, 0xfdfd,
+ 0xfe10, 0xfe19,
+ 0xfe30, 0xfe52,
+ 0xfe54, 0xfe66,
+ 0xfe68, 0xfe6b,
+ 0xfe70, 0xfe74,
+ 0xfe76, 0xfefc,
+ 0xff01, 0xff9d,
+ 0xffa0, 0xffbe,
+ 0xffc2, 0xffc7,
+ 0xffca, 0xffcf,
+ 0xffd2, 0xffd7,
+ 0xffda, 0xffdc,
+ 0xffe0, 0xffe6,
+ 0xffe8, 0xffee,
+ 0xfffc, 0xfffd,
+ 0x10000, 0x1000b,
+ 0x1000d, 0x10026,
+ 0x10028, 0x1003a,
+ 0x1003c, 0x1003d,
+ 0x1003f, 0x1004d,
+ 0x10050, 0x1005d,
+ 0x10080, 0x100fa,
+ 0x10100, 0x10102,
+ 0x10107, 0x10133,
+ 0x10137, 0x1018a,
+ 0x10190, 0x1019b,
+ 0x101d0, 0x101fc,
+ 0x10280, 0x1029c,
+ 0x102a0, 0x102d0,
+ 0x10300, 0x1031e,
+ 0x10320, 0x10323,
+ 0x10330, 0x1034a,
+ 0x10380, 0x1039d,
+ 0x1039f, 0x103c3,
+ 0x103c8, 0x103d5,
+ 0x10400, 0x1049d,
+ 0x104a0, 0x104a9,
+ 0x10800, 0x10805,
+ 0x10808, 0x10808,
+ 0x1080a, 0x10835,
+ 0x10837, 0x10838,
+ 0x1083c, 0x1083c,
+ 0x1083f, 0x10855,
+ 0x10857, 0x1085f,
+ 0x10900, 0x1091b,
+ 0x1091f, 0x10939,
+ 0x1093f, 0x1093f,
+ 0x10a00, 0x10a00,
+ 0x10a10, 0x10a13,
+ 0x10a15, 0x10a17,
+ 0x10a19, 0x10a33,
+ 0x10a40, 0x10a47,
+ 0x10a50, 0x10a58,
+ 0x10a60, 0x10a7f,
+ 0x10b00, 0x10b35,
+ 0x10b39, 0x10b55,
+ 0x10b58, 0x10b72,
+ 0x10b78, 0x10b7f,
+ 0x10c00, 0x10c48,
+ 0x10e60, 0x10e7e,
+ 0x11000, 0x11000,
+ 0x11002, 0x11037,
+ 0x11047, 0x1104d,
+ 0x11052, 0x1106f,
+ 0x11082, 0x110b2,
+ 0x110b7, 0x110b8,
+ 0x110bb, 0x110bc,
+ 0x110be, 0x110c1,
+ 0x12000, 0x1236e,
+ 0x12400, 0x12462,
+ 0x12470, 0x12473,
+ 0x13000, 0x1342e,
+ 0x16800, 0x16a38,
+ 0x1b000, 0x1b001,
+ 0x1d000, 0x1d0f5,
+ 0x1d100, 0x1d126,
+ 0x1d129, 0x1d164,
+ 0x1d166, 0x1d166,
+ 0x1d16a, 0x1d16d,
+ 0x1d183, 0x1d184,
+ 0x1d18c, 0x1d1a9,
+ 0x1d1ae, 0x1d1dd,
+ 0x1d200, 0x1d241,
+ 0x1d245, 0x1d245,
+ 0x1d300, 0x1d356,
+ 0x1d360, 0x1d371,
+ 0x1d400, 0x1d454,
+ 0x1d456, 0x1d49c,
+ 0x1d49e, 0x1d49f,
+ 0x1d4a2, 0x1d4a2,
+ 0x1d4a5, 0x1d4a6,
+ 0x1d4a9, 0x1d4ac,
+ 0x1d4ae, 0x1d4b9,
+ 0x1d4bb, 0x1d4bb,
+ 0x1d4bd, 0x1d4c3,
+ 0x1d4c5, 0x1d505,
+ 0x1d507, 0x1d50a,
+ 0x1d50d, 0x1d514,
+ 0x1d516, 0x1d51c,
+ 0x1d51e, 0x1d539,
+ 0x1d53b, 0x1d53e,
+ 0x1d540, 0x1d544,
+ 0x1d546, 0x1d546,
+ 0x1d54a, 0x1d550,
+ 0x1d552, 0x1d6a5,
+ 0x1d6a8, 0x1d7cb,
+ 0x1d7ce, 0x1d7ff,
+ 0x1f000, 0x1f02b,
+ 0x1f030, 0x1f093,
+ 0x1f0a0, 0x1f0ae,
+ 0x1f0b1, 0x1f0be,
+ 0x1f0c1, 0x1f0cf,
+ 0x1f0d1, 0x1f0df,
+ 0x1f100, 0x1f10a,
+ 0x1f110, 0x1f12e,
+ 0x1f130, 0x1f169,
+ 0x1f170, 0x1f19a,
+ 0x1f1e6, 0x1f202,
+ 0x1f210, 0x1f23a,
+ 0x1f240, 0x1f248,
+ 0x1f250, 0x1f251,
+ 0x1f300, 0x1f320,
+ 0x1f330, 0x1f335,
+ 0x1f337, 0x1f37c,
+ 0x1f380, 0x1f393,
+ 0x1f3a0, 0x1f3c4,
+ 0x1f3c6, 0x1f3ca,
+ 0x1f3e0, 0x1f3f0,
+ 0x1f400, 0x1f43e,
+ 0x1f440, 0x1f440,
+ 0x1f442, 0x1f4f7,
+ 0x1f4f9, 0x1f4fc,
+ 0x1f500, 0x1f53d,
+ 0x1f550, 0x1f567,
+ 0x1f5fb, 0x1f5ff,
+ 0x1f601, 0x1f610,
+ 0x1f612, 0x1f614,
+ 0x1f616, 0x1f616,
+ 0x1f618, 0x1f618,
+ 0x1f61a, 0x1f61a,
+ 0x1f61c, 0x1f61e,
+ 0x1f620, 0x1f625,
+ 0x1f628, 0x1f62b,
+ 0x1f62d, 0x1f62d,
+ 0x1f630, 0x1f633,
+ 0x1f635, 0x1f640,
+ 0x1f645, 0x1f64f,
+ 0x1f680, 0x1f6c5,
+ 0x1f700, 0x1f773,
+ 0x20000, 0x2a6d6,
+ 0x2a700, 0x2b734,
+ 0x2b740, 0x2b81d,
+ 0x2f800, 0x2fa1d,
+}; /* CR_Grapheme_Base */
+
+/* 'Grapheme_Link': Derived Property */
+static const OnigCodePoint CR_Grapheme_Link[] = {
+ 29,
+ 0x094d, 0x094d,
+ 0x09cd, 0x09cd,
+ 0x0a4d, 0x0a4d,
+ 0x0acd, 0x0acd,
+ 0x0b4d, 0x0b4d,
+ 0x0bcd, 0x0bcd,
+ 0x0c4d, 0x0c4d,
+ 0x0ccd, 0x0ccd,
+ 0x0d4d, 0x0d4d,
+ 0x0dca, 0x0dca,
+ 0x0e3a, 0x0e3a,
+ 0x0f84, 0x0f84,
+ 0x1039, 0x103a,
+ 0x1714, 0x1714,
+ 0x1734, 0x1734,
+ 0x17d2, 0x17d2,
+ 0x1a60, 0x1a60,
+ 0x1b44, 0x1b44,
+ 0x1baa, 0x1baa,
+ 0x1bf2, 0x1bf3,
+ 0x2d7f, 0x2d7f,
+ 0xa806, 0xa806,
+ 0xa8c4, 0xa8c4,
+ 0xa953, 0xa953,
+ 0xa9c0, 0xa9c0,
+ 0xabed, 0xabed,
+ 0x10a3f, 0x10a3f,
+ 0x11046, 0x11046,
+ 0x110b9, 0x110b9,
+}; /* CR_Grapheme_Link */
+
+/* 'Common': Script */
+static const OnigCodePoint CR_Common[] = {
+ 169,
+ 0x0000, 0x0040,
+ 0x005b, 0x0060,
+ 0x007b, 0x00a9,
+ 0x00ab, 0x00b9,
+ 0x00bb, 0x00bf,
+ 0x00d7, 0x00d7,
+ 0x00f7, 0x00f7,
+ 0x02b9, 0x02df,
+ 0x02e5, 0x02e9,
+ 0x02ec, 0x02ff,
+ 0x0374, 0x0374,
+ 0x037e, 0x037e,
+ 0x0385, 0x0385,
+ 0x0387, 0x0387,
+ 0x0589, 0x0589,
+ 0x060c, 0x060c,
+ 0x061b, 0x061b,
+ 0x061f, 0x061f,
+ 0x0640, 0x0640,
+ 0x0660, 0x0669,
+ 0x06dd, 0x06dd,
+ 0x0964, 0x0965,
+ 0x0970, 0x0970,
+ 0x0e3f, 0x0e3f,
+ 0x0fd5, 0x0fd8,
+ 0x10fb, 0x10fb,
+ 0x16eb, 0x16ed,
+ 0x1735, 0x1736,
+ 0x1802, 0x1803,
+ 0x1805, 0x1805,
+ 0x1cd3, 0x1cd3,
+ 0x1ce1, 0x1ce1,
+ 0x1ce9, 0x1cec,
+ 0x1cee, 0x1cf2,
+ 0x2000, 0x200b,
+ 0x200e, 0x2064,
+ 0x206a, 0x2070,
+ 0x2074, 0x207e,
+ 0x2080, 0x208e,
+ 0x20a0, 0x20b9,
+ 0x2100, 0x2125,
+ 0x2127, 0x2129,
+ 0x212c, 0x2131,
+ 0x2133, 0x214d,
+ 0x214f, 0x215f,
+ 0x2189, 0x2189,
+ 0x2190, 0x23f3,
+ 0x2400, 0x2426,
+ 0x2440, 0x244a,
+ 0x2460, 0x26ff,
+ 0x2701, 0x27ca,
+ 0x27cc, 0x27cc,
+ 0x27ce, 0x27ff,
+ 0x2900, 0x2b4c,
+ 0x2b50, 0x2b59,
+ 0x2e00, 0x2e31,
+ 0x2ff0, 0x2ffb,
+ 0x3000, 0x3004,
+ 0x3006, 0x3006,
+ 0x3008, 0x3020,
+ 0x3030, 0x3037,
+ 0x303c, 0x303f,
+ 0x309b, 0x309c,
+ 0x30a0, 0x30a0,
+ 0x30fb, 0x30fc,
+ 0x3190, 0x319f,
+ 0x31c0, 0x31e3,
+ 0x3220, 0x325f,
+ 0x327f, 0x32cf,
+ 0x3358, 0x33ff,
+ 0x4dc0, 0x4dff,
+ 0xa700, 0xa721,
+ 0xa788, 0xa78a,
+ 0xa830, 0xa839,
+ 0xfd3e, 0xfd3f,
+ 0xfdfd, 0xfdfd,
+ 0xfe10, 0xfe19,
+ 0xfe30, 0xfe52,
+ 0xfe54, 0xfe66,
+ 0xfe68, 0xfe6b,
+ 0xfeff, 0xfeff,
+ 0xff01, 0xff20,
+ 0xff3b, 0xff40,
+ 0xff5b, 0xff65,
+ 0xff70, 0xff70,
+ 0xff9e, 0xff9f,
+ 0xffe0, 0xffe6,
+ 0xffe8, 0xffee,
+ 0xfff9, 0xfffd,
+ 0x10100, 0x10102,
+ 0x10107, 0x10133,
+ 0x10137, 0x1013f,
+ 0x10190, 0x1019b,
+ 0x101d0, 0x101fc,
+ 0x1d000, 0x1d0f5,
+ 0x1d100, 0x1d126,
+ 0x1d129, 0x1d166,
+ 0x1d16a, 0x1d17a,
+ 0x1d183, 0x1d184,
+ 0x1d18c, 0x1d1a9,
+ 0x1d1ae, 0x1d1dd,
+ 0x1d300, 0x1d356,
+ 0x1d360, 0x1d371,
+ 0x1d400, 0x1d454,
+ 0x1d456, 0x1d49c,
+ 0x1d49e, 0x1d49f,
+ 0x1d4a2, 0x1d4a2,
+ 0x1d4a5, 0x1d4a6,
+ 0x1d4a9, 0x1d4ac,
+ 0x1d4ae, 0x1d4b9,
+ 0x1d4bb, 0x1d4bb,
+ 0x1d4bd, 0x1d4c3,
+ 0x1d4c5, 0x1d505,
+ 0x1d507, 0x1d50a,
+ 0x1d50d, 0x1d514,
+ 0x1d516, 0x1d51c,
+ 0x1d51e, 0x1d539,
+ 0x1d53b, 0x1d53e,
+ 0x1d540, 0x1d544,
+ 0x1d546, 0x1d546,
+ 0x1d54a, 0x1d550,
+ 0x1d552, 0x1d6a5,
+ 0x1d6a8, 0x1d7cb,
+ 0x1d7ce, 0x1d7ff,
+ 0x1f000, 0x1f02b,
+ 0x1f030, 0x1f093,
+ 0x1f0a0, 0x1f0ae,
+ 0x1f0b1, 0x1f0be,
+ 0x1f0c1, 0x1f0cf,
+ 0x1f0d1, 0x1f0df,
+ 0x1f100, 0x1f10a,
+ 0x1f110, 0x1f12e,
+ 0x1f130, 0x1f169,
+ 0x1f170, 0x1f19a,
+ 0x1f1e6, 0x1f1ff,
+ 0x1f201, 0x1f202,
+ 0x1f210, 0x1f23a,
+ 0x1f240, 0x1f248,
+ 0x1f250, 0x1f251,
+ 0x1f300, 0x1f320,
+ 0x1f330, 0x1f335,
+ 0x1f337, 0x1f37c,
+ 0x1f380, 0x1f393,
+ 0x1f3a0, 0x1f3c4,
+ 0x1f3c6, 0x1f3ca,
+ 0x1f3e0, 0x1f3f0,
+ 0x1f400, 0x1f43e,
+ 0x1f440, 0x1f440,
+ 0x1f442, 0x1f4f7,
+ 0x1f4f9, 0x1f4fc,
+ 0x1f500, 0x1f53d,
+ 0x1f550, 0x1f567,
+ 0x1f5fb, 0x1f5ff,
+ 0x1f601, 0x1f610,
+ 0x1f612, 0x1f614,
+ 0x1f616, 0x1f616,
+ 0x1f618, 0x1f618,
+ 0x1f61a, 0x1f61a,
+ 0x1f61c, 0x1f61e,
+ 0x1f620, 0x1f625,
+ 0x1f628, 0x1f62b,
+ 0x1f62d, 0x1f62d,
+ 0x1f630, 0x1f633,
+ 0x1f635, 0x1f640,
+ 0x1f645, 0x1f64f,
+ 0x1f680, 0x1f6c5,
+ 0x1f700, 0x1f773,
+ 0xe0001, 0xe0001,
+ 0xe0020, 0xe007f,
+}; /* CR_Common */
+
+/* 'Latin': Script */
+static const OnigCodePoint CR_Latin[] = {
+ 30,
+ 0x0041, 0x005a,
+ 0x0061, 0x007a,
+ 0x00aa, 0x00aa,
+ 0x00ba, 0x00ba,
+ 0x00c0, 0x00d6,
+ 0x00d8, 0x00f6,
+ 0x00f8, 0x02b8,
+ 0x02e0, 0x02e4,
+ 0x1d00, 0x1d25,
+ 0x1d2c, 0x1d5c,
+ 0x1d62, 0x1d65,
+ 0x1d6b, 0x1d77,
+ 0x1d79, 0x1dbe,
+ 0x1e00, 0x1eff,
+ 0x2071, 0x2071,
+ 0x207f, 0x207f,
+ 0x2090, 0x209c,
+ 0x212a, 0x212b,
+ 0x2132, 0x2132,
+ 0x214e, 0x214e,
+ 0x2160, 0x2188,
+ 0x2c60, 0x2c7f,
+ 0xa722, 0xa787,
+ 0xa78b, 0xa78e,
+ 0xa790, 0xa791,
+ 0xa7a0, 0xa7a9,
+ 0xa7fa, 0xa7ff,
+ 0xfb00, 0xfb06,
+ 0xff21, 0xff3a,
+ 0xff41, 0xff5a,
+}; /* CR_Latin */
+
+/* 'Greek': Script */
+static const OnigCodePoint CR_Greek[] = {
+ 33,
+ 0x0370, 0x0373,
+ 0x0375, 0x0377,
+ 0x037a, 0x037d,
+ 0x0384, 0x0384,
+ 0x0386, 0x0386,
+ 0x0388, 0x038a,
+ 0x038c, 0x038c,
+ 0x038e, 0x03a1,
+ 0x03a3, 0x03e1,
+ 0x03f0, 0x03ff,
+ 0x1d26, 0x1d2a,
+ 0x1d5d, 0x1d61,
+ 0x1d66, 0x1d6a,
+ 0x1dbf, 0x1dbf,
+ 0x1f00, 0x1f15,
+ 0x1f18, 0x1f1d,
+ 0x1f20, 0x1f45,
+ 0x1f48, 0x1f4d,
+ 0x1f50, 0x1f57,
+ 0x1f59, 0x1f59,
+ 0x1f5b, 0x1f5b,
+ 0x1f5d, 0x1f5d,
+ 0x1f5f, 0x1f7d,
+ 0x1f80, 0x1fb4,
+ 0x1fb6, 0x1fc4,
+ 0x1fc6, 0x1fd3,
+ 0x1fd6, 0x1fdb,
+ 0x1fdd, 0x1fef,
+ 0x1ff2, 0x1ff4,
+ 0x1ff6, 0x1ffe,
+ 0x2126, 0x2126,
+ 0x10140, 0x1018a,
+ 0x1d200, 0x1d245,
+}; /* CR_Greek */
+
+/* 'Cyrillic': Script */
+static const OnigCodePoint CR_Cyrillic[] = {
+ 7,
+ 0x0400, 0x0484,
+ 0x0487, 0x0527,
+ 0x1d2b, 0x1d2b,
+ 0x1d78, 0x1d78,
+ 0x2de0, 0x2dff,
+ 0xa640, 0xa673,
+ 0xa67c, 0xa697,
+}; /* CR_Cyrillic */
+
+/* 'Armenian': Script */
+static const OnigCodePoint CR_Armenian[] = {
+ 5,
+ 0x0531, 0x0556,
+ 0x0559, 0x055f,
+ 0x0561, 0x0587,
+ 0x058a, 0x058a,
+ 0xfb13, 0xfb17,
+}; /* CR_Armenian */
+
+/* 'Hebrew': Script */
+static const OnigCodePoint CR_Hebrew[] = {
+ 9,
+ 0x0591, 0x05c7,
+ 0x05d0, 0x05ea,
+ 0x05f0, 0x05f4,
+ 0xfb1d, 0xfb36,
+ 0xfb38, 0xfb3c,
+ 0xfb3e, 0xfb3e,
+ 0xfb40, 0xfb41,
+ 0xfb43, 0xfb44,
+ 0xfb46, 0xfb4f,
+}; /* CR_Hebrew */
+
+/* 'Arabic': Script */
+static const OnigCodePoint CR_Arabic[] = {
+ 19,
+ 0x0600, 0x0603,
+ 0x0606, 0x060b,
+ 0x060d, 0x061a,
+ 0x061e, 0x061e,
+ 0x0620, 0x063f,
+ 0x0641, 0x064a,
+ 0x0656, 0x065e,
+ 0x066a, 0x066f,
+ 0x0671, 0x06dc,
+ 0x06de, 0x06ff,
+ 0x0750, 0x077f,
+ 0xfb50, 0xfbc1,
+ 0xfbd3, 0xfd3d,
+ 0xfd50, 0xfd8f,
+ 0xfd92, 0xfdc7,
+ 0xfdf0, 0xfdfc,
+ 0xfe70, 0xfe74,
+ 0xfe76, 0xfefc,
+ 0x10e60, 0x10e7e,
+}; /* CR_Arabic */
+
+/* 'Syriac': Script */
+static const OnigCodePoint CR_Syriac[] = {
+ 3,
+ 0x0700, 0x070d,
+ 0x070f, 0x074a,
+ 0x074d, 0x074f,
+}; /* CR_Syriac */
+
+/* 'Thaana': Script */
+static const OnigCodePoint CR_Thaana[] = {
+ 1,
+ 0x0780, 0x07b1,
+}; /* CR_Thaana */
+
+/* 'Devanagari': Script */
+static const OnigCodePoint CR_Devanagari[] = {
+ 6,
+ 0x0900, 0x0950,
+ 0x0953, 0x0963,
+ 0x0966, 0x096f,
+ 0x0971, 0x0977,
+ 0x0979, 0x097f,
+ 0xa8e0, 0xa8fb,
+}; /* CR_Devanagari */
+
+/* 'Bengali': Script */
+static const OnigCodePoint CR_Bengali[] = {
+ 14,
+ 0x0981, 0x0983,
+ 0x0985, 0x098c,
+ 0x098f, 0x0990,
+ 0x0993, 0x09a8,
+ 0x09aa, 0x09b0,
+ 0x09b2, 0x09b2,
+ 0x09b6, 0x09b9,
+ 0x09bc, 0x09c4,
+ 0x09c7, 0x09c8,
+ 0x09cb, 0x09ce,
+ 0x09d7, 0x09d7,
+ 0x09dc, 0x09dd,
+ 0x09df, 0x09e3,
+ 0x09e6, 0x09fb,
+}; /* CR_Bengali */
+
+/* 'Gurmukhi': Script */
+static const OnigCodePoint CR_Gurmukhi[] = {
+ 16,
+ 0x0a01, 0x0a03,
+ 0x0a05, 0x0a0a,
+ 0x0a0f, 0x0a10,
+ 0x0a13, 0x0a28,
+ 0x0a2a, 0x0a30,
+ 0x0a32, 0x0a33,
+ 0x0a35, 0x0a36,
+ 0x0a38, 0x0a39,
+ 0x0a3c, 0x0a3c,
+ 0x0a3e, 0x0a42,
+ 0x0a47, 0x0a48,
+ 0x0a4b, 0x0a4d,
+ 0x0a51, 0x0a51,
+ 0x0a59, 0x0a5c,
+ 0x0a5e, 0x0a5e,
+ 0x0a66, 0x0a75,
+}; /* CR_Gurmukhi */
+
+/* 'Gujarati': Script */
+static const OnigCodePoint CR_Gujarati[] = {
+ 14,
+ 0x0a81, 0x0a83,
+ 0x0a85, 0x0a8d,
+ 0x0a8f, 0x0a91,
+ 0x0a93, 0x0aa8,
+ 0x0aaa, 0x0ab0,
+ 0x0ab2, 0x0ab3,
+ 0x0ab5, 0x0ab9,
+ 0x0abc, 0x0ac5,
+ 0x0ac7, 0x0ac9,
+ 0x0acb, 0x0acd,
+ 0x0ad0, 0x0ad0,
+ 0x0ae0, 0x0ae3,
+ 0x0ae6, 0x0aef,
+ 0x0af1, 0x0af1,
+}; /* CR_Gujarati */
+
+/* 'Oriya': Script */
+static const OnigCodePoint CR_Oriya[] = {
+ 14,
+ 0x0b01, 0x0b03,
+ 0x0b05, 0x0b0c,
+ 0x0b0f, 0x0b10,
+ 0x0b13, 0x0b28,
+ 0x0b2a, 0x0b30,
+ 0x0b32, 0x0b33,
+ 0x0b35, 0x0b39,
+ 0x0b3c, 0x0b44,
+ 0x0b47, 0x0b48,
+ 0x0b4b, 0x0b4d,
+ 0x0b56, 0x0b57,
+ 0x0b5c, 0x0b5d,
+ 0x0b5f, 0x0b63,
+ 0x0b66, 0x0b77,
+}; /* CR_Oriya */
+
+/* 'Tamil': Script */
+static const OnigCodePoint CR_Tamil[] = {
+ 16,
+ 0x0b82, 0x0b83,
+ 0x0b85, 0x0b8a,
+ 0x0b8e, 0x0b90,
+ 0x0b92, 0x0b95,
+ 0x0b99, 0x0b9a,
+ 0x0b9c, 0x0b9c,
+ 0x0b9e, 0x0b9f,
+ 0x0ba3, 0x0ba4,
+ 0x0ba8, 0x0baa,
+ 0x0bae, 0x0bb9,
+ 0x0bbe, 0x0bc2,
+ 0x0bc6, 0x0bc8,
+ 0x0bca, 0x0bcd,
+ 0x0bd0, 0x0bd0,
+ 0x0bd7, 0x0bd7,
+ 0x0be6, 0x0bfa,
+}; /* CR_Tamil */
+
+/* 'Telugu': Script */
+static const OnigCodePoint CR_Telugu[] = {
+ 14,
+ 0x0c01, 0x0c03,
+ 0x0c05, 0x0c0c,
+ 0x0c0e, 0x0c10,
+ 0x0c12, 0x0c28,
+ 0x0c2a, 0x0c33,
+ 0x0c35, 0x0c39,
+ 0x0c3d, 0x0c44,
+ 0x0c46, 0x0c48,
+ 0x0c4a, 0x0c4d,
+ 0x0c55, 0x0c56,
+ 0x0c58, 0x0c59,
+ 0x0c60, 0x0c63,
+ 0x0c66, 0x0c6f,
+ 0x0c78, 0x0c7f,
+}; /* CR_Telugu */
+
+/* 'Kannada': Script */
+static const OnigCodePoint CR_Kannada[] = {
+ 14,
+ 0x0c82, 0x0c83,
+ 0x0c85, 0x0c8c,
+ 0x0c8e, 0x0c90,
+ 0x0c92, 0x0ca8,
+ 0x0caa, 0x0cb3,
+ 0x0cb5, 0x0cb9,
+ 0x0cbc, 0x0cc4,
+ 0x0cc6, 0x0cc8,
+ 0x0cca, 0x0ccd,
+ 0x0cd5, 0x0cd6,
+ 0x0cde, 0x0cde,
+ 0x0ce0, 0x0ce3,
+ 0x0ce6, 0x0cef,
+ 0x0cf1, 0x0cf2,
+}; /* CR_Kannada */
+
+/* 'Malayalam': Script */
+static const OnigCodePoint CR_Malayalam[] = {
+ 11,
+ 0x0d02, 0x0d03,
+ 0x0d05, 0x0d0c,
+ 0x0d0e, 0x0d10,
+ 0x0d12, 0x0d3a,
+ 0x0d3d, 0x0d44,
+ 0x0d46, 0x0d48,
+ 0x0d4a, 0x0d4e,
+ 0x0d57, 0x0d57,
+ 0x0d60, 0x0d63,
+ 0x0d66, 0x0d75,
+ 0x0d79, 0x0d7f,
+}; /* CR_Malayalam */
+
+/* 'Sinhala': Script */
+static const OnigCodePoint CR_Sinhala[] = {
+ 11,
+ 0x0d82, 0x0d83,
+ 0x0d85, 0x0d96,
+ 0x0d9a, 0x0db1,
+ 0x0db3, 0x0dbb,
+ 0x0dbd, 0x0dbd,
+ 0x0dc0, 0x0dc6,
+ 0x0dca, 0x0dca,
+ 0x0dcf, 0x0dd4,
+ 0x0dd6, 0x0dd6,
+ 0x0dd8, 0x0ddf,
+ 0x0df2, 0x0df4,
+}; /* CR_Sinhala */
+
+/* 'Thai': Script */
+static const OnigCodePoint CR_Thai[] = {
+ 2,
+ 0x0e01, 0x0e3a,
+ 0x0e40, 0x0e5b,
+}; /* CR_Thai */
+
+/* 'Lao': Script */
+static const OnigCodePoint CR_Lao[] = {
+ 18,
+ 0x0e81, 0x0e82,
+ 0x0e84, 0x0e84,
+ 0x0e87, 0x0e88,
+ 0x0e8a, 0x0e8a,
+ 0x0e8d, 0x0e8d,
+ 0x0e94, 0x0e97,
+ 0x0e99, 0x0e9f,
+ 0x0ea1, 0x0ea3,
+ 0x0ea5, 0x0ea5,
+ 0x0ea7, 0x0ea7,
+ 0x0eaa, 0x0eab,
+ 0x0ead, 0x0eb9,
+ 0x0ebb, 0x0ebd,
+ 0x0ec0, 0x0ec4,
+ 0x0ec6, 0x0ec6,
+ 0x0ec8, 0x0ecd,
+ 0x0ed0, 0x0ed9,
+ 0x0edc, 0x0edd,
+}; /* CR_Lao */
+
+/* 'Tibetan': Script */
+static const OnigCodePoint CR_Tibetan[] = {
+ 7,
+ 0x0f00, 0x0f47,
+ 0x0f49, 0x0f6c,
+ 0x0f71, 0x0f97,
+ 0x0f99, 0x0fbc,
+ 0x0fbe, 0x0fcc,
+ 0x0fce, 0x0fd4,
+ 0x0fd9, 0x0fda,
+}; /* CR_Tibetan */
+
+/* 'Myanmar': Script */
+static const OnigCodePoint CR_Myanmar[] = {
+ 2,
+ 0x1000, 0x109f,
+ 0xaa60, 0xaa7b,
+}; /* CR_Myanmar */
+
+/* 'Georgian': Script */
+static const OnigCodePoint CR_Georgian[] = {
+ 4,
+ 0x10a0, 0x10c5,
+ 0x10d0, 0x10fa,
+ 0x10fc, 0x10fc,
+ 0x2d00, 0x2d25,
+}; /* CR_Georgian */
+
+/* 'Hangul': Script */
+static const OnigCodePoint CR_Hangul[] = {
+ 14,
+ 0x1100, 0x11ff,
+ 0x302e, 0x302f,
+ 0x3131, 0x318e,
+ 0x3200, 0x321e,
+ 0x3260, 0x327e,
+ 0xa960, 0xa97c,
+ 0xac00, 0xd7a3,
+ 0xd7b0, 0xd7c6,
+ 0xd7cb, 0xd7fb,
+ 0xffa0, 0xffbe,
+ 0xffc2, 0xffc7,
+ 0xffca, 0xffcf,
+ 0xffd2, 0xffd7,
+ 0xffda, 0xffdc,
+}; /* CR_Hangul */
+
+/* 'Ethiopic': Script */
+static const OnigCodePoint CR_Ethiopic[] = {
+ 32,
+ 0x1200, 0x1248,
+ 0x124a, 0x124d,
+ 0x1250, 0x1256,
+ 0x1258, 0x1258,
+ 0x125a, 0x125d,
+ 0x1260, 0x1288,
+ 0x128a, 0x128d,
+ 0x1290, 0x12b0,
+ 0x12b2, 0x12b5,
+ 0x12b8, 0x12be,
+ 0x12c0, 0x12c0,
+ 0x12c2, 0x12c5,
+ 0x12c8, 0x12d6,
+ 0x12d8, 0x1310,
+ 0x1312, 0x1315,
+ 0x1318, 0x135a,
+ 0x135d, 0x137c,
+ 0x1380, 0x1399,
+ 0x2d80, 0x2d96,
+ 0x2da0, 0x2da6,
+ 0x2da8, 0x2dae,
+ 0x2db0, 0x2db6,
+ 0x2db8, 0x2dbe,
+ 0x2dc0, 0x2dc6,
+ 0x2dc8, 0x2dce,
+ 0x2dd0, 0x2dd6,
+ 0x2dd8, 0x2dde,
+ 0xab01, 0xab06,
+ 0xab09, 0xab0e,
+ 0xab11, 0xab16,
+ 0xab20, 0xab26,
+ 0xab28, 0xab2e,
+}; /* CR_Ethiopic */
+
+/* 'Cherokee': Script */
+static const OnigCodePoint CR_Cherokee[] = {
+ 1,
+ 0x13a0, 0x13f4,
+}; /* CR_Cherokee */
+
+/* 'Canadian_Aboriginal': Script */
+static const OnigCodePoint CR_Canadian_Aboriginal[] = {
+ 2,
+ 0x1400, 0x167f,
+ 0x18b0, 0x18f5,
+}; /* CR_Canadian_Aboriginal */
+
+/* 'Ogham': Script */
+static const OnigCodePoint CR_Ogham[] = {
+ 1,
+ 0x1680, 0x169c,
+}; /* CR_Ogham */
+
+/* 'Runic': Script */
+static const OnigCodePoint CR_Runic[] = {
+ 2,
+ 0x16a0, 0x16ea,
+ 0x16ee, 0x16f0,
+}; /* CR_Runic */
+
+/* 'Khmer': Script */
+static const OnigCodePoint CR_Khmer[] = {
+ 4,
+ 0x1780, 0x17dd,
+ 0x17e0, 0x17e9,
+ 0x17f0, 0x17f9,
+ 0x19e0, 0x19ff,
+}; /* CR_Khmer */
+
+/* 'Mongolian': Script */
+static const OnigCodePoint CR_Mongolian[] = {
+ 6,
+ 0x1800, 0x1801,
+ 0x1804, 0x1804,
+ 0x1806, 0x180e,
+ 0x1810, 0x1819,
+ 0x1820, 0x1877,
+ 0x1880, 0x18aa,
+}; /* CR_Mongolian */
+
+/* 'Hiragana': Script */
+static const OnigCodePoint CR_Hiragana[] = {
+ 4,
+ 0x3041, 0x3096,
+ 0x309d, 0x309f,
+ 0x1b001, 0x1b001,
+ 0x1f200, 0x1f200,
+}; /* CR_Hiragana */
+
+/* 'Katakana': Script */
+static const OnigCodePoint CR_Katakana[] = {
+ 8,
+ 0x30a1, 0x30fa,
+ 0x30fd, 0x30ff,
+ 0x31f0, 0x31ff,
+ 0x32d0, 0x32fe,
+ 0x3300, 0x3357,
+ 0xff66, 0xff6f,
+ 0xff71, 0xff9d,
+ 0x1b000, 0x1b000,
+}; /* CR_Katakana */
+
+/* 'Bopomofo': Script */
+static const OnigCodePoint CR_Bopomofo[] = {
+ 3,
+ 0x02ea, 0x02eb,
+ 0x3105, 0x312d,
+ 0x31a0, 0x31ba,
+}; /* CR_Bopomofo */
+
+/* 'Han': Script */
+static const OnigCodePoint CR_Han[] = {
+ 16,
+ 0x2e80, 0x2e99,
+ 0x2e9b, 0x2ef3,
+ 0x2f00, 0x2fd5,
+ 0x3005, 0x3005,
+ 0x3007, 0x3007,
+ 0x3021, 0x3029,
+ 0x3038, 0x303b,
+ 0x3400, 0x4db5,
+ 0x4e00, 0x9fcb,
+ 0xf900, 0xfa2d,
+ 0xfa30, 0xfa6d,
+ 0xfa70, 0xfad9,
+ 0x20000, 0x2a6d6,
+ 0x2a700, 0x2b734,
+ 0x2b740, 0x2b81d,
+ 0x2f800, 0x2fa1d,
+}; /* CR_Han */
+
+/* 'Yi': Script */
+static const OnigCodePoint CR_Yi[] = {
+ 2,
+ 0xa000, 0xa48c,
+ 0xa490, 0xa4c6,
+}; /* CR_Yi */
+
+/* 'Old_Italic': Script */
+static const OnigCodePoint CR_Old_Italic[] = {
+ 2,
+ 0x10300, 0x1031e,
+ 0x10320, 0x10323,
+}; /* CR_Old_Italic */
+
+/* 'Gothic': Script */
+static const OnigCodePoint CR_Gothic[] = {
+ 1,
+ 0x10330, 0x1034a,
+}; /* CR_Gothic */
+
+/* 'Deseret': Script */
+static const OnigCodePoint CR_Deseret[] = {
+ 1,
+ 0x10400, 0x1044f,
+}; /* CR_Deseret */
+
+/* 'Inherited': Script */
+static const OnigCodePoint CR_Inherited[] = {
+ 24,
+ 0x0300, 0x036f,
+ 0x0485, 0x0486,
+ 0x064b, 0x0655,
+ 0x065f, 0x065f,
+ 0x0670, 0x0670,
+ 0x0951, 0x0952,
+ 0x1cd0, 0x1cd2,
+ 0x1cd4, 0x1ce0,
+ 0x1ce2, 0x1ce8,
+ 0x1ced, 0x1ced,
+ 0x1dc0, 0x1de6,
+ 0x1dfc, 0x1dff,
+ 0x200c, 0x200d,
+ 0x20d0, 0x20f0,
+ 0x302a, 0x302d,
+ 0x3099, 0x309a,
+ 0xfe00, 0xfe0f,
+ 0xfe20, 0xfe26,
+ 0x101fd, 0x101fd,
+ 0x1d167, 0x1d169,
+ 0x1d17b, 0x1d182,
+ 0x1d185, 0x1d18b,
+ 0x1d1aa, 0x1d1ad,
+ 0xe0100, 0xe01ef,
+}; /* CR_Inherited */
+
+/* 'Tagalog': Script */
+static const OnigCodePoint CR_Tagalog[] = {
+ 2,
+ 0x1700, 0x170c,
+ 0x170e, 0x1714,
+}; /* CR_Tagalog */
+
+/* 'Hanunoo': Script */
+static const OnigCodePoint CR_Hanunoo[] = {
+ 1,
+ 0x1720, 0x1734,
+}; /* CR_Hanunoo */
+
+/* 'Buhid': Script */
+static const OnigCodePoint CR_Buhid[] = {
+ 1,
+ 0x1740, 0x1753,
+}; /* CR_Buhid */
+
+/* 'Tagbanwa': Script */
+static const OnigCodePoint CR_Tagbanwa[] = {
+ 3,
+ 0x1760, 0x176c,
+ 0x176e, 0x1770,
+ 0x1772, 0x1773,
+}; /* CR_Tagbanwa */
+
+/* 'Limbu': Script */
+static const OnigCodePoint CR_Limbu[] = {
+ 5,
+ 0x1900, 0x191c,
+ 0x1920, 0x192b,
+ 0x1930, 0x193b,
+ 0x1940, 0x1940,
+ 0x1944, 0x194f,
+}; /* CR_Limbu */
+
+/* 'Tai_Le': Script */
+static const OnigCodePoint CR_Tai_Le[] = {
+ 2,
+ 0x1950, 0x196d,
+ 0x1970, 0x1974,
+}; /* CR_Tai_Le */
+
+/* 'Linear_B': Script */
+static const OnigCodePoint CR_Linear_B[] = {
+ 7,
+ 0x10000, 0x1000b,
+ 0x1000d, 0x10026,
+ 0x10028, 0x1003a,
+ 0x1003c, 0x1003d,
+ 0x1003f, 0x1004d,
+ 0x10050, 0x1005d,
+ 0x10080, 0x100fa,
+}; /* CR_Linear_B */
+
+/* 'Ugaritic': Script */
+static const OnigCodePoint CR_Ugaritic[] = {
+ 2,
+ 0x10380, 0x1039d,
+ 0x1039f, 0x1039f,
+}; /* CR_Ugaritic */
+
+/* 'Shavian': Script */
+static const OnigCodePoint CR_Shavian[] = {
+ 1,
+ 0x10450, 0x1047f,
+}; /* CR_Shavian */
+
+/* 'Osmanya': Script */
+static const OnigCodePoint CR_Osmanya[] = {
+ 2,
+ 0x10480, 0x1049d,
+ 0x104a0, 0x104a9,
+}; /* CR_Osmanya */
+
+/* 'Cypriot': Script */
+static const OnigCodePoint CR_Cypriot[] = {
+ 6,
+ 0x10800, 0x10805,
+ 0x10808, 0x10808,
+ 0x1080a, 0x10835,
+ 0x10837, 0x10838,
+ 0x1083c, 0x1083c,
+ 0x1083f, 0x1083f,
+}; /* CR_Cypriot */
+
+/* 'Braille': Script */
+static const OnigCodePoint CR_Braille[] = {
+ 1,
+ 0x2800, 0x28ff,
+}; /* CR_Braille */
+
+/* 'Buginese': Script */
+static const OnigCodePoint CR_Buginese[] = {
+ 2,
+ 0x1a00, 0x1a1b,
+ 0x1a1e, 0x1a1f,
+}; /* CR_Buginese */
+
+/* 'Coptic': Script */
+static const OnigCodePoint CR_Coptic[] = {
+ 3,
+ 0x03e2, 0x03ef,
+ 0x2c80, 0x2cf1,
+ 0x2cf9, 0x2cff,
+}; /* CR_Coptic */
+
+/* 'New_Tai_Lue': Script */
+static const OnigCodePoint CR_New_Tai_Lue[] = {
+ 4,
+ 0x1980, 0x19ab,
+ 0x19b0, 0x19c9,
+ 0x19d0, 0x19da,
+ 0x19de, 0x19df,
+}; /* CR_New_Tai_Lue */
+
+/* 'Glagolitic': Script */
+static const OnigCodePoint CR_Glagolitic[] = {
+ 2,
+ 0x2c00, 0x2c2e,
+ 0x2c30, 0x2c5e,
+}; /* CR_Glagolitic */
+
+/* 'Tifinagh': Script */
+static const OnigCodePoint CR_Tifinagh[] = {
+ 3,
+ 0x2d30, 0x2d65,
+ 0x2d6f, 0x2d70,
+ 0x2d7f, 0x2d7f,
+}; /* CR_Tifinagh */
+
+/* 'Syloti_Nagri': Script */
+static const OnigCodePoint CR_Syloti_Nagri[] = {
+ 1,
+ 0xa800, 0xa82b,
+}; /* CR_Syloti_Nagri */
+
+/* 'Old_Persian': Script */
+static const OnigCodePoint CR_Old_Persian[] = {
+ 2,
+ 0x103a0, 0x103c3,
+ 0x103c8, 0x103d5,
+}; /* CR_Old_Persian */
+
+/* 'Kharoshthi': Script */
+static const OnigCodePoint CR_Kharoshthi[] = {
+ 8,
+ 0x10a00, 0x10a03,
+ 0x10a05, 0x10a06,
+ 0x10a0c, 0x10a13,
+ 0x10a15, 0x10a17,
+ 0x10a19, 0x10a33,
+ 0x10a38, 0x10a3a,
+ 0x10a3f, 0x10a47,
+ 0x10a50, 0x10a58,
+}; /* CR_Kharoshthi */
+
+/* 'Balinese': Script */
+static const OnigCodePoint CR_Balinese[] = {
+ 2,
+ 0x1b00, 0x1b4b,
+ 0x1b50, 0x1b7c,
+}; /* CR_Balinese */
+
+/* 'Cuneiform': Script */
+static const OnigCodePoint CR_Cuneiform[] = {
+ 3,
+ 0x12000, 0x1236e,
+ 0x12400, 0x12462,
+ 0x12470, 0x12473,
+}; /* CR_Cuneiform */
+
+/* 'Phoenician': Script */
+static const OnigCodePoint CR_Phoenician[] = {
+ 2,
+ 0x10900, 0x1091b,
+ 0x1091f, 0x1091f,
+}; /* CR_Phoenician */
+
+/* 'Phags_Pa': Script */
+static const OnigCodePoint CR_Phags_Pa[] = {
+ 1,
+ 0xa840, 0xa877,
+}; /* CR_Phags_Pa */
+
+/* 'Nko': Script */
+static const OnigCodePoint CR_Nko[] = {
+ 1,
+ 0x07c0, 0x07fa,
+}; /* CR_Nko */
+
+/* 'Sundanese': Script */
+static const OnigCodePoint CR_Sundanese[] = {
+ 2,
+ 0x1b80, 0x1baa,
+ 0x1bae, 0x1bb9,
+}; /* CR_Sundanese */
+
+/* 'Lepcha': Script */
+static const OnigCodePoint CR_Lepcha[] = {
+ 3,
+ 0x1c00, 0x1c37,
+ 0x1c3b, 0x1c49,
+ 0x1c4d, 0x1c4f,
+}; /* CR_Lepcha */
+
+/* 'Ol_Chiki': Script */
+static const OnigCodePoint CR_Ol_Chiki[] = {
+ 1,
+ 0x1c50, 0x1c7f,
+}; /* CR_Ol_Chiki */
+
+/* 'Vai': Script */
+static const OnigCodePoint CR_Vai[] = {
+ 1,
+ 0xa500, 0xa62b,
+}; /* CR_Vai */
+
+/* 'Saurashtra': Script */
+static const OnigCodePoint CR_Saurashtra[] = {
+ 2,
+ 0xa880, 0xa8c4,
+ 0xa8ce, 0xa8d9,
+}; /* CR_Saurashtra */
+
+/* 'Kayah_Li': Script */
+static const OnigCodePoint CR_Kayah_Li[] = {
+ 1,
+ 0xa900, 0xa92f,
+}; /* CR_Kayah_Li */
+
+/* 'Rejang': Script */
+static const OnigCodePoint CR_Rejang[] = {
+ 2,
+ 0xa930, 0xa953,
+ 0xa95f, 0xa95f,
+}; /* CR_Rejang */
+
+/* 'Lycian': Script */
+static const OnigCodePoint CR_Lycian[] = {
+ 1,
+ 0x10280, 0x1029c,
+}; /* CR_Lycian */
+
+/* 'Carian': Script */
+static const OnigCodePoint CR_Carian[] = {
+ 1,
+ 0x102a0, 0x102d0,
+}; /* CR_Carian */
+
+/* 'Lydian': Script */
+static const OnigCodePoint CR_Lydian[] = {
+ 2,
+ 0x10920, 0x10939,
+ 0x1093f, 0x1093f,
+}; /* CR_Lydian */
+
+/* 'Cham': Script */
+static const OnigCodePoint CR_Cham[] = {
+ 4,
+ 0xaa00, 0xaa36,
+ 0xaa40, 0xaa4d,
+ 0xaa50, 0xaa59,
+ 0xaa5c, 0xaa5f,
+}; /* CR_Cham */
+
+/* 'Tai_Tham': Script */
+static const OnigCodePoint CR_Tai_Tham[] = {
+ 5,
+ 0x1a20, 0x1a5e,
+ 0x1a60, 0x1a7c,
+ 0x1a7f, 0x1a89,
+ 0x1a90, 0x1a99,
+ 0x1aa0, 0x1aad,
+}; /* CR_Tai_Tham */
+
+/* 'Tai_Viet': Script */
+static const OnigCodePoint CR_Tai_Viet[] = {
+ 2,
+ 0xaa80, 0xaac2,
+ 0xaadb, 0xaadf,
+}; /* CR_Tai_Viet */
+
+/* 'Avestan': Script */
+static const OnigCodePoint CR_Avestan[] = {
+ 2,
+ 0x10b00, 0x10b35,
+ 0x10b39, 0x10b3f,
+}; /* CR_Avestan */
+
+/* 'Egyptian_Hieroglyphs': Script */
+static const OnigCodePoint CR_Egyptian_Hieroglyphs[] = {
+ 1,
+ 0x13000, 0x1342e,
+}; /* CR_Egyptian_Hieroglyphs */
+
+/* 'Samaritan': Script */
+static const OnigCodePoint CR_Samaritan[] = {
+ 2,
+ 0x0800, 0x082d,
+ 0x0830, 0x083e,
+}; /* CR_Samaritan */
+
+/* 'Lisu': Script */
+static const OnigCodePoint CR_Lisu[] = {
+ 1,
+ 0xa4d0, 0xa4ff,
+}; /* CR_Lisu */
+
+/* 'Bamum': Script */
+static const OnigCodePoint CR_Bamum[] = {
+ 2,
+ 0xa6a0, 0xa6f7,
+ 0x16800, 0x16a38,
+}; /* CR_Bamum */
+
+/* 'Javanese': Script */
+static const OnigCodePoint CR_Javanese[] = {
+ 3,
+ 0xa980, 0xa9cd,
+ 0xa9cf, 0xa9d9,
+ 0xa9de, 0xa9df,
+}; /* CR_Javanese */
+
+/* 'Meetei_Mayek': Script */
+static const OnigCodePoint CR_Meetei_Mayek[] = {
+ 2,
+ 0xabc0, 0xabed,
+ 0xabf0, 0xabf9,
+}; /* CR_Meetei_Mayek */
+
+/* 'Imperial_Aramaic': Script */
+static const OnigCodePoint CR_Imperial_Aramaic[] = {
+ 2,
+ 0x10840, 0x10855,
+ 0x10857, 0x1085f,
+}; /* CR_Imperial_Aramaic */
+
+/* 'Old_South_Arabian': Script */
+static const OnigCodePoint CR_Old_South_Arabian[] = {
+ 1,
+ 0x10a60, 0x10a7f,
+}; /* CR_Old_South_Arabian */
+
+/* 'Inscriptional_Parthian': Script */
+static const OnigCodePoint CR_Inscriptional_Parthian[] = {
+ 2,
+ 0x10b40, 0x10b55,
+ 0x10b58, 0x10b5f,
+}; /* CR_Inscriptional_Parthian */
+
+/* 'Inscriptional_Pahlavi': Script */
+static const OnigCodePoint CR_Inscriptional_Pahlavi[] = {
+ 2,
+ 0x10b60, 0x10b72,
+ 0x10b78, 0x10b7f,
+}; /* CR_Inscriptional_Pahlavi */
+
+/* 'Old_Turkic': Script */
+static const OnigCodePoint CR_Old_Turkic[] = {
+ 1,
+ 0x10c00, 0x10c48,
+}; /* CR_Old_Turkic */
+
+/* 'Kaithi': Script */
+static const OnigCodePoint CR_Kaithi[] = {
+ 1,
+ 0x11080, 0x110c1,
+}; /* CR_Kaithi */
+
+/* 'Batak': Script */
+static const OnigCodePoint CR_Batak[] = {
+ 2,
+ 0x1bc0, 0x1bf3,
+ 0x1bfc, 0x1bff,
+}; /* CR_Batak */
+
+/* 'Brahmi': Script */
+static const OnigCodePoint CR_Brahmi[] = {
+ 2,
+ 0x11000, 0x1104d,
+ 0x11052, 0x1106f,
+}; /* CR_Brahmi */
+
+/* 'Mandaic': Script */
+static const OnigCodePoint CR_Mandaic[] = {
+ 2,
+ 0x0840, 0x085b,
+ 0x085e, 0x085e,
+}; /* CR_Mandaic */
+
+/* 'White_Space': Binary Property */
+static const OnigCodePoint CR_White_Space[] = {
+ 11,
+ 0x0009, 0x000d,
+ 0x0020, 0x0020,
+ 0x0085, 0x0085,
+ 0x00a0, 0x00a0,
+ 0x1680, 0x1680,
+ 0x180e, 0x180e,
+ 0x2000, 0x200a,
+ 0x2028, 0x2029,
+ 0x202f, 0x202f,
+ 0x205f, 0x205f,
+ 0x3000, 0x3000,
+}; /* CR_White_Space */
+
+/* 'Bidi_Control': Binary Property */
+static const OnigCodePoint CR_Bidi_Control[] = {
+ 2,
+ 0x200e, 0x200f,
+ 0x202a, 0x202e,
+}; /* CR_Bidi_Control */
+
+/* 'Join_Control': Binary Property */
+static const OnigCodePoint CR_Join_Control[] = {
+ 1,
+ 0x200c, 0x200d,
+}; /* CR_Join_Control */
+
+/* 'Dash': Binary Property */
+static const OnigCodePoint CR_Dash[] = {
+ 19,
+ 0x002d, 0x002d,
+ 0x058a, 0x058a,
+ 0x05be, 0x05be,
+ 0x1400, 0x1400,
+ 0x1806, 0x1806,
+ 0x2010, 0x2015,
+ 0x2053, 0x2053,
+ 0x207b, 0x207b,
+ 0x208b, 0x208b,
+ 0x2212, 0x2212,
+ 0x2e17, 0x2e17,
+ 0x2e1a, 0x2e1a,
+ 0x301c, 0x301c,
+ 0x3030, 0x3030,
+ 0x30a0, 0x30a0,
+ 0xfe31, 0xfe32,
+ 0xfe58, 0xfe58,
+ 0xfe63, 0xfe63,
+ 0xff0d, 0xff0d,
+}; /* CR_Dash */
+
+/* 'Hyphen': Binary Property */
+static const OnigCodePoint CR_Hyphen[] = {
+ 10,
+ 0x002d, 0x002d,
+ 0x00ad, 0x00ad,
+ 0x058a, 0x058a,
+ 0x1806, 0x1806,
+ 0x2010, 0x2011,
+ 0x2e17, 0x2e17,
+ 0x30fb, 0x30fb,
+ 0xfe63, 0xfe63,
+ 0xff0d, 0xff0d,
+ 0xff65, 0xff65,
+}; /* CR_Hyphen */
+
+/* 'Quotation_Mark': Binary Property */
+static const OnigCodePoint CR_Quotation_Mark[] = {
+ 12,
+ 0x0022, 0x0022,
+ 0x0027, 0x0027,
+ 0x00ab, 0x00ab,
+ 0x00bb, 0x00bb,
+ 0x2018, 0x201f,
+ 0x2039, 0x203a,
+ 0x300c, 0x300f,
+ 0x301d, 0x301f,
+ 0xfe41, 0xfe44,
+ 0xff02, 0xff02,
+ 0xff07, 0xff07,
+ 0xff62, 0xff63,
+}; /* CR_Quotation_Mark */
+
+/* 'Terminal_Punctuation': Binary Property */
+static const OnigCodePoint CR_Terminal_Punctuation[] = {
+ 67,
+ 0x0021, 0x0021,
+ 0x002c, 0x002c,
+ 0x002e, 0x002e,
+ 0x003a, 0x003b,
+ 0x003f, 0x003f,
+ 0x037e, 0x037e,
+ 0x0387, 0x0387,
+ 0x0589, 0x0589,
+ 0x05c3, 0x05c3,
+ 0x060c, 0x060c,
+ 0x061b, 0x061b,
+ 0x061f, 0x061f,
+ 0x06d4, 0x06d4,
+ 0x0700, 0x070a,
+ 0x070c, 0x070c,
+ 0x07f8, 0x07f9,
+ 0x0830, 0x083e,
+ 0x085e, 0x085e,
+ 0x0964, 0x0965,
+ 0x0e5a, 0x0e5b,
+ 0x0f08, 0x0f08,
+ 0x0f0d, 0x0f12,
+ 0x104a, 0x104b,
+ 0x1361, 0x1368,
+ 0x166d, 0x166e,
+ 0x16eb, 0x16ed,
+ 0x17d4, 0x17d6,
+ 0x17da, 0x17da,
+ 0x1802, 0x1805,
+ 0x1808, 0x1809,
+ 0x1944, 0x1945,
+ 0x1aa8, 0x1aab,
+ 0x1b5a, 0x1b5b,
+ 0x1b5d, 0x1b5f,
+ 0x1c3b, 0x1c3f,
+ 0x1c7e, 0x1c7f,
+ 0x203c, 0x203d,
+ 0x2047, 0x2049,
+ 0x2e2e, 0x2e2e,
+ 0x3001, 0x3002,
+ 0xa4fe, 0xa4ff,
+ 0xa60d, 0xa60f,
+ 0xa6f3, 0xa6f7,
+ 0xa876, 0xa877,
+ 0xa8ce, 0xa8cf,
+ 0xa92f, 0xa92f,
+ 0xa9c7, 0xa9c9,
+ 0xaa5d, 0xaa5f,
+ 0xaadf, 0xaadf,
+ 0xabeb, 0xabeb,
+ 0xfe50, 0xfe52,
+ 0xfe54, 0xfe57,
+ 0xff01, 0xff01,
+ 0xff0c, 0xff0c,
+ 0xff0e, 0xff0e,
+ 0xff1a, 0xff1b,
+ 0xff1f, 0xff1f,
+ 0xff61, 0xff61,
+ 0xff64, 0xff64,
+ 0x1039f, 0x1039f,
+ 0x103d0, 0x103d0,
+ 0x10857, 0x10857,
+ 0x1091f, 0x1091f,
+ 0x10b3a, 0x10b3f,
+ 0x11047, 0x1104d,
+ 0x110be, 0x110c1,
+ 0x12470, 0x12473,
+}; /* CR_Terminal_Punctuation */
+
+/* 'Other_Math': Binary Property */
+static const OnigCodePoint CR_Other_Math[] = {
+ 100,
+ 0x005e, 0x005e,
+ 0x03d0, 0x03d2,
+ 0x03d5, 0x03d5,
+ 0x03f0, 0x03f1,
+ 0x03f4, 0x03f5,
+ 0x2016, 0x2016,
+ 0x2032, 0x2034,
+ 0x2040, 0x2040,
+ 0x2061, 0x2064,
+ 0x207d, 0x207e,
+ 0x208d, 0x208e,
+ 0x20d0, 0x20dc,
+ 0x20e1, 0x20e1,
+ 0x20e5, 0x20e6,
+ 0x20eb, 0x20ef,
+ 0x2102, 0x2102,
+ 0x2107, 0x2107,
+ 0x210a, 0x2113,
+ 0x2115, 0x2115,
+ 0x2119, 0x211d,
+ 0x2124, 0x2124,
+ 0x2128, 0x2129,
+ 0x212c, 0x212d,
+ 0x212f, 0x2131,
+ 0x2133, 0x2138,
+ 0x213c, 0x213f,
+ 0x2145, 0x2149,
+ 0x2195, 0x2199,
+ 0x219c, 0x219f,
+ 0x21a1, 0x21a2,
+ 0x21a4, 0x21a5,
+ 0x21a7, 0x21a7,
+ 0x21a9, 0x21ad,
+ 0x21b0, 0x21b1,
+ 0x21b6, 0x21b7,
+ 0x21bc, 0x21cd,
+ 0x21d0, 0x21d1,
+ 0x21d3, 0x21d3,
+ 0x21d5, 0x21db,
+ 0x21dd, 0x21dd,
+ 0x21e4, 0x21e5,
+ 0x23b4, 0x23b5,
+ 0x23b7, 0x23b7,
+ 0x23d0, 0x23d0,
+ 0x23e2, 0x23e2,
+ 0x25a0, 0x25a1,
+ 0x25ae, 0x25b6,
+ 0x25bc, 0x25c0,
+ 0x25c6, 0x25c7,
+ 0x25ca, 0x25cb,
+ 0x25cf, 0x25d3,
+ 0x25e2, 0x25e2,
+ 0x25e4, 0x25e4,
+ 0x25e7, 0x25ec,
+ 0x2605, 0x2606,
+ 0x2640, 0x2640,
+ 0x2642, 0x2642,
+ 0x2660, 0x2663,
+ 0x266d, 0x266e,
+ 0x27c5, 0x27c6,
+ 0x27e6, 0x27ef,
+ 0x2983, 0x2998,
+ 0x29d8, 0x29db,
+ 0x29fc, 0x29fd,
+ 0xfe61, 0xfe61,
+ 0xfe63, 0xfe63,
+ 0xfe68, 0xfe68,
+ 0xff3c, 0xff3c,
+ 0xff3e, 0xff3e,
+ 0x1d400, 0x1d454,
+ 0x1d456, 0x1d49c,
+ 0x1d49e, 0x1d49f,
+ 0x1d4a2, 0x1d4a2,
+ 0x1d4a5, 0x1d4a6,
+ 0x1d4a9, 0x1d4ac,
+ 0x1d4ae, 0x1d4b9,
+ 0x1d4bb, 0x1d4bb,
+ 0x1d4bd, 0x1d4c3,
+ 0x1d4c5, 0x1d505,
+ 0x1d507, 0x1d50a,
+ 0x1d50d, 0x1d514,
+ 0x1d516, 0x1d51c,
+ 0x1d51e, 0x1d539,
+ 0x1d53b, 0x1d53e,
+ 0x1d540, 0x1d544,
+ 0x1d546, 0x1d546,
+ 0x1d54a, 0x1d550,
+ 0x1d552, 0x1d6a5,
+ 0x1d6a8, 0x1d6c0,
+ 0x1d6c2, 0x1d6da,
+ 0x1d6dc, 0x1d6fa,
+ 0x1d6fc, 0x1d714,
+ 0x1d716, 0x1d734,
+ 0x1d736, 0x1d74e,
+ 0x1d750, 0x1d76e,
+ 0x1d770, 0x1d788,
+ 0x1d78a, 0x1d7a8,
+ 0x1d7aa, 0x1d7c2,
+ 0x1d7c4, 0x1d7cb,
+ 0x1d7ce, 0x1d7ff,
+}; /* CR_Other_Math */
+
+/* 'Hex_Digit': Binary Property */
+static const OnigCodePoint CR_Hex_Digit[] = {
+ 6,
+ 0x0030, 0x0039,
+ 0x0041, 0x0046,
+ 0x0061, 0x0066,
+ 0xff10, 0xff19,
+ 0xff21, 0xff26,
+ 0xff41, 0xff46,
+}; /* CR_Hex_Digit */
+
+/* 'ASCII_Hex_Digit': Binary Property */
+static const OnigCodePoint CR_ASCII_Hex_Digit[] = {
+ 3,
+ 0x0030, 0x0039,
+ 0x0041, 0x0046,
+ 0x0061, 0x0066,
+}; /* CR_ASCII_Hex_Digit */
+
+/* 'Other_Alphabetic': Binary Property */
+static const OnigCodePoint CR_Other_Alphabetic[] = {
+ 145,
+ 0x0345, 0x0345,
+ 0x05b0, 0x05bd,
+ 0x05bf, 0x05bf,
+ 0x05c1, 0x05c2,
+ 0x05c4, 0x05c5,
+ 0x05c7, 0x05c7,
+ 0x0610, 0x061a,
+ 0x064b, 0x0657,
+ 0x0659, 0x065f,
+ 0x0670, 0x0670,
+ 0x06d6, 0x06dc,
+ 0x06e1, 0x06e4,
+ 0x06e7, 0x06e8,
+ 0x06ed, 0x06ed,
+ 0x0711, 0x0711,
+ 0x0730, 0x073f,
+ 0x07a6, 0x07b0,
+ 0x0816, 0x0817,
+ 0x081b, 0x0823,
+ 0x0825, 0x0827,
+ 0x0829, 0x082c,
+ 0x0900, 0x0903,
+ 0x093a, 0x093b,
+ 0x093e, 0x094c,
+ 0x094e, 0x094f,
+ 0x0955, 0x0957,
+ 0x0962, 0x0963,
+ 0x0981, 0x0983,
+ 0x09be, 0x09c4,
+ 0x09c7, 0x09c8,
+ 0x09cb, 0x09cc,
+ 0x09d7, 0x09d7,
+ 0x09e2, 0x09e3,
+ 0x0a01, 0x0a03,
+ 0x0a3e, 0x0a42,
+ 0x0a47, 0x0a48,
+ 0x0a4b, 0x0a4c,
+ 0x0a51, 0x0a51,
+ 0x0a70, 0x0a71,
+ 0x0a75, 0x0a75,
+ 0x0a81, 0x0a83,
+ 0x0abe, 0x0ac5,
+ 0x0ac7, 0x0ac9,
+ 0x0acb, 0x0acc,
+ 0x0ae2, 0x0ae3,
+ 0x0b01, 0x0b03,
+ 0x0b3e, 0x0b44,
+ 0x0b47, 0x0b48,
+ 0x0b4b, 0x0b4c,
+ 0x0b56, 0x0b57,
+ 0x0b62, 0x0b63,
+ 0x0b82, 0x0b82,
+ 0x0bbe, 0x0bc2,
+ 0x0bc6, 0x0bc8,
+ 0x0bca, 0x0bcc,
+ 0x0bd7, 0x0bd7,
+ 0x0c01, 0x0c03,
+ 0x0c3e, 0x0c44,
+ 0x0c46, 0x0c48,
+ 0x0c4a, 0x0c4c,
+ 0x0c55, 0x0c56,
+ 0x0c62, 0x0c63,
+ 0x0c82, 0x0c83,
+ 0x0cbe, 0x0cc4,
+ 0x0cc6, 0x0cc8,
+ 0x0cca, 0x0ccc,
+ 0x0cd5, 0x0cd6,
+ 0x0ce2, 0x0ce3,
+ 0x0d02, 0x0d03,
+ 0x0d3e, 0x0d44,
+ 0x0d46, 0x0d48,
+ 0x0d4a, 0x0d4c,
+ 0x0d57, 0x0d57,
+ 0x0d62, 0x0d63,
+ 0x0d82, 0x0d83,
+ 0x0dcf, 0x0dd4,
+ 0x0dd6, 0x0dd6,
+ 0x0dd8, 0x0ddf,
+ 0x0df2, 0x0df3,
+ 0x0e31, 0x0e31,
+ 0x0e34, 0x0e3a,
+ 0x0e4d, 0x0e4d,
+ 0x0eb1, 0x0eb1,
+ 0x0eb4, 0x0eb9,
+ 0x0ebb, 0x0ebc,
+ 0x0ecd, 0x0ecd,
+ 0x0f71, 0x0f81,
+ 0x0f8d, 0x0f97,
+ 0x0f99, 0x0fbc,
+ 0x102b, 0x1036,
+ 0x1038, 0x1038,
+ 0x103b, 0x103e,
+ 0x1056, 0x1059,
+ 0x105e, 0x1060,
+ 0x1062, 0x1062,
+ 0x1067, 0x1068,
+ 0x1071, 0x1074,
+ 0x1082, 0x1086,
+ 0x109c, 0x109d,
+ 0x135f, 0x135f,
+ 0x1712, 0x1713,
+ 0x1732, 0x1733,
+ 0x1752, 0x1753,
+ 0x1772, 0x1773,
+ 0x17b6, 0x17c8,
+ 0x18a9, 0x18a9,
+ 0x1920, 0x192b,
+ 0x1930, 0x1938,
+ 0x19b0, 0x19c0,
+ 0x19c8, 0x19c9,
+ 0x1a17, 0x1a1b,
+ 0x1a55, 0x1a5e,
+ 0x1a61, 0x1a74,
+ 0x1b00, 0x1b04,
+ 0x1b35, 0x1b43,
+ 0x1b80, 0x1b82,
+ 0x1ba1, 0x1ba9,
+ 0x1be7, 0x1bf1,
+ 0x1c24, 0x1c35,
+ 0x1cf2, 0x1cf2,
+ 0x24b6, 0x24e9,
+ 0x2de0, 0x2dff,
+ 0xa823, 0xa827,
+ 0xa880, 0xa881,
+ 0xa8b4, 0xa8c3,
+ 0xa926, 0xa92a,
+ 0xa947, 0xa952,
+ 0xa980, 0xa983,
+ 0xa9b4, 0xa9bf,
+ 0xaa29, 0xaa36,
+ 0xaa43, 0xaa43,
+ 0xaa4c, 0xaa4d,
+ 0xaab0, 0xaab0,
+ 0xaab2, 0xaab4,
+ 0xaab7, 0xaab8,
+ 0xaabe, 0xaabe,
+ 0xabe3, 0xabea,
+ 0xfb1e, 0xfb1e,
+ 0x10a01, 0x10a03,
+ 0x10a05, 0x10a06,
+ 0x10a0c, 0x10a0f,
+ 0x11000, 0x11002,
+ 0x11038, 0x11045,
+ 0x11082, 0x11082,
+ 0x110b0, 0x110b8,
+}; /* CR_Other_Alphabetic */
+
+/* 'Ideographic': Binary Property */
+static const OnigCodePoint CR_Ideographic[] = {
+ 12,
+ 0x3006, 0x3007,
+ 0x3021, 0x3029,
+ 0x3038, 0x303a,
+ 0x3400, 0x4db5,
+ 0x4e00, 0x9fcb,
+ 0xf900, 0xfa2d,
+ 0xfa30, 0xfa6d,
+ 0xfa70, 0xfad9,
+ 0x20000, 0x2a6d6,
+ 0x2a700, 0x2b734,
+ 0x2b740, 0x2b81d,
+ 0x2f800, 0x2fa1d,
+}; /* CR_Ideographic */
+
+/* 'Diacritic': Binary Property */
+static const OnigCodePoint CR_Diacritic[] = {
+ 117,
+ 0x005e, 0x005e,
+ 0x0060, 0x0060,
+ 0x00a8, 0x00a8,
+ 0x00af, 0x00af,
+ 0x00b4, 0x00b4,
+ 0x00b7, 0x00b8,
+ 0x02b0, 0x034e,
+ 0x0350, 0x0357,
+ 0x035d, 0x0362,
+ 0x0374, 0x0375,
+ 0x037a, 0x037a,
+ 0x0384, 0x0385,
+ 0x0483, 0x0487,
+ 0x0559, 0x0559,
+ 0x0591, 0x05a1,
+ 0x05a3, 0x05bd,
+ 0x05bf, 0x05bf,
+ 0x05c1, 0x05c2,
+ 0x05c4, 0x05c4,
+ 0x064b, 0x0652,
+ 0x0657, 0x0658,
+ 0x06df, 0x06e0,
+ 0x06e5, 0x06e6,
+ 0x06ea, 0x06ec,
+ 0x0730, 0x074a,
+ 0x07a6, 0x07b0,
+ 0x07eb, 0x07f5,
+ 0x0818, 0x0819,
+ 0x093c, 0x093c,
+ 0x094d, 0x094d,
+ 0x0951, 0x0954,
+ 0x0971, 0x0971,
+ 0x09bc, 0x09bc,
+ 0x09cd, 0x09cd,
+ 0x0a3c, 0x0a3c,
+ 0x0a4d, 0x0a4d,
+ 0x0abc, 0x0abc,
+ 0x0acd, 0x0acd,
+ 0x0b3c, 0x0b3c,
+ 0x0b4d, 0x0b4d,
+ 0x0bcd, 0x0bcd,
+ 0x0c4d, 0x0c4d,
+ 0x0cbc, 0x0cbc,
+ 0x0ccd, 0x0ccd,
+ 0x0d4d, 0x0d4d,
+ 0x0dca, 0x0dca,
+ 0x0e47, 0x0e4c,
+ 0x0e4e, 0x0e4e,
+ 0x0ec8, 0x0ecc,
+ 0x0f18, 0x0f19,
+ 0x0f35, 0x0f35,
+ 0x0f37, 0x0f37,
+ 0x0f39, 0x0f39,
+ 0x0f3e, 0x0f3f,
+ 0x0f82, 0x0f84,
+ 0x0f86, 0x0f87,
+ 0x0fc6, 0x0fc6,
+ 0x1037, 0x1037,
+ 0x1039, 0x103a,
+ 0x1087, 0x108d,
+ 0x108f, 0x108f,
+ 0x109a, 0x109b,
+ 0x17c9, 0x17d3,
+ 0x17dd, 0x17dd,
+ 0x1939, 0x193b,
+ 0x1a75, 0x1a7c,
+ 0x1a7f, 0x1a7f,
+ 0x1b34, 0x1b34,
+ 0x1b44, 0x1b44,
+ 0x1b6b, 0x1b73,
+ 0x1baa, 0x1baa,
+ 0x1c36, 0x1c37,
+ 0x1c78, 0x1c7d,
+ 0x1cd0, 0x1ce8,
+ 0x1ced, 0x1ced,
+ 0x1d2c, 0x1d6a,
+ 0x1dc4, 0x1dcf,
+ 0x1dfd, 0x1dff,
+ 0x1fbd, 0x1fbd,
+ 0x1fbf, 0x1fc1,
+ 0x1fcd, 0x1fcf,
+ 0x1fdd, 0x1fdf,
+ 0x1fed, 0x1fef,
+ 0x1ffd, 0x1ffe,
+ 0x2cef, 0x2cf1,
+ 0x2e2f, 0x2e2f,
+ 0x302a, 0x302f,
+ 0x3099, 0x309c,
+ 0x30fc, 0x30fc,
+ 0xa66f, 0xa66f,
+ 0xa67c, 0xa67d,
+ 0xa67f, 0xa67f,
+ 0xa6f0, 0xa6f1,
+ 0xa717, 0xa721,
+ 0xa788, 0xa788,
+ 0xa8c4, 0xa8c4,
+ 0xa8e0, 0xa8f1,
+ 0xa92b, 0xa92e,
+ 0xa953, 0xa953,
+ 0xa9b3, 0xa9b3,
+ 0xa9c0, 0xa9c0,
+ 0xaa7b, 0xaa7b,
+ 0xaabf, 0xaac2,
+ 0xabec, 0xabed,
+ 0xfb1e, 0xfb1e,
+ 0xfe20, 0xfe26,
+ 0xff3e, 0xff3e,
+ 0xff40, 0xff40,
+ 0xff70, 0xff70,
+ 0xff9e, 0xff9f,
+ 0xffe3, 0xffe3,
+ 0x110b9, 0x110ba,
+ 0x1d167, 0x1d169,
+ 0x1d16d, 0x1d172,
+ 0x1d17b, 0x1d182,
+ 0x1d185, 0x1d18b,
+ 0x1d1aa, 0x1d1ad,
+}; /* CR_Diacritic */
+
+/* 'Extender': Binary Property */
+static const OnigCodePoint CR_Extender[] = {
+ 20,
+ 0x00b7, 0x00b7,
+ 0x02d0, 0x02d1,
+ 0x0640, 0x0640,
+ 0x07fa, 0x07fa,
+ 0x0e46, 0x0e46,
+ 0x0ec6, 0x0ec6,
+ 0x1843, 0x1843,
+ 0x1aa7, 0x1aa7,
+ 0x1c36, 0x1c36,
+ 0x1c7b, 0x1c7b,
+ 0x3005, 0x3005,
+ 0x3031, 0x3035,
+ 0x309d, 0x309e,
+ 0x30fc, 0x30fe,
+ 0xa015, 0xa015,
+ 0xa60c, 0xa60c,
+ 0xa9cf, 0xa9cf,
+ 0xaa70, 0xaa70,
+ 0xaadd, 0xaadd,
+ 0xff70, 0xff70,
+}; /* CR_Extender */
+
+/* 'Other_Lowercase': Binary Property */
+static const OnigCodePoint CR_Other_Lowercase[] = {
+ 13,
+ 0x02b0, 0x02b8,
+ 0x02c0, 0x02c1,
+ 0x02e0, 0x02e4,
+ 0x0345, 0x0345,
+ 0x037a, 0x037a,
+ 0x1d2c, 0x1d61,
+ 0x1d78, 0x1d78,
+ 0x1d9b, 0x1dbf,
+ 0x2090, 0x2094,
+ 0x2170, 0x217f,
+ 0x24d0, 0x24e9,
+ 0x2c7d, 0x2c7d,
+ 0xa770, 0xa770,
+}; /* CR_Other_Lowercase */
+
+/* 'Other_Uppercase': Binary Property */
+static const OnigCodePoint CR_Other_Uppercase[] = {
+ 2,
+ 0x2160, 0x216f,
+ 0x24b6, 0x24cf,
+}; /* CR_Other_Uppercase */
+
+/* 'Noncharacter_Code_Point': Binary Property */
+static const OnigCodePoint CR_Noncharacter_Code_Point[] = {
+ 18,
+ 0xfdd0, 0xfdef,
+ 0xfffe, 0xffff,
+ 0x1fffe, 0x1ffff,
+ 0x2fffe, 0x2ffff,
+ 0x3fffe, 0x3ffff,
+ 0x4fffe, 0x4ffff,
+ 0x5fffe, 0x5ffff,
+ 0x6fffe, 0x6ffff,
+ 0x7fffe, 0x7ffff,
+ 0x8fffe, 0x8ffff,
+ 0x9fffe, 0x9ffff,
+ 0xafffe, 0xaffff,
+ 0xbfffe, 0xbffff,
+ 0xcfffe, 0xcffff,
+ 0xdfffe, 0xdffff,
+ 0xefffe, 0xeffff,
+ 0xffffe, 0xfffff,
+ 0x10fffe, 0x10ffff,
+}; /* CR_Noncharacter_Code_Point */
+
+/* 'Other_Grapheme_Extend': Binary Property */
+static const OnigCodePoint CR_Other_Grapheme_Extend[] = {
+ 16,
+ 0x09be, 0x09be,
+ 0x09d7, 0x09d7,
+ 0x0b3e, 0x0b3e,
+ 0x0b57, 0x0b57,
+ 0x0bbe, 0x0bbe,
+ 0x0bd7, 0x0bd7,
+ 0x0cc2, 0x0cc2,
+ 0x0cd5, 0x0cd6,
+ 0x0d3e, 0x0d3e,
+ 0x0d57, 0x0d57,
+ 0x0dcf, 0x0dcf,
+ 0x0ddf, 0x0ddf,
+ 0x200c, 0x200d,
+ 0xff9e, 0xff9f,
+ 0x1d165, 0x1d165,
+ 0x1d16e, 0x1d172,
+}; /* CR_Other_Grapheme_Extend */
+
+/* 'IDS_Binary_Operator': Binary Property */
+static const OnigCodePoint CR_IDS_Binary_Operator[] = {
+ 2,
+ 0x2ff0, 0x2ff1,
+ 0x2ff4, 0x2ffb,
+}; /* CR_IDS_Binary_Operator */
+
+/* 'IDS_Trinary_Operator': Binary Property */
+static const OnigCodePoint CR_IDS_Trinary_Operator[] = {
+ 1,
+ 0x2ff2, 0x2ff3,
+}; /* CR_IDS_Trinary_Operator */
+
+/* 'Radical': Binary Property */
+static const OnigCodePoint CR_Radical[] = {
+ 3,
+ 0x2e80, 0x2e99,
+ 0x2e9b, 0x2ef3,
+ 0x2f00, 0x2fd5,
+}; /* CR_Radical */
+
+/* 'Unified_Ideograph': Binary Property */
+static const OnigCodePoint CR_Unified_Ideograph[] = {
+ 12,
+ 0x3400, 0x4db5,
+ 0x4e00, 0x9fcb,
+ 0xfa0e, 0xfa0f,
+ 0xfa11, 0xfa11,
+ 0xfa13, 0xfa14,
+ 0xfa1f, 0xfa1f,
+ 0xfa21, 0xfa21,
+ 0xfa23, 0xfa24,
+ 0xfa27, 0xfa29,
+ 0x20000, 0x2a6d6,
+ 0x2a700, 0x2b734,
+ 0x2b740, 0x2b81d,
+}; /* CR_Unified_Ideograph */
+
+/* 'Other_Default_Ignorable_Code_Point': Binary Property */
+static const OnigCodePoint CR_Other_Default_Ignorable_Code_Point[] = {
+ 10,
+ 0x034f, 0x034f,
+ 0x115f, 0x1160,
+ 0x2065, 0x2069,
+ 0x3164, 0x3164,
+ 0xffa0, 0xffa0,
+ 0xfff0, 0xfff8,
+ 0xe0000, 0xe0000,
+ 0xe0002, 0xe001f,
+ 0xe0080, 0xe00ff,
+ 0xe01f0, 0xe0fff,
+}; /* CR_Other_Default_Ignorable_Code_Point */
+
+/* 'Deprecated': Binary Property */
+static const OnigCodePoint CR_Deprecated[] = {
+ 9,
+ 0x0149, 0x0149,
+ 0x0673, 0x0673,
+ 0x0f77, 0x0f77,
+ 0x0f79, 0x0f79,
+ 0x17a3, 0x17a4,
+ 0x206a, 0x206f,
+ 0x2329, 0x232a,
+ 0xe0001, 0xe0001,
+ 0xe0020, 0xe007f,
+}; /* CR_Deprecated */
+
+/* 'Soft_Dotted': Binary Property */
+static const OnigCodePoint CR_Soft_Dotted[] = {
+ 31,
+ 0x0069, 0x006a,
+ 0x012f, 0x012f,
+ 0x0249, 0x0249,
+ 0x0268, 0x0268,
+ 0x029d, 0x029d,
+ 0x02b2, 0x02b2,
+ 0x03f3, 0x03f3,
+ 0x0456, 0x0456,
+ 0x0458, 0x0458,
+ 0x1d62, 0x1d62,
+ 0x1d96, 0x1d96,
+ 0x1da4, 0x1da4,
+ 0x1da8, 0x1da8,
+ 0x1e2d, 0x1e2d,
+ 0x1ecb, 0x1ecb,
+ 0x2071, 0x2071,
+ 0x2148, 0x2149,
+ 0x2c7c, 0x2c7c,
+ 0x1d422, 0x1d423,
+ 0x1d456, 0x1d457,
+ 0x1d48a, 0x1d48b,
+ 0x1d4be, 0x1d4bf,
+ 0x1d4f2, 0x1d4f3,
+ 0x1d526, 0x1d527,
+ 0x1d55a, 0x1d55b,
+ 0x1d58e, 0x1d58f,
+ 0x1d5c2, 0x1d5c3,
+ 0x1d5f6, 0x1d5f7,
+ 0x1d62a, 0x1d62b,
+ 0x1d65e, 0x1d65f,
+ 0x1d692, 0x1d693,
+}; /* CR_Soft_Dotted */
+
+/* 'Logical_Order_Exception': Binary Property */
+static const OnigCodePoint CR_Logical_Order_Exception[] = {
+ 5,
+ 0x0e40, 0x0e44,
+ 0x0ec0, 0x0ec4,
+ 0xaab5, 0xaab6,
+ 0xaab9, 0xaab9,
+ 0xaabb, 0xaabc,
+}; /* CR_Logical_Order_Exception */
+
+/* 'Other_ID_Start': Binary Property */
+static const OnigCodePoint CR_Other_ID_Start[] = {
+ 3,
+ 0x2118, 0x2118,
+ 0x212e, 0x212e,
+ 0x309b, 0x309c,
+}; /* CR_Other_ID_Start */
+
+/* 'Other_ID_Continue': Binary Property */
+static const OnigCodePoint CR_Other_ID_Continue[] = {
+ 4,
+ 0x00b7, 0x00b7,
+ 0x0387, 0x0387,
+ 0x1369, 0x1371,
+ 0x19da, 0x19da,
+}; /* CR_Other_ID_Continue */
+
+/* 'STerm': Binary Property */
+static const OnigCodePoint CR_STerm[] = {
+ 47,
+ 0x0021, 0x0021,
+ 0x002e, 0x002e,
+ 0x003f, 0x003f,
+ 0x055c, 0x055c,
+ 0x055e, 0x055e,
+ 0x0589, 0x0589,
+ 0x061f, 0x061f,
+ 0x06d4, 0x06d4,
+ 0x0700, 0x0702,
+ 0x07f9, 0x07f9,
+ 0x0964, 0x0965,
+ 0x104a, 0x104b,
+ 0x1362, 0x1362,
+ 0x1367, 0x1368,
+ 0x166e, 0x166e,
+ 0x1735, 0x1736,
+ 0x1803, 0x1803,
+ 0x1809, 0x1809,
+ 0x1944, 0x1945,
+ 0x1aa8, 0x1aab,
+ 0x1b5a, 0x1b5b,
+ 0x1b5e, 0x1b5f,
+ 0x1c3b, 0x1c3c,
+ 0x1c7e, 0x1c7f,
+ 0x203c, 0x203d,
+ 0x2047, 0x2049,
+ 0x2e2e, 0x2e2e,
+ 0x3002, 0x3002,
+ 0xa4ff, 0xa4ff,
+ 0xa60e, 0xa60f,
+ 0xa6f3, 0xa6f3,
+ 0xa6f7, 0xa6f7,
+ 0xa876, 0xa877,
+ 0xa8ce, 0xa8cf,
+ 0xa92f, 0xa92f,
+ 0xa9c8, 0xa9c9,
+ 0xaa5d, 0xaa5f,
+ 0xabeb, 0xabeb,
+ 0xfe52, 0xfe52,
+ 0xfe56, 0xfe57,
+ 0xff01, 0xff01,
+ 0xff0e, 0xff0e,
+ 0xff1f, 0xff1f,
+ 0xff61, 0xff61,
+ 0x10a56, 0x10a57,
+ 0x11047, 0x11048,
+ 0x110be, 0x110c1,
+}; /* CR_STerm */
+
+/* 'Variation_Selector': Binary Property */
+static const OnigCodePoint CR_Variation_Selector[] = {
+ 3,
+ 0x180b, 0x180d,
+ 0xfe00, 0xfe0f,
+ 0xe0100, 0xe01ef,
+}; /* CR_Variation_Selector */
+
+/* 'Pattern_White_Space': Binary Property */
+static const OnigCodePoint CR_Pattern_White_Space[] = {
+ 5,
+ 0x0009, 0x000d,
+ 0x0020, 0x0020,
+ 0x0085, 0x0085,
+ 0x200e, 0x200f,
+ 0x2028, 0x2029,
+}; /* CR_Pattern_White_Space */
+
+/* 'Pattern_Syntax': Binary Property */
+static const OnigCodePoint CR_Pattern_Syntax[] = {
+ 28,
+ 0x0021, 0x002f,
+ 0x003a, 0x0040,
+ 0x005b, 0x005e,
+ 0x0060, 0x0060,
+ 0x007b, 0x007e,
+ 0x00a1, 0x00a7,
+ 0x00a9, 0x00a9,
+ 0x00ab, 0x00ac,
+ 0x00ae, 0x00ae,
+ 0x00b0, 0x00b1,
+ 0x00b6, 0x00b6,
+ 0x00bb, 0x00bb,
+ 0x00bf, 0x00bf,
+ 0x00d7, 0x00d7,
+ 0x00f7, 0x00f7,
+ 0x2010, 0x2027,
+ 0x2030, 0x203e,
+ 0x2041, 0x2053,
+ 0x2055, 0x205e,
+ 0x2190, 0x245f,
+ 0x2500, 0x2775,
+ 0x2794, 0x2bff,
+ 0x2e00, 0x2e7f,
+ 0x3001, 0x3003,
+ 0x3008, 0x3020,
+ 0x3030, 0x3030,
+ 0xfd3e, 0xfd3f,
+ 0xfe45, 0xfe46,
+}; /* CR_Pattern_Syntax */
+
+/* 'Unknown': Script */
+static const OnigCodePoint CR_Unknown[] = {
+ 499,
+ 0x0378, 0x0379,
+ 0x037f, 0x0383,
+ 0x038b, 0x038b,
+ 0x038d, 0x038d,
+ 0x03a2, 0x03a2,
+ 0x0528, 0x0530,
+ 0x0557, 0x0558,
+ 0x0560, 0x0560,
+ 0x0588, 0x0588,
+ 0x058b, 0x0590,
+ 0x05c8, 0x05cf,
+ 0x05eb, 0x05ef,
+ 0x05f5, 0x05ff,
+ 0x0604, 0x0605,
+ 0x061c, 0x061d,
+ 0x070e, 0x070e,
+ 0x074b, 0x074c,
+ 0x07b2, 0x07bf,
+ 0x07fb, 0x07ff,
+ 0x082e, 0x082f,
+ 0x083f, 0x083f,
+ 0x085c, 0x085d,
+ 0x085f, 0x08ff,
+ 0x0978, 0x0978,
+ 0x0980, 0x0980,
+ 0x0984, 0x0984,
+ 0x098d, 0x098e,
+ 0x0991, 0x0992,
+ 0x09a9, 0x09a9,
+ 0x09b1, 0x09b1,
+ 0x09b3, 0x09b5,
+ 0x09ba, 0x09bb,
+ 0x09c5, 0x09c6,
+ 0x09c9, 0x09ca,
+ 0x09cf, 0x09d6,
+ 0x09d8, 0x09db,
+ 0x09de, 0x09de,
+ 0x09e4, 0x09e5,
+ 0x09fc, 0x0a00,
+ 0x0a04, 0x0a04,
+ 0x0a0b, 0x0a0e,
+ 0x0a11, 0x0a12,
+ 0x0a29, 0x0a29,
+ 0x0a31, 0x0a31,
+ 0x0a34, 0x0a34,
+ 0x0a37, 0x0a37,
+ 0x0a3a, 0x0a3b,
+ 0x0a3d, 0x0a3d,
+ 0x0a43, 0x0a46,
+ 0x0a49, 0x0a4a,
+ 0x0a4e, 0x0a50,
+ 0x0a52, 0x0a58,
+ 0x0a5d, 0x0a5d,
+ 0x0a5f, 0x0a65,
+ 0x0a76, 0x0a80,
+ 0x0a84, 0x0a84,
+ 0x0a8e, 0x0a8e,
+ 0x0a92, 0x0a92,
+ 0x0aa9, 0x0aa9,
+ 0x0ab1, 0x0ab1,
+ 0x0ab4, 0x0ab4,
+ 0x0aba, 0x0abb,
+ 0x0ac6, 0x0ac6,
+ 0x0aca, 0x0aca,
+ 0x0ace, 0x0acf,
+ 0x0ad1, 0x0adf,
+ 0x0ae4, 0x0ae5,
+ 0x0af0, 0x0af0,
+ 0x0af2, 0x0b00,
+ 0x0b04, 0x0b04,
+ 0x0b0d, 0x0b0e,
+ 0x0b11, 0x0b12,
+ 0x0b29, 0x0b29,
+ 0x0b31, 0x0b31,
+ 0x0b34, 0x0b34,
+ 0x0b3a, 0x0b3b,
+ 0x0b45, 0x0b46,
+ 0x0b49, 0x0b4a,
+ 0x0b4e, 0x0b55,
+ 0x0b58, 0x0b5b,
+ 0x0b5e, 0x0b5e,
+ 0x0b64, 0x0b65,
+ 0x0b78, 0x0b81,
+ 0x0b84, 0x0b84,
+ 0x0b8b, 0x0b8d,
+ 0x0b91, 0x0b91,
+ 0x0b96, 0x0b98,
+ 0x0b9b, 0x0b9b,
+ 0x0b9d, 0x0b9d,
+ 0x0ba0, 0x0ba2,
+ 0x0ba5, 0x0ba7,
+ 0x0bab, 0x0bad,
+ 0x0bba, 0x0bbd,
+ 0x0bc3, 0x0bc5,
+ 0x0bc9, 0x0bc9,
+ 0x0bce, 0x0bcf,
+ 0x0bd1, 0x0bd6,
+ 0x0bd8, 0x0be5,
+ 0x0bfb, 0x0c00,
+ 0x0c04, 0x0c04,
+ 0x0c0d, 0x0c0d,
+ 0x0c11, 0x0c11,
+ 0x0c29, 0x0c29,
+ 0x0c34, 0x0c34,
+ 0x0c3a, 0x0c3c,
+ 0x0c45, 0x0c45,
+ 0x0c49, 0x0c49,
+ 0x0c4e, 0x0c54,
+ 0x0c57, 0x0c57,
+ 0x0c5a, 0x0c5f,
+ 0x0c64, 0x0c65,
+ 0x0c70, 0x0c77,
+ 0x0c80, 0x0c81,
+ 0x0c84, 0x0c84,
+ 0x0c8d, 0x0c8d,
+ 0x0c91, 0x0c91,
+ 0x0ca9, 0x0ca9,
+ 0x0cb4, 0x0cb4,
+ 0x0cba, 0x0cbb,
+ 0x0cc5, 0x0cc5,
+ 0x0cc9, 0x0cc9,
+ 0x0cce, 0x0cd4,
+ 0x0cd7, 0x0cdd,
+ 0x0cdf, 0x0cdf,
+ 0x0ce4, 0x0ce5,
+ 0x0cf0, 0x0cf0,
+ 0x0cf3, 0x0d01,
+ 0x0d04, 0x0d04,
+ 0x0d0d, 0x0d0d,
+ 0x0d11, 0x0d11,
+ 0x0d3b, 0x0d3c,
+ 0x0d45, 0x0d45,
+ 0x0d49, 0x0d49,
+ 0x0d4f, 0x0d56,
+ 0x0d58, 0x0d5f,
+ 0x0d64, 0x0d65,
+ 0x0d76, 0x0d78,
+ 0x0d80, 0x0d81,
+ 0x0d84, 0x0d84,
+ 0x0d97, 0x0d99,
+ 0x0db2, 0x0db2,
+ 0x0dbc, 0x0dbc,
+ 0x0dbe, 0x0dbf,
+ 0x0dc7, 0x0dc9,
+ 0x0dcb, 0x0dce,
+ 0x0dd5, 0x0dd5,
+ 0x0dd7, 0x0dd7,
+ 0x0de0, 0x0df1,
+ 0x0df5, 0x0e00,
+ 0x0e3b, 0x0e3e,
+ 0x0e5c, 0x0e80,
+ 0x0e83, 0x0e83,
+ 0x0e85, 0x0e86,
+ 0x0e89, 0x0e89,
+ 0x0e8b, 0x0e8c,
+ 0x0e8e, 0x0e93,
+ 0x0e98, 0x0e98,
+ 0x0ea0, 0x0ea0,
+ 0x0ea4, 0x0ea4,
+ 0x0ea6, 0x0ea6,
+ 0x0ea8, 0x0ea9,
+ 0x0eac, 0x0eac,
+ 0x0eba, 0x0eba,
+ 0x0ebe, 0x0ebf,
+ 0x0ec5, 0x0ec5,
+ 0x0ec7, 0x0ec7,
+ 0x0ece, 0x0ecf,
+ 0x0eda, 0x0edb,
+ 0x0ede, 0x0eff,
+ 0x0f48, 0x0f48,
+ 0x0f6d, 0x0f70,
+ 0x0f98, 0x0f98,
+ 0x0fbd, 0x0fbd,
+ 0x0fcd, 0x0fcd,
+ 0x0fdb, 0x0fff,
+ 0x10c6, 0x10cf,
+ 0x10fd, 0x10ff,
+ 0x1249, 0x1249,
+ 0x124e, 0x124f,
+ 0x1257, 0x1257,
+ 0x1259, 0x1259,
+ 0x125e, 0x125f,
+ 0x1289, 0x1289,
+ 0x128e, 0x128f,
+ 0x12b1, 0x12b1,
+ 0x12b6, 0x12b7,
+ 0x12bf, 0x12bf,
+ 0x12c1, 0x12c1,
+ 0x12c6, 0x12c7,
+ 0x12d7, 0x12d7,
+ 0x1311, 0x1311,
+ 0x1316, 0x1317,
+ 0x135b, 0x135c,
+ 0x137d, 0x137f,
+ 0x139a, 0x139f,
+ 0x13f5, 0x13ff,
+ 0x169d, 0x169f,
+ 0x16f1, 0x16ff,
+ 0x170d, 0x170d,
+ 0x1715, 0x171f,
+ 0x1737, 0x173f,
+ 0x1754, 0x175f,
+ 0x176d, 0x176d,
+ 0x1771, 0x1771,
+ 0x1774, 0x177f,
+ 0x17de, 0x17df,
+ 0x17ea, 0x17ef,
+ 0x17fa, 0x17ff,
+ 0x180f, 0x180f,
+ 0x181a, 0x181f,
+ 0x1878, 0x187f,
+ 0x18ab, 0x18af,
+ 0x18f6, 0x18ff,
+ 0x191d, 0x191f,
+ 0x192c, 0x192f,
+ 0x193c, 0x193f,
+ 0x1941, 0x1943,
+ 0x196e, 0x196f,
+ 0x1975, 0x197f,
+ 0x19ac, 0x19af,
+ 0x19ca, 0x19cf,
+ 0x19db, 0x19dd,
+ 0x1a1c, 0x1a1d,
+ 0x1a5f, 0x1a5f,
+ 0x1a7d, 0x1a7e,
+ 0x1a8a, 0x1a8f,
+ 0x1a9a, 0x1a9f,
+ 0x1aae, 0x1aff,
+ 0x1b4c, 0x1b4f,
+ 0x1b7d, 0x1b7f,
+ 0x1bab, 0x1bad,
+ 0x1bba, 0x1bbf,
+ 0x1bf4, 0x1bfb,
+ 0x1c38, 0x1c3a,
+ 0x1c4a, 0x1c4c,
+ 0x1c80, 0x1ccf,
+ 0x1cf3, 0x1cff,
+ 0x1de7, 0x1dfb,
+ 0x1f16, 0x1f17,
+ 0x1f1e, 0x1f1f,
+ 0x1f46, 0x1f47,
+ 0x1f4e, 0x1f4f,
+ 0x1f58, 0x1f58,
+ 0x1f5a, 0x1f5a,
+ 0x1f5c, 0x1f5c,
+ 0x1f5e, 0x1f5e,
+ 0x1f7e, 0x1f7f,
+ 0x1fb5, 0x1fb5,
+ 0x1fc5, 0x1fc5,
+ 0x1fd4, 0x1fd5,
+ 0x1fdc, 0x1fdc,
+ 0x1ff0, 0x1ff1,
+ 0x1ff5, 0x1ff5,
+ 0x1fff, 0x1fff,
+ 0x2065, 0x2069,
+ 0x2072, 0x2073,
+ 0x208f, 0x208f,
+ 0x209d, 0x209f,
+ 0x20ba, 0x20cf,
+ 0x20f1, 0x20ff,
+ 0x218a, 0x218f,
+ 0x23f4, 0x23ff,
+ 0x2427, 0x243f,
+ 0x244b, 0x245f,
+ 0x2700, 0x2700,
+ 0x27cb, 0x27cb,
+ 0x27cd, 0x27cd,
+ 0x2b4d, 0x2b4f,
+ 0x2b5a, 0x2bff,
+ 0x2c2f, 0x2c2f,
+ 0x2c5f, 0x2c5f,
+ 0x2cf2, 0x2cf8,
+ 0x2d26, 0x2d2f,
+ 0x2d66, 0x2d6e,
+ 0x2d71, 0x2d7e,
+ 0x2d97, 0x2d9f,
+ 0x2da7, 0x2da7,
+ 0x2daf, 0x2daf,
+ 0x2db7, 0x2db7,
+ 0x2dbf, 0x2dbf,
+ 0x2dc7, 0x2dc7,
+ 0x2dcf, 0x2dcf,
+ 0x2dd7, 0x2dd7,
+ 0x2ddf, 0x2ddf,
+ 0x2e32, 0x2e7f,
+ 0x2e9a, 0x2e9a,
+ 0x2ef4, 0x2eff,
+ 0x2fd6, 0x2fef,
+ 0x2ffc, 0x2fff,
+ 0x3040, 0x3040,
+ 0x3097, 0x3098,
+ 0x3100, 0x3104,
+ 0x312e, 0x3130,
+ 0x318f, 0x318f,
+ 0x31bb, 0x31bf,
+ 0x31e4, 0x31ef,
+ 0x321f, 0x321f,
+ 0x32ff, 0x32ff,
+ 0x4db6, 0x4dbf,
+ 0x9fcc, 0x9fff,
+ 0xa48d, 0xa48f,
+ 0xa4c7, 0xa4cf,
+ 0xa62c, 0xa63f,
+ 0xa674, 0xa67b,
+ 0xa698, 0xa69f,
+ 0xa6f8, 0xa6ff,
+ 0xa78f, 0xa78f,
+ 0xa792, 0xa79f,
+ 0xa7aa, 0xa7f9,
+ 0xa82c, 0xa82f,
+ 0xa83a, 0xa83f,
+ 0xa878, 0xa87f,
+ 0xa8c5, 0xa8cd,
+ 0xa8da, 0xa8df,
+ 0xa8fc, 0xa8ff,
+ 0xa954, 0xa95e,
+ 0xa97d, 0xa97f,
+ 0xa9ce, 0xa9ce,
+ 0xa9da, 0xa9dd,
+ 0xa9e0, 0xa9ff,
+ 0xaa37, 0xaa3f,
+ 0xaa4e, 0xaa4f,
+ 0xaa5a, 0xaa5b,
+ 0xaa7c, 0xaa7f,
+ 0xaac3, 0xaada,
+ 0xaae0, 0xab00,
+ 0xab07, 0xab08,
+ 0xab0f, 0xab10,
+ 0xab17, 0xab1f,
+ 0xab27, 0xab27,
+ 0xab2f, 0xabbf,
+ 0xabee, 0xabef,
+ 0xabfa, 0xabff,
+ 0xd7a4, 0xd7af,
+ 0xd7c7, 0xd7ca,
+ 0xd7fc, 0xf8ff,
+ 0xfa2e, 0xfa2f,
+ 0xfa6e, 0xfa6f,
+ 0xfada, 0xfaff,
+ 0xfb07, 0xfb12,
+ 0xfb18, 0xfb1c,
+ 0xfb37, 0xfb37,
+ 0xfb3d, 0xfb3d,
+ 0xfb3f, 0xfb3f,
+ 0xfb42, 0xfb42,
+ 0xfb45, 0xfb45,
+ 0xfbc2, 0xfbd2,
+ 0xfd40, 0xfd4f,
+ 0xfd90, 0xfd91,
+ 0xfdc8, 0xfdef,
+ 0xfdfe, 0xfdff,
+ 0xfe1a, 0xfe1f,
+ 0xfe27, 0xfe2f,
+ 0xfe53, 0xfe53,
+ 0xfe67, 0xfe67,
+ 0xfe6c, 0xfe6f,
+ 0xfe75, 0xfe75,
+ 0xfefd, 0xfefe,
+ 0xff00, 0xff00,
+ 0xffbf, 0xffc1,
+ 0xffc8, 0xffc9,
+ 0xffd0, 0xffd1,
+ 0xffd8, 0xffd9,
+ 0xffdd, 0xffdf,
+ 0xffe7, 0xffe7,
+ 0xffef, 0xfff8,
+ 0xfffe, 0xffff,
+ 0x1000c, 0x1000c,
+ 0x10027, 0x10027,
+ 0x1003b, 0x1003b,
+ 0x1003e, 0x1003e,
+ 0x1004e, 0x1004f,
+ 0x1005e, 0x1007f,
+ 0x100fb, 0x100ff,
+ 0x10103, 0x10106,
+ 0x10134, 0x10136,
+ 0x1018b, 0x1018f,
+ 0x1019c, 0x101cf,
+ 0x101fe, 0x1027f,
+ 0x1029d, 0x1029f,
+ 0x102d1, 0x102ff,
+ 0x1031f, 0x1031f,
+ 0x10324, 0x1032f,
+ 0x1034b, 0x1037f,
+ 0x1039e, 0x1039e,
+ 0x103c4, 0x103c7,
+ 0x103d6, 0x103ff,
+ 0x1049e, 0x1049f,
+ 0x104aa, 0x107ff,
+ 0x10806, 0x10807,
+ 0x10809, 0x10809,
+ 0x10836, 0x10836,
+ 0x10839, 0x1083b,
+ 0x1083d, 0x1083e,
+ 0x10856, 0x10856,
+ 0x10860, 0x108ff,
+ 0x1091c, 0x1091e,
+ 0x1093a, 0x1093e,
+ 0x10940, 0x109ff,
+ 0x10a04, 0x10a04,
+ 0x10a07, 0x10a0b,
+ 0x10a14, 0x10a14,
+ 0x10a18, 0x10a18,
+ 0x10a34, 0x10a37,
+ 0x10a3b, 0x10a3e,
+ 0x10a48, 0x10a4f,
+ 0x10a59, 0x10a5f,
+ 0x10a80, 0x10aff,
+ 0x10b36, 0x10b38,
+ 0x10b56, 0x10b57,
+ 0x10b73, 0x10b77,
+ 0x10b80, 0x10bff,
+ 0x10c49, 0x10e5f,
+ 0x10e7f, 0x10fff,
+ 0x1104e, 0x11051,
+ 0x11070, 0x1107f,
+ 0x110c2, 0x11fff,
+ 0x1236f, 0x123ff,
+ 0x12463, 0x1246f,
+ 0x12474, 0x12fff,
+ 0x1342f, 0x167ff,
+ 0x16a39, 0x1afff,
+ 0x1b002, 0x1cfff,
+ 0x1d0f6, 0x1d0ff,
+ 0x1d127, 0x1d128,
+ 0x1d1de, 0x1d1ff,
+ 0x1d246, 0x1d2ff,
+ 0x1d357, 0x1d35f,
+ 0x1d372, 0x1d3ff,
+ 0x1d455, 0x1d455,
+ 0x1d49d, 0x1d49d,
+ 0x1d4a0, 0x1d4a1,
+ 0x1d4a3, 0x1d4a4,
+ 0x1d4a7, 0x1d4a8,
+ 0x1d4ad, 0x1d4ad,
+ 0x1d4ba, 0x1d4ba,
+ 0x1d4bc, 0x1d4bc,
+ 0x1d4c4, 0x1d4c4,
+ 0x1d506, 0x1d506,
+ 0x1d50b, 0x1d50c,
+ 0x1d515, 0x1d515,
+ 0x1d51d, 0x1d51d,
+ 0x1d53a, 0x1d53a,
+ 0x1d53f, 0x1d53f,
+ 0x1d545, 0x1d545,
+ 0x1d547, 0x1d549,
+ 0x1d551, 0x1d551,
+ 0x1d6a6, 0x1d6a7,
+ 0x1d7cc, 0x1d7cd,
+ 0x1d800, 0x1efff,
+ 0x1f02c, 0x1f02f,
+ 0x1f094, 0x1f09f,
+ 0x1f0af, 0x1f0b0,
+ 0x1f0bf, 0x1f0c0,
+ 0x1f0d0, 0x1f0d0,
+ 0x1f0e0, 0x1f0ff,
+ 0x1f10b, 0x1f10f,
+ 0x1f12f, 0x1f12f,
+ 0x1f16a, 0x1f16f,
+ 0x1f19b, 0x1f1e5,
+ 0x1f203, 0x1f20f,
+ 0x1f23b, 0x1f23f,
+ 0x1f249, 0x1f24f,
+ 0x1f252, 0x1f2ff,
+ 0x1f321, 0x1f32f,
+ 0x1f336, 0x1f336,
+ 0x1f37d, 0x1f37f,
+ 0x1f394, 0x1f39f,
+ 0x1f3c5, 0x1f3c5,
+ 0x1f3cb, 0x1f3df,
+ 0x1f3f1, 0x1f3ff,
+ 0x1f43f, 0x1f43f,
+ 0x1f441, 0x1f441,
+ 0x1f4f8, 0x1f4f8,
+ 0x1f4fd, 0x1f4ff,
+ 0x1f53e, 0x1f54f,
+ 0x1f568, 0x1f5fa,
+ 0x1f600, 0x1f600,
+ 0x1f611, 0x1f611,
+ 0x1f615, 0x1f615,
+ 0x1f617, 0x1f617,
+ 0x1f619, 0x1f619,
+ 0x1f61b, 0x1f61b,
+ 0x1f61f, 0x1f61f,
+ 0x1f626, 0x1f627,
+ 0x1f62c, 0x1f62c,
+ 0x1f62e, 0x1f62f,
+ 0x1f634, 0x1f634,
+ 0x1f641, 0x1f644,
+ 0x1f650, 0x1f67f,
+ 0x1f6c6, 0x1f6ff,
+ 0x1f774, 0x1ffff,
+ 0x2a6d7, 0x2a6ff,
+ 0x2b735, 0x2b73f,
+ 0x2b81e, 0x2f7ff,
+ 0x2fa1e, 0xe0000,
+ 0xe0002, 0xe001f,
+ 0xe0080, 0xe00ff,
+ 0xe01f0, 0x10ffff,
+}; /* CR_Unknown */
+#endif /* USE_UNICODE_PROPERTIES */
+#endif /* USE_UNICODE_PROPERTIES */
+
+/* 'Age_1_1': Derived Age 1.1 */
+static const OnigCodePoint CR_Age_1_1[] = {
+ 288,
+ 0x0000, 0x01f5,
+ 0x01fa, 0x0217,
+ 0x0250, 0x02a8,
+ 0x02b0, 0x02de,
+ 0x02e0, 0x02e9,
+ 0x0300, 0x0345,
+ 0x0360, 0x0361,
+ 0x0374, 0x0375,
+ 0x037a, 0x037a,
+ 0x037e, 0x037e,
+ 0x0384, 0x038a,
+ 0x038c, 0x038c,
+ 0x038e, 0x03a1,
+ 0x03a3, 0x03ce,
+ 0x03d0, 0x03d6,
+ 0x03da, 0x03da,
+ 0x03dc, 0x03dc,
+ 0x03de, 0x03de,
+ 0x03e0, 0x03e0,
+ 0x03e2, 0x03f3,
+ 0x0401, 0x040c,
+ 0x040e, 0x044f,
+ 0x0451, 0x045c,
+ 0x045e, 0x0486,
+ 0x0490, 0x04c4,
+ 0x04c7, 0x04c8,
+ 0x04cb, 0x04cc,
+ 0x04d0, 0x04eb,
+ 0x04ee, 0x04f5,
+ 0x04f8, 0x04f9,
+ 0x0531, 0x0556,
+ 0x0559, 0x055f,
+ 0x0561, 0x0587,
+ 0x0589, 0x0589,
+ 0x05b0, 0x05b9,
+ 0x05bb, 0x05c3,
+ 0x05d0, 0x05ea,
+ 0x05f0, 0x05f4,
+ 0x060c, 0x060c,
+ 0x061b, 0x061b,
+ 0x061f, 0x061f,
+ 0x0621, 0x063a,
+ 0x0640, 0x0652,
+ 0x0660, 0x066d,
+ 0x0670, 0x06b7,
+ 0x06ba, 0x06be,
+ 0x06c0, 0x06ce,
+ 0x06d0, 0x06ed,
+ 0x06f0, 0x06f9,
+ 0x0901, 0x0903,
+ 0x0905, 0x0939,
+ 0x093c, 0x094d,
+ 0x0950, 0x0954,
+ 0x0958, 0x0970,
+ 0x0981, 0x0983,
+ 0x0985, 0x098c,
+ 0x098f, 0x0990,
+ 0x0993, 0x09a8,
+ 0x09aa, 0x09b0,
+ 0x09b2, 0x09b2,
+ 0x09b6, 0x09b9,
+ 0x09bc, 0x09bc,
+ 0x09be, 0x09c4,
+ 0x09c7, 0x09c8,
+ 0x09cb, 0x09cd,
+ 0x09d7, 0x09d7,
+ 0x09dc, 0x09dd,
+ 0x09df, 0x09e3,
+ 0x09e6, 0x09fa,
+ 0x0a02, 0x0a02,
+ 0x0a05, 0x0a0a,
+ 0x0a0f, 0x0a10,
+ 0x0a13, 0x0a28,
+ 0x0a2a, 0x0a30,
+ 0x0a32, 0x0a33,
+ 0x0a35, 0x0a36,
+ 0x0a38, 0x0a39,
+ 0x0a3c, 0x0a3c,
+ 0x0a3e, 0x0a42,
+ 0x0a47, 0x0a48,
+ 0x0a4b, 0x0a4d,
+ 0x0a59, 0x0a5c,
+ 0x0a5e, 0x0a5e,
+ 0x0a66, 0x0a74,
+ 0x0a81, 0x0a83,
+ 0x0a85, 0x0a8b,
+ 0x0a8d, 0x0a8d,
+ 0x0a8f, 0x0a91,
+ 0x0a93, 0x0aa8,
+ 0x0aaa, 0x0ab0,
+ 0x0ab2, 0x0ab3,
+ 0x0ab5, 0x0ab9,
+ 0x0abc, 0x0ac5,
+ 0x0ac7, 0x0ac9,
+ 0x0acb, 0x0acd,
+ 0x0ad0, 0x0ad0,
+ 0x0ae0, 0x0ae0,
+ 0x0ae6, 0x0aef,
+ 0x0b01, 0x0b03,
+ 0x0b05, 0x0b0c,
+ 0x0b0f, 0x0b10,
+ 0x0b13, 0x0b28,
+ 0x0b2a, 0x0b30,
+ 0x0b32, 0x0b33,
+ 0x0b36, 0x0b39,
+ 0x0b3c, 0x0b43,
+ 0x0b47, 0x0b48,
+ 0x0b4b, 0x0b4d,
+ 0x0b56, 0x0b57,
+ 0x0b5c, 0x0b5d,
+ 0x0b5f, 0x0b61,
+ 0x0b66, 0x0b70,
+ 0x0b82, 0x0b83,
+ 0x0b85, 0x0b8a,
+ 0x0b8e, 0x0b90,
+ 0x0b92, 0x0b95,
+ 0x0b99, 0x0b9a,
+ 0x0b9c, 0x0b9c,
+ 0x0b9e, 0x0b9f,
+ 0x0ba3, 0x0ba4,
+ 0x0ba8, 0x0baa,
+ 0x0bae, 0x0bb5,
+ 0x0bb7, 0x0bb9,
+ 0x0bbe, 0x0bc2,
+ 0x0bc6, 0x0bc8,
+ 0x0bca, 0x0bcd,
+ 0x0bd7, 0x0bd7,
+ 0x0be7, 0x0bf2,
+ 0x0c01, 0x0c03,
+ 0x0c05, 0x0c0c,
+ 0x0c0e, 0x0c10,
+ 0x0c12, 0x0c28,
+ 0x0c2a, 0x0c33,
+ 0x0c35, 0x0c39,
+ 0x0c3e, 0x0c44,
+ 0x0c46, 0x0c48,
+ 0x0c4a, 0x0c4d,
+ 0x0c55, 0x0c56,
+ 0x0c60, 0x0c61,
+ 0x0c66, 0x0c6f,
+ 0x0c82, 0x0c83,
+ 0x0c85, 0x0c8c,
+ 0x0c8e, 0x0c90,
+ 0x0c92, 0x0ca8,
+ 0x0caa, 0x0cb3,
+ 0x0cb5, 0x0cb9,
+ 0x0cbe, 0x0cc4,
+ 0x0cc6, 0x0cc8,
+ 0x0cca, 0x0ccd,
+ 0x0cd5, 0x0cd6,
+ 0x0cde, 0x0cde,
+ 0x0ce0, 0x0ce1,
+ 0x0ce6, 0x0cef,
+ 0x0d02, 0x0d03,
+ 0x0d05, 0x0d0c,
+ 0x0d0e, 0x0d10,
+ 0x0d12, 0x0d28,
+ 0x0d2a, 0x0d39,
+ 0x0d3e, 0x0d43,
+ 0x0d46, 0x0d48,
+ 0x0d4a, 0x0d4d,
+ 0x0d57, 0x0d57,
+ 0x0d60, 0x0d61,
+ 0x0d66, 0x0d6f,
+ 0x0e01, 0x0e3a,
+ 0x0e3f, 0x0e5b,
+ 0x0e81, 0x0e82,
+ 0x0e84, 0x0e84,
+ 0x0e87, 0x0e88,
+ 0x0e8a, 0x0e8a,
+ 0x0e8d, 0x0e8d,
+ 0x0e94, 0x0e97,
+ 0x0e99, 0x0e9f,
+ 0x0ea1, 0x0ea3,
+ 0x0ea5, 0x0ea5,
+ 0x0ea7, 0x0ea7,
+ 0x0eaa, 0x0eab,
+ 0x0ead, 0x0eb9,
+ 0x0ebb, 0x0ebd,
+ 0x0ec0, 0x0ec4,
+ 0x0ec6, 0x0ec6,
+ 0x0ec8, 0x0ecd,
+ 0x0ed0, 0x0ed9,
+ 0x0edc, 0x0edd,
+ 0x10a0, 0x10c5,
+ 0x10d0, 0x10f6,
+ 0x10fb, 0x10fb,
+ 0x1100, 0x1159,
+ 0x115f, 0x11a2,
+ 0x11a8, 0x11f9,
+ 0x1e00, 0x1e9a,
+ 0x1ea0, 0x1ef9,
+ 0x1f00, 0x1f15,
+ 0x1f18, 0x1f1d,
+ 0x1f20, 0x1f45,
+ 0x1f48, 0x1f4d,
+ 0x1f50, 0x1f57,
+ 0x1f59, 0x1f59,
+ 0x1f5b, 0x1f5b,
+ 0x1f5d, 0x1f5d,
+ 0x1f5f, 0x1f7d,
+ 0x1f80, 0x1fb4,
+ 0x1fb6, 0x1fc4,
+ 0x1fc6, 0x1fd3,
+ 0x1fd6, 0x1fdb,
+ 0x1fdd, 0x1fef,
+ 0x1ff2, 0x1ff4,
+ 0x1ff6, 0x1ffe,
+ 0x2000, 0x202e,
+ 0x2030, 0x2046,
+ 0x206a, 0x2070,
+ 0x2074, 0x208e,
+ 0x20a0, 0x20aa,
+ 0x20d0, 0x20e1,
+ 0x2100, 0x2138,
+ 0x2153, 0x2182,
+ 0x2190, 0x21ea,
+ 0x2200, 0x22f1,
+ 0x2300, 0x2300,
+ 0x2302, 0x237a,
+ 0x2400, 0x2424,
+ 0x2440, 0x244a,
+ 0x2460, 0x24ea,
+ 0x2500, 0x2595,
+ 0x25a0, 0x25ef,
+ 0x2600, 0x2613,
+ 0x261a, 0x266f,
+ 0x2701, 0x2704,
+ 0x2706, 0x2709,
+ 0x270c, 0x2727,
+ 0x2729, 0x274b,
+ 0x274d, 0x274d,
+ 0x274f, 0x2752,
+ 0x2756, 0x2756,
+ 0x2758, 0x275e,
+ 0x2761, 0x2767,
+ 0x2776, 0x2794,
+ 0x2798, 0x27af,
+ 0x27b1, 0x27be,
+ 0x3000, 0x3037,
+ 0x303f, 0x303f,
+ 0x3041, 0x3094,
+ 0x3099, 0x309e,
+ 0x30a1, 0x30fe,
+ 0x3105, 0x312c,
+ 0x3131, 0x318e,
+ 0x3190, 0x319f,
+ 0x3200, 0x321c,
+ 0x3220, 0x3243,
+ 0x3260, 0x327b,
+ 0x327f, 0x32b0,
+ 0x32c0, 0x32cb,
+ 0x32d0, 0x32fe,
+ 0x3300, 0x3376,
+ 0x337b, 0x33dd,
+ 0x33e0, 0x33fe,
+ 0x4e00, 0x9fa5,
+ 0xe000, 0xfa2d,
+ 0xfb00, 0xfb06,
+ 0xfb13, 0xfb17,
+ 0xfb1e, 0xfb36,
+ 0xfb38, 0xfb3c,
+ 0xfb3e, 0xfb3e,
+ 0xfb40, 0xfb41,
+ 0xfb43, 0xfb44,
+ 0xfb46, 0xfbb1,
+ 0xfbd3, 0xfd3f,
+ 0xfd50, 0xfd8f,
+ 0xfd92, 0xfdc7,
+ 0xfdf0, 0xfdfb,
+ 0xfe20, 0xfe23,
+ 0xfe30, 0xfe44,
+ 0xfe49, 0xfe52,
+ 0xfe54, 0xfe66,
+ 0xfe68, 0xfe6b,
+ 0xfe70, 0xfe72,
+ 0xfe74, 0xfe74,
+ 0xfe76, 0xfefc,
+ 0xfeff, 0xfeff,
+ 0xff01, 0xff5e,
+ 0xff61, 0xffbe,
+ 0xffc2, 0xffc7,
+ 0xffca, 0xffcf,
+ 0xffd2, 0xffd7,
+ 0xffda, 0xffdc,
+ 0xffe0, 0xffe6,
+ 0xffe8, 0xffee,
+ 0xfffd, 0xffff,
+}; /* CR_Age_1_1 */
+
+/* 'Age_2_0': Derived Age 2.0 */
+static const OnigCodePoint CR_Age_2_0[] = {
+ 312,
+ 0x0000, 0x01f5,
+ 0x01fa, 0x0217,
+ 0x0250, 0x02a8,
+ 0x02b0, 0x02de,
+ 0x02e0, 0x02e9,
+ 0x0300, 0x0345,
+ 0x0360, 0x0361,
+ 0x0374, 0x0375,
+ 0x037a, 0x037a,
+ 0x037e, 0x037e,
+ 0x0384, 0x038a,
+ 0x038c, 0x038c,
+ 0x038e, 0x03a1,
+ 0x03a3, 0x03ce,
+ 0x03d0, 0x03d6,
+ 0x03da, 0x03da,
+ 0x03dc, 0x03dc,
+ 0x03de, 0x03de,
+ 0x03e0, 0x03e0,
+ 0x03e2, 0x03f3,
+ 0x0401, 0x040c,
+ 0x040e, 0x044f,
+ 0x0451, 0x045c,
+ 0x045e, 0x0486,
+ 0x0490, 0x04c4,
+ 0x04c7, 0x04c8,
+ 0x04cb, 0x04cc,
+ 0x04d0, 0x04eb,
+ 0x04ee, 0x04f5,
+ 0x04f8, 0x04f9,
+ 0x0531, 0x0556,
+ 0x0559, 0x055f,
+ 0x0561, 0x0587,
+ 0x0589, 0x0589,
+ 0x0591, 0x05a1,
+ 0x05a3, 0x05b9,
+ 0x05bb, 0x05c4,
+ 0x05d0, 0x05ea,
+ 0x05f0, 0x05f4,
+ 0x060c, 0x060c,
+ 0x061b, 0x061b,
+ 0x061f, 0x061f,
+ 0x0621, 0x063a,
+ 0x0640, 0x0652,
+ 0x0660, 0x066d,
+ 0x0670, 0x06b7,
+ 0x06ba, 0x06be,
+ 0x06c0, 0x06ce,
+ 0x06d0, 0x06ed,
+ 0x06f0, 0x06f9,
+ 0x0901, 0x0903,
+ 0x0905, 0x0939,
+ 0x093c, 0x094d,
+ 0x0950, 0x0954,
+ 0x0958, 0x0970,
+ 0x0981, 0x0983,
+ 0x0985, 0x098c,
+ 0x098f, 0x0990,
+ 0x0993, 0x09a8,
+ 0x09aa, 0x09b0,
+ 0x09b2, 0x09b2,
+ 0x09b6, 0x09b9,
+ 0x09bc, 0x09bc,
+ 0x09be, 0x09c4,
+ 0x09c7, 0x09c8,
+ 0x09cb, 0x09cd,
+ 0x09d7, 0x09d7,
+ 0x09dc, 0x09dd,
+ 0x09df, 0x09e3,
+ 0x09e6, 0x09fa,
+ 0x0a02, 0x0a02,
+ 0x0a05, 0x0a0a,
+ 0x0a0f, 0x0a10,
+ 0x0a13, 0x0a28,
+ 0x0a2a, 0x0a30,
+ 0x0a32, 0x0a33,
+ 0x0a35, 0x0a36,
+ 0x0a38, 0x0a39,
+ 0x0a3c, 0x0a3c,
+ 0x0a3e, 0x0a42,
+ 0x0a47, 0x0a48,
+ 0x0a4b, 0x0a4d,
+ 0x0a59, 0x0a5c,
+ 0x0a5e, 0x0a5e,
+ 0x0a66, 0x0a74,
+ 0x0a81, 0x0a83,
+ 0x0a85, 0x0a8b,
+ 0x0a8d, 0x0a8d,
+ 0x0a8f, 0x0a91,
+ 0x0a93, 0x0aa8,
+ 0x0aaa, 0x0ab0,
+ 0x0ab2, 0x0ab3,
+ 0x0ab5, 0x0ab9,
+ 0x0abc, 0x0ac5,
+ 0x0ac7, 0x0ac9,
+ 0x0acb, 0x0acd,
+ 0x0ad0, 0x0ad0,
+ 0x0ae0, 0x0ae0,
+ 0x0ae6, 0x0aef,
+ 0x0b01, 0x0b03,
+ 0x0b05, 0x0b0c,
+ 0x0b0f, 0x0b10,
+ 0x0b13, 0x0b28,
+ 0x0b2a, 0x0b30,
+ 0x0b32, 0x0b33,
+ 0x0b36, 0x0b39,
+ 0x0b3c, 0x0b43,
+ 0x0b47, 0x0b48,
+ 0x0b4b, 0x0b4d,
+ 0x0b56, 0x0b57,
+ 0x0b5c, 0x0b5d,
+ 0x0b5f, 0x0b61,
+ 0x0b66, 0x0b70,
+ 0x0b82, 0x0b83,
+ 0x0b85, 0x0b8a,
+ 0x0b8e, 0x0b90,
+ 0x0b92, 0x0b95,
+ 0x0b99, 0x0b9a,
+ 0x0b9c, 0x0b9c,
+ 0x0b9e, 0x0b9f,
+ 0x0ba3, 0x0ba4,
+ 0x0ba8, 0x0baa,
+ 0x0bae, 0x0bb5,
+ 0x0bb7, 0x0bb9,
+ 0x0bbe, 0x0bc2,
+ 0x0bc6, 0x0bc8,
+ 0x0bca, 0x0bcd,
+ 0x0bd7, 0x0bd7,
+ 0x0be7, 0x0bf2,
+ 0x0c01, 0x0c03,
+ 0x0c05, 0x0c0c,
+ 0x0c0e, 0x0c10,
+ 0x0c12, 0x0c28,
+ 0x0c2a, 0x0c33,
+ 0x0c35, 0x0c39,
+ 0x0c3e, 0x0c44,
+ 0x0c46, 0x0c48,
+ 0x0c4a, 0x0c4d,
+ 0x0c55, 0x0c56,
+ 0x0c60, 0x0c61,
+ 0x0c66, 0x0c6f,
+ 0x0c82, 0x0c83,
+ 0x0c85, 0x0c8c,
+ 0x0c8e, 0x0c90,
+ 0x0c92, 0x0ca8,
+ 0x0caa, 0x0cb3,
+ 0x0cb5, 0x0cb9,
+ 0x0cbe, 0x0cc4,
+ 0x0cc6, 0x0cc8,
+ 0x0cca, 0x0ccd,
+ 0x0cd5, 0x0cd6,
+ 0x0cde, 0x0cde,
+ 0x0ce0, 0x0ce1,
+ 0x0ce6, 0x0cef,
+ 0x0d02, 0x0d03,
+ 0x0d05, 0x0d0c,
+ 0x0d0e, 0x0d10,
+ 0x0d12, 0x0d28,
+ 0x0d2a, 0x0d39,
+ 0x0d3e, 0x0d43,
+ 0x0d46, 0x0d48,
+ 0x0d4a, 0x0d4d,
+ 0x0d57, 0x0d57,
+ 0x0d60, 0x0d61,
+ 0x0d66, 0x0d6f,
+ 0x0e01, 0x0e3a,
+ 0x0e3f, 0x0e5b,
+ 0x0e81, 0x0e82,
+ 0x0e84, 0x0e84,
+ 0x0e87, 0x0e88,
+ 0x0e8a, 0x0e8a,
+ 0x0e8d, 0x0e8d,
+ 0x0e94, 0x0e97,
+ 0x0e99, 0x0e9f,
+ 0x0ea1, 0x0ea3,
+ 0x0ea5, 0x0ea5,
+ 0x0ea7, 0x0ea7,
+ 0x0eaa, 0x0eab,
+ 0x0ead, 0x0eb9,
+ 0x0ebb, 0x0ebd,
+ 0x0ec0, 0x0ec4,
+ 0x0ec6, 0x0ec6,
+ 0x0ec8, 0x0ecd,
+ 0x0ed0, 0x0ed9,
+ 0x0edc, 0x0edd,
+ 0x0f00, 0x0f47,
+ 0x0f49, 0x0f69,
+ 0x0f71, 0x0f8b,
+ 0x0f90, 0x0f95,
+ 0x0f97, 0x0f97,
+ 0x0f99, 0x0fad,
+ 0x0fb1, 0x0fb7,
+ 0x0fb9, 0x0fb9,
+ 0x10a0, 0x10c5,
+ 0x10d0, 0x10f6,
+ 0x10fb, 0x10fb,
+ 0x1100, 0x1159,
+ 0x115f, 0x11a2,
+ 0x11a8, 0x11f9,
+ 0x1e00, 0x1e9b,
+ 0x1ea0, 0x1ef9,
+ 0x1f00, 0x1f15,
+ 0x1f18, 0x1f1d,
+ 0x1f20, 0x1f45,
+ 0x1f48, 0x1f4d,
+ 0x1f50, 0x1f57,
+ 0x1f59, 0x1f59,
+ 0x1f5b, 0x1f5b,
+ 0x1f5d, 0x1f5d,
+ 0x1f5f, 0x1f7d,
+ 0x1f80, 0x1fb4,
+ 0x1fb6, 0x1fc4,
+ 0x1fc6, 0x1fd3,
+ 0x1fd6, 0x1fdb,
+ 0x1fdd, 0x1fef,
+ 0x1ff2, 0x1ff4,
+ 0x1ff6, 0x1ffe,
+ 0x2000, 0x202e,
+ 0x2030, 0x2046,
+ 0x206a, 0x2070,
+ 0x2074, 0x208e,
+ 0x20a0, 0x20ab,
+ 0x20d0, 0x20e1,
+ 0x2100, 0x2138,
+ 0x2153, 0x2182,
+ 0x2190, 0x21ea,
+ 0x2200, 0x22f1,
+ 0x2300, 0x2300,
+ 0x2302, 0x237a,
+ 0x2400, 0x2424,
+ 0x2440, 0x244a,
+ 0x2460, 0x24ea,
+ 0x2500, 0x2595,
+ 0x25a0, 0x25ef,
+ 0x2600, 0x2613,
+ 0x261a, 0x266f,
+ 0x2701, 0x2704,
+ 0x2706, 0x2709,
+ 0x270c, 0x2727,
+ 0x2729, 0x274b,
+ 0x274d, 0x274d,
+ 0x274f, 0x2752,
+ 0x2756, 0x2756,
+ 0x2758, 0x275e,
+ 0x2761, 0x2767,
+ 0x2776, 0x2794,
+ 0x2798, 0x27af,
+ 0x27b1, 0x27be,
+ 0x3000, 0x3037,
+ 0x303f, 0x303f,
+ 0x3041, 0x3094,
+ 0x3099, 0x309e,
+ 0x30a1, 0x30fe,
+ 0x3105, 0x312c,
+ 0x3131, 0x318e,
+ 0x3190, 0x319f,
+ 0x3200, 0x321c,
+ 0x3220, 0x3243,
+ 0x3260, 0x327b,
+ 0x327f, 0x32b0,
+ 0x32c0, 0x32cb,
+ 0x32d0, 0x32fe,
+ 0x3300, 0x3376,
+ 0x337b, 0x33dd,
+ 0x33e0, 0x33fe,
+ 0x4e00, 0x9fa5,
+ 0xac00, 0xd7a3,
+ 0xd800, 0xfa2d,
+ 0xfb00, 0xfb06,
+ 0xfb13, 0xfb17,
+ 0xfb1e, 0xfb36,
+ 0xfb38, 0xfb3c,
+ 0xfb3e, 0xfb3e,
+ 0xfb40, 0xfb41,
+ 0xfb43, 0xfb44,
+ 0xfb46, 0xfbb1,
+ 0xfbd3, 0xfd3f,
+ 0xfd50, 0xfd8f,
+ 0xfd92, 0xfdc7,
+ 0xfdf0, 0xfdfb,
+ 0xfe20, 0xfe23,
+ 0xfe30, 0xfe44,
+ 0xfe49, 0xfe52,
+ 0xfe54, 0xfe66,
+ 0xfe68, 0xfe6b,
+ 0xfe70, 0xfe72,
+ 0xfe74, 0xfe74,
+ 0xfe76, 0xfefc,
+ 0xfeff, 0xfeff,
+ 0xff01, 0xff5e,
+ 0xff61, 0xffbe,
+ 0xffc2, 0xffc7,
+ 0xffca, 0xffcf,
+ 0xffd2, 0xffd7,
+ 0xffda, 0xffdc,
+ 0xffe0, 0xffe6,
+ 0xffe8, 0xffee,
+ 0xfffd, 0xffff,
+ 0x1fffe, 0x1ffff,
+ 0x2fffe, 0x2ffff,
+ 0x3fffe, 0x3ffff,
+ 0x4fffe, 0x4ffff,
+ 0x5fffe, 0x5ffff,
+ 0x6fffe, 0x6ffff,
+ 0x7fffe, 0x7ffff,
+ 0x8fffe, 0x8ffff,
+ 0x9fffe, 0x9ffff,
+ 0xafffe, 0xaffff,
+ 0xbfffe, 0xbffff,
+ 0xcfffe, 0xcffff,
+ 0xdfffe, 0xdffff,
+ 0xefffe, 0x10ffff,
+}; /* CR_Age_2_0 */
+
+/* 'Age_2_1': Derived Age 2.1 */
+static const OnigCodePoint CR_Age_2_1[] = {
+ 312,
+ 0x0000, 0x01f5,
+ 0x01fa, 0x0217,
+ 0x0250, 0x02a8,
+ 0x02b0, 0x02de,
+ 0x02e0, 0x02e9,
+ 0x0300, 0x0345,
+ 0x0360, 0x0361,
+ 0x0374, 0x0375,
+ 0x037a, 0x037a,
+ 0x037e, 0x037e,
+ 0x0384, 0x038a,
+ 0x038c, 0x038c,
+ 0x038e, 0x03a1,
+ 0x03a3, 0x03ce,
+ 0x03d0, 0x03d6,
+ 0x03da, 0x03da,
+ 0x03dc, 0x03dc,
+ 0x03de, 0x03de,
+ 0x03e0, 0x03e0,
+ 0x03e2, 0x03f3,
+ 0x0401, 0x040c,
+ 0x040e, 0x044f,
+ 0x0451, 0x045c,
+ 0x045e, 0x0486,
+ 0x0490, 0x04c4,
+ 0x04c7, 0x04c8,
+ 0x04cb, 0x04cc,
+ 0x04d0, 0x04eb,
+ 0x04ee, 0x04f5,
+ 0x04f8, 0x04f9,
+ 0x0531, 0x0556,
+ 0x0559, 0x055f,
+ 0x0561, 0x0587,
+ 0x0589, 0x0589,
+ 0x0591, 0x05a1,
+ 0x05a3, 0x05b9,
+ 0x05bb, 0x05c4,
+ 0x05d0, 0x05ea,
+ 0x05f0, 0x05f4,
+ 0x060c, 0x060c,
+ 0x061b, 0x061b,
+ 0x061f, 0x061f,
+ 0x0621, 0x063a,
+ 0x0640, 0x0652,
+ 0x0660, 0x066d,
+ 0x0670, 0x06b7,
+ 0x06ba, 0x06be,
+ 0x06c0, 0x06ce,
+ 0x06d0, 0x06ed,
+ 0x06f0, 0x06f9,
+ 0x0901, 0x0903,
+ 0x0905, 0x0939,
+ 0x093c, 0x094d,
+ 0x0950, 0x0954,
+ 0x0958, 0x0970,
+ 0x0981, 0x0983,
+ 0x0985, 0x098c,
+ 0x098f, 0x0990,
+ 0x0993, 0x09a8,
+ 0x09aa, 0x09b0,
+ 0x09b2, 0x09b2,
+ 0x09b6, 0x09b9,
+ 0x09bc, 0x09bc,
+ 0x09be, 0x09c4,
+ 0x09c7, 0x09c8,
+ 0x09cb, 0x09cd,
+ 0x09d7, 0x09d7,
+ 0x09dc, 0x09dd,
+ 0x09df, 0x09e3,
+ 0x09e6, 0x09fa,
+ 0x0a02, 0x0a02,
+ 0x0a05, 0x0a0a,
+ 0x0a0f, 0x0a10,
+ 0x0a13, 0x0a28,
+ 0x0a2a, 0x0a30,
+ 0x0a32, 0x0a33,
+ 0x0a35, 0x0a36,
+ 0x0a38, 0x0a39,
+ 0x0a3c, 0x0a3c,
+ 0x0a3e, 0x0a42,
+ 0x0a47, 0x0a48,
+ 0x0a4b, 0x0a4d,
+ 0x0a59, 0x0a5c,
+ 0x0a5e, 0x0a5e,
+ 0x0a66, 0x0a74,
+ 0x0a81, 0x0a83,
+ 0x0a85, 0x0a8b,
+ 0x0a8d, 0x0a8d,
+ 0x0a8f, 0x0a91,
+ 0x0a93, 0x0aa8,
+ 0x0aaa, 0x0ab0,
+ 0x0ab2, 0x0ab3,
+ 0x0ab5, 0x0ab9,
+ 0x0abc, 0x0ac5,
+ 0x0ac7, 0x0ac9,
+ 0x0acb, 0x0acd,
+ 0x0ad0, 0x0ad0,
+ 0x0ae0, 0x0ae0,
+ 0x0ae6, 0x0aef,
+ 0x0b01, 0x0b03,
+ 0x0b05, 0x0b0c,
+ 0x0b0f, 0x0b10,
+ 0x0b13, 0x0b28,
+ 0x0b2a, 0x0b30,
+ 0x0b32, 0x0b33,
+ 0x0b36, 0x0b39,
+ 0x0b3c, 0x0b43,
+ 0x0b47, 0x0b48,
+ 0x0b4b, 0x0b4d,
+ 0x0b56, 0x0b57,
+ 0x0b5c, 0x0b5d,
+ 0x0b5f, 0x0b61,
+ 0x0b66, 0x0b70,
+ 0x0b82, 0x0b83,
+ 0x0b85, 0x0b8a,
+ 0x0b8e, 0x0b90,
+ 0x0b92, 0x0b95,
+ 0x0b99, 0x0b9a,
+ 0x0b9c, 0x0b9c,
+ 0x0b9e, 0x0b9f,
+ 0x0ba3, 0x0ba4,
+ 0x0ba8, 0x0baa,
+ 0x0bae, 0x0bb5,
+ 0x0bb7, 0x0bb9,
+ 0x0bbe, 0x0bc2,
+ 0x0bc6, 0x0bc8,
+ 0x0bca, 0x0bcd,
+ 0x0bd7, 0x0bd7,
+ 0x0be7, 0x0bf2,
+ 0x0c01, 0x0c03,
+ 0x0c05, 0x0c0c,
+ 0x0c0e, 0x0c10,
+ 0x0c12, 0x0c28,
+ 0x0c2a, 0x0c33,
+ 0x0c35, 0x0c39,
+ 0x0c3e, 0x0c44,
+ 0x0c46, 0x0c48,
+ 0x0c4a, 0x0c4d,
+ 0x0c55, 0x0c56,
+ 0x0c60, 0x0c61,
+ 0x0c66, 0x0c6f,
+ 0x0c82, 0x0c83,
+ 0x0c85, 0x0c8c,
+ 0x0c8e, 0x0c90,
+ 0x0c92, 0x0ca8,
+ 0x0caa, 0x0cb3,
+ 0x0cb5, 0x0cb9,
+ 0x0cbe, 0x0cc4,
+ 0x0cc6, 0x0cc8,
+ 0x0cca, 0x0ccd,
+ 0x0cd5, 0x0cd6,
+ 0x0cde, 0x0cde,
+ 0x0ce0, 0x0ce1,
+ 0x0ce6, 0x0cef,
+ 0x0d02, 0x0d03,
+ 0x0d05, 0x0d0c,
+ 0x0d0e, 0x0d10,
+ 0x0d12, 0x0d28,
+ 0x0d2a, 0x0d39,
+ 0x0d3e, 0x0d43,
+ 0x0d46, 0x0d48,
+ 0x0d4a, 0x0d4d,
+ 0x0d57, 0x0d57,
+ 0x0d60, 0x0d61,
+ 0x0d66, 0x0d6f,
+ 0x0e01, 0x0e3a,
+ 0x0e3f, 0x0e5b,
+ 0x0e81, 0x0e82,
+ 0x0e84, 0x0e84,
+ 0x0e87, 0x0e88,
+ 0x0e8a, 0x0e8a,
+ 0x0e8d, 0x0e8d,
+ 0x0e94, 0x0e97,
+ 0x0e99, 0x0e9f,
+ 0x0ea1, 0x0ea3,
+ 0x0ea5, 0x0ea5,
+ 0x0ea7, 0x0ea7,
+ 0x0eaa, 0x0eab,
+ 0x0ead, 0x0eb9,
+ 0x0ebb, 0x0ebd,
+ 0x0ec0, 0x0ec4,
+ 0x0ec6, 0x0ec6,
+ 0x0ec8, 0x0ecd,
+ 0x0ed0, 0x0ed9,
+ 0x0edc, 0x0edd,
+ 0x0f00, 0x0f47,
+ 0x0f49, 0x0f69,
+ 0x0f71, 0x0f8b,
+ 0x0f90, 0x0f95,
+ 0x0f97, 0x0f97,
+ 0x0f99, 0x0fad,
+ 0x0fb1, 0x0fb7,
+ 0x0fb9, 0x0fb9,
+ 0x10a0, 0x10c5,
+ 0x10d0, 0x10f6,
+ 0x10fb, 0x10fb,
+ 0x1100, 0x1159,
+ 0x115f, 0x11a2,
+ 0x11a8, 0x11f9,
+ 0x1e00, 0x1e9b,
+ 0x1ea0, 0x1ef9,
+ 0x1f00, 0x1f15,
+ 0x1f18, 0x1f1d,
+ 0x1f20, 0x1f45,
+ 0x1f48, 0x1f4d,
+ 0x1f50, 0x1f57,
+ 0x1f59, 0x1f59,
+ 0x1f5b, 0x1f5b,
+ 0x1f5d, 0x1f5d,
+ 0x1f5f, 0x1f7d,
+ 0x1f80, 0x1fb4,
+ 0x1fb6, 0x1fc4,
+ 0x1fc6, 0x1fd3,
+ 0x1fd6, 0x1fdb,
+ 0x1fdd, 0x1fef,
+ 0x1ff2, 0x1ff4,
+ 0x1ff6, 0x1ffe,
+ 0x2000, 0x202e,
+ 0x2030, 0x2046,
+ 0x206a, 0x2070,
+ 0x2074, 0x208e,
+ 0x20a0, 0x20ac,
+ 0x20d0, 0x20e1,
+ 0x2100, 0x2138,
+ 0x2153, 0x2182,
+ 0x2190, 0x21ea,
+ 0x2200, 0x22f1,
+ 0x2300, 0x2300,
+ 0x2302, 0x237a,
+ 0x2400, 0x2424,
+ 0x2440, 0x244a,
+ 0x2460, 0x24ea,
+ 0x2500, 0x2595,
+ 0x25a0, 0x25ef,
+ 0x2600, 0x2613,
+ 0x261a, 0x266f,
+ 0x2701, 0x2704,
+ 0x2706, 0x2709,
+ 0x270c, 0x2727,
+ 0x2729, 0x274b,
+ 0x274d, 0x274d,
+ 0x274f, 0x2752,
+ 0x2756, 0x2756,
+ 0x2758, 0x275e,
+ 0x2761, 0x2767,
+ 0x2776, 0x2794,
+ 0x2798, 0x27af,
+ 0x27b1, 0x27be,
+ 0x3000, 0x3037,
+ 0x303f, 0x303f,
+ 0x3041, 0x3094,
+ 0x3099, 0x309e,
+ 0x30a1, 0x30fe,
+ 0x3105, 0x312c,
+ 0x3131, 0x318e,
+ 0x3190, 0x319f,
+ 0x3200, 0x321c,
+ 0x3220, 0x3243,
+ 0x3260, 0x327b,
+ 0x327f, 0x32b0,
+ 0x32c0, 0x32cb,
+ 0x32d0, 0x32fe,
+ 0x3300, 0x3376,
+ 0x337b, 0x33dd,
+ 0x33e0, 0x33fe,
+ 0x4e00, 0x9fa5,
+ 0xac00, 0xd7a3,
+ 0xd800, 0xfa2d,
+ 0xfb00, 0xfb06,
+ 0xfb13, 0xfb17,
+ 0xfb1e, 0xfb36,
+ 0xfb38, 0xfb3c,
+ 0xfb3e, 0xfb3e,
+ 0xfb40, 0xfb41,
+ 0xfb43, 0xfb44,
+ 0xfb46, 0xfbb1,
+ 0xfbd3, 0xfd3f,
+ 0xfd50, 0xfd8f,
+ 0xfd92, 0xfdc7,
+ 0xfdf0, 0xfdfb,
+ 0xfe20, 0xfe23,
+ 0xfe30, 0xfe44,
+ 0xfe49, 0xfe52,
+ 0xfe54, 0xfe66,
+ 0xfe68, 0xfe6b,
+ 0xfe70, 0xfe72,
+ 0xfe74, 0xfe74,
+ 0xfe76, 0xfefc,
+ 0xfeff, 0xfeff,
+ 0xff01, 0xff5e,
+ 0xff61, 0xffbe,
+ 0xffc2, 0xffc7,
+ 0xffca, 0xffcf,
+ 0xffd2, 0xffd7,
+ 0xffda, 0xffdc,
+ 0xffe0, 0xffe6,
+ 0xffe8, 0xffee,
+ 0xfffc, 0xffff,
+ 0x1fffe, 0x1ffff,
+ 0x2fffe, 0x2ffff,
+ 0x3fffe, 0x3ffff,
+ 0x4fffe, 0x4ffff,
+ 0x5fffe, 0x5ffff,
+ 0x6fffe, 0x6ffff,
+ 0x7fffe, 0x7ffff,
+ 0x8fffe, 0x8ffff,
+ 0x9fffe, 0x9ffff,
+ 0xafffe, 0xaffff,
+ 0xbfffe, 0xbffff,
+ 0xcfffe, 0xcffff,
+ 0xdfffe, 0xdffff,
+ 0xefffe, 0x10ffff,
+}; /* CR_Age_2_1 */
+
+/* 'Age_3_0': Derived Age 3.0 */
+static const OnigCodePoint CR_Age_3_0[] = {
+ 369,
+ 0x0000, 0x021f,
+ 0x0222, 0x0233,
+ 0x0250, 0x02ad,
+ 0x02b0, 0x02ee,
+ 0x0300, 0x034e,
+ 0x0360, 0x0362,
+ 0x0374, 0x0375,
+ 0x037a, 0x037a,
+ 0x037e, 0x037e,
+ 0x0384, 0x038a,
+ 0x038c, 0x038c,
+ 0x038e, 0x03a1,
+ 0x03a3, 0x03ce,
+ 0x03d0, 0x03d7,
+ 0x03da, 0x03f3,
+ 0x0400, 0x0486,
+ 0x0488, 0x0489,
+ 0x048c, 0x04c4,
+ 0x04c7, 0x04c8,
+ 0x04cb, 0x04cc,
+ 0x04d0, 0x04f5,
+ 0x04f8, 0x04f9,
+ 0x0531, 0x0556,
+ 0x0559, 0x055f,
+ 0x0561, 0x0587,
+ 0x0589, 0x058a,
+ 0x0591, 0x05a1,
+ 0x05a3, 0x05b9,
+ 0x05bb, 0x05c4,
+ 0x05d0, 0x05ea,
+ 0x05f0, 0x05f4,
+ 0x060c, 0x060c,
+ 0x061b, 0x061b,
+ 0x061f, 0x061f,
+ 0x0621, 0x063a,
+ 0x0640, 0x0655,
+ 0x0660, 0x066d,
+ 0x0670, 0x06ed,
+ 0x06f0, 0x06fe,
+ 0x0700, 0x070d,
+ 0x070f, 0x072c,
+ 0x0730, 0x074a,
+ 0x0780, 0x07b0,
+ 0x0901, 0x0903,
+ 0x0905, 0x0939,
+ 0x093c, 0x094d,
+ 0x0950, 0x0954,
+ 0x0958, 0x0970,
+ 0x0981, 0x0983,
+ 0x0985, 0x098c,
+ 0x098f, 0x0990,
+ 0x0993, 0x09a8,
+ 0x09aa, 0x09b0,
+ 0x09b2, 0x09b2,
+ 0x09b6, 0x09b9,
+ 0x09bc, 0x09bc,
+ 0x09be, 0x09c4,
+ 0x09c7, 0x09c8,
+ 0x09cb, 0x09cd,
+ 0x09d7, 0x09d7,
+ 0x09dc, 0x09dd,
+ 0x09df, 0x09e3,
+ 0x09e6, 0x09fa,
+ 0x0a02, 0x0a02,
+ 0x0a05, 0x0a0a,
+ 0x0a0f, 0x0a10,
+ 0x0a13, 0x0a28,
+ 0x0a2a, 0x0a30,
+ 0x0a32, 0x0a33,
+ 0x0a35, 0x0a36,
+ 0x0a38, 0x0a39,
+ 0x0a3c, 0x0a3c,
+ 0x0a3e, 0x0a42,
+ 0x0a47, 0x0a48,
+ 0x0a4b, 0x0a4d,
+ 0x0a59, 0x0a5c,
+ 0x0a5e, 0x0a5e,
+ 0x0a66, 0x0a74,
+ 0x0a81, 0x0a83,
+ 0x0a85, 0x0a8b,
+ 0x0a8d, 0x0a8d,
+ 0x0a8f, 0x0a91,
+ 0x0a93, 0x0aa8,
+ 0x0aaa, 0x0ab0,
+ 0x0ab2, 0x0ab3,
+ 0x0ab5, 0x0ab9,
+ 0x0abc, 0x0ac5,
+ 0x0ac7, 0x0ac9,
+ 0x0acb, 0x0acd,
+ 0x0ad0, 0x0ad0,
+ 0x0ae0, 0x0ae0,
+ 0x0ae6, 0x0aef,
+ 0x0b01, 0x0b03,
+ 0x0b05, 0x0b0c,
+ 0x0b0f, 0x0b10,
+ 0x0b13, 0x0b28,
+ 0x0b2a, 0x0b30,
+ 0x0b32, 0x0b33,
+ 0x0b36, 0x0b39,
+ 0x0b3c, 0x0b43,
+ 0x0b47, 0x0b48,
+ 0x0b4b, 0x0b4d,
+ 0x0b56, 0x0b57,
+ 0x0b5c, 0x0b5d,
+ 0x0b5f, 0x0b61,
+ 0x0b66, 0x0b70,
+ 0x0b82, 0x0b83,
+ 0x0b85, 0x0b8a,
+ 0x0b8e, 0x0b90,
+ 0x0b92, 0x0b95,
+ 0x0b99, 0x0b9a,
+ 0x0b9c, 0x0b9c,
+ 0x0b9e, 0x0b9f,
+ 0x0ba3, 0x0ba4,
+ 0x0ba8, 0x0baa,
+ 0x0bae, 0x0bb5,
+ 0x0bb7, 0x0bb9,
+ 0x0bbe, 0x0bc2,
+ 0x0bc6, 0x0bc8,
+ 0x0bca, 0x0bcd,
+ 0x0bd7, 0x0bd7,
+ 0x0be7, 0x0bf2,
+ 0x0c01, 0x0c03,
+ 0x0c05, 0x0c0c,
+ 0x0c0e, 0x0c10,
+ 0x0c12, 0x0c28,
+ 0x0c2a, 0x0c33,
+ 0x0c35, 0x0c39,
+ 0x0c3e, 0x0c44,
+ 0x0c46, 0x0c48,
+ 0x0c4a, 0x0c4d,
+ 0x0c55, 0x0c56,
+ 0x0c60, 0x0c61,
+ 0x0c66, 0x0c6f,
+ 0x0c82, 0x0c83,
+ 0x0c85, 0x0c8c,
+ 0x0c8e, 0x0c90,
+ 0x0c92, 0x0ca8,
+ 0x0caa, 0x0cb3,
+ 0x0cb5, 0x0cb9,
+ 0x0cbe, 0x0cc4,
+ 0x0cc6, 0x0cc8,
+ 0x0cca, 0x0ccd,
+ 0x0cd5, 0x0cd6,
+ 0x0cde, 0x0cde,
+ 0x0ce0, 0x0ce1,
+ 0x0ce6, 0x0cef,
+ 0x0d02, 0x0d03,
+ 0x0d05, 0x0d0c,
+ 0x0d0e, 0x0d10,
+ 0x0d12, 0x0d28,
+ 0x0d2a, 0x0d39,
+ 0x0d3e, 0x0d43,
+ 0x0d46, 0x0d48,
+ 0x0d4a, 0x0d4d,
+ 0x0d57, 0x0d57,
+ 0x0d60, 0x0d61,
+ 0x0d66, 0x0d6f,
+ 0x0d82, 0x0d83,
+ 0x0d85, 0x0d96,
+ 0x0d9a, 0x0db1,
+ 0x0db3, 0x0dbb,
+ 0x0dbd, 0x0dbd,
+ 0x0dc0, 0x0dc6,
+ 0x0dca, 0x0dca,
+ 0x0dcf, 0x0dd4,
+ 0x0dd6, 0x0dd6,
+ 0x0dd8, 0x0ddf,
+ 0x0df2, 0x0df4,
+ 0x0e01, 0x0e3a,
+ 0x0e3f, 0x0e5b,
+ 0x0e81, 0x0e82,
+ 0x0e84, 0x0e84,
+ 0x0e87, 0x0e88,
+ 0x0e8a, 0x0e8a,
+ 0x0e8d, 0x0e8d,
+ 0x0e94, 0x0e97,
+ 0x0e99, 0x0e9f,
+ 0x0ea1, 0x0ea3,
+ 0x0ea5, 0x0ea5,
+ 0x0ea7, 0x0ea7,
+ 0x0eaa, 0x0eab,
+ 0x0ead, 0x0eb9,
+ 0x0ebb, 0x0ebd,
+ 0x0ec0, 0x0ec4,
+ 0x0ec6, 0x0ec6,
+ 0x0ec8, 0x0ecd,
+ 0x0ed0, 0x0ed9,
+ 0x0edc, 0x0edd,
+ 0x0f00, 0x0f47,
+ 0x0f49, 0x0f6a,
+ 0x0f71, 0x0f8b,
+ 0x0f90, 0x0f97,
+ 0x0f99, 0x0fbc,
+ 0x0fbe, 0x0fcc,
+ 0x0fcf, 0x0fcf,
+ 0x1000, 0x1021,
+ 0x1023, 0x1027,
+ 0x1029, 0x102a,
+ 0x102c, 0x1032,
+ 0x1036, 0x1039,
+ 0x1040, 0x1059,
+ 0x10a0, 0x10c5,
+ 0x10d0, 0x10f6,
+ 0x10fb, 0x10fb,
+ 0x1100, 0x1159,
+ 0x115f, 0x11a2,
+ 0x11a8, 0x11f9,
+ 0x1200, 0x1206,
+ 0x1208, 0x1246,
+ 0x1248, 0x1248,
+ 0x124a, 0x124d,
+ 0x1250, 0x1256,
+ 0x1258, 0x1258,
+ 0x125a, 0x125d,
+ 0x1260, 0x1286,
+ 0x1288, 0x1288,
+ 0x128a, 0x128d,
+ 0x1290, 0x12ae,
+ 0x12b0, 0x12b0,
+ 0x12b2, 0x12b5,
+ 0x12b8, 0x12be,
+ 0x12c0, 0x12c0,
+ 0x12c2, 0x12c5,
+ 0x12c8, 0x12ce,
+ 0x12d0, 0x12d6,
+ 0x12d8, 0x12ee,
+ 0x12f0, 0x130e,
+ 0x1310, 0x1310,
+ 0x1312, 0x1315,
+ 0x1318, 0x131e,
+ 0x1320, 0x1346,
+ 0x1348, 0x135a,
+ 0x1361, 0x137c,
+ 0x13a0, 0x13f4,
+ 0x1401, 0x1676,
+ 0x1680, 0x169c,
+ 0x16a0, 0x16f0,
+ 0x1780, 0x17dc,
+ 0x17e0, 0x17e9,
+ 0x1800, 0x180e,
+ 0x1810, 0x1819,
+ 0x1820, 0x1877,
+ 0x1880, 0x18a9,
+ 0x1e00, 0x1e9b,
+ 0x1ea0, 0x1ef9,
+ 0x1f00, 0x1f15,
+ 0x1f18, 0x1f1d,
+ 0x1f20, 0x1f45,
+ 0x1f48, 0x1f4d,
+ 0x1f50, 0x1f57,
+ 0x1f59, 0x1f59,
+ 0x1f5b, 0x1f5b,
+ 0x1f5d, 0x1f5d,
+ 0x1f5f, 0x1f7d,
+ 0x1f80, 0x1fb4,
+ 0x1fb6, 0x1fc4,
+ 0x1fc6, 0x1fd3,
+ 0x1fd6, 0x1fdb,
+ 0x1fdd, 0x1fef,
+ 0x1ff2, 0x1ff4,
+ 0x1ff6, 0x1ffe,
+ 0x2000, 0x2046,
+ 0x2048, 0x204d,
+ 0x206a, 0x2070,
+ 0x2074, 0x208e,
+ 0x20a0, 0x20af,
+ 0x20d0, 0x20e3,
+ 0x2100, 0x213a,
+ 0x2153, 0x2183,
+ 0x2190, 0x21f3,
+ 0x2200, 0x22f1,
+ 0x2300, 0x237b,
+ 0x237d, 0x239a,
+ 0x2400, 0x2426,
+ 0x2440, 0x244a,
+ 0x2460, 0x24ea,
+ 0x2500, 0x2595,
+ 0x25a0, 0x25f7,
+ 0x2600, 0x2613,
+ 0x2619, 0x2671,
+ 0x2701, 0x2704,
+ 0x2706, 0x2709,
+ 0x270c, 0x2727,
+ 0x2729, 0x274b,
+ 0x274d, 0x274d,
+ 0x274f, 0x2752,
+ 0x2756, 0x2756,
+ 0x2758, 0x275e,
+ 0x2761, 0x2767,
+ 0x2776, 0x2794,
+ 0x2798, 0x27af,
+ 0x27b1, 0x27be,
+ 0x2800, 0x28ff,
+ 0x2e80, 0x2e99,
+ 0x2e9b, 0x2ef3,
+ 0x2f00, 0x2fd5,
+ 0x2ff0, 0x2ffb,
+ 0x3000, 0x303a,
+ 0x303e, 0x303f,
+ 0x3041, 0x3094,
+ 0x3099, 0x309e,
+ 0x30a1, 0x30fe,
+ 0x3105, 0x312c,
+ 0x3131, 0x318e,
+ 0x3190, 0x31b7,
+ 0x3200, 0x321c,
+ 0x3220, 0x3243,
+ 0x3260, 0x327b,
+ 0x327f, 0x32b0,
+ 0x32c0, 0x32cb,
+ 0x32d0, 0x32fe,
+ 0x3300, 0x3376,
+ 0x337b, 0x33dd,
+ 0x33e0, 0x33fe,
+ 0x3400, 0x4db5,
+ 0x4e00, 0x9fa5,
+ 0xa000, 0xa48c,
+ 0xa490, 0xa4a1,
+ 0xa4a4, 0xa4b3,
+ 0xa4b5, 0xa4c0,
+ 0xa4c2, 0xa4c4,
+ 0xa4c6, 0xa4c6,
+ 0xac00, 0xd7a3,
+ 0xd800, 0xfa2d,
+ 0xfb00, 0xfb06,
+ 0xfb13, 0xfb17,
+ 0xfb1d, 0xfb36,
+ 0xfb38, 0xfb3c,
+ 0xfb3e, 0xfb3e,
+ 0xfb40, 0xfb41,
+ 0xfb43, 0xfb44,
+ 0xfb46, 0xfbb1,
+ 0xfbd3, 0xfd3f,
+ 0xfd50, 0xfd8f,
+ 0xfd92, 0xfdc7,
+ 0xfdf0, 0xfdfb,
+ 0xfe20, 0xfe23,
+ 0xfe30, 0xfe44,
+ 0xfe49, 0xfe52,
+ 0xfe54, 0xfe66,
+ 0xfe68, 0xfe6b,
+ 0xfe70, 0xfe72,
+ 0xfe74, 0xfe74,
+ 0xfe76, 0xfefc,
+ 0xfeff, 0xfeff,
+ 0xff01, 0xff5e,
+ 0xff61, 0xffbe,
+ 0xffc2, 0xffc7,
+ 0xffca, 0xffcf,
+ 0xffd2, 0xffd7,
+ 0xffda, 0xffdc,
+ 0xffe0, 0xffe6,
+ 0xffe8, 0xffee,
+ 0xfff9, 0xffff,
+ 0x1fffe, 0x1ffff,
+ 0x2fffe, 0x2ffff,
+ 0x3fffe, 0x3ffff,
+ 0x4fffe, 0x4ffff,
+ 0x5fffe, 0x5ffff,
+ 0x6fffe, 0x6ffff,
+ 0x7fffe, 0x7ffff,
+ 0x8fffe, 0x8ffff,
+ 0x9fffe, 0x9ffff,
+ 0xafffe, 0xaffff,
+ 0xbfffe, 0xbffff,
+ 0xcfffe, 0xcffff,
+ 0xdfffe, 0xdffff,
+ 0xefffe, 0x10ffff,
+}; /* CR_Age_3_0 */
+
+/* 'Age_3_1': Derived Age 3.1 */
+static const OnigCodePoint CR_Age_3_1[] = {
+ 402,
+ 0x0000, 0x021f,
+ 0x0222, 0x0233,
+ 0x0250, 0x02ad,
+ 0x02b0, 0x02ee,
+ 0x0300, 0x034e,
+ 0x0360, 0x0362,
+ 0x0374, 0x0375,
+ 0x037a, 0x037a,
+ 0x037e, 0x037e,
+ 0x0384, 0x038a,
+ 0x038c, 0x038c,
+ 0x038e, 0x03a1,
+ 0x03a3, 0x03ce,
+ 0x03d0, 0x03d7,
+ 0x03da, 0x03f5,
+ 0x0400, 0x0486,
+ 0x0488, 0x0489,
+ 0x048c, 0x04c4,
+ 0x04c7, 0x04c8,
+ 0x04cb, 0x04cc,
+ 0x04d0, 0x04f5,
+ 0x04f8, 0x04f9,
+ 0x0531, 0x0556,
+ 0x0559, 0x055f,
+ 0x0561, 0x0587,
+ 0x0589, 0x058a,
+ 0x0591, 0x05a1,
+ 0x05a3, 0x05b9,
+ 0x05bb, 0x05c4,
+ 0x05d0, 0x05ea,
+ 0x05f0, 0x05f4,
+ 0x060c, 0x060c,
+ 0x061b, 0x061b,
+ 0x061f, 0x061f,
+ 0x0621, 0x063a,
+ 0x0640, 0x0655,
+ 0x0660, 0x066d,
+ 0x0670, 0x06ed,
+ 0x06f0, 0x06fe,
+ 0x0700, 0x070d,
+ 0x070f, 0x072c,
+ 0x0730, 0x074a,
+ 0x0780, 0x07b0,
+ 0x0901, 0x0903,
+ 0x0905, 0x0939,
+ 0x093c, 0x094d,
+ 0x0950, 0x0954,
+ 0x0958, 0x0970,
+ 0x0981, 0x0983,
+ 0x0985, 0x098c,
+ 0x098f, 0x0990,
+ 0x0993, 0x09a8,
+ 0x09aa, 0x09b0,
+ 0x09b2, 0x09b2,
+ 0x09b6, 0x09b9,
+ 0x09bc, 0x09bc,
+ 0x09be, 0x09c4,
+ 0x09c7, 0x09c8,
+ 0x09cb, 0x09cd,
+ 0x09d7, 0x09d7,
+ 0x09dc, 0x09dd,
+ 0x09df, 0x09e3,
+ 0x09e6, 0x09fa,
+ 0x0a02, 0x0a02,
+ 0x0a05, 0x0a0a,
+ 0x0a0f, 0x0a10,
+ 0x0a13, 0x0a28,
+ 0x0a2a, 0x0a30,
+ 0x0a32, 0x0a33,
+ 0x0a35, 0x0a36,
+ 0x0a38, 0x0a39,
+ 0x0a3c, 0x0a3c,
+ 0x0a3e, 0x0a42,
+ 0x0a47, 0x0a48,
+ 0x0a4b, 0x0a4d,
+ 0x0a59, 0x0a5c,
+ 0x0a5e, 0x0a5e,
+ 0x0a66, 0x0a74,
+ 0x0a81, 0x0a83,
+ 0x0a85, 0x0a8b,
+ 0x0a8d, 0x0a8d,
+ 0x0a8f, 0x0a91,
+ 0x0a93, 0x0aa8,
+ 0x0aaa, 0x0ab0,
+ 0x0ab2, 0x0ab3,
+ 0x0ab5, 0x0ab9,
+ 0x0abc, 0x0ac5,
+ 0x0ac7, 0x0ac9,
+ 0x0acb, 0x0acd,
+ 0x0ad0, 0x0ad0,
+ 0x0ae0, 0x0ae0,
+ 0x0ae6, 0x0aef,
+ 0x0b01, 0x0b03,
+ 0x0b05, 0x0b0c,
+ 0x0b0f, 0x0b10,
+ 0x0b13, 0x0b28,
+ 0x0b2a, 0x0b30,
+ 0x0b32, 0x0b33,
+ 0x0b36, 0x0b39,
+ 0x0b3c, 0x0b43,
+ 0x0b47, 0x0b48,
+ 0x0b4b, 0x0b4d,
+ 0x0b56, 0x0b57,
+ 0x0b5c, 0x0b5d,
+ 0x0b5f, 0x0b61,
+ 0x0b66, 0x0b70,
+ 0x0b82, 0x0b83,
+ 0x0b85, 0x0b8a,
+ 0x0b8e, 0x0b90,
+ 0x0b92, 0x0b95,
+ 0x0b99, 0x0b9a,
+ 0x0b9c, 0x0b9c,
+ 0x0b9e, 0x0b9f,
+ 0x0ba3, 0x0ba4,
+ 0x0ba8, 0x0baa,
+ 0x0bae, 0x0bb5,
+ 0x0bb7, 0x0bb9,
+ 0x0bbe, 0x0bc2,
+ 0x0bc6, 0x0bc8,
+ 0x0bca, 0x0bcd,
+ 0x0bd7, 0x0bd7,
+ 0x0be7, 0x0bf2,
+ 0x0c01, 0x0c03,
+ 0x0c05, 0x0c0c,
+ 0x0c0e, 0x0c10,
+ 0x0c12, 0x0c28,
+ 0x0c2a, 0x0c33,
+ 0x0c35, 0x0c39,
+ 0x0c3e, 0x0c44,
+ 0x0c46, 0x0c48,
+ 0x0c4a, 0x0c4d,
+ 0x0c55, 0x0c56,
+ 0x0c60, 0x0c61,
+ 0x0c66, 0x0c6f,
+ 0x0c82, 0x0c83,
+ 0x0c85, 0x0c8c,
+ 0x0c8e, 0x0c90,
+ 0x0c92, 0x0ca8,
+ 0x0caa, 0x0cb3,
+ 0x0cb5, 0x0cb9,
+ 0x0cbe, 0x0cc4,
+ 0x0cc6, 0x0cc8,
+ 0x0cca, 0x0ccd,
+ 0x0cd5, 0x0cd6,
+ 0x0cde, 0x0cde,
+ 0x0ce0, 0x0ce1,
+ 0x0ce6, 0x0cef,
+ 0x0d02, 0x0d03,
+ 0x0d05, 0x0d0c,
+ 0x0d0e, 0x0d10,
+ 0x0d12, 0x0d28,
+ 0x0d2a, 0x0d39,
+ 0x0d3e, 0x0d43,
+ 0x0d46, 0x0d48,
+ 0x0d4a, 0x0d4d,
+ 0x0d57, 0x0d57,
+ 0x0d60, 0x0d61,
+ 0x0d66, 0x0d6f,
+ 0x0d82, 0x0d83,
+ 0x0d85, 0x0d96,
+ 0x0d9a, 0x0db1,
+ 0x0db3, 0x0dbb,
+ 0x0dbd, 0x0dbd,
+ 0x0dc0, 0x0dc6,
+ 0x0dca, 0x0dca,
+ 0x0dcf, 0x0dd4,
+ 0x0dd6, 0x0dd6,
+ 0x0dd8, 0x0ddf,
+ 0x0df2, 0x0df4,
+ 0x0e01, 0x0e3a,
+ 0x0e3f, 0x0e5b,
+ 0x0e81, 0x0e82,
+ 0x0e84, 0x0e84,
+ 0x0e87, 0x0e88,
+ 0x0e8a, 0x0e8a,
+ 0x0e8d, 0x0e8d,
+ 0x0e94, 0x0e97,
+ 0x0e99, 0x0e9f,
+ 0x0ea1, 0x0ea3,
+ 0x0ea5, 0x0ea5,
+ 0x0ea7, 0x0ea7,
+ 0x0eaa, 0x0eab,
+ 0x0ead, 0x0eb9,
+ 0x0ebb, 0x0ebd,
+ 0x0ec0, 0x0ec4,
+ 0x0ec6, 0x0ec6,
+ 0x0ec8, 0x0ecd,
+ 0x0ed0, 0x0ed9,
+ 0x0edc, 0x0edd,
+ 0x0f00, 0x0f47,
+ 0x0f49, 0x0f6a,
+ 0x0f71, 0x0f8b,
+ 0x0f90, 0x0f97,
+ 0x0f99, 0x0fbc,
+ 0x0fbe, 0x0fcc,
+ 0x0fcf, 0x0fcf,
+ 0x1000, 0x1021,
+ 0x1023, 0x1027,
+ 0x1029, 0x102a,
+ 0x102c, 0x1032,
+ 0x1036, 0x1039,
+ 0x1040, 0x1059,
+ 0x10a0, 0x10c5,
+ 0x10d0, 0x10f6,
+ 0x10fb, 0x10fb,
+ 0x1100, 0x1159,
+ 0x115f, 0x11a2,
+ 0x11a8, 0x11f9,
+ 0x1200, 0x1206,
+ 0x1208, 0x1246,
+ 0x1248, 0x1248,
+ 0x124a, 0x124d,
+ 0x1250, 0x1256,
+ 0x1258, 0x1258,
+ 0x125a, 0x125d,
+ 0x1260, 0x1286,
+ 0x1288, 0x1288,
+ 0x128a, 0x128d,
+ 0x1290, 0x12ae,
+ 0x12b0, 0x12b0,
+ 0x12b2, 0x12b5,
+ 0x12b8, 0x12be,
+ 0x12c0, 0x12c0,
+ 0x12c2, 0x12c5,
+ 0x12c8, 0x12ce,
+ 0x12d0, 0x12d6,
+ 0x12d8, 0x12ee,
+ 0x12f0, 0x130e,
+ 0x1310, 0x1310,
+ 0x1312, 0x1315,
+ 0x1318, 0x131e,
+ 0x1320, 0x1346,
+ 0x1348, 0x135a,
+ 0x1361, 0x137c,
+ 0x13a0, 0x13f4,
+ 0x1401, 0x1676,
+ 0x1680, 0x169c,
+ 0x16a0, 0x16f0,
+ 0x1780, 0x17dc,
+ 0x17e0, 0x17e9,
+ 0x1800, 0x180e,
+ 0x1810, 0x1819,
+ 0x1820, 0x1877,
+ 0x1880, 0x18a9,
+ 0x1e00, 0x1e9b,
+ 0x1ea0, 0x1ef9,
+ 0x1f00, 0x1f15,
+ 0x1f18, 0x1f1d,
+ 0x1f20, 0x1f45,
+ 0x1f48, 0x1f4d,
+ 0x1f50, 0x1f57,
+ 0x1f59, 0x1f59,
+ 0x1f5b, 0x1f5b,
+ 0x1f5d, 0x1f5d,
+ 0x1f5f, 0x1f7d,
+ 0x1f80, 0x1fb4,
+ 0x1fb6, 0x1fc4,
+ 0x1fc6, 0x1fd3,
+ 0x1fd6, 0x1fdb,
+ 0x1fdd, 0x1fef,
+ 0x1ff2, 0x1ff4,
+ 0x1ff6, 0x1ffe,
+ 0x2000, 0x2046,
+ 0x2048, 0x204d,
+ 0x206a, 0x2070,
+ 0x2074, 0x208e,
+ 0x20a0, 0x20af,
+ 0x20d0, 0x20e3,
+ 0x2100, 0x213a,
+ 0x2153, 0x2183,
+ 0x2190, 0x21f3,
+ 0x2200, 0x22f1,
+ 0x2300, 0x237b,
+ 0x237d, 0x239a,
+ 0x2400, 0x2426,
+ 0x2440, 0x244a,
+ 0x2460, 0x24ea,
+ 0x2500, 0x2595,
+ 0x25a0, 0x25f7,
+ 0x2600, 0x2613,
+ 0x2619, 0x2671,
+ 0x2701, 0x2704,
+ 0x2706, 0x2709,
+ 0x270c, 0x2727,
+ 0x2729, 0x274b,
+ 0x274d, 0x274d,
+ 0x274f, 0x2752,
+ 0x2756, 0x2756,
+ 0x2758, 0x275e,
+ 0x2761, 0x2767,
+ 0x2776, 0x2794,
+ 0x2798, 0x27af,
+ 0x27b1, 0x27be,
+ 0x2800, 0x28ff,
+ 0x2e80, 0x2e99,
+ 0x2e9b, 0x2ef3,
+ 0x2f00, 0x2fd5,
+ 0x2ff0, 0x2ffb,
+ 0x3000, 0x303a,
+ 0x303e, 0x303f,
+ 0x3041, 0x3094,
+ 0x3099, 0x309e,
+ 0x30a1, 0x30fe,
+ 0x3105, 0x312c,
+ 0x3131, 0x318e,
+ 0x3190, 0x31b7,
+ 0x3200, 0x321c,
+ 0x3220, 0x3243,
+ 0x3260, 0x327b,
+ 0x327f, 0x32b0,
+ 0x32c0, 0x32cb,
+ 0x32d0, 0x32fe,
+ 0x3300, 0x3376,
+ 0x337b, 0x33dd,
+ 0x33e0, 0x33fe,
+ 0x3400, 0x4db5,
+ 0x4e00, 0x9fa5,
+ 0xa000, 0xa48c,
+ 0xa490, 0xa4a1,
+ 0xa4a4, 0xa4b3,
+ 0xa4b5, 0xa4c0,
+ 0xa4c2, 0xa4c4,
+ 0xa4c6, 0xa4c6,
+ 0xac00, 0xd7a3,
+ 0xd800, 0xfa2d,
+ 0xfb00, 0xfb06,
+ 0xfb13, 0xfb17,
+ 0xfb1d, 0xfb36,
+ 0xfb38, 0xfb3c,
+ 0xfb3e, 0xfb3e,
+ 0xfb40, 0xfb41,
+ 0xfb43, 0xfb44,
+ 0xfb46, 0xfbb1,
+ 0xfbd3, 0xfd3f,
+ 0xfd50, 0xfd8f,
+ 0xfd92, 0xfdc7,
+ 0xfdd0, 0xfdfb,
+ 0xfe20, 0xfe23,
+ 0xfe30, 0xfe44,
+ 0xfe49, 0xfe52,
+ 0xfe54, 0xfe66,
+ 0xfe68, 0xfe6b,
+ 0xfe70, 0xfe72,
+ 0xfe74, 0xfe74,
+ 0xfe76, 0xfefc,
+ 0xfeff, 0xfeff,
+ 0xff01, 0xff5e,
+ 0xff61, 0xffbe,
+ 0xffc2, 0xffc7,
+ 0xffca, 0xffcf,
+ 0xffd2, 0xffd7,
+ 0xffda, 0xffdc,
+ 0xffe0, 0xffe6,
+ 0xffe8, 0xffee,
+ 0xfff9, 0xffff,
+ 0x10300, 0x1031e,
+ 0x10320, 0x10323,
+ 0x10330, 0x1034a,
+ 0x10400, 0x10425,
+ 0x10428, 0x1044d,
+ 0x1d000, 0x1d0f5,
+ 0x1d100, 0x1d126,
+ 0x1d12a, 0x1d1dd,
+ 0x1d400, 0x1d454,
+ 0x1d456, 0x1d49c,
+ 0x1d49e, 0x1d49f,
+ 0x1d4a2, 0x1d4a2,
+ 0x1d4a5, 0x1d4a6,
+ 0x1d4a9, 0x1d4ac,
+ 0x1d4ae, 0x1d4b9,
+ 0x1d4bb, 0x1d4bb,
+ 0x1d4bd, 0x1d4c0,
+ 0x1d4c2, 0x1d4c3,
+ 0x1d4c5, 0x1d505,
+ 0x1d507, 0x1d50a,
+ 0x1d50d, 0x1d514,
+ 0x1d516, 0x1d51c,
+ 0x1d51e, 0x1d539,
+ 0x1d53b, 0x1d53e,
+ 0x1d540, 0x1d544,
+ 0x1d546, 0x1d546,
+ 0x1d54a, 0x1d550,
+ 0x1d552, 0x1d6a3,
+ 0x1d6a8, 0x1d7c9,
+ 0x1d7ce, 0x1d7ff,
+ 0x1fffe, 0x2a6d6,
+ 0x2f800, 0x2fa1d,
+ 0x2fffe, 0x2ffff,
+ 0x3fffe, 0x3ffff,
+ 0x4fffe, 0x4ffff,
+ 0x5fffe, 0x5ffff,
+ 0x6fffe, 0x6ffff,
+ 0x7fffe, 0x7ffff,
+ 0x8fffe, 0x8ffff,
+ 0x9fffe, 0x9ffff,
+ 0xafffe, 0xaffff,
+ 0xbfffe, 0xbffff,
+ 0xcfffe, 0xcffff,
+ 0xdfffe, 0xdffff,
+ 0xe0001, 0xe0001,
+ 0xe0020, 0xe007f,
+ 0xefffe, 0x10ffff,
+}; /* CR_Age_3_1 */
+
+/* 'Age_3_2': Derived Age 3.2 */
+static const OnigCodePoint CR_Age_3_2[] = {
+ 397,
+ 0x0000, 0x0220,
+ 0x0222, 0x0233,
+ 0x0250, 0x02ad,
+ 0x02b0, 0x02ee,
+ 0x0300, 0x034f,
+ 0x0360, 0x036f,
+ 0x0374, 0x0375,
+ 0x037a, 0x037a,
+ 0x037e, 0x037e,
+ 0x0384, 0x038a,
+ 0x038c, 0x038c,
+ 0x038e, 0x03a1,
+ 0x03a3, 0x03ce,
+ 0x03d0, 0x03f6,
+ 0x0400, 0x0486,
+ 0x0488, 0x04ce,
+ 0x04d0, 0x04f5,
+ 0x04f8, 0x04f9,
+ 0x0500, 0x050f,
+ 0x0531, 0x0556,
+ 0x0559, 0x055f,
+ 0x0561, 0x0587,
+ 0x0589, 0x058a,
+ 0x0591, 0x05a1,
+ 0x05a3, 0x05b9,
+ 0x05bb, 0x05c4,
+ 0x05d0, 0x05ea,
+ 0x05f0, 0x05f4,
+ 0x060c, 0x060c,
+ 0x061b, 0x061b,
+ 0x061f, 0x061f,
+ 0x0621, 0x063a,
+ 0x0640, 0x0655,
+ 0x0660, 0x06ed,
+ 0x06f0, 0x06fe,
+ 0x0700, 0x070d,
+ 0x070f, 0x072c,
+ 0x0730, 0x074a,
+ 0x0780, 0x07b1,
+ 0x0901, 0x0903,
+ 0x0905, 0x0939,
+ 0x093c, 0x094d,
+ 0x0950, 0x0954,
+ 0x0958, 0x0970,
+ 0x0981, 0x0983,
+ 0x0985, 0x098c,
+ 0x098f, 0x0990,
+ 0x0993, 0x09a8,
+ 0x09aa, 0x09b0,
+ 0x09b2, 0x09b2,
+ 0x09b6, 0x09b9,
+ 0x09bc, 0x09bc,
+ 0x09be, 0x09c4,
+ 0x09c7, 0x09c8,
+ 0x09cb, 0x09cd,
+ 0x09d7, 0x09d7,
+ 0x09dc, 0x09dd,
+ 0x09df, 0x09e3,
+ 0x09e6, 0x09fa,
+ 0x0a02, 0x0a02,
+ 0x0a05, 0x0a0a,
+ 0x0a0f, 0x0a10,
+ 0x0a13, 0x0a28,
+ 0x0a2a, 0x0a30,
+ 0x0a32, 0x0a33,
+ 0x0a35, 0x0a36,
+ 0x0a38, 0x0a39,
+ 0x0a3c, 0x0a3c,
+ 0x0a3e, 0x0a42,
+ 0x0a47, 0x0a48,
+ 0x0a4b, 0x0a4d,
+ 0x0a59, 0x0a5c,
+ 0x0a5e, 0x0a5e,
+ 0x0a66, 0x0a74,
+ 0x0a81, 0x0a83,
+ 0x0a85, 0x0a8b,
+ 0x0a8d, 0x0a8d,
+ 0x0a8f, 0x0a91,
+ 0x0a93, 0x0aa8,
+ 0x0aaa, 0x0ab0,
+ 0x0ab2, 0x0ab3,
+ 0x0ab5, 0x0ab9,
+ 0x0abc, 0x0ac5,
+ 0x0ac7, 0x0ac9,
+ 0x0acb, 0x0acd,
+ 0x0ad0, 0x0ad0,
+ 0x0ae0, 0x0ae0,
+ 0x0ae6, 0x0aef,
+ 0x0b01, 0x0b03,
+ 0x0b05, 0x0b0c,
+ 0x0b0f, 0x0b10,
+ 0x0b13, 0x0b28,
+ 0x0b2a, 0x0b30,
+ 0x0b32, 0x0b33,
+ 0x0b36, 0x0b39,
+ 0x0b3c, 0x0b43,
+ 0x0b47, 0x0b48,
+ 0x0b4b, 0x0b4d,
+ 0x0b56, 0x0b57,
+ 0x0b5c, 0x0b5d,
+ 0x0b5f, 0x0b61,
+ 0x0b66, 0x0b70,
+ 0x0b82, 0x0b83,
+ 0x0b85, 0x0b8a,
+ 0x0b8e, 0x0b90,
+ 0x0b92, 0x0b95,
+ 0x0b99, 0x0b9a,
+ 0x0b9c, 0x0b9c,
+ 0x0b9e, 0x0b9f,
+ 0x0ba3, 0x0ba4,
+ 0x0ba8, 0x0baa,
+ 0x0bae, 0x0bb5,
+ 0x0bb7, 0x0bb9,
+ 0x0bbe, 0x0bc2,
+ 0x0bc6, 0x0bc8,
+ 0x0bca, 0x0bcd,
+ 0x0bd7, 0x0bd7,
+ 0x0be7, 0x0bf2,
+ 0x0c01, 0x0c03,
+ 0x0c05, 0x0c0c,
+ 0x0c0e, 0x0c10,
+ 0x0c12, 0x0c28,
+ 0x0c2a, 0x0c33,
+ 0x0c35, 0x0c39,
+ 0x0c3e, 0x0c44,
+ 0x0c46, 0x0c48,
+ 0x0c4a, 0x0c4d,
+ 0x0c55, 0x0c56,
+ 0x0c60, 0x0c61,
+ 0x0c66, 0x0c6f,
+ 0x0c82, 0x0c83,
+ 0x0c85, 0x0c8c,
+ 0x0c8e, 0x0c90,
+ 0x0c92, 0x0ca8,
+ 0x0caa, 0x0cb3,
+ 0x0cb5, 0x0cb9,
+ 0x0cbe, 0x0cc4,
+ 0x0cc6, 0x0cc8,
+ 0x0cca, 0x0ccd,
+ 0x0cd5, 0x0cd6,
+ 0x0cde, 0x0cde,
+ 0x0ce0, 0x0ce1,
+ 0x0ce6, 0x0cef,
+ 0x0d02, 0x0d03,
+ 0x0d05, 0x0d0c,
+ 0x0d0e, 0x0d10,
+ 0x0d12, 0x0d28,
+ 0x0d2a, 0x0d39,
+ 0x0d3e, 0x0d43,
+ 0x0d46, 0x0d48,
+ 0x0d4a, 0x0d4d,
+ 0x0d57, 0x0d57,
+ 0x0d60, 0x0d61,
+ 0x0d66, 0x0d6f,
+ 0x0d82, 0x0d83,
+ 0x0d85, 0x0d96,
+ 0x0d9a, 0x0db1,
+ 0x0db3, 0x0dbb,
+ 0x0dbd, 0x0dbd,
+ 0x0dc0, 0x0dc6,
+ 0x0dca, 0x0dca,
+ 0x0dcf, 0x0dd4,
+ 0x0dd6, 0x0dd6,
+ 0x0dd8, 0x0ddf,
+ 0x0df2, 0x0df4,
+ 0x0e01, 0x0e3a,
+ 0x0e3f, 0x0e5b,
+ 0x0e81, 0x0e82,
+ 0x0e84, 0x0e84,
+ 0x0e87, 0x0e88,
+ 0x0e8a, 0x0e8a,
+ 0x0e8d, 0x0e8d,
+ 0x0e94, 0x0e97,
+ 0x0e99, 0x0e9f,
+ 0x0ea1, 0x0ea3,
+ 0x0ea5, 0x0ea5,
+ 0x0ea7, 0x0ea7,
+ 0x0eaa, 0x0eab,
+ 0x0ead, 0x0eb9,
+ 0x0ebb, 0x0ebd,
+ 0x0ec0, 0x0ec4,
+ 0x0ec6, 0x0ec6,
+ 0x0ec8, 0x0ecd,
+ 0x0ed0, 0x0ed9,
+ 0x0edc, 0x0edd,
+ 0x0f00, 0x0f47,
+ 0x0f49, 0x0f6a,
+ 0x0f71, 0x0f8b,
+ 0x0f90, 0x0f97,
+ 0x0f99, 0x0fbc,
+ 0x0fbe, 0x0fcc,
+ 0x0fcf, 0x0fcf,
+ 0x1000, 0x1021,
+ 0x1023, 0x1027,
+ 0x1029, 0x102a,
+ 0x102c, 0x1032,
+ 0x1036, 0x1039,
+ 0x1040, 0x1059,
+ 0x10a0, 0x10c5,
+ 0x10d0, 0x10f8,
+ 0x10fb, 0x10fb,
+ 0x1100, 0x1159,
+ 0x115f, 0x11a2,
+ 0x11a8, 0x11f9,
+ 0x1200, 0x1206,
+ 0x1208, 0x1246,
+ 0x1248, 0x1248,
+ 0x124a, 0x124d,
+ 0x1250, 0x1256,
+ 0x1258, 0x1258,
+ 0x125a, 0x125d,
+ 0x1260, 0x1286,
+ 0x1288, 0x1288,
+ 0x128a, 0x128d,
+ 0x1290, 0x12ae,
+ 0x12b0, 0x12b0,
+ 0x12b2, 0x12b5,
+ 0x12b8, 0x12be,
+ 0x12c0, 0x12c0,
+ 0x12c2, 0x12c5,
+ 0x12c8, 0x12ce,
+ 0x12d0, 0x12d6,
+ 0x12d8, 0x12ee,
+ 0x12f0, 0x130e,
+ 0x1310, 0x1310,
+ 0x1312, 0x1315,
+ 0x1318, 0x131e,
+ 0x1320, 0x1346,
+ 0x1348, 0x135a,
+ 0x1361, 0x137c,
+ 0x13a0, 0x13f4,
+ 0x1401, 0x1676,
+ 0x1680, 0x169c,
+ 0x16a0, 0x16f0,
+ 0x1700, 0x170c,
+ 0x170e, 0x1714,
+ 0x1720, 0x1736,
+ 0x1740, 0x1753,
+ 0x1760, 0x176c,
+ 0x176e, 0x1770,
+ 0x1772, 0x1773,
+ 0x1780, 0x17dc,
+ 0x17e0, 0x17e9,
+ 0x1800, 0x180e,
+ 0x1810, 0x1819,
+ 0x1820, 0x1877,
+ 0x1880, 0x18a9,
+ 0x1e00, 0x1e9b,
+ 0x1ea0, 0x1ef9,
+ 0x1f00, 0x1f15,
+ 0x1f18, 0x1f1d,
+ 0x1f20, 0x1f45,
+ 0x1f48, 0x1f4d,
+ 0x1f50, 0x1f57,
+ 0x1f59, 0x1f59,
+ 0x1f5b, 0x1f5b,
+ 0x1f5d, 0x1f5d,
+ 0x1f5f, 0x1f7d,
+ 0x1f80, 0x1fb4,
+ 0x1fb6, 0x1fc4,
+ 0x1fc6, 0x1fd3,
+ 0x1fd6, 0x1fdb,
+ 0x1fdd, 0x1fef,
+ 0x1ff2, 0x1ff4,
+ 0x1ff6, 0x1ffe,
+ 0x2000, 0x2052,
+ 0x2057, 0x2057,
+ 0x205f, 0x2063,
+ 0x206a, 0x2071,
+ 0x2074, 0x208e,
+ 0x20a0, 0x20b1,
+ 0x20d0, 0x20ea,
+ 0x2100, 0x213a,
+ 0x213d, 0x214b,
+ 0x2153, 0x2183,
+ 0x2190, 0x23ce,
+ 0x2400, 0x2426,
+ 0x2440, 0x244a,
+ 0x2460, 0x24fe,
+ 0x2500, 0x2613,
+ 0x2616, 0x2617,
+ 0x2619, 0x267d,
+ 0x2680, 0x2689,
+ 0x2701, 0x2704,
+ 0x2706, 0x2709,
+ 0x270c, 0x2727,
+ 0x2729, 0x274b,
+ 0x274d, 0x274d,
+ 0x274f, 0x2752,
+ 0x2756, 0x2756,
+ 0x2758, 0x275e,
+ 0x2761, 0x2794,
+ 0x2798, 0x27af,
+ 0x27b1, 0x27be,
+ 0x27d0, 0x27eb,
+ 0x27f0, 0x2aff,
+ 0x2e80, 0x2e99,
+ 0x2e9b, 0x2ef3,
+ 0x2f00, 0x2fd5,
+ 0x2ff0, 0x2ffb,
+ 0x3000, 0x303f,
+ 0x3041, 0x3096,
+ 0x3099, 0x30ff,
+ 0x3105, 0x312c,
+ 0x3131, 0x318e,
+ 0x3190, 0x31b7,
+ 0x31f0, 0x321c,
+ 0x3220, 0x3243,
+ 0x3251, 0x327b,
+ 0x327f, 0x32cb,
+ 0x32d0, 0x32fe,
+ 0x3300, 0x3376,
+ 0x337b, 0x33dd,
+ 0x33e0, 0x33fe,
+ 0x3400, 0x4db5,
+ 0x4e00, 0x9fa5,
+ 0xa000, 0xa48c,
+ 0xa490, 0xa4c6,
+ 0xac00, 0xd7a3,
+ 0xd800, 0xfa2d,
+ 0xfa30, 0xfa6a,
+ 0xfb00, 0xfb06,
+ 0xfb13, 0xfb17,
+ 0xfb1d, 0xfb36,
+ 0xfb38, 0xfb3c,
+ 0xfb3e, 0xfb3e,
+ 0xfb40, 0xfb41,
+ 0xfb43, 0xfb44,
+ 0xfb46, 0xfbb1,
+ 0xfbd3, 0xfd3f,
+ 0xfd50, 0xfd8f,
+ 0xfd92, 0xfdc7,
+ 0xfdd0, 0xfdfc,
+ 0xfe00, 0xfe0f,
+ 0xfe20, 0xfe23,
+ 0xfe30, 0xfe46,
+ 0xfe49, 0xfe52,
+ 0xfe54, 0xfe66,
+ 0xfe68, 0xfe6b,
+ 0xfe70, 0xfe74,
+ 0xfe76, 0xfefc,
+ 0xfeff, 0xfeff,
+ 0xff01, 0xffbe,
+ 0xffc2, 0xffc7,
+ 0xffca, 0xffcf,
+ 0xffd2, 0xffd7,
+ 0xffda, 0xffdc,
+ 0xffe0, 0xffe6,
+ 0xffe8, 0xffee,
+ 0xfff9, 0xffff,
+ 0x10300, 0x1031e,
+ 0x10320, 0x10323,
+ 0x10330, 0x1034a,
+ 0x10400, 0x10425,
+ 0x10428, 0x1044d,
+ 0x1d000, 0x1d0f5,
+ 0x1d100, 0x1d126,
+ 0x1d12a, 0x1d1dd,
+ 0x1d400, 0x1d454,
+ 0x1d456, 0x1d49c,
+ 0x1d49e, 0x1d49f,
+ 0x1d4a2, 0x1d4a2,
+ 0x1d4a5, 0x1d4a6,
+ 0x1d4a9, 0x1d4ac,
+ 0x1d4ae, 0x1d4b9,
+ 0x1d4bb, 0x1d4bb,
+ 0x1d4bd, 0x1d4c0,
+ 0x1d4c2, 0x1d4c3,
+ 0x1d4c5, 0x1d505,
+ 0x1d507, 0x1d50a,
+ 0x1d50d, 0x1d514,
+ 0x1d516, 0x1d51c,
+ 0x1d51e, 0x1d539,
+ 0x1d53b, 0x1d53e,
+ 0x1d540, 0x1d544,
+ 0x1d546, 0x1d546,
+ 0x1d54a, 0x1d550,
+ 0x1d552, 0x1d6a3,
+ 0x1d6a8, 0x1d7c9,
+ 0x1d7ce, 0x1d7ff,
+ 0x1fffe, 0x2a6d6,
+ 0x2f800, 0x2fa1d,
+ 0x2fffe, 0x2ffff,
+ 0x3fffe, 0x3ffff,
+ 0x4fffe, 0x4ffff,
+ 0x5fffe, 0x5ffff,
+ 0x6fffe, 0x6ffff,
+ 0x7fffe, 0x7ffff,
+ 0x8fffe, 0x8ffff,
+ 0x9fffe, 0x9ffff,
+ 0xafffe, 0xaffff,
+ 0xbfffe, 0xbffff,
+ 0xcfffe, 0xcffff,
+ 0xdfffe, 0xdffff,
+ 0xe0001, 0xe0001,
+ 0xe0020, 0xe007f,
+ 0xefffe, 0x10ffff,
+}; /* CR_Age_3_2 */
+
+/* 'Age_4_0': Derived Age 4.0 */
+static const OnigCodePoint CR_Age_4_0[] = {
+ 412,
+ 0x0000, 0x0236,
+ 0x0250, 0x0357,
+ 0x035d, 0x036f,
+ 0x0374, 0x0375,
+ 0x037a, 0x037a,
+ 0x037e, 0x037e,
+ 0x0384, 0x038a,
+ 0x038c, 0x038c,
+ 0x038e, 0x03a1,
+ 0x03a3, 0x03ce,
+ 0x03d0, 0x03fb,
+ 0x0400, 0x0486,
+ 0x0488, 0x04ce,
+ 0x04d0, 0x04f5,
+ 0x04f8, 0x04f9,
+ 0x0500, 0x050f,
+ 0x0531, 0x0556,
+ 0x0559, 0x055f,
+ 0x0561, 0x0587,
+ 0x0589, 0x058a,
+ 0x0591, 0x05a1,
+ 0x05a3, 0x05b9,
+ 0x05bb, 0x05c4,
+ 0x05d0, 0x05ea,
+ 0x05f0, 0x05f4,
+ 0x0600, 0x0603,
+ 0x060c, 0x0615,
+ 0x061b, 0x061b,
+ 0x061f, 0x061f,
+ 0x0621, 0x063a,
+ 0x0640, 0x0658,
+ 0x0660, 0x070d,
+ 0x070f, 0x074a,
+ 0x074d, 0x074f,
+ 0x0780, 0x07b1,
+ 0x0901, 0x0939,
+ 0x093c, 0x094d,
+ 0x0950, 0x0954,
+ 0x0958, 0x0970,
+ 0x0981, 0x0983,
+ 0x0985, 0x098c,
+ 0x098f, 0x0990,
+ 0x0993, 0x09a8,
+ 0x09aa, 0x09b0,
+ 0x09b2, 0x09b2,
+ 0x09b6, 0x09b9,
+ 0x09bc, 0x09c4,
+ 0x09c7, 0x09c8,
+ 0x09cb, 0x09cd,
+ 0x09d7, 0x09d7,
+ 0x09dc, 0x09dd,
+ 0x09df, 0x09e3,
+ 0x09e6, 0x09fa,
+ 0x0a01, 0x0a03,
+ 0x0a05, 0x0a0a,
+ 0x0a0f, 0x0a10,
+ 0x0a13, 0x0a28,
+ 0x0a2a, 0x0a30,
+ 0x0a32, 0x0a33,
+ 0x0a35, 0x0a36,
+ 0x0a38, 0x0a39,
+ 0x0a3c, 0x0a3c,
+ 0x0a3e, 0x0a42,
+ 0x0a47, 0x0a48,
+ 0x0a4b, 0x0a4d,
+ 0x0a59, 0x0a5c,
+ 0x0a5e, 0x0a5e,
+ 0x0a66, 0x0a74,
+ 0x0a81, 0x0a83,
+ 0x0a85, 0x0a8d,
+ 0x0a8f, 0x0a91,
+ 0x0a93, 0x0aa8,
+ 0x0aaa, 0x0ab0,
+ 0x0ab2, 0x0ab3,
+ 0x0ab5, 0x0ab9,
+ 0x0abc, 0x0ac5,
+ 0x0ac7, 0x0ac9,
+ 0x0acb, 0x0acd,
+ 0x0ad0, 0x0ad0,
+ 0x0ae0, 0x0ae3,
+ 0x0ae6, 0x0aef,
+ 0x0af1, 0x0af1,
+ 0x0b01, 0x0b03,
+ 0x0b05, 0x0b0c,
+ 0x0b0f, 0x0b10,
+ 0x0b13, 0x0b28,
+ 0x0b2a, 0x0b30,
+ 0x0b32, 0x0b33,
+ 0x0b35, 0x0b39,
+ 0x0b3c, 0x0b43,
+ 0x0b47, 0x0b48,
+ 0x0b4b, 0x0b4d,
+ 0x0b56, 0x0b57,
+ 0x0b5c, 0x0b5d,
+ 0x0b5f, 0x0b61,
+ 0x0b66, 0x0b71,
+ 0x0b82, 0x0b83,
+ 0x0b85, 0x0b8a,
+ 0x0b8e, 0x0b90,
+ 0x0b92, 0x0b95,
+ 0x0b99, 0x0b9a,
+ 0x0b9c, 0x0b9c,
+ 0x0b9e, 0x0b9f,
+ 0x0ba3, 0x0ba4,
+ 0x0ba8, 0x0baa,
+ 0x0bae, 0x0bb5,
+ 0x0bb7, 0x0bb9,
+ 0x0bbe, 0x0bc2,
+ 0x0bc6, 0x0bc8,
+ 0x0bca, 0x0bcd,
+ 0x0bd7, 0x0bd7,
+ 0x0be7, 0x0bfa,
+ 0x0c01, 0x0c03,
+ 0x0c05, 0x0c0c,
+ 0x0c0e, 0x0c10,
+ 0x0c12, 0x0c28,
+ 0x0c2a, 0x0c33,
+ 0x0c35, 0x0c39,
+ 0x0c3e, 0x0c44,
+ 0x0c46, 0x0c48,
+ 0x0c4a, 0x0c4d,
+ 0x0c55, 0x0c56,
+ 0x0c60, 0x0c61,
+ 0x0c66, 0x0c6f,
+ 0x0c82, 0x0c83,
+ 0x0c85, 0x0c8c,
+ 0x0c8e, 0x0c90,
+ 0x0c92, 0x0ca8,
+ 0x0caa, 0x0cb3,
+ 0x0cb5, 0x0cb9,
+ 0x0cbc, 0x0cc4,
+ 0x0cc6, 0x0cc8,
+ 0x0cca, 0x0ccd,
+ 0x0cd5, 0x0cd6,
+ 0x0cde, 0x0cde,
+ 0x0ce0, 0x0ce1,
+ 0x0ce6, 0x0cef,
+ 0x0d02, 0x0d03,
+ 0x0d05, 0x0d0c,
+ 0x0d0e, 0x0d10,
+ 0x0d12, 0x0d28,
+ 0x0d2a, 0x0d39,
+ 0x0d3e, 0x0d43,
+ 0x0d46, 0x0d48,
+ 0x0d4a, 0x0d4d,
+ 0x0d57, 0x0d57,
+ 0x0d60, 0x0d61,
+ 0x0d66, 0x0d6f,
+ 0x0d82, 0x0d83,
+ 0x0d85, 0x0d96,
+ 0x0d9a, 0x0db1,
+ 0x0db3, 0x0dbb,
+ 0x0dbd, 0x0dbd,
+ 0x0dc0, 0x0dc6,
+ 0x0dca, 0x0dca,
+ 0x0dcf, 0x0dd4,
+ 0x0dd6, 0x0dd6,
+ 0x0dd8, 0x0ddf,
+ 0x0df2, 0x0df4,
+ 0x0e01, 0x0e3a,
+ 0x0e3f, 0x0e5b,
+ 0x0e81, 0x0e82,
+ 0x0e84, 0x0e84,
+ 0x0e87, 0x0e88,
+ 0x0e8a, 0x0e8a,
+ 0x0e8d, 0x0e8d,
+ 0x0e94, 0x0e97,
+ 0x0e99, 0x0e9f,
+ 0x0ea1, 0x0ea3,
+ 0x0ea5, 0x0ea5,
+ 0x0ea7, 0x0ea7,
+ 0x0eaa, 0x0eab,
+ 0x0ead, 0x0eb9,
+ 0x0ebb, 0x0ebd,
+ 0x0ec0, 0x0ec4,
+ 0x0ec6, 0x0ec6,
+ 0x0ec8, 0x0ecd,
+ 0x0ed0, 0x0ed9,
+ 0x0edc, 0x0edd,
+ 0x0f00, 0x0f47,
+ 0x0f49, 0x0f6a,
+ 0x0f71, 0x0f8b,
+ 0x0f90, 0x0f97,
+ 0x0f99, 0x0fbc,
+ 0x0fbe, 0x0fcc,
+ 0x0fcf, 0x0fcf,
+ 0x1000, 0x1021,
+ 0x1023, 0x1027,
+ 0x1029, 0x102a,
+ 0x102c, 0x1032,
+ 0x1036, 0x1039,
+ 0x1040, 0x1059,
+ 0x10a0, 0x10c5,
+ 0x10d0, 0x10f8,
+ 0x10fb, 0x10fb,
+ 0x1100, 0x1159,
+ 0x115f, 0x11a2,
+ 0x11a8, 0x11f9,
+ 0x1200, 0x1206,
+ 0x1208, 0x1246,
+ 0x1248, 0x1248,
+ 0x124a, 0x124d,
+ 0x1250, 0x1256,
+ 0x1258, 0x1258,
+ 0x125a, 0x125d,
+ 0x1260, 0x1286,
+ 0x1288, 0x1288,
+ 0x128a, 0x128d,
+ 0x1290, 0x12ae,
+ 0x12b0, 0x12b0,
+ 0x12b2, 0x12b5,
+ 0x12b8, 0x12be,
+ 0x12c0, 0x12c0,
+ 0x12c2, 0x12c5,
+ 0x12c8, 0x12ce,
+ 0x12d0, 0x12d6,
+ 0x12d8, 0x12ee,
+ 0x12f0, 0x130e,
+ 0x1310, 0x1310,
+ 0x1312, 0x1315,
+ 0x1318, 0x131e,
+ 0x1320, 0x1346,
+ 0x1348, 0x135a,
+ 0x1361, 0x137c,
+ 0x13a0, 0x13f4,
+ 0x1401, 0x1676,
+ 0x1680, 0x169c,
+ 0x16a0, 0x16f0,
+ 0x1700, 0x170c,
+ 0x170e, 0x1714,
+ 0x1720, 0x1736,
+ 0x1740, 0x1753,
+ 0x1760, 0x176c,
+ 0x176e, 0x1770,
+ 0x1772, 0x1773,
+ 0x1780, 0x17dd,
+ 0x17e0, 0x17e9,
+ 0x17f0, 0x17f9,
+ 0x1800, 0x180e,
+ 0x1810, 0x1819,
+ 0x1820, 0x1877,
+ 0x1880, 0x18a9,
+ 0x1900, 0x191c,
+ 0x1920, 0x192b,
+ 0x1930, 0x193b,
+ 0x1940, 0x1940,
+ 0x1944, 0x196d,
+ 0x1970, 0x1974,
+ 0x19e0, 0x19ff,
+ 0x1d00, 0x1d6b,
+ 0x1e00, 0x1e9b,
+ 0x1ea0, 0x1ef9,
+ 0x1f00, 0x1f15,
+ 0x1f18, 0x1f1d,
+ 0x1f20, 0x1f45,
+ 0x1f48, 0x1f4d,
+ 0x1f50, 0x1f57,
+ 0x1f59, 0x1f59,
+ 0x1f5b, 0x1f5b,
+ 0x1f5d, 0x1f5d,
+ 0x1f5f, 0x1f7d,
+ 0x1f80, 0x1fb4,
+ 0x1fb6, 0x1fc4,
+ 0x1fc6, 0x1fd3,
+ 0x1fd6, 0x1fdb,
+ 0x1fdd, 0x1fef,
+ 0x1ff2, 0x1ff4,
+ 0x1ff6, 0x1ffe,
+ 0x2000, 0x2054,
+ 0x2057, 0x2057,
+ 0x205f, 0x2063,
+ 0x206a, 0x2071,
+ 0x2074, 0x208e,
+ 0x20a0, 0x20b1,
+ 0x20d0, 0x20ea,
+ 0x2100, 0x213b,
+ 0x213d, 0x214b,
+ 0x2153, 0x2183,
+ 0x2190, 0x23d0,
+ 0x2400, 0x2426,
+ 0x2440, 0x244a,
+ 0x2460, 0x2617,
+ 0x2619, 0x267d,
+ 0x2680, 0x2691,
+ 0x26a0, 0x26a1,
+ 0x2701, 0x2704,
+ 0x2706, 0x2709,
+ 0x270c, 0x2727,
+ 0x2729, 0x274b,
+ 0x274d, 0x274d,
+ 0x274f, 0x2752,
+ 0x2756, 0x2756,
+ 0x2758, 0x275e,
+ 0x2761, 0x2794,
+ 0x2798, 0x27af,
+ 0x27b1, 0x27be,
+ 0x27d0, 0x27eb,
+ 0x27f0, 0x2b0d,
+ 0x2e80, 0x2e99,
+ 0x2e9b, 0x2ef3,
+ 0x2f00, 0x2fd5,
+ 0x2ff0, 0x2ffb,
+ 0x3000, 0x303f,
+ 0x3041, 0x3096,
+ 0x3099, 0x30ff,
+ 0x3105, 0x312c,
+ 0x3131, 0x318e,
+ 0x3190, 0x31b7,
+ 0x31f0, 0x321e,
+ 0x3220, 0x3243,
+ 0x3250, 0x327d,
+ 0x327f, 0x32fe,
+ 0x3300, 0x4db5,
+ 0x4dc0, 0x9fa5,
+ 0xa000, 0xa48c,
+ 0xa490, 0xa4c6,
+ 0xac00, 0xd7a3,
+ 0xd800, 0xfa2d,
+ 0xfa30, 0xfa6a,
+ 0xfb00, 0xfb06,
+ 0xfb13, 0xfb17,
+ 0xfb1d, 0xfb36,
+ 0xfb38, 0xfb3c,
+ 0xfb3e, 0xfb3e,
+ 0xfb40, 0xfb41,
+ 0xfb43, 0xfb44,
+ 0xfb46, 0xfbb1,
+ 0xfbd3, 0xfd3f,
+ 0xfd50, 0xfd8f,
+ 0xfd92, 0xfdc7,
+ 0xfdd0, 0xfdfd,
+ 0xfe00, 0xfe0f,
+ 0xfe20, 0xfe23,
+ 0xfe30, 0xfe52,
+ 0xfe54, 0xfe66,
+ 0xfe68, 0xfe6b,
+ 0xfe70, 0xfe74,
+ 0xfe76, 0xfefc,
+ 0xfeff, 0xfeff,
+ 0xff01, 0xffbe,
+ 0xffc2, 0xffc7,
+ 0xffca, 0xffcf,
+ 0xffd2, 0xffd7,
+ 0xffda, 0xffdc,
+ 0xffe0, 0xffe6,
+ 0xffe8, 0xffee,
+ 0xfff9, 0x1000b,
+ 0x1000d, 0x10026,
+ 0x10028, 0x1003a,
+ 0x1003c, 0x1003d,
+ 0x1003f, 0x1004d,
+ 0x10050, 0x1005d,
+ 0x10080, 0x100fa,
+ 0x10100, 0x10102,
+ 0x10107, 0x10133,
+ 0x10137, 0x1013f,
+ 0x10300, 0x1031e,
+ 0x10320, 0x10323,
+ 0x10330, 0x1034a,
+ 0x10380, 0x1039d,
+ 0x1039f, 0x1039f,
+ 0x10400, 0x1049d,
+ 0x104a0, 0x104a9,
+ 0x10800, 0x10805,
+ 0x10808, 0x10808,
+ 0x1080a, 0x10835,
+ 0x10837, 0x10838,
+ 0x1083c, 0x1083c,
+ 0x1083f, 0x1083f,
+ 0x1d000, 0x1d0f5,
+ 0x1d100, 0x1d126,
+ 0x1d12a, 0x1d1dd,
+ 0x1d300, 0x1d356,
+ 0x1d400, 0x1d454,
+ 0x1d456, 0x1d49c,
+ 0x1d49e, 0x1d49f,
+ 0x1d4a2, 0x1d4a2,
+ 0x1d4a5, 0x1d4a6,
+ 0x1d4a9, 0x1d4ac,
+ 0x1d4ae, 0x1d4b9,
+ 0x1d4bb, 0x1d4bb,
+ 0x1d4bd, 0x1d4c3,
+ 0x1d4c5, 0x1d505,
+ 0x1d507, 0x1d50a,
+ 0x1d50d, 0x1d514,
+ 0x1d516, 0x1d51c,
+ 0x1d51e, 0x1d539,
+ 0x1d53b, 0x1d53e,
+ 0x1d540, 0x1d544,
+ 0x1d546, 0x1d546,
+ 0x1d54a, 0x1d550,
+ 0x1d552, 0x1d6a3,
+ 0x1d6a8, 0x1d7c9,
+ 0x1d7ce, 0x1d7ff,
+ 0x1fffe, 0x2a6d6,
+ 0x2f800, 0x2fa1d,
+ 0x2fffe, 0x2ffff,
+ 0x3fffe, 0x3ffff,
+ 0x4fffe, 0x4ffff,
+ 0x5fffe, 0x5ffff,
+ 0x6fffe, 0x6ffff,
+ 0x7fffe, 0x7ffff,
+ 0x8fffe, 0x8ffff,
+ 0x9fffe, 0x9ffff,
+ 0xafffe, 0xaffff,
+ 0xbfffe, 0xbffff,
+ 0xcfffe, 0xcffff,
+ 0xdfffe, 0xdffff,
+ 0xe0001, 0xe0001,
+ 0xe0020, 0xe007f,
+ 0xe0100, 0xe01ef,
+ 0xefffe, 0x10ffff,
+}; /* CR_Age_4_0 */
+
+/* 'Age_4_1': Derived Age 4.1 */
+static const OnigCodePoint CR_Age_4_1[] = {
+ 430,
+ 0x0000, 0x0241,
+ 0x0250, 0x036f,
+ 0x0374, 0x0375,
+ 0x037a, 0x037a,
+ 0x037e, 0x037e,
+ 0x0384, 0x038a,
+ 0x038c, 0x038c,
+ 0x038e, 0x03a1,
+ 0x03a3, 0x03ce,
+ 0x03d0, 0x0486,
+ 0x0488, 0x04ce,
+ 0x04d0, 0x04f9,
+ 0x0500, 0x050f,
+ 0x0531, 0x0556,
+ 0x0559, 0x055f,
+ 0x0561, 0x0587,
+ 0x0589, 0x058a,
+ 0x0591, 0x05b9,
+ 0x05bb, 0x05c7,
+ 0x05d0, 0x05ea,
+ 0x05f0, 0x05f4,
+ 0x0600, 0x0603,
+ 0x060b, 0x0615,
+ 0x061b, 0x061b,
+ 0x061e, 0x061f,
+ 0x0621, 0x063a,
+ 0x0640, 0x065e,
+ 0x0660, 0x070d,
+ 0x070f, 0x074a,
+ 0x074d, 0x076d,
+ 0x0780, 0x07b1,
+ 0x0901, 0x0939,
+ 0x093c, 0x094d,
+ 0x0950, 0x0954,
+ 0x0958, 0x0970,
+ 0x097d, 0x097d,
+ 0x0981, 0x0983,
+ 0x0985, 0x098c,
+ 0x098f, 0x0990,
+ 0x0993, 0x09a8,
+ 0x09aa, 0x09b0,
+ 0x09b2, 0x09b2,
+ 0x09b6, 0x09b9,
+ 0x09bc, 0x09c4,
+ 0x09c7, 0x09c8,
+ 0x09cb, 0x09ce,
+ 0x09d7, 0x09d7,
+ 0x09dc, 0x09dd,
+ 0x09df, 0x09e3,
+ 0x09e6, 0x09fa,
+ 0x0a01, 0x0a03,
+ 0x0a05, 0x0a0a,
+ 0x0a0f, 0x0a10,
+ 0x0a13, 0x0a28,
+ 0x0a2a, 0x0a30,
+ 0x0a32, 0x0a33,
+ 0x0a35, 0x0a36,
+ 0x0a38, 0x0a39,
+ 0x0a3c, 0x0a3c,
+ 0x0a3e, 0x0a42,
+ 0x0a47, 0x0a48,
+ 0x0a4b, 0x0a4d,
+ 0x0a59, 0x0a5c,
+ 0x0a5e, 0x0a5e,
+ 0x0a66, 0x0a74,
+ 0x0a81, 0x0a83,
+ 0x0a85, 0x0a8d,
+ 0x0a8f, 0x0a91,
+ 0x0a93, 0x0aa8,
+ 0x0aaa, 0x0ab0,
+ 0x0ab2, 0x0ab3,
+ 0x0ab5, 0x0ab9,
+ 0x0abc, 0x0ac5,
+ 0x0ac7, 0x0ac9,
+ 0x0acb, 0x0acd,
+ 0x0ad0, 0x0ad0,
+ 0x0ae0, 0x0ae3,
+ 0x0ae6, 0x0aef,
+ 0x0af1, 0x0af1,
+ 0x0b01, 0x0b03,
+ 0x0b05, 0x0b0c,
+ 0x0b0f, 0x0b10,
+ 0x0b13, 0x0b28,
+ 0x0b2a, 0x0b30,
+ 0x0b32, 0x0b33,
+ 0x0b35, 0x0b39,
+ 0x0b3c, 0x0b43,
+ 0x0b47, 0x0b48,
+ 0x0b4b, 0x0b4d,
+ 0x0b56, 0x0b57,
+ 0x0b5c, 0x0b5d,
+ 0x0b5f, 0x0b61,
+ 0x0b66, 0x0b71,
+ 0x0b82, 0x0b83,
+ 0x0b85, 0x0b8a,
+ 0x0b8e, 0x0b90,
+ 0x0b92, 0x0b95,
+ 0x0b99, 0x0b9a,
+ 0x0b9c, 0x0b9c,
+ 0x0b9e, 0x0b9f,
+ 0x0ba3, 0x0ba4,
+ 0x0ba8, 0x0baa,
+ 0x0bae, 0x0bb9,
+ 0x0bbe, 0x0bc2,
+ 0x0bc6, 0x0bc8,
+ 0x0bca, 0x0bcd,
+ 0x0bd7, 0x0bd7,
+ 0x0be6, 0x0bfa,
+ 0x0c01, 0x0c03,
+ 0x0c05, 0x0c0c,
+ 0x0c0e, 0x0c10,
+ 0x0c12, 0x0c28,
+ 0x0c2a, 0x0c33,
+ 0x0c35, 0x0c39,
+ 0x0c3e, 0x0c44,
+ 0x0c46, 0x0c48,
+ 0x0c4a, 0x0c4d,
+ 0x0c55, 0x0c56,
+ 0x0c60, 0x0c61,
+ 0x0c66, 0x0c6f,
+ 0x0c82, 0x0c83,
+ 0x0c85, 0x0c8c,
+ 0x0c8e, 0x0c90,
+ 0x0c92, 0x0ca8,
+ 0x0caa, 0x0cb3,
+ 0x0cb5, 0x0cb9,
+ 0x0cbc, 0x0cc4,
+ 0x0cc6, 0x0cc8,
+ 0x0cca, 0x0ccd,
+ 0x0cd5, 0x0cd6,
+ 0x0cde, 0x0cde,
+ 0x0ce0, 0x0ce1,
+ 0x0ce6, 0x0cef,
+ 0x0d02, 0x0d03,
+ 0x0d05, 0x0d0c,
+ 0x0d0e, 0x0d10,
+ 0x0d12, 0x0d28,
+ 0x0d2a, 0x0d39,
+ 0x0d3e, 0x0d43,
+ 0x0d46, 0x0d48,
+ 0x0d4a, 0x0d4d,
+ 0x0d57, 0x0d57,
+ 0x0d60, 0x0d61,
+ 0x0d66, 0x0d6f,
+ 0x0d82, 0x0d83,
+ 0x0d85, 0x0d96,
+ 0x0d9a, 0x0db1,
+ 0x0db3, 0x0dbb,
+ 0x0dbd, 0x0dbd,
+ 0x0dc0, 0x0dc6,
+ 0x0dca, 0x0dca,
+ 0x0dcf, 0x0dd4,
+ 0x0dd6, 0x0dd6,
+ 0x0dd8, 0x0ddf,
+ 0x0df2, 0x0df4,
+ 0x0e01, 0x0e3a,
+ 0x0e3f, 0x0e5b,
+ 0x0e81, 0x0e82,
+ 0x0e84, 0x0e84,
+ 0x0e87, 0x0e88,
+ 0x0e8a, 0x0e8a,
+ 0x0e8d, 0x0e8d,
+ 0x0e94, 0x0e97,
+ 0x0e99, 0x0e9f,
+ 0x0ea1, 0x0ea3,
+ 0x0ea5, 0x0ea5,
+ 0x0ea7, 0x0ea7,
+ 0x0eaa, 0x0eab,
+ 0x0ead, 0x0eb9,
+ 0x0ebb, 0x0ebd,
+ 0x0ec0, 0x0ec4,
+ 0x0ec6, 0x0ec6,
+ 0x0ec8, 0x0ecd,
+ 0x0ed0, 0x0ed9,
+ 0x0edc, 0x0edd,
+ 0x0f00, 0x0f47,
+ 0x0f49, 0x0f6a,
+ 0x0f71, 0x0f8b,
+ 0x0f90, 0x0f97,
+ 0x0f99, 0x0fbc,
+ 0x0fbe, 0x0fcc,
+ 0x0fcf, 0x0fd1,
+ 0x1000, 0x1021,
+ 0x1023, 0x1027,
+ 0x1029, 0x102a,
+ 0x102c, 0x1032,
+ 0x1036, 0x1039,
+ 0x1040, 0x1059,
+ 0x10a0, 0x10c5,
+ 0x10d0, 0x10fc,
+ 0x1100, 0x1159,
+ 0x115f, 0x11a2,
+ 0x11a8, 0x11f9,
+ 0x1200, 0x1248,
+ 0x124a, 0x124d,
+ 0x1250, 0x1256,
+ 0x1258, 0x1258,
+ 0x125a, 0x125d,
+ 0x1260, 0x1288,
+ 0x128a, 0x128d,
+ 0x1290, 0x12b0,
+ 0x12b2, 0x12b5,
+ 0x12b8, 0x12be,
+ 0x12c0, 0x12c0,
+ 0x12c2, 0x12c5,
+ 0x12c8, 0x12d6,
+ 0x12d8, 0x1310,
+ 0x1312, 0x1315,
+ 0x1318, 0x135a,
+ 0x135f, 0x137c,
+ 0x1380, 0x1399,
+ 0x13a0, 0x13f4,
+ 0x1401, 0x1676,
+ 0x1680, 0x169c,
+ 0x16a0, 0x16f0,
+ 0x1700, 0x170c,
+ 0x170e, 0x1714,
+ 0x1720, 0x1736,
+ 0x1740, 0x1753,
+ 0x1760, 0x176c,
+ 0x176e, 0x1770,
+ 0x1772, 0x1773,
+ 0x1780, 0x17dd,
+ 0x17e0, 0x17e9,
+ 0x17f0, 0x17f9,
+ 0x1800, 0x180e,
+ 0x1810, 0x1819,
+ 0x1820, 0x1877,
+ 0x1880, 0x18a9,
+ 0x1900, 0x191c,
+ 0x1920, 0x192b,
+ 0x1930, 0x193b,
+ 0x1940, 0x1940,
+ 0x1944, 0x196d,
+ 0x1970, 0x1974,
+ 0x1980, 0x19a9,
+ 0x19b0, 0x19c9,
+ 0x19d0, 0x19d9,
+ 0x19de, 0x1a1b,
+ 0x1a1e, 0x1a1f,
+ 0x1d00, 0x1dc3,
+ 0x1e00, 0x1e9b,
+ 0x1ea0, 0x1ef9,
+ 0x1f00, 0x1f15,
+ 0x1f18, 0x1f1d,
+ 0x1f20, 0x1f45,
+ 0x1f48, 0x1f4d,
+ 0x1f50, 0x1f57,
+ 0x1f59, 0x1f59,
+ 0x1f5b, 0x1f5b,
+ 0x1f5d, 0x1f5d,
+ 0x1f5f, 0x1f7d,
+ 0x1f80, 0x1fb4,
+ 0x1fb6, 0x1fc4,
+ 0x1fc6, 0x1fd3,
+ 0x1fd6, 0x1fdb,
+ 0x1fdd, 0x1fef,
+ 0x1ff2, 0x1ff4,
+ 0x1ff6, 0x1ffe,
+ 0x2000, 0x2063,
+ 0x206a, 0x2071,
+ 0x2074, 0x208e,
+ 0x2090, 0x2094,
+ 0x20a0, 0x20b5,
+ 0x20d0, 0x20eb,
+ 0x2100, 0x214c,
+ 0x2153, 0x2183,
+ 0x2190, 0x23db,
+ 0x2400, 0x2426,
+ 0x2440, 0x244a,
+ 0x2460, 0x269c,
+ 0x26a0, 0x26b1,
+ 0x2701, 0x2704,
+ 0x2706, 0x2709,
+ 0x270c, 0x2727,
+ 0x2729, 0x274b,
+ 0x274d, 0x274d,
+ 0x274f, 0x2752,
+ 0x2756, 0x2756,
+ 0x2758, 0x275e,
+ 0x2761, 0x2794,
+ 0x2798, 0x27af,
+ 0x27b1, 0x27be,
+ 0x27c0, 0x27c6,
+ 0x27d0, 0x27eb,
+ 0x27f0, 0x2b13,
+ 0x2c00, 0x2c2e,
+ 0x2c30, 0x2c5e,
+ 0x2c80, 0x2cea,
+ 0x2cf9, 0x2d25,
+ 0x2d30, 0x2d65,
+ 0x2d6f, 0x2d6f,
+ 0x2d80, 0x2d96,
+ 0x2da0, 0x2da6,
+ 0x2da8, 0x2dae,
+ 0x2db0, 0x2db6,
+ 0x2db8, 0x2dbe,
+ 0x2dc0, 0x2dc6,
+ 0x2dc8, 0x2dce,
+ 0x2dd0, 0x2dd6,
+ 0x2dd8, 0x2dde,
+ 0x2e00, 0x2e17,
+ 0x2e1c, 0x2e1d,
+ 0x2e80, 0x2e99,
+ 0x2e9b, 0x2ef3,
+ 0x2f00, 0x2fd5,
+ 0x2ff0, 0x2ffb,
+ 0x3000, 0x303f,
+ 0x3041, 0x3096,
+ 0x3099, 0x30ff,
+ 0x3105, 0x312c,
+ 0x3131, 0x318e,
+ 0x3190, 0x31b7,
+ 0x31c0, 0x31cf,
+ 0x31f0, 0x321e,
+ 0x3220, 0x3243,
+ 0x3250, 0x32fe,
+ 0x3300, 0x4db5,
+ 0x4dc0, 0x9fbb,
+ 0xa000, 0xa48c,
+ 0xa490, 0xa4c6,
+ 0xa700, 0xa716,
+ 0xa800, 0xa82b,
+ 0xac00, 0xd7a3,
+ 0xd800, 0xfa2d,
+ 0xfa30, 0xfa6a,
+ 0xfa70, 0xfad9,
+ 0xfb00, 0xfb06,
+ 0xfb13, 0xfb17,
+ 0xfb1d, 0xfb36,
+ 0xfb38, 0xfb3c,
+ 0xfb3e, 0xfb3e,
+ 0xfb40, 0xfb41,
+ 0xfb43, 0xfb44,
+ 0xfb46, 0xfbb1,
+ 0xfbd3, 0xfd3f,
+ 0xfd50, 0xfd8f,
+ 0xfd92, 0xfdc7,
+ 0xfdd0, 0xfdfd,
+ 0xfe00, 0xfe19,
+ 0xfe20, 0xfe23,
+ 0xfe30, 0xfe52,
+ 0xfe54, 0xfe66,
+ 0xfe68, 0xfe6b,
+ 0xfe70, 0xfe74,
+ 0xfe76, 0xfefc,
+ 0xfeff, 0xfeff,
+ 0xff01, 0xffbe,
+ 0xffc2, 0xffc7,
+ 0xffca, 0xffcf,
+ 0xffd2, 0xffd7,
+ 0xffda, 0xffdc,
+ 0xffe0, 0xffe6,
+ 0xffe8, 0xffee,
+ 0xfff9, 0x1000b,
+ 0x1000d, 0x10026,
+ 0x10028, 0x1003a,
+ 0x1003c, 0x1003d,
+ 0x1003f, 0x1004d,
+ 0x10050, 0x1005d,
+ 0x10080, 0x100fa,
+ 0x10100, 0x10102,
+ 0x10107, 0x10133,
+ 0x10137, 0x1018a,
+ 0x10300, 0x1031e,
+ 0x10320, 0x10323,
+ 0x10330, 0x1034a,
+ 0x10380, 0x1039d,
+ 0x1039f, 0x103c3,
+ 0x103c8, 0x103d5,
+ 0x10400, 0x1049d,
+ 0x104a0, 0x104a9,
+ 0x10800, 0x10805,
+ 0x10808, 0x10808,
+ 0x1080a, 0x10835,
+ 0x10837, 0x10838,
+ 0x1083c, 0x1083c,
+ 0x1083f, 0x1083f,
+ 0x10a00, 0x10a03,
+ 0x10a05, 0x10a06,
+ 0x10a0c, 0x10a13,
+ 0x10a15, 0x10a17,
+ 0x10a19, 0x10a33,
+ 0x10a38, 0x10a3a,
+ 0x10a3f, 0x10a47,
+ 0x10a50, 0x10a58,
+ 0x1d000, 0x1d0f5,
+ 0x1d100, 0x1d126,
+ 0x1d12a, 0x1d1dd,
+ 0x1d200, 0x1d245,
+ 0x1d300, 0x1d356,
+ 0x1d400, 0x1d454,
+ 0x1d456, 0x1d49c,
+ 0x1d49e, 0x1d49f,
+ 0x1d4a2, 0x1d4a2,
+ 0x1d4a5, 0x1d4a6,
+ 0x1d4a9, 0x1d4ac,
+ 0x1d4ae, 0x1d4b9,
+ 0x1d4bb, 0x1d4bb,
+ 0x1d4bd, 0x1d4c3,
+ 0x1d4c5, 0x1d505,
+ 0x1d507, 0x1d50a,
+ 0x1d50d, 0x1d514,
+ 0x1d516, 0x1d51c,
+ 0x1d51e, 0x1d539,
+ 0x1d53b, 0x1d53e,
+ 0x1d540, 0x1d544,
+ 0x1d546, 0x1d546,
+ 0x1d54a, 0x1d550,
+ 0x1d552, 0x1d6a5,
+ 0x1d6a8, 0x1d7c9,
+ 0x1d7ce, 0x1d7ff,
+ 0x1fffe, 0x2a6d6,
+ 0x2f800, 0x2fa1d,
+ 0x2fffe, 0x2ffff,
+ 0x3fffe, 0x3ffff,
+ 0x4fffe, 0x4ffff,
+ 0x5fffe, 0x5ffff,
+ 0x6fffe, 0x6ffff,
+ 0x7fffe, 0x7ffff,
+ 0x8fffe, 0x8ffff,
+ 0x9fffe, 0x9ffff,
+ 0xafffe, 0xaffff,
+ 0xbfffe, 0xbffff,
+ 0xcfffe, 0xcffff,
+ 0xdfffe, 0xdffff,
+ 0xe0001, 0xe0001,
+ 0xe0020, 0xe007f,
+ 0xe0100, 0xe01ef,
+ 0xefffe, 0x10ffff,
+}; /* CR_Age_4_1 */
+
+/* 'Age_5_0': Derived Age 5.0 */
+static const OnigCodePoint CR_Age_5_0[] = {
+ 440,
+ 0x0000, 0x036f,
+ 0x0374, 0x0375,
+ 0x037a, 0x037e,
+ 0x0384, 0x038a,
+ 0x038c, 0x038c,
+ 0x038e, 0x03a1,
+ 0x03a3, 0x03ce,
+ 0x03d0, 0x0486,
+ 0x0488, 0x0513,
+ 0x0531, 0x0556,
+ 0x0559, 0x055f,
+ 0x0561, 0x0587,
+ 0x0589, 0x058a,
+ 0x0591, 0x05c7,
+ 0x05d0, 0x05ea,
+ 0x05f0, 0x05f4,
+ 0x0600, 0x0603,
+ 0x060b, 0x0615,
+ 0x061b, 0x061b,
+ 0x061e, 0x061f,
+ 0x0621, 0x063a,
+ 0x0640, 0x065e,
+ 0x0660, 0x070d,
+ 0x070f, 0x074a,
+ 0x074d, 0x076d,
+ 0x0780, 0x07b1,
+ 0x07c0, 0x07fa,
+ 0x0901, 0x0939,
+ 0x093c, 0x094d,
+ 0x0950, 0x0954,
+ 0x0958, 0x0970,
+ 0x097b, 0x097f,
+ 0x0981, 0x0983,
+ 0x0985, 0x098c,
+ 0x098f, 0x0990,
+ 0x0993, 0x09a8,
+ 0x09aa, 0x09b0,
+ 0x09b2, 0x09b2,
+ 0x09b6, 0x09b9,
+ 0x09bc, 0x09c4,
+ 0x09c7, 0x09c8,
+ 0x09cb, 0x09ce,
+ 0x09d7, 0x09d7,
+ 0x09dc, 0x09dd,
+ 0x09df, 0x09e3,
+ 0x09e6, 0x09fa,
+ 0x0a01, 0x0a03,
+ 0x0a05, 0x0a0a,
+ 0x0a0f, 0x0a10,
+ 0x0a13, 0x0a28,
+ 0x0a2a, 0x0a30,
+ 0x0a32, 0x0a33,
+ 0x0a35, 0x0a36,
+ 0x0a38, 0x0a39,
+ 0x0a3c, 0x0a3c,
+ 0x0a3e, 0x0a42,
+ 0x0a47, 0x0a48,
+ 0x0a4b, 0x0a4d,
+ 0x0a59, 0x0a5c,
+ 0x0a5e, 0x0a5e,
+ 0x0a66, 0x0a74,
+ 0x0a81, 0x0a83,
+ 0x0a85, 0x0a8d,
+ 0x0a8f, 0x0a91,
+ 0x0a93, 0x0aa8,
+ 0x0aaa, 0x0ab0,
+ 0x0ab2, 0x0ab3,
+ 0x0ab5, 0x0ab9,
+ 0x0abc, 0x0ac5,
+ 0x0ac7, 0x0ac9,
+ 0x0acb, 0x0acd,
+ 0x0ad0, 0x0ad0,
+ 0x0ae0, 0x0ae3,
+ 0x0ae6, 0x0aef,
+ 0x0af1, 0x0af1,
+ 0x0b01, 0x0b03,
+ 0x0b05, 0x0b0c,
+ 0x0b0f, 0x0b10,
+ 0x0b13, 0x0b28,
+ 0x0b2a, 0x0b30,
+ 0x0b32, 0x0b33,
+ 0x0b35, 0x0b39,
+ 0x0b3c, 0x0b43,
+ 0x0b47, 0x0b48,
+ 0x0b4b, 0x0b4d,
+ 0x0b56, 0x0b57,
+ 0x0b5c, 0x0b5d,
+ 0x0b5f, 0x0b61,
+ 0x0b66, 0x0b71,
+ 0x0b82, 0x0b83,
+ 0x0b85, 0x0b8a,
+ 0x0b8e, 0x0b90,
+ 0x0b92, 0x0b95,
+ 0x0b99, 0x0b9a,
+ 0x0b9c, 0x0b9c,
+ 0x0b9e, 0x0b9f,
+ 0x0ba3, 0x0ba4,
+ 0x0ba8, 0x0baa,
+ 0x0bae, 0x0bb9,
+ 0x0bbe, 0x0bc2,
+ 0x0bc6, 0x0bc8,
+ 0x0bca, 0x0bcd,
+ 0x0bd7, 0x0bd7,
+ 0x0be6, 0x0bfa,
+ 0x0c01, 0x0c03,
+ 0x0c05, 0x0c0c,
+ 0x0c0e, 0x0c10,
+ 0x0c12, 0x0c28,
+ 0x0c2a, 0x0c33,
+ 0x0c35, 0x0c39,
+ 0x0c3e, 0x0c44,
+ 0x0c46, 0x0c48,
+ 0x0c4a, 0x0c4d,
+ 0x0c55, 0x0c56,
+ 0x0c60, 0x0c61,
+ 0x0c66, 0x0c6f,
+ 0x0c82, 0x0c83,
+ 0x0c85, 0x0c8c,
+ 0x0c8e, 0x0c90,
+ 0x0c92, 0x0ca8,
+ 0x0caa, 0x0cb3,
+ 0x0cb5, 0x0cb9,
+ 0x0cbc, 0x0cc4,
+ 0x0cc6, 0x0cc8,
+ 0x0cca, 0x0ccd,
+ 0x0cd5, 0x0cd6,
+ 0x0cde, 0x0cde,
+ 0x0ce0, 0x0ce3,
+ 0x0ce6, 0x0cef,
+ 0x0cf1, 0x0cf2,
+ 0x0d02, 0x0d03,
+ 0x0d05, 0x0d0c,
+ 0x0d0e, 0x0d10,
+ 0x0d12, 0x0d28,
+ 0x0d2a, 0x0d39,
+ 0x0d3e, 0x0d43,
+ 0x0d46, 0x0d48,
+ 0x0d4a, 0x0d4d,
+ 0x0d57, 0x0d57,
+ 0x0d60, 0x0d61,
+ 0x0d66, 0x0d6f,
+ 0x0d82, 0x0d83,
+ 0x0d85, 0x0d96,
+ 0x0d9a, 0x0db1,
+ 0x0db3, 0x0dbb,
+ 0x0dbd, 0x0dbd,
+ 0x0dc0, 0x0dc6,
+ 0x0dca, 0x0dca,
+ 0x0dcf, 0x0dd4,
+ 0x0dd6, 0x0dd6,
+ 0x0dd8, 0x0ddf,
+ 0x0df2, 0x0df4,
+ 0x0e01, 0x0e3a,
+ 0x0e3f, 0x0e5b,
+ 0x0e81, 0x0e82,
+ 0x0e84, 0x0e84,
+ 0x0e87, 0x0e88,
+ 0x0e8a, 0x0e8a,
+ 0x0e8d, 0x0e8d,
+ 0x0e94, 0x0e97,
+ 0x0e99, 0x0e9f,
+ 0x0ea1, 0x0ea3,
+ 0x0ea5, 0x0ea5,
+ 0x0ea7, 0x0ea7,
+ 0x0eaa, 0x0eab,
+ 0x0ead, 0x0eb9,
+ 0x0ebb, 0x0ebd,
+ 0x0ec0, 0x0ec4,
+ 0x0ec6, 0x0ec6,
+ 0x0ec8, 0x0ecd,
+ 0x0ed0, 0x0ed9,
+ 0x0edc, 0x0edd,
+ 0x0f00, 0x0f47,
+ 0x0f49, 0x0f6a,
+ 0x0f71, 0x0f8b,
+ 0x0f90, 0x0f97,
+ 0x0f99, 0x0fbc,
+ 0x0fbe, 0x0fcc,
+ 0x0fcf, 0x0fd1,
+ 0x1000, 0x1021,
+ 0x1023, 0x1027,
+ 0x1029, 0x102a,
+ 0x102c, 0x1032,
+ 0x1036, 0x1039,
+ 0x1040, 0x1059,
+ 0x10a0, 0x10c5,
+ 0x10d0, 0x10fc,
+ 0x1100, 0x1159,
+ 0x115f, 0x11a2,
+ 0x11a8, 0x11f9,
+ 0x1200, 0x1248,
+ 0x124a, 0x124d,
+ 0x1250, 0x1256,
+ 0x1258, 0x1258,
+ 0x125a, 0x125d,
+ 0x1260, 0x1288,
+ 0x128a, 0x128d,
+ 0x1290, 0x12b0,
+ 0x12b2, 0x12b5,
+ 0x12b8, 0x12be,
+ 0x12c0, 0x12c0,
+ 0x12c2, 0x12c5,
+ 0x12c8, 0x12d6,
+ 0x12d8, 0x1310,
+ 0x1312, 0x1315,
+ 0x1318, 0x135a,
+ 0x135f, 0x137c,
+ 0x1380, 0x1399,
+ 0x13a0, 0x13f4,
+ 0x1401, 0x1676,
+ 0x1680, 0x169c,
+ 0x16a0, 0x16f0,
+ 0x1700, 0x170c,
+ 0x170e, 0x1714,
+ 0x1720, 0x1736,
+ 0x1740, 0x1753,
+ 0x1760, 0x176c,
+ 0x176e, 0x1770,
+ 0x1772, 0x1773,
+ 0x1780, 0x17dd,
+ 0x17e0, 0x17e9,
+ 0x17f0, 0x17f9,
+ 0x1800, 0x180e,
+ 0x1810, 0x1819,
+ 0x1820, 0x1877,
+ 0x1880, 0x18a9,
+ 0x1900, 0x191c,
+ 0x1920, 0x192b,
+ 0x1930, 0x193b,
+ 0x1940, 0x1940,
+ 0x1944, 0x196d,
+ 0x1970, 0x1974,
+ 0x1980, 0x19a9,
+ 0x19b0, 0x19c9,
+ 0x19d0, 0x19d9,
+ 0x19de, 0x1a1b,
+ 0x1a1e, 0x1a1f,
+ 0x1b00, 0x1b4b,
+ 0x1b50, 0x1b7c,
+ 0x1d00, 0x1dca,
+ 0x1dfe, 0x1e9b,
+ 0x1ea0, 0x1ef9,
+ 0x1f00, 0x1f15,
+ 0x1f18, 0x1f1d,
+ 0x1f20, 0x1f45,
+ 0x1f48, 0x1f4d,
+ 0x1f50, 0x1f57,
+ 0x1f59, 0x1f59,
+ 0x1f5b, 0x1f5b,
+ 0x1f5d, 0x1f5d,
+ 0x1f5f, 0x1f7d,
+ 0x1f80, 0x1fb4,
+ 0x1fb6, 0x1fc4,
+ 0x1fc6, 0x1fd3,
+ 0x1fd6, 0x1fdb,
+ 0x1fdd, 0x1fef,
+ 0x1ff2, 0x1ff4,
+ 0x1ff6, 0x1ffe,
+ 0x2000, 0x2063,
+ 0x206a, 0x2071,
+ 0x2074, 0x208e,
+ 0x2090, 0x2094,
+ 0x20a0, 0x20b5,
+ 0x20d0, 0x20ef,
+ 0x2100, 0x214e,
+ 0x2153, 0x2184,
+ 0x2190, 0x23e7,
+ 0x2400, 0x2426,
+ 0x2440, 0x244a,
+ 0x2460, 0x269c,
+ 0x26a0, 0x26b2,
+ 0x2701, 0x2704,
+ 0x2706, 0x2709,
+ 0x270c, 0x2727,
+ 0x2729, 0x274b,
+ 0x274d, 0x274d,
+ 0x274f, 0x2752,
+ 0x2756, 0x2756,
+ 0x2758, 0x275e,
+ 0x2761, 0x2794,
+ 0x2798, 0x27af,
+ 0x27b1, 0x27be,
+ 0x27c0, 0x27ca,
+ 0x27d0, 0x27eb,
+ 0x27f0, 0x2b1a,
+ 0x2b20, 0x2b23,
+ 0x2c00, 0x2c2e,
+ 0x2c30, 0x2c5e,
+ 0x2c60, 0x2c6c,
+ 0x2c74, 0x2c77,
+ 0x2c80, 0x2cea,
+ 0x2cf9, 0x2d25,
+ 0x2d30, 0x2d65,
+ 0x2d6f, 0x2d6f,
+ 0x2d80, 0x2d96,
+ 0x2da0, 0x2da6,
+ 0x2da8, 0x2dae,
+ 0x2db0, 0x2db6,
+ 0x2db8, 0x2dbe,
+ 0x2dc0, 0x2dc6,
+ 0x2dc8, 0x2dce,
+ 0x2dd0, 0x2dd6,
+ 0x2dd8, 0x2dde,
+ 0x2e00, 0x2e17,
+ 0x2e1c, 0x2e1d,
+ 0x2e80, 0x2e99,
+ 0x2e9b, 0x2ef3,
+ 0x2f00, 0x2fd5,
+ 0x2ff0, 0x2ffb,
+ 0x3000, 0x303f,
+ 0x3041, 0x3096,
+ 0x3099, 0x30ff,
+ 0x3105, 0x312c,
+ 0x3131, 0x318e,
+ 0x3190, 0x31b7,
+ 0x31c0, 0x31cf,
+ 0x31f0, 0x321e,
+ 0x3220, 0x3243,
+ 0x3250, 0x32fe,
+ 0x3300, 0x4db5,
+ 0x4dc0, 0x9fbb,
+ 0xa000, 0xa48c,
+ 0xa490, 0xa4c6,
+ 0xa700, 0xa71a,
+ 0xa720, 0xa721,
+ 0xa800, 0xa82b,
+ 0xa840, 0xa877,
+ 0xac00, 0xd7a3,
+ 0xd800, 0xfa2d,
+ 0xfa30, 0xfa6a,
+ 0xfa70, 0xfad9,
+ 0xfb00, 0xfb06,
+ 0xfb13, 0xfb17,
+ 0xfb1d, 0xfb36,
+ 0xfb38, 0xfb3c,
+ 0xfb3e, 0xfb3e,
+ 0xfb40, 0xfb41,
+ 0xfb43, 0xfb44,
+ 0xfb46, 0xfbb1,
+ 0xfbd3, 0xfd3f,
+ 0xfd50, 0xfd8f,
+ 0xfd92, 0xfdc7,
+ 0xfdd0, 0xfdfd,
+ 0xfe00, 0xfe19,
+ 0xfe20, 0xfe23,
+ 0xfe30, 0xfe52,
+ 0xfe54, 0xfe66,
+ 0xfe68, 0xfe6b,
+ 0xfe70, 0xfe74,
+ 0xfe76, 0xfefc,
+ 0xfeff, 0xfeff,
+ 0xff01, 0xffbe,
+ 0xffc2, 0xffc7,
+ 0xffca, 0xffcf,
+ 0xffd2, 0xffd7,
+ 0xffda, 0xffdc,
+ 0xffe0, 0xffe6,
+ 0xffe8, 0xffee,
+ 0xfff9, 0x1000b,
+ 0x1000d, 0x10026,
+ 0x10028, 0x1003a,
+ 0x1003c, 0x1003d,
+ 0x1003f, 0x1004d,
+ 0x10050, 0x1005d,
+ 0x10080, 0x100fa,
+ 0x10100, 0x10102,
+ 0x10107, 0x10133,
+ 0x10137, 0x1018a,
+ 0x10300, 0x1031e,
+ 0x10320, 0x10323,
+ 0x10330, 0x1034a,
+ 0x10380, 0x1039d,
+ 0x1039f, 0x103c3,
+ 0x103c8, 0x103d5,
+ 0x10400, 0x1049d,
+ 0x104a0, 0x104a9,
+ 0x10800, 0x10805,
+ 0x10808, 0x10808,
+ 0x1080a, 0x10835,
+ 0x10837, 0x10838,
+ 0x1083c, 0x1083c,
+ 0x1083f, 0x1083f,
+ 0x10900, 0x10919,
+ 0x1091f, 0x1091f,
+ 0x10a00, 0x10a03,
+ 0x10a05, 0x10a06,
+ 0x10a0c, 0x10a13,
+ 0x10a15, 0x10a17,
+ 0x10a19, 0x10a33,
+ 0x10a38, 0x10a3a,
+ 0x10a3f, 0x10a47,
+ 0x10a50, 0x10a58,
+ 0x12000, 0x1236e,
+ 0x12400, 0x12462,
+ 0x12470, 0x12473,
+ 0x1d000, 0x1d0f5,
+ 0x1d100, 0x1d126,
+ 0x1d12a, 0x1d1dd,
+ 0x1d200, 0x1d245,
+ 0x1d300, 0x1d356,
+ 0x1d360, 0x1d371,
+ 0x1d400, 0x1d454,
+ 0x1d456, 0x1d49c,
+ 0x1d49e, 0x1d49f,
+ 0x1d4a2, 0x1d4a2,
+ 0x1d4a5, 0x1d4a6,
+ 0x1d4a9, 0x1d4ac,
+ 0x1d4ae, 0x1d4b9,
+ 0x1d4bb, 0x1d4bb,
+ 0x1d4bd, 0x1d4c3,
+ 0x1d4c5, 0x1d505,
+ 0x1d507, 0x1d50a,
+ 0x1d50d, 0x1d514,
+ 0x1d516, 0x1d51c,
+ 0x1d51e, 0x1d539,
+ 0x1d53b, 0x1d53e,
+ 0x1d540, 0x1d544,
+ 0x1d546, 0x1d546,
+ 0x1d54a, 0x1d550,
+ 0x1d552, 0x1d6a5,
+ 0x1d6a8, 0x1d7cb,
+ 0x1d7ce, 0x1d7ff,
+ 0x1fffe, 0x2a6d6,
+ 0x2f800, 0x2fa1d,
+ 0x2fffe, 0x2ffff,
+ 0x3fffe, 0x3ffff,
+ 0x4fffe, 0x4ffff,
+ 0x5fffe, 0x5ffff,
+ 0x6fffe, 0x6ffff,
+ 0x7fffe, 0x7ffff,
+ 0x8fffe, 0x8ffff,
+ 0x9fffe, 0x9ffff,
+ 0xafffe, 0xaffff,
+ 0xbfffe, 0xbffff,
+ 0xcfffe, 0xcffff,
+ 0xdfffe, 0xdffff,
+ 0xe0001, 0xe0001,
+ 0xe0020, 0xe007f,
+ 0xe0100, 0xe01ef,
+ 0xefffe, 0x10ffff,
+}; /* CR_Age_5_0 */
+
+/* 'Age_5_1': Derived Age 5.1 */
+static const OnigCodePoint CR_Age_5_1[] = {
+ 455,
+ 0x0000, 0x0377,
+ 0x037a, 0x037e,
+ 0x0384, 0x038a,
+ 0x038c, 0x038c,
+ 0x038e, 0x03a1,
+ 0x03a3, 0x0523,
+ 0x0531, 0x0556,
+ 0x0559, 0x055f,
+ 0x0561, 0x0587,
+ 0x0589, 0x058a,
+ 0x0591, 0x05c7,
+ 0x05d0, 0x05ea,
+ 0x05f0, 0x05f4,
+ 0x0600, 0x0603,
+ 0x0606, 0x061b,
+ 0x061e, 0x061f,
+ 0x0621, 0x065e,
+ 0x0660, 0x070d,
+ 0x070f, 0x074a,
+ 0x074d, 0x07b1,
+ 0x07c0, 0x07fa,
+ 0x0901, 0x0939,
+ 0x093c, 0x094d,
+ 0x0950, 0x0954,
+ 0x0958, 0x0972,
+ 0x097b, 0x097f,
+ 0x0981, 0x0983,
+ 0x0985, 0x098c,
+ 0x098f, 0x0990,
+ 0x0993, 0x09a8,
+ 0x09aa, 0x09b0,
+ 0x09b2, 0x09b2,
+ 0x09b6, 0x09b9,
+ 0x09bc, 0x09c4,
+ 0x09c7, 0x09c8,
+ 0x09cb, 0x09ce,
+ 0x09d7, 0x09d7,
+ 0x09dc, 0x09dd,
+ 0x09df, 0x09e3,
+ 0x09e6, 0x09fa,
+ 0x0a01, 0x0a03,
+ 0x0a05, 0x0a0a,
+ 0x0a0f, 0x0a10,
+ 0x0a13, 0x0a28,
+ 0x0a2a, 0x0a30,
+ 0x0a32, 0x0a33,
+ 0x0a35, 0x0a36,
+ 0x0a38, 0x0a39,
+ 0x0a3c, 0x0a3c,
+ 0x0a3e, 0x0a42,
+ 0x0a47, 0x0a48,
+ 0x0a4b, 0x0a4d,
+ 0x0a51, 0x0a51,
+ 0x0a59, 0x0a5c,
+ 0x0a5e, 0x0a5e,
+ 0x0a66, 0x0a75,
+ 0x0a81, 0x0a83,
+ 0x0a85, 0x0a8d,
+ 0x0a8f, 0x0a91,
+ 0x0a93, 0x0aa8,
+ 0x0aaa, 0x0ab0,
+ 0x0ab2, 0x0ab3,
+ 0x0ab5, 0x0ab9,
+ 0x0abc, 0x0ac5,
+ 0x0ac7, 0x0ac9,
+ 0x0acb, 0x0acd,
+ 0x0ad0, 0x0ad0,
+ 0x0ae0, 0x0ae3,
+ 0x0ae6, 0x0aef,
+ 0x0af1, 0x0af1,
+ 0x0b01, 0x0b03,
+ 0x0b05, 0x0b0c,
+ 0x0b0f, 0x0b10,
+ 0x0b13, 0x0b28,
+ 0x0b2a, 0x0b30,
+ 0x0b32, 0x0b33,
+ 0x0b35, 0x0b39,
+ 0x0b3c, 0x0b44,
+ 0x0b47, 0x0b48,
+ 0x0b4b, 0x0b4d,
+ 0x0b56, 0x0b57,
+ 0x0b5c, 0x0b5d,
+ 0x0b5f, 0x0b63,
+ 0x0b66, 0x0b71,
+ 0x0b82, 0x0b83,
+ 0x0b85, 0x0b8a,
+ 0x0b8e, 0x0b90,
+ 0x0b92, 0x0b95,
+ 0x0b99, 0x0b9a,
+ 0x0b9c, 0x0b9c,
+ 0x0b9e, 0x0b9f,
+ 0x0ba3, 0x0ba4,
+ 0x0ba8, 0x0baa,
+ 0x0bae, 0x0bb9,
+ 0x0bbe, 0x0bc2,
+ 0x0bc6, 0x0bc8,
+ 0x0bca, 0x0bcd,
+ 0x0bd0, 0x0bd0,
+ 0x0bd7, 0x0bd7,
+ 0x0be6, 0x0bfa,
+ 0x0c01, 0x0c03,
+ 0x0c05, 0x0c0c,
+ 0x0c0e, 0x0c10,
+ 0x0c12, 0x0c28,
+ 0x0c2a, 0x0c33,
+ 0x0c35, 0x0c39,
+ 0x0c3d, 0x0c44,
+ 0x0c46, 0x0c48,
+ 0x0c4a, 0x0c4d,
+ 0x0c55, 0x0c56,
+ 0x0c58, 0x0c59,
+ 0x0c60, 0x0c63,
+ 0x0c66, 0x0c6f,
+ 0x0c78, 0x0c7f,
+ 0x0c82, 0x0c83,
+ 0x0c85, 0x0c8c,
+ 0x0c8e, 0x0c90,
+ 0x0c92, 0x0ca8,
+ 0x0caa, 0x0cb3,
+ 0x0cb5, 0x0cb9,
+ 0x0cbc, 0x0cc4,
+ 0x0cc6, 0x0cc8,
+ 0x0cca, 0x0ccd,
+ 0x0cd5, 0x0cd6,
+ 0x0cde, 0x0cde,
+ 0x0ce0, 0x0ce3,
+ 0x0ce6, 0x0cef,
+ 0x0cf1, 0x0cf2,
+ 0x0d02, 0x0d03,
+ 0x0d05, 0x0d0c,
+ 0x0d0e, 0x0d10,
+ 0x0d12, 0x0d28,
+ 0x0d2a, 0x0d39,
+ 0x0d3d, 0x0d44,
+ 0x0d46, 0x0d48,
+ 0x0d4a, 0x0d4d,
+ 0x0d57, 0x0d57,
+ 0x0d60, 0x0d63,
+ 0x0d66, 0x0d75,
+ 0x0d79, 0x0d7f,
+ 0x0d82, 0x0d83,
+ 0x0d85, 0x0d96,
+ 0x0d9a, 0x0db1,
+ 0x0db3, 0x0dbb,
+ 0x0dbd, 0x0dbd,
+ 0x0dc0, 0x0dc6,
+ 0x0dca, 0x0dca,
+ 0x0dcf, 0x0dd4,
+ 0x0dd6, 0x0dd6,
+ 0x0dd8, 0x0ddf,
+ 0x0df2, 0x0df4,
+ 0x0e01, 0x0e3a,
+ 0x0e3f, 0x0e5b,
+ 0x0e81, 0x0e82,
+ 0x0e84, 0x0e84,
+ 0x0e87, 0x0e88,
+ 0x0e8a, 0x0e8a,
+ 0x0e8d, 0x0e8d,
+ 0x0e94, 0x0e97,
+ 0x0e99, 0x0e9f,
+ 0x0ea1, 0x0ea3,
+ 0x0ea5, 0x0ea5,
+ 0x0ea7, 0x0ea7,
+ 0x0eaa, 0x0eab,
+ 0x0ead, 0x0eb9,
+ 0x0ebb, 0x0ebd,
+ 0x0ec0, 0x0ec4,
+ 0x0ec6, 0x0ec6,
+ 0x0ec8, 0x0ecd,
+ 0x0ed0, 0x0ed9,
+ 0x0edc, 0x0edd,
+ 0x0f00, 0x0f47,
+ 0x0f49, 0x0f6c,
+ 0x0f71, 0x0f8b,
+ 0x0f90, 0x0f97,
+ 0x0f99, 0x0fbc,
+ 0x0fbe, 0x0fcc,
+ 0x0fce, 0x0fd4,
+ 0x1000, 0x1099,
+ 0x109e, 0x10c5,
+ 0x10d0, 0x10fc,
+ 0x1100, 0x1159,
+ 0x115f, 0x11a2,
+ 0x11a8, 0x11f9,
+ 0x1200, 0x1248,
+ 0x124a, 0x124d,
+ 0x1250, 0x1256,
+ 0x1258, 0x1258,
+ 0x125a, 0x125d,
+ 0x1260, 0x1288,
+ 0x128a, 0x128d,
+ 0x1290, 0x12b0,
+ 0x12b2, 0x12b5,
+ 0x12b8, 0x12be,
+ 0x12c0, 0x12c0,
+ 0x12c2, 0x12c5,
+ 0x12c8, 0x12d6,
+ 0x12d8, 0x1310,
+ 0x1312, 0x1315,
+ 0x1318, 0x135a,
+ 0x135f, 0x137c,
+ 0x1380, 0x1399,
+ 0x13a0, 0x13f4,
+ 0x1401, 0x1676,
+ 0x1680, 0x169c,
+ 0x16a0, 0x16f0,
+ 0x1700, 0x170c,
+ 0x170e, 0x1714,
+ 0x1720, 0x1736,
+ 0x1740, 0x1753,
+ 0x1760, 0x176c,
+ 0x176e, 0x1770,
+ 0x1772, 0x1773,
+ 0x1780, 0x17dd,
+ 0x17e0, 0x17e9,
+ 0x17f0, 0x17f9,
+ 0x1800, 0x180e,
+ 0x1810, 0x1819,
+ 0x1820, 0x1877,
+ 0x1880, 0x18aa,
+ 0x1900, 0x191c,
+ 0x1920, 0x192b,
+ 0x1930, 0x193b,
+ 0x1940, 0x1940,
+ 0x1944, 0x196d,
+ 0x1970, 0x1974,
+ 0x1980, 0x19a9,
+ 0x19b0, 0x19c9,
+ 0x19d0, 0x19d9,
+ 0x19de, 0x1a1b,
+ 0x1a1e, 0x1a1f,
+ 0x1b00, 0x1b4b,
+ 0x1b50, 0x1b7c,
+ 0x1b80, 0x1baa,
+ 0x1bae, 0x1bb9,
+ 0x1c00, 0x1c37,
+ 0x1c3b, 0x1c49,
+ 0x1c4d, 0x1c7f,
+ 0x1d00, 0x1de6,
+ 0x1dfe, 0x1f15,
+ 0x1f18, 0x1f1d,
+ 0x1f20, 0x1f45,
+ 0x1f48, 0x1f4d,
+ 0x1f50, 0x1f57,
+ 0x1f59, 0x1f59,
+ 0x1f5b, 0x1f5b,
+ 0x1f5d, 0x1f5d,
+ 0x1f5f, 0x1f7d,
+ 0x1f80, 0x1fb4,
+ 0x1fb6, 0x1fc4,
+ 0x1fc6, 0x1fd3,
+ 0x1fd6, 0x1fdb,
+ 0x1fdd, 0x1fef,
+ 0x1ff2, 0x1ff4,
+ 0x1ff6, 0x1ffe,
+ 0x2000, 0x2064,
+ 0x206a, 0x2071,
+ 0x2074, 0x208e,
+ 0x2090, 0x2094,
+ 0x20a0, 0x20b5,
+ 0x20d0, 0x20f0,
+ 0x2100, 0x214f,
+ 0x2153, 0x2188,
+ 0x2190, 0x23e7,
+ 0x2400, 0x2426,
+ 0x2440, 0x244a,
+ 0x2460, 0x269d,
+ 0x26a0, 0x26bc,
+ 0x26c0, 0x26c3,
+ 0x2701, 0x2704,
+ 0x2706, 0x2709,
+ 0x270c, 0x2727,
+ 0x2729, 0x274b,
+ 0x274d, 0x274d,
+ 0x274f, 0x2752,
+ 0x2756, 0x2756,
+ 0x2758, 0x275e,
+ 0x2761, 0x2794,
+ 0x2798, 0x27af,
+ 0x27b1, 0x27be,
+ 0x27c0, 0x27ca,
+ 0x27cc, 0x27cc,
+ 0x27d0, 0x2b4c,
+ 0x2b50, 0x2b54,
+ 0x2c00, 0x2c2e,
+ 0x2c30, 0x2c5e,
+ 0x2c60, 0x2c6f,
+ 0x2c71, 0x2c7d,
+ 0x2c80, 0x2cea,
+ 0x2cf9, 0x2d25,
+ 0x2d30, 0x2d65,
+ 0x2d6f, 0x2d6f,
+ 0x2d80, 0x2d96,
+ 0x2da0, 0x2da6,
+ 0x2da8, 0x2dae,
+ 0x2db0, 0x2db6,
+ 0x2db8, 0x2dbe,
+ 0x2dc0, 0x2dc6,
+ 0x2dc8, 0x2dce,
+ 0x2dd0, 0x2dd6,
+ 0x2dd8, 0x2dde,
+ 0x2de0, 0x2e30,
+ 0x2e80, 0x2e99,
+ 0x2e9b, 0x2ef3,
+ 0x2f00, 0x2fd5,
+ 0x2ff0, 0x2ffb,
+ 0x3000, 0x303f,
+ 0x3041, 0x3096,
+ 0x3099, 0x30ff,
+ 0x3105, 0x312d,
+ 0x3131, 0x318e,
+ 0x3190, 0x31b7,
+ 0x31c0, 0x31e3,
+ 0x31f0, 0x321e,
+ 0x3220, 0x3243,
+ 0x3250, 0x32fe,
+ 0x3300, 0x4db5,
+ 0x4dc0, 0x9fc3,
+ 0xa000, 0xa48c,
+ 0xa490, 0xa4c6,
+ 0xa500, 0xa62b,
+ 0xa640, 0xa65f,
+ 0xa662, 0xa673,
+ 0xa67c, 0xa697,
+ 0xa700, 0xa78c,
+ 0xa7fb, 0xa82b,
+ 0xa840, 0xa877,
+ 0xa880, 0xa8c4,
+ 0xa8ce, 0xa8d9,
+ 0xa900, 0xa953,
+ 0xa95f, 0xa95f,
+ 0xaa00, 0xaa36,
+ 0xaa40, 0xaa4d,
+ 0xaa50, 0xaa59,
+ 0xaa5c, 0xaa5f,
+ 0xac00, 0xd7a3,
+ 0xd800, 0xfa2d,
+ 0xfa30, 0xfa6a,
+ 0xfa70, 0xfad9,
+ 0xfb00, 0xfb06,
+ 0xfb13, 0xfb17,
+ 0xfb1d, 0xfb36,
+ 0xfb38, 0xfb3c,
+ 0xfb3e, 0xfb3e,
+ 0xfb40, 0xfb41,
+ 0xfb43, 0xfb44,
+ 0xfb46, 0xfbb1,
+ 0xfbd3, 0xfd3f,
+ 0xfd50, 0xfd8f,
+ 0xfd92, 0xfdc7,
+ 0xfdd0, 0xfdfd,
+ 0xfe00, 0xfe19,
+ 0xfe20, 0xfe26,
+ 0xfe30, 0xfe52,
+ 0xfe54, 0xfe66,
+ 0xfe68, 0xfe6b,
+ 0xfe70, 0xfe74,
+ 0xfe76, 0xfefc,
+ 0xfeff, 0xfeff,
+ 0xff01, 0xffbe,
+ 0xffc2, 0xffc7,
+ 0xffca, 0xffcf,
+ 0xffd2, 0xffd7,
+ 0xffda, 0xffdc,
+ 0xffe0, 0xffe6,
+ 0xffe8, 0xffee,
+ 0xfff9, 0x1000b,
+ 0x1000d, 0x10026,
+ 0x10028, 0x1003a,
+ 0x1003c, 0x1003d,
+ 0x1003f, 0x1004d,
+ 0x10050, 0x1005d,
+ 0x10080, 0x100fa,
+ 0x10100, 0x10102,
+ 0x10107, 0x10133,
+ 0x10137, 0x1018a,
+ 0x10190, 0x1019b,
+ 0x101d0, 0x101fd,
+ 0x10280, 0x1029c,
+ 0x102a0, 0x102d0,
+ 0x10300, 0x1031e,
+ 0x10320, 0x10323,
+ 0x10330, 0x1034a,
+ 0x10380, 0x1039d,
+ 0x1039f, 0x103c3,
+ 0x103c8, 0x103d5,
+ 0x10400, 0x1049d,
+ 0x104a0, 0x104a9,
+ 0x10800, 0x10805,
+ 0x10808, 0x10808,
+ 0x1080a, 0x10835,
+ 0x10837, 0x10838,
+ 0x1083c, 0x1083c,
+ 0x1083f, 0x1083f,
+ 0x10900, 0x10919,
+ 0x1091f, 0x10939,
+ 0x1093f, 0x1093f,
+ 0x10a00, 0x10a03,
+ 0x10a05, 0x10a06,
+ 0x10a0c, 0x10a13,
+ 0x10a15, 0x10a17,
+ 0x10a19, 0x10a33,
+ 0x10a38, 0x10a3a,
+ 0x10a3f, 0x10a47,
+ 0x10a50, 0x10a58,
+ 0x12000, 0x1236e,
+ 0x12400, 0x12462,
+ 0x12470, 0x12473,
+ 0x1d000, 0x1d0f5,
+ 0x1d100, 0x1d126,
+ 0x1d129, 0x1d1dd,
+ 0x1d200, 0x1d245,
+ 0x1d300, 0x1d356,
+ 0x1d360, 0x1d371,
+ 0x1d400, 0x1d454,
+ 0x1d456, 0x1d49c,
+ 0x1d49e, 0x1d49f,
+ 0x1d4a2, 0x1d4a2,
+ 0x1d4a5, 0x1d4a6,
+ 0x1d4a9, 0x1d4ac,
+ 0x1d4ae, 0x1d4b9,
+ 0x1d4bb, 0x1d4bb,
+ 0x1d4bd, 0x1d4c3,
+ 0x1d4c5, 0x1d505,
+ 0x1d507, 0x1d50a,
+ 0x1d50d, 0x1d514,
+ 0x1d516, 0x1d51c,
+ 0x1d51e, 0x1d539,
+ 0x1d53b, 0x1d53e,
+ 0x1d540, 0x1d544,
+ 0x1d546, 0x1d546,
+ 0x1d54a, 0x1d550,
+ 0x1d552, 0x1d6a5,
+ 0x1d6a8, 0x1d7cb,
+ 0x1d7ce, 0x1d7ff,
+ 0x1f000, 0x1f02b,
+ 0x1f030, 0x1f093,
+ 0x1fffe, 0x2a6d6,
+ 0x2f800, 0x2fa1d,
+ 0x2fffe, 0x2ffff,
+ 0x3fffe, 0x3ffff,
+ 0x4fffe, 0x4ffff,
+ 0x5fffe, 0x5ffff,
+ 0x6fffe, 0x6ffff,
+ 0x7fffe, 0x7ffff,
+ 0x8fffe, 0x8ffff,
+ 0x9fffe, 0x9ffff,
+ 0xafffe, 0xaffff,
+ 0xbfffe, 0xbffff,
+ 0xcfffe, 0xcffff,
+ 0xdfffe, 0xdffff,
+ 0xe0001, 0xe0001,
+ 0xe0020, 0xe007f,
+ 0xe0100, 0xe01ef,
+ 0xefffe, 0x10ffff,
+}; /* CR_Age_5_1 */
+
+/* 'Age_5_2': Derived Age 5.2 */
+static const OnigCodePoint CR_Age_5_2[] = {
+ 495,
+ 0x0000, 0x0377,
+ 0x037a, 0x037e,
+ 0x0384, 0x038a,
+ 0x038c, 0x038c,
+ 0x038e, 0x03a1,
+ 0x03a3, 0x0525,
+ 0x0531, 0x0556,
+ 0x0559, 0x055f,
+ 0x0561, 0x0587,
+ 0x0589, 0x058a,
+ 0x0591, 0x05c7,
+ 0x05d0, 0x05ea,
+ 0x05f0, 0x05f4,
+ 0x0600, 0x0603,
+ 0x0606, 0x061b,
+ 0x061e, 0x061f,
+ 0x0621, 0x065e,
+ 0x0660, 0x070d,
+ 0x070f, 0x074a,
+ 0x074d, 0x07b1,
+ 0x07c0, 0x07fa,
+ 0x0800, 0x082d,
+ 0x0830, 0x083e,
+ 0x0900, 0x0939,
+ 0x093c, 0x094e,
+ 0x0950, 0x0955,
+ 0x0958, 0x0972,
+ 0x0979, 0x097f,
+ 0x0981, 0x0983,
+ 0x0985, 0x098c,
+ 0x098f, 0x0990,
+ 0x0993, 0x09a8,
+ 0x09aa, 0x09b0,
+ 0x09b2, 0x09b2,
+ 0x09b6, 0x09b9,
+ 0x09bc, 0x09c4,
+ 0x09c7, 0x09c8,
+ 0x09cb, 0x09ce,
+ 0x09d7, 0x09d7,
+ 0x09dc, 0x09dd,
+ 0x09df, 0x09e3,
+ 0x09e6, 0x09fb,
+ 0x0a01, 0x0a03,
+ 0x0a05, 0x0a0a,
+ 0x0a0f, 0x0a10,
+ 0x0a13, 0x0a28,
+ 0x0a2a, 0x0a30,
+ 0x0a32, 0x0a33,
+ 0x0a35, 0x0a36,
+ 0x0a38, 0x0a39,
+ 0x0a3c, 0x0a3c,
+ 0x0a3e, 0x0a42,
+ 0x0a47, 0x0a48,
+ 0x0a4b, 0x0a4d,
+ 0x0a51, 0x0a51,
+ 0x0a59, 0x0a5c,
+ 0x0a5e, 0x0a5e,
+ 0x0a66, 0x0a75,
+ 0x0a81, 0x0a83,
+ 0x0a85, 0x0a8d,
+ 0x0a8f, 0x0a91,
+ 0x0a93, 0x0aa8,
+ 0x0aaa, 0x0ab0,
+ 0x0ab2, 0x0ab3,
+ 0x0ab5, 0x0ab9,
+ 0x0abc, 0x0ac5,
+ 0x0ac7, 0x0ac9,
+ 0x0acb, 0x0acd,
+ 0x0ad0, 0x0ad0,
+ 0x0ae0, 0x0ae3,
+ 0x0ae6, 0x0aef,
+ 0x0af1, 0x0af1,
+ 0x0b01, 0x0b03,
+ 0x0b05, 0x0b0c,
+ 0x0b0f, 0x0b10,
+ 0x0b13, 0x0b28,
+ 0x0b2a, 0x0b30,
+ 0x0b32, 0x0b33,
+ 0x0b35, 0x0b39,
+ 0x0b3c, 0x0b44,
+ 0x0b47, 0x0b48,
+ 0x0b4b, 0x0b4d,
+ 0x0b56, 0x0b57,
+ 0x0b5c, 0x0b5d,
+ 0x0b5f, 0x0b63,
+ 0x0b66, 0x0b71,
+ 0x0b82, 0x0b83,
+ 0x0b85, 0x0b8a,
+ 0x0b8e, 0x0b90,
+ 0x0b92, 0x0b95,
+ 0x0b99, 0x0b9a,
+ 0x0b9c, 0x0b9c,
+ 0x0b9e, 0x0b9f,
+ 0x0ba3, 0x0ba4,
+ 0x0ba8, 0x0baa,
+ 0x0bae, 0x0bb9,
+ 0x0bbe, 0x0bc2,
+ 0x0bc6, 0x0bc8,
+ 0x0bca, 0x0bcd,
+ 0x0bd0, 0x0bd0,
+ 0x0bd7, 0x0bd7,
+ 0x0be6, 0x0bfa,
+ 0x0c01, 0x0c03,
+ 0x0c05, 0x0c0c,
+ 0x0c0e, 0x0c10,
+ 0x0c12, 0x0c28,
+ 0x0c2a, 0x0c33,
+ 0x0c35, 0x0c39,
+ 0x0c3d, 0x0c44,
+ 0x0c46, 0x0c48,
+ 0x0c4a, 0x0c4d,
+ 0x0c55, 0x0c56,
+ 0x0c58, 0x0c59,
+ 0x0c60, 0x0c63,
+ 0x0c66, 0x0c6f,
+ 0x0c78, 0x0c7f,
+ 0x0c82, 0x0c83,
+ 0x0c85, 0x0c8c,
+ 0x0c8e, 0x0c90,
+ 0x0c92, 0x0ca8,
+ 0x0caa, 0x0cb3,
+ 0x0cb5, 0x0cb9,
+ 0x0cbc, 0x0cc4,
+ 0x0cc6, 0x0cc8,
+ 0x0cca, 0x0ccd,
+ 0x0cd5, 0x0cd6,
+ 0x0cde, 0x0cde,
+ 0x0ce0, 0x0ce3,
+ 0x0ce6, 0x0cef,
+ 0x0cf1, 0x0cf2,
+ 0x0d02, 0x0d03,
+ 0x0d05, 0x0d0c,
+ 0x0d0e, 0x0d10,
+ 0x0d12, 0x0d28,
+ 0x0d2a, 0x0d39,
+ 0x0d3d, 0x0d44,
+ 0x0d46, 0x0d48,
+ 0x0d4a, 0x0d4d,
+ 0x0d57, 0x0d57,
+ 0x0d60, 0x0d63,
+ 0x0d66, 0x0d75,
+ 0x0d79, 0x0d7f,
+ 0x0d82, 0x0d83,
+ 0x0d85, 0x0d96,
+ 0x0d9a, 0x0db1,
+ 0x0db3, 0x0dbb,
+ 0x0dbd, 0x0dbd,
+ 0x0dc0, 0x0dc6,
+ 0x0dca, 0x0dca,
+ 0x0dcf, 0x0dd4,
+ 0x0dd6, 0x0dd6,
+ 0x0dd8, 0x0ddf,
+ 0x0df2, 0x0df4,
+ 0x0e01, 0x0e3a,
+ 0x0e3f, 0x0e5b,
+ 0x0e81, 0x0e82,
+ 0x0e84, 0x0e84,
+ 0x0e87, 0x0e88,
+ 0x0e8a, 0x0e8a,
+ 0x0e8d, 0x0e8d,
+ 0x0e94, 0x0e97,
+ 0x0e99, 0x0e9f,
+ 0x0ea1, 0x0ea3,
+ 0x0ea5, 0x0ea5,
+ 0x0ea7, 0x0ea7,
+ 0x0eaa, 0x0eab,
+ 0x0ead, 0x0eb9,
+ 0x0ebb, 0x0ebd,
+ 0x0ec0, 0x0ec4,
+ 0x0ec6, 0x0ec6,
+ 0x0ec8, 0x0ecd,
+ 0x0ed0, 0x0ed9,
+ 0x0edc, 0x0edd,
+ 0x0f00, 0x0f47,
+ 0x0f49, 0x0f6c,
+ 0x0f71, 0x0f8b,
+ 0x0f90, 0x0f97,
+ 0x0f99, 0x0fbc,
+ 0x0fbe, 0x0fcc,
+ 0x0fce, 0x0fd8,
+ 0x1000, 0x10c5,
+ 0x10d0, 0x10fc,
+ 0x1100, 0x1248,
+ 0x124a, 0x124d,
+ 0x1250, 0x1256,
+ 0x1258, 0x1258,
+ 0x125a, 0x125d,
+ 0x1260, 0x1288,
+ 0x128a, 0x128d,
+ 0x1290, 0x12b0,
+ 0x12b2, 0x12b5,
+ 0x12b8, 0x12be,
+ 0x12c0, 0x12c0,
+ 0x12c2, 0x12c5,
+ 0x12c8, 0x12d6,
+ 0x12d8, 0x1310,
+ 0x1312, 0x1315,
+ 0x1318, 0x135a,
+ 0x135f, 0x137c,
+ 0x1380, 0x1399,
+ 0x13a0, 0x13f4,
+ 0x1400, 0x169c,
+ 0x16a0, 0x16f0,
+ 0x1700, 0x170c,
+ 0x170e, 0x1714,
+ 0x1720, 0x1736,
+ 0x1740, 0x1753,
+ 0x1760, 0x176c,
+ 0x176e, 0x1770,
+ 0x1772, 0x1773,
+ 0x1780, 0x17dd,
+ 0x17e0, 0x17e9,
+ 0x17f0, 0x17f9,
+ 0x1800, 0x180e,
+ 0x1810, 0x1819,
+ 0x1820, 0x1877,
+ 0x1880, 0x18aa,
+ 0x18b0, 0x18f5,
+ 0x1900, 0x191c,
+ 0x1920, 0x192b,
+ 0x1930, 0x193b,
+ 0x1940, 0x1940,
+ 0x1944, 0x196d,
+ 0x1970, 0x1974,
+ 0x1980, 0x19ab,
+ 0x19b0, 0x19c9,
+ 0x19d0, 0x19da,
+ 0x19de, 0x1a1b,
+ 0x1a1e, 0x1a5e,
+ 0x1a60, 0x1a7c,
+ 0x1a7f, 0x1a89,
+ 0x1a90, 0x1a99,
+ 0x1aa0, 0x1aad,
+ 0x1b00, 0x1b4b,
+ 0x1b50, 0x1b7c,
+ 0x1b80, 0x1baa,
+ 0x1bae, 0x1bb9,
+ 0x1c00, 0x1c37,
+ 0x1c3b, 0x1c49,
+ 0x1c4d, 0x1c7f,
+ 0x1cd0, 0x1cf2,
+ 0x1d00, 0x1de6,
+ 0x1dfd, 0x1f15,
+ 0x1f18, 0x1f1d,
+ 0x1f20, 0x1f45,
+ 0x1f48, 0x1f4d,
+ 0x1f50, 0x1f57,
+ 0x1f59, 0x1f59,
+ 0x1f5b, 0x1f5b,
+ 0x1f5d, 0x1f5d,
+ 0x1f5f, 0x1f7d,
+ 0x1f80, 0x1fb4,
+ 0x1fb6, 0x1fc4,
+ 0x1fc6, 0x1fd3,
+ 0x1fd6, 0x1fdb,
+ 0x1fdd, 0x1fef,
+ 0x1ff2, 0x1ff4,
+ 0x1ff6, 0x1ffe,
+ 0x2000, 0x2064,
+ 0x206a, 0x2071,
+ 0x2074, 0x208e,
+ 0x2090, 0x2094,
+ 0x20a0, 0x20b8,
+ 0x20d0, 0x20f0,
+ 0x2100, 0x2189,
+ 0x2190, 0x23e8,
+ 0x2400, 0x2426,
+ 0x2440, 0x244a,
+ 0x2460, 0x26cd,
+ 0x26cf, 0x26e1,
+ 0x26e3, 0x26e3,
+ 0x26e8, 0x26ff,
+ 0x2701, 0x2704,
+ 0x2706, 0x2709,
+ 0x270c, 0x2727,
+ 0x2729, 0x274b,
+ 0x274d, 0x274d,
+ 0x274f, 0x2752,
+ 0x2756, 0x275e,
+ 0x2761, 0x2794,
+ 0x2798, 0x27af,
+ 0x27b1, 0x27be,
+ 0x27c0, 0x27ca,
+ 0x27cc, 0x27cc,
+ 0x27d0, 0x2b4c,
+ 0x2b50, 0x2b59,
+ 0x2c00, 0x2c2e,
+ 0x2c30, 0x2c5e,
+ 0x2c60, 0x2cf1,
+ 0x2cf9, 0x2d25,
+ 0x2d30, 0x2d65,
+ 0x2d6f, 0x2d6f,
+ 0x2d80, 0x2d96,
+ 0x2da0, 0x2da6,
+ 0x2da8, 0x2dae,
+ 0x2db0, 0x2db6,
+ 0x2db8, 0x2dbe,
+ 0x2dc0, 0x2dc6,
+ 0x2dc8, 0x2dce,
+ 0x2dd0, 0x2dd6,
+ 0x2dd8, 0x2dde,
+ 0x2de0, 0x2e31,
+ 0x2e80, 0x2e99,
+ 0x2e9b, 0x2ef3,
+ 0x2f00, 0x2fd5,
+ 0x2ff0, 0x2ffb,
+ 0x3000, 0x303f,
+ 0x3041, 0x3096,
+ 0x3099, 0x30ff,
+ 0x3105, 0x312d,
+ 0x3131, 0x318e,
+ 0x3190, 0x31b7,
+ 0x31c0, 0x31e3,
+ 0x31f0, 0x321e,
+ 0x3220, 0x32fe,
+ 0x3300, 0x4db5,
+ 0x4dc0, 0x9fcb,
+ 0xa000, 0xa48c,
+ 0xa490, 0xa4c6,
+ 0xa4d0, 0xa62b,
+ 0xa640, 0xa65f,
+ 0xa662, 0xa673,
+ 0xa67c, 0xa697,
+ 0xa6a0, 0xa6f7,
+ 0xa700, 0xa78c,
+ 0xa7fb, 0xa82b,
+ 0xa830, 0xa839,
+ 0xa840, 0xa877,
+ 0xa880, 0xa8c4,
+ 0xa8ce, 0xa8d9,
+ 0xa8e0, 0xa8fb,
+ 0xa900, 0xa953,
+ 0xa95f, 0xa97c,
+ 0xa980, 0xa9cd,
+ 0xa9cf, 0xa9d9,
+ 0xa9de, 0xa9df,
+ 0xaa00, 0xaa36,
+ 0xaa40, 0xaa4d,
+ 0xaa50, 0xaa59,
+ 0xaa5c, 0xaa7b,
+ 0xaa80, 0xaac2,
+ 0xaadb, 0xaadf,
+ 0xabc0, 0xabed,
+ 0xabf0, 0xabf9,
+ 0xac00, 0xd7a3,
+ 0xd7b0, 0xd7c6,
+ 0xd7cb, 0xd7fb,
+ 0xd800, 0xfa2d,
+ 0xfa30, 0xfa6d,
+ 0xfa70, 0xfad9,
+ 0xfb00, 0xfb06,
+ 0xfb13, 0xfb17,
+ 0xfb1d, 0xfb36,
+ 0xfb38, 0xfb3c,
+ 0xfb3e, 0xfb3e,
+ 0xfb40, 0xfb41,
+ 0xfb43, 0xfb44,
+ 0xfb46, 0xfbb1,
+ 0xfbd3, 0xfd3f,
+ 0xfd50, 0xfd8f,
+ 0xfd92, 0xfdc7,
+ 0xfdd0, 0xfdfd,
+ 0xfe00, 0xfe19,
+ 0xfe20, 0xfe26,
+ 0xfe30, 0xfe52,
+ 0xfe54, 0xfe66,
+ 0xfe68, 0xfe6b,
+ 0xfe70, 0xfe74,
+ 0xfe76, 0xfefc,
+ 0xfeff, 0xfeff,
+ 0xff01, 0xffbe,
+ 0xffc2, 0xffc7,
+ 0xffca, 0xffcf,
+ 0xffd2, 0xffd7,
+ 0xffda, 0xffdc,
+ 0xffe0, 0xffe6,
+ 0xffe8, 0xffee,
+ 0xfff9, 0x1000b,
+ 0x1000d, 0x10026,
+ 0x10028, 0x1003a,
+ 0x1003c, 0x1003d,
+ 0x1003f, 0x1004d,
+ 0x10050, 0x1005d,
+ 0x10080, 0x100fa,
+ 0x10100, 0x10102,
+ 0x10107, 0x10133,
+ 0x10137, 0x1018a,
+ 0x10190, 0x1019b,
+ 0x101d0, 0x101fd,
+ 0x10280, 0x1029c,
+ 0x102a0, 0x102d0,
+ 0x10300, 0x1031e,
+ 0x10320, 0x10323,
+ 0x10330, 0x1034a,
+ 0x10380, 0x1039d,
+ 0x1039f, 0x103c3,
+ 0x103c8, 0x103d5,
+ 0x10400, 0x1049d,
+ 0x104a0, 0x104a9,
+ 0x10800, 0x10805,
+ 0x10808, 0x10808,
+ 0x1080a, 0x10835,
+ 0x10837, 0x10838,
+ 0x1083c, 0x1083c,
+ 0x1083f, 0x10855,
+ 0x10857, 0x1085f,
+ 0x10900, 0x1091b,
+ 0x1091f, 0x10939,
+ 0x1093f, 0x1093f,
+ 0x10a00, 0x10a03,
+ 0x10a05, 0x10a06,
+ 0x10a0c, 0x10a13,
+ 0x10a15, 0x10a17,
+ 0x10a19, 0x10a33,
+ 0x10a38, 0x10a3a,
+ 0x10a3f, 0x10a47,
+ 0x10a50, 0x10a58,
+ 0x10a60, 0x10a7f,
+ 0x10b00, 0x10b35,
+ 0x10b39, 0x10b55,
+ 0x10b58, 0x10b72,
+ 0x10b78, 0x10b7f,
+ 0x10c00, 0x10c48,
+ 0x10e60, 0x10e7e,
+ 0x11080, 0x110c1,
+ 0x12000, 0x1236e,
+ 0x12400, 0x12462,
+ 0x12470, 0x12473,
+ 0x13000, 0x1342e,
+ 0x1d000, 0x1d0f5,
+ 0x1d100, 0x1d126,
+ 0x1d129, 0x1d1dd,
+ 0x1d200, 0x1d245,
+ 0x1d300, 0x1d356,
+ 0x1d360, 0x1d371,
+ 0x1d400, 0x1d454,
+ 0x1d456, 0x1d49c,
+ 0x1d49e, 0x1d49f,
+ 0x1d4a2, 0x1d4a2,
+ 0x1d4a5, 0x1d4a6,
+ 0x1d4a9, 0x1d4ac,
+ 0x1d4ae, 0x1d4b9,
+ 0x1d4bb, 0x1d4bb,
+ 0x1d4bd, 0x1d4c3,
+ 0x1d4c5, 0x1d505,
+ 0x1d507, 0x1d50a,
+ 0x1d50d, 0x1d514,
+ 0x1d516, 0x1d51c,
+ 0x1d51e, 0x1d539,
+ 0x1d53b, 0x1d53e,
+ 0x1d540, 0x1d544,
+ 0x1d546, 0x1d546,
+ 0x1d54a, 0x1d550,
+ 0x1d552, 0x1d6a5,
+ 0x1d6a8, 0x1d7cb,
+ 0x1d7ce, 0x1d7ff,
+ 0x1f000, 0x1f02b,
+ 0x1f030, 0x1f093,
+ 0x1f100, 0x1f10a,
+ 0x1f110, 0x1f12e,
+ 0x1f131, 0x1f131,
+ 0x1f13d, 0x1f13d,
+ 0x1f13f, 0x1f13f,
+ 0x1f142, 0x1f142,
+ 0x1f146, 0x1f146,
+ 0x1f14a, 0x1f14e,
+ 0x1f157, 0x1f157,
+ 0x1f15f, 0x1f15f,
+ 0x1f179, 0x1f179,
+ 0x1f17b, 0x1f17c,
+ 0x1f17f, 0x1f17f,
+ 0x1f18a, 0x1f18d,
+ 0x1f190, 0x1f190,
+ 0x1f200, 0x1f200,
+ 0x1f210, 0x1f231,
+ 0x1f240, 0x1f248,
+ 0x1fffe, 0x2a6d6,
+ 0x2a700, 0x2b734,
+ 0x2f800, 0x2fa1d,
+ 0x2fffe, 0x2ffff,
+ 0x3fffe, 0x3ffff,
+ 0x4fffe, 0x4ffff,
+ 0x5fffe, 0x5ffff,
+ 0x6fffe, 0x6ffff,
+ 0x7fffe, 0x7ffff,
+ 0x8fffe, 0x8ffff,
+ 0x9fffe, 0x9ffff,
+ 0xafffe, 0xaffff,
+ 0xbfffe, 0xbffff,
+ 0xcfffe, 0xcffff,
+ 0xdfffe, 0xdffff,
+ 0xe0001, 0xe0001,
+ 0xe0020, 0xe007f,
+ 0xe0100, 0xe01ef,
+ 0xefffe, 0x10ffff,
+}; /* CR_Age_5_2 */
+
+/* 'Age_6_0': Derived Age 6.0 */
+static const OnigCodePoint CR_Age_6_0[] = {
+ 511,
+ 0x0000, 0x0377,
+ 0x037a, 0x037e,
+ 0x0384, 0x038a,
+ 0x038c, 0x038c,
+ 0x038e, 0x03a1,
+ 0x03a3, 0x0527,
+ 0x0531, 0x0556,
+ 0x0559, 0x055f,
+ 0x0561, 0x0587,
+ 0x0589, 0x058a,
+ 0x0591, 0x05c7,
+ 0x05d0, 0x05ea,
+ 0x05f0, 0x05f4,
+ 0x0600, 0x0603,
+ 0x0606, 0x061b,
+ 0x061e, 0x070d,
+ 0x070f, 0x074a,
+ 0x074d, 0x07b1,
+ 0x07c0, 0x07fa,
+ 0x0800, 0x082d,
+ 0x0830, 0x083e,
+ 0x0840, 0x085b,
+ 0x085e, 0x085e,
+ 0x0900, 0x0977,
+ 0x0979, 0x097f,
+ 0x0981, 0x0983,
+ 0x0985, 0x098c,
+ 0x098f, 0x0990,
+ 0x0993, 0x09a8,
+ 0x09aa, 0x09b0,
+ 0x09b2, 0x09b2,
+ 0x09b6, 0x09b9,
+ 0x09bc, 0x09c4,
+ 0x09c7, 0x09c8,
+ 0x09cb, 0x09ce,
+ 0x09d7, 0x09d7,
+ 0x09dc, 0x09dd,
+ 0x09df, 0x09e3,
+ 0x09e6, 0x09fb,
+ 0x0a01, 0x0a03,
+ 0x0a05, 0x0a0a,
+ 0x0a0f, 0x0a10,
+ 0x0a13, 0x0a28,
+ 0x0a2a, 0x0a30,
+ 0x0a32, 0x0a33,
+ 0x0a35, 0x0a36,
+ 0x0a38, 0x0a39,
+ 0x0a3c, 0x0a3c,
+ 0x0a3e, 0x0a42,
+ 0x0a47, 0x0a48,
+ 0x0a4b, 0x0a4d,
+ 0x0a51, 0x0a51,
+ 0x0a59, 0x0a5c,
+ 0x0a5e, 0x0a5e,
+ 0x0a66, 0x0a75,
+ 0x0a81, 0x0a83,
+ 0x0a85, 0x0a8d,
+ 0x0a8f, 0x0a91,
+ 0x0a93, 0x0aa8,
+ 0x0aaa, 0x0ab0,
+ 0x0ab2, 0x0ab3,
+ 0x0ab5, 0x0ab9,
+ 0x0abc, 0x0ac5,
+ 0x0ac7, 0x0ac9,
+ 0x0acb, 0x0acd,
+ 0x0ad0, 0x0ad0,
+ 0x0ae0, 0x0ae3,
+ 0x0ae6, 0x0aef,
+ 0x0af1, 0x0af1,
+ 0x0b01, 0x0b03,
+ 0x0b05, 0x0b0c,
+ 0x0b0f, 0x0b10,
+ 0x0b13, 0x0b28,
+ 0x0b2a, 0x0b30,
+ 0x0b32, 0x0b33,
+ 0x0b35, 0x0b39,
+ 0x0b3c, 0x0b44,
+ 0x0b47, 0x0b48,
+ 0x0b4b, 0x0b4d,
+ 0x0b56, 0x0b57,
+ 0x0b5c, 0x0b5d,
+ 0x0b5f, 0x0b63,
+ 0x0b66, 0x0b77,
+ 0x0b82, 0x0b83,
+ 0x0b85, 0x0b8a,
+ 0x0b8e, 0x0b90,
+ 0x0b92, 0x0b95,
+ 0x0b99, 0x0b9a,
+ 0x0b9c, 0x0b9c,
+ 0x0b9e, 0x0b9f,
+ 0x0ba3, 0x0ba4,
+ 0x0ba8, 0x0baa,
+ 0x0bae, 0x0bb9,
+ 0x0bbe, 0x0bc2,
+ 0x0bc6, 0x0bc8,
+ 0x0bca, 0x0bcd,
+ 0x0bd0, 0x0bd0,
+ 0x0bd7, 0x0bd7,
+ 0x0be6, 0x0bfa,
+ 0x0c01, 0x0c03,
+ 0x0c05, 0x0c0c,
+ 0x0c0e, 0x0c10,
+ 0x0c12, 0x0c28,
+ 0x0c2a, 0x0c33,
+ 0x0c35, 0x0c39,
+ 0x0c3d, 0x0c44,
+ 0x0c46, 0x0c48,
+ 0x0c4a, 0x0c4d,
+ 0x0c55, 0x0c56,
+ 0x0c58, 0x0c59,
+ 0x0c60, 0x0c63,
+ 0x0c66, 0x0c6f,
+ 0x0c78, 0x0c7f,
+ 0x0c82, 0x0c83,
+ 0x0c85, 0x0c8c,
+ 0x0c8e, 0x0c90,
+ 0x0c92, 0x0ca8,
+ 0x0caa, 0x0cb3,
+ 0x0cb5, 0x0cb9,
+ 0x0cbc, 0x0cc4,
+ 0x0cc6, 0x0cc8,
+ 0x0cca, 0x0ccd,
+ 0x0cd5, 0x0cd6,
+ 0x0cde, 0x0cde,
+ 0x0ce0, 0x0ce3,
+ 0x0ce6, 0x0cef,
+ 0x0cf1, 0x0cf2,
+ 0x0d02, 0x0d03,
+ 0x0d05, 0x0d0c,
+ 0x0d0e, 0x0d10,
+ 0x0d12, 0x0d3a,
+ 0x0d3d, 0x0d44,
+ 0x0d46, 0x0d48,
+ 0x0d4a, 0x0d4e,
+ 0x0d57, 0x0d57,
+ 0x0d60, 0x0d63,
+ 0x0d66, 0x0d75,
+ 0x0d79, 0x0d7f,
+ 0x0d82, 0x0d83,
+ 0x0d85, 0x0d96,
+ 0x0d9a, 0x0db1,
+ 0x0db3, 0x0dbb,
+ 0x0dbd, 0x0dbd,
+ 0x0dc0, 0x0dc6,
+ 0x0dca, 0x0dca,
+ 0x0dcf, 0x0dd4,
+ 0x0dd6, 0x0dd6,
+ 0x0dd8, 0x0ddf,
+ 0x0df2, 0x0df4,
+ 0x0e01, 0x0e3a,
+ 0x0e3f, 0x0e5b,
+ 0x0e81, 0x0e82,
+ 0x0e84, 0x0e84,
+ 0x0e87, 0x0e88,
+ 0x0e8a, 0x0e8a,
+ 0x0e8d, 0x0e8d,
+ 0x0e94, 0x0e97,
+ 0x0e99, 0x0e9f,
+ 0x0ea1, 0x0ea3,
+ 0x0ea5, 0x0ea5,
+ 0x0ea7, 0x0ea7,
+ 0x0eaa, 0x0eab,
+ 0x0ead, 0x0eb9,
+ 0x0ebb, 0x0ebd,
+ 0x0ec0, 0x0ec4,
+ 0x0ec6, 0x0ec6,
+ 0x0ec8, 0x0ecd,
+ 0x0ed0, 0x0ed9,
+ 0x0edc, 0x0edd,
+ 0x0f00, 0x0f47,
+ 0x0f49, 0x0f6c,
+ 0x0f71, 0x0f97,
+ 0x0f99, 0x0fbc,
+ 0x0fbe, 0x0fcc,
+ 0x0fce, 0x0fda,
+ 0x1000, 0x10c5,
+ 0x10d0, 0x10fc,
+ 0x1100, 0x1248,
+ 0x124a, 0x124d,
+ 0x1250, 0x1256,
+ 0x1258, 0x1258,
+ 0x125a, 0x125d,
+ 0x1260, 0x1288,
+ 0x128a, 0x128d,
+ 0x1290, 0x12b0,
+ 0x12b2, 0x12b5,
+ 0x12b8, 0x12be,
+ 0x12c0, 0x12c0,
+ 0x12c2, 0x12c5,
+ 0x12c8, 0x12d6,
+ 0x12d8, 0x1310,
+ 0x1312, 0x1315,
+ 0x1318, 0x135a,
+ 0x135d, 0x137c,
+ 0x1380, 0x1399,
+ 0x13a0, 0x13f4,
+ 0x1400, 0x169c,
+ 0x16a0, 0x16f0,
+ 0x1700, 0x170c,
+ 0x170e, 0x1714,
+ 0x1720, 0x1736,
+ 0x1740, 0x1753,
+ 0x1760, 0x176c,
+ 0x176e, 0x1770,
+ 0x1772, 0x1773,
+ 0x1780, 0x17dd,
+ 0x17e0, 0x17e9,
+ 0x17f0, 0x17f9,
+ 0x1800, 0x180e,
+ 0x1810, 0x1819,
+ 0x1820, 0x1877,
+ 0x1880, 0x18aa,
+ 0x18b0, 0x18f5,
+ 0x1900, 0x191c,
+ 0x1920, 0x192b,
+ 0x1930, 0x193b,
+ 0x1940, 0x1940,
+ 0x1944, 0x196d,
+ 0x1970, 0x1974,
+ 0x1980, 0x19ab,
+ 0x19b0, 0x19c9,
+ 0x19d0, 0x19da,
+ 0x19de, 0x1a1b,
+ 0x1a1e, 0x1a5e,
+ 0x1a60, 0x1a7c,
+ 0x1a7f, 0x1a89,
+ 0x1a90, 0x1a99,
+ 0x1aa0, 0x1aad,
+ 0x1b00, 0x1b4b,
+ 0x1b50, 0x1b7c,
+ 0x1b80, 0x1baa,
+ 0x1bae, 0x1bb9,
+ 0x1bc0, 0x1bf3,
+ 0x1bfc, 0x1c37,
+ 0x1c3b, 0x1c49,
+ 0x1c4d, 0x1c7f,
+ 0x1cd0, 0x1cf2,
+ 0x1d00, 0x1de6,
+ 0x1dfc, 0x1f15,
+ 0x1f18, 0x1f1d,
+ 0x1f20, 0x1f45,
+ 0x1f48, 0x1f4d,
+ 0x1f50, 0x1f57,
+ 0x1f59, 0x1f59,
+ 0x1f5b, 0x1f5b,
+ 0x1f5d, 0x1f5d,
+ 0x1f5f, 0x1f7d,
+ 0x1f80, 0x1fb4,
+ 0x1fb6, 0x1fc4,
+ 0x1fc6, 0x1fd3,
+ 0x1fd6, 0x1fdb,
+ 0x1fdd, 0x1fef,
+ 0x1ff2, 0x1ff4,
+ 0x1ff6, 0x1ffe,
+ 0x2000, 0x2064,
+ 0x206a, 0x2071,
+ 0x2074, 0x208e,
+ 0x2090, 0x209c,
+ 0x20a0, 0x20b9,
+ 0x20d0, 0x20f0,
+ 0x2100, 0x2189,
+ 0x2190, 0x23f3,
+ 0x2400, 0x2426,
+ 0x2440, 0x244a,
+ 0x2460, 0x26ff,
+ 0x2701, 0x27ca,
+ 0x27cc, 0x27cc,
+ 0x27ce, 0x2b4c,
+ 0x2b50, 0x2b59,
+ 0x2c00, 0x2c2e,
+ 0x2c30, 0x2c5e,
+ 0x2c60, 0x2cf1,
+ 0x2cf9, 0x2d25,
+ 0x2d30, 0x2d65,
+ 0x2d6f, 0x2d70,
+ 0x2d7f, 0x2d96,
+ 0x2da0, 0x2da6,
+ 0x2da8, 0x2dae,
+ 0x2db0, 0x2db6,
+ 0x2db8, 0x2dbe,
+ 0x2dc0, 0x2dc6,
+ 0x2dc8, 0x2dce,
+ 0x2dd0, 0x2dd6,
+ 0x2dd8, 0x2dde,
+ 0x2de0, 0x2e31,
+ 0x2e80, 0x2e99,
+ 0x2e9b, 0x2ef3,
+ 0x2f00, 0x2fd5,
+ 0x2ff0, 0x2ffb,
+ 0x3000, 0x303f,
+ 0x3041, 0x3096,
+ 0x3099, 0x30ff,
+ 0x3105, 0x312d,
+ 0x3131, 0x318e,
+ 0x3190, 0x31ba,
+ 0x31c0, 0x31e3,
+ 0x31f0, 0x321e,
+ 0x3220, 0x32fe,
+ 0x3300, 0x4db5,
+ 0x4dc0, 0x9fcb,
+ 0xa000, 0xa48c,
+ 0xa490, 0xa4c6,
+ 0xa4d0, 0xa62b,
+ 0xa640, 0xa673,
+ 0xa67c, 0xa697,
+ 0xa6a0, 0xa6f7,
+ 0xa700, 0xa78e,
+ 0xa790, 0xa791,
+ 0xa7a0, 0xa7a9,
+ 0xa7fa, 0xa82b,
+ 0xa830, 0xa839,
+ 0xa840, 0xa877,
+ 0xa880, 0xa8c4,
+ 0xa8ce, 0xa8d9,
+ 0xa8e0, 0xa8fb,
+ 0xa900, 0xa953,
+ 0xa95f, 0xa97c,
+ 0xa980, 0xa9cd,
+ 0xa9cf, 0xa9d9,
+ 0xa9de, 0xa9df,
+ 0xaa00, 0xaa36,
+ 0xaa40, 0xaa4d,
+ 0xaa50, 0xaa59,
+ 0xaa5c, 0xaa7b,
+ 0xaa80, 0xaac2,
+ 0xaadb, 0xaadf,
+ 0xab01, 0xab06,
+ 0xab09, 0xab0e,
+ 0xab11, 0xab16,
+ 0xab20, 0xab26,
+ 0xab28, 0xab2e,
+ 0xabc0, 0xabed,
+ 0xabf0, 0xabf9,
+ 0xac00, 0xd7a3,
+ 0xd7b0, 0xd7c6,
+ 0xd7cb, 0xd7fb,
+ 0xd800, 0xfa2d,
+ 0xfa30, 0xfa6d,
+ 0xfa70, 0xfad9,
+ 0xfb00, 0xfb06,
+ 0xfb13, 0xfb17,
+ 0xfb1d, 0xfb36,
+ 0xfb38, 0xfb3c,
+ 0xfb3e, 0xfb3e,
+ 0xfb40, 0xfb41,
+ 0xfb43, 0xfb44,
+ 0xfb46, 0xfbc1,
+ 0xfbd3, 0xfd3f,
+ 0xfd50, 0xfd8f,
+ 0xfd92, 0xfdc7,
+ 0xfdd0, 0xfdfd,
+ 0xfe00, 0xfe19,
+ 0xfe20, 0xfe26,
+ 0xfe30, 0xfe52,
+ 0xfe54, 0xfe66,
+ 0xfe68, 0xfe6b,
+ 0xfe70, 0xfe74,
+ 0xfe76, 0xfefc,
+ 0xfeff, 0xfeff,
+ 0xff01, 0xffbe,
+ 0xffc2, 0xffc7,
+ 0xffca, 0xffcf,
+ 0xffd2, 0xffd7,
+ 0xffda, 0xffdc,
+ 0xffe0, 0xffe6,
+ 0xffe8, 0xffee,
+ 0xfff9, 0x1000b,
+ 0x1000d, 0x10026,
+ 0x10028, 0x1003a,
+ 0x1003c, 0x1003d,
+ 0x1003f, 0x1004d,
+ 0x10050, 0x1005d,
+ 0x10080, 0x100fa,
+ 0x10100, 0x10102,
+ 0x10107, 0x10133,
+ 0x10137, 0x1018a,
+ 0x10190, 0x1019b,
+ 0x101d0, 0x101fd,
+ 0x10280, 0x1029c,
+ 0x102a0, 0x102d0,
+ 0x10300, 0x1031e,
+ 0x10320, 0x10323,
+ 0x10330, 0x1034a,
+ 0x10380, 0x1039d,
+ 0x1039f, 0x103c3,
+ 0x103c8, 0x103d5,
+ 0x10400, 0x1049d,
+ 0x104a0, 0x104a9,
+ 0x10800, 0x10805,
+ 0x10808, 0x10808,
+ 0x1080a, 0x10835,
+ 0x10837, 0x10838,
+ 0x1083c, 0x1083c,
+ 0x1083f, 0x10855,
+ 0x10857, 0x1085f,
+ 0x10900, 0x1091b,
+ 0x1091f, 0x10939,
+ 0x1093f, 0x1093f,
+ 0x10a00, 0x10a03,
+ 0x10a05, 0x10a06,
+ 0x10a0c, 0x10a13,
+ 0x10a15, 0x10a17,
+ 0x10a19, 0x10a33,
+ 0x10a38, 0x10a3a,
+ 0x10a3f, 0x10a47,
+ 0x10a50, 0x10a58,
+ 0x10a60, 0x10a7f,
+ 0x10b00, 0x10b35,
+ 0x10b39, 0x10b55,
+ 0x10b58, 0x10b72,
+ 0x10b78, 0x10b7f,
+ 0x10c00, 0x10c48,
+ 0x10e60, 0x10e7e,
+ 0x11000, 0x1104d,
+ 0x11052, 0x1106f,
+ 0x11080, 0x110c1,
+ 0x12000, 0x1236e,
+ 0x12400, 0x12462,
+ 0x12470, 0x12473,
+ 0x13000, 0x1342e,
+ 0x16800, 0x16a38,
+ 0x1b000, 0x1b001,
+ 0x1d000, 0x1d0f5,
+ 0x1d100, 0x1d126,
+ 0x1d129, 0x1d1dd,
+ 0x1d200, 0x1d245,
+ 0x1d300, 0x1d356,
+ 0x1d360, 0x1d371,
+ 0x1d400, 0x1d454,
+ 0x1d456, 0x1d49c,
+ 0x1d49e, 0x1d49f,
+ 0x1d4a2, 0x1d4a2,
+ 0x1d4a5, 0x1d4a6,
+ 0x1d4a9, 0x1d4ac,
+ 0x1d4ae, 0x1d4b9,
+ 0x1d4bb, 0x1d4bb,
+ 0x1d4bd, 0x1d4c3,
+ 0x1d4c5, 0x1d505,
+ 0x1d507, 0x1d50a,
+ 0x1d50d, 0x1d514,
+ 0x1d516, 0x1d51c,
+ 0x1d51e, 0x1d539,
+ 0x1d53b, 0x1d53e,
+ 0x1d540, 0x1d544,
+ 0x1d546, 0x1d546,
+ 0x1d54a, 0x1d550,
+ 0x1d552, 0x1d6a5,
+ 0x1d6a8, 0x1d7cb,
+ 0x1d7ce, 0x1d7ff,
+ 0x1f000, 0x1f02b,
+ 0x1f030, 0x1f093,
+ 0x1f0a0, 0x1f0ae,
+ 0x1f0b1, 0x1f0be,
+ 0x1f0c1, 0x1f0cf,
+ 0x1f0d1, 0x1f0df,
+ 0x1f100, 0x1f10a,
+ 0x1f110, 0x1f12e,
+ 0x1f130, 0x1f169,
+ 0x1f170, 0x1f19a,
+ 0x1f1e6, 0x1f202,
+ 0x1f210, 0x1f23a,
+ 0x1f240, 0x1f248,
+ 0x1f250, 0x1f251,
+ 0x1f300, 0x1f320,
+ 0x1f330, 0x1f335,
+ 0x1f337, 0x1f37c,
+ 0x1f380, 0x1f393,
+ 0x1f3a0, 0x1f3c4,
+ 0x1f3c6, 0x1f3ca,
+ 0x1f3e0, 0x1f3f0,
+ 0x1f400, 0x1f43e,
+ 0x1f440, 0x1f440,
+ 0x1f442, 0x1f4f7,
+ 0x1f4f9, 0x1f4fc,
+ 0x1f500, 0x1f53d,
+ 0x1f550, 0x1f567,
+ 0x1f5fb, 0x1f5ff,
+ 0x1f601, 0x1f610,
+ 0x1f612, 0x1f614,
+ 0x1f616, 0x1f616,
+ 0x1f618, 0x1f618,
+ 0x1f61a, 0x1f61a,
+ 0x1f61c, 0x1f61e,
+ 0x1f620, 0x1f625,
+ 0x1f628, 0x1f62b,
+ 0x1f62d, 0x1f62d,
+ 0x1f630, 0x1f633,
+ 0x1f635, 0x1f640,
+ 0x1f645, 0x1f64f,
+ 0x1f680, 0x1f6c5,
+ 0x1f700, 0x1f773,
+ 0x1fffe, 0x2a6d6,
+ 0x2a700, 0x2b734,
+ 0x2b740, 0x2b81d,
+ 0x2f800, 0x2fa1d,
+ 0x2fffe, 0x2ffff,
+ 0x3fffe, 0x3ffff,
+ 0x4fffe, 0x4ffff,
+ 0x5fffe, 0x5ffff,
+ 0x6fffe, 0x6ffff,
+ 0x7fffe, 0x7ffff,
+ 0x8fffe, 0x8ffff,
+ 0x9fffe, 0x9ffff,
+ 0xafffe, 0xaffff,
+ 0xbfffe, 0xbffff,
+ 0xcfffe, 0xcffff,
+ 0xdfffe, 0xdffff,
+ 0xe0001, 0xe0001,
+ 0xe0020, 0xe007f,
+ 0xe0100, 0xe01ef,
+ 0xefffe, 0x10ffff,
+}; /* CR_Age_6_0 */
+
+/* 'NEWLINE': [[:NEWLINE:]] */
+static const OnigCodePoint CR_NEWLINE[] = {
+ 1,
+ 0x000a, 0x000a,
+}; /* CR_NEWLINE */
+
+/* 'Alpha': [[:Alpha:]] */
+#define CR_Alpha CR_Alphabetic
+
+/* 'Blank': [[:Blank:]] */
+static const OnigCodePoint CR_Blank[] = {
+ 9,
+ 0x0009, 0x0009,
+ 0x0020, 0x0020,
+ 0x00a0, 0x00a0,
+ 0x1680, 0x1680,
+ 0x180e, 0x180e,
+ 0x2000, 0x200a,
+ 0x202f, 0x202f,
+ 0x205f, 0x205f,
+ 0x3000, 0x3000,
+}; /* CR_Blank */
+
+/* 'Cntrl': [[:Cntrl:]] */
+#define CR_Cntrl CR_Cc
+
+/* 'Digit': [[:Digit:]] */
+#define CR_Digit CR_Nd
+
+/* 'Graph': [[:Graph:]] */
+static const OnigCodePoint CR_Graph[] = {
+ 506,
+ 0x0021, 0x007e,
+ 0x00a1, 0x0377,
+ 0x037a, 0x037e,
+ 0x0384, 0x038a,
+ 0x038c, 0x038c,
+ 0x038e, 0x03a1,
+ 0x03a3, 0x0527,
+ 0x0531, 0x0556,
+ 0x0559, 0x055f,
+ 0x0561, 0x0587,
+ 0x0589, 0x058a,
+ 0x0591, 0x05c7,
+ 0x05d0, 0x05ea,
+ 0x05f0, 0x05f4,
+ 0x0600, 0x0603,
+ 0x0606, 0x061b,
+ 0x061e, 0x070d,
+ 0x070f, 0x074a,
+ 0x074d, 0x07b1,
+ 0x07c0, 0x07fa,
+ 0x0800, 0x082d,
+ 0x0830, 0x083e,
+ 0x0840, 0x085b,
+ 0x085e, 0x085e,
+ 0x0900, 0x0977,
+ 0x0979, 0x097f,
+ 0x0981, 0x0983,
+ 0x0985, 0x098c,
+ 0x098f, 0x0990,
+ 0x0993, 0x09a8,
+ 0x09aa, 0x09b0,
+ 0x09b2, 0x09b2,
+ 0x09b6, 0x09b9,
+ 0x09bc, 0x09c4,
+ 0x09c7, 0x09c8,
+ 0x09cb, 0x09ce,
+ 0x09d7, 0x09d7,
+ 0x09dc, 0x09dd,
+ 0x09df, 0x09e3,
+ 0x09e6, 0x09fb,
+ 0x0a01, 0x0a03,
+ 0x0a05, 0x0a0a,
+ 0x0a0f, 0x0a10,
+ 0x0a13, 0x0a28,
+ 0x0a2a, 0x0a30,
+ 0x0a32, 0x0a33,
+ 0x0a35, 0x0a36,
+ 0x0a38, 0x0a39,
+ 0x0a3c, 0x0a3c,
+ 0x0a3e, 0x0a42,
+ 0x0a47, 0x0a48,
+ 0x0a4b, 0x0a4d,
+ 0x0a51, 0x0a51,
+ 0x0a59, 0x0a5c,
+ 0x0a5e, 0x0a5e,
+ 0x0a66, 0x0a75,
+ 0x0a81, 0x0a83,
+ 0x0a85, 0x0a8d,
+ 0x0a8f, 0x0a91,
+ 0x0a93, 0x0aa8,
+ 0x0aaa, 0x0ab0,
+ 0x0ab2, 0x0ab3,
+ 0x0ab5, 0x0ab9,
+ 0x0abc, 0x0ac5,
+ 0x0ac7, 0x0ac9,
+ 0x0acb, 0x0acd,
+ 0x0ad0, 0x0ad0,
+ 0x0ae0, 0x0ae3,
+ 0x0ae6, 0x0aef,
+ 0x0af1, 0x0af1,
+ 0x0b01, 0x0b03,
+ 0x0b05, 0x0b0c,
+ 0x0b0f, 0x0b10,
+ 0x0b13, 0x0b28,
+ 0x0b2a, 0x0b30,
+ 0x0b32, 0x0b33,
+ 0x0b35, 0x0b39,
+ 0x0b3c, 0x0b44,
+ 0x0b47, 0x0b48,
+ 0x0b4b, 0x0b4d,
+ 0x0b56, 0x0b57,
+ 0x0b5c, 0x0b5d,
+ 0x0b5f, 0x0b63,
+ 0x0b66, 0x0b77,
+ 0x0b82, 0x0b83,
+ 0x0b85, 0x0b8a,
+ 0x0b8e, 0x0b90,
+ 0x0b92, 0x0b95,
+ 0x0b99, 0x0b9a,
+ 0x0b9c, 0x0b9c,
+ 0x0b9e, 0x0b9f,
+ 0x0ba3, 0x0ba4,
+ 0x0ba8, 0x0baa,
+ 0x0bae, 0x0bb9,
+ 0x0bbe, 0x0bc2,
+ 0x0bc6, 0x0bc8,
+ 0x0bca, 0x0bcd,
+ 0x0bd0, 0x0bd0,
+ 0x0bd7, 0x0bd7,
+ 0x0be6, 0x0bfa,
+ 0x0c01, 0x0c03,
+ 0x0c05, 0x0c0c,
+ 0x0c0e, 0x0c10,
+ 0x0c12, 0x0c28,
+ 0x0c2a, 0x0c33,
+ 0x0c35, 0x0c39,
+ 0x0c3d, 0x0c44,
+ 0x0c46, 0x0c48,
+ 0x0c4a, 0x0c4d,
+ 0x0c55, 0x0c56,
+ 0x0c58, 0x0c59,
+ 0x0c60, 0x0c63,
+ 0x0c66, 0x0c6f,
+ 0x0c78, 0x0c7f,
+ 0x0c82, 0x0c83,
+ 0x0c85, 0x0c8c,
+ 0x0c8e, 0x0c90,
+ 0x0c92, 0x0ca8,
+ 0x0caa, 0x0cb3,
+ 0x0cb5, 0x0cb9,
+ 0x0cbc, 0x0cc4,
+ 0x0cc6, 0x0cc8,
+ 0x0cca, 0x0ccd,
+ 0x0cd5, 0x0cd6,
+ 0x0cde, 0x0cde,
+ 0x0ce0, 0x0ce3,
+ 0x0ce6, 0x0cef,
+ 0x0cf1, 0x0cf2,
+ 0x0d02, 0x0d03,
+ 0x0d05, 0x0d0c,
+ 0x0d0e, 0x0d10,
+ 0x0d12, 0x0d3a,
+ 0x0d3d, 0x0d44,
+ 0x0d46, 0x0d48,
+ 0x0d4a, 0x0d4e,
+ 0x0d57, 0x0d57,
+ 0x0d60, 0x0d63,
+ 0x0d66, 0x0d75,
+ 0x0d79, 0x0d7f,
+ 0x0d82, 0x0d83,
+ 0x0d85, 0x0d96,
+ 0x0d9a, 0x0db1,
+ 0x0db3, 0x0dbb,
+ 0x0dbd, 0x0dbd,
+ 0x0dc0, 0x0dc6,
+ 0x0dca, 0x0dca,
+ 0x0dcf, 0x0dd4,
+ 0x0dd6, 0x0dd6,
+ 0x0dd8, 0x0ddf,
+ 0x0df2, 0x0df4,
+ 0x0e01, 0x0e3a,
+ 0x0e3f, 0x0e5b,
+ 0x0e81, 0x0e82,
+ 0x0e84, 0x0e84,
+ 0x0e87, 0x0e88,
+ 0x0e8a, 0x0e8a,
+ 0x0e8d, 0x0e8d,
+ 0x0e94, 0x0e97,
+ 0x0e99, 0x0e9f,
+ 0x0ea1, 0x0ea3,
+ 0x0ea5, 0x0ea5,
+ 0x0ea7, 0x0ea7,
+ 0x0eaa, 0x0eab,
+ 0x0ead, 0x0eb9,
+ 0x0ebb, 0x0ebd,
+ 0x0ec0, 0x0ec4,
+ 0x0ec6, 0x0ec6,
+ 0x0ec8, 0x0ecd,
+ 0x0ed0, 0x0ed9,
+ 0x0edc, 0x0edd,
+ 0x0f00, 0x0f47,
+ 0x0f49, 0x0f6c,
+ 0x0f71, 0x0f97,
+ 0x0f99, 0x0fbc,
+ 0x0fbe, 0x0fcc,
+ 0x0fce, 0x0fda,
+ 0x1000, 0x10c5,
+ 0x10d0, 0x10fc,
+ 0x1100, 0x1248,
+ 0x124a, 0x124d,
+ 0x1250, 0x1256,
+ 0x1258, 0x1258,
+ 0x125a, 0x125d,
+ 0x1260, 0x1288,
+ 0x128a, 0x128d,
+ 0x1290, 0x12b0,
+ 0x12b2, 0x12b5,
+ 0x12b8, 0x12be,
+ 0x12c0, 0x12c0,
+ 0x12c2, 0x12c5,
+ 0x12c8, 0x12d6,
+ 0x12d8, 0x1310,
+ 0x1312, 0x1315,
+ 0x1318, 0x135a,
+ 0x135d, 0x137c,
+ 0x1380, 0x1399,
+ 0x13a0, 0x13f4,
+ 0x1400, 0x167f,
+ 0x1681, 0x169c,
+ 0x16a0, 0x16f0,
+ 0x1700, 0x170c,
+ 0x170e, 0x1714,
+ 0x1720, 0x1736,
+ 0x1740, 0x1753,
+ 0x1760, 0x176c,
+ 0x176e, 0x1770,
+ 0x1772, 0x1773,
+ 0x1780, 0x17dd,
+ 0x17e0, 0x17e9,
+ 0x17f0, 0x17f9,
+ 0x1800, 0x180d,
+ 0x1810, 0x1819,
+ 0x1820, 0x1877,
+ 0x1880, 0x18aa,
+ 0x18b0, 0x18f5,
+ 0x1900, 0x191c,
+ 0x1920, 0x192b,
+ 0x1930, 0x193b,
+ 0x1940, 0x1940,
+ 0x1944, 0x196d,
+ 0x1970, 0x1974,
+ 0x1980, 0x19ab,
+ 0x19b0, 0x19c9,
+ 0x19d0, 0x19da,
+ 0x19de, 0x1a1b,
+ 0x1a1e, 0x1a5e,
+ 0x1a60, 0x1a7c,
+ 0x1a7f, 0x1a89,
+ 0x1a90, 0x1a99,
+ 0x1aa0, 0x1aad,
+ 0x1b00, 0x1b4b,
+ 0x1b50, 0x1b7c,
+ 0x1b80, 0x1baa,
+ 0x1bae, 0x1bb9,
+ 0x1bc0, 0x1bf3,
+ 0x1bfc, 0x1c37,
+ 0x1c3b, 0x1c49,
+ 0x1c4d, 0x1c7f,
+ 0x1cd0, 0x1cf2,
+ 0x1d00, 0x1de6,
+ 0x1dfc, 0x1f15,
+ 0x1f18, 0x1f1d,
+ 0x1f20, 0x1f45,
+ 0x1f48, 0x1f4d,
+ 0x1f50, 0x1f57,
+ 0x1f59, 0x1f59,
+ 0x1f5b, 0x1f5b,
+ 0x1f5d, 0x1f5d,
+ 0x1f5f, 0x1f7d,
+ 0x1f80, 0x1fb4,
+ 0x1fb6, 0x1fc4,
+ 0x1fc6, 0x1fd3,
+ 0x1fd6, 0x1fdb,
+ 0x1fdd, 0x1fef,
+ 0x1ff2, 0x1ff4,
+ 0x1ff6, 0x1ffe,
+ 0x200b, 0x2027,
+ 0x202a, 0x202e,
+ 0x2030, 0x205e,
+ 0x2060, 0x2064,
+ 0x206a, 0x2071,
+ 0x2074, 0x208e,
+ 0x2090, 0x209c,
+ 0x20a0, 0x20b9,
+ 0x20d0, 0x20f0,
+ 0x2100, 0x2189,
+ 0x2190, 0x23f3,
+ 0x2400, 0x2426,
+ 0x2440, 0x244a,
+ 0x2460, 0x26ff,
+ 0x2701, 0x27ca,
+ 0x27cc, 0x27cc,
+ 0x27ce, 0x2b4c,
+ 0x2b50, 0x2b59,
+ 0x2c00, 0x2c2e,
+ 0x2c30, 0x2c5e,
+ 0x2c60, 0x2cf1,
+ 0x2cf9, 0x2d25,
+ 0x2d30, 0x2d65,
+ 0x2d6f, 0x2d70,
+ 0x2d7f, 0x2d96,
+ 0x2da0, 0x2da6,
+ 0x2da8, 0x2dae,
+ 0x2db0, 0x2db6,
+ 0x2db8, 0x2dbe,
+ 0x2dc0, 0x2dc6,
+ 0x2dc8, 0x2dce,
+ 0x2dd0, 0x2dd6,
+ 0x2dd8, 0x2dde,
+ 0x2de0, 0x2e31,
+ 0x2e80, 0x2e99,
+ 0x2e9b, 0x2ef3,
+ 0x2f00, 0x2fd5,
+ 0x2ff0, 0x2ffb,
+ 0x3001, 0x303f,
+ 0x3041, 0x3096,
+ 0x3099, 0x30ff,
+ 0x3105, 0x312d,
+ 0x3131, 0x318e,
+ 0x3190, 0x31ba,
+ 0x31c0, 0x31e3,
+ 0x31f0, 0x321e,
+ 0x3220, 0x32fe,
+ 0x3300, 0x4db5,
+ 0x4dc0, 0x9fcb,
+ 0xa000, 0xa48c,
+ 0xa490, 0xa4c6,
+ 0xa4d0, 0xa62b,
+ 0xa640, 0xa673,
+ 0xa67c, 0xa697,
+ 0xa6a0, 0xa6f7,
+ 0xa700, 0xa78e,
+ 0xa790, 0xa791,
+ 0xa7a0, 0xa7a9,
+ 0xa7fa, 0xa82b,
+ 0xa830, 0xa839,
+ 0xa840, 0xa877,
+ 0xa880, 0xa8c4,
+ 0xa8ce, 0xa8d9,
+ 0xa8e0, 0xa8fb,
+ 0xa900, 0xa953,
+ 0xa95f, 0xa97c,
+ 0xa980, 0xa9cd,
+ 0xa9cf, 0xa9d9,
+ 0xa9de, 0xa9df,
+ 0xaa00, 0xaa36,
+ 0xaa40, 0xaa4d,
+ 0xaa50, 0xaa59,
+ 0xaa5c, 0xaa7b,
+ 0xaa80, 0xaac2,
+ 0xaadb, 0xaadf,
+ 0xab01, 0xab06,
+ 0xab09, 0xab0e,
+ 0xab11, 0xab16,
+ 0xab20, 0xab26,
+ 0xab28, 0xab2e,
+ 0xabc0, 0xabed,
+ 0xabf0, 0xabf9,
+ 0xac00, 0xd7a3,
+ 0xd7b0, 0xd7c6,
+ 0xd7cb, 0xd7fb,
+ 0xe000, 0xfa2d,
+ 0xfa30, 0xfa6d,
+ 0xfa70, 0xfad9,
+ 0xfb00, 0xfb06,
+ 0xfb13, 0xfb17,
+ 0xfb1d, 0xfb36,
+ 0xfb38, 0xfb3c,
+ 0xfb3e, 0xfb3e,
+ 0xfb40, 0xfb41,
+ 0xfb43, 0xfb44,
+ 0xfb46, 0xfbc1,
+ 0xfbd3, 0xfd3f,
+ 0xfd50, 0xfd8f,
+ 0xfd92, 0xfdc7,
+ 0xfdf0, 0xfdfd,
+ 0xfe00, 0xfe19,
+ 0xfe20, 0xfe26,
+ 0xfe30, 0xfe52,
+ 0xfe54, 0xfe66,
+ 0xfe68, 0xfe6b,
+ 0xfe70, 0xfe74,
+ 0xfe76, 0xfefc,
+ 0xfeff, 0xfeff,
+ 0xff01, 0xffbe,
+ 0xffc2, 0xffc7,
+ 0xffca, 0xffcf,
+ 0xffd2, 0xffd7,
+ 0xffda, 0xffdc,
+ 0xffe0, 0xffe6,
+ 0xffe8, 0xffee,
+ 0xfff9, 0xfffd,
+ 0x10000, 0x1000b,
+ 0x1000d, 0x10026,
+ 0x10028, 0x1003a,
+ 0x1003c, 0x1003d,
+ 0x1003f, 0x1004d,
+ 0x10050, 0x1005d,
+ 0x10080, 0x100fa,
+ 0x10100, 0x10102,
+ 0x10107, 0x10133,
+ 0x10137, 0x1018a,
+ 0x10190, 0x1019b,
+ 0x101d0, 0x101fd,
+ 0x10280, 0x1029c,
+ 0x102a0, 0x102d0,
+ 0x10300, 0x1031e,
+ 0x10320, 0x10323,
+ 0x10330, 0x1034a,
+ 0x10380, 0x1039d,
+ 0x1039f, 0x103c3,
+ 0x103c8, 0x103d5,
+ 0x10400, 0x1049d,
+ 0x104a0, 0x104a9,
+ 0x10800, 0x10805,
+ 0x10808, 0x10808,
+ 0x1080a, 0x10835,
+ 0x10837, 0x10838,
+ 0x1083c, 0x1083c,
+ 0x1083f, 0x10855,
+ 0x10857, 0x1085f,
+ 0x10900, 0x1091b,
+ 0x1091f, 0x10939,
+ 0x1093f, 0x1093f,
+ 0x10a00, 0x10a03,
+ 0x10a05, 0x10a06,
+ 0x10a0c, 0x10a13,
+ 0x10a15, 0x10a17,
+ 0x10a19, 0x10a33,
+ 0x10a38, 0x10a3a,
+ 0x10a3f, 0x10a47,
+ 0x10a50, 0x10a58,
+ 0x10a60, 0x10a7f,
+ 0x10b00, 0x10b35,
+ 0x10b39, 0x10b55,
+ 0x10b58, 0x10b72,
+ 0x10b78, 0x10b7f,
+ 0x10c00, 0x10c48,
+ 0x10e60, 0x10e7e,
+ 0x11000, 0x1104d,
+ 0x11052, 0x1106f,
+ 0x11080, 0x110c1,
+ 0x12000, 0x1236e,
+ 0x12400, 0x12462,
+ 0x12470, 0x12473,
+ 0x13000, 0x1342e,
+ 0x16800, 0x16a38,
+ 0x1b000, 0x1b001,
+ 0x1d000, 0x1d0f5,
+ 0x1d100, 0x1d126,
+ 0x1d129, 0x1d1dd,
+ 0x1d200, 0x1d245,
+ 0x1d300, 0x1d356,
+ 0x1d360, 0x1d371,
+ 0x1d400, 0x1d454,
+ 0x1d456, 0x1d49c,
+ 0x1d49e, 0x1d49f,
+ 0x1d4a2, 0x1d4a2,
+ 0x1d4a5, 0x1d4a6,
+ 0x1d4a9, 0x1d4ac,
+ 0x1d4ae, 0x1d4b9,
+ 0x1d4bb, 0x1d4bb,
+ 0x1d4bd, 0x1d4c3,
+ 0x1d4c5, 0x1d505,
+ 0x1d507, 0x1d50a,
+ 0x1d50d, 0x1d514,
+ 0x1d516, 0x1d51c,
+ 0x1d51e, 0x1d539,
+ 0x1d53b, 0x1d53e,
+ 0x1d540, 0x1d544,
+ 0x1d546, 0x1d546,
+ 0x1d54a, 0x1d550,
+ 0x1d552, 0x1d6a5,
+ 0x1d6a8, 0x1d7cb,
+ 0x1d7ce, 0x1d7ff,
+ 0x1f000, 0x1f02b,
+ 0x1f030, 0x1f093,
+ 0x1f0a0, 0x1f0ae,
+ 0x1f0b1, 0x1f0be,
+ 0x1f0c1, 0x1f0cf,
+ 0x1f0d1, 0x1f0df,
+ 0x1f100, 0x1f10a,
+ 0x1f110, 0x1f12e,
+ 0x1f130, 0x1f169,
+ 0x1f170, 0x1f19a,
+ 0x1f1e6, 0x1f202,
+ 0x1f210, 0x1f23a,
+ 0x1f240, 0x1f248,
+ 0x1f250, 0x1f251,
+ 0x1f300, 0x1f320,
+ 0x1f330, 0x1f335,
+ 0x1f337, 0x1f37c,
+ 0x1f380, 0x1f393,
+ 0x1f3a0, 0x1f3c4,
+ 0x1f3c6, 0x1f3ca,
+ 0x1f3e0, 0x1f3f0,
+ 0x1f400, 0x1f43e,
+ 0x1f440, 0x1f440,
+ 0x1f442, 0x1f4f7,
+ 0x1f4f9, 0x1f4fc,
+ 0x1f500, 0x1f53d,
+ 0x1f550, 0x1f567,
+ 0x1f5fb, 0x1f5ff,
+ 0x1f601, 0x1f610,
+ 0x1f612, 0x1f614,
+ 0x1f616, 0x1f616,
+ 0x1f618, 0x1f618,
+ 0x1f61a, 0x1f61a,
+ 0x1f61c, 0x1f61e,
+ 0x1f620, 0x1f625,
+ 0x1f628, 0x1f62b,
+ 0x1f62d, 0x1f62d,
+ 0x1f630, 0x1f633,
+ 0x1f635, 0x1f640,
+ 0x1f645, 0x1f64f,
+ 0x1f680, 0x1f6c5,
+ 0x1f700, 0x1f773,
+ 0x20000, 0x2a6d6,
+ 0x2a700, 0x2b734,
+ 0x2b740, 0x2b81d,
+ 0x2f800, 0x2fa1d,
+ 0xe0001, 0xe0001,
+ 0xe0020, 0xe007f,
+ 0xe0100, 0xe01ef,
+ 0xf0000, 0xffffd,
+ 0x100000, 0x10fffd,
+}; /* CR_Graph */
+
+/* 'Lower': [[:Lower:]] */
+#define CR_Lower CR_Lowercase
+
+/* 'Print': [[:Print:]] */
+static const OnigCodePoint CR_Print[] = {
+ 503,
+ 0x0020, 0x007e,
+ 0x00a0, 0x0377,
+ 0x037a, 0x037e,
+ 0x0384, 0x038a,
+ 0x038c, 0x038c,
+ 0x038e, 0x03a1,
+ 0x03a3, 0x0527,
+ 0x0531, 0x0556,
+ 0x0559, 0x055f,
+ 0x0561, 0x0587,
+ 0x0589, 0x058a,
+ 0x0591, 0x05c7,
+ 0x05d0, 0x05ea,
+ 0x05f0, 0x05f4,
+ 0x0600, 0x0603,
+ 0x0606, 0x061b,
+ 0x061e, 0x070d,
+ 0x070f, 0x074a,
+ 0x074d, 0x07b1,
+ 0x07c0, 0x07fa,
+ 0x0800, 0x082d,
+ 0x0830, 0x083e,
+ 0x0840, 0x085b,
+ 0x085e, 0x085e,
+ 0x0900, 0x0977,
+ 0x0979, 0x097f,
+ 0x0981, 0x0983,
+ 0x0985, 0x098c,
+ 0x098f, 0x0990,
+ 0x0993, 0x09a8,
+ 0x09aa, 0x09b0,
+ 0x09b2, 0x09b2,
+ 0x09b6, 0x09b9,
+ 0x09bc, 0x09c4,
+ 0x09c7, 0x09c8,
+ 0x09cb, 0x09ce,
+ 0x09d7, 0x09d7,
+ 0x09dc, 0x09dd,
+ 0x09df, 0x09e3,
+ 0x09e6, 0x09fb,
+ 0x0a01, 0x0a03,
+ 0x0a05, 0x0a0a,
+ 0x0a0f, 0x0a10,
+ 0x0a13, 0x0a28,
+ 0x0a2a, 0x0a30,
+ 0x0a32, 0x0a33,
+ 0x0a35, 0x0a36,
+ 0x0a38, 0x0a39,
+ 0x0a3c, 0x0a3c,
+ 0x0a3e, 0x0a42,
+ 0x0a47, 0x0a48,
+ 0x0a4b, 0x0a4d,
+ 0x0a51, 0x0a51,
+ 0x0a59, 0x0a5c,
+ 0x0a5e, 0x0a5e,
+ 0x0a66, 0x0a75,
+ 0x0a81, 0x0a83,
+ 0x0a85, 0x0a8d,
+ 0x0a8f, 0x0a91,
+ 0x0a93, 0x0aa8,
+ 0x0aaa, 0x0ab0,
+ 0x0ab2, 0x0ab3,
+ 0x0ab5, 0x0ab9,
+ 0x0abc, 0x0ac5,
+ 0x0ac7, 0x0ac9,
+ 0x0acb, 0x0acd,
+ 0x0ad0, 0x0ad0,
+ 0x0ae0, 0x0ae3,
+ 0x0ae6, 0x0aef,
+ 0x0af1, 0x0af1,
+ 0x0b01, 0x0b03,
+ 0x0b05, 0x0b0c,
+ 0x0b0f, 0x0b10,
+ 0x0b13, 0x0b28,
+ 0x0b2a, 0x0b30,
+ 0x0b32, 0x0b33,
+ 0x0b35, 0x0b39,
+ 0x0b3c, 0x0b44,
+ 0x0b47, 0x0b48,
+ 0x0b4b, 0x0b4d,
+ 0x0b56, 0x0b57,
+ 0x0b5c, 0x0b5d,
+ 0x0b5f, 0x0b63,
+ 0x0b66, 0x0b77,
+ 0x0b82, 0x0b83,
+ 0x0b85, 0x0b8a,
+ 0x0b8e, 0x0b90,
+ 0x0b92, 0x0b95,
+ 0x0b99, 0x0b9a,
+ 0x0b9c, 0x0b9c,
+ 0x0b9e, 0x0b9f,
+ 0x0ba3, 0x0ba4,
+ 0x0ba8, 0x0baa,
+ 0x0bae, 0x0bb9,
+ 0x0bbe, 0x0bc2,
+ 0x0bc6, 0x0bc8,
+ 0x0bca, 0x0bcd,
+ 0x0bd0, 0x0bd0,
+ 0x0bd7, 0x0bd7,
+ 0x0be6, 0x0bfa,
+ 0x0c01, 0x0c03,
+ 0x0c05, 0x0c0c,
+ 0x0c0e, 0x0c10,
+ 0x0c12, 0x0c28,
+ 0x0c2a, 0x0c33,
+ 0x0c35, 0x0c39,
+ 0x0c3d, 0x0c44,
+ 0x0c46, 0x0c48,
+ 0x0c4a, 0x0c4d,
+ 0x0c55, 0x0c56,
+ 0x0c58, 0x0c59,
+ 0x0c60, 0x0c63,
+ 0x0c66, 0x0c6f,
+ 0x0c78, 0x0c7f,
+ 0x0c82, 0x0c83,
+ 0x0c85, 0x0c8c,
+ 0x0c8e, 0x0c90,
+ 0x0c92, 0x0ca8,
+ 0x0caa, 0x0cb3,
+ 0x0cb5, 0x0cb9,
+ 0x0cbc, 0x0cc4,
+ 0x0cc6, 0x0cc8,
+ 0x0cca, 0x0ccd,
+ 0x0cd5, 0x0cd6,
+ 0x0cde, 0x0cde,
+ 0x0ce0, 0x0ce3,
+ 0x0ce6, 0x0cef,
+ 0x0cf1, 0x0cf2,
+ 0x0d02, 0x0d03,
+ 0x0d05, 0x0d0c,
+ 0x0d0e, 0x0d10,
+ 0x0d12, 0x0d3a,
+ 0x0d3d, 0x0d44,
+ 0x0d46, 0x0d48,
+ 0x0d4a, 0x0d4e,
+ 0x0d57, 0x0d57,
+ 0x0d60, 0x0d63,
+ 0x0d66, 0x0d75,
+ 0x0d79, 0x0d7f,
+ 0x0d82, 0x0d83,
+ 0x0d85, 0x0d96,
+ 0x0d9a, 0x0db1,
+ 0x0db3, 0x0dbb,
+ 0x0dbd, 0x0dbd,
+ 0x0dc0, 0x0dc6,
+ 0x0dca, 0x0dca,
+ 0x0dcf, 0x0dd4,
+ 0x0dd6, 0x0dd6,
+ 0x0dd8, 0x0ddf,
+ 0x0df2, 0x0df4,
+ 0x0e01, 0x0e3a,
+ 0x0e3f, 0x0e5b,
+ 0x0e81, 0x0e82,
+ 0x0e84, 0x0e84,
+ 0x0e87, 0x0e88,
+ 0x0e8a, 0x0e8a,
+ 0x0e8d, 0x0e8d,
+ 0x0e94, 0x0e97,
+ 0x0e99, 0x0e9f,
+ 0x0ea1, 0x0ea3,
+ 0x0ea5, 0x0ea5,
+ 0x0ea7, 0x0ea7,
+ 0x0eaa, 0x0eab,
+ 0x0ead, 0x0eb9,
+ 0x0ebb, 0x0ebd,
+ 0x0ec0, 0x0ec4,
+ 0x0ec6, 0x0ec6,
+ 0x0ec8, 0x0ecd,
+ 0x0ed0, 0x0ed9,
+ 0x0edc, 0x0edd,
+ 0x0f00, 0x0f47,
+ 0x0f49, 0x0f6c,
+ 0x0f71, 0x0f97,
+ 0x0f99, 0x0fbc,
+ 0x0fbe, 0x0fcc,
+ 0x0fce, 0x0fda,
+ 0x1000, 0x10c5,
+ 0x10d0, 0x10fc,
+ 0x1100, 0x1248,
+ 0x124a, 0x124d,
+ 0x1250, 0x1256,
+ 0x1258, 0x1258,
+ 0x125a, 0x125d,
+ 0x1260, 0x1288,
+ 0x128a, 0x128d,
+ 0x1290, 0x12b0,
+ 0x12b2, 0x12b5,
+ 0x12b8, 0x12be,
+ 0x12c0, 0x12c0,
+ 0x12c2, 0x12c5,
+ 0x12c8, 0x12d6,
+ 0x12d8, 0x1310,
+ 0x1312, 0x1315,
+ 0x1318, 0x135a,
+ 0x135d, 0x137c,
+ 0x1380, 0x1399,
+ 0x13a0, 0x13f4,
+ 0x1400, 0x169c,
+ 0x16a0, 0x16f0,
+ 0x1700, 0x170c,
+ 0x170e, 0x1714,
+ 0x1720, 0x1736,
+ 0x1740, 0x1753,
+ 0x1760, 0x176c,
+ 0x176e, 0x1770,
+ 0x1772, 0x1773,
+ 0x1780, 0x17dd,
+ 0x17e0, 0x17e9,
+ 0x17f0, 0x17f9,
+ 0x1800, 0x180e,
+ 0x1810, 0x1819,
+ 0x1820, 0x1877,
+ 0x1880, 0x18aa,
+ 0x18b0, 0x18f5,
+ 0x1900, 0x191c,
+ 0x1920, 0x192b,
+ 0x1930, 0x193b,
+ 0x1940, 0x1940,
+ 0x1944, 0x196d,
+ 0x1970, 0x1974,
+ 0x1980, 0x19ab,
+ 0x19b0, 0x19c9,
+ 0x19d0, 0x19da,
+ 0x19de, 0x1a1b,
+ 0x1a1e, 0x1a5e,
+ 0x1a60, 0x1a7c,
+ 0x1a7f, 0x1a89,
+ 0x1a90, 0x1a99,
+ 0x1aa0, 0x1aad,
+ 0x1b00, 0x1b4b,
+ 0x1b50, 0x1b7c,
+ 0x1b80, 0x1baa,
+ 0x1bae, 0x1bb9,
+ 0x1bc0, 0x1bf3,
+ 0x1bfc, 0x1c37,
+ 0x1c3b, 0x1c49,
+ 0x1c4d, 0x1c7f,
+ 0x1cd0, 0x1cf2,
+ 0x1d00, 0x1de6,
+ 0x1dfc, 0x1f15,
+ 0x1f18, 0x1f1d,
+ 0x1f20, 0x1f45,
+ 0x1f48, 0x1f4d,
+ 0x1f50, 0x1f57,
+ 0x1f59, 0x1f59,
+ 0x1f5b, 0x1f5b,
+ 0x1f5d, 0x1f5d,
+ 0x1f5f, 0x1f7d,
+ 0x1f80, 0x1fb4,
+ 0x1fb6, 0x1fc4,
+ 0x1fc6, 0x1fd3,
+ 0x1fd6, 0x1fdb,
+ 0x1fdd, 0x1fef,
+ 0x1ff2, 0x1ff4,
+ 0x1ff6, 0x1ffe,
+ 0x2000, 0x2027,
+ 0x202a, 0x2064,
+ 0x206a, 0x2071,
+ 0x2074, 0x208e,
+ 0x2090, 0x209c,
+ 0x20a0, 0x20b9,
+ 0x20d0, 0x20f0,
+ 0x2100, 0x2189,
+ 0x2190, 0x23f3,
+ 0x2400, 0x2426,
+ 0x2440, 0x244a,
+ 0x2460, 0x26ff,
+ 0x2701, 0x27ca,
+ 0x27cc, 0x27cc,
+ 0x27ce, 0x2b4c,
+ 0x2b50, 0x2b59,
+ 0x2c00, 0x2c2e,
+ 0x2c30, 0x2c5e,
+ 0x2c60, 0x2cf1,
+ 0x2cf9, 0x2d25,
+ 0x2d30, 0x2d65,
+ 0x2d6f, 0x2d70,
+ 0x2d7f, 0x2d96,
+ 0x2da0, 0x2da6,
+ 0x2da8, 0x2dae,
+ 0x2db0, 0x2db6,
+ 0x2db8, 0x2dbe,
+ 0x2dc0, 0x2dc6,
+ 0x2dc8, 0x2dce,
+ 0x2dd0, 0x2dd6,
+ 0x2dd8, 0x2dde,
+ 0x2de0, 0x2e31,
+ 0x2e80, 0x2e99,
+ 0x2e9b, 0x2ef3,
+ 0x2f00, 0x2fd5,
+ 0x2ff0, 0x2ffb,
+ 0x3000, 0x303f,
+ 0x3041, 0x3096,
+ 0x3099, 0x30ff,
+ 0x3105, 0x312d,
+ 0x3131, 0x318e,
+ 0x3190, 0x31ba,
+ 0x31c0, 0x31e3,
+ 0x31f0, 0x321e,
+ 0x3220, 0x32fe,
+ 0x3300, 0x4db5,
+ 0x4dc0, 0x9fcb,
+ 0xa000, 0xa48c,
+ 0xa490, 0xa4c6,
+ 0xa4d0, 0xa62b,
+ 0xa640, 0xa673,
+ 0xa67c, 0xa697,
+ 0xa6a0, 0xa6f7,
+ 0xa700, 0xa78e,
+ 0xa790, 0xa791,
+ 0xa7a0, 0xa7a9,
+ 0xa7fa, 0xa82b,
+ 0xa830, 0xa839,
+ 0xa840, 0xa877,
+ 0xa880, 0xa8c4,
+ 0xa8ce, 0xa8d9,
+ 0xa8e0, 0xa8fb,
+ 0xa900, 0xa953,
+ 0xa95f, 0xa97c,
+ 0xa980, 0xa9cd,
+ 0xa9cf, 0xa9d9,
+ 0xa9de, 0xa9df,
+ 0xaa00, 0xaa36,
+ 0xaa40, 0xaa4d,
+ 0xaa50, 0xaa59,
+ 0xaa5c, 0xaa7b,
+ 0xaa80, 0xaac2,
+ 0xaadb, 0xaadf,
+ 0xab01, 0xab06,
+ 0xab09, 0xab0e,
+ 0xab11, 0xab16,
+ 0xab20, 0xab26,
+ 0xab28, 0xab2e,
+ 0xabc0, 0xabed,
+ 0xabf0, 0xabf9,
+ 0xac00, 0xd7a3,
+ 0xd7b0, 0xd7c6,
+ 0xd7cb, 0xd7fb,
+ 0xe000, 0xfa2d,
+ 0xfa30, 0xfa6d,
+ 0xfa70, 0xfad9,
+ 0xfb00, 0xfb06,
+ 0xfb13, 0xfb17,
+ 0xfb1d, 0xfb36,
+ 0xfb38, 0xfb3c,
+ 0xfb3e, 0xfb3e,
+ 0xfb40, 0xfb41,
+ 0xfb43, 0xfb44,
+ 0xfb46, 0xfbc1,
+ 0xfbd3, 0xfd3f,
+ 0xfd50, 0xfd8f,
+ 0xfd92, 0xfdc7,
+ 0xfdf0, 0xfdfd,
+ 0xfe00, 0xfe19,
+ 0xfe20, 0xfe26,
+ 0xfe30, 0xfe52,
+ 0xfe54, 0xfe66,
+ 0xfe68, 0xfe6b,
+ 0xfe70, 0xfe74,
+ 0xfe76, 0xfefc,
+ 0xfeff, 0xfeff,
+ 0xff01, 0xffbe,
+ 0xffc2, 0xffc7,
+ 0xffca, 0xffcf,
+ 0xffd2, 0xffd7,
+ 0xffda, 0xffdc,
+ 0xffe0, 0xffe6,
+ 0xffe8, 0xffee,
+ 0xfff9, 0xfffd,
+ 0x10000, 0x1000b,
+ 0x1000d, 0x10026,
+ 0x10028, 0x1003a,
+ 0x1003c, 0x1003d,
+ 0x1003f, 0x1004d,
+ 0x10050, 0x1005d,
+ 0x10080, 0x100fa,
+ 0x10100, 0x10102,
+ 0x10107, 0x10133,
+ 0x10137, 0x1018a,
+ 0x10190, 0x1019b,
+ 0x101d0, 0x101fd,
+ 0x10280, 0x1029c,
+ 0x102a0, 0x102d0,
+ 0x10300, 0x1031e,
+ 0x10320, 0x10323,
+ 0x10330, 0x1034a,
+ 0x10380, 0x1039d,
+ 0x1039f, 0x103c3,
+ 0x103c8, 0x103d5,
+ 0x10400, 0x1049d,
+ 0x104a0, 0x104a9,
+ 0x10800, 0x10805,
+ 0x10808, 0x10808,
+ 0x1080a, 0x10835,
+ 0x10837, 0x10838,
+ 0x1083c, 0x1083c,
+ 0x1083f, 0x10855,
+ 0x10857, 0x1085f,
+ 0x10900, 0x1091b,
+ 0x1091f, 0x10939,
+ 0x1093f, 0x1093f,
+ 0x10a00, 0x10a03,
+ 0x10a05, 0x10a06,
+ 0x10a0c, 0x10a13,
+ 0x10a15, 0x10a17,
+ 0x10a19, 0x10a33,
+ 0x10a38, 0x10a3a,
+ 0x10a3f, 0x10a47,
+ 0x10a50, 0x10a58,
+ 0x10a60, 0x10a7f,
+ 0x10b00, 0x10b35,
+ 0x10b39, 0x10b55,
+ 0x10b58, 0x10b72,
+ 0x10b78, 0x10b7f,
+ 0x10c00, 0x10c48,
+ 0x10e60, 0x10e7e,
+ 0x11000, 0x1104d,
+ 0x11052, 0x1106f,
+ 0x11080, 0x110c1,
+ 0x12000, 0x1236e,
+ 0x12400, 0x12462,
+ 0x12470, 0x12473,
+ 0x13000, 0x1342e,
+ 0x16800, 0x16a38,
+ 0x1b000, 0x1b001,
+ 0x1d000, 0x1d0f5,
+ 0x1d100, 0x1d126,
+ 0x1d129, 0x1d1dd,
+ 0x1d200, 0x1d245,
+ 0x1d300, 0x1d356,
+ 0x1d360, 0x1d371,
+ 0x1d400, 0x1d454,
+ 0x1d456, 0x1d49c,
+ 0x1d49e, 0x1d49f,
+ 0x1d4a2, 0x1d4a2,
+ 0x1d4a5, 0x1d4a6,
+ 0x1d4a9, 0x1d4ac,
+ 0x1d4ae, 0x1d4b9,
+ 0x1d4bb, 0x1d4bb,
+ 0x1d4bd, 0x1d4c3,
+ 0x1d4c5, 0x1d505,
+ 0x1d507, 0x1d50a,
+ 0x1d50d, 0x1d514,
+ 0x1d516, 0x1d51c,
+ 0x1d51e, 0x1d539,
+ 0x1d53b, 0x1d53e,
+ 0x1d540, 0x1d544,
+ 0x1d546, 0x1d546,
+ 0x1d54a, 0x1d550,
+ 0x1d552, 0x1d6a5,
+ 0x1d6a8, 0x1d7cb,
+ 0x1d7ce, 0x1d7ff,
+ 0x1f000, 0x1f02b,
+ 0x1f030, 0x1f093,
+ 0x1f0a0, 0x1f0ae,
+ 0x1f0b1, 0x1f0be,
+ 0x1f0c1, 0x1f0cf,
+ 0x1f0d1, 0x1f0df,
+ 0x1f100, 0x1f10a,
+ 0x1f110, 0x1f12e,
+ 0x1f130, 0x1f169,
+ 0x1f170, 0x1f19a,
+ 0x1f1e6, 0x1f202,
+ 0x1f210, 0x1f23a,
+ 0x1f240, 0x1f248,
+ 0x1f250, 0x1f251,
+ 0x1f300, 0x1f320,
+ 0x1f330, 0x1f335,
+ 0x1f337, 0x1f37c,
+ 0x1f380, 0x1f393,
+ 0x1f3a0, 0x1f3c4,
+ 0x1f3c6, 0x1f3ca,
+ 0x1f3e0, 0x1f3f0,
+ 0x1f400, 0x1f43e,
+ 0x1f440, 0x1f440,
+ 0x1f442, 0x1f4f7,
+ 0x1f4f9, 0x1f4fc,
+ 0x1f500, 0x1f53d,
+ 0x1f550, 0x1f567,
+ 0x1f5fb, 0x1f5ff,
+ 0x1f601, 0x1f610,
+ 0x1f612, 0x1f614,
+ 0x1f616, 0x1f616,
+ 0x1f618, 0x1f618,
+ 0x1f61a, 0x1f61a,
+ 0x1f61c, 0x1f61e,
+ 0x1f620, 0x1f625,
+ 0x1f628, 0x1f62b,
+ 0x1f62d, 0x1f62d,
+ 0x1f630, 0x1f633,
+ 0x1f635, 0x1f640,
+ 0x1f645, 0x1f64f,
+ 0x1f680, 0x1f6c5,
+ 0x1f700, 0x1f773,
+ 0x20000, 0x2a6d6,
+ 0x2a700, 0x2b734,
+ 0x2b740, 0x2b81d,
+ 0x2f800, 0x2fa1d,
+ 0xe0001, 0xe0001,
+ 0xe0020, 0xe007f,
+ 0xe0100, 0xe01ef,
+ 0xf0000, 0xffffd,
+ 0x100000, 0x10fffd,
+}; /* CR_Print */
+
+/* 'Punct': [[:Punct:]] */
+#define CR_Punct CR_P
+
+/* 'Space': [[:Space:]] */
+#define CR_Space CR_White_Space
+
+/* 'Upper': [[:Upper:]] */
+#define CR_Upper CR_Uppercase
+
+/* 'XDigit': [[:XDigit:]] */
+#define CR_XDigit CR_ASCII_Hex_Digit
+
+/* 'Word': [[:Word:]] */
+static const OnigCodePoint CR_Word[] = {
+ 514,
+ 0x0030, 0x0039,
+ 0x0041, 0x005a,
+ 0x005f, 0x005f,
+ 0x0061, 0x007a,
+ 0x00aa, 0x00aa,
+ 0x00b5, 0x00b5,
+ 0x00ba, 0x00ba,
+ 0x00c0, 0x00d6,
+ 0x00d8, 0x00f6,
+ 0x00f8, 0x02c1,
+ 0x02c6, 0x02d1,
+ 0x02e0, 0x02e4,
+ 0x02ec, 0x02ec,
+ 0x02ee, 0x02ee,
+ 0x0300, 0x0374,
+ 0x0376, 0x0377,
+ 0x037a, 0x037d,
+ 0x0386, 0x0386,
+ 0x0388, 0x038a,
+ 0x038c, 0x038c,
+ 0x038e, 0x03a1,
+ 0x03a3, 0x03f5,
+ 0x03f7, 0x0481,
+ 0x0483, 0x0527,
+ 0x0531, 0x0556,
+ 0x0559, 0x0559,
+ 0x0561, 0x0587,
+ 0x0591, 0x05bd,
+ 0x05bf, 0x05bf,
+ 0x05c1, 0x05c2,
+ 0x05c4, 0x05c5,
+ 0x05c7, 0x05c7,
+ 0x05d0, 0x05ea,
+ 0x05f0, 0x05f2,
+ 0x0610, 0x061a,
+ 0x0620, 0x0669,
+ 0x066e, 0x06d3,
+ 0x06d5, 0x06dc,
+ 0x06df, 0x06e8,
+ 0x06ea, 0x06fc,
+ 0x06ff, 0x06ff,
+ 0x0710, 0x074a,
+ 0x074d, 0x07b1,
+ 0x07c0, 0x07f5,
+ 0x07fa, 0x07fa,
+ 0x0800, 0x082d,
+ 0x0840, 0x085b,
+ 0x0900, 0x0963,
+ 0x0966, 0x096f,
+ 0x0971, 0x0977,
+ 0x0979, 0x097f,
+ 0x0981, 0x0983,
+ 0x0985, 0x098c,
+ 0x098f, 0x0990,
+ 0x0993, 0x09a8,
+ 0x09aa, 0x09b0,
+ 0x09b2, 0x09b2,
+ 0x09b6, 0x09b9,
+ 0x09bc, 0x09c4,
+ 0x09c7, 0x09c8,
+ 0x09cb, 0x09ce,
+ 0x09d7, 0x09d7,
+ 0x09dc, 0x09dd,
+ 0x09df, 0x09e3,
+ 0x09e6, 0x09f1,
+ 0x0a01, 0x0a03,
+ 0x0a05, 0x0a0a,
+ 0x0a0f, 0x0a10,
+ 0x0a13, 0x0a28,
+ 0x0a2a, 0x0a30,
+ 0x0a32, 0x0a33,
+ 0x0a35, 0x0a36,
+ 0x0a38, 0x0a39,
+ 0x0a3c, 0x0a3c,
+ 0x0a3e, 0x0a42,
+ 0x0a47, 0x0a48,
+ 0x0a4b, 0x0a4d,
+ 0x0a51, 0x0a51,
+ 0x0a59, 0x0a5c,
+ 0x0a5e, 0x0a5e,
+ 0x0a66, 0x0a75,
+ 0x0a81, 0x0a83,
+ 0x0a85, 0x0a8d,
+ 0x0a8f, 0x0a91,
+ 0x0a93, 0x0aa8,
+ 0x0aaa, 0x0ab0,
+ 0x0ab2, 0x0ab3,
+ 0x0ab5, 0x0ab9,
+ 0x0abc, 0x0ac5,
+ 0x0ac7, 0x0ac9,
+ 0x0acb, 0x0acd,
+ 0x0ad0, 0x0ad0,
+ 0x0ae0, 0x0ae3,
+ 0x0ae6, 0x0aef,
+ 0x0b01, 0x0b03,
+ 0x0b05, 0x0b0c,
+ 0x0b0f, 0x0b10,
+ 0x0b13, 0x0b28,
+ 0x0b2a, 0x0b30,
+ 0x0b32, 0x0b33,
+ 0x0b35, 0x0b39,
+ 0x0b3c, 0x0b44,
+ 0x0b47, 0x0b48,
+ 0x0b4b, 0x0b4d,
+ 0x0b56, 0x0b57,
+ 0x0b5c, 0x0b5d,
+ 0x0b5f, 0x0b63,
+ 0x0b66, 0x0b6f,
+ 0x0b71, 0x0b71,
+ 0x0b82, 0x0b83,
+ 0x0b85, 0x0b8a,
+ 0x0b8e, 0x0b90,
+ 0x0b92, 0x0b95,
+ 0x0b99, 0x0b9a,
+ 0x0b9c, 0x0b9c,
+ 0x0b9e, 0x0b9f,
+ 0x0ba3, 0x0ba4,
+ 0x0ba8, 0x0baa,
+ 0x0bae, 0x0bb9,
+ 0x0bbe, 0x0bc2,
+ 0x0bc6, 0x0bc8,
+ 0x0bca, 0x0bcd,
+ 0x0bd0, 0x0bd0,
+ 0x0bd7, 0x0bd7,
+ 0x0be6, 0x0bef,
+ 0x0c01, 0x0c03,
+ 0x0c05, 0x0c0c,
+ 0x0c0e, 0x0c10,
+ 0x0c12, 0x0c28,
+ 0x0c2a, 0x0c33,
+ 0x0c35, 0x0c39,
+ 0x0c3d, 0x0c44,
+ 0x0c46, 0x0c48,
+ 0x0c4a, 0x0c4d,
+ 0x0c55, 0x0c56,
+ 0x0c58, 0x0c59,
+ 0x0c60, 0x0c63,
+ 0x0c66, 0x0c6f,
+ 0x0c82, 0x0c83,
+ 0x0c85, 0x0c8c,
+ 0x0c8e, 0x0c90,
+ 0x0c92, 0x0ca8,
+ 0x0caa, 0x0cb3,
+ 0x0cb5, 0x0cb9,
+ 0x0cbc, 0x0cc4,
+ 0x0cc6, 0x0cc8,
+ 0x0cca, 0x0ccd,
+ 0x0cd5, 0x0cd6,
+ 0x0cde, 0x0cde,
+ 0x0ce0, 0x0ce3,
+ 0x0ce6, 0x0cef,
+ 0x0cf1, 0x0cf2,
+ 0x0d02, 0x0d03,
+ 0x0d05, 0x0d0c,
+ 0x0d0e, 0x0d10,
+ 0x0d12, 0x0d3a,
+ 0x0d3d, 0x0d44,
+ 0x0d46, 0x0d48,
+ 0x0d4a, 0x0d4e,
+ 0x0d57, 0x0d57,
+ 0x0d60, 0x0d63,
+ 0x0d66, 0x0d6f,
+ 0x0d7a, 0x0d7f,
+ 0x0d82, 0x0d83,
+ 0x0d85, 0x0d96,
+ 0x0d9a, 0x0db1,
+ 0x0db3, 0x0dbb,
+ 0x0dbd, 0x0dbd,
+ 0x0dc0, 0x0dc6,
+ 0x0dca, 0x0dca,
+ 0x0dcf, 0x0dd4,
+ 0x0dd6, 0x0dd6,
+ 0x0dd8, 0x0ddf,
+ 0x0df2, 0x0df3,
+ 0x0e01, 0x0e3a,
+ 0x0e40, 0x0e4e,
+ 0x0e50, 0x0e59,
+ 0x0e81, 0x0e82,
+ 0x0e84, 0x0e84,
+ 0x0e87, 0x0e88,
+ 0x0e8a, 0x0e8a,
+ 0x0e8d, 0x0e8d,
+ 0x0e94, 0x0e97,
+ 0x0e99, 0x0e9f,
+ 0x0ea1, 0x0ea3,
+ 0x0ea5, 0x0ea5,
+ 0x0ea7, 0x0ea7,
+ 0x0eaa, 0x0eab,
+ 0x0ead, 0x0eb9,
+ 0x0ebb, 0x0ebd,
+ 0x0ec0, 0x0ec4,
+ 0x0ec6, 0x0ec6,
+ 0x0ec8, 0x0ecd,
+ 0x0ed0, 0x0ed9,
+ 0x0edc, 0x0edd,
+ 0x0f00, 0x0f00,
+ 0x0f18, 0x0f19,
+ 0x0f20, 0x0f29,
+ 0x0f35, 0x0f35,
+ 0x0f37, 0x0f37,
+ 0x0f39, 0x0f39,
+ 0x0f3e, 0x0f47,
+ 0x0f49, 0x0f6c,
+ 0x0f71, 0x0f84,
+ 0x0f86, 0x0f97,
+ 0x0f99, 0x0fbc,
+ 0x0fc6, 0x0fc6,
+ 0x1000, 0x1049,
+ 0x1050, 0x109d,
+ 0x10a0, 0x10c5,
+ 0x10d0, 0x10fa,
+ 0x10fc, 0x10fc,
+ 0x1100, 0x1248,
+ 0x124a, 0x124d,
+ 0x1250, 0x1256,
+ 0x1258, 0x1258,
+ 0x125a, 0x125d,
+ 0x1260, 0x1288,
+ 0x128a, 0x128d,
+ 0x1290, 0x12b0,
+ 0x12b2, 0x12b5,
+ 0x12b8, 0x12be,
+ 0x12c0, 0x12c0,
+ 0x12c2, 0x12c5,
+ 0x12c8, 0x12d6,
+ 0x12d8, 0x1310,
+ 0x1312, 0x1315,
+ 0x1318, 0x135a,
+ 0x135d, 0x135f,
+ 0x1380, 0x138f,
+ 0x13a0, 0x13f4,
+ 0x1401, 0x166c,
+ 0x166f, 0x167f,
+ 0x1681, 0x169a,
+ 0x16a0, 0x16ea,
+ 0x16ee, 0x16f0,
+ 0x1700, 0x170c,
+ 0x170e, 0x1714,
+ 0x1720, 0x1734,
+ 0x1740, 0x1753,
+ 0x1760, 0x176c,
+ 0x176e, 0x1770,
+ 0x1772, 0x1773,
+ 0x1780, 0x17b3,
+ 0x17b6, 0x17d3,
+ 0x17d7, 0x17d7,
+ 0x17dc, 0x17dd,
+ 0x17e0, 0x17e9,
+ 0x180b, 0x180d,
+ 0x1810, 0x1819,
+ 0x1820, 0x1877,
+ 0x1880, 0x18aa,
+ 0x18b0, 0x18f5,
+ 0x1900, 0x191c,
+ 0x1920, 0x192b,
+ 0x1930, 0x193b,
+ 0x1946, 0x196d,
+ 0x1970, 0x1974,
+ 0x1980, 0x19ab,
+ 0x19b0, 0x19c9,
+ 0x19d0, 0x19d9,
+ 0x1a00, 0x1a1b,
+ 0x1a20, 0x1a5e,
+ 0x1a60, 0x1a7c,
+ 0x1a7f, 0x1a89,
+ 0x1a90, 0x1a99,
+ 0x1aa7, 0x1aa7,
+ 0x1b00, 0x1b4b,
+ 0x1b50, 0x1b59,
+ 0x1b6b, 0x1b73,
+ 0x1b80, 0x1baa,
+ 0x1bae, 0x1bb9,
+ 0x1bc0, 0x1bf3,
+ 0x1c00, 0x1c37,
+ 0x1c40, 0x1c49,
+ 0x1c4d, 0x1c7d,
+ 0x1cd0, 0x1cd2,
+ 0x1cd4, 0x1cf2,
+ 0x1d00, 0x1de6,
+ 0x1dfc, 0x1f15,
+ 0x1f18, 0x1f1d,
+ 0x1f20, 0x1f45,
+ 0x1f48, 0x1f4d,
+ 0x1f50, 0x1f57,
+ 0x1f59, 0x1f59,
+ 0x1f5b, 0x1f5b,
+ 0x1f5d, 0x1f5d,
+ 0x1f5f, 0x1f7d,
+ 0x1f80, 0x1fb4,
+ 0x1fb6, 0x1fbc,
+ 0x1fbe, 0x1fbe,
+ 0x1fc2, 0x1fc4,
+ 0x1fc6, 0x1fcc,
+ 0x1fd0, 0x1fd3,
+ 0x1fd6, 0x1fdb,
+ 0x1fe0, 0x1fec,
+ 0x1ff2, 0x1ff4,
+ 0x1ff6, 0x1ffc,
+ 0x203f, 0x2040,
+ 0x2054, 0x2054,
+ 0x2071, 0x2071,
+ 0x207f, 0x207f,
+ 0x2090, 0x209c,
+ 0x20d0, 0x20f0,
+ 0x2102, 0x2102,
+ 0x2107, 0x2107,
+ 0x210a, 0x2113,
+ 0x2115, 0x2115,
+ 0x2119, 0x211d,
+ 0x2124, 0x2124,
+ 0x2126, 0x2126,
+ 0x2128, 0x2128,
+ 0x212a, 0x212d,
+ 0x212f, 0x2139,
+ 0x213c, 0x213f,
+ 0x2145, 0x2149,
+ 0x214e, 0x214e,
+ 0x2160, 0x2188,
+ 0x24b6, 0x24e9,
+ 0x2c00, 0x2c2e,
+ 0x2c30, 0x2c5e,
+ 0x2c60, 0x2ce4,
+ 0x2ceb, 0x2cf1,
+ 0x2d00, 0x2d25,
+ 0x2d30, 0x2d65,
+ 0x2d6f, 0x2d6f,
+ 0x2d7f, 0x2d96,
+ 0x2da0, 0x2da6,
+ 0x2da8, 0x2dae,
+ 0x2db0, 0x2db6,
+ 0x2db8, 0x2dbe,
+ 0x2dc0, 0x2dc6,
+ 0x2dc8, 0x2dce,
+ 0x2dd0, 0x2dd6,
+ 0x2dd8, 0x2dde,
+ 0x2de0, 0x2dff,
+ 0x2e2f, 0x2e2f,
+ 0x3005, 0x3007,
+ 0x3021, 0x302f,
+ 0x3031, 0x3035,
+ 0x3038, 0x303c,
+ 0x3041, 0x3096,
+ 0x3099, 0x309a,
+ 0x309d, 0x309f,
+ 0x30a1, 0x30fa,
+ 0x30fc, 0x30ff,
+ 0x3105, 0x312d,
+ 0x3131, 0x318e,
+ 0x31a0, 0x31ba,
+ 0x31f0, 0x31ff,
+ 0x3400, 0x4db5,
+ 0x4e00, 0x9fcb,
+ 0xa000, 0xa48c,
+ 0xa4d0, 0xa4fd,
+ 0xa500, 0xa60c,
+ 0xa610, 0xa62b,
+ 0xa640, 0xa672,
+ 0xa67c, 0xa67d,
+ 0xa67f, 0xa697,
+ 0xa6a0, 0xa6f1,
+ 0xa717, 0xa71f,
+ 0xa722, 0xa788,
+ 0xa78b, 0xa78e,
+ 0xa790, 0xa791,
+ 0xa7a0, 0xa7a9,
+ 0xa7fa, 0xa827,
+ 0xa840, 0xa873,
+ 0xa880, 0xa8c4,
+ 0xa8d0, 0xa8d9,
+ 0xa8e0, 0xa8f7,
+ 0xa8fb, 0xa8fb,
+ 0xa900, 0xa92d,
+ 0xa930, 0xa953,
+ 0xa960, 0xa97c,
+ 0xa980, 0xa9c0,
+ 0xa9cf, 0xa9d9,
+ 0xaa00, 0xaa36,
+ 0xaa40, 0xaa4d,
+ 0xaa50, 0xaa59,
+ 0xaa60, 0xaa76,
+ 0xaa7a, 0xaa7b,
+ 0xaa80, 0xaac2,
+ 0xaadb, 0xaadd,
+ 0xab01, 0xab06,
+ 0xab09, 0xab0e,
+ 0xab11, 0xab16,
+ 0xab20, 0xab26,
+ 0xab28, 0xab2e,
+ 0xabc0, 0xabea,
+ 0xabec, 0xabed,
+ 0xabf0, 0xabf9,
+ 0xac00, 0xd7a3,
+ 0xd7b0, 0xd7c6,
+ 0xd7cb, 0xd7fb,
+ 0xf900, 0xfa2d,
+ 0xfa30, 0xfa6d,
+ 0xfa70, 0xfad9,
+ 0xfb00, 0xfb06,
+ 0xfb13, 0xfb17,
+ 0xfb1d, 0xfb28,
+ 0xfb2a, 0xfb36,
+ 0xfb38, 0xfb3c,
+ 0xfb3e, 0xfb3e,
+ 0xfb40, 0xfb41,
+ 0xfb43, 0xfb44,
+ 0xfb46, 0xfbb1,
+ 0xfbd3, 0xfd3d,
+ 0xfd50, 0xfd8f,
+ 0xfd92, 0xfdc7,
+ 0xfdf0, 0xfdfb,
+ 0xfe00, 0xfe0f,
+ 0xfe20, 0xfe26,
+ 0xfe33, 0xfe34,
+ 0xfe4d, 0xfe4f,
+ 0xfe70, 0xfe74,
+ 0xfe76, 0xfefc,
+ 0xff10, 0xff19,
+ 0xff21, 0xff3a,
+ 0xff3f, 0xff3f,
+ 0xff41, 0xff5a,
+ 0xff66, 0xffbe,
+ 0xffc2, 0xffc7,
+ 0xffca, 0xffcf,
+ 0xffd2, 0xffd7,
+ 0xffda, 0xffdc,
+ 0x10000, 0x1000b,
+ 0x1000d, 0x10026,
+ 0x10028, 0x1003a,
+ 0x1003c, 0x1003d,
+ 0x1003f, 0x1004d,
+ 0x10050, 0x1005d,
+ 0x10080, 0x100fa,
+ 0x10140, 0x10174,
+ 0x101fd, 0x101fd,
+ 0x10280, 0x1029c,
+ 0x102a0, 0x102d0,
+ 0x10300, 0x1031e,
+ 0x10330, 0x1034a,
+ 0x10380, 0x1039d,
+ 0x103a0, 0x103c3,
+ 0x103c8, 0x103cf,
+ 0x103d1, 0x103d5,
+ 0x10400, 0x1049d,
+ 0x104a0, 0x104a9,
+ 0x10800, 0x10805,
+ 0x10808, 0x10808,
+ 0x1080a, 0x10835,
+ 0x10837, 0x10838,
+ 0x1083c, 0x1083c,
+ 0x1083f, 0x10855,
+ 0x10900, 0x10915,
+ 0x10920, 0x10939,
+ 0x10a00, 0x10a03,
+ 0x10a05, 0x10a06,
+ 0x10a0c, 0x10a13,
+ 0x10a15, 0x10a17,
+ 0x10a19, 0x10a33,
+ 0x10a38, 0x10a3a,
+ 0x10a3f, 0x10a3f,
+ 0x10a60, 0x10a7c,
+ 0x10b00, 0x10b35,
+ 0x10b40, 0x10b55,
+ 0x10b60, 0x10b72,
+ 0x10c00, 0x10c48,
+ 0x11000, 0x11046,
+ 0x11066, 0x1106f,
+ 0x11080, 0x110ba,
+ 0x12000, 0x1236e,
+ 0x12400, 0x12462,
+ 0x13000, 0x1342e,
+ 0x16800, 0x16a38,
+ 0x1b000, 0x1b001,
+ 0x1d165, 0x1d169,
+ 0x1d16d, 0x1d172,
+ 0x1d17b, 0x1d182,
+ 0x1d185, 0x1d18b,
+ 0x1d1aa, 0x1d1ad,
+ 0x1d242, 0x1d244,
+ 0x1d400, 0x1d454,
+ 0x1d456, 0x1d49c,
+ 0x1d49e, 0x1d49f,
+ 0x1d4a2, 0x1d4a2,
+ 0x1d4a5, 0x1d4a6,
+ 0x1d4a9, 0x1d4ac,
+ 0x1d4ae, 0x1d4b9,
+ 0x1d4bb, 0x1d4bb,
+ 0x1d4bd, 0x1d4c3,
+ 0x1d4c5, 0x1d505,
+ 0x1d507, 0x1d50a,
+ 0x1d50d, 0x1d514,
+ 0x1d516, 0x1d51c,
+ 0x1d51e, 0x1d539,
+ 0x1d53b, 0x1d53e,
+ 0x1d540, 0x1d544,
+ 0x1d546, 0x1d546,
+ 0x1d54a, 0x1d550,
+ 0x1d552, 0x1d6a5,
+ 0x1d6a8, 0x1d6c0,
+ 0x1d6c2, 0x1d6da,
+ 0x1d6dc, 0x1d6fa,
+ 0x1d6fc, 0x1d714,
+ 0x1d716, 0x1d734,
+ 0x1d736, 0x1d74e,
+ 0x1d750, 0x1d76e,
+ 0x1d770, 0x1d788,
+ 0x1d78a, 0x1d7a8,
+ 0x1d7aa, 0x1d7c2,
+ 0x1d7c4, 0x1d7cb,
+ 0x1d7ce, 0x1d7ff,
+ 0x20000, 0x2a6d6,
+ 0x2a700, 0x2b734,
+ 0x2b740, 0x2b81d,
+ 0x2f800, 0x2fa1d,
+ 0xe0100, 0xe01ef,
+}; /* CR_Word */
+
+/* 'Alnum': [[:Alnum:]] */
+static const OnigCodePoint CR_Alnum[] = {
+ 509,
+ 0x0030, 0x0039,
+ 0x0041, 0x005a,
+ 0x0061, 0x007a,
+ 0x00aa, 0x00aa,
+ 0x00b5, 0x00b5,
+ 0x00ba, 0x00ba,
+ 0x00c0, 0x00d6,
+ 0x00d8, 0x00f6,
+ 0x00f8, 0x02c1,
+ 0x02c6, 0x02d1,
+ 0x02e0, 0x02e4,
+ 0x02ec, 0x02ec,
+ 0x02ee, 0x02ee,
+ 0x0345, 0x0345,
+ 0x0370, 0x0374,
+ 0x0376, 0x0377,
+ 0x037a, 0x037d,
+ 0x0386, 0x0386,
+ 0x0388, 0x038a,
+ 0x038c, 0x038c,
+ 0x038e, 0x03a1,
+ 0x03a3, 0x03f5,
+ 0x03f7, 0x0481,
+ 0x048a, 0x0527,
+ 0x0531, 0x0556,
+ 0x0559, 0x0559,
+ 0x0561, 0x0587,
+ 0x05b0, 0x05bd,
+ 0x05bf, 0x05bf,
+ 0x05c1, 0x05c2,
+ 0x05c4, 0x05c5,
+ 0x05c7, 0x05c7,
+ 0x05d0, 0x05ea,
+ 0x05f0, 0x05f2,
+ 0x0610, 0x061a,
+ 0x0620, 0x0657,
+ 0x0659, 0x0669,
+ 0x066e, 0x06d3,
+ 0x06d5, 0x06dc,
+ 0x06e1, 0x06e8,
+ 0x06ed, 0x06fc,
+ 0x06ff, 0x06ff,
+ 0x0710, 0x073f,
+ 0x074d, 0x07b1,
+ 0x07c0, 0x07ea,
+ 0x07f4, 0x07f5,
+ 0x07fa, 0x07fa,
+ 0x0800, 0x0817,
+ 0x081a, 0x082c,
+ 0x0840, 0x0858,
+ 0x0900, 0x093b,
+ 0x093d, 0x094c,
+ 0x094e, 0x0950,
+ 0x0955, 0x0963,
+ 0x0966, 0x096f,
+ 0x0971, 0x0977,
+ 0x0979, 0x097f,
+ 0x0981, 0x0983,
+ 0x0985, 0x098c,
+ 0x098f, 0x0990,
+ 0x0993, 0x09a8,
+ 0x09aa, 0x09b0,
+ 0x09b2, 0x09b2,
+ 0x09b6, 0x09b9,
+ 0x09bd, 0x09c4,
+ 0x09c7, 0x09c8,
+ 0x09cb, 0x09cc,
+ 0x09ce, 0x09ce,
+ 0x09d7, 0x09d7,
+ 0x09dc, 0x09dd,
+ 0x09df, 0x09e3,
+ 0x09e6, 0x09f1,
+ 0x0a01, 0x0a03,
+ 0x0a05, 0x0a0a,
+ 0x0a0f, 0x0a10,
+ 0x0a13, 0x0a28,
+ 0x0a2a, 0x0a30,
+ 0x0a32, 0x0a33,
+ 0x0a35, 0x0a36,
+ 0x0a38, 0x0a39,
+ 0x0a3e, 0x0a42,
+ 0x0a47, 0x0a48,
+ 0x0a4b, 0x0a4c,
+ 0x0a51, 0x0a51,
+ 0x0a59, 0x0a5c,
+ 0x0a5e, 0x0a5e,
+ 0x0a66, 0x0a75,
+ 0x0a81, 0x0a83,
+ 0x0a85, 0x0a8d,
+ 0x0a8f, 0x0a91,
+ 0x0a93, 0x0aa8,
+ 0x0aaa, 0x0ab0,
+ 0x0ab2, 0x0ab3,
+ 0x0ab5, 0x0ab9,
+ 0x0abd, 0x0ac5,
+ 0x0ac7, 0x0ac9,
+ 0x0acb, 0x0acc,
+ 0x0ad0, 0x0ad0,
+ 0x0ae0, 0x0ae3,
+ 0x0ae6, 0x0aef,
+ 0x0b01, 0x0b03,
+ 0x0b05, 0x0b0c,
+ 0x0b0f, 0x0b10,
+ 0x0b13, 0x0b28,
+ 0x0b2a, 0x0b30,
+ 0x0b32, 0x0b33,
+ 0x0b35, 0x0b39,
+ 0x0b3d, 0x0b44,
+ 0x0b47, 0x0b48,
+ 0x0b4b, 0x0b4c,
+ 0x0b56, 0x0b57,
+ 0x0b5c, 0x0b5d,
+ 0x0b5f, 0x0b63,
+ 0x0b66, 0x0b6f,
+ 0x0b71, 0x0b71,
+ 0x0b82, 0x0b83,
+ 0x0b85, 0x0b8a,
+ 0x0b8e, 0x0b90,
+ 0x0b92, 0x0b95,
+ 0x0b99, 0x0b9a,
+ 0x0b9c, 0x0b9c,
+ 0x0b9e, 0x0b9f,
+ 0x0ba3, 0x0ba4,
+ 0x0ba8, 0x0baa,
+ 0x0bae, 0x0bb9,
+ 0x0bbe, 0x0bc2,
+ 0x0bc6, 0x0bc8,
+ 0x0bca, 0x0bcc,
+ 0x0bd0, 0x0bd0,
+ 0x0bd7, 0x0bd7,
+ 0x0be6, 0x0bef,
+ 0x0c01, 0x0c03,
+ 0x0c05, 0x0c0c,
+ 0x0c0e, 0x0c10,
+ 0x0c12, 0x0c28,
+ 0x0c2a, 0x0c33,
+ 0x0c35, 0x0c39,
+ 0x0c3d, 0x0c44,
+ 0x0c46, 0x0c48,
+ 0x0c4a, 0x0c4c,
+ 0x0c55, 0x0c56,
+ 0x0c58, 0x0c59,
+ 0x0c60, 0x0c63,
+ 0x0c66, 0x0c6f,
+ 0x0c82, 0x0c83,
+ 0x0c85, 0x0c8c,
+ 0x0c8e, 0x0c90,
+ 0x0c92, 0x0ca8,
+ 0x0caa, 0x0cb3,
+ 0x0cb5, 0x0cb9,
+ 0x0cbd, 0x0cc4,
+ 0x0cc6, 0x0cc8,
+ 0x0cca, 0x0ccc,
+ 0x0cd5, 0x0cd6,
+ 0x0cde, 0x0cde,
+ 0x0ce0, 0x0ce3,
+ 0x0ce6, 0x0cef,
+ 0x0cf1, 0x0cf2,
+ 0x0d02, 0x0d03,
+ 0x0d05, 0x0d0c,
+ 0x0d0e, 0x0d10,
+ 0x0d12, 0x0d3a,
+ 0x0d3d, 0x0d44,
+ 0x0d46, 0x0d48,
+ 0x0d4a, 0x0d4c,
+ 0x0d4e, 0x0d4e,
+ 0x0d57, 0x0d57,
+ 0x0d60, 0x0d63,
+ 0x0d66, 0x0d6f,
+ 0x0d7a, 0x0d7f,
+ 0x0d82, 0x0d83,
+ 0x0d85, 0x0d96,
+ 0x0d9a, 0x0db1,
+ 0x0db3, 0x0dbb,
+ 0x0dbd, 0x0dbd,
+ 0x0dc0, 0x0dc6,
+ 0x0dcf, 0x0dd4,
+ 0x0dd6, 0x0dd6,
+ 0x0dd8, 0x0ddf,
+ 0x0df2, 0x0df3,
+ 0x0e01, 0x0e3a,
+ 0x0e40, 0x0e46,
+ 0x0e4d, 0x0e4d,
+ 0x0e50, 0x0e59,
+ 0x0e81, 0x0e82,
+ 0x0e84, 0x0e84,
+ 0x0e87, 0x0e88,
+ 0x0e8a, 0x0e8a,
+ 0x0e8d, 0x0e8d,
+ 0x0e94, 0x0e97,
+ 0x0e99, 0x0e9f,
+ 0x0ea1, 0x0ea3,
+ 0x0ea5, 0x0ea5,
+ 0x0ea7, 0x0ea7,
+ 0x0eaa, 0x0eab,
+ 0x0ead, 0x0eb9,
+ 0x0ebb, 0x0ebd,
+ 0x0ec0, 0x0ec4,
+ 0x0ec6, 0x0ec6,
+ 0x0ecd, 0x0ecd,
+ 0x0ed0, 0x0ed9,
+ 0x0edc, 0x0edd,
+ 0x0f00, 0x0f00,
+ 0x0f20, 0x0f29,
+ 0x0f40, 0x0f47,
+ 0x0f49, 0x0f6c,
+ 0x0f71, 0x0f81,
+ 0x0f88, 0x0f97,
+ 0x0f99, 0x0fbc,
+ 0x1000, 0x1036,
+ 0x1038, 0x1038,
+ 0x103b, 0x1049,
+ 0x1050, 0x1062,
+ 0x1065, 0x1068,
+ 0x106e, 0x1086,
+ 0x108e, 0x108e,
+ 0x1090, 0x1099,
+ 0x109c, 0x109d,
+ 0x10a0, 0x10c5,
+ 0x10d0, 0x10fa,
+ 0x10fc, 0x10fc,
+ 0x1100, 0x1248,
+ 0x124a, 0x124d,
+ 0x1250, 0x1256,
+ 0x1258, 0x1258,
+ 0x125a, 0x125d,
+ 0x1260, 0x1288,
+ 0x128a, 0x128d,
+ 0x1290, 0x12b0,
+ 0x12b2, 0x12b5,
+ 0x12b8, 0x12be,
+ 0x12c0, 0x12c0,
+ 0x12c2, 0x12c5,
+ 0x12c8, 0x12d6,
+ 0x12d8, 0x1310,
+ 0x1312, 0x1315,
+ 0x1318, 0x135a,
+ 0x135f, 0x135f,
+ 0x1380, 0x138f,
+ 0x13a0, 0x13f4,
+ 0x1401, 0x166c,
+ 0x166f, 0x167f,
+ 0x1681, 0x169a,
+ 0x16a0, 0x16ea,
+ 0x16ee, 0x16f0,
+ 0x1700, 0x170c,
+ 0x170e, 0x1713,
+ 0x1720, 0x1733,
+ 0x1740, 0x1753,
+ 0x1760, 0x176c,
+ 0x176e, 0x1770,
+ 0x1772, 0x1773,
+ 0x1780, 0x17b3,
+ 0x17b6, 0x17c8,
+ 0x17d7, 0x17d7,
+ 0x17dc, 0x17dc,
+ 0x17e0, 0x17e9,
+ 0x1810, 0x1819,
+ 0x1820, 0x1877,
+ 0x1880, 0x18aa,
+ 0x18b0, 0x18f5,
+ 0x1900, 0x191c,
+ 0x1920, 0x192b,
+ 0x1930, 0x1938,
+ 0x1946, 0x196d,
+ 0x1970, 0x1974,
+ 0x1980, 0x19ab,
+ 0x19b0, 0x19c9,
+ 0x19d0, 0x19d9,
+ 0x1a00, 0x1a1b,
+ 0x1a20, 0x1a5e,
+ 0x1a61, 0x1a74,
+ 0x1a80, 0x1a89,
+ 0x1a90, 0x1a99,
+ 0x1aa7, 0x1aa7,
+ 0x1b00, 0x1b33,
+ 0x1b35, 0x1b43,
+ 0x1b45, 0x1b4b,
+ 0x1b50, 0x1b59,
+ 0x1b80, 0x1ba9,
+ 0x1bae, 0x1bb9,
+ 0x1bc0, 0x1be5,
+ 0x1be7, 0x1bf1,
+ 0x1c00, 0x1c35,
+ 0x1c40, 0x1c49,
+ 0x1c4d, 0x1c7d,
+ 0x1ce9, 0x1cec,
+ 0x1cee, 0x1cf2,
+ 0x1d00, 0x1dbf,
+ 0x1e00, 0x1f15,
+ 0x1f18, 0x1f1d,
+ 0x1f20, 0x1f45,
+ 0x1f48, 0x1f4d,
+ 0x1f50, 0x1f57,
+ 0x1f59, 0x1f59,
+ 0x1f5b, 0x1f5b,
+ 0x1f5d, 0x1f5d,
+ 0x1f5f, 0x1f7d,
+ 0x1f80, 0x1fb4,
+ 0x1fb6, 0x1fbc,
+ 0x1fbe, 0x1fbe,
+ 0x1fc2, 0x1fc4,
+ 0x1fc6, 0x1fcc,
+ 0x1fd0, 0x1fd3,
+ 0x1fd6, 0x1fdb,
+ 0x1fe0, 0x1fec,
+ 0x1ff2, 0x1ff4,
+ 0x1ff6, 0x1ffc,
+ 0x2071, 0x2071,
+ 0x207f, 0x207f,
+ 0x2090, 0x209c,
+ 0x2102, 0x2102,
+ 0x2107, 0x2107,
+ 0x210a, 0x2113,
+ 0x2115, 0x2115,
+ 0x2119, 0x211d,
+ 0x2124, 0x2124,
+ 0x2126, 0x2126,
+ 0x2128, 0x2128,
+ 0x212a, 0x212d,
+ 0x212f, 0x2139,
+ 0x213c, 0x213f,
+ 0x2145, 0x2149,
+ 0x214e, 0x214e,
+ 0x2160, 0x2188,
+ 0x24b6, 0x24e9,
+ 0x2c00, 0x2c2e,
+ 0x2c30, 0x2c5e,
+ 0x2c60, 0x2ce4,
+ 0x2ceb, 0x2cee,
+ 0x2d00, 0x2d25,
+ 0x2d30, 0x2d65,
+ 0x2d6f, 0x2d6f,
+ 0x2d80, 0x2d96,
+ 0x2da0, 0x2da6,
+ 0x2da8, 0x2dae,
+ 0x2db0, 0x2db6,
+ 0x2db8, 0x2dbe,
+ 0x2dc0, 0x2dc6,
+ 0x2dc8, 0x2dce,
+ 0x2dd0, 0x2dd6,
+ 0x2dd8, 0x2dde,
+ 0x2de0, 0x2dff,
+ 0x2e2f, 0x2e2f,
+ 0x3005, 0x3007,
+ 0x3021, 0x3029,
+ 0x3031, 0x3035,
+ 0x3038, 0x303c,
+ 0x3041, 0x3096,
+ 0x309d, 0x309f,
+ 0x30a1, 0x30fa,
+ 0x30fc, 0x30ff,
+ 0x3105, 0x312d,
+ 0x3131, 0x318e,
+ 0x31a0, 0x31ba,
+ 0x31f0, 0x31ff,
+ 0x3400, 0x4db5,
+ 0x4e00, 0x9fcb,
+ 0xa000, 0xa48c,
+ 0xa4d0, 0xa4fd,
+ 0xa500, 0xa60c,
+ 0xa610, 0xa62b,
+ 0xa640, 0xa66e,
+ 0xa67f, 0xa697,
+ 0xa6a0, 0xa6ef,
+ 0xa717, 0xa71f,
+ 0xa722, 0xa788,
+ 0xa78b, 0xa78e,
+ 0xa790, 0xa791,
+ 0xa7a0, 0xa7a9,
+ 0xa7fa, 0xa801,
+ 0xa803, 0xa805,
+ 0xa807, 0xa80a,
+ 0xa80c, 0xa827,
+ 0xa840, 0xa873,
+ 0xa880, 0xa8c3,
+ 0xa8d0, 0xa8d9,
+ 0xa8f2, 0xa8f7,
+ 0xa8fb, 0xa8fb,
+ 0xa900, 0xa92a,
+ 0xa930, 0xa952,
+ 0xa960, 0xa97c,
+ 0xa980, 0xa9b2,
+ 0xa9b4, 0xa9bf,
+ 0xa9cf, 0xa9d9,
+ 0xaa00, 0xaa36,
+ 0xaa40, 0xaa4d,
+ 0xaa50, 0xaa59,
+ 0xaa60, 0xaa76,
+ 0xaa7a, 0xaa7a,
+ 0xaa80, 0xaabe,
+ 0xaac0, 0xaac0,
+ 0xaac2, 0xaac2,
+ 0xaadb, 0xaadd,
+ 0xab01, 0xab06,
+ 0xab09, 0xab0e,
+ 0xab11, 0xab16,
+ 0xab20, 0xab26,
+ 0xab28, 0xab2e,
+ 0xabc0, 0xabea,
+ 0xabf0, 0xabf9,
+ 0xac00, 0xd7a3,
+ 0xd7b0, 0xd7c6,
+ 0xd7cb, 0xd7fb,
+ 0xf900, 0xfa2d,
+ 0xfa30, 0xfa6d,
+ 0xfa70, 0xfad9,
+ 0xfb00, 0xfb06,
+ 0xfb13, 0xfb17,
+ 0xfb1d, 0xfb28,
+ 0xfb2a, 0xfb36,
+ 0xfb38, 0xfb3c,
+ 0xfb3e, 0xfb3e,
+ 0xfb40, 0xfb41,
+ 0xfb43, 0xfb44,
+ 0xfb46, 0xfbb1,
+ 0xfbd3, 0xfd3d,
+ 0xfd50, 0xfd8f,
+ 0xfd92, 0xfdc7,
+ 0xfdf0, 0xfdfb,
+ 0xfe70, 0xfe74,
+ 0xfe76, 0xfefc,
+ 0xff10, 0xff19,
+ 0xff21, 0xff3a,
+ 0xff41, 0xff5a,
+ 0xff66, 0xffbe,
+ 0xffc2, 0xffc7,
+ 0xffca, 0xffcf,
+ 0xffd2, 0xffd7,
+ 0xffda, 0xffdc,
+ 0x10000, 0x1000b,
+ 0x1000d, 0x10026,
+ 0x10028, 0x1003a,
+ 0x1003c, 0x1003d,
+ 0x1003f, 0x1004d,
+ 0x10050, 0x1005d,
+ 0x10080, 0x100fa,
+ 0x10140, 0x10174,
+ 0x10280, 0x1029c,
+ 0x102a0, 0x102d0,
+ 0x10300, 0x1031e,
+ 0x10330, 0x1034a,
+ 0x10380, 0x1039d,
+ 0x103a0, 0x103c3,
+ 0x103c8, 0x103cf,
+ 0x103d1, 0x103d5,
+ 0x10400, 0x1049d,
+ 0x104a0, 0x104a9,
+ 0x10800, 0x10805,
+ 0x10808, 0x10808,
+ 0x1080a, 0x10835,
+ 0x10837, 0x10838,
+ 0x1083c, 0x1083c,
+ 0x1083f, 0x10855,
+ 0x10900, 0x10915,
+ 0x10920, 0x10939,
+ 0x10a00, 0x10a03,
+ 0x10a05, 0x10a06,
+ 0x10a0c, 0x10a13,
+ 0x10a15, 0x10a17,
+ 0x10a19, 0x10a33,
+ 0x10a60, 0x10a7c,
+ 0x10b00, 0x10b35,
+ 0x10b40, 0x10b55,
+ 0x10b60, 0x10b72,
+ 0x10c00, 0x10c48,
+ 0x11000, 0x11045,
+ 0x11066, 0x1106f,
+ 0x11082, 0x110b8,
+ 0x12000, 0x1236e,
+ 0x12400, 0x12462,
+ 0x13000, 0x1342e,
+ 0x16800, 0x16a38,
+ 0x1b000, 0x1b001,
+ 0x1d400, 0x1d454,
+ 0x1d456, 0x1d49c,
+ 0x1d49e, 0x1d49f,
+ 0x1d4a2, 0x1d4a2,
+ 0x1d4a5, 0x1d4a6,
+ 0x1d4a9, 0x1d4ac,
+ 0x1d4ae, 0x1d4b9,
+ 0x1d4bb, 0x1d4bb,
+ 0x1d4bd, 0x1d4c3,
+ 0x1d4c5, 0x1d505,
+ 0x1d507, 0x1d50a,
+ 0x1d50d, 0x1d514,
+ 0x1d516, 0x1d51c,
+ 0x1d51e, 0x1d539,
+ 0x1d53b, 0x1d53e,
+ 0x1d540, 0x1d544,
+ 0x1d546, 0x1d546,
+ 0x1d54a, 0x1d550,
+ 0x1d552, 0x1d6a5,
+ 0x1d6a8, 0x1d6c0,
+ 0x1d6c2, 0x1d6da,
+ 0x1d6dc, 0x1d6fa,
+ 0x1d6fc, 0x1d714,
+ 0x1d716, 0x1d734,
+ 0x1d736, 0x1d74e,
+ 0x1d750, 0x1d76e,
+ 0x1d770, 0x1d788,
+ 0x1d78a, 0x1d7a8,
+ 0x1d7aa, 0x1d7c2,
+ 0x1d7c4, 0x1d7cb,
+ 0x1d7ce, 0x1d7ff,
+ 0x20000, 0x2a6d6,
+ 0x2a700, 0x2b734,
+ 0x2b740, 0x2b81d,
+ 0x2f800, 0x2fa1d,
+}; /* CR_Alnum */
+
+/* 'ASCII': [[:ASCII:]] */
+static const OnigCodePoint CR_ASCII[] = {
+ 1,
+ 0x0000, 0x007f,
+}; /* CR_ASCII */
+
+static const OnigCodePoint* const CodeRanges[] = {
+ CR_NEWLINE,
+ CR_Alpha,
+ CR_Blank,
+ CR_Cntrl,
+ CR_Digit,
+ CR_Graph,
+ CR_Lower,
+ CR_Print,
+ CR_Punct,
+ CR_Space,
+ CR_Upper,
+ CR_XDigit,
+ CR_Word,
+ CR_Alnum,
+ CR_ASCII,
+#ifdef USE_UNICODE_PROPERTIES
+#ifdef USE_UNICODE_PROPERTIES
+ CR_Any,
+ CR_Assigned,
+ CR_C,
+ CR_Cc,
+ CR_Cf,
+ CR_Cn,
+ CR_Co,
+ CR_Cs,
+ CR_L,
+ CR_Ll,
+ CR_Lm,
+ CR_Lo,
+ CR_Lt,
+ CR_Lu,
+ CR_M,
+ CR_Mc,
+ CR_Me,
+ CR_Mn,
+ CR_N,
+ CR_Nd,
+ CR_Nl,
+ CR_No,
+ CR_P,
+ CR_Pc,
+ CR_Pd,
+ CR_Pe,
+ CR_Pf,
+ CR_Pi,
+ CR_Po,
+ CR_Ps,
+ CR_S,
+ CR_Sc,
+ CR_Sk,
+ CR_Sm,
+ CR_So,
+ CR_Z,
+ CR_Zl,
+ CR_Zp,
+ CR_Zs,
+ CR_Math,
+ CR_Alphabetic,
+ CR_Lowercase,
+ CR_Uppercase,
+ CR_Cased,
+ CR_Case_Ignorable,
+ CR_Changes_When_Lowercased,
+ CR_Changes_When_Uppercased,
+ CR_Changes_When_Titlecased,
+ CR_Changes_When_Casefolded,
+ CR_Changes_When_Casemapped,
+ CR_ID_Start,
+ CR_ID_Continue,
+ CR_XID_Start,
+ CR_XID_Continue,
+ CR_Default_Ignorable_Code_Point,
+ CR_Grapheme_Extend,
+ CR_Grapheme_Base,
+ CR_Grapheme_Link,
+ CR_Common,
+ CR_Latin,
+ CR_Greek,
+ CR_Cyrillic,
+ CR_Armenian,
+ CR_Hebrew,
+ CR_Arabic,
+ CR_Syriac,
+ CR_Thaana,
+ CR_Devanagari,
+ CR_Bengali,
+ CR_Gurmukhi,
+ CR_Gujarati,
+ CR_Oriya,
+ CR_Tamil,
+ CR_Telugu,
+ CR_Kannada,
+ CR_Malayalam,
+ CR_Sinhala,
+ CR_Thai,
+ CR_Lao,
+ CR_Tibetan,
+ CR_Myanmar,
+ CR_Georgian,
+ CR_Hangul,
+ CR_Ethiopic,
+ CR_Cherokee,
+ CR_Canadian_Aboriginal,
+ CR_Ogham,
+ CR_Runic,
+ CR_Khmer,
+ CR_Mongolian,
+ CR_Hiragana,
+ CR_Katakana,
+ CR_Bopomofo,
+ CR_Han,
+ CR_Yi,
+ CR_Old_Italic,
+ CR_Gothic,
+ CR_Deseret,
+ CR_Inherited,
+ CR_Tagalog,
+ CR_Hanunoo,
+ CR_Buhid,
+ CR_Tagbanwa,
+ CR_Limbu,
+ CR_Tai_Le,
+ CR_Linear_B,
+ CR_Ugaritic,
+ CR_Shavian,
+ CR_Osmanya,
+ CR_Cypriot,
+ CR_Braille,
+ CR_Buginese,
+ CR_Coptic,
+ CR_New_Tai_Lue,
+ CR_Glagolitic,
+ CR_Tifinagh,
+ CR_Syloti_Nagri,
+ CR_Old_Persian,
+ CR_Kharoshthi,
+ CR_Balinese,
+ CR_Cuneiform,
+ CR_Phoenician,
+ CR_Phags_Pa,
+ CR_Nko,
+ CR_Sundanese,
+ CR_Lepcha,
+ CR_Ol_Chiki,
+ CR_Vai,
+ CR_Saurashtra,
+ CR_Kayah_Li,
+ CR_Rejang,
+ CR_Lycian,
+ CR_Carian,
+ CR_Lydian,
+ CR_Cham,
+ CR_Tai_Tham,
+ CR_Tai_Viet,
+ CR_Avestan,
+ CR_Egyptian_Hieroglyphs,
+ CR_Samaritan,
+ CR_Lisu,
+ CR_Bamum,
+ CR_Javanese,
+ CR_Meetei_Mayek,
+ CR_Imperial_Aramaic,
+ CR_Old_South_Arabian,
+ CR_Inscriptional_Parthian,
+ CR_Inscriptional_Pahlavi,
+ CR_Old_Turkic,
+ CR_Kaithi,
+ CR_Batak,
+ CR_Brahmi,
+ CR_Mandaic,
+ CR_White_Space,
+ CR_Bidi_Control,
+ CR_Join_Control,
+ CR_Dash,
+ CR_Hyphen,
+ CR_Quotation_Mark,
+ CR_Terminal_Punctuation,
+ CR_Other_Math,
+ CR_Hex_Digit,
+ CR_ASCII_Hex_Digit,
+ CR_Other_Alphabetic,
+ CR_Ideographic,
+ CR_Diacritic,
+ CR_Extender,
+ CR_Other_Lowercase,
+ CR_Other_Uppercase,
+ CR_Noncharacter_Code_Point,
+ CR_Other_Grapheme_Extend,
+ CR_IDS_Binary_Operator,
+ CR_IDS_Trinary_Operator,
+ CR_Radical,
+ CR_Unified_Ideograph,
+ CR_Other_Default_Ignorable_Code_Point,
+ CR_Deprecated,
+ CR_Soft_Dotted,
+ CR_Logical_Order_Exception,
+ CR_Other_ID_Start,
+ CR_Other_ID_Continue,
+ CR_STerm,
+ CR_Variation_Selector,
+ CR_Pattern_White_Space,
+ CR_Pattern_Syntax,
+ CR_Unknown,
+ CR_Age_1_1,
+ CR_Age_2_0,
+ CR_Age_2_1,
+ CR_Age_3_0,
+ CR_Age_3_1,
+ CR_Age_3_2,
+ CR_Age_4_0,
+ CR_Age_4_1,
+ CR_Age_5_0,
+ CR_Age_5_1,
+ CR_Age_5_2,
+ CR_Age_6_0,
+#endif /* USE_UNICODE_PROPERTIES */
+#endif /* USE_UNICODE_PROPERTIES */
+};
+struct uniname2ctype_struct {
+ int name, ctype;
+};
+
+static const struct uniname2ctype_struct *uniname2ctype_p(const char *, unsigned int);
+
+#ifndef USE_UNICODE_PROPERTIES
+#define TOTAL_KEYWORDS 15
+#define MIN_WORD_LENGTH 4
+#define MAX_WORD_LENGTH 7
+#define MIN_HASH_VALUE 7
+#define MAX_HASH_VALUE 21
+/* maximum key range = 15, duplicates = 0 */
+#else /* USE_UNICODE_PROPERTIES */
+#define TOTAL_KEYWORDS 387
+#define MIN_WORD_LENGTH 1
+#define MAX_WORD_LENGTH 30
+#define MIN_HASH_VALUE 3
+#define MAX_HASH_VALUE 1741
+/* maximum key range = 1739, duplicates = 0 */
+#endif /* USE_UNICODE_PROPERTIES */
+
+#ifdef __GNUC__
+__inline
+#else
+#ifdef __cplusplus
+inline
+#endif
+#endif
+static unsigned int
+uniname2ctype_hash (str, len)
+ register const char *str;
+ register unsigned int len;
+{
+#ifndef USE_UNICODE_PROPERTIES
+ static const unsigned char asso_values[] =
+#else /* USE_UNICODE_PROPERTIES */
+ static const unsigned short asso_values[] =
+#endif /* USE_UNICODE_PROPERTIES */
+ {
+#ifndef USE_UNICODE_PROPERTIES
+ 22, 22, 22, 22, 22, 22, 22, 22, 22, 22,
+ 22, 22, 22, 22, 22, 22, 22, 22, 22, 22,
+ 22, 22, 22, 22, 22, 22, 22, 22, 22, 22,
+ 22, 22, 22, 22, 22, 22, 22, 22, 22, 22,
+ 22, 22, 22, 22, 22, 22, 22, 22, 22, 22,
+ 22, 22, 22, 22, 22, 22, 22, 22, 22, 22,
+ 22, 22, 22, 22, 22, 22, 22, 22, 22, 22,
+ 22, 22, 22, 22, 22, 22, 22, 22, 22, 22,
+ 22, 22, 22, 22, 22, 22, 22, 22, 22, 22,
+ 22, 22, 22, 22, 22, 22, 22, 3, 13, 6,
+ 4, 22, 22, 11, 22, 1, 22, 22, 10, 22,
+ 2, 22, 1, 22, 10, 8, 4, 7, 22, 3,
+ 4, 22, 22, 22, 22, 22, 22, 22
+#else /* USE_UNICODE_PROPERTIES */
+ 1742, 1742, 1742, 1742, 1742, 1742, 1742, 1742, 1742, 1742,
+ 1742, 1742, 1742, 1742, 1742, 1742, 1742, 1742, 1742, 1742,
+ 1742, 1742, 1742, 1742, 1742, 1742, 1742, 1742, 1742, 1742,
+ 1742, 1742, 1742, 1742, 1742, 1742, 1742, 1742, 1742, 1742,
+ 1742, 1742, 1742, 1742, 1742, 1742, 2, 1742, 9, 1,
+ 2, 18, 5, 3, 4, 1742, 1742, 1742, 1742, 1742,
+ 1742, 1742, 1742, 1742, 1742, 1742, 1742, 1742, 1742, 1742,
+ 1742, 1742, 1742, 1742, 1742, 1742, 1742, 1742, 1742, 1742,
+ 1742, 1742, 1742, 1742, 1742, 1742, 1742, 1742, 1742, 1742,
+ 1742, 1742, 1742, 1742, 1742, 1742, 1742, 8, 280, 6,
+ 96, 67, 362, 294, 38, 9, 63, 517, 2, 213,
+ 1, 4, 192, 3, 10, 57, 31, 316, 1, 549,
+ 330, 567, 36, 1742, 1742, 1742, 1742, 1742
+#endif /* USE_UNICODE_PROPERTIES */
+ };
+#ifndef USE_UNICODE_PROPERTIES
+ return len + asso_values[(unsigned char)str[2]] + asso_values[(unsigned char)str[0]];
+#else /* USE_UNICODE_PROPERTIES */
+ register int hval = len;
+
+ switch (hval)
+ {
+ default:
+ hval += asso_values[(unsigned char)str[15]];
+ /*FALLTHROUGH*/
+ case 15:
+ case 14:
+ case 13:
+ case 12:
+ hval += asso_values[(unsigned char)str[11]];
+ /*FALLTHROUGH*/
+ case 11:
+ case 10:
+ case 9:
+ case 8:
+ case 7:
+ case 6:
+ hval += asso_values[(unsigned char)str[5]];
+ /*FALLTHROUGH*/
+ case 5:
+ hval += asso_values[(unsigned char)str[4]];
+ /*FALLTHROUGH*/
+ case 4:
+ case 3:
+ hval += asso_values[(unsigned char)str[2]];
+ /*FALLTHROUGH*/
+ case 2:
+ hval += asso_values[(unsigned char)str[1]];
+ /*FALLTHROUGH*/
+ case 1:
+ hval += asso_values[(unsigned char)str[0]];
+ break;
+ }
+ return hval + asso_values[(unsigned char)str[len - 1]];
+#endif /* USE_UNICODE_PROPERTIES */
+}
+
+struct uniname2ctype_pool_t
+ {
+#ifndef USE_UNICODE_PROPERTIES
+ char uniname2ctype_pool_str7[sizeof("print")];
+ char uniname2ctype_pool_str8[sizeof("punct")];
+ char uniname2ctype_pool_str9[sizeof("alpha")];
+ char uniname2ctype_pool_str10[sizeof("alnum")];
+ char uniname2ctype_pool_str11[sizeof("xdigit")];
+ char uniname2ctype_pool_str12[sizeof("newline")];
+ char uniname2ctype_pool_str13[sizeof("upper")];
+ char uniname2ctype_pool_str14[sizeof("ascii")];
+ char uniname2ctype_pool_str15[sizeof("cntrl")];
+ char uniname2ctype_pool_str16[sizeof("space")];
+ char uniname2ctype_pool_str17[sizeof("word")];
+ char uniname2ctype_pool_str18[sizeof("lower")];
+ char uniname2ctype_pool_str19[sizeof("graph")];
+ char uniname2ctype_pool_str20[sizeof("digit")];
+ char uniname2ctype_pool_str21[sizeof("blank")];
+#else /* USE_UNICODE_PROPERTIES */
+ char uniname2ctype_pool_str3[sizeof("n")];
+ char uniname2ctype_pool_str5[sizeof("l")];
+ char uniname2ctype_pool_str7[sizeof("nl")];
+ char uniname2ctype_pool_str8[sizeof("ll")];
+ char uniname2ctype_pool_str10[sizeof("cn")];
+ char uniname2ctype_pool_str11[sizeof("no")];
+ char uniname2ctype_pool_str12[sizeof("lo")];
+ char uniname2ctype_pool_str13[sizeof("c")];
+ char uniname2ctype_pool_str16[sizeof("co")];
+ char uniname2ctype_pool_str20[sizeof("cc")];
+ char uniname2ctype_pool_str21[sizeof("lao")];
+ char uniname2ctype_pool_str22[sizeof("laoo")];
+ char uniname2ctype_pool_str23[sizeof("lana")];
+ char uniname2ctype_pool_str26[sizeof("ci")];
+ char uniname2ctype_pool_str29[sizeof("qaac")];
+ char uniname2ctype_pool_str30[sizeof("vai")];
+ char uniname2ctype_pool_str31[sizeof("vaii")];
+ char uniname2ctype_pool_str32[sizeof("qaai")];
+ char uniname2ctype_pool_str34[sizeof("control")];
+ char uniname2ctype_pool_str37[sizeof("cari")];
+ char uniname2ctype_pool_str40[sizeof("carian")];
+ char uniname2ctype_pool_str42[sizeof("zl")];
+ char uniname2ctype_pool_str44[sizeof("oriya")];
+ char uniname2ctype_pool_str46[sizeof("latn")];
+ char uniname2ctype_pool_str47[sizeof("cntrl")];
+ char uniname2ctype_pool_str48[sizeof("latin")];
+ char uniname2ctype_pool_str51[sizeof("han")];
+ char uniname2ctype_pool_str53[sizeof("arabic")];
+ char uniname2ctype_pool_str54[sizeof("ital")];
+ char uniname2ctype_pool_str55[sizeof("hano")];
+ char uniname2ctype_pool_str60[sizeof("hani")];
+ char uniname2ctype_pool_str63[sizeof("hanunoo")];
+ char uniname2ctype_pool_str66[sizeof("lt")];
+ char uniname2ctype_pool_str67[sizeof("so")];
+ char uniname2ctype_pool_str69[sizeof("hira")];
+ char uniname2ctype_pool_str70[sizeof("nchar")];
+ char uniname2ctype_pool_str71[sizeof("sc")];
+ char uniname2ctype_pool_str73[sizeof("z")];
+ char uniname2ctype_pool_str74[sizeof("oalpha")];
+ char uniname2ctype_pool_str75[sizeof("tavt")];
+ char uniname2ctype_pool_str76[sizeof("cans")];
+ char uniname2ctype_pool_str84[sizeof("java")];
+ char uniname2ctype_pool_str88[sizeof("zinh")];
+ char uniname2ctype_pool_str89[sizeof("thaa")];
+ char uniname2ctype_pool_str90[sizeof("thai")];
+ char uniname2ctype_pool_str91[sizeof("variationselector")];
+ char uniname2ctype_pool_str92[sizeof("sinhala")];
+ char uniname2ctype_pool_str93[sizeof("joinc")];
+ char uniname2ctype_pool_str94[sizeof("ascii")];
+ char uniname2ctype_pool_str95[sizeof("initialpunctuation")];
+ char uniname2ctype_pool_str98[sizeof("other")];
+ char uniname2ctype_pool_str99[sizeof("joincontrol")];
+ char uniname2ctype_pool_str100[sizeof("thaana")];
+ char uniname2ctype_pool_str101[sizeof("avst")];
+ char uniname2ctype_pool_str103[sizeof("olower")];
+ char uniname2ctype_pool_str105[sizeof("othernumber")];
+ char uniname2ctype_pool_str106[sizeof("otherletter")];
+ char uniname2ctype_pool_str109[sizeof("sinh")];
+ char uniname2ctype_pool_str112[sizeof("tale")];
+ char uniname2ctype_pool_str114[sizeof("connectorpunctuation")];
+ char uniname2ctype_pool_str115[sizeof("s")];
+ char uniname2ctype_pool_str116[sizeof("di")];
+ char uniname2ctype_pool_str117[sizeof("vs")];
+ char uniname2ctype_pool_str119[sizeof("oidc")];
+ char uniname2ctype_pool_str120[sizeof("idc")];
+ char uniname2ctype_pool_str121[sizeof("odi")];
+ char uniname2ctype_pool_str122[sizeof("cs")];
+ char uniname2ctype_pool_str123[sizeof("avestan")];
+ char uniname2ctype_pool_str124[sizeof("dia")];
+ char uniname2ctype_pool_str125[sizeof("cher")];
+ char uniname2ctype_pool_str126[sizeof("inscriptionalparthian")];
+ char uniname2ctype_pool_str128[sizeof("shavian")];
+ char uniname2ctype_pool_str137[sizeof("radical")];
+ char uniname2ctype_pool_str143[sizeof("loe")];
+ char uniname2ctype_pool_str147[sizeof("diacritic")];
+ char uniname2ctype_pool_str148[sizeof("zzzz")];
+ char uniname2ctype_pool_str149[sizeof("ethi")];
+ char uniname2ctype_pool_str151[sizeof("canadianaboriginal")];
+ char uniname2ctype_pool_str152[sizeof("zs")];
+ char uniname2ctype_pool_str153[sizeof("othersymbol")];
+ char uniname2ctype_pool_str156[sizeof("olditalic")];
+ char uniname2ctype_pool_str161[sizeof("inscriptionalpahlavi")];
+ char uniname2ctype_pool_str162[sizeof("taiviet")];
+ char uniname2ctype_pool_str163[sizeof("lineseparator")];
+ char uniname2ctype_pool_str166[sizeof("otheridstart")];
+ char uniname2ctype_pool_str170[sizeof("oids")];
+ char uniname2ctype_pool_str171[sizeof("asciihexdigit")];
+ char uniname2ctype_pool_str172[sizeof("inherited")];
+ char uniname2ctype_pool_str174[sizeof("otherlowercase")];
+ char uniname2ctype_pool_str175[sizeof("terminalpunctuation")];
+ char uniname2ctype_pool_str176[sizeof("deva")];
+ char uniname2ctype_pool_str179[sizeof("otheralphabetic")];
+ char uniname2ctype_pool_str180[sizeof("ideo")];
+ char uniname2ctype_pool_str181[sizeof("noncharactercodepoint")];
+ char uniname2ctype_pool_str183[sizeof("otheridcontinue")];
+ char uniname2ctype_pool_str187[sizeof("taile")];
+ char uniname2ctype_pool_str190[sizeof("oldpersian")];
+ char uniname2ctype_pool_str192[sizeof("devanagari")];
+ char uniname2ctype_pool_str193[sizeof("letter")];
+ char uniname2ctype_pool_str195[sizeof("nd")];
+ char uniname2ctype_pool_str197[sizeof("idst")];
+ char uniname2ctype_pool_str198[sizeof("dsrt")];
+ char uniname2ctype_pool_str200[sizeof("titlecaseletter")];
+ char uniname2ctype_pool_str202[sizeof("po")];
+ char uniname2ctype_pool_str203[sizeof("dash")];
+ char uniname2ctype_pool_str206[sizeof("pc")];
+ char uniname2ctype_pool_str209[sizeof("letternumber")];
+ char uniname2ctype_pool_str212[sizeof("pi")];
+ char uniname2ctype_pool_str215[sizeof("javanese")];
+ char uniname2ctype_pool_str217[sizeof("mn")];
+ char uniname2ctype_pool_str218[sizeof("idstart")];
+ char uniname2ctype_pool_str220[sizeof("idcontinue")];
+ char uniname2ctype_pool_str222[sizeof("ids")];
+ char uniname2ctype_pool_str223[sizeof("alpha")];
+ char uniname2ctype_pool_str227[sizeof("mc")];
+ char uniname2ctype_pool_str229[sizeof("coptic")];
+ char uniname2ctype_pool_str234[sizeof("mongolian")];
+ char uniname2ctype_pool_str235[sizeof("common")];
+ char uniname2ctype_pool_str236[sizeof("armn")];
+ char uniname2ctype_pool_str237[sizeof("copt")];
+ char uniname2ctype_pool_str243[sizeof("cprt")];
+ char uniname2ctype_pool_str244[sizeof("armi")];
+ char uniname2ctype_pool_str245[sizeof("phli")];
+ char uniname2ctype_pool_str246[sizeof("prti")];
+ char uniname2ctype_pool_str250[sizeof("armenian")];
+ char uniname2ctype_pool_str251[sizeof("sd")];
+ char uniname2ctype_pool_str252[sizeof("mandaic")];
+ char uniname2ctype_pool_str255[sizeof("phoenician")];
+ char uniname2ctype_pool_str258[sizeof("taml")];
+ char uniname2ctype_pool_str261[sizeof("tamil")];
+ char uniname2ctype_pool_str268[sizeof("cased")];
+ char uniname2ctype_pool_str269[sizeof("cham")];
+ char uniname2ctype_pool_str270[sizeof("idsbinaryoperator")];
+ char uniname2ctype_pool_str271[sizeof("lepc")];
+ char uniname2ctype_pool_str275[sizeof("otherdefaultignorablecodepoint")];
+ char uniname2ctype_pool_str278[sizeof("print")];
+ char uniname2ctype_pool_str286[sizeof("osma")];
+ char uniname2ctype_pool_str292[sizeof("samr")];
+ char uniname2ctype_pool_str294[sizeof("math")];
+ char uniname2ctype_pool_str296[sizeof("linb")];
+ char uniname2ctype_pool_str297[sizeof("closepunctuation")];
+ char uniname2ctype_pool_str301[sizeof("otherpunctuation")];
+ char uniname2ctype_pool_str303[sizeof("bali")];
+ char uniname2ctype_pool_str306[sizeof("omath")];
+ char uniname2ctype_pool_str307[sizeof("samaritan")];
+ char uniname2ctype_pool_str308[sizeof("ps")];
+ char uniname2ctype_pool_str310[sizeof("arab")];
+ char uniname2ctype_pool_str311[sizeof("brai")];
+ char uniname2ctype_pool_str314[sizeof("taitham")];
+ char uniname2ctype_pool_str317[sizeof("linearb")];
+ char uniname2ctype_pool_str321[sizeof("lepcha")];
+ char uniname2ctype_pool_str322[sizeof("mand")];
+ char uniname2ctype_pool_str324[sizeof("mtei")];
+ char uniname2ctype_pool_str325[sizeof("term")];
+ char uniname2ctype_pool_str326[sizeof("glagolitic")];
+ char uniname2ctype_pool_str327[sizeof("privateuse")];
+ char uniname2ctype_pool_str328[sizeof("pe")];
+ char uniname2ctype_pool_str335[sizeof("deseret")];
+ char uniname2ctype_pool_str340[sizeof("brah")];
+ char uniname2ctype_pool_str341[sizeof("runr")];
+ char uniname2ctype_pool_str343[sizeof("othermath")];
+ char uniname2ctype_pool_str344[sizeof("runic")];
+ char uniname2ctype_pool_str345[sizeof("hang")];
+ char uniname2ctype_pool_str346[sizeof("ethiopic")];
+ char uniname2ctype_pool_str349[sizeof("me")];
+ char uniname2ctype_pool_str350[sizeof("patws")];
+ char uniname2ctype_pool_str353[sizeof("separator")];
+ char uniname2ctype_pool_str355[sizeof("tibt")];
+ char uniname2ctype_pool_str356[sizeof("gothic")];
+ char uniname2ctype_pool_str358[sizeof("tagbanwa")];
+ char uniname2ctype_pool_str359[sizeof("sarb")];
+ char uniname2ctype_pool_str361[sizeof("talu")];
+ char uniname2ctype_pool_str367[sizeof("tibetan")];
+ char uniname2ctype_pool_str371[sizeof("goth")];
+ char uniname2ctype_pool_str372[sizeof("rjng")];
+ char uniname2ctype_pool_str373[sizeof("hangul")];
+ char uniname2ctype_pool_str374[sizeof("bengali")];
+ char uniname2ctype_pool_str375[sizeof("hiragana")];
+ char uniname2ctype_pool_str376[sizeof("braille")];
+ char uniname2ctype_pool_str379[sizeof("geor")];
+ char uniname2ctype_pool_str380[sizeof("age=1.1")];
+ char uniname2ctype_pool_str381[sizeof("age=2.1")];
+ char uniname2ctype_pool_str382[sizeof("age=5.1")];
+ char uniname2ctype_pool_str383[sizeof("age=5.2")];
+ char uniname2ctype_pool_str384[sizeof("age=4.1")];
+ char uniname2ctype_pool_str385[sizeof("p")];
+ char uniname2ctype_pool_str386[sizeof("pd")];
+ char uniname2ctype_pool_str388[sizeof("lisu")];
+ char uniname2ctype_pool_str389[sizeof("age=2.0")];
+ char uniname2ctype_pool_str390[sizeof("age=5.0")];
+ char uniname2ctype_pool_str391[sizeof("age=6.0")];
+ char uniname2ctype_pool_str392[sizeof("age=4.0")];
+ char uniname2ctype_pool_str393[sizeof("graph")];
+ char uniname2ctype_pool_str395[sizeof("saur")];
+ char uniname2ctype_pool_str396[sizeof("space")];
+ char uniname2ctype_pool_str397[sizeof("age=3.1")];
+ char uniname2ctype_pool_str398[sizeof("age=3.2")];
+ char uniname2ctype_pool_str399[sizeof("hebr")];
+ char uniname2ctype_pool_str402[sizeof("bidic")];
+ char uniname2ctype_pool_str405[sizeof("age=3.0")];
+ char uniname2ctype_pool_str408[sizeof("bidicontrol")];
+ char uniname2ctype_pool_str413[sizeof("logicalorderexception")];
+ char uniname2ctype_pool_str420[sizeof("telu")];
+ char uniname2ctype_pool_str422[sizeof("zp")];
+ char uniname2ctype_pool_str427[sizeof("m")];
+ char uniname2ctype_pool_str430[sizeof("lm")];
+ char uniname2ctype_pool_str432[sizeof("idstrinaryoperator")];
+ char uniname2ctype_pool_str433[sizeof("balinese")];
+ char uniname2ctype_pool_str434[sizeof("uideo")];
+ char uniname2ctype_pool_str436[sizeof("spaceseparator")];
+ char uniname2ctype_pool_str438[sizeof("grext")];
+ char uniname2ctype_pool_str442[sizeof("alnum")];
+ char uniname2ctype_pool_str443[sizeof("oldturkic")];
+ char uniname2ctype_pool_str445[sizeof("xidc")];
+ char uniname2ctype_pool_str446[sizeof("idsb")];
+ char uniname2ctype_pool_str447[sizeof("ahex")];
+ char uniname2ctype_pool_str452[sizeof("format")];
+ char uniname2ctype_pool_str456[sizeof("caseignorable")];
+ char uniname2ctype_pool_str457[sizeof("tifinagh")];
+ char uniname2ctype_pool_str459[sizeof("sundanese")];
+ char uniname2ctype_pool_str462[sizeof("ext")];
+ char uniname2ctype_pool_str464[sizeof("saurashtra")];
+ char uniname2ctype_pool_str465[sizeof("patternwhitespace")];
+ char uniname2ctype_pool_str466[sizeof("digit")];
+ char uniname2ctype_pool_str474[sizeof("sund")];
+ char uniname2ctype_pool_str480[sizeof("decimalnumber")];
+ char uniname2ctype_pool_str484[sizeof("bopo")];
+ char uniname2ctype_pool_str485[sizeof("sm")];
+ char uniname2ctype_pool_str488[sizeof("otheruppercase")];
+ char uniname2ctype_pool_str493[sizeof("ideographic")];
+ char uniname2ctype_pool_str496[sizeof("xids")];
+ char uniname2ctype_pool_str497[sizeof("unassigned")];
+ char uniname2ctype_pool_str502[sizeof("phagspa")];
+ char uniname2ctype_pool_str506[sizeof("alphabetic")];
+ char uniname2ctype_pool_str508[sizeof("limb")];
+ char uniname2ctype_pool_str512[sizeof("xdigit")];
+ char uniname2ctype_pool_str513[sizeof("xidstart")];
+ char uniname2ctype_pool_str516[sizeof("mong")];
+ char uniname2ctype_pool_str518[sizeof("xidcontinue")];
+ char uniname2ctype_pool_str521[sizeof("assigned")];
+ char uniname2ctype_pool_str523[sizeof("ogam")];
+ char uniname2ctype_pool_str529[sizeof("nko")];
+ char uniname2ctype_pool_str530[sizeof("nkoo")];
+ char uniname2ctype_pool_str533[sizeof("olck")];
+ char uniname2ctype_pool_str534[sizeof("deprecated")];
+ char uniname2ctype_pool_str535[sizeof("brahmi")];
+ char uniname2ctype_pool_str536[sizeof("phag")];
+ char uniname2ctype_pool_str538[sizeof("kana")];
+ char uniname2ctype_pool_str540[sizeof("kali")];
+ char uniname2ctype_pool_str542[sizeof("changeswhenlowercased")];
+ char uniname2ctype_pool_str543[sizeof("extender")];
+ char uniname2ctype_pool_str550[sizeof("dep")];
+ char uniname2ctype_pool_str554[sizeof("olchiki")];
+ char uniname2ctype_pool_str562[sizeof("cwl")];
+ char uniname2ctype_pool_str563[sizeof("graphemebase")];
+ char uniname2ctype_pool_str565[sizeof("phnx")];
+ char uniname2ctype_pool_str573[sizeof("orkh")];
+ char uniname2ctype_pool_str576[sizeof("punct")];
+ char uniname2ctype_pool_str577[sizeof("khar")];
+ char uniname2ctype_pool_str580[sizeof("lower")];
+ char uniname2ctype_pool_str586[sizeof("sterm")];
+ char uniname2ctype_pool_str587[sizeof("yi")];
+ char uniname2ctype_pool_str588[sizeof("lyci")];
+ char uniname2ctype_pool_str589[sizeof("cyrl")];
+ char uniname2ctype_pool_str591[sizeof("lycian")];
+ char uniname2ctype_pool_str592[sizeof("finalpunctuation")];
+ char uniname2ctype_pool_str593[sizeof("orya")];
+ char uniname2ctype_pool_str594[sizeof("graphemeextend")];
+ char uniname2ctype_pool_str596[sizeof("kaithi")];
+ char uniname2ctype_pool_str597[sizeof("xpeo")];
+ char uniname2ctype_pool_str598[sizeof("yiii")];
+ char uniname2ctype_pool_str599[sizeof("kthi")];
+ char uniname2ctype_pool_str601[sizeof("cyrillic")];
+ char uniname2ctype_pool_str602[sizeof("glag")];
+ char uniname2ctype_pool_str605[sizeof("oupper")];
+ char uniname2ctype_pool_str617[sizeof("tagb")];
+ char uniname2ctype_pool_str620[sizeof("cwt")];
+ char uniname2ctype_pool_str623[sizeof("number")];
+ char uniname2ctype_pool_str625[sizeof("tglg")];
+ char uniname2ctype_pool_str626[sizeof("knda")];
+ char uniname2ctype_pool_str627[sizeof("lowercaseletter")];
+ char uniname2ctype_pool_str628[sizeof("changeswhentitlecased")];
+ char uniname2ctype_pool_str629[sizeof("softdotted")];
+ char uniname2ctype_pool_str632[sizeof("ugar")];
+ char uniname2ctype_pool_str634[sizeof("sylo")];
+ char uniname2ctype_pool_str636[sizeof("lu")];
+ char uniname2ctype_pool_str640[sizeof("tagalog")];
+ char uniname2ctype_pool_str643[sizeof("kharoshthi")];
+ char uniname2ctype_pool_str644[sizeof("syrc")];
+ char uniname2ctype_pool_str645[sizeof("kannada")];
+ char uniname2ctype_pool_str646[sizeof("beng")];
+ char uniname2ctype_pool_str647[sizeof("lowercase")];
+ char uniname2ctype_pool_str656[sizeof("shaw")];
+ char uniname2ctype_pool_str659[sizeof("patternsyntax")];
+ char uniname2ctype_pool_str660[sizeof("syriac")];
+ char uniname2ctype_pool_str663[sizeof("word")];
+ char uniname2ctype_pool_str667[sizeof("imperialaramaic")];
+ char uniname2ctype_pool_str672[sizeof("ugaritic")];
+ char uniname2ctype_pool_str675[sizeof("enclosingmark")];
+ char uniname2ctype_pool_str677[sizeof("georgian")];
+ char uniname2ctype_pool_str678[sizeof("lydi")];
+ char uniname2ctype_pool_str681[sizeof("lydian")];
+ char uniname2ctype_pool_str686[sizeof("sylotinagri")];
+ char uniname2ctype_pool_str687[sizeof("gujr")];
+ char uniname2ctype_pool_str692[sizeof("tfng")];
+ char uniname2ctype_pool_str696[sizeof("currencysymbol")];
+ char uniname2ctype_pool_str701[sizeof("newline")];
+ char uniname2ctype_pool_str705[sizeof("bopomofo")];
+ char uniname2ctype_pool_str706[sizeof("ogrext")];
+ char uniname2ctype_pool_str707[sizeof("cherokee")];
+ char uniname2ctype_pool_str708[sizeof("gujarati")];
+ char uniname2ctype_pool_str710[sizeof("newtailue")];
+ char uniname2ctype_pool_str716[sizeof("dashpunctuation")];
+ char uniname2ctype_pool_str718[sizeof("oldsoutharabian")];
+ char uniname2ctype_pool_str725[sizeof("upper")];
+ char uniname2ctype_pool_str732[sizeof("cf")];
+ char uniname2ctype_pool_str734[sizeof("buhd")];
+ char uniname2ctype_pool_str735[sizeof("rejang")];
+ char uniname2ctype_pool_str736[sizeof("othergraphemeextend")];
+ char uniname2ctype_pool_str739[sizeof("modifierletter")];
+ char uniname2ctype_pool_str745[sizeof("nonspacingmark")];
+ char uniname2ctype_pool_str749[sizeof("changeswhencasemapped")];
+ char uniname2ctype_pool_str752[sizeof("mark")];
+ char uniname2ctype_pool_str757[sizeof("surrogate")];
+ char uniname2ctype_pool_str765[sizeof("paragraphseparator")];
+ char uniname2ctype_pool_str767[sizeof("ogham")];
+ char uniname2ctype_pool_str768[sizeof("hex")];
+ char uniname2ctype_pool_str772[sizeof("uppercaseletter")];
+ char uniname2ctype_pool_str777[sizeof("hexdigit")];
+ char uniname2ctype_pool_str778[sizeof("cwcm")];
+ char uniname2ctype_pool_str781[sizeof("grbase")];
+ char uniname2ctype_pool_str782[sizeof("khmr")];
+ char uniname2ctype_pool_str788[sizeof("unifiedideograph")];
+ char uniname2ctype_pool_str792[sizeof("uppercase")];
+ char uniname2ctype_pool_str793[sizeof("khmer")];
+ char uniname2ctype_pool_str795[sizeof("spacingmark")];
+ char uniname2ctype_pool_str797[sizeof("whitespace")];
+ char uniname2ctype_pool_str806[sizeof("patsyn")];
+ char uniname2ctype_pool_str816[sizeof("cypriot")];
+ char uniname2ctype_pool_str818[sizeof("openpunctuation")];
+ char uniname2ctype_pool_str821[sizeof("bamu")];
+ char uniname2ctype_pool_str831[sizeof("buhid")];
+ char uniname2ctype_pool_str840[sizeof("batk")];
+ char uniname2ctype_pool_str851[sizeof("symbol")];
+ char uniname2ctype_pool_str856[sizeof("changeswhenuppercased")];
+ char uniname2ctype_pool_str857[sizeof("osmanya")];
+ char uniname2ctype_pool_str861[sizeof("limbu")];
+ char uniname2ctype_pool_str868[sizeof("punctuation")];
+ char uniname2ctype_pool_str872[sizeof("hyphen")];
+ char uniname2ctype_pool_str888[sizeof("mathsymbol")];
+ char uniname2ctype_pool_str892[sizeof("grek")];
+ char uniname2ctype_pool_str898[sizeof("changeswhencasefolded")];
+ char uniname2ctype_pool_str902[sizeof("quotationmark")];
+ char uniname2ctype_pool_str903[sizeof("bugi")];
+ char uniname2ctype_pool_str916[sizeof("cuneiform")];
+ char uniname2ctype_pool_str918[sizeof("pf")];
+ char uniname2ctype_pool_str927[sizeof("cwcf")];
+ char uniname2ctype_pool_str932[sizeof("bamum")];
+ char uniname2ctype_pool_str940[sizeof("guru")];
+ char uniname2ctype_pool_str944[sizeof("wspace")];
+ char uniname2ctype_pool_str951[sizeof("meeteimayek")];
+ char uniname2ctype_pool_str976[sizeof("defaultignorablecodepoint")];
+ char uniname2ctype_pool_str980[sizeof("modifiersymbol")];
+ char uniname2ctype_pool_str999[sizeof("mlym")];
+ char uniname2ctype_pool_str1007[sizeof("mymr")];
+ char uniname2ctype_pool_str1020[sizeof("malayalam")];
+ char uniname2ctype_pool_str1026[sizeof("myanmar")];
+ char uniname2ctype_pool_str1032[sizeof("telugu")];
+ char uniname2ctype_pool_str1033[sizeof("buginese")];
+ char uniname2ctype_pool_str1037[sizeof("xsux")];
+ char uniname2ctype_pool_str1093[sizeof("sk")];
+ char uniname2ctype_pool_str1097[sizeof("katakana")];
+ char uniname2ctype_pool_str1124[sizeof("egyp")];
+ char uniname2ctype_pool_str1146[sizeof("any")];
+ char uniname2ctype_pool_str1148[sizeof("kayahli")];
+ char uniname2ctype_pool_str1190[sizeof("cwu")];
+ char uniname2ctype_pool_str1263[sizeof("qmark")];
+ char uniname2ctype_pool_str1329[sizeof("blank")];
+ char uniname2ctype_pool_str1347[sizeof("grlink")];
+ char uniname2ctype_pool_str1358[sizeof("batak")];
+ char uniname2ctype_pool_str1395[sizeof("unknown")];
+ char uniname2ctype_pool_str1410[sizeof("greek")];
+ char uniname2ctype_pool_str1463[sizeof("graphemelink")];
+ char uniname2ctype_pool_str1470[sizeof("gurmukhi")];
+ char uniname2ctype_pool_str1556[sizeof("hebrew")];
+ char uniname2ctype_pool_str1621[sizeof("egyptianhieroglyphs")];
+ char uniname2ctype_pool_str1741[sizeof("zyyy")];
+#endif /* USE_UNICODE_PROPERTIES */
+ };
+static const struct uniname2ctype_pool_t uniname2ctype_pool_contents =
+ {
+#ifndef USE_UNICODE_PROPERTIES
+ "print",
+ "punct",
+#else /* USE_UNICODE_PROPERTIES */
+ "n",
+ "l",
+ "nl",
+ "ll",
+ "cn",
+ "no",
+ "lo",
+ "c",
+ "co",
+ "cc",
+ "lao",
+ "laoo",
+ "lana",
+ "ci",
+ "qaac",
+ "vai",
+ "vaii",
+ "qaai",
+ "control",
+ "cari",
+ "carian",
+ "zl",
+ "oriya",
+ "latn",
+ "cntrl",
+ "latin",
+ "han",
+ "arabic",
+ "ital",
+ "hano",
+ "hani",
+ "hanunoo",
+ "lt",
+ "so",
+ "hira",
+ "nchar",
+ "sc",
+ "z",
+ "oalpha",
+ "tavt",
+ "cans",
+ "java",
+ "zinh",
+ "thaa",
+ "thai",
+ "variationselector",
+ "sinhala",
+ "joinc",
+ "ascii",
+ "initialpunctuation",
+ "other",
+ "joincontrol",
+ "thaana",
+ "avst",
+ "olower",
+ "othernumber",
+ "otherletter",
+ "sinh",
+ "tale",
+ "connectorpunctuation",
+ "s",
+ "di",
+ "vs",
+ "oidc",
+ "idc",
+ "odi",
+ "cs",
+ "avestan",
+ "dia",
+ "cher",
+ "inscriptionalparthian",
+ "shavian",
+ "radical",
+ "loe",
+ "diacritic",
+ "zzzz",
+ "ethi",
+ "canadianaboriginal",
+ "zs",
+ "othersymbol",
+ "olditalic",
+ "inscriptionalpahlavi",
+ "taiviet",
+ "lineseparator",
+ "otheridstart",
+ "oids",
+ "asciihexdigit",
+ "inherited",
+ "otherlowercase",
+ "terminalpunctuation",
+ "deva",
+ "otheralphabetic",
+ "ideo",
+ "noncharactercodepoint",
+ "otheridcontinue",
+ "taile",
+ "oldpersian",
+ "devanagari",
+ "letter",
+ "nd",
+ "idst",
+ "dsrt",
+ "titlecaseletter",
+ "po",
+ "dash",
+ "pc",
+ "letternumber",
+ "pi",
+ "javanese",
+ "mn",
+ "idstart",
+ "idcontinue",
+ "ids",
+#endif /* USE_UNICODE_PROPERTIES */
+ "alpha",
+#ifdef USE_UNICODE_PROPERTIES
+ "mc",
+ "coptic",
+ "mongolian",
+ "common",
+ "armn",
+ "copt",
+ "cprt",
+ "armi",
+ "phli",
+ "prti",
+ "armenian",
+ "sd",
+ "mandaic",
+ "phoenician",
+ "taml",
+ "tamil",
+ "cased",
+ "cham",
+ "idsbinaryoperator",
+ "lepc",
+ "otherdefaultignorablecodepoint",
+ "print",
+ "osma",
+ "samr",
+ "math",
+ "linb",
+ "closepunctuation",
+ "otherpunctuation",
+ "bali",
+ "omath",
+ "samaritan",
+ "ps",
+ "arab",
+ "brai",
+ "taitham",
+ "linearb",
+ "lepcha",
+ "mand",
+ "mtei",
+ "term",
+ "glagolitic",
+ "privateuse",
+ "pe",
+ "deseret",
+ "brah",
+ "runr",
+ "othermath",
+ "runic",
+ "hang",
+ "ethiopic",
+ "me",
+ "patws",
+ "separator",
+ "tibt",
+ "gothic",
+ "tagbanwa",
+ "sarb",
+ "talu",
+ "tibetan",
+ "goth",
+ "rjng",
+ "hangul",
+ "bengali",
+ "hiragana",
+ "braille",
+ "geor",
+ "age=1.1",
+ "age=2.1",
+ "age=5.1",
+ "age=5.2",
+ "age=4.1",
+ "p",
+ "pd",
+ "lisu",
+ "age=2.0",
+ "age=5.0",
+ "age=6.0",
+ "age=4.0",
+ "graph",
+ "saur",
+ "space",
+ "age=3.1",
+ "age=3.2",
+ "hebr",
+ "bidic",
+ "age=3.0",
+ "bidicontrol",
+ "logicalorderexception",
+ "telu",
+ "zp",
+ "m",
+ "lm",
+ "idstrinaryoperator",
+ "balinese",
+ "uideo",
+ "spaceseparator",
+ "grext",
+#endif /* USE_UNICODE_PROPERTIES */
+ "alnum",
+#ifdef USE_UNICODE_PROPERTIES
+ "oldturkic",
+ "xidc",
+ "idsb",
+ "ahex",
+ "format",
+ "caseignorable",
+ "tifinagh",
+ "sundanese",
+ "ext",
+ "saurashtra",
+ "patternwhitespace",
+ "digit",
+ "sund",
+ "decimalnumber",
+ "bopo",
+ "sm",
+ "otheruppercase",
+ "ideographic",
+ "xids",
+ "unassigned",
+ "phagspa",
+ "alphabetic",
+ "limb",
+#endif /* USE_UNICODE_PROPERTIES */
+ "xdigit",
+#ifdef USE_UNICODE_PROPERTIES
+ "xidstart",
+ "mong",
+ "xidcontinue",
+ "assigned",
+ "ogam",
+ "nko",
+ "nkoo",
+ "olck",
+ "deprecated",
+ "brahmi",
+ "phag",
+ "kana",
+ "kali",
+ "changeswhenlowercased",
+ "extender",
+ "dep",
+ "olchiki",
+ "cwl",
+ "graphemebase",
+ "phnx",
+ "orkh",
+ "punct",
+ "khar",
+ "lower",
+ "sterm",
+ "yi",
+ "lyci",
+ "cyrl",
+ "lycian",
+ "finalpunctuation",
+ "orya",
+ "graphemeextend",
+ "kaithi",
+ "xpeo",
+ "yiii",
+ "kthi",
+ "cyrillic",
+ "glag",
+ "oupper",
+ "tagb",
+ "cwt",
+ "number",
+ "tglg",
+ "knda",
+ "lowercaseletter",
+ "changeswhentitlecased",
+ "softdotted",
+ "ugar",
+ "sylo",
+ "lu",
+ "tagalog",
+ "kharoshthi",
+ "syrc",
+ "kannada",
+ "beng",
+ "lowercase",
+ "shaw",
+ "patternsyntax",
+ "syriac",
+ "word",
+ "imperialaramaic",
+ "ugaritic",
+ "enclosingmark",
+ "georgian",
+ "lydi",
+ "lydian",
+ "sylotinagri",
+ "gujr",
+ "tfng",
+ "currencysymbol",
+#endif /* USE_UNICODE_PROPERTIES */
+ "newline",
+#ifdef USE_UNICODE_PROPERTIES
+ "bopomofo",
+ "ogrext",
+ "cherokee",
+ "gujarati",
+ "newtailue",
+ "dashpunctuation",
+ "oldsoutharabian",
+#endif /* USE_UNICODE_PROPERTIES */
+ "upper",
+#ifndef USE_UNICODE_PROPERTIES
+ "ascii",
+ "cntrl",
+ "space",
+ "word",
+ "lower",
+ "graph",
+ "digit",
+ "blank"
+#else /* USE_UNICODE_PROPERTIES */
+ "cf",
+ "buhd",
+ "rejang",
+ "othergraphemeextend",
+ "modifierletter",
+ "nonspacingmark",
+ "changeswhencasemapped",
+ "mark",
+ "surrogate",
+ "paragraphseparator",
+ "ogham",
+ "hex",
+ "uppercaseletter",
+ "hexdigit",
+ "cwcm",
+ "grbase",
+ "khmr",
+ "unifiedideograph",
+ "uppercase",
+ "khmer",
+ "spacingmark",
+ "whitespace",
+ "patsyn",
+ "cypriot",
+ "openpunctuation",
+ "bamu",
+ "buhid",
+ "batk",
+ "symbol",
+ "changeswhenuppercased",
+ "osmanya",
+ "limbu",
+ "punctuation",
+ "hyphen",
+ "mathsymbol",
+ "grek",
+ "changeswhencasefolded",
+ "quotationmark",
+ "bugi",
+ "cuneiform",
+ "pf",
+ "cwcf",
+ "bamum",
+ "guru",
+ "wspace",
+ "meeteimayek",
+ "defaultignorablecodepoint",
+ "modifiersymbol",
+ "mlym",
+ "mymr",
+ "malayalam",
+ "myanmar",
+ "telugu",
+ "buginese",
+ "xsux",
+ "sk",
+ "katakana",
+ "egyp",
+ "any",
+ "kayahli",
+ "cwu",
+ "qmark",
+ "blank",
+ "grlink",
+ "batak",
+ "unknown",
+ "greek",
+ "graphemelink",
+ "gurmukhi",
+ "hebrew",
+ "egyptianhieroglyphs",
+ "zyyy"
+#endif /* USE_UNICODE_PROPERTIES */
+ };
+#define uniname2ctype_pool ((const char *) &uniname2ctype_pool_contents)
+#ifdef __GNUC__
+__inline
+#ifdef __GNUC_STDC_INLINE__
+__attribute__ ((__gnu_inline__))
+#endif
+#endif
+const struct uniname2ctype_struct *
+uniname2ctype_p (str, len)
+ register const char *str;
+ register unsigned int len;
+{
+ static const struct uniname2ctype_struct wordlist[] =
+ {
+#ifdef USE_UNICODE_PROPERTIES
+ {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str3, 33},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str5, 23},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str7, 35},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str8, 24},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str10, 20},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str11, 36},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str12, 26},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str13, 17},
+ {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str16, 21},
+ {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str20, 18},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str21, 93},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str22, 93},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str23, 150},
+ {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str26, 59},
+ {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str29, 127},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str30, 142},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str31, 142},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str32, 113},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str34, 18},
+ {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str37, 147},
+ {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str40, 147},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str42, 51},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str44, 86},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str46, 74},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str47, 3},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str48, 74},
+ {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str51, 108},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str53, 79},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str54, 110},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str55, 115},
+ {-1}, {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str60, 108},
+ {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str63, 115},
+ {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str66, 27},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str67, 49},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str69, 105},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str70, 184},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str71, 46},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str73, 50},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str74, 178},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str75, 151},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str76, 100},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str84, 157},
+ {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str88, 113},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str89, 81},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str90, 92},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str91, 197},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str92, 91},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str93, 170},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str94, 14},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str95, 42},
+ {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str98, 17},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str99, 170},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str100, 81},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str101, 152},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str103, 182},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str105, 36},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str106, 26},
+ {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str109, 91},
+ {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str112, 119},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str114, 38},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str115, 45},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str116, 69},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str117, 197},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str119, 195},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str120, 66},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str121, 190},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str122, 22},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str123, 152},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str124, 180},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str125, 99},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str126, 161},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str128, 122},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str137, 188},
+ {-1}, {-1}, {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str143, 193},
+ {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str147, 180},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str148, 200},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str149, 98},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str151, 100},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str152, 53},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str153, 49},
+ {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str156, 110},
+ {-1}, {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str161, 162},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str162, 151},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str163, 51},
+ {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str166, 194},
+ {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str170, 194},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str171, 177},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str172, 113},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str174, 182},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str175, 174},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str176, 82},
+ {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str179, 178},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str180, 179},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str181, 184},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str183, 195},
+ {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str187, 119},
+ {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str190, 132},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str192, 82},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str193, 23},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str195, 34},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str197, 187},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str198, 112},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str200, 27},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str202, 43},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str203, 171},
+ {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str206, 38},
+ {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str209, 35},
+ {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str212, 42},
+ {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str215, 157},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str217, 32},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str218, 65},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str220, 66},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str222, 65},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str223, 1},
+ {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str227, 30},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str229, 127},
+ {-1}, {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str234, 104},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str235, 73},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str236, 77},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str237, 127},
+ {-1}, {-1}, {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str243, 124},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str244, 159},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str245, 162},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str246, 161},
+ {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str250, 77},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str251, 192},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str252, 167},
+ {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str255, 136},
+ {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str258, 87},
+ {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str261, 87},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str268, 58},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str269, 149},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str270, 186},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str271, 140},
+ {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str275, 190},
+ {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str278, 7},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str286, 123},
+ {-1}, {-1}, {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str292, 154},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str294, 54},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str296, 120},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str297, 40},
+ {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str301, 43},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str303, 134},
+ {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str306, 175},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str307, 154},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str308, 44},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str310, 79},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str311, 125},
+ {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str314, 150},
+ {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str317, 120},
+ {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str321, 140},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str322, 167},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str324, 158},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str325, 174},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str326, 129},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str327, 21},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str328, 40},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str335, 112},
+ {-1}, {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str340, 166},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str341, 102},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str343, 175},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str344, 102},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str345, 97},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str346, 98},
+ {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str349, 31},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str350, 198},
+ {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str353, 50},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str355, 94},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str356, 111},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str358, 117},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str359, 160},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str361, 128},
+ {-1}, {-1}, {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str367, 94},
+ {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str371, 111},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str372, 145},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str373, 97},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str374, 83},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str375, 105},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str376, 125},
+ {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str379, 96},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str380, 201},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str381, 203},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str382, 210},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str383, 211},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str384, 208},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str385, 37},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str386, 39},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str388, 155},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str389, 202},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str390, 209},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str391, 212},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str392, 207},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str393, 5},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str395, 143},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str396, 9},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str397, 205},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str398, 206},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str399, 78},
+ {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str402, 169},
+ {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str405, 204},
+ {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str408, 169},
+ {-1}, {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str413, 193},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str420, 88},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str422, 52},
+ {-1}, {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str427, 29},
+ {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str430, 25},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str432, 187},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str433, 134},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str434, 189},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str436, 53},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str438, 70},
+ {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str442, 13},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str443, 163},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str445, 68},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str446, 186},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str447, 177},
+ {-1}, {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str452, 19},
+ {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str456, 59},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str457, 130},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str459, 139},
+ {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str462, 181},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str464, 143},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str465, 198},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str466, 4},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str474, 139},
+ {-1}, {-1}, {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str480, 34},
+ {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str484, 107},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str485, 48},
+ {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str488, 183},
+ {-1}, {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str493, 179},
+ {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str496, 67},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str497, 20},
+ {-1}, {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str502, 137},
+ {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str506, 55},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str508, 118},
+ {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str512, 11},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str513, 67},
+ {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str516, 104},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str518, 68},
+ {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str521, 16},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str523, 101},
+ {-1}, {-1}, {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str529, 138},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str530, 138},
+ {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str533, 141},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str534, 191},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str535, 166},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str536, 137},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str538, 106},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str540, 144},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str542, 60},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str543, 181},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str550, 191},
+ {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str554, 141},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str562, 60},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str563, 71},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str565, 136},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str573, 163},
+ {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str576, 8},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str577, 133},
+ {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str580, 6},
+ {-1}, {-1}, {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str586, 196},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str587, 109},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str588, 146},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str589, 76},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str591, 146},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str592, 41},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str593, 86},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str594, 70},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str596, 164},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str597, 132},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str598, 109},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str599, 164},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str601, 76},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str602, 129},
+ {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str605, 183},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str617, 117},
+ {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str620, 62},
+ {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str623, 33},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str625, 114},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str626, 89},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str627, 24},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str628, 62},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str629, 192},
+ {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str632, 121},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str634, 131},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str636, 28},
+ {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str640, 114},
+ {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str643, 133},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str644, 80},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str645, 89},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str646, 83},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str647, 56},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str656, 122},
+ {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str659, 199},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str660, 80},
+ {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str663, 12},
+ {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str667, 159},
+ {-1}, {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str672, 121},
+ {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str675, 31},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str677, 96},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str678, 148},
+ {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str681, 148},
+ {-1}, {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str686, 131},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str687, 85},
+ {-1}, {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str692, 130},
+ {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str696, 46},
+ {-1}, {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str701, 0},
+ {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str705, 107},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str706, 185},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str707, 99},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str708, 85},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str710, 128},
+ {-1}, {-1}, {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str716, 39},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str718, 160},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str725, 10},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str732, 19},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str734, 116},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str735, 145},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str736, 185},
+ {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str739, 25},
+ {-1}, {-1}, {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str745, 32},
+ {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str749, 64},
+ {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str752, 29},
+ {-1}, {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str757, 22},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str765, 52},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str767, 101},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str768, 176},
+ {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str772, 28},
+ {-1}, {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str777, 176},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str778, 64},
+ {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str781, 71},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str782, 103},
+ {-1}, {-1}, {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str788, 189},
+ {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str792, 57},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str793, 103},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str795, 30},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str797, 168},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str806, 199},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str816, 124},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str818, 44},
+ {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str821, 156},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str831, 116},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str840, 165},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str851, 45},
+ {-1}, {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str856, 61},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str857, 123},
+ {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str861, 118},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str868, 37},
+ {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str872, 172},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str888, 48},
+ {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str892, 75},
+ {-1}, {-1}, {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str898, 63},
+ {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str902, 173},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str903, 126},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str916, 135},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str918, 41},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str927, 63},
+ {-1}, {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str932, 156},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str940, 84},
+ {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str944, 168},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str951, 158},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str976, 69},
+ {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str980, 47},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str999, 90},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str1007, 95},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str1020, 90},
+ {-1}, {-1}, {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str1026, 95},
+ {-1}, {-1}, {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str1032, 88},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str1033, 126},
+ {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str1037, 135},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str1093, 47},
+ {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str1097, 106},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str1124, 153},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str1146, 15},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str1148, 144},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str1190, 61},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str1263, 173},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str1329, 2},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str1347, 72},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str1358, 165},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str1395, 200},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str1410, 75},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+#endif /* USE_UNICODE_PROPERTIES */
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+#ifndef USE_UNICODE_PROPERTIES
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str7, 7},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str8, 8},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str9, 1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str10, 13},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str11, 11},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str12, 0},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str13, 10},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str14, 14},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str15, 3},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str16, 9},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str17, 12},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str18, 6},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str19, 5},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str20, 4},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str21, 2}
+#else /* USE_UNICODE_PROPERTIES */
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str1463, 72},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str1470, 84},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str1556, 78},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str1621, 153},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str1741, 73}
+#endif /* USE_UNICODE_PROPERTIES */
+ };
+
+ if (len <= MAX_WORD_LENGTH && len >= MIN_WORD_LENGTH)
+ {
+ register int key = uniname2ctype_hash (str, len);
+
+ if (key <= MAX_HASH_VALUE && key >= 0)
+ {
+ register int o = wordlist[key].name;
+ if (o >= 0)
+ {
+ register const char *s = o + uniname2ctype_pool;
+
+ if (*str == *s && !strncmp (str + 1, s + 1, len - 1) && s[len] == '\0')
+ return &wordlist[key];
+ }
+ }
+ }
+ return 0;
+}
+
+static int
+uniname2ctype(const UChar *name, unsigned int len)
+{
+ const struct uniname2ctype_struct *p = uniname2ctype_p((const char *)name, len);
+ if (p) return p->ctype;
+ return -1;
+}
diff --git a/enc/unicode/name2ctype.h.blt b/enc/unicode/name2ctype.h.blt
new file mode 100644
index 0000000000..a45ea59a4b
--- /dev/null
+++ b/enc/unicode/name2ctype.h.blt
@@ -0,0 +1,23866 @@
+/* C code produced by gperf version 3.0.3 */
+/* Command-line: gperf -7 -c -j1 -i1 -t -C -P -T -H uniname2ctype_hash -Q uniname2ctype_pool -N uniname2ctype_p */
+#ifndef USE_UNICODE_PROPERTIES
+/* Computed positions: -k'1,3' */
+#else /* USE_UNICODE_PROPERTIES */
+/* Computed positions: -k'1-3,5-6,12,16,$' */
+#endif /* USE_UNICODE_PROPERTIES */
+
+#if !((' ' == 32) && ('!' == 33) && ('"' == 34) && ('#' == 35) \
+ && ('%' == 37) && ('&' == 38) && ('\'' == 39) && ('(' == 40) \
+ && (')' == 41) && ('*' == 42) && ('+' == 43) && (',' == 44) \
+ && ('-' == 45) && ('.' == 46) && ('/' == 47) && ('0' == 48) \
+ && ('1' == 49) && ('2' == 50) && ('3' == 51) && ('4' == 52) \
+ && ('5' == 53) && ('6' == 54) && ('7' == 55) && ('8' == 56) \
+ && ('9' == 57) && (':' == 58) && (';' == 59) && ('<' == 60) \
+ && ('=' == 61) && ('>' == 62) && ('?' == 63) && ('A' == 65) \
+ && ('B' == 66) && ('C' == 67) && ('D' == 68) && ('E' == 69) \
+ && ('F' == 70) && ('G' == 71) && ('H' == 72) && ('I' == 73) \
+ && ('J' == 74) && ('K' == 75) && ('L' == 76) && ('M' == 77) \
+ && ('N' == 78) && ('O' == 79) && ('P' == 80) && ('Q' == 81) \
+ && ('R' == 82) && ('S' == 83) && ('T' == 84) && ('U' == 85) \
+ && ('V' == 86) && ('W' == 87) && ('X' == 88) && ('Y' == 89) \
+ && ('Z' == 90) && ('[' == 91) && ('\\' == 92) && (']' == 93) \
+ && ('^' == 94) && ('_' == 95) && ('a' == 97) && ('b' == 98) \
+ && ('c' == 99) && ('d' == 100) && ('e' == 101) && ('f' == 102) \
+ && ('g' == 103) && ('h' == 104) && ('i' == 105) && ('j' == 106) \
+ && ('k' == 107) && ('l' == 108) && ('m' == 109) && ('n' == 110) \
+ && ('o' == 111) && ('p' == 112) && ('q' == 113) && ('r' == 114) \
+ && ('s' == 115) && ('t' == 116) && ('u' == 117) && ('v' == 118) \
+ && ('w' == 119) && ('x' == 120) && ('y' == 121) && ('z' == 122) \
+ && ('{' == 123) && ('|' == 124) && ('}' == 125) && ('~' == 126))
+/* The character set is not based on ISO-646. */
+error "gperf generated tables don't work with this execution character set. Please report a bug to <bug-gnu-gperf@gnu.org>."
+#endif
+
+
+#define long size_t
+
+#ifdef USE_UNICODE_PROPERTIES
+#ifdef USE_UNICODE_PROPERTIES
+/* 'Any': - */
+static const OnigCodePoint CR_Any[] = {
+ 1,
+ 0x0000, 0x10ffff,
+}; /* CR_Any */
+
+/* 'Assigned': - */
+static const OnigCodePoint CR_Assigned[] = {
+ 501,
+ 0x0000, 0x0377,
+ 0x037a, 0x037e,
+ 0x0384, 0x038a,
+ 0x038c, 0x038c,
+ 0x038e, 0x03a1,
+ 0x03a3, 0x0527,
+ 0x0531, 0x0556,
+ 0x0559, 0x055f,
+ 0x0561, 0x0587,
+ 0x0589, 0x058a,
+ 0x0591, 0x05c7,
+ 0x05d0, 0x05ea,
+ 0x05f0, 0x05f4,
+ 0x0600, 0x0603,
+ 0x0606, 0x061b,
+ 0x061e, 0x070d,
+ 0x070f, 0x074a,
+ 0x074d, 0x07b1,
+ 0x07c0, 0x07fa,
+ 0x0800, 0x082d,
+ 0x0830, 0x083e,
+ 0x0840, 0x085b,
+ 0x085e, 0x085e,
+ 0x0900, 0x0977,
+ 0x0979, 0x097f,
+ 0x0981, 0x0983,
+ 0x0985, 0x098c,
+ 0x098f, 0x0990,
+ 0x0993, 0x09a8,
+ 0x09aa, 0x09b0,
+ 0x09b2, 0x09b2,
+ 0x09b6, 0x09b9,
+ 0x09bc, 0x09c4,
+ 0x09c7, 0x09c8,
+ 0x09cb, 0x09ce,
+ 0x09d7, 0x09d7,
+ 0x09dc, 0x09dd,
+ 0x09df, 0x09e3,
+ 0x09e6, 0x09fb,
+ 0x0a01, 0x0a03,
+ 0x0a05, 0x0a0a,
+ 0x0a0f, 0x0a10,
+ 0x0a13, 0x0a28,
+ 0x0a2a, 0x0a30,
+ 0x0a32, 0x0a33,
+ 0x0a35, 0x0a36,
+ 0x0a38, 0x0a39,
+ 0x0a3c, 0x0a3c,
+ 0x0a3e, 0x0a42,
+ 0x0a47, 0x0a48,
+ 0x0a4b, 0x0a4d,
+ 0x0a51, 0x0a51,
+ 0x0a59, 0x0a5c,
+ 0x0a5e, 0x0a5e,
+ 0x0a66, 0x0a75,
+ 0x0a81, 0x0a83,
+ 0x0a85, 0x0a8d,
+ 0x0a8f, 0x0a91,
+ 0x0a93, 0x0aa8,
+ 0x0aaa, 0x0ab0,
+ 0x0ab2, 0x0ab3,
+ 0x0ab5, 0x0ab9,
+ 0x0abc, 0x0ac5,
+ 0x0ac7, 0x0ac9,
+ 0x0acb, 0x0acd,
+ 0x0ad0, 0x0ad0,
+ 0x0ae0, 0x0ae3,
+ 0x0ae6, 0x0aef,
+ 0x0af1, 0x0af1,
+ 0x0b01, 0x0b03,
+ 0x0b05, 0x0b0c,
+ 0x0b0f, 0x0b10,
+ 0x0b13, 0x0b28,
+ 0x0b2a, 0x0b30,
+ 0x0b32, 0x0b33,
+ 0x0b35, 0x0b39,
+ 0x0b3c, 0x0b44,
+ 0x0b47, 0x0b48,
+ 0x0b4b, 0x0b4d,
+ 0x0b56, 0x0b57,
+ 0x0b5c, 0x0b5d,
+ 0x0b5f, 0x0b63,
+ 0x0b66, 0x0b77,
+ 0x0b82, 0x0b83,
+ 0x0b85, 0x0b8a,
+ 0x0b8e, 0x0b90,
+ 0x0b92, 0x0b95,
+ 0x0b99, 0x0b9a,
+ 0x0b9c, 0x0b9c,
+ 0x0b9e, 0x0b9f,
+ 0x0ba3, 0x0ba4,
+ 0x0ba8, 0x0baa,
+ 0x0bae, 0x0bb9,
+ 0x0bbe, 0x0bc2,
+ 0x0bc6, 0x0bc8,
+ 0x0bca, 0x0bcd,
+ 0x0bd0, 0x0bd0,
+ 0x0bd7, 0x0bd7,
+ 0x0be6, 0x0bfa,
+ 0x0c01, 0x0c03,
+ 0x0c05, 0x0c0c,
+ 0x0c0e, 0x0c10,
+ 0x0c12, 0x0c28,
+ 0x0c2a, 0x0c33,
+ 0x0c35, 0x0c39,
+ 0x0c3d, 0x0c44,
+ 0x0c46, 0x0c48,
+ 0x0c4a, 0x0c4d,
+ 0x0c55, 0x0c56,
+ 0x0c58, 0x0c59,
+ 0x0c60, 0x0c63,
+ 0x0c66, 0x0c6f,
+ 0x0c78, 0x0c7f,
+ 0x0c82, 0x0c83,
+ 0x0c85, 0x0c8c,
+ 0x0c8e, 0x0c90,
+ 0x0c92, 0x0ca8,
+ 0x0caa, 0x0cb3,
+ 0x0cb5, 0x0cb9,
+ 0x0cbc, 0x0cc4,
+ 0x0cc6, 0x0cc8,
+ 0x0cca, 0x0ccd,
+ 0x0cd5, 0x0cd6,
+ 0x0cde, 0x0cde,
+ 0x0ce0, 0x0ce3,
+ 0x0ce6, 0x0cef,
+ 0x0cf1, 0x0cf2,
+ 0x0d02, 0x0d03,
+ 0x0d05, 0x0d0c,
+ 0x0d0e, 0x0d10,
+ 0x0d12, 0x0d3a,
+ 0x0d3d, 0x0d44,
+ 0x0d46, 0x0d48,
+ 0x0d4a, 0x0d4e,
+ 0x0d57, 0x0d57,
+ 0x0d60, 0x0d63,
+ 0x0d66, 0x0d75,
+ 0x0d79, 0x0d7f,
+ 0x0d82, 0x0d83,
+ 0x0d85, 0x0d96,
+ 0x0d9a, 0x0db1,
+ 0x0db3, 0x0dbb,
+ 0x0dbd, 0x0dbd,
+ 0x0dc0, 0x0dc6,
+ 0x0dca, 0x0dca,
+ 0x0dcf, 0x0dd4,
+ 0x0dd6, 0x0dd6,
+ 0x0dd8, 0x0ddf,
+ 0x0df2, 0x0df4,
+ 0x0e01, 0x0e3a,
+ 0x0e3f, 0x0e5b,
+ 0x0e81, 0x0e82,
+ 0x0e84, 0x0e84,
+ 0x0e87, 0x0e88,
+ 0x0e8a, 0x0e8a,
+ 0x0e8d, 0x0e8d,
+ 0x0e94, 0x0e97,
+ 0x0e99, 0x0e9f,
+ 0x0ea1, 0x0ea3,
+ 0x0ea5, 0x0ea5,
+ 0x0ea7, 0x0ea7,
+ 0x0eaa, 0x0eab,
+ 0x0ead, 0x0eb9,
+ 0x0ebb, 0x0ebd,
+ 0x0ec0, 0x0ec4,
+ 0x0ec6, 0x0ec6,
+ 0x0ec8, 0x0ecd,
+ 0x0ed0, 0x0ed9,
+ 0x0edc, 0x0edd,
+ 0x0f00, 0x0f47,
+ 0x0f49, 0x0f6c,
+ 0x0f71, 0x0f97,
+ 0x0f99, 0x0fbc,
+ 0x0fbe, 0x0fcc,
+ 0x0fce, 0x0fda,
+ 0x1000, 0x10c5,
+ 0x10d0, 0x10fc,
+ 0x1100, 0x1248,
+ 0x124a, 0x124d,
+ 0x1250, 0x1256,
+ 0x1258, 0x1258,
+ 0x125a, 0x125d,
+ 0x1260, 0x1288,
+ 0x128a, 0x128d,
+ 0x1290, 0x12b0,
+ 0x12b2, 0x12b5,
+ 0x12b8, 0x12be,
+ 0x12c0, 0x12c0,
+ 0x12c2, 0x12c5,
+ 0x12c8, 0x12d6,
+ 0x12d8, 0x1310,
+ 0x1312, 0x1315,
+ 0x1318, 0x135a,
+ 0x135d, 0x137c,
+ 0x1380, 0x1399,
+ 0x13a0, 0x13f4,
+ 0x1400, 0x169c,
+ 0x16a0, 0x16f0,
+ 0x1700, 0x170c,
+ 0x170e, 0x1714,
+ 0x1720, 0x1736,
+ 0x1740, 0x1753,
+ 0x1760, 0x176c,
+ 0x176e, 0x1770,
+ 0x1772, 0x1773,
+ 0x1780, 0x17dd,
+ 0x17e0, 0x17e9,
+ 0x17f0, 0x17f9,
+ 0x1800, 0x180e,
+ 0x1810, 0x1819,
+ 0x1820, 0x1877,
+ 0x1880, 0x18aa,
+ 0x18b0, 0x18f5,
+ 0x1900, 0x191c,
+ 0x1920, 0x192b,
+ 0x1930, 0x193b,
+ 0x1940, 0x1940,
+ 0x1944, 0x196d,
+ 0x1970, 0x1974,
+ 0x1980, 0x19ab,
+ 0x19b0, 0x19c9,
+ 0x19d0, 0x19da,
+ 0x19de, 0x1a1b,
+ 0x1a1e, 0x1a5e,
+ 0x1a60, 0x1a7c,
+ 0x1a7f, 0x1a89,
+ 0x1a90, 0x1a99,
+ 0x1aa0, 0x1aad,
+ 0x1b00, 0x1b4b,
+ 0x1b50, 0x1b7c,
+ 0x1b80, 0x1baa,
+ 0x1bae, 0x1bb9,
+ 0x1bc0, 0x1bf3,
+ 0x1bfc, 0x1c37,
+ 0x1c3b, 0x1c49,
+ 0x1c4d, 0x1c7f,
+ 0x1cd0, 0x1cf2,
+ 0x1d00, 0x1de6,
+ 0x1dfc, 0x1f15,
+ 0x1f18, 0x1f1d,
+ 0x1f20, 0x1f45,
+ 0x1f48, 0x1f4d,
+ 0x1f50, 0x1f57,
+ 0x1f59, 0x1f59,
+ 0x1f5b, 0x1f5b,
+ 0x1f5d, 0x1f5d,
+ 0x1f5f, 0x1f7d,
+ 0x1f80, 0x1fb4,
+ 0x1fb6, 0x1fc4,
+ 0x1fc6, 0x1fd3,
+ 0x1fd6, 0x1fdb,
+ 0x1fdd, 0x1fef,
+ 0x1ff2, 0x1ff4,
+ 0x1ff6, 0x1ffe,
+ 0x2000, 0x2064,
+ 0x206a, 0x2071,
+ 0x2074, 0x208e,
+ 0x2090, 0x209c,
+ 0x20a0, 0x20b9,
+ 0x20d0, 0x20f0,
+ 0x2100, 0x2189,
+ 0x2190, 0x23f3,
+ 0x2400, 0x2426,
+ 0x2440, 0x244a,
+ 0x2460, 0x26ff,
+ 0x2701, 0x27ca,
+ 0x27cc, 0x27cc,
+ 0x27ce, 0x2b4c,
+ 0x2b50, 0x2b59,
+ 0x2c00, 0x2c2e,
+ 0x2c30, 0x2c5e,
+ 0x2c60, 0x2cf1,
+ 0x2cf9, 0x2d25,
+ 0x2d30, 0x2d65,
+ 0x2d6f, 0x2d70,
+ 0x2d7f, 0x2d96,
+ 0x2da0, 0x2da6,
+ 0x2da8, 0x2dae,
+ 0x2db0, 0x2db6,
+ 0x2db8, 0x2dbe,
+ 0x2dc0, 0x2dc6,
+ 0x2dc8, 0x2dce,
+ 0x2dd0, 0x2dd6,
+ 0x2dd8, 0x2dde,
+ 0x2de0, 0x2e31,
+ 0x2e80, 0x2e99,
+ 0x2e9b, 0x2ef3,
+ 0x2f00, 0x2fd5,
+ 0x2ff0, 0x2ffb,
+ 0x3000, 0x303f,
+ 0x3041, 0x3096,
+ 0x3099, 0x30ff,
+ 0x3105, 0x312d,
+ 0x3131, 0x318e,
+ 0x3190, 0x31ba,
+ 0x31c0, 0x31e3,
+ 0x31f0, 0x321e,
+ 0x3220, 0x32fe,
+ 0x3300, 0x4db5,
+ 0x4dc0, 0x9fcb,
+ 0xa000, 0xa48c,
+ 0xa490, 0xa4c6,
+ 0xa4d0, 0xa62b,
+ 0xa640, 0xa673,
+ 0xa67c, 0xa697,
+ 0xa6a0, 0xa6f7,
+ 0xa700, 0xa78e,
+ 0xa790, 0xa791,
+ 0xa7a0, 0xa7a9,
+ 0xa7fa, 0xa82b,
+ 0xa830, 0xa839,
+ 0xa840, 0xa877,
+ 0xa880, 0xa8c4,
+ 0xa8ce, 0xa8d9,
+ 0xa8e0, 0xa8fb,
+ 0xa900, 0xa953,
+ 0xa95f, 0xa97c,
+ 0xa980, 0xa9cd,
+ 0xa9cf, 0xa9d9,
+ 0xa9de, 0xa9df,
+ 0xaa00, 0xaa36,
+ 0xaa40, 0xaa4d,
+ 0xaa50, 0xaa59,
+ 0xaa5c, 0xaa7b,
+ 0xaa80, 0xaac2,
+ 0xaadb, 0xaadf,
+ 0xab01, 0xab06,
+ 0xab09, 0xab0e,
+ 0xab11, 0xab16,
+ 0xab20, 0xab26,
+ 0xab28, 0xab2e,
+ 0xabc0, 0xabed,
+ 0xabf0, 0xabf9,
+ 0xac00, 0xd7a3,
+ 0xd7b0, 0xd7c6,
+ 0xd7cb, 0xd7fb,
+ 0xd800, 0xfa2d,
+ 0xfa30, 0xfa6d,
+ 0xfa70, 0xfad9,
+ 0xfb00, 0xfb06,
+ 0xfb13, 0xfb17,
+ 0xfb1d, 0xfb36,
+ 0xfb38, 0xfb3c,
+ 0xfb3e, 0xfb3e,
+ 0xfb40, 0xfb41,
+ 0xfb43, 0xfb44,
+ 0xfb46, 0xfbc1,
+ 0xfbd3, 0xfd3f,
+ 0xfd50, 0xfd8f,
+ 0xfd92, 0xfdc7,
+ 0xfdf0, 0xfdfd,
+ 0xfe00, 0xfe19,
+ 0xfe20, 0xfe26,
+ 0xfe30, 0xfe52,
+ 0xfe54, 0xfe66,
+ 0xfe68, 0xfe6b,
+ 0xfe70, 0xfe74,
+ 0xfe76, 0xfefc,
+ 0xfeff, 0xfeff,
+ 0xff01, 0xffbe,
+ 0xffc2, 0xffc7,
+ 0xffca, 0xffcf,
+ 0xffd2, 0xffd7,
+ 0xffda, 0xffdc,
+ 0xffe0, 0xffe6,
+ 0xffe8, 0xffee,
+ 0xfff9, 0xfffd,
+ 0x10000, 0x1000b,
+ 0x1000d, 0x10026,
+ 0x10028, 0x1003a,
+ 0x1003c, 0x1003d,
+ 0x1003f, 0x1004d,
+ 0x10050, 0x1005d,
+ 0x10080, 0x100fa,
+ 0x10100, 0x10102,
+ 0x10107, 0x10133,
+ 0x10137, 0x1018a,
+ 0x10190, 0x1019b,
+ 0x101d0, 0x101fd,
+ 0x10280, 0x1029c,
+ 0x102a0, 0x102d0,
+ 0x10300, 0x1031e,
+ 0x10320, 0x10323,
+ 0x10330, 0x1034a,
+ 0x10380, 0x1039d,
+ 0x1039f, 0x103c3,
+ 0x103c8, 0x103d5,
+ 0x10400, 0x1049d,
+ 0x104a0, 0x104a9,
+ 0x10800, 0x10805,
+ 0x10808, 0x10808,
+ 0x1080a, 0x10835,
+ 0x10837, 0x10838,
+ 0x1083c, 0x1083c,
+ 0x1083f, 0x10855,
+ 0x10857, 0x1085f,
+ 0x10900, 0x1091b,
+ 0x1091f, 0x10939,
+ 0x1093f, 0x1093f,
+ 0x10a00, 0x10a03,
+ 0x10a05, 0x10a06,
+ 0x10a0c, 0x10a13,
+ 0x10a15, 0x10a17,
+ 0x10a19, 0x10a33,
+ 0x10a38, 0x10a3a,
+ 0x10a3f, 0x10a47,
+ 0x10a50, 0x10a58,
+ 0x10a60, 0x10a7f,
+ 0x10b00, 0x10b35,
+ 0x10b39, 0x10b55,
+ 0x10b58, 0x10b72,
+ 0x10b78, 0x10b7f,
+ 0x10c00, 0x10c48,
+ 0x10e60, 0x10e7e,
+ 0x11000, 0x1104d,
+ 0x11052, 0x1106f,
+ 0x11080, 0x110c1,
+ 0x12000, 0x1236e,
+ 0x12400, 0x12462,
+ 0x12470, 0x12473,
+ 0x13000, 0x1342e,
+ 0x16800, 0x16a38,
+ 0x1b000, 0x1b001,
+ 0x1d000, 0x1d0f5,
+ 0x1d100, 0x1d126,
+ 0x1d129, 0x1d1dd,
+ 0x1d200, 0x1d245,
+ 0x1d300, 0x1d356,
+ 0x1d360, 0x1d371,
+ 0x1d400, 0x1d454,
+ 0x1d456, 0x1d49c,
+ 0x1d49e, 0x1d49f,
+ 0x1d4a2, 0x1d4a2,
+ 0x1d4a5, 0x1d4a6,
+ 0x1d4a9, 0x1d4ac,
+ 0x1d4ae, 0x1d4b9,
+ 0x1d4bb, 0x1d4bb,
+ 0x1d4bd, 0x1d4c3,
+ 0x1d4c5, 0x1d505,
+ 0x1d507, 0x1d50a,
+ 0x1d50d, 0x1d514,
+ 0x1d516, 0x1d51c,
+ 0x1d51e, 0x1d539,
+ 0x1d53b, 0x1d53e,
+ 0x1d540, 0x1d544,
+ 0x1d546, 0x1d546,
+ 0x1d54a, 0x1d550,
+ 0x1d552, 0x1d6a5,
+ 0x1d6a8, 0x1d7cb,
+ 0x1d7ce, 0x1d7ff,
+ 0x1f000, 0x1f02b,
+ 0x1f030, 0x1f093,
+ 0x1f0a0, 0x1f0ae,
+ 0x1f0b1, 0x1f0be,
+ 0x1f0c1, 0x1f0cf,
+ 0x1f0d1, 0x1f0df,
+ 0x1f100, 0x1f10a,
+ 0x1f110, 0x1f12e,
+ 0x1f130, 0x1f169,
+ 0x1f170, 0x1f19a,
+ 0x1f1e6, 0x1f202,
+ 0x1f210, 0x1f23a,
+ 0x1f240, 0x1f248,
+ 0x1f250, 0x1f251,
+ 0x1f300, 0x1f320,
+ 0x1f330, 0x1f335,
+ 0x1f337, 0x1f37c,
+ 0x1f380, 0x1f393,
+ 0x1f3a0, 0x1f3c4,
+ 0x1f3c6, 0x1f3ca,
+ 0x1f3e0, 0x1f3f0,
+ 0x1f400, 0x1f43e,
+ 0x1f440, 0x1f440,
+ 0x1f442, 0x1f4f7,
+ 0x1f4f9, 0x1f4fc,
+ 0x1f500, 0x1f53d,
+ 0x1f550, 0x1f567,
+ 0x1f5fb, 0x1f5ff,
+ 0x1f601, 0x1f610,
+ 0x1f612, 0x1f614,
+ 0x1f616, 0x1f616,
+ 0x1f618, 0x1f618,
+ 0x1f61a, 0x1f61a,
+ 0x1f61c, 0x1f61e,
+ 0x1f620, 0x1f625,
+ 0x1f628, 0x1f62b,
+ 0x1f62d, 0x1f62d,
+ 0x1f630, 0x1f633,
+ 0x1f635, 0x1f640,
+ 0x1f645, 0x1f64f,
+ 0x1f680, 0x1f6c5,
+ 0x1f700, 0x1f773,
+ 0x20000, 0x2a6d6,
+ 0x2a700, 0x2b734,
+ 0x2b740, 0x2b81d,
+ 0x2f800, 0x2fa1d,
+ 0xe0001, 0xe0001,
+ 0xe0020, 0xe007f,
+ 0xe0100, 0xe01ef,
+ 0xf0000, 0xffffd,
+ 0x100000, 0x10fffd,
+}; /* CR_Assigned */
+
+/* 'C': Major Category */
+static const OnigCodePoint CR_C[] = {
+ 20,
+ 0x0000, 0x001f,
+ 0x007f, 0x009f,
+ 0x00ad, 0x00ad,
+ 0x0600, 0x0603,
+ 0x06dd, 0x06dd,
+ 0x070f, 0x070f,
+ 0x17b4, 0x17b5,
+ 0x200b, 0x200f,
+ 0x202a, 0x202e,
+ 0x2060, 0x2064,
+ 0x206a, 0x206f,
+ 0xd800, 0xf8ff,
+ 0xfeff, 0xfeff,
+ 0xfff9, 0xfffb,
+ 0x110bd, 0x110bd,
+ 0x1d173, 0x1d17a,
+ 0xe0001, 0xe0001,
+ 0xe0020, 0xe007f,
+ 0xf0000, 0xffffd,
+ 0x100000, 0x10ffff,
+}; /* CR_C */
+
+/* 'Cc': General Category */
+static const OnigCodePoint CR_Cc[] = {
+ 2,
+ 0x0000, 0x001f,
+ 0x007f, 0x009f,
+}; /* CR_Cc */
+
+/* 'Cf': General Category */
+static const OnigCodePoint CR_Cf[] = {
+ 15,
+ 0x00ad, 0x00ad,
+ 0x0600, 0x0603,
+ 0x06dd, 0x06dd,
+ 0x070f, 0x070f,
+ 0x17b4, 0x17b5,
+ 0x200b, 0x200f,
+ 0x202a, 0x202e,
+ 0x2060, 0x2064,
+ 0x206a, 0x206f,
+ 0xfeff, 0xfeff,
+ 0xfff9, 0xfffb,
+ 0x110bd, 0x110bd,
+ 0x1d173, 0x1d17a,
+ 0xe0001, 0xe0001,
+ 0xe0020, 0xe007f,
+}; /* CR_Cf */
+
+/* 'Cn': General Category */
+static const OnigCodePoint CR_Cn[] = {
+ 501,
+ 0x0378, 0x0379,
+ 0x037f, 0x0383,
+ 0x038b, 0x038b,
+ 0x038d, 0x038d,
+ 0x03a2, 0x03a2,
+ 0x0528, 0x0530,
+ 0x0557, 0x0558,
+ 0x0560, 0x0560,
+ 0x0588, 0x0588,
+ 0x058b, 0x0590,
+ 0x05c8, 0x05cf,
+ 0x05eb, 0x05ef,
+ 0x05f5, 0x05ff,
+ 0x0604, 0x0605,
+ 0x061c, 0x061d,
+ 0x070e, 0x070e,
+ 0x074b, 0x074c,
+ 0x07b2, 0x07bf,
+ 0x07fb, 0x07ff,
+ 0x082e, 0x082f,
+ 0x083f, 0x083f,
+ 0x085c, 0x085d,
+ 0x085f, 0x08ff,
+ 0x0978, 0x0978,
+ 0x0980, 0x0980,
+ 0x0984, 0x0984,
+ 0x098d, 0x098e,
+ 0x0991, 0x0992,
+ 0x09a9, 0x09a9,
+ 0x09b1, 0x09b1,
+ 0x09b3, 0x09b5,
+ 0x09ba, 0x09bb,
+ 0x09c5, 0x09c6,
+ 0x09c9, 0x09ca,
+ 0x09cf, 0x09d6,
+ 0x09d8, 0x09db,
+ 0x09de, 0x09de,
+ 0x09e4, 0x09e5,
+ 0x09fc, 0x0a00,
+ 0x0a04, 0x0a04,
+ 0x0a0b, 0x0a0e,
+ 0x0a11, 0x0a12,
+ 0x0a29, 0x0a29,
+ 0x0a31, 0x0a31,
+ 0x0a34, 0x0a34,
+ 0x0a37, 0x0a37,
+ 0x0a3a, 0x0a3b,
+ 0x0a3d, 0x0a3d,
+ 0x0a43, 0x0a46,
+ 0x0a49, 0x0a4a,
+ 0x0a4e, 0x0a50,
+ 0x0a52, 0x0a58,
+ 0x0a5d, 0x0a5d,
+ 0x0a5f, 0x0a65,
+ 0x0a76, 0x0a80,
+ 0x0a84, 0x0a84,
+ 0x0a8e, 0x0a8e,
+ 0x0a92, 0x0a92,
+ 0x0aa9, 0x0aa9,
+ 0x0ab1, 0x0ab1,
+ 0x0ab4, 0x0ab4,
+ 0x0aba, 0x0abb,
+ 0x0ac6, 0x0ac6,
+ 0x0aca, 0x0aca,
+ 0x0ace, 0x0acf,
+ 0x0ad1, 0x0adf,
+ 0x0ae4, 0x0ae5,
+ 0x0af0, 0x0af0,
+ 0x0af2, 0x0b00,
+ 0x0b04, 0x0b04,
+ 0x0b0d, 0x0b0e,
+ 0x0b11, 0x0b12,
+ 0x0b29, 0x0b29,
+ 0x0b31, 0x0b31,
+ 0x0b34, 0x0b34,
+ 0x0b3a, 0x0b3b,
+ 0x0b45, 0x0b46,
+ 0x0b49, 0x0b4a,
+ 0x0b4e, 0x0b55,
+ 0x0b58, 0x0b5b,
+ 0x0b5e, 0x0b5e,
+ 0x0b64, 0x0b65,
+ 0x0b78, 0x0b81,
+ 0x0b84, 0x0b84,
+ 0x0b8b, 0x0b8d,
+ 0x0b91, 0x0b91,
+ 0x0b96, 0x0b98,
+ 0x0b9b, 0x0b9b,
+ 0x0b9d, 0x0b9d,
+ 0x0ba0, 0x0ba2,
+ 0x0ba5, 0x0ba7,
+ 0x0bab, 0x0bad,
+ 0x0bba, 0x0bbd,
+ 0x0bc3, 0x0bc5,
+ 0x0bc9, 0x0bc9,
+ 0x0bce, 0x0bcf,
+ 0x0bd1, 0x0bd6,
+ 0x0bd8, 0x0be5,
+ 0x0bfb, 0x0c00,
+ 0x0c04, 0x0c04,
+ 0x0c0d, 0x0c0d,
+ 0x0c11, 0x0c11,
+ 0x0c29, 0x0c29,
+ 0x0c34, 0x0c34,
+ 0x0c3a, 0x0c3c,
+ 0x0c45, 0x0c45,
+ 0x0c49, 0x0c49,
+ 0x0c4e, 0x0c54,
+ 0x0c57, 0x0c57,
+ 0x0c5a, 0x0c5f,
+ 0x0c64, 0x0c65,
+ 0x0c70, 0x0c77,
+ 0x0c80, 0x0c81,
+ 0x0c84, 0x0c84,
+ 0x0c8d, 0x0c8d,
+ 0x0c91, 0x0c91,
+ 0x0ca9, 0x0ca9,
+ 0x0cb4, 0x0cb4,
+ 0x0cba, 0x0cbb,
+ 0x0cc5, 0x0cc5,
+ 0x0cc9, 0x0cc9,
+ 0x0cce, 0x0cd4,
+ 0x0cd7, 0x0cdd,
+ 0x0cdf, 0x0cdf,
+ 0x0ce4, 0x0ce5,
+ 0x0cf0, 0x0cf0,
+ 0x0cf3, 0x0d01,
+ 0x0d04, 0x0d04,
+ 0x0d0d, 0x0d0d,
+ 0x0d11, 0x0d11,
+ 0x0d3b, 0x0d3c,
+ 0x0d45, 0x0d45,
+ 0x0d49, 0x0d49,
+ 0x0d4f, 0x0d56,
+ 0x0d58, 0x0d5f,
+ 0x0d64, 0x0d65,
+ 0x0d76, 0x0d78,
+ 0x0d80, 0x0d81,
+ 0x0d84, 0x0d84,
+ 0x0d97, 0x0d99,
+ 0x0db2, 0x0db2,
+ 0x0dbc, 0x0dbc,
+ 0x0dbe, 0x0dbf,
+ 0x0dc7, 0x0dc9,
+ 0x0dcb, 0x0dce,
+ 0x0dd5, 0x0dd5,
+ 0x0dd7, 0x0dd7,
+ 0x0de0, 0x0df1,
+ 0x0df5, 0x0e00,
+ 0x0e3b, 0x0e3e,
+ 0x0e5c, 0x0e80,
+ 0x0e83, 0x0e83,
+ 0x0e85, 0x0e86,
+ 0x0e89, 0x0e89,
+ 0x0e8b, 0x0e8c,
+ 0x0e8e, 0x0e93,
+ 0x0e98, 0x0e98,
+ 0x0ea0, 0x0ea0,
+ 0x0ea4, 0x0ea4,
+ 0x0ea6, 0x0ea6,
+ 0x0ea8, 0x0ea9,
+ 0x0eac, 0x0eac,
+ 0x0eba, 0x0eba,
+ 0x0ebe, 0x0ebf,
+ 0x0ec5, 0x0ec5,
+ 0x0ec7, 0x0ec7,
+ 0x0ece, 0x0ecf,
+ 0x0eda, 0x0edb,
+ 0x0ede, 0x0eff,
+ 0x0f48, 0x0f48,
+ 0x0f6d, 0x0f70,
+ 0x0f98, 0x0f98,
+ 0x0fbd, 0x0fbd,
+ 0x0fcd, 0x0fcd,
+ 0x0fdb, 0x0fff,
+ 0x10c6, 0x10cf,
+ 0x10fd, 0x10ff,
+ 0x1249, 0x1249,
+ 0x124e, 0x124f,
+ 0x1257, 0x1257,
+ 0x1259, 0x1259,
+ 0x125e, 0x125f,
+ 0x1289, 0x1289,
+ 0x128e, 0x128f,
+ 0x12b1, 0x12b1,
+ 0x12b6, 0x12b7,
+ 0x12bf, 0x12bf,
+ 0x12c1, 0x12c1,
+ 0x12c6, 0x12c7,
+ 0x12d7, 0x12d7,
+ 0x1311, 0x1311,
+ 0x1316, 0x1317,
+ 0x135b, 0x135c,
+ 0x137d, 0x137f,
+ 0x139a, 0x139f,
+ 0x13f5, 0x13ff,
+ 0x169d, 0x169f,
+ 0x16f1, 0x16ff,
+ 0x170d, 0x170d,
+ 0x1715, 0x171f,
+ 0x1737, 0x173f,
+ 0x1754, 0x175f,
+ 0x176d, 0x176d,
+ 0x1771, 0x1771,
+ 0x1774, 0x177f,
+ 0x17de, 0x17df,
+ 0x17ea, 0x17ef,
+ 0x17fa, 0x17ff,
+ 0x180f, 0x180f,
+ 0x181a, 0x181f,
+ 0x1878, 0x187f,
+ 0x18ab, 0x18af,
+ 0x18f6, 0x18ff,
+ 0x191d, 0x191f,
+ 0x192c, 0x192f,
+ 0x193c, 0x193f,
+ 0x1941, 0x1943,
+ 0x196e, 0x196f,
+ 0x1975, 0x197f,
+ 0x19ac, 0x19af,
+ 0x19ca, 0x19cf,
+ 0x19db, 0x19dd,
+ 0x1a1c, 0x1a1d,
+ 0x1a5f, 0x1a5f,
+ 0x1a7d, 0x1a7e,
+ 0x1a8a, 0x1a8f,
+ 0x1a9a, 0x1a9f,
+ 0x1aae, 0x1aff,
+ 0x1b4c, 0x1b4f,
+ 0x1b7d, 0x1b7f,
+ 0x1bab, 0x1bad,
+ 0x1bba, 0x1bbf,
+ 0x1bf4, 0x1bfb,
+ 0x1c38, 0x1c3a,
+ 0x1c4a, 0x1c4c,
+ 0x1c80, 0x1ccf,
+ 0x1cf3, 0x1cff,
+ 0x1de7, 0x1dfb,
+ 0x1f16, 0x1f17,
+ 0x1f1e, 0x1f1f,
+ 0x1f46, 0x1f47,
+ 0x1f4e, 0x1f4f,
+ 0x1f58, 0x1f58,
+ 0x1f5a, 0x1f5a,
+ 0x1f5c, 0x1f5c,
+ 0x1f5e, 0x1f5e,
+ 0x1f7e, 0x1f7f,
+ 0x1fb5, 0x1fb5,
+ 0x1fc5, 0x1fc5,
+ 0x1fd4, 0x1fd5,
+ 0x1fdc, 0x1fdc,
+ 0x1ff0, 0x1ff1,
+ 0x1ff5, 0x1ff5,
+ 0x1fff, 0x1fff,
+ 0x2065, 0x2069,
+ 0x2072, 0x2073,
+ 0x208f, 0x208f,
+ 0x209d, 0x209f,
+ 0x20ba, 0x20cf,
+ 0x20f1, 0x20ff,
+ 0x218a, 0x218f,
+ 0x23f4, 0x23ff,
+ 0x2427, 0x243f,
+ 0x244b, 0x245f,
+ 0x2700, 0x2700,
+ 0x27cb, 0x27cb,
+ 0x27cd, 0x27cd,
+ 0x2b4d, 0x2b4f,
+ 0x2b5a, 0x2bff,
+ 0x2c2f, 0x2c2f,
+ 0x2c5f, 0x2c5f,
+ 0x2cf2, 0x2cf8,
+ 0x2d26, 0x2d2f,
+ 0x2d66, 0x2d6e,
+ 0x2d71, 0x2d7e,
+ 0x2d97, 0x2d9f,
+ 0x2da7, 0x2da7,
+ 0x2daf, 0x2daf,
+ 0x2db7, 0x2db7,
+ 0x2dbf, 0x2dbf,
+ 0x2dc7, 0x2dc7,
+ 0x2dcf, 0x2dcf,
+ 0x2dd7, 0x2dd7,
+ 0x2ddf, 0x2ddf,
+ 0x2e32, 0x2e7f,
+ 0x2e9a, 0x2e9a,
+ 0x2ef4, 0x2eff,
+ 0x2fd6, 0x2fef,
+ 0x2ffc, 0x2fff,
+ 0x3040, 0x3040,
+ 0x3097, 0x3098,
+ 0x3100, 0x3104,
+ 0x312e, 0x3130,
+ 0x318f, 0x318f,
+ 0x31bb, 0x31bf,
+ 0x31e4, 0x31ef,
+ 0x321f, 0x321f,
+ 0x32ff, 0x32ff,
+ 0x4db6, 0x4dbf,
+ 0x9fcc, 0x9fff,
+ 0xa48d, 0xa48f,
+ 0xa4c7, 0xa4cf,
+ 0xa62c, 0xa63f,
+ 0xa674, 0xa67b,
+ 0xa698, 0xa69f,
+ 0xa6f8, 0xa6ff,
+ 0xa78f, 0xa78f,
+ 0xa792, 0xa79f,
+ 0xa7aa, 0xa7f9,
+ 0xa82c, 0xa82f,
+ 0xa83a, 0xa83f,
+ 0xa878, 0xa87f,
+ 0xa8c5, 0xa8cd,
+ 0xa8da, 0xa8df,
+ 0xa8fc, 0xa8ff,
+ 0xa954, 0xa95e,
+ 0xa97d, 0xa97f,
+ 0xa9ce, 0xa9ce,
+ 0xa9da, 0xa9dd,
+ 0xa9e0, 0xa9ff,
+ 0xaa37, 0xaa3f,
+ 0xaa4e, 0xaa4f,
+ 0xaa5a, 0xaa5b,
+ 0xaa7c, 0xaa7f,
+ 0xaac3, 0xaada,
+ 0xaae0, 0xab00,
+ 0xab07, 0xab08,
+ 0xab0f, 0xab10,
+ 0xab17, 0xab1f,
+ 0xab27, 0xab27,
+ 0xab2f, 0xabbf,
+ 0xabee, 0xabef,
+ 0xabfa, 0xabff,
+ 0xd7a4, 0xd7af,
+ 0xd7c7, 0xd7ca,
+ 0xd7fc, 0xd7ff,
+ 0xfa2e, 0xfa2f,
+ 0xfa6e, 0xfa6f,
+ 0xfada, 0xfaff,
+ 0xfb07, 0xfb12,
+ 0xfb18, 0xfb1c,
+ 0xfb37, 0xfb37,
+ 0xfb3d, 0xfb3d,
+ 0xfb3f, 0xfb3f,
+ 0xfb42, 0xfb42,
+ 0xfb45, 0xfb45,
+ 0xfbc2, 0xfbd2,
+ 0xfd40, 0xfd4f,
+ 0xfd90, 0xfd91,
+ 0xfdc8, 0xfdef,
+ 0xfdfe, 0xfdff,
+ 0xfe1a, 0xfe1f,
+ 0xfe27, 0xfe2f,
+ 0xfe53, 0xfe53,
+ 0xfe67, 0xfe67,
+ 0xfe6c, 0xfe6f,
+ 0xfe75, 0xfe75,
+ 0xfefd, 0xfefe,
+ 0xff00, 0xff00,
+ 0xffbf, 0xffc1,
+ 0xffc8, 0xffc9,
+ 0xffd0, 0xffd1,
+ 0xffd8, 0xffd9,
+ 0xffdd, 0xffdf,
+ 0xffe7, 0xffe7,
+ 0xffef, 0xfff8,
+ 0xfffe, 0xffff,
+ 0x1000c, 0x1000c,
+ 0x10027, 0x10027,
+ 0x1003b, 0x1003b,
+ 0x1003e, 0x1003e,
+ 0x1004e, 0x1004f,
+ 0x1005e, 0x1007f,
+ 0x100fb, 0x100ff,
+ 0x10103, 0x10106,
+ 0x10134, 0x10136,
+ 0x1018b, 0x1018f,
+ 0x1019c, 0x101cf,
+ 0x101fe, 0x1027f,
+ 0x1029d, 0x1029f,
+ 0x102d1, 0x102ff,
+ 0x1031f, 0x1031f,
+ 0x10324, 0x1032f,
+ 0x1034b, 0x1037f,
+ 0x1039e, 0x1039e,
+ 0x103c4, 0x103c7,
+ 0x103d6, 0x103ff,
+ 0x1049e, 0x1049f,
+ 0x104aa, 0x107ff,
+ 0x10806, 0x10807,
+ 0x10809, 0x10809,
+ 0x10836, 0x10836,
+ 0x10839, 0x1083b,
+ 0x1083d, 0x1083e,
+ 0x10856, 0x10856,
+ 0x10860, 0x108ff,
+ 0x1091c, 0x1091e,
+ 0x1093a, 0x1093e,
+ 0x10940, 0x109ff,
+ 0x10a04, 0x10a04,
+ 0x10a07, 0x10a0b,
+ 0x10a14, 0x10a14,
+ 0x10a18, 0x10a18,
+ 0x10a34, 0x10a37,
+ 0x10a3b, 0x10a3e,
+ 0x10a48, 0x10a4f,
+ 0x10a59, 0x10a5f,
+ 0x10a80, 0x10aff,
+ 0x10b36, 0x10b38,
+ 0x10b56, 0x10b57,
+ 0x10b73, 0x10b77,
+ 0x10b80, 0x10bff,
+ 0x10c49, 0x10e5f,
+ 0x10e7f, 0x10fff,
+ 0x1104e, 0x11051,
+ 0x11070, 0x1107f,
+ 0x110c2, 0x11fff,
+ 0x1236f, 0x123ff,
+ 0x12463, 0x1246f,
+ 0x12474, 0x12fff,
+ 0x1342f, 0x167ff,
+ 0x16a39, 0x1afff,
+ 0x1b002, 0x1cfff,
+ 0x1d0f6, 0x1d0ff,
+ 0x1d127, 0x1d128,
+ 0x1d1de, 0x1d1ff,
+ 0x1d246, 0x1d2ff,
+ 0x1d357, 0x1d35f,
+ 0x1d372, 0x1d3ff,
+ 0x1d455, 0x1d455,
+ 0x1d49d, 0x1d49d,
+ 0x1d4a0, 0x1d4a1,
+ 0x1d4a3, 0x1d4a4,
+ 0x1d4a7, 0x1d4a8,
+ 0x1d4ad, 0x1d4ad,
+ 0x1d4ba, 0x1d4ba,
+ 0x1d4bc, 0x1d4bc,
+ 0x1d4c4, 0x1d4c4,
+ 0x1d506, 0x1d506,
+ 0x1d50b, 0x1d50c,
+ 0x1d515, 0x1d515,
+ 0x1d51d, 0x1d51d,
+ 0x1d53a, 0x1d53a,
+ 0x1d53f, 0x1d53f,
+ 0x1d545, 0x1d545,
+ 0x1d547, 0x1d549,
+ 0x1d551, 0x1d551,
+ 0x1d6a6, 0x1d6a7,
+ 0x1d7cc, 0x1d7cd,
+ 0x1d800, 0x1efff,
+ 0x1f02c, 0x1f02f,
+ 0x1f094, 0x1f09f,
+ 0x1f0af, 0x1f0b0,
+ 0x1f0bf, 0x1f0c0,
+ 0x1f0d0, 0x1f0d0,
+ 0x1f0e0, 0x1f0ff,
+ 0x1f10b, 0x1f10f,
+ 0x1f12f, 0x1f12f,
+ 0x1f16a, 0x1f16f,
+ 0x1f19b, 0x1f1e5,
+ 0x1f203, 0x1f20f,
+ 0x1f23b, 0x1f23f,
+ 0x1f249, 0x1f24f,
+ 0x1f252, 0x1f2ff,
+ 0x1f321, 0x1f32f,
+ 0x1f336, 0x1f336,
+ 0x1f37d, 0x1f37f,
+ 0x1f394, 0x1f39f,
+ 0x1f3c5, 0x1f3c5,
+ 0x1f3cb, 0x1f3df,
+ 0x1f3f1, 0x1f3ff,
+ 0x1f43f, 0x1f43f,
+ 0x1f441, 0x1f441,
+ 0x1f4f8, 0x1f4f8,
+ 0x1f4fd, 0x1f4ff,
+ 0x1f53e, 0x1f54f,
+ 0x1f568, 0x1f5fa,
+ 0x1f600, 0x1f600,
+ 0x1f611, 0x1f611,
+ 0x1f615, 0x1f615,
+ 0x1f617, 0x1f617,
+ 0x1f619, 0x1f619,
+ 0x1f61b, 0x1f61b,
+ 0x1f61f, 0x1f61f,
+ 0x1f626, 0x1f627,
+ 0x1f62c, 0x1f62c,
+ 0x1f62e, 0x1f62f,
+ 0x1f634, 0x1f634,
+ 0x1f641, 0x1f644,
+ 0x1f650, 0x1f67f,
+ 0x1f6c6, 0x1f6ff,
+ 0x1f774, 0x1ffff,
+ 0x2a6d7, 0x2a6ff,
+ 0x2b735, 0x2b73f,
+ 0x2b81e, 0x2f7ff,
+ 0x2fa1e, 0xe0000,
+ 0xe0002, 0xe001f,
+ 0xe0080, 0xe00ff,
+ 0xe01f0, 0xeffff,
+ 0xffffe, 0xfffff,
+ 0x10fffe, 0x10ffff,
+}; /* CR_Cn */
+
+/* 'Co': General Category */
+static const OnigCodePoint CR_Co[] = {
+ 3,
+ 0xe000, 0xf8ff,
+ 0xf0000, 0xffffd,
+ 0x100000, 0x10fffd,
+}; /* CR_Co */
+
+/* 'Cs': General Category */
+static const OnigCodePoint CR_Cs[] = {
+ 1,
+ 0xd800, 0xdfff,
+}; /* CR_Cs */
+
+/* 'L': Major Category */
+static const OnigCodePoint CR_L[] = {
+ 435,
+ 0x0041, 0x005a,
+ 0x0061, 0x007a,
+ 0x00aa, 0x00aa,
+ 0x00b5, 0x00b5,
+ 0x00ba, 0x00ba,
+ 0x00c0, 0x00d6,
+ 0x00d8, 0x00f6,
+ 0x00f8, 0x02c1,
+ 0x02c6, 0x02d1,
+ 0x02e0, 0x02e4,
+ 0x02ec, 0x02ec,
+ 0x02ee, 0x02ee,
+ 0x0370, 0x0374,
+ 0x0376, 0x0377,
+ 0x037a, 0x037d,
+ 0x0386, 0x0386,
+ 0x0388, 0x038a,
+ 0x038c, 0x038c,
+ 0x038e, 0x03a1,
+ 0x03a3, 0x03f5,
+ 0x03f7, 0x0481,
+ 0x048a, 0x0527,
+ 0x0531, 0x0556,
+ 0x0559, 0x0559,
+ 0x0561, 0x0587,
+ 0x05d0, 0x05ea,
+ 0x05f0, 0x05f2,
+ 0x0620, 0x064a,
+ 0x066e, 0x066f,
+ 0x0671, 0x06d3,
+ 0x06d5, 0x06d5,
+ 0x06e5, 0x06e6,
+ 0x06ee, 0x06ef,
+ 0x06fa, 0x06fc,
+ 0x06ff, 0x06ff,
+ 0x0710, 0x0710,
+ 0x0712, 0x072f,
+ 0x074d, 0x07a5,
+ 0x07b1, 0x07b1,
+ 0x07ca, 0x07ea,
+ 0x07f4, 0x07f5,
+ 0x07fa, 0x07fa,
+ 0x0800, 0x0815,
+ 0x081a, 0x081a,
+ 0x0824, 0x0824,
+ 0x0828, 0x0828,
+ 0x0840, 0x0858,
+ 0x0904, 0x0939,
+ 0x093d, 0x093d,
+ 0x0950, 0x0950,
+ 0x0958, 0x0961,
+ 0x0971, 0x0977,
+ 0x0979, 0x097f,
+ 0x0985, 0x098c,
+ 0x098f, 0x0990,
+ 0x0993, 0x09a8,
+ 0x09aa, 0x09b0,
+ 0x09b2, 0x09b2,
+ 0x09b6, 0x09b9,
+ 0x09bd, 0x09bd,
+ 0x09ce, 0x09ce,
+ 0x09dc, 0x09dd,
+ 0x09df, 0x09e1,
+ 0x09f0, 0x09f1,
+ 0x0a05, 0x0a0a,
+ 0x0a0f, 0x0a10,
+ 0x0a13, 0x0a28,
+ 0x0a2a, 0x0a30,
+ 0x0a32, 0x0a33,
+ 0x0a35, 0x0a36,
+ 0x0a38, 0x0a39,
+ 0x0a59, 0x0a5c,
+ 0x0a5e, 0x0a5e,
+ 0x0a72, 0x0a74,
+ 0x0a85, 0x0a8d,
+ 0x0a8f, 0x0a91,
+ 0x0a93, 0x0aa8,
+ 0x0aaa, 0x0ab0,
+ 0x0ab2, 0x0ab3,
+ 0x0ab5, 0x0ab9,
+ 0x0abd, 0x0abd,
+ 0x0ad0, 0x0ad0,
+ 0x0ae0, 0x0ae1,
+ 0x0b05, 0x0b0c,
+ 0x0b0f, 0x0b10,
+ 0x0b13, 0x0b28,
+ 0x0b2a, 0x0b30,
+ 0x0b32, 0x0b33,
+ 0x0b35, 0x0b39,
+ 0x0b3d, 0x0b3d,
+ 0x0b5c, 0x0b5d,
+ 0x0b5f, 0x0b61,
+ 0x0b71, 0x0b71,
+ 0x0b83, 0x0b83,
+ 0x0b85, 0x0b8a,
+ 0x0b8e, 0x0b90,
+ 0x0b92, 0x0b95,
+ 0x0b99, 0x0b9a,
+ 0x0b9c, 0x0b9c,
+ 0x0b9e, 0x0b9f,
+ 0x0ba3, 0x0ba4,
+ 0x0ba8, 0x0baa,
+ 0x0bae, 0x0bb9,
+ 0x0bd0, 0x0bd0,
+ 0x0c05, 0x0c0c,
+ 0x0c0e, 0x0c10,
+ 0x0c12, 0x0c28,
+ 0x0c2a, 0x0c33,
+ 0x0c35, 0x0c39,
+ 0x0c3d, 0x0c3d,
+ 0x0c58, 0x0c59,
+ 0x0c60, 0x0c61,
+ 0x0c85, 0x0c8c,
+ 0x0c8e, 0x0c90,
+ 0x0c92, 0x0ca8,
+ 0x0caa, 0x0cb3,
+ 0x0cb5, 0x0cb9,
+ 0x0cbd, 0x0cbd,
+ 0x0cde, 0x0cde,
+ 0x0ce0, 0x0ce1,
+ 0x0cf1, 0x0cf2,
+ 0x0d05, 0x0d0c,
+ 0x0d0e, 0x0d10,
+ 0x0d12, 0x0d3a,
+ 0x0d3d, 0x0d3d,
+ 0x0d4e, 0x0d4e,
+ 0x0d60, 0x0d61,
+ 0x0d7a, 0x0d7f,
+ 0x0d85, 0x0d96,
+ 0x0d9a, 0x0db1,
+ 0x0db3, 0x0dbb,
+ 0x0dbd, 0x0dbd,
+ 0x0dc0, 0x0dc6,
+ 0x0e01, 0x0e30,
+ 0x0e32, 0x0e33,
+ 0x0e40, 0x0e46,
+ 0x0e81, 0x0e82,
+ 0x0e84, 0x0e84,
+ 0x0e87, 0x0e88,
+ 0x0e8a, 0x0e8a,
+ 0x0e8d, 0x0e8d,
+ 0x0e94, 0x0e97,
+ 0x0e99, 0x0e9f,
+ 0x0ea1, 0x0ea3,
+ 0x0ea5, 0x0ea5,
+ 0x0ea7, 0x0ea7,
+ 0x0eaa, 0x0eab,
+ 0x0ead, 0x0eb0,
+ 0x0eb2, 0x0eb3,
+ 0x0ebd, 0x0ebd,
+ 0x0ec0, 0x0ec4,
+ 0x0ec6, 0x0ec6,
+ 0x0edc, 0x0edd,
+ 0x0f00, 0x0f00,
+ 0x0f40, 0x0f47,
+ 0x0f49, 0x0f6c,
+ 0x0f88, 0x0f8c,
+ 0x1000, 0x102a,
+ 0x103f, 0x103f,
+ 0x1050, 0x1055,
+ 0x105a, 0x105d,
+ 0x1061, 0x1061,
+ 0x1065, 0x1066,
+ 0x106e, 0x1070,
+ 0x1075, 0x1081,
+ 0x108e, 0x108e,
+ 0x10a0, 0x10c5,
+ 0x10d0, 0x10fa,
+ 0x10fc, 0x10fc,
+ 0x1100, 0x1248,
+ 0x124a, 0x124d,
+ 0x1250, 0x1256,
+ 0x1258, 0x1258,
+ 0x125a, 0x125d,
+ 0x1260, 0x1288,
+ 0x128a, 0x128d,
+ 0x1290, 0x12b0,
+ 0x12b2, 0x12b5,
+ 0x12b8, 0x12be,
+ 0x12c0, 0x12c0,
+ 0x12c2, 0x12c5,
+ 0x12c8, 0x12d6,
+ 0x12d8, 0x1310,
+ 0x1312, 0x1315,
+ 0x1318, 0x135a,
+ 0x1380, 0x138f,
+ 0x13a0, 0x13f4,
+ 0x1401, 0x166c,
+ 0x166f, 0x167f,
+ 0x1681, 0x169a,
+ 0x16a0, 0x16ea,
+ 0x1700, 0x170c,
+ 0x170e, 0x1711,
+ 0x1720, 0x1731,
+ 0x1740, 0x1751,
+ 0x1760, 0x176c,
+ 0x176e, 0x1770,
+ 0x1780, 0x17b3,
+ 0x17d7, 0x17d7,
+ 0x17dc, 0x17dc,
+ 0x1820, 0x1877,
+ 0x1880, 0x18a8,
+ 0x18aa, 0x18aa,
+ 0x18b0, 0x18f5,
+ 0x1900, 0x191c,
+ 0x1950, 0x196d,
+ 0x1970, 0x1974,
+ 0x1980, 0x19ab,
+ 0x19c1, 0x19c7,
+ 0x1a00, 0x1a16,
+ 0x1a20, 0x1a54,
+ 0x1aa7, 0x1aa7,
+ 0x1b05, 0x1b33,
+ 0x1b45, 0x1b4b,
+ 0x1b83, 0x1ba0,
+ 0x1bae, 0x1baf,
+ 0x1bc0, 0x1be5,
+ 0x1c00, 0x1c23,
+ 0x1c4d, 0x1c4f,
+ 0x1c5a, 0x1c7d,
+ 0x1ce9, 0x1cec,
+ 0x1cee, 0x1cf1,
+ 0x1d00, 0x1dbf,
+ 0x1e00, 0x1f15,
+ 0x1f18, 0x1f1d,
+ 0x1f20, 0x1f45,
+ 0x1f48, 0x1f4d,
+ 0x1f50, 0x1f57,
+ 0x1f59, 0x1f59,
+ 0x1f5b, 0x1f5b,
+ 0x1f5d, 0x1f5d,
+ 0x1f5f, 0x1f7d,
+ 0x1f80, 0x1fb4,
+ 0x1fb6, 0x1fbc,
+ 0x1fbe, 0x1fbe,
+ 0x1fc2, 0x1fc4,
+ 0x1fc6, 0x1fcc,
+ 0x1fd0, 0x1fd3,
+ 0x1fd6, 0x1fdb,
+ 0x1fe0, 0x1fec,
+ 0x1ff2, 0x1ff4,
+ 0x1ff6, 0x1ffc,
+ 0x2071, 0x2071,
+ 0x207f, 0x207f,
+ 0x2090, 0x209c,
+ 0x2102, 0x2102,
+ 0x2107, 0x2107,
+ 0x210a, 0x2113,
+ 0x2115, 0x2115,
+ 0x2119, 0x211d,
+ 0x2124, 0x2124,
+ 0x2126, 0x2126,
+ 0x2128, 0x2128,
+ 0x212a, 0x212d,
+ 0x212f, 0x2139,
+ 0x213c, 0x213f,
+ 0x2145, 0x2149,
+ 0x214e, 0x214e,
+ 0x2183, 0x2184,
+ 0x2c00, 0x2c2e,
+ 0x2c30, 0x2c5e,
+ 0x2c60, 0x2ce4,
+ 0x2ceb, 0x2cee,
+ 0x2d00, 0x2d25,
+ 0x2d30, 0x2d65,
+ 0x2d6f, 0x2d6f,
+ 0x2d80, 0x2d96,
+ 0x2da0, 0x2da6,
+ 0x2da8, 0x2dae,
+ 0x2db0, 0x2db6,
+ 0x2db8, 0x2dbe,
+ 0x2dc0, 0x2dc6,
+ 0x2dc8, 0x2dce,
+ 0x2dd0, 0x2dd6,
+ 0x2dd8, 0x2dde,
+ 0x2e2f, 0x2e2f,
+ 0x3005, 0x3006,
+ 0x3031, 0x3035,
+ 0x303b, 0x303c,
+ 0x3041, 0x3096,
+ 0x309d, 0x309f,
+ 0x30a1, 0x30fa,
+ 0x30fc, 0x30ff,
+ 0x3105, 0x312d,
+ 0x3131, 0x318e,
+ 0x31a0, 0x31ba,
+ 0x31f0, 0x31ff,
+ 0x3400, 0x4db5,
+ 0x4e00, 0x9fcb,
+ 0xa000, 0xa48c,
+ 0xa4d0, 0xa4fd,
+ 0xa500, 0xa60c,
+ 0xa610, 0xa61f,
+ 0xa62a, 0xa62b,
+ 0xa640, 0xa66e,
+ 0xa67f, 0xa697,
+ 0xa6a0, 0xa6e5,
+ 0xa717, 0xa71f,
+ 0xa722, 0xa788,
+ 0xa78b, 0xa78e,
+ 0xa790, 0xa791,
+ 0xa7a0, 0xa7a9,
+ 0xa7fa, 0xa801,
+ 0xa803, 0xa805,
+ 0xa807, 0xa80a,
+ 0xa80c, 0xa822,
+ 0xa840, 0xa873,
+ 0xa882, 0xa8b3,
+ 0xa8f2, 0xa8f7,
+ 0xa8fb, 0xa8fb,
+ 0xa90a, 0xa925,
+ 0xa930, 0xa946,
+ 0xa960, 0xa97c,
+ 0xa984, 0xa9b2,
+ 0xa9cf, 0xa9cf,
+ 0xaa00, 0xaa28,
+ 0xaa40, 0xaa42,
+ 0xaa44, 0xaa4b,
+ 0xaa60, 0xaa76,
+ 0xaa7a, 0xaa7a,
+ 0xaa80, 0xaaaf,
+ 0xaab1, 0xaab1,
+ 0xaab5, 0xaab6,
+ 0xaab9, 0xaabd,
+ 0xaac0, 0xaac0,
+ 0xaac2, 0xaac2,
+ 0xaadb, 0xaadd,
+ 0xab01, 0xab06,
+ 0xab09, 0xab0e,
+ 0xab11, 0xab16,
+ 0xab20, 0xab26,
+ 0xab28, 0xab2e,
+ 0xabc0, 0xabe2,
+ 0xac00, 0xd7a3,
+ 0xd7b0, 0xd7c6,
+ 0xd7cb, 0xd7fb,
+ 0xf900, 0xfa2d,
+ 0xfa30, 0xfa6d,
+ 0xfa70, 0xfad9,
+ 0xfb00, 0xfb06,
+ 0xfb13, 0xfb17,
+ 0xfb1d, 0xfb1d,
+ 0xfb1f, 0xfb28,
+ 0xfb2a, 0xfb36,
+ 0xfb38, 0xfb3c,
+ 0xfb3e, 0xfb3e,
+ 0xfb40, 0xfb41,
+ 0xfb43, 0xfb44,
+ 0xfb46, 0xfbb1,
+ 0xfbd3, 0xfd3d,
+ 0xfd50, 0xfd8f,
+ 0xfd92, 0xfdc7,
+ 0xfdf0, 0xfdfb,
+ 0xfe70, 0xfe74,
+ 0xfe76, 0xfefc,
+ 0xff21, 0xff3a,
+ 0xff41, 0xff5a,
+ 0xff66, 0xffbe,
+ 0xffc2, 0xffc7,
+ 0xffca, 0xffcf,
+ 0xffd2, 0xffd7,
+ 0xffda, 0xffdc,
+ 0x10000, 0x1000b,
+ 0x1000d, 0x10026,
+ 0x10028, 0x1003a,
+ 0x1003c, 0x1003d,
+ 0x1003f, 0x1004d,
+ 0x10050, 0x1005d,
+ 0x10080, 0x100fa,
+ 0x10280, 0x1029c,
+ 0x102a0, 0x102d0,
+ 0x10300, 0x1031e,
+ 0x10330, 0x10340,
+ 0x10342, 0x10349,
+ 0x10380, 0x1039d,
+ 0x103a0, 0x103c3,
+ 0x103c8, 0x103cf,
+ 0x10400, 0x1049d,
+ 0x10800, 0x10805,
+ 0x10808, 0x10808,
+ 0x1080a, 0x10835,
+ 0x10837, 0x10838,
+ 0x1083c, 0x1083c,
+ 0x1083f, 0x10855,
+ 0x10900, 0x10915,
+ 0x10920, 0x10939,
+ 0x10a00, 0x10a00,
+ 0x10a10, 0x10a13,
+ 0x10a15, 0x10a17,
+ 0x10a19, 0x10a33,
+ 0x10a60, 0x10a7c,
+ 0x10b00, 0x10b35,
+ 0x10b40, 0x10b55,
+ 0x10b60, 0x10b72,
+ 0x10c00, 0x10c48,
+ 0x11003, 0x11037,
+ 0x11083, 0x110af,
+ 0x12000, 0x1236e,
+ 0x13000, 0x1342e,
+ 0x16800, 0x16a38,
+ 0x1b000, 0x1b001,
+ 0x1d400, 0x1d454,
+ 0x1d456, 0x1d49c,
+ 0x1d49e, 0x1d49f,
+ 0x1d4a2, 0x1d4a2,
+ 0x1d4a5, 0x1d4a6,
+ 0x1d4a9, 0x1d4ac,
+ 0x1d4ae, 0x1d4b9,
+ 0x1d4bb, 0x1d4bb,
+ 0x1d4bd, 0x1d4c3,
+ 0x1d4c5, 0x1d505,
+ 0x1d507, 0x1d50a,
+ 0x1d50d, 0x1d514,
+ 0x1d516, 0x1d51c,
+ 0x1d51e, 0x1d539,
+ 0x1d53b, 0x1d53e,
+ 0x1d540, 0x1d544,
+ 0x1d546, 0x1d546,
+ 0x1d54a, 0x1d550,
+ 0x1d552, 0x1d6a5,
+ 0x1d6a8, 0x1d6c0,
+ 0x1d6c2, 0x1d6da,
+ 0x1d6dc, 0x1d6fa,
+ 0x1d6fc, 0x1d714,
+ 0x1d716, 0x1d734,
+ 0x1d736, 0x1d74e,
+ 0x1d750, 0x1d76e,
+ 0x1d770, 0x1d788,
+ 0x1d78a, 0x1d7a8,
+ 0x1d7aa, 0x1d7c2,
+ 0x1d7c4, 0x1d7cb,
+ 0x20000, 0x2a6d6,
+ 0x2a700, 0x2b734,
+ 0x2b740, 0x2b81d,
+ 0x2f800, 0x2fa1d,
+}; /* CR_L */
+
+/* 'Ll': General Category */
+static const OnigCodePoint CR_Ll[] = {
+ 609,
+ 0x0061, 0x007a,
+ 0x00aa, 0x00aa,
+ 0x00b5, 0x00b5,
+ 0x00ba, 0x00ba,
+ 0x00df, 0x00f6,
+ 0x00f8, 0x00ff,
+ 0x0101, 0x0101,
+ 0x0103, 0x0103,
+ 0x0105, 0x0105,
+ 0x0107, 0x0107,
+ 0x0109, 0x0109,
+ 0x010b, 0x010b,
+ 0x010d, 0x010d,
+ 0x010f, 0x010f,
+ 0x0111, 0x0111,
+ 0x0113, 0x0113,
+ 0x0115, 0x0115,
+ 0x0117, 0x0117,
+ 0x0119, 0x0119,
+ 0x011b, 0x011b,
+ 0x011d, 0x011d,
+ 0x011f, 0x011f,
+ 0x0121, 0x0121,
+ 0x0123, 0x0123,
+ 0x0125, 0x0125,
+ 0x0127, 0x0127,
+ 0x0129, 0x0129,
+ 0x012b, 0x012b,
+ 0x012d, 0x012d,
+ 0x012f, 0x012f,
+ 0x0131, 0x0131,
+ 0x0133, 0x0133,
+ 0x0135, 0x0135,
+ 0x0137, 0x0138,
+ 0x013a, 0x013a,
+ 0x013c, 0x013c,
+ 0x013e, 0x013e,
+ 0x0140, 0x0140,
+ 0x0142, 0x0142,
+ 0x0144, 0x0144,
+ 0x0146, 0x0146,
+ 0x0148, 0x0149,
+ 0x014b, 0x014b,
+ 0x014d, 0x014d,
+ 0x014f, 0x014f,
+ 0x0151, 0x0151,
+ 0x0153, 0x0153,
+ 0x0155, 0x0155,
+ 0x0157, 0x0157,
+ 0x0159, 0x0159,
+ 0x015b, 0x015b,
+ 0x015d, 0x015d,
+ 0x015f, 0x015f,
+ 0x0161, 0x0161,
+ 0x0163, 0x0163,
+ 0x0165, 0x0165,
+ 0x0167, 0x0167,
+ 0x0169, 0x0169,
+ 0x016b, 0x016b,
+ 0x016d, 0x016d,
+ 0x016f, 0x016f,
+ 0x0171, 0x0171,
+ 0x0173, 0x0173,
+ 0x0175, 0x0175,
+ 0x0177, 0x0177,
+ 0x017a, 0x017a,
+ 0x017c, 0x017c,
+ 0x017e, 0x0180,
+ 0x0183, 0x0183,
+ 0x0185, 0x0185,
+ 0x0188, 0x0188,
+ 0x018c, 0x018d,
+ 0x0192, 0x0192,
+ 0x0195, 0x0195,
+ 0x0199, 0x019b,
+ 0x019e, 0x019e,
+ 0x01a1, 0x01a1,
+ 0x01a3, 0x01a3,
+ 0x01a5, 0x01a5,
+ 0x01a8, 0x01a8,
+ 0x01aa, 0x01ab,
+ 0x01ad, 0x01ad,
+ 0x01b0, 0x01b0,
+ 0x01b4, 0x01b4,
+ 0x01b6, 0x01b6,
+ 0x01b9, 0x01ba,
+ 0x01bd, 0x01bf,
+ 0x01c6, 0x01c6,
+ 0x01c9, 0x01c9,
+ 0x01cc, 0x01cc,
+ 0x01ce, 0x01ce,
+ 0x01d0, 0x01d0,
+ 0x01d2, 0x01d2,
+ 0x01d4, 0x01d4,
+ 0x01d6, 0x01d6,
+ 0x01d8, 0x01d8,
+ 0x01da, 0x01da,
+ 0x01dc, 0x01dd,
+ 0x01df, 0x01df,
+ 0x01e1, 0x01e1,
+ 0x01e3, 0x01e3,
+ 0x01e5, 0x01e5,
+ 0x01e7, 0x01e7,
+ 0x01e9, 0x01e9,
+ 0x01eb, 0x01eb,
+ 0x01ed, 0x01ed,
+ 0x01ef, 0x01f0,
+ 0x01f3, 0x01f3,
+ 0x01f5, 0x01f5,
+ 0x01f9, 0x01f9,
+ 0x01fb, 0x01fb,
+ 0x01fd, 0x01fd,
+ 0x01ff, 0x01ff,
+ 0x0201, 0x0201,
+ 0x0203, 0x0203,
+ 0x0205, 0x0205,
+ 0x0207, 0x0207,
+ 0x0209, 0x0209,
+ 0x020b, 0x020b,
+ 0x020d, 0x020d,
+ 0x020f, 0x020f,
+ 0x0211, 0x0211,
+ 0x0213, 0x0213,
+ 0x0215, 0x0215,
+ 0x0217, 0x0217,
+ 0x0219, 0x0219,
+ 0x021b, 0x021b,
+ 0x021d, 0x021d,
+ 0x021f, 0x021f,
+ 0x0221, 0x0221,
+ 0x0223, 0x0223,
+ 0x0225, 0x0225,
+ 0x0227, 0x0227,
+ 0x0229, 0x0229,
+ 0x022b, 0x022b,
+ 0x022d, 0x022d,
+ 0x022f, 0x022f,
+ 0x0231, 0x0231,
+ 0x0233, 0x0239,
+ 0x023c, 0x023c,
+ 0x023f, 0x0240,
+ 0x0242, 0x0242,
+ 0x0247, 0x0247,
+ 0x0249, 0x0249,
+ 0x024b, 0x024b,
+ 0x024d, 0x024d,
+ 0x024f, 0x0293,
+ 0x0295, 0x02af,
+ 0x0371, 0x0371,
+ 0x0373, 0x0373,
+ 0x0377, 0x0377,
+ 0x037b, 0x037d,
+ 0x0390, 0x0390,
+ 0x03ac, 0x03ce,
+ 0x03d0, 0x03d1,
+ 0x03d5, 0x03d7,
+ 0x03d9, 0x03d9,
+ 0x03db, 0x03db,
+ 0x03dd, 0x03dd,
+ 0x03df, 0x03df,
+ 0x03e1, 0x03e1,
+ 0x03e3, 0x03e3,
+ 0x03e5, 0x03e5,
+ 0x03e7, 0x03e7,
+ 0x03e9, 0x03e9,
+ 0x03eb, 0x03eb,
+ 0x03ed, 0x03ed,
+ 0x03ef, 0x03f3,
+ 0x03f5, 0x03f5,
+ 0x03f8, 0x03f8,
+ 0x03fb, 0x03fc,
+ 0x0430, 0x045f,
+ 0x0461, 0x0461,
+ 0x0463, 0x0463,
+ 0x0465, 0x0465,
+ 0x0467, 0x0467,
+ 0x0469, 0x0469,
+ 0x046b, 0x046b,
+ 0x046d, 0x046d,
+ 0x046f, 0x046f,
+ 0x0471, 0x0471,
+ 0x0473, 0x0473,
+ 0x0475, 0x0475,
+ 0x0477, 0x0477,
+ 0x0479, 0x0479,
+ 0x047b, 0x047b,
+ 0x047d, 0x047d,
+ 0x047f, 0x047f,
+ 0x0481, 0x0481,
+ 0x048b, 0x048b,
+ 0x048d, 0x048d,
+ 0x048f, 0x048f,
+ 0x0491, 0x0491,
+ 0x0493, 0x0493,
+ 0x0495, 0x0495,
+ 0x0497, 0x0497,
+ 0x0499, 0x0499,
+ 0x049b, 0x049b,
+ 0x049d, 0x049d,
+ 0x049f, 0x049f,
+ 0x04a1, 0x04a1,
+ 0x04a3, 0x04a3,
+ 0x04a5, 0x04a5,
+ 0x04a7, 0x04a7,
+ 0x04a9, 0x04a9,
+ 0x04ab, 0x04ab,
+ 0x04ad, 0x04ad,
+ 0x04af, 0x04af,
+ 0x04b1, 0x04b1,
+ 0x04b3, 0x04b3,
+ 0x04b5, 0x04b5,
+ 0x04b7, 0x04b7,
+ 0x04b9, 0x04b9,
+ 0x04bb, 0x04bb,
+ 0x04bd, 0x04bd,
+ 0x04bf, 0x04bf,
+ 0x04c2, 0x04c2,
+ 0x04c4, 0x04c4,
+ 0x04c6, 0x04c6,
+ 0x04c8, 0x04c8,
+ 0x04ca, 0x04ca,
+ 0x04cc, 0x04cc,
+ 0x04ce, 0x04cf,
+ 0x04d1, 0x04d1,
+ 0x04d3, 0x04d3,
+ 0x04d5, 0x04d5,
+ 0x04d7, 0x04d7,
+ 0x04d9, 0x04d9,
+ 0x04db, 0x04db,
+ 0x04dd, 0x04dd,
+ 0x04df, 0x04df,
+ 0x04e1, 0x04e1,
+ 0x04e3, 0x04e3,
+ 0x04e5, 0x04e5,
+ 0x04e7, 0x04e7,
+ 0x04e9, 0x04e9,
+ 0x04eb, 0x04eb,
+ 0x04ed, 0x04ed,
+ 0x04ef, 0x04ef,
+ 0x04f1, 0x04f1,
+ 0x04f3, 0x04f3,
+ 0x04f5, 0x04f5,
+ 0x04f7, 0x04f7,
+ 0x04f9, 0x04f9,
+ 0x04fb, 0x04fb,
+ 0x04fd, 0x04fd,
+ 0x04ff, 0x04ff,
+ 0x0501, 0x0501,
+ 0x0503, 0x0503,
+ 0x0505, 0x0505,
+ 0x0507, 0x0507,
+ 0x0509, 0x0509,
+ 0x050b, 0x050b,
+ 0x050d, 0x050d,
+ 0x050f, 0x050f,
+ 0x0511, 0x0511,
+ 0x0513, 0x0513,
+ 0x0515, 0x0515,
+ 0x0517, 0x0517,
+ 0x0519, 0x0519,
+ 0x051b, 0x051b,
+ 0x051d, 0x051d,
+ 0x051f, 0x051f,
+ 0x0521, 0x0521,
+ 0x0523, 0x0523,
+ 0x0525, 0x0525,
+ 0x0527, 0x0527,
+ 0x0561, 0x0587,
+ 0x1d00, 0x1d2b,
+ 0x1d62, 0x1d77,
+ 0x1d79, 0x1d9a,
+ 0x1e01, 0x1e01,
+ 0x1e03, 0x1e03,
+ 0x1e05, 0x1e05,
+ 0x1e07, 0x1e07,
+ 0x1e09, 0x1e09,
+ 0x1e0b, 0x1e0b,
+ 0x1e0d, 0x1e0d,
+ 0x1e0f, 0x1e0f,
+ 0x1e11, 0x1e11,
+ 0x1e13, 0x1e13,
+ 0x1e15, 0x1e15,
+ 0x1e17, 0x1e17,
+ 0x1e19, 0x1e19,
+ 0x1e1b, 0x1e1b,
+ 0x1e1d, 0x1e1d,
+ 0x1e1f, 0x1e1f,
+ 0x1e21, 0x1e21,
+ 0x1e23, 0x1e23,
+ 0x1e25, 0x1e25,
+ 0x1e27, 0x1e27,
+ 0x1e29, 0x1e29,
+ 0x1e2b, 0x1e2b,
+ 0x1e2d, 0x1e2d,
+ 0x1e2f, 0x1e2f,
+ 0x1e31, 0x1e31,
+ 0x1e33, 0x1e33,
+ 0x1e35, 0x1e35,
+ 0x1e37, 0x1e37,
+ 0x1e39, 0x1e39,
+ 0x1e3b, 0x1e3b,
+ 0x1e3d, 0x1e3d,
+ 0x1e3f, 0x1e3f,
+ 0x1e41, 0x1e41,
+ 0x1e43, 0x1e43,
+ 0x1e45, 0x1e45,
+ 0x1e47, 0x1e47,
+ 0x1e49, 0x1e49,
+ 0x1e4b, 0x1e4b,
+ 0x1e4d, 0x1e4d,
+ 0x1e4f, 0x1e4f,
+ 0x1e51, 0x1e51,
+ 0x1e53, 0x1e53,
+ 0x1e55, 0x1e55,
+ 0x1e57, 0x1e57,
+ 0x1e59, 0x1e59,
+ 0x1e5b, 0x1e5b,
+ 0x1e5d, 0x1e5d,
+ 0x1e5f, 0x1e5f,
+ 0x1e61, 0x1e61,
+ 0x1e63, 0x1e63,
+ 0x1e65, 0x1e65,
+ 0x1e67, 0x1e67,
+ 0x1e69, 0x1e69,
+ 0x1e6b, 0x1e6b,
+ 0x1e6d, 0x1e6d,
+ 0x1e6f, 0x1e6f,
+ 0x1e71, 0x1e71,
+ 0x1e73, 0x1e73,
+ 0x1e75, 0x1e75,
+ 0x1e77, 0x1e77,
+ 0x1e79, 0x1e79,
+ 0x1e7b, 0x1e7b,
+ 0x1e7d, 0x1e7d,
+ 0x1e7f, 0x1e7f,
+ 0x1e81, 0x1e81,
+ 0x1e83, 0x1e83,
+ 0x1e85, 0x1e85,
+ 0x1e87, 0x1e87,
+ 0x1e89, 0x1e89,
+ 0x1e8b, 0x1e8b,
+ 0x1e8d, 0x1e8d,
+ 0x1e8f, 0x1e8f,
+ 0x1e91, 0x1e91,
+ 0x1e93, 0x1e93,
+ 0x1e95, 0x1e9d,
+ 0x1e9f, 0x1e9f,
+ 0x1ea1, 0x1ea1,
+ 0x1ea3, 0x1ea3,
+ 0x1ea5, 0x1ea5,
+ 0x1ea7, 0x1ea7,
+ 0x1ea9, 0x1ea9,
+ 0x1eab, 0x1eab,
+ 0x1ead, 0x1ead,
+ 0x1eaf, 0x1eaf,
+ 0x1eb1, 0x1eb1,
+ 0x1eb3, 0x1eb3,
+ 0x1eb5, 0x1eb5,
+ 0x1eb7, 0x1eb7,
+ 0x1eb9, 0x1eb9,
+ 0x1ebb, 0x1ebb,
+ 0x1ebd, 0x1ebd,
+ 0x1ebf, 0x1ebf,
+ 0x1ec1, 0x1ec1,
+ 0x1ec3, 0x1ec3,
+ 0x1ec5, 0x1ec5,
+ 0x1ec7, 0x1ec7,
+ 0x1ec9, 0x1ec9,
+ 0x1ecb, 0x1ecb,
+ 0x1ecd, 0x1ecd,
+ 0x1ecf, 0x1ecf,
+ 0x1ed1, 0x1ed1,
+ 0x1ed3, 0x1ed3,
+ 0x1ed5, 0x1ed5,
+ 0x1ed7, 0x1ed7,
+ 0x1ed9, 0x1ed9,
+ 0x1edb, 0x1edb,
+ 0x1edd, 0x1edd,
+ 0x1edf, 0x1edf,
+ 0x1ee1, 0x1ee1,
+ 0x1ee3, 0x1ee3,
+ 0x1ee5, 0x1ee5,
+ 0x1ee7, 0x1ee7,
+ 0x1ee9, 0x1ee9,
+ 0x1eeb, 0x1eeb,
+ 0x1eed, 0x1eed,
+ 0x1eef, 0x1eef,
+ 0x1ef1, 0x1ef1,
+ 0x1ef3, 0x1ef3,
+ 0x1ef5, 0x1ef5,
+ 0x1ef7, 0x1ef7,
+ 0x1ef9, 0x1ef9,
+ 0x1efb, 0x1efb,
+ 0x1efd, 0x1efd,
+ 0x1eff, 0x1f07,
+ 0x1f10, 0x1f15,
+ 0x1f20, 0x1f27,
+ 0x1f30, 0x1f37,
+ 0x1f40, 0x1f45,
+ 0x1f50, 0x1f57,
+ 0x1f60, 0x1f67,
+ 0x1f70, 0x1f7d,
+ 0x1f80, 0x1f87,
+ 0x1f90, 0x1f97,
+ 0x1fa0, 0x1fa7,
+ 0x1fb0, 0x1fb4,
+ 0x1fb6, 0x1fb7,
+ 0x1fbe, 0x1fbe,
+ 0x1fc2, 0x1fc4,
+ 0x1fc6, 0x1fc7,
+ 0x1fd0, 0x1fd3,
+ 0x1fd6, 0x1fd7,
+ 0x1fe0, 0x1fe7,
+ 0x1ff2, 0x1ff4,
+ 0x1ff6, 0x1ff7,
+ 0x210a, 0x210a,
+ 0x210e, 0x210f,
+ 0x2113, 0x2113,
+ 0x212f, 0x212f,
+ 0x2134, 0x2134,
+ 0x2139, 0x2139,
+ 0x213c, 0x213d,
+ 0x2146, 0x2149,
+ 0x214e, 0x214e,
+ 0x2184, 0x2184,
+ 0x2c30, 0x2c5e,
+ 0x2c61, 0x2c61,
+ 0x2c65, 0x2c66,
+ 0x2c68, 0x2c68,
+ 0x2c6a, 0x2c6a,
+ 0x2c6c, 0x2c6c,
+ 0x2c71, 0x2c71,
+ 0x2c73, 0x2c74,
+ 0x2c76, 0x2c7c,
+ 0x2c81, 0x2c81,
+ 0x2c83, 0x2c83,
+ 0x2c85, 0x2c85,
+ 0x2c87, 0x2c87,
+ 0x2c89, 0x2c89,
+ 0x2c8b, 0x2c8b,
+ 0x2c8d, 0x2c8d,
+ 0x2c8f, 0x2c8f,
+ 0x2c91, 0x2c91,
+ 0x2c93, 0x2c93,
+ 0x2c95, 0x2c95,
+ 0x2c97, 0x2c97,
+ 0x2c99, 0x2c99,
+ 0x2c9b, 0x2c9b,
+ 0x2c9d, 0x2c9d,
+ 0x2c9f, 0x2c9f,
+ 0x2ca1, 0x2ca1,
+ 0x2ca3, 0x2ca3,
+ 0x2ca5, 0x2ca5,
+ 0x2ca7, 0x2ca7,
+ 0x2ca9, 0x2ca9,
+ 0x2cab, 0x2cab,
+ 0x2cad, 0x2cad,
+ 0x2caf, 0x2caf,
+ 0x2cb1, 0x2cb1,
+ 0x2cb3, 0x2cb3,
+ 0x2cb5, 0x2cb5,
+ 0x2cb7, 0x2cb7,
+ 0x2cb9, 0x2cb9,
+ 0x2cbb, 0x2cbb,
+ 0x2cbd, 0x2cbd,
+ 0x2cbf, 0x2cbf,
+ 0x2cc1, 0x2cc1,
+ 0x2cc3, 0x2cc3,
+ 0x2cc5, 0x2cc5,
+ 0x2cc7, 0x2cc7,
+ 0x2cc9, 0x2cc9,
+ 0x2ccb, 0x2ccb,
+ 0x2ccd, 0x2ccd,
+ 0x2ccf, 0x2ccf,
+ 0x2cd1, 0x2cd1,
+ 0x2cd3, 0x2cd3,
+ 0x2cd5, 0x2cd5,
+ 0x2cd7, 0x2cd7,
+ 0x2cd9, 0x2cd9,
+ 0x2cdb, 0x2cdb,
+ 0x2cdd, 0x2cdd,
+ 0x2cdf, 0x2cdf,
+ 0x2ce1, 0x2ce1,
+ 0x2ce3, 0x2ce4,
+ 0x2cec, 0x2cec,
+ 0x2cee, 0x2cee,
+ 0x2d00, 0x2d25,
+ 0xa641, 0xa641,
+ 0xa643, 0xa643,
+ 0xa645, 0xa645,
+ 0xa647, 0xa647,
+ 0xa649, 0xa649,
+ 0xa64b, 0xa64b,
+ 0xa64d, 0xa64d,
+ 0xa64f, 0xa64f,
+ 0xa651, 0xa651,
+ 0xa653, 0xa653,
+ 0xa655, 0xa655,
+ 0xa657, 0xa657,
+ 0xa659, 0xa659,
+ 0xa65b, 0xa65b,
+ 0xa65d, 0xa65d,
+ 0xa65f, 0xa65f,
+ 0xa661, 0xa661,
+ 0xa663, 0xa663,
+ 0xa665, 0xa665,
+ 0xa667, 0xa667,
+ 0xa669, 0xa669,
+ 0xa66b, 0xa66b,
+ 0xa66d, 0xa66d,
+ 0xa681, 0xa681,
+ 0xa683, 0xa683,
+ 0xa685, 0xa685,
+ 0xa687, 0xa687,
+ 0xa689, 0xa689,
+ 0xa68b, 0xa68b,
+ 0xa68d, 0xa68d,
+ 0xa68f, 0xa68f,
+ 0xa691, 0xa691,
+ 0xa693, 0xa693,
+ 0xa695, 0xa695,
+ 0xa697, 0xa697,
+ 0xa723, 0xa723,
+ 0xa725, 0xa725,
+ 0xa727, 0xa727,
+ 0xa729, 0xa729,
+ 0xa72b, 0xa72b,
+ 0xa72d, 0xa72d,
+ 0xa72f, 0xa731,
+ 0xa733, 0xa733,
+ 0xa735, 0xa735,
+ 0xa737, 0xa737,
+ 0xa739, 0xa739,
+ 0xa73b, 0xa73b,
+ 0xa73d, 0xa73d,
+ 0xa73f, 0xa73f,
+ 0xa741, 0xa741,
+ 0xa743, 0xa743,
+ 0xa745, 0xa745,
+ 0xa747, 0xa747,
+ 0xa749, 0xa749,
+ 0xa74b, 0xa74b,
+ 0xa74d, 0xa74d,
+ 0xa74f, 0xa74f,
+ 0xa751, 0xa751,
+ 0xa753, 0xa753,
+ 0xa755, 0xa755,
+ 0xa757, 0xa757,
+ 0xa759, 0xa759,
+ 0xa75b, 0xa75b,
+ 0xa75d, 0xa75d,
+ 0xa75f, 0xa75f,
+ 0xa761, 0xa761,
+ 0xa763, 0xa763,
+ 0xa765, 0xa765,
+ 0xa767, 0xa767,
+ 0xa769, 0xa769,
+ 0xa76b, 0xa76b,
+ 0xa76d, 0xa76d,
+ 0xa76f, 0xa76f,
+ 0xa771, 0xa778,
+ 0xa77a, 0xa77a,
+ 0xa77c, 0xa77c,
+ 0xa77f, 0xa77f,
+ 0xa781, 0xa781,
+ 0xa783, 0xa783,
+ 0xa785, 0xa785,
+ 0xa787, 0xa787,
+ 0xa78c, 0xa78c,
+ 0xa78e, 0xa78e,
+ 0xa791, 0xa791,
+ 0xa7a1, 0xa7a1,
+ 0xa7a3, 0xa7a3,
+ 0xa7a5, 0xa7a5,
+ 0xa7a7, 0xa7a7,
+ 0xa7a9, 0xa7a9,
+ 0xa7fa, 0xa7fa,
+ 0xfb00, 0xfb06,
+ 0xfb13, 0xfb17,
+ 0xff41, 0xff5a,
+ 0x10428, 0x1044f,
+ 0x1d41a, 0x1d433,
+ 0x1d44e, 0x1d454,
+ 0x1d456, 0x1d467,
+ 0x1d482, 0x1d49b,
+ 0x1d4b6, 0x1d4b9,
+ 0x1d4bb, 0x1d4bb,
+ 0x1d4bd, 0x1d4c3,
+ 0x1d4c5, 0x1d4cf,
+ 0x1d4ea, 0x1d503,
+ 0x1d51e, 0x1d537,
+ 0x1d552, 0x1d56b,
+ 0x1d586, 0x1d59f,
+ 0x1d5ba, 0x1d5d3,
+ 0x1d5ee, 0x1d607,
+ 0x1d622, 0x1d63b,
+ 0x1d656, 0x1d66f,
+ 0x1d68a, 0x1d6a5,
+ 0x1d6c2, 0x1d6da,
+ 0x1d6dc, 0x1d6e1,
+ 0x1d6fc, 0x1d714,
+ 0x1d716, 0x1d71b,
+ 0x1d736, 0x1d74e,
+ 0x1d750, 0x1d755,
+ 0x1d770, 0x1d788,
+ 0x1d78a, 0x1d78f,
+ 0x1d7aa, 0x1d7c2,
+ 0x1d7c4, 0x1d7c9,
+ 0x1d7cb, 0x1d7cb,
+}; /* CR_Ll */
+
+/* 'Lm': General Category */
+static const OnigCodePoint CR_Lm[] = {
+ 49,
+ 0x02b0, 0x02c1,
+ 0x02c6, 0x02d1,
+ 0x02e0, 0x02e4,
+ 0x02ec, 0x02ec,
+ 0x02ee, 0x02ee,
+ 0x0374, 0x0374,
+ 0x037a, 0x037a,
+ 0x0559, 0x0559,
+ 0x0640, 0x0640,
+ 0x06e5, 0x06e6,
+ 0x07f4, 0x07f5,
+ 0x07fa, 0x07fa,
+ 0x081a, 0x081a,
+ 0x0824, 0x0824,
+ 0x0828, 0x0828,
+ 0x0971, 0x0971,
+ 0x0e46, 0x0e46,
+ 0x0ec6, 0x0ec6,
+ 0x10fc, 0x10fc,
+ 0x17d7, 0x17d7,
+ 0x1843, 0x1843,
+ 0x1aa7, 0x1aa7,
+ 0x1c78, 0x1c7d,
+ 0x1d2c, 0x1d61,
+ 0x1d78, 0x1d78,
+ 0x1d9b, 0x1dbf,
+ 0x2071, 0x2071,
+ 0x207f, 0x207f,
+ 0x2090, 0x209c,
+ 0x2c7d, 0x2c7d,
+ 0x2d6f, 0x2d6f,
+ 0x2e2f, 0x2e2f,
+ 0x3005, 0x3005,
+ 0x3031, 0x3035,
+ 0x303b, 0x303b,
+ 0x309d, 0x309e,
+ 0x30fc, 0x30fe,
+ 0xa015, 0xa015,
+ 0xa4f8, 0xa4fd,
+ 0xa60c, 0xa60c,
+ 0xa67f, 0xa67f,
+ 0xa717, 0xa71f,
+ 0xa770, 0xa770,
+ 0xa788, 0xa788,
+ 0xa9cf, 0xa9cf,
+ 0xaa70, 0xaa70,
+ 0xaadd, 0xaadd,
+ 0xff70, 0xff70,
+ 0xff9e, 0xff9f,
+}; /* CR_Lm */
+
+/* 'Lo': General Category */
+static const OnigCodePoint CR_Lo[] = {
+ 323,
+ 0x01bb, 0x01bb,
+ 0x01c0, 0x01c3,
+ 0x0294, 0x0294,
+ 0x05d0, 0x05ea,
+ 0x05f0, 0x05f2,
+ 0x0620, 0x063f,
+ 0x0641, 0x064a,
+ 0x066e, 0x066f,
+ 0x0671, 0x06d3,
+ 0x06d5, 0x06d5,
+ 0x06ee, 0x06ef,
+ 0x06fa, 0x06fc,
+ 0x06ff, 0x06ff,
+ 0x0710, 0x0710,
+ 0x0712, 0x072f,
+ 0x074d, 0x07a5,
+ 0x07b1, 0x07b1,
+ 0x07ca, 0x07ea,
+ 0x0800, 0x0815,
+ 0x0840, 0x0858,
+ 0x0904, 0x0939,
+ 0x093d, 0x093d,
+ 0x0950, 0x0950,
+ 0x0958, 0x0961,
+ 0x0972, 0x0977,
+ 0x0979, 0x097f,
+ 0x0985, 0x098c,
+ 0x098f, 0x0990,
+ 0x0993, 0x09a8,
+ 0x09aa, 0x09b0,
+ 0x09b2, 0x09b2,
+ 0x09b6, 0x09b9,
+ 0x09bd, 0x09bd,
+ 0x09ce, 0x09ce,
+ 0x09dc, 0x09dd,
+ 0x09df, 0x09e1,
+ 0x09f0, 0x09f1,
+ 0x0a05, 0x0a0a,
+ 0x0a0f, 0x0a10,
+ 0x0a13, 0x0a28,
+ 0x0a2a, 0x0a30,
+ 0x0a32, 0x0a33,
+ 0x0a35, 0x0a36,
+ 0x0a38, 0x0a39,
+ 0x0a59, 0x0a5c,
+ 0x0a5e, 0x0a5e,
+ 0x0a72, 0x0a74,
+ 0x0a85, 0x0a8d,
+ 0x0a8f, 0x0a91,
+ 0x0a93, 0x0aa8,
+ 0x0aaa, 0x0ab0,
+ 0x0ab2, 0x0ab3,
+ 0x0ab5, 0x0ab9,
+ 0x0abd, 0x0abd,
+ 0x0ad0, 0x0ad0,
+ 0x0ae0, 0x0ae1,
+ 0x0b05, 0x0b0c,
+ 0x0b0f, 0x0b10,
+ 0x0b13, 0x0b28,
+ 0x0b2a, 0x0b30,
+ 0x0b32, 0x0b33,
+ 0x0b35, 0x0b39,
+ 0x0b3d, 0x0b3d,
+ 0x0b5c, 0x0b5d,
+ 0x0b5f, 0x0b61,
+ 0x0b71, 0x0b71,
+ 0x0b83, 0x0b83,
+ 0x0b85, 0x0b8a,
+ 0x0b8e, 0x0b90,
+ 0x0b92, 0x0b95,
+ 0x0b99, 0x0b9a,
+ 0x0b9c, 0x0b9c,
+ 0x0b9e, 0x0b9f,
+ 0x0ba3, 0x0ba4,
+ 0x0ba8, 0x0baa,
+ 0x0bae, 0x0bb9,
+ 0x0bd0, 0x0bd0,
+ 0x0c05, 0x0c0c,
+ 0x0c0e, 0x0c10,
+ 0x0c12, 0x0c28,
+ 0x0c2a, 0x0c33,
+ 0x0c35, 0x0c39,
+ 0x0c3d, 0x0c3d,
+ 0x0c58, 0x0c59,
+ 0x0c60, 0x0c61,
+ 0x0c85, 0x0c8c,
+ 0x0c8e, 0x0c90,
+ 0x0c92, 0x0ca8,
+ 0x0caa, 0x0cb3,
+ 0x0cb5, 0x0cb9,
+ 0x0cbd, 0x0cbd,
+ 0x0cde, 0x0cde,
+ 0x0ce0, 0x0ce1,
+ 0x0cf1, 0x0cf2,
+ 0x0d05, 0x0d0c,
+ 0x0d0e, 0x0d10,
+ 0x0d12, 0x0d3a,
+ 0x0d3d, 0x0d3d,
+ 0x0d4e, 0x0d4e,
+ 0x0d60, 0x0d61,
+ 0x0d7a, 0x0d7f,
+ 0x0d85, 0x0d96,
+ 0x0d9a, 0x0db1,
+ 0x0db3, 0x0dbb,
+ 0x0dbd, 0x0dbd,
+ 0x0dc0, 0x0dc6,
+ 0x0e01, 0x0e30,
+ 0x0e32, 0x0e33,
+ 0x0e40, 0x0e45,
+ 0x0e81, 0x0e82,
+ 0x0e84, 0x0e84,
+ 0x0e87, 0x0e88,
+ 0x0e8a, 0x0e8a,
+ 0x0e8d, 0x0e8d,
+ 0x0e94, 0x0e97,
+ 0x0e99, 0x0e9f,
+ 0x0ea1, 0x0ea3,
+ 0x0ea5, 0x0ea5,
+ 0x0ea7, 0x0ea7,
+ 0x0eaa, 0x0eab,
+ 0x0ead, 0x0eb0,
+ 0x0eb2, 0x0eb3,
+ 0x0ebd, 0x0ebd,
+ 0x0ec0, 0x0ec4,
+ 0x0edc, 0x0edd,
+ 0x0f00, 0x0f00,
+ 0x0f40, 0x0f47,
+ 0x0f49, 0x0f6c,
+ 0x0f88, 0x0f8c,
+ 0x1000, 0x102a,
+ 0x103f, 0x103f,
+ 0x1050, 0x1055,
+ 0x105a, 0x105d,
+ 0x1061, 0x1061,
+ 0x1065, 0x1066,
+ 0x106e, 0x1070,
+ 0x1075, 0x1081,
+ 0x108e, 0x108e,
+ 0x10d0, 0x10fa,
+ 0x1100, 0x1248,
+ 0x124a, 0x124d,
+ 0x1250, 0x1256,
+ 0x1258, 0x1258,
+ 0x125a, 0x125d,
+ 0x1260, 0x1288,
+ 0x128a, 0x128d,
+ 0x1290, 0x12b0,
+ 0x12b2, 0x12b5,
+ 0x12b8, 0x12be,
+ 0x12c0, 0x12c0,
+ 0x12c2, 0x12c5,
+ 0x12c8, 0x12d6,
+ 0x12d8, 0x1310,
+ 0x1312, 0x1315,
+ 0x1318, 0x135a,
+ 0x1380, 0x138f,
+ 0x13a0, 0x13f4,
+ 0x1401, 0x166c,
+ 0x166f, 0x167f,
+ 0x1681, 0x169a,
+ 0x16a0, 0x16ea,
+ 0x1700, 0x170c,
+ 0x170e, 0x1711,
+ 0x1720, 0x1731,
+ 0x1740, 0x1751,
+ 0x1760, 0x176c,
+ 0x176e, 0x1770,
+ 0x1780, 0x17b3,
+ 0x17dc, 0x17dc,
+ 0x1820, 0x1842,
+ 0x1844, 0x1877,
+ 0x1880, 0x18a8,
+ 0x18aa, 0x18aa,
+ 0x18b0, 0x18f5,
+ 0x1900, 0x191c,
+ 0x1950, 0x196d,
+ 0x1970, 0x1974,
+ 0x1980, 0x19ab,
+ 0x19c1, 0x19c7,
+ 0x1a00, 0x1a16,
+ 0x1a20, 0x1a54,
+ 0x1b05, 0x1b33,
+ 0x1b45, 0x1b4b,
+ 0x1b83, 0x1ba0,
+ 0x1bae, 0x1baf,
+ 0x1bc0, 0x1be5,
+ 0x1c00, 0x1c23,
+ 0x1c4d, 0x1c4f,
+ 0x1c5a, 0x1c77,
+ 0x1ce9, 0x1cec,
+ 0x1cee, 0x1cf1,
+ 0x2135, 0x2138,
+ 0x2d30, 0x2d65,
+ 0x2d80, 0x2d96,
+ 0x2da0, 0x2da6,
+ 0x2da8, 0x2dae,
+ 0x2db0, 0x2db6,
+ 0x2db8, 0x2dbe,
+ 0x2dc0, 0x2dc6,
+ 0x2dc8, 0x2dce,
+ 0x2dd0, 0x2dd6,
+ 0x2dd8, 0x2dde,
+ 0x3006, 0x3006,
+ 0x303c, 0x303c,
+ 0x3041, 0x3096,
+ 0x309f, 0x309f,
+ 0x30a1, 0x30fa,
+ 0x30ff, 0x30ff,
+ 0x3105, 0x312d,
+ 0x3131, 0x318e,
+ 0x31a0, 0x31ba,
+ 0x31f0, 0x31ff,
+ 0x3400, 0x4db5,
+ 0x4e00, 0x9fcb,
+ 0xa000, 0xa014,
+ 0xa016, 0xa48c,
+ 0xa4d0, 0xa4f7,
+ 0xa500, 0xa60b,
+ 0xa610, 0xa61f,
+ 0xa62a, 0xa62b,
+ 0xa66e, 0xa66e,
+ 0xa6a0, 0xa6e5,
+ 0xa7fb, 0xa801,
+ 0xa803, 0xa805,
+ 0xa807, 0xa80a,
+ 0xa80c, 0xa822,
+ 0xa840, 0xa873,
+ 0xa882, 0xa8b3,
+ 0xa8f2, 0xa8f7,
+ 0xa8fb, 0xa8fb,
+ 0xa90a, 0xa925,
+ 0xa930, 0xa946,
+ 0xa960, 0xa97c,
+ 0xa984, 0xa9b2,
+ 0xaa00, 0xaa28,
+ 0xaa40, 0xaa42,
+ 0xaa44, 0xaa4b,
+ 0xaa60, 0xaa6f,
+ 0xaa71, 0xaa76,
+ 0xaa7a, 0xaa7a,
+ 0xaa80, 0xaaaf,
+ 0xaab1, 0xaab1,
+ 0xaab5, 0xaab6,
+ 0xaab9, 0xaabd,
+ 0xaac0, 0xaac0,
+ 0xaac2, 0xaac2,
+ 0xaadb, 0xaadc,
+ 0xab01, 0xab06,
+ 0xab09, 0xab0e,
+ 0xab11, 0xab16,
+ 0xab20, 0xab26,
+ 0xab28, 0xab2e,
+ 0xabc0, 0xabe2,
+ 0xac00, 0xd7a3,
+ 0xd7b0, 0xd7c6,
+ 0xd7cb, 0xd7fb,
+ 0xf900, 0xfa2d,
+ 0xfa30, 0xfa6d,
+ 0xfa70, 0xfad9,
+ 0xfb1d, 0xfb1d,
+ 0xfb1f, 0xfb28,
+ 0xfb2a, 0xfb36,
+ 0xfb38, 0xfb3c,
+ 0xfb3e, 0xfb3e,
+ 0xfb40, 0xfb41,
+ 0xfb43, 0xfb44,
+ 0xfb46, 0xfbb1,
+ 0xfbd3, 0xfd3d,
+ 0xfd50, 0xfd8f,
+ 0xfd92, 0xfdc7,
+ 0xfdf0, 0xfdfb,
+ 0xfe70, 0xfe74,
+ 0xfe76, 0xfefc,
+ 0xff66, 0xff6f,
+ 0xff71, 0xff9d,
+ 0xffa0, 0xffbe,
+ 0xffc2, 0xffc7,
+ 0xffca, 0xffcf,
+ 0xffd2, 0xffd7,
+ 0xffda, 0xffdc,
+ 0x10000, 0x1000b,
+ 0x1000d, 0x10026,
+ 0x10028, 0x1003a,
+ 0x1003c, 0x1003d,
+ 0x1003f, 0x1004d,
+ 0x10050, 0x1005d,
+ 0x10080, 0x100fa,
+ 0x10280, 0x1029c,
+ 0x102a0, 0x102d0,
+ 0x10300, 0x1031e,
+ 0x10330, 0x10340,
+ 0x10342, 0x10349,
+ 0x10380, 0x1039d,
+ 0x103a0, 0x103c3,
+ 0x103c8, 0x103cf,
+ 0x10450, 0x1049d,
+ 0x10800, 0x10805,
+ 0x10808, 0x10808,
+ 0x1080a, 0x10835,
+ 0x10837, 0x10838,
+ 0x1083c, 0x1083c,
+ 0x1083f, 0x10855,
+ 0x10900, 0x10915,
+ 0x10920, 0x10939,
+ 0x10a00, 0x10a00,
+ 0x10a10, 0x10a13,
+ 0x10a15, 0x10a17,
+ 0x10a19, 0x10a33,
+ 0x10a60, 0x10a7c,
+ 0x10b00, 0x10b35,
+ 0x10b40, 0x10b55,
+ 0x10b60, 0x10b72,
+ 0x10c00, 0x10c48,
+ 0x11003, 0x11037,
+ 0x11083, 0x110af,
+ 0x12000, 0x1236e,
+ 0x13000, 0x1342e,
+ 0x16800, 0x16a38,
+ 0x1b000, 0x1b001,
+ 0x20000, 0x2a6d6,
+ 0x2a700, 0x2b734,
+ 0x2b740, 0x2b81d,
+ 0x2f800, 0x2fa1d,
+}; /* CR_Lo */
+
+/* 'Lt': General Category */
+static const OnigCodePoint CR_Lt[] = {
+ 10,
+ 0x01c5, 0x01c5,
+ 0x01c8, 0x01c8,
+ 0x01cb, 0x01cb,
+ 0x01f2, 0x01f2,
+ 0x1f88, 0x1f8f,
+ 0x1f98, 0x1f9f,
+ 0x1fa8, 0x1faf,
+ 0x1fbc, 0x1fbc,
+ 0x1fcc, 0x1fcc,
+ 0x1ffc, 0x1ffc,
+}; /* CR_Lt */
+
+/* 'Lu': General Category */
+static const OnigCodePoint CR_Lu[] = {
+ 603,
+ 0x0041, 0x005a,
+ 0x00c0, 0x00d6,
+ 0x00d8, 0x00de,
+ 0x0100, 0x0100,
+ 0x0102, 0x0102,
+ 0x0104, 0x0104,
+ 0x0106, 0x0106,
+ 0x0108, 0x0108,
+ 0x010a, 0x010a,
+ 0x010c, 0x010c,
+ 0x010e, 0x010e,
+ 0x0110, 0x0110,
+ 0x0112, 0x0112,
+ 0x0114, 0x0114,
+ 0x0116, 0x0116,
+ 0x0118, 0x0118,
+ 0x011a, 0x011a,
+ 0x011c, 0x011c,
+ 0x011e, 0x011e,
+ 0x0120, 0x0120,
+ 0x0122, 0x0122,
+ 0x0124, 0x0124,
+ 0x0126, 0x0126,
+ 0x0128, 0x0128,
+ 0x012a, 0x012a,
+ 0x012c, 0x012c,
+ 0x012e, 0x012e,
+ 0x0130, 0x0130,
+ 0x0132, 0x0132,
+ 0x0134, 0x0134,
+ 0x0136, 0x0136,
+ 0x0139, 0x0139,
+ 0x013b, 0x013b,
+ 0x013d, 0x013d,
+ 0x013f, 0x013f,
+ 0x0141, 0x0141,
+ 0x0143, 0x0143,
+ 0x0145, 0x0145,
+ 0x0147, 0x0147,
+ 0x014a, 0x014a,
+ 0x014c, 0x014c,
+ 0x014e, 0x014e,
+ 0x0150, 0x0150,
+ 0x0152, 0x0152,
+ 0x0154, 0x0154,
+ 0x0156, 0x0156,
+ 0x0158, 0x0158,
+ 0x015a, 0x015a,
+ 0x015c, 0x015c,
+ 0x015e, 0x015e,
+ 0x0160, 0x0160,
+ 0x0162, 0x0162,
+ 0x0164, 0x0164,
+ 0x0166, 0x0166,
+ 0x0168, 0x0168,
+ 0x016a, 0x016a,
+ 0x016c, 0x016c,
+ 0x016e, 0x016e,
+ 0x0170, 0x0170,
+ 0x0172, 0x0172,
+ 0x0174, 0x0174,
+ 0x0176, 0x0176,
+ 0x0178, 0x0179,
+ 0x017b, 0x017b,
+ 0x017d, 0x017d,
+ 0x0181, 0x0182,
+ 0x0184, 0x0184,
+ 0x0186, 0x0187,
+ 0x0189, 0x018b,
+ 0x018e, 0x0191,
+ 0x0193, 0x0194,
+ 0x0196, 0x0198,
+ 0x019c, 0x019d,
+ 0x019f, 0x01a0,
+ 0x01a2, 0x01a2,
+ 0x01a4, 0x01a4,
+ 0x01a6, 0x01a7,
+ 0x01a9, 0x01a9,
+ 0x01ac, 0x01ac,
+ 0x01ae, 0x01af,
+ 0x01b1, 0x01b3,
+ 0x01b5, 0x01b5,
+ 0x01b7, 0x01b8,
+ 0x01bc, 0x01bc,
+ 0x01c4, 0x01c4,
+ 0x01c7, 0x01c7,
+ 0x01ca, 0x01ca,
+ 0x01cd, 0x01cd,
+ 0x01cf, 0x01cf,
+ 0x01d1, 0x01d1,
+ 0x01d3, 0x01d3,
+ 0x01d5, 0x01d5,
+ 0x01d7, 0x01d7,
+ 0x01d9, 0x01d9,
+ 0x01db, 0x01db,
+ 0x01de, 0x01de,
+ 0x01e0, 0x01e0,
+ 0x01e2, 0x01e2,
+ 0x01e4, 0x01e4,
+ 0x01e6, 0x01e6,
+ 0x01e8, 0x01e8,
+ 0x01ea, 0x01ea,
+ 0x01ec, 0x01ec,
+ 0x01ee, 0x01ee,
+ 0x01f1, 0x01f1,
+ 0x01f4, 0x01f4,
+ 0x01f6, 0x01f8,
+ 0x01fa, 0x01fa,
+ 0x01fc, 0x01fc,
+ 0x01fe, 0x01fe,
+ 0x0200, 0x0200,
+ 0x0202, 0x0202,
+ 0x0204, 0x0204,
+ 0x0206, 0x0206,
+ 0x0208, 0x0208,
+ 0x020a, 0x020a,
+ 0x020c, 0x020c,
+ 0x020e, 0x020e,
+ 0x0210, 0x0210,
+ 0x0212, 0x0212,
+ 0x0214, 0x0214,
+ 0x0216, 0x0216,
+ 0x0218, 0x0218,
+ 0x021a, 0x021a,
+ 0x021c, 0x021c,
+ 0x021e, 0x021e,
+ 0x0220, 0x0220,
+ 0x0222, 0x0222,
+ 0x0224, 0x0224,
+ 0x0226, 0x0226,
+ 0x0228, 0x0228,
+ 0x022a, 0x022a,
+ 0x022c, 0x022c,
+ 0x022e, 0x022e,
+ 0x0230, 0x0230,
+ 0x0232, 0x0232,
+ 0x023a, 0x023b,
+ 0x023d, 0x023e,
+ 0x0241, 0x0241,
+ 0x0243, 0x0246,
+ 0x0248, 0x0248,
+ 0x024a, 0x024a,
+ 0x024c, 0x024c,
+ 0x024e, 0x024e,
+ 0x0370, 0x0370,
+ 0x0372, 0x0372,
+ 0x0376, 0x0376,
+ 0x0386, 0x0386,
+ 0x0388, 0x038a,
+ 0x038c, 0x038c,
+ 0x038e, 0x038f,
+ 0x0391, 0x03a1,
+ 0x03a3, 0x03ab,
+ 0x03cf, 0x03cf,
+ 0x03d2, 0x03d4,
+ 0x03d8, 0x03d8,
+ 0x03da, 0x03da,
+ 0x03dc, 0x03dc,
+ 0x03de, 0x03de,
+ 0x03e0, 0x03e0,
+ 0x03e2, 0x03e2,
+ 0x03e4, 0x03e4,
+ 0x03e6, 0x03e6,
+ 0x03e8, 0x03e8,
+ 0x03ea, 0x03ea,
+ 0x03ec, 0x03ec,
+ 0x03ee, 0x03ee,
+ 0x03f4, 0x03f4,
+ 0x03f7, 0x03f7,
+ 0x03f9, 0x03fa,
+ 0x03fd, 0x042f,
+ 0x0460, 0x0460,
+ 0x0462, 0x0462,
+ 0x0464, 0x0464,
+ 0x0466, 0x0466,
+ 0x0468, 0x0468,
+ 0x046a, 0x046a,
+ 0x046c, 0x046c,
+ 0x046e, 0x046e,
+ 0x0470, 0x0470,
+ 0x0472, 0x0472,
+ 0x0474, 0x0474,
+ 0x0476, 0x0476,
+ 0x0478, 0x0478,
+ 0x047a, 0x047a,
+ 0x047c, 0x047c,
+ 0x047e, 0x047e,
+ 0x0480, 0x0480,
+ 0x048a, 0x048a,
+ 0x048c, 0x048c,
+ 0x048e, 0x048e,
+ 0x0490, 0x0490,
+ 0x0492, 0x0492,
+ 0x0494, 0x0494,
+ 0x0496, 0x0496,
+ 0x0498, 0x0498,
+ 0x049a, 0x049a,
+ 0x049c, 0x049c,
+ 0x049e, 0x049e,
+ 0x04a0, 0x04a0,
+ 0x04a2, 0x04a2,
+ 0x04a4, 0x04a4,
+ 0x04a6, 0x04a6,
+ 0x04a8, 0x04a8,
+ 0x04aa, 0x04aa,
+ 0x04ac, 0x04ac,
+ 0x04ae, 0x04ae,
+ 0x04b0, 0x04b0,
+ 0x04b2, 0x04b2,
+ 0x04b4, 0x04b4,
+ 0x04b6, 0x04b6,
+ 0x04b8, 0x04b8,
+ 0x04ba, 0x04ba,
+ 0x04bc, 0x04bc,
+ 0x04be, 0x04be,
+ 0x04c0, 0x04c1,
+ 0x04c3, 0x04c3,
+ 0x04c5, 0x04c5,
+ 0x04c7, 0x04c7,
+ 0x04c9, 0x04c9,
+ 0x04cb, 0x04cb,
+ 0x04cd, 0x04cd,
+ 0x04d0, 0x04d0,
+ 0x04d2, 0x04d2,
+ 0x04d4, 0x04d4,
+ 0x04d6, 0x04d6,
+ 0x04d8, 0x04d8,
+ 0x04da, 0x04da,
+ 0x04dc, 0x04dc,
+ 0x04de, 0x04de,
+ 0x04e0, 0x04e0,
+ 0x04e2, 0x04e2,
+ 0x04e4, 0x04e4,
+ 0x04e6, 0x04e6,
+ 0x04e8, 0x04e8,
+ 0x04ea, 0x04ea,
+ 0x04ec, 0x04ec,
+ 0x04ee, 0x04ee,
+ 0x04f0, 0x04f0,
+ 0x04f2, 0x04f2,
+ 0x04f4, 0x04f4,
+ 0x04f6, 0x04f6,
+ 0x04f8, 0x04f8,
+ 0x04fa, 0x04fa,
+ 0x04fc, 0x04fc,
+ 0x04fe, 0x04fe,
+ 0x0500, 0x0500,
+ 0x0502, 0x0502,
+ 0x0504, 0x0504,
+ 0x0506, 0x0506,
+ 0x0508, 0x0508,
+ 0x050a, 0x050a,
+ 0x050c, 0x050c,
+ 0x050e, 0x050e,
+ 0x0510, 0x0510,
+ 0x0512, 0x0512,
+ 0x0514, 0x0514,
+ 0x0516, 0x0516,
+ 0x0518, 0x0518,
+ 0x051a, 0x051a,
+ 0x051c, 0x051c,
+ 0x051e, 0x051e,
+ 0x0520, 0x0520,
+ 0x0522, 0x0522,
+ 0x0524, 0x0524,
+ 0x0526, 0x0526,
+ 0x0531, 0x0556,
+ 0x10a0, 0x10c5,
+ 0x1e00, 0x1e00,
+ 0x1e02, 0x1e02,
+ 0x1e04, 0x1e04,
+ 0x1e06, 0x1e06,
+ 0x1e08, 0x1e08,
+ 0x1e0a, 0x1e0a,
+ 0x1e0c, 0x1e0c,
+ 0x1e0e, 0x1e0e,
+ 0x1e10, 0x1e10,
+ 0x1e12, 0x1e12,
+ 0x1e14, 0x1e14,
+ 0x1e16, 0x1e16,
+ 0x1e18, 0x1e18,
+ 0x1e1a, 0x1e1a,
+ 0x1e1c, 0x1e1c,
+ 0x1e1e, 0x1e1e,
+ 0x1e20, 0x1e20,
+ 0x1e22, 0x1e22,
+ 0x1e24, 0x1e24,
+ 0x1e26, 0x1e26,
+ 0x1e28, 0x1e28,
+ 0x1e2a, 0x1e2a,
+ 0x1e2c, 0x1e2c,
+ 0x1e2e, 0x1e2e,
+ 0x1e30, 0x1e30,
+ 0x1e32, 0x1e32,
+ 0x1e34, 0x1e34,
+ 0x1e36, 0x1e36,
+ 0x1e38, 0x1e38,
+ 0x1e3a, 0x1e3a,
+ 0x1e3c, 0x1e3c,
+ 0x1e3e, 0x1e3e,
+ 0x1e40, 0x1e40,
+ 0x1e42, 0x1e42,
+ 0x1e44, 0x1e44,
+ 0x1e46, 0x1e46,
+ 0x1e48, 0x1e48,
+ 0x1e4a, 0x1e4a,
+ 0x1e4c, 0x1e4c,
+ 0x1e4e, 0x1e4e,
+ 0x1e50, 0x1e50,
+ 0x1e52, 0x1e52,
+ 0x1e54, 0x1e54,
+ 0x1e56, 0x1e56,
+ 0x1e58, 0x1e58,
+ 0x1e5a, 0x1e5a,
+ 0x1e5c, 0x1e5c,
+ 0x1e5e, 0x1e5e,
+ 0x1e60, 0x1e60,
+ 0x1e62, 0x1e62,
+ 0x1e64, 0x1e64,
+ 0x1e66, 0x1e66,
+ 0x1e68, 0x1e68,
+ 0x1e6a, 0x1e6a,
+ 0x1e6c, 0x1e6c,
+ 0x1e6e, 0x1e6e,
+ 0x1e70, 0x1e70,
+ 0x1e72, 0x1e72,
+ 0x1e74, 0x1e74,
+ 0x1e76, 0x1e76,
+ 0x1e78, 0x1e78,
+ 0x1e7a, 0x1e7a,
+ 0x1e7c, 0x1e7c,
+ 0x1e7e, 0x1e7e,
+ 0x1e80, 0x1e80,
+ 0x1e82, 0x1e82,
+ 0x1e84, 0x1e84,
+ 0x1e86, 0x1e86,
+ 0x1e88, 0x1e88,
+ 0x1e8a, 0x1e8a,
+ 0x1e8c, 0x1e8c,
+ 0x1e8e, 0x1e8e,
+ 0x1e90, 0x1e90,
+ 0x1e92, 0x1e92,
+ 0x1e94, 0x1e94,
+ 0x1e9e, 0x1e9e,
+ 0x1ea0, 0x1ea0,
+ 0x1ea2, 0x1ea2,
+ 0x1ea4, 0x1ea4,
+ 0x1ea6, 0x1ea6,
+ 0x1ea8, 0x1ea8,
+ 0x1eaa, 0x1eaa,
+ 0x1eac, 0x1eac,
+ 0x1eae, 0x1eae,
+ 0x1eb0, 0x1eb0,
+ 0x1eb2, 0x1eb2,
+ 0x1eb4, 0x1eb4,
+ 0x1eb6, 0x1eb6,
+ 0x1eb8, 0x1eb8,
+ 0x1eba, 0x1eba,
+ 0x1ebc, 0x1ebc,
+ 0x1ebe, 0x1ebe,
+ 0x1ec0, 0x1ec0,
+ 0x1ec2, 0x1ec2,
+ 0x1ec4, 0x1ec4,
+ 0x1ec6, 0x1ec6,
+ 0x1ec8, 0x1ec8,
+ 0x1eca, 0x1eca,
+ 0x1ecc, 0x1ecc,
+ 0x1ece, 0x1ece,
+ 0x1ed0, 0x1ed0,
+ 0x1ed2, 0x1ed2,
+ 0x1ed4, 0x1ed4,
+ 0x1ed6, 0x1ed6,
+ 0x1ed8, 0x1ed8,
+ 0x1eda, 0x1eda,
+ 0x1edc, 0x1edc,
+ 0x1ede, 0x1ede,
+ 0x1ee0, 0x1ee0,
+ 0x1ee2, 0x1ee2,
+ 0x1ee4, 0x1ee4,
+ 0x1ee6, 0x1ee6,
+ 0x1ee8, 0x1ee8,
+ 0x1eea, 0x1eea,
+ 0x1eec, 0x1eec,
+ 0x1eee, 0x1eee,
+ 0x1ef0, 0x1ef0,
+ 0x1ef2, 0x1ef2,
+ 0x1ef4, 0x1ef4,
+ 0x1ef6, 0x1ef6,
+ 0x1ef8, 0x1ef8,
+ 0x1efa, 0x1efa,
+ 0x1efc, 0x1efc,
+ 0x1efe, 0x1efe,
+ 0x1f08, 0x1f0f,
+ 0x1f18, 0x1f1d,
+ 0x1f28, 0x1f2f,
+ 0x1f38, 0x1f3f,
+ 0x1f48, 0x1f4d,
+ 0x1f59, 0x1f59,
+ 0x1f5b, 0x1f5b,
+ 0x1f5d, 0x1f5d,
+ 0x1f5f, 0x1f5f,
+ 0x1f68, 0x1f6f,
+ 0x1fb8, 0x1fbb,
+ 0x1fc8, 0x1fcb,
+ 0x1fd8, 0x1fdb,
+ 0x1fe8, 0x1fec,
+ 0x1ff8, 0x1ffb,
+ 0x2102, 0x2102,
+ 0x2107, 0x2107,
+ 0x210b, 0x210d,
+ 0x2110, 0x2112,
+ 0x2115, 0x2115,
+ 0x2119, 0x211d,
+ 0x2124, 0x2124,
+ 0x2126, 0x2126,
+ 0x2128, 0x2128,
+ 0x212a, 0x212d,
+ 0x2130, 0x2133,
+ 0x213e, 0x213f,
+ 0x2145, 0x2145,
+ 0x2183, 0x2183,
+ 0x2c00, 0x2c2e,
+ 0x2c60, 0x2c60,
+ 0x2c62, 0x2c64,
+ 0x2c67, 0x2c67,
+ 0x2c69, 0x2c69,
+ 0x2c6b, 0x2c6b,
+ 0x2c6d, 0x2c70,
+ 0x2c72, 0x2c72,
+ 0x2c75, 0x2c75,
+ 0x2c7e, 0x2c80,
+ 0x2c82, 0x2c82,
+ 0x2c84, 0x2c84,
+ 0x2c86, 0x2c86,
+ 0x2c88, 0x2c88,
+ 0x2c8a, 0x2c8a,
+ 0x2c8c, 0x2c8c,
+ 0x2c8e, 0x2c8e,
+ 0x2c90, 0x2c90,
+ 0x2c92, 0x2c92,
+ 0x2c94, 0x2c94,
+ 0x2c96, 0x2c96,
+ 0x2c98, 0x2c98,
+ 0x2c9a, 0x2c9a,
+ 0x2c9c, 0x2c9c,
+ 0x2c9e, 0x2c9e,
+ 0x2ca0, 0x2ca0,
+ 0x2ca2, 0x2ca2,
+ 0x2ca4, 0x2ca4,
+ 0x2ca6, 0x2ca6,
+ 0x2ca8, 0x2ca8,
+ 0x2caa, 0x2caa,
+ 0x2cac, 0x2cac,
+ 0x2cae, 0x2cae,
+ 0x2cb0, 0x2cb0,
+ 0x2cb2, 0x2cb2,
+ 0x2cb4, 0x2cb4,
+ 0x2cb6, 0x2cb6,
+ 0x2cb8, 0x2cb8,
+ 0x2cba, 0x2cba,
+ 0x2cbc, 0x2cbc,
+ 0x2cbe, 0x2cbe,
+ 0x2cc0, 0x2cc0,
+ 0x2cc2, 0x2cc2,
+ 0x2cc4, 0x2cc4,
+ 0x2cc6, 0x2cc6,
+ 0x2cc8, 0x2cc8,
+ 0x2cca, 0x2cca,
+ 0x2ccc, 0x2ccc,
+ 0x2cce, 0x2cce,
+ 0x2cd0, 0x2cd0,
+ 0x2cd2, 0x2cd2,
+ 0x2cd4, 0x2cd4,
+ 0x2cd6, 0x2cd6,
+ 0x2cd8, 0x2cd8,
+ 0x2cda, 0x2cda,
+ 0x2cdc, 0x2cdc,
+ 0x2cde, 0x2cde,
+ 0x2ce0, 0x2ce0,
+ 0x2ce2, 0x2ce2,
+ 0x2ceb, 0x2ceb,
+ 0x2ced, 0x2ced,
+ 0xa640, 0xa640,
+ 0xa642, 0xa642,
+ 0xa644, 0xa644,
+ 0xa646, 0xa646,
+ 0xa648, 0xa648,
+ 0xa64a, 0xa64a,
+ 0xa64c, 0xa64c,
+ 0xa64e, 0xa64e,
+ 0xa650, 0xa650,
+ 0xa652, 0xa652,
+ 0xa654, 0xa654,
+ 0xa656, 0xa656,
+ 0xa658, 0xa658,
+ 0xa65a, 0xa65a,
+ 0xa65c, 0xa65c,
+ 0xa65e, 0xa65e,
+ 0xa660, 0xa660,
+ 0xa662, 0xa662,
+ 0xa664, 0xa664,
+ 0xa666, 0xa666,
+ 0xa668, 0xa668,
+ 0xa66a, 0xa66a,
+ 0xa66c, 0xa66c,
+ 0xa680, 0xa680,
+ 0xa682, 0xa682,
+ 0xa684, 0xa684,
+ 0xa686, 0xa686,
+ 0xa688, 0xa688,
+ 0xa68a, 0xa68a,
+ 0xa68c, 0xa68c,
+ 0xa68e, 0xa68e,
+ 0xa690, 0xa690,
+ 0xa692, 0xa692,
+ 0xa694, 0xa694,
+ 0xa696, 0xa696,
+ 0xa722, 0xa722,
+ 0xa724, 0xa724,
+ 0xa726, 0xa726,
+ 0xa728, 0xa728,
+ 0xa72a, 0xa72a,
+ 0xa72c, 0xa72c,
+ 0xa72e, 0xa72e,
+ 0xa732, 0xa732,
+ 0xa734, 0xa734,
+ 0xa736, 0xa736,
+ 0xa738, 0xa738,
+ 0xa73a, 0xa73a,
+ 0xa73c, 0xa73c,
+ 0xa73e, 0xa73e,
+ 0xa740, 0xa740,
+ 0xa742, 0xa742,
+ 0xa744, 0xa744,
+ 0xa746, 0xa746,
+ 0xa748, 0xa748,
+ 0xa74a, 0xa74a,
+ 0xa74c, 0xa74c,
+ 0xa74e, 0xa74e,
+ 0xa750, 0xa750,
+ 0xa752, 0xa752,
+ 0xa754, 0xa754,
+ 0xa756, 0xa756,
+ 0xa758, 0xa758,
+ 0xa75a, 0xa75a,
+ 0xa75c, 0xa75c,
+ 0xa75e, 0xa75e,
+ 0xa760, 0xa760,
+ 0xa762, 0xa762,
+ 0xa764, 0xa764,
+ 0xa766, 0xa766,
+ 0xa768, 0xa768,
+ 0xa76a, 0xa76a,
+ 0xa76c, 0xa76c,
+ 0xa76e, 0xa76e,
+ 0xa779, 0xa779,
+ 0xa77b, 0xa77b,
+ 0xa77d, 0xa77e,
+ 0xa780, 0xa780,
+ 0xa782, 0xa782,
+ 0xa784, 0xa784,
+ 0xa786, 0xa786,
+ 0xa78b, 0xa78b,
+ 0xa78d, 0xa78d,
+ 0xa790, 0xa790,
+ 0xa7a0, 0xa7a0,
+ 0xa7a2, 0xa7a2,
+ 0xa7a4, 0xa7a4,
+ 0xa7a6, 0xa7a6,
+ 0xa7a8, 0xa7a8,
+ 0xff21, 0xff3a,
+ 0x10400, 0x10427,
+ 0x1d400, 0x1d419,
+ 0x1d434, 0x1d44d,
+ 0x1d468, 0x1d481,
+ 0x1d49c, 0x1d49c,
+ 0x1d49e, 0x1d49f,
+ 0x1d4a2, 0x1d4a2,
+ 0x1d4a5, 0x1d4a6,
+ 0x1d4a9, 0x1d4ac,
+ 0x1d4ae, 0x1d4b5,
+ 0x1d4d0, 0x1d4e9,
+ 0x1d504, 0x1d505,
+ 0x1d507, 0x1d50a,
+ 0x1d50d, 0x1d514,
+ 0x1d516, 0x1d51c,
+ 0x1d538, 0x1d539,
+ 0x1d53b, 0x1d53e,
+ 0x1d540, 0x1d544,
+ 0x1d546, 0x1d546,
+ 0x1d54a, 0x1d550,
+ 0x1d56c, 0x1d585,
+ 0x1d5a0, 0x1d5b9,
+ 0x1d5d4, 0x1d5ed,
+ 0x1d608, 0x1d621,
+ 0x1d63c, 0x1d655,
+ 0x1d670, 0x1d689,
+ 0x1d6a8, 0x1d6c0,
+ 0x1d6e2, 0x1d6fa,
+ 0x1d71c, 0x1d734,
+ 0x1d756, 0x1d76e,
+ 0x1d790, 0x1d7a8,
+ 0x1d7ca, 0x1d7ca,
+}; /* CR_Lu */
+
+/* 'M': Major Category */
+static const OnigCodePoint CR_M[] = {
+ 193,
+ 0x0300, 0x036f,
+ 0x0483, 0x0489,
+ 0x0591, 0x05bd,
+ 0x05bf, 0x05bf,
+ 0x05c1, 0x05c2,
+ 0x05c4, 0x05c5,
+ 0x05c7, 0x05c7,
+ 0x0610, 0x061a,
+ 0x064b, 0x065f,
+ 0x0670, 0x0670,
+ 0x06d6, 0x06dc,
+ 0x06df, 0x06e4,
+ 0x06e7, 0x06e8,
+ 0x06ea, 0x06ed,
+ 0x0711, 0x0711,
+ 0x0730, 0x074a,
+ 0x07a6, 0x07b0,
+ 0x07eb, 0x07f3,
+ 0x0816, 0x0819,
+ 0x081b, 0x0823,
+ 0x0825, 0x0827,
+ 0x0829, 0x082d,
+ 0x0859, 0x085b,
+ 0x0900, 0x0903,
+ 0x093a, 0x093c,
+ 0x093e, 0x094f,
+ 0x0951, 0x0957,
+ 0x0962, 0x0963,
+ 0x0981, 0x0983,
+ 0x09bc, 0x09bc,
+ 0x09be, 0x09c4,
+ 0x09c7, 0x09c8,
+ 0x09cb, 0x09cd,
+ 0x09d7, 0x09d7,
+ 0x09e2, 0x09e3,
+ 0x0a01, 0x0a03,
+ 0x0a3c, 0x0a3c,
+ 0x0a3e, 0x0a42,
+ 0x0a47, 0x0a48,
+ 0x0a4b, 0x0a4d,
+ 0x0a51, 0x0a51,
+ 0x0a70, 0x0a71,
+ 0x0a75, 0x0a75,
+ 0x0a81, 0x0a83,
+ 0x0abc, 0x0abc,
+ 0x0abe, 0x0ac5,
+ 0x0ac7, 0x0ac9,
+ 0x0acb, 0x0acd,
+ 0x0ae2, 0x0ae3,
+ 0x0b01, 0x0b03,
+ 0x0b3c, 0x0b3c,
+ 0x0b3e, 0x0b44,
+ 0x0b47, 0x0b48,
+ 0x0b4b, 0x0b4d,
+ 0x0b56, 0x0b57,
+ 0x0b62, 0x0b63,
+ 0x0b82, 0x0b82,
+ 0x0bbe, 0x0bc2,
+ 0x0bc6, 0x0bc8,
+ 0x0bca, 0x0bcd,
+ 0x0bd7, 0x0bd7,
+ 0x0c01, 0x0c03,
+ 0x0c3e, 0x0c44,
+ 0x0c46, 0x0c48,
+ 0x0c4a, 0x0c4d,
+ 0x0c55, 0x0c56,
+ 0x0c62, 0x0c63,
+ 0x0c82, 0x0c83,
+ 0x0cbc, 0x0cbc,
+ 0x0cbe, 0x0cc4,
+ 0x0cc6, 0x0cc8,
+ 0x0cca, 0x0ccd,
+ 0x0cd5, 0x0cd6,
+ 0x0ce2, 0x0ce3,
+ 0x0d02, 0x0d03,
+ 0x0d3e, 0x0d44,
+ 0x0d46, 0x0d48,
+ 0x0d4a, 0x0d4d,
+ 0x0d57, 0x0d57,
+ 0x0d62, 0x0d63,
+ 0x0d82, 0x0d83,
+ 0x0dca, 0x0dca,
+ 0x0dcf, 0x0dd4,
+ 0x0dd6, 0x0dd6,
+ 0x0dd8, 0x0ddf,
+ 0x0df2, 0x0df3,
+ 0x0e31, 0x0e31,
+ 0x0e34, 0x0e3a,
+ 0x0e47, 0x0e4e,
+ 0x0eb1, 0x0eb1,
+ 0x0eb4, 0x0eb9,
+ 0x0ebb, 0x0ebc,
+ 0x0ec8, 0x0ecd,
+ 0x0f18, 0x0f19,
+ 0x0f35, 0x0f35,
+ 0x0f37, 0x0f37,
+ 0x0f39, 0x0f39,
+ 0x0f3e, 0x0f3f,
+ 0x0f71, 0x0f84,
+ 0x0f86, 0x0f87,
+ 0x0f8d, 0x0f97,
+ 0x0f99, 0x0fbc,
+ 0x0fc6, 0x0fc6,
+ 0x102b, 0x103e,
+ 0x1056, 0x1059,
+ 0x105e, 0x1060,
+ 0x1062, 0x1064,
+ 0x1067, 0x106d,
+ 0x1071, 0x1074,
+ 0x1082, 0x108d,
+ 0x108f, 0x108f,
+ 0x109a, 0x109d,
+ 0x135d, 0x135f,
+ 0x1712, 0x1714,
+ 0x1732, 0x1734,
+ 0x1752, 0x1753,
+ 0x1772, 0x1773,
+ 0x17b6, 0x17d3,
+ 0x17dd, 0x17dd,
+ 0x180b, 0x180d,
+ 0x18a9, 0x18a9,
+ 0x1920, 0x192b,
+ 0x1930, 0x193b,
+ 0x19b0, 0x19c0,
+ 0x19c8, 0x19c9,
+ 0x1a17, 0x1a1b,
+ 0x1a55, 0x1a5e,
+ 0x1a60, 0x1a7c,
+ 0x1a7f, 0x1a7f,
+ 0x1b00, 0x1b04,
+ 0x1b34, 0x1b44,
+ 0x1b6b, 0x1b73,
+ 0x1b80, 0x1b82,
+ 0x1ba1, 0x1baa,
+ 0x1be6, 0x1bf3,
+ 0x1c24, 0x1c37,
+ 0x1cd0, 0x1cd2,
+ 0x1cd4, 0x1ce8,
+ 0x1ced, 0x1ced,
+ 0x1cf2, 0x1cf2,
+ 0x1dc0, 0x1de6,
+ 0x1dfc, 0x1dff,
+ 0x20d0, 0x20f0,
+ 0x2cef, 0x2cf1,
+ 0x2d7f, 0x2d7f,
+ 0x2de0, 0x2dff,
+ 0x302a, 0x302f,
+ 0x3099, 0x309a,
+ 0xa66f, 0xa672,
+ 0xa67c, 0xa67d,
+ 0xa6f0, 0xa6f1,
+ 0xa802, 0xa802,
+ 0xa806, 0xa806,
+ 0xa80b, 0xa80b,
+ 0xa823, 0xa827,
+ 0xa880, 0xa881,
+ 0xa8b4, 0xa8c4,
+ 0xa8e0, 0xa8f1,
+ 0xa926, 0xa92d,
+ 0xa947, 0xa953,
+ 0xa980, 0xa983,
+ 0xa9b3, 0xa9c0,
+ 0xaa29, 0xaa36,
+ 0xaa43, 0xaa43,
+ 0xaa4c, 0xaa4d,
+ 0xaa7b, 0xaa7b,
+ 0xaab0, 0xaab0,
+ 0xaab2, 0xaab4,
+ 0xaab7, 0xaab8,
+ 0xaabe, 0xaabf,
+ 0xaac1, 0xaac1,
+ 0xabe3, 0xabea,
+ 0xabec, 0xabed,
+ 0xfb1e, 0xfb1e,
+ 0xfe00, 0xfe0f,
+ 0xfe20, 0xfe26,
+ 0x101fd, 0x101fd,
+ 0x10a01, 0x10a03,
+ 0x10a05, 0x10a06,
+ 0x10a0c, 0x10a0f,
+ 0x10a38, 0x10a3a,
+ 0x10a3f, 0x10a3f,
+ 0x11000, 0x11002,
+ 0x11038, 0x11046,
+ 0x11080, 0x11082,
+ 0x110b0, 0x110ba,
+ 0x1d165, 0x1d169,
+ 0x1d16d, 0x1d172,
+ 0x1d17b, 0x1d182,
+ 0x1d185, 0x1d18b,
+ 0x1d1aa, 0x1d1ad,
+ 0x1d242, 0x1d244,
+ 0xe0100, 0xe01ef,
+}; /* CR_M */
+
+/* 'Mc': General Category */
+static const OnigCodePoint CR_Mc[] = {
+ 113,
+ 0x0903, 0x0903,
+ 0x093b, 0x093b,
+ 0x093e, 0x0940,
+ 0x0949, 0x094c,
+ 0x094e, 0x094f,
+ 0x0982, 0x0983,
+ 0x09be, 0x09c0,
+ 0x09c7, 0x09c8,
+ 0x09cb, 0x09cc,
+ 0x09d7, 0x09d7,
+ 0x0a03, 0x0a03,
+ 0x0a3e, 0x0a40,
+ 0x0a83, 0x0a83,
+ 0x0abe, 0x0ac0,
+ 0x0ac9, 0x0ac9,
+ 0x0acb, 0x0acc,
+ 0x0b02, 0x0b03,
+ 0x0b3e, 0x0b3e,
+ 0x0b40, 0x0b40,
+ 0x0b47, 0x0b48,
+ 0x0b4b, 0x0b4c,
+ 0x0b57, 0x0b57,
+ 0x0bbe, 0x0bbf,
+ 0x0bc1, 0x0bc2,
+ 0x0bc6, 0x0bc8,
+ 0x0bca, 0x0bcc,
+ 0x0bd7, 0x0bd7,
+ 0x0c01, 0x0c03,
+ 0x0c41, 0x0c44,
+ 0x0c82, 0x0c83,
+ 0x0cbe, 0x0cbe,
+ 0x0cc0, 0x0cc4,
+ 0x0cc7, 0x0cc8,
+ 0x0cca, 0x0ccb,
+ 0x0cd5, 0x0cd6,
+ 0x0d02, 0x0d03,
+ 0x0d3e, 0x0d40,
+ 0x0d46, 0x0d48,
+ 0x0d4a, 0x0d4c,
+ 0x0d57, 0x0d57,
+ 0x0d82, 0x0d83,
+ 0x0dcf, 0x0dd1,
+ 0x0dd8, 0x0ddf,
+ 0x0df2, 0x0df3,
+ 0x0f3e, 0x0f3f,
+ 0x0f7f, 0x0f7f,
+ 0x102b, 0x102c,
+ 0x1031, 0x1031,
+ 0x1038, 0x1038,
+ 0x103b, 0x103c,
+ 0x1056, 0x1057,
+ 0x1062, 0x1064,
+ 0x1067, 0x106d,
+ 0x1083, 0x1084,
+ 0x1087, 0x108c,
+ 0x108f, 0x108f,
+ 0x109a, 0x109c,
+ 0x17b6, 0x17b6,
+ 0x17be, 0x17c5,
+ 0x17c7, 0x17c8,
+ 0x1923, 0x1926,
+ 0x1929, 0x192b,
+ 0x1930, 0x1931,
+ 0x1933, 0x1938,
+ 0x19b0, 0x19c0,
+ 0x19c8, 0x19c9,
+ 0x1a19, 0x1a1b,
+ 0x1a55, 0x1a55,
+ 0x1a57, 0x1a57,
+ 0x1a61, 0x1a61,
+ 0x1a63, 0x1a64,
+ 0x1a6d, 0x1a72,
+ 0x1b04, 0x1b04,
+ 0x1b35, 0x1b35,
+ 0x1b3b, 0x1b3b,
+ 0x1b3d, 0x1b41,
+ 0x1b43, 0x1b44,
+ 0x1b82, 0x1b82,
+ 0x1ba1, 0x1ba1,
+ 0x1ba6, 0x1ba7,
+ 0x1baa, 0x1baa,
+ 0x1be7, 0x1be7,
+ 0x1bea, 0x1bec,
+ 0x1bee, 0x1bee,
+ 0x1bf2, 0x1bf3,
+ 0x1c24, 0x1c2b,
+ 0x1c34, 0x1c35,
+ 0x1ce1, 0x1ce1,
+ 0x1cf2, 0x1cf2,
+ 0xa823, 0xa824,
+ 0xa827, 0xa827,
+ 0xa880, 0xa881,
+ 0xa8b4, 0xa8c3,
+ 0xa952, 0xa953,
+ 0xa983, 0xa983,
+ 0xa9b4, 0xa9b5,
+ 0xa9ba, 0xa9bb,
+ 0xa9bd, 0xa9c0,
+ 0xaa2f, 0xaa30,
+ 0xaa33, 0xaa34,
+ 0xaa4d, 0xaa4d,
+ 0xaa7b, 0xaa7b,
+ 0xabe3, 0xabe4,
+ 0xabe6, 0xabe7,
+ 0xabe9, 0xabea,
+ 0xabec, 0xabec,
+ 0x11000, 0x11000,
+ 0x11002, 0x11002,
+ 0x11082, 0x11082,
+ 0x110b0, 0x110b2,
+ 0x110b7, 0x110b8,
+ 0x1d165, 0x1d166,
+ 0x1d16d, 0x1d172,
+}; /* CR_Mc */
+
+/* 'Me': General Category */
+static const OnigCodePoint CR_Me[] = {
+ 4,
+ 0x0488, 0x0489,
+ 0x20dd, 0x20e0,
+ 0x20e2, 0x20e4,
+ 0xa670, 0xa672,
+}; /* CR_Me */
+
+/* 'Mn': General Category */
+static const OnigCodePoint CR_Mn[] = {
+ 203,
+ 0x0300, 0x036f,
+ 0x0483, 0x0487,
+ 0x0591, 0x05bd,
+ 0x05bf, 0x05bf,
+ 0x05c1, 0x05c2,
+ 0x05c4, 0x05c5,
+ 0x05c7, 0x05c7,
+ 0x0610, 0x061a,
+ 0x064b, 0x065f,
+ 0x0670, 0x0670,
+ 0x06d6, 0x06dc,
+ 0x06df, 0x06e4,
+ 0x06e7, 0x06e8,
+ 0x06ea, 0x06ed,
+ 0x0711, 0x0711,
+ 0x0730, 0x074a,
+ 0x07a6, 0x07b0,
+ 0x07eb, 0x07f3,
+ 0x0816, 0x0819,
+ 0x081b, 0x0823,
+ 0x0825, 0x0827,
+ 0x0829, 0x082d,
+ 0x0859, 0x085b,
+ 0x0900, 0x0902,
+ 0x093a, 0x093a,
+ 0x093c, 0x093c,
+ 0x0941, 0x0948,
+ 0x094d, 0x094d,
+ 0x0951, 0x0957,
+ 0x0962, 0x0963,
+ 0x0981, 0x0981,
+ 0x09bc, 0x09bc,
+ 0x09c1, 0x09c4,
+ 0x09cd, 0x09cd,
+ 0x09e2, 0x09e3,
+ 0x0a01, 0x0a02,
+ 0x0a3c, 0x0a3c,
+ 0x0a41, 0x0a42,
+ 0x0a47, 0x0a48,
+ 0x0a4b, 0x0a4d,
+ 0x0a51, 0x0a51,
+ 0x0a70, 0x0a71,
+ 0x0a75, 0x0a75,
+ 0x0a81, 0x0a82,
+ 0x0abc, 0x0abc,
+ 0x0ac1, 0x0ac5,
+ 0x0ac7, 0x0ac8,
+ 0x0acd, 0x0acd,
+ 0x0ae2, 0x0ae3,
+ 0x0b01, 0x0b01,
+ 0x0b3c, 0x0b3c,
+ 0x0b3f, 0x0b3f,
+ 0x0b41, 0x0b44,
+ 0x0b4d, 0x0b4d,
+ 0x0b56, 0x0b56,
+ 0x0b62, 0x0b63,
+ 0x0b82, 0x0b82,
+ 0x0bc0, 0x0bc0,
+ 0x0bcd, 0x0bcd,
+ 0x0c3e, 0x0c40,
+ 0x0c46, 0x0c48,
+ 0x0c4a, 0x0c4d,
+ 0x0c55, 0x0c56,
+ 0x0c62, 0x0c63,
+ 0x0cbc, 0x0cbc,
+ 0x0cbf, 0x0cbf,
+ 0x0cc6, 0x0cc6,
+ 0x0ccc, 0x0ccd,
+ 0x0ce2, 0x0ce3,
+ 0x0d41, 0x0d44,
+ 0x0d4d, 0x0d4d,
+ 0x0d62, 0x0d63,
+ 0x0dca, 0x0dca,
+ 0x0dd2, 0x0dd4,
+ 0x0dd6, 0x0dd6,
+ 0x0e31, 0x0e31,
+ 0x0e34, 0x0e3a,
+ 0x0e47, 0x0e4e,
+ 0x0eb1, 0x0eb1,
+ 0x0eb4, 0x0eb9,
+ 0x0ebb, 0x0ebc,
+ 0x0ec8, 0x0ecd,
+ 0x0f18, 0x0f19,
+ 0x0f35, 0x0f35,
+ 0x0f37, 0x0f37,
+ 0x0f39, 0x0f39,
+ 0x0f71, 0x0f7e,
+ 0x0f80, 0x0f84,
+ 0x0f86, 0x0f87,
+ 0x0f8d, 0x0f97,
+ 0x0f99, 0x0fbc,
+ 0x0fc6, 0x0fc6,
+ 0x102d, 0x1030,
+ 0x1032, 0x1037,
+ 0x1039, 0x103a,
+ 0x103d, 0x103e,
+ 0x1058, 0x1059,
+ 0x105e, 0x1060,
+ 0x1071, 0x1074,
+ 0x1082, 0x1082,
+ 0x1085, 0x1086,
+ 0x108d, 0x108d,
+ 0x109d, 0x109d,
+ 0x135d, 0x135f,
+ 0x1712, 0x1714,
+ 0x1732, 0x1734,
+ 0x1752, 0x1753,
+ 0x1772, 0x1773,
+ 0x17b7, 0x17bd,
+ 0x17c6, 0x17c6,
+ 0x17c9, 0x17d3,
+ 0x17dd, 0x17dd,
+ 0x180b, 0x180d,
+ 0x18a9, 0x18a9,
+ 0x1920, 0x1922,
+ 0x1927, 0x1928,
+ 0x1932, 0x1932,
+ 0x1939, 0x193b,
+ 0x1a17, 0x1a18,
+ 0x1a56, 0x1a56,
+ 0x1a58, 0x1a5e,
+ 0x1a60, 0x1a60,
+ 0x1a62, 0x1a62,
+ 0x1a65, 0x1a6c,
+ 0x1a73, 0x1a7c,
+ 0x1a7f, 0x1a7f,
+ 0x1b00, 0x1b03,
+ 0x1b34, 0x1b34,
+ 0x1b36, 0x1b3a,
+ 0x1b3c, 0x1b3c,
+ 0x1b42, 0x1b42,
+ 0x1b6b, 0x1b73,
+ 0x1b80, 0x1b81,
+ 0x1ba2, 0x1ba5,
+ 0x1ba8, 0x1ba9,
+ 0x1be6, 0x1be6,
+ 0x1be8, 0x1be9,
+ 0x1bed, 0x1bed,
+ 0x1bef, 0x1bf1,
+ 0x1c2c, 0x1c33,
+ 0x1c36, 0x1c37,
+ 0x1cd0, 0x1cd2,
+ 0x1cd4, 0x1ce0,
+ 0x1ce2, 0x1ce8,
+ 0x1ced, 0x1ced,
+ 0x1dc0, 0x1de6,
+ 0x1dfc, 0x1dff,
+ 0x20d0, 0x20dc,
+ 0x20e1, 0x20e1,
+ 0x20e5, 0x20f0,
+ 0x2cef, 0x2cf1,
+ 0x2d7f, 0x2d7f,
+ 0x2de0, 0x2dff,
+ 0x302a, 0x302f,
+ 0x3099, 0x309a,
+ 0xa66f, 0xa66f,
+ 0xa67c, 0xa67d,
+ 0xa6f0, 0xa6f1,
+ 0xa802, 0xa802,
+ 0xa806, 0xa806,
+ 0xa80b, 0xa80b,
+ 0xa825, 0xa826,
+ 0xa8c4, 0xa8c4,
+ 0xa8e0, 0xa8f1,
+ 0xa926, 0xa92d,
+ 0xa947, 0xa951,
+ 0xa980, 0xa982,
+ 0xa9b3, 0xa9b3,
+ 0xa9b6, 0xa9b9,
+ 0xa9bc, 0xa9bc,
+ 0xaa29, 0xaa2e,
+ 0xaa31, 0xaa32,
+ 0xaa35, 0xaa36,
+ 0xaa43, 0xaa43,
+ 0xaa4c, 0xaa4c,
+ 0xaab0, 0xaab0,
+ 0xaab2, 0xaab4,
+ 0xaab7, 0xaab8,
+ 0xaabe, 0xaabf,
+ 0xaac1, 0xaac1,
+ 0xabe5, 0xabe5,
+ 0xabe8, 0xabe8,
+ 0xabed, 0xabed,
+ 0xfb1e, 0xfb1e,
+ 0xfe00, 0xfe0f,
+ 0xfe20, 0xfe26,
+ 0x101fd, 0x101fd,
+ 0x10a01, 0x10a03,
+ 0x10a05, 0x10a06,
+ 0x10a0c, 0x10a0f,
+ 0x10a38, 0x10a3a,
+ 0x10a3f, 0x10a3f,
+ 0x11001, 0x11001,
+ 0x11038, 0x11046,
+ 0x11080, 0x11081,
+ 0x110b3, 0x110b6,
+ 0x110b9, 0x110ba,
+ 0x1d167, 0x1d169,
+ 0x1d17b, 0x1d182,
+ 0x1d185, 0x1d18b,
+ 0x1d1aa, 0x1d1ad,
+ 0x1d242, 0x1d244,
+ 0xe0100, 0xe01ef,
+}; /* CR_Mn */
+
+/* 'N': Major Category */
+static const OnigCodePoint CR_N[] = {
+ 83,
+ 0x0030, 0x0039,
+ 0x00b2, 0x00b3,
+ 0x00b9, 0x00b9,
+ 0x00bc, 0x00be,
+ 0x0660, 0x0669,
+ 0x06f0, 0x06f9,
+ 0x07c0, 0x07c9,
+ 0x0966, 0x096f,
+ 0x09e6, 0x09ef,
+ 0x09f4, 0x09f9,
+ 0x0a66, 0x0a6f,
+ 0x0ae6, 0x0aef,
+ 0x0b66, 0x0b6f,
+ 0x0b72, 0x0b77,
+ 0x0be6, 0x0bf2,
+ 0x0c66, 0x0c6f,
+ 0x0c78, 0x0c7e,
+ 0x0ce6, 0x0cef,
+ 0x0d66, 0x0d75,
+ 0x0e50, 0x0e59,
+ 0x0ed0, 0x0ed9,
+ 0x0f20, 0x0f33,
+ 0x1040, 0x1049,
+ 0x1090, 0x1099,
+ 0x1369, 0x137c,
+ 0x16ee, 0x16f0,
+ 0x17e0, 0x17e9,
+ 0x17f0, 0x17f9,
+ 0x1810, 0x1819,
+ 0x1946, 0x194f,
+ 0x19d0, 0x19da,
+ 0x1a80, 0x1a89,
+ 0x1a90, 0x1a99,
+ 0x1b50, 0x1b59,
+ 0x1bb0, 0x1bb9,
+ 0x1c40, 0x1c49,
+ 0x1c50, 0x1c59,
+ 0x2070, 0x2070,
+ 0x2074, 0x2079,
+ 0x2080, 0x2089,
+ 0x2150, 0x2182,
+ 0x2185, 0x2189,
+ 0x2460, 0x249b,
+ 0x24ea, 0x24ff,
+ 0x2776, 0x2793,
+ 0x2cfd, 0x2cfd,
+ 0x3007, 0x3007,
+ 0x3021, 0x3029,
+ 0x3038, 0x303a,
+ 0x3192, 0x3195,
+ 0x3220, 0x3229,
+ 0x3251, 0x325f,
+ 0x3280, 0x3289,
+ 0x32b1, 0x32bf,
+ 0xa620, 0xa629,
+ 0xa6e6, 0xa6ef,
+ 0xa830, 0xa835,
+ 0xa8d0, 0xa8d9,
+ 0xa900, 0xa909,
+ 0xa9d0, 0xa9d9,
+ 0xaa50, 0xaa59,
+ 0xabf0, 0xabf9,
+ 0xff10, 0xff19,
+ 0x10107, 0x10133,
+ 0x10140, 0x10178,
+ 0x1018a, 0x1018a,
+ 0x10320, 0x10323,
+ 0x10341, 0x10341,
+ 0x1034a, 0x1034a,
+ 0x103d1, 0x103d5,
+ 0x104a0, 0x104a9,
+ 0x10858, 0x1085f,
+ 0x10916, 0x1091b,
+ 0x10a40, 0x10a47,
+ 0x10a7d, 0x10a7e,
+ 0x10b58, 0x10b5f,
+ 0x10b78, 0x10b7f,
+ 0x10e60, 0x10e7e,
+ 0x11052, 0x1106f,
+ 0x12400, 0x12462,
+ 0x1d360, 0x1d371,
+ 0x1d7ce, 0x1d7ff,
+ 0x1f100, 0x1f10a,
+}; /* CR_N */
+
+/* 'Nd': General Category */
+static const OnigCodePoint CR_Nd[] = {
+ 38,
+ 0x0030, 0x0039,
+ 0x0660, 0x0669,
+ 0x06f0, 0x06f9,
+ 0x07c0, 0x07c9,
+ 0x0966, 0x096f,
+ 0x09e6, 0x09ef,
+ 0x0a66, 0x0a6f,
+ 0x0ae6, 0x0aef,
+ 0x0b66, 0x0b6f,
+ 0x0be6, 0x0bef,
+ 0x0c66, 0x0c6f,
+ 0x0ce6, 0x0cef,
+ 0x0d66, 0x0d6f,
+ 0x0e50, 0x0e59,
+ 0x0ed0, 0x0ed9,
+ 0x0f20, 0x0f29,
+ 0x1040, 0x1049,
+ 0x1090, 0x1099,
+ 0x17e0, 0x17e9,
+ 0x1810, 0x1819,
+ 0x1946, 0x194f,
+ 0x19d0, 0x19d9,
+ 0x1a80, 0x1a89,
+ 0x1a90, 0x1a99,
+ 0x1b50, 0x1b59,
+ 0x1bb0, 0x1bb9,
+ 0x1c40, 0x1c49,
+ 0x1c50, 0x1c59,
+ 0xa620, 0xa629,
+ 0xa8d0, 0xa8d9,
+ 0xa900, 0xa909,
+ 0xa9d0, 0xa9d9,
+ 0xaa50, 0xaa59,
+ 0xabf0, 0xabf9,
+ 0xff10, 0xff19,
+ 0x104a0, 0x104a9,
+ 0x11066, 0x1106f,
+ 0x1d7ce, 0x1d7ff,
+}; /* CR_Nd */
+
+/* 'Nl': General Category */
+static const OnigCodePoint CR_Nl[] = {
+ 12,
+ 0x16ee, 0x16f0,
+ 0x2160, 0x2182,
+ 0x2185, 0x2188,
+ 0x3007, 0x3007,
+ 0x3021, 0x3029,
+ 0x3038, 0x303a,
+ 0xa6e6, 0xa6ef,
+ 0x10140, 0x10174,
+ 0x10341, 0x10341,
+ 0x1034a, 0x1034a,
+ 0x103d1, 0x103d5,
+ 0x12400, 0x12462,
+}; /* CR_Nl */
+
+/* 'No': General Category */
+static const OnigCodePoint CR_No[] = {
+ 41,
+ 0x00b2, 0x00b3,
+ 0x00b9, 0x00b9,
+ 0x00bc, 0x00be,
+ 0x09f4, 0x09f9,
+ 0x0b72, 0x0b77,
+ 0x0bf0, 0x0bf2,
+ 0x0c78, 0x0c7e,
+ 0x0d70, 0x0d75,
+ 0x0f2a, 0x0f33,
+ 0x1369, 0x137c,
+ 0x17f0, 0x17f9,
+ 0x19da, 0x19da,
+ 0x2070, 0x2070,
+ 0x2074, 0x2079,
+ 0x2080, 0x2089,
+ 0x2150, 0x215f,
+ 0x2189, 0x2189,
+ 0x2460, 0x249b,
+ 0x24ea, 0x24ff,
+ 0x2776, 0x2793,
+ 0x2cfd, 0x2cfd,
+ 0x3192, 0x3195,
+ 0x3220, 0x3229,
+ 0x3251, 0x325f,
+ 0x3280, 0x3289,
+ 0x32b1, 0x32bf,
+ 0xa830, 0xa835,
+ 0x10107, 0x10133,
+ 0x10175, 0x10178,
+ 0x1018a, 0x1018a,
+ 0x10320, 0x10323,
+ 0x10858, 0x1085f,
+ 0x10916, 0x1091b,
+ 0x10a40, 0x10a47,
+ 0x10a7d, 0x10a7e,
+ 0x10b58, 0x10b5f,
+ 0x10b78, 0x10b7f,
+ 0x10e60, 0x10e7e,
+ 0x11052, 0x11065,
+ 0x1d360, 0x1d371,
+ 0x1f100, 0x1f10a,
+}; /* CR_No */
+
+/* 'P': Major Category */
+static const OnigCodePoint CR_P[] = {
+ 133,
+ 0x0021, 0x0023,
+ 0x0025, 0x002a,
+ 0x002c, 0x002f,
+ 0x003a, 0x003b,
+ 0x003f, 0x0040,
+ 0x005b, 0x005d,
+ 0x005f, 0x005f,
+ 0x007b, 0x007b,
+ 0x007d, 0x007d,
+ 0x00a1, 0x00a1,
+ 0x00ab, 0x00ab,
+ 0x00b7, 0x00b7,
+ 0x00bb, 0x00bb,
+ 0x00bf, 0x00bf,
+ 0x037e, 0x037e,
+ 0x0387, 0x0387,
+ 0x055a, 0x055f,
+ 0x0589, 0x058a,
+ 0x05be, 0x05be,
+ 0x05c0, 0x05c0,
+ 0x05c3, 0x05c3,
+ 0x05c6, 0x05c6,
+ 0x05f3, 0x05f4,
+ 0x0609, 0x060a,
+ 0x060c, 0x060d,
+ 0x061b, 0x061b,
+ 0x061e, 0x061f,
+ 0x066a, 0x066d,
+ 0x06d4, 0x06d4,
+ 0x0700, 0x070d,
+ 0x07f7, 0x07f9,
+ 0x0830, 0x083e,
+ 0x085e, 0x085e,
+ 0x0964, 0x0965,
+ 0x0970, 0x0970,
+ 0x0df4, 0x0df4,
+ 0x0e4f, 0x0e4f,
+ 0x0e5a, 0x0e5b,
+ 0x0f04, 0x0f12,
+ 0x0f3a, 0x0f3d,
+ 0x0f85, 0x0f85,
+ 0x0fd0, 0x0fd4,
+ 0x0fd9, 0x0fda,
+ 0x104a, 0x104f,
+ 0x10fb, 0x10fb,
+ 0x1361, 0x1368,
+ 0x1400, 0x1400,
+ 0x166d, 0x166e,
+ 0x169b, 0x169c,
+ 0x16eb, 0x16ed,
+ 0x1735, 0x1736,
+ 0x17d4, 0x17d6,
+ 0x17d8, 0x17da,
+ 0x1800, 0x180a,
+ 0x1944, 0x1945,
+ 0x1a1e, 0x1a1f,
+ 0x1aa0, 0x1aa6,
+ 0x1aa8, 0x1aad,
+ 0x1b5a, 0x1b60,
+ 0x1bfc, 0x1bff,
+ 0x1c3b, 0x1c3f,
+ 0x1c7e, 0x1c7f,
+ 0x1cd3, 0x1cd3,
+ 0x2010, 0x2027,
+ 0x2030, 0x2043,
+ 0x2045, 0x2051,
+ 0x2053, 0x205e,
+ 0x207d, 0x207e,
+ 0x208d, 0x208e,
+ 0x2329, 0x232a,
+ 0x2768, 0x2775,
+ 0x27c5, 0x27c6,
+ 0x27e6, 0x27ef,
+ 0x2983, 0x2998,
+ 0x29d8, 0x29db,
+ 0x29fc, 0x29fd,
+ 0x2cf9, 0x2cfc,
+ 0x2cfe, 0x2cff,
+ 0x2d70, 0x2d70,
+ 0x2e00, 0x2e2e,
+ 0x2e30, 0x2e31,
+ 0x3001, 0x3003,
+ 0x3008, 0x3011,
+ 0x3014, 0x301f,
+ 0x3030, 0x3030,
+ 0x303d, 0x303d,
+ 0x30a0, 0x30a0,
+ 0x30fb, 0x30fb,
+ 0xa4fe, 0xa4ff,
+ 0xa60d, 0xa60f,
+ 0xa673, 0xa673,
+ 0xa67e, 0xa67e,
+ 0xa6f2, 0xa6f7,
+ 0xa874, 0xa877,
+ 0xa8ce, 0xa8cf,
+ 0xa8f8, 0xa8fa,
+ 0xa92e, 0xa92f,
+ 0xa95f, 0xa95f,
+ 0xa9c1, 0xa9cd,
+ 0xa9de, 0xa9df,
+ 0xaa5c, 0xaa5f,
+ 0xaade, 0xaadf,
+ 0xabeb, 0xabeb,
+ 0xfd3e, 0xfd3f,
+ 0xfe10, 0xfe19,
+ 0xfe30, 0xfe52,
+ 0xfe54, 0xfe61,
+ 0xfe63, 0xfe63,
+ 0xfe68, 0xfe68,
+ 0xfe6a, 0xfe6b,
+ 0xff01, 0xff03,
+ 0xff05, 0xff0a,
+ 0xff0c, 0xff0f,
+ 0xff1a, 0xff1b,
+ 0xff1f, 0xff20,
+ 0xff3b, 0xff3d,
+ 0xff3f, 0xff3f,
+ 0xff5b, 0xff5b,
+ 0xff5d, 0xff5d,
+ 0xff5f, 0xff65,
+ 0x10100, 0x10101,
+ 0x1039f, 0x1039f,
+ 0x103d0, 0x103d0,
+ 0x10857, 0x10857,
+ 0x1091f, 0x1091f,
+ 0x1093f, 0x1093f,
+ 0x10a50, 0x10a58,
+ 0x10a7f, 0x10a7f,
+ 0x10b39, 0x10b3f,
+ 0x11047, 0x1104d,
+ 0x110bb, 0x110bc,
+ 0x110be, 0x110c1,
+ 0x12470, 0x12473,
+}; /* CR_P */
+
+/* 'Pc': General Category */
+static const OnigCodePoint CR_Pc[] = {
+ 6,
+ 0x005f, 0x005f,
+ 0x203f, 0x2040,
+ 0x2054, 0x2054,
+ 0xfe33, 0xfe34,
+ 0xfe4d, 0xfe4f,
+ 0xff3f, 0xff3f,
+}; /* CR_Pc */
+
+/* 'Pd': General Category */
+static const OnigCodePoint CR_Pd[] = {
+ 15,
+ 0x002d, 0x002d,
+ 0x058a, 0x058a,
+ 0x05be, 0x05be,
+ 0x1400, 0x1400,
+ 0x1806, 0x1806,
+ 0x2010, 0x2015,
+ 0x2e17, 0x2e17,
+ 0x2e1a, 0x2e1a,
+ 0x301c, 0x301c,
+ 0x3030, 0x3030,
+ 0x30a0, 0x30a0,
+ 0xfe31, 0xfe32,
+ 0xfe58, 0xfe58,
+ 0xfe63, 0xfe63,
+ 0xff0d, 0xff0d,
+}; /* CR_Pd */
+
+/* 'Pe': General Category */
+static const OnigCodePoint CR_Pe[] = {
+ 70,
+ 0x0029, 0x0029,
+ 0x005d, 0x005d,
+ 0x007d, 0x007d,
+ 0x0f3b, 0x0f3b,
+ 0x0f3d, 0x0f3d,
+ 0x169c, 0x169c,
+ 0x2046, 0x2046,
+ 0x207e, 0x207e,
+ 0x208e, 0x208e,
+ 0x232a, 0x232a,
+ 0x2769, 0x2769,
+ 0x276b, 0x276b,
+ 0x276d, 0x276d,
+ 0x276f, 0x276f,
+ 0x2771, 0x2771,
+ 0x2773, 0x2773,
+ 0x2775, 0x2775,
+ 0x27c6, 0x27c6,
+ 0x27e7, 0x27e7,
+ 0x27e9, 0x27e9,
+ 0x27eb, 0x27eb,
+ 0x27ed, 0x27ed,
+ 0x27ef, 0x27ef,
+ 0x2984, 0x2984,
+ 0x2986, 0x2986,
+ 0x2988, 0x2988,
+ 0x298a, 0x298a,
+ 0x298c, 0x298c,
+ 0x298e, 0x298e,
+ 0x2990, 0x2990,
+ 0x2992, 0x2992,
+ 0x2994, 0x2994,
+ 0x2996, 0x2996,
+ 0x2998, 0x2998,
+ 0x29d9, 0x29d9,
+ 0x29db, 0x29db,
+ 0x29fd, 0x29fd,
+ 0x2e23, 0x2e23,
+ 0x2e25, 0x2e25,
+ 0x2e27, 0x2e27,
+ 0x2e29, 0x2e29,
+ 0x3009, 0x3009,
+ 0x300b, 0x300b,
+ 0x300d, 0x300d,
+ 0x300f, 0x300f,
+ 0x3011, 0x3011,
+ 0x3015, 0x3015,
+ 0x3017, 0x3017,
+ 0x3019, 0x3019,
+ 0x301b, 0x301b,
+ 0x301e, 0x301f,
+ 0xfd3f, 0xfd3f,
+ 0xfe18, 0xfe18,
+ 0xfe36, 0xfe36,
+ 0xfe38, 0xfe38,
+ 0xfe3a, 0xfe3a,
+ 0xfe3c, 0xfe3c,
+ 0xfe3e, 0xfe3e,
+ 0xfe40, 0xfe40,
+ 0xfe42, 0xfe42,
+ 0xfe44, 0xfe44,
+ 0xfe48, 0xfe48,
+ 0xfe5a, 0xfe5a,
+ 0xfe5c, 0xfe5c,
+ 0xfe5e, 0xfe5e,
+ 0xff09, 0xff09,
+ 0xff3d, 0xff3d,
+ 0xff5d, 0xff5d,
+ 0xff60, 0xff60,
+ 0xff63, 0xff63,
+}; /* CR_Pe */
+
+/* 'Pf': General Category */
+static const OnigCodePoint CR_Pf[] = {
+ 10,
+ 0x00bb, 0x00bb,
+ 0x2019, 0x2019,
+ 0x201d, 0x201d,
+ 0x203a, 0x203a,
+ 0x2e03, 0x2e03,
+ 0x2e05, 0x2e05,
+ 0x2e0a, 0x2e0a,
+ 0x2e0d, 0x2e0d,
+ 0x2e1d, 0x2e1d,
+ 0x2e21, 0x2e21,
+}; /* CR_Pf */
+
+/* 'Pi': General Category */
+static const OnigCodePoint CR_Pi[] = {
+ 11,
+ 0x00ab, 0x00ab,
+ 0x2018, 0x2018,
+ 0x201b, 0x201c,
+ 0x201f, 0x201f,
+ 0x2039, 0x2039,
+ 0x2e02, 0x2e02,
+ 0x2e04, 0x2e04,
+ 0x2e09, 0x2e09,
+ 0x2e0c, 0x2e0c,
+ 0x2e1c, 0x2e1c,
+ 0x2e20, 0x2e20,
+}; /* CR_Pi */
+
+/* 'Po': General Category */
+static const OnigCodePoint CR_Po[] = {
+ 128,
+ 0x0021, 0x0023,
+ 0x0025, 0x0027,
+ 0x002a, 0x002a,
+ 0x002c, 0x002c,
+ 0x002e, 0x002f,
+ 0x003a, 0x003b,
+ 0x003f, 0x0040,
+ 0x005c, 0x005c,
+ 0x00a1, 0x00a1,
+ 0x00b7, 0x00b7,
+ 0x00bf, 0x00bf,
+ 0x037e, 0x037e,
+ 0x0387, 0x0387,
+ 0x055a, 0x055f,
+ 0x0589, 0x0589,
+ 0x05c0, 0x05c0,
+ 0x05c3, 0x05c3,
+ 0x05c6, 0x05c6,
+ 0x05f3, 0x05f4,
+ 0x0609, 0x060a,
+ 0x060c, 0x060d,
+ 0x061b, 0x061b,
+ 0x061e, 0x061f,
+ 0x066a, 0x066d,
+ 0x06d4, 0x06d4,
+ 0x0700, 0x070d,
+ 0x07f7, 0x07f9,
+ 0x0830, 0x083e,
+ 0x085e, 0x085e,
+ 0x0964, 0x0965,
+ 0x0970, 0x0970,
+ 0x0df4, 0x0df4,
+ 0x0e4f, 0x0e4f,
+ 0x0e5a, 0x0e5b,
+ 0x0f04, 0x0f12,
+ 0x0f85, 0x0f85,
+ 0x0fd0, 0x0fd4,
+ 0x0fd9, 0x0fda,
+ 0x104a, 0x104f,
+ 0x10fb, 0x10fb,
+ 0x1361, 0x1368,
+ 0x166d, 0x166e,
+ 0x16eb, 0x16ed,
+ 0x1735, 0x1736,
+ 0x17d4, 0x17d6,
+ 0x17d8, 0x17da,
+ 0x1800, 0x1805,
+ 0x1807, 0x180a,
+ 0x1944, 0x1945,
+ 0x1a1e, 0x1a1f,
+ 0x1aa0, 0x1aa6,
+ 0x1aa8, 0x1aad,
+ 0x1b5a, 0x1b60,
+ 0x1bfc, 0x1bff,
+ 0x1c3b, 0x1c3f,
+ 0x1c7e, 0x1c7f,
+ 0x1cd3, 0x1cd3,
+ 0x2016, 0x2017,
+ 0x2020, 0x2027,
+ 0x2030, 0x2038,
+ 0x203b, 0x203e,
+ 0x2041, 0x2043,
+ 0x2047, 0x2051,
+ 0x2053, 0x2053,
+ 0x2055, 0x205e,
+ 0x2cf9, 0x2cfc,
+ 0x2cfe, 0x2cff,
+ 0x2d70, 0x2d70,
+ 0x2e00, 0x2e01,
+ 0x2e06, 0x2e08,
+ 0x2e0b, 0x2e0b,
+ 0x2e0e, 0x2e16,
+ 0x2e18, 0x2e19,
+ 0x2e1b, 0x2e1b,
+ 0x2e1e, 0x2e1f,
+ 0x2e2a, 0x2e2e,
+ 0x2e30, 0x2e31,
+ 0x3001, 0x3003,
+ 0x303d, 0x303d,
+ 0x30fb, 0x30fb,
+ 0xa4fe, 0xa4ff,
+ 0xa60d, 0xa60f,
+ 0xa673, 0xa673,
+ 0xa67e, 0xa67e,
+ 0xa6f2, 0xa6f7,
+ 0xa874, 0xa877,
+ 0xa8ce, 0xa8cf,
+ 0xa8f8, 0xa8fa,
+ 0xa92e, 0xa92f,
+ 0xa95f, 0xa95f,
+ 0xa9c1, 0xa9cd,
+ 0xa9de, 0xa9df,
+ 0xaa5c, 0xaa5f,
+ 0xaade, 0xaadf,
+ 0xabeb, 0xabeb,
+ 0xfe10, 0xfe16,
+ 0xfe19, 0xfe19,
+ 0xfe30, 0xfe30,
+ 0xfe45, 0xfe46,
+ 0xfe49, 0xfe4c,
+ 0xfe50, 0xfe52,
+ 0xfe54, 0xfe57,
+ 0xfe5f, 0xfe61,
+ 0xfe68, 0xfe68,
+ 0xfe6a, 0xfe6b,
+ 0xff01, 0xff03,
+ 0xff05, 0xff07,
+ 0xff0a, 0xff0a,
+ 0xff0c, 0xff0c,
+ 0xff0e, 0xff0f,
+ 0xff1a, 0xff1b,
+ 0xff1f, 0xff20,
+ 0xff3c, 0xff3c,
+ 0xff61, 0xff61,
+ 0xff64, 0xff65,
+ 0x10100, 0x10101,
+ 0x1039f, 0x1039f,
+ 0x103d0, 0x103d0,
+ 0x10857, 0x10857,
+ 0x1091f, 0x1091f,
+ 0x1093f, 0x1093f,
+ 0x10a50, 0x10a58,
+ 0x10a7f, 0x10a7f,
+ 0x10b39, 0x10b3f,
+ 0x11047, 0x1104d,
+ 0x110bb, 0x110bc,
+ 0x110be, 0x110c1,
+ 0x12470, 0x12473,
+}; /* CR_Po */
+
+/* 'Ps': General Category */
+static const OnigCodePoint CR_Ps[] = {
+ 72,
+ 0x0028, 0x0028,
+ 0x005b, 0x005b,
+ 0x007b, 0x007b,
+ 0x0f3a, 0x0f3a,
+ 0x0f3c, 0x0f3c,
+ 0x169b, 0x169b,
+ 0x201a, 0x201a,
+ 0x201e, 0x201e,
+ 0x2045, 0x2045,
+ 0x207d, 0x207d,
+ 0x208d, 0x208d,
+ 0x2329, 0x2329,
+ 0x2768, 0x2768,
+ 0x276a, 0x276a,
+ 0x276c, 0x276c,
+ 0x276e, 0x276e,
+ 0x2770, 0x2770,
+ 0x2772, 0x2772,
+ 0x2774, 0x2774,
+ 0x27c5, 0x27c5,
+ 0x27e6, 0x27e6,
+ 0x27e8, 0x27e8,
+ 0x27ea, 0x27ea,
+ 0x27ec, 0x27ec,
+ 0x27ee, 0x27ee,
+ 0x2983, 0x2983,
+ 0x2985, 0x2985,
+ 0x2987, 0x2987,
+ 0x2989, 0x2989,
+ 0x298b, 0x298b,
+ 0x298d, 0x298d,
+ 0x298f, 0x298f,
+ 0x2991, 0x2991,
+ 0x2993, 0x2993,
+ 0x2995, 0x2995,
+ 0x2997, 0x2997,
+ 0x29d8, 0x29d8,
+ 0x29da, 0x29da,
+ 0x29fc, 0x29fc,
+ 0x2e22, 0x2e22,
+ 0x2e24, 0x2e24,
+ 0x2e26, 0x2e26,
+ 0x2e28, 0x2e28,
+ 0x3008, 0x3008,
+ 0x300a, 0x300a,
+ 0x300c, 0x300c,
+ 0x300e, 0x300e,
+ 0x3010, 0x3010,
+ 0x3014, 0x3014,
+ 0x3016, 0x3016,
+ 0x3018, 0x3018,
+ 0x301a, 0x301a,
+ 0x301d, 0x301d,
+ 0xfd3e, 0xfd3e,
+ 0xfe17, 0xfe17,
+ 0xfe35, 0xfe35,
+ 0xfe37, 0xfe37,
+ 0xfe39, 0xfe39,
+ 0xfe3b, 0xfe3b,
+ 0xfe3d, 0xfe3d,
+ 0xfe3f, 0xfe3f,
+ 0xfe41, 0xfe41,
+ 0xfe43, 0xfe43,
+ 0xfe47, 0xfe47,
+ 0xfe59, 0xfe59,
+ 0xfe5b, 0xfe5b,
+ 0xfe5d, 0xfe5d,
+ 0xff08, 0xff08,
+ 0xff3b, 0xff3b,
+ 0xff5b, 0xff5b,
+ 0xff5f, 0xff5f,
+ 0xff62, 0xff62,
+}; /* CR_Ps */
+
+/* 'S': Major Category */
+static const OnigCodePoint CR_S[] = {
+ 208,
+ 0x0024, 0x0024,
+ 0x002b, 0x002b,
+ 0x003c, 0x003e,
+ 0x005e, 0x005e,
+ 0x0060, 0x0060,
+ 0x007c, 0x007c,
+ 0x007e, 0x007e,
+ 0x00a2, 0x00a9,
+ 0x00ac, 0x00ac,
+ 0x00ae, 0x00b1,
+ 0x00b4, 0x00b4,
+ 0x00b6, 0x00b6,
+ 0x00b8, 0x00b8,
+ 0x00d7, 0x00d7,
+ 0x00f7, 0x00f7,
+ 0x02c2, 0x02c5,
+ 0x02d2, 0x02df,
+ 0x02e5, 0x02eb,
+ 0x02ed, 0x02ed,
+ 0x02ef, 0x02ff,
+ 0x0375, 0x0375,
+ 0x0384, 0x0385,
+ 0x03f6, 0x03f6,
+ 0x0482, 0x0482,
+ 0x0606, 0x0608,
+ 0x060b, 0x060b,
+ 0x060e, 0x060f,
+ 0x06de, 0x06de,
+ 0x06e9, 0x06e9,
+ 0x06fd, 0x06fe,
+ 0x07f6, 0x07f6,
+ 0x09f2, 0x09f3,
+ 0x09fa, 0x09fb,
+ 0x0af1, 0x0af1,
+ 0x0b70, 0x0b70,
+ 0x0bf3, 0x0bfa,
+ 0x0c7f, 0x0c7f,
+ 0x0d79, 0x0d79,
+ 0x0e3f, 0x0e3f,
+ 0x0f01, 0x0f03,
+ 0x0f13, 0x0f17,
+ 0x0f1a, 0x0f1f,
+ 0x0f34, 0x0f34,
+ 0x0f36, 0x0f36,
+ 0x0f38, 0x0f38,
+ 0x0fbe, 0x0fc5,
+ 0x0fc7, 0x0fcc,
+ 0x0fce, 0x0fcf,
+ 0x0fd5, 0x0fd8,
+ 0x109e, 0x109f,
+ 0x1360, 0x1360,
+ 0x1390, 0x1399,
+ 0x17db, 0x17db,
+ 0x1940, 0x1940,
+ 0x19de, 0x19ff,
+ 0x1b61, 0x1b6a,
+ 0x1b74, 0x1b7c,
+ 0x1fbd, 0x1fbd,
+ 0x1fbf, 0x1fc1,
+ 0x1fcd, 0x1fcf,
+ 0x1fdd, 0x1fdf,
+ 0x1fed, 0x1fef,
+ 0x1ffd, 0x1ffe,
+ 0x2044, 0x2044,
+ 0x2052, 0x2052,
+ 0x207a, 0x207c,
+ 0x208a, 0x208c,
+ 0x20a0, 0x20b9,
+ 0x2100, 0x2101,
+ 0x2103, 0x2106,
+ 0x2108, 0x2109,
+ 0x2114, 0x2114,
+ 0x2116, 0x2118,
+ 0x211e, 0x2123,
+ 0x2125, 0x2125,
+ 0x2127, 0x2127,
+ 0x2129, 0x2129,
+ 0x212e, 0x212e,
+ 0x213a, 0x213b,
+ 0x2140, 0x2144,
+ 0x214a, 0x214d,
+ 0x214f, 0x214f,
+ 0x2190, 0x2328,
+ 0x232b, 0x23f3,
+ 0x2400, 0x2426,
+ 0x2440, 0x244a,
+ 0x249c, 0x24e9,
+ 0x2500, 0x26ff,
+ 0x2701, 0x2767,
+ 0x2794, 0x27c4,
+ 0x27c7, 0x27ca,
+ 0x27cc, 0x27cc,
+ 0x27ce, 0x27e5,
+ 0x27f0, 0x2982,
+ 0x2999, 0x29d7,
+ 0x29dc, 0x29fb,
+ 0x29fe, 0x2b4c,
+ 0x2b50, 0x2b59,
+ 0x2ce5, 0x2cea,
+ 0x2e80, 0x2e99,
+ 0x2e9b, 0x2ef3,
+ 0x2f00, 0x2fd5,
+ 0x2ff0, 0x2ffb,
+ 0x3004, 0x3004,
+ 0x3012, 0x3013,
+ 0x3020, 0x3020,
+ 0x3036, 0x3037,
+ 0x303e, 0x303f,
+ 0x309b, 0x309c,
+ 0x3190, 0x3191,
+ 0x3196, 0x319f,
+ 0x31c0, 0x31e3,
+ 0x3200, 0x321e,
+ 0x322a, 0x3250,
+ 0x3260, 0x327f,
+ 0x328a, 0x32b0,
+ 0x32c0, 0x32fe,
+ 0x3300, 0x33ff,
+ 0x4dc0, 0x4dff,
+ 0xa490, 0xa4c6,
+ 0xa700, 0xa716,
+ 0xa720, 0xa721,
+ 0xa789, 0xa78a,
+ 0xa828, 0xa82b,
+ 0xa836, 0xa839,
+ 0xaa77, 0xaa79,
+ 0xfb29, 0xfb29,
+ 0xfbb2, 0xfbc1,
+ 0xfdfc, 0xfdfd,
+ 0xfe62, 0xfe62,
+ 0xfe64, 0xfe66,
+ 0xfe69, 0xfe69,
+ 0xff04, 0xff04,
+ 0xff0b, 0xff0b,
+ 0xff1c, 0xff1e,
+ 0xff3e, 0xff3e,
+ 0xff40, 0xff40,
+ 0xff5c, 0xff5c,
+ 0xff5e, 0xff5e,
+ 0xffe0, 0xffe6,
+ 0xffe8, 0xffee,
+ 0xfffc, 0xfffd,
+ 0x10102, 0x10102,
+ 0x10137, 0x1013f,
+ 0x10179, 0x10189,
+ 0x10190, 0x1019b,
+ 0x101d0, 0x101fc,
+ 0x1d000, 0x1d0f5,
+ 0x1d100, 0x1d126,
+ 0x1d129, 0x1d164,
+ 0x1d16a, 0x1d16c,
+ 0x1d183, 0x1d184,
+ 0x1d18c, 0x1d1a9,
+ 0x1d1ae, 0x1d1dd,
+ 0x1d200, 0x1d241,
+ 0x1d245, 0x1d245,
+ 0x1d300, 0x1d356,
+ 0x1d6c1, 0x1d6c1,
+ 0x1d6db, 0x1d6db,
+ 0x1d6fb, 0x1d6fb,
+ 0x1d715, 0x1d715,
+ 0x1d735, 0x1d735,
+ 0x1d74f, 0x1d74f,
+ 0x1d76f, 0x1d76f,
+ 0x1d789, 0x1d789,
+ 0x1d7a9, 0x1d7a9,
+ 0x1d7c3, 0x1d7c3,
+ 0x1f000, 0x1f02b,
+ 0x1f030, 0x1f093,
+ 0x1f0a0, 0x1f0ae,
+ 0x1f0b1, 0x1f0be,
+ 0x1f0c1, 0x1f0cf,
+ 0x1f0d1, 0x1f0df,
+ 0x1f110, 0x1f12e,
+ 0x1f130, 0x1f169,
+ 0x1f170, 0x1f19a,
+ 0x1f1e6, 0x1f202,
+ 0x1f210, 0x1f23a,
+ 0x1f240, 0x1f248,
+ 0x1f250, 0x1f251,
+ 0x1f300, 0x1f320,
+ 0x1f330, 0x1f335,
+ 0x1f337, 0x1f37c,
+ 0x1f380, 0x1f393,
+ 0x1f3a0, 0x1f3c4,
+ 0x1f3c6, 0x1f3ca,
+ 0x1f3e0, 0x1f3f0,
+ 0x1f400, 0x1f43e,
+ 0x1f440, 0x1f440,
+ 0x1f442, 0x1f4f7,
+ 0x1f4f9, 0x1f4fc,
+ 0x1f500, 0x1f53d,
+ 0x1f550, 0x1f567,
+ 0x1f5fb, 0x1f5ff,
+ 0x1f601, 0x1f610,
+ 0x1f612, 0x1f614,
+ 0x1f616, 0x1f616,
+ 0x1f618, 0x1f618,
+ 0x1f61a, 0x1f61a,
+ 0x1f61c, 0x1f61e,
+ 0x1f620, 0x1f625,
+ 0x1f628, 0x1f62b,
+ 0x1f62d, 0x1f62d,
+ 0x1f630, 0x1f633,
+ 0x1f635, 0x1f640,
+ 0x1f645, 0x1f64f,
+ 0x1f680, 0x1f6c5,
+ 0x1f700, 0x1f773,
+}; /* CR_S */
+
+/* 'Sc': General Category */
+static const OnigCodePoint CR_Sc[] = {
+ 16,
+ 0x0024, 0x0024,
+ 0x00a2, 0x00a5,
+ 0x060b, 0x060b,
+ 0x09f2, 0x09f3,
+ 0x09fb, 0x09fb,
+ 0x0af1, 0x0af1,
+ 0x0bf9, 0x0bf9,
+ 0x0e3f, 0x0e3f,
+ 0x17db, 0x17db,
+ 0x20a0, 0x20b9,
+ 0xa838, 0xa838,
+ 0xfdfc, 0xfdfc,
+ 0xfe69, 0xfe69,
+ 0xff04, 0xff04,
+ 0xffe0, 0xffe1,
+ 0xffe5, 0xffe6,
+}; /* CR_Sc */
+
+/* 'Sk': General Category */
+static const OnigCodePoint CR_Sk[] = {
+ 27,
+ 0x005e, 0x005e,
+ 0x0060, 0x0060,
+ 0x00a8, 0x00a8,
+ 0x00af, 0x00af,
+ 0x00b4, 0x00b4,
+ 0x00b8, 0x00b8,
+ 0x02c2, 0x02c5,
+ 0x02d2, 0x02df,
+ 0x02e5, 0x02eb,
+ 0x02ed, 0x02ed,
+ 0x02ef, 0x02ff,
+ 0x0375, 0x0375,
+ 0x0384, 0x0385,
+ 0x1fbd, 0x1fbd,
+ 0x1fbf, 0x1fc1,
+ 0x1fcd, 0x1fcf,
+ 0x1fdd, 0x1fdf,
+ 0x1fed, 0x1fef,
+ 0x1ffd, 0x1ffe,
+ 0x309b, 0x309c,
+ 0xa700, 0xa716,
+ 0xa720, 0xa721,
+ 0xa789, 0xa78a,
+ 0xfbb2, 0xfbc1,
+ 0xff3e, 0xff3e,
+ 0xff40, 0xff40,
+ 0xffe3, 0xffe3,
+}; /* CR_Sk */
+
+/* 'Sm': General Category */
+static const OnigCodePoint CR_Sm[] = {
+ 66,
+ 0x002b, 0x002b,
+ 0x003c, 0x003e,
+ 0x007c, 0x007c,
+ 0x007e, 0x007e,
+ 0x00ac, 0x00ac,
+ 0x00b1, 0x00b1,
+ 0x00d7, 0x00d7,
+ 0x00f7, 0x00f7,
+ 0x03f6, 0x03f6,
+ 0x0606, 0x0608,
+ 0x2044, 0x2044,
+ 0x2052, 0x2052,
+ 0x207a, 0x207c,
+ 0x208a, 0x208c,
+ 0x2118, 0x2118,
+ 0x2140, 0x2144,
+ 0x214b, 0x214b,
+ 0x2190, 0x2194,
+ 0x219a, 0x219b,
+ 0x21a0, 0x21a0,
+ 0x21a3, 0x21a3,
+ 0x21a6, 0x21a6,
+ 0x21ae, 0x21ae,
+ 0x21ce, 0x21cf,
+ 0x21d2, 0x21d2,
+ 0x21d4, 0x21d4,
+ 0x21f4, 0x22ff,
+ 0x2308, 0x230b,
+ 0x2320, 0x2321,
+ 0x237c, 0x237c,
+ 0x239b, 0x23b3,
+ 0x23dc, 0x23e1,
+ 0x25b7, 0x25b7,
+ 0x25c1, 0x25c1,
+ 0x25f8, 0x25ff,
+ 0x266f, 0x266f,
+ 0x27c0, 0x27c4,
+ 0x27c7, 0x27ca,
+ 0x27cc, 0x27cc,
+ 0x27ce, 0x27e5,
+ 0x27f0, 0x27ff,
+ 0x2900, 0x2982,
+ 0x2999, 0x29d7,
+ 0x29dc, 0x29fb,
+ 0x29fe, 0x2aff,
+ 0x2b30, 0x2b44,
+ 0x2b47, 0x2b4c,
+ 0xfb29, 0xfb29,
+ 0xfe62, 0xfe62,
+ 0xfe64, 0xfe66,
+ 0xff0b, 0xff0b,
+ 0xff1c, 0xff1e,
+ 0xff5c, 0xff5c,
+ 0xff5e, 0xff5e,
+ 0xffe2, 0xffe2,
+ 0xffe9, 0xffec,
+ 0x1d6c1, 0x1d6c1,
+ 0x1d6db, 0x1d6db,
+ 0x1d6fb, 0x1d6fb,
+ 0x1d715, 0x1d715,
+ 0x1d735, 0x1d735,
+ 0x1d74f, 0x1d74f,
+ 0x1d76f, 0x1d76f,
+ 0x1d789, 0x1d789,
+ 0x1d7a9, 0x1d7a9,
+ 0x1d7c3, 0x1d7c3,
+}; /* CR_Sm */
+
+/* 'So': General Category */
+static const OnigCodePoint CR_So[] = {
+ 164,
+ 0x00a6, 0x00a7,
+ 0x00a9, 0x00a9,
+ 0x00ae, 0x00ae,
+ 0x00b0, 0x00b0,
+ 0x00b6, 0x00b6,
+ 0x0482, 0x0482,
+ 0x060e, 0x060f,
+ 0x06de, 0x06de,
+ 0x06e9, 0x06e9,
+ 0x06fd, 0x06fe,
+ 0x07f6, 0x07f6,
+ 0x09fa, 0x09fa,
+ 0x0b70, 0x0b70,
+ 0x0bf3, 0x0bf8,
+ 0x0bfa, 0x0bfa,
+ 0x0c7f, 0x0c7f,
+ 0x0d79, 0x0d79,
+ 0x0f01, 0x0f03,
+ 0x0f13, 0x0f17,
+ 0x0f1a, 0x0f1f,
+ 0x0f34, 0x0f34,
+ 0x0f36, 0x0f36,
+ 0x0f38, 0x0f38,
+ 0x0fbe, 0x0fc5,
+ 0x0fc7, 0x0fcc,
+ 0x0fce, 0x0fcf,
+ 0x0fd5, 0x0fd8,
+ 0x109e, 0x109f,
+ 0x1360, 0x1360,
+ 0x1390, 0x1399,
+ 0x1940, 0x1940,
+ 0x19de, 0x19ff,
+ 0x1b61, 0x1b6a,
+ 0x1b74, 0x1b7c,
+ 0x2100, 0x2101,
+ 0x2103, 0x2106,
+ 0x2108, 0x2109,
+ 0x2114, 0x2114,
+ 0x2116, 0x2117,
+ 0x211e, 0x2123,
+ 0x2125, 0x2125,
+ 0x2127, 0x2127,
+ 0x2129, 0x2129,
+ 0x212e, 0x212e,
+ 0x213a, 0x213b,
+ 0x214a, 0x214a,
+ 0x214c, 0x214d,
+ 0x214f, 0x214f,
+ 0x2195, 0x2199,
+ 0x219c, 0x219f,
+ 0x21a1, 0x21a2,
+ 0x21a4, 0x21a5,
+ 0x21a7, 0x21ad,
+ 0x21af, 0x21cd,
+ 0x21d0, 0x21d1,
+ 0x21d3, 0x21d3,
+ 0x21d5, 0x21f3,
+ 0x2300, 0x2307,
+ 0x230c, 0x231f,
+ 0x2322, 0x2328,
+ 0x232b, 0x237b,
+ 0x237d, 0x239a,
+ 0x23b4, 0x23db,
+ 0x23e2, 0x23f3,
+ 0x2400, 0x2426,
+ 0x2440, 0x244a,
+ 0x249c, 0x24e9,
+ 0x2500, 0x25b6,
+ 0x25b8, 0x25c0,
+ 0x25c2, 0x25f7,
+ 0x2600, 0x266e,
+ 0x2670, 0x26ff,
+ 0x2701, 0x2767,
+ 0x2794, 0x27bf,
+ 0x2800, 0x28ff,
+ 0x2b00, 0x2b2f,
+ 0x2b45, 0x2b46,
+ 0x2b50, 0x2b59,
+ 0x2ce5, 0x2cea,
+ 0x2e80, 0x2e99,
+ 0x2e9b, 0x2ef3,
+ 0x2f00, 0x2fd5,
+ 0x2ff0, 0x2ffb,
+ 0x3004, 0x3004,
+ 0x3012, 0x3013,
+ 0x3020, 0x3020,
+ 0x3036, 0x3037,
+ 0x303e, 0x303f,
+ 0x3190, 0x3191,
+ 0x3196, 0x319f,
+ 0x31c0, 0x31e3,
+ 0x3200, 0x321e,
+ 0x322a, 0x3250,
+ 0x3260, 0x327f,
+ 0x328a, 0x32b0,
+ 0x32c0, 0x32fe,
+ 0x3300, 0x33ff,
+ 0x4dc0, 0x4dff,
+ 0xa490, 0xa4c6,
+ 0xa828, 0xa82b,
+ 0xa836, 0xa837,
+ 0xa839, 0xa839,
+ 0xaa77, 0xaa79,
+ 0xfdfd, 0xfdfd,
+ 0xffe4, 0xffe4,
+ 0xffe8, 0xffe8,
+ 0xffed, 0xffee,
+ 0xfffc, 0xfffd,
+ 0x10102, 0x10102,
+ 0x10137, 0x1013f,
+ 0x10179, 0x10189,
+ 0x10190, 0x1019b,
+ 0x101d0, 0x101fc,
+ 0x1d000, 0x1d0f5,
+ 0x1d100, 0x1d126,
+ 0x1d129, 0x1d164,
+ 0x1d16a, 0x1d16c,
+ 0x1d183, 0x1d184,
+ 0x1d18c, 0x1d1a9,
+ 0x1d1ae, 0x1d1dd,
+ 0x1d200, 0x1d241,
+ 0x1d245, 0x1d245,
+ 0x1d300, 0x1d356,
+ 0x1f000, 0x1f02b,
+ 0x1f030, 0x1f093,
+ 0x1f0a0, 0x1f0ae,
+ 0x1f0b1, 0x1f0be,
+ 0x1f0c1, 0x1f0cf,
+ 0x1f0d1, 0x1f0df,
+ 0x1f110, 0x1f12e,
+ 0x1f130, 0x1f169,
+ 0x1f170, 0x1f19a,
+ 0x1f1e6, 0x1f202,
+ 0x1f210, 0x1f23a,
+ 0x1f240, 0x1f248,
+ 0x1f250, 0x1f251,
+ 0x1f300, 0x1f320,
+ 0x1f330, 0x1f335,
+ 0x1f337, 0x1f37c,
+ 0x1f380, 0x1f393,
+ 0x1f3a0, 0x1f3c4,
+ 0x1f3c6, 0x1f3ca,
+ 0x1f3e0, 0x1f3f0,
+ 0x1f400, 0x1f43e,
+ 0x1f440, 0x1f440,
+ 0x1f442, 0x1f4f7,
+ 0x1f4f9, 0x1f4fc,
+ 0x1f500, 0x1f53d,
+ 0x1f550, 0x1f567,
+ 0x1f5fb, 0x1f5ff,
+ 0x1f601, 0x1f610,
+ 0x1f612, 0x1f614,
+ 0x1f616, 0x1f616,
+ 0x1f618, 0x1f618,
+ 0x1f61a, 0x1f61a,
+ 0x1f61c, 0x1f61e,
+ 0x1f620, 0x1f625,
+ 0x1f628, 0x1f62b,
+ 0x1f62d, 0x1f62d,
+ 0x1f630, 0x1f633,
+ 0x1f635, 0x1f640,
+ 0x1f645, 0x1f64f,
+ 0x1f680, 0x1f6c5,
+ 0x1f700, 0x1f773,
+}; /* CR_So */
+
+/* 'Z': Major Category */
+static const OnigCodePoint CR_Z[] = {
+ 9,
+ 0x0020, 0x0020,
+ 0x00a0, 0x00a0,
+ 0x1680, 0x1680,
+ 0x180e, 0x180e,
+ 0x2000, 0x200a,
+ 0x2028, 0x2029,
+ 0x202f, 0x202f,
+ 0x205f, 0x205f,
+ 0x3000, 0x3000,
+}; /* CR_Z */
+
+/* 'Zl': General Category */
+static const OnigCodePoint CR_Zl[] = {
+ 1,
+ 0x2028, 0x2028,
+}; /* CR_Zl */
+
+/* 'Zp': General Category */
+static const OnigCodePoint CR_Zp[] = {
+ 1,
+ 0x2029, 0x2029,
+}; /* CR_Zp */
+
+/* 'Zs': General Category */
+static const OnigCodePoint CR_Zs[] = {
+ 8,
+ 0x0020, 0x0020,
+ 0x00a0, 0x00a0,
+ 0x1680, 0x1680,
+ 0x180e, 0x180e,
+ 0x2000, 0x200a,
+ 0x202f, 0x202f,
+ 0x205f, 0x205f,
+ 0x3000, 0x3000,
+}; /* CR_Zs */
+
+/* 'Math': Derived Property */
+static const OnigCodePoint CR_Math[] = {
+ 106,
+ 0x002b, 0x002b,
+ 0x003c, 0x003e,
+ 0x005e, 0x005e,
+ 0x007c, 0x007c,
+ 0x007e, 0x007e,
+ 0x00ac, 0x00ac,
+ 0x00b1, 0x00b1,
+ 0x00d7, 0x00d7,
+ 0x00f7, 0x00f7,
+ 0x03d0, 0x03d2,
+ 0x03d5, 0x03d5,
+ 0x03f0, 0x03f1,
+ 0x03f4, 0x03f6,
+ 0x0606, 0x0608,
+ 0x2016, 0x2016,
+ 0x2032, 0x2034,
+ 0x2040, 0x2040,
+ 0x2044, 0x2044,
+ 0x2052, 0x2052,
+ 0x2061, 0x2064,
+ 0x207a, 0x207e,
+ 0x208a, 0x208e,
+ 0x20d0, 0x20dc,
+ 0x20e1, 0x20e1,
+ 0x20e5, 0x20e6,
+ 0x20eb, 0x20ef,
+ 0x2102, 0x2102,
+ 0x2107, 0x2107,
+ 0x210a, 0x2113,
+ 0x2115, 0x2115,
+ 0x2118, 0x211d,
+ 0x2124, 0x2124,
+ 0x2128, 0x2129,
+ 0x212c, 0x212d,
+ 0x212f, 0x2131,
+ 0x2133, 0x2138,
+ 0x213c, 0x2149,
+ 0x214b, 0x214b,
+ 0x2190, 0x21a7,
+ 0x21a9, 0x21ae,
+ 0x21b0, 0x21b1,
+ 0x21b6, 0x21b7,
+ 0x21bc, 0x21db,
+ 0x21dd, 0x21dd,
+ 0x21e4, 0x21e5,
+ 0x21f4, 0x22ff,
+ 0x2308, 0x230b,
+ 0x2320, 0x2321,
+ 0x237c, 0x237c,
+ 0x239b, 0x23b5,
+ 0x23b7, 0x23b7,
+ 0x23d0, 0x23d0,
+ 0x23dc, 0x23e2,
+ 0x25a0, 0x25a1,
+ 0x25ae, 0x25b7,
+ 0x25bc, 0x25c1,
+ 0x25c6, 0x25c7,
+ 0x25ca, 0x25cb,
+ 0x25cf, 0x25d3,
+ 0x25e2, 0x25e2,
+ 0x25e4, 0x25e4,
+ 0x25e7, 0x25ec,
+ 0x25f8, 0x25ff,
+ 0x2605, 0x2606,
+ 0x2640, 0x2640,
+ 0x2642, 0x2642,
+ 0x2660, 0x2663,
+ 0x266d, 0x266f,
+ 0x27c0, 0x27ca,
+ 0x27cc, 0x27cc,
+ 0x27ce, 0x27ff,
+ 0x2900, 0x2aff,
+ 0x2b30, 0x2b44,
+ 0x2b47, 0x2b4c,
+ 0xfb29, 0xfb29,
+ 0xfe61, 0xfe66,
+ 0xfe68, 0xfe68,
+ 0xff0b, 0xff0b,
+ 0xff1c, 0xff1e,
+ 0xff3c, 0xff3c,
+ 0xff3e, 0xff3e,
+ 0xff5c, 0xff5c,
+ 0xff5e, 0xff5e,
+ 0xffe2, 0xffe2,
+ 0xffe9, 0xffec,
+ 0x1d400, 0x1d454,
+ 0x1d456, 0x1d49c,
+ 0x1d49e, 0x1d49f,
+ 0x1d4a2, 0x1d4a2,
+ 0x1d4a5, 0x1d4a6,
+ 0x1d4a9, 0x1d4ac,
+ 0x1d4ae, 0x1d4b9,
+ 0x1d4bb, 0x1d4bb,
+ 0x1d4bd, 0x1d4c3,
+ 0x1d4c5, 0x1d505,
+ 0x1d507, 0x1d50a,
+ 0x1d50d, 0x1d514,
+ 0x1d516, 0x1d51c,
+ 0x1d51e, 0x1d539,
+ 0x1d53b, 0x1d53e,
+ 0x1d540, 0x1d544,
+ 0x1d546, 0x1d546,
+ 0x1d54a, 0x1d550,
+ 0x1d552, 0x1d6a5,
+ 0x1d6a8, 0x1d7cb,
+ 0x1d7ce, 0x1d7ff,
+}; /* CR_Math */
+
+/* 'Alphabetic': Derived Property */
+static const OnigCodePoint CR_Alphabetic[] = {
+ 486,
+ 0x0041, 0x005a,
+ 0x0061, 0x007a,
+ 0x00aa, 0x00aa,
+ 0x00b5, 0x00b5,
+ 0x00ba, 0x00ba,
+ 0x00c0, 0x00d6,
+ 0x00d8, 0x00f6,
+ 0x00f8, 0x02c1,
+ 0x02c6, 0x02d1,
+ 0x02e0, 0x02e4,
+ 0x02ec, 0x02ec,
+ 0x02ee, 0x02ee,
+ 0x0345, 0x0345,
+ 0x0370, 0x0374,
+ 0x0376, 0x0377,
+ 0x037a, 0x037d,
+ 0x0386, 0x0386,
+ 0x0388, 0x038a,
+ 0x038c, 0x038c,
+ 0x038e, 0x03a1,
+ 0x03a3, 0x03f5,
+ 0x03f7, 0x0481,
+ 0x048a, 0x0527,
+ 0x0531, 0x0556,
+ 0x0559, 0x0559,
+ 0x0561, 0x0587,
+ 0x05b0, 0x05bd,
+ 0x05bf, 0x05bf,
+ 0x05c1, 0x05c2,
+ 0x05c4, 0x05c5,
+ 0x05c7, 0x05c7,
+ 0x05d0, 0x05ea,
+ 0x05f0, 0x05f2,
+ 0x0610, 0x061a,
+ 0x0620, 0x0657,
+ 0x0659, 0x065f,
+ 0x066e, 0x06d3,
+ 0x06d5, 0x06dc,
+ 0x06e1, 0x06e8,
+ 0x06ed, 0x06ef,
+ 0x06fa, 0x06fc,
+ 0x06ff, 0x06ff,
+ 0x0710, 0x073f,
+ 0x074d, 0x07b1,
+ 0x07ca, 0x07ea,
+ 0x07f4, 0x07f5,
+ 0x07fa, 0x07fa,
+ 0x0800, 0x0817,
+ 0x081a, 0x082c,
+ 0x0840, 0x0858,
+ 0x0900, 0x093b,
+ 0x093d, 0x094c,
+ 0x094e, 0x0950,
+ 0x0955, 0x0963,
+ 0x0971, 0x0977,
+ 0x0979, 0x097f,
+ 0x0981, 0x0983,
+ 0x0985, 0x098c,
+ 0x098f, 0x0990,
+ 0x0993, 0x09a8,
+ 0x09aa, 0x09b0,
+ 0x09b2, 0x09b2,
+ 0x09b6, 0x09b9,
+ 0x09bd, 0x09c4,
+ 0x09c7, 0x09c8,
+ 0x09cb, 0x09cc,
+ 0x09ce, 0x09ce,
+ 0x09d7, 0x09d7,
+ 0x09dc, 0x09dd,
+ 0x09df, 0x09e3,
+ 0x09f0, 0x09f1,
+ 0x0a01, 0x0a03,
+ 0x0a05, 0x0a0a,
+ 0x0a0f, 0x0a10,
+ 0x0a13, 0x0a28,
+ 0x0a2a, 0x0a30,
+ 0x0a32, 0x0a33,
+ 0x0a35, 0x0a36,
+ 0x0a38, 0x0a39,
+ 0x0a3e, 0x0a42,
+ 0x0a47, 0x0a48,
+ 0x0a4b, 0x0a4c,
+ 0x0a51, 0x0a51,
+ 0x0a59, 0x0a5c,
+ 0x0a5e, 0x0a5e,
+ 0x0a70, 0x0a75,
+ 0x0a81, 0x0a83,
+ 0x0a85, 0x0a8d,
+ 0x0a8f, 0x0a91,
+ 0x0a93, 0x0aa8,
+ 0x0aaa, 0x0ab0,
+ 0x0ab2, 0x0ab3,
+ 0x0ab5, 0x0ab9,
+ 0x0abd, 0x0ac5,
+ 0x0ac7, 0x0ac9,
+ 0x0acb, 0x0acc,
+ 0x0ad0, 0x0ad0,
+ 0x0ae0, 0x0ae3,
+ 0x0b01, 0x0b03,
+ 0x0b05, 0x0b0c,
+ 0x0b0f, 0x0b10,
+ 0x0b13, 0x0b28,
+ 0x0b2a, 0x0b30,
+ 0x0b32, 0x0b33,
+ 0x0b35, 0x0b39,
+ 0x0b3d, 0x0b44,
+ 0x0b47, 0x0b48,
+ 0x0b4b, 0x0b4c,
+ 0x0b56, 0x0b57,
+ 0x0b5c, 0x0b5d,
+ 0x0b5f, 0x0b63,
+ 0x0b71, 0x0b71,
+ 0x0b82, 0x0b83,
+ 0x0b85, 0x0b8a,
+ 0x0b8e, 0x0b90,
+ 0x0b92, 0x0b95,
+ 0x0b99, 0x0b9a,
+ 0x0b9c, 0x0b9c,
+ 0x0b9e, 0x0b9f,
+ 0x0ba3, 0x0ba4,
+ 0x0ba8, 0x0baa,
+ 0x0bae, 0x0bb9,
+ 0x0bbe, 0x0bc2,
+ 0x0bc6, 0x0bc8,
+ 0x0bca, 0x0bcc,
+ 0x0bd0, 0x0bd0,
+ 0x0bd7, 0x0bd7,
+ 0x0c01, 0x0c03,
+ 0x0c05, 0x0c0c,
+ 0x0c0e, 0x0c10,
+ 0x0c12, 0x0c28,
+ 0x0c2a, 0x0c33,
+ 0x0c35, 0x0c39,
+ 0x0c3d, 0x0c44,
+ 0x0c46, 0x0c48,
+ 0x0c4a, 0x0c4c,
+ 0x0c55, 0x0c56,
+ 0x0c58, 0x0c59,
+ 0x0c60, 0x0c63,
+ 0x0c82, 0x0c83,
+ 0x0c85, 0x0c8c,
+ 0x0c8e, 0x0c90,
+ 0x0c92, 0x0ca8,
+ 0x0caa, 0x0cb3,
+ 0x0cb5, 0x0cb9,
+ 0x0cbd, 0x0cc4,
+ 0x0cc6, 0x0cc8,
+ 0x0cca, 0x0ccc,
+ 0x0cd5, 0x0cd6,
+ 0x0cde, 0x0cde,
+ 0x0ce0, 0x0ce3,
+ 0x0cf1, 0x0cf2,
+ 0x0d02, 0x0d03,
+ 0x0d05, 0x0d0c,
+ 0x0d0e, 0x0d10,
+ 0x0d12, 0x0d3a,
+ 0x0d3d, 0x0d44,
+ 0x0d46, 0x0d48,
+ 0x0d4a, 0x0d4c,
+ 0x0d4e, 0x0d4e,
+ 0x0d57, 0x0d57,
+ 0x0d60, 0x0d63,
+ 0x0d7a, 0x0d7f,
+ 0x0d82, 0x0d83,
+ 0x0d85, 0x0d96,
+ 0x0d9a, 0x0db1,
+ 0x0db3, 0x0dbb,
+ 0x0dbd, 0x0dbd,
+ 0x0dc0, 0x0dc6,
+ 0x0dcf, 0x0dd4,
+ 0x0dd6, 0x0dd6,
+ 0x0dd8, 0x0ddf,
+ 0x0df2, 0x0df3,
+ 0x0e01, 0x0e3a,
+ 0x0e40, 0x0e46,
+ 0x0e4d, 0x0e4d,
+ 0x0e81, 0x0e82,
+ 0x0e84, 0x0e84,
+ 0x0e87, 0x0e88,
+ 0x0e8a, 0x0e8a,
+ 0x0e8d, 0x0e8d,
+ 0x0e94, 0x0e97,
+ 0x0e99, 0x0e9f,
+ 0x0ea1, 0x0ea3,
+ 0x0ea5, 0x0ea5,
+ 0x0ea7, 0x0ea7,
+ 0x0eaa, 0x0eab,
+ 0x0ead, 0x0eb9,
+ 0x0ebb, 0x0ebd,
+ 0x0ec0, 0x0ec4,
+ 0x0ec6, 0x0ec6,
+ 0x0ecd, 0x0ecd,
+ 0x0edc, 0x0edd,
+ 0x0f00, 0x0f00,
+ 0x0f40, 0x0f47,
+ 0x0f49, 0x0f6c,
+ 0x0f71, 0x0f81,
+ 0x0f88, 0x0f97,
+ 0x0f99, 0x0fbc,
+ 0x1000, 0x1036,
+ 0x1038, 0x1038,
+ 0x103b, 0x103f,
+ 0x1050, 0x1062,
+ 0x1065, 0x1068,
+ 0x106e, 0x1086,
+ 0x108e, 0x108e,
+ 0x109c, 0x109d,
+ 0x10a0, 0x10c5,
+ 0x10d0, 0x10fa,
+ 0x10fc, 0x10fc,
+ 0x1100, 0x1248,
+ 0x124a, 0x124d,
+ 0x1250, 0x1256,
+ 0x1258, 0x1258,
+ 0x125a, 0x125d,
+ 0x1260, 0x1288,
+ 0x128a, 0x128d,
+ 0x1290, 0x12b0,
+ 0x12b2, 0x12b5,
+ 0x12b8, 0x12be,
+ 0x12c0, 0x12c0,
+ 0x12c2, 0x12c5,
+ 0x12c8, 0x12d6,
+ 0x12d8, 0x1310,
+ 0x1312, 0x1315,
+ 0x1318, 0x135a,
+ 0x135f, 0x135f,
+ 0x1380, 0x138f,
+ 0x13a0, 0x13f4,
+ 0x1401, 0x166c,
+ 0x166f, 0x167f,
+ 0x1681, 0x169a,
+ 0x16a0, 0x16ea,
+ 0x16ee, 0x16f0,
+ 0x1700, 0x170c,
+ 0x170e, 0x1713,
+ 0x1720, 0x1733,
+ 0x1740, 0x1753,
+ 0x1760, 0x176c,
+ 0x176e, 0x1770,
+ 0x1772, 0x1773,
+ 0x1780, 0x17b3,
+ 0x17b6, 0x17c8,
+ 0x17d7, 0x17d7,
+ 0x17dc, 0x17dc,
+ 0x1820, 0x1877,
+ 0x1880, 0x18aa,
+ 0x18b0, 0x18f5,
+ 0x1900, 0x191c,
+ 0x1920, 0x192b,
+ 0x1930, 0x1938,
+ 0x1950, 0x196d,
+ 0x1970, 0x1974,
+ 0x1980, 0x19ab,
+ 0x19b0, 0x19c9,
+ 0x1a00, 0x1a1b,
+ 0x1a20, 0x1a5e,
+ 0x1a61, 0x1a74,
+ 0x1aa7, 0x1aa7,
+ 0x1b00, 0x1b33,
+ 0x1b35, 0x1b43,
+ 0x1b45, 0x1b4b,
+ 0x1b80, 0x1ba9,
+ 0x1bae, 0x1baf,
+ 0x1bc0, 0x1be5,
+ 0x1be7, 0x1bf1,
+ 0x1c00, 0x1c35,
+ 0x1c4d, 0x1c4f,
+ 0x1c5a, 0x1c7d,
+ 0x1ce9, 0x1cec,
+ 0x1cee, 0x1cf2,
+ 0x1d00, 0x1dbf,
+ 0x1e00, 0x1f15,
+ 0x1f18, 0x1f1d,
+ 0x1f20, 0x1f45,
+ 0x1f48, 0x1f4d,
+ 0x1f50, 0x1f57,
+ 0x1f59, 0x1f59,
+ 0x1f5b, 0x1f5b,
+ 0x1f5d, 0x1f5d,
+ 0x1f5f, 0x1f7d,
+ 0x1f80, 0x1fb4,
+ 0x1fb6, 0x1fbc,
+ 0x1fbe, 0x1fbe,
+ 0x1fc2, 0x1fc4,
+ 0x1fc6, 0x1fcc,
+ 0x1fd0, 0x1fd3,
+ 0x1fd6, 0x1fdb,
+ 0x1fe0, 0x1fec,
+ 0x1ff2, 0x1ff4,
+ 0x1ff6, 0x1ffc,
+ 0x2071, 0x2071,
+ 0x207f, 0x207f,
+ 0x2090, 0x209c,
+ 0x2102, 0x2102,
+ 0x2107, 0x2107,
+ 0x210a, 0x2113,
+ 0x2115, 0x2115,
+ 0x2119, 0x211d,
+ 0x2124, 0x2124,
+ 0x2126, 0x2126,
+ 0x2128, 0x2128,
+ 0x212a, 0x212d,
+ 0x212f, 0x2139,
+ 0x213c, 0x213f,
+ 0x2145, 0x2149,
+ 0x214e, 0x214e,
+ 0x2160, 0x2188,
+ 0x24b6, 0x24e9,
+ 0x2c00, 0x2c2e,
+ 0x2c30, 0x2c5e,
+ 0x2c60, 0x2ce4,
+ 0x2ceb, 0x2cee,
+ 0x2d00, 0x2d25,
+ 0x2d30, 0x2d65,
+ 0x2d6f, 0x2d6f,
+ 0x2d80, 0x2d96,
+ 0x2da0, 0x2da6,
+ 0x2da8, 0x2dae,
+ 0x2db0, 0x2db6,
+ 0x2db8, 0x2dbe,
+ 0x2dc0, 0x2dc6,
+ 0x2dc8, 0x2dce,
+ 0x2dd0, 0x2dd6,
+ 0x2dd8, 0x2dde,
+ 0x2de0, 0x2dff,
+ 0x2e2f, 0x2e2f,
+ 0x3005, 0x3007,
+ 0x3021, 0x3029,
+ 0x3031, 0x3035,
+ 0x3038, 0x303c,
+ 0x3041, 0x3096,
+ 0x309d, 0x309f,
+ 0x30a1, 0x30fa,
+ 0x30fc, 0x30ff,
+ 0x3105, 0x312d,
+ 0x3131, 0x318e,
+ 0x31a0, 0x31ba,
+ 0x31f0, 0x31ff,
+ 0x3400, 0x4db5,
+ 0x4e00, 0x9fcb,
+ 0xa000, 0xa48c,
+ 0xa4d0, 0xa4fd,
+ 0xa500, 0xa60c,
+ 0xa610, 0xa61f,
+ 0xa62a, 0xa62b,
+ 0xa640, 0xa66e,
+ 0xa67f, 0xa697,
+ 0xa6a0, 0xa6ef,
+ 0xa717, 0xa71f,
+ 0xa722, 0xa788,
+ 0xa78b, 0xa78e,
+ 0xa790, 0xa791,
+ 0xa7a0, 0xa7a9,
+ 0xa7fa, 0xa801,
+ 0xa803, 0xa805,
+ 0xa807, 0xa80a,
+ 0xa80c, 0xa827,
+ 0xa840, 0xa873,
+ 0xa880, 0xa8c3,
+ 0xa8f2, 0xa8f7,
+ 0xa8fb, 0xa8fb,
+ 0xa90a, 0xa92a,
+ 0xa930, 0xa952,
+ 0xa960, 0xa97c,
+ 0xa980, 0xa9b2,
+ 0xa9b4, 0xa9bf,
+ 0xa9cf, 0xa9cf,
+ 0xaa00, 0xaa36,
+ 0xaa40, 0xaa4d,
+ 0xaa60, 0xaa76,
+ 0xaa7a, 0xaa7a,
+ 0xaa80, 0xaabe,
+ 0xaac0, 0xaac0,
+ 0xaac2, 0xaac2,
+ 0xaadb, 0xaadd,
+ 0xab01, 0xab06,
+ 0xab09, 0xab0e,
+ 0xab11, 0xab16,
+ 0xab20, 0xab26,
+ 0xab28, 0xab2e,
+ 0xabc0, 0xabea,
+ 0xac00, 0xd7a3,
+ 0xd7b0, 0xd7c6,
+ 0xd7cb, 0xd7fb,
+ 0xf900, 0xfa2d,
+ 0xfa30, 0xfa6d,
+ 0xfa70, 0xfad9,
+ 0xfb00, 0xfb06,
+ 0xfb13, 0xfb17,
+ 0xfb1d, 0xfb28,
+ 0xfb2a, 0xfb36,
+ 0xfb38, 0xfb3c,
+ 0xfb3e, 0xfb3e,
+ 0xfb40, 0xfb41,
+ 0xfb43, 0xfb44,
+ 0xfb46, 0xfbb1,
+ 0xfbd3, 0xfd3d,
+ 0xfd50, 0xfd8f,
+ 0xfd92, 0xfdc7,
+ 0xfdf0, 0xfdfb,
+ 0xfe70, 0xfe74,
+ 0xfe76, 0xfefc,
+ 0xff21, 0xff3a,
+ 0xff41, 0xff5a,
+ 0xff66, 0xffbe,
+ 0xffc2, 0xffc7,
+ 0xffca, 0xffcf,
+ 0xffd2, 0xffd7,
+ 0xffda, 0xffdc,
+ 0x10000, 0x1000b,
+ 0x1000d, 0x10026,
+ 0x10028, 0x1003a,
+ 0x1003c, 0x1003d,
+ 0x1003f, 0x1004d,
+ 0x10050, 0x1005d,
+ 0x10080, 0x100fa,
+ 0x10140, 0x10174,
+ 0x10280, 0x1029c,
+ 0x102a0, 0x102d0,
+ 0x10300, 0x1031e,
+ 0x10330, 0x1034a,
+ 0x10380, 0x1039d,
+ 0x103a0, 0x103c3,
+ 0x103c8, 0x103cf,
+ 0x103d1, 0x103d5,
+ 0x10400, 0x1049d,
+ 0x10800, 0x10805,
+ 0x10808, 0x10808,
+ 0x1080a, 0x10835,
+ 0x10837, 0x10838,
+ 0x1083c, 0x1083c,
+ 0x1083f, 0x10855,
+ 0x10900, 0x10915,
+ 0x10920, 0x10939,
+ 0x10a00, 0x10a03,
+ 0x10a05, 0x10a06,
+ 0x10a0c, 0x10a13,
+ 0x10a15, 0x10a17,
+ 0x10a19, 0x10a33,
+ 0x10a60, 0x10a7c,
+ 0x10b00, 0x10b35,
+ 0x10b40, 0x10b55,
+ 0x10b60, 0x10b72,
+ 0x10c00, 0x10c48,
+ 0x11000, 0x11045,
+ 0x11082, 0x110b8,
+ 0x12000, 0x1236e,
+ 0x12400, 0x12462,
+ 0x13000, 0x1342e,
+ 0x16800, 0x16a38,
+ 0x1b000, 0x1b001,
+ 0x1d400, 0x1d454,
+ 0x1d456, 0x1d49c,
+ 0x1d49e, 0x1d49f,
+ 0x1d4a2, 0x1d4a2,
+ 0x1d4a5, 0x1d4a6,
+ 0x1d4a9, 0x1d4ac,
+ 0x1d4ae, 0x1d4b9,
+ 0x1d4bb, 0x1d4bb,
+ 0x1d4bd, 0x1d4c3,
+ 0x1d4c5, 0x1d505,
+ 0x1d507, 0x1d50a,
+ 0x1d50d, 0x1d514,
+ 0x1d516, 0x1d51c,
+ 0x1d51e, 0x1d539,
+ 0x1d53b, 0x1d53e,
+ 0x1d540, 0x1d544,
+ 0x1d546, 0x1d546,
+ 0x1d54a, 0x1d550,
+ 0x1d552, 0x1d6a5,
+ 0x1d6a8, 0x1d6c0,
+ 0x1d6c2, 0x1d6da,
+ 0x1d6dc, 0x1d6fa,
+ 0x1d6fc, 0x1d714,
+ 0x1d716, 0x1d734,
+ 0x1d736, 0x1d74e,
+ 0x1d750, 0x1d76e,
+ 0x1d770, 0x1d788,
+ 0x1d78a, 0x1d7a8,
+ 0x1d7aa, 0x1d7c2,
+ 0x1d7c4, 0x1d7cb,
+ 0x20000, 0x2a6d6,
+ 0x2a700, 0x2b734,
+ 0x2b740, 0x2b81d,
+ 0x2f800, 0x2fa1d,
+}; /* CR_Alphabetic */
+
+/* 'Lowercase': Derived Property */
+static const OnigCodePoint CR_Lowercase[] = {
+ 612,
+ 0x0061, 0x007a,
+ 0x00aa, 0x00aa,
+ 0x00b5, 0x00b5,
+ 0x00ba, 0x00ba,
+ 0x00df, 0x00f6,
+ 0x00f8, 0x00ff,
+ 0x0101, 0x0101,
+ 0x0103, 0x0103,
+ 0x0105, 0x0105,
+ 0x0107, 0x0107,
+ 0x0109, 0x0109,
+ 0x010b, 0x010b,
+ 0x010d, 0x010d,
+ 0x010f, 0x010f,
+ 0x0111, 0x0111,
+ 0x0113, 0x0113,
+ 0x0115, 0x0115,
+ 0x0117, 0x0117,
+ 0x0119, 0x0119,
+ 0x011b, 0x011b,
+ 0x011d, 0x011d,
+ 0x011f, 0x011f,
+ 0x0121, 0x0121,
+ 0x0123, 0x0123,
+ 0x0125, 0x0125,
+ 0x0127, 0x0127,
+ 0x0129, 0x0129,
+ 0x012b, 0x012b,
+ 0x012d, 0x012d,
+ 0x012f, 0x012f,
+ 0x0131, 0x0131,
+ 0x0133, 0x0133,
+ 0x0135, 0x0135,
+ 0x0137, 0x0138,
+ 0x013a, 0x013a,
+ 0x013c, 0x013c,
+ 0x013e, 0x013e,
+ 0x0140, 0x0140,
+ 0x0142, 0x0142,
+ 0x0144, 0x0144,
+ 0x0146, 0x0146,
+ 0x0148, 0x0149,
+ 0x014b, 0x014b,
+ 0x014d, 0x014d,
+ 0x014f, 0x014f,
+ 0x0151, 0x0151,
+ 0x0153, 0x0153,
+ 0x0155, 0x0155,
+ 0x0157, 0x0157,
+ 0x0159, 0x0159,
+ 0x015b, 0x015b,
+ 0x015d, 0x015d,
+ 0x015f, 0x015f,
+ 0x0161, 0x0161,
+ 0x0163, 0x0163,
+ 0x0165, 0x0165,
+ 0x0167, 0x0167,
+ 0x0169, 0x0169,
+ 0x016b, 0x016b,
+ 0x016d, 0x016d,
+ 0x016f, 0x016f,
+ 0x0171, 0x0171,
+ 0x0173, 0x0173,
+ 0x0175, 0x0175,
+ 0x0177, 0x0177,
+ 0x017a, 0x017a,
+ 0x017c, 0x017c,
+ 0x017e, 0x0180,
+ 0x0183, 0x0183,
+ 0x0185, 0x0185,
+ 0x0188, 0x0188,
+ 0x018c, 0x018d,
+ 0x0192, 0x0192,
+ 0x0195, 0x0195,
+ 0x0199, 0x019b,
+ 0x019e, 0x019e,
+ 0x01a1, 0x01a1,
+ 0x01a3, 0x01a3,
+ 0x01a5, 0x01a5,
+ 0x01a8, 0x01a8,
+ 0x01aa, 0x01ab,
+ 0x01ad, 0x01ad,
+ 0x01b0, 0x01b0,
+ 0x01b4, 0x01b4,
+ 0x01b6, 0x01b6,
+ 0x01b9, 0x01ba,
+ 0x01bd, 0x01bf,
+ 0x01c6, 0x01c6,
+ 0x01c9, 0x01c9,
+ 0x01cc, 0x01cc,
+ 0x01ce, 0x01ce,
+ 0x01d0, 0x01d0,
+ 0x01d2, 0x01d2,
+ 0x01d4, 0x01d4,
+ 0x01d6, 0x01d6,
+ 0x01d8, 0x01d8,
+ 0x01da, 0x01da,
+ 0x01dc, 0x01dd,
+ 0x01df, 0x01df,
+ 0x01e1, 0x01e1,
+ 0x01e3, 0x01e3,
+ 0x01e5, 0x01e5,
+ 0x01e7, 0x01e7,
+ 0x01e9, 0x01e9,
+ 0x01eb, 0x01eb,
+ 0x01ed, 0x01ed,
+ 0x01ef, 0x01f0,
+ 0x01f3, 0x01f3,
+ 0x01f5, 0x01f5,
+ 0x01f9, 0x01f9,
+ 0x01fb, 0x01fb,
+ 0x01fd, 0x01fd,
+ 0x01ff, 0x01ff,
+ 0x0201, 0x0201,
+ 0x0203, 0x0203,
+ 0x0205, 0x0205,
+ 0x0207, 0x0207,
+ 0x0209, 0x0209,
+ 0x020b, 0x020b,
+ 0x020d, 0x020d,
+ 0x020f, 0x020f,
+ 0x0211, 0x0211,
+ 0x0213, 0x0213,
+ 0x0215, 0x0215,
+ 0x0217, 0x0217,
+ 0x0219, 0x0219,
+ 0x021b, 0x021b,
+ 0x021d, 0x021d,
+ 0x021f, 0x021f,
+ 0x0221, 0x0221,
+ 0x0223, 0x0223,
+ 0x0225, 0x0225,
+ 0x0227, 0x0227,
+ 0x0229, 0x0229,
+ 0x022b, 0x022b,
+ 0x022d, 0x022d,
+ 0x022f, 0x022f,
+ 0x0231, 0x0231,
+ 0x0233, 0x0239,
+ 0x023c, 0x023c,
+ 0x023f, 0x0240,
+ 0x0242, 0x0242,
+ 0x0247, 0x0247,
+ 0x0249, 0x0249,
+ 0x024b, 0x024b,
+ 0x024d, 0x024d,
+ 0x024f, 0x0293,
+ 0x0295, 0x02b8,
+ 0x02c0, 0x02c1,
+ 0x02e0, 0x02e4,
+ 0x0345, 0x0345,
+ 0x0371, 0x0371,
+ 0x0373, 0x0373,
+ 0x0377, 0x0377,
+ 0x037a, 0x037d,
+ 0x0390, 0x0390,
+ 0x03ac, 0x03ce,
+ 0x03d0, 0x03d1,
+ 0x03d5, 0x03d7,
+ 0x03d9, 0x03d9,
+ 0x03db, 0x03db,
+ 0x03dd, 0x03dd,
+ 0x03df, 0x03df,
+ 0x03e1, 0x03e1,
+ 0x03e3, 0x03e3,
+ 0x03e5, 0x03e5,
+ 0x03e7, 0x03e7,
+ 0x03e9, 0x03e9,
+ 0x03eb, 0x03eb,
+ 0x03ed, 0x03ed,
+ 0x03ef, 0x03f3,
+ 0x03f5, 0x03f5,
+ 0x03f8, 0x03f8,
+ 0x03fb, 0x03fc,
+ 0x0430, 0x045f,
+ 0x0461, 0x0461,
+ 0x0463, 0x0463,
+ 0x0465, 0x0465,
+ 0x0467, 0x0467,
+ 0x0469, 0x0469,
+ 0x046b, 0x046b,
+ 0x046d, 0x046d,
+ 0x046f, 0x046f,
+ 0x0471, 0x0471,
+ 0x0473, 0x0473,
+ 0x0475, 0x0475,
+ 0x0477, 0x0477,
+ 0x0479, 0x0479,
+ 0x047b, 0x047b,
+ 0x047d, 0x047d,
+ 0x047f, 0x047f,
+ 0x0481, 0x0481,
+ 0x048b, 0x048b,
+ 0x048d, 0x048d,
+ 0x048f, 0x048f,
+ 0x0491, 0x0491,
+ 0x0493, 0x0493,
+ 0x0495, 0x0495,
+ 0x0497, 0x0497,
+ 0x0499, 0x0499,
+ 0x049b, 0x049b,
+ 0x049d, 0x049d,
+ 0x049f, 0x049f,
+ 0x04a1, 0x04a1,
+ 0x04a3, 0x04a3,
+ 0x04a5, 0x04a5,
+ 0x04a7, 0x04a7,
+ 0x04a9, 0x04a9,
+ 0x04ab, 0x04ab,
+ 0x04ad, 0x04ad,
+ 0x04af, 0x04af,
+ 0x04b1, 0x04b1,
+ 0x04b3, 0x04b3,
+ 0x04b5, 0x04b5,
+ 0x04b7, 0x04b7,
+ 0x04b9, 0x04b9,
+ 0x04bb, 0x04bb,
+ 0x04bd, 0x04bd,
+ 0x04bf, 0x04bf,
+ 0x04c2, 0x04c2,
+ 0x04c4, 0x04c4,
+ 0x04c6, 0x04c6,
+ 0x04c8, 0x04c8,
+ 0x04ca, 0x04ca,
+ 0x04cc, 0x04cc,
+ 0x04ce, 0x04cf,
+ 0x04d1, 0x04d1,
+ 0x04d3, 0x04d3,
+ 0x04d5, 0x04d5,
+ 0x04d7, 0x04d7,
+ 0x04d9, 0x04d9,
+ 0x04db, 0x04db,
+ 0x04dd, 0x04dd,
+ 0x04df, 0x04df,
+ 0x04e1, 0x04e1,
+ 0x04e3, 0x04e3,
+ 0x04e5, 0x04e5,
+ 0x04e7, 0x04e7,
+ 0x04e9, 0x04e9,
+ 0x04eb, 0x04eb,
+ 0x04ed, 0x04ed,
+ 0x04ef, 0x04ef,
+ 0x04f1, 0x04f1,
+ 0x04f3, 0x04f3,
+ 0x04f5, 0x04f5,
+ 0x04f7, 0x04f7,
+ 0x04f9, 0x04f9,
+ 0x04fb, 0x04fb,
+ 0x04fd, 0x04fd,
+ 0x04ff, 0x04ff,
+ 0x0501, 0x0501,
+ 0x0503, 0x0503,
+ 0x0505, 0x0505,
+ 0x0507, 0x0507,
+ 0x0509, 0x0509,
+ 0x050b, 0x050b,
+ 0x050d, 0x050d,
+ 0x050f, 0x050f,
+ 0x0511, 0x0511,
+ 0x0513, 0x0513,
+ 0x0515, 0x0515,
+ 0x0517, 0x0517,
+ 0x0519, 0x0519,
+ 0x051b, 0x051b,
+ 0x051d, 0x051d,
+ 0x051f, 0x051f,
+ 0x0521, 0x0521,
+ 0x0523, 0x0523,
+ 0x0525, 0x0525,
+ 0x0527, 0x0527,
+ 0x0561, 0x0587,
+ 0x1d00, 0x1dbf,
+ 0x1e01, 0x1e01,
+ 0x1e03, 0x1e03,
+ 0x1e05, 0x1e05,
+ 0x1e07, 0x1e07,
+ 0x1e09, 0x1e09,
+ 0x1e0b, 0x1e0b,
+ 0x1e0d, 0x1e0d,
+ 0x1e0f, 0x1e0f,
+ 0x1e11, 0x1e11,
+ 0x1e13, 0x1e13,
+ 0x1e15, 0x1e15,
+ 0x1e17, 0x1e17,
+ 0x1e19, 0x1e19,
+ 0x1e1b, 0x1e1b,
+ 0x1e1d, 0x1e1d,
+ 0x1e1f, 0x1e1f,
+ 0x1e21, 0x1e21,
+ 0x1e23, 0x1e23,
+ 0x1e25, 0x1e25,
+ 0x1e27, 0x1e27,
+ 0x1e29, 0x1e29,
+ 0x1e2b, 0x1e2b,
+ 0x1e2d, 0x1e2d,
+ 0x1e2f, 0x1e2f,
+ 0x1e31, 0x1e31,
+ 0x1e33, 0x1e33,
+ 0x1e35, 0x1e35,
+ 0x1e37, 0x1e37,
+ 0x1e39, 0x1e39,
+ 0x1e3b, 0x1e3b,
+ 0x1e3d, 0x1e3d,
+ 0x1e3f, 0x1e3f,
+ 0x1e41, 0x1e41,
+ 0x1e43, 0x1e43,
+ 0x1e45, 0x1e45,
+ 0x1e47, 0x1e47,
+ 0x1e49, 0x1e49,
+ 0x1e4b, 0x1e4b,
+ 0x1e4d, 0x1e4d,
+ 0x1e4f, 0x1e4f,
+ 0x1e51, 0x1e51,
+ 0x1e53, 0x1e53,
+ 0x1e55, 0x1e55,
+ 0x1e57, 0x1e57,
+ 0x1e59, 0x1e59,
+ 0x1e5b, 0x1e5b,
+ 0x1e5d, 0x1e5d,
+ 0x1e5f, 0x1e5f,
+ 0x1e61, 0x1e61,
+ 0x1e63, 0x1e63,
+ 0x1e65, 0x1e65,
+ 0x1e67, 0x1e67,
+ 0x1e69, 0x1e69,
+ 0x1e6b, 0x1e6b,
+ 0x1e6d, 0x1e6d,
+ 0x1e6f, 0x1e6f,
+ 0x1e71, 0x1e71,
+ 0x1e73, 0x1e73,
+ 0x1e75, 0x1e75,
+ 0x1e77, 0x1e77,
+ 0x1e79, 0x1e79,
+ 0x1e7b, 0x1e7b,
+ 0x1e7d, 0x1e7d,
+ 0x1e7f, 0x1e7f,
+ 0x1e81, 0x1e81,
+ 0x1e83, 0x1e83,
+ 0x1e85, 0x1e85,
+ 0x1e87, 0x1e87,
+ 0x1e89, 0x1e89,
+ 0x1e8b, 0x1e8b,
+ 0x1e8d, 0x1e8d,
+ 0x1e8f, 0x1e8f,
+ 0x1e91, 0x1e91,
+ 0x1e93, 0x1e93,
+ 0x1e95, 0x1e9d,
+ 0x1e9f, 0x1e9f,
+ 0x1ea1, 0x1ea1,
+ 0x1ea3, 0x1ea3,
+ 0x1ea5, 0x1ea5,
+ 0x1ea7, 0x1ea7,
+ 0x1ea9, 0x1ea9,
+ 0x1eab, 0x1eab,
+ 0x1ead, 0x1ead,
+ 0x1eaf, 0x1eaf,
+ 0x1eb1, 0x1eb1,
+ 0x1eb3, 0x1eb3,
+ 0x1eb5, 0x1eb5,
+ 0x1eb7, 0x1eb7,
+ 0x1eb9, 0x1eb9,
+ 0x1ebb, 0x1ebb,
+ 0x1ebd, 0x1ebd,
+ 0x1ebf, 0x1ebf,
+ 0x1ec1, 0x1ec1,
+ 0x1ec3, 0x1ec3,
+ 0x1ec5, 0x1ec5,
+ 0x1ec7, 0x1ec7,
+ 0x1ec9, 0x1ec9,
+ 0x1ecb, 0x1ecb,
+ 0x1ecd, 0x1ecd,
+ 0x1ecf, 0x1ecf,
+ 0x1ed1, 0x1ed1,
+ 0x1ed3, 0x1ed3,
+ 0x1ed5, 0x1ed5,
+ 0x1ed7, 0x1ed7,
+ 0x1ed9, 0x1ed9,
+ 0x1edb, 0x1edb,
+ 0x1edd, 0x1edd,
+ 0x1edf, 0x1edf,
+ 0x1ee1, 0x1ee1,
+ 0x1ee3, 0x1ee3,
+ 0x1ee5, 0x1ee5,
+ 0x1ee7, 0x1ee7,
+ 0x1ee9, 0x1ee9,
+ 0x1eeb, 0x1eeb,
+ 0x1eed, 0x1eed,
+ 0x1eef, 0x1eef,
+ 0x1ef1, 0x1ef1,
+ 0x1ef3, 0x1ef3,
+ 0x1ef5, 0x1ef5,
+ 0x1ef7, 0x1ef7,
+ 0x1ef9, 0x1ef9,
+ 0x1efb, 0x1efb,
+ 0x1efd, 0x1efd,
+ 0x1eff, 0x1f07,
+ 0x1f10, 0x1f15,
+ 0x1f20, 0x1f27,
+ 0x1f30, 0x1f37,
+ 0x1f40, 0x1f45,
+ 0x1f50, 0x1f57,
+ 0x1f60, 0x1f67,
+ 0x1f70, 0x1f7d,
+ 0x1f80, 0x1f87,
+ 0x1f90, 0x1f97,
+ 0x1fa0, 0x1fa7,
+ 0x1fb0, 0x1fb4,
+ 0x1fb6, 0x1fb7,
+ 0x1fbe, 0x1fbe,
+ 0x1fc2, 0x1fc4,
+ 0x1fc6, 0x1fc7,
+ 0x1fd0, 0x1fd3,
+ 0x1fd6, 0x1fd7,
+ 0x1fe0, 0x1fe7,
+ 0x1ff2, 0x1ff4,
+ 0x1ff6, 0x1ff7,
+ 0x2090, 0x2094,
+ 0x210a, 0x210a,
+ 0x210e, 0x210f,
+ 0x2113, 0x2113,
+ 0x212f, 0x212f,
+ 0x2134, 0x2134,
+ 0x2139, 0x2139,
+ 0x213c, 0x213d,
+ 0x2146, 0x2149,
+ 0x214e, 0x214e,
+ 0x2170, 0x217f,
+ 0x2184, 0x2184,
+ 0x24d0, 0x24e9,
+ 0x2c30, 0x2c5e,
+ 0x2c61, 0x2c61,
+ 0x2c65, 0x2c66,
+ 0x2c68, 0x2c68,
+ 0x2c6a, 0x2c6a,
+ 0x2c6c, 0x2c6c,
+ 0x2c71, 0x2c71,
+ 0x2c73, 0x2c74,
+ 0x2c76, 0x2c7d,
+ 0x2c81, 0x2c81,
+ 0x2c83, 0x2c83,
+ 0x2c85, 0x2c85,
+ 0x2c87, 0x2c87,
+ 0x2c89, 0x2c89,
+ 0x2c8b, 0x2c8b,
+ 0x2c8d, 0x2c8d,
+ 0x2c8f, 0x2c8f,
+ 0x2c91, 0x2c91,
+ 0x2c93, 0x2c93,
+ 0x2c95, 0x2c95,
+ 0x2c97, 0x2c97,
+ 0x2c99, 0x2c99,
+ 0x2c9b, 0x2c9b,
+ 0x2c9d, 0x2c9d,
+ 0x2c9f, 0x2c9f,
+ 0x2ca1, 0x2ca1,
+ 0x2ca3, 0x2ca3,
+ 0x2ca5, 0x2ca5,
+ 0x2ca7, 0x2ca7,
+ 0x2ca9, 0x2ca9,
+ 0x2cab, 0x2cab,
+ 0x2cad, 0x2cad,
+ 0x2caf, 0x2caf,
+ 0x2cb1, 0x2cb1,
+ 0x2cb3, 0x2cb3,
+ 0x2cb5, 0x2cb5,
+ 0x2cb7, 0x2cb7,
+ 0x2cb9, 0x2cb9,
+ 0x2cbb, 0x2cbb,
+ 0x2cbd, 0x2cbd,
+ 0x2cbf, 0x2cbf,
+ 0x2cc1, 0x2cc1,
+ 0x2cc3, 0x2cc3,
+ 0x2cc5, 0x2cc5,
+ 0x2cc7, 0x2cc7,
+ 0x2cc9, 0x2cc9,
+ 0x2ccb, 0x2ccb,
+ 0x2ccd, 0x2ccd,
+ 0x2ccf, 0x2ccf,
+ 0x2cd1, 0x2cd1,
+ 0x2cd3, 0x2cd3,
+ 0x2cd5, 0x2cd5,
+ 0x2cd7, 0x2cd7,
+ 0x2cd9, 0x2cd9,
+ 0x2cdb, 0x2cdb,
+ 0x2cdd, 0x2cdd,
+ 0x2cdf, 0x2cdf,
+ 0x2ce1, 0x2ce1,
+ 0x2ce3, 0x2ce4,
+ 0x2cec, 0x2cec,
+ 0x2cee, 0x2cee,
+ 0x2d00, 0x2d25,
+ 0xa641, 0xa641,
+ 0xa643, 0xa643,
+ 0xa645, 0xa645,
+ 0xa647, 0xa647,
+ 0xa649, 0xa649,
+ 0xa64b, 0xa64b,
+ 0xa64d, 0xa64d,
+ 0xa64f, 0xa64f,
+ 0xa651, 0xa651,
+ 0xa653, 0xa653,
+ 0xa655, 0xa655,
+ 0xa657, 0xa657,
+ 0xa659, 0xa659,
+ 0xa65b, 0xa65b,
+ 0xa65d, 0xa65d,
+ 0xa65f, 0xa65f,
+ 0xa661, 0xa661,
+ 0xa663, 0xa663,
+ 0xa665, 0xa665,
+ 0xa667, 0xa667,
+ 0xa669, 0xa669,
+ 0xa66b, 0xa66b,
+ 0xa66d, 0xa66d,
+ 0xa681, 0xa681,
+ 0xa683, 0xa683,
+ 0xa685, 0xa685,
+ 0xa687, 0xa687,
+ 0xa689, 0xa689,
+ 0xa68b, 0xa68b,
+ 0xa68d, 0xa68d,
+ 0xa68f, 0xa68f,
+ 0xa691, 0xa691,
+ 0xa693, 0xa693,
+ 0xa695, 0xa695,
+ 0xa697, 0xa697,
+ 0xa723, 0xa723,
+ 0xa725, 0xa725,
+ 0xa727, 0xa727,
+ 0xa729, 0xa729,
+ 0xa72b, 0xa72b,
+ 0xa72d, 0xa72d,
+ 0xa72f, 0xa731,
+ 0xa733, 0xa733,
+ 0xa735, 0xa735,
+ 0xa737, 0xa737,
+ 0xa739, 0xa739,
+ 0xa73b, 0xa73b,
+ 0xa73d, 0xa73d,
+ 0xa73f, 0xa73f,
+ 0xa741, 0xa741,
+ 0xa743, 0xa743,
+ 0xa745, 0xa745,
+ 0xa747, 0xa747,
+ 0xa749, 0xa749,
+ 0xa74b, 0xa74b,
+ 0xa74d, 0xa74d,
+ 0xa74f, 0xa74f,
+ 0xa751, 0xa751,
+ 0xa753, 0xa753,
+ 0xa755, 0xa755,
+ 0xa757, 0xa757,
+ 0xa759, 0xa759,
+ 0xa75b, 0xa75b,
+ 0xa75d, 0xa75d,
+ 0xa75f, 0xa75f,
+ 0xa761, 0xa761,
+ 0xa763, 0xa763,
+ 0xa765, 0xa765,
+ 0xa767, 0xa767,
+ 0xa769, 0xa769,
+ 0xa76b, 0xa76b,
+ 0xa76d, 0xa76d,
+ 0xa76f, 0xa778,
+ 0xa77a, 0xa77a,
+ 0xa77c, 0xa77c,
+ 0xa77f, 0xa77f,
+ 0xa781, 0xa781,
+ 0xa783, 0xa783,
+ 0xa785, 0xa785,
+ 0xa787, 0xa787,
+ 0xa78c, 0xa78c,
+ 0xa78e, 0xa78e,
+ 0xa791, 0xa791,
+ 0xa7a1, 0xa7a1,
+ 0xa7a3, 0xa7a3,
+ 0xa7a5, 0xa7a5,
+ 0xa7a7, 0xa7a7,
+ 0xa7a9, 0xa7a9,
+ 0xa7fa, 0xa7fa,
+ 0xfb00, 0xfb06,
+ 0xfb13, 0xfb17,
+ 0xff41, 0xff5a,
+ 0x10428, 0x1044f,
+ 0x1d41a, 0x1d433,
+ 0x1d44e, 0x1d454,
+ 0x1d456, 0x1d467,
+ 0x1d482, 0x1d49b,
+ 0x1d4b6, 0x1d4b9,
+ 0x1d4bb, 0x1d4bb,
+ 0x1d4bd, 0x1d4c3,
+ 0x1d4c5, 0x1d4cf,
+ 0x1d4ea, 0x1d503,
+ 0x1d51e, 0x1d537,
+ 0x1d552, 0x1d56b,
+ 0x1d586, 0x1d59f,
+ 0x1d5ba, 0x1d5d3,
+ 0x1d5ee, 0x1d607,
+ 0x1d622, 0x1d63b,
+ 0x1d656, 0x1d66f,
+ 0x1d68a, 0x1d6a5,
+ 0x1d6c2, 0x1d6da,
+ 0x1d6dc, 0x1d6e1,
+ 0x1d6fc, 0x1d714,
+ 0x1d716, 0x1d71b,
+ 0x1d736, 0x1d74e,
+ 0x1d750, 0x1d755,
+ 0x1d770, 0x1d788,
+ 0x1d78a, 0x1d78f,
+ 0x1d7aa, 0x1d7c2,
+ 0x1d7c4, 0x1d7c9,
+ 0x1d7cb, 0x1d7cb,
+}; /* CR_Lowercase */
+
+/* 'Uppercase': Derived Property */
+static const OnigCodePoint CR_Uppercase[] = {
+ 605,
+ 0x0041, 0x005a,
+ 0x00c0, 0x00d6,
+ 0x00d8, 0x00de,
+ 0x0100, 0x0100,
+ 0x0102, 0x0102,
+ 0x0104, 0x0104,
+ 0x0106, 0x0106,
+ 0x0108, 0x0108,
+ 0x010a, 0x010a,
+ 0x010c, 0x010c,
+ 0x010e, 0x010e,
+ 0x0110, 0x0110,
+ 0x0112, 0x0112,
+ 0x0114, 0x0114,
+ 0x0116, 0x0116,
+ 0x0118, 0x0118,
+ 0x011a, 0x011a,
+ 0x011c, 0x011c,
+ 0x011e, 0x011e,
+ 0x0120, 0x0120,
+ 0x0122, 0x0122,
+ 0x0124, 0x0124,
+ 0x0126, 0x0126,
+ 0x0128, 0x0128,
+ 0x012a, 0x012a,
+ 0x012c, 0x012c,
+ 0x012e, 0x012e,
+ 0x0130, 0x0130,
+ 0x0132, 0x0132,
+ 0x0134, 0x0134,
+ 0x0136, 0x0136,
+ 0x0139, 0x0139,
+ 0x013b, 0x013b,
+ 0x013d, 0x013d,
+ 0x013f, 0x013f,
+ 0x0141, 0x0141,
+ 0x0143, 0x0143,
+ 0x0145, 0x0145,
+ 0x0147, 0x0147,
+ 0x014a, 0x014a,
+ 0x014c, 0x014c,
+ 0x014e, 0x014e,
+ 0x0150, 0x0150,
+ 0x0152, 0x0152,
+ 0x0154, 0x0154,
+ 0x0156, 0x0156,
+ 0x0158, 0x0158,
+ 0x015a, 0x015a,
+ 0x015c, 0x015c,
+ 0x015e, 0x015e,
+ 0x0160, 0x0160,
+ 0x0162, 0x0162,
+ 0x0164, 0x0164,
+ 0x0166, 0x0166,
+ 0x0168, 0x0168,
+ 0x016a, 0x016a,
+ 0x016c, 0x016c,
+ 0x016e, 0x016e,
+ 0x0170, 0x0170,
+ 0x0172, 0x0172,
+ 0x0174, 0x0174,
+ 0x0176, 0x0176,
+ 0x0178, 0x0179,
+ 0x017b, 0x017b,
+ 0x017d, 0x017d,
+ 0x0181, 0x0182,
+ 0x0184, 0x0184,
+ 0x0186, 0x0187,
+ 0x0189, 0x018b,
+ 0x018e, 0x0191,
+ 0x0193, 0x0194,
+ 0x0196, 0x0198,
+ 0x019c, 0x019d,
+ 0x019f, 0x01a0,
+ 0x01a2, 0x01a2,
+ 0x01a4, 0x01a4,
+ 0x01a6, 0x01a7,
+ 0x01a9, 0x01a9,
+ 0x01ac, 0x01ac,
+ 0x01ae, 0x01af,
+ 0x01b1, 0x01b3,
+ 0x01b5, 0x01b5,
+ 0x01b7, 0x01b8,
+ 0x01bc, 0x01bc,
+ 0x01c4, 0x01c4,
+ 0x01c7, 0x01c7,
+ 0x01ca, 0x01ca,
+ 0x01cd, 0x01cd,
+ 0x01cf, 0x01cf,
+ 0x01d1, 0x01d1,
+ 0x01d3, 0x01d3,
+ 0x01d5, 0x01d5,
+ 0x01d7, 0x01d7,
+ 0x01d9, 0x01d9,
+ 0x01db, 0x01db,
+ 0x01de, 0x01de,
+ 0x01e0, 0x01e0,
+ 0x01e2, 0x01e2,
+ 0x01e4, 0x01e4,
+ 0x01e6, 0x01e6,
+ 0x01e8, 0x01e8,
+ 0x01ea, 0x01ea,
+ 0x01ec, 0x01ec,
+ 0x01ee, 0x01ee,
+ 0x01f1, 0x01f1,
+ 0x01f4, 0x01f4,
+ 0x01f6, 0x01f8,
+ 0x01fa, 0x01fa,
+ 0x01fc, 0x01fc,
+ 0x01fe, 0x01fe,
+ 0x0200, 0x0200,
+ 0x0202, 0x0202,
+ 0x0204, 0x0204,
+ 0x0206, 0x0206,
+ 0x0208, 0x0208,
+ 0x020a, 0x020a,
+ 0x020c, 0x020c,
+ 0x020e, 0x020e,
+ 0x0210, 0x0210,
+ 0x0212, 0x0212,
+ 0x0214, 0x0214,
+ 0x0216, 0x0216,
+ 0x0218, 0x0218,
+ 0x021a, 0x021a,
+ 0x021c, 0x021c,
+ 0x021e, 0x021e,
+ 0x0220, 0x0220,
+ 0x0222, 0x0222,
+ 0x0224, 0x0224,
+ 0x0226, 0x0226,
+ 0x0228, 0x0228,
+ 0x022a, 0x022a,
+ 0x022c, 0x022c,
+ 0x022e, 0x022e,
+ 0x0230, 0x0230,
+ 0x0232, 0x0232,
+ 0x023a, 0x023b,
+ 0x023d, 0x023e,
+ 0x0241, 0x0241,
+ 0x0243, 0x0246,
+ 0x0248, 0x0248,
+ 0x024a, 0x024a,
+ 0x024c, 0x024c,
+ 0x024e, 0x024e,
+ 0x0370, 0x0370,
+ 0x0372, 0x0372,
+ 0x0376, 0x0376,
+ 0x0386, 0x0386,
+ 0x0388, 0x038a,
+ 0x038c, 0x038c,
+ 0x038e, 0x038f,
+ 0x0391, 0x03a1,
+ 0x03a3, 0x03ab,
+ 0x03cf, 0x03cf,
+ 0x03d2, 0x03d4,
+ 0x03d8, 0x03d8,
+ 0x03da, 0x03da,
+ 0x03dc, 0x03dc,
+ 0x03de, 0x03de,
+ 0x03e0, 0x03e0,
+ 0x03e2, 0x03e2,
+ 0x03e4, 0x03e4,
+ 0x03e6, 0x03e6,
+ 0x03e8, 0x03e8,
+ 0x03ea, 0x03ea,
+ 0x03ec, 0x03ec,
+ 0x03ee, 0x03ee,
+ 0x03f4, 0x03f4,
+ 0x03f7, 0x03f7,
+ 0x03f9, 0x03fa,
+ 0x03fd, 0x042f,
+ 0x0460, 0x0460,
+ 0x0462, 0x0462,
+ 0x0464, 0x0464,
+ 0x0466, 0x0466,
+ 0x0468, 0x0468,
+ 0x046a, 0x046a,
+ 0x046c, 0x046c,
+ 0x046e, 0x046e,
+ 0x0470, 0x0470,
+ 0x0472, 0x0472,
+ 0x0474, 0x0474,
+ 0x0476, 0x0476,
+ 0x0478, 0x0478,
+ 0x047a, 0x047a,
+ 0x047c, 0x047c,
+ 0x047e, 0x047e,
+ 0x0480, 0x0480,
+ 0x048a, 0x048a,
+ 0x048c, 0x048c,
+ 0x048e, 0x048e,
+ 0x0490, 0x0490,
+ 0x0492, 0x0492,
+ 0x0494, 0x0494,
+ 0x0496, 0x0496,
+ 0x0498, 0x0498,
+ 0x049a, 0x049a,
+ 0x049c, 0x049c,
+ 0x049e, 0x049e,
+ 0x04a0, 0x04a0,
+ 0x04a2, 0x04a2,
+ 0x04a4, 0x04a4,
+ 0x04a6, 0x04a6,
+ 0x04a8, 0x04a8,
+ 0x04aa, 0x04aa,
+ 0x04ac, 0x04ac,
+ 0x04ae, 0x04ae,
+ 0x04b0, 0x04b0,
+ 0x04b2, 0x04b2,
+ 0x04b4, 0x04b4,
+ 0x04b6, 0x04b6,
+ 0x04b8, 0x04b8,
+ 0x04ba, 0x04ba,
+ 0x04bc, 0x04bc,
+ 0x04be, 0x04be,
+ 0x04c0, 0x04c1,
+ 0x04c3, 0x04c3,
+ 0x04c5, 0x04c5,
+ 0x04c7, 0x04c7,
+ 0x04c9, 0x04c9,
+ 0x04cb, 0x04cb,
+ 0x04cd, 0x04cd,
+ 0x04d0, 0x04d0,
+ 0x04d2, 0x04d2,
+ 0x04d4, 0x04d4,
+ 0x04d6, 0x04d6,
+ 0x04d8, 0x04d8,
+ 0x04da, 0x04da,
+ 0x04dc, 0x04dc,
+ 0x04de, 0x04de,
+ 0x04e0, 0x04e0,
+ 0x04e2, 0x04e2,
+ 0x04e4, 0x04e4,
+ 0x04e6, 0x04e6,
+ 0x04e8, 0x04e8,
+ 0x04ea, 0x04ea,
+ 0x04ec, 0x04ec,
+ 0x04ee, 0x04ee,
+ 0x04f0, 0x04f0,
+ 0x04f2, 0x04f2,
+ 0x04f4, 0x04f4,
+ 0x04f6, 0x04f6,
+ 0x04f8, 0x04f8,
+ 0x04fa, 0x04fa,
+ 0x04fc, 0x04fc,
+ 0x04fe, 0x04fe,
+ 0x0500, 0x0500,
+ 0x0502, 0x0502,
+ 0x0504, 0x0504,
+ 0x0506, 0x0506,
+ 0x0508, 0x0508,
+ 0x050a, 0x050a,
+ 0x050c, 0x050c,
+ 0x050e, 0x050e,
+ 0x0510, 0x0510,
+ 0x0512, 0x0512,
+ 0x0514, 0x0514,
+ 0x0516, 0x0516,
+ 0x0518, 0x0518,
+ 0x051a, 0x051a,
+ 0x051c, 0x051c,
+ 0x051e, 0x051e,
+ 0x0520, 0x0520,
+ 0x0522, 0x0522,
+ 0x0524, 0x0524,
+ 0x0526, 0x0526,
+ 0x0531, 0x0556,
+ 0x10a0, 0x10c5,
+ 0x1e00, 0x1e00,
+ 0x1e02, 0x1e02,
+ 0x1e04, 0x1e04,
+ 0x1e06, 0x1e06,
+ 0x1e08, 0x1e08,
+ 0x1e0a, 0x1e0a,
+ 0x1e0c, 0x1e0c,
+ 0x1e0e, 0x1e0e,
+ 0x1e10, 0x1e10,
+ 0x1e12, 0x1e12,
+ 0x1e14, 0x1e14,
+ 0x1e16, 0x1e16,
+ 0x1e18, 0x1e18,
+ 0x1e1a, 0x1e1a,
+ 0x1e1c, 0x1e1c,
+ 0x1e1e, 0x1e1e,
+ 0x1e20, 0x1e20,
+ 0x1e22, 0x1e22,
+ 0x1e24, 0x1e24,
+ 0x1e26, 0x1e26,
+ 0x1e28, 0x1e28,
+ 0x1e2a, 0x1e2a,
+ 0x1e2c, 0x1e2c,
+ 0x1e2e, 0x1e2e,
+ 0x1e30, 0x1e30,
+ 0x1e32, 0x1e32,
+ 0x1e34, 0x1e34,
+ 0x1e36, 0x1e36,
+ 0x1e38, 0x1e38,
+ 0x1e3a, 0x1e3a,
+ 0x1e3c, 0x1e3c,
+ 0x1e3e, 0x1e3e,
+ 0x1e40, 0x1e40,
+ 0x1e42, 0x1e42,
+ 0x1e44, 0x1e44,
+ 0x1e46, 0x1e46,
+ 0x1e48, 0x1e48,
+ 0x1e4a, 0x1e4a,
+ 0x1e4c, 0x1e4c,
+ 0x1e4e, 0x1e4e,
+ 0x1e50, 0x1e50,
+ 0x1e52, 0x1e52,
+ 0x1e54, 0x1e54,
+ 0x1e56, 0x1e56,
+ 0x1e58, 0x1e58,
+ 0x1e5a, 0x1e5a,
+ 0x1e5c, 0x1e5c,
+ 0x1e5e, 0x1e5e,
+ 0x1e60, 0x1e60,
+ 0x1e62, 0x1e62,
+ 0x1e64, 0x1e64,
+ 0x1e66, 0x1e66,
+ 0x1e68, 0x1e68,
+ 0x1e6a, 0x1e6a,
+ 0x1e6c, 0x1e6c,
+ 0x1e6e, 0x1e6e,
+ 0x1e70, 0x1e70,
+ 0x1e72, 0x1e72,
+ 0x1e74, 0x1e74,
+ 0x1e76, 0x1e76,
+ 0x1e78, 0x1e78,
+ 0x1e7a, 0x1e7a,
+ 0x1e7c, 0x1e7c,
+ 0x1e7e, 0x1e7e,
+ 0x1e80, 0x1e80,
+ 0x1e82, 0x1e82,
+ 0x1e84, 0x1e84,
+ 0x1e86, 0x1e86,
+ 0x1e88, 0x1e88,
+ 0x1e8a, 0x1e8a,
+ 0x1e8c, 0x1e8c,
+ 0x1e8e, 0x1e8e,
+ 0x1e90, 0x1e90,
+ 0x1e92, 0x1e92,
+ 0x1e94, 0x1e94,
+ 0x1e9e, 0x1e9e,
+ 0x1ea0, 0x1ea0,
+ 0x1ea2, 0x1ea2,
+ 0x1ea4, 0x1ea4,
+ 0x1ea6, 0x1ea6,
+ 0x1ea8, 0x1ea8,
+ 0x1eaa, 0x1eaa,
+ 0x1eac, 0x1eac,
+ 0x1eae, 0x1eae,
+ 0x1eb0, 0x1eb0,
+ 0x1eb2, 0x1eb2,
+ 0x1eb4, 0x1eb4,
+ 0x1eb6, 0x1eb6,
+ 0x1eb8, 0x1eb8,
+ 0x1eba, 0x1eba,
+ 0x1ebc, 0x1ebc,
+ 0x1ebe, 0x1ebe,
+ 0x1ec0, 0x1ec0,
+ 0x1ec2, 0x1ec2,
+ 0x1ec4, 0x1ec4,
+ 0x1ec6, 0x1ec6,
+ 0x1ec8, 0x1ec8,
+ 0x1eca, 0x1eca,
+ 0x1ecc, 0x1ecc,
+ 0x1ece, 0x1ece,
+ 0x1ed0, 0x1ed0,
+ 0x1ed2, 0x1ed2,
+ 0x1ed4, 0x1ed4,
+ 0x1ed6, 0x1ed6,
+ 0x1ed8, 0x1ed8,
+ 0x1eda, 0x1eda,
+ 0x1edc, 0x1edc,
+ 0x1ede, 0x1ede,
+ 0x1ee0, 0x1ee0,
+ 0x1ee2, 0x1ee2,
+ 0x1ee4, 0x1ee4,
+ 0x1ee6, 0x1ee6,
+ 0x1ee8, 0x1ee8,
+ 0x1eea, 0x1eea,
+ 0x1eec, 0x1eec,
+ 0x1eee, 0x1eee,
+ 0x1ef0, 0x1ef0,
+ 0x1ef2, 0x1ef2,
+ 0x1ef4, 0x1ef4,
+ 0x1ef6, 0x1ef6,
+ 0x1ef8, 0x1ef8,
+ 0x1efa, 0x1efa,
+ 0x1efc, 0x1efc,
+ 0x1efe, 0x1efe,
+ 0x1f08, 0x1f0f,
+ 0x1f18, 0x1f1d,
+ 0x1f28, 0x1f2f,
+ 0x1f38, 0x1f3f,
+ 0x1f48, 0x1f4d,
+ 0x1f59, 0x1f59,
+ 0x1f5b, 0x1f5b,
+ 0x1f5d, 0x1f5d,
+ 0x1f5f, 0x1f5f,
+ 0x1f68, 0x1f6f,
+ 0x1fb8, 0x1fbb,
+ 0x1fc8, 0x1fcb,
+ 0x1fd8, 0x1fdb,
+ 0x1fe8, 0x1fec,
+ 0x1ff8, 0x1ffb,
+ 0x2102, 0x2102,
+ 0x2107, 0x2107,
+ 0x210b, 0x210d,
+ 0x2110, 0x2112,
+ 0x2115, 0x2115,
+ 0x2119, 0x211d,
+ 0x2124, 0x2124,
+ 0x2126, 0x2126,
+ 0x2128, 0x2128,
+ 0x212a, 0x212d,
+ 0x2130, 0x2133,
+ 0x213e, 0x213f,
+ 0x2145, 0x2145,
+ 0x2160, 0x216f,
+ 0x2183, 0x2183,
+ 0x24b6, 0x24cf,
+ 0x2c00, 0x2c2e,
+ 0x2c60, 0x2c60,
+ 0x2c62, 0x2c64,
+ 0x2c67, 0x2c67,
+ 0x2c69, 0x2c69,
+ 0x2c6b, 0x2c6b,
+ 0x2c6d, 0x2c70,
+ 0x2c72, 0x2c72,
+ 0x2c75, 0x2c75,
+ 0x2c7e, 0x2c80,
+ 0x2c82, 0x2c82,
+ 0x2c84, 0x2c84,
+ 0x2c86, 0x2c86,
+ 0x2c88, 0x2c88,
+ 0x2c8a, 0x2c8a,
+ 0x2c8c, 0x2c8c,
+ 0x2c8e, 0x2c8e,
+ 0x2c90, 0x2c90,
+ 0x2c92, 0x2c92,
+ 0x2c94, 0x2c94,
+ 0x2c96, 0x2c96,
+ 0x2c98, 0x2c98,
+ 0x2c9a, 0x2c9a,
+ 0x2c9c, 0x2c9c,
+ 0x2c9e, 0x2c9e,
+ 0x2ca0, 0x2ca0,
+ 0x2ca2, 0x2ca2,
+ 0x2ca4, 0x2ca4,
+ 0x2ca6, 0x2ca6,
+ 0x2ca8, 0x2ca8,
+ 0x2caa, 0x2caa,
+ 0x2cac, 0x2cac,
+ 0x2cae, 0x2cae,
+ 0x2cb0, 0x2cb0,
+ 0x2cb2, 0x2cb2,
+ 0x2cb4, 0x2cb4,
+ 0x2cb6, 0x2cb6,
+ 0x2cb8, 0x2cb8,
+ 0x2cba, 0x2cba,
+ 0x2cbc, 0x2cbc,
+ 0x2cbe, 0x2cbe,
+ 0x2cc0, 0x2cc0,
+ 0x2cc2, 0x2cc2,
+ 0x2cc4, 0x2cc4,
+ 0x2cc6, 0x2cc6,
+ 0x2cc8, 0x2cc8,
+ 0x2cca, 0x2cca,
+ 0x2ccc, 0x2ccc,
+ 0x2cce, 0x2cce,
+ 0x2cd0, 0x2cd0,
+ 0x2cd2, 0x2cd2,
+ 0x2cd4, 0x2cd4,
+ 0x2cd6, 0x2cd6,
+ 0x2cd8, 0x2cd8,
+ 0x2cda, 0x2cda,
+ 0x2cdc, 0x2cdc,
+ 0x2cde, 0x2cde,
+ 0x2ce0, 0x2ce0,
+ 0x2ce2, 0x2ce2,
+ 0x2ceb, 0x2ceb,
+ 0x2ced, 0x2ced,
+ 0xa640, 0xa640,
+ 0xa642, 0xa642,
+ 0xa644, 0xa644,
+ 0xa646, 0xa646,
+ 0xa648, 0xa648,
+ 0xa64a, 0xa64a,
+ 0xa64c, 0xa64c,
+ 0xa64e, 0xa64e,
+ 0xa650, 0xa650,
+ 0xa652, 0xa652,
+ 0xa654, 0xa654,
+ 0xa656, 0xa656,
+ 0xa658, 0xa658,
+ 0xa65a, 0xa65a,
+ 0xa65c, 0xa65c,
+ 0xa65e, 0xa65e,
+ 0xa660, 0xa660,
+ 0xa662, 0xa662,
+ 0xa664, 0xa664,
+ 0xa666, 0xa666,
+ 0xa668, 0xa668,
+ 0xa66a, 0xa66a,
+ 0xa66c, 0xa66c,
+ 0xa680, 0xa680,
+ 0xa682, 0xa682,
+ 0xa684, 0xa684,
+ 0xa686, 0xa686,
+ 0xa688, 0xa688,
+ 0xa68a, 0xa68a,
+ 0xa68c, 0xa68c,
+ 0xa68e, 0xa68e,
+ 0xa690, 0xa690,
+ 0xa692, 0xa692,
+ 0xa694, 0xa694,
+ 0xa696, 0xa696,
+ 0xa722, 0xa722,
+ 0xa724, 0xa724,
+ 0xa726, 0xa726,
+ 0xa728, 0xa728,
+ 0xa72a, 0xa72a,
+ 0xa72c, 0xa72c,
+ 0xa72e, 0xa72e,
+ 0xa732, 0xa732,
+ 0xa734, 0xa734,
+ 0xa736, 0xa736,
+ 0xa738, 0xa738,
+ 0xa73a, 0xa73a,
+ 0xa73c, 0xa73c,
+ 0xa73e, 0xa73e,
+ 0xa740, 0xa740,
+ 0xa742, 0xa742,
+ 0xa744, 0xa744,
+ 0xa746, 0xa746,
+ 0xa748, 0xa748,
+ 0xa74a, 0xa74a,
+ 0xa74c, 0xa74c,
+ 0xa74e, 0xa74e,
+ 0xa750, 0xa750,
+ 0xa752, 0xa752,
+ 0xa754, 0xa754,
+ 0xa756, 0xa756,
+ 0xa758, 0xa758,
+ 0xa75a, 0xa75a,
+ 0xa75c, 0xa75c,
+ 0xa75e, 0xa75e,
+ 0xa760, 0xa760,
+ 0xa762, 0xa762,
+ 0xa764, 0xa764,
+ 0xa766, 0xa766,
+ 0xa768, 0xa768,
+ 0xa76a, 0xa76a,
+ 0xa76c, 0xa76c,
+ 0xa76e, 0xa76e,
+ 0xa779, 0xa779,
+ 0xa77b, 0xa77b,
+ 0xa77d, 0xa77e,
+ 0xa780, 0xa780,
+ 0xa782, 0xa782,
+ 0xa784, 0xa784,
+ 0xa786, 0xa786,
+ 0xa78b, 0xa78b,
+ 0xa78d, 0xa78d,
+ 0xa790, 0xa790,
+ 0xa7a0, 0xa7a0,
+ 0xa7a2, 0xa7a2,
+ 0xa7a4, 0xa7a4,
+ 0xa7a6, 0xa7a6,
+ 0xa7a8, 0xa7a8,
+ 0xff21, 0xff3a,
+ 0x10400, 0x10427,
+ 0x1d400, 0x1d419,
+ 0x1d434, 0x1d44d,
+ 0x1d468, 0x1d481,
+ 0x1d49c, 0x1d49c,
+ 0x1d49e, 0x1d49f,
+ 0x1d4a2, 0x1d4a2,
+ 0x1d4a5, 0x1d4a6,
+ 0x1d4a9, 0x1d4ac,
+ 0x1d4ae, 0x1d4b5,
+ 0x1d4d0, 0x1d4e9,
+ 0x1d504, 0x1d505,
+ 0x1d507, 0x1d50a,
+ 0x1d50d, 0x1d514,
+ 0x1d516, 0x1d51c,
+ 0x1d538, 0x1d539,
+ 0x1d53b, 0x1d53e,
+ 0x1d540, 0x1d544,
+ 0x1d546, 0x1d546,
+ 0x1d54a, 0x1d550,
+ 0x1d56c, 0x1d585,
+ 0x1d5a0, 0x1d5b9,
+ 0x1d5d4, 0x1d5ed,
+ 0x1d608, 0x1d621,
+ 0x1d63c, 0x1d655,
+ 0x1d670, 0x1d689,
+ 0x1d6a8, 0x1d6c0,
+ 0x1d6e2, 0x1d6fa,
+ 0x1d71c, 0x1d734,
+ 0x1d756, 0x1d76e,
+ 0x1d790, 0x1d7a8,
+ 0x1d7ca, 0x1d7ca,
+}; /* CR_Uppercase */
+
+/* 'Cased': Derived Property */
+static const OnigCodePoint CR_Cased[] = {
+ 112,
+ 0x0041, 0x005a,
+ 0x0061, 0x007a,
+ 0x00aa, 0x00aa,
+ 0x00b5, 0x00b5,
+ 0x00ba, 0x00ba,
+ 0x00c0, 0x00d6,
+ 0x00d8, 0x00f6,
+ 0x00f8, 0x01ba,
+ 0x01bc, 0x01bf,
+ 0x01c4, 0x0293,
+ 0x0295, 0x02b8,
+ 0x02c0, 0x02c1,
+ 0x02e0, 0x02e4,
+ 0x0345, 0x0345,
+ 0x0370, 0x0373,
+ 0x0376, 0x0377,
+ 0x037a, 0x037d,
+ 0x0386, 0x0386,
+ 0x0388, 0x038a,
+ 0x038c, 0x038c,
+ 0x038e, 0x03a1,
+ 0x03a3, 0x03f5,
+ 0x03f7, 0x0481,
+ 0x048a, 0x0527,
+ 0x0531, 0x0556,
+ 0x0561, 0x0587,
+ 0x10a0, 0x10c5,
+ 0x1d00, 0x1dbf,
+ 0x1e00, 0x1f15,
+ 0x1f18, 0x1f1d,
+ 0x1f20, 0x1f45,
+ 0x1f48, 0x1f4d,
+ 0x1f50, 0x1f57,
+ 0x1f59, 0x1f59,
+ 0x1f5b, 0x1f5b,
+ 0x1f5d, 0x1f5d,
+ 0x1f5f, 0x1f7d,
+ 0x1f80, 0x1fb4,
+ 0x1fb6, 0x1fbc,
+ 0x1fbe, 0x1fbe,
+ 0x1fc2, 0x1fc4,
+ 0x1fc6, 0x1fcc,
+ 0x1fd0, 0x1fd3,
+ 0x1fd6, 0x1fdb,
+ 0x1fe0, 0x1fec,
+ 0x1ff2, 0x1ff4,
+ 0x1ff6, 0x1ffc,
+ 0x2090, 0x2094,
+ 0x2102, 0x2102,
+ 0x2107, 0x2107,
+ 0x210a, 0x2113,
+ 0x2115, 0x2115,
+ 0x2119, 0x211d,
+ 0x2124, 0x2124,
+ 0x2126, 0x2126,
+ 0x2128, 0x2128,
+ 0x212a, 0x212d,
+ 0x212f, 0x2134,
+ 0x2139, 0x2139,
+ 0x213c, 0x213f,
+ 0x2145, 0x2149,
+ 0x214e, 0x214e,
+ 0x2160, 0x217f,
+ 0x2183, 0x2184,
+ 0x24b6, 0x24e9,
+ 0x2c00, 0x2c2e,
+ 0x2c30, 0x2c5e,
+ 0x2c60, 0x2ce4,
+ 0x2ceb, 0x2cee,
+ 0x2d00, 0x2d25,
+ 0xa640, 0xa66d,
+ 0xa680, 0xa697,
+ 0xa722, 0xa787,
+ 0xa78b, 0xa78e,
+ 0xa790, 0xa791,
+ 0xa7a0, 0xa7a9,
+ 0xa7fa, 0xa7fa,
+ 0xfb00, 0xfb06,
+ 0xfb13, 0xfb17,
+ 0xff21, 0xff3a,
+ 0xff41, 0xff5a,
+ 0x10400, 0x1044f,
+ 0x1d400, 0x1d454,
+ 0x1d456, 0x1d49c,
+ 0x1d49e, 0x1d49f,
+ 0x1d4a2, 0x1d4a2,
+ 0x1d4a5, 0x1d4a6,
+ 0x1d4a9, 0x1d4ac,
+ 0x1d4ae, 0x1d4b9,
+ 0x1d4bb, 0x1d4bb,
+ 0x1d4bd, 0x1d4c3,
+ 0x1d4c5, 0x1d505,
+ 0x1d507, 0x1d50a,
+ 0x1d50d, 0x1d514,
+ 0x1d516, 0x1d51c,
+ 0x1d51e, 0x1d539,
+ 0x1d53b, 0x1d53e,
+ 0x1d540, 0x1d544,
+ 0x1d546, 0x1d546,
+ 0x1d54a, 0x1d550,
+ 0x1d552, 0x1d6a5,
+ 0x1d6a8, 0x1d6c0,
+ 0x1d6c2, 0x1d6da,
+ 0x1d6dc, 0x1d6fa,
+ 0x1d6fc, 0x1d714,
+ 0x1d716, 0x1d734,
+ 0x1d736, 0x1d74e,
+ 0x1d750, 0x1d76e,
+ 0x1d770, 0x1d788,
+ 0x1d78a, 0x1d7a8,
+ 0x1d7aa, 0x1d7c2,
+ 0x1d7c4, 0x1d7cb,
+}; /* CR_Cased */
+
+/* 'Case_Ignorable': Derived Property */
+static const OnigCodePoint CR_Case_Ignorable[] = {
+ 277,
+ 0x0027, 0x0027,
+ 0x002e, 0x002e,
+ 0x003a, 0x003a,
+ 0x005e, 0x005e,
+ 0x0060, 0x0060,
+ 0x00a8, 0x00a8,
+ 0x00ad, 0x00ad,
+ 0x00af, 0x00af,
+ 0x00b4, 0x00b4,
+ 0x00b7, 0x00b8,
+ 0x02b0, 0x036f,
+ 0x0374, 0x0375,
+ 0x037a, 0x037a,
+ 0x0384, 0x0385,
+ 0x0387, 0x0387,
+ 0x0483, 0x0489,
+ 0x0559, 0x0559,
+ 0x0591, 0x05bd,
+ 0x05bf, 0x05bf,
+ 0x05c1, 0x05c2,
+ 0x05c4, 0x05c5,
+ 0x05c7, 0x05c7,
+ 0x05f4, 0x05f4,
+ 0x0600, 0x0603,
+ 0x0610, 0x061a,
+ 0x0640, 0x0640,
+ 0x064b, 0x065f,
+ 0x0670, 0x0670,
+ 0x06d6, 0x06dd,
+ 0x06df, 0x06e8,
+ 0x06ea, 0x06ed,
+ 0x070f, 0x070f,
+ 0x0711, 0x0711,
+ 0x0730, 0x074a,
+ 0x07a6, 0x07b0,
+ 0x07eb, 0x07f5,
+ 0x07fa, 0x07fa,
+ 0x0816, 0x082d,
+ 0x0859, 0x085b,
+ 0x0900, 0x0902,
+ 0x093a, 0x093a,
+ 0x093c, 0x093c,
+ 0x0941, 0x0948,
+ 0x094d, 0x094d,
+ 0x0951, 0x0957,
+ 0x0962, 0x0963,
+ 0x0971, 0x0971,
+ 0x0981, 0x0981,
+ 0x09bc, 0x09bc,
+ 0x09c1, 0x09c4,
+ 0x09cd, 0x09cd,
+ 0x09e2, 0x09e3,
+ 0x0a01, 0x0a02,
+ 0x0a3c, 0x0a3c,
+ 0x0a41, 0x0a42,
+ 0x0a47, 0x0a48,
+ 0x0a4b, 0x0a4d,
+ 0x0a51, 0x0a51,
+ 0x0a70, 0x0a71,
+ 0x0a75, 0x0a75,
+ 0x0a81, 0x0a82,
+ 0x0abc, 0x0abc,
+ 0x0ac1, 0x0ac5,
+ 0x0ac7, 0x0ac8,
+ 0x0acd, 0x0acd,
+ 0x0ae2, 0x0ae3,
+ 0x0b01, 0x0b01,
+ 0x0b3c, 0x0b3c,
+ 0x0b3f, 0x0b3f,
+ 0x0b41, 0x0b44,
+ 0x0b4d, 0x0b4d,
+ 0x0b56, 0x0b56,
+ 0x0b62, 0x0b63,
+ 0x0b82, 0x0b82,
+ 0x0bc0, 0x0bc0,
+ 0x0bcd, 0x0bcd,
+ 0x0c3e, 0x0c40,
+ 0x0c46, 0x0c48,
+ 0x0c4a, 0x0c4d,
+ 0x0c55, 0x0c56,
+ 0x0c62, 0x0c63,
+ 0x0cbc, 0x0cbc,
+ 0x0cbf, 0x0cbf,
+ 0x0cc6, 0x0cc6,
+ 0x0ccc, 0x0ccd,
+ 0x0ce2, 0x0ce3,
+ 0x0d41, 0x0d44,
+ 0x0d4d, 0x0d4d,
+ 0x0d62, 0x0d63,
+ 0x0dca, 0x0dca,
+ 0x0dd2, 0x0dd4,
+ 0x0dd6, 0x0dd6,
+ 0x0e31, 0x0e31,
+ 0x0e34, 0x0e3a,
+ 0x0e46, 0x0e4e,
+ 0x0eb1, 0x0eb1,
+ 0x0eb4, 0x0eb9,
+ 0x0ebb, 0x0ebc,
+ 0x0ec6, 0x0ec6,
+ 0x0ec8, 0x0ecd,
+ 0x0f18, 0x0f19,
+ 0x0f35, 0x0f35,
+ 0x0f37, 0x0f37,
+ 0x0f39, 0x0f39,
+ 0x0f71, 0x0f7e,
+ 0x0f80, 0x0f84,
+ 0x0f86, 0x0f87,
+ 0x0f8d, 0x0f97,
+ 0x0f99, 0x0fbc,
+ 0x0fc6, 0x0fc6,
+ 0x102d, 0x1030,
+ 0x1032, 0x1037,
+ 0x1039, 0x103a,
+ 0x103d, 0x103e,
+ 0x1058, 0x1059,
+ 0x105e, 0x1060,
+ 0x1071, 0x1074,
+ 0x1082, 0x1082,
+ 0x1085, 0x1086,
+ 0x108d, 0x108d,
+ 0x109d, 0x109d,
+ 0x10fc, 0x10fc,
+ 0x135d, 0x135f,
+ 0x1712, 0x1714,
+ 0x1732, 0x1734,
+ 0x1752, 0x1753,
+ 0x1772, 0x1773,
+ 0x17b4, 0x17b5,
+ 0x17b7, 0x17bd,
+ 0x17c6, 0x17c6,
+ 0x17c9, 0x17d3,
+ 0x17d7, 0x17d7,
+ 0x17dd, 0x17dd,
+ 0x180b, 0x180d,
+ 0x1843, 0x1843,
+ 0x18a9, 0x18a9,
+ 0x1920, 0x1922,
+ 0x1927, 0x1928,
+ 0x1932, 0x1932,
+ 0x1939, 0x193b,
+ 0x1a17, 0x1a18,
+ 0x1a56, 0x1a56,
+ 0x1a58, 0x1a5e,
+ 0x1a60, 0x1a60,
+ 0x1a62, 0x1a62,
+ 0x1a65, 0x1a6c,
+ 0x1a73, 0x1a7c,
+ 0x1a7f, 0x1a7f,
+ 0x1aa7, 0x1aa7,
+ 0x1b00, 0x1b03,
+ 0x1b34, 0x1b34,
+ 0x1b36, 0x1b3a,
+ 0x1b3c, 0x1b3c,
+ 0x1b42, 0x1b42,
+ 0x1b6b, 0x1b73,
+ 0x1b80, 0x1b81,
+ 0x1ba2, 0x1ba5,
+ 0x1ba8, 0x1ba9,
+ 0x1be6, 0x1be6,
+ 0x1be8, 0x1be9,
+ 0x1bed, 0x1bed,
+ 0x1bef, 0x1bf1,
+ 0x1c2c, 0x1c33,
+ 0x1c36, 0x1c37,
+ 0x1c78, 0x1c7d,
+ 0x1cd0, 0x1cd2,
+ 0x1cd4, 0x1ce0,
+ 0x1ce2, 0x1ce8,
+ 0x1ced, 0x1ced,
+ 0x1d2c, 0x1d61,
+ 0x1d78, 0x1d78,
+ 0x1d9b, 0x1de6,
+ 0x1dfc, 0x1dff,
+ 0x1fbd, 0x1fbd,
+ 0x1fbf, 0x1fc1,
+ 0x1fcd, 0x1fcf,
+ 0x1fdd, 0x1fdf,
+ 0x1fed, 0x1fef,
+ 0x1ffd, 0x1ffe,
+ 0x200b, 0x200f,
+ 0x2018, 0x2019,
+ 0x2024, 0x2024,
+ 0x2027, 0x2027,
+ 0x202a, 0x202e,
+ 0x2060, 0x2064,
+ 0x206a, 0x206f,
+ 0x2071, 0x2071,
+ 0x207f, 0x207f,
+ 0x2090, 0x209c,
+ 0x20d0, 0x20f0,
+ 0x2c7d, 0x2c7d,
+ 0x2cef, 0x2cf1,
+ 0x2d6f, 0x2d6f,
+ 0x2d7f, 0x2d7f,
+ 0x2de0, 0x2dff,
+ 0x2e2f, 0x2e2f,
+ 0x3005, 0x3005,
+ 0x302a, 0x302f,
+ 0x3031, 0x3035,
+ 0x303b, 0x303b,
+ 0x3099, 0x309e,
+ 0x30fc, 0x30fe,
+ 0xa015, 0xa015,
+ 0xa4f8, 0xa4fd,
+ 0xa60c, 0xa60c,
+ 0xa66f, 0xa672,
+ 0xa67c, 0xa67d,
+ 0xa67f, 0xa67f,
+ 0xa6f0, 0xa6f1,
+ 0xa700, 0xa721,
+ 0xa770, 0xa770,
+ 0xa788, 0xa78a,
+ 0xa802, 0xa802,
+ 0xa806, 0xa806,
+ 0xa80b, 0xa80b,
+ 0xa825, 0xa826,
+ 0xa8c4, 0xa8c4,
+ 0xa8e0, 0xa8f1,
+ 0xa926, 0xa92d,
+ 0xa947, 0xa951,
+ 0xa980, 0xa982,
+ 0xa9b3, 0xa9b3,
+ 0xa9b6, 0xa9b9,
+ 0xa9bc, 0xa9bc,
+ 0xa9cf, 0xa9cf,
+ 0xaa29, 0xaa2e,
+ 0xaa31, 0xaa32,
+ 0xaa35, 0xaa36,
+ 0xaa43, 0xaa43,
+ 0xaa4c, 0xaa4c,
+ 0xaa70, 0xaa70,
+ 0xaab0, 0xaab0,
+ 0xaab2, 0xaab4,
+ 0xaab7, 0xaab8,
+ 0xaabe, 0xaabf,
+ 0xaac1, 0xaac1,
+ 0xaadd, 0xaadd,
+ 0xabe5, 0xabe5,
+ 0xabe8, 0xabe8,
+ 0xabed, 0xabed,
+ 0xfb1e, 0xfb1e,
+ 0xfbb2, 0xfbc1,
+ 0xfe00, 0xfe0f,
+ 0xfe13, 0xfe13,
+ 0xfe20, 0xfe26,
+ 0xfe52, 0xfe52,
+ 0xfe55, 0xfe55,
+ 0xfeff, 0xfeff,
+ 0xff07, 0xff07,
+ 0xff0e, 0xff0e,
+ 0xff1a, 0xff1a,
+ 0xff3e, 0xff3e,
+ 0xff40, 0xff40,
+ 0xff70, 0xff70,
+ 0xff9e, 0xff9f,
+ 0xffe3, 0xffe3,
+ 0xfff9, 0xfffb,
+ 0x101fd, 0x101fd,
+ 0x10a01, 0x10a03,
+ 0x10a05, 0x10a06,
+ 0x10a0c, 0x10a0f,
+ 0x10a38, 0x10a3a,
+ 0x10a3f, 0x10a3f,
+ 0x11001, 0x11001,
+ 0x11038, 0x11046,
+ 0x11080, 0x11081,
+ 0x110b3, 0x110b6,
+ 0x110b9, 0x110ba,
+ 0x110bd, 0x110bd,
+ 0x1d167, 0x1d169,
+ 0x1d173, 0x1d182,
+ 0x1d185, 0x1d18b,
+ 0x1d1aa, 0x1d1ad,
+ 0x1d242, 0x1d244,
+ 0xe0001, 0xe0001,
+ 0xe0020, 0xe007f,
+ 0xe0100, 0xe01ef,
+}; /* CR_Case_Ignorable */
+
+/* 'Changes_When_Lowercased': Derived Property */
+static const OnigCodePoint CR_Changes_When_Lowercased[] = {
+ 566,
+ 0x0041, 0x005a,
+ 0x00c0, 0x00d6,
+ 0x00d8, 0x00de,
+ 0x0100, 0x0100,
+ 0x0102, 0x0102,
+ 0x0104, 0x0104,
+ 0x0106, 0x0106,
+ 0x0108, 0x0108,
+ 0x010a, 0x010a,
+ 0x010c, 0x010c,
+ 0x010e, 0x010e,
+ 0x0110, 0x0110,
+ 0x0112, 0x0112,
+ 0x0114, 0x0114,
+ 0x0116, 0x0116,
+ 0x0118, 0x0118,
+ 0x011a, 0x011a,
+ 0x011c, 0x011c,
+ 0x011e, 0x011e,
+ 0x0120, 0x0120,
+ 0x0122, 0x0122,
+ 0x0124, 0x0124,
+ 0x0126, 0x0126,
+ 0x0128, 0x0128,
+ 0x012a, 0x012a,
+ 0x012c, 0x012c,
+ 0x012e, 0x012e,
+ 0x0130, 0x0130,
+ 0x0132, 0x0132,
+ 0x0134, 0x0134,
+ 0x0136, 0x0136,
+ 0x0139, 0x0139,
+ 0x013b, 0x013b,
+ 0x013d, 0x013d,
+ 0x013f, 0x013f,
+ 0x0141, 0x0141,
+ 0x0143, 0x0143,
+ 0x0145, 0x0145,
+ 0x0147, 0x0147,
+ 0x014a, 0x014a,
+ 0x014c, 0x014c,
+ 0x014e, 0x014e,
+ 0x0150, 0x0150,
+ 0x0152, 0x0152,
+ 0x0154, 0x0154,
+ 0x0156, 0x0156,
+ 0x0158, 0x0158,
+ 0x015a, 0x015a,
+ 0x015c, 0x015c,
+ 0x015e, 0x015e,
+ 0x0160, 0x0160,
+ 0x0162, 0x0162,
+ 0x0164, 0x0164,
+ 0x0166, 0x0166,
+ 0x0168, 0x0168,
+ 0x016a, 0x016a,
+ 0x016c, 0x016c,
+ 0x016e, 0x016e,
+ 0x0170, 0x0170,
+ 0x0172, 0x0172,
+ 0x0174, 0x0174,
+ 0x0176, 0x0176,
+ 0x0178, 0x0179,
+ 0x017b, 0x017b,
+ 0x017d, 0x017d,
+ 0x0181, 0x0182,
+ 0x0184, 0x0184,
+ 0x0186, 0x0187,
+ 0x0189, 0x018b,
+ 0x018e, 0x0191,
+ 0x0193, 0x0194,
+ 0x0196, 0x0198,
+ 0x019c, 0x019d,
+ 0x019f, 0x01a0,
+ 0x01a2, 0x01a2,
+ 0x01a4, 0x01a4,
+ 0x01a6, 0x01a7,
+ 0x01a9, 0x01a9,
+ 0x01ac, 0x01ac,
+ 0x01ae, 0x01af,
+ 0x01b1, 0x01b3,
+ 0x01b5, 0x01b5,
+ 0x01b7, 0x01b8,
+ 0x01bc, 0x01bc,
+ 0x01c4, 0x01c5,
+ 0x01c7, 0x01c8,
+ 0x01ca, 0x01cb,
+ 0x01cd, 0x01cd,
+ 0x01cf, 0x01cf,
+ 0x01d1, 0x01d1,
+ 0x01d3, 0x01d3,
+ 0x01d5, 0x01d5,
+ 0x01d7, 0x01d7,
+ 0x01d9, 0x01d9,
+ 0x01db, 0x01db,
+ 0x01de, 0x01de,
+ 0x01e0, 0x01e0,
+ 0x01e2, 0x01e2,
+ 0x01e4, 0x01e4,
+ 0x01e6, 0x01e6,
+ 0x01e8, 0x01e8,
+ 0x01ea, 0x01ea,
+ 0x01ec, 0x01ec,
+ 0x01ee, 0x01ee,
+ 0x01f1, 0x01f2,
+ 0x01f4, 0x01f4,
+ 0x01f6, 0x01f8,
+ 0x01fa, 0x01fa,
+ 0x01fc, 0x01fc,
+ 0x01fe, 0x01fe,
+ 0x0200, 0x0200,
+ 0x0202, 0x0202,
+ 0x0204, 0x0204,
+ 0x0206, 0x0206,
+ 0x0208, 0x0208,
+ 0x020a, 0x020a,
+ 0x020c, 0x020c,
+ 0x020e, 0x020e,
+ 0x0210, 0x0210,
+ 0x0212, 0x0212,
+ 0x0214, 0x0214,
+ 0x0216, 0x0216,
+ 0x0218, 0x0218,
+ 0x021a, 0x021a,
+ 0x021c, 0x021c,
+ 0x021e, 0x021e,
+ 0x0220, 0x0220,
+ 0x0222, 0x0222,
+ 0x0224, 0x0224,
+ 0x0226, 0x0226,
+ 0x0228, 0x0228,
+ 0x022a, 0x022a,
+ 0x022c, 0x022c,
+ 0x022e, 0x022e,
+ 0x0230, 0x0230,
+ 0x0232, 0x0232,
+ 0x023a, 0x023b,
+ 0x023d, 0x023e,
+ 0x0241, 0x0241,
+ 0x0243, 0x0246,
+ 0x0248, 0x0248,
+ 0x024a, 0x024a,
+ 0x024c, 0x024c,
+ 0x024e, 0x024e,
+ 0x0370, 0x0370,
+ 0x0372, 0x0372,
+ 0x0376, 0x0376,
+ 0x0386, 0x0386,
+ 0x0388, 0x038a,
+ 0x038c, 0x038c,
+ 0x038e, 0x038f,
+ 0x0391, 0x03a1,
+ 0x03a3, 0x03ab,
+ 0x03cf, 0x03cf,
+ 0x03d8, 0x03d8,
+ 0x03da, 0x03da,
+ 0x03dc, 0x03dc,
+ 0x03de, 0x03de,
+ 0x03e0, 0x03e0,
+ 0x03e2, 0x03e2,
+ 0x03e4, 0x03e4,
+ 0x03e6, 0x03e6,
+ 0x03e8, 0x03e8,
+ 0x03ea, 0x03ea,
+ 0x03ec, 0x03ec,
+ 0x03ee, 0x03ee,
+ 0x03f4, 0x03f4,
+ 0x03f7, 0x03f7,
+ 0x03f9, 0x03fa,
+ 0x03fd, 0x042f,
+ 0x0460, 0x0460,
+ 0x0462, 0x0462,
+ 0x0464, 0x0464,
+ 0x0466, 0x0466,
+ 0x0468, 0x0468,
+ 0x046a, 0x046a,
+ 0x046c, 0x046c,
+ 0x046e, 0x046e,
+ 0x0470, 0x0470,
+ 0x0472, 0x0472,
+ 0x0474, 0x0474,
+ 0x0476, 0x0476,
+ 0x0478, 0x0478,
+ 0x047a, 0x047a,
+ 0x047c, 0x047c,
+ 0x047e, 0x047e,
+ 0x0480, 0x0480,
+ 0x048a, 0x048a,
+ 0x048c, 0x048c,
+ 0x048e, 0x048e,
+ 0x0490, 0x0490,
+ 0x0492, 0x0492,
+ 0x0494, 0x0494,
+ 0x0496, 0x0496,
+ 0x0498, 0x0498,
+ 0x049a, 0x049a,
+ 0x049c, 0x049c,
+ 0x049e, 0x049e,
+ 0x04a0, 0x04a0,
+ 0x04a2, 0x04a2,
+ 0x04a4, 0x04a4,
+ 0x04a6, 0x04a6,
+ 0x04a8, 0x04a8,
+ 0x04aa, 0x04aa,
+ 0x04ac, 0x04ac,
+ 0x04ae, 0x04ae,
+ 0x04b0, 0x04b0,
+ 0x04b2, 0x04b2,
+ 0x04b4, 0x04b4,
+ 0x04b6, 0x04b6,
+ 0x04b8, 0x04b8,
+ 0x04ba, 0x04ba,
+ 0x04bc, 0x04bc,
+ 0x04be, 0x04be,
+ 0x04c0, 0x04c1,
+ 0x04c3, 0x04c3,
+ 0x04c5, 0x04c5,
+ 0x04c7, 0x04c7,
+ 0x04c9, 0x04c9,
+ 0x04cb, 0x04cb,
+ 0x04cd, 0x04cd,
+ 0x04d0, 0x04d0,
+ 0x04d2, 0x04d2,
+ 0x04d4, 0x04d4,
+ 0x04d6, 0x04d6,
+ 0x04d8, 0x04d8,
+ 0x04da, 0x04da,
+ 0x04dc, 0x04dc,
+ 0x04de, 0x04de,
+ 0x04e0, 0x04e0,
+ 0x04e2, 0x04e2,
+ 0x04e4, 0x04e4,
+ 0x04e6, 0x04e6,
+ 0x04e8, 0x04e8,
+ 0x04ea, 0x04ea,
+ 0x04ec, 0x04ec,
+ 0x04ee, 0x04ee,
+ 0x04f0, 0x04f0,
+ 0x04f2, 0x04f2,
+ 0x04f4, 0x04f4,
+ 0x04f6, 0x04f6,
+ 0x04f8, 0x04f8,
+ 0x04fa, 0x04fa,
+ 0x04fc, 0x04fc,
+ 0x04fe, 0x04fe,
+ 0x0500, 0x0500,
+ 0x0502, 0x0502,
+ 0x0504, 0x0504,
+ 0x0506, 0x0506,
+ 0x0508, 0x0508,
+ 0x050a, 0x050a,
+ 0x050c, 0x050c,
+ 0x050e, 0x050e,
+ 0x0510, 0x0510,
+ 0x0512, 0x0512,
+ 0x0514, 0x0514,
+ 0x0516, 0x0516,
+ 0x0518, 0x0518,
+ 0x051a, 0x051a,
+ 0x051c, 0x051c,
+ 0x051e, 0x051e,
+ 0x0520, 0x0520,
+ 0x0522, 0x0522,
+ 0x0524, 0x0524,
+ 0x0526, 0x0526,
+ 0x0531, 0x0556,
+ 0x10a0, 0x10c5,
+ 0x1e00, 0x1e00,
+ 0x1e02, 0x1e02,
+ 0x1e04, 0x1e04,
+ 0x1e06, 0x1e06,
+ 0x1e08, 0x1e08,
+ 0x1e0a, 0x1e0a,
+ 0x1e0c, 0x1e0c,
+ 0x1e0e, 0x1e0e,
+ 0x1e10, 0x1e10,
+ 0x1e12, 0x1e12,
+ 0x1e14, 0x1e14,
+ 0x1e16, 0x1e16,
+ 0x1e18, 0x1e18,
+ 0x1e1a, 0x1e1a,
+ 0x1e1c, 0x1e1c,
+ 0x1e1e, 0x1e1e,
+ 0x1e20, 0x1e20,
+ 0x1e22, 0x1e22,
+ 0x1e24, 0x1e24,
+ 0x1e26, 0x1e26,
+ 0x1e28, 0x1e28,
+ 0x1e2a, 0x1e2a,
+ 0x1e2c, 0x1e2c,
+ 0x1e2e, 0x1e2e,
+ 0x1e30, 0x1e30,
+ 0x1e32, 0x1e32,
+ 0x1e34, 0x1e34,
+ 0x1e36, 0x1e36,
+ 0x1e38, 0x1e38,
+ 0x1e3a, 0x1e3a,
+ 0x1e3c, 0x1e3c,
+ 0x1e3e, 0x1e3e,
+ 0x1e40, 0x1e40,
+ 0x1e42, 0x1e42,
+ 0x1e44, 0x1e44,
+ 0x1e46, 0x1e46,
+ 0x1e48, 0x1e48,
+ 0x1e4a, 0x1e4a,
+ 0x1e4c, 0x1e4c,
+ 0x1e4e, 0x1e4e,
+ 0x1e50, 0x1e50,
+ 0x1e52, 0x1e52,
+ 0x1e54, 0x1e54,
+ 0x1e56, 0x1e56,
+ 0x1e58, 0x1e58,
+ 0x1e5a, 0x1e5a,
+ 0x1e5c, 0x1e5c,
+ 0x1e5e, 0x1e5e,
+ 0x1e60, 0x1e60,
+ 0x1e62, 0x1e62,
+ 0x1e64, 0x1e64,
+ 0x1e66, 0x1e66,
+ 0x1e68, 0x1e68,
+ 0x1e6a, 0x1e6a,
+ 0x1e6c, 0x1e6c,
+ 0x1e6e, 0x1e6e,
+ 0x1e70, 0x1e70,
+ 0x1e72, 0x1e72,
+ 0x1e74, 0x1e74,
+ 0x1e76, 0x1e76,
+ 0x1e78, 0x1e78,
+ 0x1e7a, 0x1e7a,
+ 0x1e7c, 0x1e7c,
+ 0x1e7e, 0x1e7e,
+ 0x1e80, 0x1e80,
+ 0x1e82, 0x1e82,
+ 0x1e84, 0x1e84,
+ 0x1e86, 0x1e86,
+ 0x1e88, 0x1e88,
+ 0x1e8a, 0x1e8a,
+ 0x1e8c, 0x1e8c,
+ 0x1e8e, 0x1e8e,
+ 0x1e90, 0x1e90,
+ 0x1e92, 0x1e92,
+ 0x1e94, 0x1e94,
+ 0x1e9e, 0x1e9e,
+ 0x1ea0, 0x1ea0,
+ 0x1ea2, 0x1ea2,
+ 0x1ea4, 0x1ea4,
+ 0x1ea6, 0x1ea6,
+ 0x1ea8, 0x1ea8,
+ 0x1eaa, 0x1eaa,
+ 0x1eac, 0x1eac,
+ 0x1eae, 0x1eae,
+ 0x1eb0, 0x1eb0,
+ 0x1eb2, 0x1eb2,
+ 0x1eb4, 0x1eb4,
+ 0x1eb6, 0x1eb6,
+ 0x1eb8, 0x1eb8,
+ 0x1eba, 0x1eba,
+ 0x1ebc, 0x1ebc,
+ 0x1ebe, 0x1ebe,
+ 0x1ec0, 0x1ec0,
+ 0x1ec2, 0x1ec2,
+ 0x1ec4, 0x1ec4,
+ 0x1ec6, 0x1ec6,
+ 0x1ec8, 0x1ec8,
+ 0x1eca, 0x1eca,
+ 0x1ecc, 0x1ecc,
+ 0x1ece, 0x1ece,
+ 0x1ed0, 0x1ed0,
+ 0x1ed2, 0x1ed2,
+ 0x1ed4, 0x1ed4,
+ 0x1ed6, 0x1ed6,
+ 0x1ed8, 0x1ed8,
+ 0x1eda, 0x1eda,
+ 0x1edc, 0x1edc,
+ 0x1ede, 0x1ede,
+ 0x1ee0, 0x1ee0,
+ 0x1ee2, 0x1ee2,
+ 0x1ee4, 0x1ee4,
+ 0x1ee6, 0x1ee6,
+ 0x1ee8, 0x1ee8,
+ 0x1eea, 0x1eea,
+ 0x1eec, 0x1eec,
+ 0x1eee, 0x1eee,
+ 0x1ef0, 0x1ef0,
+ 0x1ef2, 0x1ef2,
+ 0x1ef4, 0x1ef4,
+ 0x1ef6, 0x1ef6,
+ 0x1ef8, 0x1ef8,
+ 0x1efa, 0x1efa,
+ 0x1efc, 0x1efc,
+ 0x1efe, 0x1efe,
+ 0x1f08, 0x1f0f,
+ 0x1f18, 0x1f1d,
+ 0x1f28, 0x1f2f,
+ 0x1f38, 0x1f3f,
+ 0x1f48, 0x1f4d,
+ 0x1f59, 0x1f59,
+ 0x1f5b, 0x1f5b,
+ 0x1f5d, 0x1f5d,
+ 0x1f5f, 0x1f5f,
+ 0x1f68, 0x1f6f,
+ 0x1f88, 0x1f8f,
+ 0x1f98, 0x1f9f,
+ 0x1fa8, 0x1faf,
+ 0x1fb8, 0x1fbc,
+ 0x1fc8, 0x1fcc,
+ 0x1fd8, 0x1fdb,
+ 0x1fe8, 0x1fec,
+ 0x1ff8, 0x1ffc,
+ 0x2126, 0x2126,
+ 0x212a, 0x212b,
+ 0x2132, 0x2132,
+ 0x2160, 0x216f,
+ 0x2183, 0x2183,
+ 0x24b6, 0x24cf,
+ 0x2c00, 0x2c2e,
+ 0x2c60, 0x2c60,
+ 0x2c62, 0x2c64,
+ 0x2c67, 0x2c67,
+ 0x2c69, 0x2c69,
+ 0x2c6b, 0x2c6b,
+ 0x2c6d, 0x2c70,
+ 0x2c72, 0x2c72,
+ 0x2c75, 0x2c75,
+ 0x2c7e, 0x2c80,
+ 0x2c82, 0x2c82,
+ 0x2c84, 0x2c84,
+ 0x2c86, 0x2c86,
+ 0x2c88, 0x2c88,
+ 0x2c8a, 0x2c8a,
+ 0x2c8c, 0x2c8c,
+ 0x2c8e, 0x2c8e,
+ 0x2c90, 0x2c90,
+ 0x2c92, 0x2c92,
+ 0x2c94, 0x2c94,
+ 0x2c96, 0x2c96,
+ 0x2c98, 0x2c98,
+ 0x2c9a, 0x2c9a,
+ 0x2c9c, 0x2c9c,
+ 0x2c9e, 0x2c9e,
+ 0x2ca0, 0x2ca0,
+ 0x2ca2, 0x2ca2,
+ 0x2ca4, 0x2ca4,
+ 0x2ca6, 0x2ca6,
+ 0x2ca8, 0x2ca8,
+ 0x2caa, 0x2caa,
+ 0x2cac, 0x2cac,
+ 0x2cae, 0x2cae,
+ 0x2cb0, 0x2cb0,
+ 0x2cb2, 0x2cb2,
+ 0x2cb4, 0x2cb4,
+ 0x2cb6, 0x2cb6,
+ 0x2cb8, 0x2cb8,
+ 0x2cba, 0x2cba,
+ 0x2cbc, 0x2cbc,
+ 0x2cbe, 0x2cbe,
+ 0x2cc0, 0x2cc0,
+ 0x2cc2, 0x2cc2,
+ 0x2cc4, 0x2cc4,
+ 0x2cc6, 0x2cc6,
+ 0x2cc8, 0x2cc8,
+ 0x2cca, 0x2cca,
+ 0x2ccc, 0x2ccc,
+ 0x2cce, 0x2cce,
+ 0x2cd0, 0x2cd0,
+ 0x2cd2, 0x2cd2,
+ 0x2cd4, 0x2cd4,
+ 0x2cd6, 0x2cd6,
+ 0x2cd8, 0x2cd8,
+ 0x2cda, 0x2cda,
+ 0x2cdc, 0x2cdc,
+ 0x2cde, 0x2cde,
+ 0x2ce0, 0x2ce0,
+ 0x2ce2, 0x2ce2,
+ 0x2ceb, 0x2ceb,
+ 0x2ced, 0x2ced,
+ 0xa640, 0xa640,
+ 0xa642, 0xa642,
+ 0xa644, 0xa644,
+ 0xa646, 0xa646,
+ 0xa648, 0xa648,
+ 0xa64a, 0xa64a,
+ 0xa64c, 0xa64c,
+ 0xa64e, 0xa64e,
+ 0xa650, 0xa650,
+ 0xa652, 0xa652,
+ 0xa654, 0xa654,
+ 0xa656, 0xa656,
+ 0xa658, 0xa658,
+ 0xa65a, 0xa65a,
+ 0xa65c, 0xa65c,
+ 0xa65e, 0xa65e,
+ 0xa660, 0xa660,
+ 0xa662, 0xa662,
+ 0xa664, 0xa664,
+ 0xa666, 0xa666,
+ 0xa668, 0xa668,
+ 0xa66a, 0xa66a,
+ 0xa66c, 0xa66c,
+ 0xa680, 0xa680,
+ 0xa682, 0xa682,
+ 0xa684, 0xa684,
+ 0xa686, 0xa686,
+ 0xa688, 0xa688,
+ 0xa68a, 0xa68a,
+ 0xa68c, 0xa68c,
+ 0xa68e, 0xa68e,
+ 0xa690, 0xa690,
+ 0xa692, 0xa692,
+ 0xa694, 0xa694,
+ 0xa696, 0xa696,
+ 0xa722, 0xa722,
+ 0xa724, 0xa724,
+ 0xa726, 0xa726,
+ 0xa728, 0xa728,
+ 0xa72a, 0xa72a,
+ 0xa72c, 0xa72c,
+ 0xa72e, 0xa72e,
+ 0xa732, 0xa732,
+ 0xa734, 0xa734,
+ 0xa736, 0xa736,
+ 0xa738, 0xa738,
+ 0xa73a, 0xa73a,
+ 0xa73c, 0xa73c,
+ 0xa73e, 0xa73e,
+ 0xa740, 0xa740,
+ 0xa742, 0xa742,
+ 0xa744, 0xa744,
+ 0xa746, 0xa746,
+ 0xa748, 0xa748,
+ 0xa74a, 0xa74a,
+ 0xa74c, 0xa74c,
+ 0xa74e, 0xa74e,
+ 0xa750, 0xa750,
+ 0xa752, 0xa752,
+ 0xa754, 0xa754,
+ 0xa756, 0xa756,
+ 0xa758, 0xa758,
+ 0xa75a, 0xa75a,
+ 0xa75c, 0xa75c,
+ 0xa75e, 0xa75e,
+ 0xa760, 0xa760,
+ 0xa762, 0xa762,
+ 0xa764, 0xa764,
+ 0xa766, 0xa766,
+ 0xa768, 0xa768,
+ 0xa76a, 0xa76a,
+ 0xa76c, 0xa76c,
+ 0xa76e, 0xa76e,
+ 0xa779, 0xa779,
+ 0xa77b, 0xa77b,
+ 0xa77d, 0xa77e,
+ 0xa780, 0xa780,
+ 0xa782, 0xa782,
+ 0xa784, 0xa784,
+ 0xa786, 0xa786,
+ 0xa78b, 0xa78b,
+ 0xa78d, 0xa78d,
+ 0xa790, 0xa790,
+ 0xa7a0, 0xa7a0,
+ 0xa7a2, 0xa7a2,
+ 0xa7a4, 0xa7a4,
+ 0xa7a6, 0xa7a6,
+ 0xa7a8, 0xa7a8,
+ 0xff21, 0xff3a,
+ 0x10400, 0x10427,
+}; /* CR_Changes_When_Lowercased */
+
+/* 'Changes_When_Uppercased': Derived Property */
+static const OnigCodePoint CR_Changes_When_Uppercased[] = {
+ 582,
+ 0x0061, 0x007a,
+ 0x00b5, 0x00b5,
+ 0x00df, 0x00f6,
+ 0x00f8, 0x00ff,
+ 0x0101, 0x0101,
+ 0x0103, 0x0103,
+ 0x0105, 0x0105,
+ 0x0107, 0x0107,
+ 0x0109, 0x0109,
+ 0x010b, 0x010b,
+ 0x010d, 0x010d,
+ 0x010f, 0x010f,
+ 0x0111, 0x0111,
+ 0x0113, 0x0113,
+ 0x0115, 0x0115,
+ 0x0117, 0x0117,
+ 0x0119, 0x0119,
+ 0x011b, 0x011b,
+ 0x011d, 0x011d,
+ 0x011f, 0x011f,
+ 0x0121, 0x0121,
+ 0x0123, 0x0123,
+ 0x0125, 0x0125,
+ 0x0127, 0x0127,
+ 0x0129, 0x0129,
+ 0x012b, 0x012b,
+ 0x012d, 0x012d,
+ 0x012f, 0x012f,
+ 0x0131, 0x0131,
+ 0x0133, 0x0133,
+ 0x0135, 0x0135,
+ 0x0137, 0x0137,
+ 0x013a, 0x013a,
+ 0x013c, 0x013c,
+ 0x013e, 0x013e,
+ 0x0140, 0x0140,
+ 0x0142, 0x0142,
+ 0x0144, 0x0144,
+ 0x0146, 0x0146,
+ 0x0148, 0x0149,
+ 0x014b, 0x014b,
+ 0x014d, 0x014d,
+ 0x014f, 0x014f,
+ 0x0151, 0x0151,
+ 0x0153, 0x0153,
+ 0x0155, 0x0155,
+ 0x0157, 0x0157,
+ 0x0159, 0x0159,
+ 0x015b, 0x015b,
+ 0x015d, 0x015d,
+ 0x015f, 0x015f,
+ 0x0161, 0x0161,
+ 0x0163, 0x0163,
+ 0x0165, 0x0165,
+ 0x0167, 0x0167,
+ 0x0169, 0x0169,
+ 0x016b, 0x016b,
+ 0x016d, 0x016d,
+ 0x016f, 0x016f,
+ 0x0171, 0x0171,
+ 0x0173, 0x0173,
+ 0x0175, 0x0175,
+ 0x0177, 0x0177,
+ 0x017a, 0x017a,
+ 0x017c, 0x017c,
+ 0x017e, 0x0180,
+ 0x0183, 0x0183,
+ 0x0185, 0x0185,
+ 0x0188, 0x0188,
+ 0x018c, 0x018c,
+ 0x0192, 0x0192,
+ 0x0195, 0x0195,
+ 0x0199, 0x019a,
+ 0x019e, 0x019e,
+ 0x01a1, 0x01a1,
+ 0x01a3, 0x01a3,
+ 0x01a5, 0x01a5,
+ 0x01a8, 0x01a8,
+ 0x01ad, 0x01ad,
+ 0x01b0, 0x01b0,
+ 0x01b4, 0x01b4,
+ 0x01b6, 0x01b6,
+ 0x01b9, 0x01b9,
+ 0x01bd, 0x01bd,
+ 0x01bf, 0x01bf,
+ 0x01c5, 0x01c6,
+ 0x01c8, 0x01c9,
+ 0x01cb, 0x01cc,
+ 0x01ce, 0x01ce,
+ 0x01d0, 0x01d0,
+ 0x01d2, 0x01d2,
+ 0x01d4, 0x01d4,
+ 0x01d6, 0x01d6,
+ 0x01d8, 0x01d8,
+ 0x01da, 0x01da,
+ 0x01dc, 0x01dd,
+ 0x01df, 0x01df,
+ 0x01e1, 0x01e1,
+ 0x01e3, 0x01e3,
+ 0x01e5, 0x01e5,
+ 0x01e7, 0x01e7,
+ 0x01e9, 0x01e9,
+ 0x01eb, 0x01eb,
+ 0x01ed, 0x01ed,
+ 0x01ef, 0x01f0,
+ 0x01f2, 0x01f3,
+ 0x01f5, 0x01f5,
+ 0x01f9, 0x01f9,
+ 0x01fb, 0x01fb,
+ 0x01fd, 0x01fd,
+ 0x01ff, 0x01ff,
+ 0x0201, 0x0201,
+ 0x0203, 0x0203,
+ 0x0205, 0x0205,
+ 0x0207, 0x0207,
+ 0x0209, 0x0209,
+ 0x020b, 0x020b,
+ 0x020d, 0x020d,
+ 0x020f, 0x020f,
+ 0x0211, 0x0211,
+ 0x0213, 0x0213,
+ 0x0215, 0x0215,
+ 0x0217, 0x0217,
+ 0x0219, 0x0219,
+ 0x021b, 0x021b,
+ 0x021d, 0x021d,
+ 0x021f, 0x021f,
+ 0x0223, 0x0223,
+ 0x0225, 0x0225,
+ 0x0227, 0x0227,
+ 0x0229, 0x0229,
+ 0x022b, 0x022b,
+ 0x022d, 0x022d,
+ 0x022f, 0x022f,
+ 0x0231, 0x0231,
+ 0x0233, 0x0233,
+ 0x023c, 0x023c,
+ 0x023f, 0x0240,
+ 0x0242, 0x0242,
+ 0x0247, 0x0247,
+ 0x0249, 0x0249,
+ 0x024b, 0x024b,
+ 0x024d, 0x024d,
+ 0x024f, 0x0254,
+ 0x0256, 0x0257,
+ 0x0259, 0x0259,
+ 0x025b, 0x025b,
+ 0x0260, 0x0260,
+ 0x0263, 0x0263,
+ 0x0265, 0x0265,
+ 0x0268, 0x0269,
+ 0x026b, 0x026b,
+ 0x026f, 0x026f,
+ 0x0271, 0x0272,
+ 0x0275, 0x0275,
+ 0x027d, 0x027d,
+ 0x0280, 0x0280,
+ 0x0283, 0x0283,
+ 0x0288, 0x028c,
+ 0x0292, 0x0292,
+ 0x0345, 0x0345,
+ 0x0371, 0x0371,
+ 0x0373, 0x0373,
+ 0x0377, 0x0377,
+ 0x037b, 0x037d,
+ 0x0390, 0x0390,
+ 0x03ac, 0x03ce,
+ 0x03d0, 0x03d1,
+ 0x03d5, 0x03d7,
+ 0x03d9, 0x03d9,
+ 0x03db, 0x03db,
+ 0x03dd, 0x03dd,
+ 0x03df, 0x03df,
+ 0x03e1, 0x03e1,
+ 0x03e3, 0x03e3,
+ 0x03e5, 0x03e5,
+ 0x03e7, 0x03e7,
+ 0x03e9, 0x03e9,
+ 0x03eb, 0x03eb,
+ 0x03ed, 0x03ed,
+ 0x03ef, 0x03f2,
+ 0x03f5, 0x03f5,
+ 0x03f8, 0x03f8,
+ 0x03fb, 0x03fb,
+ 0x0430, 0x045f,
+ 0x0461, 0x0461,
+ 0x0463, 0x0463,
+ 0x0465, 0x0465,
+ 0x0467, 0x0467,
+ 0x0469, 0x0469,
+ 0x046b, 0x046b,
+ 0x046d, 0x046d,
+ 0x046f, 0x046f,
+ 0x0471, 0x0471,
+ 0x0473, 0x0473,
+ 0x0475, 0x0475,
+ 0x0477, 0x0477,
+ 0x0479, 0x0479,
+ 0x047b, 0x047b,
+ 0x047d, 0x047d,
+ 0x047f, 0x047f,
+ 0x0481, 0x0481,
+ 0x048b, 0x048b,
+ 0x048d, 0x048d,
+ 0x048f, 0x048f,
+ 0x0491, 0x0491,
+ 0x0493, 0x0493,
+ 0x0495, 0x0495,
+ 0x0497, 0x0497,
+ 0x0499, 0x0499,
+ 0x049b, 0x049b,
+ 0x049d, 0x049d,
+ 0x049f, 0x049f,
+ 0x04a1, 0x04a1,
+ 0x04a3, 0x04a3,
+ 0x04a5, 0x04a5,
+ 0x04a7, 0x04a7,
+ 0x04a9, 0x04a9,
+ 0x04ab, 0x04ab,
+ 0x04ad, 0x04ad,
+ 0x04af, 0x04af,
+ 0x04b1, 0x04b1,
+ 0x04b3, 0x04b3,
+ 0x04b5, 0x04b5,
+ 0x04b7, 0x04b7,
+ 0x04b9, 0x04b9,
+ 0x04bb, 0x04bb,
+ 0x04bd, 0x04bd,
+ 0x04bf, 0x04bf,
+ 0x04c2, 0x04c2,
+ 0x04c4, 0x04c4,
+ 0x04c6, 0x04c6,
+ 0x04c8, 0x04c8,
+ 0x04ca, 0x04ca,
+ 0x04cc, 0x04cc,
+ 0x04ce, 0x04cf,
+ 0x04d1, 0x04d1,
+ 0x04d3, 0x04d3,
+ 0x04d5, 0x04d5,
+ 0x04d7, 0x04d7,
+ 0x04d9, 0x04d9,
+ 0x04db, 0x04db,
+ 0x04dd, 0x04dd,
+ 0x04df, 0x04df,
+ 0x04e1, 0x04e1,
+ 0x04e3, 0x04e3,
+ 0x04e5, 0x04e5,
+ 0x04e7, 0x04e7,
+ 0x04e9, 0x04e9,
+ 0x04eb, 0x04eb,
+ 0x04ed, 0x04ed,
+ 0x04ef, 0x04ef,
+ 0x04f1, 0x04f1,
+ 0x04f3, 0x04f3,
+ 0x04f5, 0x04f5,
+ 0x04f7, 0x04f7,
+ 0x04f9, 0x04f9,
+ 0x04fb, 0x04fb,
+ 0x04fd, 0x04fd,
+ 0x04ff, 0x04ff,
+ 0x0501, 0x0501,
+ 0x0503, 0x0503,
+ 0x0505, 0x0505,
+ 0x0507, 0x0507,
+ 0x0509, 0x0509,
+ 0x050b, 0x050b,
+ 0x050d, 0x050d,
+ 0x050f, 0x050f,
+ 0x0511, 0x0511,
+ 0x0513, 0x0513,
+ 0x0515, 0x0515,
+ 0x0517, 0x0517,
+ 0x0519, 0x0519,
+ 0x051b, 0x051b,
+ 0x051d, 0x051d,
+ 0x051f, 0x051f,
+ 0x0521, 0x0521,
+ 0x0523, 0x0523,
+ 0x0525, 0x0525,
+ 0x0527, 0x0527,
+ 0x0561, 0x0587,
+ 0x1d79, 0x1d79,
+ 0x1d7d, 0x1d7d,
+ 0x1e01, 0x1e01,
+ 0x1e03, 0x1e03,
+ 0x1e05, 0x1e05,
+ 0x1e07, 0x1e07,
+ 0x1e09, 0x1e09,
+ 0x1e0b, 0x1e0b,
+ 0x1e0d, 0x1e0d,
+ 0x1e0f, 0x1e0f,
+ 0x1e11, 0x1e11,
+ 0x1e13, 0x1e13,
+ 0x1e15, 0x1e15,
+ 0x1e17, 0x1e17,
+ 0x1e19, 0x1e19,
+ 0x1e1b, 0x1e1b,
+ 0x1e1d, 0x1e1d,
+ 0x1e1f, 0x1e1f,
+ 0x1e21, 0x1e21,
+ 0x1e23, 0x1e23,
+ 0x1e25, 0x1e25,
+ 0x1e27, 0x1e27,
+ 0x1e29, 0x1e29,
+ 0x1e2b, 0x1e2b,
+ 0x1e2d, 0x1e2d,
+ 0x1e2f, 0x1e2f,
+ 0x1e31, 0x1e31,
+ 0x1e33, 0x1e33,
+ 0x1e35, 0x1e35,
+ 0x1e37, 0x1e37,
+ 0x1e39, 0x1e39,
+ 0x1e3b, 0x1e3b,
+ 0x1e3d, 0x1e3d,
+ 0x1e3f, 0x1e3f,
+ 0x1e41, 0x1e41,
+ 0x1e43, 0x1e43,
+ 0x1e45, 0x1e45,
+ 0x1e47, 0x1e47,
+ 0x1e49, 0x1e49,
+ 0x1e4b, 0x1e4b,
+ 0x1e4d, 0x1e4d,
+ 0x1e4f, 0x1e4f,
+ 0x1e51, 0x1e51,
+ 0x1e53, 0x1e53,
+ 0x1e55, 0x1e55,
+ 0x1e57, 0x1e57,
+ 0x1e59, 0x1e59,
+ 0x1e5b, 0x1e5b,
+ 0x1e5d, 0x1e5d,
+ 0x1e5f, 0x1e5f,
+ 0x1e61, 0x1e61,
+ 0x1e63, 0x1e63,
+ 0x1e65, 0x1e65,
+ 0x1e67, 0x1e67,
+ 0x1e69, 0x1e69,
+ 0x1e6b, 0x1e6b,
+ 0x1e6d, 0x1e6d,
+ 0x1e6f, 0x1e6f,
+ 0x1e71, 0x1e71,
+ 0x1e73, 0x1e73,
+ 0x1e75, 0x1e75,
+ 0x1e77, 0x1e77,
+ 0x1e79, 0x1e79,
+ 0x1e7b, 0x1e7b,
+ 0x1e7d, 0x1e7d,
+ 0x1e7f, 0x1e7f,
+ 0x1e81, 0x1e81,
+ 0x1e83, 0x1e83,
+ 0x1e85, 0x1e85,
+ 0x1e87, 0x1e87,
+ 0x1e89, 0x1e89,
+ 0x1e8b, 0x1e8b,
+ 0x1e8d, 0x1e8d,
+ 0x1e8f, 0x1e8f,
+ 0x1e91, 0x1e91,
+ 0x1e93, 0x1e93,
+ 0x1e95, 0x1e9b,
+ 0x1ea1, 0x1ea1,
+ 0x1ea3, 0x1ea3,
+ 0x1ea5, 0x1ea5,
+ 0x1ea7, 0x1ea7,
+ 0x1ea9, 0x1ea9,
+ 0x1eab, 0x1eab,
+ 0x1ead, 0x1ead,
+ 0x1eaf, 0x1eaf,
+ 0x1eb1, 0x1eb1,
+ 0x1eb3, 0x1eb3,
+ 0x1eb5, 0x1eb5,
+ 0x1eb7, 0x1eb7,
+ 0x1eb9, 0x1eb9,
+ 0x1ebb, 0x1ebb,
+ 0x1ebd, 0x1ebd,
+ 0x1ebf, 0x1ebf,
+ 0x1ec1, 0x1ec1,
+ 0x1ec3, 0x1ec3,
+ 0x1ec5, 0x1ec5,
+ 0x1ec7, 0x1ec7,
+ 0x1ec9, 0x1ec9,
+ 0x1ecb, 0x1ecb,
+ 0x1ecd, 0x1ecd,
+ 0x1ecf, 0x1ecf,
+ 0x1ed1, 0x1ed1,
+ 0x1ed3, 0x1ed3,
+ 0x1ed5, 0x1ed5,
+ 0x1ed7, 0x1ed7,
+ 0x1ed9, 0x1ed9,
+ 0x1edb, 0x1edb,
+ 0x1edd, 0x1edd,
+ 0x1edf, 0x1edf,
+ 0x1ee1, 0x1ee1,
+ 0x1ee3, 0x1ee3,
+ 0x1ee5, 0x1ee5,
+ 0x1ee7, 0x1ee7,
+ 0x1ee9, 0x1ee9,
+ 0x1eeb, 0x1eeb,
+ 0x1eed, 0x1eed,
+ 0x1eef, 0x1eef,
+ 0x1ef1, 0x1ef1,
+ 0x1ef3, 0x1ef3,
+ 0x1ef5, 0x1ef5,
+ 0x1ef7, 0x1ef7,
+ 0x1ef9, 0x1ef9,
+ 0x1efb, 0x1efb,
+ 0x1efd, 0x1efd,
+ 0x1eff, 0x1f07,
+ 0x1f10, 0x1f15,
+ 0x1f20, 0x1f27,
+ 0x1f30, 0x1f37,
+ 0x1f40, 0x1f45,
+ 0x1f50, 0x1f57,
+ 0x1f60, 0x1f67,
+ 0x1f70, 0x1f7d,
+ 0x1f80, 0x1fb4,
+ 0x1fb6, 0x1fb7,
+ 0x1fbc, 0x1fbc,
+ 0x1fbe, 0x1fbe,
+ 0x1fc2, 0x1fc4,
+ 0x1fc6, 0x1fc7,
+ 0x1fcc, 0x1fcc,
+ 0x1fd0, 0x1fd3,
+ 0x1fd6, 0x1fd7,
+ 0x1fe0, 0x1fe7,
+ 0x1ff2, 0x1ff4,
+ 0x1ff6, 0x1ff7,
+ 0x1ffc, 0x1ffc,
+ 0x214e, 0x214e,
+ 0x2170, 0x217f,
+ 0x2184, 0x2184,
+ 0x24d0, 0x24e9,
+ 0x2c30, 0x2c5e,
+ 0x2c61, 0x2c61,
+ 0x2c65, 0x2c66,
+ 0x2c68, 0x2c68,
+ 0x2c6a, 0x2c6a,
+ 0x2c6c, 0x2c6c,
+ 0x2c73, 0x2c73,
+ 0x2c76, 0x2c76,
+ 0x2c81, 0x2c81,
+ 0x2c83, 0x2c83,
+ 0x2c85, 0x2c85,
+ 0x2c87, 0x2c87,
+ 0x2c89, 0x2c89,
+ 0x2c8b, 0x2c8b,
+ 0x2c8d, 0x2c8d,
+ 0x2c8f, 0x2c8f,
+ 0x2c91, 0x2c91,
+ 0x2c93, 0x2c93,
+ 0x2c95, 0x2c95,
+ 0x2c97, 0x2c97,
+ 0x2c99, 0x2c99,
+ 0x2c9b, 0x2c9b,
+ 0x2c9d, 0x2c9d,
+ 0x2c9f, 0x2c9f,
+ 0x2ca1, 0x2ca1,
+ 0x2ca3, 0x2ca3,
+ 0x2ca5, 0x2ca5,
+ 0x2ca7, 0x2ca7,
+ 0x2ca9, 0x2ca9,
+ 0x2cab, 0x2cab,
+ 0x2cad, 0x2cad,
+ 0x2caf, 0x2caf,
+ 0x2cb1, 0x2cb1,
+ 0x2cb3, 0x2cb3,
+ 0x2cb5, 0x2cb5,
+ 0x2cb7, 0x2cb7,
+ 0x2cb9, 0x2cb9,
+ 0x2cbb, 0x2cbb,
+ 0x2cbd, 0x2cbd,
+ 0x2cbf, 0x2cbf,
+ 0x2cc1, 0x2cc1,
+ 0x2cc3, 0x2cc3,
+ 0x2cc5, 0x2cc5,
+ 0x2cc7, 0x2cc7,
+ 0x2cc9, 0x2cc9,
+ 0x2ccb, 0x2ccb,
+ 0x2ccd, 0x2ccd,
+ 0x2ccf, 0x2ccf,
+ 0x2cd1, 0x2cd1,
+ 0x2cd3, 0x2cd3,
+ 0x2cd5, 0x2cd5,
+ 0x2cd7, 0x2cd7,
+ 0x2cd9, 0x2cd9,
+ 0x2cdb, 0x2cdb,
+ 0x2cdd, 0x2cdd,
+ 0x2cdf, 0x2cdf,
+ 0x2ce1, 0x2ce1,
+ 0x2ce3, 0x2ce3,
+ 0x2cec, 0x2cec,
+ 0x2cee, 0x2cee,
+ 0x2d00, 0x2d25,
+ 0xa641, 0xa641,
+ 0xa643, 0xa643,
+ 0xa645, 0xa645,
+ 0xa647, 0xa647,
+ 0xa649, 0xa649,
+ 0xa64b, 0xa64b,
+ 0xa64d, 0xa64d,
+ 0xa64f, 0xa64f,
+ 0xa651, 0xa651,
+ 0xa653, 0xa653,
+ 0xa655, 0xa655,
+ 0xa657, 0xa657,
+ 0xa659, 0xa659,
+ 0xa65b, 0xa65b,
+ 0xa65d, 0xa65d,
+ 0xa65f, 0xa65f,
+ 0xa661, 0xa661,
+ 0xa663, 0xa663,
+ 0xa665, 0xa665,
+ 0xa667, 0xa667,
+ 0xa669, 0xa669,
+ 0xa66b, 0xa66b,
+ 0xa66d, 0xa66d,
+ 0xa681, 0xa681,
+ 0xa683, 0xa683,
+ 0xa685, 0xa685,
+ 0xa687, 0xa687,
+ 0xa689, 0xa689,
+ 0xa68b, 0xa68b,
+ 0xa68d, 0xa68d,
+ 0xa68f, 0xa68f,
+ 0xa691, 0xa691,
+ 0xa693, 0xa693,
+ 0xa695, 0xa695,
+ 0xa697, 0xa697,
+ 0xa723, 0xa723,
+ 0xa725, 0xa725,
+ 0xa727, 0xa727,
+ 0xa729, 0xa729,
+ 0xa72b, 0xa72b,
+ 0xa72d, 0xa72d,
+ 0xa72f, 0xa72f,
+ 0xa733, 0xa733,
+ 0xa735, 0xa735,
+ 0xa737, 0xa737,
+ 0xa739, 0xa739,
+ 0xa73b, 0xa73b,
+ 0xa73d, 0xa73d,
+ 0xa73f, 0xa73f,
+ 0xa741, 0xa741,
+ 0xa743, 0xa743,
+ 0xa745, 0xa745,
+ 0xa747, 0xa747,
+ 0xa749, 0xa749,
+ 0xa74b, 0xa74b,
+ 0xa74d, 0xa74d,
+ 0xa74f, 0xa74f,
+ 0xa751, 0xa751,
+ 0xa753, 0xa753,
+ 0xa755, 0xa755,
+ 0xa757, 0xa757,
+ 0xa759, 0xa759,
+ 0xa75b, 0xa75b,
+ 0xa75d, 0xa75d,
+ 0xa75f, 0xa75f,
+ 0xa761, 0xa761,
+ 0xa763, 0xa763,
+ 0xa765, 0xa765,
+ 0xa767, 0xa767,
+ 0xa769, 0xa769,
+ 0xa76b, 0xa76b,
+ 0xa76d, 0xa76d,
+ 0xa76f, 0xa76f,
+ 0xa77a, 0xa77a,
+ 0xa77c, 0xa77c,
+ 0xa77f, 0xa77f,
+ 0xa781, 0xa781,
+ 0xa783, 0xa783,
+ 0xa785, 0xa785,
+ 0xa787, 0xa787,
+ 0xa78c, 0xa78c,
+ 0xa791, 0xa791,
+ 0xa7a1, 0xa7a1,
+ 0xa7a3, 0xa7a3,
+ 0xa7a5, 0xa7a5,
+ 0xa7a7, 0xa7a7,
+ 0xa7a9, 0xa7a9,
+ 0xfb00, 0xfb06,
+ 0xfb13, 0xfb17,
+ 0xff41, 0xff5a,
+ 0x10428, 0x1044f,
+}; /* CR_Changes_When_Uppercased */
+
+/* 'Changes_When_Titlecased': Derived Property */
+static const OnigCodePoint CR_Changes_When_Titlecased[] = {
+ 583,
+ 0x0061, 0x007a,
+ 0x00b5, 0x00b5,
+ 0x00df, 0x00f6,
+ 0x00f8, 0x00ff,
+ 0x0101, 0x0101,
+ 0x0103, 0x0103,
+ 0x0105, 0x0105,
+ 0x0107, 0x0107,
+ 0x0109, 0x0109,
+ 0x010b, 0x010b,
+ 0x010d, 0x010d,
+ 0x010f, 0x010f,
+ 0x0111, 0x0111,
+ 0x0113, 0x0113,
+ 0x0115, 0x0115,
+ 0x0117, 0x0117,
+ 0x0119, 0x0119,
+ 0x011b, 0x011b,
+ 0x011d, 0x011d,
+ 0x011f, 0x011f,
+ 0x0121, 0x0121,
+ 0x0123, 0x0123,
+ 0x0125, 0x0125,
+ 0x0127, 0x0127,
+ 0x0129, 0x0129,
+ 0x012b, 0x012b,
+ 0x012d, 0x012d,
+ 0x012f, 0x012f,
+ 0x0131, 0x0131,
+ 0x0133, 0x0133,
+ 0x0135, 0x0135,
+ 0x0137, 0x0137,
+ 0x013a, 0x013a,
+ 0x013c, 0x013c,
+ 0x013e, 0x013e,
+ 0x0140, 0x0140,
+ 0x0142, 0x0142,
+ 0x0144, 0x0144,
+ 0x0146, 0x0146,
+ 0x0148, 0x0149,
+ 0x014b, 0x014b,
+ 0x014d, 0x014d,
+ 0x014f, 0x014f,
+ 0x0151, 0x0151,
+ 0x0153, 0x0153,
+ 0x0155, 0x0155,
+ 0x0157, 0x0157,
+ 0x0159, 0x0159,
+ 0x015b, 0x015b,
+ 0x015d, 0x015d,
+ 0x015f, 0x015f,
+ 0x0161, 0x0161,
+ 0x0163, 0x0163,
+ 0x0165, 0x0165,
+ 0x0167, 0x0167,
+ 0x0169, 0x0169,
+ 0x016b, 0x016b,
+ 0x016d, 0x016d,
+ 0x016f, 0x016f,
+ 0x0171, 0x0171,
+ 0x0173, 0x0173,
+ 0x0175, 0x0175,
+ 0x0177, 0x0177,
+ 0x017a, 0x017a,
+ 0x017c, 0x017c,
+ 0x017e, 0x0180,
+ 0x0183, 0x0183,
+ 0x0185, 0x0185,
+ 0x0188, 0x0188,
+ 0x018c, 0x018c,
+ 0x0192, 0x0192,
+ 0x0195, 0x0195,
+ 0x0199, 0x019a,
+ 0x019e, 0x019e,
+ 0x01a1, 0x01a1,
+ 0x01a3, 0x01a3,
+ 0x01a5, 0x01a5,
+ 0x01a8, 0x01a8,
+ 0x01ad, 0x01ad,
+ 0x01b0, 0x01b0,
+ 0x01b4, 0x01b4,
+ 0x01b6, 0x01b6,
+ 0x01b9, 0x01b9,
+ 0x01bd, 0x01bd,
+ 0x01bf, 0x01bf,
+ 0x01c4, 0x01c4,
+ 0x01c6, 0x01c7,
+ 0x01c9, 0x01ca,
+ 0x01cc, 0x01cc,
+ 0x01ce, 0x01ce,
+ 0x01d0, 0x01d0,
+ 0x01d2, 0x01d2,
+ 0x01d4, 0x01d4,
+ 0x01d6, 0x01d6,
+ 0x01d8, 0x01d8,
+ 0x01da, 0x01da,
+ 0x01dc, 0x01dd,
+ 0x01df, 0x01df,
+ 0x01e1, 0x01e1,
+ 0x01e3, 0x01e3,
+ 0x01e5, 0x01e5,
+ 0x01e7, 0x01e7,
+ 0x01e9, 0x01e9,
+ 0x01eb, 0x01eb,
+ 0x01ed, 0x01ed,
+ 0x01ef, 0x01f1,
+ 0x01f3, 0x01f3,
+ 0x01f5, 0x01f5,
+ 0x01f9, 0x01f9,
+ 0x01fb, 0x01fb,
+ 0x01fd, 0x01fd,
+ 0x01ff, 0x01ff,
+ 0x0201, 0x0201,
+ 0x0203, 0x0203,
+ 0x0205, 0x0205,
+ 0x0207, 0x0207,
+ 0x0209, 0x0209,
+ 0x020b, 0x020b,
+ 0x020d, 0x020d,
+ 0x020f, 0x020f,
+ 0x0211, 0x0211,
+ 0x0213, 0x0213,
+ 0x0215, 0x0215,
+ 0x0217, 0x0217,
+ 0x0219, 0x0219,
+ 0x021b, 0x021b,
+ 0x021d, 0x021d,
+ 0x021f, 0x021f,
+ 0x0223, 0x0223,
+ 0x0225, 0x0225,
+ 0x0227, 0x0227,
+ 0x0229, 0x0229,
+ 0x022b, 0x022b,
+ 0x022d, 0x022d,
+ 0x022f, 0x022f,
+ 0x0231, 0x0231,
+ 0x0233, 0x0233,
+ 0x023c, 0x023c,
+ 0x023f, 0x0240,
+ 0x0242, 0x0242,
+ 0x0247, 0x0247,
+ 0x0249, 0x0249,
+ 0x024b, 0x024b,
+ 0x024d, 0x024d,
+ 0x024f, 0x0254,
+ 0x0256, 0x0257,
+ 0x0259, 0x0259,
+ 0x025b, 0x025b,
+ 0x0260, 0x0260,
+ 0x0263, 0x0263,
+ 0x0265, 0x0265,
+ 0x0268, 0x0269,
+ 0x026b, 0x026b,
+ 0x026f, 0x026f,
+ 0x0271, 0x0272,
+ 0x0275, 0x0275,
+ 0x027d, 0x027d,
+ 0x0280, 0x0280,
+ 0x0283, 0x0283,
+ 0x0288, 0x028c,
+ 0x0292, 0x0292,
+ 0x0345, 0x0345,
+ 0x0371, 0x0371,
+ 0x0373, 0x0373,
+ 0x0377, 0x0377,
+ 0x037b, 0x037d,
+ 0x0390, 0x0390,
+ 0x03ac, 0x03ce,
+ 0x03d0, 0x03d1,
+ 0x03d5, 0x03d7,
+ 0x03d9, 0x03d9,
+ 0x03db, 0x03db,
+ 0x03dd, 0x03dd,
+ 0x03df, 0x03df,
+ 0x03e1, 0x03e1,
+ 0x03e3, 0x03e3,
+ 0x03e5, 0x03e5,
+ 0x03e7, 0x03e7,
+ 0x03e9, 0x03e9,
+ 0x03eb, 0x03eb,
+ 0x03ed, 0x03ed,
+ 0x03ef, 0x03f2,
+ 0x03f5, 0x03f5,
+ 0x03f8, 0x03f8,
+ 0x03fb, 0x03fb,
+ 0x0430, 0x045f,
+ 0x0461, 0x0461,
+ 0x0463, 0x0463,
+ 0x0465, 0x0465,
+ 0x0467, 0x0467,
+ 0x0469, 0x0469,
+ 0x046b, 0x046b,
+ 0x046d, 0x046d,
+ 0x046f, 0x046f,
+ 0x0471, 0x0471,
+ 0x0473, 0x0473,
+ 0x0475, 0x0475,
+ 0x0477, 0x0477,
+ 0x0479, 0x0479,
+ 0x047b, 0x047b,
+ 0x047d, 0x047d,
+ 0x047f, 0x047f,
+ 0x0481, 0x0481,
+ 0x048b, 0x048b,
+ 0x048d, 0x048d,
+ 0x048f, 0x048f,
+ 0x0491, 0x0491,
+ 0x0493, 0x0493,
+ 0x0495, 0x0495,
+ 0x0497, 0x0497,
+ 0x0499, 0x0499,
+ 0x049b, 0x049b,
+ 0x049d, 0x049d,
+ 0x049f, 0x049f,
+ 0x04a1, 0x04a1,
+ 0x04a3, 0x04a3,
+ 0x04a5, 0x04a5,
+ 0x04a7, 0x04a7,
+ 0x04a9, 0x04a9,
+ 0x04ab, 0x04ab,
+ 0x04ad, 0x04ad,
+ 0x04af, 0x04af,
+ 0x04b1, 0x04b1,
+ 0x04b3, 0x04b3,
+ 0x04b5, 0x04b5,
+ 0x04b7, 0x04b7,
+ 0x04b9, 0x04b9,
+ 0x04bb, 0x04bb,
+ 0x04bd, 0x04bd,
+ 0x04bf, 0x04bf,
+ 0x04c2, 0x04c2,
+ 0x04c4, 0x04c4,
+ 0x04c6, 0x04c6,
+ 0x04c8, 0x04c8,
+ 0x04ca, 0x04ca,
+ 0x04cc, 0x04cc,
+ 0x04ce, 0x04cf,
+ 0x04d1, 0x04d1,
+ 0x04d3, 0x04d3,
+ 0x04d5, 0x04d5,
+ 0x04d7, 0x04d7,
+ 0x04d9, 0x04d9,
+ 0x04db, 0x04db,
+ 0x04dd, 0x04dd,
+ 0x04df, 0x04df,
+ 0x04e1, 0x04e1,
+ 0x04e3, 0x04e3,
+ 0x04e5, 0x04e5,
+ 0x04e7, 0x04e7,
+ 0x04e9, 0x04e9,
+ 0x04eb, 0x04eb,
+ 0x04ed, 0x04ed,
+ 0x04ef, 0x04ef,
+ 0x04f1, 0x04f1,
+ 0x04f3, 0x04f3,
+ 0x04f5, 0x04f5,
+ 0x04f7, 0x04f7,
+ 0x04f9, 0x04f9,
+ 0x04fb, 0x04fb,
+ 0x04fd, 0x04fd,
+ 0x04ff, 0x04ff,
+ 0x0501, 0x0501,
+ 0x0503, 0x0503,
+ 0x0505, 0x0505,
+ 0x0507, 0x0507,
+ 0x0509, 0x0509,
+ 0x050b, 0x050b,
+ 0x050d, 0x050d,
+ 0x050f, 0x050f,
+ 0x0511, 0x0511,
+ 0x0513, 0x0513,
+ 0x0515, 0x0515,
+ 0x0517, 0x0517,
+ 0x0519, 0x0519,
+ 0x051b, 0x051b,
+ 0x051d, 0x051d,
+ 0x051f, 0x051f,
+ 0x0521, 0x0521,
+ 0x0523, 0x0523,
+ 0x0525, 0x0525,
+ 0x0527, 0x0527,
+ 0x0561, 0x0587,
+ 0x1d79, 0x1d79,
+ 0x1d7d, 0x1d7d,
+ 0x1e01, 0x1e01,
+ 0x1e03, 0x1e03,
+ 0x1e05, 0x1e05,
+ 0x1e07, 0x1e07,
+ 0x1e09, 0x1e09,
+ 0x1e0b, 0x1e0b,
+ 0x1e0d, 0x1e0d,
+ 0x1e0f, 0x1e0f,
+ 0x1e11, 0x1e11,
+ 0x1e13, 0x1e13,
+ 0x1e15, 0x1e15,
+ 0x1e17, 0x1e17,
+ 0x1e19, 0x1e19,
+ 0x1e1b, 0x1e1b,
+ 0x1e1d, 0x1e1d,
+ 0x1e1f, 0x1e1f,
+ 0x1e21, 0x1e21,
+ 0x1e23, 0x1e23,
+ 0x1e25, 0x1e25,
+ 0x1e27, 0x1e27,
+ 0x1e29, 0x1e29,
+ 0x1e2b, 0x1e2b,
+ 0x1e2d, 0x1e2d,
+ 0x1e2f, 0x1e2f,
+ 0x1e31, 0x1e31,
+ 0x1e33, 0x1e33,
+ 0x1e35, 0x1e35,
+ 0x1e37, 0x1e37,
+ 0x1e39, 0x1e39,
+ 0x1e3b, 0x1e3b,
+ 0x1e3d, 0x1e3d,
+ 0x1e3f, 0x1e3f,
+ 0x1e41, 0x1e41,
+ 0x1e43, 0x1e43,
+ 0x1e45, 0x1e45,
+ 0x1e47, 0x1e47,
+ 0x1e49, 0x1e49,
+ 0x1e4b, 0x1e4b,
+ 0x1e4d, 0x1e4d,
+ 0x1e4f, 0x1e4f,
+ 0x1e51, 0x1e51,
+ 0x1e53, 0x1e53,
+ 0x1e55, 0x1e55,
+ 0x1e57, 0x1e57,
+ 0x1e59, 0x1e59,
+ 0x1e5b, 0x1e5b,
+ 0x1e5d, 0x1e5d,
+ 0x1e5f, 0x1e5f,
+ 0x1e61, 0x1e61,
+ 0x1e63, 0x1e63,
+ 0x1e65, 0x1e65,
+ 0x1e67, 0x1e67,
+ 0x1e69, 0x1e69,
+ 0x1e6b, 0x1e6b,
+ 0x1e6d, 0x1e6d,
+ 0x1e6f, 0x1e6f,
+ 0x1e71, 0x1e71,
+ 0x1e73, 0x1e73,
+ 0x1e75, 0x1e75,
+ 0x1e77, 0x1e77,
+ 0x1e79, 0x1e79,
+ 0x1e7b, 0x1e7b,
+ 0x1e7d, 0x1e7d,
+ 0x1e7f, 0x1e7f,
+ 0x1e81, 0x1e81,
+ 0x1e83, 0x1e83,
+ 0x1e85, 0x1e85,
+ 0x1e87, 0x1e87,
+ 0x1e89, 0x1e89,
+ 0x1e8b, 0x1e8b,
+ 0x1e8d, 0x1e8d,
+ 0x1e8f, 0x1e8f,
+ 0x1e91, 0x1e91,
+ 0x1e93, 0x1e93,
+ 0x1e95, 0x1e9b,
+ 0x1ea1, 0x1ea1,
+ 0x1ea3, 0x1ea3,
+ 0x1ea5, 0x1ea5,
+ 0x1ea7, 0x1ea7,
+ 0x1ea9, 0x1ea9,
+ 0x1eab, 0x1eab,
+ 0x1ead, 0x1ead,
+ 0x1eaf, 0x1eaf,
+ 0x1eb1, 0x1eb1,
+ 0x1eb3, 0x1eb3,
+ 0x1eb5, 0x1eb5,
+ 0x1eb7, 0x1eb7,
+ 0x1eb9, 0x1eb9,
+ 0x1ebb, 0x1ebb,
+ 0x1ebd, 0x1ebd,
+ 0x1ebf, 0x1ebf,
+ 0x1ec1, 0x1ec1,
+ 0x1ec3, 0x1ec3,
+ 0x1ec5, 0x1ec5,
+ 0x1ec7, 0x1ec7,
+ 0x1ec9, 0x1ec9,
+ 0x1ecb, 0x1ecb,
+ 0x1ecd, 0x1ecd,
+ 0x1ecf, 0x1ecf,
+ 0x1ed1, 0x1ed1,
+ 0x1ed3, 0x1ed3,
+ 0x1ed5, 0x1ed5,
+ 0x1ed7, 0x1ed7,
+ 0x1ed9, 0x1ed9,
+ 0x1edb, 0x1edb,
+ 0x1edd, 0x1edd,
+ 0x1edf, 0x1edf,
+ 0x1ee1, 0x1ee1,
+ 0x1ee3, 0x1ee3,
+ 0x1ee5, 0x1ee5,
+ 0x1ee7, 0x1ee7,
+ 0x1ee9, 0x1ee9,
+ 0x1eeb, 0x1eeb,
+ 0x1eed, 0x1eed,
+ 0x1eef, 0x1eef,
+ 0x1ef1, 0x1ef1,
+ 0x1ef3, 0x1ef3,
+ 0x1ef5, 0x1ef5,
+ 0x1ef7, 0x1ef7,
+ 0x1ef9, 0x1ef9,
+ 0x1efb, 0x1efb,
+ 0x1efd, 0x1efd,
+ 0x1eff, 0x1f07,
+ 0x1f10, 0x1f15,
+ 0x1f20, 0x1f27,
+ 0x1f30, 0x1f37,
+ 0x1f40, 0x1f45,
+ 0x1f50, 0x1f57,
+ 0x1f60, 0x1f67,
+ 0x1f70, 0x1f7d,
+ 0x1f80, 0x1f87,
+ 0x1f90, 0x1f97,
+ 0x1fa0, 0x1fa7,
+ 0x1fb0, 0x1fb4,
+ 0x1fb6, 0x1fb7,
+ 0x1fbe, 0x1fbe,
+ 0x1fc2, 0x1fc4,
+ 0x1fc6, 0x1fc7,
+ 0x1fd0, 0x1fd3,
+ 0x1fd6, 0x1fd7,
+ 0x1fe0, 0x1fe7,
+ 0x1ff2, 0x1ff4,
+ 0x1ff6, 0x1ff7,
+ 0x214e, 0x214e,
+ 0x2170, 0x217f,
+ 0x2184, 0x2184,
+ 0x24d0, 0x24e9,
+ 0x2c30, 0x2c5e,
+ 0x2c61, 0x2c61,
+ 0x2c65, 0x2c66,
+ 0x2c68, 0x2c68,
+ 0x2c6a, 0x2c6a,
+ 0x2c6c, 0x2c6c,
+ 0x2c73, 0x2c73,
+ 0x2c76, 0x2c76,
+ 0x2c81, 0x2c81,
+ 0x2c83, 0x2c83,
+ 0x2c85, 0x2c85,
+ 0x2c87, 0x2c87,
+ 0x2c89, 0x2c89,
+ 0x2c8b, 0x2c8b,
+ 0x2c8d, 0x2c8d,
+ 0x2c8f, 0x2c8f,
+ 0x2c91, 0x2c91,
+ 0x2c93, 0x2c93,
+ 0x2c95, 0x2c95,
+ 0x2c97, 0x2c97,
+ 0x2c99, 0x2c99,
+ 0x2c9b, 0x2c9b,
+ 0x2c9d, 0x2c9d,
+ 0x2c9f, 0x2c9f,
+ 0x2ca1, 0x2ca1,
+ 0x2ca3, 0x2ca3,
+ 0x2ca5, 0x2ca5,
+ 0x2ca7, 0x2ca7,
+ 0x2ca9, 0x2ca9,
+ 0x2cab, 0x2cab,
+ 0x2cad, 0x2cad,
+ 0x2caf, 0x2caf,
+ 0x2cb1, 0x2cb1,
+ 0x2cb3, 0x2cb3,
+ 0x2cb5, 0x2cb5,
+ 0x2cb7, 0x2cb7,
+ 0x2cb9, 0x2cb9,
+ 0x2cbb, 0x2cbb,
+ 0x2cbd, 0x2cbd,
+ 0x2cbf, 0x2cbf,
+ 0x2cc1, 0x2cc1,
+ 0x2cc3, 0x2cc3,
+ 0x2cc5, 0x2cc5,
+ 0x2cc7, 0x2cc7,
+ 0x2cc9, 0x2cc9,
+ 0x2ccb, 0x2ccb,
+ 0x2ccd, 0x2ccd,
+ 0x2ccf, 0x2ccf,
+ 0x2cd1, 0x2cd1,
+ 0x2cd3, 0x2cd3,
+ 0x2cd5, 0x2cd5,
+ 0x2cd7, 0x2cd7,
+ 0x2cd9, 0x2cd9,
+ 0x2cdb, 0x2cdb,
+ 0x2cdd, 0x2cdd,
+ 0x2cdf, 0x2cdf,
+ 0x2ce1, 0x2ce1,
+ 0x2ce3, 0x2ce3,
+ 0x2cec, 0x2cec,
+ 0x2cee, 0x2cee,
+ 0x2d00, 0x2d25,
+ 0xa641, 0xa641,
+ 0xa643, 0xa643,
+ 0xa645, 0xa645,
+ 0xa647, 0xa647,
+ 0xa649, 0xa649,
+ 0xa64b, 0xa64b,
+ 0xa64d, 0xa64d,
+ 0xa64f, 0xa64f,
+ 0xa651, 0xa651,
+ 0xa653, 0xa653,
+ 0xa655, 0xa655,
+ 0xa657, 0xa657,
+ 0xa659, 0xa659,
+ 0xa65b, 0xa65b,
+ 0xa65d, 0xa65d,
+ 0xa65f, 0xa65f,
+ 0xa661, 0xa661,
+ 0xa663, 0xa663,
+ 0xa665, 0xa665,
+ 0xa667, 0xa667,
+ 0xa669, 0xa669,
+ 0xa66b, 0xa66b,
+ 0xa66d, 0xa66d,
+ 0xa681, 0xa681,
+ 0xa683, 0xa683,
+ 0xa685, 0xa685,
+ 0xa687, 0xa687,
+ 0xa689, 0xa689,
+ 0xa68b, 0xa68b,
+ 0xa68d, 0xa68d,
+ 0xa68f, 0xa68f,
+ 0xa691, 0xa691,
+ 0xa693, 0xa693,
+ 0xa695, 0xa695,
+ 0xa697, 0xa697,
+ 0xa723, 0xa723,
+ 0xa725, 0xa725,
+ 0xa727, 0xa727,
+ 0xa729, 0xa729,
+ 0xa72b, 0xa72b,
+ 0xa72d, 0xa72d,
+ 0xa72f, 0xa72f,
+ 0xa733, 0xa733,
+ 0xa735, 0xa735,
+ 0xa737, 0xa737,
+ 0xa739, 0xa739,
+ 0xa73b, 0xa73b,
+ 0xa73d, 0xa73d,
+ 0xa73f, 0xa73f,
+ 0xa741, 0xa741,
+ 0xa743, 0xa743,
+ 0xa745, 0xa745,
+ 0xa747, 0xa747,
+ 0xa749, 0xa749,
+ 0xa74b, 0xa74b,
+ 0xa74d, 0xa74d,
+ 0xa74f, 0xa74f,
+ 0xa751, 0xa751,
+ 0xa753, 0xa753,
+ 0xa755, 0xa755,
+ 0xa757, 0xa757,
+ 0xa759, 0xa759,
+ 0xa75b, 0xa75b,
+ 0xa75d, 0xa75d,
+ 0xa75f, 0xa75f,
+ 0xa761, 0xa761,
+ 0xa763, 0xa763,
+ 0xa765, 0xa765,
+ 0xa767, 0xa767,
+ 0xa769, 0xa769,
+ 0xa76b, 0xa76b,
+ 0xa76d, 0xa76d,
+ 0xa76f, 0xa76f,
+ 0xa77a, 0xa77a,
+ 0xa77c, 0xa77c,
+ 0xa77f, 0xa77f,
+ 0xa781, 0xa781,
+ 0xa783, 0xa783,
+ 0xa785, 0xa785,
+ 0xa787, 0xa787,
+ 0xa78c, 0xa78c,
+ 0xa791, 0xa791,
+ 0xa7a1, 0xa7a1,
+ 0xa7a3, 0xa7a3,
+ 0xa7a5, 0xa7a5,
+ 0xa7a7, 0xa7a7,
+ 0xa7a9, 0xa7a9,
+ 0xfb00, 0xfb06,
+ 0xfb13, 0xfb17,
+ 0xff41, 0xff5a,
+ 0x10428, 0x1044f,
+}; /* CR_Changes_When_Titlecased */
+
+/* 'Changes_When_Casefolded': Derived Property */
+static const OnigCodePoint CR_Changes_When_Casefolded[] = {
+ 577,
+ 0x0041, 0x005a,
+ 0x00b5, 0x00b5,
+ 0x00c0, 0x00d6,
+ 0x00d8, 0x00df,
+ 0x0100, 0x0100,
+ 0x0102, 0x0102,
+ 0x0104, 0x0104,
+ 0x0106, 0x0106,
+ 0x0108, 0x0108,
+ 0x010a, 0x010a,
+ 0x010c, 0x010c,
+ 0x010e, 0x010e,
+ 0x0110, 0x0110,
+ 0x0112, 0x0112,
+ 0x0114, 0x0114,
+ 0x0116, 0x0116,
+ 0x0118, 0x0118,
+ 0x011a, 0x011a,
+ 0x011c, 0x011c,
+ 0x011e, 0x011e,
+ 0x0120, 0x0120,
+ 0x0122, 0x0122,
+ 0x0124, 0x0124,
+ 0x0126, 0x0126,
+ 0x0128, 0x0128,
+ 0x012a, 0x012a,
+ 0x012c, 0x012c,
+ 0x012e, 0x012e,
+ 0x0130, 0x0130,
+ 0x0132, 0x0132,
+ 0x0134, 0x0134,
+ 0x0136, 0x0136,
+ 0x0139, 0x0139,
+ 0x013b, 0x013b,
+ 0x013d, 0x013d,
+ 0x013f, 0x013f,
+ 0x0141, 0x0141,
+ 0x0143, 0x0143,
+ 0x0145, 0x0145,
+ 0x0147, 0x0147,
+ 0x0149, 0x014a,
+ 0x014c, 0x014c,
+ 0x014e, 0x014e,
+ 0x0150, 0x0150,
+ 0x0152, 0x0152,
+ 0x0154, 0x0154,
+ 0x0156, 0x0156,
+ 0x0158, 0x0158,
+ 0x015a, 0x015a,
+ 0x015c, 0x015c,
+ 0x015e, 0x015e,
+ 0x0160, 0x0160,
+ 0x0162, 0x0162,
+ 0x0164, 0x0164,
+ 0x0166, 0x0166,
+ 0x0168, 0x0168,
+ 0x016a, 0x016a,
+ 0x016c, 0x016c,
+ 0x016e, 0x016e,
+ 0x0170, 0x0170,
+ 0x0172, 0x0172,
+ 0x0174, 0x0174,
+ 0x0176, 0x0176,
+ 0x0178, 0x0179,
+ 0x017b, 0x017b,
+ 0x017d, 0x017d,
+ 0x017f, 0x017f,
+ 0x0181, 0x0182,
+ 0x0184, 0x0184,
+ 0x0186, 0x0187,
+ 0x0189, 0x018b,
+ 0x018e, 0x0191,
+ 0x0193, 0x0194,
+ 0x0196, 0x0198,
+ 0x019c, 0x019d,
+ 0x019f, 0x01a0,
+ 0x01a2, 0x01a2,
+ 0x01a4, 0x01a4,
+ 0x01a6, 0x01a7,
+ 0x01a9, 0x01a9,
+ 0x01ac, 0x01ac,
+ 0x01ae, 0x01af,
+ 0x01b1, 0x01b3,
+ 0x01b5, 0x01b5,
+ 0x01b7, 0x01b8,
+ 0x01bc, 0x01bc,
+ 0x01c4, 0x01c5,
+ 0x01c7, 0x01c8,
+ 0x01ca, 0x01cb,
+ 0x01cd, 0x01cd,
+ 0x01cf, 0x01cf,
+ 0x01d1, 0x01d1,
+ 0x01d3, 0x01d3,
+ 0x01d5, 0x01d5,
+ 0x01d7, 0x01d7,
+ 0x01d9, 0x01d9,
+ 0x01db, 0x01db,
+ 0x01de, 0x01de,
+ 0x01e0, 0x01e0,
+ 0x01e2, 0x01e2,
+ 0x01e4, 0x01e4,
+ 0x01e6, 0x01e6,
+ 0x01e8, 0x01e8,
+ 0x01ea, 0x01ea,
+ 0x01ec, 0x01ec,
+ 0x01ee, 0x01ee,
+ 0x01f1, 0x01f2,
+ 0x01f4, 0x01f4,
+ 0x01f6, 0x01f8,
+ 0x01fa, 0x01fa,
+ 0x01fc, 0x01fc,
+ 0x01fe, 0x01fe,
+ 0x0200, 0x0200,
+ 0x0202, 0x0202,
+ 0x0204, 0x0204,
+ 0x0206, 0x0206,
+ 0x0208, 0x0208,
+ 0x020a, 0x020a,
+ 0x020c, 0x020c,
+ 0x020e, 0x020e,
+ 0x0210, 0x0210,
+ 0x0212, 0x0212,
+ 0x0214, 0x0214,
+ 0x0216, 0x0216,
+ 0x0218, 0x0218,
+ 0x021a, 0x021a,
+ 0x021c, 0x021c,
+ 0x021e, 0x021e,
+ 0x0220, 0x0220,
+ 0x0222, 0x0222,
+ 0x0224, 0x0224,
+ 0x0226, 0x0226,
+ 0x0228, 0x0228,
+ 0x022a, 0x022a,
+ 0x022c, 0x022c,
+ 0x022e, 0x022e,
+ 0x0230, 0x0230,
+ 0x0232, 0x0232,
+ 0x023a, 0x023b,
+ 0x023d, 0x023e,
+ 0x0241, 0x0241,
+ 0x0243, 0x0246,
+ 0x0248, 0x0248,
+ 0x024a, 0x024a,
+ 0x024c, 0x024c,
+ 0x024e, 0x024e,
+ 0x0345, 0x0345,
+ 0x0370, 0x0370,
+ 0x0372, 0x0372,
+ 0x0376, 0x0376,
+ 0x0386, 0x0386,
+ 0x0388, 0x038a,
+ 0x038c, 0x038c,
+ 0x038e, 0x038f,
+ 0x0391, 0x03a1,
+ 0x03a3, 0x03ab,
+ 0x03c2, 0x03c2,
+ 0x03cf, 0x03d1,
+ 0x03d5, 0x03d6,
+ 0x03d8, 0x03d8,
+ 0x03da, 0x03da,
+ 0x03dc, 0x03dc,
+ 0x03de, 0x03de,
+ 0x03e0, 0x03e0,
+ 0x03e2, 0x03e2,
+ 0x03e4, 0x03e4,
+ 0x03e6, 0x03e6,
+ 0x03e8, 0x03e8,
+ 0x03ea, 0x03ea,
+ 0x03ec, 0x03ec,
+ 0x03ee, 0x03ee,
+ 0x03f0, 0x03f1,
+ 0x03f4, 0x03f5,
+ 0x03f7, 0x03f7,
+ 0x03f9, 0x03fa,
+ 0x03fd, 0x042f,
+ 0x0460, 0x0460,
+ 0x0462, 0x0462,
+ 0x0464, 0x0464,
+ 0x0466, 0x0466,
+ 0x0468, 0x0468,
+ 0x046a, 0x046a,
+ 0x046c, 0x046c,
+ 0x046e, 0x046e,
+ 0x0470, 0x0470,
+ 0x0472, 0x0472,
+ 0x0474, 0x0474,
+ 0x0476, 0x0476,
+ 0x0478, 0x0478,
+ 0x047a, 0x047a,
+ 0x047c, 0x047c,
+ 0x047e, 0x047e,
+ 0x0480, 0x0480,
+ 0x048a, 0x048a,
+ 0x048c, 0x048c,
+ 0x048e, 0x048e,
+ 0x0490, 0x0490,
+ 0x0492, 0x0492,
+ 0x0494, 0x0494,
+ 0x0496, 0x0496,
+ 0x0498, 0x0498,
+ 0x049a, 0x049a,
+ 0x049c, 0x049c,
+ 0x049e, 0x049e,
+ 0x04a0, 0x04a0,
+ 0x04a2, 0x04a2,
+ 0x04a4, 0x04a4,
+ 0x04a6, 0x04a6,
+ 0x04a8, 0x04a8,
+ 0x04aa, 0x04aa,
+ 0x04ac, 0x04ac,
+ 0x04ae, 0x04ae,
+ 0x04b0, 0x04b0,
+ 0x04b2, 0x04b2,
+ 0x04b4, 0x04b4,
+ 0x04b6, 0x04b6,
+ 0x04b8, 0x04b8,
+ 0x04ba, 0x04ba,
+ 0x04bc, 0x04bc,
+ 0x04be, 0x04be,
+ 0x04c0, 0x04c1,
+ 0x04c3, 0x04c3,
+ 0x04c5, 0x04c5,
+ 0x04c7, 0x04c7,
+ 0x04c9, 0x04c9,
+ 0x04cb, 0x04cb,
+ 0x04cd, 0x04cd,
+ 0x04d0, 0x04d0,
+ 0x04d2, 0x04d2,
+ 0x04d4, 0x04d4,
+ 0x04d6, 0x04d6,
+ 0x04d8, 0x04d8,
+ 0x04da, 0x04da,
+ 0x04dc, 0x04dc,
+ 0x04de, 0x04de,
+ 0x04e0, 0x04e0,
+ 0x04e2, 0x04e2,
+ 0x04e4, 0x04e4,
+ 0x04e6, 0x04e6,
+ 0x04e8, 0x04e8,
+ 0x04ea, 0x04ea,
+ 0x04ec, 0x04ec,
+ 0x04ee, 0x04ee,
+ 0x04f0, 0x04f0,
+ 0x04f2, 0x04f2,
+ 0x04f4, 0x04f4,
+ 0x04f6, 0x04f6,
+ 0x04f8, 0x04f8,
+ 0x04fa, 0x04fa,
+ 0x04fc, 0x04fc,
+ 0x04fe, 0x04fe,
+ 0x0500, 0x0500,
+ 0x0502, 0x0502,
+ 0x0504, 0x0504,
+ 0x0506, 0x0506,
+ 0x0508, 0x0508,
+ 0x050a, 0x050a,
+ 0x050c, 0x050c,
+ 0x050e, 0x050e,
+ 0x0510, 0x0510,
+ 0x0512, 0x0512,
+ 0x0514, 0x0514,
+ 0x0516, 0x0516,
+ 0x0518, 0x0518,
+ 0x051a, 0x051a,
+ 0x051c, 0x051c,
+ 0x051e, 0x051e,
+ 0x0520, 0x0520,
+ 0x0522, 0x0522,
+ 0x0524, 0x0524,
+ 0x0526, 0x0526,
+ 0x0531, 0x0556,
+ 0x0587, 0x0587,
+ 0x10a0, 0x10c5,
+ 0x1e00, 0x1e00,
+ 0x1e02, 0x1e02,
+ 0x1e04, 0x1e04,
+ 0x1e06, 0x1e06,
+ 0x1e08, 0x1e08,
+ 0x1e0a, 0x1e0a,
+ 0x1e0c, 0x1e0c,
+ 0x1e0e, 0x1e0e,
+ 0x1e10, 0x1e10,
+ 0x1e12, 0x1e12,
+ 0x1e14, 0x1e14,
+ 0x1e16, 0x1e16,
+ 0x1e18, 0x1e18,
+ 0x1e1a, 0x1e1a,
+ 0x1e1c, 0x1e1c,
+ 0x1e1e, 0x1e1e,
+ 0x1e20, 0x1e20,
+ 0x1e22, 0x1e22,
+ 0x1e24, 0x1e24,
+ 0x1e26, 0x1e26,
+ 0x1e28, 0x1e28,
+ 0x1e2a, 0x1e2a,
+ 0x1e2c, 0x1e2c,
+ 0x1e2e, 0x1e2e,
+ 0x1e30, 0x1e30,
+ 0x1e32, 0x1e32,
+ 0x1e34, 0x1e34,
+ 0x1e36, 0x1e36,
+ 0x1e38, 0x1e38,
+ 0x1e3a, 0x1e3a,
+ 0x1e3c, 0x1e3c,
+ 0x1e3e, 0x1e3e,
+ 0x1e40, 0x1e40,
+ 0x1e42, 0x1e42,
+ 0x1e44, 0x1e44,
+ 0x1e46, 0x1e46,
+ 0x1e48, 0x1e48,
+ 0x1e4a, 0x1e4a,
+ 0x1e4c, 0x1e4c,
+ 0x1e4e, 0x1e4e,
+ 0x1e50, 0x1e50,
+ 0x1e52, 0x1e52,
+ 0x1e54, 0x1e54,
+ 0x1e56, 0x1e56,
+ 0x1e58, 0x1e58,
+ 0x1e5a, 0x1e5a,
+ 0x1e5c, 0x1e5c,
+ 0x1e5e, 0x1e5e,
+ 0x1e60, 0x1e60,
+ 0x1e62, 0x1e62,
+ 0x1e64, 0x1e64,
+ 0x1e66, 0x1e66,
+ 0x1e68, 0x1e68,
+ 0x1e6a, 0x1e6a,
+ 0x1e6c, 0x1e6c,
+ 0x1e6e, 0x1e6e,
+ 0x1e70, 0x1e70,
+ 0x1e72, 0x1e72,
+ 0x1e74, 0x1e74,
+ 0x1e76, 0x1e76,
+ 0x1e78, 0x1e78,
+ 0x1e7a, 0x1e7a,
+ 0x1e7c, 0x1e7c,
+ 0x1e7e, 0x1e7e,
+ 0x1e80, 0x1e80,
+ 0x1e82, 0x1e82,
+ 0x1e84, 0x1e84,
+ 0x1e86, 0x1e86,
+ 0x1e88, 0x1e88,
+ 0x1e8a, 0x1e8a,
+ 0x1e8c, 0x1e8c,
+ 0x1e8e, 0x1e8e,
+ 0x1e90, 0x1e90,
+ 0x1e92, 0x1e92,
+ 0x1e94, 0x1e94,
+ 0x1e9a, 0x1e9b,
+ 0x1e9e, 0x1e9e,
+ 0x1ea0, 0x1ea0,
+ 0x1ea2, 0x1ea2,
+ 0x1ea4, 0x1ea4,
+ 0x1ea6, 0x1ea6,
+ 0x1ea8, 0x1ea8,
+ 0x1eaa, 0x1eaa,
+ 0x1eac, 0x1eac,
+ 0x1eae, 0x1eae,
+ 0x1eb0, 0x1eb0,
+ 0x1eb2, 0x1eb2,
+ 0x1eb4, 0x1eb4,
+ 0x1eb6, 0x1eb6,
+ 0x1eb8, 0x1eb8,
+ 0x1eba, 0x1eba,
+ 0x1ebc, 0x1ebc,
+ 0x1ebe, 0x1ebe,
+ 0x1ec0, 0x1ec0,
+ 0x1ec2, 0x1ec2,
+ 0x1ec4, 0x1ec4,
+ 0x1ec6, 0x1ec6,
+ 0x1ec8, 0x1ec8,
+ 0x1eca, 0x1eca,
+ 0x1ecc, 0x1ecc,
+ 0x1ece, 0x1ece,
+ 0x1ed0, 0x1ed0,
+ 0x1ed2, 0x1ed2,
+ 0x1ed4, 0x1ed4,
+ 0x1ed6, 0x1ed6,
+ 0x1ed8, 0x1ed8,
+ 0x1eda, 0x1eda,
+ 0x1edc, 0x1edc,
+ 0x1ede, 0x1ede,
+ 0x1ee0, 0x1ee0,
+ 0x1ee2, 0x1ee2,
+ 0x1ee4, 0x1ee4,
+ 0x1ee6, 0x1ee6,
+ 0x1ee8, 0x1ee8,
+ 0x1eea, 0x1eea,
+ 0x1eec, 0x1eec,
+ 0x1eee, 0x1eee,
+ 0x1ef0, 0x1ef0,
+ 0x1ef2, 0x1ef2,
+ 0x1ef4, 0x1ef4,
+ 0x1ef6, 0x1ef6,
+ 0x1ef8, 0x1ef8,
+ 0x1efa, 0x1efa,
+ 0x1efc, 0x1efc,
+ 0x1efe, 0x1efe,
+ 0x1f08, 0x1f0f,
+ 0x1f18, 0x1f1d,
+ 0x1f28, 0x1f2f,
+ 0x1f38, 0x1f3f,
+ 0x1f48, 0x1f4d,
+ 0x1f59, 0x1f59,
+ 0x1f5b, 0x1f5b,
+ 0x1f5d, 0x1f5d,
+ 0x1f5f, 0x1f5f,
+ 0x1f68, 0x1f6f,
+ 0x1f80, 0x1faf,
+ 0x1fb2, 0x1fb4,
+ 0x1fb7, 0x1fbc,
+ 0x1fc2, 0x1fc4,
+ 0x1fc7, 0x1fcc,
+ 0x1fd8, 0x1fdb,
+ 0x1fe8, 0x1fec,
+ 0x1ff2, 0x1ff4,
+ 0x1ff7, 0x1ffc,
+ 0x2126, 0x2126,
+ 0x212a, 0x212b,
+ 0x2132, 0x2132,
+ 0x2160, 0x216f,
+ 0x2183, 0x2183,
+ 0x24b6, 0x24cf,
+ 0x2c00, 0x2c2e,
+ 0x2c60, 0x2c60,
+ 0x2c62, 0x2c64,
+ 0x2c67, 0x2c67,
+ 0x2c69, 0x2c69,
+ 0x2c6b, 0x2c6b,
+ 0x2c6d, 0x2c70,
+ 0x2c72, 0x2c72,
+ 0x2c75, 0x2c75,
+ 0x2c7e, 0x2c80,
+ 0x2c82, 0x2c82,
+ 0x2c84, 0x2c84,
+ 0x2c86, 0x2c86,
+ 0x2c88, 0x2c88,
+ 0x2c8a, 0x2c8a,
+ 0x2c8c, 0x2c8c,
+ 0x2c8e, 0x2c8e,
+ 0x2c90, 0x2c90,
+ 0x2c92, 0x2c92,
+ 0x2c94, 0x2c94,
+ 0x2c96, 0x2c96,
+ 0x2c98, 0x2c98,
+ 0x2c9a, 0x2c9a,
+ 0x2c9c, 0x2c9c,
+ 0x2c9e, 0x2c9e,
+ 0x2ca0, 0x2ca0,
+ 0x2ca2, 0x2ca2,
+ 0x2ca4, 0x2ca4,
+ 0x2ca6, 0x2ca6,
+ 0x2ca8, 0x2ca8,
+ 0x2caa, 0x2caa,
+ 0x2cac, 0x2cac,
+ 0x2cae, 0x2cae,
+ 0x2cb0, 0x2cb0,
+ 0x2cb2, 0x2cb2,
+ 0x2cb4, 0x2cb4,
+ 0x2cb6, 0x2cb6,
+ 0x2cb8, 0x2cb8,
+ 0x2cba, 0x2cba,
+ 0x2cbc, 0x2cbc,
+ 0x2cbe, 0x2cbe,
+ 0x2cc0, 0x2cc0,
+ 0x2cc2, 0x2cc2,
+ 0x2cc4, 0x2cc4,
+ 0x2cc6, 0x2cc6,
+ 0x2cc8, 0x2cc8,
+ 0x2cca, 0x2cca,
+ 0x2ccc, 0x2ccc,
+ 0x2cce, 0x2cce,
+ 0x2cd0, 0x2cd0,
+ 0x2cd2, 0x2cd2,
+ 0x2cd4, 0x2cd4,
+ 0x2cd6, 0x2cd6,
+ 0x2cd8, 0x2cd8,
+ 0x2cda, 0x2cda,
+ 0x2cdc, 0x2cdc,
+ 0x2cde, 0x2cde,
+ 0x2ce0, 0x2ce0,
+ 0x2ce2, 0x2ce2,
+ 0x2ceb, 0x2ceb,
+ 0x2ced, 0x2ced,
+ 0xa640, 0xa640,
+ 0xa642, 0xa642,
+ 0xa644, 0xa644,
+ 0xa646, 0xa646,
+ 0xa648, 0xa648,
+ 0xa64a, 0xa64a,
+ 0xa64c, 0xa64c,
+ 0xa64e, 0xa64e,
+ 0xa650, 0xa650,
+ 0xa652, 0xa652,
+ 0xa654, 0xa654,
+ 0xa656, 0xa656,
+ 0xa658, 0xa658,
+ 0xa65a, 0xa65a,
+ 0xa65c, 0xa65c,
+ 0xa65e, 0xa65e,
+ 0xa660, 0xa660,
+ 0xa662, 0xa662,
+ 0xa664, 0xa664,
+ 0xa666, 0xa666,
+ 0xa668, 0xa668,
+ 0xa66a, 0xa66a,
+ 0xa66c, 0xa66c,
+ 0xa680, 0xa680,
+ 0xa682, 0xa682,
+ 0xa684, 0xa684,
+ 0xa686, 0xa686,
+ 0xa688, 0xa688,
+ 0xa68a, 0xa68a,
+ 0xa68c, 0xa68c,
+ 0xa68e, 0xa68e,
+ 0xa690, 0xa690,
+ 0xa692, 0xa692,
+ 0xa694, 0xa694,
+ 0xa696, 0xa696,
+ 0xa722, 0xa722,
+ 0xa724, 0xa724,
+ 0xa726, 0xa726,
+ 0xa728, 0xa728,
+ 0xa72a, 0xa72a,
+ 0xa72c, 0xa72c,
+ 0xa72e, 0xa72e,
+ 0xa732, 0xa732,
+ 0xa734, 0xa734,
+ 0xa736, 0xa736,
+ 0xa738, 0xa738,
+ 0xa73a, 0xa73a,
+ 0xa73c, 0xa73c,
+ 0xa73e, 0xa73e,
+ 0xa740, 0xa740,
+ 0xa742, 0xa742,
+ 0xa744, 0xa744,
+ 0xa746, 0xa746,
+ 0xa748, 0xa748,
+ 0xa74a, 0xa74a,
+ 0xa74c, 0xa74c,
+ 0xa74e, 0xa74e,
+ 0xa750, 0xa750,
+ 0xa752, 0xa752,
+ 0xa754, 0xa754,
+ 0xa756, 0xa756,
+ 0xa758, 0xa758,
+ 0xa75a, 0xa75a,
+ 0xa75c, 0xa75c,
+ 0xa75e, 0xa75e,
+ 0xa760, 0xa760,
+ 0xa762, 0xa762,
+ 0xa764, 0xa764,
+ 0xa766, 0xa766,
+ 0xa768, 0xa768,
+ 0xa76a, 0xa76a,
+ 0xa76c, 0xa76c,
+ 0xa76e, 0xa76e,
+ 0xa779, 0xa779,
+ 0xa77b, 0xa77b,
+ 0xa77d, 0xa77e,
+ 0xa780, 0xa780,
+ 0xa782, 0xa782,
+ 0xa784, 0xa784,
+ 0xa786, 0xa786,
+ 0xa78b, 0xa78b,
+ 0xa78d, 0xa78d,
+ 0xa790, 0xa790,
+ 0xa7a0, 0xa7a0,
+ 0xa7a2, 0xa7a2,
+ 0xa7a4, 0xa7a4,
+ 0xa7a6, 0xa7a6,
+ 0xa7a8, 0xa7a8,
+ 0xfb00, 0xfb06,
+ 0xfb13, 0xfb17,
+ 0xff21, 0xff3a,
+ 0x10400, 0x10427,
+}; /* CR_Changes_When_Casefolded */
+
+/* 'Changes_When_Casemapped': Derived Property */
+static const OnigCodePoint CR_Changes_When_Casemapped[] = {
+ 99,
+ 0x0041, 0x005a,
+ 0x0061, 0x007a,
+ 0x00b5, 0x00b5,
+ 0x00c0, 0x00d6,
+ 0x00d8, 0x00f6,
+ 0x00f8, 0x0137,
+ 0x0139, 0x018c,
+ 0x018e, 0x019a,
+ 0x019c, 0x01a9,
+ 0x01ac, 0x01b9,
+ 0x01bc, 0x01bd,
+ 0x01bf, 0x01bf,
+ 0x01c4, 0x0220,
+ 0x0222, 0x0233,
+ 0x023a, 0x0254,
+ 0x0256, 0x0257,
+ 0x0259, 0x0259,
+ 0x025b, 0x025b,
+ 0x0260, 0x0260,
+ 0x0263, 0x0263,
+ 0x0265, 0x0265,
+ 0x0268, 0x0269,
+ 0x026b, 0x026b,
+ 0x026f, 0x026f,
+ 0x0271, 0x0272,
+ 0x0275, 0x0275,
+ 0x027d, 0x027d,
+ 0x0280, 0x0280,
+ 0x0283, 0x0283,
+ 0x0288, 0x028c,
+ 0x0292, 0x0292,
+ 0x0345, 0x0345,
+ 0x0370, 0x0373,
+ 0x0376, 0x0377,
+ 0x037b, 0x037d,
+ 0x0386, 0x0386,
+ 0x0388, 0x038a,
+ 0x038c, 0x038c,
+ 0x038e, 0x03a1,
+ 0x03a3, 0x03d1,
+ 0x03d5, 0x03f2,
+ 0x03f4, 0x03f5,
+ 0x03f7, 0x03fb,
+ 0x03fd, 0x0481,
+ 0x048a, 0x0527,
+ 0x0531, 0x0556,
+ 0x0561, 0x0587,
+ 0x10a0, 0x10c5,
+ 0x1d79, 0x1d79,
+ 0x1d7d, 0x1d7d,
+ 0x1e00, 0x1e9b,
+ 0x1e9e, 0x1e9e,
+ 0x1ea0, 0x1f15,
+ 0x1f18, 0x1f1d,
+ 0x1f20, 0x1f45,
+ 0x1f48, 0x1f4d,
+ 0x1f50, 0x1f57,
+ 0x1f59, 0x1f59,
+ 0x1f5b, 0x1f5b,
+ 0x1f5d, 0x1f5d,
+ 0x1f5f, 0x1f7d,
+ 0x1f80, 0x1fb4,
+ 0x1fb6, 0x1fbc,
+ 0x1fbe, 0x1fbe,
+ 0x1fc2, 0x1fc4,
+ 0x1fc6, 0x1fcc,
+ 0x1fd0, 0x1fd3,
+ 0x1fd6, 0x1fdb,
+ 0x1fe0, 0x1fec,
+ 0x1ff2, 0x1ff4,
+ 0x1ff6, 0x1ffc,
+ 0x2126, 0x2126,
+ 0x212a, 0x212b,
+ 0x2132, 0x2132,
+ 0x214e, 0x214e,
+ 0x2160, 0x217f,
+ 0x2183, 0x2184,
+ 0x24b6, 0x24e9,
+ 0x2c00, 0x2c2e,
+ 0x2c30, 0x2c5e,
+ 0x2c60, 0x2c70,
+ 0x2c72, 0x2c73,
+ 0x2c75, 0x2c76,
+ 0x2c7e, 0x2ce3,
+ 0x2ceb, 0x2cee,
+ 0x2d00, 0x2d25,
+ 0xa640, 0xa66d,
+ 0xa680, 0xa697,
+ 0xa722, 0xa72f,
+ 0xa732, 0xa76f,
+ 0xa779, 0xa787,
+ 0xa78b, 0xa78d,
+ 0xa790, 0xa791,
+ 0xa7a0, 0xa7a9,
+ 0xfb00, 0xfb06,
+ 0xfb13, 0xfb17,
+ 0xff21, 0xff3a,
+ 0xff41, 0xff5a,
+ 0x10400, 0x1044f,
+}; /* CR_Changes_When_Casemapped */
+
+/* 'ID_Start': Derived Property */
+static const OnigCodePoint CR_ID_Start[] = {
+ 437,
+ 0x0041, 0x005a,
+ 0x0061, 0x007a,
+ 0x00aa, 0x00aa,
+ 0x00b5, 0x00b5,
+ 0x00ba, 0x00ba,
+ 0x00c0, 0x00d6,
+ 0x00d8, 0x00f6,
+ 0x00f8, 0x02c1,
+ 0x02c6, 0x02d1,
+ 0x02e0, 0x02e4,
+ 0x02ec, 0x02ec,
+ 0x02ee, 0x02ee,
+ 0x0370, 0x0374,
+ 0x0376, 0x0377,
+ 0x037a, 0x037d,
+ 0x0386, 0x0386,
+ 0x0388, 0x038a,
+ 0x038c, 0x038c,
+ 0x038e, 0x03a1,
+ 0x03a3, 0x03f5,
+ 0x03f7, 0x0481,
+ 0x048a, 0x0527,
+ 0x0531, 0x0556,
+ 0x0559, 0x0559,
+ 0x0561, 0x0587,
+ 0x05d0, 0x05ea,
+ 0x05f0, 0x05f2,
+ 0x0620, 0x064a,
+ 0x066e, 0x066f,
+ 0x0671, 0x06d3,
+ 0x06d5, 0x06d5,
+ 0x06e5, 0x06e6,
+ 0x06ee, 0x06ef,
+ 0x06fa, 0x06fc,
+ 0x06ff, 0x06ff,
+ 0x0710, 0x0710,
+ 0x0712, 0x072f,
+ 0x074d, 0x07a5,
+ 0x07b1, 0x07b1,
+ 0x07ca, 0x07ea,
+ 0x07f4, 0x07f5,
+ 0x07fa, 0x07fa,
+ 0x0800, 0x0815,
+ 0x081a, 0x081a,
+ 0x0824, 0x0824,
+ 0x0828, 0x0828,
+ 0x0840, 0x0858,
+ 0x0904, 0x0939,
+ 0x093d, 0x093d,
+ 0x0950, 0x0950,
+ 0x0958, 0x0961,
+ 0x0971, 0x0977,
+ 0x0979, 0x097f,
+ 0x0985, 0x098c,
+ 0x098f, 0x0990,
+ 0x0993, 0x09a8,
+ 0x09aa, 0x09b0,
+ 0x09b2, 0x09b2,
+ 0x09b6, 0x09b9,
+ 0x09bd, 0x09bd,
+ 0x09ce, 0x09ce,
+ 0x09dc, 0x09dd,
+ 0x09df, 0x09e1,
+ 0x09f0, 0x09f1,
+ 0x0a05, 0x0a0a,
+ 0x0a0f, 0x0a10,
+ 0x0a13, 0x0a28,
+ 0x0a2a, 0x0a30,
+ 0x0a32, 0x0a33,
+ 0x0a35, 0x0a36,
+ 0x0a38, 0x0a39,
+ 0x0a59, 0x0a5c,
+ 0x0a5e, 0x0a5e,
+ 0x0a72, 0x0a74,
+ 0x0a85, 0x0a8d,
+ 0x0a8f, 0x0a91,
+ 0x0a93, 0x0aa8,
+ 0x0aaa, 0x0ab0,
+ 0x0ab2, 0x0ab3,
+ 0x0ab5, 0x0ab9,
+ 0x0abd, 0x0abd,
+ 0x0ad0, 0x0ad0,
+ 0x0ae0, 0x0ae1,
+ 0x0b05, 0x0b0c,
+ 0x0b0f, 0x0b10,
+ 0x0b13, 0x0b28,
+ 0x0b2a, 0x0b30,
+ 0x0b32, 0x0b33,
+ 0x0b35, 0x0b39,
+ 0x0b3d, 0x0b3d,
+ 0x0b5c, 0x0b5d,
+ 0x0b5f, 0x0b61,
+ 0x0b71, 0x0b71,
+ 0x0b83, 0x0b83,
+ 0x0b85, 0x0b8a,
+ 0x0b8e, 0x0b90,
+ 0x0b92, 0x0b95,
+ 0x0b99, 0x0b9a,
+ 0x0b9c, 0x0b9c,
+ 0x0b9e, 0x0b9f,
+ 0x0ba3, 0x0ba4,
+ 0x0ba8, 0x0baa,
+ 0x0bae, 0x0bb9,
+ 0x0bd0, 0x0bd0,
+ 0x0c05, 0x0c0c,
+ 0x0c0e, 0x0c10,
+ 0x0c12, 0x0c28,
+ 0x0c2a, 0x0c33,
+ 0x0c35, 0x0c39,
+ 0x0c3d, 0x0c3d,
+ 0x0c58, 0x0c59,
+ 0x0c60, 0x0c61,
+ 0x0c85, 0x0c8c,
+ 0x0c8e, 0x0c90,
+ 0x0c92, 0x0ca8,
+ 0x0caa, 0x0cb3,
+ 0x0cb5, 0x0cb9,
+ 0x0cbd, 0x0cbd,
+ 0x0cde, 0x0cde,
+ 0x0ce0, 0x0ce1,
+ 0x0cf1, 0x0cf2,
+ 0x0d05, 0x0d0c,
+ 0x0d0e, 0x0d10,
+ 0x0d12, 0x0d3a,
+ 0x0d3d, 0x0d3d,
+ 0x0d4e, 0x0d4e,
+ 0x0d60, 0x0d61,
+ 0x0d7a, 0x0d7f,
+ 0x0d85, 0x0d96,
+ 0x0d9a, 0x0db1,
+ 0x0db3, 0x0dbb,
+ 0x0dbd, 0x0dbd,
+ 0x0dc0, 0x0dc6,
+ 0x0e01, 0x0e30,
+ 0x0e32, 0x0e33,
+ 0x0e40, 0x0e46,
+ 0x0e81, 0x0e82,
+ 0x0e84, 0x0e84,
+ 0x0e87, 0x0e88,
+ 0x0e8a, 0x0e8a,
+ 0x0e8d, 0x0e8d,
+ 0x0e94, 0x0e97,
+ 0x0e99, 0x0e9f,
+ 0x0ea1, 0x0ea3,
+ 0x0ea5, 0x0ea5,
+ 0x0ea7, 0x0ea7,
+ 0x0eaa, 0x0eab,
+ 0x0ead, 0x0eb0,
+ 0x0eb2, 0x0eb3,
+ 0x0ebd, 0x0ebd,
+ 0x0ec0, 0x0ec4,
+ 0x0ec6, 0x0ec6,
+ 0x0edc, 0x0edd,
+ 0x0f00, 0x0f00,
+ 0x0f40, 0x0f47,
+ 0x0f49, 0x0f6c,
+ 0x0f88, 0x0f8c,
+ 0x1000, 0x102a,
+ 0x103f, 0x103f,
+ 0x1050, 0x1055,
+ 0x105a, 0x105d,
+ 0x1061, 0x1061,
+ 0x1065, 0x1066,
+ 0x106e, 0x1070,
+ 0x1075, 0x1081,
+ 0x108e, 0x108e,
+ 0x10a0, 0x10c5,
+ 0x10d0, 0x10fa,
+ 0x10fc, 0x10fc,
+ 0x1100, 0x1248,
+ 0x124a, 0x124d,
+ 0x1250, 0x1256,
+ 0x1258, 0x1258,
+ 0x125a, 0x125d,
+ 0x1260, 0x1288,
+ 0x128a, 0x128d,
+ 0x1290, 0x12b0,
+ 0x12b2, 0x12b5,
+ 0x12b8, 0x12be,
+ 0x12c0, 0x12c0,
+ 0x12c2, 0x12c5,
+ 0x12c8, 0x12d6,
+ 0x12d8, 0x1310,
+ 0x1312, 0x1315,
+ 0x1318, 0x135a,
+ 0x1380, 0x138f,
+ 0x13a0, 0x13f4,
+ 0x1401, 0x166c,
+ 0x166f, 0x167f,
+ 0x1681, 0x169a,
+ 0x16a0, 0x16ea,
+ 0x16ee, 0x16f0,
+ 0x1700, 0x170c,
+ 0x170e, 0x1711,
+ 0x1720, 0x1731,
+ 0x1740, 0x1751,
+ 0x1760, 0x176c,
+ 0x176e, 0x1770,
+ 0x1780, 0x17b3,
+ 0x17d7, 0x17d7,
+ 0x17dc, 0x17dc,
+ 0x1820, 0x1877,
+ 0x1880, 0x18a8,
+ 0x18aa, 0x18aa,
+ 0x18b0, 0x18f5,
+ 0x1900, 0x191c,
+ 0x1950, 0x196d,
+ 0x1970, 0x1974,
+ 0x1980, 0x19ab,
+ 0x19c1, 0x19c7,
+ 0x1a00, 0x1a16,
+ 0x1a20, 0x1a54,
+ 0x1aa7, 0x1aa7,
+ 0x1b05, 0x1b33,
+ 0x1b45, 0x1b4b,
+ 0x1b83, 0x1ba0,
+ 0x1bae, 0x1baf,
+ 0x1bc0, 0x1be5,
+ 0x1c00, 0x1c23,
+ 0x1c4d, 0x1c4f,
+ 0x1c5a, 0x1c7d,
+ 0x1ce9, 0x1cec,
+ 0x1cee, 0x1cf1,
+ 0x1d00, 0x1dbf,
+ 0x1e00, 0x1f15,
+ 0x1f18, 0x1f1d,
+ 0x1f20, 0x1f45,
+ 0x1f48, 0x1f4d,
+ 0x1f50, 0x1f57,
+ 0x1f59, 0x1f59,
+ 0x1f5b, 0x1f5b,
+ 0x1f5d, 0x1f5d,
+ 0x1f5f, 0x1f7d,
+ 0x1f80, 0x1fb4,
+ 0x1fb6, 0x1fbc,
+ 0x1fbe, 0x1fbe,
+ 0x1fc2, 0x1fc4,
+ 0x1fc6, 0x1fcc,
+ 0x1fd0, 0x1fd3,
+ 0x1fd6, 0x1fdb,
+ 0x1fe0, 0x1fec,
+ 0x1ff2, 0x1ff4,
+ 0x1ff6, 0x1ffc,
+ 0x2071, 0x2071,
+ 0x207f, 0x207f,
+ 0x2090, 0x209c,
+ 0x2102, 0x2102,
+ 0x2107, 0x2107,
+ 0x210a, 0x2113,
+ 0x2115, 0x2115,
+ 0x2118, 0x211d,
+ 0x2124, 0x2124,
+ 0x2126, 0x2126,
+ 0x2128, 0x2128,
+ 0x212a, 0x2139,
+ 0x213c, 0x213f,
+ 0x2145, 0x2149,
+ 0x214e, 0x214e,
+ 0x2160, 0x2188,
+ 0x2c00, 0x2c2e,
+ 0x2c30, 0x2c5e,
+ 0x2c60, 0x2ce4,
+ 0x2ceb, 0x2cee,
+ 0x2d00, 0x2d25,
+ 0x2d30, 0x2d65,
+ 0x2d6f, 0x2d6f,
+ 0x2d80, 0x2d96,
+ 0x2da0, 0x2da6,
+ 0x2da8, 0x2dae,
+ 0x2db0, 0x2db6,
+ 0x2db8, 0x2dbe,
+ 0x2dc0, 0x2dc6,
+ 0x2dc8, 0x2dce,
+ 0x2dd0, 0x2dd6,
+ 0x2dd8, 0x2dde,
+ 0x3005, 0x3007,
+ 0x3021, 0x3029,
+ 0x3031, 0x3035,
+ 0x3038, 0x303c,
+ 0x3041, 0x3096,
+ 0x309b, 0x309f,
+ 0x30a1, 0x30fa,
+ 0x30fc, 0x30ff,
+ 0x3105, 0x312d,
+ 0x3131, 0x318e,
+ 0x31a0, 0x31ba,
+ 0x31f0, 0x31ff,
+ 0x3400, 0x4db5,
+ 0x4e00, 0x9fcb,
+ 0xa000, 0xa48c,
+ 0xa4d0, 0xa4fd,
+ 0xa500, 0xa60c,
+ 0xa610, 0xa61f,
+ 0xa62a, 0xa62b,
+ 0xa640, 0xa66e,
+ 0xa67f, 0xa697,
+ 0xa6a0, 0xa6ef,
+ 0xa717, 0xa71f,
+ 0xa722, 0xa788,
+ 0xa78b, 0xa78e,
+ 0xa790, 0xa791,
+ 0xa7a0, 0xa7a9,
+ 0xa7fa, 0xa801,
+ 0xa803, 0xa805,
+ 0xa807, 0xa80a,
+ 0xa80c, 0xa822,
+ 0xa840, 0xa873,
+ 0xa882, 0xa8b3,
+ 0xa8f2, 0xa8f7,
+ 0xa8fb, 0xa8fb,
+ 0xa90a, 0xa925,
+ 0xa930, 0xa946,
+ 0xa960, 0xa97c,
+ 0xa984, 0xa9b2,
+ 0xa9cf, 0xa9cf,
+ 0xaa00, 0xaa28,
+ 0xaa40, 0xaa42,
+ 0xaa44, 0xaa4b,
+ 0xaa60, 0xaa76,
+ 0xaa7a, 0xaa7a,
+ 0xaa80, 0xaaaf,
+ 0xaab1, 0xaab1,
+ 0xaab5, 0xaab6,
+ 0xaab9, 0xaabd,
+ 0xaac0, 0xaac0,
+ 0xaac2, 0xaac2,
+ 0xaadb, 0xaadd,
+ 0xab01, 0xab06,
+ 0xab09, 0xab0e,
+ 0xab11, 0xab16,
+ 0xab20, 0xab26,
+ 0xab28, 0xab2e,
+ 0xabc0, 0xabe2,
+ 0xac00, 0xd7a3,
+ 0xd7b0, 0xd7c6,
+ 0xd7cb, 0xd7fb,
+ 0xf900, 0xfa2d,
+ 0xfa30, 0xfa6d,
+ 0xfa70, 0xfad9,
+ 0xfb00, 0xfb06,
+ 0xfb13, 0xfb17,
+ 0xfb1d, 0xfb1d,
+ 0xfb1f, 0xfb28,
+ 0xfb2a, 0xfb36,
+ 0xfb38, 0xfb3c,
+ 0xfb3e, 0xfb3e,
+ 0xfb40, 0xfb41,
+ 0xfb43, 0xfb44,
+ 0xfb46, 0xfbb1,
+ 0xfbd3, 0xfd3d,
+ 0xfd50, 0xfd8f,
+ 0xfd92, 0xfdc7,
+ 0xfdf0, 0xfdfb,
+ 0xfe70, 0xfe74,
+ 0xfe76, 0xfefc,
+ 0xff21, 0xff3a,
+ 0xff41, 0xff5a,
+ 0xff66, 0xffbe,
+ 0xffc2, 0xffc7,
+ 0xffca, 0xffcf,
+ 0xffd2, 0xffd7,
+ 0xffda, 0xffdc,
+ 0x10000, 0x1000b,
+ 0x1000d, 0x10026,
+ 0x10028, 0x1003a,
+ 0x1003c, 0x1003d,
+ 0x1003f, 0x1004d,
+ 0x10050, 0x1005d,
+ 0x10080, 0x100fa,
+ 0x10140, 0x10174,
+ 0x10280, 0x1029c,
+ 0x102a0, 0x102d0,
+ 0x10300, 0x1031e,
+ 0x10330, 0x1034a,
+ 0x10380, 0x1039d,
+ 0x103a0, 0x103c3,
+ 0x103c8, 0x103cf,
+ 0x103d1, 0x103d5,
+ 0x10400, 0x1049d,
+ 0x10800, 0x10805,
+ 0x10808, 0x10808,
+ 0x1080a, 0x10835,
+ 0x10837, 0x10838,
+ 0x1083c, 0x1083c,
+ 0x1083f, 0x10855,
+ 0x10900, 0x10915,
+ 0x10920, 0x10939,
+ 0x10a00, 0x10a00,
+ 0x10a10, 0x10a13,
+ 0x10a15, 0x10a17,
+ 0x10a19, 0x10a33,
+ 0x10a60, 0x10a7c,
+ 0x10b00, 0x10b35,
+ 0x10b40, 0x10b55,
+ 0x10b60, 0x10b72,
+ 0x10c00, 0x10c48,
+ 0x11003, 0x11037,
+ 0x11083, 0x110af,
+ 0x12000, 0x1236e,
+ 0x12400, 0x12462,
+ 0x13000, 0x1342e,
+ 0x16800, 0x16a38,
+ 0x1b000, 0x1b001,
+ 0x1d400, 0x1d454,
+ 0x1d456, 0x1d49c,
+ 0x1d49e, 0x1d49f,
+ 0x1d4a2, 0x1d4a2,
+ 0x1d4a5, 0x1d4a6,
+ 0x1d4a9, 0x1d4ac,
+ 0x1d4ae, 0x1d4b9,
+ 0x1d4bb, 0x1d4bb,
+ 0x1d4bd, 0x1d4c3,
+ 0x1d4c5, 0x1d505,
+ 0x1d507, 0x1d50a,
+ 0x1d50d, 0x1d514,
+ 0x1d516, 0x1d51c,
+ 0x1d51e, 0x1d539,
+ 0x1d53b, 0x1d53e,
+ 0x1d540, 0x1d544,
+ 0x1d546, 0x1d546,
+ 0x1d54a, 0x1d550,
+ 0x1d552, 0x1d6a5,
+ 0x1d6a8, 0x1d6c0,
+ 0x1d6c2, 0x1d6da,
+ 0x1d6dc, 0x1d6fa,
+ 0x1d6fc, 0x1d714,
+ 0x1d716, 0x1d734,
+ 0x1d736, 0x1d74e,
+ 0x1d750, 0x1d76e,
+ 0x1d770, 0x1d788,
+ 0x1d78a, 0x1d7a8,
+ 0x1d7aa, 0x1d7c2,
+ 0x1d7c4, 0x1d7cb,
+ 0x20000, 0x2a6d6,
+ 0x2a700, 0x2b734,
+ 0x2b740, 0x2b81d,
+ 0x2f800, 0x2fa1d,
+}; /* CR_ID_Start */
+
+/* 'ID_Continue': Derived Property */
+static const OnigCodePoint CR_ID_Continue[] = {
+ 514,
+ 0x0030, 0x0039,
+ 0x0041, 0x005a,
+ 0x005f, 0x005f,
+ 0x0061, 0x007a,
+ 0x00aa, 0x00aa,
+ 0x00b5, 0x00b5,
+ 0x00b7, 0x00b7,
+ 0x00ba, 0x00ba,
+ 0x00c0, 0x00d6,
+ 0x00d8, 0x00f6,
+ 0x00f8, 0x02c1,
+ 0x02c6, 0x02d1,
+ 0x02e0, 0x02e4,
+ 0x02ec, 0x02ec,
+ 0x02ee, 0x02ee,
+ 0x0300, 0x0374,
+ 0x0376, 0x0377,
+ 0x037a, 0x037d,
+ 0x0386, 0x038a,
+ 0x038c, 0x038c,
+ 0x038e, 0x03a1,
+ 0x03a3, 0x03f5,
+ 0x03f7, 0x0481,
+ 0x0483, 0x0487,
+ 0x048a, 0x0527,
+ 0x0531, 0x0556,
+ 0x0559, 0x0559,
+ 0x0561, 0x0587,
+ 0x0591, 0x05bd,
+ 0x05bf, 0x05bf,
+ 0x05c1, 0x05c2,
+ 0x05c4, 0x05c5,
+ 0x05c7, 0x05c7,
+ 0x05d0, 0x05ea,
+ 0x05f0, 0x05f2,
+ 0x0610, 0x061a,
+ 0x0620, 0x0669,
+ 0x066e, 0x06d3,
+ 0x06d5, 0x06dc,
+ 0x06df, 0x06e8,
+ 0x06ea, 0x06fc,
+ 0x06ff, 0x06ff,
+ 0x0710, 0x074a,
+ 0x074d, 0x07b1,
+ 0x07c0, 0x07f5,
+ 0x07fa, 0x07fa,
+ 0x0800, 0x082d,
+ 0x0840, 0x085b,
+ 0x0900, 0x0963,
+ 0x0966, 0x096f,
+ 0x0971, 0x0977,
+ 0x0979, 0x097f,
+ 0x0981, 0x0983,
+ 0x0985, 0x098c,
+ 0x098f, 0x0990,
+ 0x0993, 0x09a8,
+ 0x09aa, 0x09b0,
+ 0x09b2, 0x09b2,
+ 0x09b6, 0x09b9,
+ 0x09bc, 0x09c4,
+ 0x09c7, 0x09c8,
+ 0x09cb, 0x09ce,
+ 0x09d7, 0x09d7,
+ 0x09dc, 0x09dd,
+ 0x09df, 0x09e3,
+ 0x09e6, 0x09f1,
+ 0x0a01, 0x0a03,
+ 0x0a05, 0x0a0a,
+ 0x0a0f, 0x0a10,
+ 0x0a13, 0x0a28,
+ 0x0a2a, 0x0a30,
+ 0x0a32, 0x0a33,
+ 0x0a35, 0x0a36,
+ 0x0a38, 0x0a39,
+ 0x0a3c, 0x0a3c,
+ 0x0a3e, 0x0a42,
+ 0x0a47, 0x0a48,
+ 0x0a4b, 0x0a4d,
+ 0x0a51, 0x0a51,
+ 0x0a59, 0x0a5c,
+ 0x0a5e, 0x0a5e,
+ 0x0a66, 0x0a75,
+ 0x0a81, 0x0a83,
+ 0x0a85, 0x0a8d,
+ 0x0a8f, 0x0a91,
+ 0x0a93, 0x0aa8,
+ 0x0aaa, 0x0ab0,
+ 0x0ab2, 0x0ab3,
+ 0x0ab5, 0x0ab9,
+ 0x0abc, 0x0ac5,
+ 0x0ac7, 0x0ac9,
+ 0x0acb, 0x0acd,
+ 0x0ad0, 0x0ad0,
+ 0x0ae0, 0x0ae3,
+ 0x0ae6, 0x0aef,
+ 0x0b01, 0x0b03,
+ 0x0b05, 0x0b0c,
+ 0x0b0f, 0x0b10,
+ 0x0b13, 0x0b28,
+ 0x0b2a, 0x0b30,
+ 0x0b32, 0x0b33,
+ 0x0b35, 0x0b39,
+ 0x0b3c, 0x0b44,
+ 0x0b47, 0x0b48,
+ 0x0b4b, 0x0b4d,
+ 0x0b56, 0x0b57,
+ 0x0b5c, 0x0b5d,
+ 0x0b5f, 0x0b63,
+ 0x0b66, 0x0b6f,
+ 0x0b71, 0x0b71,
+ 0x0b82, 0x0b83,
+ 0x0b85, 0x0b8a,
+ 0x0b8e, 0x0b90,
+ 0x0b92, 0x0b95,
+ 0x0b99, 0x0b9a,
+ 0x0b9c, 0x0b9c,
+ 0x0b9e, 0x0b9f,
+ 0x0ba3, 0x0ba4,
+ 0x0ba8, 0x0baa,
+ 0x0bae, 0x0bb9,
+ 0x0bbe, 0x0bc2,
+ 0x0bc6, 0x0bc8,
+ 0x0bca, 0x0bcd,
+ 0x0bd0, 0x0bd0,
+ 0x0bd7, 0x0bd7,
+ 0x0be6, 0x0bef,
+ 0x0c01, 0x0c03,
+ 0x0c05, 0x0c0c,
+ 0x0c0e, 0x0c10,
+ 0x0c12, 0x0c28,
+ 0x0c2a, 0x0c33,
+ 0x0c35, 0x0c39,
+ 0x0c3d, 0x0c44,
+ 0x0c46, 0x0c48,
+ 0x0c4a, 0x0c4d,
+ 0x0c55, 0x0c56,
+ 0x0c58, 0x0c59,
+ 0x0c60, 0x0c63,
+ 0x0c66, 0x0c6f,
+ 0x0c82, 0x0c83,
+ 0x0c85, 0x0c8c,
+ 0x0c8e, 0x0c90,
+ 0x0c92, 0x0ca8,
+ 0x0caa, 0x0cb3,
+ 0x0cb5, 0x0cb9,
+ 0x0cbc, 0x0cc4,
+ 0x0cc6, 0x0cc8,
+ 0x0cca, 0x0ccd,
+ 0x0cd5, 0x0cd6,
+ 0x0cde, 0x0cde,
+ 0x0ce0, 0x0ce3,
+ 0x0ce6, 0x0cef,
+ 0x0cf1, 0x0cf2,
+ 0x0d02, 0x0d03,
+ 0x0d05, 0x0d0c,
+ 0x0d0e, 0x0d10,
+ 0x0d12, 0x0d3a,
+ 0x0d3d, 0x0d44,
+ 0x0d46, 0x0d48,
+ 0x0d4a, 0x0d4e,
+ 0x0d57, 0x0d57,
+ 0x0d60, 0x0d63,
+ 0x0d66, 0x0d6f,
+ 0x0d7a, 0x0d7f,
+ 0x0d82, 0x0d83,
+ 0x0d85, 0x0d96,
+ 0x0d9a, 0x0db1,
+ 0x0db3, 0x0dbb,
+ 0x0dbd, 0x0dbd,
+ 0x0dc0, 0x0dc6,
+ 0x0dca, 0x0dca,
+ 0x0dcf, 0x0dd4,
+ 0x0dd6, 0x0dd6,
+ 0x0dd8, 0x0ddf,
+ 0x0df2, 0x0df3,
+ 0x0e01, 0x0e3a,
+ 0x0e40, 0x0e4e,
+ 0x0e50, 0x0e59,
+ 0x0e81, 0x0e82,
+ 0x0e84, 0x0e84,
+ 0x0e87, 0x0e88,
+ 0x0e8a, 0x0e8a,
+ 0x0e8d, 0x0e8d,
+ 0x0e94, 0x0e97,
+ 0x0e99, 0x0e9f,
+ 0x0ea1, 0x0ea3,
+ 0x0ea5, 0x0ea5,
+ 0x0ea7, 0x0ea7,
+ 0x0eaa, 0x0eab,
+ 0x0ead, 0x0eb9,
+ 0x0ebb, 0x0ebd,
+ 0x0ec0, 0x0ec4,
+ 0x0ec6, 0x0ec6,
+ 0x0ec8, 0x0ecd,
+ 0x0ed0, 0x0ed9,
+ 0x0edc, 0x0edd,
+ 0x0f00, 0x0f00,
+ 0x0f18, 0x0f19,
+ 0x0f20, 0x0f29,
+ 0x0f35, 0x0f35,
+ 0x0f37, 0x0f37,
+ 0x0f39, 0x0f39,
+ 0x0f3e, 0x0f47,
+ 0x0f49, 0x0f6c,
+ 0x0f71, 0x0f84,
+ 0x0f86, 0x0f97,
+ 0x0f99, 0x0fbc,
+ 0x0fc6, 0x0fc6,
+ 0x1000, 0x1049,
+ 0x1050, 0x109d,
+ 0x10a0, 0x10c5,
+ 0x10d0, 0x10fa,
+ 0x10fc, 0x10fc,
+ 0x1100, 0x1248,
+ 0x124a, 0x124d,
+ 0x1250, 0x1256,
+ 0x1258, 0x1258,
+ 0x125a, 0x125d,
+ 0x1260, 0x1288,
+ 0x128a, 0x128d,
+ 0x1290, 0x12b0,
+ 0x12b2, 0x12b5,
+ 0x12b8, 0x12be,
+ 0x12c0, 0x12c0,
+ 0x12c2, 0x12c5,
+ 0x12c8, 0x12d6,
+ 0x12d8, 0x1310,
+ 0x1312, 0x1315,
+ 0x1318, 0x135a,
+ 0x135d, 0x135f,
+ 0x1369, 0x1371,
+ 0x1380, 0x138f,
+ 0x13a0, 0x13f4,
+ 0x1401, 0x166c,
+ 0x166f, 0x167f,
+ 0x1681, 0x169a,
+ 0x16a0, 0x16ea,
+ 0x16ee, 0x16f0,
+ 0x1700, 0x170c,
+ 0x170e, 0x1714,
+ 0x1720, 0x1734,
+ 0x1740, 0x1753,
+ 0x1760, 0x176c,
+ 0x176e, 0x1770,
+ 0x1772, 0x1773,
+ 0x1780, 0x17b3,
+ 0x17b6, 0x17d3,
+ 0x17d7, 0x17d7,
+ 0x17dc, 0x17dd,
+ 0x17e0, 0x17e9,
+ 0x180b, 0x180d,
+ 0x1810, 0x1819,
+ 0x1820, 0x1877,
+ 0x1880, 0x18aa,
+ 0x18b0, 0x18f5,
+ 0x1900, 0x191c,
+ 0x1920, 0x192b,
+ 0x1930, 0x193b,
+ 0x1946, 0x196d,
+ 0x1970, 0x1974,
+ 0x1980, 0x19ab,
+ 0x19b0, 0x19c9,
+ 0x19d0, 0x19da,
+ 0x1a00, 0x1a1b,
+ 0x1a20, 0x1a5e,
+ 0x1a60, 0x1a7c,
+ 0x1a7f, 0x1a89,
+ 0x1a90, 0x1a99,
+ 0x1aa7, 0x1aa7,
+ 0x1b00, 0x1b4b,
+ 0x1b50, 0x1b59,
+ 0x1b6b, 0x1b73,
+ 0x1b80, 0x1baa,
+ 0x1bae, 0x1bb9,
+ 0x1bc0, 0x1bf3,
+ 0x1c00, 0x1c37,
+ 0x1c40, 0x1c49,
+ 0x1c4d, 0x1c7d,
+ 0x1cd0, 0x1cd2,
+ 0x1cd4, 0x1cf2,
+ 0x1d00, 0x1de6,
+ 0x1dfc, 0x1f15,
+ 0x1f18, 0x1f1d,
+ 0x1f20, 0x1f45,
+ 0x1f48, 0x1f4d,
+ 0x1f50, 0x1f57,
+ 0x1f59, 0x1f59,
+ 0x1f5b, 0x1f5b,
+ 0x1f5d, 0x1f5d,
+ 0x1f5f, 0x1f7d,
+ 0x1f80, 0x1fb4,
+ 0x1fb6, 0x1fbc,
+ 0x1fbe, 0x1fbe,
+ 0x1fc2, 0x1fc4,
+ 0x1fc6, 0x1fcc,
+ 0x1fd0, 0x1fd3,
+ 0x1fd6, 0x1fdb,
+ 0x1fe0, 0x1fec,
+ 0x1ff2, 0x1ff4,
+ 0x1ff6, 0x1ffc,
+ 0x203f, 0x2040,
+ 0x2054, 0x2054,
+ 0x2071, 0x2071,
+ 0x207f, 0x207f,
+ 0x2090, 0x209c,
+ 0x20d0, 0x20dc,
+ 0x20e1, 0x20e1,
+ 0x20e5, 0x20f0,
+ 0x2102, 0x2102,
+ 0x2107, 0x2107,
+ 0x210a, 0x2113,
+ 0x2115, 0x2115,
+ 0x2118, 0x211d,
+ 0x2124, 0x2124,
+ 0x2126, 0x2126,
+ 0x2128, 0x2128,
+ 0x212a, 0x2139,
+ 0x213c, 0x213f,
+ 0x2145, 0x2149,
+ 0x214e, 0x214e,
+ 0x2160, 0x2188,
+ 0x2c00, 0x2c2e,
+ 0x2c30, 0x2c5e,
+ 0x2c60, 0x2ce4,
+ 0x2ceb, 0x2cf1,
+ 0x2d00, 0x2d25,
+ 0x2d30, 0x2d65,
+ 0x2d6f, 0x2d6f,
+ 0x2d7f, 0x2d96,
+ 0x2da0, 0x2da6,
+ 0x2da8, 0x2dae,
+ 0x2db0, 0x2db6,
+ 0x2db8, 0x2dbe,
+ 0x2dc0, 0x2dc6,
+ 0x2dc8, 0x2dce,
+ 0x2dd0, 0x2dd6,
+ 0x2dd8, 0x2dde,
+ 0x2de0, 0x2dff,
+ 0x3005, 0x3007,
+ 0x3021, 0x302f,
+ 0x3031, 0x3035,
+ 0x3038, 0x303c,
+ 0x3041, 0x3096,
+ 0x3099, 0x309f,
+ 0x30a1, 0x30fa,
+ 0x30fc, 0x30ff,
+ 0x3105, 0x312d,
+ 0x3131, 0x318e,
+ 0x31a0, 0x31ba,
+ 0x31f0, 0x31ff,
+ 0x3400, 0x4db5,
+ 0x4e00, 0x9fcb,
+ 0xa000, 0xa48c,
+ 0xa4d0, 0xa4fd,
+ 0xa500, 0xa60c,
+ 0xa610, 0xa62b,
+ 0xa640, 0xa66f,
+ 0xa67c, 0xa67d,
+ 0xa67f, 0xa697,
+ 0xa6a0, 0xa6f1,
+ 0xa717, 0xa71f,
+ 0xa722, 0xa788,
+ 0xa78b, 0xa78e,
+ 0xa790, 0xa791,
+ 0xa7a0, 0xa7a9,
+ 0xa7fa, 0xa827,
+ 0xa840, 0xa873,
+ 0xa880, 0xa8c4,
+ 0xa8d0, 0xa8d9,
+ 0xa8e0, 0xa8f7,
+ 0xa8fb, 0xa8fb,
+ 0xa900, 0xa92d,
+ 0xa930, 0xa953,
+ 0xa960, 0xa97c,
+ 0xa980, 0xa9c0,
+ 0xa9cf, 0xa9d9,
+ 0xaa00, 0xaa36,
+ 0xaa40, 0xaa4d,
+ 0xaa50, 0xaa59,
+ 0xaa60, 0xaa76,
+ 0xaa7a, 0xaa7b,
+ 0xaa80, 0xaac2,
+ 0xaadb, 0xaadd,
+ 0xab01, 0xab06,
+ 0xab09, 0xab0e,
+ 0xab11, 0xab16,
+ 0xab20, 0xab26,
+ 0xab28, 0xab2e,
+ 0xabc0, 0xabea,
+ 0xabec, 0xabed,
+ 0xabf0, 0xabf9,
+ 0xac00, 0xd7a3,
+ 0xd7b0, 0xd7c6,
+ 0xd7cb, 0xd7fb,
+ 0xf900, 0xfa2d,
+ 0xfa30, 0xfa6d,
+ 0xfa70, 0xfad9,
+ 0xfb00, 0xfb06,
+ 0xfb13, 0xfb17,
+ 0xfb1d, 0xfb28,
+ 0xfb2a, 0xfb36,
+ 0xfb38, 0xfb3c,
+ 0xfb3e, 0xfb3e,
+ 0xfb40, 0xfb41,
+ 0xfb43, 0xfb44,
+ 0xfb46, 0xfbb1,
+ 0xfbd3, 0xfd3d,
+ 0xfd50, 0xfd8f,
+ 0xfd92, 0xfdc7,
+ 0xfdf0, 0xfdfb,
+ 0xfe00, 0xfe0f,
+ 0xfe20, 0xfe26,
+ 0xfe33, 0xfe34,
+ 0xfe4d, 0xfe4f,
+ 0xfe70, 0xfe74,
+ 0xfe76, 0xfefc,
+ 0xff10, 0xff19,
+ 0xff21, 0xff3a,
+ 0xff3f, 0xff3f,
+ 0xff41, 0xff5a,
+ 0xff66, 0xffbe,
+ 0xffc2, 0xffc7,
+ 0xffca, 0xffcf,
+ 0xffd2, 0xffd7,
+ 0xffda, 0xffdc,
+ 0x10000, 0x1000b,
+ 0x1000d, 0x10026,
+ 0x10028, 0x1003a,
+ 0x1003c, 0x1003d,
+ 0x1003f, 0x1004d,
+ 0x10050, 0x1005d,
+ 0x10080, 0x100fa,
+ 0x10140, 0x10174,
+ 0x101fd, 0x101fd,
+ 0x10280, 0x1029c,
+ 0x102a0, 0x102d0,
+ 0x10300, 0x1031e,
+ 0x10330, 0x1034a,
+ 0x10380, 0x1039d,
+ 0x103a0, 0x103c3,
+ 0x103c8, 0x103cf,
+ 0x103d1, 0x103d5,
+ 0x10400, 0x1049d,
+ 0x104a0, 0x104a9,
+ 0x10800, 0x10805,
+ 0x10808, 0x10808,
+ 0x1080a, 0x10835,
+ 0x10837, 0x10838,
+ 0x1083c, 0x1083c,
+ 0x1083f, 0x10855,
+ 0x10900, 0x10915,
+ 0x10920, 0x10939,
+ 0x10a00, 0x10a03,
+ 0x10a05, 0x10a06,
+ 0x10a0c, 0x10a13,
+ 0x10a15, 0x10a17,
+ 0x10a19, 0x10a33,
+ 0x10a38, 0x10a3a,
+ 0x10a3f, 0x10a3f,
+ 0x10a60, 0x10a7c,
+ 0x10b00, 0x10b35,
+ 0x10b40, 0x10b55,
+ 0x10b60, 0x10b72,
+ 0x10c00, 0x10c48,
+ 0x11000, 0x11046,
+ 0x11066, 0x1106f,
+ 0x11080, 0x110ba,
+ 0x12000, 0x1236e,
+ 0x12400, 0x12462,
+ 0x13000, 0x1342e,
+ 0x16800, 0x16a38,
+ 0x1b000, 0x1b001,
+ 0x1d165, 0x1d169,
+ 0x1d16d, 0x1d172,
+ 0x1d17b, 0x1d182,
+ 0x1d185, 0x1d18b,
+ 0x1d1aa, 0x1d1ad,
+ 0x1d242, 0x1d244,
+ 0x1d400, 0x1d454,
+ 0x1d456, 0x1d49c,
+ 0x1d49e, 0x1d49f,
+ 0x1d4a2, 0x1d4a2,
+ 0x1d4a5, 0x1d4a6,
+ 0x1d4a9, 0x1d4ac,
+ 0x1d4ae, 0x1d4b9,
+ 0x1d4bb, 0x1d4bb,
+ 0x1d4bd, 0x1d4c3,
+ 0x1d4c5, 0x1d505,
+ 0x1d507, 0x1d50a,
+ 0x1d50d, 0x1d514,
+ 0x1d516, 0x1d51c,
+ 0x1d51e, 0x1d539,
+ 0x1d53b, 0x1d53e,
+ 0x1d540, 0x1d544,
+ 0x1d546, 0x1d546,
+ 0x1d54a, 0x1d550,
+ 0x1d552, 0x1d6a5,
+ 0x1d6a8, 0x1d6c0,
+ 0x1d6c2, 0x1d6da,
+ 0x1d6dc, 0x1d6fa,
+ 0x1d6fc, 0x1d714,
+ 0x1d716, 0x1d734,
+ 0x1d736, 0x1d74e,
+ 0x1d750, 0x1d76e,
+ 0x1d770, 0x1d788,
+ 0x1d78a, 0x1d7a8,
+ 0x1d7aa, 0x1d7c2,
+ 0x1d7c4, 0x1d7cb,
+ 0x1d7ce, 0x1d7ff,
+ 0x20000, 0x2a6d6,
+ 0x2a700, 0x2b734,
+ 0x2b740, 0x2b81d,
+ 0x2f800, 0x2fa1d,
+ 0xe0100, 0xe01ef,
+}; /* CR_ID_Continue */
+
+/* 'XID_Start': Derived Property */
+static const OnigCodePoint CR_XID_Start[] = {
+ 444,
+ 0x0041, 0x005a,
+ 0x0061, 0x007a,
+ 0x00aa, 0x00aa,
+ 0x00b5, 0x00b5,
+ 0x00ba, 0x00ba,
+ 0x00c0, 0x00d6,
+ 0x00d8, 0x00f6,
+ 0x00f8, 0x02c1,
+ 0x02c6, 0x02d1,
+ 0x02e0, 0x02e4,
+ 0x02ec, 0x02ec,
+ 0x02ee, 0x02ee,
+ 0x0370, 0x0374,
+ 0x0376, 0x0377,
+ 0x037b, 0x037d,
+ 0x0386, 0x0386,
+ 0x0388, 0x038a,
+ 0x038c, 0x038c,
+ 0x038e, 0x03a1,
+ 0x03a3, 0x03f5,
+ 0x03f7, 0x0481,
+ 0x048a, 0x0527,
+ 0x0531, 0x0556,
+ 0x0559, 0x0559,
+ 0x0561, 0x0587,
+ 0x05d0, 0x05ea,
+ 0x05f0, 0x05f2,
+ 0x0620, 0x064a,
+ 0x066e, 0x066f,
+ 0x0671, 0x06d3,
+ 0x06d5, 0x06d5,
+ 0x06e5, 0x06e6,
+ 0x06ee, 0x06ef,
+ 0x06fa, 0x06fc,
+ 0x06ff, 0x06ff,
+ 0x0710, 0x0710,
+ 0x0712, 0x072f,
+ 0x074d, 0x07a5,
+ 0x07b1, 0x07b1,
+ 0x07ca, 0x07ea,
+ 0x07f4, 0x07f5,
+ 0x07fa, 0x07fa,
+ 0x0800, 0x0815,
+ 0x081a, 0x081a,
+ 0x0824, 0x0824,
+ 0x0828, 0x0828,
+ 0x0840, 0x0858,
+ 0x0904, 0x0939,
+ 0x093d, 0x093d,
+ 0x0950, 0x0950,
+ 0x0958, 0x0961,
+ 0x0971, 0x0977,
+ 0x0979, 0x097f,
+ 0x0985, 0x098c,
+ 0x098f, 0x0990,
+ 0x0993, 0x09a8,
+ 0x09aa, 0x09b0,
+ 0x09b2, 0x09b2,
+ 0x09b6, 0x09b9,
+ 0x09bd, 0x09bd,
+ 0x09ce, 0x09ce,
+ 0x09dc, 0x09dd,
+ 0x09df, 0x09e1,
+ 0x09f0, 0x09f1,
+ 0x0a05, 0x0a0a,
+ 0x0a0f, 0x0a10,
+ 0x0a13, 0x0a28,
+ 0x0a2a, 0x0a30,
+ 0x0a32, 0x0a33,
+ 0x0a35, 0x0a36,
+ 0x0a38, 0x0a39,
+ 0x0a59, 0x0a5c,
+ 0x0a5e, 0x0a5e,
+ 0x0a72, 0x0a74,
+ 0x0a85, 0x0a8d,
+ 0x0a8f, 0x0a91,
+ 0x0a93, 0x0aa8,
+ 0x0aaa, 0x0ab0,
+ 0x0ab2, 0x0ab3,
+ 0x0ab5, 0x0ab9,
+ 0x0abd, 0x0abd,
+ 0x0ad0, 0x0ad0,
+ 0x0ae0, 0x0ae1,
+ 0x0b05, 0x0b0c,
+ 0x0b0f, 0x0b10,
+ 0x0b13, 0x0b28,
+ 0x0b2a, 0x0b30,
+ 0x0b32, 0x0b33,
+ 0x0b35, 0x0b39,
+ 0x0b3d, 0x0b3d,
+ 0x0b5c, 0x0b5d,
+ 0x0b5f, 0x0b61,
+ 0x0b71, 0x0b71,
+ 0x0b83, 0x0b83,
+ 0x0b85, 0x0b8a,
+ 0x0b8e, 0x0b90,
+ 0x0b92, 0x0b95,
+ 0x0b99, 0x0b9a,
+ 0x0b9c, 0x0b9c,
+ 0x0b9e, 0x0b9f,
+ 0x0ba3, 0x0ba4,
+ 0x0ba8, 0x0baa,
+ 0x0bae, 0x0bb9,
+ 0x0bd0, 0x0bd0,
+ 0x0c05, 0x0c0c,
+ 0x0c0e, 0x0c10,
+ 0x0c12, 0x0c28,
+ 0x0c2a, 0x0c33,
+ 0x0c35, 0x0c39,
+ 0x0c3d, 0x0c3d,
+ 0x0c58, 0x0c59,
+ 0x0c60, 0x0c61,
+ 0x0c85, 0x0c8c,
+ 0x0c8e, 0x0c90,
+ 0x0c92, 0x0ca8,
+ 0x0caa, 0x0cb3,
+ 0x0cb5, 0x0cb9,
+ 0x0cbd, 0x0cbd,
+ 0x0cde, 0x0cde,
+ 0x0ce0, 0x0ce1,
+ 0x0cf1, 0x0cf2,
+ 0x0d05, 0x0d0c,
+ 0x0d0e, 0x0d10,
+ 0x0d12, 0x0d3a,
+ 0x0d3d, 0x0d3d,
+ 0x0d4e, 0x0d4e,
+ 0x0d60, 0x0d61,
+ 0x0d7a, 0x0d7f,
+ 0x0d85, 0x0d96,
+ 0x0d9a, 0x0db1,
+ 0x0db3, 0x0dbb,
+ 0x0dbd, 0x0dbd,
+ 0x0dc0, 0x0dc6,
+ 0x0e01, 0x0e30,
+ 0x0e32, 0x0e32,
+ 0x0e40, 0x0e46,
+ 0x0e81, 0x0e82,
+ 0x0e84, 0x0e84,
+ 0x0e87, 0x0e88,
+ 0x0e8a, 0x0e8a,
+ 0x0e8d, 0x0e8d,
+ 0x0e94, 0x0e97,
+ 0x0e99, 0x0e9f,
+ 0x0ea1, 0x0ea3,
+ 0x0ea5, 0x0ea5,
+ 0x0ea7, 0x0ea7,
+ 0x0eaa, 0x0eab,
+ 0x0ead, 0x0eb0,
+ 0x0eb2, 0x0eb2,
+ 0x0ebd, 0x0ebd,
+ 0x0ec0, 0x0ec4,
+ 0x0ec6, 0x0ec6,
+ 0x0edc, 0x0edd,
+ 0x0f00, 0x0f00,
+ 0x0f40, 0x0f47,
+ 0x0f49, 0x0f6c,
+ 0x0f88, 0x0f8c,
+ 0x1000, 0x102a,
+ 0x103f, 0x103f,
+ 0x1050, 0x1055,
+ 0x105a, 0x105d,
+ 0x1061, 0x1061,
+ 0x1065, 0x1066,
+ 0x106e, 0x1070,
+ 0x1075, 0x1081,
+ 0x108e, 0x108e,
+ 0x10a0, 0x10c5,
+ 0x10d0, 0x10fa,
+ 0x10fc, 0x10fc,
+ 0x1100, 0x1248,
+ 0x124a, 0x124d,
+ 0x1250, 0x1256,
+ 0x1258, 0x1258,
+ 0x125a, 0x125d,
+ 0x1260, 0x1288,
+ 0x128a, 0x128d,
+ 0x1290, 0x12b0,
+ 0x12b2, 0x12b5,
+ 0x12b8, 0x12be,
+ 0x12c0, 0x12c0,
+ 0x12c2, 0x12c5,
+ 0x12c8, 0x12d6,
+ 0x12d8, 0x1310,
+ 0x1312, 0x1315,
+ 0x1318, 0x135a,
+ 0x1380, 0x138f,
+ 0x13a0, 0x13f4,
+ 0x1401, 0x166c,
+ 0x166f, 0x167f,
+ 0x1681, 0x169a,
+ 0x16a0, 0x16ea,
+ 0x16ee, 0x16f0,
+ 0x1700, 0x170c,
+ 0x170e, 0x1711,
+ 0x1720, 0x1731,
+ 0x1740, 0x1751,
+ 0x1760, 0x176c,
+ 0x176e, 0x1770,
+ 0x1780, 0x17b3,
+ 0x17d7, 0x17d7,
+ 0x17dc, 0x17dc,
+ 0x1820, 0x1877,
+ 0x1880, 0x18a8,
+ 0x18aa, 0x18aa,
+ 0x18b0, 0x18f5,
+ 0x1900, 0x191c,
+ 0x1950, 0x196d,
+ 0x1970, 0x1974,
+ 0x1980, 0x19ab,
+ 0x19c1, 0x19c7,
+ 0x1a00, 0x1a16,
+ 0x1a20, 0x1a54,
+ 0x1aa7, 0x1aa7,
+ 0x1b05, 0x1b33,
+ 0x1b45, 0x1b4b,
+ 0x1b83, 0x1ba0,
+ 0x1bae, 0x1baf,
+ 0x1bc0, 0x1be5,
+ 0x1c00, 0x1c23,
+ 0x1c4d, 0x1c4f,
+ 0x1c5a, 0x1c7d,
+ 0x1ce9, 0x1cec,
+ 0x1cee, 0x1cf1,
+ 0x1d00, 0x1dbf,
+ 0x1e00, 0x1f15,
+ 0x1f18, 0x1f1d,
+ 0x1f20, 0x1f45,
+ 0x1f48, 0x1f4d,
+ 0x1f50, 0x1f57,
+ 0x1f59, 0x1f59,
+ 0x1f5b, 0x1f5b,
+ 0x1f5d, 0x1f5d,
+ 0x1f5f, 0x1f7d,
+ 0x1f80, 0x1fb4,
+ 0x1fb6, 0x1fbc,
+ 0x1fbe, 0x1fbe,
+ 0x1fc2, 0x1fc4,
+ 0x1fc6, 0x1fcc,
+ 0x1fd0, 0x1fd3,
+ 0x1fd6, 0x1fdb,
+ 0x1fe0, 0x1fec,
+ 0x1ff2, 0x1ff4,
+ 0x1ff6, 0x1ffc,
+ 0x2071, 0x2071,
+ 0x207f, 0x207f,
+ 0x2090, 0x209c,
+ 0x2102, 0x2102,
+ 0x2107, 0x2107,
+ 0x210a, 0x2113,
+ 0x2115, 0x2115,
+ 0x2118, 0x211d,
+ 0x2124, 0x2124,
+ 0x2126, 0x2126,
+ 0x2128, 0x2128,
+ 0x212a, 0x2139,
+ 0x213c, 0x213f,
+ 0x2145, 0x2149,
+ 0x214e, 0x214e,
+ 0x2160, 0x2188,
+ 0x2c00, 0x2c2e,
+ 0x2c30, 0x2c5e,
+ 0x2c60, 0x2ce4,
+ 0x2ceb, 0x2cee,
+ 0x2d00, 0x2d25,
+ 0x2d30, 0x2d65,
+ 0x2d6f, 0x2d6f,
+ 0x2d80, 0x2d96,
+ 0x2da0, 0x2da6,
+ 0x2da8, 0x2dae,
+ 0x2db0, 0x2db6,
+ 0x2db8, 0x2dbe,
+ 0x2dc0, 0x2dc6,
+ 0x2dc8, 0x2dce,
+ 0x2dd0, 0x2dd6,
+ 0x2dd8, 0x2dde,
+ 0x3005, 0x3007,
+ 0x3021, 0x3029,
+ 0x3031, 0x3035,
+ 0x3038, 0x303c,
+ 0x3041, 0x3096,
+ 0x309d, 0x309f,
+ 0x30a1, 0x30fa,
+ 0x30fc, 0x30ff,
+ 0x3105, 0x312d,
+ 0x3131, 0x318e,
+ 0x31a0, 0x31ba,
+ 0x31f0, 0x31ff,
+ 0x3400, 0x4db5,
+ 0x4e00, 0x9fcb,
+ 0xa000, 0xa48c,
+ 0xa4d0, 0xa4fd,
+ 0xa500, 0xa60c,
+ 0xa610, 0xa61f,
+ 0xa62a, 0xa62b,
+ 0xa640, 0xa66e,
+ 0xa67f, 0xa697,
+ 0xa6a0, 0xa6ef,
+ 0xa717, 0xa71f,
+ 0xa722, 0xa788,
+ 0xa78b, 0xa78e,
+ 0xa790, 0xa791,
+ 0xa7a0, 0xa7a9,
+ 0xa7fa, 0xa801,
+ 0xa803, 0xa805,
+ 0xa807, 0xa80a,
+ 0xa80c, 0xa822,
+ 0xa840, 0xa873,
+ 0xa882, 0xa8b3,
+ 0xa8f2, 0xa8f7,
+ 0xa8fb, 0xa8fb,
+ 0xa90a, 0xa925,
+ 0xa930, 0xa946,
+ 0xa960, 0xa97c,
+ 0xa984, 0xa9b2,
+ 0xa9cf, 0xa9cf,
+ 0xaa00, 0xaa28,
+ 0xaa40, 0xaa42,
+ 0xaa44, 0xaa4b,
+ 0xaa60, 0xaa76,
+ 0xaa7a, 0xaa7a,
+ 0xaa80, 0xaaaf,
+ 0xaab1, 0xaab1,
+ 0xaab5, 0xaab6,
+ 0xaab9, 0xaabd,
+ 0xaac0, 0xaac0,
+ 0xaac2, 0xaac2,
+ 0xaadb, 0xaadd,
+ 0xab01, 0xab06,
+ 0xab09, 0xab0e,
+ 0xab11, 0xab16,
+ 0xab20, 0xab26,
+ 0xab28, 0xab2e,
+ 0xabc0, 0xabe2,
+ 0xac00, 0xd7a3,
+ 0xd7b0, 0xd7c6,
+ 0xd7cb, 0xd7fb,
+ 0xf900, 0xfa2d,
+ 0xfa30, 0xfa6d,
+ 0xfa70, 0xfad9,
+ 0xfb00, 0xfb06,
+ 0xfb13, 0xfb17,
+ 0xfb1d, 0xfb1d,
+ 0xfb1f, 0xfb28,
+ 0xfb2a, 0xfb36,
+ 0xfb38, 0xfb3c,
+ 0xfb3e, 0xfb3e,
+ 0xfb40, 0xfb41,
+ 0xfb43, 0xfb44,
+ 0xfb46, 0xfbb1,
+ 0xfbd3, 0xfc5d,
+ 0xfc64, 0xfd3d,
+ 0xfd50, 0xfd8f,
+ 0xfd92, 0xfdc7,
+ 0xfdf0, 0xfdf9,
+ 0xfe71, 0xfe71,
+ 0xfe73, 0xfe73,
+ 0xfe77, 0xfe77,
+ 0xfe79, 0xfe79,
+ 0xfe7b, 0xfe7b,
+ 0xfe7d, 0xfe7d,
+ 0xfe7f, 0xfefc,
+ 0xff21, 0xff3a,
+ 0xff41, 0xff5a,
+ 0xff66, 0xff9d,
+ 0xffa0, 0xffbe,
+ 0xffc2, 0xffc7,
+ 0xffca, 0xffcf,
+ 0xffd2, 0xffd7,
+ 0xffda, 0xffdc,
+ 0x10000, 0x1000b,
+ 0x1000d, 0x10026,
+ 0x10028, 0x1003a,
+ 0x1003c, 0x1003d,
+ 0x1003f, 0x1004d,
+ 0x10050, 0x1005d,
+ 0x10080, 0x100fa,
+ 0x10140, 0x10174,
+ 0x10280, 0x1029c,
+ 0x102a0, 0x102d0,
+ 0x10300, 0x1031e,
+ 0x10330, 0x1034a,
+ 0x10380, 0x1039d,
+ 0x103a0, 0x103c3,
+ 0x103c8, 0x103cf,
+ 0x103d1, 0x103d5,
+ 0x10400, 0x1049d,
+ 0x10800, 0x10805,
+ 0x10808, 0x10808,
+ 0x1080a, 0x10835,
+ 0x10837, 0x10838,
+ 0x1083c, 0x1083c,
+ 0x1083f, 0x10855,
+ 0x10900, 0x10915,
+ 0x10920, 0x10939,
+ 0x10a00, 0x10a00,
+ 0x10a10, 0x10a13,
+ 0x10a15, 0x10a17,
+ 0x10a19, 0x10a33,
+ 0x10a60, 0x10a7c,
+ 0x10b00, 0x10b35,
+ 0x10b40, 0x10b55,
+ 0x10b60, 0x10b72,
+ 0x10c00, 0x10c48,
+ 0x11003, 0x11037,
+ 0x11083, 0x110af,
+ 0x12000, 0x1236e,
+ 0x12400, 0x12462,
+ 0x13000, 0x1342e,
+ 0x16800, 0x16a38,
+ 0x1b000, 0x1b001,
+ 0x1d400, 0x1d454,
+ 0x1d456, 0x1d49c,
+ 0x1d49e, 0x1d49f,
+ 0x1d4a2, 0x1d4a2,
+ 0x1d4a5, 0x1d4a6,
+ 0x1d4a9, 0x1d4ac,
+ 0x1d4ae, 0x1d4b9,
+ 0x1d4bb, 0x1d4bb,
+ 0x1d4bd, 0x1d4c3,
+ 0x1d4c5, 0x1d505,
+ 0x1d507, 0x1d50a,
+ 0x1d50d, 0x1d514,
+ 0x1d516, 0x1d51c,
+ 0x1d51e, 0x1d539,
+ 0x1d53b, 0x1d53e,
+ 0x1d540, 0x1d544,
+ 0x1d546, 0x1d546,
+ 0x1d54a, 0x1d550,
+ 0x1d552, 0x1d6a5,
+ 0x1d6a8, 0x1d6c0,
+ 0x1d6c2, 0x1d6da,
+ 0x1d6dc, 0x1d6fa,
+ 0x1d6fc, 0x1d714,
+ 0x1d716, 0x1d734,
+ 0x1d736, 0x1d74e,
+ 0x1d750, 0x1d76e,
+ 0x1d770, 0x1d788,
+ 0x1d78a, 0x1d7a8,
+ 0x1d7aa, 0x1d7c2,
+ 0x1d7c4, 0x1d7cb,
+ 0x20000, 0x2a6d6,
+ 0x2a700, 0x2b734,
+ 0x2b740, 0x2b81d,
+ 0x2f800, 0x2fa1d,
+}; /* CR_XID_Start */
+
+/* 'XID_Continue': Derived Property */
+static const OnigCodePoint CR_XID_Continue[] = {
+ 521,
+ 0x0030, 0x0039,
+ 0x0041, 0x005a,
+ 0x005f, 0x005f,
+ 0x0061, 0x007a,
+ 0x00aa, 0x00aa,
+ 0x00b5, 0x00b5,
+ 0x00b7, 0x00b7,
+ 0x00ba, 0x00ba,
+ 0x00c0, 0x00d6,
+ 0x00d8, 0x00f6,
+ 0x00f8, 0x02c1,
+ 0x02c6, 0x02d1,
+ 0x02e0, 0x02e4,
+ 0x02ec, 0x02ec,
+ 0x02ee, 0x02ee,
+ 0x0300, 0x0374,
+ 0x0376, 0x0377,
+ 0x037b, 0x037d,
+ 0x0386, 0x038a,
+ 0x038c, 0x038c,
+ 0x038e, 0x03a1,
+ 0x03a3, 0x03f5,
+ 0x03f7, 0x0481,
+ 0x0483, 0x0487,
+ 0x048a, 0x0527,
+ 0x0531, 0x0556,
+ 0x0559, 0x0559,
+ 0x0561, 0x0587,
+ 0x0591, 0x05bd,
+ 0x05bf, 0x05bf,
+ 0x05c1, 0x05c2,
+ 0x05c4, 0x05c5,
+ 0x05c7, 0x05c7,
+ 0x05d0, 0x05ea,
+ 0x05f0, 0x05f2,
+ 0x0610, 0x061a,
+ 0x0620, 0x0669,
+ 0x066e, 0x06d3,
+ 0x06d5, 0x06dc,
+ 0x06df, 0x06e8,
+ 0x06ea, 0x06fc,
+ 0x06ff, 0x06ff,
+ 0x0710, 0x074a,
+ 0x074d, 0x07b1,
+ 0x07c0, 0x07f5,
+ 0x07fa, 0x07fa,
+ 0x0800, 0x082d,
+ 0x0840, 0x085b,
+ 0x0900, 0x0963,
+ 0x0966, 0x096f,
+ 0x0971, 0x0977,
+ 0x0979, 0x097f,
+ 0x0981, 0x0983,
+ 0x0985, 0x098c,
+ 0x098f, 0x0990,
+ 0x0993, 0x09a8,
+ 0x09aa, 0x09b0,
+ 0x09b2, 0x09b2,
+ 0x09b6, 0x09b9,
+ 0x09bc, 0x09c4,
+ 0x09c7, 0x09c8,
+ 0x09cb, 0x09ce,
+ 0x09d7, 0x09d7,
+ 0x09dc, 0x09dd,
+ 0x09df, 0x09e3,
+ 0x09e6, 0x09f1,
+ 0x0a01, 0x0a03,
+ 0x0a05, 0x0a0a,
+ 0x0a0f, 0x0a10,
+ 0x0a13, 0x0a28,
+ 0x0a2a, 0x0a30,
+ 0x0a32, 0x0a33,
+ 0x0a35, 0x0a36,
+ 0x0a38, 0x0a39,
+ 0x0a3c, 0x0a3c,
+ 0x0a3e, 0x0a42,
+ 0x0a47, 0x0a48,
+ 0x0a4b, 0x0a4d,
+ 0x0a51, 0x0a51,
+ 0x0a59, 0x0a5c,
+ 0x0a5e, 0x0a5e,
+ 0x0a66, 0x0a75,
+ 0x0a81, 0x0a83,
+ 0x0a85, 0x0a8d,
+ 0x0a8f, 0x0a91,
+ 0x0a93, 0x0aa8,
+ 0x0aaa, 0x0ab0,
+ 0x0ab2, 0x0ab3,
+ 0x0ab5, 0x0ab9,
+ 0x0abc, 0x0ac5,
+ 0x0ac7, 0x0ac9,
+ 0x0acb, 0x0acd,
+ 0x0ad0, 0x0ad0,
+ 0x0ae0, 0x0ae3,
+ 0x0ae6, 0x0aef,
+ 0x0b01, 0x0b03,
+ 0x0b05, 0x0b0c,
+ 0x0b0f, 0x0b10,
+ 0x0b13, 0x0b28,
+ 0x0b2a, 0x0b30,
+ 0x0b32, 0x0b33,
+ 0x0b35, 0x0b39,
+ 0x0b3c, 0x0b44,
+ 0x0b47, 0x0b48,
+ 0x0b4b, 0x0b4d,
+ 0x0b56, 0x0b57,
+ 0x0b5c, 0x0b5d,
+ 0x0b5f, 0x0b63,
+ 0x0b66, 0x0b6f,
+ 0x0b71, 0x0b71,
+ 0x0b82, 0x0b83,
+ 0x0b85, 0x0b8a,
+ 0x0b8e, 0x0b90,
+ 0x0b92, 0x0b95,
+ 0x0b99, 0x0b9a,
+ 0x0b9c, 0x0b9c,
+ 0x0b9e, 0x0b9f,
+ 0x0ba3, 0x0ba4,
+ 0x0ba8, 0x0baa,
+ 0x0bae, 0x0bb9,
+ 0x0bbe, 0x0bc2,
+ 0x0bc6, 0x0bc8,
+ 0x0bca, 0x0bcd,
+ 0x0bd0, 0x0bd0,
+ 0x0bd7, 0x0bd7,
+ 0x0be6, 0x0bef,
+ 0x0c01, 0x0c03,
+ 0x0c05, 0x0c0c,
+ 0x0c0e, 0x0c10,
+ 0x0c12, 0x0c28,
+ 0x0c2a, 0x0c33,
+ 0x0c35, 0x0c39,
+ 0x0c3d, 0x0c44,
+ 0x0c46, 0x0c48,
+ 0x0c4a, 0x0c4d,
+ 0x0c55, 0x0c56,
+ 0x0c58, 0x0c59,
+ 0x0c60, 0x0c63,
+ 0x0c66, 0x0c6f,
+ 0x0c82, 0x0c83,
+ 0x0c85, 0x0c8c,
+ 0x0c8e, 0x0c90,
+ 0x0c92, 0x0ca8,
+ 0x0caa, 0x0cb3,
+ 0x0cb5, 0x0cb9,
+ 0x0cbc, 0x0cc4,
+ 0x0cc6, 0x0cc8,
+ 0x0cca, 0x0ccd,
+ 0x0cd5, 0x0cd6,
+ 0x0cde, 0x0cde,
+ 0x0ce0, 0x0ce3,
+ 0x0ce6, 0x0cef,
+ 0x0cf1, 0x0cf2,
+ 0x0d02, 0x0d03,
+ 0x0d05, 0x0d0c,
+ 0x0d0e, 0x0d10,
+ 0x0d12, 0x0d3a,
+ 0x0d3d, 0x0d44,
+ 0x0d46, 0x0d48,
+ 0x0d4a, 0x0d4e,
+ 0x0d57, 0x0d57,
+ 0x0d60, 0x0d63,
+ 0x0d66, 0x0d6f,
+ 0x0d7a, 0x0d7f,
+ 0x0d82, 0x0d83,
+ 0x0d85, 0x0d96,
+ 0x0d9a, 0x0db1,
+ 0x0db3, 0x0dbb,
+ 0x0dbd, 0x0dbd,
+ 0x0dc0, 0x0dc6,
+ 0x0dca, 0x0dca,
+ 0x0dcf, 0x0dd4,
+ 0x0dd6, 0x0dd6,
+ 0x0dd8, 0x0ddf,
+ 0x0df2, 0x0df3,
+ 0x0e01, 0x0e3a,
+ 0x0e40, 0x0e4e,
+ 0x0e50, 0x0e59,
+ 0x0e81, 0x0e82,
+ 0x0e84, 0x0e84,
+ 0x0e87, 0x0e88,
+ 0x0e8a, 0x0e8a,
+ 0x0e8d, 0x0e8d,
+ 0x0e94, 0x0e97,
+ 0x0e99, 0x0e9f,
+ 0x0ea1, 0x0ea3,
+ 0x0ea5, 0x0ea5,
+ 0x0ea7, 0x0ea7,
+ 0x0eaa, 0x0eab,
+ 0x0ead, 0x0eb9,
+ 0x0ebb, 0x0ebd,
+ 0x0ec0, 0x0ec4,
+ 0x0ec6, 0x0ec6,
+ 0x0ec8, 0x0ecd,
+ 0x0ed0, 0x0ed9,
+ 0x0edc, 0x0edd,
+ 0x0f00, 0x0f00,
+ 0x0f18, 0x0f19,
+ 0x0f20, 0x0f29,
+ 0x0f35, 0x0f35,
+ 0x0f37, 0x0f37,
+ 0x0f39, 0x0f39,
+ 0x0f3e, 0x0f47,
+ 0x0f49, 0x0f6c,
+ 0x0f71, 0x0f84,
+ 0x0f86, 0x0f97,
+ 0x0f99, 0x0fbc,
+ 0x0fc6, 0x0fc6,
+ 0x1000, 0x1049,
+ 0x1050, 0x109d,
+ 0x10a0, 0x10c5,
+ 0x10d0, 0x10fa,
+ 0x10fc, 0x10fc,
+ 0x1100, 0x1248,
+ 0x124a, 0x124d,
+ 0x1250, 0x1256,
+ 0x1258, 0x1258,
+ 0x125a, 0x125d,
+ 0x1260, 0x1288,
+ 0x128a, 0x128d,
+ 0x1290, 0x12b0,
+ 0x12b2, 0x12b5,
+ 0x12b8, 0x12be,
+ 0x12c0, 0x12c0,
+ 0x12c2, 0x12c5,
+ 0x12c8, 0x12d6,
+ 0x12d8, 0x1310,
+ 0x1312, 0x1315,
+ 0x1318, 0x135a,
+ 0x135d, 0x135f,
+ 0x1369, 0x1371,
+ 0x1380, 0x138f,
+ 0x13a0, 0x13f4,
+ 0x1401, 0x166c,
+ 0x166f, 0x167f,
+ 0x1681, 0x169a,
+ 0x16a0, 0x16ea,
+ 0x16ee, 0x16f0,
+ 0x1700, 0x170c,
+ 0x170e, 0x1714,
+ 0x1720, 0x1734,
+ 0x1740, 0x1753,
+ 0x1760, 0x176c,
+ 0x176e, 0x1770,
+ 0x1772, 0x1773,
+ 0x1780, 0x17b3,
+ 0x17b6, 0x17d3,
+ 0x17d7, 0x17d7,
+ 0x17dc, 0x17dd,
+ 0x17e0, 0x17e9,
+ 0x180b, 0x180d,
+ 0x1810, 0x1819,
+ 0x1820, 0x1877,
+ 0x1880, 0x18aa,
+ 0x18b0, 0x18f5,
+ 0x1900, 0x191c,
+ 0x1920, 0x192b,
+ 0x1930, 0x193b,
+ 0x1946, 0x196d,
+ 0x1970, 0x1974,
+ 0x1980, 0x19ab,
+ 0x19b0, 0x19c9,
+ 0x19d0, 0x19da,
+ 0x1a00, 0x1a1b,
+ 0x1a20, 0x1a5e,
+ 0x1a60, 0x1a7c,
+ 0x1a7f, 0x1a89,
+ 0x1a90, 0x1a99,
+ 0x1aa7, 0x1aa7,
+ 0x1b00, 0x1b4b,
+ 0x1b50, 0x1b59,
+ 0x1b6b, 0x1b73,
+ 0x1b80, 0x1baa,
+ 0x1bae, 0x1bb9,
+ 0x1bc0, 0x1bf3,
+ 0x1c00, 0x1c37,
+ 0x1c40, 0x1c49,
+ 0x1c4d, 0x1c7d,
+ 0x1cd0, 0x1cd2,
+ 0x1cd4, 0x1cf2,
+ 0x1d00, 0x1de6,
+ 0x1dfc, 0x1f15,
+ 0x1f18, 0x1f1d,
+ 0x1f20, 0x1f45,
+ 0x1f48, 0x1f4d,
+ 0x1f50, 0x1f57,
+ 0x1f59, 0x1f59,
+ 0x1f5b, 0x1f5b,
+ 0x1f5d, 0x1f5d,
+ 0x1f5f, 0x1f7d,
+ 0x1f80, 0x1fb4,
+ 0x1fb6, 0x1fbc,
+ 0x1fbe, 0x1fbe,
+ 0x1fc2, 0x1fc4,
+ 0x1fc6, 0x1fcc,
+ 0x1fd0, 0x1fd3,
+ 0x1fd6, 0x1fdb,
+ 0x1fe0, 0x1fec,
+ 0x1ff2, 0x1ff4,
+ 0x1ff6, 0x1ffc,
+ 0x203f, 0x2040,
+ 0x2054, 0x2054,
+ 0x2071, 0x2071,
+ 0x207f, 0x207f,
+ 0x2090, 0x209c,
+ 0x20d0, 0x20dc,
+ 0x20e1, 0x20e1,
+ 0x20e5, 0x20f0,
+ 0x2102, 0x2102,
+ 0x2107, 0x2107,
+ 0x210a, 0x2113,
+ 0x2115, 0x2115,
+ 0x2118, 0x211d,
+ 0x2124, 0x2124,
+ 0x2126, 0x2126,
+ 0x2128, 0x2128,
+ 0x212a, 0x2139,
+ 0x213c, 0x213f,
+ 0x2145, 0x2149,
+ 0x214e, 0x214e,
+ 0x2160, 0x2188,
+ 0x2c00, 0x2c2e,
+ 0x2c30, 0x2c5e,
+ 0x2c60, 0x2ce4,
+ 0x2ceb, 0x2cf1,
+ 0x2d00, 0x2d25,
+ 0x2d30, 0x2d65,
+ 0x2d6f, 0x2d6f,
+ 0x2d7f, 0x2d96,
+ 0x2da0, 0x2da6,
+ 0x2da8, 0x2dae,
+ 0x2db0, 0x2db6,
+ 0x2db8, 0x2dbe,
+ 0x2dc0, 0x2dc6,
+ 0x2dc8, 0x2dce,
+ 0x2dd0, 0x2dd6,
+ 0x2dd8, 0x2dde,
+ 0x2de0, 0x2dff,
+ 0x3005, 0x3007,
+ 0x3021, 0x302f,
+ 0x3031, 0x3035,
+ 0x3038, 0x303c,
+ 0x3041, 0x3096,
+ 0x3099, 0x309a,
+ 0x309d, 0x309f,
+ 0x30a1, 0x30fa,
+ 0x30fc, 0x30ff,
+ 0x3105, 0x312d,
+ 0x3131, 0x318e,
+ 0x31a0, 0x31ba,
+ 0x31f0, 0x31ff,
+ 0x3400, 0x4db5,
+ 0x4e00, 0x9fcb,
+ 0xa000, 0xa48c,
+ 0xa4d0, 0xa4fd,
+ 0xa500, 0xa60c,
+ 0xa610, 0xa62b,
+ 0xa640, 0xa66f,
+ 0xa67c, 0xa67d,
+ 0xa67f, 0xa697,
+ 0xa6a0, 0xa6f1,
+ 0xa717, 0xa71f,
+ 0xa722, 0xa788,
+ 0xa78b, 0xa78e,
+ 0xa790, 0xa791,
+ 0xa7a0, 0xa7a9,
+ 0xa7fa, 0xa827,
+ 0xa840, 0xa873,
+ 0xa880, 0xa8c4,
+ 0xa8d0, 0xa8d9,
+ 0xa8e0, 0xa8f7,
+ 0xa8fb, 0xa8fb,
+ 0xa900, 0xa92d,
+ 0xa930, 0xa953,
+ 0xa960, 0xa97c,
+ 0xa980, 0xa9c0,
+ 0xa9cf, 0xa9d9,
+ 0xaa00, 0xaa36,
+ 0xaa40, 0xaa4d,
+ 0xaa50, 0xaa59,
+ 0xaa60, 0xaa76,
+ 0xaa7a, 0xaa7b,
+ 0xaa80, 0xaac2,
+ 0xaadb, 0xaadd,
+ 0xab01, 0xab06,
+ 0xab09, 0xab0e,
+ 0xab11, 0xab16,
+ 0xab20, 0xab26,
+ 0xab28, 0xab2e,
+ 0xabc0, 0xabea,
+ 0xabec, 0xabed,
+ 0xabf0, 0xabf9,
+ 0xac00, 0xd7a3,
+ 0xd7b0, 0xd7c6,
+ 0xd7cb, 0xd7fb,
+ 0xf900, 0xfa2d,
+ 0xfa30, 0xfa6d,
+ 0xfa70, 0xfad9,
+ 0xfb00, 0xfb06,
+ 0xfb13, 0xfb17,
+ 0xfb1d, 0xfb28,
+ 0xfb2a, 0xfb36,
+ 0xfb38, 0xfb3c,
+ 0xfb3e, 0xfb3e,
+ 0xfb40, 0xfb41,
+ 0xfb43, 0xfb44,
+ 0xfb46, 0xfbb1,
+ 0xfbd3, 0xfc5d,
+ 0xfc64, 0xfd3d,
+ 0xfd50, 0xfd8f,
+ 0xfd92, 0xfdc7,
+ 0xfdf0, 0xfdf9,
+ 0xfe00, 0xfe0f,
+ 0xfe20, 0xfe26,
+ 0xfe33, 0xfe34,
+ 0xfe4d, 0xfe4f,
+ 0xfe71, 0xfe71,
+ 0xfe73, 0xfe73,
+ 0xfe77, 0xfe77,
+ 0xfe79, 0xfe79,
+ 0xfe7b, 0xfe7b,
+ 0xfe7d, 0xfe7d,
+ 0xfe7f, 0xfefc,
+ 0xff10, 0xff19,
+ 0xff21, 0xff3a,
+ 0xff3f, 0xff3f,
+ 0xff41, 0xff5a,
+ 0xff66, 0xffbe,
+ 0xffc2, 0xffc7,
+ 0xffca, 0xffcf,
+ 0xffd2, 0xffd7,
+ 0xffda, 0xffdc,
+ 0x10000, 0x1000b,
+ 0x1000d, 0x10026,
+ 0x10028, 0x1003a,
+ 0x1003c, 0x1003d,
+ 0x1003f, 0x1004d,
+ 0x10050, 0x1005d,
+ 0x10080, 0x100fa,
+ 0x10140, 0x10174,
+ 0x101fd, 0x101fd,
+ 0x10280, 0x1029c,
+ 0x102a0, 0x102d0,
+ 0x10300, 0x1031e,
+ 0x10330, 0x1034a,
+ 0x10380, 0x1039d,
+ 0x103a0, 0x103c3,
+ 0x103c8, 0x103cf,
+ 0x103d1, 0x103d5,
+ 0x10400, 0x1049d,
+ 0x104a0, 0x104a9,
+ 0x10800, 0x10805,
+ 0x10808, 0x10808,
+ 0x1080a, 0x10835,
+ 0x10837, 0x10838,
+ 0x1083c, 0x1083c,
+ 0x1083f, 0x10855,
+ 0x10900, 0x10915,
+ 0x10920, 0x10939,
+ 0x10a00, 0x10a03,
+ 0x10a05, 0x10a06,
+ 0x10a0c, 0x10a13,
+ 0x10a15, 0x10a17,
+ 0x10a19, 0x10a33,
+ 0x10a38, 0x10a3a,
+ 0x10a3f, 0x10a3f,
+ 0x10a60, 0x10a7c,
+ 0x10b00, 0x10b35,
+ 0x10b40, 0x10b55,
+ 0x10b60, 0x10b72,
+ 0x10c00, 0x10c48,
+ 0x11000, 0x11046,
+ 0x11066, 0x1106f,
+ 0x11080, 0x110ba,
+ 0x12000, 0x1236e,
+ 0x12400, 0x12462,
+ 0x13000, 0x1342e,
+ 0x16800, 0x16a38,
+ 0x1b000, 0x1b001,
+ 0x1d165, 0x1d169,
+ 0x1d16d, 0x1d172,
+ 0x1d17b, 0x1d182,
+ 0x1d185, 0x1d18b,
+ 0x1d1aa, 0x1d1ad,
+ 0x1d242, 0x1d244,
+ 0x1d400, 0x1d454,
+ 0x1d456, 0x1d49c,
+ 0x1d49e, 0x1d49f,
+ 0x1d4a2, 0x1d4a2,
+ 0x1d4a5, 0x1d4a6,
+ 0x1d4a9, 0x1d4ac,
+ 0x1d4ae, 0x1d4b9,
+ 0x1d4bb, 0x1d4bb,
+ 0x1d4bd, 0x1d4c3,
+ 0x1d4c5, 0x1d505,
+ 0x1d507, 0x1d50a,
+ 0x1d50d, 0x1d514,
+ 0x1d516, 0x1d51c,
+ 0x1d51e, 0x1d539,
+ 0x1d53b, 0x1d53e,
+ 0x1d540, 0x1d544,
+ 0x1d546, 0x1d546,
+ 0x1d54a, 0x1d550,
+ 0x1d552, 0x1d6a5,
+ 0x1d6a8, 0x1d6c0,
+ 0x1d6c2, 0x1d6da,
+ 0x1d6dc, 0x1d6fa,
+ 0x1d6fc, 0x1d714,
+ 0x1d716, 0x1d734,
+ 0x1d736, 0x1d74e,
+ 0x1d750, 0x1d76e,
+ 0x1d770, 0x1d788,
+ 0x1d78a, 0x1d7a8,
+ 0x1d7aa, 0x1d7c2,
+ 0x1d7c4, 0x1d7cb,
+ 0x1d7ce, 0x1d7ff,
+ 0x20000, 0x2a6d6,
+ 0x2a700, 0x2b734,
+ 0x2b740, 0x2b81d,
+ 0x2f800, 0x2fa1d,
+ 0xe0100, 0xe01ef,
+}; /* CR_XID_Continue */
+
+/* 'Default_Ignorable_Code_Point': Derived Property */
+static const OnigCodePoint CR_Default_Ignorable_Code_Point[] = {
+ 15,
+ 0x00ad, 0x00ad,
+ 0x034f, 0x034f,
+ 0x115f, 0x1160,
+ 0x17b4, 0x17b5,
+ 0x180b, 0x180d,
+ 0x200b, 0x200f,
+ 0x202a, 0x202e,
+ 0x2060, 0x206f,
+ 0x3164, 0x3164,
+ 0xfe00, 0xfe0f,
+ 0xfeff, 0xfeff,
+ 0xffa0, 0xffa0,
+ 0xfff0, 0xfff8,
+ 0x1d173, 0x1d17a,
+ 0xe0000, 0xe0fff,
+}; /* CR_Default_Ignorable_Code_Point */
+
+/* 'Grapheme_Extend': Derived Property */
+static const OnigCodePoint CR_Grapheme_Extend[] = {
+ 215,
+ 0x0300, 0x036f,
+ 0x0483, 0x0489,
+ 0x0591, 0x05bd,
+ 0x05bf, 0x05bf,
+ 0x05c1, 0x05c2,
+ 0x05c4, 0x05c5,
+ 0x05c7, 0x05c7,
+ 0x0610, 0x061a,
+ 0x064b, 0x065f,
+ 0x0670, 0x0670,
+ 0x06d6, 0x06dc,
+ 0x06df, 0x06e4,
+ 0x06e7, 0x06e8,
+ 0x06ea, 0x06ed,
+ 0x0711, 0x0711,
+ 0x0730, 0x074a,
+ 0x07a6, 0x07b0,
+ 0x07eb, 0x07f3,
+ 0x0816, 0x0819,
+ 0x081b, 0x0823,
+ 0x0825, 0x0827,
+ 0x0829, 0x082d,
+ 0x0859, 0x085b,
+ 0x0900, 0x0902,
+ 0x093a, 0x093a,
+ 0x093c, 0x093c,
+ 0x0941, 0x0948,
+ 0x094d, 0x094d,
+ 0x0951, 0x0957,
+ 0x0962, 0x0963,
+ 0x0981, 0x0981,
+ 0x09bc, 0x09bc,
+ 0x09be, 0x09be,
+ 0x09c1, 0x09c4,
+ 0x09cd, 0x09cd,
+ 0x09d7, 0x09d7,
+ 0x09e2, 0x09e3,
+ 0x0a01, 0x0a02,
+ 0x0a3c, 0x0a3c,
+ 0x0a41, 0x0a42,
+ 0x0a47, 0x0a48,
+ 0x0a4b, 0x0a4d,
+ 0x0a51, 0x0a51,
+ 0x0a70, 0x0a71,
+ 0x0a75, 0x0a75,
+ 0x0a81, 0x0a82,
+ 0x0abc, 0x0abc,
+ 0x0ac1, 0x0ac5,
+ 0x0ac7, 0x0ac8,
+ 0x0acd, 0x0acd,
+ 0x0ae2, 0x0ae3,
+ 0x0b01, 0x0b01,
+ 0x0b3c, 0x0b3c,
+ 0x0b3e, 0x0b3f,
+ 0x0b41, 0x0b44,
+ 0x0b4d, 0x0b4d,
+ 0x0b56, 0x0b57,
+ 0x0b62, 0x0b63,
+ 0x0b82, 0x0b82,
+ 0x0bbe, 0x0bbe,
+ 0x0bc0, 0x0bc0,
+ 0x0bcd, 0x0bcd,
+ 0x0bd7, 0x0bd7,
+ 0x0c3e, 0x0c40,
+ 0x0c46, 0x0c48,
+ 0x0c4a, 0x0c4d,
+ 0x0c55, 0x0c56,
+ 0x0c62, 0x0c63,
+ 0x0cbc, 0x0cbc,
+ 0x0cbf, 0x0cbf,
+ 0x0cc2, 0x0cc2,
+ 0x0cc6, 0x0cc6,
+ 0x0ccc, 0x0ccd,
+ 0x0cd5, 0x0cd6,
+ 0x0ce2, 0x0ce3,
+ 0x0d3e, 0x0d3e,
+ 0x0d41, 0x0d44,
+ 0x0d4d, 0x0d4d,
+ 0x0d57, 0x0d57,
+ 0x0d62, 0x0d63,
+ 0x0dca, 0x0dca,
+ 0x0dcf, 0x0dcf,
+ 0x0dd2, 0x0dd4,
+ 0x0dd6, 0x0dd6,
+ 0x0ddf, 0x0ddf,
+ 0x0e31, 0x0e31,
+ 0x0e34, 0x0e3a,
+ 0x0e47, 0x0e4e,
+ 0x0eb1, 0x0eb1,
+ 0x0eb4, 0x0eb9,
+ 0x0ebb, 0x0ebc,
+ 0x0ec8, 0x0ecd,
+ 0x0f18, 0x0f19,
+ 0x0f35, 0x0f35,
+ 0x0f37, 0x0f37,
+ 0x0f39, 0x0f39,
+ 0x0f71, 0x0f7e,
+ 0x0f80, 0x0f84,
+ 0x0f86, 0x0f87,
+ 0x0f8d, 0x0f97,
+ 0x0f99, 0x0fbc,
+ 0x0fc6, 0x0fc6,
+ 0x102d, 0x1030,
+ 0x1032, 0x1037,
+ 0x1039, 0x103a,
+ 0x103d, 0x103e,
+ 0x1058, 0x1059,
+ 0x105e, 0x1060,
+ 0x1071, 0x1074,
+ 0x1082, 0x1082,
+ 0x1085, 0x1086,
+ 0x108d, 0x108d,
+ 0x109d, 0x109d,
+ 0x135d, 0x135f,
+ 0x1712, 0x1714,
+ 0x1732, 0x1734,
+ 0x1752, 0x1753,
+ 0x1772, 0x1773,
+ 0x17b7, 0x17bd,
+ 0x17c6, 0x17c6,
+ 0x17c9, 0x17d3,
+ 0x17dd, 0x17dd,
+ 0x180b, 0x180d,
+ 0x18a9, 0x18a9,
+ 0x1920, 0x1922,
+ 0x1927, 0x1928,
+ 0x1932, 0x1932,
+ 0x1939, 0x193b,
+ 0x1a17, 0x1a18,
+ 0x1a56, 0x1a56,
+ 0x1a58, 0x1a5e,
+ 0x1a60, 0x1a60,
+ 0x1a62, 0x1a62,
+ 0x1a65, 0x1a6c,
+ 0x1a73, 0x1a7c,
+ 0x1a7f, 0x1a7f,
+ 0x1b00, 0x1b03,
+ 0x1b34, 0x1b34,
+ 0x1b36, 0x1b3a,
+ 0x1b3c, 0x1b3c,
+ 0x1b42, 0x1b42,
+ 0x1b6b, 0x1b73,
+ 0x1b80, 0x1b81,
+ 0x1ba2, 0x1ba5,
+ 0x1ba8, 0x1ba9,
+ 0x1be6, 0x1be6,
+ 0x1be8, 0x1be9,
+ 0x1bed, 0x1bed,
+ 0x1bef, 0x1bf1,
+ 0x1c2c, 0x1c33,
+ 0x1c36, 0x1c37,
+ 0x1cd0, 0x1cd2,
+ 0x1cd4, 0x1ce0,
+ 0x1ce2, 0x1ce8,
+ 0x1ced, 0x1ced,
+ 0x1dc0, 0x1de6,
+ 0x1dfc, 0x1dff,
+ 0x200c, 0x200d,
+ 0x20d0, 0x20f0,
+ 0x2cef, 0x2cf1,
+ 0x2d7f, 0x2d7f,
+ 0x2de0, 0x2dff,
+ 0x302a, 0x302f,
+ 0x3099, 0x309a,
+ 0xa66f, 0xa672,
+ 0xa67c, 0xa67d,
+ 0xa6f0, 0xa6f1,
+ 0xa802, 0xa802,
+ 0xa806, 0xa806,
+ 0xa80b, 0xa80b,
+ 0xa825, 0xa826,
+ 0xa8c4, 0xa8c4,
+ 0xa8e0, 0xa8f1,
+ 0xa926, 0xa92d,
+ 0xa947, 0xa951,
+ 0xa980, 0xa982,
+ 0xa9b3, 0xa9b3,
+ 0xa9b6, 0xa9b9,
+ 0xa9bc, 0xa9bc,
+ 0xaa29, 0xaa2e,
+ 0xaa31, 0xaa32,
+ 0xaa35, 0xaa36,
+ 0xaa43, 0xaa43,
+ 0xaa4c, 0xaa4c,
+ 0xaab0, 0xaab0,
+ 0xaab2, 0xaab4,
+ 0xaab7, 0xaab8,
+ 0xaabe, 0xaabf,
+ 0xaac1, 0xaac1,
+ 0xabe5, 0xabe5,
+ 0xabe8, 0xabe8,
+ 0xabed, 0xabed,
+ 0xfb1e, 0xfb1e,
+ 0xfe00, 0xfe0f,
+ 0xfe20, 0xfe26,
+ 0xff9e, 0xff9f,
+ 0x101fd, 0x101fd,
+ 0x10a01, 0x10a03,
+ 0x10a05, 0x10a06,
+ 0x10a0c, 0x10a0f,
+ 0x10a38, 0x10a3a,
+ 0x10a3f, 0x10a3f,
+ 0x11001, 0x11001,
+ 0x11038, 0x11046,
+ 0x11080, 0x11081,
+ 0x110b3, 0x110b6,
+ 0x110b9, 0x110ba,
+ 0x1d165, 0x1d165,
+ 0x1d167, 0x1d169,
+ 0x1d16e, 0x1d172,
+ 0x1d17b, 0x1d182,
+ 0x1d185, 0x1d18b,
+ 0x1d1aa, 0x1d1ad,
+ 0x1d242, 0x1d244,
+ 0xe0100, 0xe01ef,
+}; /* CR_Grapheme_Extend */
+
+/* 'Grapheme_Base': Derived Property */
+static const OnigCodePoint CR_Grapheme_Base[] = {
+ 596,
+ 0x0020, 0x007e,
+ 0x00a0, 0x00ac,
+ 0x00ae, 0x02ff,
+ 0x0370, 0x0377,
+ 0x037a, 0x037e,
+ 0x0384, 0x038a,
+ 0x038c, 0x038c,
+ 0x038e, 0x03a1,
+ 0x03a3, 0x0482,
+ 0x048a, 0x0527,
+ 0x0531, 0x0556,
+ 0x0559, 0x055f,
+ 0x0561, 0x0587,
+ 0x0589, 0x058a,
+ 0x05be, 0x05be,
+ 0x05c0, 0x05c0,
+ 0x05c3, 0x05c3,
+ 0x05c6, 0x05c6,
+ 0x05d0, 0x05ea,
+ 0x05f0, 0x05f4,
+ 0x0606, 0x060f,
+ 0x061b, 0x061b,
+ 0x061e, 0x064a,
+ 0x0660, 0x066f,
+ 0x0671, 0x06d5,
+ 0x06de, 0x06de,
+ 0x06e5, 0x06e6,
+ 0x06e9, 0x06e9,
+ 0x06ee, 0x070d,
+ 0x0710, 0x0710,
+ 0x0712, 0x072f,
+ 0x074d, 0x07a5,
+ 0x07b1, 0x07b1,
+ 0x07c0, 0x07ea,
+ 0x07f4, 0x07fa,
+ 0x0800, 0x0815,
+ 0x081a, 0x081a,
+ 0x0824, 0x0824,
+ 0x0828, 0x0828,
+ 0x0830, 0x083e,
+ 0x0840, 0x0858,
+ 0x085e, 0x085e,
+ 0x0903, 0x0939,
+ 0x093b, 0x093b,
+ 0x093d, 0x0940,
+ 0x0949, 0x094c,
+ 0x094e, 0x0950,
+ 0x0958, 0x0961,
+ 0x0964, 0x0977,
+ 0x0979, 0x097f,
+ 0x0982, 0x0983,
+ 0x0985, 0x098c,
+ 0x098f, 0x0990,
+ 0x0993, 0x09a8,
+ 0x09aa, 0x09b0,
+ 0x09b2, 0x09b2,
+ 0x09b6, 0x09b9,
+ 0x09bd, 0x09bd,
+ 0x09bf, 0x09c0,
+ 0x09c7, 0x09c8,
+ 0x09cb, 0x09cc,
+ 0x09ce, 0x09ce,
+ 0x09dc, 0x09dd,
+ 0x09df, 0x09e1,
+ 0x09e6, 0x09fb,
+ 0x0a03, 0x0a03,
+ 0x0a05, 0x0a0a,
+ 0x0a0f, 0x0a10,
+ 0x0a13, 0x0a28,
+ 0x0a2a, 0x0a30,
+ 0x0a32, 0x0a33,
+ 0x0a35, 0x0a36,
+ 0x0a38, 0x0a39,
+ 0x0a3e, 0x0a40,
+ 0x0a59, 0x0a5c,
+ 0x0a5e, 0x0a5e,
+ 0x0a66, 0x0a6f,
+ 0x0a72, 0x0a74,
+ 0x0a83, 0x0a83,
+ 0x0a85, 0x0a8d,
+ 0x0a8f, 0x0a91,
+ 0x0a93, 0x0aa8,
+ 0x0aaa, 0x0ab0,
+ 0x0ab2, 0x0ab3,
+ 0x0ab5, 0x0ab9,
+ 0x0abd, 0x0ac0,
+ 0x0ac9, 0x0ac9,
+ 0x0acb, 0x0acc,
+ 0x0ad0, 0x0ad0,
+ 0x0ae0, 0x0ae1,
+ 0x0ae6, 0x0aef,
+ 0x0af1, 0x0af1,
+ 0x0b02, 0x0b03,
+ 0x0b05, 0x0b0c,
+ 0x0b0f, 0x0b10,
+ 0x0b13, 0x0b28,
+ 0x0b2a, 0x0b30,
+ 0x0b32, 0x0b33,
+ 0x0b35, 0x0b39,
+ 0x0b3d, 0x0b3d,
+ 0x0b40, 0x0b40,
+ 0x0b47, 0x0b48,
+ 0x0b4b, 0x0b4c,
+ 0x0b5c, 0x0b5d,
+ 0x0b5f, 0x0b61,
+ 0x0b66, 0x0b77,
+ 0x0b83, 0x0b83,
+ 0x0b85, 0x0b8a,
+ 0x0b8e, 0x0b90,
+ 0x0b92, 0x0b95,
+ 0x0b99, 0x0b9a,
+ 0x0b9c, 0x0b9c,
+ 0x0b9e, 0x0b9f,
+ 0x0ba3, 0x0ba4,
+ 0x0ba8, 0x0baa,
+ 0x0bae, 0x0bb9,
+ 0x0bbf, 0x0bbf,
+ 0x0bc1, 0x0bc2,
+ 0x0bc6, 0x0bc8,
+ 0x0bca, 0x0bcc,
+ 0x0bd0, 0x0bd0,
+ 0x0be6, 0x0bfa,
+ 0x0c01, 0x0c03,
+ 0x0c05, 0x0c0c,
+ 0x0c0e, 0x0c10,
+ 0x0c12, 0x0c28,
+ 0x0c2a, 0x0c33,
+ 0x0c35, 0x0c39,
+ 0x0c3d, 0x0c3d,
+ 0x0c41, 0x0c44,
+ 0x0c58, 0x0c59,
+ 0x0c60, 0x0c61,
+ 0x0c66, 0x0c6f,
+ 0x0c78, 0x0c7f,
+ 0x0c82, 0x0c83,
+ 0x0c85, 0x0c8c,
+ 0x0c8e, 0x0c90,
+ 0x0c92, 0x0ca8,
+ 0x0caa, 0x0cb3,
+ 0x0cb5, 0x0cb9,
+ 0x0cbd, 0x0cbe,
+ 0x0cc0, 0x0cc1,
+ 0x0cc3, 0x0cc4,
+ 0x0cc7, 0x0cc8,
+ 0x0cca, 0x0ccb,
+ 0x0cde, 0x0cde,
+ 0x0ce0, 0x0ce1,
+ 0x0ce6, 0x0cef,
+ 0x0cf1, 0x0cf2,
+ 0x0d02, 0x0d03,
+ 0x0d05, 0x0d0c,
+ 0x0d0e, 0x0d10,
+ 0x0d12, 0x0d3a,
+ 0x0d3d, 0x0d3d,
+ 0x0d3f, 0x0d40,
+ 0x0d46, 0x0d48,
+ 0x0d4a, 0x0d4c,
+ 0x0d4e, 0x0d4e,
+ 0x0d60, 0x0d61,
+ 0x0d66, 0x0d75,
+ 0x0d79, 0x0d7f,
+ 0x0d82, 0x0d83,
+ 0x0d85, 0x0d96,
+ 0x0d9a, 0x0db1,
+ 0x0db3, 0x0dbb,
+ 0x0dbd, 0x0dbd,
+ 0x0dc0, 0x0dc6,
+ 0x0dd0, 0x0dd1,
+ 0x0dd8, 0x0dde,
+ 0x0df2, 0x0df4,
+ 0x0e01, 0x0e30,
+ 0x0e32, 0x0e33,
+ 0x0e3f, 0x0e46,
+ 0x0e4f, 0x0e5b,
+ 0x0e81, 0x0e82,
+ 0x0e84, 0x0e84,
+ 0x0e87, 0x0e88,
+ 0x0e8a, 0x0e8a,
+ 0x0e8d, 0x0e8d,
+ 0x0e94, 0x0e97,
+ 0x0e99, 0x0e9f,
+ 0x0ea1, 0x0ea3,
+ 0x0ea5, 0x0ea5,
+ 0x0ea7, 0x0ea7,
+ 0x0eaa, 0x0eab,
+ 0x0ead, 0x0eb0,
+ 0x0eb2, 0x0eb3,
+ 0x0ebd, 0x0ebd,
+ 0x0ec0, 0x0ec4,
+ 0x0ec6, 0x0ec6,
+ 0x0ed0, 0x0ed9,
+ 0x0edc, 0x0edd,
+ 0x0f00, 0x0f17,
+ 0x0f1a, 0x0f34,
+ 0x0f36, 0x0f36,
+ 0x0f38, 0x0f38,
+ 0x0f3a, 0x0f47,
+ 0x0f49, 0x0f6c,
+ 0x0f7f, 0x0f7f,
+ 0x0f85, 0x0f85,
+ 0x0f88, 0x0f8c,
+ 0x0fbe, 0x0fc5,
+ 0x0fc7, 0x0fcc,
+ 0x0fce, 0x0fda,
+ 0x1000, 0x102c,
+ 0x1031, 0x1031,
+ 0x1038, 0x1038,
+ 0x103b, 0x103c,
+ 0x103f, 0x1057,
+ 0x105a, 0x105d,
+ 0x1061, 0x1070,
+ 0x1075, 0x1081,
+ 0x1083, 0x1084,
+ 0x1087, 0x108c,
+ 0x108e, 0x109c,
+ 0x109e, 0x10c5,
+ 0x10d0, 0x10fc,
+ 0x1100, 0x1248,
+ 0x124a, 0x124d,
+ 0x1250, 0x1256,
+ 0x1258, 0x1258,
+ 0x125a, 0x125d,
+ 0x1260, 0x1288,
+ 0x128a, 0x128d,
+ 0x1290, 0x12b0,
+ 0x12b2, 0x12b5,
+ 0x12b8, 0x12be,
+ 0x12c0, 0x12c0,
+ 0x12c2, 0x12c5,
+ 0x12c8, 0x12d6,
+ 0x12d8, 0x1310,
+ 0x1312, 0x1315,
+ 0x1318, 0x135a,
+ 0x1360, 0x137c,
+ 0x1380, 0x1399,
+ 0x13a0, 0x13f4,
+ 0x1400, 0x169c,
+ 0x16a0, 0x16f0,
+ 0x1700, 0x170c,
+ 0x170e, 0x1711,
+ 0x1720, 0x1731,
+ 0x1735, 0x1736,
+ 0x1740, 0x1751,
+ 0x1760, 0x176c,
+ 0x176e, 0x1770,
+ 0x1780, 0x17b3,
+ 0x17b6, 0x17b6,
+ 0x17be, 0x17c5,
+ 0x17c7, 0x17c8,
+ 0x17d4, 0x17dc,
+ 0x17e0, 0x17e9,
+ 0x17f0, 0x17f9,
+ 0x1800, 0x180a,
+ 0x180e, 0x180e,
+ 0x1810, 0x1819,
+ 0x1820, 0x1877,
+ 0x1880, 0x18a8,
+ 0x18aa, 0x18aa,
+ 0x18b0, 0x18f5,
+ 0x1900, 0x191c,
+ 0x1923, 0x1926,
+ 0x1929, 0x192b,
+ 0x1930, 0x1931,
+ 0x1933, 0x1938,
+ 0x1940, 0x1940,
+ 0x1944, 0x196d,
+ 0x1970, 0x1974,
+ 0x1980, 0x19ab,
+ 0x19b0, 0x19c9,
+ 0x19d0, 0x19da,
+ 0x19de, 0x1a16,
+ 0x1a19, 0x1a1b,
+ 0x1a1e, 0x1a55,
+ 0x1a57, 0x1a57,
+ 0x1a61, 0x1a61,
+ 0x1a63, 0x1a64,
+ 0x1a6d, 0x1a72,
+ 0x1a80, 0x1a89,
+ 0x1a90, 0x1a99,
+ 0x1aa0, 0x1aad,
+ 0x1b04, 0x1b33,
+ 0x1b35, 0x1b35,
+ 0x1b3b, 0x1b3b,
+ 0x1b3d, 0x1b41,
+ 0x1b43, 0x1b4b,
+ 0x1b50, 0x1b6a,
+ 0x1b74, 0x1b7c,
+ 0x1b82, 0x1ba1,
+ 0x1ba6, 0x1ba7,
+ 0x1baa, 0x1baa,
+ 0x1bae, 0x1bb9,
+ 0x1bc0, 0x1be5,
+ 0x1be7, 0x1be7,
+ 0x1bea, 0x1bec,
+ 0x1bee, 0x1bee,
+ 0x1bf2, 0x1bf3,
+ 0x1bfc, 0x1c2b,
+ 0x1c34, 0x1c35,
+ 0x1c3b, 0x1c49,
+ 0x1c4d, 0x1c7f,
+ 0x1cd3, 0x1cd3,
+ 0x1ce1, 0x1ce1,
+ 0x1ce9, 0x1cec,
+ 0x1cee, 0x1cf2,
+ 0x1d00, 0x1dbf,
+ 0x1e00, 0x1f15,
+ 0x1f18, 0x1f1d,
+ 0x1f20, 0x1f45,
+ 0x1f48, 0x1f4d,
+ 0x1f50, 0x1f57,
+ 0x1f59, 0x1f59,
+ 0x1f5b, 0x1f5b,
+ 0x1f5d, 0x1f5d,
+ 0x1f5f, 0x1f7d,
+ 0x1f80, 0x1fb4,
+ 0x1fb6, 0x1fc4,
+ 0x1fc6, 0x1fd3,
+ 0x1fd6, 0x1fdb,
+ 0x1fdd, 0x1fef,
+ 0x1ff2, 0x1ff4,
+ 0x1ff6, 0x1ffe,
+ 0x2000, 0x200a,
+ 0x2010, 0x2027,
+ 0x202f, 0x205f,
+ 0x2070, 0x2071,
+ 0x2074, 0x208e,
+ 0x2090, 0x209c,
+ 0x20a0, 0x20b9,
+ 0x2100, 0x2189,
+ 0x2190, 0x23f3,
+ 0x2400, 0x2426,
+ 0x2440, 0x244a,
+ 0x2460, 0x26ff,
+ 0x2701, 0x27ca,
+ 0x27cc, 0x27cc,
+ 0x27ce, 0x2b4c,
+ 0x2b50, 0x2b59,
+ 0x2c00, 0x2c2e,
+ 0x2c30, 0x2c5e,
+ 0x2c60, 0x2cee,
+ 0x2cf9, 0x2d25,
+ 0x2d30, 0x2d65,
+ 0x2d6f, 0x2d70,
+ 0x2d80, 0x2d96,
+ 0x2da0, 0x2da6,
+ 0x2da8, 0x2dae,
+ 0x2db0, 0x2db6,
+ 0x2db8, 0x2dbe,
+ 0x2dc0, 0x2dc6,
+ 0x2dc8, 0x2dce,
+ 0x2dd0, 0x2dd6,
+ 0x2dd8, 0x2dde,
+ 0x2e00, 0x2e31,
+ 0x2e80, 0x2e99,
+ 0x2e9b, 0x2ef3,
+ 0x2f00, 0x2fd5,
+ 0x2ff0, 0x2ffb,
+ 0x3000, 0x3029,
+ 0x3030, 0x303f,
+ 0x3041, 0x3096,
+ 0x309b, 0x30ff,
+ 0x3105, 0x312d,
+ 0x3131, 0x318e,
+ 0x3190, 0x31ba,
+ 0x31c0, 0x31e3,
+ 0x31f0, 0x321e,
+ 0x3220, 0x32fe,
+ 0x3300, 0x4db5,
+ 0x4dc0, 0x9fcb,
+ 0xa000, 0xa48c,
+ 0xa490, 0xa4c6,
+ 0xa4d0, 0xa62b,
+ 0xa640, 0xa66e,
+ 0xa673, 0xa673,
+ 0xa67e, 0xa697,
+ 0xa6a0, 0xa6ef,
+ 0xa6f2, 0xa6f7,
+ 0xa700, 0xa78e,
+ 0xa790, 0xa791,
+ 0xa7a0, 0xa7a9,
+ 0xa7fa, 0xa801,
+ 0xa803, 0xa805,
+ 0xa807, 0xa80a,
+ 0xa80c, 0xa824,
+ 0xa827, 0xa82b,
+ 0xa830, 0xa839,
+ 0xa840, 0xa877,
+ 0xa880, 0xa8c3,
+ 0xa8ce, 0xa8d9,
+ 0xa8f2, 0xa8fb,
+ 0xa900, 0xa925,
+ 0xa92e, 0xa946,
+ 0xa952, 0xa953,
+ 0xa95f, 0xa97c,
+ 0xa983, 0xa9b2,
+ 0xa9b4, 0xa9b5,
+ 0xa9ba, 0xa9bb,
+ 0xa9bd, 0xa9cd,
+ 0xa9cf, 0xa9d9,
+ 0xa9de, 0xa9df,
+ 0xaa00, 0xaa28,
+ 0xaa2f, 0xaa30,
+ 0xaa33, 0xaa34,
+ 0xaa40, 0xaa42,
+ 0xaa44, 0xaa4b,
+ 0xaa4d, 0xaa4d,
+ 0xaa50, 0xaa59,
+ 0xaa5c, 0xaa7b,
+ 0xaa80, 0xaaaf,
+ 0xaab1, 0xaab1,
+ 0xaab5, 0xaab6,
+ 0xaab9, 0xaabd,
+ 0xaac0, 0xaac0,
+ 0xaac2, 0xaac2,
+ 0xaadb, 0xaadf,
+ 0xab01, 0xab06,
+ 0xab09, 0xab0e,
+ 0xab11, 0xab16,
+ 0xab20, 0xab26,
+ 0xab28, 0xab2e,
+ 0xabc0, 0xabe4,
+ 0xabe6, 0xabe7,
+ 0xabe9, 0xabec,
+ 0xabf0, 0xabf9,
+ 0xac00, 0xd7a3,
+ 0xd7b0, 0xd7c6,
+ 0xd7cb, 0xd7fb,
+ 0xf900, 0xfa2d,
+ 0xfa30, 0xfa6d,
+ 0xfa70, 0xfad9,
+ 0xfb00, 0xfb06,
+ 0xfb13, 0xfb17,
+ 0xfb1d, 0xfb1d,
+ 0xfb1f, 0xfb36,
+ 0xfb38, 0xfb3c,
+ 0xfb3e, 0xfb3e,
+ 0xfb40, 0xfb41,
+ 0xfb43, 0xfb44,
+ 0xfb46, 0xfbc1,
+ 0xfbd3, 0xfd3f,
+ 0xfd50, 0xfd8f,
+ 0xfd92, 0xfdc7,
+ 0xfdf0, 0xfdfd,
+ 0xfe10, 0xfe19,
+ 0xfe30, 0xfe52,
+ 0xfe54, 0xfe66,
+ 0xfe68, 0xfe6b,
+ 0xfe70, 0xfe74,
+ 0xfe76, 0xfefc,
+ 0xff01, 0xff9d,
+ 0xffa0, 0xffbe,
+ 0xffc2, 0xffc7,
+ 0xffca, 0xffcf,
+ 0xffd2, 0xffd7,
+ 0xffda, 0xffdc,
+ 0xffe0, 0xffe6,
+ 0xffe8, 0xffee,
+ 0xfffc, 0xfffd,
+ 0x10000, 0x1000b,
+ 0x1000d, 0x10026,
+ 0x10028, 0x1003a,
+ 0x1003c, 0x1003d,
+ 0x1003f, 0x1004d,
+ 0x10050, 0x1005d,
+ 0x10080, 0x100fa,
+ 0x10100, 0x10102,
+ 0x10107, 0x10133,
+ 0x10137, 0x1018a,
+ 0x10190, 0x1019b,
+ 0x101d0, 0x101fc,
+ 0x10280, 0x1029c,
+ 0x102a0, 0x102d0,
+ 0x10300, 0x1031e,
+ 0x10320, 0x10323,
+ 0x10330, 0x1034a,
+ 0x10380, 0x1039d,
+ 0x1039f, 0x103c3,
+ 0x103c8, 0x103d5,
+ 0x10400, 0x1049d,
+ 0x104a0, 0x104a9,
+ 0x10800, 0x10805,
+ 0x10808, 0x10808,
+ 0x1080a, 0x10835,
+ 0x10837, 0x10838,
+ 0x1083c, 0x1083c,
+ 0x1083f, 0x10855,
+ 0x10857, 0x1085f,
+ 0x10900, 0x1091b,
+ 0x1091f, 0x10939,
+ 0x1093f, 0x1093f,
+ 0x10a00, 0x10a00,
+ 0x10a10, 0x10a13,
+ 0x10a15, 0x10a17,
+ 0x10a19, 0x10a33,
+ 0x10a40, 0x10a47,
+ 0x10a50, 0x10a58,
+ 0x10a60, 0x10a7f,
+ 0x10b00, 0x10b35,
+ 0x10b39, 0x10b55,
+ 0x10b58, 0x10b72,
+ 0x10b78, 0x10b7f,
+ 0x10c00, 0x10c48,
+ 0x10e60, 0x10e7e,
+ 0x11000, 0x11000,
+ 0x11002, 0x11037,
+ 0x11047, 0x1104d,
+ 0x11052, 0x1106f,
+ 0x11082, 0x110b2,
+ 0x110b7, 0x110b8,
+ 0x110bb, 0x110bc,
+ 0x110be, 0x110c1,
+ 0x12000, 0x1236e,
+ 0x12400, 0x12462,
+ 0x12470, 0x12473,
+ 0x13000, 0x1342e,
+ 0x16800, 0x16a38,
+ 0x1b000, 0x1b001,
+ 0x1d000, 0x1d0f5,
+ 0x1d100, 0x1d126,
+ 0x1d129, 0x1d164,
+ 0x1d166, 0x1d166,
+ 0x1d16a, 0x1d16d,
+ 0x1d183, 0x1d184,
+ 0x1d18c, 0x1d1a9,
+ 0x1d1ae, 0x1d1dd,
+ 0x1d200, 0x1d241,
+ 0x1d245, 0x1d245,
+ 0x1d300, 0x1d356,
+ 0x1d360, 0x1d371,
+ 0x1d400, 0x1d454,
+ 0x1d456, 0x1d49c,
+ 0x1d49e, 0x1d49f,
+ 0x1d4a2, 0x1d4a2,
+ 0x1d4a5, 0x1d4a6,
+ 0x1d4a9, 0x1d4ac,
+ 0x1d4ae, 0x1d4b9,
+ 0x1d4bb, 0x1d4bb,
+ 0x1d4bd, 0x1d4c3,
+ 0x1d4c5, 0x1d505,
+ 0x1d507, 0x1d50a,
+ 0x1d50d, 0x1d514,
+ 0x1d516, 0x1d51c,
+ 0x1d51e, 0x1d539,
+ 0x1d53b, 0x1d53e,
+ 0x1d540, 0x1d544,
+ 0x1d546, 0x1d546,
+ 0x1d54a, 0x1d550,
+ 0x1d552, 0x1d6a5,
+ 0x1d6a8, 0x1d7cb,
+ 0x1d7ce, 0x1d7ff,
+ 0x1f000, 0x1f02b,
+ 0x1f030, 0x1f093,
+ 0x1f0a0, 0x1f0ae,
+ 0x1f0b1, 0x1f0be,
+ 0x1f0c1, 0x1f0cf,
+ 0x1f0d1, 0x1f0df,
+ 0x1f100, 0x1f10a,
+ 0x1f110, 0x1f12e,
+ 0x1f130, 0x1f169,
+ 0x1f170, 0x1f19a,
+ 0x1f1e6, 0x1f202,
+ 0x1f210, 0x1f23a,
+ 0x1f240, 0x1f248,
+ 0x1f250, 0x1f251,
+ 0x1f300, 0x1f320,
+ 0x1f330, 0x1f335,
+ 0x1f337, 0x1f37c,
+ 0x1f380, 0x1f393,
+ 0x1f3a0, 0x1f3c4,
+ 0x1f3c6, 0x1f3ca,
+ 0x1f3e0, 0x1f3f0,
+ 0x1f400, 0x1f43e,
+ 0x1f440, 0x1f440,
+ 0x1f442, 0x1f4f7,
+ 0x1f4f9, 0x1f4fc,
+ 0x1f500, 0x1f53d,
+ 0x1f550, 0x1f567,
+ 0x1f5fb, 0x1f5ff,
+ 0x1f601, 0x1f610,
+ 0x1f612, 0x1f614,
+ 0x1f616, 0x1f616,
+ 0x1f618, 0x1f618,
+ 0x1f61a, 0x1f61a,
+ 0x1f61c, 0x1f61e,
+ 0x1f620, 0x1f625,
+ 0x1f628, 0x1f62b,
+ 0x1f62d, 0x1f62d,
+ 0x1f630, 0x1f633,
+ 0x1f635, 0x1f640,
+ 0x1f645, 0x1f64f,
+ 0x1f680, 0x1f6c5,
+ 0x1f700, 0x1f773,
+ 0x20000, 0x2a6d6,
+ 0x2a700, 0x2b734,
+ 0x2b740, 0x2b81d,
+ 0x2f800, 0x2fa1d,
+}; /* CR_Grapheme_Base */
+
+/* 'Grapheme_Link': Derived Property */
+static const OnigCodePoint CR_Grapheme_Link[] = {
+ 29,
+ 0x094d, 0x094d,
+ 0x09cd, 0x09cd,
+ 0x0a4d, 0x0a4d,
+ 0x0acd, 0x0acd,
+ 0x0b4d, 0x0b4d,
+ 0x0bcd, 0x0bcd,
+ 0x0c4d, 0x0c4d,
+ 0x0ccd, 0x0ccd,
+ 0x0d4d, 0x0d4d,
+ 0x0dca, 0x0dca,
+ 0x0e3a, 0x0e3a,
+ 0x0f84, 0x0f84,
+ 0x1039, 0x103a,
+ 0x1714, 0x1714,
+ 0x1734, 0x1734,
+ 0x17d2, 0x17d2,
+ 0x1a60, 0x1a60,
+ 0x1b44, 0x1b44,
+ 0x1baa, 0x1baa,
+ 0x1bf2, 0x1bf3,
+ 0x2d7f, 0x2d7f,
+ 0xa806, 0xa806,
+ 0xa8c4, 0xa8c4,
+ 0xa953, 0xa953,
+ 0xa9c0, 0xa9c0,
+ 0xabed, 0xabed,
+ 0x10a3f, 0x10a3f,
+ 0x11046, 0x11046,
+ 0x110b9, 0x110b9,
+}; /* CR_Grapheme_Link */
+
+/* 'Common': Script */
+static const OnigCodePoint CR_Common[] = {
+ 169,
+ 0x0000, 0x0040,
+ 0x005b, 0x0060,
+ 0x007b, 0x00a9,
+ 0x00ab, 0x00b9,
+ 0x00bb, 0x00bf,
+ 0x00d7, 0x00d7,
+ 0x00f7, 0x00f7,
+ 0x02b9, 0x02df,
+ 0x02e5, 0x02e9,
+ 0x02ec, 0x02ff,
+ 0x0374, 0x0374,
+ 0x037e, 0x037e,
+ 0x0385, 0x0385,
+ 0x0387, 0x0387,
+ 0x0589, 0x0589,
+ 0x060c, 0x060c,
+ 0x061b, 0x061b,
+ 0x061f, 0x061f,
+ 0x0640, 0x0640,
+ 0x0660, 0x0669,
+ 0x06dd, 0x06dd,
+ 0x0964, 0x0965,
+ 0x0970, 0x0970,
+ 0x0e3f, 0x0e3f,
+ 0x0fd5, 0x0fd8,
+ 0x10fb, 0x10fb,
+ 0x16eb, 0x16ed,
+ 0x1735, 0x1736,
+ 0x1802, 0x1803,
+ 0x1805, 0x1805,
+ 0x1cd3, 0x1cd3,
+ 0x1ce1, 0x1ce1,
+ 0x1ce9, 0x1cec,
+ 0x1cee, 0x1cf2,
+ 0x2000, 0x200b,
+ 0x200e, 0x2064,
+ 0x206a, 0x2070,
+ 0x2074, 0x207e,
+ 0x2080, 0x208e,
+ 0x20a0, 0x20b9,
+ 0x2100, 0x2125,
+ 0x2127, 0x2129,
+ 0x212c, 0x2131,
+ 0x2133, 0x214d,
+ 0x214f, 0x215f,
+ 0x2189, 0x2189,
+ 0x2190, 0x23f3,
+ 0x2400, 0x2426,
+ 0x2440, 0x244a,
+ 0x2460, 0x26ff,
+ 0x2701, 0x27ca,
+ 0x27cc, 0x27cc,
+ 0x27ce, 0x27ff,
+ 0x2900, 0x2b4c,
+ 0x2b50, 0x2b59,
+ 0x2e00, 0x2e31,
+ 0x2ff0, 0x2ffb,
+ 0x3000, 0x3004,
+ 0x3006, 0x3006,
+ 0x3008, 0x3020,
+ 0x3030, 0x3037,
+ 0x303c, 0x303f,
+ 0x309b, 0x309c,
+ 0x30a0, 0x30a0,
+ 0x30fb, 0x30fc,
+ 0x3190, 0x319f,
+ 0x31c0, 0x31e3,
+ 0x3220, 0x325f,
+ 0x327f, 0x32cf,
+ 0x3358, 0x33ff,
+ 0x4dc0, 0x4dff,
+ 0xa700, 0xa721,
+ 0xa788, 0xa78a,
+ 0xa830, 0xa839,
+ 0xfd3e, 0xfd3f,
+ 0xfdfd, 0xfdfd,
+ 0xfe10, 0xfe19,
+ 0xfe30, 0xfe52,
+ 0xfe54, 0xfe66,
+ 0xfe68, 0xfe6b,
+ 0xfeff, 0xfeff,
+ 0xff01, 0xff20,
+ 0xff3b, 0xff40,
+ 0xff5b, 0xff65,
+ 0xff70, 0xff70,
+ 0xff9e, 0xff9f,
+ 0xffe0, 0xffe6,
+ 0xffe8, 0xffee,
+ 0xfff9, 0xfffd,
+ 0x10100, 0x10102,
+ 0x10107, 0x10133,
+ 0x10137, 0x1013f,
+ 0x10190, 0x1019b,
+ 0x101d0, 0x101fc,
+ 0x1d000, 0x1d0f5,
+ 0x1d100, 0x1d126,
+ 0x1d129, 0x1d166,
+ 0x1d16a, 0x1d17a,
+ 0x1d183, 0x1d184,
+ 0x1d18c, 0x1d1a9,
+ 0x1d1ae, 0x1d1dd,
+ 0x1d300, 0x1d356,
+ 0x1d360, 0x1d371,
+ 0x1d400, 0x1d454,
+ 0x1d456, 0x1d49c,
+ 0x1d49e, 0x1d49f,
+ 0x1d4a2, 0x1d4a2,
+ 0x1d4a5, 0x1d4a6,
+ 0x1d4a9, 0x1d4ac,
+ 0x1d4ae, 0x1d4b9,
+ 0x1d4bb, 0x1d4bb,
+ 0x1d4bd, 0x1d4c3,
+ 0x1d4c5, 0x1d505,
+ 0x1d507, 0x1d50a,
+ 0x1d50d, 0x1d514,
+ 0x1d516, 0x1d51c,
+ 0x1d51e, 0x1d539,
+ 0x1d53b, 0x1d53e,
+ 0x1d540, 0x1d544,
+ 0x1d546, 0x1d546,
+ 0x1d54a, 0x1d550,
+ 0x1d552, 0x1d6a5,
+ 0x1d6a8, 0x1d7cb,
+ 0x1d7ce, 0x1d7ff,
+ 0x1f000, 0x1f02b,
+ 0x1f030, 0x1f093,
+ 0x1f0a0, 0x1f0ae,
+ 0x1f0b1, 0x1f0be,
+ 0x1f0c1, 0x1f0cf,
+ 0x1f0d1, 0x1f0df,
+ 0x1f100, 0x1f10a,
+ 0x1f110, 0x1f12e,
+ 0x1f130, 0x1f169,
+ 0x1f170, 0x1f19a,
+ 0x1f1e6, 0x1f1ff,
+ 0x1f201, 0x1f202,
+ 0x1f210, 0x1f23a,
+ 0x1f240, 0x1f248,
+ 0x1f250, 0x1f251,
+ 0x1f300, 0x1f320,
+ 0x1f330, 0x1f335,
+ 0x1f337, 0x1f37c,
+ 0x1f380, 0x1f393,
+ 0x1f3a0, 0x1f3c4,
+ 0x1f3c6, 0x1f3ca,
+ 0x1f3e0, 0x1f3f0,
+ 0x1f400, 0x1f43e,
+ 0x1f440, 0x1f440,
+ 0x1f442, 0x1f4f7,
+ 0x1f4f9, 0x1f4fc,
+ 0x1f500, 0x1f53d,
+ 0x1f550, 0x1f567,
+ 0x1f5fb, 0x1f5ff,
+ 0x1f601, 0x1f610,
+ 0x1f612, 0x1f614,
+ 0x1f616, 0x1f616,
+ 0x1f618, 0x1f618,
+ 0x1f61a, 0x1f61a,
+ 0x1f61c, 0x1f61e,
+ 0x1f620, 0x1f625,
+ 0x1f628, 0x1f62b,
+ 0x1f62d, 0x1f62d,
+ 0x1f630, 0x1f633,
+ 0x1f635, 0x1f640,
+ 0x1f645, 0x1f64f,
+ 0x1f680, 0x1f6c5,
+ 0x1f700, 0x1f773,
+ 0xe0001, 0xe0001,
+ 0xe0020, 0xe007f,
+}; /* CR_Common */
+
+/* 'Latin': Script */
+static const OnigCodePoint CR_Latin[] = {
+ 30,
+ 0x0041, 0x005a,
+ 0x0061, 0x007a,
+ 0x00aa, 0x00aa,
+ 0x00ba, 0x00ba,
+ 0x00c0, 0x00d6,
+ 0x00d8, 0x00f6,
+ 0x00f8, 0x02b8,
+ 0x02e0, 0x02e4,
+ 0x1d00, 0x1d25,
+ 0x1d2c, 0x1d5c,
+ 0x1d62, 0x1d65,
+ 0x1d6b, 0x1d77,
+ 0x1d79, 0x1dbe,
+ 0x1e00, 0x1eff,
+ 0x2071, 0x2071,
+ 0x207f, 0x207f,
+ 0x2090, 0x209c,
+ 0x212a, 0x212b,
+ 0x2132, 0x2132,
+ 0x214e, 0x214e,
+ 0x2160, 0x2188,
+ 0x2c60, 0x2c7f,
+ 0xa722, 0xa787,
+ 0xa78b, 0xa78e,
+ 0xa790, 0xa791,
+ 0xa7a0, 0xa7a9,
+ 0xa7fa, 0xa7ff,
+ 0xfb00, 0xfb06,
+ 0xff21, 0xff3a,
+ 0xff41, 0xff5a,
+}; /* CR_Latin */
+
+/* 'Greek': Script */
+static const OnigCodePoint CR_Greek[] = {
+ 33,
+ 0x0370, 0x0373,
+ 0x0375, 0x0377,
+ 0x037a, 0x037d,
+ 0x0384, 0x0384,
+ 0x0386, 0x0386,
+ 0x0388, 0x038a,
+ 0x038c, 0x038c,
+ 0x038e, 0x03a1,
+ 0x03a3, 0x03e1,
+ 0x03f0, 0x03ff,
+ 0x1d26, 0x1d2a,
+ 0x1d5d, 0x1d61,
+ 0x1d66, 0x1d6a,
+ 0x1dbf, 0x1dbf,
+ 0x1f00, 0x1f15,
+ 0x1f18, 0x1f1d,
+ 0x1f20, 0x1f45,
+ 0x1f48, 0x1f4d,
+ 0x1f50, 0x1f57,
+ 0x1f59, 0x1f59,
+ 0x1f5b, 0x1f5b,
+ 0x1f5d, 0x1f5d,
+ 0x1f5f, 0x1f7d,
+ 0x1f80, 0x1fb4,
+ 0x1fb6, 0x1fc4,
+ 0x1fc6, 0x1fd3,
+ 0x1fd6, 0x1fdb,
+ 0x1fdd, 0x1fef,
+ 0x1ff2, 0x1ff4,
+ 0x1ff6, 0x1ffe,
+ 0x2126, 0x2126,
+ 0x10140, 0x1018a,
+ 0x1d200, 0x1d245,
+}; /* CR_Greek */
+
+/* 'Cyrillic': Script */
+static const OnigCodePoint CR_Cyrillic[] = {
+ 7,
+ 0x0400, 0x0484,
+ 0x0487, 0x0527,
+ 0x1d2b, 0x1d2b,
+ 0x1d78, 0x1d78,
+ 0x2de0, 0x2dff,
+ 0xa640, 0xa673,
+ 0xa67c, 0xa697,
+}; /* CR_Cyrillic */
+
+/* 'Armenian': Script */
+static const OnigCodePoint CR_Armenian[] = {
+ 5,
+ 0x0531, 0x0556,
+ 0x0559, 0x055f,
+ 0x0561, 0x0587,
+ 0x058a, 0x058a,
+ 0xfb13, 0xfb17,
+}; /* CR_Armenian */
+
+/* 'Hebrew': Script */
+static const OnigCodePoint CR_Hebrew[] = {
+ 9,
+ 0x0591, 0x05c7,
+ 0x05d0, 0x05ea,
+ 0x05f0, 0x05f4,
+ 0xfb1d, 0xfb36,
+ 0xfb38, 0xfb3c,
+ 0xfb3e, 0xfb3e,
+ 0xfb40, 0xfb41,
+ 0xfb43, 0xfb44,
+ 0xfb46, 0xfb4f,
+}; /* CR_Hebrew */
+
+/* 'Arabic': Script */
+static const OnigCodePoint CR_Arabic[] = {
+ 19,
+ 0x0600, 0x0603,
+ 0x0606, 0x060b,
+ 0x060d, 0x061a,
+ 0x061e, 0x061e,
+ 0x0620, 0x063f,
+ 0x0641, 0x064a,
+ 0x0656, 0x065e,
+ 0x066a, 0x066f,
+ 0x0671, 0x06dc,
+ 0x06de, 0x06ff,
+ 0x0750, 0x077f,
+ 0xfb50, 0xfbc1,
+ 0xfbd3, 0xfd3d,
+ 0xfd50, 0xfd8f,
+ 0xfd92, 0xfdc7,
+ 0xfdf0, 0xfdfc,
+ 0xfe70, 0xfe74,
+ 0xfe76, 0xfefc,
+ 0x10e60, 0x10e7e,
+}; /* CR_Arabic */
+
+/* 'Syriac': Script */
+static const OnigCodePoint CR_Syriac[] = {
+ 3,
+ 0x0700, 0x070d,
+ 0x070f, 0x074a,
+ 0x074d, 0x074f,
+}; /* CR_Syriac */
+
+/* 'Thaana': Script */
+static const OnigCodePoint CR_Thaana[] = {
+ 1,
+ 0x0780, 0x07b1,
+}; /* CR_Thaana */
+
+/* 'Devanagari': Script */
+static const OnigCodePoint CR_Devanagari[] = {
+ 6,
+ 0x0900, 0x0950,
+ 0x0953, 0x0963,
+ 0x0966, 0x096f,
+ 0x0971, 0x0977,
+ 0x0979, 0x097f,
+ 0xa8e0, 0xa8fb,
+}; /* CR_Devanagari */
+
+/* 'Bengali': Script */
+static const OnigCodePoint CR_Bengali[] = {
+ 14,
+ 0x0981, 0x0983,
+ 0x0985, 0x098c,
+ 0x098f, 0x0990,
+ 0x0993, 0x09a8,
+ 0x09aa, 0x09b0,
+ 0x09b2, 0x09b2,
+ 0x09b6, 0x09b9,
+ 0x09bc, 0x09c4,
+ 0x09c7, 0x09c8,
+ 0x09cb, 0x09ce,
+ 0x09d7, 0x09d7,
+ 0x09dc, 0x09dd,
+ 0x09df, 0x09e3,
+ 0x09e6, 0x09fb,
+}; /* CR_Bengali */
+
+/* 'Gurmukhi': Script */
+static const OnigCodePoint CR_Gurmukhi[] = {
+ 16,
+ 0x0a01, 0x0a03,
+ 0x0a05, 0x0a0a,
+ 0x0a0f, 0x0a10,
+ 0x0a13, 0x0a28,
+ 0x0a2a, 0x0a30,
+ 0x0a32, 0x0a33,
+ 0x0a35, 0x0a36,
+ 0x0a38, 0x0a39,
+ 0x0a3c, 0x0a3c,
+ 0x0a3e, 0x0a42,
+ 0x0a47, 0x0a48,
+ 0x0a4b, 0x0a4d,
+ 0x0a51, 0x0a51,
+ 0x0a59, 0x0a5c,
+ 0x0a5e, 0x0a5e,
+ 0x0a66, 0x0a75,
+}; /* CR_Gurmukhi */
+
+/* 'Gujarati': Script */
+static const OnigCodePoint CR_Gujarati[] = {
+ 14,
+ 0x0a81, 0x0a83,
+ 0x0a85, 0x0a8d,
+ 0x0a8f, 0x0a91,
+ 0x0a93, 0x0aa8,
+ 0x0aaa, 0x0ab0,
+ 0x0ab2, 0x0ab3,
+ 0x0ab5, 0x0ab9,
+ 0x0abc, 0x0ac5,
+ 0x0ac7, 0x0ac9,
+ 0x0acb, 0x0acd,
+ 0x0ad0, 0x0ad0,
+ 0x0ae0, 0x0ae3,
+ 0x0ae6, 0x0aef,
+ 0x0af1, 0x0af1,
+}; /* CR_Gujarati */
+
+/* 'Oriya': Script */
+static const OnigCodePoint CR_Oriya[] = {
+ 14,
+ 0x0b01, 0x0b03,
+ 0x0b05, 0x0b0c,
+ 0x0b0f, 0x0b10,
+ 0x0b13, 0x0b28,
+ 0x0b2a, 0x0b30,
+ 0x0b32, 0x0b33,
+ 0x0b35, 0x0b39,
+ 0x0b3c, 0x0b44,
+ 0x0b47, 0x0b48,
+ 0x0b4b, 0x0b4d,
+ 0x0b56, 0x0b57,
+ 0x0b5c, 0x0b5d,
+ 0x0b5f, 0x0b63,
+ 0x0b66, 0x0b77,
+}; /* CR_Oriya */
+
+/* 'Tamil': Script */
+static const OnigCodePoint CR_Tamil[] = {
+ 16,
+ 0x0b82, 0x0b83,
+ 0x0b85, 0x0b8a,
+ 0x0b8e, 0x0b90,
+ 0x0b92, 0x0b95,
+ 0x0b99, 0x0b9a,
+ 0x0b9c, 0x0b9c,
+ 0x0b9e, 0x0b9f,
+ 0x0ba3, 0x0ba4,
+ 0x0ba8, 0x0baa,
+ 0x0bae, 0x0bb9,
+ 0x0bbe, 0x0bc2,
+ 0x0bc6, 0x0bc8,
+ 0x0bca, 0x0bcd,
+ 0x0bd0, 0x0bd0,
+ 0x0bd7, 0x0bd7,
+ 0x0be6, 0x0bfa,
+}; /* CR_Tamil */
+
+/* 'Telugu': Script */
+static const OnigCodePoint CR_Telugu[] = {
+ 14,
+ 0x0c01, 0x0c03,
+ 0x0c05, 0x0c0c,
+ 0x0c0e, 0x0c10,
+ 0x0c12, 0x0c28,
+ 0x0c2a, 0x0c33,
+ 0x0c35, 0x0c39,
+ 0x0c3d, 0x0c44,
+ 0x0c46, 0x0c48,
+ 0x0c4a, 0x0c4d,
+ 0x0c55, 0x0c56,
+ 0x0c58, 0x0c59,
+ 0x0c60, 0x0c63,
+ 0x0c66, 0x0c6f,
+ 0x0c78, 0x0c7f,
+}; /* CR_Telugu */
+
+/* 'Kannada': Script */
+static const OnigCodePoint CR_Kannada[] = {
+ 14,
+ 0x0c82, 0x0c83,
+ 0x0c85, 0x0c8c,
+ 0x0c8e, 0x0c90,
+ 0x0c92, 0x0ca8,
+ 0x0caa, 0x0cb3,
+ 0x0cb5, 0x0cb9,
+ 0x0cbc, 0x0cc4,
+ 0x0cc6, 0x0cc8,
+ 0x0cca, 0x0ccd,
+ 0x0cd5, 0x0cd6,
+ 0x0cde, 0x0cde,
+ 0x0ce0, 0x0ce3,
+ 0x0ce6, 0x0cef,
+ 0x0cf1, 0x0cf2,
+}; /* CR_Kannada */
+
+/* 'Malayalam': Script */
+static const OnigCodePoint CR_Malayalam[] = {
+ 11,
+ 0x0d02, 0x0d03,
+ 0x0d05, 0x0d0c,
+ 0x0d0e, 0x0d10,
+ 0x0d12, 0x0d3a,
+ 0x0d3d, 0x0d44,
+ 0x0d46, 0x0d48,
+ 0x0d4a, 0x0d4e,
+ 0x0d57, 0x0d57,
+ 0x0d60, 0x0d63,
+ 0x0d66, 0x0d75,
+ 0x0d79, 0x0d7f,
+}; /* CR_Malayalam */
+
+/* 'Sinhala': Script */
+static const OnigCodePoint CR_Sinhala[] = {
+ 11,
+ 0x0d82, 0x0d83,
+ 0x0d85, 0x0d96,
+ 0x0d9a, 0x0db1,
+ 0x0db3, 0x0dbb,
+ 0x0dbd, 0x0dbd,
+ 0x0dc0, 0x0dc6,
+ 0x0dca, 0x0dca,
+ 0x0dcf, 0x0dd4,
+ 0x0dd6, 0x0dd6,
+ 0x0dd8, 0x0ddf,
+ 0x0df2, 0x0df4,
+}; /* CR_Sinhala */
+
+/* 'Thai': Script */
+static const OnigCodePoint CR_Thai[] = {
+ 2,
+ 0x0e01, 0x0e3a,
+ 0x0e40, 0x0e5b,
+}; /* CR_Thai */
+
+/* 'Lao': Script */
+static const OnigCodePoint CR_Lao[] = {
+ 18,
+ 0x0e81, 0x0e82,
+ 0x0e84, 0x0e84,
+ 0x0e87, 0x0e88,
+ 0x0e8a, 0x0e8a,
+ 0x0e8d, 0x0e8d,
+ 0x0e94, 0x0e97,
+ 0x0e99, 0x0e9f,
+ 0x0ea1, 0x0ea3,
+ 0x0ea5, 0x0ea5,
+ 0x0ea7, 0x0ea7,
+ 0x0eaa, 0x0eab,
+ 0x0ead, 0x0eb9,
+ 0x0ebb, 0x0ebd,
+ 0x0ec0, 0x0ec4,
+ 0x0ec6, 0x0ec6,
+ 0x0ec8, 0x0ecd,
+ 0x0ed0, 0x0ed9,
+ 0x0edc, 0x0edd,
+}; /* CR_Lao */
+
+/* 'Tibetan': Script */
+static const OnigCodePoint CR_Tibetan[] = {
+ 7,
+ 0x0f00, 0x0f47,
+ 0x0f49, 0x0f6c,
+ 0x0f71, 0x0f97,
+ 0x0f99, 0x0fbc,
+ 0x0fbe, 0x0fcc,
+ 0x0fce, 0x0fd4,
+ 0x0fd9, 0x0fda,
+}; /* CR_Tibetan */
+
+/* 'Myanmar': Script */
+static const OnigCodePoint CR_Myanmar[] = {
+ 2,
+ 0x1000, 0x109f,
+ 0xaa60, 0xaa7b,
+}; /* CR_Myanmar */
+
+/* 'Georgian': Script */
+static const OnigCodePoint CR_Georgian[] = {
+ 4,
+ 0x10a0, 0x10c5,
+ 0x10d0, 0x10fa,
+ 0x10fc, 0x10fc,
+ 0x2d00, 0x2d25,
+}; /* CR_Georgian */
+
+/* 'Hangul': Script */
+static const OnigCodePoint CR_Hangul[] = {
+ 14,
+ 0x1100, 0x11ff,
+ 0x302e, 0x302f,
+ 0x3131, 0x318e,
+ 0x3200, 0x321e,
+ 0x3260, 0x327e,
+ 0xa960, 0xa97c,
+ 0xac00, 0xd7a3,
+ 0xd7b0, 0xd7c6,
+ 0xd7cb, 0xd7fb,
+ 0xffa0, 0xffbe,
+ 0xffc2, 0xffc7,
+ 0xffca, 0xffcf,
+ 0xffd2, 0xffd7,
+ 0xffda, 0xffdc,
+}; /* CR_Hangul */
+
+/* 'Ethiopic': Script */
+static const OnigCodePoint CR_Ethiopic[] = {
+ 32,
+ 0x1200, 0x1248,
+ 0x124a, 0x124d,
+ 0x1250, 0x1256,
+ 0x1258, 0x1258,
+ 0x125a, 0x125d,
+ 0x1260, 0x1288,
+ 0x128a, 0x128d,
+ 0x1290, 0x12b0,
+ 0x12b2, 0x12b5,
+ 0x12b8, 0x12be,
+ 0x12c0, 0x12c0,
+ 0x12c2, 0x12c5,
+ 0x12c8, 0x12d6,
+ 0x12d8, 0x1310,
+ 0x1312, 0x1315,
+ 0x1318, 0x135a,
+ 0x135d, 0x137c,
+ 0x1380, 0x1399,
+ 0x2d80, 0x2d96,
+ 0x2da0, 0x2da6,
+ 0x2da8, 0x2dae,
+ 0x2db0, 0x2db6,
+ 0x2db8, 0x2dbe,
+ 0x2dc0, 0x2dc6,
+ 0x2dc8, 0x2dce,
+ 0x2dd0, 0x2dd6,
+ 0x2dd8, 0x2dde,
+ 0xab01, 0xab06,
+ 0xab09, 0xab0e,
+ 0xab11, 0xab16,
+ 0xab20, 0xab26,
+ 0xab28, 0xab2e,
+}; /* CR_Ethiopic */
+
+/* 'Cherokee': Script */
+static const OnigCodePoint CR_Cherokee[] = {
+ 1,
+ 0x13a0, 0x13f4,
+}; /* CR_Cherokee */
+
+/* 'Canadian_Aboriginal': Script */
+static const OnigCodePoint CR_Canadian_Aboriginal[] = {
+ 2,
+ 0x1400, 0x167f,
+ 0x18b0, 0x18f5,
+}; /* CR_Canadian_Aboriginal */
+
+/* 'Ogham': Script */
+static const OnigCodePoint CR_Ogham[] = {
+ 1,
+ 0x1680, 0x169c,
+}; /* CR_Ogham */
+
+/* 'Runic': Script */
+static const OnigCodePoint CR_Runic[] = {
+ 2,
+ 0x16a0, 0x16ea,
+ 0x16ee, 0x16f0,
+}; /* CR_Runic */
+
+/* 'Khmer': Script */
+static const OnigCodePoint CR_Khmer[] = {
+ 4,
+ 0x1780, 0x17dd,
+ 0x17e0, 0x17e9,
+ 0x17f0, 0x17f9,
+ 0x19e0, 0x19ff,
+}; /* CR_Khmer */
+
+/* 'Mongolian': Script */
+static const OnigCodePoint CR_Mongolian[] = {
+ 6,
+ 0x1800, 0x1801,
+ 0x1804, 0x1804,
+ 0x1806, 0x180e,
+ 0x1810, 0x1819,
+ 0x1820, 0x1877,
+ 0x1880, 0x18aa,
+}; /* CR_Mongolian */
+
+/* 'Hiragana': Script */
+static const OnigCodePoint CR_Hiragana[] = {
+ 4,
+ 0x3041, 0x3096,
+ 0x309d, 0x309f,
+ 0x1b001, 0x1b001,
+ 0x1f200, 0x1f200,
+}; /* CR_Hiragana */
+
+/* 'Katakana': Script */
+static const OnigCodePoint CR_Katakana[] = {
+ 8,
+ 0x30a1, 0x30fa,
+ 0x30fd, 0x30ff,
+ 0x31f0, 0x31ff,
+ 0x32d0, 0x32fe,
+ 0x3300, 0x3357,
+ 0xff66, 0xff6f,
+ 0xff71, 0xff9d,
+ 0x1b000, 0x1b000,
+}; /* CR_Katakana */
+
+/* 'Bopomofo': Script */
+static const OnigCodePoint CR_Bopomofo[] = {
+ 3,
+ 0x02ea, 0x02eb,
+ 0x3105, 0x312d,
+ 0x31a0, 0x31ba,
+}; /* CR_Bopomofo */
+
+/* 'Han': Script */
+static const OnigCodePoint CR_Han[] = {
+ 16,
+ 0x2e80, 0x2e99,
+ 0x2e9b, 0x2ef3,
+ 0x2f00, 0x2fd5,
+ 0x3005, 0x3005,
+ 0x3007, 0x3007,
+ 0x3021, 0x3029,
+ 0x3038, 0x303b,
+ 0x3400, 0x4db5,
+ 0x4e00, 0x9fcb,
+ 0xf900, 0xfa2d,
+ 0xfa30, 0xfa6d,
+ 0xfa70, 0xfad9,
+ 0x20000, 0x2a6d6,
+ 0x2a700, 0x2b734,
+ 0x2b740, 0x2b81d,
+ 0x2f800, 0x2fa1d,
+}; /* CR_Han */
+
+/* 'Yi': Script */
+static const OnigCodePoint CR_Yi[] = {
+ 2,
+ 0xa000, 0xa48c,
+ 0xa490, 0xa4c6,
+}; /* CR_Yi */
+
+/* 'Old_Italic': Script */
+static const OnigCodePoint CR_Old_Italic[] = {
+ 2,
+ 0x10300, 0x1031e,
+ 0x10320, 0x10323,
+}; /* CR_Old_Italic */
+
+/* 'Gothic': Script */
+static const OnigCodePoint CR_Gothic[] = {
+ 1,
+ 0x10330, 0x1034a,
+}; /* CR_Gothic */
+
+/* 'Deseret': Script */
+static const OnigCodePoint CR_Deseret[] = {
+ 1,
+ 0x10400, 0x1044f,
+}; /* CR_Deseret */
+
+/* 'Inherited': Script */
+static const OnigCodePoint CR_Inherited[] = {
+ 24,
+ 0x0300, 0x036f,
+ 0x0485, 0x0486,
+ 0x064b, 0x0655,
+ 0x065f, 0x065f,
+ 0x0670, 0x0670,
+ 0x0951, 0x0952,
+ 0x1cd0, 0x1cd2,
+ 0x1cd4, 0x1ce0,
+ 0x1ce2, 0x1ce8,
+ 0x1ced, 0x1ced,
+ 0x1dc0, 0x1de6,
+ 0x1dfc, 0x1dff,
+ 0x200c, 0x200d,
+ 0x20d0, 0x20f0,
+ 0x302a, 0x302d,
+ 0x3099, 0x309a,
+ 0xfe00, 0xfe0f,
+ 0xfe20, 0xfe26,
+ 0x101fd, 0x101fd,
+ 0x1d167, 0x1d169,
+ 0x1d17b, 0x1d182,
+ 0x1d185, 0x1d18b,
+ 0x1d1aa, 0x1d1ad,
+ 0xe0100, 0xe01ef,
+}; /* CR_Inherited */
+
+/* 'Tagalog': Script */
+static const OnigCodePoint CR_Tagalog[] = {
+ 2,
+ 0x1700, 0x170c,
+ 0x170e, 0x1714,
+}; /* CR_Tagalog */
+
+/* 'Hanunoo': Script */
+static const OnigCodePoint CR_Hanunoo[] = {
+ 1,
+ 0x1720, 0x1734,
+}; /* CR_Hanunoo */
+
+/* 'Buhid': Script */
+static const OnigCodePoint CR_Buhid[] = {
+ 1,
+ 0x1740, 0x1753,
+}; /* CR_Buhid */
+
+/* 'Tagbanwa': Script */
+static const OnigCodePoint CR_Tagbanwa[] = {
+ 3,
+ 0x1760, 0x176c,
+ 0x176e, 0x1770,
+ 0x1772, 0x1773,
+}; /* CR_Tagbanwa */
+
+/* 'Limbu': Script */
+static const OnigCodePoint CR_Limbu[] = {
+ 5,
+ 0x1900, 0x191c,
+ 0x1920, 0x192b,
+ 0x1930, 0x193b,
+ 0x1940, 0x1940,
+ 0x1944, 0x194f,
+}; /* CR_Limbu */
+
+/* 'Tai_Le': Script */
+static const OnigCodePoint CR_Tai_Le[] = {
+ 2,
+ 0x1950, 0x196d,
+ 0x1970, 0x1974,
+}; /* CR_Tai_Le */
+
+/* 'Linear_B': Script */
+static const OnigCodePoint CR_Linear_B[] = {
+ 7,
+ 0x10000, 0x1000b,
+ 0x1000d, 0x10026,
+ 0x10028, 0x1003a,
+ 0x1003c, 0x1003d,
+ 0x1003f, 0x1004d,
+ 0x10050, 0x1005d,
+ 0x10080, 0x100fa,
+}; /* CR_Linear_B */
+
+/* 'Ugaritic': Script */
+static const OnigCodePoint CR_Ugaritic[] = {
+ 2,
+ 0x10380, 0x1039d,
+ 0x1039f, 0x1039f,
+}; /* CR_Ugaritic */
+
+/* 'Shavian': Script */
+static const OnigCodePoint CR_Shavian[] = {
+ 1,
+ 0x10450, 0x1047f,
+}; /* CR_Shavian */
+
+/* 'Osmanya': Script */
+static const OnigCodePoint CR_Osmanya[] = {
+ 2,
+ 0x10480, 0x1049d,
+ 0x104a0, 0x104a9,
+}; /* CR_Osmanya */
+
+/* 'Cypriot': Script */
+static const OnigCodePoint CR_Cypriot[] = {
+ 6,
+ 0x10800, 0x10805,
+ 0x10808, 0x10808,
+ 0x1080a, 0x10835,
+ 0x10837, 0x10838,
+ 0x1083c, 0x1083c,
+ 0x1083f, 0x1083f,
+}; /* CR_Cypriot */
+
+/* 'Braille': Script */
+static const OnigCodePoint CR_Braille[] = {
+ 1,
+ 0x2800, 0x28ff,
+}; /* CR_Braille */
+
+/* 'Buginese': Script */
+static const OnigCodePoint CR_Buginese[] = {
+ 2,
+ 0x1a00, 0x1a1b,
+ 0x1a1e, 0x1a1f,
+}; /* CR_Buginese */
+
+/* 'Coptic': Script */
+static const OnigCodePoint CR_Coptic[] = {
+ 3,
+ 0x03e2, 0x03ef,
+ 0x2c80, 0x2cf1,
+ 0x2cf9, 0x2cff,
+}; /* CR_Coptic */
+
+/* 'New_Tai_Lue': Script */
+static const OnigCodePoint CR_New_Tai_Lue[] = {
+ 4,
+ 0x1980, 0x19ab,
+ 0x19b0, 0x19c9,
+ 0x19d0, 0x19da,
+ 0x19de, 0x19df,
+}; /* CR_New_Tai_Lue */
+
+/* 'Glagolitic': Script */
+static const OnigCodePoint CR_Glagolitic[] = {
+ 2,
+ 0x2c00, 0x2c2e,
+ 0x2c30, 0x2c5e,
+}; /* CR_Glagolitic */
+
+/* 'Tifinagh': Script */
+static const OnigCodePoint CR_Tifinagh[] = {
+ 3,
+ 0x2d30, 0x2d65,
+ 0x2d6f, 0x2d70,
+ 0x2d7f, 0x2d7f,
+}; /* CR_Tifinagh */
+
+/* 'Syloti_Nagri': Script */
+static const OnigCodePoint CR_Syloti_Nagri[] = {
+ 1,
+ 0xa800, 0xa82b,
+}; /* CR_Syloti_Nagri */
+
+/* 'Old_Persian': Script */
+static const OnigCodePoint CR_Old_Persian[] = {
+ 2,
+ 0x103a0, 0x103c3,
+ 0x103c8, 0x103d5,
+}; /* CR_Old_Persian */
+
+/* 'Kharoshthi': Script */
+static const OnigCodePoint CR_Kharoshthi[] = {
+ 8,
+ 0x10a00, 0x10a03,
+ 0x10a05, 0x10a06,
+ 0x10a0c, 0x10a13,
+ 0x10a15, 0x10a17,
+ 0x10a19, 0x10a33,
+ 0x10a38, 0x10a3a,
+ 0x10a3f, 0x10a47,
+ 0x10a50, 0x10a58,
+}; /* CR_Kharoshthi */
+
+/* 'Balinese': Script */
+static const OnigCodePoint CR_Balinese[] = {
+ 2,
+ 0x1b00, 0x1b4b,
+ 0x1b50, 0x1b7c,
+}; /* CR_Balinese */
+
+/* 'Cuneiform': Script */
+static const OnigCodePoint CR_Cuneiform[] = {
+ 3,
+ 0x12000, 0x1236e,
+ 0x12400, 0x12462,
+ 0x12470, 0x12473,
+}; /* CR_Cuneiform */
+
+/* 'Phoenician': Script */
+static const OnigCodePoint CR_Phoenician[] = {
+ 2,
+ 0x10900, 0x1091b,
+ 0x1091f, 0x1091f,
+}; /* CR_Phoenician */
+
+/* 'Phags_Pa': Script */
+static const OnigCodePoint CR_Phags_Pa[] = {
+ 1,
+ 0xa840, 0xa877,
+}; /* CR_Phags_Pa */
+
+/* 'Nko': Script */
+static const OnigCodePoint CR_Nko[] = {
+ 1,
+ 0x07c0, 0x07fa,
+}; /* CR_Nko */
+
+/* 'Sundanese': Script */
+static const OnigCodePoint CR_Sundanese[] = {
+ 2,
+ 0x1b80, 0x1baa,
+ 0x1bae, 0x1bb9,
+}; /* CR_Sundanese */
+
+/* 'Lepcha': Script */
+static const OnigCodePoint CR_Lepcha[] = {
+ 3,
+ 0x1c00, 0x1c37,
+ 0x1c3b, 0x1c49,
+ 0x1c4d, 0x1c4f,
+}; /* CR_Lepcha */
+
+/* 'Ol_Chiki': Script */
+static const OnigCodePoint CR_Ol_Chiki[] = {
+ 1,
+ 0x1c50, 0x1c7f,
+}; /* CR_Ol_Chiki */
+
+/* 'Vai': Script */
+static const OnigCodePoint CR_Vai[] = {
+ 1,
+ 0xa500, 0xa62b,
+}; /* CR_Vai */
+
+/* 'Saurashtra': Script */
+static const OnigCodePoint CR_Saurashtra[] = {
+ 2,
+ 0xa880, 0xa8c4,
+ 0xa8ce, 0xa8d9,
+}; /* CR_Saurashtra */
+
+/* 'Kayah_Li': Script */
+static const OnigCodePoint CR_Kayah_Li[] = {
+ 1,
+ 0xa900, 0xa92f,
+}; /* CR_Kayah_Li */
+
+/* 'Rejang': Script */
+static const OnigCodePoint CR_Rejang[] = {
+ 2,
+ 0xa930, 0xa953,
+ 0xa95f, 0xa95f,
+}; /* CR_Rejang */
+
+/* 'Lycian': Script */
+static const OnigCodePoint CR_Lycian[] = {
+ 1,
+ 0x10280, 0x1029c,
+}; /* CR_Lycian */
+
+/* 'Carian': Script */
+static const OnigCodePoint CR_Carian[] = {
+ 1,
+ 0x102a0, 0x102d0,
+}; /* CR_Carian */
+
+/* 'Lydian': Script */
+static const OnigCodePoint CR_Lydian[] = {
+ 2,
+ 0x10920, 0x10939,
+ 0x1093f, 0x1093f,
+}; /* CR_Lydian */
+
+/* 'Cham': Script */
+static const OnigCodePoint CR_Cham[] = {
+ 4,
+ 0xaa00, 0xaa36,
+ 0xaa40, 0xaa4d,
+ 0xaa50, 0xaa59,
+ 0xaa5c, 0xaa5f,
+}; /* CR_Cham */
+
+/* 'Tai_Tham': Script */
+static const OnigCodePoint CR_Tai_Tham[] = {
+ 5,
+ 0x1a20, 0x1a5e,
+ 0x1a60, 0x1a7c,
+ 0x1a7f, 0x1a89,
+ 0x1a90, 0x1a99,
+ 0x1aa0, 0x1aad,
+}; /* CR_Tai_Tham */
+
+/* 'Tai_Viet': Script */
+static const OnigCodePoint CR_Tai_Viet[] = {
+ 2,
+ 0xaa80, 0xaac2,
+ 0xaadb, 0xaadf,
+}; /* CR_Tai_Viet */
+
+/* 'Avestan': Script */
+static const OnigCodePoint CR_Avestan[] = {
+ 2,
+ 0x10b00, 0x10b35,
+ 0x10b39, 0x10b3f,
+}; /* CR_Avestan */
+
+/* 'Egyptian_Hieroglyphs': Script */
+static const OnigCodePoint CR_Egyptian_Hieroglyphs[] = {
+ 1,
+ 0x13000, 0x1342e,
+}; /* CR_Egyptian_Hieroglyphs */
+
+/* 'Samaritan': Script */
+static const OnigCodePoint CR_Samaritan[] = {
+ 2,
+ 0x0800, 0x082d,
+ 0x0830, 0x083e,
+}; /* CR_Samaritan */
+
+/* 'Lisu': Script */
+static const OnigCodePoint CR_Lisu[] = {
+ 1,
+ 0xa4d0, 0xa4ff,
+}; /* CR_Lisu */
+
+/* 'Bamum': Script */
+static const OnigCodePoint CR_Bamum[] = {
+ 2,
+ 0xa6a0, 0xa6f7,
+ 0x16800, 0x16a38,
+}; /* CR_Bamum */
+
+/* 'Javanese': Script */
+static const OnigCodePoint CR_Javanese[] = {
+ 3,
+ 0xa980, 0xa9cd,
+ 0xa9cf, 0xa9d9,
+ 0xa9de, 0xa9df,
+}; /* CR_Javanese */
+
+/* 'Meetei_Mayek': Script */
+static const OnigCodePoint CR_Meetei_Mayek[] = {
+ 2,
+ 0xabc0, 0xabed,
+ 0xabf0, 0xabf9,
+}; /* CR_Meetei_Mayek */
+
+/* 'Imperial_Aramaic': Script */
+static const OnigCodePoint CR_Imperial_Aramaic[] = {
+ 2,
+ 0x10840, 0x10855,
+ 0x10857, 0x1085f,
+}; /* CR_Imperial_Aramaic */
+
+/* 'Old_South_Arabian': Script */
+static const OnigCodePoint CR_Old_South_Arabian[] = {
+ 1,
+ 0x10a60, 0x10a7f,
+}; /* CR_Old_South_Arabian */
+
+/* 'Inscriptional_Parthian': Script */
+static const OnigCodePoint CR_Inscriptional_Parthian[] = {
+ 2,
+ 0x10b40, 0x10b55,
+ 0x10b58, 0x10b5f,
+}; /* CR_Inscriptional_Parthian */
+
+/* 'Inscriptional_Pahlavi': Script */
+static const OnigCodePoint CR_Inscriptional_Pahlavi[] = {
+ 2,
+ 0x10b60, 0x10b72,
+ 0x10b78, 0x10b7f,
+}; /* CR_Inscriptional_Pahlavi */
+
+/* 'Old_Turkic': Script */
+static const OnigCodePoint CR_Old_Turkic[] = {
+ 1,
+ 0x10c00, 0x10c48,
+}; /* CR_Old_Turkic */
+
+/* 'Kaithi': Script */
+static const OnigCodePoint CR_Kaithi[] = {
+ 1,
+ 0x11080, 0x110c1,
+}; /* CR_Kaithi */
+
+/* 'Batak': Script */
+static const OnigCodePoint CR_Batak[] = {
+ 2,
+ 0x1bc0, 0x1bf3,
+ 0x1bfc, 0x1bff,
+}; /* CR_Batak */
+
+/* 'Brahmi': Script */
+static const OnigCodePoint CR_Brahmi[] = {
+ 2,
+ 0x11000, 0x1104d,
+ 0x11052, 0x1106f,
+}; /* CR_Brahmi */
+
+/* 'Mandaic': Script */
+static const OnigCodePoint CR_Mandaic[] = {
+ 2,
+ 0x0840, 0x085b,
+ 0x085e, 0x085e,
+}; /* CR_Mandaic */
+
+/* 'White_Space': Binary Property */
+static const OnigCodePoint CR_White_Space[] = {
+ 11,
+ 0x0009, 0x000d,
+ 0x0020, 0x0020,
+ 0x0085, 0x0085,
+ 0x00a0, 0x00a0,
+ 0x1680, 0x1680,
+ 0x180e, 0x180e,
+ 0x2000, 0x200a,
+ 0x2028, 0x2029,
+ 0x202f, 0x202f,
+ 0x205f, 0x205f,
+ 0x3000, 0x3000,
+}; /* CR_White_Space */
+
+/* 'Bidi_Control': Binary Property */
+static const OnigCodePoint CR_Bidi_Control[] = {
+ 2,
+ 0x200e, 0x200f,
+ 0x202a, 0x202e,
+}; /* CR_Bidi_Control */
+
+/* 'Join_Control': Binary Property */
+static const OnigCodePoint CR_Join_Control[] = {
+ 1,
+ 0x200c, 0x200d,
+}; /* CR_Join_Control */
+
+/* 'Dash': Binary Property */
+static const OnigCodePoint CR_Dash[] = {
+ 19,
+ 0x002d, 0x002d,
+ 0x058a, 0x058a,
+ 0x05be, 0x05be,
+ 0x1400, 0x1400,
+ 0x1806, 0x1806,
+ 0x2010, 0x2015,
+ 0x2053, 0x2053,
+ 0x207b, 0x207b,
+ 0x208b, 0x208b,
+ 0x2212, 0x2212,
+ 0x2e17, 0x2e17,
+ 0x2e1a, 0x2e1a,
+ 0x301c, 0x301c,
+ 0x3030, 0x3030,
+ 0x30a0, 0x30a0,
+ 0xfe31, 0xfe32,
+ 0xfe58, 0xfe58,
+ 0xfe63, 0xfe63,
+ 0xff0d, 0xff0d,
+}; /* CR_Dash */
+
+/* 'Hyphen': Binary Property */
+static const OnigCodePoint CR_Hyphen[] = {
+ 10,
+ 0x002d, 0x002d,
+ 0x00ad, 0x00ad,
+ 0x058a, 0x058a,
+ 0x1806, 0x1806,
+ 0x2010, 0x2011,
+ 0x2e17, 0x2e17,
+ 0x30fb, 0x30fb,
+ 0xfe63, 0xfe63,
+ 0xff0d, 0xff0d,
+ 0xff65, 0xff65,
+}; /* CR_Hyphen */
+
+/* 'Quotation_Mark': Binary Property */
+static const OnigCodePoint CR_Quotation_Mark[] = {
+ 12,
+ 0x0022, 0x0022,
+ 0x0027, 0x0027,
+ 0x00ab, 0x00ab,
+ 0x00bb, 0x00bb,
+ 0x2018, 0x201f,
+ 0x2039, 0x203a,
+ 0x300c, 0x300f,
+ 0x301d, 0x301f,
+ 0xfe41, 0xfe44,
+ 0xff02, 0xff02,
+ 0xff07, 0xff07,
+ 0xff62, 0xff63,
+}; /* CR_Quotation_Mark */
+
+/* 'Terminal_Punctuation': Binary Property */
+static const OnigCodePoint CR_Terminal_Punctuation[] = {
+ 67,
+ 0x0021, 0x0021,
+ 0x002c, 0x002c,
+ 0x002e, 0x002e,
+ 0x003a, 0x003b,
+ 0x003f, 0x003f,
+ 0x037e, 0x037e,
+ 0x0387, 0x0387,
+ 0x0589, 0x0589,
+ 0x05c3, 0x05c3,
+ 0x060c, 0x060c,
+ 0x061b, 0x061b,
+ 0x061f, 0x061f,
+ 0x06d4, 0x06d4,
+ 0x0700, 0x070a,
+ 0x070c, 0x070c,
+ 0x07f8, 0x07f9,
+ 0x0830, 0x083e,
+ 0x085e, 0x085e,
+ 0x0964, 0x0965,
+ 0x0e5a, 0x0e5b,
+ 0x0f08, 0x0f08,
+ 0x0f0d, 0x0f12,
+ 0x104a, 0x104b,
+ 0x1361, 0x1368,
+ 0x166d, 0x166e,
+ 0x16eb, 0x16ed,
+ 0x17d4, 0x17d6,
+ 0x17da, 0x17da,
+ 0x1802, 0x1805,
+ 0x1808, 0x1809,
+ 0x1944, 0x1945,
+ 0x1aa8, 0x1aab,
+ 0x1b5a, 0x1b5b,
+ 0x1b5d, 0x1b5f,
+ 0x1c3b, 0x1c3f,
+ 0x1c7e, 0x1c7f,
+ 0x203c, 0x203d,
+ 0x2047, 0x2049,
+ 0x2e2e, 0x2e2e,
+ 0x3001, 0x3002,
+ 0xa4fe, 0xa4ff,
+ 0xa60d, 0xa60f,
+ 0xa6f3, 0xa6f7,
+ 0xa876, 0xa877,
+ 0xa8ce, 0xa8cf,
+ 0xa92f, 0xa92f,
+ 0xa9c7, 0xa9c9,
+ 0xaa5d, 0xaa5f,
+ 0xaadf, 0xaadf,
+ 0xabeb, 0xabeb,
+ 0xfe50, 0xfe52,
+ 0xfe54, 0xfe57,
+ 0xff01, 0xff01,
+ 0xff0c, 0xff0c,
+ 0xff0e, 0xff0e,
+ 0xff1a, 0xff1b,
+ 0xff1f, 0xff1f,
+ 0xff61, 0xff61,
+ 0xff64, 0xff64,
+ 0x1039f, 0x1039f,
+ 0x103d0, 0x103d0,
+ 0x10857, 0x10857,
+ 0x1091f, 0x1091f,
+ 0x10b3a, 0x10b3f,
+ 0x11047, 0x1104d,
+ 0x110be, 0x110c1,
+ 0x12470, 0x12473,
+}; /* CR_Terminal_Punctuation */
+
+/* 'Other_Math': Binary Property */
+static const OnigCodePoint CR_Other_Math[] = {
+ 100,
+ 0x005e, 0x005e,
+ 0x03d0, 0x03d2,
+ 0x03d5, 0x03d5,
+ 0x03f0, 0x03f1,
+ 0x03f4, 0x03f5,
+ 0x2016, 0x2016,
+ 0x2032, 0x2034,
+ 0x2040, 0x2040,
+ 0x2061, 0x2064,
+ 0x207d, 0x207e,
+ 0x208d, 0x208e,
+ 0x20d0, 0x20dc,
+ 0x20e1, 0x20e1,
+ 0x20e5, 0x20e6,
+ 0x20eb, 0x20ef,
+ 0x2102, 0x2102,
+ 0x2107, 0x2107,
+ 0x210a, 0x2113,
+ 0x2115, 0x2115,
+ 0x2119, 0x211d,
+ 0x2124, 0x2124,
+ 0x2128, 0x2129,
+ 0x212c, 0x212d,
+ 0x212f, 0x2131,
+ 0x2133, 0x2138,
+ 0x213c, 0x213f,
+ 0x2145, 0x2149,
+ 0x2195, 0x2199,
+ 0x219c, 0x219f,
+ 0x21a1, 0x21a2,
+ 0x21a4, 0x21a5,
+ 0x21a7, 0x21a7,
+ 0x21a9, 0x21ad,
+ 0x21b0, 0x21b1,
+ 0x21b6, 0x21b7,
+ 0x21bc, 0x21cd,
+ 0x21d0, 0x21d1,
+ 0x21d3, 0x21d3,
+ 0x21d5, 0x21db,
+ 0x21dd, 0x21dd,
+ 0x21e4, 0x21e5,
+ 0x23b4, 0x23b5,
+ 0x23b7, 0x23b7,
+ 0x23d0, 0x23d0,
+ 0x23e2, 0x23e2,
+ 0x25a0, 0x25a1,
+ 0x25ae, 0x25b6,
+ 0x25bc, 0x25c0,
+ 0x25c6, 0x25c7,
+ 0x25ca, 0x25cb,
+ 0x25cf, 0x25d3,
+ 0x25e2, 0x25e2,
+ 0x25e4, 0x25e4,
+ 0x25e7, 0x25ec,
+ 0x2605, 0x2606,
+ 0x2640, 0x2640,
+ 0x2642, 0x2642,
+ 0x2660, 0x2663,
+ 0x266d, 0x266e,
+ 0x27c5, 0x27c6,
+ 0x27e6, 0x27ef,
+ 0x2983, 0x2998,
+ 0x29d8, 0x29db,
+ 0x29fc, 0x29fd,
+ 0xfe61, 0xfe61,
+ 0xfe63, 0xfe63,
+ 0xfe68, 0xfe68,
+ 0xff3c, 0xff3c,
+ 0xff3e, 0xff3e,
+ 0x1d400, 0x1d454,
+ 0x1d456, 0x1d49c,
+ 0x1d49e, 0x1d49f,
+ 0x1d4a2, 0x1d4a2,
+ 0x1d4a5, 0x1d4a6,
+ 0x1d4a9, 0x1d4ac,
+ 0x1d4ae, 0x1d4b9,
+ 0x1d4bb, 0x1d4bb,
+ 0x1d4bd, 0x1d4c3,
+ 0x1d4c5, 0x1d505,
+ 0x1d507, 0x1d50a,
+ 0x1d50d, 0x1d514,
+ 0x1d516, 0x1d51c,
+ 0x1d51e, 0x1d539,
+ 0x1d53b, 0x1d53e,
+ 0x1d540, 0x1d544,
+ 0x1d546, 0x1d546,
+ 0x1d54a, 0x1d550,
+ 0x1d552, 0x1d6a5,
+ 0x1d6a8, 0x1d6c0,
+ 0x1d6c2, 0x1d6da,
+ 0x1d6dc, 0x1d6fa,
+ 0x1d6fc, 0x1d714,
+ 0x1d716, 0x1d734,
+ 0x1d736, 0x1d74e,
+ 0x1d750, 0x1d76e,
+ 0x1d770, 0x1d788,
+ 0x1d78a, 0x1d7a8,
+ 0x1d7aa, 0x1d7c2,
+ 0x1d7c4, 0x1d7cb,
+ 0x1d7ce, 0x1d7ff,
+}; /* CR_Other_Math */
+
+/* 'Hex_Digit': Binary Property */
+static const OnigCodePoint CR_Hex_Digit[] = {
+ 6,
+ 0x0030, 0x0039,
+ 0x0041, 0x0046,
+ 0x0061, 0x0066,
+ 0xff10, 0xff19,
+ 0xff21, 0xff26,
+ 0xff41, 0xff46,
+}; /* CR_Hex_Digit */
+
+/* 'ASCII_Hex_Digit': Binary Property */
+static const OnigCodePoint CR_ASCII_Hex_Digit[] = {
+ 3,
+ 0x0030, 0x0039,
+ 0x0041, 0x0046,
+ 0x0061, 0x0066,
+}; /* CR_ASCII_Hex_Digit */
+
+/* 'Other_Alphabetic': Binary Property */
+static const OnigCodePoint CR_Other_Alphabetic[] = {
+ 145,
+ 0x0345, 0x0345,
+ 0x05b0, 0x05bd,
+ 0x05bf, 0x05bf,
+ 0x05c1, 0x05c2,
+ 0x05c4, 0x05c5,
+ 0x05c7, 0x05c7,
+ 0x0610, 0x061a,
+ 0x064b, 0x0657,
+ 0x0659, 0x065f,
+ 0x0670, 0x0670,
+ 0x06d6, 0x06dc,
+ 0x06e1, 0x06e4,
+ 0x06e7, 0x06e8,
+ 0x06ed, 0x06ed,
+ 0x0711, 0x0711,
+ 0x0730, 0x073f,
+ 0x07a6, 0x07b0,
+ 0x0816, 0x0817,
+ 0x081b, 0x0823,
+ 0x0825, 0x0827,
+ 0x0829, 0x082c,
+ 0x0900, 0x0903,
+ 0x093a, 0x093b,
+ 0x093e, 0x094c,
+ 0x094e, 0x094f,
+ 0x0955, 0x0957,
+ 0x0962, 0x0963,
+ 0x0981, 0x0983,
+ 0x09be, 0x09c4,
+ 0x09c7, 0x09c8,
+ 0x09cb, 0x09cc,
+ 0x09d7, 0x09d7,
+ 0x09e2, 0x09e3,
+ 0x0a01, 0x0a03,
+ 0x0a3e, 0x0a42,
+ 0x0a47, 0x0a48,
+ 0x0a4b, 0x0a4c,
+ 0x0a51, 0x0a51,
+ 0x0a70, 0x0a71,
+ 0x0a75, 0x0a75,
+ 0x0a81, 0x0a83,
+ 0x0abe, 0x0ac5,
+ 0x0ac7, 0x0ac9,
+ 0x0acb, 0x0acc,
+ 0x0ae2, 0x0ae3,
+ 0x0b01, 0x0b03,
+ 0x0b3e, 0x0b44,
+ 0x0b47, 0x0b48,
+ 0x0b4b, 0x0b4c,
+ 0x0b56, 0x0b57,
+ 0x0b62, 0x0b63,
+ 0x0b82, 0x0b82,
+ 0x0bbe, 0x0bc2,
+ 0x0bc6, 0x0bc8,
+ 0x0bca, 0x0bcc,
+ 0x0bd7, 0x0bd7,
+ 0x0c01, 0x0c03,
+ 0x0c3e, 0x0c44,
+ 0x0c46, 0x0c48,
+ 0x0c4a, 0x0c4c,
+ 0x0c55, 0x0c56,
+ 0x0c62, 0x0c63,
+ 0x0c82, 0x0c83,
+ 0x0cbe, 0x0cc4,
+ 0x0cc6, 0x0cc8,
+ 0x0cca, 0x0ccc,
+ 0x0cd5, 0x0cd6,
+ 0x0ce2, 0x0ce3,
+ 0x0d02, 0x0d03,
+ 0x0d3e, 0x0d44,
+ 0x0d46, 0x0d48,
+ 0x0d4a, 0x0d4c,
+ 0x0d57, 0x0d57,
+ 0x0d62, 0x0d63,
+ 0x0d82, 0x0d83,
+ 0x0dcf, 0x0dd4,
+ 0x0dd6, 0x0dd6,
+ 0x0dd8, 0x0ddf,
+ 0x0df2, 0x0df3,
+ 0x0e31, 0x0e31,
+ 0x0e34, 0x0e3a,
+ 0x0e4d, 0x0e4d,
+ 0x0eb1, 0x0eb1,
+ 0x0eb4, 0x0eb9,
+ 0x0ebb, 0x0ebc,
+ 0x0ecd, 0x0ecd,
+ 0x0f71, 0x0f81,
+ 0x0f8d, 0x0f97,
+ 0x0f99, 0x0fbc,
+ 0x102b, 0x1036,
+ 0x1038, 0x1038,
+ 0x103b, 0x103e,
+ 0x1056, 0x1059,
+ 0x105e, 0x1060,
+ 0x1062, 0x1062,
+ 0x1067, 0x1068,
+ 0x1071, 0x1074,
+ 0x1082, 0x1086,
+ 0x109c, 0x109d,
+ 0x135f, 0x135f,
+ 0x1712, 0x1713,
+ 0x1732, 0x1733,
+ 0x1752, 0x1753,
+ 0x1772, 0x1773,
+ 0x17b6, 0x17c8,
+ 0x18a9, 0x18a9,
+ 0x1920, 0x192b,
+ 0x1930, 0x1938,
+ 0x19b0, 0x19c0,
+ 0x19c8, 0x19c9,
+ 0x1a17, 0x1a1b,
+ 0x1a55, 0x1a5e,
+ 0x1a61, 0x1a74,
+ 0x1b00, 0x1b04,
+ 0x1b35, 0x1b43,
+ 0x1b80, 0x1b82,
+ 0x1ba1, 0x1ba9,
+ 0x1be7, 0x1bf1,
+ 0x1c24, 0x1c35,
+ 0x1cf2, 0x1cf2,
+ 0x24b6, 0x24e9,
+ 0x2de0, 0x2dff,
+ 0xa823, 0xa827,
+ 0xa880, 0xa881,
+ 0xa8b4, 0xa8c3,
+ 0xa926, 0xa92a,
+ 0xa947, 0xa952,
+ 0xa980, 0xa983,
+ 0xa9b4, 0xa9bf,
+ 0xaa29, 0xaa36,
+ 0xaa43, 0xaa43,
+ 0xaa4c, 0xaa4d,
+ 0xaab0, 0xaab0,
+ 0xaab2, 0xaab4,
+ 0xaab7, 0xaab8,
+ 0xaabe, 0xaabe,
+ 0xabe3, 0xabea,
+ 0xfb1e, 0xfb1e,
+ 0x10a01, 0x10a03,
+ 0x10a05, 0x10a06,
+ 0x10a0c, 0x10a0f,
+ 0x11000, 0x11002,
+ 0x11038, 0x11045,
+ 0x11082, 0x11082,
+ 0x110b0, 0x110b8,
+}; /* CR_Other_Alphabetic */
+
+/* 'Ideographic': Binary Property */
+static const OnigCodePoint CR_Ideographic[] = {
+ 12,
+ 0x3006, 0x3007,
+ 0x3021, 0x3029,
+ 0x3038, 0x303a,
+ 0x3400, 0x4db5,
+ 0x4e00, 0x9fcb,
+ 0xf900, 0xfa2d,
+ 0xfa30, 0xfa6d,
+ 0xfa70, 0xfad9,
+ 0x20000, 0x2a6d6,
+ 0x2a700, 0x2b734,
+ 0x2b740, 0x2b81d,
+ 0x2f800, 0x2fa1d,
+}; /* CR_Ideographic */
+
+/* 'Diacritic': Binary Property */
+static const OnigCodePoint CR_Diacritic[] = {
+ 117,
+ 0x005e, 0x005e,
+ 0x0060, 0x0060,
+ 0x00a8, 0x00a8,
+ 0x00af, 0x00af,
+ 0x00b4, 0x00b4,
+ 0x00b7, 0x00b8,
+ 0x02b0, 0x034e,
+ 0x0350, 0x0357,
+ 0x035d, 0x0362,
+ 0x0374, 0x0375,
+ 0x037a, 0x037a,
+ 0x0384, 0x0385,
+ 0x0483, 0x0487,
+ 0x0559, 0x0559,
+ 0x0591, 0x05a1,
+ 0x05a3, 0x05bd,
+ 0x05bf, 0x05bf,
+ 0x05c1, 0x05c2,
+ 0x05c4, 0x05c4,
+ 0x064b, 0x0652,
+ 0x0657, 0x0658,
+ 0x06df, 0x06e0,
+ 0x06e5, 0x06e6,
+ 0x06ea, 0x06ec,
+ 0x0730, 0x074a,
+ 0x07a6, 0x07b0,
+ 0x07eb, 0x07f5,
+ 0x0818, 0x0819,
+ 0x093c, 0x093c,
+ 0x094d, 0x094d,
+ 0x0951, 0x0954,
+ 0x0971, 0x0971,
+ 0x09bc, 0x09bc,
+ 0x09cd, 0x09cd,
+ 0x0a3c, 0x0a3c,
+ 0x0a4d, 0x0a4d,
+ 0x0abc, 0x0abc,
+ 0x0acd, 0x0acd,
+ 0x0b3c, 0x0b3c,
+ 0x0b4d, 0x0b4d,
+ 0x0bcd, 0x0bcd,
+ 0x0c4d, 0x0c4d,
+ 0x0cbc, 0x0cbc,
+ 0x0ccd, 0x0ccd,
+ 0x0d4d, 0x0d4d,
+ 0x0dca, 0x0dca,
+ 0x0e47, 0x0e4c,
+ 0x0e4e, 0x0e4e,
+ 0x0ec8, 0x0ecc,
+ 0x0f18, 0x0f19,
+ 0x0f35, 0x0f35,
+ 0x0f37, 0x0f37,
+ 0x0f39, 0x0f39,
+ 0x0f3e, 0x0f3f,
+ 0x0f82, 0x0f84,
+ 0x0f86, 0x0f87,
+ 0x0fc6, 0x0fc6,
+ 0x1037, 0x1037,
+ 0x1039, 0x103a,
+ 0x1087, 0x108d,
+ 0x108f, 0x108f,
+ 0x109a, 0x109b,
+ 0x17c9, 0x17d3,
+ 0x17dd, 0x17dd,
+ 0x1939, 0x193b,
+ 0x1a75, 0x1a7c,
+ 0x1a7f, 0x1a7f,
+ 0x1b34, 0x1b34,
+ 0x1b44, 0x1b44,
+ 0x1b6b, 0x1b73,
+ 0x1baa, 0x1baa,
+ 0x1c36, 0x1c37,
+ 0x1c78, 0x1c7d,
+ 0x1cd0, 0x1ce8,
+ 0x1ced, 0x1ced,
+ 0x1d2c, 0x1d6a,
+ 0x1dc4, 0x1dcf,
+ 0x1dfd, 0x1dff,
+ 0x1fbd, 0x1fbd,
+ 0x1fbf, 0x1fc1,
+ 0x1fcd, 0x1fcf,
+ 0x1fdd, 0x1fdf,
+ 0x1fed, 0x1fef,
+ 0x1ffd, 0x1ffe,
+ 0x2cef, 0x2cf1,
+ 0x2e2f, 0x2e2f,
+ 0x302a, 0x302f,
+ 0x3099, 0x309c,
+ 0x30fc, 0x30fc,
+ 0xa66f, 0xa66f,
+ 0xa67c, 0xa67d,
+ 0xa67f, 0xa67f,
+ 0xa6f0, 0xa6f1,
+ 0xa717, 0xa721,
+ 0xa788, 0xa788,
+ 0xa8c4, 0xa8c4,
+ 0xa8e0, 0xa8f1,
+ 0xa92b, 0xa92e,
+ 0xa953, 0xa953,
+ 0xa9b3, 0xa9b3,
+ 0xa9c0, 0xa9c0,
+ 0xaa7b, 0xaa7b,
+ 0xaabf, 0xaac2,
+ 0xabec, 0xabed,
+ 0xfb1e, 0xfb1e,
+ 0xfe20, 0xfe26,
+ 0xff3e, 0xff3e,
+ 0xff40, 0xff40,
+ 0xff70, 0xff70,
+ 0xff9e, 0xff9f,
+ 0xffe3, 0xffe3,
+ 0x110b9, 0x110ba,
+ 0x1d167, 0x1d169,
+ 0x1d16d, 0x1d172,
+ 0x1d17b, 0x1d182,
+ 0x1d185, 0x1d18b,
+ 0x1d1aa, 0x1d1ad,
+}; /* CR_Diacritic */
+
+/* 'Extender': Binary Property */
+static const OnigCodePoint CR_Extender[] = {
+ 20,
+ 0x00b7, 0x00b7,
+ 0x02d0, 0x02d1,
+ 0x0640, 0x0640,
+ 0x07fa, 0x07fa,
+ 0x0e46, 0x0e46,
+ 0x0ec6, 0x0ec6,
+ 0x1843, 0x1843,
+ 0x1aa7, 0x1aa7,
+ 0x1c36, 0x1c36,
+ 0x1c7b, 0x1c7b,
+ 0x3005, 0x3005,
+ 0x3031, 0x3035,
+ 0x309d, 0x309e,
+ 0x30fc, 0x30fe,
+ 0xa015, 0xa015,
+ 0xa60c, 0xa60c,
+ 0xa9cf, 0xa9cf,
+ 0xaa70, 0xaa70,
+ 0xaadd, 0xaadd,
+ 0xff70, 0xff70,
+}; /* CR_Extender */
+
+/* 'Other_Lowercase': Binary Property */
+static const OnigCodePoint CR_Other_Lowercase[] = {
+ 13,
+ 0x02b0, 0x02b8,
+ 0x02c0, 0x02c1,
+ 0x02e0, 0x02e4,
+ 0x0345, 0x0345,
+ 0x037a, 0x037a,
+ 0x1d2c, 0x1d61,
+ 0x1d78, 0x1d78,
+ 0x1d9b, 0x1dbf,
+ 0x2090, 0x2094,
+ 0x2170, 0x217f,
+ 0x24d0, 0x24e9,
+ 0x2c7d, 0x2c7d,
+ 0xa770, 0xa770,
+}; /* CR_Other_Lowercase */
+
+/* 'Other_Uppercase': Binary Property */
+static const OnigCodePoint CR_Other_Uppercase[] = {
+ 2,
+ 0x2160, 0x216f,
+ 0x24b6, 0x24cf,
+}; /* CR_Other_Uppercase */
+
+/* 'Noncharacter_Code_Point': Binary Property */
+static const OnigCodePoint CR_Noncharacter_Code_Point[] = {
+ 18,
+ 0xfdd0, 0xfdef,
+ 0xfffe, 0xffff,
+ 0x1fffe, 0x1ffff,
+ 0x2fffe, 0x2ffff,
+ 0x3fffe, 0x3ffff,
+ 0x4fffe, 0x4ffff,
+ 0x5fffe, 0x5ffff,
+ 0x6fffe, 0x6ffff,
+ 0x7fffe, 0x7ffff,
+ 0x8fffe, 0x8ffff,
+ 0x9fffe, 0x9ffff,
+ 0xafffe, 0xaffff,
+ 0xbfffe, 0xbffff,
+ 0xcfffe, 0xcffff,
+ 0xdfffe, 0xdffff,
+ 0xefffe, 0xeffff,
+ 0xffffe, 0xfffff,
+ 0x10fffe, 0x10ffff,
+}; /* CR_Noncharacter_Code_Point */
+
+/* 'Other_Grapheme_Extend': Binary Property */
+static const OnigCodePoint CR_Other_Grapheme_Extend[] = {
+ 16,
+ 0x09be, 0x09be,
+ 0x09d7, 0x09d7,
+ 0x0b3e, 0x0b3e,
+ 0x0b57, 0x0b57,
+ 0x0bbe, 0x0bbe,
+ 0x0bd7, 0x0bd7,
+ 0x0cc2, 0x0cc2,
+ 0x0cd5, 0x0cd6,
+ 0x0d3e, 0x0d3e,
+ 0x0d57, 0x0d57,
+ 0x0dcf, 0x0dcf,
+ 0x0ddf, 0x0ddf,
+ 0x200c, 0x200d,
+ 0xff9e, 0xff9f,
+ 0x1d165, 0x1d165,
+ 0x1d16e, 0x1d172,
+}; /* CR_Other_Grapheme_Extend */
+
+/* 'IDS_Binary_Operator': Binary Property */
+static const OnigCodePoint CR_IDS_Binary_Operator[] = {
+ 2,
+ 0x2ff0, 0x2ff1,
+ 0x2ff4, 0x2ffb,
+}; /* CR_IDS_Binary_Operator */
+
+/* 'IDS_Trinary_Operator': Binary Property */
+static const OnigCodePoint CR_IDS_Trinary_Operator[] = {
+ 1,
+ 0x2ff2, 0x2ff3,
+}; /* CR_IDS_Trinary_Operator */
+
+/* 'Radical': Binary Property */
+static const OnigCodePoint CR_Radical[] = {
+ 3,
+ 0x2e80, 0x2e99,
+ 0x2e9b, 0x2ef3,
+ 0x2f00, 0x2fd5,
+}; /* CR_Radical */
+
+/* 'Unified_Ideograph': Binary Property */
+static const OnigCodePoint CR_Unified_Ideograph[] = {
+ 12,
+ 0x3400, 0x4db5,
+ 0x4e00, 0x9fcb,
+ 0xfa0e, 0xfa0f,
+ 0xfa11, 0xfa11,
+ 0xfa13, 0xfa14,
+ 0xfa1f, 0xfa1f,
+ 0xfa21, 0xfa21,
+ 0xfa23, 0xfa24,
+ 0xfa27, 0xfa29,
+ 0x20000, 0x2a6d6,
+ 0x2a700, 0x2b734,
+ 0x2b740, 0x2b81d,
+}; /* CR_Unified_Ideograph */
+
+/* 'Other_Default_Ignorable_Code_Point': Binary Property */
+static const OnigCodePoint CR_Other_Default_Ignorable_Code_Point[] = {
+ 10,
+ 0x034f, 0x034f,
+ 0x115f, 0x1160,
+ 0x2065, 0x2069,
+ 0x3164, 0x3164,
+ 0xffa0, 0xffa0,
+ 0xfff0, 0xfff8,
+ 0xe0000, 0xe0000,
+ 0xe0002, 0xe001f,
+ 0xe0080, 0xe00ff,
+ 0xe01f0, 0xe0fff,
+}; /* CR_Other_Default_Ignorable_Code_Point */
+
+/* 'Deprecated': Binary Property */
+static const OnigCodePoint CR_Deprecated[] = {
+ 9,
+ 0x0149, 0x0149,
+ 0x0673, 0x0673,
+ 0x0f77, 0x0f77,
+ 0x0f79, 0x0f79,
+ 0x17a3, 0x17a4,
+ 0x206a, 0x206f,
+ 0x2329, 0x232a,
+ 0xe0001, 0xe0001,
+ 0xe0020, 0xe007f,
+}; /* CR_Deprecated */
+
+/* 'Soft_Dotted': Binary Property */
+static const OnigCodePoint CR_Soft_Dotted[] = {
+ 31,
+ 0x0069, 0x006a,
+ 0x012f, 0x012f,
+ 0x0249, 0x0249,
+ 0x0268, 0x0268,
+ 0x029d, 0x029d,
+ 0x02b2, 0x02b2,
+ 0x03f3, 0x03f3,
+ 0x0456, 0x0456,
+ 0x0458, 0x0458,
+ 0x1d62, 0x1d62,
+ 0x1d96, 0x1d96,
+ 0x1da4, 0x1da4,
+ 0x1da8, 0x1da8,
+ 0x1e2d, 0x1e2d,
+ 0x1ecb, 0x1ecb,
+ 0x2071, 0x2071,
+ 0x2148, 0x2149,
+ 0x2c7c, 0x2c7c,
+ 0x1d422, 0x1d423,
+ 0x1d456, 0x1d457,
+ 0x1d48a, 0x1d48b,
+ 0x1d4be, 0x1d4bf,
+ 0x1d4f2, 0x1d4f3,
+ 0x1d526, 0x1d527,
+ 0x1d55a, 0x1d55b,
+ 0x1d58e, 0x1d58f,
+ 0x1d5c2, 0x1d5c3,
+ 0x1d5f6, 0x1d5f7,
+ 0x1d62a, 0x1d62b,
+ 0x1d65e, 0x1d65f,
+ 0x1d692, 0x1d693,
+}; /* CR_Soft_Dotted */
+
+/* 'Logical_Order_Exception': Binary Property */
+static const OnigCodePoint CR_Logical_Order_Exception[] = {
+ 5,
+ 0x0e40, 0x0e44,
+ 0x0ec0, 0x0ec4,
+ 0xaab5, 0xaab6,
+ 0xaab9, 0xaab9,
+ 0xaabb, 0xaabc,
+}; /* CR_Logical_Order_Exception */
+
+/* 'Other_ID_Start': Binary Property */
+static const OnigCodePoint CR_Other_ID_Start[] = {
+ 3,
+ 0x2118, 0x2118,
+ 0x212e, 0x212e,
+ 0x309b, 0x309c,
+}; /* CR_Other_ID_Start */
+
+/* 'Other_ID_Continue': Binary Property */
+static const OnigCodePoint CR_Other_ID_Continue[] = {
+ 4,
+ 0x00b7, 0x00b7,
+ 0x0387, 0x0387,
+ 0x1369, 0x1371,
+ 0x19da, 0x19da,
+}; /* CR_Other_ID_Continue */
+
+/* 'STerm': Binary Property */
+static const OnigCodePoint CR_STerm[] = {
+ 47,
+ 0x0021, 0x0021,
+ 0x002e, 0x002e,
+ 0x003f, 0x003f,
+ 0x055c, 0x055c,
+ 0x055e, 0x055e,
+ 0x0589, 0x0589,
+ 0x061f, 0x061f,
+ 0x06d4, 0x06d4,
+ 0x0700, 0x0702,
+ 0x07f9, 0x07f9,
+ 0x0964, 0x0965,
+ 0x104a, 0x104b,
+ 0x1362, 0x1362,
+ 0x1367, 0x1368,
+ 0x166e, 0x166e,
+ 0x1735, 0x1736,
+ 0x1803, 0x1803,
+ 0x1809, 0x1809,
+ 0x1944, 0x1945,
+ 0x1aa8, 0x1aab,
+ 0x1b5a, 0x1b5b,
+ 0x1b5e, 0x1b5f,
+ 0x1c3b, 0x1c3c,
+ 0x1c7e, 0x1c7f,
+ 0x203c, 0x203d,
+ 0x2047, 0x2049,
+ 0x2e2e, 0x2e2e,
+ 0x3002, 0x3002,
+ 0xa4ff, 0xa4ff,
+ 0xa60e, 0xa60f,
+ 0xa6f3, 0xa6f3,
+ 0xa6f7, 0xa6f7,
+ 0xa876, 0xa877,
+ 0xa8ce, 0xa8cf,
+ 0xa92f, 0xa92f,
+ 0xa9c8, 0xa9c9,
+ 0xaa5d, 0xaa5f,
+ 0xabeb, 0xabeb,
+ 0xfe52, 0xfe52,
+ 0xfe56, 0xfe57,
+ 0xff01, 0xff01,
+ 0xff0e, 0xff0e,
+ 0xff1f, 0xff1f,
+ 0xff61, 0xff61,
+ 0x10a56, 0x10a57,
+ 0x11047, 0x11048,
+ 0x110be, 0x110c1,
+}; /* CR_STerm */
+
+/* 'Variation_Selector': Binary Property */
+static const OnigCodePoint CR_Variation_Selector[] = {
+ 3,
+ 0x180b, 0x180d,
+ 0xfe00, 0xfe0f,
+ 0xe0100, 0xe01ef,
+}; /* CR_Variation_Selector */
+
+/* 'Pattern_White_Space': Binary Property */
+static const OnigCodePoint CR_Pattern_White_Space[] = {
+ 5,
+ 0x0009, 0x000d,
+ 0x0020, 0x0020,
+ 0x0085, 0x0085,
+ 0x200e, 0x200f,
+ 0x2028, 0x2029,
+}; /* CR_Pattern_White_Space */
+
+/* 'Pattern_Syntax': Binary Property */
+static const OnigCodePoint CR_Pattern_Syntax[] = {
+ 28,
+ 0x0021, 0x002f,
+ 0x003a, 0x0040,
+ 0x005b, 0x005e,
+ 0x0060, 0x0060,
+ 0x007b, 0x007e,
+ 0x00a1, 0x00a7,
+ 0x00a9, 0x00a9,
+ 0x00ab, 0x00ac,
+ 0x00ae, 0x00ae,
+ 0x00b0, 0x00b1,
+ 0x00b6, 0x00b6,
+ 0x00bb, 0x00bb,
+ 0x00bf, 0x00bf,
+ 0x00d7, 0x00d7,
+ 0x00f7, 0x00f7,
+ 0x2010, 0x2027,
+ 0x2030, 0x203e,
+ 0x2041, 0x2053,
+ 0x2055, 0x205e,
+ 0x2190, 0x245f,
+ 0x2500, 0x2775,
+ 0x2794, 0x2bff,
+ 0x2e00, 0x2e7f,
+ 0x3001, 0x3003,
+ 0x3008, 0x3020,
+ 0x3030, 0x3030,
+ 0xfd3e, 0xfd3f,
+ 0xfe45, 0xfe46,
+}; /* CR_Pattern_Syntax */
+
+/* 'Unknown': Script */
+static const OnigCodePoint CR_Unknown[] = {
+ 499,
+ 0x0378, 0x0379,
+ 0x037f, 0x0383,
+ 0x038b, 0x038b,
+ 0x038d, 0x038d,
+ 0x03a2, 0x03a2,
+ 0x0528, 0x0530,
+ 0x0557, 0x0558,
+ 0x0560, 0x0560,
+ 0x0588, 0x0588,
+ 0x058b, 0x0590,
+ 0x05c8, 0x05cf,
+ 0x05eb, 0x05ef,
+ 0x05f5, 0x05ff,
+ 0x0604, 0x0605,
+ 0x061c, 0x061d,
+ 0x070e, 0x070e,
+ 0x074b, 0x074c,
+ 0x07b2, 0x07bf,
+ 0x07fb, 0x07ff,
+ 0x082e, 0x082f,
+ 0x083f, 0x083f,
+ 0x085c, 0x085d,
+ 0x085f, 0x08ff,
+ 0x0978, 0x0978,
+ 0x0980, 0x0980,
+ 0x0984, 0x0984,
+ 0x098d, 0x098e,
+ 0x0991, 0x0992,
+ 0x09a9, 0x09a9,
+ 0x09b1, 0x09b1,
+ 0x09b3, 0x09b5,
+ 0x09ba, 0x09bb,
+ 0x09c5, 0x09c6,
+ 0x09c9, 0x09ca,
+ 0x09cf, 0x09d6,
+ 0x09d8, 0x09db,
+ 0x09de, 0x09de,
+ 0x09e4, 0x09e5,
+ 0x09fc, 0x0a00,
+ 0x0a04, 0x0a04,
+ 0x0a0b, 0x0a0e,
+ 0x0a11, 0x0a12,
+ 0x0a29, 0x0a29,
+ 0x0a31, 0x0a31,
+ 0x0a34, 0x0a34,
+ 0x0a37, 0x0a37,
+ 0x0a3a, 0x0a3b,
+ 0x0a3d, 0x0a3d,
+ 0x0a43, 0x0a46,
+ 0x0a49, 0x0a4a,
+ 0x0a4e, 0x0a50,
+ 0x0a52, 0x0a58,
+ 0x0a5d, 0x0a5d,
+ 0x0a5f, 0x0a65,
+ 0x0a76, 0x0a80,
+ 0x0a84, 0x0a84,
+ 0x0a8e, 0x0a8e,
+ 0x0a92, 0x0a92,
+ 0x0aa9, 0x0aa9,
+ 0x0ab1, 0x0ab1,
+ 0x0ab4, 0x0ab4,
+ 0x0aba, 0x0abb,
+ 0x0ac6, 0x0ac6,
+ 0x0aca, 0x0aca,
+ 0x0ace, 0x0acf,
+ 0x0ad1, 0x0adf,
+ 0x0ae4, 0x0ae5,
+ 0x0af0, 0x0af0,
+ 0x0af2, 0x0b00,
+ 0x0b04, 0x0b04,
+ 0x0b0d, 0x0b0e,
+ 0x0b11, 0x0b12,
+ 0x0b29, 0x0b29,
+ 0x0b31, 0x0b31,
+ 0x0b34, 0x0b34,
+ 0x0b3a, 0x0b3b,
+ 0x0b45, 0x0b46,
+ 0x0b49, 0x0b4a,
+ 0x0b4e, 0x0b55,
+ 0x0b58, 0x0b5b,
+ 0x0b5e, 0x0b5e,
+ 0x0b64, 0x0b65,
+ 0x0b78, 0x0b81,
+ 0x0b84, 0x0b84,
+ 0x0b8b, 0x0b8d,
+ 0x0b91, 0x0b91,
+ 0x0b96, 0x0b98,
+ 0x0b9b, 0x0b9b,
+ 0x0b9d, 0x0b9d,
+ 0x0ba0, 0x0ba2,
+ 0x0ba5, 0x0ba7,
+ 0x0bab, 0x0bad,
+ 0x0bba, 0x0bbd,
+ 0x0bc3, 0x0bc5,
+ 0x0bc9, 0x0bc9,
+ 0x0bce, 0x0bcf,
+ 0x0bd1, 0x0bd6,
+ 0x0bd8, 0x0be5,
+ 0x0bfb, 0x0c00,
+ 0x0c04, 0x0c04,
+ 0x0c0d, 0x0c0d,
+ 0x0c11, 0x0c11,
+ 0x0c29, 0x0c29,
+ 0x0c34, 0x0c34,
+ 0x0c3a, 0x0c3c,
+ 0x0c45, 0x0c45,
+ 0x0c49, 0x0c49,
+ 0x0c4e, 0x0c54,
+ 0x0c57, 0x0c57,
+ 0x0c5a, 0x0c5f,
+ 0x0c64, 0x0c65,
+ 0x0c70, 0x0c77,
+ 0x0c80, 0x0c81,
+ 0x0c84, 0x0c84,
+ 0x0c8d, 0x0c8d,
+ 0x0c91, 0x0c91,
+ 0x0ca9, 0x0ca9,
+ 0x0cb4, 0x0cb4,
+ 0x0cba, 0x0cbb,
+ 0x0cc5, 0x0cc5,
+ 0x0cc9, 0x0cc9,
+ 0x0cce, 0x0cd4,
+ 0x0cd7, 0x0cdd,
+ 0x0cdf, 0x0cdf,
+ 0x0ce4, 0x0ce5,
+ 0x0cf0, 0x0cf0,
+ 0x0cf3, 0x0d01,
+ 0x0d04, 0x0d04,
+ 0x0d0d, 0x0d0d,
+ 0x0d11, 0x0d11,
+ 0x0d3b, 0x0d3c,
+ 0x0d45, 0x0d45,
+ 0x0d49, 0x0d49,
+ 0x0d4f, 0x0d56,
+ 0x0d58, 0x0d5f,
+ 0x0d64, 0x0d65,
+ 0x0d76, 0x0d78,
+ 0x0d80, 0x0d81,
+ 0x0d84, 0x0d84,
+ 0x0d97, 0x0d99,
+ 0x0db2, 0x0db2,
+ 0x0dbc, 0x0dbc,
+ 0x0dbe, 0x0dbf,
+ 0x0dc7, 0x0dc9,
+ 0x0dcb, 0x0dce,
+ 0x0dd5, 0x0dd5,
+ 0x0dd7, 0x0dd7,
+ 0x0de0, 0x0df1,
+ 0x0df5, 0x0e00,
+ 0x0e3b, 0x0e3e,
+ 0x0e5c, 0x0e80,
+ 0x0e83, 0x0e83,
+ 0x0e85, 0x0e86,
+ 0x0e89, 0x0e89,
+ 0x0e8b, 0x0e8c,
+ 0x0e8e, 0x0e93,
+ 0x0e98, 0x0e98,
+ 0x0ea0, 0x0ea0,
+ 0x0ea4, 0x0ea4,
+ 0x0ea6, 0x0ea6,
+ 0x0ea8, 0x0ea9,
+ 0x0eac, 0x0eac,
+ 0x0eba, 0x0eba,
+ 0x0ebe, 0x0ebf,
+ 0x0ec5, 0x0ec5,
+ 0x0ec7, 0x0ec7,
+ 0x0ece, 0x0ecf,
+ 0x0eda, 0x0edb,
+ 0x0ede, 0x0eff,
+ 0x0f48, 0x0f48,
+ 0x0f6d, 0x0f70,
+ 0x0f98, 0x0f98,
+ 0x0fbd, 0x0fbd,
+ 0x0fcd, 0x0fcd,
+ 0x0fdb, 0x0fff,
+ 0x10c6, 0x10cf,
+ 0x10fd, 0x10ff,
+ 0x1249, 0x1249,
+ 0x124e, 0x124f,
+ 0x1257, 0x1257,
+ 0x1259, 0x1259,
+ 0x125e, 0x125f,
+ 0x1289, 0x1289,
+ 0x128e, 0x128f,
+ 0x12b1, 0x12b1,
+ 0x12b6, 0x12b7,
+ 0x12bf, 0x12bf,
+ 0x12c1, 0x12c1,
+ 0x12c6, 0x12c7,
+ 0x12d7, 0x12d7,
+ 0x1311, 0x1311,
+ 0x1316, 0x1317,
+ 0x135b, 0x135c,
+ 0x137d, 0x137f,
+ 0x139a, 0x139f,
+ 0x13f5, 0x13ff,
+ 0x169d, 0x169f,
+ 0x16f1, 0x16ff,
+ 0x170d, 0x170d,
+ 0x1715, 0x171f,
+ 0x1737, 0x173f,
+ 0x1754, 0x175f,
+ 0x176d, 0x176d,
+ 0x1771, 0x1771,
+ 0x1774, 0x177f,
+ 0x17de, 0x17df,
+ 0x17ea, 0x17ef,
+ 0x17fa, 0x17ff,
+ 0x180f, 0x180f,
+ 0x181a, 0x181f,
+ 0x1878, 0x187f,
+ 0x18ab, 0x18af,
+ 0x18f6, 0x18ff,
+ 0x191d, 0x191f,
+ 0x192c, 0x192f,
+ 0x193c, 0x193f,
+ 0x1941, 0x1943,
+ 0x196e, 0x196f,
+ 0x1975, 0x197f,
+ 0x19ac, 0x19af,
+ 0x19ca, 0x19cf,
+ 0x19db, 0x19dd,
+ 0x1a1c, 0x1a1d,
+ 0x1a5f, 0x1a5f,
+ 0x1a7d, 0x1a7e,
+ 0x1a8a, 0x1a8f,
+ 0x1a9a, 0x1a9f,
+ 0x1aae, 0x1aff,
+ 0x1b4c, 0x1b4f,
+ 0x1b7d, 0x1b7f,
+ 0x1bab, 0x1bad,
+ 0x1bba, 0x1bbf,
+ 0x1bf4, 0x1bfb,
+ 0x1c38, 0x1c3a,
+ 0x1c4a, 0x1c4c,
+ 0x1c80, 0x1ccf,
+ 0x1cf3, 0x1cff,
+ 0x1de7, 0x1dfb,
+ 0x1f16, 0x1f17,
+ 0x1f1e, 0x1f1f,
+ 0x1f46, 0x1f47,
+ 0x1f4e, 0x1f4f,
+ 0x1f58, 0x1f58,
+ 0x1f5a, 0x1f5a,
+ 0x1f5c, 0x1f5c,
+ 0x1f5e, 0x1f5e,
+ 0x1f7e, 0x1f7f,
+ 0x1fb5, 0x1fb5,
+ 0x1fc5, 0x1fc5,
+ 0x1fd4, 0x1fd5,
+ 0x1fdc, 0x1fdc,
+ 0x1ff0, 0x1ff1,
+ 0x1ff5, 0x1ff5,
+ 0x1fff, 0x1fff,
+ 0x2065, 0x2069,
+ 0x2072, 0x2073,
+ 0x208f, 0x208f,
+ 0x209d, 0x209f,
+ 0x20ba, 0x20cf,
+ 0x20f1, 0x20ff,
+ 0x218a, 0x218f,
+ 0x23f4, 0x23ff,
+ 0x2427, 0x243f,
+ 0x244b, 0x245f,
+ 0x2700, 0x2700,
+ 0x27cb, 0x27cb,
+ 0x27cd, 0x27cd,
+ 0x2b4d, 0x2b4f,
+ 0x2b5a, 0x2bff,
+ 0x2c2f, 0x2c2f,
+ 0x2c5f, 0x2c5f,
+ 0x2cf2, 0x2cf8,
+ 0x2d26, 0x2d2f,
+ 0x2d66, 0x2d6e,
+ 0x2d71, 0x2d7e,
+ 0x2d97, 0x2d9f,
+ 0x2da7, 0x2da7,
+ 0x2daf, 0x2daf,
+ 0x2db7, 0x2db7,
+ 0x2dbf, 0x2dbf,
+ 0x2dc7, 0x2dc7,
+ 0x2dcf, 0x2dcf,
+ 0x2dd7, 0x2dd7,
+ 0x2ddf, 0x2ddf,
+ 0x2e32, 0x2e7f,
+ 0x2e9a, 0x2e9a,
+ 0x2ef4, 0x2eff,
+ 0x2fd6, 0x2fef,
+ 0x2ffc, 0x2fff,
+ 0x3040, 0x3040,
+ 0x3097, 0x3098,
+ 0x3100, 0x3104,
+ 0x312e, 0x3130,
+ 0x318f, 0x318f,
+ 0x31bb, 0x31bf,
+ 0x31e4, 0x31ef,
+ 0x321f, 0x321f,
+ 0x32ff, 0x32ff,
+ 0x4db6, 0x4dbf,
+ 0x9fcc, 0x9fff,
+ 0xa48d, 0xa48f,
+ 0xa4c7, 0xa4cf,
+ 0xa62c, 0xa63f,
+ 0xa674, 0xa67b,
+ 0xa698, 0xa69f,
+ 0xa6f8, 0xa6ff,
+ 0xa78f, 0xa78f,
+ 0xa792, 0xa79f,
+ 0xa7aa, 0xa7f9,
+ 0xa82c, 0xa82f,
+ 0xa83a, 0xa83f,
+ 0xa878, 0xa87f,
+ 0xa8c5, 0xa8cd,
+ 0xa8da, 0xa8df,
+ 0xa8fc, 0xa8ff,
+ 0xa954, 0xa95e,
+ 0xa97d, 0xa97f,
+ 0xa9ce, 0xa9ce,
+ 0xa9da, 0xa9dd,
+ 0xa9e0, 0xa9ff,
+ 0xaa37, 0xaa3f,
+ 0xaa4e, 0xaa4f,
+ 0xaa5a, 0xaa5b,
+ 0xaa7c, 0xaa7f,
+ 0xaac3, 0xaada,
+ 0xaae0, 0xab00,
+ 0xab07, 0xab08,
+ 0xab0f, 0xab10,
+ 0xab17, 0xab1f,
+ 0xab27, 0xab27,
+ 0xab2f, 0xabbf,
+ 0xabee, 0xabef,
+ 0xabfa, 0xabff,
+ 0xd7a4, 0xd7af,
+ 0xd7c7, 0xd7ca,
+ 0xd7fc, 0xf8ff,
+ 0xfa2e, 0xfa2f,
+ 0xfa6e, 0xfa6f,
+ 0xfada, 0xfaff,
+ 0xfb07, 0xfb12,
+ 0xfb18, 0xfb1c,
+ 0xfb37, 0xfb37,
+ 0xfb3d, 0xfb3d,
+ 0xfb3f, 0xfb3f,
+ 0xfb42, 0xfb42,
+ 0xfb45, 0xfb45,
+ 0xfbc2, 0xfbd2,
+ 0xfd40, 0xfd4f,
+ 0xfd90, 0xfd91,
+ 0xfdc8, 0xfdef,
+ 0xfdfe, 0xfdff,
+ 0xfe1a, 0xfe1f,
+ 0xfe27, 0xfe2f,
+ 0xfe53, 0xfe53,
+ 0xfe67, 0xfe67,
+ 0xfe6c, 0xfe6f,
+ 0xfe75, 0xfe75,
+ 0xfefd, 0xfefe,
+ 0xff00, 0xff00,
+ 0xffbf, 0xffc1,
+ 0xffc8, 0xffc9,
+ 0xffd0, 0xffd1,
+ 0xffd8, 0xffd9,
+ 0xffdd, 0xffdf,
+ 0xffe7, 0xffe7,
+ 0xffef, 0xfff8,
+ 0xfffe, 0xffff,
+ 0x1000c, 0x1000c,
+ 0x10027, 0x10027,
+ 0x1003b, 0x1003b,
+ 0x1003e, 0x1003e,
+ 0x1004e, 0x1004f,
+ 0x1005e, 0x1007f,
+ 0x100fb, 0x100ff,
+ 0x10103, 0x10106,
+ 0x10134, 0x10136,
+ 0x1018b, 0x1018f,
+ 0x1019c, 0x101cf,
+ 0x101fe, 0x1027f,
+ 0x1029d, 0x1029f,
+ 0x102d1, 0x102ff,
+ 0x1031f, 0x1031f,
+ 0x10324, 0x1032f,
+ 0x1034b, 0x1037f,
+ 0x1039e, 0x1039e,
+ 0x103c4, 0x103c7,
+ 0x103d6, 0x103ff,
+ 0x1049e, 0x1049f,
+ 0x104aa, 0x107ff,
+ 0x10806, 0x10807,
+ 0x10809, 0x10809,
+ 0x10836, 0x10836,
+ 0x10839, 0x1083b,
+ 0x1083d, 0x1083e,
+ 0x10856, 0x10856,
+ 0x10860, 0x108ff,
+ 0x1091c, 0x1091e,
+ 0x1093a, 0x1093e,
+ 0x10940, 0x109ff,
+ 0x10a04, 0x10a04,
+ 0x10a07, 0x10a0b,
+ 0x10a14, 0x10a14,
+ 0x10a18, 0x10a18,
+ 0x10a34, 0x10a37,
+ 0x10a3b, 0x10a3e,
+ 0x10a48, 0x10a4f,
+ 0x10a59, 0x10a5f,
+ 0x10a80, 0x10aff,
+ 0x10b36, 0x10b38,
+ 0x10b56, 0x10b57,
+ 0x10b73, 0x10b77,
+ 0x10b80, 0x10bff,
+ 0x10c49, 0x10e5f,
+ 0x10e7f, 0x10fff,
+ 0x1104e, 0x11051,
+ 0x11070, 0x1107f,
+ 0x110c2, 0x11fff,
+ 0x1236f, 0x123ff,
+ 0x12463, 0x1246f,
+ 0x12474, 0x12fff,
+ 0x1342f, 0x167ff,
+ 0x16a39, 0x1afff,
+ 0x1b002, 0x1cfff,
+ 0x1d0f6, 0x1d0ff,
+ 0x1d127, 0x1d128,
+ 0x1d1de, 0x1d1ff,
+ 0x1d246, 0x1d2ff,
+ 0x1d357, 0x1d35f,
+ 0x1d372, 0x1d3ff,
+ 0x1d455, 0x1d455,
+ 0x1d49d, 0x1d49d,
+ 0x1d4a0, 0x1d4a1,
+ 0x1d4a3, 0x1d4a4,
+ 0x1d4a7, 0x1d4a8,
+ 0x1d4ad, 0x1d4ad,
+ 0x1d4ba, 0x1d4ba,
+ 0x1d4bc, 0x1d4bc,
+ 0x1d4c4, 0x1d4c4,
+ 0x1d506, 0x1d506,
+ 0x1d50b, 0x1d50c,
+ 0x1d515, 0x1d515,
+ 0x1d51d, 0x1d51d,
+ 0x1d53a, 0x1d53a,
+ 0x1d53f, 0x1d53f,
+ 0x1d545, 0x1d545,
+ 0x1d547, 0x1d549,
+ 0x1d551, 0x1d551,
+ 0x1d6a6, 0x1d6a7,
+ 0x1d7cc, 0x1d7cd,
+ 0x1d800, 0x1efff,
+ 0x1f02c, 0x1f02f,
+ 0x1f094, 0x1f09f,
+ 0x1f0af, 0x1f0b0,
+ 0x1f0bf, 0x1f0c0,
+ 0x1f0d0, 0x1f0d0,
+ 0x1f0e0, 0x1f0ff,
+ 0x1f10b, 0x1f10f,
+ 0x1f12f, 0x1f12f,
+ 0x1f16a, 0x1f16f,
+ 0x1f19b, 0x1f1e5,
+ 0x1f203, 0x1f20f,
+ 0x1f23b, 0x1f23f,
+ 0x1f249, 0x1f24f,
+ 0x1f252, 0x1f2ff,
+ 0x1f321, 0x1f32f,
+ 0x1f336, 0x1f336,
+ 0x1f37d, 0x1f37f,
+ 0x1f394, 0x1f39f,
+ 0x1f3c5, 0x1f3c5,
+ 0x1f3cb, 0x1f3df,
+ 0x1f3f1, 0x1f3ff,
+ 0x1f43f, 0x1f43f,
+ 0x1f441, 0x1f441,
+ 0x1f4f8, 0x1f4f8,
+ 0x1f4fd, 0x1f4ff,
+ 0x1f53e, 0x1f54f,
+ 0x1f568, 0x1f5fa,
+ 0x1f600, 0x1f600,
+ 0x1f611, 0x1f611,
+ 0x1f615, 0x1f615,
+ 0x1f617, 0x1f617,
+ 0x1f619, 0x1f619,
+ 0x1f61b, 0x1f61b,
+ 0x1f61f, 0x1f61f,
+ 0x1f626, 0x1f627,
+ 0x1f62c, 0x1f62c,
+ 0x1f62e, 0x1f62f,
+ 0x1f634, 0x1f634,
+ 0x1f641, 0x1f644,
+ 0x1f650, 0x1f67f,
+ 0x1f6c6, 0x1f6ff,
+ 0x1f774, 0x1ffff,
+ 0x2a6d7, 0x2a6ff,
+ 0x2b735, 0x2b73f,
+ 0x2b81e, 0x2f7ff,
+ 0x2fa1e, 0xe0000,
+ 0xe0002, 0xe001f,
+ 0xe0080, 0xe00ff,
+ 0xe01f0, 0x10ffff,
+}; /* CR_Unknown */
+#endif /* USE_UNICODE_PROPERTIES */
+#endif /* USE_UNICODE_PROPERTIES */
+
+/* 'Age_1_1': Derived Age 1.1 */
+static const OnigCodePoint CR_Age_1_1[] = {
+ 288,
+ 0x0000, 0x01f5,
+ 0x01fa, 0x0217,
+ 0x0250, 0x02a8,
+ 0x02b0, 0x02de,
+ 0x02e0, 0x02e9,
+ 0x0300, 0x0345,
+ 0x0360, 0x0361,
+ 0x0374, 0x0375,
+ 0x037a, 0x037a,
+ 0x037e, 0x037e,
+ 0x0384, 0x038a,
+ 0x038c, 0x038c,
+ 0x038e, 0x03a1,
+ 0x03a3, 0x03ce,
+ 0x03d0, 0x03d6,
+ 0x03da, 0x03da,
+ 0x03dc, 0x03dc,
+ 0x03de, 0x03de,
+ 0x03e0, 0x03e0,
+ 0x03e2, 0x03f3,
+ 0x0401, 0x040c,
+ 0x040e, 0x044f,
+ 0x0451, 0x045c,
+ 0x045e, 0x0486,
+ 0x0490, 0x04c4,
+ 0x04c7, 0x04c8,
+ 0x04cb, 0x04cc,
+ 0x04d0, 0x04eb,
+ 0x04ee, 0x04f5,
+ 0x04f8, 0x04f9,
+ 0x0531, 0x0556,
+ 0x0559, 0x055f,
+ 0x0561, 0x0587,
+ 0x0589, 0x0589,
+ 0x05b0, 0x05b9,
+ 0x05bb, 0x05c3,
+ 0x05d0, 0x05ea,
+ 0x05f0, 0x05f4,
+ 0x060c, 0x060c,
+ 0x061b, 0x061b,
+ 0x061f, 0x061f,
+ 0x0621, 0x063a,
+ 0x0640, 0x0652,
+ 0x0660, 0x066d,
+ 0x0670, 0x06b7,
+ 0x06ba, 0x06be,
+ 0x06c0, 0x06ce,
+ 0x06d0, 0x06ed,
+ 0x06f0, 0x06f9,
+ 0x0901, 0x0903,
+ 0x0905, 0x0939,
+ 0x093c, 0x094d,
+ 0x0950, 0x0954,
+ 0x0958, 0x0970,
+ 0x0981, 0x0983,
+ 0x0985, 0x098c,
+ 0x098f, 0x0990,
+ 0x0993, 0x09a8,
+ 0x09aa, 0x09b0,
+ 0x09b2, 0x09b2,
+ 0x09b6, 0x09b9,
+ 0x09bc, 0x09bc,
+ 0x09be, 0x09c4,
+ 0x09c7, 0x09c8,
+ 0x09cb, 0x09cd,
+ 0x09d7, 0x09d7,
+ 0x09dc, 0x09dd,
+ 0x09df, 0x09e3,
+ 0x09e6, 0x09fa,
+ 0x0a02, 0x0a02,
+ 0x0a05, 0x0a0a,
+ 0x0a0f, 0x0a10,
+ 0x0a13, 0x0a28,
+ 0x0a2a, 0x0a30,
+ 0x0a32, 0x0a33,
+ 0x0a35, 0x0a36,
+ 0x0a38, 0x0a39,
+ 0x0a3c, 0x0a3c,
+ 0x0a3e, 0x0a42,
+ 0x0a47, 0x0a48,
+ 0x0a4b, 0x0a4d,
+ 0x0a59, 0x0a5c,
+ 0x0a5e, 0x0a5e,
+ 0x0a66, 0x0a74,
+ 0x0a81, 0x0a83,
+ 0x0a85, 0x0a8b,
+ 0x0a8d, 0x0a8d,
+ 0x0a8f, 0x0a91,
+ 0x0a93, 0x0aa8,
+ 0x0aaa, 0x0ab0,
+ 0x0ab2, 0x0ab3,
+ 0x0ab5, 0x0ab9,
+ 0x0abc, 0x0ac5,
+ 0x0ac7, 0x0ac9,
+ 0x0acb, 0x0acd,
+ 0x0ad0, 0x0ad0,
+ 0x0ae0, 0x0ae0,
+ 0x0ae6, 0x0aef,
+ 0x0b01, 0x0b03,
+ 0x0b05, 0x0b0c,
+ 0x0b0f, 0x0b10,
+ 0x0b13, 0x0b28,
+ 0x0b2a, 0x0b30,
+ 0x0b32, 0x0b33,
+ 0x0b36, 0x0b39,
+ 0x0b3c, 0x0b43,
+ 0x0b47, 0x0b48,
+ 0x0b4b, 0x0b4d,
+ 0x0b56, 0x0b57,
+ 0x0b5c, 0x0b5d,
+ 0x0b5f, 0x0b61,
+ 0x0b66, 0x0b70,
+ 0x0b82, 0x0b83,
+ 0x0b85, 0x0b8a,
+ 0x0b8e, 0x0b90,
+ 0x0b92, 0x0b95,
+ 0x0b99, 0x0b9a,
+ 0x0b9c, 0x0b9c,
+ 0x0b9e, 0x0b9f,
+ 0x0ba3, 0x0ba4,
+ 0x0ba8, 0x0baa,
+ 0x0bae, 0x0bb5,
+ 0x0bb7, 0x0bb9,
+ 0x0bbe, 0x0bc2,
+ 0x0bc6, 0x0bc8,
+ 0x0bca, 0x0bcd,
+ 0x0bd7, 0x0bd7,
+ 0x0be7, 0x0bf2,
+ 0x0c01, 0x0c03,
+ 0x0c05, 0x0c0c,
+ 0x0c0e, 0x0c10,
+ 0x0c12, 0x0c28,
+ 0x0c2a, 0x0c33,
+ 0x0c35, 0x0c39,
+ 0x0c3e, 0x0c44,
+ 0x0c46, 0x0c48,
+ 0x0c4a, 0x0c4d,
+ 0x0c55, 0x0c56,
+ 0x0c60, 0x0c61,
+ 0x0c66, 0x0c6f,
+ 0x0c82, 0x0c83,
+ 0x0c85, 0x0c8c,
+ 0x0c8e, 0x0c90,
+ 0x0c92, 0x0ca8,
+ 0x0caa, 0x0cb3,
+ 0x0cb5, 0x0cb9,
+ 0x0cbe, 0x0cc4,
+ 0x0cc6, 0x0cc8,
+ 0x0cca, 0x0ccd,
+ 0x0cd5, 0x0cd6,
+ 0x0cde, 0x0cde,
+ 0x0ce0, 0x0ce1,
+ 0x0ce6, 0x0cef,
+ 0x0d02, 0x0d03,
+ 0x0d05, 0x0d0c,
+ 0x0d0e, 0x0d10,
+ 0x0d12, 0x0d28,
+ 0x0d2a, 0x0d39,
+ 0x0d3e, 0x0d43,
+ 0x0d46, 0x0d48,
+ 0x0d4a, 0x0d4d,
+ 0x0d57, 0x0d57,
+ 0x0d60, 0x0d61,
+ 0x0d66, 0x0d6f,
+ 0x0e01, 0x0e3a,
+ 0x0e3f, 0x0e5b,
+ 0x0e81, 0x0e82,
+ 0x0e84, 0x0e84,
+ 0x0e87, 0x0e88,
+ 0x0e8a, 0x0e8a,
+ 0x0e8d, 0x0e8d,
+ 0x0e94, 0x0e97,
+ 0x0e99, 0x0e9f,
+ 0x0ea1, 0x0ea3,
+ 0x0ea5, 0x0ea5,
+ 0x0ea7, 0x0ea7,
+ 0x0eaa, 0x0eab,
+ 0x0ead, 0x0eb9,
+ 0x0ebb, 0x0ebd,
+ 0x0ec0, 0x0ec4,
+ 0x0ec6, 0x0ec6,
+ 0x0ec8, 0x0ecd,
+ 0x0ed0, 0x0ed9,
+ 0x0edc, 0x0edd,
+ 0x10a0, 0x10c5,
+ 0x10d0, 0x10f6,
+ 0x10fb, 0x10fb,
+ 0x1100, 0x1159,
+ 0x115f, 0x11a2,
+ 0x11a8, 0x11f9,
+ 0x1e00, 0x1e9a,
+ 0x1ea0, 0x1ef9,
+ 0x1f00, 0x1f15,
+ 0x1f18, 0x1f1d,
+ 0x1f20, 0x1f45,
+ 0x1f48, 0x1f4d,
+ 0x1f50, 0x1f57,
+ 0x1f59, 0x1f59,
+ 0x1f5b, 0x1f5b,
+ 0x1f5d, 0x1f5d,
+ 0x1f5f, 0x1f7d,
+ 0x1f80, 0x1fb4,
+ 0x1fb6, 0x1fc4,
+ 0x1fc6, 0x1fd3,
+ 0x1fd6, 0x1fdb,
+ 0x1fdd, 0x1fef,
+ 0x1ff2, 0x1ff4,
+ 0x1ff6, 0x1ffe,
+ 0x2000, 0x202e,
+ 0x2030, 0x2046,
+ 0x206a, 0x2070,
+ 0x2074, 0x208e,
+ 0x20a0, 0x20aa,
+ 0x20d0, 0x20e1,
+ 0x2100, 0x2138,
+ 0x2153, 0x2182,
+ 0x2190, 0x21ea,
+ 0x2200, 0x22f1,
+ 0x2300, 0x2300,
+ 0x2302, 0x237a,
+ 0x2400, 0x2424,
+ 0x2440, 0x244a,
+ 0x2460, 0x24ea,
+ 0x2500, 0x2595,
+ 0x25a0, 0x25ef,
+ 0x2600, 0x2613,
+ 0x261a, 0x266f,
+ 0x2701, 0x2704,
+ 0x2706, 0x2709,
+ 0x270c, 0x2727,
+ 0x2729, 0x274b,
+ 0x274d, 0x274d,
+ 0x274f, 0x2752,
+ 0x2756, 0x2756,
+ 0x2758, 0x275e,
+ 0x2761, 0x2767,
+ 0x2776, 0x2794,
+ 0x2798, 0x27af,
+ 0x27b1, 0x27be,
+ 0x3000, 0x3037,
+ 0x303f, 0x303f,
+ 0x3041, 0x3094,
+ 0x3099, 0x309e,
+ 0x30a1, 0x30fe,
+ 0x3105, 0x312c,
+ 0x3131, 0x318e,
+ 0x3190, 0x319f,
+ 0x3200, 0x321c,
+ 0x3220, 0x3243,
+ 0x3260, 0x327b,
+ 0x327f, 0x32b0,
+ 0x32c0, 0x32cb,
+ 0x32d0, 0x32fe,
+ 0x3300, 0x3376,
+ 0x337b, 0x33dd,
+ 0x33e0, 0x33fe,
+ 0x4e00, 0x9fa5,
+ 0xe000, 0xfa2d,
+ 0xfb00, 0xfb06,
+ 0xfb13, 0xfb17,
+ 0xfb1e, 0xfb36,
+ 0xfb38, 0xfb3c,
+ 0xfb3e, 0xfb3e,
+ 0xfb40, 0xfb41,
+ 0xfb43, 0xfb44,
+ 0xfb46, 0xfbb1,
+ 0xfbd3, 0xfd3f,
+ 0xfd50, 0xfd8f,
+ 0xfd92, 0xfdc7,
+ 0xfdf0, 0xfdfb,
+ 0xfe20, 0xfe23,
+ 0xfe30, 0xfe44,
+ 0xfe49, 0xfe52,
+ 0xfe54, 0xfe66,
+ 0xfe68, 0xfe6b,
+ 0xfe70, 0xfe72,
+ 0xfe74, 0xfe74,
+ 0xfe76, 0xfefc,
+ 0xfeff, 0xfeff,
+ 0xff01, 0xff5e,
+ 0xff61, 0xffbe,
+ 0xffc2, 0xffc7,
+ 0xffca, 0xffcf,
+ 0xffd2, 0xffd7,
+ 0xffda, 0xffdc,
+ 0xffe0, 0xffe6,
+ 0xffe8, 0xffee,
+ 0xfffd, 0xffff,
+}; /* CR_Age_1_1 */
+
+/* 'Age_2_0': Derived Age 2.0 */
+static const OnigCodePoint CR_Age_2_0[] = {
+ 312,
+ 0x0000, 0x01f5,
+ 0x01fa, 0x0217,
+ 0x0250, 0x02a8,
+ 0x02b0, 0x02de,
+ 0x02e0, 0x02e9,
+ 0x0300, 0x0345,
+ 0x0360, 0x0361,
+ 0x0374, 0x0375,
+ 0x037a, 0x037a,
+ 0x037e, 0x037e,
+ 0x0384, 0x038a,
+ 0x038c, 0x038c,
+ 0x038e, 0x03a1,
+ 0x03a3, 0x03ce,
+ 0x03d0, 0x03d6,
+ 0x03da, 0x03da,
+ 0x03dc, 0x03dc,
+ 0x03de, 0x03de,
+ 0x03e0, 0x03e0,
+ 0x03e2, 0x03f3,
+ 0x0401, 0x040c,
+ 0x040e, 0x044f,
+ 0x0451, 0x045c,
+ 0x045e, 0x0486,
+ 0x0490, 0x04c4,
+ 0x04c7, 0x04c8,
+ 0x04cb, 0x04cc,
+ 0x04d0, 0x04eb,
+ 0x04ee, 0x04f5,
+ 0x04f8, 0x04f9,
+ 0x0531, 0x0556,
+ 0x0559, 0x055f,
+ 0x0561, 0x0587,
+ 0x0589, 0x0589,
+ 0x0591, 0x05a1,
+ 0x05a3, 0x05b9,
+ 0x05bb, 0x05c4,
+ 0x05d0, 0x05ea,
+ 0x05f0, 0x05f4,
+ 0x060c, 0x060c,
+ 0x061b, 0x061b,
+ 0x061f, 0x061f,
+ 0x0621, 0x063a,
+ 0x0640, 0x0652,
+ 0x0660, 0x066d,
+ 0x0670, 0x06b7,
+ 0x06ba, 0x06be,
+ 0x06c0, 0x06ce,
+ 0x06d0, 0x06ed,
+ 0x06f0, 0x06f9,
+ 0x0901, 0x0903,
+ 0x0905, 0x0939,
+ 0x093c, 0x094d,
+ 0x0950, 0x0954,
+ 0x0958, 0x0970,
+ 0x0981, 0x0983,
+ 0x0985, 0x098c,
+ 0x098f, 0x0990,
+ 0x0993, 0x09a8,
+ 0x09aa, 0x09b0,
+ 0x09b2, 0x09b2,
+ 0x09b6, 0x09b9,
+ 0x09bc, 0x09bc,
+ 0x09be, 0x09c4,
+ 0x09c7, 0x09c8,
+ 0x09cb, 0x09cd,
+ 0x09d7, 0x09d7,
+ 0x09dc, 0x09dd,
+ 0x09df, 0x09e3,
+ 0x09e6, 0x09fa,
+ 0x0a02, 0x0a02,
+ 0x0a05, 0x0a0a,
+ 0x0a0f, 0x0a10,
+ 0x0a13, 0x0a28,
+ 0x0a2a, 0x0a30,
+ 0x0a32, 0x0a33,
+ 0x0a35, 0x0a36,
+ 0x0a38, 0x0a39,
+ 0x0a3c, 0x0a3c,
+ 0x0a3e, 0x0a42,
+ 0x0a47, 0x0a48,
+ 0x0a4b, 0x0a4d,
+ 0x0a59, 0x0a5c,
+ 0x0a5e, 0x0a5e,
+ 0x0a66, 0x0a74,
+ 0x0a81, 0x0a83,
+ 0x0a85, 0x0a8b,
+ 0x0a8d, 0x0a8d,
+ 0x0a8f, 0x0a91,
+ 0x0a93, 0x0aa8,
+ 0x0aaa, 0x0ab0,
+ 0x0ab2, 0x0ab3,
+ 0x0ab5, 0x0ab9,
+ 0x0abc, 0x0ac5,
+ 0x0ac7, 0x0ac9,
+ 0x0acb, 0x0acd,
+ 0x0ad0, 0x0ad0,
+ 0x0ae0, 0x0ae0,
+ 0x0ae6, 0x0aef,
+ 0x0b01, 0x0b03,
+ 0x0b05, 0x0b0c,
+ 0x0b0f, 0x0b10,
+ 0x0b13, 0x0b28,
+ 0x0b2a, 0x0b30,
+ 0x0b32, 0x0b33,
+ 0x0b36, 0x0b39,
+ 0x0b3c, 0x0b43,
+ 0x0b47, 0x0b48,
+ 0x0b4b, 0x0b4d,
+ 0x0b56, 0x0b57,
+ 0x0b5c, 0x0b5d,
+ 0x0b5f, 0x0b61,
+ 0x0b66, 0x0b70,
+ 0x0b82, 0x0b83,
+ 0x0b85, 0x0b8a,
+ 0x0b8e, 0x0b90,
+ 0x0b92, 0x0b95,
+ 0x0b99, 0x0b9a,
+ 0x0b9c, 0x0b9c,
+ 0x0b9e, 0x0b9f,
+ 0x0ba3, 0x0ba4,
+ 0x0ba8, 0x0baa,
+ 0x0bae, 0x0bb5,
+ 0x0bb7, 0x0bb9,
+ 0x0bbe, 0x0bc2,
+ 0x0bc6, 0x0bc8,
+ 0x0bca, 0x0bcd,
+ 0x0bd7, 0x0bd7,
+ 0x0be7, 0x0bf2,
+ 0x0c01, 0x0c03,
+ 0x0c05, 0x0c0c,
+ 0x0c0e, 0x0c10,
+ 0x0c12, 0x0c28,
+ 0x0c2a, 0x0c33,
+ 0x0c35, 0x0c39,
+ 0x0c3e, 0x0c44,
+ 0x0c46, 0x0c48,
+ 0x0c4a, 0x0c4d,
+ 0x0c55, 0x0c56,
+ 0x0c60, 0x0c61,
+ 0x0c66, 0x0c6f,
+ 0x0c82, 0x0c83,
+ 0x0c85, 0x0c8c,
+ 0x0c8e, 0x0c90,
+ 0x0c92, 0x0ca8,
+ 0x0caa, 0x0cb3,
+ 0x0cb5, 0x0cb9,
+ 0x0cbe, 0x0cc4,
+ 0x0cc6, 0x0cc8,
+ 0x0cca, 0x0ccd,
+ 0x0cd5, 0x0cd6,
+ 0x0cde, 0x0cde,
+ 0x0ce0, 0x0ce1,
+ 0x0ce6, 0x0cef,
+ 0x0d02, 0x0d03,
+ 0x0d05, 0x0d0c,
+ 0x0d0e, 0x0d10,
+ 0x0d12, 0x0d28,
+ 0x0d2a, 0x0d39,
+ 0x0d3e, 0x0d43,
+ 0x0d46, 0x0d48,
+ 0x0d4a, 0x0d4d,
+ 0x0d57, 0x0d57,
+ 0x0d60, 0x0d61,
+ 0x0d66, 0x0d6f,
+ 0x0e01, 0x0e3a,
+ 0x0e3f, 0x0e5b,
+ 0x0e81, 0x0e82,
+ 0x0e84, 0x0e84,
+ 0x0e87, 0x0e88,
+ 0x0e8a, 0x0e8a,
+ 0x0e8d, 0x0e8d,
+ 0x0e94, 0x0e97,
+ 0x0e99, 0x0e9f,
+ 0x0ea1, 0x0ea3,
+ 0x0ea5, 0x0ea5,
+ 0x0ea7, 0x0ea7,
+ 0x0eaa, 0x0eab,
+ 0x0ead, 0x0eb9,
+ 0x0ebb, 0x0ebd,
+ 0x0ec0, 0x0ec4,
+ 0x0ec6, 0x0ec6,
+ 0x0ec8, 0x0ecd,
+ 0x0ed0, 0x0ed9,
+ 0x0edc, 0x0edd,
+ 0x0f00, 0x0f47,
+ 0x0f49, 0x0f69,
+ 0x0f71, 0x0f8b,
+ 0x0f90, 0x0f95,
+ 0x0f97, 0x0f97,
+ 0x0f99, 0x0fad,
+ 0x0fb1, 0x0fb7,
+ 0x0fb9, 0x0fb9,
+ 0x10a0, 0x10c5,
+ 0x10d0, 0x10f6,
+ 0x10fb, 0x10fb,
+ 0x1100, 0x1159,
+ 0x115f, 0x11a2,
+ 0x11a8, 0x11f9,
+ 0x1e00, 0x1e9b,
+ 0x1ea0, 0x1ef9,
+ 0x1f00, 0x1f15,
+ 0x1f18, 0x1f1d,
+ 0x1f20, 0x1f45,
+ 0x1f48, 0x1f4d,
+ 0x1f50, 0x1f57,
+ 0x1f59, 0x1f59,
+ 0x1f5b, 0x1f5b,
+ 0x1f5d, 0x1f5d,
+ 0x1f5f, 0x1f7d,
+ 0x1f80, 0x1fb4,
+ 0x1fb6, 0x1fc4,
+ 0x1fc6, 0x1fd3,
+ 0x1fd6, 0x1fdb,
+ 0x1fdd, 0x1fef,
+ 0x1ff2, 0x1ff4,
+ 0x1ff6, 0x1ffe,
+ 0x2000, 0x202e,
+ 0x2030, 0x2046,
+ 0x206a, 0x2070,
+ 0x2074, 0x208e,
+ 0x20a0, 0x20ab,
+ 0x20d0, 0x20e1,
+ 0x2100, 0x2138,
+ 0x2153, 0x2182,
+ 0x2190, 0x21ea,
+ 0x2200, 0x22f1,
+ 0x2300, 0x2300,
+ 0x2302, 0x237a,
+ 0x2400, 0x2424,
+ 0x2440, 0x244a,
+ 0x2460, 0x24ea,
+ 0x2500, 0x2595,
+ 0x25a0, 0x25ef,
+ 0x2600, 0x2613,
+ 0x261a, 0x266f,
+ 0x2701, 0x2704,
+ 0x2706, 0x2709,
+ 0x270c, 0x2727,
+ 0x2729, 0x274b,
+ 0x274d, 0x274d,
+ 0x274f, 0x2752,
+ 0x2756, 0x2756,
+ 0x2758, 0x275e,
+ 0x2761, 0x2767,
+ 0x2776, 0x2794,
+ 0x2798, 0x27af,
+ 0x27b1, 0x27be,
+ 0x3000, 0x3037,
+ 0x303f, 0x303f,
+ 0x3041, 0x3094,
+ 0x3099, 0x309e,
+ 0x30a1, 0x30fe,
+ 0x3105, 0x312c,
+ 0x3131, 0x318e,
+ 0x3190, 0x319f,
+ 0x3200, 0x321c,
+ 0x3220, 0x3243,
+ 0x3260, 0x327b,
+ 0x327f, 0x32b0,
+ 0x32c0, 0x32cb,
+ 0x32d0, 0x32fe,
+ 0x3300, 0x3376,
+ 0x337b, 0x33dd,
+ 0x33e0, 0x33fe,
+ 0x4e00, 0x9fa5,
+ 0xac00, 0xd7a3,
+ 0xd800, 0xfa2d,
+ 0xfb00, 0xfb06,
+ 0xfb13, 0xfb17,
+ 0xfb1e, 0xfb36,
+ 0xfb38, 0xfb3c,
+ 0xfb3e, 0xfb3e,
+ 0xfb40, 0xfb41,
+ 0xfb43, 0xfb44,
+ 0xfb46, 0xfbb1,
+ 0xfbd3, 0xfd3f,
+ 0xfd50, 0xfd8f,
+ 0xfd92, 0xfdc7,
+ 0xfdf0, 0xfdfb,
+ 0xfe20, 0xfe23,
+ 0xfe30, 0xfe44,
+ 0xfe49, 0xfe52,
+ 0xfe54, 0xfe66,
+ 0xfe68, 0xfe6b,
+ 0xfe70, 0xfe72,
+ 0xfe74, 0xfe74,
+ 0xfe76, 0xfefc,
+ 0xfeff, 0xfeff,
+ 0xff01, 0xff5e,
+ 0xff61, 0xffbe,
+ 0xffc2, 0xffc7,
+ 0xffca, 0xffcf,
+ 0xffd2, 0xffd7,
+ 0xffda, 0xffdc,
+ 0xffe0, 0xffe6,
+ 0xffe8, 0xffee,
+ 0xfffd, 0xffff,
+ 0x1fffe, 0x1ffff,
+ 0x2fffe, 0x2ffff,
+ 0x3fffe, 0x3ffff,
+ 0x4fffe, 0x4ffff,
+ 0x5fffe, 0x5ffff,
+ 0x6fffe, 0x6ffff,
+ 0x7fffe, 0x7ffff,
+ 0x8fffe, 0x8ffff,
+ 0x9fffe, 0x9ffff,
+ 0xafffe, 0xaffff,
+ 0xbfffe, 0xbffff,
+ 0xcfffe, 0xcffff,
+ 0xdfffe, 0xdffff,
+ 0xefffe, 0x10ffff,
+}; /* CR_Age_2_0 */
+
+/* 'Age_2_1': Derived Age 2.1 */
+static const OnigCodePoint CR_Age_2_1[] = {
+ 312,
+ 0x0000, 0x01f5,
+ 0x01fa, 0x0217,
+ 0x0250, 0x02a8,
+ 0x02b0, 0x02de,
+ 0x02e0, 0x02e9,
+ 0x0300, 0x0345,
+ 0x0360, 0x0361,
+ 0x0374, 0x0375,
+ 0x037a, 0x037a,
+ 0x037e, 0x037e,
+ 0x0384, 0x038a,
+ 0x038c, 0x038c,
+ 0x038e, 0x03a1,
+ 0x03a3, 0x03ce,
+ 0x03d0, 0x03d6,
+ 0x03da, 0x03da,
+ 0x03dc, 0x03dc,
+ 0x03de, 0x03de,
+ 0x03e0, 0x03e0,
+ 0x03e2, 0x03f3,
+ 0x0401, 0x040c,
+ 0x040e, 0x044f,
+ 0x0451, 0x045c,
+ 0x045e, 0x0486,
+ 0x0490, 0x04c4,
+ 0x04c7, 0x04c8,
+ 0x04cb, 0x04cc,
+ 0x04d0, 0x04eb,
+ 0x04ee, 0x04f5,
+ 0x04f8, 0x04f9,
+ 0x0531, 0x0556,
+ 0x0559, 0x055f,
+ 0x0561, 0x0587,
+ 0x0589, 0x0589,
+ 0x0591, 0x05a1,
+ 0x05a3, 0x05b9,
+ 0x05bb, 0x05c4,
+ 0x05d0, 0x05ea,
+ 0x05f0, 0x05f4,
+ 0x060c, 0x060c,
+ 0x061b, 0x061b,
+ 0x061f, 0x061f,
+ 0x0621, 0x063a,
+ 0x0640, 0x0652,
+ 0x0660, 0x066d,
+ 0x0670, 0x06b7,
+ 0x06ba, 0x06be,
+ 0x06c0, 0x06ce,
+ 0x06d0, 0x06ed,
+ 0x06f0, 0x06f9,
+ 0x0901, 0x0903,
+ 0x0905, 0x0939,
+ 0x093c, 0x094d,
+ 0x0950, 0x0954,
+ 0x0958, 0x0970,
+ 0x0981, 0x0983,
+ 0x0985, 0x098c,
+ 0x098f, 0x0990,
+ 0x0993, 0x09a8,
+ 0x09aa, 0x09b0,
+ 0x09b2, 0x09b2,
+ 0x09b6, 0x09b9,
+ 0x09bc, 0x09bc,
+ 0x09be, 0x09c4,
+ 0x09c7, 0x09c8,
+ 0x09cb, 0x09cd,
+ 0x09d7, 0x09d7,
+ 0x09dc, 0x09dd,
+ 0x09df, 0x09e3,
+ 0x09e6, 0x09fa,
+ 0x0a02, 0x0a02,
+ 0x0a05, 0x0a0a,
+ 0x0a0f, 0x0a10,
+ 0x0a13, 0x0a28,
+ 0x0a2a, 0x0a30,
+ 0x0a32, 0x0a33,
+ 0x0a35, 0x0a36,
+ 0x0a38, 0x0a39,
+ 0x0a3c, 0x0a3c,
+ 0x0a3e, 0x0a42,
+ 0x0a47, 0x0a48,
+ 0x0a4b, 0x0a4d,
+ 0x0a59, 0x0a5c,
+ 0x0a5e, 0x0a5e,
+ 0x0a66, 0x0a74,
+ 0x0a81, 0x0a83,
+ 0x0a85, 0x0a8b,
+ 0x0a8d, 0x0a8d,
+ 0x0a8f, 0x0a91,
+ 0x0a93, 0x0aa8,
+ 0x0aaa, 0x0ab0,
+ 0x0ab2, 0x0ab3,
+ 0x0ab5, 0x0ab9,
+ 0x0abc, 0x0ac5,
+ 0x0ac7, 0x0ac9,
+ 0x0acb, 0x0acd,
+ 0x0ad0, 0x0ad0,
+ 0x0ae0, 0x0ae0,
+ 0x0ae6, 0x0aef,
+ 0x0b01, 0x0b03,
+ 0x0b05, 0x0b0c,
+ 0x0b0f, 0x0b10,
+ 0x0b13, 0x0b28,
+ 0x0b2a, 0x0b30,
+ 0x0b32, 0x0b33,
+ 0x0b36, 0x0b39,
+ 0x0b3c, 0x0b43,
+ 0x0b47, 0x0b48,
+ 0x0b4b, 0x0b4d,
+ 0x0b56, 0x0b57,
+ 0x0b5c, 0x0b5d,
+ 0x0b5f, 0x0b61,
+ 0x0b66, 0x0b70,
+ 0x0b82, 0x0b83,
+ 0x0b85, 0x0b8a,
+ 0x0b8e, 0x0b90,
+ 0x0b92, 0x0b95,
+ 0x0b99, 0x0b9a,
+ 0x0b9c, 0x0b9c,
+ 0x0b9e, 0x0b9f,
+ 0x0ba3, 0x0ba4,
+ 0x0ba8, 0x0baa,
+ 0x0bae, 0x0bb5,
+ 0x0bb7, 0x0bb9,
+ 0x0bbe, 0x0bc2,
+ 0x0bc6, 0x0bc8,
+ 0x0bca, 0x0bcd,
+ 0x0bd7, 0x0bd7,
+ 0x0be7, 0x0bf2,
+ 0x0c01, 0x0c03,
+ 0x0c05, 0x0c0c,
+ 0x0c0e, 0x0c10,
+ 0x0c12, 0x0c28,
+ 0x0c2a, 0x0c33,
+ 0x0c35, 0x0c39,
+ 0x0c3e, 0x0c44,
+ 0x0c46, 0x0c48,
+ 0x0c4a, 0x0c4d,
+ 0x0c55, 0x0c56,
+ 0x0c60, 0x0c61,
+ 0x0c66, 0x0c6f,
+ 0x0c82, 0x0c83,
+ 0x0c85, 0x0c8c,
+ 0x0c8e, 0x0c90,
+ 0x0c92, 0x0ca8,
+ 0x0caa, 0x0cb3,
+ 0x0cb5, 0x0cb9,
+ 0x0cbe, 0x0cc4,
+ 0x0cc6, 0x0cc8,
+ 0x0cca, 0x0ccd,
+ 0x0cd5, 0x0cd6,
+ 0x0cde, 0x0cde,
+ 0x0ce0, 0x0ce1,
+ 0x0ce6, 0x0cef,
+ 0x0d02, 0x0d03,
+ 0x0d05, 0x0d0c,
+ 0x0d0e, 0x0d10,
+ 0x0d12, 0x0d28,
+ 0x0d2a, 0x0d39,
+ 0x0d3e, 0x0d43,
+ 0x0d46, 0x0d48,
+ 0x0d4a, 0x0d4d,
+ 0x0d57, 0x0d57,
+ 0x0d60, 0x0d61,
+ 0x0d66, 0x0d6f,
+ 0x0e01, 0x0e3a,
+ 0x0e3f, 0x0e5b,
+ 0x0e81, 0x0e82,
+ 0x0e84, 0x0e84,
+ 0x0e87, 0x0e88,
+ 0x0e8a, 0x0e8a,
+ 0x0e8d, 0x0e8d,
+ 0x0e94, 0x0e97,
+ 0x0e99, 0x0e9f,
+ 0x0ea1, 0x0ea3,
+ 0x0ea5, 0x0ea5,
+ 0x0ea7, 0x0ea7,
+ 0x0eaa, 0x0eab,
+ 0x0ead, 0x0eb9,
+ 0x0ebb, 0x0ebd,
+ 0x0ec0, 0x0ec4,
+ 0x0ec6, 0x0ec6,
+ 0x0ec8, 0x0ecd,
+ 0x0ed0, 0x0ed9,
+ 0x0edc, 0x0edd,
+ 0x0f00, 0x0f47,
+ 0x0f49, 0x0f69,
+ 0x0f71, 0x0f8b,
+ 0x0f90, 0x0f95,
+ 0x0f97, 0x0f97,
+ 0x0f99, 0x0fad,
+ 0x0fb1, 0x0fb7,
+ 0x0fb9, 0x0fb9,
+ 0x10a0, 0x10c5,
+ 0x10d0, 0x10f6,
+ 0x10fb, 0x10fb,
+ 0x1100, 0x1159,
+ 0x115f, 0x11a2,
+ 0x11a8, 0x11f9,
+ 0x1e00, 0x1e9b,
+ 0x1ea0, 0x1ef9,
+ 0x1f00, 0x1f15,
+ 0x1f18, 0x1f1d,
+ 0x1f20, 0x1f45,
+ 0x1f48, 0x1f4d,
+ 0x1f50, 0x1f57,
+ 0x1f59, 0x1f59,
+ 0x1f5b, 0x1f5b,
+ 0x1f5d, 0x1f5d,
+ 0x1f5f, 0x1f7d,
+ 0x1f80, 0x1fb4,
+ 0x1fb6, 0x1fc4,
+ 0x1fc6, 0x1fd3,
+ 0x1fd6, 0x1fdb,
+ 0x1fdd, 0x1fef,
+ 0x1ff2, 0x1ff4,
+ 0x1ff6, 0x1ffe,
+ 0x2000, 0x202e,
+ 0x2030, 0x2046,
+ 0x206a, 0x2070,
+ 0x2074, 0x208e,
+ 0x20a0, 0x20ac,
+ 0x20d0, 0x20e1,
+ 0x2100, 0x2138,
+ 0x2153, 0x2182,
+ 0x2190, 0x21ea,
+ 0x2200, 0x22f1,
+ 0x2300, 0x2300,
+ 0x2302, 0x237a,
+ 0x2400, 0x2424,
+ 0x2440, 0x244a,
+ 0x2460, 0x24ea,
+ 0x2500, 0x2595,
+ 0x25a0, 0x25ef,
+ 0x2600, 0x2613,
+ 0x261a, 0x266f,
+ 0x2701, 0x2704,
+ 0x2706, 0x2709,
+ 0x270c, 0x2727,
+ 0x2729, 0x274b,
+ 0x274d, 0x274d,
+ 0x274f, 0x2752,
+ 0x2756, 0x2756,
+ 0x2758, 0x275e,
+ 0x2761, 0x2767,
+ 0x2776, 0x2794,
+ 0x2798, 0x27af,
+ 0x27b1, 0x27be,
+ 0x3000, 0x3037,
+ 0x303f, 0x303f,
+ 0x3041, 0x3094,
+ 0x3099, 0x309e,
+ 0x30a1, 0x30fe,
+ 0x3105, 0x312c,
+ 0x3131, 0x318e,
+ 0x3190, 0x319f,
+ 0x3200, 0x321c,
+ 0x3220, 0x3243,
+ 0x3260, 0x327b,
+ 0x327f, 0x32b0,
+ 0x32c0, 0x32cb,
+ 0x32d0, 0x32fe,
+ 0x3300, 0x3376,
+ 0x337b, 0x33dd,
+ 0x33e0, 0x33fe,
+ 0x4e00, 0x9fa5,
+ 0xac00, 0xd7a3,
+ 0xd800, 0xfa2d,
+ 0xfb00, 0xfb06,
+ 0xfb13, 0xfb17,
+ 0xfb1e, 0xfb36,
+ 0xfb38, 0xfb3c,
+ 0xfb3e, 0xfb3e,
+ 0xfb40, 0xfb41,
+ 0xfb43, 0xfb44,
+ 0xfb46, 0xfbb1,
+ 0xfbd3, 0xfd3f,
+ 0xfd50, 0xfd8f,
+ 0xfd92, 0xfdc7,
+ 0xfdf0, 0xfdfb,
+ 0xfe20, 0xfe23,
+ 0xfe30, 0xfe44,
+ 0xfe49, 0xfe52,
+ 0xfe54, 0xfe66,
+ 0xfe68, 0xfe6b,
+ 0xfe70, 0xfe72,
+ 0xfe74, 0xfe74,
+ 0xfe76, 0xfefc,
+ 0xfeff, 0xfeff,
+ 0xff01, 0xff5e,
+ 0xff61, 0xffbe,
+ 0xffc2, 0xffc7,
+ 0xffca, 0xffcf,
+ 0xffd2, 0xffd7,
+ 0xffda, 0xffdc,
+ 0xffe0, 0xffe6,
+ 0xffe8, 0xffee,
+ 0xfffc, 0xffff,
+ 0x1fffe, 0x1ffff,
+ 0x2fffe, 0x2ffff,
+ 0x3fffe, 0x3ffff,
+ 0x4fffe, 0x4ffff,
+ 0x5fffe, 0x5ffff,
+ 0x6fffe, 0x6ffff,
+ 0x7fffe, 0x7ffff,
+ 0x8fffe, 0x8ffff,
+ 0x9fffe, 0x9ffff,
+ 0xafffe, 0xaffff,
+ 0xbfffe, 0xbffff,
+ 0xcfffe, 0xcffff,
+ 0xdfffe, 0xdffff,
+ 0xefffe, 0x10ffff,
+}; /* CR_Age_2_1 */
+
+/* 'Age_3_0': Derived Age 3.0 */
+static const OnigCodePoint CR_Age_3_0[] = {
+ 369,
+ 0x0000, 0x021f,
+ 0x0222, 0x0233,
+ 0x0250, 0x02ad,
+ 0x02b0, 0x02ee,
+ 0x0300, 0x034e,
+ 0x0360, 0x0362,
+ 0x0374, 0x0375,
+ 0x037a, 0x037a,
+ 0x037e, 0x037e,
+ 0x0384, 0x038a,
+ 0x038c, 0x038c,
+ 0x038e, 0x03a1,
+ 0x03a3, 0x03ce,
+ 0x03d0, 0x03d7,
+ 0x03da, 0x03f3,
+ 0x0400, 0x0486,
+ 0x0488, 0x0489,
+ 0x048c, 0x04c4,
+ 0x04c7, 0x04c8,
+ 0x04cb, 0x04cc,
+ 0x04d0, 0x04f5,
+ 0x04f8, 0x04f9,
+ 0x0531, 0x0556,
+ 0x0559, 0x055f,
+ 0x0561, 0x0587,
+ 0x0589, 0x058a,
+ 0x0591, 0x05a1,
+ 0x05a3, 0x05b9,
+ 0x05bb, 0x05c4,
+ 0x05d0, 0x05ea,
+ 0x05f0, 0x05f4,
+ 0x060c, 0x060c,
+ 0x061b, 0x061b,
+ 0x061f, 0x061f,
+ 0x0621, 0x063a,
+ 0x0640, 0x0655,
+ 0x0660, 0x066d,
+ 0x0670, 0x06ed,
+ 0x06f0, 0x06fe,
+ 0x0700, 0x070d,
+ 0x070f, 0x072c,
+ 0x0730, 0x074a,
+ 0x0780, 0x07b0,
+ 0x0901, 0x0903,
+ 0x0905, 0x0939,
+ 0x093c, 0x094d,
+ 0x0950, 0x0954,
+ 0x0958, 0x0970,
+ 0x0981, 0x0983,
+ 0x0985, 0x098c,
+ 0x098f, 0x0990,
+ 0x0993, 0x09a8,
+ 0x09aa, 0x09b0,
+ 0x09b2, 0x09b2,
+ 0x09b6, 0x09b9,
+ 0x09bc, 0x09bc,
+ 0x09be, 0x09c4,
+ 0x09c7, 0x09c8,
+ 0x09cb, 0x09cd,
+ 0x09d7, 0x09d7,
+ 0x09dc, 0x09dd,
+ 0x09df, 0x09e3,
+ 0x09e6, 0x09fa,
+ 0x0a02, 0x0a02,
+ 0x0a05, 0x0a0a,
+ 0x0a0f, 0x0a10,
+ 0x0a13, 0x0a28,
+ 0x0a2a, 0x0a30,
+ 0x0a32, 0x0a33,
+ 0x0a35, 0x0a36,
+ 0x0a38, 0x0a39,
+ 0x0a3c, 0x0a3c,
+ 0x0a3e, 0x0a42,
+ 0x0a47, 0x0a48,
+ 0x0a4b, 0x0a4d,
+ 0x0a59, 0x0a5c,
+ 0x0a5e, 0x0a5e,
+ 0x0a66, 0x0a74,
+ 0x0a81, 0x0a83,
+ 0x0a85, 0x0a8b,
+ 0x0a8d, 0x0a8d,
+ 0x0a8f, 0x0a91,
+ 0x0a93, 0x0aa8,
+ 0x0aaa, 0x0ab0,
+ 0x0ab2, 0x0ab3,
+ 0x0ab5, 0x0ab9,
+ 0x0abc, 0x0ac5,
+ 0x0ac7, 0x0ac9,
+ 0x0acb, 0x0acd,
+ 0x0ad0, 0x0ad0,
+ 0x0ae0, 0x0ae0,
+ 0x0ae6, 0x0aef,
+ 0x0b01, 0x0b03,
+ 0x0b05, 0x0b0c,
+ 0x0b0f, 0x0b10,
+ 0x0b13, 0x0b28,
+ 0x0b2a, 0x0b30,
+ 0x0b32, 0x0b33,
+ 0x0b36, 0x0b39,
+ 0x0b3c, 0x0b43,
+ 0x0b47, 0x0b48,
+ 0x0b4b, 0x0b4d,
+ 0x0b56, 0x0b57,
+ 0x0b5c, 0x0b5d,
+ 0x0b5f, 0x0b61,
+ 0x0b66, 0x0b70,
+ 0x0b82, 0x0b83,
+ 0x0b85, 0x0b8a,
+ 0x0b8e, 0x0b90,
+ 0x0b92, 0x0b95,
+ 0x0b99, 0x0b9a,
+ 0x0b9c, 0x0b9c,
+ 0x0b9e, 0x0b9f,
+ 0x0ba3, 0x0ba4,
+ 0x0ba8, 0x0baa,
+ 0x0bae, 0x0bb5,
+ 0x0bb7, 0x0bb9,
+ 0x0bbe, 0x0bc2,
+ 0x0bc6, 0x0bc8,
+ 0x0bca, 0x0bcd,
+ 0x0bd7, 0x0bd7,
+ 0x0be7, 0x0bf2,
+ 0x0c01, 0x0c03,
+ 0x0c05, 0x0c0c,
+ 0x0c0e, 0x0c10,
+ 0x0c12, 0x0c28,
+ 0x0c2a, 0x0c33,
+ 0x0c35, 0x0c39,
+ 0x0c3e, 0x0c44,
+ 0x0c46, 0x0c48,
+ 0x0c4a, 0x0c4d,
+ 0x0c55, 0x0c56,
+ 0x0c60, 0x0c61,
+ 0x0c66, 0x0c6f,
+ 0x0c82, 0x0c83,
+ 0x0c85, 0x0c8c,
+ 0x0c8e, 0x0c90,
+ 0x0c92, 0x0ca8,
+ 0x0caa, 0x0cb3,
+ 0x0cb5, 0x0cb9,
+ 0x0cbe, 0x0cc4,
+ 0x0cc6, 0x0cc8,
+ 0x0cca, 0x0ccd,
+ 0x0cd5, 0x0cd6,
+ 0x0cde, 0x0cde,
+ 0x0ce0, 0x0ce1,
+ 0x0ce6, 0x0cef,
+ 0x0d02, 0x0d03,
+ 0x0d05, 0x0d0c,
+ 0x0d0e, 0x0d10,
+ 0x0d12, 0x0d28,
+ 0x0d2a, 0x0d39,
+ 0x0d3e, 0x0d43,
+ 0x0d46, 0x0d48,
+ 0x0d4a, 0x0d4d,
+ 0x0d57, 0x0d57,
+ 0x0d60, 0x0d61,
+ 0x0d66, 0x0d6f,
+ 0x0d82, 0x0d83,
+ 0x0d85, 0x0d96,
+ 0x0d9a, 0x0db1,
+ 0x0db3, 0x0dbb,
+ 0x0dbd, 0x0dbd,
+ 0x0dc0, 0x0dc6,
+ 0x0dca, 0x0dca,
+ 0x0dcf, 0x0dd4,
+ 0x0dd6, 0x0dd6,
+ 0x0dd8, 0x0ddf,
+ 0x0df2, 0x0df4,
+ 0x0e01, 0x0e3a,
+ 0x0e3f, 0x0e5b,
+ 0x0e81, 0x0e82,
+ 0x0e84, 0x0e84,
+ 0x0e87, 0x0e88,
+ 0x0e8a, 0x0e8a,
+ 0x0e8d, 0x0e8d,
+ 0x0e94, 0x0e97,
+ 0x0e99, 0x0e9f,
+ 0x0ea1, 0x0ea3,
+ 0x0ea5, 0x0ea5,
+ 0x0ea7, 0x0ea7,
+ 0x0eaa, 0x0eab,
+ 0x0ead, 0x0eb9,
+ 0x0ebb, 0x0ebd,
+ 0x0ec0, 0x0ec4,
+ 0x0ec6, 0x0ec6,
+ 0x0ec8, 0x0ecd,
+ 0x0ed0, 0x0ed9,
+ 0x0edc, 0x0edd,
+ 0x0f00, 0x0f47,
+ 0x0f49, 0x0f6a,
+ 0x0f71, 0x0f8b,
+ 0x0f90, 0x0f97,
+ 0x0f99, 0x0fbc,
+ 0x0fbe, 0x0fcc,
+ 0x0fcf, 0x0fcf,
+ 0x1000, 0x1021,
+ 0x1023, 0x1027,
+ 0x1029, 0x102a,
+ 0x102c, 0x1032,
+ 0x1036, 0x1039,
+ 0x1040, 0x1059,
+ 0x10a0, 0x10c5,
+ 0x10d0, 0x10f6,
+ 0x10fb, 0x10fb,
+ 0x1100, 0x1159,
+ 0x115f, 0x11a2,
+ 0x11a8, 0x11f9,
+ 0x1200, 0x1206,
+ 0x1208, 0x1246,
+ 0x1248, 0x1248,
+ 0x124a, 0x124d,
+ 0x1250, 0x1256,
+ 0x1258, 0x1258,
+ 0x125a, 0x125d,
+ 0x1260, 0x1286,
+ 0x1288, 0x1288,
+ 0x128a, 0x128d,
+ 0x1290, 0x12ae,
+ 0x12b0, 0x12b0,
+ 0x12b2, 0x12b5,
+ 0x12b8, 0x12be,
+ 0x12c0, 0x12c0,
+ 0x12c2, 0x12c5,
+ 0x12c8, 0x12ce,
+ 0x12d0, 0x12d6,
+ 0x12d8, 0x12ee,
+ 0x12f0, 0x130e,
+ 0x1310, 0x1310,
+ 0x1312, 0x1315,
+ 0x1318, 0x131e,
+ 0x1320, 0x1346,
+ 0x1348, 0x135a,
+ 0x1361, 0x137c,
+ 0x13a0, 0x13f4,
+ 0x1401, 0x1676,
+ 0x1680, 0x169c,
+ 0x16a0, 0x16f0,
+ 0x1780, 0x17dc,
+ 0x17e0, 0x17e9,
+ 0x1800, 0x180e,
+ 0x1810, 0x1819,
+ 0x1820, 0x1877,
+ 0x1880, 0x18a9,
+ 0x1e00, 0x1e9b,
+ 0x1ea0, 0x1ef9,
+ 0x1f00, 0x1f15,
+ 0x1f18, 0x1f1d,
+ 0x1f20, 0x1f45,
+ 0x1f48, 0x1f4d,
+ 0x1f50, 0x1f57,
+ 0x1f59, 0x1f59,
+ 0x1f5b, 0x1f5b,
+ 0x1f5d, 0x1f5d,
+ 0x1f5f, 0x1f7d,
+ 0x1f80, 0x1fb4,
+ 0x1fb6, 0x1fc4,
+ 0x1fc6, 0x1fd3,
+ 0x1fd6, 0x1fdb,
+ 0x1fdd, 0x1fef,
+ 0x1ff2, 0x1ff4,
+ 0x1ff6, 0x1ffe,
+ 0x2000, 0x2046,
+ 0x2048, 0x204d,
+ 0x206a, 0x2070,
+ 0x2074, 0x208e,
+ 0x20a0, 0x20af,
+ 0x20d0, 0x20e3,
+ 0x2100, 0x213a,
+ 0x2153, 0x2183,
+ 0x2190, 0x21f3,
+ 0x2200, 0x22f1,
+ 0x2300, 0x237b,
+ 0x237d, 0x239a,
+ 0x2400, 0x2426,
+ 0x2440, 0x244a,
+ 0x2460, 0x24ea,
+ 0x2500, 0x2595,
+ 0x25a0, 0x25f7,
+ 0x2600, 0x2613,
+ 0x2619, 0x2671,
+ 0x2701, 0x2704,
+ 0x2706, 0x2709,
+ 0x270c, 0x2727,
+ 0x2729, 0x274b,
+ 0x274d, 0x274d,
+ 0x274f, 0x2752,
+ 0x2756, 0x2756,
+ 0x2758, 0x275e,
+ 0x2761, 0x2767,
+ 0x2776, 0x2794,
+ 0x2798, 0x27af,
+ 0x27b1, 0x27be,
+ 0x2800, 0x28ff,
+ 0x2e80, 0x2e99,
+ 0x2e9b, 0x2ef3,
+ 0x2f00, 0x2fd5,
+ 0x2ff0, 0x2ffb,
+ 0x3000, 0x303a,
+ 0x303e, 0x303f,
+ 0x3041, 0x3094,
+ 0x3099, 0x309e,
+ 0x30a1, 0x30fe,
+ 0x3105, 0x312c,
+ 0x3131, 0x318e,
+ 0x3190, 0x31b7,
+ 0x3200, 0x321c,
+ 0x3220, 0x3243,
+ 0x3260, 0x327b,
+ 0x327f, 0x32b0,
+ 0x32c0, 0x32cb,
+ 0x32d0, 0x32fe,
+ 0x3300, 0x3376,
+ 0x337b, 0x33dd,
+ 0x33e0, 0x33fe,
+ 0x3400, 0x4db5,
+ 0x4e00, 0x9fa5,
+ 0xa000, 0xa48c,
+ 0xa490, 0xa4a1,
+ 0xa4a4, 0xa4b3,
+ 0xa4b5, 0xa4c0,
+ 0xa4c2, 0xa4c4,
+ 0xa4c6, 0xa4c6,
+ 0xac00, 0xd7a3,
+ 0xd800, 0xfa2d,
+ 0xfb00, 0xfb06,
+ 0xfb13, 0xfb17,
+ 0xfb1d, 0xfb36,
+ 0xfb38, 0xfb3c,
+ 0xfb3e, 0xfb3e,
+ 0xfb40, 0xfb41,
+ 0xfb43, 0xfb44,
+ 0xfb46, 0xfbb1,
+ 0xfbd3, 0xfd3f,
+ 0xfd50, 0xfd8f,
+ 0xfd92, 0xfdc7,
+ 0xfdf0, 0xfdfb,
+ 0xfe20, 0xfe23,
+ 0xfe30, 0xfe44,
+ 0xfe49, 0xfe52,
+ 0xfe54, 0xfe66,
+ 0xfe68, 0xfe6b,
+ 0xfe70, 0xfe72,
+ 0xfe74, 0xfe74,
+ 0xfe76, 0xfefc,
+ 0xfeff, 0xfeff,
+ 0xff01, 0xff5e,
+ 0xff61, 0xffbe,
+ 0xffc2, 0xffc7,
+ 0xffca, 0xffcf,
+ 0xffd2, 0xffd7,
+ 0xffda, 0xffdc,
+ 0xffe0, 0xffe6,
+ 0xffe8, 0xffee,
+ 0xfff9, 0xffff,
+ 0x1fffe, 0x1ffff,
+ 0x2fffe, 0x2ffff,
+ 0x3fffe, 0x3ffff,
+ 0x4fffe, 0x4ffff,
+ 0x5fffe, 0x5ffff,
+ 0x6fffe, 0x6ffff,
+ 0x7fffe, 0x7ffff,
+ 0x8fffe, 0x8ffff,
+ 0x9fffe, 0x9ffff,
+ 0xafffe, 0xaffff,
+ 0xbfffe, 0xbffff,
+ 0xcfffe, 0xcffff,
+ 0xdfffe, 0xdffff,
+ 0xefffe, 0x10ffff,
+}; /* CR_Age_3_0 */
+
+/* 'Age_3_1': Derived Age 3.1 */
+static const OnigCodePoint CR_Age_3_1[] = {
+ 402,
+ 0x0000, 0x021f,
+ 0x0222, 0x0233,
+ 0x0250, 0x02ad,
+ 0x02b0, 0x02ee,
+ 0x0300, 0x034e,
+ 0x0360, 0x0362,
+ 0x0374, 0x0375,
+ 0x037a, 0x037a,
+ 0x037e, 0x037e,
+ 0x0384, 0x038a,
+ 0x038c, 0x038c,
+ 0x038e, 0x03a1,
+ 0x03a3, 0x03ce,
+ 0x03d0, 0x03d7,
+ 0x03da, 0x03f5,
+ 0x0400, 0x0486,
+ 0x0488, 0x0489,
+ 0x048c, 0x04c4,
+ 0x04c7, 0x04c8,
+ 0x04cb, 0x04cc,
+ 0x04d0, 0x04f5,
+ 0x04f8, 0x04f9,
+ 0x0531, 0x0556,
+ 0x0559, 0x055f,
+ 0x0561, 0x0587,
+ 0x0589, 0x058a,
+ 0x0591, 0x05a1,
+ 0x05a3, 0x05b9,
+ 0x05bb, 0x05c4,
+ 0x05d0, 0x05ea,
+ 0x05f0, 0x05f4,
+ 0x060c, 0x060c,
+ 0x061b, 0x061b,
+ 0x061f, 0x061f,
+ 0x0621, 0x063a,
+ 0x0640, 0x0655,
+ 0x0660, 0x066d,
+ 0x0670, 0x06ed,
+ 0x06f0, 0x06fe,
+ 0x0700, 0x070d,
+ 0x070f, 0x072c,
+ 0x0730, 0x074a,
+ 0x0780, 0x07b0,
+ 0x0901, 0x0903,
+ 0x0905, 0x0939,
+ 0x093c, 0x094d,
+ 0x0950, 0x0954,
+ 0x0958, 0x0970,
+ 0x0981, 0x0983,
+ 0x0985, 0x098c,
+ 0x098f, 0x0990,
+ 0x0993, 0x09a8,
+ 0x09aa, 0x09b0,
+ 0x09b2, 0x09b2,
+ 0x09b6, 0x09b9,
+ 0x09bc, 0x09bc,
+ 0x09be, 0x09c4,
+ 0x09c7, 0x09c8,
+ 0x09cb, 0x09cd,
+ 0x09d7, 0x09d7,
+ 0x09dc, 0x09dd,
+ 0x09df, 0x09e3,
+ 0x09e6, 0x09fa,
+ 0x0a02, 0x0a02,
+ 0x0a05, 0x0a0a,
+ 0x0a0f, 0x0a10,
+ 0x0a13, 0x0a28,
+ 0x0a2a, 0x0a30,
+ 0x0a32, 0x0a33,
+ 0x0a35, 0x0a36,
+ 0x0a38, 0x0a39,
+ 0x0a3c, 0x0a3c,
+ 0x0a3e, 0x0a42,
+ 0x0a47, 0x0a48,
+ 0x0a4b, 0x0a4d,
+ 0x0a59, 0x0a5c,
+ 0x0a5e, 0x0a5e,
+ 0x0a66, 0x0a74,
+ 0x0a81, 0x0a83,
+ 0x0a85, 0x0a8b,
+ 0x0a8d, 0x0a8d,
+ 0x0a8f, 0x0a91,
+ 0x0a93, 0x0aa8,
+ 0x0aaa, 0x0ab0,
+ 0x0ab2, 0x0ab3,
+ 0x0ab5, 0x0ab9,
+ 0x0abc, 0x0ac5,
+ 0x0ac7, 0x0ac9,
+ 0x0acb, 0x0acd,
+ 0x0ad0, 0x0ad0,
+ 0x0ae0, 0x0ae0,
+ 0x0ae6, 0x0aef,
+ 0x0b01, 0x0b03,
+ 0x0b05, 0x0b0c,
+ 0x0b0f, 0x0b10,
+ 0x0b13, 0x0b28,
+ 0x0b2a, 0x0b30,
+ 0x0b32, 0x0b33,
+ 0x0b36, 0x0b39,
+ 0x0b3c, 0x0b43,
+ 0x0b47, 0x0b48,
+ 0x0b4b, 0x0b4d,
+ 0x0b56, 0x0b57,
+ 0x0b5c, 0x0b5d,
+ 0x0b5f, 0x0b61,
+ 0x0b66, 0x0b70,
+ 0x0b82, 0x0b83,
+ 0x0b85, 0x0b8a,
+ 0x0b8e, 0x0b90,
+ 0x0b92, 0x0b95,
+ 0x0b99, 0x0b9a,
+ 0x0b9c, 0x0b9c,
+ 0x0b9e, 0x0b9f,
+ 0x0ba3, 0x0ba4,
+ 0x0ba8, 0x0baa,
+ 0x0bae, 0x0bb5,
+ 0x0bb7, 0x0bb9,
+ 0x0bbe, 0x0bc2,
+ 0x0bc6, 0x0bc8,
+ 0x0bca, 0x0bcd,
+ 0x0bd7, 0x0bd7,
+ 0x0be7, 0x0bf2,
+ 0x0c01, 0x0c03,
+ 0x0c05, 0x0c0c,
+ 0x0c0e, 0x0c10,
+ 0x0c12, 0x0c28,
+ 0x0c2a, 0x0c33,
+ 0x0c35, 0x0c39,
+ 0x0c3e, 0x0c44,
+ 0x0c46, 0x0c48,
+ 0x0c4a, 0x0c4d,
+ 0x0c55, 0x0c56,
+ 0x0c60, 0x0c61,
+ 0x0c66, 0x0c6f,
+ 0x0c82, 0x0c83,
+ 0x0c85, 0x0c8c,
+ 0x0c8e, 0x0c90,
+ 0x0c92, 0x0ca8,
+ 0x0caa, 0x0cb3,
+ 0x0cb5, 0x0cb9,
+ 0x0cbe, 0x0cc4,
+ 0x0cc6, 0x0cc8,
+ 0x0cca, 0x0ccd,
+ 0x0cd5, 0x0cd6,
+ 0x0cde, 0x0cde,
+ 0x0ce0, 0x0ce1,
+ 0x0ce6, 0x0cef,
+ 0x0d02, 0x0d03,
+ 0x0d05, 0x0d0c,
+ 0x0d0e, 0x0d10,
+ 0x0d12, 0x0d28,
+ 0x0d2a, 0x0d39,
+ 0x0d3e, 0x0d43,
+ 0x0d46, 0x0d48,
+ 0x0d4a, 0x0d4d,
+ 0x0d57, 0x0d57,
+ 0x0d60, 0x0d61,
+ 0x0d66, 0x0d6f,
+ 0x0d82, 0x0d83,
+ 0x0d85, 0x0d96,
+ 0x0d9a, 0x0db1,
+ 0x0db3, 0x0dbb,
+ 0x0dbd, 0x0dbd,
+ 0x0dc0, 0x0dc6,
+ 0x0dca, 0x0dca,
+ 0x0dcf, 0x0dd4,
+ 0x0dd6, 0x0dd6,
+ 0x0dd8, 0x0ddf,
+ 0x0df2, 0x0df4,
+ 0x0e01, 0x0e3a,
+ 0x0e3f, 0x0e5b,
+ 0x0e81, 0x0e82,
+ 0x0e84, 0x0e84,
+ 0x0e87, 0x0e88,
+ 0x0e8a, 0x0e8a,
+ 0x0e8d, 0x0e8d,
+ 0x0e94, 0x0e97,
+ 0x0e99, 0x0e9f,
+ 0x0ea1, 0x0ea3,
+ 0x0ea5, 0x0ea5,
+ 0x0ea7, 0x0ea7,
+ 0x0eaa, 0x0eab,
+ 0x0ead, 0x0eb9,
+ 0x0ebb, 0x0ebd,
+ 0x0ec0, 0x0ec4,
+ 0x0ec6, 0x0ec6,
+ 0x0ec8, 0x0ecd,
+ 0x0ed0, 0x0ed9,
+ 0x0edc, 0x0edd,
+ 0x0f00, 0x0f47,
+ 0x0f49, 0x0f6a,
+ 0x0f71, 0x0f8b,
+ 0x0f90, 0x0f97,
+ 0x0f99, 0x0fbc,
+ 0x0fbe, 0x0fcc,
+ 0x0fcf, 0x0fcf,
+ 0x1000, 0x1021,
+ 0x1023, 0x1027,
+ 0x1029, 0x102a,
+ 0x102c, 0x1032,
+ 0x1036, 0x1039,
+ 0x1040, 0x1059,
+ 0x10a0, 0x10c5,
+ 0x10d0, 0x10f6,
+ 0x10fb, 0x10fb,
+ 0x1100, 0x1159,
+ 0x115f, 0x11a2,
+ 0x11a8, 0x11f9,
+ 0x1200, 0x1206,
+ 0x1208, 0x1246,
+ 0x1248, 0x1248,
+ 0x124a, 0x124d,
+ 0x1250, 0x1256,
+ 0x1258, 0x1258,
+ 0x125a, 0x125d,
+ 0x1260, 0x1286,
+ 0x1288, 0x1288,
+ 0x128a, 0x128d,
+ 0x1290, 0x12ae,
+ 0x12b0, 0x12b0,
+ 0x12b2, 0x12b5,
+ 0x12b8, 0x12be,
+ 0x12c0, 0x12c0,
+ 0x12c2, 0x12c5,
+ 0x12c8, 0x12ce,
+ 0x12d0, 0x12d6,
+ 0x12d8, 0x12ee,
+ 0x12f0, 0x130e,
+ 0x1310, 0x1310,
+ 0x1312, 0x1315,
+ 0x1318, 0x131e,
+ 0x1320, 0x1346,
+ 0x1348, 0x135a,
+ 0x1361, 0x137c,
+ 0x13a0, 0x13f4,
+ 0x1401, 0x1676,
+ 0x1680, 0x169c,
+ 0x16a0, 0x16f0,
+ 0x1780, 0x17dc,
+ 0x17e0, 0x17e9,
+ 0x1800, 0x180e,
+ 0x1810, 0x1819,
+ 0x1820, 0x1877,
+ 0x1880, 0x18a9,
+ 0x1e00, 0x1e9b,
+ 0x1ea0, 0x1ef9,
+ 0x1f00, 0x1f15,
+ 0x1f18, 0x1f1d,
+ 0x1f20, 0x1f45,
+ 0x1f48, 0x1f4d,
+ 0x1f50, 0x1f57,
+ 0x1f59, 0x1f59,
+ 0x1f5b, 0x1f5b,
+ 0x1f5d, 0x1f5d,
+ 0x1f5f, 0x1f7d,
+ 0x1f80, 0x1fb4,
+ 0x1fb6, 0x1fc4,
+ 0x1fc6, 0x1fd3,
+ 0x1fd6, 0x1fdb,
+ 0x1fdd, 0x1fef,
+ 0x1ff2, 0x1ff4,
+ 0x1ff6, 0x1ffe,
+ 0x2000, 0x2046,
+ 0x2048, 0x204d,
+ 0x206a, 0x2070,
+ 0x2074, 0x208e,
+ 0x20a0, 0x20af,
+ 0x20d0, 0x20e3,
+ 0x2100, 0x213a,
+ 0x2153, 0x2183,
+ 0x2190, 0x21f3,
+ 0x2200, 0x22f1,
+ 0x2300, 0x237b,
+ 0x237d, 0x239a,
+ 0x2400, 0x2426,
+ 0x2440, 0x244a,
+ 0x2460, 0x24ea,
+ 0x2500, 0x2595,
+ 0x25a0, 0x25f7,
+ 0x2600, 0x2613,
+ 0x2619, 0x2671,
+ 0x2701, 0x2704,
+ 0x2706, 0x2709,
+ 0x270c, 0x2727,
+ 0x2729, 0x274b,
+ 0x274d, 0x274d,
+ 0x274f, 0x2752,
+ 0x2756, 0x2756,
+ 0x2758, 0x275e,
+ 0x2761, 0x2767,
+ 0x2776, 0x2794,
+ 0x2798, 0x27af,
+ 0x27b1, 0x27be,
+ 0x2800, 0x28ff,
+ 0x2e80, 0x2e99,
+ 0x2e9b, 0x2ef3,
+ 0x2f00, 0x2fd5,
+ 0x2ff0, 0x2ffb,
+ 0x3000, 0x303a,
+ 0x303e, 0x303f,
+ 0x3041, 0x3094,
+ 0x3099, 0x309e,
+ 0x30a1, 0x30fe,
+ 0x3105, 0x312c,
+ 0x3131, 0x318e,
+ 0x3190, 0x31b7,
+ 0x3200, 0x321c,
+ 0x3220, 0x3243,
+ 0x3260, 0x327b,
+ 0x327f, 0x32b0,
+ 0x32c0, 0x32cb,
+ 0x32d0, 0x32fe,
+ 0x3300, 0x3376,
+ 0x337b, 0x33dd,
+ 0x33e0, 0x33fe,
+ 0x3400, 0x4db5,
+ 0x4e00, 0x9fa5,
+ 0xa000, 0xa48c,
+ 0xa490, 0xa4a1,
+ 0xa4a4, 0xa4b3,
+ 0xa4b5, 0xa4c0,
+ 0xa4c2, 0xa4c4,
+ 0xa4c6, 0xa4c6,
+ 0xac00, 0xd7a3,
+ 0xd800, 0xfa2d,
+ 0xfb00, 0xfb06,
+ 0xfb13, 0xfb17,
+ 0xfb1d, 0xfb36,
+ 0xfb38, 0xfb3c,
+ 0xfb3e, 0xfb3e,
+ 0xfb40, 0xfb41,
+ 0xfb43, 0xfb44,
+ 0xfb46, 0xfbb1,
+ 0xfbd3, 0xfd3f,
+ 0xfd50, 0xfd8f,
+ 0xfd92, 0xfdc7,
+ 0xfdd0, 0xfdfb,
+ 0xfe20, 0xfe23,
+ 0xfe30, 0xfe44,
+ 0xfe49, 0xfe52,
+ 0xfe54, 0xfe66,
+ 0xfe68, 0xfe6b,
+ 0xfe70, 0xfe72,
+ 0xfe74, 0xfe74,
+ 0xfe76, 0xfefc,
+ 0xfeff, 0xfeff,
+ 0xff01, 0xff5e,
+ 0xff61, 0xffbe,
+ 0xffc2, 0xffc7,
+ 0xffca, 0xffcf,
+ 0xffd2, 0xffd7,
+ 0xffda, 0xffdc,
+ 0xffe0, 0xffe6,
+ 0xffe8, 0xffee,
+ 0xfff9, 0xffff,
+ 0x10300, 0x1031e,
+ 0x10320, 0x10323,
+ 0x10330, 0x1034a,
+ 0x10400, 0x10425,
+ 0x10428, 0x1044d,
+ 0x1d000, 0x1d0f5,
+ 0x1d100, 0x1d126,
+ 0x1d12a, 0x1d1dd,
+ 0x1d400, 0x1d454,
+ 0x1d456, 0x1d49c,
+ 0x1d49e, 0x1d49f,
+ 0x1d4a2, 0x1d4a2,
+ 0x1d4a5, 0x1d4a6,
+ 0x1d4a9, 0x1d4ac,
+ 0x1d4ae, 0x1d4b9,
+ 0x1d4bb, 0x1d4bb,
+ 0x1d4bd, 0x1d4c0,
+ 0x1d4c2, 0x1d4c3,
+ 0x1d4c5, 0x1d505,
+ 0x1d507, 0x1d50a,
+ 0x1d50d, 0x1d514,
+ 0x1d516, 0x1d51c,
+ 0x1d51e, 0x1d539,
+ 0x1d53b, 0x1d53e,
+ 0x1d540, 0x1d544,
+ 0x1d546, 0x1d546,
+ 0x1d54a, 0x1d550,
+ 0x1d552, 0x1d6a3,
+ 0x1d6a8, 0x1d7c9,
+ 0x1d7ce, 0x1d7ff,
+ 0x1fffe, 0x2a6d6,
+ 0x2f800, 0x2fa1d,
+ 0x2fffe, 0x2ffff,
+ 0x3fffe, 0x3ffff,
+ 0x4fffe, 0x4ffff,
+ 0x5fffe, 0x5ffff,
+ 0x6fffe, 0x6ffff,
+ 0x7fffe, 0x7ffff,
+ 0x8fffe, 0x8ffff,
+ 0x9fffe, 0x9ffff,
+ 0xafffe, 0xaffff,
+ 0xbfffe, 0xbffff,
+ 0xcfffe, 0xcffff,
+ 0xdfffe, 0xdffff,
+ 0xe0001, 0xe0001,
+ 0xe0020, 0xe007f,
+ 0xefffe, 0x10ffff,
+}; /* CR_Age_3_1 */
+
+/* 'Age_3_2': Derived Age 3.2 */
+static const OnigCodePoint CR_Age_3_2[] = {
+ 397,
+ 0x0000, 0x0220,
+ 0x0222, 0x0233,
+ 0x0250, 0x02ad,
+ 0x02b0, 0x02ee,
+ 0x0300, 0x034f,
+ 0x0360, 0x036f,
+ 0x0374, 0x0375,
+ 0x037a, 0x037a,
+ 0x037e, 0x037e,
+ 0x0384, 0x038a,
+ 0x038c, 0x038c,
+ 0x038e, 0x03a1,
+ 0x03a3, 0x03ce,
+ 0x03d0, 0x03f6,
+ 0x0400, 0x0486,
+ 0x0488, 0x04ce,
+ 0x04d0, 0x04f5,
+ 0x04f8, 0x04f9,
+ 0x0500, 0x050f,
+ 0x0531, 0x0556,
+ 0x0559, 0x055f,
+ 0x0561, 0x0587,
+ 0x0589, 0x058a,
+ 0x0591, 0x05a1,
+ 0x05a3, 0x05b9,
+ 0x05bb, 0x05c4,
+ 0x05d0, 0x05ea,
+ 0x05f0, 0x05f4,
+ 0x060c, 0x060c,
+ 0x061b, 0x061b,
+ 0x061f, 0x061f,
+ 0x0621, 0x063a,
+ 0x0640, 0x0655,
+ 0x0660, 0x06ed,
+ 0x06f0, 0x06fe,
+ 0x0700, 0x070d,
+ 0x070f, 0x072c,
+ 0x0730, 0x074a,
+ 0x0780, 0x07b1,
+ 0x0901, 0x0903,
+ 0x0905, 0x0939,
+ 0x093c, 0x094d,
+ 0x0950, 0x0954,
+ 0x0958, 0x0970,
+ 0x0981, 0x0983,
+ 0x0985, 0x098c,
+ 0x098f, 0x0990,
+ 0x0993, 0x09a8,
+ 0x09aa, 0x09b0,
+ 0x09b2, 0x09b2,
+ 0x09b6, 0x09b9,
+ 0x09bc, 0x09bc,
+ 0x09be, 0x09c4,
+ 0x09c7, 0x09c8,
+ 0x09cb, 0x09cd,
+ 0x09d7, 0x09d7,
+ 0x09dc, 0x09dd,
+ 0x09df, 0x09e3,
+ 0x09e6, 0x09fa,
+ 0x0a02, 0x0a02,
+ 0x0a05, 0x0a0a,
+ 0x0a0f, 0x0a10,
+ 0x0a13, 0x0a28,
+ 0x0a2a, 0x0a30,
+ 0x0a32, 0x0a33,
+ 0x0a35, 0x0a36,
+ 0x0a38, 0x0a39,
+ 0x0a3c, 0x0a3c,
+ 0x0a3e, 0x0a42,
+ 0x0a47, 0x0a48,
+ 0x0a4b, 0x0a4d,
+ 0x0a59, 0x0a5c,
+ 0x0a5e, 0x0a5e,
+ 0x0a66, 0x0a74,
+ 0x0a81, 0x0a83,
+ 0x0a85, 0x0a8b,
+ 0x0a8d, 0x0a8d,
+ 0x0a8f, 0x0a91,
+ 0x0a93, 0x0aa8,
+ 0x0aaa, 0x0ab0,
+ 0x0ab2, 0x0ab3,
+ 0x0ab5, 0x0ab9,
+ 0x0abc, 0x0ac5,
+ 0x0ac7, 0x0ac9,
+ 0x0acb, 0x0acd,
+ 0x0ad0, 0x0ad0,
+ 0x0ae0, 0x0ae0,
+ 0x0ae6, 0x0aef,
+ 0x0b01, 0x0b03,
+ 0x0b05, 0x0b0c,
+ 0x0b0f, 0x0b10,
+ 0x0b13, 0x0b28,
+ 0x0b2a, 0x0b30,
+ 0x0b32, 0x0b33,
+ 0x0b36, 0x0b39,
+ 0x0b3c, 0x0b43,
+ 0x0b47, 0x0b48,
+ 0x0b4b, 0x0b4d,
+ 0x0b56, 0x0b57,
+ 0x0b5c, 0x0b5d,
+ 0x0b5f, 0x0b61,
+ 0x0b66, 0x0b70,
+ 0x0b82, 0x0b83,
+ 0x0b85, 0x0b8a,
+ 0x0b8e, 0x0b90,
+ 0x0b92, 0x0b95,
+ 0x0b99, 0x0b9a,
+ 0x0b9c, 0x0b9c,
+ 0x0b9e, 0x0b9f,
+ 0x0ba3, 0x0ba4,
+ 0x0ba8, 0x0baa,
+ 0x0bae, 0x0bb5,
+ 0x0bb7, 0x0bb9,
+ 0x0bbe, 0x0bc2,
+ 0x0bc6, 0x0bc8,
+ 0x0bca, 0x0bcd,
+ 0x0bd7, 0x0bd7,
+ 0x0be7, 0x0bf2,
+ 0x0c01, 0x0c03,
+ 0x0c05, 0x0c0c,
+ 0x0c0e, 0x0c10,
+ 0x0c12, 0x0c28,
+ 0x0c2a, 0x0c33,
+ 0x0c35, 0x0c39,
+ 0x0c3e, 0x0c44,
+ 0x0c46, 0x0c48,
+ 0x0c4a, 0x0c4d,
+ 0x0c55, 0x0c56,
+ 0x0c60, 0x0c61,
+ 0x0c66, 0x0c6f,
+ 0x0c82, 0x0c83,
+ 0x0c85, 0x0c8c,
+ 0x0c8e, 0x0c90,
+ 0x0c92, 0x0ca8,
+ 0x0caa, 0x0cb3,
+ 0x0cb5, 0x0cb9,
+ 0x0cbe, 0x0cc4,
+ 0x0cc6, 0x0cc8,
+ 0x0cca, 0x0ccd,
+ 0x0cd5, 0x0cd6,
+ 0x0cde, 0x0cde,
+ 0x0ce0, 0x0ce1,
+ 0x0ce6, 0x0cef,
+ 0x0d02, 0x0d03,
+ 0x0d05, 0x0d0c,
+ 0x0d0e, 0x0d10,
+ 0x0d12, 0x0d28,
+ 0x0d2a, 0x0d39,
+ 0x0d3e, 0x0d43,
+ 0x0d46, 0x0d48,
+ 0x0d4a, 0x0d4d,
+ 0x0d57, 0x0d57,
+ 0x0d60, 0x0d61,
+ 0x0d66, 0x0d6f,
+ 0x0d82, 0x0d83,
+ 0x0d85, 0x0d96,
+ 0x0d9a, 0x0db1,
+ 0x0db3, 0x0dbb,
+ 0x0dbd, 0x0dbd,
+ 0x0dc0, 0x0dc6,
+ 0x0dca, 0x0dca,
+ 0x0dcf, 0x0dd4,
+ 0x0dd6, 0x0dd6,
+ 0x0dd8, 0x0ddf,
+ 0x0df2, 0x0df4,
+ 0x0e01, 0x0e3a,
+ 0x0e3f, 0x0e5b,
+ 0x0e81, 0x0e82,
+ 0x0e84, 0x0e84,
+ 0x0e87, 0x0e88,
+ 0x0e8a, 0x0e8a,
+ 0x0e8d, 0x0e8d,
+ 0x0e94, 0x0e97,
+ 0x0e99, 0x0e9f,
+ 0x0ea1, 0x0ea3,
+ 0x0ea5, 0x0ea5,
+ 0x0ea7, 0x0ea7,
+ 0x0eaa, 0x0eab,
+ 0x0ead, 0x0eb9,
+ 0x0ebb, 0x0ebd,
+ 0x0ec0, 0x0ec4,
+ 0x0ec6, 0x0ec6,
+ 0x0ec8, 0x0ecd,
+ 0x0ed0, 0x0ed9,
+ 0x0edc, 0x0edd,
+ 0x0f00, 0x0f47,
+ 0x0f49, 0x0f6a,
+ 0x0f71, 0x0f8b,
+ 0x0f90, 0x0f97,
+ 0x0f99, 0x0fbc,
+ 0x0fbe, 0x0fcc,
+ 0x0fcf, 0x0fcf,
+ 0x1000, 0x1021,
+ 0x1023, 0x1027,
+ 0x1029, 0x102a,
+ 0x102c, 0x1032,
+ 0x1036, 0x1039,
+ 0x1040, 0x1059,
+ 0x10a0, 0x10c5,
+ 0x10d0, 0x10f8,
+ 0x10fb, 0x10fb,
+ 0x1100, 0x1159,
+ 0x115f, 0x11a2,
+ 0x11a8, 0x11f9,
+ 0x1200, 0x1206,
+ 0x1208, 0x1246,
+ 0x1248, 0x1248,
+ 0x124a, 0x124d,
+ 0x1250, 0x1256,
+ 0x1258, 0x1258,
+ 0x125a, 0x125d,
+ 0x1260, 0x1286,
+ 0x1288, 0x1288,
+ 0x128a, 0x128d,
+ 0x1290, 0x12ae,
+ 0x12b0, 0x12b0,
+ 0x12b2, 0x12b5,
+ 0x12b8, 0x12be,
+ 0x12c0, 0x12c0,
+ 0x12c2, 0x12c5,
+ 0x12c8, 0x12ce,
+ 0x12d0, 0x12d6,
+ 0x12d8, 0x12ee,
+ 0x12f0, 0x130e,
+ 0x1310, 0x1310,
+ 0x1312, 0x1315,
+ 0x1318, 0x131e,
+ 0x1320, 0x1346,
+ 0x1348, 0x135a,
+ 0x1361, 0x137c,
+ 0x13a0, 0x13f4,
+ 0x1401, 0x1676,
+ 0x1680, 0x169c,
+ 0x16a0, 0x16f0,
+ 0x1700, 0x170c,
+ 0x170e, 0x1714,
+ 0x1720, 0x1736,
+ 0x1740, 0x1753,
+ 0x1760, 0x176c,
+ 0x176e, 0x1770,
+ 0x1772, 0x1773,
+ 0x1780, 0x17dc,
+ 0x17e0, 0x17e9,
+ 0x1800, 0x180e,
+ 0x1810, 0x1819,
+ 0x1820, 0x1877,
+ 0x1880, 0x18a9,
+ 0x1e00, 0x1e9b,
+ 0x1ea0, 0x1ef9,
+ 0x1f00, 0x1f15,
+ 0x1f18, 0x1f1d,
+ 0x1f20, 0x1f45,
+ 0x1f48, 0x1f4d,
+ 0x1f50, 0x1f57,
+ 0x1f59, 0x1f59,
+ 0x1f5b, 0x1f5b,
+ 0x1f5d, 0x1f5d,
+ 0x1f5f, 0x1f7d,
+ 0x1f80, 0x1fb4,
+ 0x1fb6, 0x1fc4,
+ 0x1fc6, 0x1fd3,
+ 0x1fd6, 0x1fdb,
+ 0x1fdd, 0x1fef,
+ 0x1ff2, 0x1ff4,
+ 0x1ff6, 0x1ffe,
+ 0x2000, 0x2052,
+ 0x2057, 0x2057,
+ 0x205f, 0x2063,
+ 0x206a, 0x2071,
+ 0x2074, 0x208e,
+ 0x20a0, 0x20b1,
+ 0x20d0, 0x20ea,
+ 0x2100, 0x213a,
+ 0x213d, 0x214b,
+ 0x2153, 0x2183,
+ 0x2190, 0x23ce,
+ 0x2400, 0x2426,
+ 0x2440, 0x244a,
+ 0x2460, 0x24fe,
+ 0x2500, 0x2613,
+ 0x2616, 0x2617,
+ 0x2619, 0x267d,
+ 0x2680, 0x2689,
+ 0x2701, 0x2704,
+ 0x2706, 0x2709,
+ 0x270c, 0x2727,
+ 0x2729, 0x274b,
+ 0x274d, 0x274d,
+ 0x274f, 0x2752,
+ 0x2756, 0x2756,
+ 0x2758, 0x275e,
+ 0x2761, 0x2794,
+ 0x2798, 0x27af,
+ 0x27b1, 0x27be,
+ 0x27d0, 0x27eb,
+ 0x27f0, 0x2aff,
+ 0x2e80, 0x2e99,
+ 0x2e9b, 0x2ef3,
+ 0x2f00, 0x2fd5,
+ 0x2ff0, 0x2ffb,
+ 0x3000, 0x303f,
+ 0x3041, 0x3096,
+ 0x3099, 0x30ff,
+ 0x3105, 0x312c,
+ 0x3131, 0x318e,
+ 0x3190, 0x31b7,
+ 0x31f0, 0x321c,
+ 0x3220, 0x3243,
+ 0x3251, 0x327b,
+ 0x327f, 0x32cb,
+ 0x32d0, 0x32fe,
+ 0x3300, 0x3376,
+ 0x337b, 0x33dd,
+ 0x33e0, 0x33fe,
+ 0x3400, 0x4db5,
+ 0x4e00, 0x9fa5,
+ 0xa000, 0xa48c,
+ 0xa490, 0xa4c6,
+ 0xac00, 0xd7a3,
+ 0xd800, 0xfa2d,
+ 0xfa30, 0xfa6a,
+ 0xfb00, 0xfb06,
+ 0xfb13, 0xfb17,
+ 0xfb1d, 0xfb36,
+ 0xfb38, 0xfb3c,
+ 0xfb3e, 0xfb3e,
+ 0xfb40, 0xfb41,
+ 0xfb43, 0xfb44,
+ 0xfb46, 0xfbb1,
+ 0xfbd3, 0xfd3f,
+ 0xfd50, 0xfd8f,
+ 0xfd92, 0xfdc7,
+ 0xfdd0, 0xfdfc,
+ 0xfe00, 0xfe0f,
+ 0xfe20, 0xfe23,
+ 0xfe30, 0xfe46,
+ 0xfe49, 0xfe52,
+ 0xfe54, 0xfe66,
+ 0xfe68, 0xfe6b,
+ 0xfe70, 0xfe74,
+ 0xfe76, 0xfefc,
+ 0xfeff, 0xfeff,
+ 0xff01, 0xffbe,
+ 0xffc2, 0xffc7,
+ 0xffca, 0xffcf,
+ 0xffd2, 0xffd7,
+ 0xffda, 0xffdc,
+ 0xffe0, 0xffe6,
+ 0xffe8, 0xffee,
+ 0xfff9, 0xffff,
+ 0x10300, 0x1031e,
+ 0x10320, 0x10323,
+ 0x10330, 0x1034a,
+ 0x10400, 0x10425,
+ 0x10428, 0x1044d,
+ 0x1d000, 0x1d0f5,
+ 0x1d100, 0x1d126,
+ 0x1d12a, 0x1d1dd,
+ 0x1d400, 0x1d454,
+ 0x1d456, 0x1d49c,
+ 0x1d49e, 0x1d49f,
+ 0x1d4a2, 0x1d4a2,
+ 0x1d4a5, 0x1d4a6,
+ 0x1d4a9, 0x1d4ac,
+ 0x1d4ae, 0x1d4b9,
+ 0x1d4bb, 0x1d4bb,
+ 0x1d4bd, 0x1d4c0,
+ 0x1d4c2, 0x1d4c3,
+ 0x1d4c5, 0x1d505,
+ 0x1d507, 0x1d50a,
+ 0x1d50d, 0x1d514,
+ 0x1d516, 0x1d51c,
+ 0x1d51e, 0x1d539,
+ 0x1d53b, 0x1d53e,
+ 0x1d540, 0x1d544,
+ 0x1d546, 0x1d546,
+ 0x1d54a, 0x1d550,
+ 0x1d552, 0x1d6a3,
+ 0x1d6a8, 0x1d7c9,
+ 0x1d7ce, 0x1d7ff,
+ 0x1fffe, 0x2a6d6,
+ 0x2f800, 0x2fa1d,
+ 0x2fffe, 0x2ffff,
+ 0x3fffe, 0x3ffff,
+ 0x4fffe, 0x4ffff,
+ 0x5fffe, 0x5ffff,
+ 0x6fffe, 0x6ffff,
+ 0x7fffe, 0x7ffff,
+ 0x8fffe, 0x8ffff,
+ 0x9fffe, 0x9ffff,
+ 0xafffe, 0xaffff,
+ 0xbfffe, 0xbffff,
+ 0xcfffe, 0xcffff,
+ 0xdfffe, 0xdffff,
+ 0xe0001, 0xe0001,
+ 0xe0020, 0xe007f,
+ 0xefffe, 0x10ffff,
+}; /* CR_Age_3_2 */
+
+/* 'Age_4_0': Derived Age 4.0 */
+static const OnigCodePoint CR_Age_4_0[] = {
+ 412,
+ 0x0000, 0x0236,
+ 0x0250, 0x0357,
+ 0x035d, 0x036f,
+ 0x0374, 0x0375,
+ 0x037a, 0x037a,
+ 0x037e, 0x037e,
+ 0x0384, 0x038a,
+ 0x038c, 0x038c,
+ 0x038e, 0x03a1,
+ 0x03a3, 0x03ce,
+ 0x03d0, 0x03fb,
+ 0x0400, 0x0486,
+ 0x0488, 0x04ce,
+ 0x04d0, 0x04f5,
+ 0x04f8, 0x04f9,
+ 0x0500, 0x050f,
+ 0x0531, 0x0556,
+ 0x0559, 0x055f,
+ 0x0561, 0x0587,
+ 0x0589, 0x058a,
+ 0x0591, 0x05a1,
+ 0x05a3, 0x05b9,
+ 0x05bb, 0x05c4,
+ 0x05d0, 0x05ea,
+ 0x05f0, 0x05f4,
+ 0x0600, 0x0603,
+ 0x060c, 0x0615,
+ 0x061b, 0x061b,
+ 0x061f, 0x061f,
+ 0x0621, 0x063a,
+ 0x0640, 0x0658,
+ 0x0660, 0x070d,
+ 0x070f, 0x074a,
+ 0x074d, 0x074f,
+ 0x0780, 0x07b1,
+ 0x0901, 0x0939,
+ 0x093c, 0x094d,
+ 0x0950, 0x0954,
+ 0x0958, 0x0970,
+ 0x0981, 0x0983,
+ 0x0985, 0x098c,
+ 0x098f, 0x0990,
+ 0x0993, 0x09a8,
+ 0x09aa, 0x09b0,
+ 0x09b2, 0x09b2,
+ 0x09b6, 0x09b9,
+ 0x09bc, 0x09c4,
+ 0x09c7, 0x09c8,
+ 0x09cb, 0x09cd,
+ 0x09d7, 0x09d7,
+ 0x09dc, 0x09dd,
+ 0x09df, 0x09e3,
+ 0x09e6, 0x09fa,
+ 0x0a01, 0x0a03,
+ 0x0a05, 0x0a0a,
+ 0x0a0f, 0x0a10,
+ 0x0a13, 0x0a28,
+ 0x0a2a, 0x0a30,
+ 0x0a32, 0x0a33,
+ 0x0a35, 0x0a36,
+ 0x0a38, 0x0a39,
+ 0x0a3c, 0x0a3c,
+ 0x0a3e, 0x0a42,
+ 0x0a47, 0x0a48,
+ 0x0a4b, 0x0a4d,
+ 0x0a59, 0x0a5c,
+ 0x0a5e, 0x0a5e,
+ 0x0a66, 0x0a74,
+ 0x0a81, 0x0a83,
+ 0x0a85, 0x0a8d,
+ 0x0a8f, 0x0a91,
+ 0x0a93, 0x0aa8,
+ 0x0aaa, 0x0ab0,
+ 0x0ab2, 0x0ab3,
+ 0x0ab5, 0x0ab9,
+ 0x0abc, 0x0ac5,
+ 0x0ac7, 0x0ac9,
+ 0x0acb, 0x0acd,
+ 0x0ad0, 0x0ad0,
+ 0x0ae0, 0x0ae3,
+ 0x0ae6, 0x0aef,
+ 0x0af1, 0x0af1,
+ 0x0b01, 0x0b03,
+ 0x0b05, 0x0b0c,
+ 0x0b0f, 0x0b10,
+ 0x0b13, 0x0b28,
+ 0x0b2a, 0x0b30,
+ 0x0b32, 0x0b33,
+ 0x0b35, 0x0b39,
+ 0x0b3c, 0x0b43,
+ 0x0b47, 0x0b48,
+ 0x0b4b, 0x0b4d,
+ 0x0b56, 0x0b57,
+ 0x0b5c, 0x0b5d,
+ 0x0b5f, 0x0b61,
+ 0x0b66, 0x0b71,
+ 0x0b82, 0x0b83,
+ 0x0b85, 0x0b8a,
+ 0x0b8e, 0x0b90,
+ 0x0b92, 0x0b95,
+ 0x0b99, 0x0b9a,
+ 0x0b9c, 0x0b9c,
+ 0x0b9e, 0x0b9f,
+ 0x0ba3, 0x0ba4,
+ 0x0ba8, 0x0baa,
+ 0x0bae, 0x0bb5,
+ 0x0bb7, 0x0bb9,
+ 0x0bbe, 0x0bc2,
+ 0x0bc6, 0x0bc8,
+ 0x0bca, 0x0bcd,
+ 0x0bd7, 0x0bd7,
+ 0x0be7, 0x0bfa,
+ 0x0c01, 0x0c03,
+ 0x0c05, 0x0c0c,
+ 0x0c0e, 0x0c10,
+ 0x0c12, 0x0c28,
+ 0x0c2a, 0x0c33,
+ 0x0c35, 0x0c39,
+ 0x0c3e, 0x0c44,
+ 0x0c46, 0x0c48,
+ 0x0c4a, 0x0c4d,
+ 0x0c55, 0x0c56,
+ 0x0c60, 0x0c61,
+ 0x0c66, 0x0c6f,
+ 0x0c82, 0x0c83,
+ 0x0c85, 0x0c8c,
+ 0x0c8e, 0x0c90,
+ 0x0c92, 0x0ca8,
+ 0x0caa, 0x0cb3,
+ 0x0cb5, 0x0cb9,
+ 0x0cbc, 0x0cc4,
+ 0x0cc6, 0x0cc8,
+ 0x0cca, 0x0ccd,
+ 0x0cd5, 0x0cd6,
+ 0x0cde, 0x0cde,
+ 0x0ce0, 0x0ce1,
+ 0x0ce6, 0x0cef,
+ 0x0d02, 0x0d03,
+ 0x0d05, 0x0d0c,
+ 0x0d0e, 0x0d10,
+ 0x0d12, 0x0d28,
+ 0x0d2a, 0x0d39,
+ 0x0d3e, 0x0d43,
+ 0x0d46, 0x0d48,
+ 0x0d4a, 0x0d4d,
+ 0x0d57, 0x0d57,
+ 0x0d60, 0x0d61,
+ 0x0d66, 0x0d6f,
+ 0x0d82, 0x0d83,
+ 0x0d85, 0x0d96,
+ 0x0d9a, 0x0db1,
+ 0x0db3, 0x0dbb,
+ 0x0dbd, 0x0dbd,
+ 0x0dc0, 0x0dc6,
+ 0x0dca, 0x0dca,
+ 0x0dcf, 0x0dd4,
+ 0x0dd6, 0x0dd6,
+ 0x0dd8, 0x0ddf,
+ 0x0df2, 0x0df4,
+ 0x0e01, 0x0e3a,
+ 0x0e3f, 0x0e5b,
+ 0x0e81, 0x0e82,
+ 0x0e84, 0x0e84,
+ 0x0e87, 0x0e88,
+ 0x0e8a, 0x0e8a,
+ 0x0e8d, 0x0e8d,
+ 0x0e94, 0x0e97,
+ 0x0e99, 0x0e9f,
+ 0x0ea1, 0x0ea3,
+ 0x0ea5, 0x0ea5,
+ 0x0ea7, 0x0ea7,
+ 0x0eaa, 0x0eab,
+ 0x0ead, 0x0eb9,
+ 0x0ebb, 0x0ebd,
+ 0x0ec0, 0x0ec4,
+ 0x0ec6, 0x0ec6,
+ 0x0ec8, 0x0ecd,
+ 0x0ed0, 0x0ed9,
+ 0x0edc, 0x0edd,
+ 0x0f00, 0x0f47,
+ 0x0f49, 0x0f6a,
+ 0x0f71, 0x0f8b,
+ 0x0f90, 0x0f97,
+ 0x0f99, 0x0fbc,
+ 0x0fbe, 0x0fcc,
+ 0x0fcf, 0x0fcf,
+ 0x1000, 0x1021,
+ 0x1023, 0x1027,
+ 0x1029, 0x102a,
+ 0x102c, 0x1032,
+ 0x1036, 0x1039,
+ 0x1040, 0x1059,
+ 0x10a0, 0x10c5,
+ 0x10d0, 0x10f8,
+ 0x10fb, 0x10fb,
+ 0x1100, 0x1159,
+ 0x115f, 0x11a2,
+ 0x11a8, 0x11f9,
+ 0x1200, 0x1206,
+ 0x1208, 0x1246,
+ 0x1248, 0x1248,
+ 0x124a, 0x124d,
+ 0x1250, 0x1256,
+ 0x1258, 0x1258,
+ 0x125a, 0x125d,
+ 0x1260, 0x1286,
+ 0x1288, 0x1288,
+ 0x128a, 0x128d,
+ 0x1290, 0x12ae,
+ 0x12b0, 0x12b0,
+ 0x12b2, 0x12b5,
+ 0x12b8, 0x12be,
+ 0x12c0, 0x12c0,
+ 0x12c2, 0x12c5,
+ 0x12c8, 0x12ce,
+ 0x12d0, 0x12d6,
+ 0x12d8, 0x12ee,
+ 0x12f0, 0x130e,
+ 0x1310, 0x1310,
+ 0x1312, 0x1315,
+ 0x1318, 0x131e,
+ 0x1320, 0x1346,
+ 0x1348, 0x135a,
+ 0x1361, 0x137c,
+ 0x13a0, 0x13f4,
+ 0x1401, 0x1676,
+ 0x1680, 0x169c,
+ 0x16a0, 0x16f0,
+ 0x1700, 0x170c,
+ 0x170e, 0x1714,
+ 0x1720, 0x1736,
+ 0x1740, 0x1753,
+ 0x1760, 0x176c,
+ 0x176e, 0x1770,
+ 0x1772, 0x1773,
+ 0x1780, 0x17dd,
+ 0x17e0, 0x17e9,
+ 0x17f0, 0x17f9,
+ 0x1800, 0x180e,
+ 0x1810, 0x1819,
+ 0x1820, 0x1877,
+ 0x1880, 0x18a9,
+ 0x1900, 0x191c,
+ 0x1920, 0x192b,
+ 0x1930, 0x193b,
+ 0x1940, 0x1940,
+ 0x1944, 0x196d,
+ 0x1970, 0x1974,
+ 0x19e0, 0x19ff,
+ 0x1d00, 0x1d6b,
+ 0x1e00, 0x1e9b,
+ 0x1ea0, 0x1ef9,
+ 0x1f00, 0x1f15,
+ 0x1f18, 0x1f1d,
+ 0x1f20, 0x1f45,
+ 0x1f48, 0x1f4d,
+ 0x1f50, 0x1f57,
+ 0x1f59, 0x1f59,
+ 0x1f5b, 0x1f5b,
+ 0x1f5d, 0x1f5d,
+ 0x1f5f, 0x1f7d,
+ 0x1f80, 0x1fb4,
+ 0x1fb6, 0x1fc4,
+ 0x1fc6, 0x1fd3,
+ 0x1fd6, 0x1fdb,
+ 0x1fdd, 0x1fef,
+ 0x1ff2, 0x1ff4,
+ 0x1ff6, 0x1ffe,
+ 0x2000, 0x2054,
+ 0x2057, 0x2057,
+ 0x205f, 0x2063,
+ 0x206a, 0x2071,
+ 0x2074, 0x208e,
+ 0x20a0, 0x20b1,
+ 0x20d0, 0x20ea,
+ 0x2100, 0x213b,
+ 0x213d, 0x214b,
+ 0x2153, 0x2183,
+ 0x2190, 0x23d0,
+ 0x2400, 0x2426,
+ 0x2440, 0x244a,
+ 0x2460, 0x2617,
+ 0x2619, 0x267d,
+ 0x2680, 0x2691,
+ 0x26a0, 0x26a1,
+ 0x2701, 0x2704,
+ 0x2706, 0x2709,
+ 0x270c, 0x2727,
+ 0x2729, 0x274b,
+ 0x274d, 0x274d,
+ 0x274f, 0x2752,
+ 0x2756, 0x2756,
+ 0x2758, 0x275e,
+ 0x2761, 0x2794,
+ 0x2798, 0x27af,
+ 0x27b1, 0x27be,
+ 0x27d0, 0x27eb,
+ 0x27f0, 0x2b0d,
+ 0x2e80, 0x2e99,
+ 0x2e9b, 0x2ef3,
+ 0x2f00, 0x2fd5,
+ 0x2ff0, 0x2ffb,
+ 0x3000, 0x303f,
+ 0x3041, 0x3096,
+ 0x3099, 0x30ff,
+ 0x3105, 0x312c,
+ 0x3131, 0x318e,
+ 0x3190, 0x31b7,
+ 0x31f0, 0x321e,
+ 0x3220, 0x3243,
+ 0x3250, 0x327d,
+ 0x327f, 0x32fe,
+ 0x3300, 0x4db5,
+ 0x4dc0, 0x9fa5,
+ 0xa000, 0xa48c,
+ 0xa490, 0xa4c6,
+ 0xac00, 0xd7a3,
+ 0xd800, 0xfa2d,
+ 0xfa30, 0xfa6a,
+ 0xfb00, 0xfb06,
+ 0xfb13, 0xfb17,
+ 0xfb1d, 0xfb36,
+ 0xfb38, 0xfb3c,
+ 0xfb3e, 0xfb3e,
+ 0xfb40, 0xfb41,
+ 0xfb43, 0xfb44,
+ 0xfb46, 0xfbb1,
+ 0xfbd3, 0xfd3f,
+ 0xfd50, 0xfd8f,
+ 0xfd92, 0xfdc7,
+ 0xfdd0, 0xfdfd,
+ 0xfe00, 0xfe0f,
+ 0xfe20, 0xfe23,
+ 0xfe30, 0xfe52,
+ 0xfe54, 0xfe66,
+ 0xfe68, 0xfe6b,
+ 0xfe70, 0xfe74,
+ 0xfe76, 0xfefc,
+ 0xfeff, 0xfeff,
+ 0xff01, 0xffbe,
+ 0xffc2, 0xffc7,
+ 0xffca, 0xffcf,
+ 0xffd2, 0xffd7,
+ 0xffda, 0xffdc,
+ 0xffe0, 0xffe6,
+ 0xffe8, 0xffee,
+ 0xfff9, 0x1000b,
+ 0x1000d, 0x10026,
+ 0x10028, 0x1003a,
+ 0x1003c, 0x1003d,
+ 0x1003f, 0x1004d,
+ 0x10050, 0x1005d,
+ 0x10080, 0x100fa,
+ 0x10100, 0x10102,
+ 0x10107, 0x10133,
+ 0x10137, 0x1013f,
+ 0x10300, 0x1031e,
+ 0x10320, 0x10323,
+ 0x10330, 0x1034a,
+ 0x10380, 0x1039d,
+ 0x1039f, 0x1039f,
+ 0x10400, 0x1049d,
+ 0x104a0, 0x104a9,
+ 0x10800, 0x10805,
+ 0x10808, 0x10808,
+ 0x1080a, 0x10835,
+ 0x10837, 0x10838,
+ 0x1083c, 0x1083c,
+ 0x1083f, 0x1083f,
+ 0x1d000, 0x1d0f5,
+ 0x1d100, 0x1d126,
+ 0x1d12a, 0x1d1dd,
+ 0x1d300, 0x1d356,
+ 0x1d400, 0x1d454,
+ 0x1d456, 0x1d49c,
+ 0x1d49e, 0x1d49f,
+ 0x1d4a2, 0x1d4a2,
+ 0x1d4a5, 0x1d4a6,
+ 0x1d4a9, 0x1d4ac,
+ 0x1d4ae, 0x1d4b9,
+ 0x1d4bb, 0x1d4bb,
+ 0x1d4bd, 0x1d4c3,
+ 0x1d4c5, 0x1d505,
+ 0x1d507, 0x1d50a,
+ 0x1d50d, 0x1d514,
+ 0x1d516, 0x1d51c,
+ 0x1d51e, 0x1d539,
+ 0x1d53b, 0x1d53e,
+ 0x1d540, 0x1d544,
+ 0x1d546, 0x1d546,
+ 0x1d54a, 0x1d550,
+ 0x1d552, 0x1d6a3,
+ 0x1d6a8, 0x1d7c9,
+ 0x1d7ce, 0x1d7ff,
+ 0x1fffe, 0x2a6d6,
+ 0x2f800, 0x2fa1d,
+ 0x2fffe, 0x2ffff,
+ 0x3fffe, 0x3ffff,
+ 0x4fffe, 0x4ffff,
+ 0x5fffe, 0x5ffff,
+ 0x6fffe, 0x6ffff,
+ 0x7fffe, 0x7ffff,
+ 0x8fffe, 0x8ffff,
+ 0x9fffe, 0x9ffff,
+ 0xafffe, 0xaffff,
+ 0xbfffe, 0xbffff,
+ 0xcfffe, 0xcffff,
+ 0xdfffe, 0xdffff,
+ 0xe0001, 0xe0001,
+ 0xe0020, 0xe007f,
+ 0xe0100, 0xe01ef,
+ 0xefffe, 0x10ffff,
+}; /* CR_Age_4_0 */
+
+/* 'Age_4_1': Derived Age 4.1 */
+static const OnigCodePoint CR_Age_4_1[] = {
+ 430,
+ 0x0000, 0x0241,
+ 0x0250, 0x036f,
+ 0x0374, 0x0375,
+ 0x037a, 0x037a,
+ 0x037e, 0x037e,
+ 0x0384, 0x038a,
+ 0x038c, 0x038c,
+ 0x038e, 0x03a1,
+ 0x03a3, 0x03ce,
+ 0x03d0, 0x0486,
+ 0x0488, 0x04ce,
+ 0x04d0, 0x04f9,
+ 0x0500, 0x050f,
+ 0x0531, 0x0556,
+ 0x0559, 0x055f,
+ 0x0561, 0x0587,
+ 0x0589, 0x058a,
+ 0x0591, 0x05b9,
+ 0x05bb, 0x05c7,
+ 0x05d0, 0x05ea,
+ 0x05f0, 0x05f4,
+ 0x0600, 0x0603,
+ 0x060b, 0x0615,
+ 0x061b, 0x061b,
+ 0x061e, 0x061f,
+ 0x0621, 0x063a,
+ 0x0640, 0x065e,
+ 0x0660, 0x070d,
+ 0x070f, 0x074a,
+ 0x074d, 0x076d,
+ 0x0780, 0x07b1,
+ 0x0901, 0x0939,
+ 0x093c, 0x094d,
+ 0x0950, 0x0954,
+ 0x0958, 0x0970,
+ 0x097d, 0x097d,
+ 0x0981, 0x0983,
+ 0x0985, 0x098c,
+ 0x098f, 0x0990,
+ 0x0993, 0x09a8,
+ 0x09aa, 0x09b0,
+ 0x09b2, 0x09b2,
+ 0x09b6, 0x09b9,
+ 0x09bc, 0x09c4,
+ 0x09c7, 0x09c8,
+ 0x09cb, 0x09ce,
+ 0x09d7, 0x09d7,
+ 0x09dc, 0x09dd,
+ 0x09df, 0x09e3,
+ 0x09e6, 0x09fa,
+ 0x0a01, 0x0a03,
+ 0x0a05, 0x0a0a,
+ 0x0a0f, 0x0a10,
+ 0x0a13, 0x0a28,
+ 0x0a2a, 0x0a30,
+ 0x0a32, 0x0a33,
+ 0x0a35, 0x0a36,
+ 0x0a38, 0x0a39,
+ 0x0a3c, 0x0a3c,
+ 0x0a3e, 0x0a42,
+ 0x0a47, 0x0a48,
+ 0x0a4b, 0x0a4d,
+ 0x0a59, 0x0a5c,
+ 0x0a5e, 0x0a5e,
+ 0x0a66, 0x0a74,
+ 0x0a81, 0x0a83,
+ 0x0a85, 0x0a8d,
+ 0x0a8f, 0x0a91,
+ 0x0a93, 0x0aa8,
+ 0x0aaa, 0x0ab0,
+ 0x0ab2, 0x0ab3,
+ 0x0ab5, 0x0ab9,
+ 0x0abc, 0x0ac5,
+ 0x0ac7, 0x0ac9,
+ 0x0acb, 0x0acd,
+ 0x0ad0, 0x0ad0,
+ 0x0ae0, 0x0ae3,
+ 0x0ae6, 0x0aef,
+ 0x0af1, 0x0af1,
+ 0x0b01, 0x0b03,
+ 0x0b05, 0x0b0c,
+ 0x0b0f, 0x0b10,
+ 0x0b13, 0x0b28,
+ 0x0b2a, 0x0b30,
+ 0x0b32, 0x0b33,
+ 0x0b35, 0x0b39,
+ 0x0b3c, 0x0b43,
+ 0x0b47, 0x0b48,
+ 0x0b4b, 0x0b4d,
+ 0x0b56, 0x0b57,
+ 0x0b5c, 0x0b5d,
+ 0x0b5f, 0x0b61,
+ 0x0b66, 0x0b71,
+ 0x0b82, 0x0b83,
+ 0x0b85, 0x0b8a,
+ 0x0b8e, 0x0b90,
+ 0x0b92, 0x0b95,
+ 0x0b99, 0x0b9a,
+ 0x0b9c, 0x0b9c,
+ 0x0b9e, 0x0b9f,
+ 0x0ba3, 0x0ba4,
+ 0x0ba8, 0x0baa,
+ 0x0bae, 0x0bb9,
+ 0x0bbe, 0x0bc2,
+ 0x0bc6, 0x0bc8,
+ 0x0bca, 0x0bcd,
+ 0x0bd7, 0x0bd7,
+ 0x0be6, 0x0bfa,
+ 0x0c01, 0x0c03,
+ 0x0c05, 0x0c0c,
+ 0x0c0e, 0x0c10,
+ 0x0c12, 0x0c28,
+ 0x0c2a, 0x0c33,
+ 0x0c35, 0x0c39,
+ 0x0c3e, 0x0c44,
+ 0x0c46, 0x0c48,
+ 0x0c4a, 0x0c4d,
+ 0x0c55, 0x0c56,
+ 0x0c60, 0x0c61,
+ 0x0c66, 0x0c6f,
+ 0x0c82, 0x0c83,
+ 0x0c85, 0x0c8c,
+ 0x0c8e, 0x0c90,
+ 0x0c92, 0x0ca8,
+ 0x0caa, 0x0cb3,
+ 0x0cb5, 0x0cb9,
+ 0x0cbc, 0x0cc4,
+ 0x0cc6, 0x0cc8,
+ 0x0cca, 0x0ccd,
+ 0x0cd5, 0x0cd6,
+ 0x0cde, 0x0cde,
+ 0x0ce0, 0x0ce1,
+ 0x0ce6, 0x0cef,
+ 0x0d02, 0x0d03,
+ 0x0d05, 0x0d0c,
+ 0x0d0e, 0x0d10,
+ 0x0d12, 0x0d28,
+ 0x0d2a, 0x0d39,
+ 0x0d3e, 0x0d43,
+ 0x0d46, 0x0d48,
+ 0x0d4a, 0x0d4d,
+ 0x0d57, 0x0d57,
+ 0x0d60, 0x0d61,
+ 0x0d66, 0x0d6f,
+ 0x0d82, 0x0d83,
+ 0x0d85, 0x0d96,
+ 0x0d9a, 0x0db1,
+ 0x0db3, 0x0dbb,
+ 0x0dbd, 0x0dbd,
+ 0x0dc0, 0x0dc6,
+ 0x0dca, 0x0dca,
+ 0x0dcf, 0x0dd4,
+ 0x0dd6, 0x0dd6,
+ 0x0dd8, 0x0ddf,
+ 0x0df2, 0x0df4,
+ 0x0e01, 0x0e3a,
+ 0x0e3f, 0x0e5b,
+ 0x0e81, 0x0e82,
+ 0x0e84, 0x0e84,
+ 0x0e87, 0x0e88,
+ 0x0e8a, 0x0e8a,
+ 0x0e8d, 0x0e8d,
+ 0x0e94, 0x0e97,
+ 0x0e99, 0x0e9f,
+ 0x0ea1, 0x0ea3,
+ 0x0ea5, 0x0ea5,
+ 0x0ea7, 0x0ea7,
+ 0x0eaa, 0x0eab,
+ 0x0ead, 0x0eb9,
+ 0x0ebb, 0x0ebd,
+ 0x0ec0, 0x0ec4,
+ 0x0ec6, 0x0ec6,
+ 0x0ec8, 0x0ecd,
+ 0x0ed0, 0x0ed9,
+ 0x0edc, 0x0edd,
+ 0x0f00, 0x0f47,
+ 0x0f49, 0x0f6a,
+ 0x0f71, 0x0f8b,
+ 0x0f90, 0x0f97,
+ 0x0f99, 0x0fbc,
+ 0x0fbe, 0x0fcc,
+ 0x0fcf, 0x0fd1,
+ 0x1000, 0x1021,
+ 0x1023, 0x1027,
+ 0x1029, 0x102a,
+ 0x102c, 0x1032,
+ 0x1036, 0x1039,
+ 0x1040, 0x1059,
+ 0x10a0, 0x10c5,
+ 0x10d0, 0x10fc,
+ 0x1100, 0x1159,
+ 0x115f, 0x11a2,
+ 0x11a8, 0x11f9,
+ 0x1200, 0x1248,
+ 0x124a, 0x124d,
+ 0x1250, 0x1256,
+ 0x1258, 0x1258,
+ 0x125a, 0x125d,
+ 0x1260, 0x1288,
+ 0x128a, 0x128d,
+ 0x1290, 0x12b0,
+ 0x12b2, 0x12b5,
+ 0x12b8, 0x12be,
+ 0x12c0, 0x12c0,
+ 0x12c2, 0x12c5,
+ 0x12c8, 0x12d6,
+ 0x12d8, 0x1310,
+ 0x1312, 0x1315,
+ 0x1318, 0x135a,
+ 0x135f, 0x137c,
+ 0x1380, 0x1399,
+ 0x13a0, 0x13f4,
+ 0x1401, 0x1676,
+ 0x1680, 0x169c,
+ 0x16a0, 0x16f0,
+ 0x1700, 0x170c,
+ 0x170e, 0x1714,
+ 0x1720, 0x1736,
+ 0x1740, 0x1753,
+ 0x1760, 0x176c,
+ 0x176e, 0x1770,
+ 0x1772, 0x1773,
+ 0x1780, 0x17dd,
+ 0x17e0, 0x17e9,
+ 0x17f0, 0x17f9,
+ 0x1800, 0x180e,
+ 0x1810, 0x1819,
+ 0x1820, 0x1877,
+ 0x1880, 0x18a9,
+ 0x1900, 0x191c,
+ 0x1920, 0x192b,
+ 0x1930, 0x193b,
+ 0x1940, 0x1940,
+ 0x1944, 0x196d,
+ 0x1970, 0x1974,
+ 0x1980, 0x19a9,
+ 0x19b0, 0x19c9,
+ 0x19d0, 0x19d9,
+ 0x19de, 0x1a1b,
+ 0x1a1e, 0x1a1f,
+ 0x1d00, 0x1dc3,
+ 0x1e00, 0x1e9b,
+ 0x1ea0, 0x1ef9,
+ 0x1f00, 0x1f15,
+ 0x1f18, 0x1f1d,
+ 0x1f20, 0x1f45,
+ 0x1f48, 0x1f4d,
+ 0x1f50, 0x1f57,
+ 0x1f59, 0x1f59,
+ 0x1f5b, 0x1f5b,
+ 0x1f5d, 0x1f5d,
+ 0x1f5f, 0x1f7d,
+ 0x1f80, 0x1fb4,
+ 0x1fb6, 0x1fc4,
+ 0x1fc6, 0x1fd3,
+ 0x1fd6, 0x1fdb,
+ 0x1fdd, 0x1fef,
+ 0x1ff2, 0x1ff4,
+ 0x1ff6, 0x1ffe,
+ 0x2000, 0x2063,
+ 0x206a, 0x2071,
+ 0x2074, 0x208e,
+ 0x2090, 0x2094,
+ 0x20a0, 0x20b5,
+ 0x20d0, 0x20eb,
+ 0x2100, 0x214c,
+ 0x2153, 0x2183,
+ 0x2190, 0x23db,
+ 0x2400, 0x2426,
+ 0x2440, 0x244a,
+ 0x2460, 0x269c,
+ 0x26a0, 0x26b1,
+ 0x2701, 0x2704,
+ 0x2706, 0x2709,
+ 0x270c, 0x2727,
+ 0x2729, 0x274b,
+ 0x274d, 0x274d,
+ 0x274f, 0x2752,
+ 0x2756, 0x2756,
+ 0x2758, 0x275e,
+ 0x2761, 0x2794,
+ 0x2798, 0x27af,
+ 0x27b1, 0x27be,
+ 0x27c0, 0x27c6,
+ 0x27d0, 0x27eb,
+ 0x27f0, 0x2b13,
+ 0x2c00, 0x2c2e,
+ 0x2c30, 0x2c5e,
+ 0x2c80, 0x2cea,
+ 0x2cf9, 0x2d25,
+ 0x2d30, 0x2d65,
+ 0x2d6f, 0x2d6f,
+ 0x2d80, 0x2d96,
+ 0x2da0, 0x2da6,
+ 0x2da8, 0x2dae,
+ 0x2db0, 0x2db6,
+ 0x2db8, 0x2dbe,
+ 0x2dc0, 0x2dc6,
+ 0x2dc8, 0x2dce,
+ 0x2dd0, 0x2dd6,
+ 0x2dd8, 0x2dde,
+ 0x2e00, 0x2e17,
+ 0x2e1c, 0x2e1d,
+ 0x2e80, 0x2e99,
+ 0x2e9b, 0x2ef3,
+ 0x2f00, 0x2fd5,
+ 0x2ff0, 0x2ffb,
+ 0x3000, 0x303f,
+ 0x3041, 0x3096,
+ 0x3099, 0x30ff,
+ 0x3105, 0x312c,
+ 0x3131, 0x318e,
+ 0x3190, 0x31b7,
+ 0x31c0, 0x31cf,
+ 0x31f0, 0x321e,
+ 0x3220, 0x3243,
+ 0x3250, 0x32fe,
+ 0x3300, 0x4db5,
+ 0x4dc0, 0x9fbb,
+ 0xa000, 0xa48c,
+ 0xa490, 0xa4c6,
+ 0xa700, 0xa716,
+ 0xa800, 0xa82b,
+ 0xac00, 0xd7a3,
+ 0xd800, 0xfa2d,
+ 0xfa30, 0xfa6a,
+ 0xfa70, 0xfad9,
+ 0xfb00, 0xfb06,
+ 0xfb13, 0xfb17,
+ 0xfb1d, 0xfb36,
+ 0xfb38, 0xfb3c,
+ 0xfb3e, 0xfb3e,
+ 0xfb40, 0xfb41,
+ 0xfb43, 0xfb44,
+ 0xfb46, 0xfbb1,
+ 0xfbd3, 0xfd3f,
+ 0xfd50, 0xfd8f,
+ 0xfd92, 0xfdc7,
+ 0xfdd0, 0xfdfd,
+ 0xfe00, 0xfe19,
+ 0xfe20, 0xfe23,
+ 0xfe30, 0xfe52,
+ 0xfe54, 0xfe66,
+ 0xfe68, 0xfe6b,
+ 0xfe70, 0xfe74,
+ 0xfe76, 0xfefc,
+ 0xfeff, 0xfeff,
+ 0xff01, 0xffbe,
+ 0xffc2, 0xffc7,
+ 0xffca, 0xffcf,
+ 0xffd2, 0xffd7,
+ 0xffda, 0xffdc,
+ 0xffe0, 0xffe6,
+ 0xffe8, 0xffee,
+ 0xfff9, 0x1000b,
+ 0x1000d, 0x10026,
+ 0x10028, 0x1003a,
+ 0x1003c, 0x1003d,
+ 0x1003f, 0x1004d,
+ 0x10050, 0x1005d,
+ 0x10080, 0x100fa,
+ 0x10100, 0x10102,
+ 0x10107, 0x10133,
+ 0x10137, 0x1018a,
+ 0x10300, 0x1031e,
+ 0x10320, 0x10323,
+ 0x10330, 0x1034a,
+ 0x10380, 0x1039d,
+ 0x1039f, 0x103c3,
+ 0x103c8, 0x103d5,
+ 0x10400, 0x1049d,
+ 0x104a0, 0x104a9,
+ 0x10800, 0x10805,
+ 0x10808, 0x10808,
+ 0x1080a, 0x10835,
+ 0x10837, 0x10838,
+ 0x1083c, 0x1083c,
+ 0x1083f, 0x1083f,
+ 0x10a00, 0x10a03,
+ 0x10a05, 0x10a06,
+ 0x10a0c, 0x10a13,
+ 0x10a15, 0x10a17,
+ 0x10a19, 0x10a33,
+ 0x10a38, 0x10a3a,
+ 0x10a3f, 0x10a47,
+ 0x10a50, 0x10a58,
+ 0x1d000, 0x1d0f5,
+ 0x1d100, 0x1d126,
+ 0x1d12a, 0x1d1dd,
+ 0x1d200, 0x1d245,
+ 0x1d300, 0x1d356,
+ 0x1d400, 0x1d454,
+ 0x1d456, 0x1d49c,
+ 0x1d49e, 0x1d49f,
+ 0x1d4a2, 0x1d4a2,
+ 0x1d4a5, 0x1d4a6,
+ 0x1d4a9, 0x1d4ac,
+ 0x1d4ae, 0x1d4b9,
+ 0x1d4bb, 0x1d4bb,
+ 0x1d4bd, 0x1d4c3,
+ 0x1d4c5, 0x1d505,
+ 0x1d507, 0x1d50a,
+ 0x1d50d, 0x1d514,
+ 0x1d516, 0x1d51c,
+ 0x1d51e, 0x1d539,
+ 0x1d53b, 0x1d53e,
+ 0x1d540, 0x1d544,
+ 0x1d546, 0x1d546,
+ 0x1d54a, 0x1d550,
+ 0x1d552, 0x1d6a5,
+ 0x1d6a8, 0x1d7c9,
+ 0x1d7ce, 0x1d7ff,
+ 0x1fffe, 0x2a6d6,
+ 0x2f800, 0x2fa1d,
+ 0x2fffe, 0x2ffff,
+ 0x3fffe, 0x3ffff,
+ 0x4fffe, 0x4ffff,
+ 0x5fffe, 0x5ffff,
+ 0x6fffe, 0x6ffff,
+ 0x7fffe, 0x7ffff,
+ 0x8fffe, 0x8ffff,
+ 0x9fffe, 0x9ffff,
+ 0xafffe, 0xaffff,
+ 0xbfffe, 0xbffff,
+ 0xcfffe, 0xcffff,
+ 0xdfffe, 0xdffff,
+ 0xe0001, 0xe0001,
+ 0xe0020, 0xe007f,
+ 0xe0100, 0xe01ef,
+ 0xefffe, 0x10ffff,
+}; /* CR_Age_4_1 */
+
+/* 'Age_5_0': Derived Age 5.0 */
+static const OnigCodePoint CR_Age_5_0[] = {
+ 440,
+ 0x0000, 0x036f,
+ 0x0374, 0x0375,
+ 0x037a, 0x037e,
+ 0x0384, 0x038a,
+ 0x038c, 0x038c,
+ 0x038e, 0x03a1,
+ 0x03a3, 0x03ce,
+ 0x03d0, 0x0486,
+ 0x0488, 0x0513,
+ 0x0531, 0x0556,
+ 0x0559, 0x055f,
+ 0x0561, 0x0587,
+ 0x0589, 0x058a,
+ 0x0591, 0x05c7,
+ 0x05d0, 0x05ea,
+ 0x05f0, 0x05f4,
+ 0x0600, 0x0603,
+ 0x060b, 0x0615,
+ 0x061b, 0x061b,
+ 0x061e, 0x061f,
+ 0x0621, 0x063a,
+ 0x0640, 0x065e,
+ 0x0660, 0x070d,
+ 0x070f, 0x074a,
+ 0x074d, 0x076d,
+ 0x0780, 0x07b1,
+ 0x07c0, 0x07fa,
+ 0x0901, 0x0939,
+ 0x093c, 0x094d,
+ 0x0950, 0x0954,
+ 0x0958, 0x0970,
+ 0x097b, 0x097f,
+ 0x0981, 0x0983,
+ 0x0985, 0x098c,
+ 0x098f, 0x0990,
+ 0x0993, 0x09a8,
+ 0x09aa, 0x09b0,
+ 0x09b2, 0x09b2,
+ 0x09b6, 0x09b9,
+ 0x09bc, 0x09c4,
+ 0x09c7, 0x09c8,
+ 0x09cb, 0x09ce,
+ 0x09d7, 0x09d7,
+ 0x09dc, 0x09dd,
+ 0x09df, 0x09e3,
+ 0x09e6, 0x09fa,
+ 0x0a01, 0x0a03,
+ 0x0a05, 0x0a0a,
+ 0x0a0f, 0x0a10,
+ 0x0a13, 0x0a28,
+ 0x0a2a, 0x0a30,
+ 0x0a32, 0x0a33,
+ 0x0a35, 0x0a36,
+ 0x0a38, 0x0a39,
+ 0x0a3c, 0x0a3c,
+ 0x0a3e, 0x0a42,
+ 0x0a47, 0x0a48,
+ 0x0a4b, 0x0a4d,
+ 0x0a59, 0x0a5c,
+ 0x0a5e, 0x0a5e,
+ 0x0a66, 0x0a74,
+ 0x0a81, 0x0a83,
+ 0x0a85, 0x0a8d,
+ 0x0a8f, 0x0a91,
+ 0x0a93, 0x0aa8,
+ 0x0aaa, 0x0ab0,
+ 0x0ab2, 0x0ab3,
+ 0x0ab5, 0x0ab9,
+ 0x0abc, 0x0ac5,
+ 0x0ac7, 0x0ac9,
+ 0x0acb, 0x0acd,
+ 0x0ad0, 0x0ad0,
+ 0x0ae0, 0x0ae3,
+ 0x0ae6, 0x0aef,
+ 0x0af1, 0x0af1,
+ 0x0b01, 0x0b03,
+ 0x0b05, 0x0b0c,
+ 0x0b0f, 0x0b10,
+ 0x0b13, 0x0b28,
+ 0x0b2a, 0x0b30,
+ 0x0b32, 0x0b33,
+ 0x0b35, 0x0b39,
+ 0x0b3c, 0x0b43,
+ 0x0b47, 0x0b48,
+ 0x0b4b, 0x0b4d,
+ 0x0b56, 0x0b57,
+ 0x0b5c, 0x0b5d,
+ 0x0b5f, 0x0b61,
+ 0x0b66, 0x0b71,
+ 0x0b82, 0x0b83,
+ 0x0b85, 0x0b8a,
+ 0x0b8e, 0x0b90,
+ 0x0b92, 0x0b95,
+ 0x0b99, 0x0b9a,
+ 0x0b9c, 0x0b9c,
+ 0x0b9e, 0x0b9f,
+ 0x0ba3, 0x0ba4,
+ 0x0ba8, 0x0baa,
+ 0x0bae, 0x0bb9,
+ 0x0bbe, 0x0bc2,
+ 0x0bc6, 0x0bc8,
+ 0x0bca, 0x0bcd,
+ 0x0bd7, 0x0bd7,
+ 0x0be6, 0x0bfa,
+ 0x0c01, 0x0c03,
+ 0x0c05, 0x0c0c,
+ 0x0c0e, 0x0c10,
+ 0x0c12, 0x0c28,
+ 0x0c2a, 0x0c33,
+ 0x0c35, 0x0c39,
+ 0x0c3e, 0x0c44,
+ 0x0c46, 0x0c48,
+ 0x0c4a, 0x0c4d,
+ 0x0c55, 0x0c56,
+ 0x0c60, 0x0c61,
+ 0x0c66, 0x0c6f,
+ 0x0c82, 0x0c83,
+ 0x0c85, 0x0c8c,
+ 0x0c8e, 0x0c90,
+ 0x0c92, 0x0ca8,
+ 0x0caa, 0x0cb3,
+ 0x0cb5, 0x0cb9,
+ 0x0cbc, 0x0cc4,
+ 0x0cc6, 0x0cc8,
+ 0x0cca, 0x0ccd,
+ 0x0cd5, 0x0cd6,
+ 0x0cde, 0x0cde,
+ 0x0ce0, 0x0ce3,
+ 0x0ce6, 0x0cef,
+ 0x0cf1, 0x0cf2,
+ 0x0d02, 0x0d03,
+ 0x0d05, 0x0d0c,
+ 0x0d0e, 0x0d10,
+ 0x0d12, 0x0d28,
+ 0x0d2a, 0x0d39,
+ 0x0d3e, 0x0d43,
+ 0x0d46, 0x0d48,
+ 0x0d4a, 0x0d4d,
+ 0x0d57, 0x0d57,
+ 0x0d60, 0x0d61,
+ 0x0d66, 0x0d6f,
+ 0x0d82, 0x0d83,
+ 0x0d85, 0x0d96,
+ 0x0d9a, 0x0db1,
+ 0x0db3, 0x0dbb,
+ 0x0dbd, 0x0dbd,
+ 0x0dc0, 0x0dc6,
+ 0x0dca, 0x0dca,
+ 0x0dcf, 0x0dd4,
+ 0x0dd6, 0x0dd6,
+ 0x0dd8, 0x0ddf,
+ 0x0df2, 0x0df4,
+ 0x0e01, 0x0e3a,
+ 0x0e3f, 0x0e5b,
+ 0x0e81, 0x0e82,
+ 0x0e84, 0x0e84,
+ 0x0e87, 0x0e88,
+ 0x0e8a, 0x0e8a,
+ 0x0e8d, 0x0e8d,
+ 0x0e94, 0x0e97,
+ 0x0e99, 0x0e9f,
+ 0x0ea1, 0x0ea3,
+ 0x0ea5, 0x0ea5,
+ 0x0ea7, 0x0ea7,
+ 0x0eaa, 0x0eab,
+ 0x0ead, 0x0eb9,
+ 0x0ebb, 0x0ebd,
+ 0x0ec0, 0x0ec4,
+ 0x0ec6, 0x0ec6,
+ 0x0ec8, 0x0ecd,
+ 0x0ed0, 0x0ed9,
+ 0x0edc, 0x0edd,
+ 0x0f00, 0x0f47,
+ 0x0f49, 0x0f6a,
+ 0x0f71, 0x0f8b,
+ 0x0f90, 0x0f97,
+ 0x0f99, 0x0fbc,
+ 0x0fbe, 0x0fcc,
+ 0x0fcf, 0x0fd1,
+ 0x1000, 0x1021,
+ 0x1023, 0x1027,
+ 0x1029, 0x102a,
+ 0x102c, 0x1032,
+ 0x1036, 0x1039,
+ 0x1040, 0x1059,
+ 0x10a0, 0x10c5,
+ 0x10d0, 0x10fc,
+ 0x1100, 0x1159,
+ 0x115f, 0x11a2,
+ 0x11a8, 0x11f9,
+ 0x1200, 0x1248,
+ 0x124a, 0x124d,
+ 0x1250, 0x1256,
+ 0x1258, 0x1258,
+ 0x125a, 0x125d,
+ 0x1260, 0x1288,
+ 0x128a, 0x128d,
+ 0x1290, 0x12b0,
+ 0x12b2, 0x12b5,
+ 0x12b8, 0x12be,
+ 0x12c0, 0x12c0,
+ 0x12c2, 0x12c5,
+ 0x12c8, 0x12d6,
+ 0x12d8, 0x1310,
+ 0x1312, 0x1315,
+ 0x1318, 0x135a,
+ 0x135f, 0x137c,
+ 0x1380, 0x1399,
+ 0x13a0, 0x13f4,
+ 0x1401, 0x1676,
+ 0x1680, 0x169c,
+ 0x16a0, 0x16f0,
+ 0x1700, 0x170c,
+ 0x170e, 0x1714,
+ 0x1720, 0x1736,
+ 0x1740, 0x1753,
+ 0x1760, 0x176c,
+ 0x176e, 0x1770,
+ 0x1772, 0x1773,
+ 0x1780, 0x17dd,
+ 0x17e0, 0x17e9,
+ 0x17f0, 0x17f9,
+ 0x1800, 0x180e,
+ 0x1810, 0x1819,
+ 0x1820, 0x1877,
+ 0x1880, 0x18a9,
+ 0x1900, 0x191c,
+ 0x1920, 0x192b,
+ 0x1930, 0x193b,
+ 0x1940, 0x1940,
+ 0x1944, 0x196d,
+ 0x1970, 0x1974,
+ 0x1980, 0x19a9,
+ 0x19b0, 0x19c9,
+ 0x19d0, 0x19d9,
+ 0x19de, 0x1a1b,
+ 0x1a1e, 0x1a1f,
+ 0x1b00, 0x1b4b,
+ 0x1b50, 0x1b7c,
+ 0x1d00, 0x1dca,
+ 0x1dfe, 0x1e9b,
+ 0x1ea0, 0x1ef9,
+ 0x1f00, 0x1f15,
+ 0x1f18, 0x1f1d,
+ 0x1f20, 0x1f45,
+ 0x1f48, 0x1f4d,
+ 0x1f50, 0x1f57,
+ 0x1f59, 0x1f59,
+ 0x1f5b, 0x1f5b,
+ 0x1f5d, 0x1f5d,
+ 0x1f5f, 0x1f7d,
+ 0x1f80, 0x1fb4,
+ 0x1fb6, 0x1fc4,
+ 0x1fc6, 0x1fd3,
+ 0x1fd6, 0x1fdb,
+ 0x1fdd, 0x1fef,
+ 0x1ff2, 0x1ff4,
+ 0x1ff6, 0x1ffe,
+ 0x2000, 0x2063,
+ 0x206a, 0x2071,
+ 0x2074, 0x208e,
+ 0x2090, 0x2094,
+ 0x20a0, 0x20b5,
+ 0x20d0, 0x20ef,
+ 0x2100, 0x214e,
+ 0x2153, 0x2184,
+ 0x2190, 0x23e7,
+ 0x2400, 0x2426,
+ 0x2440, 0x244a,
+ 0x2460, 0x269c,
+ 0x26a0, 0x26b2,
+ 0x2701, 0x2704,
+ 0x2706, 0x2709,
+ 0x270c, 0x2727,
+ 0x2729, 0x274b,
+ 0x274d, 0x274d,
+ 0x274f, 0x2752,
+ 0x2756, 0x2756,
+ 0x2758, 0x275e,
+ 0x2761, 0x2794,
+ 0x2798, 0x27af,
+ 0x27b1, 0x27be,
+ 0x27c0, 0x27ca,
+ 0x27d0, 0x27eb,
+ 0x27f0, 0x2b1a,
+ 0x2b20, 0x2b23,
+ 0x2c00, 0x2c2e,
+ 0x2c30, 0x2c5e,
+ 0x2c60, 0x2c6c,
+ 0x2c74, 0x2c77,
+ 0x2c80, 0x2cea,
+ 0x2cf9, 0x2d25,
+ 0x2d30, 0x2d65,
+ 0x2d6f, 0x2d6f,
+ 0x2d80, 0x2d96,
+ 0x2da0, 0x2da6,
+ 0x2da8, 0x2dae,
+ 0x2db0, 0x2db6,
+ 0x2db8, 0x2dbe,
+ 0x2dc0, 0x2dc6,
+ 0x2dc8, 0x2dce,
+ 0x2dd0, 0x2dd6,
+ 0x2dd8, 0x2dde,
+ 0x2e00, 0x2e17,
+ 0x2e1c, 0x2e1d,
+ 0x2e80, 0x2e99,
+ 0x2e9b, 0x2ef3,
+ 0x2f00, 0x2fd5,
+ 0x2ff0, 0x2ffb,
+ 0x3000, 0x303f,
+ 0x3041, 0x3096,
+ 0x3099, 0x30ff,
+ 0x3105, 0x312c,
+ 0x3131, 0x318e,
+ 0x3190, 0x31b7,
+ 0x31c0, 0x31cf,
+ 0x31f0, 0x321e,
+ 0x3220, 0x3243,
+ 0x3250, 0x32fe,
+ 0x3300, 0x4db5,
+ 0x4dc0, 0x9fbb,
+ 0xa000, 0xa48c,
+ 0xa490, 0xa4c6,
+ 0xa700, 0xa71a,
+ 0xa720, 0xa721,
+ 0xa800, 0xa82b,
+ 0xa840, 0xa877,
+ 0xac00, 0xd7a3,
+ 0xd800, 0xfa2d,
+ 0xfa30, 0xfa6a,
+ 0xfa70, 0xfad9,
+ 0xfb00, 0xfb06,
+ 0xfb13, 0xfb17,
+ 0xfb1d, 0xfb36,
+ 0xfb38, 0xfb3c,
+ 0xfb3e, 0xfb3e,
+ 0xfb40, 0xfb41,
+ 0xfb43, 0xfb44,
+ 0xfb46, 0xfbb1,
+ 0xfbd3, 0xfd3f,
+ 0xfd50, 0xfd8f,
+ 0xfd92, 0xfdc7,
+ 0xfdd0, 0xfdfd,
+ 0xfe00, 0xfe19,
+ 0xfe20, 0xfe23,
+ 0xfe30, 0xfe52,
+ 0xfe54, 0xfe66,
+ 0xfe68, 0xfe6b,
+ 0xfe70, 0xfe74,
+ 0xfe76, 0xfefc,
+ 0xfeff, 0xfeff,
+ 0xff01, 0xffbe,
+ 0xffc2, 0xffc7,
+ 0xffca, 0xffcf,
+ 0xffd2, 0xffd7,
+ 0xffda, 0xffdc,
+ 0xffe0, 0xffe6,
+ 0xffe8, 0xffee,
+ 0xfff9, 0x1000b,
+ 0x1000d, 0x10026,
+ 0x10028, 0x1003a,
+ 0x1003c, 0x1003d,
+ 0x1003f, 0x1004d,
+ 0x10050, 0x1005d,
+ 0x10080, 0x100fa,
+ 0x10100, 0x10102,
+ 0x10107, 0x10133,
+ 0x10137, 0x1018a,
+ 0x10300, 0x1031e,
+ 0x10320, 0x10323,
+ 0x10330, 0x1034a,
+ 0x10380, 0x1039d,
+ 0x1039f, 0x103c3,
+ 0x103c8, 0x103d5,
+ 0x10400, 0x1049d,
+ 0x104a0, 0x104a9,
+ 0x10800, 0x10805,
+ 0x10808, 0x10808,
+ 0x1080a, 0x10835,
+ 0x10837, 0x10838,
+ 0x1083c, 0x1083c,
+ 0x1083f, 0x1083f,
+ 0x10900, 0x10919,
+ 0x1091f, 0x1091f,
+ 0x10a00, 0x10a03,
+ 0x10a05, 0x10a06,
+ 0x10a0c, 0x10a13,
+ 0x10a15, 0x10a17,
+ 0x10a19, 0x10a33,
+ 0x10a38, 0x10a3a,
+ 0x10a3f, 0x10a47,
+ 0x10a50, 0x10a58,
+ 0x12000, 0x1236e,
+ 0x12400, 0x12462,
+ 0x12470, 0x12473,
+ 0x1d000, 0x1d0f5,
+ 0x1d100, 0x1d126,
+ 0x1d12a, 0x1d1dd,
+ 0x1d200, 0x1d245,
+ 0x1d300, 0x1d356,
+ 0x1d360, 0x1d371,
+ 0x1d400, 0x1d454,
+ 0x1d456, 0x1d49c,
+ 0x1d49e, 0x1d49f,
+ 0x1d4a2, 0x1d4a2,
+ 0x1d4a5, 0x1d4a6,
+ 0x1d4a9, 0x1d4ac,
+ 0x1d4ae, 0x1d4b9,
+ 0x1d4bb, 0x1d4bb,
+ 0x1d4bd, 0x1d4c3,
+ 0x1d4c5, 0x1d505,
+ 0x1d507, 0x1d50a,
+ 0x1d50d, 0x1d514,
+ 0x1d516, 0x1d51c,
+ 0x1d51e, 0x1d539,
+ 0x1d53b, 0x1d53e,
+ 0x1d540, 0x1d544,
+ 0x1d546, 0x1d546,
+ 0x1d54a, 0x1d550,
+ 0x1d552, 0x1d6a5,
+ 0x1d6a8, 0x1d7cb,
+ 0x1d7ce, 0x1d7ff,
+ 0x1fffe, 0x2a6d6,
+ 0x2f800, 0x2fa1d,
+ 0x2fffe, 0x2ffff,
+ 0x3fffe, 0x3ffff,
+ 0x4fffe, 0x4ffff,
+ 0x5fffe, 0x5ffff,
+ 0x6fffe, 0x6ffff,
+ 0x7fffe, 0x7ffff,
+ 0x8fffe, 0x8ffff,
+ 0x9fffe, 0x9ffff,
+ 0xafffe, 0xaffff,
+ 0xbfffe, 0xbffff,
+ 0xcfffe, 0xcffff,
+ 0xdfffe, 0xdffff,
+ 0xe0001, 0xe0001,
+ 0xe0020, 0xe007f,
+ 0xe0100, 0xe01ef,
+ 0xefffe, 0x10ffff,
+}; /* CR_Age_5_0 */
+
+/* 'Age_5_1': Derived Age 5.1 */
+static const OnigCodePoint CR_Age_5_1[] = {
+ 455,
+ 0x0000, 0x0377,
+ 0x037a, 0x037e,
+ 0x0384, 0x038a,
+ 0x038c, 0x038c,
+ 0x038e, 0x03a1,
+ 0x03a3, 0x0523,
+ 0x0531, 0x0556,
+ 0x0559, 0x055f,
+ 0x0561, 0x0587,
+ 0x0589, 0x058a,
+ 0x0591, 0x05c7,
+ 0x05d0, 0x05ea,
+ 0x05f0, 0x05f4,
+ 0x0600, 0x0603,
+ 0x0606, 0x061b,
+ 0x061e, 0x061f,
+ 0x0621, 0x065e,
+ 0x0660, 0x070d,
+ 0x070f, 0x074a,
+ 0x074d, 0x07b1,
+ 0x07c0, 0x07fa,
+ 0x0901, 0x0939,
+ 0x093c, 0x094d,
+ 0x0950, 0x0954,
+ 0x0958, 0x0972,
+ 0x097b, 0x097f,
+ 0x0981, 0x0983,
+ 0x0985, 0x098c,
+ 0x098f, 0x0990,
+ 0x0993, 0x09a8,
+ 0x09aa, 0x09b0,
+ 0x09b2, 0x09b2,
+ 0x09b6, 0x09b9,
+ 0x09bc, 0x09c4,
+ 0x09c7, 0x09c8,
+ 0x09cb, 0x09ce,
+ 0x09d7, 0x09d7,
+ 0x09dc, 0x09dd,
+ 0x09df, 0x09e3,
+ 0x09e6, 0x09fa,
+ 0x0a01, 0x0a03,
+ 0x0a05, 0x0a0a,
+ 0x0a0f, 0x0a10,
+ 0x0a13, 0x0a28,
+ 0x0a2a, 0x0a30,
+ 0x0a32, 0x0a33,
+ 0x0a35, 0x0a36,
+ 0x0a38, 0x0a39,
+ 0x0a3c, 0x0a3c,
+ 0x0a3e, 0x0a42,
+ 0x0a47, 0x0a48,
+ 0x0a4b, 0x0a4d,
+ 0x0a51, 0x0a51,
+ 0x0a59, 0x0a5c,
+ 0x0a5e, 0x0a5e,
+ 0x0a66, 0x0a75,
+ 0x0a81, 0x0a83,
+ 0x0a85, 0x0a8d,
+ 0x0a8f, 0x0a91,
+ 0x0a93, 0x0aa8,
+ 0x0aaa, 0x0ab0,
+ 0x0ab2, 0x0ab3,
+ 0x0ab5, 0x0ab9,
+ 0x0abc, 0x0ac5,
+ 0x0ac7, 0x0ac9,
+ 0x0acb, 0x0acd,
+ 0x0ad0, 0x0ad0,
+ 0x0ae0, 0x0ae3,
+ 0x0ae6, 0x0aef,
+ 0x0af1, 0x0af1,
+ 0x0b01, 0x0b03,
+ 0x0b05, 0x0b0c,
+ 0x0b0f, 0x0b10,
+ 0x0b13, 0x0b28,
+ 0x0b2a, 0x0b30,
+ 0x0b32, 0x0b33,
+ 0x0b35, 0x0b39,
+ 0x0b3c, 0x0b44,
+ 0x0b47, 0x0b48,
+ 0x0b4b, 0x0b4d,
+ 0x0b56, 0x0b57,
+ 0x0b5c, 0x0b5d,
+ 0x0b5f, 0x0b63,
+ 0x0b66, 0x0b71,
+ 0x0b82, 0x0b83,
+ 0x0b85, 0x0b8a,
+ 0x0b8e, 0x0b90,
+ 0x0b92, 0x0b95,
+ 0x0b99, 0x0b9a,
+ 0x0b9c, 0x0b9c,
+ 0x0b9e, 0x0b9f,
+ 0x0ba3, 0x0ba4,
+ 0x0ba8, 0x0baa,
+ 0x0bae, 0x0bb9,
+ 0x0bbe, 0x0bc2,
+ 0x0bc6, 0x0bc8,
+ 0x0bca, 0x0bcd,
+ 0x0bd0, 0x0bd0,
+ 0x0bd7, 0x0bd7,
+ 0x0be6, 0x0bfa,
+ 0x0c01, 0x0c03,
+ 0x0c05, 0x0c0c,
+ 0x0c0e, 0x0c10,
+ 0x0c12, 0x0c28,
+ 0x0c2a, 0x0c33,
+ 0x0c35, 0x0c39,
+ 0x0c3d, 0x0c44,
+ 0x0c46, 0x0c48,
+ 0x0c4a, 0x0c4d,
+ 0x0c55, 0x0c56,
+ 0x0c58, 0x0c59,
+ 0x0c60, 0x0c63,
+ 0x0c66, 0x0c6f,
+ 0x0c78, 0x0c7f,
+ 0x0c82, 0x0c83,
+ 0x0c85, 0x0c8c,
+ 0x0c8e, 0x0c90,
+ 0x0c92, 0x0ca8,
+ 0x0caa, 0x0cb3,
+ 0x0cb5, 0x0cb9,
+ 0x0cbc, 0x0cc4,
+ 0x0cc6, 0x0cc8,
+ 0x0cca, 0x0ccd,
+ 0x0cd5, 0x0cd6,
+ 0x0cde, 0x0cde,
+ 0x0ce0, 0x0ce3,
+ 0x0ce6, 0x0cef,
+ 0x0cf1, 0x0cf2,
+ 0x0d02, 0x0d03,
+ 0x0d05, 0x0d0c,
+ 0x0d0e, 0x0d10,
+ 0x0d12, 0x0d28,
+ 0x0d2a, 0x0d39,
+ 0x0d3d, 0x0d44,
+ 0x0d46, 0x0d48,
+ 0x0d4a, 0x0d4d,
+ 0x0d57, 0x0d57,
+ 0x0d60, 0x0d63,
+ 0x0d66, 0x0d75,
+ 0x0d79, 0x0d7f,
+ 0x0d82, 0x0d83,
+ 0x0d85, 0x0d96,
+ 0x0d9a, 0x0db1,
+ 0x0db3, 0x0dbb,
+ 0x0dbd, 0x0dbd,
+ 0x0dc0, 0x0dc6,
+ 0x0dca, 0x0dca,
+ 0x0dcf, 0x0dd4,
+ 0x0dd6, 0x0dd6,
+ 0x0dd8, 0x0ddf,
+ 0x0df2, 0x0df4,
+ 0x0e01, 0x0e3a,
+ 0x0e3f, 0x0e5b,
+ 0x0e81, 0x0e82,
+ 0x0e84, 0x0e84,
+ 0x0e87, 0x0e88,
+ 0x0e8a, 0x0e8a,
+ 0x0e8d, 0x0e8d,
+ 0x0e94, 0x0e97,
+ 0x0e99, 0x0e9f,
+ 0x0ea1, 0x0ea3,
+ 0x0ea5, 0x0ea5,
+ 0x0ea7, 0x0ea7,
+ 0x0eaa, 0x0eab,
+ 0x0ead, 0x0eb9,
+ 0x0ebb, 0x0ebd,
+ 0x0ec0, 0x0ec4,
+ 0x0ec6, 0x0ec6,
+ 0x0ec8, 0x0ecd,
+ 0x0ed0, 0x0ed9,
+ 0x0edc, 0x0edd,
+ 0x0f00, 0x0f47,
+ 0x0f49, 0x0f6c,
+ 0x0f71, 0x0f8b,
+ 0x0f90, 0x0f97,
+ 0x0f99, 0x0fbc,
+ 0x0fbe, 0x0fcc,
+ 0x0fce, 0x0fd4,
+ 0x1000, 0x1099,
+ 0x109e, 0x10c5,
+ 0x10d0, 0x10fc,
+ 0x1100, 0x1159,
+ 0x115f, 0x11a2,
+ 0x11a8, 0x11f9,
+ 0x1200, 0x1248,
+ 0x124a, 0x124d,
+ 0x1250, 0x1256,
+ 0x1258, 0x1258,
+ 0x125a, 0x125d,
+ 0x1260, 0x1288,
+ 0x128a, 0x128d,
+ 0x1290, 0x12b0,
+ 0x12b2, 0x12b5,
+ 0x12b8, 0x12be,
+ 0x12c0, 0x12c0,
+ 0x12c2, 0x12c5,
+ 0x12c8, 0x12d6,
+ 0x12d8, 0x1310,
+ 0x1312, 0x1315,
+ 0x1318, 0x135a,
+ 0x135f, 0x137c,
+ 0x1380, 0x1399,
+ 0x13a0, 0x13f4,
+ 0x1401, 0x1676,
+ 0x1680, 0x169c,
+ 0x16a0, 0x16f0,
+ 0x1700, 0x170c,
+ 0x170e, 0x1714,
+ 0x1720, 0x1736,
+ 0x1740, 0x1753,
+ 0x1760, 0x176c,
+ 0x176e, 0x1770,
+ 0x1772, 0x1773,
+ 0x1780, 0x17dd,
+ 0x17e0, 0x17e9,
+ 0x17f0, 0x17f9,
+ 0x1800, 0x180e,
+ 0x1810, 0x1819,
+ 0x1820, 0x1877,
+ 0x1880, 0x18aa,
+ 0x1900, 0x191c,
+ 0x1920, 0x192b,
+ 0x1930, 0x193b,
+ 0x1940, 0x1940,
+ 0x1944, 0x196d,
+ 0x1970, 0x1974,
+ 0x1980, 0x19a9,
+ 0x19b0, 0x19c9,
+ 0x19d0, 0x19d9,
+ 0x19de, 0x1a1b,
+ 0x1a1e, 0x1a1f,
+ 0x1b00, 0x1b4b,
+ 0x1b50, 0x1b7c,
+ 0x1b80, 0x1baa,
+ 0x1bae, 0x1bb9,
+ 0x1c00, 0x1c37,
+ 0x1c3b, 0x1c49,
+ 0x1c4d, 0x1c7f,
+ 0x1d00, 0x1de6,
+ 0x1dfe, 0x1f15,
+ 0x1f18, 0x1f1d,
+ 0x1f20, 0x1f45,
+ 0x1f48, 0x1f4d,
+ 0x1f50, 0x1f57,
+ 0x1f59, 0x1f59,
+ 0x1f5b, 0x1f5b,
+ 0x1f5d, 0x1f5d,
+ 0x1f5f, 0x1f7d,
+ 0x1f80, 0x1fb4,
+ 0x1fb6, 0x1fc4,
+ 0x1fc6, 0x1fd3,
+ 0x1fd6, 0x1fdb,
+ 0x1fdd, 0x1fef,
+ 0x1ff2, 0x1ff4,
+ 0x1ff6, 0x1ffe,
+ 0x2000, 0x2064,
+ 0x206a, 0x2071,
+ 0x2074, 0x208e,
+ 0x2090, 0x2094,
+ 0x20a0, 0x20b5,
+ 0x20d0, 0x20f0,
+ 0x2100, 0x214f,
+ 0x2153, 0x2188,
+ 0x2190, 0x23e7,
+ 0x2400, 0x2426,
+ 0x2440, 0x244a,
+ 0x2460, 0x269d,
+ 0x26a0, 0x26bc,
+ 0x26c0, 0x26c3,
+ 0x2701, 0x2704,
+ 0x2706, 0x2709,
+ 0x270c, 0x2727,
+ 0x2729, 0x274b,
+ 0x274d, 0x274d,
+ 0x274f, 0x2752,
+ 0x2756, 0x2756,
+ 0x2758, 0x275e,
+ 0x2761, 0x2794,
+ 0x2798, 0x27af,
+ 0x27b1, 0x27be,
+ 0x27c0, 0x27ca,
+ 0x27cc, 0x27cc,
+ 0x27d0, 0x2b4c,
+ 0x2b50, 0x2b54,
+ 0x2c00, 0x2c2e,
+ 0x2c30, 0x2c5e,
+ 0x2c60, 0x2c6f,
+ 0x2c71, 0x2c7d,
+ 0x2c80, 0x2cea,
+ 0x2cf9, 0x2d25,
+ 0x2d30, 0x2d65,
+ 0x2d6f, 0x2d6f,
+ 0x2d80, 0x2d96,
+ 0x2da0, 0x2da6,
+ 0x2da8, 0x2dae,
+ 0x2db0, 0x2db6,
+ 0x2db8, 0x2dbe,
+ 0x2dc0, 0x2dc6,
+ 0x2dc8, 0x2dce,
+ 0x2dd0, 0x2dd6,
+ 0x2dd8, 0x2dde,
+ 0x2de0, 0x2e30,
+ 0x2e80, 0x2e99,
+ 0x2e9b, 0x2ef3,
+ 0x2f00, 0x2fd5,
+ 0x2ff0, 0x2ffb,
+ 0x3000, 0x303f,
+ 0x3041, 0x3096,
+ 0x3099, 0x30ff,
+ 0x3105, 0x312d,
+ 0x3131, 0x318e,
+ 0x3190, 0x31b7,
+ 0x31c0, 0x31e3,
+ 0x31f0, 0x321e,
+ 0x3220, 0x3243,
+ 0x3250, 0x32fe,
+ 0x3300, 0x4db5,
+ 0x4dc0, 0x9fc3,
+ 0xa000, 0xa48c,
+ 0xa490, 0xa4c6,
+ 0xa500, 0xa62b,
+ 0xa640, 0xa65f,
+ 0xa662, 0xa673,
+ 0xa67c, 0xa697,
+ 0xa700, 0xa78c,
+ 0xa7fb, 0xa82b,
+ 0xa840, 0xa877,
+ 0xa880, 0xa8c4,
+ 0xa8ce, 0xa8d9,
+ 0xa900, 0xa953,
+ 0xa95f, 0xa95f,
+ 0xaa00, 0xaa36,
+ 0xaa40, 0xaa4d,
+ 0xaa50, 0xaa59,
+ 0xaa5c, 0xaa5f,
+ 0xac00, 0xd7a3,
+ 0xd800, 0xfa2d,
+ 0xfa30, 0xfa6a,
+ 0xfa70, 0xfad9,
+ 0xfb00, 0xfb06,
+ 0xfb13, 0xfb17,
+ 0xfb1d, 0xfb36,
+ 0xfb38, 0xfb3c,
+ 0xfb3e, 0xfb3e,
+ 0xfb40, 0xfb41,
+ 0xfb43, 0xfb44,
+ 0xfb46, 0xfbb1,
+ 0xfbd3, 0xfd3f,
+ 0xfd50, 0xfd8f,
+ 0xfd92, 0xfdc7,
+ 0xfdd0, 0xfdfd,
+ 0xfe00, 0xfe19,
+ 0xfe20, 0xfe26,
+ 0xfe30, 0xfe52,
+ 0xfe54, 0xfe66,
+ 0xfe68, 0xfe6b,
+ 0xfe70, 0xfe74,
+ 0xfe76, 0xfefc,
+ 0xfeff, 0xfeff,
+ 0xff01, 0xffbe,
+ 0xffc2, 0xffc7,
+ 0xffca, 0xffcf,
+ 0xffd2, 0xffd7,
+ 0xffda, 0xffdc,
+ 0xffe0, 0xffe6,
+ 0xffe8, 0xffee,
+ 0xfff9, 0x1000b,
+ 0x1000d, 0x10026,
+ 0x10028, 0x1003a,
+ 0x1003c, 0x1003d,
+ 0x1003f, 0x1004d,
+ 0x10050, 0x1005d,
+ 0x10080, 0x100fa,
+ 0x10100, 0x10102,
+ 0x10107, 0x10133,
+ 0x10137, 0x1018a,
+ 0x10190, 0x1019b,
+ 0x101d0, 0x101fd,
+ 0x10280, 0x1029c,
+ 0x102a0, 0x102d0,
+ 0x10300, 0x1031e,
+ 0x10320, 0x10323,
+ 0x10330, 0x1034a,
+ 0x10380, 0x1039d,
+ 0x1039f, 0x103c3,
+ 0x103c8, 0x103d5,
+ 0x10400, 0x1049d,
+ 0x104a0, 0x104a9,
+ 0x10800, 0x10805,
+ 0x10808, 0x10808,
+ 0x1080a, 0x10835,
+ 0x10837, 0x10838,
+ 0x1083c, 0x1083c,
+ 0x1083f, 0x1083f,
+ 0x10900, 0x10919,
+ 0x1091f, 0x10939,
+ 0x1093f, 0x1093f,
+ 0x10a00, 0x10a03,
+ 0x10a05, 0x10a06,
+ 0x10a0c, 0x10a13,
+ 0x10a15, 0x10a17,
+ 0x10a19, 0x10a33,
+ 0x10a38, 0x10a3a,
+ 0x10a3f, 0x10a47,
+ 0x10a50, 0x10a58,
+ 0x12000, 0x1236e,
+ 0x12400, 0x12462,
+ 0x12470, 0x12473,
+ 0x1d000, 0x1d0f5,
+ 0x1d100, 0x1d126,
+ 0x1d129, 0x1d1dd,
+ 0x1d200, 0x1d245,
+ 0x1d300, 0x1d356,
+ 0x1d360, 0x1d371,
+ 0x1d400, 0x1d454,
+ 0x1d456, 0x1d49c,
+ 0x1d49e, 0x1d49f,
+ 0x1d4a2, 0x1d4a2,
+ 0x1d4a5, 0x1d4a6,
+ 0x1d4a9, 0x1d4ac,
+ 0x1d4ae, 0x1d4b9,
+ 0x1d4bb, 0x1d4bb,
+ 0x1d4bd, 0x1d4c3,
+ 0x1d4c5, 0x1d505,
+ 0x1d507, 0x1d50a,
+ 0x1d50d, 0x1d514,
+ 0x1d516, 0x1d51c,
+ 0x1d51e, 0x1d539,
+ 0x1d53b, 0x1d53e,
+ 0x1d540, 0x1d544,
+ 0x1d546, 0x1d546,
+ 0x1d54a, 0x1d550,
+ 0x1d552, 0x1d6a5,
+ 0x1d6a8, 0x1d7cb,
+ 0x1d7ce, 0x1d7ff,
+ 0x1f000, 0x1f02b,
+ 0x1f030, 0x1f093,
+ 0x1fffe, 0x2a6d6,
+ 0x2f800, 0x2fa1d,
+ 0x2fffe, 0x2ffff,
+ 0x3fffe, 0x3ffff,
+ 0x4fffe, 0x4ffff,
+ 0x5fffe, 0x5ffff,
+ 0x6fffe, 0x6ffff,
+ 0x7fffe, 0x7ffff,
+ 0x8fffe, 0x8ffff,
+ 0x9fffe, 0x9ffff,
+ 0xafffe, 0xaffff,
+ 0xbfffe, 0xbffff,
+ 0xcfffe, 0xcffff,
+ 0xdfffe, 0xdffff,
+ 0xe0001, 0xe0001,
+ 0xe0020, 0xe007f,
+ 0xe0100, 0xe01ef,
+ 0xefffe, 0x10ffff,
+}; /* CR_Age_5_1 */
+
+/* 'Age_5_2': Derived Age 5.2 */
+static const OnigCodePoint CR_Age_5_2[] = {
+ 495,
+ 0x0000, 0x0377,
+ 0x037a, 0x037e,
+ 0x0384, 0x038a,
+ 0x038c, 0x038c,
+ 0x038e, 0x03a1,
+ 0x03a3, 0x0525,
+ 0x0531, 0x0556,
+ 0x0559, 0x055f,
+ 0x0561, 0x0587,
+ 0x0589, 0x058a,
+ 0x0591, 0x05c7,
+ 0x05d0, 0x05ea,
+ 0x05f0, 0x05f4,
+ 0x0600, 0x0603,
+ 0x0606, 0x061b,
+ 0x061e, 0x061f,
+ 0x0621, 0x065e,
+ 0x0660, 0x070d,
+ 0x070f, 0x074a,
+ 0x074d, 0x07b1,
+ 0x07c0, 0x07fa,
+ 0x0800, 0x082d,
+ 0x0830, 0x083e,
+ 0x0900, 0x0939,
+ 0x093c, 0x094e,
+ 0x0950, 0x0955,
+ 0x0958, 0x0972,
+ 0x0979, 0x097f,
+ 0x0981, 0x0983,
+ 0x0985, 0x098c,
+ 0x098f, 0x0990,
+ 0x0993, 0x09a8,
+ 0x09aa, 0x09b0,
+ 0x09b2, 0x09b2,
+ 0x09b6, 0x09b9,
+ 0x09bc, 0x09c4,
+ 0x09c7, 0x09c8,
+ 0x09cb, 0x09ce,
+ 0x09d7, 0x09d7,
+ 0x09dc, 0x09dd,
+ 0x09df, 0x09e3,
+ 0x09e6, 0x09fb,
+ 0x0a01, 0x0a03,
+ 0x0a05, 0x0a0a,
+ 0x0a0f, 0x0a10,
+ 0x0a13, 0x0a28,
+ 0x0a2a, 0x0a30,
+ 0x0a32, 0x0a33,
+ 0x0a35, 0x0a36,
+ 0x0a38, 0x0a39,
+ 0x0a3c, 0x0a3c,
+ 0x0a3e, 0x0a42,
+ 0x0a47, 0x0a48,
+ 0x0a4b, 0x0a4d,
+ 0x0a51, 0x0a51,
+ 0x0a59, 0x0a5c,
+ 0x0a5e, 0x0a5e,
+ 0x0a66, 0x0a75,
+ 0x0a81, 0x0a83,
+ 0x0a85, 0x0a8d,
+ 0x0a8f, 0x0a91,
+ 0x0a93, 0x0aa8,
+ 0x0aaa, 0x0ab0,
+ 0x0ab2, 0x0ab3,
+ 0x0ab5, 0x0ab9,
+ 0x0abc, 0x0ac5,
+ 0x0ac7, 0x0ac9,
+ 0x0acb, 0x0acd,
+ 0x0ad0, 0x0ad0,
+ 0x0ae0, 0x0ae3,
+ 0x0ae6, 0x0aef,
+ 0x0af1, 0x0af1,
+ 0x0b01, 0x0b03,
+ 0x0b05, 0x0b0c,
+ 0x0b0f, 0x0b10,
+ 0x0b13, 0x0b28,
+ 0x0b2a, 0x0b30,
+ 0x0b32, 0x0b33,
+ 0x0b35, 0x0b39,
+ 0x0b3c, 0x0b44,
+ 0x0b47, 0x0b48,
+ 0x0b4b, 0x0b4d,
+ 0x0b56, 0x0b57,
+ 0x0b5c, 0x0b5d,
+ 0x0b5f, 0x0b63,
+ 0x0b66, 0x0b71,
+ 0x0b82, 0x0b83,
+ 0x0b85, 0x0b8a,
+ 0x0b8e, 0x0b90,
+ 0x0b92, 0x0b95,
+ 0x0b99, 0x0b9a,
+ 0x0b9c, 0x0b9c,
+ 0x0b9e, 0x0b9f,
+ 0x0ba3, 0x0ba4,
+ 0x0ba8, 0x0baa,
+ 0x0bae, 0x0bb9,
+ 0x0bbe, 0x0bc2,
+ 0x0bc6, 0x0bc8,
+ 0x0bca, 0x0bcd,
+ 0x0bd0, 0x0bd0,
+ 0x0bd7, 0x0bd7,
+ 0x0be6, 0x0bfa,
+ 0x0c01, 0x0c03,
+ 0x0c05, 0x0c0c,
+ 0x0c0e, 0x0c10,
+ 0x0c12, 0x0c28,
+ 0x0c2a, 0x0c33,
+ 0x0c35, 0x0c39,
+ 0x0c3d, 0x0c44,
+ 0x0c46, 0x0c48,
+ 0x0c4a, 0x0c4d,
+ 0x0c55, 0x0c56,
+ 0x0c58, 0x0c59,
+ 0x0c60, 0x0c63,
+ 0x0c66, 0x0c6f,
+ 0x0c78, 0x0c7f,
+ 0x0c82, 0x0c83,
+ 0x0c85, 0x0c8c,
+ 0x0c8e, 0x0c90,
+ 0x0c92, 0x0ca8,
+ 0x0caa, 0x0cb3,
+ 0x0cb5, 0x0cb9,
+ 0x0cbc, 0x0cc4,
+ 0x0cc6, 0x0cc8,
+ 0x0cca, 0x0ccd,
+ 0x0cd5, 0x0cd6,
+ 0x0cde, 0x0cde,
+ 0x0ce0, 0x0ce3,
+ 0x0ce6, 0x0cef,
+ 0x0cf1, 0x0cf2,
+ 0x0d02, 0x0d03,
+ 0x0d05, 0x0d0c,
+ 0x0d0e, 0x0d10,
+ 0x0d12, 0x0d28,
+ 0x0d2a, 0x0d39,
+ 0x0d3d, 0x0d44,
+ 0x0d46, 0x0d48,
+ 0x0d4a, 0x0d4d,
+ 0x0d57, 0x0d57,
+ 0x0d60, 0x0d63,
+ 0x0d66, 0x0d75,
+ 0x0d79, 0x0d7f,
+ 0x0d82, 0x0d83,
+ 0x0d85, 0x0d96,
+ 0x0d9a, 0x0db1,
+ 0x0db3, 0x0dbb,
+ 0x0dbd, 0x0dbd,
+ 0x0dc0, 0x0dc6,
+ 0x0dca, 0x0dca,
+ 0x0dcf, 0x0dd4,
+ 0x0dd6, 0x0dd6,
+ 0x0dd8, 0x0ddf,
+ 0x0df2, 0x0df4,
+ 0x0e01, 0x0e3a,
+ 0x0e3f, 0x0e5b,
+ 0x0e81, 0x0e82,
+ 0x0e84, 0x0e84,
+ 0x0e87, 0x0e88,
+ 0x0e8a, 0x0e8a,
+ 0x0e8d, 0x0e8d,
+ 0x0e94, 0x0e97,
+ 0x0e99, 0x0e9f,
+ 0x0ea1, 0x0ea3,
+ 0x0ea5, 0x0ea5,
+ 0x0ea7, 0x0ea7,
+ 0x0eaa, 0x0eab,
+ 0x0ead, 0x0eb9,
+ 0x0ebb, 0x0ebd,
+ 0x0ec0, 0x0ec4,
+ 0x0ec6, 0x0ec6,
+ 0x0ec8, 0x0ecd,
+ 0x0ed0, 0x0ed9,
+ 0x0edc, 0x0edd,
+ 0x0f00, 0x0f47,
+ 0x0f49, 0x0f6c,
+ 0x0f71, 0x0f8b,
+ 0x0f90, 0x0f97,
+ 0x0f99, 0x0fbc,
+ 0x0fbe, 0x0fcc,
+ 0x0fce, 0x0fd8,
+ 0x1000, 0x10c5,
+ 0x10d0, 0x10fc,
+ 0x1100, 0x1248,
+ 0x124a, 0x124d,
+ 0x1250, 0x1256,
+ 0x1258, 0x1258,
+ 0x125a, 0x125d,
+ 0x1260, 0x1288,
+ 0x128a, 0x128d,
+ 0x1290, 0x12b0,
+ 0x12b2, 0x12b5,
+ 0x12b8, 0x12be,
+ 0x12c0, 0x12c0,
+ 0x12c2, 0x12c5,
+ 0x12c8, 0x12d6,
+ 0x12d8, 0x1310,
+ 0x1312, 0x1315,
+ 0x1318, 0x135a,
+ 0x135f, 0x137c,
+ 0x1380, 0x1399,
+ 0x13a0, 0x13f4,
+ 0x1400, 0x169c,
+ 0x16a0, 0x16f0,
+ 0x1700, 0x170c,
+ 0x170e, 0x1714,
+ 0x1720, 0x1736,
+ 0x1740, 0x1753,
+ 0x1760, 0x176c,
+ 0x176e, 0x1770,
+ 0x1772, 0x1773,
+ 0x1780, 0x17dd,
+ 0x17e0, 0x17e9,
+ 0x17f0, 0x17f9,
+ 0x1800, 0x180e,
+ 0x1810, 0x1819,
+ 0x1820, 0x1877,
+ 0x1880, 0x18aa,
+ 0x18b0, 0x18f5,
+ 0x1900, 0x191c,
+ 0x1920, 0x192b,
+ 0x1930, 0x193b,
+ 0x1940, 0x1940,
+ 0x1944, 0x196d,
+ 0x1970, 0x1974,
+ 0x1980, 0x19ab,
+ 0x19b0, 0x19c9,
+ 0x19d0, 0x19da,
+ 0x19de, 0x1a1b,
+ 0x1a1e, 0x1a5e,
+ 0x1a60, 0x1a7c,
+ 0x1a7f, 0x1a89,
+ 0x1a90, 0x1a99,
+ 0x1aa0, 0x1aad,
+ 0x1b00, 0x1b4b,
+ 0x1b50, 0x1b7c,
+ 0x1b80, 0x1baa,
+ 0x1bae, 0x1bb9,
+ 0x1c00, 0x1c37,
+ 0x1c3b, 0x1c49,
+ 0x1c4d, 0x1c7f,
+ 0x1cd0, 0x1cf2,
+ 0x1d00, 0x1de6,
+ 0x1dfd, 0x1f15,
+ 0x1f18, 0x1f1d,
+ 0x1f20, 0x1f45,
+ 0x1f48, 0x1f4d,
+ 0x1f50, 0x1f57,
+ 0x1f59, 0x1f59,
+ 0x1f5b, 0x1f5b,
+ 0x1f5d, 0x1f5d,
+ 0x1f5f, 0x1f7d,
+ 0x1f80, 0x1fb4,
+ 0x1fb6, 0x1fc4,
+ 0x1fc6, 0x1fd3,
+ 0x1fd6, 0x1fdb,
+ 0x1fdd, 0x1fef,
+ 0x1ff2, 0x1ff4,
+ 0x1ff6, 0x1ffe,
+ 0x2000, 0x2064,
+ 0x206a, 0x2071,
+ 0x2074, 0x208e,
+ 0x2090, 0x2094,
+ 0x20a0, 0x20b8,
+ 0x20d0, 0x20f0,
+ 0x2100, 0x2189,
+ 0x2190, 0x23e8,
+ 0x2400, 0x2426,
+ 0x2440, 0x244a,
+ 0x2460, 0x26cd,
+ 0x26cf, 0x26e1,
+ 0x26e3, 0x26e3,
+ 0x26e8, 0x26ff,
+ 0x2701, 0x2704,
+ 0x2706, 0x2709,
+ 0x270c, 0x2727,
+ 0x2729, 0x274b,
+ 0x274d, 0x274d,
+ 0x274f, 0x2752,
+ 0x2756, 0x275e,
+ 0x2761, 0x2794,
+ 0x2798, 0x27af,
+ 0x27b1, 0x27be,
+ 0x27c0, 0x27ca,
+ 0x27cc, 0x27cc,
+ 0x27d0, 0x2b4c,
+ 0x2b50, 0x2b59,
+ 0x2c00, 0x2c2e,
+ 0x2c30, 0x2c5e,
+ 0x2c60, 0x2cf1,
+ 0x2cf9, 0x2d25,
+ 0x2d30, 0x2d65,
+ 0x2d6f, 0x2d6f,
+ 0x2d80, 0x2d96,
+ 0x2da0, 0x2da6,
+ 0x2da8, 0x2dae,
+ 0x2db0, 0x2db6,
+ 0x2db8, 0x2dbe,
+ 0x2dc0, 0x2dc6,
+ 0x2dc8, 0x2dce,
+ 0x2dd0, 0x2dd6,
+ 0x2dd8, 0x2dde,
+ 0x2de0, 0x2e31,
+ 0x2e80, 0x2e99,
+ 0x2e9b, 0x2ef3,
+ 0x2f00, 0x2fd5,
+ 0x2ff0, 0x2ffb,
+ 0x3000, 0x303f,
+ 0x3041, 0x3096,
+ 0x3099, 0x30ff,
+ 0x3105, 0x312d,
+ 0x3131, 0x318e,
+ 0x3190, 0x31b7,
+ 0x31c0, 0x31e3,
+ 0x31f0, 0x321e,
+ 0x3220, 0x32fe,
+ 0x3300, 0x4db5,
+ 0x4dc0, 0x9fcb,
+ 0xa000, 0xa48c,
+ 0xa490, 0xa4c6,
+ 0xa4d0, 0xa62b,
+ 0xa640, 0xa65f,
+ 0xa662, 0xa673,
+ 0xa67c, 0xa697,
+ 0xa6a0, 0xa6f7,
+ 0xa700, 0xa78c,
+ 0xa7fb, 0xa82b,
+ 0xa830, 0xa839,
+ 0xa840, 0xa877,
+ 0xa880, 0xa8c4,
+ 0xa8ce, 0xa8d9,
+ 0xa8e0, 0xa8fb,
+ 0xa900, 0xa953,
+ 0xa95f, 0xa97c,
+ 0xa980, 0xa9cd,
+ 0xa9cf, 0xa9d9,
+ 0xa9de, 0xa9df,
+ 0xaa00, 0xaa36,
+ 0xaa40, 0xaa4d,
+ 0xaa50, 0xaa59,
+ 0xaa5c, 0xaa7b,
+ 0xaa80, 0xaac2,
+ 0xaadb, 0xaadf,
+ 0xabc0, 0xabed,
+ 0xabf0, 0xabf9,
+ 0xac00, 0xd7a3,
+ 0xd7b0, 0xd7c6,
+ 0xd7cb, 0xd7fb,
+ 0xd800, 0xfa2d,
+ 0xfa30, 0xfa6d,
+ 0xfa70, 0xfad9,
+ 0xfb00, 0xfb06,
+ 0xfb13, 0xfb17,
+ 0xfb1d, 0xfb36,
+ 0xfb38, 0xfb3c,
+ 0xfb3e, 0xfb3e,
+ 0xfb40, 0xfb41,
+ 0xfb43, 0xfb44,
+ 0xfb46, 0xfbb1,
+ 0xfbd3, 0xfd3f,
+ 0xfd50, 0xfd8f,
+ 0xfd92, 0xfdc7,
+ 0xfdd0, 0xfdfd,
+ 0xfe00, 0xfe19,
+ 0xfe20, 0xfe26,
+ 0xfe30, 0xfe52,
+ 0xfe54, 0xfe66,
+ 0xfe68, 0xfe6b,
+ 0xfe70, 0xfe74,
+ 0xfe76, 0xfefc,
+ 0xfeff, 0xfeff,
+ 0xff01, 0xffbe,
+ 0xffc2, 0xffc7,
+ 0xffca, 0xffcf,
+ 0xffd2, 0xffd7,
+ 0xffda, 0xffdc,
+ 0xffe0, 0xffe6,
+ 0xffe8, 0xffee,
+ 0xfff9, 0x1000b,
+ 0x1000d, 0x10026,
+ 0x10028, 0x1003a,
+ 0x1003c, 0x1003d,
+ 0x1003f, 0x1004d,
+ 0x10050, 0x1005d,
+ 0x10080, 0x100fa,
+ 0x10100, 0x10102,
+ 0x10107, 0x10133,
+ 0x10137, 0x1018a,
+ 0x10190, 0x1019b,
+ 0x101d0, 0x101fd,
+ 0x10280, 0x1029c,
+ 0x102a0, 0x102d0,
+ 0x10300, 0x1031e,
+ 0x10320, 0x10323,
+ 0x10330, 0x1034a,
+ 0x10380, 0x1039d,
+ 0x1039f, 0x103c3,
+ 0x103c8, 0x103d5,
+ 0x10400, 0x1049d,
+ 0x104a0, 0x104a9,
+ 0x10800, 0x10805,
+ 0x10808, 0x10808,
+ 0x1080a, 0x10835,
+ 0x10837, 0x10838,
+ 0x1083c, 0x1083c,
+ 0x1083f, 0x10855,
+ 0x10857, 0x1085f,
+ 0x10900, 0x1091b,
+ 0x1091f, 0x10939,
+ 0x1093f, 0x1093f,
+ 0x10a00, 0x10a03,
+ 0x10a05, 0x10a06,
+ 0x10a0c, 0x10a13,
+ 0x10a15, 0x10a17,
+ 0x10a19, 0x10a33,
+ 0x10a38, 0x10a3a,
+ 0x10a3f, 0x10a47,
+ 0x10a50, 0x10a58,
+ 0x10a60, 0x10a7f,
+ 0x10b00, 0x10b35,
+ 0x10b39, 0x10b55,
+ 0x10b58, 0x10b72,
+ 0x10b78, 0x10b7f,
+ 0x10c00, 0x10c48,
+ 0x10e60, 0x10e7e,
+ 0x11080, 0x110c1,
+ 0x12000, 0x1236e,
+ 0x12400, 0x12462,
+ 0x12470, 0x12473,
+ 0x13000, 0x1342e,
+ 0x1d000, 0x1d0f5,
+ 0x1d100, 0x1d126,
+ 0x1d129, 0x1d1dd,
+ 0x1d200, 0x1d245,
+ 0x1d300, 0x1d356,
+ 0x1d360, 0x1d371,
+ 0x1d400, 0x1d454,
+ 0x1d456, 0x1d49c,
+ 0x1d49e, 0x1d49f,
+ 0x1d4a2, 0x1d4a2,
+ 0x1d4a5, 0x1d4a6,
+ 0x1d4a9, 0x1d4ac,
+ 0x1d4ae, 0x1d4b9,
+ 0x1d4bb, 0x1d4bb,
+ 0x1d4bd, 0x1d4c3,
+ 0x1d4c5, 0x1d505,
+ 0x1d507, 0x1d50a,
+ 0x1d50d, 0x1d514,
+ 0x1d516, 0x1d51c,
+ 0x1d51e, 0x1d539,
+ 0x1d53b, 0x1d53e,
+ 0x1d540, 0x1d544,
+ 0x1d546, 0x1d546,
+ 0x1d54a, 0x1d550,
+ 0x1d552, 0x1d6a5,
+ 0x1d6a8, 0x1d7cb,
+ 0x1d7ce, 0x1d7ff,
+ 0x1f000, 0x1f02b,
+ 0x1f030, 0x1f093,
+ 0x1f100, 0x1f10a,
+ 0x1f110, 0x1f12e,
+ 0x1f131, 0x1f131,
+ 0x1f13d, 0x1f13d,
+ 0x1f13f, 0x1f13f,
+ 0x1f142, 0x1f142,
+ 0x1f146, 0x1f146,
+ 0x1f14a, 0x1f14e,
+ 0x1f157, 0x1f157,
+ 0x1f15f, 0x1f15f,
+ 0x1f179, 0x1f179,
+ 0x1f17b, 0x1f17c,
+ 0x1f17f, 0x1f17f,
+ 0x1f18a, 0x1f18d,
+ 0x1f190, 0x1f190,
+ 0x1f200, 0x1f200,
+ 0x1f210, 0x1f231,
+ 0x1f240, 0x1f248,
+ 0x1fffe, 0x2a6d6,
+ 0x2a700, 0x2b734,
+ 0x2f800, 0x2fa1d,
+ 0x2fffe, 0x2ffff,
+ 0x3fffe, 0x3ffff,
+ 0x4fffe, 0x4ffff,
+ 0x5fffe, 0x5ffff,
+ 0x6fffe, 0x6ffff,
+ 0x7fffe, 0x7ffff,
+ 0x8fffe, 0x8ffff,
+ 0x9fffe, 0x9ffff,
+ 0xafffe, 0xaffff,
+ 0xbfffe, 0xbffff,
+ 0xcfffe, 0xcffff,
+ 0xdfffe, 0xdffff,
+ 0xe0001, 0xe0001,
+ 0xe0020, 0xe007f,
+ 0xe0100, 0xe01ef,
+ 0xefffe, 0x10ffff,
+}; /* CR_Age_5_2 */
+
+/* 'Age_6_0': Derived Age 6.0 */
+static const OnigCodePoint CR_Age_6_0[] = {
+ 511,
+ 0x0000, 0x0377,
+ 0x037a, 0x037e,
+ 0x0384, 0x038a,
+ 0x038c, 0x038c,
+ 0x038e, 0x03a1,
+ 0x03a3, 0x0527,
+ 0x0531, 0x0556,
+ 0x0559, 0x055f,
+ 0x0561, 0x0587,
+ 0x0589, 0x058a,
+ 0x0591, 0x05c7,
+ 0x05d0, 0x05ea,
+ 0x05f0, 0x05f4,
+ 0x0600, 0x0603,
+ 0x0606, 0x061b,
+ 0x061e, 0x070d,
+ 0x070f, 0x074a,
+ 0x074d, 0x07b1,
+ 0x07c0, 0x07fa,
+ 0x0800, 0x082d,
+ 0x0830, 0x083e,
+ 0x0840, 0x085b,
+ 0x085e, 0x085e,
+ 0x0900, 0x0977,
+ 0x0979, 0x097f,
+ 0x0981, 0x0983,
+ 0x0985, 0x098c,
+ 0x098f, 0x0990,
+ 0x0993, 0x09a8,
+ 0x09aa, 0x09b0,
+ 0x09b2, 0x09b2,
+ 0x09b6, 0x09b9,
+ 0x09bc, 0x09c4,
+ 0x09c7, 0x09c8,
+ 0x09cb, 0x09ce,
+ 0x09d7, 0x09d7,
+ 0x09dc, 0x09dd,
+ 0x09df, 0x09e3,
+ 0x09e6, 0x09fb,
+ 0x0a01, 0x0a03,
+ 0x0a05, 0x0a0a,
+ 0x0a0f, 0x0a10,
+ 0x0a13, 0x0a28,
+ 0x0a2a, 0x0a30,
+ 0x0a32, 0x0a33,
+ 0x0a35, 0x0a36,
+ 0x0a38, 0x0a39,
+ 0x0a3c, 0x0a3c,
+ 0x0a3e, 0x0a42,
+ 0x0a47, 0x0a48,
+ 0x0a4b, 0x0a4d,
+ 0x0a51, 0x0a51,
+ 0x0a59, 0x0a5c,
+ 0x0a5e, 0x0a5e,
+ 0x0a66, 0x0a75,
+ 0x0a81, 0x0a83,
+ 0x0a85, 0x0a8d,
+ 0x0a8f, 0x0a91,
+ 0x0a93, 0x0aa8,
+ 0x0aaa, 0x0ab0,
+ 0x0ab2, 0x0ab3,
+ 0x0ab5, 0x0ab9,
+ 0x0abc, 0x0ac5,
+ 0x0ac7, 0x0ac9,
+ 0x0acb, 0x0acd,
+ 0x0ad0, 0x0ad0,
+ 0x0ae0, 0x0ae3,
+ 0x0ae6, 0x0aef,
+ 0x0af1, 0x0af1,
+ 0x0b01, 0x0b03,
+ 0x0b05, 0x0b0c,
+ 0x0b0f, 0x0b10,
+ 0x0b13, 0x0b28,
+ 0x0b2a, 0x0b30,
+ 0x0b32, 0x0b33,
+ 0x0b35, 0x0b39,
+ 0x0b3c, 0x0b44,
+ 0x0b47, 0x0b48,
+ 0x0b4b, 0x0b4d,
+ 0x0b56, 0x0b57,
+ 0x0b5c, 0x0b5d,
+ 0x0b5f, 0x0b63,
+ 0x0b66, 0x0b77,
+ 0x0b82, 0x0b83,
+ 0x0b85, 0x0b8a,
+ 0x0b8e, 0x0b90,
+ 0x0b92, 0x0b95,
+ 0x0b99, 0x0b9a,
+ 0x0b9c, 0x0b9c,
+ 0x0b9e, 0x0b9f,
+ 0x0ba3, 0x0ba4,
+ 0x0ba8, 0x0baa,
+ 0x0bae, 0x0bb9,
+ 0x0bbe, 0x0bc2,
+ 0x0bc6, 0x0bc8,
+ 0x0bca, 0x0bcd,
+ 0x0bd0, 0x0bd0,
+ 0x0bd7, 0x0bd7,
+ 0x0be6, 0x0bfa,
+ 0x0c01, 0x0c03,
+ 0x0c05, 0x0c0c,
+ 0x0c0e, 0x0c10,
+ 0x0c12, 0x0c28,
+ 0x0c2a, 0x0c33,
+ 0x0c35, 0x0c39,
+ 0x0c3d, 0x0c44,
+ 0x0c46, 0x0c48,
+ 0x0c4a, 0x0c4d,
+ 0x0c55, 0x0c56,
+ 0x0c58, 0x0c59,
+ 0x0c60, 0x0c63,
+ 0x0c66, 0x0c6f,
+ 0x0c78, 0x0c7f,
+ 0x0c82, 0x0c83,
+ 0x0c85, 0x0c8c,
+ 0x0c8e, 0x0c90,
+ 0x0c92, 0x0ca8,
+ 0x0caa, 0x0cb3,
+ 0x0cb5, 0x0cb9,
+ 0x0cbc, 0x0cc4,
+ 0x0cc6, 0x0cc8,
+ 0x0cca, 0x0ccd,
+ 0x0cd5, 0x0cd6,
+ 0x0cde, 0x0cde,
+ 0x0ce0, 0x0ce3,
+ 0x0ce6, 0x0cef,
+ 0x0cf1, 0x0cf2,
+ 0x0d02, 0x0d03,
+ 0x0d05, 0x0d0c,
+ 0x0d0e, 0x0d10,
+ 0x0d12, 0x0d3a,
+ 0x0d3d, 0x0d44,
+ 0x0d46, 0x0d48,
+ 0x0d4a, 0x0d4e,
+ 0x0d57, 0x0d57,
+ 0x0d60, 0x0d63,
+ 0x0d66, 0x0d75,
+ 0x0d79, 0x0d7f,
+ 0x0d82, 0x0d83,
+ 0x0d85, 0x0d96,
+ 0x0d9a, 0x0db1,
+ 0x0db3, 0x0dbb,
+ 0x0dbd, 0x0dbd,
+ 0x0dc0, 0x0dc6,
+ 0x0dca, 0x0dca,
+ 0x0dcf, 0x0dd4,
+ 0x0dd6, 0x0dd6,
+ 0x0dd8, 0x0ddf,
+ 0x0df2, 0x0df4,
+ 0x0e01, 0x0e3a,
+ 0x0e3f, 0x0e5b,
+ 0x0e81, 0x0e82,
+ 0x0e84, 0x0e84,
+ 0x0e87, 0x0e88,
+ 0x0e8a, 0x0e8a,
+ 0x0e8d, 0x0e8d,
+ 0x0e94, 0x0e97,
+ 0x0e99, 0x0e9f,
+ 0x0ea1, 0x0ea3,
+ 0x0ea5, 0x0ea5,
+ 0x0ea7, 0x0ea7,
+ 0x0eaa, 0x0eab,
+ 0x0ead, 0x0eb9,
+ 0x0ebb, 0x0ebd,
+ 0x0ec0, 0x0ec4,
+ 0x0ec6, 0x0ec6,
+ 0x0ec8, 0x0ecd,
+ 0x0ed0, 0x0ed9,
+ 0x0edc, 0x0edd,
+ 0x0f00, 0x0f47,
+ 0x0f49, 0x0f6c,
+ 0x0f71, 0x0f97,
+ 0x0f99, 0x0fbc,
+ 0x0fbe, 0x0fcc,
+ 0x0fce, 0x0fda,
+ 0x1000, 0x10c5,
+ 0x10d0, 0x10fc,
+ 0x1100, 0x1248,
+ 0x124a, 0x124d,
+ 0x1250, 0x1256,
+ 0x1258, 0x1258,
+ 0x125a, 0x125d,
+ 0x1260, 0x1288,
+ 0x128a, 0x128d,
+ 0x1290, 0x12b0,
+ 0x12b2, 0x12b5,
+ 0x12b8, 0x12be,
+ 0x12c0, 0x12c0,
+ 0x12c2, 0x12c5,
+ 0x12c8, 0x12d6,
+ 0x12d8, 0x1310,
+ 0x1312, 0x1315,
+ 0x1318, 0x135a,
+ 0x135d, 0x137c,
+ 0x1380, 0x1399,
+ 0x13a0, 0x13f4,
+ 0x1400, 0x169c,
+ 0x16a0, 0x16f0,
+ 0x1700, 0x170c,
+ 0x170e, 0x1714,
+ 0x1720, 0x1736,
+ 0x1740, 0x1753,
+ 0x1760, 0x176c,
+ 0x176e, 0x1770,
+ 0x1772, 0x1773,
+ 0x1780, 0x17dd,
+ 0x17e0, 0x17e9,
+ 0x17f0, 0x17f9,
+ 0x1800, 0x180e,
+ 0x1810, 0x1819,
+ 0x1820, 0x1877,
+ 0x1880, 0x18aa,
+ 0x18b0, 0x18f5,
+ 0x1900, 0x191c,
+ 0x1920, 0x192b,
+ 0x1930, 0x193b,
+ 0x1940, 0x1940,
+ 0x1944, 0x196d,
+ 0x1970, 0x1974,
+ 0x1980, 0x19ab,
+ 0x19b0, 0x19c9,
+ 0x19d0, 0x19da,
+ 0x19de, 0x1a1b,
+ 0x1a1e, 0x1a5e,
+ 0x1a60, 0x1a7c,
+ 0x1a7f, 0x1a89,
+ 0x1a90, 0x1a99,
+ 0x1aa0, 0x1aad,
+ 0x1b00, 0x1b4b,
+ 0x1b50, 0x1b7c,
+ 0x1b80, 0x1baa,
+ 0x1bae, 0x1bb9,
+ 0x1bc0, 0x1bf3,
+ 0x1bfc, 0x1c37,
+ 0x1c3b, 0x1c49,
+ 0x1c4d, 0x1c7f,
+ 0x1cd0, 0x1cf2,
+ 0x1d00, 0x1de6,
+ 0x1dfc, 0x1f15,
+ 0x1f18, 0x1f1d,
+ 0x1f20, 0x1f45,
+ 0x1f48, 0x1f4d,
+ 0x1f50, 0x1f57,
+ 0x1f59, 0x1f59,
+ 0x1f5b, 0x1f5b,
+ 0x1f5d, 0x1f5d,
+ 0x1f5f, 0x1f7d,
+ 0x1f80, 0x1fb4,
+ 0x1fb6, 0x1fc4,
+ 0x1fc6, 0x1fd3,
+ 0x1fd6, 0x1fdb,
+ 0x1fdd, 0x1fef,
+ 0x1ff2, 0x1ff4,
+ 0x1ff6, 0x1ffe,
+ 0x2000, 0x2064,
+ 0x206a, 0x2071,
+ 0x2074, 0x208e,
+ 0x2090, 0x209c,
+ 0x20a0, 0x20b9,
+ 0x20d0, 0x20f0,
+ 0x2100, 0x2189,
+ 0x2190, 0x23f3,
+ 0x2400, 0x2426,
+ 0x2440, 0x244a,
+ 0x2460, 0x26ff,
+ 0x2701, 0x27ca,
+ 0x27cc, 0x27cc,
+ 0x27ce, 0x2b4c,
+ 0x2b50, 0x2b59,
+ 0x2c00, 0x2c2e,
+ 0x2c30, 0x2c5e,
+ 0x2c60, 0x2cf1,
+ 0x2cf9, 0x2d25,
+ 0x2d30, 0x2d65,
+ 0x2d6f, 0x2d70,
+ 0x2d7f, 0x2d96,
+ 0x2da0, 0x2da6,
+ 0x2da8, 0x2dae,
+ 0x2db0, 0x2db6,
+ 0x2db8, 0x2dbe,
+ 0x2dc0, 0x2dc6,
+ 0x2dc8, 0x2dce,
+ 0x2dd0, 0x2dd6,
+ 0x2dd8, 0x2dde,
+ 0x2de0, 0x2e31,
+ 0x2e80, 0x2e99,
+ 0x2e9b, 0x2ef3,
+ 0x2f00, 0x2fd5,
+ 0x2ff0, 0x2ffb,
+ 0x3000, 0x303f,
+ 0x3041, 0x3096,
+ 0x3099, 0x30ff,
+ 0x3105, 0x312d,
+ 0x3131, 0x318e,
+ 0x3190, 0x31ba,
+ 0x31c0, 0x31e3,
+ 0x31f0, 0x321e,
+ 0x3220, 0x32fe,
+ 0x3300, 0x4db5,
+ 0x4dc0, 0x9fcb,
+ 0xa000, 0xa48c,
+ 0xa490, 0xa4c6,
+ 0xa4d0, 0xa62b,
+ 0xa640, 0xa673,
+ 0xa67c, 0xa697,
+ 0xa6a0, 0xa6f7,
+ 0xa700, 0xa78e,
+ 0xa790, 0xa791,
+ 0xa7a0, 0xa7a9,
+ 0xa7fa, 0xa82b,
+ 0xa830, 0xa839,
+ 0xa840, 0xa877,
+ 0xa880, 0xa8c4,
+ 0xa8ce, 0xa8d9,
+ 0xa8e0, 0xa8fb,
+ 0xa900, 0xa953,
+ 0xa95f, 0xa97c,
+ 0xa980, 0xa9cd,
+ 0xa9cf, 0xa9d9,
+ 0xa9de, 0xa9df,
+ 0xaa00, 0xaa36,
+ 0xaa40, 0xaa4d,
+ 0xaa50, 0xaa59,
+ 0xaa5c, 0xaa7b,
+ 0xaa80, 0xaac2,
+ 0xaadb, 0xaadf,
+ 0xab01, 0xab06,
+ 0xab09, 0xab0e,
+ 0xab11, 0xab16,
+ 0xab20, 0xab26,
+ 0xab28, 0xab2e,
+ 0xabc0, 0xabed,
+ 0xabf0, 0xabf9,
+ 0xac00, 0xd7a3,
+ 0xd7b0, 0xd7c6,
+ 0xd7cb, 0xd7fb,
+ 0xd800, 0xfa2d,
+ 0xfa30, 0xfa6d,
+ 0xfa70, 0xfad9,
+ 0xfb00, 0xfb06,
+ 0xfb13, 0xfb17,
+ 0xfb1d, 0xfb36,
+ 0xfb38, 0xfb3c,
+ 0xfb3e, 0xfb3e,
+ 0xfb40, 0xfb41,
+ 0xfb43, 0xfb44,
+ 0xfb46, 0xfbc1,
+ 0xfbd3, 0xfd3f,
+ 0xfd50, 0xfd8f,
+ 0xfd92, 0xfdc7,
+ 0xfdd0, 0xfdfd,
+ 0xfe00, 0xfe19,
+ 0xfe20, 0xfe26,
+ 0xfe30, 0xfe52,
+ 0xfe54, 0xfe66,
+ 0xfe68, 0xfe6b,
+ 0xfe70, 0xfe74,
+ 0xfe76, 0xfefc,
+ 0xfeff, 0xfeff,
+ 0xff01, 0xffbe,
+ 0xffc2, 0xffc7,
+ 0xffca, 0xffcf,
+ 0xffd2, 0xffd7,
+ 0xffda, 0xffdc,
+ 0xffe0, 0xffe6,
+ 0xffe8, 0xffee,
+ 0xfff9, 0x1000b,
+ 0x1000d, 0x10026,
+ 0x10028, 0x1003a,
+ 0x1003c, 0x1003d,
+ 0x1003f, 0x1004d,
+ 0x10050, 0x1005d,
+ 0x10080, 0x100fa,
+ 0x10100, 0x10102,
+ 0x10107, 0x10133,
+ 0x10137, 0x1018a,
+ 0x10190, 0x1019b,
+ 0x101d0, 0x101fd,
+ 0x10280, 0x1029c,
+ 0x102a0, 0x102d0,
+ 0x10300, 0x1031e,
+ 0x10320, 0x10323,
+ 0x10330, 0x1034a,
+ 0x10380, 0x1039d,
+ 0x1039f, 0x103c3,
+ 0x103c8, 0x103d5,
+ 0x10400, 0x1049d,
+ 0x104a0, 0x104a9,
+ 0x10800, 0x10805,
+ 0x10808, 0x10808,
+ 0x1080a, 0x10835,
+ 0x10837, 0x10838,
+ 0x1083c, 0x1083c,
+ 0x1083f, 0x10855,
+ 0x10857, 0x1085f,
+ 0x10900, 0x1091b,
+ 0x1091f, 0x10939,
+ 0x1093f, 0x1093f,
+ 0x10a00, 0x10a03,
+ 0x10a05, 0x10a06,
+ 0x10a0c, 0x10a13,
+ 0x10a15, 0x10a17,
+ 0x10a19, 0x10a33,
+ 0x10a38, 0x10a3a,
+ 0x10a3f, 0x10a47,
+ 0x10a50, 0x10a58,
+ 0x10a60, 0x10a7f,
+ 0x10b00, 0x10b35,
+ 0x10b39, 0x10b55,
+ 0x10b58, 0x10b72,
+ 0x10b78, 0x10b7f,
+ 0x10c00, 0x10c48,
+ 0x10e60, 0x10e7e,
+ 0x11000, 0x1104d,
+ 0x11052, 0x1106f,
+ 0x11080, 0x110c1,
+ 0x12000, 0x1236e,
+ 0x12400, 0x12462,
+ 0x12470, 0x12473,
+ 0x13000, 0x1342e,
+ 0x16800, 0x16a38,
+ 0x1b000, 0x1b001,
+ 0x1d000, 0x1d0f5,
+ 0x1d100, 0x1d126,
+ 0x1d129, 0x1d1dd,
+ 0x1d200, 0x1d245,
+ 0x1d300, 0x1d356,
+ 0x1d360, 0x1d371,
+ 0x1d400, 0x1d454,
+ 0x1d456, 0x1d49c,
+ 0x1d49e, 0x1d49f,
+ 0x1d4a2, 0x1d4a2,
+ 0x1d4a5, 0x1d4a6,
+ 0x1d4a9, 0x1d4ac,
+ 0x1d4ae, 0x1d4b9,
+ 0x1d4bb, 0x1d4bb,
+ 0x1d4bd, 0x1d4c3,
+ 0x1d4c5, 0x1d505,
+ 0x1d507, 0x1d50a,
+ 0x1d50d, 0x1d514,
+ 0x1d516, 0x1d51c,
+ 0x1d51e, 0x1d539,
+ 0x1d53b, 0x1d53e,
+ 0x1d540, 0x1d544,
+ 0x1d546, 0x1d546,
+ 0x1d54a, 0x1d550,
+ 0x1d552, 0x1d6a5,
+ 0x1d6a8, 0x1d7cb,
+ 0x1d7ce, 0x1d7ff,
+ 0x1f000, 0x1f02b,
+ 0x1f030, 0x1f093,
+ 0x1f0a0, 0x1f0ae,
+ 0x1f0b1, 0x1f0be,
+ 0x1f0c1, 0x1f0cf,
+ 0x1f0d1, 0x1f0df,
+ 0x1f100, 0x1f10a,
+ 0x1f110, 0x1f12e,
+ 0x1f130, 0x1f169,
+ 0x1f170, 0x1f19a,
+ 0x1f1e6, 0x1f202,
+ 0x1f210, 0x1f23a,
+ 0x1f240, 0x1f248,
+ 0x1f250, 0x1f251,
+ 0x1f300, 0x1f320,
+ 0x1f330, 0x1f335,
+ 0x1f337, 0x1f37c,
+ 0x1f380, 0x1f393,
+ 0x1f3a0, 0x1f3c4,
+ 0x1f3c6, 0x1f3ca,
+ 0x1f3e0, 0x1f3f0,
+ 0x1f400, 0x1f43e,
+ 0x1f440, 0x1f440,
+ 0x1f442, 0x1f4f7,
+ 0x1f4f9, 0x1f4fc,
+ 0x1f500, 0x1f53d,
+ 0x1f550, 0x1f567,
+ 0x1f5fb, 0x1f5ff,
+ 0x1f601, 0x1f610,
+ 0x1f612, 0x1f614,
+ 0x1f616, 0x1f616,
+ 0x1f618, 0x1f618,
+ 0x1f61a, 0x1f61a,
+ 0x1f61c, 0x1f61e,
+ 0x1f620, 0x1f625,
+ 0x1f628, 0x1f62b,
+ 0x1f62d, 0x1f62d,
+ 0x1f630, 0x1f633,
+ 0x1f635, 0x1f640,
+ 0x1f645, 0x1f64f,
+ 0x1f680, 0x1f6c5,
+ 0x1f700, 0x1f773,
+ 0x1fffe, 0x2a6d6,
+ 0x2a700, 0x2b734,
+ 0x2b740, 0x2b81d,
+ 0x2f800, 0x2fa1d,
+ 0x2fffe, 0x2ffff,
+ 0x3fffe, 0x3ffff,
+ 0x4fffe, 0x4ffff,
+ 0x5fffe, 0x5ffff,
+ 0x6fffe, 0x6ffff,
+ 0x7fffe, 0x7ffff,
+ 0x8fffe, 0x8ffff,
+ 0x9fffe, 0x9ffff,
+ 0xafffe, 0xaffff,
+ 0xbfffe, 0xbffff,
+ 0xcfffe, 0xcffff,
+ 0xdfffe, 0xdffff,
+ 0xe0001, 0xe0001,
+ 0xe0020, 0xe007f,
+ 0xe0100, 0xe01ef,
+ 0xefffe, 0x10ffff,
+}; /* CR_Age_6_0 */
+
+/* 'NEWLINE': [[:NEWLINE:]] */
+static const OnigCodePoint CR_NEWLINE[] = {
+ 1,
+ 0x000a, 0x000a,
+}; /* CR_NEWLINE */
+
+/* 'Alpha': [[:Alpha:]] */
+#define CR_Alpha CR_Alphabetic
+
+/* 'Blank': [[:Blank:]] */
+static const OnigCodePoint CR_Blank[] = {
+ 9,
+ 0x0009, 0x0009,
+ 0x0020, 0x0020,
+ 0x00a0, 0x00a0,
+ 0x1680, 0x1680,
+ 0x180e, 0x180e,
+ 0x2000, 0x200a,
+ 0x202f, 0x202f,
+ 0x205f, 0x205f,
+ 0x3000, 0x3000,
+}; /* CR_Blank */
+
+/* 'Cntrl': [[:Cntrl:]] */
+#define CR_Cntrl CR_Cc
+
+/* 'Digit': [[:Digit:]] */
+#define CR_Digit CR_Nd
+
+/* 'Graph': [[:Graph:]] */
+static const OnigCodePoint CR_Graph[] = {
+ 506,
+ 0x0021, 0x007e,
+ 0x00a1, 0x0377,
+ 0x037a, 0x037e,
+ 0x0384, 0x038a,
+ 0x038c, 0x038c,
+ 0x038e, 0x03a1,
+ 0x03a3, 0x0527,
+ 0x0531, 0x0556,
+ 0x0559, 0x055f,
+ 0x0561, 0x0587,
+ 0x0589, 0x058a,
+ 0x0591, 0x05c7,
+ 0x05d0, 0x05ea,
+ 0x05f0, 0x05f4,
+ 0x0600, 0x0603,
+ 0x0606, 0x061b,
+ 0x061e, 0x070d,
+ 0x070f, 0x074a,
+ 0x074d, 0x07b1,
+ 0x07c0, 0x07fa,
+ 0x0800, 0x082d,
+ 0x0830, 0x083e,
+ 0x0840, 0x085b,
+ 0x085e, 0x085e,
+ 0x0900, 0x0977,
+ 0x0979, 0x097f,
+ 0x0981, 0x0983,
+ 0x0985, 0x098c,
+ 0x098f, 0x0990,
+ 0x0993, 0x09a8,
+ 0x09aa, 0x09b0,
+ 0x09b2, 0x09b2,
+ 0x09b6, 0x09b9,
+ 0x09bc, 0x09c4,
+ 0x09c7, 0x09c8,
+ 0x09cb, 0x09ce,
+ 0x09d7, 0x09d7,
+ 0x09dc, 0x09dd,
+ 0x09df, 0x09e3,
+ 0x09e6, 0x09fb,
+ 0x0a01, 0x0a03,
+ 0x0a05, 0x0a0a,
+ 0x0a0f, 0x0a10,
+ 0x0a13, 0x0a28,
+ 0x0a2a, 0x0a30,
+ 0x0a32, 0x0a33,
+ 0x0a35, 0x0a36,
+ 0x0a38, 0x0a39,
+ 0x0a3c, 0x0a3c,
+ 0x0a3e, 0x0a42,
+ 0x0a47, 0x0a48,
+ 0x0a4b, 0x0a4d,
+ 0x0a51, 0x0a51,
+ 0x0a59, 0x0a5c,
+ 0x0a5e, 0x0a5e,
+ 0x0a66, 0x0a75,
+ 0x0a81, 0x0a83,
+ 0x0a85, 0x0a8d,
+ 0x0a8f, 0x0a91,
+ 0x0a93, 0x0aa8,
+ 0x0aaa, 0x0ab0,
+ 0x0ab2, 0x0ab3,
+ 0x0ab5, 0x0ab9,
+ 0x0abc, 0x0ac5,
+ 0x0ac7, 0x0ac9,
+ 0x0acb, 0x0acd,
+ 0x0ad0, 0x0ad0,
+ 0x0ae0, 0x0ae3,
+ 0x0ae6, 0x0aef,
+ 0x0af1, 0x0af1,
+ 0x0b01, 0x0b03,
+ 0x0b05, 0x0b0c,
+ 0x0b0f, 0x0b10,
+ 0x0b13, 0x0b28,
+ 0x0b2a, 0x0b30,
+ 0x0b32, 0x0b33,
+ 0x0b35, 0x0b39,
+ 0x0b3c, 0x0b44,
+ 0x0b47, 0x0b48,
+ 0x0b4b, 0x0b4d,
+ 0x0b56, 0x0b57,
+ 0x0b5c, 0x0b5d,
+ 0x0b5f, 0x0b63,
+ 0x0b66, 0x0b77,
+ 0x0b82, 0x0b83,
+ 0x0b85, 0x0b8a,
+ 0x0b8e, 0x0b90,
+ 0x0b92, 0x0b95,
+ 0x0b99, 0x0b9a,
+ 0x0b9c, 0x0b9c,
+ 0x0b9e, 0x0b9f,
+ 0x0ba3, 0x0ba4,
+ 0x0ba8, 0x0baa,
+ 0x0bae, 0x0bb9,
+ 0x0bbe, 0x0bc2,
+ 0x0bc6, 0x0bc8,
+ 0x0bca, 0x0bcd,
+ 0x0bd0, 0x0bd0,
+ 0x0bd7, 0x0bd7,
+ 0x0be6, 0x0bfa,
+ 0x0c01, 0x0c03,
+ 0x0c05, 0x0c0c,
+ 0x0c0e, 0x0c10,
+ 0x0c12, 0x0c28,
+ 0x0c2a, 0x0c33,
+ 0x0c35, 0x0c39,
+ 0x0c3d, 0x0c44,
+ 0x0c46, 0x0c48,
+ 0x0c4a, 0x0c4d,
+ 0x0c55, 0x0c56,
+ 0x0c58, 0x0c59,
+ 0x0c60, 0x0c63,
+ 0x0c66, 0x0c6f,
+ 0x0c78, 0x0c7f,
+ 0x0c82, 0x0c83,
+ 0x0c85, 0x0c8c,
+ 0x0c8e, 0x0c90,
+ 0x0c92, 0x0ca8,
+ 0x0caa, 0x0cb3,
+ 0x0cb5, 0x0cb9,
+ 0x0cbc, 0x0cc4,
+ 0x0cc6, 0x0cc8,
+ 0x0cca, 0x0ccd,
+ 0x0cd5, 0x0cd6,
+ 0x0cde, 0x0cde,
+ 0x0ce0, 0x0ce3,
+ 0x0ce6, 0x0cef,
+ 0x0cf1, 0x0cf2,
+ 0x0d02, 0x0d03,
+ 0x0d05, 0x0d0c,
+ 0x0d0e, 0x0d10,
+ 0x0d12, 0x0d3a,
+ 0x0d3d, 0x0d44,
+ 0x0d46, 0x0d48,
+ 0x0d4a, 0x0d4e,
+ 0x0d57, 0x0d57,
+ 0x0d60, 0x0d63,
+ 0x0d66, 0x0d75,
+ 0x0d79, 0x0d7f,
+ 0x0d82, 0x0d83,
+ 0x0d85, 0x0d96,
+ 0x0d9a, 0x0db1,
+ 0x0db3, 0x0dbb,
+ 0x0dbd, 0x0dbd,
+ 0x0dc0, 0x0dc6,
+ 0x0dca, 0x0dca,
+ 0x0dcf, 0x0dd4,
+ 0x0dd6, 0x0dd6,
+ 0x0dd8, 0x0ddf,
+ 0x0df2, 0x0df4,
+ 0x0e01, 0x0e3a,
+ 0x0e3f, 0x0e5b,
+ 0x0e81, 0x0e82,
+ 0x0e84, 0x0e84,
+ 0x0e87, 0x0e88,
+ 0x0e8a, 0x0e8a,
+ 0x0e8d, 0x0e8d,
+ 0x0e94, 0x0e97,
+ 0x0e99, 0x0e9f,
+ 0x0ea1, 0x0ea3,
+ 0x0ea5, 0x0ea5,
+ 0x0ea7, 0x0ea7,
+ 0x0eaa, 0x0eab,
+ 0x0ead, 0x0eb9,
+ 0x0ebb, 0x0ebd,
+ 0x0ec0, 0x0ec4,
+ 0x0ec6, 0x0ec6,
+ 0x0ec8, 0x0ecd,
+ 0x0ed0, 0x0ed9,
+ 0x0edc, 0x0edd,
+ 0x0f00, 0x0f47,
+ 0x0f49, 0x0f6c,
+ 0x0f71, 0x0f97,
+ 0x0f99, 0x0fbc,
+ 0x0fbe, 0x0fcc,
+ 0x0fce, 0x0fda,
+ 0x1000, 0x10c5,
+ 0x10d0, 0x10fc,
+ 0x1100, 0x1248,
+ 0x124a, 0x124d,
+ 0x1250, 0x1256,
+ 0x1258, 0x1258,
+ 0x125a, 0x125d,
+ 0x1260, 0x1288,
+ 0x128a, 0x128d,
+ 0x1290, 0x12b0,
+ 0x12b2, 0x12b5,
+ 0x12b8, 0x12be,
+ 0x12c0, 0x12c0,
+ 0x12c2, 0x12c5,
+ 0x12c8, 0x12d6,
+ 0x12d8, 0x1310,
+ 0x1312, 0x1315,
+ 0x1318, 0x135a,
+ 0x135d, 0x137c,
+ 0x1380, 0x1399,
+ 0x13a0, 0x13f4,
+ 0x1400, 0x167f,
+ 0x1681, 0x169c,
+ 0x16a0, 0x16f0,
+ 0x1700, 0x170c,
+ 0x170e, 0x1714,
+ 0x1720, 0x1736,
+ 0x1740, 0x1753,
+ 0x1760, 0x176c,
+ 0x176e, 0x1770,
+ 0x1772, 0x1773,
+ 0x1780, 0x17dd,
+ 0x17e0, 0x17e9,
+ 0x17f0, 0x17f9,
+ 0x1800, 0x180d,
+ 0x1810, 0x1819,
+ 0x1820, 0x1877,
+ 0x1880, 0x18aa,
+ 0x18b0, 0x18f5,
+ 0x1900, 0x191c,
+ 0x1920, 0x192b,
+ 0x1930, 0x193b,
+ 0x1940, 0x1940,
+ 0x1944, 0x196d,
+ 0x1970, 0x1974,
+ 0x1980, 0x19ab,
+ 0x19b0, 0x19c9,
+ 0x19d0, 0x19da,
+ 0x19de, 0x1a1b,
+ 0x1a1e, 0x1a5e,
+ 0x1a60, 0x1a7c,
+ 0x1a7f, 0x1a89,
+ 0x1a90, 0x1a99,
+ 0x1aa0, 0x1aad,
+ 0x1b00, 0x1b4b,
+ 0x1b50, 0x1b7c,
+ 0x1b80, 0x1baa,
+ 0x1bae, 0x1bb9,
+ 0x1bc0, 0x1bf3,
+ 0x1bfc, 0x1c37,
+ 0x1c3b, 0x1c49,
+ 0x1c4d, 0x1c7f,
+ 0x1cd0, 0x1cf2,
+ 0x1d00, 0x1de6,
+ 0x1dfc, 0x1f15,
+ 0x1f18, 0x1f1d,
+ 0x1f20, 0x1f45,
+ 0x1f48, 0x1f4d,
+ 0x1f50, 0x1f57,
+ 0x1f59, 0x1f59,
+ 0x1f5b, 0x1f5b,
+ 0x1f5d, 0x1f5d,
+ 0x1f5f, 0x1f7d,
+ 0x1f80, 0x1fb4,
+ 0x1fb6, 0x1fc4,
+ 0x1fc6, 0x1fd3,
+ 0x1fd6, 0x1fdb,
+ 0x1fdd, 0x1fef,
+ 0x1ff2, 0x1ff4,
+ 0x1ff6, 0x1ffe,
+ 0x200b, 0x2027,
+ 0x202a, 0x202e,
+ 0x2030, 0x205e,
+ 0x2060, 0x2064,
+ 0x206a, 0x2071,
+ 0x2074, 0x208e,
+ 0x2090, 0x209c,
+ 0x20a0, 0x20b9,
+ 0x20d0, 0x20f0,
+ 0x2100, 0x2189,
+ 0x2190, 0x23f3,
+ 0x2400, 0x2426,
+ 0x2440, 0x244a,
+ 0x2460, 0x26ff,
+ 0x2701, 0x27ca,
+ 0x27cc, 0x27cc,
+ 0x27ce, 0x2b4c,
+ 0x2b50, 0x2b59,
+ 0x2c00, 0x2c2e,
+ 0x2c30, 0x2c5e,
+ 0x2c60, 0x2cf1,
+ 0x2cf9, 0x2d25,
+ 0x2d30, 0x2d65,
+ 0x2d6f, 0x2d70,
+ 0x2d7f, 0x2d96,
+ 0x2da0, 0x2da6,
+ 0x2da8, 0x2dae,
+ 0x2db0, 0x2db6,
+ 0x2db8, 0x2dbe,
+ 0x2dc0, 0x2dc6,
+ 0x2dc8, 0x2dce,
+ 0x2dd0, 0x2dd6,
+ 0x2dd8, 0x2dde,
+ 0x2de0, 0x2e31,
+ 0x2e80, 0x2e99,
+ 0x2e9b, 0x2ef3,
+ 0x2f00, 0x2fd5,
+ 0x2ff0, 0x2ffb,
+ 0x3001, 0x303f,
+ 0x3041, 0x3096,
+ 0x3099, 0x30ff,
+ 0x3105, 0x312d,
+ 0x3131, 0x318e,
+ 0x3190, 0x31ba,
+ 0x31c0, 0x31e3,
+ 0x31f0, 0x321e,
+ 0x3220, 0x32fe,
+ 0x3300, 0x4db5,
+ 0x4dc0, 0x9fcb,
+ 0xa000, 0xa48c,
+ 0xa490, 0xa4c6,
+ 0xa4d0, 0xa62b,
+ 0xa640, 0xa673,
+ 0xa67c, 0xa697,
+ 0xa6a0, 0xa6f7,
+ 0xa700, 0xa78e,
+ 0xa790, 0xa791,
+ 0xa7a0, 0xa7a9,
+ 0xa7fa, 0xa82b,
+ 0xa830, 0xa839,
+ 0xa840, 0xa877,
+ 0xa880, 0xa8c4,
+ 0xa8ce, 0xa8d9,
+ 0xa8e0, 0xa8fb,
+ 0xa900, 0xa953,
+ 0xa95f, 0xa97c,
+ 0xa980, 0xa9cd,
+ 0xa9cf, 0xa9d9,
+ 0xa9de, 0xa9df,
+ 0xaa00, 0xaa36,
+ 0xaa40, 0xaa4d,
+ 0xaa50, 0xaa59,
+ 0xaa5c, 0xaa7b,
+ 0xaa80, 0xaac2,
+ 0xaadb, 0xaadf,
+ 0xab01, 0xab06,
+ 0xab09, 0xab0e,
+ 0xab11, 0xab16,
+ 0xab20, 0xab26,
+ 0xab28, 0xab2e,
+ 0xabc0, 0xabed,
+ 0xabf0, 0xabf9,
+ 0xac00, 0xd7a3,
+ 0xd7b0, 0xd7c6,
+ 0xd7cb, 0xd7fb,
+ 0xe000, 0xfa2d,
+ 0xfa30, 0xfa6d,
+ 0xfa70, 0xfad9,
+ 0xfb00, 0xfb06,
+ 0xfb13, 0xfb17,
+ 0xfb1d, 0xfb36,
+ 0xfb38, 0xfb3c,
+ 0xfb3e, 0xfb3e,
+ 0xfb40, 0xfb41,
+ 0xfb43, 0xfb44,
+ 0xfb46, 0xfbc1,
+ 0xfbd3, 0xfd3f,
+ 0xfd50, 0xfd8f,
+ 0xfd92, 0xfdc7,
+ 0xfdf0, 0xfdfd,
+ 0xfe00, 0xfe19,
+ 0xfe20, 0xfe26,
+ 0xfe30, 0xfe52,
+ 0xfe54, 0xfe66,
+ 0xfe68, 0xfe6b,
+ 0xfe70, 0xfe74,
+ 0xfe76, 0xfefc,
+ 0xfeff, 0xfeff,
+ 0xff01, 0xffbe,
+ 0xffc2, 0xffc7,
+ 0xffca, 0xffcf,
+ 0xffd2, 0xffd7,
+ 0xffda, 0xffdc,
+ 0xffe0, 0xffe6,
+ 0xffe8, 0xffee,
+ 0xfff9, 0xfffd,
+ 0x10000, 0x1000b,
+ 0x1000d, 0x10026,
+ 0x10028, 0x1003a,
+ 0x1003c, 0x1003d,
+ 0x1003f, 0x1004d,
+ 0x10050, 0x1005d,
+ 0x10080, 0x100fa,
+ 0x10100, 0x10102,
+ 0x10107, 0x10133,
+ 0x10137, 0x1018a,
+ 0x10190, 0x1019b,
+ 0x101d0, 0x101fd,
+ 0x10280, 0x1029c,
+ 0x102a0, 0x102d0,
+ 0x10300, 0x1031e,
+ 0x10320, 0x10323,
+ 0x10330, 0x1034a,
+ 0x10380, 0x1039d,
+ 0x1039f, 0x103c3,
+ 0x103c8, 0x103d5,
+ 0x10400, 0x1049d,
+ 0x104a0, 0x104a9,
+ 0x10800, 0x10805,
+ 0x10808, 0x10808,
+ 0x1080a, 0x10835,
+ 0x10837, 0x10838,
+ 0x1083c, 0x1083c,
+ 0x1083f, 0x10855,
+ 0x10857, 0x1085f,
+ 0x10900, 0x1091b,
+ 0x1091f, 0x10939,
+ 0x1093f, 0x1093f,
+ 0x10a00, 0x10a03,
+ 0x10a05, 0x10a06,
+ 0x10a0c, 0x10a13,
+ 0x10a15, 0x10a17,
+ 0x10a19, 0x10a33,
+ 0x10a38, 0x10a3a,
+ 0x10a3f, 0x10a47,
+ 0x10a50, 0x10a58,
+ 0x10a60, 0x10a7f,
+ 0x10b00, 0x10b35,
+ 0x10b39, 0x10b55,
+ 0x10b58, 0x10b72,
+ 0x10b78, 0x10b7f,
+ 0x10c00, 0x10c48,
+ 0x10e60, 0x10e7e,
+ 0x11000, 0x1104d,
+ 0x11052, 0x1106f,
+ 0x11080, 0x110c1,
+ 0x12000, 0x1236e,
+ 0x12400, 0x12462,
+ 0x12470, 0x12473,
+ 0x13000, 0x1342e,
+ 0x16800, 0x16a38,
+ 0x1b000, 0x1b001,
+ 0x1d000, 0x1d0f5,
+ 0x1d100, 0x1d126,
+ 0x1d129, 0x1d1dd,
+ 0x1d200, 0x1d245,
+ 0x1d300, 0x1d356,
+ 0x1d360, 0x1d371,
+ 0x1d400, 0x1d454,
+ 0x1d456, 0x1d49c,
+ 0x1d49e, 0x1d49f,
+ 0x1d4a2, 0x1d4a2,
+ 0x1d4a5, 0x1d4a6,
+ 0x1d4a9, 0x1d4ac,
+ 0x1d4ae, 0x1d4b9,
+ 0x1d4bb, 0x1d4bb,
+ 0x1d4bd, 0x1d4c3,
+ 0x1d4c5, 0x1d505,
+ 0x1d507, 0x1d50a,
+ 0x1d50d, 0x1d514,
+ 0x1d516, 0x1d51c,
+ 0x1d51e, 0x1d539,
+ 0x1d53b, 0x1d53e,
+ 0x1d540, 0x1d544,
+ 0x1d546, 0x1d546,
+ 0x1d54a, 0x1d550,
+ 0x1d552, 0x1d6a5,
+ 0x1d6a8, 0x1d7cb,
+ 0x1d7ce, 0x1d7ff,
+ 0x1f000, 0x1f02b,
+ 0x1f030, 0x1f093,
+ 0x1f0a0, 0x1f0ae,
+ 0x1f0b1, 0x1f0be,
+ 0x1f0c1, 0x1f0cf,
+ 0x1f0d1, 0x1f0df,
+ 0x1f100, 0x1f10a,
+ 0x1f110, 0x1f12e,
+ 0x1f130, 0x1f169,
+ 0x1f170, 0x1f19a,
+ 0x1f1e6, 0x1f202,
+ 0x1f210, 0x1f23a,
+ 0x1f240, 0x1f248,
+ 0x1f250, 0x1f251,
+ 0x1f300, 0x1f320,
+ 0x1f330, 0x1f335,
+ 0x1f337, 0x1f37c,
+ 0x1f380, 0x1f393,
+ 0x1f3a0, 0x1f3c4,
+ 0x1f3c6, 0x1f3ca,
+ 0x1f3e0, 0x1f3f0,
+ 0x1f400, 0x1f43e,
+ 0x1f440, 0x1f440,
+ 0x1f442, 0x1f4f7,
+ 0x1f4f9, 0x1f4fc,
+ 0x1f500, 0x1f53d,
+ 0x1f550, 0x1f567,
+ 0x1f5fb, 0x1f5ff,
+ 0x1f601, 0x1f610,
+ 0x1f612, 0x1f614,
+ 0x1f616, 0x1f616,
+ 0x1f618, 0x1f618,
+ 0x1f61a, 0x1f61a,
+ 0x1f61c, 0x1f61e,
+ 0x1f620, 0x1f625,
+ 0x1f628, 0x1f62b,
+ 0x1f62d, 0x1f62d,
+ 0x1f630, 0x1f633,
+ 0x1f635, 0x1f640,
+ 0x1f645, 0x1f64f,
+ 0x1f680, 0x1f6c5,
+ 0x1f700, 0x1f773,
+ 0x20000, 0x2a6d6,
+ 0x2a700, 0x2b734,
+ 0x2b740, 0x2b81d,
+ 0x2f800, 0x2fa1d,
+ 0xe0001, 0xe0001,
+ 0xe0020, 0xe007f,
+ 0xe0100, 0xe01ef,
+ 0xf0000, 0xffffd,
+ 0x100000, 0x10fffd,
+}; /* CR_Graph */
+
+/* 'Lower': [[:Lower:]] */
+#define CR_Lower CR_Lowercase
+
+/* 'Print': [[:Print:]] */
+static const OnigCodePoint CR_Print[] = {
+ 503,
+ 0x0020, 0x007e,
+ 0x00a0, 0x0377,
+ 0x037a, 0x037e,
+ 0x0384, 0x038a,
+ 0x038c, 0x038c,
+ 0x038e, 0x03a1,
+ 0x03a3, 0x0527,
+ 0x0531, 0x0556,
+ 0x0559, 0x055f,
+ 0x0561, 0x0587,
+ 0x0589, 0x058a,
+ 0x0591, 0x05c7,
+ 0x05d0, 0x05ea,
+ 0x05f0, 0x05f4,
+ 0x0600, 0x0603,
+ 0x0606, 0x061b,
+ 0x061e, 0x070d,
+ 0x070f, 0x074a,
+ 0x074d, 0x07b1,
+ 0x07c0, 0x07fa,
+ 0x0800, 0x082d,
+ 0x0830, 0x083e,
+ 0x0840, 0x085b,
+ 0x085e, 0x085e,
+ 0x0900, 0x0977,
+ 0x0979, 0x097f,
+ 0x0981, 0x0983,
+ 0x0985, 0x098c,
+ 0x098f, 0x0990,
+ 0x0993, 0x09a8,
+ 0x09aa, 0x09b0,
+ 0x09b2, 0x09b2,
+ 0x09b6, 0x09b9,
+ 0x09bc, 0x09c4,
+ 0x09c7, 0x09c8,
+ 0x09cb, 0x09ce,
+ 0x09d7, 0x09d7,
+ 0x09dc, 0x09dd,
+ 0x09df, 0x09e3,
+ 0x09e6, 0x09fb,
+ 0x0a01, 0x0a03,
+ 0x0a05, 0x0a0a,
+ 0x0a0f, 0x0a10,
+ 0x0a13, 0x0a28,
+ 0x0a2a, 0x0a30,
+ 0x0a32, 0x0a33,
+ 0x0a35, 0x0a36,
+ 0x0a38, 0x0a39,
+ 0x0a3c, 0x0a3c,
+ 0x0a3e, 0x0a42,
+ 0x0a47, 0x0a48,
+ 0x0a4b, 0x0a4d,
+ 0x0a51, 0x0a51,
+ 0x0a59, 0x0a5c,
+ 0x0a5e, 0x0a5e,
+ 0x0a66, 0x0a75,
+ 0x0a81, 0x0a83,
+ 0x0a85, 0x0a8d,
+ 0x0a8f, 0x0a91,
+ 0x0a93, 0x0aa8,
+ 0x0aaa, 0x0ab0,
+ 0x0ab2, 0x0ab3,
+ 0x0ab5, 0x0ab9,
+ 0x0abc, 0x0ac5,
+ 0x0ac7, 0x0ac9,
+ 0x0acb, 0x0acd,
+ 0x0ad0, 0x0ad0,
+ 0x0ae0, 0x0ae3,
+ 0x0ae6, 0x0aef,
+ 0x0af1, 0x0af1,
+ 0x0b01, 0x0b03,
+ 0x0b05, 0x0b0c,
+ 0x0b0f, 0x0b10,
+ 0x0b13, 0x0b28,
+ 0x0b2a, 0x0b30,
+ 0x0b32, 0x0b33,
+ 0x0b35, 0x0b39,
+ 0x0b3c, 0x0b44,
+ 0x0b47, 0x0b48,
+ 0x0b4b, 0x0b4d,
+ 0x0b56, 0x0b57,
+ 0x0b5c, 0x0b5d,
+ 0x0b5f, 0x0b63,
+ 0x0b66, 0x0b77,
+ 0x0b82, 0x0b83,
+ 0x0b85, 0x0b8a,
+ 0x0b8e, 0x0b90,
+ 0x0b92, 0x0b95,
+ 0x0b99, 0x0b9a,
+ 0x0b9c, 0x0b9c,
+ 0x0b9e, 0x0b9f,
+ 0x0ba3, 0x0ba4,
+ 0x0ba8, 0x0baa,
+ 0x0bae, 0x0bb9,
+ 0x0bbe, 0x0bc2,
+ 0x0bc6, 0x0bc8,
+ 0x0bca, 0x0bcd,
+ 0x0bd0, 0x0bd0,
+ 0x0bd7, 0x0bd7,
+ 0x0be6, 0x0bfa,
+ 0x0c01, 0x0c03,
+ 0x0c05, 0x0c0c,
+ 0x0c0e, 0x0c10,
+ 0x0c12, 0x0c28,
+ 0x0c2a, 0x0c33,
+ 0x0c35, 0x0c39,
+ 0x0c3d, 0x0c44,
+ 0x0c46, 0x0c48,
+ 0x0c4a, 0x0c4d,
+ 0x0c55, 0x0c56,
+ 0x0c58, 0x0c59,
+ 0x0c60, 0x0c63,
+ 0x0c66, 0x0c6f,
+ 0x0c78, 0x0c7f,
+ 0x0c82, 0x0c83,
+ 0x0c85, 0x0c8c,
+ 0x0c8e, 0x0c90,
+ 0x0c92, 0x0ca8,
+ 0x0caa, 0x0cb3,
+ 0x0cb5, 0x0cb9,
+ 0x0cbc, 0x0cc4,
+ 0x0cc6, 0x0cc8,
+ 0x0cca, 0x0ccd,
+ 0x0cd5, 0x0cd6,
+ 0x0cde, 0x0cde,
+ 0x0ce0, 0x0ce3,
+ 0x0ce6, 0x0cef,
+ 0x0cf1, 0x0cf2,
+ 0x0d02, 0x0d03,
+ 0x0d05, 0x0d0c,
+ 0x0d0e, 0x0d10,
+ 0x0d12, 0x0d3a,
+ 0x0d3d, 0x0d44,
+ 0x0d46, 0x0d48,
+ 0x0d4a, 0x0d4e,
+ 0x0d57, 0x0d57,
+ 0x0d60, 0x0d63,
+ 0x0d66, 0x0d75,
+ 0x0d79, 0x0d7f,
+ 0x0d82, 0x0d83,
+ 0x0d85, 0x0d96,
+ 0x0d9a, 0x0db1,
+ 0x0db3, 0x0dbb,
+ 0x0dbd, 0x0dbd,
+ 0x0dc0, 0x0dc6,
+ 0x0dca, 0x0dca,
+ 0x0dcf, 0x0dd4,
+ 0x0dd6, 0x0dd6,
+ 0x0dd8, 0x0ddf,
+ 0x0df2, 0x0df4,
+ 0x0e01, 0x0e3a,
+ 0x0e3f, 0x0e5b,
+ 0x0e81, 0x0e82,
+ 0x0e84, 0x0e84,
+ 0x0e87, 0x0e88,
+ 0x0e8a, 0x0e8a,
+ 0x0e8d, 0x0e8d,
+ 0x0e94, 0x0e97,
+ 0x0e99, 0x0e9f,
+ 0x0ea1, 0x0ea3,
+ 0x0ea5, 0x0ea5,
+ 0x0ea7, 0x0ea7,
+ 0x0eaa, 0x0eab,
+ 0x0ead, 0x0eb9,
+ 0x0ebb, 0x0ebd,
+ 0x0ec0, 0x0ec4,
+ 0x0ec6, 0x0ec6,
+ 0x0ec8, 0x0ecd,
+ 0x0ed0, 0x0ed9,
+ 0x0edc, 0x0edd,
+ 0x0f00, 0x0f47,
+ 0x0f49, 0x0f6c,
+ 0x0f71, 0x0f97,
+ 0x0f99, 0x0fbc,
+ 0x0fbe, 0x0fcc,
+ 0x0fce, 0x0fda,
+ 0x1000, 0x10c5,
+ 0x10d0, 0x10fc,
+ 0x1100, 0x1248,
+ 0x124a, 0x124d,
+ 0x1250, 0x1256,
+ 0x1258, 0x1258,
+ 0x125a, 0x125d,
+ 0x1260, 0x1288,
+ 0x128a, 0x128d,
+ 0x1290, 0x12b0,
+ 0x12b2, 0x12b5,
+ 0x12b8, 0x12be,
+ 0x12c0, 0x12c0,
+ 0x12c2, 0x12c5,
+ 0x12c8, 0x12d6,
+ 0x12d8, 0x1310,
+ 0x1312, 0x1315,
+ 0x1318, 0x135a,
+ 0x135d, 0x137c,
+ 0x1380, 0x1399,
+ 0x13a0, 0x13f4,
+ 0x1400, 0x169c,
+ 0x16a0, 0x16f0,
+ 0x1700, 0x170c,
+ 0x170e, 0x1714,
+ 0x1720, 0x1736,
+ 0x1740, 0x1753,
+ 0x1760, 0x176c,
+ 0x176e, 0x1770,
+ 0x1772, 0x1773,
+ 0x1780, 0x17dd,
+ 0x17e0, 0x17e9,
+ 0x17f0, 0x17f9,
+ 0x1800, 0x180e,
+ 0x1810, 0x1819,
+ 0x1820, 0x1877,
+ 0x1880, 0x18aa,
+ 0x18b0, 0x18f5,
+ 0x1900, 0x191c,
+ 0x1920, 0x192b,
+ 0x1930, 0x193b,
+ 0x1940, 0x1940,
+ 0x1944, 0x196d,
+ 0x1970, 0x1974,
+ 0x1980, 0x19ab,
+ 0x19b0, 0x19c9,
+ 0x19d0, 0x19da,
+ 0x19de, 0x1a1b,
+ 0x1a1e, 0x1a5e,
+ 0x1a60, 0x1a7c,
+ 0x1a7f, 0x1a89,
+ 0x1a90, 0x1a99,
+ 0x1aa0, 0x1aad,
+ 0x1b00, 0x1b4b,
+ 0x1b50, 0x1b7c,
+ 0x1b80, 0x1baa,
+ 0x1bae, 0x1bb9,
+ 0x1bc0, 0x1bf3,
+ 0x1bfc, 0x1c37,
+ 0x1c3b, 0x1c49,
+ 0x1c4d, 0x1c7f,
+ 0x1cd0, 0x1cf2,
+ 0x1d00, 0x1de6,
+ 0x1dfc, 0x1f15,
+ 0x1f18, 0x1f1d,
+ 0x1f20, 0x1f45,
+ 0x1f48, 0x1f4d,
+ 0x1f50, 0x1f57,
+ 0x1f59, 0x1f59,
+ 0x1f5b, 0x1f5b,
+ 0x1f5d, 0x1f5d,
+ 0x1f5f, 0x1f7d,
+ 0x1f80, 0x1fb4,
+ 0x1fb6, 0x1fc4,
+ 0x1fc6, 0x1fd3,
+ 0x1fd6, 0x1fdb,
+ 0x1fdd, 0x1fef,
+ 0x1ff2, 0x1ff4,
+ 0x1ff6, 0x1ffe,
+ 0x2000, 0x2027,
+ 0x202a, 0x2064,
+ 0x206a, 0x2071,
+ 0x2074, 0x208e,
+ 0x2090, 0x209c,
+ 0x20a0, 0x20b9,
+ 0x20d0, 0x20f0,
+ 0x2100, 0x2189,
+ 0x2190, 0x23f3,
+ 0x2400, 0x2426,
+ 0x2440, 0x244a,
+ 0x2460, 0x26ff,
+ 0x2701, 0x27ca,
+ 0x27cc, 0x27cc,
+ 0x27ce, 0x2b4c,
+ 0x2b50, 0x2b59,
+ 0x2c00, 0x2c2e,
+ 0x2c30, 0x2c5e,
+ 0x2c60, 0x2cf1,
+ 0x2cf9, 0x2d25,
+ 0x2d30, 0x2d65,
+ 0x2d6f, 0x2d70,
+ 0x2d7f, 0x2d96,
+ 0x2da0, 0x2da6,
+ 0x2da8, 0x2dae,
+ 0x2db0, 0x2db6,
+ 0x2db8, 0x2dbe,
+ 0x2dc0, 0x2dc6,
+ 0x2dc8, 0x2dce,
+ 0x2dd0, 0x2dd6,
+ 0x2dd8, 0x2dde,
+ 0x2de0, 0x2e31,
+ 0x2e80, 0x2e99,
+ 0x2e9b, 0x2ef3,
+ 0x2f00, 0x2fd5,
+ 0x2ff0, 0x2ffb,
+ 0x3000, 0x303f,
+ 0x3041, 0x3096,
+ 0x3099, 0x30ff,
+ 0x3105, 0x312d,
+ 0x3131, 0x318e,
+ 0x3190, 0x31ba,
+ 0x31c0, 0x31e3,
+ 0x31f0, 0x321e,
+ 0x3220, 0x32fe,
+ 0x3300, 0x4db5,
+ 0x4dc0, 0x9fcb,
+ 0xa000, 0xa48c,
+ 0xa490, 0xa4c6,
+ 0xa4d0, 0xa62b,
+ 0xa640, 0xa673,
+ 0xa67c, 0xa697,
+ 0xa6a0, 0xa6f7,
+ 0xa700, 0xa78e,
+ 0xa790, 0xa791,
+ 0xa7a0, 0xa7a9,
+ 0xa7fa, 0xa82b,
+ 0xa830, 0xa839,
+ 0xa840, 0xa877,
+ 0xa880, 0xa8c4,
+ 0xa8ce, 0xa8d9,
+ 0xa8e0, 0xa8fb,
+ 0xa900, 0xa953,
+ 0xa95f, 0xa97c,
+ 0xa980, 0xa9cd,
+ 0xa9cf, 0xa9d9,
+ 0xa9de, 0xa9df,
+ 0xaa00, 0xaa36,
+ 0xaa40, 0xaa4d,
+ 0xaa50, 0xaa59,
+ 0xaa5c, 0xaa7b,
+ 0xaa80, 0xaac2,
+ 0xaadb, 0xaadf,
+ 0xab01, 0xab06,
+ 0xab09, 0xab0e,
+ 0xab11, 0xab16,
+ 0xab20, 0xab26,
+ 0xab28, 0xab2e,
+ 0xabc0, 0xabed,
+ 0xabf0, 0xabf9,
+ 0xac00, 0xd7a3,
+ 0xd7b0, 0xd7c6,
+ 0xd7cb, 0xd7fb,
+ 0xe000, 0xfa2d,
+ 0xfa30, 0xfa6d,
+ 0xfa70, 0xfad9,
+ 0xfb00, 0xfb06,
+ 0xfb13, 0xfb17,
+ 0xfb1d, 0xfb36,
+ 0xfb38, 0xfb3c,
+ 0xfb3e, 0xfb3e,
+ 0xfb40, 0xfb41,
+ 0xfb43, 0xfb44,
+ 0xfb46, 0xfbc1,
+ 0xfbd3, 0xfd3f,
+ 0xfd50, 0xfd8f,
+ 0xfd92, 0xfdc7,
+ 0xfdf0, 0xfdfd,
+ 0xfe00, 0xfe19,
+ 0xfe20, 0xfe26,
+ 0xfe30, 0xfe52,
+ 0xfe54, 0xfe66,
+ 0xfe68, 0xfe6b,
+ 0xfe70, 0xfe74,
+ 0xfe76, 0xfefc,
+ 0xfeff, 0xfeff,
+ 0xff01, 0xffbe,
+ 0xffc2, 0xffc7,
+ 0xffca, 0xffcf,
+ 0xffd2, 0xffd7,
+ 0xffda, 0xffdc,
+ 0xffe0, 0xffe6,
+ 0xffe8, 0xffee,
+ 0xfff9, 0xfffd,
+ 0x10000, 0x1000b,
+ 0x1000d, 0x10026,
+ 0x10028, 0x1003a,
+ 0x1003c, 0x1003d,
+ 0x1003f, 0x1004d,
+ 0x10050, 0x1005d,
+ 0x10080, 0x100fa,
+ 0x10100, 0x10102,
+ 0x10107, 0x10133,
+ 0x10137, 0x1018a,
+ 0x10190, 0x1019b,
+ 0x101d0, 0x101fd,
+ 0x10280, 0x1029c,
+ 0x102a0, 0x102d0,
+ 0x10300, 0x1031e,
+ 0x10320, 0x10323,
+ 0x10330, 0x1034a,
+ 0x10380, 0x1039d,
+ 0x1039f, 0x103c3,
+ 0x103c8, 0x103d5,
+ 0x10400, 0x1049d,
+ 0x104a0, 0x104a9,
+ 0x10800, 0x10805,
+ 0x10808, 0x10808,
+ 0x1080a, 0x10835,
+ 0x10837, 0x10838,
+ 0x1083c, 0x1083c,
+ 0x1083f, 0x10855,
+ 0x10857, 0x1085f,
+ 0x10900, 0x1091b,
+ 0x1091f, 0x10939,
+ 0x1093f, 0x1093f,
+ 0x10a00, 0x10a03,
+ 0x10a05, 0x10a06,
+ 0x10a0c, 0x10a13,
+ 0x10a15, 0x10a17,
+ 0x10a19, 0x10a33,
+ 0x10a38, 0x10a3a,
+ 0x10a3f, 0x10a47,
+ 0x10a50, 0x10a58,
+ 0x10a60, 0x10a7f,
+ 0x10b00, 0x10b35,
+ 0x10b39, 0x10b55,
+ 0x10b58, 0x10b72,
+ 0x10b78, 0x10b7f,
+ 0x10c00, 0x10c48,
+ 0x10e60, 0x10e7e,
+ 0x11000, 0x1104d,
+ 0x11052, 0x1106f,
+ 0x11080, 0x110c1,
+ 0x12000, 0x1236e,
+ 0x12400, 0x12462,
+ 0x12470, 0x12473,
+ 0x13000, 0x1342e,
+ 0x16800, 0x16a38,
+ 0x1b000, 0x1b001,
+ 0x1d000, 0x1d0f5,
+ 0x1d100, 0x1d126,
+ 0x1d129, 0x1d1dd,
+ 0x1d200, 0x1d245,
+ 0x1d300, 0x1d356,
+ 0x1d360, 0x1d371,
+ 0x1d400, 0x1d454,
+ 0x1d456, 0x1d49c,
+ 0x1d49e, 0x1d49f,
+ 0x1d4a2, 0x1d4a2,
+ 0x1d4a5, 0x1d4a6,
+ 0x1d4a9, 0x1d4ac,
+ 0x1d4ae, 0x1d4b9,
+ 0x1d4bb, 0x1d4bb,
+ 0x1d4bd, 0x1d4c3,
+ 0x1d4c5, 0x1d505,
+ 0x1d507, 0x1d50a,
+ 0x1d50d, 0x1d514,
+ 0x1d516, 0x1d51c,
+ 0x1d51e, 0x1d539,
+ 0x1d53b, 0x1d53e,
+ 0x1d540, 0x1d544,
+ 0x1d546, 0x1d546,
+ 0x1d54a, 0x1d550,
+ 0x1d552, 0x1d6a5,
+ 0x1d6a8, 0x1d7cb,
+ 0x1d7ce, 0x1d7ff,
+ 0x1f000, 0x1f02b,
+ 0x1f030, 0x1f093,
+ 0x1f0a0, 0x1f0ae,
+ 0x1f0b1, 0x1f0be,
+ 0x1f0c1, 0x1f0cf,
+ 0x1f0d1, 0x1f0df,
+ 0x1f100, 0x1f10a,
+ 0x1f110, 0x1f12e,
+ 0x1f130, 0x1f169,
+ 0x1f170, 0x1f19a,
+ 0x1f1e6, 0x1f202,
+ 0x1f210, 0x1f23a,
+ 0x1f240, 0x1f248,
+ 0x1f250, 0x1f251,
+ 0x1f300, 0x1f320,
+ 0x1f330, 0x1f335,
+ 0x1f337, 0x1f37c,
+ 0x1f380, 0x1f393,
+ 0x1f3a0, 0x1f3c4,
+ 0x1f3c6, 0x1f3ca,
+ 0x1f3e0, 0x1f3f0,
+ 0x1f400, 0x1f43e,
+ 0x1f440, 0x1f440,
+ 0x1f442, 0x1f4f7,
+ 0x1f4f9, 0x1f4fc,
+ 0x1f500, 0x1f53d,
+ 0x1f550, 0x1f567,
+ 0x1f5fb, 0x1f5ff,
+ 0x1f601, 0x1f610,
+ 0x1f612, 0x1f614,
+ 0x1f616, 0x1f616,
+ 0x1f618, 0x1f618,
+ 0x1f61a, 0x1f61a,
+ 0x1f61c, 0x1f61e,
+ 0x1f620, 0x1f625,
+ 0x1f628, 0x1f62b,
+ 0x1f62d, 0x1f62d,
+ 0x1f630, 0x1f633,
+ 0x1f635, 0x1f640,
+ 0x1f645, 0x1f64f,
+ 0x1f680, 0x1f6c5,
+ 0x1f700, 0x1f773,
+ 0x20000, 0x2a6d6,
+ 0x2a700, 0x2b734,
+ 0x2b740, 0x2b81d,
+ 0x2f800, 0x2fa1d,
+ 0xe0001, 0xe0001,
+ 0xe0020, 0xe007f,
+ 0xe0100, 0xe01ef,
+ 0xf0000, 0xffffd,
+ 0x100000, 0x10fffd,
+}; /* CR_Print */
+
+/* 'Punct': [[:Punct:]] */
+#define CR_Punct CR_P
+
+/* 'Space': [[:Space:]] */
+#define CR_Space CR_White_Space
+
+/* 'Upper': [[:Upper:]] */
+#define CR_Upper CR_Uppercase
+
+/* 'XDigit': [[:XDigit:]] */
+#define CR_XDigit CR_ASCII_Hex_Digit
+
+/* 'Word': [[:Word:]] */
+static const OnigCodePoint CR_Word[] = {
+ 514,
+ 0x0030, 0x0039,
+ 0x0041, 0x005a,
+ 0x005f, 0x005f,
+ 0x0061, 0x007a,
+ 0x00aa, 0x00aa,
+ 0x00b5, 0x00b5,
+ 0x00ba, 0x00ba,
+ 0x00c0, 0x00d6,
+ 0x00d8, 0x00f6,
+ 0x00f8, 0x02c1,
+ 0x02c6, 0x02d1,
+ 0x02e0, 0x02e4,
+ 0x02ec, 0x02ec,
+ 0x02ee, 0x02ee,
+ 0x0300, 0x0374,
+ 0x0376, 0x0377,
+ 0x037a, 0x037d,
+ 0x0386, 0x0386,
+ 0x0388, 0x038a,
+ 0x038c, 0x038c,
+ 0x038e, 0x03a1,
+ 0x03a3, 0x03f5,
+ 0x03f7, 0x0481,
+ 0x0483, 0x0527,
+ 0x0531, 0x0556,
+ 0x0559, 0x0559,
+ 0x0561, 0x0587,
+ 0x0591, 0x05bd,
+ 0x05bf, 0x05bf,
+ 0x05c1, 0x05c2,
+ 0x05c4, 0x05c5,
+ 0x05c7, 0x05c7,
+ 0x05d0, 0x05ea,
+ 0x05f0, 0x05f2,
+ 0x0610, 0x061a,
+ 0x0620, 0x0669,
+ 0x066e, 0x06d3,
+ 0x06d5, 0x06dc,
+ 0x06df, 0x06e8,
+ 0x06ea, 0x06fc,
+ 0x06ff, 0x06ff,
+ 0x0710, 0x074a,
+ 0x074d, 0x07b1,
+ 0x07c0, 0x07f5,
+ 0x07fa, 0x07fa,
+ 0x0800, 0x082d,
+ 0x0840, 0x085b,
+ 0x0900, 0x0963,
+ 0x0966, 0x096f,
+ 0x0971, 0x0977,
+ 0x0979, 0x097f,
+ 0x0981, 0x0983,
+ 0x0985, 0x098c,
+ 0x098f, 0x0990,
+ 0x0993, 0x09a8,
+ 0x09aa, 0x09b0,
+ 0x09b2, 0x09b2,
+ 0x09b6, 0x09b9,
+ 0x09bc, 0x09c4,
+ 0x09c7, 0x09c8,
+ 0x09cb, 0x09ce,
+ 0x09d7, 0x09d7,
+ 0x09dc, 0x09dd,
+ 0x09df, 0x09e3,
+ 0x09e6, 0x09f1,
+ 0x0a01, 0x0a03,
+ 0x0a05, 0x0a0a,
+ 0x0a0f, 0x0a10,
+ 0x0a13, 0x0a28,
+ 0x0a2a, 0x0a30,
+ 0x0a32, 0x0a33,
+ 0x0a35, 0x0a36,
+ 0x0a38, 0x0a39,
+ 0x0a3c, 0x0a3c,
+ 0x0a3e, 0x0a42,
+ 0x0a47, 0x0a48,
+ 0x0a4b, 0x0a4d,
+ 0x0a51, 0x0a51,
+ 0x0a59, 0x0a5c,
+ 0x0a5e, 0x0a5e,
+ 0x0a66, 0x0a75,
+ 0x0a81, 0x0a83,
+ 0x0a85, 0x0a8d,
+ 0x0a8f, 0x0a91,
+ 0x0a93, 0x0aa8,
+ 0x0aaa, 0x0ab0,
+ 0x0ab2, 0x0ab3,
+ 0x0ab5, 0x0ab9,
+ 0x0abc, 0x0ac5,
+ 0x0ac7, 0x0ac9,
+ 0x0acb, 0x0acd,
+ 0x0ad0, 0x0ad0,
+ 0x0ae0, 0x0ae3,
+ 0x0ae6, 0x0aef,
+ 0x0b01, 0x0b03,
+ 0x0b05, 0x0b0c,
+ 0x0b0f, 0x0b10,
+ 0x0b13, 0x0b28,
+ 0x0b2a, 0x0b30,
+ 0x0b32, 0x0b33,
+ 0x0b35, 0x0b39,
+ 0x0b3c, 0x0b44,
+ 0x0b47, 0x0b48,
+ 0x0b4b, 0x0b4d,
+ 0x0b56, 0x0b57,
+ 0x0b5c, 0x0b5d,
+ 0x0b5f, 0x0b63,
+ 0x0b66, 0x0b6f,
+ 0x0b71, 0x0b71,
+ 0x0b82, 0x0b83,
+ 0x0b85, 0x0b8a,
+ 0x0b8e, 0x0b90,
+ 0x0b92, 0x0b95,
+ 0x0b99, 0x0b9a,
+ 0x0b9c, 0x0b9c,
+ 0x0b9e, 0x0b9f,
+ 0x0ba3, 0x0ba4,
+ 0x0ba8, 0x0baa,
+ 0x0bae, 0x0bb9,
+ 0x0bbe, 0x0bc2,
+ 0x0bc6, 0x0bc8,
+ 0x0bca, 0x0bcd,
+ 0x0bd0, 0x0bd0,
+ 0x0bd7, 0x0bd7,
+ 0x0be6, 0x0bef,
+ 0x0c01, 0x0c03,
+ 0x0c05, 0x0c0c,
+ 0x0c0e, 0x0c10,
+ 0x0c12, 0x0c28,
+ 0x0c2a, 0x0c33,
+ 0x0c35, 0x0c39,
+ 0x0c3d, 0x0c44,
+ 0x0c46, 0x0c48,
+ 0x0c4a, 0x0c4d,
+ 0x0c55, 0x0c56,
+ 0x0c58, 0x0c59,
+ 0x0c60, 0x0c63,
+ 0x0c66, 0x0c6f,
+ 0x0c82, 0x0c83,
+ 0x0c85, 0x0c8c,
+ 0x0c8e, 0x0c90,
+ 0x0c92, 0x0ca8,
+ 0x0caa, 0x0cb3,
+ 0x0cb5, 0x0cb9,
+ 0x0cbc, 0x0cc4,
+ 0x0cc6, 0x0cc8,
+ 0x0cca, 0x0ccd,
+ 0x0cd5, 0x0cd6,
+ 0x0cde, 0x0cde,
+ 0x0ce0, 0x0ce3,
+ 0x0ce6, 0x0cef,
+ 0x0cf1, 0x0cf2,
+ 0x0d02, 0x0d03,
+ 0x0d05, 0x0d0c,
+ 0x0d0e, 0x0d10,
+ 0x0d12, 0x0d3a,
+ 0x0d3d, 0x0d44,
+ 0x0d46, 0x0d48,
+ 0x0d4a, 0x0d4e,
+ 0x0d57, 0x0d57,
+ 0x0d60, 0x0d63,
+ 0x0d66, 0x0d6f,
+ 0x0d7a, 0x0d7f,
+ 0x0d82, 0x0d83,
+ 0x0d85, 0x0d96,
+ 0x0d9a, 0x0db1,
+ 0x0db3, 0x0dbb,
+ 0x0dbd, 0x0dbd,
+ 0x0dc0, 0x0dc6,
+ 0x0dca, 0x0dca,
+ 0x0dcf, 0x0dd4,
+ 0x0dd6, 0x0dd6,
+ 0x0dd8, 0x0ddf,
+ 0x0df2, 0x0df3,
+ 0x0e01, 0x0e3a,
+ 0x0e40, 0x0e4e,
+ 0x0e50, 0x0e59,
+ 0x0e81, 0x0e82,
+ 0x0e84, 0x0e84,
+ 0x0e87, 0x0e88,
+ 0x0e8a, 0x0e8a,
+ 0x0e8d, 0x0e8d,
+ 0x0e94, 0x0e97,
+ 0x0e99, 0x0e9f,
+ 0x0ea1, 0x0ea3,
+ 0x0ea5, 0x0ea5,
+ 0x0ea7, 0x0ea7,
+ 0x0eaa, 0x0eab,
+ 0x0ead, 0x0eb9,
+ 0x0ebb, 0x0ebd,
+ 0x0ec0, 0x0ec4,
+ 0x0ec6, 0x0ec6,
+ 0x0ec8, 0x0ecd,
+ 0x0ed0, 0x0ed9,
+ 0x0edc, 0x0edd,
+ 0x0f00, 0x0f00,
+ 0x0f18, 0x0f19,
+ 0x0f20, 0x0f29,
+ 0x0f35, 0x0f35,
+ 0x0f37, 0x0f37,
+ 0x0f39, 0x0f39,
+ 0x0f3e, 0x0f47,
+ 0x0f49, 0x0f6c,
+ 0x0f71, 0x0f84,
+ 0x0f86, 0x0f97,
+ 0x0f99, 0x0fbc,
+ 0x0fc6, 0x0fc6,
+ 0x1000, 0x1049,
+ 0x1050, 0x109d,
+ 0x10a0, 0x10c5,
+ 0x10d0, 0x10fa,
+ 0x10fc, 0x10fc,
+ 0x1100, 0x1248,
+ 0x124a, 0x124d,
+ 0x1250, 0x1256,
+ 0x1258, 0x1258,
+ 0x125a, 0x125d,
+ 0x1260, 0x1288,
+ 0x128a, 0x128d,
+ 0x1290, 0x12b0,
+ 0x12b2, 0x12b5,
+ 0x12b8, 0x12be,
+ 0x12c0, 0x12c0,
+ 0x12c2, 0x12c5,
+ 0x12c8, 0x12d6,
+ 0x12d8, 0x1310,
+ 0x1312, 0x1315,
+ 0x1318, 0x135a,
+ 0x135d, 0x135f,
+ 0x1380, 0x138f,
+ 0x13a0, 0x13f4,
+ 0x1401, 0x166c,
+ 0x166f, 0x167f,
+ 0x1681, 0x169a,
+ 0x16a0, 0x16ea,
+ 0x16ee, 0x16f0,
+ 0x1700, 0x170c,
+ 0x170e, 0x1714,
+ 0x1720, 0x1734,
+ 0x1740, 0x1753,
+ 0x1760, 0x176c,
+ 0x176e, 0x1770,
+ 0x1772, 0x1773,
+ 0x1780, 0x17b3,
+ 0x17b6, 0x17d3,
+ 0x17d7, 0x17d7,
+ 0x17dc, 0x17dd,
+ 0x17e0, 0x17e9,
+ 0x180b, 0x180d,
+ 0x1810, 0x1819,
+ 0x1820, 0x1877,
+ 0x1880, 0x18aa,
+ 0x18b0, 0x18f5,
+ 0x1900, 0x191c,
+ 0x1920, 0x192b,
+ 0x1930, 0x193b,
+ 0x1946, 0x196d,
+ 0x1970, 0x1974,
+ 0x1980, 0x19ab,
+ 0x19b0, 0x19c9,
+ 0x19d0, 0x19d9,
+ 0x1a00, 0x1a1b,
+ 0x1a20, 0x1a5e,
+ 0x1a60, 0x1a7c,
+ 0x1a7f, 0x1a89,
+ 0x1a90, 0x1a99,
+ 0x1aa7, 0x1aa7,
+ 0x1b00, 0x1b4b,
+ 0x1b50, 0x1b59,
+ 0x1b6b, 0x1b73,
+ 0x1b80, 0x1baa,
+ 0x1bae, 0x1bb9,
+ 0x1bc0, 0x1bf3,
+ 0x1c00, 0x1c37,
+ 0x1c40, 0x1c49,
+ 0x1c4d, 0x1c7d,
+ 0x1cd0, 0x1cd2,
+ 0x1cd4, 0x1cf2,
+ 0x1d00, 0x1de6,
+ 0x1dfc, 0x1f15,
+ 0x1f18, 0x1f1d,
+ 0x1f20, 0x1f45,
+ 0x1f48, 0x1f4d,
+ 0x1f50, 0x1f57,
+ 0x1f59, 0x1f59,
+ 0x1f5b, 0x1f5b,
+ 0x1f5d, 0x1f5d,
+ 0x1f5f, 0x1f7d,
+ 0x1f80, 0x1fb4,
+ 0x1fb6, 0x1fbc,
+ 0x1fbe, 0x1fbe,
+ 0x1fc2, 0x1fc4,
+ 0x1fc6, 0x1fcc,
+ 0x1fd0, 0x1fd3,
+ 0x1fd6, 0x1fdb,
+ 0x1fe0, 0x1fec,
+ 0x1ff2, 0x1ff4,
+ 0x1ff6, 0x1ffc,
+ 0x203f, 0x2040,
+ 0x2054, 0x2054,
+ 0x2071, 0x2071,
+ 0x207f, 0x207f,
+ 0x2090, 0x209c,
+ 0x20d0, 0x20f0,
+ 0x2102, 0x2102,
+ 0x2107, 0x2107,
+ 0x210a, 0x2113,
+ 0x2115, 0x2115,
+ 0x2119, 0x211d,
+ 0x2124, 0x2124,
+ 0x2126, 0x2126,
+ 0x2128, 0x2128,
+ 0x212a, 0x212d,
+ 0x212f, 0x2139,
+ 0x213c, 0x213f,
+ 0x2145, 0x2149,
+ 0x214e, 0x214e,
+ 0x2160, 0x2188,
+ 0x24b6, 0x24e9,
+ 0x2c00, 0x2c2e,
+ 0x2c30, 0x2c5e,
+ 0x2c60, 0x2ce4,
+ 0x2ceb, 0x2cf1,
+ 0x2d00, 0x2d25,
+ 0x2d30, 0x2d65,
+ 0x2d6f, 0x2d6f,
+ 0x2d7f, 0x2d96,
+ 0x2da0, 0x2da6,
+ 0x2da8, 0x2dae,
+ 0x2db0, 0x2db6,
+ 0x2db8, 0x2dbe,
+ 0x2dc0, 0x2dc6,
+ 0x2dc8, 0x2dce,
+ 0x2dd0, 0x2dd6,
+ 0x2dd8, 0x2dde,
+ 0x2de0, 0x2dff,
+ 0x2e2f, 0x2e2f,
+ 0x3005, 0x3007,
+ 0x3021, 0x302f,
+ 0x3031, 0x3035,
+ 0x3038, 0x303c,
+ 0x3041, 0x3096,
+ 0x3099, 0x309a,
+ 0x309d, 0x309f,
+ 0x30a1, 0x30fa,
+ 0x30fc, 0x30ff,
+ 0x3105, 0x312d,
+ 0x3131, 0x318e,
+ 0x31a0, 0x31ba,
+ 0x31f0, 0x31ff,
+ 0x3400, 0x4db5,
+ 0x4e00, 0x9fcb,
+ 0xa000, 0xa48c,
+ 0xa4d0, 0xa4fd,
+ 0xa500, 0xa60c,
+ 0xa610, 0xa62b,
+ 0xa640, 0xa672,
+ 0xa67c, 0xa67d,
+ 0xa67f, 0xa697,
+ 0xa6a0, 0xa6f1,
+ 0xa717, 0xa71f,
+ 0xa722, 0xa788,
+ 0xa78b, 0xa78e,
+ 0xa790, 0xa791,
+ 0xa7a0, 0xa7a9,
+ 0xa7fa, 0xa827,
+ 0xa840, 0xa873,
+ 0xa880, 0xa8c4,
+ 0xa8d0, 0xa8d9,
+ 0xa8e0, 0xa8f7,
+ 0xa8fb, 0xa8fb,
+ 0xa900, 0xa92d,
+ 0xa930, 0xa953,
+ 0xa960, 0xa97c,
+ 0xa980, 0xa9c0,
+ 0xa9cf, 0xa9d9,
+ 0xaa00, 0xaa36,
+ 0xaa40, 0xaa4d,
+ 0xaa50, 0xaa59,
+ 0xaa60, 0xaa76,
+ 0xaa7a, 0xaa7b,
+ 0xaa80, 0xaac2,
+ 0xaadb, 0xaadd,
+ 0xab01, 0xab06,
+ 0xab09, 0xab0e,
+ 0xab11, 0xab16,
+ 0xab20, 0xab26,
+ 0xab28, 0xab2e,
+ 0xabc0, 0xabea,
+ 0xabec, 0xabed,
+ 0xabf0, 0xabf9,
+ 0xac00, 0xd7a3,
+ 0xd7b0, 0xd7c6,
+ 0xd7cb, 0xd7fb,
+ 0xf900, 0xfa2d,
+ 0xfa30, 0xfa6d,
+ 0xfa70, 0xfad9,
+ 0xfb00, 0xfb06,
+ 0xfb13, 0xfb17,
+ 0xfb1d, 0xfb28,
+ 0xfb2a, 0xfb36,
+ 0xfb38, 0xfb3c,
+ 0xfb3e, 0xfb3e,
+ 0xfb40, 0xfb41,
+ 0xfb43, 0xfb44,
+ 0xfb46, 0xfbb1,
+ 0xfbd3, 0xfd3d,
+ 0xfd50, 0xfd8f,
+ 0xfd92, 0xfdc7,
+ 0xfdf0, 0xfdfb,
+ 0xfe00, 0xfe0f,
+ 0xfe20, 0xfe26,
+ 0xfe33, 0xfe34,
+ 0xfe4d, 0xfe4f,
+ 0xfe70, 0xfe74,
+ 0xfe76, 0xfefc,
+ 0xff10, 0xff19,
+ 0xff21, 0xff3a,
+ 0xff3f, 0xff3f,
+ 0xff41, 0xff5a,
+ 0xff66, 0xffbe,
+ 0xffc2, 0xffc7,
+ 0xffca, 0xffcf,
+ 0xffd2, 0xffd7,
+ 0xffda, 0xffdc,
+ 0x10000, 0x1000b,
+ 0x1000d, 0x10026,
+ 0x10028, 0x1003a,
+ 0x1003c, 0x1003d,
+ 0x1003f, 0x1004d,
+ 0x10050, 0x1005d,
+ 0x10080, 0x100fa,
+ 0x10140, 0x10174,
+ 0x101fd, 0x101fd,
+ 0x10280, 0x1029c,
+ 0x102a0, 0x102d0,
+ 0x10300, 0x1031e,
+ 0x10330, 0x1034a,
+ 0x10380, 0x1039d,
+ 0x103a0, 0x103c3,
+ 0x103c8, 0x103cf,
+ 0x103d1, 0x103d5,
+ 0x10400, 0x1049d,
+ 0x104a0, 0x104a9,
+ 0x10800, 0x10805,
+ 0x10808, 0x10808,
+ 0x1080a, 0x10835,
+ 0x10837, 0x10838,
+ 0x1083c, 0x1083c,
+ 0x1083f, 0x10855,
+ 0x10900, 0x10915,
+ 0x10920, 0x10939,
+ 0x10a00, 0x10a03,
+ 0x10a05, 0x10a06,
+ 0x10a0c, 0x10a13,
+ 0x10a15, 0x10a17,
+ 0x10a19, 0x10a33,
+ 0x10a38, 0x10a3a,
+ 0x10a3f, 0x10a3f,
+ 0x10a60, 0x10a7c,
+ 0x10b00, 0x10b35,
+ 0x10b40, 0x10b55,
+ 0x10b60, 0x10b72,
+ 0x10c00, 0x10c48,
+ 0x11000, 0x11046,
+ 0x11066, 0x1106f,
+ 0x11080, 0x110ba,
+ 0x12000, 0x1236e,
+ 0x12400, 0x12462,
+ 0x13000, 0x1342e,
+ 0x16800, 0x16a38,
+ 0x1b000, 0x1b001,
+ 0x1d165, 0x1d169,
+ 0x1d16d, 0x1d172,
+ 0x1d17b, 0x1d182,
+ 0x1d185, 0x1d18b,
+ 0x1d1aa, 0x1d1ad,
+ 0x1d242, 0x1d244,
+ 0x1d400, 0x1d454,
+ 0x1d456, 0x1d49c,
+ 0x1d49e, 0x1d49f,
+ 0x1d4a2, 0x1d4a2,
+ 0x1d4a5, 0x1d4a6,
+ 0x1d4a9, 0x1d4ac,
+ 0x1d4ae, 0x1d4b9,
+ 0x1d4bb, 0x1d4bb,
+ 0x1d4bd, 0x1d4c3,
+ 0x1d4c5, 0x1d505,
+ 0x1d507, 0x1d50a,
+ 0x1d50d, 0x1d514,
+ 0x1d516, 0x1d51c,
+ 0x1d51e, 0x1d539,
+ 0x1d53b, 0x1d53e,
+ 0x1d540, 0x1d544,
+ 0x1d546, 0x1d546,
+ 0x1d54a, 0x1d550,
+ 0x1d552, 0x1d6a5,
+ 0x1d6a8, 0x1d6c0,
+ 0x1d6c2, 0x1d6da,
+ 0x1d6dc, 0x1d6fa,
+ 0x1d6fc, 0x1d714,
+ 0x1d716, 0x1d734,
+ 0x1d736, 0x1d74e,
+ 0x1d750, 0x1d76e,
+ 0x1d770, 0x1d788,
+ 0x1d78a, 0x1d7a8,
+ 0x1d7aa, 0x1d7c2,
+ 0x1d7c4, 0x1d7cb,
+ 0x1d7ce, 0x1d7ff,
+ 0x20000, 0x2a6d6,
+ 0x2a700, 0x2b734,
+ 0x2b740, 0x2b81d,
+ 0x2f800, 0x2fa1d,
+ 0xe0100, 0xe01ef,
+}; /* CR_Word */
+
+/* 'Alnum': [[:Alnum:]] */
+static const OnigCodePoint CR_Alnum[] = {
+ 509,
+ 0x0030, 0x0039,
+ 0x0041, 0x005a,
+ 0x0061, 0x007a,
+ 0x00aa, 0x00aa,
+ 0x00b5, 0x00b5,
+ 0x00ba, 0x00ba,
+ 0x00c0, 0x00d6,
+ 0x00d8, 0x00f6,
+ 0x00f8, 0x02c1,
+ 0x02c6, 0x02d1,
+ 0x02e0, 0x02e4,
+ 0x02ec, 0x02ec,
+ 0x02ee, 0x02ee,
+ 0x0345, 0x0345,
+ 0x0370, 0x0374,
+ 0x0376, 0x0377,
+ 0x037a, 0x037d,
+ 0x0386, 0x0386,
+ 0x0388, 0x038a,
+ 0x038c, 0x038c,
+ 0x038e, 0x03a1,
+ 0x03a3, 0x03f5,
+ 0x03f7, 0x0481,
+ 0x048a, 0x0527,
+ 0x0531, 0x0556,
+ 0x0559, 0x0559,
+ 0x0561, 0x0587,
+ 0x05b0, 0x05bd,
+ 0x05bf, 0x05bf,
+ 0x05c1, 0x05c2,
+ 0x05c4, 0x05c5,
+ 0x05c7, 0x05c7,
+ 0x05d0, 0x05ea,
+ 0x05f0, 0x05f2,
+ 0x0610, 0x061a,
+ 0x0620, 0x0657,
+ 0x0659, 0x0669,
+ 0x066e, 0x06d3,
+ 0x06d5, 0x06dc,
+ 0x06e1, 0x06e8,
+ 0x06ed, 0x06fc,
+ 0x06ff, 0x06ff,
+ 0x0710, 0x073f,
+ 0x074d, 0x07b1,
+ 0x07c0, 0x07ea,
+ 0x07f4, 0x07f5,
+ 0x07fa, 0x07fa,
+ 0x0800, 0x0817,
+ 0x081a, 0x082c,
+ 0x0840, 0x0858,
+ 0x0900, 0x093b,
+ 0x093d, 0x094c,
+ 0x094e, 0x0950,
+ 0x0955, 0x0963,
+ 0x0966, 0x096f,
+ 0x0971, 0x0977,
+ 0x0979, 0x097f,
+ 0x0981, 0x0983,
+ 0x0985, 0x098c,
+ 0x098f, 0x0990,
+ 0x0993, 0x09a8,
+ 0x09aa, 0x09b0,
+ 0x09b2, 0x09b2,
+ 0x09b6, 0x09b9,
+ 0x09bd, 0x09c4,
+ 0x09c7, 0x09c8,
+ 0x09cb, 0x09cc,
+ 0x09ce, 0x09ce,
+ 0x09d7, 0x09d7,
+ 0x09dc, 0x09dd,
+ 0x09df, 0x09e3,
+ 0x09e6, 0x09f1,
+ 0x0a01, 0x0a03,
+ 0x0a05, 0x0a0a,
+ 0x0a0f, 0x0a10,
+ 0x0a13, 0x0a28,
+ 0x0a2a, 0x0a30,
+ 0x0a32, 0x0a33,
+ 0x0a35, 0x0a36,
+ 0x0a38, 0x0a39,
+ 0x0a3e, 0x0a42,
+ 0x0a47, 0x0a48,
+ 0x0a4b, 0x0a4c,
+ 0x0a51, 0x0a51,
+ 0x0a59, 0x0a5c,
+ 0x0a5e, 0x0a5e,
+ 0x0a66, 0x0a75,
+ 0x0a81, 0x0a83,
+ 0x0a85, 0x0a8d,
+ 0x0a8f, 0x0a91,
+ 0x0a93, 0x0aa8,
+ 0x0aaa, 0x0ab0,
+ 0x0ab2, 0x0ab3,
+ 0x0ab5, 0x0ab9,
+ 0x0abd, 0x0ac5,
+ 0x0ac7, 0x0ac9,
+ 0x0acb, 0x0acc,
+ 0x0ad0, 0x0ad0,
+ 0x0ae0, 0x0ae3,
+ 0x0ae6, 0x0aef,
+ 0x0b01, 0x0b03,
+ 0x0b05, 0x0b0c,
+ 0x0b0f, 0x0b10,
+ 0x0b13, 0x0b28,
+ 0x0b2a, 0x0b30,
+ 0x0b32, 0x0b33,
+ 0x0b35, 0x0b39,
+ 0x0b3d, 0x0b44,
+ 0x0b47, 0x0b48,
+ 0x0b4b, 0x0b4c,
+ 0x0b56, 0x0b57,
+ 0x0b5c, 0x0b5d,
+ 0x0b5f, 0x0b63,
+ 0x0b66, 0x0b6f,
+ 0x0b71, 0x0b71,
+ 0x0b82, 0x0b83,
+ 0x0b85, 0x0b8a,
+ 0x0b8e, 0x0b90,
+ 0x0b92, 0x0b95,
+ 0x0b99, 0x0b9a,
+ 0x0b9c, 0x0b9c,
+ 0x0b9e, 0x0b9f,
+ 0x0ba3, 0x0ba4,
+ 0x0ba8, 0x0baa,
+ 0x0bae, 0x0bb9,
+ 0x0bbe, 0x0bc2,
+ 0x0bc6, 0x0bc8,
+ 0x0bca, 0x0bcc,
+ 0x0bd0, 0x0bd0,
+ 0x0bd7, 0x0bd7,
+ 0x0be6, 0x0bef,
+ 0x0c01, 0x0c03,
+ 0x0c05, 0x0c0c,
+ 0x0c0e, 0x0c10,
+ 0x0c12, 0x0c28,
+ 0x0c2a, 0x0c33,
+ 0x0c35, 0x0c39,
+ 0x0c3d, 0x0c44,
+ 0x0c46, 0x0c48,
+ 0x0c4a, 0x0c4c,
+ 0x0c55, 0x0c56,
+ 0x0c58, 0x0c59,
+ 0x0c60, 0x0c63,
+ 0x0c66, 0x0c6f,
+ 0x0c82, 0x0c83,
+ 0x0c85, 0x0c8c,
+ 0x0c8e, 0x0c90,
+ 0x0c92, 0x0ca8,
+ 0x0caa, 0x0cb3,
+ 0x0cb5, 0x0cb9,
+ 0x0cbd, 0x0cc4,
+ 0x0cc6, 0x0cc8,
+ 0x0cca, 0x0ccc,
+ 0x0cd5, 0x0cd6,
+ 0x0cde, 0x0cde,
+ 0x0ce0, 0x0ce3,
+ 0x0ce6, 0x0cef,
+ 0x0cf1, 0x0cf2,
+ 0x0d02, 0x0d03,
+ 0x0d05, 0x0d0c,
+ 0x0d0e, 0x0d10,
+ 0x0d12, 0x0d3a,
+ 0x0d3d, 0x0d44,
+ 0x0d46, 0x0d48,
+ 0x0d4a, 0x0d4c,
+ 0x0d4e, 0x0d4e,
+ 0x0d57, 0x0d57,
+ 0x0d60, 0x0d63,
+ 0x0d66, 0x0d6f,
+ 0x0d7a, 0x0d7f,
+ 0x0d82, 0x0d83,
+ 0x0d85, 0x0d96,
+ 0x0d9a, 0x0db1,
+ 0x0db3, 0x0dbb,
+ 0x0dbd, 0x0dbd,
+ 0x0dc0, 0x0dc6,
+ 0x0dcf, 0x0dd4,
+ 0x0dd6, 0x0dd6,
+ 0x0dd8, 0x0ddf,
+ 0x0df2, 0x0df3,
+ 0x0e01, 0x0e3a,
+ 0x0e40, 0x0e46,
+ 0x0e4d, 0x0e4d,
+ 0x0e50, 0x0e59,
+ 0x0e81, 0x0e82,
+ 0x0e84, 0x0e84,
+ 0x0e87, 0x0e88,
+ 0x0e8a, 0x0e8a,
+ 0x0e8d, 0x0e8d,
+ 0x0e94, 0x0e97,
+ 0x0e99, 0x0e9f,
+ 0x0ea1, 0x0ea3,
+ 0x0ea5, 0x0ea5,
+ 0x0ea7, 0x0ea7,
+ 0x0eaa, 0x0eab,
+ 0x0ead, 0x0eb9,
+ 0x0ebb, 0x0ebd,
+ 0x0ec0, 0x0ec4,
+ 0x0ec6, 0x0ec6,
+ 0x0ecd, 0x0ecd,
+ 0x0ed0, 0x0ed9,
+ 0x0edc, 0x0edd,
+ 0x0f00, 0x0f00,
+ 0x0f20, 0x0f29,
+ 0x0f40, 0x0f47,
+ 0x0f49, 0x0f6c,
+ 0x0f71, 0x0f81,
+ 0x0f88, 0x0f97,
+ 0x0f99, 0x0fbc,
+ 0x1000, 0x1036,
+ 0x1038, 0x1038,
+ 0x103b, 0x1049,
+ 0x1050, 0x1062,
+ 0x1065, 0x1068,
+ 0x106e, 0x1086,
+ 0x108e, 0x108e,
+ 0x1090, 0x1099,
+ 0x109c, 0x109d,
+ 0x10a0, 0x10c5,
+ 0x10d0, 0x10fa,
+ 0x10fc, 0x10fc,
+ 0x1100, 0x1248,
+ 0x124a, 0x124d,
+ 0x1250, 0x1256,
+ 0x1258, 0x1258,
+ 0x125a, 0x125d,
+ 0x1260, 0x1288,
+ 0x128a, 0x128d,
+ 0x1290, 0x12b0,
+ 0x12b2, 0x12b5,
+ 0x12b8, 0x12be,
+ 0x12c0, 0x12c0,
+ 0x12c2, 0x12c5,
+ 0x12c8, 0x12d6,
+ 0x12d8, 0x1310,
+ 0x1312, 0x1315,
+ 0x1318, 0x135a,
+ 0x135f, 0x135f,
+ 0x1380, 0x138f,
+ 0x13a0, 0x13f4,
+ 0x1401, 0x166c,
+ 0x166f, 0x167f,
+ 0x1681, 0x169a,
+ 0x16a0, 0x16ea,
+ 0x16ee, 0x16f0,
+ 0x1700, 0x170c,
+ 0x170e, 0x1713,
+ 0x1720, 0x1733,
+ 0x1740, 0x1753,
+ 0x1760, 0x176c,
+ 0x176e, 0x1770,
+ 0x1772, 0x1773,
+ 0x1780, 0x17b3,
+ 0x17b6, 0x17c8,
+ 0x17d7, 0x17d7,
+ 0x17dc, 0x17dc,
+ 0x17e0, 0x17e9,
+ 0x1810, 0x1819,
+ 0x1820, 0x1877,
+ 0x1880, 0x18aa,
+ 0x18b0, 0x18f5,
+ 0x1900, 0x191c,
+ 0x1920, 0x192b,
+ 0x1930, 0x1938,
+ 0x1946, 0x196d,
+ 0x1970, 0x1974,
+ 0x1980, 0x19ab,
+ 0x19b0, 0x19c9,
+ 0x19d0, 0x19d9,
+ 0x1a00, 0x1a1b,
+ 0x1a20, 0x1a5e,
+ 0x1a61, 0x1a74,
+ 0x1a80, 0x1a89,
+ 0x1a90, 0x1a99,
+ 0x1aa7, 0x1aa7,
+ 0x1b00, 0x1b33,
+ 0x1b35, 0x1b43,
+ 0x1b45, 0x1b4b,
+ 0x1b50, 0x1b59,
+ 0x1b80, 0x1ba9,
+ 0x1bae, 0x1bb9,
+ 0x1bc0, 0x1be5,
+ 0x1be7, 0x1bf1,
+ 0x1c00, 0x1c35,
+ 0x1c40, 0x1c49,
+ 0x1c4d, 0x1c7d,
+ 0x1ce9, 0x1cec,
+ 0x1cee, 0x1cf2,
+ 0x1d00, 0x1dbf,
+ 0x1e00, 0x1f15,
+ 0x1f18, 0x1f1d,
+ 0x1f20, 0x1f45,
+ 0x1f48, 0x1f4d,
+ 0x1f50, 0x1f57,
+ 0x1f59, 0x1f59,
+ 0x1f5b, 0x1f5b,
+ 0x1f5d, 0x1f5d,
+ 0x1f5f, 0x1f7d,
+ 0x1f80, 0x1fb4,
+ 0x1fb6, 0x1fbc,
+ 0x1fbe, 0x1fbe,
+ 0x1fc2, 0x1fc4,
+ 0x1fc6, 0x1fcc,
+ 0x1fd0, 0x1fd3,
+ 0x1fd6, 0x1fdb,
+ 0x1fe0, 0x1fec,
+ 0x1ff2, 0x1ff4,
+ 0x1ff6, 0x1ffc,
+ 0x2071, 0x2071,
+ 0x207f, 0x207f,
+ 0x2090, 0x209c,
+ 0x2102, 0x2102,
+ 0x2107, 0x2107,
+ 0x210a, 0x2113,
+ 0x2115, 0x2115,
+ 0x2119, 0x211d,
+ 0x2124, 0x2124,
+ 0x2126, 0x2126,
+ 0x2128, 0x2128,
+ 0x212a, 0x212d,
+ 0x212f, 0x2139,
+ 0x213c, 0x213f,
+ 0x2145, 0x2149,
+ 0x214e, 0x214e,
+ 0x2160, 0x2188,
+ 0x24b6, 0x24e9,
+ 0x2c00, 0x2c2e,
+ 0x2c30, 0x2c5e,
+ 0x2c60, 0x2ce4,
+ 0x2ceb, 0x2cee,
+ 0x2d00, 0x2d25,
+ 0x2d30, 0x2d65,
+ 0x2d6f, 0x2d6f,
+ 0x2d80, 0x2d96,
+ 0x2da0, 0x2da6,
+ 0x2da8, 0x2dae,
+ 0x2db0, 0x2db6,
+ 0x2db8, 0x2dbe,
+ 0x2dc0, 0x2dc6,
+ 0x2dc8, 0x2dce,
+ 0x2dd0, 0x2dd6,
+ 0x2dd8, 0x2dde,
+ 0x2de0, 0x2dff,
+ 0x2e2f, 0x2e2f,
+ 0x3005, 0x3007,
+ 0x3021, 0x3029,
+ 0x3031, 0x3035,
+ 0x3038, 0x303c,
+ 0x3041, 0x3096,
+ 0x309d, 0x309f,
+ 0x30a1, 0x30fa,
+ 0x30fc, 0x30ff,
+ 0x3105, 0x312d,
+ 0x3131, 0x318e,
+ 0x31a0, 0x31ba,
+ 0x31f0, 0x31ff,
+ 0x3400, 0x4db5,
+ 0x4e00, 0x9fcb,
+ 0xa000, 0xa48c,
+ 0xa4d0, 0xa4fd,
+ 0xa500, 0xa60c,
+ 0xa610, 0xa62b,
+ 0xa640, 0xa66e,
+ 0xa67f, 0xa697,
+ 0xa6a0, 0xa6ef,
+ 0xa717, 0xa71f,
+ 0xa722, 0xa788,
+ 0xa78b, 0xa78e,
+ 0xa790, 0xa791,
+ 0xa7a0, 0xa7a9,
+ 0xa7fa, 0xa801,
+ 0xa803, 0xa805,
+ 0xa807, 0xa80a,
+ 0xa80c, 0xa827,
+ 0xa840, 0xa873,
+ 0xa880, 0xa8c3,
+ 0xa8d0, 0xa8d9,
+ 0xa8f2, 0xa8f7,
+ 0xa8fb, 0xa8fb,
+ 0xa900, 0xa92a,
+ 0xa930, 0xa952,
+ 0xa960, 0xa97c,
+ 0xa980, 0xa9b2,
+ 0xa9b4, 0xa9bf,
+ 0xa9cf, 0xa9d9,
+ 0xaa00, 0xaa36,
+ 0xaa40, 0xaa4d,
+ 0xaa50, 0xaa59,
+ 0xaa60, 0xaa76,
+ 0xaa7a, 0xaa7a,
+ 0xaa80, 0xaabe,
+ 0xaac0, 0xaac0,
+ 0xaac2, 0xaac2,
+ 0xaadb, 0xaadd,
+ 0xab01, 0xab06,
+ 0xab09, 0xab0e,
+ 0xab11, 0xab16,
+ 0xab20, 0xab26,
+ 0xab28, 0xab2e,
+ 0xabc0, 0xabea,
+ 0xabf0, 0xabf9,
+ 0xac00, 0xd7a3,
+ 0xd7b0, 0xd7c6,
+ 0xd7cb, 0xd7fb,
+ 0xf900, 0xfa2d,
+ 0xfa30, 0xfa6d,
+ 0xfa70, 0xfad9,
+ 0xfb00, 0xfb06,
+ 0xfb13, 0xfb17,
+ 0xfb1d, 0xfb28,
+ 0xfb2a, 0xfb36,
+ 0xfb38, 0xfb3c,
+ 0xfb3e, 0xfb3e,
+ 0xfb40, 0xfb41,
+ 0xfb43, 0xfb44,
+ 0xfb46, 0xfbb1,
+ 0xfbd3, 0xfd3d,
+ 0xfd50, 0xfd8f,
+ 0xfd92, 0xfdc7,
+ 0xfdf0, 0xfdfb,
+ 0xfe70, 0xfe74,
+ 0xfe76, 0xfefc,
+ 0xff10, 0xff19,
+ 0xff21, 0xff3a,
+ 0xff41, 0xff5a,
+ 0xff66, 0xffbe,
+ 0xffc2, 0xffc7,
+ 0xffca, 0xffcf,
+ 0xffd2, 0xffd7,
+ 0xffda, 0xffdc,
+ 0x10000, 0x1000b,
+ 0x1000d, 0x10026,
+ 0x10028, 0x1003a,
+ 0x1003c, 0x1003d,
+ 0x1003f, 0x1004d,
+ 0x10050, 0x1005d,
+ 0x10080, 0x100fa,
+ 0x10140, 0x10174,
+ 0x10280, 0x1029c,
+ 0x102a0, 0x102d0,
+ 0x10300, 0x1031e,
+ 0x10330, 0x1034a,
+ 0x10380, 0x1039d,
+ 0x103a0, 0x103c3,
+ 0x103c8, 0x103cf,
+ 0x103d1, 0x103d5,
+ 0x10400, 0x1049d,
+ 0x104a0, 0x104a9,
+ 0x10800, 0x10805,
+ 0x10808, 0x10808,
+ 0x1080a, 0x10835,
+ 0x10837, 0x10838,
+ 0x1083c, 0x1083c,
+ 0x1083f, 0x10855,
+ 0x10900, 0x10915,
+ 0x10920, 0x10939,
+ 0x10a00, 0x10a03,
+ 0x10a05, 0x10a06,
+ 0x10a0c, 0x10a13,
+ 0x10a15, 0x10a17,
+ 0x10a19, 0x10a33,
+ 0x10a60, 0x10a7c,
+ 0x10b00, 0x10b35,
+ 0x10b40, 0x10b55,
+ 0x10b60, 0x10b72,
+ 0x10c00, 0x10c48,
+ 0x11000, 0x11045,
+ 0x11066, 0x1106f,
+ 0x11082, 0x110b8,
+ 0x12000, 0x1236e,
+ 0x12400, 0x12462,
+ 0x13000, 0x1342e,
+ 0x16800, 0x16a38,
+ 0x1b000, 0x1b001,
+ 0x1d400, 0x1d454,
+ 0x1d456, 0x1d49c,
+ 0x1d49e, 0x1d49f,
+ 0x1d4a2, 0x1d4a2,
+ 0x1d4a5, 0x1d4a6,
+ 0x1d4a9, 0x1d4ac,
+ 0x1d4ae, 0x1d4b9,
+ 0x1d4bb, 0x1d4bb,
+ 0x1d4bd, 0x1d4c3,
+ 0x1d4c5, 0x1d505,
+ 0x1d507, 0x1d50a,
+ 0x1d50d, 0x1d514,
+ 0x1d516, 0x1d51c,
+ 0x1d51e, 0x1d539,
+ 0x1d53b, 0x1d53e,
+ 0x1d540, 0x1d544,
+ 0x1d546, 0x1d546,
+ 0x1d54a, 0x1d550,
+ 0x1d552, 0x1d6a5,
+ 0x1d6a8, 0x1d6c0,
+ 0x1d6c2, 0x1d6da,
+ 0x1d6dc, 0x1d6fa,
+ 0x1d6fc, 0x1d714,
+ 0x1d716, 0x1d734,
+ 0x1d736, 0x1d74e,
+ 0x1d750, 0x1d76e,
+ 0x1d770, 0x1d788,
+ 0x1d78a, 0x1d7a8,
+ 0x1d7aa, 0x1d7c2,
+ 0x1d7c4, 0x1d7cb,
+ 0x1d7ce, 0x1d7ff,
+ 0x20000, 0x2a6d6,
+ 0x2a700, 0x2b734,
+ 0x2b740, 0x2b81d,
+ 0x2f800, 0x2fa1d,
+}; /* CR_Alnum */
+
+/* 'ASCII': [[:ASCII:]] */
+static const OnigCodePoint CR_ASCII[] = {
+ 1,
+ 0x0000, 0x007f,
+}; /* CR_ASCII */
+
+static const OnigCodePoint* const CodeRanges[] = {
+ CR_NEWLINE,
+ CR_Alpha,
+ CR_Blank,
+ CR_Cntrl,
+ CR_Digit,
+ CR_Graph,
+ CR_Lower,
+ CR_Print,
+ CR_Punct,
+ CR_Space,
+ CR_Upper,
+ CR_XDigit,
+ CR_Word,
+ CR_Alnum,
+ CR_ASCII,
+#ifdef USE_UNICODE_PROPERTIES
+#ifdef USE_UNICODE_PROPERTIES
+ CR_Any,
+ CR_Assigned,
+ CR_C,
+ CR_Cc,
+ CR_Cf,
+ CR_Cn,
+ CR_Co,
+ CR_Cs,
+ CR_L,
+ CR_Ll,
+ CR_Lm,
+ CR_Lo,
+ CR_Lt,
+ CR_Lu,
+ CR_M,
+ CR_Mc,
+ CR_Me,
+ CR_Mn,
+ CR_N,
+ CR_Nd,
+ CR_Nl,
+ CR_No,
+ CR_P,
+ CR_Pc,
+ CR_Pd,
+ CR_Pe,
+ CR_Pf,
+ CR_Pi,
+ CR_Po,
+ CR_Ps,
+ CR_S,
+ CR_Sc,
+ CR_Sk,
+ CR_Sm,
+ CR_So,
+ CR_Z,
+ CR_Zl,
+ CR_Zp,
+ CR_Zs,
+ CR_Math,
+ CR_Alphabetic,
+ CR_Lowercase,
+ CR_Uppercase,
+ CR_Cased,
+ CR_Case_Ignorable,
+ CR_Changes_When_Lowercased,
+ CR_Changes_When_Uppercased,
+ CR_Changes_When_Titlecased,
+ CR_Changes_When_Casefolded,
+ CR_Changes_When_Casemapped,
+ CR_ID_Start,
+ CR_ID_Continue,
+ CR_XID_Start,
+ CR_XID_Continue,
+ CR_Default_Ignorable_Code_Point,
+ CR_Grapheme_Extend,
+ CR_Grapheme_Base,
+ CR_Grapheme_Link,
+ CR_Common,
+ CR_Latin,
+ CR_Greek,
+ CR_Cyrillic,
+ CR_Armenian,
+ CR_Hebrew,
+ CR_Arabic,
+ CR_Syriac,
+ CR_Thaana,
+ CR_Devanagari,
+ CR_Bengali,
+ CR_Gurmukhi,
+ CR_Gujarati,
+ CR_Oriya,
+ CR_Tamil,
+ CR_Telugu,
+ CR_Kannada,
+ CR_Malayalam,
+ CR_Sinhala,
+ CR_Thai,
+ CR_Lao,
+ CR_Tibetan,
+ CR_Myanmar,
+ CR_Georgian,
+ CR_Hangul,
+ CR_Ethiopic,
+ CR_Cherokee,
+ CR_Canadian_Aboriginal,
+ CR_Ogham,
+ CR_Runic,
+ CR_Khmer,
+ CR_Mongolian,
+ CR_Hiragana,
+ CR_Katakana,
+ CR_Bopomofo,
+ CR_Han,
+ CR_Yi,
+ CR_Old_Italic,
+ CR_Gothic,
+ CR_Deseret,
+ CR_Inherited,
+ CR_Tagalog,
+ CR_Hanunoo,
+ CR_Buhid,
+ CR_Tagbanwa,
+ CR_Limbu,
+ CR_Tai_Le,
+ CR_Linear_B,
+ CR_Ugaritic,
+ CR_Shavian,
+ CR_Osmanya,
+ CR_Cypriot,
+ CR_Braille,
+ CR_Buginese,
+ CR_Coptic,
+ CR_New_Tai_Lue,
+ CR_Glagolitic,
+ CR_Tifinagh,
+ CR_Syloti_Nagri,
+ CR_Old_Persian,
+ CR_Kharoshthi,
+ CR_Balinese,
+ CR_Cuneiform,
+ CR_Phoenician,
+ CR_Phags_Pa,
+ CR_Nko,
+ CR_Sundanese,
+ CR_Lepcha,
+ CR_Ol_Chiki,
+ CR_Vai,
+ CR_Saurashtra,
+ CR_Kayah_Li,
+ CR_Rejang,
+ CR_Lycian,
+ CR_Carian,
+ CR_Lydian,
+ CR_Cham,
+ CR_Tai_Tham,
+ CR_Tai_Viet,
+ CR_Avestan,
+ CR_Egyptian_Hieroglyphs,
+ CR_Samaritan,
+ CR_Lisu,
+ CR_Bamum,
+ CR_Javanese,
+ CR_Meetei_Mayek,
+ CR_Imperial_Aramaic,
+ CR_Old_South_Arabian,
+ CR_Inscriptional_Parthian,
+ CR_Inscriptional_Pahlavi,
+ CR_Old_Turkic,
+ CR_Kaithi,
+ CR_Batak,
+ CR_Brahmi,
+ CR_Mandaic,
+ CR_White_Space,
+ CR_Bidi_Control,
+ CR_Join_Control,
+ CR_Dash,
+ CR_Hyphen,
+ CR_Quotation_Mark,
+ CR_Terminal_Punctuation,
+ CR_Other_Math,
+ CR_Hex_Digit,
+ CR_ASCII_Hex_Digit,
+ CR_Other_Alphabetic,
+ CR_Ideographic,
+ CR_Diacritic,
+ CR_Extender,
+ CR_Other_Lowercase,
+ CR_Other_Uppercase,
+ CR_Noncharacter_Code_Point,
+ CR_Other_Grapheme_Extend,
+ CR_IDS_Binary_Operator,
+ CR_IDS_Trinary_Operator,
+ CR_Radical,
+ CR_Unified_Ideograph,
+ CR_Other_Default_Ignorable_Code_Point,
+ CR_Deprecated,
+ CR_Soft_Dotted,
+ CR_Logical_Order_Exception,
+ CR_Other_ID_Start,
+ CR_Other_ID_Continue,
+ CR_STerm,
+ CR_Variation_Selector,
+ CR_Pattern_White_Space,
+ CR_Pattern_Syntax,
+ CR_Unknown,
+ CR_Age_1_1,
+ CR_Age_2_0,
+ CR_Age_2_1,
+ CR_Age_3_0,
+ CR_Age_3_1,
+ CR_Age_3_2,
+ CR_Age_4_0,
+ CR_Age_4_1,
+ CR_Age_5_0,
+ CR_Age_5_1,
+ CR_Age_5_2,
+ CR_Age_6_0,
+#endif /* USE_UNICODE_PROPERTIES */
+#endif /* USE_UNICODE_PROPERTIES */
+};
+struct uniname2ctype_struct {
+ int name, ctype;
+};
+
+static const struct uniname2ctype_struct *uniname2ctype_p(const char *, unsigned int);
+
+#ifndef USE_UNICODE_PROPERTIES
+#define TOTAL_KEYWORDS 15
+#define MIN_WORD_LENGTH 4
+#define MAX_WORD_LENGTH 7
+#define MIN_HASH_VALUE 7
+#define MAX_HASH_VALUE 21
+/* maximum key range = 15, duplicates = 0 */
+#else /* USE_UNICODE_PROPERTIES */
+#define TOTAL_KEYWORDS 387
+#define MIN_WORD_LENGTH 1
+#define MAX_WORD_LENGTH 30
+#define MIN_HASH_VALUE 3
+#define MAX_HASH_VALUE 1741
+/* maximum key range = 1739, duplicates = 0 */
+#endif /* USE_UNICODE_PROPERTIES */
+
+#ifdef __GNUC__
+__inline
+#else
+#ifdef __cplusplus
+inline
+#endif
+#endif
+static unsigned int
+uniname2ctype_hash (str, len)
+ register const char *str;
+ register unsigned int len;
+{
+#ifndef USE_UNICODE_PROPERTIES
+ static const unsigned char asso_values[] =
+#else /* USE_UNICODE_PROPERTIES */
+ static const unsigned short asso_values[] =
+#endif /* USE_UNICODE_PROPERTIES */
+ {
+#ifndef USE_UNICODE_PROPERTIES
+ 22, 22, 22, 22, 22, 22, 22, 22, 22, 22,
+ 22, 22, 22, 22, 22, 22, 22, 22, 22, 22,
+ 22, 22, 22, 22, 22, 22, 22, 22, 22, 22,
+ 22, 22, 22, 22, 22, 22, 22, 22, 22, 22,
+ 22, 22, 22, 22, 22, 22, 22, 22, 22, 22,
+ 22, 22, 22, 22, 22, 22, 22, 22, 22, 22,
+ 22, 22, 22, 22, 22, 22, 22, 22, 22, 22,
+ 22, 22, 22, 22, 22, 22, 22, 22, 22, 22,
+ 22, 22, 22, 22, 22, 22, 22, 22, 22, 22,
+ 22, 22, 22, 22, 22, 22, 22, 3, 13, 6,
+ 4, 22, 22, 11, 22, 1, 22, 22, 10, 22,
+ 2, 22, 1, 22, 10, 8, 4, 7, 22, 3,
+ 4, 22, 22, 22, 22, 22, 22, 22
+#else /* USE_UNICODE_PROPERTIES */
+ 1742, 1742, 1742, 1742, 1742, 1742, 1742, 1742, 1742, 1742,
+ 1742, 1742, 1742, 1742, 1742, 1742, 1742, 1742, 1742, 1742,
+ 1742, 1742, 1742, 1742, 1742, 1742, 1742, 1742, 1742, 1742,
+ 1742, 1742, 1742, 1742, 1742, 1742, 1742, 1742, 1742, 1742,
+ 1742, 1742, 1742, 1742, 1742, 1742, 2, 1742, 9, 1,
+ 2, 18, 5, 3, 4, 1742, 1742, 1742, 1742, 1742,
+ 1742, 1742, 1742, 1742, 1742, 1742, 1742, 1742, 1742, 1742,
+ 1742, 1742, 1742, 1742, 1742, 1742, 1742, 1742, 1742, 1742,
+ 1742, 1742, 1742, 1742, 1742, 1742, 1742, 1742, 1742, 1742,
+ 1742, 1742, 1742, 1742, 1742, 1742, 1742, 8, 280, 6,
+ 96, 67, 362, 294, 38, 9, 63, 517, 2, 213,
+ 1, 4, 192, 3, 10, 57, 31, 316, 1, 549,
+ 330, 567, 36, 1742, 1742, 1742, 1742, 1742
+#endif /* USE_UNICODE_PROPERTIES */
+ };
+#ifndef USE_UNICODE_PROPERTIES
+ return len + asso_values[(unsigned char)str[2]] + asso_values[(unsigned char)str[0]];
+#else /* USE_UNICODE_PROPERTIES */
+ register int hval = len;
+
+ switch (hval)
+ {
+ default:
+ hval += asso_values[(unsigned char)str[15]];
+ /*FALLTHROUGH*/
+ case 15:
+ case 14:
+ case 13:
+ case 12:
+ hval += asso_values[(unsigned char)str[11]];
+ /*FALLTHROUGH*/
+ case 11:
+ case 10:
+ case 9:
+ case 8:
+ case 7:
+ case 6:
+ hval += asso_values[(unsigned char)str[5]];
+ /*FALLTHROUGH*/
+ case 5:
+ hval += asso_values[(unsigned char)str[4]];
+ /*FALLTHROUGH*/
+ case 4:
+ case 3:
+ hval += asso_values[(unsigned char)str[2]];
+ /*FALLTHROUGH*/
+ case 2:
+ hval += asso_values[(unsigned char)str[1]];
+ /*FALLTHROUGH*/
+ case 1:
+ hval += asso_values[(unsigned char)str[0]];
+ break;
+ }
+ return hval + asso_values[(unsigned char)str[len - 1]];
+#endif /* USE_UNICODE_PROPERTIES */
+}
+
+struct uniname2ctype_pool_t
+ {
+#ifndef USE_UNICODE_PROPERTIES
+ char uniname2ctype_pool_str7[sizeof("print")];
+ char uniname2ctype_pool_str8[sizeof("punct")];
+ char uniname2ctype_pool_str9[sizeof("alpha")];
+ char uniname2ctype_pool_str10[sizeof("alnum")];
+ char uniname2ctype_pool_str11[sizeof("xdigit")];
+ char uniname2ctype_pool_str12[sizeof("newline")];
+ char uniname2ctype_pool_str13[sizeof("upper")];
+ char uniname2ctype_pool_str14[sizeof("ascii")];
+ char uniname2ctype_pool_str15[sizeof("cntrl")];
+ char uniname2ctype_pool_str16[sizeof("space")];
+ char uniname2ctype_pool_str17[sizeof("word")];
+ char uniname2ctype_pool_str18[sizeof("lower")];
+ char uniname2ctype_pool_str19[sizeof("graph")];
+ char uniname2ctype_pool_str20[sizeof("digit")];
+ char uniname2ctype_pool_str21[sizeof("blank")];
+#else /* USE_UNICODE_PROPERTIES */
+ char uniname2ctype_pool_str3[sizeof("n")];
+ char uniname2ctype_pool_str5[sizeof("l")];
+ char uniname2ctype_pool_str7[sizeof("nl")];
+ char uniname2ctype_pool_str8[sizeof("ll")];
+ char uniname2ctype_pool_str10[sizeof("cn")];
+ char uniname2ctype_pool_str11[sizeof("no")];
+ char uniname2ctype_pool_str12[sizeof("lo")];
+ char uniname2ctype_pool_str13[sizeof("c")];
+ char uniname2ctype_pool_str16[sizeof("co")];
+ char uniname2ctype_pool_str20[sizeof("cc")];
+ char uniname2ctype_pool_str21[sizeof("lao")];
+ char uniname2ctype_pool_str22[sizeof("laoo")];
+ char uniname2ctype_pool_str23[sizeof("lana")];
+ char uniname2ctype_pool_str26[sizeof("ci")];
+ char uniname2ctype_pool_str29[sizeof("qaac")];
+ char uniname2ctype_pool_str30[sizeof("vai")];
+ char uniname2ctype_pool_str31[sizeof("vaii")];
+ char uniname2ctype_pool_str32[sizeof("qaai")];
+ char uniname2ctype_pool_str34[sizeof("control")];
+ char uniname2ctype_pool_str37[sizeof("cari")];
+ char uniname2ctype_pool_str40[sizeof("carian")];
+ char uniname2ctype_pool_str42[sizeof("zl")];
+ char uniname2ctype_pool_str44[sizeof("oriya")];
+ char uniname2ctype_pool_str46[sizeof("latn")];
+ char uniname2ctype_pool_str47[sizeof("cntrl")];
+ char uniname2ctype_pool_str48[sizeof("latin")];
+ char uniname2ctype_pool_str51[sizeof("han")];
+ char uniname2ctype_pool_str53[sizeof("arabic")];
+ char uniname2ctype_pool_str54[sizeof("ital")];
+ char uniname2ctype_pool_str55[sizeof("hano")];
+ char uniname2ctype_pool_str60[sizeof("hani")];
+ char uniname2ctype_pool_str63[sizeof("hanunoo")];
+ char uniname2ctype_pool_str66[sizeof("lt")];
+ char uniname2ctype_pool_str67[sizeof("so")];
+ char uniname2ctype_pool_str69[sizeof("hira")];
+ char uniname2ctype_pool_str70[sizeof("nchar")];
+ char uniname2ctype_pool_str71[sizeof("sc")];
+ char uniname2ctype_pool_str73[sizeof("z")];
+ char uniname2ctype_pool_str74[sizeof("oalpha")];
+ char uniname2ctype_pool_str75[sizeof("tavt")];
+ char uniname2ctype_pool_str76[sizeof("cans")];
+ char uniname2ctype_pool_str84[sizeof("java")];
+ char uniname2ctype_pool_str88[sizeof("zinh")];
+ char uniname2ctype_pool_str89[sizeof("thaa")];
+ char uniname2ctype_pool_str90[sizeof("thai")];
+ char uniname2ctype_pool_str91[sizeof("variationselector")];
+ char uniname2ctype_pool_str92[sizeof("sinhala")];
+ char uniname2ctype_pool_str93[sizeof("joinc")];
+ char uniname2ctype_pool_str94[sizeof("ascii")];
+ char uniname2ctype_pool_str95[sizeof("initialpunctuation")];
+ char uniname2ctype_pool_str98[sizeof("other")];
+ char uniname2ctype_pool_str99[sizeof("joincontrol")];
+ char uniname2ctype_pool_str100[sizeof("thaana")];
+ char uniname2ctype_pool_str101[sizeof("avst")];
+ char uniname2ctype_pool_str103[sizeof("olower")];
+ char uniname2ctype_pool_str105[sizeof("othernumber")];
+ char uniname2ctype_pool_str106[sizeof("otherletter")];
+ char uniname2ctype_pool_str109[sizeof("sinh")];
+ char uniname2ctype_pool_str112[sizeof("tale")];
+ char uniname2ctype_pool_str114[sizeof("connectorpunctuation")];
+ char uniname2ctype_pool_str115[sizeof("s")];
+ char uniname2ctype_pool_str116[sizeof("di")];
+ char uniname2ctype_pool_str117[sizeof("vs")];
+ char uniname2ctype_pool_str119[sizeof("oidc")];
+ char uniname2ctype_pool_str120[sizeof("idc")];
+ char uniname2ctype_pool_str121[sizeof("odi")];
+ char uniname2ctype_pool_str122[sizeof("cs")];
+ char uniname2ctype_pool_str123[sizeof("avestan")];
+ char uniname2ctype_pool_str124[sizeof("dia")];
+ char uniname2ctype_pool_str125[sizeof("cher")];
+ char uniname2ctype_pool_str126[sizeof("inscriptionalparthian")];
+ char uniname2ctype_pool_str128[sizeof("shavian")];
+ char uniname2ctype_pool_str137[sizeof("radical")];
+ char uniname2ctype_pool_str143[sizeof("loe")];
+ char uniname2ctype_pool_str147[sizeof("diacritic")];
+ char uniname2ctype_pool_str148[sizeof("zzzz")];
+ char uniname2ctype_pool_str149[sizeof("ethi")];
+ char uniname2ctype_pool_str151[sizeof("canadianaboriginal")];
+ char uniname2ctype_pool_str152[sizeof("zs")];
+ char uniname2ctype_pool_str153[sizeof("othersymbol")];
+ char uniname2ctype_pool_str156[sizeof("olditalic")];
+ char uniname2ctype_pool_str161[sizeof("inscriptionalpahlavi")];
+ char uniname2ctype_pool_str162[sizeof("taiviet")];
+ char uniname2ctype_pool_str163[sizeof("lineseparator")];
+ char uniname2ctype_pool_str166[sizeof("otheridstart")];
+ char uniname2ctype_pool_str170[sizeof("oids")];
+ char uniname2ctype_pool_str171[sizeof("asciihexdigit")];
+ char uniname2ctype_pool_str172[sizeof("inherited")];
+ char uniname2ctype_pool_str174[sizeof("otherlowercase")];
+ char uniname2ctype_pool_str175[sizeof("terminalpunctuation")];
+ char uniname2ctype_pool_str176[sizeof("deva")];
+ char uniname2ctype_pool_str179[sizeof("otheralphabetic")];
+ char uniname2ctype_pool_str180[sizeof("ideo")];
+ char uniname2ctype_pool_str181[sizeof("noncharactercodepoint")];
+ char uniname2ctype_pool_str183[sizeof("otheridcontinue")];
+ char uniname2ctype_pool_str187[sizeof("taile")];
+ char uniname2ctype_pool_str190[sizeof("oldpersian")];
+ char uniname2ctype_pool_str192[sizeof("devanagari")];
+ char uniname2ctype_pool_str193[sizeof("letter")];
+ char uniname2ctype_pool_str195[sizeof("nd")];
+ char uniname2ctype_pool_str197[sizeof("idst")];
+ char uniname2ctype_pool_str198[sizeof("dsrt")];
+ char uniname2ctype_pool_str200[sizeof("titlecaseletter")];
+ char uniname2ctype_pool_str202[sizeof("po")];
+ char uniname2ctype_pool_str203[sizeof("dash")];
+ char uniname2ctype_pool_str206[sizeof("pc")];
+ char uniname2ctype_pool_str209[sizeof("letternumber")];
+ char uniname2ctype_pool_str212[sizeof("pi")];
+ char uniname2ctype_pool_str215[sizeof("javanese")];
+ char uniname2ctype_pool_str217[sizeof("mn")];
+ char uniname2ctype_pool_str218[sizeof("idstart")];
+ char uniname2ctype_pool_str220[sizeof("idcontinue")];
+ char uniname2ctype_pool_str222[sizeof("ids")];
+ char uniname2ctype_pool_str223[sizeof("alpha")];
+ char uniname2ctype_pool_str227[sizeof("mc")];
+ char uniname2ctype_pool_str229[sizeof("coptic")];
+ char uniname2ctype_pool_str234[sizeof("mongolian")];
+ char uniname2ctype_pool_str235[sizeof("common")];
+ char uniname2ctype_pool_str236[sizeof("armn")];
+ char uniname2ctype_pool_str237[sizeof("copt")];
+ char uniname2ctype_pool_str243[sizeof("cprt")];
+ char uniname2ctype_pool_str244[sizeof("armi")];
+ char uniname2ctype_pool_str245[sizeof("phli")];
+ char uniname2ctype_pool_str246[sizeof("prti")];
+ char uniname2ctype_pool_str250[sizeof("armenian")];
+ char uniname2ctype_pool_str251[sizeof("sd")];
+ char uniname2ctype_pool_str252[sizeof("mandaic")];
+ char uniname2ctype_pool_str255[sizeof("phoenician")];
+ char uniname2ctype_pool_str258[sizeof("taml")];
+ char uniname2ctype_pool_str261[sizeof("tamil")];
+ char uniname2ctype_pool_str268[sizeof("cased")];
+ char uniname2ctype_pool_str269[sizeof("cham")];
+ char uniname2ctype_pool_str270[sizeof("idsbinaryoperator")];
+ char uniname2ctype_pool_str271[sizeof("lepc")];
+ char uniname2ctype_pool_str275[sizeof("otherdefaultignorablecodepoint")];
+ char uniname2ctype_pool_str278[sizeof("print")];
+ char uniname2ctype_pool_str286[sizeof("osma")];
+ char uniname2ctype_pool_str292[sizeof("samr")];
+ char uniname2ctype_pool_str294[sizeof("math")];
+ char uniname2ctype_pool_str296[sizeof("linb")];
+ char uniname2ctype_pool_str297[sizeof("closepunctuation")];
+ char uniname2ctype_pool_str301[sizeof("otherpunctuation")];
+ char uniname2ctype_pool_str303[sizeof("bali")];
+ char uniname2ctype_pool_str306[sizeof("omath")];
+ char uniname2ctype_pool_str307[sizeof("samaritan")];
+ char uniname2ctype_pool_str308[sizeof("ps")];
+ char uniname2ctype_pool_str310[sizeof("arab")];
+ char uniname2ctype_pool_str311[sizeof("brai")];
+ char uniname2ctype_pool_str314[sizeof("taitham")];
+ char uniname2ctype_pool_str317[sizeof("linearb")];
+ char uniname2ctype_pool_str321[sizeof("lepcha")];
+ char uniname2ctype_pool_str322[sizeof("mand")];
+ char uniname2ctype_pool_str324[sizeof("mtei")];
+ char uniname2ctype_pool_str325[sizeof("term")];
+ char uniname2ctype_pool_str326[sizeof("glagolitic")];
+ char uniname2ctype_pool_str327[sizeof("privateuse")];
+ char uniname2ctype_pool_str328[sizeof("pe")];
+ char uniname2ctype_pool_str335[sizeof("deseret")];
+ char uniname2ctype_pool_str340[sizeof("brah")];
+ char uniname2ctype_pool_str341[sizeof("runr")];
+ char uniname2ctype_pool_str343[sizeof("othermath")];
+ char uniname2ctype_pool_str344[sizeof("runic")];
+ char uniname2ctype_pool_str345[sizeof("hang")];
+ char uniname2ctype_pool_str346[sizeof("ethiopic")];
+ char uniname2ctype_pool_str349[sizeof("me")];
+ char uniname2ctype_pool_str350[sizeof("patws")];
+ char uniname2ctype_pool_str353[sizeof("separator")];
+ char uniname2ctype_pool_str355[sizeof("tibt")];
+ char uniname2ctype_pool_str356[sizeof("gothic")];
+ char uniname2ctype_pool_str358[sizeof("tagbanwa")];
+ char uniname2ctype_pool_str359[sizeof("sarb")];
+ char uniname2ctype_pool_str361[sizeof("talu")];
+ char uniname2ctype_pool_str367[sizeof("tibetan")];
+ char uniname2ctype_pool_str371[sizeof("goth")];
+ char uniname2ctype_pool_str372[sizeof("rjng")];
+ char uniname2ctype_pool_str373[sizeof("hangul")];
+ char uniname2ctype_pool_str374[sizeof("bengali")];
+ char uniname2ctype_pool_str375[sizeof("hiragana")];
+ char uniname2ctype_pool_str376[sizeof("braille")];
+ char uniname2ctype_pool_str379[sizeof("geor")];
+ char uniname2ctype_pool_str380[sizeof("age=1.1")];
+ char uniname2ctype_pool_str381[sizeof("age=2.1")];
+ char uniname2ctype_pool_str382[sizeof("age=5.1")];
+ char uniname2ctype_pool_str383[sizeof("age=5.2")];
+ char uniname2ctype_pool_str384[sizeof("age=4.1")];
+ char uniname2ctype_pool_str385[sizeof("p")];
+ char uniname2ctype_pool_str386[sizeof("pd")];
+ char uniname2ctype_pool_str388[sizeof("lisu")];
+ char uniname2ctype_pool_str389[sizeof("age=2.0")];
+ char uniname2ctype_pool_str390[sizeof("age=5.0")];
+ char uniname2ctype_pool_str391[sizeof("age=6.0")];
+ char uniname2ctype_pool_str392[sizeof("age=4.0")];
+ char uniname2ctype_pool_str393[sizeof("graph")];
+ char uniname2ctype_pool_str395[sizeof("saur")];
+ char uniname2ctype_pool_str396[sizeof("space")];
+ char uniname2ctype_pool_str397[sizeof("age=3.1")];
+ char uniname2ctype_pool_str398[sizeof("age=3.2")];
+ char uniname2ctype_pool_str399[sizeof("hebr")];
+ char uniname2ctype_pool_str402[sizeof("bidic")];
+ char uniname2ctype_pool_str405[sizeof("age=3.0")];
+ char uniname2ctype_pool_str408[sizeof("bidicontrol")];
+ char uniname2ctype_pool_str413[sizeof("logicalorderexception")];
+ char uniname2ctype_pool_str420[sizeof("telu")];
+ char uniname2ctype_pool_str422[sizeof("zp")];
+ char uniname2ctype_pool_str427[sizeof("m")];
+ char uniname2ctype_pool_str430[sizeof("lm")];
+ char uniname2ctype_pool_str432[sizeof("idstrinaryoperator")];
+ char uniname2ctype_pool_str433[sizeof("balinese")];
+ char uniname2ctype_pool_str434[sizeof("uideo")];
+ char uniname2ctype_pool_str436[sizeof("spaceseparator")];
+ char uniname2ctype_pool_str438[sizeof("grext")];
+ char uniname2ctype_pool_str442[sizeof("alnum")];
+ char uniname2ctype_pool_str443[sizeof("oldturkic")];
+ char uniname2ctype_pool_str445[sizeof("xidc")];
+ char uniname2ctype_pool_str446[sizeof("idsb")];
+ char uniname2ctype_pool_str447[sizeof("ahex")];
+ char uniname2ctype_pool_str452[sizeof("format")];
+ char uniname2ctype_pool_str456[sizeof("caseignorable")];
+ char uniname2ctype_pool_str457[sizeof("tifinagh")];
+ char uniname2ctype_pool_str459[sizeof("sundanese")];
+ char uniname2ctype_pool_str462[sizeof("ext")];
+ char uniname2ctype_pool_str464[sizeof("saurashtra")];
+ char uniname2ctype_pool_str465[sizeof("patternwhitespace")];
+ char uniname2ctype_pool_str466[sizeof("digit")];
+ char uniname2ctype_pool_str474[sizeof("sund")];
+ char uniname2ctype_pool_str480[sizeof("decimalnumber")];
+ char uniname2ctype_pool_str484[sizeof("bopo")];
+ char uniname2ctype_pool_str485[sizeof("sm")];
+ char uniname2ctype_pool_str488[sizeof("otheruppercase")];
+ char uniname2ctype_pool_str493[sizeof("ideographic")];
+ char uniname2ctype_pool_str496[sizeof("xids")];
+ char uniname2ctype_pool_str497[sizeof("unassigned")];
+ char uniname2ctype_pool_str502[sizeof("phagspa")];
+ char uniname2ctype_pool_str506[sizeof("alphabetic")];
+ char uniname2ctype_pool_str508[sizeof("limb")];
+ char uniname2ctype_pool_str512[sizeof("xdigit")];
+ char uniname2ctype_pool_str513[sizeof("xidstart")];
+ char uniname2ctype_pool_str516[sizeof("mong")];
+ char uniname2ctype_pool_str518[sizeof("xidcontinue")];
+ char uniname2ctype_pool_str521[sizeof("assigned")];
+ char uniname2ctype_pool_str523[sizeof("ogam")];
+ char uniname2ctype_pool_str529[sizeof("nko")];
+ char uniname2ctype_pool_str530[sizeof("nkoo")];
+ char uniname2ctype_pool_str533[sizeof("olck")];
+ char uniname2ctype_pool_str534[sizeof("deprecated")];
+ char uniname2ctype_pool_str535[sizeof("brahmi")];
+ char uniname2ctype_pool_str536[sizeof("phag")];
+ char uniname2ctype_pool_str538[sizeof("kana")];
+ char uniname2ctype_pool_str540[sizeof("kali")];
+ char uniname2ctype_pool_str542[sizeof("changeswhenlowercased")];
+ char uniname2ctype_pool_str543[sizeof("extender")];
+ char uniname2ctype_pool_str550[sizeof("dep")];
+ char uniname2ctype_pool_str554[sizeof("olchiki")];
+ char uniname2ctype_pool_str562[sizeof("cwl")];
+ char uniname2ctype_pool_str563[sizeof("graphemebase")];
+ char uniname2ctype_pool_str565[sizeof("phnx")];
+ char uniname2ctype_pool_str573[sizeof("orkh")];
+ char uniname2ctype_pool_str576[sizeof("punct")];
+ char uniname2ctype_pool_str577[sizeof("khar")];
+ char uniname2ctype_pool_str580[sizeof("lower")];
+ char uniname2ctype_pool_str586[sizeof("sterm")];
+ char uniname2ctype_pool_str587[sizeof("yi")];
+ char uniname2ctype_pool_str588[sizeof("lyci")];
+ char uniname2ctype_pool_str589[sizeof("cyrl")];
+ char uniname2ctype_pool_str591[sizeof("lycian")];
+ char uniname2ctype_pool_str592[sizeof("finalpunctuation")];
+ char uniname2ctype_pool_str593[sizeof("orya")];
+ char uniname2ctype_pool_str594[sizeof("graphemeextend")];
+ char uniname2ctype_pool_str596[sizeof("kaithi")];
+ char uniname2ctype_pool_str597[sizeof("xpeo")];
+ char uniname2ctype_pool_str598[sizeof("yiii")];
+ char uniname2ctype_pool_str599[sizeof("kthi")];
+ char uniname2ctype_pool_str601[sizeof("cyrillic")];
+ char uniname2ctype_pool_str602[sizeof("glag")];
+ char uniname2ctype_pool_str605[sizeof("oupper")];
+ char uniname2ctype_pool_str617[sizeof("tagb")];
+ char uniname2ctype_pool_str620[sizeof("cwt")];
+ char uniname2ctype_pool_str623[sizeof("number")];
+ char uniname2ctype_pool_str625[sizeof("tglg")];
+ char uniname2ctype_pool_str626[sizeof("knda")];
+ char uniname2ctype_pool_str627[sizeof("lowercaseletter")];
+ char uniname2ctype_pool_str628[sizeof("changeswhentitlecased")];
+ char uniname2ctype_pool_str629[sizeof("softdotted")];
+ char uniname2ctype_pool_str632[sizeof("ugar")];
+ char uniname2ctype_pool_str634[sizeof("sylo")];
+ char uniname2ctype_pool_str636[sizeof("lu")];
+ char uniname2ctype_pool_str640[sizeof("tagalog")];
+ char uniname2ctype_pool_str643[sizeof("kharoshthi")];
+ char uniname2ctype_pool_str644[sizeof("syrc")];
+ char uniname2ctype_pool_str645[sizeof("kannada")];
+ char uniname2ctype_pool_str646[sizeof("beng")];
+ char uniname2ctype_pool_str647[sizeof("lowercase")];
+ char uniname2ctype_pool_str656[sizeof("shaw")];
+ char uniname2ctype_pool_str659[sizeof("patternsyntax")];
+ char uniname2ctype_pool_str660[sizeof("syriac")];
+ char uniname2ctype_pool_str663[sizeof("word")];
+ char uniname2ctype_pool_str667[sizeof("imperialaramaic")];
+ char uniname2ctype_pool_str672[sizeof("ugaritic")];
+ char uniname2ctype_pool_str675[sizeof("enclosingmark")];
+ char uniname2ctype_pool_str677[sizeof("georgian")];
+ char uniname2ctype_pool_str678[sizeof("lydi")];
+ char uniname2ctype_pool_str681[sizeof("lydian")];
+ char uniname2ctype_pool_str686[sizeof("sylotinagri")];
+ char uniname2ctype_pool_str687[sizeof("gujr")];
+ char uniname2ctype_pool_str692[sizeof("tfng")];
+ char uniname2ctype_pool_str696[sizeof("currencysymbol")];
+ char uniname2ctype_pool_str701[sizeof("newline")];
+ char uniname2ctype_pool_str705[sizeof("bopomofo")];
+ char uniname2ctype_pool_str706[sizeof("ogrext")];
+ char uniname2ctype_pool_str707[sizeof("cherokee")];
+ char uniname2ctype_pool_str708[sizeof("gujarati")];
+ char uniname2ctype_pool_str710[sizeof("newtailue")];
+ char uniname2ctype_pool_str716[sizeof("dashpunctuation")];
+ char uniname2ctype_pool_str718[sizeof("oldsoutharabian")];
+ char uniname2ctype_pool_str725[sizeof("upper")];
+ char uniname2ctype_pool_str732[sizeof("cf")];
+ char uniname2ctype_pool_str734[sizeof("buhd")];
+ char uniname2ctype_pool_str735[sizeof("rejang")];
+ char uniname2ctype_pool_str736[sizeof("othergraphemeextend")];
+ char uniname2ctype_pool_str739[sizeof("modifierletter")];
+ char uniname2ctype_pool_str745[sizeof("nonspacingmark")];
+ char uniname2ctype_pool_str749[sizeof("changeswhencasemapped")];
+ char uniname2ctype_pool_str752[sizeof("mark")];
+ char uniname2ctype_pool_str757[sizeof("surrogate")];
+ char uniname2ctype_pool_str765[sizeof("paragraphseparator")];
+ char uniname2ctype_pool_str767[sizeof("ogham")];
+ char uniname2ctype_pool_str768[sizeof("hex")];
+ char uniname2ctype_pool_str772[sizeof("uppercaseletter")];
+ char uniname2ctype_pool_str777[sizeof("hexdigit")];
+ char uniname2ctype_pool_str778[sizeof("cwcm")];
+ char uniname2ctype_pool_str781[sizeof("grbase")];
+ char uniname2ctype_pool_str782[sizeof("khmr")];
+ char uniname2ctype_pool_str788[sizeof("unifiedideograph")];
+ char uniname2ctype_pool_str792[sizeof("uppercase")];
+ char uniname2ctype_pool_str793[sizeof("khmer")];
+ char uniname2ctype_pool_str795[sizeof("spacingmark")];
+ char uniname2ctype_pool_str797[sizeof("whitespace")];
+ char uniname2ctype_pool_str806[sizeof("patsyn")];
+ char uniname2ctype_pool_str816[sizeof("cypriot")];
+ char uniname2ctype_pool_str818[sizeof("openpunctuation")];
+ char uniname2ctype_pool_str821[sizeof("bamu")];
+ char uniname2ctype_pool_str831[sizeof("buhid")];
+ char uniname2ctype_pool_str840[sizeof("batk")];
+ char uniname2ctype_pool_str851[sizeof("symbol")];
+ char uniname2ctype_pool_str856[sizeof("changeswhenuppercased")];
+ char uniname2ctype_pool_str857[sizeof("osmanya")];
+ char uniname2ctype_pool_str861[sizeof("limbu")];
+ char uniname2ctype_pool_str868[sizeof("punctuation")];
+ char uniname2ctype_pool_str872[sizeof("hyphen")];
+ char uniname2ctype_pool_str888[sizeof("mathsymbol")];
+ char uniname2ctype_pool_str892[sizeof("grek")];
+ char uniname2ctype_pool_str898[sizeof("changeswhencasefolded")];
+ char uniname2ctype_pool_str902[sizeof("quotationmark")];
+ char uniname2ctype_pool_str903[sizeof("bugi")];
+ char uniname2ctype_pool_str916[sizeof("cuneiform")];
+ char uniname2ctype_pool_str918[sizeof("pf")];
+ char uniname2ctype_pool_str927[sizeof("cwcf")];
+ char uniname2ctype_pool_str932[sizeof("bamum")];
+ char uniname2ctype_pool_str940[sizeof("guru")];
+ char uniname2ctype_pool_str944[sizeof("wspace")];
+ char uniname2ctype_pool_str951[sizeof("meeteimayek")];
+ char uniname2ctype_pool_str976[sizeof("defaultignorablecodepoint")];
+ char uniname2ctype_pool_str980[sizeof("modifiersymbol")];
+ char uniname2ctype_pool_str999[sizeof("mlym")];
+ char uniname2ctype_pool_str1007[sizeof("mymr")];
+ char uniname2ctype_pool_str1020[sizeof("malayalam")];
+ char uniname2ctype_pool_str1026[sizeof("myanmar")];
+ char uniname2ctype_pool_str1032[sizeof("telugu")];
+ char uniname2ctype_pool_str1033[sizeof("buginese")];
+ char uniname2ctype_pool_str1037[sizeof("xsux")];
+ char uniname2ctype_pool_str1093[sizeof("sk")];
+ char uniname2ctype_pool_str1097[sizeof("katakana")];
+ char uniname2ctype_pool_str1124[sizeof("egyp")];
+ char uniname2ctype_pool_str1146[sizeof("any")];
+ char uniname2ctype_pool_str1148[sizeof("kayahli")];
+ char uniname2ctype_pool_str1190[sizeof("cwu")];
+ char uniname2ctype_pool_str1263[sizeof("qmark")];
+ char uniname2ctype_pool_str1329[sizeof("blank")];
+ char uniname2ctype_pool_str1347[sizeof("grlink")];
+ char uniname2ctype_pool_str1358[sizeof("batak")];
+ char uniname2ctype_pool_str1395[sizeof("unknown")];
+ char uniname2ctype_pool_str1410[sizeof("greek")];
+ char uniname2ctype_pool_str1463[sizeof("graphemelink")];
+ char uniname2ctype_pool_str1470[sizeof("gurmukhi")];
+ char uniname2ctype_pool_str1556[sizeof("hebrew")];
+ char uniname2ctype_pool_str1621[sizeof("egyptianhieroglyphs")];
+ char uniname2ctype_pool_str1741[sizeof("zyyy")];
+#endif /* USE_UNICODE_PROPERTIES */
+ };
+static const struct uniname2ctype_pool_t uniname2ctype_pool_contents =
+ {
+#ifndef USE_UNICODE_PROPERTIES
+ "print",
+ "punct",
+#else /* USE_UNICODE_PROPERTIES */
+ "n",
+ "l",
+ "nl",
+ "ll",
+ "cn",
+ "no",
+ "lo",
+ "c",
+ "co",
+ "cc",
+ "lao",
+ "laoo",
+ "lana",
+ "ci",
+ "qaac",
+ "vai",
+ "vaii",
+ "qaai",
+ "control",
+ "cari",
+ "carian",
+ "zl",
+ "oriya",
+ "latn",
+ "cntrl",
+ "latin",
+ "han",
+ "arabic",
+ "ital",
+ "hano",
+ "hani",
+ "hanunoo",
+ "lt",
+ "so",
+ "hira",
+ "nchar",
+ "sc",
+ "z",
+ "oalpha",
+ "tavt",
+ "cans",
+ "java",
+ "zinh",
+ "thaa",
+ "thai",
+ "variationselector",
+ "sinhala",
+ "joinc",
+ "ascii",
+ "initialpunctuation",
+ "other",
+ "joincontrol",
+ "thaana",
+ "avst",
+ "olower",
+ "othernumber",
+ "otherletter",
+ "sinh",
+ "tale",
+ "connectorpunctuation",
+ "s",
+ "di",
+ "vs",
+ "oidc",
+ "idc",
+ "odi",
+ "cs",
+ "avestan",
+ "dia",
+ "cher",
+ "inscriptionalparthian",
+ "shavian",
+ "radical",
+ "loe",
+ "diacritic",
+ "zzzz",
+ "ethi",
+ "canadianaboriginal",
+ "zs",
+ "othersymbol",
+ "olditalic",
+ "inscriptionalpahlavi",
+ "taiviet",
+ "lineseparator",
+ "otheridstart",
+ "oids",
+ "asciihexdigit",
+ "inherited",
+ "otherlowercase",
+ "terminalpunctuation",
+ "deva",
+ "otheralphabetic",
+ "ideo",
+ "noncharactercodepoint",
+ "otheridcontinue",
+ "taile",
+ "oldpersian",
+ "devanagari",
+ "letter",
+ "nd",
+ "idst",
+ "dsrt",
+ "titlecaseletter",
+ "po",
+ "dash",
+ "pc",
+ "letternumber",
+ "pi",
+ "javanese",
+ "mn",
+ "idstart",
+ "idcontinue",
+ "ids",
+#endif /* USE_UNICODE_PROPERTIES */
+ "alpha",
+#ifdef USE_UNICODE_PROPERTIES
+ "mc",
+ "coptic",
+ "mongolian",
+ "common",
+ "armn",
+ "copt",
+ "cprt",
+ "armi",
+ "phli",
+ "prti",
+ "armenian",
+ "sd",
+ "mandaic",
+ "phoenician",
+ "taml",
+ "tamil",
+ "cased",
+ "cham",
+ "idsbinaryoperator",
+ "lepc",
+ "otherdefaultignorablecodepoint",
+ "print",
+ "osma",
+ "samr",
+ "math",
+ "linb",
+ "closepunctuation",
+ "otherpunctuation",
+ "bali",
+ "omath",
+ "samaritan",
+ "ps",
+ "arab",
+ "brai",
+ "taitham",
+ "linearb",
+ "lepcha",
+ "mand",
+ "mtei",
+ "term",
+ "glagolitic",
+ "privateuse",
+ "pe",
+ "deseret",
+ "brah",
+ "runr",
+ "othermath",
+ "runic",
+ "hang",
+ "ethiopic",
+ "me",
+ "patws",
+ "separator",
+ "tibt",
+ "gothic",
+ "tagbanwa",
+ "sarb",
+ "talu",
+ "tibetan",
+ "goth",
+ "rjng",
+ "hangul",
+ "bengali",
+ "hiragana",
+ "braille",
+ "geor",
+ "age=1.1",
+ "age=2.1",
+ "age=5.1",
+ "age=5.2",
+ "age=4.1",
+ "p",
+ "pd",
+ "lisu",
+ "age=2.0",
+ "age=5.0",
+ "age=6.0",
+ "age=4.0",
+ "graph",
+ "saur",
+ "space",
+ "age=3.1",
+ "age=3.2",
+ "hebr",
+ "bidic",
+ "age=3.0",
+ "bidicontrol",
+ "logicalorderexception",
+ "telu",
+ "zp",
+ "m",
+ "lm",
+ "idstrinaryoperator",
+ "balinese",
+ "uideo",
+ "spaceseparator",
+ "grext",
+#endif /* USE_UNICODE_PROPERTIES */
+ "alnum",
+#ifdef USE_UNICODE_PROPERTIES
+ "oldturkic",
+ "xidc",
+ "idsb",
+ "ahex",
+ "format",
+ "caseignorable",
+ "tifinagh",
+ "sundanese",
+ "ext",
+ "saurashtra",
+ "patternwhitespace",
+ "digit",
+ "sund",
+ "decimalnumber",
+ "bopo",
+ "sm",
+ "otheruppercase",
+ "ideographic",
+ "xids",
+ "unassigned",
+ "phagspa",
+ "alphabetic",
+ "limb",
+#endif /* USE_UNICODE_PROPERTIES */
+ "xdigit",
+#ifdef USE_UNICODE_PROPERTIES
+ "xidstart",
+ "mong",
+ "xidcontinue",
+ "assigned",
+ "ogam",
+ "nko",
+ "nkoo",
+ "olck",
+ "deprecated",
+ "brahmi",
+ "phag",
+ "kana",
+ "kali",
+ "changeswhenlowercased",
+ "extender",
+ "dep",
+ "olchiki",
+ "cwl",
+ "graphemebase",
+ "phnx",
+ "orkh",
+ "punct",
+ "khar",
+ "lower",
+ "sterm",
+ "yi",
+ "lyci",
+ "cyrl",
+ "lycian",
+ "finalpunctuation",
+ "orya",
+ "graphemeextend",
+ "kaithi",
+ "xpeo",
+ "yiii",
+ "kthi",
+ "cyrillic",
+ "glag",
+ "oupper",
+ "tagb",
+ "cwt",
+ "number",
+ "tglg",
+ "knda",
+ "lowercaseletter",
+ "changeswhentitlecased",
+ "softdotted",
+ "ugar",
+ "sylo",
+ "lu",
+ "tagalog",
+ "kharoshthi",
+ "syrc",
+ "kannada",
+ "beng",
+ "lowercase",
+ "shaw",
+ "patternsyntax",
+ "syriac",
+ "word",
+ "imperialaramaic",
+ "ugaritic",
+ "enclosingmark",
+ "georgian",
+ "lydi",
+ "lydian",
+ "sylotinagri",
+ "gujr",
+ "tfng",
+ "currencysymbol",
+#endif /* USE_UNICODE_PROPERTIES */
+ "newline",
+#ifdef USE_UNICODE_PROPERTIES
+ "bopomofo",
+ "ogrext",
+ "cherokee",
+ "gujarati",
+ "newtailue",
+ "dashpunctuation",
+ "oldsoutharabian",
+#endif /* USE_UNICODE_PROPERTIES */
+ "upper",
+#ifndef USE_UNICODE_PROPERTIES
+ "ascii",
+ "cntrl",
+ "space",
+ "word",
+ "lower",
+ "graph",
+ "digit",
+ "blank"
+#else /* USE_UNICODE_PROPERTIES */
+ "cf",
+ "buhd",
+ "rejang",
+ "othergraphemeextend",
+ "modifierletter",
+ "nonspacingmark",
+ "changeswhencasemapped",
+ "mark",
+ "surrogate",
+ "paragraphseparator",
+ "ogham",
+ "hex",
+ "uppercaseletter",
+ "hexdigit",
+ "cwcm",
+ "grbase",
+ "khmr",
+ "unifiedideograph",
+ "uppercase",
+ "khmer",
+ "spacingmark",
+ "whitespace",
+ "patsyn",
+ "cypriot",
+ "openpunctuation",
+ "bamu",
+ "buhid",
+ "batk",
+ "symbol",
+ "changeswhenuppercased",
+ "osmanya",
+ "limbu",
+ "punctuation",
+ "hyphen",
+ "mathsymbol",
+ "grek",
+ "changeswhencasefolded",
+ "quotationmark",
+ "bugi",
+ "cuneiform",
+ "pf",
+ "cwcf",
+ "bamum",
+ "guru",
+ "wspace",
+ "meeteimayek",
+ "defaultignorablecodepoint",
+ "modifiersymbol",
+ "mlym",
+ "mymr",
+ "malayalam",
+ "myanmar",
+ "telugu",
+ "buginese",
+ "xsux",
+ "sk",
+ "katakana",
+ "egyp",
+ "any",
+ "kayahli",
+ "cwu",
+ "qmark",
+ "blank",
+ "grlink",
+ "batak",
+ "unknown",
+ "greek",
+ "graphemelink",
+ "gurmukhi",
+ "hebrew",
+ "egyptianhieroglyphs",
+ "zyyy"
+#endif /* USE_UNICODE_PROPERTIES */
+ };
+#define uniname2ctype_pool ((const char *) &uniname2ctype_pool_contents)
+#ifdef __GNUC__
+__inline
+#ifdef __GNUC_STDC_INLINE__
+__attribute__ ((__gnu_inline__))
+#endif
+#endif
+const struct uniname2ctype_struct *
+uniname2ctype_p (str, len)
+ register const char *str;
+ register unsigned int len;
+{
+ static const struct uniname2ctype_struct wordlist[] =
+ {
+#ifdef USE_UNICODE_PROPERTIES
+ {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str3, 33},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str5, 23},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str7, 35},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str8, 24},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str10, 20},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str11, 36},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str12, 26},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str13, 17},
+ {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str16, 21},
+ {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str20, 18},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str21, 93},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str22, 93},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str23, 150},
+ {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str26, 59},
+ {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str29, 127},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str30, 142},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str31, 142},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str32, 113},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str34, 18},
+ {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str37, 147},
+ {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str40, 147},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str42, 51},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str44, 86},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str46, 74},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str47, 3},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str48, 74},
+ {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str51, 108},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str53, 79},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str54, 110},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str55, 115},
+ {-1}, {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str60, 108},
+ {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str63, 115},
+ {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str66, 27},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str67, 49},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str69, 105},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str70, 184},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str71, 46},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str73, 50},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str74, 178},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str75, 151},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str76, 100},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str84, 157},
+ {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str88, 113},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str89, 81},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str90, 92},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str91, 197},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str92, 91},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str93, 170},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str94, 14},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str95, 42},
+ {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str98, 17},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str99, 170},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str100, 81},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str101, 152},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str103, 182},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str105, 36},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str106, 26},
+ {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str109, 91},
+ {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str112, 119},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str114, 38},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str115, 45},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str116, 69},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str117, 197},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str119, 195},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str120, 66},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str121, 190},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str122, 22},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str123, 152},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str124, 180},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str125, 99},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str126, 161},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str128, 122},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str137, 188},
+ {-1}, {-1}, {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str143, 193},
+ {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str147, 180},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str148, 200},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str149, 98},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str151, 100},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str152, 53},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str153, 49},
+ {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str156, 110},
+ {-1}, {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str161, 162},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str162, 151},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str163, 51},
+ {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str166, 194},
+ {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str170, 194},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str171, 177},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str172, 113},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str174, 182},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str175, 174},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str176, 82},
+ {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str179, 178},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str180, 179},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str181, 184},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str183, 195},
+ {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str187, 119},
+ {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str190, 132},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str192, 82},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str193, 23},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str195, 34},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str197, 187},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str198, 112},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str200, 27},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str202, 43},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str203, 171},
+ {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str206, 38},
+ {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str209, 35},
+ {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str212, 42},
+ {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str215, 157},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str217, 32},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str218, 65},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str220, 66},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str222, 65},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str223, 1},
+ {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str227, 30},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str229, 127},
+ {-1}, {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str234, 104},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str235, 73},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str236, 77},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str237, 127},
+ {-1}, {-1}, {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str243, 124},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str244, 159},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str245, 162},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str246, 161},
+ {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str250, 77},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str251, 192},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str252, 167},
+ {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str255, 136},
+ {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str258, 87},
+ {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str261, 87},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str268, 58},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str269, 149},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str270, 186},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str271, 140},
+ {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str275, 190},
+ {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str278, 7},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str286, 123},
+ {-1}, {-1}, {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str292, 154},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str294, 54},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str296, 120},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str297, 40},
+ {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str301, 43},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str303, 134},
+ {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str306, 175},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str307, 154},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str308, 44},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str310, 79},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str311, 125},
+ {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str314, 150},
+ {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str317, 120},
+ {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str321, 140},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str322, 167},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str324, 158},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str325, 174},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str326, 129},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str327, 21},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str328, 40},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str335, 112},
+ {-1}, {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str340, 166},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str341, 102},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str343, 175},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str344, 102},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str345, 97},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str346, 98},
+ {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str349, 31},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str350, 198},
+ {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str353, 50},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str355, 94},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str356, 111},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str358, 117},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str359, 160},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str361, 128},
+ {-1}, {-1}, {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str367, 94},
+ {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str371, 111},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str372, 145},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str373, 97},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str374, 83},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str375, 105},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str376, 125},
+ {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str379, 96},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str380, 201},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str381, 203},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str382, 210},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str383, 211},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str384, 208},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str385, 37},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str386, 39},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str388, 155},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str389, 202},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str390, 209},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str391, 212},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str392, 207},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str393, 5},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str395, 143},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str396, 9},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str397, 205},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str398, 206},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str399, 78},
+ {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str402, 169},
+ {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str405, 204},
+ {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str408, 169},
+ {-1}, {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str413, 193},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str420, 88},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str422, 52},
+ {-1}, {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str427, 29},
+ {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str430, 25},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str432, 187},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str433, 134},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str434, 189},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str436, 53},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str438, 70},
+ {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str442, 13},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str443, 163},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str445, 68},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str446, 186},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str447, 177},
+ {-1}, {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str452, 19},
+ {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str456, 59},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str457, 130},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str459, 139},
+ {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str462, 181},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str464, 143},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str465, 198},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str466, 4},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str474, 139},
+ {-1}, {-1}, {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str480, 34},
+ {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str484, 107},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str485, 48},
+ {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str488, 183},
+ {-1}, {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str493, 179},
+ {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str496, 67},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str497, 20},
+ {-1}, {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str502, 137},
+ {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str506, 55},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str508, 118},
+ {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str512, 11},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str513, 67},
+ {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str516, 104},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str518, 68},
+ {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str521, 16},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str523, 101},
+ {-1}, {-1}, {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str529, 138},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str530, 138},
+ {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str533, 141},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str534, 191},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str535, 166},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str536, 137},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str538, 106},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str540, 144},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str542, 60},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str543, 181},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str550, 191},
+ {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str554, 141},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str562, 60},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str563, 71},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str565, 136},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str573, 163},
+ {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str576, 8},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str577, 133},
+ {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str580, 6},
+ {-1}, {-1}, {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str586, 196},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str587, 109},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str588, 146},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str589, 76},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str591, 146},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str592, 41},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str593, 86},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str594, 70},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str596, 164},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str597, 132},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str598, 109},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str599, 164},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str601, 76},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str602, 129},
+ {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str605, 183},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str617, 117},
+ {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str620, 62},
+ {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str623, 33},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str625, 114},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str626, 89},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str627, 24},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str628, 62},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str629, 192},
+ {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str632, 121},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str634, 131},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str636, 28},
+ {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str640, 114},
+ {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str643, 133},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str644, 80},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str645, 89},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str646, 83},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str647, 56},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str656, 122},
+ {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str659, 199},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str660, 80},
+ {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str663, 12},
+ {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str667, 159},
+ {-1}, {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str672, 121},
+ {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str675, 31},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str677, 96},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str678, 148},
+ {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str681, 148},
+ {-1}, {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str686, 131},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str687, 85},
+ {-1}, {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str692, 130},
+ {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str696, 46},
+ {-1}, {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str701, 0},
+ {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str705, 107},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str706, 185},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str707, 99},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str708, 85},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str710, 128},
+ {-1}, {-1}, {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str716, 39},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str718, 160},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str725, 10},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str732, 19},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str734, 116},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str735, 145},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str736, 185},
+ {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str739, 25},
+ {-1}, {-1}, {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str745, 32},
+ {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str749, 64},
+ {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str752, 29},
+ {-1}, {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str757, 22},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str765, 52},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str767, 101},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str768, 176},
+ {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str772, 28},
+ {-1}, {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str777, 176},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str778, 64},
+ {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str781, 71},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str782, 103},
+ {-1}, {-1}, {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str788, 189},
+ {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str792, 57},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str793, 103},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str795, 30},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str797, 168},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str806, 199},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str816, 124},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str818, 44},
+ {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str821, 156},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str831, 116},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str840, 165},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str851, 45},
+ {-1}, {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str856, 61},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str857, 123},
+ {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str861, 118},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str868, 37},
+ {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str872, 172},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str888, 48},
+ {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str892, 75},
+ {-1}, {-1}, {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str898, 63},
+ {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str902, 173},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str903, 126},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str916, 135},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str918, 41},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str927, 63},
+ {-1}, {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str932, 156},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str940, 84},
+ {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str944, 168},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str951, 158},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str976, 69},
+ {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str980, 47},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str999, 90},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str1007, 95},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str1020, 90},
+ {-1}, {-1}, {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str1026, 95},
+ {-1}, {-1}, {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str1032, 88},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str1033, 126},
+ {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str1037, 135},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str1093, 47},
+ {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str1097, 106},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str1124, 153},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str1146, 15},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str1148, 144},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str1190, 61},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str1263, 173},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str1329, 2},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str1347, 72},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str1358, 165},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str1395, 200},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str1410, 75},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+#endif /* USE_UNICODE_PROPERTIES */
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+#ifndef USE_UNICODE_PROPERTIES
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str7, 7},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str8, 8},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str9, 1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str10, 13},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str11, 11},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str12, 0},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str13, 10},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str14, 14},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str15, 3},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str16, 9},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str17, 12},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str18, 6},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str19, 5},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str20, 4},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str21, 2}
+#else /* USE_UNICODE_PROPERTIES */
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str1463, 72},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str1470, 84},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str1556, 78},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str1621, 153},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1}, {-1},
+ {-1}, {-1},
+ {(int)(long)&((struct uniname2ctype_pool_t *)0)->uniname2ctype_pool_str1741, 73}
+#endif /* USE_UNICODE_PROPERTIES */
+ };
+
+ if (len <= MAX_WORD_LENGTH && len >= MIN_WORD_LENGTH)
+ {
+ register int key = uniname2ctype_hash (str, len);
+
+ if (key <= MAX_HASH_VALUE && key >= 0)
+ {
+ register int o = wordlist[key].name;
+ if (o >= 0)
+ {
+ register const char *s = o + uniname2ctype_pool;
+
+ if (*str == *s && !strncmp (str + 1, s + 1, len - 1) && s[len] == '\0')
+ return &wordlist[key];
+ }
+ }
+ }
+ return 0;
+}
+
+static int
+uniname2ctype(const UChar *name, unsigned int len)
+{
+ const struct uniname2ctype_struct *p = uniname2ctype_p((const char *)name, len);
+ if (p) return p->ctype;
+ return -1;
+}
diff --git a/enc/unicode/name2ctype.kwd b/enc/unicode/name2ctype.kwd
new file mode 100644
index 0000000000..2e27f3f7de
--- /dev/null
+++ b/enc/unicode/name2ctype.kwd
@@ -0,0 +1,22543 @@
+%{
+#define long size_t
+
+#ifdef USE_UNICODE_PROPERTIES
+/* 'Any': - */
+static const OnigCodePoint CR_Any[] = {
+ 1,
+ 0x0000, 0x10ffff,
+}; /* CR_Any */
+
+/* 'Assigned': - */
+static const OnigCodePoint CR_Assigned[] = {
+ 501,
+ 0x0000, 0x0377,
+ 0x037a, 0x037e,
+ 0x0384, 0x038a,
+ 0x038c, 0x038c,
+ 0x038e, 0x03a1,
+ 0x03a3, 0x0527,
+ 0x0531, 0x0556,
+ 0x0559, 0x055f,
+ 0x0561, 0x0587,
+ 0x0589, 0x058a,
+ 0x0591, 0x05c7,
+ 0x05d0, 0x05ea,
+ 0x05f0, 0x05f4,
+ 0x0600, 0x0603,
+ 0x0606, 0x061b,
+ 0x061e, 0x070d,
+ 0x070f, 0x074a,
+ 0x074d, 0x07b1,
+ 0x07c0, 0x07fa,
+ 0x0800, 0x082d,
+ 0x0830, 0x083e,
+ 0x0840, 0x085b,
+ 0x085e, 0x085e,
+ 0x0900, 0x0977,
+ 0x0979, 0x097f,
+ 0x0981, 0x0983,
+ 0x0985, 0x098c,
+ 0x098f, 0x0990,
+ 0x0993, 0x09a8,
+ 0x09aa, 0x09b0,
+ 0x09b2, 0x09b2,
+ 0x09b6, 0x09b9,
+ 0x09bc, 0x09c4,
+ 0x09c7, 0x09c8,
+ 0x09cb, 0x09ce,
+ 0x09d7, 0x09d7,
+ 0x09dc, 0x09dd,
+ 0x09df, 0x09e3,
+ 0x09e6, 0x09fb,
+ 0x0a01, 0x0a03,
+ 0x0a05, 0x0a0a,
+ 0x0a0f, 0x0a10,
+ 0x0a13, 0x0a28,
+ 0x0a2a, 0x0a30,
+ 0x0a32, 0x0a33,
+ 0x0a35, 0x0a36,
+ 0x0a38, 0x0a39,
+ 0x0a3c, 0x0a3c,
+ 0x0a3e, 0x0a42,
+ 0x0a47, 0x0a48,
+ 0x0a4b, 0x0a4d,
+ 0x0a51, 0x0a51,
+ 0x0a59, 0x0a5c,
+ 0x0a5e, 0x0a5e,
+ 0x0a66, 0x0a75,
+ 0x0a81, 0x0a83,
+ 0x0a85, 0x0a8d,
+ 0x0a8f, 0x0a91,
+ 0x0a93, 0x0aa8,
+ 0x0aaa, 0x0ab0,
+ 0x0ab2, 0x0ab3,
+ 0x0ab5, 0x0ab9,
+ 0x0abc, 0x0ac5,
+ 0x0ac7, 0x0ac9,
+ 0x0acb, 0x0acd,
+ 0x0ad0, 0x0ad0,
+ 0x0ae0, 0x0ae3,
+ 0x0ae6, 0x0aef,
+ 0x0af1, 0x0af1,
+ 0x0b01, 0x0b03,
+ 0x0b05, 0x0b0c,
+ 0x0b0f, 0x0b10,
+ 0x0b13, 0x0b28,
+ 0x0b2a, 0x0b30,
+ 0x0b32, 0x0b33,
+ 0x0b35, 0x0b39,
+ 0x0b3c, 0x0b44,
+ 0x0b47, 0x0b48,
+ 0x0b4b, 0x0b4d,
+ 0x0b56, 0x0b57,
+ 0x0b5c, 0x0b5d,
+ 0x0b5f, 0x0b63,
+ 0x0b66, 0x0b77,
+ 0x0b82, 0x0b83,
+ 0x0b85, 0x0b8a,
+ 0x0b8e, 0x0b90,
+ 0x0b92, 0x0b95,
+ 0x0b99, 0x0b9a,
+ 0x0b9c, 0x0b9c,
+ 0x0b9e, 0x0b9f,
+ 0x0ba3, 0x0ba4,
+ 0x0ba8, 0x0baa,
+ 0x0bae, 0x0bb9,
+ 0x0bbe, 0x0bc2,
+ 0x0bc6, 0x0bc8,
+ 0x0bca, 0x0bcd,
+ 0x0bd0, 0x0bd0,
+ 0x0bd7, 0x0bd7,
+ 0x0be6, 0x0bfa,
+ 0x0c01, 0x0c03,
+ 0x0c05, 0x0c0c,
+ 0x0c0e, 0x0c10,
+ 0x0c12, 0x0c28,
+ 0x0c2a, 0x0c33,
+ 0x0c35, 0x0c39,
+ 0x0c3d, 0x0c44,
+ 0x0c46, 0x0c48,
+ 0x0c4a, 0x0c4d,
+ 0x0c55, 0x0c56,
+ 0x0c58, 0x0c59,
+ 0x0c60, 0x0c63,
+ 0x0c66, 0x0c6f,
+ 0x0c78, 0x0c7f,
+ 0x0c82, 0x0c83,
+ 0x0c85, 0x0c8c,
+ 0x0c8e, 0x0c90,
+ 0x0c92, 0x0ca8,
+ 0x0caa, 0x0cb3,
+ 0x0cb5, 0x0cb9,
+ 0x0cbc, 0x0cc4,
+ 0x0cc6, 0x0cc8,
+ 0x0cca, 0x0ccd,
+ 0x0cd5, 0x0cd6,
+ 0x0cde, 0x0cde,
+ 0x0ce0, 0x0ce3,
+ 0x0ce6, 0x0cef,
+ 0x0cf1, 0x0cf2,
+ 0x0d02, 0x0d03,
+ 0x0d05, 0x0d0c,
+ 0x0d0e, 0x0d10,
+ 0x0d12, 0x0d3a,
+ 0x0d3d, 0x0d44,
+ 0x0d46, 0x0d48,
+ 0x0d4a, 0x0d4e,
+ 0x0d57, 0x0d57,
+ 0x0d60, 0x0d63,
+ 0x0d66, 0x0d75,
+ 0x0d79, 0x0d7f,
+ 0x0d82, 0x0d83,
+ 0x0d85, 0x0d96,
+ 0x0d9a, 0x0db1,
+ 0x0db3, 0x0dbb,
+ 0x0dbd, 0x0dbd,
+ 0x0dc0, 0x0dc6,
+ 0x0dca, 0x0dca,
+ 0x0dcf, 0x0dd4,
+ 0x0dd6, 0x0dd6,
+ 0x0dd8, 0x0ddf,
+ 0x0df2, 0x0df4,
+ 0x0e01, 0x0e3a,
+ 0x0e3f, 0x0e5b,
+ 0x0e81, 0x0e82,
+ 0x0e84, 0x0e84,
+ 0x0e87, 0x0e88,
+ 0x0e8a, 0x0e8a,
+ 0x0e8d, 0x0e8d,
+ 0x0e94, 0x0e97,
+ 0x0e99, 0x0e9f,
+ 0x0ea1, 0x0ea3,
+ 0x0ea5, 0x0ea5,
+ 0x0ea7, 0x0ea7,
+ 0x0eaa, 0x0eab,
+ 0x0ead, 0x0eb9,
+ 0x0ebb, 0x0ebd,
+ 0x0ec0, 0x0ec4,
+ 0x0ec6, 0x0ec6,
+ 0x0ec8, 0x0ecd,
+ 0x0ed0, 0x0ed9,
+ 0x0edc, 0x0edd,
+ 0x0f00, 0x0f47,
+ 0x0f49, 0x0f6c,
+ 0x0f71, 0x0f97,
+ 0x0f99, 0x0fbc,
+ 0x0fbe, 0x0fcc,
+ 0x0fce, 0x0fda,
+ 0x1000, 0x10c5,
+ 0x10d0, 0x10fc,
+ 0x1100, 0x1248,
+ 0x124a, 0x124d,
+ 0x1250, 0x1256,
+ 0x1258, 0x1258,
+ 0x125a, 0x125d,
+ 0x1260, 0x1288,
+ 0x128a, 0x128d,
+ 0x1290, 0x12b0,
+ 0x12b2, 0x12b5,
+ 0x12b8, 0x12be,
+ 0x12c0, 0x12c0,
+ 0x12c2, 0x12c5,
+ 0x12c8, 0x12d6,
+ 0x12d8, 0x1310,
+ 0x1312, 0x1315,
+ 0x1318, 0x135a,
+ 0x135d, 0x137c,
+ 0x1380, 0x1399,
+ 0x13a0, 0x13f4,
+ 0x1400, 0x169c,
+ 0x16a0, 0x16f0,
+ 0x1700, 0x170c,
+ 0x170e, 0x1714,
+ 0x1720, 0x1736,
+ 0x1740, 0x1753,
+ 0x1760, 0x176c,
+ 0x176e, 0x1770,
+ 0x1772, 0x1773,
+ 0x1780, 0x17dd,
+ 0x17e0, 0x17e9,
+ 0x17f0, 0x17f9,
+ 0x1800, 0x180e,
+ 0x1810, 0x1819,
+ 0x1820, 0x1877,
+ 0x1880, 0x18aa,
+ 0x18b0, 0x18f5,
+ 0x1900, 0x191c,
+ 0x1920, 0x192b,
+ 0x1930, 0x193b,
+ 0x1940, 0x1940,
+ 0x1944, 0x196d,
+ 0x1970, 0x1974,
+ 0x1980, 0x19ab,
+ 0x19b0, 0x19c9,
+ 0x19d0, 0x19da,
+ 0x19de, 0x1a1b,
+ 0x1a1e, 0x1a5e,
+ 0x1a60, 0x1a7c,
+ 0x1a7f, 0x1a89,
+ 0x1a90, 0x1a99,
+ 0x1aa0, 0x1aad,
+ 0x1b00, 0x1b4b,
+ 0x1b50, 0x1b7c,
+ 0x1b80, 0x1baa,
+ 0x1bae, 0x1bb9,
+ 0x1bc0, 0x1bf3,
+ 0x1bfc, 0x1c37,
+ 0x1c3b, 0x1c49,
+ 0x1c4d, 0x1c7f,
+ 0x1cd0, 0x1cf2,
+ 0x1d00, 0x1de6,
+ 0x1dfc, 0x1f15,
+ 0x1f18, 0x1f1d,
+ 0x1f20, 0x1f45,
+ 0x1f48, 0x1f4d,
+ 0x1f50, 0x1f57,
+ 0x1f59, 0x1f59,
+ 0x1f5b, 0x1f5b,
+ 0x1f5d, 0x1f5d,
+ 0x1f5f, 0x1f7d,
+ 0x1f80, 0x1fb4,
+ 0x1fb6, 0x1fc4,
+ 0x1fc6, 0x1fd3,
+ 0x1fd6, 0x1fdb,
+ 0x1fdd, 0x1fef,
+ 0x1ff2, 0x1ff4,
+ 0x1ff6, 0x1ffe,
+ 0x2000, 0x2064,
+ 0x206a, 0x2071,
+ 0x2074, 0x208e,
+ 0x2090, 0x209c,
+ 0x20a0, 0x20b9,
+ 0x20d0, 0x20f0,
+ 0x2100, 0x2189,
+ 0x2190, 0x23f3,
+ 0x2400, 0x2426,
+ 0x2440, 0x244a,
+ 0x2460, 0x26ff,
+ 0x2701, 0x27ca,
+ 0x27cc, 0x27cc,
+ 0x27ce, 0x2b4c,
+ 0x2b50, 0x2b59,
+ 0x2c00, 0x2c2e,
+ 0x2c30, 0x2c5e,
+ 0x2c60, 0x2cf1,
+ 0x2cf9, 0x2d25,
+ 0x2d30, 0x2d65,
+ 0x2d6f, 0x2d70,
+ 0x2d7f, 0x2d96,
+ 0x2da0, 0x2da6,
+ 0x2da8, 0x2dae,
+ 0x2db0, 0x2db6,
+ 0x2db8, 0x2dbe,
+ 0x2dc0, 0x2dc6,
+ 0x2dc8, 0x2dce,
+ 0x2dd0, 0x2dd6,
+ 0x2dd8, 0x2dde,
+ 0x2de0, 0x2e31,
+ 0x2e80, 0x2e99,
+ 0x2e9b, 0x2ef3,
+ 0x2f00, 0x2fd5,
+ 0x2ff0, 0x2ffb,
+ 0x3000, 0x303f,
+ 0x3041, 0x3096,
+ 0x3099, 0x30ff,
+ 0x3105, 0x312d,
+ 0x3131, 0x318e,
+ 0x3190, 0x31ba,
+ 0x31c0, 0x31e3,
+ 0x31f0, 0x321e,
+ 0x3220, 0x32fe,
+ 0x3300, 0x4db5,
+ 0x4dc0, 0x9fcb,
+ 0xa000, 0xa48c,
+ 0xa490, 0xa4c6,
+ 0xa4d0, 0xa62b,
+ 0xa640, 0xa673,
+ 0xa67c, 0xa697,
+ 0xa6a0, 0xa6f7,
+ 0xa700, 0xa78e,
+ 0xa790, 0xa791,
+ 0xa7a0, 0xa7a9,
+ 0xa7fa, 0xa82b,
+ 0xa830, 0xa839,
+ 0xa840, 0xa877,
+ 0xa880, 0xa8c4,
+ 0xa8ce, 0xa8d9,
+ 0xa8e0, 0xa8fb,
+ 0xa900, 0xa953,
+ 0xa95f, 0xa97c,
+ 0xa980, 0xa9cd,
+ 0xa9cf, 0xa9d9,
+ 0xa9de, 0xa9df,
+ 0xaa00, 0xaa36,
+ 0xaa40, 0xaa4d,
+ 0xaa50, 0xaa59,
+ 0xaa5c, 0xaa7b,
+ 0xaa80, 0xaac2,
+ 0xaadb, 0xaadf,
+ 0xab01, 0xab06,
+ 0xab09, 0xab0e,
+ 0xab11, 0xab16,
+ 0xab20, 0xab26,
+ 0xab28, 0xab2e,
+ 0xabc0, 0xabed,
+ 0xabf0, 0xabf9,
+ 0xac00, 0xd7a3,
+ 0xd7b0, 0xd7c6,
+ 0xd7cb, 0xd7fb,
+ 0xd800, 0xfa2d,
+ 0xfa30, 0xfa6d,
+ 0xfa70, 0xfad9,
+ 0xfb00, 0xfb06,
+ 0xfb13, 0xfb17,
+ 0xfb1d, 0xfb36,
+ 0xfb38, 0xfb3c,
+ 0xfb3e, 0xfb3e,
+ 0xfb40, 0xfb41,
+ 0xfb43, 0xfb44,
+ 0xfb46, 0xfbc1,
+ 0xfbd3, 0xfd3f,
+ 0xfd50, 0xfd8f,
+ 0xfd92, 0xfdc7,
+ 0xfdf0, 0xfdfd,
+ 0xfe00, 0xfe19,
+ 0xfe20, 0xfe26,
+ 0xfe30, 0xfe52,
+ 0xfe54, 0xfe66,
+ 0xfe68, 0xfe6b,
+ 0xfe70, 0xfe74,
+ 0xfe76, 0xfefc,
+ 0xfeff, 0xfeff,
+ 0xff01, 0xffbe,
+ 0xffc2, 0xffc7,
+ 0xffca, 0xffcf,
+ 0xffd2, 0xffd7,
+ 0xffda, 0xffdc,
+ 0xffe0, 0xffe6,
+ 0xffe8, 0xffee,
+ 0xfff9, 0xfffd,
+ 0x10000, 0x1000b,
+ 0x1000d, 0x10026,
+ 0x10028, 0x1003a,
+ 0x1003c, 0x1003d,
+ 0x1003f, 0x1004d,
+ 0x10050, 0x1005d,
+ 0x10080, 0x100fa,
+ 0x10100, 0x10102,
+ 0x10107, 0x10133,
+ 0x10137, 0x1018a,
+ 0x10190, 0x1019b,
+ 0x101d0, 0x101fd,
+ 0x10280, 0x1029c,
+ 0x102a0, 0x102d0,
+ 0x10300, 0x1031e,
+ 0x10320, 0x10323,
+ 0x10330, 0x1034a,
+ 0x10380, 0x1039d,
+ 0x1039f, 0x103c3,
+ 0x103c8, 0x103d5,
+ 0x10400, 0x1049d,
+ 0x104a0, 0x104a9,
+ 0x10800, 0x10805,
+ 0x10808, 0x10808,
+ 0x1080a, 0x10835,
+ 0x10837, 0x10838,
+ 0x1083c, 0x1083c,
+ 0x1083f, 0x10855,
+ 0x10857, 0x1085f,
+ 0x10900, 0x1091b,
+ 0x1091f, 0x10939,
+ 0x1093f, 0x1093f,
+ 0x10a00, 0x10a03,
+ 0x10a05, 0x10a06,
+ 0x10a0c, 0x10a13,
+ 0x10a15, 0x10a17,
+ 0x10a19, 0x10a33,
+ 0x10a38, 0x10a3a,
+ 0x10a3f, 0x10a47,
+ 0x10a50, 0x10a58,
+ 0x10a60, 0x10a7f,
+ 0x10b00, 0x10b35,
+ 0x10b39, 0x10b55,
+ 0x10b58, 0x10b72,
+ 0x10b78, 0x10b7f,
+ 0x10c00, 0x10c48,
+ 0x10e60, 0x10e7e,
+ 0x11000, 0x1104d,
+ 0x11052, 0x1106f,
+ 0x11080, 0x110c1,
+ 0x12000, 0x1236e,
+ 0x12400, 0x12462,
+ 0x12470, 0x12473,
+ 0x13000, 0x1342e,
+ 0x16800, 0x16a38,
+ 0x1b000, 0x1b001,
+ 0x1d000, 0x1d0f5,
+ 0x1d100, 0x1d126,
+ 0x1d129, 0x1d1dd,
+ 0x1d200, 0x1d245,
+ 0x1d300, 0x1d356,
+ 0x1d360, 0x1d371,
+ 0x1d400, 0x1d454,
+ 0x1d456, 0x1d49c,
+ 0x1d49e, 0x1d49f,
+ 0x1d4a2, 0x1d4a2,
+ 0x1d4a5, 0x1d4a6,
+ 0x1d4a9, 0x1d4ac,
+ 0x1d4ae, 0x1d4b9,
+ 0x1d4bb, 0x1d4bb,
+ 0x1d4bd, 0x1d4c3,
+ 0x1d4c5, 0x1d505,
+ 0x1d507, 0x1d50a,
+ 0x1d50d, 0x1d514,
+ 0x1d516, 0x1d51c,
+ 0x1d51e, 0x1d539,
+ 0x1d53b, 0x1d53e,
+ 0x1d540, 0x1d544,
+ 0x1d546, 0x1d546,
+ 0x1d54a, 0x1d550,
+ 0x1d552, 0x1d6a5,
+ 0x1d6a8, 0x1d7cb,
+ 0x1d7ce, 0x1d7ff,
+ 0x1f000, 0x1f02b,
+ 0x1f030, 0x1f093,
+ 0x1f0a0, 0x1f0ae,
+ 0x1f0b1, 0x1f0be,
+ 0x1f0c1, 0x1f0cf,
+ 0x1f0d1, 0x1f0df,
+ 0x1f100, 0x1f10a,
+ 0x1f110, 0x1f12e,
+ 0x1f130, 0x1f169,
+ 0x1f170, 0x1f19a,
+ 0x1f1e6, 0x1f202,
+ 0x1f210, 0x1f23a,
+ 0x1f240, 0x1f248,
+ 0x1f250, 0x1f251,
+ 0x1f300, 0x1f320,
+ 0x1f330, 0x1f335,
+ 0x1f337, 0x1f37c,
+ 0x1f380, 0x1f393,
+ 0x1f3a0, 0x1f3c4,
+ 0x1f3c6, 0x1f3ca,
+ 0x1f3e0, 0x1f3f0,
+ 0x1f400, 0x1f43e,
+ 0x1f440, 0x1f440,
+ 0x1f442, 0x1f4f7,
+ 0x1f4f9, 0x1f4fc,
+ 0x1f500, 0x1f53d,
+ 0x1f550, 0x1f567,
+ 0x1f5fb, 0x1f5ff,
+ 0x1f601, 0x1f610,
+ 0x1f612, 0x1f614,
+ 0x1f616, 0x1f616,
+ 0x1f618, 0x1f618,
+ 0x1f61a, 0x1f61a,
+ 0x1f61c, 0x1f61e,
+ 0x1f620, 0x1f625,
+ 0x1f628, 0x1f62b,
+ 0x1f62d, 0x1f62d,
+ 0x1f630, 0x1f633,
+ 0x1f635, 0x1f640,
+ 0x1f645, 0x1f64f,
+ 0x1f680, 0x1f6c5,
+ 0x1f700, 0x1f773,
+ 0x20000, 0x2a6d6,
+ 0x2a700, 0x2b734,
+ 0x2b740, 0x2b81d,
+ 0x2f800, 0x2fa1d,
+ 0xe0001, 0xe0001,
+ 0xe0020, 0xe007f,
+ 0xe0100, 0xe01ef,
+ 0xf0000, 0xffffd,
+ 0x100000, 0x10fffd,
+}; /* CR_Assigned */
+
+/* 'C': Major Category */
+static const OnigCodePoint CR_C[] = {
+ 20,
+ 0x0000, 0x001f,
+ 0x007f, 0x009f,
+ 0x00ad, 0x00ad,
+ 0x0600, 0x0603,
+ 0x06dd, 0x06dd,
+ 0x070f, 0x070f,
+ 0x17b4, 0x17b5,
+ 0x200b, 0x200f,
+ 0x202a, 0x202e,
+ 0x2060, 0x2064,
+ 0x206a, 0x206f,
+ 0xd800, 0xf8ff,
+ 0xfeff, 0xfeff,
+ 0xfff9, 0xfffb,
+ 0x110bd, 0x110bd,
+ 0x1d173, 0x1d17a,
+ 0xe0001, 0xe0001,
+ 0xe0020, 0xe007f,
+ 0xf0000, 0xffffd,
+ 0x100000, 0x10ffff,
+}; /* CR_C */
+
+/* 'Cc': General Category */
+static const OnigCodePoint CR_Cc[] = {
+ 2,
+ 0x0000, 0x001f,
+ 0x007f, 0x009f,
+}; /* CR_Cc */
+
+/* 'Cf': General Category */
+static const OnigCodePoint CR_Cf[] = {
+ 15,
+ 0x00ad, 0x00ad,
+ 0x0600, 0x0603,
+ 0x06dd, 0x06dd,
+ 0x070f, 0x070f,
+ 0x17b4, 0x17b5,
+ 0x200b, 0x200f,
+ 0x202a, 0x202e,
+ 0x2060, 0x2064,
+ 0x206a, 0x206f,
+ 0xfeff, 0xfeff,
+ 0xfff9, 0xfffb,
+ 0x110bd, 0x110bd,
+ 0x1d173, 0x1d17a,
+ 0xe0001, 0xe0001,
+ 0xe0020, 0xe007f,
+}; /* CR_Cf */
+
+/* 'Cn': General Category */
+static const OnigCodePoint CR_Cn[] = {
+ 501,
+ 0x0378, 0x0379,
+ 0x037f, 0x0383,
+ 0x038b, 0x038b,
+ 0x038d, 0x038d,
+ 0x03a2, 0x03a2,
+ 0x0528, 0x0530,
+ 0x0557, 0x0558,
+ 0x0560, 0x0560,
+ 0x0588, 0x0588,
+ 0x058b, 0x0590,
+ 0x05c8, 0x05cf,
+ 0x05eb, 0x05ef,
+ 0x05f5, 0x05ff,
+ 0x0604, 0x0605,
+ 0x061c, 0x061d,
+ 0x070e, 0x070e,
+ 0x074b, 0x074c,
+ 0x07b2, 0x07bf,
+ 0x07fb, 0x07ff,
+ 0x082e, 0x082f,
+ 0x083f, 0x083f,
+ 0x085c, 0x085d,
+ 0x085f, 0x08ff,
+ 0x0978, 0x0978,
+ 0x0980, 0x0980,
+ 0x0984, 0x0984,
+ 0x098d, 0x098e,
+ 0x0991, 0x0992,
+ 0x09a9, 0x09a9,
+ 0x09b1, 0x09b1,
+ 0x09b3, 0x09b5,
+ 0x09ba, 0x09bb,
+ 0x09c5, 0x09c6,
+ 0x09c9, 0x09ca,
+ 0x09cf, 0x09d6,
+ 0x09d8, 0x09db,
+ 0x09de, 0x09de,
+ 0x09e4, 0x09e5,
+ 0x09fc, 0x0a00,
+ 0x0a04, 0x0a04,
+ 0x0a0b, 0x0a0e,
+ 0x0a11, 0x0a12,
+ 0x0a29, 0x0a29,
+ 0x0a31, 0x0a31,
+ 0x0a34, 0x0a34,
+ 0x0a37, 0x0a37,
+ 0x0a3a, 0x0a3b,
+ 0x0a3d, 0x0a3d,
+ 0x0a43, 0x0a46,
+ 0x0a49, 0x0a4a,
+ 0x0a4e, 0x0a50,
+ 0x0a52, 0x0a58,
+ 0x0a5d, 0x0a5d,
+ 0x0a5f, 0x0a65,
+ 0x0a76, 0x0a80,
+ 0x0a84, 0x0a84,
+ 0x0a8e, 0x0a8e,
+ 0x0a92, 0x0a92,
+ 0x0aa9, 0x0aa9,
+ 0x0ab1, 0x0ab1,
+ 0x0ab4, 0x0ab4,
+ 0x0aba, 0x0abb,
+ 0x0ac6, 0x0ac6,
+ 0x0aca, 0x0aca,
+ 0x0ace, 0x0acf,
+ 0x0ad1, 0x0adf,
+ 0x0ae4, 0x0ae5,
+ 0x0af0, 0x0af0,
+ 0x0af2, 0x0b00,
+ 0x0b04, 0x0b04,
+ 0x0b0d, 0x0b0e,
+ 0x0b11, 0x0b12,
+ 0x0b29, 0x0b29,
+ 0x0b31, 0x0b31,
+ 0x0b34, 0x0b34,
+ 0x0b3a, 0x0b3b,
+ 0x0b45, 0x0b46,
+ 0x0b49, 0x0b4a,
+ 0x0b4e, 0x0b55,
+ 0x0b58, 0x0b5b,
+ 0x0b5e, 0x0b5e,
+ 0x0b64, 0x0b65,
+ 0x0b78, 0x0b81,
+ 0x0b84, 0x0b84,
+ 0x0b8b, 0x0b8d,
+ 0x0b91, 0x0b91,
+ 0x0b96, 0x0b98,
+ 0x0b9b, 0x0b9b,
+ 0x0b9d, 0x0b9d,
+ 0x0ba0, 0x0ba2,
+ 0x0ba5, 0x0ba7,
+ 0x0bab, 0x0bad,
+ 0x0bba, 0x0bbd,
+ 0x0bc3, 0x0bc5,
+ 0x0bc9, 0x0bc9,
+ 0x0bce, 0x0bcf,
+ 0x0bd1, 0x0bd6,
+ 0x0bd8, 0x0be5,
+ 0x0bfb, 0x0c00,
+ 0x0c04, 0x0c04,
+ 0x0c0d, 0x0c0d,
+ 0x0c11, 0x0c11,
+ 0x0c29, 0x0c29,
+ 0x0c34, 0x0c34,
+ 0x0c3a, 0x0c3c,
+ 0x0c45, 0x0c45,
+ 0x0c49, 0x0c49,
+ 0x0c4e, 0x0c54,
+ 0x0c57, 0x0c57,
+ 0x0c5a, 0x0c5f,
+ 0x0c64, 0x0c65,
+ 0x0c70, 0x0c77,
+ 0x0c80, 0x0c81,
+ 0x0c84, 0x0c84,
+ 0x0c8d, 0x0c8d,
+ 0x0c91, 0x0c91,
+ 0x0ca9, 0x0ca9,
+ 0x0cb4, 0x0cb4,
+ 0x0cba, 0x0cbb,
+ 0x0cc5, 0x0cc5,
+ 0x0cc9, 0x0cc9,
+ 0x0cce, 0x0cd4,
+ 0x0cd7, 0x0cdd,
+ 0x0cdf, 0x0cdf,
+ 0x0ce4, 0x0ce5,
+ 0x0cf0, 0x0cf0,
+ 0x0cf3, 0x0d01,
+ 0x0d04, 0x0d04,
+ 0x0d0d, 0x0d0d,
+ 0x0d11, 0x0d11,
+ 0x0d3b, 0x0d3c,
+ 0x0d45, 0x0d45,
+ 0x0d49, 0x0d49,
+ 0x0d4f, 0x0d56,
+ 0x0d58, 0x0d5f,
+ 0x0d64, 0x0d65,
+ 0x0d76, 0x0d78,
+ 0x0d80, 0x0d81,
+ 0x0d84, 0x0d84,
+ 0x0d97, 0x0d99,
+ 0x0db2, 0x0db2,
+ 0x0dbc, 0x0dbc,
+ 0x0dbe, 0x0dbf,
+ 0x0dc7, 0x0dc9,
+ 0x0dcb, 0x0dce,
+ 0x0dd5, 0x0dd5,
+ 0x0dd7, 0x0dd7,
+ 0x0de0, 0x0df1,
+ 0x0df5, 0x0e00,
+ 0x0e3b, 0x0e3e,
+ 0x0e5c, 0x0e80,
+ 0x0e83, 0x0e83,
+ 0x0e85, 0x0e86,
+ 0x0e89, 0x0e89,
+ 0x0e8b, 0x0e8c,
+ 0x0e8e, 0x0e93,
+ 0x0e98, 0x0e98,
+ 0x0ea0, 0x0ea0,
+ 0x0ea4, 0x0ea4,
+ 0x0ea6, 0x0ea6,
+ 0x0ea8, 0x0ea9,
+ 0x0eac, 0x0eac,
+ 0x0eba, 0x0eba,
+ 0x0ebe, 0x0ebf,
+ 0x0ec5, 0x0ec5,
+ 0x0ec7, 0x0ec7,
+ 0x0ece, 0x0ecf,
+ 0x0eda, 0x0edb,
+ 0x0ede, 0x0eff,
+ 0x0f48, 0x0f48,
+ 0x0f6d, 0x0f70,
+ 0x0f98, 0x0f98,
+ 0x0fbd, 0x0fbd,
+ 0x0fcd, 0x0fcd,
+ 0x0fdb, 0x0fff,
+ 0x10c6, 0x10cf,
+ 0x10fd, 0x10ff,
+ 0x1249, 0x1249,
+ 0x124e, 0x124f,
+ 0x1257, 0x1257,
+ 0x1259, 0x1259,
+ 0x125e, 0x125f,
+ 0x1289, 0x1289,
+ 0x128e, 0x128f,
+ 0x12b1, 0x12b1,
+ 0x12b6, 0x12b7,
+ 0x12bf, 0x12bf,
+ 0x12c1, 0x12c1,
+ 0x12c6, 0x12c7,
+ 0x12d7, 0x12d7,
+ 0x1311, 0x1311,
+ 0x1316, 0x1317,
+ 0x135b, 0x135c,
+ 0x137d, 0x137f,
+ 0x139a, 0x139f,
+ 0x13f5, 0x13ff,
+ 0x169d, 0x169f,
+ 0x16f1, 0x16ff,
+ 0x170d, 0x170d,
+ 0x1715, 0x171f,
+ 0x1737, 0x173f,
+ 0x1754, 0x175f,
+ 0x176d, 0x176d,
+ 0x1771, 0x1771,
+ 0x1774, 0x177f,
+ 0x17de, 0x17df,
+ 0x17ea, 0x17ef,
+ 0x17fa, 0x17ff,
+ 0x180f, 0x180f,
+ 0x181a, 0x181f,
+ 0x1878, 0x187f,
+ 0x18ab, 0x18af,
+ 0x18f6, 0x18ff,
+ 0x191d, 0x191f,
+ 0x192c, 0x192f,
+ 0x193c, 0x193f,
+ 0x1941, 0x1943,
+ 0x196e, 0x196f,
+ 0x1975, 0x197f,
+ 0x19ac, 0x19af,
+ 0x19ca, 0x19cf,
+ 0x19db, 0x19dd,
+ 0x1a1c, 0x1a1d,
+ 0x1a5f, 0x1a5f,
+ 0x1a7d, 0x1a7e,
+ 0x1a8a, 0x1a8f,
+ 0x1a9a, 0x1a9f,
+ 0x1aae, 0x1aff,
+ 0x1b4c, 0x1b4f,
+ 0x1b7d, 0x1b7f,
+ 0x1bab, 0x1bad,
+ 0x1bba, 0x1bbf,
+ 0x1bf4, 0x1bfb,
+ 0x1c38, 0x1c3a,
+ 0x1c4a, 0x1c4c,
+ 0x1c80, 0x1ccf,
+ 0x1cf3, 0x1cff,
+ 0x1de7, 0x1dfb,
+ 0x1f16, 0x1f17,
+ 0x1f1e, 0x1f1f,
+ 0x1f46, 0x1f47,
+ 0x1f4e, 0x1f4f,
+ 0x1f58, 0x1f58,
+ 0x1f5a, 0x1f5a,
+ 0x1f5c, 0x1f5c,
+ 0x1f5e, 0x1f5e,
+ 0x1f7e, 0x1f7f,
+ 0x1fb5, 0x1fb5,
+ 0x1fc5, 0x1fc5,
+ 0x1fd4, 0x1fd5,
+ 0x1fdc, 0x1fdc,
+ 0x1ff0, 0x1ff1,
+ 0x1ff5, 0x1ff5,
+ 0x1fff, 0x1fff,
+ 0x2065, 0x2069,
+ 0x2072, 0x2073,
+ 0x208f, 0x208f,
+ 0x209d, 0x209f,
+ 0x20ba, 0x20cf,
+ 0x20f1, 0x20ff,
+ 0x218a, 0x218f,
+ 0x23f4, 0x23ff,
+ 0x2427, 0x243f,
+ 0x244b, 0x245f,
+ 0x2700, 0x2700,
+ 0x27cb, 0x27cb,
+ 0x27cd, 0x27cd,
+ 0x2b4d, 0x2b4f,
+ 0x2b5a, 0x2bff,
+ 0x2c2f, 0x2c2f,
+ 0x2c5f, 0x2c5f,
+ 0x2cf2, 0x2cf8,
+ 0x2d26, 0x2d2f,
+ 0x2d66, 0x2d6e,
+ 0x2d71, 0x2d7e,
+ 0x2d97, 0x2d9f,
+ 0x2da7, 0x2da7,
+ 0x2daf, 0x2daf,
+ 0x2db7, 0x2db7,
+ 0x2dbf, 0x2dbf,
+ 0x2dc7, 0x2dc7,
+ 0x2dcf, 0x2dcf,
+ 0x2dd7, 0x2dd7,
+ 0x2ddf, 0x2ddf,
+ 0x2e32, 0x2e7f,
+ 0x2e9a, 0x2e9a,
+ 0x2ef4, 0x2eff,
+ 0x2fd6, 0x2fef,
+ 0x2ffc, 0x2fff,
+ 0x3040, 0x3040,
+ 0x3097, 0x3098,
+ 0x3100, 0x3104,
+ 0x312e, 0x3130,
+ 0x318f, 0x318f,
+ 0x31bb, 0x31bf,
+ 0x31e4, 0x31ef,
+ 0x321f, 0x321f,
+ 0x32ff, 0x32ff,
+ 0x4db6, 0x4dbf,
+ 0x9fcc, 0x9fff,
+ 0xa48d, 0xa48f,
+ 0xa4c7, 0xa4cf,
+ 0xa62c, 0xa63f,
+ 0xa674, 0xa67b,
+ 0xa698, 0xa69f,
+ 0xa6f8, 0xa6ff,
+ 0xa78f, 0xa78f,
+ 0xa792, 0xa79f,
+ 0xa7aa, 0xa7f9,
+ 0xa82c, 0xa82f,
+ 0xa83a, 0xa83f,
+ 0xa878, 0xa87f,
+ 0xa8c5, 0xa8cd,
+ 0xa8da, 0xa8df,
+ 0xa8fc, 0xa8ff,
+ 0xa954, 0xa95e,
+ 0xa97d, 0xa97f,
+ 0xa9ce, 0xa9ce,
+ 0xa9da, 0xa9dd,
+ 0xa9e0, 0xa9ff,
+ 0xaa37, 0xaa3f,
+ 0xaa4e, 0xaa4f,
+ 0xaa5a, 0xaa5b,
+ 0xaa7c, 0xaa7f,
+ 0xaac3, 0xaada,
+ 0xaae0, 0xab00,
+ 0xab07, 0xab08,
+ 0xab0f, 0xab10,
+ 0xab17, 0xab1f,
+ 0xab27, 0xab27,
+ 0xab2f, 0xabbf,
+ 0xabee, 0xabef,
+ 0xabfa, 0xabff,
+ 0xd7a4, 0xd7af,
+ 0xd7c7, 0xd7ca,
+ 0xd7fc, 0xd7ff,
+ 0xfa2e, 0xfa2f,
+ 0xfa6e, 0xfa6f,
+ 0xfada, 0xfaff,
+ 0xfb07, 0xfb12,
+ 0xfb18, 0xfb1c,
+ 0xfb37, 0xfb37,
+ 0xfb3d, 0xfb3d,
+ 0xfb3f, 0xfb3f,
+ 0xfb42, 0xfb42,
+ 0xfb45, 0xfb45,
+ 0xfbc2, 0xfbd2,
+ 0xfd40, 0xfd4f,
+ 0xfd90, 0xfd91,
+ 0xfdc8, 0xfdef,
+ 0xfdfe, 0xfdff,
+ 0xfe1a, 0xfe1f,
+ 0xfe27, 0xfe2f,
+ 0xfe53, 0xfe53,
+ 0xfe67, 0xfe67,
+ 0xfe6c, 0xfe6f,
+ 0xfe75, 0xfe75,
+ 0xfefd, 0xfefe,
+ 0xff00, 0xff00,
+ 0xffbf, 0xffc1,
+ 0xffc8, 0xffc9,
+ 0xffd0, 0xffd1,
+ 0xffd8, 0xffd9,
+ 0xffdd, 0xffdf,
+ 0xffe7, 0xffe7,
+ 0xffef, 0xfff8,
+ 0xfffe, 0xffff,
+ 0x1000c, 0x1000c,
+ 0x10027, 0x10027,
+ 0x1003b, 0x1003b,
+ 0x1003e, 0x1003e,
+ 0x1004e, 0x1004f,
+ 0x1005e, 0x1007f,
+ 0x100fb, 0x100ff,
+ 0x10103, 0x10106,
+ 0x10134, 0x10136,
+ 0x1018b, 0x1018f,
+ 0x1019c, 0x101cf,
+ 0x101fe, 0x1027f,
+ 0x1029d, 0x1029f,
+ 0x102d1, 0x102ff,
+ 0x1031f, 0x1031f,
+ 0x10324, 0x1032f,
+ 0x1034b, 0x1037f,
+ 0x1039e, 0x1039e,
+ 0x103c4, 0x103c7,
+ 0x103d6, 0x103ff,
+ 0x1049e, 0x1049f,
+ 0x104aa, 0x107ff,
+ 0x10806, 0x10807,
+ 0x10809, 0x10809,
+ 0x10836, 0x10836,
+ 0x10839, 0x1083b,
+ 0x1083d, 0x1083e,
+ 0x10856, 0x10856,
+ 0x10860, 0x108ff,
+ 0x1091c, 0x1091e,
+ 0x1093a, 0x1093e,
+ 0x10940, 0x109ff,
+ 0x10a04, 0x10a04,
+ 0x10a07, 0x10a0b,
+ 0x10a14, 0x10a14,
+ 0x10a18, 0x10a18,
+ 0x10a34, 0x10a37,
+ 0x10a3b, 0x10a3e,
+ 0x10a48, 0x10a4f,
+ 0x10a59, 0x10a5f,
+ 0x10a80, 0x10aff,
+ 0x10b36, 0x10b38,
+ 0x10b56, 0x10b57,
+ 0x10b73, 0x10b77,
+ 0x10b80, 0x10bff,
+ 0x10c49, 0x10e5f,
+ 0x10e7f, 0x10fff,
+ 0x1104e, 0x11051,
+ 0x11070, 0x1107f,
+ 0x110c2, 0x11fff,
+ 0x1236f, 0x123ff,
+ 0x12463, 0x1246f,
+ 0x12474, 0x12fff,
+ 0x1342f, 0x167ff,
+ 0x16a39, 0x1afff,
+ 0x1b002, 0x1cfff,
+ 0x1d0f6, 0x1d0ff,
+ 0x1d127, 0x1d128,
+ 0x1d1de, 0x1d1ff,
+ 0x1d246, 0x1d2ff,
+ 0x1d357, 0x1d35f,
+ 0x1d372, 0x1d3ff,
+ 0x1d455, 0x1d455,
+ 0x1d49d, 0x1d49d,
+ 0x1d4a0, 0x1d4a1,
+ 0x1d4a3, 0x1d4a4,
+ 0x1d4a7, 0x1d4a8,
+ 0x1d4ad, 0x1d4ad,
+ 0x1d4ba, 0x1d4ba,
+ 0x1d4bc, 0x1d4bc,
+ 0x1d4c4, 0x1d4c4,
+ 0x1d506, 0x1d506,
+ 0x1d50b, 0x1d50c,
+ 0x1d515, 0x1d515,
+ 0x1d51d, 0x1d51d,
+ 0x1d53a, 0x1d53a,
+ 0x1d53f, 0x1d53f,
+ 0x1d545, 0x1d545,
+ 0x1d547, 0x1d549,
+ 0x1d551, 0x1d551,
+ 0x1d6a6, 0x1d6a7,
+ 0x1d7cc, 0x1d7cd,
+ 0x1d800, 0x1efff,
+ 0x1f02c, 0x1f02f,
+ 0x1f094, 0x1f09f,
+ 0x1f0af, 0x1f0b0,
+ 0x1f0bf, 0x1f0c0,
+ 0x1f0d0, 0x1f0d0,
+ 0x1f0e0, 0x1f0ff,
+ 0x1f10b, 0x1f10f,
+ 0x1f12f, 0x1f12f,
+ 0x1f16a, 0x1f16f,
+ 0x1f19b, 0x1f1e5,
+ 0x1f203, 0x1f20f,
+ 0x1f23b, 0x1f23f,
+ 0x1f249, 0x1f24f,
+ 0x1f252, 0x1f2ff,
+ 0x1f321, 0x1f32f,
+ 0x1f336, 0x1f336,
+ 0x1f37d, 0x1f37f,
+ 0x1f394, 0x1f39f,
+ 0x1f3c5, 0x1f3c5,
+ 0x1f3cb, 0x1f3df,
+ 0x1f3f1, 0x1f3ff,
+ 0x1f43f, 0x1f43f,
+ 0x1f441, 0x1f441,
+ 0x1f4f8, 0x1f4f8,
+ 0x1f4fd, 0x1f4ff,
+ 0x1f53e, 0x1f54f,
+ 0x1f568, 0x1f5fa,
+ 0x1f600, 0x1f600,
+ 0x1f611, 0x1f611,
+ 0x1f615, 0x1f615,
+ 0x1f617, 0x1f617,
+ 0x1f619, 0x1f619,
+ 0x1f61b, 0x1f61b,
+ 0x1f61f, 0x1f61f,
+ 0x1f626, 0x1f627,
+ 0x1f62c, 0x1f62c,
+ 0x1f62e, 0x1f62f,
+ 0x1f634, 0x1f634,
+ 0x1f641, 0x1f644,
+ 0x1f650, 0x1f67f,
+ 0x1f6c6, 0x1f6ff,
+ 0x1f774, 0x1ffff,
+ 0x2a6d7, 0x2a6ff,
+ 0x2b735, 0x2b73f,
+ 0x2b81e, 0x2f7ff,
+ 0x2fa1e, 0xe0000,
+ 0xe0002, 0xe001f,
+ 0xe0080, 0xe00ff,
+ 0xe01f0, 0xeffff,
+ 0xffffe, 0xfffff,
+ 0x10fffe, 0x10ffff,
+}; /* CR_Cn */
+
+/* 'Co': General Category */
+static const OnigCodePoint CR_Co[] = {
+ 3,
+ 0xe000, 0xf8ff,
+ 0xf0000, 0xffffd,
+ 0x100000, 0x10fffd,
+}; /* CR_Co */
+
+/* 'Cs': General Category */
+static const OnigCodePoint CR_Cs[] = {
+ 1,
+ 0xd800, 0xdfff,
+}; /* CR_Cs */
+
+/* 'L': Major Category */
+static const OnigCodePoint CR_L[] = {
+ 435,
+ 0x0041, 0x005a,
+ 0x0061, 0x007a,
+ 0x00aa, 0x00aa,
+ 0x00b5, 0x00b5,
+ 0x00ba, 0x00ba,
+ 0x00c0, 0x00d6,
+ 0x00d8, 0x00f6,
+ 0x00f8, 0x02c1,
+ 0x02c6, 0x02d1,
+ 0x02e0, 0x02e4,
+ 0x02ec, 0x02ec,
+ 0x02ee, 0x02ee,
+ 0x0370, 0x0374,
+ 0x0376, 0x0377,
+ 0x037a, 0x037d,
+ 0x0386, 0x0386,
+ 0x0388, 0x038a,
+ 0x038c, 0x038c,
+ 0x038e, 0x03a1,
+ 0x03a3, 0x03f5,
+ 0x03f7, 0x0481,
+ 0x048a, 0x0527,
+ 0x0531, 0x0556,
+ 0x0559, 0x0559,
+ 0x0561, 0x0587,
+ 0x05d0, 0x05ea,
+ 0x05f0, 0x05f2,
+ 0x0620, 0x064a,
+ 0x066e, 0x066f,
+ 0x0671, 0x06d3,
+ 0x06d5, 0x06d5,
+ 0x06e5, 0x06e6,
+ 0x06ee, 0x06ef,
+ 0x06fa, 0x06fc,
+ 0x06ff, 0x06ff,
+ 0x0710, 0x0710,
+ 0x0712, 0x072f,
+ 0x074d, 0x07a5,
+ 0x07b1, 0x07b1,
+ 0x07ca, 0x07ea,
+ 0x07f4, 0x07f5,
+ 0x07fa, 0x07fa,
+ 0x0800, 0x0815,
+ 0x081a, 0x081a,
+ 0x0824, 0x0824,
+ 0x0828, 0x0828,
+ 0x0840, 0x0858,
+ 0x0904, 0x0939,
+ 0x093d, 0x093d,
+ 0x0950, 0x0950,
+ 0x0958, 0x0961,
+ 0x0971, 0x0977,
+ 0x0979, 0x097f,
+ 0x0985, 0x098c,
+ 0x098f, 0x0990,
+ 0x0993, 0x09a8,
+ 0x09aa, 0x09b0,
+ 0x09b2, 0x09b2,
+ 0x09b6, 0x09b9,
+ 0x09bd, 0x09bd,
+ 0x09ce, 0x09ce,
+ 0x09dc, 0x09dd,
+ 0x09df, 0x09e1,
+ 0x09f0, 0x09f1,
+ 0x0a05, 0x0a0a,
+ 0x0a0f, 0x0a10,
+ 0x0a13, 0x0a28,
+ 0x0a2a, 0x0a30,
+ 0x0a32, 0x0a33,
+ 0x0a35, 0x0a36,
+ 0x0a38, 0x0a39,
+ 0x0a59, 0x0a5c,
+ 0x0a5e, 0x0a5e,
+ 0x0a72, 0x0a74,
+ 0x0a85, 0x0a8d,
+ 0x0a8f, 0x0a91,
+ 0x0a93, 0x0aa8,
+ 0x0aaa, 0x0ab0,
+ 0x0ab2, 0x0ab3,
+ 0x0ab5, 0x0ab9,
+ 0x0abd, 0x0abd,
+ 0x0ad0, 0x0ad0,
+ 0x0ae0, 0x0ae1,
+ 0x0b05, 0x0b0c,
+ 0x0b0f, 0x0b10,
+ 0x0b13, 0x0b28,
+ 0x0b2a, 0x0b30,
+ 0x0b32, 0x0b33,
+ 0x0b35, 0x0b39,
+ 0x0b3d, 0x0b3d,
+ 0x0b5c, 0x0b5d,
+ 0x0b5f, 0x0b61,
+ 0x0b71, 0x0b71,
+ 0x0b83, 0x0b83,
+ 0x0b85, 0x0b8a,
+ 0x0b8e, 0x0b90,
+ 0x0b92, 0x0b95,
+ 0x0b99, 0x0b9a,
+ 0x0b9c, 0x0b9c,
+ 0x0b9e, 0x0b9f,
+ 0x0ba3, 0x0ba4,
+ 0x0ba8, 0x0baa,
+ 0x0bae, 0x0bb9,
+ 0x0bd0, 0x0bd0,
+ 0x0c05, 0x0c0c,
+ 0x0c0e, 0x0c10,
+ 0x0c12, 0x0c28,
+ 0x0c2a, 0x0c33,
+ 0x0c35, 0x0c39,
+ 0x0c3d, 0x0c3d,
+ 0x0c58, 0x0c59,
+ 0x0c60, 0x0c61,
+ 0x0c85, 0x0c8c,
+ 0x0c8e, 0x0c90,
+ 0x0c92, 0x0ca8,
+ 0x0caa, 0x0cb3,
+ 0x0cb5, 0x0cb9,
+ 0x0cbd, 0x0cbd,
+ 0x0cde, 0x0cde,
+ 0x0ce0, 0x0ce1,
+ 0x0cf1, 0x0cf2,
+ 0x0d05, 0x0d0c,
+ 0x0d0e, 0x0d10,
+ 0x0d12, 0x0d3a,
+ 0x0d3d, 0x0d3d,
+ 0x0d4e, 0x0d4e,
+ 0x0d60, 0x0d61,
+ 0x0d7a, 0x0d7f,
+ 0x0d85, 0x0d96,
+ 0x0d9a, 0x0db1,
+ 0x0db3, 0x0dbb,
+ 0x0dbd, 0x0dbd,
+ 0x0dc0, 0x0dc6,
+ 0x0e01, 0x0e30,
+ 0x0e32, 0x0e33,
+ 0x0e40, 0x0e46,
+ 0x0e81, 0x0e82,
+ 0x0e84, 0x0e84,
+ 0x0e87, 0x0e88,
+ 0x0e8a, 0x0e8a,
+ 0x0e8d, 0x0e8d,
+ 0x0e94, 0x0e97,
+ 0x0e99, 0x0e9f,
+ 0x0ea1, 0x0ea3,
+ 0x0ea5, 0x0ea5,
+ 0x0ea7, 0x0ea7,
+ 0x0eaa, 0x0eab,
+ 0x0ead, 0x0eb0,
+ 0x0eb2, 0x0eb3,
+ 0x0ebd, 0x0ebd,
+ 0x0ec0, 0x0ec4,
+ 0x0ec6, 0x0ec6,
+ 0x0edc, 0x0edd,
+ 0x0f00, 0x0f00,
+ 0x0f40, 0x0f47,
+ 0x0f49, 0x0f6c,
+ 0x0f88, 0x0f8c,
+ 0x1000, 0x102a,
+ 0x103f, 0x103f,
+ 0x1050, 0x1055,
+ 0x105a, 0x105d,
+ 0x1061, 0x1061,
+ 0x1065, 0x1066,
+ 0x106e, 0x1070,
+ 0x1075, 0x1081,
+ 0x108e, 0x108e,
+ 0x10a0, 0x10c5,
+ 0x10d0, 0x10fa,
+ 0x10fc, 0x10fc,
+ 0x1100, 0x1248,
+ 0x124a, 0x124d,
+ 0x1250, 0x1256,
+ 0x1258, 0x1258,
+ 0x125a, 0x125d,
+ 0x1260, 0x1288,
+ 0x128a, 0x128d,
+ 0x1290, 0x12b0,
+ 0x12b2, 0x12b5,
+ 0x12b8, 0x12be,
+ 0x12c0, 0x12c0,
+ 0x12c2, 0x12c5,
+ 0x12c8, 0x12d6,
+ 0x12d8, 0x1310,
+ 0x1312, 0x1315,
+ 0x1318, 0x135a,
+ 0x1380, 0x138f,
+ 0x13a0, 0x13f4,
+ 0x1401, 0x166c,
+ 0x166f, 0x167f,
+ 0x1681, 0x169a,
+ 0x16a0, 0x16ea,
+ 0x1700, 0x170c,
+ 0x170e, 0x1711,
+ 0x1720, 0x1731,
+ 0x1740, 0x1751,
+ 0x1760, 0x176c,
+ 0x176e, 0x1770,
+ 0x1780, 0x17b3,
+ 0x17d7, 0x17d7,
+ 0x17dc, 0x17dc,
+ 0x1820, 0x1877,
+ 0x1880, 0x18a8,
+ 0x18aa, 0x18aa,
+ 0x18b0, 0x18f5,
+ 0x1900, 0x191c,
+ 0x1950, 0x196d,
+ 0x1970, 0x1974,
+ 0x1980, 0x19ab,
+ 0x19c1, 0x19c7,
+ 0x1a00, 0x1a16,
+ 0x1a20, 0x1a54,
+ 0x1aa7, 0x1aa7,
+ 0x1b05, 0x1b33,
+ 0x1b45, 0x1b4b,
+ 0x1b83, 0x1ba0,
+ 0x1bae, 0x1baf,
+ 0x1bc0, 0x1be5,
+ 0x1c00, 0x1c23,
+ 0x1c4d, 0x1c4f,
+ 0x1c5a, 0x1c7d,
+ 0x1ce9, 0x1cec,
+ 0x1cee, 0x1cf1,
+ 0x1d00, 0x1dbf,
+ 0x1e00, 0x1f15,
+ 0x1f18, 0x1f1d,
+ 0x1f20, 0x1f45,
+ 0x1f48, 0x1f4d,
+ 0x1f50, 0x1f57,
+ 0x1f59, 0x1f59,
+ 0x1f5b, 0x1f5b,
+ 0x1f5d, 0x1f5d,
+ 0x1f5f, 0x1f7d,
+ 0x1f80, 0x1fb4,
+ 0x1fb6, 0x1fbc,
+ 0x1fbe, 0x1fbe,
+ 0x1fc2, 0x1fc4,
+ 0x1fc6, 0x1fcc,
+ 0x1fd0, 0x1fd3,
+ 0x1fd6, 0x1fdb,
+ 0x1fe0, 0x1fec,
+ 0x1ff2, 0x1ff4,
+ 0x1ff6, 0x1ffc,
+ 0x2071, 0x2071,
+ 0x207f, 0x207f,
+ 0x2090, 0x209c,
+ 0x2102, 0x2102,
+ 0x2107, 0x2107,
+ 0x210a, 0x2113,
+ 0x2115, 0x2115,
+ 0x2119, 0x211d,
+ 0x2124, 0x2124,
+ 0x2126, 0x2126,
+ 0x2128, 0x2128,
+ 0x212a, 0x212d,
+ 0x212f, 0x2139,
+ 0x213c, 0x213f,
+ 0x2145, 0x2149,
+ 0x214e, 0x214e,
+ 0x2183, 0x2184,
+ 0x2c00, 0x2c2e,
+ 0x2c30, 0x2c5e,
+ 0x2c60, 0x2ce4,
+ 0x2ceb, 0x2cee,
+ 0x2d00, 0x2d25,
+ 0x2d30, 0x2d65,
+ 0x2d6f, 0x2d6f,
+ 0x2d80, 0x2d96,
+ 0x2da0, 0x2da6,
+ 0x2da8, 0x2dae,
+ 0x2db0, 0x2db6,
+ 0x2db8, 0x2dbe,
+ 0x2dc0, 0x2dc6,
+ 0x2dc8, 0x2dce,
+ 0x2dd0, 0x2dd6,
+ 0x2dd8, 0x2dde,
+ 0x2e2f, 0x2e2f,
+ 0x3005, 0x3006,
+ 0x3031, 0x3035,
+ 0x303b, 0x303c,
+ 0x3041, 0x3096,
+ 0x309d, 0x309f,
+ 0x30a1, 0x30fa,
+ 0x30fc, 0x30ff,
+ 0x3105, 0x312d,
+ 0x3131, 0x318e,
+ 0x31a0, 0x31ba,
+ 0x31f0, 0x31ff,
+ 0x3400, 0x4db5,
+ 0x4e00, 0x9fcb,
+ 0xa000, 0xa48c,
+ 0xa4d0, 0xa4fd,
+ 0xa500, 0xa60c,
+ 0xa610, 0xa61f,
+ 0xa62a, 0xa62b,
+ 0xa640, 0xa66e,
+ 0xa67f, 0xa697,
+ 0xa6a0, 0xa6e5,
+ 0xa717, 0xa71f,
+ 0xa722, 0xa788,
+ 0xa78b, 0xa78e,
+ 0xa790, 0xa791,
+ 0xa7a0, 0xa7a9,
+ 0xa7fa, 0xa801,
+ 0xa803, 0xa805,
+ 0xa807, 0xa80a,
+ 0xa80c, 0xa822,
+ 0xa840, 0xa873,
+ 0xa882, 0xa8b3,
+ 0xa8f2, 0xa8f7,
+ 0xa8fb, 0xa8fb,
+ 0xa90a, 0xa925,
+ 0xa930, 0xa946,
+ 0xa960, 0xa97c,
+ 0xa984, 0xa9b2,
+ 0xa9cf, 0xa9cf,
+ 0xaa00, 0xaa28,
+ 0xaa40, 0xaa42,
+ 0xaa44, 0xaa4b,
+ 0xaa60, 0xaa76,
+ 0xaa7a, 0xaa7a,
+ 0xaa80, 0xaaaf,
+ 0xaab1, 0xaab1,
+ 0xaab5, 0xaab6,
+ 0xaab9, 0xaabd,
+ 0xaac0, 0xaac0,
+ 0xaac2, 0xaac2,
+ 0xaadb, 0xaadd,
+ 0xab01, 0xab06,
+ 0xab09, 0xab0e,
+ 0xab11, 0xab16,
+ 0xab20, 0xab26,
+ 0xab28, 0xab2e,
+ 0xabc0, 0xabe2,
+ 0xac00, 0xd7a3,
+ 0xd7b0, 0xd7c6,
+ 0xd7cb, 0xd7fb,
+ 0xf900, 0xfa2d,
+ 0xfa30, 0xfa6d,
+ 0xfa70, 0xfad9,
+ 0xfb00, 0xfb06,
+ 0xfb13, 0xfb17,
+ 0xfb1d, 0xfb1d,
+ 0xfb1f, 0xfb28,
+ 0xfb2a, 0xfb36,
+ 0xfb38, 0xfb3c,
+ 0xfb3e, 0xfb3e,
+ 0xfb40, 0xfb41,
+ 0xfb43, 0xfb44,
+ 0xfb46, 0xfbb1,
+ 0xfbd3, 0xfd3d,
+ 0xfd50, 0xfd8f,
+ 0xfd92, 0xfdc7,
+ 0xfdf0, 0xfdfb,
+ 0xfe70, 0xfe74,
+ 0xfe76, 0xfefc,
+ 0xff21, 0xff3a,
+ 0xff41, 0xff5a,
+ 0xff66, 0xffbe,
+ 0xffc2, 0xffc7,
+ 0xffca, 0xffcf,
+ 0xffd2, 0xffd7,
+ 0xffda, 0xffdc,
+ 0x10000, 0x1000b,
+ 0x1000d, 0x10026,
+ 0x10028, 0x1003a,
+ 0x1003c, 0x1003d,
+ 0x1003f, 0x1004d,
+ 0x10050, 0x1005d,
+ 0x10080, 0x100fa,
+ 0x10280, 0x1029c,
+ 0x102a0, 0x102d0,
+ 0x10300, 0x1031e,
+ 0x10330, 0x10340,
+ 0x10342, 0x10349,
+ 0x10380, 0x1039d,
+ 0x103a0, 0x103c3,
+ 0x103c8, 0x103cf,
+ 0x10400, 0x1049d,
+ 0x10800, 0x10805,
+ 0x10808, 0x10808,
+ 0x1080a, 0x10835,
+ 0x10837, 0x10838,
+ 0x1083c, 0x1083c,
+ 0x1083f, 0x10855,
+ 0x10900, 0x10915,
+ 0x10920, 0x10939,
+ 0x10a00, 0x10a00,
+ 0x10a10, 0x10a13,
+ 0x10a15, 0x10a17,
+ 0x10a19, 0x10a33,
+ 0x10a60, 0x10a7c,
+ 0x10b00, 0x10b35,
+ 0x10b40, 0x10b55,
+ 0x10b60, 0x10b72,
+ 0x10c00, 0x10c48,
+ 0x11003, 0x11037,
+ 0x11083, 0x110af,
+ 0x12000, 0x1236e,
+ 0x13000, 0x1342e,
+ 0x16800, 0x16a38,
+ 0x1b000, 0x1b001,
+ 0x1d400, 0x1d454,
+ 0x1d456, 0x1d49c,
+ 0x1d49e, 0x1d49f,
+ 0x1d4a2, 0x1d4a2,
+ 0x1d4a5, 0x1d4a6,
+ 0x1d4a9, 0x1d4ac,
+ 0x1d4ae, 0x1d4b9,
+ 0x1d4bb, 0x1d4bb,
+ 0x1d4bd, 0x1d4c3,
+ 0x1d4c5, 0x1d505,
+ 0x1d507, 0x1d50a,
+ 0x1d50d, 0x1d514,
+ 0x1d516, 0x1d51c,
+ 0x1d51e, 0x1d539,
+ 0x1d53b, 0x1d53e,
+ 0x1d540, 0x1d544,
+ 0x1d546, 0x1d546,
+ 0x1d54a, 0x1d550,
+ 0x1d552, 0x1d6a5,
+ 0x1d6a8, 0x1d6c0,
+ 0x1d6c2, 0x1d6da,
+ 0x1d6dc, 0x1d6fa,
+ 0x1d6fc, 0x1d714,
+ 0x1d716, 0x1d734,
+ 0x1d736, 0x1d74e,
+ 0x1d750, 0x1d76e,
+ 0x1d770, 0x1d788,
+ 0x1d78a, 0x1d7a8,
+ 0x1d7aa, 0x1d7c2,
+ 0x1d7c4, 0x1d7cb,
+ 0x20000, 0x2a6d6,
+ 0x2a700, 0x2b734,
+ 0x2b740, 0x2b81d,
+ 0x2f800, 0x2fa1d,
+}; /* CR_L */
+
+/* 'Ll': General Category */
+static const OnigCodePoint CR_Ll[] = {
+ 609,
+ 0x0061, 0x007a,
+ 0x00aa, 0x00aa,
+ 0x00b5, 0x00b5,
+ 0x00ba, 0x00ba,
+ 0x00df, 0x00f6,
+ 0x00f8, 0x00ff,
+ 0x0101, 0x0101,
+ 0x0103, 0x0103,
+ 0x0105, 0x0105,
+ 0x0107, 0x0107,
+ 0x0109, 0x0109,
+ 0x010b, 0x010b,
+ 0x010d, 0x010d,
+ 0x010f, 0x010f,
+ 0x0111, 0x0111,
+ 0x0113, 0x0113,
+ 0x0115, 0x0115,
+ 0x0117, 0x0117,
+ 0x0119, 0x0119,
+ 0x011b, 0x011b,
+ 0x011d, 0x011d,
+ 0x011f, 0x011f,
+ 0x0121, 0x0121,
+ 0x0123, 0x0123,
+ 0x0125, 0x0125,
+ 0x0127, 0x0127,
+ 0x0129, 0x0129,
+ 0x012b, 0x012b,
+ 0x012d, 0x012d,
+ 0x012f, 0x012f,
+ 0x0131, 0x0131,
+ 0x0133, 0x0133,
+ 0x0135, 0x0135,
+ 0x0137, 0x0138,
+ 0x013a, 0x013a,
+ 0x013c, 0x013c,
+ 0x013e, 0x013e,
+ 0x0140, 0x0140,
+ 0x0142, 0x0142,
+ 0x0144, 0x0144,
+ 0x0146, 0x0146,
+ 0x0148, 0x0149,
+ 0x014b, 0x014b,
+ 0x014d, 0x014d,
+ 0x014f, 0x014f,
+ 0x0151, 0x0151,
+ 0x0153, 0x0153,
+ 0x0155, 0x0155,
+ 0x0157, 0x0157,
+ 0x0159, 0x0159,
+ 0x015b, 0x015b,
+ 0x015d, 0x015d,
+ 0x015f, 0x015f,
+ 0x0161, 0x0161,
+ 0x0163, 0x0163,
+ 0x0165, 0x0165,
+ 0x0167, 0x0167,
+ 0x0169, 0x0169,
+ 0x016b, 0x016b,
+ 0x016d, 0x016d,
+ 0x016f, 0x016f,
+ 0x0171, 0x0171,
+ 0x0173, 0x0173,
+ 0x0175, 0x0175,
+ 0x0177, 0x0177,
+ 0x017a, 0x017a,
+ 0x017c, 0x017c,
+ 0x017e, 0x0180,
+ 0x0183, 0x0183,
+ 0x0185, 0x0185,
+ 0x0188, 0x0188,
+ 0x018c, 0x018d,
+ 0x0192, 0x0192,
+ 0x0195, 0x0195,
+ 0x0199, 0x019b,
+ 0x019e, 0x019e,
+ 0x01a1, 0x01a1,
+ 0x01a3, 0x01a3,
+ 0x01a5, 0x01a5,
+ 0x01a8, 0x01a8,
+ 0x01aa, 0x01ab,
+ 0x01ad, 0x01ad,
+ 0x01b0, 0x01b0,
+ 0x01b4, 0x01b4,
+ 0x01b6, 0x01b6,
+ 0x01b9, 0x01ba,
+ 0x01bd, 0x01bf,
+ 0x01c6, 0x01c6,
+ 0x01c9, 0x01c9,
+ 0x01cc, 0x01cc,
+ 0x01ce, 0x01ce,
+ 0x01d0, 0x01d0,
+ 0x01d2, 0x01d2,
+ 0x01d4, 0x01d4,
+ 0x01d6, 0x01d6,
+ 0x01d8, 0x01d8,
+ 0x01da, 0x01da,
+ 0x01dc, 0x01dd,
+ 0x01df, 0x01df,
+ 0x01e1, 0x01e1,
+ 0x01e3, 0x01e3,
+ 0x01e5, 0x01e5,
+ 0x01e7, 0x01e7,
+ 0x01e9, 0x01e9,
+ 0x01eb, 0x01eb,
+ 0x01ed, 0x01ed,
+ 0x01ef, 0x01f0,
+ 0x01f3, 0x01f3,
+ 0x01f5, 0x01f5,
+ 0x01f9, 0x01f9,
+ 0x01fb, 0x01fb,
+ 0x01fd, 0x01fd,
+ 0x01ff, 0x01ff,
+ 0x0201, 0x0201,
+ 0x0203, 0x0203,
+ 0x0205, 0x0205,
+ 0x0207, 0x0207,
+ 0x0209, 0x0209,
+ 0x020b, 0x020b,
+ 0x020d, 0x020d,
+ 0x020f, 0x020f,
+ 0x0211, 0x0211,
+ 0x0213, 0x0213,
+ 0x0215, 0x0215,
+ 0x0217, 0x0217,
+ 0x0219, 0x0219,
+ 0x021b, 0x021b,
+ 0x021d, 0x021d,
+ 0x021f, 0x021f,
+ 0x0221, 0x0221,
+ 0x0223, 0x0223,
+ 0x0225, 0x0225,
+ 0x0227, 0x0227,
+ 0x0229, 0x0229,
+ 0x022b, 0x022b,
+ 0x022d, 0x022d,
+ 0x022f, 0x022f,
+ 0x0231, 0x0231,
+ 0x0233, 0x0239,
+ 0x023c, 0x023c,
+ 0x023f, 0x0240,
+ 0x0242, 0x0242,
+ 0x0247, 0x0247,
+ 0x0249, 0x0249,
+ 0x024b, 0x024b,
+ 0x024d, 0x024d,
+ 0x024f, 0x0293,
+ 0x0295, 0x02af,
+ 0x0371, 0x0371,
+ 0x0373, 0x0373,
+ 0x0377, 0x0377,
+ 0x037b, 0x037d,
+ 0x0390, 0x0390,
+ 0x03ac, 0x03ce,
+ 0x03d0, 0x03d1,
+ 0x03d5, 0x03d7,
+ 0x03d9, 0x03d9,
+ 0x03db, 0x03db,
+ 0x03dd, 0x03dd,
+ 0x03df, 0x03df,
+ 0x03e1, 0x03e1,
+ 0x03e3, 0x03e3,
+ 0x03e5, 0x03e5,
+ 0x03e7, 0x03e7,
+ 0x03e9, 0x03e9,
+ 0x03eb, 0x03eb,
+ 0x03ed, 0x03ed,
+ 0x03ef, 0x03f3,
+ 0x03f5, 0x03f5,
+ 0x03f8, 0x03f8,
+ 0x03fb, 0x03fc,
+ 0x0430, 0x045f,
+ 0x0461, 0x0461,
+ 0x0463, 0x0463,
+ 0x0465, 0x0465,
+ 0x0467, 0x0467,
+ 0x0469, 0x0469,
+ 0x046b, 0x046b,
+ 0x046d, 0x046d,
+ 0x046f, 0x046f,
+ 0x0471, 0x0471,
+ 0x0473, 0x0473,
+ 0x0475, 0x0475,
+ 0x0477, 0x0477,
+ 0x0479, 0x0479,
+ 0x047b, 0x047b,
+ 0x047d, 0x047d,
+ 0x047f, 0x047f,
+ 0x0481, 0x0481,
+ 0x048b, 0x048b,
+ 0x048d, 0x048d,
+ 0x048f, 0x048f,
+ 0x0491, 0x0491,
+ 0x0493, 0x0493,
+ 0x0495, 0x0495,
+ 0x0497, 0x0497,
+ 0x0499, 0x0499,
+ 0x049b, 0x049b,
+ 0x049d, 0x049d,
+ 0x049f, 0x049f,
+ 0x04a1, 0x04a1,
+ 0x04a3, 0x04a3,
+ 0x04a5, 0x04a5,
+ 0x04a7, 0x04a7,
+ 0x04a9, 0x04a9,
+ 0x04ab, 0x04ab,
+ 0x04ad, 0x04ad,
+ 0x04af, 0x04af,
+ 0x04b1, 0x04b1,
+ 0x04b3, 0x04b3,
+ 0x04b5, 0x04b5,
+ 0x04b7, 0x04b7,
+ 0x04b9, 0x04b9,
+ 0x04bb, 0x04bb,
+ 0x04bd, 0x04bd,
+ 0x04bf, 0x04bf,
+ 0x04c2, 0x04c2,
+ 0x04c4, 0x04c4,
+ 0x04c6, 0x04c6,
+ 0x04c8, 0x04c8,
+ 0x04ca, 0x04ca,
+ 0x04cc, 0x04cc,
+ 0x04ce, 0x04cf,
+ 0x04d1, 0x04d1,
+ 0x04d3, 0x04d3,
+ 0x04d5, 0x04d5,
+ 0x04d7, 0x04d7,
+ 0x04d9, 0x04d9,
+ 0x04db, 0x04db,
+ 0x04dd, 0x04dd,
+ 0x04df, 0x04df,
+ 0x04e1, 0x04e1,
+ 0x04e3, 0x04e3,
+ 0x04e5, 0x04e5,
+ 0x04e7, 0x04e7,
+ 0x04e9, 0x04e9,
+ 0x04eb, 0x04eb,
+ 0x04ed, 0x04ed,
+ 0x04ef, 0x04ef,
+ 0x04f1, 0x04f1,
+ 0x04f3, 0x04f3,
+ 0x04f5, 0x04f5,
+ 0x04f7, 0x04f7,
+ 0x04f9, 0x04f9,
+ 0x04fb, 0x04fb,
+ 0x04fd, 0x04fd,
+ 0x04ff, 0x04ff,
+ 0x0501, 0x0501,
+ 0x0503, 0x0503,
+ 0x0505, 0x0505,
+ 0x0507, 0x0507,
+ 0x0509, 0x0509,
+ 0x050b, 0x050b,
+ 0x050d, 0x050d,
+ 0x050f, 0x050f,
+ 0x0511, 0x0511,
+ 0x0513, 0x0513,
+ 0x0515, 0x0515,
+ 0x0517, 0x0517,
+ 0x0519, 0x0519,
+ 0x051b, 0x051b,
+ 0x051d, 0x051d,
+ 0x051f, 0x051f,
+ 0x0521, 0x0521,
+ 0x0523, 0x0523,
+ 0x0525, 0x0525,
+ 0x0527, 0x0527,
+ 0x0561, 0x0587,
+ 0x1d00, 0x1d2b,
+ 0x1d62, 0x1d77,
+ 0x1d79, 0x1d9a,
+ 0x1e01, 0x1e01,
+ 0x1e03, 0x1e03,
+ 0x1e05, 0x1e05,
+ 0x1e07, 0x1e07,
+ 0x1e09, 0x1e09,
+ 0x1e0b, 0x1e0b,
+ 0x1e0d, 0x1e0d,
+ 0x1e0f, 0x1e0f,
+ 0x1e11, 0x1e11,
+ 0x1e13, 0x1e13,
+ 0x1e15, 0x1e15,
+ 0x1e17, 0x1e17,
+ 0x1e19, 0x1e19,
+ 0x1e1b, 0x1e1b,
+ 0x1e1d, 0x1e1d,
+ 0x1e1f, 0x1e1f,
+ 0x1e21, 0x1e21,
+ 0x1e23, 0x1e23,
+ 0x1e25, 0x1e25,
+ 0x1e27, 0x1e27,
+ 0x1e29, 0x1e29,
+ 0x1e2b, 0x1e2b,
+ 0x1e2d, 0x1e2d,
+ 0x1e2f, 0x1e2f,
+ 0x1e31, 0x1e31,
+ 0x1e33, 0x1e33,
+ 0x1e35, 0x1e35,
+ 0x1e37, 0x1e37,
+ 0x1e39, 0x1e39,
+ 0x1e3b, 0x1e3b,
+ 0x1e3d, 0x1e3d,
+ 0x1e3f, 0x1e3f,
+ 0x1e41, 0x1e41,
+ 0x1e43, 0x1e43,
+ 0x1e45, 0x1e45,
+ 0x1e47, 0x1e47,
+ 0x1e49, 0x1e49,
+ 0x1e4b, 0x1e4b,
+ 0x1e4d, 0x1e4d,
+ 0x1e4f, 0x1e4f,
+ 0x1e51, 0x1e51,
+ 0x1e53, 0x1e53,
+ 0x1e55, 0x1e55,
+ 0x1e57, 0x1e57,
+ 0x1e59, 0x1e59,
+ 0x1e5b, 0x1e5b,
+ 0x1e5d, 0x1e5d,
+ 0x1e5f, 0x1e5f,
+ 0x1e61, 0x1e61,
+ 0x1e63, 0x1e63,
+ 0x1e65, 0x1e65,
+ 0x1e67, 0x1e67,
+ 0x1e69, 0x1e69,
+ 0x1e6b, 0x1e6b,
+ 0x1e6d, 0x1e6d,
+ 0x1e6f, 0x1e6f,
+ 0x1e71, 0x1e71,
+ 0x1e73, 0x1e73,
+ 0x1e75, 0x1e75,
+ 0x1e77, 0x1e77,
+ 0x1e79, 0x1e79,
+ 0x1e7b, 0x1e7b,
+ 0x1e7d, 0x1e7d,
+ 0x1e7f, 0x1e7f,
+ 0x1e81, 0x1e81,
+ 0x1e83, 0x1e83,
+ 0x1e85, 0x1e85,
+ 0x1e87, 0x1e87,
+ 0x1e89, 0x1e89,
+ 0x1e8b, 0x1e8b,
+ 0x1e8d, 0x1e8d,
+ 0x1e8f, 0x1e8f,
+ 0x1e91, 0x1e91,
+ 0x1e93, 0x1e93,
+ 0x1e95, 0x1e9d,
+ 0x1e9f, 0x1e9f,
+ 0x1ea1, 0x1ea1,
+ 0x1ea3, 0x1ea3,
+ 0x1ea5, 0x1ea5,
+ 0x1ea7, 0x1ea7,
+ 0x1ea9, 0x1ea9,
+ 0x1eab, 0x1eab,
+ 0x1ead, 0x1ead,
+ 0x1eaf, 0x1eaf,
+ 0x1eb1, 0x1eb1,
+ 0x1eb3, 0x1eb3,
+ 0x1eb5, 0x1eb5,
+ 0x1eb7, 0x1eb7,
+ 0x1eb9, 0x1eb9,
+ 0x1ebb, 0x1ebb,
+ 0x1ebd, 0x1ebd,
+ 0x1ebf, 0x1ebf,
+ 0x1ec1, 0x1ec1,
+ 0x1ec3, 0x1ec3,
+ 0x1ec5, 0x1ec5,
+ 0x1ec7, 0x1ec7,
+ 0x1ec9, 0x1ec9,
+ 0x1ecb, 0x1ecb,
+ 0x1ecd, 0x1ecd,
+ 0x1ecf, 0x1ecf,
+ 0x1ed1, 0x1ed1,
+ 0x1ed3, 0x1ed3,
+ 0x1ed5, 0x1ed5,
+ 0x1ed7, 0x1ed7,
+ 0x1ed9, 0x1ed9,
+ 0x1edb, 0x1edb,
+ 0x1edd, 0x1edd,
+ 0x1edf, 0x1edf,
+ 0x1ee1, 0x1ee1,
+ 0x1ee3, 0x1ee3,
+ 0x1ee5, 0x1ee5,
+ 0x1ee7, 0x1ee7,
+ 0x1ee9, 0x1ee9,
+ 0x1eeb, 0x1eeb,
+ 0x1eed, 0x1eed,
+ 0x1eef, 0x1eef,
+ 0x1ef1, 0x1ef1,
+ 0x1ef3, 0x1ef3,
+ 0x1ef5, 0x1ef5,
+ 0x1ef7, 0x1ef7,
+ 0x1ef9, 0x1ef9,
+ 0x1efb, 0x1efb,
+ 0x1efd, 0x1efd,
+ 0x1eff, 0x1f07,
+ 0x1f10, 0x1f15,
+ 0x1f20, 0x1f27,
+ 0x1f30, 0x1f37,
+ 0x1f40, 0x1f45,
+ 0x1f50, 0x1f57,
+ 0x1f60, 0x1f67,
+ 0x1f70, 0x1f7d,
+ 0x1f80, 0x1f87,
+ 0x1f90, 0x1f97,
+ 0x1fa0, 0x1fa7,
+ 0x1fb0, 0x1fb4,
+ 0x1fb6, 0x1fb7,
+ 0x1fbe, 0x1fbe,
+ 0x1fc2, 0x1fc4,
+ 0x1fc6, 0x1fc7,
+ 0x1fd0, 0x1fd3,
+ 0x1fd6, 0x1fd7,
+ 0x1fe0, 0x1fe7,
+ 0x1ff2, 0x1ff4,
+ 0x1ff6, 0x1ff7,
+ 0x210a, 0x210a,
+ 0x210e, 0x210f,
+ 0x2113, 0x2113,
+ 0x212f, 0x212f,
+ 0x2134, 0x2134,
+ 0x2139, 0x2139,
+ 0x213c, 0x213d,
+ 0x2146, 0x2149,
+ 0x214e, 0x214e,
+ 0x2184, 0x2184,
+ 0x2c30, 0x2c5e,
+ 0x2c61, 0x2c61,
+ 0x2c65, 0x2c66,
+ 0x2c68, 0x2c68,
+ 0x2c6a, 0x2c6a,
+ 0x2c6c, 0x2c6c,
+ 0x2c71, 0x2c71,
+ 0x2c73, 0x2c74,
+ 0x2c76, 0x2c7c,
+ 0x2c81, 0x2c81,
+ 0x2c83, 0x2c83,
+ 0x2c85, 0x2c85,
+ 0x2c87, 0x2c87,
+ 0x2c89, 0x2c89,
+ 0x2c8b, 0x2c8b,
+ 0x2c8d, 0x2c8d,
+ 0x2c8f, 0x2c8f,
+ 0x2c91, 0x2c91,
+ 0x2c93, 0x2c93,
+ 0x2c95, 0x2c95,
+ 0x2c97, 0x2c97,
+ 0x2c99, 0x2c99,
+ 0x2c9b, 0x2c9b,
+ 0x2c9d, 0x2c9d,
+ 0x2c9f, 0x2c9f,
+ 0x2ca1, 0x2ca1,
+ 0x2ca3, 0x2ca3,
+ 0x2ca5, 0x2ca5,
+ 0x2ca7, 0x2ca7,
+ 0x2ca9, 0x2ca9,
+ 0x2cab, 0x2cab,
+ 0x2cad, 0x2cad,
+ 0x2caf, 0x2caf,
+ 0x2cb1, 0x2cb1,
+ 0x2cb3, 0x2cb3,
+ 0x2cb5, 0x2cb5,
+ 0x2cb7, 0x2cb7,
+ 0x2cb9, 0x2cb9,
+ 0x2cbb, 0x2cbb,
+ 0x2cbd, 0x2cbd,
+ 0x2cbf, 0x2cbf,
+ 0x2cc1, 0x2cc1,
+ 0x2cc3, 0x2cc3,
+ 0x2cc5, 0x2cc5,
+ 0x2cc7, 0x2cc7,
+ 0x2cc9, 0x2cc9,
+ 0x2ccb, 0x2ccb,
+ 0x2ccd, 0x2ccd,
+ 0x2ccf, 0x2ccf,
+ 0x2cd1, 0x2cd1,
+ 0x2cd3, 0x2cd3,
+ 0x2cd5, 0x2cd5,
+ 0x2cd7, 0x2cd7,
+ 0x2cd9, 0x2cd9,
+ 0x2cdb, 0x2cdb,
+ 0x2cdd, 0x2cdd,
+ 0x2cdf, 0x2cdf,
+ 0x2ce1, 0x2ce1,
+ 0x2ce3, 0x2ce4,
+ 0x2cec, 0x2cec,
+ 0x2cee, 0x2cee,
+ 0x2d00, 0x2d25,
+ 0xa641, 0xa641,
+ 0xa643, 0xa643,
+ 0xa645, 0xa645,
+ 0xa647, 0xa647,
+ 0xa649, 0xa649,
+ 0xa64b, 0xa64b,
+ 0xa64d, 0xa64d,
+ 0xa64f, 0xa64f,
+ 0xa651, 0xa651,
+ 0xa653, 0xa653,
+ 0xa655, 0xa655,
+ 0xa657, 0xa657,
+ 0xa659, 0xa659,
+ 0xa65b, 0xa65b,
+ 0xa65d, 0xa65d,
+ 0xa65f, 0xa65f,
+ 0xa661, 0xa661,
+ 0xa663, 0xa663,
+ 0xa665, 0xa665,
+ 0xa667, 0xa667,
+ 0xa669, 0xa669,
+ 0xa66b, 0xa66b,
+ 0xa66d, 0xa66d,
+ 0xa681, 0xa681,
+ 0xa683, 0xa683,
+ 0xa685, 0xa685,
+ 0xa687, 0xa687,
+ 0xa689, 0xa689,
+ 0xa68b, 0xa68b,
+ 0xa68d, 0xa68d,
+ 0xa68f, 0xa68f,
+ 0xa691, 0xa691,
+ 0xa693, 0xa693,
+ 0xa695, 0xa695,
+ 0xa697, 0xa697,
+ 0xa723, 0xa723,
+ 0xa725, 0xa725,
+ 0xa727, 0xa727,
+ 0xa729, 0xa729,
+ 0xa72b, 0xa72b,
+ 0xa72d, 0xa72d,
+ 0xa72f, 0xa731,
+ 0xa733, 0xa733,
+ 0xa735, 0xa735,
+ 0xa737, 0xa737,
+ 0xa739, 0xa739,
+ 0xa73b, 0xa73b,
+ 0xa73d, 0xa73d,
+ 0xa73f, 0xa73f,
+ 0xa741, 0xa741,
+ 0xa743, 0xa743,
+ 0xa745, 0xa745,
+ 0xa747, 0xa747,
+ 0xa749, 0xa749,
+ 0xa74b, 0xa74b,
+ 0xa74d, 0xa74d,
+ 0xa74f, 0xa74f,
+ 0xa751, 0xa751,
+ 0xa753, 0xa753,
+ 0xa755, 0xa755,
+ 0xa757, 0xa757,
+ 0xa759, 0xa759,
+ 0xa75b, 0xa75b,
+ 0xa75d, 0xa75d,
+ 0xa75f, 0xa75f,
+ 0xa761, 0xa761,
+ 0xa763, 0xa763,
+ 0xa765, 0xa765,
+ 0xa767, 0xa767,
+ 0xa769, 0xa769,
+ 0xa76b, 0xa76b,
+ 0xa76d, 0xa76d,
+ 0xa76f, 0xa76f,
+ 0xa771, 0xa778,
+ 0xa77a, 0xa77a,
+ 0xa77c, 0xa77c,
+ 0xa77f, 0xa77f,
+ 0xa781, 0xa781,
+ 0xa783, 0xa783,
+ 0xa785, 0xa785,
+ 0xa787, 0xa787,
+ 0xa78c, 0xa78c,
+ 0xa78e, 0xa78e,
+ 0xa791, 0xa791,
+ 0xa7a1, 0xa7a1,
+ 0xa7a3, 0xa7a3,
+ 0xa7a5, 0xa7a5,
+ 0xa7a7, 0xa7a7,
+ 0xa7a9, 0xa7a9,
+ 0xa7fa, 0xa7fa,
+ 0xfb00, 0xfb06,
+ 0xfb13, 0xfb17,
+ 0xff41, 0xff5a,
+ 0x10428, 0x1044f,
+ 0x1d41a, 0x1d433,
+ 0x1d44e, 0x1d454,
+ 0x1d456, 0x1d467,
+ 0x1d482, 0x1d49b,
+ 0x1d4b6, 0x1d4b9,
+ 0x1d4bb, 0x1d4bb,
+ 0x1d4bd, 0x1d4c3,
+ 0x1d4c5, 0x1d4cf,
+ 0x1d4ea, 0x1d503,
+ 0x1d51e, 0x1d537,
+ 0x1d552, 0x1d56b,
+ 0x1d586, 0x1d59f,
+ 0x1d5ba, 0x1d5d3,
+ 0x1d5ee, 0x1d607,
+ 0x1d622, 0x1d63b,
+ 0x1d656, 0x1d66f,
+ 0x1d68a, 0x1d6a5,
+ 0x1d6c2, 0x1d6da,
+ 0x1d6dc, 0x1d6e1,
+ 0x1d6fc, 0x1d714,
+ 0x1d716, 0x1d71b,
+ 0x1d736, 0x1d74e,
+ 0x1d750, 0x1d755,
+ 0x1d770, 0x1d788,
+ 0x1d78a, 0x1d78f,
+ 0x1d7aa, 0x1d7c2,
+ 0x1d7c4, 0x1d7c9,
+ 0x1d7cb, 0x1d7cb,
+}; /* CR_Ll */
+
+/* 'Lm': General Category */
+static const OnigCodePoint CR_Lm[] = {
+ 49,
+ 0x02b0, 0x02c1,
+ 0x02c6, 0x02d1,
+ 0x02e0, 0x02e4,
+ 0x02ec, 0x02ec,
+ 0x02ee, 0x02ee,
+ 0x0374, 0x0374,
+ 0x037a, 0x037a,
+ 0x0559, 0x0559,
+ 0x0640, 0x0640,
+ 0x06e5, 0x06e6,
+ 0x07f4, 0x07f5,
+ 0x07fa, 0x07fa,
+ 0x081a, 0x081a,
+ 0x0824, 0x0824,
+ 0x0828, 0x0828,
+ 0x0971, 0x0971,
+ 0x0e46, 0x0e46,
+ 0x0ec6, 0x0ec6,
+ 0x10fc, 0x10fc,
+ 0x17d7, 0x17d7,
+ 0x1843, 0x1843,
+ 0x1aa7, 0x1aa7,
+ 0x1c78, 0x1c7d,
+ 0x1d2c, 0x1d61,
+ 0x1d78, 0x1d78,
+ 0x1d9b, 0x1dbf,
+ 0x2071, 0x2071,
+ 0x207f, 0x207f,
+ 0x2090, 0x209c,
+ 0x2c7d, 0x2c7d,
+ 0x2d6f, 0x2d6f,
+ 0x2e2f, 0x2e2f,
+ 0x3005, 0x3005,
+ 0x3031, 0x3035,
+ 0x303b, 0x303b,
+ 0x309d, 0x309e,
+ 0x30fc, 0x30fe,
+ 0xa015, 0xa015,
+ 0xa4f8, 0xa4fd,
+ 0xa60c, 0xa60c,
+ 0xa67f, 0xa67f,
+ 0xa717, 0xa71f,
+ 0xa770, 0xa770,
+ 0xa788, 0xa788,
+ 0xa9cf, 0xa9cf,
+ 0xaa70, 0xaa70,
+ 0xaadd, 0xaadd,
+ 0xff70, 0xff70,
+ 0xff9e, 0xff9f,
+}; /* CR_Lm */
+
+/* 'Lo': General Category */
+static const OnigCodePoint CR_Lo[] = {
+ 323,
+ 0x01bb, 0x01bb,
+ 0x01c0, 0x01c3,
+ 0x0294, 0x0294,
+ 0x05d0, 0x05ea,
+ 0x05f0, 0x05f2,
+ 0x0620, 0x063f,
+ 0x0641, 0x064a,
+ 0x066e, 0x066f,
+ 0x0671, 0x06d3,
+ 0x06d5, 0x06d5,
+ 0x06ee, 0x06ef,
+ 0x06fa, 0x06fc,
+ 0x06ff, 0x06ff,
+ 0x0710, 0x0710,
+ 0x0712, 0x072f,
+ 0x074d, 0x07a5,
+ 0x07b1, 0x07b1,
+ 0x07ca, 0x07ea,
+ 0x0800, 0x0815,
+ 0x0840, 0x0858,
+ 0x0904, 0x0939,
+ 0x093d, 0x093d,
+ 0x0950, 0x0950,
+ 0x0958, 0x0961,
+ 0x0972, 0x0977,
+ 0x0979, 0x097f,
+ 0x0985, 0x098c,
+ 0x098f, 0x0990,
+ 0x0993, 0x09a8,
+ 0x09aa, 0x09b0,
+ 0x09b2, 0x09b2,
+ 0x09b6, 0x09b9,
+ 0x09bd, 0x09bd,
+ 0x09ce, 0x09ce,
+ 0x09dc, 0x09dd,
+ 0x09df, 0x09e1,
+ 0x09f0, 0x09f1,
+ 0x0a05, 0x0a0a,
+ 0x0a0f, 0x0a10,
+ 0x0a13, 0x0a28,
+ 0x0a2a, 0x0a30,
+ 0x0a32, 0x0a33,
+ 0x0a35, 0x0a36,
+ 0x0a38, 0x0a39,
+ 0x0a59, 0x0a5c,
+ 0x0a5e, 0x0a5e,
+ 0x0a72, 0x0a74,
+ 0x0a85, 0x0a8d,
+ 0x0a8f, 0x0a91,
+ 0x0a93, 0x0aa8,
+ 0x0aaa, 0x0ab0,
+ 0x0ab2, 0x0ab3,
+ 0x0ab5, 0x0ab9,
+ 0x0abd, 0x0abd,
+ 0x0ad0, 0x0ad0,
+ 0x0ae0, 0x0ae1,
+ 0x0b05, 0x0b0c,
+ 0x0b0f, 0x0b10,
+ 0x0b13, 0x0b28,
+ 0x0b2a, 0x0b30,
+ 0x0b32, 0x0b33,
+ 0x0b35, 0x0b39,
+ 0x0b3d, 0x0b3d,
+ 0x0b5c, 0x0b5d,
+ 0x0b5f, 0x0b61,
+ 0x0b71, 0x0b71,
+ 0x0b83, 0x0b83,
+ 0x0b85, 0x0b8a,
+ 0x0b8e, 0x0b90,
+ 0x0b92, 0x0b95,
+ 0x0b99, 0x0b9a,
+ 0x0b9c, 0x0b9c,
+ 0x0b9e, 0x0b9f,
+ 0x0ba3, 0x0ba4,
+ 0x0ba8, 0x0baa,
+ 0x0bae, 0x0bb9,
+ 0x0bd0, 0x0bd0,
+ 0x0c05, 0x0c0c,
+ 0x0c0e, 0x0c10,
+ 0x0c12, 0x0c28,
+ 0x0c2a, 0x0c33,
+ 0x0c35, 0x0c39,
+ 0x0c3d, 0x0c3d,
+ 0x0c58, 0x0c59,
+ 0x0c60, 0x0c61,
+ 0x0c85, 0x0c8c,
+ 0x0c8e, 0x0c90,
+ 0x0c92, 0x0ca8,
+ 0x0caa, 0x0cb3,
+ 0x0cb5, 0x0cb9,
+ 0x0cbd, 0x0cbd,
+ 0x0cde, 0x0cde,
+ 0x0ce0, 0x0ce1,
+ 0x0cf1, 0x0cf2,
+ 0x0d05, 0x0d0c,
+ 0x0d0e, 0x0d10,
+ 0x0d12, 0x0d3a,
+ 0x0d3d, 0x0d3d,
+ 0x0d4e, 0x0d4e,
+ 0x0d60, 0x0d61,
+ 0x0d7a, 0x0d7f,
+ 0x0d85, 0x0d96,
+ 0x0d9a, 0x0db1,
+ 0x0db3, 0x0dbb,
+ 0x0dbd, 0x0dbd,
+ 0x0dc0, 0x0dc6,
+ 0x0e01, 0x0e30,
+ 0x0e32, 0x0e33,
+ 0x0e40, 0x0e45,
+ 0x0e81, 0x0e82,
+ 0x0e84, 0x0e84,
+ 0x0e87, 0x0e88,
+ 0x0e8a, 0x0e8a,
+ 0x0e8d, 0x0e8d,
+ 0x0e94, 0x0e97,
+ 0x0e99, 0x0e9f,
+ 0x0ea1, 0x0ea3,
+ 0x0ea5, 0x0ea5,
+ 0x0ea7, 0x0ea7,
+ 0x0eaa, 0x0eab,
+ 0x0ead, 0x0eb0,
+ 0x0eb2, 0x0eb3,
+ 0x0ebd, 0x0ebd,
+ 0x0ec0, 0x0ec4,
+ 0x0edc, 0x0edd,
+ 0x0f00, 0x0f00,
+ 0x0f40, 0x0f47,
+ 0x0f49, 0x0f6c,
+ 0x0f88, 0x0f8c,
+ 0x1000, 0x102a,
+ 0x103f, 0x103f,
+ 0x1050, 0x1055,
+ 0x105a, 0x105d,
+ 0x1061, 0x1061,
+ 0x1065, 0x1066,
+ 0x106e, 0x1070,
+ 0x1075, 0x1081,
+ 0x108e, 0x108e,
+ 0x10d0, 0x10fa,
+ 0x1100, 0x1248,
+ 0x124a, 0x124d,
+ 0x1250, 0x1256,
+ 0x1258, 0x1258,
+ 0x125a, 0x125d,
+ 0x1260, 0x1288,
+ 0x128a, 0x128d,
+ 0x1290, 0x12b0,
+ 0x12b2, 0x12b5,
+ 0x12b8, 0x12be,
+ 0x12c0, 0x12c0,
+ 0x12c2, 0x12c5,
+ 0x12c8, 0x12d6,
+ 0x12d8, 0x1310,
+ 0x1312, 0x1315,
+ 0x1318, 0x135a,
+ 0x1380, 0x138f,
+ 0x13a0, 0x13f4,
+ 0x1401, 0x166c,
+ 0x166f, 0x167f,
+ 0x1681, 0x169a,
+ 0x16a0, 0x16ea,
+ 0x1700, 0x170c,
+ 0x170e, 0x1711,
+ 0x1720, 0x1731,
+ 0x1740, 0x1751,
+ 0x1760, 0x176c,
+ 0x176e, 0x1770,
+ 0x1780, 0x17b3,
+ 0x17dc, 0x17dc,
+ 0x1820, 0x1842,
+ 0x1844, 0x1877,
+ 0x1880, 0x18a8,
+ 0x18aa, 0x18aa,
+ 0x18b0, 0x18f5,
+ 0x1900, 0x191c,
+ 0x1950, 0x196d,
+ 0x1970, 0x1974,
+ 0x1980, 0x19ab,
+ 0x19c1, 0x19c7,
+ 0x1a00, 0x1a16,
+ 0x1a20, 0x1a54,
+ 0x1b05, 0x1b33,
+ 0x1b45, 0x1b4b,
+ 0x1b83, 0x1ba0,
+ 0x1bae, 0x1baf,
+ 0x1bc0, 0x1be5,
+ 0x1c00, 0x1c23,
+ 0x1c4d, 0x1c4f,
+ 0x1c5a, 0x1c77,
+ 0x1ce9, 0x1cec,
+ 0x1cee, 0x1cf1,
+ 0x2135, 0x2138,
+ 0x2d30, 0x2d65,
+ 0x2d80, 0x2d96,
+ 0x2da0, 0x2da6,
+ 0x2da8, 0x2dae,
+ 0x2db0, 0x2db6,
+ 0x2db8, 0x2dbe,
+ 0x2dc0, 0x2dc6,
+ 0x2dc8, 0x2dce,
+ 0x2dd0, 0x2dd6,
+ 0x2dd8, 0x2dde,
+ 0x3006, 0x3006,
+ 0x303c, 0x303c,
+ 0x3041, 0x3096,
+ 0x309f, 0x309f,
+ 0x30a1, 0x30fa,
+ 0x30ff, 0x30ff,
+ 0x3105, 0x312d,
+ 0x3131, 0x318e,
+ 0x31a0, 0x31ba,
+ 0x31f0, 0x31ff,
+ 0x3400, 0x4db5,
+ 0x4e00, 0x9fcb,
+ 0xa000, 0xa014,
+ 0xa016, 0xa48c,
+ 0xa4d0, 0xa4f7,
+ 0xa500, 0xa60b,
+ 0xa610, 0xa61f,
+ 0xa62a, 0xa62b,
+ 0xa66e, 0xa66e,
+ 0xa6a0, 0xa6e5,
+ 0xa7fb, 0xa801,
+ 0xa803, 0xa805,
+ 0xa807, 0xa80a,
+ 0xa80c, 0xa822,
+ 0xa840, 0xa873,
+ 0xa882, 0xa8b3,
+ 0xa8f2, 0xa8f7,
+ 0xa8fb, 0xa8fb,
+ 0xa90a, 0xa925,
+ 0xa930, 0xa946,
+ 0xa960, 0xa97c,
+ 0xa984, 0xa9b2,
+ 0xaa00, 0xaa28,
+ 0xaa40, 0xaa42,
+ 0xaa44, 0xaa4b,
+ 0xaa60, 0xaa6f,
+ 0xaa71, 0xaa76,
+ 0xaa7a, 0xaa7a,
+ 0xaa80, 0xaaaf,
+ 0xaab1, 0xaab1,
+ 0xaab5, 0xaab6,
+ 0xaab9, 0xaabd,
+ 0xaac0, 0xaac0,
+ 0xaac2, 0xaac2,
+ 0xaadb, 0xaadc,
+ 0xab01, 0xab06,
+ 0xab09, 0xab0e,
+ 0xab11, 0xab16,
+ 0xab20, 0xab26,
+ 0xab28, 0xab2e,
+ 0xabc0, 0xabe2,
+ 0xac00, 0xd7a3,
+ 0xd7b0, 0xd7c6,
+ 0xd7cb, 0xd7fb,
+ 0xf900, 0xfa2d,
+ 0xfa30, 0xfa6d,
+ 0xfa70, 0xfad9,
+ 0xfb1d, 0xfb1d,
+ 0xfb1f, 0xfb28,
+ 0xfb2a, 0xfb36,
+ 0xfb38, 0xfb3c,
+ 0xfb3e, 0xfb3e,
+ 0xfb40, 0xfb41,
+ 0xfb43, 0xfb44,
+ 0xfb46, 0xfbb1,
+ 0xfbd3, 0xfd3d,
+ 0xfd50, 0xfd8f,
+ 0xfd92, 0xfdc7,
+ 0xfdf0, 0xfdfb,
+ 0xfe70, 0xfe74,
+ 0xfe76, 0xfefc,
+ 0xff66, 0xff6f,
+ 0xff71, 0xff9d,
+ 0xffa0, 0xffbe,
+ 0xffc2, 0xffc7,
+ 0xffca, 0xffcf,
+ 0xffd2, 0xffd7,
+ 0xffda, 0xffdc,
+ 0x10000, 0x1000b,
+ 0x1000d, 0x10026,
+ 0x10028, 0x1003a,
+ 0x1003c, 0x1003d,
+ 0x1003f, 0x1004d,
+ 0x10050, 0x1005d,
+ 0x10080, 0x100fa,
+ 0x10280, 0x1029c,
+ 0x102a0, 0x102d0,
+ 0x10300, 0x1031e,
+ 0x10330, 0x10340,
+ 0x10342, 0x10349,
+ 0x10380, 0x1039d,
+ 0x103a0, 0x103c3,
+ 0x103c8, 0x103cf,
+ 0x10450, 0x1049d,
+ 0x10800, 0x10805,
+ 0x10808, 0x10808,
+ 0x1080a, 0x10835,
+ 0x10837, 0x10838,
+ 0x1083c, 0x1083c,
+ 0x1083f, 0x10855,
+ 0x10900, 0x10915,
+ 0x10920, 0x10939,
+ 0x10a00, 0x10a00,
+ 0x10a10, 0x10a13,
+ 0x10a15, 0x10a17,
+ 0x10a19, 0x10a33,
+ 0x10a60, 0x10a7c,
+ 0x10b00, 0x10b35,
+ 0x10b40, 0x10b55,
+ 0x10b60, 0x10b72,
+ 0x10c00, 0x10c48,
+ 0x11003, 0x11037,
+ 0x11083, 0x110af,
+ 0x12000, 0x1236e,
+ 0x13000, 0x1342e,
+ 0x16800, 0x16a38,
+ 0x1b000, 0x1b001,
+ 0x20000, 0x2a6d6,
+ 0x2a700, 0x2b734,
+ 0x2b740, 0x2b81d,
+ 0x2f800, 0x2fa1d,
+}; /* CR_Lo */
+
+/* 'Lt': General Category */
+static const OnigCodePoint CR_Lt[] = {
+ 10,
+ 0x01c5, 0x01c5,
+ 0x01c8, 0x01c8,
+ 0x01cb, 0x01cb,
+ 0x01f2, 0x01f2,
+ 0x1f88, 0x1f8f,
+ 0x1f98, 0x1f9f,
+ 0x1fa8, 0x1faf,
+ 0x1fbc, 0x1fbc,
+ 0x1fcc, 0x1fcc,
+ 0x1ffc, 0x1ffc,
+}; /* CR_Lt */
+
+/* 'Lu': General Category */
+static const OnigCodePoint CR_Lu[] = {
+ 603,
+ 0x0041, 0x005a,
+ 0x00c0, 0x00d6,
+ 0x00d8, 0x00de,
+ 0x0100, 0x0100,
+ 0x0102, 0x0102,
+ 0x0104, 0x0104,
+ 0x0106, 0x0106,
+ 0x0108, 0x0108,
+ 0x010a, 0x010a,
+ 0x010c, 0x010c,
+ 0x010e, 0x010e,
+ 0x0110, 0x0110,
+ 0x0112, 0x0112,
+ 0x0114, 0x0114,
+ 0x0116, 0x0116,
+ 0x0118, 0x0118,
+ 0x011a, 0x011a,
+ 0x011c, 0x011c,
+ 0x011e, 0x011e,
+ 0x0120, 0x0120,
+ 0x0122, 0x0122,
+ 0x0124, 0x0124,
+ 0x0126, 0x0126,
+ 0x0128, 0x0128,
+ 0x012a, 0x012a,
+ 0x012c, 0x012c,
+ 0x012e, 0x012e,
+ 0x0130, 0x0130,
+ 0x0132, 0x0132,
+ 0x0134, 0x0134,
+ 0x0136, 0x0136,
+ 0x0139, 0x0139,
+ 0x013b, 0x013b,
+ 0x013d, 0x013d,
+ 0x013f, 0x013f,
+ 0x0141, 0x0141,
+ 0x0143, 0x0143,
+ 0x0145, 0x0145,
+ 0x0147, 0x0147,
+ 0x014a, 0x014a,
+ 0x014c, 0x014c,
+ 0x014e, 0x014e,
+ 0x0150, 0x0150,
+ 0x0152, 0x0152,
+ 0x0154, 0x0154,
+ 0x0156, 0x0156,
+ 0x0158, 0x0158,
+ 0x015a, 0x015a,
+ 0x015c, 0x015c,
+ 0x015e, 0x015e,
+ 0x0160, 0x0160,
+ 0x0162, 0x0162,
+ 0x0164, 0x0164,
+ 0x0166, 0x0166,
+ 0x0168, 0x0168,
+ 0x016a, 0x016a,
+ 0x016c, 0x016c,
+ 0x016e, 0x016e,
+ 0x0170, 0x0170,
+ 0x0172, 0x0172,
+ 0x0174, 0x0174,
+ 0x0176, 0x0176,
+ 0x0178, 0x0179,
+ 0x017b, 0x017b,
+ 0x017d, 0x017d,
+ 0x0181, 0x0182,
+ 0x0184, 0x0184,
+ 0x0186, 0x0187,
+ 0x0189, 0x018b,
+ 0x018e, 0x0191,
+ 0x0193, 0x0194,
+ 0x0196, 0x0198,
+ 0x019c, 0x019d,
+ 0x019f, 0x01a0,
+ 0x01a2, 0x01a2,
+ 0x01a4, 0x01a4,
+ 0x01a6, 0x01a7,
+ 0x01a9, 0x01a9,
+ 0x01ac, 0x01ac,
+ 0x01ae, 0x01af,
+ 0x01b1, 0x01b3,
+ 0x01b5, 0x01b5,
+ 0x01b7, 0x01b8,
+ 0x01bc, 0x01bc,
+ 0x01c4, 0x01c4,
+ 0x01c7, 0x01c7,
+ 0x01ca, 0x01ca,
+ 0x01cd, 0x01cd,
+ 0x01cf, 0x01cf,
+ 0x01d1, 0x01d1,
+ 0x01d3, 0x01d3,
+ 0x01d5, 0x01d5,
+ 0x01d7, 0x01d7,
+ 0x01d9, 0x01d9,
+ 0x01db, 0x01db,
+ 0x01de, 0x01de,
+ 0x01e0, 0x01e0,
+ 0x01e2, 0x01e2,
+ 0x01e4, 0x01e4,
+ 0x01e6, 0x01e6,
+ 0x01e8, 0x01e8,
+ 0x01ea, 0x01ea,
+ 0x01ec, 0x01ec,
+ 0x01ee, 0x01ee,
+ 0x01f1, 0x01f1,
+ 0x01f4, 0x01f4,
+ 0x01f6, 0x01f8,
+ 0x01fa, 0x01fa,
+ 0x01fc, 0x01fc,
+ 0x01fe, 0x01fe,
+ 0x0200, 0x0200,
+ 0x0202, 0x0202,
+ 0x0204, 0x0204,
+ 0x0206, 0x0206,
+ 0x0208, 0x0208,
+ 0x020a, 0x020a,
+ 0x020c, 0x020c,
+ 0x020e, 0x020e,
+ 0x0210, 0x0210,
+ 0x0212, 0x0212,
+ 0x0214, 0x0214,
+ 0x0216, 0x0216,
+ 0x0218, 0x0218,
+ 0x021a, 0x021a,
+ 0x021c, 0x021c,
+ 0x021e, 0x021e,
+ 0x0220, 0x0220,
+ 0x0222, 0x0222,
+ 0x0224, 0x0224,
+ 0x0226, 0x0226,
+ 0x0228, 0x0228,
+ 0x022a, 0x022a,
+ 0x022c, 0x022c,
+ 0x022e, 0x022e,
+ 0x0230, 0x0230,
+ 0x0232, 0x0232,
+ 0x023a, 0x023b,
+ 0x023d, 0x023e,
+ 0x0241, 0x0241,
+ 0x0243, 0x0246,
+ 0x0248, 0x0248,
+ 0x024a, 0x024a,
+ 0x024c, 0x024c,
+ 0x024e, 0x024e,
+ 0x0370, 0x0370,
+ 0x0372, 0x0372,
+ 0x0376, 0x0376,
+ 0x0386, 0x0386,
+ 0x0388, 0x038a,
+ 0x038c, 0x038c,
+ 0x038e, 0x038f,
+ 0x0391, 0x03a1,
+ 0x03a3, 0x03ab,
+ 0x03cf, 0x03cf,
+ 0x03d2, 0x03d4,
+ 0x03d8, 0x03d8,
+ 0x03da, 0x03da,
+ 0x03dc, 0x03dc,
+ 0x03de, 0x03de,
+ 0x03e0, 0x03e0,
+ 0x03e2, 0x03e2,
+ 0x03e4, 0x03e4,
+ 0x03e6, 0x03e6,
+ 0x03e8, 0x03e8,
+ 0x03ea, 0x03ea,
+ 0x03ec, 0x03ec,
+ 0x03ee, 0x03ee,
+ 0x03f4, 0x03f4,
+ 0x03f7, 0x03f7,
+ 0x03f9, 0x03fa,
+ 0x03fd, 0x042f,
+ 0x0460, 0x0460,
+ 0x0462, 0x0462,
+ 0x0464, 0x0464,
+ 0x0466, 0x0466,
+ 0x0468, 0x0468,
+ 0x046a, 0x046a,
+ 0x046c, 0x046c,
+ 0x046e, 0x046e,
+ 0x0470, 0x0470,
+ 0x0472, 0x0472,
+ 0x0474, 0x0474,
+ 0x0476, 0x0476,
+ 0x0478, 0x0478,
+ 0x047a, 0x047a,
+ 0x047c, 0x047c,
+ 0x047e, 0x047e,
+ 0x0480, 0x0480,
+ 0x048a, 0x048a,
+ 0x048c, 0x048c,
+ 0x048e, 0x048e,
+ 0x0490, 0x0490,
+ 0x0492, 0x0492,
+ 0x0494, 0x0494,
+ 0x0496, 0x0496,
+ 0x0498, 0x0498,
+ 0x049a, 0x049a,
+ 0x049c, 0x049c,
+ 0x049e, 0x049e,
+ 0x04a0, 0x04a0,
+ 0x04a2, 0x04a2,
+ 0x04a4, 0x04a4,
+ 0x04a6, 0x04a6,
+ 0x04a8, 0x04a8,
+ 0x04aa, 0x04aa,
+ 0x04ac, 0x04ac,
+ 0x04ae, 0x04ae,
+ 0x04b0, 0x04b0,
+ 0x04b2, 0x04b2,
+ 0x04b4, 0x04b4,
+ 0x04b6, 0x04b6,
+ 0x04b8, 0x04b8,
+ 0x04ba, 0x04ba,
+ 0x04bc, 0x04bc,
+ 0x04be, 0x04be,
+ 0x04c0, 0x04c1,
+ 0x04c3, 0x04c3,
+ 0x04c5, 0x04c5,
+ 0x04c7, 0x04c7,
+ 0x04c9, 0x04c9,
+ 0x04cb, 0x04cb,
+ 0x04cd, 0x04cd,
+ 0x04d0, 0x04d0,
+ 0x04d2, 0x04d2,
+ 0x04d4, 0x04d4,
+ 0x04d6, 0x04d6,
+ 0x04d8, 0x04d8,
+ 0x04da, 0x04da,
+ 0x04dc, 0x04dc,
+ 0x04de, 0x04de,
+ 0x04e0, 0x04e0,
+ 0x04e2, 0x04e2,
+ 0x04e4, 0x04e4,
+ 0x04e6, 0x04e6,
+ 0x04e8, 0x04e8,
+ 0x04ea, 0x04ea,
+ 0x04ec, 0x04ec,
+ 0x04ee, 0x04ee,
+ 0x04f0, 0x04f0,
+ 0x04f2, 0x04f2,
+ 0x04f4, 0x04f4,
+ 0x04f6, 0x04f6,
+ 0x04f8, 0x04f8,
+ 0x04fa, 0x04fa,
+ 0x04fc, 0x04fc,
+ 0x04fe, 0x04fe,
+ 0x0500, 0x0500,
+ 0x0502, 0x0502,
+ 0x0504, 0x0504,
+ 0x0506, 0x0506,
+ 0x0508, 0x0508,
+ 0x050a, 0x050a,
+ 0x050c, 0x050c,
+ 0x050e, 0x050e,
+ 0x0510, 0x0510,
+ 0x0512, 0x0512,
+ 0x0514, 0x0514,
+ 0x0516, 0x0516,
+ 0x0518, 0x0518,
+ 0x051a, 0x051a,
+ 0x051c, 0x051c,
+ 0x051e, 0x051e,
+ 0x0520, 0x0520,
+ 0x0522, 0x0522,
+ 0x0524, 0x0524,
+ 0x0526, 0x0526,
+ 0x0531, 0x0556,
+ 0x10a0, 0x10c5,
+ 0x1e00, 0x1e00,
+ 0x1e02, 0x1e02,
+ 0x1e04, 0x1e04,
+ 0x1e06, 0x1e06,
+ 0x1e08, 0x1e08,
+ 0x1e0a, 0x1e0a,
+ 0x1e0c, 0x1e0c,
+ 0x1e0e, 0x1e0e,
+ 0x1e10, 0x1e10,
+ 0x1e12, 0x1e12,
+ 0x1e14, 0x1e14,
+ 0x1e16, 0x1e16,
+ 0x1e18, 0x1e18,
+ 0x1e1a, 0x1e1a,
+ 0x1e1c, 0x1e1c,
+ 0x1e1e, 0x1e1e,
+ 0x1e20, 0x1e20,
+ 0x1e22, 0x1e22,
+ 0x1e24, 0x1e24,
+ 0x1e26, 0x1e26,
+ 0x1e28, 0x1e28,
+ 0x1e2a, 0x1e2a,
+ 0x1e2c, 0x1e2c,
+ 0x1e2e, 0x1e2e,
+ 0x1e30, 0x1e30,
+ 0x1e32, 0x1e32,
+ 0x1e34, 0x1e34,
+ 0x1e36, 0x1e36,
+ 0x1e38, 0x1e38,
+ 0x1e3a, 0x1e3a,
+ 0x1e3c, 0x1e3c,
+ 0x1e3e, 0x1e3e,
+ 0x1e40, 0x1e40,
+ 0x1e42, 0x1e42,
+ 0x1e44, 0x1e44,
+ 0x1e46, 0x1e46,
+ 0x1e48, 0x1e48,
+ 0x1e4a, 0x1e4a,
+ 0x1e4c, 0x1e4c,
+ 0x1e4e, 0x1e4e,
+ 0x1e50, 0x1e50,
+ 0x1e52, 0x1e52,
+ 0x1e54, 0x1e54,
+ 0x1e56, 0x1e56,
+ 0x1e58, 0x1e58,
+ 0x1e5a, 0x1e5a,
+ 0x1e5c, 0x1e5c,
+ 0x1e5e, 0x1e5e,
+ 0x1e60, 0x1e60,
+ 0x1e62, 0x1e62,
+ 0x1e64, 0x1e64,
+ 0x1e66, 0x1e66,
+ 0x1e68, 0x1e68,
+ 0x1e6a, 0x1e6a,
+ 0x1e6c, 0x1e6c,
+ 0x1e6e, 0x1e6e,
+ 0x1e70, 0x1e70,
+ 0x1e72, 0x1e72,
+ 0x1e74, 0x1e74,
+ 0x1e76, 0x1e76,
+ 0x1e78, 0x1e78,
+ 0x1e7a, 0x1e7a,
+ 0x1e7c, 0x1e7c,
+ 0x1e7e, 0x1e7e,
+ 0x1e80, 0x1e80,
+ 0x1e82, 0x1e82,
+ 0x1e84, 0x1e84,
+ 0x1e86, 0x1e86,
+ 0x1e88, 0x1e88,
+ 0x1e8a, 0x1e8a,
+ 0x1e8c, 0x1e8c,
+ 0x1e8e, 0x1e8e,
+ 0x1e90, 0x1e90,
+ 0x1e92, 0x1e92,
+ 0x1e94, 0x1e94,
+ 0x1e9e, 0x1e9e,
+ 0x1ea0, 0x1ea0,
+ 0x1ea2, 0x1ea2,
+ 0x1ea4, 0x1ea4,
+ 0x1ea6, 0x1ea6,
+ 0x1ea8, 0x1ea8,
+ 0x1eaa, 0x1eaa,
+ 0x1eac, 0x1eac,
+ 0x1eae, 0x1eae,
+ 0x1eb0, 0x1eb0,
+ 0x1eb2, 0x1eb2,
+ 0x1eb4, 0x1eb4,
+ 0x1eb6, 0x1eb6,
+ 0x1eb8, 0x1eb8,
+ 0x1eba, 0x1eba,
+ 0x1ebc, 0x1ebc,
+ 0x1ebe, 0x1ebe,
+ 0x1ec0, 0x1ec0,
+ 0x1ec2, 0x1ec2,
+ 0x1ec4, 0x1ec4,
+ 0x1ec6, 0x1ec6,
+ 0x1ec8, 0x1ec8,
+ 0x1eca, 0x1eca,
+ 0x1ecc, 0x1ecc,
+ 0x1ece, 0x1ece,
+ 0x1ed0, 0x1ed0,
+ 0x1ed2, 0x1ed2,
+ 0x1ed4, 0x1ed4,
+ 0x1ed6, 0x1ed6,
+ 0x1ed8, 0x1ed8,
+ 0x1eda, 0x1eda,
+ 0x1edc, 0x1edc,
+ 0x1ede, 0x1ede,
+ 0x1ee0, 0x1ee0,
+ 0x1ee2, 0x1ee2,
+ 0x1ee4, 0x1ee4,
+ 0x1ee6, 0x1ee6,
+ 0x1ee8, 0x1ee8,
+ 0x1eea, 0x1eea,
+ 0x1eec, 0x1eec,
+ 0x1eee, 0x1eee,
+ 0x1ef0, 0x1ef0,
+ 0x1ef2, 0x1ef2,
+ 0x1ef4, 0x1ef4,
+ 0x1ef6, 0x1ef6,
+ 0x1ef8, 0x1ef8,
+ 0x1efa, 0x1efa,
+ 0x1efc, 0x1efc,
+ 0x1efe, 0x1efe,
+ 0x1f08, 0x1f0f,
+ 0x1f18, 0x1f1d,
+ 0x1f28, 0x1f2f,
+ 0x1f38, 0x1f3f,
+ 0x1f48, 0x1f4d,
+ 0x1f59, 0x1f59,
+ 0x1f5b, 0x1f5b,
+ 0x1f5d, 0x1f5d,
+ 0x1f5f, 0x1f5f,
+ 0x1f68, 0x1f6f,
+ 0x1fb8, 0x1fbb,
+ 0x1fc8, 0x1fcb,
+ 0x1fd8, 0x1fdb,
+ 0x1fe8, 0x1fec,
+ 0x1ff8, 0x1ffb,
+ 0x2102, 0x2102,
+ 0x2107, 0x2107,
+ 0x210b, 0x210d,
+ 0x2110, 0x2112,
+ 0x2115, 0x2115,
+ 0x2119, 0x211d,
+ 0x2124, 0x2124,
+ 0x2126, 0x2126,
+ 0x2128, 0x2128,
+ 0x212a, 0x212d,
+ 0x2130, 0x2133,
+ 0x213e, 0x213f,
+ 0x2145, 0x2145,
+ 0x2183, 0x2183,
+ 0x2c00, 0x2c2e,
+ 0x2c60, 0x2c60,
+ 0x2c62, 0x2c64,
+ 0x2c67, 0x2c67,
+ 0x2c69, 0x2c69,
+ 0x2c6b, 0x2c6b,
+ 0x2c6d, 0x2c70,
+ 0x2c72, 0x2c72,
+ 0x2c75, 0x2c75,
+ 0x2c7e, 0x2c80,
+ 0x2c82, 0x2c82,
+ 0x2c84, 0x2c84,
+ 0x2c86, 0x2c86,
+ 0x2c88, 0x2c88,
+ 0x2c8a, 0x2c8a,
+ 0x2c8c, 0x2c8c,
+ 0x2c8e, 0x2c8e,
+ 0x2c90, 0x2c90,
+ 0x2c92, 0x2c92,
+ 0x2c94, 0x2c94,
+ 0x2c96, 0x2c96,
+ 0x2c98, 0x2c98,
+ 0x2c9a, 0x2c9a,
+ 0x2c9c, 0x2c9c,
+ 0x2c9e, 0x2c9e,
+ 0x2ca0, 0x2ca0,
+ 0x2ca2, 0x2ca2,
+ 0x2ca4, 0x2ca4,
+ 0x2ca6, 0x2ca6,
+ 0x2ca8, 0x2ca8,
+ 0x2caa, 0x2caa,
+ 0x2cac, 0x2cac,
+ 0x2cae, 0x2cae,
+ 0x2cb0, 0x2cb0,
+ 0x2cb2, 0x2cb2,
+ 0x2cb4, 0x2cb4,
+ 0x2cb6, 0x2cb6,
+ 0x2cb8, 0x2cb8,
+ 0x2cba, 0x2cba,
+ 0x2cbc, 0x2cbc,
+ 0x2cbe, 0x2cbe,
+ 0x2cc0, 0x2cc0,
+ 0x2cc2, 0x2cc2,
+ 0x2cc4, 0x2cc4,
+ 0x2cc6, 0x2cc6,
+ 0x2cc8, 0x2cc8,
+ 0x2cca, 0x2cca,
+ 0x2ccc, 0x2ccc,
+ 0x2cce, 0x2cce,
+ 0x2cd0, 0x2cd0,
+ 0x2cd2, 0x2cd2,
+ 0x2cd4, 0x2cd4,
+ 0x2cd6, 0x2cd6,
+ 0x2cd8, 0x2cd8,
+ 0x2cda, 0x2cda,
+ 0x2cdc, 0x2cdc,
+ 0x2cde, 0x2cde,
+ 0x2ce0, 0x2ce0,
+ 0x2ce2, 0x2ce2,
+ 0x2ceb, 0x2ceb,
+ 0x2ced, 0x2ced,
+ 0xa640, 0xa640,
+ 0xa642, 0xa642,
+ 0xa644, 0xa644,
+ 0xa646, 0xa646,
+ 0xa648, 0xa648,
+ 0xa64a, 0xa64a,
+ 0xa64c, 0xa64c,
+ 0xa64e, 0xa64e,
+ 0xa650, 0xa650,
+ 0xa652, 0xa652,
+ 0xa654, 0xa654,
+ 0xa656, 0xa656,
+ 0xa658, 0xa658,
+ 0xa65a, 0xa65a,
+ 0xa65c, 0xa65c,
+ 0xa65e, 0xa65e,
+ 0xa660, 0xa660,
+ 0xa662, 0xa662,
+ 0xa664, 0xa664,
+ 0xa666, 0xa666,
+ 0xa668, 0xa668,
+ 0xa66a, 0xa66a,
+ 0xa66c, 0xa66c,
+ 0xa680, 0xa680,
+ 0xa682, 0xa682,
+ 0xa684, 0xa684,
+ 0xa686, 0xa686,
+ 0xa688, 0xa688,
+ 0xa68a, 0xa68a,
+ 0xa68c, 0xa68c,
+ 0xa68e, 0xa68e,
+ 0xa690, 0xa690,
+ 0xa692, 0xa692,
+ 0xa694, 0xa694,
+ 0xa696, 0xa696,
+ 0xa722, 0xa722,
+ 0xa724, 0xa724,
+ 0xa726, 0xa726,
+ 0xa728, 0xa728,
+ 0xa72a, 0xa72a,
+ 0xa72c, 0xa72c,
+ 0xa72e, 0xa72e,
+ 0xa732, 0xa732,
+ 0xa734, 0xa734,
+ 0xa736, 0xa736,
+ 0xa738, 0xa738,
+ 0xa73a, 0xa73a,
+ 0xa73c, 0xa73c,
+ 0xa73e, 0xa73e,
+ 0xa740, 0xa740,
+ 0xa742, 0xa742,
+ 0xa744, 0xa744,
+ 0xa746, 0xa746,
+ 0xa748, 0xa748,
+ 0xa74a, 0xa74a,
+ 0xa74c, 0xa74c,
+ 0xa74e, 0xa74e,
+ 0xa750, 0xa750,
+ 0xa752, 0xa752,
+ 0xa754, 0xa754,
+ 0xa756, 0xa756,
+ 0xa758, 0xa758,
+ 0xa75a, 0xa75a,
+ 0xa75c, 0xa75c,
+ 0xa75e, 0xa75e,
+ 0xa760, 0xa760,
+ 0xa762, 0xa762,
+ 0xa764, 0xa764,
+ 0xa766, 0xa766,
+ 0xa768, 0xa768,
+ 0xa76a, 0xa76a,
+ 0xa76c, 0xa76c,
+ 0xa76e, 0xa76e,
+ 0xa779, 0xa779,
+ 0xa77b, 0xa77b,
+ 0xa77d, 0xa77e,
+ 0xa780, 0xa780,
+ 0xa782, 0xa782,
+ 0xa784, 0xa784,
+ 0xa786, 0xa786,
+ 0xa78b, 0xa78b,
+ 0xa78d, 0xa78d,
+ 0xa790, 0xa790,
+ 0xa7a0, 0xa7a0,
+ 0xa7a2, 0xa7a2,
+ 0xa7a4, 0xa7a4,
+ 0xa7a6, 0xa7a6,
+ 0xa7a8, 0xa7a8,
+ 0xff21, 0xff3a,
+ 0x10400, 0x10427,
+ 0x1d400, 0x1d419,
+ 0x1d434, 0x1d44d,
+ 0x1d468, 0x1d481,
+ 0x1d49c, 0x1d49c,
+ 0x1d49e, 0x1d49f,
+ 0x1d4a2, 0x1d4a2,
+ 0x1d4a5, 0x1d4a6,
+ 0x1d4a9, 0x1d4ac,
+ 0x1d4ae, 0x1d4b5,
+ 0x1d4d0, 0x1d4e9,
+ 0x1d504, 0x1d505,
+ 0x1d507, 0x1d50a,
+ 0x1d50d, 0x1d514,
+ 0x1d516, 0x1d51c,
+ 0x1d538, 0x1d539,
+ 0x1d53b, 0x1d53e,
+ 0x1d540, 0x1d544,
+ 0x1d546, 0x1d546,
+ 0x1d54a, 0x1d550,
+ 0x1d56c, 0x1d585,
+ 0x1d5a0, 0x1d5b9,
+ 0x1d5d4, 0x1d5ed,
+ 0x1d608, 0x1d621,
+ 0x1d63c, 0x1d655,
+ 0x1d670, 0x1d689,
+ 0x1d6a8, 0x1d6c0,
+ 0x1d6e2, 0x1d6fa,
+ 0x1d71c, 0x1d734,
+ 0x1d756, 0x1d76e,
+ 0x1d790, 0x1d7a8,
+ 0x1d7ca, 0x1d7ca,
+}; /* CR_Lu */
+
+/* 'M': Major Category */
+static const OnigCodePoint CR_M[] = {
+ 193,
+ 0x0300, 0x036f,
+ 0x0483, 0x0489,
+ 0x0591, 0x05bd,
+ 0x05bf, 0x05bf,
+ 0x05c1, 0x05c2,
+ 0x05c4, 0x05c5,
+ 0x05c7, 0x05c7,
+ 0x0610, 0x061a,
+ 0x064b, 0x065f,
+ 0x0670, 0x0670,
+ 0x06d6, 0x06dc,
+ 0x06df, 0x06e4,
+ 0x06e7, 0x06e8,
+ 0x06ea, 0x06ed,
+ 0x0711, 0x0711,
+ 0x0730, 0x074a,
+ 0x07a6, 0x07b0,
+ 0x07eb, 0x07f3,
+ 0x0816, 0x0819,
+ 0x081b, 0x0823,
+ 0x0825, 0x0827,
+ 0x0829, 0x082d,
+ 0x0859, 0x085b,
+ 0x0900, 0x0903,
+ 0x093a, 0x093c,
+ 0x093e, 0x094f,
+ 0x0951, 0x0957,
+ 0x0962, 0x0963,
+ 0x0981, 0x0983,
+ 0x09bc, 0x09bc,
+ 0x09be, 0x09c4,
+ 0x09c7, 0x09c8,
+ 0x09cb, 0x09cd,
+ 0x09d7, 0x09d7,
+ 0x09e2, 0x09e3,
+ 0x0a01, 0x0a03,
+ 0x0a3c, 0x0a3c,
+ 0x0a3e, 0x0a42,
+ 0x0a47, 0x0a48,
+ 0x0a4b, 0x0a4d,
+ 0x0a51, 0x0a51,
+ 0x0a70, 0x0a71,
+ 0x0a75, 0x0a75,
+ 0x0a81, 0x0a83,
+ 0x0abc, 0x0abc,
+ 0x0abe, 0x0ac5,
+ 0x0ac7, 0x0ac9,
+ 0x0acb, 0x0acd,
+ 0x0ae2, 0x0ae3,
+ 0x0b01, 0x0b03,
+ 0x0b3c, 0x0b3c,
+ 0x0b3e, 0x0b44,
+ 0x0b47, 0x0b48,
+ 0x0b4b, 0x0b4d,
+ 0x0b56, 0x0b57,
+ 0x0b62, 0x0b63,
+ 0x0b82, 0x0b82,
+ 0x0bbe, 0x0bc2,
+ 0x0bc6, 0x0bc8,
+ 0x0bca, 0x0bcd,
+ 0x0bd7, 0x0bd7,
+ 0x0c01, 0x0c03,
+ 0x0c3e, 0x0c44,
+ 0x0c46, 0x0c48,
+ 0x0c4a, 0x0c4d,
+ 0x0c55, 0x0c56,
+ 0x0c62, 0x0c63,
+ 0x0c82, 0x0c83,
+ 0x0cbc, 0x0cbc,
+ 0x0cbe, 0x0cc4,
+ 0x0cc6, 0x0cc8,
+ 0x0cca, 0x0ccd,
+ 0x0cd5, 0x0cd6,
+ 0x0ce2, 0x0ce3,
+ 0x0d02, 0x0d03,
+ 0x0d3e, 0x0d44,
+ 0x0d46, 0x0d48,
+ 0x0d4a, 0x0d4d,
+ 0x0d57, 0x0d57,
+ 0x0d62, 0x0d63,
+ 0x0d82, 0x0d83,
+ 0x0dca, 0x0dca,
+ 0x0dcf, 0x0dd4,
+ 0x0dd6, 0x0dd6,
+ 0x0dd8, 0x0ddf,
+ 0x0df2, 0x0df3,
+ 0x0e31, 0x0e31,
+ 0x0e34, 0x0e3a,
+ 0x0e47, 0x0e4e,
+ 0x0eb1, 0x0eb1,
+ 0x0eb4, 0x0eb9,
+ 0x0ebb, 0x0ebc,
+ 0x0ec8, 0x0ecd,
+ 0x0f18, 0x0f19,
+ 0x0f35, 0x0f35,
+ 0x0f37, 0x0f37,
+ 0x0f39, 0x0f39,
+ 0x0f3e, 0x0f3f,
+ 0x0f71, 0x0f84,
+ 0x0f86, 0x0f87,
+ 0x0f8d, 0x0f97,
+ 0x0f99, 0x0fbc,
+ 0x0fc6, 0x0fc6,
+ 0x102b, 0x103e,
+ 0x1056, 0x1059,
+ 0x105e, 0x1060,
+ 0x1062, 0x1064,
+ 0x1067, 0x106d,
+ 0x1071, 0x1074,
+ 0x1082, 0x108d,
+ 0x108f, 0x108f,
+ 0x109a, 0x109d,
+ 0x135d, 0x135f,
+ 0x1712, 0x1714,
+ 0x1732, 0x1734,
+ 0x1752, 0x1753,
+ 0x1772, 0x1773,
+ 0x17b6, 0x17d3,
+ 0x17dd, 0x17dd,
+ 0x180b, 0x180d,
+ 0x18a9, 0x18a9,
+ 0x1920, 0x192b,
+ 0x1930, 0x193b,
+ 0x19b0, 0x19c0,
+ 0x19c8, 0x19c9,
+ 0x1a17, 0x1a1b,
+ 0x1a55, 0x1a5e,
+ 0x1a60, 0x1a7c,
+ 0x1a7f, 0x1a7f,
+ 0x1b00, 0x1b04,
+ 0x1b34, 0x1b44,
+ 0x1b6b, 0x1b73,
+ 0x1b80, 0x1b82,
+ 0x1ba1, 0x1baa,
+ 0x1be6, 0x1bf3,
+ 0x1c24, 0x1c37,
+ 0x1cd0, 0x1cd2,
+ 0x1cd4, 0x1ce8,
+ 0x1ced, 0x1ced,
+ 0x1cf2, 0x1cf2,
+ 0x1dc0, 0x1de6,
+ 0x1dfc, 0x1dff,
+ 0x20d0, 0x20f0,
+ 0x2cef, 0x2cf1,
+ 0x2d7f, 0x2d7f,
+ 0x2de0, 0x2dff,
+ 0x302a, 0x302f,
+ 0x3099, 0x309a,
+ 0xa66f, 0xa672,
+ 0xa67c, 0xa67d,
+ 0xa6f0, 0xa6f1,
+ 0xa802, 0xa802,
+ 0xa806, 0xa806,
+ 0xa80b, 0xa80b,
+ 0xa823, 0xa827,
+ 0xa880, 0xa881,
+ 0xa8b4, 0xa8c4,
+ 0xa8e0, 0xa8f1,
+ 0xa926, 0xa92d,
+ 0xa947, 0xa953,
+ 0xa980, 0xa983,
+ 0xa9b3, 0xa9c0,
+ 0xaa29, 0xaa36,
+ 0xaa43, 0xaa43,
+ 0xaa4c, 0xaa4d,
+ 0xaa7b, 0xaa7b,
+ 0xaab0, 0xaab0,
+ 0xaab2, 0xaab4,
+ 0xaab7, 0xaab8,
+ 0xaabe, 0xaabf,
+ 0xaac1, 0xaac1,
+ 0xabe3, 0xabea,
+ 0xabec, 0xabed,
+ 0xfb1e, 0xfb1e,
+ 0xfe00, 0xfe0f,
+ 0xfe20, 0xfe26,
+ 0x101fd, 0x101fd,
+ 0x10a01, 0x10a03,
+ 0x10a05, 0x10a06,
+ 0x10a0c, 0x10a0f,
+ 0x10a38, 0x10a3a,
+ 0x10a3f, 0x10a3f,
+ 0x11000, 0x11002,
+ 0x11038, 0x11046,
+ 0x11080, 0x11082,
+ 0x110b0, 0x110ba,
+ 0x1d165, 0x1d169,
+ 0x1d16d, 0x1d172,
+ 0x1d17b, 0x1d182,
+ 0x1d185, 0x1d18b,
+ 0x1d1aa, 0x1d1ad,
+ 0x1d242, 0x1d244,
+ 0xe0100, 0xe01ef,
+}; /* CR_M */
+
+/* 'Mc': General Category */
+static const OnigCodePoint CR_Mc[] = {
+ 113,
+ 0x0903, 0x0903,
+ 0x093b, 0x093b,
+ 0x093e, 0x0940,
+ 0x0949, 0x094c,
+ 0x094e, 0x094f,
+ 0x0982, 0x0983,
+ 0x09be, 0x09c0,
+ 0x09c7, 0x09c8,
+ 0x09cb, 0x09cc,
+ 0x09d7, 0x09d7,
+ 0x0a03, 0x0a03,
+ 0x0a3e, 0x0a40,
+ 0x0a83, 0x0a83,
+ 0x0abe, 0x0ac0,
+ 0x0ac9, 0x0ac9,
+ 0x0acb, 0x0acc,
+ 0x0b02, 0x0b03,
+ 0x0b3e, 0x0b3e,
+ 0x0b40, 0x0b40,
+ 0x0b47, 0x0b48,
+ 0x0b4b, 0x0b4c,
+ 0x0b57, 0x0b57,
+ 0x0bbe, 0x0bbf,
+ 0x0bc1, 0x0bc2,
+ 0x0bc6, 0x0bc8,
+ 0x0bca, 0x0bcc,
+ 0x0bd7, 0x0bd7,
+ 0x0c01, 0x0c03,
+ 0x0c41, 0x0c44,
+ 0x0c82, 0x0c83,
+ 0x0cbe, 0x0cbe,
+ 0x0cc0, 0x0cc4,
+ 0x0cc7, 0x0cc8,
+ 0x0cca, 0x0ccb,
+ 0x0cd5, 0x0cd6,
+ 0x0d02, 0x0d03,
+ 0x0d3e, 0x0d40,
+ 0x0d46, 0x0d48,
+ 0x0d4a, 0x0d4c,
+ 0x0d57, 0x0d57,
+ 0x0d82, 0x0d83,
+ 0x0dcf, 0x0dd1,
+ 0x0dd8, 0x0ddf,
+ 0x0df2, 0x0df3,
+ 0x0f3e, 0x0f3f,
+ 0x0f7f, 0x0f7f,
+ 0x102b, 0x102c,
+ 0x1031, 0x1031,
+ 0x1038, 0x1038,
+ 0x103b, 0x103c,
+ 0x1056, 0x1057,
+ 0x1062, 0x1064,
+ 0x1067, 0x106d,
+ 0x1083, 0x1084,
+ 0x1087, 0x108c,
+ 0x108f, 0x108f,
+ 0x109a, 0x109c,
+ 0x17b6, 0x17b6,
+ 0x17be, 0x17c5,
+ 0x17c7, 0x17c8,
+ 0x1923, 0x1926,
+ 0x1929, 0x192b,
+ 0x1930, 0x1931,
+ 0x1933, 0x1938,
+ 0x19b0, 0x19c0,
+ 0x19c8, 0x19c9,
+ 0x1a19, 0x1a1b,
+ 0x1a55, 0x1a55,
+ 0x1a57, 0x1a57,
+ 0x1a61, 0x1a61,
+ 0x1a63, 0x1a64,
+ 0x1a6d, 0x1a72,
+ 0x1b04, 0x1b04,
+ 0x1b35, 0x1b35,
+ 0x1b3b, 0x1b3b,
+ 0x1b3d, 0x1b41,
+ 0x1b43, 0x1b44,
+ 0x1b82, 0x1b82,
+ 0x1ba1, 0x1ba1,
+ 0x1ba6, 0x1ba7,
+ 0x1baa, 0x1baa,
+ 0x1be7, 0x1be7,
+ 0x1bea, 0x1bec,
+ 0x1bee, 0x1bee,
+ 0x1bf2, 0x1bf3,
+ 0x1c24, 0x1c2b,
+ 0x1c34, 0x1c35,
+ 0x1ce1, 0x1ce1,
+ 0x1cf2, 0x1cf2,
+ 0xa823, 0xa824,
+ 0xa827, 0xa827,
+ 0xa880, 0xa881,
+ 0xa8b4, 0xa8c3,
+ 0xa952, 0xa953,
+ 0xa983, 0xa983,
+ 0xa9b4, 0xa9b5,
+ 0xa9ba, 0xa9bb,
+ 0xa9bd, 0xa9c0,
+ 0xaa2f, 0xaa30,
+ 0xaa33, 0xaa34,
+ 0xaa4d, 0xaa4d,
+ 0xaa7b, 0xaa7b,
+ 0xabe3, 0xabe4,
+ 0xabe6, 0xabe7,
+ 0xabe9, 0xabea,
+ 0xabec, 0xabec,
+ 0x11000, 0x11000,
+ 0x11002, 0x11002,
+ 0x11082, 0x11082,
+ 0x110b0, 0x110b2,
+ 0x110b7, 0x110b8,
+ 0x1d165, 0x1d166,
+ 0x1d16d, 0x1d172,
+}; /* CR_Mc */
+
+/* 'Me': General Category */
+static const OnigCodePoint CR_Me[] = {
+ 4,
+ 0x0488, 0x0489,
+ 0x20dd, 0x20e0,
+ 0x20e2, 0x20e4,
+ 0xa670, 0xa672,
+}; /* CR_Me */
+
+/* 'Mn': General Category */
+static const OnigCodePoint CR_Mn[] = {
+ 203,
+ 0x0300, 0x036f,
+ 0x0483, 0x0487,
+ 0x0591, 0x05bd,
+ 0x05bf, 0x05bf,
+ 0x05c1, 0x05c2,
+ 0x05c4, 0x05c5,
+ 0x05c7, 0x05c7,
+ 0x0610, 0x061a,
+ 0x064b, 0x065f,
+ 0x0670, 0x0670,
+ 0x06d6, 0x06dc,
+ 0x06df, 0x06e4,
+ 0x06e7, 0x06e8,
+ 0x06ea, 0x06ed,
+ 0x0711, 0x0711,
+ 0x0730, 0x074a,
+ 0x07a6, 0x07b0,
+ 0x07eb, 0x07f3,
+ 0x0816, 0x0819,
+ 0x081b, 0x0823,
+ 0x0825, 0x0827,
+ 0x0829, 0x082d,
+ 0x0859, 0x085b,
+ 0x0900, 0x0902,
+ 0x093a, 0x093a,
+ 0x093c, 0x093c,
+ 0x0941, 0x0948,
+ 0x094d, 0x094d,
+ 0x0951, 0x0957,
+ 0x0962, 0x0963,
+ 0x0981, 0x0981,
+ 0x09bc, 0x09bc,
+ 0x09c1, 0x09c4,
+ 0x09cd, 0x09cd,
+ 0x09e2, 0x09e3,
+ 0x0a01, 0x0a02,
+ 0x0a3c, 0x0a3c,
+ 0x0a41, 0x0a42,
+ 0x0a47, 0x0a48,
+ 0x0a4b, 0x0a4d,
+ 0x0a51, 0x0a51,
+ 0x0a70, 0x0a71,
+ 0x0a75, 0x0a75,
+ 0x0a81, 0x0a82,
+ 0x0abc, 0x0abc,
+ 0x0ac1, 0x0ac5,
+ 0x0ac7, 0x0ac8,
+ 0x0acd, 0x0acd,
+ 0x0ae2, 0x0ae3,
+ 0x0b01, 0x0b01,
+ 0x0b3c, 0x0b3c,
+ 0x0b3f, 0x0b3f,
+ 0x0b41, 0x0b44,
+ 0x0b4d, 0x0b4d,
+ 0x0b56, 0x0b56,
+ 0x0b62, 0x0b63,
+ 0x0b82, 0x0b82,
+ 0x0bc0, 0x0bc0,
+ 0x0bcd, 0x0bcd,
+ 0x0c3e, 0x0c40,
+ 0x0c46, 0x0c48,
+ 0x0c4a, 0x0c4d,
+ 0x0c55, 0x0c56,
+ 0x0c62, 0x0c63,
+ 0x0cbc, 0x0cbc,
+ 0x0cbf, 0x0cbf,
+ 0x0cc6, 0x0cc6,
+ 0x0ccc, 0x0ccd,
+ 0x0ce2, 0x0ce3,
+ 0x0d41, 0x0d44,
+ 0x0d4d, 0x0d4d,
+ 0x0d62, 0x0d63,
+ 0x0dca, 0x0dca,
+ 0x0dd2, 0x0dd4,
+ 0x0dd6, 0x0dd6,
+ 0x0e31, 0x0e31,
+ 0x0e34, 0x0e3a,
+ 0x0e47, 0x0e4e,
+ 0x0eb1, 0x0eb1,
+ 0x0eb4, 0x0eb9,
+ 0x0ebb, 0x0ebc,
+ 0x0ec8, 0x0ecd,
+ 0x0f18, 0x0f19,
+ 0x0f35, 0x0f35,
+ 0x0f37, 0x0f37,
+ 0x0f39, 0x0f39,
+ 0x0f71, 0x0f7e,
+ 0x0f80, 0x0f84,
+ 0x0f86, 0x0f87,
+ 0x0f8d, 0x0f97,
+ 0x0f99, 0x0fbc,
+ 0x0fc6, 0x0fc6,
+ 0x102d, 0x1030,
+ 0x1032, 0x1037,
+ 0x1039, 0x103a,
+ 0x103d, 0x103e,
+ 0x1058, 0x1059,
+ 0x105e, 0x1060,
+ 0x1071, 0x1074,
+ 0x1082, 0x1082,
+ 0x1085, 0x1086,
+ 0x108d, 0x108d,
+ 0x109d, 0x109d,
+ 0x135d, 0x135f,
+ 0x1712, 0x1714,
+ 0x1732, 0x1734,
+ 0x1752, 0x1753,
+ 0x1772, 0x1773,
+ 0x17b7, 0x17bd,
+ 0x17c6, 0x17c6,
+ 0x17c9, 0x17d3,
+ 0x17dd, 0x17dd,
+ 0x180b, 0x180d,
+ 0x18a9, 0x18a9,
+ 0x1920, 0x1922,
+ 0x1927, 0x1928,
+ 0x1932, 0x1932,
+ 0x1939, 0x193b,
+ 0x1a17, 0x1a18,
+ 0x1a56, 0x1a56,
+ 0x1a58, 0x1a5e,
+ 0x1a60, 0x1a60,
+ 0x1a62, 0x1a62,
+ 0x1a65, 0x1a6c,
+ 0x1a73, 0x1a7c,
+ 0x1a7f, 0x1a7f,
+ 0x1b00, 0x1b03,
+ 0x1b34, 0x1b34,
+ 0x1b36, 0x1b3a,
+ 0x1b3c, 0x1b3c,
+ 0x1b42, 0x1b42,
+ 0x1b6b, 0x1b73,
+ 0x1b80, 0x1b81,
+ 0x1ba2, 0x1ba5,
+ 0x1ba8, 0x1ba9,
+ 0x1be6, 0x1be6,
+ 0x1be8, 0x1be9,
+ 0x1bed, 0x1bed,
+ 0x1bef, 0x1bf1,
+ 0x1c2c, 0x1c33,
+ 0x1c36, 0x1c37,
+ 0x1cd0, 0x1cd2,
+ 0x1cd4, 0x1ce0,
+ 0x1ce2, 0x1ce8,
+ 0x1ced, 0x1ced,
+ 0x1dc0, 0x1de6,
+ 0x1dfc, 0x1dff,
+ 0x20d0, 0x20dc,
+ 0x20e1, 0x20e1,
+ 0x20e5, 0x20f0,
+ 0x2cef, 0x2cf1,
+ 0x2d7f, 0x2d7f,
+ 0x2de0, 0x2dff,
+ 0x302a, 0x302f,
+ 0x3099, 0x309a,
+ 0xa66f, 0xa66f,
+ 0xa67c, 0xa67d,
+ 0xa6f0, 0xa6f1,
+ 0xa802, 0xa802,
+ 0xa806, 0xa806,
+ 0xa80b, 0xa80b,
+ 0xa825, 0xa826,
+ 0xa8c4, 0xa8c4,
+ 0xa8e0, 0xa8f1,
+ 0xa926, 0xa92d,
+ 0xa947, 0xa951,
+ 0xa980, 0xa982,
+ 0xa9b3, 0xa9b3,
+ 0xa9b6, 0xa9b9,
+ 0xa9bc, 0xa9bc,
+ 0xaa29, 0xaa2e,
+ 0xaa31, 0xaa32,
+ 0xaa35, 0xaa36,
+ 0xaa43, 0xaa43,
+ 0xaa4c, 0xaa4c,
+ 0xaab0, 0xaab0,
+ 0xaab2, 0xaab4,
+ 0xaab7, 0xaab8,
+ 0xaabe, 0xaabf,
+ 0xaac1, 0xaac1,
+ 0xabe5, 0xabe5,
+ 0xabe8, 0xabe8,
+ 0xabed, 0xabed,
+ 0xfb1e, 0xfb1e,
+ 0xfe00, 0xfe0f,
+ 0xfe20, 0xfe26,
+ 0x101fd, 0x101fd,
+ 0x10a01, 0x10a03,
+ 0x10a05, 0x10a06,
+ 0x10a0c, 0x10a0f,
+ 0x10a38, 0x10a3a,
+ 0x10a3f, 0x10a3f,
+ 0x11001, 0x11001,
+ 0x11038, 0x11046,
+ 0x11080, 0x11081,
+ 0x110b3, 0x110b6,
+ 0x110b9, 0x110ba,
+ 0x1d167, 0x1d169,
+ 0x1d17b, 0x1d182,
+ 0x1d185, 0x1d18b,
+ 0x1d1aa, 0x1d1ad,
+ 0x1d242, 0x1d244,
+ 0xe0100, 0xe01ef,
+}; /* CR_Mn */
+
+/* 'N': Major Category */
+static const OnigCodePoint CR_N[] = {
+ 83,
+ 0x0030, 0x0039,
+ 0x00b2, 0x00b3,
+ 0x00b9, 0x00b9,
+ 0x00bc, 0x00be,
+ 0x0660, 0x0669,
+ 0x06f0, 0x06f9,
+ 0x07c0, 0x07c9,
+ 0x0966, 0x096f,
+ 0x09e6, 0x09ef,
+ 0x09f4, 0x09f9,
+ 0x0a66, 0x0a6f,
+ 0x0ae6, 0x0aef,
+ 0x0b66, 0x0b6f,
+ 0x0b72, 0x0b77,
+ 0x0be6, 0x0bf2,
+ 0x0c66, 0x0c6f,
+ 0x0c78, 0x0c7e,
+ 0x0ce6, 0x0cef,
+ 0x0d66, 0x0d75,
+ 0x0e50, 0x0e59,
+ 0x0ed0, 0x0ed9,
+ 0x0f20, 0x0f33,
+ 0x1040, 0x1049,
+ 0x1090, 0x1099,
+ 0x1369, 0x137c,
+ 0x16ee, 0x16f0,
+ 0x17e0, 0x17e9,
+ 0x17f0, 0x17f9,
+ 0x1810, 0x1819,
+ 0x1946, 0x194f,
+ 0x19d0, 0x19da,
+ 0x1a80, 0x1a89,
+ 0x1a90, 0x1a99,
+ 0x1b50, 0x1b59,
+ 0x1bb0, 0x1bb9,
+ 0x1c40, 0x1c49,
+ 0x1c50, 0x1c59,
+ 0x2070, 0x2070,
+ 0x2074, 0x2079,
+ 0x2080, 0x2089,
+ 0x2150, 0x2182,
+ 0x2185, 0x2189,
+ 0x2460, 0x249b,
+ 0x24ea, 0x24ff,
+ 0x2776, 0x2793,
+ 0x2cfd, 0x2cfd,
+ 0x3007, 0x3007,
+ 0x3021, 0x3029,
+ 0x3038, 0x303a,
+ 0x3192, 0x3195,
+ 0x3220, 0x3229,
+ 0x3251, 0x325f,
+ 0x3280, 0x3289,
+ 0x32b1, 0x32bf,
+ 0xa620, 0xa629,
+ 0xa6e6, 0xa6ef,
+ 0xa830, 0xa835,
+ 0xa8d0, 0xa8d9,
+ 0xa900, 0xa909,
+ 0xa9d0, 0xa9d9,
+ 0xaa50, 0xaa59,
+ 0xabf0, 0xabf9,
+ 0xff10, 0xff19,
+ 0x10107, 0x10133,
+ 0x10140, 0x10178,
+ 0x1018a, 0x1018a,
+ 0x10320, 0x10323,
+ 0x10341, 0x10341,
+ 0x1034a, 0x1034a,
+ 0x103d1, 0x103d5,
+ 0x104a0, 0x104a9,
+ 0x10858, 0x1085f,
+ 0x10916, 0x1091b,
+ 0x10a40, 0x10a47,
+ 0x10a7d, 0x10a7e,
+ 0x10b58, 0x10b5f,
+ 0x10b78, 0x10b7f,
+ 0x10e60, 0x10e7e,
+ 0x11052, 0x1106f,
+ 0x12400, 0x12462,
+ 0x1d360, 0x1d371,
+ 0x1d7ce, 0x1d7ff,
+ 0x1f100, 0x1f10a,
+}; /* CR_N */
+
+/* 'Nd': General Category */
+static const OnigCodePoint CR_Nd[] = {
+ 38,
+ 0x0030, 0x0039,
+ 0x0660, 0x0669,
+ 0x06f0, 0x06f9,
+ 0x07c0, 0x07c9,
+ 0x0966, 0x096f,
+ 0x09e6, 0x09ef,
+ 0x0a66, 0x0a6f,
+ 0x0ae6, 0x0aef,
+ 0x0b66, 0x0b6f,
+ 0x0be6, 0x0bef,
+ 0x0c66, 0x0c6f,
+ 0x0ce6, 0x0cef,
+ 0x0d66, 0x0d6f,
+ 0x0e50, 0x0e59,
+ 0x0ed0, 0x0ed9,
+ 0x0f20, 0x0f29,
+ 0x1040, 0x1049,
+ 0x1090, 0x1099,
+ 0x17e0, 0x17e9,
+ 0x1810, 0x1819,
+ 0x1946, 0x194f,
+ 0x19d0, 0x19d9,
+ 0x1a80, 0x1a89,
+ 0x1a90, 0x1a99,
+ 0x1b50, 0x1b59,
+ 0x1bb0, 0x1bb9,
+ 0x1c40, 0x1c49,
+ 0x1c50, 0x1c59,
+ 0xa620, 0xa629,
+ 0xa8d0, 0xa8d9,
+ 0xa900, 0xa909,
+ 0xa9d0, 0xa9d9,
+ 0xaa50, 0xaa59,
+ 0xabf0, 0xabf9,
+ 0xff10, 0xff19,
+ 0x104a0, 0x104a9,
+ 0x11066, 0x1106f,
+ 0x1d7ce, 0x1d7ff,
+}; /* CR_Nd */
+
+/* 'Nl': General Category */
+static const OnigCodePoint CR_Nl[] = {
+ 12,
+ 0x16ee, 0x16f0,
+ 0x2160, 0x2182,
+ 0x2185, 0x2188,
+ 0x3007, 0x3007,
+ 0x3021, 0x3029,
+ 0x3038, 0x303a,
+ 0xa6e6, 0xa6ef,
+ 0x10140, 0x10174,
+ 0x10341, 0x10341,
+ 0x1034a, 0x1034a,
+ 0x103d1, 0x103d5,
+ 0x12400, 0x12462,
+}; /* CR_Nl */
+
+/* 'No': General Category */
+static const OnigCodePoint CR_No[] = {
+ 41,
+ 0x00b2, 0x00b3,
+ 0x00b9, 0x00b9,
+ 0x00bc, 0x00be,
+ 0x09f4, 0x09f9,
+ 0x0b72, 0x0b77,
+ 0x0bf0, 0x0bf2,
+ 0x0c78, 0x0c7e,
+ 0x0d70, 0x0d75,
+ 0x0f2a, 0x0f33,
+ 0x1369, 0x137c,
+ 0x17f0, 0x17f9,
+ 0x19da, 0x19da,
+ 0x2070, 0x2070,
+ 0x2074, 0x2079,
+ 0x2080, 0x2089,
+ 0x2150, 0x215f,
+ 0x2189, 0x2189,
+ 0x2460, 0x249b,
+ 0x24ea, 0x24ff,
+ 0x2776, 0x2793,
+ 0x2cfd, 0x2cfd,
+ 0x3192, 0x3195,
+ 0x3220, 0x3229,
+ 0x3251, 0x325f,
+ 0x3280, 0x3289,
+ 0x32b1, 0x32bf,
+ 0xa830, 0xa835,
+ 0x10107, 0x10133,
+ 0x10175, 0x10178,
+ 0x1018a, 0x1018a,
+ 0x10320, 0x10323,
+ 0x10858, 0x1085f,
+ 0x10916, 0x1091b,
+ 0x10a40, 0x10a47,
+ 0x10a7d, 0x10a7e,
+ 0x10b58, 0x10b5f,
+ 0x10b78, 0x10b7f,
+ 0x10e60, 0x10e7e,
+ 0x11052, 0x11065,
+ 0x1d360, 0x1d371,
+ 0x1f100, 0x1f10a,
+}; /* CR_No */
+
+/* 'P': Major Category */
+static const OnigCodePoint CR_P[] = {
+ 133,
+ 0x0021, 0x0023,
+ 0x0025, 0x002a,
+ 0x002c, 0x002f,
+ 0x003a, 0x003b,
+ 0x003f, 0x0040,
+ 0x005b, 0x005d,
+ 0x005f, 0x005f,
+ 0x007b, 0x007b,
+ 0x007d, 0x007d,
+ 0x00a1, 0x00a1,
+ 0x00ab, 0x00ab,
+ 0x00b7, 0x00b7,
+ 0x00bb, 0x00bb,
+ 0x00bf, 0x00bf,
+ 0x037e, 0x037e,
+ 0x0387, 0x0387,
+ 0x055a, 0x055f,
+ 0x0589, 0x058a,
+ 0x05be, 0x05be,
+ 0x05c0, 0x05c0,
+ 0x05c3, 0x05c3,
+ 0x05c6, 0x05c6,
+ 0x05f3, 0x05f4,
+ 0x0609, 0x060a,
+ 0x060c, 0x060d,
+ 0x061b, 0x061b,
+ 0x061e, 0x061f,
+ 0x066a, 0x066d,
+ 0x06d4, 0x06d4,
+ 0x0700, 0x070d,
+ 0x07f7, 0x07f9,
+ 0x0830, 0x083e,
+ 0x085e, 0x085e,
+ 0x0964, 0x0965,
+ 0x0970, 0x0970,
+ 0x0df4, 0x0df4,
+ 0x0e4f, 0x0e4f,
+ 0x0e5a, 0x0e5b,
+ 0x0f04, 0x0f12,
+ 0x0f3a, 0x0f3d,
+ 0x0f85, 0x0f85,
+ 0x0fd0, 0x0fd4,
+ 0x0fd9, 0x0fda,
+ 0x104a, 0x104f,
+ 0x10fb, 0x10fb,
+ 0x1361, 0x1368,
+ 0x1400, 0x1400,
+ 0x166d, 0x166e,
+ 0x169b, 0x169c,
+ 0x16eb, 0x16ed,
+ 0x1735, 0x1736,
+ 0x17d4, 0x17d6,
+ 0x17d8, 0x17da,
+ 0x1800, 0x180a,
+ 0x1944, 0x1945,
+ 0x1a1e, 0x1a1f,
+ 0x1aa0, 0x1aa6,
+ 0x1aa8, 0x1aad,
+ 0x1b5a, 0x1b60,
+ 0x1bfc, 0x1bff,
+ 0x1c3b, 0x1c3f,
+ 0x1c7e, 0x1c7f,
+ 0x1cd3, 0x1cd3,
+ 0x2010, 0x2027,
+ 0x2030, 0x2043,
+ 0x2045, 0x2051,
+ 0x2053, 0x205e,
+ 0x207d, 0x207e,
+ 0x208d, 0x208e,
+ 0x2329, 0x232a,
+ 0x2768, 0x2775,
+ 0x27c5, 0x27c6,
+ 0x27e6, 0x27ef,
+ 0x2983, 0x2998,
+ 0x29d8, 0x29db,
+ 0x29fc, 0x29fd,
+ 0x2cf9, 0x2cfc,
+ 0x2cfe, 0x2cff,
+ 0x2d70, 0x2d70,
+ 0x2e00, 0x2e2e,
+ 0x2e30, 0x2e31,
+ 0x3001, 0x3003,
+ 0x3008, 0x3011,
+ 0x3014, 0x301f,
+ 0x3030, 0x3030,
+ 0x303d, 0x303d,
+ 0x30a0, 0x30a0,
+ 0x30fb, 0x30fb,
+ 0xa4fe, 0xa4ff,
+ 0xa60d, 0xa60f,
+ 0xa673, 0xa673,
+ 0xa67e, 0xa67e,
+ 0xa6f2, 0xa6f7,
+ 0xa874, 0xa877,
+ 0xa8ce, 0xa8cf,
+ 0xa8f8, 0xa8fa,
+ 0xa92e, 0xa92f,
+ 0xa95f, 0xa95f,
+ 0xa9c1, 0xa9cd,
+ 0xa9de, 0xa9df,
+ 0xaa5c, 0xaa5f,
+ 0xaade, 0xaadf,
+ 0xabeb, 0xabeb,
+ 0xfd3e, 0xfd3f,
+ 0xfe10, 0xfe19,
+ 0xfe30, 0xfe52,
+ 0xfe54, 0xfe61,
+ 0xfe63, 0xfe63,
+ 0xfe68, 0xfe68,
+ 0xfe6a, 0xfe6b,
+ 0xff01, 0xff03,
+ 0xff05, 0xff0a,
+ 0xff0c, 0xff0f,
+ 0xff1a, 0xff1b,
+ 0xff1f, 0xff20,
+ 0xff3b, 0xff3d,
+ 0xff3f, 0xff3f,
+ 0xff5b, 0xff5b,
+ 0xff5d, 0xff5d,
+ 0xff5f, 0xff65,
+ 0x10100, 0x10101,
+ 0x1039f, 0x1039f,
+ 0x103d0, 0x103d0,
+ 0x10857, 0x10857,
+ 0x1091f, 0x1091f,
+ 0x1093f, 0x1093f,
+ 0x10a50, 0x10a58,
+ 0x10a7f, 0x10a7f,
+ 0x10b39, 0x10b3f,
+ 0x11047, 0x1104d,
+ 0x110bb, 0x110bc,
+ 0x110be, 0x110c1,
+ 0x12470, 0x12473,
+}; /* CR_P */
+
+/* 'Pc': General Category */
+static const OnigCodePoint CR_Pc[] = {
+ 6,
+ 0x005f, 0x005f,
+ 0x203f, 0x2040,
+ 0x2054, 0x2054,
+ 0xfe33, 0xfe34,
+ 0xfe4d, 0xfe4f,
+ 0xff3f, 0xff3f,
+}; /* CR_Pc */
+
+/* 'Pd': General Category */
+static const OnigCodePoint CR_Pd[] = {
+ 15,
+ 0x002d, 0x002d,
+ 0x058a, 0x058a,
+ 0x05be, 0x05be,
+ 0x1400, 0x1400,
+ 0x1806, 0x1806,
+ 0x2010, 0x2015,
+ 0x2e17, 0x2e17,
+ 0x2e1a, 0x2e1a,
+ 0x301c, 0x301c,
+ 0x3030, 0x3030,
+ 0x30a0, 0x30a0,
+ 0xfe31, 0xfe32,
+ 0xfe58, 0xfe58,
+ 0xfe63, 0xfe63,
+ 0xff0d, 0xff0d,
+}; /* CR_Pd */
+
+/* 'Pe': General Category */
+static const OnigCodePoint CR_Pe[] = {
+ 70,
+ 0x0029, 0x0029,
+ 0x005d, 0x005d,
+ 0x007d, 0x007d,
+ 0x0f3b, 0x0f3b,
+ 0x0f3d, 0x0f3d,
+ 0x169c, 0x169c,
+ 0x2046, 0x2046,
+ 0x207e, 0x207e,
+ 0x208e, 0x208e,
+ 0x232a, 0x232a,
+ 0x2769, 0x2769,
+ 0x276b, 0x276b,
+ 0x276d, 0x276d,
+ 0x276f, 0x276f,
+ 0x2771, 0x2771,
+ 0x2773, 0x2773,
+ 0x2775, 0x2775,
+ 0x27c6, 0x27c6,
+ 0x27e7, 0x27e7,
+ 0x27e9, 0x27e9,
+ 0x27eb, 0x27eb,
+ 0x27ed, 0x27ed,
+ 0x27ef, 0x27ef,
+ 0x2984, 0x2984,
+ 0x2986, 0x2986,
+ 0x2988, 0x2988,
+ 0x298a, 0x298a,
+ 0x298c, 0x298c,
+ 0x298e, 0x298e,
+ 0x2990, 0x2990,
+ 0x2992, 0x2992,
+ 0x2994, 0x2994,
+ 0x2996, 0x2996,
+ 0x2998, 0x2998,
+ 0x29d9, 0x29d9,
+ 0x29db, 0x29db,
+ 0x29fd, 0x29fd,
+ 0x2e23, 0x2e23,
+ 0x2e25, 0x2e25,
+ 0x2e27, 0x2e27,
+ 0x2e29, 0x2e29,
+ 0x3009, 0x3009,
+ 0x300b, 0x300b,
+ 0x300d, 0x300d,
+ 0x300f, 0x300f,
+ 0x3011, 0x3011,
+ 0x3015, 0x3015,
+ 0x3017, 0x3017,
+ 0x3019, 0x3019,
+ 0x301b, 0x301b,
+ 0x301e, 0x301f,
+ 0xfd3f, 0xfd3f,
+ 0xfe18, 0xfe18,
+ 0xfe36, 0xfe36,
+ 0xfe38, 0xfe38,
+ 0xfe3a, 0xfe3a,
+ 0xfe3c, 0xfe3c,
+ 0xfe3e, 0xfe3e,
+ 0xfe40, 0xfe40,
+ 0xfe42, 0xfe42,
+ 0xfe44, 0xfe44,
+ 0xfe48, 0xfe48,
+ 0xfe5a, 0xfe5a,
+ 0xfe5c, 0xfe5c,
+ 0xfe5e, 0xfe5e,
+ 0xff09, 0xff09,
+ 0xff3d, 0xff3d,
+ 0xff5d, 0xff5d,
+ 0xff60, 0xff60,
+ 0xff63, 0xff63,
+}; /* CR_Pe */
+
+/* 'Pf': General Category */
+static const OnigCodePoint CR_Pf[] = {
+ 10,
+ 0x00bb, 0x00bb,
+ 0x2019, 0x2019,
+ 0x201d, 0x201d,
+ 0x203a, 0x203a,
+ 0x2e03, 0x2e03,
+ 0x2e05, 0x2e05,
+ 0x2e0a, 0x2e0a,
+ 0x2e0d, 0x2e0d,
+ 0x2e1d, 0x2e1d,
+ 0x2e21, 0x2e21,
+}; /* CR_Pf */
+
+/* 'Pi': General Category */
+static const OnigCodePoint CR_Pi[] = {
+ 11,
+ 0x00ab, 0x00ab,
+ 0x2018, 0x2018,
+ 0x201b, 0x201c,
+ 0x201f, 0x201f,
+ 0x2039, 0x2039,
+ 0x2e02, 0x2e02,
+ 0x2e04, 0x2e04,
+ 0x2e09, 0x2e09,
+ 0x2e0c, 0x2e0c,
+ 0x2e1c, 0x2e1c,
+ 0x2e20, 0x2e20,
+}; /* CR_Pi */
+
+/* 'Po': General Category */
+static const OnigCodePoint CR_Po[] = {
+ 128,
+ 0x0021, 0x0023,
+ 0x0025, 0x0027,
+ 0x002a, 0x002a,
+ 0x002c, 0x002c,
+ 0x002e, 0x002f,
+ 0x003a, 0x003b,
+ 0x003f, 0x0040,
+ 0x005c, 0x005c,
+ 0x00a1, 0x00a1,
+ 0x00b7, 0x00b7,
+ 0x00bf, 0x00bf,
+ 0x037e, 0x037e,
+ 0x0387, 0x0387,
+ 0x055a, 0x055f,
+ 0x0589, 0x0589,
+ 0x05c0, 0x05c0,
+ 0x05c3, 0x05c3,
+ 0x05c6, 0x05c6,
+ 0x05f3, 0x05f4,
+ 0x0609, 0x060a,
+ 0x060c, 0x060d,
+ 0x061b, 0x061b,
+ 0x061e, 0x061f,
+ 0x066a, 0x066d,
+ 0x06d4, 0x06d4,
+ 0x0700, 0x070d,
+ 0x07f7, 0x07f9,
+ 0x0830, 0x083e,
+ 0x085e, 0x085e,
+ 0x0964, 0x0965,
+ 0x0970, 0x0970,
+ 0x0df4, 0x0df4,
+ 0x0e4f, 0x0e4f,
+ 0x0e5a, 0x0e5b,
+ 0x0f04, 0x0f12,
+ 0x0f85, 0x0f85,
+ 0x0fd0, 0x0fd4,
+ 0x0fd9, 0x0fda,
+ 0x104a, 0x104f,
+ 0x10fb, 0x10fb,
+ 0x1361, 0x1368,
+ 0x166d, 0x166e,
+ 0x16eb, 0x16ed,
+ 0x1735, 0x1736,
+ 0x17d4, 0x17d6,
+ 0x17d8, 0x17da,
+ 0x1800, 0x1805,
+ 0x1807, 0x180a,
+ 0x1944, 0x1945,
+ 0x1a1e, 0x1a1f,
+ 0x1aa0, 0x1aa6,
+ 0x1aa8, 0x1aad,
+ 0x1b5a, 0x1b60,
+ 0x1bfc, 0x1bff,
+ 0x1c3b, 0x1c3f,
+ 0x1c7e, 0x1c7f,
+ 0x1cd3, 0x1cd3,
+ 0x2016, 0x2017,
+ 0x2020, 0x2027,
+ 0x2030, 0x2038,
+ 0x203b, 0x203e,
+ 0x2041, 0x2043,
+ 0x2047, 0x2051,
+ 0x2053, 0x2053,
+ 0x2055, 0x205e,
+ 0x2cf9, 0x2cfc,
+ 0x2cfe, 0x2cff,
+ 0x2d70, 0x2d70,
+ 0x2e00, 0x2e01,
+ 0x2e06, 0x2e08,
+ 0x2e0b, 0x2e0b,
+ 0x2e0e, 0x2e16,
+ 0x2e18, 0x2e19,
+ 0x2e1b, 0x2e1b,
+ 0x2e1e, 0x2e1f,
+ 0x2e2a, 0x2e2e,
+ 0x2e30, 0x2e31,
+ 0x3001, 0x3003,
+ 0x303d, 0x303d,
+ 0x30fb, 0x30fb,
+ 0xa4fe, 0xa4ff,
+ 0xa60d, 0xa60f,
+ 0xa673, 0xa673,
+ 0xa67e, 0xa67e,
+ 0xa6f2, 0xa6f7,
+ 0xa874, 0xa877,
+ 0xa8ce, 0xa8cf,
+ 0xa8f8, 0xa8fa,
+ 0xa92e, 0xa92f,
+ 0xa95f, 0xa95f,
+ 0xa9c1, 0xa9cd,
+ 0xa9de, 0xa9df,
+ 0xaa5c, 0xaa5f,
+ 0xaade, 0xaadf,
+ 0xabeb, 0xabeb,
+ 0xfe10, 0xfe16,
+ 0xfe19, 0xfe19,
+ 0xfe30, 0xfe30,
+ 0xfe45, 0xfe46,
+ 0xfe49, 0xfe4c,
+ 0xfe50, 0xfe52,
+ 0xfe54, 0xfe57,
+ 0xfe5f, 0xfe61,
+ 0xfe68, 0xfe68,
+ 0xfe6a, 0xfe6b,
+ 0xff01, 0xff03,
+ 0xff05, 0xff07,
+ 0xff0a, 0xff0a,
+ 0xff0c, 0xff0c,
+ 0xff0e, 0xff0f,
+ 0xff1a, 0xff1b,
+ 0xff1f, 0xff20,
+ 0xff3c, 0xff3c,
+ 0xff61, 0xff61,
+ 0xff64, 0xff65,
+ 0x10100, 0x10101,
+ 0x1039f, 0x1039f,
+ 0x103d0, 0x103d0,
+ 0x10857, 0x10857,
+ 0x1091f, 0x1091f,
+ 0x1093f, 0x1093f,
+ 0x10a50, 0x10a58,
+ 0x10a7f, 0x10a7f,
+ 0x10b39, 0x10b3f,
+ 0x11047, 0x1104d,
+ 0x110bb, 0x110bc,
+ 0x110be, 0x110c1,
+ 0x12470, 0x12473,
+}; /* CR_Po */
+
+/* 'Ps': General Category */
+static const OnigCodePoint CR_Ps[] = {
+ 72,
+ 0x0028, 0x0028,
+ 0x005b, 0x005b,
+ 0x007b, 0x007b,
+ 0x0f3a, 0x0f3a,
+ 0x0f3c, 0x0f3c,
+ 0x169b, 0x169b,
+ 0x201a, 0x201a,
+ 0x201e, 0x201e,
+ 0x2045, 0x2045,
+ 0x207d, 0x207d,
+ 0x208d, 0x208d,
+ 0x2329, 0x2329,
+ 0x2768, 0x2768,
+ 0x276a, 0x276a,
+ 0x276c, 0x276c,
+ 0x276e, 0x276e,
+ 0x2770, 0x2770,
+ 0x2772, 0x2772,
+ 0x2774, 0x2774,
+ 0x27c5, 0x27c5,
+ 0x27e6, 0x27e6,
+ 0x27e8, 0x27e8,
+ 0x27ea, 0x27ea,
+ 0x27ec, 0x27ec,
+ 0x27ee, 0x27ee,
+ 0x2983, 0x2983,
+ 0x2985, 0x2985,
+ 0x2987, 0x2987,
+ 0x2989, 0x2989,
+ 0x298b, 0x298b,
+ 0x298d, 0x298d,
+ 0x298f, 0x298f,
+ 0x2991, 0x2991,
+ 0x2993, 0x2993,
+ 0x2995, 0x2995,
+ 0x2997, 0x2997,
+ 0x29d8, 0x29d8,
+ 0x29da, 0x29da,
+ 0x29fc, 0x29fc,
+ 0x2e22, 0x2e22,
+ 0x2e24, 0x2e24,
+ 0x2e26, 0x2e26,
+ 0x2e28, 0x2e28,
+ 0x3008, 0x3008,
+ 0x300a, 0x300a,
+ 0x300c, 0x300c,
+ 0x300e, 0x300e,
+ 0x3010, 0x3010,
+ 0x3014, 0x3014,
+ 0x3016, 0x3016,
+ 0x3018, 0x3018,
+ 0x301a, 0x301a,
+ 0x301d, 0x301d,
+ 0xfd3e, 0xfd3e,
+ 0xfe17, 0xfe17,
+ 0xfe35, 0xfe35,
+ 0xfe37, 0xfe37,
+ 0xfe39, 0xfe39,
+ 0xfe3b, 0xfe3b,
+ 0xfe3d, 0xfe3d,
+ 0xfe3f, 0xfe3f,
+ 0xfe41, 0xfe41,
+ 0xfe43, 0xfe43,
+ 0xfe47, 0xfe47,
+ 0xfe59, 0xfe59,
+ 0xfe5b, 0xfe5b,
+ 0xfe5d, 0xfe5d,
+ 0xff08, 0xff08,
+ 0xff3b, 0xff3b,
+ 0xff5b, 0xff5b,
+ 0xff5f, 0xff5f,
+ 0xff62, 0xff62,
+}; /* CR_Ps */
+
+/* 'S': Major Category */
+static const OnigCodePoint CR_S[] = {
+ 208,
+ 0x0024, 0x0024,
+ 0x002b, 0x002b,
+ 0x003c, 0x003e,
+ 0x005e, 0x005e,
+ 0x0060, 0x0060,
+ 0x007c, 0x007c,
+ 0x007e, 0x007e,
+ 0x00a2, 0x00a9,
+ 0x00ac, 0x00ac,
+ 0x00ae, 0x00b1,
+ 0x00b4, 0x00b4,
+ 0x00b6, 0x00b6,
+ 0x00b8, 0x00b8,
+ 0x00d7, 0x00d7,
+ 0x00f7, 0x00f7,
+ 0x02c2, 0x02c5,
+ 0x02d2, 0x02df,
+ 0x02e5, 0x02eb,
+ 0x02ed, 0x02ed,
+ 0x02ef, 0x02ff,
+ 0x0375, 0x0375,
+ 0x0384, 0x0385,
+ 0x03f6, 0x03f6,
+ 0x0482, 0x0482,
+ 0x0606, 0x0608,
+ 0x060b, 0x060b,
+ 0x060e, 0x060f,
+ 0x06de, 0x06de,
+ 0x06e9, 0x06e9,
+ 0x06fd, 0x06fe,
+ 0x07f6, 0x07f6,
+ 0x09f2, 0x09f3,
+ 0x09fa, 0x09fb,
+ 0x0af1, 0x0af1,
+ 0x0b70, 0x0b70,
+ 0x0bf3, 0x0bfa,
+ 0x0c7f, 0x0c7f,
+ 0x0d79, 0x0d79,
+ 0x0e3f, 0x0e3f,
+ 0x0f01, 0x0f03,
+ 0x0f13, 0x0f17,
+ 0x0f1a, 0x0f1f,
+ 0x0f34, 0x0f34,
+ 0x0f36, 0x0f36,
+ 0x0f38, 0x0f38,
+ 0x0fbe, 0x0fc5,
+ 0x0fc7, 0x0fcc,
+ 0x0fce, 0x0fcf,
+ 0x0fd5, 0x0fd8,
+ 0x109e, 0x109f,
+ 0x1360, 0x1360,
+ 0x1390, 0x1399,
+ 0x17db, 0x17db,
+ 0x1940, 0x1940,
+ 0x19de, 0x19ff,
+ 0x1b61, 0x1b6a,
+ 0x1b74, 0x1b7c,
+ 0x1fbd, 0x1fbd,
+ 0x1fbf, 0x1fc1,
+ 0x1fcd, 0x1fcf,
+ 0x1fdd, 0x1fdf,
+ 0x1fed, 0x1fef,
+ 0x1ffd, 0x1ffe,
+ 0x2044, 0x2044,
+ 0x2052, 0x2052,
+ 0x207a, 0x207c,
+ 0x208a, 0x208c,
+ 0x20a0, 0x20b9,
+ 0x2100, 0x2101,
+ 0x2103, 0x2106,
+ 0x2108, 0x2109,
+ 0x2114, 0x2114,
+ 0x2116, 0x2118,
+ 0x211e, 0x2123,
+ 0x2125, 0x2125,
+ 0x2127, 0x2127,
+ 0x2129, 0x2129,
+ 0x212e, 0x212e,
+ 0x213a, 0x213b,
+ 0x2140, 0x2144,
+ 0x214a, 0x214d,
+ 0x214f, 0x214f,
+ 0x2190, 0x2328,
+ 0x232b, 0x23f3,
+ 0x2400, 0x2426,
+ 0x2440, 0x244a,
+ 0x249c, 0x24e9,
+ 0x2500, 0x26ff,
+ 0x2701, 0x2767,
+ 0x2794, 0x27c4,
+ 0x27c7, 0x27ca,
+ 0x27cc, 0x27cc,
+ 0x27ce, 0x27e5,
+ 0x27f0, 0x2982,
+ 0x2999, 0x29d7,
+ 0x29dc, 0x29fb,
+ 0x29fe, 0x2b4c,
+ 0x2b50, 0x2b59,
+ 0x2ce5, 0x2cea,
+ 0x2e80, 0x2e99,
+ 0x2e9b, 0x2ef3,
+ 0x2f00, 0x2fd5,
+ 0x2ff0, 0x2ffb,
+ 0x3004, 0x3004,
+ 0x3012, 0x3013,
+ 0x3020, 0x3020,
+ 0x3036, 0x3037,
+ 0x303e, 0x303f,
+ 0x309b, 0x309c,
+ 0x3190, 0x3191,
+ 0x3196, 0x319f,
+ 0x31c0, 0x31e3,
+ 0x3200, 0x321e,
+ 0x322a, 0x3250,
+ 0x3260, 0x327f,
+ 0x328a, 0x32b0,
+ 0x32c0, 0x32fe,
+ 0x3300, 0x33ff,
+ 0x4dc0, 0x4dff,
+ 0xa490, 0xa4c6,
+ 0xa700, 0xa716,
+ 0xa720, 0xa721,
+ 0xa789, 0xa78a,
+ 0xa828, 0xa82b,
+ 0xa836, 0xa839,
+ 0xaa77, 0xaa79,
+ 0xfb29, 0xfb29,
+ 0xfbb2, 0xfbc1,
+ 0xfdfc, 0xfdfd,
+ 0xfe62, 0xfe62,
+ 0xfe64, 0xfe66,
+ 0xfe69, 0xfe69,
+ 0xff04, 0xff04,
+ 0xff0b, 0xff0b,
+ 0xff1c, 0xff1e,
+ 0xff3e, 0xff3e,
+ 0xff40, 0xff40,
+ 0xff5c, 0xff5c,
+ 0xff5e, 0xff5e,
+ 0xffe0, 0xffe6,
+ 0xffe8, 0xffee,
+ 0xfffc, 0xfffd,
+ 0x10102, 0x10102,
+ 0x10137, 0x1013f,
+ 0x10179, 0x10189,
+ 0x10190, 0x1019b,
+ 0x101d0, 0x101fc,
+ 0x1d000, 0x1d0f5,
+ 0x1d100, 0x1d126,
+ 0x1d129, 0x1d164,
+ 0x1d16a, 0x1d16c,
+ 0x1d183, 0x1d184,
+ 0x1d18c, 0x1d1a9,
+ 0x1d1ae, 0x1d1dd,
+ 0x1d200, 0x1d241,
+ 0x1d245, 0x1d245,
+ 0x1d300, 0x1d356,
+ 0x1d6c1, 0x1d6c1,
+ 0x1d6db, 0x1d6db,
+ 0x1d6fb, 0x1d6fb,
+ 0x1d715, 0x1d715,
+ 0x1d735, 0x1d735,
+ 0x1d74f, 0x1d74f,
+ 0x1d76f, 0x1d76f,
+ 0x1d789, 0x1d789,
+ 0x1d7a9, 0x1d7a9,
+ 0x1d7c3, 0x1d7c3,
+ 0x1f000, 0x1f02b,
+ 0x1f030, 0x1f093,
+ 0x1f0a0, 0x1f0ae,
+ 0x1f0b1, 0x1f0be,
+ 0x1f0c1, 0x1f0cf,
+ 0x1f0d1, 0x1f0df,
+ 0x1f110, 0x1f12e,
+ 0x1f130, 0x1f169,
+ 0x1f170, 0x1f19a,
+ 0x1f1e6, 0x1f202,
+ 0x1f210, 0x1f23a,
+ 0x1f240, 0x1f248,
+ 0x1f250, 0x1f251,
+ 0x1f300, 0x1f320,
+ 0x1f330, 0x1f335,
+ 0x1f337, 0x1f37c,
+ 0x1f380, 0x1f393,
+ 0x1f3a0, 0x1f3c4,
+ 0x1f3c6, 0x1f3ca,
+ 0x1f3e0, 0x1f3f0,
+ 0x1f400, 0x1f43e,
+ 0x1f440, 0x1f440,
+ 0x1f442, 0x1f4f7,
+ 0x1f4f9, 0x1f4fc,
+ 0x1f500, 0x1f53d,
+ 0x1f550, 0x1f567,
+ 0x1f5fb, 0x1f5ff,
+ 0x1f601, 0x1f610,
+ 0x1f612, 0x1f614,
+ 0x1f616, 0x1f616,
+ 0x1f618, 0x1f618,
+ 0x1f61a, 0x1f61a,
+ 0x1f61c, 0x1f61e,
+ 0x1f620, 0x1f625,
+ 0x1f628, 0x1f62b,
+ 0x1f62d, 0x1f62d,
+ 0x1f630, 0x1f633,
+ 0x1f635, 0x1f640,
+ 0x1f645, 0x1f64f,
+ 0x1f680, 0x1f6c5,
+ 0x1f700, 0x1f773,
+}; /* CR_S */
+
+/* 'Sc': General Category */
+static const OnigCodePoint CR_Sc[] = {
+ 16,
+ 0x0024, 0x0024,
+ 0x00a2, 0x00a5,
+ 0x060b, 0x060b,
+ 0x09f2, 0x09f3,
+ 0x09fb, 0x09fb,
+ 0x0af1, 0x0af1,
+ 0x0bf9, 0x0bf9,
+ 0x0e3f, 0x0e3f,
+ 0x17db, 0x17db,
+ 0x20a0, 0x20b9,
+ 0xa838, 0xa838,
+ 0xfdfc, 0xfdfc,
+ 0xfe69, 0xfe69,
+ 0xff04, 0xff04,
+ 0xffe0, 0xffe1,
+ 0xffe5, 0xffe6,
+}; /* CR_Sc */
+
+/* 'Sk': General Category */
+static const OnigCodePoint CR_Sk[] = {
+ 27,
+ 0x005e, 0x005e,
+ 0x0060, 0x0060,
+ 0x00a8, 0x00a8,
+ 0x00af, 0x00af,
+ 0x00b4, 0x00b4,
+ 0x00b8, 0x00b8,
+ 0x02c2, 0x02c5,
+ 0x02d2, 0x02df,
+ 0x02e5, 0x02eb,
+ 0x02ed, 0x02ed,
+ 0x02ef, 0x02ff,
+ 0x0375, 0x0375,
+ 0x0384, 0x0385,
+ 0x1fbd, 0x1fbd,
+ 0x1fbf, 0x1fc1,
+ 0x1fcd, 0x1fcf,
+ 0x1fdd, 0x1fdf,
+ 0x1fed, 0x1fef,
+ 0x1ffd, 0x1ffe,
+ 0x309b, 0x309c,
+ 0xa700, 0xa716,
+ 0xa720, 0xa721,
+ 0xa789, 0xa78a,
+ 0xfbb2, 0xfbc1,
+ 0xff3e, 0xff3e,
+ 0xff40, 0xff40,
+ 0xffe3, 0xffe3,
+}; /* CR_Sk */
+
+/* 'Sm': General Category */
+static const OnigCodePoint CR_Sm[] = {
+ 66,
+ 0x002b, 0x002b,
+ 0x003c, 0x003e,
+ 0x007c, 0x007c,
+ 0x007e, 0x007e,
+ 0x00ac, 0x00ac,
+ 0x00b1, 0x00b1,
+ 0x00d7, 0x00d7,
+ 0x00f7, 0x00f7,
+ 0x03f6, 0x03f6,
+ 0x0606, 0x0608,
+ 0x2044, 0x2044,
+ 0x2052, 0x2052,
+ 0x207a, 0x207c,
+ 0x208a, 0x208c,
+ 0x2118, 0x2118,
+ 0x2140, 0x2144,
+ 0x214b, 0x214b,
+ 0x2190, 0x2194,
+ 0x219a, 0x219b,
+ 0x21a0, 0x21a0,
+ 0x21a3, 0x21a3,
+ 0x21a6, 0x21a6,
+ 0x21ae, 0x21ae,
+ 0x21ce, 0x21cf,
+ 0x21d2, 0x21d2,
+ 0x21d4, 0x21d4,
+ 0x21f4, 0x22ff,
+ 0x2308, 0x230b,
+ 0x2320, 0x2321,
+ 0x237c, 0x237c,
+ 0x239b, 0x23b3,
+ 0x23dc, 0x23e1,
+ 0x25b7, 0x25b7,
+ 0x25c1, 0x25c1,
+ 0x25f8, 0x25ff,
+ 0x266f, 0x266f,
+ 0x27c0, 0x27c4,
+ 0x27c7, 0x27ca,
+ 0x27cc, 0x27cc,
+ 0x27ce, 0x27e5,
+ 0x27f0, 0x27ff,
+ 0x2900, 0x2982,
+ 0x2999, 0x29d7,
+ 0x29dc, 0x29fb,
+ 0x29fe, 0x2aff,
+ 0x2b30, 0x2b44,
+ 0x2b47, 0x2b4c,
+ 0xfb29, 0xfb29,
+ 0xfe62, 0xfe62,
+ 0xfe64, 0xfe66,
+ 0xff0b, 0xff0b,
+ 0xff1c, 0xff1e,
+ 0xff5c, 0xff5c,
+ 0xff5e, 0xff5e,
+ 0xffe2, 0xffe2,
+ 0xffe9, 0xffec,
+ 0x1d6c1, 0x1d6c1,
+ 0x1d6db, 0x1d6db,
+ 0x1d6fb, 0x1d6fb,
+ 0x1d715, 0x1d715,
+ 0x1d735, 0x1d735,
+ 0x1d74f, 0x1d74f,
+ 0x1d76f, 0x1d76f,
+ 0x1d789, 0x1d789,
+ 0x1d7a9, 0x1d7a9,
+ 0x1d7c3, 0x1d7c3,
+}; /* CR_Sm */
+
+/* 'So': General Category */
+static const OnigCodePoint CR_So[] = {
+ 164,
+ 0x00a6, 0x00a7,
+ 0x00a9, 0x00a9,
+ 0x00ae, 0x00ae,
+ 0x00b0, 0x00b0,
+ 0x00b6, 0x00b6,
+ 0x0482, 0x0482,
+ 0x060e, 0x060f,
+ 0x06de, 0x06de,
+ 0x06e9, 0x06e9,
+ 0x06fd, 0x06fe,
+ 0x07f6, 0x07f6,
+ 0x09fa, 0x09fa,
+ 0x0b70, 0x0b70,
+ 0x0bf3, 0x0bf8,
+ 0x0bfa, 0x0bfa,
+ 0x0c7f, 0x0c7f,
+ 0x0d79, 0x0d79,
+ 0x0f01, 0x0f03,
+ 0x0f13, 0x0f17,
+ 0x0f1a, 0x0f1f,
+ 0x0f34, 0x0f34,
+ 0x0f36, 0x0f36,
+ 0x0f38, 0x0f38,
+ 0x0fbe, 0x0fc5,
+ 0x0fc7, 0x0fcc,
+ 0x0fce, 0x0fcf,
+ 0x0fd5, 0x0fd8,
+ 0x109e, 0x109f,
+ 0x1360, 0x1360,
+ 0x1390, 0x1399,
+ 0x1940, 0x1940,
+ 0x19de, 0x19ff,
+ 0x1b61, 0x1b6a,
+ 0x1b74, 0x1b7c,
+ 0x2100, 0x2101,
+ 0x2103, 0x2106,
+ 0x2108, 0x2109,
+ 0x2114, 0x2114,
+ 0x2116, 0x2117,
+ 0x211e, 0x2123,
+ 0x2125, 0x2125,
+ 0x2127, 0x2127,
+ 0x2129, 0x2129,
+ 0x212e, 0x212e,
+ 0x213a, 0x213b,
+ 0x214a, 0x214a,
+ 0x214c, 0x214d,
+ 0x214f, 0x214f,
+ 0x2195, 0x2199,
+ 0x219c, 0x219f,
+ 0x21a1, 0x21a2,
+ 0x21a4, 0x21a5,
+ 0x21a7, 0x21ad,
+ 0x21af, 0x21cd,
+ 0x21d0, 0x21d1,
+ 0x21d3, 0x21d3,
+ 0x21d5, 0x21f3,
+ 0x2300, 0x2307,
+ 0x230c, 0x231f,
+ 0x2322, 0x2328,
+ 0x232b, 0x237b,
+ 0x237d, 0x239a,
+ 0x23b4, 0x23db,
+ 0x23e2, 0x23f3,
+ 0x2400, 0x2426,
+ 0x2440, 0x244a,
+ 0x249c, 0x24e9,
+ 0x2500, 0x25b6,
+ 0x25b8, 0x25c0,
+ 0x25c2, 0x25f7,
+ 0x2600, 0x266e,
+ 0x2670, 0x26ff,
+ 0x2701, 0x2767,
+ 0x2794, 0x27bf,
+ 0x2800, 0x28ff,
+ 0x2b00, 0x2b2f,
+ 0x2b45, 0x2b46,
+ 0x2b50, 0x2b59,
+ 0x2ce5, 0x2cea,
+ 0x2e80, 0x2e99,
+ 0x2e9b, 0x2ef3,
+ 0x2f00, 0x2fd5,
+ 0x2ff0, 0x2ffb,
+ 0x3004, 0x3004,
+ 0x3012, 0x3013,
+ 0x3020, 0x3020,
+ 0x3036, 0x3037,
+ 0x303e, 0x303f,
+ 0x3190, 0x3191,
+ 0x3196, 0x319f,
+ 0x31c0, 0x31e3,
+ 0x3200, 0x321e,
+ 0x322a, 0x3250,
+ 0x3260, 0x327f,
+ 0x328a, 0x32b0,
+ 0x32c0, 0x32fe,
+ 0x3300, 0x33ff,
+ 0x4dc0, 0x4dff,
+ 0xa490, 0xa4c6,
+ 0xa828, 0xa82b,
+ 0xa836, 0xa837,
+ 0xa839, 0xa839,
+ 0xaa77, 0xaa79,
+ 0xfdfd, 0xfdfd,
+ 0xffe4, 0xffe4,
+ 0xffe8, 0xffe8,
+ 0xffed, 0xffee,
+ 0xfffc, 0xfffd,
+ 0x10102, 0x10102,
+ 0x10137, 0x1013f,
+ 0x10179, 0x10189,
+ 0x10190, 0x1019b,
+ 0x101d0, 0x101fc,
+ 0x1d000, 0x1d0f5,
+ 0x1d100, 0x1d126,
+ 0x1d129, 0x1d164,
+ 0x1d16a, 0x1d16c,
+ 0x1d183, 0x1d184,
+ 0x1d18c, 0x1d1a9,
+ 0x1d1ae, 0x1d1dd,
+ 0x1d200, 0x1d241,
+ 0x1d245, 0x1d245,
+ 0x1d300, 0x1d356,
+ 0x1f000, 0x1f02b,
+ 0x1f030, 0x1f093,
+ 0x1f0a0, 0x1f0ae,
+ 0x1f0b1, 0x1f0be,
+ 0x1f0c1, 0x1f0cf,
+ 0x1f0d1, 0x1f0df,
+ 0x1f110, 0x1f12e,
+ 0x1f130, 0x1f169,
+ 0x1f170, 0x1f19a,
+ 0x1f1e6, 0x1f202,
+ 0x1f210, 0x1f23a,
+ 0x1f240, 0x1f248,
+ 0x1f250, 0x1f251,
+ 0x1f300, 0x1f320,
+ 0x1f330, 0x1f335,
+ 0x1f337, 0x1f37c,
+ 0x1f380, 0x1f393,
+ 0x1f3a0, 0x1f3c4,
+ 0x1f3c6, 0x1f3ca,
+ 0x1f3e0, 0x1f3f0,
+ 0x1f400, 0x1f43e,
+ 0x1f440, 0x1f440,
+ 0x1f442, 0x1f4f7,
+ 0x1f4f9, 0x1f4fc,
+ 0x1f500, 0x1f53d,
+ 0x1f550, 0x1f567,
+ 0x1f5fb, 0x1f5ff,
+ 0x1f601, 0x1f610,
+ 0x1f612, 0x1f614,
+ 0x1f616, 0x1f616,
+ 0x1f618, 0x1f618,
+ 0x1f61a, 0x1f61a,
+ 0x1f61c, 0x1f61e,
+ 0x1f620, 0x1f625,
+ 0x1f628, 0x1f62b,
+ 0x1f62d, 0x1f62d,
+ 0x1f630, 0x1f633,
+ 0x1f635, 0x1f640,
+ 0x1f645, 0x1f64f,
+ 0x1f680, 0x1f6c5,
+ 0x1f700, 0x1f773,
+}; /* CR_So */
+
+/* 'Z': Major Category */
+static const OnigCodePoint CR_Z[] = {
+ 9,
+ 0x0020, 0x0020,
+ 0x00a0, 0x00a0,
+ 0x1680, 0x1680,
+ 0x180e, 0x180e,
+ 0x2000, 0x200a,
+ 0x2028, 0x2029,
+ 0x202f, 0x202f,
+ 0x205f, 0x205f,
+ 0x3000, 0x3000,
+}; /* CR_Z */
+
+/* 'Zl': General Category */
+static const OnigCodePoint CR_Zl[] = {
+ 1,
+ 0x2028, 0x2028,
+}; /* CR_Zl */
+
+/* 'Zp': General Category */
+static const OnigCodePoint CR_Zp[] = {
+ 1,
+ 0x2029, 0x2029,
+}; /* CR_Zp */
+
+/* 'Zs': General Category */
+static const OnigCodePoint CR_Zs[] = {
+ 8,
+ 0x0020, 0x0020,
+ 0x00a0, 0x00a0,
+ 0x1680, 0x1680,
+ 0x180e, 0x180e,
+ 0x2000, 0x200a,
+ 0x202f, 0x202f,
+ 0x205f, 0x205f,
+ 0x3000, 0x3000,
+}; /* CR_Zs */
+
+/* 'Math': Derived Property */
+static const OnigCodePoint CR_Math[] = {
+ 106,
+ 0x002b, 0x002b,
+ 0x003c, 0x003e,
+ 0x005e, 0x005e,
+ 0x007c, 0x007c,
+ 0x007e, 0x007e,
+ 0x00ac, 0x00ac,
+ 0x00b1, 0x00b1,
+ 0x00d7, 0x00d7,
+ 0x00f7, 0x00f7,
+ 0x03d0, 0x03d2,
+ 0x03d5, 0x03d5,
+ 0x03f0, 0x03f1,
+ 0x03f4, 0x03f6,
+ 0x0606, 0x0608,
+ 0x2016, 0x2016,
+ 0x2032, 0x2034,
+ 0x2040, 0x2040,
+ 0x2044, 0x2044,
+ 0x2052, 0x2052,
+ 0x2061, 0x2064,
+ 0x207a, 0x207e,
+ 0x208a, 0x208e,
+ 0x20d0, 0x20dc,
+ 0x20e1, 0x20e1,
+ 0x20e5, 0x20e6,
+ 0x20eb, 0x20ef,
+ 0x2102, 0x2102,
+ 0x2107, 0x2107,
+ 0x210a, 0x2113,
+ 0x2115, 0x2115,
+ 0x2118, 0x211d,
+ 0x2124, 0x2124,
+ 0x2128, 0x2129,
+ 0x212c, 0x212d,
+ 0x212f, 0x2131,
+ 0x2133, 0x2138,
+ 0x213c, 0x2149,
+ 0x214b, 0x214b,
+ 0x2190, 0x21a7,
+ 0x21a9, 0x21ae,
+ 0x21b0, 0x21b1,
+ 0x21b6, 0x21b7,
+ 0x21bc, 0x21db,
+ 0x21dd, 0x21dd,
+ 0x21e4, 0x21e5,
+ 0x21f4, 0x22ff,
+ 0x2308, 0x230b,
+ 0x2320, 0x2321,
+ 0x237c, 0x237c,
+ 0x239b, 0x23b5,
+ 0x23b7, 0x23b7,
+ 0x23d0, 0x23d0,
+ 0x23dc, 0x23e2,
+ 0x25a0, 0x25a1,
+ 0x25ae, 0x25b7,
+ 0x25bc, 0x25c1,
+ 0x25c6, 0x25c7,
+ 0x25ca, 0x25cb,
+ 0x25cf, 0x25d3,
+ 0x25e2, 0x25e2,
+ 0x25e4, 0x25e4,
+ 0x25e7, 0x25ec,
+ 0x25f8, 0x25ff,
+ 0x2605, 0x2606,
+ 0x2640, 0x2640,
+ 0x2642, 0x2642,
+ 0x2660, 0x2663,
+ 0x266d, 0x266f,
+ 0x27c0, 0x27ca,
+ 0x27cc, 0x27cc,
+ 0x27ce, 0x27ff,
+ 0x2900, 0x2aff,
+ 0x2b30, 0x2b44,
+ 0x2b47, 0x2b4c,
+ 0xfb29, 0xfb29,
+ 0xfe61, 0xfe66,
+ 0xfe68, 0xfe68,
+ 0xff0b, 0xff0b,
+ 0xff1c, 0xff1e,
+ 0xff3c, 0xff3c,
+ 0xff3e, 0xff3e,
+ 0xff5c, 0xff5c,
+ 0xff5e, 0xff5e,
+ 0xffe2, 0xffe2,
+ 0xffe9, 0xffec,
+ 0x1d400, 0x1d454,
+ 0x1d456, 0x1d49c,
+ 0x1d49e, 0x1d49f,
+ 0x1d4a2, 0x1d4a2,
+ 0x1d4a5, 0x1d4a6,
+ 0x1d4a9, 0x1d4ac,
+ 0x1d4ae, 0x1d4b9,
+ 0x1d4bb, 0x1d4bb,
+ 0x1d4bd, 0x1d4c3,
+ 0x1d4c5, 0x1d505,
+ 0x1d507, 0x1d50a,
+ 0x1d50d, 0x1d514,
+ 0x1d516, 0x1d51c,
+ 0x1d51e, 0x1d539,
+ 0x1d53b, 0x1d53e,
+ 0x1d540, 0x1d544,
+ 0x1d546, 0x1d546,
+ 0x1d54a, 0x1d550,
+ 0x1d552, 0x1d6a5,
+ 0x1d6a8, 0x1d7cb,
+ 0x1d7ce, 0x1d7ff,
+}; /* CR_Math */
+
+/* 'Alphabetic': Derived Property */
+static const OnigCodePoint CR_Alphabetic[] = {
+ 486,
+ 0x0041, 0x005a,
+ 0x0061, 0x007a,
+ 0x00aa, 0x00aa,
+ 0x00b5, 0x00b5,
+ 0x00ba, 0x00ba,
+ 0x00c0, 0x00d6,
+ 0x00d8, 0x00f6,
+ 0x00f8, 0x02c1,
+ 0x02c6, 0x02d1,
+ 0x02e0, 0x02e4,
+ 0x02ec, 0x02ec,
+ 0x02ee, 0x02ee,
+ 0x0345, 0x0345,
+ 0x0370, 0x0374,
+ 0x0376, 0x0377,
+ 0x037a, 0x037d,
+ 0x0386, 0x0386,
+ 0x0388, 0x038a,
+ 0x038c, 0x038c,
+ 0x038e, 0x03a1,
+ 0x03a3, 0x03f5,
+ 0x03f7, 0x0481,
+ 0x048a, 0x0527,
+ 0x0531, 0x0556,
+ 0x0559, 0x0559,
+ 0x0561, 0x0587,
+ 0x05b0, 0x05bd,
+ 0x05bf, 0x05bf,
+ 0x05c1, 0x05c2,
+ 0x05c4, 0x05c5,
+ 0x05c7, 0x05c7,
+ 0x05d0, 0x05ea,
+ 0x05f0, 0x05f2,
+ 0x0610, 0x061a,
+ 0x0620, 0x0657,
+ 0x0659, 0x065f,
+ 0x066e, 0x06d3,
+ 0x06d5, 0x06dc,
+ 0x06e1, 0x06e8,
+ 0x06ed, 0x06ef,
+ 0x06fa, 0x06fc,
+ 0x06ff, 0x06ff,
+ 0x0710, 0x073f,
+ 0x074d, 0x07b1,
+ 0x07ca, 0x07ea,
+ 0x07f4, 0x07f5,
+ 0x07fa, 0x07fa,
+ 0x0800, 0x0817,
+ 0x081a, 0x082c,
+ 0x0840, 0x0858,
+ 0x0900, 0x093b,
+ 0x093d, 0x094c,
+ 0x094e, 0x0950,
+ 0x0955, 0x0963,
+ 0x0971, 0x0977,
+ 0x0979, 0x097f,
+ 0x0981, 0x0983,
+ 0x0985, 0x098c,
+ 0x098f, 0x0990,
+ 0x0993, 0x09a8,
+ 0x09aa, 0x09b0,
+ 0x09b2, 0x09b2,
+ 0x09b6, 0x09b9,
+ 0x09bd, 0x09c4,
+ 0x09c7, 0x09c8,
+ 0x09cb, 0x09cc,
+ 0x09ce, 0x09ce,
+ 0x09d7, 0x09d7,
+ 0x09dc, 0x09dd,
+ 0x09df, 0x09e3,
+ 0x09f0, 0x09f1,
+ 0x0a01, 0x0a03,
+ 0x0a05, 0x0a0a,
+ 0x0a0f, 0x0a10,
+ 0x0a13, 0x0a28,
+ 0x0a2a, 0x0a30,
+ 0x0a32, 0x0a33,
+ 0x0a35, 0x0a36,
+ 0x0a38, 0x0a39,
+ 0x0a3e, 0x0a42,
+ 0x0a47, 0x0a48,
+ 0x0a4b, 0x0a4c,
+ 0x0a51, 0x0a51,
+ 0x0a59, 0x0a5c,
+ 0x0a5e, 0x0a5e,
+ 0x0a70, 0x0a75,
+ 0x0a81, 0x0a83,
+ 0x0a85, 0x0a8d,
+ 0x0a8f, 0x0a91,
+ 0x0a93, 0x0aa8,
+ 0x0aaa, 0x0ab0,
+ 0x0ab2, 0x0ab3,
+ 0x0ab5, 0x0ab9,
+ 0x0abd, 0x0ac5,
+ 0x0ac7, 0x0ac9,
+ 0x0acb, 0x0acc,
+ 0x0ad0, 0x0ad0,
+ 0x0ae0, 0x0ae3,
+ 0x0b01, 0x0b03,
+ 0x0b05, 0x0b0c,
+ 0x0b0f, 0x0b10,
+ 0x0b13, 0x0b28,
+ 0x0b2a, 0x0b30,
+ 0x0b32, 0x0b33,
+ 0x0b35, 0x0b39,
+ 0x0b3d, 0x0b44,
+ 0x0b47, 0x0b48,
+ 0x0b4b, 0x0b4c,
+ 0x0b56, 0x0b57,
+ 0x0b5c, 0x0b5d,
+ 0x0b5f, 0x0b63,
+ 0x0b71, 0x0b71,
+ 0x0b82, 0x0b83,
+ 0x0b85, 0x0b8a,
+ 0x0b8e, 0x0b90,
+ 0x0b92, 0x0b95,
+ 0x0b99, 0x0b9a,
+ 0x0b9c, 0x0b9c,
+ 0x0b9e, 0x0b9f,
+ 0x0ba3, 0x0ba4,
+ 0x0ba8, 0x0baa,
+ 0x0bae, 0x0bb9,
+ 0x0bbe, 0x0bc2,
+ 0x0bc6, 0x0bc8,
+ 0x0bca, 0x0bcc,
+ 0x0bd0, 0x0bd0,
+ 0x0bd7, 0x0bd7,
+ 0x0c01, 0x0c03,
+ 0x0c05, 0x0c0c,
+ 0x0c0e, 0x0c10,
+ 0x0c12, 0x0c28,
+ 0x0c2a, 0x0c33,
+ 0x0c35, 0x0c39,
+ 0x0c3d, 0x0c44,
+ 0x0c46, 0x0c48,
+ 0x0c4a, 0x0c4c,
+ 0x0c55, 0x0c56,
+ 0x0c58, 0x0c59,
+ 0x0c60, 0x0c63,
+ 0x0c82, 0x0c83,
+ 0x0c85, 0x0c8c,
+ 0x0c8e, 0x0c90,
+ 0x0c92, 0x0ca8,
+ 0x0caa, 0x0cb3,
+ 0x0cb5, 0x0cb9,
+ 0x0cbd, 0x0cc4,
+ 0x0cc6, 0x0cc8,
+ 0x0cca, 0x0ccc,
+ 0x0cd5, 0x0cd6,
+ 0x0cde, 0x0cde,
+ 0x0ce0, 0x0ce3,
+ 0x0cf1, 0x0cf2,
+ 0x0d02, 0x0d03,
+ 0x0d05, 0x0d0c,
+ 0x0d0e, 0x0d10,
+ 0x0d12, 0x0d3a,
+ 0x0d3d, 0x0d44,
+ 0x0d46, 0x0d48,
+ 0x0d4a, 0x0d4c,
+ 0x0d4e, 0x0d4e,
+ 0x0d57, 0x0d57,
+ 0x0d60, 0x0d63,
+ 0x0d7a, 0x0d7f,
+ 0x0d82, 0x0d83,
+ 0x0d85, 0x0d96,
+ 0x0d9a, 0x0db1,
+ 0x0db3, 0x0dbb,
+ 0x0dbd, 0x0dbd,
+ 0x0dc0, 0x0dc6,
+ 0x0dcf, 0x0dd4,
+ 0x0dd6, 0x0dd6,
+ 0x0dd8, 0x0ddf,
+ 0x0df2, 0x0df3,
+ 0x0e01, 0x0e3a,
+ 0x0e40, 0x0e46,
+ 0x0e4d, 0x0e4d,
+ 0x0e81, 0x0e82,
+ 0x0e84, 0x0e84,
+ 0x0e87, 0x0e88,
+ 0x0e8a, 0x0e8a,
+ 0x0e8d, 0x0e8d,
+ 0x0e94, 0x0e97,
+ 0x0e99, 0x0e9f,
+ 0x0ea1, 0x0ea3,
+ 0x0ea5, 0x0ea5,
+ 0x0ea7, 0x0ea7,
+ 0x0eaa, 0x0eab,
+ 0x0ead, 0x0eb9,
+ 0x0ebb, 0x0ebd,
+ 0x0ec0, 0x0ec4,
+ 0x0ec6, 0x0ec6,
+ 0x0ecd, 0x0ecd,
+ 0x0edc, 0x0edd,
+ 0x0f00, 0x0f00,
+ 0x0f40, 0x0f47,
+ 0x0f49, 0x0f6c,
+ 0x0f71, 0x0f81,
+ 0x0f88, 0x0f97,
+ 0x0f99, 0x0fbc,
+ 0x1000, 0x1036,
+ 0x1038, 0x1038,
+ 0x103b, 0x103f,
+ 0x1050, 0x1062,
+ 0x1065, 0x1068,
+ 0x106e, 0x1086,
+ 0x108e, 0x108e,
+ 0x109c, 0x109d,
+ 0x10a0, 0x10c5,
+ 0x10d0, 0x10fa,
+ 0x10fc, 0x10fc,
+ 0x1100, 0x1248,
+ 0x124a, 0x124d,
+ 0x1250, 0x1256,
+ 0x1258, 0x1258,
+ 0x125a, 0x125d,
+ 0x1260, 0x1288,
+ 0x128a, 0x128d,
+ 0x1290, 0x12b0,
+ 0x12b2, 0x12b5,
+ 0x12b8, 0x12be,
+ 0x12c0, 0x12c0,
+ 0x12c2, 0x12c5,
+ 0x12c8, 0x12d6,
+ 0x12d8, 0x1310,
+ 0x1312, 0x1315,
+ 0x1318, 0x135a,
+ 0x135f, 0x135f,
+ 0x1380, 0x138f,
+ 0x13a0, 0x13f4,
+ 0x1401, 0x166c,
+ 0x166f, 0x167f,
+ 0x1681, 0x169a,
+ 0x16a0, 0x16ea,
+ 0x16ee, 0x16f0,
+ 0x1700, 0x170c,
+ 0x170e, 0x1713,
+ 0x1720, 0x1733,
+ 0x1740, 0x1753,
+ 0x1760, 0x176c,
+ 0x176e, 0x1770,
+ 0x1772, 0x1773,
+ 0x1780, 0x17b3,
+ 0x17b6, 0x17c8,
+ 0x17d7, 0x17d7,
+ 0x17dc, 0x17dc,
+ 0x1820, 0x1877,
+ 0x1880, 0x18aa,
+ 0x18b0, 0x18f5,
+ 0x1900, 0x191c,
+ 0x1920, 0x192b,
+ 0x1930, 0x1938,
+ 0x1950, 0x196d,
+ 0x1970, 0x1974,
+ 0x1980, 0x19ab,
+ 0x19b0, 0x19c9,
+ 0x1a00, 0x1a1b,
+ 0x1a20, 0x1a5e,
+ 0x1a61, 0x1a74,
+ 0x1aa7, 0x1aa7,
+ 0x1b00, 0x1b33,
+ 0x1b35, 0x1b43,
+ 0x1b45, 0x1b4b,
+ 0x1b80, 0x1ba9,
+ 0x1bae, 0x1baf,
+ 0x1bc0, 0x1be5,
+ 0x1be7, 0x1bf1,
+ 0x1c00, 0x1c35,
+ 0x1c4d, 0x1c4f,
+ 0x1c5a, 0x1c7d,
+ 0x1ce9, 0x1cec,
+ 0x1cee, 0x1cf2,
+ 0x1d00, 0x1dbf,
+ 0x1e00, 0x1f15,
+ 0x1f18, 0x1f1d,
+ 0x1f20, 0x1f45,
+ 0x1f48, 0x1f4d,
+ 0x1f50, 0x1f57,
+ 0x1f59, 0x1f59,
+ 0x1f5b, 0x1f5b,
+ 0x1f5d, 0x1f5d,
+ 0x1f5f, 0x1f7d,
+ 0x1f80, 0x1fb4,
+ 0x1fb6, 0x1fbc,
+ 0x1fbe, 0x1fbe,
+ 0x1fc2, 0x1fc4,
+ 0x1fc6, 0x1fcc,
+ 0x1fd0, 0x1fd3,
+ 0x1fd6, 0x1fdb,
+ 0x1fe0, 0x1fec,
+ 0x1ff2, 0x1ff4,
+ 0x1ff6, 0x1ffc,
+ 0x2071, 0x2071,
+ 0x207f, 0x207f,
+ 0x2090, 0x209c,
+ 0x2102, 0x2102,
+ 0x2107, 0x2107,
+ 0x210a, 0x2113,
+ 0x2115, 0x2115,
+ 0x2119, 0x211d,
+ 0x2124, 0x2124,
+ 0x2126, 0x2126,
+ 0x2128, 0x2128,
+ 0x212a, 0x212d,
+ 0x212f, 0x2139,
+ 0x213c, 0x213f,
+ 0x2145, 0x2149,
+ 0x214e, 0x214e,
+ 0x2160, 0x2188,
+ 0x24b6, 0x24e9,
+ 0x2c00, 0x2c2e,
+ 0x2c30, 0x2c5e,
+ 0x2c60, 0x2ce4,
+ 0x2ceb, 0x2cee,
+ 0x2d00, 0x2d25,
+ 0x2d30, 0x2d65,
+ 0x2d6f, 0x2d6f,
+ 0x2d80, 0x2d96,
+ 0x2da0, 0x2da6,
+ 0x2da8, 0x2dae,
+ 0x2db0, 0x2db6,
+ 0x2db8, 0x2dbe,
+ 0x2dc0, 0x2dc6,
+ 0x2dc8, 0x2dce,
+ 0x2dd0, 0x2dd6,
+ 0x2dd8, 0x2dde,
+ 0x2de0, 0x2dff,
+ 0x2e2f, 0x2e2f,
+ 0x3005, 0x3007,
+ 0x3021, 0x3029,
+ 0x3031, 0x3035,
+ 0x3038, 0x303c,
+ 0x3041, 0x3096,
+ 0x309d, 0x309f,
+ 0x30a1, 0x30fa,
+ 0x30fc, 0x30ff,
+ 0x3105, 0x312d,
+ 0x3131, 0x318e,
+ 0x31a0, 0x31ba,
+ 0x31f0, 0x31ff,
+ 0x3400, 0x4db5,
+ 0x4e00, 0x9fcb,
+ 0xa000, 0xa48c,
+ 0xa4d0, 0xa4fd,
+ 0xa500, 0xa60c,
+ 0xa610, 0xa61f,
+ 0xa62a, 0xa62b,
+ 0xa640, 0xa66e,
+ 0xa67f, 0xa697,
+ 0xa6a0, 0xa6ef,
+ 0xa717, 0xa71f,
+ 0xa722, 0xa788,
+ 0xa78b, 0xa78e,
+ 0xa790, 0xa791,
+ 0xa7a0, 0xa7a9,
+ 0xa7fa, 0xa801,
+ 0xa803, 0xa805,
+ 0xa807, 0xa80a,
+ 0xa80c, 0xa827,
+ 0xa840, 0xa873,
+ 0xa880, 0xa8c3,
+ 0xa8f2, 0xa8f7,
+ 0xa8fb, 0xa8fb,
+ 0xa90a, 0xa92a,
+ 0xa930, 0xa952,
+ 0xa960, 0xa97c,
+ 0xa980, 0xa9b2,
+ 0xa9b4, 0xa9bf,
+ 0xa9cf, 0xa9cf,
+ 0xaa00, 0xaa36,
+ 0xaa40, 0xaa4d,
+ 0xaa60, 0xaa76,
+ 0xaa7a, 0xaa7a,
+ 0xaa80, 0xaabe,
+ 0xaac0, 0xaac0,
+ 0xaac2, 0xaac2,
+ 0xaadb, 0xaadd,
+ 0xab01, 0xab06,
+ 0xab09, 0xab0e,
+ 0xab11, 0xab16,
+ 0xab20, 0xab26,
+ 0xab28, 0xab2e,
+ 0xabc0, 0xabea,
+ 0xac00, 0xd7a3,
+ 0xd7b0, 0xd7c6,
+ 0xd7cb, 0xd7fb,
+ 0xf900, 0xfa2d,
+ 0xfa30, 0xfa6d,
+ 0xfa70, 0xfad9,
+ 0xfb00, 0xfb06,
+ 0xfb13, 0xfb17,
+ 0xfb1d, 0xfb28,
+ 0xfb2a, 0xfb36,
+ 0xfb38, 0xfb3c,
+ 0xfb3e, 0xfb3e,
+ 0xfb40, 0xfb41,
+ 0xfb43, 0xfb44,
+ 0xfb46, 0xfbb1,
+ 0xfbd3, 0xfd3d,
+ 0xfd50, 0xfd8f,
+ 0xfd92, 0xfdc7,
+ 0xfdf0, 0xfdfb,
+ 0xfe70, 0xfe74,
+ 0xfe76, 0xfefc,
+ 0xff21, 0xff3a,
+ 0xff41, 0xff5a,
+ 0xff66, 0xffbe,
+ 0xffc2, 0xffc7,
+ 0xffca, 0xffcf,
+ 0xffd2, 0xffd7,
+ 0xffda, 0xffdc,
+ 0x10000, 0x1000b,
+ 0x1000d, 0x10026,
+ 0x10028, 0x1003a,
+ 0x1003c, 0x1003d,
+ 0x1003f, 0x1004d,
+ 0x10050, 0x1005d,
+ 0x10080, 0x100fa,
+ 0x10140, 0x10174,
+ 0x10280, 0x1029c,
+ 0x102a0, 0x102d0,
+ 0x10300, 0x1031e,
+ 0x10330, 0x1034a,
+ 0x10380, 0x1039d,
+ 0x103a0, 0x103c3,
+ 0x103c8, 0x103cf,
+ 0x103d1, 0x103d5,
+ 0x10400, 0x1049d,
+ 0x10800, 0x10805,
+ 0x10808, 0x10808,
+ 0x1080a, 0x10835,
+ 0x10837, 0x10838,
+ 0x1083c, 0x1083c,
+ 0x1083f, 0x10855,
+ 0x10900, 0x10915,
+ 0x10920, 0x10939,
+ 0x10a00, 0x10a03,
+ 0x10a05, 0x10a06,
+ 0x10a0c, 0x10a13,
+ 0x10a15, 0x10a17,
+ 0x10a19, 0x10a33,
+ 0x10a60, 0x10a7c,
+ 0x10b00, 0x10b35,
+ 0x10b40, 0x10b55,
+ 0x10b60, 0x10b72,
+ 0x10c00, 0x10c48,
+ 0x11000, 0x11045,
+ 0x11082, 0x110b8,
+ 0x12000, 0x1236e,
+ 0x12400, 0x12462,
+ 0x13000, 0x1342e,
+ 0x16800, 0x16a38,
+ 0x1b000, 0x1b001,
+ 0x1d400, 0x1d454,
+ 0x1d456, 0x1d49c,
+ 0x1d49e, 0x1d49f,
+ 0x1d4a2, 0x1d4a2,
+ 0x1d4a5, 0x1d4a6,
+ 0x1d4a9, 0x1d4ac,
+ 0x1d4ae, 0x1d4b9,
+ 0x1d4bb, 0x1d4bb,
+ 0x1d4bd, 0x1d4c3,
+ 0x1d4c5, 0x1d505,
+ 0x1d507, 0x1d50a,
+ 0x1d50d, 0x1d514,
+ 0x1d516, 0x1d51c,
+ 0x1d51e, 0x1d539,
+ 0x1d53b, 0x1d53e,
+ 0x1d540, 0x1d544,
+ 0x1d546, 0x1d546,
+ 0x1d54a, 0x1d550,
+ 0x1d552, 0x1d6a5,
+ 0x1d6a8, 0x1d6c0,
+ 0x1d6c2, 0x1d6da,
+ 0x1d6dc, 0x1d6fa,
+ 0x1d6fc, 0x1d714,
+ 0x1d716, 0x1d734,
+ 0x1d736, 0x1d74e,
+ 0x1d750, 0x1d76e,
+ 0x1d770, 0x1d788,
+ 0x1d78a, 0x1d7a8,
+ 0x1d7aa, 0x1d7c2,
+ 0x1d7c4, 0x1d7cb,
+ 0x20000, 0x2a6d6,
+ 0x2a700, 0x2b734,
+ 0x2b740, 0x2b81d,
+ 0x2f800, 0x2fa1d,
+}; /* CR_Alphabetic */
+
+/* 'Lowercase': Derived Property */
+static const OnigCodePoint CR_Lowercase[] = {
+ 612,
+ 0x0061, 0x007a,
+ 0x00aa, 0x00aa,
+ 0x00b5, 0x00b5,
+ 0x00ba, 0x00ba,
+ 0x00df, 0x00f6,
+ 0x00f8, 0x00ff,
+ 0x0101, 0x0101,
+ 0x0103, 0x0103,
+ 0x0105, 0x0105,
+ 0x0107, 0x0107,
+ 0x0109, 0x0109,
+ 0x010b, 0x010b,
+ 0x010d, 0x010d,
+ 0x010f, 0x010f,
+ 0x0111, 0x0111,
+ 0x0113, 0x0113,
+ 0x0115, 0x0115,
+ 0x0117, 0x0117,
+ 0x0119, 0x0119,
+ 0x011b, 0x011b,
+ 0x011d, 0x011d,
+ 0x011f, 0x011f,
+ 0x0121, 0x0121,
+ 0x0123, 0x0123,
+ 0x0125, 0x0125,
+ 0x0127, 0x0127,
+ 0x0129, 0x0129,
+ 0x012b, 0x012b,
+ 0x012d, 0x012d,
+ 0x012f, 0x012f,
+ 0x0131, 0x0131,
+ 0x0133, 0x0133,
+ 0x0135, 0x0135,
+ 0x0137, 0x0138,
+ 0x013a, 0x013a,
+ 0x013c, 0x013c,
+ 0x013e, 0x013e,
+ 0x0140, 0x0140,
+ 0x0142, 0x0142,
+ 0x0144, 0x0144,
+ 0x0146, 0x0146,
+ 0x0148, 0x0149,
+ 0x014b, 0x014b,
+ 0x014d, 0x014d,
+ 0x014f, 0x014f,
+ 0x0151, 0x0151,
+ 0x0153, 0x0153,
+ 0x0155, 0x0155,
+ 0x0157, 0x0157,
+ 0x0159, 0x0159,
+ 0x015b, 0x015b,
+ 0x015d, 0x015d,
+ 0x015f, 0x015f,
+ 0x0161, 0x0161,
+ 0x0163, 0x0163,
+ 0x0165, 0x0165,
+ 0x0167, 0x0167,
+ 0x0169, 0x0169,
+ 0x016b, 0x016b,
+ 0x016d, 0x016d,
+ 0x016f, 0x016f,
+ 0x0171, 0x0171,
+ 0x0173, 0x0173,
+ 0x0175, 0x0175,
+ 0x0177, 0x0177,
+ 0x017a, 0x017a,
+ 0x017c, 0x017c,
+ 0x017e, 0x0180,
+ 0x0183, 0x0183,
+ 0x0185, 0x0185,
+ 0x0188, 0x0188,
+ 0x018c, 0x018d,
+ 0x0192, 0x0192,
+ 0x0195, 0x0195,
+ 0x0199, 0x019b,
+ 0x019e, 0x019e,
+ 0x01a1, 0x01a1,
+ 0x01a3, 0x01a3,
+ 0x01a5, 0x01a5,
+ 0x01a8, 0x01a8,
+ 0x01aa, 0x01ab,
+ 0x01ad, 0x01ad,
+ 0x01b0, 0x01b0,
+ 0x01b4, 0x01b4,
+ 0x01b6, 0x01b6,
+ 0x01b9, 0x01ba,
+ 0x01bd, 0x01bf,
+ 0x01c6, 0x01c6,
+ 0x01c9, 0x01c9,
+ 0x01cc, 0x01cc,
+ 0x01ce, 0x01ce,
+ 0x01d0, 0x01d0,
+ 0x01d2, 0x01d2,
+ 0x01d4, 0x01d4,
+ 0x01d6, 0x01d6,
+ 0x01d8, 0x01d8,
+ 0x01da, 0x01da,
+ 0x01dc, 0x01dd,
+ 0x01df, 0x01df,
+ 0x01e1, 0x01e1,
+ 0x01e3, 0x01e3,
+ 0x01e5, 0x01e5,
+ 0x01e7, 0x01e7,
+ 0x01e9, 0x01e9,
+ 0x01eb, 0x01eb,
+ 0x01ed, 0x01ed,
+ 0x01ef, 0x01f0,
+ 0x01f3, 0x01f3,
+ 0x01f5, 0x01f5,
+ 0x01f9, 0x01f9,
+ 0x01fb, 0x01fb,
+ 0x01fd, 0x01fd,
+ 0x01ff, 0x01ff,
+ 0x0201, 0x0201,
+ 0x0203, 0x0203,
+ 0x0205, 0x0205,
+ 0x0207, 0x0207,
+ 0x0209, 0x0209,
+ 0x020b, 0x020b,
+ 0x020d, 0x020d,
+ 0x020f, 0x020f,
+ 0x0211, 0x0211,
+ 0x0213, 0x0213,
+ 0x0215, 0x0215,
+ 0x0217, 0x0217,
+ 0x0219, 0x0219,
+ 0x021b, 0x021b,
+ 0x021d, 0x021d,
+ 0x021f, 0x021f,
+ 0x0221, 0x0221,
+ 0x0223, 0x0223,
+ 0x0225, 0x0225,
+ 0x0227, 0x0227,
+ 0x0229, 0x0229,
+ 0x022b, 0x022b,
+ 0x022d, 0x022d,
+ 0x022f, 0x022f,
+ 0x0231, 0x0231,
+ 0x0233, 0x0239,
+ 0x023c, 0x023c,
+ 0x023f, 0x0240,
+ 0x0242, 0x0242,
+ 0x0247, 0x0247,
+ 0x0249, 0x0249,
+ 0x024b, 0x024b,
+ 0x024d, 0x024d,
+ 0x024f, 0x0293,
+ 0x0295, 0x02b8,
+ 0x02c0, 0x02c1,
+ 0x02e0, 0x02e4,
+ 0x0345, 0x0345,
+ 0x0371, 0x0371,
+ 0x0373, 0x0373,
+ 0x0377, 0x0377,
+ 0x037a, 0x037d,
+ 0x0390, 0x0390,
+ 0x03ac, 0x03ce,
+ 0x03d0, 0x03d1,
+ 0x03d5, 0x03d7,
+ 0x03d9, 0x03d9,
+ 0x03db, 0x03db,
+ 0x03dd, 0x03dd,
+ 0x03df, 0x03df,
+ 0x03e1, 0x03e1,
+ 0x03e3, 0x03e3,
+ 0x03e5, 0x03e5,
+ 0x03e7, 0x03e7,
+ 0x03e9, 0x03e9,
+ 0x03eb, 0x03eb,
+ 0x03ed, 0x03ed,
+ 0x03ef, 0x03f3,
+ 0x03f5, 0x03f5,
+ 0x03f8, 0x03f8,
+ 0x03fb, 0x03fc,
+ 0x0430, 0x045f,
+ 0x0461, 0x0461,
+ 0x0463, 0x0463,
+ 0x0465, 0x0465,
+ 0x0467, 0x0467,
+ 0x0469, 0x0469,
+ 0x046b, 0x046b,
+ 0x046d, 0x046d,
+ 0x046f, 0x046f,
+ 0x0471, 0x0471,
+ 0x0473, 0x0473,
+ 0x0475, 0x0475,
+ 0x0477, 0x0477,
+ 0x0479, 0x0479,
+ 0x047b, 0x047b,
+ 0x047d, 0x047d,
+ 0x047f, 0x047f,
+ 0x0481, 0x0481,
+ 0x048b, 0x048b,
+ 0x048d, 0x048d,
+ 0x048f, 0x048f,
+ 0x0491, 0x0491,
+ 0x0493, 0x0493,
+ 0x0495, 0x0495,
+ 0x0497, 0x0497,
+ 0x0499, 0x0499,
+ 0x049b, 0x049b,
+ 0x049d, 0x049d,
+ 0x049f, 0x049f,
+ 0x04a1, 0x04a1,
+ 0x04a3, 0x04a3,
+ 0x04a5, 0x04a5,
+ 0x04a7, 0x04a7,
+ 0x04a9, 0x04a9,
+ 0x04ab, 0x04ab,
+ 0x04ad, 0x04ad,
+ 0x04af, 0x04af,
+ 0x04b1, 0x04b1,
+ 0x04b3, 0x04b3,
+ 0x04b5, 0x04b5,
+ 0x04b7, 0x04b7,
+ 0x04b9, 0x04b9,
+ 0x04bb, 0x04bb,
+ 0x04bd, 0x04bd,
+ 0x04bf, 0x04bf,
+ 0x04c2, 0x04c2,
+ 0x04c4, 0x04c4,
+ 0x04c6, 0x04c6,
+ 0x04c8, 0x04c8,
+ 0x04ca, 0x04ca,
+ 0x04cc, 0x04cc,
+ 0x04ce, 0x04cf,
+ 0x04d1, 0x04d1,
+ 0x04d3, 0x04d3,
+ 0x04d5, 0x04d5,
+ 0x04d7, 0x04d7,
+ 0x04d9, 0x04d9,
+ 0x04db, 0x04db,
+ 0x04dd, 0x04dd,
+ 0x04df, 0x04df,
+ 0x04e1, 0x04e1,
+ 0x04e3, 0x04e3,
+ 0x04e5, 0x04e5,
+ 0x04e7, 0x04e7,
+ 0x04e9, 0x04e9,
+ 0x04eb, 0x04eb,
+ 0x04ed, 0x04ed,
+ 0x04ef, 0x04ef,
+ 0x04f1, 0x04f1,
+ 0x04f3, 0x04f3,
+ 0x04f5, 0x04f5,
+ 0x04f7, 0x04f7,
+ 0x04f9, 0x04f9,
+ 0x04fb, 0x04fb,
+ 0x04fd, 0x04fd,
+ 0x04ff, 0x04ff,
+ 0x0501, 0x0501,
+ 0x0503, 0x0503,
+ 0x0505, 0x0505,
+ 0x0507, 0x0507,
+ 0x0509, 0x0509,
+ 0x050b, 0x050b,
+ 0x050d, 0x050d,
+ 0x050f, 0x050f,
+ 0x0511, 0x0511,
+ 0x0513, 0x0513,
+ 0x0515, 0x0515,
+ 0x0517, 0x0517,
+ 0x0519, 0x0519,
+ 0x051b, 0x051b,
+ 0x051d, 0x051d,
+ 0x051f, 0x051f,
+ 0x0521, 0x0521,
+ 0x0523, 0x0523,
+ 0x0525, 0x0525,
+ 0x0527, 0x0527,
+ 0x0561, 0x0587,
+ 0x1d00, 0x1dbf,
+ 0x1e01, 0x1e01,
+ 0x1e03, 0x1e03,
+ 0x1e05, 0x1e05,
+ 0x1e07, 0x1e07,
+ 0x1e09, 0x1e09,
+ 0x1e0b, 0x1e0b,
+ 0x1e0d, 0x1e0d,
+ 0x1e0f, 0x1e0f,
+ 0x1e11, 0x1e11,
+ 0x1e13, 0x1e13,
+ 0x1e15, 0x1e15,
+ 0x1e17, 0x1e17,
+ 0x1e19, 0x1e19,
+ 0x1e1b, 0x1e1b,
+ 0x1e1d, 0x1e1d,
+ 0x1e1f, 0x1e1f,
+ 0x1e21, 0x1e21,
+ 0x1e23, 0x1e23,
+ 0x1e25, 0x1e25,
+ 0x1e27, 0x1e27,
+ 0x1e29, 0x1e29,
+ 0x1e2b, 0x1e2b,
+ 0x1e2d, 0x1e2d,
+ 0x1e2f, 0x1e2f,
+ 0x1e31, 0x1e31,
+ 0x1e33, 0x1e33,
+ 0x1e35, 0x1e35,
+ 0x1e37, 0x1e37,
+ 0x1e39, 0x1e39,
+ 0x1e3b, 0x1e3b,
+ 0x1e3d, 0x1e3d,
+ 0x1e3f, 0x1e3f,
+ 0x1e41, 0x1e41,
+ 0x1e43, 0x1e43,
+ 0x1e45, 0x1e45,
+ 0x1e47, 0x1e47,
+ 0x1e49, 0x1e49,
+ 0x1e4b, 0x1e4b,
+ 0x1e4d, 0x1e4d,
+ 0x1e4f, 0x1e4f,
+ 0x1e51, 0x1e51,
+ 0x1e53, 0x1e53,
+ 0x1e55, 0x1e55,
+ 0x1e57, 0x1e57,
+ 0x1e59, 0x1e59,
+ 0x1e5b, 0x1e5b,
+ 0x1e5d, 0x1e5d,
+ 0x1e5f, 0x1e5f,
+ 0x1e61, 0x1e61,
+ 0x1e63, 0x1e63,
+ 0x1e65, 0x1e65,
+ 0x1e67, 0x1e67,
+ 0x1e69, 0x1e69,
+ 0x1e6b, 0x1e6b,
+ 0x1e6d, 0x1e6d,
+ 0x1e6f, 0x1e6f,
+ 0x1e71, 0x1e71,
+ 0x1e73, 0x1e73,
+ 0x1e75, 0x1e75,
+ 0x1e77, 0x1e77,
+ 0x1e79, 0x1e79,
+ 0x1e7b, 0x1e7b,
+ 0x1e7d, 0x1e7d,
+ 0x1e7f, 0x1e7f,
+ 0x1e81, 0x1e81,
+ 0x1e83, 0x1e83,
+ 0x1e85, 0x1e85,
+ 0x1e87, 0x1e87,
+ 0x1e89, 0x1e89,
+ 0x1e8b, 0x1e8b,
+ 0x1e8d, 0x1e8d,
+ 0x1e8f, 0x1e8f,
+ 0x1e91, 0x1e91,
+ 0x1e93, 0x1e93,
+ 0x1e95, 0x1e9d,
+ 0x1e9f, 0x1e9f,
+ 0x1ea1, 0x1ea1,
+ 0x1ea3, 0x1ea3,
+ 0x1ea5, 0x1ea5,
+ 0x1ea7, 0x1ea7,
+ 0x1ea9, 0x1ea9,
+ 0x1eab, 0x1eab,
+ 0x1ead, 0x1ead,
+ 0x1eaf, 0x1eaf,
+ 0x1eb1, 0x1eb1,
+ 0x1eb3, 0x1eb3,
+ 0x1eb5, 0x1eb5,
+ 0x1eb7, 0x1eb7,
+ 0x1eb9, 0x1eb9,
+ 0x1ebb, 0x1ebb,
+ 0x1ebd, 0x1ebd,
+ 0x1ebf, 0x1ebf,
+ 0x1ec1, 0x1ec1,
+ 0x1ec3, 0x1ec3,
+ 0x1ec5, 0x1ec5,
+ 0x1ec7, 0x1ec7,
+ 0x1ec9, 0x1ec9,
+ 0x1ecb, 0x1ecb,
+ 0x1ecd, 0x1ecd,
+ 0x1ecf, 0x1ecf,
+ 0x1ed1, 0x1ed1,
+ 0x1ed3, 0x1ed3,
+ 0x1ed5, 0x1ed5,
+ 0x1ed7, 0x1ed7,
+ 0x1ed9, 0x1ed9,
+ 0x1edb, 0x1edb,
+ 0x1edd, 0x1edd,
+ 0x1edf, 0x1edf,
+ 0x1ee1, 0x1ee1,
+ 0x1ee3, 0x1ee3,
+ 0x1ee5, 0x1ee5,
+ 0x1ee7, 0x1ee7,
+ 0x1ee9, 0x1ee9,
+ 0x1eeb, 0x1eeb,
+ 0x1eed, 0x1eed,
+ 0x1eef, 0x1eef,
+ 0x1ef1, 0x1ef1,
+ 0x1ef3, 0x1ef3,
+ 0x1ef5, 0x1ef5,
+ 0x1ef7, 0x1ef7,
+ 0x1ef9, 0x1ef9,
+ 0x1efb, 0x1efb,
+ 0x1efd, 0x1efd,
+ 0x1eff, 0x1f07,
+ 0x1f10, 0x1f15,
+ 0x1f20, 0x1f27,
+ 0x1f30, 0x1f37,
+ 0x1f40, 0x1f45,
+ 0x1f50, 0x1f57,
+ 0x1f60, 0x1f67,
+ 0x1f70, 0x1f7d,
+ 0x1f80, 0x1f87,
+ 0x1f90, 0x1f97,
+ 0x1fa0, 0x1fa7,
+ 0x1fb0, 0x1fb4,
+ 0x1fb6, 0x1fb7,
+ 0x1fbe, 0x1fbe,
+ 0x1fc2, 0x1fc4,
+ 0x1fc6, 0x1fc7,
+ 0x1fd0, 0x1fd3,
+ 0x1fd6, 0x1fd7,
+ 0x1fe0, 0x1fe7,
+ 0x1ff2, 0x1ff4,
+ 0x1ff6, 0x1ff7,
+ 0x2090, 0x2094,
+ 0x210a, 0x210a,
+ 0x210e, 0x210f,
+ 0x2113, 0x2113,
+ 0x212f, 0x212f,
+ 0x2134, 0x2134,
+ 0x2139, 0x2139,
+ 0x213c, 0x213d,
+ 0x2146, 0x2149,
+ 0x214e, 0x214e,
+ 0x2170, 0x217f,
+ 0x2184, 0x2184,
+ 0x24d0, 0x24e9,
+ 0x2c30, 0x2c5e,
+ 0x2c61, 0x2c61,
+ 0x2c65, 0x2c66,
+ 0x2c68, 0x2c68,
+ 0x2c6a, 0x2c6a,
+ 0x2c6c, 0x2c6c,
+ 0x2c71, 0x2c71,
+ 0x2c73, 0x2c74,
+ 0x2c76, 0x2c7d,
+ 0x2c81, 0x2c81,
+ 0x2c83, 0x2c83,
+ 0x2c85, 0x2c85,
+ 0x2c87, 0x2c87,
+ 0x2c89, 0x2c89,
+ 0x2c8b, 0x2c8b,
+ 0x2c8d, 0x2c8d,
+ 0x2c8f, 0x2c8f,
+ 0x2c91, 0x2c91,
+ 0x2c93, 0x2c93,
+ 0x2c95, 0x2c95,
+ 0x2c97, 0x2c97,
+ 0x2c99, 0x2c99,
+ 0x2c9b, 0x2c9b,
+ 0x2c9d, 0x2c9d,
+ 0x2c9f, 0x2c9f,
+ 0x2ca1, 0x2ca1,
+ 0x2ca3, 0x2ca3,
+ 0x2ca5, 0x2ca5,
+ 0x2ca7, 0x2ca7,
+ 0x2ca9, 0x2ca9,
+ 0x2cab, 0x2cab,
+ 0x2cad, 0x2cad,
+ 0x2caf, 0x2caf,
+ 0x2cb1, 0x2cb1,
+ 0x2cb3, 0x2cb3,
+ 0x2cb5, 0x2cb5,
+ 0x2cb7, 0x2cb7,
+ 0x2cb9, 0x2cb9,
+ 0x2cbb, 0x2cbb,
+ 0x2cbd, 0x2cbd,
+ 0x2cbf, 0x2cbf,
+ 0x2cc1, 0x2cc1,
+ 0x2cc3, 0x2cc3,
+ 0x2cc5, 0x2cc5,
+ 0x2cc7, 0x2cc7,
+ 0x2cc9, 0x2cc9,
+ 0x2ccb, 0x2ccb,
+ 0x2ccd, 0x2ccd,
+ 0x2ccf, 0x2ccf,
+ 0x2cd1, 0x2cd1,
+ 0x2cd3, 0x2cd3,
+ 0x2cd5, 0x2cd5,
+ 0x2cd7, 0x2cd7,
+ 0x2cd9, 0x2cd9,
+ 0x2cdb, 0x2cdb,
+ 0x2cdd, 0x2cdd,
+ 0x2cdf, 0x2cdf,
+ 0x2ce1, 0x2ce1,
+ 0x2ce3, 0x2ce4,
+ 0x2cec, 0x2cec,
+ 0x2cee, 0x2cee,
+ 0x2d00, 0x2d25,
+ 0xa641, 0xa641,
+ 0xa643, 0xa643,
+ 0xa645, 0xa645,
+ 0xa647, 0xa647,
+ 0xa649, 0xa649,
+ 0xa64b, 0xa64b,
+ 0xa64d, 0xa64d,
+ 0xa64f, 0xa64f,
+ 0xa651, 0xa651,
+ 0xa653, 0xa653,
+ 0xa655, 0xa655,
+ 0xa657, 0xa657,
+ 0xa659, 0xa659,
+ 0xa65b, 0xa65b,
+ 0xa65d, 0xa65d,
+ 0xa65f, 0xa65f,
+ 0xa661, 0xa661,
+ 0xa663, 0xa663,
+ 0xa665, 0xa665,
+ 0xa667, 0xa667,
+ 0xa669, 0xa669,
+ 0xa66b, 0xa66b,
+ 0xa66d, 0xa66d,
+ 0xa681, 0xa681,
+ 0xa683, 0xa683,
+ 0xa685, 0xa685,
+ 0xa687, 0xa687,
+ 0xa689, 0xa689,
+ 0xa68b, 0xa68b,
+ 0xa68d, 0xa68d,
+ 0xa68f, 0xa68f,
+ 0xa691, 0xa691,
+ 0xa693, 0xa693,
+ 0xa695, 0xa695,
+ 0xa697, 0xa697,
+ 0xa723, 0xa723,
+ 0xa725, 0xa725,
+ 0xa727, 0xa727,
+ 0xa729, 0xa729,
+ 0xa72b, 0xa72b,
+ 0xa72d, 0xa72d,
+ 0xa72f, 0xa731,
+ 0xa733, 0xa733,
+ 0xa735, 0xa735,
+ 0xa737, 0xa737,
+ 0xa739, 0xa739,
+ 0xa73b, 0xa73b,
+ 0xa73d, 0xa73d,
+ 0xa73f, 0xa73f,
+ 0xa741, 0xa741,
+ 0xa743, 0xa743,
+ 0xa745, 0xa745,
+ 0xa747, 0xa747,
+ 0xa749, 0xa749,
+ 0xa74b, 0xa74b,
+ 0xa74d, 0xa74d,
+ 0xa74f, 0xa74f,
+ 0xa751, 0xa751,
+ 0xa753, 0xa753,
+ 0xa755, 0xa755,
+ 0xa757, 0xa757,
+ 0xa759, 0xa759,
+ 0xa75b, 0xa75b,
+ 0xa75d, 0xa75d,
+ 0xa75f, 0xa75f,
+ 0xa761, 0xa761,
+ 0xa763, 0xa763,
+ 0xa765, 0xa765,
+ 0xa767, 0xa767,
+ 0xa769, 0xa769,
+ 0xa76b, 0xa76b,
+ 0xa76d, 0xa76d,
+ 0xa76f, 0xa778,
+ 0xa77a, 0xa77a,
+ 0xa77c, 0xa77c,
+ 0xa77f, 0xa77f,
+ 0xa781, 0xa781,
+ 0xa783, 0xa783,
+ 0xa785, 0xa785,
+ 0xa787, 0xa787,
+ 0xa78c, 0xa78c,
+ 0xa78e, 0xa78e,
+ 0xa791, 0xa791,
+ 0xa7a1, 0xa7a1,
+ 0xa7a3, 0xa7a3,
+ 0xa7a5, 0xa7a5,
+ 0xa7a7, 0xa7a7,
+ 0xa7a9, 0xa7a9,
+ 0xa7fa, 0xa7fa,
+ 0xfb00, 0xfb06,
+ 0xfb13, 0xfb17,
+ 0xff41, 0xff5a,
+ 0x10428, 0x1044f,
+ 0x1d41a, 0x1d433,
+ 0x1d44e, 0x1d454,
+ 0x1d456, 0x1d467,
+ 0x1d482, 0x1d49b,
+ 0x1d4b6, 0x1d4b9,
+ 0x1d4bb, 0x1d4bb,
+ 0x1d4bd, 0x1d4c3,
+ 0x1d4c5, 0x1d4cf,
+ 0x1d4ea, 0x1d503,
+ 0x1d51e, 0x1d537,
+ 0x1d552, 0x1d56b,
+ 0x1d586, 0x1d59f,
+ 0x1d5ba, 0x1d5d3,
+ 0x1d5ee, 0x1d607,
+ 0x1d622, 0x1d63b,
+ 0x1d656, 0x1d66f,
+ 0x1d68a, 0x1d6a5,
+ 0x1d6c2, 0x1d6da,
+ 0x1d6dc, 0x1d6e1,
+ 0x1d6fc, 0x1d714,
+ 0x1d716, 0x1d71b,
+ 0x1d736, 0x1d74e,
+ 0x1d750, 0x1d755,
+ 0x1d770, 0x1d788,
+ 0x1d78a, 0x1d78f,
+ 0x1d7aa, 0x1d7c2,
+ 0x1d7c4, 0x1d7c9,
+ 0x1d7cb, 0x1d7cb,
+}; /* CR_Lowercase */
+
+/* 'Uppercase': Derived Property */
+static const OnigCodePoint CR_Uppercase[] = {
+ 605,
+ 0x0041, 0x005a,
+ 0x00c0, 0x00d6,
+ 0x00d8, 0x00de,
+ 0x0100, 0x0100,
+ 0x0102, 0x0102,
+ 0x0104, 0x0104,
+ 0x0106, 0x0106,
+ 0x0108, 0x0108,
+ 0x010a, 0x010a,
+ 0x010c, 0x010c,
+ 0x010e, 0x010e,
+ 0x0110, 0x0110,
+ 0x0112, 0x0112,
+ 0x0114, 0x0114,
+ 0x0116, 0x0116,
+ 0x0118, 0x0118,
+ 0x011a, 0x011a,
+ 0x011c, 0x011c,
+ 0x011e, 0x011e,
+ 0x0120, 0x0120,
+ 0x0122, 0x0122,
+ 0x0124, 0x0124,
+ 0x0126, 0x0126,
+ 0x0128, 0x0128,
+ 0x012a, 0x012a,
+ 0x012c, 0x012c,
+ 0x012e, 0x012e,
+ 0x0130, 0x0130,
+ 0x0132, 0x0132,
+ 0x0134, 0x0134,
+ 0x0136, 0x0136,
+ 0x0139, 0x0139,
+ 0x013b, 0x013b,
+ 0x013d, 0x013d,
+ 0x013f, 0x013f,
+ 0x0141, 0x0141,
+ 0x0143, 0x0143,
+ 0x0145, 0x0145,
+ 0x0147, 0x0147,
+ 0x014a, 0x014a,
+ 0x014c, 0x014c,
+ 0x014e, 0x014e,
+ 0x0150, 0x0150,
+ 0x0152, 0x0152,
+ 0x0154, 0x0154,
+ 0x0156, 0x0156,
+ 0x0158, 0x0158,
+ 0x015a, 0x015a,
+ 0x015c, 0x015c,
+ 0x015e, 0x015e,
+ 0x0160, 0x0160,
+ 0x0162, 0x0162,
+ 0x0164, 0x0164,
+ 0x0166, 0x0166,
+ 0x0168, 0x0168,
+ 0x016a, 0x016a,
+ 0x016c, 0x016c,
+ 0x016e, 0x016e,
+ 0x0170, 0x0170,
+ 0x0172, 0x0172,
+ 0x0174, 0x0174,
+ 0x0176, 0x0176,
+ 0x0178, 0x0179,
+ 0x017b, 0x017b,
+ 0x017d, 0x017d,
+ 0x0181, 0x0182,
+ 0x0184, 0x0184,
+ 0x0186, 0x0187,
+ 0x0189, 0x018b,
+ 0x018e, 0x0191,
+ 0x0193, 0x0194,
+ 0x0196, 0x0198,
+ 0x019c, 0x019d,
+ 0x019f, 0x01a0,
+ 0x01a2, 0x01a2,
+ 0x01a4, 0x01a4,
+ 0x01a6, 0x01a7,
+ 0x01a9, 0x01a9,
+ 0x01ac, 0x01ac,
+ 0x01ae, 0x01af,
+ 0x01b1, 0x01b3,
+ 0x01b5, 0x01b5,
+ 0x01b7, 0x01b8,
+ 0x01bc, 0x01bc,
+ 0x01c4, 0x01c4,
+ 0x01c7, 0x01c7,
+ 0x01ca, 0x01ca,
+ 0x01cd, 0x01cd,
+ 0x01cf, 0x01cf,
+ 0x01d1, 0x01d1,
+ 0x01d3, 0x01d3,
+ 0x01d5, 0x01d5,
+ 0x01d7, 0x01d7,
+ 0x01d9, 0x01d9,
+ 0x01db, 0x01db,
+ 0x01de, 0x01de,
+ 0x01e0, 0x01e0,
+ 0x01e2, 0x01e2,
+ 0x01e4, 0x01e4,
+ 0x01e6, 0x01e6,
+ 0x01e8, 0x01e8,
+ 0x01ea, 0x01ea,
+ 0x01ec, 0x01ec,
+ 0x01ee, 0x01ee,
+ 0x01f1, 0x01f1,
+ 0x01f4, 0x01f4,
+ 0x01f6, 0x01f8,
+ 0x01fa, 0x01fa,
+ 0x01fc, 0x01fc,
+ 0x01fe, 0x01fe,
+ 0x0200, 0x0200,
+ 0x0202, 0x0202,
+ 0x0204, 0x0204,
+ 0x0206, 0x0206,
+ 0x0208, 0x0208,
+ 0x020a, 0x020a,
+ 0x020c, 0x020c,
+ 0x020e, 0x020e,
+ 0x0210, 0x0210,
+ 0x0212, 0x0212,
+ 0x0214, 0x0214,
+ 0x0216, 0x0216,
+ 0x0218, 0x0218,
+ 0x021a, 0x021a,
+ 0x021c, 0x021c,
+ 0x021e, 0x021e,
+ 0x0220, 0x0220,
+ 0x0222, 0x0222,
+ 0x0224, 0x0224,
+ 0x0226, 0x0226,
+ 0x0228, 0x0228,
+ 0x022a, 0x022a,
+ 0x022c, 0x022c,
+ 0x022e, 0x022e,
+ 0x0230, 0x0230,
+ 0x0232, 0x0232,
+ 0x023a, 0x023b,
+ 0x023d, 0x023e,
+ 0x0241, 0x0241,
+ 0x0243, 0x0246,
+ 0x0248, 0x0248,
+ 0x024a, 0x024a,
+ 0x024c, 0x024c,
+ 0x024e, 0x024e,
+ 0x0370, 0x0370,
+ 0x0372, 0x0372,
+ 0x0376, 0x0376,
+ 0x0386, 0x0386,
+ 0x0388, 0x038a,
+ 0x038c, 0x038c,
+ 0x038e, 0x038f,
+ 0x0391, 0x03a1,
+ 0x03a3, 0x03ab,
+ 0x03cf, 0x03cf,
+ 0x03d2, 0x03d4,
+ 0x03d8, 0x03d8,
+ 0x03da, 0x03da,
+ 0x03dc, 0x03dc,
+ 0x03de, 0x03de,
+ 0x03e0, 0x03e0,
+ 0x03e2, 0x03e2,
+ 0x03e4, 0x03e4,
+ 0x03e6, 0x03e6,
+ 0x03e8, 0x03e8,
+ 0x03ea, 0x03ea,
+ 0x03ec, 0x03ec,
+ 0x03ee, 0x03ee,
+ 0x03f4, 0x03f4,
+ 0x03f7, 0x03f7,
+ 0x03f9, 0x03fa,
+ 0x03fd, 0x042f,
+ 0x0460, 0x0460,
+ 0x0462, 0x0462,
+ 0x0464, 0x0464,
+ 0x0466, 0x0466,
+ 0x0468, 0x0468,
+ 0x046a, 0x046a,
+ 0x046c, 0x046c,
+ 0x046e, 0x046e,
+ 0x0470, 0x0470,
+ 0x0472, 0x0472,
+ 0x0474, 0x0474,
+ 0x0476, 0x0476,
+ 0x0478, 0x0478,
+ 0x047a, 0x047a,
+ 0x047c, 0x047c,
+ 0x047e, 0x047e,
+ 0x0480, 0x0480,
+ 0x048a, 0x048a,
+ 0x048c, 0x048c,
+ 0x048e, 0x048e,
+ 0x0490, 0x0490,
+ 0x0492, 0x0492,
+ 0x0494, 0x0494,
+ 0x0496, 0x0496,
+ 0x0498, 0x0498,
+ 0x049a, 0x049a,
+ 0x049c, 0x049c,
+ 0x049e, 0x049e,
+ 0x04a0, 0x04a0,
+ 0x04a2, 0x04a2,
+ 0x04a4, 0x04a4,
+ 0x04a6, 0x04a6,
+ 0x04a8, 0x04a8,
+ 0x04aa, 0x04aa,
+ 0x04ac, 0x04ac,
+ 0x04ae, 0x04ae,
+ 0x04b0, 0x04b0,
+ 0x04b2, 0x04b2,
+ 0x04b4, 0x04b4,
+ 0x04b6, 0x04b6,
+ 0x04b8, 0x04b8,
+ 0x04ba, 0x04ba,
+ 0x04bc, 0x04bc,
+ 0x04be, 0x04be,
+ 0x04c0, 0x04c1,
+ 0x04c3, 0x04c3,
+ 0x04c5, 0x04c5,
+ 0x04c7, 0x04c7,
+ 0x04c9, 0x04c9,
+ 0x04cb, 0x04cb,
+ 0x04cd, 0x04cd,
+ 0x04d0, 0x04d0,
+ 0x04d2, 0x04d2,
+ 0x04d4, 0x04d4,
+ 0x04d6, 0x04d6,
+ 0x04d8, 0x04d8,
+ 0x04da, 0x04da,
+ 0x04dc, 0x04dc,
+ 0x04de, 0x04de,
+ 0x04e0, 0x04e0,
+ 0x04e2, 0x04e2,
+ 0x04e4, 0x04e4,
+ 0x04e6, 0x04e6,
+ 0x04e8, 0x04e8,
+ 0x04ea, 0x04ea,
+ 0x04ec, 0x04ec,
+ 0x04ee, 0x04ee,
+ 0x04f0, 0x04f0,
+ 0x04f2, 0x04f2,
+ 0x04f4, 0x04f4,
+ 0x04f6, 0x04f6,
+ 0x04f8, 0x04f8,
+ 0x04fa, 0x04fa,
+ 0x04fc, 0x04fc,
+ 0x04fe, 0x04fe,
+ 0x0500, 0x0500,
+ 0x0502, 0x0502,
+ 0x0504, 0x0504,
+ 0x0506, 0x0506,
+ 0x0508, 0x0508,
+ 0x050a, 0x050a,
+ 0x050c, 0x050c,
+ 0x050e, 0x050e,
+ 0x0510, 0x0510,
+ 0x0512, 0x0512,
+ 0x0514, 0x0514,
+ 0x0516, 0x0516,
+ 0x0518, 0x0518,
+ 0x051a, 0x051a,
+ 0x051c, 0x051c,
+ 0x051e, 0x051e,
+ 0x0520, 0x0520,
+ 0x0522, 0x0522,
+ 0x0524, 0x0524,
+ 0x0526, 0x0526,
+ 0x0531, 0x0556,
+ 0x10a0, 0x10c5,
+ 0x1e00, 0x1e00,
+ 0x1e02, 0x1e02,
+ 0x1e04, 0x1e04,
+ 0x1e06, 0x1e06,
+ 0x1e08, 0x1e08,
+ 0x1e0a, 0x1e0a,
+ 0x1e0c, 0x1e0c,
+ 0x1e0e, 0x1e0e,
+ 0x1e10, 0x1e10,
+ 0x1e12, 0x1e12,
+ 0x1e14, 0x1e14,
+ 0x1e16, 0x1e16,
+ 0x1e18, 0x1e18,
+ 0x1e1a, 0x1e1a,
+ 0x1e1c, 0x1e1c,
+ 0x1e1e, 0x1e1e,
+ 0x1e20, 0x1e20,
+ 0x1e22, 0x1e22,
+ 0x1e24, 0x1e24,
+ 0x1e26, 0x1e26,
+ 0x1e28, 0x1e28,
+ 0x1e2a, 0x1e2a,
+ 0x1e2c, 0x1e2c,
+ 0x1e2e, 0x1e2e,
+ 0x1e30, 0x1e30,
+ 0x1e32, 0x1e32,
+ 0x1e34, 0x1e34,
+ 0x1e36, 0x1e36,
+ 0x1e38, 0x1e38,
+ 0x1e3a, 0x1e3a,
+ 0x1e3c, 0x1e3c,
+ 0x1e3e, 0x1e3e,
+ 0x1e40, 0x1e40,
+ 0x1e42, 0x1e42,
+ 0x1e44, 0x1e44,
+ 0x1e46, 0x1e46,
+ 0x1e48, 0x1e48,
+ 0x1e4a, 0x1e4a,
+ 0x1e4c, 0x1e4c,
+ 0x1e4e, 0x1e4e,
+ 0x1e50, 0x1e50,
+ 0x1e52, 0x1e52,
+ 0x1e54, 0x1e54,
+ 0x1e56, 0x1e56,
+ 0x1e58, 0x1e58,
+ 0x1e5a, 0x1e5a,
+ 0x1e5c, 0x1e5c,
+ 0x1e5e, 0x1e5e,
+ 0x1e60, 0x1e60,
+ 0x1e62, 0x1e62,
+ 0x1e64, 0x1e64,
+ 0x1e66, 0x1e66,
+ 0x1e68, 0x1e68,
+ 0x1e6a, 0x1e6a,
+ 0x1e6c, 0x1e6c,
+ 0x1e6e, 0x1e6e,
+ 0x1e70, 0x1e70,
+ 0x1e72, 0x1e72,
+ 0x1e74, 0x1e74,
+ 0x1e76, 0x1e76,
+ 0x1e78, 0x1e78,
+ 0x1e7a, 0x1e7a,
+ 0x1e7c, 0x1e7c,
+ 0x1e7e, 0x1e7e,
+ 0x1e80, 0x1e80,
+ 0x1e82, 0x1e82,
+ 0x1e84, 0x1e84,
+ 0x1e86, 0x1e86,
+ 0x1e88, 0x1e88,
+ 0x1e8a, 0x1e8a,
+ 0x1e8c, 0x1e8c,
+ 0x1e8e, 0x1e8e,
+ 0x1e90, 0x1e90,
+ 0x1e92, 0x1e92,
+ 0x1e94, 0x1e94,
+ 0x1e9e, 0x1e9e,
+ 0x1ea0, 0x1ea0,
+ 0x1ea2, 0x1ea2,
+ 0x1ea4, 0x1ea4,
+ 0x1ea6, 0x1ea6,
+ 0x1ea8, 0x1ea8,
+ 0x1eaa, 0x1eaa,
+ 0x1eac, 0x1eac,
+ 0x1eae, 0x1eae,
+ 0x1eb0, 0x1eb0,
+ 0x1eb2, 0x1eb2,
+ 0x1eb4, 0x1eb4,
+ 0x1eb6, 0x1eb6,
+ 0x1eb8, 0x1eb8,
+ 0x1eba, 0x1eba,
+ 0x1ebc, 0x1ebc,
+ 0x1ebe, 0x1ebe,
+ 0x1ec0, 0x1ec0,
+ 0x1ec2, 0x1ec2,
+ 0x1ec4, 0x1ec4,
+ 0x1ec6, 0x1ec6,
+ 0x1ec8, 0x1ec8,
+ 0x1eca, 0x1eca,
+ 0x1ecc, 0x1ecc,
+ 0x1ece, 0x1ece,
+ 0x1ed0, 0x1ed0,
+ 0x1ed2, 0x1ed2,
+ 0x1ed4, 0x1ed4,
+ 0x1ed6, 0x1ed6,
+ 0x1ed8, 0x1ed8,
+ 0x1eda, 0x1eda,
+ 0x1edc, 0x1edc,
+ 0x1ede, 0x1ede,
+ 0x1ee0, 0x1ee0,
+ 0x1ee2, 0x1ee2,
+ 0x1ee4, 0x1ee4,
+ 0x1ee6, 0x1ee6,
+ 0x1ee8, 0x1ee8,
+ 0x1eea, 0x1eea,
+ 0x1eec, 0x1eec,
+ 0x1eee, 0x1eee,
+ 0x1ef0, 0x1ef0,
+ 0x1ef2, 0x1ef2,
+ 0x1ef4, 0x1ef4,
+ 0x1ef6, 0x1ef6,
+ 0x1ef8, 0x1ef8,
+ 0x1efa, 0x1efa,
+ 0x1efc, 0x1efc,
+ 0x1efe, 0x1efe,
+ 0x1f08, 0x1f0f,
+ 0x1f18, 0x1f1d,
+ 0x1f28, 0x1f2f,
+ 0x1f38, 0x1f3f,
+ 0x1f48, 0x1f4d,
+ 0x1f59, 0x1f59,
+ 0x1f5b, 0x1f5b,
+ 0x1f5d, 0x1f5d,
+ 0x1f5f, 0x1f5f,
+ 0x1f68, 0x1f6f,
+ 0x1fb8, 0x1fbb,
+ 0x1fc8, 0x1fcb,
+ 0x1fd8, 0x1fdb,
+ 0x1fe8, 0x1fec,
+ 0x1ff8, 0x1ffb,
+ 0x2102, 0x2102,
+ 0x2107, 0x2107,
+ 0x210b, 0x210d,
+ 0x2110, 0x2112,
+ 0x2115, 0x2115,
+ 0x2119, 0x211d,
+ 0x2124, 0x2124,
+ 0x2126, 0x2126,
+ 0x2128, 0x2128,
+ 0x212a, 0x212d,
+ 0x2130, 0x2133,
+ 0x213e, 0x213f,
+ 0x2145, 0x2145,
+ 0x2160, 0x216f,
+ 0x2183, 0x2183,
+ 0x24b6, 0x24cf,
+ 0x2c00, 0x2c2e,
+ 0x2c60, 0x2c60,
+ 0x2c62, 0x2c64,
+ 0x2c67, 0x2c67,
+ 0x2c69, 0x2c69,
+ 0x2c6b, 0x2c6b,
+ 0x2c6d, 0x2c70,
+ 0x2c72, 0x2c72,
+ 0x2c75, 0x2c75,
+ 0x2c7e, 0x2c80,
+ 0x2c82, 0x2c82,
+ 0x2c84, 0x2c84,
+ 0x2c86, 0x2c86,
+ 0x2c88, 0x2c88,
+ 0x2c8a, 0x2c8a,
+ 0x2c8c, 0x2c8c,
+ 0x2c8e, 0x2c8e,
+ 0x2c90, 0x2c90,
+ 0x2c92, 0x2c92,
+ 0x2c94, 0x2c94,
+ 0x2c96, 0x2c96,
+ 0x2c98, 0x2c98,
+ 0x2c9a, 0x2c9a,
+ 0x2c9c, 0x2c9c,
+ 0x2c9e, 0x2c9e,
+ 0x2ca0, 0x2ca0,
+ 0x2ca2, 0x2ca2,
+ 0x2ca4, 0x2ca4,
+ 0x2ca6, 0x2ca6,
+ 0x2ca8, 0x2ca8,
+ 0x2caa, 0x2caa,
+ 0x2cac, 0x2cac,
+ 0x2cae, 0x2cae,
+ 0x2cb0, 0x2cb0,
+ 0x2cb2, 0x2cb2,
+ 0x2cb4, 0x2cb4,
+ 0x2cb6, 0x2cb6,
+ 0x2cb8, 0x2cb8,
+ 0x2cba, 0x2cba,
+ 0x2cbc, 0x2cbc,
+ 0x2cbe, 0x2cbe,
+ 0x2cc0, 0x2cc0,
+ 0x2cc2, 0x2cc2,
+ 0x2cc4, 0x2cc4,
+ 0x2cc6, 0x2cc6,
+ 0x2cc8, 0x2cc8,
+ 0x2cca, 0x2cca,
+ 0x2ccc, 0x2ccc,
+ 0x2cce, 0x2cce,
+ 0x2cd0, 0x2cd0,
+ 0x2cd2, 0x2cd2,
+ 0x2cd4, 0x2cd4,
+ 0x2cd6, 0x2cd6,
+ 0x2cd8, 0x2cd8,
+ 0x2cda, 0x2cda,
+ 0x2cdc, 0x2cdc,
+ 0x2cde, 0x2cde,
+ 0x2ce0, 0x2ce0,
+ 0x2ce2, 0x2ce2,
+ 0x2ceb, 0x2ceb,
+ 0x2ced, 0x2ced,
+ 0xa640, 0xa640,
+ 0xa642, 0xa642,
+ 0xa644, 0xa644,
+ 0xa646, 0xa646,
+ 0xa648, 0xa648,
+ 0xa64a, 0xa64a,
+ 0xa64c, 0xa64c,
+ 0xa64e, 0xa64e,
+ 0xa650, 0xa650,
+ 0xa652, 0xa652,
+ 0xa654, 0xa654,
+ 0xa656, 0xa656,
+ 0xa658, 0xa658,
+ 0xa65a, 0xa65a,
+ 0xa65c, 0xa65c,
+ 0xa65e, 0xa65e,
+ 0xa660, 0xa660,
+ 0xa662, 0xa662,
+ 0xa664, 0xa664,
+ 0xa666, 0xa666,
+ 0xa668, 0xa668,
+ 0xa66a, 0xa66a,
+ 0xa66c, 0xa66c,
+ 0xa680, 0xa680,
+ 0xa682, 0xa682,
+ 0xa684, 0xa684,
+ 0xa686, 0xa686,
+ 0xa688, 0xa688,
+ 0xa68a, 0xa68a,
+ 0xa68c, 0xa68c,
+ 0xa68e, 0xa68e,
+ 0xa690, 0xa690,
+ 0xa692, 0xa692,
+ 0xa694, 0xa694,
+ 0xa696, 0xa696,
+ 0xa722, 0xa722,
+ 0xa724, 0xa724,
+ 0xa726, 0xa726,
+ 0xa728, 0xa728,
+ 0xa72a, 0xa72a,
+ 0xa72c, 0xa72c,
+ 0xa72e, 0xa72e,
+ 0xa732, 0xa732,
+ 0xa734, 0xa734,
+ 0xa736, 0xa736,
+ 0xa738, 0xa738,
+ 0xa73a, 0xa73a,
+ 0xa73c, 0xa73c,
+ 0xa73e, 0xa73e,
+ 0xa740, 0xa740,
+ 0xa742, 0xa742,
+ 0xa744, 0xa744,
+ 0xa746, 0xa746,
+ 0xa748, 0xa748,
+ 0xa74a, 0xa74a,
+ 0xa74c, 0xa74c,
+ 0xa74e, 0xa74e,
+ 0xa750, 0xa750,
+ 0xa752, 0xa752,
+ 0xa754, 0xa754,
+ 0xa756, 0xa756,
+ 0xa758, 0xa758,
+ 0xa75a, 0xa75a,
+ 0xa75c, 0xa75c,
+ 0xa75e, 0xa75e,
+ 0xa760, 0xa760,
+ 0xa762, 0xa762,
+ 0xa764, 0xa764,
+ 0xa766, 0xa766,
+ 0xa768, 0xa768,
+ 0xa76a, 0xa76a,
+ 0xa76c, 0xa76c,
+ 0xa76e, 0xa76e,
+ 0xa779, 0xa779,
+ 0xa77b, 0xa77b,
+ 0xa77d, 0xa77e,
+ 0xa780, 0xa780,
+ 0xa782, 0xa782,
+ 0xa784, 0xa784,
+ 0xa786, 0xa786,
+ 0xa78b, 0xa78b,
+ 0xa78d, 0xa78d,
+ 0xa790, 0xa790,
+ 0xa7a0, 0xa7a0,
+ 0xa7a2, 0xa7a2,
+ 0xa7a4, 0xa7a4,
+ 0xa7a6, 0xa7a6,
+ 0xa7a8, 0xa7a8,
+ 0xff21, 0xff3a,
+ 0x10400, 0x10427,
+ 0x1d400, 0x1d419,
+ 0x1d434, 0x1d44d,
+ 0x1d468, 0x1d481,
+ 0x1d49c, 0x1d49c,
+ 0x1d49e, 0x1d49f,
+ 0x1d4a2, 0x1d4a2,
+ 0x1d4a5, 0x1d4a6,
+ 0x1d4a9, 0x1d4ac,
+ 0x1d4ae, 0x1d4b5,
+ 0x1d4d0, 0x1d4e9,
+ 0x1d504, 0x1d505,
+ 0x1d507, 0x1d50a,
+ 0x1d50d, 0x1d514,
+ 0x1d516, 0x1d51c,
+ 0x1d538, 0x1d539,
+ 0x1d53b, 0x1d53e,
+ 0x1d540, 0x1d544,
+ 0x1d546, 0x1d546,
+ 0x1d54a, 0x1d550,
+ 0x1d56c, 0x1d585,
+ 0x1d5a0, 0x1d5b9,
+ 0x1d5d4, 0x1d5ed,
+ 0x1d608, 0x1d621,
+ 0x1d63c, 0x1d655,
+ 0x1d670, 0x1d689,
+ 0x1d6a8, 0x1d6c0,
+ 0x1d6e2, 0x1d6fa,
+ 0x1d71c, 0x1d734,
+ 0x1d756, 0x1d76e,
+ 0x1d790, 0x1d7a8,
+ 0x1d7ca, 0x1d7ca,
+}; /* CR_Uppercase */
+
+/* 'Cased': Derived Property */
+static const OnigCodePoint CR_Cased[] = {
+ 112,
+ 0x0041, 0x005a,
+ 0x0061, 0x007a,
+ 0x00aa, 0x00aa,
+ 0x00b5, 0x00b5,
+ 0x00ba, 0x00ba,
+ 0x00c0, 0x00d6,
+ 0x00d8, 0x00f6,
+ 0x00f8, 0x01ba,
+ 0x01bc, 0x01bf,
+ 0x01c4, 0x0293,
+ 0x0295, 0x02b8,
+ 0x02c0, 0x02c1,
+ 0x02e0, 0x02e4,
+ 0x0345, 0x0345,
+ 0x0370, 0x0373,
+ 0x0376, 0x0377,
+ 0x037a, 0x037d,
+ 0x0386, 0x0386,
+ 0x0388, 0x038a,
+ 0x038c, 0x038c,
+ 0x038e, 0x03a1,
+ 0x03a3, 0x03f5,
+ 0x03f7, 0x0481,
+ 0x048a, 0x0527,
+ 0x0531, 0x0556,
+ 0x0561, 0x0587,
+ 0x10a0, 0x10c5,
+ 0x1d00, 0x1dbf,
+ 0x1e00, 0x1f15,
+ 0x1f18, 0x1f1d,
+ 0x1f20, 0x1f45,
+ 0x1f48, 0x1f4d,
+ 0x1f50, 0x1f57,
+ 0x1f59, 0x1f59,
+ 0x1f5b, 0x1f5b,
+ 0x1f5d, 0x1f5d,
+ 0x1f5f, 0x1f7d,
+ 0x1f80, 0x1fb4,
+ 0x1fb6, 0x1fbc,
+ 0x1fbe, 0x1fbe,
+ 0x1fc2, 0x1fc4,
+ 0x1fc6, 0x1fcc,
+ 0x1fd0, 0x1fd3,
+ 0x1fd6, 0x1fdb,
+ 0x1fe0, 0x1fec,
+ 0x1ff2, 0x1ff4,
+ 0x1ff6, 0x1ffc,
+ 0x2090, 0x2094,
+ 0x2102, 0x2102,
+ 0x2107, 0x2107,
+ 0x210a, 0x2113,
+ 0x2115, 0x2115,
+ 0x2119, 0x211d,
+ 0x2124, 0x2124,
+ 0x2126, 0x2126,
+ 0x2128, 0x2128,
+ 0x212a, 0x212d,
+ 0x212f, 0x2134,
+ 0x2139, 0x2139,
+ 0x213c, 0x213f,
+ 0x2145, 0x2149,
+ 0x214e, 0x214e,
+ 0x2160, 0x217f,
+ 0x2183, 0x2184,
+ 0x24b6, 0x24e9,
+ 0x2c00, 0x2c2e,
+ 0x2c30, 0x2c5e,
+ 0x2c60, 0x2ce4,
+ 0x2ceb, 0x2cee,
+ 0x2d00, 0x2d25,
+ 0xa640, 0xa66d,
+ 0xa680, 0xa697,
+ 0xa722, 0xa787,
+ 0xa78b, 0xa78e,
+ 0xa790, 0xa791,
+ 0xa7a0, 0xa7a9,
+ 0xa7fa, 0xa7fa,
+ 0xfb00, 0xfb06,
+ 0xfb13, 0xfb17,
+ 0xff21, 0xff3a,
+ 0xff41, 0xff5a,
+ 0x10400, 0x1044f,
+ 0x1d400, 0x1d454,
+ 0x1d456, 0x1d49c,
+ 0x1d49e, 0x1d49f,
+ 0x1d4a2, 0x1d4a2,
+ 0x1d4a5, 0x1d4a6,
+ 0x1d4a9, 0x1d4ac,
+ 0x1d4ae, 0x1d4b9,
+ 0x1d4bb, 0x1d4bb,
+ 0x1d4bd, 0x1d4c3,
+ 0x1d4c5, 0x1d505,
+ 0x1d507, 0x1d50a,
+ 0x1d50d, 0x1d514,
+ 0x1d516, 0x1d51c,
+ 0x1d51e, 0x1d539,
+ 0x1d53b, 0x1d53e,
+ 0x1d540, 0x1d544,
+ 0x1d546, 0x1d546,
+ 0x1d54a, 0x1d550,
+ 0x1d552, 0x1d6a5,
+ 0x1d6a8, 0x1d6c0,
+ 0x1d6c2, 0x1d6da,
+ 0x1d6dc, 0x1d6fa,
+ 0x1d6fc, 0x1d714,
+ 0x1d716, 0x1d734,
+ 0x1d736, 0x1d74e,
+ 0x1d750, 0x1d76e,
+ 0x1d770, 0x1d788,
+ 0x1d78a, 0x1d7a8,
+ 0x1d7aa, 0x1d7c2,
+ 0x1d7c4, 0x1d7cb,
+}; /* CR_Cased */
+
+/* 'Case_Ignorable': Derived Property */
+static const OnigCodePoint CR_Case_Ignorable[] = {
+ 277,
+ 0x0027, 0x0027,
+ 0x002e, 0x002e,
+ 0x003a, 0x003a,
+ 0x005e, 0x005e,
+ 0x0060, 0x0060,
+ 0x00a8, 0x00a8,
+ 0x00ad, 0x00ad,
+ 0x00af, 0x00af,
+ 0x00b4, 0x00b4,
+ 0x00b7, 0x00b8,
+ 0x02b0, 0x036f,
+ 0x0374, 0x0375,
+ 0x037a, 0x037a,
+ 0x0384, 0x0385,
+ 0x0387, 0x0387,
+ 0x0483, 0x0489,
+ 0x0559, 0x0559,
+ 0x0591, 0x05bd,
+ 0x05bf, 0x05bf,
+ 0x05c1, 0x05c2,
+ 0x05c4, 0x05c5,
+ 0x05c7, 0x05c7,
+ 0x05f4, 0x05f4,
+ 0x0600, 0x0603,
+ 0x0610, 0x061a,
+ 0x0640, 0x0640,
+ 0x064b, 0x065f,
+ 0x0670, 0x0670,
+ 0x06d6, 0x06dd,
+ 0x06df, 0x06e8,
+ 0x06ea, 0x06ed,
+ 0x070f, 0x070f,
+ 0x0711, 0x0711,
+ 0x0730, 0x074a,
+ 0x07a6, 0x07b0,
+ 0x07eb, 0x07f5,
+ 0x07fa, 0x07fa,
+ 0x0816, 0x082d,
+ 0x0859, 0x085b,
+ 0x0900, 0x0902,
+ 0x093a, 0x093a,
+ 0x093c, 0x093c,
+ 0x0941, 0x0948,
+ 0x094d, 0x094d,
+ 0x0951, 0x0957,
+ 0x0962, 0x0963,
+ 0x0971, 0x0971,
+ 0x0981, 0x0981,
+ 0x09bc, 0x09bc,
+ 0x09c1, 0x09c4,
+ 0x09cd, 0x09cd,
+ 0x09e2, 0x09e3,
+ 0x0a01, 0x0a02,
+ 0x0a3c, 0x0a3c,
+ 0x0a41, 0x0a42,
+ 0x0a47, 0x0a48,
+ 0x0a4b, 0x0a4d,
+ 0x0a51, 0x0a51,
+ 0x0a70, 0x0a71,
+ 0x0a75, 0x0a75,
+ 0x0a81, 0x0a82,
+ 0x0abc, 0x0abc,
+ 0x0ac1, 0x0ac5,
+ 0x0ac7, 0x0ac8,
+ 0x0acd, 0x0acd,
+ 0x0ae2, 0x0ae3,
+ 0x0b01, 0x0b01,
+ 0x0b3c, 0x0b3c,
+ 0x0b3f, 0x0b3f,
+ 0x0b41, 0x0b44,
+ 0x0b4d, 0x0b4d,
+ 0x0b56, 0x0b56,
+ 0x0b62, 0x0b63,
+ 0x0b82, 0x0b82,
+ 0x0bc0, 0x0bc0,
+ 0x0bcd, 0x0bcd,
+ 0x0c3e, 0x0c40,
+ 0x0c46, 0x0c48,
+ 0x0c4a, 0x0c4d,
+ 0x0c55, 0x0c56,
+ 0x0c62, 0x0c63,
+ 0x0cbc, 0x0cbc,
+ 0x0cbf, 0x0cbf,
+ 0x0cc6, 0x0cc6,
+ 0x0ccc, 0x0ccd,
+ 0x0ce2, 0x0ce3,
+ 0x0d41, 0x0d44,
+ 0x0d4d, 0x0d4d,
+ 0x0d62, 0x0d63,
+ 0x0dca, 0x0dca,
+ 0x0dd2, 0x0dd4,
+ 0x0dd6, 0x0dd6,
+ 0x0e31, 0x0e31,
+ 0x0e34, 0x0e3a,
+ 0x0e46, 0x0e4e,
+ 0x0eb1, 0x0eb1,
+ 0x0eb4, 0x0eb9,
+ 0x0ebb, 0x0ebc,
+ 0x0ec6, 0x0ec6,
+ 0x0ec8, 0x0ecd,
+ 0x0f18, 0x0f19,
+ 0x0f35, 0x0f35,
+ 0x0f37, 0x0f37,
+ 0x0f39, 0x0f39,
+ 0x0f71, 0x0f7e,
+ 0x0f80, 0x0f84,
+ 0x0f86, 0x0f87,
+ 0x0f8d, 0x0f97,
+ 0x0f99, 0x0fbc,
+ 0x0fc6, 0x0fc6,
+ 0x102d, 0x1030,
+ 0x1032, 0x1037,
+ 0x1039, 0x103a,
+ 0x103d, 0x103e,
+ 0x1058, 0x1059,
+ 0x105e, 0x1060,
+ 0x1071, 0x1074,
+ 0x1082, 0x1082,
+ 0x1085, 0x1086,
+ 0x108d, 0x108d,
+ 0x109d, 0x109d,
+ 0x10fc, 0x10fc,
+ 0x135d, 0x135f,
+ 0x1712, 0x1714,
+ 0x1732, 0x1734,
+ 0x1752, 0x1753,
+ 0x1772, 0x1773,
+ 0x17b4, 0x17b5,
+ 0x17b7, 0x17bd,
+ 0x17c6, 0x17c6,
+ 0x17c9, 0x17d3,
+ 0x17d7, 0x17d7,
+ 0x17dd, 0x17dd,
+ 0x180b, 0x180d,
+ 0x1843, 0x1843,
+ 0x18a9, 0x18a9,
+ 0x1920, 0x1922,
+ 0x1927, 0x1928,
+ 0x1932, 0x1932,
+ 0x1939, 0x193b,
+ 0x1a17, 0x1a18,
+ 0x1a56, 0x1a56,
+ 0x1a58, 0x1a5e,
+ 0x1a60, 0x1a60,
+ 0x1a62, 0x1a62,
+ 0x1a65, 0x1a6c,
+ 0x1a73, 0x1a7c,
+ 0x1a7f, 0x1a7f,
+ 0x1aa7, 0x1aa7,
+ 0x1b00, 0x1b03,
+ 0x1b34, 0x1b34,
+ 0x1b36, 0x1b3a,
+ 0x1b3c, 0x1b3c,
+ 0x1b42, 0x1b42,
+ 0x1b6b, 0x1b73,
+ 0x1b80, 0x1b81,
+ 0x1ba2, 0x1ba5,
+ 0x1ba8, 0x1ba9,
+ 0x1be6, 0x1be6,
+ 0x1be8, 0x1be9,
+ 0x1bed, 0x1bed,
+ 0x1bef, 0x1bf1,
+ 0x1c2c, 0x1c33,
+ 0x1c36, 0x1c37,
+ 0x1c78, 0x1c7d,
+ 0x1cd0, 0x1cd2,
+ 0x1cd4, 0x1ce0,
+ 0x1ce2, 0x1ce8,
+ 0x1ced, 0x1ced,
+ 0x1d2c, 0x1d61,
+ 0x1d78, 0x1d78,
+ 0x1d9b, 0x1de6,
+ 0x1dfc, 0x1dff,
+ 0x1fbd, 0x1fbd,
+ 0x1fbf, 0x1fc1,
+ 0x1fcd, 0x1fcf,
+ 0x1fdd, 0x1fdf,
+ 0x1fed, 0x1fef,
+ 0x1ffd, 0x1ffe,
+ 0x200b, 0x200f,
+ 0x2018, 0x2019,
+ 0x2024, 0x2024,
+ 0x2027, 0x2027,
+ 0x202a, 0x202e,
+ 0x2060, 0x2064,
+ 0x206a, 0x206f,
+ 0x2071, 0x2071,
+ 0x207f, 0x207f,
+ 0x2090, 0x209c,
+ 0x20d0, 0x20f0,
+ 0x2c7d, 0x2c7d,
+ 0x2cef, 0x2cf1,
+ 0x2d6f, 0x2d6f,
+ 0x2d7f, 0x2d7f,
+ 0x2de0, 0x2dff,
+ 0x2e2f, 0x2e2f,
+ 0x3005, 0x3005,
+ 0x302a, 0x302f,
+ 0x3031, 0x3035,
+ 0x303b, 0x303b,
+ 0x3099, 0x309e,
+ 0x30fc, 0x30fe,
+ 0xa015, 0xa015,
+ 0xa4f8, 0xa4fd,
+ 0xa60c, 0xa60c,
+ 0xa66f, 0xa672,
+ 0xa67c, 0xa67d,
+ 0xa67f, 0xa67f,
+ 0xa6f0, 0xa6f1,
+ 0xa700, 0xa721,
+ 0xa770, 0xa770,
+ 0xa788, 0xa78a,
+ 0xa802, 0xa802,
+ 0xa806, 0xa806,
+ 0xa80b, 0xa80b,
+ 0xa825, 0xa826,
+ 0xa8c4, 0xa8c4,
+ 0xa8e0, 0xa8f1,
+ 0xa926, 0xa92d,
+ 0xa947, 0xa951,
+ 0xa980, 0xa982,
+ 0xa9b3, 0xa9b3,
+ 0xa9b6, 0xa9b9,
+ 0xa9bc, 0xa9bc,
+ 0xa9cf, 0xa9cf,
+ 0xaa29, 0xaa2e,
+ 0xaa31, 0xaa32,
+ 0xaa35, 0xaa36,
+ 0xaa43, 0xaa43,
+ 0xaa4c, 0xaa4c,
+ 0xaa70, 0xaa70,
+ 0xaab0, 0xaab0,
+ 0xaab2, 0xaab4,
+ 0xaab7, 0xaab8,
+ 0xaabe, 0xaabf,
+ 0xaac1, 0xaac1,
+ 0xaadd, 0xaadd,
+ 0xabe5, 0xabe5,
+ 0xabe8, 0xabe8,
+ 0xabed, 0xabed,
+ 0xfb1e, 0xfb1e,
+ 0xfbb2, 0xfbc1,
+ 0xfe00, 0xfe0f,
+ 0xfe13, 0xfe13,
+ 0xfe20, 0xfe26,
+ 0xfe52, 0xfe52,
+ 0xfe55, 0xfe55,
+ 0xfeff, 0xfeff,
+ 0xff07, 0xff07,
+ 0xff0e, 0xff0e,
+ 0xff1a, 0xff1a,
+ 0xff3e, 0xff3e,
+ 0xff40, 0xff40,
+ 0xff70, 0xff70,
+ 0xff9e, 0xff9f,
+ 0xffe3, 0xffe3,
+ 0xfff9, 0xfffb,
+ 0x101fd, 0x101fd,
+ 0x10a01, 0x10a03,
+ 0x10a05, 0x10a06,
+ 0x10a0c, 0x10a0f,
+ 0x10a38, 0x10a3a,
+ 0x10a3f, 0x10a3f,
+ 0x11001, 0x11001,
+ 0x11038, 0x11046,
+ 0x11080, 0x11081,
+ 0x110b3, 0x110b6,
+ 0x110b9, 0x110ba,
+ 0x110bd, 0x110bd,
+ 0x1d167, 0x1d169,
+ 0x1d173, 0x1d182,
+ 0x1d185, 0x1d18b,
+ 0x1d1aa, 0x1d1ad,
+ 0x1d242, 0x1d244,
+ 0xe0001, 0xe0001,
+ 0xe0020, 0xe007f,
+ 0xe0100, 0xe01ef,
+}; /* CR_Case_Ignorable */
+
+/* 'Changes_When_Lowercased': Derived Property */
+static const OnigCodePoint CR_Changes_When_Lowercased[] = {
+ 566,
+ 0x0041, 0x005a,
+ 0x00c0, 0x00d6,
+ 0x00d8, 0x00de,
+ 0x0100, 0x0100,
+ 0x0102, 0x0102,
+ 0x0104, 0x0104,
+ 0x0106, 0x0106,
+ 0x0108, 0x0108,
+ 0x010a, 0x010a,
+ 0x010c, 0x010c,
+ 0x010e, 0x010e,
+ 0x0110, 0x0110,
+ 0x0112, 0x0112,
+ 0x0114, 0x0114,
+ 0x0116, 0x0116,
+ 0x0118, 0x0118,
+ 0x011a, 0x011a,
+ 0x011c, 0x011c,
+ 0x011e, 0x011e,
+ 0x0120, 0x0120,
+ 0x0122, 0x0122,
+ 0x0124, 0x0124,
+ 0x0126, 0x0126,
+ 0x0128, 0x0128,
+ 0x012a, 0x012a,
+ 0x012c, 0x012c,
+ 0x012e, 0x012e,
+ 0x0130, 0x0130,
+ 0x0132, 0x0132,
+ 0x0134, 0x0134,
+ 0x0136, 0x0136,
+ 0x0139, 0x0139,
+ 0x013b, 0x013b,
+ 0x013d, 0x013d,
+ 0x013f, 0x013f,
+ 0x0141, 0x0141,
+ 0x0143, 0x0143,
+ 0x0145, 0x0145,
+ 0x0147, 0x0147,
+ 0x014a, 0x014a,
+ 0x014c, 0x014c,
+ 0x014e, 0x014e,
+ 0x0150, 0x0150,
+ 0x0152, 0x0152,
+ 0x0154, 0x0154,
+ 0x0156, 0x0156,
+ 0x0158, 0x0158,
+ 0x015a, 0x015a,
+ 0x015c, 0x015c,
+ 0x015e, 0x015e,
+ 0x0160, 0x0160,
+ 0x0162, 0x0162,
+ 0x0164, 0x0164,
+ 0x0166, 0x0166,
+ 0x0168, 0x0168,
+ 0x016a, 0x016a,
+ 0x016c, 0x016c,
+ 0x016e, 0x016e,
+ 0x0170, 0x0170,
+ 0x0172, 0x0172,
+ 0x0174, 0x0174,
+ 0x0176, 0x0176,
+ 0x0178, 0x0179,
+ 0x017b, 0x017b,
+ 0x017d, 0x017d,
+ 0x0181, 0x0182,
+ 0x0184, 0x0184,
+ 0x0186, 0x0187,
+ 0x0189, 0x018b,
+ 0x018e, 0x0191,
+ 0x0193, 0x0194,
+ 0x0196, 0x0198,
+ 0x019c, 0x019d,
+ 0x019f, 0x01a0,
+ 0x01a2, 0x01a2,
+ 0x01a4, 0x01a4,
+ 0x01a6, 0x01a7,
+ 0x01a9, 0x01a9,
+ 0x01ac, 0x01ac,
+ 0x01ae, 0x01af,
+ 0x01b1, 0x01b3,
+ 0x01b5, 0x01b5,
+ 0x01b7, 0x01b8,
+ 0x01bc, 0x01bc,
+ 0x01c4, 0x01c5,
+ 0x01c7, 0x01c8,
+ 0x01ca, 0x01cb,
+ 0x01cd, 0x01cd,
+ 0x01cf, 0x01cf,
+ 0x01d1, 0x01d1,
+ 0x01d3, 0x01d3,
+ 0x01d5, 0x01d5,
+ 0x01d7, 0x01d7,
+ 0x01d9, 0x01d9,
+ 0x01db, 0x01db,
+ 0x01de, 0x01de,
+ 0x01e0, 0x01e0,
+ 0x01e2, 0x01e2,
+ 0x01e4, 0x01e4,
+ 0x01e6, 0x01e6,
+ 0x01e8, 0x01e8,
+ 0x01ea, 0x01ea,
+ 0x01ec, 0x01ec,
+ 0x01ee, 0x01ee,
+ 0x01f1, 0x01f2,
+ 0x01f4, 0x01f4,
+ 0x01f6, 0x01f8,
+ 0x01fa, 0x01fa,
+ 0x01fc, 0x01fc,
+ 0x01fe, 0x01fe,
+ 0x0200, 0x0200,
+ 0x0202, 0x0202,
+ 0x0204, 0x0204,
+ 0x0206, 0x0206,
+ 0x0208, 0x0208,
+ 0x020a, 0x020a,
+ 0x020c, 0x020c,
+ 0x020e, 0x020e,
+ 0x0210, 0x0210,
+ 0x0212, 0x0212,
+ 0x0214, 0x0214,
+ 0x0216, 0x0216,
+ 0x0218, 0x0218,
+ 0x021a, 0x021a,
+ 0x021c, 0x021c,
+ 0x021e, 0x021e,
+ 0x0220, 0x0220,
+ 0x0222, 0x0222,
+ 0x0224, 0x0224,
+ 0x0226, 0x0226,
+ 0x0228, 0x0228,
+ 0x022a, 0x022a,
+ 0x022c, 0x022c,
+ 0x022e, 0x022e,
+ 0x0230, 0x0230,
+ 0x0232, 0x0232,
+ 0x023a, 0x023b,
+ 0x023d, 0x023e,
+ 0x0241, 0x0241,
+ 0x0243, 0x0246,
+ 0x0248, 0x0248,
+ 0x024a, 0x024a,
+ 0x024c, 0x024c,
+ 0x024e, 0x024e,
+ 0x0370, 0x0370,
+ 0x0372, 0x0372,
+ 0x0376, 0x0376,
+ 0x0386, 0x0386,
+ 0x0388, 0x038a,
+ 0x038c, 0x038c,
+ 0x038e, 0x038f,
+ 0x0391, 0x03a1,
+ 0x03a3, 0x03ab,
+ 0x03cf, 0x03cf,
+ 0x03d8, 0x03d8,
+ 0x03da, 0x03da,
+ 0x03dc, 0x03dc,
+ 0x03de, 0x03de,
+ 0x03e0, 0x03e0,
+ 0x03e2, 0x03e2,
+ 0x03e4, 0x03e4,
+ 0x03e6, 0x03e6,
+ 0x03e8, 0x03e8,
+ 0x03ea, 0x03ea,
+ 0x03ec, 0x03ec,
+ 0x03ee, 0x03ee,
+ 0x03f4, 0x03f4,
+ 0x03f7, 0x03f7,
+ 0x03f9, 0x03fa,
+ 0x03fd, 0x042f,
+ 0x0460, 0x0460,
+ 0x0462, 0x0462,
+ 0x0464, 0x0464,
+ 0x0466, 0x0466,
+ 0x0468, 0x0468,
+ 0x046a, 0x046a,
+ 0x046c, 0x046c,
+ 0x046e, 0x046e,
+ 0x0470, 0x0470,
+ 0x0472, 0x0472,
+ 0x0474, 0x0474,
+ 0x0476, 0x0476,
+ 0x0478, 0x0478,
+ 0x047a, 0x047a,
+ 0x047c, 0x047c,
+ 0x047e, 0x047e,
+ 0x0480, 0x0480,
+ 0x048a, 0x048a,
+ 0x048c, 0x048c,
+ 0x048e, 0x048e,
+ 0x0490, 0x0490,
+ 0x0492, 0x0492,
+ 0x0494, 0x0494,
+ 0x0496, 0x0496,
+ 0x0498, 0x0498,
+ 0x049a, 0x049a,
+ 0x049c, 0x049c,
+ 0x049e, 0x049e,
+ 0x04a0, 0x04a0,
+ 0x04a2, 0x04a2,
+ 0x04a4, 0x04a4,
+ 0x04a6, 0x04a6,
+ 0x04a8, 0x04a8,
+ 0x04aa, 0x04aa,
+ 0x04ac, 0x04ac,
+ 0x04ae, 0x04ae,
+ 0x04b0, 0x04b0,
+ 0x04b2, 0x04b2,
+ 0x04b4, 0x04b4,
+ 0x04b6, 0x04b6,
+ 0x04b8, 0x04b8,
+ 0x04ba, 0x04ba,
+ 0x04bc, 0x04bc,
+ 0x04be, 0x04be,
+ 0x04c0, 0x04c1,
+ 0x04c3, 0x04c3,
+ 0x04c5, 0x04c5,
+ 0x04c7, 0x04c7,
+ 0x04c9, 0x04c9,
+ 0x04cb, 0x04cb,
+ 0x04cd, 0x04cd,
+ 0x04d0, 0x04d0,
+ 0x04d2, 0x04d2,
+ 0x04d4, 0x04d4,
+ 0x04d6, 0x04d6,
+ 0x04d8, 0x04d8,
+ 0x04da, 0x04da,
+ 0x04dc, 0x04dc,
+ 0x04de, 0x04de,
+ 0x04e0, 0x04e0,
+ 0x04e2, 0x04e2,
+ 0x04e4, 0x04e4,
+ 0x04e6, 0x04e6,
+ 0x04e8, 0x04e8,
+ 0x04ea, 0x04ea,
+ 0x04ec, 0x04ec,
+ 0x04ee, 0x04ee,
+ 0x04f0, 0x04f0,
+ 0x04f2, 0x04f2,
+ 0x04f4, 0x04f4,
+ 0x04f6, 0x04f6,
+ 0x04f8, 0x04f8,
+ 0x04fa, 0x04fa,
+ 0x04fc, 0x04fc,
+ 0x04fe, 0x04fe,
+ 0x0500, 0x0500,
+ 0x0502, 0x0502,
+ 0x0504, 0x0504,
+ 0x0506, 0x0506,
+ 0x0508, 0x0508,
+ 0x050a, 0x050a,
+ 0x050c, 0x050c,
+ 0x050e, 0x050e,
+ 0x0510, 0x0510,
+ 0x0512, 0x0512,
+ 0x0514, 0x0514,
+ 0x0516, 0x0516,
+ 0x0518, 0x0518,
+ 0x051a, 0x051a,
+ 0x051c, 0x051c,
+ 0x051e, 0x051e,
+ 0x0520, 0x0520,
+ 0x0522, 0x0522,
+ 0x0524, 0x0524,
+ 0x0526, 0x0526,
+ 0x0531, 0x0556,
+ 0x10a0, 0x10c5,
+ 0x1e00, 0x1e00,
+ 0x1e02, 0x1e02,
+ 0x1e04, 0x1e04,
+ 0x1e06, 0x1e06,
+ 0x1e08, 0x1e08,
+ 0x1e0a, 0x1e0a,
+ 0x1e0c, 0x1e0c,
+ 0x1e0e, 0x1e0e,
+ 0x1e10, 0x1e10,
+ 0x1e12, 0x1e12,
+ 0x1e14, 0x1e14,
+ 0x1e16, 0x1e16,
+ 0x1e18, 0x1e18,
+ 0x1e1a, 0x1e1a,
+ 0x1e1c, 0x1e1c,
+ 0x1e1e, 0x1e1e,
+ 0x1e20, 0x1e20,
+ 0x1e22, 0x1e22,
+ 0x1e24, 0x1e24,
+ 0x1e26, 0x1e26,
+ 0x1e28, 0x1e28,
+ 0x1e2a, 0x1e2a,
+ 0x1e2c, 0x1e2c,
+ 0x1e2e, 0x1e2e,
+ 0x1e30, 0x1e30,
+ 0x1e32, 0x1e32,
+ 0x1e34, 0x1e34,
+ 0x1e36, 0x1e36,
+ 0x1e38, 0x1e38,
+ 0x1e3a, 0x1e3a,
+ 0x1e3c, 0x1e3c,
+ 0x1e3e, 0x1e3e,
+ 0x1e40, 0x1e40,
+ 0x1e42, 0x1e42,
+ 0x1e44, 0x1e44,
+ 0x1e46, 0x1e46,
+ 0x1e48, 0x1e48,
+ 0x1e4a, 0x1e4a,
+ 0x1e4c, 0x1e4c,
+ 0x1e4e, 0x1e4e,
+ 0x1e50, 0x1e50,
+ 0x1e52, 0x1e52,
+ 0x1e54, 0x1e54,
+ 0x1e56, 0x1e56,
+ 0x1e58, 0x1e58,
+ 0x1e5a, 0x1e5a,
+ 0x1e5c, 0x1e5c,
+ 0x1e5e, 0x1e5e,
+ 0x1e60, 0x1e60,
+ 0x1e62, 0x1e62,
+ 0x1e64, 0x1e64,
+ 0x1e66, 0x1e66,
+ 0x1e68, 0x1e68,
+ 0x1e6a, 0x1e6a,
+ 0x1e6c, 0x1e6c,
+ 0x1e6e, 0x1e6e,
+ 0x1e70, 0x1e70,
+ 0x1e72, 0x1e72,
+ 0x1e74, 0x1e74,
+ 0x1e76, 0x1e76,
+ 0x1e78, 0x1e78,
+ 0x1e7a, 0x1e7a,
+ 0x1e7c, 0x1e7c,
+ 0x1e7e, 0x1e7e,
+ 0x1e80, 0x1e80,
+ 0x1e82, 0x1e82,
+ 0x1e84, 0x1e84,
+ 0x1e86, 0x1e86,
+ 0x1e88, 0x1e88,
+ 0x1e8a, 0x1e8a,
+ 0x1e8c, 0x1e8c,
+ 0x1e8e, 0x1e8e,
+ 0x1e90, 0x1e90,
+ 0x1e92, 0x1e92,
+ 0x1e94, 0x1e94,
+ 0x1e9e, 0x1e9e,
+ 0x1ea0, 0x1ea0,
+ 0x1ea2, 0x1ea2,
+ 0x1ea4, 0x1ea4,
+ 0x1ea6, 0x1ea6,
+ 0x1ea8, 0x1ea8,
+ 0x1eaa, 0x1eaa,
+ 0x1eac, 0x1eac,
+ 0x1eae, 0x1eae,
+ 0x1eb0, 0x1eb0,
+ 0x1eb2, 0x1eb2,
+ 0x1eb4, 0x1eb4,
+ 0x1eb6, 0x1eb6,
+ 0x1eb8, 0x1eb8,
+ 0x1eba, 0x1eba,
+ 0x1ebc, 0x1ebc,
+ 0x1ebe, 0x1ebe,
+ 0x1ec0, 0x1ec0,
+ 0x1ec2, 0x1ec2,
+ 0x1ec4, 0x1ec4,
+ 0x1ec6, 0x1ec6,
+ 0x1ec8, 0x1ec8,
+ 0x1eca, 0x1eca,
+ 0x1ecc, 0x1ecc,
+ 0x1ece, 0x1ece,
+ 0x1ed0, 0x1ed0,
+ 0x1ed2, 0x1ed2,
+ 0x1ed4, 0x1ed4,
+ 0x1ed6, 0x1ed6,
+ 0x1ed8, 0x1ed8,
+ 0x1eda, 0x1eda,
+ 0x1edc, 0x1edc,
+ 0x1ede, 0x1ede,
+ 0x1ee0, 0x1ee0,
+ 0x1ee2, 0x1ee2,
+ 0x1ee4, 0x1ee4,
+ 0x1ee6, 0x1ee6,
+ 0x1ee8, 0x1ee8,
+ 0x1eea, 0x1eea,
+ 0x1eec, 0x1eec,
+ 0x1eee, 0x1eee,
+ 0x1ef0, 0x1ef0,
+ 0x1ef2, 0x1ef2,
+ 0x1ef4, 0x1ef4,
+ 0x1ef6, 0x1ef6,
+ 0x1ef8, 0x1ef8,
+ 0x1efa, 0x1efa,
+ 0x1efc, 0x1efc,
+ 0x1efe, 0x1efe,
+ 0x1f08, 0x1f0f,
+ 0x1f18, 0x1f1d,
+ 0x1f28, 0x1f2f,
+ 0x1f38, 0x1f3f,
+ 0x1f48, 0x1f4d,
+ 0x1f59, 0x1f59,
+ 0x1f5b, 0x1f5b,
+ 0x1f5d, 0x1f5d,
+ 0x1f5f, 0x1f5f,
+ 0x1f68, 0x1f6f,
+ 0x1f88, 0x1f8f,
+ 0x1f98, 0x1f9f,
+ 0x1fa8, 0x1faf,
+ 0x1fb8, 0x1fbc,
+ 0x1fc8, 0x1fcc,
+ 0x1fd8, 0x1fdb,
+ 0x1fe8, 0x1fec,
+ 0x1ff8, 0x1ffc,
+ 0x2126, 0x2126,
+ 0x212a, 0x212b,
+ 0x2132, 0x2132,
+ 0x2160, 0x216f,
+ 0x2183, 0x2183,
+ 0x24b6, 0x24cf,
+ 0x2c00, 0x2c2e,
+ 0x2c60, 0x2c60,
+ 0x2c62, 0x2c64,
+ 0x2c67, 0x2c67,
+ 0x2c69, 0x2c69,
+ 0x2c6b, 0x2c6b,
+ 0x2c6d, 0x2c70,
+ 0x2c72, 0x2c72,
+ 0x2c75, 0x2c75,
+ 0x2c7e, 0x2c80,
+ 0x2c82, 0x2c82,
+ 0x2c84, 0x2c84,
+ 0x2c86, 0x2c86,
+ 0x2c88, 0x2c88,
+ 0x2c8a, 0x2c8a,
+ 0x2c8c, 0x2c8c,
+ 0x2c8e, 0x2c8e,
+ 0x2c90, 0x2c90,
+ 0x2c92, 0x2c92,
+ 0x2c94, 0x2c94,
+ 0x2c96, 0x2c96,
+ 0x2c98, 0x2c98,
+ 0x2c9a, 0x2c9a,
+ 0x2c9c, 0x2c9c,
+ 0x2c9e, 0x2c9e,
+ 0x2ca0, 0x2ca0,
+ 0x2ca2, 0x2ca2,
+ 0x2ca4, 0x2ca4,
+ 0x2ca6, 0x2ca6,
+ 0x2ca8, 0x2ca8,
+ 0x2caa, 0x2caa,
+ 0x2cac, 0x2cac,
+ 0x2cae, 0x2cae,
+ 0x2cb0, 0x2cb0,
+ 0x2cb2, 0x2cb2,
+ 0x2cb4, 0x2cb4,
+ 0x2cb6, 0x2cb6,
+ 0x2cb8, 0x2cb8,
+ 0x2cba, 0x2cba,
+ 0x2cbc, 0x2cbc,
+ 0x2cbe, 0x2cbe,
+ 0x2cc0, 0x2cc0,
+ 0x2cc2, 0x2cc2,
+ 0x2cc4, 0x2cc4,
+ 0x2cc6, 0x2cc6,
+ 0x2cc8, 0x2cc8,
+ 0x2cca, 0x2cca,
+ 0x2ccc, 0x2ccc,
+ 0x2cce, 0x2cce,
+ 0x2cd0, 0x2cd0,
+ 0x2cd2, 0x2cd2,
+ 0x2cd4, 0x2cd4,
+ 0x2cd6, 0x2cd6,
+ 0x2cd8, 0x2cd8,
+ 0x2cda, 0x2cda,
+ 0x2cdc, 0x2cdc,
+ 0x2cde, 0x2cde,
+ 0x2ce0, 0x2ce0,
+ 0x2ce2, 0x2ce2,
+ 0x2ceb, 0x2ceb,
+ 0x2ced, 0x2ced,
+ 0xa640, 0xa640,
+ 0xa642, 0xa642,
+ 0xa644, 0xa644,
+ 0xa646, 0xa646,
+ 0xa648, 0xa648,
+ 0xa64a, 0xa64a,
+ 0xa64c, 0xa64c,
+ 0xa64e, 0xa64e,
+ 0xa650, 0xa650,
+ 0xa652, 0xa652,
+ 0xa654, 0xa654,
+ 0xa656, 0xa656,
+ 0xa658, 0xa658,
+ 0xa65a, 0xa65a,
+ 0xa65c, 0xa65c,
+ 0xa65e, 0xa65e,
+ 0xa660, 0xa660,
+ 0xa662, 0xa662,
+ 0xa664, 0xa664,
+ 0xa666, 0xa666,
+ 0xa668, 0xa668,
+ 0xa66a, 0xa66a,
+ 0xa66c, 0xa66c,
+ 0xa680, 0xa680,
+ 0xa682, 0xa682,
+ 0xa684, 0xa684,
+ 0xa686, 0xa686,
+ 0xa688, 0xa688,
+ 0xa68a, 0xa68a,
+ 0xa68c, 0xa68c,
+ 0xa68e, 0xa68e,
+ 0xa690, 0xa690,
+ 0xa692, 0xa692,
+ 0xa694, 0xa694,
+ 0xa696, 0xa696,
+ 0xa722, 0xa722,
+ 0xa724, 0xa724,
+ 0xa726, 0xa726,
+ 0xa728, 0xa728,
+ 0xa72a, 0xa72a,
+ 0xa72c, 0xa72c,
+ 0xa72e, 0xa72e,
+ 0xa732, 0xa732,
+ 0xa734, 0xa734,
+ 0xa736, 0xa736,
+ 0xa738, 0xa738,
+ 0xa73a, 0xa73a,
+ 0xa73c, 0xa73c,
+ 0xa73e, 0xa73e,
+ 0xa740, 0xa740,
+ 0xa742, 0xa742,
+ 0xa744, 0xa744,
+ 0xa746, 0xa746,
+ 0xa748, 0xa748,
+ 0xa74a, 0xa74a,
+ 0xa74c, 0xa74c,
+ 0xa74e, 0xa74e,
+ 0xa750, 0xa750,
+ 0xa752, 0xa752,
+ 0xa754, 0xa754,
+ 0xa756, 0xa756,
+ 0xa758, 0xa758,
+ 0xa75a, 0xa75a,
+ 0xa75c, 0xa75c,
+ 0xa75e, 0xa75e,
+ 0xa760, 0xa760,
+ 0xa762, 0xa762,
+ 0xa764, 0xa764,
+ 0xa766, 0xa766,
+ 0xa768, 0xa768,
+ 0xa76a, 0xa76a,
+ 0xa76c, 0xa76c,
+ 0xa76e, 0xa76e,
+ 0xa779, 0xa779,
+ 0xa77b, 0xa77b,
+ 0xa77d, 0xa77e,
+ 0xa780, 0xa780,
+ 0xa782, 0xa782,
+ 0xa784, 0xa784,
+ 0xa786, 0xa786,
+ 0xa78b, 0xa78b,
+ 0xa78d, 0xa78d,
+ 0xa790, 0xa790,
+ 0xa7a0, 0xa7a0,
+ 0xa7a2, 0xa7a2,
+ 0xa7a4, 0xa7a4,
+ 0xa7a6, 0xa7a6,
+ 0xa7a8, 0xa7a8,
+ 0xff21, 0xff3a,
+ 0x10400, 0x10427,
+}; /* CR_Changes_When_Lowercased */
+
+/* 'Changes_When_Uppercased': Derived Property */
+static const OnigCodePoint CR_Changes_When_Uppercased[] = {
+ 582,
+ 0x0061, 0x007a,
+ 0x00b5, 0x00b5,
+ 0x00df, 0x00f6,
+ 0x00f8, 0x00ff,
+ 0x0101, 0x0101,
+ 0x0103, 0x0103,
+ 0x0105, 0x0105,
+ 0x0107, 0x0107,
+ 0x0109, 0x0109,
+ 0x010b, 0x010b,
+ 0x010d, 0x010d,
+ 0x010f, 0x010f,
+ 0x0111, 0x0111,
+ 0x0113, 0x0113,
+ 0x0115, 0x0115,
+ 0x0117, 0x0117,
+ 0x0119, 0x0119,
+ 0x011b, 0x011b,
+ 0x011d, 0x011d,
+ 0x011f, 0x011f,
+ 0x0121, 0x0121,
+ 0x0123, 0x0123,
+ 0x0125, 0x0125,
+ 0x0127, 0x0127,
+ 0x0129, 0x0129,
+ 0x012b, 0x012b,
+ 0x012d, 0x012d,
+ 0x012f, 0x012f,
+ 0x0131, 0x0131,
+ 0x0133, 0x0133,
+ 0x0135, 0x0135,
+ 0x0137, 0x0137,
+ 0x013a, 0x013a,
+ 0x013c, 0x013c,
+ 0x013e, 0x013e,
+ 0x0140, 0x0140,
+ 0x0142, 0x0142,
+ 0x0144, 0x0144,
+ 0x0146, 0x0146,
+ 0x0148, 0x0149,
+ 0x014b, 0x014b,
+ 0x014d, 0x014d,
+ 0x014f, 0x014f,
+ 0x0151, 0x0151,
+ 0x0153, 0x0153,
+ 0x0155, 0x0155,
+ 0x0157, 0x0157,
+ 0x0159, 0x0159,
+ 0x015b, 0x015b,
+ 0x015d, 0x015d,
+ 0x015f, 0x015f,
+ 0x0161, 0x0161,
+ 0x0163, 0x0163,
+ 0x0165, 0x0165,
+ 0x0167, 0x0167,
+ 0x0169, 0x0169,
+ 0x016b, 0x016b,
+ 0x016d, 0x016d,
+ 0x016f, 0x016f,
+ 0x0171, 0x0171,
+ 0x0173, 0x0173,
+ 0x0175, 0x0175,
+ 0x0177, 0x0177,
+ 0x017a, 0x017a,
+ 0x017c, 0x017c,
+ 0x017e, 0x0180,
+ 0x0183, 0x0183,
+ 0x0185, 0x0185,
+ 0x0188, 0x0188,
+ 0x018c, 0x018c,
+ 0x0192, 0x0192,
+ 0x0195, 0x0195,
+ 0x0199, 0x019a,
+ 0x019e, 0x019e,
+ 0x01a1, 0x01a1,
+ 0x01a3, 0x01a3,
+ 0x01a5, 0x01a5,
+ 0x01a8, 0x01a8,
+ 0x01ad, 0x01ad,
+ 0x01b0, 0x01b0,
+ 0x01b4, 0x01b4,
+ 0x01b6, 0x01b6,
+ 0x01b9, 0x01b9,
+ 0x01bd, 0x01bd,
+ 0x01bf, 0x01bf,
+ 0x01c5, 0x01c6,
+ 0x01c8, 0x01c9,
+ 0x01cb, 0x01cc,
+ 0x01ce, 0x01ce,
+ 0x01d0, 0x01d0,
+ 0x01d2, 0x01d2,
+ 0x01d4, 0x01d4,
+ 0x01d6, 0x01d6,
+ 0x01d8, 0x01d8,
+ 0x01da, 0x01da,
+ 0x01dc, 0x01dd,
+ 0x01df, 0x01df,
+ 0x01e1, 0x01e1,
+ 0x01e3, 0x01e3,
+ 0x01e5, 0x01e5,
+ 0x01e7, 0x01e7,
+ 0x01e9, 0x01e9,
+ 0x01eb, 0x01eb,
+ 0x01ed, 0x01ed,
+ 0x01ef, 0x01f0,
+ 0x01f2, 0x01f3,
+ 0x01f5, 0x01f5,
+ 0x01f9, 0x01f9,
+ 0x01fb, 0x01fb,
+ 0x01fd, 0x01fd,
+ 0x01ff, 0x01ff,
+ 0x0201, 0x0201,
+ 0x0203, 0x0203,
+ 0x0205, 0x0205,
+ 0x0207, 0x0207,
+ 0x0209, 0x0209,
+ 0x020b, 0x020b,
+ 0x020d, 0x020d,
+ 0x020f, 0x020f,
+ 0x0211, 0x0211,
+ 0x0213, 0x0213,
+ 0x0215, 0x0215,
+ 0x0217, 0x0217,
+ 0x0219, 0x0219,
+ 0x021b, 0x021b,
+ 0x021d, 0x021d,
+ 0x021f, 0x021f,
+ 0x0223, 0x0223,
+ 0x0225, 0x0225,
+ 0x0227, 0x0227,
+ 0x0229, 0x0229,
+ 0x022b, 0x022b,
+ 0x022d, 0x022d,
+ 0x022f, 0x022f,
+ 0x0231, 0x0231,
+ 0x0233, 0x0233,
+ 0x023c, 0x023c,
+ 0x023f, 0x0240,
+ 0x0242, 0x0242,
+ 0x0247, 0x0247,
+ 0x0249, 0x0249,
+ 0x024b, 0x024b,
+ 0x024d, 0x024d,
+ 0x024f, 0x0254,
+ 0x0256, 0x0257,
+ 0x0259, 0x0259,
+ 0x025b, 0x025b,
+ 0x0260, 0x0260,
+ 0x0263, 0x0263,
+ 0x0265, 0x0265,
+ 0x0268, 0x0269,
+ 0x026b, 0x026b,
+ 0x026f, 0x026f,
+ 0x0271, 0x0272,
+ 0x0275, 0x0275,
+ 0x027d, 0x027d,
+ 0x0280, 0x0280,
+ 0x0283, 0x0283,
+ 0x0288, 0x028c,
+ 0x0292, 0x0292,
+ 0x0345, 0x0345,
+ 0x0371, 0x0371,
+ 0x0373, 0x0373,
+ 0x0377, 0x0377,
+ 0x037b, 0x037d,
+ 0x0390, 0x0390,
+ 0x03ac, 0x03ce,
+ 0x03d0, 0x03d1,
+ 0x03d5, 0x03d7,
+ 0x03d9, 0x03d9,
+ 0x03db, 0x03db,
+ 0x03dd, 0x03dd,
+ 0x03df, 0x03df,
+ 0x03e1, 0x03e1,
+ 0x03e3, 0x03e3,
+ 0x03e5, 0x03e5,
+ 0x03e7, 0x03e7,
+ 0x03e9, 0x03e9,
+ 0x03eb, 0x03eb,
+ 0x03ed, 0x03ed,
+ 0x03ef, 0x03f2,
+ 0x03f5, 0x03f5,
+ 0x03f8, 0x03f8,
+ 0x03fb, 0x03fb,
+ 0x0430, 0x045f,
+ 0x0461, 0x0461,
+ 0x0463, 0x0463,
+ 0x0465, 0x0465,
+ 0x0467, 0x0467,
+ 0x0469, 0x0469,
+ 0x046b, 0x046b,
+ 0x046d, 0x046d,
+ 0x046f, 0x046f,
+ 0x0471, 0x0471,
+ 0x0473, 0x0473,
+ 0x0475, 0x0475,
+ 0x0477, 0x0477,
+ 0x0479, 0x0479,
+ 0x047b, 0x047b,
+ 0x047d, 0x047d,
+ 0x047f, 0x047f,
+ 0x0481, 0x0481,
+ 0x048b, 0x048b,
+ 0x048d, 0x048d,
+ 0x048f, 0x048f,
+ 0x0491, 0x0491,
+ 0x0493, 0x0493,
+ 0x0495, 0x0495,
+ 0x0497, 0x0497,
+ 0x0499, 0x0499,
+ 0x049b, 0x049b,
+ 0x049d, 0x049d,
+ 0x049f, 0x049f,
+ 0x04a1, 0x04a1,
+ 0x04a3, 0x04a3,
+ 0x04a5, 0x04a5,
+ 0x04a7, 0x04a7,
+ 0x04a9, 0x04a9,
+ 0x04ab, 0x04ab,
+ 0x04ad, 0x04ad,
+ 0x04af, 0x04af,
+ 0x04b1, 0x04b1,
+ 0x04b3, 0x04b3,
+ 0x04b5, 0x04b5,
+ 0x04b7, 0x04b7,
+ 0x04b9, 0x04b9,
+ 0x04bb, 0x04bb,
+ 0x04bd, 0x04bd,
+ 0x04bf, 0x04bf,
+ 0x04c2, 0x04c2,
+ 0x04c4, 0x04c4,
+ 0x04c6, 0x04c6,
+ 0x04c8, 0x04c8,
+ 0x04ca, 0x04ca,
+ 0x04cc, 0x04cc,
+ 0x04ce, 0x04cf,
+ 0x04d1, 0x04d1,
+ 0x04d3, 0x04d3,
+ 0x04d5, 0x04d5,
+ 0x04d7, 0x04d7,
+ 0x04d9, 0x04d9,
+ 0x04db, 0x04db,
+ 0x04dd, 0x04dd,
+ 0x04df, 0x04df,
+ 0x04e1, 0x04e1,
+ 0x04e3, 0x04e3,
+ 0x04e5, 0x04e5,
+ 0x04e7, 0x04e7,
+ 0x04e9, 0x04e9,
+ 0x04eb, 0x04eb,
+ 0x04ed, 0x04ed,
+ 0x04ef, 0x04ef,
+ 0x04f1, 0x04f1,
+ 0x04f3, 0x04f3,
+ 0x04f5, 0x04f5,
+ 0x04f7, 0x04f7,
+ 0x04f9, 0x04f9,
+ 0x04fb, 0x04fb,
+ 0x04fd, 0x04fd,
+ 0x04ff, 0x04ff,
+ 0x0501, 0x0501,
+ 0x0503, 0x0503,
+ 0x0505, 0x0505,
+ 0x0507, 0x0507,
+ 0x0509, 0x0509,
+ 0x050b, 0x050b,
+ 0x050d, 0x050d,
+ 0x050f, 0x050f,
+ 0x0511, 0x0511,
+ 0x0513, 0x0513,
+ 0x0515, 0x0515,
+ 0x0517, 0x0517,
+ 0x0519, 0x0519,
+ 0x051b, 0x051b,
+ 0x051d, 0x051d,
+ 0x051f, 0x051f,
+ 0x0521, 0x0521,
+ 0x0523, 0x0523,
+ 0x0525, 0x0525,
+ 0x0527, 0x0527,
+ 0x0561, 0x0587,
+ 0x1d79, 0x1d79,
+ 0x1d7d, 0x1d7d,
+ 0x1e01, 0x1e01,
+ 0x1e03, 0x1e03,
+ 0x1e05, 0x1e05,
+ 0x1e07, 0x1e07,
+ 0x1e09, 0x1e09,
+ 0x1e0b, 0x1e0b,
+ 0x1e0d, 0x1e0d,
+ 0x1e0f, 0x1e0f,
+ 0x1e11, 0x1e11,
+ 0x1e13, 0x1e13,
+ 0x1e15, 0x1e15,
+ 0x1e17, 0x1e17,
+ 0x1e19, 0x1e19,
+ 0x1e1b, 0x1e1b,
+ 0x1e1d, 0x1e1d,
+ 0x1e1f, 0x1e1f,
+ 0x1e21, 0x1e21,
+ 0x1e23, 0x1e23,
+ 0x1e25, 0x1e25,
+ 0x1e27, 0x1e27,
+ 0x1e29, 0x1e29,
+ 0x1e2b, 0x1e2b,
+ 0x1e2d, 0x1e2d,
+ 0x1e2f, 0x1e2f,
+ 0x1e31, 0x1e31,
+ 0x1e33, 0x1e33,
+ 0x1e35, 0x1e35,
+ 0x1e37, 0x1e37,
+ 0x1e39, 0x1e39,
+ 0x1e3b, 0x1e3b,
+ 0x1e3d, 0x1e3d,
+ 0x1e3f, 0x1e3f,
+ 0x1e41, 0x1e41,
+ 0x1e43, 0x1e43,
+ 0x1e45, 0x1e45,
+ 0x1e47, 0x1e47,
+ 0x1e49, 0x1e49,
+ 0x1e4b, 0x1e4b,
+ 0x1e4d, 0x1e4d,
+ 0x1e4f, 0x1e4f,
+ 0x1e51, 0x1e51,
+ 0x1e53, 0x1e53,
+ 0x1e55, 0x1e55,
+ 0x1e57, 0x1e57,
+ 0x1e59, 0x1e59,
+ 0x1e5b, 0x1e5b,
+ 0x1e5d, 0x1e5d,
+ 0x1e5f, 0x1e5f,
+ 0x1e61, 0x1e61,
+ 0x1e63, 0x1e63,
+ 0x1e65, 0x1e65,
+ 0x1e67, 0x1e67,
+ 0x1e69, 0x1e69,
+ 0x1e6b, 0x1e6b,
+ 0x1e6d, 0x1e6d,
+ 0x1e6f, 0x1e6f,
+ 0x1e71, 0x1e71,
+ 0x1e73, 0x1e73,
+ 0x1e75, 0x1e75,
+ 0x1e77, 0x1e77,
+ 0x1e79, 0x1e79,
+ 0x1e7b, 0x1e7b,
+ 0x1e7d, 0x1e7d,
+ 0x1e7f, 0x1e7f,
+ 0x1e81, 0x1e81,
+ 0x1e83, 0x1e83,
+ 0x1e85, 0x1e85,
+ 0x1e87, 0x1e87,
+ 0x1e89, 0x1e89,
+ 0x1e8b, 0x1e8b,
+ 0x1e8d, 0x1e8d,
+ 0x1e8f, 0x1e8f,
+ 0x1e91, 0x1e91,
+ 0x1e93, 0x1e93,
+ 0x1e95, 0x1e9b,
+ 0x1ea1, 0x1ea1,
+ 0x1ea3, 0x1ea3,
+ 0x1ea5, 0x1ea5,
+ 0x1ea7, 0x1ea7,
+ 0x1ea9, 0x1ea9,
+ 0x1eab, 0x1eab,
+ 0x1ead, 0x1ead,
+ 0x1eaf, 0x1eaf,
+ 0x1eb1, 0x1eb1,
+ 0x1eb3, 0x1eb3,
+ 0x1eb5, 0x1eb5,
+ 0x1eb7, 0x1eb7,
+ 0x1eb9, 0x1eb9,
+ 0x1ebb, 0x1ebb,
+ 0x1ebd, 0x1ebd,
+ 0x1ebf, 0x1ebf,
+ 0x1ec1, 0x1ec1,
+ 0x1ec3, 0x1ec3,
+ 0x1ec5, 0x1ec5,
+ 0x1ec7, 0x1ec7,
+ 0x1ec9, 0x1ec9,
+ 0x1ecb, 0x1ecb,
+ 0x1ecd, 0x1ecd,
+ 0x1ecf, 0x1ecf,
+ 0x1ed1, 0x1ed1,
+ 0x1ed3, 0x1ed3,
+ 0x1ed5, 0x1ed5,
+ 0x1ed7, 0x1ed7,
+ 0x1ed9, 0x1ed9,
+ 0x1edb, 0x1edb,
+ 0x1edd, 0x1edd,
+ 0x1edf, 0x1edf,
+ 0x1ee1, 0x1ee1,
+ 0x1ee3, 0x1ee3,
+ 0x1ee5, 0x1ee5,
+ 0x1ee7, 0x1ee7,
+ 0x1ee9, 0x1ee9,
+ 0x1eeb, 0x1eeb,
+ 0x1eed, 0x1eed,
+ 0x1eef, 0x1eef,
+ 0x1ef1, 0x1ef1,
+ 0x1ef3, 0x1ef3,
+ 0x1ef5, 0x1ef5,
+ 0x1ef7, 0x1ef7,
+ 0x1ef9, 0x1ef9,
+ 0x1efb, 0x1efb,
+ 0x1efd, 0x1efd,
+ 0x1eff, 0x1f07,
+ 0x1f10, 0x1f15,
+ 0x1f20, 0x1f27,
+ 0x1f30, 0x1f37,
+ 0x1f40, 0x1f45,
+ 0x1f50, 0x1f57,
+ 0x1f60, 0x1f67,
+ 0x1f70, 0x1f7d,
+ 0x1f80, 0x1fb4,
+ 0x1fb6, 0x1fb7,
+ 0x1fbc, 0x1fbc,
+ 0x1fbe, 0x1fbe,
+ 0x1fc2, 0x1fc4,
+ 0x1fc6, 0x1fc7,
+ 0x1fcc, 0x1fcc,
+ 0x1fd0, 0x1fd3,
+ 0x1fd6, 0x1fd7,
+ 0x1fe0, 0x1fe7,
+ 0x1ff2, 0x1ff4,
+ 0x1ff6, 0x1ff7,
+ 0x1ffc, 0x1ffc,
+ 0x214e, 0x214e,
+ 0x2170, 0x217f,
+ 0x2184, 0x2184,
+ 0x24d0, 0x24e9,
+ 0x2c30, 0x2c5e,
+ 0x2c61, 0x2c61,
+ 0x2c65, 0x2c66,
+ 0x2c68, 0x2c68,
+ 0x2c6a, 0x2c6a,
+ 0x2c6c, 0x2c6c,
+ 0x2c73, 0x2c73,
+ 0x2c76, 0x2c76,
+ 0x2c81, 0x2c81,
+ 0x2c83, 0x2c83,
+ 0x2c85, 0x2c85,
+ 0x2c87, 0x2c87,
+ 0x2c89, 0x2c89,
+ 0x2c8b, 0x2c8b,
+ 0x2c8d, 0x2c8d,
+ 0x2c8f, 0x2c8f,
+ 0x2c91, 0x2c91,
+ 0x2c93, 0x2c93,
+ 0x2c95, 0x2c95,
+ 0x2c97, 0x2c97,
+ 0x2c99, 0x2c99,
+ 0x2c9b, 0x2c9b,
+ 0x2c9d, 0x2c9d,
+ 0x2c9f, 0x2c9f,
+ 0x2ca1, 0x2ca1,
+ 0x2ca3, 0x2ca3,
+ 0x2ca5, 0x2ca5,
+ 0x2ca7, 0x2ca7,
+ 0x2ca9, 0x2ca9,
+ 0x2cab, 0x2cab,
+ 0x2cad, 0x2cad,
+ 0x2caf, 0x2caf,
+ 0x2cb1, 0x2cb1,
+ 0x2cb3, 0x2cb3,
+ 0x2cb5, 0x2cb5,
+ 0x2cb7, 0x2cb7,
+ 0x2cb9, 0x2cb9,
+ 0x2cbb, 0x2cbb,
+ 0x2cbd, 0x2cbd,
+ 0x2cbf, 0x2cbf,
+ 0x2cc1, 0x2cc1,
+ 0x2cc3, 0x2cc3,
+ 0x2cc5, 0x2cc5,
+ 0x2cc7, 0x2cc7,
+ 0x2cc9, 0x2cc9,
+ 0x2ccb, 0x2ccb,
+ 0x2ccd, 0x2ccd,
+ 0x2ccf, 0x2ccf,
+ 0x2cd1, 0x2cd1,
+ 0x2cd3, 0x2cd3,
+ 0x2cd5, 0x2cd5,
+ 0x2cd7, 0x2cd7,
+ 0x2cd9, 0x2cd9,
+ 0x2cdb, 0x2cdb,
+ 0x2cdd, 0x2cdd,
+ 0x2cdf, 0x2cdf,
+ 0x2ce1, 0x2ce1,
+ 0x2ce3, 0x2ce3,
+ 0x2cec, 0x2cec,
+ 0x2cee, 0x2cee,
+ 0x2d00, 0x2d25,
+ 0xa641, 0xa641,
+ 0xa643, 0xa643,
+ 0xa645, 0xa645,
+ 0xa647, 0xa647,
+ 0xa649, 0xa649,
+ 0xa64b, 0xa64b,
+ 0xa64d, 0xa64d,
+ 0xa64f, 0xa64f,
+ 0xa651, 0xa651,
+ 0xa653, 0xa653,
+ 0xa655, 0xa655,
+ 0xa657, 0xa657,
+ 0xa659, 0xa659,
+ 0xa65b, 0xa65b,
+ 0xa65d, 0xa65d,
+ 0xa65f, 0xa65f,
+ 0xa661, 0xa661,
+ 0xa663, 0xa663,
+ 0xa665, 0xa665,
+ 0xa667, 0xa667,
+ 0xa669, 0xa669,
+ 0xa66b, 0xa66b,
+ 0xa66d, 0xa66d,
+ 0xa681, 0xa681,
+ 0xa683, 0xa683,
+ 0xa685, 0xa685,
+ 0xa687, 0xa687,
+ 0xa689, 0xa689,
+ 0xa68b, 0xa68b,
+ 0xa68d, 0xa68d,
+ 0xa68f, 0xa68f,
+ 0xa691, 0xa691,
+ 0xa693, 0xa693,
+ 0xa695, 0xa695,
+ 0xa697, 0xa697,
+ 0xa723, 0xa723,
+ 0xa725, 0xa725,
+ 0xa727, 0xa727,
+ 0xa729, 0xa729,
+ 0xa72b, 0xa72b,
+ 0xa72d, 0xa72d,
+ 0xa72f, 0xa72f,
+ 0xa733, 0xa733,
+ 0xa735, 0xa735,
+ 0xa737, 0xa737,
+ 0xa739, 0xa739,
+ 0xa73b, 0xa73b,
+ 0xa73d, 0xa73d,
+ 0xa73f, 0xa73f,
+ 0xa741, 0xa741,
+ 0xa743, 0xa743,
+ 0xa745, 0xa745,
+ 0xa747, 0xa747,
+ 0xa749, 0xa749,
+ 0xa74b, 0xa74b,
+ 0xa74d, 0xa74d,
+ 0xa74f, 0xa74f,
+ 0xa751, 0xa751,
+ 0xa753, 0xa753,
+ 0xa755, 0xa755,
+ 0xa757, 0xa757,
+ 0xa759, 0xa759,
+ 0xa75b, 0xa75b,
+ 0xa75d, 0xa75d,
+ 0xa75f, 0xa75f,
+ 0xa761, 0xa761,
+ 0xa763, 0xa763,
+ 0xa765, 0xa765,
+ 0xa767, 0xa767,
+ 0xa769, 0xa769,
+ 0xa76b, 0xa76b,
+ 0xa76d, 0xa76d,
+ 0xa76f, 0xa76f,
+ 0xa77a, 0xa77a,
+ 0xa77c, 0xa77c,
+ 0xa77f, 0xa77f,
+ 0xa781, 0xa781,
+ 0xa783, 0xa783,
+ 0xa785, 0xa785,
+ 0xa787, 0xa787,
+ 0xa78c, 0xa78c,
+ 0xa791, 0xa791,
+ 0xa7a1, 0xa7a1,
+ 0xa7a3, 0xa7a3,
+ 0xa7a5, 0xa7a5,
+ 0xa7a7, 0xa7a7,
+ 0xa7a9, 0xa7a9,
+ 0xfb00, 0xfb06,
+ 0xfb13, 0xfb17,
+ 0xff41, 0xff5a,
+ 0x10428, 0x1044f,
+}; /* CR_Changes_When_Uppercased */
+
+/* 'Changes_When_Titlecased': Derived Property */
+static const OnigCodePoint CR_Changes_When_Titlecased[] = {
+ 583,
+ 0x0061, 0x007a,
+ 0x00b5, 0x00b5,
+ 0x00df, 0x00f6,
+ 0x00f8, 0x00ff,
+ 0x0101, 0x0101,
+ 0x0103, 0x0103,
+ 0x0105, 0x0105,
+ 0x0107, 0x0107,
+ 0x0109, 0x0109,
+ 0x010b, 0x010b,
+ 0x010d, 0x010d,
+ 0x010f, 0x010f,
+ 0x0111, 0x0111,
+ 0x0113, 0x0113,
+ 0x0115, 0x0115,
+ 0x0117, 0x0117,
+ 0x0119, 0x0119,
+ 0x011b, 0x011b,
+ 0x011d, 0x011d,
+ 0x011f, 0x011f,
+ 0x0121, 0x0121,
+ 0x0123, 0x0123,
+ 0x0125, 0x0125,
+ 0x0127, 0x0127,
+ 0x0129, 0x0129,
+ 0x012b, 0x012b,
+ 0x012d, 0x012d,
+ 0x012f, 0x012f,
+ 0x0131, 0x0131,
+ 0x0133, 0x0133,
+ 0x0135, 0x0135,
+ 0x0137, 0x0137,
+ 0x013a, 0x013a,
+ 0x013c, 0x013c,
+ 0x013e, 0x013e,
+ 0x0140, 0x0140,
+ 0x0142, 0x0142,
+ 0x0144, 0x0144,
+ 0x0146, 0x0146,
+ 0x0148, 0x0149,
+ 0x014b, 0x014b,
+ 0x014d, 0x014d,
+ 0x014f, 0x014f,
+ 0x0151, 0x0151,
+ 0x0153, 0x0153,
+ 0x0155, 0x0155,
+ 0x0157, 0x0157,
+ 0x0159, 0x0159,
+ 0x015b, 0x015b,
+ 0x015d, 0x015d,
+ 0x015f, 0x015f,
+ 0x0161, 0x0161,
+ 0x0163, 0x0163,
+ 0x0165, 0x0165,
+ 0x0167, 0x0167,
+ 0x0169, 0x0169,
+ 0x016b, 0x016b,
+ 0x016d, 0x016d,
+ 0x016f, 0x016f,
+ 0x0171, 0x0171,
+ 0x0173, 0x0173,
+ 0x0175, 0x0175,
+ 0x0177, 0x0177,
+ 0x017a, 0x017a,
+ 0x017c, 0x017c,
+ 0x017e, 0x0180,
+ 0x0183, 0x0183,
+ 0x0185, 0x0185,
+ 0x0188, 0x0188,
+ 0x018c, 0x018c,
+ 0x0192, 0x0192,
+ 0x0195, 0x0195,
+ 0x0199, 0x019a,
+ 0x019e, 0x019e,
+ 0x01a1, 0x01a1,
+ 0x01a3, 0x01a3,
+ 0x01a5, 0x01a5,
+ 0x01a8, 0x01a8,
+ 0x01ad, 0x01ad,
+ 0x01b0, 0x01b0,
+ 0x01b4, 0x01b4,
+ 0x01b6, 0x01b6,
+ 0x01b9, 0x01b9,
+ 0x01bd, 0x01bd,
+ 0x01bf, 0x01bf,
+ 0x01c4, 0x01c4,
+ 0x01c6, 0x01c7,
+ 0x01c9, 0x01ca,
+ 0x01cc, 0x01cc,
+ 0x01ce, 0x01ce,
+ 0x01d0, 0x01d0,
+ 0x01d2, 0x01d2,
+ 0x01d4, 0x01d4,
+ 0x01d6, 0x01d6,
+ 0x01d8, 0x01d8,
+ 0x01da, 0x01da,
+ 0x01dc, 0x01dd,
+ 0x01df, 0x01df,
+ 0x01e1, 0x01e1,
+ 0x01e3, 0x01e3,
+ 0x01e5, 0x01e5,
+ 0x01e7, 0x01e7,
+ 0x01e9, 0x01e9,
+ 0x01eb, 0x01eb,
+ 0x01ed, 0x01ed,
+ 0x01ef, 0x01f1,
+ 0x01f3, 0x01f3,
+ 0x01f5, 0x01f5,
+ 0x01f9, 0x01f9,
+ 0x01fb, 0x01fb,
+ 0x01fd, 0x01fd,
+ 0x01ff, 0x01ff,
+ 0x0201, 0x0201,
+ 0x0203, 0x0203,
+ 0x0205, 0x0205,
+ 0x0207, 0x0207,
+ 0x0209, 0x0209,
+ 0x020b, 0x020b,
+ 0x020d, 0x020d,
+ 0x020f, 0x020f,
+ 0x0211, 0x0211,
+ 0x0213, 0x0213,
+ 0x0215, 0x0215,
+ 0x0217, 0x0217,
+ 0x0219, 0x0219,
+ 0x021b, 0x021b,
+ 0x021d, 0x021d,
+ 0x021f, 0x021f,
+ 0x0223, 0x0223,
+ 0x0225, 0x0225,
+ 0x0227, 0x0227,
+ 0x0229, 0x0229,
+ 0x022b, 0x022b,
+ 0x022d, 0x022d,
+ 0x022f, 0x022f,
+ 0x0231, 0x0231,
+ 0x0233, 0x0233,
+ 0x023c, 0x023c,
+ 0x023f, 0x0240,
+ 0x0242, 0x0242,
+ 0x0247, 0x0247,
+ 0x0249, 0x0249,
+ 0x024b, 0x024b,
+ 0x024d, 0x024d,
+ 0x024f, 0x0254,
+ 0x0256, 0x0257,
+ 0x0259, 0x0259,
+ 0x025b, 0x025b,
+ 0x0260, 0x0260,
+ 0x0263, 0x0263,
+ 0x0265, 0x0265,
+ 0x0268, 0x0269,
+ 0x026b, 0x026b,
+ 0x026f, 0x026f,
+ 0x0271, 0x0272,
+ 0x0275, 0x0275,
+ 0x027d, 0x027d,
+ 0x0280, 0x0280,
+ 0x0283, 0x0283,
+ 0x0288, 0x028c,
+ 0x0292, 0x0292,
+ 0x0345, 0x0345,
+ 0x0371, 0x0371,
+ 0x0373, 0x0373,
+ 0x0377, 0x0377,
+ 0x037b, 0x037d,
+ 0x0390, 0x0390,
+ 0x03ac, 0x03ce,
+ 0x03d0, 0x03d1,
+ 0x03d5, 0x03d7,
+ 0x03d9, 0x03d9,
+ 0x03db, 0x03db,
+ 0x03dd, 0x03dd,
+ 0x03df, 0x03df,
+ 0x03e1, 0x03e1,
+ 0x03e3, 0x03e3,
+ 0x03e5, 0x03e5,
+ 0x03e7, 0x03e7,
+ 0x03e9, 0x03e9,
+ 0x03eb, 0x03eb,
+ 0x03ed, 0x03ed,
+ 0x03ef, 0x03f2,
+ 0x03f5, 0x03f5,
+ 0x03f8, 0x03f8,
+ 0x03fb, 0x03fb,
+ 0x0430, 0x045f,
+ 0x0461, 0x0461,
+ 0x0463, 0x0463,
+ 0x0465, 0x0465,
+ 0x0467, 0x0467,
+ 0x0469, 0x0469,
+ 0x046b, 0x046b,
+ 0x046d, 0x046d,
+ 0x046f, 0x046f,
+ 0x0471, 0x0471,
+ 0x0473, 0x0473,
+ 0x0475, 0x0475,
+ 0x0477, 0x0477,
+ 0x0479, 0x0479,
+ 0x047b, 0x047b,
+ 0x047d, 0x047d,
+ 0x047f, 0x047f,
+ 0x0481, 0x0481,
+ 0x048b, 0x048b,
+ 0x048d, 0x048d,
+ 0x048f, 0x048f,
+ 0x0491, 0x0491,
+ 0x0493, 0x0493,
+ 0x0495, 0x0495,
+ 0x0497, 0x0497,
+ 0x0499, 0x0499,
+ 0x049b, 0x049b,
+ 0x049d, 0x049d,
+ 0x049f, 0x049f,
+ 0x04a1, 0x04a1,
+ 0x04a3, 0x04a3,
+ 0x04a5, 0x04a5,
+ 0x04a7, 0x04a7,
+ 0x04a9, 0x04a9,
+ 0x04ab, 0x04ab,
+ 0x04ad, 0x04ad,
+ 0x04af, 0x04af,
+ 0x04b1, 0x04b1,
+ 0x04b3, 0x04b3,
+ 0x04b5, 0x04b5,
+ 0x04b7, 0x04b7,
+ 0x04b9, 0x04b9,
+ 0x04bb, 0x04bb,
+ 0x04bd, 0x04bd,
+ 0x04bf, 0x04bf,
+ 0x04c2, 0x04c2,
+ 0x04c4, 0x04c4,
+ 0x04c6, 0x04c6,
+ 0x04c8, 0x04c8,
+ 0x04ca, 0x04ca,
+ 0x04cc, 0x04cc,
+ 0x04ce, 0x04cf,
+ 0x04d1, 0x04d1,
+ 0x04d3, 0x04d3,
+ 0x04d5, 0x04d5,
+ 0x04d7, 0x04d7,
+ 0x04d9, 0x04d9,
+ 0x04db, 0x04db,
+ 0x04dd, 0x04dd,
+ 0x04df, 0x04df,
+ 0x04e1, 0x04e1,
+ 0x04e3, 0x04e3,
+ 0x04e5, 0x04e5,
+ 0x04e7, 0x04e7,
+ 0x04e9, 0x04e9,
+ 0x04eb, 0x04eb,
+ 0x04ed, 0x04ed,
+ 0x04ef, 0x04ef,
+ 0x04f1, 0x04f1,
+ 0x04f3, 0x04f3,
+ 0x04f5, 0x04f5,
+ 0x04f7, 0x04f7,
+ 0x04f9, 0x04f9,
+ 0x04fb, 0x04fb,
+ 0x04fd, 0x04fd,
+ 0x04ff, 0x04ff,
+ 0x0501, 0x0501,
+ 0x0503, 0x0503,
+ 0x0505, 0x0505,
+ 0x0507, 0x0507,
+ 0x0509, 0x0509,
+ 0x050b, 0x050b,
+ 0x050d, 0x050d,
+ 0x050f, 0x050f,
+ 0x0511, 0x0511,
+ 0x0513, 0x0513,
+ 0x0515, 0x0515,
+ 0x0517, 0x0517,
+ 0x0519, 0x0519,
+ 0x051b, 0x051b,
+ 0x051d, 0x051d,
+ 0x051f, 0x051f,
+ 0x0521, 0x0521,
+ 0x0523, 0x0523,
+ 0x0525, 0x0525,
+ 0x0527, 0x0527,
+ 0x0561, 0x0587,
+ 0x1d79, 0x1d79,
+ 0x1d7d, 0x1d7d,
+ 0x1e01, 0x1e01,
+ 0x1e03, 0x1e03,
+ 0x1e05, 0x1e05,
+ 0x1e07, 0x1e07,
+ 0x1e09, 0x1e09,
+ 0x1e0b, 0x1e0b,
+ 0x1e0d, 0x1e0d,
+ 0x1e0f, 0x1e0f,
+ 0x1e11, 0x1e11,
+ 0x1e13, 0x1e13,
+ 0x1e15, 0x1e15,
+ 0x1e17, 0x1e17,
+ 0x1e19, 0x1e19,
+ 0x1e1b, 0x1e1b,
+ 0x1e1d, 0x1e1d,
+ 0x1e1f, 0x1e1f,
+ 0x1e21, 0x1e21,
+ 0x1e23, 0x1e23,
+ 0x1e25, 0x1e25,
+ 0x1e27, 0x1e27,
+ 0x1e29, 0x1e29,
+ 0x1e2b, 0x1e2b,
+ 0x1e2d, 0x1e2d,
+ 0x1e2f, 0x1e2f,
+ 0x1e31, 0x1e31,
+ 0x1e33, 0x1e33,
+ 0x1e35, 0x1e35,
+ 0x1e37, 0x1e37,
+ 0x1e39, 0x1e39,
+ 0x1e3b, 0x1e3b,
+ 0x1e3d, 0x1e3d,
+ 0x1e3f, 0x1e3f,
+ 0x1e41, 0x1e41,
+ 0x1e43, 0x1e43,
+ 0x1e45, 0x1e45,
+ 0x1e47, 0x1e47,
+ 0x1e49, 0x1e49,
+ 0x1e4b, 0x1e4b,
+ 0x1e4d, 0x1e4d,
+ 0x1e4f, 0x1e4f,
+ 0x1e51, 0x1e51,
+ 0x1e53, 0x1e53,
+ 0x1e55, 0x1e55,
+ 0x1e57, 0x1e57,
+ 0x1e59, 0x1e59,
+ 0x1e5b, 0x1e5b,
+ 0x1e5d, 0x1e5d,
+ 0x1e5f, 0x1e5f,
+ 0x1e61, 0x1e61,
+ 0x1e63, 0x1e63,
+ 0x1e65, 0x1e65,
+ 0x1e67, 0x1e67,
+ 0x1e69, 0x1e69,
+ 0x1e6b, 0x1e6b,
+ 0x1e6d, 0x1e6d,
+ 0x1e6f, 0x1e6f,
+ 0x1e71, 0x1e71,
+ 0x1e73, 0x1e73,
+ 0x1e75, 0x1e75,
+ 0x1e77, 0x1e77,
+ 0x1e79, 0x1e79,
+ 0x1e7b, 0x1e7b,
+ 0x1e7d, 0x1e7d,
+ 0x1e7f, 0x1e7f,
+ 0x1e81, 0x1e81,
+ 0x1e83, 0x1e83,
+ 0x1e85, 0x1e85,
+ 0x1e87, 0x1e87,
+ 0x1e89, 0x1e89,
+ 0x1e8b, 0x1e8b,
+ 0x1e8d, 0x1e8d,
+ 0x1e8f, 0x1e8f,
+ 0x1e91, 0x1e91,
+ 0x1e93, 0x1e93,
+ 0x1e95, 0x1e9b,
+ 0x1ea1, 0x1ea1,
+ 0x1ea3, 0x1ea3,
+ 0x1ea5, 0x1ea5,
+ 0x1ea7, 0x1ea7,
+ 0x1ea9, 0x1ea9,
+ 0x1eab, 0x1eab,
+ 0x1ead, 0x1ead,
+ 0x1eaf, 0x1eaf,
+ 0x1eb1, 0x1eb1,
+ 0x1eb3, 0x1eb3,
+ 0x1eb5, 0x1eb5,
+ 0x1eb7, 0x1eb7,
+ 0x1eb9, 0x1eb9,
+ 0x1ebb, 0x1ebb,
+ 0x1ebd, 0x1ebd,
+ 0x1ebf, 0x1ebf,
+ 0x1ec1, 0x1ec1,
+ 0x1ec3, 0x1ec3,
+ 0x1ec5, 0x1ec5,
+ 0x1ec7, 0x1ec7,
+ 0x1ec9, 0x1ec9,
+ 0x1ecb, 0x1ecb,
+ 0x1ecd, 0x1ecd,
+ 0x1ecf, 0x1ecf,
+ 0x1ed1, 0x1ed1,
+ 0x1ed3, 0x1ed3,
+ 0x1ed5, 0x1ed5,
+ 0x1ed7, 0x1ed7,
+ 0x1ed9, 0x1ed9,
+ 0x1edb, 0x1edb,
+ 0x1edd, 0x1edd,
+ 0x1edf, 0x1edf,
+ 0x1ee1, 0x1ee1,
+ 0x1ee3, 0x1ee3,
+ 0x1ee5, 0x1ee5,
+ 0x1ee7, 0x1ee7,
+ 0x1ee9, 0x1ee9,
+ 0x1eeb, 0x1eeb,
+ 0x1eed, 0x1eed,
+ 0x1eef, 0x1eef,
+ 0x1ef1, 0x1ef1,
+ 0x1ef3, 0x1ef3,
+ 0x1ef5, 0x1ef5,
+ 0x1ef7, 0x1ef7,
+ 0x1ef9, 0x1ef9,
+ 0x1efb, 0x1efb,
+ 0x1efd, 0x1efd,
+ 0x1eff, 0x1f07,
+ 0x1f10, 0x1f15,
+ 0x1f20, 0x1f27,
+ 0x1f30, 0x1f37,
+ 0x1f40, 0x1f45,
+ 0x1f50, 0x1f57,
+ 0x1f60, 0x1f67,
+ 0x1f70, 0x1f7d,
+ 0x1f80, 0x1f87,
+ 0x1f90, 0x1f97,
+ 0x1fa0, 0x1fa7,
+ 0x1fb0, 0x1fb4,
+ 0x1fb6, 0x1fb7,
+ 0x1fbe, 0x1fbe,
+ 0x1fc2, 0x1fc4,
+ 0x1fc6, 0x1fc7,
+ 0x1fd0, 0x1fd3,
+ 0x1fd6, 0x1fd7,
+ 0x1fe0, 0x1fe7,
+ 0x1ff2, 0x1ff4,
+ 0x1ff6, 0x1ff7,
+ 0x214e, 0x214e,
+ 0x2170, 0x217f,
+ 0x2184, 0x2184,
+ 0x24d0, 0x24e9,
+ 0x2c30, 0x2c5e,
+ 0x2c61, 0x2c61,
+ 0x2c65, 0x2c66,
+ 0x2c68, 0x2c68,
+ 0x2c6a, 0x2c6a,
+ 0x2c6c, 0x2c6c,
+ 0x2c73, 0x2c73,
+ 0x2c76, 0x2c76,
+ 0x2c81, 0x2c81,
+ 0x2c83, 0x2c83,
+ 0x2c85, 0x2c85,
+ 0x2c87, 0x2c87,
+ 0x2c89, 0x2c89,
+ 0x2c8b, 0x2c8b,
+ 0x2c8d, 0x2c8d,
+ 0x2c8f, 0x2c8f,
+ 0x2c91, 0x2c91,
+ 0x2c93, 0x2c93,
+ 0x2c95, 0x2c95,
+ 0x2c97, 0x2c97,
+ 0x2c99, 0x2c99,
+ 0x2c9b, 0x2c9b,
+ 0x2c9d, 0x2c9d,
+ 0x2c9f, 0x2c9f,
+ 0x2ca1, 0x2ca1,
+ 0x2ca3, 0x2ca3,
+ 0x2ca5, 0x2ca5,
+ 0x2ca7, 0x2ca7,
+ 0x2ca9, 0x2ca9,
+ 0x2cab, 0x2cab,
+ 0x2cad, 0x2cad,
+ 0x2caf, 0x2caf,
+ 0x2cb1, 0x2cb1,
+ 0x2cb3, 0x2cb3,
+ 0x2cb5, 0x2cb5,
+ 0x2cb7, 0x2cb7,
+ 0x2cb9, 0x2cb9,
+ 0x2cbb, 0x2cbb,
+ 0x2cbd, 0x2cbd,
+ 0x2cbf, 0x2cbf,
+ 0x2cc1, 0x2cc1,
+ 0x2cc3, 0x2cc3,
+ 0x2cc5, 0x2cc5,
+ 0x2cc7, 0x2cc7,
+ 0x2cc9, 0x2cc9,
+ 0x2ccb, 0x2ccb,
+ 0x2ccd, 0x2ccd,
+ 0x2ccf, 0x2ccf,
+ 0x2cd1, 0x2cd1,
+ 0x2cd3, 0x2cd3,
+ 0x2cd5, 0x2cd5,
+ 0x2cd7, 0x2cd7,
+ 0x2cd9, 0x2cd9,
+ 0x2cdb, 0x2cdb,
+ 0x2cdd, 0x2cdd,
+ 0x2cdf, 0x2cdf,
+ 0x2ce1, 0x2ce1,
+ 0x2ce3, 0x2ce3,
+ 0x2cec, 0x2cec,
+ 0x2cee, 0x2cee,
+ 0x2d00, 0x2d25,
+ 0xa641, 0xa641,
+ 0xa643, 0xa643,
+ 0xa645, 0xa645,
+ 0xa647, 0xa647,
+ 0xa649, 0xa649,
+ 0xa64b, 0xa64b,
+ 0xa64d, 0xa64d,
+ 0xa64f, 0xa64f,
+ 0xa651, 0xa651,
+ 0xa653, 0xa653,
+ 0xa655, 0xa655,
+ 0xa657, 0xa657,
+ 0xa659, 0xa659,
+ 0xa65b, 0xa65b,
+ 0xa65d, 0xa65d,
+ 0xa65f, 0xa65f,
+ 0xa661, 0xa661,
+ 0xa663, 0xa663,
+ 0xa665, 0xa665,
+ 0xa667, 0xa667,
+ 0xa669, 0xa669,
+ 0xa66b, 0xa66b,
+ 0xa66d, 0xa66d,
+ 0xa681, 0xa681,
+ 0xa683, 0xa683,
+ 0xa685, 0xa685,
+ 0xa687, 0xa687,
+ 0xa689, 0xa689,
+ 0xa68b, 0xa68b,
+ 0xa68d, 0xa68d,
+ 0xa68f, 0xa68f,
+ 0xa691, 0xa691,
+ 0xa693, 0xa693,
+ 0xa695, 0xa695,
+ 0xa697, 0xa697,
+ 0xa723, 0xa723,
+ 0xa725, 0xa725,
+ 0xa727, 0xa727,
+ 0xa729, 0xa729,
+ 0xa72b, 0xa72b,
+ 0xa72d, 0xa72d,
+ 0xa72f, 0xa72f,
+ 0xa733, 0xa733,
+ 0xa735, 0xa735,
+ 0xa737, 0xa737,
+ 0xa739, 0xa739,
+ 0xa73b, 0xa73b,
+ 0xa73d, 0xa73d,
+ 0xa73f, 0xa73f,
+ 0xa741, 0xa741,
+ 0xa743, 0xa743,
+ 0xa745, 0xa745,
+ 0xa747, 0xa747,
+ 0xa749, 0xa749,
+ 0xa74b, 0xa74b,
+ 0xa74d, 0xa74d,
+ 0xa74f, 0xa74f,
+ 0xa751, 0xa751,
+ 0xa753, 0xa753,
+ 0xa755, 0xa755,
+ 0xa757, 0xa757,
+ 0xa759, 0xa759,
+ 0xa75b, 0xa75b,
+ 0xa75d, 0xa75d,
+ 0xa75f, 0xa75f,
+ 0xa761, 0xa761,
+ 0xa763, 0xa763,
+ 0xa765, 0xa765,
+ 0xa767, 0xa767,
+ 0xa769, 0xa769,
+ 0xa76b, 0xa76b,
+ 0xa76d, 0xa76d,
+ 0xa76f, 0xa76f,
+ 0xa77a, 0xa77a,
+ 0xa77c, 0xa77c,
+ 0xa77f, 0xa77f,
+ 0xa781, 0xa781,
+ 0xa783, 0xa783,
+ 0xa785, 0xa785,
+ 0xa787, 0xa787,
+ 0xa78c, 0xa78c,
+ 0xa791, 0xa791,
+ 0xa7a1, 0xa7a1,
+ 0xa7a3, 0xa7a3,
+ 0xa7a5, 0xa7a5,
+ 0xa7a7, 0xa7a7,
+ 0xa7a9, 0xa7a9,
+ 0xfb00, 0xfb06,
+ 0xfb13, 0xfb17,
+ 0xff41, 0xff5a,
+ 0x10428, 0x1044f,
+}; /* CR_Changes_When_Titlecased */
+
+/* 'Changes_When_Casefolded': Derived Property */
+static const OnigCodePoint CR_Changes_When_Casefolded[] = {
+ 577,
+ 0x0041, 0x005a,
+ 0x00b5, 0x00b5,
+ 0x00c0, 0x00d6,
+ 0x00d8, 0x00df,
+ 0x0100, 0x0100,
+ 0x0102, 0x0102,
+ 0x0104, 0x0104,
+ 0x0106, 0x0106,
+ 0x0108, 0x0108,
+ 0x010a, 0x010a,
+ 0x010c, 0x010c,
+ 0x010e, 0x010e,
+ 0x0110, 0x0110,
+ 0x0112, 0x0112,
+ 0x0114, 0x0114,
+ 0x0116, 0x0116,
+ 0x0118, 0x0118,
+ 0x011a, 0x011a,
+ 0x011c, 0x011c,
+ 0x011e, 0x011e,
+ 0x0120, 0x0120,
+ 0x0122, 0x0122,
+ 0x0124, 0x0124,
+ 0x0126, 0x0126,
+ 0x0128, 0x0128,
+ 0x012a, 0x012a,
+ 0x012c, 0x012c,
+ 0x012e, 0x012e,
+ 0x0130, 0x0130,
+ 0x0132, 0x0132,
+ 0x0134, 0x0134,
+ 0x0136, 0x0136,
+ 0x0139, 0x0139,
+ 0x013b, 0x013b,
+ 0x013d, 0x013d,
+ 0x013f, 0x013f,
+ 0x0141, 0x0141,
+ 0x0143, 0x0143,
+ 0x0145, 0x0145,
+ 0x0147, 0x0147,
+ 0x0149, 0x014a,
+ 0x014c, 0x014c,
+ 0x014e, 0x014e,
+ 0x0150, 0x0150,
+ 0x0152, 0x0152,
+ 0x0154, 0x0154,
+ 0x0156, 0x0156,
+ 0x0158, 0x0158,
+ 0x015a, 0x015a,
+ 0x015c, 0x015c,
+ 0x015e, 0x015e,
+ 0x0160, 0x0160,
+ 0x0162, 0x0162,
+ 0x0164, 0x0164,
+ 0x0166, 0x0166,
+ 0x0168, 0x0168,
+ 0x016a, 0x016a,
+ 0x016c, 0x016c,
+ 0x016e, 0x016e,
+ 0x0170, 0x0170,
+ 0x0172, 0x0172,
+ 0x0174, 0x0174,
+ 0x0176, 0x0176,
+ 0x0178, 0x0179,
+ 0x017b, 0x017b,
+ 0x017d, 0x017d,
+ 0x017f, 0x017f,
+ 0x0181, 0x0182,
+ 0x0184, 0x0184,
+ 0x0186, 0x0187,
+ 0x0189, 0x018b,
+ 0x018e, 0x0191,
+ 0x0193, 0x0194,
+ 0x0196, 0x0198,
+ 0x019c, 0x019d,
+ 0x019f, 0x01a0,
+ 0x01a2, 0x01a2,
+ 0x01a4, 0x01a4,
+ 0x01a6, 0x01a7,
+ 0x01a9, 0x01a9,
+ 0x01ac, 0x01ac,
+ 0x01ae, 0x01af,
+ 0x01b1, 0x01b3,
+ 0x01b5, 0x01b5,
+ 0x01b7, 0x01b8,
+ 0x01bc, 0x01bc,
+ 0x01c4, 0x01c5,
+ 0x01c7, 0x01c8,
+ 0x01ca, 0x01cb,
+ 0x01cd, 0x01cd,
+ 0x01cf, 0x01cf,
+ 0x01d1, 0x01d1,
+ 0x01d3, 0x01d3,
+ 0x01d5, 0x01d5,
+ 0x01d7, 0x01d7,
+ 0x01d9, 0x01d9,
+ 0x01db, 0x01db,
+ 0x01de, 0x01de,
+ 0x01e0, 0x01e0,
+ 0x01e2, 0x01e2,
+ 0x01e4, 0x01e4,
+ 0x01e6, 0x01e6,
+ 0x01e8, 0x01e8,
+ 0x01ea, 0x01ea,
+ 0x01ec, 0x01ec,
+ 0x01ee, 0x01ee,
+ 0x01f1, 0x01f2,
+ 0x01f4, 0x01f4,
+ 0x01f6, 0x01f8,
+ 0x01fa, 0x01fa,
+ 0x01fc, 0x01fc,
+ 0x01fe, 0x01fe,
+ 0x0200, 0x0200,
+ 0x0202, 0x0202,
+ 0x0204, 0x0204,
+ 0x0206, 0x0206,
+ 0x0208, 0x0208,
+ 0x020a, 0x020a,
+ 0x020c, 0x020c,
+ 0x020e, 0x020e,
+ 0x0210, 0x0210,
+ 0x0212, 0x0212,
+ 0x0214, 0x0214,
+ 0x0216, 0x0216,
+ 0x0218, 0x0218,
+ 0x021a, 0x021a,
+ 0x021c, 0x021c,
+ 0x021e, 0x021e,
+ 0x0220, 0x0220,
+ 0x0222, 0x0222,
+ 0x0224, 0x0224,
+ 0x0226, 0x0226,
+ 0x0228, 0x0228,
+ 0x022a, 0x022a,
+ 0x022c, 0x022c,
+ 0x022e, 0x022e,
+ 0x0230, 0x0230,
+ 0x0232, 0x0232,
+ 0x023a, 0x023b,
+ 0x023d, 0x023e,
+ 0x0241, 0x0241,
+ 0x0243, 0x0246,
+ 0x0248, 0x0248,
+ 0x024a, 0x024a,
+ 0x024c, 0x024c,
+ 0x024e, 0x024e,
+ 0x0345, 0x0345,
+ 0x0370, 0x0370,
+ 0x0372, 0x0372,
+ 0x0376, 0x0376,
+ 0x0386, 0x0386,
+ 0x0388, 0x038a,
+ 0x038c, 0x038c,
+ 0x038e, 0x038f,
+ 0x0391, 0x03a1,
+ 0x03a3, 0x03ab,
+ 0x03c2, 0x03c2,
+ 0x03cf, 0x03d1,
+ 0x03d5, 0x03d6,
+ 0x03d8, 0x03d8,
+ 0x03da, 0x03da,
+ 0x03dc, 0x03dc,
+ 0x03de, 0x03de,
+ 0x03e0, 0x03e0,
+ 0x03e2, 0x03e2,
+ 0x03e4, 0x03e4,
+ 0x03e6, 0x03e6,
+ 0x03e8, 0x03e8,
+ 0x03ea, 0x03ea,
+ 0x03ec, 0x03ec,
+ 0x03ee, 0x03ee,
+ 0x03f0, 0x03f1,
+ 0x03f4, 0x03f5,
+ 0x03f7, 0x03f7,
+ 0x03f9, 0x03fa,
+ 0x03fd, 0x042f,
+ 0x0460, 0x0460,
+ 0x0462, 0x0462,
+ 0x0464, 0x0464,
+ 0x0466, 0x0466,
+ 0x0468, 0x0468,
+ 0x046a, 0x046a,
+ 0x046c, 0x046c,
+ 0x046e, 0x046e,
+ 0x0470, 0x0470,
+ 0x0472, 0x0472,
+ 0x0474, 0x0474,
+ 0x0476, 0x0476,
+ 0x0478, 0x0478,
+ 0x047a, 0x047a,
+ 0x047c, 0x047c,
+ 0x047e, 0x047e,
+ 0x0480, 0x0480,
+ 0x048a, 0x048a,
+ 0x048c, 0x048c,
+ 0x048e, 0x048e,
+ 0x0490, 0x0490,
+ 0x0492, 0x0492,
+ 0x0494, 0x0494,
+ 0x0496, 0x0496,
+ 0x0498, 0x0498,
+ 0x049a, 0x049a,
+ 0x049c, 0x049c,
+ 0x049e, 0x049e,
+ 0x04a0, 0x04a0,
+ 0x04a2, 0x04a2,
+ 0x04a4, 0x04a4,
+ 0x04a6, 0x04a6,
+ 0x04a8, 0x04a8,
+ 0x04aa, 0x04aa,
+ 0x04ac, 0x04ac,
+ 0x04ae, 0x04ae,
+ 0x04b0, 0x04b0,
+ 0x04b2, 0x04b2,
+ 0x04b4, 0x04b4,
+ 0x04b6, 0x04b6,
+ 0x04b8, 0x04b8,
+ 0x04ba, 0x04ba,
+ 0x04bc, 0x04bc,
+ 0x04be, 0x04be,
+ 0x04c0, 0x04c1,
+ 0x04c3, 0x04c3,
+ 0x04c5, 0x04c5,
+ 0x04c7, 0x04c7,
+ 0x04c9, 0x04c9,
+ 0x04cb, 0x04cb,
+ 0x04cd, 0x04cd,
+ 0x04d0, 0x04d0,
+ 0x04d2, 0x04d2,
+ 0x04d4, 0x04d4,
+ 0x04d6, 0x04d6,
+ 0x04d8, 0x04d8,
+ 0x04da, 0x04da,
+ 0x04dc, 0x04dc,
+ 0x04de, 0x04de,
+ 0x04e0, 0x04e0,
+ 0x04e2, 0x04e2,
+ 0x04e4, 0x04e4,
+ 0x04e6, 0x04e6,
+ 0x04e8, 0x04e8,
+ 0x04ea, 0x04ea,
+ 0x04ec, 0x04ec,
+ 0x04ee, 0x04ee,
+ 0x04f0, 0x04f0,
+ 0x04f2, 0x04f2,
+ 0x04f4, 0x04f4,
+ 0x04f6, 0x04f6,
+ 0x04f8, 0x04f8,
+ 0x04fa, 0x04fa,
+ 0x04fc, 0x04fc,
+ 0x04fe, 0x04fe,
+ 0x0500, 0x0500,
+ 0x0502, 0x0502,
+ 0x0504, 0x0504,
+ 0x0506, 0x0506,
+ 0x0508, 0x0508,
+ 0x050a, 0x050a,
+ 0x050c, 0x050c,
+ 0x050e, 0x050e,
+ 0x0510, 0x0510,
+ 0x0512, 0x0512,
+ 0x0514, 0x0514,
+ 0x0516, 0x0516,
+ 0x0518, 0x0518,
+ 0x051a, 0x051a,
+ 0x051c, 0x051c,
+ 0x051e, 0x051e,
+ 0x0520, 0x0520,
+ 0x0522, 0x0522,
+ 0x0524, 0x0524,
+ 0x0526, 0x0526,
+ 0x0531, 0x0556,
+ 0x0587, 0x0587,
+ 0x10a0, 0x10c5,
+ 0x1e00, 0x1e00,
+ 0x1e02, 0x1e02,
+ 0x1e04, 0x1e04,
+ 0x1e06, 0x1e06,
+ 0x1e08, 0x1e08,
+ 0x1e0a, 0x1e0a,
+ 0x1e0c, 0x1e0c,
+ 0x1e0e, 0x1e0e,
+ 0x1e10, 0x1e10,
+ 0x1e12, 0x1e12,
+ 0x1e14, 0x1e14,
+ 0x1e16, 0x1e16,
+ 0x1e18, 0x1e18,
+ 0x1e1a, 0x1e1a,
+ 0x1e1c, 0x1e1c,
+ 0x1e1e, 0x1e1e,
+ 0x1e20, 0x1e20,
+ 0x1e22, 0x1e22,
+ 0x1e24, 0x1e24,
+ 0x1e26, 0x1e26,
+ 0x1e28, 0x1e28,
+ 0x1e2a, 0x1e2a,
+ 0x1e2c, 0x1e2c,
+ 0x1e2e, 0x1e2e,
+ 0x1e30, 0x1e30,
+ 0x1e32, 0x1e32,
+ 0x1e34, 0x1e34,
+ 0x1e36, 0x1e36,
+ 0x1e38, 0x1e38,
+ 0x1e3a, 0x1e3a,
+ 0x1e3c, 0x1e3c,
+ 0x1e3e, 0x1e3e,
+ 0x1e40, 0x1e40,
+ 0x1e42, 0x1e42,
+ 0x1e44, 0x1e44,
+ 0x1e46, 0x1e46,
+ 0x1e48, 0x1e48,
+ 0x1e4a, 0x1e4a,
+ 0x1e4c, 0x1e4c,
+ 0x1e4e, 0x1e4e,
+ 0x1e50, 0x1e50,
+ 0x1e52, 0x1e52,
+ 0x1e54, 0x1e54,
+ 0x1e56, 0x1e56,
+ 0x1e58, 0x1e58,
+ 0x1e5a, 0x1e5a,
+ 0x1e5c, 0x1e5c,
+ 0x1e5e, 0x1e5e,
+ 0x1e60, 0x1e60,
+ 0x1e62, 0x1e62,
+ 0x1e64, 0x1e64,
+ 0x1e66, 0x1e66,
+ 0x1e68, 0x1e68,
+ 0x1e6a, 0x1e6a,
+ 0x1e6c, 0x1e6c,
+ 0x1e6e, 0x1e6e,
+ 0x1e70, 0x1e70,
+ 0x1e72, 0x1e72,
+ 0x1e74, 0x1e74,
+ 0x1e76, 0x1e76,
+ 0x1e78, 0x1e78,
+ 0x1e7a, 0x1e7a,
+ 0x1e7c, 0x1e7c,
+ 0x1e7e, 0x1e7e,
+ 0x1e80, 0x1e80,
+ 0x1e82, 0x1e82,
+ 0x1e84, 0x1e84,
+ 0x1e86, 0x1e86,
+ 0x1e88, 0x1e88,
+ 0x1e8a, 0x1e8a,
+ 0x1e8c, 0x1e8c,
+ 0x1e8e, 0x1e8e,
+ 0x1e90, 0x1e90,
+ 0x1e92, 0x1e92,
+ 0x1e94, 0x1e94,
+ 0x1e9a, 0x1e9b,
+ 0x1e9e, 0x1e9e,
+ 0x1ea0, 0x1ea0,
+ 0x1ea2, 0x1ea2,
+ 0x1ea4, 0x1ea4,
+ 0x1ea6, 0x1ea6,
+ 0x1ea8, 0x1ea8,
+ 0x1eaa, 0x1eaa,
+ 0x1eac, 0x1eac,
+ 0x1eae, 0x1eae,
+ 0x1eb0, 0x1eb0,
+ 0x1eb2, 0x1eb2,
+ 0x1eb4, 0x1eb4,
+ 0x1eb6, 0x1eb6,
+ 0x1eb8, 0x1eb8,
+ 0x1eba, 0x1eba,
+ 0x1ebc, 0x1ebc,
+ 0x1ebe, 0x1ebe,
+ 0x1ec0, 0x1ec0,
+ 0x1ec2, 0x1ec2,
+ 0x1ec4, 0x1ec4,
+ 0x1ec6, 0x1ec6,
+ 0x1ec8, 0x1ec8,
+ 0x1eca, 0x1eca,
+ 0x1ecc, 0x1ecc,
+ 0x1ece, 0x1ece,
+ 0x1ed0, 0x1ed0,
+ 0x1ed2, 0x1ed2,
+ 0x1ed4, 0x1ed4,
+ 0x1ed6, 0x1ed6,
+ 0x1ed8, 0x1ed8,
+ 0x1eda, 0x1eda,
+ 0x1edc, 0x1edc,
+ 0x1ede, 0x1ede,
+ 0x1ee0, 0x1ee0,
+ 0x1ee2, 0x1ee2,
+ 0x1ee4, 0x1ee4,
+ 0x1ee6, 0x1ee6,
+ 0x1ee8, 0x1ee8,
+ 0x1eea, 0x1eea,
+ 0x1eec, 0x1eec,
+ 0x1eee, 0x1eee,
+ 0x1ef0, 0x1ef0,
+ 0x1ef2, 0x1ef2,
+ 0x1ef4, 0x1ef4,
+ 0x1ef6, 0x1ef6,
+ 0x1ef8, 0x1ef8,
+ 0x1efa, 0x1efa,
+ 0x1efc, 0x1efc,
+ 0x1efe, 0x1efe,
+ 0x1f08, 0x1f0f,
+ 0x1f18, 0x1f1d,
+ 0x1f28, 0x1f2f,
+ 0x1f38, 0x1f3f,
+ 0x1f48, 0x1f4d,
+ 0x1f59, 0x1f59,
+ 0x1f5b, 0x1f5b,
+ 0x1f5d, 0x1f5d,
+ 0x1f5f, 0x1f5f,
+ 0x1f68, 0x1f6f,
+ 0x1f80, 0x1faf,
+ 0x1fb2, 0x1fb4,
+ 0x1fb7, 0x1fbc,
+ 0x1fc2, 0x1fc4,
+ 0x1fc7, 0x1fcc,
+ 0x1fd8, 0x1fdb,
+ 0x1fe8, 0x1fec,
+ 0x1ff2, 0x1ff4,
+ 0x1ff7, 0x1ffc,
+ 0x2126, 0x2126,
+ 0x212a, 0x212b,
+ 0x2132, 0x2132,
+ 0x2160, 0x216f,
+ 0x2183, 0x2183,
+ 0x24b6, 0x24cf,
+ 0x2c00, 0x2c2e,
+ 0x2c60, 0x2c60,
+ 0x2c62, 0x2c64,
+ 0x2c67, 0x2c67,
+ 0x2c69, 0x2c69,
+ 0x2c6b, 0x2c6b,
+ 0x2c6d, 0x2c70,
+ 0x2c72, 0x2c72,
+ 0x2c75, 0x2c75,
+ 0x2c7e, 0x2c80,
+ 0x2c82, 0x2c82,
+ 0x2c84, 0x2c84,
+ 0x2c86, 0x2c86,
+ 0x2c88, 0x2c88,
+ 0x2c8a, 0x2c8a,
+ 0x2c8c, 0x2c8c,
+ 0x2c8e, 0x2c8e,
+ 0x2c90, 0x2c90,
+ 0x2c92, 0x2c92,
+ 0x2c94, 0x2c94,
+ 0x2c96, 0x2c96,
+ 0x2c98, 0x2c98,
+ 0x2c9a, 0x2c9a,
+ 0x2c9c, 0x2c9c,
+ 0x2c9e, 0x2c9e,
+ 0x2ca0, 0x2ca0,
+ 0x2ca2, 0x2ca2,
+ 0x2ca4, 0x2ca4,
+ 0x2ca6, 0x2ca6,
+ 0x2ca8, 0x2ca8,
+ 0x2caa, 0x2caa,
+ 0x2cac, 0x2cac,
+ 0x2cae, 0x2cae,
+ 0x2cb0, 0x2cb0,
+ 0x2cb2, 0x2cb2,
+ 0x2cb4, 0x2cb4,
+ 0x2cb6, 0x2cb6,
+ 0x2cb8, 0x2cb8,
+ 0x2cba, 0x2cba,
+ 0x2cbc, 0x2cbc,
+ 0x2cbe, 0x2cbe,
+ 0x2cc0, 0x2cc0,
+ 0x2cc2, 0x2cc2,
+ 0x2cc4, 0x2cc4,
+ 0x2cc6, 0x2cc6,
+ 0x2cc8, 0x2cc8,
+ 0x2cca, 0x2cca,
+ 0x2ccc, 0x2ccc,
+ 0x2cce, 0x2cce,
+ 0x2cd0, 0x2cd0,
+ 0x2cd2, 0x2cd2,
+ 0x2cd4, 0x2cd4,
+ 0x2cd6, 0x2cd6,
+ 0x2cd8, 0x2cd8,
+ 0x2cda, 0x2cda,
+ 0x2cdc, 0x2cdc,
+ 0x2cde, 0x2cde,
+ 0x2ce0, 0x2ce0,
+ 0x2ce2, 0x2ce2,
+ 0x2ceb, 0x2ceb,
+ 0x2ced, 0x2ced,
+ 0xa640, 0xa640,
+ 0xa642, 0xa642,
+ 0xa644, 0xa644,
+ 0xa646, 0xa646,
+ 0xa648, 0xa648,
+ 0xa64a, 0xa64a,
+ 0xa64c, 0xa64c,
+ 0xa64e, 0xa64e,
+ 0xa650, 0xa650,
+ 0xa652, 0xa652,
+ 0xa654, 0xa654,
+ 0xa656, 0xa656,
+ 0xa658, 0xa658,
+ 0xa65a, 0xa65a,
+ 0xa65c, 0xa65c,
+ 0xa65e, 0xa65e,
+ 0xa660, 0xa660,
+ 0xa662, 0xa662,
+ 0xa664, 0xa664,
+ 0xa666, 0xa666,
+ 0xa668, 0xa668,
+ 0xa66a, 0xa66a,
+ 0xa66c, 0xa66c,
+ 0xa680, 0xa680,
+ 0xa682, 0xa682,
+ 0xa684, 0xa684,
+ 0xa686, 0xa686,
+ 0xa688, 0xa688,
+ 0xa68a, 0xa68a,
+ 0xa68c, 0xa68c,
+ 0xa68e, 0xa68e,
+ 0xa690, 0xa690,
+ 0xa692, 0xa692,
+ 0xa694, 0xa694,
+ 0xa696, 0xa696,
+ 0xa722, 0xa722,
+ 0xa724, 0xa724,
+ 0xa726, 0xa726,
+ 0xa728, 0xa728,
+ 0xa72a, 0xa72a,
+ 0xa72c, 0xa72c,
+ 0xa72e, 0xa72e,
+ 0xa732, 0xa732,
+ 0xa734, 0xa734,
+ 0xa736, 0xa736,
+ 0xa738, 0xa738,
+ 0xa73a, 0xa73a,
+ 0xa73c, 0xa73c,
+ 0xa73e, 0xa73e,
+ 0xa740, 0xa740,
+ 0xa742, 0xa742,
+ 0xa744, 0xa744,
+ 0xa746, 0xa746,
+ 0xa748, 0xa748,
+ 0xa74a, 0xa74a,
+ 0xa74c, 0xa74c,
+ 0xa74e, 0xa74e,
+ 0xa750, 0xa750,
+ 0xa752, 0xa752,
+ 0xa754, 0xa754,
+ 0xa756, 0xa756,
+ 0xa758, 0xa758,
+ 0xa75a, 0xa75a,
+ 0xa75c, 0xa75c,
+ 0xa75e, 0xa75e,
+ 0xa760, 0xa760,
+ 0xa762, 0xa762,
+ 0xa764, 0xa764,
+ 0xa766, 0xa766,
+ 0xa768, 0xa768,
+ 0xa76a, 0xa76a,
+ 0xa76c, 0xa76c,
+ 0xa76e, 0xa76e,
+ 0xa779, 0xa779,
+ 0xa77b, 0xa77b,
+ 0xa77d, 0xa77e,
+ 0xa780, 0xa780,
+ 0xa782, 0xa782,
+ 0xa784, 0xa784,
+ 0xa786, 0xa786,
+ 0xa78b, 0xa78b,
+ 0xa78d, 0xa78d,
+ 0xa790, 0xa790,
+ 0xa7a0, 0xa7a0,
+ 0xa7a2, 0xa7a2,
+ 0xa7a4, 0xa7a4,
+ 0xa7a6, 0xa7a6,
+ 0xa7a8, 0xa7a8,
+ 0xfb00, 0xfb06,
+ 0xfb13, 0xfb17,
+ 0xff21, 0xff3a,
+ 0x10400, 0x10427,
+}; /* CR_Changes_When_Casefolded */
+
+/* 'Changes_When_Casemapped': Derived Property */
+static const OnigCodePoint CR_Changes_When_Casemapped[] = {
+ 99,
+ 0x0041, 0x005a,
+ 0x0061, 0x007a,
+ 0x00b5, 0x00b5,
+ 0x00c0, 0x00d6,
+ 0x00d8, 0x00f6,
+ 0x00f8, 0x0137,
+ 0x0139, 0x018c,
+ 0x018e, 0x019a,
+ 0x019c, 0x01a9,
+ 0x01ac, 0x01b9,
+ 0x01bc, 0x01bd,
+ 0x01bf, 0x01bf,
+ 0x01c4, 0x0220,
+ 0x0222, 0x0233,
+ 0x023a, 0x0254,
+ 0x0256, 0x0257,
+ 0x0259, 0x0259,
+ 0x025b, 0x025b,
+ 0x0260, 0x0260,
+ 0x0263, 0x0263,
+ 0x0265, 0x0265,
+ 0x0268, 0x0269,
+ 0x026b, 0x026b,
+ 0x026f, 0x026f,
+ 0x0271, 0x0272,
+ 0x0275, 0x0275,
+ 0x027d, 0x027d,
+ 0x0280, 0x0280,
+ 0x0283, 0x0283,
+ 0x0288, 0x028c,
+ 0x0292, 0x0292,
+ 0x0345, 0x0345,
+ 0x0370, 0x0373,
+ 0x0376, 0x0377,
+ 0x037b, 0x037d,
+ 0x0386, 0x0386,
+ 0x0388, 0x038a,
+ 0x038c, 0x038c,
+ 0x038e, 0x03a1,
+ 0x03a3, 0x03d1,
+ 0x03d5, 0x03f2,
+ 0x03f4, 0x03f5,
+ 0x03f7, 0x03fb,
+ 0x03fd, 0x0481,
+ 0x048a, 0x0527,
+ 0x0531, 0x0556,
+ 0x0561, 0x0587,
+ 0x10a0, 0x10c5,
+ 0x1d79, 0x1d79,
+ 0x1d7d, 0x1d7d,
+ 0x1e00, 0x1e9b,
+ 0x1e9e, 0x1e9e,
+ 0x1ea0, 0x1f15,
+ 0x1f18, 0x1f1d,
+ 0x1f20, 0x1f45,
+ 0x1f48, 0x1f4d,
+ 0x1f50, 0x1f57,
+ 0x1f59, 0x1f59,
+ 0x1f5b, 0x1f5b,
+ 0x1f5d, 0x1f5d,
+ 0x1f5f, 0x1f7d,
+ 0x1f80, 0x1fb4,
+ 0x1fb6, 0x1fbc,
+ 0x1fbe, 0x1fbe,
+ 0x1fc2, 0x1fc4,
+ 0x1fc6, 0x1fcc,
+ 0x1fd0, 0x1fd3,
+ 0x1fd6, 0x1fdb,
+ 0x1fe0, 0x1fec,
+ 0x1ff2, 0x1ff4,
+ 0x1ff6, 0x1ffc,
+ 0x2126, 0x2126,
+ 0x212a, 0x212b,
+ 0x2132, 0x2132,
+ 0x214e, 0x214e,
+ 0x2160, 0x217f,
+ 0x2183, 0x2184,
+ 0x24b6, 0x24e9,
+ 0x2c00, 0x2c2e,
+ 0x2c30, 0x2c5e,
+ 0x2c60, 0x2c70,
+ 0x2c72, 0x2c73,
+ 0x2c75, 0x2c76,
+ 0x2c7e, 0x2ce3,
+ 0x2ceb, 0x2cee,
+ 0x2d00, 0x2d25,
+ 0xa640, 0xa66d,
+ 0xa680, 0xa697,
+ 0xa722, 0xa72f,
+ 0xa732, 0xa76f,
+ 0xa779, 0xa787,
+ 0xa78b, 0xa78d,
+ 0xa790, 0xa791,
+ 0xa7a0, 0xa7a9,
+ 0xfb00, 0xfb06,
+ 0xfb13, 0xfb17,
+ 0xff21, 0xff3a,
+ 0xff41, 0xff5a,
+ 0x10400, 0x1044f,
+}; /* CR_Changes_When_Casemapped */
+
+/* 'ID_Start': Derived Property */
+static const OnigCodePoint CR_ID_Start[] = {
+ 437,
+ 0x0041, 0x005a,
+ 0x0061, 0x007a,
+ 0x00aa, 0x00aa,
+ 0x00b5, 0x00b5,
+ 0x00ba, 0x00ba,
+ 0x00c0, 0x00d6,
+ 0x00d8, 0x00f6,
+ 0x00f8, 0x02c1,
+ 0x02c6, 0x02d1,
+ 0x02e0, 0x02e4,
+ 0x02ec, 0x02ec,
+ 0x02ee, 0x02ee,
+ 0x0370, 0x0374,
+ 0x0376, 0x0377,
+ 0x037a, 0x037d,
+ 0x0386, 0x0386,
+ 0x0388, 0x038a,
+ 0x038c, 0x038c,
+ 0x038e, 0x03a1,
+ 0x03a3, 0x03f5,
+ 0x03f7, 0x0481,
+ 0x048a, 0x0527,
+ 0x0531, 0x0556,
+ 0x0559, 0x0559,
+ 0x0561, 0x0587,
+ 0x05d0, 0x05ea,
+ 0x05f0, 0x05f2,
+ 0x0620, 0x064a,
+ 0x066e, 0x066f,
+ 0x0671, 0x06d3,
+ 0x06d5, 0x06d5,
+ 0x06e5, 0x06e6,
+ 0x06ee, 0x06ef,
+ 0x06fa, 0x06fc,
+ 0x06ff, 0x06ff,
+ 0x0710, 0x0710,
+ 0x0712, 0x072f,
+ 0x074d, 0x07a5,
+ 0x07b1, 0x07b1,
+ 0x07ca, 0x07ea,
+ 0x07f4, 0x07f5,
+ 0x07fa, 0x07fa,
+ 0x0800, 0x0815,
+ 0x081a, 0x081a,
+ 0x0824, 0x0824,
+ 0x0828, 0x0828,
+ 0x0840, 0x0858,
+ 0x0904, 0x0939,
+ 0x093d, 0x093d,
+ 0x0950, 0x0950,
+ 0x0958, 0x0961,
+ 0x0971, 0x0977,
+ 0x0979, 0x097f,
+ 0x0985, 0x098c,
+ 0x098f, 0x0990,
+ 0x0993, 0x09a8,
+ 0x09aa, 0x09b0,
+ 0x09b2, 0x09b2,
+ 0x09b6, 0x09b9,
+ 0x09bd, 0x09bd,
+ 0x09ce, 0x09ce,
+ 0x09dc, 0x09dd,
+ 0x09df, 0x09e1,
+ 0x09f0, 0x09f1,
+ 0x0a05, 0x0a0a,
+ 0x0a0f, 0x0a10,
+ 0x0a13, 0x0a28,
+ 0x0a2a, 0x0a30,
+ 0x0a32, 0x0a33,
+ 0x0a35, 0x0a36,
+ 0x0a38, 0x0a39,
+ 0x0a59, 0x0a5c,
+ 0x0a5e, 0x0a5e,
+ 0x0a72, 0x0a74,
+ 0x0a85, 0x0a8d,
+ 0x0a8f, 0x0a91,
+ 0x0a93, 0x0aa8,
+ 0x0aaa, 0x0ab0,
+ 0x0ab2, 0x0ab3,
+ 0x0ab5, 0x0ab9,
+ 0x0abd, 0x0abd,
+ 0x0ad0, 0x0ad0,
+ 0x0ae0, 0x0ae1,
+ 0x0b05, 0x0b0c,
+ 0x0b0f, 0x0b10,
+ 0x0b13, 0x0b28,
+ 0x0b2a, 0x0b30,
+ 0x0b32, 0x0b33,
+ 0x0b35, 0x0b39,
+ 0x0b3d, 0x0b3d,
+ 0x0b5c, 0x0b5d,
+ 0x0b5f, 0x0b61,
+ 0x0b71, 0x0b71,
+ 0x0b83, 0x0b83,
+ 0x0b85, 0x0b8a,
+ 0x0b8e, 0x0b90,
+ 0x0b92, 0x0b95,
+ 0x0b99, 0x0b9a,
+ 0x0b9c, 0x0b9c,
+ 0x0b9e, 0x0b9f,
+ 0x0ba3, 0x0ba4,
+ 0x0ba8, 0x0baa,
+ 0x0bae, 0x0bb9,
+ 0x0bd0, 0x0bd0,
+ 0x0c05, 0x0c0c,
+ 0x0c0e, 0x0c10,
+ 0x0c12, 0x0c28,
+ 0x0c2a, 0x0c33,
+ 0x0c35, 0x0c39,
+ 0x0c3d, 0x0c3d,
+ 0x0c58, 0x0c59,
+ 0x0c60, 0x0c61,
+ 0x0c85, 0x0c8c,
+ 0x0c8e, 0x0c90,
+ 0x0c92, 0x0ca8,
+ 0x0caa, 0x0cb3,
+ 0x0cb5, 0x0cb9,
+ 0x0cbd, 0x0cbd,
+ 0x0cde, 0x0cde,
+ 0x0ce0, 0x0ce1,
+ 0x0cf1, 0x0cf2,
+ 0x0d05, 0x0d0c,
+ 0x0d0e, 0x0d10,
+ 0x0d12, 0x0d3a,
+ 0x0d3d, 0x0d3d,
+ 0x0d4e, 0x0d4e,
+ 0x0d60, 0x0d61,
+ 0x0d7a, 0x0d7f,
+ 0x0d85, 0x0d96,
+ 0x0d9a, 0x0db1,
+ 0x0db3, 0x0dbb,
+ 0x0dbd, 0x0dbd,
+ 0x0dc0, 0x0dc6,
+ 0x0e01, 0x0e30,
+ 0x0e32, 0x0e33,
+ 0x0e40, 0x0e46,
+ 0x0e81, 0x0e82,
+ 0x0e84, 0x0e84,
+ 0x0e87, 0x0e88,
+ 0x0e8a, 0x0e8a,
+ 0x0e8d, 0x0e8d,
+ 0x0e94, 0x0e97,
+ 0x0e99, 0x0e9f,
+ 0x0ea1, 0x0ea3,
+ 0x0ea5, 0x0ea5,
+ 0x0ea7, 0x0ea7,
+ 0x0eaa, 0x0eab,
+ 0x0ead, 0x0eb0,
+ 0x0eb2, 0x0eb3,
+ 0x0ebd, 0x0ebd,
+ 0x0ec0, 0x0ec4,
+ 0x0ec6, 0x0ec6,
+ 0x0edc, 0x0edd,
+ 0x0f00, 0x0f00,
+ 0x0f40, 0x0f47,
+ 0x0f49, 0x0f6c,
+ 0x0f88, 0x0f8c,
+ 0x1000, 0x102a,
+ 0x103f, 0x103f,
+ 0x1050, 0x1055,
+ 0x105a, 0x105d,
+ 0x1061, 0x1061,
+ 0x1065, 0x1066,
+ 0x106e, 0x1070,
+ 0x1075, 0x1081,
+ 0x108e, 0x108e,
+ 0x10a0, 0x10c5,
+ 0x10d0, 0x10fa,
+ 0x10fc, 0x10fc,
+ 0x1100, 0x1248,
+ 0x124a, 0x124d,
+ 0x1250, 0x1256,
+ 0x1258, 0x1258,
+ 0x125a, 0x125d,
+ 0x1260, 0x1288,
+ 0x128a, 0x128d,
+ 0x1290, 0x12b0,
+ 0x12b2, 0x12b5,
+ 0x12b8, 0x12be,
+ 0x12c0, 0x12c0,
+ 0x12c2, 0x12c5,
+ 0x12c8, 0x12d6,
+ 0x12d8, 0x1310,
+ 0x1312, 0x1315,
+ 0x1318, 0x135a,
+ 0x1380, 0x138f,
+ 0x13a0, 0x13f4,
+ 0x1401, 0x166c,
+ 0x166f, 0x167f,
+ 0x1681, 0x169a,
+ 0x16a0, 0x16ea,
+ 0x16ee, 0x16f0,
+ 0x1700, 0x170c,
+ 0x170e, 0x1711,
+ 0x1720, 0x1731,
+ 0x1740, 0x1751,
+ 0x1760, 0x176c,
+ 0x176e, 0x1770,
+ 0x1780, 0x17b3,
+ 0x17d7, 0x17d7,
+ 0x17dc, 0x17dc,
+ 0x1820, 0x1877,
+ 0x1880, 0x18a8,
+ 0x18aa, 0x18aa,
+ 0x18b0, 0x18f5,
+ 0x1900, 0x191c,
+ 0x1950, 0x196d,
+ 0x1970, 0x1974,
+ 0x1980, 0x19ab,
+ 0x19c1, 0x19c7,
+ 0x1a00, 0x1a16,
+ 0x1a20, 0x1a54,
+ 0x1aa7, 0x1aa7,
+ 0x1b05, 0x1b33,
+ 0x1b45, 0x1b4b,
+ 0x1b83, 0x1ba0,
+ 0x1bae, 0x1baf,
+ 0x1bc0, 0x1be5,
+ 0x1c00, 0x1c23,
+ 0x1c4d, 0x1c4f,
+ 0x1c5a, 0x1c7d,
+ 0x1ce9, 0x1cec,
+ 0x1cee, 0x1cf1,
+ 0x1d00, 0x1dbf,
+ 0x1e00, 0x1f15,
+ 0x1f18, 0x1f1d,
+ 0x1f20, 0x1f45,
+ 0x1f48, 0x1f4d,
+ 0x1f50, 0x1f57,
+ 0x1f59, 0x1f59,
+ 0x1f5b, 0x1f5b,
+ 0x1f5d, 0x1f5d,
+ 0x1f5f, 0x1f7d,
+ 0x1f80, 0x1fb4,
+ 0x1fb6, 0x1fbc,
+ 0x1fbe, 0x1fbe,
+ 0x1fc2, 0x1fc4,
+ 0x1fc6, 0x1fcc,
+ 0x1fd0, 0x1fd3,
+ 0x1fd6, 0x1fdb,
+ 0x1fe0, 0x1fec,
+ 0x1ff2, 0x1ff4,
+ 0x1ff6, 0x1ffc,
+ 0x2071, 0x2071,
+ 0x207f, 0x207f,
+ 0x2090, 0x209c,
+ 0x2102, 0x2102,
+ 0x2107, 0x2107,
+ 0x210a, 0x2113,
+ 0x2115, 0x2115,
+ 0x2118, 0x211d,
+ 0x2124, 0x2124,
+ 0x2126, 0x2126,
+ 0x2128, 0x2128,
+ 0x212a, 0x2139,
+ 0x213c, 0x213f,
+ 0x2145, 0x2149,
+ 0x214e, 0x214e,
+ 0x2160, 0x2188,
+ 0x2c00, 0x2c2e,
+ 0x2c30, 0x2c5e,
+ 0x2c60, 0x2ce4,
+ 0x2ceb, 0x2cee,
+ 0x2d00, 0x2d25,
+ 0x2d30, 0x2d65,
+ 0x2d6f, 0x2d6f,
+ 0x2d80, 0x2d96,
+ 0x2da0, 0x2da6,
+ 0x2da8, 0x2dae,
+ 0x2db0, 0x2db6,
+ 0x2db8, 0x2dbe,
+ 0x2dc0, 0x2dc6,
+ 0x2dc8, 0x2dce,
+ 0x2dd0, 0x2dd6,
+ 0x2dd8, 0x2dde,
+ 0x3005, 0x3007,
+ 0x3021, 0x3029,
+ 0x3031, 0x3035,
+ 0x3038, 0x303c,
+ 0x3041, 0x3096,
+ 0x309b, 0x309f,
+ 0x30a1, 0x30fa,
+ 0x30fc, 0x30ff,
+ 0x3105, 0x312d,
+ 0x3131, 0x318e,
+ 0x31a0, 0x31ba,
+ 0x31f0, 0x31ff,
+ 0x3400, 0x4db5,
+ 0x4e00, 0x9fcb,
+ 0xa000, 0xa48c,
+ 0xa4d0, 0xa4fd,
+ 0xa500, 0xa60c,
+ 0xa610, 0xa61f,
+ 0xa62a, 0xa62b,
+ 0xa640, 0xa66e,
+ 0xa67f, 0xa697,
+ 0xa6a0, 0xa6ef,
+ 0xa717, 0xa71f,
+ 0xa722, 0xa788,
+ 0xa78b, 0xa78e,
+ 0xa790, 0xa791,
+ 0xa7a0, 0xa7a9,
+ 0xa7fa, 0xa801,
+ 0xa803, 0xa805,
+ 0xa807, 0xa80a,
+ 0xa80c, 0xa822,
+ 0xa840, 0xa873,
+ 0xa882, 0xa8b3,
+ 0xa8f2, 0xa8f7,
+ 0xa8fb, 0xa8fb,
+ 0xa90a, 0xa925,
+ 0xa930, 0xa946,
+ 0xa960, 0xa97c,
+ 0xa984, 0xa9b2,
+ 0xa9cf, 0xa9cf,
+ 0xaa00, 0xaa28,
+ 0xaa40, 0xaa42,
+ 0xaa44, 0xaa4b,
+ 0xaa60, 0xaa76,
+ 0xaa7a, 0xaa7a,
+ 0xaa80, 0xaaaf,
+ 0xaab1, 0xaab1,
+ 0xaab5, 0xaab6,
+ 0xaab9, 0xaabd,
+ 0xaac0, 0xaac0,
+ 0xaac2, 0xaac2,
+ 0xaadb, 0xaadd,
+ 0xab01, 0xab06,
+ 0xab09, 0xab0e,
+ 0xab11, 0xab16,
+ 0xab20, 0xab26,
+ 0xab28, 0xab2e,
+ 0xabc0, 0xabe2,
+ 0xac00, 0xd7a3,
+ 0xd7b0, 0xd7c6,
+ 0xd7cb, 0xd7fb,
+ 0xf900, 0xfa2d,
+ 0xfa30, 0xfa6d,
+ 0xfa70, 0xfad9,
+ 0xfb00, 0xfb06,
+ 0xfb13, 0xfb17,
+ 0xfb1d, 0xfb1d,
+ 0xfb1f, 0xfb28,
+ 0xfb2a, 0xfb36,
+ 0xfb38, 0xfb3c,
+ 0xfb3e, 0xfb3e,
+ 0xfb40, 0xfb41,
+ 0xfb43, 0xfb44,
+ 0xfb46, 0xfbb1,
+ 0xfbd3, 0xfd3d,
+ 0xfd50, 0xfd8f,
+ 0xfd92, 0xfdc7,
+ 0xfdf0, 0xfdfb,
+ 0xfe70, 0xfe74,
+ 0xfe76, 0xfefc,
+ 0xff21, 0xff3a,
+ 0xff41, 0xff5a,
+ 0xff66, 0xffbe,
+ 0xffc2, 0xffc7,
+ 0xffca, 0xffcf,
+ 0xffd2, 0xffd7,
+ 0xffda, 0xffdc,
+ 0x10000, 0x1000b,
+ 0x1000d, 0x10026,
+ 0x10028, 0x1003a,
+ 0x1003c, 0x1003d,
+ 0x1003f, 0x1004d,
+ 0x10050, 0x1005d,
+ 0x10080, 0x100fa,
+ 0x10140, 0x10174,
+ 0x10280, 0x1029c,
+ 0x102a0, 0x102d0,
+ 0x10300, 0x1031e,
+ 0x10330, 0x1034a,
+ 0x10380, 0x1039d,
+ 0x103a0, 0x103c3,
+ 0x103c8, 0x103cf,
+ 0x103d1, 0x103d5,
+ 0x10400, 0x1049d,
+ 0x10800, 0x10805,
+ 0x10808, 0x10808,
+ 0x1080a, 0x10835,
+ 0x10837, 0x10838,
+ 0x1083c, 0x1083c,
+ 0x1083f, 0x10855,
+ 0x10900, 0x10915,
+ 0x10920, 0x10939,
+ 0x10a00, 0x10a00,
+ 0x10a10, 0x10a13,
+ 0x10a15, 0x10a17,
+ 0x10a19, 0x10a33,
+ 0x10a60, 0x10a7c,
+ 0x10b00, 0x10b35,
+ 0x10b40, 0x10b55,
+ 0x10b60, 0x10b72,
+ 0x10c00, 0x10c48,
+ 0x11003, 0x11037,
+ 0x11083, 0x110af,
+ 0x12000, 0x1236e,
+ 0x12400, 0x12462,
+ 0x13000, 0x1342e,
+ 0x16800, 0x16a38,
+ 0x1b000, 0x1b001,
+ 0x1d400, 0x1d454,
+ 0x1d456, 0x1d49c,
+ 0x1d49e, 0x1d49f,
+ 0x1d4a2, 0x1d4a2,
+ 0x1d4a5, 0x1d4a6,
+ 0x1d4a9, 0x1d4ac,
+ 0x1d4ae, 0x1d4b9,
+ 0x1d4bb, 0x1d4bb,
+ 0x1d4bd, 0x1d4c3,
+ 0x1d4c5, 0x1d505,
+ 0x1d507, 0x1d50a,
+ 0x1d50d, 0x1d514,
+ 0x1d516, 0x1d51c,
+ 0x1d51e, 0x1d539,
+ 0x1d53b, 0x1d53e,
+ 0x1d540, 0x1d544,
+ 0x1d546, 0x1d546,
+ 0x1d54a, 0x1d550,
+ 0x1d552, 0x1d6a5,
+ 0x1d6a8, 0x1d6c0,
+ 0x1d6c2, 0x1d6da,
+ 0x1d6dc, 0x1d6fa,
+ 0x1d6fc, 0x1d714,
+ 0x1d716, 0x1d734,
+ 0x1d736, 0x1d74e,
+ 0x1d750, 0x1d76e,
+ 0x1d770, 0x1d788,
+ 0x1d78a, 0x1d7a8,
+ 0x1d7aa, 0x1d7c2,
+ 0x1d7c4, 0x1d7cb,
+ 0x20000, 0x2a6d6,
+ 0x2a700, 0x2b734,
+ 0x2b740, 0x2b81d,
+ 0x2f800, 0x2fa1d,
+}; /* CR_ID_Start */
+
+/* 'ID_Continue': Derived Property */
+static const OnigCodePoint CR_ID_Continue[] = {
+ 514,
+ 0x0030, 0x0039,
+ 0x0041, 0x005a,
+ 0x005f, 0x005f,
+ 0x0061, 0x007a,
+ 0x00aa, 0x00aa,
+ 0x00b5, 0x00b5,
+ 0x00b7, 0x00b7,
+ 0x00ba, 0x00ba,
+ 0x00c0, 0x00d6,
+ 0x00d8, 0x00f6,
+ 0x00f8, 0x02c1,
+ 0x02c6, 0x02d1,
+ 0x02e0, 0x02e4,
+ 0x02ec, 0x02ec,
+ 0x02ee, 0x02ee,
+ 0x0300, 0x0374,
+ 0x0376, 0x0377,
+ 0x037a, 0x037d,
+ 0x0386, 0x038a,
+ 0x038c, 0x038c,
+ 0x038e, 0x03a1,
+ 0x03a3, 0x03f5,
+ 0x03f7, 0x0481,
+ 0x0483, 0x0487,
+ 0x048a, 0x0527,
+ 0x0531, 0x0556,
+ 0x0559, 0x0559,
+ 0x0561, 0x0587,
+ 0x0591, 0x05bd,
+ 0x05bf, 0x05bf,
+ 0x05c1, 0x05c2,
+ 0x05c4, 0x05c5,
+ 0x05c7, 0x05c7,
+ 0x05d0, 0x05ea,
+ 0x05f0, 0x05f2,
+ 0x0610, 0x061a,
+ 0x0620, 0x0669,
+ 0x066e, 0x06d3,
+ 0x06d5, 0x06dc,
+ 0x06df, 0x06e8,
+ 0x06ea, 0x06fc,
+ 0x06ff, 0x06ff,
+ 0x0710, 0x074a,
+ 0x074d, 0x07b1,
+ 0x07c0, 0x07f5,
+ 0x07fa, 0x07fa,
+ 0x0800, 0x082d,
+ 0x0840, 0x085b,
+ 0x0900, 0x0963,
+ 0x0966, 0x096f,
+ 0x0971, 0x0977,
+ 0x0979, 0x097f,
+ 0x0981, 0x0983,
+ 0x0985, 0x098c,
+ 0x098f, 0x0990,
+ 0x0993, 0x09a8,
+ 0x09aa, 0x09b0,
+ 0x09b2, 0x09b2,
+ 0x09b6, 0x09b9,
+ 0x09bc, 0x09c4,
+ 0x09c7, 0x09c8,
+ 0x09cb, 0x09ce,
+ 0x09d7, 0x09d7,
+ 0x09dc, 0x09dd,
+ 0x09df, 0x09e3,
+ 0x09e6, 0x09f1,
+ 0x0a01, 0x0a03,
+ 0x0a05, 0x0a0a,
+ 0x0a0f, 0x0a10,
+ 0x0a13, 0x0a28,
+ 0x0a2a, 0x0a30,
+ 0x0a32, 0x0a33,
+ 0x0a35, 0x0a36,
+ 0x0a38, 0x0a39,
+ 0x0a3c, 0x0a3c,
+ 0x0a3e, 0x0a42,
+ 0x0a47, 0x0a48,
+ 0x0a4b, 0x0a4d,
+ 0x0a51, 0x0a51,
+ 0x0a59, 0x0a5c,
+ 0x0a5e, 0x0a5e,
+ 0x0a66, 0x0a75,
+ 0x0a81, 0x0a83,
+ 0x0a85, 0x0a8d,
+ 0x0a8f, 0x0a91,
+ 0x0a93, 0x0aa8,
+ 0x0aaa, 0x0ab0,
+ 0x0ab2, 0x0ab3,
+ 0x0ab5, 0x0ab9,
+ 0x0abc, 0x0ac5,
+ 0x0ac7, 0x0ac9,
+ 0x0acb, 0x0acd,
+ 0x0ad0, 0x0ad0,
+ 0x0ae0, 0x0ae3,
+ 0x0ae6, 0x0aef,
+ 0x0b01, 0x0b03,
+ 0x0b05, 0x0b0c,
+ 0x0b0f, 0x0b10,
+ 0x0b13, 0x0b28,
+ 0x0b2a, 0x0b30,
+ 0x0b32, 0x0b33,
+ 0x0b35, 0x0b39,
+ 0x0b3c, 0x0b44,
+ 0x0b47, 0x0b48,
+ 0x0b4b, 0x0b4d,
+ 0x0b56, 0x0b57,
+ 0x0b5c, 0x0b5d,
+ 0x0b5f, 0x0b63,
+ 0x0b66, 0x0b6f,
+ 0x0b71, 0x0b71,
+ 0x0b82, 0x0b83,
+ 0x0b85, 0x0b8a,
+ 0x0b8e, 0x0b90,
+ 0x0b92, 0x0b95,
+ 0x0b99, 0x0b9a,
+ 0x0b9c, 0x0b9c,
+ 0x0b9e, 0x0b9f,
+ 0x0ba3, 0x0ba4,
+ 0x0ba8, 0x0baa,
+ 0x0bae, 0x0bb9,
+ 0x0bbe, 0x0bc2,
+ 0x0bc6, 0x0bc8,
+ 0x0bca, 0x0bcd,
+ 0x0bd0, 0x0bd0,
+ 0x0bd7, 0x0bd7,
+ 0x0be6, 0x0bef,
+ 0x0c01, 0x0c03,
+ 0x0c05, 0x0c0c,
+ 0x0c0e, 0x0c10,
+ 0x0c12, 0x0c28,
+ 0x0c2a, 0x0c33,
+ 0x0c35, 0x0c39,
+ 0x0c3d, 0x0c44,
+ 0x0c46, 0x0c48,
+ 0x0c4a, 0x0c4d,
+ 0x0c55, 0x0c56,
+ 0x0c58, 0x0c59,
+ 0x0c60, 0x0c63,
+ 0x0c66, 0x0c6f,
+ 0x0c82, 0x0c83,
+ 0x0c85, 0x0c8c,
+ 0x0c8e, 0x0c90,
+ 0x0c92, 0x0ca8,
+ 0x0caa, 0x0cb3,
+ 0x0cb5, 0x0cb9,
+ 0x0cbc, 0x0cc4,
+ 0x0cc6, 0x0cc8,
+ 0x0cca, 0x0ccd,
+ 0x0cd5, 0x0cd6,
+ 0x0cde, 0x0cde,
+ 0x0ce0, 0x0ce3,
+ 0x0ce6, 0x0cef,
+ 0x0cf1, 0x0cf2,
+ 0x0d02, 0x0d03,
+ 0x0d05, 0x0d0c,
+ 0x0d0e, 0x0d10,
+ 0x0d12, 0x0d3a,
+ 0x0d3d, 0x0d44,
+ 0x0d46, 0x0d48,
+ 0x0d4a, 0x0d4e,
+ 0x0d57, 0x0d57,
+ 0x0d60, 0x0d63,
+ 0x0d66, 0x0d6f,
+ 0x0d7a, 0x0d7f,
+ 0x0d82, 0x0d83,
+ 0x0d85, 0x0d96,
+ 0x0d9a, 0x0db1,
+ 0x0db3, 0x0dbb,
+ 0x0dbd, 0x0dbd,
+ 0x0dc0, 0x0dc6,
+ 0x0dca, 0x0dca,
+ 0x0dcf, 0x0dd4,
+ 0x0dd6, 0x0dd6,
+ 0x0dd8, 0x0ddf,
+ 0x0df2, 0x0df3,
+ 0x0e01, 0x0e3a,
+ 0x0e40, 0x0e4e,
+ 0x0e50, 0x0e59,
+ 0x0e81, 0x0e82,
+ 0x0e84, 0x0e84,
+ 0x0e87, 0x0e88,
+ 0x0e8a, 0x0e8a,
+ 0x0e8d, 0x0e8d,
+ 0x0e94, 0x0e97,
+ 0x0e99, 0x0e9f,
+ 0x0ea1, 0x0ea3,
+ 0x0ea5, 0x0ea5,
+ 0x0ea7, 0x0ea7,
+ 0x0eaa, 0x0eab,
+ 0x0ead, 0x0eb9,
+ 0x0ebb, 0x0ebd,
+ 0x0ec0, 0x0ec4,
+ 0x0ec6, 0x0ec6,
+ 0x0ec8, 0x0ecd,
+ 0x0ed0, 0x0ed9,
+ 0x0edc, 0x0edd,
+ 0x0f00, 0x0f00,
+ 0x0f18, 0x0f19,
+ 0x0f20, 0x0f29,
+ 0x0f35, 0x0f35,
+ 0x0f37, 0x0f37,
+ 0x0f39, 0x0f39,
+ 0x0f3e, 0x0f47,
+ 0x0f49, 0x0f6c,
+ 0x0f71, 0x0f84,
+ 0x0f86, 0x0f97,
+ 0x0f99, 0x0fbc,
+ 0x0fc6, 0x0fc6,
+ 0x1000, 0x1049,
+ 0x1050, 0x109d,
+ 0x10a0, 0x10c5,
+ 0x10d0, 0x10fa,
+ 0x10fc, 0x10fc,
+ 0x1100, 0x1248,
+ 0x124a, 0x124d,
+ 0x1250, 0x1256,
+ 0x1258, 0x1258,
+ 0x125a, 0x125d,
+ 0x1260, 0x1288,
+ 0x128a, 0x128d,
+ 0x1290, 0x12b0,
+ 0x12b2, 0x12b5,
+ 0x12b8, 0x12be,
+ 0x12c0, 0x12c0,
+ 0x12c2, 0x12c5,
+ 0x12c8, 0x12d6,
+ 0x12d8, 0x1310,
+ 0x1312, 0x1315,
+ 0x1318, 0x135a,
+ 0x135d, 0x135f,
+ 0x1369, 0x1371,
+ 0x1380, 0x138f,
+ 0x13a0, 0x13f4,
+ 0x1401, 0x166c,
+ 0x166f, 0x167f,
+ 0x1681, 0x169a,
+ 0x16a0, 0x16ea,
+ 0x16ee, 0x16f0,
+ 0x1700, 0x170c,
+ 0x170e, 0x1714,
+ 0x1720, 0x1734,
+ 0x1740, 0x1753,
+ 0x1760, 0x176c,
+ 0x176e, 0x1770,
+ 0x1772, 0x1773,
+ 0x1780, 0x17b3,
+ 0x17b6, 0x17d3,
+ 0x17d7, 0x17d7,
+ 0x17dc, 0x17dd,
+ 0x17e0, 0x17e9,
+ 0x180b, 0x180d,
+ 0x1810, 0x1819,
+ 0x1820, 0x1877,
+ 0x1880, 0x18aa,
+ 0x18b0, 0x18f5,
+ 0x1900, 0x191c,
+ 0x1920, 0x192b,
+ 0x1930, 0x193b,
+ 0x1946, 0x196d,
+ 0x1970, 0x1974,
+ 0x1980, 0x19ab,
+ 0x19b0, 0x19c9,
+ 0x19d0, 0x19da,
+ 0x1a00, 0x1a1b,
+ 0x1a20, 0x1a5e,
+ 0x1a60, 0x1a7c,
+ 0x1a7f, 0x1a89,
+ 0x1a90, 0x1a99,
+ 0x1aa7, 0x1aa7,
+ 0x1b00, 0x1b4b,
+ 0x1b50, 0x1b59,
+ 0x1b6b, 0x1b73,
+ 0x1b80, 0x1baa,
+ 0x1bae, 0x1bb9,
+ 0x1bc0, 0x1bf3,
+ 0x1c00, 0x1c37,
+ 0x1c40, 0x1c49,
+ 0x1c4d, 0x1c7d,
+ 0x1cd0, 0x1cd2,
+ 0x1cd4, 0x1cf2,
+ 0x1d00, 0x1de6,
+ 0x1dfc, 0x1f15,
+ 0x1f18, 0x1f1d,
+ 0x1f20, 0x1f45,
+ 0x1f48, 0x1f4d,
+ 0x1f50, 0x1f57,
+ 0x1f59, 0x1f59,
+ 0x1f5b, 0x1f5b,
+ 0x1f5d, 0x1f5d,
+ 0x1f5f, 0x1f7d,
+ 0x1f80, 0x1fb4,
+ 0x1fb6, 0x1fbc,
+ 0x1fbe, 0x1fbe,
+ 0x1fc2, 0x1fc4,
+ 0x1fc6, 0x1fcc,
+ 0x1fd0, 0x1fd3,
+ 0x1fd6, 0x1fdb,
+ 0x1fe0, 0x1fec,
+ 0x1ff2, 0x1ff4,
+ 0x1ff6, 0x1ffc,
+ 0x203f, 0x2040,
+ 0x2054, 0x2054,
+ 0x2071, 0x2071,
+ 0x207f, 0x207f,
+ 0x2090, 0x209c,
+ 0x20d0, 0x20dc,
+ 0x20e1, 0x20e1,
+ 0x20e5, 0x20f0,
+ 0x2102, 0x2102,
+ 0x2107, 0x2107,
+ 0x210a, 0x2113,
+ 0x2115, 0x2115,
+ 0x2118, 0x211d,
+ 0x2124, 0x2124,
+ 0x2126, 0x2126,
+ 0x2128, 0x2128,
+ 0x212a, 0x2139,
+ 0x213c, 0x213f,
+ 0x2145, 0x2149,
+ 0x214e, 0x214e,
+ 0x2160, 0x2188,
+ 0x2c00, 0x2c2e,
+ 0x2c30, 0x2c5e,
+ 0x2c60, 0x2ce4,
+ 0x2ceb, 0x2cf1,
+ 0x2d00, 0x2d25,
+ 0x2d30, 0x2d65,
+ 0x2d6f, 0x2d6f,
+ 0x2d7f, 0x2d96,
+ 0x2da0, 0x2da6,
+ 0x2da8, 0x2dae,
+ 0x2db0, 0x2db6,
+ 0x2db8, 0x2dbe,
+ 0x2dc0, 0x2dc6,
+ 0x2dc8, 0x2dce,
+ 0x2dd0, 0x2dd6,
+ 0x2dd8, 0x2dde,
+ 0x2de0, 0x2dff,
+ 0x3005, 0x3007,
+ 0x3021, 0x302f,
+ 0x3031, 0x3035,
+ 0x3038, 0x303c,
+ 0x3041, 0x3096,
+ 0x3099, 0x309f,
+ 0x30a1, 0x30fa,
+ 0x30fc, 0x30ff,
+ 0x3105, 0x312d,
+ 0x3131, 0x318e,
+ 0x31a0, 0x31ba,
+ 0x31f0, 0x31ff,
+ 0x3400, 0x4db5,
+ 0x4e00, 0x9fcb,
+ 0xa000, 0xa48c,
+ 0xa4d0, 0xa4fd,
+ 0xa500, 0xa60c,
+ 0xa610, 0xa62b,
+ 0xa640, 0xa66f,
+ 0xa67c, 0xa67d,
+ 0xa67f, 0xa697,
+ 0xa6a0, 0xa6f1,
+ 0xa717, 0xa71f,
+ 0xa722, 0xa788,
+ 0xa78b, 0xa78e,
+ 0xa790, 0xa791,
+ 0xa7a0, 0xa7a9,
+ 0xa7fa, 0xa827,
+ 0xa840, 0xa873,
+ 0xa880, 0xa8c4,
+ 0xa8d0, 0xa8d9,
+ 0xa8e0, 0xa8f7,
+ 0xa8fb, 0xa8fb,
+ 0xa900, 0xa92d,
+ 0xa930, 0xa953,
+ 0xa960, 0xa97c,
+ 0xa980, 0xa9c0,
+ 0xa9cf, 0xa9d9,
+ 0xaa00, 0xaa36,
+ 0xaa40, 0xaa4d,
+ 0xaa50, 0xaa59,
+ 0xaa60, 0xaa76,
+ 0xaa7a, 0xaa7b,
+ 0xaa80, 0xaac2,
+ 0xaadb, 0xaadd,
+ 0xab01, 0xab06,
+ 0xab09, 0xab0e,
+ 0xab11, 0xab16,
+ 0xab20, 0xab26,
+ 0xab28, 0xab2e,
+ 0xabc0, 0xabea,
+ 0xabec, 0xabed,
+ 0xabf0, 0xabf9,
+ 0xac00, 0xd7a3,
+ 0xd7b0, 0xd7c6,
+ 0xd7cb, 0xd7fb,
+ 0xf900, 0xfa2d,
+ 0xfa30, 0xfa6d,
+ 0xfa70, 0xfad9,
+ 0xfb00, 0xfb06,
+ 0xfb13, 0xfb17,
+ 0xfb1d, 0xfb28,
+ 0xfb2a, 0xfb36,
+ 0xfb38, 0xfb3c,
+ 0xfb3e, 0xfb3e,
+ 0xfb40, 0xfb41,
+ 0xfb43, 0xfb44,
+ 0xfb46, 0xfbb1,
+ 0xfbd3, 0xfd3d,
+ 0xfd50, 0xfd8f,
+ 0xfd92, 0xfdc7,
+ 0xfdf0, 0xfdfb,
+ 0xfe00, 0xfe0f,
+ 0xfe20, 0xfe26,
+ 0xfe33, 0xfe34,
+ 0xfe4d, 0xfe4f,
+ 0xfe70, 0xfe74,
+ 0xfe76, 0xfefc,
+ 0xff10, 0xff19,
+ 0xff21, 0xff3a,
+ 0xff3f, 0xff3f,
+ 0xff41, 0xff5a,
+ 0xff66, 0xffbe,
+ 0xffc2, 0xffc7,
+ 0xffca, 0xffcf,
+ 0xffd2, 0xffd7,
+ 0xffda, 0xffdc,
+ 0x10000, 0x1000b,
+ 0x1000d, 0x10026,
+ 0x10028, 0x1003a,
+ 0x1003c, 0x1003d,
+ 0x1003f, 0x1004d,
+ 0x10050, 0x1005d,
+ 0x10080, 0x100fa,
+ 0x10140, 0x10174,
+ 0x101fd, 0x101fd,
+ 0x10280, 0x1029c,
+ 0x102a0, 0x102d0,
+ 0x10300, 0x1031e,
+ 0x10330, 0x1034a,
+ 0x10380, 0x1039d,
+ 0x103a0, 0x103c3,
+ 0x103c8, 0x103cf,
+ 0x103d1, 0x103d5,
+ 0x10400, 0x1049d,
+ 0x104a0, 0x104a9,
+ 0x10800, 0x10805,
+ 0x10808, 0x10808,
+ 0x1080a, 0x10835,
+ 0x10837, 0x10838,
+ 0x1083c, 0x1083c,
+ 0x1083f, 0x10855,
+ 0x10900, 0x10915,
+ 0x10920, 0x10939,
+ 0x10a00, 0x10a03,
+ 0x10a05, 0x10a06,
+ 0x10a0c, 0x10a13,
+ 0x10a15, 0x10a17,
+ 0x10a19, 0x10a33,
+ 0x10a38, 0x10a3a,
+ 0x10a3f, 0x10a3f,
+ 0x10a60, 0x10a7c,
+ 0x10b00, 0x10b35,
+ 0x10b40, 0x10b55,
+ 0x10b60, 0x10b72,
+ 0x10c00, 0x10c48,
+ 0x11000, 0x11046,
+ 0x11066, 0x1106f,
+ 0x11080, 0x110ba,
+ 0x12000, 0x1236e,
+ 0x12400, 0x12462,
+ 0x13000, 0x1342e,
+ 0x16800, 0x16a38,
+ 0x1b000, 0x1b001,
+ 0x1d165, 0x1d169,
+ 0x1d16d, 0x1d172,
+ 0x1d17b, 0x1d182,
+ 0x1d185, 0x1d18b,
+ 0x1d1aa, 0x1d1ad,
+ 0x1d242, 0x1d244,
+ 0x1d400, 0x1d454,
+ 0x1d456, 0x1d49c,
+ 0x1d49e, 0x1d49f,
+ 0x1d4a2, 0x1d4a2,
+ 0x1d4a5, 0x1d4a6,
+ 0x1d4a9, 0x1d4ac,
+ 0x1d4ae, 0x1d4b9,
+ 0x1d4bb, 0x1d4bb,
+ 0x1d4bd, 0x1d4c3,
+ 0x1d4c5, 0x1d505,
+ 0x1d507, 0x1d50a,
+ 0x1d50d, 0x1d514,
+ 0x1d516, 0x1d51c,
+ 0x1d51e, 0x1d539,
+ 0x1d53b, 0x1d53e,
+ 0x1d540, 0x1d544,
+ 0x1d546, 0x1d546,
+ 0x1d54a, 0x1d550,
+ 0x1d552, 0x1d6a5,
+ 0x1d6a8, 0x1d6c0,
+ 0x1d6c2, 0x1d6da,
+ 0x1d6dc, 0x1d6fa,
+ 0x1d6fc, 0x1d714,
+ 0x1d716, 0x1d734,
+ 0x1d736, 0x1d74e,
+ 0x1d750, 0x1d76e,
+ 0x1d770, 0x1d788,
+ 0x1d78a, 0x1d7a8,
+ 0x1d7aa, 0x1d7c2,
+ 0x1d7c4, 0x1d7cb,
+ 0x1d7ce, 0x1d7ff,
+ 0x20000, 0x2a6d6,
+ 0x2a700, 0x2b734,
+ 0x2b740, 0x2b81d,
+ 0x2f800, 0x2fa1d,
+ 0xe0100, 0xe01ef,
+}; /* CR_ID_Continue */
+
+/* 'XID_Start': Derived Property */
+static const OnigCodePoint CR_XID_Start[] = {
+ 444,
+ 0x0041, 0x005a,
+ 0x0061, 0x007a,
+ 0x00aa, 0x00aa,
+ 0x00b5, 0x00b5,
+ 0x00ba, 0x00ba,
+ 0x00c0, 0x00d6,
+ 0x00d8, 0x00f6,
+ 0x00f8, 0x02c1,
+ 0x02c6, 0x02d1,
+ 0x02e0, 0x02e4,
+ 0x02ec, 0x02ec,
+ 0x02ee, 0x02ee,
+ 0x0370, 0x0374,
+ 0x0376, 0x0377,
+ 0x037b, 0x037d,
+ 0x0386, 0x0386,
+ 0x0388, 0x038a,
+ 0x038c, 0x038c,
+ 0x038e, 0x03a1,
+ 0x03a3, 0x03f5,
+ 0x03f7, 0x0481,
+ 0x048a, 0x0527,
+ 0x0531, 0x0556,
+ 0x0559, 0x0559,
+ 0x0561, 0x0587,
+ 0x05d0, 0x05ea,
+ 0x05f0, 0x05f2,
+ 0x0620, 0x064a,
+ 0x066e, 0x066f,
+ 0x0671, 0x06d3,
+ 0x06d5, 0x06d5,
+ 0x06e5, 0x06e6,
+ 0x06ee, 0x06ef,
+ 0x06fa, 0x06fc,
+ 0x06ff, 0x06ff,
+ 0x0710, 0x0710,
+ 0x0712, 0x072f,
+ 0x074d, 0x07a5,
+ 0x07b1, 0x07b1,
+ 0x07ca, 0x07ea,
+ 0x07f4, 0x07f5,
+ 0x07fa, 0x07fa,
+ 0x0800, 0x0815,
+ 0x081a, 0x081a,
+ 0x0824, 0x0824,
+ 0x0828, 0x0828,
+ 0x0840, 0x0858,
+ 0x0904, 0x0939,
+ 0x093d, 0x093d,
+ 0x0950, 0x0950,
+ 0x0958, 0x0961,
+ 0x0971, 0x0977,
+ 0x0979, 0x097f,
+ 0x0985, 0x098c,
+ 0x098f, 0x0990,
+ 0x0993, 0x09a8,
+ 0x09aa, 0x09b0,
+ 0x09b2, 0x09b2,
+ 0x09b6, 0x09b9,
+ 0x09bd, 0x09bd,
+ 0x09ce, 0x09ce,
+ 0x09dc, 0x09dd,
+ 0x09df, 0x09e1,
+ 0x09f0, 0x09f1,
+ 0x0a05, 0x0a0a,
+ 0x0a0f, 0x0a10,
+ 0x0a13, 0x0a28,
+ 0x0a2a, 0x0a30,
+ 0x0a32, 0x0a33,
+ 0x0a35, 0x0a36,
+ 0x0a38, 0x0a39,
+ 0x0a59, 0x0a5c,
+ 0x0a5e, 0x0a5e,
+ 0x0a72, 0x0a74,
+ 0x0a85, 0x0a8d,
+ 0x0a8f, 0x0a91,
+ 0x0a93, 0x0aa8,
+ 0x0aaa, 0x0ab0,
+ 0x0ab2, 0x0ab3,
+ 0x0ab5, 0x0ab9,
+ 0x0abd, 0x0abd,
+ 0x0ad0, 0x0ad0,
+ 0x0ae0, 0x0ae1,
+ 0x0b05, 0x0b0c,
+ 0x0b0f, 0x0b10,
+ 0x0b13, 0x0b28,
+ 0x0b2a, 0x0b30,
+ 0x0b32, 0x0b33,
+ 0x0b35, 0x0b39,
+ 0x0b3d, 0x0b3d,
+ 0x0b5c, 0x0b5d,
+ 0x0b5f, 0x0b61,
+ 0x0b71, 0x0b71,
+ 0x0b83, 0x0b83,
+ 0x0b85, 0x0b8a,
+ 0x0b8e, 0x0b90,
+ 0x0b92, 0x0b95,
+ 0x0b99, 0x0b9a,
+ 0x0b9c, 0x0b9c,
+ 0x0b9e, 0x0b9f,
+ 0x0ba3, 0x0ba4,
+ 0x0ba8, 0x0baa,
+ 0x0bae, 0x0bb9,
+ 0x0bd0, 0x0bd0,
+ 0x0c05, 0x0c0c,
+ 0x0c0e, 0x0c10,
+ 0x0c12, 0x0c28,
+ 0x0c2a, 0x0c33,
+ 0x0c35, 0x0c39,
+ 0x0c3d, 0x0c3d,
+ 0x0c58, 0x0c59,
+ 0x0c60, 0x0c61,
+ 0x0c85, 0x0c8c,
+ 0x0c8e, 0x0c90,
+ 0x0c92, 0x0ca8,
+ 0x0caa, 0x0cb3,
+ 0x0cb5, 0x0cb9,
+ 0x0cbd, 0x0cbd,
+ 0x0cde, 0x0cde,
+ 0x0ce0, 0x0ce1,
+ 0x0cf1, 0x0cf2,
+ 0x0d05, 0x0d0c,
+ 0x0d0e, 0x0d10,
+ 0x0d12, 0x0d3a,
+ 0x0d3d, 0x0d3d,
+ 0x0d4e, 0x0d4e,
+ 0x0d60, 0x0d61,
+ 0x0d7a, 0x0d7f,
+ 0x0d85, 0x0d96,
+ 0x0d9a, 0x0db1,
+ 0x0db3, 0x0dbb,
+ 0x0dbd, 0x0dbd,
+ 0x0dc0, 0x0dc6,
+ 0x0e01, 0x0e30,
+ 0x0e32, 0x0e32,
+ 0x0e40, 0x0e46,
+ 0x0e81, 0x0e82,
+ 0x0e84, 0x0e84,
+ 0x0e87, 0x0e88,
+ 0x0e8a, 0x0e8a,
+ 0x0e8d, 0x0e8d,
+ 0x0e94, 0x0e97,
+ 0x0e99, 0x0e9f,
+ 0x0ea1, 0x0ea3,
+ 0x0ea5, 0x0ea5,
+ 0x0ea7, 0x0ea7,
+ 0x0eaa, 0x0eab,
+ 0x0ead, 0x0eb0,
+ 0x0eb2, 0x0eb2,
+ 0x0ebd, 0x0ebd,
+ 0x0ec0, 0x0ec4,
+ 0x0ec6, 0x0ec6,
+ 0x0edc, 0x0edd,
+ 0x0f00, 0x0f00,
+ 0x0f40, 0x0f47,
+ 0x0f49, 0x0f6c,
+ 0x0f88, 0x0f8c,
+ 0x1000, 0x102a,
+ 0x103f, 0x103f,
+ 0x1050, 0x1055,
+ 0x105a, 0x105d,
+ 0x1061, 0x1061,
+ 0x1065, 0x1066,
+ 0x106e, 0x1070,
+ 0x1075, 0x1081,
+ 0x108e, 0x108e,
+ 0x10a0, 0x10c5,
+ 0x10d0, 0x10fa,
+ 0x10fc, 0x10fc,
+ 0x1100, 0x1248,
+ 0x124a, 0x124d,
+ 0x1250, 0x1256,
+ 0x1258, 0x1258,
+ 0x125a, 0x125d,
+ 0x1260, 0x1288,
+ 0x128a, 0x128d,
+ 0x1290, 0x12b0,
+ 0x12b2, 0x12b5,
+ 0x12b8, 0x12be,
+ 0x12c0, 0x12c0,
+ 0x12c2, 0x12c5,
+ 0x12c8, 0x12d6,
+ 0x12d8, 0x1310,
+ 0x1312, 0x1315,
+ 0x1318, 0x135a,
+ 0x1380, 0x138f,
+ 0x13a0, 0x13f4,
+ 0x1401, 0x166c,
+ 0x166f, 0x167f,
+ 0x1681, 0x169a,
+ 0x16a0, 0x16ea,
+ 0x16ee, 0x16f0,
+ 0x1700, 0x170c,
+ 0x170e, 0x1711,
+ 0x1720, 0x1731,
+ 0x1740, 0x1751,
+ 0x1760, 0x176c,
+ 0x176e, 0x1770,
+ 0x1780, 0x17b3,
+ 0x17d7, 0x17d7,
+ 0x17dc, 0x17dc,
+ 0x1820, 0x1877,
+ 0x1880, 0x18a8,
+ 0x18aa, 0x18aa,
+ 0x18b0, 0x18f5,
+ 0x1900, 0x191c,
+ 0x1950, 0x196d,
+ 0x1970, 0x1974,
+ 0x1980, 0x19ab,
+ 0x19c1, 0x19c7,
+ 0x1a00, 0x1a16,
+ 0x1a20, 0x1a54,
+ 0x1aa7, 0x1aa7,
+ 0x1b05, 0x1b33,
+ 0x1b45, 0x1b4b,
+ 0x1b83, 0x1ba0,
+ 0x1bae, 0x1baf,
+ 0x1bc0, 0x1be5,
+ 0x1c00, 0x1c23,
+ 0x1c4d, 0x1c4f,
+ 0x1c5a, 0x1c7d,
+ 0x1ce9, 0x1cec,
+ 0x1cee, 0x1cf1,
+ 0x1d00, 0x1dbf,
+ 0x1e00, 0x1f15,
+ 0x1f18, 0x1f1d,
+ 0x1f20, 0x1f45,
+ 0x1f48, 0x1f4d,
+ 0x1f50, 0x1f57,
+ 0x1f59, 0x1f59,
+ 0x1f5b, 0x1f5b,
+ 0x1f5d, 0x1f5d,
+ 0x1f5f, 0x1f7d,
+ 0x1f80, 0x1fb4,
+ 0x1fb6, 0x1fbc,
+ 0x1fbe, 0x1fbe,
+ 0x1fc2, 0x1fc4,
+ 0x1fc6, 0x1fcc,
+ 0x1fd0, 0x1fd3,
+ 0x1fd6, 0x1fdb,
+ 0x1fe0, 0x1fec,
+ 0x1ff2, 0x1ff4,
+ 0x1ff6, 0x1ffc,
+ 0x2071, 0x2071,
+ 0x207f, 0x207f,
+ 0x2090, 0x209c,
+ 0x2102, 0x2102,
+ 0x2107, 0x2107,
+ 0x210a, 0x2113,
+ 0x2115, 0x2115,
+ 0x2118, 0x211d,
+ 0x2124, 0x2124,
+ 0x2126, 0x2126,
+ 0x2128, 0x2128,
+ 0x212a, 0x2139,
+ 0x213c, 0x213f,
+ 0x2145, 0x2149,
+ 0x214e, 0x214e,
+ 0x2160, 0x2188,
+ 0x2c00, 0x2c2e,
+ 0x2c30, 0x2c5e,
+ 0x2c60, 0x2ce4,
+ 0x2ceb, 0x2cee,
+ 0x2d00, 0x2d25,
+ 0x2d30, 0x2d65,
+ 0x2d6f, 0x2d6f,
+ 0x2d80, 0x2d96,
+ 0x2da0, 0x2da6,
+ 0x2da8, 0x2dae,
+ 0x2db0, 0x2db6,
+ 0x2db8, 0x2dbe,
+ 0x2dc0, 0x2dc6,
+ 0x2dc8, 0x2dce,
+ 0x2dd0, 0x2dd6,
+ 0x2dd8, 0x2dde,
+ 0x3005, 0x3007,
+ 0x3021, 0x3029,
+ 0x3031, 0x3035,
+ 0x3038, 0x303c,
+ 0x3041, 0x3096,
+ 0x309d, 0x309f,
+ 0x30a1, 0x30fa,
+ 0x30fc, 0x30ff,
+ 0x3105, 0x312d,
+ 0x3131, 0x318e,
+ 0x31a0, 0x31ba,
+ 0x31f0, 0x31ff,
+ 0x3400, 0x4db5,
+ 0x4e00, 0x9fcb,
+ 0xa000, 0xa48c,
+ 0xa4d0, 0xa4fd,
+ 0xa500, 0xa60c,
+ 0xa610, 0xa61f,
+ 0xa62a, 0xa62b,
+ 0xa640, 0xa66e,
+ 0xa67f, 0xa697,
+ 0xa6a0, 0xa6ef,
+ 0xa717, 0xa71f,
+ 0xa722, 0xa788,
+ 0xa78b, 0xa78e,
+ 0xa790, 0xa791,
+ 0xa7a0, 0xa7a9,
+ 0xa7fa, 0xa801,
+ 0xa803, 0xa805,
+ 0xa807, 0xa80a,
+ 0xa80c, 0xa822,
+ 0xa840, 0xa873,
+ 0xa882, 0xa8b3,
+ 0xa8f2, 0xa8f7,
+ 0xa8fb, 0xa8fb,
+ 0xa90a, 0xa925,
+ 0xa930, 0xa946,
+ 0xa960, 0xa97c,
+ 0xa984, 0xa9b2,
+ 0xa9cf, 0xa9cf,
+ 0xaa00, 0xaa28,
+ 0xaa40, 0xaa42,
+ 0xaa44, 0xaa4b,
+ 0xaa60, 0xaa76,
+ 0xaa7a, 0xaa7a,
+ 0xaa80, 0xaaaf,
+ 0xaab1, 0xaab1,
+ 0xaab5, 0xaab6,
+ 0xaab9, 0xaabd,
+ 0xaac0, 0xaac0,
+ 0xaac2, 0xaac2,
+ 0xaadb, 0xaadd,
+ 0xab01, 0xab06,
+ 0xab09, 0xab0e,
+ 0xab11, 0xab16,
+ 0xab20, 0xab26,
+ 0xab28, 0xab2e,
+ 0xabc0, 0xabe2,
+ 0xac00, 0xd7a3,
+ 0xd7b0, 0xd7c6,
+ 0xd7cb, 0xd7fb,
+ 0xf900, 0xfa2d,
+ 0xfa30, 0xfa6d,
+ 0xfa70, 0xfad9,
+ 0xfb00, 0xfb06,
+ 0xfb13, 0xfb17,
+ 0xfb1d, 0xfb1d,
+ 0xfb1f, 0xfb28,
+ 0xfb2a, 0xfb36,
+ 0xfb38, 0xfb3c,
+ 0xfb3e, 0xfb3e,
+ 0xfb40, 0xfb41,
+ 0xfb43, 0xfb44,
+ 0xfb46, 0xfbb1,
+ 0xfbd3, 0xfc5d,
+ 0xfc64, 0xfd3d,
+ 0xfd50, 0xfd8f,
+ 0xfd92, 0xfdc7,
+ 0xfdf0, 0xfdf9,
+ 0xfe71, 0xfe71,
+ 0xfe73, 0xfe73,
+ 0xfe77, 0xfe77,
+ 0xfe79, 0xfe79,
+ 0xfe7b, 0xfe7b,
+ 0xfe7d, 0xfe7d,
+ 0xfe7f, 0xfefc,
+ 0xff21, 0xff3a,
+ 0xff41, 0xff5a,
+ 0xff66, 0xff9d,
+ 0xffa0, 0xffbe,
+ 0xffc2, 0xffc7,
+ 0xffca, 0xffcf,
+ 0xffd2, 0xffd7,
+ 0xffda, 0xffdc,
+ 0x10000, 0x1000b,
+ 0x1000d, 0x10026,
+ 0x10028, 0x1003a,
+ 0x1003c, 0x1003d,
+ 0x1003f, 0x1004d,
+ 0x10050, 0x1005d,
+ 0x10080, 0x100fa,
+ 0x10140, 0x10174,
+ 0x10280, 0x1029c,
+ 0x102a0, 0x102d0,
+ 0x10300, 0x1031e,
+ 0x10330, 0x1034a,
+ 0x10380, 0x1039d,
+ 0x103a0, 0x103c3,
+ 0x103c8, 0x103cf,
+ 0x103d1, 0x103d5,
+ 0x10400, 0x1049d,
+ 0x10800, 0x10805,
+ 0x10808, 0x10808,
+ 0x1080a, 0x10835,
+ 0x10837, 0x10838,
+ 0x1083c, 0x1083c,
+ 0x1083f, 0x10855,
+ 0x10900, 0x10915,
+ 0x10920, 0x10939,
+ 0x10a00, 0x10a00,
+ 0x10a10, 0x10a13,
+ 0x10a15, 0x10a17,
+ 0x10a19, 0x10a33,
+ 0x10a60, 0x10a7c,
+ 0x10b00, 0x10b35,
+ 0x10b40, 0x10b55,
+ 0x10b60, 0x10b72,
+ 0x10c00, 0x10c48,
+ 0x11003, 0x11037,
+ 0x11083, 0x110af,
+ 0x12000, 0x1236e,
+ 0x12400, 0x12462,
+ 0x13000, 0x1342e,
+ 0x16800, 0x16a38,
+ 0x1b000, 0x1b001,
+ 0x1d400, 0x1d454,
+ 0x1d456, 0x1d49c,
+ 0x1d49e, 0x1d49f,
+ 0x1d4a2, 0x1d4a2,
+ 0x1d4a5, 0x1d4a6,
+ 0x1d4a9, 0x1d4ac,
+ 0x1d4ae, 0x1d4b9,
+ 0x1d4bb, 0x1d4bb,
+ 0x1d4bd, 0x1d4c3,
+ 0x1d4c5, 0x1d505,
+ 0x1d507, 0x1d50a,
+ 0x1d50d, 0x1d514,
+ 0x1d516, 0x1d51c,
+ 0x1d51e, 0x1d539,
+ 0x1d53b, 0x1d53e,
+ 0x1d540, 0x1d544,
+ 0x1d546, 0x1d546,
+ 0x1d54a, 0x1d550,
+ 0x1d552, 0x1d6a5,
+ 0x1d6a8, 0x1d6c0,
+ 0x1d6c2, 0x1d6da,
+ 0x1d6dc, 0x1d6fa,
+ 0x1d6fc, 0x1d714,
+ 0x1d716, 0x1d734,
+ 0x1d736, 0x1d74e,
+ 0x1d750, 0x1d76e,
+ 0x1d770, 0x1d788,
+ 0x1d78a, 0x1d7a8,
+ 0x1d7aa, 0x1d7c2,
+ 0x1d7c4, 0x1d7cb,
+ 0x20000, 0x2a6d6,
+ 0x2a700, 0x2b734,
+ 0x2b740, 0x2b81d,
+ 0x2f800, 0x2fa1d,
+}; /* CR_XID_Start */
+
+/* 'XID_Continue': Derived Property */
+static const OnigCodePoint CR_XID_Continue[] = {
+ 521,
+ 0x0030, 0x0039,
+ 0x0041, 0x005a,
+ 0x005f, 0x005f,
+ 0x0061, 0x007a,
+ 0x00aa, 0x00aa,
+ 0x00b5, 0x00b5,
+ 0x00b7, 0x00b7,
+ 0x00ba, 0x00ba,
+ 0x00c0, 0x00d6,
+ 0x00d8, 0x00f6,
+ 0x00f8, 0x02c1,
+ 0x02c6, 0x02d1,
+ 0x02e0, 0x02e4,
+ 0x02ec, 0x02ec,
+ 0x02ee, 0x02ee,
+ 0x0300, 0x0374,
+ 0x0376, 0x0377,
+ 0x037b, 0x037d,
+ 0x0386, 0x038a,
+ 0x038c, 0x038c,
+ 0x038e, 0x03a1,
+ 0x03a3, 0x03f5,
+ 0x03f7, 0x0481,
+ 0x0483, 0x0487,
+ 0x048a, 0x0527,
+ 0x0531, 0x0556,
+ 0x0559, 0x0559,
+ 0x0561, 0x0587,
+ 0x0591, 0x05bd,
+ 0x05bf, 0x05bf,
+ 0x05c1, 0x05c2,
+ 0x05c4, 0x05c5,
+ 0x05c7, 0x05c7,
+ 0x05d0, 0x05ea,
+ 0x05f0, 0x05f2,
+ 0x0610, 0x061a,
+ 0x0620, 0x0669,
+ 0x066e, 0x06d3,
+ 0x06d5, 0x06dc,
+ 0x06df, 0x06e8,
+ 0x06ea, 0x06fc,
+ 0x06ff, 0x06ff,
+ 0x0710, 0x074a,
+ 0x074d, 0x07b1,
+ 0x07c0, 0x07f5,
+ 0x07fa, 0x07fa,
+ 0x0800, 0x082d,
+ 0x0840, 0x085b,
+ 0x0900, 0x0963,
+ 0x0966, 0x096f,
+ 0x0971, 0x0977,
+ 0x0979, 0x097f,
+ 0x0981, 0x0983,
+ 0x0985, 0x098c,
+ 0x098f, 0x0990,
+ 0x0993, 0x09a8,
+ 0x09aa, 0x09b0,
+ 0x09b2, 0x09b2,
+ 0x09b6, 0x09b9,
+ 0x09bc, 0x09c4,
+ 0x09c7, 0x09c8,
+ 0x09cb, 0x09ce,
+ 0x09d7, 0x09d7,
+ 0x09dc, 0x09dd,
+ 0x09df, 0x09e3,
+ 0x09e6, 0x09f1,
+ 0x0a01, 0x0a03,
+ 0x0a05, 0x0a0a,
+ 0x0a0f, 0x0a10,
+ 0x0a13, 0x0a28,
+ 0x0a2a, 0x0a30,
+ 0x0a32, 0x0a33,
+ 0x0a35, 0x0a36,
+ 0x0a38, 0x0a39,
+ 0x0a3c, 0x0a3c,
+ 0x0a3e, 0x0a42,
+ 0x0a47, 0x0a48,
+ 0x0a4b, 0x0a4d,
+ 0x0a51, 0x0a51,
+ 0x0a59, 0x0a5c,
+ 0x0a5e, 0x0a5e,
+ 0x0a66, 0x0a75,
+ 0x0a81, 0x0a83,
+ 0x0a85, 0x0a8d,
+ 0x0a8f, 0x0a91,
+ 0x0a93, 0x0aa8,
+ 0x0aaa, 0x0ab0,
+ 0x0ab2, 0x0ab3,
+ 0x0ab5, 0x0ab9,
+ 0x0abc, 0x0ac5,
+ 0x0ac7, 0x0ac9,
+ 0x0acb, 0x0acd,
+ 0x0ad0, 0x0ad0,
+ 0x0ae0, 0x0ae3,
+ 0x0ae6, 0x0aef,
+ 0x0b01, 0x0b03,
+ 0x0b05, 0x0b0c,
+ 0x0b0f, 0x0b10,
+ 0x0b13, 0x0b28,
+ 0x0b2a, 0x0b30,
+ 0x0b32, 0x0b33,
+ 0x0b35, 0x0b39,
+ 0x0b3c, 0x0b44,
+ 0x0b47, 0x0b48,
+ 0x0b4b, 0x0b4d,
+ 0x0b56, 0x0b57,
+ 0x0b5c, 0x0b5d,
+ 0x0b5f, 0x0b63,
+ 0x0b66, 0x0b6f,
+ 0x0b71, 0x0b71,
+ 0x0b82, 0x0b83,
+ 0x0b85, 0x0b8a,
+ 0x0b8e, 0x0b90,
+ 0x0b92, 0x0b95,
+ 0x0b99, 0x0b9a,
+ 0x0b9c, 0x0b9c,
+ 0x0b9e, 0x0b9f,
+ 0x0ba3, 0x0ba4,
+ 0x0ba8, 0x0baa,
+ 0x0bae, 0x0bb9,
+ 0x0bbe, 0x0bc2,
+ 0x0bc6, 0x0bc8,
+ 0x0bca, 0x0bcd,
+ 0x0bd0, 0x0bd0,
+ 0x0bd7, 0x0bd7,
+ 0x0be6, 0x0bef,
+ 0x0c01, 0x0c03,
+ 0x0c05, 0x0c0c,
+ 0x0c0e, 0x0c10,
+ 0x0c12, 0x0c28,
+ 0x0c2a, 0x0c33,
+ 0x0c35, 0x0c39,
+ 0x0c3d, 0x0c44,
+ 0x0c46, 0x0c48,
+ 0x0c4a, 0x0c4d,
+ 0x0c55, 0x0c56,
+ 0x0c58, 0x0c59,
+ 0x0c60, 0x0c63,
+ 0x0c66, 0x0c6f,
+ 0x0c82, 0x0c83,
+ 0x0c85, 0x0c8c,
+ 0x0c8e, 0x0c90,
+ 0x0c92, 0x0ca8,
+ 0x0caa, 0x0cb3,
+ 0x0cb5, 0x0cb9,
+ 0x0cbc, 0x0cc4,
+ 0x0cc6, 0x0cc8,
+ 0x0cca, 0x0ccd,
+ 0x0cd5, 0x0cd6,
+ 0x0cde, 0x0cde,
+ 0x0ce0, 0x0ce3,
+ 0x0ce6, 0x0cef,
+ 0x0cf1, 0x0cf2,
+ 0x0d02, 0x0d03,
+ 0x0d05, 0x0d0c,
+ 0x0d0e, 0x0d10,
+ 0x0d12, 0x0d3a,
+ 0x0d3d, 0x0d44,
+ 0x0d46, 0x0d48,
+ 0x0d4a, 0x0d4e,
+ 0x0d57, 0x0d57,
+ 0x0d60, 0x0d63,
+ 0x0d66, 0x0d6f,
+ 0x0d7a, 0x0d7f,
+ 0x0d82, 0x0d83,
+ 0x0d85, 0x0d96,
+ 0x0d9a, 0x0db1,
+ 0x0db3, 0x0dbb,
+ 0x0dbd, 0x0dbd,
+ 0x0dc0, 0x0dc6,
+ 0x0dca, 0x0dca,
+ 0x0dcf, 0x0dd4,
+ 0x0dd6, 0x0dd6,
+ 0x0dd8, 0x0ddf,
+ 0x0df2, 0x0df3,
+ 0x0e01, 0x0e3a,
+ 0x0e40, 0x0e4e,
+ 0x0e50, 0x0e59,
+ 0x0e81, 0x0e82,
+ 0x0e84, 0x0e84,
+ 0x0e87, 0x0e88,
+ 0x0e8a, 0x0e8a,
+ 0x0e8d, 0x0e8d,
+ 0x0e94, 0x0e97,
+ 0x0e99, 0x0e9f,
+ 0x0ea1, 0x0ea3,
+ 0x0ea5, 0x0ea5,
+ 0x0ea7, 0x0ea7,
+ 0x0eaa, 0x0eab,
+ 0x0ead, 0x0eb9,
+ 0x0ebb, 0x0ebd,
+ 0x0ec0, 0x0ec4,
+ 0x0ec6, 0x0ec6,
+ 0x0ec8, 0x0ecd,
+ 0x0ed0, 0x0ed9,
+ 0x0edc, 0x0edd,
+ 0x0f00, 0x0f00,
+ 0x0f18, 0x0f19,
+ 0x0f20, 0x0f29,
+ 0x0f35, 0x0f35,
+ 0x0f37, 0x0f37,
+ 0x0f39, 0x0f39,
+ 0x0f3e, 0x0f47,
+ 0x0f49, 0x0f6c,
+ 0x0f71, 0x0f84,
+ 0x0f86, 0x0f97,
+ 0x0f99, 0x0fbc,
+ 0x0fc6, 0x0fc6,
+ 0x1000, 0x1049,
+ 0x1050, 0x109d,
+ 0x10a0, 0x10c5,
+ 0x10d0, 0x10fa,
+ 0x10fc, 0x10fc,
+ 0x1100, 0x1248,
+ 0x124a, 0x124d,
+ 0x1250, 0x1256,
+ 0x1258, 0x1258,
+ 0x125a, 0x125d,
+ 0x1260, 0x1288,
+ 0x128a, 0x128d,
+ 0x1290, 0x12b0,
+ 0x12b2, 0x12b5,
+ 0x12b8, 0x12be,
+ 0x12c0, 0x12c0,
+ 0x12c2, 0x12c5,
+ 0x12c8, 0x12d6,
+ 0x12d8, 0x1310,
+ 0x1312, 0x1315,
+ 0x1318, 0x135a,
+ 0x135d, 0x135f,
+ 0x1369, 0x1371,
+ 0x1380, 0x138f,
+ 0x13a0, 0x13f4,
+ 0x1401, 0x166c,
+ 0x166f, 0x167f,
+ 0x1681, 0x169a,
+ 0x16a0, 0x16ea,
+ 0x16ee, 0x16f0,
+ 0x1700, 0x170c,
+ 0x170e, 0x1714,
+ 0x1720, 0x1734,
+ 0x1740, 0x1753,
+ 0x1760, 0x176c,
+ 0x176e, 0x1770,
+ 0x1772, 0x1773,
+ 0x1780, 0x17b3,
+ 0x17b6, 0x17d3,
+ 0x17d7, 0x17d7,
+ 0x17dc, 0x17dd,
+ 0x17e0, 0x17e9,
+ 0x180b, 0x180d,
+ 0x1810, 0x1819,
+ 0x1820, 0x1877,
+ 0x1880, 0x18aa,
+ 0x18b0, 0x18f5,
+ 0x1900, 0x191c,
+ 0x1920, 0x192b,
+ 0x1930, 0x193b,
+ 0x1946, 0x196d,
+ 0x1970, 0x1974,
+ 0x1980, 0x19ab,
+ 0x19b0, 0x19c9,
+ 0x19d0, 0x19da,
+ 0x1a00, 0x1a1b,
+ 0x1a20, 0x1a5e,
+ 0x1a60, 0x1a7c,
+ 0x1a7f, 0x1a89,
+ 0x1a90, 0x1a99,
+ 0x1aa7, 0x1aa7,
+ 0x1b00, 0x1b4b,
+ 0x1b50, 0x1b59,
+ 0x1b6b, 0x1b73,
+ 0x1b80, 0x1baa,
+ 0x1bae, 0x1bb9,
+ 0x1bc0, 0x1bf3,
+ 0x1c00, 0x1c37,
+ 0x1c40, 0x1c49,
+ 0x1c4d, 0x1c7d,
+ 0x1cd0, 0x1cd2,
+ 0x1cd4, 0x1cf2,
+ 0x1d00, 0x1de6,
+ 0x1dfc, 0x1f15,
+ 0x1f18, 0x1f1d,
+ 0x1f20, 0x1f45,
+ 0x1f48, 0x1f4d,
+ 0x1f50, 0x1f57,
+ 0x1f59, 0x1f59,
+ 0x1f5b, 0x1f5b,
+ 0x1f5d, 0x1f5d,
+ 0x1f5f, 0x1f7d,
+ 0x1f80, 0x1fb4,
+ 0x1fb6, 0x1fbc,
+ 0x1fbe, 0x1fbe,
+ 0x1fc2, 0x1fc4,
+ 0x1fc6, 0x1fcc,
+ 0x1fd0, 0x1fd3,
+ 0x1fd6, 0x1fdb,
+ 0x1fe0, 0x1fec,
+ 0x1ff2, 0x1ff4,
+ 0x1ff6, 0x1ffc,
+ 0x203f, 0x2040,
+ 0x2054, 0x2054,
+ 0x2071, 0x2071,
+ 0x207f, 0x207f,
+ 0x2090, 0x209c,
+ 0x20d0, 0x20dc,
+ 0x20e1, 0x20e1,
+ 0x20e5, 0x20f0,
+ 0x2102, 0x2102,
+ 0x2107, 0x2107,
+ 0x210a, 0x2113,
+ 0x2115, 0x2115,
+ 0x2118, 0x211d,
+ 0x2124, 0x2124,
+ 0x2126, 0x2126,
+ 0x2128, 0x2128,
+ 0x212a, 0x2139,
+ 0x213c, 0x213f,
+ 0x2145, 0x2149,
+ 0x214e, 0x214e,
+ 0x2160, 0x2188,
+ 0x2c00, 0x2c2e,
+ 0x2c30, 0x2c5e,
+ 0x2c60, 0x2ce4,
+ 0x2ceb, 0x2cf1,
+ 0x2d00, 0x2d25,
+ 0x2d30, 0x2d65,
+ 0x2d6f, 0x2d6f,
+ 0x2d7f, 0x2d96,
+ 0x2da0, 0x2da6,
+ 0x2da8, 0x2dae,
+ 0x2db0, 0x2db6,
+ 0x2db8, 0x2dbe,
+ 0x2dc0, 0x2dc6,
+ 0x2dc8, 0x2dce,
+ 0x2dd0, 0x2dd6,
+ 0x2dd8, 0x2dde,
+ 0x2de0, 0x2dff,
+ 0x3005, 0x3007,
+ 0x3021, 0x302f,
+ 0x3031, 0x3035,
+ 0x3038, 0x303c,
+ 0x3041, 0x3096,
+ 0x3099, 0x309a,
+ 0x309d, 0x309f,
+ 0x30a1, 0x30fa,
+ 0x30fc, 0x30ff,
+ 0x3105, 0x312d,
+ 0x3131, 0x318e,
+ 0x31a0, 0x31ba,
+ 0x31f0, 0x31ff,
+ 0x3400, 0x4db5,
+ 0x4e00, 0x9fcb,
+ 0xa000, 0xa48c,
+ 0xa4d0, 0xa4fd,
+ 0xa500, 0xa60c,
+ 0xa610, 0xa62b,
+ 0xa640, 0xa66f,
+ 0xa67c, 0xa67d,
+ 0xa67f, 0xa697,
+ 0xa6a0, 0xa6f1,
+ 0xa717, 0xa71f,
+ 0xa722, 0xa788,
+ 0xa78b, 0xa78e,
+ 0xa790, 0xa791,
+ 0xa7a0, 0xa7a9,
+ 0xa7fa, 0xa827,
+ 0xa840, 0xa873,
+ 0xa880, 0xa8c4,
+ 0xa8d0, 0xa8d9,
+ 0xa8e0, 0xa8f7,
+ 0xa8fb, 0xa8fb,
+ 0xa900, 0xa92d,
+ 0xa930, 0xa953,
+ 0xa960, 0xa97c,
+ 0xa980, 0xa9c0,
+ 0xa9cf, 0xa9d9,
+ 0xaa00, 0xaa36,
+ 0xaa40, 0xaa4d,
+ 0xaa50, 0xaa59,
+ 0xaa60, 0xaa76,
+ 0xaa7a, 0xaa7b,
+ 0xaa80, 0xaac2,
+ 0xaadb, 0xaadd,
+ 0xab01, 0xab06,
+ 0xab09, 0xab0e,
+ 0xab11, 0xab16,
+ 0xab20, 0xab26,
+ 0xab28, 0xab2e,
+ 0xabc0, 0xabea,
+ 0xabec, 0xabed,
+ 0xabf0, 0xabf9,
+ 0xac00, 0xd7a3,
+ 0xd7b0, 0xd7c6,
+ 0xd7cb, 0xd7fb,
+ 0xf900, 0xfa2d,
+ 0xfa30, 0xfa6d,
+ 0xfa70, 0xfad9,
+ 0xfb00, 0xfb06,
+ 0xfb13, 0xfb17,
+ 0xfb1d, 0xfb28,
+ 0xfb2a, 0xfb36,
+ 0xfb38, 0xfb3c,
+ 0xfb3e, 0xfb3e,
+ 0xfb40, 0xfb41,
+ 0xfb43, 0xfb44,
+ 0xfb46, 0xfbb1,
+ 0xfbd3, 0xfc5d,
+ 0xfc64, 0xfd3d,
+ 0xfd50, 0xfd8f,
+ 0xfd92, 0xfdc7,
+ 0xfdf0, 0xfdf9,
+ 0xfe00, 0xfe0f,
+ 0xfe20, 0xfe26,
+ 0xfe33, 0xfe34,
+ 0xfe4d, 0xfe4f,
+ 0xfe71, 0xfe71,
+ 0xfe73, 0xfe73,
+ 0xfe77, 0xfe77,
+ 0xfe79, 0xfe79,
+ 0xfe7b, 0xfe7b,
+ 0xfe7d, 0xfe7d,
+ 0xfe7f, 0xfefc,
+ 0xff10, 0xff19,
+ 0xff21, 0xff3a,
+ 0xff3f, 0xff3f,
+ 0xff41, 0xff5a,
+ 0xff66, 0xffbe,
+ 0xffc2, 0xffc7,
+ 0xffca, 0xffcf,
+ 0xffd2, 0xffd7,
+ 0xffda, 0xffdc,
+ 0x10000, 0x1000b,
+ 0x1000d, 0x10026,
+ 0x10028, 0x1003a,
+ 0x1003c, 0x1003d,
+ 0x1003f, 0x1004d,
+ 0x10050, 0x1005d,
+ 0x10080, 0x100fa,
+ 0x10140, 0x10174,
+ 0x101fd, 0x101fd,
+ 0x10280, 0x1029c,
+ 0x102a0, 0x102d0,
+ 0x10300, 0x1031e,
+ 0x10330, 0x1034a,
+ 0x10380, 0x1039d,
+ 0x103a0, 0x103c3,
+ 0x103c8, 0x103cf,
+ 0x103d1, 0x103d5,
+ 0x10400, 0x1049d,
+ 0x104a0, 0x104a9,
+ 0x10800, 0x10805,
+ 0x10808, 0x10808,
+ 0x1080a, 0x10835,
+ 0x10837, 0x10838,
+ 0x1083c, 0x1083c,
+ 0x1083f, 0x10855,
+ 0x10900, 0x10915,
+ 0x10920, 0x10939,
+ 0x10a00, 0x10a03,
+ 0x10a05, 0x10a06,
+ 0x10a0c, 0x10a13,
+ 0x10a15, 0x10a17,
+ 0x10a19, 0x10a33,
+ 0x10a38, 0x10a3a,
+ 0x10a3f, 0x10a3f,
+ 0x10a60, 0x10a7c,
+ 0x10b00, 0x10b35,
+ 0x10b40, 0x10b55,
+ 0x10b60, 0x10b72,
+ 0x10c00, 0x10c48,
+ 0x11000, 0x11046,
+ 0x11066, 0x1106f,
+ 0x11080, 0x110ba,
+ 0x12000, 0x1236e,
+ 0x12400, 0x12462,
+ 0x13000, 0x1342e,
+ 0x16800, 0x16a38,
+ 0x1b000, 0x1b001,
+ 0x1d165, 0x1d169,
+ 0x1d16d, 0x1d172,
+ 0x1d17b, 0x1d182,
+ 0x1d185, 0x1d18b,
+ 0x1d1aa, 0x1d1ad,
+ 0x1d242, 0x1d244,
+ 0x1d400, 0x1d454,
+ 0x1d456, 0x1d49c,
+ 0x1d49e, 0x1d49f,
+ 0x1d4a2, 0x1d4a2,
+ 0x1d4a5, 0x1d4a6,
+ 0x1d4a9, 0x1d4ac,
+ 0x1d4ae, 0x1d4b9,
+ 0x1d4bb, 0x1d4bb,
+ 0x1d4bd, 0x1d4c3,
+ 0x1d4c5, 0x1d505,
+ 0x1d507, 0x1d50a,
+ 0x1d50d, 0x1d514,
+ 0x1d516, 0x1d51c,
+ 0x1d51e, 0x1d539,
+ 0x1d53b, 0x1d53e,
+ 0x1d540, 0x1d544,
+ 0x1d546, 0x1d546,
+ 0x1d54a, 0x1d550,
+ 0x1d552, 0x1d6a5,
+ 0x1d6a8, 0x1d6c0,
+ 0x1d6c2, 0x1d6da,
+ 0x1d6dc, 0x1d6fa,
+ 0x1d6fc, 0x1d714,
+ 0x1d716, 0x1d734,
+ 0x1d736, 0x1d74e,
+ 0x1d750, 0x1d76e,
+ 0x1d770, 0x1d788,
+ 0x1d78a, 0x1d7a8,
+ 0x1d7aa, 0x1d7c2,
+ 0x1d7c4, 0x1d7cb,
+ 0x1d7ce, 0x1d7ff,
+ 0x20000, 0x2a6d6,
+ 0x2a700, 0x2b734,
+ 0x2b740, 0x2b81d,
+ 0x2f800, 0x2fa1d,
+ 0xe0100, 0xe01ef,
+}; /* CR_XID_Continue */
+
+/* 'Default_Ignorable_Code_Point': Derived Property */
+static const OnigCodePoint CR_Default_Ignorable_Code_Point[] = {
+ 15,
+ 0x00ad, 0x00ad,
+ 0x034f, 0x034f,
+ 0x115f, 0x1160,
+ 0x17b4, 0x17b5,
+ 0x180b, 0x180d,
+ 0x200b, 0x200f,
+ 0x202a, 0x202e,
+ 0x2060, 0x206f,
+ 0x3164, 0x3164,
+ 0xfe00, 0xfe0f,
+ 0xfeff, 0xfeff,
+ 0xffa0, 0xffa0,
+ 0xfff0, 0xfff8,
+ 0x1d173, 0x1d17a,
+ 0xe0000, 0xe0fff,
+}; /* CR_Default_Ignorable_Code_Point */
+
+/* 'Grapheme_Extend': Derived Property */
+static const OnigCodePoint CR_Grapheme_Extend[] = {
+ 215,
+ 0x0300, 0x036f,
+ 0x0483, 0x0489,
+ 0x0591, 0x05bd,
+ 0x05bf, 0x05bf,
+ 0x05c1, 0x05c2,
+ 0x05c4, 0x05c5,
+ 0x05c7, 0x05c7,
+ 0x0610, 0x061a,
+ 0x064b, 0x065f,
+ 0x0670, 0x0670,
+ 0x06d6, 0x06dc,
+ 0x06df, 0x06e4,
+ 0x06e7, 0x06e8,
+ 0x06ea, 0x06ed,
+ 0x0711, 0x0711,
+ 0x0730, 0x074a,
+ 0x07a6, 0x07b0,
+ 0x07eb, 0x07f3,
+ 0x0816, 0x0819,
+ 0x081b, 0x0823,
+ 0x0825, 0x0827,
+ 0x0829, 0x082d,
+ 0x0859, 0x085b,
+ 0x0900, 0x0902,
+ 0x093a, 0x093a,
+ 0x093c, 0x093c,
+ 0x0941, 0x0948,
+ 0x094d, 0x094d,
+ 0x0951, 0x0957,
+ 0x0962, 0x0963,
+ 0x0981, 0x0981,
+ 0x09bc, 0x09bc,
+ 0x09be, 0x09be,
+ 0x09c1, 0x09c4,
+ 0x09cd, 0x09cd,
+ 0x09d7, 0x09d7,
+ 0x09e2, 0x09e3,
+ 0x0a01, 0x0a02,
+ 0x0a3c, 0x0a3c,
+ 0x0a41, 0x0a42,
+ 0x0a47, 0x0a48,
+ 0x0a4b, 0x0a4d,
+ 0x0a51, 0x0a51,
+ 0x0a70, 0x0a71,
+ 0x0a75, 0x0a75,
+ 0x0a81, 0x0a82,
+ 0x0abc, 0x0abc,
+ 0x0ac1, 0x0ac5,
+ 0x0ac7, 0x0ac8,
+ 0x0acd, 0x0acd,
+ 0x0ae2, 0x0ae3,
+ 0x0b01, 0x0b01,
+ 0x0b3c, 0x0b3c,
+ 0x0b3e, 0x0b3f,
+ 0x0b41, 0x0b44,
+ 0x0b4d, 0x0b4d,
+ 0x0b56, 0x0b57,
+ 0x0b62, 0x0b63,
+ 0x0b82, 0x0b82,
+ 0x0bbe, 0x0bbe,
+ 0x0bc0, 0x0bc0,
+ 0x0bcd, 0x0bcd,
+ 0x0bd7, 0x0bd7,
+ 0x0c3e, 0x0c40,
+ 0x0c46, 0x0c48,
+ 0x0c4a, 0x0c4d,
+ 0x0c55, 0x0c56,
+ 0x0c62, 0x0c63,
+ 0x0cbc, 0x0cbc,
+ 0x0cbf, 0x0cbf,
+ 0x0cc2, 0x0cc2,
+ 0x0cc6, 0x0cc6,
+ 0x0ccc, 0x0ccd,
+ 0x0cd5, 0x0cd6,
+ 0x0ce2, 0x0ce3,
+ 0x0d3e, 0x0d3e,
+ 0x0d41, 0x0d44,
+ 0x0d4d, 0x0d4d,
+ 0x0d57, 0x0d57,
+ 0x0d62, 0x0d63,
+ 0x0dca, 0x0dca,
+ 0x0dcf, 0x0dcf,
+ 0x0dd2, 0x0dd4,
+ 0x0dd6, 0x0dd6,
+ 0x0ddf, 0x0ddf,
+ 0x0e31, 0x0e31,
+ 0x0e34, 0x0e3a,
+ 0x0e47, 0x0e4e,
+ 0x0eb1, 0x0eb1,
+ 0x0eb4, 0x0eb9,
+ 0x0ebb, 0x0ebc,
+ 0x0ec8, 0x0ecd,
+ 0x0f18, 0x0f19,
+ 0x0f35, 0x0f35,
+ 0x0f37, 0x0f37,
+ 0x0f39, 0x0f39,
+ 0x0f71, 0x0f7e,
+ 0x0f80, 0x0f84,
+ 0x0f86, 0x0f87,
+ 0x0f8d, 0x0f97,
+ 0x0f99, 0x0fbc,
+ 0x0fc6, 0x0fc6,
+ 0x102d, 0x1030,
+ 0x1032, 0x1037,
+ 0x1039, 0x103a,
+ 0x103d, 0x103e,
+ 0x1058, 0x1059,
+ 0x105e, 0x1060,
+ 0x1071, 0x1074,
+ 0x1082, 0x1082,
+ 0x1085, 0x1086,
+ 0x108d, 0x108d,
+ 0x109d, 0x109d,
+ 0x135d, 0x135f,
+ 0x1712, 0x1714,
+ 0x1732, 0x1734,
+ 0x1752, 0x1753,
+ 0x1772, 0x1773,
+ 0x17b7, 0x17bd,
+ 0x17c6, 0x17c6,
+ 0x17c9, 0x17d3,
+ 0x17dd, 0x17dd,
+ 0x180b, 0x180d,
+ 0x18a9, 0x18a9,
+ 0x1920, 0x1922,
+ 0x1927, 0x1928,
+ 0x1932, 0x1932,
+ 0x1939, 0x193b,
+ 0x1a17, 0x1a18,
+ 0x1a56, 0x1a56,
+ 0x1a58, 0x1a5e,
+ 0x1a60, 0x1a60,
+ 0x1a62, 0x1a62,
+ 0x1a65, 0x1a6c,
+ 0x1a73, 0x1a7c,
+ 0x1a7f, 0x1a7f,
+ 0x1b00, 0x1b03,
+ 0x1b34, 0x1b34,
+ 0x1b36, 0x1b3a,
+ 0x1b3c, 0x1b3c,
+ 0x1b42, 0x1b42,
+ 0x1b6b, 0x1b73,
+ 0x1b80, 0x1b81,
+ 0x1ba2, 0x1ba5,
+ 0x1ba8, 0x1ba9,
+ 0x1be6, 0x1be6,
+ 0x1be8, 0x1be9,
+ 0x1bed, 0x1bed,
+ 0x1bef, 0x1bf1,
+ 0x1c2c, 0x1c33,
+ 0x1c36, 0x1c37,
+ 0x1cd0, 0x1cd2,
+ 0x1cd4, 0x1ce0,
+ 0x1ce2, 0x1ce8,
+ 0x1ced, 0x1ced,
+ 0x1dc0, 0x1de6,
+ 0x1dfc, 0x1dff,
+ 0x200c, 0x200d,
+ 0x20d0, 0x20f0,
+ 0x2cef, 0x2cf1,
+ 0x2d7f, 0x2d7f,
+ 0x2de0, 0x2dff,
+ 0x302a, 0x302f,
+ 0x3099, 0x309a,
+ 0xa66f, 0xa672,
+ 0xa67c, 0xa67d,
+ 0xa6f0, 0xa6f1,
+ 0xa802, 0xa802,
+ 0xa806, 0xa806,
+ 0xa80b, 0xa80b,
+ 0xa825, 0xa826,
+ 0xa8c4, 0xa8c4,
+ 0xa8e0, 0xa8f1,
+ 0xa926, 0xa92d,
+ 0xa947, 0xa951,
+ 0xa980, 0xa982,
+ 0xa9b3, 0xa9b3,
+ 0xa9b6, 0xa9b9,
+ 0xa9bc, 0xa9bc,
+ 0xaa29, 0xaa2e,
+ 0xaa31, 0xaa32,
+ 0xaa35, 0xaa36,
+ 0xaa43, 0xaa43,
+ 0xaa4c, 0xaa4c,
+ 0xaab0, 0xaab0,
+ 0xaab2, 0xaab4,
+ 0xaab7, 0xaab8,
+ 0xaabe, 0xaabf,
+ 0xaac1, 0xaac1,
+ 0xabe5, 0xabe5,
+ 0xabe8, 0xabe8,
+ 0xabed, 0xabed,
+ 0xfb1e, 0xfb1e,
+ 0xfe00, 0xfe0f,
+ 0xfe20, 0xfe26,
+ 0xff9e, 0xff9f,
+ 0x101fd, 0x101fd,
+ 0x10a01, 0x10a03,
+ 0x10a05, 0x10a06,
+ 0x10a0c, 0x10a0f,
+ 0x10a38, 0x10a3a,
+ 0x10a3f, 0x10a3f,
+ 0x11001, 0x11001,
+ 0x11038, 0x11046,
+ 0x11080, 0x11081,
+ 0x110b3, 0x110b6,
+ 0x110b9, 0x110ba,
+ 0x1d165, 0x1d165,
+ 0x1d167, 0x1d169,
+ 0x1d16e, 0x1d172,
+ 0x1d17b, 0x1d182,
+ 0x1d185, 0x1d18b,
+ 0x1d1aa, 0x1d1ad,
+ 0x1d242, 0x1d244,
+ 0xe0100, 0xe01ef,
+}; /* CR_Grapheme_Extend */
+
+/* 'Grapheme_Base': Derived Property */
+static const OnigCodePoint CR_Grapheme_Base[] = {
+ 596,
+ 0x0020, 0x007e,
+ 0x00a0, 0x00ac,
+ 0x00ae, 0x02ff,
+ 0x0370, 0x0377,
+ 0x037a, 0x037e,
+ 0x0384, 0x038a,
+ 0x038c, 0x038c,
+ 0x038e, 0x03a1,
+ 0x03a3, 0x0482,
+ 0x048a, 0x0527,
+ 0x0531, 0x0556,
+ 0x0559, 0x055f,
+ 0x0561, 0x0587,
+ 0x0589, 0x058a,
+ 0x05be, 0x05be,
+ 0x05c0, 0x05c0,
+ 0x05c3, 0x05c3,
+ 0x05c6, 0x05c6,
+ 0x05d0, 0x05ea,
+ 0x05f0, 0x05f4,
+ 0x0606, 0x060f,
+ 0x061b, 0x061b,
+ 0x061e, 0x064a,
+ 0x0660, 0x066f,
+ 0x0671, 0x06d5,
+ 0x06de, 0x06de,
+ 0x06e5, 0x06e6,
+ 0x06e9, 0x06e9,
+ 0x06ee, 0x070d,
+ 0x0710, 0x0710,
+ 0x0712, 0x072f,
+ 0x074d, 0x07a5,
+ 0x07b1, 0x07b1,
+ 0x07c0, 0x07ea,
+ 0x07f4, 0x07fa,
+ 0x0800, 0x0815,
+ 0x081a, 0x081a,
+ 0x0824, 0x0824,
+ 0x0828, 0x0828,
+ 0x0830, 0x083e,
+ 0x0840, 0x0858,
+ 0x085e, 0x085e,
+ 0x0903, 0x0939,
+ 0x093b, 0x093b,
+ 0x093d, 0x0940,
+ 0x0949, 0x094c,
+ 0x094e, 0x0950,
+ 0x0958, 0x0961,
+ 0x0964, 0x0977,
+ 0x0979, 0x097f,
+ 0x0982, 0x0983,
+ 0x0985, 0x098c,
+ 0x098f, 0x0990,
+ 0x0993, 0x09a8,
+ 0x09aa, 0x09b0,
+ 0x09b2, 0x09b2,
+ 0x09b6, 0x09b9,
+ 0x09bd, 0x09bd,
+ 0x09bf, 0x09c0,
+ 0x09c7, 0x09c8,
+ 0x09cb, 0x09cc,
+ 0x09ce, 0x09ce,
+ 0x09dc, 0x09dd,
+ 0x09df, 0x09e1,
+ 0x09e6, 0x09fb,
+ 0x0a03, 0x0a03,
+ 0x0a05, 0x0a0a,
+ 0x0a0f, 0x0a10,
+ 0x0a13, 0x0a28,
+ 0x0a2a, 0x0a30,
+ 0x0a32, 0x0a33,
+ 0x0a35, 0x0a36,
+ 0x0a38, 0x0a39,
+ 0x0a3e, 0x0a40,
+ 0x0a59, 0x0a5c,
+ 0x0a5e, 0x0a5e,
+ 0x0a66, 0x0a6f,
+ 0x0a72, 0x0a74,
+ 0x0a83, 0x0a83,
+ 0x0a85, 0x0a8d,
+ 0x0a8f, 0x0a91,
+ 0x0a93, 0x0aa8,
+ 0x0aaa, 0x0ab0,
+ 0x0ab2, 0x0ab3,
+ 0x0ab5, 0x0ab9,
+ 0x0abd, 0x0ac0,
+ 0x0ac9, 0x0ac9,
+ 0x0acb, 0x0acc,
+ 0x0ad0, 0x0ad0,
+ 0x0ae0, 0x0ae1,
+ 0x0ae6, 0x0aef,
+ 0x0af1, 0x0af1,
+ 0x0b02, 0x0b03,
+ 0x0b05, 0x0b0c,
+ 0x0b0f, 0x0b10,
+ 0x0b13, 0x0b28,
+ 0x0b2a, 0x0b30,
+ 0x0b32, 0x0b33,
+ 0x0b35, 0x0b39,
+ 0x0b3d, 0x0b3d,
+ 0x0b40, 0x0b40,
+ 0x0b47, 0x0b48,
+ 0x0b4b, 0x0b4c,
+ 0x0b5c, 0x0b5d,
+ 0x0b5f, 0x0b61,
+ 0x0b66, 0x0b77,
+ 0x0b83, 0x0b83,
+ 0x0b85, 0x0b8a,
+ 0x0b8e, 0x0b90,
+ 0x0b92, 0x0b95,
+ 0x0b99, 0x0b9a,
+ 0x0b9c, 0x0b9c,
+ 0x0b9e, 0x0b9f,
+ 0x0ba3, 0x0ba4,
+ 0x0ba8, 0x0baa,
+ 0x0bae, 0x0bb9,
+ 0x0bbf, 0x0bbf,
+ 0x0bc1, 0x0bc2,
+ 0x0bc6, 0x0bc8,
+ 0x0bca, 0x0bcc,
+ 0x0bd0, 0x0bd0,
+ 0x0be6, 0x0bfa,
+ 0x0c01, 0x0c03,
+ 0x0c05, 0x0c0c,
+ 0x0c0e, 0x0c10,
+ 0x0c12, 0x0c28,
+ 0x0c2a, 0x0c33,
+ 0x0c35, 0x0c39,
+ 0x0c3d, 0x0c3d,
+ 0x0c41, 0x0c44,
+ 0x0c58, 0x0c59,
+ 0x0c60, 0x0c61,
+ 0x0c66, 0x0c6f,
+ 0x0c78, 0x0c7f,
+ 0x0c82, 0x0c83,
+ 0x0c85, 0x0c8c,
+ 0x0c8e, 0x0c90,
+ 0x0c92, 0x0ca8,
+ 0x0caa, 0x0cb3,
+ 0x0cb5, 0x0cb9,
+ 0x0cbd, 0x0cbe,
+ 0x0cc0, 0x0cc1,
+ 0x0cc3, 0x0cc4,
+ 0x0cc7, 0x0cc8,
+ 0x0cca, 0x0ccb,
+ 0x0cde, 0x0cde,
+ 0x0ce0, 0x0ce1,
+ 0x0ce6, 0x0cef,
+ 0x0cf1, 0x0cf2,
+ 0x0d02, 0x0d03,
+ 0x0d05, 0x0d0c,
+ 0x0d0e, 0x0d10,
+ 0x0d12, 0x0d3a,
+ 0x0d3d, 0x0d3d,
+ 0x0d3f, 0x0d40,
+ 0x0d46, 0x0d48,
+ 0x0d4a, 0x0d4c,
+ 0x0d4e, 0x0d4e,
+ 0x0d60, 0x0d61,
+ 0x0d66, 0x0d75,
+ 0x0d79, 0x0d7f,
+ 0x0d82, 0x0d83,
+ 0x0d85, 0x0d96,
+ 0x0d9a, 0x0db1,
+ 0x0db3, 0x0dbb,
+ 0x0dbd, 0x0dbd,
+ 0x0dc0, 0x0dc6,
+ 0x0dd0, 0x0dd1,
+ 0x0dd8, 0x0dde,
+ 0x0df2, 0x0df4,
+ 0x0e01, 0x0e30,
+ 0x0e32, 0x0e33,
+ 0x0e3f, 0x0e46,
+ 0x0e4f, 0x0e5b,
+ 0x0e81, 0x0e82,
+ 0x0e84, 0x0e84,
+ 0x0e87, 0x0e88,
+ 0x0e8a, 0x0e8a,
+ 0x0e8d, 0x0e8d,
+ 0x0e94, 0x0e97,
+ 0x0e99, 0x0e9f,
+ 0x0ea1, 0x0ea3,
+ 0x0ea5, 0x0ea5,
+ 0x0ea7, 0x0ea7,
+ 0x0eaa, 0x0eab,
+ 0x0ead, 0x0eb0,
+ 0x0eb2, 0x0eb3,
+ 0x0ebd, 0x0ebd,
+ 0x0ec0, 0x0ec4,
+ 0x0ec6, 0x0ec6,
+ 0x0ed0, 0x0ed9,
+ 0x0edc, 0x0edd,
+ 0x0f00, 0x0f17,
+ 0x0f1a, 0x0f34,
+ 0x0f36, 0x0f36,
+ 0x0f38, 0x0f38,
+ 0x0f3a, 0x0f47,
+ 0x0f49, 0x0f6c,
+ 0x0f7f, 0x0f7f,
+ 0x0f85, 0x0f85,
+ 0x0f88, 0x0f8c,
+ 0x0fbe, 0x0fc5,
+ 0x0fc7, 0x0fcc,
+ 0x0fce, 0x0fda,
+ 0x1000, 0x102c,
+ 0x1031, 0x1031,
+ 0x1038, 0x1038,
+ 0x103b, 0x103c,
+ 0x103f, 0x1057,
+ 0x105a, 0x105d,
+ 0x1061, 0x1070,
+ 0x1075, 0x1081,
+ 0x1083, 0x1084,
+ 0x1087, 0x108c,
+ 0x108e, 0x109c,
+ 0x109e, 0x10c5,
+ 0x10d0, 0x10fc,
+ 0x1100, 0x1248,
+ 0x124a, 0x124d,
+ 0x1250, 0x1256,
+ 0x1258, 0x1258,
+ 0x125a, 0x125d,
+ 0x1260, 0x1288,
+ 0x128a, 0x128d,
+ 0x1290, 0x12b0,
+ 0x12b2, 0x12b5,
+ 0x12b8, 0x12be,
+ 0x12c0, 0x12c0,
+ 0x12c2, 0x12c5,
+ 0x12c8, 0x12d6,
+ 0x12d8, 0x1310,
+ 0x1312, 0x1315,
+ 0x1318, 0x135a,
+ 0x1360, 0x137c,
+ 0x1380, 0x1399,
+ 0x13a0, 0x13f4,
+ 0x1400, 0x169c,
+ 0x16a0, 0x16f0,
+ 0x1700, 0x170c,
+ 0x170e, 0x1711,
+ 0x1720, 0x1731,
+ 0x1735, 0x1736,
+ 0x1740, 0x1751,
+ 0x1760, 0x176c,
+ 0x176e, 0x1770,
+ 0x1780, 0x17b3,
+ 0x17b6, 0x17b6,
+ 0x17be, 0x17c5,
+ 0x17c7, 0x17c8,
+ 0x17d4, 0x17dc,
+ 0x17e0, 0x17e9,
+ 0x17f0, 0x17f9,
+ 0x1800, 0x180a,
+ 0x180e, 0x180e,
+ 0x1810, 0x1819,
+ 0x1820, 0x1877,
+ 0x1880, 0x18a8,
+ 0x18aa, 0x18aa,
+ 0x18b0, 0x18f5,
+ 0x1900, 0x191c,
+ 0x1923, 0x1926,
+ 0x1929, 0x192b,
+ 0x1930, 0x1931,
+ 0x1933, 0x1938,
+ 0x1940, 0x1940,
+ 0x1944, 0x196d,
+ 0x1970, 0x1974,
+ 0x1980, 0x19ab,
+ 0x19b0, 0x19c9,
+ 0x19d0, 0x19da,
+ 0x19de, 0x1a16,
+ 0x1a19, 0x1a1b,
+ 0x1a1e, 0x1a55,
+ 0x1a57, 0x1a57,
+ 0x1a61, 0x1a61,
+ 0x1a63, 0x1a64,
+ 0x1a6d, 0x1a72,
+ 0x1a80, 0x1a89,
+ 0x1a90, 0x1a99,
+ 0x1aa0, 0x1aad,
+ 0x1b04, 0x1b33,
+ 0x1b35, 0x1b35,
+ 0x1b3b, 0x1b3b,
+ 0x1b3d, 0x1b41,
+ 0x1b43, 0x1b4b,
+ 0x1b50, 0x1b6a,
+ 0x1b74, 0x1b7c,
+ 0x1b82, 0x1ba1,
+ 0x1ba6, 0x1ba7,
+ 0x1baa, 0x1baa,
+ 0x1bae, 0x1bb9,
+ 0x1bc0, 0x1be5,
+ 0x1be7, 0x1be7,
+ 0x1bea, 0x1bec,
+ 0x1bee, 0x1bee,
+ 0x1bf2, 0x1bf3,
+ 0x1bfc, 0x1c2b,
+ 0x1c34, 0x1c35,
+ 0x1c3b, 0x1c49,
+ 0x1c4d, 0x1c7f,
+ 0x1cd3, 0x1cd3,
+ 0x1ce1, 0x1ce1,
+ 0x1ce9, 0x1cec,
+ 0x1cee, 0x1cf2,
+ 0x1d00, 0x1dbf,
+ 0x1e00, 0x1f15,
+ 0x1f18, 0x1f1d,
+ 0x1f20, 0x1f45,
+ 0x1f48, 0x1f4d,
+ 0x1f50, 0x1f57,
+ 0x1f59, 0x1f59,
+ 0x1f5b, 0x1f5b,
+ 0x1f5d, 0x1f5d,
+ 0x1f5f, 0x1f7d,
+ 0x1f80, 0x1fb4,
+ 0x1fb6, 0x1fc4,
+ 0x1fc6, 0x1fd3,
+ 0x1fd6, 0x1fdb,
+ 0x1fdd, 0x1fef,
+ 0x1ff2, 0x1ff4,
+ 0x1ff6, 0x1ffe,
+ 0x2000, 0x200a,
+ 0x2010, 0x2027,
+ 0x202f, 0x205f,
+ 0x2070, 0x2071,
+ 0x2074, 0x208e,
+ 0x2090, 0x209c,
+ 0x20a0, 0x20b9,
+ 0x2100, 0x2189,
+ 0x2190, 0x23f3,
+ 0x2400, 0x2426,
+ 0x2440, 0x244a,
+ 0x2460, 0x26ff,
+ 0x2701, 0x27ca,
+ 0x27cc, 0x27cc,
+ 0x27ce, 0x2b4c,
+ 0x2b50, 0x2b59,
+ 0x2c00, 0x2c2e,
+ 0x2c30, 0x2c5e,
+ 0x2c60, 0x2cee,
+ 0x2cf9, 0x2d25,
+ 0x2d30, 0x2d65,
+ 0x2d6f, 0x2d70,
+ 0x2d80, 0x2d96,
+ 0x2da0, 0x2da6,
+ 0x2da8, 0x2dae,
+ 0x2db0, 0x2db6,
+ 0x2db8, 0x2dbe,
+ 0x2dc0, 0x2dc6,
+ 0x2dc8, 0x2dce,
+ 0x2dd0, 0x2dd6,
+ 0x2dd8, 0x2dde,
+ 0x2e00, 0x2e31,
+ 0x2e80, 0x2e99,
+ 0x2e9b, 0x2ef3,
+ 0x2f00, 0x2fd5,
+ 0x2ff0, 0x2ffb,
+ 0x3000, 0x3029,
+ 0x3030, 0x303f,
+ 0x3041, 0x3096,
+ 0x309b, 0x30ff,
+ 0x3105, 0x312d,
+ 0x3131, 0x318e,
+ 0x3190, 0x31ba,
+ 0x31c0, 0x31e3,
+ 0x31f0, 0x321e,
+ 0x3220, 0x32fe,
+ 0x3300, 0x4db5,
+ 0x4dc0, 0x9fcb,
+ 0xa000, 0xa48c,
+ 0xa490, 0xa4c6,
+ 0xa4d0, 0xa62b,
+ 0xa640, 0xa66e,
+ 0xa673, 0xa673,
+ 0xa67e, 0xa697,
+ 0xa6a0, 0xa6ef,
+ 0xa6f2, 0xa6f7,
+ 0xa700, 0xa78e,
+ 0xa790, 0xa791,
+ 0xa7a0, 0xa7a9,
+ 0xa7fa, 0xa801,
+ 0xa803, 0xa805,
+ 0xa807, 0xa80a,
+ 0xa80c, 0xa824,
+ 0xa827, 0xa82b,
+ 0xa830, 0xa839,
+ 0xa840, 0xa877,
+ 0xa880, 0xa8c3,
+ 0xa8ce, 0xa8d9,
+ 0xa8f2, 0xa8fb,
+ 0xa900, 0xa925,
+ 0xa92e, 0xa946,
+ 0xa952, 0xa953,
+ 0xa95f, 0xa97c,
+ 0xa983, 0xa9b2,
+ 0xa9b4, 0xa9b5,
+ 0xa9ba, 0xa9bb,
+ 0xa9bd, 0xa9cd,
+ 0xa9cf, 0xa9d9,
+ 0xa9de, 0xa9df,
+ 0xaa00, 0xaa28,
+ 0xaa2f, 0xaa30,
+ 0xaa33, 0xaa34,
+ 0xaa40, 0xaa42,
+ 0xaa44, 0xaa4b,
+ 0xaa4d, 0xaa4d,
+ 0xaa50, 0xaa59,
+ 0xaa5c, 0xaa7b,
+ 0xaa80, 0xaaaf,
+ 0xaab1, 0xaab1,
+ 0xaab5, 0xaab6,
+ 0xaab9, 0xaabd,
+ 0xaac0, 0xaac0,
+ 0xaac2, 0xaac2,
+ 0xaadb, 0xaadf,
+ 0xab01, 0xab06,
+ 0xab09, 0xab0e,
+ 0xab11, 0xab16,
+ 0xab20, 0xab26,
+ 0xab28, 0xab2e,
+ 0xabc0, 0xabe4,
+ 0xabe6, 0xabe7,
+ 0xabe9, 0xabec,
+ 0xabf0, 0xabf9,
+ 0xac00, 0xd7a3,
+ 0xd7b0, 0xd7c6,
+ 0xd7cb, 0xd7fb,
+ 0xf900, 0xfa2d,
+ 0xfa30, 0xfa6d,
+ 0xfa70, 0xfad9,
+ 0xfb00, 0xfb06,
+ 0xfb13, 0xfb17,
+ 0xfb1d, 0xfb1d,
+ 0xfb1f, 0xfb36,
+ 0xfb38, 0xfb3c,
+ 0xfb3e, 0xfb3e,
+ 0xfb40, 0xfb41,
+ 0xfb43, 0xfb44,
+ 0xfb46, 0xfbc1,
+ 0xfbd3, 0xfd3f,
+ 0xfd50, 0xfd8f,
+ 0xfd92, 0xfdc7,
+ 0xfdf0, 0xfdfd,
+ 0xfe10, 0xfe19,
+ 0xfe30, 0xfe52,
+ 0xfe54, 0xfe66,
+ 0xfe68, 0xfe6b,
+ 0xfe70, 0xfe74,
+ 0xfe76, 0xfefc,
+ 0xff01, 0xff9d,
+ 0xffa0, 0xffbe,
+ 0xffc2, 0xffc7,
+ 0xffca, 0xffcf,
+ 0xffd2, 0xffd7,
+ 0xffda, 0xffdc,
+ 0xffe0, 0xffe6,
+ 0xffe8, 0xffee,
+ 0xfffc, 0xfffd,
+ 0x10000, 0x1000b,
+ 0x1000d, 0x10026,
+ 0x10028, 0x1003a,
+ 0x1003c, 0x1003d,
+ 0x1003f, 0x1004d,
+ 0x10050, 0x1005d,
+ 0x10080, 0x100fa,
+ 0x10100, 0x10102,
+ 0x10107, 0x10133,
+ 0x10137, 0x1018a,
+ 0x10190, 0x1019b,
+ 0x101d0, 0x101fc,
+ 0x10280, 0x1029c,
+ 0x102a0, 0x102d0,
+ 0x10300, 0x1031e,
+ 0x10320, 0x10323,
+ 0x10330, 0x1034a,
+ 0x10380, 0x1039d,
+ 0x1039f, 0x103c3,
+ 0x103c8, 0x103d5,
+ 0x10400, 0x1049d,
+ 0x104a0, 0x104a9,
+ 0x10800, 0x10805,
+ 0x10808, 0x10808,
+ 0x1080a, 0x10835,
+ 0x10837, 0x10838,
+ 0x1083c, 0x1083c,
+ 0x1083f, 0x10855,
+ 0x10857, 0x1085f,
+ 0x10900, 0x1091b,
+ 0x1091f, 0x10939,
+ 0x1093f, 0x1093f,
+ 0x10a00, 0x10a00,
+ 0x10a10, 0x10a13,
+ 0x10a15, 0x10a17,
+ 0x10a19, 0x10a33,
+ 0x10a40, 0x10a47,
+ 0x10a50, 0x10a58,
+ 0x10a60, 0x10a7f,
+ 0x10b00, 0x10b35,
+ 0x10b39, 0x10b55,
+ 0x10b58, 0x10b72,
+ 0x10b78, 0x10b7f,
+ 0x10c00, 0x10c48,
+ 0x10e60, 0x10e7e,
+ 0x11000, 0x11000,
+ 0x11002, 0x11037,
+ 0x11047, 0x1104d,
+ 0x11052, 0x1106f,
+ 0x11082, 0x110b2,
+ 0x110b7, 0x110b8,
+ 0x110bb, 0x110bc,
+ 0x110be, 0x110c1,
+ 0x12000, 0x1236e,
+ 0x12400, 0x12462,
+ 0x12470, 0x12473,
+ 0x13000, 0x1342e,
+ 0x16800, 0x16a38,
+ 0x1b000, 0x1b001,
+ 0x1d000, 0x1d0f5,
+ 0x1d100, 0x1d126,
+ 0x1d129, 0x1d164,
+ 0x1d166, 0x1d166,
+ 0x1d16a, 0x1d16d,
+ 0x1d183, 0x1d184,
+ 0x1d18c, 0x1d1a9,
+ 0x1d1ae, 0x1d1dd,
+ 0x1d200, 0x1d241,
+ 0x1d245, 0x1d245,
+ 0x1d300, 0x1d356,
+ 0x1d360, 0x1d371,
+ 0x1d400, 0x1d454,
+ 0x1d456, 0x1d49c,
+ 0x1d49e, 0x1d49f,
+ 0x1d4a2, 0x1d4a2,
+ 0x1d4a5, 0x1d4a6,
+ 0x1d4a9, 0x1d4ac,
+ 0x1d4ae, 0x1d4b9,
+ 0x1d4bb, 0x1d4bb,
+ 0x1d4bd, 0x1d4c3,
+ 0x1d4c5, 0x1d505,
+ 0x1d507, 0x1d50a,
+ 0x1d50d, 0x1d514,
+ 0x1d516, 0x1d51c,
+ 0x1d51e, 0x1d539,
+ 0x1d53b, 0x1d53e,
+ 0x1d540, 0x1d544,
+ 0x1d546, 0x1d546,
+ 0x1d54a, 0x1d550,
+ 0x1d552, 0x1d6a5,
+ 0x1d6a8, 0x1d7cb,
+ 0x1d7ce, 0x1d7ff,
+ 0x1f000, 0x1f02b,
+ 0x1f030, 0x1f093,
+ 0x1f0a0, 0x1f0ae,
+ 0x1f0b1, 0x1f0be,
+ 0x1f0c1, 0x1f0cf,
+ 0x1f0d1, 0x1f0df,
+ 0x1f100, 0x1f10a,
+ 0x1f110, 0x1f12e,
+ 0x1f130, 0x1f169,
+ 0x1f170, 0x1f19a,
+ 0x1f1e6, 0x1f202,
+ 0x1f210, 0x1f23a,
+ 0x1f240, 0x1f248,
+ 0x1f250, 0x1f251,
+ 0x1f300, 0x1f320,
+ 0x1f330, 0x1f335,
+ 0x1f337, 0x1f37c,
+ 0x1f380, 0x1f393,
+ 0x1f3a0, 0x1f3c4,
+ 0x1f3c6, 0x1f3ca,
+ 0x1f3e0, 0x1f3f0,
+ 0x1f400, 0x1f43e,
+ 0x1f440, 0x1f440,
+ 0x1f442, 0x1f4f7,
+ 0x1f4f9, 0x1f4fc,
+ 0x1f500, 0x1f53d,
+ 0x1f550, 0x1f567,
+ 0x1f5fb, 0x1f5ff,
+ 0x1f601, 0x1f610,
+ 0x1f612, 0x1f614,
+ 0x1f616, 0x1f616,
+ 0x1f618, 0x1f618,
+ 0x1f61a, 0x1f61a,
+ 0x1f61c, 0x1f61e,
+ 0x1f620, 0x1f625,
+ 0x1f628, 0x1f62b,
+ 0x1f62d, 0x1f62d,
+ 0x1f630, 0x1f633,
+ 0x1f635, 0x1f640,
+ 0x1f645, 0x1f64f,
+ 0x1f680, 0x1f6c5,
+ 0x1f700, 0x1f773,
+ 0x20000, 0x2a6d6,
+ 0x2a700, 0x2b734,
+ 0x2b740, 0x2b81d,
+ 0x2f800, 0x2fa1d,
+}; /* CR_Grapheme_Base */
+
+/* 'Grapheme_Link': Derived Property */
+static const OnigCodePoint CR_Grapheme_Link[] = {
+ 29,
+ 0x094d, 0x094d,
+ 0x09cd, 0x09cd,
+ 0x0a4d, 0x0a4d,
+ 0x0acd, 0x0acd,
+ 0x0b4d, 0x0b4d,
+ 0x0bcd, 0x0bcd,
+ 0x0c4d, 0x0c4d,
+ 0x0ccd, 0x0ccd,
+ 0x0d4d, 0x0d4d,
+ 0x0dca, 0x0dca,
+ 0x0e3a, 0x0e3a,
+ 0x0f84, 0x0f84,
+ 0x1039, 0x103a,
+ 0x1714, 0x1714,
+ 0x1734, 0x1734,
+ 0x17d2, 0x17d2,
+ 0x1a60, 0x1a60,
+ 0x1b44, 0x1b44,
+ 0x1baa, 0x1baa,
+ 0x1bf2, 0x1bf3,
+ 0x2d7f, 0x2d7f,
+ 0xa806, 0xa806,
+ 0xa8c4, 0xa8c4,
+ 0xa953, 0xa953,
+ 0xa9c0, 0xa9c0,
+ 0xabed, 0xabed,
+ 0x10a3f, 0x10a3f,
+ 0x11046, 0x11046,
+ 0x110b9, 0x110b9,
+}; /* CR_Grapheme_Link */
+
+/* 'Common': Script */
+static const OnigCodePoint CR_Common[] = {
+ 169,
+ 0x0000, 0x0040,
+ 0x005b, 0x0060,
+ 0x007b, 0x00a9,
+ 0x00ab, 0x00b9,
+ 0x00bb, 0x00bf,
+ 0x00d7, 0x00d7,
+ 0x00f7, 0x00f7,
+ 0x02b9, 0x02df,
+ 0x02e5, 0x02e9,
+ 0x02ec, 0x02ff,
+ 0x0374, 0x0374,
+ 0x037e, 0x037e,
+ 0x0385, 0x0385,
+ 0x0387, 0x0387,
+ 0x0589, 0x0589,
+ 0x060c, 0x060c,
+ 0x061b, 0x061b,
+ 0x061f, 0x061f,
+ 0x0640, 0x0640,
+ 0x0660, 0x0669,
+ 0x06dd, 0x06dd,
+ 0x0964, 0x0965,
+ 0x0970, 0x0970,
+ 0x0e3f, 0x0e3f,
+ 0x0fd5, 0x0fd8,
+ 0x10fb, 0x10fb,
+ 0x16eb, 0x16ed,
+ 0x1735, 0x1736,
+ 0x1802, 0x1803,
+ 0x1805, 0x1805,
+ 0x1cd3, 0x1cd3,
+ 0x1ce1, 0x1ce1,
+ 0x1ce9, 0x1cec,
+ 0x1cee, 0x1cf2,
+ 0x2000, 0x200b,
+ 0x200e, 0x2064,
+ 0x206a, 0x2070,
+ 0x2074, 0x207e,
+ 0x2080, 0x208e,
+ 0x20a0, 0x20b9,
+ 0x2100, 0x2125,
+ 0x2127, 0x2129,
+ 0x212c, 0x2131,
+ 0x2133, 0x214d,
+ 0x214f, 0x215f,
+ 0x2189, 0x2189,
+ 0x2190, 0x23f3,
+ 0x2400, 0x2426,
+ 0x2440, 0x244a,
+ 0x2460, 0x26ff,
+ 0x2701, 0x27ca,
+ 0x27cc, 0x27cc,
+ 0x27ce, 0x27ff,
+ 0x2900, 0x2b4c,
+ 0x2b50, 0x2b59,
+ 0x2e00, 0x2e31,
+ 0x2ff0, 0x2ffb,
+ 0x3000, 0x3004,
+ 0x3006, 0x3006,
+ 0x3008, 0x3020,
+ 0x3030, 0x3037,
+ 0x303c, 0x303f,
+ 0x309b, 0x309c,
+ 0x30a0, 0x30a0,
+ 0x30fb, 0x30fc,
+ 0x3190, 0x319f,
+ 0x31c0, 0x31e3,
+ 0x3220, 0x325f,
+ 0x327f, 0x32cf,
+ 0x3358, 0x33ff,
+ 0x4dc0, 0x4dff,
+ 0xa700, 0xa721,
+ 0xa788, 0xa78a,
+ 0xa830, 0xa839,
+ 0xfd3e, 0xfd3f,
+ 0xfdfd, 0xfdfd,
+ 0xfe10, 0xfe19,
+ 0xfe30, 0xfe52,
+ 0xfe54, 0xfe66,
+ 0xfe68, 0xfe6b,
+ 0xfeff, 0xfeff,
+ 0xff01, 0xff20,
+ 0xff3b, 0xff40,
+ 0xff5b, 0xff65,
+ 0xff70, 0xff70,
+ 0xff9e, 0xff9f,
+ 0xffe0, 0xffe6,
+ 0xffe8, 0xffee,
+ 0xfff9, 0xfffd,
+ 0x10100, 0x10102,
+ 0x10107, 0x10133,
+ 0x10137, 0x1013f,
+ 0x10190, 0x1019b,
+ 0x101d0, 0x101fc,
+ 0x1d000, 0x1d0f5,
+ 0x1d100, 0x1d126,
+ 0x1d129, 0x1d166,
+ 0x1d16a, 0x1d17a,
+ 0x1d183, 0x1d184,
+ 0x1d18c, 0x1d1a9,
+ 0x1d1ae, 0x1d1dd,
+ 0x1d300, 0x1d356,
+ 0x1d360, 0x1d371,
+ 0x1d400, 0x1d454,
+ 0x1d456, 0x1d49c,
+ 0x1d49e, 0x1d49f,
+ 0x1d4a2, 0x1d4a2,
+ 0x1d4a5, 0x1d4a6,
+ 0x1d4a9, 0x1d4ac,
+ 0x1d4ae, 0x1d4b9,
+ 0x1d4bb, 0x1d4bb,
+ 0x1d4bd, 0x1d4c3,
+ 0x1d4c5, 0x1d505,
+ 0x1d507, 0x1d50a,
+ 0x1d50d, 0x1d514,
+ 0x1d516, 0x1d51c,
+ 0x1d51e, 0x1d539,
+ 0x1d53b, 0x1d53e,
+ 0x1d540, 0x1d544,
+ 0x1d546, 0x1d546,
+ 0x1d54a, 0x1d550,
+ 0x1d552, 0x1d6a5,
+ 0x1d6a8, 0x1d7cb,
+ 0x1d7ce, 0x1d7ff,
+ 0x1f000, 0x1f02b,
+ 0x1f030, 0x1f093,
+ 0x1f0a0, 0x1f0ae,
+ 0x1f0b1, 0x1f0be,
+ 0x1f0c1, 0x1f0cf,
+ 0x1f0d1, 0x1f0df,
+ 0x1f100, 0x1f10a,
+ 0x1f110, 0x1f12e,
+ 0x1f130, 0x1f169,
+ 0x1f170, 0x1f19a,
+ 0x1f1e6, 0x1f1ff,
+ 0x1f201, 0x1f202,
+ 0x1f210, 0x1f23a,
+ 0x1f240, 0x1f248,
+ 0x1f250, 0x1f251,
+ 0x1f300, 0x1f320,
+ 0x1f330, 0x1f335,
+ 0x1f337, 0x1f37c,
+ 0x1f380, 0x1f393,
+ 0x1f3a0, 0x1f3c4,
+ 0x1f3c6, 0x1f3ca,
+ 0x1f3e0, 0x1f3f0,
+ 0x1f400, 0x1f43e,
+ 0x1f440, 0x1f440,
+ 0x1f442, 0x1f4f7,
+ 0x1f4f9, 0x1f4fc,
+ 0x1f500, 0x1f53d,
+ 0x1f550, 0x1f567,
+ 0x1f5fb, 0x1f5ff,
+ 0x1f601, 0x1f610,
+ 0x1f612, 0x1f614,
+ 0x1f616, 0x1f616,
+ 0x1f618, 0x1f618,
+ 0x1f61a, 0x1f61a,
+ 0x1f61c, 0x1f61e,
+ 0x1f620, 0x1f625,
+ 0x1f628, 0x1f62b,
+ 0x1f62d, 0x1f62d,
+ 0x1f630, 0x1f633,
+ 0x1f635, 0x1f640,
+ 0x1f645, 0x1f64f,
+ 0x1f680, 0x1f6c5,
+ 0x1f700, 0x1f773,
+ 0xe0001, 0xe0001,
+ 0xe0020, 0xe007f,
+}; /* CR_Common */
+
+/* 'Latin': Script */
+static const OnigCodePoint CR_Latin[] = {
+ 30,
+ 0x0041, 0x005a,
+ 0x0061, 0x007a,
+ 0x00aa, 0x00aa,
+ 0x00ba, 0x00ba,
+ 0x00c0, 0x00d6,
+ 0x00d8, 0x00f6,
+ 0x00f8, 0x02b8,
+ 0x02e0, 0x02e4,
+ 0x1d00, 0x1d25,
+ 0x1d2c, 0x1d5c,
+ 0x1d62, 0x1d65,
+ 0x1d6b, 0x1d77,
+ 0x1d79, 0x1dbe,
+ 0x1e00, 0x1eff,
+ 0x2071, 0x2071,
+ 0x207f, 0x207f,
+ 0x2090, 0x209c,
+ 0x212a, 0x212b,
+ 0x2132, 0x2132,
+ 0x214e, 0x214e,
+ 0x2160, 0x2188,
+ 0x2c60, 0x2c7f,
+ 0xa722, 0xa787,
+ 0xa78b, 0xa78e,
+ 0xa790, 0xa791,
+ 0xa7a0, 0xa7a9,
+ 0xa7fa, 0xa7ff,
+ 0xfb00, 0xfb06,
+ 0xff21, 0xff3a,
+ 0xff41, 0xff5a,
+}; /* CR_Latin */
+
+/* 'Greek': Script */
+static const OnigCodePoint CR_Greek[] = {
+ 33,
+ 0x0370, 0x0373,
+ 0x0375, 0x0377,
+ 0x037a, 0x037d,
+ 0x0384, 0x0384,
+ 0x0386, 0x0386,
+ 0x0388, 0x038a,
+ 0x038c, 0x038c,
+ 0x038e, 0x03a1,
+ 0x03a3, 0x03e1,
+ 0x03f0, 0x03ff,
+ 0x1d26, 0x1d2a,
+ 0x1d5d, 0x1d61,
+ 0x1d66, 0x1d6a,
+ 0x1dbf, 0x1dbf,
+ 0x1f00, 0x1f15,
+ 0x1f18, 0x1f1d,
+ 0x1f20, 0x1f45,
+ 0x1f48, 0x1f4d,
+ 0x1f50, 0x1f57,
+ 0x1f59, 0x1f59,
+ 0x1f5b, 0x1f5b,
+ 0x1f5d, 0x1f5d,
+ 0x1f5f, 0x1f7d,
+ 0x1f80, 0x1fb4,
+ 0x1fb6, 0x1fc4,
+ 0x1fc6, 0x1fd3,
+ 0x1fd6, 0x1fdb,
+ 0x1fdd, 0x1fef,
+ 0x1ff2, 0x1ff4,
+ 0x1ff6, 0x1ffe,
+ 0x2126, 0x2126,
+ 0x10140, 0x1018a,
+ 0x1d200, 0x1d245,
+}; /* CR_Greek */
+
+/* 'Cyrillic': Script */
+static const OnigCodePoint CR_Cyrillic[] = {
+ 7,
+ 0x0400, 0x0484,
+ 0x0487, 0x0527,
+ 0x1d2b, 0x1d2b,
+ 0x1d78, 0x1d78,
+ 0x2de0, 0x2dff,
+ 0xa640, 0xa673,
+ 0xa67c, 0xa697,
+}; /* CR_Cyrillic */
+
+/* 'Armenian': Script */
+static const OnigCodePoint CR_Armenian[] = {
+ 5,
+ 0x0531, 0x0556,
+ 0x0559, 0x055f,
+ 0x0561, 0x0587,
+ 0x058a, 0x058a,
+ 0xfb13, 0xfb17,
+}; /* CR_Armenian */
+
+/* 'Hebrew': Script */
+static const OnigCodePoint CR_Hebrew[] = {
+ 9,
+ 0x0591, 0x05c7,
+ 0x05d0, 0x05ea,
+ 0x05f0, 0x05f4,
+ 0xfb1d, 0xfb36,
+ 0xfb38, 0xfb3c,
+ 0xfb3e, 0xfb3e,
+ 0xfb40, 0xfb41,
+ 0xfb43, 0xfb44,
+ 0xfb46, 0xfb4f,
+}; /* CR_Hebrew */
+
+/* 'Arabic': Script */
+static const OnigCodePoint CR_Arabic[] = {
+ 19,
+ 0x0600, 0x0603,
+ 0x0606, 0x060b,
+ 0x060d, 0x061a,
+ 0x061e, 0x061e,
+ 0x0620, 0x063f,
+ 0x0641, 0x064a,
+ 0x0656, 0x065e,
+ 0x066a, 0x066f,
+ 0x0671, 0x06dc,
+ 0x06de, 0x06ff,
+ 0x0750, 0x077f,
+ 0xfb50, 0xfbc1,
+ 0xfbd3, 0xfd3d,
+ 0xfd50, 0xfd8f,
+ 0xfd92, 0xfdc7,
+ 0xfdf0, 0xfdfc,
+ 0xfe70, 0xfe74,
+ 0xfe76, 0xfefc,
+ 0x10e60, 0x10e7e,
+}; /* CR_Arabic */
+
+/* 'Syriac': Script */
+static const OnigCodePoint CR_Syriac[] = {
+ 3,
+ 0x0700, 0x070d,
+ 0x070f, 0x074a,
+ 0x074d, 0x074f,
+}; /* CR_Syriac */
+
+/* 'Thaana': Script */
+static const OnigCodePoint CR_Thaana[] = {
+ 1,
+ 0x0780, 0x07b1,
+}; /* CR_Thaana */
+
+/* 'Devanagari': Script */
+static const OnigCodePoint CR_Devanagari[] = {
+ 6,
+ 0x0900, 0x0950,
+ 0x0953, 0x0963,
+ 0x0966, 0x096f,
+ 0x0971, 0x0977,
+ 0x0979, 0x097f,
+ 0xa8e0, 0xa8fb,
+}; /* CR_Devanagari */
+
+/* 'Bengali': Script */
+static const OnigCodePoint CR_Bengali[] = {
+ 14,
+ 0x0981, 0x0983,
+ 0x0985, 0x098c,
+ 0x098f, 0x0990,
+ 0x0993, 0x09a8,
+ 0x09aa, 0x09b0,
+ 0x09b2, 0x09b2,
+ 0x09b6, 0x09b9,
+ 0x09bc, 0x09c4,
+ 0x09c7, 0x09c8,
+ 0x09cb, 0x09ce,
+ 0x09d7, 0x09d7,
+ 0x09dc, 0x09dd,
+ 0x09df, 0x09e3,
+ 0x09e6, 0x09fb,
+}; /* CR_Bengali */
+
+/* 'Gurmukhi': Script */
+static const OnigCodePoint CR_Gurmukhi[] = {
+ 16,
+ 0x0a01, 0x0a03,
+ 0x0a05, 0x0a0a,
+ 0x0a0f, 0x0a10,
+ 0x0a13, 0x0a28,
+ 0x0a2a, 0x0a30,
+ 0x0a32, 0x0a33,
+ 0x0a35, 0x0a36,
+ 0x0a38, 0x0a39,
+ 0x0a3c, 0x0a3c,
+ 0x0a3e, 0x0a42,
+ 0x0a47, 0x0a48,
+ 0x0a4b, 0x0a4d,
+ 0x0a51, 0x0a51,
+ 0x0a59, 0x0a5c,
+ 0x0a5e, 0x0a5e,
+ 0x0a66, 0x0a75,
+}; /* CR_Gurmukhi */
+
+/* 'Gujarati': Script */
+static const OnigCodePoint CR_Gujarati[] = {
+ 14,
+ 0x0a81, 0x0a83,
+ 0x0a85, 0x0a8d,
+ 0x0a8f, 0x0a91,
+ 0x0a93, 0x0aa8,
+ 0x0aaa, 0x0ab0,
+ 0x0ab2, 0x0ab3,
+ 0x0ab5, 0x0ab9,
+ 0x0abc, 0x0ac5,
+ 0x0ac7, 0x0ac9,
+ 0x0acb, 0x0acd,
+ 0x0ad0, 0x0ad0,
+ 0x0ae0, 0x0ae3,
+ 0x0ae6, 0x0aef,
+ 0x0af1, 0x0af1,
+}; /* CR_Gujarati */
+
+/* 'Oriya': Script */
+static const OnigCodePoint CR_Oriya[] = {
+ 14,
+ 0x0b01, 0x0b03,
+ 0x0b05, 0x0b0c,
+ 0x0b0f, 0x0b10,
+ 0x0b13, 0x0b28,
+ 0x0b2a, 0x0b30,
+ 0x0b32, 0x0b33,
+ 0x0b35, 0x0b39,
+ 0x0b3c, 0x0b44,
+ 0x0b47, 0x0b48,
+ 0x0b4b, 0x0b4d,
+ 0x0b56, 0x0b57,
+ 0x0b5c, 0x0b5d,
+ 0x0b5f, 0x0b63,
+ 0x0b66, 0x0b77,
+}; /* CR_Oriya */
+
+/* 'Tamil': Script */
+static const OnigCodePoint CR_Tamil[] = {
+ 16,
+ 0x0b82, 0x0b83,
+ 0x0b85, 0x0b8a,
+ 0x0b8e, 0x0b90,
+ 0x0b92, 0x0b95,
+ 0x0b99, 0x0b9a,
+ 0x0b9c, 0x0b9c,
+ 0x0b9e, 0x0b9f,
+ 0x0ba3, 0x0ba4,
+ 0x0ba8, 0x0baa,
+ 0x0bae, 0x0bb9,
+ 0x0bbe, 0x0bc2,
+ 0x0bc6, 0x0bc8,
+ 0x0bca, 0x0bcd,
+ 0x0bd0, 0x0bd0,
+ 0x0bd7, 0x0bd7,
+ 0x0be6, 0x0bfa,
+}; /* CR_Tamil */
+
+/* 'Telugu': Script */
+static const OnigCodePoint CR_Telugu[] = {
+ 14,
+ 0x0c01, 0x0c03,
+ 0x0c05, 0x0c0c,
+ 0x0c0e, 0x0c10,
+ 0x0c12, 0x0c28,
+ 0x0c2a, 0x0c33,
+ 0x0c35, 0x0c39,
+ 0x0c3d, 0x0c44,
+ 0x0c46, 0x0c48,
+ 0x0c4a, 0x0c4d,
+ 0x0c55, 0x0c56,
+ 0x0c58, 0x0c59,
+ 0x0c60, 0x0c63,
+ 0x0c66, 0x0c6f,
+ 0x0c78, 0x0c7f,
+}; /* CR_Telugu */
+
+/* 'Kannada': Script */
+static const OnigCodePoint CR_Kannada[] = {
+ 14,
+ 0x0c82, 0x0c83,
+ 0x0c85, 0x0c8c,
+ 0x0c8e, 0x0c90,
+ 0x0c92, 0x0ca8,
+ 0x0caa, 0x0cb3,
+ 0x0cb5, 0x0cb9,
+ 0x0cbc, 0x0cc4,
+ 0x0cc6, 0x0cc8,
+ 0x0cca, 0x0ccd,
+ 0x0cd5, 0x0cd6,
+ 0x0cde, 0x0cde,
+ 0x0ce0, 0x0ce3,
+ 0x0ce6, 0x0cef,
+ 0x0cf1, 0x0cf2,
+}; /* CR_Kannada */
+
+/* 'Malayalam': Script */
+static const OnigCodePoint CR_Malayalam[] = {
+ 11,
+ 0x0d02, 0x0d03,
+ 0x0d05, 0x0d0c,
+ 0x0d0e, 0x0d10,
+ 0x0d12, 0x0d3a,
+ 0x0d3d, 0x0d44,
+ 0x0d46, 0x0d48,
+ 0x0d4a, 0x0d4e,
+ 0x0d57, 0x0d57,
+ 0x0d60, 0x0d63,
+ 0x0d66, 0x0d75,
+ 0x0d79, 0x0d7f,
+}; /* CR_Malayalam */
+
+/* 'Sinhala': Script */
+static const OnigCodePoint CR_Sinhala[] = {
+ 11,
+ 0x0d82, 0x0d83,
+ 0x0d85, 0x0d96,
+ 0x0d9a, 0x0db1,
+ 0x0db3, 0x0dbb,
+ 0x0dbd, 0x0dbd,
+ 0x0dc0, 0x0dc6,
+ 0x0dca, 0x0dca,
+ 0x0dcf, 0x0dd4,
+ 0x0dd6, 0x0dd6,
+ 0x0dd8, 0x0ddf,
+ 0x0df2, 0x0df4,
+}; /* CR_Sinhala */
+
+/* 'Thai': Script */
+static const OnigCodePoint CR_Thai[] = {
+ 2,
+ 0x0e01, 0x0e3a,
+ 0x0e40, 0x0e5b,
+}; /* CR_Thai */
+
+/* 'Lao': Script */
+static const OnigCodePoint CR_Lao[] = {
+ 18,
+ 0x0e81, 0x0e82,
+ 0x0e84, 0x0e84,
+ 0x0e87, 0x0e88,
+ 0x0e8a, 0x0e8a,
+ 0x0e8d, 0x0e8d,
+ 0x0e94, 0x0e97,
+ 0x0e99, 0x0e9f,
+ 0x0ea1, 0x0ea3,
+ 0x0ea5, 0x0ea5,
+ 0x0ea7, 0x0ea7,
+ 0x0eaa, 0x0eab,
+ 0x0ead, 0x0eb9,
+ 0x0ebb, 0x0ebd,
+ 0x0ec0, 0x0ec4,
+ 0x0ec6, 0x0ec6,
+ 0x0ec8, 0x0ecd,
+ 0x0ed0, 0x0ed9,
+ 0x0edc, 0x0edd,
+}; /* CR_Lao */
+
+/* 'Tibetan': Script */
+static const OnigCodePoint CR_Tibetan[] = {
+ 7,
+ 0x0f00, 0x0f47,
+ 0x0f49, 0x0f6c,
+ 0x0f71, 0x0f97,
+ 0x0f99, 0x0fbc,
+ 0x0fbe, 0x0fcc,
+ 0x0fce, 0x0fd4,
+ 0x0fd9, 0x0fda,
+}; /* CR_Tibetan */
+
+/* 'Myanmar': Script */
+static const OnigCodePoint CR_Myanmar[] = {
+ 2,
+ 0x1000, 0x109f,
+ 0xaa60, 0xaa7b,
+}; /* CR_Myanmar */
+
+/* 'Georgian': Script */
+static const OnigCodePoint CR_Georgian[] = {
+ 4,
+ 0x10a0, 0x10c5,
+ 0x10d0, 0x10fa,
+ 0x10fc, 0x10fc,
+ 0x2d00, 0x2d25,
+}; /* CR_Georgian */
+
+/* 'Hangul': Script */
+static const OnigCodePoint CR_Hangul[] = {
+ 14,
+ 0x1100, 0x11ff,
+ 0x302e, 0x302f,
+ 0x3131, 0x318e,
+ 0x3200, 0x321e,
+ 0x3260, 0x327e,
+ 0xa960, 0xa97c,
+ 0xac00, 0xd7a3,
+ 0xd7b0, 0xd7c6,
+ 0xd7cb, 0xd7fb,
+ 0xffa0, 0xffbe,
+ 0xffc2, 0xffc7,
+ 0xffca, 0xffcf,
+ 0xffd2, 0xffd7,
+ 0xffda, 0xffdc,
+}; /* CR_Hangul */
+
+/* 'Ethiopic': Script */
+static const OnigCodePoint CR_Ethiopic[] = {
+ 32,
+ 0x1200, 0x1248,
+ 0x124a, 0x124d,
+ 0x1250, 0x1256,
+ 0x1258, 0x1258,
+ 0x125a, 0x125d,
+ 0x1260, 0x1288,
+ 0x128a, 0x128d,
+ 0x1290, 0x12b0,
+ 0x12b2, 0x12b5,
+ 0x12b8, 0x12be,
+ 0x12c0, 0x12c0,
+ 0x12c2, 0x12c5,
+ 0x12c8, 0x12d6,
+ 0x12d8, 0x1310,
+ 0x1312, 0x1315,
+ 0x1318, 0x135a,
+ 0x135d, 0x137c,
+ 0x1380, 0x1399,
+ 0x2d80, 0x2d96,
+ 0x2da0, 0x2da6,
+ 0x2da8, 0x2dae,
+ 0x2db0, 0x2db6,
+ 0x2db8, 0x2dbe,
+ 0x2dc0, 0x2dc6,
+ 0x2dc8, 0x2dce,
+ 0x2dd0, 0x2dd6,
+ 0x2dd8, 0x2dde,
+ 0xab01, 0xab06,
+ 0xab09, 0xab0e,
+ 0xab11, 0xab16,
+ 0xab20, 0xab26,
+ 0xab28, 0xab2e,
+}; /* CR_Ethiopic */
+
+/* 'Cherokee': Script */
+static const OnigCodePoint CR_Cherokee[] = {
+ 1,
+ 0x13a0, 0x13f4,
+}; /* CR_Cherokee */
+
+/* 'Canadian_Aboriginal': Script */
+static const OnigCodePoint CR_Canadian_Aboriginal[] = {
+ 2,
+ 0x1400, 0x167f,
+ 0x18b0, 0x18f5,
+}; /* CR_Canadian_Aboriginal */
+
+/* 'Ogham': Script */
+static const OnigCodePoint CR_Ogham[] = {
+ 1,
+ 0x1680, 0x169c,
+}; /* CR_Ogham */
+
+/* 'Runic': Script */
+static const OnigCodePoint CR_Runic[] = {
+ 2,
+ 0x16a0, 0x16ea,
+ 0x16ee, 0x16f0,
+}; /* CR_Runic */
+
+/* 'Khmer': Script */
+static const OnigCodePoint CR_Khmer[] = {
+ 4,
+ 0x1780, 0x17dd,
+ 0x17e0, 0x17e9,
+ 0x17f0, 0x17f9,
+ 0x19e0, 0x19ff,
+}; /* CR_Khmer */
+
+/* 'Mongolian': Script */
+static const OnigCodePoint CR_Mongolian[] = {
+ 6,
+ 0x1800, 0x1801,
+ 0x1804, 0x1804,
+ 0x1806, 0x180e,
+ 0x1810, 0x1819,
+ 0x1820, 0x1877,
+ 0x1880, 0x18aa,
+}; /* CR_Mongolian */
+
+/* 'Hiragana': Script */
+static const OnigCodePoint CR_Hiragana[] = {
+ 4,
+ 0x3041, 0x3096,
+ 0x309d, 0x309f,
+ 0x1b001, 0x1b001,
+ 0x1f200, 0x1f200,
+}; /* CR_Hiragana */
+
+/* 'Katakana': Script */
+static const OnigCodePoint CR_Katakana[] = {
+ 8,
+ 0x30a1, 0x30fa,
+ 0x30fd, 0x30ff,
+ 0x31f0, 0x31ff,
+ 0x32d0, 0x32fe,
+ 0x3300, 0x3357,
+ 0xff66, 0xff6f,
+ 0xff71, 0xff9d,
+ 0x1b000, 0x1b000,
+}; /* CR_Katakana */
+
+/* 'Bopomofo': Script */
+static const OnigCodePoint CR_Bopomofo[] = {
+ 3,
+ 0x02ea, 0x02eb,
+ 0x3105, 0x312d,
+ 0x31a0, 0x31ba,
+}; /* CR_Bopomofo */
+
+/* 'Han': Script */
+static const OnigCodePoint CR_Han[] = {
+ 16,
+ 0x2e80, 0x2e99,
+ 0x2e9b, 0x2ef3,
+ 0x2f00, 0x2fd5,
+ 0x3005, 0x3005,
+ 0x3007, 0x3007,
+ 0x3021, 0x3029,
+ 0x3038, 0x303b,
+ 0x3400, 0x4db5,
+ 0x4e00, 0x9fcb,
+ 0xf900, 0xfa2d,
+ 0xfa30, 0xfa6d,
+ 0xfa70, 0xfad9,
+ 0x20000, 0x2a6d6,
+ 0x2a700, 0x2b734,
+ 0x2b740, 0x2b81d,
+ 0x2f800, 0x2fa1d,
+}; /* CR_Han */
+
+/* 'Yi': Script */
+static const OnigCodePoint CR_Yi[] = {
+ 2,
+ 0xa000, 0xa48c,
+ 0xa490, 0xa4c6,
+}; /* CR_Yi */
+
+/* 'Old_Italic': Script */
+static const OnigCodePoint CR_Old_Italic[] = {
+ 2,
+ 0x10300, 0x1031e,
+ 0x10320, 0x10323,
+}; /* CR_Old_Italic */
+
+/* 'Gothic': Script */
+static const OnigCodePoint CR_Gothic[] = {
+ 1,
+ 0x10330, 0x1034a,
+}; /* CR_Gothic */
+
+/* 'Deseret': Script */
+static const OnigCodePoint CR_Deseret[] = {
+ 1,
+ 0x10400, 0x1044f,
+}; /* CR_Deseret */
+
+/* 'Inherited': Script */
+static const OnigCodePoint CR_Inherited[] = {
+ 24,
+ 0x0300, 0x036f,
+ 0x0485, 0x0486,
+ 0x064b, 0x0655,
+ 0x065f, 0x065f,
+ 0x0670, 0x0670,
+ 0x0951, 0x0952,
+ 0x1cd0, 0x1cd2,
+ 0x1cd4, 0x1ce0,
+ 0x1ce2, 0x1ce8,
+ 0x1ced, 0x1ced,
+ 0x1dc0, 0x1de6,
+ 0x1dfc, 0x1dff,
+ 0x200c, 0x200d,
+ 0x20d0, 0x20f0,
+ 0x302a, 0x302d,
+ 0x3099, 0x309a,
+ 0xfe00, 0xfe0f,
+ 0xfe20, 0xfe26,
+ 0x101fd, 0x101fd,
+ 0x1d167, 0x1d169,
+ 0x1d17b, 0x1d182,
+ 0x1d185, 0x1d18b,
+ 0x1d1aa, 0x1d1ad,
+ 0xe0100, 0xe01ef,
+}; /* CR_Inherited */
+
+/* 'Tagalog': Script */
+static const OnigCodePoint CR_Tagalog[] = {
+ 2,
+ 0x1700, 0x170c,
+ 0x170e, 0x1714,
+}; /* CR_Tagalog */
+
+/* 'Hanunoo': Script */
+static const OnigCodePoint CR_Hanunoo[] = {
+ 1,
+ 0x1720, 0x1734,
+}; /* CR_Hanunoo */
+
+/* 'Buhid': Script */
+static const OnigCodePoint CR_Buhid[] = {
+ 1,
+ 0x1740, 0x1753,
+}; /* CR_Buhid */
+
+/* 'Tagbanwa': Script */
+static const OnigCodePoint CR_Tagbanwa[] = {
+ 3,
+ 0x1760, 0x176c,
+ 0x176e, 0x1770,
+ 0x1772, 0x1773,
+}; /* CR_Tagbanwa */
+
+/* 'Limbu': Script */
+static const OnigCodePoint CR_Limbu[] = {
+ 5,
+ 0x1900, 0x191c,
+ 0x1920, 0x192b,
+ 0x1930, 0x193b,
+ 0x1940, 0x1940,
+ 0x1944, 0x194f,
+}; /* CR_Limbu */
+
+/* 'Tai_Le': Script */
+static const OnigCodePoint CR_Tai_Le[] = {
+ 2,
+ 0x1950, 0x196d,
+ 0x1970, 0x1974,
+}; /* CR_Tai_Le */
+
+/* 'Linear_B': Script */
+static const OnigCodePoint CR_Linear_B[] = {
+ 7,
+ 0x10000, 0x1000b,
+ 0x1000d, 0x10026,
+ 0x10028, 0x1003a,
+ 0x1003c, 0x1003d,
+ 0x1003f, 0x1004d,
+ 0x10050, 0x1005d,
+ 0x10080, 0x100fa,
+}; /* CR_Linear_B */
+
+/* 'Ugaritic': Script */
+static const OnigCodePoint CR_Ugaritic[] = {
+ 2,
+ 0x10380, 0x1039d,
+ 0x1039f, 0x1039f,
+}; /* CR_Ugaritic */
+
+/* 'Shavian': Script */
+static const OnigCodePoint CR_Shavian[] = {
+ 1,
+ 0x10450, 0x1047f,
+}; /* CR_Shavian */
+
+/* 'Osmanya': Script */
+static const OnigCodePoint CR_Osmanya[] = {
+ 2,
+ 0x10480, 0x1049d,
+ 0x104a0, 0x104a9,
+}; /* CR_Osmanya */
+
+/* 'Cypriot': Script */
+static const OnigCodePoint CR_Cypriot[] = {
+ 6,
+ 0x10800, 0x10805,
+ 0x10808, 0x10808,
+ 0x1080a, 0x10835,
+ 0x10837, 0x10838,
+ 0x1083c, 0x1083c,
+ 0x1083f, 0x1083f,
+}; /* CR_Cypriot */
+
+/* 'Braille': Script */
+static const OnigCodePoint CR_Braille[] = {
+ 1,
+ 0x2800, 0x28ff,
+}; /* CR_Braille */
+
+/* 'Buginese': Script */
+static const OnigCodePoint CR_Buginese[] = {
+ 2,
+ 0x1a00, 0x1a1b,
+ 0x1a1e, 0x1a1f,
+}; /* CR_Buginese */
+
+/* 'Coptic': Script */
+static const OnigCodePoint CR_Coptic[] = {
+ 3,
+ 0x03e2, 0x03ef,
+ 0x2c80, 0x2cf1,
+ 0x2cf9, 0x2cff,
+}; /* CR_Coptic */
+
+/* 'New_Tai_Lue': Script */
+static const OnigCodePoint CR_New_Tai_Lue[] = {
+ 4,
+ 0x1980, 0x19ab,
+ 0x19b0, 0x19c9,
+ 0x19d0, 0x19da,
+ 0x19de, 0x19df,
+}; /* CR_New_Tai_Lue */
+
+/* 'Glagolitic': Script */
+static const OnigCodePoint CR_Glagolitic[] = {
+ 2,
+ 0x2c00, 0x2c2e,
+ 0x2c30, 0x2c5e,
+}; /* CR_Glagolitic */
+
+/* 'Tifinagh': Script */
+static const OnigCodePoint CR_Tifinagh[] = {
+ 3,
+ 0x2d30, 0x2d65,
+ 0x2d6f, 0x2d70,
+ 0x2d7f, 0x2d7f,
+}; /* CR_Tifinagh */
+
+/* 'Syloti_Nagri': Script */
+static const OnigCodePoint CR_Syloti_Nagri[] = {
+ 1,
+ 0xa800, 0xa82b,
+}; /* CR_Syloti_Nagri */
+
+/* 'Old_Persian': Script */
+static const OnigCodePoint CR_Old_Persian[] = {
+ 2,
+ 0x103a0, 0x103c3,
+ 0x103c8, 0x103d5,
+}; /* CR_Old_Persian */
+
+/* 'Kharoshthi': Script */
+static const OnigCodePoint CR_Kharoshthi[] = {
+ 8,
+ 0x10a00, 0x10a03,
+ 0x10a05, 0x10a06,
+ 0x10a0c, 0x10a13,
+ 0x10a15, 0x10a17,
+ 0x10a19, 0x10a33,
+ 0x10a38, 0x10a3a,
+ 0x10a3f, 0x10a47,
+ 0x10a50, 0x10a58,
+}; /* CR_Kharoshthi */
+
+/* 'Balinese': Script */
+static const OnigCodePoint CR_Balinese[] = {
+ 2,
+ 0x1b00, 0x1b4b,
+ 0x1b50, 0x1b7c,
+}; /* CR_Balinese */
+
+/* 'Cuneiform': Script */
+static const OnigCodePoint CR_Cuneiform[] = {
+ 3,
+ 0x12000, 0x1236e,
+ 0x12400, 0x12462,
+ 0x12470, 0x12473,
+}; /* CR_Cuneiform */
+
+/* 'Phoenician': Script */
+static const OnigCodePoint CR_Phoenician[] = {
+ 2,
+ 0x10900, 0x1091b,
+ 0x1091f, 0x1091f,
+}; /* CR_Phoenician */
+
+/* 'Phags_Pa': Script */
+static const OnigCodePoint CR_Phags_Pa[] = {
+ 1,
+ 0xa840, 0xa877,
+}; /* CR_Phags_Pa */
+
+/* 'Nko': Script */
+static const OnigCodePoint CR_Nko[] = {
+ 1,
+ 0x07c0, 0x07fa,
+}; /* CR_Nko */
+
+/* 'Sundanese': Script */
+static const OnigCodePoint CR_Sundanese[] = {
+ 2,
+ 0x1b80, 0x1baa,
+ 0x1bae, 0x1bb9,
+}; /* CR_Sundanese */
+
+/* 'Lepcha': Script */
+static const OnigCodePoint CR_Lepcha[] = {
+ 3,
+ 0x1c00, 0x1c37,
+ 0x1c3b, 0x1c49,
+ 0x1c4d, 0x1c4f,
+}; /* CR_Lepcha */
+
+/* 'Ol_Chiki': Script */
+static const OnigCodePoint CR_Ol_Chiki[] = {
+ 1,
+ 0x1c50, 0x1c7f,
+}; /* CR_Ol_Chiki */
+
+/* 'Vai': Script */
+static const OnigCodePoint CR_Vai[] = {
+ 1,
+ 0xa500, 0xa62b,
+}; /* CR_Vai */
+
+/* 'Saurashtra': Script */
+static const OnigCodePoint CR_Saurashtra[] = {
+ 2,
+ 0xa880, 0xa8c4,
+ 0xa8ce, 0xa8d9,
+}; /* CR_Saurashtra */
+
+/* 'Kayah_Li': Script */
+static const OnigCodePoint CR_Kayah_Li[] = {
+ 1,
+ 0xa900, 0xa92f,
+}; /* CR_Kayah_Li */
+
+/* 'Rejang': Script */
+static const OnigCodePoint CR_Rejang[] = {
+ 2,
+ 0xa930, 0xa953,
+ 0xa95f, 0xa95f,
+}; /* CR_Rejang */
+
+/* 'Lycian': Script */
+static const OnigCodePoint CR_Lycian[] = {
+ 1,
+ 0x10280, 0x1029c,
+}; /* CR_Lycian */
+
+/* 'Carian': Script */
+static const OnigCodePoint CR_Carian[] = {
+ 1,
+ 0x102a0, 0x102d0,
+}; /* CR_Carian */
+
+/* 'Lydian': Script */
+static const OnigCodePoint CR_Lydian[] = {
+ 2,
+ 0x10920, 0x10939,
+ 0x1093f, 0x1093f,
+}; /* CR_Lydian */
+
+/* 'Cham': Script */
+static const OnigCodePoint CR_Cham[] = {
+ 4,
+ 0xaa00, 0xaa36,
+ 0xaa40, 0xaa4d,
+ 0xaa50, 0xaa59,
+ 0xaa5c, 0xaa5f,
+}; /* CR_Cham */
+
+/* 'Tai_Tham': Script */
+static const OnigCodePoint CR_Tai_Tham[] = {
+ 5,
+ 0x1a20, 0x1a5e,
+ 0x1a60, 0x1a7c,
+ 0x1a7f, 0x1a89,
+ 0x1a90, 0x1a99,
+ 0x1aa0, 0x1aad,
+}; /* CR_Tai_Tham */
+
+/* 'Tai_Viet': Script */
+static const OnigCodePoint CR_Tai_Viet[] = {
+ 2,
+ 0xaa80, 0xaac2,
+ 0xaadb, 0xaadf,
+}; /* CR_Tai_Viet */
+
+/* 'Avestan': Script */
+static const OnigCodePoint CR_Avestan[] = {
+ 2,
+ 0x10b00, 0x10b35,
+ 0x10b39, 0x10b3f,
+}; /* CR_Avestan */
+
+/* 'Egyptian_Hieroglyphs': Script */
+static const OnigCodePoint CR_Egyptian_Hieroglyphs[] = {
+ 1,
+ 0x13000, 0x1342e,
+}; /* CR_Egyptian_Hieroglyphs */
+
+/* 'Samaritan': Script */
+static const OnigCodePoint CR_Samaritan[] = {
+ 2,
+ 0x0800, 0x082d,
+ 0x0830, 0x083e,
+}; /* CR_Samaritan */
+
+/* 'Lisu': Script */
+static const OnigCodePoint CR_Lisu[] = {
+ 1,
+ 0xa4d0, 0xa4ff,
+}; /* CR_Lisu */
+
+/* 'Bamum': Script */
+static const OnigCodePoint CR_Bamum[] = {
+ 2,
+ 0xa6a0, 0xa6f7,
+ 0x16800, 0x16a38,
+}; /* CR_Bamum */
+
+/* 'Javanese': Script */
+static const OnigCodePoint CR_Javanese[] = {
+ 3,
+ 0xa980, 0xa9cd,
+ 0xa9cf, 0xa9d9,
+ 0xa9de, 0xa9df,
+}; /* CR_Javanese */
+
+/* 'Meetei_Mayek': Script */
+static const OnigCodePoint CR_Meetei_Mayek[] = {
+ 2,
+ 0xabc0, 0xabed,
+ 0xabf0, 0xabf9,
+}; /* CR_Meetei_Mayek */
+
+/* 'Imperial_Aramaic': Script */
+static const OnigCodePoint CR_Imperial_Aramaic[] = {
+ 2,
+ 0x10840, 0x10855,
+ 0x10857, 0x1085f,
+}; /* CR_Imperial_Aramaic */
+
+/* 'Old_South_Arabian': Script */
+static const OnigCodePoint CR_Old_South_Arabian[] = {
+ 1,
+ 0x10a60, 0x10a7f,
+}; /* CR_Old_South_Arabian */
+
+/* 'Inscriptional_Parthian': Script */
+static const OnigCodePoint CR_Inscriptional_Parthian[] = {
+ 2,
+ 0x10b40, 0x10b55,
+ 0x10b58, 0x10b5f,
+}; /* CR_Inscriptional_Parthian */
+
+/* 'Inscriptional_Pahlavi': Script */
+static const OnigCodePoint CR_Inscriptional_Pahlavi[] = {
+ 2,
+ 0x10b60, 0x10b72,
+ 0x10b78, 0x10b7f,
+}; /* CR_Inscriptional_Pahlavi */
+
+/* 'Old_Turkic': Script */
+static const OnigCodePoint CR_Old_Turkic[] = {
+ 1,
+ 0x10c00, 0x10c48,
+}; /* CR_Old_Turkic */
+
+/* 'Kaithi': Script */
+static const OnigCodePoint CR_Kaithi[] = {
+ 1,
+ 0x11080, 0x110c1,
+}; /* CR_Kaithi */
+
+/* 'Batak': Script */
+static const OnigCodePoint CR_Batak[] = {
+ 2,
+ 0x1bc0, 0x1bf3,
+ 0x1bfc, 0x1bff,
+}; /* CR_Batak */
+
+/* 'Brahmi': Script */
+static const OnigCodePoint CR_Brahmi[] = {
+ 2,
+ 0x11000, 0x1104d,
+ 0x11052, 0x1106f,
+}; /* CR_Brahmi */
+
+/* 'Mandaic': Script */
+static const OnigCodePoint CR_Mandaic[] = {
+ 2,
+ 0x0840, 0x085b,
+ 0x085e, 0x085e,
+}; /* CR_Mandaic */
+
+/* 'White_Space': Binary Property */
+static const OnigCodePoint CR_White_Space[] = {
+ 11,
+ 0x0009, 0x000d,
+ 0x0020, 0x0020,
+ 0x0085, 0x0085,
+ 0x00a0, 0x00a0,
+ 0x1680, 0x1680,
+ 0x180e, 0x180e,
+ 0x2000, 0x200a,
+ 0x2028, 0x2029,
+ 0x202f, 0x202f,
+ 0x205f, 0x205f,
+ 0x3000, 0x3000,
+}; /* CR_White_Space */
+
+/* 'Bidi_Control': Binary Property */
+static const OnigCodePoint CR_Bidi_Control[] = {
+ 2,
+ 0x200e, 0x200f,
+ 0x202a, 0x202e,
+}; /* CR_Bidi_Control */
+
+/* 'Join_Control': Binary Property */
+static const OnigCodePoint CR_Join_Control[] = {
+ 1,
+ 0x200c, 0x200d,
+}; /* CR_Join_Control */
+
+/* 'Dash': Binary Property */
+static const OnigCodePoint CR_Dash[] = {
+ 19,
+ 0x002d, 0x002d,
+ 0x058a, 0x058a,
+ 0x05be, 0x05be,
+ 0x1400, 0x1400,
+ 0x1806, 0x1806,
+ 0x2010, 0x2015,
+ 0x2053, 0x2053,
+ 0x207b, 0x207b,
+ 0x208b, 0x208b,
+ 0x2212, 0x2212,
+ 0x2e17, 0x2e17,
+ 0x2e1a, 0x2e1a,
+ 0x301c, 0x301c,
+ 0x3030, 0x3030,
+ 0x30a0, 0x30a0,
+ 0xfe31, 0xfe32,
+ 0xfe58, 0xfe58,
+ 0xfe63, 0xfe63,
+ 0xff0d, 0xff0d,
+}; /* CR_Dash */
+
+/* 'Hyphen': Binary Property */
+static const OnigCodePoint CR_Hyphen[] = {
+ 10,
+ 0x002d, 0x002d,
+ 0x00ad, 0x00ad,
+ 0x058a, 0x058a,
+ 0x1806, 0x1806,
+ 0x2010, 0x2011,
+ 0x2e17, 0x2e17,
+ 0x30fb, 0x30fb,
+ 0xfe63, 0xfe63,
+ 0xff0d, 0xff0d,
+ 0xff65, 0xff65,
+}; /* CR_Hyphen */
+
+/* 'Quotation_Mark': Binary Property */
+static const OnigCodePoint CR_Quotation_Mark[] = {
+ 12,
+ 0x0022, 0x0022,
+ 0x0027, 0x0027,
+ 0x00ab, 0x00ab,
+ 0x00bb, 0x00bb,
+ 0x2018, 0x201f,
+ 0x2039, 0x203a,
+ 0x300c, 0x300f,
+ 0x301d, 0x301f,
+ 0xfe41, 0xfe44,
+ 0xff02, 0xff02,
+ 0xff07, 0xff07,
+ 0xff62, 0xff63,
+}; /* CR_Quotation_Mark */
+
+/* 'Terminal_Punctuation': Binary Property */
+static const OnigCodePoint CR_Terminal_Punctuation[] = {
+ 67,
+ 0x0021, 0x0021,
+ 0x002c, 0x002c,
+ 0x002e, 0x002e,
+ 0x003a, 0x003b,
+ 0x003f, 0x003f,
+ 0x037e, 0x037e,
+ 0x0387, 0x0387,
+ 0x0589, 0x0589,
+ 0x05c3, 0x05c3,
+ 0x060c, 0x060c,
+ 0x061b, 0x061b,
+ 0x061f, 0x061f,
+ 0x06d4, 0x06d4,
+ 0x0700, 0x070a,
+ 0x070c, 0x070c,
+ 0x07f8, 0x07f9,
+ 0x0830, 0x083e,
+ 0x085e, 0x085e,
+ 0x0964, 0x0965,
+ 0x0e5a, 0x0e5b,
+ 0x0f08, 0x0f08,
+ 0x0f0d, 0x0f12,
+ 0x104a, 0x104b,
+ 0x1361, 0x1368,
+ 0x166d, 0x166e,
+ 0x16eb, 0x16ed,
+ 0x17d4, 0x17d6,
+ 0x17da, 0x17da,
+ 0x1802, 0x1805,
+ 0x1808, 0x1809,
+ 0x1944, 0x1945,
+ 0x1aa8, 0x1aab,
+ 0x1b5a, 0x1b5b,
+ 0x1b5d, 0x1b5f,
+ 0x1c3b, 0x1c3f,
+ 0x1c7e, 0x1c7f,
+ 0x203c, 0x203d,
+ 0x2047, 0x2049,
+ 0x2e2e, 0x2e2e,
+ 0x3001, 0x3002,
+ 0xa4fe, 0xa4ff,
+ 0xa60d, 0xa60f,
+ 0xa6f3, 0xa6f7,
+ 0xa876, 0xa877,
+ 0xa8ce, 0xa8cf,
+ 0xa92f, 0xa92f,
+ 0xa9c7, 0xa9c9,
+ 0xaa5d, 0xaa5f,
+ 0xaadf, 0xaadf,
+ 0xabeb, 0xabeb,
+ 0xfe50, 0xfe52,
+ 0xfe54, 0xfe57,
+ 0xff01, 0xff01,
+ 0xff0c, 0xff0c,
+ 0xff0e, 0xff0e,
+ 0xff1a, 0xff1b,
+ 0xff1f, 0xff1f,
+ 0xff61, 0xff61,
+ 0xff64, 0xff64,
+ 0x1039f, 0x1039f,
+ 0x103d0, 0x103d0,
+ 0x10857, 0x10857,
+ 0x1091f, 0x1091f,
+ 0x10b3a, 0x10b3f,
+ 0x11047, 0x1104d,
+ 0x110be, 0x110c1,
+ 0x12470, 0x12473,
+}; /* CR_Terminal_Punctuation */
+
+/* 'Other_Math': Binary Property */
+static const OnigCodePoint CR_Other_Math[] = {
+ 100,
+ 0x005e, 0x005e,
+ 0x03d0, 0x03d2,
+ 0x03d5, 0x03d5,
+ 0x03f0, 0x03f1,
+ 0x03f4, 0x03f5,
+ 0x2016, 0x2016,
+ 0x2032, 0x2034,
+ 0x2040, 0x2040,
+ 0x2061, 0x2064,
+ 0x207d, 0x207e,
+ 0x208d, 0x208e,
+ 0x20d0, 0x20dc,
+ 0x20e1, 0x20e1,
+ 0x20e5, 0x20e6,
+ 0x20eb, 0x20ef,
+ 0x2102, 0x2102,
+ 0x2107, 0x2107,
+ 0x210a, 0x2113,
+ 0x2115, 0x2115,
+ 0x2119, 0x211d,
+ 0x2124, 0x2124,
+ 0x2128, 0x2129,
+ 0x212c, 0x212d,
+ 0x212f, 0x2131,
+ 0x2133, 0x2138,
+ 0x213c, 0x213f,
+ 0x2145, 0x2149,
+ 0x2195, 0x2199,
+ 0x219c, 0x219f,
+ 0x21a1, 0x21a2,
+ 0x21a4, 0x21a5,
+ 0x21a7, 0x21a7,
+ 0x21a9, 0x21ad,
+ 0x21b0, 0x21b1,
+ 0x21b6, 0x21b7,
+ 0x21bc, 0x21cd,
+ 0x21d0, 0x21d1,
+ 0x21d3, 0x21d3,
+ 0x21d5, 0x21db,
+ 0x21dd, 0x21dd,
+ 0x21e4, 0x21e5,
+ 0x23b4, 0x23b5,
+ 0x23b7, 0x23b7,
+ 0x23d0, 0x23d0,
+ 0x23e2, 0x23e2,
+ 0x25a0, 0x25a1,
+ 0x25ae, 0x25b6,
+ 0x25bc, 0x25c0,
+ 0x25c6, 0x25c7,
+ 0x25ca, 0x25cb,
+ 0x25cf, 0x25d3,
+ 0x25e2, 0x25e2,
+ 0x25e4, 0x25e4,
+ 0x25e7, 0x25ec,
+ 0x2605, 0x2606,
+ 0x2640, 0x2640,
+ 0x2642, 0x2642,
+ 0x2660, 0x2663,
+ 0x266d, 0x266e,
+ 0x27c5, 0x27c6,
+ 0x27e6, 0x27ef,
+ 0x2983, 0x2998,
+ 0x29d8, 0x29db,
+ 0x29fc, 0x29fd,
+ 0xfe61, 0xfe61,
+ 0xfe63, 0xfe63,
+ 0xfe68, 0xfe68,
+ 0xff3c, 0xff3c,
+ 0xff3e, 0xff3e,
+ 0x1d400, 0x1d454,
+ 0x1d456, 0x1d49c,
+ 0x1d49e, 0x1d49f,
+ 0x1d4a2, 0x1d4a2,
+ 0x1d4a5, 0x1d4a6,
+ 0x1d4a9, 0x1d4ac,
+ 0x1d4ae, 0x1d4b9,
+ 0x1d4bb, 0x1d4bb,
+ 0x1d4bd, 0x1d4c3,
+ 0x1d4c5, 0x1d505,
+ 0x1d507, 0x1d50a,
+ 0x1d50d, 0x1d514,
+ 0x1d516, 0x1d51c,
+ 0x1d51e, 0x1d539,
+ 0x1d53b, 0x1d53e,
+ 0x1d540, 0x1d544,
+ 0x1d546, 0x1d546,
+ 0x1d54a, 0x1d550,
+ 0x1d552, 0x1d6a5,
+ 0x1d6a8, 0x1d6c0,
+ 0x1d6c2, 0x1d6da,
+ 0x1d6dc, 0x1d6fa,
+ 0x1d6fc, 0x1d714,
+ 0x1d716, 0x1d734,
+ 0x1d736, 0x1d74e,
+ 0x1d750, 0x1d76e,
+ 0x1d770, 0x1d788,
+ 0x1d78a, 0x1d7a8,
+ 0x1d7aa, 0x1d7c2,
+ 0x1d7c4, 0x1d7cb,
+ 0x1d7ce, 0x1d7ff,
+}; /* CR_Other_Math */
+
+/* 'Hex_Digit': Binary Property */
+static const OnigCodePoint CR_Hex_Digit[] = {
+ 6,
+ 0x0030, 0x0039,
+ 0x0041, 0x0046,
+ 0x0061, 0x0066,
+ 0xff10, 0xff19,
+ 0xff21, 0xff26,
+ 0xff41, 0xff46,
+}; /* CR_Hex_Digit */
+
+/* 'ASCII_Hex_Digit': Binary Property */
+static const OnigCodePoint CR_ASCII_Hex_Digit[] = {
+ 3,
+ 0x0030, 0x0039,
+ 0x0041, 0x0046,
+ 0x0061, 0x0066,
+}; /* CR_ASCII_Hex_Digit */
+
+/* 'Other_Alphabetic': Binary Property */
+static const OnigCodePoint CR_Other_Alphabetic[] = {
+ 145,
+ 0x0345, 0x0345,
+ 0x05b0, 0x05bd,
+ 0x05bf, 0x05bf,
+ 0x05c1, 0x05c2,
+ 0x05c4, 0x05c5,
+ 0x05c7, 0x05c7,
+ 0x0610, 0x061a,
+ 0x064b, 0x0657,
+ 0x0659, 0x065f,
+ 0x0670, 0x0670,
+ 0x06d6, 0x06dc,
+ 0x06e1, 0x06e4,
+ 0x06e7, 0x06e8,
+ 0x06ed, 0x06ed,
+ 0x0711, 0x0711,
+ 0x0730, 0x073f,
+ 0x07a6, 0x07b0,
+ 0x0816, 0x0817,
+ 0x081b, 0x0823,
+ 0x0825, 0x0827,
+ 0x0829, 0x082c,
+ 0x0900, 0x0903,
+ 0x093a, 0x093b,
+ 0x093e, 0x094c,
+ 0x094e, 0x094f,
+ 0x0955, 0x0957,
+ 0x0962, 0x0963,
+ 0x0981, 0x0983,
+ 0x09be, 0x09c4,
+ 0x09c7, 0x09c8,
+ 0x09cb, 0x09cc,
+ 0x09d7, 0x09d7,
+ 0x09e2, 0x09e3,
+ 0x0a01, 0x0a03,
+ 0x0a3e, 0x0a42,
+ 0x0a47, 0x0a48,
+ 0x0a4b, 0x0a4c,
+ 0x0a51, 0x0a51,
+ 0x0a70, 0x0a71,
+ 0x0a75, 0x0a75,
+ 0x0a81, 0x0a83,
+ 0x0abe, 0x0ac5,
+ 0x0ac7, 0x0ac9,
+ 0x0acb, 0x0acc,
+ 0x0ae2, 0x0ae3,
+ 0x0b01, 0x0b03,
+ 0x0b3e, 0x0b44,
+ 0x0b47, 0x0b48,
+ 0x0b4b, 0x0b4c,
+ 0x0b56, 0x0b57,
+ 0x0b62, 0x0b63,
+ 0x0b82, 0x0b82,
+ 0x0bbe, 0x0bc2,
+ 0x0bc6, 0x0bc8,
+ 0x0bca, 0x0bcc,
+ 0x0bd7, 0x0bd7,
+ 0x0c01, 0x0c03,
+ 0x0c3e, 0x0c44,
+ 0x0c46, 0x0c48,
+ 0x0c4a, 0x0c4c,
+ 0x0c55, 0x0c56,
+ 0x0c62, 0x0c63,
+ 0x0c82, 0x0c83,
+ 0x0cbe, 0x0cc4,
+ 0x0cc6, 0x0cc8,
+ 0x0cca, 0x0ccc,
+ 0x0cd5, 0x0cd6,
+ 0x0ce2, 0x0ce3,
+ 0x0d02, 0x0d03,
+ 0x0d3e, 0x0d44,
+ 0x0d46, 0x0d48,
+ 0x0d4a, 0x0d4c,
+ 0x0d57, 0x0d57,
+ 0x0d62, 0x0d63,
+ 0x0d82, 0x0d83,
+ 0x0dcf, 0x0dd4,
+ 0x0dd6, 0x0dd6,
+ 0x0dd8, 0x0ddf,
+ 0x0df2, 0x0df3,
+ 0x0e31, 0x0e31,
+ 0x0e34, 0x0e3a,
+ 0x0e4d, 0x0e4d,
+ 0x0eb1, 0x0eb1,
+ 0x0eb4, 0x0eb9,
+ 0x0ebb, 0x0ebc,
+ 0x0ecd, 0x0ecd,
+ 0x0f71, 0x0f81,
+ 0x0f8d, 0x0f97,
+ 0x0f99, 0x0fbc,
+ 0x102b, 0x1036,
+ 0x1038, 0x1038,
+ 0x103b, 0x103e,
+ 0x1056, 0x1059,
+ 0x105e, 0x1060,
+ 0x1062, 0x1062,
+ 0x1067, 0x1068,
+ 0x1071, 0x1074,
+ 0x1082, 0x1086,
+ 0x109c, 0x109d,
+ 0x135f, 0x135f,
+ 0x1712, 0x1713,
+ 0x1732, 0x1733,
+ 0x1752, 0x1753,
+ 0x1772, 0x1773,
+ 0x17b6, 0x17c8,
+ 0x18a9, 0x18a9,
+ 0x1920, 0x192b,
+ 0x1930, 0x1938,
+ 0x19b0, 0x19c0,
+ 0x19c8, 0x19c9,
+ 0x1a17, 0x1a1b,
+ 0x1a55, 0x1a5e,
+ 0x1a61, 0x1a74,
+ 0x1b00, 0x1b04,
+ 0x1b35, 0x1b43,
+ 0x1b80, 0x1b82,
+ 0x1ba1, 0x1ba9,
+ 0x1be7, 0x1bf1,
+ 0x1c24, 0x1c35,
+ 0x1cf2, 0x1cf2,
+ 0x24b6, 0x24e9,
+ 0x2de0, 0x2dff,
+ 0xa823, 0xa827,
+ 0xa880, 0xa881,
+ 0xa8b4, 0xa8c3,
+ 0xa926, 0xa92a,
+ 0xa947, 0xa952,
+ 0xa980, 0xa983,
+ 0xa9b4, 0xa9bf,
+ 0xaa29, 0xaa36,
+ 0xaa43, 0xaa43,
+ 0xaa4c, 0xaa4d,
+ 0xaab0, 0xaab0,
+ 0xaab2, 0xaab4,
+ 0xaab7, 0xaab8,
+ 0xaabe, 0xaabe,
+ 0xabe3, 0xabea,
+ 0xfb1e, 0xfb1e,
+ 0x10a01, 0x10a03,
+ 0x10a05, 0x10a06,
+ 0x10a0c, 0x10a0f,
+ 0x11000, 0x11002,
+ 0x11038, 0x11045,
+ 0x11082, 0x11082,
+ 0x110b0, 0x110b8,
+}; /* CR_Other_Alphabetic */
+
+/* 'Ideographic': Binary Property */
+static const OnigCodePoint CR_Ideographic[] = {
+ 12,
+ 0x3006, 0x3007,
+ 0x3021, 0x3029,
+ 0x3038, 0x303a,
+ 0x3400, 0x4db5,
+ 0x4e00, 0x9fcb,
+ 0xf900, 0xfa2d,
+ 0xfa30, 0xfa6d,
+ 0xfa70, 0xfad9,
+ 0x20000, 0x2a6d6,
+ 0x2a700, 0x2b734,
+ 0x2b740, 0x2b81d,
+ 0x2f800, 0x2fa1d,
+}; /* CR_Ideographic */
+
+/* 'Diacritic': Binary Property */
+static const OnigCodePoint CR_Diacritic[] = {
+ 117,
+ 0x005e, 0x005e,
+ 0x0060, 0x0060,
+ 0x00a8, 0x00a8,
+ 0x00af, 0x00af,
+ 0x00b4, 0x00b4,
+ 0x00b7, 0x00b8,
+ 0x02b0, 0x034e,
+ 0x0350, 0x0357,
+ 0x035d, 0x0362,
+ 0x0374, 0x0375,
+ 0x037a, 0x037a,
+ 0x0384, 0x0385,
+ 0x0483, 0x0487,
+ 0x0559, 0x0559,
+ 0x0591, 0x05a1,
+ 0x05a3, 0x05bd,
+ 0x05bf, 0x05bf,
+ 0x05c1, 0x05c2,
+ 0x05c4, 0x05c4,
+ 0x064b, 0x0652,
+ 0x0657, 0x0658,
+ 0x06df, 0x06e0,
+ 0x06e5, 0x06e6,
+ 0x06ea, 0x06ec,
+ 0x0730, 0x074a,
+ 0x07a6, 0x07b0,
+ 0x07eb, 0x07f5,
+ 0x0818, 0x0819,
+ 0x093c, 0x093c,
+ 0x094d, 0x094d,
+ 0x0951, 0x0954,
+ 0x0971, 0x0971,
+ 0x09bc, 0x09bc,
+ 0x09cd, 0x09cd,
+ 0x0a3c, 0x0a3c,
+ 0x0a4d, 0x0a4d,
+ 0x0abc, 0x0abc,
+ 0x0acd, 0x0acd,
+ 0x0b3c, 0x0b3c,
+ 0x0b4d, 0x0b4d,
+ 0x0bcd, 0x0bcd,
+ 0x0c4d, 0x0c4d,
+ 0x0cbc, 0x0cbc,
+ 0x0ccd, 0x0ccd,
+ 0x0d4d, 0x0d4d,
+ 0x0dca, 0x0dca,
+ 0x0e47, 0x0e4c,
+ 0x0e4e, 0x0e4e,
+ 0x0ec8, 0x0ecc,
+ 0x0f18, 0x0f19,
+ 0x0f35, 0x0f35,
+ 0x0f37, 0x0f37,
+ 0x0f39, 0x0f39,
+ 0x0f3e, 0x0f3f,
+ 0x0f82, 0x0f84,
+ 0x0f86, 0x0f87,
+ 0x0fc6, 0x0fc6,
+ 0x1037, 0x1037,
+ 0x1039, 0x103a,
+ 0x1087, 0x108d,
+ 0x108f, 0x108f,
+ 0x109a, 0x109b,
+ 0x17c9, 0x17d3,
+ 0x17dd, 0x17dd,
+ 0x1939, 0x193b,
+ 0x1a75, 0x1a7c,
+ 0x1a7f, 0x1a7f,
+ 0x1b34, 0x1b34,
+ 0x1b44, 0x1b44,
+ 0x1b6b, 0x1b73,
+ 0x1baa, 0x1baa,
+ 0x1c36, 0x1c37,
+ 0x1c78, 0x1c7d,
+ 0x1cd0, 0x1ce8,
+ 0x1ced, 0x1ced,
+ 0x1d2c, 0x1d6a,
+ 0x1dc4, 0x1dcf,
+ 0x1dfd, 0x1dff,
+ 0x1fbd, 0x1fbd,
+ 0x1fbf, 0x1fc1,
+ 0x1fcd, 0x1fcf,
+ 0x1fdd, 0x1fdf,
+ 0x1fed, 0x1fef,
+ 0x1ffd, 0x1ffe,
+ 0x2cef, 0x2cf1,
+ 0x2e2f, 0x2e2f,
+ 0x302a, 0x302f,
+ 0x3099, 0x309c,
+ 0x30fc, 0x30fc,
+ 0xa66f, 0xa66f,
+ 0xa67c, 0xa67d,
+ 0xa67f, 0xa67f,
+ 0xa6f0, 0xa6f1,
+ 0xa717, 0xa721,
+ 0xa788, 0xa788,
+ 0xa8c4, 0xa8c4,
+ 0xa8e0, 0xa8f1,
+ 0xa92b, 0xa92e,
+ 0xa953, 0xa953,
+ 0xa9b3, 0xa9b3,
+ 0xa9c0, 0xa9c0,
+ 0xaa7b, 0xaa7b,
+ 0xaabf, 0xaac2,
+ 0xabec, 0xabed,
+ 0xfb1e, 0xfb1e,
+ 0xfe20, 0xfe26,
+ 0xff3e, 0xff3e,
+ 0xff40, 0xff40,
+ 0xff70, 0xff70,
+ 0xff9e, 0xff9f,
+ 0xffe3, 0xffe3,
+ 0x110b9, 0x110ba,
+ 0x1d167, 0x1d169,
+ 0x1d16d, 0x1d172,
+ 0x1d17b, 0x1d182,
+ 0x1d185, 0x1d18b,
+ 0x1d1aa, 0x1d1ad,
+}; /* CR_Diacritic */
+
+/* 'Extender': Binary Property */
+static const OnigCodePoint CR_Extender[] = {
+ 20,
+ 0x00b7, 0x00b7,
+ 0x02d0, 0x02d1,
+ 0x0640, 0x0640,
+ 0x07fa, 0x07fa,
+ 0x0e46, 0x0e46,
+ 0x0ec6, 0x0ec6,
+ 0x1843, 0x1843,
+ 0x1aa7, 0x1aa7,
+ 0x1c36, 0x1c36,
+ 0x1c7b, 0x1c7b,
+ 0x3005, 0x3005,
+ 0x3031, 0x3035,
+ 0x309d, 0x309e,
+ 0x30fc, 0x30fe,
+ 0xa015, 0xa015,
+ 0xa60c, 0xa60c,
+ 0xa9cf, 0xa9cf,
+ 0xaa70, 0xaa70,
+ 0xaadd, 0xaadd,
+ 0xff70, 0xff70,
+}; /* CR_Extender */
+
+/* 'Other_Lowercase': Binary Property */
+static const OnigCodePoint CR_Other_Lowercase[] = {
+ 13,
+ 0x02b0, 0x02b8,
+ 0x02c0, 0x02c1,
+ 0x02e0, 0x02e4,
+ 0x0345, 0x0345,
+ 0x037a, 0x037a,
+ 0x1d2c, 0x1d61,
+ 0x1d78, 0x1d78,
+ 0x1d9b, 0x1dbf,
+ 0x2090, 0x2094,
+ 0x2170, 0x217f,
+ 0x24d0, 0x24e9,
+ 0x2c7d, 0x2c7d,
+ 0xa770, 0xa770,
+}; /* CR_Other_Lowercase */
+
+/* 'Other_Uppercase': Binary Property */
+static const OnigCodePoint CR_Other_Uppercase[] = {
+ 2,
+ 0x2160, 0x216f,
+ 0x24b6, 0x24cf,
+}; /* CR_Other_Uppercase */
+
+/* 'Noncharacter_Code_Point': Binary Property */
+static const OnigCodePoint CR_Noncharacter_Code_Point[] = {
+ 18,
+ 0xfdd0, 0xfdef,
+ 0xfffe, 0xffff,
+ 0x1fffe, 0x1ffff,
+ 0x2fffe, 0x2ffff,
+ 0x3fffe, 0x3ffff,
+ 0x4fffe, 0x4ffff,
+ 0x5fffe, 0x5ffff,
+ 0x6fffe, 0x6ffff,
+ 0x7fffe, 0x7ffff,
+ 0x8fffe, 0x8ffff,
+ 0x9fffe, 0x9ffff,
+ 0xafffe, 0xaffff,
+ 0xbfffe, 0xbffff,
+ 0xcfffe, 0xcffff,
+ 0xdfffe, 0xdffff,
+ 0xefffe, 0xeffff,
+ 0xffffe, 0xfffff,
+ 0x10fffe, 0x10ffff,
+}; /* CR_Noncharacter_Code_Point */
+
+/* 'Other_Grapheme_Extend': Binary Property */
+static const OnigCodePoint CR_Other_Grapheme_Extend[] = {
+ 16,
+ 0x09be, 0x09be,
+ 0x09d7, 0x09d7,
+ 0x0b3e, 0x0b3e,
+ 0x0b57, 0x0b57,
+ 0x0bbe, 0x0bbe,
+ 0x0bd7, 0x0bd7,
+ 0x0cc2, 0x0cc2,
+ 0x0cd5, 0x0cd6,
+ 0x0d3e, 0x0d3e,
+ 0x0d57, 0x0d57,
+ 0x0dcf, 0x0dcf,
+ 0x0ddf, 0x0ddf,
+ 0x200c, 0x200d,
+ 0xff9e, 0xff9f,
+ 0x1d165, 0x1d165,
+ 0x1d16e, 0x1d172,
+}; /* CR_Other_Grapheme_Extend */
+
+/* 'IDS_Binary_Operator': Binary Property */
+static const OnigCodePoint CR_IDS_Binary_Operator[] = {
+ 2,
+ 0x2ff0, 0x2ff1,
+ 0x2ff4, 0x2ffb,
+}; /* CR_IDS_Binary_Operator */
+
+/* 'IDS_Trinary_Operator': Binary Property */
+static const OnigCodePoint CR_IDS_Trinary_Operator[] = {
+ 1,
+ 0x2ff2, 0x2ff3,
+}; /* CR_IDS_Trinary_Operator */
+
+/* 'Radical': Binary Property */
+static const OnigCodePoint CR_Radical[] = {
+ 3,
+ 0x2e80, 0x2e99,
+ 0x2e9b, 0x2ef3,
+ 0x2f00, 0x2fd5,
+}; /* CR_Radical */
+
+/* 'Unified_Ideograph': Binary Property */
+static const OnigCodePoint CR_Unified_Ideograph[] = {
+ 12,
+ 0x3400, 0x4db5,
+ 0x4e00, 0x9fcb,
+ 0xfa0e, 0xfa0f,
+ 0xfa11, 0xfa11,
+ 0xfa13, 0xfa14,
+ 0xfa1f, 0xfa1f,
+ 0xfa21, 0xfa21,
+ 0xfa23, 0xfa24,
+ 0xfa27, 0xfa29,
+ 0x20000, 0x2a6d6,
+ 0x2a700, 0x2b734,
+ 0x2b740, 0x2b81d,
+}; /* CR_Unified_Ideograph */
+
+/* 'Other_Default_Ignorable_Code_Point': Binary Property */
+static const OnigCodePoint CR_Other_Default_Ignorable_Code_Point[] = {
+ 10,
+ 0x034f, 0x034f,
+ 0x115f, 0x1160,
+ 0x2065, 0x2069,
+ 0x3164, 0x3164,
+ 0xffa0, 0xffa0,
+ 0xfff0, 0xfff8,
+ 0xe0000, 0xe0000,
+ 0xe0002, 0xe001f,
+ 0xe0080, 0xe00ff,
+ 0xe01f0, 0xe0fff,
+}; /* CR_Other_Default_Ignorable_Code_Point */
+
+/* 'Deprecated': Binary Property */
+static const OnigCodePoint CR_Deprecated[] = {
+ 9,
+ 0x0149, 0x0149,
+ 0x0673, 0x0673,
+ 0x0f77, 0x0f77,
+ 0x0f79, 0x0f79,
+ 0x17a3, 0x17a4,
+ 0x206a, 0x206f,
+ 0x2329, 0x232a,
+ 0xe0001, 0xe0001,
+ 0xe0020, 0xe007f,
+}; /* CR_Deprecated */
+
+/* 'Soft_Dotted': Binary Property */
+static const OnigCodePoint CR_Soft_Dotted[] = {
+ 31,
+ 0x0069, 0x006a,
+ 0x012f, 0x012f,
+ 0x0249, 0x0249,
+ 0x0268, 0x0268,
+ 0x029d, 0x029d,
+ 0x02b2, 0x02b2,
+ 0x03f3, 0x03f3,
+ 0x0456, 0x0456,
+ 0x0458, 0x0458,
+ 0x1d62, 0x1d62,
+ 0x1d96, 0x1d96,
+ 0x1da4, 0x1da4,
+ 0x1da8, 0x1da8,
+ 0x1e2d, 0x1e2d,
+ 0x1ecb, 0x1ecb,
+ 0x2071, 0x2071,
+ 0x2148, 0x2149,
+ 0x2c7c, 0x2c7c,
+ 0x1d422, 0x1d423,
+ 0x1d456, 0x1d457,
+ 0x1d48a, 0x1d48b,
+ 0x1d4be, 0x1d4bf,
+ 0x1d4f2, 0x1d4f3,
+ 0x1d526, 0x1d527,
+ 0x1d55a, 0x1d55b,
+ 0x1d58e, 0x1d58f,
+ 0x1d5c2, 0x1d5c3,
+ 0x1d5f6, 0x1d5f7,
+ 0x1d62a, 0x1d62b,
+ 0x1d65e, 0x1d65f,
+ 0x1d692, 0x1d693,
+}; /* CR_Soft_Dotted */
+
+/* 'Logical_Order_Exception': Binary Property */
+static const OnigCodePoint CR_Logical_Order_Exception[] = {
+ 5,
+ 0x0e40, 0x0e44,
+ 0x0ec0, 0x0ec4,
+ 0xaab5, 0xaab6,
+ 0xaab9, 0xaab9,
+ 0xaabb, 0xaabc,
+}; /* CR_Logical_Order_Exception */
+
+/* 'Other_ID_Start': Binary Property */
+static const OnigCodePoint CR_Other_ID_Start[] = {
+ 3,
+ 0x2118, 0x2118,
+ 0x212e, 0x212e,
+ 0x309b, 0x309c,
+}; /* CR_Other_ID_Start */
+
+/* 'Other_ID_Continue': Binary Property */
+static const OnigCodePoint CR_Other_ID_Continue[] = {
+ 4,
+ 0x00b7, 0x00b7,
+ 0x0387, 0x0387,
+ 0x1369, 0x1371,
+ 0x19da, 0x19da,
+}; /* CR_Other_ID_Continue */
+
+/* 'STerm': Binary Property */
+static const OnigCodePoint CR_STerm[] = {
+ 47,
+ 0x0021, 0x0021,
+ 0x002e, 0x002e,
+ 0x003f, 0x003f,
+ 0x055c, 0x055c,
+ 0x055e, 0x055e,
+ 0x0589, 0x0589,
+ 0x061f, 0x061f,
+ 0x06d4, 0x06d4,
+ 0x0700, 0x0702,
+ 0x07f9, 0x07f9,
+ 0x0964, 0x0965,
+ 0x104a, 0x104b,
+ 0x1362, 0x1362,
+ 0x1367, 0x1368,
+ 0x166e, 0x166e,
+ 0x1735, 0x1736,
+ 0x1803, 0x1803,
+ 0x1809, 0x1809,
+ 0x1944, 0x1945,
+ 0x1aa8, 0x1aab,
+ 0x1b5a, 0x1b5b,
+ 0x1b5e, 0x1b5f,
+ 0x1c3b, 0x1c3c,
+ 0x1c7e, 0x1c7f,
+ 0x203c, 0x203d,
+ 0x2047, 0x2049,
+ 0x2e2e, 0x2e2e,
+ 0x3002, 0x3002,
+ 0xa4ff, 0xa4ff,
+ 0xa60e, 0xa60f,
+ 0xa6f3, 0xa6f3,
+ 0xa6f7, 0xa6f7,
+ 0xa876, 0xa877,
+ 0xa8ce, 0xa8cf,
+ 0xa92f, 0xa92f,
+ 0xa9c8, 0xa9c9,
+ 0xaa5d, 0xaa5f,
+ 0xabeb, 0xabeb,
+ 0xfe52, 0xfe52,
+ 0xfe56, 0xfe57,
+ 0xff01, 0xff01,
+ 0xff0e, 0xff0e,
+ 0xff1f, 0xff1f,
+ 0xff61, 0xff61,
+ 0x10a56, 0x10a57,
+ 0x11047, 0x11048,
+ 0x110be, 0x110c1,
+}; /* CR_STerm */
+
+/* 'Variation_Selector': Binary Property */
+static const OnigCodePoint CR_Variation_Selector[] = {
+ 3,
+ 0x180b, 0x180d,
+ 0xfe00, 0xfe0f,
+ 0xe0100, 0xe01ef,
+}; /* CR_Variation_Selector */
+
+/* 'Pattern_White_Space': Binary Property */
+static const OnigCodePoint CR_Pattern_White_Space[] = {
+ 5,
+ 0x0009, 0x000d,
+ 0x0020, 0x0020,
+ 0x0085, 0x0085,
+ 0x200e, 0x200f,
+ 0x2028, 0x2029,
+}; /* CR_Pattern_White_Space */
+
+/* 'Pattern_Syntax': Binary Property */
+static const OnigCodePoint CR_Pattern_Syntax[] = {
+ 28,
+ 0x0021, 0x002f,
+ 0x003a, 0x0040,
+ 0x005b, 0x005e,
+ 0x0060, 0x0060,
+ 0x007b, 0x007e,
+ 0x00a1, 0x00a7,
+ 0x00a9, 0x00a9,
+ 0x00ab, 0x00ac,
+ 0x00ae, 0x00ae,
+ 0x00b0, 0x00b1,
+ 0x00b6, 0x00b6,
+ 0x00bb, 0x00bb,
+ 0x00bf, 0x00bf,
+ 0x00d7, 0x00d7,
+ 0x00f7, 0x00f7,
+ 0x2010, 0x2027,
+ 0x2030, 0x203e,
+ 0x2041, 0x2053,
+ 0x2055, 0x205e,
+ 0x2190, 0x245f,
+ 0x2500, 0x2775,
+ 0x2794, 0x2bff,
+ 0x2e00, 0x2e7f,
+ 0x3001, 0x3003,
+ 0x3008, 0x3020,
+ 0x3030, 0x3030,
+ 0xfd3e, 0xfd3f,
+ 0xfe45, 0xfe46,
+}; /* CR_Pattern_Syntax */
+
+/* 'Unknown': Script */
+static const OnigCodePoint CR_Unknown[] = {
+ 499,
+ 0x0378, 0x0379,
+ 0x037f, 0x0383,
+ 0x038b, 0x038b,
+ 0x038d, 0x038d,
+ 0x03a2, 0x03a2,
+ 0x0528, 0x0530,
+ 0x0557, 0x0558,
+ 0x0560, 0x0560,
+ 0x0588, 0x0588,
+ 0x058b, 0x0590,
+ 0x05c8, 0x05cf,
+ 0x05eb, 0x05ef,
+ 0x05f5, 0x05ff,
+ 0x0604, 0x0605,
+ 0x061c, 0x061d,
+ 0x070e, 0x070e,
+ 0x074b, 0x074c,
+ 0x07b2, 0x07bf,
+ 0x07fb, 0x07ff,
+ 0x082e, 0x082f,
+ 0x083f, 0x083f,
+ 0x085c, 0x085d,
+ 0x085f, 0x08ff,
+ 0x0978, 0x0978,
+ 0x0980, 0x0980,
+ 0x0984, 0x0984,
+ 0x098d, 0x098e,
+ 0x0991, 0x0992,
+ 0x09a9, 0x09a9,
+ 0x09b1, 0x09b1,
+ 0x09b3, 0x09b5,
+ 0x09ba, 0x09bb,
+ 0x09c5, 0x09c6,
+ 0x09c9, 0x09ca,
+ 0x09cf, 0x09d6,
+ 0x09d8, 0x09db,
+ 0x09de, 0x09de,
+ 0x09e4, 0x09e5,
+ 0x09fc, 0x0a00,
+ 0x0a04, 0x0a04,
+ 0x0a0b, 0x0a0e,
+ 0x0a11, 0x0a12,
+ 0x0a29, 0x0a29,
+ 0x0a31, 0x0a31,
+ 0x0a34, 0x0a34,
+ 0x0a37, 0x0a37,
+ 0x0a3a, 0x0a3b,
+ 0x0a3d, 0x0a3d,
+ 0x0a43, 0x0a46,
+ 0x0a49, 0x0a4a,
+ 0x0a4e, 0x0a50,
+ 0x0a52, 0x0a58,
+ 0x0a5d, 0x0a5d,
+ 0x0a5f, 0x0a65,
+ 0x0a76, 0x0a80,
+ 0x0a84, 0x0a84,
+ 0x0a8e, 0x0a8e,
+ 0x0a92, 0x0a92,
+ 0x0aa9, 0x0aa9,
+ 0x0ab1, 0x0ab1,
+ 0x0ab4, 0x0ab4,
+ 0x0aba, 0x0abb,
+ 0x0ac6, 0x0ac6,
+ 0x0aca, 0x0aca,
+ 0x0ace, 0x0acf,
+ 0x0ad1, 0x0adf,
+ 0x0ae4, 0x0ae5,
+ 0x0af0, 0x0af0,
+ 0x0af2, 0x0b00,
+ 0x0b04, 0x0b04,
+ 0x0b0d, 0x0b0e,
+ 0x0b11, 0x0b12,
+ 0x0b29, 0x0b29,
+ 0x0b31, 0x0b31,
+ 0x0b34, 0x0b34,
+ 0x0b3a, 0x0b3b,
+ 0x0b45, 0x0b46,
+ 0x0b49, 0x0b4a,
+ 0x0b4e, 0x0b55,
+ 0x0b58, 0x0b5b,
+ 0x0b5e, 0x0b5e,
+ 0x0b64, 0x0b65,
+ 0x0b78, 0x0b81,
+ 0x0b84, 0x0b84,
+ 0x0b8b, 0x0b8d,
+ 0x0b91, 0x0b91,
+ 0x0b96, 0x0b98,
+ 0x0b9b, 0x0b9b,
+ 0x0b9d, 0x0b9d,
+ 0x0ba0, 0x0ba2,
+ 0x0ba5, 0x0ba7,
+ 0x0bab, 0x0bad,
+ 0x0bba, 0x0bbd,
+ 0x0bc3, 0x0bc5,
+ 0x0bc9, 0x0bc9,
+ 0x0bce, 0x0bcf,
+ 0x0bd1, 0x0bd6,
+ 0x0bd8, 0x0be5,
+ 0x0bfb, 0x0c00,
+ 0x0c04, 0x0c04,
+ 0x0c0d, 0x0c0d,
+ 0x0c11, 0x0c11,
+ 0x0c29, 0x0c29,
+ 0x0c34, 0x0c34,
+ 0x0c3a, 0x0c3c,
+ 0x0c45, 0x0c45,
+ 0x0c49, 0x0c49,
+ 0x0c4e, 0x0c54,
+ 0x0c57, 0x0c57,
+ 0x0c5a, 0x0c5f,
+ 0x0c64, 0x0c65,
+ 0x0c70, 0x0c77,
+ 0x0c80, 0x0c81,
+ 0x0c84, 0x0c84,
+ 0x0c8d, 0x0c8d,
+ 0x0c91, 0x0c91,
+ 0x0ca9, 0x0ca9,
+ 0x0cb4, 0x0cb4,
+ 0x0cba, 0x0cbb,
+ 0x0cc5, 0x0cc5,
+ 0x0cc9, 0x0cc9,
+ 0x0cce, 0x0cd4,
+ 0x0cd7, 0x0cdd,
+ 0x0cdf, 0x0cdf,
+ 0x0ce4, 0x0ce5,
+ 0x0cf0, 0x0cf0,
+ 0x0cf3, 0x0d01,
+ 0x0d04, 0x0d04,
+ 0x0d0d, 0x0d0d,
+ 0x0d11, 0x0d11,
+ 0x0d3b, 0x0d3c,
+ 0x0d45, 0x0d45,
+ 0x0d49, 0x0d49,
+ 0x0d4f, 0x0d56,
+ 0x0d58, 0x0d5f,
+ 0x0d64, 0x0d65,
+ 0x0d76, 0x0d78,
+ 0x0d80, 0x0d81,
+ 0x0d84, 0x0d84,
+ 0x0d97, 0x0d99,
+ 0x0db2, 0x0db2,
+ 0x0dbc, 0x0dbc,
+ 0x0dbe, 0x0dbf,
+ 0x0dc7, 0x0dc9,
+ 0x0dcb, 0x0dce,
+ 0x0dd5, 0x0dd5,
+ 0x0dd7, 0x0dd7,
+ 0x0de0, 0x0df1,
+ 0x0df5, 0x0e00,
+ 0x0e3b, 0x0e3e,
+ 0x0e5c, 0x0e80,
+ 0x0e83, 0x0e83,
+ 0x0e85, 0x0e86,
+ 0x0e89, 0x0e89,
+ 0x0e8b, 0x0e8c,
+ 0x0e8e, 0x0e93,
+ 0x0e98, 0x0e98,
+ 0x0ea0, 0x0ea0,
+ 0x0ea4, 0x0ea4,
+ 0x0ea6, 0x0ea6,
+ 0x0ea8, 0x0ea9,
+ 0x0eac, 0x0eac,
+ 0x0eba, 0x0eba,
+ 0x0ebe, 0x0ebf,
+ 0x0ec5, 0x0ec5,
+ 0x0ec7, 0x0ec7,
+ 0x0ece, 0x0ecf,
+ 0x0eda, 0x0edb,
+ 0x0ede, 0x0eff,
+ 0x0f48, 0x0f48,
+ 0x0f6d, 0x0f70,
+ 0x0f98, 0x0f98,
+ 0x0fbd, 0x0fbd,
+ 0x0fcd, 0x0fcd,
+ 0x0fdb, 0x0fff,
+ 0x10c6, 0x10cf,
+ 0x10fd, 0x10ff,
+ 0x1249, 0x1249,
+ 0x124e, 0x124f,
+ 0x1257, 0x1257,
+ 0x1259, 0x1259,
+ 0x125e, 0x125f,
+ 0x1289, 0x1289,
+ 0x128e, 0x128f,
+ 0x12b1, 0x12b1,
+ 0x12b6, 0x12b7,
+ 0x12bf, 0x12bf,
+ 0x12c1, 0x12c1,
+ 0x12c6, 0x12c7,
+ 0x12d7, 0x12d7,
+ 0x1311, 0x1311,
+ 0x1316, 0x1317,
+ 0x135b, 0x135c,
+ 0x137d, 0x137f,
+ 0x139a, 0x139f,
+ 0x13f5, 0x13ff,
+ 0x169d, 0x169f,
+ 0x16f1, 0x16ff,
+ 0x170d, 0x170d,
+ 0x1715, 0x171f,
+ 0x1737, 0x173f,
+ 0x1754, 0x175f,
+ 0x176d, 0x176d,
+ 0x1771, 0x1771,
+ 0x1774, 0x177f,
+ 0x17de, 0x17df,
+ 0x17ea, 0x17ef,
+ 0x17fa, 0x17ff,
+ 0x180f, 0x180f,
+ 0x181a, 0x181f,
+ 0x1878, 0x187f,
+ 0x18ab, 0x18af,
+ 0x18f6, 0x18ff,
+ 0x191d, 0x191f,
+ 0x192c, 0x192f,
+ 0x193c, 0x193f,
+ 0x1941, 0x1943,
+ 0x196e, 0x196f,
+ 0x1975, 0x197f,
+ 0x19ac, 0x19af,
+ 0x19ca, 0x19cf,
+ 0x19db, 0x19dd,
+ 0x1a1c, 0x1a1d,
+ 0x1a5f, 0x1a5f,
+ 0x1a7d, 0x1a7e,
+ 0x1a8a, 0x1a8f,
+ 0x1a9a, 0x1a9f,
+ 0x1aae, 0x1aff,
+ 0x1b4c, 0x1b4f,
+ 0x1b7d, 0x1b7f,
+ 0x1bab, 0x1bad,
+ 0x1bba, 0x1bbf,
+ 0x1bf4, 0x1bfb,
+ 0x1c38, 0x1c3a,
+ 0x1c4a, 0x1c4c,
+ 0x1c80, 0x1ccf,
+ 0x1cf3, 0x1cff,
+ 0x1de7, 0x1dfb,
+ 0x1f16, 0x1f17,
+ 0x1f1e, 0x1f1f,
+ 0x1f46, 0x1f47,
+ 0x1f4e, 0x1f4f,
+ 0x1f58, 0x1f58,
+ 0x1f5a, 0x1f5a,
+ 0x1f5c, 0x1f5c,
+ 0x1f5e, 0x1f5e,
+ 0x1f7e, 0x1f7f,
+ 0x1fb5, 0x1fb5,
+ 0x1fc5, 0x1fc5,
+ 0x1fd4, 0x1fd5,
+ 0x1fdc, 0x1fdc,
+ 0x1ff0, 0x1ff1,
+ 0x1ff5, 0x1ff5,
+ 0x1fff, 0x1fff,
+ 0x2065, 0x2069,
+ 0x2072, 0x2073,
+ 0x208f, 0x208f,
+ 0x209d, 0x209f,
+ 0x20ba, 0x20cf,
+ 0x20f1, 0x20ff,
+ 0x218a, 0x218f,
+ 0x23f4, 0x23ff,
+ 0x2427, 0x243f,
+ 0x244b, 0x245f,
+ 0x2700, 0x2700,
+ 0x27cb, 0x27cb,
+ 0x27cd, 0x27cd,
+ 0x2b4d, 0x2b4f,
+ 0x2b5a, 0x2bff,
+ 0x2c2f, 0x2c2f,
+ 0x2c5f, 0x2c5f,
+ 0x2cf2, 0x2cf8,
+ 0x2d26, 0x2d2f,
+ 0x2d66, 0x2d6e,
+ 0x2d71, 0x2d7e,
+ 0x2d97, 0x2d9f,
+ 0x2da7, 0x2da7,
+ 0x2daf, 0x2daf,
+ 0x2db7, 0x2db7,
+ 0x2dbf, 0x2dbf,
+ 0x2dc7, 0x2dc7,
+ 0x2dcf, 0x2dcf,
+ 0x2dd7, 0x2dd7,
+ 0x2ddf, 0x2ddf,
+ 0x2e32, 0x2e7f,
+ 0x2e9a, 0x2e9a,
+ 0x2ef4, 0x2eff,
+ 0x2fd6, 0x2fef,
+ 0x2ffc, 0x2fff,
+ 0x3040, 0x3040,
+ 0x3097, 0x3098,
+ 0x3100, 0x3104,
+ 0x312e, 0x3130,
+ 0x318f, 0x318f,
+ 0x31bb, 0x31bf,
+ 0x31e4, 0x31ef,
+ 0x321f, 0x321f,
+ 0x32ff, 0x32ff,
+ 0x4db6, 0x4dbf,
+ 0x9fcc, 0x9fff,
+ 0xa48d, 0xa48f,
+ 0xa4c7, 0xa4cf,
+ 0xa62c, 0xa63f,
+ 0xa674, 0xa67b,
+ 0xa698, 0xa69f,
+ 0xa6f8, 0xa6ff,
+ 0xa78f, 0xa78f,
+ 0xa792, 0xa79f,
+ 0xa7aa, 0xa7f9,
+ 0xa82c, 0xa82f,
+ 0xa83a, 0xa83f,
+ 0xa878, 0xa87f,
+ 0xa8c5, 0xa8cd,
+ 0xa8da, 0xa8df,
+ 0xa8fc, 0xa8ff,
+ 0xa954, 0xa95e,
+ 0xa97d, 0xa97f,
+ 0xa9ce, 0xa9ce,
+ 0xa9da, 0xa9dd,
+ 0xa9e0, 0xa9ff,
+ 0xaa37, 0xaa3f,
+ 0xaa4e, 0xaa4f,
+ 0xaa5a, 0xaa5b,
+ 0xaa7c, 0xaa7f,
+ 0xaac3, 0xaada,
+ 0xaae0, 0xab00,
+ 0xab07, 0xab08,
+ 0xab0f, 0xab10,
+ 0xab17, 0xab1f,
+ 0xab27, 0xab27,
+ 0xab2f, 0xabbf,
+ 0xabee, 0xabef,
+ 0xabfa, 0xabff,
+ 0xd7a4, 0xd7af,
+ 0xd7c7, 0xd7ca,
+ 0xd7fc, 0xf8ff,
+ 0xfa2e, 0xfa2f,
+ 0xfa6e, 0xfa6f,
+ 0xfada, 0xfaff,
+ 0xfb07, 0xfb12,
+ 0xfb18, 0xfb1c,
+ 0xfb37, 0xfb37,
+ 0xfb3d, 0xfb3d,
+ 0xfb3f, 0xfb3f,
+ 0xfb42, 0xfb42,
+ 0xfb45, 0xfb45,
+ 0xfbc2, 0xfbd2,
+ 0xfd40, 0xfd4f,
+ 0xfd90, 0xfd91,
+ 0xfdc8, 0xfdef,
+ 0xfdfe, 0xfdff,
+ 0xfe1a, 0xfe1f,
+ 0xfe27, 0xfe2f,
+ 0xfe53, 0xfe53,
+ 0xfe67, 0xfe67,
+ 0xfe6c, 0xfe6f,
+ 0xfe75, 0xfe75,
+ 0xfefd, 0xfefe,
+ 0xff00, 0xff00,
+ 0xffbf, 0xffc1,
+ 0xffc8, 0xffc9,
+ 0xffd0, 0xffd1,
+ 0xffd8, 0xffd9,
+ 0xffdd, 0xffdf,
+ 0xffe7, 0xffe7,
+ 0xffef, 0xfff8,
+ 0xfffe, 0xffff,
+ 0x1000c, 0x1000c,
+ 0x10027, 0x10027,
+ 0x1003b, 0x1003b,
+ 0x1003e, 0x1003e,
+ 0x1004e, 0x1004f,
+ 0x1005e, 0x1007f,
+ 0x100fb, 0x100ff,
+ 0x10103, 0x10106,
+ 0x10134, 0x10136,
+ 0x1018b, 0x1018f,
+ 0x1019c, 0x101cf,
+ 0x101fe, 0x1027f,
+ 0x1029d, 0x1029f,
+ 0x102d1, 0x102ff,
+ 0x1031f, 0x1031f,
+ 0x10324, 0x1032f,
+ 0x1034b, 0x1037f,
+ 0x1039e, 0x1039e,
+ 0x103c4, 0x103c7,
+ 0x103d6, 0x103ff,
+ 0x1049e, 0x1049f,
+ 0x104aa, 0x107ff,
+ 0x10806, 0x10807,
+ 0x10809, 0x10809,
+ 0x10836, 0x10836,
+ 0x10839, 0x1083b,
+ 0x1083d, 0x1083e,
+ 0x10856, 0x10856,
+ 0x10860, 0x108ff,
+ 0x1091c, 0x1091e,
+ 0x1093a, 0x1093e,
+ 0x10940, 0x109ff,
+ 0x10a04, 0x10a04,
+ 0x10a07, 0x10a0b,
+ 0x10a14, 0x10a14,
+ 0x10a18, 0x10a18,
+ 0x10a34, 0x10a37,
+ 0x10a3b, 0x10a3e,
+ 0x10a48, 0x10a4f,
+ 0x10a59, 0x10a5f,
+ 0x10a80, 0x10aff,
+ 0x10b36, 0x10b38,
+ 0x10b56, 0x10b57,
+ 0x10b73, 0x10b77,
+ 0x10b80, 0x10bff,
+ 0x10c49, 0x10e5f,
+ 0x10e7f, 0x10fff,
+ 0x1104e, 0x11051,
+ 0x11070, 0x1107f,
+ 0x110c2, 0x11fff,
+ 0x1236f, 0x123ff,
+ 0x12463, 0x1246f,
+ 0x12474, 0x12fff,
+ 0x1342f, 0x167ff,
+ 0x16a39, 0x1afff,
+ 0x1b002, 0x1cfff,
+ 0x1d0f6, 0x1d0ff,
+ 0x1d127, 0x1d128,
+ 0x1d1de, 0x1d1ff,
+ 0x1d246, 0x1d2ff,
+ 0x1d357, 0x1d35f,
+ 0x1d372, 0x1d3ff,
+ 0x1d455, 0x1d455,
+ 0x1d49d, 0x1d49d,
+ 0x1d4a0, 0x1d4a1,
+ 0x1d4a3, 0x1d4a4,
+ 0x1d4a7, 0x1d4a8,
+ 0x1d4ad, 0x1d4ad,
+ 0x1d4ba, 0x1d4ba,
+ 0x1d4bc, 0x1d4bc,
+ 0x1d4c4, 0x1d4c4,
+ 0x1d506, 0x1d506,
+ 0x1d50b, 0x1d50c,
+ 0x1d515, 0x1d515,
+ 0x1d51d, 0x1d51d,
+ 0x1d53a, 0x1d53a,
+ 0x1d53f, 0x1d53f,
+ 0x1d545, 0x1d545,
+ 0x1d547, 0x1d549,
+ 0x1d551, 0x1d551,
+ 0x1d6a6, 0x1d6a7,
+ 0x1d7cc, 0x1d7cd,
+ 0x1d800, 0x1efff,
+ 0x1f02c, 0x1f02f,
+ 0x1f094, 0x1f09f,
+ 0x1f0af, 0x1f0b0,
+ 0x1f0bf, 0x1f0c0,
+ 0x1f0d0, 0x1f0d0,
+ 0x1f0e0, 0x1f0ff,
+ 0x1f10b, 0x1f10f,
+ 0x1f12f, 0x1f12f,
+ 0x1f16a, 0x1f16f,
+ 0x1f19b, 0x1f1e5,
+ 0x1f203, 0x1f20f,
+ 0x1f23b, 0x1f23f,
+ 0x1f249, 0x1f24f,
+ 0x1f252, 0x1f2ff,
+ 0x1f321, 0x1f32f,
+ 0x1f336, 0x1f336,
+ 0x1f37d, 0x1f37f,
+ 0x1f394, 0x1f39f,
+ 0x1f3c5, 0x1f3c5,
+ 0x1f3cb, 0x1f3df,
+ 0x1f3f1, 0x1f3ff,
+ 0x1f43f, 0x1f43f,
+ 0x1f441, 0x1f441,
+ 0x1f4f8, 0x1f4f8,
+ 0x1f4fd, 0x1f4ff,
+ 0x1f53e, 0x1f54f,
+ 0x1f568, 0x1f5fa,
+ 0x1f600, 0x1f600,
+ 0x1f611, 0x1f611,
+ 0x1f615, 0x1f615,
+ 0x1f617, 0x1f617,
+ 0x1f619, 0x1f619,
+ 0x1f61b, 0x1f61b,
+ 0x1f61f, 0x1f61f,
+ 0x1f626, 0x1f627,
+ 0x1f62c, 0x1f62c,
+ 0x1f62e, 0x1f62f,
+ 0x1f634, 0x1f634,
+ 0x1f641, 0x1f644,
+ 0x1f650, 0x1f67f,
+ 0x1f6c6, 0x1f6ff,
+ 0x1f774, 0x1ffff,
+ 0x2a6d7, 0x2a6ff,
+ 0x2b735, 0x2b73f,
+ 0x2b81e, 0x2f7ff,
+ 0x2fa1e, 0xe0000,
+ 0xe0002, 0xe001f,
+ 0xe0080, 0xe00ff,
+ 0xe01f0, 0x10ffff,
+}; /* CR_Unknown */
+#endif /* USE_UNICODE_PROPERTIES */
+
+/* 'Age_1_1': Derived Age 1.1 */
+static const OnigCodePoint CR_Age_1_1[] = {
+ 288,
+ 0x0000, 0x01f5,
+ 0x01fa, 0x0217,
+ 0x0250, 0x02a8,
+ 0x02b0, 0x02de,
+ 0x02e0, 0x02e9,
+ 0x0300, 0x0345,
+ 0x0360, 0x0361,
+ 0x0374, 0x0375,
+ 0x037a, 0x037a,
+ 0x037e, 0x037e,
+ 0x0384, 0x038a,
+ 0x038c, 0x038c,
+ 0x038e, 0x03a1,
+ 0x03a3, 0x03ce,
+ 0x03d0, 0x03d6,
+ 0x03da, 0x03da,
+ 0x03dc, 0x03dc,
+ 0x03de, 0x03de,
+ 0x03e0, 0x03e0,
+ 0x03e2, 0x03f3,
+ 0x0401, 0x040c,
+ 0x040e, 0x044f,
+ 0x0451, 0x045c,
+ 0x045e, 0x0486,
+ 0x0490, 0x04c4,
+ 0x04c7, 0x04c8,
+ 0x04cb, 0x04cc,
+ 0x04d0, 0x04eb,
+ 0x04ee, 0x04f5,
+ 0x04f8, 0x04f9,
+ 0x0531, 0x0556,
+ 0x0559, 0x055f,
+ 0x0561, 0x0587,
+ 0x0589, 0x0589,
+ 0x05b0, 0x05b9,
+ 0x05bb, 0x05c3,
+ 0x05d0, 0x05ea,
+ 0x05f0, 0x05f4,
+ 0x060c, 0x060c,
+ 0x061b, 0x061b,
+ 0x061f, 0x061f,
+ 0x0621, 0x063a,
+ 0x0640, 0x0652,
+ 0x0660, 0x066d,
+ 0x0670, 0x06b7,
+ 0x06ba, 0x06be,
+ 0x06c0, 0x06ce,
+ 0x06d0, 0x06ed,
+ 0x06f0, 0x06f9,
+ 0x0901, 0x0903,
+ 0x0905, 0x0939,
+ 0x093c, 0x094d,
+ 0x0950, 0x0954,
+ 0x0958, 0x0970,
+ 0x0981, 0x0983,
+ 0x0985, 0x098c,
+ 0x098f, 0x0990,
+ 0x0993, 0x09a8,
+ 0x09aa, 0x09b0,
+ 0x09b2, 0x09b2,
+ 0x09b6, 0x09b9,
+ 0x09bc, 0x09bc,
+ 0x09be, 0x09c4,
+ 0x09c7, 0x09c8,
+ 0x09cb, 0x09cd,
+ 0x09d7, 0x09d7,
+ 0x09dc, 0x09dd,
+ 0x09df, 0x09e3,
+ 0x09e6, 0x09fa,
+ 0x0a02, 0x0a02,
+ 0x0a05, 0x0a0a,
+ 0x0a0f, 0x0a10,
+ 0x0a13, 0x0a28,
+ 0x0a2a, 0x0a30,
+ 0x0a32, 0x0a33,
+ 0x0a35, 0x0a36,
+ 0x0a38, 0x0a39,
+ 0x0a3c, 0x0a3c,
+ 0x0a3e, 0x0a42,
+ 0x0a47, 0x0a48,
+ 0x0a4b, 0x0a4d,
+ 0x0a59, 0x0a5c,
+ 0x0a5e, 0x0a5e,
+ 0x0a66, 0x0a74,
+ 0x0a81, 0x0a83,
+ 0x0a85, 0x0a8b,
+ 0x0a8d, 0x0a8d,
+ 0x0a8f, 0x0a91,
+ 0x0a93, 0x0aa8,
+ 0x0aaa, 0x0ab0,
+ 0x0ab2, 0x0ab3,
+ 0x0ab5, 0x0ab9,
+ 0x0abc, 0x0ac5,
+ 0x0ac7, 0x0ac9,
+ 0x0acb, 0x0acd,
+ 0x0ad0, 0x0ad0,
+ 0x0ae0, 0x0ae0,
+ 0x0ae6, 0x0aef,
+ 0x0b01, 0x0b03,
+ 0x0b05, 0x0b0c,
+ 0x0b0f, 0x0b10,
+ 0x0b13, 0x0b28,
+ 0x0b2a, 0x0b30,
+ 0x0b32, 0x0b33,
+ 0x0b36, 0x0b39,
+ 0x0b3c, 0x0b43,
+ 0x0b47, 0x0b48,
+ 0x0b4b, 0x0b4d,
+ 0x0b56, 0x0b57,
+ 0x0b5c, 0x0b5d,
+ 0x0b5f, 0x0b61,
+ 0x0b66, 0x0b70,
+ 0x0b82, 0x0b83,
+ 0x0b85, 0x0b8a,
+ 0x0b8e, 0x0b90,
+ 0x0b92, 0x0b95,
+ 0x0b99, 0x0b9a,
+ 0x0b9c, 0x0b9c,
+ 0x0b9e, 0x0b9f,
+ 0x0ba3, 0x0ba4,
+ 0x0ba8, 0x0baa,
+ 0x0bae, 0x0bb5,
+ 0x0bb7, 0x0bb9,
+ 0x0bbe, 0x0bc2,
+ 0x0bc6, 0x0bc8,
+ 0x0bca, 0x0bcd,
+ 0x0bd7, 0x0bd7,
+ 0x0be7, 0x0bf2,
+ 0x0c01, 0x0c03,
+ 0x0c05, 0x0c0c,
+ 0x0c0e, 0x0c10,
+ 0x0c12, 0x0c28,
+ 0x0c2a, 0x0c33,
+ 0x0c35, 0x0c39,
+ 0x0c3e, 0x0c44,
+ 0x0c46, 0x0c48,
+ 0x0c4a, 0x0c4d,
+ 0x0c55, 0x0c56,
+ 0x0c60, 0x0c61,
+ 0x0c66, 0x0c6f,
+ 0x0c82, 0x0c83,
+ 0x0c85, 0x0c8c,
+ 0x0c8e, 0x0c90,
+ 0x0c92, 0x0ca8,
+ 0x0caa, 0x0cb3,
+ 0x0cb5, 0x0cb9,
+ 0x0cbe, 0x0cc4,
+ 0x0cc6, 0x0cc8,
+ 0x0cca, 0x0ccd,
+ 0x0cd5, 0x0cd6,
+ 0x0cde, 0x0cde,
+ 0x0ce0, 0x0ce1,
+ 0x0ce6, 0x0cef,
+ 0x0d02, 0x0d03,
+ 0x0d05, 0x0d0c,
+ 0x0d0e, 0x0d10,
+ 0x0d12, 0x0d28,
+ 0x0d2a, 0x0d39,
+ 0x0d3e, 0x0d43,
+ 0x0d46, 0x0d48,
+ 0x0d4a, 0x0d4d,
+ 0x0d57, 0x0d57,
+ 0x0d60, 0x0d61,
+ 0x0d66, 0x0d6f,
+ 0x0e01, 0x0e3a,
+ 0x0e3f, 0x0e5b,
+ 0x0e81, 0x0e82,
+ 0x0e84, 0x0e84,
+ 0x0e87, 0x0e88,
+ 0x0e8a, 0x0e8a,
+ 0x0e8d, 0x0e8d,
+ 0x0e94, 0x0e97,
+ 0x0e99, 0x0e9f,
+ 0x0ea1, 0x0ea3,
+ 0x0ea5, 0x0ea5,
+ 0x0ea7, 0x0ea7,
+ 0x0eaa, 0x0eab,
+ 0x0ead, 0x0eb9,
+ 0x0ebb, 0x0ebd,
+ 0x0ec0, 0x0ec4,
+ 0x0ec6, 0x0ec6,
+ 0x0ec8, 0x0ecd,
+ 0x0ed0, 0x0ed9,
+ 0x0edc, 0x0edd,
+ 0x10a0, 0x10c5,
+ 0x10d0, 0x10f6,
+ 0x10fb, 0x10fb,
+ 0x1100, 0x1159,
+ 0x115f, 0x11a2,
+ 0x11a8, 0x11f9,
+ 0x1e00, 0x1e9a,
+ 0x1ea0, 0x1ef9,
+ 0x1f00, 0x1f15,
+ 0x1f18, 0x1f1d,
+ 0x1f20, 0x1f45,
+ 0x1f48, 0x1f4d,
+ 0x1f50, 0x1f57,
+ 0x1f59, 0x1f59,
+ 0x1f5b, 0x1f5b,
+ 0x1f5d, 0x1f5d,
+ 0x1f5f, 0x1f7d,
+ 0x1f80, 0x1fb4,
+ 0x1fb6, 0x1fc4,
+ 0x1fc6, 0x1fd3,
+ 0x1fd6, 0x1fdb,
+ 0x1fdd, 0x1fef,
+ 0x1ff2, 0x1ff4,
+ 0x1ff6, 0x1ffe,
+ 0x2000, 0x202e,
+ 0x2030, 0x2046,
+ 0x206a, 0x2070,
+ 0x2074, 0x208e,
+ 0x20a0, 0x20aa,
+ 0x20d0, 0x20e1,
+ 0x2100, 0x2138,
+ 0x2153, 0x2182,
+ 0x2190, 0x21ea,
+ 0x2200, 0x22f1,
+ 0x2300, 0x2300,
+ 0x2302, 0x237a,
+ 0x2400, 0x2424,
+ 0x2440, 0x244a,
+ 0x2460, 0x24ea,
+ 0x2500, 0x2595,
+ 0x25a0, 0x25ef,
+ 0x2600, 0x2613,
+ 0x261a, 0x266f,
+ 0x2701, 0x2704,
+ 0x2706, 0x2709,
+ 0x270c, 0x2727,
+ 0x2729, 0x274b,
+ 0x274d, 0x274d,
+ 0x274f, 0x2752,
+ 0x2756, 0x2756,
+ 0x2758, 0x275e,
+ 0x2761, 0x2767,
+ 0x2776, 0x2794,
+ 0x2798, 0x27af,
+ 0x27b1, 0x27be,
+ 0x3000, 0x3037,
+ 0x303f, 0x303f,
+ 0x3041, 0x3094,
+ 0x3099, 0x309e,
+ 0x30a1, 0x30fe,
+ 0x3105, 0x312c,
+ 0x3131, 0x318e,
+ 0x3190, 0x319f,
+ 0x3200, 0x321c,
+ 0x3220, 0x3243,
+ 0x3260, 0x327b,
+ 0x327f, 0x32b0,
+ 0x32c0, 0x32cb,
+ 0x32d0, 0x32fe,
+ 0x3300, 0x3376,
+ 0x337b, 0x33dd,
+ 0x33e0, 0x33fe,
+ 0x4e00, 0x9fa5,
+ 0xe000, 0xfa2d,
+ 0xfb00, 0xfb06,
+ 0xfb13, 0xfb17,
+ 0xfb1e, 0xfb36,
+ 0xfb38, 0xfb3c,
+ 0xfb3e, 0xfb3e,
+ 0xfb40, 0xfb41,
+ 0xfb43, 0xfb44,
+ 0xfb46, 0xfbb1,
+ 0xfbd3, 0xfd3f,
+ 0xfd50, 0xfd8f,
+ 0xfd92, 0xfdc7,
+ 0xfdf0, 0xfdfb,
+ 0xfe20, 0xfe23,
+ 0xfe30, 0xfe44,
+ 0xfe49, 0xfe52,
+ 0xfe54, 0xfe66,
+ 0xfe68, 0xfe6b,
+ 0xfe70, 0xfe72,
+ 0xfe74, 0xfe74,
+ 0xfe76, 0xfefc,
+ 0xfeff, 0xfeff,
+ 0xff01, 0xff5e,
+ 0xff61, 0xffbe,
+ 0xffc2, 0xffc7,
+ 0xffca, 0xffcf,
+ 0xffd2, 0xffd7,
+ 0xffda, 0xffdc,
+ 0xffe0, 0xffe6,
+ 0xffe8, 0xffee,
+ 0xfffd, 0xffff,
+}; /* CR_Age_1_1 */
+
+/* 'Age_2_0': Derived Age 2.0 */
+static const OnigCodePoint CR_Age_2_0[] = {
+ 312,
+ 0x0000, 0x01f5,
+ 0x01fa, 0x0217,
+ 0x0250, 0x02a8,
+ 0x02b0, 0x02de,
+ 0x02e0, 0x02e9,
+ 0x0300, 0x0345,
+ 0x0360, 0x0361,
+ 0x0374, 0x0375,
+ 0x037a, 0x037a,
+ 0x037e, 0x037e,
+ 0x0384, 0x038a,
+ 0x038c, 0x038c,
+ 0x038e, 0x03a1,
+ 0x03a3, 0x03ce,
+ 0x03d0, 0x03d6,
+ 0x03da, 0x03da,
+ 0x03dc, 0x03dc,
+ 0x03de, 0x03de,
+ 0x03e0, 0x03e0,
+ 0x03e2, 0x03f3,
+ 0x0401, 0x040c,
+ 0x040e, 0x044f,
+ 0x0451, 0x045c,
+ 0x045e, 0x0486,
+ 0x0490, 0x04c4,
+ 0x04c7, 0x04c8,
+ 0x04cb, 0x04cc,
+ 0x04d0, 0x04eb,
+ 0x04ee, 0x04f5,
+ 0x04f8, 0x04f9,
+ 0x0531, 0x0556,
+ 0x0559, 0x055f,
+ 0x0561, 0x0587,
+ 0x0589, 0x0589,
+ 0x0591, 0x05a1,
+ 0x05a3, 0x05b9,
+ 0x05bb, 0x05c4,
+ 0x05d0, 0x05ea,
+ 0x05f0, 0x05f4,
+ 0x060c, 0x060c,
+ 0x061b, 0x061b,
+ 0x061f, 0x061f,
+ 0x0621, 0x063a,
+ 0x0640, 0x0652,
+ 0x0660, 0x066d,
+ 0x0670, 0x06b7,
+ 0x06ba, 0x06be,
+ 0x06c0, 0x06ce,
+ 0x06d0, 0x06ed,
+ 0x06f0, 0x06f9,
+ 0x0901, 0x0903,
+ 0x0905, 0x0939,
+ 0x093c, 0x094d,
+ 0x0950, 0x0954,
+ 0x0958, 0x0970,
+ 0x0981, 0x0983,
+ 0x0985, 0x098c,
+ 0x098f, 0x0990,
+ 0x0993, 0x09a8,
+ 0x09aa, 0x09b0,
+ 0x09b2, 0x09b2,
+ 0x09b6, 0x09b9,
+ 0x09bc, 0x09bc,
+ 0x09be, 0x09c4,
+ 0x09c7, 0x09c8,
+ 0x09cb, 0x09cd,
+ 0x09d7, 0x09d7,
+ 0x09dc, 0x09dd,
+ 0x09df, 0x09e3,
+ 0x09e6, 0x09fa,
+ 0x0a02, 0x0a02,
+ 0x0a05, 0x0a0a,
+ 0x0a0f, 0x0a10,
+ 0x0a13, 0x0a28,
+ 0x0a2a, 0x0a30,
+ 0x0a32, 0x0a33,
+ 0x0a35, 0x0a36,
+ 0x0a38, 0x0a39,
+ 0x0a3c, 0x0a3c,
+ 0x0a3e, 0x0a42,
+ 0x0a47, 0x0a48,
+ 0x0a4b, 0x0a4d,
+ 0x0a59, 0x0a5c,
+ 0x0a5e, 0x0a5e,
+ 0x0a66, 0x0a74,
+ 0x0a81, 0x0a83,
+ 0x0a85, 0x0a8b,
+ 0x0a8d, 0x0a8d,
+ 0x0a8f, 0x0a91,
+ 0x0a93, 0x0aa8,
+ 0x0aaa, 0x0ab0,
+ 0x0ab2, 0x0ab3,
+ 0x0ab5, 0x0ab9,
+ 0x0abc, 0x0ac5,
+ 0x0ac7, 0x0ac9,
+ 0x0acb, 0x0acd,
+ 0x0ad0, 0x0ad0,
+ 0x0ae0, 0x0ae0,
+ 0x0ae6, 0x0aef,
+ 0x0b01, 0x0b03,
+ 0x0b05, 0x0b0c,
+ 0x0b0f, 0x0b10,
+ 0x0b13, 0x0b28,
+ 0x0b2a, 0x0b30,
+ 0x0b32, 0x0b33,
+ 0x0b36, 0x0b39,
+ 0x0b3c, 0x0b43,
+ 0x0b47, 0x0b48,
+ 0x0b4b, 0x0b4d,
+ 0x0b56, 0x0b57,
+ 0x0b5c, 0x0b5d,
+ 0x0b5f, 0x0b61,
+ 0x0b66, 0x0b70,
+ 0x0b82, 0x0b83,
+ 0x0b85, 0x0b8a,
+ 0x0b8e, 0x0b90,
+ 0x0b92, 0x0b95,
+ 0x0b99, 0x0b9a,
+ 0x0b9c, 0x0b9c,
+ 0x0b9e, 0x0b9f,
+ 0x0ba3, 0x0ba4,
+ 0x0ba8, 0x0baa,
+ 0x0bae, 0x0bb5,
+ 0x0bb7, 0x0bb9,
+ 0x0bbe, 0x0bc2,
+ 0x0bc6, 0x0bc8,
+ 0x0bca, 0x0bcd,
+ 0x0bd7, 0x0bd7,
+ 0x0be7, 0x0bf2,
+ 0x0c01, 0x0c03,
+ 0x0c05, 0x0c0c,
+ 0x0c0e, 0x0c10,
+ 0x0c12, 0x0c28,
+ 0x0c2a, 0x0c33,
+ 0x0c35, 0x0c39,
+ 0x0c3e, 0x0c44,
+ 0x0c46, 0x0c48,
+ 0x0c4a, 0x0c4d,
+ 0x0c55, 0x0c56,
+ 0x0c60, 0x0c61,
+ 0x0c66, 0x0c6f,
+ 0x0c82, 0x0c83,
+ 0x0c85, 0x0c8c,
+ 0x0c8e, 0x0c90,
+ 0x0c92, 0x0ca8,
+ 0x0caa, 0x0cb3,
+ 0x0cb5, 0x0cb9,
+ 0x0cbe, 0x0cc4,
+ 0x0cc6, 0x0cc8,
+ 0x0cca, 0x0ccd,
+ 0x0cd5, 0x0cd6,
+ 0x0cde, 0x0cde,
+ 0x0ce0, 0x0ce1,
+ 0x0ce6, 0x0cef,
+ 0x0d02, 0x0d03,
+ 0x0d05, 0x0d0c,
+ 0x0d0e, 0x0d10,
+ 0x0d12, 0x0d28,
+ 0x0d2a, 0x0d39,
+ 0x0d3e, 0x0d43,
+ 0x0d46, 0x0d48,
+ 0x0d4a, 0x0d4d,
+ 0x0d57, 0x0d57,
+ 0x0d60, 0x0d61,
+ 0x0d66, 0x0d6f,
+ 0x0e01, 0x0e3a,
+ 0x0e3f, 0x0e5b,
+ 0x0e81, 0x0e82,
+ 0x0e84, 0x0e84,
+ 0x0e87, 0x0e88,
+ 0x0e8a, 0x0e8a,
+ 0x0e8d, 0x0e8d,
+ 0x0e94, 0x0e97,
+ 0x0e99, 0x0e9f,
+ 0x0ea1, 0x0ea3,
+ 0x0ea5, 0x0ea5,
+ 0x0ea7, 0x0ea7,
+ 0x0eaa, 0x0eab,
+ 0x0ead, 0x0eb9,
+ 0x0ebb, 0x0ebd,
+ 0x0ec0, 0x0ec4,
+ 0x0ec6, 0x0ec6,
+ 0x0ec8, 0x0ecd,
+ 0x0ed0, 0x0ed9,
+ 0x0edc, 0x0edd,
+ 0x0f00, 0x0f47,
+ 0x0f49, 0x0f69,
+ 0x0f71, 0x0f8b,
+ 0x0f90, 0x0f95,
+ 0x0f97, 0x0f97,
+ 0x0f99, 0x0fad,
+ 0x0fb1, 0x0fb7,
+ 0x0fb9, 0x0fb9,
+ 0x10a0, 0x10c5,
+ 0x10d0, 0x10f6,
+ 0x10fb, 0x10fb,
+ 0x1100, 0x1159,
+ 0x115f, 0x11a2,
+ 0x11a8, 0x11f9,
+ 0x1e00, 0x1e9b,
+ 0x1ea0, 0x1ef9,
+ 0x1f00, 0x1f15,
+ 0x1f18, 0x1f1d,
+ 0x1f20, 0x1f45,
+ 0x1f48, 0x1f4d,
+ 0x1f50, 0x1f57,
+ 0x1f59, 0x1f59,
+ 0x1f5b, 0x1f5b,
+ 0x1f5d, 0x1f5d,
+ 0x1f5f, 0x1f7d,
+ 0x1f80, 0x1fb4,
+ 0x1fb6, 0x1fc4,
+ 0x1fc6, 0x1fd3,
+ 0x1fd6, 0x1fdb,
+ 0x1fdd, 0x1fef,
+ 0x1ff2, 0x1ff4,
+ 0x1ff6, 0x1ffe,
+ 0x2000, 0x202e,
+ 0x2030, 0x2046,
+ 0x206a, 0x2070,
+ 0x2074, 0x208e,
+ 0x20a0, 0x20ab,
+ 0x20d0, 0x20e1,
+ 0x2100, 0x2138,
+ 0x2153, 0x2182,
+ 0x2190, 0x21ea,
+ 0x2200, 0x22f1,
+ 0x2300, 0x2300,
+ 0x2302, 0x237a,
+ 0x2400, 0x2424,
+ 0x2440, 0x244a,
+ 0x2460, 0x24ea,
+ 0x2500, 0x2595,
+ 0x25a0, 0x25ef,
+ 0x2600, 0x2613,
+ 0x261a, 0x266f,
+ 0x2701, 0x2704,
+ 0x2706, 0x2709,
+ 0x270c, 0x2727,
+ 0x2729, 0x274b,
+ 0x274d, 0x274d,
+ 0x274f, 0x2752,
+ 0x2756, 0x2756,
+ 0x2758, 0x275e,
+ 0x2761, 0x2767,
+ 0x2776, 0x2794,
+ 0x2798, 0x27af,
+ 0x27b1, 0x27be,
+ 0x3000, 0x3037,
+ 0x303f, 0x303f,
+ 0x3041, 0x3094,
+ 0x3099, 0x309e,
+ 0x30a1, 0x30fe,
+ 0x3105, 0x312c,
+ 0x3131, 0x318e,
+ 0x3190, 0x319f,
+ 0x3200, 0x321c,
+ 0x3220, 0x3243,
+ 0x3260, 0x327b,
+ 0x327f, 0x32b0,
+ 0x32c0, 0x32cb,
+ 0x32d0, 0x32fe,
+ 0x3300, 0x3376,
+ 0x337b, 0x33dd,
+ 0x33e0, 0x33fe,
+ 0x4e00, 0x9fa5,
+ 0xac00, 0xd7a3,
+ 0xd800, 0xfa2d,
+ 0xfb00, 0xfb06,
+ 0xfb13, 0xfb17,
+ 0xfb1e, 0xfb36,
+ 0xfb38, 0xfb3c,
+ 0xfb3e, 0xfb3e,
+ 0xfb40, 0xfb41,
+ 0xfb43, 0xfb44,
+ 0xfb46, 0xfbb1,
+ 0xfbd3, 0xfd3f,
+ 0xfd50, 0xfd8f,
+ 0xfd92, 0xfdc7,
+ 0xfdf0, 0xfdfb,
+ 0xfe20, 0xfe23,
+ 0xfe30, 0xfe44,
+ 0xfe49, 0xfe52,
+ 0xfe54, 0xfe66,
+ 0xfe68, 0xfe6b,
+ 0xfe70, 0xfe72,
+ 0xfe74, 0xfe74,
+ 0xfe76, 0xfefc,
+ 0xfeff, 0xfeff,
+ 0xff01, 0xff5e,
+ 0xff61, 0xffbe,
+ 0xffc2, 0xffc7,
+ 0xffca, 0xffcf,
+ 0xffd2, 0xffd7,
+ 0xffda, 0xffdc,
+ 0xffe0, 0xffe6,
+ 0xffe8, 0xffee,
+ 0xfffd, 0xffff,
+ 0x1fffe, 0x1ffff,
+ 0x2fffe, 0x2ffff,
+ 0x3fffe, 0x3ffff,
+ 0x4fffe, 0x4ffff,
+ 0x5fffe, 0x5ffff,
+ 0x6fffe, 0x6ffff,
+ 0x7fffe, 0x7ffff,
+ 0x8fffe, 0x8ffff,
+ 0x9fffe, 0x9ffff,
+ 0xafffe, 0xaffff,
+ 0xbfffe, 0xbffff,
+ 0xcfffe, 0xcffff,
+ 0xdfffe, 0xdffff,
+ 0xefffe, 0x10ffff,
+}; /* CR_Age_2_0 */
+
+/* 'Age_2_1': Derived Age 2.1 */
+static const OnigCodePoint CR_Age_2_1[] = {
+ 312,
+ 0x0000, 0x01f5,
+ 0x01fa, 0x0217,
+ 0x0250, 0x02a8,
+ 0x02b0, 0x02de,
+ 0x02e0, 0x02e9,
+ 0x0300, 0x0345,
+ 0x0360, 0x0361,
+ 0x0374, 0x0375,
+ 0x037a, 0x037a,
+ 0x037e, 0x037e,
+ 0x0384, 0x038a,
+ 0x038c, 0x038c,
+ 0x038e, 0x03a1,
+ 0x03a3, 0x03ce,
+ 0x03d0, 0x03d6,
+ 0x03da, 0x03da,
+ 0x03dc, 0x03dc,
+ 0x03de, 0x03de,
+ 0x03e0, 0x03e0,
+ 0x03e2, 0x03f3,
+ 0x0401, 0x040c,
+ 0x040e, 0x044f,
+ 0x0451, 0x045c,
+ 0x045e, 0x0486,
+ 0x0490, 0x04c4,
+ 0x04c7, 0x04c8,
+ 0x04cb, 0x04cc,
+ 0x04d0, 0x04eb,
+ 0x04ee, 0x04f5,
+ 0x04f8, 0x04f9,
+ 0x0531, 0x0556,
+ 0x0559, 0x055f,
+ 0x0561, 0x0587,
+ 0x0589, 0x0589,
+ 0x0591, 0x05a1,
+ 0x05a3, 0x05b9,
+ 0x05bb, 0x05c4,
+ 0x05d0, 0x05ea,
+ 0x05f0, 0x05f4,
+ 0x060c, 0x060c,
+ 0x061b, 0x061b,
+ 0x061f, 0x061f,
+ 0x0621, 0x063a,
+ 0x0640, 0x0652,
+ 0x0660, 0x066d,
+ 0x0670, 0x06b7,
+ 0x06ba, 0x06be,
+ 0x06c0, 0x06ce,
+ 0x06d0, 0x06ed,
+ 0x06f0, 0x06f9,
+ 0x0901, 0x0903,
+ 0x0905, 0x0939,
+ 0x093c, 0x094d,
+ 0x0950, 0x0954,
+ 0x0958, 0x0970,
+ 0x0981, 0x0983,
+ 0x0985, 0x098c,
+ 0x098f, 0x0990,
+ 0x0993, 0x09a8,
+ 0x09aa, 0x09b0,
+ 0x09b2, 0x09b2,
+ 0x09b6, 0x09b9,
+ 0x09bc, 0x09bc,
+ 0x09be, 0x09c4,
+ 0x09c7, 0x09c8,
+ 0x09cb, 0x09cd,
+ 0x09d7, 0x09d7,
+ 0x09dc, 0x09dd,
+ 0x09df, 0x09e3,
+ 0x09e6, 0x09fa,
+ 0x0a02, 0x0a02,
+ 0x0a05, 0x0a0a,
+ 0x0a0f, 0x0a10,
+ 0x0a13, 0x0a28,
+ 0x0a2a, 0x0a30,
+ 0x0a32, 0x0a33,
+ 0x0a35, 0x0a36,
+ 0x0a38, 0x0a39,
+ 0x0a3c, 0x0a3c,
+ 0x0a3e, 0x0a42,
+ 0x0a47, 0x0a48,
+ 0x0a4b, 0x0a4d,
+ 0x0a59, 0x0a5c,
+ 0x0a5e, 0x0a5e,
+ 0x0a66, 0x0a74,
+ 0x0a81, 0x0a83,
+ 0x0a85, 0x0a8b,
+ 0x0a8d, 0x0a8d,
+ 0x0a8f, 0x0a91,
+ 0x0a93, 0x0aa8,
+ 0x0aaa, 0x0ab0,
+ 0x0ab2, 0x0ab3,
+ 0x0ab5, 0x0ab9,
+ 0x0abc, 0x0ac5,
+ 0x0ac7, 0x0ac9,
+ 0x0acb, 0x0acd,
+ 0x0ad0, 0x0ad0,
+ 0x0ae0, 0x0ae0,
+ 0x0ae6, 0x0aef,
+ 0x0b01, 0x0b03,
+ 0x0b05, 0x0b0c,
+ 0x0b0f, 0x0b10,
+ 0x0b13, 0x0b28,
+ 0x0b2a, 0x0b30,
+ 0x0b32, 0x0b33,
+ 0x0b36, 0x0b39,
+ 0x0b3c, 0x0b43,
+ 0x0b47, 0x0b48,
+ 0x0b4b, 0x0b4d,
+ 0x0b56, 0x0b57,
+ 0x0b5c, 0x0b5d,
+ 0x0b5f, 0x0b61,
+ 0x0b66, 0x0b70,
+ 0x0b82, 0x0b83,
+ 0x0b85, 0x0b8a,
+ 0x0b8e, 0x0b90,
+ 0x0b92, 0x0b95,
+ 0x0b99, 0x0b9a,
+ 0x0b9c, 0x0b9c,
+ 0x0b9e, 0x0b9f,
+ 0x0ba3, 0x0ba4,
+ 0x0ba8, 0x0baa,
+ 0x0bae, 0x0bb5,
+ 0x0bb7, 0x0bb9,
+ 0x0bbe, 0x0bc2,
+ 0x0bc6, 0x0bc8,
+ 0x0bca, 0x0bcd,
+ 0x0bd7, 0x0bd7,
+ 0x0be7, 0x0bf2,
+ 0x0c01, 0x0c03,
+ 0x0c05, 0x0c0c,
+ 0x0c0e, 0x0c10,
+ 0x0c12, 0x0c28,
+ 0x0c2a, 0x0c33,
+ 0x0c35, 0x0c39,
+ 0x0c3e, 0x0c44,
+ 0x0c46, 0x0c48,
+ 0x0c4a, 0x0c4d,
+ 0x0c55, 0x0c56,
+ 0x0c60, 0x0c61,
+ 0x0c66, 0x0c6f,
+ 0x0c82, 0x0c83,
+ 0x0c85, 0x0c8c,
+ 0x0c8e, 0x0c90,
+ 0x0c92, 0x0ca8,
+ 0x0caa, 0x0cb3,
+ 0x0cb5, 0x0cb9,
+ 0x0cbe, 0x0cc4,
+ 0x0cc6, 0x0cc8,
+ 0x0cca, 0x0ccd,
+ 0x0cd5, 0x0cd6,
+ 0x0cde, 0x0cde,
+ 0x0ce0, 0x0ce1,
+ 0x0ce6, 0x0cef,
+ 0x0d02, 0x0d03,
+ 0x0d05, 0x0d0c,
+ 0x0d0e, 0x0d10,
+ 0x0d12, 0x0d28,
+ 0x0d2a, 0x0d39,
+ 0x0d3e, 0x0d43,
+ 0x0d46, 0x0d48,
+ 0x0d4a, 0x0d4d,
+ 0x0d57, 0x0d57,
+ 0x0d60, 0x0d61,
+ 0x0d66, 0x0d6f,
+ 0x0e01, 0x0e3a,
+ 0x0e3f, 0x0e5b,
+ 0x0e81, 0x0e82,
+ 0x0e84, 0x0e84,
+ 0x0e87, 0x0e88,
+ 0x0e8a, 0x0e8a,
+ 0x0e8d, 0x0e8d,
+ 0x0e94, 0x0e97,
+ 0x0e99, 0x0e9f,
+ 0x0ea1, 0x0ea3,
+ 0x0ea5, 0x0ea5,
+ 0x0ea7, 0x0ea7,
+ 0x0eaa, 0x0eab,
+ 0x0ead, 0x0eb9,
+ 0x0ebb, 0x0ebd,
+ 0x0ec0, 0x0ec4,
+ 0x0ec6, 0x0ec6,
+ 0x0ec8, 0x0ecd,
+ 0x0ed0, 0x0ed9,
+ 0x0edc, 0x0edd,
+ 0x0f00, 0x0f47,
+ 0x0f49, 0x0f69,
+ 0x0f71, 0x0f8b,
+ 0x0f90, 0x0f95,
+ 0x0f97, 0x0f97,
+ 0x0f99, 0x0fad,
+ 0x0fb1, 0x0fb7,
+ 0x0fb9, 0x0fb9,
+ 0x10a0, 0x10c5,
+ 0x10d0, 0x10f6,
+ 0x10fb, 0x10fb,
+ 0x1100, 0x1159,
+ 0x115f, 0x11a2,
+ 0x11a8, 0x11f9,
+ 0x1e00, 0x1e9b,
+ 0x1ea0, 0x1ef9,
+ 0x1f00, 0x1f15,
+ 0x1f18, 0x1f1d,
+ 0x1f20, 0x1f45,
+ 0x1f48, 0x1f4d,
+ 0x1f50, 0x1f57,
+ 0x1f59, 0x1f59,
+ 0x1f5b, 0x1f5b,
+ 0x1f5d, 0x1f5d,
+ 0x1f5f, 0x1f7d,
+ 0x1f80, 0x1fb4,
+ 0x1fb6, 0x1fc4,
+ 0x1fc6, 0x1fd3,
+ 0x1fd6, 0x1fdb,
+ 0x1fdd, 0x1fef,
+ 0x1ff2, 0x1ff4,
+ 0x1ff6, 0x1ffe,
+ 0x2000, 0x202e,
+ 0x2030, 0x2046,
+ 0x206a, 0x2070,
+ 0x2074, 0x208e,
+ 0x20a0, 0x20ac,
+ 0x20d0, 0x20e1,
+ 0x2100, 0x2138,
+ 0x2153, 0x2182,
+ 0x2190, 0x21ea,
+ 0x2200, 0x22f1,
+ 0x2300, 0x2300,
+ 0x2302, 0x237a,
+ 0x2400, 0x2424,
+ 0x2440, 0x244a,
+ 0x2460, 0x24ea,
+ 0x2500, 0x2595,
+ 0x25a0, 0x25ef,
+ 0x2600, 0x2613,
+ 0x261a, 0x266f,
+ 0x2701, 0x2704,
+ 0x2706, 0x2709,
+ 0x270c, 0x2727,
+ 0x2729, 0x274b,
+ 0x274d, 0x274d,
+ 0x274f, 0x2752,
+ 0x2756, 0x2756,
+ 0x2758, 0x275e,
+ 0x2761, 0x2767,
+ 0x2776, 0x2794,
+ 0x2798, 0x27af,
+ 0x27b1, 0x27be,
+ 0x3000, 0x3037,
+ 0x303f, 0x303f,
+ 0x3041, 0x3094,
+ 0x3099, 0x309e,
+ 0x30a1, 0x30fe,
+ 0x3105, 0x312c,
+ 0x3131, 0x318e,
+ 0x3190, 0x319f,
+ 0x3200, 0x321c,
+ 0x3220, 0x3243,
+ 0x3260, 0x327b,
+ 0x327f, 0x32b0,
+ 0x32c0, 0x32cb,
+ 0x32d0, 0x32fe,
+ 0x3300, 0x3376,
+ 0x337b, 0x33dd,
+ 0x33e0, 0x33fe,
+ 0x4e00, 0x9fa5,
+ 0xac00, 0xd7a3,
+ 0xd800, 0xfa2d,
+ 0xfb00, 0xfb06,
+ 0xfb13, 0xfb17,
+ 0xfb1e, 0xfb36,
+ 0xfb38, 0xfb3c,
+ 0xfb3e, 0xfb3e,
+ 0xfb40, 0xfb41,
+ 0xfb43, 0xfb44,
+ 0xfb46, 0xfbb1,
+ 0xfbd3, 0xfd3f,
+ 0xfd50, 0xfd8f,
+ 0xfd92, 0xfdc7,
+ 0xfdf0, 0xfdfb,
+ 0xfe20, 0xfe23,
+ 0xfe30, 0xfe44,
+ 0xfe49, 0xfe52,
+ 0xfe54, 0xfe66,
+ 0xfe68, 0xfe6b,
+ 0xfe70, 0xfe72,
+ 0xfe74, 0xfe74,
+ 0xfe76, 0xfefc,
+ 0xfeff, 0xfeff,
+ 0xff01, 0xff5e,
+ 0xff61, 0xffbe,
+ 0xffc2, 0xffc7,
+ 0xffca, 0xffcf,
+ 0xffd2, 0xffd7,
+ 0xffda, 0xffdc,
+ 0xffe0, 0xffe6,
+ 0xffe8, 0xffee,
+ 0xfffc, 0xffff,
+ 0x1fffe, 0x1ffff,
+ 0x2fffe, 0x2ffff,
+ 0x3fffe, 0x3ffff,
+ 0x4fffe, 0x4ffff,
+ 0x5fffe, 0x5ffff,
+ 0x6fffe, 0x6ffff,
+ 0x7fffe, 0x7ffff,
+ 0x8fffe, 0x8ffff,
+ 0x9fffe, 0x9ffff,
+ 0xafffe, 0xaffff,
+ 0xbfffe, 0xbffff,
+ 0xcfffe, 0xcffff,
+ 0xdfffe, 0xdffff,
+ 0xefffe, 0x10ffff,
+}; /* CR_Age_2_1 */
+
+/* 'Age_3_0': Derived Age 3.0 */
+static const OnigCodePoint CR_Age_3_0[] = {
+ 369,
+ 0x0000, 0x021f,
+ 0x0222, 0x0233,
+ 0x0250, 0x02ad,
+ 0x02b0, 0x02ee,
+ 0x0300, 0x034e,
+ 0x0360, 0x0362,
+ 0x0374, 0x0375,
+ 0x037a, 0x037a,
+ 0x037e, 0x037e,
+ 0x0384, 0x038a,
+ 0x038c, 0x038c,
+ 0x038e, 0x03a1,
+ 0x03a3, 0x03ce,
+ 0x03d0, 0x03d7,
+ 0x03da, 0x03f3,
+ 0x0400, 0x0486,
+ 0x0488, 0x0489,
+ 0x048c, 0x04c4,
+ 0x04c7, 0x04c8,
+ 0x04cb, 0x04cc,
+ 0x04d0, 0x04f5,
+ 0x04f8, 0x04f9,
+ 0x0531, 0x0556,
+ 0x0559, 0x055f,
+ 0x0561, 0x0587,
+ 0x0589, 0x058a,
+ 0x0591, 0x05a1,
+ 0x05a3, 0x05b9,
+ 0x05bb, 0x05c4,
+ 0x05d0, 0x05ea,
+ 0x05f0, 0x05f4,
+ 0x060c, 0x060c,
+ 0x061b, 0x061b,
+ 0x061f, 0x061f,
+ 0x0621, 0x063a,
+ 0x0640, 0x0655,
+ 0x0660, 0x066d,
+ 0x0670, 0x06ed,
+ 0x06f0, 0x06fe,
+ 0x0700, 0x070d,
+ 0x070f, 0x072c,
+ 0x0730, 0x074a,
+ 0x0780, 0x07b0,
+ 0x0901, 0x0903,
+ 0x0905, 0x0939,
+ 0x093c, 0x094d,
+ 0x0950, 0x0954,
+ 0x0958, 0x0970,
+ 0x0981, 0x0983,
+ 0x0985, 0x098c,
+ 0x098f, 0x0990,
+ 0x0993, 0x09a8,
+ 0x09aa, 0x09b0,
+ 0x09b2, 0x09b2,
+ 0x09b6, 0x09b9,
+ 0x09bc, 0x09bc,
+ 0x09be, 0x09c4,
+ 0x09c7, 0x09c8,
+ 0x09cb, 0x09cd,
+ 0x09d7, 0x09d7,
+ 0x09dc, 0x09dd,
+ 0x09df, 0x09e3,
+ 0x09e6, 0x09fa,
+ 0x0a02, 0x0a02,
+ 0x0a05, 0x0a0a,
+ 0x0a0f, 0x0a10,
+ 0x0a13, 0x0a28,
+ 0x0a2a, 0x0a30,
+ 0x0a32, 0x0a33,
+ 0x0a35, 0x0a36,
+ 0x0a38, 0x0a39,
+ 0x0a3c, 0x0a3c,
+ 0x0a3e, 0x0a42,
+ 0x0a47, 0x0a48,
+ 0x0a4b, 0x0a4d,
+ 0x0a59, 0x0a5c,
+ 0x0a5e, 0x0a5e,
+ 0x0a66, 0x0a74,
+ 0x0a81, 0x0a83,
+ 0x0a85, 0x0a8b,
+ 0x0a8d, 0x0a8d,
+ 0x0a8f, 0x0a91,
+ 0x0a93, 0x0aa8,
+ 0x0aaa, 0x0ab0,
+ 0x0ab2, 0x0ab3,
+ 0x0ab5, 0x0ab9,
+ 0x0abc, 0x0ac5,
+ 0x0ac7, 0x0ac9,
+ 0x0acb, 0x0acd,
+ 0x0ad0, 0x0ad0,
+ 0x0ae0, 0x0ae0,
+ 0x0ae6, 0x0aef,
+ 0x0b01, 0x0b03,
+ 0x0b05, 0x0b0c,
+ 0x0b0f, 0x0b10,
+ 0x0b13, 0x0b28,
+ 0x0b2a, 0x0b30,
+ 0x0b32, 0x0b33,
+ 0x0b36, 0x0b39,
+ 0x0b3c, 0x0b43,
+ 0x0b47, 0x0b48,
+ 0x0b4b, 0x0b4d,
+ 0x0b56, 0x0b57,
+ 0x0b5c, 0x0b5d,
+ 0x0b5f, 0x0b61,
+ 0x0b66, 0x0b70,
+ 0x0b82, 0x0b83,
+ 0x0b85, 0x0b8a,
+ 0x0b8e, 0x0b90,
+ 0x0b92, 0x0b95,
+ 0x0b99, 0x0b9a,
+ 0x0b9c, 0x0b9c,
+ 0x0b9e, 0x0b9f,
+ 0x0ba3, 0x0ba4,
+ 0x0ba8, 0x0baa,
+ 0x0bae, 0x0bb5,
+ 0x0bb7, 0x0bb9,
+ 0x0bbe, 0x0bc2,
+ 0x0bc6, 0x0bc8,
+ 0x0bca, 0x0bcd,
+ 0x0bd7, 0x0bd7,
+ 0x0be7, 0x0bf2,
+ 0x0c01, 0x0c03,
+ 0x0c05, 0x0c0c,
+ 0x0c0e, 0x0c10,
+ 0x0c12, 0x0c28,
+ 0x0c2a, 0x0c33,
+ 0x0c35, 0x0c39,
+ 0x0c3e, 0x0c44,
+ 0x0c46, 0x0c48,
+ 0x0c4a, 0x0c4d,
+ 0x0c55, 0x0c56,
+ 0x0c60, 0x0c61,
+ 0x0c66, 0x0c6f,
+ 0x0c82, 0x0c83,
+ 0x0c85, 0x0c8c,
+ 0x0c8e, 0x0c90,
+ 0x0c92, 0x0ca8,
+ 0x0caa, 0x0cb3,
+ 0x0cb5, 0x0cb9,
+ 0x0cbe, 0x0cc4,
+ 0x0cc6, 0x0cc8,
+ 0x0cca, 0x0ccd,
+ 0x0cd5, 0x0cd6,
+ 0x0cde, 0x0cde,
+ 0x0ce0, 0x0ce1,
+ 0x0ce6, 0x0cef,
+ 0x0d02, 0x0d03,
+ 0x0d05, 0x0d0c,
+ 0x0d0e, 0x0d10,
+ 0x0d12, 0x0d28,
+ 0x0d2a, 0x0d39,
+ 0x0d3e, 0x0d43,
+ 0x0d46, 0x0d48,
+ 0x0d4a, 0x0d4d,
+ 0x0d57, 0x0d57,
+ 0x0d60, 0x0d61,
+ 0x0d66, 0x0d6f,
+ 0x0d82, 0x0d83,
+ 0x0d85, 0x0d96,
+ 0x0d9a, 0x0db1,
+ 0x0db3, 0x0dbb,
+ 0x0dbd, 0x0dbd,
+ 0x0dc0, 0x0dc6,
+ 0x0dca, 0x0dca,
+ 0x0dcf, 0x0dd4,
+ 0x0dd6, 0x0dd6,
+ 0x0dd8, 0x0ddf,
+ 0x0df2, 0x0df4,
+ 0x0e01, 0x0e3a,
+ 0x0e3f, 0x0e5b,
+ 0x0e81, 0x0e82,
+ 0x0e84, 0x0e84,
+ 0x0e87, 0x0e88,
+ 0x0e8a, 0x0e8a,
+ 0x0e8d, 0x0e8d,
+ 0x0e94, 0x0e97,
+ 0x0e99, 0x0e9f,
+ 0x0ea1, 0x0ea3,
+ 0x0ea5, 0x0ea5,
+ 0x0ea7, 0x0ea7,
+ 0x0eaa, 0x0eab,
+ 0x0ead, 0x0eb9,
+ 0x0ebb, 0x0ebd,
+ 0x0ec0, 0x0ec4,
+ 0x0ec6, 0x0ec6,
+ 0x0ec8, 0x0ecd,
+ 0x0ed0, 0x0ed9,
+ 0x0edc, 0x0edd,
+ 0x0f00, 0x0f47,
+ 0x0f49, 0x0f6a,
+ 0x0f71, 0x0f8b,
+ 0x0f90, 0x0f97,
+ 0x0f99, 0x0fbc,
+ 0x0fbe, 0x0fcc,
+ 0x0fcf, 0x0fcf,
+ 0x1000, 0x1021,
+ 0x1023, 0x1027,
+ 0x1029, 0x102a,
+ 0x102c, 0x1032,
+ 0x1036, 0x1039,
+ 0x1040, 0x1059,
+ 0x10a0, 0x10c5,
+ 0x10d0, 0x10f6,
+ 0x10fb, 0x10fb,
+ 0x1100, 0x1159,
+ 0x115f, 0x11a2,
+ 0x11a8, 0x11f9,
+ 0x1200, 0x1206,
+ 0x1208, 0x1246,
+ 0x1248, 0x1248,
+ 0x124a, 0x124d,
+ 0x1250, 0x1256,
+ 0x1258, 0x1258,
+ 0x125a, 0x125d,
+ 0x1260, 0x1286,
+ 0x1288, 0x1288,
+ 0x128a, 0x128d,
+ 0x1290, 0x12ae,
+ 0x12b0, 0x12b0,
+ 0x12b2, 0x12b5,
+ 0x12b8, 0x12be,
+ 0x12c0, 0x12c0,
+ 0x12c2, 0x12c5,
+ 0x12c8, 0x12ce,
+ 0x12d0, 0x12d6,
+ 0x12d8, 0x12ee,
+ 0x12f0, 0x130e,
+ 0x1310, 0x1310,
+ 0x1312, 0x1315,
+ 0x1318, 0x131e,
+ 0x1320, 0x1346,
+ 0x1348, 0x135a,
+ 0x1361, 0x137c,
+ 0x13a0, 0x13f4,
+ 0x1401, 0x1676,
+ 0x1680, 0x169c,
+ 0x16a0, 0x16f0,
+ 0x1780, 0x17dc,
+ 0x17e0, 0x17e9,
+ 0x1800, 0x180e,
+ 0x1810, 0x1819,
+ 0x1820, 0x1877,
+ 0x1880, 0x18a9,
+ 0x1e00, 0x1e9b,
+ 0x1ea0, 0x1ef9,
+ 0x1f00, 0x1f15,
+ 0x1f18, 0x1f1d,
+ 0x1f20, 0x1f45,
+ 0x1f48, 0x1f4d,
+ 0x1f50, 0x1f57,
+ 0x1f59, 0x1f59,
+ 0x1f5b, 0x1f5b,
+ 0x1f5d, 0x1f5d,
+ 0x1f5f, 0x1f7d,
+ 0x1f80, 0x1fb4,
+ 0x1fb6, 0x1fc4,
+ 0x1fc6, 0x1fd3,
+ 0x1fd6, 0x1fdb,
+ 0x1fdd, 0x1fef,
+ 0x1ff2, 0x1ff4,
+ 0x1ff6, 0x1ffe,
+ 0x2000, 0x2046,
+ 0x2048, 0x204d,
+ 0x206a, 0x2070,
+ 0x2074, 0x208e,
+ 0x20a0, 0x20af,
+ 0x20d0, 0x20e3,
+ 0x2100, 0x213a,
+ 0x2153, 0x2183,
+ 0x2190, 0x21f3,
+ 0x2200, 0x22f1,
+ 0x2300, 0x237b,
+ 0x237d, 0x239a,
+ 0x2400, 0x2426,
+ 0x2440, 0x244a,
+ 0x2460, 0x24ea,
+ 0x2500, 0x2595,
+ 0x25a0, 0x25f7,
+ 0x2600, 0x2613,
+ 0x2619, 0x2671,
+ 0x2701, 0x2704,
+ 0x2706, 0x2709,
+ 0x270c, 0x2727,
+ 0x2729, 0x274b,
+ 0x274d, 0x274d,
+ 0x274f, 0x2752,
+ 0x2756, 0x2756,
+ 0x2758, 0x275e,
+ 0x2761, 0x2767,
+ 0x2776, 0x2794,
+ 0x2798, 0x27af,
+ 0x27b1, 0x27be,
+ 0x2800, 0x28ff,
+ 0x2e80, 0x2e99,
+ 0x2e9b, 0x2ef3,
+ 0x2f00, 0x2fd5,
+ 0x2ff0, 0x2ffb,
+ 0x3000, 0x303a,
+ 0x303e, 0x303f,
+ 0x3041, 0x3094,
+ 0x3099, 0x309e,
+ 0x30a1, 0x30fe,
+ 0x3105, 0x312c,
+ 0x3131, 0x318e,
+ 0x3190, 0x31b7,
+ 0x3200, 0x321c,
+ 0x3220, 0x3243,
+ 0x3260, 0x327b,
+ 0x327f, 0x32b0,
+ 0x32c0, 0x32cb,
+ 0x32d0, 0x32fe,
+ 0x3300, 0x3376,
+ 0x337b, 0x33dd,
+ 0x33e0, 0x33fe,
+ 0x3400, 0x4db5,
+ 0x4e00, 0x9fa5,
+ 0xa000, 0xa48c,
+ 0xa490, 0xa4a1,
+ 0xa4a4, 0xa4b3,
+ 0xa4b5, 0xa4c0,
+ 0xa4c2, 0xa4c4,
+ 0xa4c6, 0xa4c6,
+ 0xac00, 0xd7a3,
+ 0xd800, 0xfa2d,
+ 0xfb00, 0xfb06,
+ 0xfb13, 0xfb17,
+ 0xfb1d, 0xfb36,
+ 0xfb38, 0xfb3c,
+ 0xfb3e, 0xfb3e,
+ 0xfb40, 0xfb41,
+ 0xfb43, 0xfb44,
+ 0xfb46, 0xfbb1,
+ 0xfbd3, 0xfd3f,
+ 0xfd50, 0xfd8f,
+ 0xfd92, 0xfdc7,
+ 0xfdf0, 0xfdfb,
+ 0xfe20, 0xfe23,
+ 0xfe30, 0xfe44,
+ 0xfe49, 0xfe52,
+ 0xfe54, 0xfe66,
+ 0xfe68, 0xfe6b,
+ 0xfe70, 0xfe72,
+ 0xfe74, 0xfe74,
+ 0xfe76, 0xfefc,
+ 0xfeff, 0xfeff,
+ 0xff01, 0xff5e,
+ 0xff61, 0xffbe,
+ 0xffc2, 0xffc7,
+ 0xffca, 0xffcf,
+ 0xffd2, 0xffd7,
+ 0xffda, 0xffdc,
+ 0xffe0, 0xffe6,
+ 0xffe8, 0xffee,
+ 0xfff9, 0xffff,
+ 0x1fffe, 0x1ffff,
+ 0x2fffe, 0x2ffff,
+ 0x3fffe, 0x3ffff,
+ 0x4fffe, 0x4ffff,
+ 0x5fffe, 0x5ffff,
+ 0x6fffe, 0x6ffff,
+ 0x7fffe, 0x7ffff,
+ 0x8fffe, 0x8ffff,
+ 0x9fffe, 0x9ffff,
+ 0xafffe, 0xaffff,
+ 0xbfffe, 0xbffff,
+ 0xcfffe, 0xcffff,
+ 0xdfffe, 0xdffff,
+ 0xefffe, 0x10ffff,
+}; /* CR_Age_3_0 */
+
+/* 'Age_3_1': Derived Age 3.1 */
+static const OnigCodePoint CR_Age_3_1[] = {
+ 402,
+ 0x0000, 0x021f,
+ 0x0222, 0x0233,
+ 0x0250, 0x02ad,
+ 0x02b0, 0x02ee,
+ 0x0300, 0x034e,
+ 0x0360, 0x0362,
+ 0x0374, 0x0375,
+ 0x037a, 0x037a,
+ 0x037e, 0x037e,
+ 0x0384, 0x038a,
+ 0x038c, 0x038c,
+ 0x038e, 0x03a1,
+ 0x03a3, 0x03ce,
+ 0x03d0, 0x03d7,
+ 0x03da, 0x03f5,
+ 0x0400, 0x0486,
+ 0x0488, 0x0489,
+ 0x048c, 0x04c4,
+ 0x04c7, 0x04c8,
+ 0x04cb, 0x04cc,
+ 0x04d0, 0x04f5,
+ 0x04f8, 0x04f9,
+ 0x0531, 0x0556,
+ 0x0559, 0x055f,
+ 0x0561, 0x0587,
+ 0x0589, 0x058a,
+ 0x0591, 0x05a1,
+ 0x05a3, 0x05b9,
+ 0x05bb, 0x05c4,
+ 0x05d0, 0x05ea,
+ 0x05f0, 0x05f4,
+ 0x060c, 0x060c,
+ 0x061b, 0x061b,
+ 0x061f, 0x061f,
+ 0x0621, 0x063a,
+ 0x0640, 0x0655,
+ 0x0660, 0x066d,
+ 0x0670, 0x06ed,
+ 0x06f0, 0x06fe,
+ 0x0700, 0x070d,
+ 0x070f, 0x072c,
+ 0x0730, 0x074a,
+ 0x0780, 0x07b0,
+ 0x0901, 0x0903,
+ 0x0905, 0x0939,
+ 0x093c, 0x094d,
+ 0x0950, 0x0954,
+ 0x0958, 0x0970,
+ 0x0981, 0x0983,
+ 0x0985, 0x098c,
+ 0x098f, 0x0990,
+ 0x0993, 0x09a8,
+ 0x09aa, 0x09b0,
+ 0x09b2, 0x09b2,
+ 0x09b6, 0x09b9,
+ 0x09bc, 0x09bc,
+ 0x09be, 0x09c4,
+ 0x09c7, 0x09c8,
+ 0x09cb, 0x09cd,
+ 0x09d7, 0x09d7,
+ 0x09dc, 0x09dd,
+ 0x09df, 0x09e3,
+ 0x09e6, 0x09fa,
+ 0x0a02, 0x0a02,
+ 0x0a05, 0x0a0a,
+ 0x0a0f, 0x0a10,
+ 0x0a13, 0x0a28,
+ 0x0a2a, 0x0a30,
+ 0x0a32, 0x0a33,
+ 0x0a35, 0x0a36,
+ 0x0a38, 0x0a39,
+ 0x0a3c, 0x0a3c,
+ 0x0a3e, 0x0a42,
+ 0x0a47, 0x0a48,
+ 0x0a4b, 0x0a4d,
+ 0x0a59, 0x0a5c,
+ 0x0a5e, 0x0a5e,
+ 0x0a66, 0x0a74,
+ 0x0a81, 0x0a83,
+ 0x0a85, 0x0a8b,
+ 0x0a8d, 0x0a8d,
+ 0x0a8f, 0x0a91,
+ 0x0a93, 0x0aa8,
+ 0x0aaa, 0x0ab0,
+ 0x0ab2, 0x0ab3,
+ 0x0ab5, 0x0ab9,
+ 0x0abc, 0x0ac5,
+ 0x0ac7, 0x0ac9,
+ 0x0acb, 0x0acd,
+ 0x0ad0, 0x0ad0,
+ 0x0ae0, 0x0ae0,
+ 0x0ae6, 0x0aef,
+ 0x0b01, 0x0b03,
+ 0x0b05, 0x0b0c,
+ 0x0b0f, 0x0b10,
+ 0x0b13, 0x0b28,
+ 0x0b2a, 0x0b30,
+ 0x0b32, 0x0b33,
+ 0x0b36, 0x0b39,
+ 0x0b3c, 0x0b43,
+ 0x0b47, 0x0b48,
+ 0x0b4b, 0x0b4d,
+ 0x0b56, 0x0b57,
+ 0x0b5c, 0x0b5d,
+ 0x0b5f, 0x0b61,
+ 0x0b66, 0x0b70,
+ 0x0b82, 0x0b83,
+ 0x0b85, 0x0b8a,
+ 0x0b8e, 0x0b90,
+ 0x0b92, 0x0b95,
+ 0x0b99, 0x0b9a,
+ 0x0b9c, 0x0b9c,
+ 0x0b9e, 0x0b9f,
+ 0x0ba3, 0x0ba4,
+ 0x0ba8, 0x0baa,
+ 0x0bae, 0x0bb5,
+ 0x0bb7, 0x0bb9,
+ 0x0bbe, 0x0bc2,
+ 0x0bc6, 0x0bc8,
+ 0x0bca, 0x0bcd,
+ 0x0bd7, 0x0bd7,
+ 0x0be7, 0x0bf2,
+ 0x0c01, 0x0c03,
+ 0x0c05, 0x0c0c,
+ 0x0c0e, 0x0c10,
+ 0x0c12, 0x0c28,
+ 0x0c2a, 0x0c33,
+ 0x0c35, 0x0c39,
+ 0x0c3e, 0x0c44,
+ 0x0c46, 0x0c48,
+ 0x0c4a, 0x0c4d,
+ 0x0c55, 0x0c56,
+ 0x0c60, 0x0c61,
+ 0x0c66, 0x0c6f,
+ 0x0c82, 0x0c83,
+ 0x0c85, 0x0c8c,
+ 0x0c8e, 0x0c90,
+ 0x0c92, 0x0ca8,
+ 0x0caa, 0x0cb3,
+ 0x0cb5, 0x0cb9,
+ 0x0cbe, 0x0cc4,
+ 0x0cc6, 0x0cc8,
+ 0x0cca, 0x0ccd,
+ 0x0cd5, 0x0cd6,
+ 0x0cde, 0x0cde,
+ 0x0ce0, 0x0ce1,
+ 0x0ce6, 0x0cef,
+ 0x0d02, 0x0d03,
+ 0x0d05, 0x0d0c,
+ 0x0d0e, 0x0d10,
+ 0x0d12, 0x0d28,
+ 0x0d2a, 0x0d39,
+ 0x0d3e, 0x0d43,
+ 0x0d46, 0x0d48,
+ 0x0d4a, 0x0d4d,
+ 0x0d57, 0x0d57,
+ 0x0d60, 0x0d61,
+ 0x0d66, 0x0d6f,
+ 0x0d82, 0x0d83,
+ 0x0d85, 0x0d96,
+ 0x0d9a, 0x0db1,
+ 0x0db3, 0x0dbb,
+ 0x0dbd, 0x0dbd,
+ 0x0dc0, 0x0dc6,
+ 0x0dca, 0x0dca,
+ 0x0dcf, 0x0dd4,
+ 0x0dd6, 0x0dd6,
+ 0x0dd8, 0x0ddf,
+ 0x0df2, 0x0df4,
+ 0x0e01, 0x0e3a,
+ 0x0e3f, 0x0e5b,
+ 0x0e81, 0x0e82,
+ 0x0e84, 0x0e84,
+ 0x0e87, 0x0e88,
+ 0x0e8a, 0x0e8a,
+ 0x0e8d, 0x0e8d,
+ 0x0e94, 0x0e97,
+ 0x0e99, 0x0e9f,
+ 0x0ea1, 0x0ea3,
+ 0x0ea5, 0x0ea5,
+ 0x0ea7, 0x0ea7,
+ 0x0eaa, 0x0eab,
+ 0x0ead, 0x0eb9,
+ 0x0ebb, 0x0ebd,
+ 0x0ec0, 0x0ec4,
+ 0x0ec6, 0x0ec6,
+ 0x0ec8, 0x0ecd,
+ 0x0ed0, 0x0ed9,
+ 0x0edc, 0x0edd,
+ 0x0f00, 0x0f47,
+ 0x0f49, 0x0f6a,
+ 0x0f71, 0x0f8b,
+ 0x0f90, 0x0f97,
+ 0x0f99, 0x0fbc,
+ 0x0fbe, 0x0fcc,
+ 0x0fcf, 0x0fcf,
+ 0x1000, 0x1021,
+ 0x1023, 0x1027,
+ 0x1029, 0x102a,
+ 0x102c, 0x1032,
+ 0x1036, 0x1039,
+ 0x1040, 0x1059,
+ 0x10a0, 0x10c5,
+ 0x10d0, 0x10f6,
+ 0x10fb, 0x10fb,
+ 0x1100, 0x1159,
+ 0x115f, 0x11a2,
+ 0x11a8, 0x11f9,
+ 0x1200, 0x1206,
+ 0x1208, 0x1246,
+ 0x1248, 0x1248,
+ 0x124a, 0x124d,
+ 0x1250, 0x1256,
+ 0x1258, 0x1258,
+ 0x125a, 0x125d,
+ 0x1260, 0x1286,
+ 0x1288, 0x1288,
+ 0x128a, 0x128d,
+ 0x1290, 0x12ae,
+ 0x12b0, 0x12b0,
+ 0x12b2, 0x12b5,
+ 0x12b8, 0x12be,
+ 0x12c0, 0x12c0,
+ 0x12c2, 0x12c5,
+ 0x12c8, 0x12ce,
+ 0x12d0, 0x12d6,
+ 0x12d8, 0x12ee,
+ 0x12f0, 0x130e,
+ 0x1310, 0x1310,
+ 0x1312, 0x1315,
+ 0x1318, 0x131e,
+ 0x1320, 0x1346,
+ 0x1348, 0x135a,
+ 0x1361, 0x137c,
+ 0x13a0, 0x13f4,
+ 0x1401, 0x1676,
+ 0x1680, 0x169c,
+ 0x16a0, 0x16f0,
+ 0x1780, 0x17dc,
+ 0x17e0, 0x17e9,
+ 0x1800, 0x180e,
+ 0x1810, 0x1819,
+ 0x1820, 0x1877,
+ 0x1880, 0x18a9,
+ 0x1e00, 0x1e9b,
+ 0x1ea0, 0x1ef9,
+ 0x1f00, 0x1f15,
+ 0x1f18, 0x1f1d,
+ 0x1f20, 0x1f45,
+ 0x1f48, 0x1f4d,
+ 0x1f50, 0x1f57,
+ 0x1f59, 0x1f59,
+ 0x1f5b, 0x1f5b,
+ 0x1f5d, 0x1f5d,
+ 0x1f5f, 0x1f7d,
+ 0x1f80, 0x1fb4,
+ 0x1fb6, 0x1fc4,
+ 0x1fc6, 0x1fd3,
+ 0x1fd6, 0x1fdb,
+ 0x1fdd, 0x1fef,
+ 0x1ff2, 0x1ff4,
+ 0x1ff6, 0x1ffe,
+ 0x2000, 0x2046,
+ 0x2048, 0x204d,
+ 0x206a, 0x2070,
+ 0x2074, 0x208e,
+ 0x20a0, 0x20af,
+ 0x20d0, 0x20e3,
+ 0x2100, 0x213a,
+ 0x2153, 0x2183,
+ 0x2190, 0x21f3,
+ 0x2200, 0x22f1,
+ 0x2300, 0x237b,
+ 0x237d, 0x239a,
+ 0x2400, 0x2426,
+ 0x2440, 0x244a,
+ 0x2460, 0x24ea,
+ 0x2500, 0x2595,
+ 0x25a0, 0x25f7,
+ 0x2600, 0x2613,
+ 0x2619, 0x2671,
+ 0x2701, 0x2704,
+ 0x2706, 0x2709,
+ 0x270c, 0x2727,
+ 0x2729, 0x274b,
+ 0x274d, 0x274d,
+ 0x274f, 0x2752,
+ 0x2756, 0x2756,
+ 0x2758, 0x275e,
+ 0x2761, 0x2767,
+ 0x2776, 0x2794,
+ 0x2798, 0x27af,
+ 0x27b1, 0x27be,
+ 0x2800, 0x28ff,
+ 0x2e80, 0x2e99,
+ 0x2e9b, 0x2ef3,
+ 0x2f00, 0x2fd5,
+ 0x2ff0, 0x2ffb,
+ 0x3000, 0x303a,
+ 0x303e, 0x303f,
+ 0x3041, 0x3094,
+ 0x3099, 0x309e,
+ 0x30a1, 0x30fe,
+ 0x3105, 0x312c,
+ 0x3131, 0x318e,
+ 0x3190, 0x31b7,
+ 0x3200, 0x321c,
+ 0x3220, 0x3243,
+ 0x3260, 0x327b,
+ 0x327f, 0x32b0,
+ 0x32c0, 0x32cb,
+ 0x32d0, 0x32fe,
+ 0x3300, 0x3376,
+ 0x337b, 0x33dd,
+ 0x33e0, 0x33fe,
+ 0x3400, 0x4db5,
+ 0x4e00, 0x9fa5,
+ 0xa000, 0xa48c,
+ 0xa490, 0xa4a1,
+ 0xa4a4, 0xa4b3,
+ 0xa4b5, 0xa4c0,
+ 0xa4c2, 0xa4c4,
+ 0xa4c6, 0xa4c6,
+ 0xac00, 0xd7a3,
+ 0xd800, 0xfa2d,
+ 0xfb00, 0xfb06,
+ 0xfb13, 0xfb17,
+ 0xfb1d, 0xfb36,
+ 0xfb38, 0xfb3c,
+ 0xfb3e, 0xfb3e,
+ 0xfb40, 0xfb41,
+ 0xfb43, 0xfb44,
+ 0xfb46, 0xfbb1,
+ 0xfbd3, 0xfd3f,
+ 0xfd50, 0xfd8f,
+ 0xfd92, 0xfdc7,
+ 0xfdd0, 0xfdfb,
+ 0xfe20, 0xfe23,
+ 0xfe30, 0xfe44,
+ 0xfe49, 0xfe52,
+ 0xfe54, 0xfe66,
+ 0xfe68, 0xfe6b,
+ 0xfe70, 0xfe72,
+ 0xfe74, 0xfe74,
+ 0xfe76, 0xfefc,
+ 0xfeff, 0xfeff,
+ 0xff01, 0xff5e,
+ 0xff61, 0xffbe,
+ 0xffc2, 0xffc7,
+ 0xffca, 0xffcf,
+ 0xffd2, 0xffd7,
+ 0xffda, 0xffdc,
+ 0xffe0, 0xffe6,
+ 0xffe8, 0xffee,
+ 0xfff9, 0xffff,
+ 0x10300, 0x1031e,
+ 0x10320, 0x10323,
+ 0x10330, 0x1034a,
+ 0x10400, 0x10425,
+ 0x10428, 0x1044d,
+ 0x1d000, 0x1d0f5,
+ 0x1d100, 0x1d126,
+ 0x1d12a, 0x1d1dd,
+ 0x1d400, 0x1d454,
+ 0x1d456, 0x1d49c,
+ 0x1d49e, 0x1d49f,
+ 0x1d4a2, 0x1d4a2,
+ 0x1d4a5, 0x1d4a6,
+ 0x1d4a9, 0x1d4ac,
+ 0x1d4ae, 0x1d4b9,
+ 0x1d4bb, 0x1d4bb,
+ 0x1d4bd, 0x1d4c0,
+ 0x1d4c2, 0x1d4c3,
+ 0x1d4c5, 0x1d505,
+ 0x1d507, 0x1d50a,
+ 0x1d50d, 0x1d514,
+ 0x1d516, 0x1d51c,
+ 0x1d51e, 0x1d539,
+ 0x1d53b, 0x1d53e,
+ 0x1d540, 0x1d544,
+ 0x1d546, 0x1d546,
+ 0x1d54a, 0x1d550,
+ 0x1d552, 0x1d6a3,
+ 0x1d6a8, 0x1d7c9,
+ 0x1d7ce, 0x1d7ff,
+ 0x1fffe, 0x2a6d6,
+ 0x2f800, 0x2fa1d,
+ 0x2fffe, 0x2ffff,
+ 0x3fffe, 0x3ffff,
+ 0x4fffe, 0x4ffff,
+ 0x5fffe, 0x5ffff,
+ 0x6fffe, 0x6ffff,
+ 0x7fffe, 0x7ffff,
+ 0x8fffe, 0x8ffff,
+ 0x9fffe, 0x9ffff,
+ 0xafffe, 0xaffff,
+ 0xbfffe, 0xbffff,
+ 0xcfffe, 0xcffff,
+ 0xdfffe, 0xdffff,
+ 0xe0001, 0xe0001,
+ 0xe0020, 0xe007f,
+ 0xefffe, 0x10ffff,
+}; /* CR_Age_3_1 */
+
+/* 'Age_3_2': Derived Age 3.2 */
+static const OnigCodePoint CR_Age_3_2[] = {
+ 397,
+ 0x0000, 0x0220,
+ 0x0222, 0x0233,
+ 0x0250, 0x02ad,
+ 0x02b0, 0x02ee,
+ 0x0300, 0x034f,
+ 0x0360, 0x036f,
+ 0x0374, 0x0375,
+ 0x037a, 0x037a,
+ 0x037e, 0x037e,
+ 0x0384, 0x038a,
+ 0x038c, 0x038c,
+ 0x038e, 0x03a1,
+ 0x03a3, 0x03ce,
+ 0x03d0, 0x03f6,
+ 0x0400, 0x0486,
+ 0x0488, 0x04ce,
+ 0x04d0, 0x04f5,
+ 0x04f8, 0x04f9,
+ 0x0500, 0x050f,
+ 0x0531, 0x0556,
+ 0x0559, 0x055f,
+ 0x0561, 0x0587,
+ 0x0589, 0x058a,
+ 0x0591, 0x05a1,
+ 0x05a3, 0x05b9,
+ 0x05bb, 0x05c4,
+ 0x05d0, 0x05ea,
+ 0x05f0, 0x05f4,
+ 0x060c, 0x060c,
+ 0x061b, 0x061b,
+ 0x061f, 0x061f,
+ 0x0621, 0x063a,
+ 0x0640, 0x0655,
+ 0x0660, 0x06ed,
+ 0x06f0, 0x06fe,
+ 0x0700, 0x070d,
+ 0x070f, 0x072c,
+ 0x0730, 0x074a,
+ 0x0780, 0x07b1,
+ 0x0901, 0x0903,
+ 0x0905, 0x0939,
+ 0x093c, 0x094d,
+ 0x0950, 0x0954,
+ 0x0958, 0x0970,
+ 0x0981, 0x0983,
+ 0x0985, 0x098c,
+ 0x098f, 0x0990,
+ 0x0993, 0x09a8,
+ 0x09aa, 0x09b0,
+ 0x09b2, 0x09b2,
+ 0x09b6, 0x09b9,
+ 0x09bc, 0x09bc,
+ 0x09be, 0x09c4,
+ 0x09c7, 0x09c8,
+ 0x09cb, 0x09cd,
+ 0x09d7, 0x09d7,
+ 0x09dc, 0x09dd,
+ 0x09df, 0x09e3,
+ 0x09e6, 0x09fa,
+ 0x0a02, 0x0a02,
+ 0x0a05, 0x0a0a,
+ 0x0a0f, 0x0a10,
+ 0x0a13, 0x0a28,
+ 0x0a2a, 0x0a30,
+ 0x0a32, 0x0a33,
+ 0x0a35, 0x0a36,
+ 0x0a38, 0x0a39,
+ 0x0a3c, 0x0a3c,
+ 0x0a3e, 0x0a42,
+ 0x0a47, 0x0a48,
+ 0x0a4b, 0x0a4d,
+ 0x0a59, 0x0a5c,
+ 0x0a5e, 0x0a5e,
+ 0x0a66, 0x0a74,
+ 0x0a81, 0x0a83,
+ 0x0a85, 0x0a8b,
+ 0x0a8d, 0x0a8d,
+ 0x0a8f, 0x0a91,
+ 0x0a93, 0x0aa8,
+ 0x0aaa, 0x0ab0,
+ 0x0ab2, 0x0ab3,
+ 0x0ab5, 0x0ab9,
+ 0x0abc, 0x0ac5,
+ 0x0ac7, 0x0ac9,
+ 0x0acb, 0x0acd,
+ 0x0ad0, 0x0ad0,
+ 0x0ae0, 0x0ae0,
+ 0x0ae6, 0x0aef,
+ 0x0b01, 0x0b03,
+ 0x0b05, 0x0b0c,
+ 0x0b0f, 0x0b10,
+ 0x0b13, 0x0b28,
+ 0x0b2a, 0x0b30,
+ 0x0b32, 0x0b33,
+ 0x0b36, 0x0b39,
+ 0x0b3c, 0x0b43,
+ 0x0b47, 0x0b48,
+ 0x0b4b, 0x0b4d,
+ 0x0b56, 0x0b57,
+ 0x0b5c, 0x0b5d,
+ 0x0b5f, 0x0b61,
+ 0x0b66, 0x0b70,
+ 0x0b82, 0x0b83,
+ 0x0b85, 0x0b8a,
+ 0x0b8e, 0x0b90,
+ 0x0b92, 0x0b95,
+ 0x0b99, 0x0b9a,
+ 0x0b9c, 0x0b9c,
+ 0x0b9e, 0x0b9f,
+ 0x0ba3, 0x0ba4,
+ 0x0ba8, 0x0baa,
+ 0x0bae, 0x0bb5,
+ 0x0bb7, 0x0bb9,
+ 0x0bbe, 0x0bc2,
+ 0x0bc6, 0x0bc8,
+ 0x0bca, 0x0bcd,
+ 0x0bd7, 0x0bd7,
+ 0x0be7, 0x0bf2,
+ 0x0c01, 0x0c03,
+ 0x0c05, 0x0c0c,
+ 0x0c0e, 0x0c10,
+ 0x0c12, 0x0c28,
+ 0x0c2a, 0x0c33,
+ 0x0c35, 0x0c39,
+ 0x0c3e, 0x0c44,
+ 0x0c46, 0x0c48,
+ 0x0c4a, 0x0c4d,
+ 0x0c55, 0x0c56,
+ 0x0c60, 0x0c61,
+ 0x0c66, 0x0c6f,
+ 0x0c82, 0x0c83,
+ 0x0c85, 0x0c8c,
+ 0x0c8e, 0x0c90,
+ 0x0c92, 0x0ca8,
+ 0x0caa, 0x0cb3,
+ 0x0cb5, 0x0cb9,
+ 0x0cbe, 0x0cc4,
+ 0x0cc6, 0x0cc8,
+ 0x0cca, 0x0ccd,
+ 0x0cd5, 0x0cd6,
+ 0x0cde, 0x0cde,
+ 0x0ce0, 0x0ce1,
+ 0x0ce6, 0x0cef,
+ 0x0d02, 0x0d03,
+ 0x0d05, 0x0d0c,
+ 0x0d0e, 0x0d10,
+ 0x0d12, 0x0d28,
+ 0x0d2a, 0x0d39,
+ 0x0d3e, 0x0d43,
+ 0x0d46, 0x0d48,
+ 0x0d4a, 0x0d4d,
+ 0x0d57, 0x0d57,
+ 0x0d60, 0x0d61,
+ 0x0d66, 0x0d6f,
+ 0x0d82, 0x0d83,
+ 0x0d85, 0x0d96,
+ 0x0d9a, 0x0db1,
+ 0x0db3, 0x0dbb,
+ 0x0dbd, 0x0dbd,
+ 0x0dc0, 0x0dc6,
+ 0x0dca, 0x0dca,
+ 0x0dcf, 0x0dd4,
+ 0x0dd6, 0x0dd6,
+ 0x0dd8, 0x0ddf,
+ 0x0df2, 0x0df4,
+ 0x0e01, 0x0e3a,
+ 0x0e3f, 0x0e5b,
+ 0x0e81, 0x0e82,
+ 0x0e84, 0x0e84,
+ 0x0e87, 0x0e88,
+ 0x0e8a, 0x0e8a,
+ 0x0e8d, 0x0e8d,
+ 0x0e94, 0x0e97,
+ 0x0e99, 0x0e9f,
+ 0x0ea1, 0x0ea3,
+ 0x0ea5, 0x0ea5,
+ 0x0ea7, 0x0ea7,
+ 0x0eaa, 0x0eab,
+ 0x0ead, 0x0eb9,
+ 0x0ebb, 0x0ebd,
+ 0x0ec0, 0x0ec4,
+ 0x0ec6, 0x0ec6,
+ 0x0ec8, 0x0ecd,
+ 0x0ed0, 0x0ed9,
+ 0x0edc, 0x0edd,
+ 0x0f00, 0x0f47,
+ 0x0f49, 0x0f6a,
+ 0x0f71, 0x0f8b,
+ 0x0f90, 0x0f97,
+ 0x0f99, 0x0fbc,
+ 0x0fbe, 0x0fcc,
+ 0x0fcf, 0x0fcf,
+ 0x1000, 0x1021,
+ 0x1023, 0x1027,
+ 0x1029, 0x102a,
+ 0x102c, 0x1032,
+ 0x1036, 0x1039,
+ 0x1040, 0x1059,
+ 0x10a0, 0x10c5,
+ 0x10d0, 0x10f8,
+ 0x10fb, 0x10fb,
+ 0x1100, 0x1159,
+ 0x115f, 0x11a2,
+ 0x11a8, 0x11f9,
+ 0x1200, 0x1206,
+ 0x1208, 0x1246,
+ 0x1248, 0x1248,
+ 0x124a, 0x124d,
+ 0x1250, 0x1256,
+ 0x1258, 0x1258,
+ 0x125a, 0x125d,
+ 0x1260, 0x1286,
+ 0x1288, 0x1288,
+ 0x128a, 0x128d,
+ 0x1290, 0x12ae,
+ 0x12b0, 0x12b0,
+ 0x12b2, 0x12b5,
+ 0x12b8, 0x12be,
+ 0x12c0, 0x12c0,
+ 0x12c2, 0x12c5,
+ 0x12c8, 0x12ce,
+ 0x12d0, 0x12d6,
+ 0x12d8, 0x12ee,
+ 0x12f0, 0x130e,
+ 0x1310, 0x1310,
+ 0x1312, 0x1315,
+ 0x1318, 0x131e,
+ 0x1320, 0x1346,
+ 0x1348, 0x135a,
+ 0x1361, 0x137c,
+ 0x13a0, 0x13f4,
+ 0x1401, 0x1676,
+ 0x1680, 0x169c,
+ 0x16a0, 0x16f0,
+ 0x1700, 0x170c,
+ 0x170e, 0x1714,
+ 0x1720, 0x1736,
+ 0x1740, 0x1753,
+ 0x1760, 0x176c,
+ 0x176e, 0x1770,
+ 0x1772, 0x1773,
+ 0x1780, 0x17dc,
+ 0x17e0, 0x17e9,
+ 0x1800, 0x180e,
+ 0x1810, 0x1819,
+ 0x1820, 0x1877,
+ 0x1880, 0x18a9,
+ 0x1e00, 0x1e9b,
+ 0x1ea0, 0x1ef9,
+ 0x1f00, 0x1f15,
+ 0x1f18, 0x1f1d,
+ 0x1f20, 0x1f45,
+ 0x1f48, 0x1f4d,
+ 0x1f50, 0x1f57,
+ 0x1f59, 0x1f59,
+ 0x1f5b, 0x1f5b,
+ 0x1f5d, 0x1f5d,
+ 0x1f5f, 0x1f7d,
+ 0x1f80, 0x1fb4,
+ 0x1fb6, 0x1fc4,
+ 0x1fc6, 0x1fd3,
+ 0x1fd6, 0x1fdb,
+ 0x1fdd, 0x1fef,
+ 0x1ff2, 0x1ff4,
+ 0x1ff6, 0x1ffe,
+ 0x2000, 0x2052,
+ 0x2057, 0x2057,
+ 0x205f, 0x2063,
+ 0x206a, 0x2071,
+ 0x2074, 0x208e,
+ 0x20a0, 0x20b1,
+ 0x20d0, 0x20ea,
+ 0x2100, 0x213a,
+ 0x213d, 0x214b,
+ 0x2153, 0x2183,
+ 0x2190, 0x23ce,
+ 0x2400, 0x2426,
+ 0x2440, 0x244a,
+ 0x2460, 0x24fe,
+ 0x2500, 0x2613,
+ 0x2616, 0x2617,
+ 0x2619, 0x267d,
+ 0x2680, 0x2689,
+ 0x2701, 0x2704,
+ 0x2706, 0x2709,
+ 0x270c, 0x2727,
+ 0x2729, 0x274b,
+ 0x274d, 0x274d,
+ 0x274f, 0x2752,
+ 0x2756, 0x2756,
+ 0x2758, 0x275e,
+ 0x2761, 0x2794,
+ 0x2798, 0x27af,
+ 0x27b1, 0x27be,
+ 0x27d0, 0x27eb,
+ 0x27f0, 0x2aff,
+ 0x2e80, 0x2e99,
+ 0x2e9b, 0x2ef3,
+ 0x2f00, 0x2fd5,
+ 0x2ff0, 0x2ffb,
+ 0x3000, 0x303f,
+ 0x3041, 0x3096,
+ 0x3099, 0x30ff,
+ 0x3105, 0x312c,
+ 0x3131, 0x318e,
+ 0x3190, 0x31b7,
+ 0x31f0, 0x321c,
+ 0x3220, 0x3243,
+ 0x3251, 0x327b,
+ 0x327f, 0x32cb,
+ 0x32d0, 0x32fe,
+ 0x3300, 0x3376,
+ 0x337b, 0x33dd,
+ 0x33e0, 0x33fe,
+ 0x3400, 0x4db5,
+ 0x4e00, 0x9fa5,
+ 0xa000, 0xa48c,
+ 0xa490, 0xa4c6,
+ 0xac00, 0xd7a3,
+ 0xd800, 0xfa2d,
+ 0xfa30, 0xfa6a,
+ 0xfb00, 0xfb06,
+ 0xfb13, 0xfb17,
+ 0xfb1d, 0xfb36,
+ 0xfb38, 0xfb3c,
+ 0xfb3e, 0xfb3e,
+ 0xfb40, 0xfb41,
+ 0xfb43, 0xfb44,
+ 0xfb46, 0xfbb1,
+ 0xfbd3, 0xfd3f,
+ 0xfd50, 0xfd8f,
+ 0xfd92, 0xfdc7,
+ 0xfdd0, 0xfdfc,
+ 0xfe00, 0xfe0f,
+ 0xfe20, 0xfe23,
+ 0xfe30, 0xfe46,
+ 0xfe49, 0xfe52,
+ 0xfe54, 0xfe66,
+ 0xfe68, 0xfe6b,
+ 0xfe70, 0xfe74,
+ 0xfe76, 0xfefc,
+ 0xfeff, 0xfeff,
+ 0xff01, 0xffbe,
+ 0xffc2, 0xffc7,
+ 0xffca, 0xffcf,
+ 0xffd2, 0xffd7,
+ 0xffda, 0xffdc,
+ 0xffe0, 0xffe6,
+ 0xffe8, 0xffee,
+ 0xfff9, 0xffff,
+ 0x10300, 0x1031e,
+ 0x10320, 0x10323,
+ 0x10330, 0x1034a,
+ 0x10400, 0x10425,
+ 0x10428, 0x1044d,
+ 0x1d000, 0x1d0f5,
+ 0x1d100, 0x1d126,
+ 0x1d12a, 0x1d1dd,
+ 0x1d400, 0x1d454,
+ 0x1d456, 0x1d49c,
+ 0x1d49e, 0x1d49f,
+ 0x1d4a2, 0x1d4a2,
+ 0x1d4a5, 0x1d4a6,
+ 0x1d4a9, 0x1d4ac,
+ 0x1d4ae, 0x1d4b9,
+ 0x1d4bb, 0x1d4bb,
+ 0x1d4bd, 0x1d4c0,
+ 0x1d4c2, 0x1d4c3,
+ 0x1d4c5, 0x1d505,
+ 0x1d507, 0x1d50a,
+ 0x1d50d, 0x1d514,
+ 0x1d516, 0x1d51c,
+ 0x1d51e, 0x1d539,
+ 0x1d53b, 0x1d53e,
+ 0x1d540, 0x1d544,
+ 0x1d546, 0x1d546,
+ 0x1d54a, 0x1d550,
+ 0x1d552, 0x1d6a3,
+ 0x1d6a8, 0x1d7c9,
+ 0x1d7ce, 0x1d7ff,
+ 0x1fffe, 0x2a6d6,
+ 0x2f800, 0x2fa1d,
+ 0x2fffe, 0x2ffff,
+ 0x3fffe, 0x3ffff,
+ 0x4fffe, 0x4ffff,
+ 0x5fffe, 0x5ffff,
+ 0x6fffe, 0x6ffff,
+ 0x7fffe, 0x7ffff,
+ 0x8fffe, 0x8ffff,
+ 0x9fffe, 0x9ffff,
+ 0xafffe, 0xaffff,
+ 0xbfffe, 0xbffff,
+ 0xcfffe, 0xcffff,
+ 0xdfffe, 0xdffff,
+ 0xe0001, 0xe0001,
+ 0xe0020, 0xe007f,
+ 0xefffe, 0x10ffff,
+}; /* CR_Age_3_2 */
+
+/* 'Age_4_0': Derived Age 4.0 */
+static const OnigCodePoint CR_Age_4_0[] = {
+ 412,
+ 0x0000, 0x0236,
+ 0x0250, 0x0357,
+ 0x035d, 0x036f,
+ 0x0374, 0x0375,
+ 0x037a, 0x037a,
+ 0x037e, 0x037e,
+ 0x0384, 0x038a,
+ 0x038c, 0x038c,
+ 0x038e, 0x03a1,
+ 0x03a3, 0x03ce,
+ 0x03d0, 0x03fb,
+ 0x0400, 0x0486,
+ 0x0488, 0x04ce,
+ 0x04d0, 0x04f5,
+ 0x04f8, 0x04f9,
+ 0x0500, 0x050f,
+ 0x0531, 0x0556,
+ 0x0559, 0x055f,
+ 0x0561, 0x0587,
+ 0x0589, 0x058a,
+ 0x0591, 0x05a1,
+ 0x05a3, 0x05b9,
+ 0x05bb, 0x05c4,
+ 0x05d0, 0x05ea,
+ 0x05f0, 0x05f4,
+ 0x0600, 0x0603,
+ 0x060c, 0x0615,
+ 0x061b, 0x061b,
+ 0x061f, 0x061f,
+ 0x0621, 0x063a,
+ 0x0640, 0x0658,
+ 0x0660, 0x070d,
+ 0x070f, 0x074a,
+ 0x074d, 0x074f,
+ 0x0780, 0x07b1,
+ 0x0901, 0x0939,
+ 0x093c, 0x094d,
+ 0x0950, 0x0954,
+ 0x0958, 0x0970,
+ 0x0981, 0x0983,
+ 0x0985, 0x098c,
+ 0x098f, 0x0990,
+ 0x0993, 0x09a8,
+ 0x09aa, 0x09b0,
+ 0x09b2, 0x09b2,
+ 0x09b6, 0x09b9,
+ 0x09bc, 0x09c4,
+ 0x09c7, 0x09c8,
+ 0x09cb, 0x09cd,
+ 0x09d7, 0x09d7,
+ 0x09dc, 0x09dd,
+ 0x09df, 0x09e3,
+ 0x09e6, 0x09fa,
+ 0x0a01, 0x0a03,
+ 0x0a05, 0x0a0a,
+ 0x0a0f, 0x0a10,
+ 0x0a13, 0x0a28,
+ 0x0a2a, 0x0a30,
+ 0x0a32, 0x0a33,
+ 0x0a35, 0x0a36,
+ 0x0a38, 0x0a39,
+ 0x0a3c, 0x0a3c,
+ 0x0a3e, 0x0a42,
+ 0x0a47, 0x0a48,
+ 0x0a4b, 0x0a4d,
+ 0x0a59, 0x0a5c,
+ 0x0a5e, 0x0a5e,
+ 0x0a66, 0x0a74,
+ 0x0a81, 0x0a83,
+ 0x0a85, 0x0a8d,
+ 0x0a8f, 0x0a91,
+ 0x0a93, 0x0aa8,
+ 0x0aaa, 0x0ab0,
+ 0x0ab2, 0x0ab3,
+ 0x0ab5, 0x0ab9,
+ 0x0abc, 0x0ac5,
+ 0x0ac7, 0x0ac9,
+ 0x0acb, 0x0acd,
+ 0x0ad0, 0x0ad0,
+ 0x0ae0, 0x0ae3,
+ 0x0ae6, 0x0aef,
+ 0x0af1, 0x0af1,
+ 0x0b01, 0x0b03,
+ 0x0b05, 0x0b0c,
+ 0x0b0f, 0x0b10,
+ 0x0b13, 0x0b28,
+ 0x0b2a, 0x0b30,
+ 0x0b32, 0x0b33,
+ 0x0b35, 0x0b39,
+ 0x0b3c, 0x0b43,
+ 0x0b47, 0x0b48,
+ 0x0b4b, 0x0b4d,
+ 0x0b56, 0x0b57,
+ 0x0b5c, 0x0b5d,
+ 0x0b5f, 0x0b61,
+ 0x0b66, 0x0b71,
+ 0x0b82, 0x0b83,
+ 0x0b85, 0x0b8a,
+ 0x0b8e, 0x0b90,
+ 0x0b92, 0x0b95,
+ 0x0b99, 0x0b9a,
+ 0x0b9c, 0x0b9c,
+ 0x0b9e, 0x0b9f,
+ 0x0ba3, 0x0ba4,
+ 0x0ba8, 0x0baa,
+ 0x0bae, 0x0bb5,
+ 0x0bb7, 0x0bb9,
+ 0x0bbe, 0x0bc2,
+ 0x0bc6, 0x0bc8,
+ 0x0bca, 0x0bcd,
+ 0x0bd7, 0x0bd7,
+ 0x0be7, 0x0bfa,
+ 0x0c01, 0x0c03,
+ 0x0c05, 0x0c0c,
+ 0x0c0e, 0x0c10,
+ 0x0c12, 0x0c28,
+ 0x0c2a, 0x0c33,
+ 0x0c35, 0x0c39,
+ 0x0c3e, 0x0c44,
+ 0x0c46, 0x0c48,
+ 0x0c4a, 0x0c4d,
+ 0x0c55, 0x0c56,
+ 0x0c60, 0x0c61,
+ 0x0c66, 0x0c6f,
+ 0x0c82, 0x0c83,
+ 0x0c85, 0x0c8c,
+ 0x0c8e, 0x0c90,
+ 0x0c92, 0x0ca8,
+ 0x0caa, 0x0cb3,
+ 0x0cb5, 0x0cb9,
+ 0x0cbc, 0x0cc4,
+ 0x0cc6, 0x0cc8,
+ 0x0cca, 0x0ccd,
+ 0x0cd5, 0x0cd6,
+ 0x0cde, 0x0cde,
+ 0x0ce0, 0x0ce1,
+ 0x0ce6, 0x0cef,
+ 0x0d02, 0x0d03,
+ 0x0d05, 0x0d0c,
+ 0x0d0e, 0x0d10,
+ 0x0d12, 0x0d28,
+ 0x0d2a, 0x0d39,
+ 0x0d3e, 0x0d43,
+ 0x0d46, 0x0d48,
+ 0x0d4a, 0x0d4d,
+ 0x0d57, 0x0d57,
+ 0x0d60, 0x0d61,
+ 0x0d66, 0x0d6f,
+ 0x0d82, 0x0d83,
+ 0x0d85, 0x0d96,
+ 0x0d9a, 0x0db1,
+ 0x0db3, 0x0dbb,
+ 0x0dbd, 0x0dbd,
+ 0x0dc0, 0x0dc6,
+ 0x0dca, 0x0dca,
+ 0x0dcf, 0x0dd4,
+ 0x0dd6, 0x0dd6,
+ 0x0dd8, 0x0ddf,
+ 0x0df2, 0x0df4,
+ 0x0e01, 0x0e3a,
+ 0x0e3f, 0x0e5b,
+ 0x0e81, 0x0e82,
+ 0x0e84, 0x0e84,
+ 0x0e87, 0x0e88,
+ 0x0e8a, 0x0e8a,
+ 0x0e8d, 0x0e8d,
+ 0x0e94, 0x0e97,
+ 0x0e99, 0x0e9f,
+ 0x0ea1, 0x0ea3,
+ 0x0ea5, 0x0ea5,
+ 0x0ea7, 0x0ea7,
+ 0x0eaa, 0x0eab,
+ 0x0ead, 0x0eb9,
+ 0x0ebb, 0x0ebd,
+ 0x0ec0, 0x0ec4,
+ 0x0ec6, 0x0ec6,
+ 0x0ec8, 0x0ecd,
+ 0x0ed0, 0x0ed9,
+ 0x0edc, 0x0edd,
+ 0x0f00, 0x0f47,
+ 0x0f49, 0x0f6a,
+ 0x0f71, 0x0f8b,
+ 0x0f90, 0x0f97,
+ 0x0f99, 0x0fbc,
+ 0x0fbe, 0x0fcc,
+ 0x0fcf, 0x0fcf,
+ 0x1000, 0x1021,
+ 0x1023, 0x1027,
+ 0x1029, 0x102a,
+ 0x102c, 0x1032,
+ 0x1036, 0x1039,
+ 0x1040, 0x1059,
+ 0x10a0, 0x10c5,
+ 0x10d0, 0x10f8,
+ 0x10fb, 0x10fb,
+ 0x1100, 0x1159,
+ 0x115f, 0x11a2,
+ 0x11a8, 0x11f9,
+ 0x1200, 0x1206,
+ 0x1208, 0x1246,
+ 0x1248, 0x1248,
+ 0x124a, 0x124d,
+ 0x1250, 0x1256,
+ 0x1258, 0x1258,
+ 0x125a, 0x125d,
+ 0x1260, 0x1286,
+ 0x1288, 0x1288,
+ 0x128a, 0x128d,
+ 0x1290, 0x12ae,
+ 0x12b0, 0x12b0,
+ 0x12b2, 0x12b5,
+ 0x12b8, 0x12be,
+ 0x12c0, 0x12c0,
+ 0x12c2, 0x12c5,
+ 0x12c8, 0x12ce,
+ 0x12d0, 0x12d6,
+ 0x12d8, 0x12ee,
+ 0x12f0, 0x130e,
+ 0x1310, 0x1310,
+ 0x1312, 0x1315,
+ 0x1318, 0x131e,
+ 0x1320, 0x1346,
+ 0x1348, 0x135a,
+ 0x1361, 0x137c,
+ 0x13a0, 0x13f4,
+ 0x1401, 0x1676,
+ 0x1680, 0x169c,
+ 0x16a0, 0x16f0,
+ 0x1700, 0x170c,
+ 0x170e, 0x1714,
+ 0x1720, 0x1736,
+ 0x1740, 0x1753,
+ 0x1760, 0x176c,
+ 0x176e, 0x1770,
+ 0x1772, 0x1773,
+ 0x1780, 0x17dd,
+ 0x17e0, 0x17e9,
+ 0x17f0, 0x17f9,
+ 0x1800, 0x180e,
+ 0x1810, 0x1819,
+ 0x1820, 0x1877,
+ 0x1880, 0x18a9,
+ 0x1900, 0x191c,
+ 0x1920, 0x192b,
+ 0x1930, 0x193b,
+ 0x1940, 0x1940,
+ 0x1944, 0x196d,
+ 0x1970, 0x1974,
+ 0x19e0, 0x19ff,
+ 0x1d00, 0x1d6b,
+ 0x1e00, 0x1e9b,
+ 0x1ea0, 0x1ef9,
+ 0x1f00, 0x1f15,
+ 0x1f18, 0x1f1d,
+ 0x1f20, 0x1f45,
+ 0x1f48, 0x1f4d,
+ 0x1f50, 0x1f57,
+ 0x1f59, 0x1f59,
+ 0x1f5b, 0x1f5b,
+ 0x1f5d, 0x1f5d,
+ 0x1f5f, 0x1f7d,
+ 0x1f80, 0x1fb4,
+ 0x1fb6, 0x1fc4,
+ 0x1fc6, 0x1fd3,
+ 0x1fd6, 0x1fdb,
+ 0x1fdd, 0x1fef,
+ 0x1ff2, 0x1ff4,
+ 0x1ff6, 0x1ffe,
+ 0x2000, 0x2054,
+ 0x2057, 0x2057,
+ 0x205f, 0x2063,
+ 0x206a, 0x2071,
+ 0x2074, 0x208e,
+ 0x20a0, 0x20b1,
+ 0x20d0, 0x20ea,
+ 0x2100, 0x213b,
+ 0x213d, 0x214b,
+ 0x2153, 0x2183,
+ 0x2190, 0x23d0,
+ 0x2400, 0x2426,
+ 0x2440, 0x244a,
+ 0x2460, 0x2617,
+ 0x2619, 0x267d,
+ 0x2680, 0x2691,
+ 0x26a0, 0x26a1,
+ 0x2701, 0x2704,
+ 0x2706, 0x2709,
+ 0x270c, 0x2727,
+ 0x2729, 0x274b,
+ 0x274d, 0x274d,
+ 0x274f, 0x2752,
+ 0x2756, 0x2756,
+ 0x2758, 0x275e,
+ 0x2761, 0x2794,
+ 0x2798, 0x27af,
+ 0x27b1, 0x27be,
+ 0x27d0, 0x27eb,
+ 0x27f0, 0x2b0d,
+ 0x2e80, 0x2e99,
+ 0x2e9b, 0x2ef3,
+ 0x2f00, 0x2fd5,
+ 0x2ff0, 0x2ffb,
+ 0x3000, 0x303f,
+ 0x3041, 0x3096,
+ 0x3099, 0x30ff,
+ 0x3105, 0x312c,
+ 0x3131, 0x318e,
+ 0x3190, 0x31b7,
+ 0x31f0, 0x321e,
+ 0x3220, 0x3243,
+ 0x3250, 0x327d,
+ 0x327f, 0x32fe,
+ 0x3300, 0x4db5,
+ 0x4dc0, 0x9fa5,
+ 0xa000, 0xa48c,
+ 0xa490, 0xa4c6,
+ 0xac00, 0xd7a3,
+ 0xd800, 0xfa2d,
+ 0xfa30, 0xfa6a,
+ 0xfb00, 0xfb06,
+ 0xfb13, 0xfb17,
+ 0xfb1d, 0xfb36,
+ 0xfb38, 0xfb3c,
+ 0xfb3e, 0xfb3e,
+ 0xfb40, 0xfb41,
+ 0xfb43, 0xfb44,
+ 0xfb46, 0xfbb1,
+ 0xfbd3, 0xfd3f,
+ 0xfd50, 0xfd8f,
+ 0xfd92, 0xfdc7,
+ 0xfdd0, 0xfdfd,
+ 0xfe00, 0xfe0f,
+ 0xfe20, 0xfe23,
+ 0xfe30, 0xfe52,
+ 0xfe54, 0xfe66,
+ 0xfe68, 0xfe6b,
+ 0xfe70, 0xfe74,
+ 0xfe76, 0xfefc,
+ 0xfeff, 0xfeff,
+ 0xff01, 0xffbe,
+ 0xffc2, 0xffc7,
+ 0xffca, 0xffcf,
+ 0xffd2, 0xffd7,
+ 0xffda, 0xffdc,
+ 0xffe0, 0xffe6,
+ 0xffe8, 0xffee,
+ 0xfff9, 0x1000b,
+ 0x1000d, 0x10026,
+ 0x10028, 0x1003a,
+ 0x1003c, 0x1003d,
+ 0x1003f, 0x1004d,
+ 0x10050, 0x1005d,
+ 0x10080, 0x100fa,
+ 0x10100, 0x10102,
+ 0x10107, 0x10133,
+ 0x10137, 0x1013f,
+ 0x10300, 0x1031e,
+ 0x10320, 0x10323,
+ 0x10330, 0x1034a,
+ 0x10380, 0x1039d,
+ 0x1039f, 0x1039f,
+ 0x10400, 0x1049d,
+ 0x104a0, 0x104a9,
+ 0x10800, 0x10805,
+ 0x10808, 0x10808,
+ 0x1080a, 0x10835,
+ 0x10837, 0x10838,
+ 0x1083c, 0x1083c,
+ 0x1083f, 0x1083f,
+ 0x1d000, 0x1d0f5,
+ 0x1d100, 0x1d126,
+ 0x1d12a, 0x1d1dd,
+ 0x1d300, 0x1d356,
+ 0x1d400, 0x1d454,
+ 0x1d456, 0x1d49c,
+ 0x1d49e, 0x1d49f,
+ 0x1d4a2, 0x1d4a2,
+ 0x1d4a5, 0x1d4a6,
+ 0x1d4a9, 0x1d4ac,
+ 0x1d4ae, 0x1d4b9,
+ 0x1d4bb, 0x1d4bb,
+ 0x1d4bd, 0x1d4c3,
+ 0x1d4c5, 0x1d505,
+ 0x1d507, 0x1d50a,
+ 0x1d50d, 0x1d514,
+ 0x1d516, 0x1d51c,
+ 0x1d51e, 0x1d539,
+ 0x1d53b, 0x1d53e,
+ 0x1d540, 0x1d544,
+ 0x1d546, 0x1d546,
+ 0x1d54a, 0x1d550,
+ 0x1d552, 0x1d6a3,
+ 0x1d6a8, 0x1d7c9,
+ 0x1d7ce, 0x1d7ff,
+ 0x1fffe, 0x2a6d6,
+ 0x2f800, 0x2fa1d,
+ 0x2fffe, 0x2ffff,
+ 0x3fffe, 0x3ffff,
+ 0x4fffe, 0x4ffff,
+ 0x5fffe, 0x5ffff,
+ 0x6fffe, 0x6ffff,
+ 0x7fffe, 0x7ffff,
+ 0x8fffe, 0x8ffff,
+ 0x9fffe, 0x9ffff,
+ 0xafffe, 0xaffff,
+ 0xbfffe, 0xbffff,
+ 0xcfffe, 0xcffff,
+ 0xdfffe, 0xdffff,
+ 0xe0001, 0xe0001,
+ 0xe0020, 0xe007f,
+ 0xe0100, 0xe01ef,
+ 0xefffe, 0x10ffff,
+}; /* CR_Age_4_0 */
+
+/* 'Age_4_1': Derived Age 4.1 */
+static const OnigCodePoint CR_Age_4_1[] = {
+ 430,
+ 0x0000, 0x0241,
+ 0x0250, 0x036f,
+ 0x0374, 0x0375,
+ 0x037a, 0x037a,
+ 0x037e, 0x037e,
+ 0x0384, 0x038a,
+ 0x038c, 0x038c,
+ 0x038e, 0x03a1,
+ 0x03a3, 0x03ce,
+ 0x03d0, 0x0486,
+ 0x0488, 0x04ce,
+ 0x04d0, 0x04f9,
+ 0x0500, 0x050f,
+ 0x0531, 0x0556,
+ 0x0559, 0x055f,
+ 0x0561, 0x0587,
+ 0x0589, 0x058a,
+ 0x0591, 0x05b9,
+ 0x05bb, 0x05c7,
+ 0x05d0, 0x05ea,
+ 0x05f0, 0x05f4,
+ 0x0600, 0x0603,
+ 0x060b, 0x0615,
+ 0x061b, 0x061b,
+ 0x061e, 0x061f,
+ 0x0621, 0x063a,
+ 0x0640, 0x065e,
+ 0x0660, 0x070d,
+ 0x070f, 0x074a,
+ 0x074d, 0x076d,
+ 0x0780, 0x07b1,
+ 0x0901, 0x0939,
+ 0x093c, 0x094d,
+ 0x0950, 0x0954,
+ 0x0958, 0x0970,
+ 0x097d, 0x097d,
+ 0x0981, 0x0983,
+ 0x0985, 0x098c,
+ 0x098f, 0x0990,
+ 0x0993, 0x09a8,
+ 0x09aa, 0x09b0,
+ 0x09b2, 0x09b2,
+ 0x09b6, 0x09b9,
+ 0x09bc, 0x09c4,
+ 0x09c7, 0x09c8,
+ 0x09cb, 0x09ce,
+ 0x09d7, 0x09d7,
+ 0x09dc, 0x09dd,
+ 0x09df, 0x09e3,
+ 0x09e6, 0x09fa,
+ 0x0a01, 0x0a03,
+ 0x0a05, 0x0a0a,
+ 0x0a0f, 0x0a10,
+ 0x0a13, 0x0a28,
+ 0x0a2a, 0x0a30,
+ 0x0a32, 0x0a33,
+ 0x0a35, 0x0a36,
+ 0x0a38, 0x0a39,
+ 0x0a3c, 0x0a3c,
+ 0x0a3e, 0x0a42,
+ 0x0a47, 0x0a48,
+ 0x0a4b, 0x0a4d,
+ 0x0a59, 0x0a5c,
+ 0x0a5e, 0x0a5e,
+ 0x0a66, 0x0a74,
+ 0x0a81, 0x0a83,
+ 0x0a85, 0x0a8d,
+ 0x0a8f, 0x0a91,
+ 0x0a93, 0x0aa8,
+ 0x0aaa, 0x0ab0,
+ 0x0ab2, 0x0ab3,
+ 0x0ab5, 0x0ab9,
+ 0x0abc, 0x0ac5,
+ 0x0ac7, 0x0ac9,
+ 0x0acb, 0x0acd,
+ 0x0ad0, 0x0ad0,
+ 0x0ae0, 0x0ae3,
+ 0x0ae6, 0x0aef,
+ 0x0af1, 0x0af1,
+ 0x0b01, 0x0b03,
+ 0x0b05, 0x0b0c,
+ 0x0b0f, 0x0b10,
+ 0x0b13, 0x0b28,
+ 0x0b2a, 0x0b30,
+ 0x0b32, 0x0b33,
+ 0x0b35, 0x0b39,
+ 0x0b3c, 0x0b43,
+ 0x0b47, 0x0b48,
+ 0x0b4b, 0x0b4d,
+ 0x0b56, 0x0b57,
+ 0x0b5c, 0x0b5d,
+ 0x0b5f, 0x0b61,
+ 0x0b66, 0x0b71,
+ 0x0b82, 0x0b83,
+ 0x0b85, 0x0b8a,
+ 0x0b8e, 0x0b90,
+ 0x0b92, 0x0b95,
+ 0x0b99, 0x0b9a,
+ 0x0b9c, 0x0b9c,
+ 0x0b9e, 0x0b9f,
+ 0x0ba3, 0x0ba4,
+ 0x0ba8, 0x0baa,
+ 0x0bae, 0x0bb9,
+ 0x0bbe, 0x0bc2,
+ 0x0bc6, 0x0bc8,
+ 0x0bca, 0x0bcd,
+ 0x0bd7, 0x0bd7,
+ 0x0be6, 0x0bfa,
+ 0x0c01, 0x0c03,
+ 0x0c05, 0x0c0c,
+ 0x0c0e, 0x0c10,
+ 0x0c12, 0x0c28,
+ 0x0c2a, 0x0c33,
+ 0x0c35, 0x0c39,
+ 0x0c3e, 0x0c44,
+ 0x0c46, 0x0c48,
+ 0x0c4a, 0x0c4d,
+ 0x0c55, 0x0c56,
+ 0x0c60, 0x0c61,
+ 0x0c66, 0x0c6f,
+ 0x0c82, 0x0c83,
+ 0x0c85, 0x0c8c,
+ 0x0c8e, 0x0c90,
+ 0x0c92, 0x0ca8,
+ 0x0caa, 0x0cb3,
+ 0x0cb5, 0x0cb9,
+ 0x0cbc, 0x0cc4,
+ 0x0cc6, 0x0cc8,
+ 0x0cca, 0x0ccd,
+ 0x0cd5, 0x0cd6,
+ 0x0cde, 0x0cde,
+ 0x0ce0, 0x0ce1,
+ 0x0ce6, 0x0cef,
+ 0x0d02, 0x0d03,
+ 0x0d05, 0x0d0c,
+ 0x0d0e, 0x0d10,
+ 0x0d12, 0x0d28,
+ 0x0d2a, 0x0d39,
+ 0x0d3e, 0x0d43,
+ 0x0d46, 0x0d48,
+ 0x0d4a, 0x0d4d,
+ 0x0d57, 0x0d57,
+ 0x0d60, 0x0d61,
+ 0x0d66, 0x0d6f,
+ 0x0d82, 0x0d83,
+ 0x0d85, 0x0d96,
+ 0x0d9a, 0x0db1,
+ 0x0db3, 0x0dbb,
+ 0x0dbd, 0x0dbd,
+ 0x0dc0, 0x0dc6,
+ 0x0dca, 0x0dca,
+ 0x0dcf, 0x0dd4,
+ 0x0dd6, 0x0dd6,
+ 0x0dd8, 0x0ddf,
+ 0x0df2, 0x0df4,
+ 0x0e01, 0x0e3a,
+ 0x0e3f, 0x0e5b,
+ 0x0e81, 0x0e82,
+ 0x0e84, 0x0e84,
+ 0x0e87, 0x0e88,
+ 0x0e8a, 0x0e8a,
+ 0x0e8d, 0x0e8d,
+ 0x0e94, 0x0e97,
+ 0x0e99, 0x0e9f,
+ 0x0ea1, 0x0ea3,
+ 0x0ea5, 0x0ea5,
+ 0x0ea7, 0x0ea7,
+ 0x0eaa, 0x0eab,
+ 0x0ead, 0x0eb9,
+ 0x0ebb, 0x0ebd,
+ 0x0ec0, 0x0ec4,
+ 0x0ec6, 0x0ec6,
+ 0x0ec8, 0x0ecd,
+ 0x0ed0, 0x0ed9,
+ 0x0edc, 0x0edd,
+ 0x0f00, 0x0f47,
+ 0x0f49, 0x0f6a,
+ 0x0f71, 0x0f8b,
+ 0x0f90, 0x0f97,
+ 0x0f99, 0x0fbc,
+ 0x0fbe, 0x0fcc,
+ 0x0fcf, 0x0fd1,
+ 0x1000, 0x1021,
+ 0x1023, 0x1027,
+ 0x1029, 0x102a,
+ 0x102c, 0x1032,
+ 0x1036, 0x1039,
+ 0x1040, 0x1059,
+ 0x10a0, 0x10c5,
+ 0x10d0, 0x10fc,
+ 0x1100, 0x1159,
+ 0x115f, 0x11a2,
+ 0x11a8, 0x11f9,
+ 0x1200, 0x1248,
+ 0x124a, 0x124d,
+ 0x1250, 0x1256,
+ 0x1258, 0x1258,
+ 0x125a, 0x125d,
+ 0x1260, 0x1288,
+ 0x128a, 0x128d,
+ 0x1290, 0x12b0,
+ 0x12b2, 0x12b5,
+ 0x12b8, 0x12be,
+ 0x12c0, 0x12c0,
+ 0x12c2, 0x12c5,
+ 0x12c8, 0x12d6,
+ 0x12d8, 0x1310,
+ 0x1312, 0x1315,
+ 0x1318, 0x135a,
+ 0x135f, 0x137c,
+ 0x1380, 0x1399,
+ 0x13a0, 0x13f4,
+ 0x1401, 0x1676,
+ 0x1680, 0x169c,
+ 0x16a0, 0x16f0,
+ 0x1700, 0x170c,
+ 0x170e, 0x1714,
+ 0x1720, 0x1736,
+ 0x1740, 0x1753,
+ 0x1760, 0x176c,
+ 0x176e, 0x1770,
+ 0x1772, 0x1773,
+ 0x1780, 0x17dd,
+ 0x17e0, 0x17e9,
+ 0x17f0, 0x17f9,
+ 0x1800, 0x180e,
+ 0x1810, 0x1819,
+ 0x1820, 0x1877,
+ 0x1880, 0x18a9,
+ 0x1900, 0x191c,
+ 0x1920, 0x192b,
+ 0x1930, 0x193b,
+ 0x1940, 0x1940,
+ 0x1944, 0x196d,
+ 0x1970, 0x1974,
+ 0x1980, 0x19a9,
+ 0x19b0, 0x19c9,
+ 0x19d0, 0x19d9,
+ 0x19de, 0x1a1b,
+ 0x1a1e, 0x1a1f,
+ 0x1d00, 0x1dc3,
+ 0x1e00, 0x1e9b,
+ 0x1ea0, 0x1ef9,
+ 0x1f00, 0x1f15,
+ 0x1f18, 0x1f1d,
+ 0x1f20, 0x1f45,
+ 0x1f48, 0x1f4d,
+ 0x1f50, 0x1f57,
+ 0x1f59, 0x1f59,
+ 0x1f5b, 0x1f5b,
+ 0x1f5d, 0x1f5d,
+ 0x1f5f, 0x1f7d,
+ 0x1f80, 0x1fb4,
+ 0x1fb6, 0x1fc4,
+ 0x1fc6, 0x1fd3,
+ 0x1fd6, 0x1fdb,
+ 0x1fdd, 0x1fef,
+ 0x1ff2, 0x1ff4,
+ 0x1ff6, 0x1ffe,
+ 0x2000, 0x2063,
+ 0x206a, 0x2071,
+ 0x2074, 0x208e,
+ 0x2090, 0x2094,
+ 0x20a0, 0x20b5,
+ 0x20d0, 0x20eb,
+ 0x2100, 0x214c,
+ 0x2153, 0x2183,
+ 0x2190, 0x23db,
+ 0x2400, 0x2426,
+ 0x2440, 0x244a,
+ 0x2460, 0x269c,
+ 0x26a0, 0x26b1,
+ 0x2701, 0x2704,
+ 0x2706, 0x2709,
+ 0x270c, 0x2727,
+ 0x2729, 0x274b,
+ 0x274d, 0x274d,
+ 0x274f, 0x2752,
+ 0x2756, 0x2756,
+ 0x2758, 0x275e,
+ 0x2761, 0x2794,
+ 0x2798, 0x27af,
+ 0x27b1, 0x27be,
+ 0x27c0, 0x27c6,
+ 0x27d0, 0x27eb,
+ 0x27f0, 0x2b13,
+ 0x2c00, 0x2c2e,
+ 0x2c30, 0x2c5e,
+ 0x2c80, 0x2cea,
+ 0x2cf9, 0x2d25,
+ 0x2d30, 0x2d65,
+ 0x2d6f, 0x2d6f,
+ 0x2d80, 0x2d96,
+ 0x2da0, 0x2da6,
+ 0x2da8, 0x2dae,
+ 0x2db0, 0x2db6,
+ 0x2db8, 0x2dbe,
+ 0x2dc0, 0x2dc6,
+ 0x2dc8, 0x2dce,
+ 0x2dd0, 0x2dd6,
+ 0x2dd8, 0x2dde,
+ 0x2e00, 0x2e17,
+ 0x2e1c, 0x2e1d,
+ 0x2e80, 0x2e99,
+ 0x2e9b, 0x2ef3,
+ 0x2f00, 0x2fd5,
+ 0x2ff0, 0x2ffb,
+ 0x3000, 0x303f,
+ 0x3041, 0x3096,
+ 0x3099, 0x30ff,
+ 0x3105, 0x312c,
+ 0x3131, 0x318e,
+ 0x3190, 0x31b7,
+ 0x31c0, 0x31cf,
+ 0x31f0, 0x321e,
+ 0x3220, 0x3243,
+ 0x3250, 0x32fe,
+ 0x3300, 0x4db5,
+ 0x4dc0, 0x9fbb,
+ 0xa000, 0xa48c,
+ 0xa490, 0xa4c6,
+ 0xa700, 0xa716,
+ 0xa800, 0xa82b,
+ 0xac00, 0xd7a3,
+ 0xd800, 0xfa2d,
+ 0xfa30, 0xfa6a,
+ 0xfa70, 0xfad9,
+ 0xfb00, 0xfb06,
+ 0xfb13, 0xfb17,
+ 0xfb1d, 0xfb36,
+ 0xfb38, 0xfb3c,
+ 0xfb3e, 0xfb3e,
+ 0xfb40, 0xfb41,
+ 0xfb43, 0xfb44,
+ 0xfb46, 0xfbb1,
+ 0xfbd3, 0xfd3f,
+ 0xfd50, 0xfd8f,
+ 0xfd92, 0xfdc7,
+ 0xfdd0, 0xfdfd,
+ 0xfe00, 0xfe19,
+ 0xfe20, 0xfe23,
+ 0xfe30, 0xfe52,
+ 0xfe54, 0xfe66,
+ 0xfe68, 0xfe6b,
+ 0xfe70, 0xfe74,
+ 0xfe76, 0xfefc,
+ 0xfeff, 0xfeff,
+ 0xff01, 0xffbe,
+ 0xffc2, 0xffc7,
+ 0xffca, 0xffcf,
+ 0xffd2, 0xffd7,
+ 0xffda, 0xffdc,
+ 0xffe0, 0xffe6,
+ 0xffe8, 0xffee,
+ 0xfff9, 0x1000b,
+ 0x1000d, 0x10026,
+ 0x10028, 0x1003a,
+ 0x1003c, 0x1003d,
+ 0x1003f, 0x1004d,
+ 0x10050, 0x1005d,
+ 0x10080, 0x100fa,
+ 0x10100, 0x10102,
+ 0x10107, 0x10133,
+ 0x10137, 0x1018a,
+ 0x10300, 0x1031e,
+ 0x10320, 0x10323,
+ 0x10330, 0x1034a,
+ 0x10380, 0x1039d,
+ 0x1039f, 0x103c3,
+ 0x103c8, 0x103d5,
+ 0x10400, 0x1049d,
+ 0x104a0, 0x104a9,
+ 0x10800, 0x10805,
+ 0x10808, 0x10808,
+ 0x1080a, 0x10835,
+ 0x10837, 0x10838,
+ 0x1083c, 0x1083c,
+ 0x1083f, 0x1083f,
+ 0x10a00, 0x10a03,
+ 0x10a05, 0x10a06,
+ 0x10a0c, 0x10a13,
+ 0x10a15, 0x10a17,
+ 0x10a19, 0x10a33,
+ 0x10a38, 0x10a3a,
+ 0x10a3f, 0x10a47,
+ 0x10a50, 0x10a58,
+ 0x1d000, 0x1d0f5,
+ 0x1d100, 0x1d126,
+ 0x1d12a, 0x1d1dd,
+ 0x1d200, 0x1d245,
+ 0x1d300, 0x1d356,
+ 0x1d400, 0x1d454,
+ 0x1d456, 0x1d49c,
+ 0x1d49e, 0x1d49f,
+ 0x1d4a2, 0x1d4a2,
+ 0x1d4a5, 0x1d4a6,
+ 0x1d4a9, 0x1d4ac,
+ 0x1d4ae, 0x1d4b9,
+ 0x1d4bb, 0x1d4bb,
+ 0x1d4bd, 0x1d4c3,
+ 0x1d4c5, 0x1d505,
+ 0x1d507, 0x1d50a,
+ 0x1d50d, 0x1d514,
+ 0x1d516, 0x1d51c,
+ 0x1d51e, 0x1d539,
+ 0x1d53b, 0x1d53e,
+ 0x1d540, 0x1d544,
+ 0x1d546, 0x1d546,
+ 0x1d54a, 0x1d550,
+ 0x1d552, 0x1d6a5,
+ 0x1d6a8, 0x1d7c9,
+ 0x1d7ce, 0x1d7ff,
+ 0x1fffe, 0x2a6d6,
+ 0x2f800, 0x2fa1d,
+ 0x2fffe, 0x2ffff,
+ 0x3fffe, 0x3ffff,
+ 0x4fffe, 0x4ffff,
+ 0x5fffe, 0x5ffff,
+ 0x6fffe, 0x6ffff,
+ 0x7fffe, 0x7ffff,
+ 0x8fffe, 0x8ffff,
+ 0x9fffe, 0x9ffff,
+ 0xafffe, 0xaffff,
+ 0xbfffe, 0xbffff,
+ 0xcfffe, 0xcffff,
+ 0xdfffe, 0xdffff,
+ 0xe0001, 0xe0001,
+ 0xe0020, 0xe007f,
+ 0xe0100, 0xe01ef,
+ 0xefffe, 0x10ffff,
+}; /* CR_Age_4_1 */
+
+/* 'Age_5_0': Derived Age 5.0 */
+static const OnigCodePoint CR_Age_5_0[] = {
+ 440,
+ 0x0000, 0x036f,
+ 0x0374, 0x0375,
+ 0x037a, 0x037e,
+ 0x0384, 0x038a,
+ 0x038c, 0x038c,
+ 0x038e, 0x03a1,
+ 0x03a3, 0x03ce,
+ 0x03d0, 0x0486,
+ 0x0488, 0x0513,
+ 0x0531, 0x0556,
+ 0x0559, 0x055f,
+ 0x0561, 0x0587,
+ 0x0589, 0x058a,
+ 0x0591, 0x05c7,
+ 0x05d0, 0x05ea,
+ 0x05f0, 0x05f4,
+ 0x0600, 0x0603,
+ 0x060b, 0x0615,
+ 0x061b, 0x061b,
+ 0x061e, 0x061f,
+ 0x0621, 0x063a,
+ 0x0640, 0x065e,
+ 0x0660, 0x070d,
+ 0x070f, 0x074a,
+ 0x074d, 0x076d,
+ 0x0780, 0x07b1,
+ 0x07c0, 0x07fa,
+ 0x0901, 0x0939,
+ 0x093c, 0x094d,
+ 0x0950, 0x0954,
+ 0x0958, 0x0970,
+ 0x097b, 0x097f,
+ 0x0981, 0x0983,
+ 0x0985, 0x098c,
+ 0x098f, 0x0990,
+ 0x0993, 0x09a8,
+ 0x09aa, 0x09b0,
+ 0x09b2, 0x09b2,
+ 0x09b6, 0x09b9,
+ 0x09bc, 0x09c4,
+ 0x09c7, 0x09c8,
+ 0x09cb, 0x09ce,
+ 0x09d7, 0x09d7,
+ 0x09dc, 0x09dd,
+ 0x09df, 0x09e3,
+ 0x09e6, 0x09fa,
+ 0x0a01, 0x0a03,
+ 0x0a05, 0x0a0a,
+ 0x0a0f, 0x0a10,
+ 0x0a13, 0x0a28,
+ 0x0a2a, 0x0a30,
+ 0x0a32, 0x0a33,
+ 0x0a35, 0x0a36,
+ 0x0a38, 0x0a39,
+ 0x0a3c, 0x0a3c,
+ 0x0a3e, 0x0a42,
+ 0x0a47, 0x0a48,
+ 0x0a4b, 0x0a4d,
+ 0x0a59, 0x0a5c,
+ 0x0a5e, 0x0a5e,
+ 0x0a66, 0x0a74,
+ 0x0a81, 0x0a83,
+ 0x0a85, 0x0a8d,
+ 0x0a8f, 0x0a91,
+ 0x0a93, 0x0aa8,
+ 0x0aaa, 0x0ab0,
+ 0x0ab2, 0x0ab3,
+ 0x0ab5, 0x0ab9,
+ 0x0abc, 0x0ac5,
+ 0x0ac7, 0x0ac9,
+ 0x0acb, 0x0acd,
+ 0x0ad0, 0x0ad0,
+ 0x0ae0, 0x0ae3,
+ 0x0ae6, 0x0aef,
+ 0x0af1, 0x0af1,
+ 0x0b01, 0x0b03,
+ 0x0b05, 0x0b0c,
+ 0x0b0f, 0x0b10,
+ 0x0b13, 0x0b28,
+ 0x0b2a, 0x0b30,
+ 0x0b32, 0x0b33,
+ 0x0b35, 0x0b39,
+ 0x0b3c, 0x0b43,
+ 0x0b47, 0x0b48,
+ 0x0b4b, 0x0b4d,
+ 0x0b56, 0x0b57,
+ 0x0b5c, 0x0b5d,
+ 0x0b5f, 0x0b61,
+ 0x0b66, 0x0b71,
+ 0x0b82, 0x0b83,
+ 0x0b85, 0x0b8a,
+ 0x0b8e, 0x0b90,
+ 0x0b92, 0x0b95,
+ 0x0b99, 0x0b9a,
+ 0x0b9c, 0x0b9c,
+ 0x0b9e, 0x0b9f,
+ 0x0ba3, 0x0ba4,
+ 0x0ba8, 0x0baa,
+ 0x0bae, 0x0bb9,
+ 0x0bbe, 0x0bc2,
+ 0x0bc6, 0x0bc8,
+ 0x0bca, 0x0bcd,
+ 0x0bd7, 0x0bd7,
+ 0x0be6, 0x0bfa,
+ 0x0c01, 0x0c03,
+ 0x0c05, 0x0c0c,
+ 0x0c0e, 0x0c10,
+ 0x0c12, 0x0c28,
+ 0x0c2a, 0x0c33,
+ 0x0c35, 0x0c39,
+ 0x0c3e, 0x0c44,
+ 0x0c46, 0x0c48,
+ 0x0c4a, 0x0c4d,
+ 0x0c55, 0x0c56,
+ 0x0c60, 0x0c61,
+ 0x0c66, 0x0c6f,
+ 0x0c82, 0x0c83,
+ 0x0c85, 0x0c8c,
+ 0x0c8e, 0x0c90,
+ 0x0c92, 0x0ca8,
+ 0x0caa, 0x0cb3,
+ 0x0cb5, 0x0cb9,
+ 0x0cbc, 0x0cc4,
+ 0x0cc6, 0x0cc8,
+ 0x0cca, 0x0ccd,
+ 0x0cd5, 0x0cd6,
+ 0x0cde, 0x0cde,
+ 0x0ce0, 0x0ce3,
+ 0x0ce6, 0x0cef,
+ 0x0cf1, 0x0cf2,
+ 0x0d02, 0x0d03,
+ 0x0d05, 0x0d0c,
+ 0x0d0e, 0x0d10,
+ 0x0d12, 0x0d28,
+ 0x0d2a, 0x0d39,
+ 0x0d3e, 0x0d43,
+ 0x0d46, 0x0d48,
+ 0x0d4a, 0x0d4d,
+ 0x0d57, 0x0d57,
+ 0x0d60, 0x0d61,
+ 0x0d66, 0x0d6f,
+ 0x0d82, 0x0d83,
+ 0x0d85, 0x0d96,
+ 0x0d9a, 0x0db1,
+ 0x0db3, 0x0dbb,
+ 0x0dbd, 0x0dbd,
+ 0x0dc0, 0x0dc6,
+ 0x0dca, 0x0dca,
+ 0x0dcf, 0x0dd4,
+ 0x0dd6, 0x0dd6,
+ 0x0dd8, 0x0ddf,
+ 0x0df2, 0x0df4,
+ 0x0e01, 0x0e3a,
+ 0x0e3f, 0x0e5b,
+ 0x0e81, 0x0e82,
+ 0x0e84, 0x0e84,
+ 0x0e87, 0x0e88,
+ 0x0e8a, 0x0e8a,
+ 0x0e8d, 0x0e8d,
+ 0x0e94, 0x0e97,
+ 0x0e99, 0x0e9f,
+ 0x0ea1, 0x0ea3,
+ 0x0ea5, 0x0ea5,
+ 0x0ea7, 0x0ea7,
+ 0x0eaa, 0x0eab,
+ 0x0ead, 0x0eb9,
+ 0x0ebb, 0x0ebd,
+ 0x0ec0, 0x0ec4,
+ 0x0ec6, 0x0ec6,
+ 0x0ec8, 0x0ecd,
+ 0x0ed0, 0x0ed9,
+ 0x0edc, 0x0edd,
+ 0x0f00, 0x0f47,
+ 0x0f49, 0x0f6a,
+ 0x0f71, 0x0f8b,
+ 0x0f90, 0x0f97,
+ 0x0f99, 0x0fbc,
+ 0x0fbe, 0x0fcc,
+ 0x0fcf, 0x0fd1,
+ 0x1000, 0x1021,
+ 0x1023, 0x1027,
+ 0x1029, 0x102a,
+ 0x102c, 0x1032,
+ 0x1036, 0x1039,
+ 0x1040, 0x1059,
+ 0x10a0, 0x10c5,
+ 0x10d0, 0x10fc,
+ 0x1100, 0x1159,
+ 0x115f, 0x11a2,
+ 0x11a8, 0x11f9,
+ 0x1200, 0x1248,
+ 0x124a, 0x124d,
+ 0x1250, 0x1256,
+ 0x1258, 0x1258,
+ 0x125a, 0x125d,
+ 0x1260, 0x1288,
+ 0x128a, 0x128d,
+ 0x1290, 0x12b0,
+ 0x12b2, 0x12b5,
+ 0x12b8, 0x12be,
+ 0x12c0, 0x12c0,
+ 0x12c2, 0x12c5,
+ 0x12c8, 0x12d6,
+ 0x12d8, 0x1310,
+ 0x1312, 0x1315,
+ 0x1318, 0x135a,
+ 0x135f, 0x137c,
+ 0x1380, 0x1399,
+ 0x13a0, 0x13f4,
+ 0x1401, 0x1676,
+ 0x1680, 0x169c,
+ 0x16a0, 0x16f0,
+ 0x1700, 0x170c,
+ 0x170e, 0x1714,
+ 0x1720, 0x1736,
+ 0x1740, 0x1753,
+ 0x1760, 0x176c,
+ 0x176e, 0x1770,
+ 0x1772, 0x1773,
+ 0x1780, 0x17dd,
+ 0x17e0, 0x17e9,
+ 0x17f0, 0x17f9,
+ 0x1800, 0x180e,
+ 0x1810, 0x1819,
+ 0x1820, 0x1877,
+ 0x1880, 0x18a9,
+ 0x1900, 0x191c,
+ 0x1920, 0x192b,
+ 0x1930, 0x193b,
+ 0x1940, 0x1940,
+ 0x1944, 0x196d,
+ 0x1970, 0x1974,
+ 0x1980, 0x19a9,
+ 0x19b0, 0x19c9,
+ 0x19d0, 0x19d9,
+ 0x19de, 0x1a1b,
+ 0x1a1e, 0x1a1f,
+ 0x1b00, 0x1b4b,
+ 0x1b50, 0x1b7c,
+ 0x1d00, 0x1dca,
+ 0x1dfe, 0x1e9b,
+ 0x1ea0, 0x1ef9,
+ 0x1f00, 0x1f15,
+ 0x1f18, 0x1f1d,
+ 0x1f20, 0x1f45,
+ 0x1f48, 0x1f4d,
+ 0x1f50, 0x1f57,
+ 0x1f59, 0x1f59,
+ 0x1f5b, 0x1f5b,
+ 0x1f5d, 0x1f5d,
+ 0x1f5f, 0x1f7d,
+ 0x1f80, 0x1fb4,
+ 0x1fb6, 0x1fc4,
+ 0x1fc6, 0x1fd3,
+ 0x1fd6, 0x1fdb,
+ 0x1fdd, 0x1fef,
+ 0x1ff2, 0x1ff4,
+ 0x1ff6, 0x1ffe,
+ 0x2000, 0x2063,
+ 0x206a, 0x2071,
+ 0x2074, 0x208e,
+ 0x2090, 0x2094,
+ 0x20a0, 0x20b5,
+ 0x20d0, 0x20ef,
+ 0x2100, 0x214e,
+ 0x2153, 0x2184,
+ 0x2190, 0x23e7,
+ 0x2400, 0x2426,
+ 0x2440, 0x244a,
+ 0x2460, 0x269c,
+ 0x26a0, 0x26b2,
+ 0x2701, 0x2704,
+ 0x2706, 0x2709,
+ 0x270c, 0x2727,
+ 0x2729, 0x274b,
+ 0x274d, 0x274d,
+ 0x274f, 0x2752,
+ 0x2756, 0x2756,
+ 0x2758, 0x275e,
+ 0x2761, 0x2794,
+ 0x2798, 0x27af,
+ 0x27b1, 0x27be,
+ 0x27c0, 0x27ca,
+ 0x27d0, 0x27eb,
+ 0x27f0, 0x2b1a,
+ 0x2b20, 0x2b23,
+ 0x2c00, 0x2c2e,
+ 0x2c30, 0x2c5e,
+ 0x2c60, 0x2c6c,
+ 0x2c74, 0x2c77,
+ 0x2c80, 0x2cea,
+ 0x2cf9, 0x2d25,
+ 0x2d30, 0x2d65,
+ 0x2d6f, 0x2d6f,
+ 0x2d80, 0x2d96,
+ 0x2da0, 0x2da6,
+ 0x2da8, 0x2dae,
+ 0x2db0, 0x2db6,
+ 0x2db8, 0x2dbe,
+ 0x2dc0, 0x2dc6,
+ 0x2dc8, 0x2dce,
+ 0x2dd0, 0x2dd6,
+ 0x2dd8, 0x2dde,
+ 0x2e00, 0x2e17,
+ 0x2e1c, 0x2e1d,
+ 0x2e80, 0x2e99,
+ 0x2e9b, 0x2ef3,
+ 0x2f00, 0x2fd5,
+ 0x2ff0, 0x2ffb,
+ 0x3000, 0x303f,
+ 0x3041, 0x3096,
+ 0x3099, 0x30ff,
+ 0x3105, 0x312c,
+ 0x3131, 0x318e,
+ 0x3190, 0x31b7,
+ 0x31c0, 0x31cf,
+ 0x31f0, 0x321e,
+ 0x3220, 0x3243,
+ 0x3250, 0x32fe,
+ 0x3300, 0x4db5,
+ 0x4dc0, 0x9fbb,
+ 0xa000, 0xa48c,
+ 0xa490, 0xa4c6,
+ 0xa700, 0xa71a,
+ 0xa720, 0xa721,
+ 0xa800, 0xa82b,
+ 0xa840, 0xa877,
+ 0xac00, 0xd7a3,
+ 0xd800, 0xfa2d,
+ 0xfa30, 0xfa6a,
+ 0xfa70, 0xfad9,
+ 0xfb00, 0xfb06,
+ 0xfb13, 0xfb17,
+ 0xfb1d, 0xfb36,
+ 0xfb38, 0xfb3c,
+ 0xfb3e, 0xfb3e,
+ 0xfb40, 0xfb41,
+ 0xfb43, 0xfb44,
+ 0xfb46, 0xfbb1,
+ 0xfbd3, 0xfd3f,
+ 0xfd50, 0xfd8f,
+ 0xfd92, 0xfdc7,
+ 0xfdd0, 0xfdfd,
+ 0xfe00, 0xfe19,
+ 0xfe20, 0xfe23,
+ 0xfe30, 0xfe52,
+ 0xfe54, 0xfe66,
+ 0xfe68, 0xfe6b,
+ 0xfe70, 0xfe74,
+ 0xfe76, 0xfefc,
+ 0xfeff, 0xfeff,
+ 0xff01, 0xffbe,
+ 0xffc2, 0xffc7,
+ 0xffca, 0xffcf,
+ 0xffd2, 0xffd7,
+ 0xffda, 0xffdc,
+ 0xffe0, 0xffe6,
+ 0xffe8, 0xffee,
+ 0xfff9, 0x1000b,
+ 0x1000d, 0x10026,
+ 0x10028, 0x1003a,
+ 0x1003c, 0x1003d,
+ 0x1003f, 0x1004d,
+ 0x10050, 0x1005d,
+ 0x10080, 0x100fa,
+ 0x10100, 0x10102,
+ 0x10107, 0x10133,
+ 0x10137, 0x1018a,
+ 0x10300, 0x1031e,
+ 0x10320, 0x10323,
+ 0x10330, 0x1034a,
+ 0x10380, 0x1039d,
+ 0x1039f, 0x103c3,
+ 0x103c8, 0x103d5,
+ 0x10400, 0x1049d,
+ 0x104a0, 0x104a9,
+ 0x10800, 0x10805,
+ 0x10808, 0x10808,
+ 0x1080a, 0x10835,
+ 0x10837, 0x10838,
+ 0x1083c, 0x1083c,
+ 0x1083f, 0x1083f,
+ 0x10900, 0x10919,
+ 0x1091f, 0x1091f,
+ 0x10a00, 0x10a03,
+ 0x10a05, 0x10a06,
+ 0x10a0c, 0x10a13,
+ 0x10a15, 0x10a17,
+ 0x10a19, 0x10a33,
+ 0x10a38, 0x10a3a,
+ 0x10a3f, 0x10a47,
+ 0x10a50, 0x10a58,
+ 0x12000, 0x1236e,
+ 0x12400, 0x12462,
+ 0x12470, 0x12473,
+ 0x1d000, 0x1d0f5,
+ 0x1d100, 0x1d126,
+ 0x1d12a, 0x1d1dd,
+ 0x1d200, 0x1d245,
+ 0x1d300, 0x1d356,
+ 0x1d360, 0x1d371,
+ 0x1d400, 0x1d454,
+ 0x1d456, 0x1d49c,
+ 0x1d49e, 0x1d49f,
+ 0x1d4a2, 0x1d4a2,
+ 0x1d4a5, 0x1d4a6,
+ 0x1d4a9, 0x1d4ac,
+ 0x1d4ae, 0x1d4b9,
+ 0x1d4bb, 0x1d4bb,
+ 0x1d4bd, 0x1d4c3,
+ 0x1d4c5, 0x1d505,
+ 0x1d507, 0x1d50a,
+ 0x1d50d, 0x1d514,
+ 0x1d516, 0x1d51c,
+ 0x1d51e, 0x1d539,
+ 0x1d53b, 0x1d53e,
+ 0x1d540, 0x1d544,
+ 0x1d546, 0x1d546,
+ 0x1d54a, 0x1d550,
+ 0x1d552, 0x1d6a5,
+ 0x1d6a8, 0x1d7cb,
+ 0x1d7ce, 0x1d7ff,
+ 0x1fffe, 0x2a6d6,
+ 0x2f800, 0x2fa1d,
+ 0x2fffe, 0x2ffff,
+ 0x3fffe, 0x3ffff,
+ 0x4fffe, 0x4ffff,
+ 0x5fffe, 0x5ffff,
+ 0x6fffe, 0x6ffff,
+ 0x7fffe, 0x7ffff,
+ 0x8fffe, 0x8ffff,
+ 0x9fffe, 0x9ffff,
+ 0xafffe, 0xaffff,
+ 0xbfffe, 0xbffff,
+ 0xcfffe, 0xcffff,
+ 0xdfffe, 0xdffff,
+ 0xe0001, 0xe0001,
+ 0xe0020, 0xe007f,
+ 0xe0100, 0xe01ef,
+ 0xefffe, 0x10ffff,
+}; /* CR_Age_5_0 */
+
+/* 'Age_5_1': Derived Age 5.1 */
+static const OnigCodePoint CR_Age_5_1[] = {
+ 455,
+ 0x0000, 0x0377,
+ 0x037a, 0x037e,
+ 0x0384, 0x038a,
+ 0x038c, 0x038c,
+ 0x038e, 0x03a1,
+ 0x03a3, 0x0523,
+ 0x0531, 0x0556,
+ 0x0559, 0x055f,
+ 0x0561, 0x0587,
+ 0x0589, 0x058a,
+ 0x0591, 0x05c7,
+ 0x05d0, 0x05ea,
+ 0x05f0, 0x05f4,
+ 0x0600, 0x0603,
+ 0x0606, 0x061b,
+ 0x061e, 0x061f,
+ 0x0621, 0x065e,
+ 0x0660, 0x070d,
+ 0x070f, 0x074a,
+ 0x074d, 0x07b1,
+ 0x07c0, 0x07fa,
+ 0x0901, 0x0939,
+ 0x093c, 0x094d,
+ 0x0950, 0x0954,
+ 0x0958, 0x0972,
+ 0x097b, 0x097f,
+ 0x0981, 0x0983,
+ 0x0985, 0x098c,
+ 0x098f, 0x0990,
+ 0x0993, 0x09a8,
+ 0x09aa, 0x09b0,
+ 0x09b2, 0x09b2,
+ 0x09b6, 0x09b9,
+ 0x09bc, 0x09c4,
+ 0x09c7, 0x09c8,
+ 0x09cb, 0x09ce,
+ 0x09d7, 0x09d7,
+ 0x09dc, 0x09dd,
+ 0x09df, 0x09e3,
+ 0x09e6, 0x09fa,
+ 0x0a01, 0x0a03,
+ 0x0a05, 0x0a0a,
+ 0x0a0f, 0x0a10,
+ 0x0a13, 0x0a28,
+ 0x0a2a, 0x0a30,
+ 0x0a32, 0x0a33,
+ 0x0a35, 0x0a36,
+ 0x0a38, 0x0a39,
+ 0x0a3c, 0x0a3c,
+ 0x0a3e, 0x0a42,
+ 0x0a47, 0x0a48,
+ 0x0a4b, 0x0a4d,
+ 0x0a51, 0x0a51,
+ 0x0a59, 0x0a5c,
+ 0x0a5e, 0x0a5e,
+ 0x0a66, 0x0a75,
+ 0x0a81, 0x0a83,
+ 0x0a85, 0x0a8d,
+ 0x0a8f, 0x0a91,
+ 0x0a93, 0x0aa8,
+ 0x0aaa, 0x0ab0,
+ 0x0ab2, 0x0ab3,
+ 0x0ab5, 0x0ab9,
+ 0x0abc, 0x0ac5,
+ 0x0ac7, 0x0ac9,
+ 0x0acb, 0x0acd,
+ 0x0ad0, 0x0ad0,
+ 0x0ae0, 0x0ae3,
+ 0x0ae6, 0x0aef,
+ 0x0af1, 0x0af1,
+ 0x0b01, 0x0b03,
+ 0x0b05, 0x0b0c,
+ 0x0b0f, 0x0b10,
+ 0x0b13, 0x0b28,
+ 0x0b2a, 0x0b30,
+ 0x0b32, 0x0b33,
+ 0x0b35, 0x0b39,
+ 0x0b3c, 0x0b44,
+ 0x0b47, 0x0b48,
+ 0x0b4b, 0x0b4d,
+ 0x0b56, 0x0b57,
+ 0x0b5c, 0x0b5d,
+ 0x0b5f, 0x0b63,
+ 0x0b66, 0x0b71,
+ 0x0b82, 0x0b83,
+ 0x0b85, 0x0b8a,
+ 0x0b8e, 0x0b90,
+ 0x0b92, 0x0b95,
+ 0x0b99, 0x0b9a,
+ 0x0b9c, 0x0b9c,
+ 0x0b9e, 0x0b9f,
+ 0x0ba3, 0x0ba4,
+ 0x0ba8, 0x0baa,
+ 0x0bae, 0x0bb9,
+ 0x0bbe, 0x0bc2,
+ 0x0bc6, 0x0bc8,
+ 0x0bca, 0x0bcd,
+ 0x0bd0, 0x0bd0,
+ 0x0bd7, 0x0bd7,
+ 0x0be6, 0x0bfa,
+ 0x0c01, 0x0c03,
+ 0x0c05, 0x0c0c,
+ 0x0c0e, 0x0c10,
+ 0x0c12, 0x0c28,
+ 0x0c2a, 0x0c33,
+ 0x0c35, 0x0c39,
+ 0x0c3d, 0x0c44,
+ 0x0c46, 0x0c48,
+ 0x0c4a, 0x0c4d,
+ 0x0c55, 0x0c56,
+ 0x0c58, 0x0c59,
+ 0x0c60, 0x0c63,
+ 0x0c66, 0x0c6f,
+ 0x0c78, 0x0c7f,
+ 0x0c82, 0x0c83,
+ 0x0c85, 0x0c8c,
+ 0x0c8e, 0x0c90,
+ 0x0c92, 0x0ca8,
+ 0x0caa, 0x0cb3,
+ 0x0cb5, 0x0cb9,
+ 0x0cbc, 0x0cc4,
+ 0x0cc6, 0x0cc8,
+ 0x0cca, 0x0ccd,
+ 0x0cd5, 0x0cd6,
+ 0x0cde, 0x0cde,
+ 0x0ce0, 0x0ce3,
+ 0x0ce6, 0x0cef,
+ 0x0cf1, 0x0cf2,
+ 0x0d02, 0x0d03,
+ 0x0d05, 0x0d0c,
+ 0x0d0e, 0x0d10,
+ 0x0d12, 0x0d28,
+ 0x0d2a, 0x0d39,
+ 0x0d3d, 0x0d44,
+ 0x0d46, 0x0d48,
+ 0x0d4a, 0x0d4d,
+ 0x0d57, 0x0d57,
+ 0x0d60, 0x0d63,
+ 0x0d66, 0x0d75,
+ 0x0d79, 0x0d7f,
+ 0x0d82, 0x0d83,
+ 0x0d85, 0x0d96,
+ 0x0d9a, 0x0db1,
+ 0x0db3, 0x0dbb,
+ 0x0dbd, 0x0dbd,
+ 0x0dc0, 0x0dc6,
+ 0x0dca, 0x0dca,
+ 0x0dcf, 0x0dd4,
+ 0x0dd6, 0x0dd6,
+ 0x0dd8, 0x0ddf,
+ 0x0df2, 0x0df4,
+ 0x0e01, 0x0e3a,
+ 0x0e3f, 0x0e5b,
+ 0x0e81, 0x0e82,
+ 0x0e84, 0x0e84,
+ 0x0e87, 0x0e88,
+ 0x0e8a, 0x0e8a,
+ 0x0e8d, 0x0e8d,
+ 0x0e94, 0x0e97,
+ 0x0e99, 0x0e9f,
+ 0x0ea1, 0x0ea3,
+ 0x0ea5, 0x0ea5,
+ 0x0ea7, 0x0ea7,
+ 0x0eaa, 0x0eab,
+ 0x0ead, 0x0eb9,
+ 0x0ebb, 0x0ebd,
+ 0x0ec0, 0x0ec4,
+ 0x0ec6, 0x0ec6,
+ 0x0ec8, 0x0ecd,
+ 0x0ed0, 0x0ed9,
+ 0x0edc, 0x0edd,
+ 0x0f00, 0x0f47,
+ 0x0f49, 0x0f6c,
+ 0x0f71, 0x0f8b,
+ 0x0f90, 0x0f97,
+ 0x0f99, 0x0fbc,
+ 0x0fbe, 0x0fcc,
+ 0x0fce, 0x0fd4,
+ 0x1000, 0x1099,
+ 0x109e, 0x10c5,
+ 0x10d0, 0x10fc,
+ 0x1100, 0x1159,
+ 0x115f, 0x11a2,
+ 0x11a8, 0x11f9,
+ 0x1200, 0x1248,
+ 0x124a, 0x124d,
+ 0x1250, 0x1256,
+ 0x1258, 0x1258,
+ 0x125a, 0x125d,
+ 0x1260, 0x1288,
+ 0x128a, 0x128d,
+ 0x1290, 0x12b0,
+ 0x12b2, 0x12b5,
+ 0x12b8, 0x12be,
+ 0x12c0, 0x12c0,
+ 0x12c2, 0x12c5,
+ 0x12c8, 0x12d6,
+ 0x12d8, 0x1310,
+ 0x1312, 0x1315,
+ 0x1318, 0x135a,
+ 0x135f, 0x137c,
+ 0x1380, 0x1399,
+ 0x13a0, 0x13f4,
+ 0x1401, 0x1676,
+ 0x1680, 0x169c,
+ 0x16a0, 0x16f0,
+ 0x1700, 0x170c,
+ 0x170e, 0x1714,
+ 0x1720, 0x1736,
+ 0x1740, 0x1753,
+ 0x1760, 0x176c,
+ 0x176e, 0x1770,
+ 0x1772, 0x1773,
+ 0x1780, 0x17dd,
+ 0x17e0, 0x17e9,
+ 0x17f0, 0x17f9,
+ 0x1800, 0x180e,
+ 0x1810, 0x1819,
+ 0x1820, 0x1877,
+ 0x1880, 0x18aa,
+ 0x1900, 0x191c,
+ 0x1920, 0x192b,
+ 0x1930, 0x193b,
+ 0x1940, 0x1940,
+ 0x1944, 0x196d,
+ 0x1970, 0x1974,
+ 0x1980, 0x19a9,
+ 0x19b0, 0x19c9,
+ 0x19d0, 0x19d9,
+ 0x19de, 0x1a1b,
+ 0x1a1e, 0x1a1f,
+ 0x1b00, 0x1b4b,
+ 0x1b50, 0x1b7c,
+ 0x1b80, 0x1baa,
+ 0x1bae, 0x1bb9,
+ 0x1c00, 0x1c37,
+ 0x1c3b, 0x1c49,
+ 0x1c4d, 0x1c7f,
+ 0x1d00, 0x1de6,
+ 0x1dfe, 0x1f15,
+ 0x1f18, 0x1f1d,
+ 0x1f20, 0x1f45,
+ 0x1f48, 0x1f4d,
+ 0x1f50, 0x1f57,
+ 0x1f59, 0x1f59,
+ 0x1f5b, 0x1f5b,
+ 0x1f5d, 0x1f5d,
+ 0x1f5f, 0x1f7d,
+ 0x1f80, 0x1fb4,
+ 0x1fb6, 0x1fc4,
+ 0x1fc6, 0x1fd3,
+ 0x1fd6, 0x1fdb,
+ 0x1fdd, 0x1fef,
+ 0x1ff2, 0x1ff4,
+ 0x1ff6, 0x1ffe,
+ 0x2000, 0x2064,
+ 0x206a, 0x2071,
+ 0x2074, 0x208e,
+ 0x2090, 0x2094,
+ 0x20a0, 0x20b5,
+ 0x20d0, 0x20f0,
+ 0x2100, 0x214f,
+ 0x2153, 0x2188,
+ 0x2190, 0x23e7,
+ 0x2400, 0x2426,
+ 0x2440, 0x244a,
+ 0x2460, 0x269d,
+ 0x26a0, 0x26bc,
+ 0x26c0, 0x26c3,
+ 0x2701, 0x2704,
+ 0x2706, 0x2709,
+ 0x270c, 0x2727,
+ 0x2729, 0x274b,
+ 0x274d, 0x274d,
+ 0x274f, 0x2752,
+ 0x2756, 0x2756,
+ 0x2758, 0x275e,
+ 0x2761, 0x2794,
+ 0x2798, 0x27af,
+ 0x27b1, 0x27be,
+ 0x27c0, 0x27ca,
+ 0x27cc, 0x27cc,
+ 0x27d0, 0x2b4c,
+ 0x2b50, 0x2b54,
+ 0x2c00, 0x2c2e,
+ 0x2c30, 0x2c5e,
+ 0x2c60, 0x2c6f,
+ 0x2c71, 0x2c7d,
+ 0x2c80, 0x2cea,
+ 0x2cf9, 0x2d25,
+ 0x2d30, 0x2d65,
+ 0x2d6f, 0x2d6f,
+ 0x2d80, 0x2d96,
+ 0x2da0, 0x2da6,
+ 0x2da8, 0x2dae,
+ 0x2db0, 0x2db6,
+ 0x2db8, 0x2dbe,
+ 0x2dc0, 0x2dc6,
+ 0x2dc8, 0x2dce,
+ 0x2dd0, 0x2dd6,
+ 0x2dd8, 0x2dde,
+ 0x2de0, 0x2e30,
+ 0x2e80, 0x2e99,
+ 0x2e9b, 0x2ef3,
+ 0x2f00, 0x2fd5,
+ 0x2ff0, 0x2ffb,
+ 0x3000, 0x303f,
+ 0x3041, 0x3096,
+ 0x3099, 0x30ff,
+ 0x3105, 0x312d,
+ 0x3131, 0x318e,
+ 0x3190, 0x31b7,
+ 0x31c0, 0x31e3,
+ 0x31f0, 0x321e,
+ 0x3220, 0x3243,
+ 0x3250, 0x32fe,
+ 0x3300, 0x4db5,
+ 0x4dc0, 0x9fc3,
+ 0xa000, 0xa48c,
+ 0xa490, 0xa4c6,
+ 0xa500, 0xa62b,
+ 0xa640, 0xa65f,
+ 0xa662, 0xa673,
+ 0xa67c, 0xa697,
+ 0xa700, 0xa78c,
+ 0xa7fb, 0xa82b,
+ 0xa840, 0xa877,
+ 0xa880, 0xa8c4,
+ 0xa8ce, 0xa8d9,
+ 0xa900, 0xa953,
+ 0xa95f, 0xa95f,
+ 0xaa00, 0xaa36,
+ 0xaa40, 0xaa4d,
+ 0xaa50, 0xaa59,
+ 0xaa5c, 0xaa5f,
+ 0xac00, 0xd7a3,
+ 0xd800, 0xfa2d,
+ 0xfa30, 0xfa6a,
+ 0xfa70, 0xfad9,
+ 0xfb00, 0xfb06,
+ 0xfb13, 0xfb17,
+ 0xfb1d, 0xfb36,
+ 0xfb38, 0xfb3c,
+ 0xfb3e, 0xfb3e,
+ 0xfb40, 0xfb41,
+ 0xfb43, 0xfb44,
+ 0xfb46, 0xfbb1,
+ 0xfbd3, 0xfd3f,
+ 0xfd50, 0xfd8f,
+ 0xfd92, 0xfdc7,
+ 0xfdd0, 0xfdfd,
+ 0xfe00, 0xfe19,
+ 0xfe20, 0xfe26,
+ 0xfe30, 0xfe52,
+ 0xfe54, 0xfe66,
+ 0xfe68, 0xfe6b,
+ 0xfe70, 0xfe74,
+ 0xfe76, 0xfefc,
+ 0xfeff, 0xfeff,
+ 0xff01, 0xffbe,
+ 0xffc2, 0xffc7,
+ 0xffca, 0xffcf,
+ 0xffd2, 0xffd7,
+ 0xffda, 0xffdc,
+ 0xffe0, 0xffe6,
+ 0xffe8, 0xffee,
+ 0xfff9, 0x1000b,
+ 0x1000d, 0x10026,
+ 0x10028, 0x1003a,
+ 0x1003c, 0x1003d,
+ 0x1003f, 0x1004d,
+ 0x10050, 0x1005d,
+ 0x10080, 0x100fa,
+ 0x10100, 0x10102,
+ 0x10107, 0x10133,
+ 0x10137, 0x1018a,
+ 0x10190, 0x1019b,
+ 0x101d0, 0x101fd,
+ 0x10280, 0x1029c,
+ 0x102a0, 0x102d0,
+ 0x10300, 0x1031e,
+ 0x10320, 0x10323,
+ 0x10330, 0x1034a,
+ 0x10380, 0x1039d,
+ 0x1039f, 0x103c3,
+ 0x103c8, 0x103d5,
+ 0x10400, 0x1049d,
+ 0x104a0, 0x104a9,
+ 0x10800, 0x10805,
+ 0x10808, 0x10808,
+ 0x1080a, 0x10835,
+ 0x10837, 0x10838,
+ 0x1083c, 0x1083c,
+ 0x1083f, 0x1083f,
+ 0x10900, 0x10919,
+ 0x1091f, 0x10939,
+ 0x1093f, 0x1093f,
+ 0x10a00, 0x10a03,
+ 0x10a05, 0x10a06,
+ 0x10a0c, 0x10a13,
+ 0x10a15, 0x10a17,
+ 0x10a19, 0x10a33,
+ 0x10a38, 0x10a3a,
+ 0x10a3f, 0x10a47,
+ 0x10a50, 0x10a58,
+ 0x12000, 0x1236e,
+ 0x12400, 0x12462,
+ 0x12470, 0x12473,
+ 0x1d000, 0x1d0f5,
+ 0x1d100, 0x1d126,
+ 0x1d129, 0x1d1dd,
+ 0x1d200, 0x1d245,
+ 0x1d300, 0x1d356,
+ 0x1d360, 0x1d371,
+ 0x1d400, 0x1d454,
+ 0x1d456, 0x1d49c,
+ 0x1d49e, 0x1d49f,
+ 0x1d4a2, 0x1d4a2,
+ 0x1d4a5, 0x1d4a6,
+ 0x1d4a9, 0x1d4ac,
+ 0x1d4ae, 0x1d4b9,
+ 0x1d4bb, 0x1d4bb,
+ 0x1d4bd, 0x1d4c3,
+ 0x1d4c5, 0x1d505,
+ 0x1d507, 0x1d50a,
+ 0x1d50d, 0x1d514,
+ 0x1d516, 0x1d51c,
+ 0x1d51e, 0x1d539,
+ 0x1d53b, 0x1d53e,
+ 0x1d540, 0x1d544,
+ 0x1d546, 0x1d546,
+ 0x1d54a, 0x1d550,
+ 0x1d552, 0x1d6a5,
+ 0x1d6a8, 0x1d7cb,
+ 0x1d7ce, 0x1d7ff,
+ 0x1f000, 0x1f02b,
+ 0x1f030, 0x1f093,
+ 0x1fffe, 0x2a6d6,
+ 0x2f800, 0x2fa1d,
+ 0x2fffe, 0x2ffff,
+ 0x3fffe, 0x3ffff,
+ 0x4fffe, 0x4ffff,
+ 0x5fffe, 0x5ffff,
+ 0x6fffe, 0x6ffff,
+ 0x7fffe, 0x7ffff,
+ 0x8fffe, 0x8ffff,
+ 0x9fffe, 0x9ffff,
+ 0xafffe, 0xaffff,
+ 0xbfffe, 0xbffff,
+ 0xcfffe, 0xcffff,
+ 0xdfffe, 0xdffff,
+ 0xe0001, 0xe0001,
+ 0xe0020, 0xe007f,
+ 0xe0100, 0xe01ef,
+ 0xefffe, 0x10ffff,
+}; /* CR_Age_5_1 */
+
+/* 'Age_5_2': Derived Age 5.2 */
+static const OnigCodePoint CR_Age_5_2[] = {
+ 495,
+ 0x0000, 0x0377,
+ 0x037a, 0x037e,
+ 0x0384, 0x038a,
+ 0x038c, 0x038c,
+ 0x038e, 0x03a1,
+ 0x03a3, 0x0525,
+ 0x0531, 0x0556,
+ 0x0559, 0x055f,
+ 0x0561, 0x0587,
+ 0x0589, 0x058a,
+ 0x0591, 0x05c7,
+ 0x05d0, 0x05ea,
+ 0x05f0, 0x05f4,
+ 0x0600, 0x0603,
+ 0x0606, 0x061b,
+ 0x061e, 0x061f,
+ 0x0621, 0x065e,
+ 0x0660, 0x070d,
+ 0x070f, 0x074a,
+ 0x074d, 0x07b1,
+ 0x07c0, 0x07fa,
+ 0x0800, 0x082d,
+ 0x0830, 0x083e,
+ 0x0900, 0x0939,
+ 0x093c, 0x094e,
+ 0x0950, 0x0955,
+ 0x0958, 0x0972,
+ 0x0979, 0x097f,
+ 0x0981, 0x0983,
+ 0x0985, 0x098c,
+ 0x098f, 0x0990,
+ 0x0993, 0x09a8,
+ 0x09aa, 0x09b0,
+ 0x09b2, 0x09b2,
+ 0x09b6, 0x09b9,
+ 0x09bc, 0x09c4,
+ 0x09c7, 0x09c8,
+ 0x09cb, 0x09ce,
+ 0x09d7, 0x09d7,
+ 0x09dc, 0x09dd,
+ 0x09df, 0x09e3,
+ 0x09e6, 0x09fb,
+ 0x0a01, 0x0a03,
+ 0x0a05, 0x0a0a,
+ 0x0a0f, 0x0a10,
+ 0x0a13, 0x0a28,
+ 0x0a2a, 0x0a30,
+ 0x0a32, 0x0a33,
+ 0x0a35, 0x0a36,
+ 0x0a38, 0x0a39,
+ 0x0a3c, 0x0a3c,
+ 0x0a3e, 0x0a42,
+ 0x0a47, 0x0a48,
+ 0x0a4b, 0x0a4d,
+ 0x0a51, 0x0a51,
+ 0x0a59, 0x0a5c,
+ 0x0a5e, 0x0a5e,
+ 0x0a66, 0x0a75,
+ 0x0a81, 0x0a83,
+ 0x0a85, 0x0a8d,
+ 0x0a8f, 0x0a91,
+ 0x0a93, 0x0aa8,
+ 0x0aaa, 0x0ab0,
+ 0x0ab2, 0x0ab3,
+ 0x0ab5, 0x0ab9,
+ 0x0abc, 0x0ac5,
+ 0x0ac7, 0x0ac9,
+ 0x0acb, 0x0acd,
+ 0x0ad0, 0x0ad0,
+ 0x0ae0, 0x0ae3,
+ 0x0ae6, 0x0aef,
+ 0x0af1, 0x0af1,
+ 0x0b01, 0x0b03,
+ 0x0b05, 0x0b0c,
+ 0x0b0f, 0x0b10,
+ 0x0b13, 0x0b28,
+ 0x0b2a, 0x0b30,
+ 0x0b32, 0x0b33,
+ 0x0b35, 0x0b39,
+ 0x0b3c, 0x0b44,
+ 0x0b47, 0x0b48,
+ 0x0b4b, 0x0b4d,
+ 0x0b56, 0x0b57,
+ 0x0b5c, 0x0b5d,
+ 0x0b5f, 0x0b63,
+ 0x0b66, 0x0b71,
+ 0x0b82, 0x0b83,
+ 0x0b85, 0x0b8a,
+ 0x0b8e, 0x0b90,
+ 0x0b92, 0x0b95,
+ 0x0b99, 0x0b9a,
+ 0x0b9c, 0x0b9c,
+ 0x0b9e, 0x0b9f,
+ 0x0ba3, 0x0ba4,
+ 0x0ba8, 0x0baa,
+ 0x0bae, 0x0bb9,
+ 0x0bbe, 0x0bc2,
+ 0x0bc6, 0x0bc8,
+ 0x0bca, 0x0bcd,
+ 0x0bd0, 0x0bd0,
+ 0x0bd7, 0x0bd7,
+ 0x0be6, 0x0bfa,
+ 0x0c01, 0x0c03,
+ 0x0c05, 0x0c0c,
+ 0x0c0e, 0x0c10,
+ 0x0c12, 0x0c28,
+ 0x0c2a, 0x0c33,
+ 0x0c35, 0x0c39,
+ 0x0c3d, 0x0c44,
+ 0x0c46, 0x0c48,
+ 0x0c4a, 0x0c4d,
+ 0x0c55, 0x0c56,
+ 0x0c58, 0x0c59,
+ 0x0c60, 0x0c63,
+ 0x0c66, 0x0c6f,
+ 0x0c78, 0x0c7f,
+ 0x0c82, 0x0c83,
+ 0x0c85, 0x0c8c,
+ 0x0c8e, 0x0c90,
+ 0x0c92, 0x0ca8,
+ 0x0caa, 0x0cb3,
+ 0x0cb5, 0x0cb9,
+ 0x0cbc, 0x0cc4,
+ 0x0cc6, 0x0cc8,
+ 0x0cca, 0x0ccd,
+ 0x0cd5, 0x0cd6,
+ 0x0cde, 0x0cde,
+ 0x0ce0, 0x0ce3,
+ 0x0ce6, 0x0cef,
+ 0x0cf1, 0x0cf2,
+ 0x0d02, 0x0d03,
+ 0x0d05, 0x0d0c,
+ 0x0d0e, 0x0d10,
+ 0x0d12, 0x0d28,
+ 0x0d2a, 0x0d39,
+ 0x0d3d, 0x0d44,
+ 0x0d46, 0x0d48,
+ 0x0d4a, 0x0d4d,
+ 0x0d57, 0x0d57,
+ 0x0d60, 0x0d63,
+ 0x0d66, 0x0d75,
+ 0x0d79, 0x0d7f,
+ 0x0d82, 0x0d83,
+ 0x0d85, 0x0d96,
+ 0x0d9a, 0x0db1,
+ 0x0db3, 0x0dbb,
+ 0x0dbd, 0x0dbd,
+ 0x0dc0, 0x0dc6,
+ 0x0dca, 0x0dca,
+ 0x0dcf, 0x0dd4,
+ 0x0dd6, 0x0dd6,
+ 0x0dd8, 0x0ddf,
+ 0x0df2, 0x0df4,
+ 0x0e01, 0x0e3a,
+ 0x0e3f, 0x0e5b,
+ 0x0e81, 0x0e82,
+ 0x0e84, 0x0e84,
+ 0x0e87, 0x0e88,
+ 0x0e8a, 0x0e8a,
+ 0x0e8d, 0x0e8d,
+ 0x0e94, 0x0e97,
+ 0x0e99, 0x0e9f,
+ 0x0ea1, 0x0ea3,
+ 0x0ea5, 0x0ea5,
+ 0x0ea7, 0x0ea7,
+ 0x0eaa, 0x0eab,
+ 0x0ead, 0x0eb9,
+ 0x0ebb, 0x0ebd,
+ 0x0ec0, 0x0ec4,
+ 0x0ec6, 0x0ec6,
+ 0x0ec8, 0x0ecd,
+ 0x0ed0, 0x0ed9,
+ 0x0edc, 0x0edd,
+ 0x0f00, 0x0f47,
+ 0x0f49, 0x0f6c,
+ 0x0f71, 0x0f8b,
+ 0x0f90, 0x0f97,
+ 0x0f99, 0x0fbc,
+ 0x0fbe, 0x0fcc,
+ 0x0fce, 0x0fd8,
+ 0x1000, 0x10c5,
+ 0x10d0, 0x10fc,
+ 0x1100, 0x1248,
+ 0x124a, 0x124d,
+ 0x1250, 0x1256,
+ 0x1258, 0x1258,
+ 0x125a, 0x125d,
+ 0x1260, 0x1288,
+ 0x128a, 0x128d,
+ 0x1290, 0x12b0,
+ 0x12b2, 0x12b5,
+ 0x12b8, 0x12be,
+ 0x12c0, 0x12c0,
+ 0x12c2, 0x12c5,
+ 0x12c8, 0x12d6,
+ 0x12d8, 0x1310,
+ 0x1312, 0x1315,
+ 0x1318, 0x135a,
+ 0x135f, 0x137c,
+ 0x1380, 0x1399,
+ 0x13a0, 0x13f4,
+ 0x1400, 0x169c,
+ 0x16a0, 0x16f0,
+ 0x1700, 0x170c,
+ 0x170e, 0x1714,
+ 0x1720, 0x1736,
+ 0x1740, 0x1753,
+ 0x1760, 0x176c,
+ 0x176e, 0x1770,
+ 0x1772, 0x1773,
+ 0x1780, 0x17dd,
+ 0x17e0, 0x17e9,
+ 0x17f0, 0x17f9,
+ 0x1800, 0x180e,
+ 0x1810, 0x1819,
+ 0x1820, 0x1877,
+ 0x1880, 0x18aa,
+ 0x18b0, 0x18f5,
+ 0x1900, 0x191c,
+ 0x1920, 0x192b,
+ 0x1930, 0x193b,
+ 0x1940, 0x1940,
+ 0x1944, 0x196d,
+ 0x1970, 0x1974,
+ 0x1980, 0x19ab,
+ 0x19b0, 0x19c9,
+ 0x19d0, 0x19da,
+ 0x19de, 0x1a1b,
+ 0x1a1e, 0x1a5e,
+ 0x1a60, 0x1a7c,
+ 0x1a7f, 0x1a89,
+ 0x1a90, 0x1a99,
+ 0x1aa0, 0x1aad,
+ 0x1b00, 0x1b4b,
+ 0x1b50, 0x1b7c,
+ 0x1b80, 0x1baa,
+ 0x1bae, 0x1bb9,
+ 0x1c00, 0x1c37,
+ 0x1c3b, 0x1c49,
+ 0x1c4d, 0x1c7f,
+ 0x1cd0, 0x1cf2,
+ 0x1d00, 0x1de6,
+ 0x1dfd, 0x1f15,
+ 0x1f18, 0x1f1d,
+ 0x1f20, 0x1f45,
+ 0x1f48, 0x1f4d,
+ 0x1f50, 0x1f57,
+ 0x1f59, 0x1f59,
+ 0x1f5b, 0x1f5b,
+ 0x1f5d, 0x1f5d,
+ 0x1f5f, 0x1f7d,
+ 0x1f80, 0x1fb4,
+ 0x1fb6, 0x1fc4,
+ 0x1fc6, 0x1fd3,
+ 0x1fd6, 0x1fdb,
+ 0x1fdd, 0x1fef,
+ 0x1ff2, 0x1ff4,
+ 0x1ff6, 0x1ffe,
+ 0x2000, 0x2064,
+ 0x206a, 0x2071,
+ 0x2074, 0x208e,
+ 0x2090, 0x2094,
+ 0x20a0, 0x20b8,
+ 0x20d0, 0x20f0,
+ 0x2100, 0x2189,
+ 0x2190, 0x23e8,
+ 0x2400, 0x2426,
+ 0x2440, 0x244a,
+ 0x2460, 0x26cd,
+ 0x26cf, 0x26e1,
+ 0x26e3, 0x26e3,
+ 0x26e8, 0x26ff,
+ 0x2701, 0x2704,
+ 0x2706, 0x2709,
+ 0x270c, 0x2727,
+ 0x2729, 0x274b,
+ 0x274d, 0x274d,
+ 0x274f, 0x2752,
+ 0x2756, 0x275e,
+ 0x2761, 0x2794,
+ 0x2798, 0x27af,
+ 0x27b1, 0x27be,
+ 0x27c0, 0x27ca,
+ 0x27cc, 0x27cc,
+ 0x27d0, 0x2b4c,
+ 0x2b50, 0x2b59,
+ 0x2c00, 0x2c2e,
+ 0x2c30, 0x2c5e,
+ 0x2c60, 0x2cf1,
+ 0x2cf9, 0x2d25,
+ 0x2d30, 0x2d65,
+ 0x2d6f, 0x2d6f,
+ 0x2d80, 0x2d96,
+ 0x2da0, 0x2da6,
+ 0x2da8, 0x2dae,
+ 0x2db0, 0x2db6,
+ 0x2db8, 0x2dbe,
+ 0x2dc0, 0x2dc6,
+ 0x2dc8, 0x2dce,
+ 0x2dd0, 0x2dd6,
+ 0x2dd8, 0x2dde,
+ 0x2de0, 0x2e31,
+ 0x2e80, 0x2e99,
+ 0x2e9b, 0x2ef3,
+ 0x2f00, 0x2fd5,
+ 0x2ff0, 0x2ffb,
+ 0x3000, 0x303f,
+ 0x3041, 0x3096,
+ 0x3099, 0x30ff,
+ 0x3105, 0x312d,
+ 0x3131, 0x318e,
+ 0x3190, 0x31b7,
+ 0x31c0, 0x31e3,
+ 0x31f0, 0x321e,
+ 0x3220, 0x32fe,
+ 0x3300, 0x4db5,
+ 0x4dc0, 0x9fcb,
+ 0xa000, 0xa48c,
+ 0xa490, 0xa4c6,
+ 0xa4d0, 0xa62b,
+ 0xa640, 0xa65f,
+ 0xa662, 0xa673,
+ 0xa67c, 0xa697,
+ 0xa6a0, 0xa6f7,
+ 0xa700, 0xa78c,
+ 0xa7fb, 0xa82b,
+ 0xa830, 0xa839,
+ 0xa840, 0xa877,
+ 0xa880, 0xa8c4,
+ 0xa8ce, 0xa8d9,
+ 0xa8e0, 0xa8fb,
+ 0xa900, 0xa953,
+ 0xa95f, 0xa97c,
+ 0xa980, 0xa9cd,
+ 0xa9cf, 0xa9d9,
+ 0xa9de, 0xa9df,
+ 0xaa00, 0xaa36,
+ 0xaa40, 0xaa4d,
+ 0xaa50, 0xaa59,
+ 0xaa5c, 0xaa7b,
+ 0xaa80, 0xaac2,
+ 0xaadb, 0xaadf,
+ 0xabc0, 0xabed,
+ 0xabf0, 0xabf9,
+ 0xac00, 0xd7a3,
+ 0xd7b0, 0xd7c6,
+ 0xd7cb, 0xd7fb,
+ 0xd800, 0xfa2d,
+ 0xfa30, 0xfa6d,
+ 0xfa70, 0xfad9,
+ 0xfb00, 0xfb06,
+ 0xfb13, 0xfb17,
+ 0xfb1d, 0xfb36,
+ 0xfb38, 0xfb3c,
+ 0xfb3e, 0xfb3e,
+ 0xfb40, 0xfb41,
+ 0xfb43, 0xfb44,
+ 0xfb46, 0xfbb1,
+ 0xfbd3, 0xfd3f,
+ 0xfd50, 0xfd8f,
+ 0xfd92, 0xfdc7,
+ 0xfdd0, 0xfdfd,
+ 0xfe00, 0xfe19,
+ 0xfe20, 0xfe26,
+ 0xfe30, 0xfe52,
+ 0xfe54, 0xfe66,
+ 0xfe68, 0xfe6b,
+ 0xfe70, 0xfe74,
+ 0xfe76, 0xfefc,
+ 0xfeff, 0xfeff,
+ 0xff01, 0xffbe,
+ 0xffc2, 0xffc7,
+ 0xffca, 0xffcf,
+ 0xffd2, 0xffd7,
+ 0xffda, 0xffdc,
+ 0xffe0, 0xffe6,
+ 0xffe8, 0xffee,
+ 0xfff9, 0x1000b,
+ 0x1000d, 0x10026,
+ 0x10028, 0x1003a,
+ 0x1003c, 0x1003d,
+ 0x1003f, 0x1004d,
+ 0x10050, 0x1005d,
+ 0x10080, 0x100fa,
+ 0x10100, 0x10102,
+ 0x10107, 0x10133,
+ 0x10137, 0x1018a,
+ 0x10190, 0x1019b,
+ 0x101d0, 0x101fd,
+ 0x10280, 0x1029c,
+ 0x102a0, 0x102d0,
+ 0x10300, 0x1031e,
+ 0x10320, 0x10323,
+ 0x10330, 0x1034a,
+ 0x10380, 0x1039d,
+ 0x1039f, 0x103c3,
+ 0x103c8, 0x103d5,
+ 0x10400, 0x1049d,
+ 0x104a0, 0x104a9,
+ 0x10800, 0x10805,
+ 0x10808, 0x10808,
+ 0x1080a, 0x10835,
+ 0x10837, 0x10838,
+ 0x1083c, 0x1083c,
+ 0x1083f, 0x10855,
+ 0x10857, 0x1085f,
+ 0x10900, 0x1091b,
+ 0x1091f, 0x10939,
+ 0x1093f, 0x1093f,
+ 0x10a00, 0x10a03,
+ 0x10a05, 0x10a06,
+ 0x10a0c, 0x10a13,
+ 0x10a15, 0x10a17,
+ 0x10a19, 0x10a33,
+ 0x10a38, 0x10a3a,
+ 0x10a3f, 0x10a47,
+ 0x10a50, 0x10a58,
+ 0x10a60, 0x10a7f,
+ 0x10b00, 0x10b35,
+ 0x10b39, 0x10b55,
+ 0x10b58, 0x10b72,
+ 0x10b78, 0x10b7f,
+ 0x10c00, 0x10c48,
+ 0x10e60, 0x10e7e,
+ 0x11080, 0x110c1,
+ 0x12000, 0x1236e,
+ 0x12400, 0x12462,
+ 0x12470, 0x12473,
+ 0x13000, 0x1342e,
+ 0x1d000, 0x1d0f5,
+ 0x1d100, 0x1d126,
+ 0x1d129, 0x1d1dd,
+ 0x1d200, 0x1d245,
+ 0x1d300, 0x1d356,
+ 0x1d360, 0x1d371,
+ 0x1d400, 0x1d454,
+ 0x1d456, 0x1d49c,
+ 0x1d49e, 0x1d49f,
+ 0x1d4a2, 0x1d4a2,
+ 0x1d4a5, 0x1d4a6,
+ 0x1d4a9, 0x1d4ac,
+ 0x1d4ae, 0x1d4b9,
+ 0x1d4bb, 0x1d4bb,
+ 0x1d4bd, 0x1d4c3,
+ 0x1d4c5, 0x1d505,
+ 0x1d507, 0x1d50a,
+ 0x1d50d, 0x1d514,
+ 0x1d516, 0x1d51c,
+ 0x1d51e, 0x1d539,
+ 0x1d53b, 0x1d53e,
+ 0x1d540, 0x1d544,
+ 0x1d546, 0x1d546,
+ 0x1d54a, 0x1d550,
+ 0x1d552, 0x1d6a5,
+ 0x1d6a8, 0x1d7cb,
+ 0x1d7ce, 0x1d7ff,
+ 0x1f000, 0x1f02b,
+ 0x1f030, 0x1f093,
+ 0x1f100, 0x1f10a,
+ 0x1f110, 0x1f12e,
+ 0x1f131, 0x1f131,
+ 0x1f13d, 0x1f13d,
+ 0x1f13f, 0x1f13f,
+ 0x1f142, 0x1f142,
+ 0x1f146, 0x1f146,
+ 0x1f14a, 0x1f14e,
+ 0x1f157, 0x1f157,
+ 0x1f15f, 0x1f15f,
+ 0x1f179, 0x1f179,
+ 0x1f17b, 0x1f17c,
+ 0x1f17f, 0x1f17f,
+ 0x1f18a, 0x1f18d,
+ 0x1f190, 0x1f190,
+ 0x1f200, 0x1f200,
+ 0x1f210, 0x1f231,
+ 0x1f240, 0x1f248,
+ 0x1fffe, 0x2a6d6,
+ 0x2a700, 0x2b734,
+ 0x2f800, 0x2fa1d,
+ 0x2fffe, 0x2ffff,
+ 0x3fffe, 0x3ffff,
+ 0x4fffe, 0x4ffff,
+ 0x5fffe, 0x5ffff,
+ 0x6fffe, 0x6ffff,
+ 0x7fffe, 0x7ffff,
+ 0x8fffe, 0x8ffff,
+ 0x9fffe, 0x9ffff,
+ 0xafffe, 0xaffff,
+ 0xbfffe, 0xbffff,
+ 0xcfffe, 0xcffff,
+ 0xdfffe, 0xdffff,
+ 0xe0001, 0xe0001,
+ 0xe0020, 0xe007f,
+ 0xe0100, 0xe01ef,
+ 0xefffe, 0x10ffff,
+}; /* CR_Age_5_2 */
+
+/* 'Age_6_0': Derived Age 6.0 */
+static const OnigCodePoint CR_Age_6_0[] = {
+ 511,
+ 0x0000, 0x0377,
+ 0x037a, 0x037e,
+ 0x0384, 0x038a,
+ 0x038c, 0x038c,
+ 0x038e, 0x03a1,
+ 0x03a3, 0x0527,
+ 0x0531, 0x0556,
+ 0x0559, 0x055f,
+ 0x0561, 0x0587,
+ 0x0589, 0x058a,
+ 0x0591, 0x05c7,
+ 0x05d0, 0x05ea,
+ 0x05f0, 0x05f4,
+ 0x0600, 0x0603,
+ 0x0606, 0x061b,
+ 0x061e, 0x070d,
+ 0x070f, 0x074a,
+ 0x074d, 0x07b1,
+ 0x07c0, 0x07fa,
+ 0x0800, 0x082d,
+ 0x0830, 0x083e,
+ 0x0840, 0x085b,
+ 0x085e, 0x085e,
+ 0x0900, 0x0977,
+ 0x0979, 0x097f,
+ 0x0981, 0x0983,
+ 0x0985, 0x098c,
+ 0x098f, 0x0990,
+ 0x0993, 0x09a8,
+ 0x09aa, 0x09b0,
+ 0x09b2, 0x09b2,
+ 0x09b6, 0x09b9,
+ 0x09bc, 0x09c4,
+ 0x09c7, 0x09c8,
+ 0x09cb, 0x09ce,
+ 0x09d7, 0x09d7,
+ 0x09dc, 0x09dd,
+ 0x09df, 0x09e3,
+ 0x09e6, 0x09fb,
+ 0x0a01, 0x0a03,
+ 0x0a05, 0x0a0a,
+ 0x0a0f, 0x0a10,
+ 0x0a13, 0x0a28,
+ 0x0a2a, 0x0a30,
+ 0x0a32, 0x0a33,
+ 0x0a35, 0x0a36,
+ 0x0a38, 0x0a39,
+ 0x0a3c, 0x0a3c,
+ 0x0a3e, 0x0a42,
+ 0x0a47, 0x0a48,
+ 0x0a4b, 0x0a4d,
+ 0x0a51, 0x0a51,
+ 0x0a59, 0x0a5c,
+ 0x0a5e, 0x0a5e,
+ 0x0a66, 0x0a75,
+ 0x0a81, 0x0a83,
+ 0x0a85, 0x0a8d,
+ 0x0a8f, 0x0a91,
+ 0x0a93, 0x0aa8,
+ 0x0aaa, 0x0ab0,
+ 0x0ab2, 0x0ab3,
+ 0x0ab5, 0x0ab9,
+ 0x0abc, 0x0ac5,
+ 0x0ac7, 0x0ac9,
+ 0x0acb, 0x0acd,
+ 0x0ad0, 0x0ad0,
+ 0x0ae0, 0x0ae3,
+ 0x0ae6, 0x0aef,
+ 0x0af1, 0x0af1,
+ 0x0b01, 0x0b03,
+ 0x0b05, 0x0b0c,
+ 0x0b0f, 0x0b10,
+ 0x0b13, 0x0b28,
+ 0x0b2a, 0x0b30,
+ 0x0b32, 0x0b33,
+ 0x0b35, 0x0b39,
+ 0x0b3c, 0x0b44,
+ 0x0b47, 0x0b48,
+ 0x0b4b, 0x0b4d,
+ 0x0b56, 0x0b57,
+ 0x0b5c, 0x0b5d,
+ 0x0b5f, 0x0b63,
+ 0x0b66, 0x0b77,
+ 0x0b82, 0x0b83,
+ 0x0b85, 0x0b8a,
+ 0x0b8e, 0x0b90,
+ 0x0b92, 0x0b95,
+ 0x0b99, 0x0b9a,
+ 0x0b9c, 0x0b9c,
+ 0x0b9e, 0x0b9f,
+ 0x0ba3, 0x0ba4,
+ 0x0ba8, 0x0baa,
+ 0x0bae, 0x0bb9,
+ 0x0bbe, 0x0bc2,
+ 0x0bc6, 0x0bc8,
+ 0x0bca, 0x0bcd,
+ 0x0bd0, 0x0bd0,
+ 0x0bd7, 0x0bd7,
+ 0x0be6, 0x0bfa,
+ 0x0c01, 0x0c03,
+ 0x0c05, 0x0c0c,
+ 0x0c0e, 0x0c10,
+ 0x0c12, 0x0c28,
+ 0x0c2a, 0x0c33,
+ 0x0c35, 0x0c39,
+ 0x0c3d, 0x0c44,
+ 0x0c46, 0x0c48,
+ 0x0c4a, 0x0c4d,
+ 0x0c55, 0x0c56,
+ 0x0c58, 0x0c59,
+ 0x0c60, 0x0c63,
+ 0x0c66, 0x0c6f,
+ 0x0c78, 0x0c7f,
+ 0x0c82, 0x0c83,
+ 0x0c85, 0x0c8c,
+ 0x0c8e, 0x0c90,
+ 0x0c92, 0x0ca8,
+ 0x0caa, 0x0cb3,
+ 0x0cb5, 0x0cb9,
+ 0x0cbc, 0x0cc4,
+ 0x0cc6, 0x0cc8,
+ 0x0cca, 0x0ccd,
+ 0x0cd5, 0x0cd6,
+ 0x0cde, 0x0cde,
+ 0x0ce0, 0x0ce3,
+ 0x0ce6, 0x0cef,
+ 0x0cf1, 0x0cf2,
+ 0x0d02, 0x0d03,
+ 0x0d05, 0x0d0c,
+ 0x0d0e, 0x0d10,
+ 0x0d12, 0x0d3a,
+ 0x0d3d, 0x0d44,
+ 0x0d46, 0x0d48,
+ 0x0d4a, 0x0d4e,
+ 0x0d57, 0x0d57,
+ 0x0d60, 0x0d63,
+ 0x0d66, 0x0d75,
+ 0x0d79, 0x0d7f,
+ 0x0d82, 0x0d83,
+ 0x0d85, 0x0d96,
+ 0x0d9a, 0x0db1,
+ 0x0db3, 0x0dbb,
+ 0x0dbd, 0x0dbd,
+ 0x0dc0, 0x0dc6,
+ 0x0dca, 0x0dca,
+ 0x0dcf, 0x0dd4,
+ 0x0dd6, 0x0dd6,
+ 0x0dd8, 0x0ddf,
+ 0x0df2, 0x0df4,
+ 0x0e01, 0x0e3a,
+ 0x0e3f, 0x0e5b,
+ 0x0e81, 0x0e82,
+ 0x0e84, 0x0e84,
+ 0x0e87, 0x0e88,
+ 0x0e8a, 0x0e8a,
+ 0x0e8d, 0x0e8d,
+ 0x0e94, 0x0e97,
+ 0x0e99, 0x0e9f,
+ 0x0ea1, 0x0ea3,
+ 0x0ea5, 0x0ea5,
+ 0x0ea7, 0x0ea7,
+ 0x0eaa, 0x0eab,
+ 0x0ead, 0x0eb9,
+ 0x0ebb, 0x0ebd,
+ 0x0ec0, 0x0ec4,
+ 0x0ec6, 0x0ec6,
+ 0x0ec8, 0x0ecd,
+ 0x0ed0, 0x0ed9,
+ 0x0edc, 0x0edd,
+ 0x0f00, 0x0f47,
+ 0x0f49, 0x0f6c,
+ 0x0f71, 0x0f97,
+ 0x0f99, 0x0fbc,
+ 0x0fbe, 0x0fcc,
+ 0x0fce, 0x0fda,
+ 0x1000, 0x10c5,
+ 0x10d0, 0x10fc,
+ 0x1100, 0x1248,
+ 0x124a, 0x124d,
+ 0x1250, 0x1256,
+ 0x1258, 0x1258,
+ 0x125a, 0x125d,
+ 0x1260, 0x1288,
+ 0x128a, 0x128d,
+ 0x1290, 0x12b0,
+ 0x12b2, 0x12b5,
+ 0x12b8, 0x12be,
+ 0x12c0, 0x12c0,
+ 0x12c2, 0x12c5,
+ 0x12c8, 0x12d6,
+ 0x12d8, 0x1310,
+ 0x1312, 0x1315,
+ 0x1318, 0x135a,
+ 0x135d, 0x137c,
+ 0x1380, 0x1399,
+ 0x13a0, 0x13f4,
+ 0x1400, 0x169c,
+ 0x16a0, 0x16f0,
+ 0x1700, 0x170c,
+ 0x170e, 0x1714,
+ 0x1720, 0x1736,
+ 0x1740, 0x1753,
+ 0x1760, 0x176c,
+ 0x176e, 0x1770,
+ 0x1772, 0x1773,
+ 0x1780, 0x17dd,
+ 0x17e0, 0x17e9,
+ 0x17f0, 0x17f9,
+ 0x1800, 0x180e,
+ 0x1810, 0x1819,
+ 0x1820, 0x1877,
+ 0x1880, 0x18aa,
+ 0x18b0, 0x18f5,
+ 0x1900, 0x191c,
+ 0x1920, 0x192b,
+ 0x1930, 0x193b,
+ 0x1940, 0x1940,
+ 0x1944, 0x196d,
+ 0x1970, 0x1974,
+ 0x1980, 0x19ab,
+ 0x19b0, 0x19c9,
+ 0x19d0, 0x19da,
+ 0x19de, 0x1a1b,
+ 0x1a1e, 0x1a5e,
+ 0x1a60, 0x1a7c,
+ 0x1a7f, 0x1a89,
+ 0x1a90, 0x1a99,
+ 0x1aa0, 0x1aad,
+ 0x1b00, 0x1b4b,
+ 0x1b50, 0x1b7c,
+ 0x1b80, 0x1baa,
+ 0x1bae, 0x1bb9,
+ 0x1bc0, 0x1bf3,
+ 0x1bfc, 0x1c37,
+ 0x1c3b, 0x1c49,
+ 0x1c4d, 0x1c7f,
+ 0x1cd0, 0x1cf2,
+ 0x1d00, 0x1de6,
+ 0x1dfc, 0x1f15,
+ 0x1f18, 0x1f1d,
+ 0x1f20, 0x1f45,
+ 0x1f48, 0x1f4d,
+ 0x1f50, 0x1f57,
+ 0x1f59, 0x1f59,
+ 0x1f5b, 0x1f5b,
+ 0x1f5d, 0x1f5d,
+ 0x1f5f, 0x1f7d,
+ 0x1f80, 0x1fb4,
+ 0x1fb6, 0x1fc4,
+ 0x1fc6, 0x1fd3,
+ 0x1fd6, 0x1fdb,
+ 0x1fdd, 0x1fef,
+ 0x1ff2, 0x1ff4,
+ 0x1ff6, 0x1ffe,
+ 0x2000, 0x2064,
+ 0x206a, 0x2071,
+ 0x2074, 0x208e,
+ 0x2090, 0x209c,
+ 0x20a0, 0x20b9,
+ 0x20d0, 0x20f0,
+ 0x2100, 0x2189,
+ 0x2190, 0x23f3,
+ 0x2400, 0x2426,
+ 0x2440, 0x244a,
+ 0x2460, 0x26ff,
+ 0x2701, 0x27ca,
+ 0x27cc, 0x27cc,
+ 0x27ce, 0x2b4c,
+ 0x2b50, 0x2b59,
+ 0x2c00, 0x2c2e,
+ 0x2c30, 0x2c5e,
+ 0x2c60, 0x2cf1,
+ 0x2cf9, 0x2d25,
+ 0x2d30, 0x2d65,
+ 0x2d6f, 0x2d70,
+ 0x2d7f, 0x2d96,
+ 0x2da0, 0x2da6,
+ 0x2da8, 0x2dae,
+ 0x2db0, 0x2db6,
+ 0x2db8, 0x2dbe,
+ 0x2dc0, 0x2dc6,
+ 0x2dc8, 0x2dce,
+ 0x2dd0, 0x2dd6,
+ 0x2dd8, 0x2dde,
+ 0x2de0, 0x2e31,
+ 0x2e80, 0x2e99,
+ 0x2e9b, 0x2ef3,
+ 0x2f00, 0x2fd5,
+ 0x2ff0, 0x2ffb,
+ 0x3000, 0x303f,
+ 0x3041, 0x3096,
+ 0x3099, 0x30ff,
+ 0x3105, 0x312d,
+ 0x3131, 0x318e,
+ 0x3190, 0x31ba,
+ 0x31c0, 0x31e3,
+ 0x31f0, 0x321e,
+ 0x3220, 0x32fe,
+ 0x3300, 0x4db5,
+ 0x4dc0, 0x9fcb,
+ 0xa000, 0xa48c,
+ 0xa490, 0xa4c6,
+ 0xa4d0, 0xa62b,
+ 0xa640, 0xa673,
+ 0xa67c, 0xa697,
+ 0xa6a0, 0xa6f7,
+ 0xa700, 0xa78e,
+ 0xa790, 0xa791,
+ 0xa7a0, 0xa7a9,
+ 0xa7fa, 0xa82b,
+ 0xa830, 0xa839,
+ 0xa840, 0xa877,
+ 0xa880, 0xa8c4,
+ 0xa8ce, 0xa8d9,
+ 0xa8e0, 0xa8fb,
+ 0xa900, 0xa953,
+ 0xa95f, 0xa97c,
+ 0xa980, 0xa9cd,
+ 0xa9cf, 0xa9d9,
+ 0xa9de, 0xa9df,
+ 0xaa00, 0xaa36,
+ 0xaa40, 0xaa4d,
+ 0xaa50, 0xaa59,
+ 0xaa5c, 0xaa7b,
+ 0xaa80, 0xaac2,
+ 0xaadb, 0xaadf,
+ 0xab01, 0xab06,
+ 0xab09, 0xab0e,
+ 0xab11, 0xab16,
+ 0xab20, 0xab26,
+ 0xab28, 0xab2e,
+ 0xabc0, 0xabed,
+ 0xabf0, 0xabf9,
+ 0xac00, 0xd7a3,
+ 0xd7b0, 0xd7c6,
+ 0xd7cb, 0xd7fb,
+ 0xd800, 0xfa2d,
+ 0xfa30, 0xfa6d,
+ 0xfa70, 0xfad9,
+ 0xfb00, 0xfb06,
+ 0xfb13, 0xfb17,
+ 0xfb1d, 0xfb36,
+ 0xfb38, 0xfb3c,
+ 0xfb3e, 0xfb3e,
+ 0xfb40, 0xfb41,
+ 0xfb43, 0xfb44,
+ 0xfb46, 0xfbc1,
+ 0xfbd3, 0xfd3f,
+ 0xfd50, 0xfd8f,
+ 0xfd92, 0xfdc7,
+ 0xfdd0, 0xfdfd,
+ 0xfe00, 0xfe19,
+ 0xfe20, 0xfe26,
+ 0xfe30, 0xfe52,
+ 0xfe54, 0xfe66,
+ 0xfe68, 0xfe6b,
+ 0xfe70, 0xfe74,
+ 0xfe76, 0xfefc,
+ 0xfeff, 0xfeff,
+ 0xff01, 0xffbe,
+ 0xffc2, 0xffc7,
+ 0xffca, 0xffcf,
+ 0xffd2, 0xffd7,
+ 0xffda, 0xffdc,
+ 0xffe0, 0xffe6,
+ 0xffe8, 0xffee,
+ 0xfff9, 0x1000b,
+ 0x1000d, 0x10026,
+ 0x10028, 0x1003a,
+ 0x1003c, 0x1003d,
+ 0x1003f, 0x1004d,
+ 0x10050, 0x1005d,
+ 0x10080, 0x100fa,
+ 0x10100, 0x10102,
+ 0x10107, 0x10133,
+ 0x10137, 0x1018a,
+ 0x10190, 0x1019b,
+ 0x101d0, 0x101fd,
+ 0x10280, 0x1029c,
+ 0x102a0, 0x102d0,
+ 0x10300, 0x1031e,
+ 0x10320, 0x10323,
+ 0x10330, 0x1034a,
+ 0x10380, 0x1039d,
+ 0x1039f, 0x103c3,
+ 0x103c8, 0x103d5,
+ 0x10400, 0x1049d,
+ 0x104a0, 0x104a9,
+ 0x10800, 0x10805,
+ 0x10808, 0x10808,
+ 0x1080a, 0x10835,
+ 0x10837, 0x10838,
+ 0x1083c, 0x1083c,
+ 0x1083f, 0x10855,
+ 0x10857, 0x1085f,
+ 0x10900, 0x1091b,
+ 0x1091f, 0x10939,
+ 0x1093f, 0x1093f,
+ 0x10a00, 0x10a03,
+ 0x10a05, 0x10a06,
+ 0x10a0c, 0x10a13,
+ 0x10a15, 0x10a17,
+ 0x10a19, 0x10a33,
+ 0x10a38, 0x10a3a,
+ 0x10a3f, 0x10a47,
+ 0x10a50, 0x10a58,
+ 0x10a60, 0x10a7f,
+ 0x10b00, 0x10b35,
+ 0x10b39, 0x10b55,
+ 0x10b58, 0x10b72,
+ 0x10b78, 0x10b7f,
+ 0x10c00, 0x10c48,
+ 0x10e60, 0x10e7e,
+ 0x11000, 0x1104d,
+ 0x11052, 0x1106f,
+ 0x11080, 0x110c1,
+ 0x12000, 0x1236e,
+ 0x12400, 0x12462,
+ 0x12470, 0x12473,
+ 0x13000, 0x1342e,
+ 0x16800, 0x16a38,
+ 0x1b000, 0x1b001,
+ 0x1d000, 0x1d0f5,
+ 0x1d100, 0x1d126,
+ 0x1d129, 0x1d1dd,
+ 0x1d200, 0x1d245,
+ 0x1d300, 0x1d356,
+ 0x1d360, 0x1d371,
+ 0x1d400, 0x1d454,
+ 0x1d456, 0x1d49c,
+ 0x1d49e, 0x1d49f,
+ 0x1d4a2, 0x1d4a2,
+ 0x1d4a5, 0x1d4a6,
+ 0x1d4a9, 0x1d4ac,
+ 0x1d4ae, 0x1d4b9,
+ 0x1d4bb, 0x1d4bb,
+ 0x1d4bd, 0x1d4c3,
+ 0x1d4c5, 0x1d505,
+ 0x1d507, 0x1d50a,
+ 0x1d50d, 0x1d514,
+ 0x1d516, 0x1d51c,
+ 0x1d51e, 0x1d539,
+ 0x1d53b, 0x1d53e,
+ 0x1d540, 0x1d544,
+ 0x1d546, 0x1d546,
+ 0x1d54a, 0x1d550,
+ 0x1d552, 0x1d6a5,
+ 0x1d6a8, 0x1d7cb,
+ 0x1d7ce, 0x1d7ff,
+ 0x1f000, 0x1f02b,
+ 0x1f030, 0x1f093,
+ 0x1f0a0, 0x1f0ae,
+ 0x1f0b1, 0x1f0be,
+ 0x1f0c1, 0x1f0cf,
+ 0x1f0d1, 0x1f0df,
+ 0x1f100, 0x1f10a,
+ 0x1f110, 0x1f12e,
+ 0x1f130, 0x1f169,
+ 0x1f170, 0x1f19a,
+ 0x1f1e6, 0x1f202,
+ 0x1f210, 0x1f23a,
+ 0x1f240, 0x1f248,
+ 0x1f250, 0x1f251,
+ 0x1f300, 0x1f320,
+ 0x1f330, 0x1f335,
+ 0x1f337, 0x1f37c,
+ 0x1f380, 0x1f393,
+ 0x1f3a0, 0x1f3c4,
+ 0x1f3c6, 0x1f3ca,
+ 0x1f3e0, 0x1f3f0,
+ 0x1f400, 0x1f43e,
+ 0x1f440, 0x1f440,
+ 0x1f442, 0x1f4f7,
+ 0x1f4f9, 0x1f4fc,
+ 0x1f500, 0x1f53d,
+ 0x1f550, 0x1f567,
+ 0x1f5fb, 0x1f5ff,
+ 0x1f601, 0x1f610,
+ 0x1f612, 0x1f614,
+ 0x1f616, 0x1f616,
+ 0x1f618, 0x1f618,
+ 0x1f61a, 0x1f61a,
+ 0x1f61c, 0x1f61e,
+ 0x1f620, 0x1f625,
+ 0x1f628, 0x1f62b,
+ 0x1f62d, 0x1f62d,
+ 0x1f630, 0x1f633,
+ 0x1f635, 0x1f640,
+ 0x1f645, 0x1f64f,
+ 0x1f680, 0x1f6c5,
+ 0x1f700, 0x1f773,
+ 0x1fffe, 0x2a6d6,
+ 0x2a700, 0x2b734,
+ 0x2b740, 0x2b81d,
+ 0x2f800, 0x2fa1d,
+ 0x2fffe, 0x2ffff,
+ 0x3fffe, 0x3ffff,
+ 0x4fffe, 0x4ffff,
+ 0x5fffe, 0x5ffff,
+ 0x6fffe, 0x6ffff,
+ 0x7fffe, 0x7ffff,
+ 0x8fffe, 0x8ffff,
+ 0x9fffe, 0x9ffff,
+ 0xafffe, 0xaffff,
+ 0xbfffe, 0xbffff,
+ 0xcfffe, 0xcffff,
+ 0xdfffe, 0xdffff,
+ 0xe0001, 0xe0001,
+ 0xe0020, 0xe007f,
+ 0xe0100, 0xe01ef,
+ 0xefffe, 0x10ffff,
+}; /* CR_Age_6_0 */
+
+/* 'NEWLINE': [[:NEWLINE:]] */
+static const OnigCodePoint CR_NEWLINE[] = {
+ 1,
+ 0x000a, 0x000a,
+}; /* CR_NEWLINE */
+
+/* 'Alpha': [[:Alpha:]] */
+#define CR_Alpha CR_Alphabetic
+
+/* 'Blank': [[:Blank:]] */
+static const OnigCodePoint CR_Blank[] = {
+ 9,
+ 0x0009, 0x0009,
+ 0x0020, 0x0020,
+ 0x00a0, 0x00a0,
+ 0x1680, 0x1680,
+ 0x180e, 0x180e,
+ 0x2000, 0x200a,
+ 0x202f, 0x202f,
+ 0x205f, 0x205f,
+ 0x3000, 0x3000,
+}; /* CR_Blank */
+
+/* 'Cntrl': [[:Cntrl:]] */
+#define CR_Cntrl CR_Cc
+
+/* 'Digit': [[:Digit:]] */
+#define CR_Digit CR_Nd
+
+/* 'Graph': [[:Graph:]] */
+static const OnigCodePoint CR_Graph[] = {
+ 506,
+ 0x0021, 0x007e,
+ 0x00a1, 0x0377,
+ 0x037a, 0x037e,
+ 0x0384, 0x038a,
+ 0x038c, 0x038c,
+ 0x038e, 0x03a1,
+ 0x03a3, 0x0527,
+ 0x0531, 0x0556,
+ 0x0559, 0x055f,
+ 0x0561, 0x0587,
+ 0x0589, 0x058a,
+ 0x0591, 0x05c7,
+ 0x05d0, 0x05ea,
+ 0x05f0, 0x05f4,
+ 0x0600, 0x0603,
+ 0x0606, 0x061b,
+ 0x061e, 0x070d,
+ 0x070f, 0x074a,
+ 0x074d, 0x07b1,
+ 0x07c0, 0x07fa,
+ 0x0800, 0x082d,
+ 0x0830, 0x083e,
+ 0x0840, 0x085b,
+ 0x085e, 0x085e,
+ 0x0900, 0x0977,
+ 0x0979, 0x097f,
+ 0x0981, 0x0983,
+ 0x0985, 0x098c,
+ 0x098f, 0x0990,
+ 0x0993, 0x09a8,
+ 0x09aa, 0x09b0,
+ 0x09b2, 0x09b2,
+ 0x09b6, 0x09b9,
+ 0x09bc, 0x09c4,
+ 0x09c7, 0x09c8,
+ 0x09cb, 0x09ce,
+ 0x09d7, 0x09d7,
+ 0x09dc, 0x09dd,
+ 0x09df, 0x09e3,
+ 0x09e6, 0x09fb,
+ 0x0a01, 0x0a03,
+ 0x0a05, 0x0a0a,
+ 0x0a0f, 0x0a10,
+ 0x0a13, 0x0a28,
+ 0x0a2a, 0x0a30,
+ 0x0a32, 0x0a33,
+ 0x0a35, 0x0a36,
+ 0x0a38, 0x0a39,
+ 0x0a3c, 0x0a3c,
+ 0x0a3e, 0x0a42,
+ 0x0a47, 0x0a48,
+ 0x0a4b, 0x0a4d,
+ 0x0a51, 0x0a51,
+ 0x0a59, 0x0a5c,
+ 0x0a5e, 0x0a5e,
+ 0x0a66, 0x0a75,
+ 0x0a81, 0x0a83,
+ 0x0a85, 0x0a8d,
+ 0x0a8f, 0x0a91,
+ 0x0a93, 0x0aa8,
+ 0x0aaa, 0x0ab0,
+ 0x0ab2, 0x0ab3,
+ 0x0ab5, 0x0ab9,
+ 0x0abc, 0x0ac5,
+ 0x0ac7, 0x0ac9,
+ 0x0acb, 0x0acd,
+ 0x0ad0, 0x0ad0,
+ 0x0ae0, 0x0ae3,
+ 0x0ae6, 0x0aef,
+ 0x0af1, 0x0af1,
+ 0x0b01, 0x0b03,
+ 0x0b05, 0x0b0c,
+ 0x0b0f, 0x0b10,
+ 0x0b13, 0x0b28,
+ 0x0b2a, 0x0b30,
+ 0x0b32, 0x0b33,
+ 0x0b35, 0x0b39,
+ 0x0b3c, 0x0b44,
+ 0x0b47, 0x0b48,
+ 0x0b4b, 0x0b4d,
+ 0x0b56, 0x0b57,
+ 0x0b5c, 0x0b5d,
+ 0x0b5f, 0x0b63,
+ 0x0b66, 0x0b77,
+ 0x0b82, 0x0b83,
+ 0x0b85, 0x0b8a,
+ 0x0b8e, 0x0b90,
+ 0x0b92, 0x0b95,
+ 0x0b99, 0x0b9a,
+ 0x0b9c, 0x0b9c,
+ 0x0b9e, 0x0b9f,
+ 0x0ba3, 0x0ba4,
+ 0x0ba8, 0x0baa,
+ 0x0bae, 0x0bb9,
+ 0x0bbe, 0x0bc2,
+ 0x0bc6, 0x0bc8,
+ 0x0bca, 0x0bcd,
+ 0x0bd0, 0x0bd0,
+ 0x0bd7, 0x0bd7,
+ 0x0be6, 0x0bfa,
+ 0x0c01, 0x0c03,
+ 0x0c05, 0x0c0c,
+ 0x0c0e, 0x0c10,
+ 0x0c12, 0x0c28,
+ 0x0c2a, 0x0c33,
+ 0x0c35, 0x0c39,
+ 0x0c3d, 0x0c44,
+ 0x0c46, 0x0c48,
+ 0x0c4a, 0x0c4d,
+ 0x0c55, 0x0c56,
+ 0x0c58, 0x0c59,
+ 0x0c60, 0x0c63,
+ 0x0c66, 0x0c6f,
+ 0x0c78, 0x0c7f,
+ 0x0c82, 0x0c83,
+ 0x0c85, 0x0c8c,
+ 0x0c8e, 0x0c90,
+ 0x0c92, 0x0ca8,
+ 0x0caa, 0x0cb3,
+ 0x0cb5, 0x0cb9,
+ 0x0cbc, 0x0cc4,
+ 0x0cc6, 0x0cc8,
+ 0x0cca, 0x0ccd,
+ 0x0cd5, 0x0cd6,
+ 0x0cde, 0x0cde,
+ 0x0ce0, 0x0ce3,
+ 0x0ce6, 0x0cef,
+ 0x0cf1, 0x0cf2,
+ 0x0d02, 0x0d03,
+ 0x0d05, 0x0d0c,
+ 0x0d0e, 0x0d10,
+ 0x0d12, 0x0d3a,
+ 0x0d3d, 0x0d44,
+ 0x0d46, 0x0d48,
+ 0x0d4a, 0x0d4e,
+ 0x0d57, 0x0d57,
+ 0x0d60, 0x0d63,
+ 0x0d66, 0x0d75,
+ 0x0d79, 0x0d7f,
+ 0x0d82, 0x0d83,
+ 0x0d85, 0x0d96,
+ 0x0d9a, 0x0db1,
+ 0x0db3, 0x0dbb,
+ 0x0dbd, 0x0dbd,
+ 0x0dc0, 0x0dc6,
+ 0x0dca, 0x0dca,
+ 0x0dcf, 0x0dd4,
+ 0x0dd6, 0x0dd6,
+ 0x0dd8, 0x0ddf,
+ 0x0df2, 0x0df4,
+ 0x0e01, 0x0e3a,
+ 0x0e3f, 0x0e5b,
+ 0x0e81, 0x0e82,
+ 0x0e84, 0x0e84,
+ 0x0e87, 0x0e88,
+ 0x0e8a, 0x0e8a,
+ 0x0e8d, 0x0e8d,
+ 0x0e94, 0x0e97,
+ 0x0e99, 0x0e9f,
+ 0x0ea1, 0x0ea3,
+ 0x0ea5, 0x0ea5,
+ 0x0ea7, 0x0ea7,
+ 0x0eaa, 0x0eab,
+ 0x0ead, 0x0eb9,
+ 0x0ebb, 0x0ebd,
+ 0x0ec0, 0x0ec4,
+ 0x0ec6, 0x0ec6,
+ 0x0ec8, 0x0ecd,
+ 0x0ed0, 0x0ed9,
+ 0x0edc, 0x0edd,
+ 0x0f00, 0x0f47,
+ 0x0f49, 0x0f6c,
+ 0x0f71, 0x0f97,
+ 0x0f99, 0x0fbc,
+ 0x0fbe, 0x0fcc,
+ 0x0fce, 0x0fda,
+ 0x1000, 0x10c5,
+ 0x10d0, 0x10fc,
+ 0x1100, 0x1248,
+ 0x124a, 0x124d,
+ 0x1250, 0x1256,
+ 0x1258, 0x1258,
+ 0x125a, 0x125d,
+ 0x1260, 0x1288,
+ 0x128a, 0x128d,
+ 0x1290, 0x12b0,
+ 0x12b2, 0x12b5,
+ 0x12b8, 0x12be,
+ 0x12c0, 0x12c0,
+ 0x12c2, 0x12c5,
+ 0x12c8, 0x12d6,
+ 0x12d8, 0x1310,
+ 0x1312, 0x1315,
+ 0x1318, 0x135a,
+ 0x135d, 0x137c,
+ 0x1380, 0x1399,
+ 0x13a0, 0x13f4,
+ 0x1400, 0x167f,
+ 0x1681, 0x169c,
+ 0x16a0, 0x16f0,
+ 0x1700, 0x170c,
+ 0x170e, 0x1714,
+ 0x1720, 0x1736,
+ 0x1740, 0x1753,
+ 0x1760, 0x176c,
+ 0x176e, 0x1770,
+ 0x1772, 0x1773,
+ 0x1780, 0x17dd,
+ 0x17e0, 0x17e9,
+ 0x17f0, 0x17f9,
+ 0x1800, 0x180d,
+ 0x1810, 0x1819,
+ 0x1820, 0x1877,
+ 0x1880, 0x18aa,
+ 0x18b0, 0x18f5,
+ 0x1900, 0x191c,
+ 0x1920, 0x192b,
+ 0x1930, 0x193b,
+ 0x1940, 0x1940,
+ 0x1944, 0x196d,
+ 0x1970, 0x1974,
+ 0x1980, 0x19ab,
+ 0x19b0, 0x19c9,
+ 0x19d0, 0x19da,
+ 0x19de, 0x1a1b,
+ 0x1a1e, 0x1a5e,
+ 0x1a60, 0x1a7c,
+ 0x1a7f, 0x1a89,
+ 0x1a90, 0x1a99,
+ 0x1aa0, 0x1aad,
+ 0x1b00, 0x1b4b,
+ 0x1b50, 0x1b7c,
+ 0x1b80, 0x1baa,
+ 0x1bae, 0x1bb9,
+ 0x1bc0, 0x1bf3,
+ 0x1bfc, 0x1c37,
+ 0x1c3b, 0x1c49,
+ 0x1c4d, 0x1c7f,
+ 0x1cd0, 0x1cf2,
+ 0x1d00, 0x1de6,
+ 0x1dfc, 0x1f15,
+ 0x1f18, 0x1f1d,
+ 0x1f20, 0x1f45,
+ 0x1f48, 0x1f4d,
+ 0x1f50, 0x1f57,
+ 0x1f59, 0x1f59,
+ 0x1f5b, 0x1f5b,
+ 0x1f5d, 0x1f5d,
+ 0x1f5f, 0x1f7d,
+ 0x1f80, 0x1fb4,
+ 0x1fb6, 0x1fc4,
+ 0x1fc6, 0x1fd3,
+ 0x1fd6, 0x1fdb,
+ 0x1fdd, 0x1fef,
+ 0x1ff2, 0x1ff4,
+ 0x1ff6, 0x1ffe,
+ 0x200b, 0x2027,
+ 0x202a, 0x202e,
+ 0x2030, 0x205e,
+ 0x2060, 0x2064,
+ 0x206a, 0x2071,
+ 0x2074, 0x208e,
+ 0x2090, 0x209c,
+ 0x20a0, 0x20b9,
+ 0x20d0, 0x20f0,
+ 0x2100, 0x2189,
+ 0x2190, 0x23f3,
+ 0x2400, 0x2426,
+ 0x2440, 0x244a,
+ 0x2460, 0x26ff,
+ 0x2701, 0x27ca,
+ 0x27cc, 0x27cc,
+ 0x27ce, 0x2b4c,
+ 0x2b50, 0x2b59,
+ 0x2c00, 0x2c2e,
+ 0x2c30, 0x2c5e,
+ 0x2c60, 0x2cf1,
+ 0x2cf9, 0x2d25,
+ 0x2d30, 0x2d65,
+ 0x2d6f, 0x2d70,
+ 0x2d7f, 0x2d96,
+ 0x2da0, 0x2da6,
+ 0x2da8, 0x2dae,
+ 0x2db0, 0x2db6,
+ 0x2db8, 0x2dbe,
+ 0x2dc0, 0x2dc6,
+ 0x2dc8, 0x2dce,
+ 0x2dd0, 0x2dd6,
+ 0x2dd8, 0x2dde,
+ 0x2de0, 0x2e31,
+ 0x2e80, 0x2e99,
+ 0x2e9b, 0x2ef3,
+ 0x2f00, 0x2fd5,
+ 0x2ff0, 0x2ffb,
+ 0x3001, 0x303f,
+ 0x3041, 0x3096,
+ 0x3099, 0x30ff,
+ 0x3105, 0x312d,
+ 0x3131, 0x318e,
+ 0x3190, 0x31ba,
+ 0x31c0, 0x31e3,
+ 0x31f0, 0x321e,
+ 0x3220, 0x32fe,
+ 0x3300, 0x4db5,
+ 0x4dc0, 0x9fcb,
+ 0xa000, 0xa48c,
+ 0xa490, 0xa4c6,
+ 0xa4d0, 0xa62b,
+ 0xa640, 0xa673,
+ 0xa67c, 0xa697,
+ 0xa6a0, 0xa6f7,
+ 0xa700, 0xa78e,
+ 0xa790, 0xa791,
+ 0xa7a0, 0xa7a9,
+ 0xa7fa, 0xa82b,
+ 0xa830, 0xa839,
+ 0xa840, 0xa877,
+ 0xa880, 0xa8c4,
+ 0xa8ce, 0xa8d9,
+ 0xa8e0, 0xa8fb,
+ 0xa900, 0xa953,
+ 0xa95f, 0xa97c,
+ 0xa980, 0xa9cd,
+ 0xa9cf, 0xa9d9,
+ 0xa9de, 0xa9df,
+ 0xaa00, 0xaa36,
+ 0xaa40, 0xaa4d,
+ 0xaa50, 0xaa59,
+ 0xaa5c, 0xaa7b,
+ 0xaa80, 0xaac2,
+ 0xaadb, 0xaadf,
+ 0xab01, 0xab06,
+ 0xab09, 0xab0e,
+ 0xab11, 0xab16,
+ 0xab20, 0xab26,
+ 0xab28, 0xab2e,
+ 0xabc0, 0xabed,
+ 0xabf0, 0xabf9,
+ 0xac00, 0xd7a3,
+ 0xd7b0, 0xd7c6,
+ 0xd7cb, 0xd7fb,
+ 0xe000, 0xfa2d,
+ 0xfa30, 0xfa6d,
+ 0xfa70, 0xfad9,
+ 0xfb00, 0xfb06,
+ 0xfb13, 0xfb17,
+ 0xfb1d, 0xfb36,
+ 0xfb38, 0xfb3c,
+ 0xfb3e, 0xfb3e,
+ 0xfb40, 0xfb41,
+ 0xfb43, 0xfb44,
+ 0xfb46, 0xfbc1,
+ 0xfbd3, 0xfd3f,
+ 0xfd50, 0xfd8f,
+ 0xfd92, 0xfdc7,
+ 0xfdf0, 0xfdfd,
+ 0xfe00, 0xfe19,
+ 0xfe20, 0xfe26,
+ 0xfe30, 0xfe52,
+ 0xfe54, 0xfe66,
+ 0xfe68, 0xfe6b,
+ 0xfe70, 0xfe74,
+ 0xfe76, 0xfefc,
+ 0xfeff, 0xfeff,
+ 0xff01, 0xffbe,
+ 0xffc2, 0xffc7,
+ 0xffca, 0xffcf,
+ 0xffd2, 0xffd7,
+ 0xffda, 0xffdc,
+ 0xffe0, 0xffe6,
+ 0xffe8, 0xffee,
+ 0xfff9, 0xfffd,
+ 0x10000, 0x1000b,
+ 0x1000d, 0x10026,
+ 0x10028, 0x1003a,
+ 0x1003c, 0x1003d,
+ 0x1003f, 0x1004d,
+ 0x10050, 0x1005d,
+ 0x10080, 0x100fa,
+ 0x10100, 0x10102,
+ 0x10107, 0x10133,
+ 0x10137, 0x1018a,
+ 0x10190, 0x1019b,
+ 0x101d0, 0x101fd,
+ 0x10280, 0x1029c,
+ 0x102a0, 0x102d0,
+ 0x10300, 0x1031e,
+ 0x10320, 0x10323,
+ 0x10330, 0x1034a,
+ 0x10380, 0x1039d,
+ 0x1039f, 0x103c3,
+ 0x103c8, 0x103d5,
+ 0x10400, 0x1049d,
+ 0x104a0, 0x104a9,
+ 0x10800, 0x10805,
+ 0x10808, 0x10808,
+ 0x1080a, 0x10835,
+ 0x10837, 0x10838,
+ 0x1083c, 0x1083c,
+ 0x1083f, 0x10855,
+ 0x10857, 0x1085f,
+ 0x10900, 0x1091b,
+ 0x1091f, 0x10939,
+ 0x1093f, 0x1093f,
+ 0x10a00, 0x10a03,
+ 0x10a05, 0x10a06,
+ 0x10a0c, 0x10a13,
+ 0x10a15, 0x10a17,
+ 0x10a19, 0x10a33,
+ 0x10a38, 0x10a3a,
+ 0x10a3f, 0x10a47,
+ 0x10a50, 0x10a58,
+ 0x10a60, 0x10a7f,
+ 0x10b00, 0x10b35,
+ 0x10b39, 0x10b55,
+ 0x10b58, 0x10b72,
+ 0x10b78, 0x10b7f,
+ 0x10c00, 0x10c48,
+ 0x10e60, 0x10e7e,
+ 0x11000, 0x1104d,
+ 0x11052, 0x1106f,
+ 0x11080, 0x110c1,
+ 0x12000, 0x1236e,
+ 0x12400, 0x12462,
+ 0x12470, 0x12473,
+ 0x13000, 0x1342e,
+ 0x16800, 0x16a38,
+ 0x1b000, 0x1b001,
+ 0x1d000, 0x1d0f5,
+ 0x1d100, 0x1d126,
+ 0x1d129, 0x1d1dd,
+ 0x1d200, 0x1d245,
+ 0x1d300, 0x1d356,
+ 0x1d360, 0x1d371,
+ 0x1d400, 0x1d454,
+ 0x1d456, 0x1d49c,
+ 0x1d49e, 0x1d49f,
+ 0x1d4a2, 0x1d4a2,
+ 0x1d4a5, 0x1d4a6,
+ 0x1d4a9, 0x1d4ac,
+ 0x1d4ae, 0x1d4b9,
+ 0x1d4bb, 0x1d4bb,
+ 0x1d4bd, 0x1d4c3,
+ 0x1d4c5, 0x1d505,
+ 0x1d507, 0x1d50a,
+ 0x1d50d, 0x1d514,
+ 0x1d516, 0x1d51c,
+ 0x1d51e, 0x1d539,
+ 0x1d53b, 0x1d53e,
+ 0x1d540, 0x1d544,
+ 0x1d546, 0x1d546,
+ 0x1d54a, 0x1d550,
+ 0x1d552, 0x1d6a5,
+ 0x1d6a8, 0x1d7cb,
+ 0x1d7ce, 0x1d7ff,
+ 0x1f000, 0x1f02b,
+ 0x1f030, 0x1f093,
+ 0x1f0a0, 0x1f0ae,
+ 0x1f0b1, 0x1f0be,
+ 0x1f0c1, 0x1f0cf,
+ 0x1f0d1, 0x1f0df,
+ 0x1f100, 0x1f10a,
+ 0x1f110, 0x1f12e,
+ 0x1f130, 0x1f169,
+ 0x1f170, 0x1f19a,
+ 0x1f1e6, 0x1f202,
+ 0x1f210, 0x1f23a,
+ 0x1f240, 0x1f248,
+ 0x1f250, 0x1f251,
+ 0x1f300, 0x1f320,
+ 0x1f330, 0x1f335,
+ 0x1f337, 0x1f37c,
+ 0x1f380, 0x1f393,
+ 0x1f3a0, 0x1f3c4,
+ 0x1f3c6, 0x1f3ca,
+ 0x1f3e0, 0x1f3f0,
+ 0x1f400, 0x1f43e,
+ 0x1f440, 0x1f440,
+ 0x1f442, 0x1f4f7,
+ 0x1f4f9, 0x1f4fc,
+ 0x1f500, 0x1f53d,
+ 0x1f550, 0x1f567,
+ 0x1f5fb, 0x1f5ff,
+ 0x1f601, 0x1f610,
+ 0x1f612, 0x1f614,
+ 0x1f616, 0x1f616,
+ 0x1f618, 0x1f618,
+ 0x1f61a, 0x1f61a,
+ 0x1f61c, 0x1f61e,
+ 0x1f620, 0x1f625,
+ 0x1f628, 0x1f62b,
+ 0x1f62d, 0x1f62d,
+ 0x1f630, 0x1f633,
+ 0x1f635, 0x1f640,
+ 0x1f645, 0x1f64f,
+ 0x1f680, 0x1f6c5,
+ 0x1f700, 0x1f773,
+ 0x20000, 0x2a6d6,
+ 0x2a700, 0x2b734,
+ 0x2b740, 0x2b81d,
+ 0x2f800, 0x2fa1d,
+ 0xe0001, 0xe0001,
+ 0xe0020, 0xe007f,
+ 0xe0100, 0xe01ef,
+ 0xf0000, 0xffffd,
+ 0x100000, 0x10fffd,
+}; /* CR_Graph */
+
+/* 'Lower': [[:Lower:]] */
+#define CR_Lower CR_Lowercase
+
+/* 'Print': [[:Print:]] */
+static const OnigCodePoint CR_Print[] = {
+ 503,
+ 0x0020, 0x007e,
+ 0x00a0, 0x0377,
+ 0x037a, 0x037e,
+ 0x0384, 0x038a,
+ 0x038c, 0x038c,
+ 0x038e, 0x03a1,
+ 0x03a3, 0x0527,
+ 0x0531, 0x0556,
+ 0x0559, 0x055f,
+ 0x0561, 0x0587,
+ 0x0589, 0x058a,
+ 0x0591, 0x05c7,
+ 0x05d0, 0x05ea,
+ 0x05f0, 0x05f4,
+ 0x0600, 0x0603,
+ 0x0606, 0x061b,
+ 0x061e, 0x070d,
+ 0x070f, 0x074a,
+ 0x074d, 0x07b1,
+ 0x07c0, 0x07fa,
+ 0x0800, 0x082d,
+ 0x0830, 0x083e,
+ 0x0840, 0x085b,
+ 0x085e, 0x085e,
+ 0x0900, 0x0977,
+ 0x0979, 0x097f,
+ 0x0981, 0x0983,
+ 0x0985, 0x098c,
+ 0x098f, 0x0990,
+ 0x0993, 0x09a8,
+ 0x09aa, 0x09b0,
+ 0x09b2, 0x09b2,
+ 0x09b6, 0x09b9,
+ 0x09bc, 0x09c4,
+ 0x09c7, 0x09c8,
+ 0x09cb, 0x09ce,
+ 0x09d7, 0x09d7,
+ 0x09dc, 0x09dd,
+ 0x09df, 0x09e3,
+ 0x09e6, 0x09fb,
+ 0x0a01, 0x0a03,
+ 0x0a05, 0x0a0a,
+ 0x0a0f, 0x0a10,
+ 0x0a13, 0x0a28,
+ 0x0a2a, 0x0a30,
+ 0x0a32, 0x0a33,
+ 0x0a35, 0x0a36,
+ 0x0a38, 0x0a39,
+ 0x0a3c, 0x0a3c,
+ 0x0a3e, 0x0a42,
+ 0x0a47, 0x0a48,
+ 0x0a4b, 0x0a4d,
+ 0x0a51, 0x0a51,
+ 0x0a59, 0x0a5c,
+ 0x0a5e, 0x0a5e,
+ 0x0a66, 0x0a75,
+ 0x0a81, 0x0a83,
+ 0x0a85, 0x0a8d,
+ 0x0a8f, 0x0a91,
+ 0x0a93, 0x0aa8,
+ 0x0aaa, 0x0ab0,
+ 0x0ab2, 0x0ab3,
+ 0x0ab5, 0x0ab9,
+ 0x0abc, 0x0ac5,
+ 0x0ac7, 0x0ac9,
+ 0x0acb, 0x0acd,
+ 0x0ad0, 0x0ad0,
+ 0x0ae0, 0x0ae3,
+ 0x0ae6, 0x0aef,
+ 0x0af1, 0x0af1,
+ 0x0b01, 0x0b03,
+ 0x0b05, 0x0b0c,
+ 0x0b0f, 0x0b10,
+ 0x0b13, 0x0b28,
+ 0x0b2a, 0x0b30,
+ 0x0b32, 0x0b33,
+ 0x0b35, 0x0b39,
+ 0x0b3c, 0x0b44,
+ 0x0b47, 0x0b48,
+ 0x0b4b, 0x0b4d,
+ 0x0b56, 0x0b57,
+ 0x0b5c, 0x0b5d,
+ 0x0b5f, 0x0b63,
+ 0x0b66, 0x0b77,
+ 0x0b82, 0x0b83,
+ 0x0b85, 0x0b8a,
+ 0x0b8e, 0x0b90,
+ 0x0b92, 0x0b95,
+ 0x0b99, 0x0b9a,
+ 0x0b9c, 0x0b9c,
+ 0x0b9e, 0x0b9f,
+ 0x0ba3, 0x0ba4,
+ 0x0ba8, 0x0baa,
+ 0x0bae, 0x0bb9,
+ 0x0bbe, 0x0bc2,
+ 0x0bc6, 0x0bc8,
+ 0x0bca, 0x0bcd,
+ 0x0bd0, 0x0bd0,
+ 0x0bd7, 0x0bd7,
+ 0x0be6, 0x0bfa,
+ 0x0c01, 0x0c03,
+ 0x0c05, 0x0c0c,
+ 0x0c0e, 0x0c10,
+ 0x0c12, 0x0c28,
+ 0x0c2a, 0x0c33,
+ 0x0c35, 0x0c39,
+ 0x0c3d, 0x0c44,
+ 0x0c46, 0x0c48,
+ 0x0c4a, 0x0c4d,
+ 0x0c55, 0x0c56,
+ 0x0c58, 0x0c59,
+ 0x0c60, 0x0c63,
+ 0x0c66, 0x0c6f,
+ 0x0c78, 0x0c7f,
+ 0x0c82, 0x0c83,
+ 0x0c85, 0x0c8c,
+ 0x0c8e, 0x0c90,
+ 0x0c92, 0x0ca8,
+ 0x0caa, 0x0cb3,
+ 0x0cb5, 0x0cb9,
+ 0x0cbc, 0x0cc4,
+ 0x0cc6, 0x0cc8,
+ 0x0cca, 0x0ccd,
+ 0x0cd5, 0x0cd6,
+ 0x0cde, 0x0cde,
+ 0x0ce0, 0x0ce3,
+ 0x0ce6, 0x0cef,
+ 0x0cf1, 0x0cf2,
+ 0x0d02, 0x0d03,
+ 0x0d05, 0x0d0c,
+ 0x0d0e, 0x0d10,
+ 0x0d12, 0x0d3a,
+ 0x0d3d, 0x0d44,
+ 0x0d46, 0x0d48,
+ 0x0d4a, 0x0d4e,
+ 0x0d57, 0x0d57,
+ 0x0d60, 0x0d63,
+ 0x0d66, 0x0d75,
+ 0x0d79, 0x0d7f,
+ 0x0d82, 0x0d83,
+ 0x0d85, 0x0d96,
+ 0x0d9a, 0x0db1,
+ 0x0db3, 0x0dbb,
+ 0x0dbd, 0x0dbd,
+ 0x0dc0, 0x0dc6,
+ 0x0dca, 0x0dca,
+ 0x0dcf, 0x0dd4,
+ 0x0dd6, 0x0dd6,
+ 0x0dd8, 0x0ddf,
+ 0x0df2, 0x0df4,
+ 0x0e01, 0x0e3a,
+ 0x0e3f, 0x0e5b,
+ 0x0e81, 0x0e82,
+ 0x0e84, 0x0e84,
+ 0x0e87, 0x0e88,
+ 0x0e8a, 0x0e8a,
+ 0x0e8d, 0x0e8d,
+ 0x0e94, 0x0e97,
+ 0x0e99, 0x0e9f,
+ 0x0ea1, 0x0ea3,
+ 0x0ea5, 0x0ea5,
+ 0x0ea7, 0x0ea7,
+ 0x0eaa, 0x0eab,
+ 0x0ead, 0x0eb9,
+ 0x0ebb, 0x0ebd,
+ 0x0ec0, 0x0ec4,
+ 0x0ec6, 0x0ec6,
+ 0x0ec8, 0x0ecd,
+ 0x0ed0, 0x0ed9,
+ 0x0edc, 0x0edd,
+ 0x0f00, 0x0f47,
+ 0x0f49, 0x0f6c,
+ 0x0f71, 0x0f97,
+ 0x0f99, 0x0fbc,
+ 0x0fbe, 0x0fcc,
+ 0x0fce, 0x0fda,
+ 0x1000, 0x10c5,
+ 0x10d0, 0x10fc,
+ 0x1100, 0x1248,
+ 0x124a, 0x124d,
+ 0x1250, 0x1256,
+ 0x1258, 0x1258,
+ 0x125a, 0x125d,
+ 0x1260, 0x1288,
+ 0x128a, 0x128d,
+ 0x1290, 0x12b0,
+ 0x12b2, 0x12b5,
+ 0x12b8, 0x12be,
+ 0x12c0, 0x12c0,
+ 0x12c2, 0x12c5,
+ 0x12c8, 0x12d6,
+ 0x12d8, 0x1310,
+ 0x1312, 0x1315,
+ 0x1318, 0x135a,
+ 0x135d, 0x137c,
+ 0x1380, 0x1399,
+ 0x13a0, 0x13f4,
+ 0x1400, 0x169c,
+ 0x16a0, 0x16f0,
+ 0x1700, 0x170c,
+ 0x170e, 0x1714,
+ 0x1720, 0x1736,
+ 0x1740, 0x1753,
+ 0x1760, 0x176c,
+ 0x176e, 0x1770,
+ 0x1772, 0x1773,
+ 0x1780, 0x17dd,
+ 0x17e0, 0x17e9,
+ 0x17f0, 0x17f9,
+ 0x1800, 0x180e,
+ 0x1810, 0x1819,
+ 0x1820, 0x1877,
+ 0x1880, 0x18aa,
+ 0x18b0, 0x18f5,
+ 0x1900, 0x191c,
+ 0x1920, 0x192b,
+ 0x1930, 0x193b,
+ 0x1940, 0x1940,
+ 0x1944, 0x196d,
+ 0x1970, 0x1974,
+ 0x1980, 0x19ab,
+ 0x19b0, 0x19c9,
+ 0x19d0, 0x19da,
+ 0x19de, 0x1a1b,
+ 0x1a1e, 0x1a5e,
+ 0x1a60, 0x1a7c,
+ 0x1a7f, 0x1a89,
+ 0x1a90, 0x1a99,
+ 0x1aa0, 0x1aad,
+ 0x1b00, 0x1b4b,
+ 0x1b50, 0x1b7c,
+ 0x1b80, 0x1baa,
+ 0x1bae, 0x1bb9,
+ 0x1bc0, 0x1bf3,
+ 0x1bfc, 0x1c37,
+ 0x1c3b, 0x1c49,
+ 0x1c4d, 0x1c7f,
+ 0x1cd0, 0x1cf2,
+ 0x1d00, 0x1de6,
+ 0x1dfc, 0x1f15,
+ 0x1f18, 0x1f1d,
+ 0x1f20, 0x1f45,
+ 0x1f48, 0x1f4d,
+ 0x1f50, 0x1f57,
+ 0x1f59, 0x1f59,
+ 0x1f5b, 0x1f5b,
+ 0x1f5d, 0x1f5d,
+ 0x1f5f, 0x1f7d,
+ 0x1f80, 0x1fb4,
+ 0x1fb6, 0x1fc4,
+ 0x1fc6, 0x1fd3,
+ 0x1fd6, 0x1fdb,
+ 0x1fdd, 0x1fef,
+ 0x1ff2, 0x1ff4,
+ 0x1ff6, 0x1ffe,
+ 0x2000, 0x2027,
+ 0x202a, 0x2064,
+ 0x206a, 0x2071,
+ 0x2074, 0x208e,
+ 0x2090, 0x209c,
+ 0x20a0, 0x20b9,
+ 0x20d0, 0x20f0,
+ 0x2100, 0x2189,
+ 0x2190, 0x23f3,
+ 0x2400, 0x2426,
+ 0x2440, 0x244a,
+ 0x2460, 0x26ff,
+ 0x2701, 0x27ca,
+ 0x27cc, 0x27cc,
+ 0x27ce, 0x2b4c,
+ 0x2b50, 0x2b59,
+ 0x2c00, 0x2c2e,
+ 0x2c30, 0x2c5e,
+ 0x2c60, 0x2cf1,
+ 0x2cf9, 0x2d25,
+ 0x2d30, 0x2d65,
+ 0x2d6f, 0x2d70,
+ 0x2d7f, 0x2d96,
+ 0x2da0, 0x2da6,
+ 0x2da8, 0x2dae,
+ 0x2db0, 0x2db6,
+ 0x2db8, 0x2dbe,
+ 0x2dc0, 0x2dc6,
+ 0x2dc8, 0x2dce,
+ 0x2dd0, 0x2dd6,
+ 0x2dd8, 0x2dde,
+ 0x2de0, 0x2e31,
+ 0x2e80, 0x2e99,
+ 0x2e9b, 0x2ef3,
+ 0x2f00, 0x2fd5,
+ 0x2ff0, 0x2ffb,
+ 0x3000, 0x303f,
+ 0x3041, 0x3096,
+ 0x3099, 0x30ff,
+ 0x3105, 0x312d,
+ 0x3131, 0x318e,
+ 0x3190, 0x31ba,
+ 0x31c0, 0x31e3,
+ 0x31f0, 0x321e,
+ 0x3220, 0x32fe,
+ 0x3300, 0x4db5,
+ 0x4dc0, 0x9fcb,
+ 0xa000, 0xa48c,
+ 0xa490, 0xa4c6,
+ 0xa4d0, 0xa62b,
+ 0xa640, 0xa673,
+ 0xa67c, 0xa697,
+ 0xa6a0, 0xa6f7,
+ 0xa700, 0xa78e,
+ 0xa790, 0xa791,
+ 0xa7a0, 0xa7a9,
+ 0xa7fa, 0xa82b,
+ 0xa830, 0xa839,
+ 0xa840, 0xa877,
+ 0xa880, 0xa8c4,
+ 0xa8ce, 0xa8d9,
+ 0xa8e0, 0xa8fb,
+ 0xa900, 0xa953,
+ 0xa95f, 0xa97c,
+ 0xa980, 0xa9cd,
+ 0xa9cf, 0xa9d9,
+ 0xa9de, 0xa9df,
+ 0xaa00, 0xaa36,
+ 0xaa40, 0xaa4d,
+ 0xaa50, 0xaa59,
+ 0xaa5c, 0xaa7b,
+ 0xaa80, 0xaac2,
+ 0xaadb, 0xaadf,
+ 0xab01, 0xab06,
+ 0xab09, 0xab0e,
+ 0xab11, 0xab16,
+ 0xab20, 0xab26,
+ 0xab28, 0xab2e,
+ 0xabc0, 0xabed,
+ 0xabf0, 0xabf9,
+ 0xac00, 0xd7a3,
+ 0xd7b0, 0xd7c6,
+ 0xd7cb, 0xd7fb,
+ 0xe000, 0xfa2d,
+ 0xfa30, 0xfa6d,
+ 0xfa70, 0xfad9,
+ 0xfb00, 0xfb06,
+ 0xfb13, 0xfb17,
+ 0xfb1d, 0xfb36,
+ 0xfb38, 0xfb3c,
+ 0xfb3e, 0xfb3e,
+ 0xfb40, 0xfb41,
+ 0xfb43, 0xfb44,
+ 0xfb46, 0xfbc1,
+ 0xfbd3, 0xfd3f,
+ 0xfd50, 0xfd8f,
+ 0xfd92, 0xfdc7,
+ 0xfdf0, 0xfdfd,
+ 0xfe00, 0xfe19,
+ 0xfe20, 0xfe26,
+ 0xfe30, 0xfe52,
+ 0xfe54, 0xfe66,
+ 0xfe68, 0xfe6b,
+ 0xfe70, 0xfe74,
+ 0xfe76, 0xfefc,
+ 0xfeff, 0xfeff,
+ 0xff01, 0xffbe,
+ 0xffc2, 0xffc7,
+ 0xffca, 0xffcf,
+ 0xffd2, 0xffd7,
+ 0xffda, 0xffdc,
+ 0xffe0, 0xffe6,
+ 0xffe8, 0xffee,
+ 0xfff9, 0xfffd,
+ 0x10000, 0x1000b,
+ 0x1000d, 0x10026,
+ 0x10028, 0x1003a,
+ 0x1003c, 0x1003d,
+ 0x1003f, 0x1004d,
+ 0x10050, 0x1005d,
+ 0x10080, 0x100fa,
+ 0x10100, 0x10102,
+ 0x10107, 0x10133,
+ 0x10137, 0x1018a,
+ 0x10190, 0x1019b,
+ 0x101d0, 0x101fd,
+ 0x10280, 0x1029c,
+ 0x102a0, 0x102d0,
+ 0x10300, 0x1031e,
+ 0x10320, 0x10323,
+ 0x10330, 0x1034a,
+ 0x10380, 0x1039d,
+ 0x1039f, 0x103c3,
+ 0x103c8, 0x103d5,
+ 0x10400, 0x1049d,
+ 0x104a0, 0x104a9,
+ 0x10800, 0x10805,
+ 0x10808, 0x10808,
+ 0x1080a, 0x10835,
+ 0x10837, 0x10838,
+ 0x1083c, 0x1083c,
+ 0x1083f, 0x10855,
+ 0x10857, 0x1085f,
+ 0x10900, 0x1091b,
+ 0x1091f, 0x10939,
+ 0x1093f, 0x1093f,
+ 0x10a00, 0x10a03,
+ 0x10a05, 0x10a06,
+ 0x10a0c, 0x10a13,
+ 0x10a15, 0x10a17,
+ 0x10a19, 0x10a33,
+ 0x10a38, 0x10a3a,
+ 0x10a3f, 0x10a47,
+ 0x10a50, 0x10a58,
+ 0x10a60, 0x10a7f,
+ 0x10b00, 0x10b35,
+ 0x10b39, 0x10b55,
+ 0x10b58, 0x10b72,
+ 0x10b78, 0x10b7f,
+ 0x10c00, 0x10c48,
+ 0x10e60, 0x10e7e,
+ 0x11000, 0x1104d,
+ 0x11052, 0x1106f,
+ 0x11080, 0x110c1,
+ 0x12000, 0x1236e,
+ 0x12400, 0x12462,
+ 0x12470, 0x12473,
+ 0x13000, 0x1342e,
+ 0x16800, 0x16a38,
+ 0x1b000, 0x1b001,
+ 0x1d000, 0x1d0f5,
+ 0x1d100, 0x1d126,
+ 0x1d129, 0x1d1dd,
+ 0x1d200, 0x1d245,
+ 0x1d300, 0x1d356,
+ 0x1d360, 0x1d371,
+ 0x1d400, 0x1d454,
+ 0x1d456, 0x1d49c,
+ 0x1d49e, 0x1d49f,
+ 0x1d4a2, 0x1d4a2,
+ 0x1d4a5, 0x1d4a6,
+ 0x1d4a9, 0x1d4ac,
+ 0x1d4ae, 0x1d4b9,
+ 0x1d4bb, 0x1d4bb,
+ 0x1d4bd, 0x1d4c3,
+ 0x1d4c5, 0x1d505,
+ 0x1d507, 0x1d50a,
+ 0x1d50d, 0x1d514,
+ 0x1d516, 0x1d51c,
+ 0x1d51e, 0x1d539,
+ 0x1d53b, 0x1d53e,
+ 0x1d540, 0x1d544,
+ 0x1d546, 0x1d546,
+ 0x1d54a, 0x1d550,
+ 0x1d552, 0x1d6a5,
+ 0x1d6a8, 0x1d7cb,
+ 0x1d7ce, 0x1d7ff,
+ 0x1f000, 0x1f02b,
+ 0x1f030, 0x1f093,
+ 0x1f0a0, 0x1f0ae,
+ 0x1f0b1, 0x1f0be,
+ 0x1f0c1, 0x1f0cf,
+ 0x1f0d1, 0x1f0df,
+ 0x1f100, 0x1f10a,
+ 0x1f110, 0x1f12e,
+ 0x1f130, 0x1f169,
+ 0x1f170, 0x1f19a,
+ 0x1f1e6, 0x1f202,
+ 0x1f210, 0x1f23a,
+ 0x1f240, 0x1f248,
+ 0x1f250, 0x1f251,
+ 0x1f300, 0x1f320,
+ 0x1f330, 0x1f335,
+ 0x1f337, 0x1f37c,
+ 0x1f380, 0x1f393,
+ 0x1f3a0, 0x1f3c4,
+ 0x1f3c6, 0x1f3ca,
+ 0x1f3e0, 0x1f3f0,
+ 0x1f400, 0x1f43e,
+ 0x1f440, 0x1f440,
+ 0x1f442, 0x1f4f7,
+ 0x1f4f9, 0x1f4fc,
+ 0x1f500, 0x1f53d,
+ 0x1f550, 0x1f567,
+ 0x1f5fb, 0x1f5ff,
+ 0x1f601, 0x1f610,
+ 0x1f612, 0x1f614,
+ 0x1f616, 0x1f616,
+ 0x1f618, 0x1f618,
+ 0x1f61a, 0x1f61a,
+ 0x1f61c, 0x1f61e,
+ 0x1f620, 0x1f625,
+ 0x1f628, 0x1f62b,
+ 0x1f62d, 0x1f62d,
+ 0x1f630, 0x1f633,
+ 0x1f635, 0x1f640,
+ 0x1f645, 0x1f64f,
+ 0x1f680, 0x1f6c5,
+ 0x1f700, 0x1f773,
+ 0x20000, 0x2a6d6,
+ 0x2a700, 0x2b734,
+ 0x2b740, 0x2b81d,
+ 0x2f800, 0x2fa1d,
+ 0xe0001, 0xe0001,
+ 0xe0020, 0xe007f,
+ 0xe0100, 0xe01ef,
+ 0xf0000, 0xffffd,
+ 0x100000, 0x10fffd,
+}; /* CR_Print */
+
+/* 'Punct': [[:Punct:]] */
+#define CR_Punct CR_P
+
+/* 'Space': [[:Space:]] */
+#define CR_Space CR_White_Space
+
+/* 'Upper': [[:Upper:]] */
+#define CR_Upper CR_Uppercase
+
+/* 'XDigit': [[:XDigit:]] */
+#define CR_XDigit CR_ASCII_Hex_Digit
+
+/* 'Word': [[:Word:]] */
+static const OnigCodePoint CR_Word[] = {
+ 514,
+ 0x0030, 0x0039,
+ 0x0041, 0x005a,
+ 0x005f, 0x005f,
+ 0x0061, 0x007a,
+ 0x00aa, 0x00aa,
+ 0x00b5, 0x00b5,
+ 0x00ba, 0x00ba,
+ 0x00c0, 0x00d6,
+ 0x00d8, 0x00f6,
+ 0x00f8, 0x02c1,
+ 0x02c6, 0x02d1,
+ 0x02e0, 0x02e4,
+ 0x02ec, 0x02ec,
+ 0x02ee, 0x02ee,
+ 0x0300, 0x0374,
+ 0x0376, 0x0377,
+ 0x037a, 0x037d,
+ 0x0386, 0x0386,
+ 0x0388, 0x038a,
+ 0x038c, 0x038c,
+ 0x038e, 0x03a1,
+ 0x03a3, 0x03f5,
+ 0x03f7, 0x0481,
+ 0x0483, 0x0527,
+ 0x0531, 0x0556,
+ 0x0559, 0x0559,
+ 0x0561, 0x0587,
+ 0x0591, 0x05bd,
+ 0x05bf, 0x05bf,
+ 0x05c1, 0x05c2,
+ 0x05c4, 0x05c5,
+ 0x05c7, 0x05c7,
+ 0x05d0, 0x05ea,
+ 0x05f0, 0x05f2,
+ 0x0610, 0x061a,
+ 0x0620, 0x0669,
+ 0x066e, 0x06d3,
+ 0x06d5, 0x06dc,
+ 0x06df, 0x06e8,
+ 0x06ea, 0x06fc,
+ 0x06ff, 0x06ff,
+ 0x0710, 0x074a,
+ 0x074d, 0x07b1,
+ 0x07c0, 0x07f5,
+ 0x07fa, 0x07fa,
+ 0x0800, 0x082d,
+ 0x0840, 0x085b,
+ 0x0900, 0x0963,
+ 0x0966, 0x096f,
+ 0x0971, 0x0977,
+ 0x0979, 0x097f,
+ 0x0981, 0x0983,
+ 0x0985, 0x098c,
+ 0x098f, 0x0990,
+ 0x0993, 0x09a8,
+ 0x09aa, 0x09b0,
+ 0x09b2, 0x09b2,
+ 0x09b6, 0x09b9,
+ 0x09bc, 0x09c4,
+ 0x09c7, 0x09c8,
+ 0x09cb, 0x09ce,
+ 0x09d7, 0x09d7,
+ 0x09dc, 0x09dd,
+ 0x09df, 0x09e3,
+ 0x09e6, 0x09f1,
+ 0x0a01, 0x0a03,
+ 0x0a05, 0x0a0a,
+ 0x0a0f, 0x0a10,
+ 0x0a13, 0x0a28,
+ 0x0a2a, 0x0a30,
+ 0x0a32, 0x0a33,
+ 0x0a35, 0x0a36,
+ 0x0a38, 0x0a39,
+ 0x0a3c, 0x0a3c,
+ 0x0a3e, 0x0a42,
+ 0x0a47, 0x0a48,
+ 0x0a4b, 0x0a4d,
+ 0x0a51, 0x0a51,
+ 0x0a59, 0x0a5c,
+ 0x0a5e, 0x0a5e,
+ 0x0a66, 0x0a75,
+ 0x0a81, 0x0a83,
+ 0x0a85, 0x0a8d,
+ 0x0a8f, 0x0a91,
+ 0x0a93, 0x0aa8,
+ 0x0aaa, 0x0ab0,
+ 0x0ab2, 0x0ab3,
+ 0x0ab5, 0x0ab9,
+ 0x0abc, 0x0ac5,
+ 0x0ac7, 0x0ac9,
+ 0x0acb, 0x0acd,
+ 0x0ad0, 0x0ad0,
+ 0x0ae0, 0x0ae3,
+ 0x0ae6, 0x0aef,
+ 0x0b01, 0x0b03,
+ 0x0b05, 0x0b0c,
+ 0x0b0f, 0x0b10,
+ 0x0b13, 0x0b28,
+ 0x0b2a, 0x0b30,
+ 0x0b32, 0x0b33,
+ 0x0b35, 0x0b39,
+ 0x0b3c, 0x0b44,
+ 0x0b47, 0x0b48,
+ 0x0b4b, 0x0b4d,
+ 0x0b56, 0x0b57,
+ 0x0b5c, 0x0b5d,
+ 0x0b5f, 0x0b63,
+ 0x0b66, 0x0b6f,
+ 0x0b71, 0x0b71,
+ 0x0b82, 0x0b83,
+ 0x0b85, 0x0b8a,
+ 0x0b8e, 0x0b90,
+ 0x0b92, 0x0b95,
+ 0x0b99, 0x0b9a,
+ 0x0b9c, 0x0b9c,
+ 0x0b9e, 0x0b9f,
+ 0x0ba3, 0x0ba4,
+ 0x0ba8, 0x0baa,
+ 0x0bae, 0x0bb9,
+ 0x0bbe, 0x0bc2,
+ 0x0bc6, 0x0bc8,
+ 0x0bca, 0x0bcd,
+ 0x0bd0, 0x0bd0,
+ 0x0bd7, 0x0bd7,
+ 0x0be6, 0x0bef,
+ 0x0c01, 0x0c03,
+ 0x0c05, 0x0c0c,
+ 0x0c0e, 0x0c10,
+ 0x0c12, 0x0c28,
+ 0x0c2a, 0x0c33,
+ 0x0c35, 0x0c39,
+ 0x0c3d, 0x0c44,
+ 0x0c46, 0x0c48,
+ 0x0c4a, 0x0c4d,
+ 0x0c55, 0x0c56,
+ 0x0c58, 0x0c59,
+ 0x0c60, 0x0c63,
+ 0x0c66, 0x0c6f,
+ 0x0c82, 0x0c83,
+ 0x0c85, 0x0c8c,
+ 0x0c8e, 0x0c90,
+ 0x0c92, 0x0ca8,
+ 0x0caa, 0x0cb3,
+ 0x0cb5, 0x0cb9,
+ 0x0cbc, 0x0cc4,
+ 0x0cc6, 0x0cc8,
+ 0x0cca, 0x0ccd,
+ 0x0cd5, 0x0cd6,
+ 0x0cde, 0x0cde,
+ 0x0ce0, 0x0ce3,
+ 0x0ce6, 0x0cef,
+ 0x0cf1, 0x0cf2,
+ 0x0d02, 0x0d03,
+ 0x0d05, 0x0d0c,
+ 0x0d0e, 0x0d10,
+ 0x0d12, 0x0d3a,
+ 0x0d3d, 0x0d44,
+ 0x0d46, 0x0d48,
+ 0x0d4a, 0x0d4e,
+ 0x0d57, 0x0d57,
+ 0x0d60, 0x0d63,
+ 0x0d66, 0x0d6f,
+ 0x0d7a, 0x0d7f,
+ 0x0d82, 0x0d83,
+ 0x0d85, 0x0d96,
+ 0x0d9a, 0x0db1,
+ 0x0db3, 0x0dbb,
+ 0x0dbd, 0x0dbd,
+ 0x0dc0, 0x0dc6,
+ 0x0dca, 0x0dca,
+ 0x0dcf, 0x0dd4,
+ 0x0dd6, 0x0dd6,
+ 0x0dd8, 0x0ddf,
+ 0x0df2, 0x0df3,
+ 0x0e01, 0x0e3a,
+ 0x0e40, 0x0e4e,
+ 0x0e50, 0x0e59,
+ 0x0e81, 0x0e82,
+ 0x0e84, 0x0e84,
+ 0x0e87, 0x0e88,
+ 0x0e8a, 0x0e8a,
+ 0x0e8d, 0x0e8d,
+ 0x0e94, 0x0e97,
+ 0x0e99, 0x0e9f,
+ 0x0ea1, 0x0ea3,
+ 0x0ea5, 0x0ea5,
+ 0x0ea7, 0x0ea7,
+ 0x0eaa, 0x0eab,
+ 0x0ead, 0x0eb9,
+ 0x0ebb, 0x0ebd,
+ 0x0ec0, 0x0ec4,
+ 0x0ec6, 0x0ec6,
+ 0x0ec8, 0x0ecd,
+ 0x0ed0, 0x0ed9,
+ 0x0edc, 0x0edd,
+ 0x0f00, 0x0f00,
+ 0x0f18, 0x0f19,
+ 0x0f20, 0x0f29,
+ 0x0f35, 0x0f35,
+ 0x0f37, 0x0f37,
+ 0x0f39, 0x0f39,
+ 0x0f3e, 0x0f47,
+ 0x0f49, 0x0f6c,
+ 0x0f71, 0x0f84,
+ 0x0f86, 0x0f97,
+ 0x0f99, 0x0fbc,
+ 0x0fc6, 0x0fc6,
+ 0x1000, 0x1049,
+ 0x1050, 0x109d,
+ 0x10a0, 0x10c5,
+ 0x10d0, 0x10fa,
+ 0x10fc, 0x10fc,
+ 0x1100, 0x1248,
+ 0x124a, 0x124d,
+ 0x1250, 0x1256,
+ 0x1258, 0x1258,
+ 0x125a, 0x125d,
+ 0x1260, 0x1288,
+ 0x128a, 0x128d,
+ 0x1290, 0x12b0,
+ 0x12b2, 0x12b5,
+ 0x12b8, 0x12be,
+ 0x12c0, 0x12c0,
+ 0x12c2, 0x12c5,
+ 0x12c8, 0x12d6,
+ 0x12d8, 0x1310,
+ 0x1312, 0x1315,
+ 0x1318, 0x135a,
+ 0x135d, 0x135f,
+ 0x1380, 0x138f,
+ 0x13a0, 0x13f4,
+ 0x1401, 0x166c,
+ 0x166f, 0x167f,
+ 0x1681, 0x169a,
+ 0x16a0, 0x16ea,
+ 0x16ee, 0x16f0,
+ 0x1700, 0x170c,
+ 0x170e, 0x1714,
+ 0x1720, 0x1734,
+ 0x1740, 0x1753,
+ 0x1760, 0x176c,
+ 0x176e, 0x1770,
+ 0x1772, 0x1773,
+ 0x1780, 0x17b3,
+ 0x17b6, 0x17d3,
+ 0x17d7, 0x17d7,
+ 0x17dc, 0x17dd,
+ 0x17e0, 0x17e9,
+ 0x180b, 0x180d,
+ 0x1810, 0x1819,
+ 0x1820, 0x1877,
+ 0x1880, 0x18aa,
+ 0x18b0, 0x18f5,
+ 0x1900, 0x191c,
+ 0x1920, 0x192b,
+ 0x1930, 0x193b,
+ 0x1946, 0x196d,
+ 0x1970, 0x1974,
+ 0x1980, 0x19ab,
+ 0x19b0, 0x19c9,
+ 0x19d0, 0x19d9,
+ 0x1a00, 0x1a1b,
+ 0x1a20, 0x1a5e,
+ 0x1a60, 0x1a7c,
+ 0x1a7f, 0x1a89,
+ 0x1a90, 0x1a99,
+ 0x1aa7, 0x1aa7,
+ 0x1b00, 0x1b4b,
+ 0x1b50, 0x1b59,
+ 0x1b6b, 0x1b73,
+ 0x1b80, 0x1baa,
+ 0x1bae, 0x1bb9,
+ 0x1bc0, 0x1bf3,
+ 0x1c00, 0x1c37,
+ 0x1c40, 0x1c49,
+ 0x1c4d, 0x1c7d,
+ 0x1cd0, 0x1cd2,
+ 0x1cd4, 0x1cf2,
+ 0x1d00, 0x1de6,
+ 0x1dfc, 0x1f15,
+ 0x1f18, 0x1f1d,
+ 0x1f20, 0x1f45,
+ 0x1f48, 0x1f4d,
+ 0x1f50, 0x1f57,
+ 0x1f59, 0x1f59,
+ 0x1f5b, 0x1f5b,
+ 0x1f5d, 0x1f5d,
+ 0x1f5f, 0x1f7d,
+ 0x1f80, 0x1fb4,
+ 0x1fb6, 0x1fbc,
+ 0x1fbe, 0x1fbe,
+ 0x1fc2, 0x1fc4,
+ 0x1fc6, 0x1fcc,
+ 0x1fd0, 0x1fd3,
+ 0x1fd6, 0x1fdb,
+ 0x1fe0, 0x1fec,
+ 0x1ff2, 0x1ff4,
+ 0x1ff6, 0x1ffc,
+ 0x203f, 0x2040,
+ 0x2054, 0x2054,
+ 0x2071, 0x2071,
+ 0x207f, 0x207f,
+ 0x2090, 0x209c,
+ 0x20d0, 0x20f0,
+ 0x2102, 0x2102,
+ 0x2107, 0x2107,
+ 0x210a, 0x2113,
+ 0x2115, 0x2115,
+ 0x2119, 0x211d,
+ 0x2124, 0x2124,
+ 0x2126, 0x2126,
+ 0x2128, 0x2128,
+ 0x212a, 0x212d,
+ 0x212f, 0x2139,
+ 0x213c, 0x213f,
+ 0x2145, 0x2149,
+ 0x214e, 0x214e,
+ 0x2160, 0x2188,
+ 0x24b6, 0x24e9,
+ 0x2c00, 0x2c2e,
+ 0x2c30, 0x2c5e,
+ 0x2c60, 0x2ce4,
+ 0x2ceb, 0x2cf1,
+ 0x2d00, 0x2d25,
+ 0x2d30, 0x2d65,
+ 0x2d6f, 0x2d6f,
+ 0x2d7f, 0x2d96,
+ 0x2da0, 0x2da6,
+ 0x2da8, 0x2dae,
+ 0x2db0, 0x2db6,
+ 0x2db8, 0x2dbe,
+ 0x2dc0, 0x2dc6,
+ 0x2dc8, 0x2dce,
+ 0x2dd0, 0x2dd6,
+ 0x2dd8, 0x2dde,
+ 0x2de0, 0x2dff,
+ 0x2e2f, 0x2e2f,
+ 0x3005, 0x3007,
+ 0x3021, 0x302f,
+ 0x3031, 0x3035,
+ 0x3038, 0x303c,
+ 0x3041, 0x3096,
+ 0x3099, 0x309a,
+ 0x309d, 0x309f,
+ 0x30a1, 0x30fa,
+ 0x30fc, 0x30ff,
+ 0x3105, 0x312d,
+ 0x3131, 0x318e,
+ 0x31a0, 0x31ba,
+ 0x31f0, 0x31ff,
+ 0x3400, 0x4db5,
+ 0x4e00, 0x9fcb,
+ 0xa000, 0xa48c,
+ 0xa4d0, 0xa4fd,
+ 0xa500, 0xa60c,
+ 0xa610, 0xa62b,
+ 0xa640, 0xa672,
+ 0xa67c, 0xa67d,
+ 0xa67f, 0xa697,
+ 0xa6a0, 0xa6f1,
+ 0xa717, 0xa71f,
+ 0xa722, 0xa788,
+ 0xa78b, 0xa78e,
+ 0xa790, 0xa791,
+ 0xa7a0, 0xa7a9,
+ 0xa7fa, 0xa827,
+ 0xa840, 0xa873,
+ 0xa880, 0xa8c4,
+ 0xa8d0, 0xa8d9,
+ 0xa8e0, 0xa8f7,
+ 0xa8fb, 0xa8fb,
+ 0xa900, 0xa92d,
+ 0xa930, 0xa953,
+ 0xa960, 0xa97c,
+ 0xa980, 0xa9c0,
+ 0xa9cf, 0xa9d9,
+ 0xaa00, 0xaa36,
+ 0xaa40, 0xaa4d,
+ 0xaa50, 0xaa59,
+ 0xaa60, 0xaa76,
+ 0xaa7a, 0xaa7b,
+ 0xaa80, 0xaac2,
+ 0xaadb, 0xaadd,
+ 0xab01, 0xab06,
+ 0xab09, 0xab0e,
+ 0xab11, 0xab16,
+ 0xab20, 0xab26,
+ 0xab28, 0xab2e,
+ 0xabc0, 0xabea,
+ 0xabec, 0xabed,
+ 0xabf0, 0xabf9,
+ 0xac00, 0xd7a3,
+ 0xd7b0, 0xd7c6,
+ 0xd7cb, 0xd7fb,
+ 0xf900, 0xfa2d,
+ 0xfa30, 0xfa6d,
+ 0xfa70, 0xfad9,
+ 0xfb00, 0xfb06,
+ 0xfb13, 0xfb17,
+ 0xfb1d, 0xfb28,
+ 0xfb2a, 0xfb36,
+ 0xfb38, 0xfb3c,
+ 0xfb3e, 0xfb3e,
+ 0xfb40, 0xfb41,
+ 0xfb43, 0xfb44,
+ 0xfb46, 0xfbb1,
+ 0xfbd3, 0xfd3d,
+ 0xfd50, 0xfd8f,
+ 0xfd92, 0xfdc7,
+ 0xfdf0, 0xfdfb,
+ 0xfe00, 0xfe0f,
+ 0xfe20, 0xfe26,
+ 0xfe33, 0xfe34,
+ 0xfe4d, 0xfe4f,
+ 0xfe70, 0xfe74,
+ 0xfe76, 0xfefc,
+ 0xff10, 0xff19,
+ 0xff21, 0xff3a,
+ 0xff3f, 0xff3f,
+ 0xff41, 0xff5a,
+ 0xff66, 0xffbe,
+ 0xffc2, 0xffc7,
+ 0xffca, 0xffcf,
+ 0xffd2, 0xffd7,
+ 0xffda, 0xffdc,
+ 0x10000, 0x1000b,
+ 0x1000d, 0x10026,
+ 0x10028, 0x1003a,
+ 0x1003c, 0x1003d,
+ 0x1003f, 0x1004d,
+ 0x10050, 0x1005d,
+ 0x10080, 0x100fa,
+ 0x10140, 0x10174,
+ 0x101fd, 0x101fd,
+ 0x10280, 0x1029c,
+ 0x102a0, 0x102d0,
+ 0x10300, 0x1031e,
+ 0x10330, 0x1034a,
+ 0x10380, 0x1039d,
+ 0x103a0, 0x103c3,
+ 0x103c8, 0x103cf,
+ 0x103d1, 0x103d5,
+ 0x10400, 0x1049d,
+ 0x104a0, 0x104a9,
+ 0x10800, 0x10805,
+ 0x10808, 0x10808,
+ 0x1080a, 0x10835,
+ 0x10837, 0x10838,
+ 0x1083c, 0x1083c,
+ 0x1083f, 0x10855,
+ 0x10900, 0x10915,
+ 0x10920, 0x10939,
+ 0x10a00, 0x10a03,
+ 0x10a05, 0x10a06,
+ 0x10a0c, 0x10a13,
+ 0x10a15, 0x10a17,
+ 0x10a19, 0x10a33,
+ 0x10a38, 0x10a3a,
+ 0x10a3f, 0x10a3f,
+ 0x10a60, 0x10a7c,
+ 0x10b00, 0x10b35,
+ 0x10b40, 0x10b55,
+ 0x10b60, 0x10b72,
+ 0x10c00, 0x10c48,
+ 0x11000, 0x11046,
+ 0x11066, 0x1106f,
+ 0x11080, 0x110ba,
+ 0x12000, 0x1236e,
+ 0x12400, 0x12462,
+ 0x13000, 0x1342e,
+ 0x16800, 0x16a38,
+ 0x1b000, 0x1b001,
+ 0x1d165, 0x1d169,
+ 0x1d16d, 0x1d172,
+ 0x1d17b, 0x1d182,
+ 0x1d185, 0x1d18b,
+ 0x1d1aa, 0x1d1ad,
+ 0x1d242, 0x1d244,
+ 0x1d400, 0x1d454,
+ 0x1d456, 0x1d49c,
+ 0x1d49e, 0x1d49f,
+ 0x1d4a2, 0x1d4a2,
+ 0x1d4a5, 0x1d4a6,
+ 0x1d4a9, 0x1d4ac,
+ 0x1d4ae, 0x1d4b9,
+ 0x1d4bb, 0x1d4bb,
+ 0x1d4bd, 0x1d4c3,
+ 0x1d4c5, 0x1d505,
+ 0x1d507, 0x1d50a,
+ 0x1d50d, 0x1d514,
+ 0x1d516, 0x1d51c,
+ 0x1d51e, 0x1d539,
+ 0x1d53b, 0x1d53e,
+ 0x1d540, 0x1d544,
+ 0x1d546, 0x1d546,
+ 0x1d54a, 0x1d550,
+ 0x1d552, 0x1d6a5,
+ 0x1d6a8, 0x1d6c0,
+ 0x1d6c2, 0x1d6da,
+ 0x1d6dc, 0x1d6fa,
+ 0x1d6fc, 0x1d714,
+ 0x1d716, 0x1d734,
+ 0x1d736, 0x1d74e,
+ 0x1d750, 0x1d76e,
+ 0x1d770, 0x1d788,
+ 0x1d78a, 0x1d7a8,
+ 0x1d7aa, 0x1d7c2,
+ 0x1d7c4, 0x1d7cb,
+ 0x1d7ce, 0x1d7ff,
+ 0x20000, 0x2a6d6,
+ 0x2a700, 0x2b734,
+ 0x2b740, 0x2b81d,
+ 0x2f800, 0x2fa1d,
+ 0xe0100, 0xe01ef,
+}; /* CR_Word */
+
+/* 'Alnum': [[:Alnum:]] */
+static const OnigCodePoint CR_Alnum[] = {
+ 509,
+ 0x0030, 0x0039,
+ 0x0041, 0x005a,
+ 0x0061, 0x007a,
+ 0x00aa, 0x00aa,
+ 0x00b5, 0x00b5,
+ 0x00ba, 0x00ba,
+ 0x00c0, 0x00d6,
+ 0x00d8, 0x00f6,
+ 0x00f8, 0x02c1,
+ 0x02c6, 0x02d1,
+ 0x02e0, 0x02e4,
+ 0x02ec, 0x02ec,
+ 0x02ee, 0x02ee,
+ 0x0345, 0x0345,
+ 0x0370, 0x0374,
+ 0x0376, 0x0377,
+ 0x037a, 0x037d,
+ 0x0386, 0x0386,
+ 0x0388, 0x038a,
+ 0x038c, 0x038c,
+ 0x038e, 0x03a1,
+ 0x03a3, 0x03f5,
+ 0x03f7, 0x0481,
+ 0x048a, 0x0527,
+ 0x0531, 0x0556,
+ 0x0559, 0x0559,
+ 0x0561, 0x0587,
+ 0x05b0, 0x05bd,
+ 0x05bf, 0x05bf,
+ 0x05c1, 0x05c2,
+ 0x05c4, 0x05c5,
+ 0x05c7, 0x05c7,
+ 0x05d0, 0x05ea,
+ 0x05f0, 0x05f2,
+ 0x0610, 0x061a,
+ 0x0620, 0x0657,
+ 0x0659, 0x0669,
+ 0x066e, 0x06d3,
+ 0x06d5, 0x06dc,
+ 0x06e1, 0x06e8,
+ 0x06ed, 0x06fc,
+ 0x06ff, 0x06ff,
+ 0x0710, 0x073f,
+ 0x074d, 0x07b1,
+ 0x07c0, 0x07ea,
+ 0x07f4, 0x07f5,
+ 0x07fa, 0x07fa,
+ 0x0800, 0x0817,
+ 0x081a, 0x082c,
+ 0x0840, 0x0858,
+ 0x0900, 0x093b,
+ 0x093d, 0x094c,
+ 0x094e, 0x0950,
+ 0x0955, 0x0963,
+ 0x0966, 0x096f,
+ 0x0971, 0x0977,
+ 0x0979, 0x097f,
+ 0x0981, 0x0983,
+ 0x0985, 0x098c,
+ 0x098f, 0x0990,
+ 0x0993, 0x09a8,
+ 0x09aa, 0x09b0,
+ 0x09b2, 0x09b2,
+ 0x09b6, 0x09b9,
+ 0x09bd, 0x09c4,
+ 0x09c7, 0x09c8,
+ 0x09cb, 0x09cc,
+ 0x09ce, 0x09ce,
+ 0x09d7, 0x09d7,
+ 0x09dc, 0x09dd,
+ 0x09df, 0x09e3,
+ 0x09e6, 0x09f1,
+ 0x0a01, 0x0a03,
+ 0x0a05, 0x0a0a,
+ 0x0a0f, 0x0a10,
+ 0x0a13, 0x0a28,
+ 0x0a2a, 0x0a30,
+ 0x0a32, 0x0a33,
+ 0x0a35, 0x0a36,
+ 0x0a38, 0x0a39,
+ 0x0a3e, 0x0a42,
+ 0x0a47, 0x0a48,
+ 0x0a4b, 0x0a4c,
+ 0x0a51, 0x0a51,
+ 0x0a59, 0x0a5c,
+ 0x0a5e, 0x0a5e,
+ 0x0a66, 0x0a75,
+ 0x0a81, 0x0a83,
+ 0x0a85, 0x0a8d,
+ 0x0a8f, 0x0a91,
+ 0x0a93, 0x0aa8,
+ 0x0aaa, 0x0ab0,
+ 0x0ab2, 0x0ab3,
+ 0x0ab5, 0x0ab9,
+ 0x0abd, 0x0ac5,
+ 0x0ac7, 0x0ac9,
+ 0x0acb, 0x0acc,
+ 0x0ad0, 0x0ad0,
+ 0x0ae0, 0x0ae3,
+ 0x0ae6, 0x0aef,
+ 0x0b01, 0x0b03,
+ 0x0b05, 0x0b0c,
+ 0x0b0f, 0x0b10,
+ 0x0b13, 0x0b28,
+ 0x0b2a, 0x0b30,
+ 0x0b32, 0x0b33,
+ 0x0b35, 0x0b39,
+ 0x0b3d, 0x0b44,
+ 0x0b47, 0x0b48,
+ 0x0b4b, 0x0b4c,
+ 0x0b56, 0x0b57,
+ 0x0b5c, 0x0b5d,
+ 0x0b5f, 0x0b63,
+ 0x0b66, 0x0b6f,
+ 0x0b71, 0x0b71,
+ 0x0b82, 0x0b83,
+ 0x0b85, 0x0b8a,
+ 0x0b8e, 0x0b90,
+ 0x0b92, 0x0b95,
+ 0x0b99, 0x0b9a,
+ 0x0b9c, 0x0b9c,
+ 0x0b9e, 0x0b9f,
+ 0x0ba3, 0x0ba4,
+ 0x0ba8, 0x0baa,
+ 0x0bae, 0x0bb9,
+ 0x0bbe, 0x0bc2,
+ 0x0bc6, 0x0bc8,
+ 0x0bca, 0x0bcc,
+ 0x0bd0, 0x0bd0,
+ 0x0bd7, 0x0bd7,
+ 0x0be6, 0x0bef,
+ 0x0c01, 0x0c03,
+ 0x0c05, 0x0c0c,
+ 0x0c0e, 0x0c10,
+ 0x0c12, 0x0c28,
+ 0x0c2a, 0x0c33,
+ 0x0c35, 0x0c39,
+ 0x0c3d, 0x0c44,
+ 0x0c46, 0x0c48,
+ 0x0c4a, 0x0c4c,
+ 0x0c55, 0x0c56,
+ 0x0c58, 0x0c59,
+ 0x0c60, 0x0c63,
+ 0x0c66, 0x0c6f,
+ 0x0c82, 0x0c83,
+ 0x0c85, 0x0c8c,
+ 0x0c8e, 0x0c90,
+ 0x0c92, 0x0ca8,
+ 0x0caa, 0x0cb3,
+ 0x0cb5, 0x0cb9,
+ 0x0cbd, 0x0cc4,
+ 0x0cc6, 0x0cc8,
+ 0x0cca, 0x0ccc,
+ 0x0cd5, 0x0cd6,
+ 0x0cde, 0x0cde,
+ 0x0ce0, 0x0ce3,
+ 0x0ce6, 0x0cef,
+ 0x0cf1, 0x0cf2,
+ 0x0d02, 0x0d03,
+ 0x0d05, 0x0d0c,
+ 0x0d0e, 0x0d10,
+ 0x0d12, 0x0d3a,
+ 0x0d3d, 0x0d44,
+ 0x0d46, 0x0d48,
+ 0x0d4a, 0x0d4c,
+ 0x0d4e, 0x0d4e,
+ 0x0d57, 0x0d57,
+ 0x0d60, 0x0d63,
+ 0x0d66, 0x0d6f,
+ 0x0d7a, 0x0d7f,
+ 0x0d82, 0x0d83,
+ 0x0d85, 0x0d96,
+ 0x0d9a, 0x0db1,
+ 0x0db3, 0x0dbb,
+ 0x0dbd, 0x0dbd,
+ 0x0dc0, 0x0dc6,
+ 0x0dcf, 0x0dd4,
+ 0x0dd6, 0x0dd6,
+ 0x0dd8, 0x0ddf,
+ 0x0df2, 0x0df3,
+ 0x0e01, 0x0e3a,
+ 0x0e40, 0x0e46,
+ 0x0e4d, 0x0e4d,
+ 0x0e50, 0x0e59,
+ 0x0e81, 0x0e82,
+ 0x0e84, 0x0e84,
+ 0x0e87, 0x0e88,
+ 0x0e8a, 0x0e8a,
+ 0x0e8d, 0x0e8d,
+ 0x0e94, 0x0e97,
+ 0x0e99, 0x0e9f,
+ 0x0ea1, 0x0ea3,
+ 0x0ea5, 0x0ea5,
+ 0x0ea7, 0x0ea7,
+ 0x0eaa, 0x0eab,
+ 0x0ead, 0x0eb9,
+ 0x0ebb, 0x0ebd,
+ 0x0ec0, 0x0ec4,
+ 0x0ec6, 0x0ec6,
+ 0x0ecd, 0x0ecd,
+ 0x0ed0, 0x0ed9,
+ 0x0edc, 0x0edd,
+ 0x0f00, 0x0f00,
+ 0x0f20, 0x0f29,
+ 0x0f40, 0x0f47,
+ 0x0f49, 0x0f6c,
+ 0x0f71, 0x0f81,
+ 0x0f88, 0x0f97,
+ 0x0f99, 0x0fbc,
+ 0x1000, 0x1036,
+ 0x1038, 0x1038,
+ 0x103b, 0x1049,
+ 0x1050, 0x1062,
+ 0x1065, 0x1068,
+ 0x106e, 0x1086,
+ 0x108e, 0x108e,
+ 0x1090, 0x1099,
+ 0x109c, 0x109d,
+ 0x10a0, 0x10c5,
+ 0x10d0, 0x10fa,
+ 0x10fc, 0x10fc,
+ 0x1100, 0x1248,
+ 0x124a, 0x124d,
+ 0x1250, 0x1256,
+ 0x1258, 0x1258,
+ 0x125a, 0x125d,
+ 0x1260, 0x1288,
+ 0x128a, 0x128d,
+ 0x1290, 0x12b0,
+ 0x12b2, 0x12b5,
+ 0x12b8, 0x12be,
+ 0x12c0, 0x12c0,
+ 0x12c2, 0x12c5,
+ 0x12c8, 0x12d6,
+ 0x12d8, 0x1310,
+ 0x1312, 0x1315,
+ 0x1318, 0x135a,
+ 0x135f, 0x135f,
+ 0x1380, 0x138f,
+ 0x13a0, 0x13f4,
+ 0x1401, 0x166c,
+ 0x166f, 0x167f,
+ 0x1681, 0x169a,
+ 0x16a0, 0x16ea,
+ 0x16ee, 0x16f0,
+ 0x1700, 0x170c,
+ 0x170e, 0x1713,
+ 0x1720, 0x1733,
+ 0x1740, 0x1753,
+ 0x1760, 0x176c,
+ 0x176e, 0x1770,
+ 0x1772, 0x1773,
+ 0x1780, 0x17b3,
+ 0x17b6, 0x17c8,
+ 0x17d7, 0x17d7,
+ 0x17dc, 0x17dc,
+ 0x17e0, 0x17e9,
+ 0x1810, 0x1819,
+ 0x1820, 0x1877,
+ 0x1880, 0x18aa,
+ 0x18b0, 0x18f5,
+ 0x1900, 0x191c,
+ 0x1920, 0x192b,
+ 0x1930, 0x1938,
+ 0x1946, 0x196d,
+ 0x1970, 0x1974,
+ 0x1980, 0x19ab,
+ 0x19b0, 0x19c9,
+ 0x19d0, 0x19d9,
+ 0x1a00, 0x1a1b,
+ 0x1a20, 0x1a5e,
+ 0x1a61, 0x1a74,
+ 0x1a80, 0x1a89,
+ 0x1a90, 0x1a99,
+ 0x1aa7, 0x1aa7,
+ 0x1b00, 0x1b33,
+ 0x1b35, 0x1b43,
+ 0x1b45, 0x1b4b,
+ 0x1b50, 0x1b59,
+ 0x1b80, 0x1ba9,
+ 0x1bae, 0x1bb9,
+ 0x1bc0, 0x1be5,
+ 0x1be7, 0x1bf1,
+ 0x1c00, 0x1c35,
+ 0x1c40, 0x1c49,
+ 0x1c4d, 0x1c7d,
+ 0x1ce9, 0x1cec,
+ 0x1cee, 0x1cf2,
+ 0x1d00, 0x1dbf,
+ 0x1e00, 0x1f15,
+ 0x1f18, 0x1f1d,
+ 0x1f20, 0x1f45,
+ 0x1f48, 0x1f4d,
+ 0x1f50, 0x1f57,
+ 0x1f59, 0x1f59,
+ 0x1f5b, 0x1f5b,
+ 0x1f5d, 0x1f5d,
+ 0x1f5f, 0x1f7d,
+ 0x1f80, 0x1fb4,
+ 0x1fb6, 0x1fbc,
+ 0x1fbe, 0x1fbe,
+ 0x1fc2, 0x1fc4,
+ 0x1fc6, 0x1fcc,
+ 0x1fd0, 0x1fd3,
+ 0x1fd6, 0x1fdb,
+ 0x1fe0, 0x1fec,
+ 0x1ff2, 0x1ff4,
+ 0x1ff6, 0x1ffc,
+ 0x2071, 0x2071,
+ 0x207f, 0x207f,
+ 0x2090, 0x209c,
+ 0x2102, 0x2102,
+ 0x2107, 0x2107,
+ 0x210a, 0x2113,
+ 0x2115, 0x2115,
+ 0x2119, 0x211d,
+ 0x2124, 0x2124,
+ 0x2126, 0x2126,
+ 0x2128, 0x2128,
+ 0x212a, 0x212d,
+ 0x212f, 0x2139,
+ 0x213c, 0x213f,
+ 0x2145, 0x2149,
+ 0x214e, 0x214e,
+ 0x2160, 0x2188,
+ 0x24b6, 0x24e9,
+ 0x2c00, 0x2c2e,
+ 0x2c30, 0x2c5e,
+ 0x2c60, 0x2ce4,
+ 0x2ceb, 0x2cee,
+ 0x2d00, 0x2d25,
+ 0x2d30, 0x2d65,
+ 0x2d6f, 0x2d6f,
+ 0x2d80, 0x2d96,
+ 0x2da0, 0x2da6,
+ 0x2da8, 0x2dae,
+ 0x2db0, 0x2db6,
+ 0x2db8, 0x2dbe,
+ 0x2dc0, 0x2dc6,
+ 0x2dc8, 0x2dce,
+ 0x2dd0, 0x2dd6,
+ 0x2dd8, 0x2dde,
+ 0x2de0, 0x2dff,
+ 0x2e2f, 0x2e2f,
+ 0x3005, 0x3007,
+ 0x3021, 0x3029,
+ 0x3031, 0x3035,
+ 0x3038, 0x303c,
+ 0x3041, 0x3096,
+ 0x309d, 0x309f,
+ 0x30a1, 0x30fa,
+ 0x30fc, 0x30ff,
+ 0x3105, 0x312d,
+ 0x3131, 0x318e,
+ 0x31a0, 0x31ba,
+ 0x31f0, 0x31ff,
+ 0x3400, 0x4db5,
+ 0x4e00, 0x9fcb,
+ 0xa000, 0xa48c,
+ 0xa4d0, 0xa4fd,
+ 0xa500, 0xa60c,
+ 0xa610, 0xa62b,
+ 0xa640, 0xa66e,
+ 0xa67f, 0xa697,
+ 0xa6a0, 0xa6ef,
+ 0xa717, 0xa71f,
+ 0xa722, 0xa788,
+ 0xa78b, 0xa78e,
+ 0xa790, 0xa791,
+ 0xa7a0, 0xa7a9,
+ 0xa7fa, 0xa801,
+ 0xa803, 0xa805,
+ 0xa807, 0xa80a,
+ 0xa80c, 0xa827,
+ 0xa840, 0xa873,
+ 0xa880, 0xa8c3,
+ 0xa8d0, 0xa8d9,
+ 0xa8f2, 0xa8f7,
+ 0xa8fb, 0xa8fb,
+ 0xa900, 0xa92a,
+ 0xa930, 0xa952,
+ 0xa960, 0xa97c,
+ 0xa980, 0xa9b2,
+ 0xa9b4, 0xa9bf,
+ 0xa9cf, 0xa9d9,
+ 0xaa00, 0xaa36,
+ 0xaa40, 0xaa4d,
+ 0xaa50, 0xaa59,
+ 0xaa60, 0xaa76,
+ 0xaa7a, 0xaa7a,
+ 0xaa80, 0xaabe,
+ 0xaac0, 0xaac0,
+ 0xaac2, 0xaac2,
+ 0xaadb, 0xaadd,
+ 0xab01, 0xab06,
+ 0xab09, 0xab0e,
+ 0xab11, 0xab16,
+ 0xab20, 0xab26,
+ 0xab28, 0xab2e,
+ 0xabc0, 0xabea,
+ 0xabf0, 0xabf9,
+ 0xac00, 0xd7a3,
+ 0xd7b0, 0xd7c6,
+ 0xd7cb, 0xd7fb,
+ 0xf900, 0xfa2d,
+ 0xfa30, 0xfa6d,
+ 0xfa70, 0xfad9,
+ 0xfb00, 0xfb06,
+ 0xfb13, 0xfb17,
+ 0xfb1d, 0xfb28,
+ 0xfb2a, 0xfb36,
+ 0xfb38, 0xfb3c,
+ 0xfb3e, 0xfb3e,
+ 0xfb40, 0xfb41,
+ 0xfb43, 0xfb44,
+ 0xfb46, 0xfbb1,
+ 0xfbd3, 0xfd3d,
+ 0xfd50, 0xfd8f,
+ 0xfd92, 0xfdc7,
+ 0xfdf0, 0xfdfb,
+ 0xfe70, 0xfe74,
+ 0xfe76, 0xfefc,
+ 0xff10, 0xff19,
+ 0xff21, 0xff3a,
+ 0xff41, 0xff5a,
+ 0xff66, 0xffbe,
+ 0xffc2, 0xffc7,
+ 0xffca, 0xffcf,
+ 0xffd2, 0xffd7,
+ 0xffda, 0xffdc,
+ 0x10000, 0x1000b,
+ 0x1000d, 0x10026,
+ 0x10028, 0x1003a,
+ 0x1003c, 0x1003d,
+ 0x1003f, 0x1004d,
+ 0x10050, 0x1005d,
+ 0x10080, 0x100fa,
+ 0x10140, 0x10174,
+ 0x10280, 0x1029c,
+ 0x102a0, 0x102d0,
+ 0x10300, 0x1031e,
+ 0x10330, 0x1034a,
+ 0x10380, 0x1039d,
+ 0x103a0, 0x103c3,
+ 0x103c8, 0x103cf,
+ 0x103d1, 0x103d5,
+ 0x10400, 0x1049d,
+ 0x104a0, 0x104a9,
+ 0x10800, 0x10805,
+ 0x10808, 0x10808,
+ 0x1080a, 0x10835,
+ 0x10837, 0x10838,
+ 0x1083c, 0x1083c,
+ 0x1083f, 0x10855,
+ 0x10900, 0x10915,
+ 0x10920, 0x10939,
+ 0x10a00, 0x10a03,
+ 0x10a05, 0x10a06,
+ 0x10a0c, 0x10a13,
+ 0x10a15, 0x10a17,
+ 0x10a19, 0x10a33,
+ 0x10a60, 0x10a7c,
+ 0x10b00, 0x10b35,
+ 0x10b40, 0x10b55,
+ 0x10b60, 0x10b72,
+ 0x10c00, 0x10c48,
+ 0x11000, 0x11045,
+ 0x11066, 0x1106f,
+ 0x11082, 0x110b8,
+ 0x12000, 0x1236e,
+ 0x12400, 0x12462,
+ 0x13000, 0x1342e,
+ 0x16800, 0x16a38,
+ 0x1b000, 0x1b001,
+ 0x1d400, 0x1d454,
+ 0x1d456, 0x1d49c,
+ 0x1d49e, 0x1d49f,
+ 0x1d4a2, 0x1d4a2,
+ 0x1d4a5, 0x1d4a6,
+ 0x1d4a9, 0x1d4ac,
+ 0x1d4ae, 0x1d4b9,
+ 0x1d4bb, 0x1d4bb,
+ 0x1d4bd, 0x1d4c3,
+ 0x1d4c5, 0x1d505,
+ 0x1d507, 0x1d50a,
+ 0x1d50d, 0x1d514,
+ 0x1d516, 0x1d51c,
+ 0x1d51e, 0x1d539,
+ 0x1d53b, 0x1d53e,
+ 0x1d540, 0x1d544,
+ 0x1d546, 0x1d546,
+ 0x1d54a, 0x1d550,
+ 0x1d552, 0x1d6a5,
+ 0x1d6a8, 0x1d6c0,
+ 0x1d6c2, 0x1d6da,
+ 0x1d6dc, 0x1d6fa,
+ 0x1d6fc, 0x1d714,
+ 0x1d716, 0x1d734,
+ 0x1d736, 0x1d74e,
+ 0x1d750, 0x1d76e,
+ 0x1d770, 0x1d788,
+ 0x1d78a, 0x1d7a8,
+ 0x1d7aa, 0x1d7c2,
+ 0x1d7c4, 0x1d7cb,
+ 0x1d7ce, 0x1d7ff,
+ 0x20000, 0x2a6d6,
+ 0x2a700, 0x2b734,
+ 0x2b740, 0x2b81d,
+ 0x2f800, 0x2fa1d,
+}; /* CR_Alnum */
+
+/* 'ASCII': [[:ASCII:]] */
+static const OnigCodePoint CR_ASCII[] = {
+ 1,
+ 0x0000, 0x007f,
+}; /* CR_ASCII */
+
+static const OnigCodePoint* const CodeRanges[] = {
+ CR_NEWLINE,
+ CR_Alpha,
+ CR_Blank,
+ CR_Cntrl,
+ CR_Digit,
+ CR_Graph,
+ CR_Lower,
+ CR_Print,
+ CR_Punct,
+ CR_Space,
+ CR_Upper,
+ CR_XDigit,
+ CR_Word,
+ CR_Alnum,
+ CR_ASCII,
+#ifdef USE_UNICODE_PROPERTIES
+ CR_Any,
+ CR_Assigned,
+ CR_C,
+ CR_Cc,
+ CR_Cf,
+ CR_Cn,
+ CR_Co,
+ CR_Cs,
+ CR_L,
+ CR_Ll,
+ CR_Lm,
+ CR_Lo,
+ CR_Lt,
+ CR_Lu,
+ CR_M,
+ CR_Mc,
+ CR_Me,
+ CR_Mn,
+ CR_N,
+ CR_Nd,
+ CR_Nl,
+ CR_No,
+ CR_P,
+ CR_Pc,
+ CR_Pd,
+ CR_Pe,
+ CR_Pf,
+ CR_Pi,
+ CR_Po,
+ CR_Ps,
+ CR_S,
+ CR_Sc,
+ CR_Sk,
+ CR_Sm,
+ CR_So,
+ CR_Z,
+ CR_Zl,
+ CR_Zp,
+ CR_Zs,
+ CR_Math,
+ CR_Alphabetic,
+ CR_Lowercase,
+ CR_Uppercase,
+ CR_Cased,
+ CR_Case_Ignorable,
+ CR_Changes_When_Lowercased,
+ CR_Changes_When_Uppercased,
+ CR_Changes_When_Titlecased,
+ CR_Changes_When_Casefolded,
+ CR_Changes_When_Casemapped,
+ CR_ID_Start,
+ CR_ID_Continue,
+ CR_XID_Start,
+ CR_XID_Continue,
+ CR_Default_Ignorable_Code_Point,
+ CR_Grapheme_Extend,
+ CR_Grapheme_Base,
+ CR_Grapheme_Link,
+ CR_Common,
+ CR_Latin,
+ CR_Greek,
+ CR_Cyrillic,
+ CR_Armenian,
+ CR_Hebrew,
+ CR_Arabic,
+ CR_Syriac,
+ CR_Thaana,
+ CR_Devanagari,
+ CR_Bengali,
+ CR_Gurmukhi,
+ CR_Gujarati,
+ CR_Oriya,
+ CR_Tamil,
+ CR_Telugu,
+ CR_Kannada,
+ CR_Malayalam,
+ CR_Sinhala,
+ CR_Thai,
+ CR_Lao,
+ CR_Tibetan,
+ CR_Myanmar,
+ CR_Georgian,
+ CR_Hangul,
+ CR_Ethiopic,
+ CR_Cherokee,
+ CR_Canadian_Aboriginal,
+ CR_Ogham,
+ CR_Runic,
+ CR_Khmer,
+ CR_Mongolian,
+ CR_Hiragana,
+ CR_Katakana,
+ CR_Bopomofo,
+ CR_Han,
+ CR_Yi,
+ CR_Old_Italic,
+ CR_Gothic,
+ CR_Deseret,
+ CR_Inherited,
+ CR_Tagalog,
+ CR_Hanunoo,
+ CR_Buhid,
+ CR_Tagbanwa,
+ CR_Limbu,
+ CR_Tai_Le,
+ CR_Linear_B,
+ CR_Ugaritic,
+ CR_Shavian,
+ CR_Osmanya,
+ CR_Cypriot,
+ CR_Braille,
+ CR_Buginese,
+ CR_Coptic,
+ CR_New_Tai_Lue,
+ CR_Glagolitic,
+ CR_Tifinagh,
+ CR_Syloti_Nagri,
+ CR_Old_Persian,
+ CR_Kharoshthi,
+ CR_Balinese,
+ CR_Cuneiform,
+ CR_Phoenician,
+ CR_Phags_Pa,
+ CR_Nko,
+ CR_Sundanese,
+ CR_Lepcha,
+ CR_Ol_Chiki,
+ CR_Vai,
+ CR_Saurashtra,
+ CR_Kayah_Li,
+ CR_Rejang,
+ CR_Lycian,
+ CR_Carian,
+ CR_Lydian,
+ CR_Cham,
+ CR_Tai_Tham,
+ CR_Tai_Viet,
+ CR_Avestan,
+ CR_Egyptian_Hieroglyphs,
+ CR_Samaritan,
+ CR_Lisu,
+ CR_Bamum,
+ CR_Javanese,
+ CR_Meetei_Mayek,
+ CR_Imperial_Aramaic,
+ CR_Old_South_Arabian,
+ CR_Inscriptional_Parthian,
+ CR_Inscriptional_Pahlavi,
+ CR_Old_Turkic,
+ CR_Kaithi,
+ CR_Batak,
+ CR_Brahmi,
+ CR_Mandaic,
+ CR_White_Space,
+ CR_Bidi_Control,
+ CR_Join_Control,
+ CR_Dash,
+ CR_Hyphen,
+ CR_Quotation_Mark,
+ CR_Terminal_Punctuation,
+ CR_Other_Math,
+ CR_Hex_Digit,
+ CR_ASCII_Hex_Digit,
+ CR_Other_Alphabetic,
+ CR_Ideographic,
+ CR_Diacritic,
+ CR_Extender,
+ CR_Other_Lowercase,
+ CR_Other_Uppercase,
+ CR_Noncharacter_Code_Point,
+ CR_Other_Grapheme_Extend,
+ CR_IDS_Binary_Operator,
+ CR_IDS_Trinary_Operator,
+ CR_Radical,
+ CR_Unified_Ideograph,
+ CR_Other_Default_Ignorable_Code_Point,
+ CR_Deprecated,
+ CR_Soft_Dotted,
+ CR_Logical_Order_Exception,
+ CR_Other_ID_Start,
+ CR_Other_ID_Continue,
+ CR_STerm,
+ CR_Variation_Selector,
+ CR_Pattern_White_Space,
+ CR_Pattern_Syntax,
+ CR_Unknown,
+ CR_Age_1_1,
+ CR_Age_2_0,
+ CR_Age_2_1,
+ CR_Age_3_0,
+ CR_Age_3_1,
+ CR_Age_3_2,
+ CR_Age_4_0,
+ CR_Age_4_1,
+ CR_Age_5_0,
+ CR_Age_5_1,
+ CR_Age_5_2,
+ CR_Age_6_0,
+#endif /* USE_UNICODE_PROPERTIES */
+};
+struct uniname2ctype_struct {
+ int name, ctype;
+};
+
+static const struct uniname2ctype_struct *uniname2ctype_p(const char *, unsigned int);
+%}
+struct uniname2ctype_struct;
+%%
+newline, 0
+alpha, 1
+blank, 2
+cntrl, 3
+digit, 4
+graph, 5
+lower, 6
+print, 7
+punct, 8
+space, 9
+upper, 10
+xdigit, 11
+word, 12
+alnum, 13
+ascii, 14
+#ifdef USE_UNICODE_PROPERTIES
+any, 15
+assigned, 16
+c, 17
+cc, 18
+cf, 19
+cn, 20
+co, 21
+cs, 22
+l, 23
+ll, 24
+lm, 25
+lo, 26
+lt, 27
+lu, 28
+m, 29
+mc, 30
+me, 31
+mn, 32
+n, 33
+nd, 34
+nl, 35
+no, 36
+p, 37
+pc, 38
+pd, 39
+pe, 40
+pf, 41
+pi, 42
+po, 43
+ps, 44
+s, 45
+sc, 46
+sk, 47
+sm, 48
+so, 49
+z, 50
+zl, 51
+zp, 52
+zs, 53
+math, 54
+alphabetic, 55
+lowercase, 56
+uppercase, 57
+cased, 58
+caseignorable, 59
+changeswhenlowercased, 60
+changeswhenuppercased, 61
+changeswhentitlecased, 62
+changeswhencasefolded, 63
+changeswhencasemapped, 64
+idstart, 65
+idcontinue, 66
+xidstart, 67
+xidcontinue, 68
+defaultignorablecodepoint, 69
+graphemeextend, 70
+graphemebase, 71
+graphemelink, 72
+common, 73
+latin, 74
+greek, 75
+cyrillic, 76
+armenian, 77
+hebrew, 78
+arabic, 79
+syriac, 80
+thaana, 81
+devanagari, 82
+bengali, 83
+gurmukhi, 84
+gujarati, 85
+oriya, 86
+tamil, 87
+telugu, 88
+kannada, 89
+malayalam, 90
+sinhala, 91
+thai, 92
+lao, 93
+tibetan, 94
+myanmar, 95
+georgian, 96
+hangul, 97
+ethiopic, 98
+cherokee, 99
+canadianaboriginal, 100
+ogham, 101
+runic, 102
+khmer, 103
+mongolian, 104
+hiragana, 105
+katakana, 106
+bopomofo, 107
+han, 108
+yi, 109
+olditalic, 110
+gothic, 111
+deseret, 112
+inherited, 113
+tagalog, 114
+hanunoo, 115
+buhid, 116
+tagbanwa, 117
+limbu, 118
+taile, 119
+linearb, 120
+ugaritic, 121
+shavian, 122
+osmanya, 123
+cypriot, 124
+braille, 125
+buginese, 126
+coptic, 127
+newtailue, 128
+glagolitic, 129
+tifinagh, 130
+sylotinagri, 131
+oldpersian, 132
+kharoshthi, 133
+balinese, 134
+cuneiform, 135
+phoenician, 136
+phagspa, 137
+nko, 138
+sundanese, 139
+lepcha, 140
+olchiki, 141
+vai, 142
+saurashtra, 143
+kayahli, 144
+rejang, 145
+lycian, 146
+carian, 147
+lydian, 148
+cham, 149
+taitham, 150
+taiviet, 151
+avestan, 152
+egyptianhieroglyphs, 153
+samaritan, 154
+lisu, 155
+bamum, 156
+javanese, 157
+meeteimayek, 158
+imperialaramaic, 159
+oldsoutharabian, 160
+inscriptionalparthian, 161
+inscriptionalpahlavi, 162
+oldturkic, 163
+kaithi, 164
+batak, 165
+brahmi, 166
+mandaic, 167
+whitespace, 168
+bidicontrol, 169
+joincontrol, 170
+dash, 171
+hyphen, 172
+quotationmark, 173
+terminalpunctuation, 174
+othermath, 175
+hexdigit, 176
+asciihexdigit, 177
+otheralphabetic, 178
+ideographic, 179
+diacritic, 180
+extender, 181
+otherlowercase, 182
+otheruppercase, 183
+noncharactercodepoint, 184
+othergraphemeextend, 185
+idsbinaryoperator, 186
+idstrinaryoperator, 187
+radical, 188
+unifiedideograph, 189
+otherdefaultignorablecodepoint, 190
+deprecated, 191
+softdotted, 192
+logicalorderexception, 193
+otheridstart, 194
+otheridcontinue, 195
+sterm, 196
+variationselector, 197
+patternwhitespace, 198
+patternsyntax, 199
+unknown, 200
+ahex, 177
+bidic, 169
+ci, 59
+cwcf, 63
+cwcm, 64
+cwl, 60
+cwt, 62
+cwu, 61
+dep, 191
+di, 69
+dia, 180
+ext, 181
+grbase, 71
+grext, 70
+grlink, 72
+hex, 176
+idc, 66
+ideo, 179
+ids, 65
+idsb, 186
+idst, 187
+joinc, 170
+loe, 193
+nchar, 184
+oalpha, 178
+odi, 190
+ogrext, 185
+oidc, 195
+oids, 194
+olower, 182
+omath, 175
+oupper, 183
+patsyn, 199
+patws, 198
+qmark, 173
+sd, 192
+term, 174
+uideo, 189
+vs, 197
+wspace, 168
+xidc, 68
+xids, 67
+other, 17
+control, 18
+format, 19
+unassigned, 20
+privateuse, 21
+surrogate, 22
+letter, 23
+lowercaseletter, 24
+modifierletter, 25
+otherletter, 26
+titlecaseletter, 27
+uppercaseletter, 28
+mark, 29
+spacingmark, 30
+enclosingmark, 31
+nonspacingmark, 32
+number, 33
+decimalnumber, 34
+letternumber, 35
+othernumber, 36
+punctuation, 37
+connectorpunctuation, 38
+dashpunctuation, 39
+closepunctuation, 40
+finalpunctuation, 41
+initialpunctuation, 42
+otherpunctuation, 43
+openpunctuation, 44
+symbol, 45
+currencysymbol, 46
+modifiersymbol, 47
+mathsymbol, 48
+othersymbol, 49
+separator, 50
+lineseparator, 51
+paragraphseparator, 52
+spaceseparator, 53
+arab, 79
+armi, 159
+armn, 77
+avst, 152
+bali, 134
+bamu, 156
+batk, 165
+beng, 83
+bopo, 107
+brah, 166
+brai, 125
+bugi, 126
+buhd, 116
+cans, 100
+cari, 147
+cher, 99
+copt, 127
+qaac, 127
+cprt, 124
+cyrl, 76
+deva, 82
+dsrt, 112
+egyp, 153
+ethi, 98
+geor, 96
+glag, 129
+goth, 111
+grek, 75
+gujr, 85
+guru, 84
+hang, 97
+hani, 108
+hano, 115
+hebr, 78
+hira, 105
+ital, 110
+java, 157
+kali, 144
+kana, 106
+khar, 133
+khmr, 103
+knda, 89
+kthi, 164
+lana, 150
+laoo, 93
+latn, 74
+lepc, 140
+limb, 118
+linb, 120
+lyci, 146
+lydi, 148
+mand, 167
+mlym, 90
+mong, 104
+mtei, 158
+mymr, 95
+nkoo, 138
+ogam, 101
+olck, 141
+orkh, 163
+orya, 86
+osma, 123
+phag, 137
+phli, 162
+phnx, 136
+prti, 161
+rjng, 145
+runr, 102
+samr, 154
+sarb, 160
+saur, 143
+shaw, 122
+sinh, 91
+sund, 139
+sylo, 131
+syrc, 80
+tagb, 117
+tale, 119
+talu, 128
+taml, 87
+tavt, 151
+telu, 88
+tfng, 130
+tglg, 114
+thaa, 81
+tibt, 94
+ugar, 121
+vaii, 142
+xpeo, 132
+xsux, 135
+yiii, 109
+zinh, 113
+qaai, 113
+zyyy, 73
+zzzz, 200
+age=1.1, 201
+age=2.0, 202
+age=2.1, 203
+age=3.0, 204
+age=3.1, 205
+age=3.2, 206
+age=4.0, 207
+age=4.1, 208
+age=5.0, 209
+age=5.1, 210
+age=5.2, 211
+age=6.0, 212
+#endif /* USE_UNICODE_PROPERTIES */
+%%
+static int
+uniname2ctype(const UChar *name, unsigned int len)
+{
+ const struct uniname2ctype_struct *p = uniname2ctype_p((const char *)name, len);
+ if (p) return p->ctype;
+ return -1;
+}
diff --git a/enc/unicode/name2ctype.src b/enc/unicode/name2ctype.src
new file mode 100644
index 0000000000..2e27f3f7de
--- /dev/null
+++ b/enc/unicode/name2ctype.src
@@ -0,0 +1,22543 @@
+%{
+#define long size_t
+
+#ifdef USE_UNICODE_PROPERTIES
+/* 'Any': - */
+static const OnigCodePoint CR_Any[] = {
+ 1,
+ 0x0000, 0x10ffff,
+}; /* CR_Any */
+
+/* 'Assigned': - */
+static const OnigCodePoint CR_Assigned[] = {
+ 501,
+ 0x0000, 0x0377,
+ 0x037a, 0x037e,
+ 0x0384, 0x038a,
+ 0x038c, 0x038c,
+ 0x038e, 0x03a1,
+ 0x03a3, 0x0527,
+ 0x0531, 0x0556,
+ 0x0559, 0x055f,
+ 0x0561, 0x0587,
+ 0x0589, 0x058a,
+ 0x0591, 0x05c7,
+ 0x05d0, 0x05ea,
+ 0x05f0, 0x05f4,
+ 0x0600, 0x0603,
+ 0x0606, 0x061b,
+ 0x061e, 0x070d,
+ 0x070f, 0x074a,
+ 0x074d, 0x07b1,
+ 0x07c0, 0x07fa,
+ 0x0800, 0x082d,
+ 0x0830, 0x083e,
+ 0x0840, 0x085b,
+ 0x085e, 0x085e,
+ 0x0900, 0x0977,
+ 0x0979, 0x097f,
+ 0x0981, 0x0983,
+ 0x0985, 0x098c,
+ 0x098f, 0x0990,
+ 0x0993, 0x09a8,
+ 0x09aa, 0x09b0,
+ 0x09b2, 0x09b2,
+ 0x09b6, 0x09b9,
+ 0x09bc, 0x09c4,
+ 0x09c7, 0x09c8,
+ 0x09cb, 0x09ce,
+ 0x09d7, 0x09d7,
+ 0x09dc, 0x09dd,
+ 0x09df, 0x09e3,
+ 0x09e6, 0x09fb,
+ 0x0a01, 0x0a03,
+ 0x0a05, 0x0a0a,
+ 0x0a0f, 0x0a10,
+ 0x0a13, 0x0a28,
+ 0x0a2a, 0x0a30,
+ 0x0a32, 0x0a33,
+ 0x0a35, 0x0a36,
+ 0x0a38, 0x0a39,
+ 0x0a3c, 0x0a3c,
+ 0x0a3e, 0x0a42,
+ 0x0a47, 0x0a48,
+ 0x0a4b, 0x0a4d,
+ 0x0a51, 0x0a51,
+ 0x0a59, 0x0a5c,
+ 0x0a5e, 0x0a5e,
+ 0x0a66, 0x0a75,
+ 0x0a81, 0x0a83,
+ 0x0a85, 0x0a8d,
+ 0x0a8f, 0x0a91,
+ 0x0a93, 0x0aa8,
+ 0x0aaa, 0x0ab0,
+ 0x0ab2, 0x0ab3,
+ 0x0ab5, 0x0ab9,
+ 0x0abc, 0x0ac5,
+ 0x0ac7, 0x0ac9,
+ 0x0acb, 0x0acd,
+ 0x0ad0, 0x0ad0,
+ 0x0ae0, 0x0ae3,
+ 0x0ae6, 0x0aef,
+ 0x0af1, 0x0af1,
+ 0x0b01, 0x0b03,
+ 0x0b05, 0x0b0c,
+ 0x0b0f, 0x0b10,
+ 0x0b13, 0x0b28,
+ 0x0b2a, 0x0b30,
+ 0x0b32, 0x0b33,
+ 0x0b35, 0x0b39,
+ 0x0b3c, 0x0b44,
+ 0x0b47, 0x0b48,
+ 0x0b4b, 0x0b4d,
+ 0x0b56, 0x0b57,
+ 0x0b5c, 0x0b5d,
+ 0x0b5f, 0x0b63,
+ 0x0b66, 0x0b77,
+ 0x0b82, 0x0b83,
+ 0x0b85, 0x0b8a,
+ 0x0b8e, 0x0b90,
+ 0x0b92, 0x0b95,
+ 0x0b99, 0x0b9a,
+ 0x0b9c, 0x0b9c,
+ 0x0b9e, 0x0b9f,
+ 0x0ba3, 0x0ba4,
+ 0x0ba8, 0x0baa,
+ 0x0bae, 0x0bb9,
+ 0x0bbe, 0x0bc2,
+ 0x0bc6, 0x0bc8,
+ 0x0bca, 0x0bcd,
+ 0x0bd0, 0x0bd0,
+ 0x0bd7, 0x0bd7,
+ 0x0be6, 0x0bfa,
+ 0x0c01, 0x0c03,
+ 0x0c05, 0x0c0c,
+ 0x0c0e, 0x0c10,
+ 0x0c12, 0x0c28,
+ 0x0c2a, 0x0c33,
+ 0x0c35, 0x0c39,
+ 0x0c3d, 0x0c44,
+ 0x0c46, 0x0c48,
+ 0x0c4a, 0x0c4d,
+ 0x0c55, 0x0c56,
+ 0x0c58, 0x0c59,
+ 0x0c60, 0x0c63,
+ 0x0c66, 0x0c6f,
+ 0x0c78, 0x0c7f,
+ 0x0c82, 0x0c83,
+ 0x0c85, 0x0c8c,
+ 0x0c8e, 0x0c90,
+ 0x0c92, 0x0ca8,
+ 0x0caa, 0x0cb3,
+ 0x0cb5, 0x0cb9,
+ 0x0cbc, 0x0cc4,
+ 0x0cc6, 0x0cc8,
+ 0x0cca, 0x0ccd,
+ 0x0cd5, 0x0cd6,
+ 0x0cde, 0x0cde,
+ 0x0ce0, 0x0ce3,
+ 0x0ce6, 0x0cef,
+ 0x0cf1, 0x0cf2,
+ 0x0d02, 0x0d03,
+ 0x0d05, 0x0d0c,
+ 0x0d0e, 0x0d10,
+ 0x0d12, 0x0d3a,
+ 0x0d3d, 0x0d44,
+ 0x0d46, 0x0d48,
+ 0x0d4a, 0x0d4e,
+ 0x0d57, 0x0d57,
+ 0x0d60, 0x0d63,
+ 0x0d66, 0x0d75,
+ 0x0d79, 0x0d7f,
+ 0x0d82, 0x0d83,
+ 0x0d85, 0x0d96,
+ 0x0d9a, 0x0db1,
+ 0x0db3, 0x0dbb,
+ 0x0dbd, 0x0dbd,
+ 0x0dc0, 0x0dc6,
+ 0x0dca, 0x0dca,
+ 0x0dcf, 0x0dd4,
+ 0x0dd6, 0x0dd6,
+ 0x0dd8, 0x0ddf,
+ 0x0df2, 0x0df4,
+ 0x0e01, 0x0e3a,
+ 0x0e3f, 0x0e5b,
+ 0x0e81, 0x0e82,
+ 0x0e84, 0x0e84,
+ 0x0e87, 0x0e88,
+ 0x0e8a, 0x0e8a,
+ 0x0e8d, 0x0e8d,
+ 0x0e94, 0x0e97,
+ 0x0e99, 0x0e9f,
+ 0x0ea1, 0x0ea3,
+ 0x0ea5, 0x0ea5,
+ 0x0ea7, 0x0ea7,
+ 0x0eaa, 0x0eab,
+ 0x0ead, 0x0eb9,
+ 0x0ebb, 0x0ebd,
+ 0x0ec0, 0x0ec4,
+ 0x0ec6, 0x0ec6,
+ 0x0ec8, 0x0ecd,
+ 0x0ed0, 0x0ed9,
+ 0x0edc, 0x0edd,
+ 0x0f00, 0x0f47,
+ 0x0f49, 0x0f6c,
+ 0x0f71, 0x0f97,
+ 0x0f99, 0x0fbc,
+ 0x0fbe, 0x0fcc,
+ 0x0fce, 0x0fda,
+ 0x1000, 0x10c5,
+ 0x10d0, 0x10fc,
+ 0x1100, 0x1248,
+ 0x124a, 0x124d,
+ 0x1250, 0x1256,
+ 0x1258, 0x1258,
+ 0x125a, 0x125d,
+ 0x1260, 0x1288,
+ 0x128a, 0x128d,
+ 0x1290, 0x12b0,
+ 0x12b2, 0x12b5,
+ 0x12b8, 0x12be,
+ 0x12c0, 0x12c0,
+ 0x12c2, 0x12c5,
+ 0x12c8, 0x12d6,
+ 0x12d8, 0x1310,
+ 0x1312, 0x1315,
+ 0x1318, 0x135a,
+ 0x135d, 0x137c,
+ 0x1380, 0x1399,
+ 0x13a0, 0x13f4,
+ 0x1400, 0x169c,
+ 0x16a0, 0x16f0,
+ 0x1700, 0x170c,
+ 0x170e, 0x1714,
+ 0x1720, 0x1736,
+ 0x1740, 0x1753,
+ 0x1760, 0x176c,
+ 0x176e, 0x1770,
+ 0x1772, 0x1773,
+ 0x1780, 0x17dd,
+ 0x17e0, 0x17e9,
+ 0x17f0, 0x17f9,
+ 0x1800, 0x180e,
+ 0x1810, 0x1819,
+ 0x1820, 0x1877,
+ 0x1880, 0x18aa,
+ 0x18b0, 0x18f5,
+ 0x1900, 0x191c,
+ 0x1920, 0x192b,
+ 0x1930, 0x193b,
+ 0x1940, 0x1940,
+ 0x1944, 0x196d,
+ 0x1970, 0x1974,
+ 0x1980, 0x19ab,
+ 0x19b0, 0x19c9,
+ 0x19d0, 0x19da,
+ 0x19de, 0x1a1b,
+ 0x1a1e, 0x1a5e,
+ 0x1a60, 0x1a7c,
+ 0x1a7f, 0x1a89,
+ 0x1a90, 0x1a99,
+ 0x1aa0, 0x1aad,
+ 0x1b00, 0x1b4b,
+ 0x1b50, 0x1b7c,
+ 0x1b80, 0x1baa,
+ 0x1bae, 0x1bb9,
+ 0x1bc0, 0x1bf3,
+ 0x1bfc, 0x1c37,
+ 0x1c3b, 0x1c49,
+ 0x1c4d, 0x1c7f,
+ 0x1cd0, 0x1cf2,
+ 0x1d00, 0x1de6,
+ 0x1dfc, 0x1f15,
+ 0x1f18, 0x1f1d,
+ 0x1f20, 0x1f45,
+ 0x1f48, 0x1f4d,
+ 0x1f50, 0x1f57,
+ 0x1f59, 0x1f59,
+ 0x1f5b, 0x1f5b,
+ 0x1f5d, 0x1f5d,
+ 0x1f5f, 0x1f7d,
+ 0x1f80, 0x1fb4,
+ 0x1fb6, 0x1fc4,
+ 0x1fc6, 0x1fd3,
+ 0x1fd6, 0x1fdb,
+ 0x1fdd, 0x1fef,
+ 0x1ff2, 0x1ff4,
+ 0x1ff6, 0x1ffe,
+ 0x2000, 0x2064,
+ 0x206a, 0x2071,
+ 0x2074, 0x208e,
+ 0x2090, 0x209c,
+ 0x20a0, 0x20b9,
+ 0x20d0, 0x20f0,
+ 0x2100, 0x2189,
+ 0x2190, 0x23f3,
+ 0x2400, 0x2426,
+ 0x2440, 0x244a,
+ 0x2460, 0x26ff,
+ 0x2701, 0x27ca,
+ 0x27cc, 0x27cc,
+ 0x27ce, 0x2b4c,
+ 0x2b50, 0x2b59,
+ 0x2c00, 0x2c2e,
+ 0x2c30, 0x2c5e,
+ 0x2c60, 0x2cf1,
+ 0x2cf9, 0x2d25,
+ 0x2d30, 0x2d65,
+ 0x2d6f, 0x2d70,
+ 0x2d7f, 0x2d96,
+ 0x2da0, 0x2da6,
+ 0x2da8, 0x2dae,
+ 0x2db0, 0x2db6,
+ 0x2db8, 0x2dbe,
+ 0x2dc0, 0x2dc6,
+ 0x2dc8, 0x2dce,
+ 0x2dd0, 0x2dd6,
+ 0x2dd8, 0x2dde,
+ 0x2de0, 0x2e31,
+ 0x2e80, 0x2e99,
+ 0x2e9b, 0x2ef3,
+ 0x2f00, 0x2fd5,
+ 0x2ff0, 0x2ffb,
+ 0x3000, 0x303f,
+ 0x3041, 0x3096,
+ 0x3099, 0x30ff,
+ 0x3105, 0x312d,
+ 0x3131, 0x318e,
+ 0x3190, 0x31ba,
+ 0x31c0, 0x31e3,
+ 0x31f0, 0x321e,
+ 0x3220, 0x32fe,
+ 0x3300, 0x4db5,
+ 0x4dc0, 0x9fcb,
+ 0xa000, 0xa48c,
+ 0xa490, 0xa4c6,
+ 0xa4d0, 0xa62b,
+ 0xa640, 0xa673,
+ 0xa67c, 0xa697,
+ 0xa6a0, 0xa6f7,
+ 0xa700, 0xa78e,
+ 0xa790, 0xa791,
+ 0xa7a0, 0xa7a9,
+ 0xa7fa, 0xa82b,
+ 0xa830, 0xa839,
+ 0xa840, 0xa877,
+ 0xa880, 0xa8c4,
+ 0xa8ce, 0xa8d9,
+ 0xa8e0, 0xa8fb,
+ 0xa900, 0xa953,
+ 0xa95f, 0xa97c,
+ 0xa980, 0xa9cd,
+ 0xa9cf, 0xa9d9,
+ 0xa9de, 0xa9df,
+ 0xaa00, 0xaa36,
+ 0xaa40, 0xaa4d,
+ 0xaa50, 0xaa59,
+ 0xaa5c, 0xaa7b,
+ 0xaa80, 0xaac2,
+ 0xaadb, 0xaadf,
+ 0xab01, 0xab06,
+ 0xab09, 0xab0e,
+ 0xab11, 0xab16,
+ 0xab20, 0xab26,
+ 0xab28, 0xab2e,
+ 0xabc0, 0xabed,
+ 0xabf0, 0xabf9,
+ 0xac00, 0xd7a3,
+ 0xd7b0, 0xd7c6,
+ 0xd7cb, 0xd7fb,
+ 0xd800, 0xfa2d,
+ 0xfa30, 0xfa6d,
+ 0xfa70, 0xfad9,
+ 0xfb00, 0xfb06,
+ 0xfb13, 0xfb17,
+ 0xfb1d, 0xfb36,
+ 0xfb38, 0xfb3c,
+ 0xfb3e, 0xfb3e,
+ 0xfb40, 0xfb41,
+ 0xfb43, 0xfb44,
+ 0xfb46, 0xfbc1,
+ 0xfbd3, 0xfd3f,
+ 0xfd50, 0xfd8f,
+ 0xfd92, 0xfdc7,
+ 0xfdf0, 0xfdfd,
+ 0xfe00, 0xfe19,
+ 0xfe20, 0xfe26,
+ 0xfe30, 0xfe52,
+ 0xfe54, 0xfe66,
+ 0xfe68, 0xfe6b,
+ 0xfe70, 0xfe74,
+ 0xfe76, 0xfefc,
+ 0xfeff, 0xfeff,
+ 0xff01, 0xffbe,
+ 0xffc2, 0xffc7,
+ 0xffca, 0xffcf,
+ 0xffd2, 0xffd7,
+ 0xffda, 0xffdc,
+ 0xffe0, 0xffe6,
+ 0xffe8, 0xffee,
+ 0xfff9, 0xfffd,
+ 0x10000, 0x1000b,
+ 0x1000d, 0x10026,
+ 0x10028, 0x1003a,
+ 0x1003c, 0x1003d,
+ 0x1003f, 0x1004d,
+ 0x10050, 0x1005d,
+ 0x10080, 0x100fa,
+ 0x10100, 0x10102,
+ 0x10107, 0x10133,
+ 0x10137, 0x1018a,
+ 0x10190, 0x1019b,
+ 0x101d0, 0x101fd,
+ 0x10280, 0x1029c,
+ 0x102a0, 0x102d0,
+ 0x10300, 0x1031e,
+ 0x10320, 0x10323,
+ 0x10330, 0x1034a,
+ 0x10380, 0x1039d,
+ 0x1039f, 0x103c3,
+ 0x103c8, 0x103d5,
+ 0x10400, 0x1049d,
+ 0x104a0, 0x104a9,
+ 0x10800, 0x10805,
+ 0x10808, 0x10808,
+ 0x1080a, 0x10835,
+ 0x10837, 0x10838,
+ 0x1083c, 0x1083c,
+ 0x1083f, 0x10855,
+ 0x10857, 0x1085f,
+ 0x10900, 0x1091b,
+ 0x1091f, 0x10939,
+ 0x1093f, 0x1093f,
+ 0x10a00, 0x10a03,
+ 0x10a05, 0x10a06,
+ 0x10a0c, 0x10a13,
+ 0x10a15, 0x10a17,
+ 0x10a19, 0x10a33,
+ 0x10a38, 0x10a3a,
+ 0x10a3f, 0x10a47,
+ 0x10a50, 0x10a58,
+ 0x10a60, 0x10a7f,
+ 0x10b00, 0x10b35,
+ 0x10b39, 0x10b55,
+ 0x10b58, 0x10b72,
+ 0x10b78, 0x10b7f,
+ 0x10c00, 0x10c48,
+ 0x10e60, 0x10e7e,
+ 0x11000, 0x1104d,
+ 0x11052, 0x1106f,
+ 0x11080, 0x110c1,
+ 0x12000, 0x1236e,
+ 0x12400, 0x12462,
+ 0x12470, 0x12473,
+ 0x13000, 0x1342e,
+ 0x16800, 0x16a38,
+ 0x1b000, 0x1b001,
+ 0x1d000, 0x1d0f5,
+ 0x1d100, 0x1d126,
+ 0x1d129, 0x1d1dd,
+ 0x1d200, 0x1d245,
+ 0x1d300, 0x1d356,
+ 0x1d360, 0x1d371,
+ 0x1d400, 0x1d454,
+ 0x1d456, 0x1d49c,
+ 0x1d49e, 0x1d49f,
+ 0x1d4a2, 0x1d4a2,
+ 0x1d4a5, 0x1d4a6,
+ 0x1d4a9, 0x1d4ac,
+ 0x1d4ae, 0x1d4b9,
+ 0x1d4bb, 0x1d4bb,
+ 0x1d4bd, 0x1d4c3,
+ 0x1d4c5, 0x1d505,
+ 0x1d507, 0x1d50a,
+ 0x1d50d, 0x1d514,
+ 0x1d516, 0x1d51c,
+ 0x1d51e, 0x1d539,
+ 0x1d53b, 0x1d53e,
+ 0x1d540, 0x1d544,
+ 0x1d546, 0x1d546,
+ 0x1d54a, 0x1d550,
+ 0x1d552, 0x1d6a5,
+ 0x1d6a8, 0x1d7cb,
+ 0x1d7ce, 0x1d7ff,
+ 0x1f000, 0x1f02b,
+ 0x1f030, 0x1f093,
+ 0x1f0a0, 0x1f0ae,
+ 0x1f0b1, 0x1f0be,
+ 0x1f0c1, 0x1f0cf,
+ 0x1f0d1, 0x1f0df,
+ 0x1f100, 0x1f10a,
+ 0x1f110, 0x1f12e,
+ 0x1f130, 0x1f169,
+ 0x1f170, 0x1f19a,
+ 0x1f1e6, 0x1f202,
+ 0x1f210, 0x1f23a,
+ 0x1f240, 0x1f248,
+ 0x1f250, 0x1f251,
+ 0x1f300, 0x1f320,
+ 0x1f330, 0x1f335,
+ 0x1f337, 0x1f37c,
+ 0x1f380, 0x1f393,
+ 0x1f3a0, 0x1f3c4,
+ 0x1f3c6, 0x1f3ca,
+ 0x1f3e0, 0x1f3f0,
+ 0x1f400, 0x1f43e,
+ 0x1f440, 0x1f440,
+ 0x1f442, 0x1f4f7,
+ 0x1f4f9, 0x1f4fc,
+ 0x1f500, 0x1f53d,
+ 0x1f550, 0x1f567,
+ 0x1f5fb, 0x1f5ff,
+ 0x1f601, 0x1f610,
+ 0x1f612, 0x1f614,
+ 0x1f616, 0x1f616,
+ 0x1f618, 0x1f618,
+ 0x1f61a, 0x1f61a,
+ 0x1f61c, 0x1f61e,
+ 0x1f620, 0x1f625,
+ 0x1f628, 0x1f62b,
+ 0x1f62d, 0x1f62d,
+ 0x1f630, 0x1f633,
+ 0x1f635, 0x1f640,
+ 0x1f645, 0x1f64f,
+ 0x1f680, 0x1f6c5,
+ 0x1f700, 0x1f773,
+ 0x20000, 0x2a6d6,
+ 0x2a700, 0x2b734,
+ 0x2b740, 0x2b81d,
+ 0x2f800, 0x2fa1d,
+ 0xe0001, 0xe0001,
+ 0xe0020, 0xe007f,
+ 0xe0100, 0xe01ef,
+ 0xf0000, 0xffffd,
+ 0x100000, 0x10fffd,
+}; /* CR_Assigned */
+
+/* 'C': Major Category */
+static const OnigCodePoint CR_C[] = {
+ 20,
+ 0x0000, 0x001f,
+ 0x007f, 0x009f,
+ 0x00ad, 0x00ad,
+ 0x0600, 0x0603,
+ 0x06dd, 0x06dd,
+ 0x070f, 0x070f,
+ 0x17b4, 0x17b5,
+ 0x200b, 0x200f,
+ 0x202a, 0x202e,
+ 0x2060, 0x2064,
+ 0x206a, 0x206f,
+ 0xd800, 0xf8ff,
+ 0xfeff, 0xfeff,
+ 0xfff9, 0xfffb,
+ 0x110bd, 0x110bd,
+ 0x1d173, 0x1d17a,
+ 0xe0001, 0xe0001,
+ 0xe0020, 0xe007f,
+ 0xf0000, 0xffffd,
+ 0x100000, 0x10ffff,
+}; /* CR_C */
+
+/* 'Cc': General Category */
+static const OnigCodePoint CR_Cc[] = {
+ 2,
+ 0x0000, 0x001f,
+ 0x007f, 0x009f,
+}; /* CR_Cc */
+
+/* 'Cf': General Category */
+static const OnigCodePoint CR_Cf[] = {
+ 15,
+ 0x00ad, 0x00ad,
+ 0x0600, 0x0603,
+ 0x06dd, 0x06dd,
+ 0x070f, 0x070f,
+ 0x17b4, 0x17b5,
+ 0x200b, 0x200f,
+ 0x202a, 0x202e,
+ 0x2060, 0x2064,
+ 0x206a, 0x206f,
+ 0xfeff, 0xfeff,
+ 0xfff9, 0xfffb,
+ 0x110bd, 0x110bd,
+ 0x1d173, 0x1d17a,
+ 0xe0001, 0xe0001,
+ 0xe0020, 0xe007f,
+}; /* CR_Cf */
+
+/* 'Cn': General Category */
+static const OnigCodePoint CR_Cn[] = {
+ 501,
+ 0x0378, 0x0379,
+ 0x037f, 0x0383,
+ 0x038b, 0x038b,
+ 0x038d, 0x038d,
+ 0x03a2, 0x03a2,
+ 0x0528, 0x0530,
+ 0x0557, 0x0558,
+ 0x0560, 0x0560,
+ 0x0588, 0x0588,
+ 0x058b, 0x0590,
+ 0x05c8, 0x05cf,
+ 0x05eb, 0x05ef,
+ 0x05f5, 0x05ff,
+ 0x0604, 0x0605,
+ 0x061c, 0x061d,
+ 0x070e, 0x070e,
+ 0x074b, 0x074c,
+ 0x07b2, 0x07bf,
+ 0x07fb, 0x07ff,
+ 0x082e, 0x082f,
+ 0x083f, 0x083f,
+ 0x085c, 0x085d,
+ 0x085f, 0x08ff,
+ 0x0978, 0x0978,
+ 0x0980, 0x0980,
+ 0x0984, 0x0984,
+ 0x098d, 0x098e,
+ 0x0991, 0x0992,
+ 0x09a9, 0x09a9,
+ 0x09b1, 0x09b1,
+ 0x09b3, 0x09b5,
+ 0x09ba, 0x09bb,
+ 0x09c5, 0x09c6,
+ 0x09c9, 0x09ca,
+ 0x09cf, 0x09d6,
+ 0x09d8, 0x09db,
+ 0x09de, 0x09de,
+ 0x09e4, 0x09e5,
+ 0x09fc, 0x0a00,
+ 0x0a04, 0x0a04,
+ 0x0a0b, 0x0a0e,
+ 0x0a11, 0x0a12,
+ 0x0a29, 0x0a29,
+ 0x0a31, 0x0a31,
+ 0x0a34, 0x0a34,
+ 0x0a37, 0x0a37,
+ 0x0a3a, 0x0a3b,
+ 0x0a3d, 0x0a3d,
+ 0x0a43, 0x0a46,
+ 0x0a49, 0x0a4a,
+ 0x0a4e, 0x0a50,
+ 0x0a52, 0x0a58,
+ 0x0a5d, 0x0a5d,
+ 0x0a5f, 0x0a65,
+ 0x0a76, 0x0a80,
+ 0x0a84, 0x0a84,
+ 0x0a8e, 0x0a8e,
+ 0x0a92, 0x0a92,
+ 0x0aa9, 0x0aa9,
+ 0x0ab1, 0x0ab1,
+ 0x0ab4, 0x0ab4,
+ 0x0aba, 0x0abb,
+ 0x0ac6, 0x0ac6,
+ 0x0aca, 0x0aca,
+ 0x0ace, 0x0acf,
+ 0x0ad1, 0x0adf,
+ 0x0ae4, 0x0ae5,
+ 0x0af0, 0x0af0,
+ 0x0af2, 0x0b00,
+ 0x0b04, 0x0b04,
+ 0x0b0d, 0x0b0e,
+ 0x0b11, 0x0b12,
+ 0x0b29, 0x0b29,
+ 0x0b31, 0x0b31,
+ 0x0b34, 0x0b34,
+ 0x0b3a, 0x0b3b,
+ 0x0b45, 0x0b46,
+ 0x0b49, 0x0b4a,
+ 0x0b4e, 0x0b55,
+ 0x0b58, 0x0b5b,
+ 0x0b5e, 0x0b5e,
+ 0x0b64, 0x0b65,
+ 0x0b78, 0x0b81,
+ 0x0b84, 0x0b84,
+ 0x0b8b, 0x0b8d,
+ 0x0b91, 0x0b91,
+ 0x0b96, 0x0b98,
+ 0x0b9b, 0x0b9b,
+ 0x0b9d, 0x0b9d,
+ 0x0ba0, 0x0ba2,
+ 0x0ba5, 0x0ba7,
+ 0x0bab, 0x0bad,
+ 0x0bba, 0x0bbd,
+ 0x0bc3, 0x0bc5,
+ 0x0bc9, 0x0bc9,
+ 0x0bce, 0x0bcf,
+ 0x0bd1, 0x0bd6,
+ 0x0bd8, 0x0be5,
+ 0x0bfb, 0x0c00,
+ 0x0c04, 0x0c04,
+ 0x0c0d, 0x0c0d,
+ 0x0c11, 0x0c11,
+ 0x0c29, 0x0c29,
+ 0x0c34, 0x0c34,
+ 0x0c3a, 0x0c3c,
+ 0x0c45, 0x0c45,
+ 0x0c49, 0x0c49,
+ 0x0c4e, 0x0c54,
+ 0x0c57, 0x0c57,
+ 0x0c5a, 0x0c5f,
+ 0x0c64, 0x0c65,
+ 0x0c70, 0x0c77,
+ 0x0c80, 0x0c81,
+ 0x0c84, 0x0c84,
+ 0x0c8d, 0x0c8d,
+ 0x0c91, 0x0c91,
+ 0x0ca9, 0x0ca9,
+ 0x0cb4, 0x0cb4,
+ 0x0cba, 0x0cbb,
+ 0x0cc5, 0x0cc5,
+ 0x0cc9, 0x0cc9,
+ 0x0cce, 0x0cd4,
+ 0x0cd7, 0x0cdd,
+ 0x0cdf, 0x0cdf,
+ 0x0ce4, 0x0ce5,
+ 0x0cf0, 0x0cf0,
+ 0x0cf3, 0x0d01,
+ 0x0d04, 0x0d04,
+ 0x0d0d, 0x0d0d,
+ 0x0d11, 0x0d11,
+ 0x0d3b, 0x0d3c,
+ 0x0d45, 0x0d45,
+ 0x0d49, 0x0d49,
+ 0x0d4f, 0x0d56,
+ 0x0d58, 0x0d5f,
+ 0x0d64, 0x0d65,
+ 0x0d76, 0x0d78,
+ 0x0d80, 0x0d81,
+ 0x0d84, 0x0d84,
+ 0x0d97, 0x0d99,
+ 0x0db2, 0x0db2,
+ 0x0dbc, 0x0dbc,
+ 0x0dbe, 0x0dbf,
+ 0x0dc7, 0x0dc9,
+ 0x0dcb, 0x0dce,
+ 0x0dd5, 0x0dd5,
+ 0x0dd7, 0x0dd7,
+ 0x0de0, 0x0df1,
+ 0x0df5, 0x0e00,
+ 0x0e3b, 0x0e3e,
+ 0x0e5c, 0x0e80,
+ 0x0e83, 0x0e83,
+ 0x0e85, 0x0e86,
+ 0x0e89, 0x0e89,
+ 0x0e8b, 0x0e8c,
+ 0x0e8e, 0x0e93,
+ 0x0e98, 0x0e98,
+ 0x0ea0, 0x0ea0,
+ 0x0ea4, 0x0ea4,
+ 0x0ea6, 0x0ea6,
+ 0x0ea8, 0x0ea9,
+ 0x0eac, 0x0eac,
+ 0x0eba, 0x0eba,
+ 0x0ebe, 0x0ebf,
+ 0x0ec5, 0x0ec5,
+ 0x0ec7, 0x0ec7,
+ 0x0ece, 0x0ecf,
+ 0x0eda, 0x0edb,
+ 0x0ede, 0x0eff,
+ 0x0f48, 0x0f48,
+ 0x0f6d, 0x0f70,
+ 0x0f98, 0x0f98,
+ 0x0fbd, 0x0fbd,
+ 0x0fcd, 0x0fcd,
+ 0x0fdb, 0x0fff,
+ 0x10c6, 0x10cf,
+ 0x10fd, 0x10ff,
+ 0x1249, 0x1249,
+ 0x124e, 0x124f,
+ 0x1257, 0x1257,
+ 0x1259, 0x1259,
+ 0x125e, 0x125f,
+ 0x1289, 0x1289,
+ 0x128e, 0x128f,
+ 0x12b1, 0x12b1,
+ 0x12b6, 0x12b7,
+ 0x12bf, 0x12bf,
+ 0x12c1, 0x12c1,
+ 0x12c6, 0x12c7,
+ 0x12d7, 0x12d7,
+ 0x1311, 0x1311,
+ 0x1316, 0x1317,
+ 0x135b, 0x135c,
+ 0x137d, 0x137f,
+ 0x139a, 0x139f,
+ 0x13f5, 0x13ff,
+ 0x169d, 0x169f,
+ 0x16f1, 0x16ff,
+ 0x170d, 0x170d,
+ 0x1715, 0x171f,
+ 0x1737, 0x173f,
+ 0x1754, 0x175f,
+ 0x176d, 0x176d,
+ 0x1771, 0x1771,
+ 0x1774, 0x177f,
+ 0x17de, 0x17df,
+ 0x17ea, 0x17ef,
+ 0x17fa, 0x17ff,
+ 0x180f, 0x180f,
+ 0x181a, 0x181f,
+ 0x1878, 0x187f,
+ 0x18ab, 0x18af,
+ 0x18f6, 0x18ff,
+ 0x191d, 0x191f,
+ 0x192c, 0x192f,
+ 0x193c, 0x193f,
+ 0x1941, 0x1943,
+ 0x196e, 0x196f,
+ 0x1975, 0x197f,
+ 0x19ac, 0x19af,
+ 0x19ca, 0x19cf,
+ 0x19db, 0x19dd,
+ 0x1a1c, 0x1a1d,
+ 0x1a5f, 0x1a5f,
+ 0x1a7d, 0x1a7e,
+ 0x1a8a, 0x1a8f,
+ 0x1a9a, 0x1a9f,
+ 0x1aae, 0x1aff,
+ 0x1b4c, 0x1b4f,
+ 0x1b7d, 0x1b7f,
+ 0x1bab, 0x1bad,
+ 0x1bba, 0x1bbf,
+ 0x1bf4, 0x1bfb,
+ 0x1c38, 0x1c3a,
+ 0x1c4a, 0x1c4c,
+ 0x1c80, 0x1ccf,
+ 0x1cf3, 0x1cff,
+ 0x1de7, 0x1dfb,
+ 0x1f16, 0x1f17,
+ 0x1f1e, 0x1f1f,
+ 0x1f46, 0x1f47,
+ 0x1f4e, 0x1f4f,
+ 0x1f58, 0x1f58,
+ 0x1f5a, 0x1f5a,
+ 0x1f5c, 0x1f5c,
+ 0x1f5e, 0x1f5e,
+ 0x1f7e, 0x1f7f,
+ 0x1fb5, 0x1fb5,
+ 0x1fc5, 0x1fc5,
+ 0x1fd4, 0x1fd5,
+ 0x1fdc, 0x1fdc,
+ 0x1ff0, 0x1ff1,
+ 0x1ff5, 0x1ff5,
+ 0x1fff, 0x1fff,
+ 0x2065, 0x2069,
+ 0x2072, 0x2073,
+ 0x208f, 0x208f,
+ 0x209d, 0x209f,
+ 0x20ba, 0x20cf,
+ 0x20f1, 0x20ff,
+ 0x218a, 0x218f,
+ 0x23f4, 0x23ff,
+ 0x2427, 0x243f,
+ 0x244b, 0x245f,
+ 0x2700, 0x2700,
+ 0x27cb, 0x27cb,
+ 0x27cd, 0x27cd,
+ 0x2b4d, 0x2b4f,
+ 0x2b5a, 0x2bff,
+ 0x2c2f, 0x2c2f,
+ 0x2c5f, 0x2c5f,
+ 0x2cf2, 0x2cf8,
+ 0x2d26, 0x2d2f,
+ 0x2d66, 0x2d6e,
+ 0x2d71, 0x2d7e,
+ 0x2d97, 0x2d9f,
+ 0x2da7, 0x2da7,
+ 0x2daf, 0x2daf,
+ 0x2db7, 0x2db7,
+ 0x2dbf, 0x2dbf,
+ 0x2dc7, 0x2dc7,
+ 0x2dcf, 0x2dcf,
+ 0x2dd7, 0x2dd7,
+ 0x2ddf, 0x2ddf,
+ 0x2e32, 0x2e7f,
+ 0x2e9a, 0x2e9a,
+ 0x2ef4, 0x2eff,
+ 0x2fd6, 0x2fef,
+ 0x2ffc, 0x2fff,
+ 0x3040, 0x3040,
+ 0x3097, 0x3098,
+ 0x3100, 0x3104,
+ 0x312e, 0x3130,
+ 0x318f, 0x318f,
+ 0x31bb, 0x31bf,
+ 0x31e4, 0x31ef,
+ 0x321f, 0x321f,
+ 0x32ff, 0x32ff,
+ 0x4db6, 0x4dbf,
+ 0x9fcc, 0x9fff,
+ 0xa48d, 0xa48f,
+ 0xa4c7, 0xa4cf,
+ 0xa62c, 0xa63f,
+ 0xa674, 0xa67b,
+ 0xa698, 0xa69f,
+ 0xa6f8, 0xa6ff,
+ 0xa78f, 0xa78f,
+ 0xa792, 0xa79f,
+ 0xa7aa, 0xa7f9,
+ 0xa82c, 0xa82f,
+ 0xa83a, 0xa83f,
+ 0xa878, 0xa87f,
+ 0xa8c5, 0xa8cd,
+ 0xa8da, 0xa8df,
+ 0xa8fc, 0xa8ff,
+ 0xa954, 0xa95e,
+ 0xa97d, 0xa97f,
+ 0xa9ce, 0xa9ce,
+ 0xa9da, 0xa9dd,
+ 0xa9e0, 0xa9ff,
+ 0xaa37, 0xaa3f,
+ 0xaa4e, 0xaa4f,
+ 0xaa5a, 0xaa5b,
+ 0xaa7c, 0xaa7f,
+ 0xaac3, 0xaada,
+ 0xaae0, 0xab00,
+ 0xab07, 0xab08,
+ 0xab0f, 0xab10,
+ 0xab17, 0xab1f,
+ 0xab27, 0xab27,
+ 0xab2f, 0xabbf,
+ 0xabee, 0xabef,
+ 0xabfa, 0xabff,
+ 0xd7a4, 0xd7af,
+ 0xd7c7, 0xd7ca,
+ 0xd7fc, 0xd7ff,
+ 0xfa2e, 0xfa2f,
+ 0xfa6e, 0xfa6f,
+ 0xfada, 0xfaff,
+ 0xfb07, 0xfb12,
+ 0xfb18, 0xfb1c,
+ 0xfb37, 0xfb37,
+ 0xfb3d, 0xfb3d,
+ 0xfb3f, 0xfb3f,
+ 0xfb42, 0xfb42,
+ 0xfb45, 0xfb45,
+ 0xfbc2, 0xfbd2,
+ 0xfd40, 0xfd4f,
+ 0xfd90, 0xfd91,
+ 0xfdc8, 0xfdef,
+ 0xfdfe, 0xfdff,
+ 0xfe1a, 0xfe1f,
+ 0xfe27, 0xfe2f,
+ 0xfe53, 0xfe53,
+ 0xfe67, 0xfe67,
+ 0xfe6c, 0xfe6f,
+ 0xfe75, 0xfe75,
+ 0xfefd, 0xfefe,
+ 0xff00, 0xff00,
+ 0xffbf, 0xffc1,
+ 0xffc8, 0xffc9,
+ 0xffd0, 0xffd1,
+ 0xffd8, 0xffd9,
+ 0xffdd, 0xffdf,
+ 0xffe7, 0xffe7,
+ 0xffef, 0xfff8,
+ 0xfffe, 0xffff,
+ 0x1000c, 0x1000c,
+ 0x10027, 0x10027,
+ 0x1003b, 0x1003b,
+ 0x1003e, 0x1003e,
+ 0x1004e, 0x1004f,
+ 0x1005e, 0x1007f,
+ 0x100fb, 0x100ff,
+ 0x10103, 0x10106,
+ 0x10134, 0x10136,
+ 0x1018b, 0x1018f,
+ 0x1019c, 0x101cf,
+ 0x101fe, 0x1027f,
+ 0x1029d, 0x1029f,
+ 0x102d1, 0x102ff,
+ 0x1031f, 0x1031f,
+ 0x10324, 0x1032f,
+ 0x1034b, 0x1037f,
+ 0x1039e, 0x1039e,
+ 0x103c4, 0x103c7,
+ 0x103d6, 0x103ff,
+ 0x1049e, 0x1049f,
+ 0x104aa, 0x107ff,
+ 0x10806, 0x10807,
+ 0x10809, 0x10809,
+ 0x10836, 0x10836,
+ 0x10839, 0x1083b,
+ 0x1083d, 0x1083e,
+ 0x10856, 0x10856,
+ 0x10860, 0x108ff,
+ 0x1091c, 0x1091e,
+ 0x1093a, 0x1093e,
+ 0x10940, 0x109ff,
+ 0x10a04, 0x10a04,
+ 0x10a07, 0x10a0b,
+ 0x10a14, 0x10a14,
+ 0x10a18, 0x10a18,
+ 0x10a34, 0x10a37,
+ 0x10a3b, 0x10a3e,
+ 0x10a48, 0x10a4f,
+ 0x10a59, 0x10a5f,
+ 0x10a80, 0x10aff,
+ 0x10b36, 0x10b38,
+ 0x10b56, 0x10b57,
+ 0x10b73, 0x10b77,
+ 0x10b80, 0x10bff,
+ 0x10c49, 0x10e5f,
+ 0x10e7f, 0x10fff,
+ 0x1104e, 0x11051,
+ 0x11070, 0x1107f,
+ 0x110c2, 0x11fff,
+ 0x1236f, 0x123ff,
+ 0x12463, 0x1246f,
+ 0x12474, 0x12fff,
+ 0x1342f, 0x167ff,
+ 0x16a39, 0x1afff,
+ 0x1b002, 0x1cfff,
+ 0x1d0f6, 0x1d0ff,
+ 0x1d127, 0x1d128,
+ 0x1d1de, 0x1d1ff,
+ 0x1d246, 0x1d2ff,
+ 0x1d357, 0x1d35f,
+ 0x1d372, 0x1d3ff,
+ 0x1d455, 0x1d455,
+ 0x1d49d, 0x1d49d,
+ 0x1d4a0, 0x1d4a1,
+ 0x1d4a3, 0x1d4a4,
+ 0x1d4a7, 0x1d4a8,
+ 0x1d4ad, 0x1d4ad,
+ 0x1d4ba, 0x1d4ba,
+ 0x1d4bc, 0x1d4bc,
+ 0x1d4c4, 0x1d4c4,
+ 0x1d506, 0x1d506,
+ 0x1d50b, 0x1d50c,
+ 0x1d515, 0x1d515,
+ 0x1d51d, 0x1d51d,
+ 0x1d53a, 0x1d53a,
+ 0x1d53f, 0x1d53f,
+ 0x1d545, 0x1d545,
+ 0x1d547, 0x1d549,
+ 0x1d551, 0x1d551,
+ 0x1d6a6, 0x1d6a7,
+ 0x1d7cc, 0x1d7cd,
+ 0x1d800, 0x1efff,
+ 0x1f02c, 0x1f02f,
+ 0x1f094, 0x1f09f,
+ 0x1f0af, 0x1f0b0,
+ 0x1f0bf, 0x1f0c0,
+ 0x1f0d0, 0x1f0d0,
+ 0x1f0e0, 0x1f0ff,
+ 0x1f10b, 0x1f10f,
+ 0x1f12f, 0x1f12f,
+ 0x1f16a, 0x1f16f,
+ 0x1f19b, 0x1f1e5,
+ 0x1f203, 0x1f20f,
+ 0x1f23b, 0x1f23f,
+ 0x1f249, 0x1f24f,
+ 0x1f252, 0x1f2ff,
+ 0x1f321, 0x1f32f,
+ 0x1f336, 0x1f336,
+ 0x1f37d, 0x1f37f,
+ 0x1f394, 0x1f39f,
+ 0x1f3c5, 0x1f3c5,
+ 0x1f3cb, 0x1f3df,
+ 0x1f3f1, 0x1f3ff,
+ 0x1f43f, 0x1f43f,
+ 0x1f441, 0x1f441,
+ 0x1f4f8, 0x1f4f8,
+ 0x1f4fd, 0x1f4ff,
+ 0x1f53e, 0x1f54f,
+ 0x1f568, 0x1f5fa,
+ 0x1f600, 0x1f600,
+ 0x1f611, 0x1f611,
+ 0x1f615, 0x1f615,
+ 0x1f617, 0x1f617,
+ 0x1f619, 0x1f619,
+ 0x1f61b, 0x1f61b,
+ 0x1f61f, 0x1f61f,
+ 0x1f626, 0x1f627,
+ 0x1f62c, 0x1f62c,
+ 0x1f62e, 0x1f62f,
+ 0x1f634, 0x1f634,
+ 0x1f641, 0x1f644,
+ 0x1f650, 0x1f67f,
+ 0x1f6c6, 0x1f6ff,
+ 0x1f774, 0x1ffff,
+ 0x2a6d7, 0x2a6ff,
+ 0x2b735, 0x2b73f,
+ 0x2b81e, 0x2f7ff,
+ 0x2fa1e, 0xe0000,
+ 0xe0002, 0xe001f,
+ 0xe0080, 0xe00ff,
+ 0xe01f0, 0xeffff,
+ 0xffffe, 0xfffff,
+ 0x10fffe, 0x10ffff,
+}; /* CR_Cn */
+
+/* 'Co': General Category */
+static const OnigCodePoint CR_Co[] = {
+ 3,
+ 0xe000, 0xf8ff,
+ 0xf0000, 0xffffd,
+ 0x100000, 0x10fffd,
+}; /* CR_Co */
+
+/* 'Cs': General Category */
+static const OnigCodePoint CR_Cs[] = {
+ 1,
+ 0xd800, 0xdfff,
+}; /* CR_Cs */
+
+/* 'L': Major Category */
+static const OnigCodePoint CR_L[] = {
+ 435,
+ 0x0041, 0x005a,
+ 0x0061, 0x007a,
+ 0x00aa, 0x00aa,
+ 0x00b5, 0x00b5,
+ 0x00ba, 0x00ba,
+ 0x00c0, 0x00d6,
+ 0x00d8, 0x00f6,
+ 0x00f8, 0x02c1,
+ 0x02c6, 0x02d1,
+ 0x02e0, 0x02e4,
+ 0x02ec, 0x02ec,
+ 0x02ee, 0x02ee,
+ 0x0370, 0x0374,
+ 0x0376, 0x0377,
+ 0x037a, 0x037d,
+ 0x0386, 0x0386,
+ 0x0388, 0x038a,
+ 0x038c, 0x038c,
+ 0x038e, 0x03a1,
+ 0x03a3, 0x03f5,
+ 0x03f7, 0x0481,
+ 0x048a, 0x0527,
+ 0x0531, 0x0556,
+ 0x0559, 0x0559,
+ 0x0561, 0x0587,
+ 0x05d0, 0x05ea,
+ 0x05f0, 0x05f2,
+ 0x0620, 0x064a,
+ 0x066e, 0x066f,
+ 0x0671, 0x06d3,
+ 0x06d5, 0x06d5,
+ 0x06e5, 0x06e6,
+ 0x06ee, 0x06ef,
+ 0x06fa, 0x06fc,
+ 0x06ff, 0x06ff,
+ 0x0710, 0x0710,
+ 0x0712, 0x072f,
+ 0x074d, 0x07a5,
+ 0x07b1, 0x07b1,
+ 0x07ca, 0x07ea,
+ 0x07f4, 0x07f5,
+ 0x07fa, 0x07fa,
+ 0x0800, 0x0815,
+ 0x081a, 0x081a,
+ 0x0824, 0x0824,
+ 0x0828, 0x0828,
+ 0x0840, 0x0858,
+ 0x0904, 0x0939,
+ 0x093d, 0x093d,
+ 0x0950, 0x0950,
+ 0x0958, 0x0961,
+ 0x0971, 0x0977,
+ 0x0979, 0x097f,
+ 0x0985, 0x098c,
+ 0x098f, 0x0990,
+ 0x0993, 0x09a8,
+ 0x09aa, 0x09b0,
+ 0x09b2, 0x09b2,
+ 0x09b6, 0x09b9,
+ 0x09bd, 0x09bd,
+ 0x09ce, 0x09ce,
+ 0x09dc, 0x09dd,
+ 0x09df, 0x09e1,
+ 0x09f0, 0x09f1,
+ 0x0a05, 0x0a0a,
+ 0x0a0f, 0x0a10,
+ 0x0a13, 0x0a28,
+ 0x0a2a, 0x0a30,
+ 0x0a32, 0x0a33,
+ 0x0a35, 0x0a36,
+ 0x0a38, 0x0a39,
+ 0x0a59, 0x0a5c,
+ 0x0a5e, 0x0a5e,
+ 0x0a72, 0x0a74,
+ 0x0a85, 0x0a8d,
+ 0x0a8f, 0x0a91,
+ 0x0a93, 0x0aa8,
+ 0x0aaa, 0x0ab0,
+ 0x0ab2, 0x0ab3,
+ 0x0ab5, 0x0ab9,
+ 0x0abd, 0x0abd,
+ 0x0ad0, 0x0ad0,
+ 0x0ae0, 0x0ae1,
+ 0x0b05, 0x0b0c,
+ 0x0b0f, 0x0b10,
+ 0x0b13, 0x0b28,
+ 0x0b2a, 0x0b30,
+ 0x0b32, 0x0b33,
+ 0x0b35, 0x0b39,
+ 0x0b3d, 0x0b3d,
+ 0x0b5c, 0x0b5d,
+ 0x0b5f, 0x0b61,
+ 0x0b71, 0x0b71,
+ 0x0b83, 0x0b83,
+ 0x0b85, 0x0b8a,
+ 0x0b8e, 0x0b90,
+ 0x0b92, 0x0b95,
+ 0x0b99, 0x0b9a,
+ 0x0b9c, 0x0b9c,
+ 0x0b9e, 0x0b9f,
+ 0x0ba3, 0x0ba4,
+ 0x0ba8, 0x0baa,
+ 0x0bae, 0x0bb9,
+ 0x0bd0, 0x0bd0,
+ 0x0c05, 0x0c0c,
+ 0x0c0e, 0x0c10,
+ 0x0c12, 0x0c28,
+ 0x0c2a, 0x0c33,
+ 0x0c35, 0x0c39,
+ 0x0c3d, 0x0c3d,
+ 0x0c58, 0x0c59,
+ 0x0c60, 0x0c61,
+ 0x0c85, 0x0c8c,
+ 0x0c8e, 0x0c90,
+ 0x0c92, 0x0ca8,
+ 0x0caa, 0x0cb3,
+ 0x0cb5, 0x0cb9,
+ 0x0cbd, 0x0cbd,
+ 0x0cde, 0x0cde,
+ 0x0ce0, 0x0ce1,
+ 0x0cf1, 0x0cf2,
+ 0x0d05, 0x0d0c,
+ 0x0d0e, 0x0d10,
+ 0x0d12, 0x0d3a,
+ 0x0d3d, 0x0d3d,
+ 0x0d4e, 0x0d4e,
+ 0x0d60, 0x0d61,
+ 0x0d7a, 0x0d7f,
+ 0x0d85, 0x0d96,
+ 0x0d9a, 0x0db1,
+ 0x0db3, 0x0dbb,
+ 0x0dbd, 0x0dbd,
+ 0x0dc0, 0x0dc6,
+ 0x0e01, 0x0e30,
+ 0x0e32, 0x0e33,
+ 0x0e40, 0x0e46,
+ 0x0e81, 0x0e82,
+ 0x0e84, 0x0e84,
+ 0x0e87, 0x0e88,
+ 0x0e8a, 0x0e8a,
+ 0x0e8d, 0x0e8d,
+ 0x0e94, 0x0e97,
+ 0x0e99, 0x0e9f,
+ 0x0ea1, 0x0ea3,
+ 0x0ea5, 0x0ea5,
+ 0x0ea7, 0x0ea7,
+ 0x0eaa, 0x0eab,
+ 0x0ead, 0x0eb0,
+ 0x0eb2, 0x0eb3,
+ 0x0ebd, 0x0ebd,
+ 0x0ec0, 0x0ec4,
+ 0x0ec6, 0x0ec6,
+ 0x0edc, 0x0edd,
+ 0x0f00, 0x0f00,
+ 0x0f40, 0x0f47,
+ 0x0f49, 0x0f6c,
+ 0x0f88, 0x0f8c,
+ 0x1000, 0x102a,
+ 0x103f, 0x103f,
+ 0x1050, 0x1055,
+ 0x105a, 0x105d,
+ 0x1061, 0x1061,
+ 0x1065, 0x1066,
+ 0x106e, 0x1070,
+ 0x1075, 0x1081,
+ 0x108e, 0x108e,
+ 0x10a0, 0x10c5,
+ 0x10d0, 0x10fa,
+ 0x10fc, 0x10fc,
+ 0x1100, 0x1248,
+ 0x124a, 0x124d,
+ 0x1250, 0x1256,
+ 0x1258, 0x1258,
+ 0x125a, 0x125d,
+ 0x1260, 0x1288,
+ 0x128a, 0x128d,
+ 0x1290, 0x12b0,
+ 0x12b2, 0x12b5,
+ 0x12b8, 0x12be,
+ 0x12c0, 0x12c0,
+ 0x12c2, 0x12c5,
+ 0x12c8, 0x12d6,
+ 0x12d8, 0x1310,
+ 0x1312, 0x1315,
+ 0x1318, 0x135a,
+ 0x1380, 0x138f,
+ 0x13a0, 0x13f4,
+ 0x1401, 0x166c,
+ 0x166f, 0x167f,
+ 0x1681, 0x169a,
+ 0x16a0, 0x16ea,
+ 0x1700, 0x170c,
+ 0x170e, 0x1711,
+ 0x1720, 0x1731,
+ 0x1740, 0x1751,
+ 0x1760, 0x176c,
+ 0x176e, 0x1770,
+ 0x1780, 0x17b3,
+ 0x17d7, 0x17d7,
+ 0x17dc, 0x17dc,
+ 0x1820, 0x1877,
+ 0x1880, 0x18a8,
+ 0x18aa, 0x18aa,
+ 0x18b0, 0x18f5,
+ 0x1900, 0x191c,
+ 0x1950, 0x196d,
+ 0x1970, 0x1974,
+ 0x1980, 0x19ab,
+ 0x19c1, 0x19c7,
+ 0x1a00, 0x1a16,
+ 0x1a20, 0x1a54,
+ 0x1aa7, 0x1aa7,
+ 0x1b05, 0x1b33,
+ 0x1b45, 0x1b4b,
+ 0x1b83, 0x1ba0,
+ 0x1bae, 0x1baf,
+ 0x1bc0, 0x1be5,
+ 0x1c00, 0x1c23,
+ 0x1c4d, 0x1c4f,
+ 0x1c5a, 0x1c7d,
+ 0x1ce9, 0x1cec,
+ 0x1cee, 0x1cf1,
+ 0x1d00, 0x1dbf,
+ 0x1e00, 0x1f15,
+ 0x1f18, 0x1f1d,
+ 0x1f20, 0x1f45,
+ 0x1f48, 0x1f4d,
+ 0x1f50, 0x1f57,
+ 0x1f59, 0x1f59,
+ 0x1f5b, 0x1f5b,
+ 0x1f5d, 0x1f5d,
+ 0x1f5f, 0x1f7d,
+ 0x1f80, 0x1fb4,
+ 0x1fb6, 0x1fbc,
+ 0x1fbe, 0x1fbe,
+ 0x1fc2, 0x1fc4,
+ 0x1fc6, 0x1fcc,
+ 0x1fd0, 0x1fd3,
+ 0x1fd6, 0x1fdb,
+ 0x1fe0, 0x1fec,
+ 0x1ff2, 0x1ff4,
+ 0x1ff6, 0x1ffc,
+ 0x2071, 0x2071,
+ 0x207f, 0x207f,
+ 0x2090, 0x209c,
+ 0x2102, 0x2102,
+ 0x2107, 0x2107,
+ 0x210a, 0x2113,
+ 0x2115, 0x2115,
+ 0x2119, 0x211d,
+ 0x2124, 0x2124,
+ 0x2126, 0x2126,
+ 0x2128, 0x2128,
+ 0x212a, 0x212d,
+ 0x212f, 0x2139,
+ 0x213c, 0x213f,
+ 0x2145, 0x2149,
+ 0x214e, 0x214e,
+ 0x2183, 0x2184,
+ 0x2c00, 0x2c2e,
+ 0x2c30, 0x2c5e,
+ 0x2c60, 0x2ce4,
+ 0x2ceb, 0x2cee,
+ 0x2d00, 0x2d25,
+ 0x2d30, 0x2d65,
+ 0x2d6f, 0x2d6f,
+ 0x2d80, 0x2d96,
+ 0x2da0, 0x2da6,
+ 0x2da8, 0x2dae,
+ 0x2db0, 0x2db6,
+ 0x2db8, 0x2dbe,
+ 0x2dc0, 0x2dc6,
+ 0x2dc8, 0x2dce,
+ 0x2dd0, 0x2dd6,
+ 0x2dd8, 0x2dde,
+ 0x2e2f, 0x2e2f,
+ 0x3005, 0x3006,
+ 0x3031, 0x3035,
+ 0x303b, 0x303c,
+ 0x3041, 0x3096,
+ 0x309d, 0x309f,
+ 0x30a1, 0x30fa,
+ 0x30fc, 0x30ff,
+ 0x3105, 0x312d,
+ 0x3131, 0x318e,
+ 0x31a0, 0x31ba,
+ 0x31f0, 0x31ff,
+ 0x3400, 0x4db5,
+ 0x4e00, 0x9fcb,
+ 0xa000, 0xa48c,
+ 0xa4d0, 0xa4fd,
+ 0xa500, 0xa60c,
+ 0xa610, 0xa61f,
+ 0xa62a, 0xa62b,
+ 0xa640, 0xa66e,
+ 0xa67f, 0xa697,
+ 0xa6a0, 0xa6e5,
+ 0xa717, 0xa71f,
+ 0xa722, 0xa788,
+ 0xa78b, 0xa78e,
+ 0xa790, 0xa791,
+ 0xa7a0, 0xa7a9,
+ 0xa7fa, 0xa801,
+ 0xa803, 0xa805,
+ 0xa807, 0xa80a,
+ 0xa80c, 0xa822,
+ 0xa840, 0xa873,
+ 0xa882, 0xa8b3,
+ 0xa8f2, 0xa8f7,
+ 0xa8fb, 0xa8fb,
+ 0xa90a, 0xa925,
+ 0xa930, 0xa946,
+ 0xa960, 0xa97c,
+ 0xa984, 0xa9b2,
+ 0xa9cf, 0xa9cf,
+ 0xaa00, 0xaa28,
+ 0xaa40, 0xaa42,
+ 0xaa44, 0xaa4b,
+ 0xaa60, 0xaa76,
+ 0xaa7a, 0xaa7a,
+ 0xaa80, 0xaaaf,
+ 0xaab1, 0xaab1,
+ 0xaab5, 0xaab6,
+ 0xaab9, 0xaabd,
+ 0xaac0, 0xaac0,
+ 0xaac2, 0xaac2,
+ 0xaadb, 0xaadd,
+ 0xab01, 0xab06,
+ 0xab09, 0xab0e,
+ 0xab11, 0xab16,
+ 0xab20, 0xab26,
+ 0xab28, 0xab2e,
+ 0xabc0, 0xabe2,
+ 0xac00, 0xd7a3,
+ 0xd7b0, 0xd7c6,
+ 0xd7cb, 0xd7fb,
+ 0xf900, 0xfa2d,
+ 0xfa30, 0xfa6d,
+ 0xfa70, 0xfad9,
+ 0xfb00, 0xfb06,
+ 0xfb13, 0xfb17,
+ 0xfb1d, 0xfb1d,
+ 0xfb1f, 0xfb28,
+ 0xfb2a, 0xfb36,
+ 0xfb38, 0xfb3c,
+ 0xfb3e, 0xfb3e,
+ 0xfb40, 0xfb41,
+ 0xfb43, 0xfb44,
+ 0xfb46, 0xfbb1,
+ 0xfbd3, 0xfd3d,
+ 0xfd50, 0xfd8f,
+ 0xfd92, 0xfdc7,
+ 0xfdf0, 0xfdfb,
+ 0xfe70, 0xfe74,
+ 0xfe76, 0xfefc,
+ 0xff21, 0xff3a,
+ 0xff41, 0xff5a,
+ 0xff66, 0xffbe,
+ 0xffc2, 0xffc7,
+ 0xffca, 0xffcf,
+ 0xffd2, 0xffd7,
+ 0xffda, 0xffdc,
+ 0x10000, 0x1000b,
+ 0x1000d, 0x10026,
+ 0x10028, 0x1003a,
+ 0x1003c, 0x1003d,
+ 0x1003f, 0x1004d,
+ 0x10050, 0x1005d,
+ 0x10080, 0x100fa,
+ 0x10280, 0x1029c,
+ 0x102a0, 0x102d0,
+ 0x10300, 0x1031e,
+ 0x10330, 0x10340,
+ 0x10342, 0x10349,
+ 0x10380, 0x1039d,
+ 0x103a0, 0x103c3,
+ 0x103c8, 0x103cf,
+ 0x10400, 0x1049d,
+ 0x10800, 0x10805,
+ 0x10808, 0x10808,
+ 0x1080a, 0x10835,
+ 0x10837, 0x10838,
+ 0x1083c, 0x1083c,
+ 0x1083f, 0x10855,
+ 0x10900, 0x10915,
+ 0x10920, 0x10939,
+ 0x10a00, 0x10a00,
+ 0x10a10, 0x10a13,
+ 0x10a15, 0x10a17,
+ 0x10a19, 0x10a33,
+ 0x10a60, 0x10a7c,
+ 0x10b00, 0x10b35,
+ 0x10b40, 0x10b55,
+ 0x10b60, 0x10b72,
+ 0x10c00, 0x10c48,
+ 0x11003, 0x11037,
+ 0x11083, 0x110af,
+ 0x12000, 0x1236e,
+ 0x13000, 0x1342e,
+ 0x16800, 0x16a38,
+ 0x1b000, 0x1b001,
+ 0x1d400, 0x1d454,
+ 0x1d456, 0x1d49c,
+ 0x1d49e, 0x1d49f,
+ 0x1d4a2, 0x1d4a2,
+ 0x1d4a5, 0x1d4a6,
+ 0x1d4a9, 0x1d4ac,
+ 0x1d4ae, 0x1d4b9,
+ 0x1d4bb, 0x1d4bb,
+ 0x1d4bd, 0x1d4c3,
+ 0x1d4c5, 0x1d505,
+ 0x1d507, 0x1d50a,
+ 0x1d50d, 0x1d514,
+ 0x1d516, 0x1d51c,
+ 0x1d51e, 0x1d539,
+ 0x1d53b, 0x1d53e,
+ 0x1d540, 0x1d544,
+ 0x1d546, 0x1d546,
+ 0x1d54a, 0x1d550,
+ 0x1d552, 0x1d6a5,
+ 0x1d6a8, 0x1d6c0,
+ 0x1d6c2, 0x1d6da,
+ 0x1d6dc, 0x1d6fa,
+ 0x1d6fc, 0x1d714,
+ 0x1d716, 0x1d734,
+ 0x1d736, 0x1d74e,
+ 0x1d750, 0x1d76e,
+ 0x1d770, 0x1d788,
+ 0x1d78a, 0x1d7a8,
+ 0x1d7aa, 0x1d7c2,
+ 0x1d7c4, 0x1d7cb,
+ 0x20000, 0x2a6d6,
+ 0x2a700, 0x2b734,
+ 0x2b740, 0x2b81d,
+ 0x2f800, 0x2fa1d,
+}; /* CR_L */
+
+/* 'Ll': General Category */
+static const OnigCodePoint CR_Ll[] = {
+ 609,
+ 0x0061, 0x007a,
+ 0x00aa, 0x00aa,
+ 0x00b5, 0x00b5,
+ 0x00ba, 0x00ba,
+ 0x00df, 0x00f6,
+ 0x00f8, 0x00ff,
+ 0x0101, 0x0101,
+ 0x0103, 0x0103,
+ 0x0105, 0x0105,
+ 0x0107, 0x0107,
+ 0x0109, 0x0109,
+ 0x010b, 0x010b,
+ 0x010d, 0x010d,
+ 0x010f, 0x010f,
+ 0x0111, 0x0111,
+ 0x0113, 0x0113,
+ 0x0115, 0x0115,
+ 0x0117, 0x0117,
+ 0x0119, 0x0119,
+ 0x011b, 0x011b,
+ 0x011d, 0x011d,
+ 0x011f, 0x011f,
+ 0x0121, 0x0121,
+ 0x0123, 0x0123,
+ 0x0125, 0x0125,
+ 0x0127, 0x0127,
+ 0x0129, 0x0129,
+ 0x012b, 0x012b,
+ 0x012d, 0x012d,
+ 0x012f, 0x012f,
+ 0x0131, 0x0131,
+ 0x0133, 0x0133,
+ 0x0135, 0x0135,
+ 0x0137, 0x0138,
+ 0x013a, 0x013a,
+ 0x013c, 0x013c,
+ 0x013e, 0x013e,
+ 0x0140, 0x0140,
+ 0x0142, 0x0142,
+ 0x0144, 0x0144,
+ 0x0146, 0x0146,
+ 0x0148, 0x0149,
+ 0x014b, 0x014b,
+ 0x014d, 0x014d,
+ 0x014f, 0x014f,
+ 0x0151, 0x0151,
+ 0x0153, 0x0153,
+ 0x0155, 0x0155,
+ 0x0157, 0x0157,
+ 0x0159, 0x0159,
+ 0x015b, 0x015b,
+ 0x015d, 0x015d,
+ 0x015f, 0x015f,
+ 0x0161, 0x0161,
+ 0x0163, 0x0163,
+ 0x0165, 0x0165,
+ 0x0167, 0x0167,
+ 0x0169, 0x0169,
+ 0x016b, 0x016b,
+ 0x016d, 0x016d,
+ 0x016f, 0x016f,
+ 0x0171, 0x0171,
+ 0x0173, 0x0173,
+ 0x0175, 0x0175,
+ 0x0177, 0x0177,
+ 0x017a, 0x017a,
+ 0x017c, 0x017c,
+ 0x017e, 0x0180,
+ 0x0183, 0x0183,
+ 0x0185, 0x0185,
+ 0x0188, 0x0188,
+ 0x018c, 0x018d,
+ 0x0192, 0x0192,
+ 0x0195, 0x0195,
+ 0x0199, 0x019b,
+ 0x019e, 0x019e,
+ 0x01a1, 0x01a1,
+ 0x01a3, 0x01a3,
+ 0x01a5, 0x01a5,
+ 0x01a8, 0x01a8,
+ 0x01aa, 0x01ab,
+ 0x01ad, 0x01ad,
+ 0x01b0, 0x01b0,
+ 0x01b4, 0x01b4,
+ 0x01b6, 0x01b6,
+ 0x01b9, 0x01ba,
+ 0x01bd, 0x01bf,
+ 0x01c6, 0x01c6,
+ 0x01c9, 0x01c9,
+ 0x01cc, 0x01cc,
+ 0x01ce, 0x01ce,
+ 0x01d0, 0x01d0,
+ 0x01d2, 0x01d2,
+ 0x01d4, 0x01d4,
+ 0x01d6, 0x01d6,
+ 0x01d8, 0x01d8,
+ 0x01da, 0x01da,
+ 0x01dc, 0x01dd,
+ 0x01df, 0x01df,
+ 0x01e1, 0x01e1,
+ 0x01e3, 0x01e3,
+ 0x01e5, 0x01e5,
+ 0x01e7, 0x01e7,
+ 0x01e9, 0x01e9,
+ 0x01eb, 0x01eb,
+ 0x01ed, 0x01ed,
+ 0x01ef, 0x01f0,
+ 0x01f3, 0x01f3,
+ 0x01f5, 0x01f5,
+ 0x01f9, 0x01f9,
+ 0x01fb, 0x01fb,
+ 0x01fd, 0x01fd,
+ 0x01ff, 0x01ff,
+ 0x0201, 0x0201,
+ 0x0203, 0x0203,
+ 0x0205, 0x0205,
+ 0x0207, 0x0207,
+ 0x0209, 0x0209,
+ 0x020b, 0x020b,
+ 0x020d, 0x020d,
+ 0x020f, 0x020f,
+ 0x0211, 0x0211,
+ 0x0213, 0x0213,
+ 0x0215, 0x0215,
+ 0x0217, 0x0217,
+ 0x0219, 0x0219,
+ 0x021b, 0x021b,
+ 0x021d, 0x021d,
+ 0x021f, 0x021f,
+ 0x0221, 0x0221,
+ 0x0223, 0x0223,
+ 0x0225, 0x0225,
+ 0x0227, 0x0227,
+ 0x0229, 0x0229,
+ 0x022b, 0x022b,
+ 0x022d, 0x022d,
+ 0x022f, 0x022f,
+ 0x0231, 0x0231,
+ 0x0233, 0x0239,
+ 0x023c, 0x023c,
+ 0x023f, 0x0240,
+ 0x0242, 0x0242,
+ 0x0247, 0x0247,
+ 0x0249, 0x0249,
+ 0x024b, 0x024b,
+ 0x024d, 0x024d,
+ 0x024f, 0x0293,
+ 0x0295, 0x02af,
+ 0x0371, 0x0371,
+ 0x0373, 0x0373,
+ 0x0377, 0x0377,
+ 0x037b, 0x037d,
+ 0x0390, 0x0390,
+ 0x03ac, 0x03ce,
+ 0x03d0, 0x03d1,
+ 0x03d5, 0x03d7,
+ 0x03d9, 0x03d9,
+ 0x03db, 0x03db,
+ 0x03dd, 0x03dd,
+ 0x03df, 0x03df,
+ 0x03e1, 0x03e1,
+ 0x03e3, 0x03e3,
+ 0x03e5, 0x03e5,
+ 0x03e7, 0x03e7,
+ 0x03e9, 0x03e9,
+ 0x03eb, 0x03eb,
+ 0x03ed, 0x03ed,
+ 0x03ef, 0x03f3,
+ 0x03f5, 0x03f5,
+ 0x03f8, 0x03f8,
+ 0x03fb, 0x03fc,
+ 0x0430, 0x045f,
+ 0x0461, 0x0461,
+ 0x0463, 0x0463,
+ 0x0465, 0x0465,
+ 0x0467, 0x0467,
+ 0x0469, 0x0469,
+ 0x046b, 0x046b,
+ 0x046d, 0x046d,
+ 0x046f, 0x046f,
+ 0x0471, 0x0471,
+ 0x0473, 0x0473,
+ 0x0475, 0x0475,
+ 0x0477, 0x0477,
+ 0x0479, 0x0479,
+ 0x047b, 0x047b,
+ 0x047d, 0x047d,
+ 0x047f, 0x047f,
+ 0x0481, 0x0481,
+ 0x048b, 0x048b,
+ 0x048d, 0x048d,
+ 0x048f, 0x048f,
+ 0x0491, 0x0491,
+ 0x0493, 0x0493,
+ 0x0495, 0x0495,
+ 0x0497, 0x0497,
+ 0x0499, 0x0499,
+ 0x049b, 0x049b,
+ 0x049d, 0x049d,
+ 0x049f, 0x049f,
+ 0x04a1, 0x04a1,
+ 0x04a3, 0x04a3,
+ 0x04a5, 0x04a5,
+ 0x04a7, 0x04a7,
+ 0x04a9, 0x04a9,
+ 0x04ab, 0x04ab,
+ 0x04ad, 0x04ad,
+ 0x04af, 0x04af,
+ 0x04b1, 0x04b1,
+ 0x04b3, 0x04b3,
+ 0x04b5, 0x04b5,
+ 0x04b7, 0x04b7,
+ 0x04b9, 0x04b9,
+ 0x04bb, 0x04bb,
+ 0x04bd, 0x04bd,
+ 0x04bf, 0x04bf,
+ 0x04c2, 0x04c2,
+ 0x04c4, 0x04c4,
+ 0x04c6, 0x04c6,
+ 0x04c8, 0x04c8,
+ 0x04ca, 0x04ca,
+ 0x04cc, 0x04cc,
+ 0x04ce, 0x04cf,
+ 0x04d1, 0x04d1,
+ 0x04d3, 0x04d3,
+ 0x04d5, 0x04d5,
+ 0x04d7, 0x04d7,
+ 0x04d9, 0x04d9,
+ 0x04db, 0x04db,
+ 0x04dd, 0x04dd,
+ 0x04df, 0x04df,
+ 0x04e1, 0x04e1,
+ 0x04e3, 0x04e3,
+ 0x04e5, 0x04e5,
+ 0x04e7, 0x04e7,
+ 0x04e9, 0x04e9,
+ 0x04eb, 0x04eb,
+ 0x04ed, 0x04ed,
+ 0x04ef, 0x04ef,
+ 0x04f1, 0x04f1,
+ 0x04f3, 0x04f3,
+ 0x04f5, 0x04f5,
+ 0x04f7, 0x04f7,
+ 0x04f9, 0x04f9,
+ 0x04fb, 0x04fb,
+ 0x04fd, 0x04fd,
+ 0x04ff, 0x04ff,
+ 0x0501, 0x0501,
+ 0x0503, 0x0503,
+ 0x0505, 0x0505,
+ 0x0507, 0x0507,
+ 0x0509, 0x0509,
+ 0x050b, 0x050b,
+ 0x050d, 0x050d,
+ 0x050f, 0x050f,
+ 0x0511, 0x0511,
+ 0x0513, 0x0513,
+ 0x0515, 0x0515,
+ 0x0517, 0x0517,
+ 0x0519, 0x0519,
+ 0x051b, 0x051b,
+ 0x051d, 0x051d,
+ 0x051f, 0x051f,
+ 0x0521, 0x0521,
+ 0x0523, 0x0523,
+ 0x0525, 0x0525,
+ 0x0527, 0x0527,
+ 0x0561, 0x0587,
+ 0x1d00, 0x1d2b,
+ 0x1d62, 0x1d77,
+ 0x1d79, 0x1d9a,
+ 0x1e01, 0x1e01,
+ 0x1e03, 0x1e03,
+ 0x1e05, 0x1e05,
+ 0x1e07, 0x1e07,
+ 0x1e09, 0x1e09,
+ 0x1e0b, 0x1e0b,
+ 0x1e0d, 0x1e0d,
+ 0x1e0f, 0x1e0f,
+ 0x1e11, 0x1e11,
+ 0x1e13, 0x1e13,
+ 0x1e15, 0x1e15,
+ 0x1e17, 0x1e17,
+ 0x1e19, 0x1e19,
+ 0x1e1b, 0x1e1b,
+ 0x1e1d, 0x1e1d,
+ 0x1e1f, 0x1e1f,
+ 0x1e21, 0x1e21,
+ 0x1e23, 0x1e23,
+ 0x1e25, 0x1e25,
+ 0x1e27, 0x1e27,
+ 0x1e29, 0x1e29,
+ 0x1e2b, 0x1e2b,
+ 0x1e2d, 0x1e2d,
+ 0x1e2f, 0x1e2f,
+ 0x1e31, 0x1e31,
+ 0x1e33, 0x1e33,
+ 0x1e35, 0x1e35,
+ 0x1e37, 0x1e37,
+ 0x1e39, 0x1e39,
+ 0x1e3b, 0x1e3b,
+ 0x1e3d, 0x1e3d,
+ 0x1e3f, 0x1e3f,
+ 0x1e41, 0x1e41,
+ 0x1e43, 0x1e43,
+ 0x1e45, 0x1e45,
+ 0x1e47, 0x1e47,
+ 0x1e49, 0x1e49,
+ 0x1e4b, 0x1e4b,
+ 0x1e4d, 0x1e4d,
+ 0x1e4f, 0x1e4f,
+ 0x1e51, 0x1e51,
+ 0x1e53, 0x1e53,
+ 0x1e55, 0x1e55,
+ 0x1e57, 0x1e57,
+ 0x1e59, 0x1e59,
+ 0x1e5b, 0x1e5b,
+ 0x1e5d, 0x1e5d,
+ 0x1e5f, 0x1e5f,
+ 0x1e61, 0x1e61,
+ 0x1e63, 0x1e63,
+ 0x1e65, 0x1e65,
+ 0x1e67, 0x1e67,
+ 0x1e69, 0x1e69,
+ 0x1e6b, 0x1e6b,
+ 0x1e6d, 0x1e6d,
+ 0x1e6f, 0x1e6f,
+ 0x1e71, 0x1e71,
+ 0x1e73, 0x1e73,
+ 0x1e75, 0x1e75,
+ 0x1e77, 0x1e77,
+ 0x1e79, 0x1e79,
+ 0x1e7b, 0x1e7b,
+ 0x1e7d, 0x1e7d,
+ 0x1e7f, 0x1e7f,
+ 0x1e81, 0x1e81,
+ 0x1e83, 0x1e83,
+ 0x1e85, 0x1e85,
+ 0x1e87, 0x1e87,
+ 0x1e89, 0x1e89,
+ 0x1e8b, 0x1e8b,
+ 0x1e8d, 0x1e8d,
+ 0x1e8f, 0x1e8f,
+ 0x1e91, 0x1e91,
+ 0x1e93, 0x1e93,
+ 0x1e95, 0x1e9d,
+ 0x1e9f, 0x1e9f,
+ 0x1ea1, 0x1ea1,
+ 0x1ea3, 0x1ea3,
+ 0x1ea5, 0x1ea5,
+ 0x1ea7, 0x1ea7,
+ 0x1ea9, 0x1ea9,
+ 0x1eab, 0x1eab,
+ 0x1ead, 0x1ead,
+ 0x1eaf, 0x1eaf,
+ 0x1eb1, 0x1eb1,
+ 0x1eb3, 0x1eb3,
+ 0x1eb5, 0x1eb5,
+ 0x1eb7, 0x1eb7,
+ 0x1eb9, 0x1eb9,
+ 0x1ebb, 0x1ebb,
+ 0x1ebd, 0x1ebd,
+ 0x1ebf, 0x1ebf,
+ 0x1ec1, 0x1ec1,
+ 0x1ec3, 0x1ec3,
+ 0x1ec5, 0x1ec5,
+ 0x1ec7, 0x1ec7,
+ 0x1ec9, 0x1ec9,
+ 0x1ecb, 0x1ecb,
+ 0x1ecd, 0x1ecd,
+ 0x1ecf, 0x1ecf,
+ 0x1ed1, 0x1ed1,
+ 0x1ed3, 0x1ed3,
+ 0x1ed5, 0x1ed5,
+ 0x1ed7, 0x1ed7,
+ 0x1ed9, 0x1ed9,
+ 0x1edb, 0x1edb,
+ 0x1edd, 0x1edd,
+ 0x1edf, 0x1edf,
+ 0x1ee1, 0x1ee1,
+ 0x1ee3, 0x1ee3,
+ 0x1ee5, 0x1ee5,
+ 0x1ee7, 0x1ee7,
+ 0x1ee9, 0x1ee9,
+ 0x1eeb, 0x1eeb,
+ 0x1eed, 0x1eed,
+ 0x1eef, 0x1eef,
+ 0x1ef1, 0x1ef1,
+ 0x1ef3, 0x1ef3,
+ 0x1ef5, 0x1ef5,
+ 0x1ef7, 0x1ef7,
+ 0x1ef9, 0x1ef9,
+ 0x1efb, 0x1efb,
+ 0x1efd, 0x1efd,
+ 0x1eff, 0x1f07,
+ 0x1f10, 0x1f15,
+ 0x1f20, 0x1f27,
+ 0x1f30, 0x1f37,
+ 0x1f40, 0x1f45,
+ 0x1f50, 0x1f57,
+ 0x1f60, 0x1f67,
+ 0x1f70, 0x1f7d,
+ 0x1f80, 0x1f87,
+ 0x1f90, 0x1f97,
+ 0x1fa0, 0x1fa7,
+ 0x1fb0, 0x1fb4,
+ 0x1fb6, 0x1fb7,
+ 0x1fbe, 0x1fbe,
+ 0x1fc2, 0x1fc4,
+ 0x1fc6, 0x1fc7,
+ 0x1fd0, 0x1fd3,
+ 0x1fd6, 0x1fd7,
+ 0x1fe0, 0x1fe7,
+ 0x1ff2, 0x1ff4,
+ 0x1ff6, 0x1ff7,
+ 0x210a, 0x210a,
+ 0x210e, 0x210f,
+ 0x2113, 0x2113,
+ 0x212f, 0x212f,
+ 0x2134, 0x2134,
+ 0x2139, 0x2139,
+ 0x213c, 0x213d,
+ 0x2146, 0x2149,
+ 0x214e, 0x214e,
+ 0x2184, 0x2184,
+ 0x2c30, 0x2c5e,
+ 0x2c61, 0x2c61,
+ 0x2c65, 0x2c66,
+ 0x2c68, 0x2c68,
+ 0x2c6a, 0x2c6a,
+ 0x2c6c, 0x2c6c,
+ 0x2c71, 0x2c71,
+ 0x2c73, 0x2c74,
+ 0x2c76, 0x2c7c,
+ 0x2c81, 0x2c81,
+ 0x2c83, 0x2c83,
+ 0x2c85, 0x2c85,
+ 0x2c87, 0x2c87,
+ 0x2c89, 0x2c89,
+ 0x2c8b, 0x2c8b,
+ 0x2c8d, 0x2c8d,
+ 0x2c8f, 0x2c8f,
+ 0x2c91, 0x2c91,
+ 0x2c93, 0x2c93,
+ 0x2c95, 0x2c95,
+ 0x2c97, 0x2c97,
+ 0x2c99, 0x2c99,
+ 0x2c9b, 0x2c9b,
+ 0x2c9d, 0x2c9d,
+ 0x2c9f, 0x2c9f,
+ 0x2ca1, 0x2ca1,
+ 0x2ca3, 0x2ca3,
+ 0x2ca5, 0x2ca5,
+ 0x2ca7, 0x2ca7,
+ 0x2ca9, 0x2ca9,
+ 0x2cab, 0x2cab,
+ 0x2cad, 0x2cad,
+ 0x2caf, 0x2caf,
+ 0x2cb1, 0x2cb1,
+ 0x2cb3, 0x2cb3,
+ 0x2cb5, 0x2cb5,
+ 0x2cb7, 0x2cb7,
+ 0x2cb9, 0x2cb9,
+ 0x2cbb, 0x2cbb,
+ 0x2cbd, 0x2cbd,
+ 0x2cbf, 0x2cbf,
+ 0x2cc1, 0x2cc1,
+ 0x2cc3, 0x2cc3,
+ 0x2cc5, 0x2cc5,
+ 0x2cc7, 0x2cc7,
+ 0x2cc9, 0x2cc9,
+ 0x2ccb, 0x2ccb,
+ 0x2ccd, 0x2ccd,
+ 0x2ccf, 0x2ccf,
+ 0x2cd1, 0x2cd1,
+ 0x2cd3, 0x2cd3,
+ 0x2cd5, 0x2cd5,
+ 0x2cd7, 0x2cd7,
+ 0x2cd9, 0x2cd9,
+ 0x2cdb, 0x2cdb,
+ 0x2cdd, 0x2cdd,
+ 0x2cdf, 0x2cdf,
+ 0x2ce1, 0x2ce1,
+ 0x2ce3, 0x2ce4,
+ 0x2cec, 0x2cec,
+ 0x2cee, 0x2cee,
+ 0x2d00, 0x2d25,
+ 0xa641, 0xa641,
+ 0xa643, 0xa643,
+ 0xa645, 0xa645,
+ 0xa647, 0xa647,
+ 0xa649, 0xa649,
+ 0xa64b, 0xa64b,
+ 0xa64d, 0xa64d,
+ 0xa64f, 0xa64f,
+ 0xa651, 0xa651,
+ 0xa653, 0xa653,
+ 0xa655, 0xa655,
+ 0xa657, 0xa657,
+ 0xa659, 0xa659,
+ 0xa65b, 0xa65b,
+ 0xa65d, 0xa65d,
+ 0xa65f, 0xa65f,
+ 0xa661, 0xa661,
+ 0xa663, 0xa663,
+ 0xa665, 0xa665,
+ 0xa667, 0xa667,
+ 0xa669, 0xa669,
+ 0xa66b, 0xa66b,
+ 0xa66d, 0xa66d,
+ 0xa681, 0xa681,
+ 0xa683, 0xa683,
+ 0xa685, 0xa685,
+ 0xa687, 0xa687,
+ 0xa689, 0xa689,
+ 0xa68b, 0xa68b,
+ 0xa68d, 0xa68d,
+ 0xa68f, 0xa68f,
+ 0xa691, 0xa691,
+ 0xa693, 0xa693,
+ 0xa695, 0xa695,
+ 0xa697, 0xa697,
+ 0xa723, 0xa723,
+ 0xa725, 0xa725,
+ 0xa727, 0xa727,
+ 0xa729, 0xa729,
+ 0xa72b, 0xa72b,
+ 0xa72d, 0xa72d,
+ 0xa72f, 0xa731,
+ 0xa733, 0xa733,
+ 0xa735, 0xa735,
+ 0xa737, 0xa737,
+ 0xa739, 0xa739,
+ 0xa73b, 0xa73b,
+ 0xa73d, 0xa73d,
+ 0xa73f, 0xa73f,
+ 0xa741, 0xa741,
+ 0xa743, 0xa743,
+ 0xa745, 0xa745,
+ 0xa747, 0xa747,
+ 0xa749, 0xa749,
+ 0xa74b, 0xa74b,
+ 0xa74d, 0xa74d,
+ 0xa74f, 0xa74f,
+ 0xa751, 0xa751,
+ 0xa753, 0xa753,
+ 0xa755, 0xa755,
+ 0xa757, 0xa757,
+ 0xa759, 0xa759,
+ 0xa75b, 0xa75b,
+ 0xa75d, 0xa75d,
+ 0xa75f, 0xa75f,
+ 0xa761, 0xa761,
+ 0xa763, 0xa763,
+ 0xa765, 0xa765,
+ 0xa767, 0xa767,
+ 0xa769, 0xa769,
+ 0xa76b, 0xa76b,
+ 0xa76d, 0xa76d,
+ 0xa76f, 0xa76f,
+ 0xa771, 0xa778,
+ 0xa77a, 0xa77a,
+ 0xa77c, 0xa77c,
+ 0xa77f, 0xa77f,
+ 0xa781, 0xa781,
+ 0xa783, 0xa783,
+ 0xa785, 0xa785,
+ 0xa787, 0xa787,
+ 0xa78c, 0xa78c,
+ 0xa78e, 0xa78e,
+ 0xa791, 0xa791,
+ 0xa7a1, 0xa7a1,
+ 0xa7a3, 0xa7a3,
+ 0xa7a5, 0xa7a5,
+ 0xa7a7, 0xa7a7,
+ 0xa7a9, 0xa7a9,
+ 0xa7fa, 0xa7fa,
+ 0xfb00, 0xfb06,
+ 0xfb13, 0xfb17,
+ 0xff41, 0xff5a,
+ 0x10428, 0x1044f,
+ 0x1d41a, 0x1d433,
+ 0x1d44e, 0x1d454,
+ 0x1d456, 0x1d467,
+ 0x1d482, 0x1d49b,
+ 0x1d4b6, 0x1d4b9,
+ 0x1d4bb, 0x1d4bb,
+ 0x1d4bd, 0x1d4c3,
+ 0x1d4c5, 0x1d4cf,
+ 0x1d4ea, 0x1d503,
+ 0x1d51e, 0x1d537,
+ 0x1d552, 0x1d56b,
+ 0x1d586, 0x1d59f,
+ 0x1d5ba, 0x1d5d3,
+ 0x1d5ee, 0x1d607,
+ 0x1d622, 0x1d63b,
+ 0x1d656, 0x1d66f,
+ 0x1d68a, 0x1d6a5,
+ 0x1d6c2, 0x1d6da,
+ 0x1d6dc, 0x1d6e1,
+ 0x1d6fc, 0x1d714,
+ 0x1d716, 0x1d71b,
+ 0x1d736, 0x1d74e,
+ 0x1d750, 0x1d755,
+ 0x1d770, 0x1d788,
+ 0x1d78a, 0x1d78f,
+ 0x1d7aa, 0x1d7c2,
+ 0x1d7c4, 0x1d7c9,
+ 0x1d7cb, 0x1d7cb,
+}; /* CR_Ll */
+
+/* 'Lm': General Category */
+static const OnigCodePoint CR_Lm[] = {
+ 49,
+ 0x02b0, 0x02c1,
+ 0x02c6, 0x02d1,
+ 0x02e0, 0x02e4,
+ 0x02ec, 0x02ec,
+ 0x02ee, 0x02ee,
+ 0x0374, 0x0374,
+ 0x037a, 0x037a,
+ 0x0559, 0x0559,
+ 0x0640, 0x0640,
+ 0x06e5, 0x06e6,
+ 0x07f4, 0x07f5,
+ 0x07fa, 0x07fa,
+ 0x081a, 0x081a,
+ 0x0824, 0x0824,
+ 0x0828, 0x0828,
+ 0x0971, 0x0971,
+ 0x0e46, 0x0e46,
+ 0x0ec6, 0x0ec6,
+ 0x10fc, 0x10fc,
+ 0x17d7, 0x17d7,
+ 0x1843, 0x1843,
+ 0x1aa7, 0x1aa7,
+ 0x1c78, 0x1c7d,
+ 0x1d2c, 0x1d61,
+ 0x1d78, 0x1d78,
+ 0x1d9b, 0x1dbf,
+ 0x2071, 0x2071,
+ 0x207f, 0x207f,
+ 0x2090, 0x209c,
+ 0x2c7d, 0x2c7d,
+ 0x2d6f, 0x2d6f,
+ 0x2e2f, 0x2e2f,
+ 0x3005, 0x3005,
+ 0x3031, 0x3035,
+ 0x303b, 0x303b,
+ 0x309d, 0x309e,
+ 0x30fc, 0x30fe,
+ 0xa015, 0xa015,
+ 0xa4f8, 0xa4fd,
+ 0xa60c, 0xa60c,
+ 0xa67f, 0xa67f,
+ 0xa717, 0xa71f,
+ 0xa770, 0xa770,
+ 0xa788, 0xa788,
+ 0xa9cf, 0xa9cf,
+ 0xaa70, 0xaa70,
+ 0xaadd, 0xaadd,
+ 0xff70, 0xff70,
+ 0xff9e, 0xff9f,
+}; /* CR_Lm */
+
+/* 'Lo': General Category */
+static const OnigCodePoint CR_Lo[] = {
+ 323,
+ 0x01bb, 0x01bb,
+ 0x01c0, 0x01c3,
+ 0x0294, 0x0294,
+ 0x05d0, 0x05ea,
+ 0x05f0, 0x05f2,
+ 0x0620, 0x063f,
+ 0x0641, 0x064a,
+ 0x066e, 0x066f,
+ 0x0671, 0x06d3,
+ 0x06d5, 0x06d5,
+ 0x06ee, 0x06ef,
+ 0x06fa, 0x06fc,
+ 0x06ff, 0x06ff,
+ 0x0710, 0x0710,
+ 0x0712, 0x072f,
+ 0x074d, 0x07a5,
+ 0x07b1, 0x07b1,
+ 0x07ca, 0x07ea,
+ 0x0800, 0x0815,
+ 0x0840, 0x0858,
+ 0x0904, 0x0939,
+ 0x093d, 0x093d,
+ 0x0950, 0x0950,
+ 0x0958, 0x0961,
+ 0x0972, 0x0977,
+ 0x0979, 0x097f,
+ 0x0985, 0x098c,
+ 0x098f, 0x0990,
+ 0x0993, 0x09a8,
+ 0x09aa, 0x09b0,
+ 0x09b2, 0x09b2,
+ 0x09b6, 0x09b9,
+ 0x09bd, 0x09bd,
+ 0x09ce, 0x09ce,
+ 0x09dc, 0x09dd,
+ 0x09df, 0x09e1,
+ 0x09f0, 0x09f1,
+ 0x0a05, 0x0a0a,
+ 0x0a0f, 0x0a10,
+ 0x0a13, 0x0a28,
+ 0x0a2a, 0x0a30,
+ 0x0a32, 0x0a33,
+ 0x0a35, 0x0a36,
+ 0x0a38, 0x0a39,
+ 0x0a59, 0x0a5c,
+ 0x0a5e, 0x0a5e,
+ 0x0a72, 0x0a74,
+ 0x0a85, 0x0a8d,
+ 0x0a8f, 0x0a91,
+ 0x0a93, 0x0aa8,
+ 0x0aaa, 0x0ab0,
+ 0x0ab2, 0x0ab3,
+ 0x0ab5, 0x0ab9,
+ 0x0abd, 0x0abd,
+ 0x0ad0, 0x0ad0,
+ 0x0ae0, 0x0ae1,
+ 0x0b05, 0x0b0c,
+ 0x0b0f, 0x0b10,
+ 0x0b13, 0x0b28,
+ 0x0b2a, 0x0b30,
+ 0x0b32, 0x0b33,
+ 0x0b35, 0x0b39,
+ 0x0b3d, 0x0b3d,
+ 0x0b5c, 0x0b5d,
+ 0x0b5f, 0x0b61,
+ 0x0b71, 0x0b71,
+ 0x0b83, 0x0b83,
+ 0x0b85, 0x0b8a,
+ 0x0b8e, 0x0b90,
+ 0x0b92, 0x0b95,
+ 0x0b99, 0x0b9a,
+ 0x0b9c, 0x0b9c,
+ 0x0b9e, 0x0b9f,
+ 0x0ba3, 0x0ba4,
+ 0x0ba8, 0x0baa,
+ 0x0bae, 0x0bb9,
+ 0x0bd0, 0x0bd0,
+ 0x0c05, 0x0c0c,
+ 0x0c0e, 0x0c10,
+ 0x0c12, 0x0c28,
+ 0x0c2a, 0x0c33,
+ 0x0c35, 0x0c39,
+ 0x0c3d, 0x0c3d,
+ 0x0c58, 0x0c59,
+ 0x0c60, 0x0c61,
+ 0x0c85, 0x0c8c,
+ 0x0c8e, 0x0c90,
+ 0x0c92, 0x0ca8,
+ 0x0caa, 0x0cb3,
+ 0x0cb5, 0x0cb9,
+ 0x0cbd, 0x0cbd,
+ 0x0cde, 0x0cde,
+ 0x0ce0, 0x0ce1,
+ 0x0cf1, 0x0cf2,
+ 0x0d05, 0x0d0c,
+ 0x0d0e, 0x0d10,
+ 0x0d12, 0x0d3a,
+ 0x0d3d, 0x0d3d,
+ 0x0d4e, 0x0d4e,
+ 0x0d60, 0x0d61,
+ 0x0d7a, 0x0d7f,
+ 0x0d85, 0x0d96,
+ 0x0d9a, 0x0db1,
+ 0x0db3, 0x0dbb,
+ 0x0dbd, 0x0dbd,
+ 0x0dc0, 0x0dc6,
+ 0x0e01, 0x0e30,
+ 0x0e32, 0x0e33,
+ 0x0e40, 0x0e45,
+ 0x0e81, 0x0e82,
+ 0x0e84, 0x0e84,
+ 0x0e87, 0x0e88,
+ 0x0e8a, 0x0e8a,
+ 0x0e8d, 0x0e8d,
+ 0x0e94, 0x0e97,
+ 0x0e99, 0x0e9f,
+ 0x0ea1, 0x0ea3,
+ 0x0ea5, 0x0ea5,
+ 0x0ea7, 0x0ea7,
+ 0x0eaa, 0x0eab,
+ 0x0ead, 0x0eb0,
+ 0x0eb2, 0x0eb3,
+ 0x0ebd, 0x0ebd,
+ 0x0ec0, 0x0ec4,
+ 0x0edc, 0x0edd,
+ 0x0f00, 0x0f00,
+ 0x0f40, 0x0f47,
+ 0x0f49, 0x0f6c,
+ 0x0f88, 0x0f8c,
+ 0x1000, 0x102a,
+ 0x103f, 0x103f,
+ 0x1050, 0x1055,
+ 0x105a, 0x105d,
+ 0x1061, 0x1061,
+ 0x1065, 0x1066,
+ 0x106e, 0x1070,
+ 0x1075, 0x1081,
+ 0x108e, 0x108e,
+ 0x10d0, 0x10fa,
+ 0x1100, 0x1248,
+ 0x124a, 0x124d,
+ 0x1250, 0x1256,
+ 0x1258, 0x1258,
+ 0x125a, 0x125d,
+ 0x1260, 0x1288,
+ 0x128a, 0x128d,
+ 0x1290, 0x12b0,
+ 0x12b2, 0x12b5,
+ 0x12b8, 0x12be,
+ 0x12c0, 0x12c0,
+ 0x12c2, 0x12c5,
+ 0x12c8, 0x12d6,
+ 0x12d8, 0x1310,
+ 0x1312, 0x1315,
+ 0x1318, 0x135a,
+ 0x1380, 0x138f,
+ 0x13a0, 0x13f4,
+ 0x1401, 0x166c,
+ 0x166f, 0x167f,
+ 0x1681, 0x169a,
+ 0x16a0, 0x16ea,
+ 0x1700, 0x170c,
+ 0x170e, 0x1711,
+ 0x1720, 0x1731,
+ 0x1740, 0x1751,
+ 0x1760, 0x176c,
+ 0x176e, 0x1770,
+ 0x1780, 0x17b3,
+ 0x17dc, 0x17dc,
+ 0x1820, 0x1842,
+ 0x1844, 0x1877,
+ 0x1880, 0x18a8,
+ 0x18aa, 0x18aa,
+ 0x18b0, 0x18f5,
+ 0x1900, 0x191c,
+ 0x1950, 0x196d,
+ 0x1970, 0x1974,
+ 0x1980, 0x19ab,
+ 0x19c1, 0x19c7,
+ 0x1a00, 0x1a16,
+ 0x1a20, 0x1a54,
+ 0x1b05, 0x1b33,
+ 0x1b45, 0x1b4b,
+ 0x1b83, 0x1ba0,
+ 0x1bae, 0x1baf,
+ 0x1bc0, 0x1be5,
+ 0x1c00, 0x1c23,
+ 0x1c4d, 0x1c4f,
+ 0x1c5a, 0x1c77,
+ 0x1ce9, 0x1cec,
+ 0x1cee, 0x1cf1,
+ 0x2135, 0x2138,
+ 0x2d30, 0x2d65,
+ 0x2d80, 0x2d96,
+ 0x2da0, 0x2da6,
+ 0x2da8, 0x2dae,
+ 0x2db0, 0x2db6,
+ 0x2db8, 0x2dbe,
+ 0x2dc0, 0x2dc6,
+ 0x2dc8, 0x2dce,
+ 0x2dd0, 0x2dd6,
+ 0x2dd8, 0x2dde,
+ 0x3006, 0x3006,
+ 0x303c, 0x303c,
+ 0x3041, 0x3096,
+ 0x309f, 0x309f,
+ 0x30a1, 0x30fa,
+ 0x30ff, 0x30ff,
+ 0x3105, 0x312d,
+ 0x3131, 0x318e,
+ 0x31a0, 0x31ba,
+ 0x31f0, 0x31ff,
+ 0x3400, 0x4db5,
+ 0x4e00, 0x9fcb,
+ 0xa000, 0xa014,
+ 0xa016, 0xa48c,
+ 0xa4d0, 0xa4f7,
+ 0xa500, 0xa60b,
+ 0xa610, 0xa61f,
+ 0xa62a, 0xa62b,
+ 0xa66e, 0xa66e,
+ 0xa6a0, 0xa6e5,
+ 0xa7fb, 0xa801,
+ 0xa803, 0xa805,
+ 0xa807, 0xa80a,
+ 0xa80c, 0xa822,
+ 0xa840, 0xa873,
+ 0xa882, 0xa8b3,
+ 0xa8f2, 0xa8f7,
+ 0xa8fb, 0xa8fb,
+ 0xa90a, 0xa925,
+ 0xa930, 0xa946,
+ 0xa960, 0xa97c,
+ 0xa984, 0xa9b2,
+ 0xaa00, 0xaa28,
+ 0xaa40, 0xaa42,
+ 0xaa44, 0xaa4b,
+ 0xaa60, 0xaa6f,
+ 0xaa71, 0xaa76,
+ 0xaa7a, 0xaa7a,
+ 0xaa80, 0xaaaf,
+ 0xaab1, 0xaab1,
+ 0xaab5, 0xaab6,
+ 0xaab9, 0xaabd,
+ 0xaac0, 0xaac0,
+ 0xaac2, 0xaac2,
+ 0xaadb, 0xaadc,
+ 0xab01, 0xab06,
+ 0xab09, 0xab0e,
+ 0xab11, 0xab16,
+ 0xab20, 0xab26,
+ 0xab28, 0xab2e,
+ 0xabc0, 0xabe2,
+ 0xac00, 0xd7a3,
+ 0xd7b0, 0xd7c6,
+ 0xd7cb, 0xd7fb,
+ 0xf900, 0xfa2d,
+ 0xfa30, 0xfa6d,
+ 0xfa70, 0xfad9,
+ 0xfb1d, 0xfb1d,
+ 0xfb1f, 0xfb28,
+ 0xfb2a, 0xfb36,
+ 0xfb38, 0xfb3c,
+ 0xfb3e, 0xfb3e,
+ 0xfb40, 0xfb41,
+ 0xfb43, 0xfb44,
+ 0xfb46, 0xfbb1,
+ 0xfbd3, 0xfd3d,
+ 0xfd50, 0xfd8f,
+ 0xfd92, 0xfdc7,
+ 0xfdf0, 0xfdfb,
+ 0xfe70, 0xfe74,
+ 0xfe76, 0xfefc,
+ 0xff66, 0xff6f,
+ 0xff71, 0xff9d,
+ 0xffa0, 0xffbe,
+ 0xffc2, 0xffc7,
+ 0xffca, 0xffcf,
+ 0xffd2, 0xffd7,
+ 0xffda, 0xffdc,
+ 0x10000, 0x1000b,
+ 0x1000d, 0x10026,
+ 0x10028, 0x1003a,
+ 0x1003c, 0x1003d,
+ 0x1003f, 0x1004d,
+ 0x10050, 0x1005d,
+ 0x10080, 0x100fa,
+ 0x10280, 0x1029c,
+ 0x102a0, 0x102d0,
+ 0x10300, 0x1031e,
+ 0x10330, 0x10340,
+ 0x10342, 0x10349,
+ 0x10380, 0x1039d,
+ 0x103a0, 0x103c3,
+ 0x103c8, 0x103cf,
+ 0x10450, 0x1049d,
+ 0x10800, 0x10805,
+ 0x10808, 0x10808,
+ 0x1080a, 0x10835,
+ 0x10837, 0x10838,
+ 0x1083c, 0x1083c,
+ 0x1083f, 0x10855,
+ 0x10900, 0x10915,
+ 0x10920, 0x10939,
+ 0x10a00, 0x10a00,
+ 0x10a10, 0x10a13,
+ 0x10a15, 0x10a17,
+ 0x10a19, 0x10a33,
+ 0x10a60, 0x10a7c,
+ 0x10b00, 0x10b35,
+ 0x10b40, 0x10b55,
+ 0x10b60, 0x10b72,
+ 0x10c00, 0x10c48,
+ 0x11003, 0x11037,
+ 0x11083, 0x110af,
+ 0x12000, 0x1236e,
+ 0x13000, 0x1342e,
+ 0x16800, 0x16a38,
+ 0x1b000, 0x1b001,
+ 0x20000, 0x2a6d6,
+ 0x2a700, 0x2b734,
+ 0x2b740, 0x2b81d,
+ 0x2f800, 0x2fa1d,
+}; /* CR_Lo */
+
+/* 'Lt': General Category */
+static const OnigCodePoint CR_Lt[] = {
+ 10,
+ 0x01c5, 0x01c5,
+ 0x01c8, 0x01c8,
+ 0x01cb, 0x01cb,
+ 0x01f2, 0x01f2,
+ 0x1f88, 0x1f8f,
+ 0x1f98, 0x1f9f,
+ 0x1fa8, 0x1faf,
+ 0x1fbc, 0x1fbc,
+ 0x1fcc, 0x1fcc,
+ 0x1ffc, 0x1ffc,
+}; /* CR_Lt */
+
+/* 'Lu': General Category */
+static const OnigCodePoint CR_Lu[] = {
+ 603,
+ 0x0041, 0x005a,
+ 0x00c0, 0x00d6,
+ 0x00d8, 0x00de,
+ 0x0100, 0x0100,
+ 0x0102, 0x0102,
+ 0x0104, 0x0104,
+ 0x0106, 0x0106,
+ 0x0108, 0x0108,
+ 0x010a, 0x010a,
+ 0x010c, 0x010c,
+ 0x010e, 0x010e,
+ 0x0110, 0x0110,
+ 0x0112, 0x0112,
+ 0x0114, 0x0114,
+ 0x0116, 0x0116,
+ 0x0118, 0x0118,
+ 0x011a, 0x011a,
+ 0x011c, 0x011c,
+ 0x011e, 0x011e,
+ 0x0120, 0x0120,
+ 0x0122, 0x0122,
+ 0x0124, 0x0124,
+ 0x0126, 0x0126,
+ 0x0128, 0x0128,
+ 0x012a, 0x012a,
+ 0x012c, 0x012c,
+ 0x012e, 0x012e,
+ 0x0130, 0x0130,
+ 0x0132, 0x0132,
+ 0x0134, 0x0134,
+ 0x0136, 0x0136,
+ 0x0139, 0x0139,
+ 0x013b, 0x013b,
+ 0x013d, 0x013d,
+ 0x013f, 0x013f,
+ 0x0141, 0x0141,
+ 0x0143, 0x0143,
+ 0x0145, 0x0145,
+ 0x0147, 0x0147,
+ 0x014a, 0x014a,
+ 0x014c, 0x014c,
+ 0x014e, 0x014e,
+ 0x0150, 0x0150,
+ 0x0152, 0x0152,
+ 0x0154, 0x0154,
+ 0x0156, 0x0156,
+ 0x0158, 0x0158,
+ 0x015a, 0x015a,
+ 0x015c, 0x015c,
+ 0x015e, 0x015e,
+ 0x0160, 0x0160,
+ 0x0162, 0x0162,
+ 0x0164, 0x0164,
+ 0x0166, 0x0166,
+ 0x0168, 0x0168,
+ 0x016a, 0x016a,
+ 0x016c, 0x016c,
+ 0x016e, 0x016e,
+ 0x0170, 0x0170,
+ 0x0172, 0x0172,
+ 0x0174, 0x0174,
+ 0x0176, 0x0176,
+ 0x0178, 0x0179,
+ 0x017b, 0x017b,
+ 0x017d, 0x017d,
+ 0x0181, 0x0182,
+ 0x0184, 0x0184,
+ 0x0186, 0x0187,
+ 0x0189, 0x018b,
+ 0x018e, 0x0191,
+ 0x0193, 0x0194,
+ 0x0196, 0x0198,
+ 0x019c, 0x019d,
+ 0x019f, 0x01a0,
+ 0x01a2, 0x01a2,
+ 0x01a4, 0x01a4,
+ 0x01a6, 0x01a7,
+ 0x01a9, 0x01a9,
+ 0x01ac, 0x01ac,
+ 0x01ae, 0x01af,
+ 0x01b1, 0x01b3,
+ 0x01b5, 0x01b5,
+ 0x01b7, 0x01b8,
+ 0x01bc, 0x01bc,
+ 0x01c4, 0x01c4,
+ 0x01c7, 0x01c7,
+ 0x01ca, 0x01ca,
+ 0x01cd, 0x01cd,
+ 0x01cf, 0x01cf,
+ 0x01d1, 0x01d1,
+ 0x01d3, 0x01d3,
+ 0x01d5, 0x01d5,
+ 0x01d7, 0x01d7,
+ 0x01d9, 0x01d9,
+ 0x01db, 0x01db,
+ 0x01de, 0x01de,
+ 0x01e0, 0x01e0,
+ 0x01e2, 0x01e2,
+ 0x01e4, 0x01e4,
+ 0x01e6, 0x01e6,
+ 0x01e8, 0x01e8,
+ 0x01ea, 0x01ea,
+ 0x01ec, 0x01ec,
+ 0x01ee, 0x01ee,
+ 0x01f1, 0x01f1,
+ 0x01f4, 0x01f4,
+ 0x01f6, 0x01f8,
+ 0x01fa, 0x01fa,
+ 0x01fc, 0x01fc,
+ 0x01fe, 0x01fe,
+ 0x0200, 0x0200,
+ 0x0202, 0x0202,
+ 0x0204, 0x0204,
+ 0x0206, 0x0206,
+ 0x0208, 0x0208,
+ 0x020a, 0x020a,
+ 0x020c, 0x020c,
+ 0x020e, 0x020e,
+ 0x0210, 0x0210,
+ 0x0212, 0x0212,
+ 0x0214, 0x0214,
+ 0x0216, 0x0216,
+ 0x0218, 0x0218,
+ 0x021a, 0x021a,
+ 0x021c, 0x021c,
+ 0x021e, 0x021e,
+ 0x0220, 0x0220,
+ 0x0222, 0x0222,
+ 0x0224, 0x0224,
+ 0x0226, 0x0226,
+ 0x0228, 0x0228,
+ 0x022a, 0x022a,
+ 0x022c, 0x022c,
+ 0x022e, 0x022e,
+ 0x0230, 0x0230,
+ 0x0232, 0x0232,
+ 0x023a, 0x023b,
+ 0x023d, 0x023e,
+ 0x0241, 0x0241,
+ 0x0243, 0x0246,
+ 0x0248, 0x0248,
+ 0x024a, 0x024a,
+ 0x024c, 0x024c,
+ 0x024e, 0x024e,
+ 0x0370, 0x0370,
+ 0x0372, 0x0372,
+ 0x0376, 0x0376,
+ 0x0386, 0x0386,
+ 0x0388, 0x038a,
+ 0x038c, 0x038c,
+ 0x038e, 0x038f,
+ 0x0391, 0x03a1,
+ 0x03a3, 0x03ab,
+ 0x03cf, 0x03cf,
+ 0x03d2, 0x03d4,
+ 0x03d8, 0x03d8,
+ 0x03da, 0x03da,
+ 0x03dc, 0x03dc,
+ 0x03de, 0x03de,
+ 0x03e0, 0x03e0,
+ 0x03e2, 0x03e2,
+ 0x03e4, 0x03e4,
+ 0x03e6, 0x03e6,
+ 0x03e8, 0x03e8,
+ 0x03ea, 0x03ea,
+ 0x03ec, 0x03ec,
+ 0x03ee, 0x03ee,
+ 0x03f4, 0x03f4,
+ 0x03f7, 0x03f7,
+ 0x03f9, 0x03fa,
+ 0x03fd, 0x042f,
+ 0x0460, 0x0460,
+ 0x0462, 0x0462,
+ 0x0464, 0x0464,
+ 0x0466, 0x0466,
+ 0x0468, 0x0468,
+ 0x046a, 0x046a,
+ 0x046c, 0x046c,
+ 0x046e, 0x046e,
+ 0x0470, 0x0470,
+ 0x0472, 0x0472,
+ 0x0474, 0x0474,
+ 0x0476, 0x0476,
+ 0x0478, 0x0478,
+ 0x047a, 0x047a,
+ 0x047c, 0x047c,
+ 0x047e, 0x047e,
+ 0x0480, 0x0480,
+ 0x048a, 0x048a,
+ 0x048c, 0x048c,
+ 0x048e, 0x048e,
+ 0x0490, 0x0490,
+ 0x0492, 0x0492,
+ 0x0494, 0x0494,
+ 0x0496, 0x0496,
+ 0x0498, 0x0498,
+ 0x049a, 0x049a,
+ 0x049c, 0x049c,
+ 0x049e, 0x049e,
+ 0x04a0, 0x04a0,
+ 0x04a2, 0x04a2,
+ 0x04a4, 0x04a4,
+ 0x04a6, 0x04a6,
+ 0x04a8, 0x04a8,
+ 0x04aa, 0x04aa,
+ 0x04ac, 0x04ac,
+ 0x04ae, 0x04ae,
+ 0x04b0, 0x04b0,
+ 0x04b2, 0x04b2,
+ 0x04b4, 0x04b4,
+ 0x04b6, 0x04b6,
+ 0x04b8, 0x04b8,
+ 0x04ba, 0x04ba,
+ 0x04bc, 0x04bc,
+ 0x04be, 0x04be,
+ 0x04c0, 0x04c1,
+ 0x04c3, 0x04c3,
+ 0x04c5, 0x04c5,
+ 0x04c7, 0x04c7,
+ 0x04c9, 0x04c9,
+ 0x04cb, 0x04cb,
+ 0x04cd, 0x04cd,
+ 0x04d0, 0x04d0,
+ 0x04d2, 0x04d2,
+ 0x04d4, 0x04d4,
+ 0x04d6, 0x04d6,
+ 0x04d8, 0x04d8,
+ 0x04da, 0x04da,
+ 0x04dc, 0x04dc,
+ 0x04de, 0x04de,
+ 0x04e0, 0x04e0,
+ 0x04e2, 0x04e2,
+ 0x04e4, 0x04e4,
+ 0x04e6, 0x04e6,
+ 0x04e8, 0x04e8,
+ 0x04ea, 0x04ea,
+ 0x04ec, 0x04ec,
+ 0x04ee, 0x04ee,
+ 0x04f0, 0x04f0,
+ 0x04f2, 0x04f2,
+ 0x04f4, 0x04f4,
+ 0x04f6, 0x04f6,
+ 0x04f8, 0x04f8,
+ 0x04fa, 0x04fa,
+ 0x04fc, 0x04fc,
+ 0x04fe, 0x04fe,
+ 0x0500, 0x0500,
+ 0x0502, 0x0502,
+ 0x0504, 0x0504,
+ 0x0506, 0x0506,
+ 0x0508, 0x0508,
+ 0x050a, 0x050a,
+ 0x050c, 0x050c,
+ 0x050e, 0x050e,
+ 0x0510, 0x0510,
+ 0x0512, 0x0512,
+ 0x0514, 0x0514,
+ 0x0516, 0x0516,
+ 0x0518, 0x0518,
+ 0x051a, 0x051a,
+ 0x051c, 0x051c,
+ 0x051e, 0x051e,
+ 0x0520, 0x0520,
+ 0x0522, 0x0522,
+ 0x0524, 0x0524,
+ 0x0526, 0x0526,
+ 0x0531, 0x0556,
+ 0x10a0, 0x10c5,
+ 0x1e00, 0x1e00,
+ 0x1e02, 0x1e02,
+ 0x1e04, 0x1e04,
+ 0x1e06, 0x1e06,
+ 0x1e08, 0x1e08,
+ 0x1e0a, 0x1e0a,
+ 0x1e0c, 0x1e0c,
+ 0x1e0e, 0x1e0e,
+ 0x1e10, 0x1e10,
+ 0x1e12, 0x1e12,
+ 0x1e14, 0x1e14,
+ 0x1e16, 0x1e16,
+ 0x1e18, 0x1e18,
+ 0x1e1a, 0x1e1a,
+ 0x1e1c, 0x1e1c,
+ 0x1e1e, 0x1e1e,
+ 0x1e20, 0x1e20,
+ 0x1e22, 0x1e22,
+ 0x1e24, 0x1e24,
+ 0x1e26, 0x1e26,
+ 0x1e28, 0x1e28,
+ 0x1e2a, 0x1e2a,
+ 0x1e2c, 0x1e2c,
+ 0x1e2e, 0x1e2e,
+ 0x1e30, 0x1e30,
+ 0x1e32, 0x1e32,
+ 0x1e34, 0x1e34,
+ 0x1e36, 0x1e36,
+ 0x1e38, 0x1e38,
+ 0x1e3a, 0x1e3a,
+ 0x1e3c, 0x1e3c,
+ 0x1e3e, 0x1e3e,
+ 0x1e40, 0x1e40,
+ 0x1e42, 0x1e42,
+ 0x1e44, 0x1e44,
+ 0x1e46, 0x1e46,
+ 0x1e48, 0x1e48,
+ 0x1e4a, 0x1e4a,
+ 0x1e4c, 0x1e4c,
+ 0x1e4e, 0x1e4e,
+ 0x1e50, 0x1e50,
+ 0x1e52, 0x1e52,
+ 0x1e54, 0x1e54,
+ 0x1e56, 0x1e56,
+ 0x1e58, 0x1e58,
+ 0x1e5a, 0x1e5a,
+ 0x1e5c, 0x1e5c,
+ 0x1e5e, 0x1e5e,
+ 0x1e60, 0x1e60,
+ 0x1e62, 0x1e62,
+ 0x1e64, 0x1e64,
+ 0x1e66, 0x1e66,
+ 0x1e68, 0x1e68,
+ 0x1e6a, 0x1e6a,
+ 0x1e6c, 0x1e6c,
+ 0x1e6e, 0x1e6e,
+ 0x1e70, 0x1e70,
+ 0x1e72, 0x1e72,
+ 0x1e74, 0x1e74,
+ 0x1e76, 0x1e76,
+ 0x1e78, 0x1e78,
+ 0x1e7a, 0x1e7a,
+ 0x1e7c, 0x1e7c,
+ 0x1e7e, 0x1e7e,
+ 0x1e80, 0x1e80,
+ 0x1e82, 0x1e82,
+ 0x1e84, 0x1e84,
+ 0x1e86, 0x1e86,
+ 0x1e88, 0x1e88,
+ 0x1e8a, 0x1e8a,
+ 0x1e8c, 0x1e8c,
+ 0x1e8e, 0x1e8e,
+ 0x1e90, 0x1e90,
+ 0x1e92, 0x1e92,
+ 0x1e94, 0x1e94,
+ 0x1e9e, 0x1e9e,
+ 0x1ea0, 0x1ea0,
+ 0x1ea2, 0x1ea2,
+ 0x1ea4, 0x1ea4,
+ 0x1ea6, 0x1ea6,
+ 0x1ea8, 0x1ea8,
+ 0x1eaa, 0x1eaa,
+ 0x1eac, 0x1eac,
+ 0x1eae, 0x1eae,
+ 0x1eb0, 0x1eb0,
+ 0x1eb2, 0x1eb2,
+ 0x1eb4, 0x1eb4,
+ 0x1eb6, 0x1eb6,
+ 0x1eb8, 0x1eb8,
+ 0x1eba, 0x1eba,
+ 0x1ebc, 0x1ebc,
+ 0x1ebe, 0x1ebe,
+ 0x1ec0, 0x1ec0,
+ 0x1ec2, 0x1ec2,
+ 0x1ec4, 0x1ec4,
+ 0x1ec6, 0x1ec6,
+ 0x1ec8, 0x1ec8,
+ 0x1eca, 0x1eca,
+ 0x1ecc, 0x1ecc,
+ 0x1ece, 0x1ece,
+ 0x1ed0, 0x1ed0,
+ 0x1ed2, 0x1ed2,
+ 0x1ed4, 0x1ed4,
+ 0x1ed6, 0x1ed6,
+ 0x1ed8, 0x1ed8,
+ 0x1eda, 0x1eda,
+ 0x1edc, 0x1edc,
+ 0x1ede, 0x1ede,
+ 0x1ee0, 0x1ee0,
+ 0x1ee2, 0x1ee2,
+ 0x1ee4, 0x1ee4,
+ 0x1ee6, 0x1ee6,
+ 0x1ee8, 0x1ee8,
+ 0x1eea, 0x1eea,
+ 0x1eec, 0x1eec,
+ 0x1eee, 0x1eee,
+ 0x1ef0, 0x1ef0,
+ 0x1ef2, 0x1ef2,
+ 0x1ef4, 0x1ef4,
+ 0x1ef6, 0x1ef6,
+ 0x1ef8, 0x1ef8,
+ 0x1efa, 0x1efa,
+ 0x1efc, 0x1efc,
+ 0x1efe, 0x1efe,
+ 0x1f08, 0x1f0f,
+ 0x1f18, 0x1f1d,
+ 0x1f28, 0x1f2f,
+ 0x1f38, 0x1f3f,
+ 0x1f48, 0x1f4d,
+ 0x1f59, 0x1f59,
+ 0x1f5b, 0x1f5b,
+ 0x1f5d, 0x1f5d,
+ 0x1f5f, 0x1f5f,
+ 0x1f68, 0x1f6f,
+ 0x1fb8, 0x1fbb,
+ 0x1fc8, 0x1fcb,
+ 0x1fd8, 0x1fdb,
+ 0x1fe8, 0x1fec,
+ 0x1ff8, 0x1ffb,
+ 0x2102, 0x2102,
+ 0x2107, 0x2107,
+ 0x210b, 0x210d,
+ 0x2110, 0x2112,
+ 0x2115, 0x2115,
+ 0x2119, 0x211d,
+ 0x2124, 0x2124,
+ 0x2126, 0x2126,
+ 0x2128, 0x2128,
+ 0x212a, 0x212d,
+ 0x2130, 0x2133,
+ 0x213e, 0x213f,
+ 0x2145, 0x2145,
+ 0x2183, 0x2183,
+ 0x2c00, 0x2c2e,
+ 0x2c60, 0x2c60,
+ 0x2c62, 0x2c64,
+ 0x2c67, 0x2c67,
+ 0x2c69, 0x2c69,
+ 0x2c6b, 0x2c6b,
+ 0x2c6d, 0x2c70,
+ 0x2c72, 0x2c72,
+ 0x2c75, 0x2c75,
+ 0x2c7e, 0x2c80,
+ 0x2c82, 0x2c82,
+ 0x2c84, 0x2c84,
+ 0x2c86, 0x2c86,
+ 0x2c88, 0x2c88,
+ 0x2c8a, 0x2c8a,
+ 0x2c8c, 0x2c8c,
+ 0x2c8e, 0x2c8e,
+ 0x2c90, 0x2c90,
+ 0x2c92, 0x2c92,
+ 0x2c94, 0x2c94,
+ 0x2c96, 0x2c96,
+ 0x2c98, 0x2c98,
+ 0x2c9a, 0x2c9a,
+ 0x2c9c, 0x2c9c,
+ 0x2c9e, 0x2c9e,
+ 0x2ca0, 0x2ca0,
+ 0x2ca2, 0x2ca2,
+ 0x2ca4, 0x2ca4,
+ 0x2ca6, 0x2ca6,
+ 0x2ca8, 0x2ca8,
+ 0x2caa, 0x2caa,
+ 0x2cac, 0x2cac,
+ 0x2cae, 0x2cae,
+ 0x2cb0, 0x2cb0,
+ 0x2cb2, 0x2cb2,
+ 0x2cb4, 0x2cb4,
+ 0x2cb6, 0x2cb6,
+ 0x2cb8, 0x2cb8,
+ 0x2cba, 0x2cba,
+ 0x2cbc, 0x2cbc,
+ 0x2cbe, 0x2cbe,
+ 0x2cc0, 0x2cc0,
+ 0x2cc2, 0x2cc2,
+ 0x2cc4, 0x2cc4,
+ 0x2cc6, 0x2cc6,
+ 0x2cc8, 0x2cc8,
+ 0x2cca, 0x2cca,
+ 0x2ccc, 0x2ccc,
+ 0x2cce, 0x2cce,
+ 0x2cd0, 0x2cd0,
+ 0x2cd2, 0x2cd2,
+ 0x2cd4, 0x2cd4,
+ 0x2cd6, 0x2cd6,
+ 0x2cd8, 0x2cd8,
+ 0x2cda, 0x2cda,
+ 0x2cdc, 0x2cdc,
+ 0x2cde, 0x2cde,
+ 0x2ce0, 0x2ce0,
+ 0x2ce2, 0x2ce2,
+ 0x2ceb, 0x2ceb,
+ 0x2ced, 0x2ced,
+ 0xa640, 0xa640,
+ 0xa642, 0xa642,
+ 0xa644, 0xa644,
+ 0xa646, 0xa646,
+ 0xa648, 0xa648,
+ 0xa64a, 0xa64a,
+ 0xa64c, 0xa64c,
+ 0xa64e, 0xa64e,
+ 0xa650, 0xa650,
+ 0xa652, 0xa652,
+ 0xa654, 0xa654,
+ 0xa656, 0xa656,
+ 0xa658, 0xa658,
+ 0xa65a, 0xa65a,
+ 0xa65c, 0xa65c,
+ 0xa65e, 0xa65e,
+ 0xa660, 0xa660,
+ 0xa662, 0xa662,
+ 0xa664, 0xa664,
+ 0xa666, 0xa666,
+ 0xa668, 0xa668,
+ 0xa66a, 0xa66a,
+ 0xa66c, 0xa66c,
+ 0xa680, 0xa680,
+ 0xa682, 0xa682,
+ 0xa684, 0xa684,
+ 0xa686, 0xa686,
+ 0xa688, 0xa688,
+ 0xa68a, 0xa68a,
+ 0xa68c, 0xa68c,
+ 0xa68e, 0xa68e,
+ 0xa690, 0xa690,
+ 0xa692, 0xa692,
+ 0xa694, 0xa694,
+ 0xa696, 0xa696,
+ 0xa722, 0xa722,
+ 0xa724, 0xa724,
+ 0xa726, 0xa726,
+ 0xa728, 0xa728,
+ 0xa72a, 0xa72a,
+ 0xa72c, 0xa72c,
+ 0xa72e, 0xa72e,
+ 0xa732, 0xa732,
+ 0xa734, 0xa734,
+ 0xa736, 0xa736,
+ 0xa738, 0xa738,
+ 0xa73a, 0xa73a,
+ 0xa73c, 0xa73c,
+ 0xa73e, 0xa73e,
+ 0xa740, 0xa740,
+ 0xa742, 0xa742,
+ 0xa744, 0xa744,
+ 0xa746, 0xa746,
+ 0xa748, 0xa748,
+ 0xa74a, 0xa74a,
+ 0xa74c, 0xa74c,
+ 0xa74e, 0xa74e,
+ 0xa750, 0xa750,
+ 0xa752, 0xa752,
+ 0xa754, 0xa754,
+ 0xa756, 0xa756,
+ 0xa758, 0xa758,
+ 0xa75a, 0xa75a,
+ 0xa75c, 0xa75c,
+ 0xa75e, 0xa75e,
+ 0xa760, 0xa760,
+ 0xa762, 0xa762,
+ 0xa764, 0xa764,
+ 0xa766, 0xa766,
+ 0xa768, 0xa768,
+ 0xa76a, 0xa76a,
+ 0xa76c, 0xa76c,
+ 0xa76e, 0xa76e,
+ 0xa779, 0xa779,
+ 0xa77b, 0xa77b,
+ 0xa77d, 0xa77e,
+ 0xa780, 0xa780,
+ 0xa782, 0xa782,
+ 0xa784, 0xa784,
+ 0xa786, 0xa786,
+ 0xa78b, 0xa78b,
+ 0xa78d, 0xa78d,
+ 0xa790, 0xa790,
+ 0xa7a0, 0xa7a0,
+ 0xa7a2, 0xa7a2,
+ 0xa7a4, 0xa7a4,
+ 0xa7a6, 0xa7a6,
+ 0xa7a8, 0xa7a8,
+ 0xff21, 0xff3a,
+ 0x10400, 0x10427,
+ 0x1d400, 0x1d419,
+ 0x1d434, 0x1d44d,
+ 0x1d468, 0x1d481,
+ 0x1d49c, 0x1d49c,
+ 0x1d49e, 0x1d49f,
+ 0x1d4a2, 0x1d4a2,
+ 0x1d4a5, 0x1d4a6,
+ 0x1d4a9, 0x1d4ac,
+ 0x1d4ae, 0x1d4b5,
+ 0x1d4d0, 0x1d4e9,
+ 0x1d504, 0x1d505,
+ 0x1d507, 0x1d50a,
+ 0x1d50d, 0x1d514,
+ 0x1d516, 0x1d51c,
+ 0x1d538, 0x1d539,
+ 0x1d53b, 0x1d53e,
+ 0x1d540, 0x1d544,
+ 0x1d546, 0x1d546,
+ 0x1d54a, 0x1d550,
+ 0x1d56c, 0x1d585,
+ 0x1d5a0, 0x1d5b9,
+ 0x1d5d4, 0x1d5ed,
+ 0x1d608, 0x1d621,
+ 0x1d63c, 0x1d655,
+ 0x1d670, 0x1d689,
+ 0x1d6a8, 0x1d6c0,
+ 0x1d6e2, 0x1d6fa,
+ 0x1d71c, 0x1d734,
+ 0x1d756, 0x1d76e,
+ 0x1d790, 0x1d7a8,
+ 0x1d7ca, 0x1d7ca,
+}; /* CR_Lu */
+
+/* 'M': Major Category */
+static const OnigCodePoint CR_M[] = {
+ 193,
+ 0x0300, 0x036f,
+ 0x0483, 0x0489,
+ 0x0591, 0x05bd,
+ 0x05bf, 0x05bf,
+ 0x05c1, 0x05c2,
+ 0x05c4, 0x05c5,
+ 0x05c7, 0x05c7,
+ 0x0610, 0x061a,
+ 0x064b, 0x065f,
+ 0x0670, 0x0670,
+ 0x06d6, 0x06dc,
+ 0x06df, 0x06e4,
+ 0x06e7, 0x06e8,
+ 0x06ea, 0x06ed,
+ 0x0711, 0x0711,
+ 0x0730, 0x074a,
+ 0x07a6, 0x07b0,
+ 0x07eb, 0x07f3,
+ 0x0816, 0x0819,
+ 0x081b, 0x0823,
+ 0x0825, 0x0827,
+ 0x0829, 0x082d,
+ 0x0859, 0x085b,
+ 0x0900, 0x0903,
+ 0x093a, 0x093c,
+ 0x093e, 0x094f,
+ 0x0951, 0x0957,
+ 0x0962, 0x0963,
+ 0x0981, 0x0983,
+ 0x09bc, 0x09bc,
+ 0x09be, 0x09c4,
+ 0x09c7, 0x09c8,
+ 0x09cb, 0x09cd,
+ 0x09d7, 0x09d7,
+ 0x09e2, 0x09e3,
+ 0x0a01, 0x0a03,
+ 0x0a3c, 0x0a3c,
+ 0x0a3e, 0x0a42,
+ 0x0a47, 0x0a48,
+ 0x0a4b, 0x0a4d,
+ 0x0a51, 0x0a51,
+ 0x0a70, 0x0a71,
+ 0x0a75, 0x0a75,
+ 0x0a81, 0x0a83,
+ 0x0abc, 0x0abc,
+ 0x0abe, 0x0ac5,
+ 0x0ac7, 0x0ac9,
+ 0x0acb, 0x0acd,
+ 0x0ae2, 0x0ae3,
+ 0x0b01, 0x0b03,
+ 0x0b3c, 0x0b3c,
+ 0x0b3e, 0x0b44,
+ 0x0b47, 0x0b48,
+ 0x0b4b, 0x0b4d,
+ 0x0b56, 0x0b57,
+ 0x0b62, 0x0b63,
+ 0x0b82, 0x0b82,
+ 0x0bbe, 0x0bc2,
+ 0x0bc6, 0x0bc8,
+ 0x0bca, 0x0bcd,
+ 0x0bd7, 0x0bd7,
+ 0x0c01, 0x0c03,
+ 0x0c3e, 0x0c44,
+ 0x0c46, 0x0c48,
+ 0x0c4a, 0x0c4d,
+ 0x0c55, 0x0c56,
+ 0x0c62, 0x0c63,
+ 0x0c82, 0x0c83,
+ 0x0cbc, 0x0cbc,
+ 0x0cbe, 0x0cc4,
+ 0x0cc6, 0x0cc8,
+ 0x0cca, 0x0ccd,
+ 0x0cd5, 0x0cd6,
+ 0x0ce2, 0x0ce3,
+ 0x0d02, 0x0d03,
+ 0x0d3e, 0x0d44,
+ 0x0d46, 0x0d48,
+ 0x0d4a, 0x0d4d,
+ 0x0d57, 0x0d57,
+ 0x0d62, 0x0d63,
+ 0x0d82, 0x0d83,
+ 0x0dca, 0x0dca,
+ 0x0dcf, 0x0dd4,
+ 0x0dd6, 0x0dd6,
+ 0x0dd8, 0x0ddf,
+ 0x0df2, 0x0df3,
+ 0x0e31, 0x0e31,
+ 0x0e34, 0x0e3a,
+ 0x0e47, 0x0e4e,
+ 0x0eb1, 0x0eb1,
+ 0x0eb4, 0x0eb9,
+ 0x0ebb, 0x0ebc,
+ 0x0ec8, 0x0ecd,
+ 0x0f18, 0x0f19,
+ 0x0f35, 0x0f35,
+ 0x0f37, 0x0f37,
+ 0x0f39, 0x0f39,
+ 0x0f3e, 0x0f3f,
+ 0x0f71, 0x0f84,
+ 0x0f86, 0x0f87,
+ 0x0f8d, 0x0f97,
+ 0x0f99, 0x0fbc,
+ 0x0fc6, 0x0fc6,
+ 0x102b, 0x103e,
+ 0x1056, 0x1059,
+ 0x105e, 0x1060,
+ 0x1062, 0x1064,
+ 0x1067, 0x106d,
+ 0x1071, 0x1074,
+ 0x1082, 0x108d,
+ 0x108f, 0x108f,
+ 0x109a, 0x109d,
+ 0x135d, 0x135f,
+ 0x1712, 0x1714,
+ 0x1732, 0x1734,
+ 0x1752, 0x1753,
+ 0x1772, 0x1773,
+ 0x17b6, 0x17d3,
+ 0x17dd, 0x17dd,
+ 0x180b, 0x180d,
+ 0x18a9, 0x18a9,
+ 0x1920, 0x192b,
+ 0x1930, 0x193b,
+ 0x19b0, 0x19c0,
+ 0x19c8, 0x19c9,
+ 0x1a17, 0x1a1b,
+ 0x1a55, 0x1a5e,
+ 0x1a60, 0x1a7c,
+ 0x1a7f, 0x1a7f,
+ 0x1b00, 0x1b04,
+ 0x1b34, 0x1b44,
+ 0x1b6b, 0x1b73,
+ 0x1b80, 0x1b82,
+ 0x1ba1, 0x1baa,
+ 0x1be6, 0x1bf3,
+ 0x1c24, 0x1c37,
+ 0x1cd0, 0x1cd2,
+ 0x1cd4, 0x1ce8,
+ 0x1ced, 0x1ced,
+ 0x1cf2, 0x1cf2,
+ 0x1dc0, 0x1de6,
+ 0x1dfc, 0x1dff,
+ 0x20d0, 0x20f0,
+ 0x2cef, 0x2cf1,
+ 0x2d7f, 0x2d7f,
+ 0x2de0, 0x2dff,
+ 0x302a, 0x302f,
+ 0x3099, 0x309a,
+ 0xa66f, 0xa672,
+ 0xa67c, 0xa67d,
+ 0xa6f0, 0xa6f1,
+ 0xa802, 0xa802,
+ 0xa806, 0xa806,
+ 0xa80b, 0xa80b,
+ 0xa823, 0xa827,
+ 0xa880, 0xa881,
+ 0xa8b4, 0xa8c4,
+ 0xa8e0, 0xa8f1,
+ 0xa926, 0xa92d,
+ 0xa947, 0xa953,
+ 0xa980, 0xa983,
+ 0xa9b3, 0xa9c0,
+ 0xaa29, 0xaa36,
+ 0xaa43, 0xaa43,
+ 0xaa4c, 0xaa4d,
+ 0xaa7b, 0xaa7b,
+ 0xaab0, 0xaab0,
+ 0xaab2, 0xaab4,
+ 0xaab7, 0xaab8,
+ 0xaabe, 0xaabf,
+ 0xaac1, 0xaac1,
+ 0xabe3, 0xabea,
+ 0xabec, 0xabed,
+ 0xfb1e, 0xfb1e,
+ 0xfe00, 0xfe0f,
+ 0xfe20, 0xfe26,
+ 0x101fd, 0x101fd,
+ 0x10a01, 0x10a03,
+ 0x10a05, 0x10a06,
+ 0x10a0c, 0x10a0f,
+ 0x10a38, 0x10a3a,
+ 0x10a3f, 0x10a3f,
+ 0x11000, 0x11002,
+ 0x11038, 0x11046,
+ 0x11080, 0x11082,
+ 0x110b0, 0x110ba,
+ 0x1d165, 0x1d169,
+ 0x1d16d, 0x1d172,
+ 0x1d17b, 0x1d182,
+ 0x1d185, 0x1d18b,
+ 0x1d1aa, 0x1d1ad,
+ 0x1d242, 0x1d244,
+ 0xe0100, 0xe01ef,
+}; /* CR_M */
+
+/* 'Mc': General Category */
+static const OnigCodePoint CR_Mc[] = {
+ 113,
+ 0x0903, 0x0903,
+ 0x093b, 0x093b,
+ 0x093e, 0x0940,
+ 0x0949, 0x094c,
+ 0x094e, 0x094f,
+ 0x0982, 0x0983,
+ 0x09be, 0x09c0,
+ 0x09c7, 0x09c8,
+ 0x09cb, 0x09cc,
+ 0x09d7, 0x09d7,
+ 0x0a03, 0x0a03,
+ 0x0a3e, 0x0a40,
+ 0x0a83, 0x0a83,
+ 0x0abe, 0x0ac0,
+ 0x0ac9, 0x0ac9,
+ 0x0acb, 0x0acc,
+ 0x0b02, 0x0b03,
+ 0x0b3e, 0x0b3e,
+ 0x0b40, 0x0b40,
+ 0x0b47, 0x0b48,
+ 0x0b4b, 0x0b4c,
+ 0x0b57, 0x0b57,
+ 0x0bbe, 0x0bbf,
+ 0x0bc1, 0x0bc2,
+ 0x0bc6, 0x0bc8,
+ 0x0bca, 0x0bcc,
+ 0x0bd7, 0x0bd7,
+ 0x0c01, 0x0c03,
+ 0x0c41, 0x0c44,
+ 0x0c82, 0x0c83,
+ 0x0cbe, 0x0cbe,
+ 0x0cc0, 0x0cc4,
+ 0x0cc7, 0x0cc8,
+ 0x0cca, 0x0ccb,
+ 0x0cd5, 0x0cd6,
+ 0x0d02, 0x0d03,
+ 0x0d3e, 0x0d40,
+ 0x0d46, 0x0d48,
+ 0x0d4a, 0x0d4c,
+ 0x0d57, 0x0d57,
+ 0x0d82, 0x0d83,
+ 0x0dcf, 0x0dd1,
+ 0x0dd8, 0x0ddf,
+ 0x0df2, 0x0df3,
+ 0x0f3e, 0x0f3f,
+ 0x0f7f, 0x0f7f,
+ 0x102b, 0x102c,
+ 0x1031, 0x1031,
+ 0x1038, 0x1038,
+ 0x103b, 0x103c,
+ 0x1056, 0x1057,
+ 0x1062, 0x1064,
+ 0x1067, 0x106d,
+ 0x1083, 0x1084,
+ 0x1087, 0x108c,
+ 0x108f, 0x108f,
+ 0x109a, 0x109c,
+ 0x17b6, 0x17b6,
+ 0x17be, 0x17c5,
+ 0x17c7, 0x17c8,
+ 0x1923, 0x1926,
+ 0x1929, 0x192b,
+ 0x1930, 0x1931,
+ 0x1933, 0x1938,
+ 0x19b0, 0x19c0,
+ 0x19c8, 0x19c9,
+ 0x1a19, 0x1a1b,
+ 0x1a55, 0x1a55,
+ 0x1a57, 0x1a57,
+ 0x1a61, 0x1a61,
+ 0x1a63, 0x1a64,
+ 0x1a6d, 0x1a72,
+ 0x1b04, 0x1b04,
+ 0x1b35, 0x1b35,
+ 0x1b3b, 0x1b3b,
+ 0x1b3d, 0x1b41,
+ 0x1b43, 0x1b44,
+ 0x1b82, 0x1b82,
+ 0x1ba1, 0x1ba1,
+ 0x1ba6, 0x1ba7,
+ 0x1baa, 0x1baa,
+ 0x1be7, 0x1be7,
+ 0x1bea, 0x1bec,
+ 0x1bee, 0x1bee,
+ 0x1bf2, 0x1bf3,
+ 0x1c24, 0x1c2b,
+ 0x1c34, 0x1c35,
+ 0x1ce1, 0x1ce1,
+ 0x1cf2, 0x1cf2,
+ 0xa823, 0xa824,
+ 0xa827, 0xa827,
+ 0xa880, 0xa881,
+ 0xa8b4, 0xa8c3,
+ 0xa952, 0xa953,
+ 0xa983, 0xa983,
+ 0xa9b4, 0xa9b5,
+ 0xa9ba, 0xa9bb,
+ 0xa9bd, 0xa9c0,
+ 0xaa2f, 0xaa30,
+ 0xaa33, 0xaa34,
+ 0xaa4d, 0xaa4d,
+ 0xaa7b, 0xaa7b,
+ 0xabe3, 0xabe4,
+ 0xabe6, 0xabe7,
+ 0xabe9, 0xabea,
+ 0xabec, 0xabec,
+ 0x11000, 0x11000,
+ 0x11002, 0x11002,
+ 0x11082, 0x11082,
+ 0x110b0, 0x110b2,
+ 0x110b7, 0x110b8,
+ 0x1d165, 0x1d166,
+ 0x1d16d, 0x1d172,
+}; /* CR_Mc */
+
+/* 'Me': General Category */
+static const OnigCodePoint CR_Me[] = {
+ 4,
+ 0x0488, 0x0489,
+ 0x20dd, 0x20e0,
+ 0x20e2, 0x20e4,
+ 0xa670, 0xa672,
+}; /* CR_Me */
+
+/* 'Mn': General Category */
+static const OnigCodePoint CR_Mn[] = {
+ 203,
+ 0x0300, 0x036f,
+ 0x0483, 0x0487,
+ 0x0591, 0x05bd,
+ 0x05bf, 0x05bf,
+ 0x05c1, 0x05c2,
+ 0x05c4, 0x05c5,
+ 0x05c7, 0x05c7,
+ 0x0610, 0x061a,
+ 0x064b, 0x065f,
+ 0x0670, 0x0670,
+ 0x06d6, 0x06dc,
+ 0x06df, 0x06e4,
+ 0x06e7, 0x06e8,
+ 0x06ea, 0x06ed,
+ 0x0711, 0x0711,
+ 0x0730, 0x074a,
+ 0x07a6, 0x07b0,
+ 0x07eb, 0x07f3,
+ 0x0816, 0x0819,
+ 0x081b, 0x0823,
+ 0x0825, 0x0827,
+ 0x0829, 0x082d,
+ 0x0859, 0x085b,
+ 0x0900, 0x0902,
+ 0x093a, 0x093a,
+ 0x093c, 0x093c,
+ 0x0941, 0x0948,
+ 0x094d, 0x094d,
+ 0x0951, 0x0957,
+ 0x0962, 0x0963,
+ 0x0981, 0x0981,
+ 0x09bc, 0x09bc,
+ 0x09c1, 0x09c4,
+ 0x09cd, 0x09cd,
+ 0x09e2, 0x09e3,
+ 0x0a01, 0x0a02,
+ 0x0a3c, 0x0a3c,
+ 0x0a41, 0x0a42,
+ 0x0a47, 0x0a48,
+ 0x0a4b, 0x0a4d,
+ 0x0a51, 0x0a51,
+ 0x0a70, 0x0a71,
+ 0x0a75, 0x0a75,
+ 0x0a81, 0x0a82,
+ 0x0abc, 0x0abc,
+ 0x0ac1, 0x0ac5,
+ 0x0ac7, 0x0ac8,
+ 0x0acd, 0x0acd,
+ 0x0ae2, 0x0ae3,
+ 0x0b01, 0x0b01,
+ 0x0b3c, 0x0b3c,
+ 0x0b3f, 0x0b3f,
+ 0x0b41, 0x0b44,
+ 0x0b4d, 0x0b4d,
+ 0x0b56, 0x0b56,
+ 0x0b62, 0x0b63,
+ 0x0b82, 0x0b82,
+ 0x0bc0, 0x0bc0,
+ 0x0bcd, 0x0bcd,
+ 0x0c3e, 0x0c40,
+ 0x0c46, 0x0c48,
+ 0x0c4a, 0x0c4d,
+ 0x0c55, 0x0c56,
+ 0x0c62, 0x0c63,
+ 0x0cbc, 0x0cbc,
+ 0x0cbf, 0x0cbf,
+ 0x0cc6, 0x0cc6,
+ 0x0ccc, 0x0ccd,
+ 0x0ce2, 0x0ce3,
+ 0x0d41, 0x0d44,
+ 0x0d4d, 0x0d4d,
+ 0x0d62, 0x0d63,
+ 0x0dca, 0x0dca,
+ 0x0dd2, 0x0dd4,
+ 0x0dd6, 0x0dd6,
+ 0x0e31, 0x0e31,
+ 0x0e34, 0x0e3a,
+ 0x0e47, 0x0e4e,
+ 0x0eb1, 0x0eb1,
+ 0x0eb4, 0x0eb9,
+ 0x0ebb, 0x0ebc,
+ 0x0ec8, 0x0ecd,
+ 0x0f18, 0x0f19,
+ 0x0f35, 0x0f35,
+ 0x0f37, 0x0f37,
+ 0x0f39, 0x0f39,
+ 0x0f71, 0x0f7e,
+ 0x0f80, 0x0f84,
+ 0x0f86, 0x0f87,
+ 0x0f8d, 0x0f97,
+ 0x0f99, 0x0fbc,
+ 0x0fc6, 0x0fc6,
+ 0x102d, 0x1030,
+ 0x1032, 0x1037,
+ 0x1039, 0x103a,
+ 0x103d, 0x103e,
+ 0x1058, 0x1059,
+ 0x105e, 0x1060,
+ 0x1071, 0x1074,
+ 0x1082, 0x1082,
+ 0x1085, 0x1086,
+ 0x108d, 0x108d,
+ 0x109d, 0x109d,
+ 0x135d, 0x135f,
+ 0x1712, 0x1714,
+ 0x1732, 0x1734,
+ 0x1752, 0x1753,
+ 0x1772, 0x1773,
+ 0x17b7, 0x17bd,
+ 0x17c6, 0x17c6,
+ 0x17c9, 0x17d3,
+ 0x17dd, 0x17dd,
+ 0x180b, 0x180d,
+ 0x18a9, 0x18a9,
+ 0x1920, 0x1922,
+ 0x1927, 0x1928,
+ 0x1932, 0x1932,
+ 0x1939, 0x193b,
+ 0x1a17, 0x1a18,
+ 0x1a56, 0x1a56,
+ 0x1a58, 0x1a5e,
+ 0x1a60, 0x1a60,
+ 0x1a62, 0x1a62,
+ 0x1a65, 0x1a6c,
+ 0x1a73, 0x1a7c,
+ 0x1a7f, 0x1a7f,
+ 0x1b00, 0x1b03,
+ 0x1b34, 0x1b34,
+ 0x1b36, 0x1b3a,
+ 0x1b3c, 0x1b3c,
+ 0x1b42, 0x1b42,
+ 0x1b6b, 0x1b73,
+ 0x1b80, 0x1b81,
+ 0x1ba2, 0x1ba5,
+ 0x1ba8, 0x1ba9,
+ 0x1be6, 0x1be6,
+ 0x1be8, 0x1be9,
+ 0x1bed, 0x1bed,
+ 0x1bef, 0x1bf1,
+ 0x1c2c, 0x1c33,
+ 0x1c36, 0x1c37,
+ 0x1cd0, 0x1cd2,
+ 0x1cd4, 0x1ce0,
+ 0x1ce2, 0x1ce8,
+ 0x1ced, 0x1ced,
+ 0x1dc0, 0x1de6,
+ 0x1dfc, 0x1dff,
+ 0x20d0, 0x20dc,
+ 0x20e1, 0x20e1,
+ 0x20e5, 0x20f0,
+ 0x2cef, 0x2cf1,
+ 0x2d7f, 0x2d7f,
+ 0x2de0, 0x2dff,
+ 0x302a, 0x302f,
+ 0x3099, 0x309a,
+ 0xa66f, 0xa66f,
+ 0xa67c, 0xa67d,
+ 0xa6f0, 0xa6f1,
+ 0xa802, 0xa802,
+ 0xa806, 0xa806,
+ 0xa80b, 0xa80b,
+ 0xa825, 0xa826,
+ 0xa8c4, 0xa8c4,
+ 0xa8e0, 0xa8f1,
+ 0xa926, 0xa92d,
+ 0xa947, 0xa951,
+ 0xa980, 0xa982,
+ 0xa9b3, 0xa9b3,
+ 0xa9b6, 0xa9b9,
+ 0xa9bc, 0xa9bc,
+ 0xaa29, 0xaa2e,
+ 0xaa31, 0xaa32,
+ 0xaa35, 0xaa36,
+ 0xaa43, 0xaa43,
+ 0xaa4c, 0xaa4c,
+ 0xaab0, 0xaab0,
+ 0xaab2, 0xaab4,
+ 0xaab7, 0xaab8,
+ 0xaabe, 0xaabf,
+ 0xaac1, 0xaac1,
+ 0xabe5, 0xabe5,
+ 0xabe8, 0xabe8,
+ 0xabed, 0xabed,
+ 0xfb1e, 0xfb1e,
+ 0xfe00, 0xfe0f,
+ 0xfe20, 0xfe26,
+ 0x101fd, 0x101fd,
+ 0x10a01, 0x10a03,
+ 0x10a05, 0x10a06,
+ 0x10a0c, 0x10a0f,
+ 0x10a38, 0x10a3a,
+ 0x10a3f, 0x10a3f,
+ 0x11001, 0x11001,
+ 0x11038, 0x11046,
+ 0x11080, 0x11081,
+ 0x110b3, 0x110b6,
+ 0x110b9, 0x110ba,
+ 0x1d167, 0x1d169,
+ 0x1d17b, 0x1d182,
+ 0x1d185, 0x1d18b,
+ 0x1d1aa, 0x1d1ad,
+ 0x1d242, 0x1d244,
+ 0xe0100, 0xe01ef,
+}; /* CR_Mn */
+
+/* 'N': Major Category */
+static const OnigCodePoint CR_N[] = {
+ 83,
+ 0x0030, 0x0039,
+ 0x00b2, 0x00b3,
+ 0x00b9, 0x00b9,
+ 0x00bc, 0x00be,
+ 0x0660, 0x0669,
+ 0x06f0, 0x06f9,
+ 0x07c0, 0x07c9,
+ 0x0966, 0x096f,
+ 0x09e6, 0x09ef,
+ 0x09f4, 0x09f9,
+ 0x0a66, 0x0a6f,
+ 0x0ae6, 0x0aef,
+ 0x0b66, 0x0b6f,
+ 0x0b72, 0x0b77,
+ 0x0be6, 0x0bf2,
+ 0x0c66, 0x0c6f,
+ 0x0c78, 0x0c7e,
+ 0x0ce6, 0x0cef,
+ 0x0d66, 0x0d75,
+ 0x0e50, 0x0e59,
+ 0x0ed0, 0x0ed9,
+ 0x0f20, 0x0f33,
+ 0x1040, 0x1049,
+ 0x1090, 0x1099,
+ 0x1369, 0x137c,
+ 0x16ee, 0x16f0,
+ 0x17e0, 0x17e9,
+ 0x17f0, 0x17f9,
+ 0x1810, 0x1819,
+ 0x1946, 0x194f,
+ 0x19d0, 0x19da,
+ 0x1a80, 0x1a89,
+ 0x1a90, 0x1a99,
+ 0x1b50, 0x1b59,
+ 0x1bb0, 0x1bb9,
+ 0x1c40, 0x1c49,
+ 0x1c50, 0x1c59,
+ 0x2070, 0x2070,
+ 0x2074, 0x2079,
+ 0x2080, 0x2089,
+ 0x2150, 0x2182,
+ 0x2185, 0x2189,
+ 0x2460, 0x249b,
+ 0x24ea, 0x24ff,
+ 0x2776, 0x2793,
+ 0x2cfd, 0x2cfd,
+ 0x3007, 0x3007,
+ 0x3021, 0x3029,
+ 0x3038, 0x303a,
+ 0x3192, 0x3195,
+ 0x3220, 0x3229,
+ 0x3251, 0x325f,
+ 0x3280, 0x3289,
+ 0x32b1, 0x32bf,
+ 0xa620, 0xa629,
+ 0xa6e6, 0xa6ef,
+ 0xa830, 0xa835,
+ 0xa8d0, 0xa8d9,
+ 0xa900, 0xa909,
+ 0xa9d0, 0xa9d9,
+ 0xaa50, 0xaa59,
+ 0xabf0, 0xabf9,
+ 0xff10, 0xff19,
+ 0x10107, 0x10133,
+ 0x10140, 0x10178,
+ 0x1018a, 0x1018a,
+ 0x10320, 0x10323,
+ 0x10341, 0x10341,
+ 0x1034a, 0x1034a,
+ 0x103d1, 0x103d5,
+ 0x104a0, 0x104a9,
+ 0x10858, 0x1085f,
+ 0x10916, 0x1091b,
+ 0x10a40, 0x10a47,
+ 0x10a7d, 0x10a7e,
+ 0x10b58, 0x10b5f,
+ 0x10b78, 0x10b7f,
+ 0x10e60, 0x10e7e,
+ 0x11052, 0x1106f,
+ 0x12400, 0x12462,
+ 0x1d360, 0x1d371,
+ 0x1d7ce, 0x1d7ff,
+ 0x1f100, 0x1f10a,
+}; /* CR_N */
+
+/* 'Nd': General Category */
+static const OnigCodePoint CR_Nd[] = {
+ 38,
+ 0x0030, 0x0039,
+ 0x0660, 0x0669,
+ 0x06f0, 0x06f9,
+ 0x07c0, 0x07c9,
+ 0x0966, 0x096f,
+ 0x09e6, 0x09ef,
+ 0x0a66, 0x0a6f,
+ 0x0ae6, 0x0aef,
+ 0x0b66, 0x0b6f,
+ 0x0be6, 0x0bef,
+ 0x0c66, 0x0c6f,
+ 0x0ce6, 0x0cef,
+ 0x0d66, 0x0d6f,
+ 0x0e50, 0x0e59,
+ 0x0ed0, 0x0ed9,
+ 0x0f20, 0x0f29,
+ 0x1040, 0x1049,
+ 0x1090, 0x1099,
+ 0x17e0, 0x17e9,
+ 0x1810, 0x1819,
+ 0x1946, 0x194f,
+ 0x19d0, 0x19d9,
+ 0x1a80, 0x1a89,
+ 0x1a90, 0x1a99,
+ 0x1b50, 0x1b59,
+ 0x1bb0, 0x1bb9,
+ 0x1c40, 0x1c49,
+ 0x1c50, 0x1c59,
+ 0xa620, 0xa629,
+ 0xa8d0, 0xa8d9,
+ 0xa900, 0xa909,
+ 0xa9d0, 0xa9d9,
+ 0xaa50, 0xaa59,
+ 0xabf0, 0xabf9,
+ 0xff10, 0xff19,
+ 0x104a0, 0x104a9,
+ 0x11066, 0x1106f,
+ 0x1d7ce, 0x1d7ff,
+}; /* CR_Nd */
+
+/* 'Nl': General Category */
+static const OnigCodePoint CR_Nl[] = {
+ 12,
+ 0x16ee, 0x16f0,
+ 0x2160, 0x2182,
+ 0x2185, 0x2188,
+ 0x3007, 0x3007,
+ 0x3021, 0x3029,
+ 0x3038, 0x303a,
+ 0xa6e6, 0xa6ef,
+ 0x10140, 0x10174,
+ 0x10341, 0x10341,
+ 0x1034a, 0x1034a,
+ 0x103d1, 0x103d5,
+ 0x12400, 0x12462,
+}; /* CR_Nl */
+
+/* 'No': General Category */
+static const OnigCodePoint CR_No[] = {
+ 41,
+ 0x00b2, 0x00b3,
+ 0x00b9, 0x00b9,
+ 0x00bc, 0x00be,
+ 0x09f4, 0x09f9,
+ 0x0b72, 0x0b77,
+ 0x0bf0, 0x0bf2,
+ 0x0c78, 0x0c7e,
+ 0x0d70, 0x0d75,
+ 0x0f2a, 0x0f33,
+ 0x1369, 0x137c,
+ 0x17f0, 0x17f9,
+ 0x19da, 0x19da,
+ 0x2070, 0x2070,
+ 0x2074, 0x2079,
+ 0x2080, 0x2089,
+ 0x2150, 0x215f,
+ 0x2189, 0x2189,
+ 0x2460, 0x249b,
+ 0x24ea, 0x24ff,
+ 0x2776, 0x2793,
+ 0x2cfd, 0x2cfd,
+ 0x3192, 0x3195,
+ 0x3220, 0x3229,
+ 0x3251, 0x325f,
+ 0x3280, 0x3289,
+ 0x32b1, 0x32bf,
+ 0xa830, 0xa835,
+ 0x10107, 0x10133,
+ 0x10175, 0x10178,
+ 0x1018a, 0x1018a,
+ 0x10320, 0x10323,
+ 0x10858, 0x1085f,
+ 0x10916, 0x1091b,
+ 0x10a40, 0x10a47,
+ 0x10a7d, 0x10a7e,
+ 0x10b58, 0x10b5f,
+ 0x10b78, 0x10b7f,
+ 0x10e60, 0x10e7e,
+ 0x11052, 0x11065,
+ 0x1d360, 0x1d371,
+ 0x1f100, 0x1f10a,
+}; /* CR_No */
+
+/* 'P': Major Category */
+static const OnigCodePoint CR_P[] = {
+ 133,
+ 0x0021, 0x0023,
+ 0x0025, 0x002a,
+ 0x002c, 0x002f,
+ 0x003a, 0x003b,
+ 0x003f, 0x0040,
+ 0x005b, 0x005d,
+ 0x005f, 0x005f,
+ 0x007b, 0x007b,
+ 0x007d, 0x007d,
+ 0x00a1, 0x00a1,
+ 0x00ab, 0x00ab,
+ 0x00b7, 0x00b7,
+ 0x00bb, 0x00bb,
+ 0x00bf, 0x00bf,
+ 0x037e, 0x037e,
+ 0x0387, 0x0387,
+ 0x055a, 0x055f,
+ 0x0589, 0x058a,
+ 0x05be, 0x05be,
+ 0x05c0, 0x05c0,
+ 0x05c3, 0x05c3,
+ 0x05c6, 0x05c6,
+ 0x05f3, 0x05f4,
+ 0x0609, 0x060a,
+ 0x060c, 0x060d,
+ 0x061b, 0x061b,
+ 0x061e, 0x061f,
+ 0x066a, 0x066d,
+ 0x06d4, 0x06d4,
+ 0x0700, 0x070d,
+ 0x07f7, 0x07f9,
+ 0x0830, 0x083e,
+ 0x085e, 0x085e,
+ 0x0964, 0x0965,
+ 0x0970, 0x0970,
+ 0x0df4, 0x0df4,
+ 0x0e4f, 0x0e4f,
+ 0x0e5a, 0x0e5b,
+ 0x0f04, 0x0f12,
+ 0x0f3a, 0x0f3d,
+ 0x0f85, 0x0f85,
+ 0x0fd0, 0x0fd4,
+ 0x0fd9, 0x0fda,
+ 0x104a, 0x104f,
+ 0x10fb, 0x10fb,
+ 0x1361, 0x1368,
+ 0x1400, 0x1400,
+ 0x166d, 0x166e,
+ 0x169b, 0x169c,
+ 0x16eb, 0x16ed,
+ 0x1735, 0x1736,
+ 0x17d4, 0x17d6,
+ 0x17d8, 0x17da,
+ 0x1800, 0x180a,
+ 0x1944, 0x1945,
+ 0x1a1e, 0x1a1f,
+ 0x1aa0, 0x1aa6,
+ 0x1aa8, 0x1aad,
+ 0x1b5a, 0x1b60,
+ 0x1bfc, 0x1bff,
+ 0x1c3b, 0x1c3f,
+ 0x1c7e, 0x1c7f,
+ 0x1cd3, 0x1cd3,
+ 0x2010, 0x2027,
+ 0x2030, 0x2043,
+ 0x2045, 0x2051,
+ 0x2053, 0x205e,
+ 0x207d, 0x207e,
+ 0x208d, 0x208e,
+ 0x2329, 0x232a,
+ 0x2768, 0x2775,
+ 0x27c5, 0x27c6,
+ 0x27e6, 0x27ef,
+ 0x2983, 0x2998,
+ 0x29d8, 0x29db,
+ 0x29fc, 0x29fd,
+ 0x2cf9, 0x2cfc,
+ 0x2cfe, 0x2cff,
+ 0x2d70, 0x2d70,
+ 0x2e00, 0x2e2e,
+ 0x2e30, 0x2e31,
+ 0x3001, 0x3003,
+ 0x3008, 0x3011,
+ 0x3014, 0x301f,
+ 0x3030, 0x3030,
+ 0x303d, 0x303d,
+ 0x30a0, 0x30a0,
+ 0x30fb, 0x30fb,
+ 0xa4fe, 0xa4ff,
+ 0xa60d, 0xa60f,
+ 0xa673, 0xa673,
+ 0xa67e, 0xa67e,
+ 0xa6f2, 0xa6f7,
+ 0xa874, 0xa877,
+ 0xa8ce, 0xa8cf,
+ 0xa8f8, 0xa8fa,
+ 0xa92e, 0xa92f,
+ 0xa95f, 0xa95f,
+ 0xa9c1, 0xa9cd,
+ 0xa9de, 0xa9df,
+ 0xaa5c, 0xaa5f,
+ 0xaade, 0xaadf,
+ 0xabeb, 0xabeb,
+ 0xfd3e, 0xfd3f,
+ 0xfe10, 0xfe19,
+ 0xfe30, 0xfe52,
+ 0xfe54, 0xfe61,
+ 0xfe63, 0xfe63,
+ 0xfe68, 0xfe68,
+ 0xfe6a, 0xfe6b,
+ 0xff01, 0xff03,
+ 0xff05, 0xff0a,
+ 0xff0c, 0xff0f,
+ 0xff1a, 0xff1b,
+ 0xff1f, 0xff20,
+ 0xff3b, 0xff3d,
+ 0xff3f, 0xff3f,
+ 0xff5b, 0xff5b,
+ 0xff5d, 0xff5d,
+ 0xff5f, 0xff65,
+ 0x10100, 0x10101,
+ 0x1039f, 0x1039f,
+ 0x103d0, 0x103d0,
+ 0x10857, 0x10857,
+ 0x1091f, 0x1091f,
+ 0x1093f, 0x1093f,
+ 0x10a50, 0x10a58,
+ 0x10a7f, 0x10a7f,
+ 0x10b39, 0x10b3f,
+ 0x11047, 0x1104d,
+ 0x110bb, 0x110bc,
+ 0x110be, 0x110c1,
+ 0x12470, 0x12473,
+}; /* CR_P */
+
+/* 'Pc': General Category */
+static const OnigCodePoint CR_Pc[] = {
+ 6,
+ 0x005f, 0x005f,
+ 0x203f, 0x2040,
+ 0x2054, 0x2054,
+ 0xfe33, 0xfe34,
+ 0xfe4d, 0xfe4f,
+ 0xff3f, 0xff3f,
+}; /* CR_Pc */
+
+/* 'Pd': General Category */
+static const OnigCodePoint CR_Pd[] = {
+ 15,
+ 0x002d, 0x002d,
+ 0x058a, 0x058a,
+ 0x05be, 0x05be,
+ 0x1400, 0x1400,
+ 0x1806, 0x1806,
+ 0x2010, 0x2015,
+ 0x2e17, 0x2e17,
+ 0x2e1a, 0x2e1a,
+ 0x301c, 0x301c,
+ 0x3030, 0x3030,
+ 0x30a0, 0x30a0,
+ 0xfe31, 0xfe32,
+ 0xfe58, 0xfe58,
+ 0xfe63, 0xfe63,
+ 0xff0d, 0xff0d,
+}; /* CR_Pd */
+
+/* 'Pe': General Category */
+static const OnigCodePoint CR_Pe[] = {
+ 70,
+ 0x0029, 0x0029,
+ 0x005d, 0x005d,
+ 0x007d, 0x007d,
+ 0x0f3b, 0x0f3b,
+ 0x0f3d, 0x0f3d,
+ 0x169c, 0x169c,
+ 0x2046, 0x2046,
+ 0x207e, 0x207e,
+ 0x208e, 0x208e,
+ 0x232a, 0x232a,
+ 0x2769, 0x2769,
+ 0x276b, 0x276b,
+ 0x276d, 0x276d,
+ 0x276f, 0x276f,
+ 0x2771, 0x2771,
+ 0x2773, 0x2773,
+ 0x2775, 0x2775,
+ 0x27c6, 0x27c6,
+ 0x27e7, 0x27e7,
+ 0x27e9, 0x27e9,
+ 0x27eb, 0x27eb,
+ 0x27ed, 0x27ed,
+ 0x27ef, 0x27ef,
+ 0x2984, 0x2984,
+ 0x2986, 0x2986,
+ 0x2988, 0x2988,
+ 0x298a, 0x298a,
+ 0x298c, 0x298c,
+ 0x298e, 0x298e,
+ 0x2990, 0x2990,
+ 0x2992, 0x2992,
+ 0x2994, 0x2994,
+ 0x2996, 0x2996,
+ 0x2998, 0x2998,
+ 0x29d9, 0x29d9,
+ 0x29db, 0x29db,
+ 0x29fd, 0x29fd,
+ 0x2e23, 0x2e23,
+ 0x2e25, 0x2e25,
+ 0x2e27, 0x2e27,
+ 0x2e29, 0x2e29,
+ 0x3009, 0x3009,
+ 0x300b, 0x300b,
+ 0x300d, 0x300d,
+ 0x300f, 0x300f,
+ 0x3011, 0x3011,
+ 0x3015, 0x3015,
+ 0x3017, 0x3017,
+ 0x3019, 0x3019,
+ 0x301b, 0x301b,
+ 0x301e, 0x301f,
+ 0xfd3f, 0xfd3f,
+ 0xfe18, 0xfe18,
+ 0xfe36, 0xfe36,
+ 0xfe38, 0xfe38,
+ 0xfe3a, 0xfe3a,
+ 0xfe3c, 0xfe3c,
+ 0xfe3e, 0xfe3e,
+ 0xfe40, 0xfe40,
+ 0xfe42, 0xfe42,
+ 0xfe44, 0xfe44,
+ 0xfe48, 0xfe48,
+ 0xfe5a, 0xfe5a,
+ 0xfe5c, 0xfe5c,
+ 0xfe5e, 0xfe5e,
+ 0xff09, 0xff09,
+ 0xff3d, 0xff3d,
+ 0xff5d, 0xff5d,
+ 0xff60, 0xff60,
+ 0xff63, 0xff63,
+}; /* CR_Pe */
+
+/* 'Pf': General Category */
+static const OnigCodePoint CR_Pf[] = {
+ 10,
+ 0x00bb, 0x00bb,
+ 0x2019, 0x2019,
+ 0x201d, 0x201d,
+ 0x203a, 0x203a,
+ 0x2e03, 0x2e03,
+ 0x2e05, 0x2e05,
+ 0x2e0a, 0x2e0a,
+ 0x2e0d, 0x2e0d,
+ 0x2e1d, 0x2e1d,
+ 0x2e21, 0x2e21,
+}; /* CR_Pf */
+
+/* 'Pi': General Category */
+static const OnigCodePoint CR_Pi[] = {
+ 11,
+ 0x00ab, 0x00ab,
+ 0x2018, 0x2018,
+ 0x201b, 0x201c,
+ 0x201f, 0x201f,
+ 0x2039, 0x2039,
+ 0x2e02, 0x2e02,
+ 0x2e04, 0x2e04,
+ 0x2e09, 0x2e09,
+ 0x2e0c, 0x2e0c,
+ 0x2e1c, 0x2e1c,
+ 0x2e20, 0x2e20,
+}; /* CR_Pi */
+
+/* 'Po': General Category */
+static const OnigCodePoint CR_Po[] = {
+ 128,
+ 0x0021, 0x0023,
+ 0x0025, 0x0027,
+ 0x002a, 0x002a,
+ 0x002c, 0x002c,
+ 0x002e, 0x002f,
+ 0x003a, 0x003b,
+ 0x003f, 0x0040,
+ 0x005c, 0x005c,
+ 0x00a1, 0x00a1,
+ 0x00b7, 0x00b7,
+ 0x00bf, 0x00bf,
+ 0x037e, 0x037e,
+ 0x0387, 0x0387,
+ 0x055a, 0x055f,
+ 0x0589, 0x0589,
+ 0x05c0, 0x05c0,
+ 0x05c3, 0x05c3,
+ 0x05c6, 0x05c6,
+ 0x05f3, 0x05f4,
+ 0x0609, 0x060a,
+ 0x060c, 0x060d,
+ 0x061b, 0x061b,
+ 0x061e, 0x061f,
+ 0x066a, 0x066d,
+ 0x06d4, 0x06d4,
+ 0x0700, 0x070d,
+ 0x07f7, 0x07f9,
+ 0x0830, 0x083e,
+ 0x085e, 0x085e,
+ 0x0964, 0x0965,
+ 0x0970, 0x0970,
+ 0x0df4, 0x0df4,
+ 0x0e4f, 0x0e4f,
+ 0x0e5a, 0x0e5b,
+ 0x0f04, 0x0f12,
+ 0x0f85, 0x0f85,
+ 0x0fd0, 0x0fd4,
+ 0x0fd9, 0x0fda,
+ 0x104a, 0x104f,
+ 0x10fb, 0x10fb,
+ 0x1361, 0x1368,
+ 0x166d, 0x166e,
+ 0x16eb, 0x16ed,
+ 0x1735, 0x1736,
+ 0x17d4, 0x17d6,
+ 0x17d8, 0x17da,
+ 0x1800, 0x1805,
+ 0x1807, 0x180a,
+ 0x1944, 0x1945,
+ 0x1a1e, 0x1a1f,
+ 0x1aa0, 0x1aa6,
+ 0x1aa8, 0x1aad,
+ 0x1b5a, 0x1b60,
+ 0x1bfc, 0x1bff,
+ 0x1c3b, 0x1c3f,
+ 0x1c7e, 0x1c7f,
+ 0x1cd3, 0x1cd3,
+ 0x2016, 0x2017,
+ 0x2020, 0x2027,
+ 0x2030, 0x2038,
+ 0x203b, 0x203e,
+ 0x2041, 0x2043,
+ 0x2047, 0x2051,
+ 0x2053, 0x2053,
+ 0x2055, 0x205e,
+ 0x2cf9, 0x2cfc,
+ 0x2cfe, 0x2cff,
+ 0x2d70, 0x2d70,
+ 0x2e00, 0x2e01,
+ 0x2e06, 0x2e08,
+ 0x2e0b, 0x2e0b,
+ 0x2e0e, 0x2e16,
+ 0x2e18, 0x2e19,
+ 0x2e1b, 0x2e1b,
+ 0x2e1e, 0x2e1f,
+ 0x2e2a, 0x2e2e,
+ 0x2e30, 0x2e31,
+ 0x3001, 0x3003,
+ 0x303d, 0x303d,
+ 0x30fb, 0x30fb,
+ 0xa4fe, 0xa4ff,
+ 0xa60d, 0xa60f,
+ 0xa673, 0xa673,
+ 0xa67e, 0xa67e,
+ 0xa6f2, 0xa6f7,
+ 0xa874, 0xa877,
+ 0xa8ce, 0xa8cf,
+ 0xa8f8, 0xa8fa,
+ 0xa92e, 0xa92f,
+ 0xa95f, 0xa95f,
+ 0xa9c1, 0xa9cd,
+ 0xa9de, 0xa9df,
+ 0xaa5c, 0xaa5f,
+ 0xaade, 0xaadf,
+ 0xabeb, 0xabeb,
+ 0xfe10, 0xfe16,
+ 0xfe19, 0xfe19,
+ 0xfe30, 0xfe30,
+ 0xfe45, 0xfe46,
+ 0xfe49, 0xfe4c,
+ 0xfe50, 0xfe52,
+ 0xfe54, 0xfe57,
+ 0xfe5f, 0xfe61,
+ 0xfe68, 0xfe68,
+ 0xfe6a, 0xfe6b,
+ 0xff01, 0xff03,
+ 0xff05, 0xff07,
+ 0xff0a, 0xff0a,
+ 0xff0c, 0xff0c,
+ 0xff0e, 0xff0f,
+ 0xff1a, 0xff1b,
+ 0xff1f, 0xff20,
+ 0xff3c, 0xff3c,
+ 0xff61, 0xff61,
+ 0xff64, 0xff65,
+ 0x10100, 0x10101,
+ 0x1039f, 0x1039f,
+ 0x103d0, 0x103d0,
+ 0x10857, 0x10857,
+ 0x1091f, 0x1091f,
+ 0x1093f, 0x1093f,
+ 0x10a50, 0x10a58,
+ 0x10a7f, 0x10a7f,
+ 0x10b39, 0x10b3f,
+ 0x11047, 0x1104d,
+ 0x110bb, 0x110bc,
+ 0x110be, 0x110c1,
+ 0x12470, 0x12473,
+}; /* CR_Po */
+
+/* 'Ps': General Category */
+static const OnigCodePoint CR_Ps[] = {
+ 72,
+ 0x0028, 0x0028,
+ 0x005b, 0x005b,
+ 0x007b, 0x007b,
+ 0x0f3a, 0x0f3a,
+ 0x0f3c, 0x0f3c,
+ 0x169b, 0x169b,
+ 0x201a, 0x201a,
+ 0x201e, 0x201e,
+ 0x2045, 0x2045,
+ 0x207d, 0x207d,
+ 0x208d, 0x208d,
+ 0x2329, 0x2329,
+ 0x2768, 0x2768,
+ 0x276a, 0x276a,
+ 0x276c, 0x276c,
+ 0x276e, 0x276e,
+ 0x2770, 0x2770,
+ 0x2772, 0x2772,
+ 0x2774, 0x2774,
+ 0x27c5, 0x27c5,
+ 0x27e6, 0x27e6,
+ 0x27e8, 0x27e8,
+ 0x27ea, 0x27ea,
+ 0x27ec, 0x27ec,
+ 0x27ee, 0x27ee,
+ 0x2983, 0x2983,
+ 0x2985, 0x2985,
+ 0x2987, 0x2987,
+ 0x2989, 0x2989,
+ 0x298b, 0x298b,
+ 0x298d, 0x298d,
+ 0x298f, 0x298f,
+ 0x2991, 0x2991,
+ 0x2993, 0x2993,
+ 0x2995, 0x2995,
+ 0x2997, 0x2997,
+ 0x29d8, 0x29d8,
+ 0x29da, 0x29da,
+ 0x29fc, 0x29fc,
+ 0x2e22, 0x2e22,
+ 0x2e24, 0x2e24,
+ 0x2e26, 0x2e26,
+ 0x2e28, 0x2e28,
+ 0x3008, 0x3008,
+ 0x300a, 0x300a,
+ 0x300c, 0x300c,
+ 0x300e, 0x300e,
+ 0x3010, 0x3010,
+ 0x3014, 0x3014,
+ 0x3016, 0x3016,
+ 0x3018, 0x3018,
+ 0x301a, 0x301a,
+ 0x301d, 0x301d,
+ 0xfd3e, 0xfd3e,
+ 0xfe17, 0xfe17,
+ 0xfe35, 0xfe35,
+ 0xfe37, 0xfe37,
+ 0xfe39, 0xfe39,
+ 0xfe3b, 0xfe3b,
+ 0xfe3d, 0xfe3d,
+ 0xfe3f, 0xfe3f,
+ 0xfe41, 0xfe41,
+ 0xfe43, 0xfe43,
+ 0xfe47, 0xfe47,
+ 0xfe59, 0xfe59,
+ 0xfe5b, 0xfe5b,
+ 0xfe5d, 0xfe5d,
+ 0xff08, 0xff08,
+ 0xff3b, 0xff3b,
+ 0xff5b, 0xff5b,
+ 0xff5f, 0xff5f,
+ 0xff62, 0xff62,
+}; /* CR_Ps */
+
+/* 'S': Major Category */
+static const OnigCodePoint CR_S[] = {
+ 208,
+ 0x0024, 0x0024,
+ 0x002b, 0x002b,
+ 0x003c, 0x003e,
+ 0x005e, 0x005e,
+ 0x0060, 0x0060,
+ 0x007c, 0x007c,
+ 0x007e, 0x007e,
+ 0x00a2, 0x00a9,
+ 0x00ac, 0x00ac,
+ 0x00ae, 0x00b1,
+ 0x00b4, 0x00b4,
+ 0x00b6, 0x00b6,
+ 0x00b8, 0x00b8,
+ 0x00d7, 0x00d7,
+ 0x00f7, 0x00f7,
+ 0x02c2, 0x02c5,
+ 0x02d2, 0x02df,
+ 0x02e5, 0x02eb,
+ 0x02ed, 0x02ed,
+ 0x02ef, 0x02ff,
+ 0x0375, 0x0375,
+ 0x0384, 0x0385,
+ 0x03f6, 0x03f6,
+ 0x0482, 0x0482,
+ 0x0606, 0x0608,
+ 0x060b, 0x060b,
+ 0x060e, 0x060f,
+ 0x06de, 0x06de,
+ 0x06e9, 0x06e9,
+ 0x06fd, 0x06fe,
+ 0x07f6, 0x07f6,
+ 0x09f2, 0x09f3,
+ 0x09fa, 0x09fb,
+ 0x0af1, 0x0af1,
+ 0x0b70, 0x0b70,
+ 0x0bf3, 0x0bfa,
+ 0x0c7f, 0x0c7f,
+ 0x0d79, 0x0d79,
+ 0x0e3f, 0x0e3f,
+ 0x0f01, 0x0f03,
+ 0x0f13, 0x0f17,
+ 0x0f1a, 0x0f1f,
+ 0x0f34, 0x0f34,
+ 0x0f36, 0x0f36,
+ 0x0f38, 0x0f38,
+ 0x0fbe, 0x0fc5,
+ 0x0fc7, 0x0fcc,
+ 0x0fce, 0x0fcf,
+ 0x0fd5, 0x0fd8,
+ 0x109e, 0x109f,
+ 0x1360, 0x1360,
+ 0x1390, 0x1399,
+ 0x17db, 0x17db,
+ 0x1940, 0x1940,
+ 0x19de, 0x19ff,
+ 0x1b61, 0x1b6a,
+ 0x1b74, 0x1b7c,
+ 0x1fbd, 0x1fbd,
+ 0x1fbf, 0x1fc1,
+ 0x1fcd, 0x1fcf,
+ 0x1fdd, 0x1fdf,
+ 0x1fed, 0x1fef,
+ 0x1ffd, 0x1ffe,
+ 0x2044, 0x2044,
+ 0x2052, 0x2052,
+ 0x207a, 0x207c,
+ 0x208a, 0x208c,
+ 0x20a0, 0x20b9,
+ 0x2100, 0x2101,
+ 0x2103, 0x2106,
+ 0x2108, 0x2109,
+ 0x2114, 0x2114,
+ 0x2116, 0x2118,
+ 0x211e, 0x2123,
+ 0x2125, 0x2125,
+ 0x2127, 0x2127,
+ 0x2129, 0x2129,
+ 0x212e, 0x212e,
+ 0x213a, 0x213b,
+ 0x2140, 0x2144,
+ 0x214a, 0x214d,
+ 0x214f, 0x214f,
+ 0x2190, 0x2328,
+ 0x232b, 0x23f3,
+ 0x2400, 0x2426,
+ 0x2440, 0x244a,
+ 0x249c, 0x24e9,
+ 0x2500, 0x26ff,
+ 0x2701, 0x2767,
+ 0x2794, 0x27c4,
+ 0x27c7, 0x27ca,
+ 0x27cc, 0x27cc,
+ 0x27ce, 0x27e5,
+ 0x27f0, 0x2982,
+ 0x2999, 0x29d7,
+ 0x29dc, 0x29fb,
+ 0x29fe, 0x2b4c,
+ 0x2b50, 0x2b59,
+ 0x2ce5, 0x2cea,
+ 0x2e80, 0x2e99,
+ 0x2e9b, 0x2ef3,
+ 0x2f00, 0x2fd5,
+ 0x2ff0, 0x2ffb,
+ 0x3004, 0x3004,
+ 0x3012, 0x3013,
+ 0x3020, 0x3020,
+ 0x3036, 0x3037,
+ 0x303e, 0x303f,
+ 0x309b, 0x309c,
+ 0x3190, 0x3191,
+ 0x3196, 0x319f,
+ 0x31c0, 0x31e3,
+ 0x3200, 0x321e,
+ 0x322a, 0x3250,
+ 0x3260, 0x327f,
+ 0x328a, 0x32b0,
+ 0x32c0, 0x32fe,
+ 0x3300, 0x33ff,
+ 0x4dc0, 0x4dff,
+ 0xa490, 0xa4c6,
+ 0xa700, 0xa716,
+ 0xa720, 0xa721,
+ 0xa789, 0xa78a,
+ 0xa828, 0xa82b,
+ 0xa836, 0xa839,
+ 0xaa77, 0xaa79,
+ 0xfb29, 0xfb29,
+ 0xfbb2, 0xfbc1,
+ 0xfdfc, 0xfdfd,
+ 0xfe62, 0xfe62,
+ 0xfe64, 0xfe66,
+ 0xfe69, 0xfe69,
+ 0xff04, 0xff04,
+ 0xff0b, 0xff0b,
+ 0xff1c, 0xff1e,
+ 0xff3e, 0xff3e,
+ 0xff40, 0xff40,
+ 0xff5c, 0xff5c,
+ 0xff5e, 0xff5e,
+ 0xffe0, 0xffe6,
+ 0xffe8, 0xffee,
+ 0xfffc, 0xfffd,
+ 0x10102, 0x10102,
+ 0x10137, 0x1013f,
+ 0x10179, 0x10189,
+ 0x10190, 0x1019b,
+ 0x101d0, 0x101fc,
+ 0x1d000, 0x1d0f5,
+ 0x1d100, 0x1d126,
+ 0x1d129, 0x1d164,
+ 0x1d16a, 0x1d16c,
+ 0x1d183, 0x1d184,
+ 0x1d18c, 0x1d1a9,
+ 0x1d1ae, 0x1d1dd,
+ 0x1d200, 0x1d241,
+ 0x1d245, 0x1d245,
+ 0x1d300, 0x1d356,
+ 0x1d6c1, 0x1d6c1,
+ 0x1d6db, 0x1d6db,
+ 0x1d6fb, 0x1d6fb,
+ 0x1d715, 0x1d715,
+ 0x1d735, 0x1d735,
+ 0x1d74f, 0x1d74f,
+ 0x1d76f, 0x1d76f,
+ 0x1d789, 0x1d789,
+ 0x1d7a9, 0x1d7a9,
+ 0x1d7c3, 0x1d7c3,
+ 0x1f000, 0x1f02b,
+ 0x1f030, 0x1f093,
+ 0x1f0a0, 0x1f0ae,
+ 0x1f0b1, 0x1f0be,
+ 0x1f0c1, 0x1f0cf,
+ 0x1f0d1, 0x1f0df,
+ 0x1f110, 0x1f12e,
+ 0x1f130, 0x1f169,
+ 0x1f170, 0x1f19a,
+ 0x1f1e6, 0x1f202,
+ 0x1f210, 0x1f23a,
+ 0x1f240, 0x1f248,
+ 0x1f250, 0x1f251,
+ 0x1f300, 0x1f320,
+ 0x1f330, 0x1f335,
+ 0x1f337, 0x1f37c,
+ 0x1f380, 0x1f393,
+ 0x1f3a0, 0x1f3c4,
+ 0x1f3c6, 0x1f3ca,
+ 0x1f3e0, 0x1f3f0,
+ 0x1f400, 0x1f43e,
+ 0x1f440, 0x1f440,
+ 0x1f442, 0x1f4f7,
+ 0x1f4f9, 0x1f4fc,
+ 0x1f500, 0x1f53d,
+ 0x1f550, 0x1f567,
+ 0x1f5fb, 0x1f5ff,
+ 0x1f601, 0x1f610,
+ 0x1f612, 0x1f614,
+ 0x1f616, 0x1f616,
+ 0x1f618, 0x1f618,
+ 0x1f61a, 0x1f61a,
+ 0x1f61c, 0x1f61e,
+ 0x1f620, 0x1f625,
+ 0x1f628, 0x1f62b,
+ 0x1f62d, 0x1f62d,
+ 0x1f630, 0x1f633,
+ 0x1f635, 0x1f640,
+ 0x1f645, 0x1f64f,
+ 0x1f680, 0x1f6c5,
+ 0x1f700, 0x1f773,
+}; /* CR_S */
+
+/* 'Sc': General Category */
+static const OnigCodePoint CR_Sc[] = {
+ 16,
+ 0x0024, 0x0024,
+ 0x00a2, 0x00a5,
+ 0x060b, 0x060b,
+ 0x09f2, 0x09f3,
+ 0x09fb, 0x09fb,
+ 0x0af1, 0x0af1,
+ 0x0bf9, 0x0bf9,
+ 0x0e3f, 0x0e3f,
+ 0x17db, 0x17db,
+ 0x20a0, 0x20b9,
+ 0xa838, 0xa838,
+ 0xfdfc, 0xfdfc,
+ 0xfe69, 0xfe69,
+ 0xff04, 0xff04,
+ 0xffe0, 0xffe1,
+ 0xffe5, 0xffe6,
+}; /* CR_Sc */
+
+/* 'Sk': General Category */
+static const OnigCodePoint CR_Sk[] = {
+ 27,
+ 0x005e, 0x005e,
+ 0x0060, 0x0060,
+ 0x00a8, 0x00a8,
+ 0x00af, 0x00af,
+ 0x00b4, 0x00b4,
+ 0x00b8, 0x00b8,
+ 0x02c2, 0x02c5,
+ 0x02d2, 0x02df,
+ 0x02e5, 0x02eb,
+ 0x02ed, 0x02ed,
+ 0x02ef, 0x02ff,
+ 0x0375, 0x0375,
+ 0x0384, 0x0385,
+ 0x1fbd, 0x1fbd,
+ 0x1fbf, 0x1fc1,
+ 0x1fcd, 0x1fcf,
+ 0x1fdd, 0x1fdf,
+ 0x1fed, 0x1fef,
+ 0x1ffd, 0x1ffe,
+ 0x309b, 0x309c,
+ 0xa700, 0xa716,
+ 0xa720, 0xa721,
+ 0xa789, 0xa78a,
+ 0xfbb2, 0xfbc1,
+ 0xff3e, 0xff3e,
+ 0xff40, 0xff40,
+ 0xffe3, 0xffe3,
+}; /* CR_Sk */
+
+/* 'Sm': General Category */
+static const OnigCodePoint CR_Sm[] = {
+ 66,
+ 0x002b, 0x002b,
+ 0x003c, 0x003e,
+ 0x007c, 0x007c,
+ 0x007e, 0x007e,
+ 0x00ac, 0x00ac,
+ 0x00b1, 0x00b1,
+ 0x00d7, 0x00d7,
+ 0x00f7, 0x00f7,
+ 0x03f6, 0x03f6,
+ 0x0606, 0x0608,
+ 0x2044, 0x2044,
+ 0x2052, 0x2052,
+ 0x207a, 0x207c,
+ 0x208a, 0x208c,
+ 0x2118, 0x2118,
+ 0x2140, 0x2144,
+ 0x214b, 0x214b,
+ 0x2190, 0x2194,
+ 0x219a, 0x219b,
+ 0x21a0, 0x21a0,
+ 0x21a3, 0x21a3,
+ 0x21a6, 0x21a6,
+ 0x21ae, 0x21ae,
+ 0x21ce, 0x21cf,
+ 0x21d2, 0x21d2,
+ 0x21d4, 0x21d4,
+ 0x21f4, 0x22ff,
+ 0x2308, 0x230b,
+ 0x2320, 0x2321,
+ 0x237c, 0x237c,
+ 0x239b, 0x23b3,
+ 0x23dc, 0x23e1,
+ 0x25b7, 0x25b7,
+ 0x25c1, 0x25c1,
+ 0x25f8, 0x25ff,
+ 0x266f, 0x266f,
+ 0x27c0, 0x27c4,
+ 0x27c7, 0x27ca,
+ 0x27cc, 0x27cc,
+ 0x27ce, 0x27e5,
+ 0x27f0, 0x27ff,
+ 0x2900, 0x2982,
+ 0x2999, 0x29d7,
+ 0x29dc, 0x29fb,
+ 0x29fe, 0x2aff,
+ 0x2b30, 0x2b44,
+ 0x2b47, 0x2b4c,
+ 0xfb29, 0xfb29,
+ 0xfe62, 0xfe62,
+ 0xfe64, 0xfe66,
+ 0xff0b, 0xff0b,
+ 0xff1c, 0xff1e,
+ 0xff5c, 0xff5c,
+ 0xff5e, 0xff5e,
+ 0xffe2, 0xffe2,
+ 0xffe9, 0xffec,
+ 0x1d6c1, 0x1d6c1,
+ 0x1d6db, 0x1d6db,
+ 0x1d6fb, 0x1d6fb,
+ 0x1d715, 0x1d715,
+ 0x1d735, 0x1d735,
+ 0x1d74f, 0x1d74f,
+ 0x1d76f, 0x1d76f,
+ 0x1d789, 0x1d789,
+ 0x1d7a9, 0x1d7a9,
+ 0x1d7c3, 0x1d7c3,
+}; /* CR_Sm */
+
+/* 'So': General Category */
+static const OnigCodePoint CR_So[] = {
+ 164,
+ 0x00a6, 0x00a7,
+ 0x00a9, 0x00a9,
+ 0x00ae, 0x00ae,
+ 0x00b0, 0x00b0,
+ 0x00b6, 0x00b6,
+ 0x0482, 0x0482,
+ 0x060e, 0x060f,
+ 0x06de, 0x06de,
+ 0x06e9, 0x06e9,
+ 0x06fd, 0x06fe,
+ 0x07f6, 0x07f6,
+ 0x09fa, 0x09fa,
+ 0x0b70, 0x0b70,
+ 0x0bf3, 0x0bf8,
+ 0x0bfa, 0x0bfa,
+ 0x0c7f, 0x0c7f,
+ 0x0d79, 0x0d79,
+ 0x0f01, 0x0f03,
+ 0x0f13, 0x0f17,
+ 0x0f1a, 0x0f1f,
+ 0x0f34, 0x0f34,
+ 0x0f36, 0x0f36,
+ 0x0f38, 0x0f38,
+ 0x0fbe, 0x0fc5,
+ 0x0fc7, 0x0fcc,
+ 0x0fce, 0x0fcf,
+ 0x0fd5, 0x0fd8,
+ 0x109e, 0x109f,
+ 0x1360, 0x1360,
+ 0x1390, 0x1399,
+ 0x1940, 0x1940,
+ 0x19de, 0x19ff,
+ 0x1b61, 0x1b6a,
+ 0x1b74, 0x1b7c,
+ 0x2100, 0x2101,
+ 0x2103, 0x2106,
+ 0x2108, 0x2109,
+ 0x2114, 0x2114,
+ 0x2116, 0x2117,
+ 0x211e, 0x2123,
+ 0x2125, 0x2125,
+ 0x2127, 0x2127,
+ 0x2129, 0x2129,
+ 0x212e, 0x212e,
+ 0x213a, 0x213b,
+ 0x214a, 0x214a,
+ 0x214c, 0x214d,
+ 0x214f, 0x214f,
+ 0x2195, 0x2199,
+ 0x219c, 0x219f,
+ 0x21a1, 0x21a2,
+ 0x21a4, 0x21a5,
+ 0x21a7, 0x21ad,
+ 0x21af, 0x21cd,
+ 0x21d0, 0x21d1,
+ 0x21d3, 0x21d3,
+ 0x21d5, 0x21f3,
+ 0x2300, 0x2307,
+ 0x230c, 0x231f,
+ 0x2322, 0x2328,
+ 0x232b, 0x237b,
+ 0x237d, 0x239a,
+ 0x23b4, 0x23db,
+ 0x23e2, 0x23f3,
+ 0x2400, 0x2426,
+ 0x2440, 0x244a,
+ 0x249c, 0x24e9,
+ 0x2500, 0x25b6,
+ 0x25b8, 0x25c0,
+ 0x25c2, 0x25f7,
+ 0x2600, 0x266e,
+ 0x2670, 0x26ff,
+ 0x2701, 0x2767,
+ 0x2794, 0x27bf,
+ 0x2800, 0x28ff,
+ 0x2b00, 0x2b2f,
+ 0x2b45, 0x2b46,
+ 0x2b50, 0x2b59,
+ 0x2ce5, 0x2cea,
+ 0x2e80, 0x2e99,
+ 0x2e9b, 0x2ef3,
+ 0x2f00, 0x2fd5,
+ 0x2ff0, 0x2ffb,
+ 0x3004, 0x3004,
+ 0x3012, 0x3013,
+ 0x3020, 0x3020,
+ 0x3036, 0x3037,
+ 0x303e, 0x303f,
+ 0x3190, 0x3191,
+ 0x3196, 0x319f,
+ 0x31c0, 0x31e3,
+ 0x3200, 0x321e,
+ 0x322a, 0x3250,
+ 0x3260, 0x327f,
+ 0x328a, 0x32b0,
+ 0x32c0, 0x32fe,
+ 0x3300, 0x33ff,
+ 0x4dc0, 0x4dff,
+ 0xa490, 0xa4c6,
+ 0xa828, 0xa82b,
+ 0xa836, 0xa837,
+ 0xa839, 0xa839,
+ 0xaa77, 0xaa79,
+ 0xfdfd, 0xfdfd,
+ 0xffe4, 0xffe4,
+ 0xffe8, 0xffe8,
+ 0xffed, 0xffee,
+ 0xfffc, 0xfffd,
+ 0x10102, 0x10102,
+ 0x10137, 0x1013f,
+ 0x10179, 0x10189,
+ 0x10190, 0x1019b,
+ 0x101d0, 0x101fc,
+ 0x1d000, 0x1d0f5,
+ 0x1d100, 0x1d126,
+ 0x1d129, 0x1d164,
+ 0x1d16a, 0x1d16c,
+ 0x1d183, 0x1d184,
+ 0x1d18c, 0x1d1a9,
+ 0x1d1ae, 0x1d1dd,
+ 0x1d200, 0x1d241,
+ 0x1d245, 0x1d245,
+ 0x1d300, 0x1d356,
+ 0x1f000, 0x1f02b,
+ 0x1f030, 0x1f093,
+ 0x1f0a0, 0x1f0ae,
+ 0x1f0b1, 0x1f0be,
+ 0x1f0c1, 0x1f0cf,
+ 0x1f0d1, 0x1f0df,
+ 0x1f110, 0x1f12e,
+ 0x1f130, 0x1f169,
+ 0x1f170, 0x1f19a,
+ 0x1f1e6, 0x1f202,
+ 0x1f210, 0x1f23a,
+ 0x1f240, 0x1f248,
+ 0x1f250, 0x1f251,
+ 0x1f300, 0x1f320,
+ 0x1f330, 0x1f335,
+ 0x1f337, 0x1f37c,
+ 0x1f380, 0x1f393,
+ 0x1f3a0, 0x1f3c4,
+ 0x1f3c6, 0x1f3ca,
+ 0x1f3e0, 0x1f3f0,
+ 0x1f400, 0x1f43e,
+ 0x1f440, 0x1f440,
+ 0x1f442, 0x1f4f7,
+ 0x1f4f9, 0x1f4fc,
+ 0x1f500, 0x1f53d,
+ 0x1f550, 0x1f567,
+ 0x1f5fb, 0x1f5ff,
+ 0x1f601, 0x1f610,
+ 0x1f612, 0x1f614,
+ 0x1f616, 0x1f616,
+ 0x1f618, 0x1f618,
+ 0x1f61a, 0x1f61a,
+ 0x1f61c, 0x1f61e,
+ 0x1f620, 0x1f625,
+ 0x1f628, 0x1f62b,
+ 0x1f62d, 0x1f62d,
+ 0x1f630, 0x1f633,
+ 0x1f635, 0x1f640,
+ 0x1f645, 0x1f64f,
+ 0x1f680, 0x1f6c5,
+ 0x1f700, 0x1f773,
+}; /* CR_So */
+
+/* 'Z': Major Category */
+static const OnigCodePoint CR_Z[] = {
+ 9,
+ 0x0020, 0x0020,
+ 0x00a0, 0x00a0,
+ 0x1680, 0x1680,
+ 0x180e, 0x180e,
+ 0x2000, 0x200a,
+ 0x2028, 0x2029,
+ 0x202f, 0x202f,
+ 0x205f, 0x205f,
+ 0x3000, 0x3000,
+}; /* CR_Z */
+
+/* 'Zl': General Category */
+static const OnigCodePoint CR_Zl[] = {
+ 1,
+ 0x2028, 0x2028,
+}; /* CR_Zl */
+
+/* 'Zp': General Category */
+static const OnigCodePoint CR_Zp[] = {
+ 1,
+ 0x2029, 0x2029,
+}; /* CR_Zp */
+
+/* 'Zs': General Category */
+static const OnigCodePoint CR_Zs[] = {
+ 8,
+ 0x0020, 0x0020,
+ 0x00a0, 0x00a0,
+ 0x1680, 0x1680,
+ 0x180e, 0x180e,
+ 0x2000, 0x200a,
+ 0x202f, 0x202f,
+ 0x205f, 0x205f,
+ 0x3000, 0x3000,
+}; /* CR_Zs */
+
+/* 'Math': Derived Property */
+static const OnigCodePoint CR_Math[] = {
+ 106,
+ 0x002b, 0x002b,
+ 0x003c, 0x003e,
+ 0x005e, 0x005e,
+ 0x007c, 0x007c,
+ 0x007e, 0x007e,
+ 0x00ac, 0x00ac,
+ 0x00b1, 0x00b1,
+ 0x00d7, 0x00d7,
+ 0x00f7, 0x00f7,
+ 0x03d0, 0x03d2,
+ 0x03d5, 0x03d5,
+ 0x03f0, 0x03f1,
+ 0x03f4, 0x03f6,
+ 0x0606, 0x0608,
+ 0x2016, 0x2016,
+ 0x2032, 0x2034,
+ 0x2040, 0x2040,
+ 0x2044, 0x2044,
+ 0x2052, 0x2052,
+ 0x2061, 0x2064,
+ 0x207a, 0x207e,
+ 0x208a, 0x208e,
+ 0x20d0, 0x20dc,
+ 0x20e1, 0x20e1,
+ 0x20e5, 0x20e6,
+ 0x20eb, 0x20ef,
+ 0x2102, 0x2102,
+ 0x2107, 0x2107,
+ 0x210a, 0x2113,
+ 0x2115, 0x2115,
+ 0x2118, 0x211d,
+ 0x2124, 0x2124,
+ 0x2128, 0x2129,
+ 0x212c, 0x212d,
+ 0x212f, 0x2131,
+ 0x2133, 0x2138,
+ 0x213c, 0x2149,
+ 0x214b, 0x214b,
+ 0x2190, 0x21a7,
+ 0x21a9, 0x21ae,
+ 0x21b0, 0x21b1,
+ 0x21b6, 0x21b7,
+ 0x21bc, 0x21db,
+ 0x21dd, 0x21dd,
+ 0x21e4, 0x21e5,
+ 0x21f4, 0x22ff,
+ 0x2308, 0x230b,
+ 0x2320, 0x2321,
+ 0x237c, 0x237c,
+ 0x239b, 0x23b5,
+ 0x23b7, 0x23b7,
+ 0x23d0, 0x23d0,
+ 0x23dc, 0x23e2,
+ 0x25a0, 0x25a1,
+ 0x25ae, 0x25b7,
+ 0x25bc, 0x25c1,
+ 0x25c6, 0x25c7,
+ 0x25ca, 0x25cb,
+ 0x25cf, 0x25d3,
+ 0x25e2, 0x25e2,
+ 0x25e4, 0x25e4,
+ 0x25e7, 0x25ec,
+ 0x25f8, 0x25ff,
+ 0x2605, 0x2606,
+ 0x2640, 0x2640,
+ 0x2642, 0x2642,
+ 0x2660, 0x2663,
+ 0x266d, 0x266f,
+ 0x27c0, 0x27ca,
+ 0x27cc, 0x27cc,
+ 0x27ce, 0x27ff,
+ 0x2900, 0x2aff,
+ 0x2b30, 0x2b44,
+ 0x2b47, 0x2b4c,
+ 0xfb29, 0xfb29,
+ 0xfe61, 0xfe66,
+ 0xfe68, 0xfe68,
+ 0xff0b, 0xff0b,
+ 0xff1c, 0xff1e,
+ 0xff3c, 0xff3c,
+ 0xff3e, 0xff3e,
+ 0xff5c, 0xff5c,
+ 0xff5e, 0xff5e,
+ 0xffe2, 0xffe2,
+ 0xffe9, 0xffec,
+ 0x1d400, 0x1d454,
+ 0x1d456, 0x1d49c,
+ 0x1d49e, 0x1d49f,
+ 0x1d4a2, 0x1d4a2,
+ 0x1d4a5, 0x1d4a6,
+ 0x1d4a9, 0x1d4ac,
+ 0x1d4ae, 0x1d4b9,
+ 0x1d4bb, 0x1d4bb,
+ 0x1d4bd, 0x1d4c3,
+ 0x1d4c5, 0x1d505,
+ 0x1d507, 0x1d50a,
+ 0x1d50d, 0x1d514,
+ 0x1d516, 0x1d51c,
+ 0x1d51e, 0x1d539,
+ 0x1d53b, 0x1d53e,
+ 0x1d540, 0x1d544,
+ 0x1d546, 0x1d546,
+ 0x1d54a, 0x1d550,
+ 0x1d552, 0x1d6a5,
+ 0x1d6a8, 0x1d7cb,
+ 0x1d7ce, 0x1d7ff,
+}; /* CR_Math */
+
+/* 'Alphabetic': Derived Property */
+static const OnigCodePoint CR_Alphabetic[] = {
+ 486,
+ 0x0041, 0x005a,
+ 0x0061, 0x007a,
+ 0x00aa, 0x00aa,
+ 0x00b5, 0x00b5,
+ 0x00ba, 0x00ba,
+ 0x00c0, 0x00d6,
+ 0x00d8, 0x00f6,
+ 0x00f8, 0x02c1,
+ 0x02c6, 0x02d1,
+ 0x02e0, 0x02e4,
+ 0x02ec, 0x02ec,
+ 0x02ee, 0x02ee,
+ 0x0345, 0x0345,
+ 0x0370, 0x0374,
+ 0x0376, 0x0377,
+ 0x037a, 0x037d,
+ 0x0386, 0x0386,
+ 0x0388, 0x038a,
+ 0x038c, 0x038c,
+ 0x038e, 0x03a1,
+ 0x03a3, 0x03f5,
+ 0x03f7, 0x0481,
+ 0x048a, 0x0527,
+ 0x0531, 0x0556,
+ 0x0559, 0x0559,
+ 0x0561, 0x0587,
+ 0x05b0, 0x05bd,
+ 0x05bf, 0x05bf,
+ 0x05c1, 0x05c2,
+ 0x05c4, 0x05c5,
+ 0x05c7, 0x05c7,
+ 0x05d0, 0x05ea,
+ 0x05f0, 0x05f2,
+ 0x0610, 0x061a,
+ 0x0620, 0x0657,
+ 0x0659, 0x065f,
+ 0x066e, 0x06d3,
+ 0x06d5, 0x06dc,
+ 0x06e1, 0x06e8,
+ 0x06ed, 0x06ef,
+ 0x06fa, 0x06fc,
+ 0x06ff, 0x06ff,
+ 0x0710, 0x073f,
+ 0x074d, 0x07b1,
+ 0x07ca, 0x07ea,
+ 0x07f4, 0x07f5,
+ 0x07fa, 0x07fa,
+ 0x0800, 0x0817,
+ 0x081a, 0x082c,
+ 0x0840, 0x0858,
+ 0x0900, 0x093b,
+ 0x093d, 0x094c,
+ 0x094e, 0x0950,
+ 0x0955, 0x0963,
+ 0x0971, 0x0977,
+ 0x0979, 0x097f,
+ 0x0981, 0x0983,
+ 0x0985, 0x098c,
+ 0x098f, 0x0990,
+ 0x0993, 0x09a8,
+ 0x09aa, 0x09b0,
+ 0x09b2, 0x09b2,
+ 0x09b6, 0x09b9,
+ 0x09bd, 0x09c4,
+ 0x09c7, 0x09c8,
+ 0x09cb, 0x09cc,
+ 0x09ce, 0x09ce,
+ 0x09d7, 0x09d7,
+ 0x09dc, 0x09dd,
+ 0x09df, 0x09e3,
+ 0x09f0, 0x09f1,
+ 0x0a01, 0x0a03,
+ 0x0a05, 0x0a0a,
+ 0x0a0f, 0x0a10,
+ 0x0a13, 0x0a28,
+ 0x0a2a, 0x0a30,
+ 0x0a32, 0x0a33,
+ 0x0a35, 0x0a36,
+ 0x0a38, 0x0a39,
+ 0x0a3e, 0x0a42,
+ 0x0a47, 0x0a48,
+ 0x0a4b, 0x0a4c,
+ 0x0a51, 0x0a51,
+ 0x0a59, 0x0a5c,
+ 0x0a5e, 0x0a5e,
+ 0x0a70, 0x0a75,
+ 0x0a81, 0x0a83,
+ 0x0a85, 0x0a8d,
+ 0x0a8f, 0x0a91,
+ 0x0a93, 0x0aa8,
+ 0x0aaa, 0x0ab0,
+ 0x0ab2, 0x0ab3,
+ 0x0ab5, 0x0ab9,
+ 0x0abd, 0x0ac5,
+ 0x0ac7, 0x0ac9,
+ 0x0acb, 0x0acc,
+ 0x0ad0, 0x0ad0,
+ 0x0ae0, 0x0ae3,
+ 0x0b01, 0x0b03,
+ 0x0b05, 0x0b0c,
+ 0x0b0f, 0x0b10,
+ 0x0b13, 0x0b28,
+ 0x0b2a, 0x0b30,
+ 0x0b32, 0x0b33,
+ 0x0b35, 0x0b39,
+ 0x0b3d, 0x0b44,
+ 0x0b47, 0x0b48,
+ 0x0b4b, 0x0b4c,
+ 0x0b56, 0x0b57,
+ 0x0b5c, 0x0b5d,
+ 0x0b5f, 0x0b63,
+ 0x0b71, 0x0b71,
+ 0x0b82, 0x0b83,
+ 0x0b85, 0x0b8a,
+ 0x0b8e, 0x0b90,
+ 0x0b92, 0x0b95,
+ 0x0b99, 0x0b9a,
+ 0x0b9c, 0x0b9c,
+ 0x0b9e, 0x0b9f,
+ 0x0ba3, 0x0ba4,
+ 0x0ba8, 0x0baa,
+ 0x0bae, 0x0bb9,
+ 0x0bbe, 0x0bc2,
+ 0x0bc6, 0x0bc8,
+ 0x0bca, 0x0bcc,
+ 0x0bd0, 0x0bd0,
+ 0x0bd7, 0x0bd7,
+ 0x0c01, 0x0c03,
+ 0x0c05, 0x0c0c,
+ 0x0c0e, 0x0c10,
+ 0x0c12, 0x0c28,
+ 0x0c2a, 0x0c33,
+ 0x0c35, 0x0c39,
+ 0x0c3d, 0x0c44,
+ 0x0c46, 0x0c48,
+ 0x0c4a, 0x0c4c,
+ 0x0c55, 0x0c56,
+ 0x0c58, 0x0c59,
+ 0x0c60, 0x0c63,
+ 0x0c82, 0x0c83,
+ 0x0c85, 0x0c8c,
+ 0x0c8e, 0x0c90,
+ 0x0c92, 0x0ca8,
+ 0x0caa, 0x0cb3,
+ 0x0cb5, 0x0cb9,
+ 0x0cbd, 0x0cc4,
+ 0x0cc6, 0x0cc8,
+ 0x0cca, 0x0ccc,
+ 0x0cd5, 0x0cd6,
+ 0x0cde, 0x0cde,
+ 0x0ce0, 0x0ce3,
+ 0x0cf1, 0x0cf2,
+ 0x0d02, 0x0d03,
+ 0x0d05, 0x0d0c,
+ 0x0d0e, 0x0d10,
+ 0x0d12, 0x0d3a,
+ 0x0d3d, 0x0d44,
+ 0x0d46, 0x0d48,
+ 0x0d4a, 0x0d4c,
+ 0x0d4e, 0x0d4e,
+ 0x0d57, 0x0d57,
+ 0x0d60, 0x0d63,
+ 0x0d7a, 0x0d7f,
+ 0x0d82, 0x0d83,
+ 0x0d85, 0x0d96,
+ 0x0d9a, 0x0db1,
+ 0x0db3, 0x0dbb,
+ 0x0dbd, 0x0dbd,
+ 0x0dc0, 0x0dc6,
+ 0x0dcf, 0x0dd4,
+ 0x0dd6, 0x0dd6,
+ 0x0dd8, 0x0ddf,
+ 0x0df2, 0x0df3,
+ 0x0e01, 0x0e3a,
+ 0x0e40, 0x0e46,
+ 0x0e4d, 0x0e4d,
+ 0x0e81, 0x0e82,
+ 0x0e84, 0x0e84,
+ 0x0e87, 0x0e88,
+ 0x0e8a, 0x0e8a,
+ 0x0e8d, 0x0e8d,
+ 0x0e94, 0x0e97,
+ 0x0e99, 0x0e9f,
+ 0x0ea1, 0x0ea3,
+ 0x0ea5, 0x0ea5,
+ 0x0ea7, 0x0ea7,
+ 0x0eaa, 0x0eab,
+ 0x0ead, 0x0eb9,
+ 0x0ebb, 0x0ebd,
+ 0x0ec0, 0x0ec4,
+ 0x0ec6, 0x0ec6,
+ 0x0ecd, 0x0ecd,
+ 0x0edc, 0x0edd,
+ 0x0f00, 0x0f00,
+ 0x0f40, 0x0f47,
+ 0x0f49, 0x0f6c,
+ 0x0f71, 0x0f81,
+ 0x0f88, 0x0f97,
+ 0x0f99, 0x0fbc,
+ 0x1000, 0x1036,
+ 0x1038, 0x1038,
+ 0x103b, 0x103f,
+ 0x1050, 0x1062,
+ 0x1065, 0x1068,
+ 0x106e, 0x1086,
+ 0x108e, 0x108e,
+ 0x109c, 0x109d,
+ 0x10a0, 0x10c5,
+ 0x10d0, 0x10fa,
+ 0x10fc, 0x10fc,
+ 0x1100, 0x1248,
+ 0x124a, 0x124d,
+ 0x1250, 0x1256,
+ 0x1258, 0x1258,
+ 0x125a, 0x125d,
+ 0x1260, 0x1288,
+ 0x128a, 0x128d,
+ 0x1290, 0x12b0,
+ 0x12b2, 0x12b5,
+ 0x12b8, 0x12be,
+ 0x12c0, 0x12c0,
+ 0x12c2, 0x12c5,
+ 0x12c8, 0x12d6,
+ 0x12d8, 0x1310,
+ 0x1312, 0x1315,
+ 0x1318, 0x135a,
+ 0x135f, 0x135f,
+ 0x1380, 0x138f,
+ 0x13a0, 0x13f4,
+ 0x1401, 0x166c,
+ 0x166f, 0x167f,
+ 0x1681, 0x169a,
+ 0x16a0, 0x16ea,
+ 0x16ee, 0x16f0,
+ 0x1700, 0x170c,
+ 0x170e, 0x1713,
+ 0x1720, 0x1733,
+ 0x1740, 0x1753,
+ 0x1760, 0x176c,
+ 0x176e, 0x1770,
+ 0x1772, 0x1773,
+ 0x1780, 0x17b3,
+ 0x17b6, 0x17c8,
+ 0x17d7, 0x17d7,
+ 0x17dc, 0x17dc,
+ 0x1820, 0x1877,
+ 0x1880, 0x18aa,
+ 0x18b0, 0x18f5,
+ 0x1900, 0x191c,
+ 0x1920, 0x192b,
+ 0x1930, 0x1938,
+ 0x1950, 0x196d,
+ 0x1970, 0x1974,
+ 0x1980, 0x19ab,
+ 0x19b0, 0x19c9,
+ 0x1a00, 0x1a1b,
+ 0x1a20, 0x1a5e,
+ 0x1a61, 0x1a74,
+ 0x1aa7, 0x1aa7,
+ 0x1b00, 0x1b33,
+ 0x1b35, 0x1b43,
+ 0x1b45, 0x1b4b,
+ 0x1b80, 0x1ba9,
+ 0x1bae, 0x1baf,
+ 0x1bc0, 0x1be5,
+ 0x1be7, 0x1bf1,
+ 0x1c00, 0x1c35,
+ 0x1c4d, 0x1c4f,
+ 0x1c5a, 0x1c7d,
+ 0x1ce9, 0x1cec,
+ 0x1cee, 0x1cf2,
+ 0x1d00, 0x1dbf,
+ 0x1e00, 0x1f15,
+ 0x1f18, 0x1f1d,
+ 0x1f20, 0x1f45,
+ 0x1f48, 0x1f4d,
+ 0x1f50, 0x1f57,
+ 0x1f59, 0x1f59,
+ 0x1f5b, 0x1f5b,
+ 0x1f5d, 0x1f5d,
+ 0x1f5f, 0x1f7d,
+ 0x1f80, 0x1fb4,
+ 0x1fb6, 0x1fbc,
+ 0x1fbe, 0x1fbe,
+ 0x1fc2, 0x1fc4,
+ 0x1fc6, 0x1fcc,
+ 0x1fd0, 0x1fd3,
+ 0x1fd6, 0x1fdb,
+ 0x1fe0, 0x1fec,
+ 0x1ff2, 0x1ff4,
+ 0x1ff6, 0x1ffc,
+ 0x2071, 0x2071,
+ 0x207f, 0x207f,
+ 0x2090, 0x209c,
+ 0x2102, 0x2102,
+ 0x2107, 0x2107,
+ 0x210a, 0x2113,
+ 0x2115, 0x2115,
+ 0x2119, 0x211d,
+ 0x2124, 0x2124,
+ 0x2126, 0x2126,
+ 0x2128, 0x2128,
+ 0x212a, 0x212d,
+ 0x212f, 0x2139,
+ 0x213c, 0x213f,
+ 0x2145, 0x2149,
+ 0x214e, 0x214e,
+ 0x2160, 0x2188,
+ 0x24b6, 0x24e9,
+ 0x2c00, 0x2c2e,
+ 0x2c30, 0x2c5e,
+ 0x2c60, 0x2ce4,
+ 0x2ceb, 0x2cee,
+ 0x2d00, 0x2d25,
+ 0x2d30, 0x2d65,
+ 0x2d6f, 0x2d6f,
+ 0x2d80, 0x2d96,
+ 0x2da0, 0x2da6,
+ 0x2da8, 0x2dae,
+ 0x2db0, 0x2db6,
+ 0x2db8, 0x2dbe,
+ 0x2dc0, 0x2dc6,
+ 0x2dc8, 0x2dce,
+ 0x2dd0, 0x2dd6,
+ 0x2dd8, 0x2dde,
+ 0x2de0, 0x2dff,
+ 0x2e2f, 0x2e2f,
+ 0x3005, 0x3007,
+ 0x3021, 0x3029,
+ 0x3031, 0x3035,
+ 0x3038, 0x303c,
+ 0x3041, 0x3096,
+ 0x309d, 0x309f,
+ 0x30a1, 0x30fa,
+ 0x30fc, 0x30ff,
+ 0x3105, 0x312d,
+ 0x3131, 0x318e,
+ 0x31a0, 0x31ba,
+ 0x31f0, 0x31ff,
+ 0x3400, 0x4db5,
+ 0x4e00, 0x9fcb,
+ 0xa000, 0xa48c,
+ 0xa4d0, 0xa4fd,
+ 0xa500, 0xa60c,
+ 0xa610, 0xa61f,
+ 0xa62a, 0xa62b,
+ 0xa640, 0xa66e,
+ 0xa67f, 0xa697,
+ 0xa6a0, 0xa6ef,
+ 0xa717, 0xa71f,
+ 0xa722, 0xa788,
+ 0xa78b, 0xa78e,
+ 0xa790, 0xa791,
+ 0xa7a0, 0xa7a9,
+ 0xa7fa, 0xa801,
+ 0xa803, 0xa805,
+ 0xa807, 0xa80a,
+ 0xa80c, 0xa827,
+ 0xa840, 0xa873,
+ 0xa880, 0xa8c3,
+ 0xa8f2, 0xa8f7,
+ 0xa8fb, 0xa8fb,
+ 0xa90a, 0xa92a,
+ 0xa930, 0xa952,
+ 0xa960, 0xa97c,
+ 0xa980, 0xa9b2,
+ 0xa9b4, 0xa9bf,
+ 0xa9cf, 0xa9cf,
+ 0xaa00, 0xaa36,
+ 0xaa40, 0xaa4d,
+ 0xaa60, 0xaa76,
+ 0xaa7a, 0xaa7a,
+ 0xaa80, 0xaabe,
+ 0xaac0, 0xaac0,
+ 0xaac2, 0xaac2,
+ 0xaadb, 0xaadd,
+ 0xab01, 0xab06,
+ 0xab09, 0xab0e,
+ 0xab11, 0xab16,
+ 0xab20, 0xab26,
+ 0xab28, 0xab2e,
+ 0xabc0, 0xabea,
+ 0xac00, 0xd7a3,
+ 0xd7b0, 0xd7c6,
+ 0xd7cb, 0xd7fb,
+ 0xf900, 0xfa2d,
+ 0xfa30, 0xfa6d,
+ 0xfa70, 0xfad9,
+ 0xfb00, 0xfb06,
+ 0xfb13, 0xfb17,
+ 0xfb1d, 0xfb28,
+ 0xfb2a, 0xfb36,
+ 0xfb38, 0xfb3c,
+ 0xfb3e, 0xfb3e,
+ 0xfb40, 0xfb41,
+ 0xfb43, 0xfb44,
+ 0xfb46, 0xfbb1,
+ 0xfbd3, 0xfd3d,
+ 0xfd50, 0xfd8f,
+ 0xfd92, 0xfdc7,
+ 0xfdf0, 0xfdfb,
+ 0xfe70, 0xfe74,
+ 0xfe76, 0xfefc,
+ 0xff21, 0xff3a,
+ 0xff41, 0xff5a,
+ 0xff66, 0xffbe,
+ 0xffc2, 0xffc7,
+ 0xffca, 0xffcf,
+ 0xffd2, 0xffd7,
+ 0xffda, 0xffdc,
+ 0x10000, 0x1000b,
+ 0x1000d, 0x10026,
+ 0x10028, 0x1003a,
+ 0x1003c, 0x1003d,
+ 0x1003f, 0x1004d,
+ 0x10050, 0x1005d,
+ 0x10080, 0x100fa,
+ 0x10140, 0x10174,
+ 0x10280, 0x1029c,
+ 0x102a0, 0x102d0,
+ 0x10300, 0x1031e,
+ 0x10330, 0x1034a,
+ 0x10380, 0x1039d,
+ 0x103a0, 0x103c3,
+ 0x103c8, 0x103cf,
+ 0x103d1, 0x103d5,
+ 0x10400, 0x1049d,
+ 0x10800, 0x10805,
+ 0x10808, 0x10808,
+ 0x1080a, 0x10835,
+ 0x10837, 0x10838,
+ 0x1083c, 0x1083c,
+ 0x1083f, 0x10855,
+ 0x10900, 0x10915,
+ 0x10920, 0x10939,
+ 0x10a00, 0x10a03,
+ 0x10a05, 0x10a06,
+ 0x10a0c, 0x10a13,
+ 0x10a15, 0x10a17,
+ 0x10a19, 0x10a33,
+ 0x10a60, 0x10a7c,
+ 0x10b00, 0x10b35,
+ 0x10b40, 0x10b55,
+ 0x10b60, 0x10b72,
+ 0x10c00, 0x10c48,
+ 0x11000, 0x11045,
+ 0x11082, 0x110b8,
+ 0x12000, 0x1236e,
+ 0x12400, 0x12462,
+ 0x13000, 0x1342e,
+ 0x16800, 0x16a38,
+ 0x1b000, 0x1b001,
+ 0x1d400, 0x1d454,
+ 0x1d456, 0x1d49c,
+ 0x1d49e, 0x1d49f,
+ 0x1d4a2, 0x1d4a2,
+ 0x1d4a5, 0x1d4a6,
+ 0x1d4a9, 0x1d4ac,
+ 0x1d4ae, 0x1d4b9,
+ 0x1d4bb, 0x1d4bb,
+ 0x1d4bd, 0x1d4c3,
+ 0x1d4c5, 0x1d505,
+ 0x1d507, 0x1d50a,
+ 0x1d50d, 0x1d514,
+ 0x1d516, 0x1d51c,
+ 0x1d51e, 0x1d539,
+ 0x1d53b, 0x1d53e,
+ 0x1d540, 0x1d544,
+ 0x1d546, 0x1d546,
+ 0x1d54a, 0x1d550,
+ 0x1d552, 0x1d6a5,
+ 0x1d6a8, 0x1d6c0,
+ 0x1d6c2, 0x1d6da,
+ 0x1d6dc, 0x1d6fa,
+ 0x1d6fc, 0x1d714,
+ 0x1d716, 0x1d734,
+ 0x1d736, 0x1d74e,
+ 0x1d750, 0x1d76e,
+ 0x1d770, 0x1d788,
+ 0x1d78a, 0x1d7a8,
+ 0x1d7aa, 0x1d7c2,
+ 0x1d7c4, 0x1d7cb,
+ 0x20000, 0x2a6d6,
+ 0x2a700, 0x2b734,
+ 0x2b740, 0x2b81d,
+ 0x2f800, 0x2fa1d,
+}; /* CR_Alphabetic */
+
+/* 'Lowercase': Derived Property */
+static const OnigCodePoint CR_Lowercase[] = {
+ 612,
+ 0x0061, 0x007a,
+ 0x00aa, 0x00aa,
+ 0x00b5, 0x00b5,
+ 0x00ba, 0x00ba,
+ 0x00df, 0x00f6,
+ 0x00f8, 0x00ff,
+ 0x0101, 0x0101,
+ 0x0103, 0x0103,
+ 0x0105, 0x0105,
+ 0x0107, 0x0107,
+ 0x0109, 0x0109,
+ 0x010b, 0x010b,
+ 0x010d, 0x010d,
+ 0x010f, 0x010f,
+ 0x0111, 0x0111,
+ 0x0113, 0x0113,
+ 0x0115, 0x0115,
+ 0x0117, 0x0117,
+ 0x0119, 0x0119,
+ 0x011b, 0x011b,
+ 0x011d, 0x011d,
+ 0x011f, 0x011f,
+ 0x0121, 0x0121,
+ 0x0123, 0x0123,
+ 0x0125, 0x0125,
+ 0x0127, 0x0127,
+ 0x0129, 0x0129,
+ 0x012b, 0x012b,
+ 0x012d, 0x012d,
+ 0x012f, 0x012f,
+ 0x0131, 0x0131,
+ 0x0133, 0x0133,
+ 0x0135, 0x0135,
+ 0x0137, 0x0138,
+ 0x013a, 0x013a,
+ 0x013c, 0x013c,
+ 0x013e, 0x013e,
+ 0x0140, 0x0140,
+ 0x0142, 0x0142,
+ 0x0144, 0x0144,
+ 0x0146, 0x0146,
+ 0x0148, 0x0149,
+ 0x014b, 0x014b,
+ 0x014d, 0x014d,
+ 0x014f, 0x014f,
+ 0x0151, 0x0151,
+ 0x0153, 0x0153,
+ 0x0155, 0x0155,
+ 0x0157, 0x0157,
+ 0x0159, 0x0159,
+ 0x015b, 0x015b,
+ 0x015d, 0x015d,
+ 0x015f, 0x015f,
+ 0x0161, 0x0161,
+ 0x0163, 0x0163,
+ 0x0165, 0x0165,
+ 0x0167, 0x0167,
+ 0x0169, 0x0169,
+ 0x016b, 0x016b,
+ 0x016d, 0x016d,
+ 0x016f, 0x016f,
+ 0x0171, 0x0171,
+ 0x0173, 0x0173,
+ 0x0175, 0x0175,
+ 0x0177, 0x0177,
+ 0x017a, 0x017a,
+ 0x017c, 0x017c,
+ 0x017e, 0x0180,
+ 0x0183, 0x0183,
+ 0x0185, 0x0185,
+ 0x0188, 0x0188,
+ 0x018c, 0x018d,
+ 0x0192, 0x0192,
+ 0x0195, 0x0195,
+ 0x0199, 0x019b,
+ 0x019e, 0x019e,
+ 0x01a1, 0x01a1,
+ 0x01a3, 0x01a3,
+ 0x01a5, 0x01a5,
+ 0x01a8, 0x01a8,
+ 0x01aa, 0x01ab,
+ 0x01ad, 0x01ad,
+ 0x01b0, 0x01b0,
+ 0x01b4, 0x01b4,
+ 0x01b6, 0x01b6,
+ 0x01b9, 0x01ba,
+ 0x01bd, 0x01bf,
+ 0x01c6, 0x01c6,
+ 0x01c9, 0x01c9,
+ 0x01cc, 0x01cc,
+ 0x01ce, 0x01ce,
+ 0x01d0, 0x01d0,
+ 0x01d2, 0x01d2,
+ 0x01d4, 0x01d4,
+ 0x01d6, 0x01d6,
+ 0x01d8, 0x01d8,
+ 0x01da, 0x01da,
+ 0x01dc, 0x01dd,
+ 0x01df, 0x01df,
+ 0x01e1, 0x01e1,
+ 0x01e3, 0x01e3,
+ 0x01e5, 0x01e5,
+ 0x01e7, 0x01e7,
+ 0x01e9, 0x01e9,
+ 0x01eb, 0x01eb,
+ 0x01ed, 0x01ed,
+ 0x01ef, 0x01f0,
+ 0x01f3, 0x01f3,
+ 0x01f5, 0x01f5,
+ 0x01f9, 0x01f9,
+ 0x01fb, 0x01fb,
+ 0x01fd, 0x01fd,
+ 0x01ff, 0x01ff,
+ 0x0201, 0x0201,
+ 0x0203, 0x0203,
+ 0x0205, 0x0205,
+ 0x0207, 0x0207,
+ 0x0209, 0x0209,
+ 0x020b, 0x020b,
+ 0x020d, 0x020d,
+ 0x020f, 0x020f,
+ 0x0211, 0x0211,
+ 0x0213, 0x0213,
+ 0x0215, 0x0215,
+ 0x0217, 0x0217,
+ 0x0219, 0x0219,
+ 0x021b, 0x021b,
+ 0x021d, 0x021d,
+ 0x021f, 0x021f,
+ 0x0221, 0x0221,
+ 0x0223, 0x0223,
+ 0x0225, 0x0225,
+ 0x0227, 0x0227,
+ 0x0229, 0x0229,
+ 0x022b, 0x022b,
+ 0x022d, 0x022d,
+ 0x022f, 0x022f,
+ 0x0231, 0x0231,
+ 0x0233, 0x0239,
+ 0x023c, 0x023c,
+ 0x023f, 0x0240,
+ 0x0242, 0x0242,
+ 0x0247, 0x0247,
+ 0x0249, 0x0249,
+ 0x024b, 0x024b,
+ 0x024d, 0x024d,
+ 0x024f, 0x0293,
+ 0x0295, 0x02b8,
+ 0x02c0, 0x02c1,
+ 0x02e0, 0x02e4,
+ 0x0345, 0x0345,
+ 0x0371, 0x0371,
+ 0x0373, 0x0373,
+ 0x0377, 0x0377,
+ 0x037a, 0x037d,
+ 0x0390, 0x0390,
+ 0x03ac, 0x03ce,
+ 0x03d0, 0x03d1,
+ 0x03d5, 0x03d7,
+ 0x03d9, 0x03d9,
+ 0x03db, 0x03db,
+ 0x03dd, 0x03dd,
+ 0x03df, 0x03df,
+ 0x03e1, 0x03e1,
+ 0x03e3, 0x03e3,
+ 0x03e5, 0x03e5,
+ 0x03e7, 0x03e7,
+ 0x03e9, 0x03e9,
+ 0x03eb, 0x03eb,
+ 0x03ed, 0x03ed,
+ 0x03ef, 0x03f3,
+ 0x03f5, 0x03f5,
+ 0x03f8, 0x03f8,
+ 0x03fb, 0x03fc,
+ 0x0430, 0x045f,
+ 0x0461, 0x0461,
+ 0x0463, 0x0463,
+ 0x0465, 0x0465,
+ 0x0467, 0x0467,
+ 0x0469, 0x0469,
+ 0x046b, 0x046b,
+ 0x046d, 0x046d,
+ 0x046f, 0x046f,
+ 0x0471, 0x0471,
+ 0x0473, 0x0473,
+ 0x0475, 0x0475,
+ 0x0477, 0x0477,
+ 0x0479, 0x0479,
+ 0x047b, 0x047b,
+ 0x047d, 0x047d,
+ 0x047f, 0x047f,
+ 0x0481, 0x0481,
+ 0x048b, 0x048b,
+ 0x048d, 0x048d,
+ 0x048f, 0x048f,
+ 0x0491, 0x0491,
+ 0x0493, 0x0493,
+ 0x0495, 0x0495,
+ 0x0497, 0x0497,
+ 0x0499, 0x0499,
+ 0x049b, 0x049b,
+ 0x049d, 0x049d,
+ 0x049f, 0x049f,
+ 0x04a1, 0x04a1,
+ 0x04a3, 0x04a3,
+ 0x04a5, 0x04a5,
+ 0x04a7, 0x04a7,
+ 0x04a9, 0x04a9,
+ 0x04ab, 0x04ab,
+ 0x04ad, 0x04ad,
+ 0x04af, 0x04af,
+ 0x04b1, 0x04b1,
+ 0x04b3, 0x04b3,
+ 0x04b5, 0x04b5,
+ 0x04b7, 0x04b7,
+ 0x04b9, 0x04b9,
+ 0x04bb, 0x04bb,
+ 0x04bd, 0x04bd,
+ 0x04bf, 0x04bf,
+ 0x04c2, 0x04c2,
+ 0x04c4, 0x04c4,
+ 0x04c6, 0x04c6,
+ 0x04c8, 0x04c8,
+ 0x04ca, 0x04ca,
+ 0x04cc, 0x04cc,
+ 0x04ce, 0x04cf,
+ 0x04d1, 0x04d1,
+ 0x04d3, 0x04d3,
+ 0x04d5, 0x04d5,
+ 0x04d7, 0x04d7,
+ 0x04d9, 0x04d9,
+ 0x04db, 0x04db,
+ 0x04dd, 0x04dd,
+ 0x04df, 0x04df,
+ 0x04e1, 0x04e1,
+ 0x04e3, 0x04e3,
+ 0x04e5, 0x04e5,
+ 0x04e7, 0x04e7,
+ 0x04e9, 0x04e9,
+ 0x04eb, 0x04eb,
+ 0x04ed, 0x04ed,
+ 0x04ef, 0x04ef,
+ 0x04f1, 0x04f1,
+ 0x04f3, 0x04f3,
+ 0x04f5, 0x04f5,
+ 0x04f7, 0x04f7,
+ 0x04f9, 0x04f9,
+ 0x04fb, 0x04fb,
+ 0x04fd, 0x04fd,
+ 0x04ff, 0x04ff,
+ 0x0501, 0x0501,
+ 0x0503, 0x0503,
+ 0x0505, 0x0505,
+ 0x0507, 0x0507,
+ 0x0509, 0x0509,
+ 0x050b, 0x050b,
+ 0x050d, 0x050d,
+ 0x050f, 0x050f,
+ 0x0511, 0x0511,
+ 0x0513, 0x0513,
+ 0x0515, 0x0515,
+ 0x0517, 0x0517,
+ 0x0519, 0x0519,
+ 0x051b, 0x051b,
+ 0x051d, 0x051d,
+ 0x051f, 0x051f,
+ 0x0521, 0x0521,
+ 0x0523, 0x0523,
+ 0x0525, 0x0525,
+ 0x0527, 0x0527,
+ 0x0561, 0x0587,
+ 0x1d00, 0x1dbf,
+ 0x1e01, 0x1e01,
+ 0x1e03, 0x1e03,
+ 0x1e05, 0x1e05,
+ 0x1e07, 0x1e07,
+ 0x1e09, 0x1e09,
+ 0x1e0b, 0x1e0b,
+ 0x1e0d, 0x1e0d,
+ 0x1e0f, 0x1e0f,
+ 0x1e11, 0x1e11,
+ 0x1e13, 0x1e13,
+ 0x1e15, 0x1e15,
+ 0x1e17, 0x1e17,
+ 0x1e19, 0x1e19,
+ 0x1e1b, 0x1e1b,
+ 0x1e1d, 0x1e1d,
+ 0x1e1f, 0x1e1f,
+ 0x1e21, 0x1e21,
+ 0x1e23, 0x1e23,
+ 0x1e25, 0x1e25,
+ 0x1e27, 0x1e27,
+ 0x1e29, 0x1e29,
+ 0x1e2b, 0x1e2b,
+ 0x1e2d, 0x1e2d,
+ 0x1e2f, 0x1e2f,
+ 0x1e31, 0x1e31,
+ 0x1e33, 0x1e33,
+ 0x1e35, 0x1e35,
+ 0x1e37, 0x1e37,
+ 0x1e39, 0x1e39,
+ 0x1e3b, 0x1e3b,
+ 0x1e3d, 0x1e3d,
+ 0x1e3f, 0x1e3f,
+ 0x1e41, 0x1e41,
+ 0x1e43, 0x1e43,
+ 0x1e45, 0x1e45,
+ 0x1e47, 0x1e47,
+ 0x1e49, 0x1e49,
+ 0x1e4b, 0x1e4b,
+ 0x1e4d, 0x1e4d,
+ 0x1e4f, 0x1e4f,
+ 0x1e51, 0x1e51,
+ 0x1e53, 0x1e53,
+ 0x1e55, 0x1e55,
+ 0x1e57, 0x1e57,
+ 0x1e59, 0x1e59,
+ 0x1e5b, 0x1e5b,
+ 0x1e5d, 0x1e5d,
+ 0x1e5f, 0x1e5f,
+ 0x1e61, 0x1e61,
+ 0x1e63, 0x1e63,
+ 0x1e65, 0x1e65,
+ 0x1e67, 0x1e67,
+ 0x1e69, 0x1e69,
+ 0x1e6b, 0x1e6b,
+ 0x1e6d, 0x1e6d,
+ 0x1e6f, 0x1e6f,
+ 0x1e71, 0x1e71,
+ 0x1e73, 0x1e73,
+ 0x1e75, 0x1e75,
+ 0x1e77, 0x1e77,
+ 0x1e79, 0x1e79,
+ 0x1e7b, 0x1e7b,
+ 0x1e7d, 0x1e7d,
+ 0x1e7f, 0x1e7f,
+ 0x1e81, 0x1e81,
+ 0x1e83, 0x1e83,
+ 0x1e85, 0x1e85,
+ 0x1e87, 0x1e87,
+ 0x1e89, 0x1e89,
+ 0x1e8b, 0x1e8b,
+ 0x1e8d, 0x1e8d,
+ 0x1e8f, 0x1e8f,
+ 0x1e91, 0x1e91,
+ 0x1e93, 0x1e93,
+ 0x1e95, 0x1e9d,
+ 0x1e9f, 0x1e9f,
+ 0x1ea1, 0x1ea1,
+ 0x1ea3, 0x1ea3,
+ 0x1ea5, 0x1ea5,
+ 0x1ea7, 0x1ea7,
+ 0x1ea9, 0x1ea9,
+ 0x1eab, 0x1eab,
+ 0x1ead, 0x1ead,
+ 0x1eaf, 0x1eaf,
+ 0x1eb1, 0x1eb1,
+ 0x1eb3, 0x1eb3,
+ 0x1eb5, 0x1eb5,
+ 0x1eb7, 0x1eb7,
+ 0x1eb9, 0x1eb9,
+ 0x1ebb, 0x1ebb,
+ 0x1ebd, 0x1ebd,
+ 0x1ebf, 0x1ebf,
+ 0x1ec1, 0x1ec1,
+ 0x1ec3, 0x1ec3,
+ 0x1ec5, 0x1ec5,
+ 0x1ec7, 0x1ec7,
+ 0x1ec9, 0x1ec9,
+ 0x1ecb, 0x1ecb,
+ 0x1ecd, 0x1ecd,
+ 0x1ecf, 0x1ecf,
+ 0x1ed1, 0x1ed1,
+ 0x1ed3, 0x1ed3,
+ 0x1ed5, 0x1ed5,
+ 0x1ed7, 0x1ed7,
+ 0x1ed9, 0x1ed9,
+ 0x1edb, 0x1edb,
+ 0x1edd, 0x1edd,
+ 0x1edf, 0x1edf,
+ 0x1ee1, 0x1ee1,
+ 0x1ee3, 0x1ee3,
+ 0x1ee5, 0x1ee5,
+ 0x1ee7, 0x1ee7,
+ 0x1ee9, 0x1ee9,
+ 0x1eeb, 0x1eeb,
+ 0x1eed, 0x1eed,
+ 0x1eef, 0x1eef,
+ 0x1ef1, 0x1ef1,
+ 0x1ef3, 0x1ef3,
+ 0x1ef5, 0x1ef5,
+ 0x1ef7, 0x1ef7,
+ 0x1ef9, 0x1ef9,
+ 0x1efb, 0x1efb,
+ 0x1efd, 0x1efd,
+ 0x1eff, 0x1f07,
+ 0x1f10, 0x1f15,
+ 0x1f20, 0x1f27,
+ 0x1f30, 0x1f37,
+ 0x1f40, 0x1f45,
+ 0x1f50, 0x1f57,
+ 0x1f60, 0x1f67,
+ 0x1f70, 0x1f7d,
+ 0x1f80, 0x1f87,
+ 0x1f90, 0x1f97,
+ 0x1fa0, 0x1fa7,
+ 0x1fb0, 0x1fb4,
+ 0x1fb6, 0x1fb7,
+ 0x1fbe, 0x1fbe,
+ 0x1fc2, 0x1fc4,
+ 0x1fc6, 0x1fc7,
+ 0x1fd0, 0x1fd3,
+ 0x1fd6, 0x1fd7,
+ 0x1fe0, 0x1fe7,
+ 0x1ff2, 0x1ff4,
+ 0x1ff6, 0x1ff7,
+ 0x2090, 0x2094,
+ 0x210a, 0x210a,
+ 0x210e, 0x210f,
+ 0x2113, 0x2113,
+ 0x212f, 0x212f,
+ 0x2134, 0x2134,
+ 0x2139, 0x2139,
+ 0x213c, 0x213d,
+ 0x2146, 0x2149,
+ 0x214e, 0x214e,
+ 0x2170, 0x217f,
+ 0x2184, 0x2184,
+ 0x24d0, 0x24e9,
+ 0x2c30, 0x2c5e,
+ 0x2c61, 0x2c61,
+ 0x2c65, 0x2c66,
+ 0x2c68, 0x2c68,
+ 0x2c6a, 0x2c6a,
+ 0x2c6c, 0x2c6c,
+ 0x2c71, 0x2c71,
+ 0x2c73, 0x2c74,
+ 0x2c76, 0x2c7d,
+ 0x2c81, 0x2c81,
+ 0x2c83, 0x2c83,
+ 0x2c85, 0x2c85,
+ 0x2c87, 0x2c87,
+ 0x2c89, 0x2c89,
+ 0x2c8b, 0x2c8b,
+ 0x2c8d, 0x2c8d,
+ 0x2c8f, 0x2c8f,
+ 0x2c91, 0x2c91,
+ 0x2c93, 0x2c93,
+ 0x2c95, 0x2c95,
+ 0x2c97, 0x2c97,
+ 0x2c99, 0x2c99,
+ 0x2c9b, 0x2c9b,
+ 0x2c9d, 0x2c9d,
+ 0x2c9f, 0x2c9f,
+ 0x2ca1, 0x2ca1,
+ 0x2ca3, 0x2ca3,
+ 0x2ca5, 0x2ca5,
+ 0x2ca7, 0x2ca7,
+ 0x2ca9, 0x2ca9,
+ 0x2cab, 0x2cab,
+ 0x2cad, 0x2cad,
+ 0x2caf, 0x2caf,
+ 0x2cb1, 0x2cb1,
+ 0x2cb3, 0x2cb3,
+ 0x2cb5, 0x2cb5,
+ 0x2cb7, 0x2cb7,
+ 0x2cb9, 0x2cb9,
+ 0x2cbb, 0x2cbb,
+ 0x2cbd, 0x2cbd,
+ 0x2cbf, 0x2cbf,
+ 0x2cc1, 0x2cc1,
+ 0x2cc3, 0x2cc3,
+ 0x2cc5, 0x2cc5,
+ 0x2cc7, 0x2cc7,
+ 0x2cc9, 0x2cc9,
+ 0x2ccb, 0x2ccb,
+ 0x2ccd, 0x2ccd,
+ 0x2ccf, 0x2ccf,
+ 0x2cd1, 0x2cd1,
+ 0x2cd3, 0x2cd3,
+ 0x2cd5, 0x2cd5,
+ 0x2cd7, 0x2cd7,
+ 0x2cd9, 0x2cd9,
+ 0x2cdb, 0x2cdb,
+ 0x2cdd, 0x2cdd,
+ 0x2cdf, 0x2cdf,
+ 0x2ce1, 0x2ce1,
+ 0x2ce3, 0x2ce4,
+ 0x2cec, 0x2cec,
+ 0x2cee, 0x2cee,
+ 0x2d00, 0x2d25,
+ 0xa641, 0xa641,
+ 0xa643, 0xa643,
+ 0xa645, 0xa645,
+ 0xa647, 0xa647,
+ 0xa649, 0xa649,
+ 0xa64b, 0xa64b,
+ 0xa64d, 0xa64d,
+ 0xa64f, 0xa64f,
+ 0xa651, 0xa651,
+ 0xa653, 0xa653,
+ 0xa655, 0xa655,
+ 0xa657, 0xa657,
+ 0xa659, 0xa659,
+ 0xa65b, 0xa65b,
+ 0xa65d, 0xa65d,
+ 0xa65f, 0xa65f,
+ 0xa661, 0xa661,
+ 0xa663, 0xa663,
+ 0xa665, 0xa665,
+ 0xa667, 0xa667,
+ 0xa669, 0xa669,
+ 0xa66b, 0xa66b,
+ 0xa66d, 0xa66d,
+ 0xa681, 0xa681,
+ 0xa683, 0xa683,
+ 0xa685, 0xa685,
+ 0xa687, 0xa687,
+ 0xa689, 0xa689,
+ 0xa68b, 0xa68b,
+ 0xa68d, 0xa68d,
+ 0xa68f, 0xa68f,
+ 0xa691, 0xa691,
+ 0xa693, 0xa693,
+ 0xa695, 0xa695,
+ 0xa697, 0xa697,
+ 0xa723, 0xa723,
+ 0xa725, 0xa725,
+ 0xa727, 0xa727,
+ 0xa729, 0xa729,
+ 0xa72b, 0xa72b,
+ 0xa72d, 0xa72d,
+ 0xa72f, 0xa731,
+ 0xa733, 0xa733,
+ 0xa735, 0xa735,
+ 0xa737, 0xa737,
+ 0xa739, 0xa739,
+ 0xa73b, 0xa73b,
+ 0xa73d, 0xa73d,
+ 0xa73f, 0xa73f,
+ 0xa741, 0xa741,
+ 0xa743, 0xa743,
+ 0xa745, 0xa745,
+ 0xa747, 0xa747,
+ 0xa749, 0xa749,
+ 0xa74b, 0xa74b,
+ 0xa74d, 0xa74d,
+ 0xa74f, 0xa74f,
+ 0xa751, 0xa751,
+ 0xa753, 0xa753,
+ 0xa755, 0xa755,
+ 0xa757, 0xa757,
+ 0xa759, 0xa759,
+ 0xa75b, 0xa75b,
+ 0xa75d, 0xa75d,
+ 0xa75f, 0xa75f,
+ 0xa761, 0xa761,
+ 0xa763, 0xa763,
+ 0xa765, 0xa765,
+ 0xa767, 0xa767,
+ 0xa769, 0xa769,
+ 0xa76b, 0xa76b,
+ 0xa76d, 0xa76d,
+ 0xa76f, 0xa778,
+ 0xa77a, 0xa77a,
+ 0xa77c, 0xa77c,
+ 0xa77f, 0xa77f,
+ 0xa781, 0xa781,
+ 0xa783, 0xa783,
+ 0xa785, 0xa785,
+ 0xa787, 0xa787,
+ 0xa78c, 0xa78c,
+ 0xa78e, 0xa78e,
+ 0xa791, 0xa791,
+ 0xa7a1, 0xa7a1,
+ 0xa7a3, 0xa7a3,
+ 0xa7a5, 0xa7a5,
+ 0xa7a7, 0xa7a7,
+ 0xa7a9, 0xa7a9,
+ 0xa7fa, 0xa7fa,
+ 0xfb00, 0xfb06,
+ 0xfb13, 0xfb17,
+ 0xff41, 0xff5a,
+ 0x10428, 0x1044f,
+ 0x1d41a, 0x1d433,
+ 0x1d44e, 0x1d454,
+ 0x1d456, 0x1d467,
+ 0x1d482, 0x1d49b,
+ 0x1d4b6, 0x1d4b9,
+ 0x1d4bb, 0x1d4bb,
+ 0x1d4bd, 0x1d4c3,
+ 0x1d4c5, 0x1d4cf,
+ 0x1d4ea, 0x1d503,
+ 0x1d51e, 0x1d537,
+ 0x1d552, 0x1d56b,
+ 0x1d586, 0x1d59f,
+ 0x1d5ba, 0x1d5d3,
+ 0x1d5ee, 0x1d607,
+ 0x1d622, 0x1d63b,
+ 0x1d656, 0x1d66f,
+ 0x1d68a, 0x1d6a5,
+ 0x1d6c2, 0x1d6da,
+ 0x1d6dc, 0x1d6e1,
+ 0x1d6fc, 0x1d714,
+ 0x1d716, 0x1d71b,
+ 0x1d736, 0x1d74e,
+ 0x1d750, 0x1d755,
+ 0x1d770, 0x1d788,
+ 0x1d78a, 0x1d78f,
+ 0x1d7aa, 0x1d7c2,
+ 0x1d7c4, 0x1d7c9,
+ 0x1d7cb, 0x1d7cb,
+}; /* CR_Lowercase */
+
+/* 'Uppercase': Derived Property */
+static const OnigCodePoint CR_Uppercase[] = {
+ 605,
+ 0x0041, 0x005a,
+ 0x00c0, 0x00d6,
+ 0x00d8, 0x00de,
+ 0x0100, 0x0100,
+ 0x0102, 0x0102,
+ 0x0104, 0x0104,
+ 0x0106, 0x0106,
+ 0x0108, 0x0108,
+ 0x010a, 0x010a,
+ 0x010c, 0x010c,
+ 0x010e, 0x010e,
+ 0x0110, 0x0110,
+ 0x0112, 0x0112,
+ 0x0114, 0x0114,
+ 0x0116, 0x0116,
+ 0x0118, 0x0118,
+ 0x011a, 0x011a,
+ 0x011c, 0x011c,
+ 0x011e, 0x011e,
+ 0x0120, 0x0120,
+ 0x0122, 0x0122,
+ 0x0124, 0x0124,
+ 0x0126, 0x0126,
+ 0x0128, 0x0128,
+ 0x012a, 0x012a,
+ 0x012c, 0x012c,
+ 0x012e, 0x012e,
+ 0x0130, 0x0130,
+ 0x0132, 0x0132,
+ 0x0134, 0x0134,
+ 0x0136, 0x0136,
+ 0x0139, 0x0139,
+ 0x013b, 0x013b,
+ 0x013d, 0x013d,
+ 0x013f, 0x013f,
+ 0x0141, 0x0141,
+ 0x0143, 0x0143,
+ 0x0145, 0x0145,
+ 0x0147, 0x0147,
+ 0x014a, 0x014a,
+ 0x014c, 0x014c,
+ 0x014e, 0x014e,
+ 0x0150, 0x0150,
+ 0x0152, 0x0152,
+ 0x0154, 0x0154,
+ 0x0156, 0x0156,
+ 0x0158, 0x0158,
+ 0x015a, 0x015a,
+ 0x015c, 0x015c,
+ 0x015e, 0x015e,
+ 0x0160, 0x0160,
+ 0x0162, 0x0162,
+ 0x0164, 0x0164,
+ 0x0166, 0x0166,
+ 0x0168, 0x0168,
+ 0x016a, 0x016a,
+ 0x016c, 0x016c,
+ 0x016e, 0x016e,
+ 0x0170, 0x0170,
+ 0x0172, 0x0172,
+ 0x0174, 0x0174,
+ 0x0176, 0x0176,
+ 0x0178, 0x0179,
+ 0x017b, 0x017b,
+ 0x017d, 0x017d,
+ 0x0181, 0x0182,
+ 0x0184, 0x0184,
+ 0x0186, 0x0187,
+ 0x0189, 0x018b,
+ 0x018e, 0x0191,
+ 0x0193, 0x0194,
+ 0x0196, 0x0198,
+ 0x019c, 0x019d,
+ 0x019f, 0x01a0,
+ 0x01a2, 0x01a2,
+ 0x01a4, 0x01a4,
+ 0x01a6, 0x01a7,
+ 0x01a9, 0x01a9,
+ 0x01ac, 0x01ac,
+ 0x01ae, 0x01af,
+ 0x01b1, 0x01b3,
+ 0x01b5, 0x01b5,
+ 0x01b7, 0x01b8,
+ 0x01bc, 0x01bc,
+ 0x01c4, 0x01c4,
+ 0x01c7, 0x01c7,
+ 0x01ca, 0x01ca,
+ 0x01cd, 0x01cd,
+ 0x01cf, 0x01cf,
+ 0x01d1, 0x01d1,
+ 0x01d3, 0x01d3,
+ 0x01d5, 0x01d5,
+ 0x01d7, 0x01d7,
+ 0x01d9, 0x01d9,
+ 0x01db, 0x01db,
+ 0x01de, 0x01de,
+ 0x01e0, 0x01e0,
+ 0x01e2, 0x01e2,
+ 0x01e4, 0x01e4,
+ 0x01e6, 0x01e6,
+ 0x01e8, 0x01e8,
+ 0x01ea, 0x01ea,
+ 0x01ec, 0x01ec,
+ 0x01ee, 0x01ee,
+ 0x01f1, 0x01f1,
+ 0x01f4, 0x01f4,
+ 0x01f6, 0x01f8,
+ 0x01fa, 0x01fa,
+ 0x01fc, 0x01fc,
+ 0x01fe, 0x01fe,
+ 0x0200, 0x0200,
+ 0x0202, 0x0202,
+ 0x0204, 0x0204,
+ 0x0206, 0x0206,
+ 0x0208, 0x0208,
+ 0x020a, 0x020a,
+ 0x020c, 0x020c,
+ 0x020e, 0x020e,
+ 0x0210, 0x0210,
+ 0x0212, 0x0212,
+ 0x0214, 0x0214,
+ 0x0216, 0x0216,
+ 0x0218, 0x0218,
+ 0x021a, 0x021a,
+ 0x021c, 0x021c,
+ 0x021e, 0x021e,
+ 0x0220, 0x0220,
+ 0x0222, 0x0222,
+ 0x0224, 0x0224,
+ 0x0226, 0x0226,
+ 0x0228, 0x0228,
+ 0x022a, 0x022a,
+ 0x022c, 0x022c,
+ 0x022e, 0x022e,
+ 0x0230, 0x0230,
+ 0x0232, 0x0232,
+ 0x023a, 0x023b,
+ 0x023d, 0x023e,
+ 0x0241, 0x0241,
+ 0x0243, 0x0246,
+ 0x0248, 0x0248,
+ 0x024a, 0x024a,
+ 0x024c, 0x024c,
+ 0x024e, 0x024e,
+ 0x0370, 0x0370,
+ 0x0372, 0x0372,
+ 0x0376, 0x0376,
+ 0x0386, 0x0386,
+ 0x0388, 0x038a,
+ 0x038c, 0x038c,
+ 0x038e, 0x038f,
+ 0x0391, 0x03a1,
+ 0x03a3, 0x03ab,
+ 0x03cf, 0x03cf,
+ 0x03d2, 0x03d4,
+ 0x03d8, 0x03d8,
+ 0x03da, 0x03da,
+ 0x03dc, 0x03dc,
+ 0x03de, 0x03de,
+ 0x03e0, 0x03e0,
+ 0x03e2, 0x03e2,
+ 0x03e4, 0x03e4,
+ 0x03e6, 0x03e6,
+ 0x03e8, 0x03e8,
+ 0x03ea, 0x03ea,
+ 0x03ec, 0x03ec,
+ 0x03ee, 0x03ee,
+ 0x03f4, 0x03f4,
+ 0x03f7, 0x03f7,
+ 0x03f9, 0x03fa,
+ 0x03fd, 0x042f,
+ 0x0460, 0x0460,
+ 0x0462, 0x0462,
+ 0x0464, 0x0464,
+ 0x0466, 0x0466,
+ 0x0468, 0x0468,
+ 0x046a, 0x046a,
+ 0x046c, 0x046c,
+ 0x046e, 0x046e,
+ 0x0470, 0x0470,
+ 0x0472, 0x0472,
+ 0x0474, 0x0474,
+ 0x0476, 0x0476,
+ 0x0478, 0x0478,
+ 0x047a, 0x047a,
+ 0x047c, 0x047c,
+ 0x047e, 0x047e,
+ 0x0480, 0x0480,
+ 0x048a, 0x048a,
+ 0x048c, 0x048c,
+ 0x048e, 0x048e,
+ 0x0490, 0x0490,
+ 0x0492, 0x0492,
+ 0x0494, 0x0494,
+ 0x0496, 0x0496,
+ 0x0498, 0x0498,
+ 0x049a, 0x049a,
+ 0x049c, 0x049c,
+ 0x049e, 0x049e,
+ 0x04a0, 0x04a0,
+ 0x04a2, 0x04a2,
+ 0x04a4, 0x04a4,
+ 0x04a6, 0x04a6,
+ 0x04a8, 0x04a8,
+ 0x04aa, 0x04aa,
+ 0x04ac, 0x04ac,
+ 0x04ae, 0x04ae,
+ 0x04b0, 0x04b0,
+ 0x04b2, 0x04b2,
+ 0x04b4, 0x04b4,
+ 0x04b6, 0x04b6,
+ 0x04b8, 0x04b8,
+ 0x04ba, 0x04ba,
+ 0x04bc, 0x04bc,
+ 0x04be, 0x04be,
+ 0x04c0, 0x04c1,
+ 0x04c3, 0x04c3,
+ 0x04c5, 0x04c5,
+ 0x04c7, 0x04c7,
+ 0x04c9, 0x04c9,
+ 0x04cb, 0x04cb,
+ 0x04cd, 0x04cd,
+ 0x04d0, 0x04d0,
+ 0x04d2, 0x04d2,
+ 0x04d4, 0x04d4,
+ 0x04d6, 0x04d6,
+ 0x04d8, 0x04d8,
+ 0x04da, 0x04da,
+ 0x04dc, 0x04dc,
+ 0x04de, 0x04de,
+ 0x04e0, 0x04e0,
+ 0x04e2, 0x04e2,
+ 0x04e4, 0x04e4,
+ 0x04e6, 0x04e6,
+ 0x04e8, 0x04e8,
+ 0x04ea, 0x04ea,
+ 0x04ec, 0x04ec,
+ 0x04ee, 0x04ee,
+ 0x04f0, 0x04f0,
+ 0x04f2, 0x04f2,
+ 0x04f4, 0x04f4,
+ 0x04f6, 0x04f6,
+ 0x04f8, 0x04f8,
+ 0x04fa, 0x04fa,
+ 0x04fc, 0x04fc,
+ 0x04fe, 0x04fe,
+ 0x0500, 0x0500,
+ 0x0502, 0x0502,
+ 0x0504, 0x0504,
+ 0x0506, 0x0506,
+ 0x0508, 0x0508,
+ 0x050a, 0x050a,
+ 0x050c, 0x050c,
+ 0x050e, 0x050e,
+ 0x0510, 0x0510,
+ 0x0512, 0x0512,
+ 0x0514, 0x0514,
+ 0x0516, 0x0516,
+ 0x0518, 0x0518,
+ 0x051a, 0x051a,
+ 0x051c, 0x051c,
+ 0x051e, 0x051e,
+ 0x0520, 0x0520,
+ 0x0522, 0x0522,
+ 0x0524, 0x0524,
+ 0x0526, 0x0526,
+ 0x0531, 0x0556,
+ 0x10a0, 0x10c5,
+ 0x1e00, 0x1e00,
+ 0x1e02, 0x1e02,
+ 0x1e04, 0x1e04,
+ 0x1e06, 0x1e06,
+ 0x1e08, 0x1e08,
+ 0x1e0a, 0x1e0a,
+ 0x1e0c, 0x1e0c,
+ 0x1e0e, 0x1e0e,
+ 0x1e10, 0x1e10,
+ 0x1e12, 0x1e12,
+ 0x1e14, 0x1e14,
+ 0x1e16, 0x1e16,
+ 0x1e18, 0x1e18,
+ 0x1e1a, 0x1e1a,
+ 0x1e1c, 0x1e1c,
+ 0x1e1e, 0x1e1e,
+ 0x1e20, 0x1e20,
+ 0x1e22, 0x1e22,
+ 0x1e24, 0x1e24,
+ 0x1e26, 0x1e26,
+ 0x1e28, 0x1e28,
+ 0x1e2a, 0x1e2a,
+ 0x1e2c, 0x1e2c,
+ 0x1e2e, 0x1e2e,
+ 0x1e30, 0x1e30,
+ 0x1e32, 0x1e32,
+ 0x1e34, 0x1e34,
+ 0x1e36, 0x1e36,
+ 0x1e38, 0x1e38,
+ 0x1e3a, 0x1e3a,
+ 0x1e3c, 0x1e3c,
+ 0x1e3e, 0x1e3e,
+ 0x1e40, 0x1e40,
+ 0x1e42, 0x1e42,
+ 0x1e44, 0x1e44,
+ 0x1e46, 0x1e46,
+ 0x1e48, 0x1e48,
+ 0x1e4a, 0x1e4a,
+ 0x1e4c, 0x1e4c,
+ 0x1e4e, 0x1e4e,
+ 0x1e50, 0x1e50,
+ 0x1e52, 0x1e52,
+ 0x1e54, 0x1e54,
+ 0x1e56, 0x1e56,
+ 0x1e58, 0x1e58,
+ 0x1e5a, 0x1e5a,
+ 0x1e5c, 0x1e5c,
+ 0x1e5e, 0x1e5e,
+ 0x1e60, 0x1e60,
+ 0x1e62, 0x1e62,
+ 0x1e64, 0x1e64,
+ 0x1e66, 0x1e66,
+ 0x1e68, 0x1e68,
+ 0x1e6a, 0x1e6a,
+ 0x1e6c, 0x1e6c,
+ 0x1e6e, 0x1e6e,
+ 0x1e70, 0x1e70,
+ 0x1e72, 0x1e72,
+ 0x1e74, 0x1e74,
+ 0x1e76, 0x1e76,
+ 0x1e78, 0x1e78,
+ 0x1e7a, 0x1e7a,
+ 0x1e7c, 0x1e7c,
+ 0x1e7e, 0x1e7e,
+ 0x1e80, 0x1e80,
+ 0x1e82, 0x1e82,
+ 0x1e84, 0x1e84,
+ 0x1e86, 0x1e86,
+ 0x1e88, 0x1e88,
+ 0x1e8a, 0x1e8a,
+ 0x1e8c, 0x1e8c,
+ 0x1e8e, 0x1e8e,
+ 0x1e90, 0x1e90,
+ 0x1e92, 0x1e92,
+ 0x1e94, 0x1e94,
+ 0x1e9e, 0x1e9e,
+ 0x1ea0, 0x1ea0,
+ 0x1ea2, 0x1ea2,
+ 0x1ea4, 0x1ea4,
+ 0x1ea6, 0x1ea6,
+ 0x1ea8, 0x1ea8,
+ 0x1eaa, 0x1eaa,
+ 0x1eac, 0x1eac,
+ 0x1eae, 0x1eae,
+ 0x1eb0, 0x1eb0,
+ 0x1eb2, 0x1eb2,
+ 0x1eb4, 0x1eb4,
+ 0x1eb6, 0x1eb6,
+ 0x1eb8, 0x1eb8,
+ 0x1eba, 0x1eba,
+ 0x1ebc, 0x1ebc,
+ 0x1ebe, 0x1ebe,
+ 0x1ec0, 0x1ec0,
+ 0x1ec2, 0x1ec2,
+ 0x1ec4, 0x1ec4,
+ 0x1ec6, 0x1ec6,
+ 0x1ec8, 0x1ec8,
+ 0x1eca, 0x1eca,
+ 0x1ecc, 0x1ecc,
+ 0x1ece, 0x1ece,
+ 0x1ed0, 0x1ed0,
+ 0x1ed2, 0x1ed2,
+ 0x1ed4, 0x1ed4,
+ 0x1ed6, 0x1ed6,
+ 0x1ed8, 0x1ed8,
+ 0x1eda, 0x1eda,
+ 0x1edc, 0x1edc,
+ 0x1ede, 0x1ede,
+ 0x1ee0, 0x1ee0,
+ 0x1ee2, 0x1ee2,
+ 0x1ee4, 0x1ee4,
+ 0x1ee6, 0x1ee6,
+ 0x1ee8, 0x1ee8,
+ 0x1eea, 0x1eea,
+ 0x1eec, 0x1eec,
+ 0x1eee, 0x1eee,
+ 0x1ef0, 0x1ef0,
+ 0x1ef2, 0x1ef2,
+ 0x1ef4, 0x1ef4,
+ 0x1ef6, 0x1ef6,
+ 0x1ef8, 0x1ef8,
+ 0x1efa, 0x1efa,
+ 0x1efc, 0x1efc,
+ 0x1efe, 0x1efe,
+ 0x1f08, 0x1f0f,
+ 0x1f18, 0x1f1d,
+ 0x1f28, 0x1f2f,
+ 0x1f38, 0x1f3f,
+ 0x1f48, 0x1f4d,
+ 0x1f59, 0x1f59,
+ 0x1f5b, 0x1f5b,
+ 0x1f5d, 0x1f5d,
+ 0x1f5f, 0x1f5f,
+ 0x1f68, 0x1f6f,
+ 0x1fb8, 0x1fbb,
+ 0x1fc8, 0x1fcb,
+ 0x1fd8, 0x1fdb,
+ 0x1fe8, 0x1fec,
+ 0x1ff8, 0x1ffb,
+ 0x2102, 0x2102,
+ 0x2107, 0x2107,
+ 0x210b, 0x210d,
+ 0x2110, 0x2112,
+ 0x2115, 0x2115,
+ 0x2119, 0x211d,
+ 0x2124, 0x2124,
+ 0x2126, 0x2126,
+ 0x2128, 0x2128,
+ 0x212a, 0x212d,
+ 0x2130, 0x2133,
+ 0x213e, 0x213f,
+ 0x2145, 0x2145,
+ 0x2160, 0x216f,
+ 0x2183, 0x2183,
+ 0x24b6, 0x24cf,
+ 0x2c00, 0x2c2e,
+ 0x2c60, 0x2c60,
+ 0x2c62, 0x2c64,
+ 0x2c67, 0x2c67,
+ 0x2c69, 0x2c69,
+ 0x2c6b, 0x2c6b,
+ 0x2c6d, 0x2c70,
+ 0x2c72, 0x2c72,
+ 0x2c75, 0x2c75,
+ 0x2c7e, 0x2c80,
+ 0x2c82, 0x2c82,
+ 0x2c84, 0x2c84,
+ 0x2c86, 0x2c86,
+ 0x2c88, 0x2c88,
+ 0x2c8a, 0x2c8a,
+ 0x2c8c, 0x2c8c,
+ 0x2c8e, 0x2c8e,
+ 0x2c90, 0x2c90,
+ 0x2c92, 0x2c92,
+ 0x2c94, 0x2c94,
+ 0x2c96, 0x2c96,
+ 0x2c98, 0x2c98,
+ 0x2c9a, 0x2c9a,
+ 0x2c9c, 0x2c9c,
+ 0x2c9e, 0x2c9e,
+ 0x2ca0, 0x2ca0,
+ 0x2ca2, 0x2ca2,
+ 0x2ca4, 0x2ca4,
+ 0x2ca6, 0x2ca6,
+ 0x2ca8, 0x2ca8,
+ 0x2caa, 0x2caa,
+ 0x2cac, 0x2cac,
+ 0x2cae, 0x2cae,
+ 0x2cb0, 0x2cb0,
+ 0x2cb2, 0x2cb2,
+ 0x2cb4, 0x2cb4,
+ 0x2cb6, 0x2cb6,
+ 0x2cb8, 0x2cb8,
+ 0x2cba, 0x2cba,
+ 0x2cbc, 0x2cbc,
+ 0x2cbe, 0x2cbe,
+ 0x2cc0, 0x2cc0,
+ 0x2cc2, 0x2cc2,
+ 0x2cc4, 0x2cc4,
+ 0x2cc6, 0x2cc6,
+ 0x2cc8, 0x2cc8,
+ 0x2cca, 0x2cca,
+ 0x2ccc, 0x2ccc,
+ 0x2cce, 0x2cce,
+ 0x2cd0, 0x2cd0,
+ 0x2cd2, 0x2cd2,
+ 0x2cd4, 0x2cd4,
+ 0x2cd6, 0x2cd6,
+ 0x2cd8, 0x2cd8,
+ 0x2cda, 0x2cda,
+ 0x2cdc, 0x2cdc,
+ 0x2cde, 0x2cde,
+ 0x2ce0, 0x2ce0,
+ 0x2ce2, 0x2ce2,
+ 0x2ceb, 0x2ceb,
+ 0x2ced, 0x2ced,
+ 0xa640, 0xa640,
+ 0xa642, 0xa642,
+ 0xa644, 0xa644,
+ 0xa646, 0xa646,
+ 0xa648, 0xa648,
+ 0xa64a, 0xa64a,
+ 0xa64c, 0xa64c,
+ 0xa64e, 0xa64e,
+ 0xa650, 0xa650,
+ 0xa652, 0xa652,
+ 0xa654, 0xa654,
+ 0xa656, 0xa656,
+ 0xa658, 0xa658,
+ 0xa65a, 0xa65a,
+ 0xa65c, 0xa65c,
+ 0xa65e, 0xa65e,
+ 0xa660, 0xa660,
+ 0xa662, 0xa662,
+ 0xa664, 0xa664,
+ 0xa666, 0xa666,
+ 0xa668, 0xa668,
+ 0xa66a, 0xa66a,
+ 0xa66c, 0xa66c,
+ 0xa680, 0xa680,
+ 0xa682, 0xa682,
+ 0xa684, 0xa684,
+ 0xa686, 0xa686,
+ 0xa688, 0xa688,
+ 0xa68a, 0xa68a,
+ 0xa68c, 0xa68c,
+ 0xa68e, 0xa68e,
+ 0xa690, 0xa690,
+ 0xa692, 0xa692,
+ 0xa694, 0xa694,
+ 0xa696, 0xa696,
+ 0xa722, 0xa722,
+ 0xa724, 0xa724,
+ 0xa726, 0xa726,
+ 0xa728, 0xa728,
+ 0xa72a, 0xa72a,
+ 0xa72c, 0xa72c,
+ 0xa72e, 0xa72e,
+ 0xa732, 0xa732,
+ 0xa734, 0xa734,
+ 0xa736, 0xa736,
+ 0xa738, 0xa738,
+ 0xa73a, 0xa73a,
+ 0xa73c, 0xa73c,
+ 0xa73e, 0xa73e,
+ 0xa740, 0xa740,
+ 0xa742, 0xa742,
+ 0xa744, 0xa744,
+ 0xa746, 0xa746,
+ 0xa748, 0xa748,
+ 0xa74a, 0xa74a,
+ 0xa74c, 0xa74c,
+ 0xa74e, 0xa74e,
+ 0xa750, 0xa750,
+ 0xa752, 0xa752,
+ 0xa754, 0xa754,
+ 0xa756, 0xa756,
+ 0xa758, 0xa758,
+ 0xa75a, 0xa75a,
+ 0xa75c, 0xa75c,
+ 0xa75e, 0xa75e,
+ 0xa760, 0xa760,
+ 0xa762, 0xa762,
+ 0xa764, 0xa764,
+ 0xa766, 0xa766,
+ 0xa768, 0xa768,
+ 0xa76a, 0xa76a,
+ 0xa76c, 0xa76c,
+ 0xa76e, 0xa76e,
+ 0xa779, 0xa779,
+ 0xa77b, 0xa77b,
+ 0xa77d, 0xa77e,
+ 0xa780, 0xa780,
+ 0xa782, 0xa782,
+ 0xa784, 0xa784,
+ 0xa786, 0xa786,
+ 0xa78b, 0xa78b,
+ 0xa78d, 0xa78d,
+ 0xa790, 0xa790,
+ 0xa7a0, 0xa7a0,
+ 0xa7a2, 0xa7a2,
+ 0xa7a4, 0xa7a4,
+ 0xa7a6, 0xa7a6,
+ 0xa7a8, 0xa7a8,
+ 0xff21, 0xff3a,
+ 0x10400, 0x10427,
+ 0x1d400, 0x1d419,
+ 0x1d434, 0x1d44d,
+ 0x1d468, 0x1d481,
+ 0x1d49c, 0x1d49c,
+ 0x1d49e, 0x1d49f,
+ 0x1d4a2, 0x1d4a2,
+ 0x1d4a5, 0x1d4a6,
+ 0x1d4a9, 0x1d4ac,
+ 0x1d4ae, 0x1d4b5,
+ 0x1d4d0, 0x1d4e9,
+ 0x1d504, 0x1d505,
+ 0x1d507, 0x1d50a,
+ 0x1d50d, 0x1d514,
+ 0x1d516, 0x1d51c,
+ 0x1d538, 0x1d539,
+ 0x1d53b, 0x1d53e,
+ 0x1d540, 0x1d544,
+ 0x1d546, 0x1d546,
+ 0x1d54a, 0x1d550,
+ 0x1d56c, 0x1d585,
+ 0x1d5a0, 0x1d5b9,
+ 0x1d5d4, 0x1d5ed,
+ 0x1d608, 0x1d621,
+ 0x1d63c, 0x1d655,
+ 0x1d670, 0x1d689,
+ 0x1d6a8, 0x1d6c0,
+ 0x1d6e2, 0x1d6fa,
+ 0x1d71c, 0x1d734,
+ 0x1d756, 0x1d76e,
+ 0x1d790, 0x1d7a8,
+ 0x1d7ca, 0x1d7ca,
+}; /* CR_Uppercase */
+
+/* 'Cased': Derived Property */
+static const OnigCodePoint CR_Cased[] = {
+ 112,
+ 0x0041, 0x005a,
+ 0x0061, 0x007a,
+ 0x00aa, 0x00aa,
+ 0x00b5, 0x00b5,
+ 0x00ba, 0x00ba,
+ 0x00c0, 0x00d6,
+ 0x00d8, 0x00f6,
+ 0x00f8, 0x01ba,
+ 0x01bc, 0x01bf,
+ 0x01c4, 0x0293,
+ 0x0295, 0x02b8,
+ 0x02c0, 0x02c1,
+ 0x02e0, 0x02e4,
+ 0x0345, 0x0345,
+ 0x0370, 0x0373,
+ 0x0376, 0x0377,
+ 0x037a, 0x037d,
+ 0x0386, 0x0386,
+ 0x0388, 0x038a,
+ 0x038c, 0x038c,
+ 0x038e, 0x03a1,
+ 0x03a3, 0x03f5,
+ 0x03f7, 0x0481,
+ 0x048a, 0x0527,
+ 0x0531, 0x0556,
+ 0x0561, 0x0587,
+ 0x10a0, 0x10c5,
+ 0x1d00, 0x1dbf,
+ 0x1e00, 0x1f15,
+ 0x1f18, 0x1f1d,
+ 0x1f20, 0x1f45,
+ 0x1f48, 0x1f4d,
+ 0x1f50, 0x1f57,
+ 0x1f59, 0x1f59,
+ 0x1f5b, 0x1f5b,
+ 0x1f5d, 0x1f5d,
+ 0x1f5f, 0x1f7d,
+ 0x1f80, 0x1fb4,
+ 0x1fb6, 0x1fbc,
+ 0x1fbe, 0x1fbe,
+ 0x1fc2, 0x1fc4,
+ 0x1fc6, 0x1fcc,
+ 0x1fd0, 0x1fd3,
+ 0x1fd6, 0x1fdb,
+ 0x1fe0, 0x1fec,
+ 0x1ff2, 0x1ff4,
+ 0x1ff6, 0x1ffc,
+ 0x2090, 0x2094,
+ 0x2102, 0x2102,
+ 0x2107, 0x2107,
+ 0x210a, 0x2113,
+ 0x2115, 0x2115,
+ 0x2119, 0x211d,
+ 0x2124, 0x2124,
+ 0x2126, 0x2126,
+ 0x2128, 0x2128,
+ 0x212a, 0x212d,
+ 0x212f, 0x2134,
+ 0x2139, 0x2139,
+ 0x213c, 0x213f,
+ 0x2145, 0x2149,
+ 0x214e, 0x214e,
+ 0x2160, 0x217f,
+ 0x2183, 0x2184,
+ 0x24b6, 0x24e9,
+ 0x2c00, 0x2c2e,
+ 0x2c30, 0x2c5e,
+ 0x2c60, 0x2ce4,
+ 0x2ceb, 0x2cee,
+ 0x2d00, 0x2d25,
+ 0xa640, 0xa66d,
+ 0xa680, 0xa697,
+ 0xa722, 0xa787,
+ 0xa78b, 0xa78e,
+ 0xa790, 0xa791,
+ 0xa7a0, 0xa7a9,
+ 0xa7fa, 0xa7fa,
+ 0xfb00, 0xfb06,
+ 0xfb13, 0xfb17,
+ 0xff21, 0xff3a,
+ 0xff41, 0xff5a,
+ 0x10400, 0x1044f,
+ 0x1d400, 0x1d454,
+ 0x1d456, 0x1d49c,
+ 0x1d49e, 0x1d49f,
+ 0x1d4a2, 0x1d4a2,
+ 0x1d4a5, 0x1d4a6,
+ 0x1d4a9, 0x1d4ac,
+ 0x1d4ae, 0x1d4b9,
+ 0x1d4bb, 0x1d4bb,
+ 0x1d4bd, 0x1d4c3,
+ 0x1d4c5, 0x1d505,
+ 0x1d507, 0x1d50a,
+ 0x1d50d, 0x1d514,
+ 0x1d516, 0x1d51c,
+ 0x1d51e, 0x1d539,
+ 0x1d53b, 0x1d53e,
+ 0x1d540, 0x1d544,
+ 0x1d546, 0x1d546,
+ 0x1d54a, 0x1d550,
+ 0x1d552, 0x1d6a5,
+ 0x1d6a8, 0x1d6c0,
+ 0x1d6c2, 0x1d6da,
+ 0x1d6dc, 0x1d6fa,
+ 0x1d6fc, 0x1d714,
+ 0x1d716, 0x1d734,
+ 0x1d736, 0x1d74e,
+ 0x1d750, 0x1d76e,
+ 0x1d770, 0x1d788,
+ 0x1d78a, 0x1d7a8,
+ 0x1d7aa, 0x1d7c2,
+ 0x1d7c4, 0x1d7cb,
+}; /* CR_Cased */
+
+/* 'Case_Ignorable': Derived Property */
+static const OnigCodePoint CR_Case_Ignorable[] = {
+ 277,
+ 0x0027, 0x0027,
+ 0x002e, 0x002e,
+ 0x003a, 0x003a,
+ 0x005e, 0x005e,
+ 0x0060, 0x0060,
+ 0x00a8, 0x00a8,
+ 0x00ad, 0x00ad,
+ 0x00af, 0x00af,
+ 0x00b4, 0x00b4,
+ 0x00b7, 0x00b8,
+ 0x02b0, 0x036f,
+ 0x0374, 0x0375,
+ 0x037a, 0x037a,
+ 0x0384, 0x0385,
+ 0x0387, 0x0387,
+ 0x0483, 0x0489,
+ 0x0559, 0x0559,
+ 0x0591, 0x05bd,
+ 0x05bf, 0x05bf,
+ 0x05c1, 0x05c2,
+ 0x05c4, 0x05c5,
+ 0x05c7, 0x05c7,
+ 0x05f4, 0x05f4,
+ 0x0600, 0x0603,
+ 0x0610, 0x061a,
+ 0x0640, 0x0640,
+ 0x064b, 0x065f,
+ 0x0670, 0x0670,
+ 0x06d6, 0x06dd,
+ 0x06df, 0x06e8,
+ 0x06ea, 0x06ed,
+ 0x070f, 0x070f,
+ 0x0711, 0x0711,
+ 0x0730, 0x074a,
+ 0x07a6, 0x07b0,
+ 0x07eb, 0x07f5,
+ 0x07fa, 0x07fa,
+ 0x0816, 0x082d,
+ 0x0859, 0x085b,
+ 0x0900, 0x0902,
+ 0x093a, 0x093a,
+ 0x093c, 0x093c,
+ 0x0941, 0x0948,
+ 0x094d, 0x094d,
+ 0x0951, 0x0957,
+ 0x0962, 0x0963,
+ 0x0971, 0x0971,
+ 0x0981, 0x0981,
+ 0x09bc, 0x09bc,
+ 0x09c1, 0x09c4,
+ 0x09cd, 0x09cd,
+ 0x09e2, 0x09e3,
+ 0x0a01, 0x0a02,
+ 0x0a3c, 0x0a3c,
+ 0x0a41, 0x0a42,
+ 0x0a47, 0x0a48,
+ 0x0a4b, 0x0a4d,
+ 0x0a51, 0x0a51,
+ 0x0a70, 0x0a71,
+ 0x0a75, 0x0a75,
+ 0x0a81, 0x0a82,
+ 0x0abc, 0x0abc,
+ 0x0ac1, 0x0ac5,
+ 0x0ac7, 0x0ac8,
+ 0x0acd, 0x0acd,
+ 0x0ae2, 0x0ae3,
+ 0x0b01, 0x0b01,
+ 0x0b3c, 0x0b3c,
+ 0x0b3f, 0x0b3f,
+ 0x0b41, 0x0b44,
+ 0x0b4d, 0x0b4d,
+ 0x0b56, 0x0b56,
+ 0x0b62, 0x0b63,
+ 0x0b82, 0x0b82,
+ 0x0bc0, 0x0bc0,
+ 0x0bcd, 0x0bcd,
+ 0x0c3e, 0x0c40,
+ 0x0c46, 0x0c48,
+ 0x0c4a, 0x0c4d,
+ 0x0c55, 0x0c56,
+ 0x0c62, 0x0c63,
+ 0x0cbc, 0x0cbc,
+ 0x0cbf, 0x0cbf,
+ 0x0cc6, 0x0cc6,
+ 0x0ccc, 0x0ccd,
+ 0x0ce2, 0x0ce3,
+ 0x0d41, 0x0d44,
+ 0x0d4d, 0x0d4d,
+ 0x0d62, 0x0d63,
+ 0x0dca, 0x0dca,
+ 0x0dd2, 0x0dd4,
+ 0x0dd6, 0x0dd6,
+ 0x0e31, 0x0e31,
+ 0x0e34, 0x0e3a,
+ 0x0e46, 0x0e4e,
+ 0x0eb1, 0x0eb1,
+ 0x0eb4, 0x0eb9,
+ 0x0ebb, 0x0ebc,
+ 0x0ec6, 0x0ec6,
+ 0x0ec8, 0x0ecd,
+ 0x0f18, 0x0f19,
+ 0x0f35, 0x0f35,
+ 0x0f37, 0x0f37,
+ 0x0f39, 0x0f39,
+ 0x0f71, 0x0f7e,
+ 0x0f80, 0x0f84,
+ 0x0f86, 0x0f87,
+ 0x0f8d, 0x0f97,
+ 0x0f99, 0x0fbc,
+ 0x0fc6, 0x0fc6,
+ 0x102d, 0x1030,
+ 0x1032, 0x1037,
+ 0x1039, 0x103a,
+ 0x103d, 0x103e,
+ 0x1058, 0x1059,
+ 0x105e, 0x1060,
+ 0x1071, 0x1074,
+ 0x1082, 0x1082,
+ 0x1085, 0x1086,
+ 0x108d, 0x108d,
+ 0x109d, 0x109d,
+ 0x10fc, 0x10fc,
+ 0x135d, 0x135f,
+ 0x1712, 0x1714,
+ 0x1732, 0x1734,
+ 0x1752, 0x1753,
+ 0x1772, 0x1773,
+ 0x17b4, 0x17b5,
+ 0x17b7, 0x17bd,
+ 0x17c6, 0x17c6,
+ 0x17c9, 0x17d3,
+ 0x17d7, 0x17d7,
+ 0x17dd, 0x17dd,
+ 0x180b, 0x180d,
+ 0x1843, 0x1843,
+ 0x18a9, 0x18a9,
+ 0x1920, 0x1922,
+ 0x1927, 0x1928,
+ 0x1932, 0x1932,
+ 0x1939, 0x193b,
+ 0x1a17, 0x1a18,
+ 0x1a56, 0x1a56,
+ 0x1a58, 0x1a5e,
+ 0x1a60, 0x1a60,
+ 0x1a62, 0x1a62,
+ 0x1a65, 0x1a6c,
+ 0x1a73, 0x1a7c,
+ 0x1a7f, 0x1a7f,
+ 0x1aa7, 0x1aa7,
+ 0x1b00, 0x1b03,
+ 0x1b34, 0x1b34,
+ 0x1b36, 0x1b3a,
+ 0x1b3c, 0x1b3c,
+ 0x1b42, 0x1b42,
+ 0x1b6b, 0x1b73,
+ 0x1b80, 0x1b81,
+ 0x1ba2, 0x1ba5,
+ 0x1ba8, 0x1ba9,
+ 0x1be6, 0x1be6,
+ 0x1be8, 0x1be9,
+ 0x1bed, 0x1bed,
+ 0x1bef, 0x1bf1,
+ 0x1c2c, 0x1c33,
+ 0x1c36, 0x1c37,
+ 0x1c78, 0x1c7d,
+ 0x1cd0, 0x1cd2,
+ 0x1cd4, 0x1ce0,
+ 0x1ce2, 0x1ce8,
+ 0x1ced, 0x1ced,
+ 0x1d2c, 0x1d61,
+ 0x1d78, 0x1d78,
+ 0x1d9b, 0x1de6,
+ 0x1dfc, 0x1dff,
+ 0x1fbd, 0x1fbd,
+ 0x1fbf, 0x1fc1,
+ 0x1fcd, 0x1fcf,
+ 0x1fdd, 0x1fdf,
+ 0x1fed, 0x1fef,
+ 0x1ffd, 0x1ffe,
+ 0x200b, 0x200f,
+ 0x2018, 0x2019,
+ 0x2024, 0x2024,
+ 0x2027, 0x2027,
+ 0x202a, 0x202e,
+ 0x2060, 0x2064,
+ 0x206a, 0x206f,
+ 0x2071, 0x2071,
+ 0x207f, 0x207f,
+ 0x2090, 0x209c,
+ 0x20d0, 0x20f0,
+ 0x2c7d, 0x2c7d,
+ 0x2cef, 0x2cf1,
+ 0x2d6f, 0x2d6f,
+ 0x2d7f, 0x2d7f,
+ 0x2de0, 0x2dff,
+ 0x2e2f, 0x2e2f,
+ 0x3005, 0x3005,
+ 0x302a, 0x302f,
+ 0x3031, 0x3035,
+ 0x303b, 0x303b,
+ 0x3099, 0x309e,
+ 0x30fc, 0x30fe,
+ 0xa015, 0xa015,
+ 0xa4f8, 0xa4fd,
+ 0xa60c, 0xa60c,
+ 0xa66f, 0xa672,
+ 0xa67c, 0xa67d,
+ 0xa67f, 0xa67f,
+ 0xa6f0, 0xa6f1,
+ 0xa700, 0xa721,
+ 0xa770, 0xa770,
+ 0xa788, 0xa78a,
+ 0xa802, 0xa802,
+ 0xa806, 0xa806,
+ 0xa80b, 0xa80b,
+ 0xa825, 0xa826,
+ 0xa8c4, 0xa8c4,
+ 0xa8e0, 0xa8f1,
+ 0xa926, 0xa92d,
+ 0xa947, 0xa951,
+ 0xa980, 0xa982,
+ 0xa9b3, 0xa9b3,
+ 0xa9b6, 0xa9b9,
+ 0xa9bc, 0xa9bc,
+ 0xa9cf, 0xa9cf,
+ 0xaa29, 0xaa2e,
+ 0xaa31, 0xaa32,
+ 0xaa35, 0xaa36,
+ 0xaa43, 0xaa43,
+ 0xaa4c, 0xaa4c,
+ 0xaa70, 0xaa70,
+ 0xaab0, 0xaab0,
+ 0xaab2, 0xaab4,
+ 0xaab7, 0xaab8,
+ 0xaabe, 0xaabf,
+ 0xaac1, 0xaac1,
+ 0xaadd, 0xaadd,
+ 0xabe5, 0xabe5,
+ 0xabe8, 0xabe8,
+ 0xabed, 0xabed,
+ 0xfb1e, 0xfb1e,
+ 0xfbb2, 0xfbc1,
+ 0xfe00, 0xfe0f,
+ 0xfe13, 0xfe13,
+ 0xfe20, 0xfe26,
+ 0xfe52, 0xfe52,
+ 0xfe55, 0xfe55,
+ 0xfeff, 0xfeff,
+ 0xff07, 0xff07,
+ 0xff0e, 0xff0e,
+ 0xff1a, 0xff1a,
+ 0xff3e, 0xff3e,
+ 0xff40, 0xff40,
+ 0xff70, 0xff70,
+ 0xff9e, 0xff9f,
+ 0xffe3, 0xffe3,
+ 0xfff9, 0xfffb,
+ 0x101fd, 0x101fd,
+ 0x10a01, 0x10a03,
+ 0x10a05, 0x10a06,
+ 0x10a0c, 0x10a0f,
+ 0x10a38, 0x10a3a,
+ 0x10a3f, 0x10a3f,
+ 0x11001, 0x11001,
+ 0x11038, 0x11046,
+ 0x11080, 0x11081,
+ 0x110b3, 0x110b6,
+ 0x110b9, 0x110ba,
+ 0x110bd, 0x110bd,
+ 0x1d167, 0x1d169,
+ 0x1d173, 0x1d182,
+ 0x1d185, 0x1d18b,
+ 0x1d1aa, 0x1d1ad,
+ 0x1d242, 0x1d244,
+ 0xe0001, 0xe0001,
+ 0xe0020, 0xe007f,
+ 0xe0100, 0xe01ef,
+}; /* CR_Case_Ignorable */
+
+/* 'Changes_When_Lowercased': Derived Property */
+static const OnigCodePoint CR_Changes_When_Lowercased[] = {
+ 566,
+ 0x0041, 0x005a,
+ 0x00c0, 0x00d6,
+ 0x00d8, 0x00de,
+ 0x0100, 0x0100,
+ 0x0102, 0x0102,
+ 0x0104, 0x0104,
+ 0x0106, 0x0106,
+ 0x0108, 0x0108,
+ 0x010a, 0x010a,
+ 0x010c, 0x010c,
+ 0x010e, 0x010e,
+ 0x0110, 0x0110,
+ 0x0112, 0x0112,
+ 0x0114, 0x0114,
+ 0x0116, 0x0116,
+ 0x0118, 0x0118,
+ 0x011a, 0x011a,
+ 0x011c, 0x011c,
+ 0x011e, 0x011e,
+ 0x0120, 0x0120,
+ 0x0122, 0x0122,
+ 0x0124, 0x0124,
+ 0x0126, 0x0126,
+ 0x0128, 0x0128,
+ 0x012a, 0x012a,
+ 0x012c, 0x012c,
+ 0x012e, 0x012e,
+ 0x0130, 0x0130,
+ 0x0132, 0x0132,
+ 0x0134, 0x0134,
+ 0x0136, 0x0136,
+ 0x0139, 0x0139,
+ 0x013b, 0x013b,
+ 0x013d, 0x013d,
+ 0x013f, 0x013f,
+ 0x0141, 0x0141,
+ 0x0143, 0x0143,
+ 0x0145, 0x0145,
+ 0x0147, 0x0147,
+ 0x014a, 0x014a,
+ 0x014c, 0x014c,
+ 0x014e, 0x014e,
+ 0x0150, 0x0150,
+ 0x0152, 0x0152,
+ 0x0154, 0x0154,
+ 0x0156, 0x0156,
+ 0x0158, 0x0158,
+ 0x015a, 0x015a,
+ 0x015c, 0x015c,
+ 0x015e, 0x015e,
+ 0x0160, 0x0160,
+ 0x0162, 0x0162,
+ 0x0164, 0x0164,
+ 0x0166, 0x0166,
+ 0x0168, 0x0168,
+ 0x016a, 0x016a,
+ 0x016c, 0x016c,
+ 0x016e, 0x016e,
+ 0x0170, 0x0170,
+ 0x0172, 0x0172,
+ 0x0174, 0x0174,
+ 0x0176, 0x0176,
+ 0x0178, 0x0179,
+ 0x017b, 0x017b,
+ 0x017d, 0x017d,
+ 0x0181, 0x0182,
+ 0x0184, 0x0184,
+ 0x0186, 0x0187,
+ 0x0189, 0x018b,
+ 0x018e, 0x0191,
+ 0x0193, 0x0194,
+ 0x0196, 0x0198,
+ 0x019c, 0x019d,
+ 0x019f, 0x01a0,
+ 0x01a2, 0x01a2,
+ 0x01a4, 0x01a4,
+ 0x01a6, 0x01a7,
+ 0x01a9, 0x01a9,
+ 0x01ac, 0x01ac,
+ 0x01ae, 0x01af,
+ 0x01b1, 0x01b3,
+ 0x01b5, 0x01b5,
+ 0x01b7, 0x01b8,
+ 0x01bc, 0x01bc,
+ 0x01c4, 0x01c5,
+ 0x01c7, 0x01c8,
+ 0x01ca, 0x01cb,
+ 0x01cd, 0x01cd,
+ 0x01cf, 0x01cf,
+ 0x01d1, 0x01d1,
+ 0x01d3, 0x01d3,
+ 0x01d5, 0x01d5,
+ 0x01d7, 0x01d7,
+ 0x01d9, 0x01d9,
+ 0x01db, 0x01db,
+ 0x01de, 0x01de,
+ 0x01e0, 0x01e0,
+ 0x01e2, 0x01e2,
+ 0x01e4, 0x01e4,
+ 0x01e6, 0x01e6,
+ 0x01e8, 0x01e8,
+ 0x01ea, 0x01ea,
+ 0x01ec, 0x01ec,
+ 0x01ee, 0x01ee,
+ 0x01f1, 0x01f2,
+ 0x01f4, 0x01f4,
+ 0x01f6, 0x01f8,
+ 0x01fa, 0x01fa,
+ 0x01fc, 0x01fc,
+ 0x01fe, 0x01fe,
+ 0x0200, 0x0200,
+ 0x0202, 0x0202,
+ 0x0204, 0x0204,
+ 0x0206, 0x0206,
+ 0x0208, 0x0208,
+ 0x020a, 0x020a,
+ 0x020c, 0x020c,
+ 0x020e, 0x020e,
+ 0x0210, 0x0210,
+ 0x0212, 0x0212,
+ 0x0214, 0x0214,
+ 0x0216, 0x0216,
+ 0x0218, 0x0218,
+ 0x021a, 0x021a,
+ 0x021c, 0x021c,
+ 0x021e, 0x021e,
+ 0x0220, 0x0220,
+ 0x0222, 0x0222,
+ 0x0224, 0x0224,
+ 0x0226, 0x0226,
+ 0x0228, 0x0228,
+ 0x022a, 0x022a,
+ 0x022c, 0x022c,
+ 0x022e, 0x022e,
+ 0x0230, 0x0230,
+ 0x0232, 0x0232,
+ 0x023a, 0x023b,
+ 0x023d, 0x023e,
+ 0x0241, 0x0241,
+ 0x0243, 0x0246,
+ 0x0248, 0x0248,
+ 0x024a, 0x024a,
+ 0x024c, 0x024c,
+ 0x024e, 0x024e,
+ 0x0370, 0x0370,
+ 0x0372, 0x0372,
+ 0x0376, 0x0376,
+ 0x0386, 0x0386,
+ 0x0388, 0x038a,
+ 0x038c, 0x038c,
+ 0x038e, 0x038f,
+ 0x0391, 0x03a1,
+ 0x03a3, 0x03ab,
+ 0x03cf, 0x03cf,
+ 0x03d8, 0x03d8,
+ 0x03da, 0x03da,
+ 0x03dc, 0x03dc,
+ 0x03de, 0x03de,
+ 0x03e0, 0x03e0,
+ 0x03e2, 0x03e2,
+ 0x03e4, 0x03e4,
+ 0x03e6, 0x03e6,
+ 0x03e8, 0x03e8,
+ 0x03ea, 0x03ea,
+ 0x03ec, 0x03ec,
+ 0x03ee, 0x03ee,
+ 0x03f4, 0x03f4,
+ 0x03f7, 0x03f7,
+ 0x03f9, 0x03fa,
+ 0x03fd, 0x042f,
+ 0x0460, 0x0460,
+ 0x0462, 0x0462,
+ 0x0464, 0x0464,
+ 0x0466, 0x0466,
+ 0x0468, 0x0468,
+ 0x046a, 0x046a,
+ 0x046c, 0x046c,
+ 0x046e, 0x046e,
+ 0x0470, 0x0470,
+ 0x0472, 0x0472,
+ 0x0474, 0x0474,
+ 0x0476, 0x0476,
+ 0x0478, 0x0478,
+ 0x047a, 0x047a,
+ 0x047c, 0x047c,
+ 0x047e, 0x047e,
+ 0x0480, 0x0480,
+ 0x048a, 0x048a,
+ 0x048c, 0x048c,
+ 0x048e, 0x048e,
+ 0x0490, 0x0490,
+ 0x0492, 0x0492,
+ 0x0494, 0x0494,
+ 0x0496, 0x0496,
+ 0x0498, 0x0498,
+ 0x049a, 0x049a,
+ 0x049c, 0x049c,
+ 0x049e, 0x049e,
+ 0x04a0, 0x04a0,
+ 0x04a2, 0x04a2,
+ 0x04a4, 0x04a4,
+ 0x04a6, 0x04a6,
+ 0x04a8, 0x04a8,
+ 0x04aa, 0x04aa,
+ 0x04ac, 0x04ac,
+ 0x04ae, 0x04ae,
+ 0x04b0, 0x04b0,
+ 0x04b2, 0x04b2,
+ 0x04b4, 0x04b4,
+ 0x04b6, 0x04b6,
+ 0x04b8, 0x04b8,
+ 0x04ba, 0x04ba,
+ 0x04bc, 0x04bc,
+ 0x04be, 0x04be,
+ 0x04c0, 0x04c1,
+ 0x04c3, 0x04c3,
+ 0x04c5, 0x04c5,
+ 0x04c7, 0x04c7,
+ 0x04c9, 0x04c9,
+ 0x04cb, 0x04cb,
+ 0x04cd, 0x04cd,
+ 0x04d0, 0x04d0,
+ 0x04d2, 0x04d2,
+ 0x04d4, 0x04d4,
+ 0x04d6, 0x04d6,
+ 0x04d8, 0x04d8,
+ 0x04da, 0x04da,
+ 0x04dc, 0x04dc,
+ 0x04de, 0x04de,
+ 0x04e0, 0x04e0,
+ 0x04e2, 0x04e2,
+ 0x04e4, 0x04e4,
+ 0x04e6, 0x04e6,
+ 0x04e8, 0x04e8,
+ 0x04ea, 0x04ea,
+ 0x04ec, 0x04ec,
+ 0x04ee, 0x04ee,
+ 0x04f0, 0x04f0,
+ 0x04f2, 0x04f2,
+ 0x04f4, 0x04f4,
+ 0x04f6, 0x04f6,
+ 0x04f8, 0x04f8,
+ 0x04fa, 0x04fa,
+ 0x04fc, 0x04fc,
+ 0x04fe, 0x04fe,
+ 0x0500, 0x0500,
+ 0x0502, 0x0502,
+ 0x0504, 0x0504,
+ 0x0506, 0x0506,
+ 0x0508, 0x0508,
+ 0x050a, 0x050a,
+ 0x050c, 0x050c,
+ 0x050e, 0x050e,
+ 0x0510, 0x0510,
+ 0x0512, 0x0512,
+ 0x0514, 0x0514,
+ 0x0516, 0x0516,
+ 0x0518, 0x0518,
+ 0x051a, 0x051a,
+ 0x051c, 0x051c,
+ 0x051e, 0x051e,
+ 0x0520, 0x0520,
+ 0x0522, 0x0522,
+ 0x0524, 0x0524,
+ 0x0526, 0x0526,
+ 0x0531, 0x0556,
+ 0x10a0, 0x10c5,
+ 0x1e00, 0x1e00,
+ 0x1e02, 0x1e02,
+ 0x1e04, 0x1e04,
+ 0x1e06, 0x1e06,
+ 0x1e08, 0x1e08,
+ 0x1e0a, 0x1e0a,
+ 0x1e0c, 0x1e0c,
+ 0x1e0e, 0x1e0e,
+ 0x1e10, 0x1e10,
+ 0x1e12, 0x1e12,
+ 0x1e14, 0x1e14,
+ 0x1e16, 0x1e16,
+ 0x1e18, 0x1e18,
+ 0x1e1a, 0x1e1a,
+ 0x1e1c, 0x1e1c,
+ 0x1e1e, 0x1e1e,
+ 0x1e20, 0x1e20,
+ 0x1e22, 0x1e22,
+ 0x1e24, 0x1e24,
+ 0x1e26, 0x1e26,
+ 0x1e28, 0x1e28,
+ 0x1e2a, 0x1e2a,
+ 0x1e2c, 0x1e2c,
+ 0x1e2e, 0x1e2e,
+ 0x1e30, 0x1e30,
+ 0x1e32, 0x1e32,
+ 0x1e34, 0x1e34,
+ 0x1e36, 0x1e36,
+ 0x1e38, 0x1e38,
+ 0x1e3a, 0x1e3a,
+ 0x1e3c, 0x1e3c,
+ 0x1e3e, 0x1e3e,
+ 0x1e40, 0x1e40,
+ 0x1e42, 0x1e42,
+ 0x1e44, 0x1e44,
+ 0x1e46, 0x1e46,
+ 0x1e48, 0x1e48,
+ 0x1e4a, 0x1e4a,
+ 0x1e4c, 0x1e4c,
+ 0x1e4e, 0x1e4e,
+ 0x1e50, 0x1e50,
+ 0x1e52, 0x1e52,
+ 0x1e54, 0x1e54,
+ 0x1e56, 0x1e56,
+ 0x1e58, 0x1e58,
+ 0x1e5a, 0x1e5a,
+ 0x1e5c, 0x1e5c,
+ 0x1e5e, 0x1e5e,
+ 0x1e60, 0x1e60,
+ 0x1e62, 0x1e62,
+ 0x1e64, 0x1e64,
+ 0x1e66, 0x1e66,
+ 0x1e68, 0x1e68,
+ 0x1e6a, 0x1e6a,
+ 0x1e6c, 0x1e6c,
+ 0x1e6e, 0x1e6e,
+ 0x1e70, 0x1e70,
+ 0x1e72, 0x1e72,
+ 0x1e74, 0x1e74,
+ 0x1e76, 0x1e76,
+ 0x1e78, 0x1e78,
+ 0x1e7a, 0x1e7a,
+ 0x1e7c, 0x1e7c,
+ 0x1e7e, 0x1e7e,
+ 0x1e80, 0x1e80,
+ 0x1e82, 0x1e82,
+ 0x1e84, 0x1e84,
+ 0x1e86, 0x1e86,
+ 0x1e88, 0x1e88,
+ 0x1e8a, 0x1e8a,
+ 0x1e8c, 0x1e8c,
+ 0x1e8e, 0x1e8e,
+ 0x1e90, 0x1e90,
+ 0x1e92, 0x1e92,
+ 0x1e94, 0x1e94,
+ 0x1e9e, 0x1e9e,
+ 0x1ea0, 0x1ea0,
+ 0x1ea2, 0x1ea2,
+ 0x1ea4, 0x1ea4,
+ 0x1ea6, 0x1ea6,
+ 0x1ea8, 0x1ea8,
+ 0x1eaa, 0x1eaa,
+ 0x1eac, 0x1eac,
+ 0x1eae, 0x1eae,
+ 0x1eb0, 0x1eb0,
+ 0x1eb2, 0x1eb2,
+ 0x1eb4, 0x1eb4,
+ 0x1eb6, 0x1eb6,
+ 0x1eb8, 0x1eb8,
+ 0x1eba, 0x1eba,
+ 0x1ebc, 0x1ebc,
+ 0x1ebe, 0x1ebe,
+ 0x1ec0, 0x1ec0,
+ 0x1ec2, 0x1ec2,
+ 0x1ec4, 0x1ec4,
+ 0x1ec6, 0x1ec6,
+ 0x1ec8, 0x1ec8,
+ 0x1eca, 0x1eca,
+ 0x1ecc, 0x1ecc,
+ 0x1ece, 0x1ece,
+ 0x1ed0, 0x1ed0,
+ 0x1ed2, 0x1ed2,
+ 0x1ed4, 0x1ed4,
+ 0x1ed6, 0x1ed6,
+ 0x1ed8, 0x1ed8,
+ 0x1eda, 0x1eda,
+ 0x1edc, 0x1edc,
+ 0x1ede, 0x1ede,
+ 0x1ee0, 0x1ee0,
+ 0x1ee2, 0x1ee2,
+ 0x1ee4, 0x1ee4,
+ 0x1ee6, 0x1ee6,
+ 0x1ee8, 0x1ee8,
+ 0x1eea, 0x1eea,
+ 0x1eec, 0x1eec,
+ 0x1eee, 0x1eee,
+ 0x1ef0, 0x1ef0,
+ 0x1ef2, 0x1ef2,
+ 0x1ef4, 0x1ef4,
+ 0x1ef6, 0x1ef6,
+ 0x1ef8, 0x1ef8,
+ 0x1efa, 0x1efa,
+ 0x1efc, 0x1efc,
+ 0x1efe, 0x1efe,
+ 0x1f08, 0x1f0f,
+ 0x1f18, 0x1f1d,
+ 0x1f28, 0x1f2f,
+ 0x1f38, 0x1f3f,
+ 0x1f48, 0x1f4d,
+ 0x1f59, 0x1f59,
+ 0x1f5b, 0x1f5b,
+ 0x1f5d, 0x1f5d,
+ 0x1f5f, 0x1f5f,
+ 0x1f68, 0x1f6f,
+ 0x1f88, 0x1f8f,
+ 0x1f98, 0x1f9f,
+ 0x1fa8, 0x1faf,
+ 0x1fb8, 0x1fbc,
+ 0x1fc8, 0x1fcc,
+ 0x1fd8, 0x1fdb,
+ 0x1fe8, 0x1fec,
+ 0x1ff8, 0x1ffc,
+ 0x2126, 0x2126,
+ 0x212a, 0x212b,
+ 0x2132, 0x2132,
+ 0x2160, 0x216f,
+ 0x2183, 0x2183,
+ 0x24b6, 0x24cf,
+ 0x2c00, 0x2c2e,
+ 0x2c60, 0x2c60,
+ 0x2c62, 0x2c64,
+ 0x2c67, 0x2c67,
+ 0x2c69, 0x2c69,
+ 0x2c6b, 0x2c6b,
+ 0x2c6d, 0x2c70,
+ 0x2c72, 0x2c72,
+ 0x2c75, 0x2c75,
+ 0x2c7e, 0x2c80,
+ 0x2c82, 0x2c82,
+ 0x2c84, 0x2c84,
+ 0x2c86, 0x2c86,
+ 0x2c88, 0x2c88,
+ 0x2c8a, 0x2c8a,
+ 0x2c8c, 0x2c8c,
+ 0x2c8e, 0x2c8e,
+ 0x2c90, 0x2c90,
+ 0x2c92, 0x2c92,
+ 0x2c94, 0x2c94,
+ 0x2c96, 0x2c96,
+ 0x2c98, 0x2c98,
+ 0x2c9a, 0x2c9a,
+ 0x2c9c, 0x2c9c,
+ 0x2c9e, 0x2c9e,
+ 0x2ca0, 0x2ca0,
+ 0x2ca2, 0x2ca2,
+ 0x2ca4, 0x2ca4,
+ 0x2ca6, 0x2ca6,
+ 0x2ca8, 0x2ca8,
+ 0x2caa, 0x2caa,
+ 0x2cac, 0x2cac,
+ 0x2cae, 0x2cae,
+ 0x2cb0, 0x2cb0,
+ 0x2cb2, 0x2cb2,
+ 0x2cb4, 0x2cb4,
+ 0x2cb6, 0x2cb6,
+ 0x2cb8, 0x2cb8,
+ 0x2cba, 0x2cba,
+ 0x2cbc, 0x2cbc,
+ 0x2cbe, 0x2cbe,
+ 0x2cc0, 0x2cc0,
+ 0x2cc2, 0x2cc2,
+ 0x2cc4, 0x2cc4,
+ 0x2cc6, 0x2cc6,
+ 0x2cc8, 0x2cc8,
+ 0x2cca, 0x2cca,
+ 0x2ccc, 0x2ccc,
+ 0x2cce, 0x2cce,
+ 0x2cd0, 0x2cd0,
+ 0x2cd2, 0x2cd2,
+ 0x2cd4, 0x2cd4,
+ 0x2cd6, 0x2cd6,
+ 0x2cd8, 0x2cd8,
+ 0x2cda, 0x2cda,
+ 0x2cdc, 0x2cdc,
+ 0x2cde, 0x2cde,
+ 0x2ce0, 0x2ce0,
+ 0x2ce2, 0x2ce2,
+ 0x2ceb, 0x2ceb,
+ 0x2ced, 0x2ced,
+ 0xa640, 0xa640,
+ 0xa642, 0xa642,
+ 0xa644, 0xa644,
+ 0xa646, 0xa646,
+ 0xa648, 0xa648,
+ 0xa64a, 0xa64a,
+ 0xa64c, 0xa64c,
+ 0xa64e, 0xa64e,
+ 0xa650, 0xa650,
+ 0xa652, 0xa652,
+ 0xa654, 0xa654,
+ 0xa656, 0xa656,
+ 0xa658, 0xa658,
+ 0xa65a, 0xa65a,
+ 0xa65c, 0xa65c,
+ 0xa65e, 0xa65e,
+ 0xa660, 0xa660,
+ 0xa662, 0xa662,
+ 0xa664, 0xa664,
+ 0xa666, 0xa666,
+ 0xa668, 0xa668,
+ 0xa66a, 0xa66a,
+ 0xa66c, 0xa66c,
+ 0xa680, 0xa680,
+ 0xa682, 0xa682,
+ 0xa684, 0xa684,
+ 0xa686, 0xa686,
+ 0xa688, 0xa688,
+ 0xa68a, 0xa68a,
+ 0xa68c, 0xa68c,
+ 0xa68e, 0xa68e,
+ 0xa690, 0xa690,
+ 0xa692, 0xa692,
+ 0xa694, 0xa694,
+ 0xa696, 0xa696,
+ 0xa722, 0xa722,
+ 0xa724, 0xa724,
+ 0xa726, 0xa726,
+ 0xa728, 0xa728,
+ 0xa72a, 0xa72a,
+ 0xa72c, 0xa72c,
+ 0xa72e, 0xa72e,
+ 0xa732, 0xa732,
+ 0xa734, 0xa734,
+ 0xa736, 0xa736,
+ 0xa738, 0xa738,
+ 0xa73a, 0xa73a,
+ 0xa73c, 0xa73c,
+ 0xa73e, 0xa73e,
+ 0xa740, 0xa740,
+ 0xa742, 0xa742,
+ 0xa744, 0xa744,
+ 0xa746, 0xa746,
+ 0xa748, 0xa748,
+ 0xa74a, 0xa74a,
+ 0xa74c, 0xa74c,
+ 0xa74e, 0xa74e,
+ 0xa750, 0xa750,
+ 0xa752, 0xa752,
+ 0xa754, 0xa754,
+ 0xa756, 0xa756,
+ 0xa758, 0xa758,
+ 0xa75a, 0xa75a,
+ 0xa75c, 0xa75c,
+ 0xa75e, 0xa75e,
+ 0xa760, 0xa760,
+ 0xa762, 0xa762,
+ 0xa764, 0xa764,
+ 0xa766, 0xa766,
+ 0xa768, 0xa768,
+ 0xa76a, 0xa76a,
+ 0xa76c, 0xa76c,
+ 0xa76e, 0xa76e,
+ 0xa779, 0xa779,
+ 0xa77b, 0xa77b,
+ 0xa77d, 0xa77e,
+ 0xa780, 0xa780,
+ 0xa782, 0xa782,
+ 0xa784, 0xa784,
+ 0xa786, 0xa786,
+ 0xa78b, 0xa78b,
+ 0xa78d, 0xa78d,
+ 0xa790, 0xa790,
+ 0xa7a0, 0xa7a0,
+ 0xa7a2, 0xa7a2,
+ 0xa7a4, 0xa7a4,
+ 0xa7a6, 0xa7a6,
+ 0xa7a8, 0xa7a8,
+ 0xff21, 0xff3a,
+ 0x10400, 0x10427,
+}; /* CR_Changes_When_Lowercased */
+
+/* 'Changes_When_Uppercased': Derived Property */
+static const OnigCodePoint CR_Changes_When_Uppercased[] = {
+ 582,
+ 0x0061, 0x007a,
+ 0x00b5, 0x00b5,
+ 0x00df, 0x00f6,
+ 0x00f8, 0x00ff,
+ 0x0101, 0x0101,
+ 0x0103, 0x0103,
+ 0x0105, 0x0105,
+ 0x0107, 0x0107,
+ 0x0109, 0x0109,
+ 0x010b, 0x010b,
+ 0x010d, 0x010d,
+ 0x010f, 0x010f,
+ 0x0111, 0x0111,
+ 0x0113, 0x0113,
+ 0x0115, 0x0115,
+ 0x0117, 0x0117,
+ 0x0119, 0x0119,
+ 0x011b, 0x011b,
+ 0x011d, 0x011d,
+ 0x011f, 0x011f,
+ 0x0121, 0x0121,
+ 0x0123, 0x0123,
+ 0x0125, 0x0125,
+ 0x0127, 0x0127,
+ 0x0129, 0x0129,
+ 0x012b, 0x012b,
+ 0x012d, 0x012d,
+ 0x012f, 0x012f,
+ 0x0131, 0x0131,
+ 0x0133, 0x0133,
+ 0x0135, 0x0135,
+ 0x0137, 0x0137,
+ 0x013a, 0x013a,
+ 0x013c, 0x013c,
+ 0x013e, 0x013e,
+ 0x0140, 0x0140,
+ 0x0142, 0x0142,
+ 0x0144, 0x0144,
+ 0x0146, 0x0146,
+ 0x0148, 0x0149,
+ 0x014b, 0x014b,
+ 0x014d, 0x014d,
+ 0x014f, 0x014f,
+ 0x0151, 0x0151,
+ 0x0153, 0x0153,
+ 0x0155, 0x0155,
+ 0x0157, 0x0157,
+ 0x0159, 0x0159,
+ 0x015b, 0x015b,
+ 0x015d, 0x015d,
+ 0x015f, 0x015f,
+ 0x0161, 0x0161,
+ 0x0163, 0x0163,
+ 0x0165, 0x0165,
+ 0x0167, 0x0167,
+ 0x0169, 0x0169,
+ 0x016b, 0x016b,
+ 0x016d, 0x016d,
+ 0x016f, 0x016f,
+ 0x0171, 0x0171,
+ 0x0173, 0x0173,
+ 0x0175, 0x0175,
+ 0x0177, 0x0177,
+ 0x017a, 0x017a,
+ 0x017c, 0x017c,
+ 0x017e, 0x0180,
+ 0x0183, 0x0183,
+ 0x0185, 0x0185,
+ 0x0188, 0x0188,
+ 0x018c, 0x018c,
+ 0x0192, 0x0192,
+ 0x0195, 0x0195,
+ 0x0199, 0x019a,
+ 0x019e, 0x019e,
+ 0x01a1, 0x01a1,
+ 0x01a3, 0x01a3,
+ 0x01a5, 0x01a5,
+ 0x01a8, 0x01a8,
+ 0x01ad, 0x01ad,
+ 0x01b0, 0x01b0,
+ 0x01b4, 0x01b4,
+ 0x01b6, 0x01b6,
+ 0x01b9, 0x01b9,
+ 0x01bd, 0x01bd,
+ 0x01bf, 0x01bf,
+ 0x01c5, 0x01c6,
+ 0x01c8, 0x01c9,
+ 0x01cb, 0x01cc,
+ 0x01ce, 0x01ce,
+ 0x01d0, 0x01d0,
+ 0x01d2, 0x01d2,
+ 0x01d4, 0x01d4,
+ 0x01d6, 0x01d6,
+ 0x01d8, 0x01d8,
+ 0x01da, 0x01da,
+ 0x01dc, 0x01dd,
+ 0x01df, 0x01df,
+ 0x01e1, 0x01e1,
+ 0x01e3, 0x01e3,
+ 0x01e5, 0x01e5,
+ 0x01e7, 0x01e7,
+ 0x01e9, 0x01e9,
+ 0x01eb, 0x01eb,
+ 0x01ed, 0x01ed,
+ 0x01ef, 0x01f0,
+ 0x01f2, 0x01f3,
+ 0x01f5, 0x01f5,
+ 0x01f9, 0x01f9,
+ 0x01fb, 0x01fb,
+ 0x01fd, 0x01fd,
+ 0x01ff, 0x01ff,
+ 0x0201, 0x0201,
+ 0x0203, 0x0203,
+ 0x0205, 0x0205,
+ 0x0207, 0x0207,
+ 0x0209, 0x0209,
+ 0x020b, 0x020b,
+ 0x020d, 0x020d,
+ 0x020f, 0x020f,
+ 0x0211, 0x0211,
+ 0x0213, 0x0213,
+ 0x0215, 0x0215,
+ 0x0217, 0x0217,
+ 0x0219, 0x0219,
+ 0x021b, 0x021b,
+ 0x021d, 0x021d,
+ 0x021f, 0x021f,
+ 0x0223, 0x0223,
+ 0x0225, 0x0225,
+ 0x0227, 0x0227,
+ 0x0229, 0x0229,
+ 0x022b, 0x022b,
+ 0x022d, 0x022d,
+ 0x022f, 0x022f,
+ 0x0231, 0x0231,
+ 0x0233, 0x0233,
+ 0x023c, 0x023c,
+ 0x023f, 0x0240,
+ 0x0242, 0x0242,
+ 0x0247, 0x0247,
+ 0x0249, 0x0249,
+ 0x024b, 0x024b,
+ 0x024d, 0x024d,
+ 0x024f, 0x0254,
+ 0x0256, 0x0257,
+ 0x0259, 0x0259,
+ 0x025b, 0x025b,
+ 0x0260, 0x0260,
+ 0x0263, 0x0263,
+ 0x0265, 0x0265,
+ 0x0268, 0x0269,
+ 0x026b, 0x026b,
+ 0x026f, 0x026f,
+ 0x0271, 0x0272,
+ 0x0275, 0x0275,
+ 0x027d, 0x027d,
+ 0x0280, 0x0280,
+ 0x0283, 0x0283,
+ 0x0288, 0x028c,
+ 0x0292, 0x0292,
+ 0x0345, 0x0345,
+ 0x0371, 0x0371,
+ 0x0373, 0x0373,
+ 0x0377, 0x0377,
+ 0x037b, 0x037d,
+ 0x0390, 0x0390,
+ 0x03ac, 0x03ce,
+ 0x03d0, 0x03d1,
+ 0x03d5, 0x03d7,
+ 0x03d9, 0x03d9,
+ 0x03db, 0x03db,
+ 0x03dd, 0x03dd,
+ 0x03df, 0x03df,
+ 0x03e1, 0x03e1,
+ 0x03e3, 0x03e3,
+ 0x03e5, 0x03e5,
+ 0x03e7, 0x03e7,
+ 0x03e9, 0x03e9,
+ 0x03eb, 0x03eb,
+ 0x03ed, 0x03ed,
+ 0x03ef, 0x03f2,
+ 0x03f5, 0x03f5,
+ 0x03f8, 0x03f8,
+ 0x03fb, 0x03fb,
+ 0x0430, 0x045f,
+ 0x0461, 0x0461,
+ 0x0463, 0x0463,
+ 0x0465, 0x0465,
+ 0x0467, 0x0467,
+ 0x0469, 0x0469,
+ 0x046b, 0x046b,
+ 0x046d, 0x046d,
+ 0x046f, 0x046f,
+ 0x0471, 0x0471,
+ 0x0473, 0x0473,
+ 0x0475, 0x0475,
+ 0x0477, 0x0477,
+ 0x0479, 0x0479,
+ 0x047b, 0x047b,
+ 0x047d, 0x047d,
+ 0x047f, 0x047f,
+ 0x0481, 0x0481,
+ 0x048b, 0x048b,
+ 0x048d, 0x048d,
+ 0x048f, 0x048f,
+ 0x0491, 0x0491,
+ 0x0493, 0x0493,
+ 0x0495, 0x0495,
+ 0x0497, 0x0497,
+ 0x0499, 0x0499,
+ 0x049b, 0x049b,
+ 0x049d, 0x049d,
+ 0x049f, 0x049f,
+ 0x04a1, 0x04a1,
+ 0x04a3, 0x04a3,
+ 0x04a5, 0x04a5,
+ 0x04a7, 0x04a7,
+ 0x04a9, 0x04a9,
+ 0x04ab, 0x04ab,
+ 0x04ad, 0x04ad,
+ 0x04af, 0x04af,
+ 0x04b1, 0x04b1,
+ 0x04b3, 0x04b3,
+ 0x04b5, 0x04b5,
+ 0x04b7, 0x04b7,
+ 0x04b9, 0x04b9,
+ 0x04bb, 0x04bb,
+ 0x04bd, 0x04bd,
+ 0x04bf, 0x04bf,
+ 0x04c2, 0x04c2,
+ 0x04c4, 0x04c4,
+ 0x04c6, 0x04c6,
+ 0x04c8, 0x04c8,
+ 0x04ca, 0x04ca,
+ 0x04cc, 0x04cc,
+ 0x04ce, 0x04cf,
+ 0x04d1, 0x04d1,
+ 0x04d3, 0x04d3,
+ 0x04d5, 0x04d5,
+ 0x04d7, 0x04d7,
+ 0x04d9, 0x04d9,
+ 0x04db, 0x04db,
+ 0x04dd, 0x04dd,
+ 0x04df, 0x04df,
+ 0x04e1, 0x04e1,
+ 0x04e3, 0x04e3,
+ 0x04e5, 0x04e5,
+ 0x04e7, 0x04e7,
+ 0x04e9, 0x04e9,
+ 0x04eb, 0x04eb,
+ 0x04ed, 0x04ed,
+ 0x04ef, 0x04ef,
+ 0x04f1, 0x04f1,
+ 0x04f3, 0x04f3,
+ 0x04f5, 0x04f5,
+ 0x04f7, 0x04f7,
+ 0x04f9, 0x04f9,
+ 0x04fb, 0x04fb,
+ 0x04fd, 0x04fd,
+ 0x04ff, 0x04ff,
+ 0x0501, 0x0501,
+ 0x0503, 0x0503,
+ 0x0505, 0x0505,
+ 0x0507, 0x0507,
+ 0x0509, 0x0509,
+ 0x050b, 0x050b,
+ 0x050d, 0x050d,
+ 0x050f, 0x050f,
+ 0x0511, 0x0511,
+ 0x0513, 0x0513,
+ 0x0515, 0x0515,
+ 0x0517, 0x0517,
+ 0x0519, 0x0519,
+ 0x051b, 0x051b,
+ 0x051d, 0x051d,
+ 0x051f, 0x051f,
+ 0x0521, 0x0521,
+ 0x0523, 0x0523,
+ 0x0525, 0x0525,
+ 0x0527, 0x0527,
+ 0x0561, 0x0587,
+ 0x1d79, 0x1d79,
+ 0x1d7d, 0x1d7d,
+ 0x1e01, 0x1e01,
+ 0x1e03, 0x1e03,
+ 0x1e05, 0x1e05,
+ 0x1e07, 0x1e07,
+ 0x1e09, 0x1e09,
+ 0x1e0b, 0x1e0b,
+ 0x1e0d, 0x1e0d,
+ 0x1e0f, 0x1e0f,
+ 0x1e11, 0x1e11,
+ 0x1e13, 0x1e13,
+ 0x1e15, 0x1e15,
+ 0x1e17, 0x1e17,
+ 0x1e19, 0x1e19,
+ 0x1e1b, 0x1e1b,
+ 0x1e1d, 0x1e1d,
+ 0x1e1f, 0x1e1f,
+ 0x1e21, 0x1e21,
+ 0x1e23, 0x1e23,
+ 0x1e25, 0x1e25,
+ 0x1e27, 0x1e27,
+ 0x1e29, 0x1e29,
+ 0x1e2b, 0x1e2b,
+ 0x1e2d, 0x1e2d,
+ 0x1e2f, 0x1e2f,
+ 0x1e31, 0x1e31,
+ 0x1e33, 0x1e33,
+ 0x1e35, 0x1e35,
+ 0x1e37, 0x1e37,
+ 0x1e39, 0x1e39,
+ 0x1e3b, 0x1e3b,
+ 0x1e3d, 0x1e3d,
+ 0x1e3f, 0x1e3f,
+ 0x1e41, 0x1e41,
+ 0x1e43, 0x1e43,
+ 0x1e45, 0x1e45,
+ 0x1e47, 0x1e47,
+ 0x1e49, 0x1e49,
+ 0x1e4b, 0x1e4b,
+ 0x1e4d, 0x1e4d,
+ 0x1e4f, 0x1e4f,
+ 0x1e51, 0x1e51,
+ 0x1e53, 0x1e53,
+ 0x1e55, 0x1e55,
+ 0x1e57, 0x1e57,
+ 0x1e59, 0x1e59,
+ 0x1e5b, 0x1e5b,
+ 0x1e5d, 0x1e5d,
+ 0x1e5f, 0x1e5f,
+ 0x1e61, 0x1e61,
+ 0x1e63, 0x1e63,
+ 0x1e65, 0x1e65,
+ 0x1e67, 0x1e67,
+ 0x1e69, 0x1e69,
+ 0x1e6b, 0x1e6b,
+ 0x1e6d, 0x1e6d,
+ 0x1e6f, 0x1e6f,
+ 0x1e71, 0x1e71,
+ 0x1e73, 0x1e73,
+ 0x1e75, 0x1e75,
+ 0x1e77, 0x1e77,
+ 0x1e79, 0x1e79,
+ 0x1e7b, 0x1e7b,
+ 0x1e7d, 0x1e7d,
+ 0x1e7f, 0x1e7f,
+ 0x1e81, 0x1e81,
+ 0x1e83, 0x1e83,
+ 0x1e85, 0x1e85,
+ 0x1e87, 0x1e87,
+ 0x1e89, 0x1e89,
+ 0x1e8b, 0x1e8b,
+ 0x1e8d, 0x1e8d,
+ 0x1e8f, 0x1e8f,
+ 0x1e91, 0x1e91,
+ 0x1e93, 0x1e93,
+ 0x1e95, 0x1e9b,
+ 0x1ea1, 0x1ea1,
+ 0x1ea3, 0x1ea3,
+ 0x1ea5, 0x1ea5,
+ 0x1ea7, 0x1ea7,
+ 0x1ea9, 0x1ea9,
+ 0x1eab, 0x1eab,
+ 0x1ead, 0x1ead,
+ 0x1eaf, 0x1eaf,
+ 0x1eb1, 0x1eb1,
+ 0x1eb3, 0x1eb3,
+ 0x1eb5, 0x1eb5,
+ 0x1eb7, 0x1eb7,
+ 0x1eb9, 0x1eb9,
+ 0x1ebb, 0x1ebb,
+ 0x1ebd, 0x1ebd,
+ 0x1ebf, 0x1ebf,
+ 0x1ec1, 0x1ec1,
+ 0x1ec3, 0x1ec3,
+ 0x1ec5, 0x1ec5,
+ 0x1ec7, 0x1ec7,
+ 0x1ec9, 0x1ec9,
+ 0x1ecb, 0x1ecb,
+ 0x1ecd, 0x1ecd,
+ 0x1ecf, 0x1ecf,
+ 0x1ed1, 0x1ed1,
+ 0x1ed3, 0x1ed3,
+ 0x1ed5, 0x1ed5,
+ 0x1ed7, 0x1ed7,
+ 0x1ed9, 0x1ed9,
+ 0x1edb, 0x1edb,
+ 0x1edd, 0x1edd,
+ 0x1edf, 0x1edf,
+ 0x1ee1, 0x1ee1,
+ 0x1ee3, 0x1ee3,
+ 0x1ee5, 0x1ee5,
+ 0x1ee7, 0x1ee7,
+ 0x1ee9, 0x1ee9,
+ 0x1eeb, 0x1eeb,
+ 0x1eed, 0x1eed,
+ 0x1eef, 0x1eef,
+ 0x1ef1, 0x1ef1,
+ 0x1ef3, 0x1ef3,
+ 0x1ef5, 0x1ef5,
+ 0x1ef7, 0x1ef7,
+ 0x1ef9, 0x1ef9,
+ 0x1efb, 0x1efb,
+ 0x1efd, 0x1efd,
+ 0x1eff, 0x1f07,
+ 0x1f10, 0x1f15,
+ 0x1f20, 0x1f27,
+ 0x1f30, 0x1f37,
+ 0x1f40, 0x1f45,
+ 0x1f50, 0x1f57,
+ 0x1f60, 0x1f67,
+ 0x1f70, 0x1f7d,
+ 0x1f80, 0x1fb4,
+ 0x1fb6, 0x1fb7,
+ 0x1fbc, 0x1fbc,
+ 0x1fbe, 0x1fbe,
+ 0x1fc2, 0x1fc4,
+ 0x1fc6, 0x1fc7,
+ 0x1fcc, 0x1fcc,
+ 0x1fd0, 0x1fd3,
+ 0x1fd6, 0x1fd7,
+ 0x1fe0, 0x1fe7,
+ 0x1ff2, 0x1ff4,
+ 0x1ff6, 0x1ff7,
+ 0x1ffc, 0x1ffc,
+ 0x214e, 0x214e,
+ 0x2170, 0x217f,
+ 0x2184, 0x2184,
+ 0x24d0, 0x24e9,
+ 0x2c30, 0x2c5e,
+ 0x2c61, 0x2c61,
+ 0x2c65, 0x2c66,
+ 0x2c68, 0x2c68,
+ 0x2c6a, 0x2c6a,
+ 0x2c6c, 0x2c6c,
+ 0x2c73, 0x2c73,
+ 0x2c76, 0x2c76,
+ 0x2c81, 0x2c81,
+ 0x2c83, 0x2c83,
+ 0x2c85, 0x2c85,
+ 0x2c87, 0x2c87,
+ 0x2c89, 0x2c89,
+ 0x2c8b, 0x2c8b,
+ 0x2c8d, 0x2c8d,
+ 0x2c8f, 0x2c8f,
+ 0x2c91, 0x2c91,
+ 0x2c93, 0x2c93,
+ 0x2c95, 0x2c95,
+ 0x2c97, 0x2c97,
+ 0x2c99, 0x2c99,
+ 0x2c9b, 0x2c9b,
+ 0x2c9d, 0x2c9d,
+ 0x2c9f, 0x2c9f,
+ 0x2ca1, 0x2ca1,
+ 0x2ca3, 0x2ca3,
+ 0x2ca5, 0x2ca5,
+ 0x2ca7, 0x2ca7,
+ 0x2ca9, 0x2ca9,
+ 0x2cab, 0x2cab,
+ 0x2cad, 0x2cad,
+ 0x2caf, 0x2caf,
+ 0x2cb1, 0x2cb1,
+ 0x2cb3, 0x2cb3,
+ 0x2cb5, 0x2cb5,
+ 0x2cb7, 0x2cb7,
+ 0x2cb9, 0x2cb9,
+ 0x2cbb, 0x2cbb,
+ 0x2cbd, 0x2cbd,
+ 0x2cbf, 0x2cbf,
+ 0x2cc1, 0x2cc1,
+ 0x2cc3, 0x2cc3,
+ 0x2cc5, 0x2cc5,
+ 0x2cc7, 0x2cc7,
+ 0x2cc9, 0x2cc9,
+ 0x2ccb, 0x2ccb,
+ 0x2ccd, 0x2ccd,
+ 0x2ccf, 0x2ccf,
+ 0x2cd1, 0x2cd1,
+ 0x2cd3, 0x2cd3,
+ 0x2cd5, 0x2cd5,
+ 0x2cd7, 0x2cd7,
+ 0x2cd9, 0x2cd9,
+ 0x2cdb, 0x2cdb,
+ 0x2cdd, 0x2cdd,
+ 0x2cdf, 0x2cdf,
+ 0x2ce1, 0x2ce1,
+ 0x2ce3, 0x2ce3,
+ 0x2cec, 0x2cec,
+ 0x2cee, 0x2cee,
+ 0x2d00, 0x2d25,
+ 0xa641, 0xa641,
+ 0xa643, 0xa643,
+ 0xa645, 0xa645,
+ 0xa647, 0xa647,
+ 0xa649, 0xa649,
+ 0xa64b, 0xa64b,
+ 0xa64d, 0xa64d,
+ 0xa64f, 0xa64f,
+ 0xa651, 0xa651,
+ 0xa653, 0xa653,
+ 0xa655, 0xa655,
+ 0xa657, 0xa657,
+ 0xa659, 0xa659,
+ 0xa65b, 0xa65b,
+ 0xa65d, 0xa65d,
+ 0xa65f, 0xa65f,
+ 0xa661, 0xa661,
+ 0xa663, 0xa663,
+ 0xa665, 0xa665,
+ 0xa667, 0xa667,
+ 0xa669, 0xa669,
+ 0xa66b, 0xa66b,
+ 0xa66d, 0xa66d,
+ 0xa681, 0xa681,
+ 0xa683, 0xa683,
+ 0xa685, 0xa685,
+ 0xa687, 0xa687,
+ 0xa689, 0xa689,
+ 0xa68b, 0xa68b,
+ 0xa68d, 0xa68d,
+ 0xa68f, 0xa68f,
+ 0xa691, 0xa691,
+ 0xa693, 0xa693,
+ 0xa695, 0xa695,
+ 0xa697, 0xa697,
+ 0xa723, 0xa723,
+ 0xa725, 0xa725,
+ 0xa727, 0xa727,
+ 0xa729, 0xa729,
+ 0xa72b, 0xa72b,
+ 0xa72d, 0xa72d,
+ 0xa72f, 0xa72f,
+ 0xa733, 0xa733,
+ 0xa735, 0xa735,
+ 0xa737, 0xa737,
+ 0xa739, 0xa739,
+ 0xa73b, 0xa73b,
+ 0xa73d, 0xa73d,
+ 0xa73f, 0xa73f,
+ 0xa741, 0xa741,
+ 0xa743, 0xa743,
+ 0xa745, 0xa745,
+ 0xa747, 0xa747,
+ 0xa749, 0xa749,
+ 0xa74b, 0xa74b,
+ 0xa74d, 0xa74d,
+ 0xa74f, 0xa74f,
+ 0xa751, 0xa751,
+ 0xa753, 0xa753,
+ 0xa755, 0xa755,
+ 0xa757, 0xa757,
+ 0xa759, 0xa759,
+ 0xa75b, 0xa75b,
+ 0xa75d, 0xa75d,
+ 0xa75f, 0xa75f,
+ 0xa761, 0xa761,
+ 0xa763, 0xa763,
+ 0xa765, 0xa765,
+ 0xa767, 0xa767,
+ 0xa769, 0xa769,
+ 0xa76b, 0xa76b,
+ 0xa76d, 0xa76d,
+ 0xa76f, 0xa76f,
+ 0xa77a, 0xa77a,
+ 0xa77c, 0xa77c,
+ 0xa77f, 0xa77f,
+ 0xa781, 0xa781,
+ 0xa783, 0xa783,
+ 0xa785, 0xa785,
+ 0xa787, 0xa787,
+ 0xa78c, 0xa78c,
+ 0xa791, 0xa791,
+ 0xa7a1, 0xa7a1,
+ 0xa7a3, 0xa7a3,
+ 0xa7a5, 0xa7a5,
+ 0xa7a7, 0xa7a7,
+ 0xa7a9, 0xa7a9,
+ 0xfb00, 0xfb06,
+ 0xfb13, 0xfb17,
+ 0xff41, 0xff5a,
+ 0x10428, 0x1044f,
+}; /* CR_Changes_When_Uppercased */
+
+/* 'Changes_When_Titlecased': Derived Property */
+static const OnigCodePoint CR_Changes_When_Titlecased[] = {
+ 583,
+ 0x0061, 0x007a,
+ 0x00b5, 0x00b5,
+ 0x00df, 0x00f6,
+ 0x00f8, 0x00ff,
+ 0x0101, 0x0101,
+ 0x0103, 0x0103,
+ 0x0105, 0x0105,
+ 0x0107, 0x0107,
+ 0x0109, 0x0109,
+ 0x010b, 0x010b,
+ 0x010d, 0x010d,
+ 0x010f, 0x010f,
+ 0x0111, 0x0111,
+ 0x0113, 0x0113,
+ 0x0115, 0x0115,
+ 0x0117, 0x0117,
+ 0x0119, 0x0119,
+ 0x011b, 0x011b,
+ 0x011d, 0x011d,
+ 0x011f, 0x011f,
+ 0x0121, 0x0121,
+ 0x0123, 0x0123,
+ 0x0125, 0x0125,
+ 0x0127, 0x0127,
+ 0x0129, 0x0129,
+ 0x012b, 0x012b,
+ 0x012d, 0x012d,
+ 0x012f, 0x012f,
+ 0x0131, 0x0131,
+ 0x0133, 0x0133,
+ 0x0135, 0x0135,
+ 0x0137, 0x0137,
+ 0x013a, 0x013a,
+ 0x013c, 0x013c,
+ 0x013e, 0x013e,
+ 0x0140, 0x0140,
+ 0x0142, 0x0142,
+ 0x0144, 0x0144,
+ 0x0146, 0x0146,
+ 0x0148, 0x0149,
+ 0x014b, 0x014b,
+ 0x014d, 0x014d,
+ 0x014f, 0x014f,
+ 0x0151, 0x0151,
+ 0x0153, 0x0153,
+ 0x0155, 0x0155,
+ 0x0157, 0x0157,
+ 0x0159, 0x0159,
+ 0x015b, 0x015b,
+ 0x015d, 0x015d,
+ 0x015f, 0x015f,
+ 0x0161, 0x0161,
+ 0x0163, 0x0163,
+ 0x0165, 0x0165,
+ 0x0167, 0x0167,
+ 0x0169, 0x0169,
+ 0x016b, 0x016b,
+ 0x016d, 0x016d,
+ 0x016f, 0x016f,
+ 0x0171, 0x0171,
+ 0x0173, 0x0173,
+ 0x0175, 0x0175,
+ 0x0177, 0x0177,
+ 0x017a, 0x017a,
+ 0x017c, 0x017c,
+ 0x017e, 0x0180,
+ 0x0183, 0x0183,
+ 0x0185, 0x0185,
+ 0x0188, 0x0188,
+ 0x018c, 0x018c,
+ 0x0192, 0x0192,
+ 0x0195, 0x0195,
+ 0x0199, 0x019a,
+ 0x019e, 0x019e,
+ 0x01a1, 0x01a1,
+ 0x01a3, 0x01a3,
+ 0x01a5, 0x01a5,
+ 0x01a8, 0x01a8,
+ 0x01ad, 0x01ad,
+ 0x01b0, 0x01b0,
+ 0x01b4, 0x01b4,
+ 0x01b6, 0x01b6,
+ 0x01b9, 0x01b9,
+ 0x01bd, 0x01bd,
+ 0x01bf, 0x01bf,
+ 0x01c4, 0x01c4,
+ 0x01c6, 0x01c7,
+ 0x01c9, 0x01ca,
+ 0x01cc, 0x01cc,
+ 0x01ce, 0x01ce,
+ 0x01d0, 0x01d0,
+ 0x01d2, 0x01d2,
+ 0x01d4, 0x01d4,
+ 0x01d6, 0x01d6,
+ 0x01d8, 0x01d8,
+ 0x01da, 0x01da,
+ 0x01dc, 0x01dd,
+ 0x01df, 0x01df,
+ 0x01e1, 0x01e1,
+ 0x01e3, 0x01e3,
+ 0x01e5, 0x01e5,
+ 0x01e7, 0x01e7,
+ 0x01e9, 0x01e9,
+ 0x01eb, 0x01eb,
+ 0x01ed, 0x01ed,
+ 0x01ef, 0x01f1,
+ 0x01f3, 0x01f3,
+ 0x01f5, 0x01f5,
+ 0x01f9, 0x01f9,
+ 0x01fb, 0x01fb,
+ 0x01fd, 0x01fd,
+ 0x01ff, 0x01ff,
+ 0x0201, 0x0201,
+ 0x0203, 0x0203,
+ 0x0205, 0x0205,
+ 0x0207, 0x0207,
+ 0x0209, 0x0209,
+ 0x020b, 0x020b,
+ 0x020d, 0x020d,
+ 0x020f, 0x020f,
+ 0x0211, 0x0211,
+ 0x0213, 0x0213,
+ 0x0215, 0x0215,
+ 0x0217, 0x0217,
+ 0x0219, 0x0219,
+ 0x021b, 0x021b,
+ 0x021d, 0x021d,
+ 0x021f, 0x021f,
+ 0x0223, 0x0223,
+ 0x0225, 0x0225,
+ 0x0227, 0x0227,
+ 0x0229, 0x0229,
+ 0x022b, 0x022b,
+ 0x022d, 0x022d,
+ 0x022f, 0x022f,
+ 0x0231, 0x0231,
+ 0x0233, 0x0233,
+ 0x023c, 0x023c,
+ 0x023f, 0x0240,
+ 0x0242, 0x0242,
+ 0x0247, 0x0247,
+ 0x0249, 0x0249,
+ 0x024b, 0x024b,
+ 0x024d, 0x024d,
+ 0x024f, 0x0254,
+ 0x0256, 0x0257,
+ 0x0259, 0x0259,
+ 0x025b, 0x025b,
+ 0x0260, 0x0260,
+ 0x0263, 0x0263,
+ 0x0265, 0x0265,
+ 0x0268, 0x0269,
+ 0x026b, 0x026b,
+ 0x026f, 0x026f,
+ 0x0271, 0x0272,
+ 0x0275, 0x0275,
+ 0x027d, 0x027d,
+ 0x0280, 0x0280,
+ 0x0283, 0x0283,
+ 0x0288, 0x028c,
+ 0x0292, 0x0292,
+ 0x0345, 0x0345,
+ 0x0371, 0x0371,
+ 0x0373, 0x0373,
+ 0x0377, 0x0377,
+ 0x037b, 0x037d,
+ 0x0390, 0x0390,
+ 0x03ac, 0x03ce,
+ 0x03d0, 0x03d1,
+ 0x03d5, 0x03d7,
+ 0x03d9, 0x03d9,
+ 0x03db, 0x03db,
+ 0x03dd, 0x03dd,
+ 0x03df, 0x03df,
+ 0x03e1, 0x03e1,
+ 0x03e3, 0x03e3,
+ 0x03e5, 0x03e5,
+ 0x03e7, 0x03e7,
+ 0x03e9, 0x03e9,
+ 0x03eb, 0x03eb,
+ 0x03ed, 0x03ed,
+ 0x03ef, 0x03f2,
+ 0x03f5, 0x03f5,
+ 0x03f8, 0x03f8,
+ 0x03fb, 0x03fb,
+ 0x0430, 0x045f,
+ 0x0461, 0x0461,
+ 0x0463, 0x0463,
+ 0x0465, 0x0465,
+ 0x0467, 0x0467,
+ 0x0469, 0x0469,
+ 0x046b, 0x046b,
+ 0x046d, 0x046d,
+ 0x046f, 0x046f,
+ 0x0471, 0x0471,
+ 0x0473, 0x0473,
+ 0x0475, 0x0475,
+ 0x0477, 0x0477,
+ 0x0479, 0x0479,
+ 0x047b, 0x047b,
+ 0x047d, 0x047d,
+ 0x047f, 0x047f,
+ 0x0481, 0x0481,
+ 0x048b, 0x048b,
+ 0x048d, 0x048d,
+ 0x048f, 0x048f,
+ 0x0491, 0x0491,
+ 0x0493, 0x0493,
+ 0x0495, 0x0495,
+ 0x0497, 0x0497,
+ 0x0499, 0x0499,
+ 0x049b, 0x049b,
+ 0x049d, 0x049d,
+ 0x049f, 0x049f,
+ 0x04a1, 0x04a1,
+ 0x04a3, 0x04a3,
+ 0x04a5, 0x04a5,
+ 0x04a7, 0x04a7,
+ 0x04a9, 0x04a9,
+ 0x04ab, 0x04ab,
+ 0x04ad, 0x04ad,
+ 0x04af, 0x04af,
+ 0x04b1, 0x04b1,
+ 0x04b3, 0x04b3,
+ 0x04b5, 0x04b5,
+ 0x04b7, 0x04b7,
+ 0x04b9, 0x04b9,
+ 0x04bb, 0x04bb,
+ 0x04bd, 0x04bd,
+ 0x04bf, 0x04bf,
+ 0x04c2, 0x04c2,
+ 0x04c4, 0x04c4,
+ 0x04c6, 0x04c6,
+ 0x04c8, 0x04c8,
+ 0x04ca, 0x04ca,
+ 0x04cc, 0x04cc,
+ 0x04ce, 0x04cf,
+ 0x04d1, 0x04d1,
+ 0x04d3, 0x04d3,
+ 0x04d5, 0x04d5,
+ 0x04d7, 0x04d7,
+ 0x04d9, 0x04d9,
+ 0x04db, 0x04db,
+ 0x04dd, 0x04dd,
+ 0x04df, 0x04df,
+ 0x04e1, 0x04e1,
+ 0x04e3, 0x04e3,
+ 0x04e5, 0x04e5,
+ 0x04e7, 0x04e7,
+ 0x04e9, 0x04e9,
+ 0x04eb, 0x04eb,
+ 0x04ed, 0x04ed,
+ 0x04ef, 0x04ef,
+ 0x04f1, 0x04f1,
+ 0x04f3, 0x04f3,
+ 0x04f5, 0x04f5,
+ 0x04f7, 0x04f7,
+ 0x04f9, 0x04f9,
+ 0x04fb, 0x04fb,
+ 0x04fd, 0x04fd,
+ 0x04ff, 0x04ff,
+ 0x0501, 0x0501,
+ 0x0503, 0x0503,
+ 0x0505, 0x0505,
+ 0x0507, 0x0507,
+ 0x0509, 0x0509,
+ 0x050b, 0x050b,
+ 0x050d, 0x050d,
+ 0x050f, 0x050f,
+ 0x0511, 0x0511,
+ 0x0513, 0x0513,
+ 0x0515, 0x0515,
+ 0x0517, 0x0517,
+ 0x0519, 0x0519,
+ 0x051b, 0x051b,
+ 0x051d, 0x051d,
+ 0x051f, 0x051f,
+ 0x0521, 0x0521,
+ 0x0523, 0x0523,
+ 0x0525, 0x0525,
+ 0x0527, 0x0527,
+ 0x0561, 0x0587,
+ 0x1d79, 0x1d79,
+ 0x1d7d, 0x1d7d,
+ 0x1e01, 0x1e01,
+ 0x1e03, 0x1e03,
+ 0x1e05, 0x1e05,
+ 0x1e07, 0x1e07,
+ 0x1e09, 0x1e09,
+ 0x1e0b, 0x1e0b,
+ 0x1e0d, 0x1e0d,
+ 0x1e0f, 0x1e0f,
+ 0x1e11, 0x1e11,
+ 0x1e13, 0x1e13,
+ 0x1e15, 0x1e15,
+ 0x1e17, 0x1e17,
+ 0x1e19, 0x1e19,
+ 0x1e1b, 0x1e1b,
+ 0x1e1d, 0x1e1d,
+ 0x1e1f, 0x1e1f,
+ 0x1e21, 0x1e21,
+ 0x1e23, 0x1e23,
+ 0x1e25, 0x1e25,
+ 0x1e27, 0x1e27,
+ 0x1e29, 0x1e29,
+ 0x1e2b, 0x1e2b,
+ 0x1e2d, 0x1e2d,
+ 0x1e2f, 0x1e2f,
+ 0x1e31, 0x1e31,
+ 0x1e33, 0x1e33,
+ 0x1e35, 0x1e35,
+ 0x1e37, 0x1e37,
+ 0x1e39, 0x1e39,
+ 0x1e3b, 0x1e3b,
+ 0x1e3d, 0x1e3d,
+ 0x1e3f, 0x1e3f,
+ 0x1e41, 0x1e41,
+ 0x1e43, 0x1e43,
+ 0x1e45, 0x1e45,
+ 0x1e47, 0x1e47,
+ 0x1e49, 0x1e49,
+ 0x1e4b, 0x1e4b,
+ 0x1e4d, 0x1e4d,
+ 0x1e4f, 0x1e4f,
+ 0x1e51, 0x1e51,
+ 0x1e53, 0x1e53,
+ 0x1e55, 0x1e55,
+ 0x1e57, 0x1e57,
+ 0x1e59, 0x1e59,
+ 0x1e5b, 0x1e5b,
+ 0x1e5d, 0x1e5d,
+ 0x1e5f, 0x1e5f,
+ 0x1e61, 0x1e61,
+ 0x1e63, 0x1e63,
+ 0x1e65, 0x1e65,
+ 0x1e67, 0x1e67,
+ 0x1e69, 0x1e69,
+ 0x1e6b, 0x1e6b,
+ 0x1e6d, 0x1e6d,
+ 0x1e6f, 0x1e6f,
+ 0x1e71, 0x1e71,
+ 0x1e73, 0x1e73,
+ 0x1e75, 0x1e75,
+ 0x1e77, 0x1e77,
+ 0x1e79, 0x1e79,
+ 0x1e7b, 0x1e7b,
+ 0x1e7d, 0x1e7d,
+ 0x1e7f, 0x1e7f,
+ 0x1e81, 0x1e81,
+ 0x1e83, 0x1e83,
+ 0x1e85, 0x1e85,
+ 0x1e87, 0x1e87,
+ 0x1e89, 0x1e89,
+ 0x1e8b, 0x1e8b,
+ 0x1e8d, 0x1e8d,
+ 0x1e8f, 0x1e8f,
+ 0x1e91, 0x1e91,
+ 0x1e93, 0x1e93,
+ 0x1e95, 0x1e9b,
+ 0x1ea1, 0x1ea1,
+ 0x1ea3, 0x1ea3,
+ 0x1ea5, 0x1ea5,
+ 0x1ea7, 0x1ea7,
+ 0x1ea9, 0x1ea9,
+ 0x1eab, 0x1eab,
+ 0x1ead, 0x1ead,
+ 0x1eaf, 0x1eaf,
+ 0x1eb1, 0x1eb1,
+ 0x1eb3, 0x1eb3,
+ 0x1eb5, 0x1eb5,
+ 0x1eb7, 0x1eb7,
+ 0x1eb9, 0x1eb9,
+ 0x1ebb, 0x1ebb,
+ 0x1ebd, 0x1ebd,
+ 0x1ebf, 0x1ebf,
+ 0x1ec1, 0x1ec1,
+ 0x1ec3, 0x1ec3,
+ 0x1ec5, 0x1ec5,
+ 0x1ec7, 0x1ec7,
+ 0x1ec9, 0x1ec9,
+ 0x1ecb, 0x1ecb,
+ 0x1ecd, 0x1ecd,
+ 0x1ecf, 0x1ecf,
+ 0x1ed1, 0x1ed1,
+ 0x1ed3, 0x1ed3,
+ 0x1ed5, 0x1ed5,
+ 0x1ed7, 0x1ed7,
+ 0x1ed9, 0x1ed9,
+ 0x1edb, 0x1edb,
+ 0x1edd, 0x1edd,
+ 0x1edf, 0x1edf,
+ 0x1ee1, 0x1ee1,
+ 0x1ee3, 0x1ee3,
+ 0x1ee5, 0x1ee5,
+ 0x1ee7, 0x1ee7,
+ 0x1ee9, 0x1ee9,
+ 0x1eeb, 0x1eeb,
+ 0x1eed, 0x1eed,
+ 0x1eef, 0x1eef,
+ 0x1ef1, 0x1ef1,
+ 0x1ef3, 0x1ef3,
+ 0x1ef5, 0x1ef5,
+ 0x1ef7, 0x1ef7,
+ 0x1ef9, 0x1ef9,
+ 0x1efb, 0x1efb,
+ 0x1efd, 0x1efd,
+ 0x1eff, 0x1f07,
+ 0x1f10, 0x1f15,
+ 0x1f20, 0x1f27,
+ 0x1f30, 0x1f37,
+ 0x1f40, 0x1f45,
+ 0x1f50, 0x1f57,
+ 0x1f60, 0x1f67,
+ 0x1f70, 0x1f7d,
+ 0x1f80, 0x1f87,
+ 0x1f90, 0x1f97,
+ 0x1fa0, 0x1fa7,
+ 0x1fb0, 0x1fb4,
+ 0x1fb6, 0x1fb7,
+ 0x1fbe, 0x1fbe,
+ 0x1fc2, 0x1fc4,
+ 0x1fc6, 0x1fc7,
+ 0x1fd0, 0x1fd3,
+ 0x1fd6, 0x1fd7,
+ 0x1fe0, 0x1fe7,
+ 0x1ff2, 0x1ff4,
+ 0x1ff6, 0x1ff7,
+ 0x214e, 0x214e,
+ 0x2170, 0x217f,
+ 0x2184, 0x2184,
+ 0x24d0, 0x24e9,
+ 0x2c30, 0x2c5e,
+ 0x2c61, 0x2c61,
+ 0x2c65, 0x2c66,
+ 0x2c68, 0x2c68,
+ 0x2c6a, 0x2c6a,
+ 0x2c6c, 0x2c6c,
+ 0x2c73, 0x2c73,
+ 0x2c76, 0x2c76,
+ 0x2c81, 0x2c81,
+ 0x2c83, 0x2c83,
+ 0x2c85, 0x2c85,
+ 0x2c87, 0x2c87,
+ 0x2c89, 0x2c89,
+ 0x2c8b, 0x2c8b,
+ 0x2c8d, 0x2c8d,
+ 0x2c8f, 0x2c8f,
+ 0x2c91, 0x2c91,
+ 0x2c93, 0x2c93,
+ 0x2c95, 0x2c95,
+ 0x2c97, 0x2c97,
+ 0x2c99, 0x2c99,
+ 0x2c9b, 0x2c9b,
+ 0x2c9d, 0x2c9d,
+ 0x2c9f, 0x2c9f,
+ 0x2ca1, 0x2ca1,
+ 0x2ca3, 0x2ca3,
+ 0x2ca5, 0x2ca5,
+ 0x2ca7, 0x2ca7,
+ 0x2ca9, 0x2ca9,
+ 0x2cab, 0x2cab,
+ 0x2cad, 0x2cad,
+ 0x2caf, 0x2caf,
+ 0x2cb1, 0x2cb1,
+ 0x2cb3, 0x2cb3,
+ 0x2cb5, 0x2cb5,
+ 0x2cb7, 0x2cb7,
+ 0x2cb9, 0x2cb9,
+ 0x2cbb, 0x2cbb,
+ 0x2cbd, 0x2cbd,
+ 0x2cbf, 0x2cbf,
+ 0x2cc1, 0x2cc1,
+ 0x2cc3, 0x2cc3,
+ 0x2cc5, 0x2cc5,
+ 0x2cc7, 0x2cc7,
+ 0x2cc9, 0x2cc9,
+ 0x2ccb, 0x2ccb,
+ 0x2ccd, 0x2ccd,
+ 0x2ccf, 0x2ccf,
+ 0x2cd1, 0x2cd1,
+ 0x2cd3, 0x2cd3,
+ 0x2cd5, 0x2cd5,
+ 0x2cd7, 0x2cd7,
+ 0x2cd9, 0x2cd9,
+ 0x2cdb, 0x2cdb,
+ 0x2cdd, 0x2cdd,
+ 0x2cdf, 0x2cdf,
+ 0x2ce1, 0x2ce1,
+ 0x2ce3, 0x2ce3,
+ 0x2cec, 0x2cec,
+ 0x2cee, 0x2cee,
+ 0x2d00, 0x2d25,
+ 0xa641, 0xa641,
+ 0xa643, 0xa643,
+ 0xa645, 0xa645,
+ 0xa647, 0xa647,
+ 0xa649, 0xa649,
+ 0xa64b, 0xa64b,
+ 0xa64d, 0xa64d,
+ 0xa64f, 0xa64f,
+ 0xa651, 0xa651,
+ 0xa653, 0xa653,
+ 0xa655, 0xa655,
+ 0xa657, 0xa657,
+ 0xa659, 0xa659,
+ 0xa65b, 0xa65b,
+ 0xa65d, 0xa65d,
+ 0xa65f, 0xa65f,
+ 0xa661, 0xa661,
+ 0xa663, 0xa663,
+ 0xa665, 0xa665,
+ 0xa667, 0xa667,
+ 0xa669, 0xa669,
+ 0xa66b, 0xa66b,
+ 0xa66d, 0xa66d,
+ 0xa681, 0xa681,
+ 0xa683, 0xa683,
+ 0xa685, 0xa685,
+ 0xa687, 0xa687,
+ 0xa689, 0xa689,
+ 0xa68b, 0xa68b,
+ 0xa68d, 0xa68d,
+ 0xa68f, 0xa68f,
+ 0xa691, 0xa691,
+ 0xa693, 0xa693,
+ 0xa695, 0xa695,
+ 0xa697, 0xa697,
+ 0xa723, 0xa723,
+ 0xa725, 0xa725,
+ 0xa727, 0xa727,
+ 0xa729, 0xa729,
+ 0xa72b, 0xa72b,
+ 0xa72d, 0xa72d,
+ 0xa72f, 0xa72f,
+ 0xa733, 0xa733,
+ 0xa735, 0xa735,
+ 0xa737, 0xa737,
+ 0xa739, 0xa739,
+ 0xa73b, 0xa73b,
+ 0xa73d, 0xa73d,
+ 0xa73f, 0xa73f,
+ 0xa741, 0xa741,
+ 0xa743, 0xa743,
+ 0xa745, 0xa745,
+ 0xa747, 0xa747,
+ 0xa749, 0xa749,
+ 0xa74b, 0xa74b,
+ 0xa74d, 0xa74d,
+ 0xa74f, 0xa74f,
+ 0xa751, 0xa751,
+ 0xa753, 0xa753,
+ 0xa755, 0xa755,
+ 0xa757, 0xa757,
+ 0xa759, 0xa759,
+ 0xa75b, 0xa75b,
+ 0xa75d, 0xa75d,
+ 0xa75f, 0xa75f,
+ 0xa761, 0xa761,
+ 0xa763, 0xa763,
+ 0xa765, 0xa765,
+ 0xa767, 0xa767,
+ 0xa769, 0xa769,
+ 0xa76b, 0xa76b,
+ 0xa76d, 0xa76d,
+ 0xa76f, 0xa76f,
+ 0xa77a, 0xa77a,
+ 0xa77c, 0xa77c,
+ 0xa77f, 0xa77f,
+ 0xa781, 0xa781,
+ 0xa783, 0xa783,
+ 0xa785, 0xa785,
+ 0xa787, 0xa787,
+ 0xa78c, 0xa78c,
+ 0xa791, 0xa791,
+ 0xa7a1, 0xa7a1,
+ 0xa7a3, 0xa7a3,
+ 0xa7a5, 0xa7a5,
+ 0xa7a7, 0xa7a7,
+ 0xa7a9, 0xa7a9,
+ 0xfb00, 0xfb06,
+ 0xfb13, 0xfb17,
+ 0xff41, 0xff5a,
+ 0x10428, 0x1044f,
+}; /* CR_Changes_When_Titlecased */
+
+/* 'Changes_When_Casefolded': Derived Property */
+static const OnigCodePoint CR_Changes_When_Casefolded[] = {
+ 577,
+ 0x0041, 0x005a,
+ 0x00b5, 0x00b5,
+ 0x00c0, 0x00d6,
+ 0x00d8, 0x00df,
+ 0x0100, 0x0100,
+ 0x0102, 0x0102,
+ 0x0104, 0x0104,
+ 0x0106, 0x0106,
+ 0x0108, 0x0108,
+ 0x010a, 0x010a,
+ 0x010c, 0x010c,
+ 0x010e, 0x010e,
+ 0x0110, 0x0110,
+ 0x0112, 0x0112,
+ 0x0114, 0x0114,
+ 0x0116, 0x0116,
+ 0x0118, 0x0118,
+ 0x011a, 0x011a,
+ 0x011c, 0x011c,
+ 0x011e, 0x011e,
+ 0x0120, 0x0120,
+ 0x0122, 0x0122,
+ 0x0124, 0x0124,
+ 0x0126, 0x0126,
+ 0x0128, 0x0128,
+ 0x012a, 0x012a,
+ 0x012c, 0x012c,
+ 0x012e, 0x012e,
+ 0x0130, 0x0130,
+ 0x0132, 0x0132,
+ 0x0134, 0x0134,
+ 0x0136, 0x0136,
+ 0x0139, 0x0139,
+ 0x013b, 0x013b,
+ 0x013d, 0x013d,
+ 0x013f, 0x013f,
+ 0x0141, 0x0141,
+ 0x0143, 0x0143,
+ 0x0145, 0x0145,
+ 0x0147, 0x0147,
+ 0x0149, 0x014a,
+ 0x014c, 0x014c,
+ 0x014e, 0x014e,
+ 0x0150, 0x0150,
+ 0x0152, 0x0152,
+ 0x0154, 0x0154,
+ 0x0156, 0x0156,
+ 0x0158, 0x0158,
+ 0x015a, 0x015a,
+ 0x015c, 0x015c,
+ 0x015e, 0x015e,
+ 0x0160, 0x0160,
+ 0x0162, 0x0162,
+ 0x0164, 0x0164,
+ 0x0166, 0x0166,
+ 0x0168, 0x0168,
+ 0x016a, 0x016a,
+ 0x016c, 0x016c,
+ 0x016e, 0x016e,
+ 0x0170, 0x0170,
+ 0x0172, 0x0172,
+ 0x0174, 0x0174,
+ 0x0176, 0x0176,
+ 0x0178, 0x0179,
+ 0x017b, 0x017b,
+ 0x017d, 0x017d,
+ 0x017f, 0x017f,
+ 0x0181, 0x0182,
+ 0x0184, 0x0184,
+ 0x0186, 0x0187,
+ 0x0189, 0x018b,
+ 0x018e, 0x0191,
+ 0x0193, 0x0194,
+ 0x0196, 0x0198,
+ 0x019c, 0x019d,
+ 0x019f, 0x01a0,
+ 0x01a2, 0x01a2,
+ 0x01a4, 0x01a4,
+ 0x01a6, 0x01a7,
+ 0x01a9, 0x01a9,
+ 0x01ac, 0x01ac,
+ 0x01ae, 0x01af,
+ 0x01b1, 0x01b3,
+ 0x01b5, 0x01b5,
+ 0x01b7, 0x01b8,
+ 0x01bc, 0x01bc,
+ 0x01c4, 0x01c5,
+ 0x01c7, 0x01c8,
+ 0x01ca, 0x01cb,
+ 0x01cd, 0x01cd,
+ 0x01cf, 0x01cf,
+ 0x01d1, 0x01d1,
+ 0x01d3, 0x01d3,
+ 0x01d5, 0x01d5,
+ 0x01d7, 0x01d7,
+ 0x01d9, 0x01d9,
+ 0x01db, 0x01db,
+ 0x01de, 0x01de,
+ 0x01e0, 0x01e0,
+ 0x01e2, 0x01e2,
+ 0x01e4, 0x01e4,
+ 0x01e6, 0x01e6,
+ 0x01e8, 0x01e8,
+ 0x01ea, 0x01ea,
+ 0x01ec, 0x01ec,
+ 0x01ee, 0x01ee,
+ 0x01f1, 0x01f2,
+ 0x01f4, 0x01f4,
+ 0x01f6, 0x01f8,
+ 0x01fa, 0x01fa,
+ 0x01fc, 0x01fc,
+ 0x01fe, 0x01fe,
+ 0x0200, 0x0200,
+ 0x0202, 0x0202,
+ 0x0204, 0x0204,
+ 0x0206, 0x0206,
+ 0x0208, 0x0208,
+ 0x020a, 0x020a,
+ 0x020c, 0x020c,
+ 0x020e, 0x020e,
+ 0x0210, 0x0210,
+ 0x0212, 0x0212,
+ 0x0214, 0x0214,
+ 0x0216, 0x0216,
+ 0x0218, 0x0218,
+ 0x021a, 0x021a,
+ 0x021c, 0x021c,
+ 0x021e, 0x021e,
+ 0x0220, 0x0220,
+ 0x0222, 0x0222,
+ 0x0224, 0x0224,
+ 0x0226, 0x0226,
+ 0x0228, 0x0228,
+ 0x022a, 0x022a,
+ 0x022c, 0x022c,
+ 0x022e, 0x022e,
+ 0x0230, 0x0230,
+ 0x0232, 0x0232,
+ 0x023a, 0x023b,
+ 0x023d, 0x023e,
+ 0x0241, 0x0241,
+ 0x0243, 0x0246,
+ 0x0248, 0x0248,
+ 0x024a, 0x024a,
+ 0x024c, 0x024c,
+ 0x024e, 0x024e,
+ 0x0345, 0x0345,
+ 0x0370, 0x0370,
+ 0x0372, 0x0372,
+ 0x0376, 0x0376,
+ 0x0386, 0x0386,
+ 0x0388, 0x038a,
+ 0x038c, 0x038c,
+ 0x038e, 0x038f,
+ 0x0391, 0x03a1,
+ 0x03a3, 0x03ab,
+ 0x03c2, 0x03c2,
+ 0x03cf, 0x03d1,
+ 0x03d5, 0x03d6,
+ 0x03d8, 0x03d8,
+ 0x03da, 0x03da,
+ 0x03dc, 0x03dc,
+ 0x03de, 0x03de,
+ 0x03e0, 0x03e0,
+ 0x03e2, 0x03e2,
+ 0x03e4, 0x03e4,
+ 0x03e6, 0x03e6,
+ 0x03e8, 0x03e8,
+ 0x03ea, 0x03ea,
+ 0x03ec, 0x03ec,
+ 0x03ee, 0x03ee,
+ 0x03f0, 0x03f1,
+ 0x03f4, 0x03f5,
+ 0x03f7, 0x03f7,
+ 0x03f9, 0x03fa,
+ 0x03fd, 0x042f,
+ 0x0460, 0x0460,
+ 0x0462, 0x0462,
+ 0x0464, 0x0464,
+ 0x0466, 0x0466,
+ 0x0468, 0x0468,
+ 0x046a, 0x046a,
+ 0x046c, 0x046c,
+ 0x046e, 0x046e,
+ 0x0470, 0x0470,
+ 0x0472, 0x0472,
+ 0x0474, 0x0474,
+ 0x0476, 0x0476,
+ 0x0478, 0x0478,
+ 0x047a, 0x047a,
+ 0x047c, 0x047c,
+ 0x047e, 0x047e,
+ 0x0480, 0x0480,
+ 0x048a, 0x048a,
+ 0x048c, 0x048c,
+ 0x048e, 0x048e,
+ 0x0490, 0x0490,
+ 0x0492, 0x0492,
+ 0x0494, 0x0494,
+ 0x0496, 0x0496,
+ 0x0498, 0x0498,
+ 0x049a, 0x049a,
+ 0x049c, 0x049c,
+ 0x049e, 0x049e,
+ 0x04a0, 0x04a0,
+ 0x04a2, 0x04a2,
+ 0x04a4, 0x04a4,
+ 0x04a6, 0x04a6,
+ 0x04a8, 0x04a8,
+ 0x04aa, 0x04aa,
+ 0x04ac, 0x04ac,
+ 0x04ae, 0x04ae,
+ 0x04b0, 0x04b0,
+ 0x04b2, 0x04b2,
+ 0x04b4, 0x04b4,
+ 0x04b6, 0x04b6,
+ 0x04b8, 0x04b8,
+ 0x04ba, 0x04ba,
+ 0x04bc, 0x04bc,
+ 0x04be, 0x04be,
+ 0x04c0, 0x04c1,
+ 0x04c3, 0x04c3,
+ 0x04c5, 0x04c5,
+ 0x04c7, 0x04c7,
+ 0x04c9, 0x04c9,
+ 0x04cb, 0x04cb,
+ 0x04cd, 0x04cd,
+ 0x04d0, 0x04d0,
+ 0x04d2, 0x04d2,
+ 0x04d4, 0x04d4,
+ 0x04d6, 0x04d6,
+ 0x04d8, 0x04d8,
+ 0x04da, 0x04da,
+ 0x04dc, 0x04dc,
+ 0x04de, 0x04de,
+ 0x04e0, 0x04e0,
+ 0x04e2, 0x04e2,
+ 0x04e4, 0x04e4,
+ 0x04e6, 0x04e6,
+ 0x04e8, 0x04e8,
+ 0x04ea, 0x04ea,
+ 0x04ec, 0x04ec,
+ 0x04ee, 0x04ee,
+ 0x04f0, 0x04f0,
+ 0x04f2, 0x04f2,
+ 0x04f4, 0x04f4,
+ 0x04f6, 0x04f6,
+ 0x04f8, 0x04f8,
+ 0x04fa, 0x04fa,
+ 0x04fc, 0x04fc,
+ 0x04fe, 0x04fe,
+ 0x0500, 0x0500,
+ 0x0502, 0x0502,
+ 0x0504, 0x0504,
+ 0x0506, 0x0506,
+ 0x0508, 0x0508,
+ 0x050a, 0x050a,
+ 0x050c, 0x050c,
+ 0x050e, 0x050e,
+ 0x0510, 0x0510,
+ 0x0512, 0x0512,
+ 0x0514, 0x0514,
+ 0x0516, 0x0516,
+ 0x0518, 0x0518,
+ 0x051a, 0x051a,
+ 0x051c, 0x051c,
+ 0x051e, 0x051e,
+ 0x0520, 0x0520,
+ 0x0522, 0x0522,
+ 0x0524, 0x0524,
+ 0x0526, 0x0526,
+ 0x0531, 0x0556,
+ 0x0587, 0x0587,
+ 0x10a0, 0x10c5,
+ 0x1e00, 0x1e00,
+ 0x1e02, 0x1e02,
+ 0x1e04, 0x1e04,
+ 0x1e06, 0x1e06,
+ 0x1e08, 0x1e08,
+ 0x1e0a, 0x1e0a,
+ 0x1e0c, 0x1e0c,
+ 0x1e0e, 0x1e0e,
+ 0x1e10, 0x1e10,
+ 0x1e12, 0x1e12,
+ 0x1e14, 0x1e14,
+ 0x1e16, 0x1e16,
+ 0x1e18, 0x1e18,
+ 0x1e1a, 0x1e1a,
+ 0x1e1c, 0x1e1c,
+ 0x1e1e, 0x1e1e,
+ 0x1e20, 0x1e20,
+ 0x1e22, 0x1e22,
+ 0x1e24, 0x1e24,
+ 0x1e26, 0x1e26,
+ 0x1e28, 0x1e28,
+ 0x1e2a, 0x1e2a,
+ 0x1e2c, 0x1e2c,
+ 0x1e2e, 0x1e2e,
+ 0x1e30, 0x1e30,
+ 0x1e32, 0x1e32,
+ 0x1e34, 0x1e34,
+ 0x1e36, 0x1e36,
+ 0x1e38, 0x1e38,
+ 0x1e3a, 0x1e3a,
+ 0x1e3c, 0x1e3c,
+ 0x1e3e, 0x1e3e,
+ 0x1e40, 0x1e40,
+ 0x1e42, 0x1e42,
+ 0x1e44, 0x1e44,
+ 0x1e46, 0x1e46,
+ 0x1e48, 0x1e48,
+ 0x1e4a, 0x1e4a,
+ 0x1e4c, 0x1e4c,
+ 0x1e4e, 0x1e4e,
+ 0x1e50, 0x1e50,
+ 0x1e52, 0x1e52,
+ 0x1e54, 0x1e54,
+ 0x1e56, 0x1e56,
+ 0x1e58, 0x1e58,
+ 0x1e5a, 0x1e5a,
+ 0x1e5c, 0x1e5c,
+ 0x1e5e, 0x1e5e,
+ 0x1e60, 0x1e60,
+ 0x1e62, 0x1e62,
+ 0x1e64, 0x1e64,
+ 0x1e66, 0x1e66,
+ 0x1e68, 0x1e68,
+ 0x1e6a, 0x1e6a,
+ 0x1e6c, 0x1e6c,
+ 0x1e6e, 0x1e6e,
+ 0x1e70, 0x1e70,
+ 0x1e72, 0x1e72,
+ 0x1e74, 0x1e74,
+ 0x1e76, 0x1e76,
+ 0x1e78, 0x1e78,
+ 0x1e7a, 0x1e7a,
+ 0x1e7c, 0x1e7c,
+ 0x1e7e, 0x1e7e,
+ 0x1e80, 0x1e80,
+ 0x1e82, 0x1e82,
+ 0x1e84, 0x1e84,
+ 0x1e86, 0x1e86,
+ 0x1e88, 0x1e88,
+ 0x1e8a, 0x1e8a,
+ 0x1e8c, 0x1e8c,
+ 0x1e8e, 0x1e8e,
+ 0x1e90, 0x1e90,
+ 0x1e92, 0x1e92,
+ 0x1e94, 0x1e94,
+ 0x1e9a, 0x1e9b,
+ 0x1e9e, 0x1e9e,
+ 0x1ea0, 0x1ea0,
+ 0x1ea2, 0x1ea2,
+ 0x1ea4, 0x1ea4,
+ 0x1ea6, 0x1ea6,
+ 0x1ea8, 0x1ea8,
+ 0x1eaa, 0x1eaa,
+ 0x1eac, 0x1eac,
+ 0x1eae, 0x1eae,
+ 0x1eb0, 0x1eb0,
+ 0x1eb2, 0x1eb2,
+ 0x1eb4, 0x1eb4,
+ 0x1eb6, 0x1eb6,
+ 0x1eb8, 0x1eb8,
+ 0x1eba, 0x1eba,
+ 0x1ebc, 0x1ebc,
+ 0x1ebe, 0x1ebe,
+ 0x1ec0, 0x1ec0,
+ 0x1ec2, 0x1ec2,
+ 0x1ec4, 0x1ec4,
+ 0x1ec6, 0x1ec6,
+ 0x1ec8, 0x1ec8,
+ 0x1eca, 0x1eca,
+ 0x1ecc, 0x1ecc,
+ 0x1ece, 0x1ece,
+ 0x1ed0, 0x1ed0,
+ 0x1ed2, 0x1ed2,
+ 0x1ed4, 0x1ed4,
+ 0x1ed6, 0x1ed6,
+ 0x1ed8, 0x1ed8,
+ 0x1eda, 0x1eda,
+ 0x1edc, 0x1edc,
+ 0x1ede, 0x1ede,
+ 0x1ee0, 0x1ee0,
+ 0x1ee2, 0x1ee2,
+ 0x1ee4, 0x1ee4,
+ 0x1ee6, 0x1ee6,
+ 0x1ee8, 0x1ee8,
+ 0x1eea, 0x1eea,
+ 0x1eec, 0x1eec,
+ 0x1eee, 0x1eee,
+ 0x1ef0, 0x1ef0,
+ 0x1ef2, 0x1ef2,
+ 0x1ef4, 0x1ef4,
+ 0x1ef6, 0x1ef6,
+ 0x1ef8, 0x1ef8,
+ 0x1efa, 0x1efa,
+ 0x1efc, 0x1efc,
+ 0x1efe, 0x1efe,
+ 0x1f08, 0x1f0f,
+ 0x1f18, 0x1f1d,
+ 0x1f28, 0x1f2f,
+ 0x1f38, 0x1f3f,
+ 0x1f48, 0x1f4d,
+ 0x1f59, 0x1f59,
+ 0x1f5b, 0x1f5b,
+ 0x1f5d, 0x1f5d,
+ 0x1f5f, 0x1f5f,
+ 0x1f68, 0x1f6f,
+ 0x1f80, 0x1faf,
+ 0x1fb2, 0x1fb4,
+ 0x1fb7, 0x1fbc,
+ 0x1fc2, 0x1fc4,
+ 0x1fc7, 0x1fcc,
+ 0x1fd8, 0x1fdb,
+ 0x1fe8, 0x1fec,
+ 0x1ff2, 0x1ff4,
+ 0x1ff7, 0x1ffc,
+ 0x2126, 0x2126,
+ 0x212a, 0x212b,
+ 0x2132, 0x2132,
+ 0x2160, 0x216f,
+ 0x2183, 0x2183,
+ 0x24b6, 0x24cf,
+ 0x2c00, 0x2c2e,
+ 0x2c60, 0x2c60,
+ 0x2c62, 0x2c64,
+ 0x2c67, 0x2c67,
+ 0x2c69, 0x2c69,
+ 0x2c6b, 0x2c6b,
+ 0x2c6d, 0x2c70,
+ 0x2c72, 0x2c72,
+ 0x2c75, 0x2c75,
+ 0x2c7e, 0x2c80,
+ 0x2c82, 0x2c82,
+ 0x2c84, 0x2c84,
+ 0x2c86, 0x2c86,
+ 0x2c88, 0x2c88,
+ 0x2c8a, 0x2c8a,
+ 0x2c8c, 0x2c8c,
+ 0x2c8e, 0x2c8e,
+ 0x2c90, 0x2c90,
+ 0x2c92, 0x2c92,
+ 0x2c94, 0x2c94,
+ 0x2c96, 0x2c96,
+ 0x2c98, 0x2c98,
+ 0x2c9a, 0x2c9a,
+ 0x2c9c, 0x2c9c,
+ 0x2c9e, 0x2c9e,
+ 0x2ca0, 0x2ca0,
+ 0x2ca2, 0x2ca2,
+ 0x2ca4, 0x2ca4,
+ 0x2ca6, 0x2ca6,
+ 0x2ca8, 0x2ca8,
+ 0x2caa, 0x2caa,
+ 0x2cac, 0x2cac,
+ 0x2cae, 0x2cae,
+ 0x2cb0, 0x2cb0,
+ 0x2cb2, 0x2cb2,
+ 0x2cb4, 0x2cb4,
+ 0x2cb6, 0x2cb6,
+ 0x2cb8, 0x2cb8,
+ 0x2cba, 0x2cba,
+ 0x2cbc, 0x2cbc,
+ 0x2cbe, 0x2cbe,
+ 0x2cc0, 0x2cc0,
+ 0x2cc2, 0x2cc2,
+ 0x2cc4, 0x2cc4,
+ 0x2cc6, 0x2cc6,
+ 0x2cc8, 0x2cc8,
+ 0x2cca, 0x2cca,
+ 0x2ccc, 0x2ccc,
+ 0x2cce, 0x2cce,
+ 0x2cd0, 0x2cd0,
+ 0x2cd2, 0x2cd2,
+ 0x2cd4, 0x2cd4,
+ 0x2cd6, 0x2cd6,
+ 0x2cd8, 0x2cd8,
+ 0x2cda, 0x2cda,
+ 0x2cdc, 0x2cdc,
+ 0x2cde, 0x2cde,
+ 0x2ce0, 0x2ce0,
+ 0x2ce2, 0x2ce2,
+ 0x2ceb, 0x2ceb,
+ 0x2ced, 0x2ced,
+ 0xa640, 0xa640,
+ 0xa642, 0xa642,
+ 0xa644, 0xa644,
+ 0xa646, 0xa646,
+ 0xa648, 0xa648,
+ 0xa64a, 0xa64a,
+ 0xa64c, 0xa64c,
+ 0xa64e, 0xa64e,
+ 0xa650, 0xa650,
+ 0xa652, 0xa652,
+ 0xa654, 0xa654,
+ 0xa656, 0xa656,
+ 0xa658, 0xa658,
+ 0xa65a, 0xa65a,
+ 0xa65c, 0xa65c,
+ 0xa65e, 0xa65e,
+ 0xa660, 0xa660,
+ 0xa662, 0xa662,
+ 0xa664, 0xa664,
+ 0xa666, 0xa666,
+ 0xa668, 0xa668,
+ 0xa66a, 0xa66a,
+ 0xa66c, 0xa66c,
+ 0xa680, 0xa680,
+ 0xa682, 0xa682,
+ 0xa684, 0xa684,
+ 0xa686, 0xa686,
+ 0xa688, 0xa688,
+ 0xa68a, 0xa68a,
+ 0xa68c, 0xa68c,
+ 0xa68e, 0xa68e,
+ 0xa690, 0xa690,
+ 0xa692, 0xa692,
+ 0xa694, 0xa694,
+ 0xa696, 0xa696,
+ 0xa722, 0xa722,
+ 0xa724, 0xa724,
+ 0xa726, 0xa726,
+ 0xa728, 0xa728,
+ 0xa72a, 0xa72a,
+ 0xa72c, 0xa72c,
+ 0xa72e, 0xa72e,
+ 0xa732, 0xa732,
+ 0xa734, 0xa734,
+ 0xa736, 0xa736,
+ 0xa738, 0xa738,
+ 0xa73a, 0xa73a,
+ 0xa73c, 0xa73c,
+ 0xa73e, 0xa73e,
+ 0xa740, 0xa740,
+ 0xa742, 0xa742,
+ 0xa744, 0xa744,
+ 0xa746, 0xa746,
+ 0xa748, 0xa748,
+ 0xa74a, 0xa74a,
+ 0xa74c, 0xa74c,
+ 0xa74e, 0xa74e,
+ 0xa750, 0xa750,
+ 0xa752, 0xa752,
+ 0xa754, 0xa754,
+ 0xa756, 0xa756,
+ 0xa758, 0xa758,
+ 0xa75a, 0xa75a,
+ 0xa75c, 0xa75c,
+ 0xa75e, 0xa75e,
+ 0xa760, 0xa760,
+ 0xa762, 0xa762,
+ 0xa764, 0xa764,
+ 0xa766, 0xa766,
+ 0xa768, 0xa768,
+ 0xa76a, 0xa76a,
+ 0xa76c, 0xa76c,
+ 0xa76e, 0xa76e,
+ 0xa779, 0xa779,
+ 0xa77b, 0xa77b,
+ 0xa77d, 0xa77e,
+ 0xa780, 0xa780,
+ 0xa782, 0xa782,
+ 0xa784, 0xa784,
+ 0xa786, 0xa786,
+ 0xa78b, 0xa78b,
+ 0xa78d, 0xa78d,
+ 0xa790, 0xa790,
+ 0xa7a0, 0xa7a0,
+ 0xa7a2, 0xa7a2,
+ 0xa7a4, 0xa7a4,
+ 0xa7a6, 0xa7a6,
+ 0xa7a8, 0xa7a8,
+ 0xfb00, 0xfb06,
+ 0xfb13, 0xfb17,
+ 0xff21, 0xff3a,
+ 0x10400, 0x10427,
+}; /* CR_Changes_When_Casefolded */
+
+/* 'Changes_When_Casemapped': Derived Property */
+static const OnigCodePoint CR_Changes_When_Casemapped[] = {
+ 99,
+ 0x0041, 0x005a,
+ 0x0061, 0x007a,
+ 0x00b5, 0x00b5,
+ 0x00c0, 0x00d6,
+ 0x00d8, 0x00f6,
+ 0x00f8, 0x0137,
+ 0x0139, 0x018c,
+ 0x018e, 0x019a,
+ 0x019c, 0x01a9,
+ 0x01ac, 0x01b9,
+ 0x01bc, 0x01bd,
+ 0x01bf, 0x01bf,
+ 0x01c4, 0x0220,
+ 0x0222, 0x0233,
+ 0x023a, 0x0254,
+ 0x0256, 0x0257,
+ 0x0259, 0x0259,
+ 0x025b, 0x025b,
+ 0x0260, 0x0260,
+ 0x0263, 0x0263,
+ 0x0265, 0x0265,
+ 0x0268, 0x0269,
+ 0x026b, 0x026b,
+ 0x026f, 0x026f,
+ 0x0271, 0x0272,
+ 0x0275, 0x0275,
+ 0x027d, 0x027d,
+ 0x0280, 0x0280,
+ 0x0283, 0x0283,
+ 0x0288, 0x028c,
+ 0x0292, 0x0292,
+ 0x0345, 0x0345,
+ 0x0370, 0x0373,
+ 0x0376, 0x0377,
+ 0x037b, 0x037d,
+ 0x0386, 0x0386,
+ 0x0388, 0x038a,
+ 0x038c, 0x038c,
+ 0x038e, 0x03a1,
+ 0x03a3, 0x03d1,
+ 0x03d5, 0x03f2,
+ 0x03f4, 0x03f5,
+ 0x03f7, 0x03fb,
+ 0x03fd, 0x0481,
+ 0x048a, 0x0527,
+ 0x0531, 0x0556,
+ 0x0561, 0x0587,
+ 0x10a0, 0x10c5,
+ 0x1d79, 0x1d79,
+ 0x1d7d, 0x1d7d,
+ 0x1e00, 0x1e9b,
+ 0x1e9e, 0x1e9e,
+ 0x1ea0, 0x1f15,
+ 0x1f18, 0x1f1d,
+ 0x1f20, 0x1f45,
+ 0x1f48, 0x1f4d,
+ 0x1f50, 0x1f57,
+ 0x1f59, 0x1f59,
+ 0x1f5b, 0x1f5b,
+ 0x1f5d, 0x1f5d,
+ 0x1f5f, 0x1f7d,
+ 0x1f80, 0x1fb4,
+ 0x1fb6, 0x1fbc,
+ 0x1fbe, 0x1fbe,
+ 0x1fc2, 0x1fc4,
+ 0x1fc6, 0x1fcc,
+ 0x1fd0, 0x1fd3,
+ 0x1fd6, 0x1fdb,
+ 0x1fe0, 0x1fec,
+ 0x1ff2, 0x1ff4,
+ 0x1ff6, 0x1ffc,
+ 0x2126, 0x2126,
+ 0x212a, 0x212b,
+ 0x2132, 0x2132,
+ 0x214e, 0x214e,
+ 0x2160, 0x217f,
+ 0x2183, 0x2184,
+ 0x24b6, 0x24e9,
+ 0x2c00, 0x2c2e,
+ 0x2c30, 0x2c5e,
+ 0x2c60, 0x2c70,
+ 0x2c72, 0x2c73,
+ 0x2c75, 0x2c76,
+ 0x2c7e, 0x2ce3,
+ 0x2ceb, 0x2cee,
+ 0x2d00, 0x2d25,
+ 0xa640, 0xa66d,
+ 0xa680, 0xa697,
+ 0xa722, 0xa72f,
+ 0xa732, 0xa76f,
+ 0xa779, 0xa787,
+ 0xa78b, 0xa78d,
+ 0xa790, 0xa791,
+ 0xa7a0, 0xa7a9,
+ 0xfb00, 0xfb06,
+ 0xfb13, 0xfb17,
+ 0xff21, 0xff3a,
+ 0xff41, 0xff5a,
+ 0x10400, 0x1044f,
+}; /* CR_Changes_When_Casemapped */
+
+/* 'ID_Start': Derived Property */
+static const OnigCodePoint CR_ID_Start[] = {
+ 437,
+ 0x0041, 0x005a,
+ 0x0061, 0x007a,
+ 0x00aa, 0x00aa,
+ 0x00b5, 0x00b5,
+ 0x00ba, 0x00ba,
+ 0x00c0, 0x00d6,
+ 0x00d8, 0x00f6,
+ 0x00f8, 0x02c1,
+ 0x02c6, 0x02d1,
+ 0x02e0, 0x02e4,
+ 0x02ec, 0x02ec,
+ 0x02ee, 0x02ee,
+ 0x0370, 0x0374,
+ 0x0376, 0x0377,
+ 0x037a, 0x037d,
+ 0x0386, 0x0386,
+ 0x0388, 0x038a,
+ 0x038c, 0x038c,
+ 0x038e, 0x03a1,
+ 0x03a3, 0x03f5,
+ 0x03f7, 0x0481,
+ 0x048a, 0x0527,
+ 0x0531, 0x0556,
+ 0x0559, 0x0559,
+ 0x0561, 0x0587,
+ 0x05d0, 0x05ea,
+ 0x05f0, 0x05f2,
+ 0x0620, 0x064a,
+ 0x066e, 0x066f,
+ 0x0671, 0x06d3,
+ 0x06d5, 0x06d5,
+ 0x06e5, 0x06e6,
+ 0x06ee, 0x06ef,
+ 0x06fa, 0x06fc,
+ 0x06ff, 0x06ff,
+ 0x0710, 0x0710,
+ 0x0712, 0x072f,
+ 0x074d, 0x07a5,
+ 0x07b1, 0x07b1,
+ 0x07ca, 0x07ea,
+ 0x07f4, 0x07f5,
+ 0x07fa, 0x07fa,
+ 0x0800, 0x0815,
+ 0x081a, 0x081a,
+ 0x0824, 0x0824,
+ 0x0828, 0x0828,
+ 0x0840, 0x0858,
+ 0x0904, 0x0939,
+ 0x093d, 0x093d,
+ 0x0950, 0x0950,
+ 0x0958, 0x0961,
+ 0x0971, 0x0977,
+ 0x0979, 0x097f,
+ 0x0985, 0x098c,
+ 0x098f, 0x0990,
+ 0x0993, 0x09a8,
+ 0x09aa, 0x09b0,
+ 0x09b2, 0x09b2,
+ 0x09b6, 0x09b9,
+ 0x09bd, 0x09bd,
+ 0x09ce, 0x09ce,
+ 0x09dc, 0x09dd,
+ 0x09df, 0x09e1,
+ 0x09f0, 0x09f1,
+ 0x0a05, 0x0a0a,
+ 0x0a0f, 0x0a10,
+ 0x0a13, 0x0a28,
+ 0x0a2a, 0x0a30,
+ 0x0a32, 0x0a33,
+ 0x0a35, 0x0a36,
+ 0x0a38, 0x0a39,
+ 0x0a59, 0x0a5c,
+ 0x0a5e, 0x0a5e,
+ 0x0a72, 0x0a74,
+ 0x0a85, 0x0a8d,
+ 0x0a8f, 0x0a91,
+ 0x0a93, 0x0aa8,
+ 0x0aaa, 0x0ab0,
+ 0x0ab2, 0x0ab3,
+ 0x0ab5, 0x0ab9,
+ 0x0abd, 0x0abd,
+ 0x0ad0, 0x0ad0,
+ 0x0ae0, 0x0ae1,
+ 0x0b05, 0x0b0c,
+ 0x0b0f, 0x0b10,
+ 0x0b13, 0x0b28,
+ 0x0b2a, 0x0b30,
+ 0x0b32, 0x0b33,
+ 0x0b35, 0x0b39,
+ 0x0b3d, 0x0b3d,
+ 0x0b5c, 0x0b5d,
+ 0x0b5f, 0x0b61,
+ 0x0b71, 0x0b71,
+ 0x0b83, 0x0b83,
+ 0x0b85, 0x0b8a,
+ 0x0b8e, 0x0b90,
+ 0x0b92, 0x0b95,
+ 0x0b99, 0x0b9a,
+ 0x0b9c, 0x0b9c,
+ 0x0b9e, 0x0b9f,
+ 0x0ba3, 0x0ba4,
+ 0x0ba8, 0x0baa,
+ 0x0bae, 0x0bb9,
+ 0x0bd0, 0x0bd0,
+ 0x0c05, 0x0c0c,
+ 0x0c0e, 0x0c10,
+ 0x0c12, 0x0c28,
+ 0x0c2a, 0x0c33,
+ 0x0c35, 0x0c39,
+ 0x0c3d, 0x0c3d,
+ 0x0c58, 0x0c59,
+ 0x0c60, 0x0c61,
+ 0x0c85, 0x0c8c,
+ 0x0c8e, 0x0c90,
+ 0x0c92, 0x0ca8,
+ 0x0caa, 0x0cb3,
+ 0x0cb5, 0x0cb9,
+ 0x0cbd, 0x0cbd,
+ 0x0cde, 0x0cde,
+ 0x0ce0, 0x0ce1,
+ 0x0cf1, 0x0cf2,
+ 0x0d05, 0x0d0c,
+ 0x0d0e, 0x0d10,
+ 0x0d12, 0x0d3a,
+ 0x0d3d, 0x0d3d,
+ 0x0d4e, 0x0d4e,
+ 0x0d60, 0x0d61,
+ 0x0d7a, 0x0d7f,
+ 0x0d85, 0x0d96,
+ 0x0d9a, 0x0db1,
+ 0x0db3, 0x0dbb,
+ 0x0dbd, 0x0dbd,
+ 0x0dc0, 0x0dc6,
+ 0x0e01, 0x0e30,
+ 0x0e32, 0x0e33,
+ 0x0e40, 0x0e46,
+ 0x0e81, 0x0e82,
+ 0x0e84, 0x0e84,
+ 0x0e87, 0x0e88,
+ 0x0e8a, 0x0e8a,
+ 0x0e8d, 0x0e8d,
+ 0x0e94, 0x0e97,
+ 0x0e99, 0x0e9f,
+ 0x0ea1, 0x0ea3,
+ 0x0ea5, 0x0ea5,
+ 0x0ea7, 0x0ea7,
+ 0x0eaa, 0x0eab,
+ 0x0ead, 0x0eb0,
+ 0x0eb2, 0x0eb3,
+ 0x0ebd, 0x0ebd,
+ 0x0ec0, 0x0ec4,
+ 0x0ec6, 0x0ec6,
+ 0x0edc, 0x0edd,
+ 0x0f00, 0x0f00,
+ 0x0f40, 0x0f47,
+ 0x0f49, 0x0f6c,
+ 0x0f88, 0x0f8c,
+ 0x1000, 0x102a,
+ 0x103f, 0x103f,
+ 0x1050, 0x1055,
+ 0x105a, 0x105d,
+ 0x1061, 0x1061,
+ 0x1065, 0x1066,
+ 0x106e, 0x1070,
+ 0x1075, 0x1081,
+ 0x108e, 0x108e,
+ 0x10a0, 0x10c5,
+ 0x10d0, 0x10fa,
+ 0x10fc, 0x10fc,
+ 0x1100, 0x1248,
+ 0x124a, 0x124d,
+ 0x1250, 0x1256,
+ 0x1258, 0x1258,
+ 0x125a, 0x125d,
+ 0x1260, 0x1288,
+ 0x128a, 0x128d,
+ 0x1290, 0x12b0,
+ 0x12b2, 0x12b5,
+ 0x12b8, 0x12be,
+ 0x12c0, 0x12c0,
+ 0x12c2, 0x12c5,
+ 0x12c8, 0x12d6,
+ 0x12d8, 0x1310,
+ 0x1312, 0x1315,
+ 0x1318, 0x135a,
+ 0x1380, 0x138f,
+ 0x13a0, 0x13f4,
+ 0x1401, 0x166c,
+ 0x166f, 0x167f,
+ 0x1681, 0x169a,
+ 0x16a0, 0x16ea,
+ 0x16ee, 0x16f0,
+ 0x1700, 0x170c,
+ 0x170e, 0x1711,
+ 0x1720, 0x1731,
+ 0x1740, 0x1751,
+ 0x1760, 0x176c,
+ 0x176e, 0x1770,
+ 0x1780, 0x17b3,
+ 0x17d7, 0x17d7,
+ 0x17dc, 0x17dc,
+ 0x1820, 0x1877,
+ 0x1880, 0x18a8,
+ 0x18aa, 0x18aa,
+ 0x18b0, 0x18f5,
+ 0x1900, 0x191c,
+ 0x1950, 0x196d,
+ 0x1970, 0x1974,
+ 0x1980, 0x19ab,
+ 0x19c1, 0x19c7,
+ 0x1a00, 0x1a16,
+ 0x1a20, 0x1a54,
+ 0x1aa7, 0x1aa7,
+ 0x1b05, 0x1b33,
+ 0x1b45, 0x1b4b,
+ 0x1b83, 0x1ba0,
+ 0x1bae, 0x1baf,
+ 0x1bc0, 0x1be5,
+ 0x1c00, 0x1c23,
+ 0x1c4d, 0x1c4f,
+ 0x1c5a, 0x1c7d,
+ 0x1ce9, 0x1cec,
+ 0x1cee, 0x1cf1,
+ 0x1d00, 0x1dbf,
+ 0x1e00, 0x1f15,
+ 0x1f18, 0x1f1d,
+ 0x1f20, 0x1f45,
+ 0x1f48, 0x1f4d,
+ 0x1f50, 0x1f57,
+ 0x1f59, 0x1f59,
+ 0x1f5b, 0x1f5b,
+ 0x1f5d, 0x1f5d,
+ 0x1f5f, 0x1f7d,
+ 0x1f80, 0x1fb4,
+ 0x1fb6, 0x1fbc,
+ 0x1fbe, 0x1fbe,
+ 0x1fc2, 0x1fc4,
+ 0x1fc6, 0x1fcc,
+ 0x1fd0, 0x1fd3,
+ 0x1fd6, 0x1fdb,
+ 0x1fe0, 0x1fec,
+ 0x1ff2, 0x1ff4,
+ 0x1ff6, 0x1ffc,
+ 0x2071, 0x2071,
+ 0x207f, 0x207f,
+ 0x2090, 0x209c,
+ 0x2102, 0x2102,
+ 0x2107, 0x2107,
+ 0x210a, 0x2113,
+ 0x2115, 0x2115,
+ 0x2118, 0x211d,
+ 0x2124, 0x2124,
+ 0x2126, 0x2126,
+ 0x2128, 0x2128,
+ 0x212a, 0x2139,
+ 0x213c, 0x213f,
+ 0x2145, 0x2149,
+ 0x214e, 0x214e,
+ 0x2160, 0x2188,
+ 0x2c00, 0x2c2e,
+ 0x2c30, 0x2c5e,
+ 0x2c60, 0x2ce4,
+ 0x2ceb, 0x2cee,
+ 0x2d00, 0x2d25,
+ 0x2d30, 0x2d65,
+ 0x2d6f, 0x2d6f,
+ 0x2d80, 0x2d96,
+ 0x2da0, 0x2da6,
+ 0x2da8, 0x2dae,
+ 0x2db0, 0x2db6,
+ 0x2db8, 0x2dbe,
+ 0x2dc0, 0x2dc6,
+ 0x2dc8, 0x2dce,
+ 0x2dd0, 0x2dd6,
+ 0x2dd8, 0x2dde,
+ 0x3005, 0x3007,
+ 0x3021, 0x3029,
+ 0x3031, 0x3035,
+ 0x3038, 0x303c,
+ 0x3041, 0x3096,
+ 0x309b, 0x309f,
+ 0x30a1, 0x30fa,
+ 0x30fc, 0x30ff,
+ 0x3105, 0x312d,
+ 0x3131, 0x318e,
+ 0x31a0, 0x31ba,
+ 0x31f0, 0x31ff,
+ 0x3400, 0x4db5,
+ 0x4e00, 0x9fcb,
+ 0xa000, 0xa48c,
+ 0xa4d0, 0xa4fd,
+ 0xa500, 0xa60c,
+ 0xa610, 0xa61f,
+ 0xa62a, 0xa62b,
+ 0xa640, 0xa66e,
+ 0xa67f, 0xa697,
+ 0xa6a0, 0xa6ef,
+ 0xa717, 0xa71f,
+ 0xa722, 0xa788,
+ 0xa78b, 0xa78e,
+ 0xa790, 0xa791,
+ 0xa7a0, 0xa7a9,
+ 0xa7fa, 0xa801,
+ 0xa803, 0xa805,
+ 0xa807, 0xa80a,
+ 0xa80c, 0xa822,
+ 0xa840, 0xa873,
+ 0xa882, 0xa8b3,
+ 0xa8f2, 0xa8f7,
+ 0xa8fb, 0xa8fb,
+ 0xa90a, 0xa925,
+ 0xa930, 0xa946,
+ 0xa960, 0xa97c,
+ 0xa984, 0xa9b2,
+ 0xa9cf, 0xa9cf,
+ 0xaa00, 0xaa28,
+ 0xaa40, 0xaa42,
+ 0xaa44, 0xaa4b,
+ 0xaa60, 0xaa76,
+ 0xaa7a, 0xaa7a,
+ 0xaa80, 0xaaaf,
+ 0xaab1, 0xaab1,
+ 0xaab5, 0xaab6,
+ 0xaab9, 0xaabd,
+ 0xaac0, 0xaac0,
+ 0xaac2, 0xaac2,
+ 0xaadb, 0xaadd,
+ 0xab01, 0xab06,
+ 0xab09, 0xab0e,
+ 0xab11, 0xab16,
+ 0xab20, 0xab26,
+ 0xab28, 0xab2e,
+ 0xabc0, 0xabe2,
+ 0xac00, 0xd7a3,
+ 0xd7b0, 0xd7c6,
+ 0xd7cb, 0xd7fb,
+ 0xf900, 0xfa2d,
+ 0xfa30, 0xfa6d,
+ 0xfa70, 0xfad9,
+ 0xfb00, 0xfb06,
+ 0xfb13, 0xfb17,
+ 0xfb1d, 0xfb1d,
+ 0xfb1f, 0xfb28,
+ 0xfb2a, 0xfb36,
+ 0xfb38, 0xfb3c,
+ 0xfb3e, 0xfb3e,
+ 0xfb40, 0xfb41,
+ 0xfb43, 0xfb44,
+ 0xfb46, 0xfbb1,
+ 0xfbd3, 0xfd3d,
+ 0xfd50, 0xfd8f,
+ 0xfd92, 0xfdc7,
+ 0xfdf0, 0xfdfb,
+ 0xfe70, 0xfe74,
+ 0xfe76, 0xfefc,
+ 0xff21, 0xff3a,
+ 0xff41, 0xff5a,
+ 0xff66, 0xffbe,
+ 0xffc2, 0xffc7,
+ 0xffca, 0xffcf,
+ 0xffd2, 0xffd7,
+ 0xffda, 0xffdc,
+ 0x10000, 0x1000b,
+ 0x1000d, 0x10026,
+ 0x10028, 0x1003a,
+ 0x1003c, 0x1003d,
+ 0x1003f, 0x1004d,
+ 0x10050, 0x1005d,
+ 0x10080, 0x100fa,
+ 0x10140, 0x10174,
+ 0x10280, 0x1029c,
+ 0x102a0, 0x102d0,
+ 0x10300, 0x1031e,
+ 0x10330, 0x1034a,
+ 0x10380, 0x1039d,
+ 0x103a0, 0x103c3,
+ 0x103c8, 0x103cf,
+ 0x103d1, 0x103d5,
+ 0x10400, 0x1049d,
+ 0x10800, 0x10805,
+ 0x10808, 0x10808,
+ 0x1080a, 0x10835,
+ 0x10837, 0x10838,
+ 0x1083c, 0x1083c,
+ 0x1083f, 0x10855,
+ 0x10900, 0x10915,
+ 0x10920, 0x10939,
+ 0x10a00, 0x10a00,
+ 0x10a10, 0x10a13,
+ 0x10a15, 0x10a17,
+ 0x10a19, 0x10a33,
+ 0x10a60, 0x10a7c,
+ 0x10b00, 0x10b35,
+ 0x10b40, 0x10b55,
+ 0x10b60, 0x10b72,
+ 0x10c00, 0x10c48,
+ 0x11003, 0x11037,
+ 0x11083, 0x110af,
+ 0x12000, 0x1236e,
+ 0x12400, 0x12462,
+ 0x13000, 0x1342e,
+ 0x16800, 0x16a38,
+ 0x1b000, 0x1b001,
+ 0x1d400, 0x1d454,
+ 0x1d456, 0x1d49c,
+ 0x1d49e, 0x1d49f,
+ 0x1d4a2, 0x1d4a2,
+ 0x1d4a5, 0x1d4a6,
+ 0x1d4a9, 0x1d4ac,
+ 0x1d4ae, 0x1d4b9,
+ 0x1d4bb, 0x1d4bb,
+ 0x1d4bd, 0x1d4c3,
+ 0x1d4c5, 0x1d505,
+ 0x1d507, 0x1d50a,
+ 0x1d50d, 0x1d514,
+ 0x1d516, 0x1d51c,
+ 0x1d51e, 0x1d539,
+ 0x1d53b, 0x1d53e,
+ 0x1d540, 0x1d544,
+ 0x1d546, 0x1d546,
+ 0x1d54a, 0x1d550,
+ 0x1d552, 0x1d6a5,
+ 0x1d6a8, 0x1d6c0,
+ 0x1d6c2, 0x1d6da,
+ 0x1d6dc, 0x1d6fa,
+ 0x1d6fc, 0x1d714,
+ 0x1d716, 0x1d734,
+ 0x1d736, 0x1d74e,
+ 0x1d750, 0x1d76e,
+ 0x1d770, 0x1d788,
+ 0x1d78a, 0x1d7a8,
+ 0x1d7aa, 0x1d7c2,
+ 0x1d7c4, 0x1d7cb,
+ 0x20000, 0x2a6d6,
+ 0x2a700, 0x2b734,
+ 0x2b740, 0x2b81d,
+ 0x2f800, 0x2fa1d,
+}; /* CR_ID_Start */
+
+/* 'ID_Continue': Derived Property */
+static const OnigCodePoint CR_ID_Continue[] = {
+ 514,
+ 0x0030, 0x0039,
+ 0x0041, 0x005a,
+ 0x005f, 0x005f,
+ 0x0061, 0x007a,
+ 0x00aa, 0x00aa,
+ 0x00b5, 0x00b5,
+ 0x00b7, 0x00b7,
+ 0x00ba, 0x00ba,
+ 0x00c0, 0x00d6,
+ 0x00d8, 0x00f6,
+ 0x00f8, 0x02c1,
+ 0x02c6, 0x02d1,
+ 0x02e0, 0x02e4,
+ 0x02ec, 0x02ec,
+ 0x02ee, 0x02ee,
+ 0x0300, 0x0374,
+ 0x0376, 0x0377,
+ 0x037a, 0x037d,
+ 0x0386, 0x038a,
+ 0x038c, 0x038c,
+ 0x038e, 0x03a1,
+ 0x03a3, 0x03f5,
+ 0x03f7, 0x0481,
+ 0x0483, 0x0487,
+ 0x048a, 0x0527,
+ 0x0531, 0x0556,
+ 0x0559, 0x0559,
+ 0x0561, 0x0587,
+ 0x0591, 0x05bd,
+ 0x05bf, 0x05bf,
+ 0x05c1, 0x05c2,
+ 0x05c4, 0x05c5,
+ 0x05c7, 0x05c7,
+ 0x05d0, 0x05ea,
+ 0x05f0, 0x05f2,
+ 0x0610, 0x061a,
+ 0x0620, 0x0669,
+ 0x066e, 0x06d3,
+ 0x06d5, 0x06dc,
+ 0x06df, 0x06e8,
+ 0x06ea, 0x06fc,
+ 0x06ff, 0x06ff,
+ 0x0710, 0x074a,
+ 0x074d, 0x07b1,
+ 0x07c0, 0x07f5,
+ 0x07fa, 0x07fa,
+ 0x0800, 0x082d,
+ 0x0840, 0x085b,
+ 0x0900, 0x0963,
+ 0x0966, 0x096f,
+ 0x0971, 0x0977,
+ 0x0979, 0x097f,
+ 0x0981, 0x0983,
+ 0x0985, 0x098c,
+ 0x098f, 0x0990,
+ 0x0993, 0x09a8,
+ 0x09aa, 0x09b0,
+ 0x09b2, 0x09b2,
+ 0x09b6, 0x09b9,
+ 0x09bc, 0x09c4,
+ 0x09c7, 0x09c8,
+ 0x09cb, 0x09ce,
+ 0x09d7, 0x09d7,
+ 0x09dc, 0x09dd,
+ 0x09df, 0x09e3,
+ 0x09e6, 0x09f1,
+ 0x0a01, 0x0a03,
+ 0x0a05, 0x0a0a,
+ 0x0a0f, 0x0a10,
+ 0x0a13, 0x0a28,
+ 0x0a2a, 0x0a30,
+ 0x0a32, 0x0a33,
+ 0x0a35, 0x0a36,
+ 0x0a38, 0x0a39,
+ 0x0a3c, 0x0a3c,
+ 0x0a3e, 0x0a42,
+ 0x0a47, 0x0a48,
+ 0x0a4b, 0x0a4d,
+ 0x0a51, 0x0a51,
+ 0x0a59, 0x0a5c,
+ 0x0a5e, 0x0a5e,
+ 0x0a66, 0x0a75,
+ 0x0a81, 0x0a83,
+ 0x0a85, 0x0a8d,
+ 0x0a8f, 0x0a91,
+ 0x0a93, 0x0aa8,
+ 0x0aaa, 0x0ab0,
+ 0x0ab2, 0x0ab3,
+ 0x0ab5, 0x0ab9,
+ 0x0abc, 0x0ac5,
+ 0x0ac7, 0x0ac9,
+ 0x0acb, 0x0acd,
+ 0x0ad0, 0x0ad0,
+ 0x0ae0, 0x0ae3,
+ 0x0ae6, 0x0aef,
+ 0x0b01, 0x0b03,
+ 0x0b05, 0x0b0c,
+ 0x0b0f, 0x0b10,
+ 0x0b13, 0x0b28,
+ 0x0b2a, 0x0b30,
+ 0x0b32, 0x0b33,
+ 0x0b35, 0x0b39,
+ 0x0b3c, 0x0b44,
+ 0x0b47, 0x0b48,
+ 0x0b4b, 0x0b4d,
+ 0x0b56, 0x0b57,
+ 0x0b5c, 0x0b5d,
+ 0x0b5f, 0x0b63,
+ 0x0b66, 0x0b6f,
+ 0x0b71, 0x0b71,
+ 0x0b82, 0x0b83,
+ 0x0b85, 0x0b8a,
+ 0x0b8e, 0x0b90,
+ 0x0b92, 0x0b95,
+ 0x0b99, 0x0b9a,
+ 0x0b9c, 0x0b9c,
+ 0x0b9e, 0x0b9f,
+ 0x0ba3, 0x0ba4,
+ 0x0ba8, 0x0baa,
+ 0x0bae, 0x0bb9,
+ 0x0bbe, 0x0bc2,
+ 0x0bc6, 0x0bc8,
+ 0x0bca, 0x0bcd,
+ 0x0bd0, 0x0bd0,
+ 0x0bd7, 0x0bd7,
+ 0x0be6, 0x0bef,
+ 0x0c01, 0x0c03,
+ 0x0c05, 0x0c0c,
+ 0x0c0e, 0x0c10,
+ 0x0c12, 0x0c28,
+ 0x0c2a, 0x0c33,
+ 0x0c35, 0x0c39,
+ 0x0c3d, 0x0c44,
+ 0x0c46, 0x0c48,
+ 0x0c4a, 0x0c4d,
+ 0x0c55, 0x0c56,
+ 0x0c58, 0x0c59,
+ 0x0c60, 0x0c63,
+ 0x0c66, 0x0c6f,
+ 0x0c82, 0x0c83,
+ 0x0c85, 0x0c8c,
+ 0x0c8e, 0x0c90,
+ 0x0c92, 0x0ca8,
+ 0x0caa, 0x0cb3,
+ 0x0cb5, 0x0cb9,
+ 0x0cbc, 0x0cc4,
+ 0x0cc6, 0x0cc8,
+ 0x0cca, 0x0ccd,
+ 0x0cd5, 0x0cd6,
+ 0x0cde, 0x0cde,
+ 0x0ce0, 0x0ce3,
+ 0x0ce6, 0x0cef,
+ 0x0cf1, 0x0cf2,
+ 0x0d02, 0x0d03,
+ 0x0d05, 0x0d0c,
+ 0x0d0e, 0x0d10,
+ 0x0d12, 0x0d3a,
+ 0x0d3d, 0x0d44,
+ 0x0d46, 0x0d48,
+ 0x0d4a, 0x0d4e,
+ 0x0d57, 0x0d57,
+ 0x0d60, 0x0d63,
+ 0x0d66, 0x0d6f,
+ 0x0d7a, 0x0d7f,
+ 0x0d82, 0x0d83,
+ 0x0d85, 0x0d96,
+ 0x0d9a, 0x0db1,
+ 0x0db3, 0x0dbb,
+ 0x0dbd, 0x0dbd,
+ 0x0dc0, 0x0dc6,
+ 0x0dca, 0x0dca,
+ 0x0dcf, 0x0dd4,
+ 0x0dd6, 0x0dd6,
+ 0x0dd8, 0x0ddf,
+ 0x0df2, 0x0df3,
+ 0x0e01, 0x0e3a,
+ 0x0e40, 0x0e4e,
+ 0x0e50, 0x0e59,
+ 0x0e81, 0x0e82,
+ 0x0e84, 0x0e84,
+ 0x0e87, 0x0e88,
+ 0x0e8a, 0x0e8a,
+ 0x0e8d, 0x0e8d,
+ 0x0e94, 0x0e97,
+ 0x0e99, 0x0e9f,
+ 0x0ea1, 0x0ea3,
+ 0x0ea5, 0x0ea5,
+ 0x0ea7, 0x0ea7,
+ 0x0eaa, 0x0eab,
+ 0x0ead, 0x0eb9,
+ 0x0ebb, 0x0ebd,
+ 0x0ec0, 0x0ec4,
+ 0x0ec6, 0x0ec6,
+ 0x0ec8, 0x0ecd,
+ 0x0ed0, 0x0ed9,
+ 0x0edc, 0x0edd,
+ 0x0f00, 0x0f00,
+ 0x0f18, 0x0f19,
+ 0x0f20, 0x0f29,
+ 0x0f35, 0x0f35,
+ 0x0f37, 0x0f37,
+ 0x0f39, 0x0f39,
+ 0x0f3e, 0x0f47,
+ 0x0f49, 0x0f6c,
+ 0x0f71, 0x0f84,
+ 0x0f86, 0x0f97,
+ 0x0f99, 0x0fbc,
+ 0x0fc6, 0x0fc6,
+ 0x1000, 0x1049,
+ 0x1050, 0x109d,
+ 0x10a0, 0x10c5,
+ 0x10d0, 0x10fa,
+ 0x10fc, 0x10fc,
+ 0x1100, 0x1248,
+ 0x124a, 0x124d,
+ 0x1250, 0x1256,
+ 0x1258, 0x1258,
+ 0x125a, 0x125d,
+ 0x1260, 0x1288,
+ 0x128a, 0x128d,
+ 0x1290, 0x12b0,
+ 0x12b2, 0x12b5,
+ 0x12b8, 0x12be,
+ 0x12c0, 0x12c0,
+ 0x12c2, 0x12c5,
+ 0x12c8, 0x12d6,
+ 0x12d8, 0x1310,
+ 0x1312, 0x1315,
+ 0x1318, 0x135a,
+ 0x135d, 0x135f,
+ 0x1369, 0x1371,
+ 0x1380, 0x138f,
+ 0x13a0, 0x13f4,
+ 0x1401, 0x166c,
+ 0x166f, 0x167f,
+ 0x1681, 0x169a,
+ 0x16a0, 0x16ea,
+ 0x16ee, 0x16f0,
+ 0x1700, 0x170c,
+ 0x170e, 0x1714,
+ 0x1720, 0x1734,
+ 0x1740, 0x1753,
+ 0x1760, 0x176c,
+ 0x176e, 0x1770,
+ 0x1772, 0x1773,
+ 0x1780, 0x17b3,
+ 0x17b6, 0x17d3,
+ 0x17d7, 0x17d7,
+ 0x17dc, 0x17dd,
+ 0x17e0, 0x17e9,
+ 0x180b, 0x180d,
+ 0x1810, 0x1819,
+ 0x1820, 0x1877,
+ 0x1880, 0x18aa,
+ 0x18b0, 0x18f5,
+ 0x1900, 0x191c,
+ 0x1920, 0x192b,
+ 0x1930, 0x193b,
+ 0x1946, 0x196d,
+ 0x1970, 0x1974,
+ 0x1980, 0x19ab,
+ 0x19b0, 0x19c9,
+ 0x19d0, 0x19da,
+ 0x1a00, 0x1a1b,
+ 0x1a20, 0x1a5e,
+ 0x1a60, 0x1a7c,
+ 0x1a7f, 0x1a89,
+ 0x1a90, 0x1a99,
+ 0x1aa7, 0x1aa7,
+ 0x1b00, 0x1b4b,
+ 0x1b50, 0x1b59,
+ 0x1b6b, 0x1b73,
+ 0x1b80, 0x1baa,
+ 0x1bae, 0x1bb9,
+ 0x1bc0, 0x1bf3,
+ 0x1c00, 0x1c37,
+ 0x1c40, 0x1c49,
+ 0x1c4d, 0x1c7d,
+ 0x1cd0, 0x1cd2,
+ 0x1cd4, 0x1cf2,
+ 0x1d00, 0x1de6,
+ 0x1dfc, 0x1f15,
+ 0x1f18, 0x1f1d,
+ 0x1f20, 0x1f45,
+ 0x1f48, 0x1f4d,
+ 0x1f50, 0x1f57,
+ 0x1f59, 0x1f59,
+ 0x1f5b, 0x1f5b,
+ 0x1f5d, 0x1f5d,
+ 0x1f5f, 0x1f7d,
+ 0x1f80, 0x1fb4,
+ 0x1fb6, 0x1fbc,
+ 0x1fbe, 0x1fbe,
+ 0x1fc2, 0x1fc4,
+ 0x1fc6, 0x1fcc,
+ 0x1fd0, 0x1fd3,
+ 0x1fd6, 0x1fdb,
+ 0x1fe0, 0x1fec,
+ 0x1ff2, 0x1ff4,
+ 0x1ff6, 0x1ffc,
+ 0x203f, 0x2040,
+ 0x2054, 0x2054,
+ 0x2071, 0x2071,
+ 0x207f, 0x207f,
+ 0x2090, 0x209c,
+ 0x20d0, 0x20dc,
+ 0x20e1, 0x20e1,
+ 0x20e5, 0x20f0,
+ 0x2102, 0x2102,
+ 0x2107, 0x2107,
+ 0x210a, 0x2113,
+ 0x2115, 0x2115,
+ 0x2118, 0x211d,
+ 0x2124, 0x2124,
+ 0x2126, 0x2126,
+ 0x2128, 0x2128,
+ 0x212a, 0x2139,
+ 0x213c, 0x213f,
+ 0x2145, 0x2149,
+ 0x214e, 0x214e,
+ 0x2160, 0x2188,
+ 0x2c00, 0x2c2e,
+ 0x2c30, 0x2c5e,
+ 0x2c60, 0x2ce4,
+ 0x2ceb, 0x2cf1,
+ 0x2d00, 0x2d25,
+ 0x2d30, 0x2d65,
+ 0x2d6f, 0x2d6f,
+ 0x2d7f, 0x2d96,
+ 0x2da0, 0x2da6,
+ 0x2da8, 0x2dae,
+ 0x2db0, 0x2db6,
+ 0x2db8, 0x2dbe,
+ 0x2dc0, 0x2dc6,
+ 0x2dc8, 0x2dce,
+ 0x2dd0, 0x2dd6,
+ 0x2dd8, 0x2dde,
+ 0x2de0, 0x2dff,
+ 0x3005, 0x3007,
+ 0x3021, 0x302f,
+ 0x3031, 0x3035,
+ 0x3038, 0x303c,
+ 0x3041, 0x3096,
+ 0x3099, 0x309f,
+ 0x30a1, 0x30fa,
+ 0x30fc, 0x30ff,
+ 0x3105, 0x312d,
+ 0x3131, 0x318e,
+ 0x31a0, 0x31ba,
+ 0x31f0, 0x31ff,
+ 0x3400, 0x4db5,
+ 0x4e00, 0x9fcb,
+ 0xa000, 0xa48c,
+ 0xa4d0, 0xa4fd,
+ 0xa500, 0xa60c,
+ 0xa610, 0xa62b,
+ 0xa640, 0xa66f,
+ 0xa67c, 0xa67d,
+ 0xa67f, 0xa697,
+ 0xa6a0, 0xa6f1,
+ 0xa717, 0xa71f,
+ 0xa722, 0xa788,
+ 0xa78b, 0xa78e,
+ 0xa790, 0xa791,
+ 0xa7a0, 0xa7a9,
+ 0xa7fa, 0xa827,
+ 0xa840, 0xa873,
+ 0xa880, 0xa8c4,
+ 0xa8d0, 0xa8d9,
+ 0xa8e0, 0xa8f7,
+ 0xa8fb, 0xa8fb,
+ 0xa900, 0xa92d,
+ 0xa930, 0xa953,
+ 0xa960, 0xa97c,
+ 0xa980, 0xa9c0,
+ 0xa9cf, 0xa9d9,
+ 0xaa00, 0xaa36,
+ 0xaa40, 0xaa4d,
+ 0xaa50, 0xaa59,
+ 0xaa60, 0xaa76,
+ 0xaa7a, 0xaa7b,
+ 0xaa80, 0xaac2,
+ 0xaadb, 0xaadd,
+ 0xab01, 0xab06,
+ 0xab09, 0xab0e,
+ 0xab11, 0xab16,
+ 0xab20, 0xab26,
+ 0xab28, 0xab2e,
+ 0xabc0, 0xabea,
+ 0xabec, 0xabed,
+ 0xabf0, 0xabf9,
+ 0xac00, 0xd7a3,
+ 0xd7b0, 0xd7c6,
+ 0xd7cb, 0xd7fb,
+ 0xf900, 0xfa2d,
+ 0xfa30, 0xfa6d,
+ 0xfa70, 0xfad9,
+ 0xfb00, 0xfb06,
+ 0xfb13, 0xfb17,
+ 0xfb1d, 0xfb28,
+ 0xfb2a, 0xfb36,
+ 0xfb38, 0xfb3c,
+ 0xfb3e, 0xfb3e,
+ 0xfb40, 0xfb41,
+ 0xfb43, 0xfb44,
+ 0xfb46, 0xfbb1,
+ 0xfbd3, 0xfd3d,
+ 0xfd50, 0xfd8f,
+ 0xfd92, 0xfdc7,
+ 0xfdf0, 0xfdfb,
+ 0xfe00, 0xfe0f,
+ 0xfe20, 0xfe26,
+ 0xfe33, 0xfe34,
+ 0xfe4d, 0xfe4f,
+ 0xfe70, 0xfe74,
+ 0xfe76, 0xfefc,
+ 0xff10, 0xff19,
+ 0xff21, 0xff3a,
+ 0xff3f, 0xff3f,
+ 0xff41, 0xff5a,
+ 0xff66, 0xffbe,
+ 0xffc2, 0xffc7,
+ 0xffca, 0xffcf,
+ 0xffd2, 0xffd7,
+ 0xffda, 0xffdc,
+ 0x10000, 0x1000b,
+ 0x1000d, 0x10026,
+ 0x10028, 0x1003a,
+ 0x1003c, 0x1003d,
+ 0x1003f, 0x1004d,
+ 0x10050, 0x1005d,
+ 0x10080, 0x100fa,
+ 0x10140, 0x10174,
+ 0x101fd, 0x101fd,
+ 0x10280, 0x1029c,
+ 0x102a0, 0x102d0,
+ 0x10300, 0x1031e,
+ 0x10330, 0x1034a,
+ 0x10380, 0x1039d,
+ 0x103a0, 0x103c3,
+ 0x103c8, 0x103cf,
+ 0x103d1, 0x103d5,
+ 0x10400, 0x1049d,
+ 0x104a0, 0x104a9,
+ 0x10800, 0x10805,
+ 0x10808, 0x10808,
+ 0x1080a, 0x10835,
+ 0x10837, 0x10838,
+ 0x1083c, 0x1083c,
+ 0x1083f, 0x10855,
+ 0x10900, 0x10915,
+ 0x10920, 0x10939,
+ 0x10a00, 0x10a03,
+ 0x10a05, 0x10a06,
+ 0x10a0c, 0x10a13,
+ 0x10a15, 0x10a17,
+ 0x10a19, 0x10a33,
+ 0x10a38, 0x10a3a,
+ 0x10a3f, 0x10a3f,
+ 0x10a60, 0x10a7c,
+ 0x10b00, 0x10b35,
+ 0x10b40, 0x10b55,
+ 0x10b60, 0x10b72,
+ 0x10c00, 0x10c48,
+ 0x11000, 0x11046,
+ 0x11066, 0x1106f,
+ 0x11080, 0x110ba,
+ 0x12000, 0x1236e,
+ 0x12400, 0x12462,
+ 0x13000, 0x1342e,
+ 0x16800, 0x16a38,
+ 0x1b000, 0x1b001,
+ 0x1d165, 0x1d169,
+ 0x1d16d, 0x1d172,
+ 0x1d17b, 0x1d182,
+ 0x1d185, 0x1d18b,
+ 0x1d1aa, 0x1d1ad,
+ 0x1d242, 0x1d244,
+ 0x1d400, 0x1d454,
+ 0x1d456, 0x1d49c,
+ 0x1d49e, 0x1d49f,
+ 0x1d4a2, 0x1d4a2,
+ 0x1d4a5, 0x1d4a6,
+ 0x1d4a9, 0x1d4ac,
+ 0x1d4ae, 0x1d4b9,
+ 0x1d4bb, 0x1d4bb,
+ 0x1d4bd, 0x1d4c3,
+ 0x1d4c5, 0x1d505,
+ 0x1d507, 0x1d50a,
+ 0x1d50d, 0x1d514,
+ 0x1d516, 0x1d51c,
+ 0x1d51e, 0x1d539,
+ 0x1d53b, 0x1d53e,
+ 0x1d540, 0x1d544,
+ 0x1d546, 0x1d546,
+ 0x1d54a, 0x1d550,
+ 0x1d552, 0x1d6a5,
+ 0x1d6a8, 0x1d6c0,
+ 0x1d6c2, 0x1d6da,
+ 0x1d6dc, 0x1d6fa,
+ 0x1d6fc, 0x1d714,
+ 0x1d716, 0x1d734,
+ 0x1d736, 0x1d74e,
+ 0x1d750, 0x1d76e,
+ 0x1d770, 0x1d788,
+ 0x1d78a, 0x1d7a8,
+ 0x1d7aa, 0x1d7c2,
+ 0x1d7c4, 0x1d7cb,
+ 0x1d7ce, 0x1d7ff,
+ 0x20000, 0x2a6d6,
+ 0x2a700, 0x2b734,
+ 0x2b740, 0x2b81d,
+ 0x2f800, 0x2fa1d,
+ 0xe0100, 0xe01ef,
+}; /* CR_ID_Continue */
+
+/* 'XID_Start': Derived Property */
+static const OnigCodePoint CR_XID_Start[] = {
+ 444,
+ 0x0041, 0x005a,
+ 0x0061, 0x007a,
+ 0x00aa, 0x00aa,
+ 0x00b5, 0x00b5,
+ 0x00ba, 0x00ba,
+ 0x00c0, 0x00d6,
+ 0x00d8, 0x00f6,
+ 0x00f8, 0x02c1,
+ 0x02c6, 0x02d1,
+ 0x02e0, 0x02e4,
+ 0x02ec, 0x02ec,
+ 0x02ee, 0x02ee,
+ 0x0370, 0x0374,
+ 0x0376, 0x0377,
+ 0x037b, 0x037d,
+ 0x0386, 0x0386,
+ 0x0388, 0x038a,
+ 0x038c, 0x038c,
+ 0x038e, 0x03a1,
+ 0x03a3, 0x03f5,
+ 0x03f7, 0x0481,
+ 0x048a, 0x0527,
+ 0x0531, 0x0556,
+ 0x0559, 0x0559,
+ 0x0561, 0x0587,
+ 0x05d0, 0x05ea,
+ 0x05f0, 0x05f2,
+ 0x0620, 0x064a,
+ 0x066e, 0x066f,
+ 0x0671, 0x06d3,
+ 0x06d5, 0x06d5,
+ 0x06e5, 0x06e6,
+ 0x06ee, 0x06ef,
+ 0x06fa, 0x06fc,
+ 0x06ff, 0x06ff,
+ 0x0710, 0x0710,
+ 0x0712, 0x072f,
+ 0x074d, 0x07a5,
+ 0x07b1, 0x07b1,
+ 0x07ca, 0x07ea,
+ 0x07f4, 0x07f5,
+ 0x07fa, 0x07fa,
+ 0x0800, 0x0815,
+ 0x081a, 0x081a,
+ 0x0824, 0x0824,
+ 0x0828, 0x0828,
+ 0x0840, 0x0858,
+ 0x0904, 0x0939,
+ 0x093d, 0x093d,
+ 0x0950, 0x0950,
+ 0x0958, 0x0961,
+ 0x0971, 0x0977,
+ 0x0979, 0x097f,
+ 0x0985, 0x098c,
+ 0x098f, 0x0990,
+ 0x0993, 0x09a8,
+ 0x09aa, 0x09b0,
+ 0x09b2, 0x09b2,
+ 0x09b6, 0x09b9,
+ 0x09bd, 0x09bd,
+ 0x09ce, 0x09ce,
+ 0x09dc, 0x09dd,
+ 0x09df, 0x09e1,
+ 0x09f0, 0x09f1,
+ 0x0a05, 0x0a0a,
+ 0x0a0f, 0x0a10,
+ 0x0a13, 0x0a28,
+ 0x0a2a, 0x0a30,
+ 0x0a32, 0x0a33,
+ 0x0a35, 0x0a36,
+ 0x0a38, 0x0a39,
+ 0x0a59, 0x0a5c,
+ 0x0a5e, 0x0a5e,
+ 0x0a72, 0x0a74,
+ 0x0a85, 0x0a8d,
+ 0x0a8f, 0x0a91,
+ 0x0a93, 0x0aa8,
+ 0x0aaa, 0x0ab0,
+ 0x0ab2, 0x0ab3,
+ 0x0ab5, 0x0ab9,
+ 0x0abd, 0x0abd,
+ 0x0ad0, 0x0ad0,
+ 0x0ae0, 0x0ae1,
+ 0x0b05, 0x0b0c,
+ 0x0b0f, 0x0b10,
+ 0x0b13, 0x0b28,
+ 0x0b2a, 0x0b30,
+ 0x0b32, 0x0b33,
+ 0x0b35, 0x0b39,
+ 0x0b3d, 0x0b3d,
+ 0x0b5c, 0x0b5d,
+ 0x0b5f, 0x0b61,
+ 0x0b71, 0x0b71,
+ 0x0b83, 0x0b83,
+ 0x0b85, 0x0b8a,
+ 0x0b8e, 0x0b90,
+ 0x0b92, 0x0b95,
+ 0x0b99, 0x0b9a,
+ 0x0b9c, 0x0b9c,
+ 0x0b9e, 0x0b9f,
+ 0x0ba3, 0x0ba4,
+ 0x0ba8, 0x0baa,
+ 0x0bae, 0x0bb9,
+ 0x0bd0, 0x0bd0,
+ 0x0c05, 0x0c0c,
+ 0x0c0e, 0x0c10,
+ 0x0c12, 0x0c28,
+ 0x0c2a, 0x0c33,
+ 0x0c35, 0x0c39,
+ 0x0c3d, 0x0c3d,
+ 0x0c58, 0x0c59,
+ 0x0c60, 0x0c61,
+ 0x0c85, 0x0c8c,
+ 0x0c8e, 0x0c90,
+ 0x0c92, 0x0ca8,
+ 0x0caa, 0x0cb3,
+ 0x0cb5, 0x0cb9,
+ 0x0cbd, 0x0cbd,
+ 0x0cde, 0x0cde,
+ 0x0ce0, 0x0ce1,
+ 0x0cf1, 0x0cf2,
+ 0x0d05, 0x0d0c,
+ 0x0d0e, 0x0d10,
+ 0x0d12, 0x0d3a,
+ 0x0d3d, 0x0d3d,
+ 0x0d4e, 0x0d4e,
+ 0x0d60, 0x0d61,
+ 0x0d7a, 0x0d7f,
+ 0x0d85, 0x0d96,
+ 0x0d9a, 0x0db1,
+ 0x0db3, 0x0dbb,
+ 0x0dbd, 0x0dbd,
+ 0x0dc0, 0x0dc6,
+ 0x0e01, 0x0e30,
+ 0x0e32, 0x0e32,
+ 0x0e40, 0x0e46,
+ 0x0e81, 0x0e82,
+ 0x0e84, 0x0e84,
+ 0x0e87, 0x0e88,
+ 0x0e8a, 0x0e8a,
+ 0x0e8d, 0x0e8d,
+ 0x0e94, 0x0e97,
+ 0x0e99, 0x0e9f,
+ 0x0ea1, 0x0ea3,
+ 0x0ea5, 0x0ea5,
+ 0x0ea7, 0x0ea7,
+ 0x0eaa, 0x0eab,
+ 0x0ead, 0x0eb0,
+ 0x0eb2, 0x0eb2,
+ 0x0ebd, 0x0ebd,
+ 0x0ec0, 0x0ec4,
+ 0x0ec6, 0x0ec6,
+ 0x0edc, 0x0edd,
+ 0x0f00, 0x0f00,
+ 0x0f40, 0x0f47,
+ 0x0f49, 0x0f6c,
+ 0x0f88, 0x0f8c,
+ 0x1000, 0x102a,
+ 0x103f, 0x103f,
+ 0x1050, 0x1055,
+ 0x105a, 0x105d,
+ 0x1061, 0x1061,
+ 0x1065, 0x1066,
+ 0x106e, 0x1070,
+ 0x1075, 0x1081,
+ 0x108e, 0x108e,
+ 0x10a0, 0x10c5,
+ 0x10d0, 0x10fa,
+ 0x10fc, 0x10fc,
+ 0x1100, 0x1248,
+ 0x124a, 0x124d,
+ 0x1250, 0x1256,
+ 0x1258, 0x1258,
+ 0x125a, 0x125d,
+ 0x1260, 0x1288,
+ 0x128a, 0x128d,
+ 0x1290, 0x12b0,
+ 0x12b2, 0x12b5,
+ 0x12b8, 0x12be,
+ 0x12c0, 0x12c0,
+ 0x12c2, 0x12c5,
+ 0x12c8, 0x12d6,
+ 0x12d8, 0x1310,
+ 0x1312, 0x1315,
+ 0x1318, 0x135a,
+ 0x1380, 0x138f,
+ 0x13a0, 0x13f4,
+ 0x1401, 0x166c,
+ 0x166f, 0x167f,
+ 0x1681, 0x169a,
+ 0x16a0, 0x16ea,
+ 0x16ee, 0x16f0,
+ 0x1700, 0x170c,
+ 0x170e, 0x1711,
+ 0x1720, 0x1731,
+ 0x1740, 0x1751,
+ 0x1760, 0x176c,
+ 0x176e, 0x1770,
+ 0x1780, 0x17b3,
+ 0x17d7, 0x17d7,
+ 0x17dc, 0x17dc,
+ 0x1820, 0x1877,
+ 0x1880, 0x18a8,
+ 0x18aa, 0x18aa,
+ 0x18b0, 0x18f5,
+ 0x1900, 0x191c,
+ 0x1950, 0x196d,
+ 0x1970, 0x1974,
+ 0x1980, 0x19ab,
+ 0x19c1, 0x19c7,
+ 0x1a00, 0x1a16,
+ 0x1a20, 0x1a54,
+ 0x1aa7, 0x1aa7,
+ 0x1b05, 0x1b33,
+ 0x1b45, 0x1b4b,
+ 0x1b83, 0x1ba0,
+ 0x1bae, 0x1baf,
+ 0x1bc0, 0x1be5,
+ 0x1c00, 0x1c23,
+ 0x1c4d, 0x1c4f,
+ 0x1c5a, 0x1c7d,
+ 0x1ce9, 0x1cec,
+ 0x1cee, 0x1cf1,
+ 0x1d00, 0x1dbf,
+ 0x1e00, 0x1f15,
+ 0x1f18, 0x1f1d,
+ 0x1f20, 0x1f45,
+ 0x1f48, 0x1f4d,
+ 0x1f50, 0x1f57,
+ 0x1f59, 0x1f59,
+ 0x1f5b, 0x1f5b,
+ 0x1f5d, 0x1f5d,
+ 0x1f5f, 0x1f7d,
+ 0x1f80, 0x1fb4,
+ 0x1fb6, 0x1fbc,
+ 0x1fbe, 0x1fbe,
+ 0x1fc2, 0x1fc4,
+ 0x1fc6, 0x1fcc,
+ 0x1fd0, 0x1fd3,
+ 0x1fd6, 0x1fdb,
+ 0x1fe0, 0x1fec,
+ 0x1ff2, 0x1ff4,
+ 0x1ff6, 0x1ffc,
+ 0x2071, 0x2071,
+ 0x207f, 0x207f,
+ 0x2090, 0x209c,
+ 0x2102, 0x2102,
+ 0x2107, 0x2107,
+ 0x210a, 0x2113,
+ 0x2115, 0x2115,
+ 0x2118, 0x211d,
+ 0x2124, 0x2124,
+ 0x2126, 0x2126,
+ 0x2128, 0x2128,
+ 0x212a, 0x2139,
+ 0x213c, 0x213f,
+ 0x2145, 0x2149,
+ 0x214e, 0x214e,
+ 0x2160, 0x2188,
+ 0x2c00, 0x2c2e,
+ 0x2c30, 0x2c5e,
+ 0x2c60, 0x2ce4,
+ 0x2ceb, 0x2cee,
+ 0x2d00, 0x2d25,
+ 0x2d30, 0x2d65,
+ 0x2d6f, 0x2d6f,
+ 0x2d80, 0x2d96,
+ 0x2da0, 0x2da6,
+ 0x2da8, 0x2dae,
+ 0x2db0, 0x2db6,
+ 0x2db8, 0x2dbe,
+ 0x2dc0, 0x2dc6,
+ 0x2dc8, 0x2dce,
+ 0x2dd0, 0x2dd6,
+ 0x2dd8, 0x2dde,
+ 0x3005, 0x3007,
+ 0x3021, 0x3029,
+ 0x3031, 0x3035,
+ 0x3038, 0x303c,
+ 0x3041, 0x3096,
+ 0x309d, 0x309f,
+ 0x30a1, 0x30fa,
+ 0x30fc, 0x30ff,
+ 0x3105, 0x312d,
+ 0x3131, 0x318e,
+ 0x31a0, 0x31ba,
+ 0x31f0, 0x31ff,
+ 0x3400, 0x4db5,
+ 0x4e00, 0x9fcb,
+ 0xa000, 0xa48c,
+ 0xa4d0, 0xa4fd,
+ 0xa500, 0xa60c,
+ 0xa610, 0xa61f,
+ 0xa62a, 0xa62b,
+ 0xa640, 0xa66e,
+ 0xa67f, 0xa697,
+ 0xa6a0, 0xa6ef,
+ 0xa717, 0xa71f,
+ 0xa722, 0xa788,
+ 0xa78b, 0xa78e,
+ 0xa790, 0xa791,
+ 0xa7a0, 0xa7a9,
+ 0xa7fa, 0xa801,
+ 0xa803, 0xa805,
+ 0xa807, 0xa80a,
+ 0xa80c, 0xa822,
+ 0xa840, 0xa873,
+ 0xa882, 0xa8b3,
+ 0xa8f2, 0xa8f7,
+ 0xa8fb, 0xa8fb,
+ 0xa90a, 0xa925,
+ 0xa930, 0xa946,
+ 0xa960, 0xa97c,
+ 0xa984, 0xa9b2,
+ 0xa9cf, 0xa9cf,
+ 0xaa00, 0xaa28,
+ 0xaa40, 0xaa42,
+ 0xaa44, 0xaa4b,
+ 0xaa60, 0xaa76,
+ 0xaa7a, 0xaa7a,
+ 0xaa80, 0xaaaf,
+ 0xaab1, 0xaab1,
+ 0xaab5, 0xaab6,
+ 0xaab9, 0xaabd,
+ 0xaac0, 0xaac0,
+ 0xaac2, 0xaac2,
+ 0xaadb, 0xaadd,
+ 0xab01, 0xab06,
+ 0xab09, 0xab0e,
+ 0xab11, 0xab16,
+ 0xab20, 0xab26,
+ 0xab28, 0xab2e,
+ 0xabc0, 0xabe2,
+ 0xac00, 0xd7a3,
+ 0xd7b0, 0xd7c6,
+ 0xd7cb, 0xd7fb,
+ 0xf900, 0xfa2d,
+ 0xfa30, 0xfa6d,
+ 0xfa70, 0xfad9,
+ 0xfb00, 0xfb06,
+ 0xfb13, 0xfb17,
+ 0xfb1d, 0xfb1d,
+ 0xfb1f, 0xfb28,
+ 0xfb2a, 0xfb36,
+ 0xfb38, 0xfb3c,
+ 0xfb3e, 0xfb3e,
+ 0xfb40, 0xfb41,
+ 0xfb43, 0xfb44,
+ 0xfb46, 0xfbb1,
+ 0xfbd3, 0xfc5d,
+ 0xfc64, 0xfd3d,
+ 0xfd50, 0xfd8f,
+ 0xfd92, 0xfdc7,
+ 0xfdf0, 0xfdf9,
+ 0xfe71, 0xfe71,
+ 0xfe73, 0xfe73,
+ 0xfe77, 0xfe77,
+ 0xfe79, 0xfe79,
+ 0xfe7b, 0xfe7b,
+ 0xfe7d, 0xfe7d,
+ 0xfe7f, 0xfefc,
+ 0xff21, 0xff3a,
+ 0xff41, 0xff5a,
+ 0xff66, 0xff9d,
+ 0xffa0, 0xffbe,
+ 0xffc2, 0xffc7,
+ 0xffca, 0xffcf,
+ 0xffd2, 0xffd7,
+ 0xffda, 0xffdc,
+ 0x10000, 0x1000b,
+ 0x1000d, 0x10026,
+ 0x10028, 0x1003a,
+ 0x1003c, 0x1003d,
+ 0x1003f, 0x1004d,
+ 0x10050, 0x1005d,
+ 0x10080, 0x100fa,
+ 0x10140, 0x10174,
+ 0x10280, 0x1029c,
+ 0x102a0, 0x102d0,
+ 0x10300, 0x1031e,
+ 0x10330, 0x1034a,
+ 0x10380, 0x1039d,
+ 0x103a0, 0x103c3,
+ 0x103c8, 0x103cf,
+ 0x103d1, 0x103d5,
+ 0x10400, 0x1049d,
+ 0x10800, 0x10805,
+ 0x10808, 0x10808,
+ 0x1080a, 0x10835,
+ 0x10837, 0x10838,
+ 0x1083c, 0x1083c,
+ 0x1083f, 0x10855,
+ 0x10900, 0x10915,
+ 0x10920, 0x10939,
+ 0x10a00, 0x10a00,
+ 0x10a10, 0x10a13,
+ 0x10a15, 0x10a17,
+ 0x10a19, 0x10a33,
+ 0x10a60, 0x10a7c,
+ 0x10b00, 0x10b35,
+ 0x10b40, 0x10b55,
+ 0x10b60, 0x10b72,
+ 0x10c00, 0x10c48,
+ 0x11003, 0x11037,
+ 0x11083, 0x110af,
+ 0x12000, 0x1236e,
+ 0x12400, 0x12462,
+ 0x13000, 0x1342e,
+ 0x16800, 0x16a38,
+ 0x1b000, 0x1b001,
+ 0x1d400, 0x1d454,
+ 0x1d456, 0x1d49c,
+ 0x1d49e, 0x1d49f,
+ 0x1d4a2, 0x1d4a2,
+ 0x1d4a5, 0x1d4a6,
+ 0x1d4a9, 0x1d4ac,
+ 0x1d4ae, 0x1d4b9,
+ 0x1d4bb, 0x1d4bb,
+ 0x1d4bd, 0x1d4c3,
+ 0x1d4c5, 0x1d505,
+ 0x1d507, 0x1d50a,
+ 0x1d50d, 0x1d514,
+ 0x1d516, 0x1d51c,
+ 0x1d51e, 0x1d539,
+ 0x1d53b, 0x1d53e,
+ 0x1d540, 0x1d544,
+ 0x1d546, 0x1d546,
+ 0x1d54a, 0x1d550,
+ 0x1d552, 0x1d6a5,
+ 0x1d6a8, 0x1d6c0,
+ 0x1d6c2, 0x1d6da,
+ 0x1d6dc, 0x1d6fa,
+ 0x1d6fc, 0x1d714,
+ 0x1d716, 0x1d734,
+ 0x1d736, 0x1d74e,
+ 0x1d750, 0x1d76e,
+ 0x1d770, 0x1d788,
+ 0x1d78a, 0x1d7a8,
+ 0x1d7aa, 0x1d7c2,
+ 0x1d7c4, 0x1d7cb,
+ 0x20000, 0x2a6d6,
+ 0x2a700, 0x2b734,
+ 0x2b740, 0x2b81d,
+ 0x2f800, 0x2fa1d,
+}; /* CR_XID_Start */
+
+/* 'XID_Continue': Derived Property */
+static const OnigCodePoint CR_XID_Continue[] = {
+ 521,
+ 0x0030, 0x0039,
+ 0x0041, 0x005a,
+ 0x005f, 0x005f,
+ 0x0061, 0x007a,
+ 0x00aa, 0x00aa,
+ 0x00b5, 0x00b5,
+ 0x00b7, 0x00b7,
+ 0x00ba, 0x00ba,
+ 0x00c0, 0x00d6,
+ 0x00d8, 0x00f6,
+ 0x00f8, 0x02c1,
+ 0x02c6, 0x02d1,
+ 0x02e0, 0x02e4,
+ 0x02ec, 0x02ec,
+ 0x02ee, 0x02ee,
+ 0x0300, 0x0374,
+ 0x0376, 0x0377,
+ 0x037b, 0x037d,
+ 0x0386, 0x038a,
+ 0x038c, 0x038c,
+ 0x038e, 0x03a1,
+ 0x03a3, 0x03f5,
+ 0x03f7, 0x0481,
+ 0x0483, 0x0487,
+ 0x048a, 0x0527,
+ 0x0531, 0x0556,
+ 0x0559, 0x0559,
+ 0x0561, 0x0587,
+ 0x0591, 0x05bd,
+ 0x05bf, 0x05bf,
+ 0x05c1, 0x05c2,
+ 0x05c4, 0x05c5,
+ 0x05c7, 0x05c7,
+ 0x05d0, 0x05ea,
+ 0x05f0, 0x05f2,
+ 0x0610, 0x061a,
+ 0x0620, 0x0669,
+ 0x066e, 0x06d3,
+ 0x06d5, 0x06dc,
+ 0x06df, 0x06e8,
+ 0x06ea, 0x06fc,
+ 0x06ff, 0x06ff,
+ 0x0710, 0x074a,
+ 0x074d, 0x07b1,
+ 0x07c0, 0x07f5,
+ 0x07fa, 0x07fa,
+ 0x0800, 0x082d,
+ 0x0840, 0x085b,
+ 0x0900, 0x0963,
+ 0x0966, 0x096f,
+ 0x0971, 0x0977,
+ 0x0979, 0x097f,
+ 0x0981, 0x0983,
+ 0x0985, 0x098c,
+ 0x098f, 0x0990,
+ 0x0993, 0x09a8,
+ 0x09aa, 0x09b0,
+ 0x09b2, 0x09b2,
+ 0x09b6, 0x09b9,
+ 0x09bc, 0x09c4,
+ 0x09c7, 0x09c8,
+ 0x09cb, 0x09ce,
+ 0x09d7, 0x09d7,
+ 0x09dc, 0x09dd,
+ 0x09df, 0x09e3,
+ 0x09e6, 0x09f1,
+ 0x0a01, 0x0a03,
+ 0x0a05, 0x0a0a,
+ 0x0a0f, 0x0a10,
+ 0x0a13, 0x0a28,
+ 0x0a2a, 0x0a30,
+ 0x0a32, 0x0a33,
+ 0x0a35, 0x0a36,
+ 0x0a38, 0x0a39,
+ 0x0a3c, 0x0a3c,
+ 0x0a3e, 0x0a42,
+ 0x0a47, 0x0a48,
+ 0x0a4b, 0x0a4d,
+ 0x0a51, 0x0a51,
+ 0x0a59, 0x0a5c,
+ 0x0a5e, 0x0a5e,
+ 0x0a66, 0x0a75,
+ 0x0a81, 0x0a83,
+ 0x0a85, 0x0a8d,
+ 0x0a8f, 0x0a91,
+ 0x0a93, 0x0aa8,
+ 0x0aaa, 0x0ab0,
+ 0x0ab2, 0x0ab3,
+ 0x0ab5, 0x0ab9,
+ 0x0abc, 0x0ac5,
+ 0x0ac7, 0x0ac9,
+ 0x0acb, 0x0acd,
+ 0x0ad0, 0x0ad0,
+ 0x0ae0, 0x0ae3,
+ 0x0ae6, 0x0aef,
+ 0x0b01, 0x0b03,
+ 0x0b05, 0x0b0c,
+ 0x0b0f, 0x0b10,
+ 0x0b13, 0x0b28,
+ 0x0b2a, 0x0b30,
+ 0x0b32, 0x0b33,
+ 0x0b35, 0x0b39,
+ 0x0b3c, 0x0b44,
+ 0x0b47, 0x0b48,
+ 0x0b4b, 0x0b4d,
+ 0x0b56, 0x0b57,
+ 0x0b5c, 0x0b5d,
+ 0x0b5f, 0x0b63,
+ 0x0b66, 0x0b6f,
+ 0x0b71, 0x0b71,
+ 0x0b82, 0x0b83,
+ 0x0b85, 0x0b8a,
+ 0x0b8e, 0x0b90,
+ 0x0b92, 0x0b95,
+ 0x0b99, 0x0b9a,
+ 0x0b9c, 0x0b9c,
+ 0x0b9e, 0x0b9f,
+ 0x0ba3, 0x0ba4,
+ 0x0ba8, 0x0baa,
+ 0x0bae, 0x0bb9,
+ 0x0bbe, 0x0bc2,
+ 0x0bc6, 0x0bc8,
+ 0x0bca, 0x0bcd,
+ 0x0bd0, 0x0bd0,
+ 0x0bd7, 0x0bd7,
+ 0x0be6, 0x0bef,
+ 0x0c01, 0x0c03,
+ 0x0c05, 0x0c0c,
+ 0x0c0e, 0x0c10,
+ 0x0c12, 0x0c28,
+ 0x0c2a, 0x0c33,
+ 0x0c35, 0x0c39,
+ 0x0c3d, 0x0c44,
+ 0x0c46, 0x0c48,
+ 0x0c4a, 0x0c4d,
+ 0x0c55, 0x0c56,
+ 0x0c58, 0x0c59,
+ 0x0c60, 0x0c63,
+ 0x0c66, 0x0c6f,
+ 0x0c82, 0x0c83,
+ 0x0c85, 0x0c8c,
+ 0x0c8e, 0x0c90,
+ 0x0c92, 0x0ca8,
+ 0x0caa, 0x0cb3,
+ 0x0cb5, 0x0cb9,
+ 0x0cbc, 0x0cc4,
+ 0x0cc6, 0x0cc8,
+ 0x0cca, 0x0ccd,
+ 0x0cd5, 0x0cd6,
+ 0x0cde, 0x0cde,
+ 0x0ce0, 0x0ce3,
+ 0x0ce6, 0x0cef,
+ 0x0cf1, 0x0cf2,
+ 0x0d02, 0x0d03,
+ 0x0d05, 0x0d0c,
+ 0x0d0e, 0x0d10,
+ 0x0d12, 0x0d3a,
+ 0x0d3d, 0x0d44,
+ 0x0d46, 0x0d48,
+ 0x0d4a, 0x0d4e,
+ 0x0d57, 0x0d57,
+ 0x0d60, 0x0d63,
+ 0x0d66, 0x0d6f,
+ 0x0d7a, 0x0d7f,
+ 0x0d82, 0x0d83,
+ 0x0d85, 0x0d96,
+ 0x0d9a, 0x0db1,
+ 0x0db3, 0x0dbb,
+ 0x0dbd, 0x0dbd,
+ 0x0dc0, 0x0dc6,
+ 0x0dca, 0x0dca,
+ 0x0dcf, 0x0dd4,
+ 0x0dd6, 0x0dd6,
+ 0x0dd8, 0x0ddf,
+ 0x0df2, 0x0df3,
+ 0x0e01, 0x0e3a,
+ 0x0e40, 0x0e4e,
+ 0x0e50, 0x0e59,
+ 0x0e81, 0x0e82,
+ 0x0e84, 0x0e84,
+ 0x0e87, 0x0e88,
+ 0x0e8a, 0x0e8a,
+ 0x0e8d, 0x0e8d,
+ 0x0e94, 0x0e97,
+ 0x0e99, 0x0e9f,
+ 0x0ea1, 0x0ea3,
+ 0x0ea5, 0x0ea5,
+ 0x0ea7, 0x0ea7,
+ 0x0eaa, 0x0eab,
+ 0x0ead, 0x0eb9,
+ 0x0ebb, 0x0ebd,
+ 0x0ec0, 0x0ec4,
+ 0x0ec6, 0x0ec6,
+ 0x0ec8, 0x0ecd,
+ 0x0ed0, 0x0ed9,
+ 0x0edc, 0x0edd,
+ 0x0f00, 0x0f00,
+ 0x0f18, 0x0f19,
+ 0x0f20, 0x0f29,
+ 0x0f35, 0x0f35,
+ 0x0f37, 0x0f37,
+ 0x0f39, 0x0f39,
+ 0x0f3e, 0x0f47,
+ 0x0f49, 0x0f6c,
+ 0x0f71, 0x0f84,
+ 0x0f86, 0x0f97,
+ 0x0f99, 0x0fbc,
+ 0x0fc6, 0x0fc6,
+ 0x1000, 0x1049,
+ 0x1050, 0x109d,
+ 0x10a0, 0x10c5,
+ 0x10d0, 0x10fa,
+ 0x10fc, 0x10fc,
+ 0x1100, 0x1248,
+ 0x124a, 0x124d,
+ 0x1250, 0x1256,
+ 0x1258, 0x1258,
+ 0x125a, 0x125d,
+ 0x1260, 0x1288,
+ 0x128a, 0x128d,
+ 0x1290, 0x12b0,
+ 0x12b2, 0x12b5,
+ 0x12b8, 0x12be,
+ 0x12c0, 0x12c0,
+ 0x12c2, 0x12c5,
+ 0x12c8, 0x12d6,
+ 0x12d8, 0x1310,
+ 0x1312, 0x1315,
+ 0x1318, 0x135a,
+ 0x135d, 0x135f,
+ 0x1369, 0x1371,
+ 0x1380, 0x138f,
+ 0x13a0, 0x13f4,
+ 0x1401, 0x166c,
+ 0x166f, 0x167f,
+ 0x1681, 0x169a,
+ 0x16a0, 0x16ea,
+ 0x16ee, 0x16f0,
+ 0x1700, 0x170c,
+ 0x170e, 0x1714,
+ 0x1720, 0x1734,
+ 0x1740, 0x1753,
+ 0x1760, 0x176c,
+ 0x176e, 0x1770,
+ 0x1772, 0x1773,
+ 0x1780, 0x17b3,
+ 0x17b6, 0x17d3,
+ 0x17d7, 0x17d7,
+ 0x17dc, 0x17dd,
+ 0x17e0, 0x17e9,
+ 0x180b, 0x180d,
+ 0x1810, 0x1819,
+ 0x1820, 0x1877,
+ 0x1880, 0x18aa,
+ 0x18b0, 0x18f5,
+ 0x1900, 0x191c,
+ 0x1920, 0x192b,
+ 0x1930, 0x193b,
+ 0x1946, 0x196d,
+ 0x1970, 0x1974,
+ 0x1980, 0x19ab,
+ 0x19b0, 0x19c9,
+ 0x19d0, 0x19da,
+ 0x1a00, 0x1a1b,
+ 0x1a20, 0x1a5e,
+ 0x1a60, 0x1a7c,
+ 0x1a7f, 0x1a89,
+ 0x1a90, 0x1a99,
+ 0x1aa7, 0x1aa7,
+ 0x1b00, 0x1b4b,
+ 0x1b50, 0x1b59,
+ 0x1b6b, 0x1b73,
+ 0x1b80, 0x1baa,
+ 0x1bae, 0x1bb9,
+ 0x1bc0, 0x1bf3,
+ 0x1c00, 0x1c37,
+ 0x1c40, 0x1c49,
+ 0x1c4d, 0x1c7d,
+ 0x1cd0, 0x1cd2,
+ 0x1cd4, 0x1cf2,
+ 0x1d00, 0x1de6,
+ 0x1dfc, 0x1f15,
+ 0x1f18, 0x1f1d,
+ 0x1f20, 0x1f45,
+ 0x1f48, 0x1f4d,
+ 0x1f50, 0x1f57,
+ 0x1f59, 0x1f59,
+ 0x1f5b, 0x1f5b,
+ 0x1f5d, 0x1f5d,
+ 0x1f5f, 0x1f7d,
+ 0x1f80, 0x1fb4,
+ 0x1fb6, 0x1fbc,
+ 0x1fbe, 0x1fbe,
+ 0x1fc2, 0x1fc4,
+ 0x1fc6, 0x1fcc,
+ 0x1fd0, 0x1fd3,
+ 0x1fd6, 0x1fdb,
+ 0x1fe0, 0x1fec,
+ 0x1ff2, 0x1ff4,
+ 0x1ff6, 0x1ffc,
+ 0x203f, 0x2040,
+ 0x2054, 0x2054,
+ 0x2071, 0x2071,
+ 0x207f, 0x207f,
+ 0x2090, 0x209c,
+ 0x20d0, 0x20dc,
+ 0x20e1, 0x20e1,
+ 0x20e5, 0x20f0,
+ 0x2102, 0x2102,
+ 0x2107, 0x2107,
+ 0x210a, 0x2113,
+ 0x2115, 0x2115,
+ 0x2118, 0x211d,
+ 0x2124, 0x2124,
+ 0x2126, 0x2126,
+ 0x2128, 0x2128,
+ 0x212a, 0x2139,
+ 0x213c, 0x213f,
+ 0x2145, 0x2149,
+ 0x214e, 0x214e,
+ 0x2160, 0x2188,
+ 0x2c00, 0x2c2e,
+ 0x2c30, 0x2c5e,
+ 0x2c60, 0x2ce4,
+ 0x2ceb, 0x2cf1,
+ 0x2d00, 0x2d25,
+ 0x2d30, 0x2d65,
+ 0x2d6f, 0x2d6f,
+ 0x2d7f, 0x2d96,
+ 0x2da0, 0x2da6,
+ 0x2da8, 0x2dae,
+ 0x2db0, 0x2db6,
+ 0x2db8, 0x2dbe,
+ 0x2dc0, 0x2dc6,
+ 0x2dc8, 0x2dce,
+ 0x2dd0, 0x2dd6,
+ 0x2dd8, 0x2dde,
+ 0x2de0, 0x2dff,
+ 0x3005, 0x3007,
+ 0x3021, 0x302f,
+ 0x3031, 0x3035,
+ 0x3038, 0x303c,
+ 0x3041, 0x3096,
+ 0x3099, 0x309a,
+ 0x309d, 0x309f,
+ 0x30a1, 0x30fa,
+ 0x30fc, 0x30ff,
+ 0x3105, 0x312d,
+ 0x3131, 0x318e,
+ 0x31a0, 0x31ba,
+ 0x31f0, 0x31ff,
+ 0x3400, 0x4db5,
+ 0x4e00, 0x9fcb,
+ 0xa000, 0xa48c,
+ 0xa4d0, 0xa4fd,
+ 0xa500, 0xa60c,
+ 0xa610, 0xa62b,
+ 0xa640, 0xa66f,
+ 0xa67c, 0xa67d,
+ 0xa67f, 0xa697,
+ 0xa6a0, 0xa6f1,
+ 0xa717, 0xa71f,
+ 0xa722, 0xa788,
+ 0xa78b, 0xa78e,
+ 0xa790, 0xa791,
+ 0xa7a0, 0xa7a9,
+ 0xa7fa, 0xa827,
+ 0xa840, 0xa873,
+ 0xa880, 0xa8c4,
+ 0xa8d0, 0xa8d9,
+ 0xa8e0, 0xa8f7,
+ 0xa8fb, 0xa8fb,
+ 0xa900, 0xa92d,
+ 0xa930, 0xa953,
+ 0xa960, 0xa97c,
+ 0xa980, 0xa9c0,
+ 0xa9cf, 0xa9d9,
+ 0xaa00, 0xaa36,
+ 0xaa40, 0xaa4d,
+ 0xaa50, 0xaa59,
+ 0xaa60, 0xaa76,
+ 0xaa7a, 0xaa7b,
+ 0xaa80, 0xaac2,
+ 0xaadb, 0xaadd,
+ 0xab01, 0xab06,
+ 0xab09, 0xab0e,
+ 0xab11, 0xab16,
+ 0xab20, 0xab26,
+ 0xab28, 0xab2e,
+ 0xabc0, 0xabea,
+ 0xabec, 0xabed,
+ 0xabf0, 0xabf9,
+ 0xac00, 0xd7a3,
+ 0xd7b0, 0xd7c6,
+ 0xd7cb, 0xd7fb,
+ 0xf900, 0xfa2d,
+ 0xfa30, 0xfa6d,
+ 0xfa70, 0xfad9,
+ 0xfb00, 0xfb06,
+ 0xfb13, 0xfb17,
+ 0xfb1d, 0xfb28,
+ 0xfb2a, 0xfb36,
+ 0xfb38, 0xfb3c,
+ 0xfb3e, 0xfb3e,
+ 0xfb40, 0xfb41,
+ 0xfb43, 0xfb44,
+ 0xfb46, 0xfbb1,
+ 0xfbd3, 0xfc5d,
+ 0xfc64, 0xfd3d,
+ 0xfd50, 0xfd8f,
+ 0xfd92, 0xfdc7,
+ 0xfdf0, 0xfdf9,
+ 0xfe00, 0xfe0f,
+ 0xfe20, 0xfe26,
+ 0xfe33, 0xfe34,
+ 0xfe4d, 0xfe4f,
+ 0xfe71, 0xfe71,
+ 0xfe73, 0xfe73,
+ 0xfe77, 0xfe77,
+ 0xfe79, 0xfe79,
+ 0xfe7b, 0xfe7b,
+ 0xfe7d, 0xfe7d,
+ 0xfe7f, 0xfefc,
+ 0xff10, 0xff19,
+ 0xff21, 0xff3a,
+ 0xff3f, 0xff3f,
+ 0xff41, 0xff5a,
+ 0xff66, 0xffbe,
+ 0xffc2, 0xffc7,
+ 0xffca, 0xffcf,
+ 0xffd2, 0xffd7,
+ 0xffda, 0xffdc,
+ 0x10000, 0x1000b,
+ 0x1000d, 0x10026,
+ 0x10028, 0x1003a,
+ 0x1003c, 0x1003d,
+ 0x1003f, 0x1004d,
+ 0x10050, 0x1005d,
+ 0x10080, 0x100fa,
+ 0x10140, 0x10174,
+ 0x101fd, 0x101fd,
+ 0x10280, 0x1029c,
+ 0x102a0, 0x102d0,
+ 0x10300, 0x1031e,
+ 0x10330, 0x1034a,
+ 0x10380, 0x1039d,
+ 0x103a0, 0x103c3,
+ 0x103c8, 0x103cf,
+ 0x103d1, 0x103d5,
+ 0x10400, 0x1049d,
+ 0x104a0, 0x104a9,
+ 0x10800, 0x10805,
+ 0x10808, 0x10808,
+ 0x1080a, 0x10835,
+ 0x10837, 0x10838,
+ 0x1083c, 0x1083c,
+ 0x1083f, 0x10855,
+ 0x10900, 0x10915,
+ 0x10920, 0x10939,
+ 0x10a00, 0x10a03,
+ 0x10a05, 0x10a06,
+ 0x10a0c, 0x10a13,
+ 0x10a15, 0x10a17,
+ 0x10a19, 0x10a33,
+ 0x10a38, 0x10a3a,
+ 0x10a3f, 0x10a3f,
+ 0x10a60, 0x10a7c,
+ 0x10b00, 0x10b35,
+ 0x10b40, 0x10b55,
+ 0x10b60, 0x10b72,
+ 0x10c00, 0x10c48,
+ 0x11000, 0x11046,
+ 0x11066, 0x1106f,
+ 0x11080, 0x110ba,
+ 0x12000, 0x1236e,
+ 0x12400, 0x12462,
+ 0x13000, 0x1342e,
+ 0x16800, 0x16a38,
+ 0x1b000, 0x1b001,
+ 0x1d165, 0x1d169,
+ 0x1d16d, 0x1d172,
+ 0x1d17b, 0x1d182,
+ 0x1d185, 0x1d18b,
+ 0x1d1aa, 0x1d1ad,
+ 0x1d242, 0x1d244,
+ 0x1d400, 0x1d454,
+ 0x1d456, 0x1d49c,
+ 0x1d49e, 0x1d49f,
+ 0x1d4a2, 0x1d4a2,
+ 0x1d4a5, 0x1d4a6,
+ 0x1d4a9, 0x1d4ac,
+ 0x1d4ae, 0x1d4b9,
+ 0x1d4bb, 0x1d4bb,
+ 0x1d4bd, 0x1d4c3,
+ 0x1d4c5, 0x1d505,
+ 0x1d507, 0x1d50a,
+ 0x1d50d, 0x1d514,
+ 0x1d516, 0x1d51c,
+ 0x1d51e, 0x1d539,
+ 0x1d53b, 0x1d53e,
+ 0x1d540, 0x1d544,
+ 0x1d546, 0x1d546,
+ 0x1d54a, 0x1d550,
+ 0x1d552, 0x1d6a5,
+ 0x1d6a8, 0x1d6c0,
+ 0x1d6c2, 0x1d6da,
+ 0x1d6dc, 0x1d6fa,
+ 0x1d6fc, 0x1d714,
+ 0x1d716, 0x1d734,
+ 0x1d736, 0x1d74e,
+ 0x1d750, 0x1d76e,
+ 0x1d770, 0x1d788,
+ 0x1d78a, 0x1d7a8,
+ 0x1d7aa, 0x1d7c2,
+ 0x1d7c4, 0x1d7cb,
+ 0x1d7ce, 0x1d7ff,
+ 0x20000, 0x2a6d6,
+ 0x2a700, 0x2b734,
+ 0x2b740, 0x2b81d,
+ 0x2f800, 0x2fa1d,
+ 0xe0100, 0xe01ef,
+}; /* CR_XID_Continue */
+
+/* 'Default_Ignorable_Code_Point': Derived Property */
+static const OnigCodePoint CR_Default_Ignorable_Code_Point[] = {
+ 15,
+ 0x00ad, 0x00ad,
+ 0x034f, 0x034f,
+ 0x115f, 0x1160,
+ 0x17b4, 0x17b5,
+ 0x180b, 0x180d,
+ 0x200b, 0x200f,
+ 0x202a, 0x202e,
+ 0x2060, 0x206f,
+ 0x3164, 0x3164,
+ 0xfe00, 0xfe0f,
+ 0xfeff, 0xfeff,
+ 0xffa0, 0xffa0,
+ 0xfff0, 0xfff8,
+ 0x1d173, 0x1d17a,
+ 0xe0000, 0xe0fff,
+}; /* CR_Default_Ignorable_Code_Point */
+
+/* 'Grapheme_Extend': Derived Property */
+static const OnigCodePoint CR_Grapheme_Extend[] = {
+ 215,
+ 0x0300, 0x036f,
+ 0x0483, 0x0489,
+ 0x0591, 0x05bd,
+ 0x05bf, 0x05bf,
+ 0x05c1, 0x05c2,
+ 0x05c4, 0x05c5,
+ 0x05c7, 0x05c7,
+ 0x0610, 0x061a,
+ 0x064b, 0x065f,
+ 0x0670, 0x0670,
+ 0x06d6, 0x06dc,
+ 0x06df, 0x06e4,
+ 0x06e7, 0x06e8,
+ 0x06ea, 0x06ed,
+ 0x0711, 0x0711,
+ 0x0730, 0x074a,
+ 0x07a6, 0x07b0,
+ 0x07eb, 0x07f3,
+ 0x0816, 0x0819,
+ 0x081b, 0x0823,
+ 0x0825, 0x0827,
+ 0x0829, 0x082d,
+ 0x0859, 0x085b,
+ 0x0900, 0x0902,
+ 0x093a, 0x093a,
+ 0x093c, 0x093c,
+ 0x0941, 0x0948,
+ 0x094d, 0x094d,
+ 0x0951, 0x0957,
+ 0x0962, 0x0963,
+ 0x0981, 0x0981,
+ 0x09bc, 0x09bc,
+ 0x09be, 0x09be,
+ 0x09c1, 0x09c4,
+ 0x09cd, 0x09cd,
+ 0x09d7, 0x09d7,
+ 0x09e2, 0x09e3,
+ 0x0a01, 0x0a02,
+ 0x0a3c, 0x0a3c,
+ 0x0a41, 0x0a42,
+ 0x0a47, 0x0a48,
+ 0x0a4b, 0x0a4d,
+ 0x0a51, 0x0a51,
+ 0x0a70, 0x0a71,
+ 0x0a75, 0x0a75,
+ 0x0a81, 0x0a82,
+ 0x0abc, 0x0abc,
+ 0x0ac1, 0x0ac5,
+ 0x0ac7, 0x0ac8,
+ 0x0acd, 0x0acd,
+ 0x0ae2, 0x0ae3,
+ 0x0b01, 0x0b01,
+ 0x0b3c, 0x0b3c,
+ 0x0b3e, 0x0b3f,
+ 0x0b41, 0x0b44,
+ 0x0b4d, 0x0b4d,
+ 0x0b56, 0x0b57,
+ 0x0b62, 0x0b63,
+ 0x0b82, 0x0b82,
+ 0x0bbe, 0x0bbe,
+ 0x0bc0, 0x0bc0,
+ 0x0bcd, 0x0bcd,
+ 0x0bd7, 0x0bd7,
+ 0x0c3e, 0x0c40,
+ 0x0c46, 0x0c48,
+ 0x0c4a, 0x0c4d,
+ 0x0c55, 0x0c56,
+ 0x0c62, 0x0c63,
+ 0x0cbc, 0x0cbc,
+ 0x0cbf, 0x0cbf,
+ 0x0cc2, 0x0cc2,
+ 0x0cc6, 0x0cc6,
+ 0x0ccc, 0x0ccd,
+ 0x0cd5, 0x0cd6,
+ 0x0ce2, 0x0ce3,
+ 0x0d3e, 0x0d3e,
+ 0x0d41, 0x0d44,
+ 0x0d4d, 0x0d4d,
+ 0x0d57, 0x0d57,
+ 0x0d62, 0x0d63,
+ 0x0dca, 0x0dca,
+ 0x0dcf, 0x0dcf,
+ 0x0dd2, 0x0dd4,
+ 0x0dd6, 0x0dd6,
+ 0x0ddf, 0x0ddf,
+ 0x0e31, 0x0e31,
+ 0x0e34, 0x0e3a,
+ 0x0e47, 0x0e4e,
+ 0x0eb1, 0x0eb1,
+ 0x0eb4, 0x0eb9,
+ 0x0ebb, 0x0ebc,
+ 0x0ec8, 0x0ecd,
+ 0x0f18, 0x0f19,
+ 0x0f35, 0x0f35,
+ 0x0f37, 0x0f37,
+ 0x0f39, 0x0f39,
+ 0x0f71, 0x0f7e,
+ 0x0f80, 0x0f84,
+ 0x0f86, 0x0f87,
+ 0x0f8d, 0x0f97,
+ 0x0f99, 0x0fbc,
+ 0x0fc6, 0x0fc6,
+ 0x102d, 0x1030,
+ 0x1032, 0x1037,
+ 0x1039, 0x103a,
+ 0x103d, 0x103e,
+ 0x1058, 0x1059,
+ 0x105e, 0x1060,
+ 0x1071, 0x1074,
+ 0x1082, 0x1082,
+ 0x1085, 0x1086,
+ 0x108d, 0x108d,
+ 0x109d, 0x109d,
+ 0x135d, 0x135f,
+ 0x1712, 0x1714,
+ 0x1732, 0x1734,
+ 0x1752, 0x1753,
+ 0x1772, 0x1773,
+ 0x17b7, 0x17bd,
+ 0x17c6, 0x17c6,
+ 0x17c9, 0x17d3,
+ 0x17dd, 0x17dd,
+ 0x180b, 0x180d,
+ 0x18a9, 0x18a9,
+ 0x1920, 0x1922,
+ 0x1927, 0x1928,
+ 0x1932, 0x1932,
+ 0x1939, 0x193b,
+ 0x1a17, 0x1a18,
+ 0x1a56, 0x1a56,
+ 0x1a58, 0x1a5e,
+ 0x1a60, 0x1a60,
+ 0x1a62, 0x1a62,
+ 0x1a65, 0x1a6c,
+ 0x1a73, 0x1a7c,
+ 0x1a7f, 0x1a7f,
+ 0x1b00, 0x1b03,
+ 0x1b34, 0x1b34,
+ 0x1b36, 0x1b3a,
+ 0x1b3c, 0x1b3c,
+ 0x1b42, 0x1b42,
+ 0x1b6b, 0x1b73,
+ 0x1b80, 0x1b81,
+ 0x1ba2, 0x1ba5,
+ 0x1ba8, 0x1ba9,
+ 0x1be6, 0x1be6,
+ 0x1be8, 0x1be9,
+ 0x1bed, 0x1bed,
+ 0x1bef, 0x1bf1,
+ 0x1c2c, 0x1c33,
+ 0x1c36, 0x1c37,
+ 0x1cd0, 0x1cd2,
+ 0x1cd4, 0x1ce0,
+ 0x1ce2, 0x1ce8,
+ 0x1ced, 0x1ced,
+ 0x1dc0, 0x1de6,
+ 0x1dfc, 0x1dff,
+ 0x200c, 0x200d,
+ 0x20d0, 0x20f0,
+ 0x2cef, 0x2cf1,
+ 0x2d7f, 0x2d7f,
+ 0x2de0, 0x2dff,
+ 0x302a, 0x302f,
+ 0x3099, 0x309a,
+ 0xa66f, 0xa672,
+ 0xa67c, 0xa67d,
+ 0xa6f0, 0xa6f1,
+ 0xa802, 0xa802,
+ 0xa806, 0xa806,
+ 0xa80b, 0xa80b,
+ 0xa825, 0xa826,
+ 0xa8c4, 0xa8c4,
+ 0xa8e0, 0xa8f1,
+ 0xa926, 0xa92d,
+ 0xa947, 0xa951,
+ 0xa980, 0xa982,
+ 0xa9b3, 0xa9b3,
+ 0xa9b6, 0xa9b9,
+ 0xa9bc, 0xa9bc,
+ 0xaa29, 0xaa2e,
+ 0xaa31, 0xaa32,
+ 0xaa35, 0xaa36,
+ 0xaa43, 0xaa43,
+ 0xaa4c, 0xaa4c,
+ 0xaab0, 0xaab0,
+ 0xaab2, 0xaab4,
+ 0xaab7, 0xaab8,
+ 0xaabe, 0xaabf,
+ 0xaac1, 0xaac1,
+ 0xabe5, 0xabe5,
+ 0xabe8, 0xabe8,
+ 0xabed, 0xabed,
+ 0xfb1e, 0xfb1e,
+ 0xfe00, 0xfe0f,
+ 0xfe20, 0xfe26,
+ 0xff9e, 0xff9f,
+ 0x101fd, 0x101fd,
+ 0x10a01, 0x10a03,
+ 0x10a05, 0x10a06,
+ 0x10a0c, 0x10a0f,
+ 0x10a38, 0x10a3a,
+ 0x10a3f, 0x10a3f,
+ 0x11001, 0x11001,
+ 0x11038, 0x11046,
+ 0x11080, 0x11081,
+ 0x110b3, 0x110b6,
+ 0x110b9, 0x110ba,
+ 0x1d165, 0x1d165,
+ 0x1d167, 0x1d169,
+ 0x1d16e, 0x1d172,
+ 0x1d17b, 0x1d182,
+ 0x1d185, 0x1d18b,
+ 0x1d1aa, 0x1d1ad,
+ 0x1d242, 0x1d244,
+ 0xe0100, 0xe01ef,
+}; /* CR_Grapheme_Extend */
+
+/* 'Grapheme_Base': Derived Property */
+static const OnigCodePoint CR_Grapheme_Base[] = {
+ 596,
+ 0x0020, 0x007e,
+ 0x00a0, 0x00ac,
+ 0x00ae, 0x02ff,
+ 0x0370, 0x0377,
+ 0x037a, 0x037e,
+ 0x0384, 0x038a,
+ 0x038c, 0x038c,
+ 0x038e, 0x03a1,
+ 0x03a3, 0x0482,
+ 0x048a, 0x0527,
+ 0x0531, 0x0556,
+ 0x0559, 0x055f,
+ 0x0561, 0x0587,
+ 0x0589, 0x058a,
+ 0x05be, 0x05be,
+ 0x05c0, 0x05c0,
+ 0x05c3, 0x05c3,
+ 0x05c6, 0x05c6,
+ 0x05d0, 0x05ea,
+ 0x05f0, 0x05f4,
+ 0x0606, 0x060f,
+ 0x061b, 0x061b,
+ 0x061e, 0x064a,
+ 0x0660, 0x066f,
+ 0x0671, 0x06d5,
+ 0x06de, 0x06de,
+ 0x06e5, 0x06e6,
+ 0x06e9, 0x06e9,
+ 0x06ee, 0x070d,
+ 0x0710, 0x0710,
+ 0x0712, 0x072f,
+ 0x074d, 0x07a5,
+ 0x07b1, 0x07b1,
+ 0x07c0, 0x07ea,
+ 0x07f4, 0x07fa,
+ 0x0800, 0x0815,
+ 0x081a, 0x081a,
+ 0x0824, 0x0824,
+ 0x0828, 0x0828,
+ 0x0830, 0x083e,
+ 0x0840, 0x0858,
+ 0x085e, 0x085e,
+ 0x0903, 0x0939,
+ 0x093b, 0x093b,
+ 0x093d, 0x0940,
+ 0x0949, 0x094c,
+ 0x094e, 0x0950,
+ 0x0958, 0x0961,
+ 0x0964, 0x0977,
+ 0x0979, 0x097f,
+ 0x0982, 0x0983,
+ 0x0985, 0x098c,
+ 0x098f, 0x0990,
+ 0x0993, 0x09a8,
+ 0x09aa, 0x09b0,
+ 0x09b2, 0x09b2,
+ 0x09b6, 0x09b9,
+ 0x09bd, 0x09bd,
+ 0x09bf, 0x09c0,
+ 0x09c7, 0x09c8,
+ 0x09cb, 0x09cc,
+ 0x09ce, 0x09ce,
+ 0x09dc, 0x09dd,
+ 0x09df, 0x09e1,
+ 0x09e6, 0x09fb,
+ 0x0a03, 0x0a03,
+ 0x0a05, 0x0a0a,
+ 0x0a0f, 0x0a10,
+ 0x0a13, 0x0a28,
+ 0x0a2a, 0x0a30,
+ 0x0a32, 0x0a33,
+ 0x0a35, 0x0a36,
+ 0x0a38, 0x0a39,
+ 0x0a3e, 0x0a40,
+ 0x0a59, 0x0a5c,
+ 0x0a5e, 0x0a5e,
+ 0x0a66, 0x0a6f,
+ 0x0a72, 0x0a74,
+ 0x0a83, 0x0a83,
+ 0x0a85, 0x0a8d,
+ 0x0a8f, 0x0a91,
+ 0x0a93, 0x0aa8,
+ 0x0aaa, 0x0ab0,
+ 0x0ab2, 0x0ab3,
+ 0x0ab5, 0x0ab9,
+ 0x0abd, 0x0ac0,
+ 0x0ac9, 0x0ac9,
+ 0x0acb, 0x0acc,
+ 0x0ad0, 0x0ad0,
+ 0x0ae0, 0x0ae1,
+ 0x0ae6, 0x0aef,
+ 0x0af1, 0x0af1,
+ 0x0b02, 0x0b03,
+ 0x0b05, 0x0b0c,
+ 0x0b0f, 0x0b10,
+ 0x0b13, 0x0b28,
+ 0x0b2a, 0x0b30,
+ 0x0b32, 0x0b33,
+ 0x0b35, 0x0b39,
+ 0x0b3d, 0x0b3d,
+ 0x0b40, 0x0b40,
+ 0x0b47, 0x0b48,
+ 0x0b4b, 0x0b4c,
+ 0x0b5c, 0x0b5d,
+ 0x0b5f, 0x0b61,
+ 0x0b66, 0x0b77,
+ 0x0b83, 0x0b83,
+ 0x0b85, 0x0b8a,
+ 0x0b8e, 0x0b90,
+ 0x0b92, 0x0b95,
+ 0x0b99, 0x0b9a,
+ 0x0b9c, 0x0b9c,
+ 0x0b9e, 0x0b9f,
+ 0x0ba3, 0x0ba4,
+ 0x0ba8, 0x0baa,
+ 0x0bae, 0x0bb9,
+ 0x0bbf, 0x0bbf,
+ 0x0bc1, 0x0bc2,
+ 0x0bc6, 0x0bc8,
+ 0x0bca, 0x0bcc,
+ 0x0bd0, 0x0bd0,
+ 0x0be6, 0x0bfa,
+ 0x0c01, 0x0c03,
+ 0x0c05, 0x0c0c,
+ 0x0c0e, 0x0c10,
+ 0x0c12, 0x0c28,
+ 0x0c2a, 0x0c33,
+ 0x0c35, 0x0c39,
+ 0x0c3d, 0x0c3d,
+ 0x0c41, 0x0c44,
+ 0x0c58, 0x0c59,
+ 0x0c60, 0x0c61,
+ 0x0c66, 0x0c6f,
+ 0x0c78, 0x0c7f,
+ 0x0c82, 0x0c83,
+ 0x0c85, 0x0c8c,
+ 0x0c8e, 0x0c90,
+ 0x0c92, 0x0ca8,
+ 0x0caa, 0x0cb3,
+ 0x0cb5, 0x0cb9,
+ 0x0cbd, 0x0cbe,
+ 0x0cc0, 0x0cc1,
+ 0x0cc3, 0x0cc4,
+ 0x0cc7, 0x0cc8,
+ 0x0cca, 0x0ccb,
+ 0x0cde, 0x0cde,
+ 0x0ce0, 0x0ce1,
+ 0x0ce6, 0x0cef,
+ 0x0cf1, 0x0cf2,
+ 0x0d02, 0x0d03,
+ 0x0d05, 0x0d0c,
+ 0x0d0e, 0x0d10,
+ 0x0d12, 0x0d3a,
+ 0x0d3d, 0x0d3d,
+ 0x0d3f, 0x0d40,
+ 0x0d46, 0x0d48,
+ 0x0d4a, 0x0d4c,
+ 0x0d4e, 0x0d4e,
+ 0x0d60, 0x0d61,
+ 0x0d66, 0x0d75,
+ 0x0d79, 0x0d7f,
+ 0x0d82, 0x0d83,
+ 0x0d85, 0x0d96,
+ 0x0d9a, 0x0db1,
+ 0x0db3, 0x0dbb,
+ 0x0dbd, 0x0dbd,
+ 0x0dc0, 0x0dc6,
+ 0x0dd0, 0x0dd1,
+ 0x0dd8, 0x0dde,
+ 0x0df2, 0x0df4,
+ 0x0e01, 0x0e30,
+ 0x0e32, 0x0e33,
+ 0x0e3f, 0x0e46,
+ 0x0e4f, 0x0e5b,
+ 0x0e81, 0x0e82,
+ 0x0e84, 0x0e84,
+ 0x0e87, 0x0e88,
+ 0x0e8a, 0x0e8a,
+ 0x0e8d, 0x0e8d,
+ 0x0e94, 0x0e97,
+ 0x0e99, 0x0e9f,
+ 0x0ea1, 0x0ea3,
+ 0x0ea5, 0x0ea5,
+ 0x0ea7, 0x0ea7,
+ 0x0eaa, 0x0eab,
+ 0x0ead, 0x0eb0,
+ 0x0eb2, 0x0eb3,
+ 0x0ebd, 0x0ebd,
+ 0x0ec0, 0x0ec4,
+ 0x0ec6, 0x0ec6,
+ 0x0ed0, 0x0ed9,
+ 0x0edc, 0x0edd,
+ 0x0f00, 0x0f17,
+ 0x0f1a, 0x0f34,
+ 0x0f36, 0x0f36,
+ 0x0f38, 0x0f38,
+ 0x0f3a, 0x0f47,
+ 0x0f49, 0x0f6c,
+ 0x0f7f, 0x0f7f,
+ 0x0f85, 0x0f85,
+ 0x0f88, 0x0f8c,
+ 0x0fbe, 0x0fc5,
+ 0x0fc7, 0x0fcc,
+ 0x0fce, 0x0fda,
+ 0x1000, 0x102c,
+ 0x1031, 0x1031,
+ 0x1038, 0x1038,
+ 0x103b, 0x103c,
+ 0x103f, 0x1057,
+ 0x105a, 0x105d,
+ 0x1061, 0x1070,
+ 0x1075, 0x1081,
+ 0x1083, 0x1084,
+ 0x1087, 0x108c,
+ 0x108e, 0x109c,
+ 0x109e, 0x10c5,
+ 0x10d0, 0x10fc,
+ 0x1100, 0x1248,
+ 0x124a, 0x124d,
+ 0x1250, 0x1256,
+ 0x1258, 0x1258,
+ 0x125a, 0x125d,
+ 0x1260, 0x1288,
+ 0x128a, 0x128d,
+ 0x1290, 0x12b0,
+ 0x12b2, 0x12b5,
+ 0x12b8, 0x12be,
+ 0x12c0, 0x12c0,
+ 0x12c2, 0x12c5,
+ 0x12c8, 0x12d6,
+ 0x12d8, 0x1310,
+ 0x1312, 0x1315,
+ 0x1318, 0x135a,
+ 0x1360, 0x137c,
+ 0x1380, 0x1399,
+ 0x13a0, 0x13f4,
+ 0x1400, 0x169c,
+ 0x16a0, 0x16f0,
+ 0x1700, 0x170c,
+ 0x170e, 0x1711,
+ 0x1720, 0x1731,
+ 0x1735, 0x1736,
+ 0x1740, 0x1751,
+ 0x1760, 0x176c,
+ 0x176e, 0x1770,
+ 0x1780, 0x17b3,
+ 0x17b6, 0x17b6,
+ 0x17be, 0x17c5,
+ 0x17c7, 0x17c8,
+ 0x17d4, 0x17dc,
+ 0x17e0, 0x17e9,
+ 0x17f0, 0x17f9,
+ 0x1800, 0x180a,
+ 0x180e, 0x180e,
+ 0x1810, 0x1819,
+ 0x1820, 0x1877,
+ 0x1880, 0x18a8,
+ 0x18aa, 0x18aa,
+ 0x18b0, 0x18f5,
+ 0x1900, 0x191c,
+ 0x1923, 0x1926,
+ 0x1929, 0x192b,
+ 0x1930, 0x1931,
+ 0x1933, 0x1938,
+ 0x1940, 0x1940,
+ 0x1944, 0x196d,
+ 0x1970, 0x1974,
+ 0x1980, 0x19ab,
+ 0x19b0, 0x19c9,
+ 0x19d0, 0x19da,
+ 0x19de, 0x1a16,
+ 0x1a19, 0x1a1b,
+ 0x1a1e, 0x1a55,
+ 0x1a57, 0x1a57,
+ 0x1a61, 0x1a61,
+ 0x1a63, 0x1a64,
+ 0x1a6d, 0x1a72,
+ 0x1a80, 0x1a89,
+ 0x1a90, 0x1a99,
+ 0x1aa0, 0x1aad,
+ 0x1b04, 0x1b33,
+ 0x1b35, 0x1b35,
+ 0x1b3b, 0x1b3b,
+ 0x1b3d, 0x1b41,
+ 0x1b43, 0x1b4b,
+ 0x1b50, 0x1b6a,
+ 0x1b74, 0x1b7c,
+ 0x1b82, 0x1ba1,
+ 0x1ba6, 0x1ba7,
+ 0x1baa, 0x1baa,
+ 0x1bae, 0x1bb9,
+ 0x1bc0, 0x1be5,
+ 0x1be7, 0x1be7,
+ 0x1bea, 0x1bec,
+ 0x1bee, 0x1bee,
+ 0x1bf2, 0x1bf3,
+ 0x1bfc, 0x1c2b,
+ 0x1c34, 0x1c35,
+ 0x1c3b, 0x1c49,
+ 0x1c4d, 0x1c7f,
+ 0x1cd3, 0x1cd3,
+ 0x1ce1, 0x1ce1,
+ 0x1ce9, 0x1cec,
+ 0x1cee, 0x1cf2,
+ 0x1d00, 0x1dbf,
+ 0x1e00, 0x1f15,
+ 0x1f18, 0x1f1d,
+ 0x1f20, 0x1f45,
+ 0x1f48, 0x1f4d,
+ 0x1f50, 0x1f57,
+ 0x1f59, 0x1f59,
+ 0x1f5b, 0x1f5b,
+ 0x1f5d, 0x1f5d,
+ 0x1f5f, 0x1f7d,
+ 0x1f80, 0x1fb4,
+ 0x1fb6, 0x1fc4,
+ 0x1fc6, 0x1fd3,
+ 0x1fd6, 0x1fdb,
+ 0x1fdd, 0x1fef,
+ 0x1ff2, 0x1ff4,
+ 0x1ff6, 0x1ffe,
+ 0x2000, 0x200a,
+ 0x2010, 0x2027,
+ 0x202f, 0x205f,
+ 0x2070, 0x2071,
+ 0x2074, 0x208e,
+ 0x2090, 0x209c,
+ 0x20a0, 0x20b9,
+ 0x2100, 0x2189,
+ 0x2190, 0x23f3,
+ 0x2400, 0x2426,
+ 0x2440, 0x244a,
+ 0x2460, 0x26ff,
+ 0x2701, 0x27ca,
+ 0x27cc, 0x27cc,
+ 0x27ce, 0x2b4c,
+ 0x2b50, 0x2b59,
+ 0x2c00, 0x2c2e,
+ 0x2c30, 0x2c5e,
+ 0x2c60, 0x2cee,
+ 0x2cf9, 0x2d25,
+ 0x2d30, 0x2d65,
+ 0x2d6f, 0x2d70,
+ 0x2d80, 0x2d96,
+ 0x2da0, 0x2da6,
+ 0x2da8, 0x2dae,
+ 0x2db0, 0x2db6,
+ 0x2db8, 0x2dbe,
+ 0x2dc0, 0x2dc6,
+ 0x2dc8, 0x2dce,
+ 0x2dd0, 0x2dd6,
+ 0x2dd8, 0x2dde,
+ 0x2e00, 0x2e31,
+ 0x2e80, 0x2e99,
+ 0x2e9b, 0x2ef3,
+ 0x2f00, 0x2fd5,
+ 0x2ff0, 0x2ffb,
+ 0x3000, 0x3029,
+ 0x3030, 0x303f,
+ 0x3041, 0x3096,
+ 0x309b, 0x30ff,
+ 0x3105, 0x312d,
+ 0x3131, 0x318e,
+ 0x3190, 0x31ba,
+ 0x31c0, 0x31e3,
+ 0x31f0, 0x321e,
+ 0x3220, 0x32fe,
+ 0x3300, 0x4db5,
+ 0x4dc0, 0x9fcb,
+ 0xa000, 0xa48c,
+ 0xa490, 0xa4c6,
+ 0xa4d0, 0xa62b,
+ 0xa640, 0xa66e,
+ 0xa673, 0xa673,
+ 0xa67e, 0xa697,
+ 0xa6a0, 0xa6ef,
+ 0xa6f2, 0xa6f7,
+ 0xa700, 0xa78e,
+ 0xa790, 0xa791,
+ 0xa7a0, 0xa7a9,
+ 0xa7fa, 0xa801,
+ 0xa803, 0xa805,
+ 0xa807, 0xa80a,
+ 0xa80c, 0xa824,
+ 0xa827, 0xa82b,
+ 0xa830, 0xa839,
+ 0xa840, 0xa877,
+ 0xa880, 0xa8c3,
+ 0xa8ce, 0xa8d9,
+ 0xa8f2, 0xa8fb,
+ 0xa900, 0xa925,
+ 0xa92e, 0xa946,
+ 0xa952, 0xa953,
+ 0xa95f, 0xa97c,
+ 0xa983, 0xa9b2,
+ 0xa9b4, 0xa9b5,
+ 0xa9ba, 0xa9bb,
+ 0xa9bd, 0xa9cd,
+ 0xa9cf, 0xa9d9,
+ 0xa9de, 0xa9df,
+ 0xaa00, 0xaa28,
+ 0xaa2f, 0xaa30,
+ 0xaa33, 0xaa34,
+ 0xaa40, 0xaa42,
+ 0xaa44, 0xaa4b,
+ 0xaa4d, 0xaa4d,
+ 0xaa50, 0xaa59,
+ 0xaa5c, 0xaa7b,
+ 0xaa80, 0xaaaf,
+ 0xaab1, 0xaab1,
+ 0xaab5, 0xaab6,
+ 0xaab9, 0xaabd,
+ 0xaac0, 0xaac0,
+ 0xaac2, 0xaac2,
+ 0xaadb, 0xaadf,
+ 0xab01, 0xab06,
+ 0xab09, 0xab0e,
+ 0xab11, 0xab16,
+ 0xab20, 0xab26,
+ 0xab28, 0xab2e,
+ 0xabc0, 0xabe4,
+ 0xabe6, 0xabe7,
+ 0xabe9, 0xabec,
+ 0xabf0, 0xabf9,
+ 0xac00, 0xd7a3,
+ 0xd7b0, 0xd7c6,
+ 0xd7cb, 0xd7fb,
+ 0xf900, 0xfa2d,
+ 0xfa30, 0xfa6d,
+ 0xfa70, 0xfad9,
+ 0xfb00, 0xfb06,
+ 0xfb13, 0xfb17,
+ 0xfb1d, 0xfb1d,
+ 0xfb1f, 0xfb36,
+ 0xfb38, 0xfb3c,
+ 0xfb3e, 0xfb3e,
+ 0xfb40, 0xfb41,
+ 0xfb43, 0xfb44,
+ 0xfb46, 0xfbc1,
+ 0xfbd3, 0xfd3f,
+ 0xfd50, 0xfd8f,
+ 0xfd92, 0xfdc7,
+ 0xfdf0, 0xfdfd,
+ 0xfe10, 0xfe19,
+ 0xfe30, 0xfe52,
+ 0xfe54, 0xfe66,
+ 0xfe68, 0xfe6b,
+ 0xfe70, 0xfe74,
+ 0xfe76, 0xfefc,
+ 0xff01, 0xff9d,
+ 0xffa0, 0xffbe,
+ 0xffc2, 0xffc7,
+ 0xffca, 0xffcf,
+ 0xffd2, 0xffd7,
+ 0xffda, 0xffdc,
+ 0xffe0, 0xffe6,
+ 0xffe8, 0xffee,
+ 0xfffc, 0xfffd,
+ 0x10000, 0x1000b,
+ 0x1000d, 0x10026,
+ 0x10028, 0x1003a,
+ 0x1003c, 0x1003d,
+ 0x1003f, 0x1004d,
+ 0x10050, 0x1005d,
+ 0x10080, 0x100fa,
+ 0x10100, 0x10102,
+ 0x10107, 0x10133,
+ 0x10137, 0x1018a,
+ 0x10190, 0x1019b,
+ 0x101d0, 0x101fc,
+ 0x10280, 0x1029c,
+ 0x102a0, 0x102d0,
+ 0x10300, 0x1031e,
+ 0x10320, 0x10323,
+ 0x10330, 0x1034a,
+ 0x10380, 0x1039d,
+ 0x1039f, 0x103c3,
+ 0x103c8, 0x103d5,
+ 0x10400, 0x1049d,
+ 0x104a0, 0x104a9,
+ 0x10800, 0x10805,
+ 0x10808, 0x10808,
+ 0x1080a, 0x10835,
+ 0x10837, 0x10838,
+ 0x1083c, 0x1083c,
+ 0x1083f, 0x10855,
+ 0x10857, 0x1085f,
+ 0x10900, 0x1091b,
+ 0x1091f, 0x10939,
+ 0x1093f, 0x1093f,
+ 0x10a00, 0x10a00,
+ 0x10a10, 0x10a13,
+ 0x10a15, 0x10a17,
+ 0x10a19, 0x10a33,
+ 0x10a40, 0x10a47,
+ 0x10a50, 0x10a58,
+ 0x10a60, 0x10a7f,
+ 0x10b00, 0x10b35,
+ 0x10b39, 0x10b55,
+ 0x10b58, 0x10b72,
+ 0x10b78, 0x10b7f,
+ 0x10c00, 0x10c48,
+ 0x10e60, 0x10e7e,
+ 0x11000, 0x11000,
+ 0x11002, 0x11037,
+ 0x11047, 0x1104d,
+ 0x11052, 0x1106f,
+ 0x11082, 0x110b2,
+ 0x110b7, 0x110b8,
+ 0x110bb, 0x110bc,
+ 0x110be, 0x110c1,
+ 0x12000, 0x1236e,
+ 0x12400, 0x12462,
+ 0x12470, 0x12473,
+ 0x13000, 0x1342e,
+ 0x16800, 0x16a38,
+ 0x1b000, 0x1b001,
+ 0x1d000, 0x1d0f5,
+ 0x1d100, 0x1d126,
+ 0x1d129, 0x1d164,
+ 0x1d166, 0x1d166,
+ 0x1d16a, 0x1d16d,
+ 0x1d183, 0x1d184,
+ 0x1d18c, 0x1d1a9,
+ 0x1d1ae, 0x1d1dd,
+ 0x1d200, 0x1d241,
+ 0x1d245, 0x1d245,
+ 0x1d300, 0x1d356,
+ 0x1d360, 0x1d371,
+ 0x1d400, 0x1d454,
+ 0x1d456, 0x1d49c,
+ 0x1d49e, 0x1d49f,
+ 0x1d4a2, 0x1d4a2,
+ 0x1d4a5, 0x1d4a6,
+ 0x1d4a9, 0x1d4ac,
+ 0x1d4ae, 0x1d4b9,
+ 0x1d4bb, 0x1d4bb,
+ 0x1d4bd, 0x1d4c3,
+ 0x1d4c5, 0x1d505,
+ 0x1d507, 0x1d50a,
+ 0x1d50d, 0x1d514,
+ 0x1d516, 0x1d51c,
+ 0x1d51e, 0x1d539,
+ 0x1d53b, 0x1d53e,
+ 0x1d540, 0x1d544,
+ 0x1d546, 0x1d546,
+ 0x1d54a, 0x1d550,
+ 0x1d552, 0x1d6a5,
+ 0x1d6a8, 0x1d7cb,
+ 0x1d7ce, 0x1d7ff,
+ 0x1f000, 0x1f02b,
+ 0x1f030, 0x1f093,
+ 0x1f0a0, 0x1f0ae,
+ 0x1f0b1, 0x1f0be,
+ 0x1f0c1, 0x1f0cf,
+ 0x1f0d1, 0x1f0df,
+ 0x1f100, 0x1f10a,
+ 0x1f110, 0x1f12e,
+ 0x1f130, 0x1f169,
+ 0x1f170, 0x1f19a,
+ 0x1f1e6, 0x1f202,
+ 0x1f210, 0x1f23a,
+ 0x1f240, 0x1f248,
+ 0x1f250, 0x1f251,
+ 0x1f300, 0x1f320,
+ 0x1f330, 0x1f335,
+ 0x1f337, 0x1f37c,
+ 0x1f380, 0x1f393,
+ 0x1f3a0, 0x1f3c4,
+ 0x1f3c6, 0x1f3ca,
+ 0x1f3e0, 0x1f3f0,
+ 0x1f400, 0x1f43e,
+ 0x1f440, 0x1f440,
+ 0x1f442, 0x1f4f7,
+ 0x1f4f9, 0x1f4fc,
+ 0x1f500, 0x1f53d,
+ 0x1f550, 0x1f567,
+ 0x1f5fb, 0x1f5ff,
+ 0x1f601, 0x1f610,
+ 0x1f612, 0x1f614,
+ 0x1f616, 0x1f616,
+ 0x1f618, 0x1f618,
+ 0x1f61a, 0x1f61a,
+ 0x1f61c, 0x1f61e,
+ 0x1f620, 0x1f625,
+ 0x1f628, 0x1f62b,
+ 0x1f62d, 0x1f62d,
+ 0x1f630, 0x1f633,
+ 0x1f635, 0x1f640,
+ 0x1f645, 0x1f64f,
+ 0x1f680, 0x1f6c5,
+ 0x1f700, 0x1f773,
+ 0x20000, 0x2a6d6,
+ 0x2a700, 0x2b734,
+ 0x2b740, 0x2b81d,
+ 0x2f800, 0x2fa1d,
+}; /* CR_Grapheme_Base */
+
+/* 'Grapheme_Link': Derived Property */
+static const OnigCodePoint CR_Grapheme_Link[] = {
+ 29,
+ 0x094d, 0x094d,
+ 0x09cd, 0x09cd,
+ 0x0a4d, 0x0a4d,
+ 0x0acd, 0x0acd,
+ 0x0b4d, 0x0b4d,
+ 0x0bcd, 0x0bcd,
+ 0x0c4d, 0x0c4d,
+ 0x0ccd, 0x0ccd,
+ 0x0d4d, 0x0d4d,
+ 0x0dca, 0x0dca,
+ 0x0e3a, 0x0e3a,
+ 0x0f84, 0x0f84,
+ 0x1039, 0x103a,
+ 0x1714, 0x1714,
+ 0x1734, 0x1734,
+ 0x17d2, 0x17d2,
+ 0x1a60, 0x1a60,
+ 0x1b44, 0x1b44,
+ 0x1baa, 0x1baa,
+ 0x1bf2, 0x1bf3,
+ 0x2d7f, 0x2d7f,
+ 0xa806, 0xa806,
+ 0xa8c4, 0xa8c4,
+ 0xa953, 0xa953,
+ 0xa9c0, 0xa9c0,
+ 0xabed, 0xabed,
+ 0x10a3f, 0x10a3f,
+ 0x11046, 0x11046,
+ 0x110b9, 0x110b9,
+}; /* CR_Grapheme_Link */
+
+/* 'Common': Script */
+static const OnigCodePoint CR_Common[] = {
+ 169,
+ 0x0000, 0x0040,
+ 0x005b, 0x0060,
+ 0x007b, 0x00a9,
+ 0x00ab, 0x00b9,
+ 0x00bb, 0x00bf,
+ 0x00d7, 0x00d7,
+ 0x00f7, 0x00f7,
+ 0x02b9, 0x02df,
+ 0x02e5, 0x02e9,
+ 0x02ec, 0x02ff,
+ 0x0374, 0x0374,
+ 0x037e, 0x037e,
+ 0x0385, 0x0385,
+ 0x0387, 0x0387,
+ 0x0589, 0x0589,
+ 0x060c, 0x060c,
+ 0x061b, 0x061b,
+ 0x061f, 0x061f,
+ 0x0640, 0x0640,
+ 0x0660, 0x0669,
+ 0x06dd, 0x06dd,
+ 0x0964, 0x0965,
+ 0x0970, 0x0970,
+ 0x0e3f, 0x0e3f,
+ 0x0fd5, 0x0fd8,
+ 0x10fb, 0x10fb,
+ 0x16eb, 0x16ed,
+ 0x1735, 0x1736,
+ 0x1802, 0x1803,
+ 0x1805, 0x1805,
+ 0x1cd3, 0x1cd3,
+ 0x1ce1, 0x1ce1,
+ 0x1ce9, 0x1cec,
+ 0x1cee, 0x1cf2,
+ 0x2000, 0x200b,
+ 0x200e, 0x2064,
+ 0x206a, 0x2070,
+ 0x2074, 0x207e,
+ 0x2080, 0x208e,
+ 0x20a0, 0x20b9,
+ 0x2100, 0x2125,
+ 0x2127, 0x2129,
+ 0x212c, 0x2131,
+ 0x2133, 0x214d,
+ 0x214f, 0x215f,
+ 0x2189, 0x2189,
+ 0x2190, 0x23f3,
+ 0x2400, 0x2426,
+ 0x2440, 0x244a,
+ 0x2460, 0x26ff,
+ 0x2701, 0x27ca,
+ 0x27cc, 0x27cc,
+ 0x27ce, 0x27ff,
+ 0x2900, 0x2b4c,
+ 0x2b50, 0x2b59,
+ 0x2e00, 0x2e31,
+ 0x2ff0, 0x2ffb,
+ 0x3000, 0x3004,
+ 0x3006, 0x3006,
+ 0x3008, 0x3020,
+ 0x3030, 0x3037,
+ 0x303c, 0x303f,
+ 0x309b, 0x309c,
+ 0x30a0, 0x30a0,
+ 0x30fb, 0x30fc,
+ 0x3190, 0x319f,
+ 0x31c0, 0x31e3,
+ 0x3220, 0x325f,
+ 0x327f, 0x32cf,
+ 0x3358, 0x33ff,
+ 0x4dc0, 0x4dff,
+ 0xa700, 0xa721,
+ 0xa788, 0xa78a,
+ 0xa830, 0xa839,
+ 0xfd3e, 0xfd3f,
+ 0xfdfd, 0xfdfd,
+ 0xfe10, 0xfe19,
+ 0xfe30, 0xfe52,
+ 0xfe54, 0xfe66,
+ 0xfe68, 0xfe6b,
+ 0xfeff, 0xfeff,
+ 0xff01, 0xff20,
+ 0xff3b, 0xff40,
+ 0xff5b, 0xff65,
+ 0xff70, 0xff70,
+ 0xff9e, 0xff9f,
+ 0xffe0, 0xffe6,
+ 0xffe8, 0xffee,
+ 0xfff9, 0xfffd,
+ 0x10100, 0x10102,
+ 0x10107, 0x10133,
+ 0x10137, 0x1013f,
+ 0x10190, 0x1019b,
+ 0x101d0, 0x101fc,
+ 0x1d000, 0x1d0f5,
+ 0x1d100, 0x1d126,
+ 0x1d129, 0x1d166,
+ 0x1d16a, 0x1d17a,
+ 0x1d183, 0x1d184,
+ 0x1d18c, 0x1d1a9,
+ 0x1d1ae, 0x1d1dd,
+ 0x1d300, 0x1d356,
+ 0x1d360, 0x1d371,
+ 0x1d400, 0x1d454,
+ 0x1d456, 0x1d49c,
+ 0x1d49e, 0x1d49f,
+ 0x1d4a2, 0x1d4a2,
+ 0x1d4a5, 0x1d4a6,
+ 0x1d4a9, 0x1d4ac,
+ 0x1d4ae, 0x1d4b9,
+ 0x1d4bb, 0x1d4bb,
+ 0x1d4bd, 0x1d4c3,
+ 0x1d4c5, 0x1d505,
+ 0x1d507, 0x1d50a,
+ 0x1d50d, 0x1d514,
+ 0x1d516, 0x1d51c,
+ 0x1d51e, 0x1d539,
+ 0x1d53b, 0x1d53e,
+ 0x1d540, 0x1d544,
+ 0x1d546, 0x1d546,
+ 0x1d54a, 0x1d550,
+ 0x1d552, 0x1d6a5,
+ 0x1d6a8, 0x1d7cb,
+ 0x1d7ce, 0x1d7ff,
+ 0x1f000, 0x1f02b,
+ 0x1f030, 0x1f093,
+ 0x1f0a0, 0x1f0ae,
+ 0x1f0b1, 0x1f0be,
+ 0x1f0c1, 0x1f0cf,
+ 0x1f0d1, 0x1f0df,
+ 0x1f100, 0x1f10a,
+ 0x1f110, 0x1f12e,
+ 0x1f130, 0x1f169,
+ 0x1f170, 0x1f19a,
+ 0x1f1e6, 0x1f1ff,
+ 0x1f201, 0x1f202,
+ 0x1f210, 0x1f23a,
+ 0x1f240, 0x1f248,
+ 0x1f250, 0x1f251,
+ 0x1f300, 0x1f320,
+ 0x1f330, 0x1f335,
+ 0x1f337, 0x1f37c,
+ 0x1f380, 0x1f393,
+ 0x1f3a0, 0x1f3c4,
+ 0x1f3c6, 0x1f3ca,
+ 0x1f3e0, 0x1f3f0,
+ 0x1f400, 0x1f43e,
+ 0x1f440, 0x1f440,
+ 0x1f442, 0x1f4f7,
+ 0x1f4f9, 0x1f4fc,
+ 0x1f500, 0x1f53d,
+ 0x1f550, 0x1f567,
+ 0x1f5fb, 0x1f5ff,
+ 0x1f601, 0x1f610,
+ 0x1f612, 0x1f614,
+ 0x1f616, 0x1f616,
+ 0x1f618, 0x1f618,
+ 0x1f61a, 0x1f61a,
+ 0x1f61c, 0x1f61e,
+ 0x1f620, 0x1f625,
+ 0x1f628, 0x1f62b,
+ 0x1f62d, 0x1f62d,
+ 0x1f630, 0x1f633,
+ 0x1f635, 0x1f640,
+ 0x1f645, 0x1f64f,
+ 0x1f680, 0x1f6c5,
+ 0x1f700, 0x1f773,
+ 0xe0001, 0xe0001,
+ 0xe0020, 0xe007f,
+}; /* CR_Common */
+
+/* 'Latin': Script */
+static const OnigCodePoint CR_Latin[] = {
+ 30,
+ 0x0041, 0x005a,
+ 0x0061, 0x007a,
+ 0x00aa, 0x00aa,
+ 0x00ba, 0x00ba,
+ 0x00c0, 0x00d6,
+ 0x00d8, 0x00f6,
+ 0x00f8, 0x02b8,
+ 0x02e0, 0x02e4,
+ 0x1d00, 0x1d25,
+ 0x1d2c, 0x1d5c,
+ 0x1d62, 0x1d65,
+ 0x1d6b, 0x1d77,
+ 0x1d79, 0x1dbe,
+ 0x1e00, 0x1eff,
+ 0x2071, 0x2071,
+ 0x207f, 0x207f,
+ 0x2090, 0x209c,
+ 0x212a, 0x212b,
+ 0x2132, 0x2132,
+ 0x214e, 0x214e,
+ 0x2160, 0x2188,
+ 0x2c60, 0x2c7f,
+ 0xa722, 0xa787,
+ 0xa78b, 0xa78e,
+ 0xa790, 0xa791,
+ 0xa7a0, 0xa7a9,
+ 0xa7fa, 0xa7ff,
+ 0xfb00, 0xfb06,
+ 0xff21, 0xff3a,
+ 0xff41, 0xff5a,
+}; /* CR_Latin */
+
+/* 'Greek': Script */
+static const OnigCodePoint CR_Greek[] = {
+ 33,
+ 0x0370, 0x0373,
+ 0x0375, 0x0377,
+ 0x037a, 0x037d,
+ 0x0384, 0x0384,
+ 0x0386, 0x0386,
+ 0x0388, 0x038a,
+ 0x038c, 0x038c,
+ 0x038e, 0x03a1,
+ 0x03a3, 0x03e1,
+ 0x03f0, 0x03ff,
+ 0x1d26, 0x1d2a,
+ 0x1d5d, 0x1d61,
+ 0x1d66, 0x1d6a,
+ 0x1dbf, 0x1dbf,
+ 0x1f00, 0x1f15,
+ 0x1f18, 0x1f1d,
+ 0x1f20, 0x1f45,
+ 0x1f48, 0x1f4d,
+ 0x1f50, 0x1f57,
+ 0x1f59, 0x1f59,
+ 0x1f5b, 0x1f5b,
+ 0x1f5d, 0x1f5d,
+ 0x1f5f, 0x1f7d,
+ 0x1f80, 0x1fb4,
+ 0x1fb6, 0x1fc4,
+ 0x1fc6, 0x1fd3,
+ 0x1fd6, 0x1fdb,
+ 0x1fdd, 0x1fef,
+ 0x1ff2, 0x1ff4,
+ 0x1ff6, 0x1ffe,
+ 0x2126, 0x2126,
+ 0x10140, 0x1018a,
+ 0x1d200, 0x1d245,
+}; /* CR_Greek */
+
+/* 'Cyrillic': Script */
+static const OnigCodePoint CR_Cyrillic[] = {
+ 7,
+ 0x0400, 0x0484,
+ 0x0487, 0x0527,
+ 0x1d2b, 0x1d2b,
+ 0x1d78, 0x1d78,
+ 0x2de0, 0x2dff,
+ 0xa640, 0xa673,
+ 0xa67c, 0xa697,
+}; /* CR_Cyrillic */
+
+/* 'Armenian': Script */
+static const OnigCodePoint CR_Armenian[] = {
+ 5,
+ 0x0531, 0x0556,
+ 0x0559, 0x055f,
+ 0x0561, 0x0587,
+ 0x058a, 0x058a,
+ 0xfb13, 0xfb17,
+}; /* CR_Armenian */
+
+/* 'Hebrew': Script */
+static const OnigCodePoint CR_Hebrew[] = {
+ 9,
+ 0x0591, 0x05c7,
+ 0x05d0, 0x05ea,
+ 0x05f0, 0x05f4,
+ 0xfb1d, 0xfb36,
+ 0xfb38, 0xfb3c,
+ 0xfb3e, 0xfb3e,
+ 0xfb40, 0xfb41,
+ 0xfb43, 0xfb44,
+ 0xfb46, 0xfb4f,
+}; /* CR_Hebrew */
+
+/* 'Arabic': Script */
+static const OnigCodePoint CR_Arabic[] = {
+ 19,
+ 0x0600, 0x0603,
+ 0x0606, 0x060b,
+ 0x060d, 0x061a,
+ 0x061e, 0x061e,
+ 0x0620, 0x063f,
+ 0x0641, 0x064a,
+ 0x0656, 0x065e,
+ 0x066a, 0x066f,
+ 0x0671, 0x06dc,
+ 0x06de, 0x06ff,
+ 0x0750, 0x077f,
+ 0xfb50, 0xfbc1,
+ 0xfbd3, 0xfd3d,
+ 0xfd50, 0xfd8f,
+ 0xfd92, 0xfdc7,
+ 0xfdf0, 0xfdfc,
+ 0xfe70, 0xfe74,
+ 0xfe76, 0xfefc,
+ 0x10e60, 0x10e7e,
+}; /* CR_Arabic */
+
+/* 'Syriac': Script */
+static const OnigCodePoint CR_Syriac[] = {
+ 3,
+ 0x0700, 0x070d,
+ 0x070f, 0x074a,
+ 0x074d, 0x074f,
+}; /* CR_Syriac */
+
+/* 'Thaana': Script */
+static const OnigCodePoint CR_Thaana[] = {
+ 1,
+ 0x0780, 0x07b1,
+}; /* CR_Thaana */
+
+/* 'Devanagari': Script */
+static const OnigCodePoint CR_Devanagari[] = {
+ 6,
+ 0x0900, 0x0950,
+ 0x0953, 0x0963,
+ 0x0966, 0x096f,
+ 0x0971, 0x0977,
+ 0x0979, 0x097f,
+ 0xa8e0, 0xa8fb,
+}; /* CR_Devanagari */
+
+/* 'Bengali': Script */
+static const OnigCodePoint CR_Bengali[] = {
+ 14,
+ 0x0981, 0x0983,
+ 0x0985, 0x098c,
+ 0x098f, 0x0990,
+ 0x0993, 0x09a8,
+ 0x09aa, 0x09b0,
+ 0x09b2, 0x09b2,
+ 0x09b6, 0x09b9,
+ 0x09bc, 0x09c4,
+ 0x09c7, 0x09c8,
+ 0x09cb, 0x09ce,
+ 0x09d7, 0x09d7,
+ 0x09dc, 0x09dd,
+ 0x09df, 0x09e3,
+ 0x09e6, 0x09fb,
+}; /* CR_Bengali */
+
+/* 'Gurmukhi': Script */
+static const OnigCodePoint CR_Gurmukhi[] = {
+ 16,
+ 0x0a01, 0x0a03,
+ 0x0a05, 0x0a0a,
+ 0x0a0f, 0x0a10,
+ 0x0a13, 0x0a28,
+ 0x0a2a, 0x0a30,
+ 0x0a32, 0x0a33,
+ 0x0a35, 0x0a36,
+ 0x0a38, 0x0a39,
+ 0x0a3c, 0x0a3c,
+ 0x0a3e, 0x0a42,
+ 0x0a47, 0x0a48,
+ 0x0a4b, 0x0a4d,
+ 0x0a51, 0x0a51,
+ 0x0a59, 0x0a5c,
+ 0x0a5e, 0x0a5e,
+ 0x0a66, 0x0a75,
+}; /* CR_Gurmukhi */
+
+/* 'Gujarati': Script */
+static const OnigCodePoint CR_Gujarati[] = {
+ 14,
+ 0x0a81, 0x0a83,
+ 0x0a85, 0x0a8d,
+ 0x0a8f, 0x0a91,
+ 0x0a93, 0x0aa8,
+ 0x0aaa, 0x0ab0,
+ 0x0ab2, 0x0ab3,
+ 0x0ab5, 0x0ab9,
+ 0x0abc, 0x0ac5,
+ 0x0ac7, 0x0ac9,
+ 0x0acb, 0x0acd,
+ 0x0ad0, 0x0ad0,
+ 0x0ae0, 0x0ae3,
+ 0x0ae6, 0x0aef,
+ 0x0af1, 0x0af1,
+}; /* CR_Gujarati */
+
+/* 'Oriya': Script */
+static const OnigCodePoint CR_Oriya[] = {
+ 14,
+ 0x0b01, 0x0b03,
+ 0x0b05, 0x0b0c,
+ 0x0b0f, 0x0b10,
+ 0x0b13, 0x0b28,
+ 0x0b2a, 0x0b30,
+ 0x0b32, 0x0b33,
+ 0x0b35, 0x0b39,
+ 0x0b3c, 0x0b44,
+ 0x0b47, 0x0b48,
+ 0x0b4b, 0x0b4d,
+ 0x0b56, 0x0b57,
+ 0x0b5c, 0x0b5d,
+ 0x0b5f, 0x0b63,
+ 0x0b66, 0x0b77,
+}; /* CR_Oriya */
+
+/* 'Tamil': Script */
+static const OnigCodePoint CR_Tamil[] = {
+ 16,
+ 0x0b82, 0x0b83,
+ 0x0b85, 0x0b8a,
+ 0x0b8e, 0x0b90,
+ 0x0b92, 0x0b95,
+ 0x0b99, 0x0b9a,
+ 0x0b9c, 0x0b9c,
+ 0x0b9e, 0x0b9f,
+ 0x0ba3, 0x0ba4,
+ 0x0ba8, 0x0baa,
+ 0x0bae, 0x0bb9,
+ 0x0bbe, 0x0bc2,
+ 0x0bc6, 0x0bc8,
+ 0x0bca, 0x0bcd,
+ 0x0bd0, 0x0bd0,
+ 0x0bd7, 0x0bd7,
+ 0x0be6, 0x0bfa,
+}; /* CR_Tamil */
+
+/* 'Telugu': Script */
+static const OnigCodePoint CR_Telugu[] = {
+ 14,
+ 0x0c01, 0x0c03,
+ 0x0c05, 0x0c0c,
+ 0x0c0e, 0x0c10,
+ 0x0c12, 0x0c28,
+ 0x0c2a, 0x0c33,
+ 0x0c35, 0x0c39,
+ 0x0c3d, 0x0c44,
+ 0x0c46, 0x0c48,
+ 0x0c4a, 0x0c4d,
+ 0x0c55, 0x0c56,
+ 0x0c58, 0x0c59,
+ 0x0c60, 0x0c63,
+ 0x0c66, 0x0c6f,
+ 0x0c78, 0x0c7f,
+}; /* CR_Telugu */
+
+/* 'Kannada': Script */
+static const OnigCodePoint CR_Kannada[] = {
+ 14,
+ 0x0c82, 0x0c83,
+ 0x0c85, 0x0c8c,
+ 0x0c8e, 0x0c90,
+ 0x0c92, 0x0ca8,
+ 0x0caa, 0x0cb3,
+ 0x0cb5, 0x0cb9,
+ 0x0cbc, 0x0cc4,
+ 0x0cc6, 0x0cc8,
+ 0x0cca, 0x0ccd,
+ 0x0cd5, 0x0cd6,
+ 0x0cde, 0x0cde,
+ 0x0ce0, 0x0ce3,
+ 0x0ce6, 0x0cef,
+ 0x0cf1, 0x0cf2,
+}; /* CR_Kannada */
+
+/* 'Malayalam': Script */
+static const OnigCodePoint CR_Malayalam[] = {
+ 11,
+ 0x0d02, 0x0d03,
+ 0x0d05, 0x0d0c,
+ 0x0d0e, 0x0d10,
+ 0x0d12, 0x0d3a,
+ 0x0d3d, 0x0d44,
+ 0x0d46, 0x0d48,
+ 0x0d4a, 0x0d4e,
+ 0x0d57, 0x0d57,
+ 0x0d60, 0x0d63,
+ 0x0d66, 0x0d75,
+ 0x0d79, 0x0d7f,
+}; /* CR_Malayalam */
+
+/* 'Sinhala': Script */
+static const OnigCodePoint CR_Sinhala[] = {
+ 11,
+ 0x0d82, 0x0d83,
+ 0x0d85, 0x0d96,
+ 0x0d9a, 0x0db1,
+ 0x0db3, 0x0dbb,
+ 0x0dbd, 0x0dbd,
+ 0x0dc0, 0x0dc6,
+ 0x0dca, 0x0dca,
+ 0x0dcf, 0x0dd4,
+ 0x0dd6, 0x0dd6,
+ 0x0dd8, 0x0ddf,
+ 0x0df2, 0x0df4,
+}; /* CR_Sinhala */
+
+/* 'Thai': Script */
+static const OnigCodePoint CR_Thai[] = {
+ 2,
+ 0x0e01, 0x0e3a,
+ 0x0e40, 0x0e5b,
+}; /* CR_Thai */
+
+/* 'Lao': Script */
+static const OnigCodePoint CR_Lao[] = {
+ 18,
+ 0x0e81, 0x0e82,
+ 0x0e84, 0x0e84,
+ 0x0e87, 0x0e88,
+ 0x0e8a, 0x0e8a,
+ 0x0e8d, 0x0e8d,
+ 0x0e94, 0x0e97,
+ 0x0e99, 0x0e9f,
+ 0x0ea1, 0x0ea3,
+ 0x0ea5, 0x0ea5,
+ 0x0ea7, 0x0ea7,
+ 0x0eaa, 0x0eab,
+ 0x0ead, 0x0eb9,
+ 0x0ebb, 0x0ebd,
+ 0x0ec0, 0x0ec4,
+ 0x0ec6, 0x0ec6,
+ 0x0ec8, 0x0ecd,
+ 0x0ed0, 0x0ed9,
+ 0x0edc, 0x0edd,
+}; /* CR_Lao */
+
+/* 'Tibetan': Script */
+static const OnigCodePoint CR_Tibetan[] = {
+ 7,
+ 0x0f00, 0x0f47,
+ 0x0f49, 0x0f6c,
+ 0x0f71, 0x0f97,
+ 0x0f99, 0x0fbc,
+ 0x0fbe, 0x0fcc,
+ 0x0fce, 0x0fd4,
+ 0x0fd9, 0x0fda,
+}; /* CR_Tibetan */
+
+/* 'Myanmar': Script */
+static const OnigCodePoint CR_Myanmar[] = {
+ 2,
+ 0x1000, 0x109f,
+ 0xaa60, 0xaa7b,
+}; /* CR_Myanmar */
+
+/* 'Georgian': Script */
+static const OnigCodePoint CR_Georgian[] = {
+ 4,
+ 0x10a0, 0x10c5,
+ 0x10d0, 0x10fa,
+ 0x10fc, 0x10fc,
+ 0x2d00, 0x2d25,
+}; /* CR_Georgian */
+
+/* 'Hangul': Script */
+static const OnigCodePoint CR_Hangul[] = {
+ 14,
+ 0x1100, 0x11ff,
+ 0x302e, 0x302f,
+ 0x3131, 0x318e,
+ 0x3200, 0x321e,
+ 0x3260, 0x327e,
+ 0xa960, 0xa97c,
+ 0xac00, 0xd7a3,
+ 0xd7b0, 0xd7c6,
+ 0xd7cb, 0xd7fb,
+ 0xffa0, 0xffbe,
+ 0xffc2, 0xffc7,
+ 0xffca, 0xffcf,
+ 0xffd2, 0xffd7,
+ 0xffda, 0xffdc,
+}; /* CR_Hangul */
+
+/* 'Ethiopic': Script */
+static const OnigCodePoint CR_Ethiopic[] = {
+ 32,
+ 0x1200, 0x1248,
+ 0x124a, 0x124d,
+ 0x1250, 0x1256,
+ 0x1258, 0x1258,
+ 0x125a, 0x125d,
+ 0x1260, 0x1288,
+ 0x128a, 0x128d,
+ 0x1290, 0x12b0,
+ 0x12b2, 0x12b5,
+ 0x12b8, 0x12be,
+ 0x12c0, 0x12c0,
+ 0x12c2, 0x12c5,
+ 0x12c8, 0x12d6,
+ 0x12d8, 0x1310,
+ 0x1312, 0x1315,
+ 0x1318, 0x135a,
+ 0x135d, 0x137c,
+ 0x1380, 0x1399,
+ 0x2d80, 0x2d96,
+ 0x2da0, 0x2da6,
+ 0x2da8, 0x2dae,
+ 0x2db0, 0x2db6,
+ 0x2db8, 0x2dbe,
+ 0x2dc0, 0x2dc6,
+ 0x2dc8, 0x2dce,
+ 0x2dd0, 0x2dd6,
+ 0x2dd8, 0x2dde,
+ 0xab01, 0xab06,
+ 0xab09, 0xab0e,
+ 0xab11, 0xab16,
+ 0xab20, 0xab26,
+ 0xab28, 0xab2e,
+}; /* CR_Ethiopic */
+
+/* 'Cherokee': Script */
+static const OnigCodePoint CR_Cherokee[] = {
+ 1,
+ 0x13a0, 0x13f4,
+}; /* CR_Cherokee */
+
+/* 'Canadian_Aboriginal': Script */
+static const OnigCodePoint CR_Canadian_Aboriginal[] = {
+ 2,
+ 0x1400, 0x167f,
+ 0x18b0, 0x18f5,
+}; /* CR_Canadian_Aboriginal */
+
+/* 'Ogham': Script */
+static const OnigCodePoint CR_Ogham[] = {
+ 1,
+ 0x1680, 0x169c,
+}; /* CR_Ogham */
+
+/* 'Runic': Script */
+static const OnigCodePoint CR_Runic[] = {
+ 2,
+ 0x16a0, 0x16ea,
+ 0x16ee, 0x16f0,
+}; /* CR_Runic */
+
+/* 'Khmer': Script */
+static const OnigCodePoint CR_Khmer[] = {
+ 4,
+ 0x1780, 0x17dd,
+ 0x17e0, 0x17e9,
+ 0x17f0, 0x17f9,
+ 0x19e0, 0x19ff,
+}; /* CR_Khmer */
+
+/* 'Mongolian': Script */
+static const OnigCodePoint CR_Mongolian[] = {
+ 6,
+ 0x1800, 0x1801,
+ 0x1804, 0x1804,
+ 0x1806, 0x180e,
+ 0x1810, 0x1819,
+ 0x1820, 0x1877,
+ 0x1880, 0x18aa,
+}; /* CR_Mongolian */
+
+/* 'Hiragana': Script */
+static const OnigCodePoint CR_Hiragana[] = {
+ 4,
+ 0x3041, 0x3096,
+ 0x309d, 0x309f,
+ 0x1b001, 0x1b001,
+ 0x1f200, 0x1f200,
+}; /* CR_Hiragana */
+
+/* 'Katakana': Script */
+static const OnigCodePoint CR_Katakana[] = {
+ 8,
+ 0x30a1, 0x30fa,
+ 0x30fd, 0x30ff,
+ 0x31f0, 0x31ff,
+ 0x32d0, 0x32fe,
+ 0x3300, 0x3357,
+ 0xff66, 0xff6f,
+ 0xff71, 0xff9d,
+ 0x1b000, 0x1b000,
+}; /* CR_Katakana */
+
+/* 'Bopomofo': Script */
+static const OnigCodePoint CR_Bopomofo[] = {
+ 3,
+ 0x02ea, 0x02eb,
+ 0x3105, 0x312d,
+ 0x31a0, 0x31ba,
+}; /* CR_Bopomofo */
+
+/* 'Han': Script */
+static const OnigCodePoint CR_Han[] = {
+ 16,
+ 0x2e80, 0x2e99,
+ 0x2e9b, 0x2ef3,
+ 0x2f00, 0x2fd5,
+ 0x3005, 0x3005,
+ 0x3007, 0x3007,
+ 0x3021, 0x3029,
+ 0x3038, 0x303b,
+ 0x3400, 0x4db5,
+ 0x4e00, 0x9fcb,
+ 0xf900, 0xfa2d,
+ 0xfa30, 0xfa6d,
+ 0xfa70, 0xfad9,
+ 0x20000, 0x2a6d6,
+ 0x2a700, 0x2b734,
+ 0x2b740, 0x2b81d,
+ 0x2f800, 0x2fa1d,
+}; /* CR_Han */
+
+/* 'Yi': Script */
+static const OnigCodePoint CR_Yi[] = {
+ 2,
+ 0xa000, 0xa48c,
+ 0xa490, 0xa4c6,
+}; /* CR_Yi */
+
+/* 'Old_Italic': Script */
+static const OnigCodePoint CR_Old_Italic[] = {
+ 2,
+ 0x10300, 0x1031e,
+ 0x10320, 0x10323,
+}; /* CR_Old_Italic */
+
+/* 'Gothic': Script */
+static const OnigCodePoint CR_Gothic[] = {
+ 1,
+ 0x10330, 0x1034a,
+}; /* CR_Gothic */
+
+/* 'Deseret': Script */
+static const OnigCodePoint CR_Deseret[] = {
+ 1,
+ 0x10400, 0x1044f,
+}; /* CR_Deseret */
+
+/* 'Inherited': Script */
+static const OnigCodePoint CR_Inherited[] = {
+ 24,
+ 0x0300, 0x036f,
+ 0x0485, 0x0486,
+ 0x064b, 0x0655,
+ 0x065f, 0x065f,
+ 0x0670, 0x0670,
+ 0x0951, 0x0952,
+ 0x1cd0, 0x1cd2,
+ 0x1cd4, 0x1ce0,
+ 0x1ce2, 0x1ce8,
+ 0x1ced, 0x1ced,
+ 0x1dc0, 0x1de6,
+ 0x1dfc, 0x1dff,
+ 0x200c, 0x200d,
+ 0x20d0, 0x20f0,
+ 0x302a, 0x302d,
+ 0x3099, 0x309a,
+ 0xfe00, 0xfe0f,
+ 0xfe20, 0xfe26,
+ 0x101fd, 0x101fd,
+ 0x1d167, 0x1d169,
+ 0x1d17b, 0x1d182,
+ 0x1d185, 0x1d18b,
+ 0x1d1aa, 0x1d1ad,
+ 0xe0100, 0xe01ef,
+}; /* CR_Inherited */
+
+/* 'Tagalog': Script */
+static const OnigCodePoint CR_Tagalog[] = {
+ 2,
+ 0x1700, 0x170c,
+ 0x170e, 0x1714,
+}; /* CR_Tagalog */
+
+/* 'Hanunoo': Script */
+static const OnigCodePoint CR_Hanunoo[] = {
+ 1,
+ 0x1720, 0x1734,
+}; /* CR_Hanunoo */
+
+/* 'Buhid': Script */
+static const OnigCodePoint CR_Buhid[] = {
+ 1,
+ 0x1740, 0x1753,
+}; /* CR_Buhid */
+
+/* 'Tagbanwa': Script */
+static const OnigCodePoint CR_Tagbanwa[] = {
+ 3,
+ 0x1760, 0x176c,
+ 0x176e, 0x1770,
+ 0x1772, 0x1773,
+}; /* CR_Tagbanwa */
+
+/* 'Limbu': Script */
+static const OnigCodePoint CR_Limbu[] = {
+ 5,
+ 0x1900, 0x191c,
+ 0x1920, 0x192b,
+ 0x1930, 0x193b,
+ 0x1940, 0x1940,
+ 0x1944, 0x194f,
+}; /* CR_Limbu */
+
+/* 'Tai_Le': Script */
+static const OnigCodePoint CR_Tai_Le[] = {
+ 2,
+ 0x1950, 0x196d,
+ 0x1970, 0x1974,
+}; /* CR_Tai_Le */
+
+/* 'Linear_B': Script */
+static const OnigCodePoint CR_Linear_B[] = {
+ 7,
+ 0x10000, 0x1000b,
+ 0x1000d, 0x10026,
+ 0x10028, 0x1003a,
+ 0x1003c, 0x1003d,
+ 0x1003f, 0x1004d,
+ 0x10050, 0x1005d,
+ 0x10080, 0x100fa,
+}; /* CR_Linear_B */
+
+/* 'Ugaritic': Script */
+static const OnigCodePoint CR_Ugaritic[] = {
+ 2,
+ 0x10380, 0x1039d,
+ 0x1039f, 0x1039f,
+}; /* CR_Ugaritic */
+
+/* 'Shavian': Script */
+static const OnigCodePoint CR_Shavian[] = {
+ 1,
+ 0x10450, 0x1047f,
+}; /* CR_Shavian */
+
+/* 'Osmanya': Script */
+static const OnigCodePoint CR_Osmanya[] = {
+ 2,
+ 0x10480, 0x1049d,
+ 0x104a0, 0x104a9,
+}; /* CR_Osmanya */
+
+/* 'Cypriot': Script */
+static const OnigCodePoint CR_Cypriot[] = {
+ 6,
+ 0x10800, 0x10805,
+ 0x10808, 0x10808,
+ 0x1080a, 0x10835,
+ 0x10837, 0x10838,
+ 0x1083c, 0x1083c,
+ 0x1083f, 0x1083f,
+}; /* CR_Cypriot */
+
+/* 'Braille': Script */
+static const OnigCodePoint CR_Braille[] = {
+ 1,
+ 0x2800, 0x28ff,
+}; /* CR_Braille */
+
+/* 'Buginese': Script */
+static const OnigCodePoint CR_Buginese[] = {
+ 2,
+ 0x1a00, 0x1a1b,
+ 0x1a1e, 0x1a1f,
+}; /* CR_Buginese */
+
+/* 'Coptic': Script */
+static const OnigCodePoint CR_Coptic[] = {
+ 3,
+ 0x03e2, 0x03ef,
+ 0x2c80, 0x2cf1,
+ 0x2cf9, 0x2cff,
+}; /* CR_Coptic */
+
+/* 'New_Tai_Lue': Script */
+static const OnigCodePoint CR_New_Tai_Lue[] = {
+ 4,
+ 0x1980, 0x19ab,
+ 0x19b0, 0x19c9,
+ 0x19d0, 0x19da,
+ 0x19de, 0x19df,
+}; /* CR_New_Tai_Lue */
+
+/* 'Glagolitic': Script */
+static const OnigCodePoint CR_Glagolitic[] = {
+ 2,
+ 0x2c00, 0x2c2e,
+ 0x2c30, 0x2c5e,
+}; /* CR_Glagolitic */
+
+/* 'Tifinagh': Script */
+static const OnigCodePoint CR_Tifinagh[] = {
+ 3,
+ 0x2d30, 0x2d65,
+ 0x2d6f, 0x2d70,
+ 0x2d7f, 0x2d7f,
+}; /* CR_Tifinagh */
+
+/* 'Syloti_Nagri': Script */
+static const OnigCodePoint CR_Syloti_Nagri[] = {
+ 1,
+ 0xa800, 0xa82b,
+}; /* CR_Syloti_Nagri */
+
+/* 'Old_Persian': Script */
+static const OnigCodePoint CR_Old_Persian[] = {
+ 2,
+ 0x103a0, 0x103c3,
+ 0x103c8, 0x103d5,
+}; /* CR_Old_Persian */
+
+/* 'Kharoshthi': Script */
+static const OnigCodePoint CR_Kharoshthi[] = {
+ 8,
+ 0x10a00, 0x10a03,
+ 0x10a05, 0x10a06,
+ 0x10a0c, 0x10a13,
+ 0x10a15, 0x10a17,
+ 0x10a19, 0x10a33,
+ 0x10a38, 0x10a3a,
+ 0x10a3f, 0x10a47,
+ 0x10a50, 0x10a58,
+}; /* CR_Kharoshthi */
+
+/* 'Balinese': Script */
+static const OnigCodePoint CR_Balinese[] = {
+ 2,
+ 0x1b00, 0x1b4b,
+ 0x1b50, 0x1b7c,
+}; /* CR_Balinese */
+
+/* 'Cuneiform': Script */
+static const OnigCodePoint CR_Cuneiform[] = {
+ 3,
+ 0x12000, 0x1236e,
+ 0x12400, 0x12462,
+ 0x12470, 0x12473,
+}; /* CR_Cuneiform */
+
+/* 'Phoenician': Script */
+static const OnigCodePoint CR_Phoenician[] = {
+ 2,
+ 0x10900, 0x1091b,
+ 0x1091f, 0x1091f,
+}; /* CR_Phoenician */
+
+/* 'Phags_Pa': Script */
+static const OnigCodePoint CR_Phags_Pa[] = {
+ 1,
+ 0xa840, 0xa877,
+}; /* CR_Phags_Pa */
+
+/* 'Nko': Script */
+static const OnigCodePoint CR_Nko[] = {
+ 1,
+ 0x07c0, 0x07fa,
+}; /* CR_Nko */
+
+/* 'Sundanese': Script */
+static const OnigCodePoint CR_Sundanese[] = {
+ 2,
+ 0x1b80, 0x1baa,
+ 0x1bae, 0x1bb9,
+}; /* CR_Sundanese */
+
+/* 'Lepcha': Script */
+static const OnigCodePoint CR_Lepcha[] = {
+ 3,
+ 0x1c00, 0x1c37,
+ 0x1c3b, 0x1c49,
+ 0x1c4d, 0x1c4f,
+}; /* CR_Lepcha */
+
+/* 'Ol_Chiki': Script */
+static const OnigCodePoint CR_Ol_Chiki[] = {
+ 1,
+ 0x1c50, 0x1c7f,
+}; /* CR_Ol_Chiki */
+
+/* 'Vai': Script */
+static const OnigCodePoint CR_Vai[] = {
+ 1,
+ 0xa500, 0xa62b,
+}; /* CR_Vai */
+
+/* 'Saurashtra': Script */
+static const OnigCodePoint CR_Saurashtra[] = {
+ 2,
+ 0xa880, 0xa8c4,
+ 0xa8ce, 0xa8d9,
+}; /* CR_Saurashtra */
+
+/* 'Kayah_Li': Script */
+static const OnigCodePoint CR_Kayah_Li[] = {
+ 1,
+ 0xa900, 0xa92f,
+}; /* CR_Kayah_Li */
+
+/* 'Rejang': Script */
+static const OnigCodePoint CR_Rejang[] = {
+ 2,
+ 0xa930, 0xa953,
+ 0xa95f, 0xa95f,
+}; /* CR_Rejang */
+
+/* 'Lycian': Script */
+static const OnigCodePoint CR_Lycian[] = {
+ 1,
+ 0x10280, 0x1029c,
+}; /* CR_Lycian */
+
+/* 'Carian': Script */
+static const OnigCodePoint CR_Carian[] = {
+ 1,
+ 0x102a0, 0x102d0,
+}; /* CR_Carian */
+
+/* 'Lydian': Script */
+static const OnigCodePoint CR_Lydian[] = {
+ 2,
+ 0x10920, 0x10939,
+ 0x1093f, 0x1093f,
+}; /* CR_Lydian */
+
+/* 'Cham': Script */
+static const OnigCodePoint CR_Cham[] = {
+ 4,
+ 0xaa00, 0xaa36,
+ 0xaa40, 0xaa4d,
+ 0xaa50, 0xaa59,
+ 0xaa5c, 0xaa5f,
+}; /* CR_Cham */
+
+/* 'Tai_Tham': Script */
+static const OnigCodePoint CR_Tai_Tham[] = {
+ 5,
+ 0x1a20, 0x1a5e,
+ 0x1a60, 0x1a7c,
+ 0x1a7f, 0x1a89,
+ 0x1a90, 0x1a99,
+ 0x1aa0, 0x1aad,
+}; /* CR_Tai_Tham */
+
+/* 'Tai_Viet': Script */
+static const OnigCodePoint CR_Tai_Viet[] = {
+ 2,
+ 0xaa80, 0xaac2,
+ 0xaadb, 0xaadf,
+}; /* CR_Tai_Viet */
+
+/* 'Avestan': Script */
+static const OnigCodePoint CR_Avestan[] = {
+ 2,
+ 0x10b00, 0x10b35,
+ 0x10b39, 0x10b3f,
+}; /* CR_Avestan */
+
+/* 'Egyptian_Hieroglyphs': Script */
+static const OnigCodePoint CR_Egyptian_Hieroglyphs[] = {
+ 1,
+ 0x13000, 0x1342e,
+}; /* CR_Egyptian_Hieroglyphs */
+
+/* 'Samaritan': Script */
+static const OnigCodePoint CR_Samaritan[] = {
+ 2,
+ 0x0800, 0x082d,
+ 0x0830, 0x083e,
+}; /* CR_Samaritan */
+
+/* 'Lisu': Script */
+static const OnigCodePoint CR_Lisu[] = {
+ 1,
+ 0xa4d0, 0xa4ff,
+}; /* CR_Lisu */
+
+/* 'Bamum': Script */
+static const OnigCodePoint CR_Bamum[] = {
+ 2,
+ 0xa6a0, 0xa6f7,
+ 0x16800, 0x16a38,
+}; /* CR_Bamum */
+
+/* 'Javanese': Script */
+static const OnigCodePoint CR_Javanese[] = {
+ 3,
+ 0xa980, 0xa9cd,
+ 0xa9cf, 0xa9d9,
+ 0xa9de, 0xa9df,
+}; /* CR_Javanese */
+
+/* 'Meetei_Mayek': Script */
+static const OnigCodePoint CR_Meetei_Mayek[] = {
+ 2,
+ 0xabc0, 0xabed,
+ 0xabf0, 0xabf9,
+}; /* CR_Meetei_Mayek */
+
+/* 'Imperial_Aramaic': Script */
+static const OnigCodePoint CR_Imperial_Aramaic[] = {
+ 2,
+ 0x10840, 0x10855,
+ 0x10857, 0x1085f,
+}; /* CR_Imperial_Aramaic */
+
+/* 'Old_South_Arabian': Script */
+static const OnigCodePoint CR_Old_South_Arabian[] = {
+ 1,
+ 0x10a60, 0x10a7f,
+}; /* CR_Old_South_Arabian */
+
+/* 'Inscriptional_Parthian': Script */
+static const OnigCodePoint CR_Inscriptional_Parthian[] = {
+ 2,
+ 0x10b40, 0x10b55,
+ 0x10b58, 0x10b5f,
+}; /* CR_Inscriptional_Parthian */
+
+/* 'Inscriptional_Pahlavi': Script */
+static const OnigCodePoint CR_Inscriptional_Pahlavi[] = {
+ 2,
+ 0x10b60, 0x10b72,
+ 0x10b78, 0x10b7f,
+}; /* CR_Inscriptional_Pahlavi */
+
+/* 'Old_Turkic': Script */
+static const OnigCodePoint CR_Old_Turkic[] = {
+ 1,
+ 0x10c00, 0x10c48,
+}; /* CR_Old_Turkic */
+
+/* 'Kaithi': Script */
+static const OnigCodePoint CR_Kaithi[] = {
+ 1,
+ 0x11080, 0x110c1,
+}; /* CR_Kaithi */
+
+/* 'Batak': Script */
+static const OnigCodePoint CR_Batak[] = {
+ 2,
+ 0x1bc0, 0x1bf3,
+ 0x1bfc, 0x1bff,
+}; /* CR_Batak */
+
+/* 'Brahmi': Script */
+static const OnigCodePoint CR_Brahmi[] = {
+ 2,
+ 0x11000, 0x1104d,
+ 0x11052, 0x1106f,
+}; /* CR_Brahmi */
+
+/* 'Mandaic': Script */
+static const OnigCodePoint CR_Mandaic[] = {
+ 2,
+ 0x0840, 0x085b,
+ 0x085e, 0x085e,
+}; /* CR_Mandaic */
+
+/* 'White_Space': Binary Property */
+static const OnigCodePoint CR_White_Space[] = {
+ 11,
+ 0x0009, 0x000d,
+ 0x0020, 0x0020,
+ 0x0085, 0x0085,
+ 0x00a0, 0x00a0,
+ 0x1680, 0x1680,
+ 0x180e, 0x180e,
+ 0x2000, 0x200a,
+ 0x2028, 0x2029,
+ 0x202f, 0x202f,
+ 0x205f, 0x205f,
+ 0x3000, 0x3000,
+}; /* CR_White_Space */
+
+/* 'Bidi_Control': Binary Property */
+static const OnigCodePoint CR_Bidi_Control[] = {
+ 2,
+ 0x200e, 0x200f,
+ 0x202a, 0x202e,
+}; /* CR_Bidi_Control */
+
+/* 'Join_Control': Binary Property */
+static const OnigCodePoint CR_Join_Control[] = {
+ 1,
+ 0x200c, 0x200d,
+}; /* CR_Join_Control */
+
+/* 'Dash': Binary Property */
+static const OnigCodePoint CR_Dash[] = {
+ 19,
+ 0x002d, 0x002d,
+ 0x058a, 0x058a,
+ 0x05be, 0x05be,
+ 0x1400, 0x1400,
+ 0x1806, 0x1806,
+ 0x2010, 0x2015,
+ 0x2053, 0x2053,
+ 0x207b, 0x207b,
+ 0x208b, 0x208b,
+ 0x2212, 0x2212,
+ 0x2e17, 0x2e17,
+ 0x2e1a, 0x2e1a,
+ 0x301c, 0x301c,
+ 0x3030, 0x3030,
+ 0x30a0, 0x30a0,
+ 0xfe31, 0xfe32,
+ 0xfe58, 0xfe58,
+ 0xfe63, 0xfe63,
+ 0xff0d, 0xff0d,
+}; /* CR_Dash */
+
+/* 'Hyphen': Binary Property */
+static const OnigCodePoint CR_Hyphen[] = {
+ 10,
+ 0x002d, 0x002d,
+ 0x00ad, 0x00ad,
+ 0x058a, 0x058a,
+ 0x1806, 0x1806,
+ 0x2010, 0x2011,
+ 0x2e17, 0x2e17,
+ 0x30fb, 0x30fb,
+ 0xfe63, 0xfe63,
+ 0xff0d, 0xff0d,
+ 0xff65, 0xff65,
+}; /* CR_Hyphen */
+
+/* 'Quotation_Mark': Binary Property */
+static const OnigCodePoint CR_Quotation_Mark[] = {
+ 12,
+ 0x0022, 0x0022,
+ 0x0027, 0x0027,
+ 0x00ab, 0x00ab,
+ 0x00bb, 0x00bb,
+ 0x2018, 0x201f,
+ 0x2039, 0x203a,
+ 0x300c, 0x300f,
+ 0x301d, 0x301f,
+ 0xfe41, 0xfe44,
+ 0xff02, 0xff02,
+ 0xff07, 0xff07,
+ 0xff62, 0xff63,
+}; /* CR_Quotation_Mark */
+
+/* 'Terminal_Punctuation': Binary Property */
+static const OnigCodePoint CR_Terminal_Punctuation[] = {
+ 67,
+ 0x0021, 0x0021,
+ 0x002c, 0x002c,
+ 0x002e, 0x002e,
+ 0x003a, 0x003b,
+ 0x003f, 0x003f,
+ 0x037e, 0x037e,
+ 0x0387, 0x0387,
+ 0x0589, 0x0589,
+ 0x05c3, 0x05c3,
+ 0x060c, 0x060c,
+ 0x061b, 0x061b,
+ 0x061f, 0x061f,
+ 0x06d4, 0x06d4,
+ 0x0700, 0x070a,
+ 0x070c, 0x070c,
+ 0x07f8, 0x07f9,
+ 0x0830, 0x083e,
+ 0x085e, 0x085e,
+ 0x0964, 0x0965,
+ 0x0e5a, 0x0e5b,
+ 0x0f08, 0x0f08,
+ 0x0f0d, 0x0f12,
+ 0x104a, 0x104b,
+ 0x1361, 0x1368,
+ 0x166d, 0x166e,
+ 0x16eb, 0x16ed,
+ 0x17d4, 0x17d6,
+ 0x17da, 0x17da,
+ 0x1802, 0x1805,
+ 0x1808, 0x1809,
+ 0x1944, 0x1945,
+ 0x1aa8, 0x1aab,
+ 0x1b5a, 0x1b5b,
+ 0x1b5d, 0x1b5f,
+ 0x1c3b, 0x1c3f,
+ 0x1c7e, 0x1c7f,
+ 0x203c, 0x203d,
+ 0x2047, 0x2049,
+ 0x2e2e, 0x2e2e,
+ 0x3001, 0x3002,
+ 0xa4fe, 0xa4ff,
+ 0xa60d, 0xa60f,
+ 0xa6f3, 0xa6f7,
+ 0xa876, 0xa877,
+ 0xa8ce, 0xa8cf,
+ 0xa92f, 0xa92f,
+ 0xa9c7, 0xa9c9,
+ 0xaa5d, 0xaa5f,
+ 0xaadf, 0xaadf,
+ 0xabeb, 0xabeb,
+ 0xfe50, 0xfe52,
+ 0xfe54, 0xfe57,
+ 0xff01, 0xff01,
+ 0xff0c, 0xff0c,
+ 0xff0e, 0xff0e,
+ 0xff1a, 0xff1b,
+ 0xff1f, 0xff1f,
+ 0xff61, 0xff61,
+ 0xff64, 0xff64,
+ 0x1039f, 0x1039f,
+ 0x103d0, 0x103d0,
+ 0x10857, 0x10857,
+ 0x1091f, 0x1091f,
+ 0x10b3a, 0x10b3f,
+ 0x11047, 0x1104d,
+ 0x110be, 0x110c1,
+ 0x12470, 0x12473,
+}; /* CR_Terminal_Punctuation */
+
+/* 'Other_Math': Binary Property */
+static const OnigCodePoint CR_Other_Math[] = {
+ 100,
+ 0x005e, 0x005e,
+ 0x03d0, 0x03d2,
+ 0x03d5, 0x03d5,
+ 0x03f0, 0x03f1,
+ 0x03f4, 0x03f5,
+ 0x2016, 0x2016,
+ 0x2032, 0x2034,
+ 0x2040, 0x2040,
+ 0x2061, 0x2064,
+ 0x207d, 0x207e,
+ 0x208d, 0x208e,
+ 0x20d0, 0x20dc,
+ 0x20e1, 0x20e1,
+ 0x20e5, 0x20e6,
+ 0x20eb, 0x20ef,
+ 0x2102, 0x2102,
+ 0x2107, 0x2107,
+ 0x210a, 0x2113,
+ 0x2115, 0x2115,
+ 0x2119, 0x211d,
+ 0x2124, 0x2124,
+ 0x2128, 0x2129,
+ 0x212c, 0x212d,
+ 0x212f, 0x2131,
+ 0x2133, 0x2138,
+ 0x213c, 0x213f,
+ 0x2145, 0x2149,
+ 0x2195, 0x2199,
+ 0x219c, 0x219f,
+ 0x21a1, 0x21a2,
+ 0x21a4, 0x21a5,
+ 0x21a7, 0x21a7,
+ 0x21a9, 0x21ad,
+ 0x21b0, 0x21b1,
+ 0x21b6, 0x21b7,
+ 0x21bc, 0x21cd,
+ 0x21d0, 0x21d1,
+ 0x21d3, 0x21d3,
+ 0x21d5, 0x21db,
+ 0x21dd, 0x21dd,
+ 0x21e4, 0x21e5,
+ 0x23b4, 0x23b5,
+ 0x23b7, 0x23b7,
+ 0x23d0, 0x23d0,
+ 0x23e2, 0x23e2,
+ 0x25a0, 0x25a1,
+ 0x25ae, 0x25b6,
+ 0x25bc, 0x25c0,
+ 0x25c6, 0x25c7,
+ 0x25ca, 0x25cb,
+ 0x25cf, 0x25d3,
+ 0x25e2, 0x25e2,
+ 0x25e4, 0x25e4,
+ 0x25e7, 0x25ec,
+ 0x2605, 0x2606,
+ 0x2640, 0x2640,
+ 0x2642, 0x2642,
+ 0x2660, 0x2663,
+ 0x266d, 0x266e,
+ 0x27c5, 0x27c6,
+ 0x27e6, 0x27ef,
+ 0x2983, 0x2998,
+ 0x29d8, 0x29db,
+ 0x29fc, 0x29fd,
+ 0xfe61, 0xfe61,
+ 0xfe63, 0xfe63,
+ 0xfe68, 0xfe68,
+ 0xff3c, 0xff3c,
+ 0xff3e, 0xff3e,
+ 0x1d400, 0x1d454,
+ 0x1d456, 0x1d49c,
+ 0x1d49e, 0x1d49f,
+ 0x1d4a2, 0x1d4a2,
+ 0x1d4a5, 0x1d4a6,
+ 0x1d4a9, 0x1d4ac,
+ 0x1d4ae, 0x1d4b9,
+ 0x1d4bb, 0x1d4bb,
+ 0x1d4bd, 0x1d4c3,
+ 0x1d4c5, 0x1d505,
+ 0x1d507, 0x1d50a,
+ 0x1d50d, 0x1d514,
+ 0x1d516, 0x1d51c,
+ 0x1d51e, 0x1d539,
+ 0x1d53b, 0x1d53e,
+ 0x1d540, 0x1d544,
+ 0x1d546, 0x1d546,
+ 0x1d54a, 0x1d550,
+ 0x1d552, 0x1d6a5,
+ 0x1d6a8, 0x1d6c0,
+ 0x1d6c2, 0x1d6da,
+ 0x1d6dc, 0x1d6fa,
+ 0x1d6fc, 0x1d714,
+ 0x1d716, 0x1d734,
+ 0x1d736, 0x1d74e,
+ 0x1d750, 0x1d76e,
+ 0x1d770, 0x1d788,
+ 0x1d78a, 0x1d7a8,
+ 0x1d7aa, 0x1d7c2,
+ 0x1d7c4, 0x1d7cb,
+ 0x1d7ce, 0x1d7ff,
+}; /* CR_Other_Math */
+
+/* 'Hex_Digit': Binary Property */
+static const OnigCodePoint CR_Hex_Digit[] = {
+ 6,
+ 0x0030, 0x0039,
+ 0x0041, 0x0046,
+ 0x0061, 0x0066,
+ 0xff10, 0xff19,
+ 0xff21, 0xff26,
+ 0xff41, 0xff46,
+}; /* CR_Hex_Digit */
+
+/* 'ASCII_Hex_Digit': Binary Property */
+static const OnigCodePoint CR_ASCII_Hex_Digit[] = {
+ 3,
+ 0x0030, 0x0039,
+ 0x0041, 0x0046,
+ 0x0061, 0x0066,
+}; /* CR_ASCII_Hex_Digit */
+
+/* 'Other_Alphabetic': Binary Property */
+static const OnigCodePoint CR_Other_Alphabetic[] = {
+ 145,
+ 0x0345, 0x0345,
+ 0x05b0, 0x05bd,
+ 0x05bf, 0x05bf,
+ 0x05c1, 0x05c2,
+ 0x05c4, 0x05c5,
+ 0x05c7, 0x05c7,
+ 0x0610, 0x061a,
+ 0x064b, 0x0657,
+ 0x0659, 0x065f,
+ 0x0670, 0x0670,
+ 0x06d6, 0x06dc,
+ 0x06e1, 0x06e4,
+ 0x06e7, 0x06e8,
+ 0x06ed, 0x06ed,
+ 0x0711, 0x0711,
+ 0x0730, 0x073f,
+ 0x07a6, 0x07b0,
+ 0x0816, 0x0817,
+ 0x081b, 0x0823,
+ 0x0825, 0x0827,
+ 0x0829, 0x082c,
+ 0x0900, 0x0903,
+ 0x093a, 0x093b,
+ 0x093e, 0x094c,
+ 0x094e, 0x094f,
+ 0x0955, 0x0957,
+ 0x0962, 0x0963,
+ 0x0981, 0x0983,
+ 0x09be, 0x09c4,
+ 0x09c7, 0x09c8,
+ 0x09cb, 0x09cc,
+ 0x09d7, 0x09d7,
+ 0x09e2, 0x09e3,
+ 0x0a01, 0x0a03,
+ 0x0a3e, 0x0a42,
+ 0x0a47, 0x0a48,
+ 0x0a4b, 0x0a4c,
+ 0x0a51, 0x0a51,
+ 0x0a70, 0x0a71,
+ 0x0a75, 0x0a75,
+ 0x0a81, 0x0a83,
+ 0x0abe, 0x0ac5,
+ 0x0ac7, 0x0ac9,
+ 0x0acb, 0x0acc,
+ 0x0ae2, 0x0ae3,
+ 0x0b01, 0x0b03,
+ 0x0b3e, 0x0b44,
+ 0x0b47, 0x0b48,
+ 0x0b4b, 0x0b4c,
+ 0x0b56, 0x0b57,
+ 0x0b62, 0x0b63,
+ 0x0b82, 0x0b82,
+ 0x0bbe, 0x0bc2,
+ 0x0bc6, 0x0bc8,
+ 0x0bca, 0x0bcc,
+ 0x0bd7, 0x0bd7,
+ 0x0c01, 0x0c03,
+ 0x0c3e, 0x0c44,
+ 0x0c46, 0x0c48,
+ 0x0c4a, 0x0c4c,
+ 0x0c55, 0x0c56,
+ 0x0c62, 0x0c63,
+ 0x0c82, 0x0c83,
+ 0x0cbe, 0x0cc4,
+ 0x0cc6, 0x0cc8,
+ 0x0cca, 0x0ccc,
+ 0x0cd5, 0x0cd6,
+ 0x0ce2, 0x0ce3,
+ 0x0d02, 0x0d03,
+ 0x0d3e, 0x0d44,
+ 0x0d46, 0x0d48,
+ 0x0d4a, 0x0d4c,
+ 0x0d57, 0x0d57,
+ 0x0d62, 0x0d63,
+ 0x0d82, 0x0d83,
+ 0x0dcf, 0x0dd4,
+ 0x0dd6, 0x0dd6,
+ 0x0dd8, 0x0ddf,
+ 0x0df2, 0x0df3,
+ 0x0e31, 0x0e31,
+ 0x0e34, 0x0e3a,
+ 0x0e4d, 0x0e4d,
+ 0x0eb1, 0x0eb1,
+ 0x0eb4, 0x0eb9,
+ 0x0ebb, 0x0ebc,
+ 0x0ecd, 0x0ecd,
+ 0x0f71, 0x0f81,
+ 0x0f8d, 0x0f97,
+ 0x0f99, 0x0fbc,
+ 0x102b, 0x1036,
+ 0x1038, 0x1038,
+ 0x103b, 0x103e,
+ 0x1056, 0x1059,
+ 0x105e, 0x1060,
+ 0x1062, 0x1062,
+ 0x1067, 0x1068,
+ 0x1071, 0x1074,
+ 0x1082, 0x1086,
+ 0x109c, 0x109d,
+ 0x135f, 0x135f,
+ 0x1712, 0x1713,
+ 0x1732, 0x1733,
+ 0x1752, 0x1753,
+ 0x1772, 0x1773,
+ 0x17b6, 0x17c8,
+ 0x18a9, 0x18a9,
+ 0x1920, 0x192b,
+ 0x1930, 0x1938,
+ 0x19b0, 0x19c0,
+ 0x19c8, 0x19c9,
+ 0x1a17, 0x1a1b,
+ 0x1a55, 0x1a5e,
+ 0x1a61, 0x1a74,
+ 0x1b00, 0x1b04,
+ 0x1b35, 0x1b43,
+ 0x1b80, 0x1b82,
+ 0x1ba1, 0x1ba9,
+ 0x1be7, 0x1bf1,
+ 0x1c24, 0x1c35,
+ 0x1cf2, 0x1cf2,
+ 0x24b6, 0x24e9,
+ 0x2de0, 0x2dff,
+ 0xa823, 0xa827,
+ 0xa880, 0xa881,
+ 0xa8b4, 0xa8c3,
+ 0xa926, 0xa92a,
+ 0xa947, 0xa952,
+ 0xa980, 0xa983,
+ 0xa9b4, 0xa9bf,
+ 0xaa29, 0xaa36,
+ 0xaa43, 0xaa43,
+ 0xaa4c, 0xaa4d,
+ 0xaab0, 0xaab0,
+ 0xaab2, 0xaab4,
+ 0xaab7, 0xaab8,
+ 0xaabe, 0xaabe,
+ 0xabe3, 0xabea,
+ 0xfb1e, 0xfb1e,
+ 0x10a01, 0x10a03,
+ 0x10a05, 0x10a06,
+ 0x10a0c, 0x10a0f,
+ 0x11000, 0x11002,
+ 0x11038, 0x11045,
+ 0x11082, 0x11082,
+ 0x110b0, 0x110b8,
+}; /* CR_Other_Alphabetic */
+
+/* 'Ideographic': Binary Property */
+static const OnigCodePoint CR_Ideographic[] = {
+ 12,
+ 0x3006, 0x3007,
+ 0x3021, 0x3029,
+ 0x3038, 0x303a,
+ 0x3400, 0x4db5,
+ 0x4e00, 0x9fcb,
+ 0xf900, 0xfa2d,
+ 0xfa30, 0xfa6d,
+ 0xfa70, 0xfad9,
+ 0x20000, 0x2a6d6,
+ 0x2a700, 0x2b734,
+ 0x2b740, 0x2b81d,
+ 0x2f800, 0x2fa1d,
+}; /* CR_Ideographic */
+
+/* 'Diacritic': Binary Property */
+static const OnigCodePoint CR_Diacritic[] = {
+ 117,
+ 0x005e, 0x005e,
+ 0x0060, 0x0060,
+ 0x00a8, 0x00a8,
+ 0x00af, 0x00af,
+ 0x00b4, 0x00b4,
+ 0x00b7, 0x00b8,
+ 0x02b0, 0x034e,
+ 0x0350, 0x0357,
+ 0x035d, 0x0362,
+ 0x0374, 0x0375,
+ 0x037a, 0x037a,
+ 0x0384, 0x0385,
+ 0x0483, 0x0487,
+ 0x0559, 0x0559,
+ 0x0591, 0x05a1,
+ 0x05a3, 0x05bd,
+ 0x05bf, 0x05bf,
+ 0x05c1, 0x05c2,
+ 0x05c4, 0x05c4,
+ 0x064b, 0x0652,
+ 0x0657, 0x0658,
+ 0x06df, 0x06e0,
+ 0x06e5, 0x06e6,
+ 0x06ea, 0x06ec,
+ 0x0730, 0x074a,
+ 0x07a6, 0x07b0,
+ 0x07eb, 0x07f5,
+ 0x0818, 0x0819,
+ 0x093c, 0x093c,
+ 0x094d, 0x094d,
+ 0x0951, 0x0954,
+ 0x0971, 0x0971,
+ 0x09bc, 0x09bc,
+ 0x09cd, 0x09cd,
+ 0x0a3c, 0x0a3c,
+ 0x0a4d, 0x0a4d,
+ 0x0abc, 0x0abc,
+ 0x0acd, 0x0acd,
+ 0x0b3c, 0x0b3c,
+ 0x0b4d, 0x0b4d,
+ 0x0bcd, 0x0bcd,
+ 0x0c4d, 0x0c4d,
+ 0x0cbc, 0x0cbc,
+ 0x0ccd, 0x0ccd,
+ 0x0d4d, 0x0d4d,
+ 0x0dca, 0x0dca,
+ 0x0e47, 0x0e4c,
+ 0x0e4e, 0x0e4e,
+ 0x0ec8, 0x0ecc,
+ 0x0f18, 0x0f19,
+ 0x0f35, 0x0f35,
+ 0x0f37, 0x0f37,
+ 0x0f39, 0x0f39,
+ 0x0f3e, 0x0f3f,
+ 0x0f82, 0x0f84,
+ 0x0f86, 0x0f87,
+ 0x0fc6, 0x0fc6,
+ 0x1037, 0x1037,
+ 0x1039, 0x103a,
+ 0x1087, 0x108d,
+ 0x108f, 0x108f,
+ 0x109a, 0x109b,
+ 0x17c9, 0x17d3,
+ 0x17dd, 0x17dd,
+ 0x1939, 0x193b,
+ 0x1a75, 0x1a7c,
+ 0x1a7f, 0x1a7f,
+ 0x1b34, 0x1b34,
+ 0x1b44, 0x1b44,
+ 0x1b6b, 0x1b73,
+ 0x1baa, 0x1baa,
+ 0x1c36, 0x1c37,
+ 0x1c78, 0x1c7d,
+ 0x1cd0, 0x1ce8,
+ 0x1ced, 0x1ced,
+ 0x1d2c, 0x1d6a,
+ 0x1dc4, 0x1dcf,
+ 0x1dfd, 0x1dff,
+ 0x1fbd, 0x1fbd,
+ 0x1fbf, 0x1fc1,
+ 0x1fcd, 0x1fcf,
+ 0x1fdd, 0x1fdf,
+ 0x1fed, 0x1fef,
+ 0x1ffd, 0x1ffe,
+ 0x2cef, 0x2cf1,
+ 0x2e2f, 0x2e2f,
+ 0x302a, 0x302f,
+ 0x3099, 0x309c,
+ 0x30fc, 0x30fc,
+ 0xa66f, 0xa66f,
+ 0xa67c, 0xa67d,
+ 0xa67f, 0xa67f,
+ 0xa6f0, 0xa6f1,
+ 0xa717, 0xa721,
+ 0xa788, 0xa788,
+ 0xa8c4, 0xa8c4,
+ 0xa8e0, 0xa8f1,
+ 0xa92b, 0xa92e,
+ 0xa953, 0xa953,
+ 0xa9b3, 0xa9b3,
+ 0xa9c0, 0xa9c0,
+ 0xaa7b, 0xaa7b,
+ 0xaabf, 0xaac2,
+ 0xabec, 0xabed,
+ 0xfb1e, 0xfb1e,
+ 0xfe20, 0xfe26,
+ 0xff3e, 0xff3e,
+ 0xff40, 0xff40,
+ 0xff70, 0xff70,
+ 0xff9e, 0xff9f,
+ 0xffe3, 0xffe3,
+ 0x110b9, 0x110ba,
+ 0x1d167, 0x1d169,
+ 0x1d16d, 0x1d172,
+ 0x1d17b, 0x1d182,
+ 0x1d185, 0x1d18b,
+ 0x1d1aa, 0x1d1ad,
+}; /* CR_Diacritic */
+
+/* 'Extender': Binary Property */
+static const OnigCodePoint CR_Extender[] = {
+ 20,
+ 0x00b7, 0x00b7,
+ 0x02d0, 0x02d1,
+ 0x0640, 0x0640,
+ 0x07fa, 0x07fa,
+ 0x0e46, 0x0e46,
+ 0x0ec6, 0x0ec6,
+ 0x1843, 0x1843,
+ 0x1aa7, 0x1aa7,
+ 0x1c36, 0x1c36,
+ 0x1c7b, 0x1c7b,
+ 0x3005, 0x3005,
+ 0x3031, 0x3035,
+ 0x309d, 0x309e,
+ 0x30fc, 0x30fe,
+ 0xa015, 0xa015,
+ 0xa60c, 0xa60c,
+ 0xa9cf, 0xa9cf,
+ 0xaa70, 0xaa70,
+ 0xaadd, 0xaadd,
+ 0xff70, 0xff70,
+}; /* CR_Extender */
+
+/* 'Other_Lowercase': Binary Property */
+static const OnigCodePoint CR_Other_Lowercase[] = {
+ 13,
+ 0x02b0, 0x02b8,
+ 0x02c0, 0x02c1,
+ 0x02e0, 0x02e4,
+ 0x0345, 0x0345,
+ 0x037a, 0x037a,
+ 0x1d2c, 0x1d61,
+ 0x1d78, 0x1d78,
+ 0x1d9b, 0x1dbf,
+ 0x2090, 0x2094,
+ 0x2170, 0x217f,
+ 0x24d0, 0x24e9,
+ 0x2c7d, 0x2c7d,
+ 0xa770, 0xa770,
+}; /* CR_Other_Lowercase */
+
+/* 'Other_Uppercase': Binary Property */
+static const OnigCodePoint CR_Other_Uppercase[] = {
+ 2,
+ 0x2160, 0x216f,
+ 0x24b6, 0x24cf,
+}; /* CR_Other_Uppercase */
+
+/* 'Noncharacter_Code_Point': Binary Property */
+static const OnigCodePoint CR_Noncharacter_Code_Point[] = {
+ 18,
+ 0xfdd0, 0xfdef,
+ 0xfffe, 0xffff,
+ 0x1fffe, 0x1ffff,
+ 0x2fffe, 0x2ffff,
+ 0x3fffe, 0x3ffff,
+ 0x4fffe, 0x4ffff,
+ 0x5fffe, 0x5ffff,
+ 0x6fffe, 0x6ffff,
+ 0x7fffe, 0x7ffff,
+ 0x8fffe, 0x8ffff,
+ 0x9fffe, 0x9ffff,
+ 0xafffe, 0xaffff,
+ 0xbfffe, 0xbffff,
+ 0xcfffe, 0xcffff,
+ 0xdfffe, 0xdffff,
+ 0xefffe, 0xeffff,
+ 0xffffe, 0xfffff,
+ 0x10fffe, 0x10ffff,
+}; /* CR_Noncharacter_Code_Point */
+
+/* 'Other_Grapheme_Extend': Binary Property */
+static const OnigCodePoint CR_Other_Grapheme_Extend[] = {
+ 16,
+ 0x09be, 0x09be,
+ 0x09d7, 0x09d7,
+ 0x0b3e, 0x0b3e,
+ 0x0b57, 0x0b57,
+ 0x0bbe, 0x0bbe,
+ 0x0bd7, 0x0bd7,
+ 0x0cc2, 0x0cc2,
+ 0x0cd5, 0x0cd6,
+ 0x0d3e, 0x0d3e,
+ 0x0d57, 0x0d57,
+ 0x0dcf, 0x0dcf,
+ 0x0ddf, 0x0ddf,
+ 0x200c, 0x200d,
+ 0xff9e, 0xff9f,
+ 0x1d165, 0x1d165,
+ 0x1d16e, 0x1d172,
+}; /* CR_Other_Grapheme_Extend */
+
+/* 'IDS_Binary_Operator': Binary Property */
+static const OnigCodePoint CR_IDS_Binary_Operator[] = {
+ 2,
+ 0x2ff0, 0x2ff1,
+ 0x2ff4, 0x2ffb,
+}; /* CR_IDS_Binary_Operator */
+
+/* 'IDS_Trinary_Operator': Binary Property */
+static const OnigCodePoint CR_IDS_Trinary_Operator[] = {
+ 1,
+ 0x2ff2, 0x2ff3,
+}; /* CR_IDS_Trinary_Operator */
+
+/* 'Radical': Binary Property */
+static const OnigCodePoint CR_Radical[] = {
+ 3,
+ 0x2e80, 0x2e99,
+ 0x2e9b, 0x2ef3,
+ 0x2f00, 0x2fd5,
+}; /* CR_Radical */
+
+/* 'Unified_Ideograph': Binary Property */
+static const OnigCodePoint CR_Unified_Ideograph[] = {
+ 12,
+ 0x3400, 0x4db5,
+ 0x4e00, 0x9fcb,
+ 0xfa0e, 0xfa0f,
+ 0xfa11, 0xfa11,
+ 0xfa13, 0xfa14,
+ 0xfa1f, 0xfa1f,
+ 0xfa21, 0xfa21,
+ 0xfa23, 0xfa24,
+ 0xfa27, 0xfa29,
+ 0x20000, 0x2a6d6,
+ 0x2a700, 0x2b734,
+ 0x2b740, 0x2b81d,
+}; /* CR_Unified_Ideograph */
+
+/* 'Other_Default_Ignorable_Code_Point': Binary Property */
+static const OnigCodePoint CR_Other_Default_Ignorable_Code_Point[] = {
+ 10,
+ 0x034f, 0x034f,
+ 0x115f, 0x1160,
+ 0x2065, 0x2069,
+ 0x3164, 0x3164,
+ 0xffa0, 0xffa0,
+ 0xfff0, 0xfff8,
+ 0xe0000, 0xe0000,
+ 0xe0002, 0xe001f,
+ 0xe0080, 0xe00ff,
+ 0xe01f0, 0xe0fff,
+}; /* CR_Other_Default_Ignorable_Code_Point */
+
+/* 'Deprecated': Binary Property */
+static const OnigCodePoint CR_Deprecated[] = {
+ 9,
+ 0x0149, 0x0149,
+ 0x0673, 0x0673,
+ 0x0f77, 0x0f77,
+ 0x0f79, 0x0f79,
+ 0x17a3, 0x17a4,
+ 0x206a, 0x206f,
+ 0x2329, 0x232a,
+ 0xe0001, 0xe0001,
+ 0xe0020, 0xe007f,
+}; /* CR_Deprecated */
+
+/* 'Soft_Dotted': Binary Property */
+static const OnigCodePoint CR_Soft_Dotted[] = {
+ 31,
+ 0x0069, 0x006a,
+ 0x012f, 0x012f,
+ 0x0249, 0x0249,
+ 0x0268, 0x0268,
+ 0x029d, 0x029d,
+ 0x02b2, 0x02b2,
+ 0x03f3, 0x03f3,
+ 0x0456, 0x0456,
+ 0x0458, 0x0458,
+ 0x1d62, 0x1d62,
+ 0x1d96, 0x1d96,
+ 0x1da4, 0x1da4,
+ 0x1da8, 0x1da8,
+ 0x1e2d, 0x1e2d,
+ 0x1ecb, 0x1ecb,
+ 0x2071, 0x2071,
+ 0x2148, 0x2149,
+ 0x2c7c, 0x2c7c,
+ 0x1d422, 0x1d423,
+ 0x1d456, 0x1d457,
+ 0x1d48a, 0x1d48b,
+ 0x1d4be, 0x1d4bf,
+ 0x1d4f2, 0x1d4f3,
+ 0x1d526, 0x1d527,
+ 0x1d55a, 0x1d55b,
+ 0x1d58e, 0x1d58f,
+ 0x1d5c2, 0x1d5c3,
+ 0x1d5f6, 0x1d5f7,
+ 0x1d62a, 0x1d62b,
+ 0x1d65e, 0x1d65f,
+ 0x1d692, 0x1d693,
+}; /* CR_Soft_Dotted */
+
+/* 'Logical_Order_Exception': Binary Property */
+static const OnigCodePoint CR_Logical_Order_Exception[] = {
+ 5,
+ 0x0e40, 0x0e44,
+ 0x0ec0, 0x0ec4,
+ 0xaab5, 0xaab6,
+ 0xaab9, 0xaab9,
+ 0xaabb, 0xaabc,
+}; /* CR_Logical_Order_Exception */
+
+/* 'Other_ID_Start': Binary Property */
+static const OnigCodePoint CR_Other_ID_Start[] = {
+ 3,
+ 0x2118, 0x2118,
+ 0x212e, 0x212e,
+ 0x309b, 0x309c,
+}; /* CR_Other_ID_Start */
+
+/* 'Other_ID_Continue': Binary Property */
+static const OnigCodePoint CR_Other_ID_Continue[] = {
+ 4,
+ 0x00b7, 0x00b7,
+ 0x0387, 0x0387,
+ 0x1369, 0x1371,
+ 0x19da, 0x19da,
+}; /* CR_Other_ID_Continue */
+
+/* 'STerm': Binary Property */
+static const OnigCodePoint CR_STerm[] = {
+ 47,
+ 0x0021, 0x0021,
+ 0x002e, 0x002e,
+ 0x003f, 0x003f,
+ 0x055c, 0x055c,
+ 0x055e, 0x055e,
+ 0x0589, 0x0589,
+ 0x061f, 0x061f,
+ 0x06d4, 0x06d4,
+ 0x0700, 0x0702,
+ 0x07f9, 0x07f9,
+ 0x0964, 0x0965,
+ 0x104a, 0x104b,
+ 0x1362, 0x1362,
+ 0x1367, 0x1368,
+ 0x166e, 0x166e,
+ 0x1735, 0x1736,
+ 0x1803, 0x1803,
+ 0x1809, 0x1809,
+ 0x1944, 0x1945,
+ 0x1aa8, 0x1aab,
+ 0x1b5a, 0x1b5b,
+ 0x1b5e, 0x1b5f,
+ 0x1c3b, 0x1c3c,
+ 0x1c7e, 0x1c7f,
+ 0x203c, 0x203d,
+ 0x2047, 0x2049,
+ 0x2e2e, 0x2e2e,
+ 0x3002, 0x3002,
+ 0xa4ff, 0xa4ff,
+ 0xa60e, 0xa60f,
+ 0xa6f3, 0xa6f3,
+ 0xa6f7, 0xa6f7,
+ 0xa876, 0xa877,
+ 0xa8ce, 0xa8cf,
+ 0xa92f, 0xa92f,
+ 0xa9c8, 0xa9c9,
+ 0xaa5d, 0xaa5f,
+ 0xabeb, 0xabeb,
+ 0xfe52, 0xfe52,
+ 0xfe56, 0xfe57,
+ 0xff01, 0xff01,
+ 0xff0e, 0xff0e,
+ 0xff1f, 0xff1f,
+ 0xff61, 0xff61,
+ 0x10a56, 0x10a57,
+ 0x11047, 0x11048,
+ 0x110be, 0x110c1,
+}; /* CR_STerm */
+
+/* 'Variation_Selector': Binary Property */
+static const OnigCodePoint CR_Variation_Selector[] = {
+ 3,
+ 0x180b, 0x180d,
+ 0xfe00, 0xfe0f,
+ 0xe0100, 0xe01ef,
+}; /* CR_Variation_Selector */
+
+/* 'Pattern_White_Space': Binary Property */
+static const OnigCodePoint CR_Pattern_White_Space[] = {
+ 5,
+ 0x0009, 0x000d,
+ 0x0020, 0x0020,
+ 0x0085, 0x0085,
+ 0x200e, 0x200f,
+ 0x2028, 0x2029,
+}; /* CR_Pattern_White_Space */
+
+/* 'Pattern_Syntax': Binary Property */
+static const OnigCodePoint CR_Pattern_Syntax[] = {
+ 28,
+ 0x0021, 0x002f,
+ 0x003a, 0x0040,
+ 0x005b, 0x005e,
+ 0x0060, 0x0060,
+ 0x007b, 0x007e,
+ 0x00a1, 0x00a7,
+ 0x00a9, 0x00a9,
+ 0x00ab, 0x00ac,
+ 0x00ae, 0x00ae,
+ 0x00b0, 0x00b1,
+ 0x00b6, 0x00b6,
+ 0x00bb, 0x00bb,
+ 0x00bf, 0x00bf,
+ 0x00d7, 0x00d7,
+ 0x00f7, 0x00f7,
+ 0x2010, 0x2027,
+ 0x2030, 0x203e,
+ 0x2041, 0x2053,
+ 0x2055, 0x205e,
+ 0x2190, 0x245f,
+ 0x2500, 0x2775,
+ 0x2794, 0x2bff,
+ 0x2e00, 0x2e7f,
+ 0x3001, 0x3003,
+ 0x3008, 0x3020,
+ 0x3030, 0x3030,
+ 0xfd3e, 0xfd3f,
+ 0xfe45, 0xfe46,
+}; /* CR_Pattern_Syntax */
+
+/* 'Unknown': Script */
+static const OnigCodePoint CR_Unknown[] = {
+ 499,
+ 0x0378, 0x0379,
+ 0x037f, 0x0383,
+ 0x038b, 0x038b,
+ 0x038d, 0x038d,
+ 0x03a2, 0x03a2,
+ 0x0528, 0x0530,
+ 0x0557, 0x0558,
+ 0x0560, 0x0560,
+ 0x0588, 0x0588,
+ 0x058b, 0x0590,
+ 0x05c8, 0x05cf,
+ 0x05eb, 0x05ef,
+ 0x05f5, 0x05ff,
+ 0x0604, 0x0605,
+ 0x061c, 0x061d,
+ 0x070e, 0x070e,
+ 0x074b, 0x074c,
+ 0x07b2, 0x07bf,
+ 0x07fb, 0x07ff,
+ 0x082e, 0x082f,
+ 0x083f, 0x083f,
+ 0x085c, 0x085d,
+ 0x085f, 0x08ff,
+ 0x0978, 0x0978,
+ 0x0980, 0x0980,
+ 0x0984, 0x0984,
+ 0x098d, 0x098e,
+ 0x0991, 0x0992,
+ 0x09a9, 0x09a9,
+ 0x09b1, 0x09b1,
+ 0x09b3, 0x09b5,
+ 0x09ba, 0x09bb,
+ 0x09c5, 0x09c6,
+ 0x09c9, 0x09ca,
+ 0x09cf, 0x09d6,
+ 0x09d8, 0x09db,
+ 0x09de, 0x09de,
+ 0x09e4, 0x09e5,
+ 0x09fc, 0x0a00,
+ 0x0a04, 0x0a04,
+ 0x0a0b, 0x0a0e,
+ 0x0a11, 0x0a12,
+ 0x0a29, 0x0a29,
+ 0x0a31, 0x0a31,
+ 0x0a34, 0x0a34,
+ 0x0a37, 0x0a37,
+ 0x0a3a, 0x0a3b,
+ 0x0a3d, 0x0a3d,
+ 0x0a43, 0x0a46,
+ 0x0a49, 0x0a4a,
+ 0x0a4e, 0x0a50,
+ 0x0a52, 0x0a58,
+ 0x0a5d, 0x0a5d,
+ 0x0a5f, 0x0a65,
+ 0x0a76, 0x0a80,
+ 0x0a84, 0x0a84,
+ 0x0a8e, 0x0a8e,
+ 0x0a92, 0x0a92,
+ 0x0aa9, 0x0aa9,
+ 0x0ab1, 0x0ab1,
+ 0x0ab4, 0x0ab4,
+ 0x0aba, 0x0abb,
+ 0x0ac6, 0x0ac6,
+ 0x0aca, 0x0aca,
+ 0x0ace, 0x0acf,
+ 0x0ad1, 0x0adf,
+ 0x0ae4, 0x0ae5,
+ 0x0af0, 0x0af0,
+ 0x0af2, 0x0b00,
+ 0x0b04, 0x0b04,
+ 0x0b0d, 0x0b0e,
+ 0x0b11, 0x0b12,
+ 0x0b29, 0x0b29,
+ 0x0b31, 0x0b31,
+ 0x0b34, 0x0b34,
+ 0x0b3a, 0x0b3b,
+ 0x0b45, 0x0b46,
+ 0x0b49, 0x0b4a,
+ 0x0b4e, 0x0b55,
+ 0x0b58, 0x0b5b,
+ 0x0b5e, 0x0b5e,
+ 0x0b64, 0x0b65,
+ 0x0b78, 0x0b81,
+ 0x0b84, 0x0b84,
+ 0x0b8b, 0x0b8d,
+ 0x0b91, 0x0b91,
+ 0x0b96, 0x0b98,
+ 0x0b9b, 0x0b9b,
+ 0x0b9d, 0x0b9d,
+ 0x0ba0, 0x0ba2,
+ 0x0ba5, 0x0ba7,
+ 0x0bab, 0x0bad,
+ 0x0bba, 0x0bbd,
+ 0x0bc3, 0x0bc5,
+ 0x0bc9, 0x0bc9,
+ 0x0bce, 0x0bcf,
+ 0x0bd1, 0x0bd6,
+ 0x0bd8, 0x0be5,
+ 0x0bfb, 0x0c00,
+ 0x0c04, 0x0c04,
+ 0x0c0d, 0x0c0d,
+ 0x0c11, 0x0c11,
+ 0x0c29, 0x0c29,
+ 0x0c34, 0x0c34,
+ 0x0c3a, 0x0c3c,
+ 0x0c45, 0x0c45,
+ 0x0c49, 0x0c49,
+ 0x0c4e, 0x0c54,
+ 0x0c57, 0x0c57,
+ 0x0c5a, 0x0c5f,
+ 0x0c64, 0x0c65,
+ 0x0c70, 0x0c77,
+ 0x0c80, 0x0c81,
+ 0x0c84, 0x0c84,
+ 0x0c8d, 0x0c8d,
+ 0x0c91, 0x0c91,
+ 0x0ca9, 0x0ca9,
+ 0x0cb4, 0x0cb4,
+ 0x0cba, 0x0cbb,
+ 0x0cc5, 0x0cc5,
+ 0x0cc9, 0x0cc9,
+ 0x0cce, 0x0cd4,
+ 0x0cd7, 0x0cdd,
+ 0x0cdf, 0x0cdf,
+ 0x0ce4, 0x0ce5,
+ 0x0cf0, 0x0cf0,
+ 0x0cf3, 0x0d01,
+ 0x0d04, 0x0d04,
+ 0x0d0d, 0x0d0d,
+ 0x0d11, 0x0d11,
+ 0x0d3b, 0x0d3c,
+ 0x0d45, 0x0d45,
+ 0x0d49, 0x0d49,
+ 0x0d4f, 0x0d56,
+ 0x0d58, 0x0d5f,
+ 0x0d64, 0x0d65,
+ 0x0d76, 0x0d78,
+ 0x0d80, 0x0d81,
+ 0x0d84, 0x0d84,
+ 0x0d97, 0x0d99,
+ 0x0db2, 0x0db2,
+ 0x0dbc, 0x0dbc,
+ 0x0dbe, 0x0dbf,
+ 0x0dc7, 0x0dc9,
+ 0x0dcb, 0x0dce,
+ 0x0dd5, 0x0dd5,
+ 0x0dd7, 0x0dd7,
+ 0x0de0, 0x0df1,
+ 0x0df5, 0x0e00,
+ 0x0e3b, 0x0e3e,
+ 0x0e5c, 0x0e80,
+ 0x0e83, 0x0e83,
+ 0x0e85, 0x0e86,
+ 0x0e89, 0x0e89,
+ 0x0e8b, 0x0e8c,
+ 0x0e8e, 0x0e93,
+ 0x0e98, 0x0e98,
+ 0x0ea0, 0x0ea0,
+ 0x0ea4, 0x0ea4,
+ 0x0ea6, 0x0ea6,
+ 0x0ea8, 0x0ea9,
+ 0x0eac, 0x0eac,
+ 0x0eba, 0x0eba,
+ 0x0ebe, 0x0ebf,
+ 0x0ec5, 0x0ec5,
+ 0x0ec7, 0x0ec7,
+ 0x0ece, 0x0ecf,
+ 0x0eda, 0x0edb,
+ 0x0ede, 0x0eff,
+ 0x0f48, 0x0f48,
+ 0x0f6d, 0x0f70,
+ 0x0f98, 0x0f98,
+ 0x0fbd, 0x0fbd,
+ 0x0fcd, 0x0fcd,
+ 0x0fdb, 0x0fff,
+ 0x10c6, 0x10cf,
+ 0x10fd, 0x10ff,
+ 0x1249, 0x1249,
+ 0x124e, 0x124f,
+ 0x1257, 0x1257,
+ 0x1259, 0x1259,
+ 0x125e, 0x125f,
+ 0x1289, 0x1289,
+ 0x128e, 0x128f,
+ 0x12b1, 0x12b1,
+ 0x12b6, 0x12b7,
+ 0x12bf, 0x12bf,
+ 0x12c1, 0x12c1,
+ 0x12c6, 0x12c7,
+ 0x12d7, 0x12d7,
+ 0x1311, 0x1311,
+ 0x1316, 0x1317,
+ 0x135b, 0x135c,
+ 0x137d, 0x137f,
+ 0x139a, 0x139f,
+ 0x13f5, 0x13ff,
+ 0x169d, 0x169f,
+ 0x16f1, 0x16ff,
+ 0x170d, 0x170d,
+ 0x1715, 0x171f,
+ 0x1737, 0x173f,
+ 0x1754, 0x175f,
+ 0x176d, 0x176d,
+ 0x1771, 0x1771,
+ 0x1774, 0x177f,
+ 0x17de, 0x17df,
+ 0x17ea, 0x17ef,
+ 0x17fa, 0x17ff,
+ 0x180f, 0x180f,
+ 0x181a, 0x181f,
+ 0x1878, 0x187f,
+ 0x18ab, 0x18af,
+ 0x18f6, 0x18ff,
+ 0x191d, 0x191f,
+ 0x192c, 0x192f,
+ 0x193c, 0x193f,
+ 0x1941, 0x1943,
+ 0x196e, 0x196f,
+ 0x1975, 0x197f,
+ 0x19ac, 0x19af,
+ 0x19ca, 0x19cf,
+ 0x19db, 0x19dd,
+ 0x1a1c, 0x1a1d,
+ 0x1a5f, 0x1a5f,
+ 0x1a7d, 0x1a7e,
+ 0x1a8a, 0x1a8f,
+ 0x1a9a, 0x1a9f,
+ 0x1aae, 0x1aff,
+ 0x1b4c, 0x1b4f,
+ 0x1b7d, 0x1b7f,
+ 0x1bab, 0x1bad,
+ 0x1bba, 0x1bbf,
+ 0x1bf4, 0x1bfb,
+ 0x1c38, 0x1c3a,
+ 0x1c4a, 0x1c4c,
+ 0x1c80, 0x1ccf,
+ 0x1cf3, 0x1cff,
+ 0x1de7, 0x1dfb,
+ 0x1f16, 0x1f17,
+ 0x1f1e, 0x1f1f,
+ 0x1f46, 0x1f47,
+ 0x1f4e, 0x1f4f,
+ 0x1f58, 0x1f58,
+ 0x1f5a, 0x1f5a,
+ 0x1f5c, 0x1f5c,
+ 0x1f5e, 0x1f5e,
+ 0x1f7e, 0x1f7f,
+ 0x1fb5, 0x1fb5,
+ 0x1fc5, 0x1fc5,
+ 0x1fd4, 0x1fd5,
+ 0x1fdc, 0x1fdc,
+ 0x1ff0, 0x1ff1,
+ 0x1ff5, 0x1ff5,
+ 0x1fff, 0x1fff,
+ 0x2065, 0x2069,
+ 0x2072, 0x2073,
+ 0x208f, 0x208f,
+ 0x209d, 0x209f,
+ 0x20ba, 0x20cf,
+ 0x20f1, 0x20ff,
+ 0x218a, 0x218f,
+ 0x23f4, 0x23ff,
+ 0x2427, 0x243f,
+ 0x244b, 0x245f,
+ 0x2700, 0x2700,
+ 0x27cb, 0x27cb,
+ 0x27cd, 0x27cd,
+ 0x2b4d, 0x2b4f,
+ 0x2b5a, 0x2bff,
+ 0x2c2f, 0x2c2f,
+ 0x2c5f, 0x2c5f,
+ 0x2cf2, 0x2cf8,
+ 0x2d26, 0x2d2f,
+ 0x2d66, 0x2d6e,
+ 0x2d71, 0x2d7e,
+ 0x2d97, 0x2d9f,
+ 0x2da7, 0x2da7,
+ 0x2daf, 0x2daf,
+ 0x2db7, 0x2db7,
+ 0x2dbf, 0x2dbf,
+ 0x2dc7, 0x2dc7,
+ 0x2dcf, 0x2dcf,
+ 0x2dd7, 0x2dd7,
+ 0x2ddf, 0x2ddf,
+ 0x2e32, 0x2e7f,
+ 0x2e9a, 0x2e9a,
+ 0x2ef4, 0x2eff,
+ 0x2fd6, 0x2fef,
+ 0x2ffc, 0x2fff,
+ 0x3040, 0x3040,
+ 0x3097, 0x3098,
+ 0x3100, 0x3104,
+ 0x312e, 0x3130,
+ 0x318f, 0x318f,
+ 0x31bb, 0x31bf,
+ 0x31e4, 0x31ef,
+ 0x321f, 0x321f,
+ 0x32ff, 0x32ff,
+ 0x4db6, 0x4dbf,
+ 0x9fcc, 0x9fff,
+ 0xa48d, 0xa48f,
+ 0xa4c7, 0xa4cf,
+ 0xa62c, 0xa63f,
+ 0xa674, 0xa67b,
+ 0xa698, 0xa69f,
+ 0xa6f8, 0xa6ff,
+ 0xa78f, 0xa78f,
+ 0xa792, 0xa79f,
+ 0xa7aa, 0xa7f9,
+ 0xa82c, 0xa82f,
+ 0xa83a, 0xa83f,
+ 0xa878, 0xa87f,
+ 0xa8c5, 0xa8cd,
+ 0xa8da, 0xa8df,
+ 0xa8fc, 0xa8ff,
+ 0xa954, 0xa95e,
+ 0xa97d, 0xa97f,
+ 0xa9ce, 0xa9ce,
+ 0xa9da, 0xa9dd,
+ 0xa9e0, 0xa9ff,
+ 0xaa37, 0xaa3f,
+ 0xaa4e, 0xaa4f,
+ 0xaa5a, 0xaa5b,
+ 0xaa7c, 0xaa7f,
+ 0xaac3, 0xaada,
+ 0xaae0, 0xab00,
+ 0xab07, 0xab08,
+ 0xab0f, 0xab10,
+ 0xab17, 0xab1f,
+ 0xab27, 0xab27,
+ 0xab2f, 0xabbf,
+ 0xabee, 0xabef,
+ 0xabfa, 0xabff,
+ 0xd7a4, 0xd7af,
+ 0xd7c7, 0xd7ca,
+ 0xd7fc, 0xf8ff,
+ 0xfa2e, 0xfa2f,
+ 0xfa6e, 0xfa6f,
+ 0xfada, 0xfaff,
+ 0xfb07, 0xfb12,
+ 0xfb18, 0xfb1c,
+ 0xfb37, 0xfb37,
+ 0xfb3d, 0xfb3d,
+ 0xfb3f, 0xfb3f,
+ 0xfb42, 0xfb42,
+ 0xfb45, 0xfb45,
+ 0xfbc2, 0xfbd2,
+ 0xfd40, 0xfd4f,
+ 0xfd90, 0xfd91,
+ 0xfdc8, 0xfdef,
+ 0xfdfe, 0xfdff,
+ 0xfe1a, 0xfe1f,
+ 0xfe27, 0xfe2f,
+ 0xfe53, 0xfe53,
+ 0xfe67, 0xfe67,
+ 0xfe6c, 0xfe6f,
+ 0xfe75, 0xfe75,
+ 0xfefd, 0xfefe,
+ 0xff00, 0xff00,
+ 0xffbf, 0xffc1,
+ 0xffc8, 0xffc9,
+ 0xffd0, 0xffd1,
+ 0xffd8, 0xffd9,
+ 0xffdd, 0xffdf,
+ 0xffe7, 0xffe7,
+ 0xffef, 0xfff8,
+ 0xfffe, 0xffff,
+ 0x1000c, 0x1000c,
+ 0x10027, 0x10027,
+ 0x1003b, 0x1003b,
+ 0x1003e, 0x1003e,
+ 0x1004e, 0x1004f,
+ 0x1005e, 0x1007f,
+ 0x100fb, 0x100ff,
+ 0x10103, 0x10106,
+ 0x10134, 0x10136,
+ 0x1018b, 0x1018f,
+ 0x1019c, 0x101cf,
+ 0x101fe, 0x1027f,
+ 0x1029d, 0x1029f,
+ 0x102d1, 0x102ff,
+ 0x1031f, 0x1031f,
+ 0x10324, 0x1032f,
+ 0x1034b, 0x1037f,
+ 0x1039e, 0x1039e,
+ 0x103c4, 0x103c7,
+ 0x103d6, 0x103ff,
+ 0x1049e, 0x1049f,
+ 0x104aa, 0x107ff,
+ 0x10806, 0x10807,
+ 0x10809, 0x10809,
+ 0x10836, 0x10836,
+ 0x10839, 0x1083b,
+ 0x1083d, 0x1083e,
+ 0x10856, 0x10856,
+ 0x10860, 0x108ff,
+ 0x1091c, 0x1091e,
+ 0x1093a, 0x1093e,
+ 0x10940, 0x109ff,
+ 0x10a04, 0x10a04,
+ 0x10a07, 0x10a0b,
+ 0x10a14, 0x10a14,
+ 0x10a18, 0x10a18,
+ 0x10a34, 0x10a37,
+ 0x10a3b, 0x10a3e,
+ 0x10a48, 0x10a4f,
+ 0x10a59, 0x10a5f,
+ 0x10a80, 0x10aff,
+ 0x10b36, 0x10b38,
+ 0x10b56, 0x10b57,
+ 0x10b73, 0x10b77,
+ 0x10b80, 0x10bff,
+ 0x10c49, 0x10e5f,
+ 0x10e7f, 0x10fff,
+ 0x1104e, 0x11051,
+ 0x11070, 0x1107f,
+ 0x110c2, 0x11fff,
+ 0x1236f, 0x123ff,
+ 0x12463, 0x1246f,
+ 0x12474, 0x12fff,
+ 0x1342f, 0x167ff,
+ 0x16a39, 0x1afff,
+ 0x1b002, 0x1cfff,
+ 0x1d0f6, 0x1d0ff,
+ 0x1d127, 0x1d128,
+ 0x1d1de, 0x1d1ff,
+ 0x1d246, 0x1d2ff,
+ 0x1d357, 0x1d35f,
+ 0x1d372, 0x1d3ff,
+ 0x1d455, 0x1d455,
+ 0x1d49d, 0x1d49d,
+ 0x1d4a0, 0x1d4a1,
+ 0x1d4a3, 0x1d4a4,
+ 0x1d4a7, 0x1d4a8,
+ 0x1d4ad, 0x1d4ad,
+ 0x1d4ba, 0x1d4ba,
+ 0x1d4bc, 0x1d4bc,
+ 0x1d4c4, 0x1d4c4,
+ 0x1d506, 0x1d506,
+ 0x1d50b, 0x1d50c,
+ 0x1d515, 0x1d515,
+ 0x1d51d, 0x1d51d,
+ 0x1d53a, 0x1d53a,
+ 0x1d53f, 0x1d53f,
+ 0x1d545, 0x1d545,
+ 0x1d547, 0x1d549,
+ 0x1d551, 0x1d551,
+ 0x1d6a6, 0x1d6a7,
+ 0x1d7cc, 0x1d7cd,
+ 0x1d800, 0x1efff,
+ 0x1f02c, 0x1f02f,
+ 0x1f094, 0x1f09f,
+ 0x1f0af, 0x1f0b0,
+ 0x1f0bf, 0x1f0c0,
+ 0x1f0d0, 0x1f0d0,
+ 0x1f0e0, 0x1f0ff,
+ 0x1f10b, 0x1f10f,
+ 0x1f12f, 0x1f12f,
+ 0x1f16a, 0x1f16f,
+ 0x1f19b, 0x1f1e5,
+ 0x1f203, 0x1f20f,
+ 0x1f23b, 0x1f23f,
+ 0x1f249, 0x1f24f,
+ 0x1f252, 0x1f2ff,
+ 0x1f321, 0x1f32f,
+ 0x1f336, 0x1f336,
+ 0x1f37d, 0x1f37f,
+ 0x1f394, 0x1f39f,
+ 0x1f3c5, 0x1f3c5,
+ 0x1f3cb, 0x1f3df,
+ 0x1f3f1, 0x1f3ff,
+ 0x1f43f, 0x1f43f,
+ 0x1f441, 0x1f441,
+ 0x1f4f8, 0x1f4f8,
+ 0x1f4fd, 0x1f4ff,
+ 0x1f53e, 0x1f54f,
+ 0x1f568, 0x1f5fa,
+ 0x1f600, 0x1f600,
+ 0x1f611, 0x1f611,
+ 0x1f615, 0x1f615,
+ 0x1f617, 0x1f617,
+ 0x1f619, 0x1f619,
+ 0x1f61b, 0x1f61b,
+ 0x1f61f, 0x1f61f,
+ 0x1f626, 0x1f627,
+ 0x1f62c, 0x1f62c,
+ 0x1f62e, 0x1f62f,
+ 0x1f634, 0x1f634,
+ 0x1f641, 0x1f644,
+ 0x1f650, 0x1f67f,
+ 0x1f6c6, 0x1f6ff,
+ 0x1f774, 0x1ffff,
+ 0x2a6d7, 0x2a6ff,
+ 0x2b735, 0x2b73f,
+ 0x2b81e, 0x2f7ff,
+ 0x2fa1e, 0xe0000,
+ 0xe0002, 0xe001f,
+ 0xe0080, 0xe00ff,
+ 0xe01f0, 0x10ffff,
+}; /* CR_Unknown */
+#endif /* USE_UNICODE_PROPERTIES */
+
+/* 'Age_1_1': Derived Age 1.1 */
+static const OnigCodePoint CR_Age_1_1[] = {
+ 288,
+ 0x0000, 0x01f5,
+ 0x01fa, 0x0217,
+ 0x0250, 0x02a8,
+ 0x02b0, 0x02de,
+ 0x02e0, 0x02e9,
+ 0x0300, 0x0345,
+ 0x0360, 0x0361,
+ 0x0374, 0x0375,
+ 0x037a, 0x037a,
+ 0x037e, 0x037e,
+ 0x0384, 0x038a,
+ 0x038c, 0x038c,
+ 0x038e, 0x03a1,
+ 0x03a3, 0x03ce,
+ 0x03d0, 0x03d6,
+ 0x03da, 0x03da,
+ 0x03dc, 0x03dc,
+ 0x03de, 0x03de,
+ 0x03e0, 0x03e0,
+ 0x03e2, 0x03f3,
+ 0x0401, 0x040c,
+ 0x040e, 0x044f,
+ 0x0451, 0x045c,
+ 0x045e, 0x0486,
+ 0x0490, 0x04c4,
+ 0x04c7, 0x04c8,
+ 0x04cb, 0x04cc,
+ 0x04d0, 0x04eb,
+ 0x04ee, 0x04f5,
+ 0x04f8, 0x04f9,
+ 0x0531, 0x0556,
+ 0x0559, 0x055f,
+ 0x0561, 0x0587,
+ 0x0589, 0x0589,
+ 0x05b0, 0x05b9,
+ 0x05bb, 0x05c3,
+ 0x05d0, 0x05ea,
+ 0x05f0, 0x05f4,
+ 0x060c, 0x060c,
+ 0x061b, 0x061b,
+ 0x061f, 0x061f,
+ 0x0621, 0x063a,
+ 0x0640, 0x0652,
+ 0x0660, 0x066d,
+ 0x0670, 0x06b7,
+ 0x06ba, 0x06be,
+ 0x06c0, 0x06ce,
+ 0x06d0, 0x06ed,
+ 0x06f0, 0x06f9,
+ 0x0901, 0x0903,
+ 0x0905, 0x0939,
+ 0x093c, 0x094d,
+ 0x0950, 0x0954,
+ 0x0958, 0x0970,
+ 0x0981, 0x0983,
+ 0x0985, 0x098c,
+ 0x098f, 0x0990,
+ 0x0993, 0x09a8,
+ 0x09aa, 0x09b0,
+ 0x09b2, 0x09b2,
+ 0x09b6, 0x09b9,
+ 0x09bc, 0x09bc,
+ 0x09be, 0x09c4,
+ 0x09c7, 0x09c8,
+ 0x09cb, 0x09cd,
+ 0x09d7, 0x09d7,
+ 0x09dc, 0x09dd,
+ 0x09df, 0x09e3,
+ 0x09e6, 0x09fa,
+ 0x0a02, 0x0a02,
+ 0x0a05, 0x0a0a,
+ 0x0a0f, 0x0a10,
+ 0x0a13, 0x0a28,
+ 0x0a2a, 0x0a30,
+ 0x0a32, 0x0a33,
+ 0x0a35, 0x0a36,
+ 0x0a38, 0x0a39,
+ 0x0a3c, 0x0a3c,
+ 0x0a3e, 0x0a42,
+ 0x0a47, 0x0a48,
+ 0x0a4b, 0x0a4d,
+ 0x0a59, 0x0a5c,
+ 0x0a5e, 0x0a5e,
+ 0x0a66, 0x0a74,
+ 0x0a81, 0x0a83,
+ 0x0a85, 0x0a8b,
+ 0x0a8d, 0x0a8d,
+ 0x0a8f, 0x0a91,
+ 0x0a93, 0x0aa8,
+ 0x0aaa, 0x0ab0,
+ 0x0ab2, 0x0ab3,
+ 0x0ab5, 0x0ab9,
+ 0x0abc, 0x0ac5,
+ 0x0ac7, 0x0ac9,
+ 0x0acb, 0x0acd,
+ 0x0ad0, 0x0ad0,
+ 0x0ae0, 0x0ae0,
+ 0x0ae6, 0x0aef,
+ 0x0b01, 0x0b03,
+ 0x0b05, 0x0b0c,
+ 0x0b0f, 0x0b10,
+ 0x0b13, 0x0b28,
+ 0x0b2a, 0x0b30,
+ 0x0b32, 0x0b33,
+ 0x0b36, 0x0b39,
+ 0x0b3c, 0x0b43,
+ 0x0b47, 0x0b48,
+ 0x0b4b, 0x0b4d,
+ 0x0b56, 0x0b57,
+ 0x0b5c, 0x0b5d,
+ 0x0b5f, 0x0b61,
+ 0x0b66, 0x0b70,
+ 0x0b82, 0x0b83,
+ 0x0b85, 0x0b8a,
+ 0x0b8e, 0x0b90,
+ 0x0b92, 0x0b95,
+ 0x0b99, 0x0b9a,
+ 0x0b9c, 0x0b9c,
+ 0x0b9e, 0x0b9f,
+ 0x0ba3, 0x0ba4,
+ 0x0ba8, 0x0baa,
+ 0x0bae, 0x0bb5,
+ 0x0bb7, 0x0bb9,
+ 0x0bbe, 0x0bc2,
+ 0x0bc6, 0x0bc8,
+ 0x0bca, 0x0bcd,
+ 0x0bd7, 0x0bd7,
+ 0x0be7, 0x0bf2,
+ 0x0c01, 0x0c03,
+ 0x0c05, 0x0c0c,
+ 0x0c0e, 0x0c10,
+ 0x0c12, 0x0c28,
+ 0x0c2a, 0x0c33,
+ 0x0c35, 0x0c39,
+ 0x0c3e, 0x0c44,
+ 0x0c46, 0x0c48,
+ 0x0c4a, 0x0c4d,
+ 0x0c55, 0x0c56,
+ 0x0c60, 0x0c61,
+ 0x0c66, 0x0c6f,
+ 0x0c82, 0x0c83,
+ 0x0c85, 0x0c8c,
+ 0x0c8e, 0x0c90,
+ 0x0c92, 0x0ca8,
+ 0x0caa, 0x0cb3,
+ 0x0cb5, 0x0cb9,
+ 0x0cbe, 0x0cc4,
+ 0x0cc6, 0x0cc8,
+ 0x0cca, 0x0ccd,
+ 0x0cd5, 0x0cd6,
+ 0x0cde, 0x0cde,
+ 0x0ce0, 0x0ce1,
+ 0x0ce6, 0x0cef,
+ 0x0d02, 0x0d03,
+ 0x0d05, 0x0d0c,
+ 0x0d0e, 0x0d10,
+ 0x0d12, 0x0d28,
+ 0x0d2a, 0x0d39,
+ 0x0d3e, 0x0d43,
+ 0x0d46, 0x0d48,
+ 0x0d4a, 0x0d4d,
+ 0x0d57, 0x0d57,
+ 0x0d60, 0x0d61,
+ 0x0d66, 0x0d6f,
+ 0x0e01, 0x0e3a,
+ 0x0e3f, 0x0e5b,
+ 0x0e81, 0x0e82,
+ 0x0e84, 0x0e84,
+ 0x0e87, 0x0e88,
+ 0x0e8a, 0x0e8a,
+ 0x0e8d, 0x0e8d,
+ 0x0e94, 0x0e97,
+ 0x0e99, 0x0e9f,
+ 0x0ea1, 0x0ea3,
+ 0x0ea5, 0x0ea5,
+ 0x0ea7, 0x0ea7,
+ 0x0eaa, 0x0eab,
+ 0x0ead, 0x0eb9,
+ 0x0ebb, 0x0ebd,
+ 0x0ec0, 0x0ec4,
+ 0x0ec6, 0x0ec6,
+ 0x0ec8, 0x0ecd,
+ 0x0ed0, 0x0ed9,
+ 0x0edc, 0x0edd,
+ 0x10a0, 0x10c5,
+ 0x10d0, 0x10f6,
+ 0x10fb, 0x10fb,
+ 0x1100, 0x1159,
+ 0x115f, 0x11a2,
+ 0x11a8, 0x11f9,
+ 0x1e00, 0x1e9a,
+ 0x1ea0, 0x1ef9,
+ 0x1f00, 0x1f15,
+ 0x1f18, 0x1f1d,
+ 0x1f20, 0x1f45,
+ 0x1f48, 0x1f4d,
+ 0x1f50, 0x1f57,
+ 0x1f59, 0x1f59,
+ 0x1f5b, 0x1f5b,
+ 0x1f5d, 0x1f5d,
+ 0x1f5f, 0x1f7d,
+ 0x1f80, 0x1fb4,
+ 0x1fb6, 0x1fc4,
+ 0x1fc6, 0x1fd3,
+ 0x1fd6, 0x1fdb,
+ 0x1fdd, 0x1fef,
+ 0x1ff2, 0x1ff4,
+ 0x1ff6, 0x1ffe,
+ 0x2000, 0x202e,
+ 0x2030, 0x2046,
+ 0x206a, 0x2070,
+ 0x2074, 0x208e,
+ 0x20a0, 0x20aa,
+ 0x20d0, 0x20e1,
+ 0x2100, 0x2138,
+ 0x2153, 0x2182,
+ 0x2190, 0x21ea,
+ 0x2200, 0x22f1,
+ 0x2300, 0x2300,
+ 0x2302, 0x237a,
+ 0x2400, 0x2424,
+ 0x2440, 0x244a,
+ 0x2460, 0x24ea,
+ 0x2500, 0x2595,
+ 0x25a0, 0x25ef,
+ 0x2600, 0x2613,
+ 0x261a, 0x266f,
+ 0x2701, 0x2704,
+ 0x2706, 0x2709,
+ 0x270c, 0x2727,
+ 0x2729, 0x274b,
+ 0x274d, 0x274d,
+ 0x274f, 0x2752,
+ 0x2756, 0x2756,
+ 0x2758, 0x275e,
+ 0x2761, 0x2767,
+ 0x2776, 0x2794,
+ 0x2798, 0x27af,
+ 0x27b1, 0x27be,
+ 0x3000, 0x3037,
+ 0x303f, 0x303f,
+ 0x3041, 0x3094,
+ 0x3099, 0x309e,
+ 0x30a1, 0x30fe,
+ 0x3105, 0x312c,
+ 0x3131, 0x318e,
+ 0x3190, 0x319f,
+ 0x3200, 0x321c,
+ 0x3220, 0x3243,
+ 0x3260, 0x327b,
+ 0x327f, 0x32b0,
+ 0x32c0, 0x32cb,
+ 0x32d0, 0x32fe,
+ 0x3300, 0x3376,
+ 0x337b, 0x33dd,
+ 0x33e0, 0x33fe,
+ 0x4e00, 0x9fa5,
+ 0xe000, 0xfa2d,
+ 0xfb00, 0xfb06,
+ 0xfb13, 0xfb17,
+ 0xfb1e, 0xfb36,
+ 0xfb38, 0xfb3c,
+ 0xfb3e, 0xfb3e,
+ 0xfb40, 0xfb41,
+ 0xfb43, 0xfb44,
+ 0xfb46, 0xfbb1,
+ 0xfbd3, 0xfd3f,
+ 0xfd50, 0xfd8f,
+ 0xfd92, 0xfdc7,
+ 0xfdf0, 0xfdfb,
+ 0xfe20, 0xfe23,
+ 0xfe30, 0xfe44,
+ 0xfe49, 0xfe52,
+ 0xfe54, 0xfe66,
+ 0xfe68, 0xfe6b,
+ 0xfe70, 0xfe72,
+ 0xfe74, 0xfe74,
+ 0xfe76, 0xfefc,
+ 0xfeff, 0xfeff,
+ 0xff01, 0xff5e,
+ 0xff61, 0xffbe,
+ 0xffc2, 0xffc7,
+ 0xffca, 0xffcf,
+ 0xffd2, 0xffd7,
+ 0xffda, 0xffdc,
+ 0xffe0, 0xffe6,
+ 0xffe8, 0xffee,
+ 0xfffd, 0xffff,
+}; /* CR_Age_1_1 */
+
+/* 'Age_2_0': Derived Age 2.0 */
+static const OnigCodePoint CR_Age_2_0[] = {
+ 312,
+ 0x0000, 0x01f5,
+ 0x01fa, 0x0217,
+ 0x0250, 0x02a8,
+ 0x02b0, 0x02de,
+ 0x02e0, 0x02e9,
+ 0x0300, 0x0345,
+ 0x0360, 0x0361,
+ 0x0374, 0x0375,
+ 0x037a, 0x037a,
+ 0x037e, 0x037e,
+ 0x0384, 0x038a,
+ 0x038c, 0x038c,
+ 0x038e, 0x03a1,
+ 0x03a3, 0x03ce,
+ 0x03d0, 0x03d6,
+ 0x03da, 0x03da,
+ 0x03dc, 0x03dc,
+ 0x03de, 0x03de,
+ 0x03e0, 0x03e0,
+ 0x03e2, 0x03f3,
+ 0x0401, 0x040c,
+ 0x040e, 0x044f,
+ 0x0451, 0x045c,
+ 0x045e, 0x0486,
+ 0x0490, 0x04c4,
+ 0x04c7, 0x04c8,
+ 0x04cb, 0x04cc,
+ 0x04d0, 0x04eb,
+ 0x04ee, 0x04f5,
+ 0x04f8, 0x04f9,
+ 0x0531, 0x0556,
+ 0x0559, 0x055f,
+ 0x0561, 0x0587,
+ 0x0589, 0x0589,
+ 0x0591, 0x05a1,
+ 0x05a3, 0x05b9,
+ 0x05bb, 0x05c4,
+ 0x05d0, 0x05ea,
+ 0x05f0, 0x05f4,
+ 0x060c, 0x060c,
+ 0x061b, 0x061b,
+ 0x061f, 0x061f,
+ 0x0621, 0x063a,
+ 0x0640, 0x0652,
+ 0x0660, 0x066d,
+ 0x0670, 0x06b7,
+ 0x06ba, 0x06be,
+ 0x06c0, 0x06ce,
+ 0x06d0, 0x06ed,
+ 0x06f0, 0x06f9,
+ 0x0901, 0x0903,
+ 0x0905, 0x0939,
+ 0x093c, 0x094d,
+ 0x0950, 0x0954,
+ 0x0958, 0x0970,
+ 0x0981, 0x0983,
+ 0x0985, 0x098c,
+ 0x098f, 0x0990,
+ 0x0993, 0x09a8,
+ 0x09aa, 0x09b0,
+ 0x09b2, 0x09b2,
+ 0x09b6, 0x09b9,
+ 0x09bc, 0x09bc,
+ 0x09be, 0x09c4,
+ 0x09c7, 0x09c8,
+ 0x09cb, 0x09cd,
+ 0x09d7, 0x09d7,
+ 0x09dc, 0x09dd,
+ 0x09df, 0x09e3,
+ 0x09e6, 0x09fa,
+ 0x0a02, 0x0a02,
+ 0x0a05, 0x0a0a,
+ 0x0a0f, 0x0a10,
+ 0x0a13, 0x0a28,
+ 0x0a2a, 0x0a30,
+ 0x0a32, 0x0a33,
+ 0x0a35, 0x0a36,
+ 0x0a38, 0x0a39,
+ 0x0a3c, 0x0a3c,
+ 0x0a3e, 0x0a42,
+ 0x0a47, 0x0a48,
+ 0x0a4b, 0x0a4d,
+ 0x0a59, 0x0a5c,
+ 0x0a5e, 0x0a5e,
+ 0x0a66, 0x0a74,
+ 0x0a81, 0x0a83,
+ 0x0a85, 0x0a8b,
+ 0x0a8d, 0x0a8d,
+ 0x0a8f, 0x0a91,
+ 0x0a93, 0x0aa8,
+ 0x0aaa, 0x0ab0,
+ 0x0ab2, 0x0ab3,
+ 0x0ab5, 0x0ab9,
+ 0x0abc, 0x0ac5,
+ 0x0ac7, 0x0ac9,
+ 0x0acb, 0x0acd,
+ 0x0ad0, 0x0ad0,
+ 0x0ae0, 0x0ae0,
+ 0x0ae6, 0x0aef,
+ 0x0b01, 0x0b03,
+ 0x0b05, 0x0b0c,
+ 0x0b0f, 0x0b10,
+ 0x0b13, 0x0b28,
+ 0x0b2a, 0x0b30,
+ 0x0b32, 0x0b33,
+ 0x0b36, 0x0b39,
+ 0x0b3c, 0x0b43,
+ 0x0b47, 0x0b48,
+ 0x0b4b, 0x0b4d,
+ 0x0b56, 0x0b57,
+ 0x0b5c, 0x0b5d,
+ 0x0b5f, 0x0b61,
+ 0x0b66, 0x0b70,
+ 0x0b82, 0x0b83,
+ 0x0b85, 0x0b8a,
+ 0x0b8e, 0x0b90,
+ 0x0b92, 0x0b95,
+ 0x0b99, 0x0b9a,
+ 0x0b9c, 0x0b9c,
+ 0x0b9e, 0x0b9f,
+ 0x0ba3, 0x0ba4,
+ 0x0ba8, 0x0baa,
+ 0x0bae, 0x0bb5,
+ 0x0bb7, 0x0bb9,
+ 0x0bbe, 0x0bc2,
+ 0x0bc6, 0x0bc8,
+ 0x0bca, 0x0bcd,
+ 0x0bd7, 0x0bd7,
+ 0x0be7, 0x0bf2,
+ 0x0c01, 0x0c03,
+ 0x0c05, 0x0c0c,
+ 0x0c0e, 0x0c10,
+ 0x0c12, 0x0c28,
+ 0x0c2a, 0x0c33,
+ 0x0c35, 0x0c39,
+ 0x0c3e, 0x0c44,
+ 0x0c46, 0x0c48,
+ 0x0c4a, 0x0c4d,
+ 0x0c55, 0x0c56,
+ 0x0c60, 0x0c61,
+ 0x0c66, 0x0c6f,
+ 0x0c82, 0x0c83,
+ 0x0c85, 0x0c8c,
+ 0x0c8e, 0x0c90,
+ 0x0c92, 0x0ca8,
+ 0x0caa, 0x0cb3,
+ 0x0cb5, 0x0cb9,
+ 0x0cbe, 0x0cc4,
+ 0x0cc6, 0x0cc8,
+ 0x0cca, 0x0ccd,
+ 0x0cd5, 0x0cd6,
+ 0x0cde, 0x0cde,
+ 0x0ce0, 0x0ce1,
+ 0x0ce6, 0x0cef,
+ 0x0d02, 0x0d03,
+ 0x0d05, 0x0d0c,
+ 0x0d0e, 0x0d10,
+ 0x0d12, 0x0d28,
+ 0x0d2a, 0x0d39,
+ 0x0d3e, 0x0d43,
+ 0x0d46, 0x0d48,
+ 0x0d4a, 0x0d4d,
+ 0x0d57, 0x0d57,
+ 0x0d60, 0x0d61,
+ 0x0d66, 0x0d6f,
+ 0x0e01, 0x0e3a,
+ 0x0e3f, 0x0e5b,
+ 0x0e81, 0x0e82,
+ 0x0e84, 0x0e84,
+ 0x0e87, 0x0e88,
+ 0x0e8a, 0x0e8a,
+ 0x0e8d, 0x0e8d,
+ 0x0e94, 0x0e97,
+ 0x0e99, 0x0e9f,
+ 0x0ea1, 0x0ea3,
+ 0x0ea5, 0x0ea5,
+ 0x0ea7, 0x0ea7,
+ 0x0eaa, 0x0eab,
+ 0x0ead, 0x0eb9,
+ 0x0ebb, 0x0ebd,
+ 0x0ec0, 0x0ec4,
+ 0x0ec6, 0x0ec6,
+ 0x0ec8, 0x0ecd,
+ 0x0ed0, 0x0ed9,
+ 0x0edc, 0x0edd,
+ 0x0f00, 0x0f47,
+ 0x0f49, 0x0f69,
+ 0x0f71, 0x0f8b,
+ 0x0f90, 0x0f95,
+ 0x0f97, 0x0f97,
+ 0x0f99, 0x0fad,
+ 0x0fb1, 0x0fb7,
+ 0x0fb9, 0x0fb9,
+ 0x10a0, 0x10c5,
+ 0x10d0, 0x10f6,
+ 0x10fb, 0x10fb,
+ 0x1100, 0x1159,
+ 0x115f, 0x11a2,
+ 0x11a8, 0x11f9,
+ 0x1e00, 0x1e9b,
+ 0x1ea0, 0x1ef9,
+ 0x1f00, 0x1f15,
+ 0x1f18, 0x1f1d,
+ 0x1f20, 0x1f45,
+ 0x1f48, 0x1f4d,
+ 0x1f50, 0x1f57,
+ 0x1f59, 0x1f59,
+ 0x1f5b, 0x1f5b,
+ 0x1f5d, 0x1f5d,
+ 0x1f5f, 0x1f7d,
+ 0x1f80, 0x1fb4,
+ 0x1fb6, 0x1fc4,
+ 0x1fc6, 0x1fd3,
+ 0x1fd6, 0x1fdb,
+ 0x1fdd, 0x1fef,
+ 0x1ff2, 0x1ff4,
+ 0x1ff6, 0x1ffe,
+ 0x2000, 0x202e,
+ 0x2030, 0x2046,
+ 0x206a, 0x2070,
+ 0x2074, 0x208e,
+ 0x20a0, 0x20ab,
+ 0x20d0, 0x20e1,
+ 0x2100, 0x2138,
+ 0x2153, 0x2182,
+ 0x2190, 0x21ea,
+ 0x2200, 0x22f1,
+ 0x2300, 0x2300,
+ 0x2302, 0x237a,
+ 0x2400, 0x2424,
+ 0x2440, 0x244a,
+ 0x2460, 0x24ea,
+ 0x2500, 0x2595,
+ 0x25a0, 0x25ef,
+ 0x2600, 0x2613,
+ 0x261a, 0x266f,
+ 0x2701, 0x2704,
+ 0x2706, 0x2709,
+ 0x270c, 0x2727,
+ 0x2729, 0x274b,
+ 0x274d, 0x274d,
+ 0x274f, 0x2752,
+ 0x2756, 0x2756,
+ 0x2758, 0x275e,
+ 0x2761, 0x2767,
+ 0x2776, 0x2794,
+ 0x2798, 0x27af,
+ 0x27b1, 0x27be,
+ 0x3000, 0x3037,
+ 0x303f, 0x303f,
+ 0x3041, 0x3094,
+ 0x3099, 0x309e,
+ 0x30a1, 0x30fe,
+ 0x3105, 0x312c,
+ 0x3131, 0x318e,
+ 0x3190, 0x319f,
+ 0x3200, 0x321c,
+ 0x3220, 0x3243,
+ 0x3260, 0x327b,
+ 0x327f, 0x32b0,
+ 0x32c0, 0x32cb,
+ 0x32d0, 0x32fe,
+ 0x3300, 0x3376,
+ 0x337b, 0x33dd,
+ 0x33e0, 0x33fe,
+ 0x4e00, 0x9fa5,
+ 0xac00, 0xd7a3,
+ 0xd800, 0xfa2d,
+ 0xfb00, 0xfb06,
+ 0xfb13, 0xfb17,
+ 0xfb1e, 0xfb36,
+ 0xfb38, 0xfb3c,
+ 0xfb3e, 0xfb3e,
+ 0xfb40, 0xfb41,
+ 0xfb43, 0xfb44,
+ 0xfb46, 0xfbb1,
+ 0xfbd3, 0xfd3f,
+ 0xfd50, 0xfd8f,
+ 0xfd92, 0xfdc7,
+ 0xfdf0, 0xfdfb,
+ 0xfe20, 0xfe23,
+ 0xfe30, 0xfe44,
+ 0xfe49, 0xfe52,
+ 0xfe54, 0xfe66,
+ 0xfe68, 0xfe6b,
+ 0xfe70, 0xfe72,
+ 0xfe74, 0xfe74,
+ 0xfe76, 0xfefc,
+ 0xfeff, 0xfeff,
+ 0xff01, 0xff5e,
+ 0xff61, 0xffbe,
+ 0xffc2, 0xffc7,
+ 0xffca, 0xffcf,
+ 0xffd2, 0xffd7,
+ 0xffda, 0xffdc,
+ 0xffe0, 0xffe6,
+ 0xffe8, 0xffee,
+ 0xfffd, 0xffff,
+ 0x1fffe, 0x1ffff,
+ 0x2fffe, 0x2ffff,
+ 0x3fffe, 0x3ffff,
+ 0x4fffe, 0x4ffff,
+ 0x5fffe, 0x5ffff,
+ 0x6fffe, 0x6ffff,
+ 0x7fffe, 0x7ffff,
+ 0x8fffe, 0x8ffff,
+ 0x9fffe, 0x9ffff,
+ 0xafffe, 0xaffff,
+ 0xbfffe, 0xbffff,
+ 0xcfffe, 0xcffff,
+ 0xdfffe, 0xdffff,
+ 0xefffe, 0x10ffff,
+}; /* CR_Age_2_0 */
+
+/* 'Age_2_1': Derived Age 2.1 */
+static const OnigCodePoint CR_Age_2_1[] = {
+ 312,
+ 0x0000, 0x01f5,
+ 0x01fa, 0x0217,
+ 0x0250, 0x02a8,
+ 0x02b0, 0x02de,
+ 0x02e0, 0x02e9,
+ 0x0300, 0x0345,
+ 0x0360, 0x0361,
+ 0x0374, 0x0375,
+ 0x037a, 0x037a,
+ 0x037e, 0x037e,
+ 0x0384, 0x038a,
+ 0x038c, 0x038c,
+ 0x038e, 0x03a1,
+ 0x03a3, 0x03ce,
+ 0x03d0, 0x03d6,
+ 0x03da, 0x03da,
+ 0x03dc, 0x03dc,
+ 0x03de, 0x03de,
+ 0x03e0, 0x03e0,
+ 0x03e2, 0x03f3,
+ 0x0401, 0x040c,
+ 0x040e, 0x044f,
+ 0x0451, 0x045c,
+ 0x045e, 0x0486,
+ 0x0490, 0x04c4,
+ 0x04c7, 0x04c8,
+ 0x04cb, 0x04cc,
+ 0x04d0, 0x04eb,
+ 0x04ee, 0x04f5,
+ 0x04f8, 0x04f9,
+ 0x0531, 0x0556,
+ 0x0559, 0x055f,
+ 0x0561, 0x0587,
+ 0x0589, 0x0589,
+ 0x0591, 0x05a1,
+ 0x05a3, 0x05b9,
+ 0x05bb, 0x05c4,
+ 0x05d0, 0x05ea,
+ 0x05f0, 0x05f4,
+ 0x060c, 0x060c,
+ 0x061b, 0x061b,
+ 0x061f, 0x061f,
+ 0x0621, 0x063a,
+ 0x0640, 0x0652,
+ 0x0660, 0x066d,
+ 0x0670, 0x06b7,
+ 0x06ba, 0x06be,
+ 0x06c0, 0x06ce,
+ 0x06d0, 0x06ed,
+ 0x06f0, 0x06f9,
+ 0x0901, 0x0903,
+ 0x0905, 0x0939,
+ 0x093c, 0x094d,
+ 0x0950, 0x0954,
+ 0x0958, 0x0970,
+ 0x0981, 0x0983,
+ 0x0985, 0x098c,
+ 0x098f, 0x0990,
+ 0x0993, 0x09a8,
+ 0x09aa, 0x09b0,
+ 0x09b2, 0x09b2,
+ 0x09b6, 0x09b9,
+ 0x09bc, 0x09bc,
+ 0x09be, 0x09c4,
+ 0x09c7, 0x09c8,
+ 0x09cb, 0x09cd,
+ 0x09d7, 0x09d7,
+ 0x09dc, 0x09dd,
+ 0x09df, 0x09e3,
+ 0x09e6, 0x09fa,
+ 0x0a02, 0x0a02,
+ 0x0a05, 0x0a0a,
+ 0x0a0f, 0x0a10,
+ 0x0a13, 0x0a28,
+ 0x0a2a, 0x0a30,
+ 0x0a32, 0x0a33,
+ 0x0a35, 0x0a36,
+ 0x0a38, 0x0a39,
+ 0x0a3c, 0x0a3c,
+ 0x0a3e, 0x0a42,
+ 0x0a47, 0x0a48,
+ 0x0a4b, 0x0a4d,
+ 0x0a59, 0x0a5c,
+ 0x0a5e, 0x0a5e,
+ 0x0a66, 0x0a74,
+ 0x0a81, 0x0a83,
+ 0x0a85, 0x0a8b,
+ 0x0a8d, 0x0a8d,
+ 0x0a8f, 0x0a91,
+ 0x0a93, 0x0aa8,
+ 0x0aaa, 0x0ab0,
+ 0x0ab2, 0x0ab3,
+ 0x0ab5, 0x0ab9,
+ 0x0abc, 0x0ac5,
+ 0x0ac7, 0x0ac9,
+ 0x0acb, 0x0acd,
+ 0x0ad0, 0x0ad0,
+ 0x0ae0, 0x0ae0,
+ 0x0ae6, 0x0aef,
+ 0x0b01, 0x0b03,
+ 0x0b05, 0x0b0c,
+ 0x0b0f, 0x0b10,
+ 0x0b13, 0x0b28,
+ 0x0b2a, 0x0b30,
+ 0x0b32, 0x0b33,
+ 0x0b36, 0x0b39,
+ 0x0b3c, 0x0b43,
+ 0x0b47, 0x0b48,
+ 0x0b4b, 0x0b4d,
+ 0x0b56, 0x0b57,
+ 0x0b5c, 0x0b5d,
+ 0x0b5f, 0x0b61,
+ 0x0b66, 0x0b70,
+ 0x0b82, 0x0b83,
+ 0x0b85, 0x0b8a,
+ 0x0b8e, 0x0b90,
+ 0x0b92, 0x0b95,
+ 0x0b99, 0x0b9a,
+ 0x0b9c, 0x0b9c,
+ 0x0b9e, 0x0b9f,
+ 0x0ba3, 0x0ba4,
+ 0x0ba8, 0x0baa,
+ 0x0bae, 0x0bb5,
+ 0x0bb7, 0x0bb9,
+ 0x0bbe, 0x0bc2,
+ 0x0bc6, 0x0bc8,
+ 0x0bca, 0x0bcd,
+ 0x0bd7, 0x0bd7,
+ 0x0be7, 0x0bf2,
+ 0x0c01, 0x0c03,
+ 0x0c05, 0x0c0c,
+ 0x0c0e, 0x0c10,
+ 0x0c12, 0x0c28,
+ 0x0c2a, 0x0c33,
+ 0x0c35, 0x0c39,
+ 0x0c3e, 0x0c44,
+ 0x0c46, 0x0c48,
+ 0x0c4a, 0x0c4d,
+ 0x0c55, 0x0c56,
+ 0x0c60, 0x0c61,
+ 0x0c66, 0x0c6f,
+ 0x0c82, 0x0c83,
+ 0x0c85, 0x0c8c,
+ 0x0c8e, 0x0c90,
+ 0x0c92, 0x0ca8,
+ 0x0caa, 0x0cb3,
+ 0x0cb5, 0x0cb9,
+ 0x0cbe, 0x0cc4,
+ 0x0cc6, 0x0cc8,
+ 0x0cca, 0x0ccd,
+ 0x0cd5, 0x0cd6,
+ 0x0cde, 0x0cde,
+ 0x0ce0, 0x0ce1,
+ 0x0ce6, 0x0cef,
+ 0x0d02, 0x0d03,
+ 0x0d05, 0x0d0c,
+ 0x0d0e, 0x0d10,
+ 0x0d12, 0x0d28,
+ 0x0d2a, 0x0d39,
+ 0x0d3e, 0x0d43,
+ 0x0d46, 0x0d48,
+ 0x0d4a, 0x0d4d,
+ 0x0d57, 0x0d57,
+ 0x0d60, 0x0d61,
+ 0x0d66, 0x0d6f,
+ 0x0e01, 0x0e3a,
+ 0x0e3f, 0x0e5b,
+ 0x0e81, 0x0e82,
+ 0x0e84, 0x0e84,
+ 0x0e87, 0x0e88,
+ 0x0e8a, 0x0e8a,
+ 0x0e8d, 0x0e8d,
+ 0x0e94, 0x0e97,
+ 0x0e99, 0x0e9f,
+ 0x0ea1, 0x0ea3,
+ 0x0ea5, 0x0ea5,
+ 0x0ea7, 0x0ea7,
+ 0x0eaa, 0x0eab,
+ 0x0ead, 0x0eb9,
+ 0x0ebb, 0x0ebd,
+ 0x0ec0, 0x0ec4,
+ 0x0ec6, 0x0ec6,
+ 0x0ec8, 0x0ecd,
+ 0x0ed0, 0x0ed9,
+ 0x0edc, 0x0edd,
+ 0x0f00, 0x0f47,
+ 0x0f49, 0x0f69,
+ 0x0f71, 0x0f8b,
+ 0x0f90, 0x0f95,
+ 0x0f97, 0x0f97,
+ 0x0f99, 0x0fad,
+ 0x0fb1, 0x0fb7,
+ 0x0fb9, 0x0fb9,
+ 0x10a0, 0x10c5,
+ 0x10d0, 0x10f6,
+ 0x10fb, 0x10fb,
+ 0x1100, 0x1159,
+ 0x115f, 0x11a2,
+ 0x11a8, 0x11f9,
+ 0x1e00, 0x1e9b,
+ 0x1ea0, 0x1ef9,
+ 0x1f00, 0x1f15,
+ 0x1f18, 0x1f1d,
+ 0x1f20, 0x1f45,
+ 0x1f48, 0x1f4d,
+ 0x1f50, 0x1f57,
+ 0x1f59, 0x1f59,
+ 0x1f5b, 0x1f5b,
+ 0x1f5d, 0x1f5d,
+ 0x1f5f, 0x1f7d,
+ 0x1f80, 0x1fb4,
+ 0x1fb6, 0x1fc4,
+ 0x1fc6, 0x1fd3,
+ 0x1fd6, 0x1fdb,
+ 0x1fdd, 0x1fef,
+ 0x1ff2, 0x1ff4,
+ 0x1ff6, 0x1ffe,
+ 0x2000, 0x202e,
+ 0x2030, 0x2046,
+ 0x206a, 0x2070,
+ 0x2074, 0x208e,
+ 0x20a0, 0x20ac,
+ 0x20d0, 0x20e1,
+ 0x2100, 0x2138,
+ 0x2153, 0x2182,
+ 0x2190, 0x21ea,
+ 0x2200, 0x22f1,
+ 0x2300, 0x2300,
+ 0x2302, 0x237a,
+ 0x2400, 0x2424,
+ 0x2440, 0x244a,
+ 0x2460, 0x24ea,
+ 0x2500, 0x2595,
+ 0x25a0, 0x25ef,
+ 0x2600, 0x2613,
+ 0x261a, 0x266f,
+ 0x2701, 0x2704,
+ 0x2706, 0x2709,
+ 0x270c, 0x2727,
+ 0x2729, 0x274b,
+ 0x274d, 0x274d,
+ 0x274f, 0x2752,
+ 0x2756, 0x2756,
+ 0x2758, 0x275e,
+ 0x2761, 0x2767,
+ 0x2776, 0x2794,
+ 0x2798, 0x27af,
+ 0x27b1, 0x27be,
+ 0x3000, 0x3037,
+ 0x303f, 0x303f,
+ 0x3041, 0x3094,
+ 0x3099, 0x309e,
+ 0x30a1, 0x30fe,
+ 0x3105, 0x312c,
+ 0x3131, 0x318e,
+ 0x3190, 0x319f,
+ 0x3200, 0x321c,
+ 0x3220, 0x3243,
+ 0x3260, 0x327b,
+ 0x327f, 0x32b0,
+ 0x32c0, 0x32cb,
+ 0x32d0, 0x32fe,
+ 0x3300, 0x3376,
+ 0x337b, 0x33dd,
+ 0x33e0, 0x33fe,
+ 0x4e00, 0x9fa5,
+ 0xac00, 0xd7a3,
+ 0xd800, 0xfa2d,
+ 0xfb00, 0xfb06,
+ 0xfb13, 0xfb17,
+ 0xfb1e, 0xfb36,
+ 0xfb38, 0xfb3c,
+ 0xfb3e, 0xfb3e,
+ 0xfb40, 0xfb41,
+ 0xfb43, 0xfb44,
+ 0xfb46, 0xfbb1,
+ 0xfbd3, 0xfd3f,
+ 0xfd50, 0xfd8f,
+ 0xfd92, 0xfdc7,
+ 0xfdf0, 0xfdfb,
+ 0xfe20, 0xfe23,
+ 0xfe30, 0xfe44,
+ 0xfe49, 0xfe52,
+ 0xfe54, 0xfe66,
+ 0xfe68, 0xfe6b,
+ 0xfe70, 0xfe72,
+ 0xfe74, 0xfe74,
+ 0xfe76, 0xfefc,
+ 0xfeff, 0xfeff,
+ 0xff01, 0xff5e,
+ 0xff61, 0xffbe,
+ 0xffc2, 0xffc7,
+ 0xffca, 0xffcf,
+ 0xffd2, 0xffd7,
+ 0xffda, 0xffdc,
+ 0xffe0, 0xffe6,
+ 0xffe8, 0xffee,
+ 0xfffc, 0xffff,
+ 0x1fffe, 0x1ffff,
+ 0x2fffe, 0x2ffff,
+ 0x3fffe, 0x3ffff,
+ 0x4fffe, 0x4ffff,
+ 0x5fffe, 0x5ffff,
+ 0x6fffe, 0x6ffff,
+ 0x7fffe, 0x7ffff,
+ 0x8fffe, 0x8ffff,
+ 0x9fffe, 0x9ffff,
+ 0xafffe, 0xaffff,
+ 0xbfffe, 0xbffff,
+ 0xcfffe, 0xcffff,
+ 0xdfffe, 0xdffff,
+ 0xefffe, 0x10ffff,
+}; /* CR_Age_2_1 */
+
+/* 'Age_3_0': Derived Age 3.0 */
+static const OnigCodePoint CR_Age_3_0[] = {
+ 369,
+ 0x0000, 0x021f,
+ 0x0222, 0x0233,
+ 0x0250, 0x02ad,
+ 0x02b0, 0x02ee,
+ 0x0300, 0x034e,
+ 0x0360, 0x0362,
+ 0x0374, 0x0375,
+ 0x037a, 0x037a,
+ 0x037e, 0x037e,
+ 0x0384, 0x038a,
+ 0x038c, 0x038c,
+ 0x038e, 0x03a1,
+ 0x03a3, 0x03ce,
+ 0x03d0, 0x03d7,
+ 0x03da, 0x03f3,
+ 0x0400, 0x0486,
+ 0x0488, 0x0489,
+ 0x048c, 0x04c4,
+ 0x04c7, 0x04c8,
+ 0x04cb, 0x04cc,
+ 0x04d0, 0x04f5,
+ 0x04f8, 0x04f9,
+ 0x0531, 0x0556,
+ 0x0559, 0x055f,
+ 0x0561, 0x0587,
+ 0x0589, 0x058a,
+ 0x0591, 0x05a1,
+ 0x05a3, 0x05b9,
+ 0x05bb, 0x05c4,
+ 0x05d0, 0x05ea,
+ 0x05f0, 0x05f4,
+ 0x060c, 0x060c,
+ 0x061b, 0x061b,
+ 0x061f, 0x061f,
+ 0x0621, 0x063a,
+ 0x0640, 0x0655,
+ 0x0660, 0x066d,
+ 0x0670, 0x06ed,
+ 0x06f0, 0x06fe,
+ 0x0700, 0x070d,
+ 0x070f, 0x072c,
+ 0x0730, 0x074a,
+ 0x0780, 0x07b0,
+ 0x0901, 0x0903,
+ 0x0905, 0x0939,
+ 0x093c, 0x094d,
+ 0x0950, 0x0954,
+ 0x0958, 0x0970,
+ 0x0981, 0x0983,
+ 0x0985, 0x098c,
+ 0x098f, 0x0990,
+ 0x0993, 0x09a8,
+ 0x09aa, 0x09b0,
+ 0x09b2, 0x09b2,
+ 0x09b6, 0x09b9,
+ 0x09bc, 0x09bc,
+ 0x09be, 0x09c4,
+ 0x09c7, 0x09c8,
+ 0x09cb, 0x09cd,
+ 0x09d7, 0x09d7,
+ 0x09dc, 0x09dd,
+ 0x09df, 0x09e3,
+ 0x09e6, 0x09fa,
+ 0x0a02, 0x0a02,
+ 0x0a05, 0x0a0a,
+ 0x0a0f, 0x0a10,
+ 0x0a13, 0x0a28,
+ 0x0a2a, 0x0a30,
+ 0x0a32, 0x0a33,
+ 0x0a35, 0x0a36,
+ 0x0a38, 0x0a39,
+ 0x0a3c, 0x0a3c,
+ 0x0a3e, 0x0a42,
+ 0x0a47, 0x0a48,
+ 0x0a4b, 0x0a4d,
+ 0x0a59, 0x0a5c,
+ 0x0a5e, 0x0a5e,
+ 0x0a66, 0x0a74,
+ 0x0a81, 0x0a83,
+ 0x0a85, 0x0a8b,
+ 0x0a8d, 0x0a8d,
+ 0x0a8f, 0x0a91,
+ 0x0a93, 0x0aa8,
+ 0x0aaa, 0x0ab0,
+ 0x0ab2, 0x0ab3,
+ 0x0ab5, 0x0ab9,
+ 0x0abc, 0x0ac5,
+ 0x0ac7, 0x0ac9,
+ 0x0acb, 0x0acd,
+ 0x0ad0, 0x0ad0,
+ 0x0ae0, 0x0ae0,
+ 0x0ae6, 0x0aef,
+ 0x0b01, 0x0b03,
+ 0x0b05, 0x0b0c,
+ 0x0b0f, 0x0b10,
+ 0x0b13, 0x0b28,
+ 0x0b2a, 0x0b30,
+ 0x0b32, 0x0b33,
+ 0x0b36, 0x0b39,
+ 0x0b3c, 0x0b43,
+ 0x0b47, 0x0b48,
+ 0x0b4b, 0x0b4d,
+ 0x0b56, 0x0b57,
+ 0x0b5c, 0x0b5d,
+ 0x0b5f, 0x0b61,
+ 0x0b66, 0x0b70,
+ 0x0b82, 0x0b83,
+ 0x0b85, 0x0b8a,
+ 0x0b8e, 0x0b90,
+ 0x0b92, 0x0b95,
+ 0x0b99, 0x0b9a,
+ 0x0b9c, 0x0b9c,
+ 0x0b9e, 0x0b9f,
+ 0x0ba3, 0x0ba4,
+ 0x0ba8, 0x0baa,
+ 0x0bae, 0x0bb5,
+ 0x0bb7, 0x0bb9,
+ 0x0bbe, 0x0bc2,
+ 0x0bc6, 0x0bc8,
+ 0x0bca, 0x0bcd,
+ 0x0bd7, 0x0bd7,
+ 0x0be7, 0x0bf2,
+ 0x0c01, 0x0c03,
+ 0x0c05, 0x0c0c,
+ 0x0c0e, 0x0c10,
+ 0x0c12, 0x0c28,
+ 0x0c2a, 0x0c33,
+ 0x0c35, 0x0c39,
+ 0x0c3e, 0x0c44,
+ 0x0c46, 0x0c48,
+ 0x0c4a, 0x0c4d,
+ 0x0c55, 0x0c56,
+ 0x0c60, 0x0c61,
+ 0x0c66, 0x0c6f,
+ 0x0c82, 0x0c83,
+ 0x0c85, 0x0c8c,
+ 0x0c8e, 0x0c90,
+ 0x0c92, 0x0ca8,
+ 0x0caa, 0x0cb3,
+ 0x0cb5, 0x0cb9,
+ 0x0cbe, 0x0cc4,
+ 0x0cc6, 0x0cc8,
+ 0x0cca, 0x0ccd,
+ 0x0cd5, 0x0cd6,
+ 0x0cde, 0x0cde,
+ 0x0ce0, 0x0ce1,
+ 0x0ce6, 0x0cef,
+ 0x0d02, 0x0d03,
+ 0x0d05, 0x0d0c,
+ 0x0d0e, 0x0d10,
+ 0x0d12, 0x0d28,
+ 0x0d2a, 0x0d39,
+ 0x0d3e, 0x0d43,
+ 0x0d46, 0x0d48,
+ 0x0d4a, 0x0d4d,
+ 0x0d57, 0x0d57,
+ 0x0d60, 0x0d61,
+ 0x0d66, 0x0d6f,
+ 0x0d82, 0x0d83,
+ 0x0d85, 0x0d96,
+ 0x0d9a, 0x0db1,
+ 0x0db3, 0x0dbb,
+ 0x0dbd, 0x0dbd,
+ 0x0dc0, 0x0dc6,
+ 0x0dca, 0x0dca,
+ 0x0dcf, 0x0dd4,
+ 0x0dd6, 0x0dd6,
+ 0x0dd8, 0x0ddf,
+ 0x0df2, 0x0df4,
+ 0x0e01, 0x0e3a,
+ 0x0e3f, 0x0e5b,
+ 0x0e81, 0x0e82,
+ 0x0e84, 0x0e84,
+ 0x0e87, 0x0e88,
+ 0x0e8a, 0x0e8a,
+ 0x0e8d, 0x0e8d,
+ 0x0e94, 0x0e97,
+ 0x0e99, 0x0e9f,
+ 0x0ea1, 0x0ea3,
+ 0x0ea5, 0x0ea5,
+ 0x0ea7, 0x0ea7,
+ 0x0eaa, 0x0eab,
+ 0x0ead, 0x0eb9,
+ 0x0ebb, 0x0ebd,
+ 0x0ec0, 0x0ec4,
+ 0x0ec6, 0x0ec6,
+ 0x0ec8, 0x0ecd,
+ 0x0ed0, 0x0ed9,
+ 0x0edc, 0x0edd,
+ 0x0f00, 0x0f47,
+ 0x0f49, 0x0f6a,
+ 0x0f71, 0x0f8b,
+ 0x0f90, 0x0f97,
+ 0x0f99, 0x0fbc,
+ 0x0fbe, 0x0fcc,
+ 0x0fcf, 0x0fcf,
+ 0x1000, 0x1021,
+ 0x1023, 0x1027,
+ 0x1029, 0x102a,
+ 0x102c, 0x1032,
+ 0x1036, 0x1039,
+ 0x1040, 0x1059,
+ 0x10a0, 0x10c5,
+ 0x10d0, 0x10f6,
+ 0x10fb, 0x10fb,
+ 0x1100, 0x1159,
+ 0x115f, 0x11a2,
+ 0x11a8, 0x11f9,
+ 0x1200, 0x1206,
+ 0x1208, 0x1246,
+ 0x1248, 0x1248,
+ 0x124a, 0x124d,
+ 0x1250, 0x1256,
+ 0x1258, 0x1258,
+ 0x125a, 0x125d,
+ 0x1260, 0x1286,
+ 0x1288, 0x1288,
+ 0x128a, 0x128d,
+ 0x1290, 0x12ae,
+ 0x12b0, 0x12b0,
+ 0x12b2, 0x12b5,
+ 0x12b8, 0x12be,
+ 0x12c0, 0x12c0,
+ 0x12c2, 0x12c5,
+ 0x12c8, 0x12ce,
+ 0x12d0, 0x12d6,
+ 0x12d8, 0x12ee,
+ 0x12f0, 0x130e,
+ 0x1310, 0x1310,
+ 0x1312, 0x1315,
+ 0x1318, 0x131e,
+ 0x1320, 0x1346,
+ 0x1348, 0x135a,
+ 0x1361, 0x137c,
+ 0x13a0, 0x13f4,
+ 0x1401, 0x1676,
+ 0x1680, 0x169c,
+ 0x16a0, 0x16f0,
+ 0x1780, 0x17dc,
+ 0x17e0, 0x17e9,
+ 0x1800, 0x180e,
+ 0x1810, 0x1819,
+ 0x1820, 0x1877,
+ 0x1880, 0x18a9,
+ 0x1e00, 0x1e9b,
+ 0x1ea0, 0x1ef9,
+ 0x1f00, 0x1f15,
+ 0x1f18, 0x1f1d,
+ 0x1f20, 0x1f45,
+ 0x1f48, 0x1f4d,
+ 0x1f50, 0x1f57,
+ 0x1f59, 0x1f59,
+ 0x1f5b, 0x1f5b,
+ 0x1f5d, 0x1f5d,
+ 0x1f5f, 0x1f7d,
+ 0x1f80, 0x1fb4,
+ 0x1fb6, 0x1fc4,
+ 0x1fc6, 0x1fd3,
+ 0x1fd6, 0x1fdb,
+ 0x1fdd, 0x1fef,
+ 0x1ff2, 0x1ff4,
+ 0x1ff6, 0x1ffe,
+ 0x2000, 0x2046,
+ 0x2048, 0x204d,
+ 0x206a, 0x2070,
+ 0x2074, 0x208e,
+ 0x20a0, 0x20af,
+ 0x20d0, 0x20e3,
+ 0x2100, 0x213a,
+ 0x2153, 0x2183,
+ 0x2190, 0x21f3,
+ 0x2200, 0x22f1,
+ 0x2300, 0x237b,
+ 0x237d, 0x239a,
+ 0x2400, 0x2426,
+ 0x2440, 0x244a,
+ 0x2460, 0x24ea,
+ 0x2500, 0x2595,
+ 0x25a0, 0x25f7,
+ 0x2600, 0x2613,
+ 0x2619, 0x2671,
+ 0x2701, 0x2704,
+ 0x2706, 0x2709,
+ 0x270c, 0x2727,
+ 0x2729, 0x274b,
+ 0x274d, 0x274d,
+ 0x274f, 0x2752,
+ 0x2756, 0x2756,
+ 0x2758, 0x275e,
+ 0x2761, 0x2767,
+ 0x2776, 0x2794,
+ 0x2798, 0x27af,
+ 0x27b1, 0x27be,
+ 0x2800, 0x28ff,
+ 0x2e80, 0x2e99,
+ 0x2e9b, 0x2ef3,
+ 0x2f00, 0x2fd5,
+ 0x2ff0, 0x2ffb,
+ 0x3000, 0x303a,
+ 0x303e, 0x303f,
+ 0x3041, 0x3094,
+ 0x3099, 0x309e,
+ 0x30a1, 0x30fe,
+ 0x3105, 0x312c,
+ 0x3131, 0x318e,
+ 0x3190, 0x31b7,
+ 0x3200, 0x321c,
+ 0x3220, 0x3243,
+ 0x3260, 0x327b,
+ 0x327f, 0x32b0,
+ 0x32c0, 0x32cb,
+ 0x32d0, 0x32fe,
+ 0x3300, 0x3376,
+ 0x337b, 0x33dd,
+ 0x33e0, 0x33fe,
+ 0x3400, 0x4db5,
+ 0x4e00, 0x9fa5,
+ 0xa000, 0xa48c,
+ 0xa490, 0xa4a1,
+ 0xa4a4, 0xa4b3,
+ 0xa4b5, 0xa4c0,
+ 0xa4c2, 0xa4c4,
+ 0xa4c6, 0xa4c6,
+ 0xac00, 0xd7a3,
+ 0xd800, 0xfa2d,
+ 0xfb00, 0xfb06,
+ 0xfb13, 0xfb17,
+ 0xfb1d, 0xfb36,
+ 0xfb38, 0xfb3c,
+ 0xfb3e, 0xfb3e,
+ 0xfb40, 0xfb41,
+ 0xfb43, 0xfb44,
+ 0xfb46, 0xfbb1,
+ 0xfbd3, 0xfd3f,
+ 0xfd50, 0xfd8f,
+ 0xfd92, 0xfdc7,
+ 0xfdf0, 0xfdfb,
+ 0xfe20, 0xfe23,
+ 0xfe30, 0xfe44,
+ 0xfe49, 0xfe52,
+ 0xfe54, 0xfe66,
+ 0xfe68, 0xfe6b,
+ 0xfe70, 0xfe72,
+ 0xfe74, 0xfe74,
+ 0xfe76, 0xfefc,
+ 0xfeff, 0xfeff,
+ 0xff01, 0xff5e,
+ 0xff61, 0xffbe,
+ 0xffc2, 0xffc7,
+ 0xffca, 0xffcf,
+ 0xffd2, 0xffd7,
+ 0xffda, 0xffdc,
+ 0xffe0, 0xffe6,
+ 0xffe8, 0xffee,
+ 0xfff9, 0xffff,
+ 0x1fffe, 0x1ffff,
+ 0x2fffe, 0x2ffff,
+ 0x3fffe, 0x3ffff,
+ 0x4fffe, 0x4ffff,
+ 0x5fffe, 0x5ffff,
+ 0x6fffe, 0x6ffff,
+ 0x7fffe, 0x7ffff,
+ 0x8fffe, 0x8ffff,
+ 0x9fffe, 0x9ffff,
+ 0xafffe, 0xaffff,
+ 0xbfffe, 0xbffff,
+ 0xcfffe, 0xcffff,
+ 0xdfffe, 0xdffff,
+ 0xefffe, 0x10ffff,
+}; /* CR_Age_3_0 */
+
+/* 'Age_3_1': Derived Age 3.1 */
+static const OnigCodePoint CR_Age_3_1[] = {
+ 402,
+ 0x0000, 0x021f,
+ 0x0222, 0x0233,
+ 0x0250, 0x02ad,
+ 0x02b0, 0x02ee,
+ 0x0300, 0x034e,
+ 0x0360, 0x0362,
+ 0x0374, 0x0375,
+ 0x037a, 0x037a,
+ 0x037e, 0x037e,
+ 0x0384, 0x038a,
+ 0x038c, 0x038c,
+ 0x038e, 0x03a1,
+ 0x03a3, 0x03ce,
+ 0x03d0, 0x03d7,
+ 0x03da, 0x03f5,
+ 0x0400, 0x0486,
+ 0x0488, 0x0489,
+ 0x048c, 0x04c4,
+ 0x04c7, 0x04c8,
+ 0x04cb, 0x04cc,
+ 0x04d0, 0x04f5,
+ 0x04f8, 0x04f9,
+ 0x0531, 0x0556,
+ 0x0559, 0x055f,
+ 0x0561, 0x0587,
+ 0x0589, 0x058a,
+ 0x0591, 0x05a1,
+ 0x05a3, 0x05b9,
+ 0x05bb, 0x05c4,
+ 0x05d0, 0x05ea,
+ 0x05f0, 0x05f4,
+ 0x060c, 0x060c,
+ 0x061b, 0x061b,
+ 0x061f, 0x061f,
+ 0x0621, 0x063a,
+ 0x0640, 0x0655,
+ 0x0660, 0x066d,
+ 0x0670, 0x06ed,
+ 0x06f0, 0x06fe,
+ 0x0700, 0x070d,
+ 0x070f, 0x072c,
+ 0x0730, 0x074a,
+ 0x0780, 0x07b0,
+ 0x0901, 0x0903,
+ 0x0905, 0x0939,
+ 0x093c, 0x094d,
+ 0x0950, 0x0954,
+ 0x0958, 0x0970,
+ 0x0981, 0x0983,
+ 0x0985, 0x098c,
+ 0x098f, 0x0990,
+ 0x0993, 0x09a8,
+ 0x09aa, 0x09b0,
+ 0x09b2, 0x09b2,
+ 0x09b6, 0x09b9,
+ 0x09bc, 0x09bc,
+ 0x09be, 0x09c4,
+ 0x09c7, 0x09c8,
+ 0x09cb, 0x09cd,
+ 0x09d7, 0x09d7,
+ 0x09dc, 0x09dd,
+ 0x09df, 0x09e3,
+ 0x09e6, 0x09fa,
+ 0x0a02, 0x0a02,
+ 0x0a05, 0x0a0a,
+ 0x0a0f, 0x0a10,
+ 0x0a13, 0x0a28,
+ 0x0a2a, 0x0a30,
+ 0x0a32, 0x0a33,
+ 0x0a35, 0x0a36,
+ 0x0a38, 0x0a39,
+ 0x0a3c, 0x0a3c,
+ 0x0a3e, 0x0a42,
+ 0x0a47, 0x0a48,
+ 0x0a4b, 0x0a4d,
+ 0x0a59, 0x0a5c,
+ 0x0a5e, 0x0a5e,
+ 0x0a66, 0x0a74,
+ 0x0a81, 0x0a83,
+ 0x0a85, 0x0a8b,
+ 0x0a8d, 0x0a8d,
+ 0x0a8f, 0x0a91,
+ 0x0a93, 0x0aa8,
+ 0x0aaa, 0x0ab0,
+ 0x0ab2, 0x0ab3,
+ 0x0ab5, 0x0ab9,
+ 0x0abc, 0x0ac5,
+ 0x0ac7, 0x0ac9,
+ 0x0acb, 0x0acd,
+ 0x0ad0, 0x0ad0,
+ 0x0ae0, 0x0ae0,
+ 0x0ae6, 0x0aef,
+ 0x0b01, 0x0b03,
+ 0x0b05, 0x0b0c,
+ 0x0b0f, 0x0b10,
+ 0x0b13, 0x0b28,
+ 0x0b2a, 0x0b30,
+ 0x0b32, 0x0b33,
+ 0x0b36, 0x0b39,
+ 0x0b3c, 0x0b43,
+ 0x0b47, 0x0b48,
+ 0x0b4b, 0x0b4d,
+ 0x0b56, 0x0b57,
+ 0x0b5c, 0x0b5d,
+ 0x0b5f, 0x0b61,
+ 0x0b66, 0x0b70,
+ 0x0b82, 0x0b83,
+ 0x0b85, 0x0b8a,
+ 0x0b8e, 0x0b90,
+ 0x0b92, 0x0b95,
+ 0x0b99, 0x0b9a,
+ 0x0b9c, 0x0b9c,
+ 0x0b9e, 0x0b9f,
+ 0x0ba3, 0x0ba4,
+ 0x0ba8, 0x0baa,
+ 0x0bae, 0x0bb5,
+ 0x0bb7, 0x0bb9,
+ 0x0bbe, 0x0bc2,
+ 0x0bc6, 0x0bc8,
+ 0x0bca, 0x0bcd,
+ 0x0bd7, 0x0bd7,
+ 0x0be7, 0x0bf2,
+ 0x0c01, 0x0c03,
+ 0x0c05, 0x0c0c,
+ 0x0c0e, 0x0c10,
+ 0x0c12, 0x0c28,
+ 0x0c2a, 0x0c33,
+ 0x0c35, 0x0c39,
+ 0x0c3e, 0x0c44,
+ 0x0c46, 0x0c48,
+ 0x0c4a, 0x0c4d,
+ 0x0c55, 0x0c56,
+ 0x0c60, 0x0c61,
+ 0x0c66, 0x0c6f,
+ 0x0c82, 0x0c83,
+ 0x0c85, 0x0c8c,
+ 0x0c8e, 0x0c90,
+ 0x0c92, 0x0ca8,
+ 0x0caa, 0x0cb3,
+ 0x0cb5, 0x0cb9,
+ 0x0cbe, 0x0cc4,
+ 0x0cc6, 0x0cc8,
+ 0x0cca, 0x0ccd,
+ 0x0cd5, 0x0cd6,
+ 0x0cde, 0x0cde,
+ 0x0ce0, 0x0ce1,
+ 0x0ce6, 0x0cef,
+ 0x0d02, 0x0d03,
+ 0x0d05, 0x0d0c,
+ 0x0d0e, 0x0d10,
+ 0x0d12, 0x0d28,
+ 0x0d2a, 0x0d39,
+ 0x0d3e, 0x0d43,
+ 0x0d46, 0x0d48,
+ 0x0d4a, 0x0d4d,
+ 0x0d57, 0x0d57,
+ 0x0d60, 0x0d61,
+ 0x0d66, 0x0d6f,
+ 0x0d82, 0x0d83,
+ 0x0d85, 0x0d96,
+ 0x0d9a, 0x0db1,
+ 0x0db3, 0x0dbb,
+ 0x0dbd, 0x0dbd,
+ 0x0dc0, 0x0dc6,
+ 0x0dca, 0x0dca,
+ 0x0dcf, 0x0dd4,
+ 0x0dd6, 0x0dd6,
+ 0x0dd8, 0x0ddf,
+ 0x0df2, 0x0df4,
+ 0x0e01, 0x0e3a,
+ 0x0e3f, 0x0e5b,
+ 0x0e81, 0x0e82,
+ 0x0e84, 0x0e84,
+ 0x0e87, 0x0e88,
+ 0x0e8a, 0x0e8a,
+ 0x0e8d, 0x0e8d,
+ 0x0e94, 0x0e97,
+ 0x0e99, 0x0e9f,
+ 0x0ea1, 0x0ea3,
+ 0x0ea5, 0x0ea5,
+ 0x0ea7, 0x0ea7,
+ 0x0eaa, 0x0eab,
+ 0x0ead, 0x0eb9,
+ 0x0ebb, 0x0ebd,
+ 0x0ec0, 0x0ec4,
+ 0x0ec6, 0x0ec6,
+ 0x0ec8, 0x0ecd,
+ 0x0ed0, 0x0ed9,
+ 0x0edc, 0x0edd,
+ 0x0f00, 0x0f47,
+ 0x0f49, 0x0f6a,
+ 0x0f71, 0x0f8b,
+ 0x0f90, 0x0f97,
+ 0x0f99, 0x0fbc,
+ 0x0fbe, 0x0fcc,
+ 0x0fcf, 0x0fcf,
+ 0x1000, 0x1021,
+ 0x1023, 0x1027,
+ 0x1029, 0x102a,
+ 0x102c, 0x1032,
+ 0x1036, 0x1039,
+ 0x1040, 0x1059,
+ 0x10a0, 0x10c5,
+ 0x10d0, 0x10f6,
+ 0x10fb, 0x10fb,
+ 0x1100, 0x1159,
+ 0x115f, 0x11a2,
+ 0x11a8, 0x11f9,
+ 0x1200, 0x1206,
+ 0x1208, 0x1246,
+ 0x1248, 0x1248,
+ 0x124a, 0x124d,
+ 0x1250, 0x1256,
+ 0x1258, 0x1258,
+ 0x125a, 0x125d,
+ 0x1260, 0x1286,
+ 0x1288, 0x1288,
+ 0x128a, 0x128d,
+ 0x1290, 0x12ae,
+ 0x12b0, 0x12b0,
+ 0x12b2, 0x12b5,
+ 0x12b8, 0x12be,
+ 0x12c0, 0x12c0,
+ 0x12c2, 0x12c5,
+ 0x12c8, 0x12ce,
+ 0x12d0, 0x12d6,
+ 0x12d8, 0x12ee,
+ 0x12f0, 0x130e,
+ 0x1310, 0x1310,
+ 0x1312, 0x1315,
+ 0x1318, 0x131e,
+ 0x1320, 0x1346,
+ 0x1348, 0x135a,
+ 0x1361, 0x137c,
+ 0x13a0, 0x13f4,
+ 0x1401, 0x1676,
+ 0x1680, 0x169c,
+ 0x16a0, 0x16f0,
+ 0x1780, 0x17dc,
+ 0x17e0, 0x17e9,
+ 0x1800, 0x180e,
+ 0x1810, 0x1819,
+ 0x1820, 0x1877,
+ 0x1880, 0x18a9,
+ 0x1e00, 0x1e9b,
+ 0x1ea0, 0x1ef9,
+ 0x1f00, 0x1f15,
+ 0x1f18, 0x1f1d,
+ 0x1f20, 0x1f45,
+ 0x1f48, 0x1f4d,
+ 0x1f50, 0x1f57,
+ 0x1f59, 0x1f59,
+ 0x1f5b, 0x1f5b,
+ 0x1f5d, 0x1f5d,
+ 0x1f5f, 0x1f7d,
+ 0x1f80, 0x1fb4,
+ 0x1fb6, 0x1fc4,
+ 0x1fc6, 0x1fd3,
+ 0x1fd6, 0x1fdb,
+ 0x1fdd, 0x1fef,
+ 0x1ff2, 0x1ff4,
+ 0x1ff6, 0x1ffe,
+ 0x2000, 0x2046,
+ 0x2048, 0x204d,
+ 0x206a, 0x2070,
+ 0x2074, 0x208e,
+ 0x20a0, 0x20af,
+ 0x20d0, 0x20e3,
+ 0x2100, 0x213a,
+ 0x2153, 0x2183,
+ 0x2190, 0x21f3,
+ 0x2200, 0x22f1,
+ 0x2300, 0x237b,
+ 0x237d, 0x239a,
+ 0x2400, 0x2426,
+ 0x2440, 0x244a,
+ 0x2460, 0x24ea,
+ 0x2500, 0x2595,
+ 0x25a0, 0x25f7,
+ 0x2600, 0x2613,
+ 0x2619, 0x2671,
+ 0x2701, 0x2704,
+ 0x2706, 0x2709,
+ 0x270c, 0x2727,
+ 0x2729, 0x274b,
+ 0x274d, 0x274d,
+ 0x274f, 0x2752,
+ 0x2756, 0x2756,
+ 0x2758, 0x275e,
+ 0x2761, 0x2767,
+ 0x2776, 0x2794,
+ 0x2798, 0x27af,
+ 0x27b1, 0x27be,
+ 0x2800, 0x28ff,
+ 0x2e80, 0x2e99,
+ 0x2e9b, 0x2ef3,
+ 0x2f00, 0x2fd5,
+ 0x2ff0, 0x2ffb,
+ 0x3000, 0x303a,
+ 0x303e, 0x303f,
+ 0x3041, 0x3094,
+ 0x3099, 0x309e,
+ 0x30a1, 0x30fe,
+ 0x3105, 0x312c,
+ 0x3131, 0x318e,
+ 0x3190, 0x31b7,
+ 0x3200, 0x321c,
+ 0x3220, 0x3243,
+ 0x3260, 0x327b,
+ 0x327f, 0x32b0,
+ 0x32c0, 0x32cb,
+ 0x32d0, 0x32fe,
+ 0x3300, 0x3376,
+ 0x337b, 0x33dd,
+ 0x33e0, 0x33fe,
+ 0x3400, 0x4db5,
+ 0x4e00, 0x9fa5,
+ 0xa000, 0xa48c,
+ 0xa490, 0xa4a1,
+ 0xa4a4, 0xa4b3,
+ 0xa4b5, 0xa4c0,
+ 0xa4c2, 0xa4c4,
+ 0xa4c6, 0xa4c6,
+ 0xac00, 0xd7a3,
+ 0xd800, 0xfa2d,
+ 0xfb00, 0xfb06,
+ 0xfb13, 0xfb17,
+ 0xfb1d, 0xfb36,
+ 0xfb38, 0xfb3c,
+ 0xfb3e, 0xfb3e,
+ 0xfb40, 0xfb41,
+ 0xfb43, 0xfb44,
+ 0xfb46, 0xfbb1,
+ 0xfbd3, 0xfd3f,
+ 0xfd50, 0xfd8f,
+ 0xfd92, 0xfdc7,
+ 0xfdd0, 0xfdfb,
+ 0xfe20, 0xfe23,
+ 0xfe30, 0xfe44,
+ 0xfe49, 0xfe52,
+ 0xfe54, 0xfe66,
+ 0xfe68, 0xfe6b,
+ 0xfe70, 0xfe72,
+ 0xfe74, 0xfe74,
+ 0xfe76, 0xfefc,
+ 0xfeff, 0xfeff,
+ 0xff01, 0xff5e,
+ 0xff61, 0xffbe,
+ 0xffc2, 0xffc7,
+ 0xffca, 0xffcf,
+ 0xffd2, 0xffd7,
+ 0xffda, 0xffdc,
+ 0xffe0, 0xffe6,
+ 0xffe8, 0xffee,
+ 0xfff9, 0xffff,
+ 0x10300, 0x1031e,
+ 0x10320, 0x10323,
+ 0x10330, 0x1034a,
+ 0x10400, 0x10425,
+ 0x10428, 0x1044d,
+ 0x1d000, 0x1d0f5,
+ 0x1d100, 0x1d126,
+ 0x1d12a, 0x1d1dd,
+ 0x1d400, 0x1d454,
+ 0x1d456, 0x1d49c,
+ 0x1d49e, 0x1d49f,
+ 0x1d4a2, 0x1d4a2,
+ 0x1d4a5, 0x1d4a6,
+ 0x1d4a9, 0x1d4ac,
+ 0x1d4ae, 0x1d4b9,
+ 0x1d4bb, 0x1d4bb,
+ 0x1d4bd, 0x1d4c0,
+ 0x1d4c2, 0x1d4c3,
+ 0x1d4c5, 0x1d505,
+ 0x1d507, 0x1d50a,
+ 0x1d50d, 0x1d514,
+ 0x1d516, 0x1d51c,
+ 0x1d51e, 0x1d539,
+ 0x1d53b, 0x1d53e,
+ 0x1d540, 0x1d544,
+ 0x1d546, 0x1d546,
+ 0x1d54a, 0x1d550,
+ 0x1d552, 0x1d6a3,
+ 0x1d6a8, 0x1d7c9,
+ 0x1d7ce, 0x1d7ff,
+ 0x1fffe, 0x2a6d6,
+ 0x2f800, 0x2fa1d,
+ 0x2fffe, 0x2ffff,
+ 0x3fffe, 0x3ffff,
+ 0x4fffe, 0x4ffff,
+ 0x5fffe, 0x5ffff,
+ 0x6fffe, 0x6ffff,
+ 0x7fffe, 0x7ffff,
+ 0x8fffe, 0x8ffff,
+ 0x9fffe, 0x9ffff,
+ 0xafffe, 0xaffff,
+ 0xbfffe, 0xbffff,
+ 0xcfffe, 0xcffff,
+ 0xdfffe, 0xdffff,
+ 0xe0001, 0xe0001,
+ 0xe0020, 0xe007f,
+ 0xefffe, 0x10ffff,
+}; /* CR_Age_3_1 */
+
+/* 'Age_3_2': Derived Age 3.2 */
+static const OnigCodePoint CR_Age_3_2[] = {
+ 397,
+ 0x0000, 0x0220,
+ 0x0222, 0x0233,
+ 0x0250, 0x02ad,
+ 0x02b0, 0x02ee,
+ 0x0300, 0x034f,
+ 0x0360, 0x036f,
+ 0x0374, 0x0375,
+ 0x037a, 0x037a,
+ 0x037e, 0x037e,
+ 0x0384, 0x038a,
+ 0x038c, 0x038c,
+ 0x038e, 0x03a1,
+ 0x03a3, 0x03ce,
+ 0x03d0, 0x03f6,
+ 0x0400, 0x0486,
+ 0x0488, 0x04ce,
+ 0x04d0, 0x04f5,
+ 0x04f8, 0x04f9,
+ 0x0500, 0x050f,
+ 0x0531, 0x0556,
+ 0x0559, 0x055f,
+ 0x0561, 0x0587,
+ 0x0589, 0x058a,
+ 0x0591, 0x05a1,
+ 0x05a3, 0x05b9,
+ 0x05bb, 0x05c4,
+ 0x05d0, 0x05ea,
+ 0x05f0, 0x05f4,
+ 0x060c, 0x060c,
+ 0x061b, 0x061b,
+ 0x061f, 0x061f,
+ 0x0621, 0x063a,
+ 0x0640, 0x0655,
+ 0x0660, 0x06ed,
+ 0x06f0, 0x06fe,
+ 0x0700, 0x070d,
+ 0x070f, 0x072c,
+ 0x0730, 0x074a,
+ 0x0780, 0x07b1,
+ 0x0901, 0x0903,
+ 0x0905, 0x0939,
+ 0x093c, 0x094d,
+ 0x0950, 0x0954,
+ 0x0958, 0x0970,
+ 0x0981, 0x0983,
+ 0x0985, 0x098c,
+ 0x098f, 0x0990,
+ 0x0993, 0x09a8,
+ 0x09aa, 0x09b0,
+ 0x09b2, 0x09b2,
+ 0x09b6, 0x09b9,
+ 0x09bc, 0x09bc,
+ 0x09be, 0x09c4,
+ 0x09c7, 0x09c8,
+ 0x09cb, 0x09cd,
+ 0x09d7, 0x09d7,
+ 0x09dc, 0x09dd,
+ 0x09df, 0x09e3,
+ 0x09e6, 0x09fa,
+ 0x0a02, 0x0a02,
+ 0x0a05, 0x0a0a,
+ 0x0a0f, 0x0a10,
+ 0x0a13, 0x0a28,
+ 0x0a2a, 0x0a30,
+ 0x0a32, 0x0a33,
+ 0x0a35, 0x0a36,
+ 0x0a38, 0x0a39,
+ 0x0a3c, 0x0a3c,
+ 0x0a3e, 0x0a42,
+ 0x0a47, 0x0a48,
+ 0x0a4b, 0x0a4d,
+ 0x0a59, 0x0a5c,
+ 0x0a5e, 0x0a5e,
+ 0x0a66, 0x0a74,
+ 0x0a81, 0x0a83,
+ 0x0a85, 0x0a8b,
+ 0x0a8d, 0x0a8d,
+ 0x0a8f, 0x0a91,
+ 0x0a93, 0x0aa8,
+ 0x0aaa, 0x0ab0,
+ 0x0ab2, 0x0ab3,
+ 0x0ab5, 0x0ab9,
+ 0x0abc, 0x0ac5,
+ 0x0ac7, 0x0ac9,
+ 0x0acb, 0x0acd,
+ 0x0ad0, 0x0ad0,
+ 0x0ae0, 0x0ae0,
+ 0x0ae6, 0x0aef,
+ 0x0b01, 0x0b03,
+ 0x0b05, 0x0b0c,
+ 0x0b0f, 0x0b10,
+ 0x0b13, 0x0b28,
+ 0x0b2a, 0x0b30,
+ 0x0b32, 0x0b33,
+ 0x0b36, 0x0b39,
+ 0x0b3c, 0x0b43,
+ 0x0b47, 0x0b48,
+ 0x0b4b, 0x0b4d,
+ 0x0b56, 0x0b57,
+ 0x0b5c, 0x0b5d,
+ 0x0b5f, 0x0b61,
+ 0x0b66, 0x0b70,
+ 0x0b82, 0x0b83,
+ 0x0b85, 0x0b8a,
+ 0x0b8e, 0x0b90,
+ 0x0b92, 0x0b95,
+ 0x0b99, 0x0b9a,
+ 0x0b9c, 0x0b9c,
+ 0x0b9e, 0x0b9f,
+ 0x0ba3, 0x0ba4,
+ 0x0ba8, 0x0baa,
+ 0x0bae, 0x0bb5,
+ 0x0bb7, 0x0bb9,
+ 0x0bbe, 0x0bc2,
+ 0x0bc6, 0x0bc8,
+ 0x0bca, 0x0bcd,
+ 0x0bd7, 0x0bd7,
+ 0x0be7, 0x0bf2,
+ 0x0c01, 0x0c03,
+ 0x0c05, 0x0c0c,
+ 0x0c0e, 0x0c10,
+ 0x0c12, 0x0c28,
+ 0x0c2a, 0x0c33,
+ 0x0c35, 0x0c39,
+ 0x0c3e, 0x0c44,
+ 0x0c46, 0x0c48,
+ 0x0c4a, 0x0c4d,
+ 0x0c55, 0x0c56,
+ 0x0c60, 0x0c61,
+ 0x0c66, 0x0c6f,
+ 0x0c82, 0x0c83,
+ 0x0c85, 0x0c8c,
+ 0x0c8e, 0x0c90,
+ 0x0c92, 0x0ca8,
+ 0x0caa, 0x0cb3,
+ 0x0cb5, 0x0cb9,
+ 0x0cbe, 0x0cc4,
+ 0x0cc6, 0x0cc8,
+ 0x0cca, 0x0ccd,
+ 0x0cd5, 0x0cd6,
+ 0x0cde, 0x0cde,
+ 0x0ce0, 0x0ce1,
+ 0x0ce6, 0x0cef,
+ 0x0d02, 0x0d03,
+ 0x0d05, 0x0d0c,
+ 0x0d0e, 0x0d10,
+ 0x0d12, 0x0d28,
+ 0x0d2a, 0x0d39,
+ 0x0d3e, 0x0d43,
+ 0x0d46, 0x0d48,
+ 0x0d4a, 0x0d4d,
+ 0x0d57, 0x0d57,
+ 0x0d60, 0x0d61,
+ 0x0d66, 0x0d6f,
+ 0x0d82, 0x0d83,
+ 0x0d85, 0x0d96,
+ 0x0d9a, 0x0db1,
+ 0x0db3, 0x0dbb,
+ 0x0dbd, 0x0dbd,
+ 0x0dc0, 0x0dc6,
+ 0x0dca, 0x0dca,
+ 0x0dcf, 0x0dd4,
+ 0x0dd6, 0x0dd6,
+ 0x0dd8, 0x0ddf,
+ 0x0df2, 0x0df4,
+ 0x0e01, 0x0e3a,
+ 0x0e3f, 0x0e5b,
+ 0x0e81, 0x0e82,
+ 0x0e84, 0x0e84,
+ 0x0e87, 0x0e88,
+ 0x0e8a, 0x0e8a,
+ 0x0e8d, 0x0e8d,
+ 0x0e94, 0x0e97,
+ 0x0e99, 0x0e9f,
+ 0x0ea1, 0x0ea3,
+ 0x0ea5, 0x0ea5,
+ 0x0ea7, 0x0ea7,
+ 0x0eaa, 0x0eab,
+ 0x0ead, 0x0eb9,
+ 0x0ebb, 0x0ebd,
+ 0x0ec0, 0x0ec4,
+ 0x0ec6, 0x0ec6,
+ 0x0ec8, 0x0ecd,
+ 0x0ed0, 0x0ed9,
+ 0x0edc, 0x0edd,
+ 0x0f00, 0x0f47,
+ 0x0f49, 0x0f6a,
+ 0x0f71, 0x0f8b,
+ 0x0f90, 0x0f97,
+ 0x0f99, 0x0fbc,
+ 0x0fbe, 0x0fcc,
+ 0x0fcf, 0x0fcf,
+ 0x1000, 0x1021,
+ 0x1023, 0x1027,
+ 0x1029, 0x102a,
+ 0x102c, 0x1032,
+ 0x1036, 0x1039,
+ 0x1040, 0x1059,
+ 0x10a0, 0x10c5,
+ 0x10d0, 0x10f8,
+ 0x10fb, 0x10fb,
+ 0x1100, 0x1159,
+ 0x115f, 0x11a2,
+ 0x11a8, 0x11f9,
+ 0x1200, 0x1206,
+ 0x1208, 0x1246,
+ 0x1248, 0x1248,
+ 0x124a, 0x124d,
+ 0x1250, 0x1256,
+ 0x1258, 0x1258,
+ 0x125a, 0x125d,
+ 0x1260, 0x1286,
+ 0x1288, 0x1288,
+ 0x128a, 0x128d,
+ 0x1290, 0x12ae,
+ 0x12b0, 0x12b0,
+ 0x12b2, 0x12b5,
+ 0x12b8, 0x12be,
+ 0x12c0, 0x12c0,
+ 0x12c2, 0x12c5,
+ 0x12c8, 0x12ce,
+ 0x12d0, 0x12d6,
+ 0x12d8, 0x12ee,
+ 0x12f0, 0x130e,
+ 0x1310, 0x1310,
+ 0x1312, 0x1315,
+ 0x1318, 0x131e,
+ 0x1320, 0x1346,
+ 0x1348, 0x135a,
+ 0x1361, 0x137c,
+ 0x13a0, 0x13f4,
+ 0x1401, 0x1676,
+ 0x1680, 0x169c,
+ 0x16a0, 0x16f0,
+ 0x1700, 0x170c,
+ 0x170e, 0x1714,
+ 0x1720, 0x1736,
+ 0x1740, 0x1753,
+ 0x1760, 0x176c,
+ 0x176e, 0x1770,
+ 0x1772, 0x1773,
+ 0x1780, 0x17dc,
+ 0x17e0, 0x17e9,
+ 0x1800, 0x180e,
+ 0x1810, 0x1819,
+ 0x1820, 0x1877,
+ 0x1880, 0x18a9,
+ 0x1e00, 0x1e9b,
+ 0x1ea0, 0x1ef9,
+ 0x1f00, 0x1f15,
+ 0x1f18, 0x1f1d,
+ 0x1f20, 0x1f45,
+ 0x1f48, 0x1f4d,
+ 0x1f50, 0x1f57,
+ 0x1f59, 0x1f59,
+ 0x1f5b, 0x1f5b,
+ 0x1f5d, 0x1f5d,
+ 0x1f5f, 0x1f7d,
+ 0x1f80, 0x1fb4,
+ 0x1fb6, 0x1fc4,
+ 0x1fc6, 0x1fd3,
+ 0x1fd6, 0x1fdb,
+ 0x1fdd, 0x1fef,
+ 0x1ff2, 0x1ff4,
+ 0x1ff6, 0x1ffe,
+ 0x2000, 0x2052,
+ 0x2057, 0x2057,
+ 0x205f, 0x2063,
+ 0x206a, 0x2071,
+ 0x2074, 0x208e,
+ 0x20a0, 0x20b1,
+ 0x20d0, 0x20ea,
+ 0x2100, 0x213a,
+ 0x213d, 0x214b,
+ 0x2153, 0x2183,
+ 0x2190, 0x23ce,
+ 0x2400, 0x2426,
+ 0x2440, 0x244a,
+ 0x2460, 0x24fe,
+ 0x2500, 0x2613,
+ 0x2616, 0x2617,
+ 0x2619, 0x267d,
+ 0x2680, 0x2689,
+ 0x2701, 0x2704,
+ 0x2706, 0x2709,
+ 0x270c, 0x2727,
+ 0x2729, 0x274b,
+ 0x274d, 0x274d,
+ 0x274f, 0x2752,
+ 0x2756, 0x2756,
+ 0x2758, 0x275e,
+ 0x2761, 0x2794,
+ 0x2798, 0x27af,
+ 0x27b1, 0x27be,
+ 0x27d0, 0x27eb,
+ 0x27f0, 0x2aff,
+ 0x2e80, 0x2e99,
+ 0x2e9b, 0x2ef3,
+ 0x2f00, 0x2fd5,
+ 0x2ff0, 0x2ffb,
+ 0x3000, 0x303f,
+ 0x3041, 0x3096,
+ 0x3099, 0x30ff,
+ 0x3105, 0x312c,
+ 0x3131, 0x318e,
+ 0x3190, 0x31b7,
+ 0x31f0, 0x321c,
+ 0x3220, 0x3243,
+ 0x3251, 0x327b,
+ 0x327f, 0x32cb,
+ 0x32d0, 0x32fe,
+ 0x3300, 0x3376,
+ 0x337b, 0x33dd,
+ 0x33e0, 0x33fe,
+ 0x3400, 0x4db5,
+ 0x4e00, 0x9fa5,
+ 0xa000, 0xa48c,
+ 0xa490, 0xa4c6,
+ 0xac00, 0xd7a3,
+ 0xd800, 0xfa2d,
+ 0xfa30, 0xfa6a,
+ 0xfb00, 0xfb06,
+ 0xfb13, 0xfb17,
+ 0xfb1d, 0xfb36,
+ 0xfb38, 0xfb3c,
+ 0xfb3e, 0xfb3e,
+ 0xfb40, 0xfb41,
+ 0xfb43, 0xfb44,
+ 0xfb46, 0xfbb1,
+ 0xfbd3, 0xfd3f,
+ 0xfd50, 0xfd8f,
+ 0xfd92, 0xfdc7,
+ 0xfdd0, 0xfdfc,
+ 0xfe00, 0xfe0f,
+ 0xfe20, 0xfe23,
+ 0xfe30, 0xfe46,
+ 0xfe49, 0xfe52,
+ 0xfe54, 0xfe66,
+ 0xfe68, 0xfe6b,
+ 0xfe70, 0xfe74,
+ 0xfe76, 0xfefc,
+ 0xfeff, 0xfeff,
+ 0xff01, 0xffbe,
+ 0xffc2, 0xffc7,
+ 0xffca, 0xffcf,
+ 0xffd2, 0xffd7,
+ 0xffda, 0xffdc,
+ 0xffe0, 0xffe6,
+ 0xffe8, 0xffee,
+ 0xfff9, 0xffff,
+ 0x10300, 0x1031e,
+ 0x10320, 0x10323,
+ 0x10330, 0x1034a,
+ 0x10400, 0x10425,
+ 0x10428, 0x1044d,
+ 0x1d000, 0x1d0f5,
+ 0x1d100, 0x1d126,
+ 0x1d12a, 0x1d1dd,
+ 0x1d400, 0x1d454,
+ 0x1d456, 0x1d49c,
+ 0x1d49e, 0x1d49f,
+ 0x1d4a2, 0x1d4a2,
+ 0x1d4a5, 0x1d4a6,
+ 0x1d4a9, 0x1d4ac,
+ 0x1d4ae, 0x1d4b9,
+ 0x1d4bb, 0x1d4bb,
+ 0x1d4bd, 0x1d4c0,
+ 0x1d4c2, 0x1d4c3,
+ 0x1d4c5, 0x1d505,
+ 0x1d507, 0x1d50a,
+ 0x1d50d, 0x1d514,
+ 0x1d516, 0x1d51c,
+ 0x1d51e, 0x1d539,
+ 0x1d53b, 0x1d53e,
+ 0x1d540, 0x1d544,
+ 0x1d546, 0x1d546,
+ 0x1d54a, 0x1d550,
+ 0x1d552, 0x1d6a3,
+ 0x1d6a8, 0x1d7c9,
+ 0x1d7ce, 0x1d7ff,
+ 0x1fffe, 0x2a6d6,
+ 0x2f800, 0x2fa1d,
+ 0x2fffe, 0x2ffff,
+ 0x3fffe, 0x3ffff,
+ 0x4fffe, 0x4ffff,
+ 0x5fffe, 0x5ffff,
+ 0x6fffe, 0x6ffff,
+ 0x7fffe, 0x7ffff,
+ 0x8fffe, 0x8ffff,
+ 0x9fffe, 0x9ffff,
+ 0xafffe, 0xaffff,
+ 0xbfffe, 0xbffff,
+ 0xcfffe, 0xcffff,
+ 0xdfffe, 0xdffff,
+ 0xe0001, 0xe0001,
+ 0xe0020, 0xe007f,
+ 0xefffe, 0x10ffff,
+}; /* CR_Age_3_2 */
+
+/* 'Age_4_0': Derived Age 4.0 */
+static const OnigCodePoint CR_Age_4_0[] = {
+ 412,
+ 0x0000, 0x0236,
+ 0x0250, 0x0357,
+ 0x035d, 0x036f,
+ 0x0374, 0x0375,
+ 0x037a, 0x037a,
+ 0x037e, 0x037e,
+ 0x0384, 0x038a,
+ 0x038c, 0x038c,
+ 0x038e, 0x03a1,
+ 0x03a3, 0x03ce,
+ 0x03d0, 0x03fb,
+ 0x0400, 0x0486,
+ 0x0488, 0x04ce,
+ 0x04d0, 0x04f5,
+ 0x04f8, 0x04f9,
+ 0x0500, 0x050f,
+ 0x0531, 0x0556,
+ 0x0559, 0x055f,
+ 0x0561, 0x0587,
+ 0x0589, 0x058a,
+ 0x0591, 0x05a1,
+ 0x05a3, 0x05b9,
+ 0x05bb, 0x05c4,
+ 0x05d0, 0x05ea,
+ 0x05f0, 0x05f4,
+ 0x0600, 0x0603,
+ 0x060c, 0x0615,
+ 0x061b, 0x061b,
+ 0x061f, 0x061f,
+ 0x0621, 0x063a,
+ 0x0640, 0x0658,
+ 0x0660, 0x070d,
+ 0x070f, 0x074a,
+ 0x074d, 0x074f,
+ 0x0780, 0x07b1,
+ 0x0901, 0x0939,
+ 0x093c, 0x094d,
+ 0x0950, 0x0954,
+ 0x0958, 0x0970,
+ 0x0981, 0x0983,
+ 0x0985, 0x098c,
+ 0x098f, 0x0990,
+ 0x0993, 0x09a8,
+ 0x09aa, 0x09b0,
+ 0x09b2, 0x09b2,
+ 0x09b6, 0x09b9,
+ 0x09bc, 0x09c4,
+ 0x09c7, 0x09c8,
+ 0x09cb, 0x09cd,
+ 0x09d7, 0x09d7,
+ 0x09dc, 0x09dd,
+ 0x09df, 0x09e3,
+ 0x09e6, 0x09fa,
+ 0x0a01, 0x0a03,
+ 0x0a05, 0x0a0a,
+ 0x0a0f, 0x0a10,
+ 0x0a13, 0x0a28,
+ 0x0a2a, 0x0a30,
+ 0x0a32, 0x0a33,
+ 0x0a35, 0x0a36,
+ 0x0a38, 0x0a39,
+ 0x0a3c, 0x0a3c,
+ 0x0a3e, 0x0a42,
+ 0x0a47, 0x0a48,
+ 0x0a4b, 0x0a4d,
+ 0x0a59, 0x0a5c,
+ 0x0a5e, 0x0a5e,
+ 0x0a66, 0x0a74,
+ 0x0a81, 0x0a83,
+ 0x0a85, 0x0a8d,
+ 0x0a8f, 0x0a91,
+ 0x0a93, 0x0aa8,
+ 0x0aaa, 0x0ab0,
+ 0x0ab2, 0x0ab3,
+ 0x0ab5, 0x0ab9,
+ 0x0abc, 0x0ac5,
+ 0x0ac7, 0x0ac9,
+ 0x0acb, 0x0acd,
+ 0x0ad0, 0x0ad0,
+ 0x0ae0, 0x0ae3,
+ 0x0ae6, 0x0aef,
+ 0x0af1, 0x0af1,
+ 0x0b01, 0x0b03,
+ 0x0b05, 0x0b0c,
+ 0x0b0f, 0x0b10,
+ 0x0b13, 0x0b28,
+ 0x0b2a, 0x0b30,
+ 0x0b32, 0x0b33,
+ 0x0b35, 0x0b39,
+ 0x0b3c, 0x0b43,
+ 0x0b47, 0x0b48,
+ 0x0b4b, 0x0b4d,
+ 0x0b56, 0x0b57,
+ 0x0b5c, 0x0b5d,
+ 0x0b5f, 0x0b61,
+ 0x0b66, 0x0b71,
+ 0x0b82, 0x0b83,
+ 0x0b85, 0x0b8a,
+ 0x0b8e, 0x0b90,
+ 0x0b92, 0x0b95,
+ 0x0b99, 0x0b9a,
+ 0x0b9c, 0x0b9c,
+ 0x0b9e, 0x0b9f,
+ 0x0ba3, 0x0ba4,
+ 0x0ba8, 0x0baa,
+ 0x0bae, 0x0bb5,
+ 0x0bb7, 0x0bb9,
+ 0x0bbe, 0x0bc2,
+ 0x0bc6, 0x0bc8,
+ 0x0bca, 0x0bcd,
+ 0x0bd7, 0x0bd7,
+ 0x0be7, 0x0bfa,
+ 0x0c01, 0x0c03,
+ 0x0c05, 0x0c0c,
+ 0x0c0e, 0x0c10,
+ 0x0c12, 0x0c28,
+ 0x0c2a, 0x0c33,
+ 0x0c35, 0x0c39,
+ 0x0c3e, 0x0c44,
+ 0x0c46, 0x0c48,
+ 0x0c4a, 0x0c4d,
+ 0x0c55, 0x0c56,
+ 0x0c60, 0x0c61,
+ 0x0c66, 0x0c6f,
+ 0x0c82, 0x0c83,
+ 0x0c85, 0x0c8c,
+ 0x0c8e, 0x0c90,
+ 0x0c92, 0x0ca8,
+ 0x0caa, 0x0cb3,
+ 0x0cb5, 0x0cb9,
+ 0x0cbc, 0x0cc4,
+ 0x0cc6, 0x0cc8,
+ 0x0cca, 0x0ccd,
+ 0x0cd5, 0x0cd6,
+ 0x0cde, 0x0cde,
+ 0x0ce0, 0x0ce1,
+ 0x0ce6, 0x0cef,
+ 0x0d02, 0x0d03,
+ 0x0d05, 0x0d0c,
+ 0x0d0e, 0x0d10,
+ 0x0d12, 0x0d28,
+ 0x0d2a, 0x0d39,
+ 0x0d3e, 0x0d43,
+ 0x0d46, 0x0d48,
+ 0x0d4a, 0x0d4d,
+ 0x0d57, 0x0d57,
+ 0x0d60, 0x0d61,
+ 0x0d66, 0x0d6f,
+ 0x0d82, 0x0d83,
+ 0x0d85, 0x0d96,
+ 0x0d9a, 0x0db1,
+ 0x0db3, 0x0dbb,
+ 0x0dbd, 0x0dbd,
+ 0x0dc0, 0x0dc6,
+ 0x0dca, 0x0dca,
+ 0x0dcf, 0x0dd4,
+ 0x0dd6, 0x0dd6,
+ 0x0dd8, 0x0ddf,
+ 0x0df2, 0x0df4,
+ 0x0e01, 0x0e3a,
+ 0x0e3f, 0x0e5b,
+ 0x0e81, 0x0e82,
+ 0x0e84, 0x0e84,
+ 0x0e87, 0x0e88,
+ 0x0e8a, 0x0e8a,
+ 0x0e8d, 0x0e8d,
+ 0x0e94, 0x0e97,
+ 0x0e99, 0x0e9f,
+ 0x0ea1, 0x0ea3,
+ 0x0ea5, 0x0ea5,
+ 0x0ea7, 0x0ea7,
+ 0x0eaa, 0x0eab,
+ 0x0ead, 0x0eb9,
+ 0x0ebb, 0x0ebd,
+ 0x0ec0, 0x0ec4,
+ 0x0ec6, 0x0ec6,
+ 0x0ec8, 0x0ecd,
+ 0x0ed0, 0x0ed9,
+ 0x0edc, 0x0edd,
+ 0x0f00, 0x0f47,
+ 0x0f49, 0x0f6a,
+ 0x0f71, 0x0f8b,
+ 0x0f90, 0x0f97,
+ 0x0f99, 0x0fbc,
+ 0x0fbe, 0x0fcc,
+ 0x0fcf, 0x0fcf,
+ 0x1000, 0x1021,
+ 0x1023, 0x1027,
+ 0x1029, 0x102a,
+ 0x102c, 0x1032,
+ 0x1036, 0x1039,
+ 0x1040, 0x1059,
+ 0x10a0, 0x10c5,
+ 0x10d0, 0x10f8,
+ 0x10fb, 0x10fb,
+ 0x1100, 0x1159,
+ 0x115f, 0x11a2,
+ 0x11a8, 0x11f9,
+ 0x1200, 0x1206,
+ 0x1208, 0x1246,
+ 0x1248, 0x1248,
+ 0x124a, 0x124d,
+ 0x1250, 0x1256,
+ 0x1258, 0x1258,
+ 0x125a, 0x125d,
+ 0x1260, 0x1286,
+ 0x1288, 0x1288,
+ 0x128a, 0x128d,
+ 0x1290, 0x12ae,
+ 0x12b0, 0x12b0,
+ 0x12b2, 0x12b5,
+ 0x12b8, 0x12be,
+ 0x12c0, 0x12c0,
+ 0x12c2, 0x12c5,
+ 0x12c8, 0x12ce,
+ 0x12d0, 0x12d6,
+ 0x12d8, 0x12ee,
+ 0x12f0, 0x130e,
+ 0x1310, 0x1310,
+ 0x1312, 0x1315,
+ 0x1318, 0x131e,
+ 0x1320, 0x1346,
+ 0x1348, 0x135a,
+ 0x1361, 0x137c,
+ 0x13a0, 0x13f4,
+ 0x1401, 0x1676,
+ 0x1680, 0x169c,
+ 0x16a0, 0x16f0,
+ 0x1700, 0x170c,
+ 0x170e, 0x1714,
+ 0x1720, 0x1736,
+ 0x1740, 0x1753,
+ 0x1760, 0x176c,
+ 0x176e, 0x1770,
+ 0x1772, 0x1773,
+ 0x1780, 0x17dd,
+ 0x17e0, 0x17e9,
+ 0x17f0, 0x17f9,
+ 0x1800, 0x180e,
+ 0x1810, 0x1819,
+ 0x1820, 0x1877,
+ 0x1880, 0x18a9,
+ 0x1900, 0x191c,
+ 0x1920, 0x192b,
+ 0x1930, 0x193b,
+ 0x1940, 0x1940,
+ 0x1944, 0x196d,
+ 0x1970, 0x1974,
+ 0x19e0, 0x19ff,
+ 0x1d00, 0x1d6b,
+ 0x1e00, 0x1e9b,
+ 0x1ea0, 0x1ef9,
+ 0x1f00, 0x1f15,
+ 0x1f18, 0x1f1d,
+ 0x1f20, 0x1f45,
+ 0x1f48, 0x1f4d,
+ 0x1f50, 0x1f57,
+ 0x1f59, 0x1f59,
+ 0x1f5b, 0x1f5b,
+ 0x1f5d, 0x1f5d,
+ 0x1f5f, 0x1f7d,
+ 0x1f80, 0x1fb4,
+ 0x1fb6, 0x1fc4,
+ 0x1fc6, 0x1fd3,
+ 0x1fd6, 0x1fdb,
+ 0x1fdd, 0x1fef,
+ 0x1ff2, 0x1ff4,
+ 0x1ff6, 0x1ffe,
+ 0x2000, 0x2054,
+ 0x2057, 0x2057,
+ 0x205f, 0x2063,
+ 0x206a, 0x2071,
+ 0x2074, 0x208e,
+ 0x20a0, 0x20b1,
+ 0x20d0, 0x20ea,
+ 0x2100, 0x213b,
+ 0x213d, 0x214b,
+ 0x2153, 0x2183,
+ 0x2190, 0x23d0,
+ 0x2400, 0x2426,
+ 0x2440, 0x244a,
+ 0x2460, 0x2617,
+ 0x2619, 0x267d,
+ 0x2680, 0x2691,
+ 0x26a0, 0x26a1,
+ 0x2701, 0x2704,
+ 0x2706, 0x2709,
+ 0x270c, 0x2727,
+ 0x2729, 0x274b,
+ 0x274d, 0x274d,
+ 0x274f, 0x2752,
+ 0x2756, 0x2756,
+ 0x2758, 0x275e,
+ 0x2761, 0x2794,
+ 0x2798, 0x27af,
+ 0x27b1, 0x27be,
+ 0x27d0, 0x27eb,
+ 0x27f0, 0x2b0d,
+ 0x2e80, 0x2e99,
+ 0x2e9b, 0x2ef3,
+ 0x2f00, 0x2fd5,
+ 0x2ff0, 0x2ffb,
+ 0x3000, 0x303f,
+ 0x3041, 0x3096,
+ 0x3099, 0x30ff,
+ 0x3105, 0x312c,
+ 0x3131, 0x318e,
+ 0x3190, 0x31b7,
+ 0x31f0, 0x321e,
+ 0x3220, 0x3243,
+ 0x3250, 0x327d,
+ 0x327f, 0x32fe,
+ 0x3300, 0x4db5,
+ 0x4dc0, 0x9fa5,
+ 0xa000, 0xa48c,
+ 0xa490, 0xa4c6,
+ 0xac00, 0xd7a3,
+ 0xd800, 0xfa2d,
+ 0xfa30, 0xfa6a,
+ 0xfb00, 0xfb06,
+ 0xfb13, 0xfb17,
+ 0xfb1d, 0xfb36,
+ 0xfb38, 0xfb3c,
+ 0xfb3e, 0xfb3e,
+ 0xfb40, 0xfb41,
+ 0xfb43, 0xfb44,
+ 0xfb46, 0xfbb1,
+ 0xfbd3, 0xfd3f,
+ 0xfd50, 0xfd8f,
+ 0xfd92, 0xfdc7,
+ 0xfdd0, 0xfdfd,
+ 0xfe00, 0xfe0f,
+ 0xfe20, 0xfe23,
+ 0xfe30, 0xfe52,
+ 0xfe54, 0xfe66,
+ 0xfe68, 0xfe6b,
+ 0xfe70, 0xfe74,
+ 0xfe76, 0xfefc,
+ 0xfeff, 0xfeff,
+ 0xff01, 0xffbe,
+ 0xffc2, 0xffc7,
+ 0xffca, 0xffcf,
+ 0xffd2, 0xffd7,
+ 0xffda, 0xffdc,
+ 0xffe0, 0xffe6,
+ 0xffe8, 0xffee,
+ 0xfff9, 0x1000b,
+ 0x1000d, 0x10026,
+ 0x10028, 0x1003a,
+ 0x1003c, 0x1003d,
+ 0x1003f, 0x1004d,
+ 0x10050, 0x1005d,
+ 0x10080, 0x100fa,
+ 0x10100, 0x10102,
+ 0x10107, 0x10133,
+ 0x10137, 0x1013f,
+ 0x10300, 0x1031e,
+ 0x10320, 0x10323,
+ 0x10330, 0x1034a,
+ 0x10380, 0x1039d,
+ 0x1039f, 0x1039f,
+ 0x10400, 0x1049d,
+ 0x104a0, 0x104a9,
+ 0x10800, 0x10805,
+ 0x10808, 0x10808,
+ 0x1080a, 0x10835,
+ 0x10837, 0x10838,
+ 0x1083c, 0x1083c,
+ 0x1083f, 0x1083f,
+ 0x1d000, 0x1d0f5,
+ 0x1d100, 0x1d126,
+ 0x1d12a, 0x1d1dd,
+ 0x1d300, 0x1d356,
+ 0x1d400, 0x1d454,
+ 0x1d456, 0x1d49c,
+ 0x1d49e, 0x1d49f,
+ 0x1d4a2, 0x1d4a2,
+ 0x1d4a5, 0x1d4a6,
+ 0x1d4a9, 0x1d4ac,
+ 0x1d4ae, 0x1d4b9,
+ 0x1d4bb, 0x1d4bb,
+ 0x1d4bd, 0x1d4c3,
+ 0x1d4c5, 0x1d505,
+ 0x1d507, 0x1d50a,
+ 0x1d50d, 0x1d514,
+ 0x1d516, 0x1d51c,
+ 0x1d51e, 0x1d539,
+ 0x1d53b, 0x1d53e,
+ 0x1d540, 0x1d544,
+ 0x1d546, 0x1d546,
+ 0x1d54a, 0x1d550,
+ 0x1d552, 0x1d6a3,
+ 0x1d6a8, 0x1d7c9,
+ 0x1d7ce, 0x1d7ff,
+ 0x1fffe, 0x2a6d6,
+ 0x2f800, 0x2fa1d,
+ 0x2fffe, 0x2ffff,
+ 0x3fffe, 0x3ffff,
+ 0x4fffe, 0x4ffff,
+ 0x5fffe, 0x5ffff,
+ 0x6fffe, 0x6ffff,
+ 0x7fffe, 0x7ffff,
+ 0x8fffe, 0x8ffff,
+ 0x9fffe, 0x9ffff,
+ 0xafffe, 0xaffff,
+ 0xbfffe, 0xbffff,
+ 0xcfffe, 0xcffff,
+ 0xdfffe, 0xdffff,
+ 0xe0001, 0xe0001,
+ 0xe0020, 0xe007f,
+ 0xe0100, 0xe01ef,
+ 0xefffe, 0x10ffff,
+}; /* CR_Age_4_0 */
+
+/* 'Age_4_1': Derived Age 4.1 */
+static const OnigCodePoint CR_Age_4_1[] = {
+ 430,
+ 0x0000, 0x0241,
+ 0x0250, 0x036f,
+ 0x0374, 0x0375,
+ 0x037a, 0x037a,
+ 0x037e, 0x037e,
+ 0x0384, 0x038a,
+ 0x038c, 0x038c,
+ 0x038e, 0x03a1,
+ 0x03a3, 0x03ce,
+ 0x03d0, 0x0486,
+ 0x0488, 0x04ce,
+ 0x04d0, 0x04f9,
+ 0x0500, 0x050f,
+ 0x0531, 0x0556,
+ 0x0559, 0x055f,
+ 0x0561, 0x0587,
+ 0x0589, 0x058a,
+ 0x0591, 0x05b9,
+ 0x05bb, 0x05c7,
+ 0x05d0, 0x05ea,
+ 0x05f0, 0x05f4,
+ 0x0600, 0x0603,
+ 0x060b, 0x0615,
+ 0x061b, 0x061b,
+ 0x061e, 0x061f,
+ 0x0621, 0x063a,
+ 0x0640, 0x065e,
+ 0x0660, 0x070d,
+ 0x070f, 0x074a,
+ 0x074d, 0x076d,
+ 0x0780, 0x07b1,
+ 0x0901, 0x0939,
+ 0x093c, 0x094d,
+ 0x0950, 0x0954,
+ 0x0958, 0x0970,
+ 0x097d, 0x097d,
+ 0x0981, 0x0983,
+ 0x0985, 0x098c,
+ 0x098f, 0x0990,
+ 0x0993, 0x09a8,
+ 0x09aa, 0x09b0,
+ 0x09b2, 0x09b2,
+ 0x09b6, 0x09b9,
+ 0x09bc, 0x09c4,
+ 0x09c7, 0x09c8,
+ 0x09cb, 0x09ce,
+ 0x09d7, 0x09d7,
+ 0x09dc, 0x09dd,
+ 0x09df, 0x09e3,
+ 0x09e6, 0x09fa,
+ 0x0a01, 0x0a03,
+ 0x0a05, 0x0a0a,
+ 0x0a0f, 0x0a10,
+ 0x0a13, 0x0a28,
+ 0x0a2a, 0x0a30,
+ 0x0a32, 0x0a33,
+ 0x0a35, 0x0a36,
+ 0x0a38, 0x0a39,
+ 0x0a3c, 0x0a3c,
+ 0x0a3e, 0x0a42,
+ 0x0a47, 0x0a48,
+ 0x0a4b, 0x0a4d,
+ 0x0a59, 0x0a5c,
+ 0x0a5e, 0x0a5e,
+ 0x0a66, 0x0a74,
+ 0x0a81, 0x0a83,
+ 0x0a85, 0x0a8d,
+ 0x0a8f, 0x0a91,
+ 0x0a93, 0x0aa8,
+ 0x0aaa, 0x0ab0,
+ 0x0ab2, 0x0ab3,
+ 0x0ab5, 0x0ab9,
+ 0x0abc, 0x0ac5,
+ 0x0ac7, 0x0ac9,
+ 0x0acb, 0x0acd,
+ 0x0ad0, 0x0ad0,
+ 0x0ae0, 0x0ae3,
+ 0x0ae6, 0x0aef,
+ 0x0af1, 0x0af1,
+ 0x0b01, 0x0b03,
+ 0x0b05, 0x0b0c,
+ 0x0b0f, 0x0b10,
+ 0x0b13, 0x0b28,
+ 0x0b2a, 0x0b30,
+ 0x0b32, 0x0b33,
+ 0x0b35, 0x0b39,
+ 0x0b3c, 0x0b43,
+ 0x0b47, 0x0b48,
+ 0x0b4b, 0x0b4d,
+ 0x0b56, 0x0b57,
+ 0x0b5c, 0x0b5d,
+ 0x0b5f, 0x0b61,
+ 0x0b66, 0x0b71,
+ 0x0b82, 0x0b83,
+ 0x0b85, 0x0b8a,
+ 0x0b8e, 0x0b90,
+ 0x0b92, 0x0b95,
+ 0x0b99, 0x0b9a,
+ 0x0b9c, 0x0b9c,
+ 0x0b9e, 0x0b9f,
+ 0x0ba3, 0x0ba4,
+ 0x0ba8, 0x0baa,
+ 0x0bae, 0x0bb9,
+ 0x0bbe, 0x0bc2,
+ 0x0bc6, 0x0bc8,
+ 0x0bca, 0x0bcd,
+ 0x0bd7, 0x0bd7,
+ 0x0be6, 0x0bfa,
+ 0x0c01, 0x0c03,
+ 0x0c05, 0x0c0c,
+ 0x0c0e, 0x0c10,
+ 0x0c12, 0x0c28,
+ 0x0c2a, 0x0c33,
+ 0x0c35, 0x0c39,
+ 0x0c3e, 0x0c44,
+ 0x0c46, 0x0c48,
+ 0x0c4a, 0x0c4d,
+ 0x0c55, 0x0c56,
+ 0x0c60, 0x0c61,
+ 0x0c66, 0x0c6f,
+ 0x0c82, 0x0c83,
+ 0x0c85, 0x0c8c,
+ 0x0c8e, 0x0c90,
+ 0x0c92, 0x0ca8,
+ 0x0caa, 0x0cb3,
+ 0x0cb5, 0x0cb9,
+ 0x0cbc, 0x0cc4,
+ 0x0cc6, 0x0cc8,
+ 0x0cca, 0x0ccd,
+ 0x0cd5, 0x0cd6,
+ 0x0cde, 0x0cde,
+ 0x0ce0, 0x0ce1,
+ 0x0ce6, 0x0cef,
+ 0x0d02, 0x0d03,
+ 0x0d05, 0x0d0c,
+ 0x0d0e, 0x0d10,
+ 0x0d12, 0x0d28,
+ 0x0d2a, 0x0d39,
+ 0x0d3e, 0x0d43,
+ 0x0d46, 0x0d48,
+ 0x0d4a, 0x0d4d,
+ 0x0d57, 0x0d57,
+ 0x0d60, 0x0d61,
+ 0x0d66, 0x0d6f,
+ 0x0d82, 0x0d83,
+ 0x0d85, 0x0d96,
+ 0x0d9a, 0x0db1,
+ 0x0db3, 0x0dbb,
+ 0x0dbd, 0x0dbd,
+ 0x0dc0, 0x0dc6,
+ 0x0dca, 0x0dca,
+ 0x0dcf, 0x0dd4,
+ 0x0dd6, 0x0dd6,
+ 0x0dd8, 0x0ddf,
+ 0x0df2, 0x0df4,
+ 0x0e01, 0x0e3a,
+ 0x0e3f, 0x0e5b,
+ 0x0e81, 0x0e82,
+ 0x0e84, 0x0e84,
+ 0x0e87, 0x0e88,
+ 0x0e8a, 0x0e8a,
+ 0x0e8d, 0x0e8d,
+ 0x0e94, 0x0e97,
+ 0x0e99, 0x0e9f,
+ 0x0ea1, 0x0ea3,
+ 0x0ea5, 0x0ea5,
+ 0x0ea7, 0x0ea7,
+ 0x0eaa, 0x0eab,
+ 0x0ead, 0x0eb9,
+ 0x0ebb, 0x0ebd,
+ 0x0ec0, 0x0ec4,
+ 0x0ec6, 0x0ec6,
+ 0x0ec8, 0x0ecd,
+ 0x0ed0, 0x0ed9,
+ 0x0edc, 0x0edd,
+ 0x0f00, 0x0f47,
+ 0x0f49, 0x0f6a,
+ 0x0f71, 0x0f8b,
+ 0x0f90, 0x0f97,
+ 0x0f99, 0x0fbc,
+ 0x0fbe, 0x0fcc,
+ 0x0fcf, 0x0fd1,
+ 0x1000, 0x1021,
+ 0x1023, 0x1027,
+ 0x1029, 0x102a,
+ 0x102c, 0x1032,
+ 0x1036, 0x1039,
+ 0x1040, 0x1059,
+ 0x10a0, 0x10c5,
+ 0x10d0, 0x10fc,
+ 0x1100, 0x1159,
+ 0x115f, 0x11a2,
+ 0x11a8, 0x11f9,
+ 0x1200, 0x1248,
+ 0x124a, 0x124d,
+ 0x1250, 0x1256,
+ 0x1258, 0x1258,
+ 0x125a, 0x125d,
+ 0x1260, 0x1288,
+ 0x128a, 0x128d,
+ 0x1290, 0x12b0,
+ 0x12b2, 0x12b5,
+ 0x12b8, 0x12be,
+ 0x12c0, 0x12c0,
+ 0x12c2, 0x12c5,
+ 0x12c8, 0x12d6,
+ 0x12d8, 0x1310,
+ 0x1312, 0x1315,
+ 0x1318, 0x135a,
+ 0x135f, 0x137c,
+ 0x1380, 0x1399,
+ 0x13a0, 0x13f4,
+ 0x1401, 0x1676,
+ 0x1680, 0x169c,
+ 0x16a0, 0x16f0,
+ 0x1700, 0x170c,
+ 0x170e, 0x1714,
+ 0x1720, 0x1736,
+ 0x1740, 0x1753,
+ 0x1760, 0x176c,
+ 0x176e, 0x1770,
+ 0x1772, 0x1773,
+ 0x1780, 0x17dd,
+ 0x17e0, 0x17e9,
+ 0x17f0, 0x17f9,
+ 0x1800, 0x180e,
+ 0x1810, 0x1819,
+ 0x1820, 0x1877,
+ 0x1880, 0x18a9,
+ 0x1900, 0x191c,
+ 0x1920, 0x192b,
+ 0x1930, 0x193b,
+ 0x1940, 0x1940,
+ 0x1944, 0x196d,
+ 0x1970, 0x1974,
+ 0x1980, 0x19a9,
+ 0x19b0, 0x19c9,
+ 0x19d0, 0x19d9,
+ 0x19de, 0x1a1b,
+ 0x1a1e, 0x1a1f,
+ 0x1d00, 0x1dc3,
+ 0x1e00, 0x1e9b,
+ 0x1ea0, 0x1ef9,
+ 0x1f00, 0x1f15,
+ 0x1f18, 0x1f1d,
+ 0x1f20, 0x1f45,
+ 0x1f48, 0x1f4d,
+ 0x1f50, 0x1f57,
+ 0x1f59, 0x1f59,
+ 0x1f5b, 0x1f5b,
+ 0x1f5d, 0x1f5d,
+ 0x1f5f, 0x1f7d,
+ 0x1f80, 0x1fb4,
+ 0x1fb6, 0x1fc4,
+ 0x1fc6, 0x1fd3,
+ 0x1fd6, 0x1fdb,
+ 0x1fdd, 0x1fef,
+ 0x1ff2, 0x1ff4,
+ 0x1ff6, 0x1ffe,
+ 0x2000, 0x2063,
+ 0x206a, 0x2071,
+ 0x2074, 0x208e,
+ 0x2090, 0x2094,
+ 0x20a0, 0x20b5,
+ 0x20d0, 0x20eb,
+ 0x2100, 0x214c,
+ 0x2153, 0x2183,
+ 0x2190, 0x23db,
+ 0x2400, 0x2426,
+ 0x2440, 0x244a,
+ 0x2460, 0x269c,
+ 0x26a0, 0x26b1,
+ 0x2701, 0x2704,
+ 0x2706, 0x2709,
+ 0x270c, 0x2727,
+ 0x2729, 0x274b,
+ 0x274d, 0x274d,
+ 0x274f, 0x2752,
+ 0x2756, 0x2756,
+ 0x2758, 0x275e,
+ 0x2761, 0x2794,
+ 0x2798, 0x27af,
+ 0x27b1, 0x27be,
+ 0x27c0, 0x27c6,
+ 0x27d0, 0x27eb,
+ 0x27f0, 0x2b13,
+ 0x2c00, 0x2c2e,
+ 0x2c30, 0x2c5e,
+ 0x2c80, 0x2cea,
+ 0x2cf9, 0x2d25,
+ 0x2d30, 0x2d65,
+ 0x2d6f, 0x2d6f,
+ 0x2d80, 0x2d96,
+ 0x2da0, 0x2da6,
+ 0x2da8, 0x2dae,
+ 0x2db0, 0x2db6,
+ 0x2db8, 0x2dbe,
+ 0x2dc0, 0x2dc6,
+ 0x2dc8, 0x2dce,
+ 0x2dd0, 0x2dd6,
+ 0x2dd8, 0x2dde,
+ 0x2e00, 0x2e17,
+ 0x2e1c, 0x2e1d,
+ 0x2e80, 0x2e99,
+ 0x2e9b, 0x2ef3,
+ 0x2f00, 0x2fd5,
+ 0x2ff0, 0x2ffb,
+ 0x3000, 0x303f,
+ 0x3041, 0x3096,
+ 0x3099, 0x30ff,
+ 0x3105, 0x312c,
+ 0x3131, 0x318e,
+ 0x3190, 0x31b7,
+ 0x31c0, 0x31cf,
+ 0x31f0, 0x321e,
+ 0x3220, 0x3243,
+ 0x3250, 0x32fe,
+ 0x3300, 0x4db5,
+ 0x4dc0, 0x9fbb,
+ 0xa000, 0xa48c,
+ 0xa490, 0xa4c6,
+ 0xa700, 0xa716,
+ 0xa800, 0xa82b,
+ 0xac00, 0xd7a3,
+ 0xd800, 0xfa2d,
+ 0xfa30, 0xfa6a,
+ 0xfa70, 0xfad9,
+ 0xfb00, 0xfb06,
+ 0xfb13, 0xfb17,
+ 0xfb1d, 0xfb36,
+ 0xfb38, 0xfb3c,
+ 0xfb3e, 0xfb3e,
+ 0xfb40, 0xfb41,
+ 0xfb43, 0xfb44,
+ 0xfb46, 0xfbb1,
+ 0xfbd3, 0xfd3f,
+ 0xfd50, 0xfd8f,
+ 0xfd92, 0xfdc7,
+ 0xfdd0, 0xfdfd,
+ 0xfe00, 0xfe19,
+ 0xfe20, 0xfe23,
+ 0xfe30, 0xfe52,
+ 0xfe54, 0xfe66,
+ 0xfe68, 0xfe6b,
+ 0xfe70, 0xfe74,
+ 0xfe76, 0xfefc,
+ 0xfeff, 0xfeff,
+ 0xff01, 0xffbe,
+ 0xffc2, 0xffc7,
+ 0xffca, 0xffcf,
+ 0xffd2, 0xffd7,
+ 0xffda, 0xffdc,
+ 0xffe0, 0xffe6,
+ 0xffe8, 0xffee,
+ 0xfff9, 0x1000b,
+ 0x1000d, 0x10026,
+ 0x10028, 0x1003a,
+ 0x1003c, 0x1003d,
+ 0x1003f, 0x1004d,
+ 0x10050, 0x1005d,
+ 0x10080, 0x100fa,
+ 0x10100, 0x10102,
+ 0x10107, 0x10133,
+ 0x10137, 0x1018a,
+ 0x10300, 0x1031e,
+ 0x10320, 0x10323,
+ 0x10330, 0x1034a,
+ 0x10380, 0x1039d,
+ 0x1039f, 0x103c3,
+ 0x103c8, 0x103d5,
+ 0x10400, 0x1049d,
+ 0x104a0, 0x104a9,
+ 0x10800, 0x10805,
+ 0x10808, 0x10808,
+ 0x1080a, 0x10835,
+ 0x10837, 0x10838,
+ 0x1083c, 0x1083c,
+ 0x1083f, 0x1083f,
+ 0x10a00, 0x10a03,
+ 0x10a05, 0x10a06,
+ 0x10a0c, 0x10a13,
+ 0x10a15, 0x10a17,
+ 0x10a19, 0x10a33,
+ 0x10a38, 0x10a3a,
+ 0x10a3f, 0x10a47,
+ 0x10a50, 0x10a58,
+ 0x1d000, 0x1d0f5,
+ 0x1d100, 0x1d126,
+ 0x1d12a, 0x1d1dd,
+ 0x1d200, 0x1d245,
+ 0x1d300, 0x1d356,
+ 0x1d400, 0x1d454,
+ 0x1d456, 0x1d49c,
+ 0x1d49e, 0x1d49f,
+ 0x1d4a2, 0x1d4a2,
+ 0x1d4a5, 0x1d4a6,
+ 0x1d4a9, 0x1d4ac,
+ 0x1d4ae, 0x1d4b9,
+ 0x1d4bb, 0x1d4bb,
+ 0x1d4bd, 0x1d4c3,
+ 0x1d4c5, 0x1d505,
+ 0x1d507, 0x1d50a,
+ 0x1d50d, 0x1d514,
+ 0x1d516, 0x1d51c,
+ 0x1d51e, 0x1d539,
+ 0x1d53b, 0x1d53e,
+ 0x1d540, 0x1d544,
+ 0x1d546, 0x1d546,
+ 0x1d54a, 0x1d550,
+ 0x1d552, 0x1d6a5,
+ 0x1d6a8, 0x1d7c9,
+ 0x1d7ce, 0x1d7ff,
+ 0x1fffe, 0x2a6d6,
+ 0x2f800, 0x2fa1d,
+ 0x2fffe, 0x2ffff,
+ 0x3fffe, 0x3ffff,
+ 0x4fffe, 0x4ffff,
+ 0x5fffe, 0x5ffff,
+ 0x6fffe, 0x6ffff,
+ 0x7fffe, 0x7ffff,
+ 0x8fffe, 0x8ffff,
+ 0x9fffe, 0x9ffff,
+ 0xafffe, 0xaffff,
+ 0xbfffe, 0xbffff,
+ 0xcfffe, 0xcffff,
+ 0xdfffe, 0xdffff,
+ 0xe0001, 0xe0001,
+ 0xe0020, 0xe007f,
+ 0xe0100, 0xe01ef,
+ 0xefffe, 0x10ffff,
+}; /* CR_Age_4_1 */
+
+/* 'Age_5_0': Derived Age 5.0 */
+static const OnigCodePoint CR_Age_5_0[] = {
+ 440,
+ 0x0000, 0x036f,
+ 0x0374, 0x0375,
+ 0x037a, 0x037e,
+ 0x0384, 0x038a,
+ 0x038c, 0x038c,
+ 0x038e, 0x03a1,
+ 0x03a3, 0x03ce,
+ 0x03d0, 0x0486,
+ 0x0488, 0x0513,
+ 0x0531, 0x0556,
+ 0x0559, 0x055f,
+ 0x0561, 0x0587,
+ 0x0589, 0x058a,
+ 0x0591, 0x05c7,
+ 0x05d0, 0x05ea,
+ 0x05f0, 0x05f4,
+ 0x0600, 0x0603,
+ 0x060b, 0x0615,
+ 0x061b, 0x061b,
+ 0x061e, 0x061f,
+ 0x0621, 0x063a,
+ 0x0640, 0x065e,
+ 0x0660, 0x070d,
+ 0x070f, 0x074a,
+ 0x074d, 0x076d,
+ 0x0780, 0x07b1,
+ 0x07c0, 0x07fa,
+ 0x0901, 0x0939,
+ 0x093c, 0x094d,
+ 0x0950, 0x0954,
+ 0x0958, 0x0970,
+ 0x097b, 0x097f,
+ 0x0981, 0x0983,
+ 0x0985, 0x098c,
+ 0x098f, 0x0990,
+ 0x0993, 0x09a8,
+ 0x09aa, 0x09b0,
+ 0x09b2, 0x09b2,
+ 0x09b6, 0x09b9,
+ 0x09bc, 0x09c4,
+ 0x09c7, 0x09c8,
+ 0x09cb, 0x09ce,
+ 0x09d7, 0x09d7,
+ 0x09dc, 0x09dd,
+ 0x09df, 0x09e3,
+ 0x09e6, 0x09fa,
+ 0x0a01, 0x0a03,
+ 0x0a05, 0x0a0a,
+ 0x0a0f, 0x0a10,
+ 0x0a13, 0x0a28,
+ 0x0a2a, 0x0a30,
+ 0x0a32, 0x0a33,
+ 0x0a35, 0x0a36,
+ 0x0a38, 0x0a39,
+ 0x0a3c, 0x0a3c,
+ 0x0a3e, 0x0a42,
+ 0x0a47, 0x0a48,
+ 0x0a4b, 0x0a4d,
+ 0x0a59, 0x0a5c,
+ 0x0a5e, 0x0a5e,
+ 0x0a66, 0x0a74,
+ 0x0a81, 0x0a83,
+ 0x0a85, 0x0a8d,
+ 0x0a8f, 0x0a91,
+ 0x0a93, 0x0aa8,
+ 0x0aaa, 0x0ab0,
+ 0x0ab2, 0x0ab3,
+ 0x0ab5, 0x0ab9,
+ 0x0abc, 0x0ac5,
+ 0x0ac7, 0x0ac9,
+ 0x0acb, 0x0acd,
+ 0x0ad0, 0x0ad0,
+ 0x0ae0, 0x0ae3,
+ 0x0ae6, 0x0aef,
+ 0x0af1, 0x0af1,
+ 0x0b01, 0x0b03,
+ 0x0b05, 0x0b0c,
+ 0x0b0f, 0x0b10,
+ 0x0b13, 0x0b28,
+ 0x0b2a, 0x0b30,
+ 0x0b32, 0x0b33,
+ 0x0b35, 0x0b39,
+ 0x0b3c, 0x0b43,
+ 0x0b47, 0x0b48,
+ 0x0b4b, 0x0b4d,
+ 0x0b56, 0x0b57,
+ 0x0b5c, 0x0b5d,
+ 0x0b5f, 0x0b61,
+ 0x0b66, 0x0b71,
+ 0x0b82, 0x0b83,
+ 0x0b85, 0x0b8a,
+ 0x0b8e, 0x0b90,
+ 0x0b92, 0x0b95,
+ 0x0b99, 0x0b9a,
+ 0x0b9c, 0x0b9c,
+ 0x0b9e, 0x0b9f,
+ 0x0ba3, 0x0ba4,
+ 0x0ba8, 0x0baa,
+ 0x0bae, 0x0bb9,
+ 0x0bbe, 0x0bc2,
+ 0x0bc6, 0x0bc8,
+ 0x0bca, 0x0bcd,
+ 0x0bd7, 0x0bd7,
+ 0x0be6, 0x0bfa,
+ 0x0c01, 0x0c03,
+ 0x0c05, 0x0c0c,
+ 0x0c0e, 0x0c10,
+ 0x0c12, 0x0c28,
+ 0x0c2a, 0x0c33,
+ 0x0c35, 0x0c39,
+ 0x0c3e, 0x0c44,
+ 0x0c46, 0x0c48,
+ 0x0c4a, 0x0c4d,
+ 0x0c55, 0x0c56,
+ 0x0c60, 0x0c61,
+ 0x0c66, 0x0c6f,
+ 0x0c82, 0x0c83,
+ 0x0c85, 0x0c8c,
+ 0x0c8e, 0x0c90,
+ 0x0c92, 0x0ca8,
+ 0x0caa, 0x0cb3,
+ 0x0cb5, 0x0cb9,
+ 0x0cbc, 0x0cc4,
+ 0x0cc6, 0x0cc8,
+ 0x0cca, 0x0ccd,
+ 0x0cd5, 0x0cd6,
+ 0x0cde, 0x0cde,
+ 0x0ce0, 0x0ce3,
+ 0x0ce6, 0x0cef,
+ 0x0cf1, 0x0cf2,
+ 0x0d02, 0x0d03,
+ 0x0d05, 0x0d0c,
+ 0x0d0e, 0x0d10,
+ 0x0d12, 0x0d28,
+ 0x0d2a, 0x0d39,
+ 0x0d3e, 0x0d43,
+ 0x0d46, 0x0d48,
+ 0x0d4a, 0x0d4d,
+ 0x0d57, 0x0d57,
+ 0x0d60, 0x0d61,
+ 0x0d66, 0x0d6f,
+ 0x0d82, 0x0d83,
+ 0x0d85, 0x0d96,
+ 0x0d9a, 0x0db1,
+ 0x0db3, 0x0dbb,
+ 0x0dbd, 0x0dbd,
+ 0x0dc0, 0x0dc6,
+ 0x0dca, 0x0dca,
+ 0x0dcf, 0x0dd4,
+ 0x0dd6, 0x0dd6,
+ 0x0dd8, 0x0ddf,
+ 0x0df2, 0x0df4,
+ 0x0e01, 0x0e3a,
+ 0x0e3f, 0x0e5b,
+ 0x0e81, 0x0e82,
+ 0x0e84, 0x0e84,
+ 0x0e87, 0x0e88,
+ 0x0e8a, 0x0e8a,
+ 0x0e8d, 0x0e8d,
+ 0x0e94, 0x0e97,
+ 0x0e99, 0x0e9f,
+ 0x0ea1, 0x0ea3,
+ 0x0ea5, 0x0ea5,
+ 0x0ea7, 0x0ea7,
+ 0x0eaa, 0x0eab,
+ 0x0ead, 0x0eb9,
+ 0x0ebb, 0x0ebd,
+ 0x0ec0, 0x0ec4,
+ 0x0ec6, 0x0ec6,
+ 0x0ec8, 0x0ecd,
+ 0x0ed0, 0x0ed9,
+ 0x0edc, 0x0edd,
+ 0x0f00, 0x0f47,
+ 0x0f49, 0x0f6a,
+ 0x0f71, 0x0f8b,
+ 0x0f90, 0x0f97,
+ 0x0f99, 0x0fbc,
+ 0x0fbe, 0x0fcc,
+ 0x0fcf, 0x0fd1,
+ 0x1000, 0x1021,
+ 0x1023, 0x1027,
+ 0x1029, 0x102a,
+ 0x102c, 0x1032,
+ 0x1036, 0x1039,
+ 0x1040, 0x1059,
+ 0x10a0, 0x10c5,
+ 0x10d0, 0x10fc,
+ 0x1100, 0x1159,
+ 0x115f, 0x11a2,
+ 0x11a8, 0x11f9,
+ 0x1200, 0x1248,
+ 0x124a, 0x124d,
+ 0x1250, 0x1256,
+ 0x1258, 0x1258,
+ 0x125a, 0x125d,
+ 0x1260, 0x1288,
+ 0x128a, 0x128d,
+ 0x1290, 0x12b0,
+ 0x12b2, 0x12b5,
+ 0x12b8, 0x12be,
+ 0x12c0, 0x12c0,
+ 0x12c2, 0x12c5,
+ 0x12c8, 0x12d6,
+ 0x12d8, 0x1310,
+ 0x1312, 0x1315,
+ 0x1318, 0x135a,
+ 0x135f, 0x137c,
+ 0x1380, 0x1399,
+ 0x13a0, 0x13f4,
+ 0x1401, 0x1676,
+ 0x1680, 0x169c,
+ 0x16a0, 0x16f0,
+ 0x1700, 0x170c,
+ 0x170e, 0x1714,
+ 0x1720, 0x1736,
+ 0x1740, 0x1753,
+ 0x1760, 0x176c,
+ 0x176e, 0x1770,
+ 0x1772, 0x1773,
+ 0x1780, 0x17dd,
+ 0x17e0, 0x17e9,
+ 0x17f0, 0x17f9,
+ 0x1800, 0x180e,
+ 0x1810, 0x1819,
+ 0x1820, 0x1877,
+ 0x1880, 0x18a9,
+ 0x1900, 0x191c,
+ 0x1920, 0x192b,
+ 0x1930, 0x193b,
+ 0x1940, 0x1940,
+ 0x1944, 0x196d,
+ 0x1970, 0x1974,
+ 0x1980, 0x19a9,
+ 0x19b0, 0x19c9,
+ 0x19d0, 0x19d9,
+ 0x19de, 0x1a1b,
+ 0x1a1e, 0x1a1f,
+ 0x1b00, 0x1b4b,
+ 0x1b50, 0x1b7c,
+ 0x1d00, 0x1dca,
+ 0x1dfe, 0x1e9b,
+ 0x1ea0, 0x1ef9,
+ 0x1f00, 0x1f15,
+ 0x1f18, 0x1f1d,
+ 0x1f20, 0x1f45,
+ 0x1f48, 0x1f4d,
+ 0x1f50, 0x1f57,
+ 0x1f59, 0x1f59,
+ 0x1f5b, 0x1f5b,
+ 0x1f5d, 0x1f5d,
+ 0x1f5f, 0x1f7d,
+ 0x1f80, 0x1fb4,
+ 0x1fb6, 0x1fc4,
+ 0x1fc6, 0x1fd3,
+ 0x1fd6, 0x1fdb,
+ 0x1fdd, 0x1fef,
+ 0x1ff2, 0x1ff4,
+ 0x1ff6, 0x1ffe,
+ 0x2000, 0x2063,
+ 0x206a, 0x2071,
+ 0x2074, 0x208e,
+ 0x2090, 0x2094,
+ 0x20a0, 0x20b5,
+ 0x20d0, 0x20ef,
+ 0x2100, 0x214e,
+ 0x2153, 0x2184,
+ 0x2190, 0x23e7,
+ 0x2400, 0x2426,
+ 0x2440, 0x244a,
+ 0x2460, 0x269c,
+ 0x26a0, 0x26b2,
+ 0x2701, 0x2704,
+ 0x2706, 0x2709,
+ 0x270c, 0x2727,
+ 0x2729, 0x274b,
+ 0x274d, 0x274d,
+ 0x274f, 0x2752,
+ 0x2756, 0x2756,
+ 0x2758, 0x275e,
+ 0x2761, 0x2794,
+ 0x2798, 0x27af,
+ 0x27b1, 0x27be,
+ 0x27c0, 0x27ca,
+ 0x27d0, 0x27eb,
+ 0x27f0, 0x2b1a,
+ 0x2b20, 0x2b23,
+ 0x2c00, 0x2c2e,
+ 0x2c30, 0x2c5e,
+ 0x2c60, 0x2c6c,
+ 0x2c74, 0x2c77,
+ 0x2c80, 0x2cea,
+ 0x2cf9, 0x2d25,
+ 0x2d30, 0x2d65,
+ 0x2d6f, 0x2d6f,
+ 0x2d80, 0x2d96,
+ 0x2da0, 0x2da6,
+ 0x2da8, 0x2dae,
+ 0x2db0, 0x2db6,
+ 0x2db8, 0x2dbe,
+ 0x2dc0, 0x2dc6,
+ 0x2dc8, 0x2dce,
+ 0x2dd0, 0x2dd6,
+ 0x2dd8, 0x2dde,
+ 0x2e00, 0x2e17,
+ 0x2e1c, 0x2e1d,
+ 0x2e80, 0x2e99,
+ 0x2e9b, 0x2ef3,
+ 0x2f00, 0x2fd5,
+ 0x2ff0, 0x2ffb,
+ 0x3000, 0x303f,
+ 0x3041, 0x3096,
+ 0x3099, 0x30ff,
+ 0x3105, 0x312c,
+ 0x3131, 0x318e,
+ 0x3190, 0x31b7,
+ 0x31c0, 0x31cf,
+ 0x31f0, 0x321e,
+ 0x3220, 0x3243,
+ 0x3250, 0x32fe,
+ 0x3300, 0x4db5,
+ 0x4dc0, 0x9fbb,
+ 0xa000, 0xa48c,
+ 0xa490, 0xa4c6,
+ 0xa700, 0xa71a,
+ 0xa720, 0xa721,
+ 0xa800, 0xa82b,
+ 0xa840, 0xa877,
+ 0xac00, 0xd7a3,
+ 0xd800, 0xfa2d,
+ 0xfa30, 0xfa6a,
+ 0xfa70, 0xfad9,
+ 0xfb00, 0xfb06,
+ 0xfb13, 0xfb17,
+ 0xfb1d, 0xfb36,
+ 0xfb38, 0xfb3c,
+ 0xfb3e, 0xfb3e,
+ 0xfb40, 0xfb41,
+ 0xfb43, 0xfb44,
+ 0xfb46, 0xfbb1,
+ 0xfbd3, 0xfd3f,
+ 0xfd50, 0xfd8f,
+ 0xfd92, 0xfdc7,
+ 0xfdd0, 0xfdfd,
+ 0xfe00, 0xfe19,
+ 0xfe20, 0xfe23,
+ 0xfe30, 0xfe52,
+ 0xfe54, 0xfe66,
+ 0xfe68, 0xfe6b,
+ 0xfe70, 0xfe74,
+ 0xfe76, 0xfefc,
+ 0xfeff, 0xfeff,
+ 0xff01, 0xffbe,
+ 0xffc2, 0xffc7,
+ 0xffca, 0xffcf,
+ 0xffd2, 0xffd7,
+ 0xffda, 0xffdc,
+ 0xffe0, 0xffe6,
+ 0xffe8, 0xffee,
+ 0xfff9, 0x1000b,
+ 0x1000d, 0x10026,
+ 0x10028, 0x1003a,
+ 0x1003c, 0x1003d,
+ 0x1003f, 0x1004d,
+ 0x10050, 0x1005d,
+ 0x10080, 0x100fa,
+ 0x10100, 0x10102,
+ 0x10107, 0x10133,
+ 0x10137, 0x1018a,
+ 0x10300, 0x1031e,
+ 0x10320, 0x10323,
+ 0x10330, 0x1034a,
+ 0x10380, 0x1039d,
+ 0x1039f, 0x103c3,
+ 0x103c8, 0x103d5,
+ 0x10400, 0x1049d,
+ 0x104a0, 0x104a9,
+ 0x10800, 0x10805,
+ 0x10808, 0x10808,
+ 0x1080a, 0x10835,
+ 0x10837, 0x10838,
+ 0x1083c, 0x1083c,
+ 0x1083f, 0x1083f,
+ 0x10900, 0x10919,
+ 0x1091f, 0x1091f,
+ 0x10a00, 0x10a03,
+ 0x10a05, 0x10a06,
+ 0x10a0c, 0x10a13,
+ 0x10a15, 0x10a17,
+ 0x10a19, 0x10a33,
+ 0x10a38, 0x10a3a,
+ 0x10a3f, 0x10a47,
+ 0x10a50, 0x10a58,
+ 0x12000, 0x1236e,
+ 0x12400, 0x12462,
+ 0x12470, 0x12473,
+ 0x1d000, 0x1d0f5,
+ 0x1d100, 0x1d126,
+ 0x1d12a, 0x1d1dd,
+ 0x1d200, 0x1d245,
+ 0x1d300, 0x1d356,
+ 0x1d360, 0x1d371,
+ 0x1d400, 0x1d454,
+ 0x1d456, 0x1d49c,
+ 0x1d49e, 0x1d49f,
+ 0x1d4a2, 0x1d4a2,
+ 0x1d4a5, 0x1d4a6,
+ 0x1d4a9, 0x1d4ac,
+ 0x1d4ae, 0x1d4b9,
+ 0x1d4bb, 0x1d4bb,
+ 0x1d4bd, 0x1d4c3,
+ 0x1d4c5, 0x1d505,
+ 0x1d507, 0x1d50a,
+ 0x1d50d, 0x1d514,
+ 0x1d516, 0x1d51c,
+ 0x1d51e, 0x1d539,
+ 0x1d53b, 0x1d53e,
+ 0x1d540, 0x1d544,
+ 0x1d546, 0x1d546,
+ 0x1d54a, 0x1d550,
+ 0x1d552, 0x1d6a5,
+ 0x1d6a8, 0x1d7cb,
+ 0x1d7ce, 0x1d7ff,
+ 0x1fffe, 0x2a6d6,
+ 0x2f800, 0x2fa1d,
+ 0x2fffe, 0x2ffff,
+ 0x3fffe, 0x3ffff,
+ 0x4fffe, 0x4ffff,
+ 0x5fffe, 0x5ffff,
+ 0x6fffe, 0x6ffff,
+ 0x7fffe, 0x7ffff,
+ 0x8fffe, 0x8ffff,
+ 0x9fffe, 0x9ffff,
+ 0xafffe, 0xaffff,
+ 0xbfffe, 0xbffff,
+ 0xcfffe, 0xcffff,
+ 0xdfffe, 0xdffff,
+ 0xe0001, 0xe0001,
+ 0xe0020, 0xe007f,
+ 0xe0100, 0xe01ef,
+ 0xefffe, 0x10ffff,
+}; /* CR_Age_5_0 */
+
+/* 'Age_5_1': Derived Age 5.1 */
+static const OnigCodePoint CR_Age_5_1[] = {
+ 455,
+ 0x0000, 0x0377,
+ 0x037a, 0x037e,
+ 0x0384, 0x038a,
+ 0x038c, 0x038c,
+ 0x038e, 0x03a1,
+ 0x03a3, 0x0523,
+ 0x0531, 0x0556,
+ 0x0559, 0x055f,
+ 0x0561, 0x0587,
+ 0x0589, 0x058a,
+ 0x0591, 0x05c7,
+ 0x05d0, 0x05ea,
+ 0x05f0, 0x05f4,
+ 0x0600, 0x0603,
+ 0x0606, 0x061b,
+ 0x061e, 0x061f,
+ 0x0621, 0x065e,
+ 0x0660, 0x070d,
+ 0x070f, 0x074a,
+ 0x074d, 0x07b1,
+ 0x07c0, 0x07fa,
+ 0x0901, 0x0939,
+ 0x093c, 0x094d,
+ 0x0950, 0x0954,
+ 0x0958, 0x0972,
+ 0x097b, 0x097f,
+ 0x0981, 0x0983,
+ 0x0985, 0x098c,
+ 0x098f, 0x0990,
+ 0x0993, 0x09a8,
+ 0x09aa, 0x09b0,
+ 0x09b2, 0x09b2,
+ 0x09b6, 0x09b9,
+ 0x09bc, 0x09c4,
+ 0x09c7, 0x09c8,
+ 0x09cb, 0x09ce,
+ 0x09d7, 0x09d7,
+ 0x09dc, 0x09dd,
+ 0x09df, 0x09e3,
+ 0x09e6, 0x09fa,
+ 0x0a01, 0x0a03,
+ 0x0a05, 0x0a0a,
+ 0x0a0f, 0x0a10,
+ 0x0a13, 0x0a28,
+ 0x0a2a, 0x0a30,
+ 0x0a32, 0x0a33,
+ 0x0a35, 0x0a36,
+ 0x0a38, 0x0a39,
+ 0x0a3c, 0x0a3c,
+ 0x0a3e, 0x0a42,
+ 0x0a47, 0x0a48,
+ 0x0a4b, 0x0a4d,
+ 0x0a51, 0x0a51,
+ 0x0a59, 0x0a5c,
+ 0x0a5e, 0x0a5e,
+ 0x0a66, 0x0a75,
+ 0x0a81, 0x0a83,
+ 0x0a85, 0x0a8d,
+ 0x0a8f, 0x0a91,
+ 0x0a93, 0x0aa8,
+ 0x0aaa, 0x0ab0,
+ 0x0ab2, 0x0ab3,
+ 0x0ab5, 0x0ab9,
+ 0x0abc, 0x0ac5,
+ 0x0ac7, 0x0ac9,
+ 0x0acb, 0x0acd,
+ 0x0ad0, 0x0ad0,
+ 0x0ae0, 0x0ae3,
+ 0x0ae6, 0x0aef,
+ 0x0af1, 0x0af1,
+ 0x0b01, 0x0b03,
+ 0x0b05, 0x0b0c,
+ 0x0b0f, 0x0b10,
+ 0x0b13, 0x0b28,
+ 0x0b2a, 0x0b30,
+ 0x0b32, 0x0b33,
+ 0x0b35, 0x0b39,
+ 0x0b3c, 0x0b44,
+ 0x0b47, 0x0b48,
+ 0x0b4b, 0x0b4d,
+ 0x0b56, 0x0b57,
+ 0x0b5c, 0x0b5d,
+ 0x0b5f, 0x0b63,
+ 0x0b66, 0x0b71,
+ 0x0b82, 0x0b83,
+ 0x0b85, 0x0b8a,
+ 0x0b8e, 0x0b90,
+ 0x0b92, 0x0b95,
+ 0x0b99, 0x0b9a,
+ 0x0b9c, 0x0b9c,
+ 0x0b9e, 0x0b9f,
+ 0x0ba3, 0x0ba4,
+ 0x0ba8, 0x0baa,
+ 0x0bae, 0x0bb9,
+ 0x0bbe, 0x0bc2,
+ 0x0bc6, 0x0bc8,
+ 0x0bca, 0x0bcd,
+ 0x0bd0, 0x0bd0,
+ 0x0bd7, 0x0bd7,
+ 0x0be6, 0x0bfa,
+ 0x0c01, 0x0c03,
+ 0x0c05, 0x0c0c,
+ 0x0c0e, 0x0c10,
+ 0x0c12, 0x0c28,
+ 0x0c2a, 0x0c33,
+ 0x0c35, 0x0c39,
+ 0x0c3d, 0x0c44,
+ 0x0c46, 0x0c48,
+ 0x0c4a, 0x0c4d,
+ 0x0c55, 0x0c56,
+ 0x0c58, 0x0c59,
+ 0x0c60, 0x0c63,
+ 0x0c66, 0x0c6f,
+ 0x0c78, 0x0c7f,
+ 0x0c82, 0x0c83,
+ 0x0c85, 0x0c8c,
+ 0x0c8e, 0x0c90,
+ 0x0c92, 0x0ca8,
+ 0x0caa, 0x0cb3,
+ 0x0cb5, 0x0cb9,
+ 0x0cbc, 0x0cc4,
+ 0x0cc6, 0x0cc8,
+ 0x0cca, 0x0ccd,
+ 0x0cd5, 0x0cd6,
+ 0x0cde, 0x0cde,
+ 0x0ce0, 0x0ce3,
+ 0x0ce6, 0x0cef,
+ 0x0cf1, 0x0cf2,
+ 0x0d02, 0x0d03,
+ 0x0d05, 0x0d0c,
+ 0x0d0e, 0x0d10,
+ 0x0d12, 0x0d28,
+ 0x0d2a, 0x0d39,
+ 0x0d3d, 0x0d44,
+ 0x0d46, 0x0d48,
+ 0x0d4a, 0x0d4d,
+ 0x0d57, 0x0d57,
+ 0x0d60, 0x0d63,
+ 0x0d66, 0x0d75,
+ 0x0d79, 0x0d7f,
+ 0x0d82, 0x0d83,
+ 0x0d85, 0x0d96,
+ 0x0d9a, 0x0db1,
+ 0x0db3, 0x0dbb,
+ 0x0dbd, 0x0dbd,
+ 0x0dc0, 0x0dc6,
+ 0x0dca, 0x0dca,
+ 0x0dcf, 0x0dd4,
+ 0x0dd6, 0x0dd6,
+ 0x0dd8, 0x0ddf,
+ 0x0df2, 0x0df4,
+ 0x0e01, 0x0e3a,
+ 0x0e3f, 0x0e5b,
+ 0x0e81, 0x0e82,
+ 0x0e84, 0x0e84,
+ 0x0e87, 0x0e88,
+ 0x0e8a, 0x0e8a,
+ 0x0e8d, 0x0e8d,
+ 0x0e94, 0x0e97,
+ 0x0e99, 0x0e9f,
+ 0x0ea1, 0x0ea3,
+ 0x0ea5, 0x0ea5,
+ 0x0ea7, 0x0ea7,
+ 0x0eaa, 0x0eab,
+ 0x0ead, 0x0eb9,
+ 0x0ebb, 0x0ebd,
+ 0x0ec0, 0x0ec4,
+ 0x0ec6, 0x0ec6,
+ 0x0ec8, 0x0ecd,
+ 0x0ed0, 0x0ed9,
+ 0x0edc, 0x0edd,
+ 0x0f00, 0x0f47,
+ 0x0f49, 0x0f6c,
+ 0x0f71, 0x0f8b,
+ 0x0f90, 0x0f97,
+ 0x0f99, 0x0fbc,
+ 0x0fbe, 0x0fcc,
+ 0x0fce, 0x0fd4,
+ 0x1000, 0x1099,
+ 0x109e, 0x10c5,
+ 0x10d0, 0x10fc,
+ 0x1100, 0x1159,
+ 0x115f, 0x11a2,
+ 0x11a8, 0x11f9,
+ 0x1200, 0x1248,
+ 0x124a, 0x124d,
+ 0x1250, 0x1256,
+ 0x1258, 0x1258,
+ 0x125a, 0x125d,
+ 0x1260, 0x1288,
+ 0x128a, 0x128d,
+ 0x1290, 0x12b0,
+ 0x12b2, 0x12b5,
+ 0x12b8, 0x12be,
+ 0x12c0, 0x12c0,
+ 0x12c2, 0x12c5,
+ 0x12c8, 0x12d6,
+ 0x12d8, 0x1310,
+ 0x1312, 0x1315,
+ 0x1318, 0x135a,
+ 0x135f, 0x137c,
+ 0x1380, 0x1399,
+ 0x13a0, 0x13f4,
+ 0x1401, 0x1676,
+ 0x1680, 0x169c,
+ 0x16a0, 0x16f0,
+ 0x1700, 0x170c,
+ 0x170e, 0x1714,
+ 0x1720, 0x1736,
+ 0x1740, 0x1753,
+ 0x1760, 0x176c,
+ 0x176e, 0x1770,
+ 0x1772, 0x1773,
+ 0x1780, 0x17dd,
+ 0x17e0, 0x17e9,
+ 0x17f0, 0x17f9,
+ 0x1800, 0x180e,
+ 0x1810, 0x1819,
+ 0x1820, 0x1877,
+ 0x1880, 0x18aa,
+ 0x1900, 0x191c,
+ 0x1920, 0x192b,
+ 0x1930, 0x193b,
+ 0x1940, 0x1940,
+ 0x1944, 0x196d,
+ 0x1970, 0x1974,
+ 0x1980, 0x19a9,
+ 0x19b0, 0x19c9,
+ 0x19d0, 0x19d9,
+ 0x19de, 0x1a1b,
+ 0x1a1e, 0x1a1f,
+ 0x1b00, 0x1b4b,
+ 0x1b50, 0x1b7c,
+ 0x1b80, 0x1baa,
+ 0x1bae, 0x1bb9,
+ 0x1c00, 0x1c37,
+ 0x1c3b, 0x1c49,
+ 0x1c4d, 0x1c7f,
+ 0x1d00, 0x1de6,
+ 0x1dfe, 0x1f15,
+ 0x1f18, 0x1f1d,
+ 0x1f20, 0x1f45,
+ 0x1f48, 0x1f4d,
+ 0x1f50, 0x1f57,
+ 0x1f59, 0x1f59,
+ 0x1f5b, 0x1f5b,
+ 0x1f5d, 0x1f5d,
+ 0x1f5f, 0x1f7d,
+ 0x1f80, 0x1fb4,
+ 0x1fb6, 0x1fc4,
+ 0x1fc6, 0x1fd3,
+ 0x1fd6, 0x1fdb,
+ 0x1fdd, 0x1fef,
+ 0x1ff2, 0x1ff4,
+ 0x1ff6, 0x1ffe,
+ 0x2000, 0x2064,
+ 0x206a, 0x2071,
+ 0x2074, 0x208e,
+ 0x2090, 0x2094,
+ 0x20a0, 0x20b5,
+ 0x20d0, 0x20f0,
+ 0x2100, 0x214f,
+ 0x2153, 0x2188,
+ 0x2190, 0x23e7,
+ 0x2400, 0x2426,
+ 0x2440, 0x244a,
+ 0x2460, 0x269d,
+ 0x26a0, 0x26bc,
+ 0x26c0, 0x26c3,
+ 0x2701, 0x2704,
+ 0x2706, 0x2709,
+ 0x270c, 0x2727,
+ 0x2729, 0x274b,
+ 0x274d, 0x274d,
+ 0x274f, 0x2752,
+ 0x2756, 0x2756,
+ 0x2758, 0x275e,
+ 0x2761, 0x2794,
+ 0x2798, 0x27af,
+ 0x27b1, 0x27be,
+ 0x27c0, 0x27ca,
+ 0x27cc, 0x27cc,
+ 0x27d0, 0x2b4c,
+ 0x2b50, 0x2b54,
+ 0x2c00, 0x2c2e,
+ 0x2c30, 0x2c5e,
+ 0x2c60, 0x2c6f,
+ 0x2c71, 0x2c7d,
+ 0x2c80, 0x2cea,
+ 0x2cf9, 0x2d25,
+ 0x2d30, 0x2d65,
+ 0x2d6f, 0x2d6f,
+ 0x2d80, 0x2d96,
+ 0x2da0, 0x2da6,
+ 0x2da8, 0x2dae,
+ 0x2db0, 0x2db6,
+ 0x2db8, 0x2dbe,
+ 0x2dc0, 0x2dc6,
+ 0x2dc8, 0x2dce,
+ 0x2dd0, 0x2dd6,
+ 0x2dd8, 0x2dde,
+ 0x2de0, 0x2e30,
+ 0x2e80, 0x2e99,
+ 0x2e9b, 0x2ef3,
+ 0x2f00, 0x2fd5,
+ 0x2ff0, 0x2ffb,
+ 0x3000, 0x303f,
+ 0x3041, 0x3096,
+ 0x3099, 0x30ff,
+ 0x3105, 0x312d,
+ 0x3131, 0x318e,
+ 0x3190, 0x31b7,
+ 0x31c0, 0x31e3,
+ 0x31f0, 0x321e,
+ 0x3220, 0x3243,
+ 0x3250, 0x32fe,
+ 0x3300, 0x4db5,
+ 0x4dc0, 0x9fc3,
+ 0xa000, 0xa48c,
+ 0xa490, 0xa4c6,
+ 0xa500, 0xa62b,
+ 0xa640, 0xa65f,
+ 0xa662, 0xa673,
+ 0xa67c, 0xa697,
+ 0xa700, 0xa78c,
+ 0xa7fb, 0xa82b,
+ 0xa840, 0xa877,
+ 0xa880, 0xa8c4,
+ 0xa8ce, 0xa8d9,
+ 0xa900, 0xa953,
+ 0xa95f, 0xa95f,
+ 0xaa00, 0xaa36,
+ 0xaa40, 0xaa4d,
+ 0xaa50, 0xaa59,
+ 0xaa5c, 0xaa5f,
+ 0xac00, 0xd7a3,
+ 0xd800, 0xfa2d,
+ 0xfa30, 0xfa6a,
+ 0xfa70, 0xfad9,
+ 0xfb00, 0xfb06,
+ 0xfb13, 0xfb17,
+ 0xfb1d, 0xfb36,
+ 0xfb38, 0xfb3c,
+ 0xfb3e, 0xfb3e,
+ 0xfb40, 0xfb41,
+ 0xfb43, 0xfb44,
+ 0xfb46, 0xfbb1,
+ 0xfbd3, 0xfd3f,
+ 0xfd50, 0xfd8f,
+ 0xfd92, 0xfdc7,
+ 0xfdd0, 0xfdfd,
+ 0xfe00, 0xfe19,
+ 0xfe20, 0xfe26,
+ 0xfe30, 0xfe52,
+ 0xfe54, 0xfe66,
+ 0xfe68, 0xfe6b,
+ 0xfe70, 0xfe74,
+ 0xfe76, 0xfefc,
+ 0xfeff, 0xfeff,
+ 0xff01, 0xffbe,
+ 0xffc2, 0xffc7,
+ 0xffca, 0xffcf,
+ 0xffd2, 0xffd7,
+ 0xffda, 0xffdc,
+ 0xffe0, 0xffe6,
+ 0xffe8, 0xffee,
+ 0xfff9, 0x1000b,
+ 0x1000d, 0x10026,
+ 0x10028, 0x1003a,
+ 0x1003c, 0x1003d,
+ 0x1003f, 0x1004d,
+ 0x10050, 0x1005d,
+ 0x10080, 0x100fa,
+ 0x10100, 0x10102,
+ 0x10107, 0x10133,
+ 0x10137, 0x1018a,
+ 0x10190, 0x1019b,
+ 0x101d0, 0x101fd,
+ 0x10280, 0x1029c,
+ 0x102a0, 0x102d0,
+ 0x10300, 0x1031e,
+ 0x10320, 0x10323,
+ 0x10330, 0x1034a,
+ 0x10380, 0x1039d,
+ 0x1039f, 0x103c3,
+ 0x103c8, 0x103d5,
+ 0x10400, 0x1049d,
+ 0x104a0, 0x104a9,
+ 0x10800, 0x10805,
+ 0x10808, 0x10808,
+ 0x1080a, 0x10835,
+ 0x10837, 0x10838,
+ 0x1083c, 0x1083c,
+ 0x1083f, 0x1083f,
+ 0x10900, 0x10919,
+ 0x1091f, 0x10939,
+ 0x1093f, 0x1093f,
+ 0x10a00, 0x10a03,
+ 0x10a05, 0x10a06,
+ 0x10a0c, 0x10a13,
+ 0x10a15, 0x10a17,
+ 0x10a19, 0x10a33,
+ 0x10a38, 0x10a3a,
+ 0x10a3f, 0x10a47,
+ 0x10a50, 0x10a58,
+ 0x12000, 0x1236e,
+ 0x12400, 0x12462,
+ 0x12470, 0x12473,
+ 0x1d000, 0x1d0f5,
+ 0x1d100, 0x1d126,
+ 0x1d129, 0x1d1dd,
+ 0x1d200, 0x1d245,
+ 0x1d300, 0x1d356,
+ 0x1d360, 0x1d371,
+ 0x1d400, 0x1d454,
+ 0x1d456, 0x1d49c,
+ 0x1d49e, 0x1d49f,
+ 0x1d4a2, 0x1d4a2,
+ 0x1d4a5, 0x1d4a6,
+ 0x1d4a9, 0x1d4ac,
+ 0x1d4ae, 0x1d4b9,
+ 0x1d4bb, 0x1d4bb,
+ 0x1d4bd, 0x1d4c3,
+ 0x1d4c5, 0x1d505,
+ 0x1d507, 0x1d50a,
+ 0x1d50d, 0x1d514,
+ 0x1d516, 0x1d51c,
+ 0x1d51e, 0x1d539,
+ 0x1d53b, 0x1d53e,
+ 0x1d540, 0x1d544,
+ 0x1d546, 0x1d546,
+ 0x1d54a, 0x1d550,
+ 0x1d552, 0x1d6a5,
+ 0x1d6a8, 0x1d7cb,
+ 0x1d7ce, 0x1d7ff,
+ 0x1f000, 0x1f02b,
+ 0x1f030, 0x1f093,
+ 0x1fffe, 0x2a6d6,
+ 0x2f800, 0x2fa1d,
+ 0x2fffe, 0x2ffff,
+ 0x3fffe, 0x3ffff,
+ 0x4fffe, 0x4ffff,
+ 0x5fffe, 0x5ffff,
+ 0x6fffe, 0x6ffff,
+ 0x7fffe, 0x7ffff,
+ 0x8fffe, 0x8ffff,
+ 0x9fffe, 0x9ffff,
+ 0xafffe, 0xaffff,
+ 0xbfffe, 0xbffff,
+ 0xcfffe, 0xcffff,
+ 0xdfffe, 0xdffff,
+ 0xe0001, 0xe0001,
+ 0xe0020, 0xe007f,
+ 0xe0100, 0xe01ef,
+ 0xefffe, 0x10ffff,
+}; /* CR_Age_5_1 */
+
+/* 'Age_5_2': Derived Age 5.2 */
+static const OnigCodePoint CR_Age_5_2[] = {
+ 495,
+ 0x0000, 0x0377,
+ 0x037a, 0x037e,
+ 0x0384, 0x038a,
+ 0x038c, 0x038c,
+ 0x038e, 0x03a1,
+ 0x03a3, 0x0525,
+ 0x0531, 0x0556,
+ 0x0559, 0x055f,
+ 0x0561, 0x0587,
+ 0x0589, 0x058a,
+ 0x0591, 0x05c7,
+ 0x05d0, 0x05ea,
+ 0x05f0, 0x05f4,
+ 0x0600, 0x0603,
+ 0x0606, 0x061b,
+ 0x061e, 0x061f,
+ 0x0621, 0x065e,
+ 0x0660, 0x070d,
+ 0x070f, 0x074a,
+ 0x074d, 0x07b1,
+ 0x07c0, 0x07fa,
+ 0x0800, 0x082d,
+ 0x0830, 0x083e,
+ 0x0900, 0x0939,
+ 0x093c, 0x094e,
+ 0x0950, 0x0955,
+ 0x0958, 0x0972,
+ 0x0979, 0x097f,
+ 0x0981, 0x0983,
+ 0x0985, 0x098c,
+ 0x098f, 0x0990,
+ 0x0993, 0x09a8,
+ 0x09aa, 0x09b0,
+ 0x09b2, 0x09b2,
+ 0x09b6, 0x09b9,
+ 0x09bc, 0x09c4,
+ 0x09c7, 0x09c8,
+ 0x09cb, 0x09ce,
+ 0x09d7, 0x09d7,
+ 0x09dc, 0x09dd,
+ 0x09df, 0x09e3,
+ 0x09e6, 0x09fb,
+ 0x0a01, 0x0a03,
+ 0x0a05, 0x0a0a,
+ 0x0a0f, 0x0a10,
+ 0x0a13, 0x0a28,
+ 0x0a2a, 0x0a30,
+ 0x0a32, 0x0a33,
+ 0x0a35, 0x0a36,
+ 0x0a38, 0x0a39,
+ 0x0a3c, 0x0a3c,
+ 0x0a3e, 0x0a42,
+ 0x0a47, 0x0a48,
+ 0x0a4b, 0x0a4d,
+ 0x0a51, 0x0a51,
+ 0x0a59, 0x0a5c,
+ 0x0a5e, 0x0a5e,
+ 0x0a66, 0x0a75,
+ 0x0a81, 0x0a83,
+ 0x0a85, 0x0a8d,
+ 0x0a8f, 0x0a91,
+ 0x0a93, 0x0aa8,
+ 0x0aaa, 0x0ab0,
+ 0x0ab2, 0x0ab3,
+ 0x0ab5, 0x0ab9,
+ 0x0abc, 0x0ac5,
+ 0x0ac7, 0x0ac9,
+ 0x0acb, 0x0acd,
+ 0x0ad0, 0x0ad0,
+ 0x0ae0, 0x0ae3,
+ 0x0ae6, 0x0aef,
+ 0x0af1, 0x0af1,
+ 0x0b01, 0x0b03,
+ 0x0b05, 0x0b0c,
+ 0x0b0f, 0x0b10,
+ 0x0b13, 0x0b28,
+ 0x0b2a, 0x0b30,
+ 0x0b32, 0x0b33,
+ 0x0b35, 0x0b39,
+ 0x0b3c, 0x0b44,
+ 0x0b47, 0x0b48,
+ 0x0b4b, 0x0b4d,
+ 0x0b56, 0x0b57,
+ 0x0b5c, 0x0b5d,
+ 0x0b5f, 0x0b63,
+ 0x0b66, 0x0b71,
+ 0x0b82, 0x0b83,
+ 0x0b85, 0x0b8a,
+ 0x0b8e, 0x0b90,
+ 0x0b92, 0x0b95,
+ 0x0b99, 0x0b9a,
+ 0x0b9c, 0x0b9c,
+ 0x0b9e, 0x0b9f,
+ 0x0ba3, 0x0ba4,
+ 0x0ba8, 0x0baa,
+ 0x0bae, 0x0bb9,
+ 0x0bbe, 0x0bc2,
+ 0x0bc6, 0x0bc8,
+ 0x0bca, 0x0bcd,
+ 0x0bd0, 0x0bd0,
+ 0x0bd7, 0x0bd7,
+ 0x0be6, 0x0bfa,
+ 0x0c01, 0x0c03,
+ 0x0c05, 0x0c0c,
+ 0x0c0e, 0x0c10,
+ 0x0c12, 0x0c28,
+ 0x0c2a, 0x0c33,
+ 0x0c35, 0x0c39,
+ 0x0c3d, 0x0c44,
+ 0x0c46, 0x0c48,
+ 0x0c4a, 0x0c4d,
+ 0x0c55, 0x0c56,
+ 0x0c58, 0x0c59,
+ 0x0c60, 0x0c63,
+ 0x0c66, 0x0c6f,
+ 0x0c78, 0x0c7f,
+ 0x0c82, 0x0c83,
+ 0x0c85, 0x0c8c,
+ 0x0c8e, 0x0c90,
+ 0x0c92, 0x0ca8,
+ 0x0caa, 0x0cb3,
+ 0x0cb5, 0x0cb9,
+ 0x0cbc, 0x0cc4,
+ 0x0cc6, 0x0cc8,
+ 0x0cca, 0x0ccd,
+ 0x0cd5, 0x0cd6,
+ 0x0cde, 0x0cde,
+ 0x0ce0, 0x0ce3,
+ 0x0ce6, 0x0cef,
+ 0x0cf1, 0x0cf2,
+ 0x0d02, 0x0d03,
+ 0x0d05, 0x0d0c,
+ 0x0d0e, 0x0d10,
+ 0x0d12, 0x0d28,
+ 0x0d2a, 0x0d39,
+ 0x0d3d, 0x0d44,
+ 0x0d46, 0x0d48,
+ 0x0d4a, 0x0d4d,
+ 0x0d57, 0x0d57,
+ 0x0d60, 0x0d63,
+ 0x0d66, 0x0d75,
+ 0x0d79, 0x0d7f,
+ 0x0d82, 0x0d83,
+ 0x0d85, 0x0d96,
+ 0x0d9a, 0x0db1,
+ 0x0db3, 0x0dbb,
+ 0x0dbd, 0x0dbd,
+ 0x0dc0, 0x0dc6,
+ 0x0dca, 0x0dca,
+ 0x0dcf, 0x0dd4,
+ 0x0dd6, 0x0dd6,
+ 0x0dd8, 0x0ddf,
+ 0x0df2, 0x0df4,
+ 0x0e01, 0x0e3a,
+ 0x0e3f, 0x0e5b,
+ 0x0e81, 0x0e82,
+ 0x0e84, 0x0e84,
+ 0x0e87, 0x0e88,
+ 0x0e8a, 0x0e8a,
+ 0x0e8d, 0x0e8d,
+ 0x0e94, 0x0e97,
+ 0x0e99, 0x0e9f,
+ 0x0ea1, 0x0ea3,
+ 0x0ea5, 0x0ea5,
+ 0x0ea7, 0x0ea7,
+ 0x0eaa, 0x0eab,
+ 0x0ead, 0x0eb9,
+ 0x0ebb, 0x0ebd,
+ 0x0ec0, 0x0ec4,
+ 0x0ec6, 0x0ec6,
+ 0x0ec8, 0x0ecd,
+ 0x0ed0, 0x0ed9,
+ 0x0edc, 0x0edd,
+ 0x0f00, 0x0f47,
+ 0x0f49, 0x0f6c,
+ 0x0f71, 0x0f8b,
+ 0x0f90, 0x0f97,
+ 0x0f99, 0x0fbc,
+ 0x0fbe, 0x0fcc,
+ 0x0fce, 0x0fd8,
+ 0x1000, 0x10c5,
+ 0x10d0, 0x10fc,
+ 0x1100, 0x1248,
+ 0x124a, 0x124d,
+ 0x1250, 0x1256,
+ 0x1258, 0x1258,
+ 0x125a, 0x125d,
+ 0x1260, 0x1288,
+ 0x128a, 0x128d,
+ 0x1290, 0x12b0,
+ 0x12b2, 0x12b5,
+ 0x12b8, 0x12be,
+ 0x12c0, 0x12c0,
+ 0x12c2, 0x12c5,
+ 0x12c8, 0x12d6,
+ 0x12d8, 0x1310,
+ 0x1312, 0x1315,
+ 0x1318, 0x135a,
+ 0x135f, 0x137c,
+ 0x1380, 0x1399,
+ 0x13a0, 0x13f4,
+ 0x1400, 0x169c,
+ 0x16a0, 0x16f0,
+ 0x1700, 0x170c,
+ 0x170e, 0x1714,
+ 0x1720, 0x1736,
+ 0x1740, 0x1753,
+ 0x1760, 0x176c,
+ 0x176e, 0x1770,
+ 0x1772, 0x1773,
+ 0x1780, 0x17dd,
+ 0x17e0, 0x17e9,
+ 0x17f0, 0x17f9,
+ 0x1800, 0x180e,
+ 0x1810, 0x1819,
+ 0x1820, 0x1877,
+ 0x1880, 0x18aa,
+ 0x18b0, 0x18f5,
+ 0x1900, 0x191c,
+ 0x1920, 0x192b,
+ 0x1930, 0x193b,
+ 0x1940, 0x1940,
+ 0x1944, 0x196d,
+ 0x1970, 0x1974,
+ 0x1980, 0x19ab,
+ 0x19b0, 0x19c9,
+ 0x19d0, 0x19da,
+ 0x19de, 0x1a1b,
+ 0x1a1e, 0x1a5e,
+ 0x1a60, 0x1a7c,
+ 0x1a7f, 0x1a89,
+ 0x1a90, 0x1a99,
+ 0x1aa0, 0x1aad,
+ 0x1b00, 0x1b4b,
+ 0x1b50, 0x1b7c,
+ 0x1b80, 0x1baa,
+ 0x1bae, 0x1bb9,
+ 0x1c00, 0x1c37,
+ 0x1c3b, 0x1c49,
+ 0x1c4d, 0x1c7f,
+ 0x1cd0, 0x1cf2,
+ 0x1d00, 0x1de6,
+ 0x1dfd, 0x1f15,
+ 0x1f18, 0x1f1d,
+ 0x1f20, 0x1f45,
+ 0x1f48, 0x1f4d,
+ 0x1f50, 0x1f57,
+ 0x1f59, 0x1f59,
+ 0x1f5b, 0x1f5b,
+ 0x1f5d, 0x1f5d,
+ 0x1f5f, 0x1f7d,
+ 0x1f80, 0x1fb4,
+ 0x1fb6, 0x1fc4,
+ 0x1fc6, 0x1fd3,
+ 0x1fd6, 0x1fdb,
+ 0x1fdd, 0x1fef,
+ 0x1ff2, 0x1ff4,
+ 0x1ff6, 0x1ffe,
+ 0x2000, 0x2064,
+ 0x206a, 0x2071,
+ 0x2074, 0x208e,
+ 0x2090, 0x2094,
+ 0x20a0, 0x20b8,
+ 0x20d0, 0x20f0,
+ 0x2100, 0x2189,
+ 0x2190, 0x23e8,
+ 0x2400, 0x2426,
+ 0x2440, 0x244a,
+ 0x2460, 0x26cd,
+ 0x26cf, 0x26e1,
+ 0x26e3, 0x26e3,
+ 0x26e8, 0x26ff,
+ 0x2701, 0x2704,
+ 0x2706, 0x2709,
+ 0x270c, 0x2727,
+ 0x2729, 0x274b,
+ 0x274d, 0x274d,
+ 0x274f, 0x2752,
+ 0x2756, 0x275e,
+ 0x2761, 0x2794,
+ 0x2798, 0x27af,
+ 0x27b1, 0x27be,
+ 0x27c0, 0x27ca,
+ 0x27cc, 0x27cc,
+ 0x27d0, 0x2b4c,
+ 0x2b50, 0x2b59,
+ 0x2c00, 0x2c2e,
+ 0x2c30, 0x2c5e,
+ 0x2c60, 0x2cf1,
+ 0x2cf9, 0x2d25,
+ 0x2d30, 0x2d65,
+ 0x2d6f, 0x2d6f,
+ 0x2d80, 0x2d96,
+ 0x2da0, 0x2da6,
+ 0x2da8, 0x2dae,
+ 0x2db0, 0x2db6,
+ 0x2db8, 0x2dbe,
+ 0x2dc0, 0x2dc6,
+ 0x2dc8, 0x2dce,
+ 0x2dd0, 0x2dd6,
+ 0x2dd8, 0x2dde,
+ 0x2de0, 0x2e31,
+ 0x2e80, 0x2e99,
+ 0x2e9b, 0x2ef3,
+ 0x2f00, 0x2fd5,
+ 0x2ff0, 0x2ffb,
+ 0x3000, 0x303f,
+ 0x3041, 0x3096,
+ 0x3099, 0x30ff,
+ 0x3105, 0x312d,
+ 0x3131, 0x318e,
+ 0x3190, 0x31b7,
+ 0x31c0, 0x31e3,
+ 0x31f0, 0x321e,
+ 0x3220, 0x32fe,
+ 0x3300, 0x4db5,
+ 0x4dc0, 0x9fcb,
+ 0xa000, 0xa48c,
+ 0xa490, 0xa4c6,
+ 0xa4d0, 0xa62b,
+ 0xa640, 0xa65f,
+ 0xa662, 0xa673,
+ 0xa67c, 0xa697,
+ 0xa6a0, 0xa6f7,
+ 0xa700, 0xa78c,
+ 0xa7fb, 0xa82b,
+ 0xa830, 0xa839,
+ 0xa840, 0xa877,
+ 0xa880, 0xa8c4,
+ 0xa8ce, 0xa8d9,
+ 0xa8e0, 0xa8fb,
+ 0xa900, 0xa953,
+ 0xa95f, 0xa97c,
+ 0xa980, 0xa9cd,
+ 0xa9cf, 0xa9d9,
+ 0xa9de, 0xa9df,
+ 0xaa00, 0xaa36,
+ 0xaa40, 0xaa4d,
+ 0xaa50, 0xaa59,
+ 0xaa5c, 0xaa7b,
+ 0xaa80, 0xaac2,
+ 0xaadb, 0xaadf,
+ 0xabc0, 0xabed,
+ 0xabf0, 0xabf9,
+ 0xac00, 0xd7a3,
+ 0xd7b0, 0xd7c6,
+ 0xd7cb, 0xd7fb,
+ 0xd800, 0xfa2d,
+ 0xfa30, 0xfa6d,
+ 0xfa70, 0xfad9,
+ 0xfb00, 0xfb06,
+ 0xfb13, 0xfb17,
+ 0xfb1d, 0xfb36,
+ 0xfb38, 0xfb3c,
+ 0xfb3e, 0xfb3e,
+ 0xfb40, 0xfb41,
+ 0xfb43, 0xfb44,
+ 0xfb46, 0xfbb1,
+ 0xfbd3, 0xfd3f,
+ 0xfd50, 0xfd8f,
+ 0xfd92, 0xfdc7,
+ 0xfdd0, 0xfdfd,
+ 0xfe00, 0xfe19,
+ 0xfe20, 0xfe26,
+ 0xfe30, 0xfe52,
+ 0xfe54, 0xfe66,
+ 0xfe68, 0xfe6b,
+ 0xfe70, 0xfe74,
+ 0xfe76, 0xfefc,
+ 0xfeff, 0xfeff,
+ 0xff01, 0xffbe,
+ 0xffc2, 0xffc7,
+ 0xffca, 0xffcf,
+ 0xffd2, 0xffd7,
+ 0xffda, 0xffdc,
+ 0xffe0, 0xffe6,
+ 0xffe8, 0xffee,
+ 0xfff9, 0x1000b,
+ 0x1000d, 0x10026,
+ 0x10028, 0x1003a,
+ 0x1003c, 0x1003d,
+ 0x1003f, 0x1004d,
+ 0x10050, 0x1005d,
+ 0x10080, 0x100fa,
+ 0x10100, 0x10102,
+ 0x10107, 0x10133,
+ 0x10137, 0x1018a,
+ 0x10190, 0x1019b,
+ 0x101d0, 0x101fd,
+ 0x10280, 0x1029c,
+ 0x102a0, 0x102d0,
+ 0x10300, 0x1031e,
+ 0x10320, 0x10323,
+ 0x10330, 0x1034a,
+ 0x10380, 0x1039d,
+ 0x1039f, 0x103c3,
+ 0x103c8, 0x103d5,
+ 0x10400, 0x1049d,
+ 0x104a0, 0x104a9,
+ 0x10800, 0x10805,
+ 0x10808, 0x10808,
+ 0x1080a, 0x10835,
+ 0x10837, 0x10838,
+ 0x1083c, 0x1083c,
+ 0x1083f, 0x10855,
+ 0x10857, 0x1085f,
+ 0x10900, 0x1091b,
+ 0x1091f, 0x10939,
+ 0x1093f, 0x1093f,
+ 0x10a00, 0x10a03,
+ 0x10a05, 0x10a06,
+ 0x10a0c, 0x10a13,
+ 0x10a15, 0x10a17,
+ 0x10a19, 0x10a33,
+ 0x10a38, 0x10a3a,
+ 0x10a3f, 0x10a47,
+ 0x10a50, 0x10a58,
+ 0x10a60, 0x10a7f,
+ 0x10b00, 0x10b35,
+ 0x10b39, 0x10b55,
+ 0x10b58, 0x10b72,
+ 0x10b78, 0x10b7f,
+ 0x10c00, 0x10c48,
+ 0x10e60, 0x10e7e,
+ 0x11080, 0x110c1,
+ 0x12000, 0x1236e,
+ 0x12400, 0x12462,
+ 0x12470, 0x12473,
+ 0x13000, 0x1342e,
+ 0x1d000, 0x1d0f5,
+ 0x1d100, 0x1d126,
+ 0x1d129, 0x1d1dd,
+ 0x1d200, 0x1d245,
+ 0x1d300, 0x1d356,
+ 0x1d360, 0x1d371,
+ 0x1d400, 0x1d454,
+ 0x1d456, 0x1d49c,
+ 0x1d49e, 0x1d49f,
+ 0x1d4a2, 0x1d4a2,
+ 0x1d4a5, 0x1d4a6,
+ 0x1d4a9, 0x1d4ac,
+ 0x1d4ae, 0x1d4b9,
+ 0x1d4bb, 0x1d4bb,
+ 0x1d4bd, 0x1d4c3,
+ 0x1d4c5, 0x1d505,
+ 0x1d507, 0x1d50a,
+ 0x1d50d, 0x1d514,
+ 0x1d516, 0x1d51c,
+ 0x1d51e, 0x1d539,
+ 0x1d53b, 0x1d53e,
+ 0x1d540, 0x1d544,
+ 0x1d546, 0x1d546,
+ 0x1d54a, 0x1d550,
+ 0x1d552, 0x1d6a5,
+ 0x1d6a8, 0x1d7cb,
+ 0x1d7ce, 0x1d7ff,
+ 0x1f000, 0x1f02b,
+ 0x1f030, 0x1f093,
+ 0x1f100, 0x1f10a,
+ 0x1f110, 0x1f12e,
+ 0x1f131, 0x1f131,
+ 0x1f13d, 0x1f13d,
+ 0x1f13f, 0x1f13f,
+ 0x1f142, 0x1f142,
+ 0x1f146, 0x1f146,
+ 0x1f14a, 0x1f14e,
+ 0x1f157, 0x1f157,
+ 0x1f15f, 0x1f15f,
+ 0x1f179, 0x1f179,
+ 0x1f17b, 0x1f17c,
+ 0x1f17f, 0x1f17f,
+ 0x1f18a, 0x1f18d,
+ 0x1f190, 0x1f190,
+ 0x1f200, 0x1f200,
+ 0x1f210, 0x1f231,
+ 0x1f240, 0x1f248,
+ 0x1fffe, 0x2a6d6,
+ 0x2a700, 0x2b734,
+ 0x2f800, 0x2fa1d,
+ 0x2fffe, 0x2ffff,
+ 0x3fffe, 0x3ffff,
+ 0x4fffe, 0x4ffff,
+ 0x5fffe, 0x5ffff,
+ 0x6fffe, 0x6ffff,
+ 0x7fffe, 0x7ffff,
+ 0x8fffe, 0x8ffff,
+ 0x9fffe, 0x9ffff,
+ 0xafffe, 0xaffff,
+ 0xbfffe, 0xbffff,
+ 0xcfffe, 0xcffff,
+ 0xdfffe, 0xdffff,
+ 0xe0001, 0xe0001,
+ 0xe0020, 0xe007f,
+ 0xe0100, 0xe01ef,
+ 0xefffe, 0x10ffff,
+}; /* CR_Age_5_2 */
+
+/* 'Age_6_0': Derived Age 6.0 */
+static const OnigCodePoint CR_Age_6_0[] = {
+ 511,
+ 0x0000, 0x0377,
+ 0x037a, 0x037e,
+ 0x0384, 0x038a,
+ 0x038c, 0x038c,
+ 0x038e, 0x03a1,
+ 0x03a3, 0x0527,
+ 0x0531, 0x0556,
+ 0x0559, 0x055f,
+ 0x0561, 0x0587,
+ 0x0589, 0x058a,
+ 0x0591, 0x05c7,
+ 0x05d0, 0x05ea,
+ 0x05f0, 0x05f4,
+ 0x0600, 0x0603,
+ 0x0606, 0x061b,
+ 0x061e, 0x070d,
+ 0x070f, 0x074a,
+ 0x074d, 0x07b1,
+ 0x07c0, 0x07fa,
+ 0x0800, 0x082d,
+ 0x0830, 0x083e,
+ 0x0840, 0x085b,
+ 0x085e, 0x085e,
+ 0x0900, 0x0977,
+ 0x0979, 0x097f,
+ 0x0981, 0x0983,
+ 0x0985, 0x098c,
+ 0x098f, 0x0990,
+ 0x0993, 0x09a8,
+ 0x09aa, 0x09b0,
+ 0x09b2, 0x09b2,
+ 0x09b6, 0x09b9,
+ 0x09bc, 0x09c4,
+ 0x09c7, 0x09c8,
+ 0x09cb, 0x09ce,
+ 0x09d7, 0x09d7,
+ 0x09dc, 0x09dd,
+ 0x09df, 0x09e3,
+ 0x09e6, 0x09fb,
+ 0x0a01, 0x0a03,
+ 0x0a05, 0x0a0a,
+ 0x0a0f, 0x0a10,
+ 0x0a13, 0x0a28,
+ 0x0a2a, 0x0a30,
+ 0x0a32, 0x0a33,
+ 0x0a35, 0x0a36,
+ 0x0a38, 0x0a39,
+ 0x0a3c, 0x0a3c,
+ 0x0a3e, 0x0a42,
+ 0x0a47, 0x0a48,
+ 0x0a4b, 0x0a4d,
+ 0x0a51, 0x0a51,
+ 0x0a59, 0x0a5c,
+ 0x0a5e, 0x0a5e,
+ 0x0a66, 0x0a75,
+ 0x0a81, 0x0a83,
+ 0x0a85, 0x0a8d,
+ 0x0a8f, 0x0a91,
+ 0x0a93, 0x0aa8,
+ 0x0aaa, 0x0ab0,
+ 0x0ab2, 0x0ab3,
+ 0x0ab5, 0x0ab9,
+ 0x0abc, 0x0ac5,
+ 0x0ac7, 0x0ac9,
+ 0x0acb, 0x0acd,
+ 0x0ad0, 0x0ad0,
+ 0x0ae0, 0x0ae3,
+ 0x0ae6, 0x0aef,
+ 0x0af1, 0x0af1,
+ 0x0b01, 0x0b03,
+ 0x0b05, 0x0b0c,
+ 0x0b0f, 0x0b10,
+ 0x0b13, 0x0b28,
+ 0x0b2a, 0x0b30,
+ 0x0b32, 0x0b33,
+ 0x0b35, 0x0b39,
+ 0x0b3c, 0x0b44,
+ 0x0b47, 0x0b48,
+ 0x0b4b, 0x0b4d,
+ 0x0b56, 0x0b57,
+ 0x0b5c, 0x0b5d,
+ 0x0b5f, 0x0b63,
+ 0x0b66, 0x0b77,
+ 0x0b82, 0x0b83,
+ 0x0b85, 0x0b8a,
+ 0x0b8e, 0x0b90,
+ 0x0b92, 0x0b95,
+ 0x0b99, 0x0b9a,
+ 0x0b9c, 0x0b9c,
+ 0x0b9e, 0x0b9f,
+ 0x0ba3, 0x0ba4,
+ 0x0ba8, 0x0baa,
+ 0x0bae, 0x0bb9,
+ 0x0bbe, 0x0bc2,
+ 0x0bc6, 0x0bc8,
+ 0x0bca, 0x0bcd,
+ 0x0bd0, 0x0bd0,
+ 0x0bd7, 0x0bd7,
+ 0x0be6, 0x0bfa,
+ 0x0c01, 0x0c03,
+ 0x0c05, 0x0c0c,
+ 0x0c0e, 0x0c10,
+ 0x0c12, 0x0c28,
+ 0x0c2a, 0x0c33,
+ 0x0c35, 0x0c39,
+ 0x0c3d, 0x0c44,
+ 0x0c46, 0x0c48,
+ 0x0c4a, 0x0c4d,
+ 0x0c55, 0x0c56,
+ 0x0c58, 0x0c59,
+ 0x0c60, 0x0c63,
+ 0x0c66, 0x0c6f,
+ 0x0c78, 0x0c7f,
+ 0x0c82, 0x0c83,
+ 0x0c85, 0x0c8c,
+ 0x0c8e, 0x0c90,
+ 0x0c92, 0x0ca8,
+ 0x0caa, 0x0cb3,
+ 0x0cb5, 0x0cb9,
+ 0x0cbc, 0x0cc4,
+ 0x0cc6, 0x0cc8,
+ 0x0cca, 0x0ccd,
+ 0x0cd5, 0x0cd6,
+ 0x0cde, 0x0cde,
+ 0x0ce0, 0x0ce3,
+ 0x0ce6, 0x0cef,
+ 0x0cf1, 0x0cf2,
+ 0x0d02, 0x0d03,
+ 0x0d05, 0x0d0c,
+ 0x0d0e, 0x0d10,
+ 0x0d12, 0x0d3a,
+ 0x0d3d, 0x0d44,
+ 0x0d46, 0x0d48,
+ 0x0d4a, 0x0d4e,
+ 0x0d57, 0x0d57,
+ 0x0d60, 0x0d63,
+ 0x0d66, 0x0d75,
+ 0x0d79, 0x0d7f,
+ 0x0d82, 0x0d83,
+ 0x0d85, 0x0d96,
+ 0x0d9a, 0x0db1,
+ 0x0db3, 0x0dbb,
+ 0x0dbd, 0x0dbd,
+ 0x0dc0, 0x0dc6,
+ 0x0dca, 0x0dca,
+ 0x0dcf, 0x0dd4,
+ 0x0dd6, 0x0dd6,
+ 0x0dd8, 0x0ddf,
+ 0x0df2, 0x0df4,
+ 0x0e01, 0x0e3a,
+ 0x0e3f, 0x0e5b,
+ 0x0e81, 0x0e82,
+ 0x0e84, 0x0e84,
+ 0x0e87, 0x0e88,
+ 0x0e8a, 0x0e8a,
+ 0x0e8d, 0x0e8d,
+ 0x0e94, 0x0e97,
+ 0x0e99, 0x0e9f,
+ 0x0ea1, 0x0ea3,
+ 0x0ea5, 0x0ea5,
+ 0x0ea7, 0x0ea7,
+ 0x0eaa, 0x0eab,
+ 0x0ead, 0x0eb9,
+ 0x0ebb, 0x0ebd,
+ 0x0ec0, 0x0ec4,
+ 0x0ec6, 0x0ec6,
+ 0x0ec8, 0x0ecd,
+ 0x0ed0, 0x0ed9,
+ 0x0edc, 0x0edd,
+ 0x0f00, 0x0f47,
+ 0x0f49, 0x0f6c,
+ 0x0f71, 0x0f97,
+ 0x0f99, 0x0fbc,
+ 0x0fbe, 0x0fcc,
+ 0x0fce, 0x0fda,
+ 0x1000, 0x10c5,
+ 0x10d0, 0x10fc,
+ 0x1100, 0x1248,
+ 0x124a, 0x124d,
+ 0x1250, 0x1256,
+ 0x1258, 0x1258,
+ 0x125a, 0x125d,
+ 0x1260, 0x1288,
+ 0x128a, 0x128d,
+ 0x1290, 0x12b0,
+ 0x12b2, 0x12b5,
+ 0x12b8, 0x12be,
+ 0x12c0, 0x12c0,
+ 0x12c2, 0x12c5,
+ 0x12c8, 0x12d6,
+ 0x12d8, 0x1310,
+ 0x1312, 0x1315,
+ 0x1318, 0x135a,
+ 0x135d, 0x137c,
+ 0x1380, 0x1399,
+ 0x13a0, 0x13f4,
+ 0x1400, 0x169c,
+ 0x16a0, 0x16f0,
+ 0x1700, 0x170c,
+ 0x170e, 0x1714,
+ 0x1720, 0x1736,
+ 0x1740, 0x1753,
+ 0x1760, 0x176c,
+ 0x176e, 0x1770,
+ 0x1772, 0x1773,
+ 0x1780, 0x17dd,
+ 0x17e0, 0x17e9,
+ 0x17f0, 0x17f9,
+ 0x1800, 0x180e,
+ 0x1810, 0x1819,
+ 0x1820, 0x1877,
+ 0x1880, 0x18aa,
+ 0x18b0, 0x18f5,
+ 0x1900, 0x191c,
+ 0x1920, 0x192b,
+ 0x1930, 0x193b,
+ 0x1940, 0x1940,
+ 0x1944, 0x196d,
+ 0x1970, 0x1974,
+ 0x1980, 0x19ab,
+ 0x19b0, 0x19c9,
+ 0x19d0, 0x19da,
+ 0x19de, 0x1a1b,
+ 0x1a1e, 0x1a5e,
+ 0x1a60, 0x1a7c,
+ 0x1a7f, 0x1a89,
+ 0x1a90, 0x1a99,
+ 0x1aa0, 0x1aad,
+ 0x1b00, 0x1b4b,
+ 0x1b50, 0x1b7c,
+ 0x1b80, 0x1baa,
+ 0x1bae, 0x1bb9,
+ 0x1bc0, 0x1bf3,
+ 0x1bfc, 0x1c37,
+ 0x1c3b, 0x1c49,
+ 0x1c4d, 0x1c7f,
+ 0x1cd0, 0x1cf2,
+ 0x1d00, 0x1de6,
+ 0x1dfc, 0x1f15,
+ 0x1f18, 0x1f1d,
+ 0x1f20, 0x1f45,
+ 0x1f48, 0x1f4d,
+ 0x1f50, 0x1f57,
+ 0x1f59, 0x1f59,
+ 0x1f5b, 0x1f5b,
+ 0x1f5d, 0x1f5d,
+ 0x1f5f, 0x1f7d,
+ 0x1f80, 0x1fb4,
+ 0x1fb6, 0x1fc4,
+ 0x1fc6, 0x1fd3,
+ 0x1fd6, 0x1fdb,
+ 0x1fdd, 0x1fef,
+ 0x1ff2, 0x1ff4,
+ 0x1ff6, 0x1ffe,
+ 0x2000, 0x2064,
+ 0x206a, 0x2071,
+ 0x2074, 0x208e,
+ 0x2090, 0x209c,
+ 0x20a0, 0x20b9,
+ 0x20d0, 0x20f0,
+ 0x2100, 0x2189,
+ 0x2190, 0x23f3,
+ 0x2400, 0x2426,
+ 0x2440, 0x244a,
+ 0x2460, 0x26ff,
+ 0x2701, 0x27ca,
+ 0x27cc, 0x27cc,
+ 0x27ce, 0x2b4c,
+ 0x2b50, 0x2b59,
+ 0x2c00, 0x2c2e,
+ 0x2c30, 0x2c5e,
+ 0x2c60, 0x2cf1,
+ 0x2cf9, 0x2d25,
+ 0x2d30, 0x2d65,
+ 0x2d6f, 0x2d70,
+ 0x2d7f, 0x2d96,
+ 0x2da0, 0x2da6,
+ 0x2da8, 0x2dae,
+ 0x2db0, 0x2db6,
+ 0x2db8, 0x2dbe,
+ 0x2dc0, 0x2dc6,
+ 0x2dc8, 0x2dce,
+ 0x2dd0, 0x2dd6,
+ 0x2dd8, 0x2dde,
+ 0x2de0, 0x2e31,
+ 0x2e80, 0x2e99,
+ 0x2e9b, 0x2ef3,
+ 0x2f00, 0x2fd5,
+ 0x2ff0, 0x2ffb,
+ 0x3000, 0x303f,
+ 0x3041, 0x3096,
+ 0x3099, 0x30ff,
+ 0x3105, 0x312d,
+ 0x3131, 0x318e,
+ 0x3190, 0x31ba,
+ 0x31c0, 0x31e3,
+ 0x31f0, 0x321e,
+ 0x3220, 0x32fe,
+ 0x3300, 0x4db5,
+ 0x4dc0, 0x9fcb,
+ 0xa000, 0xa48c,
+ 0xa490, 0xa4c6,
+ 0xa4d0, 0xa62b,
+ 0xa640, 0xa673,
+ 0xa67c, 0xa697,
+ 0xa6a0, 0xa6f7,
+ 0xa700, 0xa78e,
+ 0xa790, 0xa791,
+ 0xa7a0, 0xa7a9,
+ 0xa7fa, 0xa82b,
+ 0xa830, 0xa839,
+ 0xa840, 0xa877,
+ 0xa880, 0xa8c4,
+ 0xa8ce, 0xa8d9,
+ 0xa8e0, 0xa8fb,
+ 0xa900, 0xa953,
+ 0xa95f, 0xa97c,
+ 0xa980, 0xa9cd,
+ 0xa9cf, 0xa9d9,
+ 0xa9de, 0xa9df,
+ 0xaa00, 0xaa36,
+ 0xaa40, 0xaa4d,
+ 0xaa50, 0xaa59,
+ 0xaa5c, 0xaa7b,
+ 0xaa80, 0xaac2,
+ 0xaadb, 0xaadf,
+ 0xab01, 0xab06,
+ 0xab09, 0xab0e,
+ 0xab11, 0xab16,
+ 0xab20, 0xab26,
+ 0xab28, 0xab2e,
+ 0xabc0, 0xabed,
+ 0xabf0, 0xabf9,
+ 0xac00, 0xd7a3,
+ 0xd7b0, 0xd7c6,
+ 0xd7cb, 0xd7fb,
+ 0xd800, 0xfa2d,
+ 0xfa30, 0xfa6d,
+ 0xfa70, 0xfad9,
+ 0xfb00, 0xfb06,
+ 0xfb13, 0xfb17,
+ 0xfb1d, 0xfb36,
+ 0xfb38, 0xfb3c,
+ 0xfb3e, 0xfb3e,
+ 0xfb40, 0xfb41,
+ 0xfb43, 0xfb44,
+ 0xfb46, 0xfbc1,
+ 0xfbd3, 0xfd3f,
+ 0xfd50, 0xfd8f,
+ 0xfd92, 0xfdc7,
+ 0xfdd0, 0xfdfd,
+ 0xfe00, 0xfe19,
+ 0xfe20, 0xfe26,
+ 0xfe30, 0xfe52,
+ 0xfe54, 0xfe66,
+ 0xfe68, 0xfe6b,
+ 0xfe70, 0xfe74,
+ 0xfe76, 0xfefc,
+ 0xfeff, 0xfeff,
+ 0xff01, 0xffbe,
+ 0xffc2, 0xffc7,
+ 0xffca, 0xffcf,
+ 0xffd2, 0xffd7,
+ 0xffda, 0xffdc,
+ 0xffe0, 0xffe6,
+ 0xffe8, 0xffee,
+ 0xfff9, 0x1000b,
+ 0x1000d, 0x10026,
+ 0x10028, 0x1003a,
+ 0x1003c, 0x1003d,
+ 0x1003f, 0x1004d,
+ 0x10050, 0x1005d,
+ 0x10080, 0x100fa,
+ 0x10100, 0x10102,
+ 0x10107, 0x10133,
+ 0x10137, 0x1018a,
+ 0x10190, 0x1019b,
+ 0x101d0, 0x101fd,
+ 0x10280, 0x1029c,
+ 0x102a0, 0x102d0,
+ 0x10300, 0x1031e,
+ 0x10320, 0x10323,
+ 0x10330, 0x1034a,
+ 0x10380, 0x1039d,
+ 0x1039f, 0x103c3,
+ 0x103c8, 0x103d5,
+ 0x10400, 0x1049d,
+ 0x104a0, 0x104a9,
+ 0x10800, 0x10805,
+ 0x10808, 0x10808,
+ 0x1080a, 0x10835,
+ 0x10837, 0x10838,
+ 0x1083c, 0x1083c,
+ 0x1083f, 0x10855,
+ 0x10857, 0x1085f,
+ 0x10900, 0x1091b,
+ 0x1091f, 0x10939,
+ 0x1093f, 0x1093f,
+ 0x10a00, 0x10a03,
+ 0x10a05, 0x10a06,
+ 0x10a0c, 0x10a13,
+ 0x10a15, 0x10a17,
+ 0x10a19, 0x10a33,
+ 0x10a38, 0x10a3a,
+ 0x10a3f, 0x10a47,
+ 0x10a50, 0x10a58,
+ 0x10a60, 0x10a7f,
+ 0x10b00, 0x10b35,
+ 0x10b39, 0x10b55,
+ 0x10b58, 0x10b72,
+ 0x10b78, 0x10b7f,
+ 0x10c00, 0x10c48,
+ 0x10e60, 0x10e7e,
+ 0x11000, 0x1104d,
+ 0x11052, 0x1106f,
+ 0x11080, 0x110c1,
+ 0x12000, 0x1236e,
+ 0x12400, 0x12462,
+ 0x12470, 0x12473,
+ 0x13000, 0x1342e,
+ 0x16800, 0x16a38,
+ 0x1b000, 0x1b001,
+ 0x1d000, 0x1d0f5,
+ 0x1d100, 0x1d126,
+ 0x1d129, 0x1d1dd,
+ 0x1d200, 0x1d245,
+ 0x1d300, 0x1d356,
+ 0x1d360, 0x1d371,
+ 0x1d400, 0x1d454,
+ 0x1d456, 0x1d49c,
+ 0x1d49e, 0x1d49f,
+ 0x1d4a2, 0x1d4a2,
+ 0x1d4a5, 0x1d4a6,
+ 0x1d4a9, 0x1d4ac,
+ 0x1d4ae, 0x1d4b9,
+ 0x1d4bb, 0x1d4bb,
+ 0x1d4bd, 0x1d4c3,
+ 0x1d4c5, 0x1d505,
+ 0x1d507, 0x1d50a,
+ 0x1d50d, 0x1d514,
+ 0x1d516, 0x1d51c,
+ 0x1d51e, 0x1d539,
+ 0x1d53b, 0x1d53e,
+ 0x1d540, 0x1d544,
+ 0x1d546, 0x1d546,
+ 0x1d54a, 0x1d550,
+ 0x1d552, 0x1d6a5,
+ 0x1d6a8, 0x1d7cb,
+ 0x1d7ce, 0x1d7ff,
+ 0x1f000, 0x1f02b,
+ 0x1f030, 0x1f093,
+ 0x1f0a0, 0x1f0ae,
+ 0x1f0b1, 0x1f0be,
+ 0x1f0c1, 0x1f0cf,
+ 0x1f0d1, 0x1f0df,
+ 0x1f100, 0x1f10a,
+ 0x1f110, 0x1f12e,
+ 0x1f130, 0x1f169,
+ 0x1f170, 0x1f19a,
+ 0x1f1e6, 0x1f202,
+ 0x1f210, 0x1f23a,
+ 0x1f240, 0x1f248,
+ 0x1f250, 0x1f251,
+ 0x1f300, 0x1f320,
+ 0x1f330, 0x1f335,
+ 0x1f337, 0x1f37c,
+ 0x1f380, 0x1f393,
+ 0x1f3a0, 0x1f3c4,
+ 0x1f3c6, 0x1f3ca,
+ 0x1f3e0, 0x1f3f0,
+ 0x1f400, 0x1f43e,
+ 0x1f440, 0x1f440,
+ 0x1f442, 0x1f4f7,
+ 0x1f4f9, 0x1f4fc,
+ 0x1f500, 0x1f53d,
+ 0x1f550, 0x1f567,
+ 0x1f5fb, 0x1f5ff,
+ 0x1f601, 0x1f610,
+ 0x1f612, 0x1f614,
+ 0x1f616, 0x1f616,
+ 0x1f618, 0x1f618,
+ 0x1f61a, 0x1f61a,
+ 0x1f61c, 0x1f61e,
+ 0x1f620, 0x1f625,
+ 0x1f628, 0x1f62b,
+ 0x1f62d, 0x1f62d,
+ 0x1f630, 0x1f633,
+ 0x1f635, 0x1f640,
+ 0x1f645, 0x1f64f,
+ 0x1f680, 0x1f6c5,
+ 0x1f700, 0x1f773,
+ 0x1fffe, 0x2a6d6,
+ 0x2a700, 0x2b734,
+ 0x2b740, 0x2b81d,
+ 0x2f800, 0x2fa1d,
+ 0x2fffe, 0x2ffff,
+ 0x3fffe, 0x3ffff,
+ 0x4fffe, 0x4ffff,
+ 0x5fffe, 0x5ffff,
+ 0x6fffe, 0x6ffff,
+ 0x7fffe, 0x7ffff,
+ 0x8fffe, 0x8ffff,
+ 0x9fffe, 0x9ffff,
+ 0xafffe, 0xaffff,
+ 0xbfffe, 0xbffff,
+ 0xcfffe, 0xcffff,
+ 0xdfffe, 0xdffff,
+ 0xe0001, 0xe0001,
+ 0xe0020, 0xe007f,
+ 0xe0100, 0xe01ef,
+ 0xefffe, 0x10ffff,
+}; /* CR_Age_6_0 */
+
+/* 'NEWLINE': [[:NEWLINE:]] */
+static const OnigCodePoint CR_NEWLINE[] = {
+ 1,
+ 0x000a, 0x000a,
+}; /* CR_NEWLINE */
+
+/* 'Alpha': [[:Alpha:]] */
+#define CR_Alpha CR_Alphabetic
+
+/* 'Blank': [[:Blank:]] */
+static const OnigCodePoint CR_Blank[] = {
+ 9,
+ 0x0009, 0x0009,
+ 0x0020, 0x0020,
+ 0x00a0, 0x00a0,
+ 0x1680, 0x1680,
+ 0x180e, 0x180e,
+ 0x2000, 0x200a,
+ 0x202f, 0x202f,
+ 0x205f, 0x205f,
+ 0x3000, 0x3000,
+}; /* CR_Blank */
+
+/* 'Cntrl': [[:Cntrl:]] */
+#define CR_Cntrl CR_Cc
+
+/* 'Digit': [[:Digit:]] */
+#define CR_Digit CR_Nd
+
+/* 'Graph': [[:Graph:]] */
+static const OnigCodePoint CR_Graph[] = {
+ 506,
+ 0x0021, 0x007e,
+ 0x00a1, 0x0377,
+ 0x037a, 0x037e,
+ 0x0384, 0x038a,
+ 0x038c, 0x038c,
+ 0x038e, 0x03a1,
+ 0x03a3, 0x0527,
+ 0x0531, 0x0556,
+ 0x0559, 0x055f,
+ 0x0561, 0x0587,
+ 0x0589, 0x058a,
+ 0x0591, 0x05c7,
+ 0x05d0, 0x05ea,
+ 0x05f0, 0x05f4,
+ 0x0600, 0x0603,
+ 0x0606, 0x061b,
+ 0x061e, 0x070d,
+ 0x070f, 0x074a,
+ 0x074d, 0x07b1,
+ 0x07c0, 0x07fa,
+ 0x0800, 0x082d,
+ 0x0830, 0x083e,
+ 0x0840, 0x085b,
+ 0x085e, 0x085e,
+ 0x0900, 0x0977,
+ 0x0979, 0x097f,
+ 0x0981, 0x0983,
+ 0x0985, 0x098c,
+ 0x098f, 0x0990,
+ 0x0993, 0x09a8,
+ 0x09aa, 0x09b0,
+ 0x09b2, 0x09b2,
+ 0x09b6, 0x09b9,
+ 0x09bc, 0x09c4,
+ 0x09c7, 0x09c8,
+ 0x09cb, 0x09ce,
+ 0x09d7, 0x09d7,
+ 0x09dc, 0x09dd,
+ 0x09df, 0x09e3,
+ 0x09e6, 0x09fb,
+ 0x0a01, 0x0a03,
+ 0x0a05, 0x0a0a,
+ 0x0a0f, 0x0a10,
+ 0x0a13, 0x0a28,
+ 0x0a2a, 0x0a30,
+ 0x0a32, 0x0a33,
+ 0x0a35, 0x0a36,
+ 0x0a38, 0x0a39,
+ 0x0a3c, 0x0a3c,
+ 0x0a3e, 0x0a42,
+ 0x0a47, 0x0a48,
+ 0x0a4b, 0x0a4d,
+ 0x0a51, 0x0a51,
+ 0x0a59, 0x0a5c,
+ 0x0a5e, 0x0a5e,
+ 0x0a66, 0x0a75,
+ 0x0a81, 0x0a83,
+ 0x0a85, 0x0a8d,
+ 0x0a8f, 0x0a91,
+ 0x0a93, 0x0aa8,
+ 0x0aaa, 0x0ab0,
+ 0x0ab2, 0x0ab3,
+ 0x0ab5, 0x0ab9,
+ 0x0abc, 0x0ac5,
+ 0x0ac7, 0x0ac9,
+ 0x0acb, 0x0acd,
+ 0x0ad0, 0x0ad0,
+ 0x0ae0, 0x0ae3,
+ 0x0ae6, 0x0aef,
+ 0x0af1, 0x0af1,
+ 0x0b01, 0x0b03,
+ 0x0b05, 0x0b0c,
+ 0x0b0f, 0x0b10,
+ 0x0b13, 0x0b28,
+ 0x0b2a, 0x0b30,
+ 0x0b32, 0x0b33,
+ 0x0b35, 0x0b39,
+ 0x0b3c, 0x0b44,
+ 0x0b47, 0x0b48,
+ 0x0b4b, 0x0b4d,
+ 0x0b56, 0x0b57,
+ 0x0b5c, 0x0b5d,
+ 0x0b5f, 0x0b63,
+ 0x0b66, 0x0b77,
+ 0x0b82, 0x0b83,
+ 0x0b85, 0x0b8a,
+ 0x0b8e, 0x0b90,
+ 0x0b92, 0x0b95,
+ 0x0b99, 0x0b9a,
+ 0x0b9c, 0x0b9c,
+ 0x0b9e, 0x0b9f,
+ 0x0ba3, 0x0ba4,
+ 0x0ba8, 0x0baa,
+ 0x0bae, 0x0bb9,
+ 0x0bbe, 0x0bc2,
+ 0x0bc6, 0x0bc8,
+ 0x0bca, 0x0bcd,
+ 0x0bd0, 0x0bd0,
+ 0x0bd7, 0x0bd7,
+ 0x0be6, 0x0bfa,
+ 0x0c01, 0x0c03,
+ 0x0c05, 0x0c0c,
+ 0x0c0e, 0x0c10,
+ 0x0c12, 0x0c28,
+ 0x0c2a, 0x0c33,
+ 0x0c35, 0x0c39,
+ 0x0c3d, 0x0c44,
+ 0x0c46, 0x0c48,
+ 0x0c4a, 0x0c4d,
+ 0x0c55, 0x0c56,
+ 0x0c58, 0x0c59,
+ 0x0c60, 0x0c63,
+ 0x0c66, 0x0c6f,
+ 0x0c78, 0x0c7f,
+ 0x0c82, 0x0c83,
+ 0x0c85, 0x0c8c,
+ 0x0c8e, 0x0c90,
+ 0x0c92, 0x0ca8,
+ 0x0caa, 0x0cb3,
+ 0x0cb5, 0x0cb9,
+ 0x0cbc, 0x0cc4,
+ 0x0cc6, 0x0cc8,
+ 0x0cca, 0x0ccd,
+ 0x0cd5, 0x0cd6,
+ 0x0cde, 0x0cde,
+ 0x0ce0, 0x0ce3,
+ 0x0ce6, 0x0cef,
+ 0x0cf1, 0x0cf2,
+ 0x0d02, 0x0d03,
+ 0x0d05, 0x0d0c,
+ 0x0d0e, 0x0d10,
+ 0x0d12, 0x0d3a,
+ 0x0d3d, 0x0d44,
+ 0x0d46, 0x0d48,
+ 0x0d4a, 0x0d4e,
+ 0x0d57, 0x0d57,
+ 0x0d60, 0x0d63,
+ 0x0d66, 0x0d75,
+ 0x0d79, 0x0d7f,
+ 0x0d82, 0x0d83,
+ 0x0d85, 0x0d96,
+ 0x0d9a, 0x0db1,
+ 0x0db3, 0x0dbb,
+ 0x0dbd, 0x0dbd,
+ 0x0dc0, 0x0dc6,
+ 0x0dca, 0x0dca,
+ 0x0dcf, 0x0dd4,
+ 0x0dd6, 0x0dd6,
+ 0x0dd8, 0x0ddf,
+ 0x0df2, 0x0df4,
+ 0x0e01, 0x0e3a,
+ 0x0e3f, 0x0e5b,
+ 0x0e81, 0x0e82,
+ 0x0e84, 0x0e84,
+ 0x0e87, 0x0e88,
+ 0x0e8a, 0x0e8a,
+ 0x0e8d, 0x0e8d,
+ 0x0e94, 0x0e97,
+ 0x0e99, 0x0e9f,
+ 0x0ea1, 0x0ea3,
+ 0x0ea5, 0x0ea5,
+ 0x0ea7, 0x0ea7,
+ 0x0eaa, 0x0eab,
+ 0x0ead, 0x0eb9,
+ 0x0ebb, 0x0ebd,
+ 0x0ec0, 0x0ec4,
+ 0x0ec6, 0x0ec6,
+ 0x0ec8, 0x0ecd,
+ 0x0ed0, 0x0ed9,
+ 0x0edc, 0x0edd,
+ 0x0f00, 0x0f47,
+ 0x0f49, 0x0f6c,
+ 0x0f71, 0x0f97,
+ 0x0f99, 0x0fbc,
+ 0x0fbe, 0x0fcc,
+ 0x0fce, 0x0fda,
+ 0x1000, 0x10c5,
+ 0x10d0, 0x10fc,
+ 0x1100, 0x1248,
+ 0x124a, 0x124d,
+ 0x1250, 0x1256,
+ 0x1258, 0x1258,
+ 0x125a, 0x125d,
+ 0x1260, 0x1288,
+ 0x128a, 0x128d,
+ 0x1290, 0x12b0,
+ 0x12b2, 0x12b5,
+ 0x12b8, 0x12be,
+ 0x12c0, 0x12c0,
+ 0x12c2, 0x12c5,
+ 0x12c8, 0x12d6,
+ 0x12d8, 0x1310,
+ 0x1312, 0x1315,
+ 0x1318, 0x135a,
+ 0x135d, 0x137c,
+ 0x1380, 0x1399,
+ 0x13a0, 0x13f4,
+ 0x1400, 0x167f,
+ 0x1681, 0x169c,
+ 0x16a0, 0x16f0,
+ 0x1700, 0x170c,
+ 0x170e, 0x1714,
+ 0x1720, 0x1736,
+ 0x1740, 0x1753,
+ 0x1760, 0x176c,
+ 0x176e, 0x1770,
+ 0x1772, 0x1773,
+ 0x1780, 0x17dd,
+ 0x17e0, 0x17e9,
+ 0x17f0, 0x17f9,
+ 0x1800, 0x180d,
+ 0x1810, 0x1819,
+ 0x1820, 0x1877,
+ 0x1880, 0x18aa,
+ 0x18b0, 0x18f5,
+ 0x1900, 0x191c,
+ 0x1920, 0x192b,
+ 0x1930, 0x193b,
+ 0x1940, 0x1940,
+ 0x1944, 0x196d,
+ 0x1970, 0x1974,
+ 0x1980, 0x19ab,
+ 0x19b0, 0x19c9,
+ 0x19d0, 0x19da,
+ 0x19de, 0x1a1b,
+ 0x1a1e, 0x1a5e,
+ 0x1a60, 0x1a7c,
+ 0x1a7f, 0x1a89,
+ 0x1a90, 0x1a99,
+ 0x1aa0, 0x1aad,
+ 0x1b00, 0x1b4b,
+ 0x1b50, 0x1b7c,
+ 0x1b80, 0x1baa,
+ 0x1bae, 0x1bb9,
+ 0x1bc0, 0x1bf3,
+ 0x1bfc, 0x1c37,
+ 0x1c3b, 0x1c49,
+ 0x1c4d, 0x1c7f,
+ 0x1cd0, 0x1cf2,
+ 0x1d00, 0x1de6,
+ 0x1dfc, 0x1f15,
+ 0x1f18, 0x1f1d,
+ 0x1f20, 0x1f45,
+ 0x1f48, 0x1f4d,
+ 0x1f50, 0x1f57,
+ 0x1f59, 0x1f59,
+ 0x1f5b, 0x1f5b,
+ 0x1f5d, 0x1f5d,
+ 0x1f5f, 0x1f7d,
+ 0x1f80, 0x1fb4,
+ 0x1fb6, 0x1fc4,
+ 0x1fc6, 0x1fd3,
+ 0x1fd6, 0x1fdb,
+ 0x1fdd, 0x1fef,
+ 0x1ff2, 0x1ff4,
+ 0x1ff6, 0x1ffe,
+ 0x200b, 0x2027,
+ 0x202a, 0x202e,
+ 0x2030, 0x205e,
+ 0x2060, 0x2064,
+ 0x206a, 0x2071,
+ 0x2074, 0x208e,
+ 0x2090, 0x209c,
+ 0x20a0, 0x20b9,
+ 0x20d0, 0x20f0,
+ 0x2100, 0x2189,
+ 0x2190, 0x23f3,
+ 0x2400, 0x2426,
+ 0x2440, 0x244a,
+ 0x2460, 0x26ff,
+ 0x2701, 0x27ca,
+ 0x27cc, 0x27cc,
+ 0x27ce, 0x2b4c,
+ 0x2b50, 0x2b59,
+ 0x2c00, 0x2c2e,
+ 0x2c30, 0x2c5e,
+ 0x2c60, 0x2cf1,
+ 0x2cf9, 0x2d25,
+ 0x2d30, 0x2d65,
+ 0x2d6f, 0x2d70,
+ 0x2d7f, 0x2d96,
+ 0x2da0, 0x2da6,
+ 0x2da8, 0x2dae,
+ 0x2db0, 0x2db6,
+ 0x2db8, 0x2dbe,
+ 0x2dc0, 0x2dc6,
+ 0x2dc8, 0x2dce,
+ 0x2dd0, 0x2dd6,
+ 0x2dd8, 0x2dde,
+ 0x2de0, 0x2e31,
+ 0x2e80, 0x2e99,
+ 0x2e9b, 0x2ef3,
+ 0x2f00, 0x2fd5,
+ 0x2ff0, 0x2ffb,
+ 0x3001, 0x303f,
+ 0x3041, 0x3096,
+ 0x3099, 0x30ff,
+ 0x3105, 0x312d,
+ 0x3131, 0x318e,
+ 0x3190, 0x31ba,
+ 0x31c0, 0x31e3,
+ 0x31f0, 0x321e,
+ 0x3220, 0x32fe,
+ 0x3300, 0x4db5,
+ 0x4dc0, 0x9fcb,
+ 0xa000, 0xa48c,
+ 0xa490, 0xa4c6,
+ 0xa4d0, 0xa62b,
+ 0xa640, 0xa673,
+ 0xa67c, 0xa697,
+ 0xa6a0, 0xa6f7,
+ 0xa700, 0xa78e,
+ 0xa790, 0xa791,
+ 0xa7a0, 0xa7a9,
+ 0xa7fa, 0xa82b,
+ 0xa830, 0xa839,
+ 0xa840, 0xa877,
+ 0xa880, 0xa8c4,
+ 0xa8ce, 0xa8d9,
+ 0xa8e0, 0xa8fb,
+ 0xa900, 0xa953,
+ 0xa95f, 0xa97c,
+ 0xa980, 0xa9cd,
+ 0xa9cf, 0xa9d9,
+ 0xa9de, 0xa9df,
+ 0xaa00, 0xaa36,
+ 0xaa40, 0xaa4d,
+ 0xaa50, 0xaa59,
+ 0xaa5c, 0xaa7b,
+ 0xaa80, 0xaac2,
+ 0xaadb, 0xaadf,
+ 0xab01, 0xab06,
+ 0xab09, 0xab0e,
+ 0xab11, 0xab16,
+ 0xab20, 0xab26,
+ 0xab28, 0xab2e,
+ 0xabc0, 0xabed,
+ 0xabf0, 0xabf9,
+ 0xac00, 0xd7a3,
+ 0xd7b0, 0xd7c6,
+ 0xd7cb, 0xd7fb,
+ 0xe000, 0xfa2d,
+ 0xfa30, 0xfa6d,
+ 0xfa70, 0xfad9,
+ 0xfb00, 0xfb06,
+ 0xfb13, 0xfb17,
+ 0xfb1d, 0xfb36,
+ 0xfb38, 0xfb3c,
+ 0xfb3e, 0xfb3e,
+ 0xfb40, 0xfb41,
+ 0xfb43, 0xfb44,
+ 0xfb46, 0xfbc1,
+ 0xfbd3, 0xfd3f,
+ 0xfd50, 0xfd8f,
+ 0xfd92, 0xfdc7,
+ 0xfdf0, 0xfdfd,
+ 0xfe00, 0xfe19,
+ 0xfe20, 0xfe26,
+ 0xfe30, 0xfe52,
+ 0xfe54, 0xfe66,
+ 0xfe68, 0xfe6b,
+ 0xfe70, 0xfe74,
+ 0xfe76, 0xfefc,
+ 0xfeff, 0xfeff,
+ 0xff01, 0xffbe,
+ 0xffc2, 0xffc7,
+ 0xffca, 0xffcf,
+ 0xffd2, 0xffd7,
+ 0xffda, 0xffdc,
+ 0xffe0, 0xffe6,
+ 0xffe8, 0xffee,
+ 0xfff9, 0xfffd,
+ 0x10000, 0x1000b,
+ 0x1000d, 0x10026,
+ 0x10028, 0x1003a,
+ 0x1003c, 0x1003d,
+ 0x1003f, 0x1004d,
+ 0x10050, 0x1005d,
+ 0x10080, 0x100fa,
+ 0x10100, 0x10102,
+ 0x10107, 0x10133,
+ 0x10137, 0x1018a,
+ 0x10190, 0x1019b,
+ 0x101d0, 0x101fd,
+ 0x10280, 0x1029c,
+ 0x102a0, 0x102d0,
+ 0x10300, 0x1031e,
+ 0x10320, 0x10323,
+ 0x10330, 0x1034a,
+ 0x10380, 0x1039d,
+ 0x1039f, 0x103c3,
+ 0x103c8, 0x103d5,
+ 0x10400, 0x1049d,
+ 0x104a0, 0x104a9,
+ 0x10800, 0x10805,
+ 0x10808, 0x10808,
+ 0x1080a, 0x10835,
+ 0x10837, 0x10838,
+ 0x1083c, 0x1083c,
+ 0x1083f, 0x10855,
+ 0x10857, 0x1085f,
+ 0x10900, 0x1091b,
+ 0x1091f, 0x10939,
+ 0x1093f, 0x1093f,
+ 0x10a00, 0x10a03,
+ 0x10a05, 0x10a06,
+ 0x10a0c, 0x10a13,
+ 0x10a15, 0x10a17,
+ 0x10a19, 0x10a33,
+ 0x10a38, 0x10a3a,
+ 0x10a3f, 0x10a47,
+ 0x10a50, 0x10a58,
+ 0x10a60, 0x10a7f,
+ 0x10b00, 0x10b35,
+ 0x10b39, 0x10b55,
+ 0x10b58, 0x10b72,
+ 0x10b78, 0x10b7f,
+ 0x10c00, 0x10c48,
+ 0x10e60, 0x10e7e,
+ 0x11000, 0x1104d,
+ 0x11052, 0x1106f,
+ 0x11080, 0x110c1,
+ 0x12000, 0x1236e,
+ 0x12400, 0x12462,
+ 0x12470, 0x12473,
+ 0x13000, 0x1342e,
+ 0x16800, 0x16a38,
+ 0x1b000, 0x1b001,
+ 0x1d000, 0x1d0f5,
+ 0x1d100, 0x1d126,
+ 0x1d129, 0x1d1dd,
+ 0x1d200, 0x1d245,
+ 0x1d300, 0x1d356,
+ 0x1d360, 0x1d371,
+ 0x1d400, 0x1d454,
+ 0x1d456, 0x1d49c,
+ 0x1d49e, 0x1d49f,
+ 0x1d4a2, 0x1d4a2,
+ 0x1d4a5, 0x1d4a6,
+ 0x1d4a9, 0x1d4ac,
+ 0x1d4ae, 0x1d4b9,
+ 0x1d4bb, 0x1d4bb,
+ 0x1d4bd, 0x1d4c3,
+ 0x1d4c5, 0x1d505,
+ 0x1d507, 0x1d50a,
+ 0x1d50d, 0x1d514,
+ 0x1d516, 0x1d51c,
+ 0x1d51e, 0x1d539,
+ 0x1d53b, 0x1d53e,
+ 0x1d540, 0x1d544,
+ 0x1d546, 0x1d546,
+ 0x1d54a, 0x1d550,
+ 0x1d552, 0x1d6a5,
+ 0x1d6a8, 0x1d7cb,
+ 0x1d7ce, 0x1d7ff,
+ 0x1f000, 0x1f02b,
+ 0x1f030, 0x1f093,
+ 0x1f0a0, 0x1f0ae,
+ 0x1f0b1, 0x1f0be,
+ 0x1f0c1, 0x1f0cf,
+ 0x1f0d1, 0x1f0df,
+ 0x1f100, 0x1f10a,
+ 0x1f110, 0x1f12e,
+ 0x1f130, 0x1f169,
+ 0x1f170, 0x1f19a,
+ 0x1f1e6, 0x1f202,
+ 0x1f210, 0x1f23a,
+ 0x1f240, 0x1f248,
+ 0x1f250, 0x1f251,
+ 0x1f300, 0x1f320,
+ 0x1f330, 0x1f335,
+ 0x1f337, 0x1f37c,
+ 0x1f380, 0x1f393,
+ 0x1f3a0, 0x1f3c4,
+ 0x1f3c6, 0x1f3ca,
+ 0x1f3e0, 0x1f3f0,
+ 0x1f400, 0x1f43e,
+ 0x1f440, 0x1f440,
+ 0x1f442, 0x1f4f7,
+ 0x1f4f9, 0x1f4fc,
+ 0x1f500, 0x1f53d,
+ 0x1f550, 0x1f567,
+ 0x1f5fb, 0x1f5ff,
+ 0x1f601, 0x1f610,
+ 0x1f612, 0x1f614,
+ 0x1f616, 0x1f616,
+ 0x1f618, 0x1f618,
+ 0x1f61a, 0x1f61a,
+ 0x1f61c, 0x1f61e,
+ 0x1f620, 0x1f625,
+ 0x1f628, 0x1f62b,
+ 0x1f62d, 0x1f62d,
+ 0x1f630, 0x1f633,
+ 0x1f635, 0x1f640,
+ 0x1f645, 0x1f64f,
+ 0x1f680, 0x1f6c5,
+ 0x1f700, 0x1f773,
+ 0x20000, 0x2a6d6,
+ 0x2a700, 0x2b734,
+ 0x2b740, 0x2b81d,
+ 0x2f800, 0x2fa1d,
+ 0xe0001, 0xe0001,
+ 0xe0020, 0xe007f,
+ 0xe0100, 0xe01ef,
+ 0xf0000, 0xffffd,
+ 0x100000, 0x10fffd,
+}; /* CR_Graph */
+
+/* 'Lower': [[:Lower:]] */
+#define CR_Lower CR_Lowercase
+
+/* 'Print': [[:Print:]] */
+static const OnigCodePoint CR_Print[] = {
+ 503,
+ 0x0020, 0x007e,
+ 0x00a0, 0x0377,
+ 0x037a, 0x037e,
+ 0x0384, 0x038a,
+ 0x038c, 0x038c,
+ 0x038e, 0x03a1,
+ 0x03a3, 0x0527,
+ 0x0531, 0x0556,
+ 0x0559, 0x055f,
+ 0x0561, 0x0587,
+ 0x0589, 0x058a,
+ 0x0591, 0x05c7,
+ 0x05d0, 0x05ea,
+ 0x05f0, 0x05f4,
+ 0x0600, 0x0603,
+ 0x0606, 0x061b,
+ 0x061e, 0x070d,
+ 0x070f, 0x074a,
+ 0x074d, 0x07b1,
+ 0x07c0, 0x07fa,
+ 0x0800, 0x082d,
+ 0x0830, 0x083e,
+ 0x0840, 0x085b,
+ 0x085e, 0x085e,
+ 0x0900, 0x0977,
+ 0x0979, 0x097f,
+ 0x0981, 0x0983,
+ 0x0985, 0x098c,
+ 0x098f, 0x0990,
+ 0x0993, 0x09a8,
+ 0x09aa, 0x09b0,
+ 0x09b2, 0x09b2,
+ 0x09b6, 0x09b9,
+ 0x09bc, 0x09c4,
+ 0x09c7, 0x09c8,
+ 0x09cb, 0x09ce,
+ 0x09d7, 0x09d7,
+ 0x09dc, 0x09dd,
+ 0x09df, 0x09e3,
+ 0x09e6, 0x09fb,
+ 0x0a01, 0x0a03,
+ 0x0a05, 0x0a0a,
+ 0x0a0f, 0x0a10,
+ 0x0a13, 0x0a28,
+ 0x0a2a, 0x0a30,
+ 0x0a32, 0x0a33,
+ 0x0a35, 0x0a36,
+ 0x0a38, 0x0a39,
+ 0x0a3c, 0x0a3c,
+ 0x0a3e, 0x0a42,
+ 0x0a47, 0x0a48,
+ 0x0a4b, 0x0a4d,
+ 0x0a51, 0x0a51,
+ 0x0a59, 0x0a5c,
+ 0x0a5e, 0x0a5e,
+ 0x0a66, 0x0a75,
+ 0x0a81, 0x0a83,
+ 0x0a85, 0x0a8d,
+ 0x0a8f, 0x0a91,
+ 0x0a93, 0x0aa8,
+ 0x0aaa, 0x0ab0,
+ 0x0ab2, 0x0ab3,
+ 0x0ab5, 0x0ab9,
+ 0x0abc, 0x0ac5,
+ 0x0ac7, 0x0ac9,
+ 0x0acb, 0x0acd,
+ 0x0ad0, 0x0ad0,
+ 0x0ae0, 0x0ae3,
+ 0x0ae6, 0x0aef,
+ 0x0af1, 0x0af1,
+ 0x0b01, 0x0b03,
+ 0x0b05, 0x0b0c,
+ 0x0b0f, 0x0b10,
+ 0x0b13, 0x0b28,
+ 0x0b2a, 0x0b30,
+ 0x0b32, 0x0b33,
+ 0x0b35, 0x0b39,
+ 0x0b3c, 0x0b44,
+ 0x0b47, 0x0b48,
+ 0x0b4b, 0x0b4d,
+ 0x0b56, 0x0b57,
+ 0x0b5c, 0x0b5d,
+ 0x0b5f, 0x0b63,
+ 0x0b66, 0x0b77,
+ 0x0b82, 0x0b83,
+ 0x0b85, 0x0b8a,
+ 0x0b8e, 0x0b90,
+ 0x0b92, 0x0b95,
+ 0x0b99, 0x0b9a,
+ 0x0b9c, 0x0b9c,
+ 0x0b9e, 0x0b9f,
+ 0x0ba3, 0x0ba4,
+ 0x0ba8, 0x0baa,
+ 0x0bae, 0x0bb9,
+ 0x0bbe, 0x0bc2,
+ 0x0bc6, 0x0bc8,
+ 0x0bca, 0x0bcd,
+ 0x0bd0, 0x0bd0,
+ 0x0bd7, 0x0bd7,
+ 0x0be6, 0x0bfa,
+ 0x0c01, 0x0c03,
+ 0x0c05, 0x0c0c,
+ 0x0c0e, 0x0c10,
+ 0x0c12, 0x0c28,
+ 0x0c2a, 0x0c33,
+ 0x0c35, 0x0c39,
+ 0x0c3d, 0x0c44,
+ 0x0c46, 0x0c48,
+ 0x0c4a, 0x0c4d,
+ 0x0c55, 0x0c56,
+ 0x0c58, 0x0c59,
+ 0x0c60, 0x0c63,
+ 0x0c66, 0x0c6f,
+ 0x0c78, 0x0c7f,
+ 0x0c82, 0x0c83,
+ 0x0c85, 0x0c8c,
+ 0x0c8e, 0x0c90,
+ 0x0c92, 0x0ca8,
+ 0x0caa, 0x0cb3,
+ 0x0cb5, 0x0cb9,
+ 0x0cbc, 0x0cc4,
+ 0x0cc6, 0x0cc8,
+ 0x0cca, 0x0ccd,
+ 0x0cd5, 0x0cd6,
+ 0x0cde, 0x0cde,
+ 0x0ce0, 0x0ce3,
+ 0x0ce6, 0x0cef,
+ 0x0cf1, 0x0cf2,
+ 0x0d02, 0x0d03,
+ 0x0d05, 0x0d0c,
+ 0x0d0e, 0x0d10,
+ 0x0d12, 0x0d3a,
+ 0x0d3d, 0x0d44,
+ 0x0d46, 0x0d48,
+ 0x0d4a, 0x0d4e,
+ 0x0d57, 0x0d57,
+ 0x0d60, 0x0d63,
+ 0x0d66, 0x0d75,
+ 0x0d79, 0x0d7f,
+ 0x0d82, 0x0d83,
+ 0x0d85, 0x0d96,
+ 0x0d9a, 0x0db1,
+ 0x0db3, 0x0dbb,
+ 0x0dbd, 0x0dbd,
+ 0x0dc0, 0x0dc6,
+ 0x0dca, 0x0dca,
+ 0x0dcf, 0x0dd4,
+ 0x0dd6, 0x0dd6,
+ 0x0dd8, 0x0ddf,
+ 0x0df2, 0x0df4,
+ 0x0e01, 0x0e3a,
+ 0x0e3f, 0x0e5b,
+ 0x0e81, 0x0e82,
+ 0x0e84, 0x0e84,
+ 0x0e87, 0x0e88,
+ 0x0e8a, 0x0e8a,
+ 0x0e8d, 0x0e8d,
+ 0x0e94, 0x0e97,
+ 0x0e99, 0x0e9f,
+ 0x0ea1, 0x0ea3,
+ 0x0ea5, 0x0ea5,
+ 0x0ea7, 0x0ea7,
+ 0x0eaa, 0x0eab,
+ 0x0ead, 0x0eb9,
+ 0x0ebb, 0x0ebd,
+ 0x0ec0, 0x0ec4,
+ 0x0ec6, 0x0ec6,
+ 0x0ec8, 0x0ecd,
+ 0x0ed0, 0x0ed9,
+ 0x0edc, 0x0edd,
+ 0x0f00, 0x0f47,
+ 0x0f49, 0x0f6c,
+ 0x0f71, 0x0f97,
+ 0x0f99, 0x0fbc,
+ 0x0fbe, 0x0fcc,
+ 0x0fce, 0x0fda,
+ 0x1000, 0x10c5,
+ 0x10d0, 0x10fc,
+ 0x1100, 0x1248,
+ 0x124a, 0x124d,
+ 0x1250, 0x1256,
+ 0x1258, 0x1258,
+ 0x125a, 0x125d,
+ 0x1260, 0x1288,
+ 0x128a, 0x128d,
+ 0x1290, 0x12b0,
+ 0x12b2, 0x12b5,
+ 0x12b8, 0x12be,
+ 0x12c0, 0x12c0,
+ 0x12c2, 0x12c5,
+ 0x12c8, 0x12d6,
+ 0x12d8, 0x1310,
+ 0x1312, 0x1315,
+ 0x1318, 0x135a,
+ 0x135d, 0x137c,
+ 0x1380, 0x1399,
+ 0x13a0, 0x13f4,
+ 0x1400, 0x169c,
+ 0x16a0, 0x16f0,
+ 0x1700, 0x170c,
+ 0x170e, 0x1714,
+ 0x1720, 0x1736,
+ 0x1740, 0x1753,
+ 0x1760, 0x176c,
+ 0x176e, 0x1770,
+ 0x1772, 0x1773,
+ 0x1780, 0x17dd,
+ 0x17e0, 0x17e9,
+ 0x17f0, 0x17f9,
+ 0x1800, 0x180e,
+ 0x1810, 0x1819,
+ 0x1820, 0x1877,
+ 0x1880, 0x18aa,
+ 0x18b0, 0x18f5,
+ 0x1900, 0x191c,
+ 0x1920, 0x192b,
+ 0x1930, 0x193b,
+ 0x1940, 0x1940,
+ 0x1944, 0x196d,
+ 0x1970, 0x1974,
+ 0x1980, 0x19ab,
+ 0x19b0, 0x19c9,
+ 0x19d0, 0x19da,
+ 0x19de, 0x1a1b,
+ 0x1a1e, 0x1a5e,
+ 0x1a60, 0x1a7c,
+ 0x1a7f, 0x1a89,
+ 0x1a90, 0x1a99,
+ 0x1aa0, 0x1aad,
+ 0x1b00, 0x1b4b,
+ 0x1b50, 0x1b7c,
+ 0x1b80, 0x1baa,
+ 0x1bae, 0x1bb9,
+ 0x1bc0, 0x1bf3,
+ 0x1bfc, 0x1c37,
+ 0x1c3b, 0x1c49,
+ 0x1c4d, 0x1c7f,
+ 0x1cd0, 0x1cf2,
+ 0x1d00, 0x1de6,
+ 0x1dfc, 0x1f15,
+ 0x1f18, 0x1f1d,
+ 0x1f20, 0x1f45,
+ 0x1f48, 0x1f4d,
+ 0x1f50, 0x1f57,
+ 0x1f59, 0x1f59,
+ 0x1f5b, 0x1f5b,
+ 0x1f5d, 0x1f5d,
+ 0x1f5f, 0x1f7d,
+ 0x1f80, 0x1fb4,
+ 0x1fb6, 0x1fc4,
+ 0x1fc6, 0x1fd3,
+ 0x1fd6, 0x1fdb,
+ 0x1fdd, 0x1fef,
+ 0x1ff2, 0x1ff4,
+ 0x1ff6, 0x1ffe,
+ 0x2000, 0x2027,
+ 0x202a, 0x2064,
+ 0x206a, 0x2071,
+ 0x2074, 0x208e,
+ 0x2090, 0x209c,
+ 0x20a0, 0x20b9,
+ 0x20d0, 0x20f0,
+ 0x2100, 0x2189,
+ 0x2190, 0x23f3,
+ 0x2400, 0x2426,
+ 0x2440, 0x244a,
+ 0x2460, 0x26ff,
+ 0x2701, 0x27ca,
+ 0x27cc, 0x27cc,
+ 0x27ce, 0x2b4c,
+ 0x2b50, 0x2b59,
+ 0x2c00, 0x2c2e,
+ 0x2c30, 0x2c5e,
+ 0x2c60, 0x2cf1,
+ 0x2cf9, 0x2d25,
+ 0x2d30, 0x2d65,
+ 0x2d6f, 0x2d70,
+ 0x2d7f, 0x2d96,
+ 0x2da0, 0x2da6,
+ 0x2da8, 0x2dae,
+ 0x2db0, 0x2db6,
+ 0x2db8, 0x2dbe,
+ 0x2dc0, 0x2dc6,
+ 0x2dc8, 0x2dce,
+ 0x2dd0, 0x2dd6,
+ 0x2dd8, 0x2dde,
+ 0x2de0, 0x2e31,
+ 0x2e80, 0x2e99,
+ 0x2e9b, 0x2ef3,
+ 0x2f00, 0x2fd5,
+ 0x2ff0, 0x2ffb,
+ 0x3000, 0x303f,
+ 0x3041, 0x3096,
+ 0x3099, 0x30ff,
+ 0x3105, 0x312d,
+ 0x3131, 0x318e,
+ 0x3190, 0x31ba,
+ 0x31c0, 0x31e3,
+ 0x31f0, 0x321e,
+ 0x3220, 0x32fe,
+ 0x3300, 0x4db5,
+ 0x4dc0, 0x9fcb,
+ 0xa000, 0xa48c,
+ 0xa490, 0xa4c6,
+ 0xa4d0, 0xa62b,
+ 0xa640, 0xa673,
+ 0xa67c, 0xa697,
+ 0xa6a0, 0xa6f7,
+ 0xa700, 0xa78e,
+ 0xa790, 0xa791,
+ 0xa7a0, 0xa7a9,
+ 0xa7fa, 0xa82b,
+ 0xa830, 0xa839,
+ 0xa840, 0xa877,
+ 0xa880, 0xa8c4,
+ 0xa8ce, 0xa8d9,
+ 0xa8e0, 0xa8fb,
+ 0xa900, 0xa953,
+ 0xa95f, 0xa97c,
+ 0xa980, 0xa9cd,
+ 0xa9cf, 0xa9d9,
+ 0xa9de, 0xa9df,
+ 0xaa00, 0xaa36,
+ 0xaa40, 0xaa4d,
+ 0xaa50, 0xaa59,
+ 0xaa5c, 0xaa7b,
+ 0xaa80, 0xaac2,
+ 0xaadb, 0xaadf,
+ 0xab01, 0xab06,
+ 0xab09, 0xab0e,
+ 0xab11, 0xab16,
+ 0xab20, 0xab26,
+ 0xab28, 0xab2e,
+ 0xabc0, 0xabed,
+ 0xabf0, 0xabf9,
+ 0xac00, 0xd7a3,
+ 0xd7b0, 0xd7c6,
+ 0xd7cb, 0xd7fb,
+ 0xe000, 0xfa2d,
+ 0xfa30, 0xfa6d,
+ 0xfa70, 0xfad9,
+ 0xfb00, 0xfb06,
+ 0xfb13, 0xfb17,
+ 0xfb1d, 0xfb36,
+ 0xfb38, 0xfb3c,
+ 0xfb3e, 0xfb3e,
+ 0xfb40, 0xfb41,
+ 0xfb43, 0xfb44,
+ 0xfb46, 0xfbc1,
+ 0xfbd3, 0xfd3f,
+ 0xfd50, 0xfd8f,
+ 0xfd92, 0xfdc7,
+ 0xfdf0, 0xfdfd,
+ 0xfe00, 0xfe19,
+ 0xfe20, 0xfe26,
+ 0xfe30, 0xfe52,
+ 0xfe54, 0xfe66,
+ 0xfe68, 0xfe6b,
+ 0xfe70, 0xfe74,
+ 0xfe76, 0xfefc,
+ 0xfeff, 0xfeff,
+ 0xff01, 0xffbe,
+ 0xffc2, 0xffc7,
+ 0xffca, 0xffcf,
+ 0xffd2, 0xffd7,
+ 0xffda, 0xffdc,
+ 0xffe0, 0xffe6,
+ 0xffe8, 0xffee,
+ 0xfff9, 0xfffd,
+ 0x10000, 0x1000b,
+ 0x1000d, 0x10026,
+ 0x10028, 0x1003a,
+ 0x1003c, 0x1003d,
+ 0x1003f, 0x1004d,
+ 0x10050, 0x1005d,
+ 0x10080, 0x100fa,
+ 0x10100, 0x10102,
+ 0x10107, 0x10133,
+ 0x10137, 0x1018a,
+ 0x10190, 0x1019b,
+ 0x101d0, 0x101fd,
+ 0x10280, 0x1029c,
+ 0x102a0, 0x102d0,
+ 0x10300, 0x1031e,
+ 0x10320, 0x10323,
+ 0x10330, 0x1034a,
+ 0x10380, 0x1039d,
+ 0x1039f, 0x103c3,
+ 0x103c8, 0x103d5,
+ 0x10400, 0x1049d,
+ 0x104a0, 0x104a9,
+ 0x10800, 0x10805,
+ 0x10808, 0x10808,
+ 0x1080a, 0x10835,
+ 0x10837, 0x10838,
+ 0x1083c, 0x1083c,
+ 0x1083f, 0x10855,
+ 0x10857, 0x1085f,
+ 0x10900, 0x1091b,
+ 0x1091f, 0x10939,
+ 0x1093f, 0x1093f,
+ 0x10a00, 0x10a03,
+ 0x10a05, 0x10a06,
+ 0x10a0c, 0x10a13,
+ 0x10a15, 0x10a17,
+ 0x10a19, 0x10a33,
+ 0x10a38, 0x10a3a,
+ 0x10a3f, 0x10a47,
+ 0x10a50, 0x10a58,
+ 0x10a60, 0x10a7f,
+ 0x10b00, 0x10b35,
+ 0x10b39, 0x10b55,
+ 0x10b58, 0x10b72,
+ 0x10b78, 0x10b7f,
+ 0x10c00, 0x10c48,
+ 0x10e60, 0x10e7e,
+ 0x11000, 0x1104d,
+ 0x11052, 0x1106f,
+ 0x11080, 0x110c1,
+ 0x12000, 0x1236e,
+ 0x12400, 0x12462,
+ 0x12470, 0x12473,
+ 0x13000, 0x1342e,
+ 0x16800, 0x16a38,
+ 0x1b000, 0x1b001,
+ 0x1d000, 0x1d0f5,
+ 0x1d100, 0x1d126,
+ 0x1d129, 0x1d1dd,
+ 0x1d200, 0x1d245,
+ 0x1d300, 0x1d356,
+ 0x1d360, 0x1d371,
+ 0x1d400, 0x1d454,
+ 0x1d456, 0x1d49c,
+ 0x1d49e, 0x1d49f,
+ 0x1d4a2, 0x1d4a2,
+ 0x1d4a5, 0x1d4a6,
+ 0x1d4a9, 0x1d4ac,
+ 0x1d4ae, 0x1d4b9,
+ 0x1d4bb, 0x1d4bb,
+ 0x1d4bd, 0x1d4c3,
+ 0x1d4c5, 0x1d505,
+ 0x1d507, 0x1d50a,
+ 0x1d50d, 0x1d514,
+ 0x1d516, 0x1d51c,
+ 0x1d51e, 0x1d539,
+ 0x1d53b, 0x1d53e,
+ 0x1d540, 0x1d544,
+ 0x1d546, 0x1d546,
+ 0x1d54a, 0x1d550,
+ 0x1d552, 0x1d6a5,
+ 0x1d6a8, 0x1d7cb,
+ 0x1d7ce, 0x1d7ff,
+ 0x1f000, 0x1f02b,
+ 0x1f030, 0x1f093,
+ 0x1f0a0, 0x1f0ae,
+ 0x1f0b1, 0x1f0be,
+ 0x1f0c1, 0x1f0cf,
+ 0x1f0d1, 0x1f0df,
+ 0x1f100, 0x1f10a,
+ 0x1f110, 0x1f12e,
+ 0x1f130, 0x1f169,
+ 0x1f170, 0x1f19a,
+ 0x1f1e6, 0x1f202,
+ 0x1f210, 0x1f23a,
+ 0x1f240, 0x1f248,
+ 0x1f250, 0x1f251,
+ 0x1f300, 0x1f320,
+ 0x1f330, 0x1f335,
+ 0x1f337, 0x1f37c,
+ 0x1f380, 0x1f393,
+ 0x1f3a0, 0x1f3c4,
+ 0x1f3c6, 0x1f3ca,
+ 0x1f3e0, 0x1f3f0,
+ 0x1f400, 0x1f43e,
+ 0x1f440, 0x1f440,
+ 0x1f442, 0x1f4f7,
+ 0x1f4f9, 0x1f4fc,
+ 0x1f500, 0x1f53d,
+ 0x1f550, 0x1f567,
+ 0x1f5fb, 0x1f5ff,
+ 0x1f601, 0x1f610,
+ 0x1f612, 0x1f614,
+ 0x1f616, 0x1f616,
+ 0x1f618, 0x1f618,
+ 0x1f61a, 0x1f61a,
+ 0x1f61c, 0x1f61e,
+ 0x1f620, 0x1f625,
+ 0x1f628, 0x1f62b,
+ 0x1f62d, 0x1f62d,
+ 0x1f630, 0x1f633,
+ 0x1f635, 0x1f640,
+ 0x1f645, 0x1f64f,
+ 0x1f680, 0x1f6c5,
+ 0x1f700, 0x1f773,
+ 0x20000, 0x2a6d6,
+ 0x2a700, 0x2b734,
+ 0x2b740, 0x2b81d,
+ 0x2f800, 0x2fa1d,
+ 0xe0001, 0xe0001,
+ 0xe0020, 0xe007f,
+ 0xe0100, 0xe01ef,
+ 0xf0000, 0xffffd,
+ 0x100000, 0x10fffd,
+}; /* CR_Print */
+
+/* 'Punct': [[:Punct:]] */
+#define CR_Punct CR_P
+
+/* 'Space': [[:Space:]] */
+#define CR_Space CR_White_Space
+
+/* 'Upper': [[:Upper:]] */
+#define CR_Upper CR_Uppercase
+
+/* 'XDigit': [[:XDigit:]] */
+#define CR_XDigit CR_ASCII_Hex_Digit
+
+/* 'Word': [[:Word:]] */
+static const OnigCodePoint CR_Word[] = {
+ 514,
+ 0x0030, 0x0039,
+ 0x0041, 0x005a,
+ 0x005f, 0x005f,
+ 0x0061, 0x007a,
+ 0x00aa, 0x00aa,
+ 0x00b5, 0x00b5,
+ 0x00ba, 0x00ba,
+ 0x00c0, 0x00d6,
+ 0x00d8, 0x00f6,
+ 0x00f8, 0x02c1,
+ 0x02c6, 0x02d1,
+ 0x02e0, 0x02e4,
+ 0x02ec, 0x02ec,
+ 0x02ee, 0x02ee,
+ 0x0300, 0x0374,
+ 0x0376, 0x0377,
+ 0x037a, 0x037d,
+ 0x0386, 0x0386,
+ 0x0388, 0x038a,
+ 0x038c, 0x038c,
+ 0x038e, 0x03a1,
+ 0x03a3, 0x03f5,
+ 0x03f7, 0x0481,
+ 0x0483, 0x0527,
+ 0x0531, 0x0556,
+ 0x0559, 0x0559,
+ 0x0561, 0x0587,
+ 0x0591, 0x05bd,
+ 0x05bf, 0x05bf,
+ 0x05c1, 0x05c2,
+ 0x05c4, 0x05c5,
+ 0x05c7, 0x05c7,
+ 0x05d0, 0x05ea,
+ 0x05f0, 0x05f2,
+ 0x0610, 0x061a,
+ 0x0620, 0x0669,
+ 0x066e, 0x06d3,
+ 0x06d5, 0x06dc,
+ 0x06df, 0x06e8,
+ 0x06ea, 0x06fc,
+ 0x06ff, 0x06ff,
+ 0x0710, 0x074a,
+ 0x074d, 0x07b1,
+ 0x07c0, 0x07f5,
+ 0x07fa, 0x07fa,
+ 0x0800, 0x082d,
+ 0x0840, 0x085b,
+ 0x0900, 0x0963,
+ 0x0966, 0x096f,
+ 0x0971, 0x0977,
+ 0x0979, 0x097f,
+ 0x0981, 0x0983,
+ 0x0985, 0x098c,
+ 0x098f, 0x0990,
+ 0x0993, 0x09a8,
+ 0x09aa, 0x09b0,
+ 0x09b2, 0x09b2,
+ 0x09b6, 0x09b9,
+ 0x09bc, 0x09c4,
+ 0x09c7, 0x09c8,
+ 0x09cb, 0x09ce,
+ 0x09d7, 0x09d7,
+ 0x09dc, 0x09dd,
+ 0x09df, 0x09e3,
+ 0x09e6, 0x09f1,
+ 0x0a01, 0x0a03,
+ 0x0a05, 0x0a0a,
+ 0x0a0f, 0x0a10,
+ 0x0a13, 0x0a28,
+ 0x0a2a, 0x0a30,
+ 0x0a32, 0x0a33,
+ 0x0a35, 0x0a36,
+ 0x0a38, 0x0a39,
+ 0x0a3c, 0x0a3c,
+ 0x0a3e, 0x0a42,
+ 0x0a47, 0x0a48,
+ 0x0a4b, 0x0a4d,
+ 0x0a51, 0x0a51,
+ 0x0a59, 0x0a5c,
+ 0x0a5e, 0x0a5e,
+ 0x0a66, 0x0a75,
+ 0x0a81, 0x0a83,
+ 0x0a85, 0x0a8d,
+ 0x0a8f, 0x0a91,
+ 0x0a93, 0x0aa8,
+ 0x0aaa, 0x0ab0,
+ 0x0ab2, 0x0ab3,
+ 0x0ab5, 0x0ab9,
+ 0x0abc, 0x0ac5,
+ 0x0ac7, 0x0ac9,
+ 0x0acb, 0x0acd,
+ 0x0ad0, 0x0ad0,
+ 0x0ae0, 0x0ae3,
+ 0x0ae6, 0x0aef,
+ 0x0b01, 0x0b03,
+ 0x0b05, 0x0b0c,
+ 0x0b0f, 0x0b10,
+ 0x0b13, 0x0b28,
+ 0x0b2a, 0x0b30,
+ 0x0b32, 0x0b33,
+ 0x0b35, 0x0b39,
+ 0x0b3c, 0x0b44,
+ 0x0b47, 0x0b48,
+ 0x0b4b, 0x0b4d,
+ 0x0b56, 0x0b57,
+ 0x0b5c, 0x0b5d,
+ 0x0b5f, 0x0b63,
+ 0x0b66, 0x0b6f,
+ 0x0b71, 0x0b71,
+ 0x0b82, 0x0b83,
+ 0x0b85, 0x0b8a,
+ 0x0b8e, 0x0b90,
+ 0x0b92, 0x0b95,
+ 0x0b99, 0x0b9a,
+ 0x0b9c, 0x0b9c,
+ 0x0b9e, 0x0b9f,
+ 0x0ba3, 0x0ba4,
+ 0x0ba8, 0x0baa,
+ 0x0bae, 0x0bb9,
+ 0x0bbe, 0x0bc2,
+ 0x0bc6, 0x0bc8,
+ 0x0bca, 0x0bcd,
+ 0x0bd0, 0x0bd0,
+ 0x0bd7, 0x0bd7,
+ 0x0be6, 0x0bef,
+ 0x0c01, 0x0c03,
+ 0x0c05, 0x0c0c,
+ 0x0c0e, 0x0c10,
+ 0x0c12, 0x0c28,
+ 0x0c2a, 0x0c33,
+ 0x0c35, 0x0c39,
+ 0x0c3d, 0x0c44,
+ 0x0c46, 0x0c48,
+ 0x0c4a, 0x0c4d,
+ 0x0c55, 0x0c56,
+ 0x0c58, 0x0c59,
+ 0x0c60, 0x0c63,
+ 0x0c66, 0x0c6f,
+ 0x0c82, 0x0c83,
+ 0x0c85, 0x0c8c,
+ 0x0c8e, 0x0c90,
+ 0x0c92, 0x0ca8,
+ 0x0caa, 0x0cb3,
+ 0x0cb5, 0x0cb9,
+ 0x0cbc, 0x0cc4,
+ 0x0cc6, 0x0cc8,
+ 0x0cca, 0x0ccd,
+ 0x0cd5, 0x0cd6,
+ 0x0cde, 0x0cde,
+ 0x0ce0, 0x0ce3,
+ 0x0ce6, 0x0cef,
+ 0x0cf1, 0x0cf2,
+ 0x0d02, 0x0d03,
+ 0x0d05, 0x0d0c,
+ 0x0d0e, 0x0d10,
+ 0x0d12, 0x0d3a,
+ 0x0d3d, 0x0d44,
+ 0x0d46, 0x0d48,
+ 0x0d4a, 0x0d4e,
+ 0x0d57, 0x0d57,
+ 0x0d60, 0x0d63,
+ 0x0d66, 0x0d6f,
+ 0x0d7a, 0x0d7f,
+ 0x0d82, 0x0d83,
+ 0x0d85, 0x0d96,
+ 0x0d9a, 0x0db1,
+ 0x0db3, 0x0dbb,
+ 0x0dbd, 0x0dbd,
+ 0x0dc0, 0x0dc6,
+ 0x0dca, 0x0dca,
+ 0x0dcf, 0x0dd4,
+ 0x0dd6, 0x0dd6,
+ 0x0dd8, 0x0ddf,
+ 0x0df2, 0x0df3,
+ 0x0e01, 0x0e3a,
+ 0x0e40, 0x0e4e,
+ 0x0e50, 0x0e59,
+ 0x0e81, 0x0e82,
+ 0x0e84, 0x0e84,
+ 0x0e87, 0x0e88,
+ 0x0e8a, 0x0e8a,
+ 0x0e8d, 0x0e8d,
+ 0x0e94, 0x0e97,
+ 0x0e99, 0x0e9f,
+ 0x0ea1, 0x0ea3,
+ 0x0ea5, 0x0ea5,
+ 0x0ea7, 0x0ea7,
+ 0x0eaa, 0x0eab,
+ 0x0ead, 0x0eb9,
+ 0x0ebb, 0x0ebd,
+ 0x0ec0, 0x0ec4,
+ 0x0ec6, 0x0ec6,
+ 0x0ec8, 0x0ecd,
+ 0x0ed0, 0x0ed9,
+ 0x0edc, 0x0edd,
+ 0x0f00, 0x0f00,
+ 0x0f18, 0x0f19,
+ 0x0f20, 0x0f29,
+ 0x0f35, 0x0f35,
+ 0x0f37, 0x0f37,
+ 0x0f39, 0x0f39,
+ 0x0f3e, 0x0f47,
+ 0x0f49, 0x0f6c,
+ 0x0f71, 0x0f84,
+ 0x0f86, 0x0f97,
+ 0x0f99, 0x0fbc,
+ 0x0fc6, 0x0fc6,
+ 0x1000, 0x1049,
+ 0x1050, 0x109d,
+ 0x10a0, 0x10c5,
+ 0x10d0, 0x10fa,
+ 0x10fc, 0x10fc,
+ 0x1100, 0x1248,
+ 0x124a, 0x124d,
+ 0x1250, 0x1256,
+ 0x1258, 0x1258,
+ 0x125a, 0x125d,
+ 0x1260, 0x1288,
+ 0x128a, 0x128d,
+ 0x1290, 0x12b0,
+ 0x12b2, 0x12b5,
+ 0x12b8, 0x12be,
+ 0x12c0, 0x12c0,
+ 0x12c2, 0x12c5,
+ 0x12c8, 0x12d6,
+ 0x12d8, 0x1310,
+ 0x1312, 0x1315,
+ 0x1318, 0x135a,
+ 0x135d, 0x135f,
+ 0x1380, 0x138f,
+ 0x13a0, 0x13f4,
+ 0x1401, 0x166c,
+ 0x166f, 0x167f,
+ 0x1681, 0x169a,
+ 0x16a0, 0x16ea,
+ 0x16ee, 0x16f0,
+ 0x1700, 0x170c,
+ 0x170e, 0x1714,
+ 0x1720, 0x1734,
+ 0x1740, 0x1753,
+ 0x1760, 0x176c,
+ 0x176e, 0x1770,
+ 0x1772, 0x1773,
+ 0x1780, 0x17b3,
+ 0x17b6, 0x17d3,
+ 0x17d7, 0x17d7,
+ 0x17dc, 0x17dd,
+ 0x17e0, 0x17e9,
+ 0x180b, 0x180d,
+ 0x1810, 0x1819,
+ 0x1820, 0x1877,
+ 0x1880, 0x18aa,
+ 0x18b0, 0x18f5,
+ 0x1900, 0x191c,
+ 0x1920, 0x192b,
+ 0x1930, 0x193b,
+ 0x1946, 0x196d,
+ 0x1970, 0x1974,
+ 0x1980, 0x19ab,
+ 0x19b0, 0x19c9,
+ 0x19d0, 0x19d9,
+ 0x1a00, 0x1a1b,
+ 0x1a20, 0x1a5e,
+ 0x1a60, 0x1a7c,
+ 0x1a7f, 0x1a89,
+ 0x1a90, 0x1a99,
+ 0x1aa7, 0x1aa7,
+ 0x1b00, 0x1b4b,
+ 0x1b50, 0x1b59,
+ 0x1b6b, 0x1b73,
+ 0x1b80, 0x1baa,
+ 0x1bae, 0x1bb9,
+ 0x1bc0, 0x1bf3,
+ 0x1c00, 0x1c37,
+ 0x1c40, 0x1c49,
+ 0x1c4d, 0x1c7d,
+ 0x1cd0, 0x1cd2,
+ 0x1cd4, 0x1cf2,
+ 0x1d00, 0x1de6,
+ 0x1dfc, 0x1f15,
+ 0x1f18, 0x1f1d,
+ 0x1f20, 0x1f45,
+ 0x1f48, 0x1f4d,
+ 0x1f50, 0x1f57,
+ 0x1f59, 0x1f59,
+ 0x1f5b, 0x1f5b,
+ 0x1f5d, 0x1f5d,
+ 0x1f5f, 0x1f7d,
+ 0x1f80, 0x1fb4,
+ 0x1fb6, 0x1fbc,
+ 0x1fbe, 0x1fbe,
+ 0x1fc2, 0x1fc4,
+ 0x1fc6, 0x1fcc,
+ 0x1fd0, 0x1fd3,
+ 0x1fd6, 0x1fdb,
+ 0x1fe0, 0x1fec,
+ 0x1ff2, 0x1ff4,
+ 0x1ff6, 0x1ffc,
+ 0x203f, 0x2040,
+ 0x2054, 0x2054,
+ 0x2071, 0x2071,
+ 0x207f, 0x207f,
+ 0x2090, 0x209c,
+ 0x20d0, 0x20f0,
+ 0x2102, 0x2102,
+ 0x2107, 0x2107,
+ 0x210a, 0x2113,
+ 0x2115, 0x2115,
+ 0x2119, 0x211d,
+ 0x2124, 0x2124,
+ 0x2126, 0x2126,
+ 0x2128, 0x2128,
+ 0x212a, 0x212d,
+ 0x212f, 0x2139,
+ 0x213c, 0x213f,
+ 0x2145, 0x2149,
+ 0x214e, 0x214e,
+ 0x2160, 0x2188,
+ 0x24b6, 0x24e9,
+ 0x2c00, 0x2c2e,
+ 0x2c30, 0x2c5e,
+ 0x2c60, 0x2ce4,
+ 0x2ceb, 0x2cf1,
+ 0x2d00, 0x2d25,
+ 0x2d30, 0x2d65,
+ 0x2d6f, 0x2d6f,
+ 0x2d7f, 0x2d96,
+ 0x2da0, 0x2da6,
+ 0x2da8, 0x2dae,
+ 0x2db0, 0x2db6,
+ 0x2db8, 0x2dbe,
+ 0x2dc0, 0x2dc6,
+ 0x2dc8, 0x2dce,
+ 0x2dd0, 0x2dd6,
+ 0x2dd8, 0x2dde,
+ 0x2de0, 0x2dff,
+ 0x2e2f, 0x2e2f,
+ 0x3005, 0x3007,
+ 0x3021, 0x302f,
+ 0x3031, 0x3035,
+ 0x3038, 0x303c,
+ 0x3041, 0x3096,
+ 0x3099, 0x309a,
+ 0x309d, 0x309f,
+ 0x30a1, 0x30fa,
+ 0x30fc, 0x30ff,
+ 0x3105, 0x312d,
+ 0x3131, 0x318e,
+ 0x31a0, 0x31ba,
+ 0x31f0, 0x31ff,
+ 0x3400, 0x4db5,
+ 0x4e00, 0x9fcb,
+ 0xa000, 0xa48c,
+ 0xa4d0, 0xa4fd,
+ 0xa500, 0xa60c,
+ 0xa610, 0xa62b,
+ 0xa640, 0xa672,
+ 0xa67c, 0xa67d,
+ 0xa67f, 0xa697,
+ 0xa6a0, 0xa6f1,
+ 0xa717, 0xa71f,
+ 0xa722, 0xa788,
+ 0xa78b, 0xa78e,
+ 0xa790, 0xa791,
+ 0xa7a0, 0xa7a9,
+ 0xa7fa, 0xa827,
+ 0xa840, 0xa873,
+ 0xa880, 0xa8c4,
+ 0xa8d0, 0xa8d9,
+ 0xa8e0, 0xa8f7,
+ 0xa8fb, 0xa8fb,
+ 0xa900, 0xa92d,
+ 0xa930, 0xa953,
+ 0xa960, 0xa97c,
+ 0xa980, 0xa9c0,
+ 0xa9cf, 0xa9d9,
+ 0xaa00, 0xaa36,
+ 0xaa40, 0xaa4d,
+ 0xaa50, 0xaa59,
+ 0xaa60, 0xaa76,
+ 0xaa7a, 0xaa7b,
+ 0xaa80, 0xaac2,
+ 0xaadb, 0xaadd,
+ 0xab01, 0xab06,
+ 0xab09, 0xab0e,
+ 0xab11, 0xab16,
+ 0xab20, 0xab26,
+ 0xab28, 0xab2e,
+ 0xabc0, 0xabea,
+ 0xabec, 0xabed,
+ 0xabf0, 0xabf9,
+ 0xac00, 0xd7a3,
+ 0xd7b0, 0xd7c6,
+ 0xd7cb, 0xd7fb,
+ 0xf900, 0xfa2d,
+ 0xfa30, 0xfa6d,
+ 0xfa70, 0xfad9,
+ 0xfb00, 0xfb06,
+ 0xfb13, 0xfb17,
+ 0xfb1d, 0xfb28,
+ 0xfb2a, 0xfb36,
+ 0xfb38, 0xfb3c,
+ 0xfb3e, 0xfb3e,
+ 0xfb40, 0xfb41,
+ 0xfb43, 0xfb44,
+ 0xfb46, 0xfbb1,
+ 0xfbd3, 0xfd3d,
+ 0xfd50, 0xfd8f,
+ 0xfd92, 0xfdc7,
+ 0xfdf0, 0xfdfb,
+ 0xfe00, 0xfe0f,
+ 0xfe20, 0xfe26,
+ 0xfe33, 0xfe34,
+ 0xfe4d, 0xfe4f,
+ 0xfe70, 0xfe74,
+ 0xfe76, 0xfefc,
+ 0xff10, 0xff19,
+ 0xff21, 0xff3a,
+ 0xff3f, 0xff3f,
+ 0xff41, 0xff5a,
+ 0xff66, 0xffbe,
+ 0xffc2, 0xffc7,
+ 0xffca, 0xffcf,
+ 0xffd2, 0xffd7,
+ 0xffda, 0xffdc,
+ 0x10000, 0x1000b,
+ 0x1000d, 0x10026,
+ 0x10028, 0x1003a,
+ 0x1003c, 0x1003d,
+ 0x1003f, 0x1004d,
+ 0x10050, 0x1005d,
+ 0x10080, 0x100fa,
+ 0x10140, 0x10174,
+ 0x101fd, 0x101fd,
+ 0x10280, 0x1029c,
+ 0x102a0, 0x102d0,
+ 0x10300, 0x1031e,
+ 0x10330, 0x1034a,
+ 0x10380, 0x1039d,
+ 0x103a0, 0x103c3,
+ 0x103c8, 0x103cf,
+ 0x103d1, 0x103d5,
+ 0x10400, 0x1049d,
+ 0x104a0, 0x104a9,
+ 0x10800, 0x10805,
+ 0x10808, 0x10808,
+ 0x1080a, 0x10835,
+ 0x10837, 0x10838,
+ 0x1083c, 0x1083c,
+ 0x1083f, 0x10855,
+ 0x10900, 0x10915,
+ 0x10920, 0x10939,
+ 0x10a00, 0x10a03,
+ 0x10a05, 0x10a06,
+ 0x10a0c, 0x10a13,
+ 0x10a15, 0x10a17,
+ 0x10a19, 0x10a33,
+ 0x10a38, 0x10a3a,
+ 0x10a3f, 0x10a3f,
+ 0x10a60, 0x10a7c,
+ 0x10b00, 0x10b35,
+ 0x10b40, 0x10b55,
+ 0x10b60, 0x10b72,
+ 0x10c00, 0x10c48,
+ 0x11000, 0x11046,
+ 0x11066, 0x1106f,
+ 0x11080, 0x110ba,
+ 0x12000, 0x1236e,
+ 0x12400, 0x12462,
+ 0x13000, 0x1342e,
+ 0x16800, 0x16a38,
+ 0x1b000, 0x1b001,
+ 0x1d165, 0x1d169,
+ 0x1d16d, 0x1d172,
+ 0x1d17b, 0x1d182,
+ 0x1d185, 0x1d18b,
+ 0x1d1aa, 0x1d1ad,
+ 0x1d242, 0x1d244,
+ 0x1d400, 0x1d454,
+ 0x1d456, 0x1d49c,
+ 0x1d49e, 0x1d49f,
+ 0x1d4a2, 0x1d4a2,
+ 0x1d4a5, 0x1d4a6,
+ 0x1d4a9, 0x1d4ac,
+ 0x1d4ae, 0x1d4b9,
+ 0x1d4bb, 0x1d4bb,
+ 0x1d4bd, 0x1d4c3,
+ 0x1d4c5, 0x1d505,
+ 0x1d507, 0x1d50a,
+ 0x1d50d, 0x1d514,
+ 0x1d516, 0x1d51c,
+ 0x1d51e, 0x1d539,
+ 0x1d53b, 0x1d53e,
+ 0x1d540, 0x1d544,
+ 0x1d546, 0x1d546,
+ 0x1d54a, 0x1d550,
+ 0x1d552, 0x1d6a5,
+ 0x1d6a8, 0x1d6c0,
+ 0x1d6c2, 0x1d6da,
+ 0x1d6dc, 0x1d6fa,
+ 0x1d6fc, 0x1d714,
+ 0x1d716, 0x1d734,
+ 0x1d736, 0x1d74e,
+ 0x1d750, 0x1d76e,
+ 0x1d770, 0x1d788,
+ 0x1d78a, 0x1d7a8,
+ 0x1d7aa, 0x1d7c2,
+ 0x1d7c4, 0x1d7cb,
+ 0x1d7ce, 0x1d7ff,
+ 0x20000, 0x2a6d6,
+ 0x2a700, 0x2b734,
+ 0x2b740, 0x2b81d,
+ 0x2f800, 0x2fa1d,
+ 0xe0100, 0xe01ef,
+}; /* CR_Word */
+
+/* 'Alnum': [[:Alnum:]] */
+static const OnigCodePoint CR_Alnum[] = {
+ 509,
+ 0x0030, 0x0039,
+ 0x0041, 0x005a,
+ 0x0061, 0x007a,
+ 0x00aa, 0x00aa,
+ 0x00b5, 0x00b5,
+ 0x00ba, 0x00ba,
+ 0x00c0, 0x00d6,
+ 0x00d8, 0x00f6,
+ 0x00f8, 0x02c1,
+ 0x02c6, 0x02d1,
+ 0x02e0, 0x02e4,
+ 0x02ec, 0x02ec,
+ 0x02ee, 0x02ee,
+ 0x0345, 0x0345,
+ 0x0370, 0x0374,
+ 0x0376, 0x0377,
+ 0x037a, 0x037d,
+ 0x0386, 0x0386,
+ 0x0388, 0x038a,
+ 0x038c, 0x038c,
+ 0x038e, 0x03a1,
+ 0x03a3, 0x03f5,
+ 0x03f7, 0x0481,
+ 0x048a, 0x0527,
+ 0x0531, 0x0556,
+ 0x0559, 0x0559,
+ 0x0561, 0x0587,
+ 0x05b0, 0x05bd,
+ 0x05bf, 0x05bf,
+ 0x05c1, 0x05c2,
+ 0x05c4, 0x05c5,
+ 0x05c7, 0x05c7,
+ 0x05d0, 0x05ea,
+ 0x05f0, 0x05f2,
+ 0x0610, 0x061a,
+ 0x0620, 0x0657,
+ 0x0659, 0x0669,
+ 0x066e, 0x06d3,
+ 0x06d5, 0x06dc,
+ 0x06e1, 0x06e8,
+ 0x06ed, 0x06fc,
+ 0x06ff, 0x06ff,
+ 0x0710, 0x073f,
+ 0x074d, 0x07b1,
+ 0x07c0, 0x07ea,
+ 0x07f4, 0x07f5,
+ 0x07fa, 0x07fa,
+ 0x0800, 0x0817,
+ 0x081a, 0x082c,
+ 0x0840, 0x0858,
+ 0x0900, 0x093b,
+ 0x093d, 0x094c,
+ 0x094e, 0x0950,
+ 0x0955, 0x0963,
+ 0x0966, 0x096f,
+ 0x0971, 0x0977,
+ 0x0979, 0x097f,
+ 0x0981, 0x0983,
+ 0x0985, 0x098c,
+ 0x098f, 0x0990,
+ 0x0993, 0x09a8,
+ 0x09aa, 0x09b0,
+ 0x09b2, 0x09b2,
+ 0x09b6, 0x09b9,
+ 0x09bd, 0x09c4,
+ 0x09c7, 0x09c8,
+ 0x09cb, 0x09cc,
+ 0x09ce, 0x09ce,
+ 0x09d7, 0x09d7,
+ 0x09dc, 0x09dd,
+ 0x09df, 0x09e3,
+ 0x09e6, 0x09f1,
+ 0x0a01, 0x0a03,
+ 0x0a05, 0x0a0a,
+ 0x0a0f, 0x0a10,
+ 0x0a13, 0x0a28,
+ 0x0a2a, 0x0a30,
+ 0x0a32, 0x0a33,
+ 0x0a35, 0x0a36,
+ 0x0a38, 0x0a39,
+ 0x0a3e, 0x0a42,
+ 0x0a47, 0x0a48,
+ 0x0a4b, 0x0a4c,
+ 0x0a51, 0x0a51,
+ 0x0a59, 0x0a5c,
+ 0x0a5e, 0x0a5e,
+ 0x0a66, 0x0a75,
+ 0x0a81, 0x0a83,
+ 0x0a85, 0x0a8d,
+ 0x0a8f, 0x0a91,
+ 0x0a93, 0x0aa8,
+ 0x0aaa, 0x0ab0,
+ 0x0ab2, 0x0ab3,
+ 0x0ab5, 0x0ab9,
+ 0x0abd, 0x0ac5,
+ 0x0ac7, 0x0ac9,
+ 0x0acb, 0x0acc,
+ 0x0ad0, 0x0ad0,
+ 0x0ae0, 0x0ae3,
+ 0x0ae6, 0x0aef,
+ 0x0b01, 0x0b03,
+ 0x0b05, 0x0b0c,
+ 0x0b0f, 0x0b10,
+ 0x0b13, 0x0b28,
+ 0x0b2a, 0x0b30,
+ 0x0b32, 0x0b33,
+ 0x0b35, 0x0b39,
+ 0x0b3d, 0x0b44,
+ 0x0b47, 0x0b48,
+ 0x0b4b, 0x0b4c,
+ 0x0b56, 0x0b57,
+ 0x0b5c, 0x0b5d,
+ 0x0b5f, 0x0b63,
+ 0x0b66, 0x0b6f,
+ 0x0b71, 0x0b71,
+ 0x0b82, 0x0b83,
+ 0x0b85, 0x0b8a,
+ 0x0b8e, 0x0b90,
+ 0x0b92, 0x0b95,
+ 0x0b99, 0x0b9a,
+ 0x0b9c, 0x0b9c,
+ 0x0b9e, 0x0b9f,
+ 0x0ba3, 0x0ba4,
+ 0x0ba8, 0x0baa,
+ 0x0bae, 0x0bb9,
+ 0x0bbe, 0x0bc2,
+ 0x0bc6, 0x0bc8,
+ 0x0bca, 0x0bcc,
+ 0x0bd0, 0x0bd0,
+ 0x0bd7, 0x0bd7,
+ 0x0be6, 0x0bef,
+ 0x0c01, 0x0c03,
+ 0x0c05, 0x0c0c,
+ 0x0c0e, 0x0c10,
+ 0x0c12, 0x0c28,
+ 0x0c2a, 0x0c33,
+ 0x0c35, 0x0c39,
+ 0x0c3d, 0x0c44,
+ 0x0c46, 0x0c48,
+ 0x0c4a, 0x0c4c,
+ 0x0c55, 0x0c56,
+ 0x0c58, 0x0c59,
+ 0x0c60, 0x0c63,
+ 0x0c66, 0x0c6f,
+ 0x0c82, 0x0c83,
+ 0x0c85, 0x0c8c,
+ 0x0c8e, 0x0c90,
+ 0x0c92, 0x0ca8,
+ 0x0caa, 0x0cb3,
+ 0x0cb5, 0x0cb9,
+ 0x0cbd, 0x0cc4,
+ 0x0cc6, 0x0cc8,
+ 0x0cca, 0x0ccc,
+ 0x0cd5, 0x0cd6,
+ 0x0cde, 0x0cde,
+ 0x0ce0, 0x0ce3,
+ 0x0ce6, 0x0cef,
+ 0x0cf1, 0x0cf2,
+ 0x0d02, 0x0d03,
+ 0x0d05, 0x0d0c,
+ 0x0d0e, 0x0d10,
+ 0x0d12, 0x0d3a,
+ 0x0d3d, 0x0d44,
+ 0x0d46, 0x0d48,
+ 0x0d4a, 0x0d4c,
+ 0x0d4e, 0x0d4e,
+ 0x0d57, 0x0d57,
+ 0x0d60, 0x0d63,
+ 0x0d66, 0x0d6f,
+ 0x0d7a, 0x0d7f,
+ 0x0d82, 0x0d83,
+ 0x0d85, 0x0d96,
+ 0x0d9a, 0x0db1,
+ 0x0db3, 0x0dbb,
+ 0x0dbd, 0x0dbd,
+ 0x0dc0, 0x0dc6,
+ 0x0dcf, 0x0dd4,
+ 0x0dd6, 0x0dd6,
+ 0x0dd8, 0x0ddf,
+ 0x0df2, 0x0df3,
+ 0x0e01, 0x0e3a,
+ 0x0e40, 0x0e46,
+ 0x0e4d, 0x0e4d,
+ 0x0e50, 0x0e59,
+ 0x0e81, 0x0e82,
+ 0x0e84, 0x0e84,
+ 0x0e87, 0x0e88,
+ 0x0e8a, 0x0e8a,
+ 0x0e8d, 0x0e8d,
+ 0x0e94, 0x0e97,
+ 0x0e99, 0x0e9f,
+ 0x0ea1, 0x0ea3,
+ 0x0ea5, 0x0ea5,
+ 0x0ea7, 0x0ea7,
+ 0x0eaa, 0x0eab,
+ 0x0ead, 0x0eb9,
+ 0x0ebb, 0x0ebd,
+ 0x0ec0, 0x0ec4,
+ 0x0ec6, 0x0ec6,
+ 0x0ecd, 0x0ecd,
+ 0x0ed0, 0x0ed9,
+ 0x0edc, 0x0edd,
+ 0x0f00, 0x0f00,
+ 0x0f20, 0x0f29,
+ 0x0f40, 0x0f47,
+ 0x0f49, 0x0f6c,
+ 0x0f71, 0x0f81,
+ 0x0f88, 0x0f97,
+ 0x0f99, 0x0fbc,
+ 0x1000, 0x1036,
+ 0x1038, 0x1038,
+ 0x103b, 0x1049,
+ 0x1050, 0x1062,
+ 0x1065, 0x1068,
+ 0x106e, 0x1086,
+ 0x108e, 0x108e,
+ 0x1090, 0x1099,
+ 0x109c, 0x109d,
+ 0x10a0, 0x10c5,
+ 0x10d0, 0x10fa,
+ 0x10fc, 0x10fc,
+ 0x1100, 0x1248,
+ 0x124a, 0x124d,
+ 0x1250, 0x1256,
+ 0x1258, 0x1258,
+ 0x125a, 0x125d,
+ 0x1260, 0x1288,
+ 0x128a, 0x128d,
+ 0x1290, 0x12b0,
+ 0x12b2, 0x12b5,
+ 0x12b8, 0x12be,
+ 0x12c0, 0x12c0,
+ 0x12c2, 0x12c5,
+ 0x12c8, 0x12d6,
+ 0x12d8, 0x1310,
+ 0x1312, 0x1315,
+ 0x1318, 0x135a,
+ 0x135f, 0x135f,
+ 0x1380, 0x138f,
+ 0x13a0, 0x13f4,
+ 0x1401, 0x166c,
+ 0x166f, 0x167f,
+ 0x1681, 0x169a,
+ 0x16a0, 0x16ea,
+ 0x16ee, 0x16f0,
+ 0x1700, 0x170c,
+ 0x170e, 0x1713,
+ 0x1720, 0x1733,
+ 0x1740, 0x1753,
+ 0x1760, 0x176c,
+ 0x176e, 0x1770,
+ 0x1772, 0x1773,
+ 0x1780, 0x17b3,
+ 0x17b6, 0x17c8,
+ 0x17d7, 0x17d7,
+ 0x17dc, 0x17dc,
+ 0x17e0, 0x17e9,
+ 0x1810, 0x1819,
+ 0x1820, 0x1877,
+ 0x1880, 0x18aa,
+ 0x18b0, 0x18f5,
+ 0x1900, 0x191c,
+ 0x1920, 0x192b,
+ 0x1930, 0x1938,
+ 0x1946, 0x196d,
+ 0x1970, 0x1974,
+ 0x1980, 0x19ab,
+ 0x19b0, 0x19c9,
+ 0x19d0, 0x19d9,
+ 0x1a00, 0x1a1b,
+ 0x1a20, 0x1a5e,
+ 0x1a61, 0x1a74,
+ 0x1a80, 0x1a89,
+ 0x1a90, 0x1a99,
+ 0x1aa7, 0x1aa7,
+ 0x1b00, 0x1b33,
+ 0x1b35, 0x1b43,
+ 0x1b45, 0x1b4b,
+ 0x1b50, 0x1b59,
+ 0x1b80, 0x1ba9,
+ 0x1bae, 0x1bb9,
+ 0x1bc0, 0x1be5,
+ 0x1be7, 0x1bf1,
+ 0x1c00, 0x1c35,
+ 0x1c40, 0x1c49,
+ 0x1c4d, 0x1c7d,
+ 0x1ce9, 0x1cec,
+ 0x1cee, 0x1cf2,
+ 0x1d00, 0x1dbf,
+ 0x1e00, 0x1f15,
+ 0x1f18, 0x1f1d,
+ 0x1f20, 0x1f45,
+ 0x1f48, 0x1f4d,
+ 0x1f50, 0x1f57,
+ 0x1f59, 0x1f59,
+ 0x1f5b, 0x1f5b,
+ 0x1f5d, 0x1f5d,
+ 0x1f5f, 0x1f7d,
+ 0x1f80, 0x1fb4,
+ 0x1fb6, 0x1fbc,
+ 0x1fbe, 0x1fbe,
+ 0x1fc2, 0x1fc4,
+ 0x1fc6, 0x1fcc,
+ 0x1fd0, 0x1fd3,
+ 0x1fd6, 0x1fdb,
+ 0x1fe0, 0x1fec,
+ 0x1ff2, 0x1ff4,
+ 0x1ff6, 0x1ffc,
+ 0x2071, 0x2071,
+ 0x207f, 0x207f,
+ 0x2090, 0x209c,
+ 0x2102, 0x2102,
+ 0x2107, 0x2107,
+ 0x210a, 0x2113,
+ 0x2115, 0x2115,
+ 0x2119, 0x211d,
+ 0x2124, 0x2124,
+ 0x2126, 0x2126,
+ 0x2128, 0x2128,
+ 0x212a, 0x212d,
+ 0x212f, 0x2139,
+ 0x213c, 0x213f,
+ 0x2145, 0x2149,
+ 0x214e, 0x214e,
+ 0x2160, 0x2188,
+ 0x24b6, 0x24e9,
+ 0x2c00, 0x2c2e,
+ 0x2c30, 0x2c5e,
+ 0x2c60, 0x2ce4,
+ 0x2ceb, 0x2cee,
+ 0x2d00, 0x2d25,
+ 0x2d30, 0x2d65,
+ 0x2d6f, 0x2d6f,
+ 0x2d80, 0x2d96,
+ 0x2da0, 0x2da6,
+ 0x2da8, 0x2dae,
+ 0x2db0, 0x2db6,
+ 0x2db8, 0x2dbe,
+ 0x2dc0, 0x2dc6,
+ 0x2dc8, 0x2dce,
+ 0x2dd0, 0x2dd6,
+ 0x2dd8, 0x2dde,
+ 0x2de0, 0x2dff,
+ 0x2e2f, 0x2e2f,
+ 0x3005, 0x3007,
+ 0x3021, 0x3029,
+ 0x3031, 0x3035,
+ 0x3038, 0x303c,
+ 0x3041, 0x3096,
+ 0x309d, 0x309f,
+ 0x30a1, 0x30fa,
+ 0x30fc, 0x30ff,
+ 0x3105, 0x312d,
+ 0x3131, 0x318e,
+ 0x31a0, 0x31ba,
+ 0x31f0, 0x31ff,
+ 0x3400, 0x4db5,
+ 0x4e00, 0x9fcb,
+ 0xa000, 0xa48c,
+ 0xa4d0, 0xa4fd,
+ 0xa500, 0xa60c,
+ 0xa610, 0xa62b,
+ 0xa640, 0xa66e,
+ 0xa67f, 0xa697,
+ 0xa6a0, 0xa6ef,
+ 0xa717, 0xa71f,
+ 0xa722, 0xa788,
+ 0xa78b, 0xa78e,
+ 0xa790, 0xa791,
+ 0xa7a0, 0xa7a9,
+ 0xa7fa, 0xa801,
+ 0xa803, 0xa805,
+ 0xa807, 0xa80a,
+ 0xa80c, 0xa827,
+ 0xa840, 0xa873,
+ 0xa880, 0xa8c3,
+ 0xa8d0, 0xa8d9,
+ 0xa8f2, 0xa8f7,
+ 0xa8fb, 0xa8fb,
+ 0xa900, 0xa92a,
+ 0xa930, 0xa952,
+ 0xa960, 0xa97c,
+ 0xa980, 0xa9b2,
+ 0xa9b4, 0xa9bf,
+ 0xa9cf, 0xa9d9,
+ 0xaa00, 0xaa36,
+ 0xaa40, 0xaa4d,
+ 0xaa50, 0xaa59,
+ 0xaa60, 0xaa76,
+ 0xaa7a, 0xaa7a,
+ 0xaa80, 0xaabe,
+ 0xaac0, 0xaac0,
+ 0xaac2, 0xaac2,
+ 0xaadb, 0xaadd,
+ 0xab01, 0xab06,
+ 0xab09, 0xab0e,
+ 0xab11, 0xab16,
+ 0xab20, 0xab26,
+ 0xab28, 0xab2e,
+ 0xabc0, 0xabea,
+ 0xabf0, 0xabf9,
+ 0xac00, 0xd7a3,
+ 0xd7b0, 0xd7c6,
+ 0xd7cb, 0xd7fb,
+ 0xf900, 0xfa2d,
+ 0xfa30, 0xfa6d,
+ 0xfa70, 0xfad9,
+ 0xfb00, 0xfb06,
+ 0xfb13, 0xfb17,
+ 0xfb1d, 0xfb28,
+ 0xfb2a, 0xfb36,
+ 0xfb38, 0xfb3c,
+ 0xfb3e, 0xfb3e,
+ 0xfb40, 0xfb41,
+ 0xfb43, 0xfb44,
+ 0xfb46, 0xfbb1,
+ 0xfbd3, 0xfd3d,
+ 0xfd50, 0xfd8f,
+ 0xfd92, 0xfdc7,
+ 0xfdf0, 0xfdfb,
+ 0xfe70, 0xfe74,
+ 0xfe76, 0xfefc,
+ 0xff10, 0xff19,
+ 0xff21, 0xff3a,
+ 0xff41, 0xff5a,
+ 0xff66, 0xffbe,
+ 0xffc2, 0xffc7,
+ 0xffca, 0xffcf,
+ 0xffd2, 0xffd7,
+ 0xffda, 0xffdc,
+ 0x10000, 0x1000b,
+ 0x1000d, 0x10026,
+ 0x10028, 0x1003a,
+ 0x1003c, 0x1003d,
+ 0x1003f, 0x1004d,
+ 0x10050, 0x1005d,
+ 0x10080, 0x100fa,
+ 0x10140, 0x10174,
+ 0x10280, 0x1029c,
+ 0x102a0, 0x102d0,
+ 0x10300, 0x1031e,
+ 0x10330, 0x1034a,
+ 0x10380, 0x1039d,
+ 0x103a0, 0x103c3,
+ 0x103c8, 0x103cf,
+ 0x103d1, 0x103d5,
+ 0x10400, 0x1049d,
+ 0x104a0, 0x104a9,
+ 0x10800, 0x10805,
+ 0x10808, 0x10808,
+ 0x1080a, 0x10835,
+ 0x10837, 0x10838,
+ 0x1083c, 0x1083c,
+ 0x1083f, 0x10855,
+ 0x10900, 0x10915,
+ 0x10920, 0x10939,
+ 0x10a00, 0x10a03,
+ 0x10a05, 0x10a06,
+ 0x10a0c, 0x10a13,
+ 0x10a15, 0x10a17,
+ 0x10a19, 0x10a33,
+ 0x10a60, 0x10a7c,
+ 0x10b00, 0x10b35,
+ 0x10b40, 0x10b55,
+ 0x10b60, 0x10b72,
+ 0x10c00, 0x10c48,
+ 0x11000, 0x11045,
+ 0x11066, 0x1106f,
+ 0x11082, 0x110b8,
+ 0x12000, 0x1236e,
+ 0x12400, 0x12462,
+ 0x13000, 0x1342e,
+ 0x16800, 0x16a38,
+ 0x1b000, 0x1b001,
+ 0x1d400, 0x1d454,
+ 0x1d456, 0x1d49c,
+ 0x1d49e, 0x1d49f,
+ 0x1d4a2, 0x1d4a2,
+ 0x1d4a5, 0x1d4a6,
+ 0x1d4a9, 0x1d4ac,
+ 0x1d4ae, 0x1d4b9,
+ 0x1d4bb, 0x1d4bb,
+ 0x1d4bd, 0x1d4c3,
+ 0x1d4c5, 0x1d505,
+ 0x1d507, 0x1d50a,
+ 0x1d50d, 0x1d514,
+ 0x1d516, 0x1d51c,
+ 0x1d51e, 0x1d539,
+ 0x1d53b, 0x1d53e,
+ 0x1d540, 0x1d544,
+ 0x1d546, 0x1d546,
+ 0x1d54a, 0x1d550,
+ 0x1d552, 0x1d6a5,
+ 0x1d6a8, 0x1d6c0,
+ 0x1d6c2, 0x1d6da,
+ 0x1d6dc, 0x1d6fa,
+ 0x1d6fc, 0x1d714,
+ 0x1d716, 0x1d734,
+ 0x1d736, 0x1d74e,
+ 0x1d750, 0x1d76e,
+ 0x1d770, 0x1d788,
+ 0x1d78a, 0x1d7a8,
+ 0x1d7aa, 0x1d7c2,
+ 0x1d7c4, 0x1d7cb,
+ 0x1d7ce, 0x1d7ff,
+ 0x20000, 0x2a6d6,
+ 0x2a700, 0x2b734,
+ 0x2b740, 0x2b81d,
+ 0x2f800, 0x2fa1d,
+}; /* CR_Alnum */
+
+/* 'ASCII': [[:ASCII:]] */
+static const OnigCodePoint CR_ASCII[] = {
+ 1,
+ 0x0000, 0x007f,
+}; /* CR_ASCII */
+
+static const OnigCodePoint* const CodeRanges[] = {
+ CR_NEWLINE,
+ CR_Alpha,
+ CR_Blank,
+ CR_Cntrl,
+ CR_Digit,
+ CR_Graph,
+ CR_Lower,
+ CR_Print,
+ CR_Punct,
+ CR_Space,
+ CR_Upper,
+ CR_XDigit,
+ CR_Word,
+ CR_Alnum,
+ CR_ASCII,
+#ifdef USE_UNICODE_PROPERTIES
+ CR_Any,
+ CR_Assigned,
+ CR_C,
+ CR_Cc,
+ CR_Cf,
+ CR_Cn,
+ CR_Co,
+ CR_Cs,
+ CR_L,
+ CR_Ll,
+ CR_Lm,
+ CR_Lo,
+ CR_Lt,
+ CR_Lu,
+ CR_M,
+ CR_Mc,
+ CR_Me,
+ CR_Mn,
+ CR_N,
+ CR_Nd,
+ CR_Nl,
+ CR_No,
+ CR_P,
+ CR_Pc,
+ CR_Pd,
+ CR_Pe,
+ CR_Pf,
+ CR_Pi,
+ CR_Po,
+ CR_Ps,
+ CR_S,
+ CR_Sc,
+ CR_Sk,
+ CR_Sm,
+ CR_So,
+ CR_Z,
+ CR_Zl,
+ CR_Zp,
+ CR_Zs,
+ CR_Math,
+ CR_Alphabetic,
+ CR_Lowercase,
+ CR_Uppercase,
+ CR_Cased,
+ CR_Case_Ignorable,
+ CR_Changes_When_Lowercased,
+ CR_Changes_When_Uppercased,
+ CR_Changes_When_Titlecased,
+ CR_Changes_When_Casefolded,
+ CR_Changes_When_Casemapped,
+ CR_ID_Start,
+ CR_ID_Continue,
+ CR_XID_Start,
+ CR_XID_Continue,
+ CR_Default_Ignorable_Code_Point,
+ CR_Grapheme_Extend,
+ CR_Grapheme_Base,
+ CR_Grapheme_Link,
+ CR_Common,
+ CR_Latin,
+ CR_Greek,
+ CR_Cyrillic,
+ CR_Armenian,
+ CR_Hebrew,
+ CR_Arabic,
+ CR_Syriac,
+ CR_Thaana,
+ CR_Devanagari,
+ CR_Bengali,
+ CR_Gurmukhi,
+ CR_Gujarati,
+ CR_Oriya,
+ CR_Tamil,
+ CR_Telugu,
+ CR_Kannada,
+ CR_Malayalam,
+ CR_Sinhala,
+ CR_Thai,
+ CR_Lao,
+ CR_Tibetan,
+ CR_Myanmar,
+ CR_Georgian,
+ CR_Hangul,
+ CR_Ethiopic,
+ CR_Cherokee,
+ CR_Canadian_Aboriginal,
+ CR_Ogham,
+ CR_Runic,
+ CR_Khmer,
+ CR_Mongolian,
+ CR_Hiragana,
+ CR_Katakana,
+ CR_Bopomofo,
+ CR_Han,
+ CR_Yi,
+ CR_Old_Italic,
+ CR_Gothic,
+ CR_Deseret,
+ CR_Inherited,
+ CR_Tagalog,
+ CR_Hanunoo,
+ CR_Buhid,
+ CR_Tagbanwa,
+ CR_Limbu,
+ CR_Tai_Le,
+ CR_Linear_B,
+ CR_Ugaritic,
+ CR_Shavian,
+ CR_Osmanya,
+ CR_Cypriot,
+ CR_Braille,
+ CR_Buginese,
+ CR_Coptic,
+ CR_New_Tai_Lue,
+ CR_Glagolitic,
+ CR_Tifinagh,
+ CR_Syloti_Nagri,
+ CR_Old_Persian,
+ CR_Kharoshthi,
+ CR_Balinese,
+ CR_Cuneiform,
+ CR_Phoenician,
+ CR_Phags_Pa,
+ CR_Nko,
+ CR_Sundanese,
+ CR_Lepcha,
+ CR_Ol_Chiki,
+ CR_Vai,
+ CR_Saurashtra,
+ CR_Kayah_Li,
+ CR_Rejang,
+ CR_Lycian,
+ CR_Carian,
+ CR_Lydian,
+ CR_Cham,
+ CR_Tai_Tham,
+ CR_Tai_Viet,
+ CR_Avestan,
+ CR_Egyptian_Hieroglyphs,
+ CR_Samaritan,
+ CR_Lisu,
+ CR_Bamum,
+ CR_Javanese,
+ CR_Meetei_Mayek,
+ CR_Imperial_Aramaic,
+ CR_Old_South_Arabian,
+ CR_Inscriptional_Parthian,
+ CR_Inscriptional_Pahlavi,
+ CR_Old_Turkic,
+ CR_Kaithi,
+ CR_Batak,
+ CR_Brahmi,
+ CR_Mandaic,
+ CR_White_Space,
+ CR_Bidi_Control,
+ CR_Join_Control,
+ CR_Dash,
+ CR_Hyphen,
+ CR_Quotation_Mark,
+ CR_Terminal_Punctuation,
+ CR_Other_Math,
+ CR_Hex_Digit,
+ CR_ASCII_Hex_Digit,
+ CR_Other_Alphabetic,
+ CR_Ideographic,
+ CR_Diacritic,
+ CR_Extender,
+ CR_Other_Lowercase,
+ CR_Other_Uppercase,
+ CR_Noncharacter_Code_Point,
+ CR_Other_Grapheme_Extend,
+ CR_IDS_Binary_Operator,
+ CR_IDS_Trinary_Operator,
+ CR_Radical,
+ CR_Unified_Ideograph,
+ CR_Other_Default_Ignorable_Code_Point,
+ CR_Deprecated,
+ CR_Soft_Dotted,
+ CR_Logical_Order_Exception,
+ CR_Other_ID_Start,
+ CR_Other_ID_Continue,
+ CR_STerm,
+ CR_Variation_Selector,
+ CR_Pattern_White_Space,
+ CR_Pattern_Syntax,
+ CR_Unknown,
+ CR_Age_1_1,
+ CR_Age_2_0,
+ CR_Age_2_1,
+ CR_Age_3_0,
+ CR_Age_3_1,
+ CR_Age_3_2,
+ CR_Age_4_0,
+ CR_Age_4_1,
+ CR_Age_5_0,
+ CR_Age_5_1,
+ CR_Age_5_2,
+ CR_Age_6_0,
+#endif /* USE_UNICODE_PROPERTIES */
+};
+struct uniname2ctype_struct {
+ int name, ctype;
+};
+
+static const struct uniname2ctype_struct *uniname2ctype_p(const char *, unsigned int);
+%}
+struct uniname2ctype_struct;
+%%
+newline, 0
+alpha, 1
+blank, 2
+cntrl, 3
+digit, 4
+graph, 5
+lower, 6
+print, 7
+punct, 8
+space, 9
+upper, 10
+xdigit, 11
+word, 12
+alnum, 13
+ascii, 14
+#ifdef USE_UNICODE_PROPERTIES
+any, 15
+assigned, 16
+c, 17
+cc, 18
+cf, 19
+cn, 20
+co, 21
+cs, 22
+l, 23
+ll, 24
+lm, 25
+lo, 26
+lt, 27
+lu, 28
+m, 29
+mc, 30
+me, 31
+mn, 32
+n, 33
+nd, 34
+nl, 35
+no, 36
+p, 37
+pc, 38
+pd, 39
+pe, 40
+pf, 41
+pi, 42
+po, 43
+ps, 44
+s, 45
+sc, 46
+sk, 47
+sm, 48
+so, 49
+z, 50
+zl, 51
+zp, 52
+zs, 53
+math, 54
+alphabetic, 55
+lowercase, 56
+uppercase, 57
+cased, 58
+caseignorable, 59
+changeswhenlowercased, 60
+changeswhenuppercased, 61
+changeswhentitlecased, 62
+changeswhencasefolded, 63
+changeswhencasemapped, 64
+idstart, 65
+idcontinue, 66
+xidstart, 67
+xidcontinue, 68
+defaultignorablecodepoint, 69
+graphemeextend, 70
+graphemebase, 71
+graphemelink, 72
+common, 73
+latin, 74
+greek, 75
+cyrillic, 76
+armenian, 77
+hebrew, 78
+arabic, 79
+syriac, 80
+thaana, 81
+devanagari, 82
+bengali, 83
+gurmukhi, 84
+gujarati, 85
+oriya, 86
+tamil, 87
+telugu, 88
+kannada, 89
+malayalam, 90
+sinhala, 91
+thai, 92
+lao, 93
+tibetan, 94
+myanmar, 95
+georgian, 96
+hangul, 97
+ethiopic, 98
+cherokee, 99
+canadianaboriginal, 100
+ogham, 101
+runic, 102
+khmer, 103
+mongolian, 104
+hiragana, 105
+katakana, 106
+bopomofo, 107
+han, 108
+yi, 109
+olditalic, 110
+gothic, 111
+deseret, 112
+inherited, 113
+tagalog, 114
+hanunoo, 115
+buhid, 116
+tagbanwa, 117
+limbu, 118
+taile, 119
+linearb, 120
+ugaritic, 121
+shavian, 122
+osmanya, 123
+cypriot, 124
+braille, 125
+buginese, 126
+coptic, 127
+newtailue, 128
+glagolitic, 129
+tifinagh, 130
+sylotinagri, 131
+oldpersian, 132
+kharoshthi, 133
+balinese, 134
+cuneiform, 135
+phoenician, 136
+phagspa, 137
+nko, 138
+sundanese, 139
+lepcha, 140
+olchiki, 141
+vai, 142
+saurashtra, 143
+kayahli, 144
+rejang, 145
+lycian, 146
+carian, 147
+lydian, 148
+cham, 149
+taitham, 150
+taiviet, 151
+avestan, 152
+egyptianhieroglyphs, 153
+samaritan, 154
+lisu, 155
+bamum, 156
+javanese, 157
+meeteimayek, 158
+imperialaramaic, 159
+oldsoutharabian, 160
+inscriptionalparthian, 161
+inscriptionalpahlavi, 162
+oldturkic, 163
+kaithi, 164
+batak, 165
+brahmi, 166
+mandaic, 167
+whitespace, 168
+bidicontrol, 169
+joincontrol, 170
+dash, 171
+hyphen, 172
+quotationmark, 173
+terminalpunctuation, 174
+othermath, 175
+hexdigit, 176
+asciihexdigit, 177
+otheralphabetic, 178
+ideographic, 179
+diacritic, 180
+extender, 181
+otherlowercase, 182
+otheruppercase, 183
+noncharactercodepoint, 184
+othergraphemeextend, 185
+idsbinaryoperator, 186
+idstrinaryoperator, 187
+radical, 188
+unifiedideograph, 189
+otherdefaultignorablecodepoint, 190
+deprecated, 191
+softdotted, 192
+logicalorderexception, 193
+otheridstart, 194
+otheridcontinue, 195
+sterm, 196
+variationselector, 197
+patternwhitespace, 198
+patternsyntax, 199
+unknown, 200
+ahex, 177
+bidic, 169
+ci, 59
+cwcf, 63
+cwcm, 64
+cwl, 60
+cwt, 62
+cwu, 61
+dep, 191
+di, 69
+dia, 180
+ext, 181
+grbase, 71
+grext, 70
+grlink, 72
+hex, 176
+idc, 66
+ideo, 179
+ids, 65
+idsb, 186
+idst, 187
+joinc, 170
+loe, 193
+nchar, 184
+oalpha, 178
+odi, 190
+ogrext, 185
+oidc, 195
+oids, 194
+olower, 182
+omath, 175
+oupper, 183
+patsyn, 199
+patws, 198
+qmark, 173
+sd, 192
+term, 174
+uideo, 189
+vs, 197
+wspace, 168
+xidc, 68
+xids, 67
+other, 17
+control, 18
+format, 19
+unassigned, 20
+privateuse, 21
+surrogate, 22
+letter, 23
+lowercaseletter, 24
+modifierletter, 25
+otherletter, 26
+titlecaseletter, 27
+uppercaseletter, 28
+mark, 29
+spacingmark, 30
+enclosingmark, 31
+nonspacingmark, 32
+number, 33
+decimalnumber, 34
+letternumber, 35
+othernumber, 36
+punctuation, 37
+connectorpunctuation, 38
+dashpunctuation, 39
+closepunctuation, 40
+finalpunctuation, 41
+initialpunctuation, 42
+otherpunctuation, 43
+openpunctuation, 44
+symbol, 45
+currencysymbol, 46
+modifiersymbol, 47
+mathsymbol, 48
+othersymbol, 49
+separator, 50
+lineseparator, 51
+paragraphseparator, 52
+spaceseparator, 53
+arab, 79
+armi, 159
+armn, 77
+avst, 152
+bali, 134
+bamu, 156
+batk, 165
+beng, 83
+bopo, 107
+brah, 166
+brai, 125
+bugi, 126
+buhd, 116
+cans, 100
+cari, 147
+cher, 99
+copt, 127
+qaac, 127
+cprt, 124
+cyrl, 76
+deva, 82
+dsrt, 112
+egyp, 153
+ethi, 98
+geor, 96
+glag, 129
+goth, 111
+grek, 75
+gujr, 85
+guru, 84
+hang, 97
+hani, 108
+hano, 115
+hebr, 78
+hira, 105
+ital, 110
+java, 157
+kali, 144
+kana, 106
+khar, 133
+khmr, 103
+knda, 89
+kthi, 164
+lana, 150
+laoo, 93
+latn, 74
+lepc, 140
+limb, 118
+linb, 120
+lyci, 146
+lydi, 148
+mand, 167
+mlym, 90
+mong, 104
+mtei, 158
+mymr, 95
+nkoo, 138
+ogam, 101
+olck, 141
+orkh, 163
+orya, 86
+osma, 123
+phag, 137
+phli, 162
+phnx, 136
+prti, 161
+rjng, 145
+runr, 102
+samr, 154
+sarb, 160
+saur, 143
+shaw, 122
+sinh, 91
+sund, 139
+sylo, 131
+syrc, 80
+tagb, 117
+tale, 119
+talu, 128
+taml, 87
+tavt, 151
+telu, 88
+tfng, 130
+tglg, 114
+thaa, 81
+tibt, 94
+ugar, 121
+vaii, 142
+xpeo, 132
+xsux, 135
+yiii, 109
+zinh, 113
+qaai, 113
+zyyy, 73
+zzzz, 200
+age=1.1, 201
+age=2.0, 202
+age=2.1, 203
+age=3.0, 204
+age=3.1, 205
+age=3.2, 206
+age=4.0, 207
+age=4.1, 208
+age=5.0, 209
+age=5.1, 210
+age=5.2, 211
+age=6.0, 212
+#endif /* USE_UNICODE_PROPERTIES */
+%%
+static int
+uniname2ctype(const UChar *name, unsigned int len)
+{
+ const struct uniname2ctype_struct *p = uniname2ctype_p((const char *)name, len);
+ if (p) return p->ctype;
+ return -1;
+}
diff --git a/enc/utf_16_32.h b/enc/utf_16_32.h
new file mode 100644
index 0000000000..b028a1a12e
--- /dev/null
+++ b/enc/utf_16_32.h
@@ -0,0 +1,4 @@
+#include "regenc.h"
+/* dummy for unsupported, statefull encoding */
+ENC_DUMMY("UTF-16");
+ENC_DUMMY("UTF-32");
diff --git a/enc/utf_16be.c b/enc/utf_16be.c
index 8d7c8e9b11..1e33c2ec7d 100644
--- a/enc/utf_16be.c
+++ b/enc/utf_16be.c
@@ -2,7 +2,7 @@
utf_16be.c - Oniguruma (regular expression library)
**********************************************************************/
/*-
- * Copyright (c) 2002-2007 K.Kosako <sndgk393 AT ybb DOT ne DOT jp>
+ * Copyright (c) 2002-2008 K.Kosako <sndgk393 AT ybb DOT ne DOT jp>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -108,9 +108,8 @@ utf16be_mbc_to_code(const UChar* p, const UChar* end ARG_UNUSED,
OnigCodePoint code;
if (UTF16_IS_SURROGATE_FIRST(*p)) {
- code = ((((p[0] - 0xd8) << 2) + ((p[1] & 0xc0) >> 6) + 1) << 16)
- + ((((p[1] & 0x3f) << 2) + (p[2] - 0xdc)) << 8)
- + p[3];
+ code = ((((p[0] << 8) + p[1]) & 0x03ff) << 10)
+ + (((p[2] << 8) + p[3]) & 0x03ff) + 0x10000;
}
else {
code = p[0] * 256 + p[1];
diff --git a/enc/utf_16le.c b/enc/utf_16le.c
index c8a1e7a10a..e972cb95f0 100644
--- a/enc/utf_16le.c
+++ b/enc/utf_16le.c
@@ -2,7 +2,7 @@
utf_16le.c - Oniguruma (regular expression library)
**********************************************************************/
/*-
- * Copyright (c) 2002-2007 K.Kosako <sndgk393 AT ybb DOT ne DOT jp>
+ * Copyright (c) 2002-2008 K.Kosako <sndgk393 AT ybb DOT ne DOT jp>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -56,7 +56,8 @@ static int
utf16le_mbc_enc_len(const UChar* p, const OnigUChar* e,
OnigEncoding enc ARG_UNUSED)
{
- int len = e-p, byte;
+ int len = (int)(e - p);
+ UChar byte;
if (len < 2)
return ONIGENC_CONSTRUCT_MBCLEN_NEEDMORE(1);
byte = p[1];
@@ -102,9 +103,8 @@ utf16le_mbc_to_code(const UChar* p, const UChar* end ARG_UNUSED,
UChar c1 = *(p+1);
if (UTF16_IS_SURROGATE_FIRST(c1)) {
- code = ((((c1 - 0xd8) << 2) + ((c0 & 0xc0) >> 6) + 1) << 16)
- + ((((c0 & 0x3f) << 2) + (p[3] - 0xdc)) << 8)
- + p[2];
+ code = ((((c1 << 8) + c0) & 0x03ff) << 10)
+ + (((p[3] << 8) + p[2]) & 0x03ff) + 0x10000;
}
else {
code = c1 * 256 + p[0];
diff --git a/enc/utf_32be.c b/enc/utf_32be.c
index 61e7d0f1b5..2671448d44 100644
--- a/enc/utf_32be.c
+++ b/enc/utf_32be.c
@@ -155,7 +155,7 @@ static UChar*
utf32be_left_adjust_char_head(const UChar* start, const UChar* s, const UChar* end,
OnigEncoding enc ARG_UNUSED)
{
- int rem;
+ ptrdiff_t rem;
if (s <= start) return (UChar* )s;
diff --git a/enc/utf_32le.c b/enc/utf_32le.c
index 3a0a41bba7..aa448200c6 100644
--- a/enc/utf_32le.c
+++ b/enc/utf_32le.c
@@ -155,7 +155,7 @@ static UChar*
utf32le_left_adjust_char_head(const UChar* start, const UChar* s, const UChar* end,
OnigEncoding enc ARG_UNUSED)
{
- int rem;
+ ptrdiff_t rem;
if (s <= start) return (UChar* )s;
diff --git a/enc/utf_8.c b/enc/utf_8.c
index 3b9387c613..83f8701205 100644
--- a/enc/utf_8.c
+++ b/enc/utf_8.c
@@ -84,7 +84,7 @@ static const signed char trans[][0x100] = {
/* c */ F, F, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
/* d */ 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1, 1,
/* e */ 2, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 3, 4, 3, 3,
- /* f */ 5, 6, 6, 6, 7, F, F, F, F, F, F, F, F, F, F, F
+ /* f */ 5, 6, 6, 6, 7, F, F, F, F, F, F, F, F, F, F, F
},
{ /* S1 0 1 2 3 4 5 6 7 8 9 a b c d e f */
/* 0 */ F, F, F, F, F, F, F, F, F, F, F, F, F, F, F, F,
@@ -102,7 +102,7 @@ static const signed char trans[][0x100] = {
/* c */ F, F, F, F, F, F, F, F, F, F, F, F, F, F, F, F,
/* d */ F, F, F, F, F, F, F, F, F, F, F, F, F, F, F, F,
/* e */ F, F, F, F, F, F, F, F, F, F, F, F, F, F, F, F,
- /* f */ F, F, F, F, F, F, F, F, F, F, F, F, F, F, F, F
+ /* f */ F, F, F, F, F, F, F, F, F, F, F, F, F, F, F, F
},
{ /* S2 0 1 2 3 4 5 6 7 8 9 a b c d e f */
/* 0 */ F, F, F, F, F, F, F, F, F, F, F, F, F, F, F, F,
@@ -120,7 +120,7 @@ static const signed char trans[][0x100] = {
/* c */ F, F, F, F, F, F, F, F, F, F, F, F, F, F, F, F,
/* d */ F, F, F, F, F, F, F, F, F, F, F, F, F, F, F, F,
/* e */ F, F, F, F, F, F, F, F, F, F, F, F, F, F, F, F,
- /* f */ F, F, F, F, F, F, F, F, F, F, F, F, F, F, F, F
+ /* f */ F, F, F, F, F, F, F, F, F, F, F, F, F, F, F, F
},
{ /* S3 0 1 2 3 4 5 6 7 8 9 a b c d e f */
/* 0 */ F, F, F, F, F, F, F, F, F, F, F, F, F, F, F, F,
@@ -138,7 +138,7 @@ static const signed char trans[][0x100] = {
/* c */ F, F, F, F, F, F, F, F, F, F, F, F, F, F, F, F,
/* d */ F, F, F, F, F, F, F, F, F, F, F, F, F, F, F, F,
/* e */ F, F, F, F, F, F, F, F, F, F, F, F, F, F, F, F,
- /* f */ F, F, F, F, F, F, F, F, F, F, F, F, F, F, F, F
+ /* f */ F, F, F, F, F, F, F, F, F, F, F, F, F, F, F, F
},
{ /* S4 0 1 2 3 4 5 6 7 8 9 a b c d e f */
/* 0 */ F, F, F, F, F, F, F, F, F, F, F, F, F, F, F, F,
@@ -156,7 +156,7 @@ static const signed char trans[][0x100] = {
/* c */ F, F, F, F, F, F, F, F, F, F, F, F, F, F, F, F,
/* d */ F, F, F, F, F, F, F, F, F, F, F, F, F, F, F, F,
/* e */ F, F, F, F, F, F, F, F, F, F, F, F, F, F, F, F,
- /* f */ F, F, F, F, F, F, F, F, F, F, F, F, F, F, F, F
+ /* f */ F, F, F, F, F, F, F, F, F, F, F, F, F, F, F, F
},
{ /* S5 0 1 2 3 4 5 6 7 8 9 a b c d e f */
/* 0 */ F, F, F, F, F, F, F, F, F, F, F, F, F, F, F, F,
@@ -174,7 +174,7 @@ static const signed char trans[][0x100] = {
/* c */ F, F, F, F, F, F, F, F, F, F, F, F, F, F, F, F,
/* d */ F, F, F, F, F, F, F, F, F, F, F, F, F, F, F, F,
/* e */ F, F, F, F, F, F, F, F, F, F, F, F, F, F, F, F,
- /* f */ F, F, F, F, F, F, F, F, F, F, F, F, F, F, F, F
+ /* f */ F, F, F, F, F, F, F, F, F, F, F, F, F, F, F, F
},
{ /* S6 0 1 2 3 4 5 6 7 8 9 a b c d e f */
/* 0 */ F, F, F, F, F, F, F, F, F, F, F, F, F, F, F, F,
@@ -192,7 +192,7 @@ static const signed char trans[][0x100] = {
/* c */ F, F, F, F, F, F, F, F, F, F, F, F, F, F, F, F,
/* d */ F, F, F, F, F, F, F, F, F, F, F, F, F, F, F, F,
/* e */ F, F, F, F, F, F, F, F, F, F, F, F, F, F, F, F,
- /* f */ F, F, F, F, F, F, F, F, F, F, F, F, F, F, F, F
+ /* f */ F, F, F, F, F, F, F, F, F, F, F, F, F, F, F, F
},
{ /* S7 0 1 2 3 4 5 6 7 8 9 a b c d e f */
/* 0 */ F, F, F, F, F, F, F, F, F, F, F, F, F, F, F, F,
@@ -210,7 +210,7 @@ static const signed char trans[][0x100] = {
/* c */ F, F, F, F, F, F, F, F, F, F, F, F, F, F, F, F,
/* d */ F, F, F, F, F, F, F, F, F, F, F, F, F, F, F, F,
/* e */ F, F, F, F, F, F, F, F, F, F, F, F, F, F, F, F,
- /* f */ F, F, F, F, F, F, F, F, F, F, F, F, F, F, F, F
+ /* f */ F, F, F, F, F, F, F, F, F, F, F, F, F, F, F, F
},
};
#undef A
@@ -363,7 +363,7 @@ code_to_mbc(OnigCodePoint code, UChar *buf, OnigEncoding enc ARG_UNUSED)
}
*p++ = UTF8_TRAIL0(code);
- return p - buf;
+ return (int)(p - buf);
}
}
@@ -449,7 +449,9 @@ ENC_ALIAS("CP65001", "UTF-8")
* Link: http://developer.apple.com/documentation/MacOSX/Conceptual/BPFileSystem/BPFileSystem.html
* Link: http://developer.apple.com/qa/qa2001/qa1235.html
* Link: http://developer.apple.com/jp/qa/qa2001/qa1235.html
+ * Link: http://www.gnu.org/software/emacs/NEWS.23.2
*/
ENC_REPLICATE("UTF8-MAC", "UTF-8")
ENC_ALIAS("UTF-8-MAC", "UTF8-MAC")
+ENC_ALIAS("UTF-8-HFS", "UTF8-MAC") /* Emacs 23.2 */
diff --git a/enc/x_emoji.h b/enc/x_emoji.h
new file mode 100644
index 0000000000..92c9bccafd
--- /dev/null
+++ b/enc/x_emoji.h
@@ -0,0 +1,26 @@
+#include "regint.h"
+
+/*
+ * Name: UTF8-DoCoMo, SJIS-DoCoMo
+ * Link: http://www.nttdocomo.co.jp/english/service/imode/make/content/pictograph/basic/index.html
+ * Link: http://www.nttdocomo.co.jp/english/service/imode/make/content/pictograph/extention/index.html
+ */
+ENC_REPLICATE("UTF8-DoCoMo", "UTF-8")
+ENC_REPLICATE("SJIS-DoCoMo", "Windows-31J")
+
+/*
+ * Name: UTF8-KDDI, SJIS-KDDI, ISO-2022-JP-KDDI
+ * Link: http://www.au.kddi.com/ezfactory/tec/spec/img/typeD.pdf
+ */
+ENC_REPLICATE("UTF8-KDDI", "UTF-8")
+ENC_REPLICATE("SJIS-KDDI", "Windows-31J")
+ENC_REPLICATE("ISO-2022-JP-KDDI", "ISO-2022-JP")
+ENC_REPLICATE("stateless-ISO-2022-JP-KDDI", "stateless-ISO-2022-JP")
+
+/*
+ * Name: UTF8-SoftBank, SJIS-SoftBank
+ * Link: http://creation.mb.softbank.jp/web/web_pic_about.html
+ * Link: http://www2.developers.softbankmobile.co.jp/dp/tool_dl/download.php?docid=120&companyid=
+ */
+ENC_REPLICATE("UTF8-SoftBank", "UTF-8")
+ENC_REPLICATE("SJIS-SoftBank", "Windows-31J")
diff --git a/encoding.c b/encoding.c
index 4ef45cd65e..b8c5f6d357 100644
--- a/encoding.c
+++ b/encoding.c
@@ -11,6 +11,7 @@
#include "ruby/ruby.h"
#include "ruby/encoding.h"
+#include "internal.h"
#include "regenc.h"
#include <ctype.h>
#ifndef NO_LOCALE_CHARMAP
@@ -23,6 +24,17 @@
#endif
#include "ruby/util.h"
+#if defined __GNUC__ && __GNUC__ >= 4
+#pragma GCC visibility push(default)
+int rb_enc_register(const char *name, rb_encoding *encoding);
+void rb_enc_set_base(const char *name, const char *orig);
+void rb_encdb_declare(const char *name);
+int rb_encdb_replicate(const char *name, const char *orig);
+int rb_encdb_dummy(const char *name);
+int rb_encdb_alias(const char *alias, const char *orig);
+#pragma GCC visibility pop
+#endif
+
static ID id_encoding;
VALUE rb_cEncoding;
static VALUE rb_encoding_list;
@@ -45,41 +57,56 @@ void rb_enc_init(void);
#define ENCODING_COUNT ENCINDEX_BUILTIN_MAX
#define UNSPECIFIED_ENCODING INT_MAX
+#define ENCODING_NAMELEN_MAX 63
+#define valid_encoding_name_p(name) ((name) && strlen(name) <= ENCODING_NAMELEN_MAX)
+
#define enc_autoload_p(enc) (!rb_enc_mbmaxlen(enc))
static int load_encoding(const char *name);
-static void
-enc_mark(void *ptr)
+static size_t
+enc_memsize(const void *p)
{
+ return 0;
}
+static const rb_data_type_t encoding_data_type = {
+ "encoding",
+ {0, 0, enc_memsize,},
+};
+
+#define is_data_encoding(obj) (RTYPEDDATA_P(obj) && RTYPEDDATA_TYPE(obj) == &encoding_data_type)
+
static VALUE
enc_new(rb_encoding *encoding)
{
- return Data_Wrap_Struct(rb_cEncoding, enc_mark, 0, encoding);
+ return TypedData_Wrap_Struct(rb_cEncoding, &encoding_data_type, encoding);
}
-VALUE
-rb_enc_from_encoding(rb_encoding *encoding)
+static VALUE
+rb_enc_from_encoding_index(int idx)
{
VALUE list, enc;
- int idx;
- if (!encoding) return Qnil;
- idx = ENC_TO_ENCINDEX(encoding);
if (!(list = rb_encoding_list)) {
- rb_bug("rb_enc_from_encoding(%d\"%s\"): no rb_encoding_list",
- idx, rb_enc_name(encoding));
+ rb_bug("rb_enc_from_encoding_index(%d): no rb_encoding_list", idx);
}
enc = rb_ary_entry(list, idx);
if (NIL_P(enc)) {
- rb_bug("rb_enc_from_encoding(%d\"%s\"): not created yet",
- idx, rb_enc_name(encoding));
+ rb_bug("rb_enc_from_encoding_index(%d): not created yet", idx);
}
return enc;
}
+VALUE
+rb_enc_from_encoding(rb_encoding *encoding)
+{
+ int idx;
+ if (!encoding) return Qnil;
+ idx = ENC_TO_ENCINDEX(encoding);
+ return rb_enc_from_encoding_index(idx);
+}
+
static int enc_autoload(rb_encoding *);
static int
@@ -97,8 +124,7 @@ check_encoding(rb_encoding *enc)
static int
enc_check_encoding(VALUE obj)
{
- if (SPECIAL_CONST_P(obj) || BUILTIN_TYPE(obj) != T_DATA ||
- RDATA(obj)->dmark != enc_mark) {
+ if (SPECIAL_CONST_P(obj) || !rb_typeddata_is_kind_of(obj, &encoding_data_type)) {
return -1;
}
return check_encoding(RDATA(obj)->data);
@@ -183,6 +209,7 @@ enc_register_at(int index, const char *name, rb_encoding *encoding)
struct rb_encoding_entry *ent = &enc_table.list[index];
VALUE list;
+ if (!valid_encoding_name_p(name)) return -1;
if (!ent->name) {
ent->name = name = strdup(name);
}
@@ -275,6 +302,18 @@ set_base_encoding(int index, rb_encoding *base)
return enc;
}
+/* for encdb.h
+ * Set base encoding for encodings which are not replicas
+ * but not in their own files.
+ */
+void
+rb_enc_set_base(const char *name, const char *orig)
+{
+ int idx = rb_enc_registered(name);
+ int origidx = rb_enc_registered(orig);
+ set_base_encoding(idx, rb_enc_from_index(origidx));
+}
+
int
rb_enc_replicate(const char *name, rb_encoding *encoding)
{
@@ -287,8 +326,25 @@ rb_enc_replicate(const char *name, rb_encoding *encoding)
return idx;
}
+/*
+ * call-seq:
+ * enc.replicate(name) -> encoding
+ *
+ * Returns a replicated encoding of _enc_ whose name is _name_.
+ * The new encoding should have the same byte structure of _enc_.
+ * If _name_ is used by another encoding, raise ArgumentError.
+ *
+ */
+static VALUE
+enc_replicate(VALUE encoding, VALUE name)
+{
+ return rb_enc_from_encoding_index(
+ rb_enc_replicate(StringValueCStr(name),
+ rb_to_encoding(encoding)));
+}
+
static int
-enc_replicate(int idx, const char *name, rb_encoding *origenc)
+enc_replicate_with_index(const char *name, rb_encoding *origenc, int idx)
{
if (idx < 0) {
idx = enc_register(name, origenc);
@@ -312,7 +368,7 @@ rb_encdb_replicate(const char *name, const char *orig)
if (origidx < 0) {
origidx = enc_register(orig, 0);
}
- return enc_replicate(idx, name, rb_enc_from_index(origidx));
+ return enc_replicate_with_index(name, rb_enc_from_index(origidx), idx);
}
int
@@ -328,8 +384,8 @@ rb_define_dummy_encoding(const char *name)
int
rb_encdb_dummy(const char *name)
{
- int index = enc_replicate(rb_enc_registered(name), name,
- rb_ascii8bit_encoding());
+ int index = enc_replicate_with_index(name, rb_ascii8bit_encoding(),
+ rb_enc_registered(name));
rb_encoding *enc = enc_table.list[index].enc;
ENC_SET_DUMMY(enc);
@@ -338,7 +394,7 @@ rb_encdb_dummy(const char *name)
/*
* call-seq:
- * enc.dummy? => true or false
+ * enc.dummy? -> true or false
*
* Returns true for dummy encodings.
* A dummy encoding is an encoding for which character handling is not properly
@@ -355,19 +411,49 @@ enc_dummy_p(VALUE enc)
return ENC_DUMMY_P(enc_table.list[must_encoding(enc)].enc) ? Qtrue : Qfalse;
}
-static const char *
+/*
+ * call-seq:
+ * enc.ascii_compatible? -> true or false
+ *
+ * Returns whether ASCII-compatible or not.
+ *
+ * Encoding::UTF_8.ascii_compatible? #=> true
+ * Encoding::UTF_16BE.ascii_compatible? #=> false
+ *
+ */
+static VALUE
+enc_ascii_compatible_p(VALUE enc)
+{
+ return rb_enc_asciicompat(enc_table.list[must_encoding(enc)].enc) ? Qtrue : Qfalse;
+}
+
+/*
+ * Returns 1 when the encoding is Unicode series other than UTF-7 else 0.
+ */
+int
+rb_enc_unicode_p(rb_encoding *enc)
+{
+ const char *name = rb_enc_name(enc);
+ return name[0] == 'U' && name[1] == 'T' && name[2] == 'F' && name[4] != '7';
+}
+
+/*
+ * Returns copied alias name when the key is added for st_table,
+ * else returns NULL.
+ */
+static int
enc_alias_internal(const char *alias, int idx)
{
- alias = strdup(alias);
- st_insert(enc_table.names, (st_data_t)alias, (st_data_t)idx);
- return alias;
+ return st_insert2(enc_table.names, (st_data_t)alias, (st_data_t)idx,
+ (st_data_t(*)(st_data_t))strdup);
}
static int
enc_alias(const char *alias, int idx)
{
- alias = enc_alias_internal(alias, idx);
- set_encoding_const(alias, rb_enc_from_index(idx));
+ if (!valid_encoding_name_p(alias)) return -1;
+ if (!enc_alias_internal(alias, idx))
+ set_encoding_const(alias, rb_enc_from_index(idx));
return idx;
}
@@ -450,17 +536,18 @@ rb_enc_registered(const char *name)
static VALUE
require_enc(VALUE enclib)
{
- return rb_require_safe(enclib, rb_safe_level());
+ int safe = rb_safe_level();
+ return rb_require_safe(enclib, safe > 3 ? 3 : safe);
}
static int
load_encoding(const char *name)
{
- VALUE enclib = rb_sprintf("enc/%s", name);
+ VALUE enclib = rb_sprintf("enc/%s.so", name);
VALUE verbose = ruby_verbose;
VALUE debug = ruby_debug;
VALUE loaded;
- char *s = RSTRING_PTR(enclib) + 4, *e = RSTRING_END(enclib);
+ char *s = RSTRING_PTR(enclib) + 4, *e = RSTRING_END(enclib) - 3;
int idx;
while (s < e) {
@@ -468,6 +555,7 @@ load_encoding(const char *name)
else if (ISUPPER(*s)) *s = TOLOWER(*s);
++s;
}
+ FL_UNSET(enclib, FL_TAINT|FL_UNTRUSTED);
OBJ_FREEZE(enclib);
ruby_verbose = Qfalse;
ruby_debug = Qfalse;
@@ -539,16 +627,16 @@ rb_enc_find(const char *name)
static inline int
enc_capable(VALUE obj)
{
- if (SPECIAL_CONST_P(obj)) return Qfalse;
+ if (SPECIAL_CONST_P(obj)) return SYMBOL_P(obj);
switch (BUILTIN_TYPE(obj)) {
case T_STRING:
case T_REGEXP:
case T_FILE:
- return Qtrue;
+ return TRUE;
case T_DATA:
- if (RDATA(obj)->dmark == enc_mark) return Qtrue;
+ if (is_data_encoding(obj)) return TRUE;
default:
- return Qfalse;
+ return FALSE;
}
}
@@ -565,34 +653,42 @@ rb_enc_get_index(VALUE obj)
int i = -1;
VALUE tmp;
+ if (SPECIAL_CONST_P(obj)) {
+ if (!SYMBOL_P(obj)) return -1;
+ obj = rb_id2str(SYM2ID(obj));
+ }
switch (BUILTIN_TYPE(obj)) {
- default:
- case T_STRING:
- case T_REGEXP:
- i = ENCODING_GET_INLINED(obj);
- if (i == ENCODING_INLINE_MAX) {
- VALUE iv;
-
- iv = rb_ivar_get(obj, rb_id_encoding());
- i = NUM2INT(iv);
- }
- break;
- case T_FILE:
- tmp = rb_funcall(obj, rb_intern("internal_encoding"), 0, 0);
- if (NIL_P(tmp)) obj = rb_funcall(obj, rb_intern("external_encoding"), 0, 0);
- else obj = tmp;
- if (NIL_P(obj)) break;
- case T_DATA:
- if (RDATA(obj)->dmark == enc_mark) {
- i = enc_check_encoding(obj);
- }
- break;
+ as_default:
+ default:
+ case T_STRING:
+ case T_REGEXP:
+ i = ENCODING_GET_INLINED(obj);
+ if (i == ENCODING_INLINE_MAX) {
+ VALUE iv;
+
+ iv = rb_ivar_get(obj, rb_id_encoding());
+ i = NUM2INT(iv);
+ }
+ break;
+ case T_FILE:
+ tmp = rb_funcall(obj, rb_intern("internal_encoding"), 0, 0);
+ if (NIL_P(tmp)) obj = rb_funcall(obj, rb_intern("external_encoding"), 0, 0);
+ else obj = tmp;
+ if (NIL_P(obj)) break;
+ case T_DATA:
+ if (is_data_encoding(obj)) {
+ i = enc_check_encoding(obj);
+ }
+ else {
+ goto as_default;
+ }
+ break;
}
return i;
}
-void
-rb_enc_set_index(VALUE obj, int idx)
+static void
+enc_set_index(VALUE obj, int idx)
{
if (idx < ENCODING_INLINE_MAX) {
ENCODING_SET_INLINED(obj, idx);
@@ -600,20 +696,30 @@ rb_enc_set_index(VALUE obj, int idx)
}
ENCODING_SET_INLINED(obj, ENCODING_INLINE_MAX);
rb_ivar_set(obj, rb_id_encoding(), INT2NUM(idx));
- return;
+}
+
+void
+rb_enc_set_index(VALUE obj, int idx)
+{
+ rb_check_frozen(obj);
+ enc_set_index(obj, idx);
}
VALUE
rb_enc_associate_index(VALUE obj, int idx)
{
/* enc_check_capable(obj);*/
+ rb_check_frozen(obj);
if (rb_enc_get_index(obj) == idx)
- return obj;
+ return obj;
+ if (SPECIAL_CONST_P(obj)) {
+ rb_raise(rb_eArgError, "cannot set encoding");
+ }
if (!ENC_CODERANGE_ASCIIONLY(obj) ||
!rb_enc_asciicompat(rb_enc_from_index(idx))) {
ENC_CODERANGE_CLEAR(obj);
}
- rb_enc_set_index(obj, idx);
+ enc_set_index(obj, idx);
return obj;
}
@@ -645,6 +751,7 @@ rb_enc_compatible(VALUE str1, VALUE str2)
{
int idx1, idx2;
rb_encoding *enc1, *enc2;
+ int isstr1, isstr2;
idx1 = rb_enc_get_index(str1);
idx2 = rb_enc_get_index(str2);
@@ -658,33 +765,38 @@ rb_enc_compatible(VALUE str1, VALUE str2)
enc1 = rb_enc_from_index(idx1);
enc2 = rb_enc_from_index(idx2);
- if (TYPE(str2) == T_STRING && RSTRING_LEN(str2) == 0)
+ isstr2 = RB_TYPE_P(str2, T_STRING);
+ if (isstr2 && RSTRING_LEN(str2) == 0)
return enc1;
- if (TYPE(str1) == T_STRING && RSTRING_LEN(str1) == 0)
- return enc2;
+ isstr1 = RB_TYPE_P(str1, T_STRING);
+ if (isstr1 && RSTRING_LEN(str1) == 0)
+ return (rb_enc_asciicompat(enc1) && rb_enc_str_asciionly_p(str2)) ? enc1 : enc2;
if (!rb_enc_asciicompat(enc1) || !rb_enc_asciicompat(enc2)) {
return 0;
}
/* objects whose encoding is the same of contents */
- if (BUILTIN_TYPE(str2) != T_STRING && idx2 == ENCINDEX_US_ASCII)
+ if (!isstr2 && idx2 == ENCINDEX_US_ASCII)
return enc1;
- if (BUILTIN_TYPE(str1) != T_STRING && idx1 == ENCINDEX_US_ASCII)
+ if (!isstr1 && idx1 == ENCINDEX_US_ASCII)
return enc2;
- if (BUILTIN_TYPE(str1) != T_STRING) {
+ if (!isstr1) {
VALUE tmp = str1;
int idx0 = idx1;
str1 = str2;
str2 = tmp;
idx1 = idx2;
idx2 = idx0;
+ idx0 = isstr1;
+ isstr1 = isstr2;
+ isstr2 = idx0;
}
- if (BUILTIN_TYPE(str1) == T_STRING) {
+ if (isstr1) {
int cr1, cr2;
cr1 = rb_enc_str_coderange(str1);
- if (BUILTIN_TYPE(str2) == T_STRING) {
+ if (isstr2) {
cr2 = rb_enc_str_coderange(str2);
if (cr1 != cr2) {
/* may need to handle ENC_CODERANGE_BROKEN */
@@ -692,7 +804,6 @@ rb_enc_compatible(VALUE str1, VALUE str2)
if (cr2 == ENC_CODERANGE_7BIT) return enc1;
}
if (cr2 == ENC_CODERANGE_7BIT) {
- if (idx1 == ENCINDEX_ASCII) return enc2;
return enc1;
}
}
@@ -711,7 +822,7 @@ rb_enc_copy(VALUE obj1, VALUE obj2)
/*
* call-seq:
- * obj.encoding => encoding
+ * obj.encoding -> encoding
*
* Returns the Encoding object that represents the encoding of obj.
*/
@@ -740,7 +851,7 @@ rb_enc_mbclen(const char *p, const char *e, rb_encoding *enc)
return MBCLEN_CHARFOUND_LEN(n);
else {
int min = rb_enc_mbminlen(enc);
- return min <= e-p ? min : e-p;
+ return min <= e-p ? min : (int)(e-p);
}
}
@@ -752,7 +863,7 @@ rb_enc_precise_mbclen(const char *p, const char *e, rb_encoding *enc)
return ONIGENC_CONSTRUCT_MBCLEN_NEEDMORE(1);
n = ONIGENC_PRECISE_MBC_ENC_LEN(enc, (UChar*)p, (UChar*)e);
if (e-p < n)
- return ONIGENC_CONSTRUCT_MBCLEN_NEEDMORE(n-(e-p));
+ return ONIGENC_CONSTRUCT_MBCLEN_NEEDMORE(n-(int)(e-p));
return n;
}
@@ -825,7 +936,7 @@ rb_enc_tolower(int c, rb_encoding *enc)
/*
* call-seq:
- * enc.inspect => string
+ * enc.inspect -> string
*
* Returns a string which represents the encoding for programmers.
*
@@ -844,11 +955,11 @@ enc_inspect(VALUE self)
/*
* call-seq:
- * enc.name => string
+ * enc.name -> string
*
* Returns the name of the encoding.
*
- * Encoding::UTF_8.name => "UTF-8"
+ * Encoding::UTF_8.name #=> "UTF-8"
*/
static VALUE
enc_name(VALUE self)
@@ -871,11 +982,11 @@ enc_names_i(st_data_t name, st_data_t idx, st_data_t args)
/*
* call-seq:
- * enc.names => array
+ * enc.names -> array
*
* Returns the list of name and aliases of the encoding.
*
- * Encoding::WINDOWS_31J.names => ["Windows-31J", "CP932", "csWindows31J"]
+ * Encoding::WINDOWS_31J.names #=> ["Windows-31J", "CP932", "csWindows31J"]
*/
static VALUE
enc_names(VALUE self)
@@ -890,20 +1001,20 @@ enc_names(VALUE self)
/*
* call-seq:
- * Encoding.list => [enc1, enc2, ...]
+ * Encoding.list -> [enc1, enc2, ...]
*
* Returns the list of loaded encodings.
*
* Encoding.list
- * => [#<Encoding:ASCII-8BIT>, #<Encoding:UTF-8>,
- * #<Encoding:ISO-2022-JP (dummy)>]
+ * #=> [#<Encoding:ASCII-8BIT>, #<Encoding:UTF-8>,
+ * #<Encoding:ISO-2022-JP (dummy)>]
*
* Encoding.find("US-ASCII")
- * => #<Encoding:US-ASCII>
+ * #=> #<Encoding:US-ASCII>
*
* Encoding.list
- * => [#<Encoding:ASCII-8BIT>, #<Encoding:UTF-8>,
- * #<Encoding:US-ASCII>, #<Encoding:ISO-2022-JP (dummy)>]
+ * #=> [#<Encoding:ASCII-8BIT>, #<Encoding:UTF-8>,
+ * #<Encoding:US-ASCII>, #<Encoding:ISO-2022-JP (dummy)>]
*
*/
static VALUE
@@ -916,41 +1027,56 @@ enc_list(VALUE klass)
/*
* call-seq:
- * Encoding.find(string) => enc
- * Encoding.find(symbol) => enc
+ * Encoding.find(string) -> enc
+ * Encoding.find(symbol) -> enc
*
* Search the encoding with specified <i>name</i>.
* <i>name</i> should be a string or symbol.
*
- * Encoding.find("US-ASCII") => #<Encoding:US-ASCII>
- * Encoding.find(:Shift_JIS) => #<Encoding:Shift_JIS>
+ * Encoding.find("US-ASCII") #=> #<Encoding:US-ASCII>
+ * Encoding.find(:Shift_JIS) #=> #<Encoding:Shift_JIS>
+ *
+ * Names which this method accept are encoding names and aliases
+ * including following special aliases
+ *
+ * "external":: default external encoding
+ * "internal":: default internal encoding
+ * "locale":: locale encoding
+ * "filesystem":: filesystem encoding
*
* An ArgumentError is raised when no encoding with <i>name</i>.
- * Only +Encoding.find("internal")+ however returns nil when no encoding named "internal",
- * in other words, when Ruby has no default internal encoding.
+ * Only <code>Encoding.find("internal")</code> however returns nil
+ * when no encoding named "internal", in other words, when Ruby has no
+ * default internal encoding.
*/
static VALUE
enc_find(VALUE klass, VALUE enc)
{
- return rb_enc_from_encoding(to_encoding(enc));
+ return rb_enc_from_encoding(rb_to_encoding(enc));
}
/*
* call-seq:
- * Encoding.compatible?(str1, str2) => enc or nil
+ * Encoding.compatible?(obj1, obj2) -> enc or nil
+ *
+ * Checks the compatibility of two objects.
*
- * Checks the compatibility of two strings.
- * If they are compatible, means concatenatable,
- * returns an encoding which the concatinated string will be.
- * If they are not compatible, nil is returned.
+ * If the objects are both strings they are compatible when they are
+ * concatenatable. The encoding of the concatenated string will be returned
+ * if they are compatible, nil if they are not.
*
* Encoding.compatible?("\xa1".force_encoding("iso-8859-1"), "b")
- * => #<Encoding:ISO-8859-1>
+ * #=> #<Encoding:ISO-8859-1>
*
* Encoding.compatible?(
* "\xa1".force_encoding("iso-8859-1"),
* "\xa1\xa1".force_encoding("euc-jp"))
- * => nil
+ * #=> nil
+ *
+ * If the objects are non-strings their encodings are compatible when they
+ * have an encoding and:
+ * * Either encoding is US-ASCII compatible
+ * * One of the encodings is a 7-bit encoding
*
*/
static VALUE
@@ -1025,8 +1151,8 @@ rb_usascii_encindex(void)
return ENCINDEX_US_ASCII;
}
-rb_encoding *
-rb_locale_encoding(void)
+int
+rb_locale_encindex(void)
{
VALUE charmap = rb_locale_charmap(rb_cEncoding);
int idx;
@@ -1038,25 +1164,47 @@ rb_locale_encoding(void)
if (rb_enc_registered("locale") < 0) enc_alias_internal("locale", idx);
- return rb_enc_from_index(idx);
+ return idx;
}
rb_encoding *
-rb_filesystem_encoding(void)
+rb_locale_encoding(void)
{
- rb_encoding *enc;
+ return rb_enc_from_index(rb_locale_encindex());
+}
+
+static int
+enc_set_filesystem_encoding(void)
+{
+ int idx;
#if defined NO_LOCALE_CHARMAP
- enc = rb_default_external_encoding();
+ idx = rb_enc_to_index(rb_default_external_encoding());
#elif defined _WIN32 || defined __CYGWIN__
char cp[sizeof(int) * 8 / 3 + 4];
snprintf(cp, sizeof cp, "CP%d", AreFileApisANSI() ? GetACP() : GetOEMCP());
- enc = rb_enc_find(cp);
-#elif defined __APPLE__
- enc = rb_enc_find("UTF-8");
+ idx = rb_enc_find_index(cp);
+ if (idx < 0) idx = rb_ascii8bit_encindex();
#else
- enc = rb_default_external_encoding();
+ idx = rb_enc_to_index(rb_default_external_encoding());
#endif
- return enc;
+
+ enc_alias_internal("filesystem", idx);
+ return idx;
+}
+
+int
+rb_filesystem_encindex(void)
+{
+ int idx = rb_enc_registered("filesystem");
+ if (idx < 0)
+ idx = rb_ascii8bit_encindex();
+ return idx;
+}
+
+rb_encoding *
+rb_filesystem_encoding(void)
+{
+ return rb_enc_from_index(rb_filesystem_encindex());
}
struct default_encoding {
@@ -1064,13 +1212,16 @@ struct default_encoding {
rb_encoding *enc;
};
+static struct default_encoding default_external = {0};
+
static int
enc_set_default_encoding(struct default_encoding *def, VALUE encoding, const char *name)
{
- int overridden = Qfalse;
+ int overridden = FALSE;
+
if (def->index != -2)
/* Already set */
- overridden = Qtrue;
+ overridden = TRUE;
if (NIL_P(encoding)) {
def->index = -1;
@@ -1084,11 +1235,12 @@ enc_set_default_encoding(struct default_encoding *def, VALUE encoding, const cha
enc_alias_internal(name, def->index);
}
+ if (def == &default_external)
+ enc_set_filesystem_encoding();
+
return overridden;
}
-static struct default_encoding default_external = {0};
-
rb_encoding *
rb_default_external_encoding(void)
{
@@ -1111,11 +1263,29 @@ rb_enc_default_external(void)
/*
* call-seq:
- * Encoding.default_external => enc
+ * Encoding.default_external -> enc
*
* Returns default external encoding.
*
- * It is initialized by the locale or -E option.
+ * The default external encoding is used by default for strings created from
+ * the following locations:
+ *
+ * * CSV
+ * * File data read from disk
+ * * SDBM
+ * * StringIO
+ * * Zlib::GzipReader
+ * * Zlib::GzipWriter
+ * * String#inspect
+ * * Regexp#inspect
+ *
+ * While strings created from these locations will have this encoding, the
+ * encoding may not be valid. Be sure to check String#valid_encoding?.
+ *
+ * File data written to disk will be transcoded to the default external
+ * encoding when written.
+ *
+ * The default external encoding is initialized by the locale or -E option.
*/
static VALUE
get_default_external(VALUE klass)
@@ -1137,7 +1307,14 @@ rb_enc_set_default_external(VALUE encoding)
* call-seq:
* Encoding.default_external = enc
*
- * Sets default external encoding.
+ * Sets default external encoding. You should not set
+ * Encoding::default_external in ruby code as strings created before changing
+ * the value may have a different encoding from strings created after thevalue
+ * was changed., instead you should use <tt>ruby -E</tt> to invoke ruby with
+ * the correct default_external.
+ *
+ * See Encoding::default_external for information on how the default external
+ * encoding is used.
*/
static VALUE
set_default_external(VALUE klass, VALUE encoding)
@@ -1167,11 +1344,34 @@ rb_enc_default_internal(void)
/*
* call-seq:
- * Encoding.default_internal => enc
+ * Encoding.default_internal -> enc
+ *
+ * Returns default internal encoding. Strings will be transcoded to the
+ * default internal encoding in the following places if the default internal
+ * encoding is not nil:
+ *
+ * * CSV
+ * * Etc.sysconfdir and Etc.systmpdir
+ * * File data read from disk
+ * * File names from Dir
+ * * Integer#chr
+ * * String#inspect and Regexp#inspect
+ * * Strings returned from Curses
+ * * Strings returned from Readline
+ * * Strings returned from SDBM
+ * * Time#zone
+ * * Values from ENV
+ * * Values in ARGV including $PROGRAM_NAME
+ * * __FILE__
*
- * Returns default internal encoding.
+ * Additionally String#encode and String#encode! use the default internal
+ * encoding if no encoding is given.
*
- * It is initialized by the source internal_encoding or -E option.
+ * The locale encoding (__ENCODING__), not default_internal, is used as the
+ * encoding of created strings.
+ *
+ * Encoding::default_internal is initialized by the source file's
+ * internal_encoding or -E option.
*/
static VALUE
get_default_internal(VALUE klass)
@@ -1190,8 +1390,14 @@ rb_enc_set_default_internal(VALUE encoding)
* call-seq:
* Encoding.default_internal = enc or nil
*
- * Sets default internal encoding.
- * Or removes default internal encoding when passed nil.
+ * Sets default internal encoding or removes default internal encoding when
+ * passed nil. You should not set Encoding::default_internal in ruby code as
+ * strings created before changing the value may have a different encoding
+ * from strings created after the change. Instead you should use
+ * <tt>ruby -E</tt> to invoke ruby with the correct default_internal.
+ *
+ * See Encoding::default_internal for information on how the default internal
+ * encoding is used.
*/
static VALUE
set_default_internal(VALUE klass, VALUE encoding)
@@ -1203,23 +1409,24 @@ set_default_internal(VALUE klass, VALUE encoding)
/*
* call-seq:
- * Encoding.locale_charmap => string
+ * Encoding.locale_charmap -> string
*
* Returns the locale charmap name.
+ * It returns nil if no appropriate information.
*
* Debian GNU/Linux
* LANG=C
- * Encoding.locale_charmap => "ANSI_X3.4-1968"
+ * Encoding.locale_charmap #=> "ANSI_X3.4-1968"
* LANG=ja_JP.EUC-JP
- * Encoding.locale_charmap => "EUC-JP"
+ * Encoding.locale_charmap #=> "EUC-JP"
*
* SunOS 5
* LANG=C
- * Encoding.locale_charmap => "646"
+ * Encoding.locale_charmap #=> "646"
* LANG=ja
- * Encoding.locale_charmap => "eucJP"
+ * Encoding.locale_charmap #=> "eucJP"
*
- * The result is higly platform dependent.
+ * The result is highly platform dependent.
* So Encoding.find(Encoding.locale_charmap) may cause an error.
* If you need some encoding object even for unknown locale,
* Encoding.find("locale") can be used.
@@ -1235,7 +1442,9 @@ rb_locale_charmap(VALUE klass)
const char *codeset = nl_langinfo_codeset();
char cp[sizeof(int) * 3 + 4];
if (!codeset) {
- snprintf(cp, sizeof(cp), "CP%d", GetConsoleCP());
+ UINT codepage = GetConsoleCP();
+ if(!codepage) codepage = GetACP();
+ snprintf(cp, sizeof(cp), "CP%d", codepage);
codeset = cp;
}
return rb_usascii_str_new2(codeset);
@@ -1263,17 +1472,22 @@ set_encoding_const(const char *name, rb_encoding *enc)
}
}
if (!*s) {
+ if (s - name > ENCODING_NAMELEN_MAX) return;
valid = 1;
rb_define_const(rb_cEncoding, name, encoding);
}
if (!valid || haslower) {
- int len = strlen(name) + 1;
+ size_t len = s - name;
+ if (len > ENCODING_NAMELEN_MAX) return;
if (!haslower || !hasupper) {
do {
if (ISLOWER(*s)) haslower = 1;
if (ISUPPER(*s)) hasupper = 1;
} while (*++s && (!haslower || !hasupper));
+ len = s - name;
}
+ len += strlen(s);
+ if (len++ > ENCODING_NAMELEN_MAX) return;
MEMCPY(s = ALLOCA_N(char, len), name, char, len);
name = s;
if (!valid) {
@@ -1306,17 +1520,15 @@ rb_enc_name_list_i(st_data_t name, st_data_t idx, st_data_t arg)
/*
* call-seq:
- * Encoding.name_list => ["enc1", "enc2", ...]
+ * Encoding.name_list -> ["enc1", "enc2", ...]
*
* Returns the list of available encoding names.
*
* Encoding.name_list
- * => ["US-ASCII", "ASCII-8BIT", "UTF-8",
- * "ISO-8859-1", "Shift_JIS", "EUC-JP",
- * "Windows-31J",
- * "BINARY", "CP932", "eucJP"]
- *
- * This list doesn't include dummy encodings.
+ * #=> ["US-ASCII", "ASCII-8BIT", "UTF-8",
+ * "ISO-8859-1", "Shift_JIS", "EUC-JP",
+ * "Windows-31J",
+ * "BINARY", "CP932", "eucJP"]
*
*/
@@ -1355,13 +1567,13 @@ rb_enc_aliases_enc_i(st_data_t name, st_data_t orig, st_data_t arg)
/*
* call-seq:
- * Encoding.aliases => {"alias1" => "orig1", "alias2" => "orig2", ...}
+ * Encoding.aliases -> {"alias1" => "orig1", "alias2" => "orig2", ...}
*
* Returns the hash of available encoding alias and original encoding name.
*
* Encoding.aliases
- * => {"BINARY"=>"ASCII-8BIT", "ASCII"=>"US-ASCII", "ANSI_X3.4-1986"=>"US-ASCII",
- * "SJIS"=>"Shift_JIS", "eucJP"=>"EUC-JP", "CP932"=>"Windows-31J"}
+ * #=> {"BINARY"=>"ASCII-8BIT", "ASCII"=>"US-ASCII", "ANSI_X3.4-1986"=>"US-ASCII",
+ * "SJIS"=>"Shift_JIS", "eucJP"=>"EUC-JP", "CP932"=>"Windows-31J"}
*
*/
@@ -1385,11 +1597,14 @@ Init_Encoding(void)
rb_cEncoding = rb_define_class("Encoding", rb_cObject);
rb_undef_alloc_func(rb_cEncoding);
+ rb_undef_method(CLASS_OF(rb_cEncoding), "new");
rb_define_method(rb_cEncoding, "to_s", enc_name, 0);
rb_define_method(rb_cEncoding, "inspect", enc_inspect, 0);
rb_define_method(rb_cEncoding, "name", enc_name, 0);
rb_define_method(rb_cEncoding, "names", enc_names, 0);
rb_define_method(rb_cEncoding, "dummy?", enc_dummy_p, 0);
+ rb_define_method(rb_cEncoding, "ascii_compatible?", enc_ascii_compatible_p, 0);
+ rb_define_method(rb_cEncoding, "replicate", enc_replicate, 1);
rb_define_singleton_method(rb_cEncoding, "list", enc_list, 0);
rb_define_singleton_method(rb_cEncoding, "name_list", rb_enc_name_list, 0);
rb_define_singleton_method(rb_cEncoding, "aliases", rb_enc_aliases, 0);
@@ -1415,10 +1630,10 @@ Init_Encoding(void)
}
}
-/* locale insensitive functions */
+/* locale insensitive ctype functions */
#define ctype_test(c, ctype) \
- (rb_isascii(c) && ONIGENC_IS_ASCII_CODE_CTYPE((c), ctype))
+ (rb_isascii(c) && ONIGENC_IS_ASCII_CODE_CTYPE((c), (ctype)))
int rb_isalnum(int c) { return ctype_test(c, ONIGENC_CTYPE_ALNUM); }
int rb_isalpha(int c) { return ctype_test(c, ONIGENC_CTYPE_ALPHA); }
diff --git a/enum.c b/enum.c
index 938e3c3e5e..de954c938f 100644
--- a/enum.c
+++ b/enum.c
@@ -12,9 +12,13 @@
#include "ruby/ruby.h"
#include "ruby/util.h"
#include "node.h"
+#include "id.h"
VALUE rb_mEnumerable;
-static ID id_each, id_eqq, id_cmp, id_next, id_size;
+static ID id_next;
+#define id_each idEach
+#define id_eqq idEqq
+#define id_cmp idCmp
static VALUE
enum_values_pack(int argc, VALUE *argv)
@@ -31,8 +35,9 @@ enum_values_pack(int argc, VALUE *argv)
#define enum_yield rb_yield_values2
static VALUE
-grep_i(VALUE i, VALUE *arg, int argc, VALUE *argv)
+grep_i(VALUE i, VALUE args, int argc, VALUE *argv)
{
+ VALUE *arg = (VALUE *)args;
ENUM_WANT_SVALUE();
if (RTEST(rb_funcall(arg[0], id_eqq, 1, i))) {
@@ -42,8 +47,9 @@ grep_i(VALUE i, VALUE *arg, int argc, VALUE *argv)
}
static VALUE
-grep_iter_i(VALUE i, VALUE *arg, int argc, VALUE *argv)
+grep_iter_i(VALUE i, VALUE args, int argc, VALUE *argv)
{
+ VALUE *arg = (VALUE *)args;
ENUM_WANT_SVALUE();
if (RTEST(rb_funcall(arg[0], id_eqq, 1, i))) {
@@ -54,8 +60,8 @@ grep_iter_i(VALUE i, VALUE *arg, int argc, VALUE *argv)
/*
* call-seq:
- * enum.grep(pattern) => array
- * enum.grep(pattern) {| obj | block } => array
+ * enum.grep(pattern) -> array
+ * enum.grep(pattern) {| obj | block } -> array
*
* Returns an array of every element in <i>enum</i> for which
* <code>Pattern === element</code>. If the optional <em>block</em> is
@@ -119,9 +125,9 @@ count_all_i(VALUE i, VALUE memop, int argc, VALUE *argv)
/*
* call-seq:
- * enum.count => int
- * enum.count(item) => int
- * enum.count {| obj | block } => int
+ * enum.count -> int
+ * enum.count(item) -> int
+ * enum.count {| obj | block } -> int
*
* Returns the number of items in <i>enum</i>, where #size is called
* if it responds to it, otherwise the items are counted through
@@ -130,9 +136,9 @@ count_all_i(VALUE i, VALUE memop, int argc, VALUE *argv)
* given, counts the number of elements yielding a true value.
*
* ary = [1, 2, 4, 2]
- * ary.count # => 4
- * ary.count(2) # => 2
- * ary.count{|x|x%2==0} # => 3
+ * ary.count #=> 4
+ * ary.count(2) #=> 2
+ * ary.count{|x|x%2==0} #=> 3
*
*/
@@ -147,9 +153,6 @@ enum_count(int argc, VALUE *argv, VALUE obj)
func = count_iter_i;
}
else {
- if (rb_respond_to(obj, id_size)) {
- return rb_funcall(obj, id_size, 0, 0);
- }
func = count_all_i;
}
}
@@ -180,13 +183,17 @@ find_i(VALUE i, VALUE *memo, int argc, VALUE *argv)
/*
* call-seq:
- * enum.detect(ifnone = nil) {| obj | block } => obj or nil
- * enum.find(ifnone = nil) {| obj | block } => obj or nil
+ * enum.detect(ifnone = nil) {| obj | block } -> obj or nil
+ * enum.find(ifnone = nil) {| obj | block } -> obj or nil
+ * enum.detect(ifnone = nil) -> an_enumerator
+ * enum.find(ifnone = nil) -> an_enumerator
*
* Passes each entry in <i>enum</i> to <em>block</em>. Returns the
- * first for which <em>block</em> is not <code>false</code>. If no
+ * first for which <em>block</em> is not false. If no
* object matches, calls <i>ifnone</i> and returns its result when it
- * is specified, or returns <code>nil</code>
+ * is specified, or returns <code>nil</code> otherwise.
+ *
+ * If no block is given, an enumerator is returned instead.
*
* (1..10).detect {|i| i % 5 == 0 and i % 7 == 0 } #=> nil
* (1..100).detect {|i| i % 5 == 0 and i % 7 == 0 } #=> 35
@@ -241,14 +248,17 @@ find_index_iter_i(VALUE i, VALUE memop, int argc, VALUE *argv)
/*
* call-seq:
- * enum.find_index(value) => int or nil
- * enum.find_index {| obj | block } => int or nil
+ * enum.find_index(value) -> int or nil
+ * enum.find_index {| obj | block } -> int or nil
+ * enum.find_index -> an_enumerator
*
* Compares each entry in <i>enum</i> with <em>value</em> or passes
* to <em>block</em>. Returns the index for the first for which the
* evaluated value is non-false. If no object matches, returns
* <code>nil</code>
*
+ * If neither block nor argument is given, an enumerator is returned instead.
+ *
* (1..10).find_index {|i| i % 5 == 0 and i % 7 == 0 } #=> nil
* (1..100).find_index {|i| i % 5 == 0 and i % 7 == 0 } #=> 34
* (1..100).find_index(50) #=> 49
@@ -292,13 +302,18 @@ find_all_i(VALUE i, VALUE ary, int argc, VALUE *argv)
/*
* call-seq:
- * enum.find_all {| obj | block } => array
- * enum.select {| obj | block } => array
+ * enum.find_all {| obj | block } -> array
+ * enum.select {| obj | block } -> array
+ * enum.find_all -> an_enumerator
+ * enum.select -> an_enumerator
*
* Returns an array containing all elements of <i>enum</i> for which
* <em>block</em> is not <code>false</code> (see also
* <code>Enumerable#reject</code>).
*
+ * If no block is given, an enumerator is returned instead.
+ *
+ *
* (1..10).find_all {|i| i % 3 == 0 } #=> [3, 6, 9]
*
*/
@@ -329,11 +344,14 @@ reject_i(VALUE i, VALUE ary, int argc, VALUE *argv)
/*
* call-seq:
- * enum.reject {| obj | block } => array
+ * enum.reject {| obj | block } -> array
+ * enum.reject -> an_enumerator
*
* Returns an array for all elements of <i>enum</i> for which
* <em>block</em> is false (see also <code>Enumerable#find_all</code>).
*
+ * If no block is given, an enumerator is returned instead.
+ *
* (1..10).reject {|i| i % 3 == 0 } #=> [1, 2, 4, 5, 7, 8, 10]
*
*/
@@ -362,6 +380,7 @@ collect_i(VALUE i, VALUE ary, int argc, VALUE *argv)
static VALUE
collect_all(VALUE i, VALUE ary, int argc, VALUE *argv)
{
+ rb_thread_check_ints();
rb_ary_push(ary, enum_values_pack(argc, argv));
return Qnil;
@@ -369,12 +388,16 @@ collect_all(VALUE i, VALUE ary, int argc, VALUE *argv)
/*
* call-seq:
- * enum.collect {| obj | block } => array
- * enum.map {| obj | block } => array
+ * enum.collect {| obj | block } -> array
+ * enum.map {| obj | block } -> array
+ * enum.collect -> an_enumerator
+ * enum.map -> an_enumerator
*
* Returns a new array with the results of running <em>block</em> once
* for every element in <i>enum</i>.
*
+ * If no block is given, an enumerator is returned instead.
+ *
* (1..4).collect {|i| i*i } #=> [1, 4, 9, 16]
* (1..4).collect { "cat" } #=> ["cat", "cat", "cat", "cat"]
*
@@ -393,10 +416,56 @@ enum_collect(VALUE obj)
return ary;
}
+static VALUE
+flat_map_i(VALUE i, VALUE ary, int argc, VALUE *argv)
+{
+ VALUE tmp;
+
+ i = enum_yield(argc, argv);
+ tmp = rb_check_array_type(i);
+
+ if (NIL_P(tmp)) {
+ rb_ary_push(ary, i);
+ }
+ else {
+ rb_ary_concat(ary, tmp);
+ }
+ return Qnil;
+}
+
+/*
+ * call-seq:
+ * enum.flat_map {| obj | block } -> array
+ * enum.collect_concat {| obj | block } -> array
+ * enum.flat_map -> an_enumerator
+ * enum.collect_concat -> an_enumerator
+ *
+ * Returns a new array with the concatenated results of running
+ * <em>block</em> once for every element in <i>enum</i>.
+ *
+ * If no block is given, an enumerator is returned instead.
+ *
+ * [[1,2],[3,4]].flat_map {|i| i } #=> [1, 2, 3, 4]
+ *
+ */
+
+static VALUE
+enum_flat_map(VALUE obj)
+{
+ VALUE ary;
+
+ RETURN_ENUMERATOR(obj, 0, 0);
+
+ ary = rb_ary_new();
+ rb_block_call(obj, id_each, 0, 0, flat_map_i, ary);
+
+ return ary;
+}
+
/*
* call-seq:
- * enum.to_a => array
- * enum.entries => array
+ * enum.to_a -> array
+ * enum.entries -> array
*
* Returns an array containing the items in <i>enum</i>.
*
@@ -409,6 +478,7 @@ enum_to_a(int argc, VALUE *argv, VALUE obj)
VALUE ary = rb_ary_new();
rb_block_call(obj, id_each, argc, argv, collect_all, ary);
+ OBJ_INFECT(ary, obj);
return ary;
}
@@ -447,27 +517,26 @@ inject_op_i(VALUE i, VALUE p, int argc, VALUE *argv)
/*
* call-seq:
- * enum.inject(initial, sym) => obj
- * enum.inject(sym) => obj
- * enum.inject(initial) {| memo, obj | block } => obj
- * enum.inject {| memo, obj | block } => obj
- *
- * enum.reduce(initial, sym) => obj
- * enum.reduce(sym) => obj
- * enum.reduce(initial) {| memo, obj | block } => obj
- * enum.reduce {| memo, obj | block } => obj
+ * enum.inject(initial, sym) -> obj
+ * enum.inject(sym) -> obj
+ * enum.inject(initial) {| memo, obj | block } -> obj
+ * enum.inject {| memo, obj | block } -> obj
+ * enum.reduce(initial, sym) -> obj
+ * enum.reduce(sym) -> obj
+ * enum.reduce(initial) {| memo, obj | block } -> obj
+ * enum.reduce {| memo, obj | block } -> obj
*
* Combines all elements of <i>enum</i> by applying a binary
* operation, specified by a block or a symbol that names a
* method or operator.
*
- * If you specify a block, then for each element in <i>enum<i>
+ * If you specify a block, then for each element in <i>enum</i>
* the block is passed an accumulator value (<i>memo</i>) and the element.
* If you specify a symbol instead, then each element in the collection
* will be passed to the named method of <i>memo</i>.
* In either case, the result becomes the new value for <i>memo</i>.
* At the end of the iteration, the final value of <i>memo</i> is the
- * return value fo the method.
+ * return value for the method.
*
* If you do not explicitly specify an <i>initial</i> value for <i>memo</i>,
* then uses the first element of collection is used as the initial value
@@ -537,13 +606,16 @@ partition_i(VALUE i, VALUE *ary, int argc, VALUE *argv)
/*
* call-seq:
- * enum.partition {| obj | block } => [ true_array, false_array ]
+ * enum.partition {| obj | block } -> [ true_array, false_array ]
+ * enum.partition -> an_enumerator
*
* Returns two arrays, the first containing the elements of
* <i>enum</i> for which the block evaluates to true, the second
* containing the rest.
*
- * (1..6).partition {|i| (i&1).zero?} #=> [[2, 4, 6], [1, 3, 5]]
+ * If no block is given, an enumerator is returned instead.
+ *
+ * (1..6).partition {|v| v.even? } #=> [[2, 4, 6], [1, 3, 5]]
*
*/
@@ -583,12 +655,15 @@ group_by_i(VALUE i, VALUE hash, int argc, VALUE *argv)
/*
* call-seq:
- * enum.group_by {| obj | block } => a_hash
+ * enum.group_by {| obj | block } -> a_hash
+ * enum.group_by -> an_enumerator
*
* Returns a hash, which keys are evaluated result from the
* block, and values are arrays of elements in <i>enum</i>
* corresponding to the key.
*
+ * If no block is given, an enumerator is returned instead.
+ *
* (1..6).group_by {|i| i%3} #=> {0=>[3, 6], 1=>[1, 4], 2=>[2, 5]}
*
*/
@@ -602,66 +677,79 @@ enum_group_by(VALUE obj)
hash = rb_hash_new();
rb_block_call(obj, id_each, 0, 0, group_by_i, hash);
+ OBJ_INFECT(hash, obj);
return hash;
}
static VALUE
-first_i(VALUE i, VALUE *ary, int argc, VALUE *argv)
+first_i(VALUE i, VALUE *params, int argc, VALUE *argv)
{
ENUM_WANT_SVALUE();
- if (NIL_P(ary[0])) {
- ary[1] = i;
+ if (NIL_P(params[1])) {
+ params[1] = i;
rb_iter_break();
}
else {
- long n = NUM2LONG(ary[0]);
+ long n = params[0];
+ rb_ary_push(params[1], i);
+ n--;
if (n <= 0) {
rb_iter_break();
}
- rb_ary_push(ary[1], i);
- n--;
- ary[0] = INT2NUM(n);
+ params[0] = n;
}
return Qnil;
}
/*
* call-seq:
- * enum.first -> obj or nil
- * enum.first(n) -> an_array
+ * enum.first -> obj or nil
+ * enum.first(n) -> an_array
*
* Returns the first element, or the first +n+ elements, of the enumerable.
* If the enumerable is empty, the first form returns <code>nil</code>, and the
* second form returns an empty array.
*
+ * %w[foo bar baz].first #=> "foo"
+ * %w[foo bar baz].first(2) #=> ["foo", "bar"]
+ * %w[foo bar baz].first(10) #=> ["foo", "bar", "baz"]
+ * [].first #=> nil
+ *
*/
static VALUE
enum_first(int argc, VALUE *argv, VALUE obj)
{
- VALUE n, ary[2];
+ VALUE n, params[2];
if (argc == 0) {
- ary[0] = ary[1] = Qnil;
+ params[0] = params[1] = Qnil;
}
else {
+ long len;
+
rb_scan_args(argc, argv, "01", &n);
- ary[0] = n;
- ary[1] = rb_ary_new2(NUM2LONG(n));
+ len = NUM2LONG(n);
+ if (len == 0) return rb_ary_new2(0);
+ if (len < 0) {
+ rb_raise(rb_eArgError, "negative length");
+ }
+ params[0] = len;
+ params[1] = rb_ary_new2(len);
}
- rb_block_call(obj, id_each, 0, 0, first_i, (VALUE)ary);
+ rb_block_call(obj, id_each, 0, 0, first_i, (VALUE)params);
- return ary[1];
+ return params[1];
}
/*
* call-seq:
- * enum.sort => array
- * enum.sort {| a, b | block } => array
+ * enum.sort -> array
+ * enum.sort {| a, b | block } -> array
*
* Returns an array containing the items in <i>enum</i> sorted,
* either according to their own <code><=></code> method, or by using
@@ -669,7 +757,7 @@ enum_first(int argc, VALUE *argv, VALUE obj)
* +1 depending on the comparison between <i>a</i> and <i>b</i>. As of
* Ruby 1.8, the method <code>Enumerable#sort_by</code> implements a
* built-in Schwartzian Transform, useful when key computation or
- * comparison is expensive..
+ * comparison is expensive.
*
* %w(rhea kea flea).sort #=> ["flea", "kea", "rhea"]
* (1..10).sort {|a,b| b <=> a} #=> [10, 9, 8, 7, 6, 5, 4, 3, 2, 1]
@@ -681,42 +769,68 @@ enum_sort(VALUE obj)
return rb_ary_sort(enum_to_a(0, 0, obj));
}
+#define SORT_BY_BUFSIZE 16
+struct sort_by_data {
+ VALUE ary;
+ VALUE buf;
+ int n;
+};
+
static VALUE
-sort_by_i(VALUE i, VALUE ary, int argc, VALUE *argv)
+sort_by_i(VALUE i, VALUE _data, int argc, VALUE *argv)
{
- NODE *memo;
+ struct sort_by_data *data = (struct sort_by_data *)_data;
+ VALUE ary = data->ary;
+ VALUE v;
ENUM_WANT_SVALUE();
+ v = rb_yield(i);
+
if (RBASIC(ary)->klass) {
rb_raise(rb_eRuntimeError, "sort_by reentered");
}
- /* use NODE_DOT2 as memo(v, v, -) */
- memo = rb_node_newnode(NODE_DOT2, rb_yield(i), i, 0);
- rb_ary_push(ary, (VALUE)memo);
+ if (RARRAY_LEN(data->buf) != SORT_BY_BUFSIZE*2) {
+ rb_raise(rb_eRuntimeError, "sort_by reentered");
+ }
+
+ RARRAY_PTR(data->buf)[data->n*2] = v;
+ RARRAY_PTR(data->buf)[data->n*2+1] = i;
+ data->n++;
+ if (data->n == SORT_BY_BUFSIZE) {
+ rb_ary_concat(ary, data->buf);
+ data->n = 0;
+ }
return Qnil;
}
static int
sort_by_cmp(const void *ap, const void *bp, void *data)
{
- VALUE a = (*(NODE *const *)ap)->u1.value;
- VALUE b = (*(NODE *const *)bp)->u1.value;
+ VALUE a;
+ VALUE b;
VALUE ary = (VALUE)data;
if (RBASIC(ary)->klass) {
rb_raise(rb_eRuntimeError, "sort_by reentered");
}
+
+ a = *(VALUE *)ap;
+ b = *(VALUE *)bp;
+
return rb_cmpint(rb_funcall(a, id_cmp, 1, b), a, b);
}
/*
* call-seq:
- * enum.sort_by {| obj | block } => array
+ * enum.sort_by {| obj | block } -> array
+ * enum.sort_by -> an_enumerator
*
* Sorts <i>enum</i> using a set of keys generated by mapping the
* values in <i>enum</i> through the given block.
*
+ * If no block is given, an enumerator is returned instead.
+ *
* %w{ apple pear fig }.sort_by {|word| word.length}
* #=> ["fig", "pear", "apple"]
*
@@ -726,11 +840,10 @@ sort_by_cmp(const void *ap, const void *bp, void *data)
* the keysets are simple
*
* require 'benchmark'
- * include Benchmark
*
* a = (1..100000).map {rand(100000)}
*
- * bm(10) do |b|
+ * Benchmark.bm(10) do |b|
* b.report("Sort") { a.sort }
* b.report("Sort by") { a.sort_by {|a| a} }
* end
@@ -784,32 +897,48 @@ enum_sort_by(VALUE obj)
{
VALUE ary;
long i;
+ struct sort_by_data data;
RETURN_ENUMERATOR(obj, 0, 0);
- if (TYPE(obj) == T_ARRAY) {
- ary = rb_ary_new2(RARRAY_LEN(obj));
+ if (TYPE(obj) == T_ARRAY && RARRAY_LEN(obj) <= LONG_MAX/2) {
+ ary = rb_ary_new2(RARRAY_LEN(obj)*2);
}
else {
ary = rb_ary_new();
}
RBASIC(ary)->klass = 0;
- rb_block_call(obj, id_each, 0, 0, sort_by_i, ary);
- if (RARRAY_LEN(ary) > 1) {
- ruby_qsort(RARRAY_PTR(ary), RARRAY_LEN(ary), sizeof(VALUE),
+ data.ary = ary;
+ data.buf = rb_ary_tmp_new(SORT_BY_BUFSIZE*2);
+ data.n = 0;
+ rb_ary_store(data.buf, SORT_BY_BUFSIZE*2-1, Qnil);
+ rb_block_call(obj, id_each, 0, 0, sort_by_i, (VALUE)&data);
+ if (data.n) {
+ rb_ary_resize(data.buf, data.n*2);
+ rb_ary_concat(ary, data.buf);
+ }
+ if (RARRAY_LEN(ary) > 2) {
+ ruby_qsort(RARRAY_PTR(ary), RARRAY_LEN(ary)/2, 2*sizeof(VALUE),
sort_by_cmp, (void *)ary);
}
if (RBASIC(ary)->klass) {
rb_raise(rb_eRuntimeError, "sort_by reentered");
}
- for (i=0; i<RARRAY_LEN(ary); i++) {
- RARRAY_PTR(ary)[i] = RNODE(RARRAY_PTR(ary)[i])->u2.value;
+ for (i=1; i<RARRAY_LEN(ary); i+=2) {
+ RARRAY_PTR(ary)[i/2] = RARRAY_PTR(ary)[i];
}
+ rb_ary_resize(ary, RARRAY_LEN(ary)/2);
RBASIC(ary)->klass = rb_cArray;
+ OBJ_INFECT(ary, obj);
+
return ary;
}
+#define ENUMFUNC(name) rb_block_given_p() ? name##_iter_i : name##_i
+
#define DEFINE_ENUMFUNCS(name) \
+static VALUE enum_##name##_func(VALUE result, VALUE *memo); \
+\
static VALUE \
name##_i(VALUE i, VALUE *memo, int argc, VALUE *argv) \
{ \
@@ -820,10 +949,12 @@ static VALUE \
name##_iter_i(VALUE i, VALUE *memo, int argc, VALUE *argv) \
{ \
return enum_##name##_func(enum_yield(argc, argv), memo); \
-}
+} \
+\
+static VALUE \
+enum_##name##_func(VALUE result, VALUE *memo)
-static VALUE
-enum_all_func(VALUE result, VALUE *memo)
+DEFINE_ENUMFUNCS(all)
{
if (!RTEST(result)) {
*memo = Qfalse;
@@ -832,11 +963,9 @@ enum_all_func(VALUE result, VALUE *memo)
return Qnil;
}
-DEFINE_ENUMFUNCS(all)
-
/*
* call-seq:
- * enum.all? [{|obj| block } ] => true or false
+ * enum.all? [{|obj| block } ] -> true or false
*
* Passes each element of the collection to the given block. The method
* returns <code>true</code> if the block never returns
@@ -856,12 +985,11 @@ enum_all(VALUE obj)
{
VALUE result = Qtrue;
- rb_block_call(obj, id_each, 0, 0, rb_block_given_p() ? all_iter_i : all_i, (VALUE)&result);
+ rb_block_call(obj, id_each, 0, 0, ENUMFUNC(all), (VALUE)&result);
return result;
}
-static VALUE
-enum_any_func(VALUE result, VALUE *memo)
+DEFINE_ENUMFUNCS(any)
{
if (RTEST(result)) {
*memo = Qtrue;
@@ -870,11 +998,9 @@ enum_any_func(VALUE result, VALUE *memo)
return Qnil;
}
-DEFINE_ENUMFUNCS(any)
-
/*
* call-seq:
- * enum.any? [{|obj| block } ] => true or false
+ * enum.any? [{|obj| block } ] -> true or false
*
* Passes each element of the collection to the given block. The method
* returns <code>true</code> if the block ever returns a value other
@@ -895,12 +1021,11 @@ enum_any(VALUE obj)
{
VALUE result = Qfalse;
- rb_block_call(obj, id_each, 0, 0, rb_block_given_p() ? any_iter_i : any_i, (VALUE)&result);
+ rb_block_call(obj, id_each, 0, 0, ENUMFUNC(any), (VALUE)&result);
return result;
}
-static VALUE
-enum_one_func(VALUE result, VALUE *memo)
+DEFINE_ENUMFUNCS(one)
{
if (RTEST(result)) {
if (*memo == Qundef) {
@@ -914,11 +1039,9 @@ enum_one_func(VALUE result, VALUE *memo)
return Qnil;
}
-DEFINE_ENUMFUNCS(one)
-
/*
* call-seq:
- * enum.one? [{|obj| block }] => true or false
+ * enum.one? [{|obj| block }] -> true or false
*
* Passes each element of the collection to the given block. The method
* returns <code>true</code> if the block returns <code>true</code>
@@ -939,13 +1062,12 @@ enum_one(VALUE obj)
{
VALUE result = Qundef;
- rb_block_call(obj, id_each, 0, 0, rb_block_given_p() ? one_iter_i : one_i, (VALUE)&result);
+ rb_block_call(obj, id_each, 0, 0, ENUMFUNC(one), (VALUE)&result);
if (result == Qundef) return Qfalse;
return result;
}
-static VALUE
-enum_none_func(VALUE result, VALUE *memo)
+DEFINE_ENUMFUNCS(none)
{
if (RTEST(result)) {
*memo = Qfalse;
@@ -954,11 +1076,9 @@ enum_none_func(VALUE result, VALUE *memo)
return Qnil;
}
-DEFINE_ENUMFUNCS(none)
-
/*
* call-seq:
- * enum.none? [{|obj| block }] => true or false
+ * enum.none? [{|obj| block }] -> true or false
*
* Passes each element of the collection to the given block. The method
* returns <code>true</code> if the block never returns <code>true</code>
@@ -976,7 +1096,7 @@ enum_none(VALUE obj)
{
VALUE result = Qtrue;
- rb_block_call(obj, id_each, 0, 0, rb_block_given_p() ? none_iter_i : none_i, (VALUE)&result);
+ rb_block_call(obj, id_each, 0, 0, ENUMFUNC(none), (VALUE)&result);
return result;
}
@@ -1010,10 +1130,7 @@ min_ii(VALUE i, VALUE *memo, int argc, VALUE *argv)
*memo = i;
}
else {
- VALUE ary = memo[1];
- RARRAY_PTR(ary)[0] = i;
- RARRAY_PTR(ary)[1] = *memo;
- cmp = rb_yield(ary);
+ cmp = rb_yield_values(2, i, *memo);
if (rb_cmpint(cmp, i, *memo) < 0) {
*memo = i;
}
@@ -1024,8 +1141,8 @@ min_ii(VALUE i, VALUE *memo, int argc, VALUE *argv)
/*
* call-seq:
- * enum.min => obj
- * enum.min {| a,b | block } => obj
+ * enum.min -> obj
+ * enum.min {| a,b | block } -> obj
*
* Returns the object in <i>enum</i> with the minimum value. The
* first form assumes all objects implement <code>Comparable</code>;
@@ -1039,18 +1156,16 @@ min_ii(VALUE i, VALUE *memo, int argc, VALUE *argv)
static VALUE
enum_min(VALUE obj)
{
- VALUE result[2];
+ VALUE result = Qundef;
- result[0] = Qundef;
if (rb_block_given_p()) {
- result[1] = rb_ary_new3(2, Qnil, Qnil);
- rb_block_call(obj, id_each, 0, 0, min_ii, (VALUE)result);
+ rb_block_call(obj, id_each, 0, 0, min_ii, (VALUE)&result);
}
else {
- rb_block_call(obj, id_each, 0, 0, min_i, (VALUE)result);
+ rb_block_call(obj, id_each, 0, 0, min_i, (VALUE)&result);
}
- if (result[0] == Qundef) return Qnil;
- return result[0];
+ if (result == Qundef) return Qnil;
+ return result;
}
static VALUE
@@ -1083,10 +1198,7 @@ max_ii(VALUE i, VALUE *memo, int argc, VALUE *argv)
*memo = i;
}
else {
- VALUE ary = memo[1];
- RARRAY_PTR(ary)[0] = i;
- RARRAY_PTR(ary)[1] = *memo;
- cmp = rb_yield(ary);
+ cmp = rb_yield_values(2, i, *memo);
if (rb_cmpint(cmp, i, *memo) > 0) {
*memo = i;
}
@@ -1096,8 +1208,8 @@ max_ii(VALUE i, VALUE *memo, int argc, VALUE *argv)
/*
* call-seq:
- * enum.max => obj
- * enum.max {|a,b| block } => obj
+ * enum.max -> obj
+ * enum.max {|a,b| block } -> obj
*
* Returns the object in _enum_ with the maximum value. The
* first form assumes all objects implement <code>Comparable</code>;
@@ -1111,78 +1223,132 @@ max_ii(VALUE i, VALUE *memo, int argc, VALUE *argv)
static VALUE
enum_max(VALUE obj)
{
- VALUE result[2];
+ VALUE result = Qundef;
- result[0] = Qundef;
if (rb_block_given_p()) {
- result[1] = rb_ary_new3(2, Qnil, Qnil);
- rb_block_call(obj, id_each, 0, 0, max_ii, (VALUE)result);
+ rb_block_call(obj, id_each, 0, 0, max_ii, (VALUE)&result);
}
else {
- rb_block_call(obj, id_each, 0, 0, max_i, (VALUE)result);
+ rb_block_call(obj, id_each, 0, 0, max_i, (VALUE)&result);
}
- if (result[0] == Qundef) return Qnil;
- return result[0];
+ if (result == Qundef) return Qnil;
+ return result;
}
-static VALUE
-minmax_i(VALUE i, VALUE *memo, int argc, VALUE *argv)
+struct minmax_t {
+ VALUE min;
+ VALUE max;
+ VALUE last;
+};
+
+static void
+minmax_i_update(VALUE i, VALUE j, struct minmax_t *memo)
{
int n;
- ENUM_WANT_SVALUE();
-
- if (memo[0] == Qundef) {
- memo[0] = i;
- memo[1] = i;
+ if (memo->min == Qundef) {
+ memo->min = i;
+ memo->max = j;
}
else {
- n = rb_cmpint(rb_funcall(i, id_cmp, 1, memo[0]), i, memo[0]);
+ n = rb_cmpint(rb_funcall(i, id_cmp, 1, memo->min), i, memo->min);
if (n < 0) {
- memo[0] = i;
+ memo->min = i;
}
- n = rb_cmpint(rb_funcall(i, id_cmp, 1, memo[1]), i, memo[1]);
+ n = rb_cmpint(rb_funcall(j, id_cmp, 1, memo->max), j, memo->max);
if (n > 0) {
- memo[1] = i;
+ memo->max = j;
}
}
- return Qnil;
}
static VALUE
-minmax_ii(VALUE i, VALUE *memo, int argc, VALUE *argv)
+minmax_i(VALUE i, VALUE _memo, int argc, VALUE *argv)
{
+ struct minmax_t *memo = (struct minmax_t *)_memo;
int n;
+ VALUE j;
ENUM_WANT_SVALUE();
- if (memo[0] == Qundef) {
- memo[0] = i;
- memo[1] = i;
+ if (memo->last == Qundef) {
+ memo->last = i;
+ return Qnil;
}
- else {
- VALUE ary = memo[2];
+ j = memo->last;
+ memo->last = Qundef;
- RARRAY_PTR(ary)[0] = i;
- RARRAY_PTR(ary)[1] = memo[0];
- n = rb_cmpint(rb_yield(ary), i, memo[0]);
+ n = rb_cmpint(rb_funcall(j, id_cmp, 1, i), j, i);
+ if (n == 0)
+ i = j;
+ else if (n < 0) {
+ VALUE tmp;
+ tmp = i;
+ i = j;
+ j = tmp;
+ }
+
+ minmax_i_update(i, j, memo);
+
+ return Qnil;
+}
+
+static void
+minmax_ii_update(VALUE i, VALUE j, struct minmax_t *memo)
+{
+ int n;
+
+ if (memo->min == Qundef) {
+ memo->min = i;
+ memo->max = j;
+ }
+ else {
+ n = rb_cmpint(rb_yield_values(2, i, memo->min), i, memo->min);
if (n < 0) {
- memo[0] = i;
+ memo->min = i;
}
- RARRAY_PTR(ary)[0] = i;
- RARRAY_PTR(ary)[1] = memo[1];
- n = rb_cmpint(rb_yield(ary), i, memo[1]);
+ n = rb_cmpint(rb_yield_values(2, j, memo->max), j, memo->max);
if (n > 0) {
- memo[1] = i;
+ memo->max = j;
}
}
+}
+
+static VALUE
+minmax_ii(VALUE i, VALUE _memo, int argc, VALUE *argv)
+{
+ struct minmax_t *memo = (struct minmax_t *)_memo;
+ int n;
+ VALUE j;
+
+ ENUM_WANT_SVALUE();
+
+ if (memo->last == Qundef) {
+ memo->last = i;
+ return Qnil;
+ }
+ j = memo->last;
+ memo->last = Qundef;
+
+ n = rb_cmpint(rb_yield_values(2, j, i), j, i);
+ if (n == 0)
+ i = j;
+ else if (n < 0) {
+ VALUE tmp;
+ tmp = i;
+ i = j;
+ j = tmp;
+ }
+
+ minmax_ii_update(i, j, memo);
+
return Qnil;
}
/*
* call-seq:
- * enum.minmax => [min,max]
- * enum.minmax {|a,b| block } => [min,max]
+ * enum.minmax -> [min,max]
+ * enum.minmax {|a,b| block } -> [min,max]
*
* Returns two elements array which contains the minimum and the
* maximum value in the enumerable. The first form assumes all
@@ -1197,20 +1363,24 @@ minmax_ii(VALUE i, VALUE *memo, int argc, VALUE *argv)
static VALUE
enum_minmax(VALUE obj)
{
- VALUE result[3];
+ struct minmax_t memo;
VALUE ary = rb_ary_new3(2, Qnil, Qnil);
- result[0] = Qundef;
+ memo.min = Qundef;
+ memo.last = Qundef;
if (rb_block_given_p()) {
- result[2] = ary;
- rb_block_call(obj, id_each, 0, 0, minmax_ii, (VALUE)result);
+ rb_block_call(obj, id_each, 0, 0, minmax_ii, (VALUE)&memo);
+ if (memo.last != Qundef)
+ minmax_ii_update(memo.last, memo.last, &memo);
}
else {
- rb_block_call(obj, id_each, 0, 0, minmax_i, (VALUE)result);
+ rb_block_call(obj, id_each, 0, 0, minmax_i, (VALUE)&memo);
+ if (memo.last != Qundef)
+ minmax_i_update(memo.last, memo.last, &memo);
}
- if (result[0] != Qundef) {
- RARRAY_PTR(ary)[0] = result[0];
- RARRAY_PTR(ary)[1] = result[1];
+ if (memo.min != Qundef) {
+ rb_ary_store(ary, 0, memo.min);
+ rb_ary_store(ary, 1, memo.max);
}
return ary;
}
@@ -1236,11 +1406,14 @@ min_by_i(VALUE i, VALUE *memo, int argc, VALUE *argv)
/*
* call-seq:
- * enum.min_by {| obj| block } => obj
+ * enum.min_by {|obj| block } -> obj
+ * enum.min_by -> an_enumerator
*
* Returns the object in <i>enum</i> that gives the minimum
* value from the given block.
*
+ * If no block is given, an enumerator is returned instead.
+ *
* a = %w(albatross dog horse)
* a.min_by {|x| x.length } #=> "dog"
*/
@@ -1279,11 +1452,14 @@ max_by_i(VALUE i, VALUE *memo, int argc, VALUE *argv)
/*
* call-seq:
- * enum.max_by {| obj| block } => obj
+ * enum.max_by {|obj| block } -> obj
+ * enum.max_by -> an_enumerator
*
* Returns the object in <i>enum</i> that gives the maximum
* value from the given block.
*
+ * If no block is given, an enumerator is returned instead.
+ *
* a = %w(albatross dog horse)
* a.max_by {|x| x.length } #=> "albatross"
*/
@@ -1301,41 +1477,87 @@ enum_max_by(VALUE obj)
return memo[1];
}
+struct minmax_by_t {
+ VALUE min_bv;
+ VALUE max_bv;
+ VALUE min;
+ VALUE max;
+ VALUE last_bv;
+ VALUE last;
+};
+
+static void
+minmax_by_i_update(VALUE v1, VALUE v2, VALUE i1, VALUE i2, struct minmax_by_t *memo)
+{
+ if (memo->min_bv == Qundef) {
+ memo->min_bv = v1;
+ memo->max_bv = v2;
+ memo->min = i1;
+ memo->max = i2;
+ }
+ else {
+ if (rb_cmpint(rb_funcall(v1, id_cmp, 1, memo->min_bv), v1, memo->min_bv) < 0) {
+ memo->min_bv = v1;
+ memo->min = i1;
+ }
+ if (rb_cmpint(rb_funcall(v2, id_cmp, 1, memo->max_bv), v2, memo->max_bv) > 0) {
+ memo->max_bv = v2;
+ memo->max = i2;
+ }
+ }
+}
+
static VALUE
-minmax_by_i(VALUE i, VALUE *memo, int argc, VALUE *argv)
+minmax_by_i(VALUE i, VALUE _memo, int argc, VALUE *argv)
{
- VALUE v;
+ struct minmax_by_t *memo = (struct minmax_by_t *)_memo;
+ VALUE vi, vj, j;
+ int n;
ENUM_WANT_SVALUE();
- v = rb_yield(i);
- if (memo[0] == Qundef) {
- memo[0] = v;
- memo[1] = v;
- memo[2] = i;
- memo[3] = i;
+ vi = rb_yield(i);
+
+ if (memo->last_bv == Qundef) {
+ memo->last_bv = vi;
+ memo->last = i;
+ return Qnil;
}
- else {
- if (rb_cmpint(rb_funcall(v, id_cmp, 1, memo[0]), v, memo[0]) < 0) {
- memo[0] = v;
- memo[2] = i;
- }
- if (rb_cmpint(rb_funcall(v, id_cmp, 1, memo[1]), v, memo[1]) > 0) {
- memo[1] = v;
- memo[3] = i;
- }
+ vj = memo->last_bv;
+ j = memo->last;
+ memo->last_bv = Qundef;
+
+ n = rb_cmpint(rb_funcall(vj, id_cmp, 1, vi), vj, vi);
+ if (n == 0) {
+ i = j;
+ vi = vj;
}
+ else if (n < 0) {
+ VALUE tmp;
+ tmp = i;
+ i = j;
+ j = tmp;
+ tmp = vi;
+ vi = vj;
+ vj = tmp;
+ }
+
+ minmax_by_i_update(vi, vj, i, j, memo);
+
return Qnil;
}
/*
* call-seq:
- * enum.minmax_by {| obj| block } => [min, max]
+ * enum.minmax_by {|obj| block } -> [min, max]
+ * enum.minmax_by -> an_enumerator
*
* Returns two elements array array containing the objects in
* <i>enum</i> that gives the minimum and maximum values respectively
* from the given block.
*
+ * If no block is given, an enumerator is returned instead.
+ *
* a = %w(albatross dog horse)
* a.minmax_by {|x| x.length } #=> ["dog", "albatross"]
*/
@@ -1343,16 +1565,20 @@ minmax_by_i(VALUE i, VALUE *memo, int argc, VALUE *argv)
static VALUE
enum_minmax_by(VALUE obj)
{
- VALUE memo[4];
+ struct minmax_by_t memo;
RETURN_ENUMERATOR(obj, 0, 0);
- memo[0] = Qundef;
- memo[1] = Qundef;
- memo[2] = Qnil;
- memo[3] = Qnil;
- rb_block_call(obj, id_each, 0, 0, minmax_by_i, (VALUE)memo);
- return rb_assoc_new(memo[2], memo[3]);
+ memo.min_bv = Qundef;
+ memo.max_bv = Qundef;
+ memo.min = Qnil;
+ memo.max = Qnil;
+ memo.last_bv = Qundef;
+ memo.last = Qundef;
+ rb_block_call(obj, id_each, 0, 0, minmax_by_i, (VALUE)&memo);
+ if (memo.last_bv != Qundef)
+ minmax_by_i_update(memo.last_bv, memo.last_bv, memo.last, memo.last, &memo);
+ return rb_assoc_new(memo.min, memo.max);
}
static VALUE
@@ -1367,8 +1593,8 @@ member_i(VALUE iter, VALUE *memo, int argc, VALUE *argv)
/*
* call-seq:
- * enum.include?(obj) => true or false
- * enum.member?(obj) => true or false
+ * enum.include?(obj) -> true or false
+ * enum.member?(obj) -> true or false
*
* Returns <code>true</code> if any member of <i>enum</i> equals
* <i>obj</i>. Equality is tested using <code>==</code>.
@@ -1399,12 +1625,15 @@ each_with_index_i(VALUE i, VALUE memo, int argc, VALUE *argv)
/*
* call-seq:
- * enum.each_with_index {|obj, i| block } -> enum
+ * enum.each_with_index(*args) {|obj, i| block } -> enum
+ * enum.each_with_index(*args) -> an_enumerator
*
* Calls <em>block</em> with two arguments, the item and its index,
* for each item in <i>enum</i>. Given arguments are passed through
* to #each().
*
+ * If no block is given, an enumerator is returned instead.
+ *
* hash = Hash.new
* %w(cat dog wombat).each_with_index {|item, index|
* hash[item] = index
@@ -1428,9 +1657,20 @@ enum_each_with_index(int argc, VALUE *argv, VALUE obj)
/*
* call-seq:
- * enum.reverse_each {|item| block }
+ * enum.reverse_each(*args) {|item| block } -> enum
+ * enum.reverse_each(*args) -> an_enumerator
+ *
+ * Builds a temporary array and traverses that array in reverse order.
+ *
+ * If no block is given, an enumerator is returned instead.
+ *
+ * (1..3).reverse_each {|v| p v }
+ *
+ * produces:
*
- * Traverses <i>enum</i> in reverse order.
+ * 3
+ * 2
+ * 1
*/
static VALUE
@@ -1452,6 +1692,192 @@ enum_reverse_each(int argc, VALUE *argv, VALUE obj)
static VALUE
+each_val_i(VALUE i, VALUE p, int argc, VALUE *argv)
+{
+ ENUM_WANT_SVALUE();
+ rb_yield(i);
+ return Qnil;
+}
+
+/*
+ * call-seq:
+ * enum.each_entry {|obj| block} -> enum
+ * enum.each_entry -> an_enumerator
+ *
+ * Calls <i>block</i> once for each element in +self+, passing that
+ * element as a parameter, converting multiple values from yield to an
+ * array.
+ *
+ * If no block is given, an enumerator is returned instead.
+ *
+ * class Foo
+ * include Enumerable
+ * def each
+ * yield 1
+ * yield 1,2
+ * yield
+ * end
+ * end
+ * Foo.new.each_entry{|o| p o }
+ *
+ * produces:
+ *
+ * 1
+ * [1, 2]
+ * nil
+ *
+ */
+
+static VALUE
+enum_each_entry(int argc, VALUE *argv, VALUE obj)
+{
+ RETURN_ENUMERATOR(obj, argc, argv);
+ rb_block_call(obj, id_each, argc, argv, each_val_i, 0);
+ return obj;
+}
+
+static VALUE
+each_slice_i(VALUE i, VALUE *memo, int argc, VALUE *argv)
+{
+ VALUE ary = memo[0];
+ VALUE v = Qnil;
+ long size = (long)memo[1];
+ ENUM_WANT_SVALUE();
+
+ rb_ary_push(ary, i);
+
+ if (RARRAY_LEN(ary) == size) {
+ v = rb_yield(ary);
+ memo[0] = rb_ary_new2(size);
+ }
+
+ return v;
+}
+
+/*
+ * call-seq:
+ * enum.each_slice(n) {...} -> nil
+ * enum.each_slice(n) -> an_enumerator
+ *
+ * Iterates the given block for each slice of <n> elements. If no
+ * block is given, returns an enumerator.
+ *
+ * e.g.:
+ * (1..10).each_slice(3) {|a| p a}
+ * # outputs below
+ * [1, 2, 3]
+ * [4, 5, 6]
+ * [7, 8, 9]
+ * [10]
+ *
+ */
+static VALUE
+enum_each_slice(VALUE obj, VALUE n)
+{
+ long size = NUM2LONG(n);
+ VALUE args[2], ary;
+
+ if (size <= 0) rb_raise(rb_eArgError, "invalid slice size");
+ RETURN_ENUMERATOR(obj, 1, &n);
+ args[0] = rb_ary_new2(size);
+ args[1] = (VALUE)size;
+
+ rb_block_call(obj, id_each, 0, 0, each_slice_i, (VALUE)args);
+
+ ary = args[0];
+ if (RARRAY_LEN(ary) > 0) rb_yield(ary);
+
+ return Qnil;
+}
+
+static VALUE
+each_cons_i(VALUE i, VALUE *memo, int argc, VALUE *argv)
+{
+ VALUE ary = memo[0];
+ VALUE v = Qnil;
+ long size = (long)memo[1];
+ ENUM_WANT_SVALUE();
+
+ if (RARRAY_LEN(ary) == size) {
+ rb_ary_shift(ary);
+ }
+ rb_ary_push(ary, i);
+ if (RARRAY_LEN(ary) == size) {
+ v = rb_yield(rb_ary_dup(ary));
+ }
+ return v;
+}
+
+/*
+ * call-seq:
+ * enum.each_cons(n) {...} -> nil
+ * enum.each_cons(n) -> an_enumerator
+ *
+ * Iterates the given block for each array of consecutive <n>
+ * elements. If no block is given, returns an enumerator.
+ *
+ * e.g.:
+ * (1..10).each_cons(3) {|a| p a}
+ * # outputs below
+ * [1, 2, 3]
+ * [2, 3, 4]
+ * [3, 4, 5]
+ * [4, 5, 6]
+ * [5, 6, 7]
+ * [6, 7, 8]
+ * [7, 8, 9]
+ * [8, 9, 10]
+ *
+ */
+static VALUE
+enum_each_cons(VALUE obj, VALUE n)
+{
+ long size = NUM2LONG(n);
+ VALUE args[2];
+
+ if (size <= 0) rb_raise(rb_eArgError, "invalid size");
+ RETURN_ENUMERATOR(obj, 1, &n);
+ args[0] = rb_ary_new2(size);
+ args[1] = (VALUE)size;
+
+ rb_block_call(obj, id_each, 0, 0, each_cons_i, (VALUE)args);
+
+ return Qnil;
+}
+
+static VALUE
+each_with_object_i(VALUE i, VALUE memo, int argc, VALUE *argv)
+{
+ ENUM_WANT_SVALUE();
+ return rb_yield_values(2, i, memo);
+}
+
+/*
+ * call-seq:
+ * enum.each_with_object(obj) {|(*args), memo_obj| ... } -> obj
+ * enum.each_with_object(obj) -> an_enumerator
+ *
+ * Iterates the given block for each element with an arbitrary
+ * object given, and returns the initially given object.
+ *
+ * If no block is given, returns an enumerator.
+ *
+ * e.g.:
+ * evens = (1..10).each_with_object([]) {|i, a| a << i*2 }
+ * #=> [2, 4, 6, 8, 10, 12, 14, 16, 18, 20]
+ *
+ */
+static VALUE
+enum_each_with_object(VALUE obj, VALUE memo)
+{
+ RETURN_ENUMERATOR(obj, 1, &memo);
+
+ rb_block_call(obj, id_each, 0, 0, each_with_object_i, memo);
+
+ return memo;
+}
+
+static VALUE
zip_ary(VALUE val, NODE *memo, int argc, VALUE *argv)
{
volatile VALUE result = memo->u1.value;
@@ -1530,14 +1956,14 @@ zip_i(VALUE val, NODE *memo, int argc, VALUE *argv)
/*
* call-seq:
- * enum.zip(arg, ...) => enumerator
- * enum.zip(arg, ...) {|arr| block } => nil
+ * enum.zip(arg, ...) -> an_array_of_array
+ * enum.zip(arg, ...) {|arr| block } -> nil
*
* Takes one element from <i>enum</i> and merges corresponding
* elements from each <i>args</i>. This generates a sequence of
* <em>n</em>-element arrays, where <em>n</em> is one more than the
* count of arguments. The length of the resulting sequence will be
- * <code>enum#size</code. If the size of any argument is less than
+ * <code>enum#size</code>. If the size of any argument is less than
* <code>enum#size</code>, <code>nil</code> values are supplied. If
* a block is given, it is invoked for each output array, otherwise
* an array of arrays is returned.
@@ -1559,13 +1985,13 @@ enum_zip(int argc, VALUE *argv, VALUE obj)
NODE *memo;
VALUE result = Qnil;
VALUE args = rb_ary_new4(argc, argv);
- int allary = Qtrue;
+ int allary = TRUE;
argv = RARRAY_PTR(args);
for (i=0; i<argc; i++) {
VALUE ary = rb_check_array_type(argv[i]);
if (NIL_P(ary)) {
- allary = Qfalse;
+ allary = FALSE;
break;
}
argv[i] = ary;
@@ -1596,12 +2022,12 @@ take_i(VALUE i, VALUE *arg, int argc, VALUE *argv)
/*
* call-seq:
- * enum.take(n) => array
+ * enum.take(n) -> array
*
* Returns first n elements from <i>enum</i>.
*
* a = [1, 2, 3, 4, 5, 0]
- * a.take(3) # => [1, 2, 3]
+ * a.take(3) #=> [1, 2, 3]
*
*/
@@ -1633,13 +2059,16 @@ take_while_i(VALUE i, VALUE *ary, int argc, VALUE *argv)
/*
* call-seq:
- * enum.take_while {|arr| block } => array
+ * enum.take_while {|arr| block } -> array
+ * enum.take_while -> an_enumerator
*
- * Passes elements to the block until the block returns nil or false,
+ * Passes elements to the block until the block returns +nil+ or +false+,
* then stops iterating and returns an array of all prior elements.
*
+ * If no block is given, an enumerator is returned instead.
+ *
* a = [1, 2, 3, 4, 5, 0]
- * a.take_while {|i| i < 3 } # => [1, 2]
+ * a.take_while {|i| i < 3 } #=> [1, 2]
*
*/
@@ -1668,13 +2097,13 @@ drop_i(VALUE i, VALUE *arg, int argc, VALUE *argv)
/*
* call-seq:
- * enum.drop(n) => array
+ * enum.drop(n) -> array
*
* Drops first n elements from <i>enum</i>, and returns rest elements
* in an array.
*
* a = [1, 2, 3, 4, 5, 0]
- * a.drop(3) # => [4, 5, 0]
+ * a.drop(3) #=> [4, 5, 0]
*
*/
@@ -1711,14 +2140,17 @@ drop_while_i(VALUE i, VALUE *args, int argc, VALUE *argv)
/*
* call-seq:
- * enum.drop_while {|arr| block } => array
+ * enum.drop_while {|arr| block } -> array
+ * enum.drop_while -> an_enumerator
*
* Drops elements up to, but not including, the first element for
- * which the block returns nil or false and returns an array
+ * which the block returns +nil+ or +false+ and returns an array
* containing the remaining elements.
*
+ * If no block is given, an enumerator is returned instead.
+ *
* a = [1, 2, 3, 4, 5, 0]
- * a.drop_while {|i| i < 3 } # => [3, 4, 5, 0]
+ * a.drop_while {|i| i < 3 } #=> [3, 4, 5, 0]
*
*/
@@ -1746,17 +2178,19 @@ cycle_i(VALUE i, VALUE ary, int argc, VALUE *argv)
/*
* call-seq:
- * enum.cycle {|obj| block }
- * enum.cycle(n) {|obj| block }
+ * enum.cycle(n=nil) {|obj| block } -> nil
+ * enum.cycle(n=nil) -> an_enumerator
*
* Calls <i>block</i> for each element of <i>enum</i> repeatedly _n_
- * times or forever if none or nil is given. If a non-positive
+ * times or forever if none or +nil+ is given. If a non-positive
* number is given or the collection is empty, does nothing. Returns
- * nil if the loop has finished without getting interrupted.
+ * +nil+ if the loop has finished without getting interrupted.
*
* Enumerable#cycle saves elements in an internal array so changes
* to <i>enum</i> after the first pass have no effect.
*
+ * If no block is given, an enumerator is returned instead.
+ *
* a = ["a", "b", "c"]
* a.cycle {|x| puts x } # print, a, b, c, a, b, c,.. forever.
* a.cycle(2) {|x| puts x } # print, a, b, c, a, b, c.
@@ -1790,7 +2224,423 @@ enum_cycle(int argc, VALUE *argv, VALUE obj)
rb_yield(RARRAY_PTR(ary)[i]);
}
}
- return Qnil; /* not reached */
+ return Qnil;
+}
+
+struct chunk_arg {
+ VALUE categorize;
+ VALUE state;
+ VALUE prev_value;
+ VALUE prev_elts;
+ VALUE yielder;
+};
+
+static VALUE
+chunk_ii(VALUE i, VALUE _argp, int argc, VALUE *argv)
+{
+ struct chunk_arg *argp = (struct chunk_arg *)_argp;
+ VALUE v;
+ VALUE alone = ID2SYM(rb_intern("_alone"));
+ VALUE separator = ID2SYM(rb_intern("_separator"));
+
+ ENUM_WANT_SVALUE();
+
+ if (NIL_P(argp->state))
+ v = rb_funcall(argp->categorize, rb_intern("call"), 1, i);
+ else
+ v = rb_funcall(argp->categorize, rb_intern("call"), 2, i, argp->state);
+
+ if (v == alone) {
+ if (!NIL_P(argp->prev_value)) {
+ rb_funcall(argp->yielder, rb_intern("<<"), 1, rb_assoc_new(argp->prev_value, argp->prev_elts));
+ argp->prev_value = argp->prev_elts = Qnil;
+ }
+ rb_funcall(argp->yielder, rb_intern("<<"), 1, rb_assoc_new(v, rb_ary_new3(1, i)));
+ }
+ else if (NIL_P(v) || v == separator) {
+ if (!NIL_P(argp->prev_value)) {
+ rb_funcall(argp->yielder, rb_intern("<<"), 1, rb_assoc_new(argp->prev_value, argp->prev_elts));
+ argp->prev_value = argp->prev_elts = Qnil;
+ }
+ }
+ else if (SYMBOL_P(v) && rb_id2name(SYM2ID(v))[0] == '_') {
+ rb_raise(rb_eRuntimeError, "symbol begins with an underscore is reserved");
+ }
+ else {
+ if (NIL_P(argp->prev_value)) {
+ argp->prev_value = v;
+ argp->prev_elts = rb_ary_new3(1, i);
+ }
+ else {
+ if (rb_equal(argp->prev_value, v)) {
+ rb_ary_push(argp->prev_elts, i);
+ }
+ else {
+ rb_funcall(argp->yielder, rb_intern("<<"), 1, rb_assoc_new(argp->prev_value, argp->prev_elts));
+ argp->prev_value = v;
+ argp->prev_elts = rb_ary_new3(1, i);
+ }
+ }
+ }
+ return Qnil;
+}
+
+static VALUE
+chunk_i(VALUE yielder, VALUE enumerator, int argc, VALUE *argv)
+{
+ VALUE enumerable;
+ struct chunk_arg arg;
+
+ enumerable = rb_ivar_get(enumerator, rb_intern("chunk_enumerable"));
+ arg.categorize = rb_ivar_get(enumerator, rb_intern("chunk_categorize"));
+ arg.state = rb_ivar_get(enumerator, rb_intern("chunk_initial_state"));
+ arg.prev_value = Qnil;
+ arg.prev_elts = Qnil;
+ arg.yielder = yielder;
+
+ if (!NIL_P(arg.state))
+ arg.state = rb_obj_dup(arg.state);
+
+ rb_block_call(enumerable, id_each, 0, 0, chunk_ii, (VALUE)&arg);
+ if (!NIL_P(arg.prev_elts))
+ rb_funcall(arg.yielder, rb_intern("<<"), 1, rb_assoc_new(arg.prev_value, arg.prev_elts));
+ return Qnil;
+}
+
+/*
+ * call-seq:
+ * enum.chunk {|elt| ... } -> an_enumerator
+ * enum.chunk(initial_state) {|elt, state| ... } -> an_enumerator
+ *
+ * Creates an enumerator for each chunked elements.
+ * The consecutive elements which have same block value are chunked.
+ *
+ * The result enumerator yields the block value and an array of chunked elements.
+ * So "each" method can be called as follows.
+ *
+ * enum.chunk {|elt| key }.each {|key, ary| ... }
+ * enum.chunk(initial_state) {|elt, state| key }.each {|key, ary| ... }
+ *
+ * For example, consecutive even numbers and odd numbers can be
+ * splitted as follows.
+ *
+ * [3,1,4,1,5,9,2,6,5,3,5].chunk {|n|
+ * n.even?
+ * }.each {|even, ary|
+ * p [even, ary]
+ * }
+ * #=> [false, [3, 1]]
+ * # [true, [4]]
+ * # [false, [1, 5, 9]]
+ * # [true, [2, 6]]
+ * # [false, [5, 3, 5]]
+ *
+ * This method is especially useful for sorted series of elements.
+ * The following example counts words for each initial letter.
+ *
+ * open("/usr/share/dict/words", "r:iso-8859-1") {|f|
+ * f.chunk {|line| line.ord }.each {|ch, lines| p [ch.chr, lines.length] }
+ * }
+ * #=> ["\n", 1]
+ * # ["A", 1327]
+ * # ["B", 1372]
+ * # ["C", 1507]
+ * # ["D", 791]
+ * # ...
+ *
+ * The following key values has special meaning:
+ * - nil and :_separator specifies that the elements are dropped.
+ * - :_alone specifies that the element should be chunked as a singleton.
+ * Other symbols which begins an underscore are reserved.
+ *
+ * nil and :_separator can be used to ignore some elements.
+ * For example, the sequence of hyphens in svn log can be eliminated as follows.
+ *
+ * sep = "-"*72 + "\n"
+ * IO.popen("svn log README") {|f|
+ * f.chunk {|line|
+ * line != sep || nil
+ * }.each {|_, lines|
+ * pp lines
+ * }
+ * }
+ * #=> ["r20018 | knu | 2008-10-29 13:20:42 +0900 (Wed, 29 Oct 2008) | 2 lines\n",
+ * # "\n",
+ * # "* README, README.ja: Update the portability section.\n",
+ * # "\n"]
+ * # ["r16725 | knu | 2008-05-31 23:34:23 +0900 (Sat, 31 May 2008) | 2 lines\n",
+ * # "\n",
+ * # "* README, README.ja: Add a note about default C flags.\n",
+ * # "\n"]
+ * # ...
+ *
+ * paragraphs separated by empty lines can be parsed as follows.
+ *
+ * File.foreach("README").chunk {|line|
+ * /\A\s*\z/ !~ line || nil
+ * }.each {|_, lines|
+ * pp lines
+ * }
+ *
+ * :_alone can be used to pass through bunch of elements.
+ * For example, sort consecutive lines formed as Foo#bar and
+ * pass other lines, chunk can be used as follows.
+ *
+ * pat = /\A[A-Z][A-Za-z0-9_]+\#/
+ * open(filename) {|f|
+ * f.chunk {|line| pat =~ line ? $& : :_alone }.each {|key, lines|
+ * if key != :_alone
+ * print lines.sort.join('')
+ * else
+ * print lines.join('')
+ * end
+ * }
+ * }
+ *
+ * If the block needs to maintain state over multiple elements,
+ * _initial_state_ argument can be used.
+ * If non-nil value is given,
+ * it is duplicated for each "each" method invocation of the enumerator.
+ * The duplicated object is passed to 2nd argument of the block for "chunk" method.
+ *
+ */
+static VALUE
+enum_chunk(int argc, VALUE *argv, VALUE enumerable)
+{
+ VALUE initial_state;
+ VALUE enumerator;
+
+ if(!rb_block_given_p())
+ rb_raise(rb_eArgError, "no block given");
+ rb_scan_args(argc, argv, "01", &initial_state);
+
+ enumerator = rb_obj_alloc(rb_cEnumerator);
+ rb_ivar_set(enumerator, rb_intern("chunk_enumerable"), enumerable);
+ rb_ivar_set(enumerator, rb_intern("chunk_categorize"), rb_block_proc());
+ rb_ivar_set(enumerator, rb_intern("chunk_initial_state"), initial_state);
+ rb_block_call(enumerator, rb_intern("initialize"), 0, 0, chunk_i, enumerator);
+ return enumerator;
+}
+
+
+struct slicebefore_arg {
+ VALUE sep_pred;
+ VALUE sep_pat;
+ VALUE state;
+ VALUE prev_elts;
+ VALUE yielder;
+};
+
+static VALUE
+slicebefore_ii(VALUE i, VALUE _argp, int argc, VALUE *argv)
+{
+ struct slicebefore_arg *argp = (struct slicebefore_arg *)_argp;
+ VALUE header_p;
+
+ ENUM_WANT_SVALUE();
+
+ if (!NIL_P(argp->sep_pat))
+ header_p = rb_funcall(argp->sep_pat, id_eqq, 1, i);
+ else if (NIL_P(argp->state))
+ header_p = rb_funcall(argp->sep_pred, rb_intern("call"), 1, i);
+ else
+ header_p = rb_funcall(argp->sep_pred, rb_intern("call"), 2, i, argp->state);
+ if (RTEST(header_p)) {
+ if (!NIL_P(argp->prev_elts))
+ rb_funcall(argp->yielder, rb_intern("<<"), 1, argp->prev_elts);
+ argp->prev_elts = rb_ary_new3(1, i);
+ }
+ else {
+ if (NIL_P(argp->prev_elts))
+ argp->prev_elts = rb_ary_new3(1, i);
+ else
+ rb_ary_push(argp->prev_elts, i);
+ }
+
+ return Qnil;
+}
+
+static VALUE
+slicebefore_i(VALUE yielder, VALUE enumerator, int argc, VALUE *argv)
+{
+ VALUE enumerable;
+ struct slicebefore_arg arg;
+
+ enumerable = rb_ivar_get(enumerator, rb_intern("slicebefore_enumerable"));
+ arg.sep_pred = rb_attr_get(enumerator, rb_intern("slicebefore_sep_pred"));
+ arg.sep_pat = NIL_P(arg.sep_pred) ? rb_ivar_get(enumerator, rb_intern("slicebefore_sep_pat")) : Qnil;
+ arg.state = rb_ivar_get(enumerator, rb_intern("slicebefore_initial_state"));
+ arg.prev_elts = Qnil;
+ arg.yielder = yielder;
+
+ if (!NIL_P(arg.state))
+ arg.state = rb_obj_dup(arg.state);
+
+ rb_block_call(enumerable, id_each, 0, 0, slicebefore_ii, (VALUE)&arg);
+ if (!NIL_P(arg.prev_elts))
+ rb_funcall(arg.yielder, rb_intern("<<"), 1, arg.prev_elts);
+ return Qnil;
+}
+
+/*
+ * call-seq:
+ * enum.slice_before(pattern) -> an_enumerator
+ * enum.slice_before {|elt| bool } -> an_enumerator
+ * enum.slice_before(initial_state) {|elt, state| bool } -> an_enumerator
+ *
+ * Creates an enumerator for each chunked elements.
+ * The beginnings of chunks are defined by _pattern_ and the block.
+ * If _pattern_ === _elt_ returns true or
+ * the block returns true for the element,
+ * the element is beginning of a chunk.
+ *
+ * The === and block is called from the first element to the last element
+ * of _enum_.
+ * The result for the first element is ignored.
+ *
+ * The result enumerator yields the chunked elements as an array for +each+
+ * method.
+ * +each+ method can be called as follows.
+ *
+ * enum.slice_before(pattern).each {|ary| ... }
+ * enum.slice_before {|elt| bool }.each {|ary| ... }
+ * enum.slice_before(initial_state) {|elt, state| bool }.each {|ary| ... }
+ *
+ * Other methods of Enumerator class and Enumerable module,
+ * such as map, etc., are also usable.
+ *
+ * For example, iteration over ChangeLog entries can be implemented as
+ * follows.
+ *
+ * # iterate over ChangeLog entries.
+ * open("ChangeLog") {|f|
+ * f.slice_before(/\A\S/).each {|e| pp e}
+ * }
+ *
+ * # same as above. block is used instead of pattern argument.
+ * open("ChangeLog") {|f|
+ * f.slice_before {|line| /\A\S/ === line }.each {|e| pp e}
+ * }
+ *
+ * "svn proplist -R" produces multiline output for each file.
+ * They can be chunked as follows:
+ *
+ * IO.popen([{"LC_ALL"=>"C"}, "svn", "proplist", "-R"]) {|f|
+ * f.lines.slice_before(/\AProp/).each {|lines| p lines }
+ * }
+ * #=> ["Properties on '.':\n", " svn:ignore\n", " svk:merge\n"]
+ * # ["Properties on 'goruby.c':\n", " svn:eol-style\n"]
+ * # ["Properties on 'complex.c':\n", " svn:mime-type\n", " svn:eol-style\n"]
+ * # ["Properties on 'regparse.c':\n", " svn:eol-style\n"]
+ * # ...
+ *
+ * If the block needs to maintain state over multiple elements,
+ * local variables can be used.
+ * For example, three or more consecutive increasing numbers can be squashed
+ * as follows:
+ *
+ * a = [0,2,3,4,6,7,9]
+ * prev = a[0]
+ * p a.slice_before {|e|
+ * prev, prev2 = e, prev
+ * prev2 + 1 != e
+ * }.map {|es|
+ * es.length <= 2 ? es.join(",") : "#{es.first}-#{es.last}"
+ * }.join(",")
+ * #=> "0,2-4,6,7,9"
+ *
+ * However local variables are not appropriate to maintain state
+ * if the result enumerator is used twice or more.
+ * In such case, the last state of the 1st +each+ is used in 2nd +each+.
+ * _initial_state_ argument can be used to avoid this problem.
+ * If non-nil value is given as _initial_state_,
+ * it is duplicated for each "each" method invocation of the enumerator.
+ * The duplicated object is passed to 2nd argument of the block for
+ * +slice_before+ method.
+ *
+ * # word wrapping.
+ * # this assumes all characters have same width.
+ * def wordwrap(words, maxwidth)
+ * # if cols is a local variable, 2nd "each" may start with non-zero cols.
+ * words.slice_before(cols: 0) {|w, h|
+ * h[:cols] += 1 if h[:cols] != 0
+ * h[:cols] += w.length
+ * if maxwidth < h[:cols]
+ * h[:cols] = w.length
+ * true
+ * else
+ * false
+ * end
+ * }
+ * end
+ * text = (1..20).to_a.join(" ")
+ * enum = wordwrap(text.split(/\s+/), 10)
+ * puts "-"*10
+ * enum.each {|ws| puts ws.join(" ") }
+ * puts "-"*10
+ * #=> ----------
+ * # 1 2 3 4 5
+ * # 6 7 8 9 10
+ * # 11 12 13
+ * # 14 15 16
+ * # 17 18 19
+ * # 20
+ * # ----------
+ *
+ * mbox contains series of mails which start with Unix From line.
+ * So each mail can be extracted by slice before Unix From line.
+ *
+ * # parse mbox
+ * open("mbox") {|f|
+ * f.slice_before {|line|
+ * line.start_with? "From "
+ * }.each {|mail|
+ * unix_from = mail.shift
+ * i = mail.index("\n")
+ * header = mail[0...i]
+ * body = mail[(i+1)..-1]
+ * body.pop if body.last == "\n"
+ * fields = header.slice_before {|line| !" \t".include?(line[0]) }.to_a
+ * p unix_from
+ * pp fields
+ * pp body
+ * }
+ * }
+ *
+ * # split mails in mbox (slice before Unix From line after an empty line)
+ * open("mbox") {|f|
+ * f.slice_before(emp: true) {|line,h|
+ * prevemp = h[:emp]
+ * h[:emp] = line == "\n"
+ * prevemp && line.start_with?("From ")
+ * }.each {|mail|
+ * mail.pop if mail.last == "\n"
+ * pp mail
+ * }
+ * }
+ *
+ */
+static VALUE
+enum_slice_before(int argc, VALUE *argv, VALUE enumerable)
+{
+ VALUE enumerator;
+
+ if (rb_block_given_p()) {
+ VALUE initial_state;
+ rb_scan_args(argc, argv, "01", &initial_state);
+ enumerator = rb_obj_alloc(rb_cEnumerator);
+ rb_ivar_set(enumerator, rb_intern("slicebefore_sep_pred"), rb_block_proc());
+ rb_ivar_set(enumerator, rb_intern("slicebefore_initial_state"), initial_state);
+ }
+ else {
+ VALUE sep_pat;
+ rb_scan_args(argc, argv, "1", &sep_pat);
+ enumerator = rb_obj_alloc(rb_cEnumerator);
+ rb_ivar_set(enumerator, rb_intern("slicebefore_sep_pat"), sep_pat);
+ }
+ rb_ivar_set(enumerator, rb_intern("slicebefore_enumerable"), enumerable);
+ rb_block_call(enumerator, rb_intern("initialize"), 0, 0, slicebefore_i, enumerator);
+ return enumerator;
}
/*
@@ -1827,6 +2677,8 @@ Init_Enumerable(void)
rb_define_method(rb_mEnumerable, "reject", enum_reject, 0);
rb_define_method(rb_mEnumerable, "collect", enum_collect, 0);
rb_define_method(rb_mEnumerable, "map", enum_collect, 0);
+ rb_define_method(rb_mEnumerable, "flat_map", enum_flat_map, 0);
+ rb_define_method(rb_mEnumerable, "collect_concat", enum_flat_map, 0);
rb_define_method(rb_mEnumerable, "inject", enum_inject, -1);
rb_define_method(rb_mEnumerable, "reduce", enum_inject, -1);
rb_define_method(rb_mEnumerable, "partition", enum_partition, 0);
@@ -1846,17 +2698,18 @@ Init_Enumerable(void)
rb_define_method(rb_mEnumerable, "include?", enum_member, 1);
rb_define_method(rb_mEnumerable, "each_with_index", enum_each_with_index, -1);
rb_define_method(rb_mEnumerable, "reverse_each", enum_reverse_each, -1);
+ rb_define_method(rb_mEnumerable, "each_entry", enum_each_entry, -1);
+ rb_define_method(rb_mEnumerable, "each_slice", enum_each_slice, 1);
+ rb_define_method(rb_mEnumerable, "each_cons", enum_each_cons, 1);
+ rb_define_method(rb_mEnumerable, "each_with_object", enum_each_with_object, 1);
rb_define_method(rb_mEnumerable, "zip", enum_zip, -1);
rb_define_method(rb_mEnumerable, "take", enum_take, 1);
rb_define_method(rb_mEnumerable, "take_while", enum_take_while, 0);
rb_define_method(rb_mEnumerable, "drop", enum_drop, 1);
rb_define_method(rb_mEnumerable, "drop_while", enum_drop_while, 0);
rb_define_method(rb_mEnumerable, "cycle", enum_cycle, -1);
+ rb_define_method(rb_mEnumerable, "chunk", enum_chunk, -1);
+ rb_define_method(rb_mEnumerable, "slice_before", enum_slice_before, -1);
- id_eqq = rb_intern("===");
- id_each = rb_intern("each");
- id_cmp = rb_intern("<=>");
id_next = rb_intern("next");
- id_size = rb_intern("size");
}
-
diff --git a/enumerator.c b/enumerator.c
index b7bd85706f..09ef298396 100644
--- a/enumerator.c
+++ b/enumerator.c
@@ -17,8 +17,83 @@
/*
* Document-class: Enumerator
*
- * A class which provides a method `each' to be used as an Enumerable
- * object.
+ * A class which allows both internal and external iteration.
+ *
+ * An Enumerator can be created by the following methods.
+ * - Kernel#to_enum
+ * - Kernel#enum_for
+ * - Enumerator.new
+ *
+ * Most methods have two forms: a block form where the contents
+ * are evaluated for each item in the enumeration, and a non-block form
+ * which returns a new Enumerator wrapping the iteration.
+ *
+ * enumerator = %w(one two three).each
+ * puts enumerator.class # => Enumerator
+ * enumerator.each_with_object("foo") do |item,obj|
+ * puts "#{obj}: #{item}"
+ * end
+ * # foo: one
+ * # foo: two
+ * # foo: three
+ * enum_with_obj = enumerator.each_with_object("foo")
+ * puts enum_with_obj.class # => Enumerator
+ * enum_with_obj.each do |item,obj|
+ * puts "#{obj: #{item}"
+ * end
+ * # foo: one
+ * # foo: two
+ * # foo: three
+ *
+ * This allows you to chain Enumerators together. For example, you
+ * can map a list's elements to strings containing the index
+ * and the element as a string via:
+ *
+ * puts %w[foo bar baz].map.with_index {|w,i| "#{i}:#{w}" }
+ * # => ["0:foo", "1:bar", "2:baz"]
+ *
+ * An Enumerator can also be used as an external iterator.
+ * For example, Enumerator#next returns the next value of the iterator
+ * or raises StopIteration if the Enumerator is at the end.
+ *
+ * e = [1,2,3].each # returns an enumerator object.
+ * puts e.next # => 1
+ * puts e.next # => 2
+ * puts e.next # => 3
+ * puts e.next # raises StopIteration
+ *
+ * You can use this to implement an internal iterator as follows:
+ *
+ * def ext_each(e)
+ * while true
+ * begin
+ * vs = e.next_values
+ * rescue StopIteration
+ * return $!.result
+ * end
+ * y = yield(*vs)
+ * e.feed y
+ * end
+ * end
+ *
+ * o = Object.new
+ *
+ * def o.each
+ * puts yield
+ * puts yield(1)
+ * puts yield(1, 2)
+ * 3
+ * end
+ *
+ * # use o.each as an internal iterator directly.
+ * puts o.each {|*x| puts x; [:b, *x] }
+ * # => [], [:b], [1], [:b, 1], [1, 2], [:b, 1, 2], 3
+ *
+ * # convert o.each to an external iterator for
+ * # implementing an internal iterator.
+ * puts ext_each(o.to_enum) {|*x| puts x; [:b, *x] }
+ * # => [], [:b], [1], [:b, 1], [1, 2], [:b, 1, 2], 3
+ *
*/
VALUE rb_cEnumerator;
static ID id_rewind, id_each;
@@ -32,7 +107,9 @@ struct enumerator {
VALUE args;
VALUE fib;
VALUE dst;
- VALUE no_next;
+ VALUE lookahead;
+ VALUE feedvalue;
+ VALUE stop_exc;
};
static VALUE rb_cGenerator, rb_cYielder;
@@ -59,19 +136,34 @@ enumerator_mark(void *p)
rb_gc_mark(ptr->args);
rb_gc_mark(ptr->fib);
rb_gc_mark(ptr->dst);
+ rb_gc_mark(ptr->lookahead);
+ rb_gc_mark(ptr->feedvalue);
+ rb_gc_mark(ptr->stop_exc);
+}
+
+#define enumerator_free RUBY_TYPED_DEFAULT_FREE
+
+static size_t
+enumerator_memsize(const void *p)
+{
+ return p ? sizeof(struct enumerator) : 0;
}
+static const rb_data_type_t enumerator_data_type = {
+ "enumerator",
+ {
+ enumerator_mark,
+ enumerator_free,
+ enumerator_memsize,
+ },
+};
+
static struct enumerator *
enumerator_ptr(VALUE obj)
{
struct enumerator *ptr;
- Data_Get_Struct(obj, struct enumerator, ptr);
- if (RDATA(obj)->dmark != enumerator_mark) {
- rb_raise(rb_eTypeError,
- "wrong argument type %s (expected %s)",
- rb_obj_classname(obj), rb_class2name(rb_cEnumerator));
- }
+ TypedData_Get_Struct(obj, struct enumerator, &enumerator_data_type, ptr);
if (!ptr || ptr->obj == Qundef) {
rb_raise(rb_eArgError, "uninitialized enumerator");
}
@@ -79,22 +171,31 @@ enumerator_ptr(VALUE obj)
}
/*
- * call-seq:
- * obj.to_enum(method = :each, *args)
- * obj.enum_for(method = :each, *args)
+ * call-seq:
+ * obj.to_enum(method = :each, *args)
+ * obj.enum_for(method = :each, *args)
+ *
+ * Creates a new Enumerator which will enumerate by on calling +method+ on
+ * +obj+.
*
- * Returns Enumerator.new(self, method, *args).
+ * +method+:: the method to call on +obj+ to generate the enumeration
+ * +args+:: arguments that will be passed in +method+ <i>in addition</i>
+ * to the item itself. Note that the number of args
+ * must not exceed the number expected by +method+
*
- * e.g.:
+ * === Example
*
- * str = "xyz"
+ * str = "xyz"
*
- * enum = str.enum_for(:each_byte)
- * a = enum.map {|b| '%02x' % b } #=> ["78", "79", "7a"]
+ * enum = str.enum_for(:each_byte)
+ * enum.each { |b| puts b }
+ * # => 120
+ * # => 121
+ * # => 122
*
- * # protects an array from being modified
- * a = [1, 2, 3]
- * some_method(a.to_enum)
+ * # protect an array from being modified by some_method
+ * a = [1, 2, 3]
+ * some_method(a.to_enum)
*
*/
static VALUE
@@ -110,167 +211,23 @@ obj_to_enum(int argc, VALUE *argv, VALUE obj)
}
static VALUE
-each_slice_i(VALUE val, VALUE *memo)
-{
- VALUE ary = memo[0];
- VALUE v = Qnil;
- long size = (long)memo[1];
-
- rb_ary_push(ary, val);
-
- if (RARRAY_LEN(ary) == size) {
- v = rb_yield(ary);
- memo[0] = rb_ary_new2(size);
- }
-
- return v;
-}
-
-/*
- * call-seq:
- * e.each_slice(n) {...}
- * e.each_slice(n)
- *
- * Iterates the given block for each slice of <n> elements. If no
- * block is given, returns an enumerator.
- *
- * e.g.:
- * (1..10).each_slice(3) {|a| p a}
- * # outputs below
- * [1, 2, 3]
- * [4, 5, 6]
- * [7, 8, 9]
- * [10]
- *
- */
-static VALUE
-enum_each_slice(VALUE obj, VALUE n)
-{
- long size = NUM2LONG(n);
- VALUE args[2], ary;
-
- if (size <= 0) rb_raise(rb_eArgError, "invalid slice size");
- RETURN_ENUMERATOR(obj, 1, &n);
- args[0] = rb_ary_new2(size);
- args[1] = (VALUE)size;
-
- rb_block_call(obj, id_each, 0, 0, each_slice_i, (VALUE)args);
-
- ary = args[0];
- if (RARRAY_LEN(ary) > 0) rb_yield(ary);
-
- return Qnil;
-}
-
-static VALUE
-each_cons_i(VALUE val, VALUE *memo)
-{
- VALUE ary = memo[0];
- VALUE v = Qnil;
- long size = (long)memo[1];
-
- if (RARRAY_LEN(ary) == size) {
- rb_ary_shift(ary);
- }
- rb_ary_push(ary, val);
- if (RARRAY_LEN(ary) == size) {
- v = rb_yield(rb_ary_dup(ary));
- }
- return v;
-}
-
-/*
- * call-seq:
- * each_cons(n) {...}
- * each_cons(n)
- *
- * Iterates the given block for each array of consecutive <n>
- * elements. If no block is given, returns an enumerator.
- *
- * e.g.:
- * (1..10).each_cons(3) {|a| p a}
- * # outputs below
- * [1, 2, 3]
- * [2, 3, 4]
- * [3, 4, 5]
- * [4, 5, 6]
- * [5, 6, 7]
- * [6, 7, 8]
- * [7, 8, 9]
- * [8, 9, 10]
- *
- */
-static VALUE
-enum_each_cons(VALUE obj, VALUE n)
-{
- long size = NUM2LONG(n);
- VALUE args[2];
-
- if (size <= 0) rb_raise(rb_eArgError, "invalid size");
- RETURN_ENUMERATOR(obj, 1, &n);
- args[0] = rb_ary_new2(size);
- args[1] = (VALUE)size;
-
- rb_block_call(obj, id_each, 0, 0, each_cons_i, (VALUE)args);
-
- return Qnil;
-}
-
-static VALUE
-each_with_object_i(VALUE val, VALUE memo)
-{
- return rb_yield_values(2, val, memo);
-}
-
-/*
- * call-seq:
- * each_with_object(obj) {|(*args), memo_obj| ... }
- * each_with_object(obj)
- *
- * Iterates the given block for each element with an arbitrary
- * object given, and returns the initially given object.
- *
- * If no block is given, returns an enumerator.
- *
- * e.g.:
- * evens = (1..10).each_with_object([]) {|i, a| a << i*2 }
- * # => [2, 4, 6, 8, 10, 12, 14, 16, 18, 20]
- *
- */
-static VALUE
-enum_each_with_object(VALUE obj, VALUE memo)
-{
- RETURN_ENUMERATOR(obj, 1, &memo);
-
- rb_block_call(obj, id_each, 0, 0, each_with_object_i, memo);
-
- return memo;
-}
-
-static VALUE
enumerator_allocate(VALUE klass)
{
struct enumerator *ptr;
VALUE enum_obj;
- enum_obj = Data_Make_Struct(klass, struct enumerator, enumerator_mark, -1, ptr);
+ enum_obj = TypedData_Make_Struct(klass, struct enumerator, &enumerator_data_type, ptr);
ptr->obj = Qundef;
return enum_obj;
}
static VALUE
-enumerator_each_i(VALUE v, VALUE enum_obj, int argc, VALUE *argv)
-{
- return rb_yield_values2(argc, argv);
-}
-
-static VALUE
enumerator_init(VALUE enum_obj, VALUE obj, VALUE meth, int argc, VALUE *argv)
{
struct enumerator *ptr;
- Data_Get_Struct(enum_obj, struct enumerator, ptr);
+ TypedData_Get_Struct(enum_obj, struct enumerator, &enumerator_data_type, ptr);
if (!ptr) {
rb_raise(rb_eArgError, "unallocated enumerator");
@@ -281,42 +238,46 @@ enumerator_init(VALUE enum_obj, VALUE obj, VALUE meth, int argc, VALUE *argv)
if (argc) ptr->args = rb_ary_new4(argc, argv);
ptr->fib = 0;
ptr->dst = Qnil;
- ptr->no_next = Qfalse;
+ ptr->lookahead = Qundef;
+ ptr->feedvalue = Qundef;
+ ptr->stop_exc = Qfalse;
return enum_obj;
}
/*
- * call-seq:
- * Enumerator.new(obj, method = :each, *args)
- * Enumerator.new { |y| ... }
+ * call-seq:
+ * Enumerator.new { |yielder| ... }
+ * Enumerator.new(obj, method = :each, *args)
+ *
+ * Creates a new Enumerator object, which can be used as an
+ * Enumerable.
+ *
+ * In the first form, iteration is defined by the given block, in
+ * which a "yielder" object, given as block parameter, can be used to
+ * yield a value by calling the +yield+ method (aliased as +<<+):
*
- * Creates a new Enumerator object, which is to be used as an
- * Enumerable object iterating in a given way.
+ * fib = Enumerator.new do |y|
+ * a = b = 1
+ * loop do
+ * y << a
+ * a, b = b, a + b
+ * end
+ * end
*
- * In the first form, a generated Enumerator iterates over the given
- * object using the given method with the given arguments passed.
- * Use of this form is discouraged. Use Kernel#enum_for(), alias
- * to_enum, instead.
+ * p fib.take(10) # => [1, 1, 2, 3, 5, 8, 13, 21, 34, 55]
*
- * e = Enumerator.new(ObjectSpace, :each_object)
- * #-> ObjectSpace.enum_for(:each_object)
+ * In the second, deprecated, form, a generated Enumerator iterates over the
+ * given object using the given method with the given arguments passed.
*
- * e.select { |obj| obj.is_a?(Class) } #=> array of all classes
+ * Use of this form is discouraged. Use Kernel#enum_for or Kernel#to_enum
+ * instead.
*
- * In the second form, iteration is defined by the given block, in
- * which a "yielder" object given as block parameter can be used to
- * yield a value by calling the +yield+ method, alias +<<+.
+ * e = Enumerator.new(ObjectSpace, :each_object)
+ * #-> ObjectSpace.enum_for(:each_object)
*
- * fib = Enumerator.new { |y|
- * a = b = 1
- * loop {
- * y << a
- * a, b = b, a + b
- * }
- * }
+ * e.select { |obj| obj.is_a?(Class) } #=> array of all classes
*
- * p fib.take(10) #=> [1, 1, 2, 3, 5, 8, 13, 21, 34, 55]
*/
static VALUE
enumerator_initialize(int argc, VALUE *argv, VALUE obj)
@@ -328,7 +289,8 @@ enumerator_initialize(int argc, VALUE *argv, VALUE obj)
rb_raise(rb_eArgError, "wrong number of argument (0 for 1+)");
recv = generator_init(generator_allocate(rb_cGenerator), rb_block_proc());
- } else {
+ }
+ else {
recv = *argv++;
if (--argc) {
meth = *argv++;
@@ -351,7 +313,7 @@ enumerator_init_copy(VALUE obj, VALUE orig)
rb_raise(rb_eTypeError, "can't copy execution context");
}
- Data_Get_Struct(obj, struct enumerator, ptr1);
+ TypedData_Get_Struct(obj, struct enumerator, &enumerator_data_type, ptr1);
if (!ptr1) {
rb_raise(rb_eArgError, "unallocated enumerator");
@@ -361,6 +323,8 @@ enumerator_init_copy(VALUE obj, VALUE orig)
ptr1->meth = ptr0->meth;
ptr1->args = ptr0->args;
ptr1->fib = 0;
+ ptr1->lookahead = Qundef;
+ ptr1->feedvalue = Qundef;
return obj;
}
@@ -371,35 +335,41 @@ rb_enumeratorize(VALUE obj, VALUE meth, int argc, VALUE *argv)
return enumerator_init(enumerator_allocate(rb_cEnumerator), obj, meth, argc, argv);
}
-/*
- * call-seq:
- * enum.each {...}
- *
- * Iterates the given block using the object and the method specified
- * in the first place. If no block is given, returns self.
- *
- */
static VALUE
-enumerator_each(VALUE obj)
+enumerator_block_call(VALUE obj, rb_block_call_func *func, VALUE arg)
{
- struct enumerator *e;
int argc = 0;
VALUE *argv = 0;
+ const struct enumerator *e = enumerator_ptr(obj);
+ ID meth = e->meth;
- if (!rb_block_given_p()) return obj;
- e = enumerator_ptr(obj);
if (e->args) {
- argc = RARRAY_LEN(e->args);
+ argc = RARRAY_LENINT(e->args);
argv = RARRAY_PTR(e->args);
}
- return rb_block_call(e->obj, e->meth, argc, argv,
- enumerator_each_i, (VALUE)e);
+ return rb_block_call(e->obj, meth, argc, argv, func, arg);
+}
+
+/*
+ * call-seq:
+ * enum.each {...}
+ *
+ * Iterates over the block according to how this Enumerable was constructed.
+ * If no block is given, returns self.
+ *
+ */
+static VALUE
+enumerator_each(VALUE obj)
+{
+ if (!rb_block_given_p()) return obj;
+ return enumerator_block_call(obj, 0, obj);
}
static VALUE
-enumerator_with_index_i(VALUE val, VALUE *memo, int argc, VALUE *argv)
+enumerator_with_index_i(VALUE val, VALUE m, int argc, VALUE *argv)
{
VALUE idx;
+ VALUE *memo = (VALUE *)m;
idx = INT2FIX(*memo);
++*memo;
@@ -411,43 +381,36 @@ enumerator_with_index_i(VALUE val, VALUE *memo, int argc, VALUE *argv)
}
/*
- * call-seq:
- * e.with_index(offset = 0) {|(*args), idx| ... }
- * e.with_index(offset = 0)
+ * call-seq:
+ * e.with_index(offset = 0) {|(*args), idx| ... }
+ * e.with_index(offset = 0)
+ *
+ * Iterates the given block for each element with an index, which
+ * starts from +offset+. If no block is given, returns a new Enumerator
+ * that includes the index, starting from +offset+
*
- * Iterates the given block for each element with an index, which
- * starts from +offset+. If no block is given, returns an enumerator.
+ * +offset+:: the starting index to use
*
*/
static VALUE
enumerator_with_index(int argc, VALUE *argv, VALUE obj)
{
- struct enumerator *e;
VALUE memo;
rb_scan_args(argc, argv, "01", &memo);
RETURN_ENUMERATOR(obj, argc, argv);
memo = NIL_P(memo) ? 0 : (VALUE)NUM2LONG(memo);
- e = enumerator_ptr(obj);
- if (e->args) {
- argc = RARRAY_LEN(e->args);
- argv = RARRAY_PTR(e->args);
- }
- else {
- argc = 0;
- argv = NULL;
- }
- return rb_block_call(e->obj, e->meth, argc, argv,
- enumerator_with_index_i, (VALUE)&memo);
+ return enumerator_block_call(obj, enumerator_with_index_i, (VALUE)&memo);
}
/*
- * call-seq:
- * e.each_with_index {|(*args), idx| ... }
- * e.each_with_index
+ * call-seq:
+ * e.each_with_index {|(*args), idx| ... }
+ * e.each_with_index
+ *
+ * Same as Enumerator#with_index(0), i.e. there is no starting offset.
*
- * Same as Enumeartor#with_index, except each_with_index does not
- * receive an offset argument.
+ * If no block is given, a new Enumerator is returned that includes the index.
*
*/
static VALUE
@@ -466,31 +429,37 @@ enumerator_with_object_i(VALUE val, VALUE memo, int argc, VALUE *argv)
}
/*
- * call-seq:
- * e.with_object(obj) {|(*args), memo_obj| ... }
- * e.with_object(obj)
+ * call-seq:
+ * e.with_object(obj) {|(*args), obj| ... }
+ * e.with_object(obj)
+ *
+ * Iterates the given block for each element with an arbitrary object, +obj+,
+ * and returns +obj+
+ *
+ * If no block is given, returns a new Enumerator.
*
- * Iterates the given block for each element with an arbitrary
- * object given, and returns the initially given object.
+ * === Example
*
- * If no block is given, returns an enumerator.
+ * to_three = Enumerator.new do |y|
+ * 3.times do |x|
+ * y << x
+ * end
+ * end
*
+ * to_three_with_string = to_three.with_object("foo")
+ * to_three_with_string.each do |x,string|
+ * puts "#{string}: #{x}"
+ * end
+ *
+ * # => foo:0
+ * # => foo:1
+ * # => foo:2
*/
static VALUE
enumerator_with_object(VALUE obj, VALUE memo)
{
- struct enumerator *e;
- int argc = 0;
- VALUE *argv = 0;
-
RETURN_ENUMERATOR(obj, 1, &memo);
- e = enumerator_ptr(obj);
- if (e->args) {
- argc = RARRAY_LEN(e->args);
- argv = RARRAY_PTR(e->args);
- }
- rb_block_call(e->obj, e->meth, argc, argv,
- enumerator_with_object_i, memo);
+ enumerator_block_call(obj, enumerator_with_object_i, memo);
return memo;
}
@@ -498,8 +467,15 @@ enumerator_with_object(VALUE obj, VALUE memo)
static VALUE
next_ii(VALUE i, VALUE obj, int argc, VALUE *argv)
{
- rb_fiber_yield(argc, argv);
- return Qnil;
+ struct enumerator *e = enumerator_ptr(obj);
+ VALUE feedvalue = Qnil;
+ VALUE args = rb_ary_new4(argc, argv);
+ rb_fiber_yield(1, &args);
+ if (e->feedvalue != Qundef) {
+ feedvalue = e->feedvalue;
+ e->feedvalue = Qundef;
+ }
+ return feedvalue;
}
static VALUE
@@ -507,9 +483,11 @@ next_i(VALUE curr, VALUE obj)
{
struct enumerator *e = enumerator_ptr(obj);
VALUE nil = Qnil;
+ VALUE result;
- rb_block_call(obj, id_each, 0, 0, next_ii, obj);
- e->no_next = Qtrue;
+ result = rb_block_call(obj, id_each, 0, 0, next_ii, obj);
+ e->stop_exc = rb_exc_new2(rb_eStopIteration, "iteration reached an end");
+ rb_ivar_set(e->stop_exc, rb_intern("result"), result);
return rb_fiber_yield(1, &nil);
}
@@ -519,48 +497,265 @@ next_init(VALUE obj, struct enumerator *e)
VALUE curr = rb_fiber_current();
e->dst = curr;
e->fib = rb_fiber_new(next_i, obj);
+ e->lookahead = Qundef;
+}
+
+static VALUE
+get_next_values(VALUE obj, struct enumerator *e)
+{
+ VALUE curr, vs;
+
+ if (e->stop_exc)
+ rb_exc_raise(e->stop_exc);
+
+ curr = rb_fiber_current();
+
+ if (!e->fib || !rb_fiber_alive_p(e->fib)) {
+ next_init(obj, e);
+ }
+
+ vs = rb_fiber_resume(e->fib, 1, &curr);
+ if (e->stop_exc) {
+ e->fib = 0;
+ e->dst = Qnil;
+ e->lookahead = Qundef;
+ e->feedvalue = Qundef;
+ rb_exc_raise(e->stop_exc);
+ }
+ return vs;
}
/*
* call-seq:
- * e.next => object
+ * e.next_values -> array
+ *
+ * Returns the next object as an array in the enumerator, and move the
+ * internal position forward. When the position reached at the end,
+ * StopIteration is raised.
+ *
+ * This method can be used to distinguish <code>yield</code> and <code>yield
+ * nil</code>.
*
- * Returns the next object in the enumerator, and move the internal
- * position forward. When the position reached at the end, internal
- * position is rewound then StopIteration is raised.
+ * === Example
*
- * Note that enumeration sequence by next method does not affect other
- * non-external enumeration methods, unless underlying iteration
- * methods itself has side-effect, e.g. IO#each_line.
+ * o = Object.new
+ * def o.each
+ * yield
+ * yield 1
+ * yield 1, 2
+ * yield nil
+ * yield [1, 2]
+ * end
+ * e = o.to_enum
+ * p e.next_values
+ * p e.next_values
+ * p e.next_values
+ * p e.next_values
+ * p e.next_values
+ * e = o.to_enum
+ * p e.next
+ * p e.next
+ * p e.next
+ * p e.next
+ * p e.next
+ *
+ * ## yield args next_values next
+ * # yield [] nil
+ * # yield 1 [1] 1
+ * # yield 1, 2 [1, 2] [1, 2]
+ * # yield nil [nil] nil
+ * # yield [1, 2] [[1, 2]] [1, 2]
+ *
+ * Note that +next_values+ does not affect other non-external enumeration
+ * methods unless underlying iteration method itself has side-effect, e.g.
+ * IO#each_line.
+ *
+ */
+
+static VALUE
+enumerator_next_values(VALUE obj)
+{
+ struct enumerator *e = enumerator_ptr(obj);
+ VALUE vs;
+
+ if (e->lookahead != Qundef) {
+ vs = e->lookahead;
+ e->lookahead = Qundef;
+ return vs;
+ }
+
+ return get_next_values(obj, e);
+}
+
+static VALUE
+ary2sv(VALUE args, int dup)
+{
+ if (TYPE(args) != T_ARRAY)
+ return args;
+
+ switch (RARRAY_LEN(args)) {
+ case 0:
+ return Qnil;
+
+ case 1:
+ return RARRAY_PTR(args)[0];
+
+ default:
+ if (dup)
+ return rb_ary_dup(args);
+ return args;
+ }
+}
+
+/*
+ * call-seq:
+ * e.next -> object
+ *
+ * Returns the next object in the enumerator, and move the internal position
+ * forward. When the position reached at the end, StopIteration is raised.
+ *
+ * === Example
+ *
+ * a = [1,2,3]
+ * e = a.to_enum
+ * p e.next #=> 1
+ * p e.next #=> 2
+ * p e.next #=> 3
+ * p e.next #raises StopIteration
+ *
+ * Note that enumeration sequence by +next+ does not affect other non-external
+ * enumeration methods, unless the underlying iteration methods itself has
+ * side-effect, e.g. IO#each_line.
*
*/
static VALUE
enumerator_next(VALUE obj)
{
+ VALUE vs = enumerator_next_values(obj);
+ return ary2sv(vs, 0);
+}
+
+static VALUE
+enumerator_peek_values(VALUE obj)
+{
struct enumerator *e = enumerator_ptr(obj);
- VALUE curr, v;
- curr = rb_fiber_current();
- if (!e->fib || !rb_fiber_alive_p(e->fib)) {
- next_init(obj, e);
+ if (e->lookahead == Qundef) {
+ e->lookahead = get_next_values(obj, e);
}
+ return e->lookahead;
+}
- v = rb_fiber_resume(e->fib, 1, &curr);
- if (e->no_next) {
- e->fib = 0;
- e->dst = Qnil;
- e->no_next = Qfalse;
- rb_raise(rb_eStopIteration, "iteration reached at end");
+/*
+ * call-seq:
+ * e.peek_values -> array
+ *
+ * Returns the next object as an array, similar to Enumerator#next_values, but
+ * doesn't move the internal position forward. If the position is already at
+ * the end, StopIteration is raised.
+ *
+ * === Example
+ *
+ * o = Object.new
+ * def o.each
+ * yield
+ * yield 1
+ * yield 1, 2
+ * end
+ * e = o.to_enum
+ * p e.peek_values #=> []
+ * e.next
+ * p e.peek_values #=> [1]
+ * p e.peek_values #=> [1]
+ * e.next
+ * p e.peek_values #=> [1, 2]
+ * e.next
+ * p e.peek_values # raises StopIteration
+ *
+ */
+
+static VALUE
+enumerator_peek_values_m(VALUE obj)
+{
+ return rb_ary_dup(enumerator_peek_values(obj));
+}
+
+/*
+ * call-seq:
+ * e.peek -> object
+ *
+ * Returns the next object in the enumerator, but doesn't move the internal
+ * position forward. If the position is already at the end, StopIteration
+ * is raised.
+ *
+ * === Example
+ *
+ * a = [1,2,3]
+ * e = a.to_enum
+ * p e.next #=> 1
+ * p e.peek #=> 2
+ * p e.peek #=> 2
+ * p e.peek #=> 2
+ * p e.next #=> 2
+ * p e.next #=> 3
+ * p e.next #raises StopIteration
+ *
+ */
+
+static VALUE
+enumerator_peek(VALUE obj)
+{
+ VALUE vs = enumerator_peek_values(obj);
+ return ary2sv(vs, 1);
+}
+
+/*
+ * call-seq:
+ * e.feed obj -> nil
+ *
+ * Sets the value to be returned by the next yield inside +e+.
+ *
+ * If the value is not set, the yield returns nil.
+ *
+ * This value is cleared after being yielded.
+ *
+ * o = Object.new
+ * def o.each
+ * x = yield # (2) blocks
+ * p x # (5) => "foo"
+ * x = yield # (6) blocks
+ * p x # (8) => nil
+ * x = yield # (9) blocks
+ * p x # not reached w/o another e.next
+ * end
+ *
+ * e = o.to_enum
+ * e.next # (1)
+ * e.feed "foo" # (3)
+ * e.next # (4)
+ * e.next # (7)
+ * # (10)
+ */
+
+static VALUE
+enumerator_feed(VALUE obj, VALUE v)
+{
+ struct enumerator *e = enumerator_ptr(obj);
+
+ if (e->feedvalue != Qundef) {
+ rb_raise(rb_eTypeError, "feed value already set");
}
- return v;
+ e->feedvalue = v;
+
+ return Qnil;
}
/*
* call-seq:
- * e.rewind => e
+ * e.rewind -> e
*
- * Rewinds the enumeration sequence by the next method.
+ * Rewinds the enumeration sequence to the beginning.
*
* If the enclosed object responds to a "rewind" method, it is called.
*/
@@ -570,23 +765,32 @@ enumerator_rewind(VALUE obj)
{
struct enumerator *e = enumerator_ptr(obj);
- if (rb_respond_to(e->obj, id_rewind))
- rb_funcall(e->obj, id_rewind, 0);
+ rb_check_funcall(e->obj, id_rewind, 0, 0);
e->fib = 0;
e->dst = Qnil;
- e->no_next = Qfalse;
+ e->lookahead = Qundef;
+ e->feedvalue = Qundef;
+ e->stop_exc = Qfalse;
return obj;
}
static VALUE
inspect_enumerator(VALUE obj, VALUE dummy, int recur)
{
- struct enumerator *e = enumerator_ptr(obj);
- const char *cname = rb_obj_classname(obj);
+ struct enumerator *e;
+ const char *cname;
VALUE eobj, str;
int tainted, untrusted;
+ TypedData_Get_Struct(obj, struct enumerator, &enumerator_data_type, e);
+
+ cname = rb_obj_classname(obj);
+
+ if (!e || e->obj == Qundef) {
+ return rb_sprintf("#<%s: uninitialized>", cname);
+ }
+
if (recur) {
str = rb_sprintf("#<%s: ...>", cname);
OBJ_TAINT(str);
@@ -605,7 +809,7 @@ inspect_enumerator(VALUE obj, VALUE dummy, int recur)
rb_str_buf_cat2(str, rb_id2name(e->meth));
if (e->args) {
- int argc = RARRAY_LEN(e->args);
+ long argc = RARRAY_LEN(e->args);
VALUE *argv = RARRAY_PTR(e->args);
rb_str_buf_cat2(str, "(");
@@ -616,8 +820,8 @@ inspect_enumerator(VALUE obj, VALUE dummy, int recur)
rb_str_concat(str, rb_inspect(arg));
rb_str_buf_cat2(str, argc > 0 ? ", " : ")");
- if (OBJ_TAINTED(arg)) tainted = Qtrue;
- if (OBJ_UNTRUSTED(arg)) untrusted = Qtrue;
+ if (OBJ_TAINTED(arg)) tainted = TRUE;
+ if (OBJ_UNTRUSTED(arg)) untrusted = TRUE;
}
}
@@ -630,9 +834,9 @@ inspect_enumerator(VALUE obj, VALUE dummy, int recur)
/*
* call-seq:
- * e.inspect => string
+ * e.inspect -> string
*
- * Create a printable version of <i>e</i>.
+ * Creates a printable version of <i>e</i>.
*/
static VALUE
@@ -651,17 +855,29 @@ yielder_mark(void *p)
rb_gc_mark(ptr->proc);
}
+#define yielder_free RUBY_TYPED_DEFAULT_FREE
+
+static size_t
+yielder_memsize(const void *p)
+{
+ return p ? sizeof(struct yielder) : 0;
+}
+
+static const rb_data_type_t yielder_data_type = {
+ "yielder",
+ {
+ yielder_mark,
+ yielder_free,
+ yielder_memsize,
+ },
+};
+
static struct yielder *
yielder_ptr(VALUE obj)
{
struct yielder *ptr;
- Data_Get_Struct(obj, struct yielder, ptr);
- if (RDATA(obj)->dmark != yielder_mark) {
- rb_raise(rb_eTypeError,
- "wrong argument type %s (expected %s)",
- rb_obj_classname(obj), rb_class2name(rb_cYielder));
- }
+ TypedData_Get_Struct(obj, struct yielder, &yielder_data_type, ptr);
if (!ptr || ptr->proc == Qundef) {
rb_raise(rb_eArgError, "uninitialized yielder");
}
@@ -675,7 +891,7 @@ yielder_allocate(VALUE klass)
struct yielder *ptr;
VALUE obj;
- obj = Data_Make_Struct(klass, struct yielder, yielder_mark, -1, ptr);
+ obj = TypedData_Make_Struct(klass, struct yielder, &yielder_data_type, ptr);
ptr->proc = Qundef;
return obj;
@@ -686,7 +902,7 @@ yielder_init(VALUE obj, VALUE proc)
{
struct yielder *ptr;
- Data_Get_Struct(obj, struct yielder, ptr);
+ TypedData_Get_Struct(obj, struct yielder, &yielder_data_type, ptr);
if (!ptr) {
rb_raise(rb_eArgError, "unallocated yielder");
@@ -712,15 +928,14 @@ yielder_yield(VALUE obj, VALUE args)
{
struct yielder *ptr = yielder_ptr(obj);
- rb_proc_call(ptr->proc, args);
-
- return obj;
+ return rb_proc_call(ptr->proc, args);
}
-static VALUE
-yielder_new_i(VALUE dummy)
+/* :nodoc: */
+static VALUE yielder_yield_push(VALUE obj, VALUE args)
{
- return yielder_init(yielder_allocate(rb_cYielder), rb_block_proc());
+ yielder_yield(obj, args);
+ return obj;
}
static VALUE
@@ -732,7 +947,7 @@ yielder_yield_i(VALUE obj, VALUE memo, int argc, VALUE *argv)
static VALUE
yielder_new(void)
{
- return rb_iterate(yielder_new_i, (VALUE)0, yielder_yield_i, (VALUE)0);
+ return yielder_init(yielder_allocate(rb_cYielder), rb_proc_new(yielder_yield_i, 0));
}
/*
@@ -745,17 +960,29 @@ generator_mark(void *p)
rb_gc_mark(ptr->proc);
}
+#define generator_free RUBY_TYPED_DEFAULT_FREE
+
+static size_t
+generator_memsize(const void *p)
+{
+ return p ? sizeof(struct generator) : 0;
+}
+
+static const rb_data_type_t generator_data_type = {
+ "generator",
+ {
+ generator_mark,
+ generator_free,
+ generator_memsize,
+ },
+};
+
static struct generator *
generator_ptr(VALUE obj)
{
struct generator *ptr;
- Data_Get_Struct(obj, struct generator, ptr);
- if (RDATA(obj)->dmark != generator_mark) {
- rb_raise(rb_eTypeError,
- "wrong argument type %s (expected %s)",
- rb_obj_classname(obj), rb_class2name(rb_cGenerator));
- }
+ TypedData_Get_Struct(obj, struct generator, &generator_data_type, ptr);
if (!ptr || ptr->proc == Qundef) {
rb_raise(rb_eArgError, "uninitialized generator");
}
@@ -769,7 +996,7 @@ generator_allocate(VALUE klass)
struct generator *ptr;
VALUE obj;
- obj = Data_Make_Struct(klass, struct generator, generator_mark, -1, ptr);
+ obj = TypedData_Make_Struct(klass, struct generator, &generator_data_type, ptr);
ptr->proc = Qundef;
return obj;
@@ -780,7 +1007,7 @@ generator_init(VALUE obj, VALUE proc)
{
struct generator *ptr;
- Data_Get_Struct(obj, struct generator, ptr);
+ TypedData_Get_Struct(obj, struct generator, &generator_data_type, ptr);
if (!ptr) {
rb_raise(rb_eArgError, "unallocated generator");
@@ -791,8 +1018,6 @@ generator_init(VALUE obj, VALUE proc)
return obj;
}
-VALUE rb_obj_is_proc(VALUE proc);
-
/* :nodoc: */
static VALUE
generator_initialize(int argc, VALUE *argv, VALUE obj)
@@ -827,7 +1052,7 @@ generator_init_copy(VALUE obj, VALUE orig)
ptr0 = generator_ptr(orig);
- Data_Get_Struct(obj, struct generator, ptr1);
+ TypedData_Get_Struct(obj, struct generator, &generator_data_type, ptr1);
if (!ptr1) {
rb_raise(rb_eArgError, "unallocated generator");
@@ -847,9 +1072,59 @@ generator_each(VALUE obj)
yielder = yielder_new();
- rb_proc_call(ptr->proc, rb_ary_new3(1, yielder));
+ return rb_proc_call(ptr->proc, rb_ary_new3(1, yielder));
+}
- return obj;
+/*
+ * Document-class: StopIteration
+ *
+ * Raised to stop the iteration, in particular by Enumerator#next. It is
+ * rescued by Kernel#loop.
+ *
+ * loop do
+ * puts "Hello"
+ * raise StopIteration
+ * puts "World"
+ * end
+ * puts "Done!"
+ *
+ * <em>produces:</em>
+ *
+ * Hello
+ * Done!
+ */
+
+/*
+ * call-seq:
+ * result -> value
+ *
+ * Returns the return value of the iterator.
+ *
+ * o = Object.new
+ * def o.each
+ * yield 1
+ * yield 2
+ * yield 3
+ * 100
+ * end
+ *
+ * e = o.to_enum
+ *
+ * puts e.next #=> 1
+ * puts e.next #=> 2
+ * puts e.next #=> 3
+ *
+ * begin
+ * e.next
+ * rescue StopIteration => ex
+ * puts ex.result #=> 100
+ * end
+ *
+ */
+static VALUE
+stop_result(VALUE self)
+{
+ return rb_attr_get(self, rb_intern("result"));
}
void
@@ -858,10 +1133,6 @@ Init_Enumerator(void)
rb_define_method(rb_mKernel, "to_enum", obj_to_enum, -1);
rb_define_method(rb_mKernel, "enum_for", obj_to_enum, -1);
- rb_define_method(rb_mEnumerable, "each_slice", enum_each_slice, 1);
- rb_define_method(rb_mEnumerable, "each_cons", enum_each_cons, 1);
- rb_define_method(rb_mEnumerable, "each_with_object", enum_each_with_object, 1);
-
rb_cEnumerator = rb_define_class("Enumerator", rb_cObject);
rb_include_module(rb_cEnumerator, rb_mEnumerable);
@@ -873,11 +1144,16 @@ Init_Enumerator(void)
rb_define_method(rb_cEnumerator, "each_with_object", enumerator_with_object, 1);
rb_define_method(rb_cEnumerator, "with_index", enumerator_with_index, -1);
rb_define_method(rb_cEnumerator, "with_object", enumerator_with_object, 1);
+ rb_define_method(rb_cEnumerator, "next_values", enumerator_next_values, 0);
+ rb_define_method(rb_cEnumerator, "peek_values", enumerator_peek_values_m, 0);
rb_define_method(rb_cEnumerator, "next", enumerator_next, 0);
+ rb_define_method(rb_cEnumerator, "peek", enumerator_peek, 0);
+ rb_define_method(rb_cEnumerator, "feed", enumerator_feed, 1);
rb_define_method(rb_cEnumerator, "rewind", enumerator_rewind, 0);
rb_define_method(rb_cEnumerator, "inspect", enumerator_inspect, 0);
rb_eStopIteration = rb_define_class("StopIteration", rb_eIndexError);
+ rb_define_method(rb_eStopIteration, "result", stop_result, 0);
/* Generator */
rb_cGenerator = rb_define_class_under(rb_cEnumerator, "Generator", rb_cObject);
@@ -892,7 +1168,7 @@ Init_Enumerator(void)
rb_define_alloc_func(rb_cYielder, yielder_allocate);
rb_define_method(rb_cYielder, "initialize", yielder_initialize, 0);
rb_define_method(rb_cYielder, "yield", yielder_yield, -2);
- rb_define_method(rb_cYielder, "<<", yielder_yield, -2);
+ rb_define_method(rb_cYielder, "<<", yielder_yield_push, -2);
id_rewind = rb_intern("rewind");
id_each = rb_intern("each");
diff --git a/error.c b/error.c
index 4c23894f36..060b82c377 100644
--- a/error.c
+++ b/error.c
@@ -11,6 +11,8 @@
#include "ruby/ruby.h"
#include "ruby/st.h"
+#include "ruby/encoding.h"
+#include "internal.h"
#include "vm_core.h"
#include <stdio.h>
@@ -18,12 +20,43 @@
#ifdef HAVE_STDLIB_H
#include <stdlib.h>
#endif
+#include <errno.h>
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>
+#endif
+
#ifndef EXIT_SUCCESS
#define EXIT_SUCCESS 0
#endif
+#ifndef WIFEXITED
+#define WIFEXITED(status) 1
+#endif
+
+#ifndef WEXITSTATUS
+#define WEXITSTATUS(status) (status)
+#endif
+
extern const char ruby_description[];
+#define REPORTBUG_MSG \
+ "[NOTE]\n" \
+ "You may have encountered a bug in the Ruby interpreter" \
+ " or extension libraries.\n" \
+ "Bug reports are welcome.\n" \
+ "For details: http://www.ruby-lang.org/bugreport.html\n\n" \
+
+static const char *
+rb_strerrno(int err)
+{
+#define defined_error(name, num) if (err == (num)) return (name);
+#define undefined_error(name)
+#include "known_errors.inc"
+#undef defined_error
+#undef undefined_error
+ return NULL;
+}
+
static int
err_position_0(char *buf, long len, const char *file, int line)
{
@@ -66,7 +99,19 @@ compile_snprintf(char *buf, long len, const char *file, int line, const char *fm
}
}
-static void err_append(const char*);
+static void err_append(const char*, rb_encoding *);
+
+void
+rb_compile_error_with_enc(const char *file, int line, void *enc, const char *fmt, ...)
+{
+ va_list args;
+ char buf[BUFSIZ];
+
+ va_start(args, fmt);
+ compile_snprintf(buf, BUFSIZ, file, line, fmt, args);
+ va_end(args);
+ err_append(buf, (rb_encoding *)enc);
+}
void
rb_compile_error(const char *file, int line, const char *fmt, ...)
@@ -77,7 +122,7 @@ rb_compile_error(const char *file, int line, const char *fmt, ...)
va_start(args, fmt);
compile_snprintf(buf, BUFSIZ, file, line, fmt, args);
va_end(args);
- err_append(buf);
+ err_append(buf, NULL);
}
void
@@ -89,7 +134,7 @@ rb_compile_error_append(const char *fmt, ...)
va_start(args, fmt);
vsnprintf(buf, BUFSIZ, fmt, args);
va_end(args);
- err_append(buf);
+ err_append(buf, NULL);
}
static void
@@ -99,7 +144,7 @@ compile_warn_print(const char *file, int line, const char *fmt, va_list args)
int len;
compile_snprintf(buf, BUFSIZ, file, line, fmt, args);
- len = strlen(buf);
+ len = (int)strlen(buf);
buf[len++] = '\n';
rb_write_error2(buf, len);
}
@@ -142,7 +187,7 @@ warn_print(const char *fmt, va_list args)
int len;
err_snprintf(buf, BUFSIZ, fmt, args);
- len = strlen(buf);
+ len = (int)strlen(buf);
buf[len++] = '\n';
rb_write_error2(buf, len);
}
@@ -180,7 +225,7 @@ rb_warning(const char *fmt, ...)
/*
* call-seq:
- * warn(msg) => nil
+ * warn(msg) -> nil
*
* Display the given message (followed by a newline) on STDERR unless
* warnings are disabled (for example with the <code>-W0</code> flag).
@@ -196,8 +241,6 @@ rb_warn_m(VALUE self, VALUE mesg)
return Qnil;
}
-void rb_vm_bugreport(void);
-
static void
report_bug(const char *file, int line, const char *fmt, va_list args)
{
@@ -214,12 +257,7 @@ report_bug(const char *file, int line, const char *fmt, va_list args)
rb_vm_bugreport();
- fprintf(out,
- "[NOTE]\n"
- "You may have encountered a bug in the Ruby interpreter"
- " or extension libraries.\n"
- "Bug reports are welcome.\n"
- "For details: http://www.ruby-lang.org/bugreport.html\n\n");
+ fprintf(out, REPORTBUG_MSG);
}
}
@@ -227,11 +265,67 @@ void
rb_bug(const char *fmt, ...)
{
va_list args;
+ const char *file = NULL;
+ int line = 0;
+
+ if (GET_THREAD()) {
+ file = rb_sourcefile();
+ line = rb_sourceline();
+ }
va_start(args, fmt);
- report_bug(rb_sourcefile(), rb_sourceline(), fmt, args);
+ report_bug(file, line, fmt, args);
va_end(args);
+#if defined(_WIN32) && defined(RT_VER) && RT_VER >= 80
+ _set_abort_behavior( 0, _CALL_REPORTFAULT);
+#endif
+
+ abort();
+}
+
+void
+rb_bug_errno(const char *mesg, int errno_arg)
+{
+ if (errno_arg == 0)
+ rb_bug("%s: errno == 0 (NOERROR)", mesg);
+ else {
+ const char *errno_str = rb_strerrno(errno_arg);
+ if (errno_str)
+ rb_bug("%s: %s (%s)", mesg, strerror(errno_arg), errno_str);
+ else
+ rb_bug("%s: %s (%d)", mesg, strerror(errno_arg), errno_arg);
+ }
+}
+
+/*
+ * this is safe to call inside signal handler and timer thread
+ * (which isn't a Ruby Thread object)
+ */
+#define write_or_abort(fd, str, len) (write((fd), (str), (len)) < 0 ? abort() : (void)0)
+#define WRITE_CONST(fd,str) write_or_abort((fd),(str),sizeof(str) - 1)
+
+void
+rb_async_bug_errno(const char *mesg, int errno_arg)
+{
+ WRITE_CONST(2, "[ASYNC BUG] ");
+ write_or_abort(2, mesg, strlen(mesg));
+ WRITE_CONST(2, "\n");
+
+ if (errno_arg == 0) {
+ WRITE_CONST(2, "errno == 0 (NOERROR)\n");
+ }
+ else {
+ const char *errno_str = rb_strerrno(errno_arg);
+
+ if (!errno_str)
+ errno_str = "undefined errno";
+ write_or_abort(2, errno_str, strlen(errno_str));
+ }
+ WRITE_CONST(2, "\n\n");
+ write_or_abort(2, ruby_description, strlen(ruby_description));
+ WRITE_CONST(2, "\n\n");
+ WRITE_CONST(2, REPORTBUG_MSG);
abort();
}
@@ -282,12 +376,14 @@ rb_check_type(VALUE x, int t)
const struct types *type = builtin_types;
const struct types *const typeend = builtin_types +
sizeof(builtin_types) / sizeof(builtin_types[0]);
+ int xt;
if (x == Qundef) {
rb_bug("undef leaked to the Ruby space");
}
- if (TYPE(x) != t) {
+ xt = TYPE(x);
+ if (xt != t || (xt == T_DATA && RTYPEDDATA_P(x))) {
while (type < typeend) {
if (type->type == t) {
const char *etype;
@@ -302,7 +398,8 @@ rb_check_type(VALUE x, int t)
etype = "Symbol";
}
else if (rb_special_const_p(x)) {
- etype = RSTRING_PTR(rb_obj_as_string(x));
+ x = rb_obj_as_string(x);
+ etype = StringValuePtr(x);
}
else {
etype = rb_obj_classname(x);
@@ -312,13 +409,54 @@ rb_check_type(VALUE x, int t)
}
type++;
}
- rb_bug("unknown type 0x%x (0x%x given)", t, TYPE(x));
+ if (xt > T_MASK && xt <= 0x3f) {
+ rb_fatal("unknown type 0x%x (0x%x given, probably comes from extension library for ruby 1.8)", t, xt);
+ }
+ rb_bug("unknown type 0x%x (0x%x given)", t, xt);
}
}
-/* exception classes */
-#include <errno.h>
+int
+rb_typeddata_inherited_p(const rb_data_type_t *child, const rb_data_type_t *parent)
+{
+ while (child) {
+ if (child == parent) return 1;
+ child = child->parent;
+ }
+ return 0;
+}
+int
+rb_typeddata_is_kind_of(VALUE obj, const rb_data_type_t *data_type)
+{
+ if (SPECIAL_CONST_P(obj) || BUILTIN_TYPE(obj) != T_DATA ||
+ !RTYPEDDATA_P(obj) || !rb_typeddata_inherited_p(RTYPEDDATA_TYPE(obj), data_type)) {
+ return 0;
+ }
+ return 1;
+}
+
+void *
+rb_check_typeddata(VALUE obj, const rb_data_type_t *data_type)
+{
+ const char *etype;
+ static const char mesg[] = "wrong argument type %s (expected %s)";
+
+ if (SPECIAL_CONST_P(obj) || BUILTIN_TYPE(obj) != T_DATA) {
+ Check_Type(obj, T_DATA);
+ }
+ if (!RTYPEDDATA_P(obj)) {
+ etype = rb_obj_classname(obj);
+ rb_raise(rb_eTypeError, mesg, etype, data_type->wrap_struct_name);
+ }
+ else if (!rb_typeddata_inherited_p(RTYPEDDATA_TYPE(obj), data_type)) {
+ etype = RTYPEDDATA_TYPE(obj)->wrap_struct_name;
+ rb_raise(rb_eTypeError, mesg, etype, data_type->wrap_struct_name);
+ }
+ return DATA_PTR(obj);
+}
+
+/* exception classes */
VALUE rb_eException;
VALUE rb_eSystemExit;
VALUE rb_eInterrupt;
@@ -348,6 +486,8 @@ VALUE rb_eSystemCallError;
VALUE rb_mErrno;
static VALUE rb_eNOERROR;
+#undef rb_exc_new2
+
VALUE
rb_exc_new(VALUE etype, const char *ptr, long len)
{
@@ -369,7 +509,7 @@ rb_exc_new3(VALUE etype, VALUE str)
/*
* call-seq:
- * Exception.new(msg = nil) => exception
+ * Exception.new(msg = nil) -> exception
*
* Construct a new Exception object, optionally passing in
* a message.
@@ -391,7 +531,7 @@ exc_initialize(int argc, VALUE *argv, VALUE exc)
* Document-method: exception
*
* call-seq:
- * exc.exception(string) -> an_exception or exc
+ * exc.exception(string) -> an_exception or exc
*
* With no argument, or if the argument is the same as the receiver,
* return the receiver. Otherwise, create a new
@@ -415,7 +555,7 @@ exc_exception(int argc, VALUE *argv, VALUE self)
/*
* call-seq:
- * exception.to_s => string
+ * exception.to_s -> string
*
* Returns exception's message (or the name of the exception if
* no message is set).
@@ -425,15 +565,17 @@ static VALUE
exc_to_s(VALUE exc)
{
VALUE mesg = rb_attr_get(exc, rb_intern("mesg"));
+ VALUE r = Qnil;
if (NIL_P(mesg)) return rb_class_name(CLASS_OF(exc));
- if (OBJ_TAINTED(exc)) OBJ_TAINT(mesg);
- return mesg;
+ r = rb_String(mesg);
+ OBJ_INFECT(r, exc);
+ return r;
}
/*
* call-seq:
- * exception.message => string
+ * exception.message -> string
*
* Returns the result of invoking <code>exception.to_s</code>.
* Normally this returns the exception's message or name. By
@@ -449,7 +591,7 @@ exc_message(VALUE exc)
/*
* call-seq:
- * exception.inspect => string
+ * exception.inspect -> string
*
* Return this exception's class name an message
*/
@@ -477,7 +619,7 @@ exc_inspect(VALUE exc)
/*
* call-seq:
- * exception.backtrace => array
+ * exception.backtrace -> array
*
* Returns any backtrace associated with the exception. The backtrace
* is an array of strings, each containing either ``filename:lineNo: in
@@ -537,7 +679,7 @@ rb_check_backtrace(VALUE bt)
/*
* call-seq:
- * exc.set_backtrace(array) => array
+ * exc.set_backtrace(array) -> array
*
* Sets the backtrace information associated with <i>exc</i>. The
* argument must be an array of <code>String</code> objects in the
@@ -553,7 +695,7 @@ exc_set_backtrace(VALUE exc, VALUE bt)
/*
* call-seq:
- * exc == obj => true or false
+ * exc == obj -> true or false
*
* Equality---If <i>obj</i> is not an <code>Exception</code>, returns
* <code>false</code>. Otherwise, returns <code>true</code> if <i>exc</i> and
@@ -574,13 +716,10 @@ exc_equal(VALUE exc, VALUE obj)
CONST_ID(id_message, "message");
CONST_ID(id_backtrace, "backtrace");
- if (rb_respond_to(obj, id_message) && rb_respond_to(obj, id_backtrace)) {
- mesg = rb_funcall(obj, id_message, 0, 0);
- backtrace = rb_funcall(obj, id_backtrace, 0, 0);
- }
- else {
- return Qfalse;
- }
+ mesg = rb_check_funcall(obj, id_message, 0, 0);
+ if (mesg == Qundef) return Qfalse;
+ backtrace = rb_check_funcall(obj, id_backtrace, 0, 0);
+ if (backtrace == Qundef) return Qfalse;
}
else {
mesg = rb_attr_get(obj, id_mesg);
@@ -596,7 +735,7 @@ exc_equal(VALUE exc, VALUE obj)
/*
* call-seq:
- * SystemExit.new(status=0) => system_exit
+ * SystemExit.new(status=0) -> system_exit
*
* Create a new +SystemExit+ exception with the given status.
*/
@@ -617,7 +756,7 @@ exit_initialize(int argc, VALUE *argv, VALUE exc)
/*
* call-seq:
- * system_exit.status => fixnum
+ * system_exit.status -> fixnum
*
* Return the status value associated with this system exit.
*/
@@ -631,7 +770,7 @@ exit_status(VALUE exc)
/*
* call-seq:
- * system_exit.success? => true or false
+ * system_exit.success? -> true or false
*
* Returns +true+ if exiting successful, +false+ if not.
*/
@@ -639,9 +778,15 @@ exit_status(VALUE exc)
static VALUE
exit_success_p(VALUE exc)
{
- VALUE status = rb_attr_get(exc, rb_intern("status"));
- if (NIL_P(status)) return Qtrue;
- if (status == INT2FIX(EXIT_SUCCESS)) return Qtrue;
+ VALUE status_val = rb_attr_get(exc, rb_intern("status"));
+ int status;
+
+ if (NIL_P(status_val))
+ return Qtrue;
+ status = NUM2INT(status_val);
+ if (WIFEXITED(status) && WEXITSTATUS(status) == EXIT_SUCCESS)
+ return Qtrue;
+
return Qfalse;
}
@@ -662,7 +807,7 @@ rb_name_error(ID id, const char *fmt, ...)
/*
* call-seq:
- * NameError.new(msg [, name]) => name_error
+ * NameError.new(msg [, name]) -> name_error
*
* Construct a new NameError exception. If given the <i>name</i>
* parameter may subsequently be examined using the <code>NameError.name</code>
@@ -682,7 +827,7 @@ name_err_initialize(int argc, VALUE *argv, VALUE self)
/*
* call-seq:
- * name_error.name => string or nil
+ * name_error.name -> string or nil
*
* Return the name associated with this NameError exception.
*/
@@ -695,7 +840,7 @@ name_err_name(VALUE self)
/*
* call-seq:
- * name_error.to_s => string
+ * name_error.to_s -> string
*
* Produce a nicely-formatted string representing the +NameError+.
*/
@@ -711,13 +856,13 @@ name_err_to_s(VALUE exc)
if (str != mesg) {
rb_iv_set(exc, "mesg", mesg = str);
}
- if (OBJ_TAINTED(exc)) OBJ_TAINT(mesg);
+ OBJ_INFECT(mesg, exc);
return mesg;
}
/*
* call-seq:
- * NoMethodError.new(msg, name [, args]) => no_method_error
+ * NoMethodError.new(msg, name [, args]) -> no_method_error
*
* Construct a NoMethodError exception for a method of the given name
* called with the given arguments. The name may be accessed using
@@ -735,22 +880,47 @@ nometh_err_initialize(int argc, VALUE *argv, VALUE self)
}
/* :nodoc: */
+#define NAME_ERR_MESG_COUNT 3
+
static void
-name_err_mesg_mark(VALUE *ptr)
+name_err_mesg_mark(void *p)
+{
+ VALUE *ptr = p;
+ rb_gc_mark_locations(ptr, ptr+NAME_ERR_MESG_COUNT);
+}
+
+#define name_err_mesg_free RUBY_TYPED_DEFAULT_FREE
+
+static size_t
+name_err_mesg_memsize(const void *p)
{
- rb_gc_mark_locations(ptr, ptr+3);
+ return p ? (NAME_ERR_MESG_COUNT * sizeof(VALUE)) : 0;
}
+static const rb_data_type_t name_err_mesg_data_type = {
+ "name_err_mesg",
+ {
+ name_err_mesg_mark,
+ name_err_mesg_free,
+ name_err_mesg_memsize,
+ },
+};
+
/* :nodoc: */
-static VALUE
-name_err_mesg_new(VALUE obj, VALUE mesg, VALUE recv, VALUE method)
+VALUE
+rb_name_err_mesg_new(VALUE obj, VALUE mesg, VALUE recv, VALUE method)
{
- VALUE *ptr = ALLOC_N(VALUE, 3);
+ VALUE *ptr = ALLOC_N(VALUE, NAME_ERR_MESG_COUNT);
+ VALUE result;
ptr[0] = mesg;
ptr[1] = recv;
ptr[2] = method;
- return Data_Wrap_Struct(rb_cNameErrorMesg, name_err_mesg_mark, -1, ptr);
+ result = TypedData_Wrap_Struct(rb_cNameErrorMesg, &name_err_mesg_data_type, ptr);
+ RB_GC_GUARD(mesg);
+ RB_GC_GUARD(recv);
+ RB_GC_GUARD(method);
+ return result;
}
/* :nodoc: */
@@ -764,9 +934,9 @@ name_err_mesg_equal(VALUE obj1, VALUE obj2)
if (rb_obj_class(obj2) != rb_cNameErrorMesg)
return Qfalse;
- Data_Get_Struct(obj1, VALUE, ptr1);
- Data_Get_Struct(obj2, VALUE, ptr2);
- for (i=0; i<3; i++) {
+ TypedData_Get_Struct(obj1, VALUE, &name_err_mesg_data_type, ptr1);
+ TypedData_Get_Struct(obj2, VALUE, &name_err_mesg_data_type, ptr2);
+ for (i=0; i<NAME_ERR_MESG_COUNT; i++) {
if (!rb_equal(ptr1[i], ptr2[i]))
return Qfalse;
}
@@ -778,13 +948,14 @@ static VALUE
name_err_mesg_to_str(VALUE obj)
{
VALUE *ptr, mesg;
- Data_Get_Struct(obj, VALUE, ptr);
+ TypedData_Get_Struct(obj, VALUE, &name_err_mesg_data_type, ptr);
mesg = ptr[0];
if (NIL_P(mesg)) return Qnil;
else {
const char *desc = 0;
- VALUE d = 0, args[3];
+ VALUE d = 0, args[NAME_ERR_MESG_COUNT];
+ int state = 0;
obj = ptr[1];
switch (TYPE(obj)) {
@@ -798,7 +969,9 @@ name_err_mesg_to_str(VALUE obj)
desc = "false";
break;
default:
- d = rb_protect(rb_inspect, obj, 0);
+ d = rb_protect(rb_inspect, obj, &state);
+ if (state)
+ rb_set_errinfo(Qnil);
if (NIL_P(d) || RSTRING_LEN(d) > 65) {
d = rb_any_to_s(obj);
}
@@ -806,16 +979,16 @@ name_err_mesg_to_str(VALUE obj)
break;
}
if (desc && desc[0] != '#') {
- d = rb_str_new2(desc);
+ d = d ? rb_str_dup(d) : rb_str_new2(desc);
rb_str_cat2(d, ":");
rb_str_cat2(d, rb_obj_classname(obj));
}
args[0] = mesg;
args[1] = ptr[2];
args[2] = d;
- mesg = rb_f_sprintf(3, args);
+ mesg = rb_f_sprintf(NAME_ERR_MESG_COUNT, args);
}
- if (OBJ_TAINTED(obj)) OBJ_TAINT(mesg);
+ OBJ_INFECT(mesg, obj);
return mesg;
}
@@ -828,7 +1001,7 @@ name_err_mesg_load(VALUE klass, VALUE str)
/*
* call-seq:
- * no_method_error.args => obj
+ * no_method_error.args -> obj
*
* Return the arguments passed in as the third parameter to
* the constructor.
@@ -843,7 +1016,7 @@ nometh_err_args(VALUE self)
void
rb_invalid_str(const char *str, const char *type)
{
- VALUE s = rb_str_inspect(rb_str_new2(str));
+ volatile VALUE s = rb_str_inspect(rb_str_new2(str));
rb_raise(rb_eArgError, "invalid value for %s: %s", type, RSTRING_PTR(s));
}
@@ -884,7 +1057,7 @@ static st_table *syserr_tbl;
static VALUE
set_syserr(int n, const char *name)
{
- VALUE error;
+ st_data_t error;
if (!st_lookup(syserr_tbl, n, &error)) {
error = rb_define_class_under(rb_mErrno, name, rb_eSystemCallError);
@@ -900,7 +1073,7 @@ set_syserr(int n, const char *name)
static VALUE
get_syserr(int n)
{
- VALUE error;
+ st_data_t error;
if (!st_lookup(syserr_tbl, n, &error)) {
char name[8]; /* some Windows' errno have 5 digits. */
@@ -913,7 +1086,7 @@ get_syserr(int n)
/*
* call-seq:
- * SystemCallError.new(msg, errno) => system_call_error_subclass
+ * SystemCallError.new(msg, errno) -> system_call_error_subclass
*
* If _errno_ corresponds to a known system error code, constructs
* the appropriate <code>Errno</code> class for that error, otherwise
@@ -933,11 +1106,13 @@ syserr_initialize(int argc, VALUE *argv, VALUE self)
VALUE klass = rb_obj_class(self);
if (klass == rb_eSystemCallError) {
+ st_data_t data = (st_data_t)klass;
rb_scan_args(argc, argv, "11", &mesg, &error);
if (argc == 1 && FIXNUM_P(mesg)) {
error = mesg; mesg = Qnil;
}
- if (!NIL_P(error) && st_lookup(syserr_tbl, NUM2LONG(error), &klass)) {
+ if (!NIL_P(error) && st_lookup(syserr_tbl, NUM2LONG(error), &data)) {
+ klass = (VALUE)data;
/* change class */
if (TYPE(self) != T_OBJECT) { /* insurance to avoid type crash */
rb_raise(rb_eTypeError, "invalid instance type");
@@ -949,17 +1124,24 @@ syserr_initialize(int argc, VALUE *argv, VALUE self)
rb_scan_args(argc, argv, "01", &mesg);
error = rb_const_get(klass, rb_intern("Errno"));
}
- if (!NIL_P(error)) err = strerror(NUM2LONG(error));
+ if (!NIL_P(error)) err = strerror(NUM2INT(error));
else err = "unknown error";
if (!NIL_P(mesg)) {
- VALUE str = mesg;
+ rb_encoding *le = rb_locale_encoding();
+ VALUE str = StringValue(mesg);
+ rb_encoding *me = rb_enc_get(mesg);
- StringValue(str);
mesg = rb_sprintf("%s - %.*s", err,
(int)RSTRING_LEN(str), RSTRING_PTR(str));
+ if (le != me && rb_enc_asciicompat(me)) {
+ le = me;
+ }/* else assume err is non ASCII string. */
+ OBJ_INFECT(mesg, str);
+ rb_enc_associate(mesg, le);
}
else {
mesg = rb_str_new2(err);
+ rb_enc_associate(mesg, rb_locale_encoding());
}
rb_call_super(1, &mesg);
rb_iv_set(self, "errno", error);
@@ -968,7 +1150,7 @@ syserr_initialize(int argc, VALUE *argv, VALUE self)
/*
* call-seq:
- * system_call_error.errno => fixnum
+ * system_call_error.errno -> fixnum
*
* Return this SystemCallError's error number.
*/
@@ -981,10 +1163,10 @@ syserr_errno(VALUE self)
/*
* call-seq:
- * system_call_error === other => true or false
+ * system_call_error === other -> true or false
*
* Return +true+ if the receiver is a generic +SystemCallError+, or
- * if the error numbers _self_ and _other_ are the same.
+ * if the error numbers +self+ and _other_ are the same.
*/
static VALUE
@@ -1010,6 +1192,313 @@ syserr_eqq(VALUE self, VALUE exc)
return Qfalse;
}
+
+/*
+ * Document-class: StandardError
+ *
+ * The most standard error types are subclasses of StandardError. A
+ * rescue clause without an explicit Exception class will rescue all
+ * StandardErrors (and only those).
+ *
+ * def foo
+ * raise "Oups"
+ * end
+ * foo rescue "Hello" #=> "Hello"
+ *
+ * On the other hand:
+ *
+ * require 'does/not/exist' rescue "Hi"
+ *
+ * <em>raises the exception:</em>
+ *
+ * LoadError: no such file to load -- does/not/exist
+ *
+ */
+
+/*
+ * Document-class: SystemExit
+ *
+ * Raised by +exit+ to initiate the termination of the script.
+ */
+
+/*
+ * Document-class: SignalException
+ *
+ * Raised when a signal is received.
+ *
+ * begin
+ * Process.kill('HUP',Process.pid)
+ * rescue SignalException => e
+ * puts "received Exception #{e}"
+ * end
+ *
+ * <em>produces:</em>
+ *
+ * received Exception SIGHUP
+ */
+
+/*
+ * Document-class: Interrupt
+ *
+ * Raised with the interrupt signal is received, typically because the
+ * user pressed on Control-C (on most posix platforms). As such, it is a
+ * subclass of +SignalException+.
+ *
+ * begin
+ * puts "Press ctrl-C when you get bored"
+ * loop {}
+ * rescue Interrupt => e
+ * puts "Note: You will typically use Signal.trap instead."
+ * end
+ *
+ * <em>produces:</em>
+ *
+ * Press ctrl-C when you get bored
+ *
+ * <em>then waits until it is interrupted with Control-C and then prints:</em>
+ *
+ * Note: You will typically use Signal.trap instead.
+ */
+
+/*
+ * Document-class: TypeError
+ *
+ * Raised when encountering an object that is not of the expected type.
+ *
+ * [1, 2, 3].first("two")
+ *
+ * <em>raises the exception:</em>
+ *
+ * TypeError: can't convert String into Integer
+ *
+ */
+
+/*
+ * Document-class: ArgumentError
+ *
+ * Raised when the arguments are wrong and there isn't a more specific
+ * Exception class.
+ *
+ * Ex: passing the wrong number of arguments
+ *
+ * [1, 2, 3].first(4, 5)
+ *
+ * <em>raises the exception:</em>
+ *
+ * ArgumentError: wrong number of arguments (2 for 1)
+ *
+ * Ex: passing an argument that is not acceptable:
+ *
+ * [1, 2, 3].first(-4)
+ *
+ * <em>raises the exception:</em>
+ *
+ * ArgumentError: negative array size
+ */
+
+/*
+ * Document-class: IndexError
+ *
+ * Raised when the given index is invalid.
+ *
+ * a = [:foo, :bar]
+ * a.fetch(0) #=> :foo
+ * a[4] #=> nil
+ * a.fetch(4) #=> IndexError: index 4 outside of array bounds: -2...2
+ *
+ */
+
+/*
+ * Document-class: KeyError
+ *
+ * Raised when the specified key is not found. It is a subclass of
+ * IndexError.
+ *
+ * h = {"foo" => :bar}
+ * h.fetch("foo") #=> :bar
+ * h.fetch("baz") #=> KeyError: key not found: "baz"
+ *
+ */
+
+/*
+ * Document-class: RangeError
+ *
+ * Raised when a given numerical value is out of range.
+ *
+ * [1, 2, 3].drop(1 << 100)
+ *
+ * <em>raises the exception:</em>
+ *
+ * RangeError: bignum too big to convert into `long'
+ */
+
+/*
+ * Document-class: ScriptError
+ *
+ * ScriptError is the superclass for errors raised when a script
+ * can not be executed because of a +LoadError+,
+ * +NotImplementedError+ or a +SyntaxError+. Note these type of
+ * +ScriptErrors+ are not +StandardError+ and will not be
+ * rescued unless it is specified explicitly (or its ancestor
+ * +Exception+).
+ */
+
+/*
+ * Document-class: SyntaxError
+ *
+ * Raised when encountering Ruby code with an invalid syntax.
+ *
+ * eval("1+1=2")
+ *
+ * <em>raises the exception:</em>
+ *
+ * SyntaxError: (eval):1: syntax error, unexpected '=', expecting $end
+ */
+
+/*
+ * Document-class: LoadError
+ *
+ * Raised when a file required (a Ruby script, extension library, ...)
+ * fails to load.
+ *
+ * require 'this/file/does/not/exist'
+ *
+ * <em>raises the exception:</em>
+ *
+ * LoadError: no such file to load -- this/file/does/not/exist
+ */
+
+/*
+ * Document-class: NotImplementedError
+ *
+ * Raised when a feature is not implemented on the current platform. For
+ * example, methods depending on the +fsync+ or +fork+ system calls may
+ * raise this exception if the underlying operating system or Ruby
+ * runtime does not support them.
+ *
+ * Note that if +fork+ raises a +NotImplementedError+, then
+ * <code>respond_to?(:fork)</code> returns +false+.
+ */
+
+/*
+ * Document-class: NameError
+ *
+ * Raised when a given name is invalid or undefined.
+ *
+ * puts foo
+ *
+ * <em>raises the exception:</em>
+ *
+ * NameError: undefined local variable or method `foo' for main:Object
+ *
+ * Since constant names must start with a capital:
+ *
+ * Fixnum.const_set :answer, 42
+ *
+ * <em>raises the exception:</em>
+ *
+ * NameError: wrong constant name answer
+ */
+
+/*
+ * Document-class: NoMethodError
+ *
+ * Raised when a method is called on a receiver which doesn't have it
+ * defined and also fails to respond with +method_missing+.
+ *
+ * "hello".to_ary
+ *
+ * <em>raises the exception:</em>
+ *
+ * NoMethodError: undefined method `to_ary' for "hello":String
+ */
+
+/*
+ * Document-class: RuntimeError
+ *
+ * A generic error class raised when an invalid operation is attempted.
+ *
+ * [1, 2, 3].freeze << 4
+ *
+ * <em>raises the exception:</em>
+ *
+ * RuntimeError: can't modify frozen array
+ *
+ * Kernel.raise will raise a RuntimeError if no Exception class is
+ * specified.
+ *
+ * raise "ouch"
+ *
+ * <em>raises the exception:</em>
+ *
+ * RuntimeError: ouch
+ */
+
+/*
+ * Document-class: SecurityError
+ *
+ * Raised when attempting a potential unsafe operation, typically when
+ * the $SAFE level is raised above 0.
+ *
+ * foo = "bar"
+ * proc = Proc.new do
+ * $SAFE = 4
+ * foo.gsub! "a", "*"
+ * end
+ * proc.call
+ *
+ * <em>raises the exception:</em>
+ *
+ * SecurityError: Insecure: can't modify string
+ */
+
+/*
+ * Document-class: NoMemoryError
+ *
+ * Raised when memory allocation fails.
+ */
+
+/*
+ * Document-class: SystemCallError
+ *
+ * SystemCallError is the base class for all low-level
+ * platform-dependent errors.
+ *
+ * The errors available on the current platform are subclasses of
+ * SystemCallError and are defined in the Errno module.
+ *
+ * File.open("does/not/exist")
+ *
+ * <em>raises the exception:</em>
+ *
+ * Errno::ENOENT: No such file or directory - does/not/exist
+ */
+
+/*
+ * Document-class: EncodingError
+ *
+ * EncodingError is the base class for encoding errors.
+ */
+
+/*
+ * Document-class: Encoding::CompatibilityError
+ *
+ * Raised by Encoding and String methods when the source encoding is
+ * incompatible with the target encoding.
+ */
+
+/*
+ * Document-class: fatal
+ *
+ * fatal is an Exception that is raised when ruby has encountered a fatal
+ * error and must exit. You are not able to rescue fatal.
+ */
+
+/*
+ * Document-class: NameError::message
+ * :nodoc:
+ */
+
/*
* Descendants of class <code>Exception</code> are used to communicate
* between <code>raise</code> methods and <code>rescue</code>
@@ -1017,7 +1506,8 @@ syserr_eqq(VALUE self, VALUE exc)
* objects carry information about the exception---its type (the
* exception's class name), an optional descriptive string, and
* optional traceback information. Programs may subclass
- * <code>Exception</code> to add additional information.
+ * <code>Exception</code>, or more typically <code>StandardError</code>
+ * to provide custom classes and add additional information.
*/
void
@@ -1060,7 +1550,7 @@ Init_Exception(void)
rb_define_method(rb_eNameError, "name", name_err_name, 0);
rb_define_method(rb_eNameError, "to_s", name_err_to_s, 0);
rb_cNameErrorMesg = rb_define_class_under(rb_eNameError, "message", rb_cData);
- rb_define_singleton_method(rb_cNameErrorMesg, "!", name_err_mesg_new, 3);
+ rb_define_singleton_method(rb_cNameErrorMesg, "!", rb_name_err_mesg_new, NAME_ERR_MESG_COUNT);
rb_define_method(rb_cNameErrorMesg, "==", name_err_mesg_equal, 1);
rb_define_method(rb_cNameErrorMesg, "to_str", name_err_mesg_to_str, 0);
rb_define_method(rb_cNameErrorMesg, "_dump", name_err_mesg_to_str, 1);
@@ -1105,7 +1595,7 @@ rb_loaderror(const char *fmt, ...)
VALUE mesg;
va_start(args, fmt);
- mesg = rb_vsprintf(fmt, args);
+ mesg = rb_enc_vsprintf(rb_locale_encoding(), fmt, args);
va_end(args);
rb_exc_raise(rb_exc_new3(rb_eLoadError, mesg));
}
@@ -1135,24 +1625,67 @@ static VALUE
make_errno_exc(const char *mesg)
{
int n = errno;
- VALUE arg;
errno = 0;
if (n == 0) {
rb_bug("rb_sys_fail(%s) - errno == 0", mesg ? mesg : "");
}
+ return rb_syserr_new(n, mesg);
+}
+
+static VALUE
+make_errno_exc_str(VALUE mesg)
+{
+ int n = errno;
+
+ errno = 0;
+ if (!mesg) mesg = Qnil;
+ if (n == 0) {
+ const char *s = !NIL_P(mesg) ? RSTRING_PTR(mesg) : "";
+ rb_bug("rb_sys_fail_str(%s) - errno == 0", s);
+ }
+ return rb_syserr_new_str(n, mesg);
+}
+VALUE
+rb_syserr_new(int n, const char *mesg)
+{
+ VALUE arg;
arg = mesg ? rb_str_new2(mesg) : Qnil;
+ return rb_syserr_new_str(n, arg);
+}
+
+VALUE
+rb_syserr_new_str(int n, VALUE arg)
+{
return rb_class_new_instance(1, &arg, get_syserr(n));
}
void
+rb_syserr_fail(int e, const char *mesg)
+{
+ rb_exc_raise(rb_syserr_new(e, mesg));
+}
+
+void
+rb_syserr_fail_str(int e, VALUE mesg)
+{
+ rb_exc_raise(rb_syserr_new_str(e, mesg));
+}
+
+void
rb_sys_fail(const char *mesg)
{
rb_exc_raise(make_errno_exc(mesg));
}
void
+rb_sys_fail_str(VALUE mesg)
+{
+ rb_exc_raise(make_errno_exc_str(mesg));
+}
+
+void
rb_mod_sys_fail(VALUE mod, const char *mesg)
{
VALUE exc = make_errno_exc(mesg);
@@ -1161,6 +1694,30 @@ rb_mod_sys_fail(VALUE mod, const char *mesg)
}
void
+rb_mod_sys_fail_str(VALUE mod, VALUE mesg)
+{
+ VALUE exc = make_errno_exc_str(mesg);
+ rb_extend_object(exc, mod);
+ rb_exc_raise(exc);
+}
+
+void
+rb_mod_syserr_fail(VALUE mod, int e, const char *mesg)
+{
+ VALUE exc = rb_syserr_new(e, mesg);
+ rb_extend_object(exc, mod);
+ rb_exc_raise(exc);
+}
+
+void
+rb_mod_syserr_fail_str(VALUE mod, int e, VALUE mesg)
+{
+ VALUE exc = rb_syserr_new_str(e, mesg);
+ rb_extend_object(exc, mod);
+ rb_exc_raise(exc);
+}
+
+void
rb_sys_warning(const char *fmt, ...)
{
char buf[BUFSIZ];
@@ -1192,27 +1749,34 @@ rb_error_frozen(const char *what)
rb_raise(rb_eRuntimeError, "can't modify frozen %s", what);
}
+#undef rb_check_frozen
void
rb_check_frozen(VALUE obj)
{
- if (OBJ_FROZEN(obj)) rb_error_frozen(rb_obj_classname(obj));
+ rb_check_frozen_internal(obj);
}
-void Init_syserr(void)
+void
+Init_syserr(void)
{
rb_eNOERROR = set_syserr(0, "NOERROR");
+#define defined_error(name, num) set_syserr((num), (name));
+#define undefined_error(name) set_syserr(0, (name));
#include "known_errors.inc"
+#undef defined_error
+#undef undefined_error
}
static void
-err_append(const char *s)
+err_append(const char *s, rb_encoding *enc)
{
rb_thread_t *th = GET_THREAD();
VALUE err = th->errinfo;
if (th->mild_compile_error) {
if (!RTEST(err)) {
- err = rb_exc_new2(rb_eSyntaxError, s);
+ err = rb_exc_new3(rb_eSyntaxError,
+ rb_enc_str_new(s, strlen(s), enc));
th->errinfo = err;
}
else {
diff --git a/eval.c b/eval.c
index 1d5345f0a4..9ceb833d37 100644
--- a/eval.c
+++ b/eval.c
@@ -14,12 +14,15 @@
#include "eval_intern.h"
#include "iseq.h"
#include "gc.h"
+#include "ruby/vm.h"
+#include "ruby/encoding.h"
+#include "internal.h"
+#include "vm_core.h"
+
+#define numberof(array) (int)(sizeof(array) / sizeof((array)[0]))
-VALUE proc_invoke(VALUE, VALUE, VALUE, VALUE);
-VALUE rb_binding_new(void);
NORETURN(void rb_raise_jump(VALUE));
-ID rb_frame_callee(void);
VALUE rb_eLocalJumpError;
VALUE rb_eSysStackError;
@@ -30,20 +33,6 @@ VALUE rb_eSysStackError;
/* initialize ruby */
-#if defined(__APPLE__)
-#define environ (*_NSGetEnviron())
-#elif !defined(_WIN32)
-extern char **environ;
-#endif
-char **rb_origenviron;
-
-void rb_clear_trace_func(void);
-void rb_thread_stop_timer_thread(void);
-
-void rb_call_inits(void);
-void Init_heap(void);
-void Init_BareVM(void);
-
void
ruby_init(void)
{
@@ -54,8 +43,6 @@ ruby_init(void)
return;
initialized = 1;
- rb_origenviron = environ;
-
ruby_init_stack((void *)&state);
Init_BareVM();
Init_heap();
@@ -74,8 +61,6 @@ ruby_init(void)
GET_VM()->running = 1;
}
-extern void rb_clear_trace_func(void);
-
void *
ruby_options(int argc, char **argv)
{
@@ -123,8 +108,6 @@ ruby_finalize(void)
ruby_finalize_1();
}
-void rb_thread_stop_timer_thread(void);
-
int
ruby_cleanup(volatile int ex)
{
@@ -133,6 +116,14 @@ ruby_cleanup(volatile int ex)
rb_thread_t *th = GET_THREAD();
int nerr;
+ rb_threadptr_interrupt(th);
+ rb_threadptr_check_signal(th);
+ PUSH_TAG();
+ if ((state = EXEC_TAG()) == 0) {
+ SAVE_ROOT_JMPBUF(th, { RUBY_VM_CHECK_INTS(); });
+ }
+ POP_TAG();
+
errs[1] = th->errinfo;
th->safe_level = 0;
ruby_init_stack(&errs[STACK_UPPER(errs, 0, 1)]);
@@ -154,10 +145,25 @@ ruby_cleanup(volatile int ex)
th->errinfo = errs[1];
ex = error_handle(ex);
ruby_finalize_1();
+
+ /* unlock again if finalizer took mutexes. */
+ rb_threadptr_unlock_all_locking_mutexes(GET_THREAD());
POP_TAG();
- rb_thread_stop_timer_thread();
+ rb_thread_stop_timer_thread(1);
- for (nerr = 0; nerr < sizeof(errs) / sizeof(errs[0]); ++nerr) {
+#if EXIT_SUCCESS != 0 || EXIT_FAILURE != 1
+ switch (ex) {
+#if EXIT_SUCCESS != 0
+ case 0: ex = EXIT_SUCCESS; break;
+#endif
+#if EXIT_FAILURE != 1
+ case 1: ex = EXIT_FAILURE; break;
+#endif
+ }
+#endif
+
+ state = 0;
+ for (nerr = 0; nerr < numberof(errs); ++nerr) {
VALUE err = errs[nerr];
if (!RTEST(err)) continue;
@@ -166,33 +172,26 @@ ruby_cleanup(volatile int ex)
if (TYPE(err) == T_NODE) continue;
if (rb_obj_is_kind_of(err, rb_eSystemExit)) {
- return sysexit_status(err);
+ ex = sysexit_status(err);
+ break;
}
else if (rb_obj_is_kind_of(err, rb_eSignal)) {
VALUE sig = rb_iv_get(err, "signo");
- ruby_default_signal(NUM2INT(sig));
+ state = NUM2INT(sig);
+ break;
}
- else if (ex == 0) {
- ex = 1;
+ else if (ex == EXIT_SUCCESS) {
+ ex = EXIT_FAILURE;
}
}
-
-#if EXIT_SUCCESS != 0 || EXIT_FAILURE != 1
- switch (ex) {
-#if EXIT_SUCCESS != 0
- case 0: return EXIT_SUCCESS;
-#endif
-#if EXIT_FAILURE != 1
- case 1: return EXIT_FAILURE;
-#endif
- }
-#endif
+ ruby_vm_destruct(GET_VM());
+ if (state) ruby_default_signal(state);
return ex;
}
-int
-ruby_exec_node(void *n, const char *file)
+static int
+ruby_exec_internal(void *n)
{
volatile int state;
VALUE iseq = (VALUE)n;
@@ -218,24 +217,43 @@ ruby_stop(int ex)
}
int
-ruby_run_node(void *n)
+ruby_executable_node(void *n, int *status)
{
VALUE v = (VALUE)n;
+ int s;
switch (v) {
- case Qtrue: return EXIT_SUCCESS;
- case Qfalse: return EXIT_FAILURE;
+ case Qtrue: s = EXIT_SUCCESS; break;
+ case Qfalse: s = EXIT_FAILURE; break;
+ default:
+ if (!FIXNUM_P(v)) return TRUE;
+ s = FIX2INT(v);
}
- if (FIXNUM_P(v)) {
- return FIX2INT(v);
+ if (status) *status = s;
+ return FALSE;
+}
+
+int
+ruby_run_node(void *n)
+{
+ int status;
+ if (!ruby_executable_node(n, &status)) {
+ ruby_cleanup(0);
+ return status;
}
+ return ruby_cleanup(ruby_exec_node(n));
+}
+
+int
+ruby_exec_node(void *n)
+{
ruby_init_stack((void *)&n);
- return ruby_cleanup(ruby_exec_node(n, 0));
+ return ruby_exec_internal(n);
}
/*
* call-seq:
- * Module.nesting => array
+ * Module.nesting -> array
*
* Returns the list of +Modules+ nested at the point of call.
*
@@ -256,7 +274,8 @@ rb_mod_nesting(void)
while (cref && cref->nd_next) {
VALUE klass = cref->nd_clss;
- if (!NIL_P(klass)) {
+ if (!(cref->flags & NODE_FL_CREF_PUSHED_BY_EVAL) &&
+ !NIL_P(klass)) {
rb_ary_push(ary, klass);
}
cref = cref->nd_next;
@@ -266,16 +285,24 @@ rb_mod_nesting(void)
/*
* call-seq:
- * Module.constants => array
+ * Module.constants -> array
+ * Module.constants(inherited) -> array
*
- * Returns an array of the names of all constants defined in the
- * system. This list includes the names of all modules and classes.
+ * In the first form, returns an array of the names of all
+ * constants accessible from the point of call.
+ * This list includes the names of all modules and classes
+ * defined in the global scope.
*
- * p Module.constants.sort[1..5]
+ * Module.constants.first(4)
+ * # => [:ARGF, :ARGV, :ArgumentError, :Array]
*
- * <em>produces:</em>
+ * Module.constants.include?(:SEEK_SET) # => false
+ *
+ * class IO
+ * Module.constants.include?(:SEEK_SET) # => true
+ * end
*
- * ["ARGV", "ArgumentError", "Array", "Bignum", "Binding"]
+ * The second form calls the instance method +constants+.
*/
static VALUE
@@ -292,7 +319,8 @@ rb_mod_s_constants(int argc, VALUE *argv, VALUE mod)
while (cref) {
klass = cref->nd_clss;
- if (!NIL_P(klass)) {
+ if (!(cref->flags & NODE_FL_CREF_PUSHED_BY_EVAL) &&
+ !NIL_P(klass)) {
data = rb_mod_const_at(cref->nd_clss, data);
if (!cbase) {
cbase = klass;
@@ -333,21 +361,17 @@ rb_frozen_class_p(VALUE klass)
NORETURN(static void rb_longjmp(int, volatile VALUE));
static void
-rb_longjmp(int tag, volatile VALUE mesg)
+setup_exception(rb_thread_t *th, int tag, volatile VALUE mesg)
{
VALUE at;
VALUE e;
- rb_thread_t *th = GET_THREAD();
const char *file;
volatile int line = 0;
- if (rb_thread_set_raised(th)) {
- th->errinfo = exception_error;
- JUMP_TAG(TAG_FATAL);
- }
-
- if (NIL_P(mesg))
+ if (NIL_P(mesg)) {
mesg = th->errinfo;
+ if (INTERNAL_EXCEPTION_P(mesg)) JUMP_TAG(TAG_FATAL);
+ }
if (NIL_P(mesg)) {
mesg = rb_exc_new(rb_eRuntimeError, 0, 0);
}
@@ -355,13 +379,20 @@ rb_longjmp(int tag, volatile VALUE mesg)
file = rb_sourcefile();
if (file) line = rb_sourceline();
if (file && !NIL_P(mesg)) {
- at = get_backtrace(mesg);
- if (NIL_P(at)) {
- at = rb_make_backtrace();
- if (OBJ_FROZEN(mesg)) {
- mesg = rb_obj_dup(mesg);
+ if (mesg == sysstack_error) {
+ at = rb_enc_sprintf(rb_usascii_encoding(), "%s:%d", file, line);
+ at = rb_ary_new3(1, at);
+ rb_iv_set(mesg, "bt", at);
+ }
+ else {
+ at = get_backtrace(mesg);
+ if (NIL_P(at)) {
+ at = rb_make_backtrace();
+ if (OBJ_FROZEN(mesg)) {
+ mesg = rb_obj_dup(mesg);
+ }
+ set_backtrace(mesg, at);
}
- set_backtrace(mesg, at);
}
}
if (!NIL_P(mesg)) {
@@ -375,11 +406,16 @@ rb_longjmp(int tag, volatile VALUE mesg)
PUSH_TAG();
if ((status = EXEC_TAG()) == 0) {
RB_GC_GUARD(e) = rb_obj_as_string(e);
- if (file) {
+ if (file && line) {
warn_printf("Exception `%s' at %s:%d - %s\n",
rb_obj_classname(th->errinfo),
file, line, RSTRING_PTR(e));
}
+ else if (file) {
+ warn_printf("Exception `%s' at %s - %s\n",
+ rb_obj_classname(th->errinfo),
+ file, RSTRING_PTR(e));
+ }
else {
warn_printf("Exception `%s' - %s\n",
rb_obj_classname(th->errinfo),
@@ -391,31 +427,50 @@ rb_longjmp(int tag, volatile VALUE mesg)
th->errinfo = mesg;
}
else if (status) {
- rb_thread_reset_raised(th);
+ rb_threadptr_reset_raised(th);
JUMP_TAG(status);
}
}
+ if (rb_threadptr_set_raised(th)) {
+ th->errinfo = exception_error;
+ rb_threadptr_reset_raised(th);
+ JUMP_TAG(TAG_FATAL);
+ }
+
rb_trap_restore_mask();
if (tag != TAG_FATAL) {
- EXEC_EVENT_HOOK(th, RUBY_EVENT_RAISE, th->cfp->self,
- 0 /* TODO: id */, 0 /* TODO: klass */);
+ EXEC_EVENT_HOOK(th, RUBY_EVENT_RAISE, th->cfp->self, 0, 0);
}
+}
+static void
+rb_longjmp(int tag, volatile VALUE mesg)
+{
+ rb_thread_t *th = GET_THREAD();
+ setup_exception(th, tag, mesg);
rb_thread_raised_clear(th);
JUMP_TAG(tag);
}
+static VALUE make_exception(int argc, VALUE *argv, int isstr);
+
void
rb_exc_raise(VALUE mesg)
{
+ if (!NIL_P(mesg)) {
+ mesg = make_exception(1, &mesg, FALSE);
+ }
rb_longjmp(TAG_RAISE, mesg);
}
void
rb_exc_fatal(VALUE mesg)
{
+ if (!NIL_P(mesg)) {
+ mesg = make_exception(1, &mesg, FALSE);
+ }
rb_longjmp(TAG_FATAL, mesg);
}
@@ -466,8 +521,8 @@ rb_f_raise(int argc, VALUE *argv)
return Qnil; /* not reached */
}
-VALUE
-rb_make_exception(int argc, VALUE *argv)
+static VALUE
+make_exception(int argc, VALUE *argv, int isstr)
{
VALUE mesg;
ID exception;
@@ -480,10 +535,12 @@ rb_make_exception(int argc, VALUE *argv)
case 1:
if (NIL_P(argv[0]))
break;
- mesg = rb_check_string_type(argv[0]);
- if (!NIL_P(mesg)) {
- mesg = rb_exc_new3(rb_eRuntimeError, mesg);
- break;
+ if (isstr) {
+ mesg = rb_check_string_type(argv[0]);
+ if (!NIL_P(mesg)) {
+ mesg = rb_exc_new3(rb_eRuntimeError, mesg);
+ break;
+ }
}
n = 0;
goto exception_call;
@@ -492,14 +549,15 @@ rb_make_exception(int argc, VALUE *argv)
case 3:
n = 1;
exception_call:
+ if (argv[0] == sysstack_error) return argv[0];
CONST_ID(exception, "exception");
- if (!rb_respond_to(argv[0], exception)) {
+ mesg = rb_check_funcall(argv[0], exception, n, argv+1);
+ if (mesg == Qundef) {
rb_raise(rb_eTypeError, "exception class/object expected");
}
- mesg = rb_funcall(argv[0], exception, n, argv[1]);
break;
default:
- rb_raise(rb_eArgError, "wrong number of arguments");
+ rb_raise(rb_eArgError, "wrong number of arguments (%d for 0..3)", argc);
break;
}
if (argc > 0) {
@@ -512,13 +570,28 @@ rb_make_exception(int argc, VALUE *argv)
return mesg;
}
+VALUE
+rb_make_exception(int argc, VALUE *argv)
+{
+ return make_exception(argc, argv, TRUE);
+}
+
void
rb_raise_jump(VALUE mesg)
{
rb_thread_t *th = GET_THREAD();
+ rb_control_frame_t *cfp = th->cfp;
+ VALUE klass = cfp->me->klass;
+ VALUE self = cfp->self;
+ ID mid = cfp->me->called_id;
+
th->cfp = RUBY_VM_PREVIOUS_CONTROL_FRAME(th->cfp);
- /* TODO: fix me */
- rb_longjmp(TAG_RAISE, mesg);
+
+ setup_exception(th, TAG_RAISE, mesg);
+
+ EXEC_EVENT_HOOK(th, RUBY_EVENT_C_RETURN, self, mid, klass);
+ rb_thread_raised_clear(th);
+ JUMP_TAG(TAG_RAISE);
}
void
@@ -534,10 +607,10 @@ rb_block_given_p(void)
if ((th->cfp->lfp[0] & 0x02) == 0 &&
GC_GUARDED_PTR_REF(th->cfp->lfp[0])) {
- return Qtrue;
+ return TRUE;
}
else {
- return Qfalse;
+ return FALSE;
}
}
@@ -577,13 +650,13 @@ rb_rescue2(VALUE (* b_proc) (ANYARGS), VALUE data1,
th->cfp = cfp; /* restore */
if (state == TAG_RAISE) {
- int handle = Qfalse;
+ int handle = FALSE;
VALUE eclass;
va_init_list(args, data2);
while ((eclass = va_arg(args, VALUE)) != 0) {
if (rb_obj_is_kind_of(th->errinfo, eclass)) {
- handle = Qtrue;
+ handle = TRUE;
break;
}
}
@@ -634,19 +707,19 @@ rb_protect(VALUE (* proc) (VALUE), VALUE data, int * state)
int status;
rb_thread_t *th = GET_THREAD();
rb_control_frame_t *cfp = th->cfp;
- struct rb_vm_trap_tag trap_tag;
+ struct rb_vm_protect_tag protect_tag;
rb_jmpbuf_t org_jmpbuf;
- trap_tag.prev = th->trap_tag;
+ protect_tag.prev = th->protect_tag;
PUSH_TAG();
- th->trap_tag = &trap_tag;
+ th->protect_tag = &protect_tag;
MEMCPY(&org_jmpbuf, &(th)->root_jmpbuf, rb_jmpbuf_t, 1);
if ((status = EXEC_TAG()) == 0) {
SAVE_ROOT_JMPBUF(th, result = (*proc) (data));
}
MEMCPY(&(th)->root_jmpbuf, &org_jmpbuf, rb_jmpbuf_t, 1);
- th->trap_tag = trap_tag.prev;
+ th->protect_tag = protect_tag.prev;
POP_TAG();
if (state) {
@@ -679,17 +752,40 @@ rb_ensure(VALUE (*b_proc)(ANYARGS), VALUE data1, VALUE (*e_proc)(ANYARGS), VALUE
return result;
}
+static const rb_method_entry_t *
+method_entry_of_iseq(rb_control_frame_t *cfp, rb_iseq_t *iseq)
+{
+ rb_thread_t *th = GET_THREAD();
+ rb_control_frame_t *cfp_limit;
+
+ cfp_limit = (rb_control_frame_t *)(th->stack + th->stack_size);
+ while (cfp_limit > cfp) {
+ if (cfp->iseq == iseq)
+ return cfp->me;
+ cfp = RUBY_VM_PREVIOUS_CONTROL_FRAME(cfp);
+ }
+ return 0;
+}
+
static ID
frame_func_id(rb_control_frame_t *cfp)
{
+ const rb_method_entry_t *me_local;
rb_iseq_t *iseq = cfp->iseq;
- if (!iseq) {
- return cfp->method_id;
+ if (cfp->me) {
+ return cfp->me->def->original_id;
}
while (iseq) {
if (RUBY_VM_IFUNC_P(iseq)) {
+ NODE *ifunc = (NODE *)iseq;
+ if (ifunc->nd_aid) return ifunc->nd_aid;
return rb_intern("<ifunc>");
}
+ me_local = method_entry_of_iseq(cfp, iseq);
+ if (me_local) {
+ cfp->me = me_local;
+ return me_local->def->original_id;
+ }
if (iseq->defined_method_id) {
return iseq->defined_method_id;
}
@@ -734,7 +830,7 @@ rb_frame_pop(void)
/*
* call-seq:
- * append_features(mod) => mod
+ * append_features(mod) -> mod
*
* When this module is included in another, Ruby calls
* <code>append_features</code> in this module, passing it the
@@ -762,9 +858,9 @@ rb_mod_append_features(VALUE module, VALUE include)
/*
* call-seq:
- * include(module, ...) => self
+ * include(module, ...) -> self
*
- * Invokes <code>Module.append_features</code> on each parameter in turn.
+ * Invokes <code>Module.append_features</code> on each parameter in reverse order.
*/
static VALUE
@@ -796,7 +892,7 @@ rb_extend_object(VALUE obj, VALUE module)
/*
* call-seq:
- * extend_object(obj) => obj
+ * extend_object(obj) -> obj
*
* Extends the specified object by adding this module's constants and
* methods (which are added as singleton methods). This is the callback
@@ -830,7 +926,7 @@ rb_mod_extend_object(VALUE mod, VALUE obj)
/*
* call-seq:
- * obj.extend(module, ...) => obj
+ * obj.extend(module, ...) -> obj
*
* Adds to _obj_ the instance methods from each module given as a
* parameter.
@@ -859,7 +955,7 @@ rb_obj_extend(int argc, VALUE *argv, VALUE obj)
int i;
if (argc == 0) {
- rb_raise(rb_eArgError, "wrong number of arguments (0 for 1)");
+ rb_raise(rb_eArgError, "wrong number of arguments (at least 1)");
}
for (i = 0; i < argc; i++)
Check_Type(argv[i], T_MODULE);
@@ -872,7 +968,7 @@ rb_obj_extend(int argc, VALUE *argv, VALUE obj)
/*
* call-seq:
- * include(module, ...) => self
+ * include(module, ...) -> self
*
* Invokes <code>Module.append_features</code>
* on each parameter in turn. Effectively adds the methods and constants
@@ -893,13 +989,9 @@ top_include(int argc, VALUE *argv, VALUE self)
return rb_mod_include(argc, argv, rb_cObject);
}
-VALUE rb_f_trace_var();
-VALUE rb_f_untrace_var();
-
static VALUE *
-errinfo_place(void)
+errinfo_place(rb_thread_t *th)
{
- rb_thread_t *th = GET_THREAD();
rb_control_frame_t *cfp = th->cfp;
rb_control_frame_t *end_cfp = RUBY_VM_END_CONTROL_FRAME(th);
@@ -920,19 +1012,24 @@ errinfo_place(void)
}
static VALUE
-get_errinfo(void)
+get_thread_errinfo(rb_thread_t *th)
{
- VALUE *ptr = errinfo_place();
+ VALUE *ptr = errinfo_place(th);
if (ptr) {
return *ptr;
}
else {
- rb_thread_t *th = GET_THREAD();
return th->errinfo;
}
}
static VALUE
+get_errinfo(void)
+{
+ return get_thread_errinfo(GET_THREAD());
+}
+
+static VALUE
errinfo_getter(ID id)
{
return get_errinfo();
@@ -946,7 +1043,7 @@ errinfo_setter(VALUE val, ID id, VALUE *var)
rb_raise(rb_eTypeError, "assigning non-exception to $!");
}
else {
- VALUE *ptr = errinfo_place();
+ VALUE *ptr = errinfo_place(GET_THREAD());
if (ptr) {
*ptr = val;
}
@@ -1003,8 +1100,8 @@ errat_setter(VALUE val, ID id, VALUE *var)
/*
* call-seq:
- * __method__ => symbol
- * __callee__ => symbol
+ * __method__ -> symbol
+ * __callee__ -> symbol
*
* Returns the name of the current method as a Symbol.
* If called outside of a method, it returns <code>nil</code>.
@@ -1044,12 +1141,8 @@ Init_eval(void)
rb_undef_method(rb_cClass, "module_function");
- {
- extern void Init_vm_eval(void);
- extern void Init_eval_method(void);
- Init_vm_eval();
- Init_eval_method();
- }
+ Init_vm_eval();
+ Init_eval_method();
rb_define_singleton_method(rb_cModule, "nesting", rb_mod_nesting, 0);
rb_define_singleton_method(rb_cModule, "constants", rb_mod_s_constants, -1);
@@ -1063,7 +1156,6 @@ Init_eval(void)
exception_error = rb_exc_new3(rb_eFatal,
rb_obj_freeze(rb_str_new2("exception reentered")));
- rb_ivar_set(exception_error, idThrowState, INT2FIX(TAG_FATAL));
OBJ_TAINT(exception_error);
OBJ_FREEZE(exception_error);
}
diff --git a/eval_error.c b/eval_error.c
index ce6bd234f1..fd06adf92d 100644
--- a/eval_error.c
+++ b/eval_error.c
@@ -16,7 +16,7 @@ warn_printf(const char *fmt, ...)
}
#define warn_print(x) rb_write_error(x)
-#define warn_print2(x,l) rb_write_error2(x,l)
+#define warn_print2(x,l) rb_write_error2((x),(l))
static void
error_pos(void)
@@ -38,8 +38,6 @@ error_pos(void)
}
}
-VALUE rb_check_backtrace(VALUE);
-
static VALUE
get_backtrace(VALUE info)
{
@@ -67,13 +65,16 @@ static void
error_print(void)
{
volatile VALUE errat = Qnil; /* OK */
- VALUE errinfo = GET_THREAD()->errinfo;
+ rb_thread_t *th = GET_THREAD();
+ VALUE errinfo = th->errinfo;
+ int raised_flag = th->raised_flag;
volatile VALUE eclass, e;
const char *volatile einfo;
volatile long elen;
if (NIL_P(errinfo))
return;
+ rb_thread_raised_clear(th);
PUSH_TAG();
if (EXEC_TAG() == 0) {
@@ -87,10 +88,12 @@ error_print(void)
if (NIL_P(errat)) {
const char *file = rb_sourcefile();
int line = rb_sourceline();
- if (file)
- warn_printf("%s:%d", file, line);
- else
+ if (!file)
warn_printf("%d", line);
+ else if (!line)
+ warn_printf("%s", file);
+ else
+ warn_printf("%s:%d", file, line);
}
else if (RARRAY_LEN(errat) == 0) {
error_pos();
@@ -177,6 +180,7 @@ error_print(void)
}
error:
POP_TAG();
+ rb_thread_raised_set(th, raised_flag);
}
void
@@ -215,7 +219,7 @@ error_handle(int ex)
int status = EXIT_FAILURE;
rb_thread_t *th = GET_THREAD();
- if (rb_thread_set_raised(th))
+ if (rb_threadptr_set_raised(th))
return EXIT_FAILURE;
switch (ex & TAG_MASK) {
case 0:
@@ -267,6 +271,6 @@ error_handle(int ex)
rb_bug("Unknown longjmp status %d", ex);
break;
}
- rb_thread_reset_raised(th);
+ rb_threadptr_reset_raised(th);
return status;
}
diff --git a/eval_intern.h b/eval_intern.h
index 09ecf44312..483e711c34 100644
--- a/eval_intern.h
+++ b/eval_intern.h
@@ -65,7 +65,7 @@ char *strrchr(const char *, const char);
#endif
#define ruby_setjmp(env) RUBY_SETJMP(env)
-#define ruby_longjmp(env,val) RUBY_LONGJMP(env,val)
+#define ruby_longjmp(env,val) RUBY_LONGJMP((env),(val))
#ifdef __CYGWIN__
# ifndef _setjmp
int _setjmp(jmp_buf);
@@ -90,7 +90,8 @@ NORETURN(void _longjmp(jmp_buf, int));
So following definition is required to use select_large_fdset.
*/
#ifdef HAVE_SELECT_LARGE_FDSET
-#define select(n, r, w, e, t) select_large_fdset(n, r, w, e, t)
+#define select(n, r, w, e, t) select_large_fdset((n), (r), (w), (e), (t))
+extern int select_large_fdset(int, fd_set *, fd_set *, fd_set *, struct timeval *);
#endif
#ifdef HAVE_SYS_PARAM_H
@@ -108,7 +109,7 @@ NORETURN(void _longjmp(jmp_buf, int));
} while (0)
#define TH_PUSH_TAG(th) do { \
- rb_thread_t * const _th = th; \
+ rb_thread_t * const _th = (th); \
struct rb_vm_tag _tag; \
_tag.tag = 0; \
_tag.prev = _th->tag; \
@@ -130,10 +131,12 @@ NORETURN(void _longjmp(jmp_buf, int));
TH_EXEC_TAG()
#define TH_JUMP_TAG(th, st) do { \
- ruby_longjmp(th->tag->buf,(st)); \
+ ruby_longjmp((th)->tag->buf,(st)); \
} while (0)
-#define JUMP_TAG(st) TH_JUMP_TAG(GET_THREAD(), st)
+#define JUMP_TAG(st) TH_JUMP_TAG(GET_THREAD(), (st))
+
+#define INTERNAL_EXCEPTION_P(exc) FIXNUM_P(exc)
enum ruby_tag_type {
RUBY_TAG_RETURN = 0x1,
@@ -157,7 +160,7 @@ enum ruby_tag_type {
#define TAG_MASK RUBY_TAG_MASK
#define NEW_THROW_OBJECT(val, pt, st) \
- ((VALUE)NEW_NODE(NODE_LIT, (val), (pt), (st)))
+ ((VALUE)rb_node_newnode(NODE_LIT, (VALUE)(val), (VALUE)(pt), (VALUE)(st)))
#define SET_THROWOBJ_CATCH_POINT(obj, val) \
(RNODE((obj))->u2.value = (val))
#define SET_THROWOBJ_STATE(obj, val) \
@@ -172,7 +175,7 @@ enum ruby_tag_type {
#define SCOPE_SET(f) (rb_vm_cref()->nd_visi = (f))
#define CHECK_STACK_OVERFLOW(cfp, margin) do \
- if (((VALUE *)(cfp)->sp) + (margin) + sizeof(rb_control_frame_t) >= ((VALUE *)cfp)) { \
+ if ((VALUE *)((char *)(((VALUE *)(cfp)->sp) + (margin)) + sizeof(rb_control_frame_t)) >= ((VALUE *)(cfp))) { \
rb_exc_raise(sysstack_error); \
} \
while (0)
@@ -185,8 +188,8 @@ enum {
RAISED_STACKOVERFLOW = 2,
RAISED_NOMEMORY = 4
};
-int rb_thread_set_raised(rb_thread_t *th);
-int rb_thread_reset_raised(rb_thread_t *th);
+int rb_threadptr_set_raised(rb_thread_t *th);
+int rb_threadptr_reset_raised(rb_thread_t *th);
#define rb_thread_raised_set(th, f) ((th)->raised_flag |= (f))
#define rb_thread_raised_reset(th, f) ((th)->raised_flag &= ~(f))
#define rb_thread_raised_p(th, f) (((th)->raised_flag & (f)) != 0)
@@ -205,7 +208,6 @@ NORETURN(void rb_raise_method_missing(rb_thread_t *th, int argc, VALUE *argv,
VALUE rb_vm_make_jump_tag_but_local_jump(int state, VALUE val);
NODE *rb_vm_cref(void);
-VALUE rb_obj_is_proc(VALUE);
VALUE rb_vm_call_cfunc(VALUE recv, VALUE (*func)(VALUE), VALUE arg, const rb_block_t *blockptr, VALUE filename);
void rb_vm_set_progname(VALUE filename);
void rb_thread_terminate_all(void);
@@ -214,7 +216,7 @@ VALUE rb_vm_cbase(void);
void rb_trap_restore_mask(void);
#ifndef CharNext /* defined as CharNext[AW] on Windows. */
-#define CharNext(p) ((p) + mblen(p, RUBY_MBCHAR_MAXSIZE))
+#define CharNext(p) ((p) + mblen((p), RUBY_MBCHAR_MAXSIZE))
#endif
#if defined DOSISH || defined __CYGWIN__
diff --git a/eval_jump.c b/eval_jump.c
index 18b6835c9c..a8f04808ca 100644
--- a/eval_jump.c
+++ b/eval_jump.c
@@ -54,7 +54,7 @@ struct end_proc_data {
struct end_proc_data *next;
};
-static struct end_proc_data *end_procs, *ephemeral_end_procs, *tmp_end_procs;
+static struct end_proc_data *end_procs, *ephemeral_end_procs;
void
rb_set_end_proc(void (*func)(VALUE), VALUE data)
@@ -91,56 +91,45 @@ rb_mark_end_proc(void)
rb_gc_mark(link->data);
link = link->next;
}
- link = tmp_end_procs;
- while (link) {
- rb_gc_mark(link->data);
- link = link->next;
- }
}
void
rb_exec_end_proc(void)
{
struct end_proc_data *volatile link;
- struct end_proc_data *tmp;
int status;
volatile int safe = rb_safe_level();
while (ephemeral_end_procs) {
- tmp_end_procs = link = ephemeral_end_procs;
- ephemeral_end_procs = 0;
- while (link) {
- PUSH_TAG();
- if ((status = EXEC_TAG()) == 0) {
- rb_set_safe_level_force(link->safe);
- (*link->func) (link->data);
- }
- POP_TAG();
- if (status) {
- error_handle(status);
- }
- tmp = link;
- tmp_end_procs = link = link->next;
- xfree(tmp);
+ link = ephemeral_end_procs;
+ ephemeral_end_procs = link->next;
+
+ PUSH_TAG();
+ if ((status = EXEC_TAG()) == 0) {
+ rb_set_safe_level_force(link->safe);
+ (*link->func) (link->data);
}
+ POP_TAG();
+ if (status) {
+ error_handle(status);
+ }
+ xfree(link);
}
+
while (end_procs) {
- tmp_end_procs = link = end_procs;
- end_procs = 0;
- while (link) {
- PUSH_TAG();
- if ((status = EXEC_TAG()) == 0) {
- rb_set_safe_level_force(link->safe);
- (*link->func) (link->data);
- }
- POP_TAG();
- if (status) {
- error_handle(status);
- }
- tmp = link;
- tmp_end_procs = link = link->next;
- xfree(tmp);
+ link = end_procs;
+ end_procs = link->next;
+
+ PUSH_TAG();
+ if ((status = EXEC_TAG()) == 0) {
+ rb_set_safe_level_force(link->safe);
+ (*link->func) (link->data);
+ }
+ POP_TAG();
+ if (status) {
+ error_handle(status);
}
+ xfree(link);
}
rb_set_safe_level_force(safe);
}
diff --git a/ext/-test-/add_suffix/bug.c b/ext/-test-/add_suffix/bug.c
new file mode 100644
index 0000000000..3dc1201b6e
--- /dev/null
+++ b/ext/-test-/add_suffix/bug.c
@@ -0,0 +1,32 @@
+static unsigned long ruby_scan_oct();
+static unsigned long ruby_scan_hex();
+static unsigned long ruby_strtoul();
+static void ruby_qsort();
+static char *ruby_strdup();
+static char *ruby_getcwd();
+static double ruby_strtod();
+static char *ruby_dtoa();
+static void ruby_each_words();
+static char *ruby_hdtoa();
+#include "ruby.h"
+#include "ruby/defines.h"
+#include "ruby/util.h"
+#ifndef HAVE_RUBY_ADD_SUFFIX
+#define _WIN32 1
+#include "util.c"
+#endif
+
+static VALUE
+add_suffix(VALUE self, VALUE path, VALUE suffix)
+{
+ StringValueCStr(path);
+ ruby_add_suffix(path, StringValueCStr(suffix));
+ return path;
+}
+
+void
+Init_bug(void)
+{
+ VALUE mBug = rb_define_module("Bug");
+ rb_define_module_function(mBug, "add_suffix", add_suffix, 2);
+}
diff --git a/ext/-test-/add_suffix/depend b/ext/-test-/add_suffix/depend
new file mode 100644
index 0000000000..943d0d9f21
--- /dev/null
+++ b/ext/-test-/add_suffix/depend
@@ -0,0 +1 @@
+bug.o: $(hdrdir)/ruby/util.h $(top_srcdir)/util.c
diff --git a/ext/-test-/add_suffix/extconf.rb b/ext/-test-/add_suffix/extconf.rb
new file mode 100644
index 0000000000..bffd1550f3
--- /dev/null
+++ b/ext/-test-/add_suffix/extconf.rb
@@ -0,0 +1,4 @@
+unless have_func("ruby_add_suffix", "ruby/util.h")
+ $INCFLAGS << " -I$(top_srcdir)"
+end
+create_makefile("-test-/add_suffix/bug")
diff --git a/ext/-test-/array/resize/extconf.rb b/ext/-test-/array/resize/extconf.rb
new file mode 100644
index 0000000000..6500a878fc
--- /dev/null
+++ b/ext/-test-/array/resize/extconf.rb
@@ -0,0 +1 @@
+create_makefile("-test-/array/resize")
diff --git a/ext/-test-/array/resize/resize.c b/ext/-test-/array/resize/resize.c
new file mode 100644
index 0000000000..08bcee3e7a
--- /dev/null
+++ b/ext/-test-/array/resize/resize.c
@@ -0,0 +1,14 @@
+#include "ruby/ruby.h"
+
+static VALUE
+ary_resize(VALUE ary, VALUE len)
+{
+ rb_ary_resize(ary, NUM2LONG(len));
+ return ary;
+}
+
+void
+Init_resize(void)
+{
+ rb_define_method(rb_cArray, "__resize__", ary_resize, 1);
+}
diff --git a/ext/-test-/bug-3571/bug.c b/ext/-test-/bug-3571/bug.c
new file mode 100644
index 0000000000..72d6bd1021
--- /dev/null
+++ b/ext/-test-/bug-3571/bug.c
@@ -0,0 +1,23 @@
+#include <ruby.h>
+
+static VALUE
+bug_i(VALUE i, VALUE arg)
+{
+ rb_notimplement();
+ return ID2SYM(rb_frame_this_func());
+}
+
+static VALUE
+bug_start(VALUE self, VALUE hash)
+{
+ VALUE ary = rb_ary_new3(1, Qnil);
+ rb_block_call(ary, rb_intern("map"), 0, 0, bug_i, self);
+ return ary;
+}
+
+void
+Init_bug(void)
+{
+ VALUE mBug = rb_define_module("Bug");
+ rb_define_module_function(mBug, "start", bug_start, 0);
+}
diff --git a/ext/-test-/bug-3571/extconf.rb b/ext/-test-/bug-3571/extconf.rb
new file mode 100644
index 0000000000..6390fce219
--- /dev/null
+++ b/ext/-test-/bug-3571/extconf.rb
@@ -0,0 +1 @@
+create_makefile("-test-/bug-3571/bug")
diff --git a/ext/-test-/bug-3662/bug.c b/ext/-test-/bug-3662/bug.c
new file mode 100644
index 0000000000..9375dace10
--- /dev/null
+++ b/ext/-test-/bug-3662/bug.c
@@ -0,0 +1,16 @@
+#include <ruby.h>
+
+static VALUE
+bug_funcall(int argc, VALUE *argv, VALUE self)
+{
+ if (argc < 1) rb_raise(rb_eArgError, "not enough argument");
+ return rb_funcall2(self, rb_to_id(*argv), argc-1, argv+1);
+}
+
+void
+Init_bug(void)
+{
+ VALUE mBug = rb_define_module("Bug");
+ rb_define_module_function(mBug, "funcall", bug_funcall, -1);
+ rb_define_module_function(mBug, "notimplement", rb_f_notimplement, -1);
+}
diff --git a/ext/-test-/bug-3662/extconf.rb b/ext/-test-/bug-3662/extconf.rb
new file mode 100644
index 0000000000..7a1b73023c
--- /dev/null
+++ b/ext/-test-/bug-3662/extconf.rb
@@ -0,0 +1 @@
+create_makefile("-test-/bug-3662/bug")
diff --git a/ext/-test-/funcall/extconf.rb b/ext/-test-/funcall/extconf.rb
new file mode 100644
index 0000000000..8a9179ab2f
--- /dev/null
+++ b/ext/-test-/funcall/extconf.rb
@@ -0,0 +1,2 @@
+require 'mkmf'
+create_makefile("-test-/funcall/funcall")
diff --git a/ext/-test-/funcall/passing_block.c b/ext/-test-/funcall/passing_block.c
new file mode 100644
index 0000000000..0200f80369
--- /dev/null
+++ b/ext/-test-/funcall/passing_block.c
@@ -0,0 +1,30 @@
+#include "ruby.h"
+
+VALUE rb_funcall_passing_block(VALUE, ID, int, const VALUE*);
+
+static VALUE
+with_funcall2(int argc, VALUE *argv, VALUE self)
+{
+ return rb_funcall2(self, rb_intern("target"), argc, argv);
+}
+
+static VALUE
+with_funcall_passing_block(int argc, VALUE *argv, VALUE self)
+{
+ return rb_funcall_passing_block(self, rb_intern("target"), argc, argv);
+}
+
+void
+Init_funcall(void)
+{
+ VALUE cRelay = rb_path2class("TestFuncall::Relay");
+
+ rb_define_singleton_method(cRelay,
+ "with_funcall2",
+ with_funcall2,
+ -1);
+ rb_define_singleton_method(cRelay,
+ "with_funcall_passing_block",
+ with_funcall_passing_block,
+ -1);
+}
diff --git a/ext/-test-/load/dot.dot/dot.dot.c b/ext/-test-/load/dot.dot/dot.dot.c
new file mode 100644
index 0000000000..936d28931a
--- /dev/null
+++ b/ext/-test-/load/dot.dot/dot.dot.c
@@ -0,0 +1 @@
+void Init_dot(void) {}
diff --git a/ext/-test-/load/dot.dot/extconf.rb b/ext/-test-/load/dot.dot/extconf.rb
new file mode 100644
index 0000000000..6287db6bd8
--- /dev/null
+++ b/ext/-test-/load/dot.dot/extconf.rb
@@ -0,0 +1 @@
+create_makefile("-test-/load/dot.dot/dot.dot")
diff --git a/ext/-test-/old_thread_select/depend b/ext/-test-/old_thread_select/depend
new file mode 100644
index 0000000000..a2bc836e1f
--- /dev/null
+++ b/ext/-test-/old_thread_select/depend
@@ -0,0 +1,2 @@
+old_thread_select.o: $(top_srcdir)/thread.c \
+ $(hdrdir)/ruby/ruby.h $(hdrdir)/ruby/io.h
diff --git a/ext/-test-/old_thread_select/extconf.rb b/ext/-test-/old_thread_select/extconf.rb
new file mode 100644
index 0000000000..8b410218fa
--- /dev/null
+++ b/ext/-test-/old_thread_select/extconf.rb
@@ -0,0 +1 @@
+create_makefile("-test-/old_thread_select/old_thread_select")
diff --git a/ext/-test-/old_thread_select/old_thread_select.c b/ext/-test-/old_thread_select/old_thread_select.c
new file mode 100644
index 0000000000..e374f02355
--- /dev/null
+++ b/ext/-test-/old_thread_select/old_thread_select.c
@@ -0,0 +1,75 @@
+/* test case for deprecated C API */
+#include "ruby/ruby.h"
+#include "ruby/io.h"
+
+static fd_set * array2fdset(fd_set *fds, VALUE ary, int *max)
+{
+ long i;
+
+ if (NIL_P(ary))
+ return NULL;
+
+ FD_ZERO(fds);
+ Check_Type(ary, T_ARRAY);
+ for (i = 0; i < RARRAY_LEN(ary); i++) {
+ VALUE val = RARRAY_PTR(ary)[i];
+ int fd;
+
+ Check_Type(val, T_FIXNUM);
+ fd = FIX2INT(val);
+ if (fd >= *max)
+ *max = fd + 1;
+ FD_SET(fd, fds);
+ }
+
+ return fds;
+}
+
+static void fdset2array(VALUE dst, fd_set *fds, int max)
+{
+ int i;
+
+ rb_ary_clear(dst);
+
+ for (i = 0; i < max; i++) {
+ if (FD_ISSET(i, fds))
+ rb_ary_push(dst, INT2NUM(i));
+ }
+}
+
+static VALUE
+old_thread_select(VALUE klass, VALUE r, VALUE w, VALUE e, VALUE timeout)
+{
+ struct timeval tv;
+ struct timeval *tvp = NULL;
+ fd_set rfds, wfds, efds;
+ fd_set *rp, *wp, *ep;
+ int rc;
+ int max = 0;
+
+ if (!NIL_P(timeout)) {
+ tv = rb_time_timeval(timeout);
+ tvp = &tv;
+ }
+ rp = array2fdset(&rfds, r, &max);
+ wp = array2fdset(&wfds, w, &max);
+ ep = array2fdset(&efds, e, &max);
+ rc = rb_thread_select(max, rp, wp, ep, tvp);
+ if (rc == -1)
+ rb_sys_fail("rb_wait_for_single_fd");
+
+ if (rp)
+ fdset2array(r, &rfds, max);
+ if (wp)
+ fdset2array(w, &wfds, max);
+ if (ep)
+ fdset2array(e, &efds, max);
+ return INT2NUM(rc);
+}
+
+void
+Init_old_thread_select(void)
+{
+ rb_define_singleton_method(rb_cIO, "old_thread_select",
+ old_thread_select, 4);
+}
diff --git a/ext/-test-/st/numhash/extconf.rb b/ext/-test-/st/numhash/extconf.rb
new file mode 100644
index 0000000000..867fd75d2a
--- /dev/null
+++ b/ext/-test-/st/numhash/extconf.rb
@@ -0,0 +1 @@
+create_makefile("-test-/st/numhash")
diff --git a/ext/-test-/st/numhash/numhash.c b/ext/-test-/st/numhash/numhash.c
new file mode 100644
index 0000000000..e186cd43d9
--- /dev/null
+++ b/ext/-test-/st/numhash/numhash.c
@@ -0,0 +1,69 @@
+#include <ruby.h>
+#include <ruby/st.h>
+
+static void
+numhash_free(void *ptr)
+{
+ if (ptr) st_free_table(ptr);
+}
+
+static VALUE
+numhash_alloc(VALUE klass)
+{
+ return Data_Wrap_Struct(klass, 0, numhash_free, 0);
+}
+
+static VALUE
+numhash_init(VALUE self)
+{
+ st_table *tbl = (st_table *)DATA_PTR(self);
+ if (tbl) st_free_table(tbl);
+ DATA_PTR(self) = st_init_numtable();
+ return self;
+}
+
+static VALUE
+numhash_aref(VALUE self, VALUE key)
+{
+ st_data_t data;
+ if (!SPECIAL_CONST_P(key)) rb_raise(rb_eArgError, "not a special const");
+ if (st_lookup((st_table *)DATA_PTR(self), (st_data_t)key, &data))
+ return (VALUE)data;
+ return Qnil;
+}
+
+static VALUE
+numhash_aset(VALUE self, VALUE key, VALUE data)
+{
+ if (!SPECIAL_CONST_P(key)) rb_raise(rb_eArgError, "not a special const");
+ if (!SPECIAL_CONST_P(data)) rb_raise(rb_eArgError, "not a special const");
+ st_insert((st_table *)DATA_PTR(self), (st_data_t)key, (st_data_t)data);
+ return self;
+}
+
+static int
+numhash_i(st_data_t key, st_data_t value, st_data_t arg, int error)
+{
+ VALUE ret;
+ if (key == 0 && value == 0 && error == 1) rb_raise(rb_eRuntimeError, "numhash modified");
+ ret = rb_yield_values(3, (VALUE)key, (VALUE)value, (VALUE)arg);
+ if (ret == Qtrue) return ST_CHECK;
+ return ST_CONTINUE;
+}
+
+static VALUE
+numhash_each(VALUE self)
+{
+ return st_foreach((st_table *)DATA_PTR(self), numhash_i, self) ? Qtrue : Qfalse;
+}
+
+void
+Init_numhash(void)
+{
+ VALUE st = rb_define_class_under(rb_define_module("Bug"), "StNumHash", rb_cData);
+ rb_define_alloc_func(st, numhash_alloc);
+ rb_define_method(st, "initialize", numhash_init, 0);
+ rb_define_method(st, "[]", numhash_aref, 1);
+ rb_define_method(st, "[]=", numhash_aset, 2);
+ rb_define_method(st, "each", numhash_each, 0);
+}
diff --git a/ext/-test-/string/cstr.c b/ext/-test-/string/cstr.c
new file mode 100644
index 0000000000..d4ff360575
--- /dev/null
+++ b/ext/-test-/string/cstr.c
@@ -0,0 +1,20 @@
+#include "ruby.h"
+
+static VALUE
+bug_str_cstr_term(VALUE str)
+{
+ long len;
+ char *s;
+ rb_str_modify(str);
+ len = RSTRING_LEN(str);
+ RSTRING_PTR(str)[len] = 'x';
+ s = StringValueCStr(str);
+ rb_gc();
+ return INT2NUM(s[len]);
+}
+
+void
+Init_cstr(VALUE klass)
+{
+ rb_define_method(klass, "cstr_term", bug_str_cstr_term, 0);
+}
diff --git a/ext/-test-/string/ellipsize.c b/ext/-test-/string/ellipsize.c
new file mode 100644
index 0000000000..0451519492
--- /dev/null
+++ b/ext/-test-/string/ellipsize.c
@@ -0,0 +1,13 @@
+#include "ruby.h"
+
+static VALUE
+bug_str_ellipsize(VALUE str, VALUE len)
+{
+ return rb_str_ellipsize(str, NUM2LONG(len));
+}
+
+void
+Init_ellipsize(VALUE klass)
+{
+ rb_define_method(klass, "ellipsize", bug_str_ellipsize, 1);
+}
diff --git a/ext/-test-/string/enc_associate.c b/ext/-test-/string/enc_associate.c
new file mode 100644
index 0000000000..d6614fb298
--- /dev/null
+++ b/ext/-test-/string/enc_associate.c
@@ -0,0 +1,14 @@
+#include "ruby.h"
+#include "ruby/encoding.h"
+
+VALUE
+bug_str_enc_associate(VALUE str, VALUE enc)
+{
+ return rb_enc_associate(str, rb_to_encoding(enc));
+}
+
+void
+Init_enc_associate(VALUE klass)
+{
+ rb_define_method(klass, "associate_encoding!", bug_str_enc_associate, 1);
+}
diff --git a/ext/-test-/string/extconf.rb b/ext/-test-/string/extconf.rb
new file mode 100644
index 0000000000..42c10b994b
--- /dev/null
+++ b/ext/-test-/string/extconf.rb
@@ -0,0 +1,6 @@
+$srcs = Dir[File.join($srcdir, "*.{#{SRC_EXT.join(%q{,})}}")]
+inits = $srcs.map {|s| File.basename(s, ".*")}
+inits.delete("init")
+inits.map! {|s|"X(#{s})"}
+$defs << "-DTEST_INIT_FUNCS(X)=\"#{inits.join(' ')}\""
+create_makefile("-test-/string/string")
diff --git a/ext/-test-/string/init.c b/ext/-test-/string/init.c
new file mode 100644
index 0000000000..0b3e4a6ff2
--- /dev/null
+++ b/ext/-test-/string/init.c
@@ -0,0 +1,11 @@
+#include "ruby.h"
+
+#define init(n) {void Init_##n(VALUE klass); Init_##n(klass);}
+
+void
+Init_string(void)
+{
+ VALUE mBug = rb_define_module("Bug");
+ VALUE klass = rb_define_class_under(mBug, "String", rb_cString);
+ TEST_INIT_FUNCS(init);
+}
diff --git a/ext/-test-/string/modify.c b/ext/-test-/string/modify.c
new file mode 100644
index 0000000000..ddd2efd8f0
--- /dev/null
+++ b/ext/-test-/string/modify.c
@@ -0,0 +1,22 @@
+#include "ruby.h"
+
+VALUE
+bug_str_modify(VALUE str)
+{
+ rb_str_modify(str);
+ return str;
+}
+
+VALUE
+bug_str_modify_expand(VALUE str, VALUE expand)
+{
+ rb_str_modify_expand(str, NUM2LONG(expand));
+ return str;
+}
+
+void
+Init_modify(VALUE klass)
+{
+ rb_define_method(klass, "modify!", bug_str_modify, 0);
+ rb_define_method(klass, "modify_expand!", bug_str_modify_expand, 1);
+}
diff --git a/ext/-test-/string/set_len.c b/ext/-test-/string/set_len.c
new file mode 100644
index 0000000000..3c7d19d778
--- /dev/null
+++ b/ext/-test-/string/set_len.c
@@ -0,0 +1,14 @@
+#include "ruby.h"
+
+static VALUE
+bug_str_set_len(VALUE str, VALUE len)
+{
+ rb_str_set_len(str, NUM2LONG(len));
+ return str;
+}
+
+void
+Init_set_len(VALUE klass)
+{
+ rb_define_method(klass, "set_len", bug_str_set_len, 1);
+}
diff --git a/ext/-test-/wait_for_single_fd/depend b/ext/-test-/wait_for_single_fd/depend
new file mode 100644
index 0000000000..d9cd50a542
--- /dev/null
+++ b/ext/-test-/wait_for_single_fd/depend
@@ -0,0 +1,2 @@
+wait_for_single_fd.o: $(top_srcdir)/thread.c \
+ $(hdrdir)/ruby/ruby.h $(hdrdir)/ruby/io.h
diff --git a/ext/-test-/wait_for_single_fd/extconf.rb b/ext/-test-/wait_for_single_fd/extconf.rb
new file mode 100644
index 0000000000..1a28b23da3
--- /dev/null
+++ b/ext/-test-/wait_for_single_fd/extconf.rb
@@ -0,0 +1 @@
+create_makefile("-test-/wait_for_single_fd/wait_for_single_fd")
diff --git a/ext/-test-/wait_for_single_fd/wait_for_single_fd.c b/ext/-test-/wait_for_single_fd/wait_for_single_fd.c
new file mode 100644
index 0000000000..d406724a3f
--- /dev/null
+++ b/ext/-test-/wait_for_single_fd/wait_for_single_fd.c
@@ -0,0 +1,30 @@
+#include "ruby/ruby.h"
+#include "ruby/io.h"
+
+static VALUE
+wait_for_single_fd(VALUE ign, VALUE fd, VALUE events, VALUE timeout)
+{
+ struct timeval tv;
+ struct timeval *tvp = NULL;
+ int rc;
+
+ if (!NIL_P(timeout)) {
+ tv = rb_time_timeval(timeout);
+ tvp = &tv;
+ }
+
+ rc = rb_wait_for_single_fd(NUM2INT(fd), NUM2INT(events), tvp);
+ if (rc == -1)
+ rb_sys_fail("rb_wait_for_single_fd");
+ return INT2NUM(rc);
+}
+
+void
+Init_wait_for_single_fd(void)
+{
+ rb_define_const(rb_cObject, "RB_WAITFD_IN", INT2NUM(RB_WAITFD_IN));
+ rb_define_const(rb_cObject, "RB_WAITFD_OUT", INT2NUM(RB_WAITFD_OUT));
+ rb_define_const(rb_cObject, "RB_WAITFD_PRI", INT2NUM(RB_WAITFD_PRI));
+ rb_define_singleton_method(rb_cIO, "wait_for_single_fd",
+ wait_for_single_fd, 3);
+}
diff --git a/ext/-test-/win32/dln/dlntest.c b/ext/-test-/win32/dln/dlntest.c
new file mode 100644
index 0000000000..3e6037ac07
--- /dev/null
+++ b/ext/-test-/win32/dln/dlntest.c
@@ -0,0 +1,17 @@
+#include <ruby.h>
+
+extern __declspec(dllimport) void dlntest_ordinal(void);
+
+static VALUE
+dln_dlntest(VALUE self)
+{
+ dlntest_ordinal();
+ return self;
+}
+
+void
+Init_dln(void)
+{
+ VALUE m = rb_define_module_under(rb_define_module("Bug"), "Win32");
+ rb_define_module_function(m, "dlntest", dln_dlntest, 0);
+}
diff --git a/ext/-test-/win32/dln/extconf.rb b/ext/-test-/win32/dln/extconf.rb
new file mode 100644
index 0000000000..cc94a67549
--- /dev/null
+++ b/ext/-test-/win32/dln/extconf.rb
@@ -0,0 +1,34 @@
+if $mingw or $mswin
+ $objs = ["dlntest.o"]
+ $cleanfiles << "$(topdir)/dlntest.dll"
+ config_string('cleanobjs') {|t| $cleanfiles.concat(t.gsub(/\$\*/, 'dlntest').split)}
+
+ create_makefile("-test-/win32/dln")
+ m = File.read("Makefile")
+ dlntestlib = "dlntest.#{$LIBEXT}"
+ m.sub!(/^OBJS =.*/) {"#{$&} #{dlntestlib}"}
+ open("Makefile", "wb") do |mf|
+ mf.puts m, "\n"
+ sodir = $extout ? "$(RUBYARCHDIR)/" : ''
+ mf.print "#{sodir}$(DLLIB): #{dlntestlib}"
+ mf.puts
+ mf.puts "#{dlntestlib}: $(topdir)/dlntest.dll"
+ mf.puts
+ if $mingw
+ mf.puts "$(topdir)/dlntest.dll: DEFFILE := $(srcdir)/libdlntest.def"
+ mf.puts "$(topdir)/dlntest.dll: DLDFLAGS += -Wl,--out-implib,#{dlntestlib}"
+ end
+ mf.puts depend_rules("$(topdir)/dlntest.dll: libdlntest.o libdlntest.def")
+ mf.puts "\t$(ECHO) linking shared-object $(@F)\n"
+ mf.print "\t-$(Q)$(RM) $@\n"
+ mf.print "\t-$(Q)$(MAKEDIRS) $(@D)\n" if $extout
+ link_so = LINK_SO.gsub(/^/, "\t$(Q) ")
+ link_so.sub!(/\$\(LOCAL_LIBS\)/, '')
+ link_so.gsub!(/-\$\(arch\)/, '')
+ link_so.gsub!(/:.so=/, ':.dll=')
+ link_so.sub!(/\$\(OBJS\)/, "libdlntest.#{$OBJEXT}")
+ link_so.sub!(/\$\(DEFFILE\)/, "$(srcdir)/libdlntest.def")
+ mf.puts link_so
+ mf.puts
+ end
+end
diff --git a/ext/-test-/win32/dln/libdlntest.c b/ext/-test-/win32/dln/libdlntest.c
new file mode 100644
index 0000000000..040ae8125d
--- /dev/null
+++ b/ext/-test-/win32/dln/libdlntest.c
@@ -0,0 +1,4 @@
+extern __declspec(dllexport) void
+dlntest_ordinal(void)
+{
+}
diff --git a/ext/-test-/win32/dln/libdlntest.def b/ext/-test-/win32/dln/libdlntest.def
new file mode 100644
index 0000000000..85bc9c7a55
--- /dev/null
+++ b/ext/-test-/win32/dln/libdlntest.def
@@ -0,0 +1,2 @@
+EXPORTS
+dlntest_ordinal @1 NONAME
diff --git a/ext/.cvsignore b/ext/.cvsignore
deleted file mode 100644
index ab2424ff7a..0000000000
--- a/ext/.cvsignore
+++ /dev/null
@@ -1,2 +0,0 @@
-extinit.c
-*.log
diff --git a/ext/.document b/ext/.document
index 4bb56c96d4..c51b8a7b63 100644
--- a/ext/.document
+++ b/ext/.document
@@ -1,13 +1,44 @@
# Add files to this as they become documented
bigdecimal/bigdecimal.c
+bigdecimal/lib
+coverage/coverage.c
+curses/curses.c
+date/date_core.c
+dbm/dbm.c
+digest/bubblebabble/bubblebabble.c
digest/digest.c
+digest/lib
+digest/md5/md5init.c
+digest/rmd160/rmd160init.c
+digest/sha1/sha1init.c
+digest/sha2/sha2init.c
+dl/cfunc.c
+dl/cptr.c
+dl/dl.c
+dl/handle.c
+dl/lib
+dl/win32/lib
etc/etc.c
fcntl/fcntl.c
+fiddle/closure.c
+fiddle/conversions.c
+fiddle/fiddle.c
+fiddle/function.c
+fiddle/lib
+gdbm/gdbm.c
iconv/iconv.c
+io/console/console.c
+io/nonblock/nonblock.c
+io/wait/lib
io/wait/wait.c
-nkf/lib/kconv.rb
+json/ext/generator/generator.c
+json/ext/parser/parser.c
+json/lib
+nkf/lib
nkf/nkf.c
+objspace/objspace.c
+openssl/lib
openssl/ossl.c
openssl/ossl_asn1.c
openssl/ossl_bn.c
@@ -18,9 +49,9 @@ openssl/ossl_engine.c
openssl/ossl_hmac.c
openssl/ossl_ns_spki.c
openssl/ossl_ocsp.c
+openssl/ossl_pkcs12.c
openssl/ossl_pkcs5.c
openssl/ossl_pkcs7.c
-openssl/ossl_pkcs12.c
openssl/ossl_pkey.c
openssl/ossl_pkey_dh.c
openssl/ossl_pkey_dsa.c
@@ -38,25 +69,24 @@ openssl/ossl_x509name.c
openssl/ossl_x509req.c
openssl/ossl_x509revoked.c
openssl/ossl_x509store.c
-openssl/lib/openssl/buffering.rb
+pathname/lib
+pathname/pathname.c
+psych/emitter.c
+psych/lib
+psych/parser.c
+psych/psych.c
+psych/to_ruby.c
+psych/yaml_tree.c
+pty/lib
+pty/pty.c
readline/readline.c
-socket/init.c
-socket/raddrinfo.c
-socket/basicsocket.c
-socket/ipsocket.c
-socket/tcpsocket.c
-socket/tcpserver.c
-socket/sockssocket.c
-socket/udpsocket.c
-socket/unixsocket.c
-socket/unixserver.c
-socket/socket.c
-socket/option.c
-socket/ancdata.c
-socket/constants.c
-socket/constdefs.c
-socket/lib/socket.rb
+ripper/lib
+ripper/ripper.c
+sdbm/init.c
+socket
stringio/stringio.c
strscan/strscan.c
-win32ole
+syslog/syslog.c
+win32ole/lib
+win32ole/win32ole.c
zlib/zlib.c
diff --git a/ext/bigdecimal/.cvsignore b/ext/bigdecimal/.cvsignore
deleted file mode 100644
index 814345ece8..0000000000
--- a/ext/bigdecimal/.cvsignore
+++ /dev/null
@@ -1,4 +0,0 @@
-Makefile
-mkmf.log
-*.def
-extconf.h
diff --git a/ext/bigdecimal/README b/ext/bigdecimal/README
index a233f47f64..ae65b014cf 100644
--- a/ext/bigdecimal/README
+++ b/ext/bigdecimal/README
@@ -51,7 +51,7 @@ You can redistribute it and/or modify it under either the terms of the GPL
* The Author
-Feel free to send comments and bug reports to the author. Here is the
+Feel free to send comments and bug reports to the author. Here is the
author's latest mail address:
shigeo@tinyforest.gr.jp
diff --git a/ext/bigdecimal/bigdecimal.c b/ext/bigdecimal/bigdecimal.c
index 2f4b9ada34..1dc2f15900 100644
--- a/ext/bigdecimal/bigdecimal.c
+++ b/ext/bigdecimal/bigdecimal.c
@@ -8,30 +8,56 @@
* License or the Artistic License, as specified in the README file
* of this BigDecimal distribution.
*
- * NOTE: Change log in this source removed to reduce source code size.
+ * NOTE: Change log in this source removed to reduce source code size.
* See rev. 1.25 if needed.
*
*/
-#include "ruby/ruby.h"
+/* #define BIGDECIMAL_DEBUG 1 */
+#ifdef BIGDECIMAL_DEBUG
+# define BIGDECIMAL_ENABLE_VPRINT 1
+#endif
+#include "bigdecimal.h"
+
+#ifndef BIGDECIMAL_DEBUG
+# define NDEBUG
+#endif
+#include <assert.h>
+
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
-#include <float.h>
#include <math.h>
#include "math.h"
#ifdef HAVE_IEEEFP_H
#include <ieeefp.h>
#endif
-
+
/* #define ENABLE_NUMERIC_STRING */
VALUE rb_cBigDecimal;
-
-#include "bigdecimal.h"
+VALUE rb_mBigMath;
+
+static ID id_BigDecimal_exception_mode;
+static ID id_BigDecimal_rounding_mode;
+static ID id_BigDecimal_precision_limit;
+
+static ID id_up;
+static ID id_down;
+static ID id_truncate;
+static ID id_half_up;
+static ID id_default;
+static ID id_half_down;
+static ID id_half_even;
+static ID id_banker;
+static ID id_ceiling;
+static ID id_ceil;
+static ID id_floor;
+static ID id_to_r;
+static ID id_eq;
/* MACRO's to guard objects from GC by keeping them in stack */
#define ENTER(n) volatile VALUE vStack[n];int iStack=0
@@ -39,124 +65,49 @@ VALUE rb_cBigDecimal;
#define SAVE(p) PUSH(p->obj);
#define GUARD_OBJ(p,y) {p=y;SAVE(p);}
-/*
- * ================== Ruby Interface part ==========================
- */
-#define DoSomeOne(x,y,f) rb_num_coerce_bin(x,y,f)
+#define BASE_FIG RMPD_COMPONENT_FIGURES
+#define BASE RMPD_BASE
-#if 0
-/* BigDecimal provides arbitrary-precision floating point decimal arithmetic.
- *
- * Copyright (C) 2002 by Shigeo Kobayashi <shigeo@tinyforest.gr.jp>.
- * You may distribute under the terms of either the GNU General Public
- * License or the Artistic License, as specified in the README file
- * of the BigDecimal distribution.
- *
- * Documented by mathew <meta@pobox.com>.
- *
- * = Introduction
- *
- * Ruby provides built-in support for arbitrary precision integer arithmetic.
- * For example:
- *
- * 42**13 -> 1265437718438866624512
- *
- * BigDecimal provides similar support for very large or very accurate floating
- * point numbers.
- *
- * Decimal arithmetic is also useful for general calculation, because it
- * provides the correct answers people expect--whereas normal binary floating
- * point arithmetic often introduces subtle errors because of the conversion
- * between base 10 and base 2. For example, try:
- *
- * sum = 0
- * for i in (1..10000)
- * sum = sum + 0.0001
- * end
- * print sum
- *
- * and contrast with the output from:
- *
- * require 'bigdecimal'
- *
- * sum = BigDecimal.new("0")
- * for i in (1..10000)
- * sum = sum + BigDecimal.new("0.0001")
- * end
- * print sum
- *
- * Similarly:
- *
- * (BigDecimal.new("1.2") - BigDecimal("1.0")) == BigDecimal("0.2") -> true
- *
- * (1.2 - 1.0) == 0.2 -> false
- *
- * = Special features of accurate decimal arithmetic
- *
- * Because BigDecimal is more accurate than normal binary floating point
- * arithmetic, it requires some special values.
- *
- * == Infinity
- *
- * BigDecimal sometimes needs to return infinity, for example if you divide
- * a value by zero.
- *
- * BigDecimal.new("1.0") / BigDecimal.new("0.0") -> infinity
- *
- * BigDecimal.new("-1.0") / BigDecimal.new("0.0") -> -infinity
- *
- * You can represent infinite numbers to BigDecimal using the strings
- * 'Infinity', '+Infinity' and '-Infinity' (case-sensitive)
- *
- * == Not a Number
- *
- * When a computation results in an undefined value, the special value NaN
- * (for 'not a number') is returned.
- *
- * Example:
- *
- * BigDecimal.new("0.0") / BigDecimal.new("0.0") -> NaN
- *
- * You can also create undefined values. NaN is never considered to be the
- * same as any other value, even NaN itself:
- *
- * n = BigDecimal.new('NaN')
- *
- * n == 0.0 -> nil
- *
- * n == n -> nil
- *
- * == Positive and negative zero
- *
- * If a computation results in a value which is too small to be represented as
- * a BigDecimal within the currently specified limits of precision, zero must
- * be returned.
- *
- * If the value which is too small to be represented is negative, a BigDecimal
- * value of negative zero is returned. If the value is positive, a value of
- * positive zero is returned.
- *
- * BigDecimal.new("1.0") / BigDecimal.new("-Infinity") -> -0.0
- *
- * BigDecimal.new("1.0") / BigDecimal.new("Infinity") -> 0.0
- *
- * (See BigDecimal.mode for how to specify limits of precision.)
- *
- * Note that -0.0 and 0.0 are considered to be the same for the purposes of
- * comparison.
- *
- * Note also that in mathematics, there is no particular concept of negative
- * or positive zero; true mathematical zero has no sign.
- */
-void
-Init_BigDecimal()
+#define HALF_BASE (BASE/2)
+#define BASE1 (BASE/10)
+
+#ifndef DBLE_FIG
+#define DBLE_FIG (DBL_DIG+1) /* figure of double */
+#endif
+
+#ifndef RBIGNUM_ZERO_P
+# define RBIGNUM_ZERO_P(x) (RBIGNUM_LEN(x) == 0 || \
+ (RBIGNUM_DIGITS(x)[0] == 0 && \
+ (RBIGNUM_LEN(x) == 1 || bigzero_p(x))))
+#endif
+
+static inline int
+bigzero_p(VALUE x)
{
- /* This is a #if-ed out function to fool Rdoc into documenting the class. */
- /* The real init function is Init_bigdecimal() further down. */
+ long i;
+ BDIGIT *ds = RBIGNUM_DIGITS(x);
+
+ for (i = RBIGNUM_LEN(x) - 1; 0 <= i; i--) {
+ if (ds[i]) return 0;
+ }
+ return 1;
}
+
+#ifndef RRATIONAL_ZERO_P
+# define RRATIONAL_ZERO_P(x) (FIXNUM_P(RRATIONAL(x)->num) && \
+ FIX2LONG(RRATIONAL(x)->num) == 0)
+#endif
+
+#ifndef RRATIONAL_NEGATIVE_P
+# define RRATIONAL_NEGATIVE_P(x) RTEST(rb_funcall((x), '<', 1, INT2FIX(0)))
#endif
/*
+ * ================== Ruby Interface part ==========================
+ */
+#define DoSomeOne(x,y,f) rb_num_coerce_bin(x,y,f)
+
+/*
* Returns the BigDecimal version number.
*
* Ruby 1.8.0 returns 1.0.0.
@@ -168,28 +119,48 @@ BigDecimal_version(VALUE self)
/*
* 1.0.0: Ruby 1.8.0
* 1.0.1: Ruby 1.8.1
+ * 1.1.0: Ruby 1.9.3
*/
- return rb_str_new2("1.0.1");
+ return rb_str_new2("1.1.0");
}
/*
- * VP routines used in BigDecimal part
+ * VP routines used in BigDecimal part
*/
static unsigned short VpGetException(void);
static void VpSetException(unsigned short f);
-static void VpInternalRound(Real *c,int ixDigit,U_LONG vPrev,U_LONG v);
-static int VpLimitRound(Real *c,U_LONG ixDigit);
+static void VpInternalRound(Real *c, size_t ixDigit, BDIGIT vPrev, BDIGIT v);
+static int VpLimitRound(Real *c, size_t ixDigit);
+static Real *VpDup(Real const* const x);
/*
* **** BigDecimal part ****
*/
static void
-BigDecimal_delete(Real *pv)
+BigDecimal_delete(void *pv)
{
VpFree(pv);
}
+static size_t
+BigDecimal_memsize(const void *ptr)
+{
+ const Real *pv = ptr;
+ return pv ? (sizeof(*pv) + pv->MaxPrec * sizeof(BDIGIT)) : 0;
+}
+
+static const rb_data_type_t BigDecimal_data_type = {
+ "BigDecimal",
+ {0, BigDecimal_delete, BigDecimal_memsize,},
+};
+
+static inline int
+is_kind_of_BigDecimal(VALUE const v)
+{
+ return rb_typeddata_is_kind_of(v, &BigDecimal_data_type);
+}
+
static VALUE
ToValue(Real *p)
{
@@ -203,51 +174,108 @@ ToValue(Real *p)
return p->obj;
}
-static Real *
-GetVpValue(VALUE v, int must)
+NORETURN(static void cannot_be_coerced_into_BigDecimal(VALUE, VALUE));
+
+static void
+cannot_be_coerced_into_BigDecimal(VALUE exc_class, VALUE v)
+{
+ VALUE str;
+
+ if (rb_special_const_p(v)) {
+ str = rb_str_cat2(rb_str_dup(rb_inspect(v)),
+ " can't be coerced into BigDecimal");
+ }
+ else {
+ str = rb_str_cat2(rb_str_dup(rb_class_name(rb_obj_class(v))),
+ " can't be coerced into BigDecimal");
+ }
+
+ rb_exc_raise(rb_exc_new3(exc_class, str));
+}
+
+static VALUE BigDecimal_div2(int, VALUE*, VALUE);
+
+static Real*
+GetVpValueWithPrec(VALUE v, long prec, int must)
{
Real *pv;
- VALUE bg;
+ VALUE num, bg, args[2];
char szD[128];
+ VALUE orig = Qundef;
+again:
switch(TYPE(v))
{
- case T_DATA:
- if(RDATA(v)->dfree ==(void *) BigDecimal_delete) {
- Data_Get_Struct(v, Real, pv);
- return pv;
- } else {
- goto SomeOneMayDoIt;
- }
- break;
- case T_FIXNUM:
- sprintf(szD, "%ld", FIX2LONG(v));
- return VpCreateRbObject(VpBaseFig() * 2 + 1, szD);
+ case T_FLOAT:
+ if (prec < 0) goto unable_to_coerce_without_prec;
+ if (prec > DBL_DIG+1)goto SomeOneMayDoIt;
+ v = rb_funcall(v, id_to_r, 0);
+ goto again;
+ case T_RATIONAL:
+ if (prec < 0) goto unable_to_coerce_without_prec;
+
+ if (orig == Qundef ? (orig = v, 1) : orig != v) {
+ num = RRATIONAL(v)->num;
+ pv = GetVpValueWithPrec(num, -1, must);
+ if (pv == NULL) goto SomeOneMayDoIt;
+
+ args[0] = RRATIONAL(v)->den;
+ args[1] = LONG2NUM(prec);
+ v = BigDecimal_div2(2, args, ToValue(pv));
+ goto again;
+ }
+
+ v = orig;
+ goto SomeOneMayDoIt;
+
+ case T_DATA:
+ if (is_kind_of_BigDecimal(v)) {
+ pv = DATA_PTR(v);
+ return pv;
+ }
+ else {
+ goto SomeOneMayDoIt;
+ }
+ break;
+
+ case T_FIXNUM:
+ sprintf(szD, "%ld", FIX2LONG(v));
+ return VpCreateRbObject(VpBaseFig() * 2 + 1, szD);
#ifdef ENABLE_NUMERIC_STRING
- case T_STRING:
- SafeStringValue(v);
- return VpCreateRbObject(strlen(RSTRING_PTR(v)) + VpBaseFig() + 1,
- RSTRING_PTR(v));
+ case T_STRING:
+ SafeStringValue(v);
+ return VpCreateRbObject(strlen(RSTRING_PTR(v)) + VpBaseFig() + 1,
+ RSTRING_PTR(v));
#endif /* ENABLE_NUMERIC_STRING */
- case T_BIGNUM:
- bg = rb_big2str(v, 10);
- return VpCreateRbObject(strlen(RSTRING_PTR(bg)) + VpBaseFig() + 1,
- RSTRING_PTR(bg));
- default:
- goto SomeOneMayDoIt;
+ case T_BIGNUM:
+ bg = rb_big2str(v, 10);
+ return VpCreateRbObject(strlen(RSTRING_PTR(bg)) + VpBaseFig() + 1,
+ RSTRING_PTR(bg));
+ default:
+ goto SomeOneMayDoIt;
}
SomeOneMayDoIt:
- if(must) {
- rb_raise(rb_eTypeError, "%s can't be coerced into BigDecimal",
- rb_special_const_p(v)?
- RSTRING_PTR(rb_inspect(v)):
- rb_obj_classname(v)
- );
+ if (must) {
+ cannot_be_coerced_into_BigDecimal(rb_eTypeError, v);
}
return NULL; /* NULL means to coerce */
+
+unable_to_coerce_without_prec:
+ if (must) {
+ rb_raise(rb_eArgError,
+ "%s can't be coerced into BigDecimal without a precision",
+ rb_obj_classname(v));
+ }
+ return NULL;
+}
+
+static Real*
+GetVpValue(VALUE v, int must)
+{
+ return GetVpValueWithPrec(v, -1, must);
}
/* call-seq:
@@ -268,7 +296,7 @@ BigDecimal_double_fig(VALUE self)
*
* Returns an Array of two Integer values.
*
- * The first value is the current number of significant digits in the
+ * The first value is the current number of significant digits in the
* BigDecimal. The second value is the maximum number of significant digits
* for the BigDecimal.
*/
@@ -290,17 +318,14 @@ BigDecimal_hash(VALUE self)
{
ENTER(1);
Real *p;
- U_LONG hash,i;
+ st_index_t hash;
GUARD_OBJ(p,GetVpValue(self,1));
- hash = (U_LONG)p->sign;
+ hash = (st_index_t)p->sign;
/* hash!=2: the case for 0(1),NaN(0) or +-Infinity(3) is sign itself */
- if(hash==2) {
- for(i = 0; i < p->Prec;i++) {
- hash = 31 * hash + p->frac[i];
- hash ^= p->frac[i];
- }
- hash += p->exponent;
+ if(hash == 2 || hash == (st_index_t)-2) {
+ hash ^= rb_memhash(p->frac, sizeof(BDIGIT)*p->Prec);
+ hash += p->exponent;
}
return INT2FIX(hash);
}
@@ -318,7 +343,7 @@ BigDecimal_dump(int argc, VALUE *argv, VALUE self)
GUARD_OBJ(vp,GetVpValue(self,1));
dump = rb_str_new(0,VpNumOfChars(vp,"E")+50);
psz = RSTRING_PTR(dump);
- sprintf(psz,"%lu:",VpMaxPrec(vp)*VpBaseFig());
+ sprintf(psz, "%"PRIuSIZE":", VpMaxPrec(vp)*VpBaseFig());
VpToString(vp, psz+strlen(psz), 0, 0);
rb_str_resize(dump, strlen(psz));
return dump;
@@ -352,51 +377,87 @@ BigDecimal_load(VALUE self, VALUE str)
return ToValue(pv);
}
- /* call-seq:
- * BigDecimal.mode(mode, value)
- *
- * Controls handling of arithmetic exceptions and rounding. If no value
- * is supplied, the current value is returned.
- *
- * Six values of the mode parameter control the handling of arithmetic
- * exceptions:
- *
- * BigDecimal::EXCEPTION_NaN
- * BigDecimal::EXCEPTION_INFINITY
- * BigDecimal::EXCEPTION_UNDERFLOW
- * BigDecimal::EXCEPTION_OVERFLOW
- * BigDecimal::EXCEPTION_ZERODIVIDE
- * BigDecimal::EXCEPTION_ALL
- *
- * For each mode parameter above, if the value set is false, computation
- * continues after an arithmetic exception of the appropriate type.
- * When computation continues, results are as follows:
- *
- * EXCEPTION_NaN:: NaN
- * EXCEPTION_INFINITY:: +infinity or -infinity
- * EXCEPTION_UNDERFLOW:: 0
- * EXCEPTION_OVERFLOW:: +infinity or -infinity
- * EXCEPTION_ZERODIVIDE:: +infinity or -infinity
- *
- * One value of the mode parameter controls the rounding of numeric values:
- * BigDecimal::ROUND_MODE. The values it can take are:
- *
- * ROUND_UP:: round away from zero
- * ROUND_DOWN:: round towards zero (truncate)
- * ROUND_HALF_UP:: round up if the appropriate digit >= 5, otherwise truncate (default)
- * ROUND_HALF_DOWN:: round up if the appropriate digit >= 6, otherwise truncate
- * ROUND_HALF_EVEN:: round towards the even neighbor (Banker's rounding)
- * ROUND_CEILING:: round towards positive infinity (ceil)
- * ROUND_FLOOR:: round towards negative infinity (floor)
- *
- */
+static unsigned short
+check_rounding_mode(VALUE const v)
+{
+ unsigned short sw;
+ ID id;
+ switch (TYPE(v)) {
+ case T_SYMBOL:
+ id = SYM2ID(v);
+ if (id == id_up)
+ return VP_ROUND_UP;
+ if (id == id_down || id == id_truncate)
+ return VP_ROUND_DOWN;
+ if (id == id_half_up || id == id_default)
+ return VP_ROUND_HALF_UP;
+ if (id == id_half_down)
+ return VP_ROUND_HALF_DOWN;
+ if (id == id_half_even || id == id_banker)
+ return VP_ROUND_HALF_EVEN;
+ if (id == id_ceiling || id == id_ceil)
+ return VP_ROUND_CEIL;
+ if (id == id_floor)
+ return VP_ROUND_FLOOR;
+ rb_raise(rb_eArgError, "invalid rounding mode");
+
+ default:
+ break;
+ }
+
+ Check_Type(v, T_FIXNUM);
+ sw = (unsigned short)FIX2UINT(v);
+ if (!VpIsRoundMode(sw)) {
+ rb_raise(rb_eArgError, "invalid rounding mode");
+ }
+ return sw;
+}
+
+/* call-seq:
+ * BigDecimal.mode(mode, value)
+ *
+ * Controls handling of arithmetic exceptions and rounding. If no value
+ * is supplied, the current value is returned.
+ *
+ * Six values of the mode parameter control the handling of arithmetic
+ * exceptions:
+ *
+ * BigDecimal::EXCEPTION_NaN
+ * BigDecimal::EXCEPTION_INFINITY
+ * BigDecimal::EXCEPTION_UNDERFLOW
+ * BigDecimal::EXCEPTION_OVERFLOW
+ * BigDecimal::EXCEPTION_ZERODIVIDE
+ * BigDecimal::EXCEPTION_ALL
+ *
+ * For each mode parameter above, if the value set is false, computation
+ * continues after an arithmetic exception of the appropriate type.
+ * When computation continues, results are as follows:
+ *
+ * EXCEPTION_NaN:: NaN
+ * EXCEPTION_INFINITY:: +infinity or -infinity
+ * EXCEPTION_UNDERFLOW:: 0
+ * EXCEPTION_OVERFLOW:: +infinity or -infinity
+ * EXCEPTION_ZERODIVIDE:: +infinity or -infinity
+ *
+ * One value of the mode parameter controls the rounding of numeric values:
+ * BigDecimal::ROUND_MODE. The values it can take are:
+ *
+ * ROUND_UP, :up:: round away from zero
+ * ROUND_DOWN, :down, :truncate:: round towards zero (truncate)
+ * ROUND_HALF_UP, :half_up, :default:: round towards the nearest neighbor, unless both neighbors are equidistant, in which case round away from zero. (default)
+ * ROUND_HALF_DOWN, :half_down:: round towards the nearest neighbor, unless both neighbors are equidistant, in which case round towards zero.
+ * ROUND_HALF_EVEN, :half_even, :banker:: round towards the nearest neighbor, unless both neighbors are equidistant, in which case round towards the even neighbor (Banker's rounding)
+ * ROUND_CEILING, :ceiling, :ceil:: round towards positive infinity (ceil)
+ * ROUND_FLOOR, :floor:: round towards negative infinity (floor)
+ *
+ */
static VALUE
BigDecimal_mode(int argc, VALUE *argv, VALUE self)
{
VALUE which;
VALUE val;
unsigned long f,fo;
-
+
if(rb_scan_args(argc,argv,"11",&which,&val)==1) val = Qnil;
Check_Type(which, T_FIXNUM);
@@ -407,7 +468,7 @@ BigDecimal_mode(int argc, VALUE *argv, VALUE self)
fo = VpGetException();
if(val==Qnil) return INT2FIX(fo);
if(val!=Qfalse && val!=Qtrue) {
- rb_raise(rb_eTypeError, "second argument must be true or false");
+ rb_raise(rb_eArgError, "second argument must be true or false");
return Qnil; /* Not reached */
}
if(f&VP_EXCEPTION_INFINITY) {
@@ -432,68 +493,86 @@ BigDecimal_mode(int argc, VALUE *argv, VALUE self)
fo = VpGetException();
return INT2FIX(fo);
}
- if(VP_ROUND_MODE==f) {
- /* Rounding mode setting */
- fo = VpGetRoundMode();
- if(val==Qnil) return INT2FIX(fo);
- Check_Type(val, T_FIXNUM);
- if(!VpIsRoundMode(FIX2INT(val))) {
- rb_raise(rb_eTypeError, "invalid rounding mode");
- return Qnil;
- }
- fo = VpSetRoundMode((unsigned long)FIX2INT(val));
- return INT2FIX(fo);
+ if (VP_ROUND_MODE == f) {
+ /* Rounding mode setting */
+ unsigned short sw;
+ fo = VpGetRoundMode();
+ if (NIL_P(val)) return INT2FIX(fo);
+ sw = check_rounding_mode(val);
+ fo = VpSetRoundMode(sw);
+ return INT2FIX(fo);
}
rb_raise(rb_eTypeError, "first argument for BigDecimal#mode invalid");
return Qnil;
}
-static U_LONG
+static size_t
GetAddSubPrec(Real *a, Real *b)
{
- U_LONG mxs;
- U_LONG mx = a->Prec;
- S_INT d;
+ size_t mxs;
+ size_t mx = a->Prec;
+ SIGNED_VALUE d;
- if(!VpIsDef(a) || !VpIsDef(b)) return (-1L);
+ if(!VpIsDef(a) || !VpIsDef(b)) return (size_t)-1L;
if(mx < b->Prec) mx = b->Prec;
if(a->exponent!=b->exponent) {
mxs = mx;
d = a->exponent - b->exponent;
- if(d<0) d = -d;
- mx = mx+(U_LONG)d;
- if(mx<mxs) {
+ if (d < 0) d = -d;
+ mx = mx + (size_t)d;
+ if (mx<mxs) {
return VpException(VP_EXCEPTION_INFINITY,"Exponent overflow",0);
}
}
return mx;
}
-static S_INT
+static SIGNED_VALUE
GetPositiveInt(VALUE v)
{
- S_INT n;
+ SIGNED_VALUE n;
Check_Type(v, T_FIXNUM);
n = FIX2INT(v);
- if(n < 0) {
+ if (n < 0) {
rb_raise(rb_eArgError, "argument must be positive");
}
return n;
}
VP_EXPORT Real *
-VpNewRbClass(U_LONG mx, char *str, VALUE klass)
+VpNewRbClass(size_t mx, const char *str, VALUE klass)
{
Real *pv = VpAlloc(mx,str);
- pv->obj = (VALUE)Data_Wrap_Struct(klass, 0, BigDecimal_delete, pv);
+ pv->obj = TypedData_Wrap_Struct(klass, &BigDecimal_data_type, pv);
return pv;
}
VP_EXPORT Real *
-VpCreateRbObject(U_LONG mx, const char *str)
+VpCreateRbObject(size_t mx, const char *str)
{
Real *pv = VpAlloc(mx,str);
- pv->obj = (VALUE)Data_Wrap_Struct(rb_cBigDecimal, 0, BigDecimal_delete, pv);
+ pv->obj = TypedData_Wrap_Struct(rb_cBigDecimal, &BigDecimal_data_type, pv);
+ return pv;
+}
+
+static Real *
+VpDup(Real const* const x)
+{
+ Real *pv;
+
+ assert(x != NULL);
+
+ pv = VpMemAlloc(sizeof(Real) + x->MaxPrec * sizeof(BDIGIT));
+ pv->MaxPrec = x->MaxPrec;
+ pv->Prec = x->Prec;
+ pv->exponent = x->exponent;
+ pv->sign = x->sign;
+ pv->flag = x->flag;
+ MEMCPY(pv->frac, x->frac, BDIGIT, pv->MaxPrec);
+
+ pv->obj = TypedData_Wrap_Struct(
+ rb_obj_class(x->obj), &BigDecimal_data_type, pv);
+
return pv;
}
@@ -506,7 +585,9 @@ BigDecimal_IsNaN(VALUE self)
return Qfalse;
}
-/* Returns True if the value is infinite */
+/* Returns nil, -1, or +1 depending on whether the value is finite,
+ * -infinity, or +infinity.
+ */
static VALUE
BigDecimal_IsInfinite(VALUE self)
{
@@ -538,18 +619,17 @@ BigDecimal_check_num(Real *p)
}
}
+static VALUE BigDecimal_split(VALUE self);
+
/* Returns the value as an integer (Fixnum or Bignum).
*
- * If the BigNumber is infinity or NaN, returns nil.
+ * If the BigNumber is infinity or NaN, raises FloatDomainError.
*/
static VALUE
BigDecimal_to_i(VALUE self)
{
ENTER(5);
- int e,n,i,nf;
- U_LONG v,b,j;
- volatile VALUE str;
- char *psz,*pch;
+ ssize_t e, nf;
Real *p;
GUARD_OBJ(p,GetVpValue(self,1));
@@ -559,34 +639,31 @@ BigDecimal_to_i(VALUE self)
if(e<=0) return INT2FIX(0);
nf = VpBaseFig();
if(e<=nf) {
- e = VpGetSign(p)*p->frac[0];
- return INT2FIX(e);
+ return LONG2NUM((long)(VpGetSign(p)*(BDIGIT_DBL_SIGNED)p->frac[0]));
}
- str = rb_str_new(0, e+nf+2);
- psz = RSTRING_PTR(str);
-
- n = (e+nf-1)/nf;
- pch = psz;
- if(VpGetSign(p)<0) *pch++ = '-';
- for(i=0;i<n;++i) {
- b = VpBaseVal()/10;
- if(i>=(int)p->Prec) {
- while(b) {
- *pch++ = '0';
- b /= 10;
- }
- continue;
- }
- v = p->frac[i];
- while(b) {
- j = v/b;
- *pch++ = (char)(j + '0');
- v -= j*b;
- b /= 10;
- }
+ else {
+ VALUE a = BigDecimal_split(self);
+ VALUE digits = RARRAY_PTR(a)[1];
+ VALUE numerator = rb_funcall(digits, rb_intern("to_i"), 0);
+ VALUE ret;
+ ssize_t dpower = e - (ssize_t)RSTRING_LEN(digits);
+
+ if (VpGetSign(p) < 0) {
+ numerator = rb_funcall(numerator, '*', 1, INT2FIX(-1));
+ }
+ if (dpower < 0) {
+ ret = rb_funcall(numerator, rb_intern("div"), 1,
+ rb_funcall(INT2FIX(10), rb_intern("**"), 1,
+ INT2FIX(-dpower)));
+ }
+ else
+ ret = rb_funcall(numerator, '*', 1,
+ rb_funcall(INT2FIX(10), rb_intern("**"), 1,
+ INT2FIX(dpower)));
+ if (TYPE(ret) == T_FLOAT)
+ rb_raise(rb_eFloatDomainError, "Infinity");
+ return ret;
}
- *pch++ = 0;
- return rb_cstr2inum(psz,10);
}
/* Returns a new Float object having approximately the same value as the
@@ -599,27 +676,42 @@ BigDecimal_to_f(VALUE self)
ENTER(1);
Real *p;
double d;
- S_LONG e;
+ SIGNED_VALUE e;
char *buf;
volatile VALUE str;
- GUARD_OBJ(p,GetVpValue(self,1));
- if(VpVtoD(&d, &e, p)!=1) return rb_float_new(d);
+ GUARD_OBJ(p, GetVpValue(self, 1));
+ if (VpVtoD(&d, &e, p) != 1)
+ return rb_float_new(d);
+ if (e > (SIGNED_VALUE)(DBL_MAX_10_EXP+BASE_FIG))
+ goto overflow;
+ if (e < (SIGNED_VALUE)(DBL_MIN_10_EXP-BASE_FIG))
+ goto underflow;
+
str = rb_str_new(0, VpNumOfChars(p,"E"));
buf = RSTRING_PTR(str);
VpToString(p, buf, 0, 0);
errno = 0;
d = strtod(buf, 0);
- if(errno == ERANGE) {
- VpException(VP_EXCEPTION_OVERFLOW,"BigDecimal to Float conversion",0);
- if(d>0.0) return rb_float_new(DBL_MAX);
- else return rb_float_new(-DBL_MAX);
- }
+ if (errno == ERANGE)
+ goto overflow;
return rb_float_new(d);
-}
+overflow:
+ VpException(VP_EXCEPTION_OVERFLOW, "BigDecimal to Float conversion", 0);
+ if (d > 0.0)
+ return rb_float_new(VpGetDoublePosInf());
+ else
+ return rb_float_new(VpGetDoubleNegInf());
+
+underflow:
+ VpException(VP_EXCEPTION_UNDERFLOW, "BigDecimal to Float conversion", 0);
+ if (d > 0.0)
+ return rb_float_new(0.0);
+ else
+ return rb_float_new(-0.0);
+}
-static VALUE BigDecimal_split(VALUE self);
/* Converts a BigDecimal to a Rational.
*/
@@ -627,7 +719,7 @@ static VALUE
BigDecimal_to_r(VALUE self)
{
Real *p;
- S_LONG sign, power, denomi_power;
+ ssize_t sign, power, denomi_power;
VALUE a, digits, numerator;
p = GetVpValue(self,1);
@@ -639,7 +731,7 @@ BigDecimal_to_r(VALUE self)
digits = RARRAY_PTR(a)[1];
denomi_power = power - RSTRING_LEN(digits);
numerator = rb_funcall(digits, rb_intern("to_i"), 0);
-
+
if (sign < 0) {
numerator = rb_funcall(numerator, '*', 1, INT2FIX(-1));
}
@@ -657,8 +749,8 @@ BigDecimal_to_r(VALUE self)
/* The coerce method provides support for Ruby type coercion. It is not
* enabled by default.
- *
- * This means that binary operations like + * / or - can often be performed
+ *
+ * This means that binary operations like + * / or - can often be performed
* on a BigDecimal and an object of another type, if the other object can
* be coerced into a BigDecimal value.
*
@@ -675,17 +767,21 @@ BigDecimal_coerce(VALUE self, VALUE other)
ENTER(2);
VALUE obj;
Real *b;
- switch (TYPE(other)) {
- case T_FLOAT:
+
+ if (TYPE(other) == T_FLOAT) {
obj = rb_assoc_new(other, BigDecimal_to_f(self));
- break;
- case T_RATIONAL:
- obj = rb_assoc_new(other, BigDecimal_to_r(self));
- break;
- default:
- GUARD_OBJ(b,GetVpValue(other,1));
+ }
+ else {
+ if (TYPE(other) == T_RATIONAL) {
+ Real* pv = DATA_PTR(self);
+ GUARD_OBJ(b, GetVpValueWithPrec(other, pv->Prec*VpBaseFig(), 1));
+ }
+ else {
+ GUARD_OBJ(b, GetVpValue(other, 1));
+ }
obj = rb_assoc_new(b->obj, self);
}
+
return obj;
}
@@ -698,7 +794,7 @@ BigDecimal_uplus(VALUE self)
/* call-seq:
* add(value, digits)
*
- * Add the specified value.
+ * Add the specified value.
*
* e.g.
* c = a.add(b,n)
@@ -711,7 +807,7 @@ BigDecimal_add(VALUE self, VALUE r)
{
ENTER(5);
Real *c, *a, *b;
- U_LONG mx;
+ size_t mx;
GUARD_OBJ(a,GetVpValue(self,1));
b = GetVpValue(r,0);
if(!b) return DoSomeOne(self,r,'+');
@@ -719,7 +815,7 @@ BigDecimal_add(VALUE self, VALUE r)
if(VpIsNaN(b)) return b->obj;
if(VpIsNaN(a)) return a->obj;
mx = GetAddSubPrec(a,b);
- if(mx==(-1L)) {
+ if (mx == (size_t)-1L) {
GUARD_OBJ(c,VpCreateRbObject(VpBaseFig() + 1, "0"));
VpAddSub(c, a, b, 1);
} else {
@@ -736,7 +832,7 @@ BigDecimal_add(VALUE self, VALUE r)
/* call-seq:
* sub(value, digits)
*
- * Subtract the specified value.
+ * Subtract the specified value.
*
* e.g.
* c = a.sub(b,n)
@@ -749,7 +845,7 @@ BigDecimal_sub(VALUE self, VALUE r)
{
ENTER(5);
Real *c, *a, *b;
- U_LONG mx;
+ size_t mx;
GUARD_OBJ(a,GetVpValue(self,1));
b = GetVpValue(r,0);
@@ -760,7 +856,7 @@ BigDecimal_sub(VALUE self, VALUE r)
if(VpIsNaN(a)) return a->obj;
mx = GetAddSubPrec(a,b);
- if(mx==(-1L)) {
+ if (mx == (size_t)-1L) {
GUARD_OBJ(c,VpCreateRbObject(VpBaseFig() + 1, "0"));
VpAddSub(c, a, b, -1);
} else {
@@ -778,37 +874,91 @@ static VALUE
BigDecimalCmp(VALUE self, VALUE r,char op)
{
ENTER(5);
- S_INT e;
- Real *a, *b;
+ SIGNED_VALUE e;
+ Real *a, *b=0;
GUARD_OBJ(a,GetVpValue(self,1));
- b = GetVpValue(r,0);
- if(!b) {
+ switch (TYPE(r)) {
+ case T_DATA:
+ if (!is_kind_of_BigDecimal(r)) break;
+ /* fall through */
+ case T_FIXNUM:
+ /* fall through */
+ case T_BIGNUM:
+ GUARD_OBJ(b, GetVpValue(r,0));
+ break;
+
+ case T_FLOAT:
+ GUARD_OBJ(b, GetVpValueWithPrec(r, DBL_DIG+1, 0));
+ break;
+
+ case T_RATIONAL:
+ GUARD_OBJ(b, GetVpValueWithPrec(r, a->Prec*VpBaseFig(), 0));
+ break;
+
+ default:
+ break;
+ }
+ if (b == NULL) {
ID f = 0;
- switch(op)
- {
- case '*': f = rb_intern("<=>");break;
- case '=': f = rb_intern("=="); break;
- case '!': f = rb_intern("!="); break;
- case 'G': f = rb_intern(">="); break;
- case 'L': f = rb_intern("<="); break;
- case '>': case '<': f = (ID)op; break;
+ switch (op) {
+ case '*':
+ return rb_num_coerce_cmp(self, r, rb_intern("<=>"));
+
+ case '=':
+ return RTEST(rb_num_coerce_cmp(self, r, rb_intern("=="))) ? Qtrue : Qfalse;
+
+ case 'G':
+ f = rb_intern(">=");
+ break;
+
+ case 'L':
+ f = rb_intern("<=");
+ break;
+
+ case '>':
+ /* fall through */
+ case '<':
+ f = (ID)op;
+ break;
+
+ default:
+ break;
}
- return rb_num_coerce_cmp(self,r,f);
+ return rb_num_coerce_relop(self, r, f);
}
SAVE(b);
e = VpComp(a, b);
- if(e==999) return Qnil;
- switch(op)
- {
- case '*': return INT2FIX(e); /* any op */
- case '=': if(e==0) return Qtrue ; return Qfalse;
- case '!': if(e!=0) return Qtrue ; return Qfalse;
- case 'G': if(e>=0) return Qtrue ; return Qfalse;
- case '>': if(e> 0) return Qtrue ; return Qfalse;
- case 'L': if(e<=0) return Qtrue ; return Qfalse;
- case '<': if(e< 0) return Qtrue ; return Qfalse;
+ if (e == 999)
+ return (op == '*') ? Qnil : Qfalse;
+ switch (op) {
+ case '*':
+ return INT2FIX(e); /* any op */
+
+ case '=':
+ if(e==0) return Qtrue;
+ return Qfalse;
+
+ case 'G':
+ if(e>=0) return Qtrue;
+ return Qfalse;
+
+ case '>':
+ if(e> 0) return Qtrue;
+ return Qfalse;
+
+ case 'L':
+ if(e<=0) return Qtrue;
+ return Qfalse;
+
+ case '<':
+ if(e< 0) return Qtrue;
+ return Qfalse;
+
+ default:
+ break;
}
+
rb_bug("Undefined operation in BigDecimalCmp()");
}
@@ -820,7 +970,7 @@ BigDecimal_zero(VALUE self)
return VpIsZero(a) ? Qtrue : Qfalse;
}
-/* Returns True if the value is non-zero. */
+/* Returns self if the value is non-zero, nil otherwise. */
static VALUE
BigDecimal_nonzero(VALUE self)
{
@@ -840,7 +990,7 @@ BigDecimal_comp(VALUE self, VALUE r)
/*
* Tests for value equality; returns true if the values are equal.
*
- * The == and === operators and the eql? method have the same implementation
+ * The == and === operators and the eql? method have the same implementation
* for BigDecimal.
*
* Values may be coerced to perform the comparison:
@@ -868,7 +1018,7 @@ BigDecimal_lt(VALUE self, VALUE r)
/* call-seq:
* a <= b
*
- * Returns true if a is less than or equal to b. Values may be coerced to
+ * Returns true if a is less than or equal to b. Values may be coerced to
* perform the comparison (see ==, coerce).
*/
static VALUE
@@ -880,7 +1030,7 @@ BigDecimal_le(VALUE self, VALUE r)
/* call-seq:
* a > b
*
- * Returns true if a is greater than b. Values may be coerced to
+ * Returns true if a is greater than b. Values may be coerced to
* perform the comparison (see ==, coerce).
*/
static VALUE
@@ -892,7 +1042,7 @@ BigDecimal_gt(VALUE self, VALUE r)
/* call-seq:
* a >= b
*
- * Returns true if a is greater than or equal to b. Values may be coerced to
+ * Returns true if a is greater than or equal to b. Values may be coerced to
* perform the comparison (see ==, coerce)
*/
static VALUE
@@ -915,7 +1065,7 @@ BigDecimal_neg(VALUE self)
/* call-seq:
* mult(value, digits)
*
- * Multiply by the specified value.
+ * Multiply by the specified value.
*
* e.g.
* c = a.mult(b,n)
@@ -928,7 +1078,7 @@ BigDecimal_mult(VALUE self, VALUE r)
{
ENTER(5);
Real *c, *a, *b;
- U_LONG mx;
+ size_t mx;
GUARD_OBJ(a,GetVpValue(self,1));
b = GetVpValue(r,0);
@@ -947,14 +1097,16 @@ BigDecimal_divide(Real **c, Real **res, Real **div, VALUE self, VALUE r)
{
ENTER(5);
Real *a, *b;
- U_LONG mx;
+ size_t mx;
GUARD_OBJ(a,GetVpValue(self,1));
b = GetVpValue(r,0);
if(!b) return DoSomeOne(self,r,'/');
SAVE(b);
*div = b;
- mx =(a->MaxPrec + b->MaxPrec + 1) * VpBaseFig();
+ mx = a->Prec + vabs(a->exponent);
+ if(mx<b->Prec + vabs(b->exponent)) mx = b->Prec + vabs(b->exponent);
+ mx =(mx + 1) * VpBaseFig();
GUARD_OBJ((*c),VpCreateRbObject(mx, "#0"));
GUARD_OBJ((*res),VpCreateRbObject((mx+1) * 2 +(VpBaseFig() + 1), "#0"));
VpDivd(*c, *res, a, b);
@@ -965,13 +1117,13 @@ BigDecimal_divide(Real **c, Real **res, Real **div, VALUE self, VALUE r)
* div(value, digits)
* quo(value)
*
- * Divide by the specified value.
+ * Divide by the specified value.
*
* e.g.
* c = a.div(b,n)
*
* digits:: If specified and less than the number of significant digits of the result, the result is rounded to that number of digits, according to BigDecimal.mode.
- *
+ *
* If digits is 0, the result is the same as the / operator. If not, the
* result is an integer BigDecimal, by analogy with Float#div.
*
@@ -993,7 +1145,7 @@ BigDecimal_div(VALUE self, VALUE r)
*/
/* Round */
if(VpHasVal(div)) { /* frac[0] must be zero for NaN,INF,Zero */
- VpInternalRound(c,0,c->frac[c->Prec-1],(VpBaseVal()*res->frac[0])/div->frac[0]);
+ VpInternalRound(c, 0, c->frac[c->Prec-1], (BDIGIT)(VpBaseVal()*(BDIGIT_DBL)res->frac[0]/div->frac[0]));
}
return ToValue(c);
}
@@ -1008,28 +1160,42 @@ BigDecimal_DoDivmod(VALUE self, VALUE r, Real **div, Real **mod)
ENTER(8);
Real *c=NULL, *d=NULL, *res=NULL;
Real *a, *b;
- U_LONG mx;
+ size_t mx;
GUARD_OBJ(a,GetVpValue(self,1));
b = GetVpValue(r,0);
- if(!b) return DoSomeOne(self,r,rb_intern("divmod"));
+ if(!b) return Qfalse;
SAVE(b);
if(VpIsNaN(a) || VpIsNaN(b)) goto NaN;
- if(VpIsInf(a) || VpIsInf(b)) goto NaN;
+ if(VpIsInf(a) && VpIsInf(b)) goto NaN;
if(VpIsZero(b)) {
rb_raise(rb_eZeroDivError, "divided by 0");
}
+ if(VpIsInf(a)) {
+ GUARD_OBJ(d,VpCreateRbObject(1, "0"));
+ VpSetInf(d, (SIGNED_VALUE)(VpGetSign(a) == VpGetSign(b) ? 1 : -1));
+ GUARD_OBJ(c,VpCreateRbObject(1, "NaN"));
+ *div = d;
+ *mod = c;
+ return Qtrue;
+ }
+ if(VpIsInf(b)) {
+ GUARD_OBJ(d,VpCreateRbObject(1, "0"));
+ *div = d;
+ *mod = a;
+ return Qtrue;
+ }
if(VpIsZero(a)) {
GUARD_OBJ(c,VpCreateRbObject(1, "0"));
GUARD_OBJ(d,VpCreateRbObject(1, "0"));
*div = d;
*mod = c;
- return (VALUE)0;
+ return Qtrue;
}
- mx = a->Prec;
- if(mx<b->Prec) mx = b->Prec;
+ mx = a->Prec + vabs(a->exponent);
+ if(mx<b->Prec + vabs(b->exponent)) mx = b->Prec + vabs(b->exponent);
mx =(mx + 1) * VpBaseFig();
GUARD_OBJ(c,VpCreateRbObject(mx, "0"));
GUARD_OBJ(res,VpCreateRbObject((mx+1) * 2 +(VpBaseFig() + 1), "#0"));
@@ -1041,6 +1207,7 @@ BigDecimal_DoDivmod(VALUE self, VALUE r, Real **div, Real **mod)
VpAddSub(c,a,res,-1);
if(!VpIsZero(c) && (VpGetSign(a)*VpGetSign(b)<0)) {
VpAddSub(res,d,VpOne(),-1);
+ GUARD_OBJ(d,VpCreateRbObject(GetAddSubPrec(c, b)*(VpBaseFig() + 1), "0"));
VpAddSub(d ,c,b, 1);
*div = res;
*mod = d;
@@ -1048,14 +1215,14 @@ BigDecimal_DoDivmod(VALUE self, VALUE r, Real **div, Real **mod)
*div = d;
*mod = c;
}
- return (VALUE)0;
+ return Qtrue;
NaN:
GUARD_OBJ(c,VpCreateRbObject(1, "NaN"));
GUARD_OBJ(d,VpCreateRbObject(1, "NaN"));
*div = d;
*mod = c;
- return (VALUE)0;
+ return Qtrue;
}
/* call-seq:
@@ -1068,20 +1235,20 @@ static VALUE
BigDecimal_mod(VALUE self, VALUE r) /* %: a%b = a - (a.to_f/b).floor * b */
{
ENTER(3);
- VALUE obj;
Real *div=NULL, *mod=NULL;
- obj = BigDecimal_DoDivmod(self,r,&div,&mod);
- if(obj!=(VALUE)0) return obj;
- SAVE(div);SAVE(mod);
- return ToValue(mod);
+ if(BigDecimal_DoDivmod(self,r,&div,&mod)) {
+ SAVE(div); SAVE(mod);
+ return ToValue(mod);
+ }
+ return DoSomeOne(self,r,'%');
}
static VALUE
BigDecimal_divremain(VALUE self, VALUE r, Real **dv, Real **rv)
{
ENTER(10);
- U_LONG mx;
+ size_t mx;
Real *a=NULL, *b=NULL, *c=NULL, *res=NULL, *d=NULL, *rr=NULL, *ff=NULL;
Real *f=NULL;
@@ -1116,10 +1283,7 @@ BigDecimal_divremain(VALUE self, VALUE r, Real **dv, Real **rv)
/* Returns the remainder from dividing by the value.
*
- * If the values divided are of the same sign, the remainder is the same as
- * the modulus (see divmod).
- *
- * Otherwise, the remainder is the modulus minus the value divided by.
+ * x.remainder(y) means x-y*(x/y).truncate
*/
static VALUE
BigDecimal_remainder(VALUE self, VALUE r) /* remainder */
@@ -1147,21 +1311,20 @@ BigDecimal_remainder(VALUE self, VALUE r) /* remainder */
*
* a == c -> true
*
- * The quotient q is (a/b).floor, and the modulus is the amount that must be
+ * The quotient q is (a/b).floor, and the modulus is the amount that must be
* added to q * b to get a.
*/
static VALUE
BigDecimal_divmod(VALUE self, VALUE r)
{
ENTER(5);
- VALUE obj;
Real *div=NULL, *mod=NULL;
- obj = BigDecimal_DoDivmod(self,r,&div,&mod);
- if(obj!=(VALUE)0) return obj;
- SAVE(div);SAVE(mod);
- obj = rb_assoc_new(BigDecimal_to_i(ToValue(div)), ToValue(mod));
- return obj;
+ if(BigDecimal_DoDivmod(self,r,&div,&mod)) {
+ SAVE(div); SAVE(mod);
+ return rb_assoc_new(ToValue(div), ToValue(mod));
+ }
+ return DoSomeOne(self,r,rb_intern("divmod"));
}
static VALUE
@@ -1171,20 +1334,20 @@ BigDecimal_div2(int argc, VALUE *argv, VALUE self)
VALUE b,n;
int na = rb_scan_args(argc,argv,"11",&b,&n);
if(na==1) { /* div in Float sense */
- VALUE obj;
Real *div=NULL;
Real *mod;
- obj = BigDecimal_DoDivmod(self,b,&div,&mod);
- if(obj!=(VALUE)0) return obj;
- return BigDecimal_to_i(ToValue(div));
+ if(BigDecimal_DoDivmod(self,b,&div,&mod)) {
+ return BigDecimal_to_i(ToValue(div));
+ }
+ return DoSomeOne(self,b,rb_intern("div"));
} else { /* div in BigDecimal sense */
- U_LONG ix = (U_LONG)GetPositiveInt(n);
- if(ix==0) return BigDecimal_div(self,b);
+ SIGNED_VALUE ix = GetPositiveInt(n);
+ if (ix == 0) return BigDecimal_div(self, b);
else {
Real *res=NULL;
Real *av=NULL, *bv=NULL, *cv=NULL;
- U_LONG mx = (ix+VpBaseFig()*2);
- U_LONG pl = VpSetPrecLimit(0);
+ size_t mx = (ix+VpBaseFig()*2);
+ size_t pl = VpSetPrecLimit(0);
GUARD_OBJ(cv,VpCreateRbObject(mx,"0"));
GUARD_OBJ(av,GetVpValue(self,1));
@@ -1205,10 +1368,10 @@ BigDecimal_add2(VALUE self, VALUE b, VALUE n)
{
ENTER(2);
Real *cv;
- U_LONG mx = (U_LONG)GetPositiveInt(n);
- if(mx==0) return BigDecimal_add(self,b);
+ SIGNED_VALUE mx = GetPositiveInt(n);
+ if (mx == 0) return BigDecimal_add(self, b);
else {
- U_LONG pl = VpSetPrecLimit(0);
+ size_t pl = VpSetPrecLimit(0);
VALUE c = BigDecimal_add(self,b);
VpSetPrecLimit(pl);
GUARD_OBJ(cv,GetVpValue(c,1));
@@ -1222,10 +1385,10 @@ BigDecimal_sub2(VALUE self, VALUE b, VALUE n)
{
ENTER(2);
Real *cv;
- U_LONG mx = (U_LONG)GetPositiveInt(n);
- if(mx==0) return BigDecimal_sub(self,b);
+ SIGNED_VALUE mx = GetPositiveInt(n);
+ if (mx == 0) return BigDecimal_sub(self, b);
else {
- U_LONG pl = VpSetPrecLimit(0);
+ size_t pl = VpSetPrecLimit(0);
VALUE c = BigDecimal_sub(self,b);
VpSetPrecLimit(pl);
GUARD_OBJ(cv,GetVpValue(c,1));
@@ -1239,10 +1402,10 @@ BigDecimal_mult2(VALUE self, VALUE b, VALUE n)
{
ENTER(2);
Real *cv;
- U_LONG mx = (U_LONG)GetPositiveInt(n);
- if(mx==0) return BigDecimal_mult(self,b);
+ SIGNED_VALUE mx = GetPositiveInt(n);
+ if (mx == 0) return BigDecimal_mult(self, b);
else {
- U_LONG pl = VpSetPrecLimit(0);
+ size_t pl = VpSetPrecLimit(0);
VALUE c = BigDecimal_mult(self,b);
VpSetPrecLimit(pl);
GUARD_OBJ(cv,GetVpValue(c,1));
@@ -1262,13 +1425,13 @@ BigDecimal_abs(VALUE self)
{
ENTER(5);
Real *c, *a;
- U_LONG mx;
+ size_t mx;
GUARD_OBJ(a,GetVpValue(self,1));
mx = a->Prec *(VpBaseFig() + 1);
GUARD_OBJ(c,VpCreateRbObject(mx, "0"));
VpAsgn(c, a, 1);
- VpChangeSign(c,(S_INT)1);
+ VpChangeSign(c, 1);
return ToValue(c);
}
@@ -1284,7 +1447,7 @@ BigDecimal_sqrt(VALUE self, VALUE nFig)
{
ENTER(5);
Real *c, *a;
- S_INT mx, n;
+ size_t mx, n;
GUARD_OBJ(a,GetVpValue(self,1));
mx = a->Prec *(VpBaseFig() + 1);
@@ -1303,7 +1466,7 @@ BigDecimal_fix(VALUE self)
{
ENTER(5);
Real *c, *a;
- U_LONG mx;
+ size_t mx;
GUARD_OBJ(a,GetVpValue(self,1));
mx = a->Prec *(VpBaseFig() + 1);
@@ -1313,7 +1476,7 @@ BigDecimal_fix(VALUE self)
}
/* call-seq:
- * round(n,mode)
+ * round(n, mode)
*
* Round to the nearest 1 (by default), returning the result as a BigDecimal.
*
@@ -1322,7 +1485,7 @@ BigDecimal_fix(VALUE self)
* BigDecimal('8.7').round -> 9
*
* If n is specified and positive, the fractional part of the result has no
- * more than that many digits.
+ * more than that many digits.
*
* If n is specified and negative, at least that many digits to the left of the
* decimal point will be 0 in the result.
@@ -1331,7 +1494,7 @@ BigDecimal_fix(VALUE self)
*
* BigDecimal('13345.234').round(-2) -> 13300.0
*
- * The value of the optional mode argument can be used to determine how
+ * The value of the optional mode argument can be used to determine how
* rounding is performed; see BigDecimal.mode.
*/
static VALUE
@@ -1340,15 +1503,13 @@ BigDecimal_round(int argc, VALUE *argv, VALUE self)
ENTER(5);
Real *c, *a;
int iLoc = 0;
- U_LONG mx;
VALUE vLoc;
VALUE vRound;
- U_LONG pl;
+ size_t mx, pl;
- int sw = VpGetRoundMode();
+ unsigned short sw = VpGetRoundMode();
- int na = rb_scan_args(argc,argv,"02",&vLoc,&vRound);
- switch(na) {
+ switch (rb_scan_args(argc, argv, "02", &vLoc, &vRound)) {
case 0:
iLoc = 0;
break;
@@ -1357,15 +1518,10 @@ BigDecimal_round(int argc, VALUE *argv, VALUE self)
iLoc = FIX2INT(vLoc);
break;
case 2:
- Check_Type(vLoc, T_FIXNUM);
- iLoc = FIX2INT(vLoc);
- Check_Type(vRound, T_FIXNUM);
- sw = FIX2INT(vRound);
- if(!VpIsRoundMode(sw)) {
- rb_raise(rb_eTypeError, "invalid rounding mode");
- return Qnil;
- }
- break;
+ Check_Type(vLoc, T_FIXNUM);
+ iLoc = FIX2INT(vLoc);
+ sw = check_rounding_mode(vRound);
+ break;
}
pl = VpSetPrecLimit(0);
@@ -1390,7 +1546,7 @@ BigDecimal_round(int argc, VALUE *argv, VALUE self)
* BigDecimal('8.7').truncate -> 8
*
* If n is specified and positive, the fractional part of the result has no
- * more than that many digits.
+ * more than that many digits.
*
* If n is specified and negative, at least that many digits to the left of the
* decimal point will be 0 in the result.
@@ -1405,9 +1561,8 @@ BigDecimal_truncate(int argc, VALUE *argv, VALUE self)
ENTER(5);
Real *c, *a;
int iLoc;
- U_LONG mx;
VALUE vLoc;
- U_LONG pl = VpSetPrecLimit(0);
+ size_t mx, pl = VpSetPrecLimit(0);
if(rb_scan_args(argc,argv,"01",&vLoc)==0) {
iLoc = 0;
@@ -1434,7 +1589,7 @@ BigDecimal_frac(VALUE self)
{
ENTER(5);
Real *c, *a;
- U_LONG mx;
+ size_t mx;
GUARD_OBJ(a,GetVpValue(self,1));
mx = a->Prec *(VpBaseFig() + 1);
@@ -1453,7 +1608,7 @@ BigDecimal_frac(VALUE self)
* BigDecimal('-9.1').floor -> -10
*
* If n is specified and positive, the fractional part of the result has no
- * more than that many digits.
+ * more than that many digits.
*
* If n is specified and negative, at least that
* many digits to the left of the decimal point will be 0 in the result.
@@ -1467,10 +1622,9 @@ BigDecimal_floor(int argc, VALUE *argv, VALUE self)
{
ENTER(5);
Real *c, *a;
- U_LONG mx;
int iLoc;
VALUE vLoc;
- U_LONG pl = VpSetPrecLimit(0);
+ size_t mx, pl = VpSetPrecLimit(0);
if(rb_scan_args(argc,argv,"01",&vLoc)==0) {
iLoc = 0;
@@ -1484,6 +1638,9 @@ BigDecimal_floor(int argc, VALUE *argv, VALUE self)
GUARD_OBJ(c,VpCreateRbObject(mx, "0"));
VpSetPrecLimit(pl);
VpActiveRound(c,a,VP_ROUND_FLOOR,iLoc);
+#ifdef BIGDECIMAL_DEBUG
+ VPrint(stderr, "floor: c=%\n", c);
+#endif
if (argc == 0) {
return BigDecimal_to_i(ToValue(c));
}
@@ -1500,7 +1657,7 @@ BigDecimal_floor(int argc, VALUE *argv, VALUE self)
* BigDecimal('-9.1').ceil -> -9
*
* If n is specified and positive, the fractional part of the result has no
- * more than that many digits.
+ * more than that many digits.
*
* If n is specified and negative, at least that
* many digits to the left of the decimal point will be 0 in the result.
@@ -1514,10 +1671,9 @@ BigDecimal_ceil(int argc, VALUE *argv, VALUE self)
{
ENTER(5);
Real *c, *a;
- U_LONG mx;
int iLoc;
VALUE vLoc;
- U_LONG pl = VpSetPrecLimit(0);
+ size_t mx, pl = VpSetPrecLimit(0);
if(rb_scan_args(argc,argv,"01",&vLoc)==0) {
iLoc = 0;
@@ -1552,7 +1708,7 @@ BigDecimal_ceil(int argc, VALUE *argv, VALUE self)
*
* A space at the start of s returns positive values with a leading space.
*
- * If s contains a number, a space is inserted after each group of that many
+ * If s contains a number, a space is inserted after each group of that many
* fractional digits.
*
* If s ends with an 'E', engineering notation (0.xxxxEnn) is used.
@@ -1577,12 +1733,11 @@ BigDecimal_to_s(int argc, VALUE *argv, VALUE self)
volatile VALUE str;
char *psz;
char ch;
- U_LONG nc;
- S_INT mc = 0;
+ size_t nc, mc = 0;
VALUE f;
GUARD_OBJ(vp,GetVpValue(self,1));
-
+
if(rb_scan_args(argc,argv,"01",&f)==1) {
if(TYPE(f)==T_STRING) {
SafeStringValue(f);
@@ -1600,8 +1755,9 @@ BigDecimal_to_s(int argc, VALUE *argv, VALUE self)
}
mc = mc * 10 + ch - '0';
}
- } else {
- mc = GetPositiveInt(f);
+ }
+ else {
+ mc = (size_t)GetPositiveInt(f);
}
}
if(fmt) {
@@ -1636,7 +1792,7 @@ BigDecimal_to_s(int argc, VALUE *argv, VALUE self)
*
* The fourth value is an Integer exponent.
*
- * If the BigDecimal can be represented as 0.xxxxxx*10**n, then xxxxxx is the
+ * If the BigDecimal can be represented as 0.xxxxxx*10**n, then xxxxxx is the
* string of significant digits with no leading zeros, and n is the exponent.
*
* From these values, you can translate a BigDecimal to a float as follows:
@@ -1644,7 +1800,7 @@ BigDecimal_to_s(int argc, VALUE *argv, VALUE self)
* sign, significant_digits, base, exponent = a.split
* f = sign * "0.#{significant_digits}".to_f * (base ** exponent)
*
- * (Note that the to_f method is provided as a more convenient way to translate
+ * (Note that the to_f method is provided as a more convenient way to translate
* a BigDecimal to a Float.)
*/
static VALUE
@@ -1653,8 +1809,7 @@ BigDecimal_split(VALUE self)
ENTER(5);
Real *vp;
VALUE obj,str;
- S_LONG e;
- S_LONG s;
+ ssize_t e, s;
char *psz1;
GUARD_OBJ(vp,GetVpValue(self,1));
@@ -1663,7 +1818,7 @@ BigDecimal_split(VALUE self)
VpSzMantissa(vp,psz1);
s = 1;
if(psz1[0]=='-') {
- int len = strlen(psz1+1);
+ size_t len = strlen(psz1+1);
memmove(psz1, psz1+1, len);
psz1[len] = '\0';
@@ -1688,7 +1843,7 @@ BigDecimal_split(VALUE self)
static VALUE
BigDecimal_exponent(VALUE self)
{
- S_LONG e = VpExponent10(GetVpValue(self,1));
+ ssize_t e = VpExponent10(GetVpValue(self, 1));
return INT2NUM(e);
}
@@ -1708,7 +1863,7 @@ BigDecimal_inspect(VALUE self)
ENTER(5);
Real *vp;
volatile VALUE obj;
- unsigned int nc;
+ size_t nc;
char *psz, *tmp;
GUARD_OBJ(vp,GetVpValue(self,1));
@@ -1717,106 +1872,449 @@ BigDecimal_inspect(VALUE self)
obj = rb_str_new(0, nc+256);
psz = RSTRING_PTR(obj);
- sprintf(psz,"#<BigDecimal:%lx,'",self);
+ sprintf(psz,"#<BigDecimal:%"PRIxVALUE",'",self);
tmp = psz + strlen(psz);
VpToString(vp, tmp, 10, 0);
tmp += strlen(tmp);
- sprintf(tmp,"',%lu(%lu)>",VpPrec(vp)*VpBaseFig(),VpMaxPrec(vp)*VpBaseFig());
+ sprintf(tmp, "',%"PRIuSIZE"(%"PRIuSIZE")>", VpPrec(vp)*VpBaseFig(), VpMaxPrec(vp)*VpBaseFig());
rb_str_resize(obj, strlen(psz));
return obj;
}
+static VALUE BigMath_s_exp(VALUE, VALUE, VALUE);
+static VALUE BigMath_s_log(VALUE, VALUE, VALUE);
+
+#define BigMath_exp(x, n) BigMath_s_exp(rb_mBigMath, (x), (n))
+#define BigMath_log(x, n) BigMath_s_log(rb_mBigMath, (x), (n))
+
+inline static int
+is_integer(VALUE x)
+{
+ return (TYPE(x) == T_FIXNUM || TYPE(x) == T_BIGNUM);
+}
+
+inline static int
+is_negative(VALUE x)
+{
+ if (FIXNUM_P(x)) {
+ return FIX2LONG(x) < 0;
+ }
+ else if (TYPE(x) == T_BIGNUM) {
+ return RBIGNUM_NEGATIVE_P(x);
+ }
+ else if (TYPE(x) == T_FLOAT) {
+ return RFLOAT_VALUE(x) < 0.0;
+ }
+ return RTEST(rb_funcall(x, '<', 1, INT2FIX(0)));
+}
+
+#define is_positive(x) (!is_negative(x))
+
+inline static int
+is_zero(VALUE x)
+{
+ VALUE num;
+
+ switch (TYPE(x)) {
+ case T_FIXNUM:
+ return FIX2LONG(x) == 0;
+
+ case T_BIGNUM:
+ return Qfalse;
+
+ case T_RATIONAL:
+ num = RRATIONAL(x)->num;
+ return FIXNUM_P(num) && FIX2LONG(num) == 0;
+
+ default:
+ break;
+ }
+
+ return RTEST(rb_funcall(x, id_eq, 1, INT2FIX(0)));
+}
+
+inline static int
+is_one(VALUE x)
+{
+ VALUE num, den;
+
+ switch (TYPE(x)) {
+ case T_FIXNUM:
+ return FIX2LONG(x) == 1;
+
+ case T_BIGNUM:
+ return Qfalse;
+
+ case T_RATIONAL:
+ num = RRATIONAL(x)->num;
+ den = RRATIONAL(x)->den;
+ return FIXNUM_P(den) && FIX2LONG(den) == 1 &&
+ FIXNUM_P(num) && FIX2LONG(num) == 1;
+
+ default:
+ break;
+ }
+
+ return RTEST(rb_funcall(x, id_eq, 1, INT2FIX(1)));
+}
+
+inline static int
+is_even(VALUE x)
+{
+ switch (TYPE(x)) {
+ case T_FIXNUM:
+ return (FIX2LONG(x) % 2) == 0;
+
+ case T_BIGNUM:
+ return (RBIGNUM_DIGITS(x)[0] % 2) == 0;
+
+ default:
+ break;
+ }
+
+ return 0;
+}
+
+static VALUE
+rmpd_power_by_big_decimal(Real const* x, Real const* exp, ssize_t const n)
+{
+ VALUE log_x, multiplied, y;
+
+ if (VpIsZero(exp)) {
+ return ToValue(VpCreateRbObject(n, "1"));
+ }
+
+ log_x = BigMath_log(x->obj, SSIZET2NUM(n+1));
+ multiplied = BigDecimal_mult2(exp->obj, log_x, SSIZET2NUM(n+1));
+ y = BigMath_exp(multiplied, SSIZET2NUM(n));
+
+ return y;
+}
+
/* call-seq:
* power(n)
+ * power(n, prec)
*
* Returns the value raised to the power of n. Note that n must be an Integer.
*
* Also available as the operator **
*/
static VALUE
-BigDecimal_power(VALUE self, VALUE p)
+BigDecimal_power(int argc, VALUE*argv, VALUE self)
{
ENTER(5);
+ VALUE vexp, prec;
+ Real* exp = NULL;
Real *x, *y;
- S_LONG mp, ma, n;
-
- Check_Type(p, T_FIXNUM);
- n = FIX2INT(p);
- ma = n;
- if(ma < 0) ma = -ma;
- if(ma == 0) ma = 1;
-
- GUARD_OBJ(x,GetVpValue(self,1));
- if(VpIsDef(x)) {
- mp = x->Prec *(VpBaseFig() + 1);
- GUARD_OBJ(y,VpCreateRbObject(mp *(ma + 1), "0"));
- } else {
- GUARD_OBJ(y,VpCreateRbObject(1, "0"));
+ ssize_t mp, ma, n;
+ SIGNED_VALUE int_exp;
+ double d;
+
+ rb_scan_args(argc, argv, "11", &vexp, &prec);
+
+ GUARD_OBJ(x, GetVpValue(self, 1));
+ n = NIL_P(prec) ? (ssize_t)(x->Prec*VpBaseFig()) : NUM2SSIZET(prec);
+
+ if (VpIsNaN(x)) {
+ y = VpCreateRbObject(n, "0#");
+ RB_GC_GUARD(y->obj);
+ VpSetNaN(y);
+ return ToValue(y);
+ }
+
+retry:
+ switch (TYPE(vexp)) {
+ case T_FIXNUM:
+ break;
+
+ case T_BIGNUM:
+ break;
+
+ case T_FLOAT:
+ d = RFLOAT_VALUE(vexp);
+ if (d == round(d)) {
+ vexp = LL2NUM((LONG_LONG)round(d));
+ goto retry;
+ }
+ exp = GetVpValueWithPrec(vexp, DBL_DIG+1, 1);
+ break;
+
+ case T_RATIONAL:
+ if (is_zero(RRATIONAL(vexp)->num)) {
+ if (is_positive(vexp)) {
+ vexp = INT2FIX(0);
+ goto retry;
+ }
+ }
+ else if (is_one(RRATIONAL(vexp)->den)) {
+ vexp = RRATIONAL(vexp)->num;
+ goto retry;
+ }
+ exp = GetVpValueWithPrec(vexp, n, 1);
+ break;
+
+ case T_DATA:
+ if (is_kind_of_BigDecimal(vexp)) {
+ VALUE zero = INT2FIX(0);
+ VALUE rounded = BigDecimal_round(1, &zero, vexp);
+ if (RTEST(BigDecimal_eq(vexp, rounded))) {
+ vexp = BigDecimal_to_i(vexp);
+ goto retry;
+ }
+ exp = DATA_PTR(vexp);
+ break;
+ }
+ /* fall through */
+ default:
+ rb_raise(rb_eTypeError,
+ "wrong argument type %s (expected scalar Numeric)",
+ rb_obj_classname(vexp));
+ }
+
+ if (VpIsZero(x)) {
+ if (is_negative(vexp)) {
+ y = VpCreateRbObject(n, "#0");
+ RB_GC_GUARD(y->obj);
+ if (VpGetSign(x) < 0) {
+ if (is_integer(vexp)) {
+ if (is_even(vexp)) {
+ /* (-0) ** (-even_integer) -> Infinity */
+ VpSetPosInf(y);
+ }
+ else {
+ /* (-0) ** (-odd_integer) -> -Infinity */
+ VpSetNegInf(y);
+ }
+ }
+ else {
+ /* (-0) ** (-non_integer) -> Infinity */
+ VpSetPosInf(y);
+ }
+ }
+ else {
+ /* (+0) ** (-num) -> Infinity */
+ VpSetPosInf(y);
+ }
+ return ToValue(y);
+ }
+ else if (is_zero(vexp)) {
+ return ToValue(VpCreateRbObject(n, "1"));
+ }
+ else {
+ return ToValue(VpCreateRbObject(n, "0"));
+ }
+ }
+
+ if (is_zero(vexp)) {
+ return ToValue(VpCreateRbObject(n, "1"));
}
- VpPower(y, x, n);
+ else if (is_one(vexp)) {
+ return self;
+ }
+
+ if (VpIsInf(x)) {
+ if (is_negative(vexp)) {
+ if (VpGetSign(x) < 0) {
+ if (is_integer(vexp)) {
+ if (is_even(vexp)) {
+ /* (-Infinity) ** (-even_integer) -> +0 */
+ return ToValue(VpCreateRbObject(n, "0"));
+ }
+ else {
+ /* (-Infinity) ** (-odd_integer) -> -0 */
+ return ToValue(VpCreateRbObject(n, "-0"));
+ }
+ }
+ else {
+ /* (-Infinity) ** (-non_integer) -> -0 */
+ return ToValue(VpCreateRbObject(n, "-0"));
+ }
+ }
+ else {
+ return ToValue(VpCreateRbObject(n, "0"));
+ }
+ }
+ else {
+ y = VpCreateRbObject(n, "0#");
+ if (VpGetSign(x) < 0) {
+ if (is_integer(vexp)) {
+ if (is_even(vexp)) {
+ VpSetPosInf(y);
+ }
+ else {
+ VpSetNegInf(y);
+ }
+ }
+ else {
+ /* TODO: support complex */
+ rb_raise(rb_eMathDomainError,
+ "a non-integral exponent for a negative base");
+ }
+ }
+ else {
+ VpSetPosInf(y);
+ }
+ return ToValue(y);
+ }
+ }
+
+ if (exp != NULL) {
+ return rmpd_power_by_big_decimal(x, exp, n);
+ }
+ else if (TYPE(vexp) == T_BIGNUM) {
+ VALUE abs_value = BigDecimal_abs(self);
+ if (is_one(abs_value)) {
+ return ToValue(VpCreateRbObject(n, "1"));
+ }
+ else if (RTEST(rb_funcall(abs_value, '<', 1, INT2FIX(1)))) {
+ if (is_negative(vexp)) {
+ y = VpCreateRbObject(n, "0#");
+ if (is_even(vexp)) {
+ VpSetInf(y, VpGetSign(x));
+ }
+ else {
+ VpSetInf(y, -VpGetSign(x));
+ }
+ return ToValue(y);
+ }
+ else if (VpGetSign(x) < 0 && is_even(vexp)) {
+ return ToValue(VpCreateRbObject(n, "-0"));
+ }
+ else {
+ return ToValue(VpCreateRbObject(n, "0"));
+ }
+ }
+ else {
+ if (is_positive(vexp)) {
+ y = VpCreateRbObject(n, "0#");
+ if (is_even(vexp)) {
+ VpSetInf(y, VpGetSign(x));
+ }
+ else {
+ VpSetInf(y, -VpGetSign(x));
+ }
+ return ToValue(y);
+ }
+ else if (VpGetSign(x) < 0 && is_even(vexp)) {
+ return ToValue(VpCreateRbObject(n, "-0"));
+ }
+ else {
+ return ToValue(VpCreateRbObject(n, "0"));
+ }
+ }
+ }
+
+ int_exp = FIX2INT(vexp);
+ ma = int_exp;
+ if (ma < 0) ma = -ma;
+ if (ma == 0) ma = 1;
+
+ if (VpIsDef(x)) {
+ mp = x->Prec * (VpBaseFig() + 1);
+ GUARD_OBJ(y, VpCreateRbObject(mp * (ma + 1), "0"));
+ }
+ else {
+ GUARD_OBJ(y, VpCreateRbObject(1, "0"));
+ }
+ VpPower(y, x, int_exp);
return ToValue(y);
}
+/* call-seq:
+ * big_decimal ** exp -> big_decimal
+ *
+ * It is a synonym of big_decimal.power(exp).
+ */
static VALUE
-BigDecimal_global_new(int argc, VALUE *argv, VALUE self)
+BigDecimal_power_op(VALUE self, VALUE exp)
{
- ENTER(5);
- Real *pv;
- S_LONG mf;
- VALUE nFig;
- VALUE iniValue;
-
- if(rb_scan_args(argc,argv,"11",&iniValue,&nFig)==1) {
- mf = 0;
- } else {
- mf = GetPositiveInt(nFig);
- }
- SafeStringValue(iniValue);
- GUARD_OBJ(pv,VpCreateRbObject(mf, RSTRING_PTR(iniValue)));
- return ToValue(pv);
+ return BigDecimal_power(1, &exp, self);
}
- /* call-seq:
- * new(initial, digits)
- *
- * Create a new BigDecimal object.
- *
- * initial:: The initial value, as a String. Spaces are ignored, unrecognized characters terminate the value.
- *
- * digits:: The number of significant digits, as a Fixnum. If omitted or 0, the number of significant digits is determined from the initial value.
- *
- * The actual number of significant digits used in computation is usually
- * larger than the specified number.
- */
+/* call-seq:
+ * new(initial, digits)
+ *
+ * Create a new BigDecimal object.
+ *
+ * initial:: The initial value, as an Integer, a Float, a Rational,
+ * a BigDecimal, or a String.
+ * If it is a String, spaces are ignored and unrecognized characters
+ * terminate the value.
+ *
+ * digits:: The number of significant digits, as a Fixnum. If omitted or 0,
+ * the number of significant digits is determined from the initial
+ * value.
+ *
+ * The actual number of significant digits used in computation is usually
+ * larger than the specified number.
+ */
static VALUE
BigDecimal_new(int argc, VALUE *argv, VALUE self)
{
ENTER(5);
Real *pv;
- S_LONG mf;
+ size_t mf;
VALUE nFig;
VALUE iniValue;
- if(rb_scan_args(argc,argv,"11",&iniValue,&nFig)==1) {
+ if (rb_scan_args(argc, argv, "11", &iniValue, &nFig) == 1) {
mf = 0;
- } else {
+ }
+ else {
mf = GetPositiveInt(nFig);
}
+
+ switch (TYPE(iniValue)) {
+ case T_DATA:
+ if (is_kind_of_BigDecimal(iniValue)) {
+ pv = VpDup(DATA_PTR(iniValue));
+ return ToValue(pv);
+ }
+ break;
+
+ case T_FIXNUM:
+ /* fall through */
+ case T_BIGNUM:
+ return ToValue(GetVpValue(iniValue, 1));
+
+ case T_FLOAT:
+ if (mf > DBL_DIG+1) {
+ rb_raise(rb_eArgError, "precision too large.");
+ }
+ /* fall through */
+ case T_RATIONAL:
+ if (NIL_P(nFig)) {
+ rb_raise(rb_eArgError, "can't omit precision for a Rational.");
+ }
+ return ToValue(GetVpValueWithPrec(iniValue, mf, 1));
+
+ case T_STRING:
+ /* fall through */
+ default:
+ break;
+ }
SafeStringValue(iniValue);
- GUARD_OBJ(pv,VpNewRbClass(mf, RSTRING_PTR(iniValue),self));
+ GUARD_OBJ(pv, VpNewRbClass(mf, RSTRING_PTR(iniValue),self));
+
return ToValue(pv);
}
+static VALUE
+BigDecimal_global_new(int argc, VALUE *argv, VALUE self)
+{
+ return BigDecimal_new(argc, argv, rb_cBigDecimal);
+}
+
/* call-seq:
* BigDecimal.limit(digits)
*
- * Limit the number of significant digits in newly created BigDecimal
- * numbers to the specified value. Rounding is performed as necessary,
+ * Limit the number of significant digits in newly created BigDecimal
+ * numbers to the specified value. Rounding is performed as necessary,
* as specified by BigDecimal.mode.
*
* A limit of 0, the default, means no upper limit.
*
- * The limit specified by this method takes less priority over any limit
+ * The limit specified by this method takes less priority over any limit
* specified to instance methods such as ceil, floor, truncate, or round.
*/
static VALUE
@@ -1840,10 +2338,10 @@ BigDecimal_limit(int argc, VALUE *argv, VALUE self)
/* Returns the sign of the value.
*
- * Returns a positive value if > 0, a negative value if < 0, and a
+ * Returns a positive value if > 0, a negative value if < 0, and a
* zero if == 0.
*
- * The specific value returned indicates the type and sign of the BigDecimal,
+ * The specific value returned indicates the type and sign of the BigDecimal,
* as follows:
*
* BigDecimal::SIGN_NaN:: value is Not a Number
@@ -1861,11 +2359,451 @@ BigDecimal_sign(VALUE self)
return INT2FIX(s);
}
+/* call-seq:
+ * BigDecimal.save_exception_mode { ... }
+ */
+static VALUE
+BigDecimal_save_exception_mode(VALUE self)
+{
+ unsigned short const exception_mode = VpGetException();
+ int state;
+ VALUE ret = rb_protect(rb_yield, Qnil, &state);
+ VpSetException(exception_mode);
+ if (state) rb_jump_tag(state);
+ return ret;
+}
+
+/* call-seq:
+ * BigDecimal.save_rounding_mode { ... }
+ */
+static VALUE
+BigDecimal_save_rounding_mode(VALUE self)
+{
+ unsigned short const round_mode = VpGetRoundMode();
+ int state;
+ VALUE ret = rb_protect(rb_yield, Qnil, &state);
+ VpSetRoundMode(round_mode);
+ if (state) rb_jump_tag(state);
+ return ret;
+}
+
+/* call-seq:
+ * BigDecimal.save_limit { ... }
+ */
+static VALUE
+BigDecimal_save_limit(VALUE self)
+{
+ size_t const limit = VpGetPrecLimit();
+ int state;
+ VALUE ret = rb_protect(rb_yield, Qnil, &state);
+ VpSetPrecLimit(limit);
+ if (state) rb_jump_tag(state);
+ return ret;
+}
+
+/* call-seq:
+ * BigMath.exp(x, prec)
+ *
+ * Computes the value of e (the base of natural logarithms) raised to the
+ * power of x, to the specified number of digits of precision.
+ *
+ * If x is infinite, returns Infinity.
+ *
+ * If x is NaN, returns NaN.
+ */
+static VALUE
+BigMath_s_exp(VALUE klass, VALUE x, VALUE vprec)
+{
+ ssize_t prec, n, i;
+ Real* vx = NULL;
+ VALUE one, d, x1, y, z;
+ int negative = 0;
+ int infinite = 0;
+ int nan = 0;
+ double flo;
+
+ prec = NUM2SSIZET(vprec);
+ if (prec <= 0) {
+ rb_raise(rb_eArgError, "Zero or negative precision for exp");
+ }
+
+ /* TODO: the following switch statement is almostly the same as one in the
+ * BigDecimalCmp function. */
+ switch (TYPE(x)) {
+ case T_DATA:
+ if (!is_kind_of_BigDecimal(x)) break;
+ vx = DATA_PTR(x);
+ negative = VpGetSign(vx) < 0;
+ infinite = VpIsPosInf(vx) || VpIsNegInf(vx);
+ nan = VpIsNaN(vx);
+ break;
+
+ case T_FIXNUM:
+ /* fall through */
+ case T_BIGNUM:
+ vx = GetVpValue(x, 0);
+ break;
+
+ case T_FLOAT:
+ flo = RFLOAT_VALUE(x);
+ negative = flo < 0;
+ infinite = isinf(flo);
+ nan = isnan(flo);
+ if (!infinite && !nan) {
+ vx = GetVpValueWithPrec(x, DBL_DIG+1, 0);
+ }
+ break;
+
+ case T_RATIONAL:
+ vx = GetVpValueWithPrec(x, prec, 0);
+ break;
+
+ default:
+ break;
+ }
+ if (infinite) {
+ if (negative) {
+ return ToValue(GetVpValueWithPrec(INT2NUM(0), prec, 1));
+ }
+ else {
+ Real* vy;
+ vy = VpCreateRbObject(prec, "#0");
+ RB_GC_GUARD(vy->obj);
+ VpSetInf(vy, VP_SIGN_POSITIVE_INFINITE);
+ return ToValue(vy);
+ }
+ }
+ else if (nan) {
+ Real* vy;
+ vy = VpCreateRbObject(prec, "#0");
+ RB_GC_GUARD(vy->obj);
+ VpSetNaN(vy);
+ return ToValue(vy);
+ }
+ else if (vx == NULL) {
+ cannot_be_coerced_into_BigDecimal(rb_eArgError, x);
+ }
+ RB_GC_GUARD(vx->obj);
+
+ n = prec + rmpd_double_figures();
+ negative = VpGetSign(vx) < 0;
+ if (negative) {
+ VpSetSign(vx, 1);
+ }
+
+ RB_GC_GUARD(one) = ToValue(VpCreateRbObject(1, "1"));
+ RB_GC_GUARD(x1) = one;
+ RB_GC_GUARD(y) = one;
+ RB_GC_GUARD(d) = y;
+ RB_GC_GUARD(z) = one;
+ i = 0;
+
+ while (!VpIsZero((Real*)DATA_PTR(d))) {
+ VALUE argv[2];
+ SIGNED_VALUE const ey = VpExponent10(DATA_PTR(y));
+ SIGNED_VALUE const ed = VpExponent10(DATA_PTR(d));
+ ssize_t m = n - vabs(ey - ed);
+ if (m <= 0) {
+ break;
+ }
+ else if ((size_t)m < rmpd_double_figures()) {
+ m = rmpd_double_figures();
+ }
+
+ x1 = BigDecimal_mult2(x1, x, SSIZET2NUM(n));
+ ++i;
+ z = BigDecimal_mult(z, SSIZET2NUM(i));
+ argv[0] = z;
+ argv[1] = SSIZET2NUM(m);
+ d = BigDecimal_div2(2, argv, x1);
+ y = BigDecimal_add(y, d);
+ }
+
+ if (negative) {
+ VALUE argv[2];
+ argv[0] = y;
+ argv[1] = vprec;
+ return BigDecimal_div2(2, argv, one);
+ }
+ else {
+ vprec = SSIZET2NUM(prec - VpExponent10(DATA_PTR(y)));
+ return BigDecimal_round(1, &vprec, y);
+ }
+}
+
+/* call-seq:
+ * BigMath.log(x, prec)
+ *
+ * Computes the natural logarithm of x to the specified number of digits of
+ * precision.
+ *
+ * If x is zero or negative, raises Math::DomainError.
+ *
+ * If x is positive infinite, returns Infinity.
+ *
+ * If x is NaN, returns NaN.
+ */
+static VALUE
+BigMath_s_log(VALUE klass, VALUE x, VALUE vprec)
+{
+ ssize_t prec, n, i;
+ SIGNED_VALUE expo;
+ Real* vx = NULL;
+ VALUE argv[2], vn, one, two, w, x2, y, d;
+ int zero = 0;
+ int negative = 0;
+ int infinite = 0;
+ int nan = 0;
+ double flo;
+ long fix;
+
+ if (TYPE(vprec) != T_FIXNUM && TYPE(vprec) != T_BIGNUM) {
+ rb_raise(rb_eArgError, "precision must be an Integer");
+ }
+
+ prec = NUM2SSIZET(vprec);
+ if (prec <= 0) {
+ rb_raise(rb_eArgError, "Zero or negative precision for exp");
+ }
+
+ /* TODO: the following switch statement is almostly the same as one in the
+ * BigDecimalCmp function. */
+ switch (TYPE(x)) {
+ case T_DATA:
+ if (!is_kind_of_BigDecimal(x)) break;
+ vx = DATA_PTR(x);
+ zero = VpIsZero(vx);
+ negative = VpGetSign(vx) < 0;
+ infinite = VpIsPosInf(vx) || VpIsNegInf(vx);
+ nan = VpIsNaN(vx);
+ break;
+
+ case T_FIXNUM:
+ fix = FIX2LONG(x);
+ zero = fix == 0;
+ negative = fix < 0;
+ goto get_vp_value;
+
+ case T_BIGNUM:
+ zero = RBIGNUM_ZERO_P(x);
+ negative = RBIGNUM_NEGATIVE_P(x);
+get_vp_value:
+ if (zero || negative) break;
+ vx = GetVpValue(x, 0);
+ break;
+
+ case T_FLOAT:
+ flo = RFLOAT_VALUE(x);
+ zero = flo == 0;
+ negative = flo < 0;
+ infinite = isinf(flo);
+ nan = isnan(flo);
+ if (!zero && !negative && !infinite && !nan) {
+ vx = GetVpValueWithPrec(x, DBL_DIG+1, 1);
+ }
+ break;
+
+ case T_RATIONAL:
+ zero = RRATIONAL_ZERO_P(x);
+ negative = RRATIONAL_NEGATIVE_P(x);
+ if (zero || negative) break;
+ vx = GetVpValueWithPrec(x, prec, 1);
+ break;
+
+ case T_COMPLEX:
+ rb_raise(rb_eMathDomainError,
+ "Complex argument for BigMath.log");
+
+ default:
+ break;
+ }
+ if (infinite && !negative) {
+ Real* vy;
+ vy = VpCreateRbObject(prec, "#0");
+ RB_GC_GUARD(vy->obj);
+ VpSetInf(vy, VP_SIGN_POSITIVE_INFINITE);
+ return ToValue(vy);
+ }
+ else if (nan) {
+ Real* vy;
+ vy = VpCreateRbObject(prec, "#0");
+ RB_GC_GUARD(vy->obj);
+ VpSetNaN(vy);
+ return ToValue(vy);
+ }
+ else if (zero || negative) {
+ rb_raise(rb_eMathDomainError,
+ "Zero or negative argument for log");
+ }
+ else if (vx == NULL) {
+ cannot_be_coerced_into_BigDecimal(rb_eArgError, x);
+ }
+ x = ToValue(vx);
+
+ RB_GC_GUARD(one) = ToValue(VpCreateRbObject(1, "1"));
+ RB_GC_GUARD(two) = ToValue(VpCreateRbObject(1, "2"));
+
+ n = prec + rmpd_double_figures();
+ RB_GC_GUARD(vn) = SSIZET2NUM(n);
+ expo = VpExponent10(vx);
+ if (expo < 0 || expo >= 3) {
+ char buf[16];
+ snprintf(buf, 16, "1E%ld", -expo);
+ x = BigDecimal_mult2(x, ToValue(VpCreateRbObject(1, buf)), vn);
+ }
+ else {
+ expo = 0;
+ }
+ w = BigDecimal_sub(x, one);
+ argv[0] = BigDecimal_add(x, one);
+ argv[1] = vn;
+ x = BigDecimal_div2(2, argv, w);
+ RB_GC_GUARD(x2) = BigDecimal_mult2(x, x, vn);
+ RB_GC_GUARD(y) = x;
+ RB_GC_GUARD(d) = y;
+ i = 1;
+ while (!VpIsZero((Real*)DATA_PTR(d))) {
+ SIGNED_VALUE const ey = VpExponent10(DATA_PTR(y));
+ SIGNED_VALUE const ed = VpExponent10(DATA_PTR(d));
+ ssize_t m = n - vabs(ey - ed);
+ if (m <= 0) {
+ break;
+ }
+ else if ((size_t)m < rmpd_double_figures()) {
+ m = rmpd_double_figures();
+ }
+
+ x = BigDecimal_mult2(x2, x, vn);
+ i += 2;
+ argv[0] = SSIZET2NUM(i);
+ argv[1] = SSIZET2NUM(m);
+ d = BigDecimal_div2(2, argv, x);
+ y = BigDecimal_add(y, d);
+ }
+
+ y = BigDecimal_mult(y, two);
+ if (expo != 0) {
+ VALUE log10, vexpo, dy;
+ log10 = BigMath_s_log(klass, INT2FIX(10), vprec);
+ vexpo = ToValue(GetVpValue(SSIZET2NUM(expo), 1));
+ dy = BigDecimal_mult(log10, vexpo);
+ y = BigDecimal_add(y, dy);
+ }
+
+ return y;
+}
+
+/* Document-class: BigDecimal
+ * BigDecimal provides arbitrary-precision floating point decimal arithmetic.
+ *
+ * Copyright (C) 2002 by Shigeo Kobayashi <shigeo@tinyforest.gr.jp>.
+ * You may distribute under the terms of either the GNU General Public
+ * License or the Artistic License, as specified in the README file
+ * of the BigDecimal distribution.
+ *
+ * Documented by mathew <meta@pobox.com>.
+ *
+ * = Introduction
+ *
+ * Ruby provides built-in support for arbitrary precision integer arithmetic.
+ * For example:
+ *
+ * 42**13 -> 1265437718438866624512
+ *
+ * BigDecimal provides similar support for very large or very accurate floating
+ * point numbers.
+ *
+ * Decimal arithmetic is also useful for general calculation, because it
+ * provides the correct answers people expect--whereas normal binary floating
+ * point arithmetic often introduces subtle errors because of the conversion
+ * between base 10 and base 2. For example, try:
+ *
+ * sum = 0
+ * for i in (1..10000)
+ * sum = sum + 0.0001
+ * end
+ * print sum
+ *
+ * and contrast with the output from:
+ *
+ * require 'bigdecimal'
+ *
+ * sum = BigDecimal.new("0")
+ * for i in (1..10000)
+ * sum = sum + BigDecimal.new("0.0001")
+ * end
+ * print sum
+ *
+ * Similarly:
+ *
+ * (BigDecimal.new("1.2") - BigDecimal("1.0")) == BigDecimal("0.2") -> true
+ *
+ * (1.2 - 1.0) == 0.2 -> false
+ *
+ * = Special features of accurate decimal arithmetic
+ *
+ * Because BigDecimal is more accurate than normal binary floating point
+ * arithmetic, it requires some special values.
+ *
+ * == Infinity
+ *
+ * BigDecimal sometimes needs to return infinity, for example if you divide
+ * a value by zero.
+ *
+ * BigDecimal.new("1.0") / BigDecimal.new("0.0") -> infinity
+ *
+ * BigDecimal.new("-1.0") / BigDecimal.new("0.0") -> -infinity
+ *
+ * You can represent infinite numbers to BigDecimal using the strings
+ * 'Infinity', '+Infinity' and '-Infinity' (case-sensitive)
+ *
+ * == Not a Number
+ *
+ * When a computation results in an undefined value, the special value NaN
+ * (for 'not a number') is returned.
+ *
+ * Example:
+ *
+ * BigDecimal.new("0.0") / BigDecimal.new("0.0") -> NaN
+ *
+ * You can also create undefined values. NaN is never considered to be the
+ * same as any other value, even NaN itself:
+ *
+ * n = BigDecimal.new('NaN')
+ *
+ * n == 0.0 -> nil
+ *
+ * n == n -> nil
+ *
+ * == Positive and negative zero
+ *
+ * If a computation results in a value which is too small to be represented as
+ * a BigDecimal within the currently specified limits of precision, zero must
+ * be returned.
+ *
+ * If the value which is too small to be represented is negative, a BigDecimal
+ * value of negative zero is returned. If the value is positive, a value of
+ * positive zero is returned.
+ *
+ * BigDecimal.new("1.0") / BigDecimal.new("-Infinity") -> -0.0
+ *
+ * BigDecimal.new("1.0") / BigDecimal.new("Infinity") -> 0.0
+ *
+ * (See BigDecimal.mode for how to specify limits of precision.)
+ *
+ * Note that -0.0 and 0.0 are considered to be the same for the purposes of
+ * comparison.
+ *
+ * Note also that in mathematics, there is no particular concept of negative
+ * or positive zero; true mathematical zero has no sign.
+ */
void
Init_bigdecimal(void)
{
+ VALUE arg;
+
/* Initialize VP routines */
- VpInit((U_LONG)0);
+ VpInit(0UL);
/* Class and method registration */
rb_cBigDecimal = rb_define_class("BigDecimal",rb_cNumeric);
@@ -1881,56 +2819,60 @@ Init_bigdecimal(void)
rb_define_singleton_method(rb_cBigDecimal, "_load", BigDecimal_load, 1);
rb_define_singleton_method(rb_cBigDecimal, "ver", BigDecimal_version, 0);
+ rb_define_singleton_method(rb_cBigDecimal, "save_exception_mode", BigDecimal_save_exception_mode, 0);
+ rb_define_singleton_method(rb_cBigDecimal, "save_rounding_mode", BigDecimal_save_rounding_mode, 0);
+ rb_define_singleton_method(rb_cBigDecimal, "save_limit", BigDecimal_save_limit, 0);
+
/* Constants definition */
- /*
- * Base value used in internal calculations. On a 32 bit system, BASE
- * is 10000, indicating that calculation is done in groups of 4 digits.
+ /*
+ * Base value used in internal calculations. On a 32 bit system, BASE
+ * is 10000, indicating that calculation is done in groups of 4 digits.
* (If it were larger, BASE**2 wouldn't fit in 32 bits, so you couldn't
- * guarantee that two groups could always be multiplied together without
- * overflow.)
+ * guarantee that two groups could always be multiplied together without
+ * overflow.)
*/
- rb_define_const(rb_cBigDecimal, "BASE", INT2FIX((S_INT)VpBaseVal()));
+ rb_define_const(rb_cBigDecimal, "BASE", INT2FIX((SIGNED_VALUE)VpBaseVal()));
/* Exceptions */
/*
- * 0xff: Determines whether overflow, underflow or zero divide result in
+ * 0xff: Determines whether overflow, underflow or zero divide result in
* an exception being thrown. See BigDecimal.mode.
*/
rb_define_const(rb_cBigDecimal, "EXCEPTION_ALL",INT2FIX(VP_EXCEPTION_ALL));
- /*
- * 0x02: Determines what happens when the result of a computation is not a
- * number (NaN). See BigDecimal.mode.
+ /*
+ * 0x02: Determines what happens when the result of a computation is not a
+ * number (NaN). See BigDecimal.mode.
*/
rb_define_const(rb_cBigDecimal, "EXCEPTION_NaN",INT2FIX(VP_EXCEPTION_NaN));
- /*
+ /*
* 0x01: Determines what happens when the result of a computation is
* infinity. See BigDecimal.mode.
*/
rb_define_const(rb_cBigDecimal, "EXCEPTION_INFINITY",INT2FIX(VP_EXCEPTION_INFINITY));
- /*
+ /*
* 0x04: Determines what happens when the result of a computation is an
* underflow (a result too small to be represented). See BigDecimal.mode.
*/
rb_define_const(rb_cBigDecimal, "EXCEPTION_UNDERFLOW",INT2FIX(VP_EXCEPTION_UNDERFLOW));
- /*
+ /*
* 0x01: Determines what happens when the result of a computation is an
* overflow (a result too large to be represented). See BigDecimal.mode.
*/
rb_define_const(rb_cBigDecimal, "EXCEPTION_OVERFLOW",INT2FIX(VP_EXCEPTION_OVERFLOW));
- /*
+ /*
* 0x01: Determines what happens when a division by zero is performed.
* See BigDecimal.mode.
*/
rb_define_const(rb_cBigDecimal, "EXCEPTION_ZERODIVIDE",INT2FIX(VP_EXCEPTION_ZERODIVIDE));
- /*
+ /*
* 0x100: Determines what happens when a result must be rounded in order to
* fit in the appropriate number of significant digits. See
* BigDecimal.mode.
@@ -1985,6 +2927,12 @@ Init_bigdecimal(void)
/* -3: Indicates that a value is negative and infinite. See BigDecimal.sign. */
rb_define_const(rb_cBigDecimal, "SIGN_NEGATIVE_INFINITE",INT2FIX(VP_SIGN_NEGATIVE_INFINITE));
+ arg = rb_str_new2("+Infinity");
+ rb_define_const(rb_cBigDecimal, "INFINITY", BigDecimal_global_new(1, &arg, rb_cBigDecimal));
+ arg = rb_str_new2("NaN");
+ rb_define_const(rb_cBigDecimal, "NAN", BigDecimal_global_new(1, &arg, rb_cBigDecimal));
+
+
/* instance methods */
rb_define_method(rb_cBigDecimal, "precs", BigDecimal_prec, 0);
@@ -2018,8 +2966,8 @@ Init_bigdecimal(void)
rb_define_method(rb_cBigDecimal, "frac", BigDecimal_frac, 0);
rb_define_method(rb_cBigDecimal, "floor", BigDecimal_floor, -1);
rb_define_method(rb_cBigDecimal, "ceil", BigDecimal_ceil, -1);
- rb_define_method(rb_cBigDecimal, "power", BigDecimal_power, 1);
- rb_define_method(rb_cBigDecimal, "**", BigDecimal_power, 1);
+ rb_define_method(rb_cBigDecimal, "power", BigDecimal_power, -1);
+ rb_define_method(rb_cBigDecimal, "**", BigDecimal_power_op, 1);
rb_define_method(rb_cBigDecimal, "<=>", BigDecimal_comp, 1);
rb_define_method(rb_cBigDecimal, "==", BigDecimal_eq, 1);
rb_define_method(rb_cBigDecimal, "===", BigDecimal_eq, 1);
@@ -2039,6 +2987,29 @@ Init_bigdecimal(void)
rb_define_method(rb_cBigDecimal, "finite?", BigDecimal_IsFinite, 0);
rb_define_method(rb_cBigDecimal, "truncate", BigDecimal_truncate, -1);
rb_define_method(rb_cBigDecimal, "_dump", BigDecimal_dump, -1);
+
+ /* mathematical functions */
+ rb_mBigMath = rb_define_module("BigMath");
+ rb_define_singleton_method(rb_mBigMath, "exp", BigMath_s_exp, 2);
+ rb_define_singleton_method(rb_mBigMath, "log", BigMath_s_log, 2);
+
+ id_BigDecimal_exception_mode = rb_intern_const("BigDecimal.exception_mode");
+ id_BigDecimal_rounding_mode = rb_intern_const("BigDecimal.rounding_mode");
+ id_BigDecimal_precision_limit = rb_intern_const("BigDecimal.precision_limit");
+
+ id_up = rb_intern_const("up");
+ id_down = rb_intern_const("down");
+ id_truncate = rb_intern_const("truncate");
+ id_half_up = rb_intern_const("half_up");
+ id_default = rb_intern_const("default");
+ id_half_down = rb_intern_const("half_down");
+ id_half_even = rb_intern_const("half_even");
+ id_banker = rb_intern_const("banker");
+ id_ceiling = rb_intern_const("ceiling");
+ id_ceil = rb_intern_const("ceil");
+ id_floor = rb_intern_const("floor");
+ id_to_r = rb_intern_const("to_r");
+ id_eq = rb_intern_const("==");
}
/*
@@ -2050,31 +3021,12 @@ Init_bigdecimal(void)
* ============================================================================
*
*/
-#ifdef _DEBUG
+#ifdef BIGDECIMAL_DEBUG
static int gfDebug = 1; /* Debug switch */
+#if 0
static int gfCheckVal = 1; /* Value checking flag in VpNmlz() */
-#endif /* _DEBUG */
-
-static U_LONG gnPrecLimit = 0; /* Global upper limit of the precision newly allocated */
-static U_LONG gfRoundMode = VP_ROUND_HALF_UP; /* Mode for general rounding operation */
-
-#ifndef BASE_FIG
-static U_LONG BASE_FIG = 4; /* =log10(BASE) */
-static U_LONG BASE = 10000L; /* Base value(value must be 10**BASE_FIG) */
- /* The value of BASE**2 + BASE must be represented */
- /* within one U_LONG. */
-static U_LONG HALF_BASE = 5000L;/* =BASE/2 */
-static U_LONG BASE1 = 1000L; /* =BASE/10 */
-#else
-#ifndef BASE
-#error BASE_FIG is defined but BASE is not
-#endif
-#define HALF_BASE (BASE/2)
-#define BASE1 (BASE/10)
-#endif
-#ifndef DBLE_FIG
-#define DBLE_FIG (DBL_DIG+1) /* figure of double */
#endif
+#endif /* BIGDECIMAL_DEBUG */
static Real *VpConstOne; /* constant 1.0 */
static Real *VpPt5; /* constant 0.5 */
@@ -2086,29 +3038,29 @@ static Real *VpPt5; /* constant 0.5 */
#define StrCmp(x,y) strcmp(x,y)
static int VpIsDefOP(Real *c,Real *a,Real *b,int sw);
-static int AddExponent(Real *a,S_INT n);
-static U_LONG VpAddAbs(Real *a,Real *b,Real *c);
-static U_LONG VpSubAbs(Real *a,Real *b,Real *c);
-static U_LONG VpSetPTR(Real *a,Real *b,Real *c,U_LONG *a_pos,U_LONG *b_pos,U_LONG *c_pos,U_LONG *av,U_LONG *bv);
+static int AddExponent(Real *a, SIGNED_VALUE n);
+static BDIGIT VpAddAbs(Real *a,Real *b,Real *c);
+static BDIGIT VpSubAbs(Real *a,Real *b,Real *c);
+static size_t VpSetPTR(Real *a, Real *b, Real *c, size_t *a_pos, size_t *b_pos, size_t *c_pos, BDIGIT *av, BDIGIT *bv);
static int VpNmlz(Real *a);
-static void VpFormatSt(char *psz,S_INT fFmt);
-static int VpRdup(Real *m,U_LONG ind_m);
+static void VpFormatSt(char *psz, size_t fFmt);
+static int VpRdup(Real *m, size_t ind_m);
-#ifdef _DEBUG
+#ifdef BIGDECIMAL_DEBUG
static int gnAlloc=0; /* Memory allocation counter */
-#endif /* _DEBUG */
+#endif /* BIGDECIMAL_DEBUG */
VP_EXPORT void *
-VpMemAlloc(U_LONG mb)
+VpMemAlloc(size_t mb)
{
- void *p = xmalloc((unsigned int)mb);
- if(!p) {
- VpException(VP_EXCEPTION_MEMORY,"failed to allocate memory",1);
+ void *p = xmalloc(mb);
+ if (!p) {
+ VpException(VP_EXCEPTION_MEMORY, "failed to allocate memory", 1);
}
- memset(p,0,mb);
-#ifdef _DEBUG
+ memset(p, 0, mb);
+#ifdef BIGDECIMAL_DEBUG
gnAlloc++; /* Count allocation call */
-#endif /* _DEBUG */
+#endif /* BIGDECIMAL_DEBUG */
return p;
}
@@ -2117,7 +3069,7 @@ VpFree(Real *pv)
{
if(pv != NULL) {
xfree(pv);
-#ifdef _DEBUG
+#ifdef BIGDECIMAL_DEBUG
gnAlloc--; /* Decrement allocation count */
if(gnAlloc==0) {
printf(" *************** All memories allocated freed ****************");
@@ -2127,64 +3079,134 @@ VpFree(Real *pv)
printf(" ??????????? Too many memory free calls(%d) ?????????????\n",gnAlloc);
getchar();
}
-#endif /* _DEBUG */
+#endif /* BIGDECIMAL_DEBUG */
}
}
/*
* EXCEPTION Handling.
*/
-static unsigned short gfDoException = 0; /* Exception flag */
+
+#define rmpd_set_thread_local_exception_mode(mode) \
+ rb_thread_local_aset( \
+ rb_thread_current(), \
+ id_BigDecimal_exception_mode, \
+ INT2FIX((int)(mode)) \
+ )
static unsigned short
VpGetException (void)
{
- return gfDoException;
+ VALUE const vmode = rb_thread_local_aref(
+ rb_thread_current(),
+ id_BigDecimal_exception_mode
+ );
+
+ if (NIL_P(vmode)) {
+ rmpd_set_thread_local_exception_mode(RMPD_EXCEPTION_MODE_DEFAULT);
+ return RMPD_EXCEPTION_MODE_DEFAULT;
+ }
+
+ return (unsigned short)FIX2UINT(vmode);
}
static void
VpSetException(unsigned short f)
{
- gfDoException = f;
+ rmpd_set_thread_local_exception_mode(f);
}
+/*
+ * Precision limit.
+ */
+
+#define rmpd_set_thread_local_precision_limit(limit) \
+ rb_thread_local_aset( \
+ rb_thread_current(), \
+ id_BigDecimal_precision_limit, \
+ SIZET2NUM(limit) \
+ )
+#define RMPD_PRECISION_LIMIT_DEFAULT ((size_t)0)
+
/* These 2 functions added at v1.1.7 */
-VP_EXPORT U_LONG
+VP_EXPORT size_t
VpGetPrecLimit(void)
{
- return gnPrecLimit;
+ VALUE const vlimit = rb_thread_local_aref(
+ rb_thread_current(),
+ id_BigDecimal_precision_limit
+ );
+
+ if (NIL_P(vlimit)) {
+ rmpd_set_thread_local_precision_limit(RMPD_PRECISION_LIMIT_DEFAULT);
+ return RMPD_PRECISION_LIMIT_DEFAULT;
+ }
+
+ return NUM2SIZET(vlimit);
}
-VP_EXPORT U_LONG
-VpSetPrecLimit(U_LONG n)
+VP_EXPORT size_t
+VpSetPrecLimit(size_t n)
{
- U_LONG s = gnPrecLimit;
- gnPrecLimit = n;
+ size_t const s = VpGetPrecLimit();
+ rmpd_set_thread_local_precision_limit(n);
return s;
}
-VP_EXPORT unsigned long
+/*
+ * Rounding mode.
+ */
+
+#define rmpd_set_thread_local_rounding_mode(mode) \
+ rb_thread_local_aset( \
+ rb_thread_current(), \
+ id_BigDecimal_rounding_mode, \
+ INT2FIX((int)(mode)) \
+ )
+
+VP_EXPORT unsigned short
VpGetRoundMode(void)
{
- return gfRoundMode;
+ VALUE const vmode = rb_thread_local_aref(
+ rb_thread_current(),
+ id_BigDecimal_rounding_mode
+ );
+
+ if (NIL_P(vmode)) {
+ rmpd_set_thread_local_rounding_mode(RMPD_ROUNDING_MODE_DEFAULT);
+ return RMPD_ROUNDING_MODE_DEFAULT;
+ }
+
+ return (unsigned short)FIX2INT(vmode);
}
VP_EXPORT int
-VpIsRoundMode(unsigned long n)
+VpIsRoundMode(unsigned short n)
{
- if(n==VP_ROUND_UP || n==VP_ROUND_DOWN ||
- n==VP_ROUND_HALF_UP || n==VP_ROUND_HALF_DOWN ||
- n==VP_ROUND_CEIL || n==VP_ROUND_FLOOR ||
- n==VP_ROUND_HALF_EVEN
- ) return 1;
- return 0;
+ switch (n) {
+ case VP_ROUND_UP:
+ case VP_ROUND_DOWN:
+ case VP_ROUND_HALF_UP:
+ case VP_ROUND_HALF_DOWN:
+ case VP_ROUND_CEIL:
+ case VP_ROUND_FLOOR:
+ case VP_ROUND_HALF_EVEN:
+ return 1;
+
+ default:
+ return 0;
+ }
}
-VP_EXPORT unsigned long
-VpSetRoundMode(unsigned long n)
+VP_EXPORT unsigned short
+VpSetRoundMode(unsigned short n)
{
- if(VpIsRoundMode(n)) gfRoundMode = n;
- return gfRoundMode;
+ if (VpIsRoundMode(n)) {
+ rmpd_set_thread_local_rounding_mode(n);
+ return n;
+ }
+
+ return VpGetRoundMode();
}
/*
@@ -2209,24 +3231,6 @@ One(void)
return gOne_ABCED9B4_CE73__00400511F31D;
}
-VP_EXPORT U_LONG
-VpBaseFig(void)
-{
- return BASE_FIG;
-}
-
-VP_EXPORT U_LONG
-VpDblFig(void)
-{
- return DBLE_FIG;
-}
-
-VP_EXPORT U_LONG
-VpBaseVal(void)
-{
- return BASE;
-}
-
/*
----------------------------------------------------------------
Value of sign in Real structure is reserved for future use.
@@ -2287,10 +3291,11 @@ VpException(unsigned short f, const char *str,int always)
{
VALUE exc;
int fatal=0;
+ unsigned short const exception_mode = VpGetException();
if(f==VP_EXCEPTION_OP || f==VP_EXCEPTION_MEMORY) always = 1;
- if(always||(gfDoException&f)) {
+ if (always || (exception_mode & f)) {
switch(f)
{
/*
@@ -2418,11 +3423,11 @@ NaN:
/*
* returns number of chars needed to represent vp in specified format.
*/
-VP_EXPORT U_LONG
+VP_EXPORT size_t
VpNumOfChars(Real *vp,const char *pszFmt)
{
- S_INT ex;
- U_LONG nc;
+ SIGNED_VALUE ex;
+ size_t nc;
if(vp == NULL) return BASE_FIG*2+6;
if(!VpIsDef(vp)) return 32; /* not sure,may be OK */
@@ -2432,11 +3437,12 @@ VpNumOfChars(Real *vp,const char *pszFmt)
case 'F':
nc = BASE_FIG*(vp->Prec + 1)+2;
ex = vp->exponent;
- if(ex<0) {
- nc += BASE_FIG*(-ex);
- } else {
- if(ex > (S_INT)vp->Prec) {
- nc += BASE_FIG*(ex - (S_INT)vp->Prec);
+ if(ex < 0) {
+ nc += BASE_FIG*(size_t)(-ex);
+ }
+ else {
+ if((size_t)ex > vp->Prec) {
+ nc += BASE_FIG*((size_t)ex - vp->Prec);
}
}
break;
@@ -2456,13 +3462,13 @@ VpNumOfChars(Real *vp,const char *pszFmt)
* that BASE is as large as possible satisfying the
* relation MaxVal <= BASE*(BASE+1). Where the value
* MaxVal is the largest value which can be represented
- * by one U_LONG word(LONG) in the computer used.
+ * by one BDIGIT word in the computer used.
*
* [Returns]
- * DBLE_FIG ... OK
+ * 1+DBL_DIG ... OK
*/
-VP_EXPORT U_LONG
-VpInit(U_LONG BaseVal)
+VP_EXPORT size_t
+VpInit(BDIGIT BaseVal)
{
/* Setup +/- Inf NaN -0 */
VpGetDoubleNaN();
@@ -2470,47 +3476,26 @@ VpInit(U_LONG BaseVal)
VpGetDoubleNegInf();
VpGetDoubleNegZero();
-#ifndef BASE_FIG
- if(BaseVal <= 0) {
- U_LONG w;
- /* Base <= 0, then determine Base by calcuration. */
- BASE = 1;
- while(
- (BASE > 0) &&
- ((w = BASE *(BASE + 1)) > BASE) &&((w / BASE) ==(BASE + 1))
- ) {
- BaseVal = BASE;
- BASE = BaseVal * 10L;
- }
- }
- /* Set Base Values */
- BASE = BaseVal;
- HALF_BASE = BASE / 2;
- BASE1 = BASE / 10;
- BASE_FIG = 0;
- while(BaseVal /= 10) ++BASE_FIG;
-#endif
-
/* Allocates Vp constants. */
- VpConstOne = VpAlloc((U_LONG)1, "1");
- VpPt5 = VpAlloc((U_LONG)1, ".5");
+ VpConstOne = VpAlloc(1UL, "1");
+ VpPt5 = VpAlloc(1UL, ".5");
-#ifdef _DEBUG
+#ifdef BIGDECIMAL_DEBUG
gnAlloc = 0;
-#endif /* _DEBUG */
+#endif /* BIGDECIMAL_DEBUG */
-#ifdef _DEBUG
+#ifdef BIGDECIMAL_DEBUG
if(gfDebug) {
printf("VpInit: BaseVal = %lu\n", BaseVal);
printf(" BASE = %lu\n", BASE);
printf(" HALF_BASE = %lu\n", HALF_BASE);
printf(" BASE1 = %lu\n", BASE1);
- printf(" BASE_FIG = %lu\n", BASE_FIG);
- printf(" DBLE_FIG = %lu\n", DBLE_FIG);
+ printf(" BASE_FIG = %u\n", BASE_FIG);
+ printf(" DBLE_FIG = %d\n", DBLE_FIG);
}
-#endif /* _DEBUG */
+#endif /* BIGDECIMAL_DEBUG */
- return DBLE_FIG;
+ return rmpd_double_figures();
}
VP_EXPORT Real *
@@ -2521,20 +3506,20 @@ VpOne(void)
/* If exponent overflows,then raise exception or returns 0 */
static int
-AddExponent(Real *a,S_INT n)
+AddExponent(Real *a, SIGNED_VALUE n)
{
- S_INT e = a->exponent;
- S_INT m = e+n;
- S_INT eb,mb;
+ SIGNED_VALUE e = a->exponent;
+ SIGNED_VALUE m = e+n;
+ SIGNED_VALUE eb, mb;
if(e>0) {
if(n>0) {
- mb = m*BASE_FIG;
- eb = e*BASE_FIG;
+ mb = m*(SIGNED_VALUE)BASE_FIG;
+ eb = e*(SIGNED_VALUE)BASE_FIG;
if(mb<eb) goto overflow;
}
} else if(n<0) {
- mb = m*BASE_FIG;
- eb = e*BASE_FIG;
+ mb = m*(SIGNED_VALUE)BASE_FIG;
+ eb = e*(SIGNED_VALUE)BASE_FIG;
if(mb>eb) goto underflow;
}
a->exponent = m;
@@ -2564,33 +3549,35 @@ overflow:
* NULL be returned if memory allocation is failed,or any error.
*/
VP_EXPORT Real *
-VpAlloc(U_LONG mx, const char *szVal)
+VpAlloc(size_t mx, const char *szVal)
{
- U_LONG i, ni, ipn, ipf, nf, ipe, ne, nalloc;
+ size_t i, ni, ipn, ipf, nf, ipe, ne, nalloc;
char v,*psz;
int sign=1;
Real *vp = NULL;
- U_LONG mf = VpGetPrecLimit();
- volatile VALUE buf;
+ size_t mf = VpGetPrecLimit();
+ VALUE buf;
mx = (mx + BASE_FIG - 1) / BASE_FIG + 1; /* Determine allocation unit. */
- if(szVal) {
- while(ISSPACE(*szVal)) szVal++;
- if(*szVal!='#') {
- if(mf) {
+ if (szVal) {
+ while (ISSPACE(*szVal)) szVal++;
+ if (*szVal != '#') {
+ if (mf) {
mf = (mf + BASE_FIG - 1) / BASE_FIG + 2; /* Needs 1 more for div */
- if(mx>mf) {
+ if (mx > mf) {
mx = mf;
}
}
- } else {
+ }
+ else {
++szVal;
}
- } else {
+ }
+ else {
/* necessary to be able to store */
/* at least mx digits. */
/* szVal==NULL ==> allocate zero value. */
- vp = (Real *) VpMemAlloc(sizeof(Real) + mx * sizeof(U_LONG));
+ vp = (Real *) VpMemAlloc(sizeof(Real) + mx * sizeof(BDIGIT));
/* xmalloc() alway returns(or throw interruption) */
vp->MaxPrec = mx; /* set max precision */
VpSetZero(vp,1); /* initialize vp to zero. */
@@ -2599,42 +3586,43 @@ VpAlloc(U_LONG mx, const char *szVal)
/* Skip all '_' after digit: 2006-6-30 */
ni = 0;
- buf = rb_str_new(0,strlen(szVal)+1);
+ buf = rb_str_tmp_new(strlen(szVal)+1);
psz = RSTRING_PTR(buf);
i = 0;
ipn = 0;
- while((psz[i]=szVal[ipn])!=0) {
- if(ISDIGIT(psz[i])) ++ni;
- if(psz[i]=='_') {
- if(ni>0) {ipn++;continue;}
- psz[i]=0;
+ while ((psz[i]=szVal[ipn]) != 0) {
+ if (ISDIGIT(psz[i])) ++ni;
+ if (psz[i] == '_') {
+ if (ni > 0) { ipn++; continue; }
+ psz[i] = 0;
break;
}
- ++i; ++ipn;
+ ++i;
+ ++ipn;
}
/* Skip trailing spaces */
- while((--i)>0) {
- if(ISSPACE(psz[i])) psz[i] = 0;
- else break;
+ while (--i > 0) {
+ if (ISSPACE(psz[i])) psz[i] = 0;
+ else break;
}
szVal = psz;
/* Check on Inf & NaN */
- if(StrCmp(szVal,SZ_PINF)==0 ||
- StrCmp(szVal,SZ_INF)==0 ) {
- vp = (Real *) VpMemAlloc(sizeof(Real) + sizeof(U_LONG));
+ if (StrCmp(szVal, SZ_PINF) == 0 ||
+ StrCmp(szVal, SZ_INF) == 0 ) {
+ vp = (Real *) VpMemAlloc(sizeof(Real) + sizeof(BDIGIT));
vp->MaxPrec = 1; /* set max precision */
VpSetPosInf(vp);
return vp;
}
- if(StrCmp(szVal,SZ_NINF)==0) {
- vp = (Real *) VpMemAlloc(sizeof(Real) + sizeof(U_LONG));
+ if (StrCmp(szVal, SZ_NINF) == 0) {
+ vp = (Real *) VpMemAlloc(sizeof(Real) + sizeof(BDIGIT));
vp->MaxPrec = 1; /* set max precision */
VpSetNegInf(vp);
return vp;
}
- if(StrCmp(szVal,SZ_NaN)==0) {
- vp = (Real *) VpMemAlloc(sizeof(Real) + sizeof(U_LONG));
+ if (StrCmp(szVal, SZ_NaN) == 0) {
+ vp = (Real *) VpMemAlloc(sizeof(Real) + sizeof(BDIGIT));
vp->MaxPrec = 1; /* set max precision */
VpSetNaN(vp);
return vp;
@@ -2642,12 +3630,12 @@ VpAlloc(U_LONG mx, const char *szVal)
/* check on number szVal[] */
ipn = i = 0;
- if (szVal[i] == '-') {sign=-1;++i;}
- else if(szVal[i] == '+') ++i;
+ if (szVal[i] == '-') { sign=-1; ++i; }
+ else if (szVal[i] == '+') ++i;
/* Skip digits */
ni = 0; /* digits in mantissa */
- while((v = szVal[i]) != 0) {
- if(!ISDIGIT(v)) break;
+ while ((v = szVal[i]) != 0) {
+ if (!ISDIGIT(v)) break;
++i;
++ni;
}
@@ -2655,31 +3643,30 @@ VpAlloc(U_LONG mx, const char *szVal)
ipf = 0;
ipe = 0;
ne = 0;
- if(v) {
+ if (v) {
/* other than digit nor \0 */
- if(szVal[i] == '.') { /* xxx. */
+ if (szVal[i] == '.') { /* xxx. */
++i;
ipf = i;
- while((v = szVal[i]) != 0) { /* get fraction part. */
- if(!ISDIGIT(v)) break;
+ while ((v = szVal[i]) != 0) { /* get fraction part. */
+ if (!ISDIGIT(v)) break;
++i;
++nf;
}
}
ipe = 0; /* Exponent */
- switch(szVal[i]) {
- case '\0': break;
- case 'e':
- case 'E':
- case 'd':
- case 'D':
+ switch (szVal[i]) {
+ case '\0':
+ break;
+ case 'e': case 'E':
+ case 'd': case 'D':
++i;
ipe = i;
v = szVal[i];
- if((v == '-') ||(v == '+')) ++i;
- while((v=szVal[i])!=0) {
- if(!ISDIGIT(v)) break;
+ if ((v == '-') || (v == '+')) ++i;
+ while ((v=szVal[i]) != 0) {
+ if (!ISDIGIT(v)) break;
++i;
++ne;
}
@@ -2688,16 +3675,17 @@ VpAlloc(U_LONG mx, const char *szVal)
break;
}
}
- nalloc =(ni + nf + BASE_FIG - 1) / BASE_FIG + 1; /* set effective allocation */
+ nalloc = (ni + nf + BASE_FIG - 1) / BASE_FIG + 1; /* set effective allocation */
/* units for szVal[] */
- if(mx <= 0) mx = 1;
+ if (mx <= 0) mx = 1;
nalloc = Max(nalloc, mx);
mx = nalloc;
- vp =(Real *) VpMemAlloc(sizeof(Real) + mx * sizeof(U_LONG));
+ vp = (Real *) VpMemAlloc(sizeof(Real) + mx * sizeof(BDIGIT));
/* xmalloc() alway returns(or throw interruption) */
vp->MaxPrec = mx; /* set max precision */
- VpSetZero(vp,sign);
- VpCtoV(vp, &(szVal[ipn]), ni, &(szVal[ipf]), nf, &(szVal[ipe]), ne);
+ VpSetZero(vp, sign);
+ VpCtoV(vp, &szVal[ipn], ni, &szVal[ipf], nf, &szVal[ipe], ne);
+ rb_str_resize(buf, 0);
return vp;
}
@@ -2713,10 +3701,10 @@ VpAlloc(U_LONG mx, const char *szVal)
* [Output]
* c ... LHSV
*/
-VP_EXPORT int
+VP_EXPORT size_t
VpAsgn(Real *c, Real *a, int isw)
{
- U_LONG n;
+ size_t n;
if(VpIsNaN(a)) {
VpSetNaN(c);
return 0;
@@ -2732,14 +3720,14 @@ VpAsgn(Real *c, Real *a, int isw)
VpSetSign(c,(isw*VpGetSign(a))); /* set sign */
n =(a->Prec < c->MaxPrec) ?(a->Prec) :(c->MaxPrec);
c->Prec = n;
- memcpy(c->frac, a->frac, n * sizeof(U_LONG));
+ memcpy(c->frac, a->frac, n * sizeof(BDIGIT));
/* Needs round ? */
if(isw!=10) {
/* Not in ActiveRound */
if(c->Prec < a->Prec) {
- VpInternalRound(c,n,(n>0)?a->frac[n-1]:0,a->frac[n]);
+ VpInternalRound(c,n,(n>0)?a->frac[n-1]:0,a->frac[n]);
} else {
- VpLimitRound(c,0);
+ VpLimitRound(c,0);
}
}
} else {
@@ -2755,21 +3743,21 @@ VpAsgn(Real *c, Real *a, int isw)
* = a - b when operation = -1 or -2.
* Returns number of significant digits of c
*/
-VP_EXPORT int
+VP_EXPORT size_t
VpAddSub(Real *c, Real *a, Real *b, int operation)
{
- S_INT sw, isw;
+ short sw, isw;
Real *a_ptr, *b_ptr;
- U_LONG n, na, nb, i;
- U_LONG mrv;
+ size_t n, na, nb, i;
+ BDIGIT mrv;
-#ifdef _DEBUG
+#ifdef BIGDECIMAL_DEBUG
if(gfDebug) {
VPrint(stdout, "VpAddSub(enter) a=% \n", a);
VPrint(stdout, " b=% \n", b);
printf(" operation=%d\n", operation);
}
-#endif /* _DEBUG */
+#endif /* BIGDECIMAL_DEBUG */
if(!VpIsDefOP(c,a,b,(operation>0)?1:2)) return 0; /* No significant digits */
@@ -2853,11 +3841,11 @@ end_if:
* else c =(Sign ofisw)(|a_ptr|+|b_ptr|)
*/
if(isw) { /* addition */
- VpSetSign(c,(S_INT)1);
+ VpSetSign(c, 1);
mrv = VpAddAbs(a_ptr, b_ptr, c);
- VpSetSign(c,isw / 2);
+ VpSetSign(c, isw / 2);
} else { /* subtraction */
- VpSetSign(c,(S_INT)1);
+ VpSetSign(c, 1);
mrv = VpSubAbs(a_ptr, b_ptr, c);
if(a_ptr == a) {
VpSetSign(c,VpGetSign(a));
@@ -2867,14 +3855,14 @@ end_if:
}
VpInternalRound(c,0,(c->Prec>0)?c->frac[c->Prec-1]:0,mrv);
-#ifdef _DEBUG
+#ifdef BIGDECIMAL_DEBUG
if(gfDebug) {
VPrint(stdout, "VpAddSub(result) c=% \n", c);
VPrint(stdout, " a=% \n", a);
VPrint(stdout, " b=% \n", b);
printf(" operation=%d\n", operation);
}
-#endif /* _DEBUG */
+#endif /* BIGDECIMAL_DEBUG */
return c->Prec*BASE_FIG;
}
@@ -2883,32 +3871,31 @@ end_if:
* a and b assuming abs(a)>abs(b).
* c = abs(a) + abs(b) ; where |a|>=|b|
*/
-static U_LONG
+static BDIGIT
VpAddAbs(Real *a, Real *b, Real *c)
{
- U_LONG word_shift;
- U_LONG carry;
- U_LONG ap;
- U_LONG bp;
- U_LONG cp;
- U_LONG a_pos;
- U_LONG b_pos;
- U_LONG c_pos;
- U_LONG av, bv, mrv;
-
-#ifdef _DEBUG
+ size_t word_shift;
+ size_t ap;
+ size_t bp;
+ size_t cp;
+ size_t a_pos;
+ size_t b_pos, b_pos_with_word_shift;
+ size_t c_pos;
+ BDIGIT av, bv, carry, mrv;
+
+#ifdef BIGDECIMAL_DEBUG
if(gfDebug) {
VPrint(stdout, "VpAddAbs called: a = %\n", a);
VPrint(stdout, " b = %\n", b);
}
-#endif /* _DEBUG */
+#endif /* BIGDECIMAL_DEBUG */
word_shift = VpSetPTR(a, b, c, &ap, &bp, &cp, &av, &bv);
a_pos = ap;
b_pos = bp;
c_pos = cp;
- if(word_shift==-1L) return 0; /* Overflow */
- if(b_pos == -1L) goto Assign_a;
+ if(word_shift==(size_t)-1L) return 0; /* Overflow */
+ if(b_pos == (size_t)-1L) goto Assign_a;
mrv = av + bv; /* Most right val. Used for round. */
@@ -2926,8 +3913,8 @@ VpAddAbs(Real *a, Real *b, Real *c)
/* Just assign the last few digits of a to c because b has no */
/* corresponding digits to be added. */
- bv = b_pos + word_shift;
- while(a_pos > bv) {
+ b_pos_with_word_shift = b_pos + word_shift;
+ while(a_pos > b_pos_with_word_shift) {
c->frac[--c_pos] = a->frac[--a_pos];
}
carry = 0; /* set first carry be zero */
@@ -2964,44 +3951,42 @@ Assign_a:
Exit:
-#ifdef _DEBUG
+#ifdef BIGDECIMAL_DEBUG
if(gfDebug) {
VPrint(stdout, "VpAddAbs exit: c=% \n", c);
}
-#endif /* _DEBUG */
+#endif /* BIGDECIMAL_DEBUG */
return mrv;
}
/*
* c = abs(a) - abs(b)
*/
-static U_LONG
+static BDIGIT
VpSubAbs(Real *a, Real *b, Real *c)
{
- U_LONG word_shift;
- U_LONG mrv;
- U_LONG borrow;
- U_LONG ap;
- U_LONG bp;
- U_LONG cp;
- U_LONG a_pos;
- U_LONG b_pos;
- U_LONG c_pos;
- U_LONG av, bv;
-
-#ifdef _DEBUG
+ size_t word_shift;
+ size_t ap;
+ size_t bp;
+ size_t cp;
+ size_t a_pos;
+ size_t b_pos, b_pos_with_word_shift;
+ size_t c_pos;
+ BDIGIT av, bv, borrow, mrv;
+
+#ifdef BIGDECIMAL_DEBUG
if(gfDebug) {
VPrint(stdout, "VpSubAbs called: a = %\n", a);
VPrint(stdout, " b = %\n", b);
}
-#endif /* _DEBUG */
+#endif /* BIGDECIMAL_DEBUG */
word_shift = VpSetPTR(a, b, c, &ap, &bp, &cp, &av, &bv);
a_pos = ap;
b_pos = bp;
c_pos = cp;
- if(word_shift==-1L) return 0; /* Overflow */
- if(b_pos == -1L) goto Assign_a;
+ if(word_shift==(size_t)-1L) return 0; /* Overflow */
+ if(b_pos == (size_t)-1L) goto Assign_a;
if(av >= bv) {
mrv = av - bv;
@@ -3029,8 +4014,8 @@ VpSubAbs(Real *a, Real *b, Real *c)
/* Just assign the last few digits of a to c because b has no */
/* corresponding digits to subtract. */
- bv = b_pos + word_shift;
- while(a_pos > bv) {
+ b_pos_with_word_shift = b_pos + word_shift;
+ while(a_pos > b_pos_with_word_shift) {
c->frac[--c_pos] = a->frac[--a_pos];
}
@@ -3067,11 +4052,11 @@ Assign_a:
mrv = 0;
Exit:
-#ifdef _DEBUG
+#ifdef BIGDECIMAL_DEBUG
if(gfDebug) {
VPrint(stdout, "VpSubAbs exit: c=% \n", c);
}
-#endif /* _DEBUG */
+#endif /* BIGDECIMAL_DEBUG */
return mrv;
}
@@ -3089,10 +4074,10 @@ Exit:
* b_pos = |
* c_pos = |
*/
-static U_LONG
-VpSetPTR(Real *a, Real *b, Real *c, U_LONG *a_pos, U_LONG *b_pos, U_LONG *c_pos, U_LONG *av, U_LONG *bv)
+static size_t
+VpSetPTR(Real *a, Real *b, Real *c, size_t *a_pos, size_t *b_pos, size_t *c_pos, BDIGIT *av, BDIGIT *bv)
{
- U_LONG left_word, right_word, word_shift;
+ size_t left_word, right_word, word_shift;
c->frac[0] = 0;
*av = *bv = 0;
word_shift =((a->exponent) -(b->exponent));
@@ -3165,7 +4150,7 @@ VpSetPTR(Real *a, Real *b, Real *c, U_LONG *a_pos, U_LONG *b_pos, U_LONG *c_pos,
}
c->Prec = *c_pos;
c->exponent = a->exponent;
- if(!AddExponent(c,(S_LONG)1)) return (-1L);
+ if(!AddExponent(c,1)) return (size_t)-1L;
return word_shift;
}
@@ -3184,21 +4169,22 @@ VpSetPTR(Real *a, Real *b, Real *c, U_LONG *a_pos, U_LONG *b_pos, U_LONG *c_pos,
* nc <---|
* MaxAB |--------------------|
*/
-VP_EXPORT int
+VP_EXPORT size_t
VpMult(Real *c, Real *a, Real *b)
{
- U_LONG MxIndA, MxIndB, MxIndAB, MxIndC;
- U_LONG ind_c, i, ii, nc;
- U_LONG ind_as, ind_ae, ind_bs, ind_be;
- U_LONG Carry, s;
+ size_t MxIndA, MxIndB, MxIndAB, MxIndC;
+ size_t ind_c, i, ii, nc;
+ size_t ind_as, ind_ae, ind_bs, ind_be;
+ BDIGIT carry;
+ BDIGIT_DBL s;
Real *w;
-#ifdef _DEBUG
+#ifdef BIGDECIMAL_DEBUG
if(gfDebug) {
VPrint(stdout, "VpMult(Enter): a=% \n", a);
VPrint(stdout, " b=% \n", b);
}
-#endif /* _DEBUG */
+#endif /* BIGDECIMAL_DEBUG */
if(!VpIsDefOP(c,a,b,3)) return 0; /* No significant digit */
@@ -3230,7 +4216,7 @@ VpMult(Real *c, Real *a, Real *b)
if(MxIndC < MxIndAB) { /* The Max. prec. of c < Prec(a)+Prec(b) */
w = c;
- c = VpAlloc((U_LONG)((MxIndAB + 1) * BASE_FIG), "#0");
+ c = VpAlloc((size_t)((MxIndAB + 1) * BASE_FIG), "#0");
MxIndC = MxIndAB;
}
@@ -3242,9 +4228,9 @@ VpMult(Real *c, Real *a, Real *b)
return 0;
}
VpSetSign(c,VpGetSign(a)*VpGetSign(b)); /* set sign */
- Carry = 0;
+ carry = 0;
nc = ind_c = MxIndAB;
- memset(c->frac, 0, (nc + 1) * sizeof(U_LONG)); /* Initialize c */
+ memset(c->frac, 0, (nc + 1) * sizeof(BDIGIT)); /* Initialize c */
c->Prec = nc + 1; /* set precision */
for(nc = 0; nc < MxIndAB; ++nc, --ind_c) {
if(nc < MxIndB) { /* The left triangle of the Fig. */
@@ -3265,22 +4251,22 @@ VpMult(Real *c, Real *a, Real *b)
}
for(i = ind_as; i <= ind_ae; ++i) {
- s =((a->frac[i]) *(b->frac[ind_bs--]));
- Carry = s / BASE;
- s = s -(Carry * BASE);
- c->frac[ind_c] += s;
+ s = (BDIGIT_DBL)a->frac[i] * b->frac[ind_bs--];
+ carry = (BDIGIT)(s / BASE);
+ s -= (BDIGIT_DBL)carry * BASE;
+ c->frac[ind_c] += (BDIGIT)s;
if(c->frac[ind_c] >= BASE) {
s = c->frac[ind_c] / BASE;
- Carry += s;
- c->frac[ind_c] -= (s * BASE);
+ carry += (BDIGIT)s;
+ c->frac[ind_c] -= (BDIGIT)(s * BASE);
}
- if(Carry) {
+ if(carry) {
ii = ind_c;
- while((--ii) >= 0) {
- c->frac[ii] += Carry;
+ while(ii-- > 0) {
+ c->frac[ii] += carry;
if(c->frac[ii] >= BASE) {
- Carry = c->frac[ii] / BASE;
- c->frac[ii] -=(Carry * BASE);
+ carry = c->frac[ii] / BASE;
+ c->frac[ii] -= (carry * BASE);
} else {
break;
}
@@ -3298,34 +4284,35 @@ VpMult(Real *c, Real *a, Real *b)
}
Exit:
-#ifdef _DEBUG
+#ifdef BIGDECIMAL_DEBUG
if(gfDebug) {
VPrint(stdout, "VpMult(c=a*b): c=% \n", c);
VPrint(stdout, " a=% \n", a);
VPrint(stdout, " b=% \n", b);
}
-#endif /*_DEBUG */
+#endif /*BIGDECIMAL_DEBUG */
return c->Prec*BASE_FIG;
}
/*
* c = a / b, remainder = r
*/
-VP_EXPORT int
+VP_EXPORT size_t
VpDivd(Real *c, Real *r, Real *a, Real *b)
{
- U_LONG word_a, word_b, word_c, word_r;
- U_LONG i, n, ind_a, ind_b, ind_c, ind_r;
- U_LONG nLoop;
- U_LONG q, b1, b1p1, b1b2, b1b2p1, r1r2;
- U_LONG borrow, borrow1, borrow2, qb;
-
-#ifdef _DEBUG
+ size_t word_a, word_b, word_c, word_r;
+ size_t i, n, ind_a, ind_b, ind_c, ind_r;
+ size_t nLoop;
+ BDIGIT_DBL q, b1, b1p1, b1b2, b1b2p1, r1r2;
+ BDIGIT borrow, borrow1, borrow2;
+ BDIGIT_DBL qb;
+
+#ifdef BIGDECIMAL_DEBUG
if(gfDebug) {
VPrint(stdout, " VpDivd(c=a/b) a=% \n", a);
VPrint(stdout, " b=% \n", b);
}
-#endif /*_DEBUG */
+#endif /*BIGDECIMAL_DEBUG */
VpSetNaN(r);
if(!VpIsDefOP(c,a,b,4)) goto Exit;
@@ -3389,7 +4376,7 @@ VpDivd(Real *c, Real *r, Real *a, Real *b)
++ind_c;
continue;
}
- r1r2 = r->frac[ind_c] * BASE + r->frac[ind_c + 1];
+ r1r2 = (BDIGIT_DBL)r->frac[ind_c] * BASE + r->frac[ind_c + 1];
if(r1r2 == b1b2) {
/* The first two word digits is the same */
ind_b = 2;
@@ -3410,7 +4397,7 @@ VpDivd(Real *c, Real *r, Real *a, Real *b)
n = ind_b;
for(i = 0; i <= n; ++i) {
if(r->frac[ind_r] < b->frac[ind_b] + borrow) {
- r->frac[ind_r] +=(BASE -(b->frac[ind_b] + borrow));
+ r->frac[ind_r] += (BASE - (b->frac[ind_b] + borrow));
borrow = 1;
} else {
r->frac[ind_r] = r->frac[ind_r] - b->frac[ind_b] - borrow;
@@ -3419,22 +4406,22 @@ VpDivd(Real *c, Real *r, Real *a, Real *b)
--ind_r;
--ind_b;
}
- ++(c->frac[ind_c]);
+ ++c->frac[ind_c];
goto carry;
}
/* The first two word digits is not the same, */
/* then compare magnitude, and divide actually. */
if(r1r2 >= b1b2p1) {
- q = r1r2 / b1b2p1;
- c->frac[ind_c] += q;
+ q = r1r2 / b1b2p1; /* q == (BDIGIT)q */
+ c->frac[ind_c] += (BDIGIT)q;
ind_r = b->Prec + ind_c - 1;
goto sub_mult;
}
div_b1p1:
if(ind_c + 1 >= word_c) goto out_side;
- q = r1r2 / b1p1;
- c->frac[ind_c + 1] += q;
+ q = r1r2 / b1p1; /* q == (BDIGIT)q */
+ c->frac[ind_c + 1] += (BDIGIT)q;
ind_r = b->Prec + ind_c;
sub_mult:
@@ -3444,22 +4431,22 @@ sub_mult:
n = ind_b;
for(i = 0; i <= n; ++i) {
/* now, perform r = r - q * b */
- qb = q *(b->frac[ind_b]);
- if(qb < BASE) borrow1 = 0;
+ qb = q * b->frac[ind_b];
+ if (qb < BASE) borrow1 = 0;
else {
- borrow1 = qb / BASE;
- qb = qb - borrow1 * BASE;
+ borrow1 = (BDIGIT)(qb / BASE);
+ qb -= (BDIGIT_DBL)borrow1 * BASE; /* get qb < BASE */
}
if(r->frac[ind_r] < qb) {
- r->frac[ind_r] +=(BASE - qb);
+ r->frac[ind_r] += (BDIGIT)(BASE - qb);
borrow2 = borrow2 + borrow1 + 1;
} else {
- r->frac[ind_r] -= qb;
+ r->frac[ind_r] -= (BDIGIT)qb;
borrow2 += borrow1;
}
if(borrow2) {
if(r->frac[ind_r - 1] < borrow2) {
- r->frac[ind_r - 1] +=(BASE - borrow2);
+ r->frac[ind_r - 1] += (BASE - borrow2);
borrow2 = 1;
} else {
r->frac[ind_r - 1] -= borrow2;
@@ -3476,27 +4463,27 @@ carry:
while(c->frac[ind_r] >= BASE) {
c->frac[ind_r] -= BASE;
--ind_r;
- ++(c->frac[ind_r]);
+ ++c->frac[ind_r];
}
}
/* End of operation, now final arrangement */
out_side:
c->Prec = word_c;
c->exponent = a->exponent;
- if(!AddExponent(c,(S_LONG)2)) return 0;
+ if(!AddExponent(c,2)) return 0;
if(!AddExponent(c,-(b->exponent))) return 0;
VpSetSign(c,VpGetSign(a)*VpGetSign(b));
VpNmlz(c); /* normalize c */
r->Prec = word_r;
r->exponent = a->exponent;
- if(!AddExponent(r,(S_LONG)1)) return 0;
+ if(!AddExponent(r,1)) return 0;
VpSetSign(r,VpGetSign(a));
VpNmlz(r); /* normalize r(remainder) */
goto Exit;
space_error:
-#ifdef _DEBUG
+#ifdef BIGDECIMAL_DEBUG
if(gfDebug) {
printf(" word_a=%lu\n", word_a);
printf(" word_b=%lu\n", word_b);
@@ -3504,16 +4491,16 @@ space_error:
printf(" word_r=%lu\n", word_r);
printf(" ind_r =%lu\n", ind_r);
}
-#endif /* _DEBUG */
+#endif /* BIGDECIMAL_DEBUG */
rb_bug("ERROR(VpDivd): space for remainder too small.");
Exit:
-#ifdef _DEBUG
+#ifdef BIGDECIMAL_DEBUG
if(gfDebug) {
VPrint(stdout, " VpDivd(c=a/b), c=% \n", c);
VPrint(stdout, " r=% \n", r);
}
-#endif /* _DEBUG */
+#endif /* BIGDECIMAL_DEBUG */
return c->Prec*BASE_FIG;
}
@@ -3524,32 +4511,32 @@ Exit:
static int
VpNmlz(Real *a)
{
- U_LONG ind_a, i;
+ size_t ind_a, i;
- if(!VpIsDef(a)) goto NoVal;
- if(VpIsZero(a)) goto NoVal;
+ if (!VpIsDef(a)) goto NoVal;
+ if (VpIsZero(a)) goto NoVal;
ind_a = a->Prec;
- while(ind_a--) {
- if(a->frac[ind_a]) {
+ while (ind_a--) {
+ if (a->frac[ind_a]) {
a->Prec = ind_a + 1;
i = 0;
- while(a->frac[i] == 0) ++i; /* skip the first few zeros */
- if(i) {
+ while (a->frac[i] == 0) ++i; /* skip the first few zeros */
+ if (i) {
a->Prec -= i;
- if(!AddExponent(a,-((S_INT)i))) return 0;
- memmove(&(a->frac[0]),&(a->frac[i]),(a->Prec)*sizeof(U_LONG));
+ if (!AddExponent(a, -(SIGNED_VALUE)i)) return 0;
+ memmove(&a->frac[0], &a->frac[i], a->Prec*sizeof(BDIGIT));
}
return 1;
}
}
/* a is zero(no non-zero digit) */
- VpSetZero(a,VpGetSign(a));
+ VpSetZero(a, VpGetSign(a));
return 0;
NoVal:
a->frac[0] = 0;
- a->Prec=1;
+ a->Prec = 1;
return 0;
}
@@ -3563,7 +4550,7 @@ VP_EXPORT int
VpComp(Real *a, Real *b)
{
int val;
- U_LONG mx, ind;
+ size_t mx, ind;
int e;
val = 0;
if(VpIsNaN(a)||VpIsNaN(b)) return 999;
@@ -3634,17 +4621,17 @@ Exit:
if (val> 1) val = 1;
else if(val<-1) val = -1;
-#ifdef _DEBUG
+#ifdef BIGDECIMAL_DEBUG
if(gfDebug) {
VPrint(stdout, " VpComp a=%\n", a);
VPrint(stdout, " b=%\n", b);
printf(" ans=%d\n", val);
}
-#endif /* _DEBUG */
+#endif /* BIGDECIMAL_DEBUG */
return (int)val;
}
-#ifdef _DEBUG
+#ifdef BIGDECIMAL_ENABLE_VPRINT
/*
* cntl_chr ... ASCIIZ Character, print control characters
* Available control codes:
@@ -3656,10 +4643,10 @@ Exit:
* a ... VP variable to be printed
*/
VP_EXPORT int
-VPrint(FILE *fp, char *cntl_chr, Real *a)
+VPrint(FILE *fp, const char *cntl_chr, Real *a)
{
- U_LONG i, j, nc, nd, ZeroSup;
- U_LONG n, m, e, nn;
+ size_t i, j, nc, nd, ZeroSup;
+ BDIGIT m, e, nn;
/* Check if NaN & Inf. */
if(VpIsNaN(a)) {
@@ -3693,14 +4680,13 @@ VPrint(FILE *fp, char *cntl_chr, Real *a)
++nc;
}
nc += fprintf(fp, "0.");
- n = a->Prec;
- for(i=0;i < n;++i) {
+ for(i=0; i < a->Prec; ++i) {
m = BASE1;
e = a->frac[i];
while(m) {
nn = e / m;
if((!ZeroSup) || nn) {
- nc += fprintf(fp, "%lu", nn); /* The reading zero(s) */
+ nc += fprintf(fp, "%lu", (unsigned long)nn); /* The leading zero(s) */
/* as 0.00xx will not */
/* be printed. */
++nd;
@@ -3714,7 +4700,7 @@ VPrint(FILE *fp, char *cntl_chr, Real *a)
m /= 10;
}
}
- nc += fprintf(fp, "E%ld", VpExponent10(a));
+ nc += fprintf(fp, "E%"PRIdSIZE, VpExponent10(a));
} else {
nc += fprintf(fp, "0.0");
}
@@ -3747,14 +4733,12 @@ VPrint(FILE *fp, char *cntl_chr, Real *a)
}
return (int)nc;
}
-#endif /* _DEBUG */
+#endif /* BIGDECIMAL_ENABLE_VPRINT */
static void
-VpFormatSt(char *psz,S_INT fFmt)
+VpFormatSt(char *psz, size_t fFmt)
{
- U_LONG ie;
- U_LONG i;
- S_INT nf = 0;
+ size_t ie, i, nf = 0;
char ch;
if(fFmt<=0) return;
@@ -3776,17 +4760,17 @@ VpFormatSt(char *psz,S_INT fFmt)
}
}
-VP_EXPORT S_LONG
+VP_EXPORT ssize_t
VpExponent10(Real *a)
{
- S_LONG ex;
- U_LONG n;
+ ssize_t ex;
+ size_t n;
- if(!VpHasVal(a)) return 0;
+ if (!VpHasVal(a)) return 0;
- ex =(a->exponent) * BASE_FIG;
+ ex = a->exponent * (ssize_t)BASE_FIG;
n = BASE1;
- while((a->frac[0] / n) == 0) {
+ while ((a->frac[0] / n) == 0) {
--ex;
n /= 10;
}
@@ -3796,8 +4780,8 @@ VpExponent10(Real *a)
VP_EXPORT void
VpSzMantissa(Real *a,char *psz)
{
- U_LONG i, ZeroSup;
- U_LONG n, m, e, nn;
+ size_t i, n, ZeroSup;
+ BDIGIT_DBL m, e, nn;
if(VpIsNaN(a)) {
sprintf(psz,SZ_NaN);
@@ -3816,13 +4800,13 @@ VpSzMantissa(Real *a,char *psz)
if(!VpIsZero(a)) {
if(VpGetSign(a) < 0) *psz++ = '-';
n = a->Prec;
- for(i=0;i < n;++i) {
+ for (i=0; i < n; ++i) {
m = BASE1;
e = a->frac[i];
- while(m) {
+ while (m) {
nn = e / m;
if((!ZeroSup) || nn) {
- sprintf(psz, "%lu", nn); /* The reading zero(s) */
+ sprintf(psz, "%lu", (unsigned long)nn); /* The leading zero(s) */
psz += strlen(psz);
/* as 0.00xx will be ignored. */
ZeroSup = 0; /* Set to print succeeding zeros */
@@ -3873,21 +4857,21 @@ VpToSpecialString(Real *a,char *psz,int fPlus)
}
VP_EXPORT void
-VpToString(Real *a,char *psz,int fFmt,int fPlus)
+VpToString(Real *a, char *psz, size_t fFmt, int fPlus)
/* fPlus =0:default, =1: set ' ' before digits , =2:set '+' before digits. */
{
- U_LONG i, ZeroSup;
- U_LONG n, m, e, nn;
+ size_t i, n, ZeroSup;
+ BDIGIT shift, m, e, nn;
char *pszSav = psz;
- S_LONG ex;
+ ssize_t ex;
- if(VpToSpecialString(a,psz,fPlus)) return;
+ if (VpToSpecialString(a, psz, fPlus)) return;
ZeroSup = 1; /* Flag not to print the leading zeros as 0.00xxxxEnn */
- if(VpGetSign(a) < 0) *psz++ = '-';
- else if(fPlus==1) *psz++ = ' ';
- else if(fPlus==2) *psz++ = '+';
+ if (VpGetSign(a) < 0) *psz++ = '-';
+ else if (fPlus == 1) *psz++ = ' ';
+ else if (fPlus == 2) *psz++ = '+';
*psz++ = '0';
*psz++ = '.';
@@ -3898,7 +4882,7 @@ VpToString(Real *a,char *psz,int fFmt,int fPlus)
while(m) {
nn = e / m;
if((!ZeroSup) || nn) {
- sprintf(psz, "%lu", nn); /* The reading zero(s) */
+ sprintf(psz, "%lu", (unsigned long)nn); /* The reading zero(s) */
psz += strlen(psz);
/* as 0.00xx will be ignored. */
ZeroSup = 0; /* Set to print succeeding zeros */
@@ -3907,25 +4891,25 @@ VpToString(Real *a,char *psz,int fFmt,int fPlus)
m /= 10;
}
}
- ex =(a->exponent) * BASE_FIG;
- n = BASE1;
- while((a->frac[0] / n) == 0) {
+ ex = a->exponent * (ssize_t)BASE_FIG;
+ shift = BASE1;
+ while(a->frac[0] / shift == 0) {
--ex;
- n /= 10;
+ shift /= 10;
}
while(psz[-1]=='0') *(--psz) = 0;
- sprintf(psz, "E%ld", ex);
+ sprintf(psz, "E%"PRIdSIZE, ex);
if(fFmt) VpFormatSt(pszSav, fFmt);
}
VP_EXPORT void
-VpToFString(Real *a,char *psz,int fFmt,int fPlus)
+VpToFString(Real *a, char *psz, size_t fFmt, int fPlus)
/* fPlus =0:default,=1: set ' ' before digits ,set '+' before digits. */
{
- U_LONG i;
- U_LONG n, m, e, nn;
+ size_t i, n;
+ BDIGIT m, e, nn;
char *pszSav = psz;
- S_LONG ex;
+ ssize_t ex;
if(VpToSpecialString(a,psz,fPlus)) return;
@@ -3947,7 +4931,7 @@ VpToFString(Real *a,char *psz,int fFmt,int fPlus)
for(i=0;i < n;++i) {
--ex;
if(i==0 && ex >= 0) {
- sprintf(psz, "%lu", a->frac[i]);
+ sprintf(psz, "%lu", (unsigned long)a->frac[i]);
psz += strlen(psz);
} else {
m = BASE1;
@@ -3984,39 +4968,39 @@ VpToFString(Real *a,char *psz,int fFmt,int fPlus)
* ne ... number of characters in exp_chr[],not including '+/-'.
*/
VP_EXPORT int
-VpCtoV(Real *a, const char *int_chr, U_LONG ni, const char *frac, U_LONG nf, const char *exp_chr, U_LONG ne)
+VpCtoV(Real *a, const char *int_chr, size_t ni, const char *frac, size_t nf, const char *exp_chr, size_t ne)
{
- U_LONG i, j, ind_a, ma, mi, me;
- U_LONG loc;
- S_INT e,es, eb, ef;
- S_INT sign, signe;
+ size_t i, j, ind_a, ma, mi, me;
+ size_t loc;
+ SIGNED_VALUE e, es, eb, ef;
+ int sign, signe, exponent_overflow;
+
/* get exponent part */
e = 0;
ma = a->MaxPrec;
mi = ni;
me = ne;
signe = 1;
- memset(a->frac, 0, ma * sizeof(U_LONG));
- if(ne > 0) {
+ exponent_overflow = 0;
+ memset(a->frac, 0, ma * sizeof(BDIGIT));
+ if (ne > 0) {
i = 0;
- if(exp_chr[0] == '-') {
+ if (exp_chr[0] == '-') {
signe = -1;
++i;
++me;
- } else if(exp_chr[0] == '+') {
+ }
+ else if (exp_chr[0] == '+') {
++i;
++me;
}
- while(i < me) {
- es = e*((S_INT)BASE_FIG);
+ while (i < me) {
+ es = e * (SIGNED_VALUE)BASE_FIG;
e = e * 10 + exp_chr[i] - '0';
- if(es>e*((S_INT)BASE_FIG)) {
- VpException(VP_EXCEPTION_INFINITY,"exponent overflow",0);
- sign = 1;
- if(int_chr[0] == '-') sign = -1;
- if(signe > 0) VpSetInf(a, sign);
- else VpSetZero(a, sign);
- return 1;
+ if (es > (SIGNED_VALUE)(e*BASE_FIG)) {
+ exponent_overflow = 1;
+ e = es; /* keep sign */
+ break;
}
++i;
}
@@ -4025,7 +5009,7 @@ VpCtoV(Real *a, const char *int_chr, U_LONG ni, const char *frac, U_LONG nf, con
/* get integer part */
i = 0;
sign = 1;
- if(ni >= 0) {
+ if(1 /*ni >= 0*/) {
if(int_chr[0] == '-') {
sign = -1;
++i;
@@ -4039,36 +5023,48 @@ VpCtoV(Real *a, const char *int_chr, U_LONG ni, const char *frac, U_LONG nf, con
e = signe * e; /* e: The value of exponent part. */
e = e + ni; /* set actual exponent size. */
- if(e > 0) signe = 1;
- else signe = -1;
+ if (e > 0) signe = 1;
+ else signe = -1;
/* Adjust the exponent so that it is the multiple of BASE_FIG. */
j = 0;
ef = 1;
- while(ef) {
- if(e>=0) eb = e;
- else eb = -e;
- ef = eb / ((S_INT)BASE_FIG);
- ef = eb - ef * ((S_INT)BASE_FIG);
- if(ef) {
+ while (ef) {
+ if (e >= 0) eb = e;
+ else eb = -e;
+ ef = eb / (SIGNED_VALUE)BASE_FIG;
+ ef = eb - ef * (SIGNED_VALUE)BASE_FIG;
+ if (ef) {
++j; /* Means to add one more preceeding zero */
++e;
}
}
- eb = e / ((S_INT)BASE_FIG);
+ eb = e / (SIGNED_VALUE)BASE_FIG;
+
+ if (exponent_overflow) {
+ int zero = 1;
+ for ( ; i < mi && zero; i++) zero = int_chr[i] == '0';
+ for (i = 0; i < nf && zero; i++) zero = frac[i] == '0';
+ if (!zero && signe > 0) {
+ VpSetInf(a, sign);
+ VpException(VP_EXCEPTION_INFINITY, "exponent overflow",0);
+ }
+ else VpSetZero(a, sign);
+ return 1;
+ }
ind_a = 0;
- while(i < mi) {
+ while (i < mi) {
a->frac[ind_a] = 0;
- while((j < (U_LONG)BASE_FIG) &&(i < mi)) {
+ while ((j < BASE_FIG) && (i < mi)) {
a->frac[ind_a] = a->frac[ind_a] * 10 + int_chr[i] - '0';
++j;
++i;
}
- if(i < mi) {
+ if (i < mi) {
++ind_a;
- if(ind_a >= ma) goto over_flow;
+ if (ind_a >= ma) goto over_flow;
j = 0;
}
}
@@ -4078,7 +5074,7 @@ VpCtoV(Real *a, const char *int_chr, U_LONG ni, const char *frac, U_LONG nf, con
i = 0;
while(i < nf) {
- while((j < (U_LONG)BASE_FIG) &&(i < nf)) {
+ while((j < BASE_FIG) && (i < nf)) {
a->frac[ind_a] = a->frac[ind_a] * 10 + frac[i] - '0';
++j;
++i;
@@ -4095,8 +5091,8 @@ over_flow:
rb_warn("Conversion from String to BigDecimal overflow (last few digits discarded).");
Final:
- if(ind_a >= ma) ind_a = ma - 1;
- while(j < (U_LONG)BASE_FIG) {
+ if (ind_a >= ma) ind_a = ma - 1;
+ while (j < BASE_FIG) {
a->frac[ind_a] = a->frac[ind_a] * 10;
++j;
}
@@ -4112,7 +5108,7 @@ Final:
* *m ... Real
* [Output]
* *d ... fraction part of m(d = 0.xxxxxxx). where # of 'x's is fig.
- * *e ... U_LONG,exponent of m.
+ * *e ... exponent of m.
* DBLE_FIG ... Number of digits in a double variable.
*
* m -> d*10**e, 0<d<BASE
@@ -4123,9 +5119,9 @@ Final:
* -1 ... NaN
*/
VP_EXPORT int
-VpVtoD(double *d, S_LONG *e, Real *m)
+VpVtoD(double *d, SIGNED_VALUE *e, Real *m)
{
- U_LONG ind_m, mm, fig;
+ size_t ind_m, mm, fig;
double div;
int f = 1;
@@ -4166,20 +5162,20 @@ VpVtoD(double *d, S_LONG *e, Real *m)
*d = 0.0;
div = 1.;
while(ind_m < mm) {
- div /=(double)((S_INT)BASE);
- *d = *d +((double) ((S_INT)m->frac[ind_m++])) * div;
+ div /= (double)BASE;
+ *d = *d + (double)m->frac[ind_m++] * div;
}
- *e = m->exponent * ((S_INT)BASE_FIG);
+ *e = m->exponent * (SIGNED_VALUE)BASE_FIG;
*d *= VpGetSign(m);
Exit:
-#ifdef _DEBUG
+#ifdef BIGDECIMAL_DEBUG
if(gfDebug) {
VPrint(stdout, " VpVtoD: m=%\n", m);
printf(" d=%e * 10 **%ld\n", *d, *e);
- printf(" DBLE_FIG = %ld\n", DBLE_FIG);
+ printf(" DBLE_FIG = %d\n", DBLE_FIG);
}
-#endif /*_DEBUG */
+#endif /*BIGDECIMAL_DEBUG */
return f;
}
@@ -4189,8 +5185,9 @@ Exit:
VP_EXPORT void
VpDtoV(Real *m, double d)
{
- U_LONG i, ind_m, mm;
- U_LONG ne;
+ size_t ind_m, mm;
+ SIGNED_VALUE ne;
+ BDIGIT i;
double val, val2;
if(isnan(d)) {
@@ -4211,45 +5208,41 @@ VpDtoV(Real *m, double d)
ne = 0;
if(val >= 1.0) {
while(val >= 1.0) {
- val /=(double)((S_INT)BASE);
+ val /= (double)BASE;
++ne;
}
} else {
- val2 = 1.0 /(double)((S_INT)BASE);
+ val2 = 1.0 /(double)BASE;
while(val < val2) {
- val *=(double)((S_INT)BASE);
+ val *= (double)BASE;
--ne;
}
}
/* Now val = 0.xxxxx*BASE**ne */
mm = m->MaxPrec;
- memset(m->frac, 0, mm * sizeof(U_LONG));
+ memset(m->frac, 0, mm * sizeof(BDIGIT));
for(ind_m = 0;val > 0.0 && ind_m < mm;ind_m++) {
- val *=(double)((S_INT)BASE);
- i =(U_LONG) val;
- val -=(double)((S_INT)i);
+ val *= (double)BASE;
+ i = (BDIGIT)val;
+ val -= (double)i;
m->frac[ind_m] = i;
}
if(ind_m >= mm) ind_m = mm - 1;
- if(d > 0.0) {
- VpSetSign(m, (S_INT)1);
- } else {
- VpSetSign(m,-(S_INT)1);
- }
+ VpSetSign(m, (d > 0.0) ? 1 : -1);
m->Prec = ind_m + 1;
m->exponent = ne;
- VpInternalRound(m,0,(m->Prec>0)?m->frac[m->Prec-1]:0,
- (U_LONG)(val*((double)((S_INT)BASE))));
+ VpInternalRound(m, 0, (m->Prec > 0) ? m->frac[m->Prec-1] : 0,
+ (BDIGIT)(val*(double)BASE));
Exit:
-#ifdef _DEBUG
+#ifdef BIGDECIMAL_DEBUG
if(gfDebug) {
printf("VpDtoV d=%30.30e\n", d);
VPrint(stdout, " m=%\n", m);
}
-#endif /* _DEBUG */
+#endif /* BIGDECIMAL_DEBUG */
return;
}
@@ -4258,12 +5251,12 @@ Exit:
*/
#if 0 /* unused */
VP_EXPORT void
-VpItoV(Real *m, S_INT ival)
+VpItoV(Real *m, SIGNED_VALUE ival)
{
- U_LONG mm, ind_m;
- U_LONG val, v1, v2, v;
+ size_t mm, ind_m;
+ size_t val, v1, v2, v;
int isign;
- S_INT ne;
+ SIGNED_VALUE ne;
if(ival == 0) {
VpSetZero(m,1);
@@ -4273,7 +5266,7 @@ VpItoV(Real *m, S_INT ival)
val = ival;
if(ival < 0) {
isign = -1;
- val =(U_LONG)(-ival);
+ val =(size_t)(-ival);
}
ne = 0;
ind_m = 0;
@@ -4306,12 +5299,12 @@ VpItoV(Real *m, S_INT ival)
VpNmlz(m);
Exit:
-#ifdef _DEBUG
+#ifdef BIGDECIMAL_DEBUG
if(gfDebug) {
printf(" VpItoV i=%d\n", ival);
VPrint(stdout, " m=%\n", m);
}
-#endif /* _DEBUG */
+#endif /* BIGDECIMAL_DEBUG */
return;
}
#endif
@@ -4324,11 +5317,10 @@ VpSqrt(Real *y, Real *x)
{
Real *f = NULL;
Real *r = NULL;
- S_LONG y_prec, f_prec;
- S_LONG n;
- S_LONG e;
- S_LONG prec;
- S_LONG nr;
+ size_t y_prec, f_prec;
+ SIGNED_VALUE n, e;
+ SIGNED_VALUE prec;
+ ssize_t nr;
double val;
/* Zero, NaN or Infinity ? */
@@ -4354,37 +5346,39 @@ VpSqrt(Real *y, Real *x)
goto Exit;
}
- n = (S_LONG)y->MaxPrec;
- if((S_LONG)x->MaxPrec > n) n = (S_LONG)x->MaxPrec;
+ n = (SIGNED_VALUE)y->MaxPrec;
+ if (x->MaxPrec > (size_t)n) n = (ssize_t)x->MaxPrec;
/* allocate temporally variables */
- f = VpAlloc(y->MaxPrec *(BASE_FIG + 2), "#1");
- r = VpAlloc((n + n) *(BASE_FIG + 2), "#1");
+ f = VpAlloc(y->MaxPrec * (BASE_FIG + 2), "#1");
+ r = VpAlloc((n + n) * (BASE_FIG + 2), "#1");
nr = 0;
- y_prec = (S_LONG)y->MaxPrec;
- f_prec = (S_LONG)f->MaxPrec;
+ y_prec = y->MaxPrec;
+ f_prec = f->MaxPrec;
+
+ prec = x->exponent - (ssize_t)y_prec;
+ if (x->exponent > 0)
+ ++prec;
+ else
+ --prec;
- prec = x->exponent;
- if(prec > 0) ++prec;
- else --prec;
- prec = prec - (S_LONG)y->MaxPrec;
VpVtoD(&val, &e, x); /* val <- x */
- e /= ((S_LONG)BASE_FIG);
+ e /= (SIGNED_VALUE)BASE_FIG;
n = e / 2;
- if(e - n * 2 != 0) {
- val /=(double)((S_INT)BASE);
- n =(e + 1) / 2;
+ if (e - n * 2 != 0) {
+ val /= BASE;
+ n = (e + 1) / 2;
}
VpDtoV(y, sqrt(val)); /* y <- sqrt(val) */
y->exponent += n;
- n = (DBLE_FIG + BASE_FIG - 1) / BASE_FIG;
- y->MaxPrec = (U_LONG)Min(n , y_prec);
+ n = (SIGNED_VALUE)((DBLE_FIG + BASE_FIG - 1) / BASE_FIG);
+ y->MaxPrec = Min((size_t)n , y_prec);
f->MaxPrec = y->MaxPrec + 1;
- n = y_prec*((S_LONG)BASE_FIG);
- if((U_LONG)n<maxnr) n = (U_LONG)maxnr;
+ n = (SIGNED_VALUE)(y_prec * BASE_FIG);
+ if (n < (SIGNED_VALUE)maxnr) n = (SIGNED_VALUE)maxnr;
do {
y->MaxPrec *= 2;
- if(y->MaxPrec > (U_LONG)y_prec) y->MaxPrec = (U_LONG)y_prec;
+ if (y->MaxPrec > y_prec) y->MaxPrec = y_prec;
f->MaxPrec = y->MaxPrec;
VpDivd(f, r, x, y); /* f = x/y */
VpAddSub(r, f, y, -1); /* r = f - y */
@@ -4395,26 +5389,26 @@ VpSqrt(Real *y, Real *x)
if(f->exponent <= prec) goto converge;
} while(++nr < n);
/* */
-#ifdef _DEBUG
+#ifdef BIGDECIMAL_DEBUG
if(gfDebug) {
printf("ERROR(VpSqrt): did not converge within %ld iterations.\n",
nr);
}
-#endif /* _DEBUG */
+#endif /* BIGDECIMAL_DEBUG */
y->MaxPrec = y_prec;
converge:
- VpChangeSign(y,(S_INT)1);
-#ifdef _DEBUG
+ VpChangeSign(y, 1);
+#ifdef BIGDECIMAL_DEBUG
if(gfDebug) {
VpMult(r, y, y);
VpAddSub(f, x, r, -1);
- printf("VpSqrt: iterations = %lu\n", nr);
+ printf("VpSqrt: iterations = %"PRIdSIZE"\n", nr);
VPrint(stdout, " y =% \n", y);
VPrint(stdout, " x =% \n", x);
VPrint(stdout, " x-y*y = % \n", f);
}
-#endif /* _DEBUG */
+#endif /* BIGDECIMAL_DEBUG */
y->MaxPrec = y_prec;
Exit:
@@ -4429,7 +5423,7 @@ Exit:
*
*/
VP_EXPORT int
-VpMidRound(Real *y, int f, int nf)
+VpMidRound(Real *y, unsigned short f, ssize_t nf)
/*
* Round reletively from the decimal point.
* f: rounding mode
@@ -4437,85 +5431,137 @@ VpMidRound(Real *y, int f, int nf)
*/
{
/* fracf: any positive digit under rounding position? */
+ /* fracf_1further: any positive digits under one further than the rounding position? */
/* exptoadd: number of digits needed to compensate negative nf */
- int n,i,ix,ioffset,fracf,exptoadd;
- U_LONG v,shifter;
- U_LONG div;
+ int fracf, fracf_1further;
+ ssize_t n,i,ix,ioffset, exptoadd;
+ BDIGIT v, shifter;
+ BDIGIT div;
- nf += y->exponent*((int)BASE_FIG);
+ nf += y->exponent * (ssize_t)BASE_FIG;
exptoadd=0;
if (nf < 0) {
- /* rounding position too left(large). */
- if((f!=VP_ROUND_CEIL) && (f!=VP_ROUND_FLOOR)) {
- VpSetZero(y,VpGetSign(y)); /* truncate everything */
- return 0;
- }
- exptoadd = -nf;
- nf = 0;
+ /* rounding position too left(large). */
+ if((f!=VP_ROUND_CEIL) && (f!=VP_ROUND_FLOOR)) {
+ VpSetZero(y,VpGetSign(y)); /* truncate everything */
+ return 0;
+ }
+ exptoadd = -nf;
+ nf = 0;
}
- /* ix: x->fraq[ix] contains round position */
- ix = nf/(int)BASE_FIG;
- if(((U_LONG)ix)>=y->Prec) return 0; /* rounding position too right(small). */
- ioffset = nf - ix*((int)BASE_FIG);
-
+ ix = nf / (ssize_t)BASE_FIG;
+ if ((size_t)ix >= y->Prec) return 0; /* rounding position too right(small). */
v = y->frac[ix];
- /* drop digits after pointed digit */
- n = BASE_FIG - ioffset - 1;
- for(shifter=1,i=0;i<n;++i) shifter *= 10;
- fracf = (v%(shifter*10) > 0);
+ ioffset = nf - ix*(ssize_t)BASE_FIG;
+ n = (ssize_t)BASE_FIG - ioffset - 1;
+ for (shifter=1,i=0; i<n; ++i) shifter *= 10;
+
+ /* so the representation used (in y->frac) is an array of BDIGIT, where
+ each BDIGIT contains a value between 0 and BASE-1, consisting of BASE_FIG
+ decimal places.
+
+ (that numbers of decimal places are typed as ssize_t is somewhat confusing)
+
+ nf is now position (in decimal places) of the digit from the start of
+ the array.
+ ix is the position (in BDIGITS) of the BDIGIT containing the decimal digit,
+ from the start of the array.
+ v is the value of this BDIGIT
+ ioffset is the number of extra decimal places along of this decimal digit
+ within v.
+ n is the number of decimal digits remaining within v after this decimal digit
+ shifter is 10**n,
+ v % shifter are the remaining digits within v
+ v % (shifter * 10) are the digit together with the remaining digits within v
+ v / shifter are the digit's predecessors together with the digit
+ div = v / shifter / 10 is just the digit's precessors
+ (v / shifter) - div*10 is just the digit, which is what v ends up being reassigned to.
+ */
+
+ fracf = (v % (shifter * 10) > 0);
+ fracf_1further = ((v % shifter) > 0);
+
v /= shifter;
- div = v/10;
+ div = v / 10;
v = v - div*10;
- if (fracf == 0) {
- for(i=ix+1;i<y->Prec;i++) {
- if (y->frac[i]%BASE) {
- fracf = 1;
- break;
- }
- }
+ /* now v is just the digit required.
+ now fracf is whether the digit or any of the remaining digits within v are non-zero
+ now fracf_1further is whether any of the remaining digits within v are non-zero
+ */
+
+ /* now check all the remaining BDIGITS for zero-ness a whole BDIGIT at a time.
+ if we spot any non-zeroness, that means that we foudn a positive digit under
+ rounding position, and we also found a positive digit under one further than
+ the rounding position, so both searches (to see if any such non-zero digit exists)
+ can stop */
+
+ for (i=ix+1; (size_t)i < y->Prec; i++) {
+ if (y->frac[i] % BASE) {
+ fracf = fracf_1further = 1;
+ break;
+ }
}
- memset(y->frac+ix+1, 0, (y->Prec - (ix+1)) * sizeof(U_LONG));
+
+ /* now fracf = does any positive digit exist under the rounding position?
+ now fracf_1further = does any positive digit exist under one further than the
+ rounding position?
+ now v = the first digit under the rounding position */
+
+ /* drop digits after pointed digit */
+ memset(y->frac+ix+1, 0, (y->Prec - (ix+1)) * sizeof(BDIGIT));
+
switch(f) {
case VP_ROUND_DOWN: /* Truncate */
break;
case VP_ROUND_UP: /* Roundup */
- if(fracf) ++div;
- break;
- case VP_ROUND_HALF_UP: /* Round half up */
- if(v>=5) ++div;
+ if (fracf) ++div;
+ break;
+ case VP_ROUND_HALF_UP:
+ if (v>=5) ++div;
break;
- case VP_ROUND_HALF_DOWN: /* Round half down */
- if(v>=6) ++div;
+ case VP_ROUND_HALF_DOWN:
+ if (v > 5 || (v == 5 && fracf_1further)) ++div;
break;
- case VP_ROUND_CEIL: /* ceil */
- if(fracf && (VpGetSign(y)>0)) ++div;
+ case VP_ROUND_CEIL:
+ if (fracf && (VpGetSign(y)>0)) ++div;
break;
- case VP_ROUND_FLOOR: /* floor */
- if(fracf && (VpGetSign(y)<0)) ++div;
+ case VP_ROUND_FLOOR:
+ if (fracf && (VpGetSign(y)<0)) ++div;
break;
case VP_ROUND_HALF_EVEN: /* Banker's rounding */
- if(v>5) ++div;
- else if(v==5) {
- if((U_LONG)i==(BASE_FIG-1)) {
- if(ix && (y->frac[ix-1]%2)) ++div;
- } else {
- if(div%2) ++div;
- }
- }
- break;
+ if (v > 5) ++div;
+ else if (v == 5) {
+ if (fracf_1further) {
+ ++div;
+ }
+ else {
+ if (ioffset == 0) {
+ /* v is the first decimal digit of its BDIGIT;
+ need to grab the previous BDIGIT if present
+ to check for evenness of the previous decimal
+ digit (which is same as that of the BDIGIT since
+ base 10 has a factor of 2) */
+ if (ix && (y->frac[ix-1] % 2)) ++div;
+ }
+ else {
+ if (div % 2) ++div;
+ }
+ }
+ }
+ break;
}
- for(i=0;i<=n;++i) div *= 10;
- if(div>=BASE) {
+ for (i=0; i<=n; ++i) div *= 10;
+ if (div>=BASE) {
if(ix) {
y->frac[ix] = 0;
VpRdup(y,ix);
} else {
- S_INT s = VpGetSign(y);
- int e = y->exponent;
+ short s = VpGetSign(y);
+ SIGNED_VALUE e = y->exponent;
VpSetOne(y);
- VpSetSign(y,s);
+ VpSetSign(y, s);
y->exponent = e+1;
}
} else {
@@ -4523,8 +5569,8 @@ VpMidRound(Real *y, int f, int nf)
VpNmlz(y);
}
if (exptoadd > 0) {
- y->exponent += exptoadd/BASE_FIG;
- exptoadd %= BASE_FIG;
+ y->exponent += (SIGNED_VALUE)(exptoadd/BASE_FIG);
+ exptoadd %= (ssize_t)BASE_FIG;
for(i=0;i<exptoadd;i++) {
y->frac[0] *= 10;
if (y->frac[0] >= BASE) {
@@ -4537,74 +5583,83 @@ VpMidRound(Real *y, int f, int nf)
}
VP_EXPORT int
-VpLeftRound(Real *y, int f, int nf)
+VpLeftRound(Real *y, unsigned short f, ssize_t nf)
/*
* Round from the left hand side of the digits.
*/
{
- U_LONG v;
- if(!VpHasVal(y)) return 0; /* Unable to round */
+ BDIGIT v;
+ if (!VpHasVal(y)) return 0; /* Unable to round */
v = y->frac[0];
- nf -= VpExponent(y)*BASE_FIG;
- while((v /= 10) != 0) nf--;
- nf += (BASE_FIG-1);
+ nf -= VpExponent(y)*(ssize_t)BASE_FIG;
+ while ((v /= 10) != 0) nf--;
+ nf += (ssize_t)BASE_FIG-1;
return VpMidRound(y,f,nf);
}
-VP_EXPORT int
-VpActiveRound(Real *y, Real *x, int f, int nf)
+VP_EXPORT int
+VpActiveRound(Real *y, Real *x, unsigned short f, ssize_t nf)
{
/* First,assign whole value in truncation mode */
- if(VpAsgn(y, x, 10)<=1) return 0; /* Zero,NaN,or Infinity */
+ if (VpAsgn(y, x, 10) <= 1) return 0; /* Zero,NaN,or Infinity */
return VpMidRound(y,f,nf);
}
static int
-VpLimitRound(Real *c,U_LONG ixDigit)
+VpLimitRound(Real *c, size_t ixDigit)
{
- U_LONG ix = VpGetPrecLimit();
+ size_t ix = VpGetPrecLimit();
if(!VpNmlz(c)) return -1;
if(!ix) return 0;
if(!ixDigit) ixDigit = c->Prec-1;
if((ix+BASE_FIG-1)/BASE_FIG > ixDigit+1) return 0;
- return VpLeftRound(c,VpGetRoundMode(),ix);
+ return VpLeftRound(c, VpGetRoundMode(), (ssize_t)ix);
}
-static void
-VpInternalRound(Real *c,int ixDigit,U_LONG vPrev,U_LONG v)
+/* If I understand correctly, this is only ever used to round off the final decimal
+ digit of precision */
+static void
+VpInternalRound(Real *c, size_t ixDigit, BDIGIT vPrev, BDIGIT v)
{
int f = 0;
- if(VpLimitRound(c,ixDigit)) return;
- if(!v) return;
+ unsigned short const rounding_mode = VpGetRoundMode();
+
+ if (VpLimitRound(c, ixDigit)) return;
+ if (!v) return;
v /= BASE1;
- switch(gfRoundMode) {
+ switch (rounding_mode) {
case VP_ROUND_DOWN:
- break;
+ break;
case VP_ROUND_UP:
- if(v) f = 1;
- break;
+ if (v) f = 1;
+ break;
case VP_ROUND_HALF_UP:
- if(v >= 5) f = 1;
- break;
+ if (v >= 5) f = 1;
+ break;
case VP_ROUND_HALF_DOWN:
- if(v >= 6) f = 1;
- break;
- case VP_ROUND_CEIL: /* ceil */
- if(v && (VpGetSign(c)>0)) f = 1;
- break;
- case VP_ROUND_FLOOR: /* floor */
- if(v && (VpGetSign(c)<0)) f = 1;
- break;
+ /* this is ok - because this is the last digit of precision,
+ the case where v == 5 and some further digits are nonzero
+ will never occur */
+ if (v >= 6) f = 1;
+ break;
+ case VP_ROUND_CEIL:
+ if (v && (VpGetSign(c) > 0)) f = 1;
+ break;
+ case VP_ROUND_FLOOR:
+ if (v && (VpGetSign(c) < 0)) f = 1;
+ break;
case VP_ROUND_HALF_EVEN: /* Banker's rounding */
- if(v>5) f = 1;
- else if(v==5 && vPrev%2) f = 1;
- break;
+ /* as per VP_ROUND_HALF_DOWN, because this is the last digit of precision,
+ there is no case to worry about where v == 5 and some further digits are nonzero */
+ if (v > 5) f = 1;
+ else if (v == 5 && vPrev % 2) f = 1;
+ break;
}
- if(f) {
- VpRdup(c,ixDigit); /* round up */
- VpNmlz(c);
+ if (f) {
+ VpRdup(c, ixDigit);
+ VpNmlz(c);
}
}
@@ -4612,20 +5667,20 @@ VpInternalRound(Real *c,int ixDigit,U_LONG vPrev,U_LONG v)
* Rounds up m(plus one to final digit of m).
*/
static int
-VpRdup(Real *m,U_LONG ind_m)
+VpRdup(Real *m, size_t ind_m)
{
- U_LONG carry;
+ BDIGIT carry;
- if(!ind_m) ind_m = m->Prec;
+ if (!ind_m) ind_m = m->Prec;
carry = 1;
- while(carry > 0 && (ind_m--)) {
+ while (carry > 0 && (ind_m--)) {
m->frac[ind_m] += carry;
- if(m->frac[ind_m] >= BASE) m->frac[ind_m] -= BASE;
- else carry = 0;
+ if (m->frac[ind_m] >= BASE) m->frac[ind_m] -= BASE;
+ else carry = 0;
}
if(carry > 0) { /* Overflow,count exponent and set fraction part be 1 */
- if(!AddExponent(m,(S_LONG)1)) return 0;
+ if (!AddExponent(m, 1)) return 0;
m->Prec = m->frac[0] = 1;
} else {
VpNmlz(m);
@@ -4639,22 +5694,25 @@ VpRdup(Real *m,U_LONG ind_m)
VP_EXPORT void
VpFrac(Real *y, Real *x)
{
- U_LONG my, ind_y, ind_x;
+ size_t my, ind_y, ind_x;
if(!VpHasVal(x)) {
VpAsgn(y,x,1);
goto Exit;
}
- if(x->exponent > 0 && (U_LONG)x->exponent >= x->Prec) {
+ if (x->exponent > 0 && (size_t)x->exponent >= x->Prec) {
VpSetZero(y,VpGetSign(x));
goto Exit;
- } else if(x->exponent <= 0) {
+ }
+ else if(x->exponent <= 0) {
VpAsgn(y, x, 1);
goto Exit;
}
- y->Prec = x->Prec -(U_LONG) x->exponent;
+ /* satisfy: x->exponent > 0 */
+
+ y->Prec = x->Prec - (size_t)x->exponent;
y->Prec = Min(y->Prec, y->MaxPrec);
y->exponent = 0;
VpSetSign(y,VpGetSign(x));
@@ -4669,12 +5727,12 @@ VpFrac(Real *y, Real *x)
VpNmlz(y);
Exit:
-#ifdef _DEBUG
+#ifdef BIGDECIMAL_DEBUG
if(gfDebug) {
VPrint(stdout, "VpFrac y=%\n", y);
VPrint(stdout, " x=%\n", x);
}
-#endif /* _DEBUG */
+#endif /* BIGDECIMAL_DEBUG */
return;
}
@@ -4682,10 +5740,10 @@ Exit:
* y = x ** n
*/
VP_EXPORT int
-VpPower(Real *y, Real *x, S_INT n)
+VpPower(Real *y, Real *x, SIGNED_VALUE n)
{
- U_LONG s, ss;
- S_LONG sign;
+ size_t s, ss;
+ ssize_t sign;
Real *w1 = NULL;
Real *w2 = NULL;
@@ -4727,7 +5785,7 @@ VpPower(Real *y, Real *x, S_INT n)
VpSetOne(y);
if(VpGetSign(x) > 0) goto Exit;
if((n % 2) == 0) goto Exit;
- VpSetSign(y,-(S_INT)1);
+ VpSetSign(y, -1);
goto Exit;
}
@@ -4751,14 +5809,11 @@ VpPower(Real *y, Real *x, S_INT n)
while(n > 0) {
VpAsgn(w1, x, 1);
s = 1;
-loop1: ss = s;
- s += s;
- if(s >(U_LONG) n) goto out_loop1;
- VpMult(w2, w1, w1);
- VpAsgn(w1, w2, 1);
- goto loop1;
-out_loop1:
- n -= ss;
+ while (ss = s, (s += s) <= (size_t)n) {
+ VpMult(w2, w1, w1);
+ VpAsgn(w1, w2, 1);
+ }
+ n -= (SIGNED_VALUE)ss;
VpMult(w2, y, w1);
VpAsgn(y, w2, 1);
}
@@ -4768,19 +5823,19 @@ out_loop1:
}
Exit:
-#ifdef _DEBUG
+#ifdef BIGDECIMAL_DEBUG
if(gfDebug) {
VPrint(stdout, "VpPower y=%\n", y);
VPrint(stdout, "VpPower x=%\n", x);
printf(" n=%d\n", n);
}
-#endif /* _DEBUG */
+#endif /* BIGDECIMAL_DEBUG */
VpFree(w2);
VpFree(w1);
return 1;
}
-#ifdef _DEBUG
+#ifdef BIGDECIMAL_DEBUG
int
VpVarCheck(Real * v)
/*
@@ -4792,28 +5847,28 @@ VpVarCheck(Real * v)
* other ... error
*/
{
- U_LONG i;
+ size_t i;
if(v->MaxPrec <= 0) {
- printf("ERROR(VpVarCheck): Illegal Max. Precision(=%lu)\n",
+ printf("ERROR(VpVarCheck): Illegal Max. Precision(=%"PRIuSIZE")\n",
v->MaxPrec);
return 1;
}
if((v->Prec <= 0) ||((v->Prec) >(v->MaxPrec))) {
- printf("ERROR(VpVarCheck): Illegal Precision(=%lu)\n", v->Prec);
- printf(" Max. Prec.=%lu\n", v->MaxPrec);
+ printf("ERROR(VpVarCheck): Illegal Precision(=%"PRIuSIZE")\n", v->Prec);
+ printf(" Max. Prec.=%"PRIuSIZE"\n", v->MaxPrec);
return 2;
}
for(i = 0; i < v->Prec; ++i) {
if((v->frac[i] >= BASE)) {
printf("ERROR(VpVarCheck): Illegal fraction\n");
- printf(" Frac[%ld]=%lu\n", i, v->frac[i]);
- printf(" Prec. =%lu\n", v->Prec);
- printf(" Exp. =%d\n", v->exponent);
+ printf(" Frac[%"PRIuSIZE"]=%lu\n", i, v->frac[i]);
+ printf(" Prec. =%"PRIuSIZE"\n", v->Prec);
+ printf(" Exp. =%"PRIdVALUE"\n", v->exponent);
printf(" BASE =%lu\n", BASE);
return 3;
}
}
return 0;
}
-#endif /* _DEBUG */
+#endif /* BIGDECIMAL_DEBUG */
diff --git a/ext/bigdecimal/bigdecimal.def b/ext/bigdecimal/bigdecimal.def
deleted file mode 100644
index 8450e164e6..0000000000
--- a/ext/bigdecimal/bigdecimal.def
+++ /dev/null
@@ -1,2 +0,0 @@
-EXPORTS
-Init_bigdecimal
diff --git a/ext/bigdecimal/bigdecimal.gemspec b/ext/bigdecimal/bigdecimal.gemspec
new file mode 100644
index 0000000000..c8bd0aef18
--- /dev/null
+++ b/ext/bigdecimal/bigdecimal.gemspec
@@ -0,0 +1,30 @@
+# -*- ruby -*-
+_VERSION = "1.1.0"
+
+Gem::Specification.new do |s|
+ s.name = "bigdecimal"
+ s.version = _VERSION
+ s.date = "2011-07-30"
+ s.summary = "Arbitrary-precision decimal floating-point number library."
+ s.email = "mrkn@mrkn.jp"
+ s.description = "This library provides arbitrary-precision decimal floating-point number class."
+ s.authors = ["Kenta Murata", "Shigeo Kobayashi"]
+ s.require_path = %[.]
+ s.files = %w[
+ bigdecimal.gemspec
+ bigdecimal.c
+ bigdecimal.h
+ README
+ depend extconf.rb
+ lib/bigdecimal/jacobian.rb
+ lib/bigdecimal/lcdcmp.rb
+ lib/bigdecimal/math.rb
+ lib/bigdecimal/newton.rb
+ lib/bigdecimal/util.rb
+ lib/bigdecimal/version.rb
+ sample/linear.rb
+ sample/nlsolve.rb
+ sample/pi.rb
+ ]
+ s.extensions = %w[extconf.rb]
+end
diff --git a/ext/bigdecimal/bigdecimal.h b/ext/bigdecimal/bigdecimal.h
index a30a08e615..d6a3f337c6 100644
--- a/ext/bigdecimal/bigdecimal.h
+++ b/ext/bigdecimal/bigdecimal.h
@@ -1,25 +1,77 @@
/*
*
- * Ruby BigDecimal(Variable decimal precision) extension library.
+ * Ruby BigDecimal(Variable decimal precision) extension library.
*
- * Copyright(C) 2002 by Shigeo Kobayashi(shigeo@tinyforest.gr.jp)
+ * Copyright(C) 2002 by Shigeo Kobayashi(shigeo@tinyforest.gr.jp)
*
- * You may distribute under the terms of either the GNU General Public
- * License or the Artistic License, as specified in the README file
- * of this BigDecimal distribution.
+ * You may distribute under the terms of either the GNU General Public
+ * License or the Artistic License, as specified in the README file
+ * of this BigDecimal distribution.
*
* NOTES:
* 2003-03-28 V1.0 checked in.
*
*/
-#ifndef ____BIG_DECIMAL__H____
-#define ____BIG_DECIMAL__H____
+#ifndef RUBY_BIG_DECIMAL_H
+#define RUBY_BIG_DECIMAL_H 1
+
+#include "ruby/ruby.h"
+#include <float.h>
#if defined(__cplusplus)
extern "C" {
#endif
+#ifndef HAVE_LABS
+static inline long
+labs(long const x)
+{
+ if (x < 0) return -x;
+ return x;
+}
+#endif
+
+#ifndef HAVE_LLABS
+static inline LONG_LONG
+llabs(LONG_LONG const x)
+{
+ if (x < 0) return -x;
+ return x;
+}
+#endif
+
+#ifdef vabs
+# undef vabs
+#endif
+#if SIZEOF_VALUE <= SIZEOF_INT
+# define vabs abs
+#elif SIZEOF_VALUE <= SIZEOF_LONG
+# define vabs labs
+#elif SIZEOF_VALUE <= SIZEOF_LONG_LONG
+# define vabs llabs
+#endif
+
+extern VALUE rb_cBigDecimal;
+
+#if 0 || SIZEOF_BDIGITS >= 16
+# define RMPD_COMPONENT_FIGURES 38
+# define RMPD_BASE ((BDIGIT)100000000000000000000000000000000000000U)
+#elif SIZEOF_BDIGITS >= 8
+# define RMPD_COMPONENT_FIGURES 19
+# define RMPD_BASE ((BDIGIT)10000000000000000000U)
+#elif SIZEOF_BDIGITS >= 4
+# define RMPD_COMPONENT_FIGURES 9
+# define RMPD_BASE ((BDIGIT)1000000000U)
+#elif SIZEOF_BDIGITS >= 2
+# define RMPD_COMPONENT_FIGURES 4
+# define RMPD_BASE ((BDIGIT)10000U)
+#else
+# define RMPD_COMPONENT_FIGURES 2
+# define RMPD_BASE ((BDIGIT)100U)
+#endif
+
+
/*
* NaN & Infinity
*/
@@ -29,15 +81,10 @@ extern "C" {
#define SZ_NINF "-Infinity"
/*
- * #define VP_EXPORT other than static to let VP_ routines
+ * #define VP_EXPORT other than static to let VP_ routines
* be called from outside of this module.
*/
-#define VP_EXPORT static
-
-#define U_LONG unsigned long
-#define S_LONG long
-#define U_INT unsigned int
-#define S_INT int
+#define VP_EXPORT static
/* Exception codes */
#define VP_EXCEPTION_ALL ((unsigned short)0x00FF)
@@ -51,6 +98,8 @@ extern "C" {
#define VP_EXCEPTION_OP ((unsigned short)0x0020)
#define VP_EXCEPTION_MEMORY ((unsigned short)0x0040)
+#define RMPD_EXCEPTION_MODE_DEFAULT 0U
+
/* Computation mode */
#define VP_ROUND_MODE ((unsigned short)0x0100)
#define VP_ROUND_UP 1
@@ -61,6 +110,8 @@ extern "C" {
#define VP_ROUND_FLOOR 6
#define VP_ROUND_HALF_EVEN 7
+#define RMPD_ROUNDING_MODE_DEFAULT VP_ROUND_HALF_UP
+
#define VP_SIGN_NaN 0 /* NaN */
#define VP_SIGN_POSITIVE_ZERO 1 /* Positive zero */
#define VP_SIGN_NEGATIVE_ZERO -1 /* Negative zero */
@@ -75,13 +126,13 @@ extern "C" {
*/
typedef struct {
VALUE obj; /* Back pointer(VALUE) for Ruby object. */
- U_LONG MaxPrec; /* Maximum precision size */
+ size_t MaxPrec; /* Maximum precision size */
/* This is the actual size of pfrac[] */
/*(frac[0] to frac[MaxPrec] are available). */
- U_LONG Prec; /* Current precision size. */
+ size_t Prec; /* Current precision size. */
/* This indicates how much the. */
/* the array frac[] is actually used. */
- S_INT exponent;/* Exponent part. */
+ SIGNED_VALUE exponent; /* Exponent part. */
short sign; /* Attributes of the value. */
/*
* ==0 : NaN
@@ -93,23 +144,30 @@ typedef struct {
* -3 : Negative infinite number
*/
short flag; /* Not used in vp_routines,space for user. */
- U_LONG frac[1]; /* Pointer to array of fraction part. */
+ BDIGIT frac[1]; /* Pointer to array of fraction part. */
} Real;
-/*
+/*
* ------------------
* EXPORTables.
* ------------------
*/
VP_EXPORT Real *
-VpNewRbClass(U_LONG mx,char *str,VALUE klass);
+VpNewRbClass(size_t mx, char const *str, VALUE klass);
-VP_EXPORT Real *VpCreateRbObject(U_LONG mx,const char *str);
+VP_EXPORT Real *VpCreateRbObject(size_t mx,const char *str);
-VP_EXPORT U_LONG VpBaseFig(void);
-VP_EXPORT U_LONG VpDblFig(void);
-VP_EXPORT U_LONG VpBaseVal(void);
+static inline BDIGIT
+rmpd_base_value(void) { return RMPD_BASE; }
+static inline size_t
+rmpd_component_figures(void) { return RMPD_COMPONENT_FIGURES; }
+static inline size_t
+rmpd_double_figures(void) { return 1+DBL_DIG; }
+
+#define VpBaseFig() rmpd_component_figures()
+#define VpDblFig() rmpd_double_figures()
+#define VpBaseVal() rmpd_base_value()
/* Zero,Inf,NaN (isinf(),isnan() used to check) */
VP_EXPORT double VpGetDoubleNaN(void);
@@ -118,50 +176,50 @@ VP_EXPORT double VpGetDoubleNegInf(void);
VP_EXPORT double VpGetDoubleNegZero(void);
/* These 2 functions added at v1.1.7 */
-VP_EXPORT U_LONG VpGetPrecLimit(void);
-VP_EXPORT U_LONG VpSetPrecLimit(U_LONG n);
+VP_EXPORT size_t VpGetPrecLimit(void);
+VP_EXPORT size_t VpSetPrecLimit(size_t n);
/* Round mode */
-VP_EXPORT int VpIsRoundMode(unsigned long n);
-VP_EXPORT unsigned long VpGetRoundMode(void);
-VP_EXPORT unsigned long VpSetRoundMode(unsigned long n);
+VP_EXPORT int VpIsRoundMode(unsigned short n);
+VP_EXPORT unsigned short VpGetRoundMode(void);
+VP_EXPORT unsigned short VpSetRoundMode(unsigned short n);
VP_EXPORT int VpException(unsigned short f,const char *str,int always);
#if 0 /* unused */
VP_EXPORT int VpIsNegDoubleZero(double v);
#endif
-VP_EXPORT U_LONG VpNumOfChars(Real *vp,const char *pszFmt);
-VP_EXPORT U_LONG VpInit(U_LONG BaseVal);
-VP_EXPORT void *VpMemAlloc(U_LONG mb);
+VP_EXPORT size_t VpNumOfChars(Real *vp,const char *pszFmt);
+VP_EXPORT size_t VpInit(BDIGIT BaseVal);
+VP_EXPORT void *VpMemAlloc(size_t mb);
VP_EXPORT void VpFree(Real *pv);
-VP_EXPORT Real *VpAlloc(U_LONG mx, const char *szVal);
-VP_EXPORT int VpAsgn(Real *c,Real *a,int isw);
-VP_EXPORT int VpAddSub(Real *c,Real *a,Real *b,int operation);
-VP_EXPORT int VpMult(Real *c,Real *a,Real *b);
-VP_EXPORT int VpDivd(Real *c,Real *r,Real *a,Real *b);
+VP_EXPORT Real *VpAlloc(size_t mx, const char *szVal);
+VP_EXPORT size_t VpAsgn(Real *c, Real *a, int isw);
+VP_EXPORT size_t VpAddSub(Real *c,Real *a,Real *b,int operation);
+VP_EXPORT size_t VpMult(Real *c,Real *a,Real *b);
+VP_EXPORT size_t VpDivd(Real *c,Real *r,Real *a,Real *b);
VP_EXPORT int VpComp(Real *a,Real *b);
-VP_EXPORT S_LONG VpExponent10(Real *a);
+VP_EXPORT ssize_t VpExponent10(Real *a);
VP_EXPORT void VpSzMantissa(Real *a,char *psz);
VP_EXPORT int VpToSpecialString(Real *a,char *psz,int fPlus);
-VP_EXPORT void VpToString(Real *a,char *psz,int fFmt,int fPlus);
-VP_EXPORT void VpToFString(Real *a,char *psz,int fFmt,int fPlus);
-VP_EXPORT int VpCtoV(Real *a,const char *int_chr,U_LONG ni,const char *frac,U_LONG nf,const char *exp_chr,U_LONG ne);
-VP_EXPORT int VpVtoD(double *d,S_LONG *e,Real *m);
+VP_EXPORT void VpToString(Real *a, char *psz, size_t fFmt, int fPlus);
+VP_EXPORT void VpToFString(Real *a, char *psz, size_t fFmt, int fPlus);
+VP_EXPORT int VpCtoV(Real *a, const char *int_chr, size_t ni, const char *frac, size_t nf, const char *exp_chr, size_t ne);
+VP_EXPORT int VpVtoD(double *d, SIGNED_VALUE *e, Real *m);
VP_EXPORT void VpDtoV(Real *m,double d);
#if 0 /* unused */
VP_EXPORT void VpItoV(Real *m,S_INT ival);
#endif
VP_EXPORT int VpSqrt(Real *y,Real *x);
-VP_EXPORT int VpActiveRound(Real *y,Real *x,int f,int il);
-VP_EXPORT int VpMidRound(Real *y, int f, int nf);
-VP_EXPORT int VpLeftRound(Real *y, int f, int nf);
-VP_EXPORT void VpFrac(Real *y,Real *x);
-VP_EXPORT int VpPower(Real *y,Real *x,S_INT n);
+VP_EXPORT int VpActiveRound(Real *y, Real *x, unsigned short f, ssize_t il);
+VP_EXPORT int VpMidRound(Real *y, unsigned short f, ssize_t nf);
+VP_EXPORT int VpLeftRound(Real *y, unsigned short f, ssize_t nf);
+VP_EXPORT void VpFrac(Real *y, Real *x);
+VP_EXPORT int VpPower(Real *y, Real *x, SIGNED_VALUE n);
/* VP constants */
VP_EXPORT Real *VpOne(void);
-/*
+/*
* ------------------
* MACRO definitions.
* ------------------
@@ -179,12 +237,12 @@ VP_EXPORT Real *VpOne(void);
/* VpGetSign(a) returns 1,-1 if a>0,a<0 respectively */
#define VpGetSign(a) (((a)->sign>0)?1:(-1))
/* Change sign of a to a>0,a<0 if s = 1,-1 respectively */
-#define VpChangeSign(a,s) {if((s)>0) (a)->sign=(short)Abs((S_LONG)(a)->sign);else (a)->sign=-(short)Abs((S_LONG)(a)->sign);}
+#define VpChangeSign(a,s) {if((s)>0) (a)->sign=(short)Abs((ssize_t)(a)->sign);else (a)->sign=-(short)Abs((ssize_t)(a)->sign);}
/* Sets sign of a to a>0,a<0 if s = 1,-1 respectively */
#define VpSetSign(a,s) {if((s)>0) (a)->sign=(short)VP_SIGN_POSITIVE_FINITE;else (a)->sign=(short)VP_SIGN_NEGATIVE_FINITE;}
/* 1 */
-#define VpSetOne(a) {(a)->frac[0]=(a)->exponent=(a)->Prec=1;(a)->sign=VP_SIGN_POSITIVE_FINITE;}
+#define VpSetOne(a) {(a)->Prec=(a)->exponent=(a)->frac[0]=1;(a)->sign=VP_SIGN_POSITIVE_FINITE;}
/* ZEROs */
#define VpIsPosZero(a) ((a)->sign==VP_SIGN_POSITIVE_ZERO)
@@ -209,12 +267,12 @@ VP_EXPORT Real *VpOne(void);
#define VpHasVal(a) (a->frac[0])
#define VpIsOne(a) ((a->Prec==1)&&(a->frac[0]==1)&&(a->exponent==1))
#define VpExponent(a) (a->exponent)
-#ifdef _DEBUG
+#ifdef BIGDECIMAL_DEBUG
int VpVarCheck(Real * v);
-VP_EXPORT int VPrint(FILE *fp,char *cntl_chr,Real *a);
-#endif /* _DEBUG */
+VP_EXPORT int VPrint(FILE *fp,const char *cntl_chr,Real *a);
+#endif /* BIGDECIMAL_DEBUG */
#if defined(__cplusplus)
} /* extern "C" { */
#endif
-#endif /* ____BIG_DECIMAL__H____ */
+#endif /* RUBY_BIG_DECIMAL_H */
diff --git a/ext/bigdecimal/bigdecimal_en.html b/ext/bigdecimal/bigdecimal_en.html
index c2b86faef6..afaf8eca86 100644
--- a/ext/bigdecimal/bigdecimal_en.html
+++ b/ext/bigdecimal/bigdecimal_en.html
@@ -1,4 +1,3 @@
-<!-- saved from url=(0022)http://internet.e-mail -->
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html">
@@ -32,18 +31,18 @@ pre
<BODY BGCOLOR=#FFFFE0>
<H1>BigDecimal(Variable Precision Floating Library for Ruby)</H1>
<DIV align="right"><A HREF="./bigdecimal_ja.html">Japanese</A></DIV><BR>
-BigDecimal is an extension library for the Ruby interpreter.
-Using BigDecimal class, you can obtain any number of significant digits in computation.
+BigDecimal is an extension library for the Ruby interpreter.
+Using BigDecimal class, you can obtain any number of significant digits in computation.
For the details about Ruby see:<BR>
<UL>
<LI><A HREF="http://www.ruby-lang.org/en/">http://www.ruby-lang.org/en/</A>:Official Ruby page(English).</LI>
<LI><A HREF="http://kahori.com/ruby/ring/">http://kahori.com/ruby/ring/</A>:Mutually linked pages relating to Ruby(Japanese).
</LI>
-</UL>
+</UL>
NOTE:<BR>
This software is provided "AS IS" and without any express or
implied warranties,including,without limitation,the implied
- warranties of merchantibility and fitness for a particular
+ warranties of merchantability and fitness for a particular
purpose. For the details,see COPYING and README included in this
distribution.
<BR>
@@ -63,15 +62,15 @@ NOTE:<BR>
<A NAME="#INTRO">
<H2>Introduction</H2>
Ruby already has builtin (variable length integer number) class Bignum. Using Bignum class,you can obtain
- any integer value in magnitude. But, variable length decimal number class is not yet built in.
+ any integer value in magnitude. But, variable length decimal number class is not yet built in.
This is why I made variable length floating class BigDecimal.
Feel free to send any comments or bug reports to me.
<A HREF="mailto:shigeo@tinyforest.gr.jp">shigeo@tinyforest.gr.jp</A>
-I will try(but can't promise) to fix bugs reported.
+I will try(but can't promise) to fix bugs reported.
<hr>
<H2>Installation</H2>
The Ruby latest version can be downloaded from <A HREF="http://www.ruby-lang.org/en/">Official Ruby page</A>.
-Once decompress the downloaded Ruby archive,follow the normal installation procedures according to the
+Once decompress the downloaded Ruby archive,follow the normal installation procedures according to the
documents included.
<A NAME="#SPEC">
@@ -90,7 +89,7 @@ to create BigDecimal objects,the program would like:<BR>
In 32 bits integer system,every 4 digits(in decimal) are computed simultaneously.
This means the number of significant digits in BigDecimal is always a multiple of 4.
<P>
-Some more methods are available in Ruby code (not C code).
+Some more methods are available in Ruby code (not C code).
Functions such as sin,cos ...,are in math.rb in bigdecimal directory.
To use them,require math.rb as:
<CODE><PRE>
@@ -111,11 +110,11 @@ For details,see the util.rb code.
a=BigDecimal::new(s[,n]) or<BR>
a=BigDecimal(s[,n]) or<BR>
where:<BR>
-s: Initial value string. Spaces will be ignored. Any unrecognizable character for
+s: Initial value string. Spaces will be ignored. Any unrecognizable character for
representing initial value terminates the string.<BR>
n: Maximum number of significant digits of a. n must be a Fixnum object.
If n is omitted or is equal to 0,then the maximum number of significant digits of a is determined from the length of s.
-Actual number of digits handled in computations are usually gretaer than n.<BR>
+Actual number of digits handled in computations are usually greater than n.<BR>
n is useful when performing divisions like
<CODE><PRE>
BigDecimal("1") / BigDecimal("3") # => 0.3333333333 33E0
@@ -141,13 +140,13 @@ f = BigDecimal::mode(BigDecimal::EXCEPTION_ZERODIVIDE,flag)<BR>
f = BigDecimal::mode(BigDecimal::EXCEPTION_ALL,flag)<BR>
</BLOCKQUOTE>
EXCEPTION_NaN controls the execution when computation results to NaN.<BR>
-EXCEPTION_INFINITY controls the execution when computation results to Infinity(}Infinity).<BR>
+EXCEPTION_INFINITY controls the execution when computation results to Infinity.<BR>
EXCEPTION_UNDERFLOW controls the execution when computation underflows.<BR>
EXCEPTION_OVERFLOW controls the execution when computation overflows.<BR>
-EXCEPTION_ZERODIVIDE controls the execution when zero-division occures.<BR>
-EXCEPTION_ALL controls the execution for any exception defined occures.<BR>
+EXCEPTION_ZERODIVIDE controls the execution when zero-division occurs.<BR>
+EXCEPTION_ALL controls the execution when any defined exception occurs.<BR>
If the flag is true,then the relating exception is thrown.<BR>
-No exception is thrown when the flag is false(default) and computation
+No exception is thrown when the flag is false(default) and computation
continues with the result:<BR>
<BLOCKQUOTE>
EXCEPTION_NaN results to NaN<BR>
@@ -160,7 +159,7 @@ EXCEPTION_INFINITY,EXCEPTION_OVERFLOW, and EXCEPTION_ZERODIVIDE are
currently the same.<BR>
The return value of mode method is the value set.<BR>
If nil is specified for the second argument,then current setting is returned.<BR>
-Suppose the return value of the mode method is f,then
+Suppose the return value of the mode method is f,then
f &amp; BigDecimal::EXCEPTION_NaN !=0 means EXCEPTION_NaN is set to on.
<P>
<B>[ROUND error control]</B><P>
@@ -181,12 +180,12 @@ where flag must be one of:
</TABLE>
New rounding mode is returned. If nil is specified for the second argument,then current setting is returned.<BR>
The digit location for rounding operation can not be specified by this mode method,
-use truncate/round/ceil/floor/add/sub/mult/div mthods for each instance instead.
+use truncate/round/ceil/floor/add/sub/mult/div methods for each instance instead.
</BLOCKQUOTE>
<LI><B>limit[(n)]</B></LI><BLOCKQUOTE>
Limits the maximum digits that the newly created BigDecimal objects can hold never exceed n.
-This means the rounding operation specified by BigDecimal.mode is
+This means the rounding operation specified by BigDecimal.mode is
performed if necessary.
limit returns the value before set if n is nil or is not specified.
Zero,the default value,means no upper limit.<BR>
@@ -195,7 +194,7 @@ mf = BigDecimal::limit(n)<BR>
</BLOCKQUOTE>
<LI><B>double_fig</B></LI><BLOCKQUOTE>
-double_fig is a class method which returns the number of digits
+double_fig is a class method which returns the number of digits
the Float class can have.
<CODE><PRE>
p BigDecimal::double_fig # ==> 20 (depends on the CPU etc.)
@@ -291,7 +290,7 @@ returns the maximum integer value (in BigDecimal) which is less than or equal to
c = BigDecimal("-1.23456").floor # ==> -2
</PRE></CODE>
-As shown in the following example,an optional integer argument (n) specifying the position
+As shown in the following example,an optional integer argument (n) specifying the position
of the target digit can be given.<BR>
If n> 0,then the (n+1)th digit counted from the decimal point in fraction part is processed(resulting number of fraction part digits is less than or equal to n).<BR>
If n<0,then the n-th digit counted from the decimal point in integer part is processed(at least n 0's are placed from the decimal point to left).
@@ -309,7 +308,7 @@ returns the minimum integer value (in BigDecimal) which is greater than or equal
c = BigDecimal("-1.23456").ceil # ==> -1
</PRE></CODE>
-As shown in the following example,an optional integer argument (n) specifying the position
+As shown in the following example,an optional integer argument (n) specifying the position
of the target digit can be given.<BR>
If n>0,then the (n+1)th digit counted from the decimal point in fraction part is processed(resulting number of fraction part digits is less than or equal to n).<BR>
If n<0,then the n-th digit counted from the decimal point in integer part is processed(at least n 0's are placed from the decimal point to left).
@@ -321,14 +320,14 @@ If n<0,then the n-th digit counted from the decimal point in integer part is pro
</BLOCKQUOTE>
<LI><B>round[(n[,b])]</B></LI><BLOCKQUOTE>
c = a.round<BR>
-round a to the nearest 1(default)D<BR>
+round a to the nearest 1(default)Ã…D<BR>
<CODE><PRE>
c = BigDecimal("1.23456").round # ==> 1
c = BigDecimal("-1.23456").round # ==> -1
</PRE></CODE>
The rounding operation changes according to BigDecimal::mode(BigDecimal::ROUND_MODE,flag) if specified.
-As shown in the following example,an optional integer argument (n) specifying the position
+As shown in the following example,an optional integer argument (n) specifying the position
of the target digit can be given.<BR>
If n>0,then the (n+1)th digit counted from the decimal point in fraction part is processed(resulting number of fraction part digits is less than or equal to n).<BR>
If n<0,then the n-th digit counted from the decimal point in integer part is processed(at least n 0's are placed from the decimal point to left).
@@ -346,8 +345,8 @@ c = BigDecimal::new("1.23356").round(3,BigDecimal::ROUND_HALF_EVEN) # ==> 1.2
</BLOCKQUOTE>
<LI><B>truncate[(n)]</B></LI><BLOCKQUOTE>
c = a.truncate<BR>
-truncate a to the nearest 1D<BR>
-As shown in the following example,an optional integer argument (n) specifying the position
+truncate a to the nearest 1Ã…D<BR>
+As shown in the following example,an optional integer argument (n) specifying the position
of the target digit can be given.<BR>
If n>0,then the (n+1)th digit counted from the decimal point in fraction part is processed(resulting number of fraction part digits is less than or equal to n).<BR>
If n<0,then the n-th digit counted from the decimal point in integer part is processed(at least n 0's are placed from the decimal point to left).
@@ -374,7 +373,7 @@ converts to string(default results look like "0.xxxxxEn").
<CODE><PRE>
BigDecimal("1.23456").to_s # ==> "0.123456E1"
</PRE></CODE>
-If n(>0) is given,then a space is inserted to each of two parts divided by the decimal point
+If n(>0) is given,then a space is inserted to each of two parts divided by the decimal point
after every n digits for readability.
<CODE><PRE>
BigDecimal("0.1234567890123456789").to_s(10) # ==> "0.1234567890 123456789E0"
@@ -391,7 +390,7 @@ BigDecimal("0.1234567890123456789").to_s("+10") # ==> "+0.1234567890 123456789E
BigDecimal("-0.1234567890123456789").to_s("10") # ==> "-0.1234567890 123456789E0"
</PRE></CODE>
-At the end of the string,'E'(or 'e') or 'F'(or 'f') can be specified to change
+At the end of the string,'E'(or 'e') or 'F'(or 'f') can be specified to change
number representation.
<CODE><PRE>
BigDecimal("1234567890.123456789").to_s("E") # ==> "0.1234567890123456789E10"
@@ -409,7 +408,7 @@ means a = 0.xxxxxxx*10**n.
<LI><B>precs</B></LI><BLOCKQUOTE>
n,m = a.precs <BR>
-prec returns number of significant digits (n) and maximum number of
+precs returns number of significant digits (n) and maximum number of
significant digits (m) of a.
</BLOCKQUOTE>
@@ -439,11 +438,11 @@ a.nan? returns True when a is NaN.
</BLOCKQUOTE>
<LI><B>infinite?</B></LI><BLOCKQUOTE>
-a.infinite? returns 1 when a is +‡,-1 when a is -‡, nil otherwise.
+a.infinite? returns 1 when a is Infinity, -1 when a is -Infinity, nil otherwise.
</BLOCKQUOTE>
<LI><B>finite?</B></LI><BLOCKQUOTE>
-a.finite? returns true when a is neither ‡ nor NaN.
+a.finite? returns true when a is neither Infinity nor NaN.
</BLOCKQUOTE>
<LI><B>zero?</B></LI><BLOCKQUOTE>
@@ -474,7 +473,7 @@ p a=BigDecimal::new("3.14",10)<BR>
should produce output like "#&lt;0x112344:'0.314E1',4(12)%gt;".
where "0x112344" is the address,
'0.314E1' is the value,4 is the number of the significant digits,
-and 12 is the maximum number of the significant digits
+and 12 is the maximum number of the significant digits
the object can hold.
</BLOCKQUOTE>
@@ -526,14 +525,14 @@ same as ==,used in case statement.
<DT> 1.Both A and B are BigDecimal objects</DT>
<DD> A op B is normally performed.</DD>
<DT> 2.A is the BigDecimal object but B is other than BigDecimal object</DT>
-<DD> Operation is performed,after B is translated to correcponding BigDecimal object(because BigDecimal supports coerce method).</DD>
+<DD> Operation is performed,after B is translated to corresponding BigDecimal object(because BigDecimal supports coerce method).</DD>
<DT> 3.A is not the BigDecimal object but B is BigDecimal object</DT>
-<DD>If A has coerce mthod,then B will translate A to corresponding
+<DD>If A has coerce method,then B will translate A to corresponding
BigDecimal object and the operation is performed,otherwise an error occures.</DD>
</DL>
String is not translated to BigDecimal in default.
-Uncomment /* #define ENABLE_NUMERIC_STRING */ in bigdecimal.c, compile and install
+Uncomment /* #define ENABLE_NUMERIC_STRING */ in bigdecimal.c, compile and install
again if you want to enable string to BigDecimal conversion.
Translation stops without error at the character representing non digit.
For instance,"10XX" is translated to 10,"XXXX" is translated to 0.<BR>
@@ -564,7 +563,7 @@ and define coerce method within the new class.<BR>
Infinite numbers and NaN can be represented by string writing "+Infinity"(or "Infinity"),"-Infinity",and "NaN" respectively in your program.
Infinite numbers can be obtained by 1.0/0.0(=Infinity) or -1.0/0.0(=-Infinity).
<BR><BR>
-NaN(Not a number) can be obtained by undefined computation like 0.0/0.0
+NaN(Not a number) can be obtained by undefined computation like 0.0/0.0
or Infinity-Infinity.
Any computation including NaN results to NaN.
Comparisons with NaN never become true,including comparison with NaN itself.
@@ -573,7 +572,7 @@ Zero has two different variations as +0.0 and -0.0.
But,still, +0.0==-0.0 is true.
<BR><BR>
Computation results including Infinity,NaN,+0.0 or -0.0 become complicated.
-Run following program and comfirm the results.
+Run following program and confirm the results.
Send me any incorrect result if you find.
<CODE><PRE>
@@ -603,12 +602,9 @@ where 'x' is any digit representing mantissa(kept in the array frac[]),
BASE is base value(=10000 in 32 bit integer system),
and n is the exponent value.<BR>
Larger BASE value enables smaller size of the array frac[],and increases computation speed.
-The value of BASE is defined ind VpInit(). In 32 bit integer system,this value is
-10000. In 64 bit integer system,the value becomes larger.
-BigDecimal has not yet been compiled and tested on 64 bit integer system.
-It will be very nice if anyone try to run BigDecimal on 64 bit system and
- inform me the results.
-When BASE is 10000,an element of the array frac[] can have vale of from 0 to 9999.
+The value of BASE is defined ind VpInit(). In 32 bit integer system, this value is
+10000. In 64 bit integer system, the value is 1000000000.
+When BASE is 10000,an element of the array frac[] can have value of from 0 to 9999.
(up to 4 digits).<BR>
The structure Real is defined in bigdecimal.h as:<BR>
<CODE><PRE>
@@ -626,7 +622,7 @@ The structure Real is defined in bigdecimal.h as:<BR>
/* -3 : -Infinity */
unsigned short flag; /* Control flag */
int exponent; /* Exponent value(0.xxxx*BASE**exponent) */
- unsigned long frac[1]; /* An araay holding mantissa(Variable) */
+ unsigned long frac[1]; /* An array holding mantissa(Variable) */
} Real;
</CODE></PRE>
The decimal value 1234.56784321 is represented as(BASE=10000):<BR>
@@ -634,7 +630,7 @@ The decimal value 1234.56784321 is represented as(BASE=10000):<BR>
0.1234 5678 4321*(10000)**1
</PRE>
where frac[0]=1234,frac[1]=5678,frac[2]=4321,
-Prec=3,sign=2,exponent=1. MaxPrec can be any value greater than or equal to
+Prec=3,sign=2,exponent=1. MaxPrec can be any value greater than or equal to
Prec.
<hr>
@@ -661,29 +657,29 @@ The reason why I adopted decimal number representation for BigDecimal is:<BR>
end
</PRE></CODE>
-If the internal representation is binary,translation from decimal to
+If the internal representation is binary,translation from decimal to
binary is required and the translation error is inevitable.
For example, 0.1 can not exactly be represented in binary.<BR>
0.1 => b1*2**(-1)+b1*2**(-2)+b3*2**(-3)+b4*2**(-4)....<BR>
where b1=0,b2=0,b3=0,b4=1...<BR>
bn(n=1,2,3,...) is infinite series of digit with value of 0 or 1,
and rounding operation is necessary but where we should round the series ?
-Of cource,exact "0.1" is printed if the rouding operation is properly done,
+Of course, exact "0.1" is printed if the rounding operation is properly done,
<DT>Significant digit we can have is automatically determined
<DD>In binary representation,0.1 can not be represented in finite series of digit.
But we only need one element(frac[0]=1) in decimal representation.
-This means that we can always determine the size of the array frac[] in Real
+This means that we can always determine the size of the array frac[] in Real
structure.
</DL>
<H3>Disadvantage of decimal representation</H3>
-Because most computers have no internal decimal representaion.
+Because most computers have no internal decimal representation.
Once you use BigDecimal,you need to keep using it without
considering computation cost if exact computation is required.
<H4>Which is the first input?</H4>
-Because most people uses decimal notatin for numeric data representation,
+Because most people uses decimal notation for numeric data representation,
BigDecimal can handle numeric data without loss of translation error.
<hr>
@@ -693,23 +689,23 @@ For the fundamental arithmetics such as addition,subtraction,
multiplication,and division,I prepared 2 group of methods<BR>
<H3>1. +,-,*,/</H3>
-For the operation + - * /,you can not specify the resulting
+For the operation + - * /,you can not specify the resulting
number of significant digits.<BR>
Resulting number of significant digits are defined as:<BR>
-1.1 For *,resulting number of significant digits is the sum of the
-significant digits of both side of the operator. For / ,resulting number of significant digits is the sum of the
+1.1 For *,resulting number of significant digits is the sum of the
+significant digits of both side of the operator. For / ,resulting number of significant digits is the sum of the
maximum significant digits of both side of the operator.<BR>
1.2 For + and -,resulting number of significant digits is determined so that
no round operation is needed. <br>
-For example, c has more than 100 siginificant digits if c is computed as:<BR>
+For example, c has more than 100 significant digits if c is computed as:<BR>
c = 0.1+0.1*10**(-100)<br>
<BR>
As +,-,and * are always exact(no round operation is performed unless BigDecimal.limit is specified),
-which means more momories are required to keep computation results.
+which means more memory is required to keep computation results.
But,the division such as c=1.0/3.0 will always be rounded.<BR>
<H3>2. add,sub,mult,div</H3>
-The length of the significant digits obtained from +,-,*,/
+The length of the significant digits obtained from +,-,*,/
is always defined by that of right and left side of the operator.
To specify the length of the significant digits by your self,
use methos add,sub,mult,div.
@@ -728,8 +724,8 @@ decimal point.
<H3>4. Example</H3>
-Following example compute the ratio of the circumference of a circle to
-its dirmeter(pi=3.14159265358979....) using J.Machin's formula.
+Following example compute the ratio of the circumference of a circle to
+its diameter(pi=3.14159265358979....) using J.Machin's formula.
<BR><BR>
<CODE><PRE>
#!/usr/local/bin/ruby
@@ -750,7 +746,7 @@ def big_pi(sig) # sig: Number of significant figures
k = BigDecimal::new("1")
w = BigDecimal::new("1")
t = BigDecimal::new("-80")
- while (u.nonzero? && u.exponent >= exp)
+ while (u.nonzero? && u.exponent >= exp)
t = t*m25
u = t.div(k,sig)
pi = pi + u
diff --git a/ext/bigdecimal/bigdecimal_ja.html b/ext/bigdecimal/bigdecimal_ja.html
index 37bbcbbb09..cc44d61917 100644
--- a/ext/bigdecimal/bigdecimal_ja.html
+++ b/ext/bigdecimal/bigdecimal_ja.html
@@ -41,7 +41,7 @@ Ruby ‚ɂ‚¢‚Ä‚ÌÚ‚µ‚¢“à—e‚͈ȉº‚ÌURL‚ðŽQÆ‚µ‚Ä‚­‚¾‚³‚¢B
<UL>
<LI><A HREF="http://www.ruby-lang.org/ja/">http://www.ruby-lang.org/ja/</A>FRubyŒöŽ®ƒy[ƒW</LI>
<LI><A HREF="http://kahori.com/ruby/ring/">http://kahori.com/ruby/ring/</A>FRuby‚ÉŠÖ‚·‚éƒy[ƒW‚ð’H‚ê‚Ü‚·</LI>
-</UL>
+</UL>
<hr>
<H2>–ÚŽŸ</H2>
<UL>
@@ -73,8 +73,8 @@ Ruby ‚É‚Í Bignum ‚Æ‚¢‚¤ƒNƒ‰ƒX‚ª‚ ‚èA”•SŒ…‚Ì®”‚Å‚àŒvŽZ‚·‚邱‚Æ‚ª‚Å‚«‚Ü‚·B
BigDecimal ‚ðŠÜ‚Þ Ruby ‚ÌÅV”Å‚Í<A HREF="http://www.ruby-lang.org/ja/">RubyŒöŽ®ƒy[ƒW</A>‚©‚çƒ_ƒEƒ“ƒ[ƒh‚Å‚«‚Ü‚·B
ƒ_ƒEƒ“ƒ[ƒh‚µ‚½ÅV”Å‚ð‰ð“€‚µ‚½‚çA’Êí‚̃Cƒ“ƒXƒg[ƒ‹Žè‡‚ðŽÀs‚µ‚ĉº‚³‚¢B
Ruby ‚ª³‚µ‚­ƒCƒ“ƒXƒg[ƒ‹‚³‚ê‚ê‚ÎA“¯Žž‚É BigDecimal ‚à—˜—p‚Å‚«‚邿‚¤‚ɂȂé‚Í‚¸‚Å‚·B
-ƒ\[ƒXƒtƒ@ƒCƒ‹‚Í
-bigdecimal.c,bigdecimal.h
+ƒ\[ƒXƒtƒ@ƒCƒ‹‚Í
+bigdecimal.c,bigdecimal.h
‚Ì‚QŒÂ‚݂̂ł·B<BR>
<hr>
@@ -332,7 +332,7 @@ n>=0 ‚È‚çA¬”“_ˆÈ‰º n+1 ˆÊ‚Ì”Žš‚ð‘€ì‚µ‚Ü‚·(­”“_ˆÈ‰º‚ðAÅ‘å n Œ…‚É‚µ‚Ü‚·)
<LI><B>round[(n[,b])]</B></LI><BLOCKQUOTE>
c = a.round<BR>
-ƒNƒ‰ƒXƒƒ\ƒbƒh BigDecimal::mode(BigDecimal::ROUND_MODE,flag) ‚ÅŽw’肵‚½
+ƒNƒ‰ƒXƒƒ\ƒbƒh BigDecimal::mode(BigDecimal::ROUND_MODE,flag) ‚ÅŽw’肵‚½
ROUND_MODE ‚É]‚Á‚ÄŠÛ‚ß‘€ì‚ðŽÀs‚µ‚Ü‚·B
BigDecimal::mode(BigDecimal::ROUND_MODE,flag) ‚ʼn½‚àŽw’肹‚¸A‚©‚ÂAˆø”
‚ðŽw’肵‚È‚¢ê‡‚Íu¬”“_ˆÈ‰º‘æˆêˆÊ‚Ì”‚ðŽlŽÌŒÜ“ü‚µ‚Ä®”iBigDecimal ’ljv‚É‚µ‚Ü‚·B<BR>
@@ -505,7 +505,7 @@ c = a.sqrt(n)<BR>
<LI><B>&lt=&gt</B></LI><BLOCKQUOTE>
a==b ‚È‚ç 0Aa &gt b ‚È‚ç 1Aa &lt b ‚È‚ç -1 ‚ɂȂè‚Ü‚·B<BR>
-c = a &lt=&gt b
+c = a &lt=&gt b
</BLOCKQUOTE>
</UL>
Œã‚ÍA“Ç‚ñ‚ÅŽš‚Ì”@‚­‚Å‚·B<BR>
@@ -753,7 +753,7 @@ def big_pi(sig) # sig: Number of significant figures
k = BigDecimal::new("1")
w = BigDecimal::new("1")
t = BigDecimal::new("-80")
- while (u.nonzero? && u.exponent >= exp)
+ while (u.nonzero? && u.exponent >= exp)
t = t*m25
u = t.div(k,sig)
pi = pi + u
diff --git a/ext/bigdecimal/extconf.rb b/ext/bigdecimal/extconf.rb
index 0c8b98e4a3..d6be3e584e 100644
--- a/ext/bigdecimal/extconf.rb
+++ b/ext/bigdecimal/extconf.rb
@@ -1,10 +1,6 @@
require 'mkmf'
-base_fig = 0
-src = "(BASE * (BASE+1)) / BASE == (BASE+1)"
-while try_static_assert(src, nil, "-DBASE=10#{'0'*base_fig}UL")
- base_fig += 1
-end
-$defs << "-DBASE=1#{'0'*base_fig}UL" << "-DBASE_FIG=#{base_fig}"
+have_func("labs", "stdlib.h")
+have_func("llabs", "stdlib.h")
create_makefile('bigdecimal')
diff --git a/ext/bigdecimal/lib/bigdecimal/jacobian.rb b/ext/bigdecimal/lib/bigdecimal/jacobian.rb
index 8c36ad14fc..8ab836259a 100644
--- a/ext/bigdecimal/lib/bigdecimal/jacobian.rb
+++ b/ext/bigdecimal/lib/bigdecimal/jacobian.rb
@@ -21,21 +21,23 @@
# fx is f.values(x).
#
module Jacobian
- #--
+ module_function
+
+ # Determines the equality of two numbers by comparing to zero, or using the epsilon value
def isEqual(a,b,zero=0.0,e=1.0e-8)
aa = a.abs
bb = b.abs
if aa == zero && bb == zero then
- true
+ true
else
- if ((a-b)/(aa+bb)).abs < e then
- true
- else
- false
- end
+ if ((a-b)/(aa+bb)).abs < e then
+ true
+ else
+ false
+ end
end
end
- #++
+
# Computes the derivative of f[i] at x[i].
# fx is the value of f at x.
@@ -52,17 +54,17 @@ module Jacobian
s = f.zero
deriv = []
if(nRetry>100) then
- raise "Singular Jacobian matrix. No change at x[" + i.to_s + "]"
+ raise "Singular Jacobian matrix. No change at x[" + i.to_s + "]"
end
dx = dx*f.two
x[i] += dx
fxNew = f.values(x)
for j in 0...n do
if !isEqual(fxNew[j],fx[j],f.zero,f.eps) then
- ok += 1
- deriv <<= (fxNew[j]-fx[j])/dx
+ ok += 1
+ deriv <<= (fxNew[j]-fx[j])/dx
else
- deriv <<= f.zero
+ deriv <<= f.zero
end
end
x[i] = xSave
@@ -77,7 +79,7 @@ module Jacobian
for i in 0...n do
df = dfdxi(f,fx,x,i)
for j in 0...n do
- dfdx[j*n+i] = df[j]
+ dfdx[j*n+i] = df[j]
end
end
dfdx
diff --git a/ext/bigdecimal/lib/bigdecimal/ludcmp.rb b/ext/bigdecimal/lib/bigdecimal/ludcmp.rb
index 176ed84caf..6cbe29b6da 100644
--- a/ext/bigdecimal/lib/bigdecimal/ludcmp.rb
+++ b/ext/bigdecimal/lib/bigdecimal/ludcmp.rb
@@ -1,7 +1,11 @@
+require 'bigdecimal'
+
#
# Solves a*x = b for x, using LU decomposition.
#
module LUSolve
+ module_function
+
# Performs LU decomposition of the n by n matrix a.
def ludecomp(a,n,zero=0,one=1)
prec = BigDecimal.limit(nil)
@@ -12,24 +16,24 @@ module LUSolve
nrmrow = zero
ixn = i*n
for j in 0...n do
- biggst = a[ixn+j].abs
- nrmrow = biggst if biggst>nrmrow
+ biggst = a[ixn+j].abs
+ nrmrow = biggst if biggst>nrmrow
end
if nrmrow>zero then
- scales <<= one.div(nrmrow,prec)
+ scales <<= one.div(nrmrow,prec)
else
- raise "Singular matrix"
+ raise "Singular matrix"
end
end
n1 = n - 1
for k in 0...n1 do # Gaussian elimination with partial pivoting.
biggst = zero;
for i in k...n do
- size = a[ps[i]*n+k].abs*scales[ps[i]]
- if size>biggst then
- biggst = size
- pividx = i
- end
+ size = a[ps[i]*n+k].abs*scales[ps[i]]
+ if size>biggst then
+ biggst = size
+ pividx = i
+ end
end
raise "Singular matrix" if biggst<=zero
if pividx!=k then
@@ -42,10 +46,10 @@ module LUSolve
psin = ps[i]*n
a[psin+k] = mult = a[psin+k].div(pivot,prec)
if mult!=zero then
- pskn = ps[k]*n
- for j in (k+1)...n do
- a[psin+j] -= mult.mult(a[pskn+j],prec)
- end
+ pskn = ps[k]*n
+ for j in (k+1)...n do
+ a[psin+j] -= mult.mult(a[pskn+j],prec)
+ end
end
end
end
@@ -72,12 +76,12 @@ module LUSolve
x <<= b[ps[i]] - dot
end
(n-1).downto(0) do |i|
- dot = zero
- psin = ps[i]*n
- for j in (i+1)...n do
- dot = a[psin+j].mult(x[j],prec) + dot
- end
- x[i] = (x[i]-dot).div(a[psin+i],prec)
+ dot = zero
+ psin = ps[i]*n
+ for j in (i+1)...n do
+ dot = a[psin+j].mult(x[j],prec) + dot
+ end
+ x[i] = (x[i]-dot).div(a[psin+i],prec)
end
x
end
diff --git a/ext/bigdecimal/lib/bigdecimal/math.rb b/ext/bigdecimal/lib/bigdecimal/math.rb
index 24e928b901..03c59bfccb 100644
--- a/ext/bigdecimal/lib/bigdecimal/math.rb
+++ b/ext/bigdecimal/lib/bigdecimal/math.rb
@@ -1,3 +1,5 @@
+require 'bigdecimal'
+
#
#--
# Contents:
@@ -5,7 +7,6 @@
# sin (x, prec)
# cos (x, prec)
# atan(x, prec) Note: |x|<1, x=0.9999 may not converge.
-# exp (x, prec)
# log (x, prec)
# PI (prec)
# E (prec) == exp(1.0,prec)
@@ -29,6 +30,7 @@
# puts sin(a,100) # -> 0.10000000000000000000......E1
#
module BigMath
+ module_function
# Computes the square root of x to the specified number of digits of
# precision.
@@ -49,6 +51,14 @@ module BigMath
n = prec + BigDecimal.double_fig
one = BigDecimal("1")
two = BigDecimal("2")
+ x = -x if neg = x < 0
+ if x > (twopi = two * BigMath.PI(prec))
+ if x > 30
+ x %= twopi
+ else
+ x -= twopi while x > twopi
+ end
+ end
x1 = x
x2 = x.mult(x,n)
sign = 1
@@ -65,7 +75,7 @@ module BigMath
d = sign * x1.div(z,m)
y += d
end
- y
+ neg ? -y : y
end
# Computes the cosine of x to the specified number of digits of precision.
@@ -77,6 +87,14 @@ module BigMath
n = prec + BigDecimal.double_fig
one = BigDecimal("1")
two = BigDecimal("2")
+ x = -x if x < 0
+ if x > (twopi = two * BigMath.PI(prec))
+ if x > 30
+ x %= twopi
+ else
+ x -= twopi while x > twopi
+ end
+ end
x1 = one
x2 = x.mult(x,n)
sign = 1
@@ -98,12 +116,16 @@ module BigMath
# Computes the arctangent of x to the specified number of digits of precision.
#
- # If x is infinite or NaN, returns NaN.
- # Raises an argument error if x > 1.
+ # If x is NaN, returns NaN.
def atan(x, prec)
raise ArgumentError, "Zero or negative precision for atan" if prec <= 0
- return BigDecimal("NaN") if x.infinite? || x.nan?
- raise ArgumentError, "x.abs must be less than 1.0" if x.abs>=1
+ return BigDecimal("NaN") if x.nan?
+ pi = PI(prec)
+ x = -x if neg = x < 0
+ return pi.div(neg ? -2 : 2, prec) if x.infinite?
+ return pi / (neg ? -4 : 4) if x.round(prec) == 1
+ x = BigDecimal("1").div(x, prec) if inv = x > 1
+ x = (-1 + sqrt(1 + x**2, prec))/x if dbl = x > 0.5
n = prec + BigDecimal.double_fig
y = x
d = y
@@ -117,63 +139,12 @@ module BigMath
y += d
r += 2
end
+ y *= 2 if dbl
+ y = pi / 2 - y if inv
+ y = -y if neg
y
end
- # Computes the value of e (the base of natural logarithms) raised to the
- # power of x, to the specified number of digits of precision.
- #
- # If x is infinite or NaN, returns NaN.
- #
- # BigMath::exp(BigDecimal.new('1'), 10).to_s
- # -> "0.271828182845904523536028752390026306410273E1"
- def exp(x, prec)
- raise ArgumentError, "Zero or negative precision for exp" if prec <= 0
- return BigDecimal("NaN") if x.infinite? || x.nan?
- n = prec + BigDecimal.double_fig
- one = BigDecimal("1")
- x1 = one
- y = one
- d = y
- z = one
- i = 0
- while d.nonzero? && ((m = n - (y.exponent - d.exponent).abs) > 0)
- m = BigDecimal.double_fig if m < BigDecimal.double_fig
- x1 = x1.mult(x,n)
- i += 1
- z *= i
- d = x1.div(z,m)
- y += d
- end
- y
- end
-
- # Computes the natural logarithm of x to the specified number of digits
- # of precision.
- #
- # Returns x if x is infinite or NaN.
- #
- def log(x, prec)
- raise ArgumentError, "Zero or negative argument for log" if x <= 0 || prec <= 0
- return x if x.infinite? || x.nan?
- one = BigDecimal("1")
- two = BigDecimal("2")
- n = prec + BigDecimal.double_fig
- x = (x - one).div(x + one,n)
- x2 = x.mult(x,n)
- y = x
- d = y
- i = one
- while d.nonzero? && ((m = n - (y.exponent - d.exponent).abs) > 0)
- m = BigDecimal.double_fig if m < BigDecimal.double_fig
- x = x2.mult(x,n)
- i += two
- d = x.div(i,m)
- y += d
- end
- y*two
- end
-
# Computes the value of pi to the specified number of digits of precision.
def PI(prec)
raise ArgumentError, "Zero or negative argument for PI" if prec <= 0
diff --git a/ext/bigdecimal/lib/bigdecimal/newton.rb b/ext/bigdecimal/lib/bigdecimal/newton.rb
index d78c3d7647..96defc3c06 100644
--- a/ext/bigdecimal/lib/bigdecimal/newton.rb
+++ b/ext/bigdecimal/lib/bigdecimal/newton.rb
@@ -1,3 +1,6 @@
+require "bigdecimal/ludcmp"
+require "bigdecimal/jacobian"
+
#
# newton.rb
#
@@ -22,12 +25,10 @@
#
# On exit, x is the solution vector.
#
-require "bigdecimal/ludcmp"
-require "bigdecimal/jacobian"
-
module Newton
include LUSolve
include Jacobian
+ module_function
def norm(fv,zero=0.0)
s = zero
diff --git a/ext/bigdecimal/lib/bigdecimal/util.rb b/ext/bigdecimal/lib/bigdecimal/util.rb
index 257781f035..b4b02b191d 100644
--- a/ext/bigdecimal/lib/bigdecimal/util.rb
+++ b/ext/bigdecimal/lib/bigdecimal/util.rb
@@ -1,53 +1,109 @@
-#
-# BigDecimal utility library.
-#
-# To use these functions, require 'bigdecimal/util'
-#
-# The following methods are provided to convert other types to BigDecimals:
-#
-# String#to_d -> BigDecimal
-# Float#to_d -> BigDecimal
-# Rational#to_d -> BigDecimal
-#
-# The following method is provided to convert BigDecimals to other types:
-#
-# BigDecimal#to_r -> Rational
-#
-# ----------------------------------------------------------------------
-#
-class Float < Numeric
+class Integer < Numeric
+ # call-seq:
+ # int.to_d -> bigdecimal
+ #
+ # Convert +int+ to a BigDecimal and return it.
+ #
+ # require 'bigdecimal'
+ # require 'bigdecimal/util'
+ #
+ # 42.to_d
+ # # => #<BigDecimal:1008ef070,'0.42E2',9(36)>
+ #
def to_d
- BigDecimal(self.to_s)
+ BigDecimal(self)
+ end
+end
+
+class Float < Numeric
+ # call-seq:
+ # flt.to_d(precision=nil) -> bigdecimal
+ #
+ # Convert +flt+ to a BigDecimal and return it.
+ #
+ # require 'bigdecimal'
+ # require 'bigdecimal/util'
+ #
+ # 0.5.to_d
+ # # => #<BigDecimal:1dc69e0,'0.5E0',9(18)>
+ #
+ def to_d(precision=nil)
+ BigDecimal(self, precision || Float::DIG+1)
end
end
class String
+ # call-seq:
+ # string.to_d -> bigdecimal
+ #
+ # Convert +string+ to a BigDecimal and return it.
+ #
+ # require 'bigdecimal'
+ # require 'bigdecimal/util'
+ #
+ # "0.5".to_d
+ # # => #<BigDecimal:1dc69e0,'0.5E0',9(18)>
+ #
def to_d
BigDecimal(self)
end
end
class BigDecimal < Numeric
+ # call-seq:
+ # a.to_digits -> string
+ #
# Converts a BigDecimal to a String of the form "nnnnnn.mmm".
# This method is deprecated; use BigDecimal#to_s("F") instead.
+ #
+ # require 'bigdecimal'
+ # require 'bigdecimal/util'
+ #
+ # d = BigDecimal.new("3.14")
+ # d.to_digits
+ # # => "3.14"
def to_digits
- if self.nan? || self.infinite? || self.zero?
- self.to_s
- else
- i = self.to_i.to_s
- s,f,y,z = self.frac.split
- i + "." + ("0"*(-z)) + f
- end
+ if self.nan? || self.infinite? || self.zero?
+ self.to_s
+ else
+ i = self.to_i.to_s
+ _,f,_,z = self.frac.split
+ i + "." + ("0"*(-z)) + f
+ end
+ end
+
+ # call-seq:
+ # a.to_d -> bigdecimal
+ #
+ # Returns self.
+ def to_d
+ self
end
end
class Rational < Numeric
- # Converts a Rational to a BigDecimal
- def to_d(nFig=0)
- num = self.numerator.to_s
- if nFig<=0
- nFig = BigDecimal.double_fig*2+1
- end
- BigDecimal.new(num).div(self.denominator,nFig)
+ # call-seq:
+ # r.to_d(sig) -> bigdecimal
+ #
+ # Converts a Rational to a BigDecimal. Takes an optional parameter +sig+ to
+ # limit the amount of significant digits.
+ # If a negative precision is given, raise ArgumentError.
+ # The zero precision and implicit precision is deprecated.
+ #
+ # r = (22/7.0).to_r
+ # # => (7077085128725065/2251799813685248)
+ # r.to_d
+ # # => #<BigDecimal:1a52bd8,'0.3142857142 8571427937 0154144999 105E1',45(63)>
+ # r.to_d(3)
+ # # => #<BigDecimal:1a44d08,'0.314E1',18(36)>
+ def to_d(precision=0)
+ if precision < 0
+ raise ArgumentError, "negative precision"
+ elsif precision == 0
+ warn "zero and implicit precision is deprecated."
+ precision = BigDecimal.double_fig*2+1
+ end
+ num = self.numerator
+ BigDecimal(num).div(self.denominator, precision)
end
end
diff --git a/ext/coverage/coverage.c b/ext/coverage/coverage.c
index 145be1834d..529fac256a 100644
--- a/ext/coverage/coverage.c
+++ b/ext/coverage/coverage.c
@@ -9,10 +9,9 @@
************************************************/
#include "ruby.h"
+#include "vm_core.h"
-extern VALUE rb_get_coverages(void);
-extern void rb_set_coverages(VALUE);
-extern void rb_reset_coverages(void);
+static VALUE rb_coverages = Qundef;
/*
* call-seq:
@@ -24,19 +23,25 @@ static VALUE
rb_coverage_start(VALUE klass)
{
if (!RTEST(rb_get_coverages())) {
- VALUE coverages = rb_hash_new();
- RBASIC(coverages)->klass = 0;
- rb_set_coverages(coverages);
+ if (rb_coverages == Qundef) {
+ rb_coverages = rb_hash_new();
+ RBASIC(rb_coverages)->klass = 0;
+ }
+ rb_set_coverages(rb_coverages);
}
return Qnil;
}
static int
-coverage_result_i(st_data_t key, st_data_t val, st_data_t dummy)
+coverage_result_i(st_data_t key, st_data_t val, st_data_t h)
{
+ VALUE path = (VALUE)key;
VALUE coverage = (VALUE)val;
- RBASIC(coverage)->klass = rb_cArray;
+ VALUE coverages = (VALUE)h;
+ coverage = rb_ary_dup(coverage);
+ rb_ary_clear((VALUE)val);
rb_ary_freeze(coverage);
+ rb_hash_aset(coverages, path, coverage);
return ST_CONTINUE;
}
@@ -51,14 +56,14 @@ static VALUE
rb_coverage_result(VALUE klass)
{
VALUE coverages = rb_get_coverages();
+ VALUE ncoverages = rb_hash_new();
if (!RTEST(coverages)) {
rb_raise(rb_eRuntimeError, "coverage measurement is not enabled");
}
- RBASIC(coverages)->klass = rb_cHash;
- st_foreach(RHASH_TBL(coverages), coverage_result_i, 0);
- rb_hash_freeze(coverages);
+ st_foreach(RHASH_TBL(coverages), coverage_result_i, ncoverages);
+ rb_hash_freeze(ncoverages);
rb_reset_coverages();
- return coverages;
+ return ncoverages;
}
/* Coverage provides coverage measurement feature for Ruby.
@@ -98,4 +103,5 @@ Init_coverage(void)
VALUE rb_mCoverage = rb_define_module("Coverage");
rb_define_module_function(rb_mCoverage, "start", rb_coverage_start, 0);
rb_define_module_function(rb_mCoverage, "result", rb_coverage_result, 0);
+ rb_gc_register_address(&rb_coverages);
}
diff --git a/ext/coverage/extconf.rb b/ext/coverage/extconf.rb
index 3ebced54a6..cf10ca89c5 100644
--- a/ext/coverage/extconf.rb
+++ b/ext/coverage/extconf.rb
@@ -1,2 +1,3 @@
require 'mkmf'
+$INCFLAGS << " -I$(topdir) -I$(top_srcdir)"
create_makefile('coverage')
diff --git a/ext/curses/.cvsignore b/ext/curses/.cvsignore
deleted file mode 100644
index 814345ece8..0000000000
--- a/ext/curses/.cvsignore
+++ /dev/null
@@ -1,4 +0,0 @@
-Makefile
-mkmf.log
-*.def
-extconf.h
diff --git a/ext/curses/curses.c b/ext/curses/curses.c
index 94da77f826..ff0c64e258 100644
--- a/ext/curses/curses.c
+++ b/ext/curses/curses.c
@@ -11,6 +11,9 @@
*
* maintainers:
* - Takaaki Tateishi (ttate@kt.jaist.ac.jp)
+ *
+ * doumentation:
+ * - Vincent Batts (vbatts@hashbangbash.com)
*/
#include "ruby.h"
@@ -70,8 +73,6 @@ struct windata {
WINDOW *window;
};
-#define CHECK(c) c
-
static VALUE window_attroff(VALUE obj, VALUE attrs);
static VALUE window_attron(VALUE obj, VALUE attrs);
static VALUE window_attrset(VALUE obj, VALUE attrs);
@@ -85,8 +86,8 @@ no_window(void)
#define GetWINDOW(obj, winp) do {\
if (!OBJ_TAINTED(obj) && rb_safe_level() >= 4)\
rb_raise(rb_eSecurityError, "Insecure: operation on untainted window");\
- Data_Get_Struct(obj, struct windata, winp);\
- if (winp->window == 0) no_window();\
+ Data_Get_Struct((obj), struct windata, (winp));\
+ if ((winp)->window == 0) no_window();\
} while (0)
static void
@@ -116,7 +117,13 @@ prep_window(VALUE class, WINDOW *window)
/*-------------------------- module Curses --------------------------*/
-/* def init_screen */
+/*
+ * Document-method: Curses.init_screen
+ *
+ * Initialize a standard screen
+ *
+ * see also Curses.stdscr
+ */
static VALUE
curses_init_screen(void)
{
@@ -131,13 +138,35 @@ curses_init_screen(void)
return rb_stdscr;
}
-/* def stdscr */
+/*
+ * Document-method: Curses.stdscr
+ *
+ * The Standard Screen.
+ *
+ * Upon initializing curses, a default window called stdscr,
+ * which is the size of the terminal screen, is created.
+ *
+ * Many curses functions use this window.
+ */
#define curses_stdscr curses_init_screen
-/* def close_screen */
+/*
+ * Document-method: Curses.close_screen
+ *
+ * A program should always call Curses.close_screen before exiting or
+ * escaping from curses mode temporarily. This routine
+ * restores tty modes, moves the cursor to the lower
+ * left-hand corner of the screen and resets the terminal
+ * into the proper non-visual mode.
+ *
+ * Calling Curses.refresh or Curses.doupdate after a temporary
+ * escape causes the program to resume visual mode.
+ *
+ */
static VALUE
curses_close_screen(void)
{
+ curses_stdscr();
#ifdef HAVE_ISENDWIN
if (!isendwin())
#endif
@@ -146,6 +175,13 @@ curses_close_screen(void)
return Qnil;
}
+/*
+ * This is no runtime method,
+ * but a function called before the proc ends
+ *
+ * Similar to Curses.close_screen, except that it also
+ * garbage collects/unregisters the Curses.stdscr
+ */
static void
curses_finalize(VALUE dummy)
{
@@ -160,10 +196,17 @@ curses_finalize(VALUE dummy)
}
#ifdef HAVE_ISENDWIN
-/* def closed? */
+/*
+ * Document-method: Curses.closed?
+ *
+ * Returns +true+ if the window/screen has been closed,
+ * without any subsequent Curses.refresh calls,
+ * returns +false+ otherwise.
+ */
static VALUE
curses_closed(void)
{
+ curses_stdscr();
if (isendwin()) {
return Qtrue;
}
@@ -173,7 +216,13 @@ curses_closed(void)
#define curses_closed rb_f_notimplement
#endif
-/* def clear */
+/*
+ * Document-method: Curses.clear
+ *
+ * Clears every position on the screen completely,
+ * so that a subsequent call by Curses.refresh for the screen/window
+ * will be repainted from scratch.
+ */
static VALUE
curses_clear(VALUE obj)
{
@@ -182,7 +231,11 @@ curses_clear(VALUE obj)
return Qnil;
}
-/* def clrtoeol */
+/*
+ * Document-method: Curses.clrtoeol
+ *
+ * Clears to the end of line, that the cursor is currently on.
+ */
static VALUE
curses_clrtoeol(void)
{
@@ -191,7 +244,12 @@ curses_clrtoeol(void)
return Qnil;
}
-/* def refresh */
+/*
+ * Document-method: Curses.refresh
+ *
+ * Refreshes the windows and lines.
+ *
+ */
static VALUE
curses_refresh(VALUE obj)
{
@@ -200,7 +258,14 @@ curses_refresh(VALUE obj)
return Qnil;
}
-/* def doupdate */
+/*
+ * Document-method: Curses.doupdate
+ *
+ * Refreshes the windows and lines.
+ *
+ * Curses.doupdate allows multiple updates with
+ * more efficiency than Curses.refresh alone.
+ */
static VALUE
curses_doupdate(VALUE obj)
{
@@ -213,7 +278,12 @@ curses_doupdate(VALUE obj)
return Qnil;
}
-/* def echo */
+/*
+ * Document-method: Curses.echo
+ *
+ * Enables characters typed by the user
+ * to be echoed by Curses.getch as they are typed.
+ */
static VALUE
curses_echo(VALUE obj)
{
@@ -222,7 +292,12 @@ curses_echo(VALUE obj)
return Qnil;
}
-/* def noecho */
+/*
+ * Document-method: Curses.noecho
+ *
+ * Disables characters typed by the user
+ * to be echoed by Curses.getch as they are typed.
+ */
static VALUE
curses_noecho(VALUE obj)
{
@@ -231,7 +306,20 @@ curses_noecho(VALUE obj)
return Qnil;
}
-/* def raw */
+/*
+ * Document-method: Curses.raw
+ *
+ * Put the terminal into raw mode.
+ *
+ * Raw mode is similar to Curses.cbreak mode, in that characters typed
+ * are immediately passed through to the user program.
+ *
+ * The differences are that in raw mode, the interrupt, quit,
+ * suspend, and flow control characters are all passed through
+ * uninterpreted, instead of generating a signal. The behavior
+ * of the BREAK key depends on other bits in the tty driver
+ * that are not set by curses.
+ */
static VALUE
curses_raw(VALUE obj)
{
@@ -240,7 +328,13 @@ curses_raw(VALUE obj)
return Qnil;
}
-/* def noraw */
+/*
+ * Document-method: Curses.noraw
+ *
+ * Put the terminal out of raw mode.
+ *
+ * see Curses.raw for more detail
+ */
static VALUE
curses_noraw(VALUE obj)
{
@@ -249,7 +343,28 @@ curses_noraw(VALUE obj)
return Qnil;
}
-/* def cbreak */
+/*
+ * Document-method: Curses.cbreak
+ *
+ * Put the terminal into cbreak mode.
+ *
+ * Normally, the tty driver buffers typed characters until
+ * a newline or carriage return is typed. The Curses.cbreak
+ * routine disables line buffering and erase/kill
+ * character-processing (interrupt and flow control characters
+ * are unaffected), making characters typed by the user
+ * immediately available to the program.
+ *
+ * The Curses.nocbreak routine returns the terminal to normal (cooked) mode.
+ *
+ * Initially the terminal may or may not be in cbreak mode,
+ * as the mode is inherited; therefore, a program should
+ * call Curses.cbreak or Curses.nocbreak explicitly.
+ * Most interactive programs using curses set the cbreak mode.
+ * Note that Curses.cbreak overrides Curses.raw.
+ *
+ * see also Curses.raw
+ */
static VALUE
curses_cbreak(VALUE obj)
{
@@ -258,7 +373,13 @@ curses_cbreak(VALUE obj)
return Qnil;
}
-/* def nocbreak */
+/*
+ * Document-method: Curses.nocbreak
+ *
+ * Put the terminal into normal mode (out of cbreak mode).
+ *
+ * See Curses.cbreak for more detail.
+ */
static VALUE
curses_nocbreak(VALUE obj)
{
@@ -267,7 +388,20 @@ curses_nocbreak(VALUE obj)
return Qnil;
}
-/* def nl */
+/*
+ * Document-method: Curses.nl
+ *
+ * Enable the underlying display device to translate
+ * the return key into newline on input, and whether it
+ * translates newline into return and line-feed on output
+ * (in either case, the call Curses.addch('\n') does the
+ * equivalent of return and line feed on the virtual screen).
+ *
+ * Initially, these translations do occur. If you disable
+ * them using Curses.nonl, curses will be able to make better use
+ * of the line-feed capability, resulting in faster cursor
+ * motion. Also, curses will then be able to detect the return key.
+ */
static VALUE
curses_nl(VALUE obj)
{
@@ -276,7 +410,14 @@ curses_nl(VALUE obj)
return Qnil;
}
-/* def nonl */
+/*
+ * Document-method: Curses.nl
+ *
+ * Disable the underlying display device to translate
+ * the return key into newline on input
+ *
+ * See Curses.nl for more detail
+ */
static VALUE
curses_nonl(VALUE obj)
{
@@ -285,7 +426,14 @@ curses_nonl(VALUE obj)
return Qnil;
}
-/* def beep */
+/*
+ * Document-method: Curses.beep
+ *
+ * Sounds an audible alarm on the terminal, if possible;
+ * otherwise it flashes the screen (visual bell).
+ *
+ * see also Curses.flash
+ */
static VALUE
curses_beep(VALUE obj)
{
@@ -296,7 +444,14 @@ curses_beep(VALUE obj)
return Qnil;
}
-/* def flash */
+/*
+ * Document-method: Curses.flash
+ *
+ * Flashs the screen, for visual alarm on the terminal, if possible;
+ * otherwise it sounds the alert.
+ *
+ * see also Curses.beep
+ */
static VALUE
curses_flash(VALUE obj)
{
@@ -329,7 +484,15 @@ curses_char(VALUE c)
}
#ifdef HAVE_UNGETCH
-/* def ungetch */
+/*
+ * Document-method: Curses.ungetch
+ * call-seq: ungetch(ch)
+ *
+ * Places +ch+ back onto the input queue to be returned by
+ * the next call to Curses.getch.
+ *
+ * There is just one input queue for all windows.
+ */
static VALUE
curses_ungetch(VALUE obj, VALUE ch)
{
@@ -342,7 +505,14 @@ curses_ungetch(VALUE obj, VALUE ch)
#define curses_ungetch rb_f_notimplement
#endif
-/* def setpos(y, x) */
+/*
+ * Document-method: Curses.setpos
+ * call-seq: setpos(y, x)
+ *
+ * A setter for the position of the cursor,
+ * using coordinates +x+ and +y+
+ *
+ */
static VALUE
curses_setpos(VALUE obj, VALUE y, VALUE x)
{
@@ -351,23 +521,45 @@ curses_setpos(VALUE obj, VALUE y, VALUE x)
return Qnil;
}
-/* def standout */
+/*
+ * Document-method: Curses.standout
+ *
+ * Enables the best highlighting mode of the terminal.
+ *
+ * This is equivalent to Curses:Window.attron(A_STANDOUT)
+ *
+ * see also Curses::Window.attrset additional information
+ */
static VALUE
curses_standout(VALUE obj)
{
+ curses_stdscr();
standout();
return Qnil;
}
-/* def standend */
+/*
+ * Document-method: Curses.standend
+ *
+ * Enables the Normal display (no highlight)
+ *
+ * This is equivalent to Curses.attron(A_NORMAL)
+ *
+ * see also Curses::Window.attrset for additional information.
+ */
static VALUE
curses_standend(VALUE obj)
{
+ curses_stdscr();
standend();
return Qnil;
}
-/* def inch */
+/*
+ * Document-method: Curses.inch
+ *
+ * Returns the character at the current position.
+ */
static VALUE
curses_inch(VALUE obj)
{
@@ -375,7 +567,14 @@ curses_inch(VALUE obj)
return CH2FIX(inch());
}
-/* def addch(ch) */
+/*
+ * Document-method: Curses.addch
+ * call-seq: addch(ch)
+ *
+ * Add a character +ch+, with attributes, then advance the cursor.
+ *
+ * see also the system manual for curs_addch(3)
+ */
static VALUE
curses_addch(VALUE obj, VALUE ch)
{
@@ -384,7 +583,13 @@ curses_addch(VALUE obj, VALUE ch)
return Qnil;
}
-/* def insch(ch) */
+/*
+ * Document-method: Curses.insch
+ * call-seq: insch(ch)
+ *
+ * Insert a character +ch+, before the cursor.
+ *
+ */
static VALUE
curses_insch(VALUE obj, VALUE ch)
{
@@ -393,7 +598,13 @@ curses_insch(VALUE obj, VALUE ch)
return Qnil;
}
-/* def addstr(str) */
+/*
+ * Document-method: Curses.addstr
+ * call-seq: addstr(str)
+ *
+ * add a string of characters +str+, to the window and advance cursor
+ *
+ */
static VALUE
curses_addstr(VALUE obj, VALUE str)
{
@@ -406,15 +617,29 @@ curses_addstr(VALUE obj, VALUE str)
return Qnil;
}
-/* def getch */
+static VALUE
+getch_func(void *arg)
+{
+ int *ip = (int *)arg;
+ *ip = getch();
+ return Qnil;
+}
+
+/*
+ * Document-method: Curses.getch
+ *
+ * Read and returns a character from the window.
+ *
+ * See Curses::Key to all the function KEY_* available
+ *
+ */
static VALUE
curses_getch(VALUE obj)
{
int c;
- rb_read_check(stdin);
curses_stdscr();
- c = getch();
+ rb_thread_blocking_region(getch_func, (void *)&c, RUBY_UBF_IO, 0);
if (c == EOF) return Qnil;
if (rb_isprint(c)) {
char ch = (char)c;
@@ -424,50 +649,89 @@ curses_getch(VALUE obj)
return UINT2NUM(c);
}
-/* def getstr */
+/* This should be big enough.. I hope */
+#define GETSTR_BUF_SIZE 1024
+
static VALUE
-curses_getstr(VALUE obj)
+getstr_func(void *arg)
{
- char rtn[1024]; /* This should be big enough.. I hope */
-
- rb_read_check(stdin);
+ char *rtn = (char *)arg;
#if defined(HAVE_GETNSTR)
- getnstr(rtn,1023);
+ getnstr(rtn,GETSTR_BUF_SIZE-1);
#else
getstr(rtn);
#endif
+ return Qnil;
+}
+
+/*
+ * Document-method: Curses.getstr
+ *
+ * This is equivalent to a series f Curses::Window.getch calls
+ *
+ */
+static VALUE
+curses_getstr(VALUE obj)
+{
+ char rtn[GETSTR_BUF_SIZE];
+
+ curses_stdscr();
+ rb_thread_blocking_region(getstr_func, (void *)rtn, RUBY_UBF_IO, 0);
return rb_locale_str_new_cstr(rtn);
}
-/* def delch */
+/*
+ * Document-method: Curses.delch
+ *
+ * Delete the character under the cursor
+ *
+ */
static VALUE
curses_delch(VALUE obj)
{
+ curses_stdscr();
delch();
return Qnil;
}
-/* def delelteln */
+/*
+ * Document-method: Curses.deleteln
+ *
+ * Delete the line under the cursor.
+ *
+ */
static VALUE
curses_deleteln(VALUE obj)
{
+ curses_stdscr();
#if defined(HAVE_DELETELN) || defined(deleteln)
deleteln();
#endif
return Qnil;
}
-/* def insertln */
+/*
+ * Document-method: Curses.insertln
+ *
+ * Inserts a line above the cursor, and the bottom line is lost
+ *
+ */
static VALUE
curses_insertln(VALUE obj)
{
+ curses_stdscr();
#if defined(HAVE_INSERTLN) || defined(insertln)
insertln();
#endif
return Qnil;
}
-/* def keyname */
+/*
+ * Document-method: Curses.keyname
+ * call-seq: keyname(c)
+ *
+ * Returns the character string corresponding to key +c+
+ */
static VALUE
curses_keyname(VALUE obj, VALUE c)
{
@@ -475,6 +739,7 @@ curses_keyname(VALUE obj, VALUE c)
int cc = curses_char(c);
const char *name;
+ curses_stdscr();
name = keyname(cc);
if (name) {
return rb_str_new_cstr(name);
@@ -487,19 +752,32 @@ curses_keyname(VALUE obj, VALUE c)
#endif
}
+/*
+ * Document-method: Curses.lines
+ *
+ * Returns the number of lines on the screen
+ */
static VALUE
curses_lines(void)
{
return INT2FIX(LINES);
}
+/*
+ * Document-method: Curses.cols
+ *
+ * Returns the number of columns on the screen
+ */
static VALUE
curses_cols(void)
{
return INT2FIX(COLS);
}
-/**
+/*
+ * Document-method: Curses.curs_set
+ * call-seq: curs_set(visibility)
+ *
* Sets Cursor Visibility.
* 0: invisible
* 1: visible
@@ -510,68 +788,153 @@ curses_curs_set(VALUE obj, VALUE visibility)
{
#ifdef HAVE_CURS_SET
int n;
+ curses_stdscr();
return (n = curs_set(NUM2INT(visibility)) != ERR) ? INT2FIX(n) : Qnil;
#else
return Qnil;
#endif
}
+/*
+ * Document-method: Curses.scrl
+ * call-seq: scrl(num)
+ *
+ * Scrolls the current window Fixnum +num+ lines.
+ * The current cursor position is not changed.
+ *
+ * For positive +num+, it scrolls up.
+ *
+ * For negative +num+, it scrolls down.
+ *
+ */
static VALUE
curses_scrl(VALUE obj, VALUE n)
{
/* may have to raise exception on ERR */
#ifdef HAVE_SCRL
+ curses_stdscr();
return (scrl(NUM2INT(n)) == OK) ? Qtrue : Qfalse;
#else
return Qfalse;
#endif
}
+/*
+ * Document-method: Curses.setscrreg
+ *
+ * call-seq:
+ * setscrreg(top, bottom)
+ *
+ * Set a software scrolling region in a window.
+ * +top+ and +bottom+ are lines numbers of the margin.
+ *
+ * If this option and Curses.scrollok are enabled, an attempt to move off
+ * the bottom margin line causes all lines in the scrolling region
+ * to scroll one line in the direction of the first line.
+ * Only the text of the window is scrolled.
+ *
+ */
static VALUE
curses_setscrreg(VALUE obj, VALUE top, VALUE bottom)
{
/* may have to raise exception on ERR */
#ifdef HAVE_SETSCRREG
+ curses_stdscr();
return (setscrreg(NUM2INT(top), NUM2INT(bottom)) == OK) ? Qtrue : Qfalse;
#else
return Qfalse;
#endif
}
+/*
+ * Document-method: Curses.attroff
+ * call-seq: attroff(attrs)
+ *
+ * Turns on the named attributes +attrs+ without affecting any others.
+ *
+ * See also Curses::Window.attrset for additional information.
+ */
static VALUE
curses_attroff(VALUE obj, VALUE attrs)
{
+ curses_stdscr();
return window_attroff(rb_stdscr,attrs);
/* return INT2FIX(attroff(NUM2INT(attrs))); */
}
+/*
+ * Document-method: Curses.attron
+ * call-seq: attron(attrs)
+ *
+ * Turns off the named attributes +attrs+
+ * without turning any other attributes on or off.
+ *
+ * See also Curses::Window.attrset for additional information.
+ */
static VALUE
curses_attron(VALUE obj, VALUE attrs)
{
+ curses_stdscr();
return window_attron(rb_stdscr,attrs);
/* return INT2FIX(attroff(NUM2INT(attrs))); */
}
+/*
+ * Document-method: Curses.attrset
+ * call-seq: attrset(attrs)
+ *
+ * Sets the current attributes of the given window to +attrs+.
+ *
+ * see also Curses::Window.attrset
+ *
+ */
static VALUE
curses_attrset(VALUE obj, VALUE attrs)
{
+ curses_stdscr();
return window_attrset(rb_stdscr,attrs);
/* return INT2FIX(attroff(NUM2INT(attrs))); */
}
+/*
+ * Document-method: Curses.bkgdset
+ * call-seq: bkgdset(ch)
+ *
+ * Manipulate the background of the named window
+ * with character Integer +ch+
+ *
+ * The background becomes a property of the character
+ * and moves with the character through any scrolling
+ * and insert/delete line/character operations.
+ *
+ * see also the system manual for curs_bkgd(3)
+ */
static VALUE
curses_bkgdset(VALUE obj, VALUE ch)
{
#ifdef HAVE_BKGDSET
+ curses_stdscr();
bkgdset(NUM2CH(ch));
#endif
return Qnil;
}
+/*
+ * call-seq: bkgd(ch)
+ *
+ * Window background manipulation routines.
+ *
+ * Set the background property of the current
+ * and then apply the character Integer +ch+ setting
+ * to every character position in that window.
+ *
+ * see also the system manual for curs_bkgd(3)
+ */
static VALUE
curses_bkgd(VALUE obj, VALUE ch)
{
#ifdef HAVE_BKGD
+ curses_stdscr();
return (bkgd(NUM2CH(ch)) == OK) ? Qtrue : Qfalse;
#else
return Qfalse;
@@ -579,9 +942,15 @@ curses_bkgd(VALUE obj, VALUE ch)
}
#if defined(HAVE_USE_DEFAULT_COLORS)
+/*
+ * tells the curses library to use terminal's default colors.
+ *
+ * see also the system manual for default_colors(3)
+ */
static VALUE
curses_use_default_colors(VALUE obj)
{
+ curses_stdscr();
use_default_colors();
return Qnil;
}
@@ -590,6 +959,12 @@ curses_use_default_colors(VALUE obj)
#endif
#if defined(HAVE_TABSIZE)
+/*
+ * Document-method: Curses.TABSIZE=
+ * call-seq: TABSIZE=(value)
+ *
+ * Sets the TABSIZE to Integer +value+
+ */
static VALUE
curses_tabsize_set(VALUE obj, VALUE val)
{
@@ -601,6 +976,9 @@ curses_tabsize_set(VALUE obj, VALUE val)
#endif
#if defined(HAVE_TABSIZE)
+/*
+ * Returns the number of positions in a tab.
+ */
static VALUE
curses_tabsize_get(VALUE ojb)
{
@@ -611,6 +989,11 @@ curses_tabsize_get(VALUE ojb)
#endif
#if defined(HAVE_ESCDELAY)
+/*
+ * call-seq: Curses.ESCDELAY=(value)
+ *
+ * Sets the ESCDELAY to Integer +value+
+ */
static VALUE
curses_escdelay_set(VALUE obj, VALUE val)
{
@@ -622,6 +1005,10 @@ curses_escdelay_set(VALUE obj, VALUE val)
#endif
#if defined(HAVE_ESCDELAY)
+/*
+ * Returns the total time, in milliseconds, for which
+ * curses will await a character sequence, e.g., a function key
+ */
static VALUE
curses_escdelay_get(VALUE obj)
{
@@ -631,10 +1018,26 @@ curses_escdelay_get(VALUE obj)
#define curses_escdelay_get rb_f_notimplement
#endif
+/*
+ * Document-method: Curses.resize
+ * call-seq: resize(lines, cols)
+ *
+ * alias for Curses.resizeterm
+ *
+ */
+
+/*
+ * Document-method: Curses.resizeterm
+ * call-seq: resizeterm(lines, cols)
+ *
+ * Resize the current term to Fixnum +lines+ and Fixnum +cols+
+ *
+ */
static VALUE
curses_resizeterm(VALUE obj, VALUE lin, VALUE col)
{
#if defined(HAVE_RESIZETERM)
+ curses_stdscr();
return (resizeterm(NUM2INT(lin),NUM2INT(col)) == OK) ? Qtrue : Qfalse;
#else
return Qnil;
@@ -642,41 +1045,99 @@ curses_resizeterm(VALUE obj, VALUE lin, VALUE col)
}
#ifdef USE_COLOR
+/*
+ * Document-method: Curses.start_color
+ *
+ * Initializes the color attributes, for terminals that support it.
+ *
+ * This must be called, in order to use color attributes.
+ * It is good practice to call it just after Curses.init_screen
+ */
static VALUE
curses_start_color(VALUE obj)
{
/* may have to raise exception on ERR */
+ curses_stdscr();
return (start_color() == OK) ? Qtrue : Qfalse;
}
+/*
+ * Document-method: Curses.init_pair
+ * call-seq: init_pair(pair, f, b)
+ *
+ * Changes the definition of a color-pair.
+ *
+ * It takes three arguments: the number of the color-pair to be changed +pair+,
+ * the foreground color number +f+, and the background color number +b+.
+ *
+ * If the color-pair was previously initialized, the screen is
+ * refreshed and all occurrences of that color-pair are changed
+ * to the new definition.
+ *
+ */
static VALUE
curses_init_pair(VALUE obj, VALUE pair, VALUE f, VALUE b)
{
/* may have to raise exception on ERR */
+ curses_stdscr();
return (init_pair(NUM2INT(pair),NUM2INT(f),NUM2INT(b)) == OK) ? Qtrue : Qfalse;
}
+/*
+ * Document-method: Curses.init_color
+ * call-seq: init_color(color, r, g, b)
+ *
+ * Changes the definition of a color. It takes four arguments:
+ * * the number of the color to be changed, +color+
+ * * the amount of red, +r+
+ * * the amount of green, +g+
+ * * the amount of blue, +b+
+ *
+ * The value of the first argument must be between 0 and COLORS.
+ * (See the section Colors for the default color index.) Each
+ * of the last three arguments must be a value between 0 and 1000.
+ * When Curses.init_color is used, all occurrences of that color
+ * on the screen immediately change to the new definition.
+ */
static VALUE
curses_init_color(VALUE obj, VALUE color, VALUE r, VALUE g, VALUE b)
{
/* may have to raise exception on ERR */
+ curses_stdscr();
return (init_color(NUM2INT(color),NUM2INT(r),
NUM2INT(g),NUM2INT(b)) == OK) ? Qtrue : Qfalse;
}
+/*
+ * Document-method: Curses.has_colors?
+ *
+ * Returns +true+ or +false+ depending on whether the terminal has color capbilities.
+ */
static VALUE
curses_has_colors(VALUE obj)
{
+ curses_stdscr();
return has_colors() ? Qtrue : Qfalse;
}
+/*
+ * Document-method: Curses.can_change_color?
+ *
+ * Returns +true+ or +false+ depending on whether the terminal can change color attributes
+ */
static VALUE
curses_can_change_color(VALUE obj)
{
+ curses_stdscr();
return can_change_color() ? Qtrue : Qfalse;
}
#if defined(HAVE_COLORS)
+/*
+ * Document-method: Curses.color
+ *
+ * returns COLORS
+ */
static VALUE
curses_colors(VALUE obj)
{
@@ -686,17 +1147,29 @@ curses_colors(VALUE obj)
#define curses_colors rb_f_notimplement
#endif
+/*
+ * Document-method: Curses.color_content
+ * call-seq: color_content(color)
+ *
+ * Returns an 3 item Array of the RGB values in +color+
+ */
static VALUE
curses_color_content(VALUE obj, VALUE color)
{
short r,g,b;
+ curses_stdscr();
color_content(NUM2INT(color),&r,&g,&b);
return rb_ary_new3(3,INT2FIX(r),INT2FIX(g),INT2FIX(b));
}
#if defined(HAVE_COLOR_PAIRS)
+/*
+ * Document-method: Curses.color_pairs
+ *
+ * Returns the COLOR_PAIRS available, if the curses library supports it.
+ */
static VALUE
curses_color_pairs(VALUE obj)
{
@@ -706,24 +1179,49 @@ curses_color_pairs(VALUE obj)
#define curses_color_pairs rb_f_notimplement
#endif
+/*
+ * Document-method: Curses.pair_content
+ * call-seq: pair_content(pair)
+ *
+ * Returns a 2 item Array, with the foreground and
+ * background color, in +pair+
+ */
static VALUE
curses_pair_content(VALUE obj, VALUE pair)
{
short f,b;
+ curses_stdscr();
pair_content(NUM2INT(pair),&f,&b);
return rb_ary_new3(2,INT2FIX(f),INT2FIX(b));
}
+/*
+ * Document-method: Curses.color_pair
+ * call-seq: color_pair(attrs)
+ *
+ * Sets the color pair attributes to +attrs+.
+ *
+ * This should be equivalent to Curses.attrset(COLOR_PAIR(+attrs+))
+ *
+ * TODO: validate that equivalency
+ */
static VALUE
curses_color_pair(VALUE obj, VALUE attrs)
{
return INT2FIX(COLOR_PAIR(NUM2INT(attrs)));
}
+/*
+ * Document-method: Curses.pair_number
+ * call-seq: pair_number(attrs)
+ *
+ * Returns the Fixnum color pair number of attributes +attrs+.
+ */
static VALUE
curses_pair_number(VALUE obj, VALUE attrs)
{
+ curses_stdscr();
return INT2FIX(PAIR_NUMBER(NUM2INT(attrs)));
}
#endif /* USE_COLOR */
@@ -742,8 +1240,8 @@ no_mevent(void)
#define GetMOUSE(obj, data) do {\
if (!OBJ_TAINTED(obj) && rb_safe_level() >= 4)\
rb_raise(rb_eSecurityError, "Insecure: operation on untainted mouse");\
- Data_Get_Struct(obj, struct mousedata, data);\
- if (data->mevent == 0) no_mevent();\
+ Data_Get_Struct((obj), struct mousedata, (data));\
+ if ((data)->mevent == 0) no_mevent();\
} while (0)
static void
@@ -753,36 +1251,79 @@ curses_mousedata_free(struct mousedata *mdata)
xfree(mdata->mevent);
}
+/*
+ * Document-method: Curses.getmouse
+ *
+ * Returns coordinates of the mouse.
+ *
+ * This will read and pop the mouse event data off the queue
+ *
+ * See the BUTTON*, ALL_MOUSE_EVENTS and REPORT_MOUSE_POSITION constants, to examine the mask of the event
+ */
static VALUE
curses_getmouse(VALUE obj)
{
struct mousedata *mdata;
VALUE val;
+ curses_stdscr();
val = Data_Make_Struct(cMouseEvent,struct mousedata,
0,curses_mousedata_free,mdata);
mdata->mevent = (MEVENT*)xmalloc(sizeof(MEVENT));
return (getmouse(mdata->mevent) == OK) ? val : Qnil;
}
+/*
+ * Document-method: Curses.ungetmouse
+ *
+ * It pushes a KEY_MOUSE event onto the input queue, and associates with that
+ * event the given state data and screen-relative character-cell coordinates.
+ *
+ * The Curses.ungetmouse function behaves analogously to Curses.ungetch.
+ */
static VALUE
curses_ungetmouse(VALUE obj, VALUE mevent)
{
struct mousedata *mdata;
+ curses_stdscr();
GetMOUSE(mevent,mdata);
return (ungetmouse(mdata->mevent) == OK) ? Qtrue : Qfalse;
}
+/*
+ * Document-method: Curses.mouseinterval
+ * call-seq: mouseinterval(interval)
+ *
+ * The Curses.mouseinterval function sets the maximum time
+ * (in thousands of a second) that can elapse between press
+ * and release events for them to be recognized as a click.
+ *
+ * Use Curses.mouseinterval(0) to disable click resolution.
+ * This function returns the previous interval value.
+ *
+ * Use Curses.mouseinterval(-1) to obtain the interval without
+ * altering it.
+ *
+ * The default is one sixth of a second.
+ */
static VALUE
curses_mouseinterval(VALUE obj, VALUE interval)
{
+ curses_stdscr();
return mouseinterval(NUM2INT(interval)) ? Qtrue : Qfalse;
}
+/*
+ * Document-method: Curses.mousemask
+ * call-seq: mousemask(mask)
+ *
+ * Returns the +mask+ of the reportable events
+ */
static VALUE
curses_mousemask(VALUE obj, VALUE mask)
{
+ curses_stdscr();
return INT2NUM(mousemask(NUM2UINT(mask),NULL));
}
@@ -794,18 +1335,55 @@ static VALUE func_name (VALUE mouse) \
return (UINT2NUM(mdata->mevent -> mem)); \
}
+/*
+ * Document-method: Curses::MouseEvent.eid
+ *
+ * Returns the current mouse id
+ */
DEFINE_MOUSE_GET_MEMBER(curs_mouse_id, id)
+/*
+ * Document-method: Curses::MouseEvent.x
+ *
+ * Returns the current mouse's X coordinate
+ */
DEFINE_MOUSE_GET_MEMBER(curs_mouse_x, x)
+/*
+ * Document-method: Curses::MouseEvent.y
+ *
+ * Returns the current mouse's Y coordinate
+ */
DEFINE_MOUSE_GET_MEMBER(curs_mouse_y, y)
+/*
+ * Document-method: Curses::MouseEvent.z
+ *
+ * Returns the current mouse's Z coordinate
+ */
DEFINE_MOUSE_GET_MEMBER(curs_mouse_z, z)
+/*
+ * Document-method: Curses::MouseEvent.bstate
+ *
+ * Returns the current mouse's button state. Use this with the button state
+ * constants to determine which buttons were pressed.
+ */
DEFINE_MOUSE_GET_MEMBER(curs_mouse_bstate, bstate)
#undef define_curs_mouse_member
#endif /* USE_MOUSE */
#ifdef HAVE_TIMEOUT
+/*
+ * Document-method: Curses.timeout=
+ * call-seq: timeout=(delay)
+ *
+ * Sets block and non-blocking reads for the window.
+ * - If delay is negative, blocking read is used (i.e., waits indefinitely for input).
+ * - If delay is zero, then non-blocking read is used (i.e., read returns ERR if no input is waiting).
+ * - If delay is positive, then read blocks for delay milliseconds, and returns ERR if there is still no input.
+ *
+ */
static VALUE
curses_timeout(VALUE obj, VALUE delay)
{
+ curses_stdscr();
timeout(NUM2INT(delay));
return Qnil;
}
@@ -814,9 +1392,18 @@ curses_timeout(VALUE obj, VALUE delay)
#endif
#ifdef HAVE_DEF_PROG_MODE
+/*
+ * Document-method: Curses.def_prog_mode
+ *
+ * Save the current terminal modes as the "program"
+ * state for use by the Curses.reset_prog_mode
+ *
+ * This is done automatically by Curses.init_screen
+ */
static VALUE
curses_def_prog_mode(VALUE obj)
{
+ curses_stdscr();
return def_prog_mode() == OK ? Qtrue : Qfalse;
}
#else
@@ -824,9 +1411,18 @@ curses_def_prog_mode(VALUE obj)
#endif
#ifdef HAVE_RESET_PROG_MODE
+/*
+ * Document-method: Curses.reset_prog_mode
+ *
+ * Reset the current terminal modes to the saved state
+ * by the Curses.def_prog_mode
+ *
+ * This is done automatically by Curses.close_screen
+ */
static VALUE
curses_reset_prog_mode(VALUE obj)
{
+ curses_stdscr();
return reset_prog_mode() == OK ? Qtrue : Qfalse;
}
#else
@@ -835,7 +1431,7 @@ curses_reset_prog_mode(VALUE obj)
/*-------------------------- class Window --------------------------*/
-/* def self.allocate */
+/* returns a Curses::Window object */
static VALUE
window_s_allocate(VALUE class)
{
@@ -844,7 +1440,17 @@ window_s_allocate(VALUE class)
return Data_Make_Struct(class, struct windata, 0, free_window, winp);
}
-/* def initialize(h, w, top, left) */
+/*
+ * Document-method: Curses::Window.new
+ * call-seq: new(height, width, top, left)
+ *
+ * Contruct a new Curses::Window with constraints of
+ * +height+ lines, +width+ columns, begin at +top+ line, and begin +left+ most column.
+ *
+ * A new window using full screen is called as
+ * Curses::Window.new(0,0,0,0)
+ *
+ */
static VALUE
window_initialize(VALUE obj, VALUE h, VALUE w, VALUE top, VALUE left)
{
@@ -862,7 +1468,14 @@ window_initialize(VALUE obj, VALUE h, VALUE w, VALUE top, VALUE left)
return obj;
}
-/* def subwin(height, width, top, left) */
+/*
+ * Document-method: Curses::Window.subwin
+ * call-seq: subwin(height, width, top, left)
+ *
+ * Contruct a new subwindow with constraints of
+ * +height+ lines, +width+ columns, begin at +top+ line, and begin +left+ most column.
+ *
+ */
static VALUE
window_subwin(VALUE obj, VALUE height, VALUE width, VALUE top, VALUE left)
{
@@ -882,7 +1495,11 @@ window_subwin(VALUE obj, VALUE height, VALUE width, VALUE top, VALUE left)
return win;
}
-/* def close */
+/*
+ * Document-method: Curses::Window.close
+ *
+ * Deletes the window, and frees the memory
+ */
static VALUE
window_close(VALUE obj)
{
@@ -895,7 +1512,11 @@ window_close(VALUE obj)
return Qnil;
}
-/* def clear */
+/*
+ * Document-method: Curses::Window.clear
+ *
+ * Clear the window.
+ */
static VALUE
window_clear(VALUE obj)
{
@@ -907,7 +1528,11 @@ window_clear(VALUE obj)
return Qnil;
}
-/* def clrtoeol */
+/*
+ * Document-method: Curses::Window.clrtoeol
+ *
+ * Clear the window to the end of line, that the cursor is currently on.
+ */
static VALUE
window_clrtoeol(VALUE obj)
{
@@ -919,7 +1544,12 @@ window_clrtoeol(VALUE obj)
return Qnil;
}
-/* def refresh */
+/*
+ * Document-method: Curses::Window.refresh
+ *
+ * Refreshes the windows and lines.
+ *
+ */
static VALUE
window_refresh(VALUE obj)
{
@@ -931,7 +1561,14 @@ window_refresh(VALUE obj)
return Qnil;
}
-/* def noutrefresh */
+/*
+ * Document-method: Curses::Window.noutrefresh
+ *
+ * Refreshes the windows and lines.
+ *
+ * Curses::Window.noutrefresh allows multiple updates with
+ * more efficiency than Curses::Window.refresh alone.
+ */
static VALUE
window_noutrefresh(VALUE obj)
{
@@ -947,7 +1584,12 @@ window_noutrefresh(VALUE obj)
return Qnil;
}
-/* def move(y, x) */
+/*
+ * Document-method: Curses::Window.move
+ * call-seq: move(y,x)
+ *
+ * Moves the window so that the upper left-hand corner is at position (+y+, +x+)
+ */
static VALUE
window_move(VALUE obj, VALUE y, VALUE x)
{
@@ -959,7 +1601,15 @@ window_move(VALUE obj, VALUE y, VALUE x)
return Qnil;
}
-/* def setpos(y, x) */
+/*
+ * Document-method: Curses::Window.setpos
+ * call-seq: setpos(y, x)
+ *
+ * A setter for the position of the cursor
+ * in the current window,
+ * using coordinates +x+ and +y+
+ *
+ */
static VALUE
window_setpos(VALUE obj, VALUE y, VALUE x)
{
@@ -970,7 +1620,11 @@ window_setpos(VALUE obj, VALUE y, VALUE x)
return Qnil;
}
-/* def cury */
+/*
+ * Document-method: Curses::Window.cury
+ *
+ * A getter for the current line (Y coord) of the window
+ */
static VALUE
window_cury(VALUE obj)
{
@@ -982,7 +1636,11 @@ window_cury(VALUE obj)
return INT2FIX(y);
}
-/* def curx */
+/*
+ * Document-method: Curses::Window.curx
+ *
+ * A getter for the current column (X coord) of the window
+ */
static VALUE
window_curx(VALUE obj)
{
@@ -994,7 +1652,11 @@ window_curx(VALUE obj)
return INT2FIX(x);
}
-/* def maxy */
+/*
+ * Document-method: Curses::Window.maxy
+ *
+ * A getter for the maximum lines for the window
+ */
static VALUE
window_maxy(VALUE obj)
{
@@ -1014,7 +1676,11 @@ window_maxy(VALUE obj)
#endif
}
-/* def maxx */
+/*
+ * Document-method: Curses::Window.maxx
+ *
+ * A getter for the maximum columns for the window
+ */
static VALUE
window_maxx(VALUE obj)
{
@@ -1034,7 +1700,11 @@ window_maxx(VALUE obj)
#endif
}
-/* def begy */
+/*
+ * Document-method: Curses::Window.begy
+ *
+ * A getter for the beginning line (Y coord) of the window
+ */
static VALUE
window_begy(VALUE obj)
{
@@ -1050,7 +1720,11 @@ window_begy(VALUE obj)
#endif
}
-/* def begx */
+/*
+ * Document-method: Curses::Window.begx
+ *
+ * A getter for the beginning column (X coord) of the window
+ */
static VALUE
window_begx(VALUE obj)
{
@@ -1066,7 +1740,17 @@ window_begx(VALUE obj)
#endif
}
-/* def box(vert, hor) */
+/*
+ * Document-method: Curses::Window.box
+ * call-seq: box(vert, hor)
+ *
+ * set the characters to frame the window in.
+ * The vertical +vert+ and horizontal +hor+ character.
+ *
+ * win = Curses::Window.new(5,5,5,5)
+ * win.box(?|, ?-)
+ *
+ */
static VALUE
window_box(int argc, VALUE *argv, VALUE self)
{
@@ -1100,7 +1784,15 @@ window_box(int argc, VALUE *argv, VALUE self)
return Qnil;
}
-/* def standout */
+/*
+ * Document-method: Curses::Window.standout
+ *
+ * Enables the best highlighting mode of the terminal.
+ *
+ * This is equivalent to Curses::Window.attron(A_STANDOUT)
+ *
+ * see also Curses::Window.attrset
+ */
static VALUE
window_standout(VALUE obj)
{
@@ -1111,7 +1803,15 @@ window_standout(VALUE obj)
return Qnil;
}
-/* def standend */
+/*
+ * Document-method: Curses::Window.standend
+ *
+ * Enables the Normal display (no highlight)
+ *
+ * This is equivalent to Curses::Window.attron(A_NORMAL)
+ *
+ * see also Curses::Window.attrset
+ */
static VALUE
window_standend(VALUE obj)
{
@@ -1122,7 +1822,11 @@ window_standend(VALUE obj)
return Qnil;
}
-/* def inch */
+/*
+ * Document-method: Curses::Window.inch
+ *
+ * Returns the character at the current position of the window.
+ */
static VALUE
window_inch(VALUE obj)
{
@@ -1132,7 +1836,14 @@ window_inch(VALUE obj)
return CH2FIX(winch(winp->window));
}
-/* def addch(ch) */
+/*
+ * Document-method: Curses::Window.addch
+ * call-seq: addch(ch)
+ *
+ * Add a character +ch+, with attributes, to the window, then advance the cursor.
+ *
+ * see also the system manual for curs_addch(3)
+ */
static VALUE
window_addch(VALUE obj, VALUE ch)
{
@@ -1144,7 +1855,13 @@ window_addch(VALUE obj, VALUE ch)
return Qnil;
}
-/* def insch(ch) */
+/*
+ * Document-method: Curses::Window.insch
+ * call-seq: insch(ch)
+ *
+ * Insert a character +ch+, before the cursor, in the current window
+ *
+ */
static VALUE
window_insch(VALUE obj, VALUE ch)
{
@@ -1156,7 +1873,13 @@ window_insch(VALUE obj, VALUE ch)
return Qnil;
}
-/* def addstr(str) */
+/*
+ * Document-method: Curses::Window.addstr
+ * call-seq: addstr(str)
+ *
+ * add a string of characters +str+, to the window and advance cursor
+ *
+ */
static VALUE
window_addstr(VALUE obj, VALUE str)
{
@@ -1171,7 +1894,16 @@ window_addstr(VALUE obj, VALUE str)
return Qnil;
}
-/* def <<(str) */
+/*
+ * Document-method: Curses::Window.<<
+ *
+ * call-seq:
+ * <<(str)
+ *
+ * Add String +str+ to the current string.
+ *
+ * See also Curses::Window.addstr
+ */
static VALUE
window_addstr2(VALUE obj, VALUE str)
{
@@ -1179,16 +1911,38 @@ window_addstr2(VALUE obj, VALUE str)
return obj;
}
-/* def getch */
+struct wgetch_arg {
+ WINDOW *win;
+ int c;
+};
+
+static VALUE
+wgetch_func(void *_arg)
+{
+ struct wgetch_arg *arg = (struct wgetch_arg *)_arg;
+ arg->c = wgetch(arg->win);
+ return Qnil;
+}
+
+/*
+ * Document-method: Curses::Window.getch
+ *
+ * Read and returns a character from the window.
+ *
+ * See Curses::Key to all the function KEY_* available
+ *
+ */
static VALUE
window_getch(VALUE obj)
{
struct windata *winp;
+ struct wgetch_arg arg;
int c;
- rb_read_check(stdin);
GetWINDOW(obj, winp);
- c = wgetch(winp->window);
+ arg.win = winp->window;
+ rb_thread_blocking_region(wgetch_func, (void *)&arg, RUBY_UBF_IO, 0);
+ c = arg.c;
if (c == EOF) return Qnil;
if (rb_isprint(c)) {
char ch = (char)c;
@@ -1198,24 +1952,47 @@ window_getch(VALUE obj)
return UINT2NUM(c);
}
-/* def getstr */
+struct wgetstr_arg {
+ WINDOW *win;
+ char rtn[GETSTR_BUF_SIZE];
+};
+
+static VALUE
+wgetstr_func(void *_arg)
+{
+ struct wgetstr_arg *arg = (struct wgetstr_arg *)_arg;
+#if defined(HAVE_WGETNSTR)
+ wgetnstr(arg->win, arg->rtn, GETSTR_BUF_SIZE-1);
+#else
+ wgetstr(arg->win, arg->rtn);
+#endif
+ return Qnil;
+}
+
+/*
+ * Document-method: Curses::Window.getstr
+ *
+ * This is equivalent to a series f Curses::Window.getch calls
+ *
+ */
static VALUE
window_getstr(VALUE obj)
{
struct windata *winp;
- char rtn[1024]; /* This should be big enough.. I hope */
+ struct wgetstr_arg arg;
GetWINDOW(obj, winp);
- rb_read_check(stdin);
-#if defined(HAVE_WGETNSTR)
- wgetnstr(winp->window, rtn, 1023);
-#else
- wgetstr(winp->window, rtn);
-#endif
- return rb_locale_str_new_cstr(rtn);
+ arg.win = winp->window;
+ rb_thread_blocking_region(wgetstr_func, (void *)&arg, RUBY_UBF_IO, 0);
+ return rb_locale_str_new_cstr(arg.rtn);
}
-/* def delch */
+/*
+ * Document-method: Curses::Window.delch
+ *
+ * Delete the character under the cursor
+ *
+ */
static VALUE
window_delch(VALUE obj)
{
@@ -1226,7 +2003,12 @@ window_delch(VALUE obj)
return Qnil;
}
-/* def delelteln */
+/*
+ * Document-method: Curses::Window.deleteln
+ *
+ * Delete the line under the cursor.
+ *
+ */
static VALUE
window_deleteln(VALUE obj)
{
@@ -1239,7 +2021,12 @@ window_deleteln(VALUE obj)
return Qnil;
}
-/* def insertln */
+/*
+ * Document-method: Curses::Window.insertln
+ *
+ * Inserts a line above the cursor, and the bottom line is lost
+ *
+ */
static VALUE
window_insertln(VALUE obj)
{
@@ -1252,6 +2039,21 @@ window_insertln(VALUE obj)
return Qnil;
}
+/*
+ * Document-method: Curses::Window.scrollok
+ * call-seq: scrollok(bool)
+ *
+ * Controls what happens when the cursor of a window
+ * is moved off the edge of the window or scrolling region,
+ * either as a result of a newline action on the bottom line,
+ * or typing the last character of the last line.
+ *
+ * If disabled, (+bool+ is false), the cursor is left on the bottom line.
+ *
+ * If enabled, (+bool+ is true), the window is scrolled up one line
+ * (Note that to get the physical scrolling effect on the terminal,
+ * it is also necessary to call Curses::Window.idlok)
+ */
static VALUE
window_scrollok(VALUE obj, VALUE bf)
{
@@ -1262,6 +2064,22 @@ window_scrollok(VALUE obj, VALUE bf)
return Qnil;
}
+/*
+ * Document-method: Curses::Window.idlok
+ * call-seq: idlok(bool)
+ *
+ * If +bool+ is +true+ curses considers using the hardware insert/delete
+ * line feature of terminals so equipped.
+ *
+ * If +bool+ is +false+, disables use of line insertion and deletion.
+ * This option should be enabled only if the application needs insert/delete
+ * line, for example, for a screen editor.
+ *
+ * It is disabled by default because insert/delete line tends to be visually
+ * annoying when used in applications where it is not really needed.
+ * If insert/delete line cannot be used, curses redraws the changed portions of all lines.
+ *
+ */
static VALUE
window_idlok(VALUE obj, VALUE bf)
{
@@ -1272,6 +2090,20 @@ window_idlok(VALUE obj, VALUE bf)
return Qnil;
}
+/*
+ * Document-method: Curses::Window.setscrreg
+ * call-seq:
+ * setscrreg(top, bottom)
+ *
+ * Set a software scrolling region in a window.
+ * +top+ and +bottom+ are lines numbers of the margin.
+ *
+ * If this option and Curses::Window.scrollok are enabled, an attempt to move
+ * off the bottom margin line causes all lines in the scrolling region to
+ * scroll one line in the direction of the first line. Only the text of the
+ * window is scrolled.
+ *
+ */
static VALUE
window_setscrreg(VALUE obj, VALUE top, VALUE bottom)
{
@@ -1289,6 +2121,13 @@ window_setscrreg(VALUE obj, VALUE top, VALUE bottom)
}
#if defined(USE_COLOR) && defined(HAVE_WCOLOR_SET)
+/*
+ * Document-method: Curses::Window.color_set
+ * call-seq: color_set(col)
+ *
+ * Sets the current color of the given window to the
+ * foreground/background combination described by the Fixnum +col+.
+ */
static VALUE
window_color_set(VALUE obj, VALUE col)
{
@@ -1301,6 +2140,11 @@ window_color_set(VALUE obj, VALUE col)
}
#endif /* defined(USE_COLOR) && defined(HAVE_WCOLOR_SET) */
+/*
+ * Document-method: Curses::Window.scroll
+ *
+ * Scrolls the current window up one line.
+ */
static VALUE
window_scroll(VALUE obj)
{
@@ -1311,6 +2155,18 @@ window_scroll(VALUE obj)
return (scroll(winp->window) == OK) ? Qtrue : Qfalse;
}
+/*
+ * Document-method: Curses::Window.scrl
+ * call-seq: scrl(num)
+ *
+ * Scrolls the current window Fixnum +num+ lines.
+ * The current cursor position is not changed.
+ *
+ * For positive +num+, it scrolls up.
+ *
+ * For negative +num+, it scrolls down.
+ *
+ */
static VALUE
window_scrl(VALUE obj, VALUE n)
{
@@ -1325,6 +2181,14 @@ window_scrl(VALUE obj, VALUE n)
#endif
}
+/*
+ * Document-method: Curses::Window.attroff
+ * call-seq: attroff(attrs)
+ *
+ * Turns on the named attributes +attrs+ without affecting any others.
+ *
+ * See also Curses::Window.attrset
+ */
static VALUE
window_attroff(VALUE obj, VALUE attrs)
{
@@ -1338,6 +2202,15 @@ window_attroff(VALUE obj, VALUE attrs)
#endif
}
+/*
+ * Document-method: Curses::Window.attron
+ * call-seq: attron(attrs)
+ *
+ * Turns off the named attributes +attrs+
+ * without turning any other attributes on or off.
+ *
+ * See also Curses::Window.attrset
+ */
static VALUE
window_attron(VALUE obj, VALUE attrs)
{
@@ -1360,6 +2233,32 @@ window_attron(VALUE obj, VALUE attrs)
#endif
}
+/*
+ * Document-method: Curses::Window.attrset
+ * call-seq: attrset(attrs)
+ *
+ * Sets the current attributes of the given window to +attrs+.
+ *
+ * The following video attributes, defined in <curses.h>, can
+ * be passed to the routines Curses::Window.attron, Curses::Window.attroff,
+ * and Curses::Window.attrset, or OR'd with the characters passed to addch.
+ * A_NORMAL Normal display (no highlight)
+ * A_STANDOUT Best highlighting mode of the terminal.
+ * A_UNDERLINE Underlining
+ * A_REVERSE Reverse video
+ * A_BLINK Blinking
+ * A_DIM Half bright
+ * A_BOLD Extra bright or bold
+ * A_PROTECT Protected mode
+ * A_INVIS Invisible or blank mode
+ * A_ALTCHARSET Alternate character set
+ * A_CHARTEXT Bit-mask to extract a character
+ * COLOR_PAIR(n) Color-pair number n
+ *
+ * TODO: provide some examples here.
+ *
+ * see also system manual curs_attr(3)
+ */
static VALUE
window_attrset(VALUE obj, VALUE attrs)
{
@@ -1373,6 +2272,15 @@ window_attrset(VALUE obj, VALUE attrs)
#endif
}
+/*
+ * Document-method: Curses::Window.bkgdset
+ * call-seq: bkgdset(ch)
+ *
+ * Manipulate the background of the current window
+ * with character Integer +ch+
+ *
+ * see also Curses.bkgdset
+ */
static VALUE
window_bkgdset(VALUE obj, VALUE ch)
{
@@ -1385,6 +2293,15 @@ window_bkgdset(VALUE obj, VALUE ch)
return Qnil;
}
+/*
+ * Document-method: Curses::Window.bkgd
+ * call-seq: bkgd(ch)
+ *
+ * Set the background of the current window
+ * and apply character Integer +ch+ to every character.
+ *
+ * see also Curses.bkgd
+ */
static VALUE
window_bkgd(VALUE obj, VALUE ch)
{
@@ -1398,6 +2315,11 @@ window_bkgd(VALUE obj, VALUE ch)
#endif
}
+/*
+ * Document-method: Curses::Window.getbkgd
+ *
+ * Returns an Interer (+ch+) for the character property in the current window.
+ */
static VALUE
window_getbkgd(VALUE obj)
{
@@ -1412,6 +2334,13 @@ window_getbkgd(VALUE obj)
#endif
}
+/*
+ * Document-method: Curses::Window.resize
+ * call-seq: resize(lines, cols)
+ *
+ * Resize the current window to Fixnum +lines+ and Fixnum +cols+
+ *
+ */
static VALUE
window_resize(VALUE obj, VALUE lin, VALUE col)
{
@@ -1427,6 +2356,33 @@ window_resize(VALUE obj, VALUE lin, VALUE col)
#ifdef HAVE_KEYPAD
+/*
+ * Document-method: Curses::Window.keypad=
+ * call-seq:
+ * keypad=(bool)
+ *
+ * See Curses::Window.keypad
+ */
+
+/*
+ * Document-method: Curses::Window.keypad
+ * call-seq:
+ * keypad(bool)
+ *
+ * Enables the keypad of the user's terminal.
+ *
+ * If enabled (+bool+ is +true+), the user can press a function key
+ * (such as an arrow key) and wgetch returns a single value representing
+ * the function key, as in KEY_LEFT. If disabled (+bool+ is +false+),
+ * curses does not treat function keys specially and the program has to
+ * interpret the escape sequences itself. If the keypad in the terminal
+ * can be turned on (made to transmit) and off (made to work locally),
+ * turning on this option causes the terminal keypad to be turned on when
+ * Curses::Window.getch is called.
+ *
+ * The default value for keypad is false.
+ *
+ */
static VALUE
window_keypad(VALUE obj, VALUE val)
{
@@ -1448,6 +2404,15 @@ window_keypad(VALUE obj, VALUE val)
#endif
#ifdef HAVE_NODELAY
+/*
+ * Document-method: Curses::Window.nodelay
+ * call-seq: nodelay(bool)
+ *
+ * Causes Curses::Window.getch to be a non-blocking call. If no input is ready, getch returns ERR.
+ *
+ * If disabled (+bool+ is +false+), Curses::Window.getch waits until a key is pressed.
+ *
+ */
static VALUE
window_nodelay(VALUE obj, VALUE val)
{
@@ -1467,6 +2432,16 @@ window_nodelay(VALUE obj, VALUE val)
#endif
#ifdef HAVE_WTIMEOUT
+/*
+ * Document-method: Curses::Window.timeout=
+ * call-seq: timeout=(delay)
+ *
+ * Sets block and non-blocking reads for the window.
+ * - If delay is negative, blocking read is used (i.e., waits indefinitely for input).
+ * - If delay is zero, then non-blocking read is used (i.e., read returns ERR if no input is waiting).
+ * - If delay is positive, then read blocks for delay milliseconds, and returns ERR if there is still no input.
+ *
+ */
static VALUE
window_timeout(VALUE obj, VALUE delay)
{
@@ -1481,15 +2456,68 @@ window_timeout(VALUE obj, VALUE delay)
#endif
/*------------------------- Initialization -------------------------*/
+
+/*
+ * Document-module: Curses
+ *
+ * == Description
+ * An implementation of the CRT screen handling and optimization library.
+ *
+ * == Structures and such
+ *
+ * === Classes
+ *
+ * * Curses::Window - class with the means to draw a window or box
+ * * Curses::MouseEvent - class for collecting mouse events
+ *
+ * === Modules
+ *
+ * Curses:: The curses implementation
+ * Curses::Key:: Collection of constants for keypress events
+ *
+ * == Examples
+ *
+ * * hello.rb
+ * :include: hello.rb
+ *
+ *
+ * * rain.rb
+ * :include: rain.rb
+ *
+ *
+ */
void
Init_curses(void)
{
mCurses = rb_define_module("Curses");
+
+ /*
+ * Document-module: Curses::Key
+ *
+ *
+ * a container for the KEY_* values.
+ *
+ * See also system manual for getch(3)
+ *
+ */
mKey = rb_define_module_under(mCurses, "Key");
rb_gc_register_address(&rb_stdscr);
#ifdef USE_MOUSE
+ /*
+ * Document-class: Curses::MouseEvent
+ *
+ * == Description
+ *
+ * Curses::MouseEvent
+ *
+ * == Example
+ *
+ * * mouse.rb
+ * :include: mouse.rb
+ *
+ */
cMouseEvent = rb_define_class_under(mCurses,"MouseEvent",rb_cObject);
rb_undef_method(CLASS_OF(cMouseEvent),"new");
rb_define_method(cMouseEvent, "eid", curs_mouse_id, 0);
@@ -1576,6 +2604,36 @@ Init_curses(void)
rb_define_module_function(mCurses, "def_prog_mode", curses_def_prog_mode, 0);
rb_define_module_function(mCurses, "reset_prog_mode", curses_reset_prog_mode, 0);
+ /*
+ * Document-class: Curses::Window
+ *
+ * == Description
+ *
+ * The means by which to create and manage frames or windows.
+ * While there may be more than one window at a time, only one window
+ * will receive input.
+ *
+ * == Usage
+ *
+ * require 'curses'
+ *
+ * Curses.init_screen()
+ *
+ * my_str = "LOOK! PONIES!"
+ * win = Curses::Window.new( 8, (my_str.length + 10),
+ * (Curses.lines - 8) / 2,
+ * (Curses.cols - (my_str.length + 10)) / 2 )
+ * win.box("|", "-")
+ * win.setpos(2,3)
+ * win.addstr(my_str)
+ * # or even
+ * win << "\nORLY"
+ * win << "\nYES!! " + my_str
+ * win.refresh
+ * win.getch
+ * win.close
+ *
+ */
cWindow = rb_define_class_under(mCurses, "Window", rb_cData);
rb_define_alloc_func(cWindow, window_s_allocate);
rb_define_method(cWindow, "initialize", window_initialize, 4);
@@ -1631,165 +2689,572 @@ Init_curses(void)
#define rb_curses_define_const(c) rb_define_const(mCurses,#c,UINT2NUM(c))
#ifdef USE_COLOR
+ /* Document-const: A_ATTRIBUTES
+ *
+ * Character attribute mask:
+ * Bit-mask to extract attributes
+ *
+ * See Curses.inch or Curses::Window.inch
+ */
rb_curses_define_const(A_ATTRIBUTES);
#ifdef A_NORMAL
+ /* Document-const: A_NORMAL
+ *
+ * Attribute mask:
+ * Normal display (no highlight)
+ *
+ * See Curses.attrset
+ */
rb_curses_define_const(A_NORMAL);
#endif
+ /* Document-const: A_STANDOUT
+ *
+ * Attribute mask:
+ * Best highlighting mode of the terminal.
+ *
+ * See Curses.attrset
+ */
rb_curses_define_const(A_STANDOUT);
+ /* Document-const: A_UNDERLINE
+ *
+ * Attribute mask:
+ * Underlining
+ *
+ * See Curses.attrset
+ */
rb_curses_define_const(A_UNDERLINE);
+ /* Document-const: A_REVERSE
+ *
+ * Attribute mask:
+ * Reverse video
+ *
+ * See Curses.attrset
+ */
rb_curses_define_const(A_REVERSE);
+ /* Document-const: A_BLINK
+ *
+ * Attribute mask:
+ * Blinking
+ *
+ * See Curses.attrset
+ */
rb_curses_define_const(A_BLINK);
+ /* Document-const: A_DIM
+ *
+ * Attribute mask:
+ * Half bright
+ *
+ * See Curses.attrset
+ */
rb_curses_define_const(A_DIM);
+ /* Document-const: A_BOLD
+ *
+ * Attribute mask:
+ * Extra bright or bold
+ *
+ * See Curses.attrset
+ */
rb_curses_define_const(A_BOLD);
+ /* Document-const: A_PROTECT
+ *
+ * Attribute mask:
+ * Protected mode
+ *
+ * See Curses.attrset
+ */
rb_curses_define_const(A_PROTECT);
#ifdef A_INVIS /* for NetBSD */
+ /* Document-const: A_INVIS
+ *
+ * Attribute mask:
+ * Invisible or blank mode
+ *
+ * See Curses.attrset
+ */
rb_curses_define_const(A_INVIS);
#endif
+ /* Document-const: A_ALTCHARSET
+ *
+ * Attribute mask:
+ * Alternate character set
+ *
+ * See Curses.attrset
+ */
rb_curses_define_const(A_ALTCHARSET);
+ /* Document-const: A_CHARTEXT
+ *
+ * Attribute mask:
+ * Bit-mask to extract a character
+ *
+ * See Curses.attrset
+ */
rb_curses_define_const(A_CHARTEXT);
#ifdef A_HORIZONTAL
+ /* Document-const: A_HORIZONTAL
+ *
+ * Attribute mask:
+ * horizontal highlight
+ *
+ * Check system curs_attr(3x) for support
+ */
rb_curses_define_const(A_HORIZONTAL);
#endif
#ifdef A_LEFT
+ /* Document-const: A_LEFT
+ *
+ * Attribute mask:
+ * left highlight
+ *
+ * Check system curs_attr(3x) for support
+ */
rb_curses_define_const(A_LEFT);
#endif
#ifdef A_LOW
+ /* Document-const: A_LOW
+ *
+ * Attribute mask:
+ * low highlight
+ *
+ * Check system curs_attr(3x) for support
+ */
rb_curses_define_const(A_LOW);
#endif
#ifdef A_RIGHT
+ /* Document-const: A_RIGHT
+ *
+ * Attribute mask:
+ * right highlight
+ *
+ * Check system curs_attr(3x) for support
+ */
rb_curses_define_const(A_RIGHT);
#endif
#ifdef A_TOP
+ /* Document-const: A_TOP
+ *
+ * Attribute mask:
+ * top highlight
+ *
+ * Check system curs_attr(3x) for support
+ */
rb_curses_define_const(A_TOP);
#endif
#ifdef A_VERTICAL
+ /* Document-const: A_VERTICAL
+ *
+ * Attribute mask:
+ * vertical highlight
+ *
+ * Check system curs_attr(3x) for support
+ */
rb_curses_define_const(A_VERTICAL);
#endif
+ /* Document-const: A_COLOR
+ *
+ * Character attribute mask:
+ * Bit-mask to extract color-pair field information
+ *
+ * See Curses.inch or Curses::Window.inch
+ */
rb_curses_define_const(A_COLOR);
#ifdef COLORS
+ /*
+ * Document-const: Curses::COLORS
+ *
+ * Number of the colors available
+ */
rb_curses_define_const(COLORS);
#endif
+ /*
+ * Document-const: Curses::COLOR_BLACK
+ *
+ * Value of the color black
+ */
rb_curses_define_const(COLOR_BLACK);
+ /*
+ * Document-const: COLOR_RED
+ *
+ * Value of the color red
+ */
rb_curses_define_const(COLOR_RED);
+ /*
+ * Document-const: COLOR_GREEN
+ *
+ * Value of the color green
+ */
rb_curses_define_const(COLOR_GREEN);
+ /*
+ * Document-const: COLOR_YELLOW
+ *
+ * Value of the color yellow
+ */
rb_curses_define_const(COLOR_YELLOW);
+ /*
+ * Document-const: COLOR_BLUE
+ *
+ * Value of the color blue
+ */
rb_curses_define_const(COLOR_BLUE);
+ /*
+ * Document-const: COLOR_MAGENTA
+ *
+ * Value of the color magenta
+ */
rb_curses_define_const(COLOR_MAGENTA);
+ /*
+ * Document-const: COLOR_CYAN
+ *
+ * Value of the color cyan
+ */
rb_curses_define_const(COLOR_CYAN);
+ /*
+ * Document-const: COLOR_WHITE
+ *
+ * Value of the color white
+ */
rb_curses_define_const(COLOR_WHITE);
#endif /* USE_COLOR */
#ifdef USE_MOUSE
#ifdef BUTTON1_PRESSED
+ /* Document-const: BUTTON1_PRESSED
+ *
+ * Mouse event mask:
+ * mouse button 1 down
+ *
+ * See Curses.getmouse
+ */
rb_curses_define_const(BUTTON1_PRESSED);
#endif
#ifdef BUTTON1_RELEASED
+ /* Document-const: BUTTON1_RELEASED
+ *
+ * Mouse event mask:
+ * mouse button 1 up
+ *
+ * See Curses.getmouse
+ */
rb_curses_define_const(BUTTON1_RELEASED);
#endif
#ifdef BUTTON1_CLICKED
+ /* Document-const: BUTTON1_CLICKED
+ *
+ * Mouse event mask:
+ * mouse button 1 clicked
+ *
+ * See Curses.getmouse
+ */
rb_curses_define_const(BUTTON1_CLICKED);
#endif
#ifdef BUTTON1_DOUBLE_CLICKED
+ /* Document-const: BUTTON1_DOUBLE_CLICKED
+ *
+ * Mouse event mask:
+ * mouse button 1 double clicked
+ *
+ * See Curses.getmouse
+ */
rb_curses_define_const(BUTTON1_DOUBLE_CLICKED);
#endif
#ifdef BUTTON1_TRIPLE_CLICKED
+ /* Document-const: BUTTON1_TRIPLE_CLICKED
+ *
+ * Mouse event mask:
+ * mouse button 1 triple clicked
+ *
+ * See Curses.getmouse
+ */
rb_curses_define_const(BUTTON1_TRIPLE_CLICKED);
#endif
#ifdef BUTTON2_PRESSED
+ /* Document-const: BUTTON2_PRESSED
+ *
+ * Mouse event mask:
+ * mouse button 2 down
+ *
+ * See Curses.getmouse
+ */
rb_curses_define_const(BUTTON2_PRESSED);
#endif
#ifdef BUTTON2_RELEASED
+ /* Document-const: BUTTON2_RELEASED
+ *
+ * Mouse event mask:
+ * mouse button 2 up
+ *
+ * See Curses.getmouse
+ */
rb_curses_define_const(BUTTON2_RELEASED);
#endif
#ifdef BUTTON2_CLICKED
+ /* Document-const: BUTTON2_CLICKED
+ *
+ * Mouse event mask:
+ * mouse button 2 clicked
+ *
+ * See Curses.getmouse
+ */
rb_curses_define_const(BUTTON2_CLICKED);
#endif
#ifdef BUTTON2_DOUBLE_CLICKED
+ /* Document-const: BUTTON2_DOUBLE_CLICKED
+ *
+ * Mouse event mask:
+ * mouse button 2 double clicked
+ *
+ * See Curses.getmouse
+ */
rb_curses_define_const(BUTTON2_DOUBLE_CLICKED);
#endif
#ifdef BUTTON2_TRIPLE_CLICKED
+ /* Document-const: BUTTON2_TRIPLE_CLICKED
+ *
+ * Mouse event mask:
+ * mouse button 2 triple clicked
+ *
+ * See Curses.getmouse
+ */
rb_curses_define_const(BUTTON2_TRIPLE_CLICKED);
#endif
#ifdef BUTTON3_PRESSED
+ /* Document-const: BUTTON3_PRESSED
+ *
+ * Mouse event mask:
+ * mouse button 3 down
+ *
+ * See Curses.getmouse
+ */
rb_curses_define_const(BUTTON3_PRESSED);
#endif
#ifdef BUTTON3_RELEASED
+ /* Document-const: BUTTON3_RELEASED
+ *
+ * Mouse event mask:
+ * mouse button 3 up
+ *
+ * See Curses.getmouse
+ */
rb_curses_define_const(BUTTON3_RELEASED);
#endif
#ifdef BUTTON3_CLICKED
+ /* Document-const: BUTTON3_CLICKED
+ *
+ * Mouse event mask:
+ * mouse button 3 clicked
+ *
+ * See Curses.getmouse
+ */
rb_curses_define_const(BUTTON3_CLICKED);
#endif
#ifdef BUTTON3_DOUBLE_CLICKED
+ /* Document-const: BUTTON3_DOUBLE_CLICKED
+ *
+ * Mouse event mask:
+ * mouse button 3 double clicked
+ *
+ * See Curses.getmouse
+ */
rb_curses_define_const(BUTTON3_DOUBLE_CLICKED);
#endif
#ifdef BUTTON3_TRIPLE_CLICKED
+ /* Document-const: BUTTON3_TRIPLE_CLICKED
+ *
+ * Mouse event mask:
+ * mouse button 3 triple clicked
+ *
+ * See Curses.getmouse
+ */
rb_curses_define_const(BUTTON3_TRIPLE_CLICKED);
#endif
#ifdef BUTTON4_PRESSED
+ /* Document-const: BUTTON4_PRESSED
+ *
+ * Mouse event mask:
+ * mouse button 4 down
+ *
+ * See Curses.getmouse
+ */
rb_curses_define_const(BUTTON4_PRESSED);
#endif
#ifdef BUTTON4_RELEASED
+ /* Document-const: BUTTON4_RELEASED
+ *
+ * Mouse event mask:
+ * mouse button 4 up
+ *
+ * See Curses.getmouse
+ */
rb_curses_define_const(BUTTON4_RELEASED);
#endif
#ifdef BUTTON4_CLICKED
+ /* Document-const: BUTTON4_CLICKED
+ *
+ * Mouse event mask:
+ * mouse button 4 clicked
+ *
+ * See Curses.getmouse
+ */
rb_curses_define_const(BUTTON4_CLICKED);
#endif
#ifdef BUTTON4_DOUBLE_CLICKED
+ /* Document-const: BUTTON4_DOUBLE_CLICKED
+ *
+ * Mouse event mask:
+ * mouse button 4 double clicked
+ *
+ * See Curses.getmouse
+ */
rb_curses_define_const(BUTTON4_DOUBLE_CLICKED);
#endif
#ifdef BUTTON4_TRIPLE_CLICKED
+ /* Document-const: BUTTON4_TRIPLE_CLICKED
+ *
+ * Mouse event mask:
+ * mouse button 4 triple clicked
+ *
+ * See Curses.getmouse
+ */
rb_curses_define_const(BUTTON4_TRIPLE_CLICKED);
#endif
#ifdef BUTTON_SHIFT
+ /* Document-const: BUTTON_SHIFT
+ *
+ * Mouse event mask:
+ * shift was down during button state change
+ *
+ * See Curses.getmouse
+ */
rb_curses_define_const(BUTTON_SHIFT);
#endif
#ifdef BUTTON_CTRL
+ /* Document-const: BUTTON_CTRL
+ *
+ * Mouse event mask:
+ * control was down during button state change
+ *
+ * See Curses.getmouse
+ */
rb_curses_define_const(BUTTON_CTRL);
#endif
#ifdef BUTTON_ALT
+ /* Document-const: BUTTON_ALT
+ *
+ * Mouse event mask:
+ * alt was down during button state change
+ *
+ * See Curses.getmouse
+ */
rb_curses_define_const(BUTTON_ALT);
#endif
#ifdef ALL_MOUSE_EVENTS
+ /* Document-const: ALL_MOUSE_EVENTS
+ *
+ * Mouse event mask:
+ * report all button state changes
+ *
+ * See Curses.getmouse
+ */
rb_curses_define_const(ALL_MOUSE_EVENTS);
#endif
#ifdef REPORT_MOUSE_POSITION
+ /* Document-const: REPORT_MOUSE_POSITION
+ *
+ * Mouse event mask:
+ * report mouse movement
+ *
+ * See Curses.getmouse
+ */
rb_curses_define_const(REPORT_MOUSE_POSITION);
#endif
#endif /* USE_MOUSE */
#if defined(KEY_MOUSE) && defined(USE_MOUSE)
+ /* Document-const: KEY_MOUSE
+ * Mouse event read
+ */
+ /* Document-const: MOUSE
+ * Mouse event read
+ */
rb_curses_define_const(KEY_MOUSE);
rb_define_const(mKey, "MOUSE", INT2NUM(KEY_MOUSE));
#endif
#ifdef KEY_MIN
+ /* Document-const: KEY_MIN
+ * The minimum allowed curses key value.
+ */
+ /* Document-const: MIN
+ * The minimum allowed curses key value.
+ */
rb_curses_define_const(KEY_MIN);
rb_define_const(mKey, "MIN", INT2NUM(KEY_MIN));
#endif
#ifdef KEY_BREAK
+ /* Document-const: KEY_BREAK
+ * Break key
+ */
+ /* Document-const: BREAK
+ * Break key
+ */
rb_curses_define_const(KEY_BREAK);
rb_define_const(mKey, "BREAK", INT2NUM(KEY_BREAK));
#endif
#ifdef KEY_DOWN
+ /* Document-const: KEY_DOWN
+ * the down arrow key
+ */
+ /* Document-const: DOWN
+ * the down arrow key
+ */
rb_curses_define_const(KEY_DOWN);
rb_define_const(mKey, "DOWN", INT2NUM(KEY_DOWN));
#endif
#ifdef KEY_UP
+ /* Document-const: KEY_UP
+ * the up arrow key
+ */
+ /* Document-const: UP
+ * the up arrow key
+ */
rb_curses_define_const(KEY_UP);
rb_define_const(mKey, "UP", INT2NUM(KEY_UP));
#endif
#ifdef KEY_LEFT
+ /* Document-const: KEY_LEFT
+ * the left arrow key
+ */
+ /* Document-const: LEFT
+ * the left arrow key
+ */
rb_curses_define_const(KEY_LEFT);
rb_define_const(mKey, "LEFT", INT2NUM(KEY_LEFT));
#endif
#ifdef KEY_RIGHT
+ /* Document-const: KEY_RIGHT
+ * the right arrow key
+ */
+ /* Document-const: RIGHT
+ * the right arrow key
+ */
rb_curses_define_const(KEY_RIGHT);
rb_define_const(mKey, "RIGHT", INT2NUM(KEY_RIGHT));
#endif
#ifdef KEY_HOME
+ /* Document-const: KEY_HOME
+ * Home key (upward+left arrow)
+ */
+ /* Document-const: HOME
+ * Home key (upward+left arrow)
+ */
rb_curses_define_const(KEY_HOME);
rb_define_const(mKey, "HOME", INT2NUM(KEY_HOME));
#endif
#ifdef KEY_BACKSPACE
+ /* Document-const: KEY_BACKSPACE
+ * Backspace
+ */
+ /* Document-const: BACKSPACE
+ * Backspace
+ */
rb_curses_define_const(KEY_BACKSPACE);
rb_define_const(mKey, "BACKSPACE", INT2NUM(KEY_BACKSPACE));
#endif
@@ -1807,334 +3272,832 @@ Init_curses(void)
}
#endif
#ifdef KEY_DL
+ /* Document-const: KEY_DL
+ * Delete line
+ */
+ /* Document-const: DL
+ * Delete line
+ */
rb_curses_define_const(KEY_DL);
rb_define_const(mKey, "DL", INT2NUM(KEY_DL));
#endif
#ifdef KEY_IL
+ /* Document-const: KEY_IL
+ * Insert line
+ */
+ /* Document-const: IL
+ * Insert line
+ */
rb_curses_define_const(KEY_IL);
rb_define_const(mKey, "IL", INT2NUM(KEY_IL));
#endif
#ifdef KEY_DC
+ /* Document-const: KEY_DC
+ * Delete character
+ */
+ /* Document-const: DC
+ * Delete character
+ */
rb_curses_define_const(KEY_DC);
rb_define_const(mKey, "DC", INT2NUM(KEY_DC));
#endif
#ifdef KEY_IC
+ /* Document-const: KEY_IC
+ * Insert char or enter insert mode
+ */
+ /* Document-const: IC
+ * Insert char or enter insert mode
+ */
rb_curses_define_const(KEY_IC);
rb_define_const(mKey, "IC", INT2NUM(KEY_IC));
#endif
#ifdef KEY_EIC
+ /* Document-const: KEY_EIC
+ * Enter insert char mode
+ */
+ /* Document-const: EIC
+ * Enter insert char mode
+ */
rb_curses_define_const(KEY_EIC);
rb_define_const(mKey, "EIC", INT2NUM(KEY_EIC));
#endif
#ifdef KEY_CLEAR
+ /* Document-const: KEY_CLEAR
+ * Clear Screen
+ */
+ /* Document-const: CLEAR
+ * Clear Screen
+ */
rb_curses_define_const(KEY_CLEAR);
rb_define_const(mKey, "CLEAR", INT2NUM(KEY_CLEAR));
#endif
#ifdef KEY_EOS
+ /* Document-const: KEY_EOS
+ * Clear to end of screen
+ */
+ /* Document-const: EOS
+ * Clear to end of screen
+ */
rb_curses_define_const(KEY_EOS);
rb_define_const(mKey, "EOS", INT2NUM(KEY_EOS));
#endif
#ifdef KEY_EOL
+ /* Document-const: KEY_EOL
+ * Clear to end of line
+ */
+ /* Document-const: EOL
+ * Clear to end of line
+ */
rb_curses_define_const(KEY_EOL);
rb_define_const(mKey, "EOL", INT2NUM(KEY_EOL));
#endif
#ifdef KEY_SF
+ /* Document-const: KEY_SF
+ * Scroll 1 line forward
+ */
+ /* Document-const: SF
+ * Scroll 1 line forward
+ */
rb_curses_define_const(KEY_SF);
rb_define_const(mKey, "SF", INT2NUM(KEY_SF));
#endif
#ifdef KEY_SR
+ /* Document-const: KEY_SR
+ * Scroll 1 line backware (reverse)
+ */
+ /* Document-const: SR
+ * Scroll 1 line backware (reverse)
+ */
rb_curses_define_const(KEY_SR);
rb_define_const(mKey, "SR", INT2NUM(KEY_SR));
#endif
#ifdef KEY_NPAGE
+ /* Document-const: KEY_NPAGE
+ * Next page
+ */
+ /* Document-const: NPAGE
+ * Next page
+ */
rb_curses_define_const(KEY_NPAGE);
rb_define_const(mKey, "NPAGE", INT2NUM(KEY_NPAGE));
#endif
#ifdef KEY_PPAGE
+ /* Document-const: KEY_PPAGE
+ * Previous page
+ */
+ /* Document-const: PPAGE
+ * Previous page
+ */
rb_curses_define_const(KEY_PPAGE);
rb_define_const(mKey, "PPAGE", INT2NUM(KEY_PPAGE));
#endif
#ifdef KEY_STAB
+ /* Document-const: KEY_STAB
+ * Set tab
+ */
+ /* Document-const: STAB
+ * Set tab
+ */
rb_curses_define_const(KEY_STAB);
rb_define_const(mKey, "STAB", INT2NUM(KEY_STAB));
#endif
#ifdef KEY_CTAB
+ /* Document-const: KEY_CTAB
+ * Clear tab
+ */
+ /* Document-const: CTAB
+ * Clear tab
+ */
rb_curses_define_const(KEY_CTAB);
rb_define_const(mKey, "CTAB", INT2NUM(KEY_CTAB));
#endif
#ifdef KEY_CATAB
+ /* Document-const: KEY_CATAB
+ * Clear all tabs
+ */
+ /* Document-const: CATAB
+ * Clear all tabs
+ */
rb_curses_define_const(KEY_CATAB);
rb_define_const(mKey, "CATAB", INT2NUM(KEY_CATAB));
#endif
#ifdef KEY_ENTER
+ /* Document-const: KEY_ENTER
+ * Enter or send
+ */
+ /* Document-const: ENTER
+ * Enter or send
+ */
rb_curses_define_const(KEY_ENTER);
rb_define_const(mKey, "ENTER", INT2NUM(KEY_ENTER));
#endif
#ifdef KEY_SRESET
+ /* Document-const: KEY_SRESET
+ * Soft (partial) reset
+ */
+ /* Document-const: SRESET
+ * Soft (partial) reset
+ */
rb_curses_define_const(KEY_SRESET);
rb_define_const(mKey, "SRESET", INT2NUM(KEY_SRESET));
#endif
#ifdef KEY_RESET
+ /* Document-const: KEY_RESET
+ * Reset or hard reset
+ */
+ /* Document-const: RESET
+ * Reset or hard reset
+ */
rb_curses_define_const(KEY_RESET);
rb_define_const(mKey, "RESET", INT2NUM(KEY_RESET));
#endif
#ifdef KEY_PRINT
+ /* Document-const: KEY_PRINT
+ * Print or copy
+ */
+ /* Document-const: PRINT
+ * Print or copy
+ */
rb_curses_define_const(KEY_PRINT);
rb_define_const(mKey, "PRINT", INT2NUM(KEY_PRINT));
#endif
#ifdef KEY_LL
+ /* Document-const: KEY_LL
+ * Home down or bottom (lower left)
+ */
+ /* Document-const: LL
+ * Home down or bottom (lower left)
+ */
rb_curses_define_const(KEY_LL);
rb_define_const(mKey, "LL", INT2NUM(KEY_LL));
#endif
#ifdef KEY_A1
+ /* Document-const: KEY_A1
+ * Upper left of keypad
+ */
+ /* Document-const: A1
+ * Upper left of keypad
+ */
rb_curses_define_const(KEY_A1);
rb_define_const(mKey, "A1", INT2NUM(KEY_A1));
#endif
#ifdef KEY_A3
+ /* Document-const: KEY_A3
+ * Upper right of keypad
+ */
+ /* Document-const: A3
+ * Upper right of keypad
+ */
rb_curses_define_const(KEY_A3);
rb_define_const(mKey, "A3", INT2NUM(KEY_A3));
#endif
#ifdef KEY_B2
+ /* Document-const: KEY_B2
+ * Center of keypad
+ */
+ /* Document-const: B2
+ * Center of keypad
+ */
rb_curses_define_const(KEY_B2);
rb_define_const(mKey, "B2", INT2NUM(KEY_B2));
#endif
#ifdef KEY_C1
+ /* Document-const: KEY_C1
+ * Lower left of keypad
+ */
+ /* Document-const: C1
+ * Lower left of keypad
+ */
rb_curses_define_const(KEY_C1);
rb_define_const(mKey, "C1", INT2NUM(KEY_C1));
#endif
#ifdef KEY_C3
+ /* Document-const: KEY_C3
+ * Lower right of keypad
+ */
+ /* Document-const: C3
+ * Lower right of keypad
+ */
rb_curses_define_const(KEY_C3);
rb_define_const(mKey, "C3", INT2NUM(KEY_C3));
#endif
#ifdef KEY_BTAB
+ /* Document-const: BTAB
+ * Back tab key
+ */
+ /* Document-const: KEY_BTAB
+ * Back tab key
+ */
rb_curses_define_const(KEY_BTAB);
rb_define_const(mKey, "BTAB", INT2NUM(KEY_BTAB));
#endif
#ifdef KEY_BEG
+ /* Document-const: KEY_BEG
+ * Beginning key
+ */
+ /* Document-const: BEG
+ * Beginning key
+ */
rb_curses_define_const(KEY_BEG);
rb_define_const(mKey, "BEG", INT2NUM(KEY_BEG));
#endif
#ifdef KEY_CANCEL
+ /* Document-const: KEY_CANCEL
+ * Cancel key
+ */
+ /* Document-const: CANCEL
+ * Cancel key
+ */
rb_curses_define_const(KEY_CANCEL);
rb_define_const(mKey, "CANCEL", INT2NUM(KEY_CANCEL));
#endif
#ifdef KEY_CLOSE
+ /* Document-const: KEY_CLOSE
+ * Close key
+ */
+ /* Document-const: CLOSE
+ * Close key
+ */
rb_curses_define_const(KEY_CLOSE);
rb_define_const(mKey, "CLOSE", INT2NUM(KEY_CLOSE));
#endif
#ifdef KEY_COMMAND
+ /* Document-const: KEY_COMMAND
+ * Cmd (command) key
+ */
+ /* Document-const: COMMAND
+ * Cmd (command) key
+ */
rb_curses_define_const(KEY_COMMAND);
rb_define_const(mKey, "COMMAND", INT2NUM(KEY_COMMAND));
#endif
#ifdef KEY_COPY
+ /* Document-const: KEY_COPY
+ * Copy key
+ */
+ /* Document-const: COPY
+ * Copy key
+ */
rb_curses_define_const(KEY_COPY);
rb_define_const(mKey, "COPY", INT2NUM(KEY_COPY));
#endif
#ifdef KEY_CREATE
+ /* Document-const: KEY_CREATE
+ * Create key
+ */
+ /* Document-const: CREATE
+ * Create key
+ */
rb_curses_define_const(KEY_CREATE);
rb_define_const(mKey, "CREATE", INT2NUM(KEY_CREATE));
#endif
#ifdef KEY_END
+ /* Document-const: KEY_END
+ * End key
+ */
+ /* Document-const: END
+ * End key
+ */
rb_curses_define_const(KEY_END);
rb_define_const(mKey, "END", INT2NUM(KEY_END));
#endif
#ifdef KEY_EXIT
+ /* Document-const: KEY_EXIT
+ * Exit key
+ */
+ /* Document-const: EXIT
+ * Exit key
+ */
rb_curses_define_const(KEY_EXIT);
rb_define_const(mKey, "EXIT", INT2NUM(KEY_EXIT));
#endif
#ifdef KEY_FIND
+ /* Document-const: KEY_FIND
+ * Find key
+ */
+ /* Document-const: FIND
+ * Find key
+ */
rb_curses_define_const(KEY_FIND);
rb_define_const(mKey, "FIND", INT2NUM(KEY_FIND));
#endif
#ifdef KEY_HELP
+ /* Document-const: KEY_HELP
+ * Help key
+ */
+ /* Document-const: HELP
+ * Help key
+ */
rb_curses_define_const(KEY_HELP);
rb_define_const(mKey, "HELP", INT2NUM(KEY_HELP));
#endif
#ifdef KEY_MARK
+ /* Document-const: KEY_MARK
+ * Mark key
+ */
+ /* Document-const: MARK
+ * Mark key
+ */
rb_curses_define_const(KEY_MARK);
rb_define_const(mKey, "MARK", INT2NUM(KEY_MARK));
#endif
#ifdef KEY_MESSAGE
+ /* Document-const: KEY_MESSAGE
+ * Message key
+ */
+ /* Document-const: MESSAGE
+ * Message key
+ */
rb_curses_define_const(KEY_MESSAGE);
rb_define_const(mKey, "MESSAGE", INT2NUM(KEY_MESSAGE));
#endif
#ifdef KEY_MOVE
+ /* Document-const: KEY_MOVE
+ * Move key
+ */
+ /* Document-const: MOVE
+ * Move key
+ */
rb_curses_define_const(KEY_MOVE);
rb_define_const(mKey, "MOVE", INT2NUM(KEY_MOVE));
#endif
#ifdef KEY_NEXT
+ /* Document-const: KEY_NEXT
+ * Next object key
+ */
+ /* Document-const: NEXT
+ * Next object key
+ */
rb_curses_define_const(KEY_NEXT);
rb_define_const(mKey, "NEXT", INT2NUM(KEY_NEXT));
#endif
#ifdef KEY_OPEN
+ /* Document-const: KEY_OPEN
+ * Open key
+ */
+ /* Document-const: OPEN
+ * Open key
+ */
rb_curses_define_const(KEY_OPEN);
rb_define_const(mKey, "OPEN", INT2NUM(KEY_OPEN));
#endif
#ifdef KEY_OPTIONS
+ /* Document-const: KEY_OPTIONS
+ * Options key
+ */
+ /* Document-const: OPTIONS
+ * Options key
+ */
rb_curses_define_const(KEY_OPTIONS);
rb_define_const(mKey, "OPTIONS", INT2NUM(KEY_OPTIONS));
#endif
#ifdef KEY_PREVIOUS
+ /* Document-const: KEY_PREVIOUS
+ * Previous object key
+ */
+ /* Document-const: PREVIOUS
+ * Previous object key
+ */
rb_curses_define_const(KEY_PREVIOUS);
rb_define_const(mKey, "PREVIOUS", INT2NUM(KEY_PREVIOUS));
#endif
#ifdef KEY_REDO
+ /* Document-const: KEY_REDO
+ * Redo key
+ */
+ /* Document-const: REDO
+ * Redo key
+ */
rb_curses_define_const(KEY_REDO);
rb_define_const(mKey, "REDO", INT2NUM(KEY_REDO));
#endif
#ifdef KEY_REFERENCE
+ /* Document-const: KEY_REFERENCE
+ * Reference key
+ */
+ /* Document-const: REFERENCE
+ * Reference key
+ */
rb_curses_define_const(KEY_REFERENCE);
rb_define_const(mKey, "REFERENCE", INT2NUM(KEY_REFERENCE));
#endif
#ifdef KEY_REFRESH
+ /* Document-const: KEY_REFRESH
+ * Refresh key
+ */
+ /* Document-const: REFRESH
+ * Refresh key
+ */
rb_curses_define_const(KEY_REFRESH);
rb_define_const(mKey, "REFRESH", INT2NUM(KEY_REFRESH));
#endif
#ifdef KEY_REPLACE
+ /* Document-const: KEY_REPLACE
+ * Replace key
+ */
+ /* Document-const: REPLACE
+ * Replace key
+ */
rb_curses_define_const(KEY_REPLACE);
rb_define_const(mKey, "REPLACE", INT2NUM(KEY_REPLACE));
#endif
#ifdef KEY_RESTART
+ /* Document-const: KEY_RESTART
+ * Restart key
+ */
+ /* Document-const: RESTART
+ * Restart key
+ */
rb_curses_define_const(KEY_RESTART);
rb_define_const(mKey, "RESTART", INT2NUM(KEY_RESTART));
#endif
#ifdef KEY_RESUME
+ /* Document-const: KEY_RESUME
+ * Resume key
+ */
+ /* Document-const: RESUME
+ * Resume key
+ */
rb_curses_define_const(KEY_RESUME);
rb_define_const(mKey, "RESUME", INT2NUM(KEY_RESUME));
#endif
#ifdef KEY_SAVE
+ /* Document-const: KEY_SAVE
+ * Save key
+ */
+ /* Document-const: SAVE
+ * Save key
+ */
rb_curses_define_const(KEY_SAVE);
rb_define_const(mKey, "SAVE", INT2NUM(KEY_SAVE));
#endif
#ifdef KEY_SBEG
+ /* Document-const: KEY_SBEG
+ * Shifted beginning key
+ */
+ /* Document-const: SBEG
+ * Shifted beginning key
+ */
rb_curses_define_const(KEY_SBEG);
rb_define_const(mKey, "SBEG", INT2NUM(KEY_SBEG));
#endif
#ifdef KEY_SCANCEL
+ /* Document-const: KEY_SCANCEL
+ * Shifted cancel key
+ */
+ /* Document-const: SCANCEL
+ * Shifted cancel key
+ */
rb_curses_define_const(KEY_SCANCEL);
rb_define_const(mKey, "SCANCEL", INT2NUM(KEY_SCANCEL));
#endif
#ifdef KEY_SCOMMAND
+ /* Document-const: KEY_SCOMMAND
+ * Shifted command key
+ */
+ /* Document-const: SCOMMAND
+ * Shifted command key
+ */
rb_curses_define_const(KEY_SCOMMAND);
rb_define_const(mKey, "SCOMMAND", INT2NUM(KEY_SCOMMAND));
#endif
#ifdef KEY_SCOPY
+ /* Document-const: KEY_SCOPY
+ * Shifted copy key
+ */
+ /* Document-const: SCOPY
+ * Shifted copy key
+ */
rb_curses_define_const(KEY_SCOPY);
rb_define_const(mKey, "SCOPY", INT2NUM(KEY_SCOPY));
#endif
#ifdef KEY_SCREATE
+ /* Document-const: KEY_SCREATE
+ * Shifted create key
+ */
+ /* Document-const: SCREATE
+ * Shifted create key
+ */
rb_curses_define_const(KEY_SCREATE);
rb_define_const(mKey, "SCREATE", INT2NUM(KEY_SCREATE));
#endif
#ifdef KEY_SDC
+ /* Document-const: KEY_SDC
+ * Shifted delete char key
+ */
+ /* Document-const: SDC
+ * Shifted delete char key
+ */
rb_curses_define_const(KEY_SDC);
rb_define_const(mKey, "SDC", INT2NUM(KEY_SDC));
#endif
#ifdef KEY_SDL
+ /* Document-const: KEY_SDL
+ * Shifted delete line key
+ */
+ /* Document-const: SDL
+ * Shifted delete line key
+ */
rb_curses_define_const(KEY_SDL);
rb_define_const(mKey, "SDL", INT2NUM(KEY_SDL));
#endif
#ifdef KEY_SELECT
+ /* Document-const: KEY_SELECT
+ * Select key
+ */
+ /* Document-const: SELECT
+ * Select key
+ */
rb_curses_define_const(KEY_SELECT);
rb_define_const(mKey, "SELECT", INT2NUM(KEY_SELECT));
#endif
#ifdef KEY_SEND
+ /* Document-const: KEY_SEND
+ * Shifted end key
+ */
+ /* Document-const: SEND
+ * Shifted end key
+ */
rb_curses_define_const(KEY_SEND);
rb_define_const(mKey, "SEND", INT2NUM(KEY_SEND));
#endif
#ifdef KEY_SEOL
+ /* Document-const: KEY_SEOL
+ * Shifted clear line key
+ */
+ /* Document-const: SEOL
+ * Shifted clear line key
+ */
rb_curses_define_const(KEY_SEOL);
rb_define_const(mKey, "SEOL", INT2NUM(KEY_SEOL));
#endif
#ifdef KEY_SEXIT
+ /* Document-const: KEY_SEXIT
+ * Shifted exit key
+ */
+ /* Document-const: SEXIT
+ * Shifted exit key
+ */
rb_curses_define_const(KEY_SEXIT);
rb_define_const(mKey, "SEXIT", INT2NUM(KEY_SEXIT));
#endif
#ifdef KEY_SFIND
+ /* Document-const: KEY_SFIND
+ * Shifted find key
+ */
+ /* Document-const: SFIND
+ * Shifted find key
+ */
rb_curses_define_const(KEY_SFIND);
rb_define_const(mKey, "SFIND", INT2NUM(KEY_SFIND));
#endif
#ifdef KEY_SHELP
+ /* Document-const: KEY_SHELP
+ * Shifted help key
+ */
+ /* Document-const: SHELP
+ * Shifted help key
+ */
rb_curses_define_const(KEY_SHELP);
rb_define_const(mKey, "SHELP", INT2NUM(KEY_SHELP));
#endif
#ifdef KEY_SHOME
+ /* Document-const: KEY_SHOME
+ * Shifted home key
+ */
+ /* Document-const: SHOME
+ * Shifted home key
+ */
rb_curses_define_const(KEY_SHOME);
rb_define_const(mKey, "SHOME", INT2NUM(KEY_SHOME));
#endif
#ifdef KEY_SIC
+ /* Document-const: KEY_SIC
+ * Shifted input key
+ */
+ /* Document-const: SIC
+ * Shifted input key
+ */
rb_curses_define_const(KEY_SIC);
rb_define_const(mKey, "SIC", INT2NUM(KEY_SIC));
#endif
#ifdef KEY_SLEFT
+ /* Document-const: KEY_SLEFT
+ * Shifted left arrow key
+ */
+ /* Document-const: SLEFT
+ * Shifted left arrow key
+ */
rb_curses_define_const(KEY_SLEFT);
rb_define_const(mKey, "SLEFT", INT2NUM(KEY_SLEFT));
#endif
#ifdef KEY_SMESSAGE
+ /* Document-const: KEY_SMESSAGE
+ * Shifted message key
+ */
+ /* Document-const: SMESSAGE
+ * Shifted message key
+ */
rb_curses_define_const(KEY_SMESSAGE);
rb_define_const(mKey, "SMESSAGE", INT2NUM(KEY_SMESSAGE));
#endif
#ifdef KEY_SMOVE
+ /* Document-const: KEY_SMOVE
+ * Shifted move key
+ */
+ /* Document-const: SMOVE
+ * Shifted move key
+ */
rb_curses_define_const(KEY_SMOVE);
rb_define_const(mKey, "SMOVE", INT2NUM(KEY_SMOVE));
#endif
#ifdef KEY_SNEXT
+ /* Document-const: KEY_SNEXT
+ * Shifted next key
+ */
+ /* Document-const: SNEXT
+ * Shifted next key
+ */
rb_curses_define_const(KEY_SNEXT);
rb_define_const(mKey, "SNEXT", INT2NUM(KEY_SNEXT));
#endif
#ifdef KEY_SOPTIONS
+ /* Document-const: KEY_SOPTIONS
+ * Shifted options key
+ */
+ /* Document-const: SOPTIONS
+ * Shifted options key
+ */
rb_curses_define_const(KEY_SOPTIONS);
rb_define_const(mKey, "SOPTIONS", INT2NUM(KEY_SOPTIONS));
#endif
#ifdef KEY_SPREVIOUS
+ /* Document-const: KEY_SPREVIOUS
+ * Shifted previous key
+ */
+ /* Document-const: SPREVIOUS
+ * Shifted previous key
+ */
rb_curses_define_const(KEY_SPREVIOUS);
rb_define_const(mKey, "SPREVIOUS", INT2NUM(KEY_SPREVIOUS));
#endif
#ifdef KEY_SPRINT
+ /* Document-const: KEY_SPRINT
+ * Shifted print key
+ */
+ /* Document-const: SPRINT
+ * Shifted print key
+ */
rb_curses_define_const(KEY_SPRINT);
rb_define_const(mKey, "SPRINT", INT2NUM(KEY_SPRINT));
#endif
#ifdef KEY_SREDO
+ /* Document-const: KEY_SREDO
+ * Shifted redo key
+ */
+ /* Document-const: SREDO
+ * Shifted redo key
+ */
rb_curses_define_const(KEY_SREDO);
rb_define_const(mKey, "SREDO", INT2NUM(KEY_SREDO));
#endif
#ifdef KEY_SREPLACE
+ /* Document-const: KEY_SREPLACE
+ * Shifted replace key
+ */
+ /* Document-const: SREPLACE
+ * Shifted replace key
+ */
rb_curses_define_const(KEY_SREPLACE);
rb_define_const(mKey, "SREPLACE", INT2NUM(KEY_SREPLACE));
#endif
#ifdef KEY_SRIGHT
+ /* Document-const: KEY_SRIGHT
+ * Shifted right arrow key
+ */
+ /* Document-const: SRIGHT
+ * Shifted right arrow key
+ */
rb_curses_define_const(KEY_SRIGHT);
rb_define_const(mKey, "SRIGHT", INT2NUM(KEY_SRIGHT));
#endif
#ifdef KEY_SRSUME
+ /* Document-const: KEY_SRSUME
+ * Shifted resume key
+ */
+ /* Document-const: SRSUME
+ * Shifted resume key
+ */
rb_curses_define_const(KEY_SRSUME);
rb_define_const(mKey, "SRSUME", INT2NUM(KEY_SRSUME));
#endif
#ifdef KEY_SSAVE
+ /* Document-const: KEY_SSAVE
+ * Shifted save key
+ */
+ /* Document-const: SSAVE
+ * Shifted save key
+ */
rb_curses_define_const(KEY_SSAVE);
rb_define_const(mKey, "SSAVE", INT2NUM(KEY_SSAVE));
#endif
#ifdef KEY_SSUSPEND
+ /* Document-const: KEY_SSUSPEND
+ * Shifted suspend key
+ */
+ /* Document-const: SSUSPEND
+ * Shifted suspend key
+ */
rb_curses_define_const(KEY_SSUSPEND);
rb_define_const(mKey, "SSUSPEND", INT2NUM(KEY_SSUSPEND));
#endif
#ifdef KEY_SUNDO
+ /* Document-const: KEY_SUNDO
+ * Shifted undo key
+ */
+ /* Document-const: SUNDO
+ * Shifted undo key
+ */
rb_curses_define_const(KEY_SUNDO);
rb_define_const(mKey, "SUNDO", INT2NUM(KEY_SUNDO));
#endif
#ifdef KEY_SUSPEND
+ /* Document-const: KEY_SUSPEND
+ * Suspend key
+ */
+ /* Document-const: SUSPEND
+ * Suspend key
+ */
rb_curses_define_const(KEY_SUSPEND);
rb_define_const(mKey, "SUSPEND", INT2NUM(KEY_SUSPEND));
#endif
#ifdef KEY_UNDO
+ /* Document-const: KEY_UNDO
+ * Undo key
+ */
+ /* Document-const: UNDO
+ * Undo key
+ */
rb_curses_define_const(KEY_UNDO);
rb_define_const(mKey, "UNDO", INT2NUM(KEY_UNDO));
#endif
#ifdef KEY_RESIZE
+ /* Document-const: KEY_RESIZE
+ * Screen Resized
+ */
+ /* Document-const: RESIZE
+ * Screen Resized
+ */
rb_curses_define_const(KEY_RESIZE);
rb_define_const(mKey, "RESIZE", INT2NUM(KEY_RESIZE));
#endif
#ifdef KEY_MAX
+ /* Document-const: KEY_MAX
+ * The maximum allowed curses key value.
+ */
+ /* Document-const: MAX
+ * The maximum allowed curses key value.
+ */
rb_curses_define_const(KEY_MAX);
rb_define_const(mKey, "MAX", INT2NUM(KEY_MAX));
#endif
diff --git a/ext/curses/view2.rb b/ext/curses/view2.rb
index 18d9619216..037771a226 100644
--- a/ext/curses/view2.rb
+++ b/ext/curses/view2.rb
@@ -2,114 +2,148 @@
require "curses"
-if ARGV.size != 1 then
- printf("usage: view file\n");
- exit
-end
-begin
- fp = open(ARGV[0], "r")
-rescue
- raise "cannot open file: #{ARGV[1]}"
-end
-# signal(SIGINT, finish)
-
-Curses.init_screen
-Curses.nonl
-Curses.cbreak
-Curses.noecho
-
-$screen = Curses.stdscr
-
-$screen.scrollok(true)
-#$screen.keypad(true)
-
-# slurp the file
-$data_lines = []
-fp.each_line { |l|
- $data_lines.push(l.chop)
-}
-fp.close
-
-$top = 0
-$data_lines[0..$screen.maxy-1].each_with_index{|line, idx|
- $screen.setpos(idx, 0)
- $screen.addstr(line)
-}
-$screen.setpos(0,0)
-$screen.refresh
-
-def scroll_up
- if( $top > 0 )
- $screen.scrl(-1)
- $top -= 1
- str = $data_lines[$top]
- if( str )
- $screen.setpos(0, 0)
- $screen.addstr(str)
- end
- return true
- else
- return false
+# A curses based file viewer
+class FileViewer
+
+ # Create a new fileviewer, and view the file.
+ def initialize(filename)
+ @data_lines = []
+ @screen = nil
+ @top = nil
+ init_curses
+ load_file(filename)
+ interact
end
-end
-def scroll_down
- if( $top + $screen.maxy < $data_lines.length )
- $screen.scrl(1)
- $top += 1
- str = $data_lines[$top + $screen.maxy - 1]
- if( str )
- $screen.setpos($screen.maxy - 1, 0)
- $screen.addstr(str)
+ # Perform the curses setup
+ def init_curses
+ # signal(SIGINT, finish)
+
+ Curses.init_screen
+ Curses.nonl
+ Curses.cbreak
+ Curses.noecho
+
+ @screen = Curses.stdscr
+
+ @screen.scrollok(true)
+ #$screen.keypad(true)
+ end
+
+ # Load the file into memory, and put
+ # the first part on the curses display.
+ def load_file(filename)
+ fp = open(filename, "r") do |fp|
+ # slurp the file
+ fp.each_line { |l|
+ @data_lines.push(l.chop)
+ }
end
- return true
- else
- return false
+ @top = 0
+ @data_lines[0..@screen.maxy-1].each_with_index{|line, idx|
+ @screen.setpos(idx, 0)
+ @screen.addstr(line)
+ }
+ @screen.setpos(0,0)
+ @screen.refresh
+ rescue
+ raise "cannot open file '#{filename}' for reading"
end
-end
-while true
- result = true
- c = Curses.getch
- case c
- when Curses::KEY_DOWN, Curses::KEY_CTRL_N
- result = scroll_down
- when Curses::KEY_UP, Curses::KEY_CTRL_P
- result = scroll_up
- when Curses::KEY_NPAGE, ?\s # white space
- for i in 0..($screen.maxy - 2)
- if( ! scroll_down )
- if( i == 0 )
- result = false
- end
- break
+
+ # Scroll the display up by one line
+ def scroll_up
+ if( @top > 0 )
+ @screen.scrl(-1)
+ @top -= 1
+ str = @data_lines[@top]
+ if( str )
+ @screen.setpos(0, 0)
+ @screen.addstr(str)
end
+ return true
+ else
+ return false
end
- when Curses::KEY_PPAGE
- for i in 0..($screen.maxy - 2)
- if( ! scroll_up )
- if( i == 0 )
- result = false
- end
- break
+ end
+
+ # Scroll the display down by one line
+ def scroll_down
+ if( @top + @screen.maxy < @data_lines.length )
+ @screen.scrl(1)
+ @top += 1
+ str = @data_lines[@top + @screen.maxy - 1]
+ if( str )
+ @screen.setpos(@screen.maxy - 1, 0)
+ @screen.addstr(str)
end
+ return true
+ else
+ return false
end
- when Curses::KEY_LEFT, Curses::KEY_CTRL_T
- while( scroll_up )
- end
- when Curses::KEY_RIGHT, Curses::KEY_CTRL_B
- while( scroll_down )
+ end
+
+ # Allow the user to interact with the display.
+ # This uses EMACS-like keybindings, and also
+ # vi-like keybindings as well, except that left
+ # and right move to the beginning and end of the
+ # file, respectively.
+ def interact
+ while true
+ result = true
+ c = Curses.getch
+ case c
+ when Curses::KEY_DOWN, Curses::KEY_CTRL_N, ?j
+ result = scroll_down
+ when Curses::KEY_UP, Curses::KEY_CTRL_P, ?k
+ result = scroll_up
+ when Curses::KEY_NPAGE, ?\s # white space
+ for i in 0..(@screen.maxy - 2)
+ if( ! scroll_down )
+ if( i == 0 )
+ result = false
+ end
+ break
+ end
+ end
+ when Curses::KEY_PPAGE
+ for i in 0..(@screen.maxy - 2)
+ if( ! scroll_up )
+ if( i == 0 )
+ result = false
+ end
+ break
+ end
+ end
+ when Curses::KEY_LEFT, Curses::KEY_CTRL_T, ?h
+ while( scroll_up )
+ end
+ when Curses::KEY_RIGHT, Curses::KEY_CTRL_B, ?l
+ while( scroll_down )
+ end
+ when ?q
+ break
+ else
+ @screen.setpos(0,0)
+ @screen.addstr("[unknown key `#{Curses.keyname(c)}'=#{c}] ")
+ end
+ if( !result )
+ Curses.beep
+ end
+ @screen.setpos(0,0)
end
- when ?q
- break
- else
- $screen.setpos(0,0)
- $screen.addstr("[unknown key `#{Curses.keyname(c)}'=#{c}] ")
+ Curses.close_screen
end
- if( !result )
- Curses.beep
+end
+
+
+# If we are being run as a main program...
+if __FILE__ == $0
+ if ARGV.size != 1 then
+ printf("usage: #{$0} file\n");
+ exit
end
- $screen.setpos(0,0)
+
+ viewer = FileViewer.new(ARGV[0])
end
-Curses.close_screen
diff --git a/ext/date/date_core.c b/ext/date/date_core.c
new file mode 100644
index 0000000000..c22a9d496c
--- /dev/null
+++ b/ext/date/date_core.c
@@ -0,0 +1,9774 @@
+/*
+ date_core.c: Coded by Tadayoshi Funaba 2010, 2011
+*/
+
+#include "ruby.h"
+#include "ruby/encoding.h"
+#include <math.h>
+#include <time.h>
+
+#define NDEBUG
+#include <assert.h>
+
+#ifdef RUBY_EXTCONF_H
+#include RUBY_EXTCONF_H
+#endif
+
+#define USE_PACK
+
+static ID id_cmp, id_le_p, id_ge_p, id_eqeq_p;
+static VALUE cDate, cDateTime;
+static VALUE half_days_in_day, day_in_nanoseconds;
+static double positive_inf, negative_inf;
+
+#define f_boolcast(x) ((x) ? Qtrue : Qfalse)
+
+#define f_abs(x) rb_funcall(x, rb_intern("abs"), 0)
+#define f_negate(x) rb_funcall(x, rb_intern("-@"), 0)
+#define f_add(x,y) rb_funcall(x, '+', 1, y)
+#define f_sub(x,y) rb_funcall(x, '-', 1, y)
+#define f_mul(x,y) rb_funcall(x, '*', 1, y)
+#define f_div(x,y) rb_funcall(x, '/', 1, y)
+#define f_quo(x,y) rb_funcall(x, rb_intern("quo"), 1, y)
+#define f_idiv(x,y) rb_funcall(x, rb_intern("div"), 1, y)
+#define f_mod(x,y) rb_funcall(x, '%', 1, y)
+#define f_remainder(x,y) rb_funcall(x, rb_intern("remainder"), 1, y)
+#define f_expt(x,y) rb_funcall(x, rb_intern("**"), 1, y)
+#define f_floor(x) rb_funcall(x, rb_intern("floor"), 0)
+#define f_ceil(x) rb_funcall(x, rb_intern("ceil"), 0)
+#define f_truncate(x) rb_funcall(x, rb_intern("truncate"), 0)
+#define f_round(x) rb_funcall(x, rb_intern("round"), 0)
+
+#define f_to_i(x) rb_funcall(x, rb_intern("to_i"), 0)
+#define f_to_r(x) rb_funcall(x, rb_intern("to_r"), 0)
+#define f_to_s(x) rb_funcall(x, rb_intern("to_s"), 0)
+#define f_inspect(x) rb_funcall(x, rb_intern("inspect"), 0)
+
+#define f_add3(x,y,z) f_add(f_add(x, y), z)
+#define f_sub3(x,y,z) f_sub(f_sub(x, y), z)
+
+inline static VALUE
+f_cmp(VALUE x, VALUE y)
+{
+ if (FIXNUM_P(x) && FIXNUM_P(y)) {
+ long c = FIX2LONG(x) - FIX2LONG(y);
+ if (c > 0)
+ c = 1;
+ else if (c < 0)
+ c = -1;
+ return INT2FIX(c);
+ }
+ return rb_funcall(x, id_cmp, 1, y);
+}
+
+inline static VALUE
+f_lt_p(VALUE x, VALUE y)
+{
+ if (FIXNUM_P(x) && FIXNUM_P(y))
+ return f_boolcast(FIX2LONG(x) < FIX2LONG(y));
+ return rb_funcall(x, '<', 1, y);
+}
+
+inline static VALUE
+f_gt_p(VALUE x, VALUE y)
+{
+ if (FIXNUM_P(x) && FIXNUM_P(y))
+ return f_boolcast(FIX2LONG(x) > FIX2LONG(y));
+ return rb_funcall(x, '>', 1, y);
+}
+
+inline static VALUE
+f_le_p(VALUE x, VALUE y)
+{
+ if (FIXNUM_P(x) && FIXNUM_P(y))
+ return f_boolcast(FIX2LONG(x) <= FIX2LONG(y));
+ return rb_funcall(x, id_le_p, 1, y);
+}
+
+inline static VALUE
+f_ge_p(VALUE x, VALUE y)
+{
+ if (FIXNUM_P(x) && FIXNUM_P(y))
+ return f_boolcast(FIX2LONG(x) >= FIX2LONG(y));
+ return rb_funcall(x, rb_intern(">="), 1, y);
+}
+
+inline static VALUE
+f_eqeq_p(VALUE x, VALUE y)
+{
+ if (FIXNUM_P(x) && FIXNUM_P(y))
+ return f_boolcast(FIX2LONG(x) == FIX2LONG(y));
+ return rb_funcall(x, rb_intern("=="), 1, y);
+}
+
+inline static VALUE
+f_zero_p(VALUE x)
+{
+ switch (TYPE(x)) {
+ case T_FIXNUM:
+ return f_boolcast(FIX2LONG(x) == 0);
+ case T_BIGNUM:
+ return Qfalse;
+ case T_RATIONAL:
+ {
+ VALUE num = RRATIONAL(x)->num;
+ return f_boolcast(FIXNUM_P(num) && FIX2LONG(num) == 0);
+ }
+ }
+ return rb_funcall(x, id_eqeq_p, 1, INT2FIX(0));
+}
+
+#define f_nonzero_p(x) (!f_zero_p(x))
+
+inline static VALUE
+f_negative_p(VALUE x)
+{
+ if (FIXNUM_P(x))
+ return f_boolcast(FIX2LONG(x) < 0);
+ return rb_funcall(x, '<', 1, INT2FIX(0));
+}
+
+#define f_positive_p(x) (!f_negative_p(x))
+
+#define f_ajd(x) rb_funcall(x, rb_intern("ajd"), 0)
+#define f_jd(x) rb_funcall(x, rb_intern("jd"), 0)
+#define f_year(x) rb_funcall(x, rb_intern("year"), 0)
+#define f_mon(x) rb_funcall(x, rb_intern("mon"), 0)
+#define f_mday(x) rb_funcall(x, rb_intern("mday"), 0)
+#define f_wday(x) rb_funcall(x, rb_intern("wday"), 0)
+#define f_hour(x) rb_funcall(x, rb_intern("hour"), 0)
+#define f_min(x) rb_funcall(x, rb_intern("min"), 0)
+#define f_sec(x) rb_funcall(x, rb_intern("sec"), 0)
+
+/* copied from time.c */
+#define NDIV(x,y) (-(-((x)+1)/(y))-1)
+#define NMOD(x,y) ((y)-(-((x)+1)%(y))-1)
+#define DIV(n,d) ((n)<0 ? NDIV((n),(d)) : (n)/(d))
+#define MOD(n,d) ((n)<0 ? NMOD((n),(d)) : (n)%(d))
+
+#define HAVE_JD (1 << 0)
+#define HAVE_DF (1 << 1)
+#define HAVE_CIVIL (1 << 2)
+#define HAVE_TIME (1 << 3)
+#define COMPLEX_DAT (1 << 7)
+
+#define have_jd_p(x) ((x)->flags & HAVE_JD)
+#define have_df_p(x) ((x)->flags & HAVE_DF)
+#define have_civil_p(x) ((x)->flags & HAVE_CIVIL)
+#define have_time_p(x) ((x)->flags & HAVE_TIME)
+#define complex_dat_p(x) ((x)->flags & COMPLEX_DAT)
+#define simple_dat_p(x) (!complex_dat_p(x))
+
+#define ITALY 2299161 /* 1582-10-15 */
+#define ENGLAND 2361222 /* 1752-09-14 */
+#define JULIAN positive_inf
+#define GREGORIAN negative_inf
+#define DEFAULT_SG ITALY
+
+#define UNIX_EPOCH_IN_CJD INT2FIX(2440588) /* 1970-01-01 */
+
+#define MINUTE_IN_SECONDS 60
+#define HOUR_IN_SECONDS 3600
+#define DAY_IN_SECONDS 86400
+#define SECOND_IN_MILLISECONDS 1000
+#define SECOND_IN_NANOSECONDS 1000000000
+
+#define JC_PERIOD0 1461 /* 365.25 * 4 */
+#define GC_PERIOD0 146097 /* 365.2425 * 400 */
+#define CM_PERIOD0 71149239 /* (lcm 7 1461 146097) */
+#define CM_PERIOD (0xfffffff / CM_PERIOD0 * CM_PERIOD0)
+#define CM_PERIOD_JCY (CM_PERIOD / JC_PERIOD0 * 4)
+#define CM_PERIOD_GCY (CM_PERIOD / GC_PERIOD0 * 400)
+
+#define REFORM_BEGIN_YEAR 1582
+#define REFORM_END_YEAR 1930
+#define REFORM_BEGIN_JD 2298874 /* ns 1582-01-01 */
+#define REFORM_END_JD 2426355 /* os 1930-12-31 */
+
+#ifdef USE_PACK
+#define SEC_WIDTH 6
+#define MIN_WIDTH 6
+#define HOUR_WIDTH 5
+#define MDAY_WIDTH 5
+#define MON_WIDTH 4
+
+#define SEC_SHIFT 0
+#define MIN_SHIFT SEC_WIDTH
+#define HOUR_SHIFT (MIN_WIDTH + SEC_WIDTH)
+#define MDAY_SHIFT (HOUR_WIDTH + MIN_WIDTH + SEC_WIDTH)
+#define MON_SHIFT (MDAY_WIDTH + HOUR_WIDTH + MIN_WIDTH + SEC_WIDTH)
+
+#define PK_MASK(x) ((1 << (x)) - 1)
+
+#define EX_SEC(x) (((x) >> SEC_SHIFT) & PK_MASK(SEC_WIDTH))
+#define EX_MIN(x) (((x) >> MIN_SHIFT) & PK_MASK(MIN_WIDTH))
+#define EX_HOUR(x) (((x) >> HOUR_SHIFT) & PK_MASK(HOUR_WIDTH))
+#define EX_MDAY(x) (((x) >> MDAY_SHIFT) & PK_MASK(MDAY_WIDTH))
+#define EX_MON(x) (((x) >> MON_SHIFT) & PK_MASK(MON_WIDTH))
+
+#define PACK5(m,d,h,min,s) \
+ (((m) << MON_SHIFT) | ((d) << MDAY_SHIFT) |\
+ ((h) << HOUR_SHIFT) | ((min) << MIN_SHIFT) | ((s) << SEC_SHIFT))
+
+#define PACK2(m,d) \
+ (((m) << MON_SHIFT) | ((d) << MDAY_SHIFT))
+#endif
+
+#ifdef HAVE_FLOAT_H
+#include <float.h>
+#endif
+
+#if defined(FLT_RADIX) && defined(FLT_MANT_DIG)
+#if FLT_RADIX == 2 && FLT_MANT_DIG > 22
+#define USE_FLOAT
+#define sg_cast float
+#else
+#define sg_cast double
+#endif
+#endif
+
+/* A set of nth, jd, df and sf denote ajd + 1/2. Each ajd begin at
+ * noon of GMT (assume equal to UTC). However, this begins at
+ * midnight.
+ */
+
+struct SimpleDateData
+{
+ unsigned flags;
+ VALUE nth; /* not always canonicalized */
+ int jd; /* as utc */
+ /* df is zero */
+ /* sf is zero */
+ /* of is zero */
+#ifndef USE_FLOAT
+ double sg; /* 2298874..2426355 or -/+oo */
+#else
+ float sg; /* at most 22 bits */
+#endif
+ /* decoded as utc=local */
+ int year; /* truncated */
+#ifndef USE_PACK
+ int mon;
+ int mday;
+ /* hour is zero */
+ /* min is zero */
+ /* sec is zero */
+#else
+ /* packed civil */
+ unsigned pc;
+#endif
+};
+
+struct ComplexDateData
+{
+ unsigned flags;
+ VALUE nth; /* not always canonicalized */
+ int jd; /* as utc */
+ int df; /* as utc, in secs */
+ VALUE sf; /* in nano secs */
+ int of; /* in secs */
+#ifndef USE_FLOAT
+ double sg; /* 2298874..2426355 or -/+oo */
+#else
+ float sg; /* at most 22 bits */
+#endif
+ /* decoded as local */
+ int year; /* truncated */
+#ifndef USE_PACK
+ int mon;
+ int mday;
+ int hour;
+ int min;
+ int sec;
+#else
+ /* packed civil */
+ unsigned pc;
+#endif
+};
+
+union DateData {
+ unsigned flags;
+ struct SimpleDateData s;
+ struct ComplexDateData c;
+};
+
+#define get_d1(x)\
+ union DateData *dat;\
+ Data_Get_Struct(x, union DateData, dat);
+
+#define get_d1a(x)\
+ union DateData *adat;\
+ Data_Get_Struct(x, union DateData, adat);
+
+#define get_d1b(x)\
+ union DateData *bdat;\
+ Data_Get_Struct(x, union DateData, bdat);
+
+#define get_d2(x,y)\
+ union DateData *adat, *bdat;\
+ Data_Get_Struct(x, union DateData, adat);\
+ Data_Get_Struct(y, union DateData, bdat);
+
+inline static VALUE
+canon(VALUE x)
+{
+ if (TYPE(x) == T_RATIONAL) {
+ VALUE den = RRATIONAL(x)->den;
+ if (FIXNUM_P(den) && FIX2LONG(den) == 1)
+ return RRATIONAL(x)->num;
+ }
+ return x;
+}
+
+#ifndef USE_PACK
+#define set_to_simple(x, _nth, _jd ,_sg, _year, _mon, _mday, _flags) \
+{\
+ (x)->nth = canon(_nth);\
+ (x)->jd = _jd;\
+ (x)->sg = (sg_cast)(_sg);\
+ (x)->year = _year;\
+ (x)->mon = _mon;\
+ (x)->mday = _mday;\
+ (x)->flags = _flags;\
+}
+#else
+#define set_to_simple(x, _nth, _jd ,_sg, _year, _mon, _mday, _flags) \
+{\
+ (x)->nth = canon(_nth);\
+ (x)->jd = _jd;\
+ (x)->sg = (sg_cast)(_sg);\
+ (x)->year = _year;\
+ (x)->pc = PACK2(_mon, _mday);\
+ (x)->flags = _flags;\
+}
+#endif
+
+#ifndef USE_PACK
+#define set_to_complex(x, _nth, _jd ,_df, _sf, _of, _sg,\
+_year, _mon, _mday, _hour, _min, _sec, _flags) \
+{\
+ (x)->nth = canon(_nth);\
+ (x)->jd = _jd;\
+ (x)->df = _df;\
+ (x)->sf = canon(_sf);\
+ (x)->of = _of;\
+ (x)->sg = (sg_cast)(_sg);\
+ (x)->year = _year;\
+ (x)->mon = _mon;\
+ (x)->mday = _mday;\
+ (x)->hour = _hour;\
+ (x)->min = _min;\
+ (x)->sec = _sec;\
+ (x)->flags = _flags;\
+}
+#else
+#define set_to_complex(x, _nth, _jd ,_df, _sf, _of, _sg,\
+_year, _mon, _mday, _hour, _min, _sec, _flags) \
+{\
+ (x)->nth = canon(_nth);\
+ (x)->jd = _jd;\
+ (x)->df = _df;\
+ (x)->sf = canon(_sf);\
+ (x)->of = _of;\
+ (x)->sg = (sg_cast)(_sg);\
+ (x)->year = _year;\
+ (x)->pc = PACK5(_mon, _mday, _hour, _min, _sec);\
+ (x)->flags = _flags;\
+}
+#endif
+
+#ifndef USE_PACK
+#define copy_simple_to_complex(x, y) \
+{\
+ (x)->nth = (y)->nth;\
+ (x)->jd = (y)->jd;\
+ (x)->df = 0;\
+ (x)->sf = INT2FIX(0);\
+ (x)->of = 0;\
+ (x)->sg = (sg_cast)((y)->sg);\
+ (x)->year = (y)->year;\
+ (x)->mon = (y)->mon;\
+ (x)->mday = (y)->mday;\
+ (x)->hour = 0;\
+ (x)->min = 0;\
+ (x)->sec = 0;\
+ (x)->flags = (y)->flags;\
+}
+#else
+#define copy_simple_to_complex(x, y) \
+{\
+ (x)->nth = (y)->nth;\
+ (x)->jd = (y)->jd;\
+ (x)->df = 0;\
+ (x)->sf = INT2FIX(0);\
+ (x)->of = 0;\
+ (x)->sg = (sg_cast)((y)->sg);\
+ (x)->year = (y)->year;\
+ (x)->pc = PACK5(EX_MON((y)->pc), EX_MDAY((y)->pc), 0, 0, 0);\
+ (x)->flags = (y)->flags;\
+}
+#endif
+
+#ifndef USE_PACK
+#define copy_complex_to_simple(x, y) \
+{\
+ (x)->nth = (y)->nth;\
+ (x)->jd = (y)->jd;\
+ (x)->sg = (sg_cast)((y)->sg);\
+ (x)->year = (y)->year;\
+ (x)->mon = (y)->mon;\
+ (x)->mday = (y)->mday;\
+ (x)->flags = (y)->flags;\
+}
+#else
+#define copy_complex_to_simple(x, y) \
+{\
+ (x)->nth = (y)->nth;\
+ (x)->jd = (y)->jd;\
+ (x)->sg = (sg_cast)((y)->sg);\
+ (x)->year = (y)->year;\
+ (x)->pc = PACK2(EX_MON((y)->pc), EX_MDAY((y)->pc));\
+ (x)->flags = (y)->flags;\
+}
+#endif
+
+/* base */
+
+static int c_valid_civil_p(int, int, int, double,
+ int *, int *, int *, int *);
+
+static int
+c_find_fdoy(int y, double sg, int *rjd, int *ns)
+{
+ int d, rm, rd;
+
+ for (d = 1; d < 31; d++)
+ if (c_valid_civil_p(y, 1, d, sg, &rm, &rd, rjd, ns))
+ return 1;
+ return 0;
+}
+
+static int
+c_find_ldoy(int y, double sg, int *rjd, int *ns)
+{
+ int i, rm, rd;
+
+ for (i = 0; i < 30; i++)
+ if (c_valid_civil_p(y, 12, 31 - i, sg, &rm, &rd, rjd, ns))
+ return 1;
+ return 0;
+}
+
+#ifndef NDEBUG
+static int
+c_find_fdom(int y, int m, double sg, int *rjd, int *ns)
+{
+ int d, rm, rd;
+
+ for (d = 1; d < 31; d++)
+ if (c_valid_civil_p(y, m, d, sg, &rm, &rd, rjd, ns))
+ return 1;
+ return 0;
+}
+#endif
+
+static int
+c_find_ldom(int y, int m, double sg, int *rjd, int *ns)
+{
+ int i, rm, rd;
+
+ for (i = 0; i < 30; i++)
+ if (c_valid_civil_p(y, m, 31 - i, sg, &rm, &rd, rjd, ns))
+ return 1;
+ return 0;
+}
+
+static void
+c_civil_to_jd(int y, int m, int d, double sg, int *rjd, int *ns)
+{
+ double a, b, jd;
+
+ if (m <= 2) {
+ y -= 1;
+ m += 12;
+ }
+ a = floor(y / 100.0);
+ b = 2 - a + floor(a / 4.0);
+ jd = floor(365.25 * (y + 4716)) +
+ floor(30.6001 * (m + 1)) +
+ d + b - 1524;
+ if (jd < sg) {
+ jd -= b;
+ *ns = 0;
+ }
+ else
+ *ns = 1;
+
+ *rjd = (int)jd;
+}
+
+static void
+c_jd_to_civil(int jd, double sg, int *ry, int *rm, int *rdom)
+{
+ double x, a, b, c, d, e, y, m, dom;
+
+ if (jd < sg)
+ a = jd;
+ else {
+ x = floor((jd - 1867216.25) / 36524.25);
+ a = jd + 1 + x - floor(x / 4.0);
+ }
+ b = a + 1524;
+ c = floor((b - 122.1) / 365.25);
+ d = floor(365.25 * c);
+ e = floor((b - d) / 30.6001);
+ dom = b - d - floor(30.6001 * e);
+ if (e <= 13) {
+ m = e - 1;
+ y = c - 4716;
+ }
+ else {
+ m = e - 13;
+ y = c - 4715;
+ }
+
+ *ry = (int)y;
+ *rm = (int)m;
+ *rdom = (int)dom;
+}
+
+static void
+c_ordinal_to_jd(int y, int d, double sg, int *rjd, int *ns)
+{
+ int ns2;
+
+ c_find_fdoy(y, sg, rjd, &ns2);
+ *rjd += d - 1;
+ *ns = (*rjd < sg) ? 0 : 1;
+}
+
+static void
+c_jd_to_ordinal(int jd, double sg, int *ry, int *rd)
+{
+ int rm2, rd2, rjd, ns;
+
+ c_jd_to_civil(jd, sg, ry, &rm2, &rd2);
+ c_find_fdoy(*ry, sg, &rjd, &ns);
+ *rd = (jd - rjd) + 1;
+}
+
+static void
+c_commercial_to_jd(int y, int w, int d, double sg, int *rjd, int *ns)
+{
+ int rjd2, ns2;
+
+ c_find_fdoy(y, sg, &rjd2, &ns2);
+ rjd2 += 3;
+ *rjd =
+ (rjd2 - MOD((rjd2 - 1) + 1, 7)) +
+ 7 * (w - 1) +
+ (d - 1);
+ *ns = (*rjd < sg) ? 0 : 1;
+}
+
+static void
+c_jd_to_commercial(int jd, double sg, int *ry, int *rw, int *rd)
+{
+ int ry2, rm2, rd2, a, rjd2, ns2;
+
+ c_jd_to_civil(jd - 3, sg, &ry2, &rm2, &rd2);
+ a = ry2;
+ c_commercial_to_jd(a + 1, 1, 1, sg, &rjd2, &ns2);
+ if (jd >= rjd2)
+ *ry = a + 1;
+ else {
+ c_commercial_to_jd(a, 1, 1, sg, &rjd2, &ns2);
+ *ry = a;
+ }
+ *rw = 1 + DIV(jd - rjd2, 7);
+ *rd = MOD(jd + 1, 7);
+ if (*rd == 0)
+ *rd = 7;
+}
+
+static void
+c_weeknum_to_jd(int y, int w, int d, int f, double sg, int *rjd, int *ns)
+{
+ int rjd2, ns2;
+
+ c_find_fdoy(y, sg, &rjd2, &ns2);
+ rjd2 += 6;
+ *rjd = (rjd2 - MOD(((rjd2 - f) + 1), 7) - 7) + 7 * w + d;
+ *ns = (*rjd < sg) ? 0 : 1;
+}
+
+static void
+c_jd_to_weeknum(int jd, int f, double sg, int *ry, int *rw, int *rd)
+{
+ int rm, rd2, rjd, ns, j;
+
+ c_jd_to_civil(jd, sg, ry, &rm, &rd2);
+ c_find_fdoy(*ry, sg, &rjd, &ns);
+ rjd += 6;
+ j = jd - (rjd - MOD((rjd - f) + 1, 7)) + 7;
+ *rw = (int)DIV(j, 7);
+ *rd = (int)MOD(j, 7);
+}
+
+#ifndef NDEBUG
+static void
+c_nth_kday_to_jd(int y, int m, int n, int k, double sg, int *rjd, int *ns)
+{
+ int rjd2, ns2;
+
+ if (n > 0) {
+ c_find_fdom(y, m, sg, &rjd2, &ns2);
+ rjd2 -= 1;
+ }
+ else {
+ c_find_ldom(y, m, sg, &rjd2, &ns2);
+ rjd2 += 7;
+ }
+ *rjd = (rjd2 - MOD((rjd2 - k) + 1, 7)) + 7 * n;
+ *ns = (*rjd < sg) ? 0 : 1;
+}
+#endif
+
+inline static int
+c_jd_to_wday(int jd)
+{
+ return MOD(jd + 1, 7);
+}
+
+#ifndef NDEBUG
+static void
+c_jd_to_nth_kday(int jd, double sg, int *ry, int *rm, int *rn, int *rk)
+{
+ int rd, rjd, ns2;
+
+ c_jd_to_civil(jd, sg, ry, rm, &rd);
+ c_find_fdom(*ry, *rm, sg, &rjd, &ns2);
+ *rn = DIV(jd - rjd, 7) + 1;
+ *rk = c_jd_to_wday(jd);
+}
+#endif
+
+static int
+c_valid_ordinal_p(int y, int d, double sg,
+ int *rd, int *rjd, int *ns)
+{
+ int ry2, rd2;
+
+ if (d < 0) {
+ int rjd2, ns2;
+
+ if (!c_find_ldoy(y, sg, &rjd2, &ns2))
+ return 0;
+ c_jd_to_ordinal(rjd2 + d + 1, sg, &ry2, &rd2);
+ if (ry2 != y)
+ return 0;
+ d = rd2;
+ }
+ c_ordinal_to_jd(y, d, sg, rjd, ns);
+ c_jd_to_ordinal(*rjd, sg, &ry2, &rd2);
+ if (ry2 != y || rd2 != d)
+ return 0;
+ return 1;
+}
+
+static const int monthtab[2][13] = {
+ { 0, 31, 28, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 },
+ { 0, 31, 29, 31, 30, 31, 30, 31, 31, 30, 31, 30, 31 }
+};
+
+inline static int
+c_julian_leap_p(int y)
+{
+ return MOD(y, 4) == 0;
+}
+
+inline static int
+c_gregorian_leap_p(int y)
+{
+ return MOD(y, 4) == 0 && y % 100 != 0 || MOD(y, 400) == 0;
+}
+
+static int
+c_julian_last_day_of_month(int y, int m)
+{
+ assert(m >= 1 && m <= 12);
+ return monthtab[c_julian_leap_p(y) ? 1 : 0][m];
+}
+
+static int
+c_gregorian_last_day_of_month(int y, int m)
+{
+ assert(m >= 1 && m <= 12);
+ return monthtab[c_gregorian_leap_p(y) ? 1 : 0][m];
+}
+
+static int
+c_valid_julian_p(int y, int m, int d, int *rm, int *rd)
+{
+ int last;
+
+ if (m < 0)
+ m += 13;
+ if (m < 1 || m > 12)
+ return 0;
+ last = c_julian_last_day_of_month(y, m);
+ if (d < 0)
+ d = last + d + 1;
+ if (d < 1 || d > last)
+ return 0;
+ *rm = m;
+ *rd = d;
+ return 1;
+}
+
+static int
+c_valid_gregorian_p(int y, int m, int d, int *rm, int *rd)
+{
+ int last;
+
+ if (m < 0)
+ m += 13;
+ if (m < 1 || m > 12)
+ return 0;
+ last = c_gregorian_last_day_of_month(y, m);
+ if (d < 0)
+ d = last + d + 1;
+ if (d < 1 || d > last)
+ return 0;
+ *rm = m;
+ *rd = d;
+ return 1;
+}
+
+static int
+c_valid_civil_p(int y, int m, int d, double sg,
+ int *rm, int *rd, int *rjd, int *ns)
+{
+ int ry;
+
+ if (m < 0)
+ m += 13;
+ if (d < 0) {
+ if (!c_find_ldom(y, m, sg, rjd, ns))
+ return 0;
+ c_jd_to_civil(*rjd + d + 1, sg, &ry, rm, rd);
+ if (ry != y || *rm != m)
+ return 0;
+ d = *rd;
+ }
+ c_civil_to_jd(y, m, d, sg, rjd, ns);
+ c_jd_to_civil(*rjd, sg, &ry, rm, rd);
+ if (ry != y || *rm != m || *rd != d)
+ return 0;
+ return 1;
+}
+
+static int
+c_valid_commercial_p(int y, int w, int d, double sg,
+ int *rw, int *rd, int *rjd, int *ns)
+{
+ int ns2, ry2, rw2, rd2;
+
+ if (d < 0)
+ d += 8;
+ if (w < 0) {
+ int rjd2;
+
+ c_commercial_to_jd(y + 1, 1, 1, sg, &rjd2, &ns2);
+ c_jd_to_commercial(rjd2 + w * 7, sg, &ry2, &rw2, &rd2);
+ if (ry2 != y)
+ return 0;
+ w = rw2;
+ }
+ c_commercial_to_jd(y, w, d, sg, rjd, ns);
+ c_jd_to_commercial(*rjd, sg, &ry2, rw, rd);
+ if (y != ry2 || w != *rw || d != *rd)
+ return 0;
+ return 1;
+}
+
+static int
+c_valid_weeknum_p(int y, int w, int d, int f, double sg,
+ int *rw, int *rd, int *rjd, int *ns)
+{
+ int ns2, ry2, rw2, rd2;
+
+ if (d < 0)
+ d += 7;
+ if (w < 0) {
+ int rjd2;
+
+ c_weeknum_to_jd(y + 1, 1, f, f, sg, &rjd2, &ns2);
+ c_jd_to_weeknum(rjd2 + w * 7, f, sg, &ry2, &rw2, &rd2);
+ if (ry2 != y)
+ return 0;
+ w = rw2;
+ }
+ c_weeknum_to_jd(y, w, d, f, sg, rjd, ns);
+ c_jd_to_weeknum(*rjd, f, sg, &ry2, rw, rd);
+ if (y != ry2 || w != *rw || d != *rd)
+ return 0;
+ return 1;
+}
+
+#ifndef NDEBUG
+static int
+c_valid_nth_kday_p(int y, int m, int n, int k, double sg,
+ int *rm, int *rn, int *rk, int *rjd, int *ns)
+{
+ int ns2, ry2, rm2, rn2, rk2;
+
+ if (k < 0)
+ k += 7;
+ if (n < 0) {
+ int t, ny, nm, rjd2;
+
+ t = y * 12 + m;
+ ny = DIV(t, 12);
+ nm = MOD(t, 12) + 1;
+
+ c_nth_kday_to_jd(ny, nm, 1, k, sg, &rjd2, &ns2);
+ c_jd_to_nth_kday(rjd2 + n * 7, sg, &ry2, &rm2, &rn2, &rk2);
+ if (ry2 != y || rm2 != m)
+ return 0;
+ n = rn2;
+ }
+ c_nth_kday_to_jd(y, m, n, k, sg, rjd, ns);
+ c_jd_to_nth_kday(*rjd, sg, &ry2, rm, rn, rk);
+ if (y != ry2 || m != *rm || n != *rn || k != *rk)
+ return 0;
+ return 1;
+}
+#endif
+
+static int
+c_valid_time_p(int h, int min, int s, int *rh, int *rmin, int *rs)
+{
+ if (h < 0)
+ h += 24;
+ if (min < 0)
+ min += 60;
+ if (s < 0)
+ s += 60;
+ *rh = h;
+ *rmin = min;
+ *rs = s;
+ return !(h < 0 || h > 24 ||
+ min < 0 || min > 59 ||
+ s < 0 || s > 59 ||
+ (h == 24 && (min > 0 || s > 0)));
+}
+
+inline static int
+c_valid_start_p(double sg)
+{
+ if (isnan(sg))
+ return 0;
+ if (isinf(sg))
+ return 1;
+ if (sg < REFORM_BEGIN_JD || sg > REFORM_END_JD)
+ return 0;
+ return 1;
+}
+
+inline static int
+df_local_to_utc(int df, int of)
+{
+ df -= of;
+ if (df < 0)
+ df += DAY_IN_SECONDS;
+ else if (df >= DAY_IN_SECONDS)
+ df -= DAY_IN_SECONDS;
+ return df;
+}
+
+inline static int
+df_utc_to_local(int df, int of)
+{
+ df += of;
+ if (df < 0)
+ df += DAY_IN_SECONDS;
+ else if (df >= DAY_IN_SECONDS)
+ df -= DAY_IN_SECONDS;
+ return df;
+}
+
+inline static int
+jd_local_to_utc(int jd, int df, int of)
+{
+ df -= of;
+ if (df < 0)
+ jd -= 1;
+ else if (df >= DAY_IN_SECONDS)
+ jd += 1;
+ return jd;
+}
+
+inline static int
+jd_utc_to_local(int jd, int df, int of)
+{
+ df += of;
+ if (df < 0)
+ jd -= 1;
+ else if (df >= DAY_IN_SECONDS)
+ jd += 1;
+ return jd;
+}
+
+inline static int
+time_to_df(int h, int min, int s)
+{
+ return h * HOUR_IN_SECONDS + min * MINUTE_IN_SECONDS + s;
+}
+
+inline static void
+df_to_time(int df, int *h, int *min, int *s)
+{
+ *h = df / HOUR_IN_SECONDS;
+ df %= HOUR_IN_SECONDS;
+ *min = df / MINUTE_IN_SECONDS;
+ *s = df % MINUTE_IN_SECONDS;
+}
+
+static VALUE
+sec_to_day(VALUE s)
+{
+ if (FIXNUM_P(s))
+ return rb_rational_new2(s, INT2FIX(DAY_IN_SECONDS));
+ return f_quo(s, INT2FIX(DAY_IN_SECONDS));
+}
+
+inline static VALUE
+isec_to_day(int s)
+{
+ return sec_to_day(INT2FIX(s));
+}
+
+static VALUE
+ns_to_day(VALUE n)
+{
+ if (FIXNUM_P(n))
+ return rb_rational_new2(n, day_in_nanoseconds);
+ return f_quo(n, day_in_nanoseconds);
+}
+
+#ifndef NDEBUG
+static VALUE
+ms_to_sec(VALUE m)
+{
+ if (FIXNUM_P(m))
+ return rb_rational_new2(m, INT2FIX(SECOND_IN_MILLISECONDS));
+ return f_quo(m, INT2FIX(SECOND_IN_MILLISECONDS));
+}
+#endif
+
+static VALUE
+ns_to_sec(VALUE n)
+{
+ if (FIXNUM_P(n))
+ return rb_rational_new2(n, INT2FIX(SECOND_IN_NANOSECONDS));
+ return f_quo(n, INT2FIX(SECOND_IN_NANOSECONDS));
+}
+
+#ifndef NDEBUG
+inline static VALUE
+ins_to_day(int n)
+{
+ return ns_to_day(INT2FIX(n));
+}
+#endif
+
+static int
+safe_mul_p(VALUE x, long m)
+{
+ long ix;
+
+ if (!FIXNUM_P(x))
+ return 0;
+ ix = FIX2LONG(x);
+ if (ix >= (FIXNUM_MAX / m))
+ return 0;
+ return 1;
+}
+
+static VALUE
+day_to_sec(VALUE d)
+{
+ if (safe_mul_p(d, DAY_IN_SECONDS))
+ return LONG2FIX(FIX2LONG(d) * DAY_IN_SECONDS);
+ return f_mul(d, INT2FIX(DAY_IN_SECONDS));
+}
+
+#ifndef NDEBUG
+static VALUE
+day_to_ns(VALUE d)
+{
+ return f_mul(d, day_in_nanoseconds);
+}
+#endif
+
+static VALUE
+sec_to_ms(VALUE s)
+{
+ if (safe_mul_p(s, SECOND_IN_MILLISECONDS))
+ return LONG2FIX(FIX2LONG(s) * SECOND_IN_MILLISECONDS);
+ return f_mul(s, INT2FIX(SECOND_IN_MILLISECONDS));
+}
+
+static VALUE
+sec_to_ns(VALUE s)
+{
+ if (safe_mul_p(s, SECOND_IN_NANOSECONDS))
+ return LONG2FIX(FIX2LONG(s) * SECOND_IN_NANOSECONDS);
+ return f_mul(s, INT2FIX(SECOND_IN_NANOSECONDS));
+}
+
+#ifndef NDEBUG
+static VALUE
+isec_to_ns(int s)
+{
+ return sec_to_ns(INT2FIX(s));
+}
+#endif
+
+static VALUE
+div_day(VALUE d, VALUE *f)
+{
+ if (f)
+ *f = f_mod(d, INT2FIX(1));
+ return f_floor(d);
+}
+
+static VALUE
+div_df(VALUE d, VALUE *f)
+{
+ VALUE s = day_to_sec(d);
+
+ if (f)
+ *f = f_mod(s, INT2FIX(1));
+ return f_floor(s);
+}
+
+#ifndef NDEBUG
+static VALUE
+div_sf(VALUE s, VALUE *f)
+{
+ VALUE n = sec_to_ns(s);
+
+ if (f)
+ *f = f_mod(n, INT2FIX(1));
+ return f_floor(n);
+}
+#endif
+
+static void
+decode_day(VALUE d, VALUE *jd, VALUE *df, VALUE *sf)
+{
+ VALUE f;
+
+ *jd = div_day(d, &f);
+ *df = div_df(f, &f);
+ *sf = sec_to_ns(f);
+}
+
+inline static double
+s_virtual_sg(union DateData *x)
+{
+ if (isinf(x->s.sg))
+ return x->s.sg;
+ if (f_zero_p(x->s.nth))
+ return x->s.sg;
+ else if (f_negative_p(x->s.nth))
+ return positive_inf;
+ return negative_inf;
+}
+
+inline static double
+c_virtual_sg(union DateData *x)
+{
+ if (isinf(x->c.sg))
+ return x->c.sg;
+ if (f_zero_p(x->c.nth))
+ return x->c.sg;
+ else if (f_negative_p(x->c.nth))
+ return positive_inf;
+ return negative_inf;
+}
+
+inline static double
+m_virtual_sg(union DateData *x)
+{
+ if (simple_dat_p(x))
+ return s_virtual_sg(x);
+ else
+ return c_virtual_sg(x);
+}
+
+inline static void
+get_s_jd(union DateData *x)
+{
+ assert(simple_dat_p(x));
+ if (!have_jd_p(x)) {
+ int jd, ns;
+
+ assert(have_civil_p(x));
+#ifndef USE_PACK
+ c_civil_to_jd(x->s.year, x->s.mon, x->s.mday,
+ s_virtual_sg(x), &jd, &ns);
+#else
+ c_civil_to_jd(x->s.year, EX_MON(x->s.pc), EX_MDAY(x->s.pc),
+ s_virtual_sg(x), &jd, &ns);
+#endif
+ x->s.jd = jd;
+ x->s.flags |= HAVE_JD;
+ }
+}
+
+inline static void
+get_s_civil(union DateData *x)
+{
+ assert(simple_dat_p(x));
+ if (!have_civil_p(x)) {
+ int y, m, d;
+
+ assert(have_jd_p(x));
+ c_jd_to_civil(x->s.jd, s_virtual_sg(x), &y, &m, &d);
+ x->s.year = y;
+#ifndef USE_PACK
+ x->s.mon = m;
+ x->s.mday = d;
+#else
+ x->s.pc = PACK2(m, d);
+#endif
+ x->s.flags |= HAVE_CIVIL;
+ }
+}
+
+inline static void
+get_c_df(union DateData *x)
+{
+ assert(complex_dat_p(x));
+ if (!have_df_p(x)) {
+ assert(have_time_p(x));
+#ifndef USE_PACK
+ x->c.df = df_local_to_utc(time_to_df(x->c.hour, x->c.min, x->c.sec),
+ x->c.of);
+#else
+ x->c.df = df_local_to_utc(time_to_df(EX_HOUR(x->c.pc),
+ EX_MIN(x->c.pc),
+ EX_SEC(x->c.pc)),
+ x->c.of);
+#endif
+ x->c.flags |= HAVE_DF;
+ }
+}
+
+inline static void
+get_c_time(union DateData *x)
+{
+ assert(complex_dat_p(x));
+ if (!have_time_p(x)) {
+#ifndef USE_PACK
+ int r;
+ assert(have_df_p(x));
+ r = df_utc_to_local(x->c.df, x->c.of);
+ df_to_time(r, &x->c.hour, &x->c.min, &x->c.sec);
+ x->c.flags |= HAVE_TIME;
+#else
+ int r, m, d, h, min, s;
+
+ assert(have_df_p(x));
+ m = EX_MON(x->c.pc);
+ d = EX_MDAY(x->c.pc);
+ r = df_utc_to_local(x->c.df, x->c.of);
+ df_to_time(r, &h, &min, &s);
+ x->c.pc = PACK5(m, d, h, min, s);
+ x->c.flags |= HAVE_TIME;
+#endif
+ }
+}
+
+inline static void
+get_c_jd(union DateData *x)
+{
+ assert(complex_dat_p(x));
+ if (!have_jd_p(x)) {
+ int jd, ns;
+
+ assert(have_civil_p(x));
+#ifndef USE_PACK
+ c_civil_to_jd(x->c.year, x->c.mon, x->c.mday,
+ c_virtual_sg(x), &jd, &ns);
+#else
+ c_civil_to_jd(x->c.year, EX_MON(x->c.pc), EX_MDAY(x->c.pc),
+ c_virtual_sg(x), &jd, &ns);
+#endif
+
+ get_c_time(x);
+#ifndef USE_PACK
+ x->c.jd = jd_local_to_utc(jd,
+ time_to_df(x->c.hour, x->c.min, x->c.sec),
+ x->c.of);
+#else
+ x->c.jd = jd_local_to_utc(jd,
+ time_to_df(EX_HOUR(x->c.pc),
+ EX_MIN(x->c.pc),
+ EX_SEC(x->c.pc)),
+ x->c.of);
+#endif
+ x->c.flags |= HAVE_JD;
+ }
+}
+
+inline static void
+get_c_civil(union DateData *x)
+{
+ assert(complex_dat_p(x));
+ if (!have_civil_p(x)) {
+#ifndef USE_PACK
+ int jd, y, m, d;
+#else
+ int jd, y, m, d, h, min, s;
+#endif
+
+ assert(have_jd_p(x));
+ get_c_df(x);
+ jd = jd_utc_to_local(x->c.jd, x->c.df, x->c.of);
+ c_jd_to_civil(jd, c_virtual_sg(x), &y, &m, &d);
+ x->c.year = y;
+#ifndef USE_PACK
+ x->c.mon = m;
+ x->c.mday = d;
+#else
+ h = EX_HOUR(x->c.pc);
+ min = EX_MIN(x->c.pc);
+ s = EX_SEC(x->c.pc);
+ x->c.pc = PACK5(m, d, h, min, s);
+#endif
+ x->c.flags |= HAVE_CIVIL;
+ }
+}
+
+inline static int
+local_jd(union DateData *x)
+{
+ assert(complex_dat_p(x));
+ assert(have_jd_p(x));
+ assert(have_df_p(x));
+ return jd_utc_to_local(x->c.jd, x->c.df, x->c.of);
+}
+
+inline static int
+local_df(union DateData *x)
+{
+ assert(complex_dat_p(x));
+ assert(have_df_p(x));
+ return df_utc_to_local(x->c.df, x->c.of);
+}
+
+static void
+decode_year(VALUE y, double style,
+ VALUE *nth, int *ry)
+{
+ int period;
+ VALUE t;
+
+ period = (style < 0) ?
+ CM_PERIOD_GCY :
+ CM_PERIOD_JCY;
+ if (FIXNUM_P(y)) {
+ long iy, it, inth;
+
+ iy = FIX2LONG(y);
+ if (iy >= (FIXNUM_MAX - 4712))
+ goto big;
+ it = iy + 4712; /* shift */
+ inth = DIV(it, ((long)period));
+ *nth = LONG2FIX(inth);
+ if (inth)
+ it = MOD(it, ((long)period));
+ *ry = (int)it - 4712; /* unshift */
+ return;
+ }
+ big:
+ t = f_add(y, INT2FIX(4712)); /* shift */
+ *nth = f_idiv(t, INT2FIX(period));
+ if (f_nonzero_p(*nth))
+ t = f_mod(t, INT2FIX(period));
+ *ry = FIX2INT(t) - 4712; /* unshift */
+}
+
+static void
+encode_year(VALUE nth, int y, double style,
+ VALUE *ry)
+{
+ int period;
+ VALUE t;
+
+ period = (style < 0) ?
+ CM_PERIOD_GCY :
+ CM_PERIOD_JCY;
+ if (f_zero_p(nth))
+ *ry = INT2FIX(y);
+ else {
+ t = f_mul(INT2FIX(period), nth);
+ t = f_add(t, INT2FIX(y));
+ *ry = t;
+ }
+}
+
+static void
+decode_jd(VALUE jd, VALUE *nth, int *rjd)
+{
+ assert(FIXNUM_P(jd) || RB_TYPE_P(jd, T_BIGNUM));
+ *nth = f_idiv(jd, INT2FIX(CM_PERIOD));
+ if (f_zero_p(*nth)) {
+ assert(FIXNUM_P(jd));
+ *rjd = FIX2INT(jd);
+ return;
+ }
+ *rjd = FIX2INT(f_mod(jd, INT2FIX(CM_PERIOD)));
+}
+
+static void
+encode_jd(VALUE nth, int jd, VALUE *rjd)
+{
+ if (f_zero_p(nth)) {
+ *rjd = INT2FIX(jd);
+ return;
+ }
+ *rjd = f_add(f_mul(INT2FIX(CM_PERIOD), nth), INT2FIX(jd));
+}
+
+inline static double
+guess_style(VALUE y, double sg) /* -/+oo or zero */
+{
+ double style = 0;
+
+ if (isinf(sg))
+ style = sg;
+ else if (!FIXNUM_P(y))
+ style = f_positive_p(y) ? negative_inf : positive_inf;
+ else {
+ long iy = FIX2LONG(y);
+
+ assert(FIXNUM_P(y));
+ if (iy < REFORM_BEGIN_YEAR)
+ style = positive_inf;
+ else if (iy > REFORM_END_YEAR)
+ style = negative_inf;
+ }
+ return style;
+}
+
+inline static VALUE
+m_nth(union DateData *x)
+{
+ if (simple_dat_p(x))
+ return x->s.nth;
+ else {
+ get_c_civil(x);
+ return x->c.nth;
+ }
+}
+
+inline static int
+m_jd(union DateData *x)
+{
+ if (simple_dat_p(x)) {
+ get_s_jd(x);
+ return x->s.jd;
+ }
+ else {
+ get_c_jd(x);
+ return x->c.jd;
+ }
+}
+
+static VALUE
+m_real_jd(union DateData *x)
+{
+ VALUE nth, rjd;
+ int jd;
+
+ nth = m_nth(x);
+ jd = m_jd(x);
+
+ encode_jd(nth, jd, &rjd);
+ return rjd;
+}
+
+static int
+m_local_jd(union DateData *x)
+{
+ if (simple_dat_p(x)) {
+ get_s_jd(x);
+ return x->s.jd;
+ }
+ else {
+ get_c_jd(x);
+ get_c_df(x);
+ return local_jd(x);
+ }
+}
+
+static VALUE
+m_real_local_jd(union DateData *x)
+{
+ VALUE nth, rjd;
+ int jd;
+
+ nth = m_nth(x);
+ jd = m_local_jd(x);
+
+ encode_jd(nth, jd, &rjd);
+ return rjd;
+}
+
+inline static int
+m_df(union DateData *x)
+{
+ if (simple_dat_p(x))
+ return 0;
+ else {
+ get_c_df(x);
+ return x->c.df;
+ }
+}
+
+#ifndef NDEBUG
+static VALUE
+m_df_in_day(union DateData *x)
+{
+ return isec_to_day(m_df(x));
+}
+#endif
+
+static int
+m_local_df(union DateData *x)
+{
+ if (simple_dat_p(x))
+ return 0;
+ else {
+ get_c_df(x);
+ return local_df(x);
+ }
+}
+
+#ifndef NDEBUG
+static VALUE
+m_local_df_in_day(union DateData *x)
+{
+ return isec_to_day(m_local_df(x));
+}
+#endif
+
+inline static VALUE
+m_sf(union DateData *x)
+{
+ if (simple_dat_p(x))
+ return INT2FIX(0);
+ else
+ return x->c.sf;
+}
+
+#ifndef NDEBUG
+static VALUE
+m_sf_in_day(union DateData *x)
+{
+ return ns_to_day(m_sf(x));
+}
+#endif
+
+static VALUE
+m_sf_in_sec(union DateData *x)
+{
+ return ns_to_sec(m_sf(x));
+}
+
+static VALUE
+m_fr(union DateData *x)
+{
+ if (simple_dat_p(x))
+ return INT2FIX(0);
+ else {
+ int df;
+ VALUE sf, fr;
+
+ df = m_local_df(x);
+ sf = m_sf(x);
+ fr = isec_to_day(df);
+ if (f_nonzero_p(sf))
+ fr = f_add(fr, ns_to_day(sf));
+ return fr;
+ }
+}
+
+#define HALF_DAYS_IN_SECONDS (DAY_IN_SECONDS / 2)
+
+static VALUE
+m_ajd(union DateData *x)
+{
+ VALUE r, sf;
+ int df;
+
+ if (simple_dat_p(x)) {
+ r = m_real_jd(x);
+ if (FIXNUM_P(r) && FIX2LONG(r) <= (FIXNUM_MAX / 2)) {
+ long ir = FIX2LONG(r);
+ ir = ir * 2 - 1;
+ return rb_rational_new2(LONG2FIX(ir), INT2FIX(2));
+ }
+ else
+ return rb_rational_new2(f_sub(f_mul(r,
+ INT2FIX(2)),
+ INT2FIX(1)),
+ INT2FIX(2));
+ }
+
+ r = m_real_jd(x);
+ df = m_df(x);
+ df -= HALF_DAYS_IN_SECONDS;
+ if (df)
+ r = f_add(r, isec_to_day(df));
+ sf = m_sf(x);
+ if (f_nonzero_p(sf))
+ r = f_add(r, ns_to_day(sf));
+
+ return r;
+}
+
+static VALUE
+m_amjd(union DateData *x)
+{
+ VALUE r, sf;
+ int df;
+
+ r = m_real_jd(x);
+ if (FIXNUM_P(r) && FIX2LONG(r) >= (FIXNUM_MIN + 2400001)) {
+ long ir = FIX2LONG(r);
+ ir -= 2400001;
+ r = rb_rational_new1(LONG2FIX(ir));
+ }
+ else
+ r = rb_rational_new1(f_sub(m_real_jd(x),
+ INT2FIX(2400001)));
+
+ if (simple_dat_p(x))
+ return r;
+
+ df = m_df(x);
+ if (df)
+ r = f_add(r, isec_to_day(df));
+ sf = m_sf(x);
+ if (f_nonzero_p(sf))
+ r = f_add(r, ns_to_day(sf));
+
+ return r;
+}
+
+inline static int
+m_of(union DateData *x)
+{
+ if (simple_dat_p(x))
+ return 0;
+ else {
+ get_c_jd(x);
+ return x->c.of;
+ }
+}
+
+static VALUE
+m_of_in_day(union DateData *x)
+{
+ return isec_to_day(m_of(x));
+}
+
+inline static double
+m_sg(union DateData *x)
+{
+ if (simple_dat_p(x))
+ return x->s.sg;
+ else {
+ get_c_jd(x);
+ return x->c.sg;
+ }
+}
+
+static int
+m_julian_p(union DateData *x)
+{
+ int jd;
+ double sg;
+
+ if (simple_dat_p(x)) {
+ get_s_jd(x);
+ jd = x->s.jd;
+ sg = s_virtual_sg(x);
+ }
+ else {
+ get_c_jd(x);
+ jd = x->c.jd;
+ sg = c_virtual_sg(x);
+ }
+ if (isinf(sg))
+ return sg == positive_inf;
+ return jd < sg;
+}
+
+inline static int
+m_gregorian_p(union DateData *x)
+{
+ return !m_julian_p(x);
+}
+
+inline static int
+m_proleptic_julian_p(union DateData *x)
+{
+ double sg;
+
+ sg = m_sg(x);
+ if (isinf(sg) && sg > 0)
+ return 1;
+ return 0;
+}
+
+inline static int
+m_proleptic_gregorian_p(union DateData *x)
+{
+ double sg;
+
+ sg = m_sg(x);
+ if (isinf(sg) && sg < 0)
+ return 1;
+ return 0;
+}
+
+inline static int
+m_year(union DateData *x)
+{
+ if (simple_dat_p(x)) {
+ get_s_civil(x);
+ return x->s.year;
+ }
+ else {
+ get_c_civil(x);
+ return x->c.year;
+ }
+}
+
+static VALUE
+m_real_year(union DateData *x)
+{
+ VALUE nth, ry;
+ int year;
+
+ nth = m_nth(x);
+ year = m_year(x);
+
+ if (f_zero_p(nth))
+ return INT2FIX(year);
+
+ encode_year(nth, year,
+ m_gregorian_p(x) ? -1 : +1,
+ &ry);
+ return ry;
+}
+
+
+#ifdef USE_PACK
+inline static int
+m_pc(union DateData *x)
+{
+ if (simple_dat_p(x)) {
+ get_s_civil(x);
+ return x->s.pc;
+ }
+ else {
+ get_c_civil(x);
+ get_c_time(x);
+ return x->c.pc;
+ }
+}
+#endif
+
+inline static int
+m_mon(union DateData *x)
+{
+ if (simple_dat_p(x)) {
+ get_s_civil(x);
+#ifndef USE_PACK
+ return x->s.mon;
+#else
+ return EX_MON(x->s.pc);
+#endif
+ }
+ else {
+ get_c_civil(x);
+#ifndef USE_PACK
+ return x->c.mon;
+#else
+ return EX_MON(x->c.pc);
+#endif
+ }
+}
+
+inline static int
+m_mday(union DateData *x)
+{
+ if (simple_dat_p(x)) {
+ get_s_civil(x);
+#ifndef USE_PACK
+ return x->s.mday;
+#else
+ return EX_MDAY(x->s.pc);
+#endif
+ }
+ else {
+ get_c_civil(x);
+#ifndef USE_PACK
+ return x->c.mday;
+#else
+ return EX_MDAY(x->c.pc);
+#endif
+ }
+}
+
+static const int yeartab[2][13] = {
+ { 0, 0, 31, 59, 90, 120, 151, 181, 212, 243, 273, 304, 334 },
+ { 0, 0, 31, 60, 91, 121, 152, 182, 213, 244, 274, 305, 335 }
+};
+
+static int
+c_julian_to_yday(int y, int m, int d)
+{
+ assert(m >= 1 && m <= 12);
+ return yeartab[c_julian_leap_p(y) ? 1 : 0][m] + d;
+}
+
+static int
+c_gregorian_to_yday(int y, int m, int d)
+{
+ assert(m >= 1 && m <= 12);
+ return yeartab[c_gregorian_leap_p(y) ? 1 : 0][m] + d;
+}
+
+static int
+m_yday(union DateData *x)
+{
+ int jd, ry, rd;
+ double sg;
+
+ jd = m_local_jd(x);
+ sg = m_virtual_sg(x); /* !=m_sg() */
+
+ if (m_proleptic_gregorian_p(x) ||
+ (jd - sg) > 366)
+ return c_gregorian_to_yday(m_year(x), m_mon(x), m_mday(x));
+ if (m_proleptic_julian_p(x))
+ return c_julian_to_yday(m_year(x), m_mon(x), m_mday(x));
+ c_jd_to_ordinal(jd, sg, &ry, &rd);
+ return rd;
+}
+
+static int
+m_wday(union DateData *x)
+{
+ return c_jd_to_wday(m_local_jd(x));
+}
+
+static int
+m_cwyear(union DateData *x)
+{
+ int ry, rw, rd;
+
+ c_jd_to_commercial(m_local_jd(x), m_virtual_sg(x), /* !=m_sg() */
+ &ry, &rw, &rd);
+ return ry;
+}
+
+static VALUE
+m_real_cwyear(union DateData *x)
+{
+ VALUE nth, ry;
+ int year;
+
+ nth = m_nth(x);
+ year = m_cwyear(x);
+
+ if (f_zero_p(nth))
+ return INT2FIX(year);
+
+ encode_year(nth, year,
+ m_gregorian_p(x) ? -1 : +1,
+ &ry);
+ return ry;
+}
+
+static int
+m_cweek(union DateData *x)
+{
+ int ry, rw, rd;
+
+ c_jd_to_commercial(m_local_jd(x), m_virtual_sg(x), /* !=m_sg() */
+ &ry, &rw, &rd);
+ return rw;
+}
+
+static int
+m_cwday(union DateData *x)
+{
+ int w;
+
+ w = m_wday(x);
+ if (w == 0)
+ w = 7;
+ return w;
+}
+
+static int
+m_wnumx(union DateData *x, int f)
+{
+ int ry, rw, rd;
+
+ c_jd_to_weeknum(m_local_jd(x), f, m_virtual_sg(x), /* !=m_sg() */
+ &ry, &rw, &rd);
+ return rw;
+}
+
+static int
+m_wnum0(union DateData *x)
+{
+ return m_wnumx(x, 0);
+}
+
+static int
+m_wnum1(union DateData *x)
+{
+ return m_wnumx(x, 1);
+}
+
+inline static int
+m_hour(union DateData *x)
+{
+ if (simple_dat_p(x))
+ return 0;
+ else {
+ get_c_time(x);
+#ifndef USE_PACK
+ return x->c.hour;
+#else
+ return EX_HOUR(x->c.pc);
+#endif
+ }
+}
+
+inline static int
+m_min(union DateData *x)
+{
+ if (simple_dat_p(x))
+ return 0;
+ else {
+ get_c_time(x);
+#ifndef USE_PACK
+ return x->c.min;
+#else
+ return EX_MIN(x->c.pc);
+#endif
+ }
+}
+
+inline static int
+m_sec(union DateData *x)
+{
+ if (simple_dat_p(x))
+ return 0;
+ else {
+ get_c_time(x);
+#ifndef USE_PACK
+ return x->c.sec;
+#else
+ return EX_SEC(x->c.pc);
+#endif
+ }
+}
+
+#define decode_offset(of,s,h,m)\
+{\
+ int a;\
+ s = (of < 0) ? '-' : '+';\
+ a = (of < 0) ? -of : of;\
+ h = a / HOUR_IN_SECONDS;\
+ m = a % HOUR_IN_SECONDS / MINUTE_IN_SECONDS;\
+}
+
+static VALUE
+of2str(int of)
+{
+ int s, h, m;
+
+ decode_offset(of, s, h, m);
+ return rb_enc_sprintf(rb_usascii_encoding(), "%c%02d:%02d", s, h, m);
+}
+
+static VALUE
+m_zone(union DateData *x)
+{
+ if (simple_dat_p(x))
+ return rb_usascii_str_new2("+00:00");
+ return of2str(m_of(x));
+}
+
+inline static VALUE
+f_kind_of_p(VALUE x, VALUE c)
+{
+ return rb_obj_is_kind_of(x, c);
+}
+
+inline static VALUE
+k_date_p(VALUE x)
+{
+ return f_kind_of_p(x, cDate);
+}
+
+inline static VALUE
+k_datetime_p(VALUE x)
+{
+ return f_kind_of_p(x, cDateTime);
+}
+
+inline static VALUE
+k_numeric_p(VALUE x)
+{
+ return f_kind_of_p(x, rb_cNumeric);
+}
+
+inline static VALUE
+k_rational_p(VALUE x)
+{
+ return f_kind_of_p(x, rb_cRational);
+}
+
+#ifndef NDEBUG
+static void
+civil_to_jd(VALUE y, int m, int d, double sg,
+ VALUE *nth, int *ry,
+ int *rjd,
+ int *ns)
+{
+ double style = guess_style(y, sg);
+
+ if (style == 0) {
+ int jd;
+
+ c_civil_to_jd(FIX2INT(y), m, d, sg, &jd, ns);
+ decode_jd(INT2FIX(jd), nth, rjd);
+ if (f_zero_p(*nth))
+ *ry = FIX2INT(y);
+ else {
+ VALUE nth2;
+ decode_year(y, ns ? -1 : +1, &nth2, ry);
+ }
+ }
+ else {
+ decode_year(y, style, nth, ry);
+ c_civil_to_jd(*ry, m, d, style, rjd, ns);
+ }
+}
+
+static void
+jd_to_civil(VALUE jd, double sg,
+ VALUE *nth, int *rjd,
+ int *ry, int *rm, int *rd)
+{
+ decode_jd(jd, nth, rjd);
+ c_jd_to_civil(*rjd, sg, ry, rm, rd);
+}
+
+static void
+ordinal_to_jd(VALUE y, int d, double sg,
+ VALUE *nth, int *ry,
+ int *rjd,
+ int *ns)
+{
+ double style = guess_style(y, sg);
+
+ if (style == 0) {
+ int jd;
+
+ c_ordinal_to_jd(FIX2INT(y), d, sg, &jd, ns);
+ decode_jd(INT2FIX(jd), nth, rjd);
+ if (f_zero_p(*nth))
+ *ry = FIX2INT(y);
+ else {
+ VALUE nth2;
+ decode_year(y, ns ? -1 : +1, &nth2, ry);
+ }
+ }
+ else {
+ decode_year(y, style, nth, ry);
+ c_ordinal_to_jd(*ry, d, style, rjd, ns);
+ }
+}
+
+static void
+jd_to_ordinal(VALUE jd, double sg,
+ VALUE *nth, int *rjd,
+ int *ry, int *rd)
+{
+ decode_jd(jd, nth, rjd);
+ c_jd_to_ordinal(*rjd, sg, ry, rd);
+}
+
+static void
+commercial_to_jd(VALUE y, int w, int d, double sg,
+ VALUE *nth, int *ry,
+ int *rjd,
+ int *ns)
+{
+ double style = guess_style(y, sg);
+
+ if (style == 0) {
+ int jd;
+
+ c_commercial_to_jd(FIX2INT(y), w, d, sg, &jd, ns);
+ decode_jd(INT2FIX(jd), nth, rjd);
+ if (f_zero_p(*nth))
+ *ry = FIX2INT(y);
+ else {
+ VALUE nth2;
+ decode_year(y, ns ? -1 : +1, &nth2, ry);
+ }
+ }
+ else {
+ decode_year(y, style, nth, ry);
+ c_commercial_to_jd(*ry, w, d, style, rjd, ns);
+ }
+}
+
+static void
+jd_to_commercial(VALUE jd, double sg,
+ VALUE *nth, int *rjd,
+ int *ry, int *rw, int *rd)
+{
+ decode_jd(jd, nth, rjd);
+ c_jd_to_commercial(*rjd, sg, ry, rw, rd);
+}
+
+static void
+weeknum_to_jd(VALUE y, int w, int d, int f, double sg,
+ VALUE *nth, int *ry,
+ int *rjd,
+ int *ns)
+{
+ double style = guess_style(y, sg);
+
+ if (style == 0) {
+ int jd;
+
+ c_weeknum_to_jd(FIX2INT(y), w, d, f, sg, &jd, ns);
+ decode_jd(INT2FIX(jd), nth, rjd);
+ if (f_zero_p(*nth))
+ *ry = FIX2INT(y);
+ else {
+ VALUE nth2;
+ decode_year(y, ns ? -1 : +1, &nth2, ry);
+ }
+ }
+ else {
+ decode_year(y, style, nth, ry);
+ c_weeknum_to_jd(*ry, w, d, f, style, rjd, ns);
+ }
+}
+
+static void
+jd_to_weeknum(VALUE jd, int f, double sg,
+ VALUE *nth, int *rjd,
+ int *ry, int *rw, int *rd)
+{
+ decode_jd(jd, nth, rjd);
+ c_jd_to_weeknum(*rjd, f, sg, ry, rw, rd);
+}
+
+static void
+nth_kday_to_jd(VALUE y, int m, int n, int k, double sg,
+ VALUE *nth, int *ry,
+ int *rjd,
+ int *ns)
+{
+ double style = guess_style(y, sg);
+
+ if (style == 0) {
+ int jd;
+
+ c_nth_kday_to_jd(FIX2INT(y), m, n, k, sg, &jd, ns);
+ decode_jd(INT2FIX(jd), nth, rjd);
+ if (f_zero_p(*nth))
+ *ry = FIX2INT(y);
+ else {
+ VALUE nth2;
+ decode_year(y, ns ? -1 : +1, &nth2, ry);
+ }
+ }
+ else {
+ decode_year(y, style, nth, ry);
+ c_nth_kday_to_jd(*ry, m, n, k, style, rjd, ns);
+ }
+}
+
+static void
+jd_to_nth_kday(VALUE jd, double sg,
+ VALUE *nth, int *rjd,
+ int *ry, int *rm, int *rn, int *rk)
+{
+ decode_jd(jd, nth, rjd);
+ c_jd_to_nth_kday(*rjd, sg, ry, rm, rn, rk);
+}
+#endif
+
+static int
+valid_ordinal_p(VALUE y, int d, double sg,
+ VALUE *nth, int *ry,
+ int *rd, int *rjd,
+ int *ns)
+{
+ double style = guess_style(y, sg);
+ int r;
+
+ if (style == 0) {
+ int jd;
+
+ r = c_valid_ordinal_p(FIX2INT(y), d, sg, rd, &jd, ns);
+ if (!r)
+ return 0;
+ decode_jd(INT2FIX(jd), nth, rjd);
+ if (f_zero_p(*nth))
+ *ry = FIX2INT(y);
+ else {
+ VALUE nth2;
+ decode_year(y, ns ? -1 : +1, &nth2, ry);
+ }
+ }
+ else {
+ decode_year(y, style, nth, ry);
+ r = c_valid_ordinal_p(*ry, d, style, rd, rjd, ns);
+ }
+ return r;
+}
+
+static int
+valid_gregorian_p(VALUE y, int m, int d,
+ VALUE *nth, int *ry,
+ int *rm, int *rd)
+{
+ decode_year(y, -1, nth, ry);
+ return c_valid_gregorian_p(*ry, m, d, rm, rd);
+}
+
+static int
+valid_civil_p(VALUE y, int m, int d, double sg,
+ VALUE *nth, int *ry,
+ int *rm, int *rd, int *rjd,
+ int *ns)
+{
+ double style = guess_style(y, sg);
+ int r;
+
+ if (style == 0) {
+ int jd;
+
+ r = c_valid_civil_p(FIX2INT(y), m, d, sg, rm, rd, &jd, ns);
+ if (!r)
+ return 0;
+ decode_jd(INT2FIX(jd), nth, rjd);
+ if (f_zero_p(*nth))
+ *ry = FIX2INT(y);
+ else {
+ VALUE nth2;
+ decode_year(y, ns ? -1 : +1, &nth2, ry);
+ }
+ }
+ else {
+ decode_year(y, style, nth, ry);
+ if (style < 0)
+ r = c_valid_gregorian_p(*ry, m, d, rm, rd);
+ else
+ r = c_valid_julian_p(*ry, m, d, rm, rd);
+ if (!r)
+ return 0;
+ c_civil_to_jd(*ry, *rm, *rd, style, rjd, ns);
+ }
+ return r;
+}
+
+static int
+valid_commercial_p(VALUE y, int w, int d, double sg,
+ VALUE *nth, int *ry,
+ int *rw, int *rd, int *rjd,
+ int *ns)
+{
+ double style = guess_style(y, sg);
+ int r;
+
+ if (style == 0) {
+ int jd;
+
+ r = c_valid_commercial_p(FIX2INT(y), w, d, sg, rw, rd, &jd, ns);
+ if (!r)
+ return 0;
+ decode_jd(INT2FIX(jd), nth, rjd);
+ if (f_zero_p(*nth))
+ *ry = FIX2INT(y);
+ else {
+ VALUE nth2;
+ decode_year(y, ns ? -1 : +1, &nth2, ry);
+ }
+ }
+ else {
+ decode_year(y, style, nth, ry);
+ r = c_valid_commercial_p(*ry, w, d, style, rw, rd, rjd, ns);
+ }
+ return r;
+}
+
+static int
+valid_weeknum_p(VALUE y, int w, int d, int f, double sg,
+ VALUE *nth, int *ry,
+ int *rw, int *rd, int *rjd,
+ int *ns)
+{
+ double style = guess_style(y, sg);
+ int r;
+
+ if (style == 0) {
+ int jd;
+
+ r = c_valid_weeknum_p(FIX2INT(y), w, d, f, sg, rw, rd, &jd, ns);
+ if (!r)
+ return 0;
+ decode_jd(INT2FIX(jd), nth, rjd);
+ if (f_zero_p(*nth))
+ *ry = FIX2INT(y);
+ else {
+ VALUE nth2;
+ decode_year(y, ns ? -1 : +1, &nth2, ry);
+ }
+ }
+ else {
+ decode_year(y, style, nth, ry);
+ r = c_valid_weeknum_p(*ry, w, d, f, style, rw, rd, rjd, ns);
+ }
+ return r;
+}
+
+#ifndef NDEBUG
+static int
+valid_nth_kday_p(VALUE y, int m, int n, int k, double sg,
+ VALUE *nth, int *ry,
+ int *rm, int *rn, int *rk, int *rjd,
+ int *ns)
+{
+ double style = guess_style(y, sg);
+ int r;
+
+ if (style == 0) {
+ int jd;
+
+ r = c_valid_nth_kday_p(FIX2INT(y), m, n, k, sg, rm, rn, rk, &jd, ns);
+ if (!r)
+ return 0;
+ decode_jd(INT2FIX(jd), nth, rjd);
+ if (f_zero_p(*nth))
+ *ry = FIX2INT(y);
+ else {
+ VALUE nth2;
+ decode_year(y, ns ? -1 : +1, &nth2, ry);
+ }
+ }
+ else {
+ decode_year(y, style, nth, ry);
+ r = c_valid_nth_kday_p(*ry, m, n, k, style, rm, rn, rk, rjd, ns);
+ }
+ return r;
+}
+#endif
+
+VALUE date_zone_to_diff(VALUE);
+
+static int
+offset_to_sec(VALUE vof, int *rof)
+{
+ switch (TYPE(vof)) {
+ case T_FIXNUM:
+ {
+ long n;
+
+ n = FIX2LONG(vof);
+ if (n != -1 && n != 0 && n != 1)
+ return 0;
+ *rof = (int)n * DAY_IN_SECONDS;
+ return 1;
+ }
+ case T_FLOAT:
+ {
+ double n;
+
+ n = RFLOAT_VALUE(vof) * DAY_IN_SECONDS;
+ if (n < -DAY_IN_SECONDS || n > DAY_IN_SECONDS)
+ return 0;
+ *rof = (int)round(n);
+ if (*rof != n)
+ rb_warning("fraction of offset is ignored");
+ return 1;
+ }
+ default:
+ if (!k_numeric_p(vof))
+ rb_raise(rb_eTypeError, "expected numeric");
+ vof = f_to_r(vof);
+#ifdef CANONICALIZATION_FOR_MATHN
+ if (!k_rational_p(vof))
+ return offset_to_sec(vof, rof);
+#endif
+ /* fall through */
+ case T_RATIONAL:
+ {
+ VALUE vs, vn, vd;
+ long n;
+
+ vs = day_to_sec(vof);
+
+#ifdef CANONICALIZATION_FOR_MATHN
+ if (!k_rational_p(vs)) {
+ if (!FIXNUM_P(vs))
+ return 0;
+ n = FIX2LONG(vs);
+ if (n < -DAY_IN_SECONDS || n > DAY_IN_SECONDS)
+ return 0;
+ *rof = (int)n;
+ return 1;
+ }
+#endif
+ vn = RRATIONAL(vs)->num;
+ vd = RRATIONAL(vs)->den;
+
+ if (FIXNUM_P(vn) && FIXNUM_P(vd) && (FIX2LONG(vd) == 1))
+ n = FIX2LONG(vn);
+ else {
+ vn = f_round(vs);
+ if (!f_eqeq_p(vn, vs))
+ rb_warning("fraction of offset is ignored");
+ if (!FIXNUM_P(vn))
+ return 0;
+ n = FIX2LONG(vn);
+ if (n < -DAY_IN_SECONDS || n > DAY_IN_SECONDS)
+ return 0;
+ }
+ *rof = (int)n;
+ return 1;
+ }
+ case T_STRING:
+ {
+ VALUE vs = date_zone_to_diff(vof);
+ long n;
+
+ if (!FIXNUM_P(vs))
+ return 0;
+ n = FIX2LONG(vs);
+ if (n < -DAY_IN_SECONDS || n > DAY_IN_SECONDS)
+ return 0;
+ *rof = (int)n;
+ return 1;
+ }
+ }
+ return 0;
+}
+
+/* date */
+
+#define valid_sg(sg) \
+{\
+ if (!c_valid_start_p(sg)) {\
+ sg = 0;\
+ rb_warning("invalid start is ignored");\
+ }\
+}
+
+static VALUE
+valid_jd_sub(int argc, VALUE *argv, VALUE klass, int need_jd)
+{
+ double sg = NUM2DBL(argv[1]);
+ valid_sg(sg);
+ return argv[0];
+}
+
+#ifndef NDEBUG
+static VALUE
+date_s__valid_jd_p(int argc, VALUE *argv, VALUE klass)
+{
+ VALUE vjd, vsg;
+ VALUE argv2[2];
+
+ rb_scan_args(argc, argv, "11", &vjd, &vsg);
+
+ argv2[0] = vjd;
+ if (argc < 2)
+ argv2[1] = DBL2NUM(GREGORIAN);
+ else
+ argv2[1] = vsg;
+
+ return valid_jd_sub(2, argv2, klass, 1);
+}
+#endif
+
+/*
+ * call-seq:
+ * Date.valid_jd?(jd[, start=Date::ITALY]) -> bool
+ *
+ * Just returns true. It's nonsense, but is for symmetry.
+ *
+ * For example:
+ *
+ * Date.valid_jd?(2451944) #=> true
+ *
+ * See also jd.
+ */
+static VALUE
+date_s_valid_jd_p(int argc, VALUE *argv, VALUE klass)
+{
+ VALUE vjd, vsg;
+ VALUE argv2[2];
+
+ rb_scan_args(argc, argv, "11", &vjd, &vsg);
+
+ argv2[0] = vjd;
+ if (argc < 2)
+ argv2[1] = INT2FIX(DEFAULT_SG);
+ else
+ argv2[1] = vsg;
+
+ if (NIL_P(valid_jd_sub(2, argv2, klass, 0)))
+ return Qfalse;
+ return Qtrue;
+}
+
+static VALUE
+valid_civil_sub(int argc, VALUE *argv, VALUE klass, int need_jd)
+{
+ VALUE nth, y;
+ int m, d, ry, rm, rd;
+ double sg;
+
+ y = argv[0];
+ m = NUM2INT(argv[1]);
+ d = NUM2INT(argv[2]);
+ sg = NUM2DBL(argv[3]);
+
+ valid_sg(sg);
+
+ if (!need_jd && (guess_style(y, sg) < 0)) {
+ if (!valid_gregorian_p(y, m, d,
+ &nth, &ry,
+ &rm, &rd))
+ return Qnil;
+ return INT2FIX(0); /* dummy */
+ }
+ else {
+ int rjd, ns;
+ VALUE rjd2;
+
+ if (!valid_civil_p(y, m, d, sg,
+ &nth, &ry,
+ &rm, &rd, &rjd,
+ &ns))
+ return Qnil;
+ if (!need_jd)
+ return INT2FIX(0); /* dummy */
+ encode_jd(nth, rjd, &rjd2);
+ return rjd2;
+ }
+}
+
+#ifndef NDEBUG
+static VALUE
+date_s__valid_civil_p(int argc, VALUE *argv, VALUE klass)
+{
+ VALUE vy, vm, vd, vsg;
+ VALUE argv2[4];
+
+ rb_scan_args(argc, argv, "31", &vy, &vm, &vd, &vsg);
+
+ argv2[0] = vy;
+ argv2[1] = vm;
+ argv2[2] = vd;
+ if (argc < 4)
+ argv2[3] = DBL2NUM(GREGORIAN);
+ else
+ argv2[3] = vsg;
+
+ return valid_civil_sub(4, argv2, klass, 1);
+}
+#endif
+
+/*
+ * call-seq:
+ * Date.valid_civil?(year, month, mday[, start=Date::ITALY]) -> bool
+ * Date.valid_date?(year, month, mday[, start=Date::ITALY]) -> bool
+ *
+ * Returns true if the given calendar date is valid, and false if not.
+ *
+ * For example:
+ *
+ * Date.valid_date?(2001,2,3) #=> true
+ * Date.valid_date?(2001,2,29) #=> false
+ *
+ * See also jd and civil.
+ */
+static VALUE
+date_s_valid_civil_p(int argc, VALUE *argv, VALUE klass)
+{
+ VALUE vy, vm, vd, vsg;
+ VALUE argv2[4];
+
+ rb_scan_args(argc, argv, "31", &vy, &vm, &vd, &vsg);
+
+ argv2[0] = vy;
+ argv2[1] = vm;
+ argv2[2] = vd;
+ if (argc < 4)
+ argv2[3] = INT2FIX(DEFAULT_SG);
+ else
+ argv2[3] = vsg;
+
+ if (NIL_P(valid_civil_sub(4, argv2, klass, 0)))
+ return Qfalse;
+ return Qtrue;
+}
+
+static VALUE
+valid_ordinal_sub(int argc, VALUE *argv, VALUE klass, int need_jd)
+{
+ VALUE nth, y;
+ int d, ry, rd;
+ double sg;
+
+ y = argv[0];
+ d = NUM2INT(argv[1]);
+ sg = NUM2DBL(argv[2]);
+
+ valid_sg(sg);
+
+ {
+ int rjd, ns;
+ VALUE rjd2;
+
+ if (!valid_ordinal_p(y, d, sg,
+ &nth, &ry,
+ &rd, &rjd,
+ &ns))
+ return Qnil;
+ if (!need_jd)
+ return INT2FIX(0); /* dummy */
+ encode_jd(nth, rjd, &rjd2);
+ return rjd2;
+ }
+}
+
+#ifndef NDEBUG
+static VALUE
+date_s__valid_ordinal_p(int argc, VALUE *argv, VALUE klass)
+{
+ VALUE vy, vd, vsg;
+ VALUE argv2[3];
+
+ rb_scan_args(argc, argv, "21", &vy, &vd, &vsg);
+
+ argv2[0] = vy;
+ argv2[1] = vd;
+ if (argc < 3)
+ argv2[2] = DBL2NUM(GREGORIAN);
+ else
+ argv2[2] = vsg;
+
+ return valid_ordinal_sub(3, argv2, klass, 1);
+}
+#endif
+
+/*
+ * call-seq:
+ * Date.valid_ordinal?(year, yday[, start=Date::ITALY]) -> bool
+ *
+ * Returns true if the given ordinal date is valid, and false if not.
+ *
+ * For example:
+ *
+ * Date.valid_ordinal?(2001,34) #=> true
+ * Date.valid_ordinal?(2001,366) #=> false
+ *
+ * See also jd and ordinal.
+ */
+static VALUE
+date_s_valid_ordinal_p(int argc, VALUE *argv, VALUE klass)
+{
+ VALUE vy, vd, vsg;
+ VALUE argv2[3];
+
+ rb_scan_args(argc, argv, "21", &vy, &vd, &vsg);
+
+ argv2[0] = vy;
+ argv2[1] = vd;
+ if (argc < 3)
+ argv2[2] = INT2FIX(DEFAULT_SG);
+ else
+ argv2[2] = vsg;
+
+ if (NIL_P(valid_ordinal_sub(3, argv2, klass, 0)))
+ return Qfalse;
+ return Qtrue;
+}
+
+static VALUE
+valid_commercial_sub(int argc, VALUE *argv, VALUE klass, int need_jd)
+{
+ VALUE nth, y;
+ int w, d, ry, rw, rd;
+ double sg;
+
+ y = argv[0];
+ w = NUM2INT(argv[1]);
+ d = NUM2INT(argv[2]);
+ sg = NUM2DBL(argv[3]);
+
+ valid_sg(sg);
+
+ {
+ int rjd, ns;
+ VALUE rjd2;
+
+ if (!valid_commercial_p(y, w, d, sg,
+ &nth, &ry,
+ &rw, &rd, &rjd,
+ &ns))
+ return Qnil;
+ if (!need_jd)
+ return INT2FIX(0); /* dummy */
+ encode_jd(nth, rjd, &rjd2);
+ return rjd2;
+ }
+}
+
+#ifndef NDEBUG
+static VALUE
+date_s__valid_commercial_p(int argc, VALUE *argv, VALUE klass)
+{
+ VALUE vy, vw, vd, vsg;
+ VALUE argv2[4];
+
+ rb_scan_args(argc, argv, "31", &vy, &vw, &vd, &vsg);
+
+ argv2[0] = vy;
+ argv2[1] = vw;
+ argv2[2] = vd;
+ if (argc < 4)
+ argv2[3] = DBL2NUM(GREGORIAN);
+ else
+ argv2[3] = vsg;
+
+ return valid_commercial_sub(4, argv2, klass, 1);
+}
+#endif
+
+/*
+ * call-seq:
+ * Date.valid_commercial?(cwyear, cweek, cwday[, start=Date::ITALY]) -> bool
+ *
+ * Returns true if the given week date is valid, and false if not.
+ *
+ * For example:
+ *
+ * Date.valid_commercial?(2001,5,6) #=> true
+ * Date.valid_commercial?(2001,5,8) #=> false
+ *
+ * See also jd and commercial.
+ */
+static VALUE
+date_s_valid_commercial_p(int argc, VALUE *argv, VALUE klass)
+{
+ VALUE vy, vw, vd, vsg;
+ VALUE argv2[4];
+
+ rb_scan_args(argc, argv, "31", &vy, &vw, &vd, &vsg);
+
+ argv2[0] = vy;
+ argv2[1] = vw;
+ argv2[2] = vd;
+ if (argc < 4)
+ argv2[3] = INT2FIX(DEFAULT_SG);
+ else
+ argv2[3] = vsg;
+
+ if (NIL_P(valid_commercial_sub(4, argv2, klass, 0)))
+ return Qfalse;
+ return Qtrue;
+}
+
+#ifndef NDEBUG
+static VALUE
+valid_weeknum_sub(int argc, VALUE *argv, VALUE klass, int need_jd)
+{
+ VALUE nth, y;
+ int w, d, f, ry, rw, rd;
+ double sg;
+
+ y = argv[0];
+ w = NUM2INT(argv[1]);
+ d = NUM2INT(argv[2]);
+ f = NUM2INT(argv[3]);
+ sg = NUM2DBL(argv[4]);
+
+ valid_sg(sg);
+
+ {
+ int rjd, ns;
+ VALUE rjd2;
+
+ if (!valid_weeknum_p(y, w, d, f, sg,
+ &nth, &ry,
+ &rw, &rd, &rjd,
+ &ns))
+ return Qnil;
+ if (!need_jd)
+ return INT2FIX(0); /* dummy */
+ encode_jd(nth, rjd, &rjd2);
+ return rjd2;
+ }
+}
+
+static VALUE
+date_s__valid_weeknum_p(int argc, VALUE *argv, VALUE klass)
+{
+ VALUE vy, vw, vd, vf, vsg;
+ VALUE argv2[5];
+
+ rb_scan_args(argc, argv, "41", &vy, &vw, &vd, &vf, &vsg);
+
+ argv2[0] = vy;
+ argv2[1] = vw;
+ argv2[2] = vd;
+ argv2[3] = vf;
+ if (argc < 5)
+ argv2[4] = DBL2NUM(GREGORIAN);
+ else
+ argv2[4] = vsg;
+
+ return valid_weeknum_sub(5, argv2, klass, 1);
+}
+
+static VALUE
+date_s_valid_weeknum_p(int argc, VALUE *argv, VALUE klass)
+{
+ VALUE vy, vw, vd, vf, vsg;
+ VALUE argv2[5];
+
+ rb_scan_args(argc, argv, "41", &vy, &vw, &vd, &vf, &vsg);
+
+ argv2[0] = vy;
+ argv2[1] = vw;
+ argv2[2] = vd;
+ argv2[3] = vf;
+ if (argc < 5)
+ argv2[4] = INT2FIX(DEFAULT_SG);
+ else
+ argv2[4] = vsg;
+
+ if (NIL_P(valid_weeknum_sub(5, argv2, klass, 0)))
+ return Qfalse;
+ return Qtrue;
+}
+
+static VALUE
+valid_nth_kday_sub(int argc, VALUE *argv, VALUE klass, int need_jd)
+{
+ VALUE nth, y;
+ int m, n, k, ry, rm, rn, rk;
+ double sg;
+
+ y = argv[0];
+ m = NUM2INT(argv[1]);
+ n = NUM2INT(argv[2]);
+ k = NUM2INT(argv[3]);
+ sg = NUM2DBL(argv[4]);
+
+ {
+ int rjd, ns;
+ VALUE rjd2;
+
+ if (!valid_nth_kday_p(y, m, n, k, sg,
+ &nth, &ry,
+ &rm, &rn, &rk, &rjd,
+ &ns))
+ return Qnil;
+ if (!need_jd)
+ return INT2FIX(0); /* dummy */
+ encode_jd(nth, rjd, &rjd2);
+ return rjd2;
+ }
+}
+
+static VALUE
+date_s__valid_nth_kday_p(int argc, VALUE *argv, VALUE klass)
+{
+ VALUE vy, vm, vn, vk, vsg;
+ VALUE argv2[5];
+
+ rb_scan_args(argc, argv, "41", &vy, &vm, &vn, &vk, &vsg);
+
+ argv2[0] = vy;
+ argv2[1] = vm;
+ argv2[2] = vn;
+ argv2[3] = vk;
+ if (argc < 5)
+ argv2[4] = DBL2NUM(GREGORIAN);
+ else
+ argv2[4] = vsg;
+
+ return valid_nth_kday_sub(5, argv2, klass, 1);
+}
+
+static VALUE
+date_s_valid_nth_kday_p(int argc, VALUE *argv, VALUE klass)
+{
+ VALUE vy, vm, vn, vk, vsg;
+ VALUE argv2[5];
+
+ rb_scan_args(argc, argv, "41", &vy, &vm, &vn, &vk, &vsg);
+
+ argv2[0] = vy;
+ argv2[1] = vm;
+ argv2[2] = vn;
+ argv2[3] = vk;
+ if (argc < 5)
+ argv2[4] = INT2FIX(DEFAULT_SG);
+ else
+ argv2[4] = vsg;
+
+ if (NIL_P(valid_nth_kday_sub(5, argv2, klass, 0)))
+ return Qfalse;
+ return Qtrue;
+}
+
+static VALUE
+date_s_zone_to_diff(VALUE klass, VALUE str)
+{
+ return date_zone_to_diff(str);
+}
+#endif
+
+/*
+ * call-seq:
+ * Date.julian_leap?(year) -> bool
+ *
+ * Returns true if the given year is a leap year of the proleptic
+ * Julian calendar.
+ *
+ * For example:
+ *
+ * Date.julian_leap?(1900) #=> true
+ * Date.julian_leap?(1901) #=> false
+ */
+static VALUE
+date_s_julian_leap_p(VALUE klass, VALUE y)
+{
+ VALUE nth;
+ int ry;
+
+ decode_year(y, +1, &nth, &ry);
+ return f_boolcast(c_julian_leap_p(ry));
+}
+
+/*
+ * call-seq:
+ * Date.gregorian_leap?(year) -> bool
+ * Date.leap?(year) -> bool
+ *
+ * Returns true if the given year is a leap year of the proleptic
+ * Gregorian calendar.
+ *
+ * For example:
+ *
+ * Date.gregorian_leap?(1900) #=> false
+ * Date.gregorian_leap?(2000) #=> true
+ */
+static VALUE
+date_s_gregorian_leap_p(VALUE klass, VALUE y)
+{
+ VALUE nth;
+ int ry;
+
+ decode_year(y, -1, &nth, &ry);
+ return f_boolcast(c_gregorian_leap_p(ry));
+}
+
+static void
+d_lite_gc_mark(union DateData *dat)
+{
+ if (simple_dat_p(dat))
+ rb_gc_mark(dat->s.nth);
+ else {
+ rb_gc_mark(dat->c.nth);
+ rb_gc_mark(dat->c.sf);
+
+ }
+}
+
+inline static VALUE
+d_simple_new_internal(VALUE klass,
+ VALUE nth, int jd,
+ double sg,
+ int y, int m, int d,
+ unsigned flags)
+{
+ struct SimpleDateData *dat;
+ VALUE obj;
+
+ obj = Data_Make_Struct(klass, struct SimpleDateData,
+ d_lite_gc_mark, -1, dat);
+ set_to_simple(dat, nth, jd, sg, y, m, d, flags & ~COMPLEX_DAT);
+
+ assert(have_jd_p(dat) || have_civil_p(dat));
+
+ return obj;
+}
+
+inline static VALUE
+d_complex_new_internal(VALUE klass,
+ VALUE nth, int jd,
+ int df, VALUE sf,
+ int of, double sg,
+ int y, int m, int d,
+ int h, int min, int s,
+ unsigned flags)
+{
+ struct ComplexDateData *dat;
+ VALUE obj;
+
+ obj = Data_Make_Struct(klass, struct ComplexDateData,
+ d_lite_gc_mark, -1, dat);
+ set_to_complex(dat, nth, jd, df, sf, of, sg,
+ y, m, d, h, min, s, flags | COMPLEX_DAT);
+
+ assert(have_jd_p(dat) || have_civil_p(dat));
+ assert(have_df_p(dat) || have_time_p(dat));
+
+ return obj;
+}
+
+static VALUE
+d_lite_s_alloc_simple(VALUE klass)
+{
+ return d_simple_new_internal(klass,
+ INT2FIX(0), 0,
+ DEFAULT_SG,
+ 0, 0, 0,
+ HAVE_JD);
+}
+
+static VALUE
+d_lite_s_alloc_complex(VALUE klass)
+{
+ return d_complex_new_internal(klass,
+ INT2FIX(0), 0,
+ 0, INT2FIX(0),
+ 0, DEFAULT_SG,
+ 0, 0, 0,
+ 0, 0, 0,
+ HAVE_JD | HAVE_DF);
+}
+
+static VALUE
+d_lite_s_alloc(VALUE klass)
+{
+ return d_lite_s_alloc_complex(klass);
+}
+
+static void
+old_to_new(VALUE ajd, VALUE of, VALUE sg,
+ VALUE *rnth, int *rjd, int *rdf, VALUE *rsf,
+ int *rof, double *rsg)
+{
+ VALUE jd, df, sf, of2, t;
+
+ decode_day(f_add(ajd, half_days_in_day),
+ &jd, &df, &sf);
+ t = day_to_sec(of);
+ of2 = f_round(t);
+
+ if (!f_eqeq_p(of2, t))
+ rb_warning("fraction of offset is ignored");
+
+ decode_jd(jd, rnth, rjd);
+
+ *rdf = NUM2INT(df);
+ *rsf = sf;
+ *rof = NUM2INT(of2);
+ *rsg = NUM2DBL(sg);
+
+ if (*rdf < 0 || *rdf >= DAY_IN_SECONDS)
+ rb_raise(rb_eArgError, "invalid day fraction");
+
+ if (f_lt_p(*rsf, INT2FIX(0)) ||
+ f_ge_p(*rsf, INT2FIX(SECOND_IN_NANOSECONDS)))
+
+ if (*rof < -DAY_IN_SECONDS || *rof > DAY_IN_SECONDS) {
+ *rof = 0;
+ rb_warning("invalid offset is ignored");
+ }
+
+ if (!c_valid_start_p(*rsg)) {
+ *rsg = DEFAULT_SG;
+ rb_warning("invalid start is ignored");
+ }
+}
+
+#ifndef NDEBUG
+static VALUE
+date_s_new_bang(int argc, VALUE *argv, VALUE klass)
+{
+ VALUE ajd, of, sg, nth, sf;
+ int jd, df, rof;
+ double rsg;
+
+ rb_scan_args(argc, argv, "03", &ajd, &of, &sg);
+
+ switch (argc) {
+ case 0:
+ ajd = INT2FIX(0);
+ case 1:
+ of = INT2FIX(0);
+ case 2:
+ sg = INT2FIX(DEFAULT_SG);
+ }
+
+ old_to_new(ajd, of, sg,
+ &nth, &jd, &df, &sf, &rof, &rsg);
+
+ if (!df && f_zero_p(sf) && !rof)
+ return d_simple_new_internal(klass,
+ nth, jd,
+ rsg,
+ 0, 0, 0,
+ HAVE_JD);
+ else
+ return d_complex_new_internal(klass,
+ nth, jd,
+ df, sf,
+ rof, rsg,
+ 0, 0, 0,
+ 0, 0, 0,
+ HAVE_JD | HAVE_DF);
+}
+#endif
+
+inline static int
+wholenum_p(VALUE x)
+{
+ if (FIXNUM_P(x))
+ return 1;
+ switch (TYPE(x)) {
+ case T_BIGNUM:
+ return 1;
+ case T_FLOAT:
+ {
+ double d = RFLOAT_VALUE(x);
+ return round(d) == d;
+ }
+ break;
+ case T_RATIONAL:
+ {
+ VALUE den = RRATIONAL(x)->den;
+ return FIXNUM_P(den) && FIX2LONG(den) == 1;
+ }
+ break;
+ }
+ return 0;
+}
+
+inline static VALUE
+to_integer(VALUE x)
+{
+ if (FIXNUM_P(x) || RB_TYPE_P(x, T_BIGNUM))
+ return x;
+ return f_to_i(x);
+}
+
+inline static VALUE
+d_trunc(VALUE d, VALUE *fr)
+{
+ VALUE rd;
+
+ if (wholenum_p(d)) {
+ rd = to_integer(d);
+ *fr = INT2FIX(0);
+ }
+ else {
+ rd = f_idiv(d, INT2FIX(1));
+ *fr = f_mod(d, INT2FIX(1));
+ }
+ return rd;
+}
+
+#define jd_trunc d_trunc
+#define k_trunc d_trunc
+
+inline static VALUE
+h_trunc(VALUE h, VALUE *fr)
+{
+ VALUE rh;
+
+ if (wholenum_p(h)) {
+ rh = to_integer(h);
+ *fr = INT2FIX(0);
+ }
+ else {
+ rh = f_idiv(h, INT2FIX(1));
+ *fr = f_mod(h, INT2FIX(1));
+ *fr = f_quo(*fr, INT2FIX(24));
+ }
+ return rh;
+}
+
+inline static VALUE
+min_trunc(VALUE min, VALUE *fr)
+{
+ VALUE rmin;
+
+ if (wholenum_p(min)) {
+ rmin = to_integer(min);
+ *fr = INT2FIX(0);
+ }
+ else {
+ rmin = f_idiv(min, INT2FIX(1));
+ *fr = f_mod(min, INT2FIX(1));
+ *fr = f_quo(*fr, INT2FIX(1440));
+ }
+ return rmin;
+}
+
+inline static VALUE
+s_trunc(VALUE s, VALUE *fr)
+{
+ VALUE rs;
+
+ if (wholenum_p(s)) {
+ rs = to_integer(s);
+ *fr = INT2FIX(0);
+ }
+ else {
+ rs = f_idiv(s, INT2FIX(1));
+ *fr = f_mod(s, INT2FIX(1));
+ *fr = f_quo(*fr, INT2FIX(86400));
+ }
+ return rs;
+}
+
+#define num2num_with_frac(s,n) \
+{\
+ s = s##_trunc(v##s, &fr);\
+ if (f_nonzero_p(fr)) {\
+ if (argc > n)\
+ rb_raise(rb_eArgError, "invalid fraction");\
+ fr2 = fr;\
+ }\
+}
+
+#define num2int_with_frac(s,n) \
+{\
+ s = NUM2INT(s##_trunc(v##s, &fr));\
+ if (f_nonzero_p(fr)) {\
+ if (argc > n)\
+ rb_raise(rb_eArgError, "invalid fraction");\
+ fr2 = fr;\
+ }\
+}
+
+#define canon24oc() \
+{\
+ if (rh == 24) {\
+ rh = 0;\
+ fr2 = f_add(fr2, INT2FIX(1));\
+ }\
+}
+
+#define add_frac() \
+{\
+ if (f_nonzero_p(fr2))\
+ ret = d_lite_plus(ret, fr2);\
+}
+
+#define val2sg(vsg,dsg) \
+{\
+ dsg = NUM2DBL(vsg);\
+ if (!c_valid_start_p(dsg)) {\
+ dsg = DEFAULT_SG;\
+ rb_warning("invalid start is ignored");\
+ }\
+}
+
+static VALUE d_lite_plus(VALUE, VALUE);
+
+/*
+ * call-seq:
+ * Date.jd([jd=0[, start=Date::ITALY]]) -> date
+ *
+ * Creates a date object denoting the given chronological Julian day
+ * number.
+ *
+ * For example:
+ *
+ * Date.jd(2451944) #=> #<Date: 2001-02-03 ...>
+ * Date.jd(2451945) #=> #<Date: 2001-02-04 ...>
+ * Date.jd(0) #=> #<Date: -4712-01-01 ...>
+ *
+ * See also new.
+ */
+static VALUE
+date_s_jd(int argc, VALUE *argv, VALUE klass)
+{
+ VALUE vjd, vsg, jd, fr, fr2, ret;
+ double sg;
+
+ rb_scan_args(argc, argv, "02", &vjd, &vsg);
+
+ jd = INT2FIX(0);
+ fr2 = INT2FIX(0);
+ sg = DEFAULT_SG;
+
+ switch (argc) {
+ case 2:
+ val2sg(vsg, sg);
+ case 1:
+ num2num_with_frac(jd, positive_inf);
+ }
+
+ {
+ VALUE nth;
+ int rjd;
+
+ decode_jd(jd, &nth, &rjd);
+ ret = d_simple_new_internal(klass,
+ nth, rjd,
+ sg,
+ 0, 0, 0,
+ HAVE_JD);
+ }
+ add_frac();
+ return ret;
+}
+
+/*
+ * call-seq:
+ * Date.ordinal([year=-4712[, yday=1[, start=Date::ITALY]]]) -> date
+ *
+ * Creates a date object denoting the given ordinal date.
+ *
+ * The day of year should be a negative or a positive number (as a
+ * relative day from the end of year when negative). It should not be
+ * zero.
+ *
+ * For example:
+ *
+ * Date.ordinal(2001) #=> #<Date: 2001-01-01 ...>
+ * Date.ordinal(2001,34) #=> #<Date: 2001-02-03 ...>
+ * Date.ordinal(2001,-1) #=> #<Date: 2001-12-31 ...>
+ *
+ * See also jd and new.
+ */
+static VALUE
+date_s_ordinal(int argc, VALUE *argv, VALUE klass)
+{
+ VALUE vy, vd, vsg, y, fr, fr2, ret;
+ int d;
+ double sg;
+
+ rb_scan_args(argc, argv, "03", &vy, &vd, &vsg);
+
+ y = INT2FIX(-4712);
+ d = 1;
+ fr2 = INT2FIX(0);
+ sg = DEFAULT_SG;
+
+ switch (argc) {
+ case 3:
+ val2sg(vsg, sg);
+ case 2:
+ num2int_with_frac(d, positive_inf);
+ case 1:
+ y = vy;
+ }
+
+ {
+ VALUE nth;
+ int ry, rd, rjd, ns;
+
+ if (!valid_ordinal_p(y, d, sg,
+ &nth, &ry,
+ &rd, &rjd,
+ &ns))
+ rb_raise(rb_eArgError, "invalid date");
+
+ ret = d_simple_new_internal(klass,
+ nth, rjd,
+ sg,
+ 0, 0, 0,
+ HAVE_JD);
+ }
+ add_frac();
+ return ret;
+}
+
+/*
+ * call-seq:
+ * Date.civil([year=-4712[, month=1[, mday=1[, start=Date::ITALY]]]]) -> date
+ * Date.new([year=-4712[, month=1[, mday=1[, start=Date::ITALY]]]]) -> date
+ *
+ * Creates a date object denoting the given calendar date.
+ *
+ * In this class, BCE years are counted astronomically. Thus, the
+ * year before the year 1 is the year zero, and the year preceding the
+ * year zero is the year -1. The month and the day of month should be
+ * a negative or a positive number (as a relative month/day from the
+ * end of year/month when negative). They should not be zero.
+ *
+ * The last argument should be a Julian day number which denotes the
+ * day of calendar reform. Date::ITALY (2299161=1582-10-15),
+ * Date::ENGLAND (2361222=1752-09-14), Date::GREGORIAN (the proleptic
+ * Gregorian calendar) and Date::JULIAN (the proleptic Julian
+ * calendar) can be specified as a day of calendar reform.
+ *
+ * For example:
+ *
+ * Date.new(2001) #=> #<Date: 2001-01-01 ...>
+ * Date.new(2001,2,3) #=> #<Date: 2001-02-03 ...>
+ * Date.new(2001,2,-1) #=> #<Date: 2001-02-28 ...>
+ *
+ * See also jd.
+ */
+static VALUE
+date_s_civil(int argc, VALUE *argv, VALUE klass)
+{
+ VALUE vy, vm, vd, vsg, y, fr, fr2, ret;
+ int m, d;
+ double sg;
+
+ rb_scan_args(argc, argv, "04", &vy, &vm, &vd, &vsg);
+
+ y = INT2FIX(-4712);
+ m = 1;
+ d = 1;
+ fr2 = INT2FIX(0);
+ sg = DEFAULT_SG;
+
+ switch (argc) {
+ case 4:
+ val2sg(vsg, sg);
+ case 3:
+ num2int_with_frac(d, positive_inf);
+ case 2:
+ m = NUM2INT(vm);
+ case 1:
+ y = vy;
+ }
+
+ if (guess_style(y, sg) < 0) {
+ VALUE nth;
+ int ry, rm, rd;
+
+ if (!valid_gregorian_p(y, m, d,
+ &nth, &ry,
+ &rm, &rd))
+ rb_raise(rb_eArgError, "invalid date");
+
+ ret = d_simple_new_internal(klass,
+ nth, 0,
+ sg,
+ ry, rm, rd,
+ HAVE_CIVIL);
+ }
+ else {
+ VALUE nth;
+ int ry, rm, rd, rjd, ns;
+
+ if (!valid_civil_p(y, m, d, sg,
+ &nth, &ry,
+ &rm, &rd, &rjd,
+ &ns))
+ rb_raise(rb_eArgError, "invalid date");
+
+ ret = d_simple_new_internal(klass,
+ nth, rjd,
+ sg,
+ ry, rm, rd,
+ HAVE_JD | HAVE_CIVIL);
+ }
+ add_frac();
+ return ret;
+}
+
+/*
+ * call-seq:
+ * Date.commercial([cwyear=-4712[, cweek=1[, cwday=1[, start=Date::ITALY]]]]) -> date
+ *
+ * Creates a date object denoting the given week date.
+ *
+ * The week and the day of week should be a negative or a positive
+ * number (as a relative week/day from the end of year/week when
+ * negative). They should not be zero.
+ *
+ * For example:
+ *
+ * Date.commercial(2001) #=> #<Date: 2001-01-01 ...>
+ * Date.commercial(2002) #=> #<Date: 2001-12-31 ...>
+ * Date.commercial(2001,5,6) #=> #<Date: 2001-02-03 ...>
+ *
+ * See also jd and new.
+ */
+static VALUE
+date_s_commercial(int argc, VALUE *argv, VALUE klass)
+{
+ VALUE vy, vw, vd, vsg, y, fr, fr2, ret;
+ int w, d;
+ double sg;
+
+ rb_scan_args(argc, argv, "04", &vy, &vw, &vd, &vsg);
+
+ y = INT2FIX(-4712);
+ w = 1;
+ d = 1;
+ fr2 = INT2FIX(0);
+ sg = DEFAULT_SG;
+
+ switch (argc) {
+ case 4:
+ val2sg(vsg, sg);
+ case 3:
+ num2int_with_frac(d, positive_inf);
+ case 2:
+ w = NUM2INT(vw);
+ case 1:
+ y = vy;
+ }
+
+ {
+ VALUE nth;
+ int ry, rw, rd, rjd, ns;
+
+ if (!valid_commercial_p(y, w, d, sg,
+ &nth, &ry,
+ &rw, &rd, &rjd,
+ &ns))
+ rb_raise(rb_eArgError, "invalid date");
+
+ ret = d_simple_new_internal(klass,
+ nth, rjd,
+ sg,
+ 0, 0, 0,
+ HAVE_JD);
+ }
+ add_frac();
+ return ret;
+}
+
+#ifndef NDEBUG
+static VALUE
+date_s_weeknum(int argc, VALUE *argv, VALUE klass)
+{
+ VALUE vy, vw, vd, vf, vsg, y, fr, fr2, ret;
+ int w, d, f;
+ double sg;
+
+ rb_scan_args(argc, argv, "05", &vy, &vw, &vd, &vf, &vsg);
+
+ y = INT2FIX(-4712);
+ w = 0;
+ d = 1;
+ f = 0;
+ fr2 = INT2FIX(0);
+ sg = DEFAULT_SG;
+
+ switch (argc) {
+ case 5:
+ val2sg(vsg, sg);
+ case 4:
+ f = NUM2INT(vf);
+ case 3:
+ num2int_with_frac(d, positive_inf);
+ case 2:
+ w = NUM2INT(vw);
+ case 1:
+ y = vy;
+ }
+
+ {
+ VALUE nth;
+ int ry, rw, rd, rjd, ns;
+
+ if (!valid_weeknum_p(y, w, d, f, sg,
+ &nth, &ry,
+ &rw, &rd, &rjd,
+ &ns))
+ rb_raise(rb_eArgError, "invalid date");
+
+ ret = d_simple_new_internal(klass,
+ nth, rjd,
+ sg,
+ 0, 0, 0,
+ HAVE_JD);
+ }
+ add_frac();
+ return ret;
+}
+
+static VALUE
+date_s_nth_kday(int argc, VALUE *argv, VALUE klass)
+{
+ VALUE vy, vm, vn, vk, vsg, y, fr, fr2, ret;
+ int m, n, k;
+ double sg;
+
+ rb_scan_args(argc, argv, "05", &vy, &vm, &vn, &vk, &vsg);
+
+ y = INT2FIX(-4712);
+ m = 1;
+ n = 1;
+ k = 1;
+ fr2 = INT2FIX(0);
+ sg = DEFAULT_SG;
+
+ switch (argc) {
+ case 5:
+ val2sg(vsg, sg);
+ case 4:
+ num2int_with_frac(k, positive_inf);
+ case 3:
+ n = NUM2INT(vn);
+ case 2:
+ m = NUM2INT(vm);
+ case 1:
+ y = vy;
+ }
+
+ {
+ VALUE nth;
+ int ry, rm, rn, rk, rjd, ns;
+
+ if (!valid_nth_kday_p(y, m, n, k, sg,
+ &nth, &ry,
+ &rm, &rn, &rk, &rjd,
+ &ns))
+ rb_raise(rb_eArgError, "invalid date");
+
+ ret = d_simple_new_internal(klass,
+ nth, rjd,
+ sg,
+ 0, 0, 0,
+ HAVE_JD);
+ }
+ add_frac();
+ return ret;
+}
+#endif
+
+#if !defined(HAVE_GMTIME_R)
+static struct tm*
+gmtime_r(const time_t *t, struct tm *tm)
+{
+ auto struct tm *tmp = gmtime(t);
+ if (tmp)
+ *tm = *tmp;
+ return tmp;
+}
+
+static struct tm*
+localtime_r(const time_t *t, struct tm *tm)
+{
+ auto struct tm *tmp = localtime(t);
+ if (tmp)
+ *tm = *tmp;
+ return tmp;
+}
+#endif
+
+static void set_sg(union DateData *, double);
+
+/*
+ * call-seq:
+ * Date.today([start=Date::ITALY]) -> date
+ *
+ * For example:
+ *
+ * Date.today #=> #<Date: 2011-06-11 ..>
+ *
+ * Creates a date object denoting the present day.
+ */
+static VALUE
+date_s_today(int argc, VALUE *argv, VALUE klass)
+{
+ VALUE vsg, nth, ret;
+ double sg;
+ time_t t;
+ struct tm tm;
+ int y, ry, m, d;
+
+ rb_scan_args(argc, argv, "01", &vsg);
+
+ if (argc < 1)
+ sg = DEFAULT_SG;
+ else
+ val2sg(vsg, sg);
+
+ if (time(&t) == -1)
+ rb_sys_fail("time");
+ tzset();
+ if (!localtime_r(&t, &tm))
+ rb_sys_fail("localtime");
+
+ y = tm.tm_year + 1900;
+ m = tm.tm_mon + 1;
+ d = tm.tm_mday;
+
+ decode_year(INT2FIX(y), -1, &nth, &ry);
+
+ ret = d_simple_new_internal(klass,
+ nth, 0,
+ GREGORIAN,
+ ry, m, d,
+ HAVE_CIVIL);
+ {
+ get_d1(ret);
+ set_sg(dat, sg);
+ }
+ return ret;
+}
+
+#define set_hash0(k,v) rb_hash_aset(hash, k, v)
+#define ref_hash0(k) rb_hash_aref(hash, k)
+#define del_hash0(k) rb_hash_delete(hash, k)
+
+#define set_hash(k,v) rb_hash_aset(hash, ID2SYM(rb_intern(k)), v)
+#define ref_hash(k) rb_hash_aref(hash, ID2SYM(rb_intern(k)))
+#define del_hash(k) rb_hash_delete(hash, ID2SYM(rb_intern(k)))
+
+static VALUE
+rt_rewrite_frags(VALUE hash)
+{
+ VALUE seconds;
+
+ seconds = ref_hash("seconds");
+ if (!NIL_P(seconds)) {
+ VALUE d, h, min, s, fr;
+
+ d = f_idiv(seconds, INT2FIX(DAY_IN_SECONDS));
+ fr = f_mod(seconds, INT2FIX(DAY_IN_SECONDS));
+
+ h = f_idiv(fr, INT2FIX(HOUR_IN_SECONDS));
+ fr = f_mod(fr, INT2FIX(HOUR_IN_SECONDS));
+
+ min = f_idiv(fr, INT2FIX(MINUTE_IN_SECONDS));
+ fr = f_mod(fr, INT2FIX(MINUTE_IN_SECONDS));
+
+ s = f_idiv(fr, INT2FIX(1));
+ fr = f_mod(fr, INT2FIX(1));
+
+ set_hash("jd", f_add(UNIX_EPOCH_IN_CJD, d));
+ set_hash("hour", h);
+ set_hash("min", min);
+ set_hash("sec", s);
+ set_hash("sec_fraction", fr);
+ del_hash("seconds");
+ del_hash("offset");
+ }
+ return hash;
+}
+
+#define sym(x) ID2SYM(rb_intern(x))
+
+static VALUE d_lite_year(VALUE);
+static VALUE d_lite_wday(VALUE);
+static VALUE d_lite_jd(VALUE);
+
+static VALUE
+rt_complete_frags(VALUE klass, VALUE hash)
+{
+ static VALUE tab = Qnil;
+ int g, e;
+ VALUE k, a, d;
+
+ if (NIL_P(tab)) {
+ tab = rb_ary_new3(11,
+ rb_ary_new3(2,
+ sym("time"),
+ rb_ary_new3(3,
+ sym("hour"),
+ sym("min"),
+ sym("sec"))),
+ rb_ary_new3(2,
+ Qnil,
+ rb_ary_new3(1,
+ sym("jd"))),
+ rb_ary_new3(2,
+ sym("ordinal"),
+ rb_ary_new3(5,
+ sym("year"),
+ sym("yday"),
+ sym("hour"),
+ sym("min"),
+ sym("sec"))),
+ rb_ary_new3(2,
+ sym("civil"),
+ rb_ary_new3(6,
+ sym("year"),
+ sym("mon"),
+ sym("mday"),
+ sym("hour"),
+ sym("min"),
+ sym("sec"))),
+ rb_ary_new3(2,
+ sym("commercial"),
+ rb_ary_new3(6,
+ sym("cwyear"),
+ sym("cweek"),
+ sym("cwday"),
+ sym("hour"),
+ sym("min"),
+ sym("sec"))),
+ rb_ary_new3(2,
+ sym("wday"),
+ rb_ary_new3(4,
+ sym("wday"),
+ sym("hour"),
+ sym("min"),
+ sym("sec"))),
+ rb_ary_new3(2,
+ sym("wnum0"),
+ rb_ary_new3(6,
+ sym("year"),
+ sym("wnum0"),
+ sym("wday"),
+ sym("hour"),
+ sym("min"),
+ sym("sec"))),
+ rb_ary_new3(2,
+ sym("wnum1"),
+ rb_ary_new3(6,
+ sym("year"),
+ sym("wnum1"),
+ sym("wday"),
+ sym("hour"),
+ sym("min"),
+ sym("sec"))),
+ rb_ary_new3(2,
+ Qnil,
+ rb_ary_new3(6,
+ sym("cwyear"),
+ sym("cweek"),
+ sym("wday"),
+ sym("hour"),
+ sym("min"),
+ sym("sec"))),
+ rb_ary_new3(2,
+ Qnil,
+ rb_ary_new3(6,
+ sym("year"),
+ sym("wnum0"),
+ sym("cwday"),
+ sym("hour"),
+ sym("min"),
+ sym("sec"))),
+ rb_ary_new3(2,
+ Qnil,
+ rb_ary_new3(6,
+ sym("year"),
+ sym("wnum1"),
+ sym("cwday"),
+ sym("hour"),
+ sym("min"),
+ sym("sec"))));
+ rb_gc_register_mark_object(tab);
+ }
+
+ {
+ int i, eno = 0, idx = 0;
+
+ for (i = 0; i < RARRAY_LENINT(tab); i++) {
+ VALUE x, a;
+
+ x = RARRAY_PTR(tab)[i];
+ a = RARRAY_PTR(x)[1];
+
+ {
+ int j, n = 0;
+
+ for (j = 0; j < RARRAY_LENINT(a); j++)
+ if (!NIL_P(ref_hash0(RARRAY_PTR(a)[j])))
+ n++;
+ if (n > eno) {
+ eno = n;
+ idx = i;
+ }
+ }
+ }
+ if (eno == 0)
+ g = 0;
+ else {
+ g = 1;
+ k = RARRAY_PTR(RARRAY_PTR(tab)[idx])[0];
+ a = RARRAY_PTR(RARRAY_PTR(tab)[idx])[1];
+ e = eno;
+ }
+ }
+
+ d = Qnil;
+
+ if (g && !NIL_P(k) && (RARRAY_LENINT(a) - e)) {
+ if (k == sym("ordinal")) {
+ if (NIL_P(ref_hash("year"))) {
+ if (NIL_P(d))
+ d = date_s_today(0, (VALUE *)0, cDate);
+ set_hash("year", d_lite_year(d));
+ }
+ if (NIL_P(ref_hash("yday")))
+ set_hash("yday", INT2FIX(1));
+ }
+ else if (k == sym("civil")) {
+ int i;
+
+ for (i = 0; i < RARRAY_LENINT(a); i++) {
+ VALUE e = RARRAY_PTR(a)[i];
+
+ if (!NIL_P(ref_hash0(e)))
+ break;
+ if (NIL_P(d))
+ d = date_s_today(0, (VALUE *)0, cDate);
+ set_hash0(e, rb_funcall(d, SYM2ID(e), 0));
+ }
+ if (NIL_P(ref_hash("mon")))
+ set_hash("mon", INT2FIX(1));
+ if (NIL_P(ref_hash("mday")))
+ set_hash("mday", INT2FIX(1));
+ }
+ else if (k == sym("commercial")) {
+ int i;
+
+ for (i = 0; i < RARRAY_LENINT(a); i++) {
+ VALUE e = RARRAY_PTR(a)[i];
+
+ if (!NIL_P(ref_hash0(e)))
+ break;
+ if (NIL_P(d))
+ d = date_s_today(0, (VALUE *)0, cDate);
+ set_hash0(e, rb_funcall(d, SYM2ID(e), 0));
+ }
+ if (NIL_P(ref_hash("cweek")))
+ set_hash("cweek", INT2FIX(1));
+ if (NIL_P(ref_hash("cwday")))
+ set_hash("cwday", INT2FIX(1));
+ }
+ else if (k == sym("wday")) {
+ if (NIL_P(d))
+ d = date_s_today(0, (VALUE *)0, cDate);
+ set_hash("jd", d_lite_jd(f_add(f_sub(d,
+ d_lite_wday(d)),
+ ref_hash("wday"))));
+ }
+ else if (k == sym("wnum0")) {
+ int i;
+
+ for (i = 0; i < RARRAY_LENINT(a); i++) {
+ VALUE e = RARRAY_PTR(a)[i];
+
+ if (!NIL_P(ref_hash0(e)))
+ break;
+ if (NIL_P(d))
+ d = date_s_today(0, (VALUE *)0, cDate);
+ set_hash0(e, rb_funcall(d, SYM2ID(e), 0));
+ }
+ if (NIL_P(ref_hash("wnum0")))
+ set_hash("wnum0", INT2FIX(0));
+ if (NIL_P(ref_hash("wday")))
+ set_hash("wday", INT2FIX(0));
+ }
+ else if (k == sym("wnum1")) {
+ int i;
+
+ for (i = 0; i < RARRAY_LENINT(a); i++) {
+ VALUE e = RARRAY_PTR(a)[i];
+
+ if (!NIL_P(ref_hash0(e)))
+ break;
+ if (NIL_P(d))
+ d = date_s_today(0, (VALUE *)0, cDate);
+ set_hash0(e, rb_funcall(d, SYM2ID(e), 0));
+ }
+ if (NIL_P(ref_hash("wnum1")))
+ set_hash("wnum1", INT2FIX(0));
+ if (NIL_P(ref_hash("wday")))
+ set_hash("wday", INT2FIX(1));
+ }
+ }
+
+ if (g && k == sym("time")) {
+ if (f_le_p(klass, cDateTime)) {
+ if (NIL_P(d))
+ d = date_s_today(0, (VALUE *)0, cDate);
+ if (NIL_P(ref_hash("jd")))
+ set_hash("jd", d_lite_jd(d));
+ }
+ }
+
+ if (NIL_P(ref_hash("hour")))
+ set_hash("hour", INT2FIX(0));
+ if (NIL_P(ref_hash("min")))
+ set_hash("min", INT2FIX(0));
+ if (NIL_P(ref_hash("sec")))
+ set_hash("sec", INT2FIX(0));
+ else if (f_gt_p(ref_hash("sec"), INT2FIX(59)))
+ set_hash("sec", INT2FIX(59));
+
+ return hash;
+}
+
+static VALUE
+rt__valid_jd_p(VALUE jd, VALUE sg)
+{
+ return jd;
+}
+
+static VALUE
+rt__valid_ordinal_p(VALUE y, VALUE d, VALUE sg)
+{
+ VALUE nth, rjd2;
+ int ry, rd, rjd, ns;
+
+ if (!valid_ordinal_p(y, NUM2INT(d), NUM2DBL(sg),
+ &nth, &ry,
+ &rd, &rjd,
+ &ns))
+ return Qnil;
+ encode_jd(nth, rjd, &rjd2);
+ return rjd2;
+}
+
+static VALUE
+rt__valid_civil_p(VALUE y, VALUE m, VALUE d, VALUE sg)
+{
+ VALUE nth, rjd2;
+ int ry, rm, rd, rjd, ns;
+
+ if (!valid_civil_p(y, NUM2INT(m), NUM2INT(d), NUM2DBL(sg),
+ &nth, &ry,
+ &rm, &rd, &rjd,
+ &ns))
+ return Qnil;
+ encode_jd(nth, rjd, &rjd2);
+ return rjd2;
+}
+
+static VALUE
+rt__valid_commercial_p(VALUE y, VALUE w, VALUE d, VALUE sg)
+{
+ VALUE nth, rjd2;
+ int ry, rw, rd, rjd, ns;
+
+ if (!valid_commercial_p(y, NUM2INT(w), NUM2INT(d), NUM2DBL(sg),
+ &nth, &ry,
+ &rw, &rd, &rjd,
+ &ns))
+ return Qnil;
+ encode_jd(nth, rjd, &rjd2);
+ return rjd2;
+}
+
+static VALUE
+rt__valid_weeknum_p(VALUE y, VALUE w, VALUE d, VALUE f, VALUE sg)
+{
+ VALUE nth, rjd2;
+ int ry, rw, rd, rjd, ns;
+
+ if (!valid_weeknum_p(y, NUM2INT(w), NUM2INT(d), NUM2INT(f), NUM2DBL(sg),
+ &nth, &ry,
+ &rw, &rd, &rjd,
+ &ns))
+ return Qnil;
+ encode_jd(nth, rjd, &rjd2);
+ return rjd2;
+}
+
+static VALUE
+rt__valid_date_frags_p(VALUE hash, VALUE sg)
+{
+ {
+ VALUE vjd;
+
+ if (!NIL_P(vjd = ref_hash("jd"))) {
+ VALUE jd = rt__valid_jd_p(vjd, sg);
+ if (!NIL_P(jd))
+ return jd;
+ }
+ }
+
+ {
+ VALUE year, yday;
+
+ if (!NIL_P(yday = ref_hash("yday")) &&
+ !NIL_P(year = ref_hash("year"))) {
+ VALUE jd = rt__valid_ordinal_p(year, yday, sg);
+ if (!NIL_P(jd))
+ return jd;
+ }
+ }
+
+ {
+ VALUE year, mon, mday;
+
+ if (!NIL_P(mday = ref_hash("mday")) &&
+ !NIL_P(mon = ref_hash("mon")) &&
+ !NIL_P(year = ref_hash("year"))) {
+ VALUE jd = rt__valid_civil_p(year, mon, mday, sg);
+ if (!NIL_P(jd))
+ return jd;
+ }
+ }
+
+ {
+ VALUE year, week, wday;
+
+ wday = ref_hash("cwday");
+ if (NIL_P(wday)) {
+ wday = ref_hash("wday");
+ if (!NIL_P(wday))
+ if (f_zero_p(wday))
+ wday = INT2FIX(7);
+ }
+
+ if (!NIL_P(wday) &&
+ !NIL_P(week = ref_hash("cweek")) &&
+ !NIL_P(year = ref_hash("cwyear"))) {
+ VALUE jd = rt__valid_commercial_p(year, week, wday, sg);
+ if (!NIL_P(jd))
+ return jd;
+ }
+ }
+
+ {
+ VALUE year, week, wday;
+
+ wday = ref_hash("wday");
+ if (NIL_P(wday)) {
+ wday = ref_hash("cwday");
+ if (!NIL_P(wday))
+ if (f_eqeq_p(wday, INT2FIX(7)))
+ wday = INT2FIX(0);
+ }
+
+ if (!NIL_P(wday) &&
+ !NIL_P(week = ref_hash("wnum0")) &&
+ !NIL_P(year = ref_hash("year"))) {
+ VALUE jd = rt__valid_weeknum_p(year, week, wday, INT2FIX(0), sg);
+ if (!NIL_P(jd))
+ return jd;
+ }
+ }
+
+ {
+ VALUE year, week, wday;
+
+ wday = ref_hash("wday");
+ if (NIL_P(wday))
+ wday = ref_hash("cwday");
+ if (!NIL_P(wday))
+ wday = f_mod(f_sub(wday, INT2FIX(1)),
+ INT2FIX(7));
+
+ if (!NIL_P(wday) &&
+ !NIL_P(week = ref_hash("wnum1")) &&
+ !NIL_P(year = ref_hash("year"))) {
+ VALUE jd = rt__valid_weeknum_p(year, week, wday, INT2FIX(1), sg);
+ if (!NIL_P(jd))
+ return jd;
+ }
+ }
+ return Qnil;
+}
+
+static VALUE
+d_new_by_frags(VALUE klass, VALUE hash, VALUE sg)
+{
+ VALUE jd;
+
+ if (!c_valid_start_p(NUM2DBL(sg))) {
+ sg = INT2FIX(DEFAULT_SG);
+ rb_warning("invalid start is ignored");
+ }
+
+ if (NIL_P(hash))
+ rb_raise(rb_eArgError, "invalid date");
+
+ if (NIL_P(ref_hash("jd")) &&
+ NIL_P(ref_hash("yday")) &&
+ !NIL_P(ref_hash("year")) &&
+ !NIL_P(ref_hash("mon")) &&
+ !NIL_P(ref_hash("mday")))
+ jd = rt__valid_civil_p(ref_hash("year"),
+ ref_hash("mon"),
+ ref_hash("mday"), sg);
+ else {
+ hash = rt_rewrite_frags(hash);
+ hash = rt_complete_frags(klass, hash);
+ jd = rt__valid_date_frags_p(hash, sg);
+ }
+
+ if (NIL_P(jd))
+ rb_raise(rb_eArgError, "invalid date");
+ {
+ VALUE nth;
+ int rjd;
+
+ decode_jd(jd, &nth, &rjd);
+ return d_simple_new_internal(klass,
+ nth, rjd,
+ NUM2DBL(sg),
+ 0, 0, 0,
+ HAVE_JD);
+ }
+}
+
+VALUE date__strptime(const char *str, size_t slen,
+ const char *fmt, size_t flen, VALUE hash);
+
+static VALUE
+date_s__strptime_internal(int argc, VALUE *argv, VALUE klass,
+ const char *default_fmt)
+{
+ VALUE vstr, vfmt, hash;
+ const char *str, *fmt;
+ size_t slen, flen;
+
+ rb_scan_args(argc, argv, "11", &vstr, &vfmt);
+
+ StringValue(vstr);
+ if (!rb_enc_str_asciicompat_p(vstr))
+ rb_raise(rb_eArgError,
+ "string should have ASCII compatible encoding");
+ str = RSTRING_PTR(vstr);
+ slen = RSTRING_LEN(vstr);
+ if (argc < 2) {
+ fmt = default_fmt;
+ flen = strlen(default_fmt);
+ }
+ else {
+ StringValue(vfmt);
+ if (!rb_enc_str_asciicompat_p(vfmt))
+ rb_raise(rb_eArgError,
+ "format should have ASCII compatible encoding");
+ fmt = RSTRING_PTR(vfmt);
+ flen = RSTRING_LEN(vfmt);
+ }
+ hash = rb_hash_new();
+ if (NIL_P(date__strptime(str, slen, fmt, flen, hash)))
+ return Qnil;
+
+ {
+ VALUE zone = ref_hash("zone");
+ VALUE left = ref_hash("leftover");
+
+ if (!NIL_P(zone)) {
+ rb_enc_copy(zone, vstr);
+ OBJ_INFECT(zone, vstr);
+ set_hash("zone", zone);
+ }
+ if (!NIL_P(left)) {
+ rb_enc_copy(left, vstr);
+ OBJ_INFECT(left, vstr);
+ set_hash("leftover", left);
+ }
+ }
+
+ return hash;
+}
+
+/*
+ * call-seq:
+ * Date._strptime(string[, format='%F']) -> hash
+ *
+ * Parses the given representation of date and time with the given
+ * template, and returns a hash of parsed elements.
+ *
+ * For example:
+ *
+ * Date._strptime('2001-02-03', '%Y-%m-%d')
+ * #=> {:year=>2001, :mon=>2, :mday=>3}
+ *
+ * See also strptime(3) and strftime.
+ */
+static VALUE
+date_s__strptime(int argc, VALUE *argv, VALUE klass)
+{
+ return date_s__strptime_internal(argc, argv, klass, "%F");
+}
+
+/*
+ * call-seq:
+ * Date.strptime([string='-4712-01-01'[, format='%F'[, start=ITALY]]]) -> date
+ *
+ * Parses the given representation of date and time with the given
+ * template, and creates a date object.
+ *
+ * For example:
+ *
+ * Date.strptime('2001-02-03', '%Y-%m-%d') #=> #<Date: 2001-02-03 ...>
+ * Date.strptime('03-02-2001', '%d-%m-%Y') #=> #<Date: 2001-02-03 ...>
+ * Date.strptime('2001-034', '%Y-%j') #=> #<Date: 2001-02-03 ...>
+ * Date.strptime('2001-W05-6', '%G-W%V-%u') #=> #<Date: 2001-02-03 ...>
+ * Date.strptime('2001 04 6', '%Y %U %w') #=> #<Date: 2001-02-03 ...>
+ * Date.strptime('2001 05 6', '%Y %W %u') #=> #<Date: 2001-02-03 ...>
+ * Date.strptime('sat3feb01', '%a%d%b%y') #=> #<Date: 2001-02-03 ...>
+ *
+ * See also strptime(3) and strftime.
+ */
+static VALUE
+date_s_strptime(int argc, VALUE *argv, VALUE klass)
+{
+ VALUE str, fmt, sg;
+
+ rb_scan_args(argc, argv, "03", &str, &fmt, &sg);
+
+ switch (argc) {
+ case 0:
+ str = rb_str_new2("-4712-01-01");
+ case 1:
+ fmt = rb_str_new2("%F");
+ case 2:
+ sg = INT2FIX(DEFAULT_SG);
+ }
+
+ {
+ VALUE argv2[2], hash;
+
+ argv2[0] = str;
+ argv2[1] = fmt;
+ hash = date_s__strptime(2, argv2, klass);
+ return d_new_by_frags(klass, hash, sg);
+ }
+}
+
+VALUE date__parse(VALUE str, VALUE comp);
+
+static VALUE
+date_s__parse_internal(int argc, VALUE *argv, VALUE klass)
+{
+ VALUE vstr, vcomp, hash;
+
+ rb_scan_args(argc, argv, "11", &vstr, &vcomp);
+ StringValue(vstr);
+ if (!rb_enc_str_asciicompat_p(vstr))
+ rb_raise(rb_eArgError,
+ "string should have ASCII compatible encoding");
+ if (argc < 2)
+ vcomp = Qtrue;
+
+ hash = date__parse(vstr, vcomp);
+
+ {
+ VALUE zone = ref_hash("zone");
+
+ if (!NIL_P(zone)) {
+ rb_enc_copy(zone, vstr);
+ OBJ_INFECT(zone, vstr);
+ set_hash("zone", zone);
+ }
+ }
+
+ return hash;
+}
+
+/*
+ * call-seq:
+ * Date._parse(string[, comp=true]) -> hash
+ *
+ * Parses the given representation of date and time, and returns a
+ * hash of parsed elements.
+ *
+ * If the optional second argument is true and the detected year is in
+ * the range "00" to "99", considers the year a 2-digit form and makes
+ * it full.
+ *
+ * For example:
+ *
+ * Date._parse('2001-02-03') #=> {:year=>2001, :mon=>2, :mday=>3}
+ */
+static VALUE
+date_s__parse(int argc, VALUE *argv, VALUE klass)
+{
+ return date_s__parse_internal(argc, argv, klass);
+}
+
+/*
+ * call-seq:
+ * Date.parse(string='-4712-01-01'[, comp=true[, start=ITALY]]) -> date
+ *
+ * Parses the given representation of date and time, and creates a
+ * date object.
+ *
+ * If the optional second argument is true and the detected year is in
+ * the range "00" to "99", considers the year a 2-digit form and makes
+ * it full.
+ *
+ * For example:
+ *
+ * Date.parse('2001-02-03') #=> #<Date: 2001-02-03 ...>
+ * Date.parse('20010203') #=> #<Date: 2001-02-03 ...>
+ * Date.parse('3rd Feb 2001') #=> #<Date: 2001-02-03 ...>
+ */
+static VALUE
+date_s_parse(int argc, VALUE *argv, VALUE klass)
+{
+ VALUE str, comp, sg;
+
+ rb_scan_args(argc, argv, "03", &str, &comp, &sg);
+
+ switch (argc) {
+ case 0:
+ str = rb_str_new2("-4712-01-01");
+ case 1:
+ comp = Qtrue;
+ case 2:
+ sg = INT2FIX(DEFAULT_SG);
+ }
+
+ {
+ VALUE argv2[2], hash;
+
+ argv2[0] = str;
+ argv2[1] = comp;
+ hash = date_s__parse(2, argv2, klass);
+ return d_new_by_frags(klass, hash, sg);
+ }
+}
+
+VALUE date__iso8601(VALUE);
+VALUE date__rfc3339(VALUE);
+VALUE date__xmlschema(VALUE);
+VALUE date__rfc2822(VALUE);
+VALUE date__httpdate(VALUE);
+VALUE date__jisx0301(VALUE);
+
+/*
+ * call-seq:
+ * Date._iso8601(string) -> hash
+ *
+ * Returns a hash of parsed elements.
+ */
+static VALUE
+date_s__iso8601(VALUE klass, VALUE str)
+{
+ return date__iso8601(str);
+}
+
+/*
+ * call-seq:
+ * Date.iso8601(string='-4712-01-01'[, start=ITALY]) -> date
+ *
+ * Creates a new Date object by parsing from a string according to
+ * some typical ISO 8601 formats.
+ *
+ * For example:
+ *
+ * Date.iso8601('2001-02-03') #=> #<Date: 2001-02-03 ...>
+ * Date.iso8601('20010203') #=> #<Date: 2001-02-03 ...>
+ * Date.iso8601('2001-W05-6') #=> #<Date: 2001-02-03 ...>
+ */
+static VALUE
+date_s_iso8601(int argc, VALUE *argv, VALUE klass)
+{
+ VALUE str, sg;
+
+ rb_scan_args(argc, argv, "02", &str, &sg);
+
+ switch (argc) {
+ case 0:
+ str = rb_str_new2("-4712-01-01");
+ case 1:
+ sg = INT2FIX(DEFAULT_SG);
+ }
+
+ {
+ VALUE hash = date_s__iso8601(klass, str);
+ return d_new_by_frags(klass, hash, sg);
+ }
+}
+
+/*
+ * call-seq:
+ * Date._rfc3339(string) -> hash
+ *
+ * Returns a hash of parsed elements.
+ */
+static VALUE
+date_s__rfc3339(VALUE klass, VALUE str)
+{
+ return date__rfc3339(str);
+}
+
+/*
+ * call-seq:
+ * Date.rfc3339(string='-4712-01-01T00:00:00+00:00'[, start=ITALY]) -> date
+ *
+ * Creates a new Date object by parsing from a string according to
+ * some typical RFC 3339 formats.
+ *
+ * For example:
+ *
+ * Date.rfc3339('2001-02-03T04:05:06+07:00') #=> #<Date: 2001-02-03 ...>
+ */
+static VALUE
+date_s_rfc3339(int argc, VALUE *argv, VALUE klass)
+{
+ VALUE str, sg;
+
+ rb_scan_args(argc, argv, "02", &str, &sg);
+
+ switch (argc) {
+ case 0:
+ str = rb_str_new2("-4712-01-01T00:00:00+00:00");
+ case 1:
+ sg = INT2FIX(DEFAULT_SG);
+ }
+
+ {
+ VALUE hash = date_s__rfc3339(klass, str);
+ return d_new_by_frags(klass, hash, sg);
+ }
+}
+
+/*
+ * call-seq:
+ * Date._xmlschema(string) -> hash
+ *
+ * Returns a hash of parsed elements.
+ */
+static VALUE
+date_s__xmlschema(VALUE klass, VALUE str)
+{
+ return date__xmlschema(str);
+}
+
+/*
+ * call-seq:
+ * Date.xmlschema(string='-4712-01-01'[, start=ITALY]) -> date
+ *
+ * Creates a new Date object by parsing from a string according to
+ * some typical XML Schema formats.
+ *
+ * For example:
+ *
+ * Date.xmlschema('2001-02-03') #=> #<Date: 2001-02-03 ...>
+ */
+static VALUE
+date_s_xmlschema(int argc, VALUE *argv, VALUE klass)
+{
+ VALUE str, sg;
+
+ rb_scan_args(argc, argv, "02", &str, &sg);
+
+ switch (argc) {
+ case 0:
+ str = rb_str_new2("-4712-01-01");
+ case 1:
+ sg = INT2FIX(DEFAULT_SG);
+ }
+
+ {
+ VALUE hash = date_s__xmlschema(klass, str);
+ return d_new_by_frags(klass, hash, sg);
+ }
+}
+
+/*
+ * call-seq:
+ * Date._rfc2822(string) -> hash
+ * Date._rfc822(string) -> hash
+ *
+ * Returns a hash of parsed elements.
+ */
+static VALUE
+date_s__rfc2822(VALUE klass, VALUE str)
+{
+ return date__rfc2822(str);
+}
+
+/*
+ * call-seq:
+ * Date.rfc2822(string='Mon, 1 Jan -4712 00:00:00 +0000'[, start=ITALY]) -> date
+ * Date.rfc822(string='Mon, 1 Jan -4712 00:00:00 +0000'[, start=ITALY]) -> date
+ *
+ * Creates a new Date object by parsing from a string according to
+ * some typical RFC 2822 formats.
+ *
+ * For example:
+ *
+ * Date.rfc2822('Sat, 3 Feb 2001 00:00:00 +0000')
+ * #=> #<Date: 2001-02-03 ...>
+ */
+static VALUE
+date_s_rfc2822(int argc, VALUE *argv, VALUE klass)
+{
+ VALUE str, sg;
+
+ rb_scan_args(argc, argv, "02", &str, &sg);
+
+ switch (argc) {
+ case 0:
+ str = rb_str_new2("Mon, 1 Jan -4712 00:00:00 +0000");
+ case 1:
+ sg = INT2FIX(DEFAULT_SG);
+ }
+
+ {
+ VALUE hash = date_s__rfc2822(klass, str);
+ return d_new_by_frags(klass, hash, sg);
+ }
+}
+
+/*
+ * call-seq:
+ * Date._httpdate(string) -> hash
+ *
+ * Returns a hash of parsed elements.
+ */
+static VALUE
+date_s__httpdate(VALUE klass, VALUE str)
+{
+ return date__httpdate(str);
+}
+
+/*
+ * call-seq:
+ * Date.httpdate(string='Mon, 01 Jan -4712 00:00:00 GMT'[, start=ITALY]) -> date
+ *
+ * Creates a new Date object by parsing from a string according to
+ * some RFC 2616 format.
+ *
+ * For example:
+ *
+ * Date.httpdate('Sat, 03 Feb 2001 00:00:00 GMT')
+ * #=> #<Date: 2001-02-03 ...>
+ *
+ */
+static VALUE
+date_s_httpdate(int argc, VALUE *argv, VALUE klass)
+{
+ VALUE str, sg;
+
+ rb_scan_args(argc, argv, "02", &str, &sg);
+
+ switch (argc) {
+ case 0:
+ str = rb_str_new2("Mon, 01 Jan -4712 00:00:00 GMT");
+ case 1:
+ sg = INT2FIX(DEFAULT_SG);
+ }
+
+ {
+ VALUE hash = date_s__httpdate(klass, str);
+ return d_new_by_frags(klass, hash, sg);
+ }
+}
+
+/*
+ * call-seq:
+ * Date._jisx0301(string) -> hash
+ *
+ * Returns a hash of parsed elements.
+ */
+static VALUE
+date_s__jisx0301(VALUE klass, VALUE str)
+{
+ return date__jisx0301(str);
+}
+
+/*
+ * call-seq:
+ * Date.jisx0301(string='-4712-01-01'[, start=ITALY]) -> date
+ *
+ * Creates a new Date object by parsing from a string according to
+ * some typical JIS X 0301 formats.
+ *
+ * For example:
+ *
+ * Date.jisx0301('H13.02.03') #=> #<Date: 2001-02-03 ...>
+ */
+static VALUE
+date_s_jisx0301(int argc, VALUE *argv, VALUE klass)
+{
+ VALUE str, sg;
+
+ rb_scan_args(argc, argv, "02", &str, &sg);
+
+ switch (argc) {
+ case 0:
+ str = rb_str_new2("-4712-01-01");
+ case 1:
+ sg = INT2FIX(DEFAULT_SG);
+ }
+
+ {
+ VALUE hash = date_s__jisx0301(klass, str);
+ return d_new_by_frags(klass, hash, sg);
+ }
+}
+
+static VALUE
+dup_obj(VALUE self)
+{
+ get_d1a(self);
+
+ if (simple_dat_p(adat)) {
+ VALUE new = d_lite_s_alloc_simple(rb_obj_class(self));
+ {
+ get_d1b(new);
+ bdat->s = adat->s;
+ return new;
+ }
+ }
+ else {
+ VALUE new = d_lite_s_alloc_complex(rb_obj_class(self));
+ {
+ get_d1b(new);
+ bdat->c = adat->c;
+ return new;
+ }
+ }
+}
+
+static VALUE
+dup_obj_as_complex(VALUE self)
+{
+ get_d1a(self);
+
+ if (simple_dat_p(adat)) {
+ VALUE new = d_lite_s_alloc_complex(rb_obj_class(self));
+ {
+ get_d1b(new);
+ copy_simple_to_complex(&bdat->c, &adat->s);
+ bdat->c.flags |= HAVE_DF | COMPLEX_DAT;
+ return new;
+ }
+ }
+ else {
+ VALUE new = d_lite_s_alloc_complex(rb_obj_class(self));
+ {
+ get_d1b(new);
+ bdat->c = adat->c;
+ return new;
+ }
+ }
+}
+
+#define val2off(vof,iof) \
+{\
+ if (!offset_to_sec(vof, &iof)) {\
+ iof = 0;\
+ rb_warning("invalid offset is ignored");\
+ }\
+}
+
+#ifndef NDEBUG
+static VALUE
+d_lite_initialize(int argc, VALUE *argv, VALUE self)
+{
+ VALUE jd, vjd, vdf, sf, vsf, vof, vsg;
+ int df, of;
+ double sg;
+
+ rb_scan_args(argc, argv, "05", &vjd, &vdf, &vsf, &vof, &vsg);
+
+ jd = INT2FIX(0);
+ df = 0;
+ sf = INT2FIX(0);
+ of = 0;
+ sg = DEFAULT_SG;
+
+ switch (argc) {
+ case 5:
+ val2sg(vsg, sg);
+ case 4:
+ val2off(vof, of);
+ case 3:
+ sf = vsf;
+ if (f_lt_p(sf, INT2FIX(0)) ||
+ f_ge_p(sf, INT2FIX(SECOND_IN_NANOSECONDS)))
+ rb_raise(rb_eArgError, "invalid second fraction");
+ case 2:
+ df = NUM2INT(vdf);
+ if (df < 0 || df >= DAY_IN_SECONDS)
+ rb_raise(rb_eArgError, "invalid day fraction");
+ case 1:
+ jd = vjd;
+ }
+
+ {
+ VALUE nth;
+ int rjd;
+
+ get_d1(self);
+
+ decode_jd(jd, &nth, &rjd);
+ if (!df && f_zero_p(sf) && !of) {
+ set_to_simple(&dat->s, nth, rjd, sg, 0, 0, 0, HAVE_JD);
+ }
+ else {
+ if (!complex_dat_p(dat))
+ rb_raise(rb_eArgError,
+ "cannot load complex into simple");
+
+ set_to_complex(&dat->c, nth, rjd, df, sf, of, sg,
+ 0, 0, 0, 0, 0, 0, HAVE_JD | HAVE_DF | COMPLEX_DAT);
+ }
+ }
+ return self;
+}
+#endif
+
+/* :nodoc: */
+static VALUE
+d_lite_initialize_copy(VALUE copy, VALUE date)
+{
+ if (copy == date)
+ return copy;
+ {
+ get_d2(copy, date);
+ if (simple_dat_p(bdat)) {
+ adat->s = bdat->s;
+ adat->s.flags &= ~COMPLEX_DAT;
+ }
+ else {
+ if (!complex_dat_p(adat))
+ rb_raise(rb_eArgError,
+ "cannot load complex into simple");
+
+ adat->c = bdat->c;
+ adat->c.flags |= COMPLEX_DAT;
+ }
+ }
+ return copy;
+}
+
+#ifndef NDEBUG
+static VALUE
+d_lite_fill(VALUE self)
+{
+ get_d1(self);
+
+ if (simple_dat_p(dat)) {
+ get_s_jd(dat);
+ get_s_civil(dat);
+ }
+ else {
+ get_c_jd(dat);
+ get_c_civil(dat);
+ get_c_df(dat);
+ get_c_time(dat);
+ }
+ return self;
+}
+#endif
+
+/*
+ * call-seq:
+ * d.ajd -> rational
+ *
+ * Returns the astronomical Julian day number. This is a fractional
+ * number, which is not adjusted by the offset.
+ *
+ * For example:
+ *
+ * DateTime.new(2001,2,3,4,5,6,'+7').ajd #=> (11769328217/4800)
+ * DateTime.new(2001,2,2,14,5,6,'-7').ajd #=> (11769328217/4800)
+ */
+static VALUE
+d_lite_ajd(VALUE self)
+{
+ get_d1(self);
+ return m_ajd(dat);
+}
+
+/*
+ * call-seq:
+ * d.amjd -> rational
+ *
+ * Returns the astronomical modified Julian day number. This is
+ * a fractional number, which is not adjusted by the offset.
+ *
+ * For example:
+ *
+ * DateTime.new(2001,2,3,4,5,6,'+7').amjd #=> (249325817/4800)
+ * DateTime.new(2001,2,2,14,5,6,'-7').amjd #=> (249325817/4800)
+ */
+static VALUE
+d_lite_amjd(VALUE self)
+{
+ get_d1(self);
+ return m_amjd(dat);
+}
+
+/*
+ * call-seq:
+ * d.jd -> integer
+ *
+ * Returns the Julian day number. This is a whole number, which is
+ * adjusted by the offset as the local time.
+ *
+ * For example:
+ *
+ * DateTime.new(2001,2,3,4,5,6,'+7').jd #=> 2451944
+ * DateTime.new(2001,2,3,4,5,6,'-7').jd #=> 2451944
+ */
+static VALUE
+d_lite_jd(VALUE self)
+{
+ get_d1(self);
+ return m_real_local_jd(dat);
+}
+
+/*
+ * call-seq:
+ * d.mjd -> integer
+ *
+ * Returns the modified Julian day number. This is a whole number,
+ * which is adjusted by the offset as the local time.
+ *
+ * For example:
+ *
+ * DateTime.new(2001,2,3,4,5,6,'+7').mjd #=> 51943
+ * DateTime.new(2001,2,3,4,5,6,'-7').mjd #=> 51943
+ */
+static VALUE
+d_lite_mjd(VALUE self)
+{
+ get_d1(self);
+ return f_sub(m_real_local_jd(dat), INT2FIX(2400001));
+}
+
+/*
+ * call-seq:
+ * d.ld -> integer
+ *
+ * Returns the Lilian day number. This is a whole number, which is
+ * adjusted by the offset as the local time.
+ *
+ * For example:
+ *
+ * Date.new(2001,2,3).ld #=> 152784
+ */
+static VALUE
+d_lite_ld(VALUE self)
+{
+ get_d1(self);
+ return f_sub(m_real_local_jd(dat), INT2FIX(2299160));
+}
+
+/*
+ * call-seq:
+ * d.year -> integer
+ *
+ * Returns the year.
+ *
+ * For example:
+ *
+ * Date.new(2001,2,3).year #=> 2001
+ * (Date.new(1,1,1) - 1).year #=> 0
+ */
+static VALUE
+d_lite_year(VALUE self)
+{
+ get_d1(self);
+ return m_real_year(dat);
+}
+
+/*
+ * call-seq:
+ * d.yday -> fixnum
+ *
+ * Returns the day of the year (1-366).
+ *
+ * For example:
+ *
+ * Date.new(2001,2,3).yday #=> 34
+ */
+static VALUE
+d_lite_yday(VALUE self)
+{
+ get_d1(self);
+ return INT2FIX(m_yday(dat));
+}
+
+/*
+ * call-seq:
+ * d.mon -> fixnum
+ * d.month -> fixnum
+ *
+ * Returns the month (1-12).
+ *
+ * For example:
+ *
+ * Date.new(2001,2,3).mon #=> 2
+ */
+static VALUE
+d_lite_mon(VALUE self)
+{
+ get_d1(self);
+ return INT2FIX(m_mon(dat));
+}
+
+/*
+ * call-seq:
+ * d.mday -> fixnum
+ * d.day -> fixnum
+ *
+ * Returns the day of the month (1-31).
+ *
+ * For example:
+ *
+ * Date.new(2001,2,3).mday #=> 3
+ */
+static VALUE
+d_lite_mday(VALUE self)
+{
+ get_d1(self);
+ return INT2FIX(m_mday(dat));
+}
+
+/*
+ * call-seq:
+ * d.day_fraction -> rational
+ *
+ * Returns the fractional part of the day.
+ *
+ * For example:
+ *
+ * DateTime.new(2001,2,3,12).day_fraction #=> (1/2)
+ */
+static VALUE
+d_lite_day_fraction(VALUE self)
+{
+ get_d1(self);
+ if (simple_dat_p(dat))
+ return INT2FIX(0);
+ return m_fr(dat);
+}
+
+/*
+ * call-seq:
+ * d.cwyear -> integer
+ *
+ * Returns the calendar week based year.
+ *
+ * For example:
+ *
+ * Date.new(2001,2,3).cwyear #=> 2001
+ * Date.new(2000,1,1).cwyear #=> 1999
+ */
+static VALUE
+d_lite_cwyear(VALUE self)
+{
+ get_d1(self);
+ return m_real_cwyear(dat);
+}
+
+/*
+ * call-seq:
+ * d.cweek -> fixnum
+ *
+ * Returns the calendar week number (1-53).
+ *
+ * For example:
+ *
+ * Date.new(2001,2,3).cweek #=> 5
+ */
+static VALUE
+d_lite_cweek(VALUE self)
+{
+ get_d1(self);
+ return INT2FIX(m_cweek(dat));
+}
+
+/*
+ * call-seq:
+ * d.cwday -> fixnum
+ *
+ * Returns the day of calendar week (1-7, Monday is 1).
+ *
+ * For example:
+ *
+ * Date.new(2001,2,3).cwday #=> 6
+ */
+static VALUE
+d_lite_cwday(VALUE self)
+{
+ get_d1(self);
+ return INT2FIX(m_cwday(dat));
+}
+
+#ifndef NDEBUG
+static VALUE
+d_lite_wnum0(VALUE self)
+{
+ get_d1(self);
+ return INT2FIX(m_wnum0(dat));
+}
+
+static VALUE
+d_lite_wnum1(VALUE self)
+{
+ get_d1(self);
+ return INT2FIX(m_wnum1(dat));
+}
+#endif
+
+/*
+ * call-seq:
+ * d.wday -> fixnum
+ *
+ * Returns the day of week (0-6, Sunday is zero).
+ *
+ * For example:
+ *
+ * Date.new(2001,2,3).wday #=> 6
+ */
+static VALUE
+d_lite_wday(VALUE self)
+{
+ get_d1(self);
+ return INT2FIX(m_wday(dat));
+}
+
+/*
+ * call-seq:
+ * d.sunday? -> bool
+ *
+ * Returns true if the date is Sunday.
+ */
+static VALUE
+d_lite_sunday_p(VALUE self)
+{
+ get_d1(self);
+ return f_boolcast(m_wday(dat) == 0);
+}
+
+/*
+ * call-seq:
+ * d.monday? -> bool
+ *
+ * Returns true if the date is Monday.
+ */
+static VALUE
+d_lite_monday_p(VALUE self)
+{
+ get_d1(self);
+ return f_boolcast(m_wday(dat) == 1);
+}
+
+/*
+ * call-seq:
+ * d.tuesday? -> bool
+ *
+ * Returns true if the date is Tuesday.
+ */
+static VALUE
+d_lite_tuesday_p(VALUE self)
+{
+ get_d1(self);
+ return f_boolcast(m_wday(dat) == 2);
+}
+
+/*
+ * call-seq:
+ * d.wednesday? -> bool
+ *
+ * Returns true if the date is Wednesday.
+ */
+static VALUE
+d_lite_wednesday_p(VALUE self)
+{
+ get_d1(self);
+ return f_boolcast(m_wday(dat) == 3);
+}
+
+/*
+ * call-seq:
+ * d.thursday? -> bool
+ *
+ * Returns true if the date is Thursday.
+ */
+static VALUE
+d_lite_thursday_p(VALUE self)
+{
+ get_d1(self);
+ return f_boolcast(m_wday(dat) == 4);
+}
+
+/*
+ * call-seq:
+ * d.friday? -> bool
+ *
+ * Returns true if the date is Friday.
+ */
+static VALUE
+d_lite_friday_p(VALUE self)
+{
+ get_d1(self);
+ return f_boolcast(m_wday(dat) == 5);
+}
+
+/*
+ * call-seq:
+ * d.saturday? -> bool
+ *
+ * Returns true if the date is Saturday.
+ */
+static VALUE
+d_lite_saturday_p(VALUE self)
+{
+ get_d1(self);
+ return f_boolcast(m_wday(dat) == 6);
+}
+
+#ifndef NDEBUG
+static VALUE
+d_lite_nth_kday_p(VALUE self, VALUE n, VALUE k)
+{
+ int rjd, ns;
+
+ get_d1(self);
+
+ if (NUM2INT(k) != m_wday(dat))
+ return Qfalse;
+
+ c_nth_kday_to_jd(m_year(dat), m_mon(dat),
+ NUM2INT(n), NUM2INT(k), m_virtual_sg(dat), /* !=m_sg() */
+ &rjd, &ns);
+ if (m_local_jd(dat) != rjd)
+ return Qfalse;
+ return Qtrue;
+}
+#endif
+
+/*
+ * call-seq:
+ * d.hour -> fixnum
+ *
+ * Returns the hour (0-23).
+ *
+ * For example:
+ *
+ * DateTime.new(2001,2,3,4,5,6).hour #=> 4
+ */
+static VALUE
+d_lite_hour(VALUE self)
+{
+ get_d1(self);
+ return INT2FIX(m_hour(dat));
+}
+
+/*
+ * call-seq:
+ * d.min -> fixnum
+ * d.minute -> fixnum
+ *
+ * Returns the minute (0-59).
+ *
+ * For example:
+ *
+ * DateTime.new(2001,2,3,4,5,6).min #=> 5
+ */
+static VALUE
+d_lite_min(VALUE self)
+{
+ get_d1(self);
+ return INT2FIX(m_min(dat));
+}
+
+/*
+ * call-seq:
+ * d.sec -> fixnum
+ * d.second -> fixnum
+ *
+ * Returns the second (0-59).
+ *
+ * For example:
+ *
+ * DateTime.new(2001,2,3,4,5,6).sec #=> 6
+ */
+static VALUE
+d_lite_sec(VALUE self)
+{
+ get_d1(self);
+ return INT2FIX(m_sec(dat));
+}
+
+/*
+ * call-seq:
+ * d.sec_fraction -> rational
+ * d.second_fraction -> rational
+ *
+ * Returns the fractional part of the second.
+ *
+ * For example:
+ *
+ * DateTime.new(2001,2,3,4,5,6.5).sec_fraction #=> (1/2)
+ */
+static VALUE
+d_lite_sec_fraction(VALUE self)
+{
+ get_d1(self);
+ return m_sf_in_sec(dat);
+}
+
+/*
+ * call-seq:
+ * d.offset -> rational
+ *
+ * Returns the offset.
+ *
+ * For example:
+ *
+ * DateTime.parse('04pm+0730').offset #=> (5/16)
+ */
+static VALUE
+d_lite_offset(VALUE self)
+{
+ get_d1(self);
+ return m_of_in_day(dat);
+}
+
+/*
+ * call-seq:
+ * d.zone -> string
+ *
+ * Returns the timezone.
+ *
+ * For example:
+ *
+ * DateTime.parse('04pm+0730').zone #=> "+07:30"
+ */
+static VALUE
+d_lite_zone(VALUE self)
+{
+ get_d1(self);
+ return m_zone(dat);
+}
+
+/*
+ * call-seq:
+ * d.julian? -> bool
+ *
+ * Retruns true if the date is before the day of calendar reform.
+ *
+ * For example:
+ *
+ * Date.new(1582,10,15).julian? #=> false
+ * (Date.new(1582,10,15) - 1).julian? #=> true
+ */
+static VALUE
+d_lite_julian_p(VALUE self)
+{
+ get_d1(self);
+ return f_boolcast(m_julian_p(dat));
+}
+
+/*
+ * call-seq:
+ * d.gregorian? -> bool
+ *
+ * Retunrs true if the date is on or after the day of calendar reform.
+ *
+ * For example:
+ *
+ * Date.new(1582,10,15).gregorian? #=> true
+ * (Date.new(1582,10,15) - 1).gregorian? #=> false
+ */
+static VALUE
+d_lite_gregorian_p(VALUE self)
+{
+ get_d1(self);
+ return f_boolcast(m_gregorian_p(dat));
+}
+
+/*
+ * call-seq:
+ * d.leap? -> bool
+ *
+ * Returns true if the year is a leap year.
+ *
+ * For example:
+ *
+ * Date.new(2000).leap? #=> true
+ * Date.new(2001).leap? #=> false
+ */
+static VALUE
+d_lite_leap_p(VALUE self)
+{
+ int rjd, ns, ry, rm, rd;
+
+ get_d1(self);
+ if (m_gregorian_p(dat))
+ return f_boolcast(c_gregorian_leap_p(m_year(dat)));
+
+ c_civil_to_jd(m_year(dat), 3, 1, m_virtual_sg(dat),
+ &rjd, &ns);
+ c_jd_to_civil(rjd - 1, m_virtual_sg(dat), &ry, &rm, &rd);
+ return f_boolcast(rd == 29);
+}
+
+/*
+ * call-seq:
+ * d.start -> float
+ *
+ * Returns the Julian day number denoting the day of calendar reform.
+ *
+ * For example:
+ *
+ * Date.new(2001,2,3).start #=> 2299161.0
+ * Date.new(2001,2,3,Date::GREGORIAN).start #=> -Infinity
+ */
+static VALUE
+d_lite_start(VALUE self)
+{
+ get_d1(self);
+ return DBL2NUM(m_sg(dat));
+}
+
+static void
+clear_civil(union DateData *x)
+{
+ if (simple_dat_p(x)) {
+ x->s.year = 0;
+#ifndef USE_PACK
+ x->s.mon = 0;
+ x->s.mday = 0;
+#else
+ x->s.pc = 0;
+#endif
+ x->s.flags &= ~HAVE_CIVIL;
+ }
+ else {
+ x->c.year = 0;
+#ifndef USE_PACK
+ x->c.mon = 0;
+ x->c.mday = 0;
+ x->c.hour = 0;
+ x->c.min = 0;
+ x->c.sec = 0;
+#else
+ x->c.pc = 0;
+#endif
+ x->c.flags &= ~(HAVE_CIVIL | HAVE_TIME);
+ }
+}
+
+static void
+set_sg(union DateData *x, double sg)
+{
+ if (simple_dat_p(x)) {
+ get_s_jd(x);
+ clear_civil(x);
+ x->s.sg = (sg_cast)sg;
+ } else {
+ get_c_jd(x);
+ get_c_df(x);
+ clear_civil(x);
+ x->c.sg = (sg_cast)sg;
+ }
+}
+
+static VALUE
+dup_obj_with_new_start(VALUE obj, double sg)
+{
+ volatile VALUE dup = dup_obj(obj);
+ {
+ get_d1(dup);
+ set_sg(dat, sg);
+ }
+ return dup;
+}
+
+/*
+ * call-seq:
+ * d.new_start([start=Date::ITALY]) -> date
+ *
+ * Duplicates self and resets its the day of calendar reform.
+ *
+ * For example:
+ *
+ * d = Date.new(1582,10,15)
+ * d.new_start(Date::JULIAN) #=> #<Date: 1582-10-05 ...>
+ */
+static VALUE
+d_lite_new_start(int argc, VALUE *argv, VALUE self)
+{
+ VALUE vsg;
+ double sg;
+
+ rb_scan_args(argc, argv, "01", &vsg);
+
+ sg = DEFAULT_SG;
+ if (argc >= 1)
+ val2sg(vsg, sg);
+
+ return dup_obj_with_new_start(self, sg);
+}
+
+/*
+ * call-seq:
+ * d.italy -> date
+ *
+ * This method is equivalent to new_start(Date::ITALY).
+ */
+static VALUE
+d_lite_italy(VALUE self)
+{
+ return dup_obj_with_new_start(self, ITALY);
+}
+
+/*
+ * call-seq:
+ * d.england -> date
+ *
+ * This method is equivalent to new_start(Date::ENGLAND).
+ */
+static VALUE
+d_lite_england(VALUE self)
+{
+ return dup_obj_with_new_start(self, ENGLAND);
+}
+
+/*
+ * call-seq:
+ * d.julian -> date
+ *
+ * This method is equivalent to new_start(Date::JULIAN).
+ */
+static VALUE
+d_lite_julian(VALUE self)
+{
+ return dup_obj_with_new_start(self, JULIAN);
+}
+
+/*
+ * call-seq:
+ * d.gregorian -> date
+ *
+ * This method is equivalent to new_start(Date::GREGORIAN).
+ */
+static VALUE
+d_lite_gregorian(VALUE self)
+{
+ return dup_obj_with_new_start(self, GREGORIAN);
+}
+
+static void
+set_of(union DateData *x, int of)
+{
+ assert(complex_dat_p(x));
+ get_c_jd(x);
+ get_c_df(x);
+ clear_civil(x);
+ x->c.of = of;
+}
+
+static VALUE
+dup_obj_with_new_offset(VALUE obj, int of)
+{
+ volatile VALUE dup = dup_obj_as_complex(obj);
+ {
+ get_d1(dup);
+ set_of(dat, of);
+ }
+ return dup;
+}
+
+/*
+ * call-seq:
+ * d.new_offset([offset=0]) -> date
+ *
+ * Duplicates self and resets its offset.
+ *
+ * For example:
+ *
+ * d = DateTime.new(2001,2,3,4,5,6,'-02:00')
+ * #=> #<DateTime: 2001-02-03T04:05:06-02:00 ...>
+ * d.new_offset('+09:00') #=> #<DateTime: 2001-02-03T15:05:06+09:00 ...>
+ */
+static VALUE
+d_lite_new_offset(int argc, VALUE *argv, VALUE self)
+{
+ VALUE vof;
+ int rof;
+
+ rb_scan_args(argc, argv, "01", &vof);
+
+ rof = 0;
+ if (argc >= 1)
+ val2off(vof, rof);
+
+ return dup_obj_with_new_offset(self, rof);
+}
+
+/*
+ * call-seq:
+ * d + other -> date
+ *
+ * Returns a date object pointing other days after self. The other
+ * should be a numeric value. If the other is flonum, assumes its
+ * precision is at most nanosecond.
+ *
+ * For example:
+ *
+ * Date.new(2001,2,3) + 1 #=> #<Date: 2001-02-04 ...>
+ * DateTime.new(2001,2,3) + Rational(1,2)
+ * #=> #<DateTime: 2001-02-03T12:00:00+00:00 ...>
+ * DateTime.new(2001,2,3) + Rational(-1,2)
+ * #=> #<DateTime: 2001-02-02T12:00:00+00:00 ...>
+ * DateTime.jd(0,12) + DateTime.new(2001,2,3).ajd
+ * #=> #<DateTime: 2001-02-03T00:00:00+00:00 ...>
+ */
+static VALUE
+d_lite_plus(VALUE self, VALUE other)
+{
+ get_d1(self);
+
+ switch (TYPE(other)) {
+ case T_FIXNUM:
+ {
+ VALUE nth;
+ long t;
+ int jd;
+
+ nth = m_nth(dat);
+ t = FIX2LONG(other);
+ if (DIV(t, CM_PERIOD)) {
+ nth = f_add(nth, INT2FIX(DIV(t, CM_PERIOD)));
+ t = MOD(t, CM_PERIOD);
+ }
+
+ if (!t)
+ jd = m_jd(dat);
+ else {
+ jd = m_jd(dat) + (int)t;
+
+ if (jd < 0) {
+ nth = f_sub(nth, INT2FIX(1));
+ jd += CM_PERIOD;
+ }
+ else if (jd >= CM_PERIOD) {
+ nth = f_add(nth, INT2FIX(1));
+ jd -= CM_PERIOD;
+ }
+ }
+
+ if (simple_dat_p(dat))
+ return d_simple_new_internal(rb_obj_class(self),
+ nth, jd,
+ dat->s.sg,
+ 0, 0, 0,
+ (dat->s.flags | HAVE_JD) &
+ ~HAVE_CIVIL);
+ else
+ return d_complex_new_internal(rb_obj_class(self),
+ nth, jd,
+ dat->c.df, dat->c.sf,
+ dat->c.of, dat->c.sg,
+ 0, 0, 0,
+#ifndef USE_PACK
+ dat->c.hour,
+ dat->c.min,
+ dat->c.sec,
+#else
+ EX_HOUR(dat->c.pc),
+ EX_MIN(dat->c.pc),
+ EX_SEC(dat->c.pc),
+#endif
+ (dat->c.flags | HAVE_JD) &
+ ~HAVE_CIVIL);
+ }
+ break;
+ case T_BIGNUM:
+ {
+ VALUE nth;
+ int jd, s;
+
+ if (f_positive_p(other))
+ s = +1;
+ else {
+ s = -1;
+ other = f_negate(other);
+ }
+
+ nth = f_idiv(other, INT2FIX(CM_PERIOD));
+ jd = FIX2INT(f_mod(other, INT2FIX(CM_PERIOD)));
+
+ if (s < 0) {
+ nth = f_negate(nth);
+ jd = -jd;
+ }
+
+ if (!jd)
+ jd = m_jd(dat);
+ else {
+ jd = m_jd(dat) + jd;
+ if (jd < 0) {
+ nth = f_sub(nth, INT2FIX(1));
+ jd += CM_PERIOD;
+ }
+ else if (jd >= CM_PERIOD) {
+ nth = f_add(nth, INT2FIX(1));
+ jd -= CM_PERIOD;
+ }
+ }
+
+ if (f_zero_p(nth))
+ nth = m_nth(dat);
+ else
+ nth = f_add(m_nth(dat), nth);
+
+ if (simple_dat_p(dat))
+ return d_simple_new_internal(rb_obj_class(self),
+ nth, jd,
+ dat->s.sg,
+ 0, 0, 0,
+ (dat->s.flags | HAVE_JD) &
+ ~HAVE_CIVIL);
+ else
+ return d_complex_new_internal(rb_obj_class(self),
+ nth, jd,
+ dat->c.df, dat->c.sf,
+ dat->c.of, dat->c.sg,
+ 0, 0, 0,
+#ifndef USE_PACK
+ dat->c.hour,
+ dat->c.min,
+ dat->c.sec,
+#else
+ EX_HOUR(dat->c.pc),
+ EX_MIN(dat->c.pc),
+ EX_SEC(dat->c.pc),
+#endif
+ (dat->c.flags | HAVE_JD) &
+ ~HAVE_CIVIL);
+ }
+ break;
+ case T_FLOAT:
+ {
+ double jd, o, tmp;
+ int s, df;
+ VALUE nth, sf;
+
+ o = RFLOAT_VALUE(other);
+
+ if (o > 0)
+ s = +1;
+ else {
+ s = -1;
+ o = -o;
+ }
+
+ o = modf(o, &tmp);
+
+ if (!floor(tmp / CM_PERIOD)) {
+ nth = INT2FIX(0);
+ jd = (int)tmp;
+ }
+ else {
+ double i, f;
+
+ f = modf(tmp / CM_PERIOD, &i);
+ nth = f_floor(DBL2NUM(i));
+ jd = (int)(f * CM_PERIOD);
+ }
+
+ o *= DAY_IN_SECONDS;
+ o = modf(o, &tmp);
+ df = (int)tmp;
+ o *= SECOND_IN_NANOSECONDS;
+ sf = INT2FIX((int)round(o));
+
+ if (s < 0) {
+ jd = -jd;
+ df = -df;
+ sf = f_negate(sf);
+ }
+
+ if (f_zero_p(sf))
+ sf = m_sf(dat);
+ else {
+ sf = f_add(m_sf(dat), sf);
+ if (f_lt_p(sf, INT2FIX(0))) {
+ df -= 1;
+ sf = f_add(sf, INT2FIX(SECOND_IN_NANOSECONDS));
+ }
+ else if (f_ge_p(sf, INT2FIX(SECOND_IN_NANOSECONDS))) {
+ df += 1;
+ sf = f_sub(sf, INT2FIX(SECOND_IN_NANOSECONDS));
+ }
+ }
+
+ if (!df)
+ df = m_df(dat);
+ else {
+ df = m_df(dat) + df;
+ if (df < 0) {
+ jd -= 1;
+ df += DAY_IN_SECONDS;
+ }
+ else if (df >= DAY_IN_SECONDS) {
+ jd += 1;
+ df -= DAY_IN_SECONDS;
+ }
+ }
+
+ if (!jd)
+ jd = m_jd(dat);
+ else {
+ jd = m_jd(dat) + jd;
+ if (jd < 0) {
+ nth = f_sub(nth, INT2FIX(1));
+ jd += CM_PERIOD;
+ }
+ else if (jd >= CM_PERIOD) {
+ nth = f_add(nth, INT2FIX(1));
+ jd -= CM_PERIOD;
+ }
+ }
+
+ if (f_zero_p(nth))
+ nth = m_nth(dat);
+ else
+ nth = f_add(m_nth(dat), nth);
+
+ if (!df && f_zero_p(sf) && !m_of(dat))
+ return d_simple_new_internal(rb_obj_class(self),
+ nth, (int)jd,
+ m_sg(dat),
+ 0, 0, 0,
+ (dat->s.flags | HAVE_JD) &
+ ~(HAVE_CIVIL | HAVE_TIME |
+ COMPLEX_DAT));
+ else
+ return d_complex_new_internal(rb_obj_class(self),
+ nth, (int)jd,
+ df, sf,
+ m_of(dat), m_sg(dat),
+ 0, 0, 0,
+ 0, 0, 0,
+ (dat->c.flags |
+ HAVE_JD | HAVE_DF) &
+ ~(HAVE_CIVIL | HAVE_TIME));
+ }
+ break;
+ default:
+ if (!k_numeric_p(other))
+ rb_raise(rb_eTypeError, "expected numeric");
+ other = f_to_r(other);
+#ifdef CANONICALIZATION_FOR_MATHN
+ if (!k_rational_p(other))
+ return d_lite_plus(self, other);
+#endif
+ /* fall through */
+ case T_RATIONAL:
+ {
+ VALUE nth, sf, t;
+ int jd, df, s;
+
+ if (wholenum_p(other))
+ return d_lite_plus(self, RRATIONAL(other)->num);
+
+ if (f_positive_p(other))
+ s = +1;
+ else {
+ s = -1;
+ other = f_negate(other);
+ }
+
+ nth = f_idiv(other, INT2FIX(CM_PERIOD));
+ t = f_mod(other, INT2FIX(CM_PERIOD));
+
+ jd = FIX2INT(f_idiv(t, INT2FIX(1)));
+ t = f_mod(t, INT2FIX(1));
+
+ t = f_mul(t, INT2FIX(DAY_IN_SECONDS));
+ df = FIX2INT(f_idiv(t, INT2FIX(1)));
+ t = f_mod(t, INT2FIX(1));
+
+ sf = f_mul(t, INT2FIX(SECOND_IN_NANOSECONDS));
+
+ if (s < 0) {
+ nth = f_negate(nth);
+ jd = -jd;
+ df = -df;
+ sf = f_negate(sf);
+ }
+
+ if (f_zero_p(sf))
+ sf = m_sf(dat);
+ else {
+ sf = f_add(m_sf(dat), sf);
+ if (f_lt_p(sf, INT2FIX(0))) {
+ df -= 1;
+ sf = f_add(sf, INT2FIX(SECOND_IN_NANOSECONDS));
+ }
+ else if (f_ge_p(sf, INT2FIX(SECOND_IN_NANOSECONDS))) {
+ df += 1;
+ sf = f_sub(sf, INT2FIX(SECOND_IN_NANOSECONDS));
+ }
+ }
+
+ if (!df)
+ df = m_df(dat);
+ else {
+ df = m_df(dat) + df;
+ if (df < 0) {
+ jd -= 1;
+ df += DAY_IN_SECONDS;
+ }
+ else if (df >= DAY_IN_SECONDS) {
+ jd += 1;
+ df -= DAY_IN_SECONDS;
+ }
+ }
+
+ if (!jd)
+ jd = m_jd(dat);
+ else {
+ jd = m_jd(dat) + jd;
+ if (jd < 0) {
+ nth = f_sub(nth, INT2FIX(1));
+ jd += CM_PERIOD;
+ }
+ else if (jd >= CM_PERIOD) {
+ nth = f_add(nth, INT2FIX(1));
+ jd -= CM_PERIOD;
+ }
+ }
+
+ if (f_zero_p(nth))
+ nth = m_nth(dat);
+ else
+ nth = f_add(m_nth(dat), nth);
+
+ if (!df && f_zero_p(sf) && !m_of(dat))
+ return d_simple_new_internal(rb_obj_class(self),
+ nth, jd,
+ m_sg(dat),
+ 0, 0, 0,
+ (dat->s.flags | HAVE_JD) &
+ ~(HAVE_CIVIL | HAVE_TIME |
+ COMPLEX_DAT));
+ else
+ return d_complex_new_internal(rb_obj_class(self),
+ nth, jd,
+ df, sf,
+ m_of(dat), m_sg(dat),
+ 0, 0, 0,
+ 0, 0, 0,
+ (dat->c.flags |
+ HAVE_JD | HAVE_DF) &
+ ~(HAVE_CIVIL | HAVE_TIME));
+ }
+ break;
+ }
+}
+
+static VALUE
+minus_dd(VALUE self, VALUE other)
+{
+ get_d2(self, other);
+
+ {
+ int d, df;
+ VALUE n, sf, r;
+
+ n = f_sub(m_nth(adat), m_nth(bdat));
+ d = m_jd(adat) - m_jd(bdat);
+ df = m_df(adat) - m_df(bdat);
+ sf = f_sub(m_sf(adat), m_sf(bdat));
+
+ if (d < 0) {
+ n = f_sub(n, INT2FIX(1));
+ d += CM_PERIOD;
+ }
+ else if (d >= CM_PERIOD) {
+ n = f_add(n, INT2FIX(1));
+ d -= CM_PERIOD;
+ }
+
+ if (df < 0) {
+ d -= 1;
+ df += DAY_IN_SECONDS;
+ }
+ else if (df >= DAY_IN_SECONDS) {
+ d += 1;
+ df -= DAY_IN_SECONDS;
+ }
+
+ if (f_lt_p(sf, INT2FIX(0))) {
+ df -= 1;
+ sf = f_add(sf, INT2FIX(SECOND_IN_NANOSECONDS));
+ }
+ else if (f_ge_p(sf, INT2FIX(SECOND_IN_NANOSECONDS))) {
+ df += 1;
+ sf = f_sub(sf, INT2FIX(SECOND_IN_NANOSECONDS));
+ }
+
+ if (f_zero_p(n))
+ r = INT2FIX(0);
+ else
+ r = f_mul(n, INT2FIX(CM_PERIOD));
+
+ if (d)
+ r = f_add(r, rb_rational_new1(INT2FIX(d)));
+ if (df)
+ r = f_add(r, isec_to_day(df));
+ if (f_nonzero_p(sf))
+ r = f_add(r, ns_to_day(sf));
+
+ if (TYPE(r) == T_RATIONAL)
+ return r;
+ return rb_rational_new1(r);
+ }
+}
+
+/*
+ * call-seq:
+ * d - other -> date or rational
+ *
+ * Returns the difference between the two dates if the other is a date
+ * object. If the other is a numeric value, returns a date object
+ * pointing other days before self. If the other is flonum, assumes
+ * its precision is at most nanosecond.
+ *
+ * For example:
+ *
+ * Date.new(2001,2,3) - 1 #=> #<Date: 2001-02-02 ...>
+ * DateTime.new(2001,2,3) - Rational(1,2)
+ * #=> #<DateTime: 2001-02-02T12:00:00+00:00 ...>
+ * Date.new(2001,2,3) - Date.new(2001)
+ * #=> (33/1)
+ * DateTime.new(2001,2,3) - DateTime.new(2001,2,2,12)
+ * #=> (1/2)
+ */
+static VALUE
+d_lite_minus(VALUE self, VALUE other)
+{
+ if (k_date_p(other))
+ return minus_dd(self, other);
+
+ switch (TYPE(other)) {
+ case T_FIXNUM:
+ return d_lite_plus(self, LONG2NUM(-FIX2LONG(other)));
+ case T_FLOAT:
+ return d_lite_plus(self, DBL2NUM(-RFLOAT_VALUE(other)));
+ default:
+ if (!k_numeric_p(other))
+ rb_raise(rb_eTypeError, "expected numeric");
+ /* fall through */
+ case T_BIGNUM:
+ case T_RATIONAL:
+ return d_lite_plus(self, f_negate(other));
+ }
+}
+
+/*
+ * call-seq:
+ * d.next_day([n=1]) -> date
+ *
+ * This method is equivalent to d + n.
+ */
+static VALUE
+d_lite_next_day(int argc, VALUE *argv, VALUE self)
+{
+ VALUE n;
+
+ rb_scan_args(argc, argv, "01", &n);
+ if (argc < 1)
+ n = INT2FIX(1);
+ return d_lite_plus(self, n);
+}
+
+/*
+ * call-seq:
+ * d.prev_day([n=1]) -> date
+ *
+ * This method is equivalent to d - n.
+ */
+static VALUE
+d_lite_prev_day(int argc, VALUE *argv, VALUE self)
+{
+ VALUE n;
+
+ rb_scan_args(argc, argv, "01", &n);
+ if (argc < 1)
+ n = INT2FIX(1);
+ return d_lite_minus(self, n);
+}
+
+/*
+ * call-seq:
+ * d.next -> date
+ *
+ * Returns a date object denoting the following day.
+ */
+static VALUE
+d_lite_next(VALUE self)
+{
+ return d_lite_next_day(0, (VALUE *)NULL, self);
+}
+
+/*
+ * call-seq:
+ * d >> n -> date
+ *
+ * Returns a date object pointing n months after self. The n should
+ * be a numeric value.
+ *
+ * For example:
+ *
+ * Date.new(2001,2,3) >> 1 #=> #<Date: 2001-03-03 ...>
+ * Date.new(2001,1,31) >> 1 #=> #<Date: 2001-02-28 ...>
+ * Date.new(2001,2,3) >> -2 #=> #<Date: 2000-12-03 ...>
+ */
+static VALUE
+d_lite_rshift(VALUE self, VALUE other)
+{
+ VALUE t, y, nth, rjd2;
+ int m, d, rjd;
+ double sg;
+
+ get_d1(self);
+ t = f_add3(f_mul(m_real_year(dat), INT2FIX(12)),
+ INT2FIX(m_mon(dat) - 1),
+ other);
+ if (FIXNUM_P(t)) {
+ long it = FIX2LONG(t);
+ y = LONG2NUM(DIV(it, 12));
+ it = MOD(it, 12);
+ m = (int)it + 1;
+ }
+ else {
+ y = f_idiv(t, INT2FIX(12));
+ t = f_mod(t, INT2FIX(12));
+ m = FIX2INT(t) + 1;
+ }
+ d = m_mday(dat);
+ sg = m_sg(dat);
+
+ while (1) {
+ int ry, rm, rd, ns;
+
+ if (valid_civil_p(y, m, d, sg,
+ &nth, &ry,
+ &rm, &rd, &rjd, &ns))
+ break;
+ if (--d < 1)
+ rb_raise(rb_eArgError, "invalid date");
+ }
+ encode_jd(nth, rjd, &rjd2);
+ return d_lite_plus(self, f_sub(rjd2, m_real_local_jd(dat)));
+}
+
+/*
+ * call-seq:
+ * d << n -> date
+ *
+ * Returns a date object pointing n months before self. The n should
+ * be a numeric value.
+ *
+ * For example:
+ *
+ * Date.new(2001,2,3) << 1 #=> #<Date: 2001-01-03 ...>
+ * Date.new(2001,1,31) << 11 #=> #<Date: 2000-02-29 ...>
+ * Date.new(2001,2,3) << -1 #=> #<Date: 2001-03-03 ...>
+ */
+static VALUE
+d_lite_lshift(VALUE self, VALUE other)
+{
+ return d_lite_rshift(self, f_negate(other));
+}
+
+/*
+ * call-seq:
+ * d.next_month([n=1]) -> date
+ *
+ * This method is equivalent to d >> n
+ */
+static VALUE
+d_lite_next_month(int argc, VALUE *argv, VALUE self)
+{
+ VALUE n;
+
+ rb_scan_args(argc, argv, "01", &n);
+ if (argc < 1)
+ n = INT2FIX(1);
+ return d_lite_rshift(self, n);
+}
+
+/*
+ * call-seq:
+ * d.prev_month([n=1]) -> date
+ *
+ * This method is equivalent to d << n
+ */
+static VALUE
+d_lite_prev_month(int argc, VALUE *argv, VALUE self)
+{
+ VALUE n;
+
+ rb_scan_args(argc, argv, "01", &n);
+ if (argc < 1)
+ n = INT2FIX(1);
+ return d_lite_lshift(self, n);
+}
+
+/*
+ * call-seq:
+ * d.next_year([n=1]) -> date
+ *
+ * This method is equivalent to d >> (n * 12)
+ */
+static VALUE
+d_lite_next_year(int argc, VALUE *argv, VALUE self)
+{
+ VALUE n;
+
+ rb_scan_args(argc, argv, "01", &n);
+ if (argc < 1)
+ n = INT2FIX(1);
+ return d_lite_rshift(self, f_mul(n, INT2FIX(12)));
+}
+
+/*
+ * call-seq:
+ * d.prev_year([n=1]) -> date
+ *
+ * This method is equivalent to d << (n * 12)
+ */
+static VALUE
+d_lite_prev_year(int argc, VALUE *argv, VALUE self)
+{
+ VALUE n;
+
+ rb_scan_args(argc, argv, "01", &n);
+ if (argc < 1)
+ n = INT2FIX(1);
+ return d_lite_lshift(self, f_mul(n, INT2FIX(12)));
+}
+
+static VALUE d_lite_cmp(VALUE, VALUE);
+
+/*
+ * call-seq:
+ * d.step(limit[, step=1]) -> enumerator
+ * d.step(limit[, step=1]){|date| ...} -> self
+ *
+ * Iterates evaluation of the given block, which takes a date object.
+ * The limit should be a date object.
+ *
+ * For example:
+ *
+ * Date.new(2001).step(Date.new(2001,-1,-1)).select{|d| d.sunday?}.size
+ * #=> 52
+ */
+static VALUE
+d_lite_step(int argc, VALUE *argv, VALUE self)
+{
+ VALUE limit, step, date;
+
+ rb_scan_args(argc, argv, "11", &limit, &step);
+
+ if (argc < 2)
+ step = INT2FIX(1);
+
+#if 0
+ if (f_zero_p(step))
+ rb_raise(rb_eArgError, "step can't be 0");
+#endif
+
+ RETURN_ENUMERATOR(self, argc, argv);
+
+ date = self;
+ switch (FIX2INT(f_cmp(step, INT2FIX(0)))) {
+ case -1:
+ while (FIX2INT(d_lite_cmp(date, limit)) >= 0) {
+ rb_yield(date);
+ date = d_lite_plus(date, step);
+ }
+ break;
+ case 0:
+ while (1)
+ rb_yield(date);
+ break;
+ case 1:
+ while (FIX2INT(d_lite_cmp(date, limit)) <= 0) {
+ rb_yield(date);
+ date = d_lite_plus(date, step);
+ }
+ break;
+ default:
+ abort();
+ }
+ return self;
+}
+
+/*
+ * call-seq:
+ * d.upto(max) -> enumerator
+ * d.upto(max){|date| ...} -> self
+ *
+ * This method is equivalent to step(max, 1){|date| ...}.
+ */
+static VALUE
+d_lite_upto(VALUE self, VALUE max)
+{
+ VALUE date;
+
+ RETURN_ENUMERATOR(self, 1, &max);
+
+ date = self;
+ while (FIX2INT(d_lite_cmp(date, max)) <= 0) {
+ rb_yield(date);
+ date = d_lite_plus(date, INT2FIX(1));
+ }
+ return self;
+}
+
+/*
+ * call-seq:
+ * d.downto(min) -> enumerator
+ * d.downto(min){|date| ...} -> self
+ *
+ * This method is equivalent to step(min, -1){|date| ...}.
+ */
+static VALUE
+d_lite_downto(VALUE self, VALUE min)
+{
+ VALUE date;
+
+ RETURN_ENUMERATOR(self, 1, &min);
+
+ date = self;
+ while (FIX2INT(d_lite_cmp(date, min)) >= 0) {
+ rb_yield(date);
+ date = d_lite_plus(date, INT2FIX(-1));
+ }
+ return self;
+}
+
+static VALUE
+cmp_gen(VALUE self, VALUE other)
+{
+ get_d1(self);
+
+ if (k_numeric_p(other))
+ return f_cmp(m_ajd(dat), other);
+ else if (k_date_p(other))
+ return f_cmp(m_ajd(dat), f_ajd(other));
+ return rb_num_coerce_cmp(self, other, rb_intern("<=>"));
+}
+
+static VALUE
+cmp_dd(VALUE self, VALUE other)
+{
+ get_d2(self, other);
+
+ {
+ VALUE a_nth, b_nth,
+ a_sf, b_sf;
+ int a_jd, b_jd,
+ a_df, b_df;
+
+ a_nth = m_nth(adat);
+ b_nth = m_nth(bdat);
+ if (f_eqeq_p(a_nth, b_nth)) {
+ a_jd = m_jd(adat);
+ b_jd = m_jd(bdat);
+ if (a_jd == b_jd) {
+ a_df = m_df(adat);
+ b_df = m_df(bdat);
+ if (a_df == b_df) {
+ a_sf = m_sf(adat);
+ b_sf = m_sf(bdat);
+ if (f_eqeq_p(a_sf, b_sf)) {
+ return INT2FIX(0);
+ }
+ else if (f_lt_p(a_sf, b_sf)) {
+ return INT2FIX(-1);
+ }
+ else {
+ return INT2FIX(1);
+ }
+ }
+ else if (a_df < b_df) {
+ return INT2FIX(-1);
+ }
+ else {
+ return INT2FIX(1);
+ }
+ }
+ else if (a_jd < b_jd) {
+ return INT2FIX(-1);
+ }
+ else {
+ return INT2FIX(1);
+ }
+ }
+ else if (f_lt_p(a_nth, b_nth)) {
+ return INT2FIX(-1);
+ }
+ else {
+ return INT2FIX(1);
+ }
+ }
+}
+
+/*
+ * call-seq:
+ * d <=> other -> -1, 0, +1 or nil
+ *
+ * Compares the two dates and returns -1, zero, 1 or nil. The other
+ * should be a date object or a numeric value as an astronomical
+ * Julian day number.
+ *
+ * For example:
+ *
+ * Date.new(2001,2,3) <=> Date.new(2001,2,4) #=> -1
+ * Date.new(2001,2,3) <=> Date.new(2001,2,3) #=> 0
+ * Date.new(2001,2,3) <=> Date.new(2001,2,2) #=> 1
+ * Date.new(2001,2,3) <=> Object.new #=> nil
+ * Date.new(2001,2,3) <=> Rational(4903887,2)#=> 0
+ *
+ * See also Comparable.
+ */
+static VALUE
+d_lite_cmp(VALUE self, VALUE other)
+{
+ if (!k_date_p(other))
+ return cmp_gen(self, other);
+
+ {
+ get_d2(self, other);
+
+ if (!(simple_dat_p(adat) && simple_dat_p(bdat) &&
+ m_gregorian_p(adat) == m_gregorian_p(bdat)))
+ return cmp_dd(self, other);
+
+ if (have_jd_p(adat) &&
+ have_jd_p(bdat)) {
+ VALUE a_nth, b_nth;
+ int a_jd, b_jd;
+
+ a_nth = m_nth(adat);
+ b_nth = m_nth(bdat);
+ if (f_eqeq_p(a_nth, b_nth)) {
+ a_jd = m_jd(adat);
+ b_jd = m_jd(bdat);
+ if (a_jd == b_jd) {
+ return INT2FIX(0);
+ }
+ else if (a_jd < b_jd) {
+ return INT2FIX(-1);
+ }
+ else {
+ return INT2FIX(1);
+ }
+ }
+ else if (a_nth < b_nth) {
+ return INT2FIX(-1);
+ }
+ else {
+ return INT2FIX(1);
+ }
+ }
+ else {
+#ifndef USE_PACK
+ VALUE a_nth, b_nth;
+ int a_year, b_year,
+ a_mon, b_mon,
+ a_mday, b_mday;
+#else
+ VALUE a_nth, b_nth;
+ int a_year, b_year,
+ a_pd, b_pd;
+#endif
+
+ a_nth = m_nth(adat);
+ b_nth = m_nth(bdat);
+ if (f_eqeq_p(a_nth, b_nth)) {
+ a_year = m_year(adat);
+ b_year = m_year(bdat);
+ if (a_year == b_year) {
+#ifndef USE_PACK
+ a_mon = m_mon(adat);
+ b_mon = m_mon(bdat);
+ if (a_mon == b_mon) {
+ a_mday = m_mday(adat);
+ b_mday = m_mday(bdat);
+ if (a_mday == b_mday) {
+ return INT2FIX(0);
+ }
+ else if (a_mday < b_mday) {
+ return INT2FIX(-1);
+ }
+ else {
+ return INT2FIX(1);
+ }
+ }
+ else if (a_mon < b_mon) {
+ return INT2FIX(-1);
+ }
+ else {
+ return INT2FIX(1);
+ }
+#else
+ a_pd = m_pc(adat);
+ b_pd = m_pc(bdat);
+ if (a_pd == b_pd) {
+ return INT2FIX(0);
+ }
+ else if (a_pd < b_pd) {
+ return INT2FIX(-1);
+ }
+ else {
+ return INT2FIX(1);
+ }
+#endif
+ }
+ else if (a_year < b_year) {
+ return INT2FIX(-1);
+ }
+ else {
+ return INT2FIX(1);
+ }
+ }
+ else if (f_lt_p(a_nth, b_nth)) {
+ return INT2FIX(-1);
+ }
+ else {
+ return INT2FIX(1);
+ }
+ }
+ }
+}
+
+static VALUE
+equal_gen(VALUE self, VALUE other)
+{
+ get_d1(self);
+
+ if (k_numeric_p(other))
+ return f_eqeq_p(m_real_local_jd(dat), other);
+ else if (k_date_p(other))
+ return f_eqeq_p(m_real_local_jd(dat), f_jd(other));
+ return rb_num_coerce_cmp(self, other, rb_intern("=="));
+}
+
+/*
+ * call-seq:
+ * d === other -> bool
+ *
+ * Returns true if they are the same day.
+ *
+ * For example:
+ *
+ * Date.new(2001,2,3) === Date.new(2001,2,3)
+ * #=> true
+ * Date.new(2001,2,3) === Date.new(2001,2,4)
+ * #=> false
+ * DateTime.new(2001,2,3) === DateTime.new(2001,2,3,12)
+ * #=> true
+ * DateTime.new(2001,2,3) === DateTime.new(2001,2,3,0,0,0,'+24:00')
+ * #=> true
+ * DateTime.new(2001,2,3) === DateTime.new(2001,2,4,0,0,0,'+24:00')
+ * #=> false
+ */
+static VALUE
+d_lite_equal(VALUE self, VALUE other)
+{
+ if (!k_date_p(other))
+ return equal_gen(self, other);
+
+ {
+ get_d2(self, other);
+
+ if (!(m_gregorian_p(adat) == m_gregorian_p(bdat)))
+ return equal_gen(self, other);
+
+ if (have_jd_p(adat) &&
+ have_jd_p(bdat)) {
+ VALUE a_nth, b_nth;
+ int a_jd, b_jd;
+
+ a_nth = m_nth(adat);
+ b_nth = m_nth(bdat);
+ a_jd = m_local_jd(adat);
+ b_jd = m_local_jd(bdat);
+ if (f_eqeq_p(a_nth, b_nth) &&
+ a_jd == b_jd)
+ return Qtrue;
+ return Qfalse;
+ }
+ else {
+#ifndef USE_PACK
+ VALUE a_nth, b_nth;
+ int a_year, b_year,
+ a_mon, b_mon,
+ a_mday, b_mday;
+#else
+ VALUE a_nth, b_nth;
+ int a_year, b_year,
+ a_pd, b_pd;
+#endif
+
+ a_nth = m_nth(adat);
+ b_nth = m_nth(bdat);
+ if (f_eqeq_p(a_nth, b_nth)) {
+ a_year = m_year(adat);
+ b_year = m_year(bdat);
+ if (a_year == b_year) {
+#ifndef USE_PACK
+ a_mon = m_mon(adat);
+ b_mon = m_mon(bdat);
+ if (a_mon == b_mon) {
+ a_mday = m_mday(adat);
+ b_mday = m_mday(bdat);
+ if (a_mday == b_mday)
+ return Qtrue;
+ }
+#else
+ /* mon and mday only */
+ a_pd = (m_pc(adat) >> MDAY_SHIFT);
+ b_pd = (m_pc(bdat) >> MDAY_SHIFT);
+ if (a_pd == b_pd) {
+ return Qtrue;
+ }
+#endif
+ }
+ }
+ return Qfalse;
+ }
+ }
+}
+
+/* :nodoc: */
+static VALUE
+d_lite_eql_p(VALUE self, VALUE other)
+{
+ if (!k_date_p(other))
+ return Qfalse;
+ return f_zero_p(d_lite_cmp(self, other));
+}
+
+/* :nodoc: */
+static VALUE
+d_lite_hash(VALUE self)
+{
+ st_index_t v, h[4];
+
+ get_d1(self);
+ h[0] = m_nth(dat);
+ h[1] = m_jd(dat);
+ h[2] = m_df(dat);
+ h[3] = m_sf(dat);
+ v = rb_memhash(h, sizeof(h));
+ return LONG2FIX(v);
+}
+
+#include "date_tmx.h"
+static void set_tmx(VALUE, struct tmx *);
+static VALUE strftimev(const char *, VALUE,
+ void (*)(VALUE, struct tmx *));
+
+/*
+ * call-seq:
+ * d.to_s -> string
+ *
+ * Returns a string in an ISO 8601 format (This method doesn't use the
+ * expanded representations).
+ *
+ * For example:
+ *
+ * Date.new(2001,2,3).to_s #=> "2001-02-03"
+ */
+static VALUE
+d_lite_to_s(VALUE self)
+{
+ return strftimev("%Y-%m-%d", self, set_tmx);
+}
+
+#ifndef NDEBUG
+static VALUE
+mk_inspect_flags(union DateData *x)
+{
+ return rb_enc_sprintf(rb_usascii_encoding(),
+ "%c%c%c%c%c",
+ (x->flags & COMPLEX_DAT) ? 'C' : 'S',
+ (x->flags & HAVE_JD) ? 'j' : '-',
+ (x->flags & HAVE_DF) ? 'd' : '-',
+ (x->flags & HAVE_CIVIL) ? 'c' : '-',
+ (x->flags & HAVE_TIME) ? 't' : '-');
+}
+
+static VALUE
+mk_inspect_raw(union DateData *x, const char *klass)
+{
+ if (simple_dat_p(x)) {
+ VALUE nth, flags;
+
+ RB_GC_GUARD(nth) = f_inspect(x->s.nth);
+ RB_GC_GUARD(flags) = mk_inspect_flags(x);
+
+ return rb_enc_sprintf(rb_usascii_encoding(),
+ "#<%s: "
+ "(%sth,%dj),+0s,%.0fj; "
+ "%dy%dm%dd; %s>",
+ klass ? klass : "?",
+ RSTRING_PTR(nth), x->s.jd, x->s.sg,
+#ifndef USE_PACK
+ x->s.year, x->s.mon, x->s.mday,
+#else
+ x->s.year,
+ EX_MON(x->s.pc), EX_MDAY(x->s.pc),
+#endif
+ RSTRING_PTR(flags));
+ }
+ else {
+ VALUE nth, sf, flags;
+
+ RB_GC_GUARD(nth) = f_inspect(x->c.nth);
+ RB_GC_GUARD(sf) = f_inspect(x->c.sf);
+ RB_GC_GUARD(flags) = mk_inspect_flags(x);
+
+ return rb_enc_sprintf(rb_usascii_encoding(),
+ "#<%s: "
+ "(%sth,%dj,%ds,%sn),%+ds,%.0fj; "
+ "%dy%dm%dd %dh%dm%ds; %s>",
+ klass ? klass : "?",
+ RSTRING_PTR(nth), x->c.jd, x->c.df,
+ RSTRING_PTR(sf),
+ x->c.of, x->c.sg,
+#ifndef USE_PACK
+ x->c.year, x->c.mon, x->c.mday,
+ x->c.hour, x->c.min, x->c.sec,
+#else
+ x->c.year,
+ EX_MON(x->c.pc), EX_MDAY(x->c.pc),
+ EX_HOUR(x->c.pc), EX_MIN(x->c.pc),
+ EX_SEC(x->c.pc),
+#endif
+ RSTRING_PTR(flags));
+ }
+}
+
+static VALUE
+d_lite_inspect_raw(VALUE self)
+{
+ get_d1(self);
+ return mk_inspect_raw(dat, rb_obj_classname(self));
+}
+#endif
+
+static VALUE
+mk_inspect(union DateData *x, const char *klass, const char *to_s)
+{
+ VALUE jd, sf;
+
+ RB_GC_GUARD(jd) = f_inspect(m_real_jd(x));
+ RB_GC_GUARD(sf) = f_inspect(m_sf(x));
+
+ return rb_enc_sprintf(rb_usascii_encoding(),
+ "#<%s: %s ((%sj,%ds,%sn),%+ds,%.0fj)>",
+ klass ? klass : "?",
+ to_s ? to_s : "?",
+ RSTRING_PTR(jd), m_df(x), RSTRING_PTR(sf),
+ m_of(x), m_sg(x));
+}
+
+/*
+ * call-seq:
+ * d.inspect -> string
+ *
+ * Returns the value as a string for inspection.
+ *
+ * For example:
+ *
+ * Date.new(2001,2,3).inspect
+ * #=> "#<Date: 2001-02-03 ((2451944j,0s,0n),+0s,2299161j)>"
+ * DateTime.new(2001,2,3,4,5,6,'-7').inspect
+ * #=> "#<DateTime: 2001-02-03T04:05:06-07:00 ((2451944j,39906s,0n),-25200s,2299161j)>"
+ *
+ */
+static VALUE
+d_lite_inspect(VALUE self)
+{
+ get_d1(self);
+ {
+ VALUE to_s;
+
+ RB_GC_GUARD(to_s) = f_to_s(self);
+ return mk_inspect(dat, rb_obj_classname(self), RSTRING_PTR(to_s));
+ }
+}
+
+#include <errno.h>
+#include "date_tmx.h"
+
+size_t date_strftime(char *s, size_t maxsize, const char *format,
+ const struct tmx *tmx);
+
+#define SMALLBUF 100
+static size_t
+date_strftime_alloc(char **buf, const char *format,
+ struct tmx *tmx)
+{
+ size_t size, len, flen;
+
+ (*buf)[0] = '\0';
+ flen = strlen(format);
+ if (flen == 0) {
+ return 0;
+ }
+ errno = 0;
+ len = date_strftime(*buf, SMALLBUF, format, tmx);
+ if (len != 0 || (**buf == '\0' && errno != ERANGE)) return len;
+ for (size=1024; ; size*=2) {
+ *buf = xmalloc(size);
+ (*buf)[0] = '\0';
+ len = date_strftime(*buf, size, format, tmx);
+ /*
+ * buflen can be zero EITHER because there's not enough
+ * room in the string, or because the control command
+ * goes to the empty string. Make a reasonable guess that
+ * if the buffer is 1024 times bigger than the length of the
+ * format string, it's not failing for lack of room.
+ */
+ if (len > 0) break;
+ xfree(*buf);
+ if (size >= 1024 * flen) {
+ rb_sys_fail(format);
+ break;
+ }
+ }
+ return len;
+}
+
+static VALUE
+tmx_m_secs(union DateData *x)
+{
+ VALUE s;
+ int df;
+
+ s = day_to_sec(f_sub(m_real_jd(x),
+ UNIX_EPOCH_IN_CJD));
+ if (simple_dat_p(x))
+ return s;
+ df = m_df(x);
+ if (df)
+ s = f_add(s, INT2FIX(df));
+ return s;
+}
+
+#define MILLISECOND_IN_NANOSECONDS 1000000
+
+static VALUE
+tmx_m_msecs(union DateData *x)
+{
+ VALUE s, sf;
+
+ s = sec_to_ms(tmx_m_secs(x));
+ if (simple_dat_p(x))
+ return s;
+ sf = m_sf(x);
+ if (f_nonzero_p(sf))
+ s = f_add(s, f_div(sf, INT2FIX(MILLISECOND_IN_NANOSECONDS)));
+ return s;
+}
+
+static VALUE
+tmx_m_of(union DateData *x)
+{
+ return INT2FIX(m_of(x));
+}
+
+static char *
+tmx_m_zone(union DateData *x)
+{
+ return RSTRING_PTR(m_zone(x));
+}
+
+static struct tmx_funcs tmx_funcs = {
+ (VALUE (*)(void *))m_real_year,
+ (int (*)(void *))m_yday,
+ (int (*)(void *))m_mon,
+ (int (*)(void *))m_mday,
+ (VALUE (*)(void *))m_real_cwyear,
+ (int (*)(void *))m_cweek,
+ (int (*)(void *))m_cwday,
+ (int (*)(void *))m_wnum0,
+ (int (*)(void *))m_wnum1,
+ (int (*)(void *))m_wday,
+ (int (*)(void *))m_hour,
+ (int (*)(void *))m_min,
+ (int (*)(void *))m_sec,
+ (VALUE (*)(void *))m_sf_in_sec,
+ (VALUE (*)(void *))tmx_m_secs,
+ (VALUE (*)(void *))tmx_m_msecs,
+ (VALUE (*)(void *))tmx_m_of,
+ (char *(*)(void *))tmx_m_zone
+};
+
+static void
+set_tmx(VALUE self, struct tmx *tmx)
+{
+ get_d1(self);
+ tmx->dat = (void *)dat;
+ tmx->funcs = &tmx_funcs;
+}
+
+static VALUE
+date_strftime_internal(int argc, VALUE *argv, VALUE self,
+ const char *default_fmt,
+ void (*func)(VALUE, struct tmx *))
+{
+ VALUE vfmt;
+ const char *fmt;
+ long len;
+ char buffer[SMALLBUF], *buf = buffer;
+ struct tmx tmx;
+ VALUE str;
+
+ rb_scan_args(argc, argv, "01", &vfmt);
+
+ if (argc < 1)
+ vfmt = rb_usascii_str_new2(default_fmt);
+ else {
+ StringValue(vfmt);
+ if (!rb_enc_str_asciicompat_p(vfmt)) {
+ rb_raise(rb_eArgError,
+ "format should have ASCII compatible encoding");
+ }
+ }
+ fmt = RSTRING_PTR(vfmt);
+ len = RSTRING_LEN(vfmt);
+ (*func)(self, &tmx);
+ if (memchr(fmt, '\0', len)) {
+ /* Ruby string may contain \0's. */
+ const char *p = fmt, *pe = fmt + len;
+
+ str = rb_str_new(0, 0);
+ while (p < pe) {
+ len = date_strftime_alloc(&buf, p, &tmx);
+ rb_str_cat(str, buf, len);
+ p += strlen(p);
+ if (buf != buffer) {
+ xfree(buf);
+ buf = buffer;
+ }
+ for (fmt = p; p < pe && !*p; ++p);
+ if (p > fmt) rb_str_cat(str, fmt, p - fmt);
+ }
+ rb_enc_copy(str, vfmt);
+ OBJ_INFECT(str, vfmt);
+ return str;
+ }
+ else
+ len = date_strftime_alloc(&buf, fmt, &tmx);
+
+ str = rb_str_new(buf, len);
+ if (buf != buffer) xfree(buf);
+ rb_enc_copy(str, vfmt);
+ OBJ_INFECT(str, vfmt);
+ return str;
+}
+
+/*
+ * call-seq:
+ * d.strftime([format='%F']) -> string
+ *
+ * Formats date according to the directives in the given format
+ * string.
+ * The directives begins with a percent (%) character.
+ * Any text not listed as a directive will be passed through to the
+ * output string.
+ *
+ * The directive consists of a percent (%) character,
+ * zero or more flags, optional minimum field width,
+ * optional modifier and a conversion specifier
+ * as follows.
+ *
+ * %<flags><width><modifier><conversion>
+ *
+ * Flags:
+ * - don't pad a numerical output.
+ * _ use spaces for padding.
+ * 0 use zeros for padding.
+ * ^ upcase the result string.
+ * # change case.
+ * : use colons for %z.
+ *
+ * The minimum field width specifies the minimum width.
+ *
+ * The modifier is "E" and "O".
+ * They are ignored.
+ *
+ * Format directives:
+ *
+ * Date (Year, Month, Day):
+ * %Y - Year with century (can be negative, 4 digits at least)
+ * -0001, 0000, 1995, 2009, 14292, etc.
+ * %C - year / 100 (round down. 20 in 2009)
+ * %y - year % 100 (00..99)
+ *
+ * %m - Month of the year, zero-padded (01..12)
+ * %_m blank-padded ( 1..12)
+ * %-m no-padded (1..12)
+ * %B - The full month name (``January'')
+ * %^B uppercased (``JANUARY'')
+ * %b - The abbreviated month name (``Jan'')
+ * %^b uppercased (``JAN'')
+ * %h - Equivalent to %b
+ *
+ * %d - Day of the month, zero-padded (01..31)
+ * %-d no-padded (1..31)
+ * %e - Day of the month, blank-padded ( 1..31)
+ *
+ * %j - Day of the year (001..366)
+ *
+ * Time (Hour, Minute, Second, Subsecond):
+ * %H - Hour of the day, 24-hour clock, zero-padded (00..23)
+ * %k - Hour of the day, 24-hour clock, blank-padded ( 0..23)
+ * %I - Hour of the day, 12-hour clock, zero-padded (01..12)
+ * %l - Hour of the day, 12-hour clock, blank-padded ( 1..12)
+ * %P - Meridian indicator, lowercase (``am'' or ``pm'')
+ * %p - Meridian indicator, uppercase (``AM'' or ``PM'')
+ *
+ * %M - Minute of the hour (00..59)
+ *
+ * %S - Second of the minute (00..59)
+ *
+ * %L - Millisecond of the second (000..999)
+ * %N - Fractional seconds digits, default is 9 digits (nanosecond)
+ * %3N millisecond (3 digits)
+ * %6N microsecond (6 digits)
+ * %9N nanosecond (9 digits)
+ * %12N picosecond (12 digits)
+ *
+ * Time zone:
+ * %z - Time zone as hour and minute offset from UTC (e.g. +0900)
+ * %:z - hour and minute offset from UTC with a colon (e.g. +09:00)
+ * %::z - hour, minute and second offset from UTC (e.g. +09:00:00)
+ * %:::z - hour, minute and second offset from UTC
+ * (e.g. +09, +09:30, +09:30:30)
+ * %Z - Time zone abbreviation name
+ *
+ * Weekday:
+ * %A - The full weekday name (``Sunday'')
+ * %^A uppercased (``SUNDAY'')
+ * %a - The abbreviated name (``Sun'')
+ * %^a uppercased (``SUN'')
+ * %u - Day of the week (Monday is 1, 1..7)
+ * %w - Day of the week (Sunday is 0, 0..6)
+ *
+ * ISO 8601 week-based year and week number:
+ * The week 1 of YYYY starts with a Monday and includes YYYY-01-04.
+ * The days in the year before the first week are in the last week of
+ * the previous year.
+ * %G - The week-based year
+ * %g - The last 2 digits of the week-based year (00..99)
+ * %V - Week number of the week-based year (01..53)
+ *
+ * Week number:
+ * The week 1 of YYYY starts with a Sunday or Monday (according to %U
+ * or %W). The days in the year before the first week are in week 0.
+ * %U - Week number of the year. The week starts with Sunday. (00..53)
+ * %W - Week number of the year. The week starts with Monday. (00..53)
+ *
+ * Seconds since the Unix Epoch:
+ * %s - Number of seconds since 1970-01-01 00:00:00 UTC.
+ * %Q - Number of microseconds since 1970-01-01 00:00:00 UTC.
+ *
+ * Literal string:
+ * %n - Newline character (\n)
+ * %t - Tab character (\t)
+ * %% - Literal ``%'' character
+ *
+ * Combination:
+ * %c - date and time (%a %b %e %T %Y)
+ * %D - Date (%m/%d/%y)
+ * %F - The ISO 8601 date format (%Y-%m-%d)
+ * %v - VMS date (%e-%b-%Y)
+ * %x - Same as %D
+ * %X - Same as %T
+ * %r - 12-hour time (%I:%M:%S %p)
+ * %R - 24-hour time (%H:%M)
+ * %T - 24-hour time (%H:%M:%S)
+ * %+ - date(1) (%a %b %e %H:%M:%S %Z %Y)
+ *
+ * This method is similar to strftime() function defined in ISO C and POSIX.
+ * Several directives (%a, %A, %b, %B, %c, %p, %r, %x, %X, %E*, %O* and %Z)
+ * are locale dependent in the function.
+ * However this method is locale independent.
+ * So, the result may differ even if a same format string is used in other
+ * systems such as C.
+ * It is good practice to avoid %x and %X because there are corresponding
+ * locale independent representations, %D and %T.
+ *
+ * Examples:
+ *
+ * d = DateTime.new(2007,11,19,8,37,48,"-06:00")
+ * #=> #<DateTime: 2007-11-19T08:37:48-0600 ...>
+ * d.strftime("Printed on %m/%d/%Y") #=> "Printed on 11/19/2007"
+ * d.strftime("at %I:%M%p") #=> "at 08:37AM"
+ *
+ * Various ISO 8601 formats:
+ * %Y%m%d => 20071119 Calendar date (basic)
+ * %F => 2007-11-19 Calendar date (extended)
+ * %Y-%m => 2007-11 Calendar date, reduced accuracy, specific month
+ * %Y => 2007 Calendar date, reduced accuracy, specific year
+ * %C => 20 Calendar date, reduced accuracy, specific century
+ * %Y%j => 2007323 Ordinal date (basic)
+ * %Y-%j => 2007-323 Ordinal date (extended)
+ * %GW%V%u => 2007W471 Week date (basic)
+ * %G-W%V-%u => 2007-W47-1 Week date (extended)
+ * %GW%V => 2007W47 Week date, reduced accuracy, specific week (basic)
+ * %G-W%V => 2007-W47 Week date, reduced accuracy, specific week (extended)
+ * %H%M%S => 083748 Local time (basic)
+ * %T => 08:37:48 Local time (extended)
+ * %H%M => 0837 Local time, reduced accuracy, specific minute (basic)
+ * %H:%M => 08:37 Local time, reduced accuracy, specific minute (extended)
+ * %H => 08 Local time, reduced accuracy, specific hour
+ * %H%M%S,%L => 083748,000 Local time with decimal fraction, comma as decimal sign (basic)
+ * %T,%L => 08:37:48,000 Local time with decimal fraction, comma as decimal sign (extended)
+ * %H%M%S.%L => 083748.000 Local time with decimal fraction, full stop as decimal sign (basic)
+ * %T.%L => 08:37:48.000 Local time with decimal fraction, full stop as decimal sign (extended)
+ * %H%M%S%z => 083748-0600 Local time and the difference from UTC (basic)
+ * %T%:z => 08:37:48-06:00 Local time and the difference from UTC (extended)
+ * %Y%m%dT%H%M%S%z => 20071119T083748-0600 Date and time of day for calendar date (basic)
+ * %FT%T%:z => 2007-11-19T08:37:48-06:00 Date and time of day for calendar date (extended)
+ * %Y%jT%H%M%S%z => 2007323T083748-0600 Date and time of day for ordinal date (basic)
+ * %Y-%jT%T%:z => 2007-323T08:37:48-06:00 Date and time of day for ordinal date (extended)
+ * %GW%V%uT%H%M%S%z => 2007W471T083748-0600 Date and time of day for week date (basic)
+ * %G-W%V-%uT%T%:z => 2007-W47-1T08:37:48-06:00 Date and time of day for week date (extended)
+ * %Y%m%dT%H%M => 20071119T0837 Calendar date and local time (basic)
+ * %FT%R => 2007-11-19T08:37 Calendar date and local time (extended)
+ * %Y%jT%H%MZ => 2007323T0837Z Ordinal date and UTC of day (basic)
+ * %Y-%jT%RZ => 2007-323T08:37Z Ordinal date and UTC of day (extended)
+ * %GW%V%uT%H%M%z => 2007W471T0837-0600 Week date and local time and difference from UTC (basic)
+ * %G-W%V-%uT%R%:z => 2007-W47-1T08:37-06:00 Week date and local time and difference from UTC (extended)
+ *
+ * See also strftime(3) and strptime.
+ */
+static VALUE
+d_lite_strftime(int argc, VALUE *argv, VALUE self)
+{
+ return date_strftime_internal(argc, argv, self,
+ "%Y-%m-%d", set_tmx);
+}
+
+static VALUE
+strftimev(const char *fmt, VALUE self,
+ void (*func)(VALUE, struct tmx *))
+{
+ char buffer[SMALLBUF], *buf = buffer;
+ struct tmx tmx;
+ long len;
+ VALUE str;
+
+ (*func)(self, &tmx);
+ len = date_strftime_alloc(&buf, fmt, &tmx);
+ str = rb_usascii_str_new(buf, len);
+ if (buf != buffer) xfree(buf);
+ return str;
+}
+
+/*
+ * call-seq:
+ * d.asctime -> string
+ * d.ctime -> string
+ *
+ * Returns a string in asctime(3) format (but without "\n\0" at the
+ * end). This method is equivalent to strftime('%c').
+ *
+ * See also asctime(3) or ctime(3).
+ */
+static VALUE
+d_lite_asctime(VALUE self)
+{
+ return strftimev("%a %b %e %H:%M:%S %Y", self, set_tmx);
+}
+
+/*
+ * call-seq:
+ * d.iso8601 -> string
+ * d.xmlschema -> string
+ *
+ * This method is equivalent to strftime('%F').
+ */
+static VALUE
+d_lite_iso8601(VALUE self)
+{
+ return strftimev("%Y-%m-%d", self, set_tmx);
+}
+
+/*
+ * call-seq:
+ * d.rfc3339 -> string
+ *
+ * This method is equivalent to strftime('%FT%T%:z').
+ */
+static VALUE
+d_lite_rfc3339(VALUE self)
+{
+ return strftimev("%Y-%m-%dT%H:%M:%S%:z", self, set_tmx);
+}
+
+/*
+ * call-seq:
+ * d.rfc2822 -> string
+ * d.rfc822 -> string
+ *
+ * This method is equivalent to strftime('%a, %-d %b %Y %T %z').
+ */
+static VALUE
+d_lite_rfc2822(VALUE self)
+{
+ return strftimev("%a, %-d %b %Y %T %z", self, set_tmx);
+}
+
+/*
+ * call-seq:
+ * d.httpdate -> string
+ *
+ * This method is equivalent to strftime('%a, %d %b %Y %T GMT').
+ * See also RFC 2616.
+ */
+static VALUE
+d_lite_httpdate(VALUE self)
+{
+ volatile VALUE dup = dup_obj_with_new_offset(self, 0);
+ return strftimev("%a, %d %b %Y %T GMT", dup, set_tmx);
+}
+
+static VALUE
+jisx0301_date(VALUE jd, VALUE y)
+{
+ VALUE a[2];
+
+ if (f_lt_p(jd, INT2FIX(2405160)))
+ return rb_usascii_str_new2("%Y-%m-%d");
+ if (f_lt_p(jd, INT2FIX(2419614))) {
+ a[0] = rb_usascii_str_new2("M%02d" ".%%m.%%d");
+ a[1] = f_sub(y, INT2FIX(1867));
+ }
+ else if (f_lt_p(jd, INT2FIX(2424875))) {
+ a[0] = rb_usascii_str_new2("T%02d" ".%%m.%%d");
+ a[1] = f_sub(y, INT2FIX(1911));
+ }
+ else if (f_lt_p(jd, INT2FIX(2447535))) {
+ a[0] = rb_usascii_str_new2("S%02d" ".%%m.%%d");
+ a[1] = f_sub(y, INT2FIX(1925));
+ }
+ else {
+ a[0] = rb_usascii_str_new2("H%02d" ".%%m.%%d");
+ a[1] = f_sub(y, INT2FIX(1988));
+ }
+ return rb_f_sprintf(2, a);
+}
+
+/*
+ * call-seq:
+ * d.jisx0301 -> string
+ *
+ * Returns a string in a JIS X 0301 format.
+ *
+ * For example:
+ *
+ * Date.new(2001,2,3).jisx0301 #=> "H13.02.03"
+ */
+static VALUE
+d_lite_jisx0301(VALUE self)
+{
+ VALUE s;
+
+ get_d1(self);
+ s = jisx0301_date(m_real_local_jd(dat),
+ m_real_year(dat));
+ return strftimev(RSTRING_PTR(s), self, set_tmx);
+}
+
+#ifndef NDEBUG
+static VALUE
+d_lite_marshal_dump_old(VALUE self)
+{
+ VALUE a;
+
+ get_d1(self);
+
+ a = rb_ary_new3(3,
+ m_ajd(dat),
+ m_of_in_day(dat),
+ DBL2NUM(m_sg(dat)));
+
+ if (FL_TEST(self, FL_EXIVAR)) {
+ rb_copy_generic_ivar(a, self);
+ FL_SET(a, FL_EXIVAR);
+ }
+
+ return a;
+}
+#endif
+
+/* :nodoc: */
+static VALUE
+d_lite_marshal_dump(VALUE self)
+{
+ VALUE a;
+
+ get_d1(self);
+
+ a = rb_ary_new3(6,
+ m_nth(dat),
+ INT2FIX(m_jd(dat)),
+ INT2FIX(m_df(dat)),
+ m_sf(dat),
+ INT2FIX(m_of(dat)),
+ DBL2NUM(m_sg(dat)));
+
+ if (FL_TEST(self, FL_EXIVAR)) {
+ rb_copy_generic_ivar(a, self);
+ FL_SET(a, FL_EXIVAR);
+ }
+
+ return a;
+}
+
+/* :nodoc: */
+static VALUE
+d_lite_marshal_load(VALUE self, VALUE a)
+{
+ get_d1(self);
+
+ if (TYPE(a) != T_ARRAY)
+ rb_raise(rb_eTypeError, "expected an array");
+
+ switch (RARRAY_LEN(a)) {
+ case 3:
+ {
+ VALUE ajd, of, sg, nth, sf;
+ int jd, df, rof;
+ double rsg;
+
+ ajd = RARRAY_PTR(a)[0];
+ of = RARRAY_PTR(a)[1];
+ sg = RARRAY_PTR(a)[2];
+
+ old_to_new(ajd, of, sg,
+ &nth, &jd, &df, &sf, &rof, &rsg);
+
+ if (!df && f_zero_p(sf) && !rof) {
+ set_to_simple(&dat->s, nth, jd, rsg, 0, 0, 0, HAVE_JD);
+ } else {
+ if (!complex_dat_p(dat))
+ rb_raise(rb_eArgError,
+ "cannot load complex into simple");
+
+ set_to_complex(&dat->c, nth, jd, df, sf, rof, rsg,
+ 0, 0, 0, 0, 0, 0,
+ HAVE_JD | HAVE_DF | COMPLEX_DAT);
+ }
+ }
+ break;
+ case 6:
+ {
+ VALUE nth, sf;
+ int jd, df, of;
+ double sg;
+
+ nth = RARRAY_PTR(a)[0];
+ jd = NUM2INT(RARRAY_PTR(a)[1]);
+ df = NUM2INT(RARRAY_PTR(a)[2]);
+ sf = RARRAY_PTR(a)[3];
+ of = NUM2INT(RARRAY_PTR(a)[4]);
+ sg = NUM2DBL(RARRAY_PTR(a)[5]);
+ if (!df && f_zero_p(sf) && !of) {
+ set_to_simple(&dat->s, nth, jd, sg, 0, 0, 0, HAVE_JD);
+ } else {
+ if (!complex_dat_p(dat))
+ rb_raise(rb_eArgError,
+ "cannot load complex into simple");
+
+ set_to_complex(&dat->c, nth, jd, df, sf, of, sg,
+ 0, 0, 0, 0, 0, 0,
+ HAVE_JD | HAVE_DF | COMPLEX_DAT);
+ }
+ }
+ break;
+ default:
+ rb_raise(rb_eTypeError, "invalid size");
+ break;
+ }
+
+ if (FL_TEST(a, FL_EXIVAR)) {
+ rb_copy_generic_ivar(self, a);
+ FL_SET(self, FL_EXIVAR);
+ }
+
+ return self;
+}
+
+
+/* datetime */
+
+/*
+ * call-seq:
+ * DateTime.jd([jd=0[, hour=0[, minute=0[, second=0[, offset=0[, start=Date::ITALY]]]]]]) -> datetime
+ *
+ * Creates a datetime object denoting the given chronological Julian
+ * day number.
+ *
+ * For example:
+ *
+ * DateTime.jd(2451944) #=> #<DateTime: 2001-02-03T00:00:00+00:00 ...>
+ * DateTime.jd(2451945) #=> #<DateTime: 2001-02-04T00:00:00+00:00 ...>
+ * DateTime.jd(Rational('0.5'))
+ * #=> #<DateTime: -4712-01-01T12:00:00+00:00 ...>
+ */
+static VALUE
+datetime_s_jd(int argc, VALUE *argv, VALUE klass)
+{
+ VALUE vjd, vh, vmin, vs, vof, vsg, jd, fr, fr2, ret;
+ int h, min, s, rof;
+ double sg;
+
+ rb_scan_args(argc, argv, "06", &vjd, &vh, &vmin, &vs, &vof, &vsg);
+
+ jd = INT2FIX(0);
+
+ h = min = s = 0;
+ fr2 = INT2FIX(0);
+ rof = 0;
+ sg = DEFAULT_SG;
+
+ switch (argc) {
+ case 6:
+ val2sg(vsg, sg);
+ case 5:
+ val2off(vof, rof);
+ case 4:
+ num2int_with_frac(s, positive_inf);
+ case 3:
+ num2int_with_frac(min, 3);
+ case 2:
+ num2int_with_frac(h, 2);
+ case 1:
+ num2num_with_frac(jd, 1);
+ }
+
+ {
+ VALUE nth;
+ int rh, rmin, rs, rjd, rjd2;
+
+ if (!c_valid_time_p(h, min, s, &rh, &rmin, &rs))
+ rb_raise(rb_eArgError, "invalid date");
+ canon24oc();
+
+ decode_jd(jd, &nth, &rjd);
+ rjd2 = jd_local_to_utc(rjd,
+ time_to_df(rh, rmin, rs),
+ rof);
+
+ ret = d_complex_new_internal(klass,
+ nth, rjd2,
+ 0, INT2FIX(0),
+ rof, sg,
+ 0, 0, 0,
+ rh, rmin, rs,
+ HAVE_JD | HAVE_TIME);
+ }
+ add_frac();
+ return ret;
+}
+
+/*
+ * call-seq:
+ * DateTime.ordinal([year=-4712[, yday=1[, hour=0[, minute=0[, second=0[, offset=0[, start=Date::ITALY]]]]]]]) -> datetime
+ *
+ * Creates a date-time object denoting the given ordinal date.
+ *
+ * For example:
+ *
+ * DateTime.ordinal(2001,34) #=> #<DateTime: 2001-02-03T00:00:00+00:00 ...>
+ * DateTime.ordinal(2001,34,4,5,6,'+7')
+ * #=> #<DateTime: 2001-02-03T04:05:06+07:00 ...>
+ * DateTime.ordinal(2001,-332,-20,-55,-54,'+7')
+ * #=> #<DateTime: 2001-02-03T04:05:06+07:00 ...>
+ */
+static VALUE
+datetime_s_ordinal(int argc, VALUE *argv, VALUE klass)
+{
+ VALUE vy, vd, vh, vmin, vs, vof, vsg, y, fr, fr2, ret;
+ int d, h, min, s, rof;
+ double sg;
+
+ rb_scan_args(argc, argv, "07", &vy, &vd, &vh, &vmin, &vs, &vof, &vsg);
+
+ y = INT2FIX(-4712);
+ d = 1;
+
+ h = min = s = 0;
+ fr2 = INT2FIX(0);
+ rof = 0;
+ sg = DEFAULT_SG;
+
+ switch (argc) {
+ case 7:
+ val2sg(vsg, sg);
+ case 6:
+ val2off(vof, rof);
+ case 5:
+ num2int_with_frac(s, positive_inf);
+ case 4:
+ num2int_with_frac(min, 4);
+ case 3:
+ num2int_with_frac(h, 3);
+ case 2:
+ num2int_with_frac(d, 2);
+ case 1:
+ y = vy;
+ }
+
+ {
+ VALUE nth;
+ int ry, rd, rh, rmin, rs, rjd, rjd2, ns;
+
+ if (!valid_ordinal_p(y, d, sg,
+ &nth, &ry,
+ &rd, &rjd,
+ &ns))
+ rb_raise(rb_eArgError, "invalid date");
+ if (!c_valid_time_p(h, min, s, &rh, &rmin, &rs))
+ rb_raise(rb_eArgError, "invalid date");
+ canon24oc();
+
+ rjd2 = jd_local_to_utc(rjd,
+ time_to_df(rh, rmin, rs),
+ rof);
+
+ ret = d_complex_new_internal(klass,
+ nth, rjd2,
+ 0, INT2FIX(0),
+ rof, sg,
+ 0, 0, 0,
+ rh, rmin, rs,
+ HAVE_JD | HAVE_TIME);
+ }
+ add_frac();
+ return ret;
+}
+
+/*
+ * call-seq:
+ * DateTime.civil([year=-4712[, month=1[, mday=1[, hour=0[, minute=0[, second=0[, offset=0[, start=Date::ITALY]]]]]]]]) -> datetime
+ * DateTime.new([year=-4712[, month=1[, mday=1[, hour=0[, minute=0[, second=0[, offset=0[, start=Date::ITALY]]]]]]]]) -> datetime
+ *
+ * Creates a date-time object denoting the given calendar date.
+ *
+ * For example:
+ *
+ * DateTime.new(2001,2,3) #=> #<DateTime: 2001-02-03T00:00:00+00:00 ...>
+ * DateTime.new(2001,2,3,4,5,6,'+7')
+ * #=> #<DateTime: 2001-02-03T04:05:06+07:00 ...>
+ * DateTime.new(2001,-11,-26,-20,-55,-54,'+7')
+ * #=> #<DateTime: 2001-02-03T04:05:06+07:00 ...>
+ */
+static VALUE
+datetime_s_civil(int argc, VALUE *argv, VALUE klass)
+{
+ VALUE vy, vm, vd, vh, vmin, vs, vof, vsg, y, fr, fr2, ret;
+ int m, d, h, min, s, rof;
+ double sg;
+
+ rb_scan_args(argc, argv, "08", &vy, &vm, &vd, &vh, &vmin, &vs, &vof, &vsg);
+
+ y = INT2FIX(-4712);
+ m = 1;
+ d = 1;
+
+ h = min = s = 0;
+ fr2 = INT2FIX(0);
+ rof = 0;
+ sg = DEFAULT_SG;
+
+ switch (argc) {
+ case 8:
+ val2sg(vsg, sg);
+ case 7:
+ val2off(vof, rof);
+ case 6:
+ num2int_with_frac(s, positive_inf);
+ case 5:
+ num2int_with_frac(min, 5);
+ case 4:
+ num2int_with_frac(h, 4);
+ case 3:
+ num2int_with_frac(d, 3);
+ case 2:
+ m = NUM2INT(vm);
+ case 1:
+ y = vy;
+ }
+
+ if (guess_style(y, sg) < 0) {
+ VALUE nth;
+ int ry, rm, rd, rh, rmin, rs;
+
+ if (!valid_gregorian_p(y, m, d,
+ &nth, &ry,
+ &rm, &rd))
+ rb_raise(rb_eArgError, "invalid date");
+ if (!c_valid_time_p(h, min, s, &rh, &rmin, &rs))
+ rb_raise(rb_eArgError, "invalid date");
+ canon24oc();
+
+ ret = d_complex_new_internal(klass,
+ nth, 0,
+ 0, INT2FIX(0),
+ rof, sg,
+ ry, rm, rd,
+ rh, rmin, rs,
+ HAVE_CIVIL | HAVE_TIME);
+ }
+ else {
+ VALUE nth;
+ int ry, rm, rd, rh, rmin, rs, rjd, rjd2, ns;
+
+ if (!valid_civil_p(y, m, d, sg,
+ &nth, &ry,
+ &rm, &rd, &rjd,
+ &ns))
+ rb_raise(rb_eArgError, "invalid date");
+ if (!c_valid_time_p(h, min, s, &rh, &rmin, &rs))
+ rb_raise(rb_eArgError, "invalid date");
+ canon24oc();
+
+ rjd2 = jd_local_to_utc(rjd,
+ time_to_df(rh, rmin, rs),
+ rof);
+
+ ret = d_complex_new_internal(klass,
+ nth, rjd2,
+ 0, INT2FIX(0),
+ rof, sg,
+ ry, rm, rd,
+ rh, rmin, rs,
+ HAVE_JD | HAVE_CIVIL | HAVE_TIME);
+ }
+ add_frac();
+ return ret;
+}
+
+/*
+ * call-seq:
+ * DateTime.commercial([cwyear=-4712[, cweek=1[, cwday=1[, hour=0[, minute=0[, second=0[, offset=0[, start=Date::ITALY]]]]]]]]) -> datetime
+ *
+ * Creates a date-time object denoting the given week date.
+ *
+ * For example:
+ *
+ * DateTime.commercial(2001) #=> #<DateTime: 2001-01-01T00:00:00+00:00 ...>
+ * DateTime.commercial(2002) #=> #<DateTime: 2001-12-31T00:00:00+00:00 ...>
+ * DateTime.commercial(2001,5,6,4,5,6,'+7')
+ * #=> #<DateTime: 2001-02-03T04:05:06+07:00 ...>
+ */
+static VALUE
+datetime_s_commercial(int argc, VALUE *argv, VALUE klass)
+{
+ VALUE vy, vw, vd, vh, vmin, vs, vof, vsg, y, fr, fr2, ret;
+ int w, d, h, min, s, rof;
+ double sg;
+
+ rb_scan_args(argc, argv, "08", &vy, &vw, &vd, &vh, &vmin, &vs, &vof, &vsg);
+
+ y = INT2FIX(-4712);
+ w = 1;
+ d = 1;
+
+ h = min = s = 0;
+ fr2 = INT2FIX(0);
+ rof = 0;
+ sg = DEFAULT_SG;
+
+ switch (argc) {
+ case 8:
+ val2sg(vsg, sg);
+ case 7:
+ val2off(vof, rof);
+ case 6:
+ num2int_with_frac(s, positive_inf);
+ case 5:
+ num2int_with_frac(min, 5);
+ case 4:
+ num2int_with_frac(h, 4);
+ case 3:
+ num2int_with_frac(d, 3);
+ case 2:
+ w = NUM2INT(vw);
+ case 1:
+ y = vy;
+ }
+
+ {
+ VALUE nth;
+ int ry, rw, rd, rh, rmin, rs, rjd, rjd2, ns;
+
+ if (!valid_commercial_p(y, w, d, sg,
+ &nth, &ry,
+ &rw, &rd, &rjd,
+ &ns))
+ rb_raise(rb_eArgError, "invalid date");
+ if (!c_valid_time_p(h, min, s, &rh, &rmin, &rs))
+ rb_raise(rb_eArgError, "invalid date");
+ canon24oc();
+
+ rjd2 = jd_local_to_utc(rjd,
+ time_to_df(rh, rmin, rs),
+ rof);
+
+ ret = d_complex_new_internal(klass,
+ nth, rjd2,
+ 0, INT2FIX(0),
+ rof, sg,
+ 0, 0, 0,
+ rh, rmin, rs,
+ HAVE_JD | HAVE_TIME);
+ }
+ add_frac();
+ return ret;
+}
+
+#ifndef NDEBUG
+static VALUE
+datetime_s_weeknum(int argc, VALUE *argv, VALUE klass)
+{
+ VALUE vy, vw, vd, vf, vh, vmin, vs, vof, vsg, y, fr, fr2, ret;
+ int w, d, f, h, min, s, rof;
+ double sg;
+
+ rb_scan_args(argc, argv, "09", &vy, &vw, &vd, &vf,
+ &vh, &vmin, &vs, &vof, &vsg);
+
+ y = INT2FIX(-4712);
+ w = 0;
+ d = 1;
+ f = 0;
+
+ h = min = s = 0;
+ fr2 = INT2FIX(0);
+ rof = 0;
+ sg = DEFAULT_SG;
+
+ switch (argc) {
+ case 9:
+ val2sg(vsg, sg);
+ case 8:
+ val2off(vof, rof);
+ case 7:
+ num2int_with_frac(s, positive_inf);
+ case 6:
+ num2int_with_frac(min, 6);
+ case 5:
+ num2int_with_frac(h, 5);
+ case 4:
+ f = NUM2INT(vf);
+ case 3:
+ num2int_with_frac(d, 4);
+ case 2:
+ w = NUM2INT(vw);
+ case 1:
+ y = vy;
+ }
+
+ {
+ VALUE nth;
+ int ry, rw, rd, rh, rmin, rs, rjd, rjd2, ns;
+
+ if (!valid_weeknum_p(y, w, d, f, sg,
+ &nth, &ry,
+ &rw, &rd, &rjd,
+ &ns))
+ rb_raise(rb_eArgError, "invalid date");
+ if (!c_valid_time_p(h, min, s, &rh, &rmin, &rs))
+ rb_raise(rb_eArgError, "invalid date");
+ canon24oc();
+
+ rjd2 = jd_local_to_utc(rjd,
+ time_to_df(rh, rmin, rs),
+ rof);
+ ret = d_complex_new_internal(klass,
+ nth, rjd2,
+ 0, INT2FIX(0),
+ rof, sg,
+ 0, 0, 0,
+ rh, rmin, rs,
+ HAVE_JD | HAVE_TIME);
+ }
+ add_frac();
+ return ret;
+}
+
+static VALUE
+datetime_s_nth_kday(int argc, VALUE *argv, VALUE klass)
+{
+ VALUE vy, vm, vn, vk, vh, vmin, vs, vof, vsg, y, fr, fr2, ret;
+ int m, n, k, h, min, s, rof;
+ double sg;
+
+ rb_scan_args(argc, argv, "09", &vy, &vm, &vn, &vk,
+ &vh, &vmin, &vs, &vof, &vsg);
+
+ y = INT2FIX(-4712);
+ m = 1;
+ n = 1;
+ k = 1;
+
+ h = min = s = 0;
+ fr2 = INT2FIX(0);
+ rof = 0;
+ sg = DEFAULT_SG;
+
+ switch (argc) {
+ case 9:
+ val2sg(vsg, sg);
+ case 8:
+ val2off(vof, rof);
+ case 7:
+ num2int_with_frac(s, positive_inf);
+ case 6:
+ num2int_with_frac(min, 6);
+ case 5:
+ num2int_with_frac(h, 5);
+ case 4:
+ num2int_with_frac(k, 4);
+ case 3:
+ n = NUM2INT(vn);
+ case 2:
+ m = NUM2INT(vm);
+ case 1:
+ y = vy;
+ }
+
+ {
+ VALUE nth;
+ int ry, rm, rn, rk, rh, rmin, rs, rjd, rjd2, ns;
+
+ if (!valid_nth_kday_p(y, m, n, k, sg,
+ &nth, &ry,
+ &rm, &rn, &rk, &rjd,
+ &ns))
+ rb_raise(rb_eArgError, "invalid date");
+ if (!c_valid_time_p(h, min, s, &rh, &rmin, &rs))
+ rb_raise(rb_eArgError, "invalid date");
+ canon24oc();
+
+ rjd2 = jd_local_to_utc(rjd,
+ time_to_df(rh, rmin, rs),
+ rof);
+ ret = d_complex_new_internal(klass,
+ nth, rjd2,
+ 0, INT2FIX(0),
+ rof, sg,
+ 0, 0, 0,
+ rh, rmin, rs,
+ HAVE_JD | HAVE_TIME);
+ }
+ add_frac();
+ return ret;
+}
+#endif
+
+/*
+ * call-seq:
+ * DateTime.now([start=Date::ITALY]) -> datetime
+ *
+ * Creates a date-time object denoting the present time.
+ *
+ * For example:
+ *
+ * DateTime.now #=> #<DateTime: 2011-06-11T21:20:44+09:00 ...>
+ */
+static VALUE
+datetime_s_now(int argc, VALUE *argv, VALUE klass)
+{
+ VALUE vsg, nth, ret;
+ double sg;
+#ifdef HAVE_CLOCK_GETTIME
+ struct timespec ts;
+#else
+ struct timeval tv;
+#endif
+ time_t sec;
+ struct tm tm;
+ long sf, of;
+ int y, ry, m, d, h, min, s;
+
+ rb_scan_args(argc, argv, "01", &vsg);
+
+ if (argc < 1)
+ sg = DEFAULT_SG;
+ else
+ sg = NUM2DBL(vsg);
+
+#ifdef HAVE_CLOCK_GETTIME
+ if (clock_gettime(CLOCK_REALTIME, &ts) == -1)
+ rb_sys_fail("clock_gettime");
+ sec = ts.tv_sec;
+#else
+ if (gettimeofday(&tv, NULL) == -1)
+ rb_sys_fail("gettimeofday");
+ sec = tv.tv_sec;
+#endif
+ tzset();
+ if (!localtime_r(&sec, &tm))
+ rb_sys_fail("localtime");
+
+ y = tm.tm_year + 1900;
+ m = tm.tm_mon + 1;
+ d = tm.tm_mday;
+ h = tm.tm_hour;
+ min = tm.tm_min;
+ s = tm.tm_sec;
+ if (s == 60)
+ s = 59;
+#ifdef HAVE_STRUCT_TM_TM_GMTOFF
+ of = tm.tm_gmtoff;
+#elif defined(HAVE_VAR_TIMEZONE)
+#ifdef HAVE_VAR_ALTZONE
+ of = (long)((tm.tm_isdst > 0) ? altzone : timezone);
+#else
+ of = (long)-timezone;
+ if (tm.tm_isdst) {
+ time_t sec2;
+
+ tm.tm_isdst = 0;
+ sec2 = mktime(&tm);
+ of += (long)difftime(sec2, sec);
+ }
+#endif
+#elif defined(HAVE_TIMEGM)
+ {
+ time_t sec2;
+
+ sec2 = timegm(&tm);
+ of = (long)difftime(sec2, sec);
+ }
+#else
+ {
+ struct tm tm2;
+ time_t sec2;
+
+ if (!gmtime_r(&sec, &tm2))
+ rb_sys_fail("gmtime");
+ tm2.tm_isdst = tm.tm_isdst;
+ sec2 = mktime(&tm2);
+ of = (long)difftime(sec, sec2);
+ }
+#endif
+#ifdef HAVE_CLOCK_GETTIME
+ sf = ts.tv_nsec;
+#else
+ sf = tv.tv_usec * 1000;
+#endif
+
+ if (of < -DAY_IN_SECONDS || of > DAY_IN_SECONDS) {
+ of = 0;
+ rb_warning("invalid offset is ignored");
+ }
+
+ decode_year(INT2FIX(y), -1, &nth, &ry);
+
+ ret = d_complex_new_internal(klass,
+ nth, 0,
+ 0, LONG2NUM(sf),
+ (int)of, GREGORIAN,
+ ry, m, d,
+ h, min, s,
+ HAVE_CIVIL | HAVE_TIME);
+ {
+ get_d1(ret);
+ set_sg(dat, sg);
+ }
+ return ret;
+}
+
+static VALUE
+dt_new_by_frags(VALUE klass, VALUE hash, VALUE sg)
+{
+ VALUE jd, sf, t;
+ int df, of;
+
+ if (!c_valid_start_p(NUM2DBL(sg))) {
+ sg = INT2FIX(DEFAULT_SG);
+ rb_warning("invalid start is ignored");
+ }
+
+ if (NIL_P(hash))
+ rb_raise(rb_eArgError, "invalid date");
+
+ if (NIL_P(ref_hash("jd")) &&
+ NIL_P(ref_hash("yday")) &&
+ !NIL_P(ref_hash("year")) &&
+ !NIL_P(ref_hash("mon")) &&
+ !NIL_P(ref_hash("mday"))) {
+ jd = rt__valid_civil_p(ref_hash("year"),
+ ref_hash("mon"),
+ ref_hash("mday"), sg);
+
+ if (NIL_P(ref_hash("hour")))
+ set_hash("hour", INT2FIX(0));
+ if (NIL_P(ref_hash("min")))
+ set_hash("min", INT2FIX(0));
+ if (NIL_P(ref_hash("sec")))
+ set_hash("sec", INT2FIX(0));
+ else if (f_gt_p(ref_hash("sec"), INT2FIX(59)))
+ set_hash("sec", INT2FIX(59));
+ }
+ else {
+ hash = rt_rewrite_frags(hash);
+ hash = rt_complete_frags(klass, hash);
+ jd = rt__valid_date_frags_p(hash, sg);
+ }
+
+ if (NIL_P(jd))
+ rb_raise(rb_eArgError, "invalid date");
+
+ {
+ int rh, rmin, rs;
+
+ if (!c_valid_time_p(NUM2INT(ref_hash("hour")),
+ NUM2INT(ref_hash("min")),
+ NUM2INT(ref_hash("sec")),
+ &rh, &rmin, &rs))
+ rb_raise(rb_eArgError, "invalid date");
+
+ df = time_to_df(rh, rmin, rs);
+ }
+
+ t = ref_hash("sec_fraction");
+ if (NIL_P(t))
+ sf = INT2FIX(0);
+ else
+ sf = sec_to_ns(t);
+
+ t = ref_hash("offset");
+ if (NIL_P(t))
+ of = 0;
+ else {
+ of = NUM2INT(t);
+ if (of < -DAY_IN_SECONDS || of > DAY_IN_SECONDS) {
+ of = 0;
+ rb_warning("invalid offset is ignored");
+ }
+ }
+ {
+ VALUE nth;
+ int rjd, rjd2;
+
+ decode_jd(jd, &nth, &rjd);
+ rjd2 = jd_local_to_utc(rjd, df, of);
+ df = df_local_to_utc(df, of);
+
+ return d_complex_new_internal(klass,
+ nth, rjd2,
+ df, sf,
+ of, NUM2DBL(sg),
+ 0, 0, 0,
+ 0, 0, 0,
+ HAVE_JD | HAVE_DF);
+ }
+}
+
+/*
+ * call-seq:
+ * DateTime._strptime(string[, format='%FT%T%z']) -> hash
+ *
+ * Parses the given representation of date and time with the given
+ * template, and returns a hash of parsed elements.
+ *
+ * See also strptime(3) and strftime.
+ */
+static VALUE
+datetime_s__strptime(int argc, VALUE *argv, VALUE klass)
+{
+ return date_s__strptime_internal(argc, argv, klass, "%FT%T%z");
+}
+
+/*
+ * call-seq:
+ * DateTime.strptime([string='-4712-01-01T00:00:00+00:00'[, format='%FT%T%z'[ ,start=ITALY]]]) -> datetime
+ *
+ * Parses the given representation of date and time with the given
+ * template, and creates a date object.
+ *
+ * For example:
+ *
+ * DateTime.strptime('2001-02-03T04:05:06+07:00', '%Y-%m-%dT%H:%M:%S%z')
+ * #=> #<DateTime: 2001-02-03T04:05:06+07:00 ...>
+ * DateTime.strptime('03-02-2001 04:05:06 PM', '%d-%m-%Y %I:%M:%S %p')
+ * #=> #<DateTime: 2001-02-03T16:05:06+00:00 ...>
+ * DateTime.strptime('2001-W05-6T04:05:06+07:00', '%G-W%V-%uT%H:%M:%S%z')
+ * #=> #<DateTime: 2001-02-03T04:05:06+07:00 ...>
+ * DateTime.strptime('2001 04 6 04 05 06 +7', '%Y %U %w %H %M %S %z')
+ * #=> #<DateTime: 2001-02-03T04:05:06+07:00 ...>
+ * DateTime.strptime('2001 05 6 04 05 06 +7', '%Y %W %u %H %M %S %z')
+ * #=> #<DateTime: 2001-02-03T04:05:06+07:00 ...>
+ * DateTime.strptime('-1', '%s')
+ * #=> #<DateTime: 1969-12-31T23:59:59+00:00 ...>
+ * DateTime.strptime('-1000', '%Q')
+ * #=> #<DateTime: 1969-12-31T23:59:59+00:00 ...>
+ * DateTime.strptime('sat3feb014pm+7', '%a%d%b%y%H%p%z')
+ * #=> #<DateTime: 2001-02-03T16:00:00+07:00 ...>
+ *
+ * See also strptime(3) and strftime.
+ */
+static VALUE
+datetime_s_strptime(int argc, VALUE *argv, VALUE klass)
+{
+ VALUE str, fmt, sg;
+
+ rb_scan_args(argc, argv, "03", &str, &fmt, &sg);
+
+ switch (argc) {
+ case 0:
+ str = rb_str_new2("-4712-01-01T00:00:00+00:00");
+ case 1:
+ fmt = rb_str_new2("%FT%T%z");
+ case 2:
+ sg = INT2FIX(DEFAULT_SG);
+ }
+
+ {
+ VALUE argv2[2], hash;
+
+ argv2[0] = str;
+ argv2[1] = fmt;
+ hash = date_s__strptime(2, argv2, klass);
+ return dt_new_by_frags(klass, hash, sg);
+ }
+}
+
+/*
+ * call-seq:
+ * DateTime.parse(string='-4712-01-01T00:00:00+00:00'[, comp=true[, start=ITALY]]) -> datetime
+ *
+ * Parses the given representation of date and time, and creates a
+ * date object.
+ *
+ * If the optional second argument is true and the detected year is in
+ * the range "00" to "99", makes it full.
+ *
+ * For example:
+ *
+ * DateTime.parse('2001-02-03T04:05:06+07:00')
+ * #=> #<DateTime: 2001-02-03T04:05:06+07:00 ...>
+ * DateTime.parse('20010203T040506+0700')
+ * #=> #<DateTime: 2001-02-03T04:05:06+07:00 ...>
+ * DateTime.parse('3rd Feb 2001 04:05:06 PM')
+ * #=> #<DateTime: 2001-02-03T16:05:06+00:00 ...>
+ */
+static VALUE
+datetime_s_parse(int argc, VALUE *argv, VALUE klass)
+{
+ VALUE str, comp, sg;
+
+ rb_scan_args(argc, argv, "03", &str, &comp, &sg);
+
+ switch (argc) {
+ case 0:
+ str = rb_str_new2("-4712-01-01T00:00:00+00:00");
+ case 1:
+ comp = Qtrue;
+ case 2:
+ sg = INT2FIX(DEFAULT_SG);
+ }
+
+ {
+ VALUE argv2[2], hash;
+
+ argv2[0] = str;
+ argv2[1] = comp;
+ hash = date_s__parse(2, argv2, klass);
+ return dt_new_by_frags(klass, hash, sg);
+ }
+}
+
+/*
+ * call-seq:
+ * DateTime.iso8601(string='-4712-01-01T00:00:00+00:00'[, start=ITALY]) -> datetime
+ *
+ * Creates a new Date object by parsing from a string according to
+ * some typical ISO 8601 formats.
+ *
+ * For example:
+ *
+ * DateTime.iso8601('2001-02-03T04:05:06+07:00')
+ * #=> #<DateTime: 2001-02-03T04:05:06+07:00 ...>
+ * DateTime.iso8601('20010203T040506+0700')
+ * #=> #<DateTime: 2001-02-03T04:05:06+07:00 ...>
+ * DateTime.iso8601('2001-W05-6T04:05:06+07:00')
+ * #=> #<DateTime: 2001-02-03T04:05:06+07:00 ...>
+ */
+static VALUE
+datetime_s_iso8601(int argc, VALUE *argv, VALUE klass)
+{
+ VALUE str, sg;
+
+ rb_scan_args(argc, argv, "02", &str, &sg);
+
+ switch (argc) {
+ case 0:
+ str = rb_str_new2("-4712-01-01T00:00:00+00:00");
+ case 1:
+ sg = INT2FIX(DEFAULT_SG);
+ }
+
+ {
+ VALUE hash = date_s__iso8601(klass, str);
+ return dt_new_by_frags(klass, hash, sg);
+ }
+}
+
+/*
+ * call-seq:
+ * DateTime.rfc3339(string='-4712-01-01T00:00:00+00:00'[, start=ITALY]) -> datetime
+ *
+ * Creates a new Date object by parsing from a string according to
+ * some typical RFC 3339 formats.
+ *
+ * For example:
+ *
+ * DateTime.rfc3339('2001-02-03T04:05:06+07:00')
+ * #=> #<DateTime: 2001-02-03T04:05:06+07:00 ...>
+ */
+static VALUE
+datetime_s_rfc3339(int argc, VALUE *argv, VALUE klass)
+{
+ VALUE str, sg;
+
+ rb_scan_args(argc, argv, "02", &str, &sg);
+
+ switch (argc) {
+ case 0:
+ str = rb_str_new2("-4712-01-01T00:00:00+00:00");
+ case 1:
+ sg = INT2FIX(DEFAULT_SG);
+ }
+
+ {
+ VALUE hash = date_s__rfc3339(klass, str);
+ return dt_new_by_frags(klass, hash, sg);
+ }
+}
+
+/*
+ * call-seq:
+ * DateTime.xmlschema(string='-4712-01-01T00:00:00+00:00'[, start=ITALY]) -> datetime
+ *
+ * Creates a new Date object by parsing from a string according to
+ * some typical XML Schema formats.
+ *
+ * For example:
+ *
+ * DateTime.xmlschema('2001-02-03T04:05:06+07:00')
+ * #=> #<DateTime: 2001-02-03T04:05:06+07:00 ...>
+ */
+static VALUE
+datetime_s_xmlschema(int argc, VALUE *argv, VALUE klass)
+{
+ VALUE str, sg;
+
+ rb_scan_args(argc, argv, "02", &str, &sg);
+
+ switch (argc) {
+ case 0:
+ str = rb_str_new2("-4712-01-01T00:00:00+00:00");
+ case 1:
+ sg = INT2FIX(DEFAULT_SG);
+ }
+
+ {
+ VALUE hash = date_s__xmlschema(klass, str);
+ return dt_new_by_frags(klass, hash, sg);
+ }
+}
+
+/*
+ * call-seq:
+ * DateTime.rfc2822(string='Mon, 1 Jan -4712 00:00:00 +0000'[, start=ITALY]) -> datetime
+ * DateTime.rfc822(string='Mon, 1 Jan -4712 00:00:00 +0000'[, start=ITALY]) -> datetime
+ *
+ * Creates a new Date object by parsing from a string according to
+ * some typical RFC 2822 formats.
+ *
+ * For example:
+ *
+ * DateTime.rfc2822('Sat, 3 Feb 2001 04:05:06 +0700')
+ * #=> #<DateTime: 2001-02-03T04:05:06+07:00 ...>
+ */
+static VALUE
+datetime_s_rfc2822(int argc, VALUE *argv, VALUE klass)
+{
+ VALUE str, sg;
+
+ rb_scan_args(argc, argv, "02", &str, &sg);
+
+ switch (argc) {
+ case 0:
+ str = rb_str_new2("Mon, 1 Jan -4712 00:00:00 +0000");
+ case 1:
+ sg = INT2FIX(DEFAULT_SG);
+ }
+
+ {
+ VALUE hash = date_s__rfc2822(klass, str);
+ return dt_new_by_frags(klass, hash, sg);
+ }
+}
+
+/*
+ * call-seq:
+ * DateTime.httpdate(string='Mon, 01 Jan -4712 00:00:00 GMT'[, start=ITALY]) -> datetime
+ *
+ * Creates a new Date object by parsing from a string according to
+ * some RFC 2616 format.
+ *
+ * For example:
+ *
+ * DateTime.httpdate('Sat, 03 Feb 2001 04:05:06 GMT')
+ * #=> #<DateTime: 2001-02-03T04:05:06+00:00 ...>
+ */
+static VALUE
+datetime_s_httpdate(int argc, VALUE *argv, VALUE klass)
+{
+ VALUE str, sg;
+
+ rb_scan_args(argc, argv, "02", &str, &sg);
+
+ switch (argc) {
+ case 0:
+ str = rb_str_new2("Mon, 01 Jan -4712 00:00:00 GMT");
+ case 1:
+ sg = INT2FIX(DEFAULT_SG);
+ }
+
+ {
+ VALUE hash = date_s__httpdate(klass, str);
+ return dt_new_by_frags(klass, hash, sg);
+ }
+}
+
+/*
+ * call-seq:
+ * DateTime.jisx0301(string='-4712-01-01T00:00:00+00:00'[, start=ITALY]) -> datetime
+ *
+ * Creates a new Date object by parsing from a string according to
+ * some typical JIS X 0301 formats.
+ *
+ * For example:
+ *
+ * DateTime.jisx0301('H13.02.03T04:05:06+07:00')
+ * #=> #<DateTime: 2001-02-03T04:05:06+07:00 ...>
+ */
+static VALUE
+datetime_s_jisx0301(int argc, VALUE *argv, VALUE klass)
+{
+ VALUE str, sg;
+
+ rb_scan_args(argc, argv, "02", &str, &sg);
+
+ switch (argc) {
+ case 0:
+ str = rb_str_new2("-4712-01-01T00:00:00+00:00");
+ case 1:
+ sg = INT2FIX(DEFAULT_SG);
+ }
+
+ {
+ VALUE hash = date_s__jisx0301(klass, str);
+ return dt_new_by_frags(klass, hash, sg);
+ }
+}
+
+/*
+ * call-seq:
+ * dt.to_s -> string
+ *
+ * Returns a string in an ISO 8601 format (This method doesn't use the
+ * expanded representations).
+ *
+ * For example:
+ *
+ * DateTime.new(2001,2,3,4,5,6,'-7').to_s
+ * #=> "2001-02-03T04:05:06-07:00"
+ */
+static VALUE
+dt_lite_to_s(VALUE self)
+{
+ return strftimev("%Y-%m-%dT%H:%M:%S%:z", self, set_tmx);
+}
+
+/*
+ * call-seq:
+ * dt.strftime([format='%FT%T%:z']) -> string
+ *
+ * Formats date according to the directives in the given format
+ * string.
+ * The directives begins with a percent (%) character.
+ * Any text not listed as a directive will be passed through to the
+ * output string.
+ *
+ * The directive consists of a percent (%) character,
+ * zero or more flags, optional minimum field width,
+ * optional modifier and a conversion specifier
+ * as follows.
+ *
+ * %<flags><width><modifier><conversion>
+ *
+ * Flags:
+ * - don't pad a numerical output.
+ * _ use spaces for padding.
+ * 0 use zeros for padding.
+ * ^ upcase the result string.
+ * # change case.
+ * : use colons for %z.
+ *
+ * The minimum field width specifies the minimum width.
+ *
+ * The modifier is "E" and "O".
+ * They are ignored.
+ *
+ * Format directives:
+ *
+ * Date (Year, Month, Day):
+ * %Y - Year with century (can be negative, 4 digits at least)
+ * -0001, 0000, 1995, 2009, 14292, etc.
+ * %C - year / 100 (round down. 20 in 2009)
+ * %y - year % 100 (00..99)
+ *
+ * %m - Month of the year, zero-padded (01..12)
+ * %_m blank-padded ( 1..12)
+ * %-m no-padded (1..12)
+ * %B - The full month name (``January'')
+ * %^B uppercased (``JANUARY'')
+ * %b - The abbreviated month name (``Jan'')
+ * %^b uppercased (``JAN'')
+ * %h - Equivalent to %b
+ *
+ * %d - Day of the month, zero-padded (01..31)
+ * %-d no-padded (1..31)
+ * %e - Day of the month, blank-padded ( 1..31)
+ *
+ * %j - Day of the year (001..366)
+ *
+ * Time (Hour, Minute, Second, Subsecond):
+ * %H - Hour of the day, 24-hour clock, zero-padded (00..23)
+ * %k - Hour of the day, 24-hour clock, blank-padded ( 0..23)
+ * %I - Hour of the day, 12-hour clock, zero-padded (01..12)
+ * %l - Hour of the day, 12-hour clock, blank-padded ( 1..12)
+ * %P - Meridian indicator, lowercase (``am'' or ``pm'')
+ * %p - Meridian indicator, uppercase (``AM'' or ``PM'')
+ *
+ * %M - Minute of the hour (00..59)
+ *
+ * %S - Second of the minute (00..59)
+ *
+ * %L - Millisecond of the second (000..999)
+ * %N - Fractional seconds digits, default is 9 digits (nanosecond)
+ * %3N millisecond (3 digits)
+ * %6N microsecond (6 digits)
+ * %9N nanosecond (9 digits)
+ * %12N picosecond (12 digits)
+ *
+ * Time zone:
+ * %z - Time zone as hour and minute offset from UTC (e.g. +0900)
+ * %:z - hour and minute offset from UTC with a colon (e.g. +09:00)
+ * %::z - hour, minute and second offset from UTC (e.g. +09:00:00)
+ * %:::z - hour, minute and second offset from UTC
+ * (e.g. +09, +09:30, +09:30:30)
+ * %Z - Time zone abbreviation name
+ *
+ * Weekday:
+ * %A - The full weekday name (``Sunday'')
+ * %^A uppercased (``SUNDAY'')
+ * %a - The abbreviated name (``Sun'')
+ * %^a uppercased (``SUN'')
+ * %u - Day of the week (Monday is 1, 1..7)
+ * %w - Day of the week (Sunday is 0, 0..6)
+ *
+ * ISO 8601 week-based year and week number:
+ * The week 1 of YYYY starts with a Monday and includes YYYY-01-04.
+ * The days in the year before the first week are in the last week of
+ * the previous year.
+ * %G - The week-based year
+ * %g - The last 2 digits of the week-based year (00..99)
+ * %V - Week number of the week-based year (01..53)
+ *
+ * Week number:
+ * The week 1 of YYYY starts with a Sunday or Monday (according to %U
+ * or %W). The days in the year before the first week are in week 0.
+ * %U - Week number of the year. The week starts with Sunday. (00..53)
+ * %W - Week number of the year. The week starts with Monday. (00..53)
+ *
+ * Seconds since the Unix Epoch:
+ * %s - Number of seconds since 1970-01-01 00:00:00 UTC.
+ * %Q - Number of microseconds since 1970-01-01 00:00:00 UTC.
+ *
+ * Literal string:
+ * %n - Newline character (\n)
+ * %t - Tab character (\t)
+ * %% - Literal ``%'' character
+ *
+ * Combination:
+ * %c - date and time (%a %b %e %T %Y)
+ * %D - Date (%m/%d/%y)
+ * %F - The ISO 8601 date format (%Y-%m-%d)
+ * %v - VMS date (%e-%b-%Y)
+ * %x - Same as %D
+ * %X - Same as %T
+ * %r - 12-hour time (%I:%M:%S %p)
+ * %R - 24-hour time (%H:%M)
+ * %T - 24-hour time (%H:%M:%S)
+ * %+ - date(1) (%a %b %e %H:%M:%S %Z %Y)
+ *
+ * This method is similar to strftime() function defined in ISO C and POSIX.
+ * Several directives (%a, %A, %b, %B, %c, %p, %r, %x, %X, %E*, %O* and %Z)
+ * are locale dependent in the function.
+ * However this method is locale independent.
+ * So, the result may differ even if a same format string is used in other
+ * systems such as C.
+ * It is good practice to avoid %x and %X because there are corresponding
+ * locale independent representations, %D and %T.
+ *
+ * Examples:
+ *
+ * d = DateTime.new(2007,11,19,8,37,48,"-06:00")
+ * #=> #<DateTime: 2007-11-19T08:37:48-0600 ...>
+ * d.strftime("Printed on %m/%d/%Y") #=> "Printed on 11/19/2007"
+ * d.strftime("at %I:%M%p") #=> "at 08:37AM"
+ *
+ * Various ISO 8601 formats:
+ * %Y%m%d => 20071119 Calendar date (basic)
+ * %F => 2007-11-19 Calendar date (extended)
+ * %Y-%m => 2007-11 Calendar date, reduced accuracy, specific month
+ * %Y => 2007 Calendar date, reduced accuracy, specific year
+ * %C => 20 Calendar date, reduced accuracy, specific century
+ * %Y%j => 2007323 Ordinal date (basic)
+ * %Y-%j => 2007-323 Ordinal date (extended)
+ * %GW%V%u => 2007W471 Week date (basic)
+ * %G-W%V-%u => 2007-W47-1 Week date (extended)
+ * %GW%V => 2007W47 Week date, reduced accuracy, specific week (basic)
+ * %G-W%V => 2007-W47 Week date, reduced accuracy, specific week (extended)
+ * %H%M%S => 083748 Local time (basic)
+ * %T => 08:37:48 Local time (extended)
+ * %H%M => 0837 Local time, reduced accuracy, specific minute (basic)
+ * %H:%M => 08:37 Local time, reduced accuracy, specific minute (extended)
+ * %H => 08 Local time, reduced accuracy, specific hour
+ * %H%M%S,%L => 083748,000 Local time with decimal fraction, comma as decimal sign (basic)
+ * %T,%L => 08:37:48,000 Local time with decimal fraction, comma as decimal sign (extended)
+ * %H%M%S.%L => 083748.000 Local time with decimal fraction, full stop as decimal sign (basic)
+ * %T.%L => 08:37:48.000 Local time with decimal fraction, full stop as decimal sign (extended)
+ * %H%M%S%z => 083748-0600 Local time and the difference from UTC (basic)
+ * %T%:z => 08:37:48-06:00 Local time and the difference from UTC (extended)
+ * %Y%m%dT%H%M%S%z => 20071119T083748-0600 Date and time of day for calendar date (basic)
+ * %FT%T%:z => 2007-11-19T08:37:48-06:00 Date and time of day for calendar date (extended)
+ * %Y%jT%H%M%S%z => 2007323T083748-0600 Date and time of day for ordinal date (basic)
+ * %Y-%jT%T%:z => 2007-323T08:37:48-06:00 Date and time of day for ordinal date (extended)
+ * %GW%V%uT%H%M%S%z => 2007W471T083748-0600 Date and time of day for week date (basic)
+ * %G-W%V-%uT%T%:z => 2007-W47-1T08:37:48-06:00 Date and time of day for week date (extended)
+ * %Y%m%dT%H%M => 20071119T0837 Calendar date and local time (basic)
+ * %FT%R => 2007-11-19T08:37 Calendar date and local time (extended)
+ * %Y%jT%H%MZ => 2007323T0837Z Ordinal date and UTC of day (basic)
+ * %Y-%jT%RZ => 2007-323T08:37Z Ordinal date and UTC of day (extended)
+ * %GW%V%uT%H%M%z => 2007W471T0837-0600 Week date and local time and difference from UTC (basic)
+ * %G-W%V-%uT%R%:z => 2007-W47-1T08:37-06:00 Week date and local time and difference from UTC (extended)
+ *
+ * See also strftime(3) and strptime.
+ */
+static VALUE
+dt_lite_strftime(int argc, VALUE *argv, VALUE self)
+{
+ return date_strftime_internal(argc, argv, self,
+ "%Y-%m-%dT%H:%M:%S%:z", set_tmx);
+}
+
+static VALUE
+iso8601_timediv(VALUE self, VALUE n)
+{
+ VALUE fmt;
+
+ fmt = rb_usascii_str_new2("T%H:%M:%S");
+ if (f_gt_p(n, INT2FIX(0))) {
+ VALUE argv[3];
+
+ get_d1(self);
+
+ argv[0] = rb_usascii_str_new2(".%0*d");
+ argv[1] = n;
+ argv[2] = f_round(f_quo(m_sf_in_sec(dat),
+ f_quo(INT2FIX(1),
+ f_expt(INT2FIX(10), n))));
+ rb_str_append(fmt, rb_f_sprintf(3, argv));
+ }
+ rb_str_append(fmt, rb_usascii_str_new2("%:z"));
+ return strftimev(RSTRING_PTR(fmt), self, set_tmx);
+}
+
+/*
+ * call-seq:
+ * dt.iso8601([n=0]) -> string
+ * dt.xmlschema([n=0]) -> string
+ *
+ * This method is equivalent to strftime('%FT%T'). The optional
+ * argument n is length of fractional seconds.
+ *
+ * For example:
+ *
+ * DateTime.parse('2001-02-03T04:05:06.123456789+07:00').iso8601(9)
+ * #=> "2001-02-03T04:05:06.123456789+07:00"
+ */
+static VALUE
+dt_lite_iso8601(int argc, VALUE *argv, VALUE self)
+{
+ VALUE n;
+
+ rb_scan_args(argc, argv, "01", &n);
+
+ if (argc < 1)
+ n = INT2FIX(0);
+
+ return f_add(strftimev("%Y-%m-%d", self, set_tmx),
+ iso8601_timediv(self, n));
+}
+
+/*
+ * call-seq:
+ * dt.rfc3339([n=0]) -> string
+ *
+ * This method is equivalent to strftime('%FT%T'). The optional
+ * argument n is length of fractional seconds.
+ *
+ * For example:
+ *
+ * DateTime.parse('2001-02-03T04:05:06.123456789+07:00').rfc3339(9)
+ * #=> "2001-02-03T04:05:06.123456789+07:00"
+ */
+static VALUE
+dt_lite_rfc3339(int argc, VALUE *argv, VALUE self)
+{
+ return dt_lite_iso8601(argc, argv, self);
+}
+
+/*
+ * call-seq:
+ * dt.jisx0301([n=0]) -> string
+ *
+ * Returns a string in a JIS X 0301 format. The optional argument n
+ * is length of fractional seconds.
+ *
+ * For example:
+ *
+ * DateTime.parse('2001-02-03T04:05:06.123456789+07:00').jisx0301(9)
+ * #=> "H13.02.03T04:05:06.123456789+07:00"
+ */
+static VALUE
+dt_lite_jisx0301(int argc, VALUE *argv, VALUE self)
+{
+ VALUE n, s;
+
+ rb_scan_args(argc, argv, "01", &n);
+
+ if (argc < 1)
+ n = INT2FIX(0);
+
+ {
+ get_d1(self);
+ s = jisx0301_date(m_real_local_jd(dat),
+ m_real_year(dat));
+ return rb_str_append(strftimev(RSTRING_PTR(s), self, set_tmx),
+ iso8601_timediv(self, n));
+ }
+}
+
+/* conversions */
+
+#define f_getlocal(x) rb_funcall(x, rb_intern("getlocal"), 0)
+#define f_subsec(x) rb_funcall(x, rb_intern("subsec"), 0)
+#define f_utc_offset(x) rb_funcall(x, rb_intern("utc_offset"), 0)
+#define f_local3(x,y,m,d) rb_funcall(x, rb_intern("local"), 3, y, m, d)
+#define f_utc6(x,y,m,d,h,min,s) rb_funcall(x, rb_intern("utc"), 6,\
+ y, m, d, h, min, s)
+
+/*
+ * call-seq:
+ * t.to_time -> time
+ *
+ * Returns a copy of self as local mode.
+ */
+static VALUE
+time_to_time(VALUE self)
+{
+ return rb_funcall(self, rb_intern("getlocal"), 0);
+}
+
+/*
+ * call-seq:
+ * t.to_date -> date
+ *
+ * Returns a Date object which denotes self.
+ */
+static VALUE
+time_to_date(VALUE self)
+{
+ VALUE y, nth, ret;
+ int ry, m, d;
+
+ y = f_year(self);
+ m = FIX2INT(f_mon(self));
+ d = FIX2INT(f_mday(self));
+
+ decode_year(y, -1, &nth, &ry);
+
+ ret = d_simple_new_internal(cDate,
+ nth, 0,
+ GREGORIAN,
+ ry, m, d,
+ HAVE_CIVIL);
+ {
+ get_d1(ret);
+ set_sg(dat, DEFAULT_SG);
+ }
+ return ret;
+}
+
+/*
+ * call-seq:
+ * t.to_datetime -> datetime
+ *
+ * Returns a DateTime object which denotes self.
+ */
+static VALUE
+time_to_datetime(VALUE self)
+{
+ VALUE y, sf, nth, ret;
+ int ry, m, d, h, min, s, of;
+
+ y = f_year(self);
+ m = FIX2INT(f_mon(self));
+ d = FIX2INT(f_mday(self));
+
+ h = FIX2INT(f_hour(self));
+ min = FIX2INT(f_min(self));
+ s = FIX2INT(f_sec(self));
+ if (s == 60)
+ s = 59;
+
+ sf = sec_to_ns(f_subsec(self));
+ of = FIX2INT(f_utc_offset(self));
+
+ decode_year(y, -1, &nth, &ry);
+
+ ret = d_complex_new_internal(cDateTime,
+ nth, 0,
+ 0, sf,
+ of, DEFAULT_SG,
+ ry, m, d,
+ h, min, s,
+ HAVE_CIVIL | HAVE_TIME);
+ {
+ get_d1(ret);
+ set_sg(dat, DEFAULT_SG);
+ }
+ return ret;
+}
+
+/*
+ * call-seq:
+ * d.to_time -> time
+ *
+ * Returns a Time object which denotes self.
+ */
+static VALUE
+date_to_time(VALUE self)
+{
+ get_d1(self);
+
+ return f_local3(rb_cTime,
+ m_real_year(dat),
+ INT2FIX(m_mon(dat)),
+ INT2FIX(m_mday(dat)));
+}
+
+/*
+ * call-seq:
+ * d.to_date -> self
+ *
+ * Returns self;
+ */
+static VALUE
+date_to_date(VALUE self)
+{
+ return self;
+}
+
+/*
+ * call-seq:
+ * d.to_datetime -> datetime
+ *
+ * Returns a DateTime object which denotes self.
+ */
+static VALUE
+date_to_datetime(VALUE self)
+{
+ get_d1a(self);
+
+ if (simple_dat_p(adat)) {
+ VALUE new = d_lite_s_alloc_simple(cDateTime);
+ {
+ get_d1b(new);
+ bdat->s = adat->s;
+ return new;
+ }
+ }
+ else {
+ VALUE new = d_lite_s_alloc_complex(cDateTime);
+ {
+ get_d1b(new);
+ bdat->c = adat->c;
+ bdat->c.df = 0;
+ bdat->c.sf = INT2FIX(0);
+#ifndef USE_PACK
+ bdat->c.hour = 0;
+ bdat->c.min = 0;
+ bdat->c.sec = 0;
+#else
+ bdat->c.pc = PACK5(EX_MON(adat->c.pc), EX_MDAY(adat->c.pc),
+ 0, 0, 0);
+ bdat->c.flags |= HAVE_DF | HAVE_TIME;
+#endif
+ return new;
+ }
+ }
+}
+
+/*
+ * call-seq:
+ * dt.to_time -> time
+ *
+ * Returns a Time object which denotes self.
+ */
+static VALUE
+datetime_to_time(VALUE self)
+{
+ volatile VALUE dup = dup_obj_with_new_offset(self, 0);
+ {
+ VALUE t;
+
+ get_d1(dup);
+
+ t = f_utc6(rb_cTime,
+ m_real_year(dat),
+ INT2FIX(m_mon(dat)),
+ INT2FIX(m_mday(dat)),
+ INT2FIX(m_hour(dat)),
+ INT2FIX(m_min(dat)),
+ f_add(INT2FIX(m_sec(dat)),
+ m_sf_in_sec(dat)));
+ return f_getlocal(t);
+ }
+}
+
+/*
+ * call-seq:
+ * dt.to_date -> date
+ *
+ * Returns a Date object which denotes self.
+ */
+static VALUE
+datetime_to_date(VALUE self)
+{
+ get_d1a(self);
+
+ if (simple_dat_p(adat)) {
+ VALUE new = d_lite_s_alloc_simple(cDate);
+ {
+ get_d1b(new);
+ bdat->s = adat->s;
+ bdat->s.jd = m_local_jd(adat);
+ return new;
+ }
+ }
+ else {
+ VALUE new = d_lite_s_alloc_simple(cDate);
+ {
+ get_d1b(new);
+ copy_complex_to_simple(&bdat->s, &adat->c)
+ bdat->s.jd = m_local_jd(adat);
+ bdat->s.flags &= ~(HAVE_DF | HAVE_TIME | COMPLEX_DAT);
+ return new;
+ }
+ }
+}
+
+/*
+ * call-seq:
+ * dt.to_datetime -> self
+ *
+ * Returns self.
+ */
+static VALUE
+datetime_to_datetime(VALUE self)
+{
+ return self;
+}
+
+#ifndef NDEBUG
+/* tests */
+
+#define MIN_YEAR -4713
+#define MAX_YEAR 1000000
+#define MIN_JD -327
+#define MAX_JD 366963925
+
+static int
+test_civil(int from, int to, double sg)
+{
+ int j;
+
+ fprintf(stderr, "test_civil: %d...%d (%d) - %.0f\n",
+ from, to, to - from, sg);
+ for (j = from; j <= to; j++) {
+ int y, m, d, rj, ns;
+
+ c_jd_to_civil(j, sg, &y, &m, &d);
+ c_civil_to_jd(y, m, d, sg, &rj, &ns);
+ if (j != rj) {
+ fprintf(stderr, "%d != %d\n", j, rj);
+ return 0;
+ }
+ }
+ return 1;
+}
+
+static VALUE
+date_s_test_civil(VALUE klass)
+{
+ if (!test_civil(MIN_JD, MIN_JD + 366, GREGORIAN))
+ return Qfalse;
+ if (!test_civil(2305814, 2598007, GREGORIAN))
+ return Qfalse;
+ if (!test_civil(MAX_JD - 366, MAX_JD, GREGORIAN))
+ return Qfalse;
+
+ if (!test_civil(MIN_JD, MIN_JD + 366, ITALY))
+ return Qfalse;
+ if (!test_civil(2305814, 2598007, ITALY))
+ return Qfalse;
+ if (!test_civil(MAX_JD - 366, MAX_JD, ITALY))
+ return Qfalse;
+
+ return Qtrue;
+}
+
+static int
+test_ordinal(int from, int to, double sg)
+{
+ int j;
+
+ fprintf(stderr, "test_ordinal: %d...%d (%d) - %.0f\n",
+ from, to, to - from, sg);
+ for (j = from; j <= to; j++) {
+ int y, d, rj, ns;
+
+ c_jd_to_ordinal(j, sg, &y, &d);
+ c_ordinal_to_jd(y, d, sg, &rj, &ns);
+ if (j != rj) {
+ fprintf(stderr, "%d != %d\n", j, rj);
+ return 0;
+ }
+ }
+ return 1;
+}
+
+static VALUE
+date_s_test_ordinal(VALUE klass)
+{
+ if (!test_ordinal(MIN_JD, MIN_JD + 366, GREGORIAN))
+ return Qfalse;
+ if (!test_ordinal(2305814, 2598007, GREGORIAN))
+ return Qfalse;
+ if (!test_ordinal(MAX_JD - 366, MAX_JD, GREGORIAN))
+ return Qfalse;
+
+ if (!test_ordinal(MIN_JD, MIN_JD + 366, ITALY))
+ return Qfalse;
+ if (!test_ordinal(2305814, 2598007, ITALY))
+ return Qfalse;
+ if (!test_ordinal(MAX_JD - 366, MAX_JD, ITALY))
+ return Qfalse;
+
+ return Qtrue;
+}
+
+static int
+test_commercial(int from, int to, double sg)
+{
+ int j;
+
+ fprintf(stderr, "test_commercial: %d...%d (%d) - %.0f\n",
+ from, to, to - from, sg);
+ for (j = from; j <= to; j++) {
+ int y, w, d, rj, ns;
+
+ c_jd_to_commercial(j, sg, &y, &w, &d);
+ c_commercial_to_jd(y, w, d, sg, &rj, &ns);
+ if (j != rj) {
+ fprintf(stderr, "%d != %d\n", j, rj);
+ return 0;
+ }
+ }
+ return 1;
+}
+
+static VALUE
+date_s_test_commercial(VALUE klass)
+{
+ if (!test_commercial(MIN_JD, MIN_JD + 366, GREGORIAN))
+ return Qfalse;
+ if (!test_commercial(2305814, 2598007, GREGORIAN))
+ return Qfalse;
+ if (!test_commercial(MAX_JD - 366, MAX_JD, GREGORIAN))
+ return Qfalse;
+
+ if (!test_commercial(MIN_JD, MIN_JD + 366, ITALY))
+ return Qfalse;
+ if (!test_commercial(2305814, 2598007, ITALY))
+ return Qfalse;
+ if (!test_commercial(MAX_JD - 366, MAX_JD, ITALY))
+ return Qfalse;
+
+ return Qtrue;
+}
+
+static int
+test_weeknum(int from, int to, int f, double sg)
+{
+ int j;
+
+ fprintf(stderr, "test_weeknum: %d...%d (%d) - %.0f\n",
+ from, to, to - from, sg);
+ for (j = from; j <= to; j++) {
+ int y, w, d, rj, ns;
+
+ c_jd_to_weeknum(j, f, sg, &y, &w, &d);
+ c_weeknum_to_jd(y, w, d, f, sg, &rj, &ns);
+ if (j != rj) {
+ fprintf(stderr, "%d != %d\n", j, rj);
+ return 0;
+ }
+ }
+ return 1;
+}
+
+static VALUE
+date_s_test_weeknum(VALUE klass)
+{
+ int f;
+
+ for (f = 0; f <= 1; f++) {
+ if (!test_weeknum(MIN_JD, MIN_JD + 366, f, GREGORIAN))
+ return Qfalse;
+ if (!test_weeknum(2305814, 2598007, f, GREGORIAN))
+ return Qfalse;
+ if (!test_weeknum(MAX_JD - 366, MAX_JD, f, GREGORIAN))
+ return Qfalse;
+
+ if (!test_weeknum(MIN_JD, MIN_JD + 366, f, ITALY))
+ return Qfalse;
+ if (!test_weeknum(2305814, 2598007, f, ITALY))
+ return Qfalse;
+ if (!test_weeknum(MAX_JD - 366, MAX_JD, f, ITALY))
+ return Qfalse;
+ }
+
+ return Qtrue;
+}
+
+static int
+test_nth_kday(int from, int to, double sg)
+{
+ int j;
+
+ fprintf(stderr, "test_nth_kday: %d...%d (%d) - %.0f\n",
+ from, to, to - from, sg);
+ for (j = from; j <= to; j++) {
+ int y, m, n, k, rj, ns;
+
+ c_jd_to_nth_kday(j, sg, &y, &m, &n, &k);
+ c_nth_kday_to_jd(y, m, n, k, sg, &rj, &ns);
+ if (j != rj) {
+ fprintf(stderr, "%d != %d\n", j, rj);
+ return 0;
+ }
+ }
+ return 1;
+}
+
+static VALUE
+date_s_test_nth_kday(VALUE klass)
+{
+ if (!test_nth_kday(MIN_JD, MIN_JD + 366, GREGORIAN))
+ return Qfalse;
+ if (!test_nth_kday(2305814, 2598007, GREGORIAN))
+ return Qfalse;
+ if (!test_nth_kday(MAX_JD - 366, MAX_JD, GREGORIAN))
+ return Qfalse;
+
+ if (!test_nth_kday(MIN_JD, MIN_JD + 366, ITALY))
+ return Qfalse;
+ if (!test_nth_kday(2305814, 2598007, ITALY))
+ return Qfalse;
+ if (!test_nth_kday(MAX_JD - 366, MAX_JD, ITALY))
+ return Qfalse;
+
+ return Qtrue;
+}
+
+static int
+test_unit_v2v(VALUE i,
+ VALUE (* conv1)(VALUE),
+ VALUE (* conv2)(VALUE))
+{
+ VALUE c, o;
+ c = (*conv1)(i);
+ o = (*conv2)(c);
+ return f_eqeq_p(o, i);
+}
+
+static int
+test_unit_v2v_iter2(VALUE (* conv1)(VALUE),
+ VALUE (* conv2)(VALUE))
+{
+ if (!test_unit_v2v(INT2FIX(0), conv1, conv2))
+ return 0;
+ if (!test_unit_v2v(INT2FIX(1), conv1, conv2))
+ return 0;
+ if (!test_unit_v2v(INT2FIX(2), conv1, conv2))
+ return 0;
+ if (!test_unit_v2v(INT2FIX(3), conv1, conv2))
+ return 0;
+ if (!test_unit_v2v(INT2FIX(11), conv1, conv2))
+ return 0;
+ if (!test_unit_v2v(INT2FIX(65535), conv1, conv2))
+ return 0;
+ if (!test_unit_v2v(INT2FIX(1073741823), conv1, conv2))
+ return 0;
+ if (!test_unit_v2v(INT2NUM(1073741824), conv1, conv2))
+ return 0;
+ if (!test_unit_v2v(rb_rational_new2(INT2FIX(0), INT2FIX(1)), conv1, conv2))
+ return 0;
+ if (!test_unit_v2v(rb_rational_new2(INT2FIX(1), INT2FIX(1)), conv1, conv2))
+ return 0;
+ if (!test_unit_v2v(rb_rational_new2(INT2FIX(1), INT2FIX(2)), conv1, conv2))
+ return 0;
+ if (!test_unit_v2v(rb_rational_new2(INT2FIX(2), INT2FIX(3)), conv1, conv2))
+ return 0;
+ return 1;
+}
+
+static int
+test_unit_v2v_iter(VALUE (* conv1)(VALUE),
+ VALUE (* conv2)(VALUE))
+{
+ if (!test_unit_v2v_iter2(conv1, conv2))
+ return 0;
+ if (!test_unit_v2v_iter2(conv2, conv1))
+ return 0;
+ return 1;
+}
+
+static VALUE
+date_s_test_unit_conv(VALUE klass)
+{
+ if (!test_unit_v2v_iter(sec_to_day, day_to_sec))
+ return Qfalse;
+ if (!test_unit_v2v_iter(ms_to_sec, sec_to_ms))
+ return Qfalse;
+ if (!test_unit_v2v_iter(ns_to_day, day_to_ns))
+ return Qfalse;
+ if (!test_unit_v2v_iter(ns_to_sec, sec_to_ns))
+ return Qfalse;
+ return Qtrue;
+}
+
+static VALUE
+date_s_test_all(VALUE klass)
+{
+ if (date_s_test_civil(klass) == Qfalse)
+ return Qfalse;
+ if (date_s_test_ordinal(klass) == Qfalse)
+ return Qfalse;
+ if (date_s_test_commercial(klass) == Qfalse)
+ return Qfalse;
+ if (date_s_test_weeknum(klass) == Qfalse)
+ return Qfalse;
+ if (date_s_test_nth_kday(klass) == Qfalse)
+ return Qfalse;
+ if (date_s_test_unit_conv(klass) == Qfalse)
+ return Qfalse;
+ return Qtrue;
+}
+#endif
+
+static const char *monthnames[] = {
+ NULL,
+ "January", "February", "March",
+ "April", "May", "June",
+ "July", "August", "September",
+ "October", "November", "December"
+};
+
+static const char *abbr_monthnames[] = {
+ NULL,
+ "Jan", "Feb", "Mar", "Apr",
+ "May", "Jun", "Jul", "Aug",
+ "Sep", "Oct", "Nov", "Dec"
+};
+
+static const char *daynames[] = {
+ "Sunday", "Monday", "Tuesday", "Wednesday",
+ "Thursday", "Friday", "Saturday"
+};
+
+static const char *abbr_daynames[] = {
+ "Sun", "Mon", "Tue", "Wed",
+ "Thu", "Fri", "Sat"
+};
+
+static VALUE
+mk_ary_of_str(long len, const char *a[])
+{
+ VALUE o;
+ long i;
+
+ o = rb_ary_new2(len);
+ for (i = 0; i < len; i++) {
+ VALUE e;
+
+ if (!a[i])
+ e = Qnil;
+ else {
+ e = rb_usascii_str_new2(a[i]);
+ rb_obj_freeze(e);
+ }
+ rb_ary_push(o, e);
+ }
+ rb_obj_freeze(o);
+ return o;
+}
+
+void
+Init_date_core(void)
+{
+#undef rb_intern
+#define rb_intern(str) rb_intern_const(str)
+
+ assert(fprintf(stderr, "assert() is now active\n"));
+
+ id_cmp = rb_intern("<=>");
+ id_le_p = rb_intern("<=");
+ id_ge_p = rb_intern(">=");
+ id_eqeq_p = rb_intern("==");
+
+ half_days_in_day = rb_rational_new2(INT2FIX(1), INT2FIX(2));
+
+#if (LONG_MAX / DAY_IN_SECONDS) > SECOND_IN_NANOSECONDS
+ day_in_nanoseconds = LONG2NUM((long)DAY_IN_SECONDS *
+ SECOND_IN_NANOSECONDS);
+#elif defined HAVE_LONG_LONG
+ day_in_nanoseconds = LL2NUM((LONG_LONG)DAY_IN_SECONDS *
+ SECOND_IN_NANOSECONDS);
+#else
+ day_in_nanoseconds = f_mul(INT2FIX(DAY_IN_SECONDS),
+ INT2FIX(SECOND_IN_NANOSECONDS));
+#endif
+
+ rb_gc_register_mark_object(half_days_in_day);
+ rb_gc_register_mark_object(day_in_nanoseconds);
+
+ positive_inf = +INFINITY;
+ negative_inf = -INFINITY;
+
+ /*
+ * date and datetime class - Tadayoshi Funaba 1998-2011
+ *
+ * 'date' provides two classes Date and DateTime.
+ *
+ * == Terms and definitions
+ *
+ * Some terms and definitions are based on ISO 8601 and JIS X 0301.
+ *
+ * === calendar date
+ *
+ * The calendar date is a particular day of a calendar year,
+ * identified by its ordinal number within a calendar month within
+ * that year.
+ *
+ * In those classes, this is so-called "civil".
+ *
+ * === ordinal date
+ *
+ * The ordinal date is a particular day of a calendar year identified
+ * by its ordinal number within the year.
+ *
+ * In those classes, this is so-called "ordinal".
+ *
+ * === week date
+ *
+ * The week date is a date identified by calendar week and day numbers.
+ *
+ * The calendar week is a seven day period within a calendar year,
+ * starting on a Monday and identified by its ordinal number within
+ * the year; the first calendar week of the year is the one that
+ * includes the first Thursday of that year. In the Gregorian
+ * calendar, this is equivalent to the week which includes January 4.
+ *
+ * In those classes, this so-called "commercial".
+ *
+ * === julian day number
+ *
+ * The Julian day number is in elapsed days since noon (Greenwich mean
+ * time) on January 1, 4713 BCE (in the Julian calendar).
+ *
+ * In this document, the astronomical Julian day number is same as the
+ * original Julian day number. And the chronological Julian day
+ * number is a variation of the Julian day number. Its days begin at
+ * midnight on local time.
+ *
+ * In this document, when the term "Julian day number" simply appears,
+ * it just refers to "chronological Julian day number", not the
+ * original.
+ *
+ * In those classes, those are so-called "ajd" and "jd".
+ *
+ * === modified julian day number
+ *
+ * The modified Julian day number is in elapsed days since midnight
+ * (Coordinated universal time) on November 17, 1858 CE (in the
+ * Gregorian calendar).
+ *
+ * In this document, the astronomical modified Julian day number is
+ * same as the original modified Julian day number. And the
+ * chronological modified Julian day number is a variation of the
+ * modified Julian day number. Its days begin at midnight on local
+ * time.
+ *
+ * In this document, when the term "modified Julian day number" simply
+ * appears, it just refers to "chronological modified Julian day
+ * number", not the original.
+ *
+ * In those classes, this is so-called "mjd".
+ *
+ *
+ * == Date
+ *
+ * A subclass of Object includes Comparable module, easily handles
+ * date.
+ *
+ * Date object is created with Date::new, Date::jd, Date::ordinal,
+ * Date::commercial, Date::parse, Date::strptime, Date::today,
+ * Time#to_date or etc.
+ *
+ * require 'date'
+ *
+ * Date.new(2001,2,3) #=> #<Date: 2001-02-03 ...>
+ * Date.jd(2451944) #=> #<Date: 2001-02-03 ...>
+ * Date.ordinal(2001,34) #=> #<Date: 2001-02-03 ...>
+ * Date.commercial(2001,5,6) #=> #<Date: 2001-02-03 ...>
+ * Date.parse('2001-02-03') #=> #<Date: 2001-02-03 ...>
+ * Date.strptime('03-02-2001', '%d-%m-%Y')
+ * #=> #<Date: 2001-02-03 ...>
+ * Time.new(2001,2,3).to_date #=> #<Date: 2001-02-03 ...>
+ *
+ * All date objects are immutable; hence cannot modify themselves.
+ *
+ * The concept of this date object can be represented as a tuple
+ * of the day count, the offset and the day of calendar reform.
+ *
+ * The day count denotes the absolute position of a temporal
+ * dimension. The offset is relative adjustment, which determines
+ * decoded local time with the day count. The day of calendar
+ * reform denotes the start day of the new style. The old style
+ * of the West is the Julian calendar which was adopted by
+ * Caersar. The new style is the Gregorian calendar, which is the
+ * current civil calendar of many countries.
+ *
+ * The day count is virtually the astronomical Julian day number.
+ * The offset in this class is usually zero, and cannot be
+ * specified directly.
+ *
+ * An optional argument the day of calendar reform (start) as a
+ * Julian day number, which should be 2298874 to 2426355 or -/+oo.
+ * The default value is Date::ITALY (2299161=1582-10-15). See
+ * also sample/cal.rb.
+ *
+ * $ ruby sample/cal.rb -c it 10 1582
+ * October 1582
+ * S M Tu W Th F S
+ * 1 2 3 4 15 16
+ * 17 18 19 20 21 22 23
+ * 24 25 26 27 28 29 30
+ * 31
+ *
+ * $ ruby sample/cal.rb -c gb 9 1752
+ * September 1752
+ * S M Tu W Th F S
+ * 1 2 14 15 16
+ * 17 18 19 20 21 22 23
+ * 24 25 26 27 28 29 30
+ *
+ * Date object has various methods. See each reference.
+ *
+ * d = Date.parse('3rd Feb 2001')
+ * #=> #<Date: 2001-02-03 ...>
+ * d.year #=> 2001
+ * d.mon #=> 2
+ * d.mday #=> 3
+ * d.wday #=> 6
+ * d += 1 #=> #<Date: 2001-02-04 ...>
+ * d.strftime('%a %d %b %Y') #=> "Sun 04 Feb 2001"
+ *
+ *
+ * == DateTime
+ *
+ * A subclass of Date easily handles date, hour, minute, second and
+ * offset.
+ *
+ * DateTime does not consider any leapseconds, does not track
+ * any summer time rules.
+ *
+ * DateTime object is created with DateTime::new, DateTime::jd,
+ * DateTime::ordinal, DateTime::commercial, DateTime::parse,
+ * DateTime::strptime, DateTime::now, Time#to_datetime or etc.
+ *
+ * require 'date'
+ *
+ * DateTime.new(2001,2,3,4,5,6)
+ * #=> #<DateTime: 2001-02-03T04:05:06+00:00 ...>
+ *
+ * The last element of day, hour, minute or senond can be
+ * fractional number. The fractional number's precision is assumed
+ * at most nanosecond.
+ *
+ * DateTime.new(2001,2,3.5)
+ * #=> #<DateTime: 2001-02-03T12:00:00+00:00 ...>
+ *
+ * An optional argument the offset indicates the difference
+ * between the local time and UTC. For example, Rational(3,24)
+ * represents ahead of 3 hours of UTC, Rational(-5,24) represents
+ * behind of 5 hours of UTC. The offset should be -1 to +1, and
+ * its precision is assumed at most second. The default value is
+ * zero (equals to UTC).
+ *
+ * DateTime.new(2001,2,3,4,5,6,Rational(3,24))
+ * #=> #<DateTime: 2001-02-03T03:04:05+03:00 ...>
+ * also accepts string form.
+ *
+ * DateTime.new(2001,2,3,4,5,6,'+03:00')
+ * #=> #<DateTime: 2001-02-03T03:04:05+03:00 ...>
+ *
+ * An optional argument the day of calendar reform (start) denotes
+ * a Julian day number, which should be 2298874 to 2426355 or
+ * -/+oo. The default value is Date::ITALY (2299161=1582-10-15).
+ *
+ * DateTime object has various methods. See each reference.
+ *
+ * d = DateTime.parse('3rd Feb 2001 04:05:06+03:30')
+ * #=> #<DateTime: 2001-02-03T04:05:06+03:30 ...>
+ * d.hour #=> 4
+ * d.min #=> 5
+ * d.sec #=> 6
+ * d.offset #=> (7/48)
+ * d.zone #=> "+03:30"
+ * d += Rational('1.5')
+ * #=> #<DateTime: 2001-02-04%16:05:06+03:30 ...>
+ * d = d.new_offset('+09:00')
+ * #=> #<DateTime: 2001-02-04%21:35:06+09:00 ...>
+ * d.strftime('%I:%M:%S %p')
+ * #=> "09:35:06 PM"
+ * d > DateTime.new(1999)
+ * #=> true
+ */
+ cDate = rb_define_class("Date", rb_cObject);
+
+ rb_include_module(cDate, rb_mComparable);
+
+ /* An array of stirng of full month name in English. The first
+ * element is nil.
+ */
+ rb_define_const(cDate, "MONTHNAMES", mk_ary_of_str(13, monthnames));
+
+ /* An array of string of abbreviated month name in English. The
+ * first element is nil.
+ */
+ rb_define_const(cDate, "ABBR_MONTHNAMES",
+ mk_ary_of_str(13, abbr_monthnames));
+
+ /* An array of string of full name of days of the week in English.
+ * The first is "Sunday".
+ */
+ rb_define_const(cDate, "DAYNAMES", mk_ary_of_str(7, daynames));
+
+ /* An array of string of abbreviated day name in English. The
+ * first is "Sun".
+ */
+ rb_define_const(cDate, "ABBR_DAYNAMES", mk_ary_of_str(7, abbr_daynames));
+
+ /* The Julian day number of the day of calendar reform for Italy
+ * and some catholic countries.
+ */
+ rb_define_const(cDate, "ITALY", INT2FIX(ITALY));
+
+ /* The Julian day number of the day of calendar reform for England
+ * and her colonies.
+ */
+ rb_define_const(cDate, "ENGLAND", INT2FIX(ENGLAND));
+
+ /* The Julian day number of the day of calendar reform for the
+ * proleptic Julian calendar
+ */
+ rb_define_const(cDate, "JULIAN", DBL2NUM(JULIAN));
+
+ /* The Julian day number of the day of calendar reform for the
+ * proleptic Gregorian calendar
+ */
+ rb_define_const(cDate, "GREGORIAN", DBL2NUM(GREGORIAN));
+
+ rb_define_alloc_func(cDate, d_lite_s_alloc);
+
+#ifndef NDEBUG
+#define de_define_private_method rb_define_private_method
+ de_define_private_method(CLASS_OF(cDate), "_valid_jd?",
+ date_s__valid_jd_p, -1);
+ de_define_private_method(CLASS_OF(cDate), "_valid_ordinal?",
+ date_s__valid_ordinal_p, -1);
+ de_define_private_method(CLASS_OF(cDate), "_valid_civil?",
+ date_s__valid_civil_p, -1);
+ de_define_private_method(CLASS_OF(cDate), "_valid_date?",
+ date_s__valid_civil_p, -1);
+ de_define_private_method(CLASS_OF(cDate), "_valid_commercial?",
+ date_s__valid_commercial_p, -1);
+ de_define_private_method(CLASS_OF(cDate), "_valid_weeknum?",
+ date_s__valid_weeknum_p, -1);
+ de_define_private_method(CLASS_OF(cDate), "_valid_nth_kday?",
+ date_s__valid_nth_kday_p, -1);
+#endif
+
+ rb_define_singleton_method(cDate, "valid_jd?", date_s_valid_jd_p, -1);
+ rb_define_singleton_method(cDate, "valid_ordinal?",
+ date_s_valid_ordinal_p, -1);
+ rb_define_singleton_method(cDate, "valid_civil?", date_s_valid_civil_p, -1);
+ rb_define_singleton_method(cDate, "valid_date?", date_s_valid_civil_p, -1);
+ rb_define_singleton_method(cDate, "valid_commercial?",
+ date_s_valid_commercial_p, -1);
+
+#ifndef NDEBUG
+ de_define_private_method(CLASS_OF(cDate), "valid_weeknum?",
+ date_s_valid_weeknum_p, -1);
+ de_define_private_method(CLASS_OF(cDate), "valid_nth_kday?",
+ date_s_valid_nth_kday_p, -1);
+ de_define_private_method(CLASS_OF(cDate), "zone_to_diff",
+ date_s_zone_to_diff, 1);
+#endif
+
+ rb_define_singleton_method(cDate, "julian_leap?", date_s_julian_leap_p, 1);
+ rb_define_singleton_method(cDate, "gregorian_leap?",
+ date_s_gregorian_leap_p, 1);
+ rb_define_singleton_method(cDate, "leap?",
+ date_s_gregorian_leap_p, 1);
+
+#ifndef NDEBUG
+#define de_define_singleton_method rb_define_singleton_method
+#define de_define_alias rb_define_alias
+ de_define_singleton_method(cDate, "new!", date_s_new_bang, -1);
+ de_define_alias(rb_singleton_class(cDate), "new_l!", "new");
+#endif
+
+ rb_define_singleton_method(cDate, "jd", date_s_jd, -1);
+ rb_define_singleton_method(cDate, "ordinal", date_s_ordinal, -1);
+ rb_define_singleton_method(cDate, "civil", date_s_civil, -1);
+ rb_define_singleton_method(cDate, "new", date_s_civil, -1);
+ rb_define_singleton_method(cDate, "commercial", date_s_commercial, -1);
+
+#ifndef NDEBUG
+ de_define_singleton_method(cDate, "weeknum", date_s_weeknum, -1);
+ de_define_singleton_method(cDate, "nth_kday", date_s_nth_kday, -1);
+#endif
+
+ rb_define_singleton_method(cDate, "today", date_s_today, -1);
+ rb_define_singleton_method(cDate, "_strptime", date_s__strptime, -1);
+ rb_define_singleton_method(cDate, "strptime", date_s_strptime, -1);
+ rb_define_singleton_method(cDate, "_parse", date_s__parse, -1);
+ rb_define_singleton_method(cDate, "parse", date_s_parse, -1);
+ rb_define_singleton_method(cDate, "_iso8601", date_s__iso8601, 1);
+ rb_define_singleton_method(cDate, "iso8601", date_s_iso8601, -1);
+ rb_define_singleton_method(cDate, "_rfc3339", date_s__rfc3339, 1);
+ rb_define_singleton_method(cDate, "rfc3339", date_s_rfc3339, -1);
+ rb_define_singleton_method(cDate, "_xmlschema", date_s__xmlschema, 1);
+ rb_define_singleton_method(cDate, "xmlschema", date_s_xmlschema, -1);
+ rb_define_singleton_method(cDate, "_rfc2822", date_s__rfc2822, 1);
+ rb_define_singleton_method(cDate, "_rfc822", date_s__rfc2822, 1);
+ rb_define_singleton_method(cDate, "rfc2822", date_s_rfc2822, -1);
+ rb_define_singleton_method(cDate, "rfc822", date_s_rfc2822, -1);
+ rb_define_singleton_method(cDate, "_httpdate", date_s__httpdate, 1);
+ rb_define_singleton_method(cDate, "httpdate", date_s_httpdate, -1);
+ rb_define_singleton_method(cDate, "_jisx0301", date_s__jisx0301, 1);
+ rb_define_singleton_method(cDate, "jisx0301", date_s_jisx0301, -1);
+
+#ifndef NDEBUG
+#define de_define_method rb_define_method
+ de_define_method(cDate, "initialize", d_lite_initialize, -1);
+#endif
+ rb_define_method(cDate, "initialize_copy", d_lite_initialize_copy, 1);
+
+#ifndef NDEBUG
+ de_define_method(cDate, "fill", d_lite_fill, 0);
+#endif
+
+ rb_define_method(cDate, "ajd", d_lite_ajd, 0);
+ rb_define_method(cDate, "amjd", d_lite_amjd, 0);
+ rb_define_method(cDate, "jd", d_lite_jd, 0);
+ rb_define_method(cDate, "mjd", d_lite_mjd, 0);
+ rb_define_method(cDate, "ld", d_lite_ld, 0);
+
+ rb_define_method(cDate, "year", d_lite_year, 0);
+ rb_define_method(cDate, "yday", d_lite_yday, 0);
+ rb_define_method(cDate, "mon", d_lite_mon, 0);
+ rb_define_method(cDate, "month", d_lite_mon, 0);
+ rb_define_method(cDate, "mday", d_lite_mday, 0);
+ rb_define_method(cDate, "day", d_lite_mday, 0);
+ rb_define_method(cDate, "day_fraction", d_lite_day_fraction, 0);
+
+ rb_define_method(cDate, "cwyear", d_lite_cwyear, 0);
+ rb_define_method(cDate, "cweek", d_lite_cweek, 0);
+ rb_define_method(cDate, "cwday", d_lite_cwday, 0);
+
+#ifndef NDEBUG
+ de_define_private_method(cDate, "wnum0", d_lite_wnum0, 0);
+ de_define_private_method(cDate, "wnum1", d_lite_wnum1, 0);
+#endif
+
+ rb_define_method(cDate, "wday", d_lite_wday, 0);
+
+ rb_define_method(cDate, "sunday?", d_lite_sunday_p, 0);
+ rb_define_method(cDate, "monday?", d_lite_monday_p, 0);
+ rb_define_method(cDate, "tuesday?", d_lite_tuesday_p, 0);
+ rb_define_method(cDate, "wednesday?", d_lite_wednesday_p, 0);
+ rb_define_method(cDate, "thursday?", d_lite_thursday_p, 0);
+ rb_define_method(cDate, "friday?", d_lite_friday_p, 0);
+ rb_define_method(cDate, "saturday?", d_lite_saturday_p, 0);
+
+#ifndef NDEBUG
+ de_define_method(cDate, "nth_kday?", d_lite_nth_kday_p, 2);
+#endif
+
+ rb_define_private_method(cDate, "hour", d_lite_hour, 0);
+ rb_define_private_method(cDate, "min", d_lite_min, 0);
+ rb_define_private_method(cDate, "minute", d_lite_min, 0);
+ rb_define_private_method(cDate, "sec", d_lite_sec, 0);
+ rb_define_private_method(cDate, "second", d_lite_sec, 0);
+ rb_define_private_method(cDate, "sec_fraction", d_lite_sec_fraction, 0);
+ rb_define_private_method(cDate, "second_fraction", d_lite_sec_fraction, 0);
+ rb_define_private_method(cDate, "offset", d_lite_offset, 0);
+ rb_define_private_method(cDate, "zone", d_lite_zone, 0);
+
+ rb_define_method(cDate, "julian?", d_lite_julian_p, 0);
+ rb_define_method(cDate, "gregorian?", d_lite_gregorian_p, 0);
+ rb_define_method(cDate, "leap?", d_lite_leap_p, 0);
+
+ rb_define_method(cDate, "start", d_lite_start, 0);
+ rb_define_method(cDate, "new_start", d_lite_new_start, -1);
+ rb_define_method(cDate, "italy", d_lite_italy, 0);
+ rb_define_method(cDate, "england", d_lite_england, 0);
+ rb_define_method(cDate, "julian", d_lite_julian, 0);
+ rb_define_method(cDate, "gregorian", d_lite_gregorian, 0);
+
+ rb_define_private_method(cDate, "new_offset", d_lite_new_offset, -1);
+
+ rb_define_method(cDate, "+", d_lite_plus, 1);
+ rb_define_method(cDate, "-", d_lite_minus, 1);
+
+ rb_define_method(cDate, "next_day", d_lite_next_day, -1);
+ rb_define_method(cDate, "prev_day", d_lite_prev_day, -1);
+ rb_define_method(cDate, "next", d_lite_next, 0);
+ rb_define_method(cDate, "succ", d_lite_next, 0);
+
+ rb_define_method(cDate, ">>", d_lite_rshift, 1);
+ rb_define_method(cDate, "<<", d_lite_lshift, 1);
+
+ rb_define_method(cDate, "next_month", d_lite_next_month, -1);
+ rb_define_method(cDate, "prev_month", d_lite_prev_month, -1);
+ rb_define_method(cDate, "next_year", d_lite_next_year, -1);
+ rb_define_method(cDate, "prev_year", d_lite_prev_year, -1);
+
+ rb_define_method(cDate, "step", d_lite_step, -1);
+ rb_define_method(cDate, "upto", d_lite_upto, 1);
+ rb_define_method(cDate, "downto", d_lite_downto, 1);
+
+ rb_define_method(cDate, "<=>", d_lite_cmp, 1);
+ rb_define_method(cDate, "===", d_lite_equal, 1);
+ rb_define_method(cDate, "eql?", d_lite_eql_p, 1);
+ rb_define_method(cDate, "hash", d_lite_hash, 0);
+
+ rb_define_method(cDate, "to_s", d_lite_to_s, 0);
+#ifndef NDEBUG
+ de_define_method(cDate, "inspect_raw", d_lite_inspect_raw, 0);
+#endif
+ rb_define_method(cDate, "inspect", d_lite_inspect, 0);
+
+ rb_define_method(cDate, "strftime", d_lite_strftime, -1);
+
+ rb_define_method(cDate, "asctime", d_lite_asctime, 0);
+ rb_define_method(cDate, "ctime", d_lite_asctime, 0);
+ rb_define_method(cDate, "iso8601", d_lite_iso8601, 0);
+ rb_define_method(cDate, "xmlschema", d_lite_iso8601, 0);
+ rb_define_method(cDate, "rfc3339", d_lite_rfc3339, 0);
+ rb_define_method(cDate, "rfc2822", d_lite_rfc2822, 0);
+ rb_define_method(cDate, "rfc822", d_lite_rfc2822, 0);
+ rb_define_method(cDate, "httpdate", d_lite_httpdate, 0);
+ rb_define_method(cDate, "jisx0301", d_lite_jisx0301, 0);
+
+#ifndef NDEBUG
+ de_define_method(cDate, "marshal_dump_old", d_lite_marshal_dump_old, 0);
+#endif
+ rb_define_method(cDate, "marshal_dump", d_lite_marshal_dump, 0);
+ rb_define_method(cDate, "marshal_load", d_lite_marshal_load, 1);
+
+ /* datetime */
+
+ cDateTime = rb_define_class("DateTime", cDate);
+
+ rb_define_singleton_method(cDateTime, "jd", datetime_s_jd, -1);
+ rb_define_singleton_method(cDateTime, "ordinal", datetime_s_ordinal, -1);
+ rb_define_singleton_method(cDateTime, "civil", datetime_s_civil, -1);
+ rb_define_singleton_method(cDateTime, "new", datetime_s_civil, -1);
+ rb_define_singleton_method(cDateTime, "commercial",
+ datetime_s_commercial, -1);
+
+#ifndef NDEBUG
+ de_define_singleton_method(cDateTime, "weeknum",
+ datetime_s_weeknum, -1);
+ de_define_singleton_method(cDateTime, "nth_kday",
+ datetime_s_nth_kday, -1);
+#endif
+
+ rb_undef_method(CLASS_OF(cDateTime), "today");
+
+ rb_define_singleton_method(cDateTime, "now", datetime_s_now, -1);
+ rb_define_singleton_method(cDateTime, "_strptime",
+ datetime_s__strptime, -1);
+ rb_define_singleton_method(cDateTime, "strptime",
+ datetime_s_strptime, -1);
+ rb_define_singleton_method(cDateTime, "parse",
+ datetime_s_parse, -1);
+ rb_define_singleton_method(cDateTime, "iso8601",
+ datetime_s_iso8601, -1);
+ rb_define_singleton_method(cDateTime, "rfc3339",
+ datetime_s_rfc3339, -1);
+ rb_define_singleton_method(cDateTime, "xmlschema",
+ datetime_s_xmlschema, -1);
+ rb_define_singleton_method(cDateTime, "rfc2822",
+ datetime_s_rfc2822, -1);
+ rb_define_singleton_method(cDateTime, "rfc822",
+ datetime_s_rfc2822, -1);
+ rb_define_singleton_method(cDateTime, "httpdate",
+ datetime_s_httpdate, -1);
+ rb_define_singleton_method(cDateTime, "jisx0301",
+ datetime_s_jisx0301, -1);
+
+#define f_public(m,s) rb_funcall(m, rb_intern("public"), 1,\
+ ID2SYM(rb_intern(s)))
+
+ f_public(cDateTime, "hour");
+ f_public(cDateTime, "min");
+ f_public(cDateTime, "minute");
+ f_public(cDateTime, "sec");
+ f_public(cDateTime, "second");
+ f_public(cDateTime, "sec_fraction");
+ f_public(cDateTime, "second_fraction");
+ f_public(cDateTime, "offset");
+ f_public(cDateTime, "zone");
+ f_public(cDateTime, "new_offset");
+
+ rb_define_method(cDateTime, "to_s", dt_lite_to_s, 0);
+
+ rb_define_method(cDateTime, "strftime", dt_lite_strftime, -1);
+
+ rb_define_method(cDateTime, "iso8601", dt_lite_iso8601, -1);
+ rb_define_method(cDateTime, "xmlschema", dt_lite_iso8601, -1);
+ rb_define_method(cDateTime, "rfc3339", dt_lite_rfc3339, -1);
+ rb_define_method(cDateTime, "jisx0301", dt_lite_jisx0301, -1);
+
+ /* conversions */
+
+ rb_define_method(rb_cTime, "to_time", time_to_time, 0);
+ rb_define_method(rb_cTime, "to_date", time_to_date, 0);
+ rb_define_method(rb_cTime, "to_datetime", time_to_datetime, 0);
+
+ rb_define_method(cDate, "to_time", date_to_time, 0);
+ rb_define_method(cDate, "to_date", date_to_date, 0);
+ rb_define_method(cDate, "to_datetime", date_to_datetime, 0);
+
+ rb_define_method(cDateTime, "to_time", datetime_to_time, 0);
+ rb_define_method(cDateTime, "to_date", datetime_to_date, 0);
+ rb_define_method(cDateTime, "to_datetime", datetime_to_datetime, 0);
+
+#ifndef NDEBUG
+ /* tests */
+
+ de_define_singleton_method(cDate, "test_civil", date_s_test_civil, 0);
+ de_define_singleton_method(cDate, "test_ordinal", date_s_test_ordinal, 0);
+ de_define_singleton_method(cDate, "test_commercial",
+ date_s_test_commercial, 0);
+ de_define_singleton_method(cDate, "test_weeknum", date_s_test_weeknum, 0);
+ de_define_singleton_method(cDate, "test_nth_kday", date_s_test_nth_kday, 0);
+ de_define_singleton_method(cDate, "test_unit_conv",
+ date_s_test_unit_conv, 0);
+ de_define_singleton_method(cDate, "test_all", date_s_test_all, 0);
+#endif
+}
+
+/*
+Local variables:
+c-file-style: "ruby"
+End:
+*/
diff --git a/ext/date/date_parse.c b/ext/date/date_parse.c
new file mode 100644
index 0000000000..903163003c
--- /dev/null
+++ b/ext/date/date_parse.c
@@ -0,0 +1,2425 @@
+/*
+ date_parse.c: Coded by Tadayoshi Funaba 2011,2012
+*/
+
+#include "ruby.h"
+#include "ruby/encoding.h"
+#include "ruby/re.h"
+#include <ctype.h>
+
+#define sizeof_array(o) (sizeof o / sizeof o[0])
+
+#define f_negate(x) rb_funcall(x, rb_intern("-@"), 0)
+#define f_add(x,y) rb_funcall(x, '+', 1, y)
+#define f_sub(x,y) rb_funcall(x, '-', 1, y)
+#define f_mul(x,y) rb_funcall(x, '*', 1, y)
+#define f_div(x,y) rb_funcall(x, '/', 1, y)
+#define f_idiv(x,y) rb_funcall(x, rb_intern("div"), 1, y)
+#define f_mod(x,y) rb_funcall(x, '%', 1, y)
+#define f_expt(x,y) rb_funcall(x, rb_intern("**"), 1, y)
+
+#define f_lt_p(x,y) rb_funcall(x, '<', 1, y)
+#define f_gt_p(x,y) rb_funcall(x, '>', 1, y)
+#define f_le_p(x,y) rb_funcall(x, rb_intern("<="), 1, y)
+#define f_ge_p(x,y) rb_funcall(x, rb_intern(">="), 1, y)
+
+#define f_to_s(x) rb_funcall(x, rb_intern("to_s"), 0)
+
+#define f_match(r,s) rb_funcall(r, rb_intern("match"), 1, s)
+#define f_aref(o,i) rb_funcall(o, rb_intern("[]"), 1, i)
+#define f_aref2(o,i,j) rb_funcall(o, rb_intern("[]"), 2, i, j)
+#define f_begin(o,i) rb_funcall(o, rb_intern("begin"), 1, i)
+#define f_end(o,i) rb_funcall(o, rb_intern("end"), 1, i)
+#define f_aset(o,i,v) rb_funcall(o, rb_intern("[]="), 2, i, v)
+#define f_aset2(o,i,j,v) rb_funcall(o, rb_intern("[]="), 3, i, j, v)
+#define f_sub_bang(s,r,x) rb_funcall(s, rb_intern("sub!"), 2, r, x)
+#define f_gsub_bang(s,r,x) rb_funcall(s, rb_intern("gsub!"), 2, r, x)
+
+#define set_hash(k,v) rb_hash_aset(hash, ID2SYM(rb_intern(k)), v)
+#define ref_hash(k) rb_hash_aref(hash, ID2SYM(rb_intern(k)))
+#define del_hash(k) rb_hash_delete(hash, ID2SYM(rb_intern(k)))
+
+#define cstr2num(s) rb_cstr_to_inum(s, 10, 0)
+#define str2num(s) rb_str_to_inum(s, 10, 0)
+
+static const char *abbr_days[] = {
+ "sun", "mon", "tue", "wed",
+ "thu", "fri", "sat"
+};
+
+static const char *abbr_months[] = {
+ "jan", "feb", "mar", "apr", "may", "jun",
+ "jul", "aug", "sep", "oct", "nov", "dec"
+};
+
+#define issign(c) ((c) == '-' || (c) == '+')
+#define asp_string() rb_str_new(" ", 1)
+
+static void
+s3e(VALUE hash, VALUE y, VALUE m, VALUE d, int bc)
+{
+ VALUE c = Qnil;
+
+ if (TYPE(m) != T_STRING)
+ m = f_to_s(m);
+
+ if (!NIL_P(y) && !NIL_P(m) && NIL_P(d)) {
+ VALUE oy = y;
+ VALUE om = m;
+ VALUE od = d;
+
+ y = od;
+ m = oy;
+ d = om;
+ }
+
+ if (NIL_P(y)) {
+ if (!NIL_P(d) && RSTRING_LEN(d) > 2) {
+ y = d;
+ d = Qnil;
+ }
+ if (!NIL_P(d) && *RSTRING_PTR(d) == '\'') {
+ y = d;
+ d = Qnil;
+ }
+ }
+
+ if (!NIL_P(y)) {
+ const char *s, *bp, *ep;
+ size_t l;
+
+ s = RSTRING_PTR(y);
+ while (!issign(*s) && !isdigit(*s))
+ s++;
+ bp = s;
+ if (issign(*s))
+ s++;
+ l = strspn(s, "0123456789");
+ ep = s + l;
+ if (*ep) {
+ y = d;
+ d = rb_str_new(bp, ep - bp);
+ }
+ }
+
+ if (!NIL_P(m)) {
+ const char *s;
+
+ s = RSTRING_PTR(m);
+ if (*s == '\'' || RSTRING_LEN(m) > 2) {
+ /* us -> be */
+ VALUE oy = y;
+ VALUE om = m;
+ VALUE od = d;
+
+ y = om;
+ m = od;
+ d = oy;
+ }
+ }
+
+ if (!NIL_P(d)) {
+ const char *s;
+
+ s = RSTRING_PTR(d);
+ if (*s == '\'' || RSTRING_LEN(d) > 2) {
+ VALUE oy = y;
+ VALUE od = d;
+
+ y = od;
+ d = oy;
+ }
+ }
+
+ if (!NIL_P(y)) {
+ const char *s, *bp, *ep;
+ int sign = 0;
+ size_t l;
+ VALUE iy;
+
+ s = RSTRING_PTR(y);
+ while (!issign(*s) && !isdigit(*s))
+ s++;
+ bp = s;
+ if (issign(*s)) {
+ s++;
+ sign = 1;
+ }
+ if (sign)
+ c = Qfalse;
+ l = strspn(s, "0123456789");
+ ep = s + l;
+ if (l > 2)
+ c = Qfalse;
+ {
+ char *buf;
+
+ buf = ALLOCA_N(char, ep - bp + 1);
+ memcpy(buf, bp, ep - bp);
+ buf[ep - bp] = '\0';
+ iy = cstr2num(buf);
+ }
+ if (bc)
+ iy = f_add(f_negate(iy), INT2FIX(1));
+ set_hash("year", iy);
+ }
+
+ if (!NIL_P(m)) {
+ const char *s, *bp, *ep;
+ size_t l;
+ VALUE im;
+
+ s = RSTRING_PTR(m);
+ while (!isdigit(*s))
+ s++;
+ bp = s;
+ l = strspn(s, "0123456789");
+ ep = s + l;
+ {
+ char *buf;
+
+ buf = ALLOCA_N(char, ep - bp + 1);
+ memcpy(buf, bp, ep - bp);
+ buf[ep - bp] = '\0';
+ im = cstr2num(buf);
+ }
+ set_hash("mon", im);
+ }
+
+ if (!NIL_P(d)) {
+ const char *s, *bp, *ep;
+ size_t l;
+ VALUE id;
+
+ s = RSTRING_PTR(d);
+ while (!isdigit(*s))
+ s++;
+ bp = s;
+ l = strspn(s, "0123456789");
+ ep = s + l;
+ {
+ char *buf;
+
+ buf = ALLOCA_N(char, ep - bp + 1);
+ memcpy(buf, bp, ep - bp);
+ buf[ep - bp] = '\0';
+ id = cstr2num(buf);
+ }
+ set_hash("mday", id);
+ }
+
+ if (!NIL_P(c))
+ set_hash("_comp", c);
+}
+
+#define DAYS "sunday|monday|tuesday|wednesday|thursday|friday|saturday"
+#define MONTHS "january|february|march|april|may|june|july|august|september|october|november|december"
+#define ABBR_DAYS "sun|mon|tue|wed|thu|fri|sat"
+#define ABBR_MONTHS "jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec"
+
+static VALUE
+regcomp(const char *source, long len, int opt)
+{
+ VALUE pat;
+
+ pat = rb_reg_new(source, len, opt);
+ rb_gc_register_mark_object(pat);
+ return pat;
+}
+
+#define REGCOMP(pat,opt) \
+{ \
+ if (NIL_P(pat)) \
+ pat = regcomp(pat##_source, sizeof pat##_source - 1, opt); \
+}
+
+#define REGCOMP_0(pat) REGCOMP(pat, 0)
+#define REGCOMP_I(pat) REGCOMP(pat, ONIG_OPTION_IGNORECASE)
+
+#define MATCH(s,p,c) \
+{ \
+ return match(s, p, hash, c); \
+}
+
+static int
+match(VALUE str, VALUE pat, VALUE hash, int (*cb)(VALUE, VALUE))
+{
+ VALUE m;
+
+ m = f_match(pat, str);
+
+ if (NIL_P(m))
+ return 0;
+
+ (*cb)(m, hash);
+
+ return 1;
+}
+
+#define SUBS(s,p,c) \
+{ \
+ return subs(s, p, hash, c); \
+}
+
+static int
+subs(VALUE str, VALUE pat, VALUE hash, int (*cb)(VALUE, VALUE))
+{
+ VALUE m;
+
+ m = f_match(pat, str);
+
+ if (NIL_P(m))
+ return 0;
+
+ {
+ VALUE be, en;
+
+ be = f_begin(m, INT2FIX(0));
+ en = f_end(m, INT2FIX(0));
+ f_aset2(str, be, LONG2NUM(NUM2LONG(en) - NUM2LONG(be)), asp_string());
+ (*cb)(m, hash);
+ }
+
+ return 1;
+}
+
+struct zone {
+ const char *name;
+ int offset;
+};
+
+static struct zone zones_source[] = {
+ {"ut", 0*3600}, {"gmt", 0*3600}, {"est", -5*3600}, {"edt", -4*3600},
+ {"cst", -6*3600}, {"cdt", -5*3600}, {"mst", -7*3600}, {"mdt", -6*3600},
+ {"pst", -8*3600}, {"pdt", -7*3600},
+ {"a", 1*3600}, {"b", 2*3600}, {"c", 3*3600}, {"d", 4*3600},
+ {"e", 5*3600}, {"f", 6*3600}, {"g", 7*3600}, {"h", 8*3600},
+ {"i", 9*3600}, {"k", 10*3600}, {"l", 11*3600}, {"m", 12*3600},
+ {"n", -1*3600}, {"o", -2*3600}, {"p", -3*3600}, {"q", -4*3600},
+ {"r", -5*3600}, {"s", -6*3600}, {"t", -7*3600}, {"u", -8*3600},
+ {"v", -9*3600}, {"w", -10*3600}, {"x", -11*3600}, {"y", -12*3600},
+ {"z", 0*3600},
+
+ {"utc", 0*3600}, {"wet", 0*3600},
+ {"at", -2*3600}, {"brst",-2*3600}, {"ndt", -(2*3600+1800)},
+ {"art", -3*3600}, {"adt", -3*3600}, {"brt", -3*3600}, {"clst",-3*3600},
+ {"nst", -(3*3600+1800)},
+ {"ast", -4*3600}, {"clt", -4*3600},
+ {"akdt",-8*3600}, {"ydt", -8*3600},
+ {"akst",-9*3600}, {"hadt",-9*3600}, {"hdt", -9*3600}, {"yst", -9*3600},
+ {"ahst",-10*3600},{"cat",-10*3600}, {"hast",-10*3600},{"hst",-10*3600},
+ {"nt", -11*3600},
+ {"idlw",-12*3600},
+ {"bst", 1*3600}, {"cet", 1*3600}, {"fwt", 1*3600}, {"met", 1*3600},
+ {"mewt", 1*3600}, {"mez", 1*3600}, {"swt", 1*3600}, {"wat", 1*3600},
+ {"west", 1*3600},
+ {"cest", 2*3600}, {"eet", 2*3600}, {"fst", 2*3600}, {"mest", 2*3600},
+ {"mesz", 2*3600}, {"sast", 2*3600}, {"sst", 2*3600},
+ {"bt", 3*3600}, {"eat", 3*3600}, {"eest", 3*3600}, {"msk", 3*3600},
+ {"msd", 4*3600}, {"zp4", 4*3600},
+ {"zp5", 5*3600}, {"ist", (5*3600+1800)},
+ {"zp6", 6*3600},
+ {"wast", 7*3600},
+ {"cct", 8*3600}, {"sgt", 8*3600}, {"wadt", 8*3600},
+ {"jst", 9*3600}, {"kst", 9*3600},
+ {"east",10*3600}, {"gst", 10*3600},
+ {"eadt",11*3600},
+ {"idle",12*3600}, {"nzst",12*3600}, {"nzt", 12*3600},
+ {"nzdt",13*3600},
+
+ {"afghanistan", 16200}, {"alaskan", -32400},
+ {"arab", 10800}, {"arabian", 14400},
+ {"arabic", 10800}, {"atlantic", -14400},
+ {"aus central", 34200}, {"aus eastern", 36000},
+ {"azores", -3600}, {"canada central", -21600},
+ {"cape verde", -3600}, {"caucasus", 14400},
+ {"cen. australia", 34200}, {"central america", -21600},
+ {"central asia", 21600}, {"central europe", 3600},
+ {"central european", 3600}, {"central pacific", 39600},
+ {"central", -21600}, {"china", 28800},
+ {"dateline", -43200}, {"e. africa", 10800},
+ {"e. australia", 36000}, {"e. europe", 7200},
+ {"e. south america", -10800}, {"eastern", -18000},
+ {"egypt", 7200}, {"ekaterinburg", 18000},
+ {"fiji", 43200}, {"fle", 7200},
+ {"greenland", -10800}, {"greenwich", 0},
+ {"gtb", 7200}, {"hawaiian", -36000},
+ {"india", 19800}, {"iran", 12600},
+ {"jerusalem", 7200}, {"korea", 32400},
+ {"mexico", -21600}, {"mid-atlantic", -7200},
+ {"mountain", -25200}, {"myanmar", 23400},
+ {"n. central asia", 21600}, {"nepal", 20700},
+ {"new zealand", 43200}, {"newfoundland", -12600},
+ {"north asia east", 28800}, {"north asia", 25200},
+ {"pacific sa", -14400}, {"pacific", -28800},
+ {"romance", 3600}, {"russian", 10800},
+ {"sa eastern", -10800}, {"sa pacific", -18000},
+ {"sa western", -14400}, {"samoa", -39600},
+ {"se asia", 25200}, {"malay peninsula", 28800},
+ {"south africa", 7200}, {"sri lanka", 21600},
+ {"taipei", 28800}, {"tasmania", 36000},
+ {"tokyo", 32400}, {"tonga", 46800},
+ {"us eastern", -18000}, {"us mountain", -25200},
+ {"vladivostok", 36000}, {"w. australia", 28800},
+ {"w. central africa", 3600}, {"w. europe", 3600},
+ {"west asia", 18000}, {"west pacific", 36000},
+ {"yakutsk", 32400}
+};
+
+VALUE
+date_zone_to_diff(VALUE str)
+{
+ VALUE offset = Qnil;
+
+ long l, i;
+ char *s, *dest, *d;
+ int sp = 1;
+
+ l = RSTRING_LEN(str);
+ s = RSTRING_PTR(str);
+
+ dest = d = ALLOCA_N(char, l + 1);
+
+ for (i = 0; i < l; i++) {
+ if (isspace(s[i]) || s[i] == '\0') {
+ if (!sp)
+ *d++ = ' ';
+ sp = 1;
+ }
+ else {
+ if (isalpha(s[i]))
+ *d++ = tolower(s[i]);
+ else
+ *d++ = s[i];
+ sp = 0;
+ }
+ }
+ if (d > dest) {
+ if (*(d - 1) == ' ')
+ --d;
+ *d = '\0';
+ }
+ str = rb_str_new2(dest);
+ {
+#define STD " standard time"
+#define DST " daylight time"
+ char *ss, *ds;
+ long sl, dl;
+ int dst = 0;
+
+ sl = RSTRING_LEN(str) - (sizeof STD - 1);
+ ss = RSTRING_PTR(str) + sl;
+ dl = RSTRING_LEN(str) - (sizeof DST - 1);
+ ds = RSTRING_PTR(str) + dl;
+
+ if (sl >= 0 && strcmp(ss, STD) == 0) {
+ str = rb_str_new(RSTRING_PTR(str), sl);
+ }
+ else if (dl >= 0 && strcmp(ds, DST) == 0) {
+ str = rb_str_new(RSTRING_PTR(str), dl);
+ dst = 1;
+ }
+#undef STD
+#undef DST
+ else {
+#define DST " dst"
+ char *ds;
+ long dl;
+
+ dl = RSTRING_LEN(str) - (sizeof DST - 1);
+ ds = RSTRING_PTR(str) + dl;
+
+ if (dl >= 0 && strcmp(ds, DST) == 0) {
+ str = rb_str_new(RSTRING_PTR(str), dl);
+ dst = 1;
+ }
+#undef DST
+ }
+ {
+ static VALUE zones = Qnil;
+
+ if (NIL_P(zones)) {
+ int i;
+
+ zones = rb_hash_new();
+ rb_gc_register_mark_object(zones);
+ for (i = 0; i < (int)sizeof_array(zones_source); i++) {
+ VALUE name = rb_str_new2(zones_source[i].name);
+ VALUE offset = INT2FIX(zones_source[i].offset);
+ rb_hash_aset(zones, name, offset);
+ }
+ }
+
+ offset = f_aref(zones, str);
+ if (!NIL_P(offset)) {
+ if (dst)
+ offset = f_add(offset, INT2FIX(3600));
+ goto ok;
+ }
+ }
+ {
+ char *s, *p;
+ VALUE sign;
+ VALUE hour = Qnil, min = Qnil, sec = Qnil;
+ VALUE str_orig;
+
+ s = RSTRING_PTR(str);
+ str_orig = str;
+
+ if (strncmp(s, "gmt", 3) == 0 ||
+ strncmp(s, "utc", 3) == 0)
+ s += 3;
+ if (issign(*s)) {
+ sign = rb_str_new(s, 1);
+ s++;
+
+ str = rb_str_new2(s);
+
+ if (p = strchr(s, ':')) {
+ hour = rb_str_new(s, p - s);
+ s = ++p;
+ if (p = strchr(s, ':')) {
+ min = rb_str_new(s, p - s);
+ s = ++p;
+ if (p = strchr(s, ':')) {
+ sec = rb_str_new(s, p - s);
+ }
+ else
+ sec = rb_str_new2(s);
+ }
+ else
+ min = rb_str_new2(s);
+ RB_GC_GUARD(str_orig);
+ goto num;
+ }
+ if (strpbrk(RSTRING_PTR(str), ",.")) {
+ char *a, *b;
+
+ a = ALLOCA_N(char, RSTRING_LEN(str) + 1);
+ strcpy(a, RSTRING_PTR(str));
+ b = strpbrk(a, ",.");
+ *b = '\0';
+ b++;
+
+ hour = cstr2num(a);
+ min = f_mul(rb_rational_new2
+ (cstr2num(b),
+ f_expt(INT2FIX(10),
+ LONG2NUM((long)strlen(b)))),
+ INT2FIX(60));
+ goto num;
+ }
+ {
+ const char *cs = RSTRING_PTR(str);
+ long cl = RSTRING_LEN(str);
+
+ if (cl % 2) {
+ if (cl >= 1)
+ hour = rb_str_new(&cs[0], 1);
+ if (cl >= 3)
+ min = rb_str_new(&cs[1], 2);
+ if (cl >= 5)
+ min = rb_str_new(&cs[3], 2);
+ }
+ else {
+ if (cl >= 2)
+ hour = rb_str_new(&cs[0], 2);
+ if (cl >= 4)
+ min = rb_str_new(&cs[2], 2);
+ if (cl >= 6)
+ sec = rb_str_new(&cs[4], 2);
+ }
+ goto num;
+ }
+ num:
+ if (NIL_P(hour))
+ offset = INT2FIX(0);
+ else {
+ if (TYPE(hour) == T_STRING)
+ hour = str2num(hour);
+ offset = f_mul(hour, INT2FIX(3600));
+ }
+ if (!NIL_P(min)) {
+ if (TYPE(min) == T_STRING)
+ min = str2num(min);
+ offset = f_add(offset, f_mul(min, INT2FIX(60)));
+ }
+ if (!NIL_P(sec))
+ offset = f_add(offset, str2num(sec));
+ if (!NIL_P(sign) &&
+ RSTRING_LEN(sign) == 1 &&
+ *RSTRING_PTR(sign) == '-')
+ offset = f_negate(offset);
+ }
+ }
+ }
+ RB_GC_GUARD(str);
+ ok:
+ return offset;
+}
+
+static int
+day_num(VALUE s)
+{
+ int i;
+
+ for (i = 0; i < (int)sizeof_array(abbr_days); i++)
+ if (strncasecmp(abbr_days[i], RSTRING_PTR(s), 3) == 0)
+ break;
+ return i;
+}
+
+static int
+mon_num(VALUE s)
+{
+ int i;
+
+ for (i = 0; i < (int)sizeof_array(abbr_months); i++)
+ if (strncasecmp(abbr_months[i], RSTRING_PTR(s), 3) == 0)
+ break;
+ return i + 1;
+}
+
+static int
+parse_day_cb(VALUE m, VALUE hash)
+{
+ VALUE s;
+
+ s = rb_reg_nth_match(1, m);
+ set_hash("wday", INT2FIX(day_num(s)));
+ return 1;
+}
+
+static int
+parse_day(VALUE str, VALUE hash)
+{
+ static const char pat_source[] = "\\b(" ABBR_DAYS ")[^-\\d\\s]*";
+ static VALUE pat = Qnil;
+
+ REGCOMP_I(pat);
+ SUBS(str, pat, parse_day_cb);
+}
+
+static int
+parse_time2_cb(VALUE m, VALUE hash)
+{
+ VALUE h, min, s, f, p;
+
+ h = rb_reg_nth_match(1, m);
+ h = str2num(h);
+
+ min = rb_reg_nth_match(2, m);
+ if (!NIL_P(min))
+ min = str2num(min);
+
+ s = rb_reg_nth_match(3, m);
+ if (!NIL_P(s))
+ s = str2num(s);
+
+ f = rb_reg_nth_match(4, m);
+
+ if (!NIL_P(f))
+ f = rb_rational_new2(str2num(f),
+ f_expt(INT2FIX(10), LONG2NUM(RSTRING_LEN(f))));
+
+ p = rb_reg_nth_match(5, m);
+
+ if (!NIL_P(p)) {
+ int ih = NUM2INT(h);
+ ih %= 12;
+ if (*RSTRING_PTR(p) == 'P' || *RSTRING_PTR(p) == 'p')
+ ih += 12;
+ h = INT2FIX(ih);
+ }
+
+ set_hash("hour", h);
+ if (!NIL_P(min))
+ set_hash("min", min);
+ if (!NIL_P(s))
+ set_hash("sec", s);
+ if (!NIL_P(f))
+ set_hash("sec_fraction", f);
+
+ return 1;
+}
+
+static int
+parse_time_cb(VALUE m, VALUE hash)
+{
+ static const char pat_source[] =
+ "\\A(\\d+)h?"
+ "(?:\\s*:?\\s*(\\d+)m?"
+ "(?:"
+ "\\s*:?\\s*(\\d+)(?:[,.](\\d+))?s?"
+ ")?"
+ ")?"
+ "(?:\\s*([ap])(?:m\\b|\\.m\\.))?";
+ static VALUE pat = Qnil;
+ VALUE s1, s2;
+
+ s1 = rb_reg_nth_match(1, m);
+ s2 = rb_reg_nth_match(2, m);
+
+ if (!NIL_P(s2))
+ set_hash("zone", s2);
+
+ REGCOMP_I(pat);
+
+ {
+ VALUE m = f_match(pat, s1);
+
+ if (NIL_P(m))
+ return 0;
+ parse_time2_cb(m, hash);
+ }
+
+ return 1;
+}
+
+static int
+parse_time(VALUE str, VALUE hash)
+{
+ static const char pat_source[] =
+ "("
+ "(?:"
+ "\\d+\\s*:\\s*\\d+"
+ "(?:"
+ "\\s*:\\s*\\d+(?:[,.]\\d*)?"
+ ")?"
+ "|"
+ "\\d+\\s*h(?:\\s*\\d+m?(?:\\s*\\d+s?)?)?"
+ ")"
+ "(?:"
+ "\\s*"
+ "[ap](?:m\\b|\\.m\\.)"
+ ")?"
+ "|"
+ "\\d+\\s*[ap](?:m\\b|\\.m\\.)"
+ ")"
+ "(?:"
+ "\\s*"
+ "("
+ "(?:gmt|utc?)?[-+]\\d+(?:[,.:]\\d+(?::\\d+)?)?"
+ "|"
+ "[[:alpha:].\\s]+(?:standard|daylight)\\stime\\b"
+ "|"
+ "[[:alpha:]]+(?:\\sdst)?\\b"
+ ")"
+ ")?";
+ static VALUE pat = Qnil;
+
+ REGCOMP_I(pat);
+ SUBS(str, pat, parse_time_cb);
+}
+
+static int
+parse_eu_cb(VALUE m, VALUE hash)
+{
+ VALUE y, mon, d, b;
+
+ d = rb_reg_nth_match(1, m);
+ mon = rb_reg_nth_match(2, m);
+ b = rb_reg_nth_match(3, m);
+ y = rb_reg_nth_match(4, m);
+
+ mon = INT2FIX(mon_num(mon));
+
+ s3e(hash, y, mon, d, !NIL_P(b) &&
+ (*RSTRING_PTR(b) == 'B' ||
+ *RSTRING_PTR(b) == 'b'));
+ return 1;
+}
+
+static int
+parse_eu(VALUE str, VALUE hash)
+{
+ static const char pat_source[] =
+ "'?(\\d+)[^-\\d\\s]*"
+ "\\s*"
+ "(" ABBR_MONTHS ")[^-\\d\\s']*"
+ "(?:"
+ "\\s*"
+ "(c(?:e|\\.e\\.)|b(?:ce|\\.c\\.e\\.)|a(?:d|\\.d\\.)|b(?:c|\\.c\\.))?"
+ "\\s*"
+ "('?-?\\d+(?:(?:st|nd|rd|th)\\b)?)"
+ ")?";
+ static VALUE pat = Qnil;
+
+ REGCOMP_I(pat);
+ SUBS(str, pat, parse_eu_cb);
+}
+
+static int
+parse_us_cb(VALUE m, VALUE hash)
+{
+ VALUE y, mon, d, b;
+
+ mon = rb_reg_nth_match(1, m);
+ d = rb_reg_nth_match(2, m);
+ b = rb_reg_nth_match(3, m);
+ y = rb_reg_nth_match(4, m);
+
+ mon = INT2FIX(mon_num(mon));
+
+ s3e(hash, y, mon, d, !NIL_P(b) &&
+ (*RSTRING_PTR(b) == 'B' ||
+ *RSTRING_PTR(b) == 'b'));
+ return 1;
+}
+
+static int
+parse_us(VALUE str, VALUE hash)
+{
+ static const char pat_source[] =
+ "\\b(" ABBR_MONTHS ")[^-\\d\\s']*"
+ "\\s*"
+ "('?\\d+)[^-\\d\\s']*"
+ "(?:"
+ "\\s*"
+ "(c(?:e|\\.e\\.)|b(?:ce|\\.c\\.e\\.)|a(?:d|\\.d\\.)|b(?:c|\\.c\\.))?"
+ "\\s*"
+ "('?-?\\d+)"
+ ")?";
+ static VALUE pat = Qnil;
+
+ REGCOMP_I(pat);
+ SUBS(str, pat, parse_us_cb);
+}
+
+static int
+parse_iso_cb(VALUE m, VALUE hash)
+{
+ VALUE y, mon, d;
+
+ y = rb_reg_nth_match(1, m);
+ mon = rb_reg_nth_match(2, m);
+ d = rb_reg_nth_match(3, m);
+
+ s3e(hash, y, mon, d, 0);
+ return 1;
+}
+
+static int
+parse_iso(VALUE str, VALUE hash)
+{
+ static const char pat_source[] = "('?[-+]?\\d+)-(\\d+)-('?-?\\d+)";
+ static VALUE pat = Qnil;
+
+ REGCOMP_0(pat);
+ SUBS(str, pat, parse_iso_cb);
+}
+
+static int
+parse_iso21_cb(VALUE m, VALUE hash)
+{
+ VALUE y, w, d;
+
+ y = rb_reg_nth_match(1, m);
+ w = rb_reg_nth_match(2, m);
+ d = rb_reg_nth_match(3, m);
+
+ if (!NIL_P(y))
+ set_hash("cwyear", str2num(y));
+ set_hash("cweek", str2num(w));
+ if (!NIL_P(d))
+ set_hash("cwday", str2num(d));
+
+ return 1;
+}
+
+static int
+parse_iso21(VALUE str, VALUE hash)
+{
+ static const char pat_source[] =
+ "\\b(\\d{2}|\\d{4})?-?w(\\d{2})(?:-?(\\d))?\\b";
+ static VALUE pat = Qnil;
+
+ REGCOMP_I(pat);
+ SUBS(str, pat, parse_iso21_cb);
+}
+
+static int
+parse_iso22_cb(VALUE m, VALUE hash)
+{
+ VALUE d;
+
+ d = rb_reg_nth_match(1, m);
+ set_hash("cwday", str2num(d));
+ return 1;
+}
+
+static int
+parse_iso22(VALUE str, VALUE hash)
+{
+ static const char pat_source[] = "-w-(\\d)\\b";
+ static VALUE pat = Qnil;
+
+ REGCOMP_I(pat);
+ SUBS(str, pat, parse_iso22_cb);
+}
+
+static int
+parse_iso23_cb(VALUE m, VALUE hash)
+{
+ VALUE mon, d;
+
+ mon = rb_reg_nth_match(1, m);
+ d = rb_reg_nth_match(2, m);
+
+ if (!NIL_P(mon))
+ set_hash("mon", str2num(mon));
+ set_hash("mday", str2num(d));
+
+ return 1;
+}
+
+static int
+parse_iso23(VALUE str, VALUE hash)
+{
+ static const char pat_source[] = "--(\\d{2})?-(\\d{2})\\b";
+ static VALUE pat = Qnil;
+
+ REGCOMP_0(pat);
+ SUBS(str, pat, parse_iso23_cb);
+}
+
+static int
+parse_iso24_cb(VALUE m, VALUE hash)
+{
+ VALUE mon, d;
+
+ mon = rb_reg_nth_match(1, m);
+ d = rb_reg_nth_match(2, m);
+
+ set_hash("mon", str2num(mon));
+ if (!NIL_P(d))
+ set_hash("mday", str2num(d));
+
+ return 1;
+}
+
+static int
+parse_iso24(VALUE str, VALUE hash)
+{
+ static const char pat_source[] = "--(\\d{2})(\\d{2})?\\b";
+ static VALUE pat = Qnil;
+
+ REGCOMP_0(pat);
+ SUBS(str, pat, parse_iso24_cb);
+}
+
+static int
+parse_iso25_cb(VALUE m, VALUE hash)
+{
+ VALUE y, d;
+
+ y = rb_reg_nth_match(1, m);
+ d = rb_reg_nth_match(2, m);
+
+ set_hash("year", str2num(y));
+ set_hash("yday", str2num(d));
+
+ return 1;
+}
+
+static int
+parse_iso25(VALUE str, VALUE hash)
+{
+ static const char pat0_source[] = "[,.](\\d{2}|\\d{4})-\\d{3}\\b";
+ static VALUE pat0 = Qnil;
+ static const char pat_source[] = "\\b(\\d{2}|\\d{4})-(\\d{3})\\b";
+ static VALUE pat = Qnil;
+
+ REGCOMP_0(pat0);
+ REGCOMP_0(pat);
+
+ if (!NIL_P(f_match(pat0, str)))
+ return 0;
+ SUBS(str, pat, parse_iso25_cb);
+}
+
+static int
+parse_iso26_cb(VALUE m, VALUE hash)
+{
+ VALUE d;
+
+ d = rb_reg_nth_match(1, m);
+ set_hash("yday", str2num(d));
+
+ return 1;
+}
+static int
+parse_iso26(VALUE str, VALUE hash)
+{
+ static const char pat0_source[] = "\\d-\\d{3}\\b";
+ static VALUE pat0 = Qnil;
+ static const char pat_source[] = "\\b-(\\d{3})\\b";
+ static VALUE pat = Qnil;
+
+ REGCOMP_0(pat0);
+ REGCOMP_0(pat);
+
+ if (!NIL_P(f_match(pat0, str)))
+ return 0;
+ SUBS(str, pat, parse_iso26_cb);
+}
+
+static int
+parse_iso2(VALUE str, VALUE hash)
+{
+ if (parse_iso21(str, hash))
+ goto ok;
+ if (parse_iso22(str, hash))
+ goto ok;
+ if (parse_iso23(str, hash))
+ goto ok;
+ if (parse_iso24(str, hash))
+ goto ok;
+ if (parse_iso25(str, hash))
+ goto ok;
+ if (parse_iso26(str, hash))
+ goto ok;
+ return 0;
+
+ ok:
+ return 1;
+}
+
+static int
+gengo(int c)
+{
+ int e;
+
+ switch (c) {
+ case 'M': case 'm': e = 1867; break;
+ case 'T': case 't': e = 1911; break;
+ case 'S': case 's': e = 1925; break;
+ case 'H': case 'h': e = 1988; break;
+ default: e = 0; break;
+ }
+ return e;
+}
+
+static int
+parse_jis_cb(VALUE m, VALUE hash)
+{
+ VALUE e, y, mon, d;
+ int ep;
+
+ e = rb_reg_nth_match(1, m);
+ y = rb_reg_nth_match(2, m);
+ mon = rb_reg_nth_match(3, m);
+ d = rb_reg_nth_match(4, m);
+
+ ep = gengo(*RSTRING_PTR(e));
+
+ set_hash("year", f_add(str2num(y), INT2FIX(ep)));
+ set_hash("mon", str2num(mon));
+ set_hash("mday", str2num(d));
+
+ return 1;
+}
+
+static int
+parse_jis(VALUE str, VALUE hash)
+{
+ static const char pat_source[] = "\\b([mtsh])(\\d+)\\.(\\d+)\\.(\\d+)";
+ static VALUE pat = Qnil;
+
+ REGCOMP_I(pat);
+ SUBS(str, pat, parse_jis_cb);
+}
+
+static int
+parse_vms11_cb(VALUE m, VALUE hash)
+{
+ VALUE y, mon, d;
+
+ d = rb_reg_nth_match(1, m);
+ mon = rb_reg_nth_match(2, m);
+ y = rb_reg_nth_match(3, m);
+
+ mon = INT2FIX(mon_num(mon));
+
+ s3e(hash, y, mon, d, 0);
+ return 1;
+}
+
+static int
+parse_vms11(VALUE str, VALUE hash)
+{
+ static const char pat_source[] =
+ "('?-?\\d+)-(" ABBR_MONTHS ")[^-]*"
+ "-('?-?\\d+)";
+ static VALUE pat = Qnil;
+
+ REGCOMP_I(pat);
+ SUBS(str, pat, parse_vms11_cb);
+}
+
+static int
+parse_vms12_cb(VALUE m, VALUE hash)
+{
+ VALUE y, mon, d;
+
+ mon = rb_reg_nth_match(1, m);
+ d = rb_reg_nth_match(2, m);
+ y = rb_reg_nth_match(3, m);
+
+ mon = INT2FIX(mon_num(mon));
+
+ s3e(hash, y, mon, d, 0);
+ return 1;
+}
+
+static int
+parse_vms12(VALUE str, VALUE hash)
+{
+ static const char pat_source[] =
+ "\\b(" ABBR_MONTHS ")[^-]*"
+ "-('?-?\\d+)(?:-('?-?\\d+))?";
+ static VALUE pat = Qnil;
+
+ REGCOMP_I(pat);
+ SUBS(str, pat, parse_vms12_cb);
+}
+
+static int
+parse_vms(VALUE str, VALUE hash)
+{
+ if (parse_vms11(str, hash))
+ goto ok;
+ if (parse_vms12(str, hash))
+ goto ok;
+ return 0;
+
+ ok:
+ return 1;
+}
+
+static int
+parse_sla_cb(VALUE m, VALUE hash)
+{
+ VALUE y, mon, d;
+
+ y = rb_reg_nth_match(1, m);
+ mon = rb_reg_nth_match(2, m);
+ d = rb_reg_nth_match(3, m);
+
+ s3e(hash, y, mon, d, 0);
+ return 1;
+}
+
+static int
+parse_sla(VALUE str, VALUE hash)
+{
+ static const char pat_source[] =
+ "('?-?\\d+)/\\s*('?\\d+)(?:\\D\\s*('?-?\\d+))?";
+ static VALUE pat = Qnil;
+
+ REGCOMP_I(pat);
+ SUBS(str, pat, parse_sla_cb);
+}
+
+static int
+parse_dot_cb(VALUE m, VALUE hash)
+{
+ VALUE y, mon, d;
+
+ y = rb_reg_nth_match(1, m);
+ mon = rb_reg_nth_match(2, m);
+ d = rb_reg_nth_match(3, m);
+
+ s3e(hash, y, mon, d, 0);
+ return 1;
+}
+
+static int
+parse_dot(VALUE str, VALUE hash)
+{
+ static const char pat_source[] =
+ "('?-?\\d+)\\.\\s*('?\\d+)\\.\\s*('?-?\\d+)";
+ static VALUE pat = Qnil;
+
+ REGCOMP_I(pat);
+ SUBS(str, pat, parse_dot_cb);
+}
+
+static int
+parse_year_cb(VALUE m, VALUE hash)
+{
+ VALUE y;
+
+ y = rb_reg_nth_match(1, m);
+ set_hash("year", str2num(y));
+ return 1;
+}
+
+static int
+parse_year(VALUE str, VALUE hash)
+{
+ static const char pat_source[] = "'(\\d+)\\b";
+ static VALUE pat = Qnil;
+
+ REGCOMP_0(pat);
+ SUBS(str, pat, parse_year_cb);
+}
+
+static int
+parse_mon_cb(VALUE m, VALUE hash)
+{
+ VALUE mon;
+
+ mon = rb_reg_nth_match(1, m);
+ set_hash("mon", INT2FIX(mon_num(mon)));
+ return 1;
+}
+
+static int
+parse_mon(VALUE str, VALUE hash)
+{
+ static const char pat_source[] = "\\b(" ABBR_MONTHS ")\\S*";
+ static VALUE pat = Qnil;
+
+ REGCOMP_I(pat);
+ SUBS(str, pat, parse_mon_cb);
+}
+
+static int
+parse_mday_cb(VALUE m, VALUE hash)
+{
+ VALUE d;
+
+ d = rb_reg_nth_match(1, m);
+ set_hash("mday", str2num(d));
+ return 1;
+}
+
+static int
+parse_mday(VALUE str, VALUE hash)
+{
+ static const char pat_source[] = "(\\d+)(st|nd|rd|th)\\b";
+ static VALUE pat = Qnil;
+
+ REGCOMP_I(pat);
+ SUBS(str, pat, parse_mday_cb);
+}
+
+static int
+n2i(const char *s, long f, long w)
+{
+ long e, i;
+ int v;
+
+ e = f + w;
+ v = 0;
+ for (i = f; i < e; i++) {
+ v *= 10;
+ v += s[i] - '0';
+ }
+ return v;
+}
+
+static int
+parse_ddd_cb(VALUE m, VALUE hash)
+{
+ VALUE s1, s2, s3, s4, s5;
+ const char *cs2, *cs3, *cs5;
+ long l2, l3, l4, l5;
+
+ s1 = rb_reg_nth_match(1, m);
+ s2 = rb_reg_nth_match(2, m);
+ s3 = rb_reg_nth_match(3, m);
+ s4 = rb_reg_nth_match(4, m);
+ s5 = rb_reg_nth_match(5, m);
+
+ cs2 = RSTRING_PTR(s2);
+ l2 = RSTRING_LEN(s2);
+
+ switch (l2) {
+ case 2:
+ if (NIL_P(s3) && !NIL_P(s4))
+ set_hash("sec", INT2FIX(n2i(cs2, l2-2, 2)));
+ else
+ set_hash("mday", INT2FIX(n2i(cs2, 0, 2)));
+ break;
+ case 4:
+ if (NIL_P(s3) && !NIL_P(s4)) {
+ set_hash("sec", INT2FIX(n2i(cs2, l2-2, 2)));
+ set_hash("min", INT2FIX(n2i(cs2, l2-4, 2)));
+ }
+ else {
+ set_hash("mon", INT2FIX(n2i(cs2, 0, 2)));
+ set_hash("mday", INT2FIX(n2i(cs2, 2, 2)));
+ }
+ break;
+ case 6:
+ if (NIL_P(s3) && !NIL_P(s4)) {
+ set_hash("sec", INT2FIX(n2i(cs2, l2-2, 2)));
+ set_hash("min", INT2FIX(n2i(cs2, l2-4, 2)));
+ set_hash("hour", INT2FIX(n2i(cs2, l2-6, 2)));
+ }
+ else {
+ int y = n2i(cs2, 0, 2);
+ if (!NIL_P(s1) && *RSTRING_PTR(s1) == '-')
+ y = -y;
+ set_hash("year", INT2FIX(y));
+ set_hash("mon", INT2FIX(n2i(cs2, 2, 2)));
+ set_hash("mday", INT2FIX(n2i(cs2, 4, 2)));
+ }
+ break;
+ case 8:
+ case 10:
+ case 12:
+ case 14:
+ if (NIL_P(s3) && !NIL_P(s4)) {
+ set_hash("sec", INT2FIX(n2i(cs2, l2-2, 2)));
+ set_hash("min", INT2FIX(n2i(cs2, l2-4, 2)));
+ set_hash("hour", INT2FIX(n2i(cs2, l2-6, 2)));
+ set_hash("mday", INT2FIX(n2i(cs2, l2-8, 2)));
+ if (l2 >= 10)
+ set_hash("mon", INT2FIX(n2i(cs2, l2-10, 2)));
+ if (l2 == 12) {
+ int y = n2i(cs2, l2-12, 2);
+ if (!NIL_P(s1) && *RSTRING_PTR(s1) == '-')
+ y = -y;
+ set_hash("year", INT2FIX(y));
+ }
+ if (l2 == 14) {
+ int y = n2i(cs2, l2-14, 4);
+ if (!NIL_P(s1) && *RSTRING_PTR(s1) == '-')
+ y = -y;
+ set_hash("year", INT2FIX(y));
+ set_hash("_comp", Qfalse);
+ }
+ }
+ else {
+ int y = n2i(cs2, 0, 4);
+ if (!NIL_P(s1) && *RSTRING_PTR(s1) == '-')
+ y = -y;
+ set_hash("year", INT2FIX(y));
+ set_hash("mon", INT2FIX(n2i(cs2, 4, 2)));
+ set_hash("mday", INT2FIX(n2i(cs2, 6, 2)));
+ if (l2 >= 10)
+ set_hash("hour", INT2FIX(n2i(cs2, 8, 2)));
+ if (l2 >= 12)
+ set_hash("min", INT2FIX(n2i(cs2, 10, 2)));
+ if (l2 >= 14)
+ set_hash("sec", INT2FIX(n2i(cs2, 12, 2)));
+ set_hash("_comp", Qfalse);
+ }
+ break;
+ case 3:
+ if (NIL_P(s3) && !NIL_P(s4)) {
+ set_hash("sec", INT2FIX(n2i(cs2, l2-2, 2)));
+ set_hash("min", INT2FIX(n2i(cs2, l2-3, 1)));
+ }
+ else
+ set_hash("yday", INT2FIX(n2i(cs2, 0, 3)));
+ break;
+ case 5:
+ if (NIL_P(s3) && !NIL_P(s4)) {
+ set_hash("sec", INT2FIX(n2i(cs2, l2-2, 2)));
+ set_hash("min", INT2FIX(n2i(cs2, l2-4, 2)));
+ set_hash("hour", INT2FIX(n2i(cs2, l2-5, 1)));
+ }
+ else {
+ int y = n2i(cs2, 0, 2);
+ if (!NIL_P(s1) && *RSTRING_PTR(s1) == '-')
+ y = -y;
+ set_hash("year", INT2FIX(y));
+ set_hash("yday", INT2FIX(n2i(cs2, 2, 3)));
+ }
+ break;
+ case 7:
+ if (NIL_P(s3) && !NIL_P(s4)) {
+ set_hash("sec", INT2FIX(n2i(cs2, l2-2, 2)));
+ set_hash("min", INT2FIX(n2i(cs2, l2-4, 2)));
+ set_hash("hour", INT2FIX(n2i(cs2, l2-6, 2)));
+ set_hash("mday", INT2FIX(n2i(cs2, l2-7, 1)));
+ }
+ else {
+ int y = n2i(cs2, 0, 4);
+ if (!NIL_P(s1) && *RSTRING_PTR(s1) == '-')
+ y = -y;
+ set_hash("year", INT2FIX(y));
+ set_hash("yday", INT2FIX(n2i(cs2, 4, 3)));
+ }
+ break;
+ }
+ RB_GC_GUARD(s2);
+ if (!NIL_P(s3)) {
+ cs3 = RSTRING_PTR(s3);
+ l3 = RSTRING_LEN(s3);
+
+ if (!NIL_P(s4)) {
+ switch (l3) {
+ case 2:
+ case 4:
+ case 6:
+ set_hash("sec", INT2FIX(n2i(cs3, l3-2, 2)));
+ if (l3 >= 4)
+ set_hash("min", INT2FIX(n2i(cs3, l3-4, 2)));
+ if (l3 >= 6)
+ set_hash("hour", INT2FIX(n2i(cs3, l3-6, 2)));
+ break;
+ }
+ }
+ else {
+ switch (l3) {
+ case 2:
+ case 4:
+ case 6:
+ set_hash("hour", INT2FIX(n2i(cs3, 0, 2)));
+ if (l3 >= 4)
+ set_hash("min", INT2FIX(n2i(cs3, 2, 2)));
+ if (l3 >= 6)
+ set_hash("sec", INT2FIX(n2i(cs3, 4, 2)));
+ break;
+ }
+ }
+ RB_GC_GUARD(s3);
+ }
+ if (!NIL_P(s4)) {
+ l4 = RSTRING_LEN(s4);
+
+ set_hash("sec_fraction",
+ rb_rational_new2(str2num(s4),
+ f_expt(INT2FIX(10), LONG2NUM(l4))));
+ }
+ if (!NIL_P(s5)) {
+ cs5 = RSTRING_PTR(s5);
+ l5 = RSTRING_LEN(s5);
+
+ set_hash("zone", s5);
+
+ if (*cs5 == '[') {
+ char *buf = ALLOCA_N(char, l5 + 1);
+ char *s1, *s2, *s3;
+ VALUE zone;
+
+ memcpy(buf, cs5, l5);
+ buf[l5 - 1] = '\0';
+
+ s1 = buf + 1;
+ s2 = strchr(buf, ':');
+ if (s2) {
+ *s2 = '\0';
+ s2++;
+ }
+ if (s2)
+ s3 = s2;
+ else
+ s3 = s1;
+ zone = rb_str_new2(s3);
+ set_hash("zone", zone);
+ if (isdigit(*s1))
+ *--s1 = '+';
+ set_hash("offset", date_zone_to_diff(rb_str_new2(s1)));
+ }
+ RB_GC_GUARD(s5);
+ }
+
+ return 1;
+}
+
+static int
+parse_ddd(VALUE str, VALUE hash)
+{
+ static const char pat_source[] =
+ "([-+]?)(\\d{2,14})"
+ "(?:"
+ "\\s*"
+ "t?"
+ "\\s*"
+ "(\\d{2,6})?(?:[,.](\\d*))?"
+ ")?"
+ "(?:"
+ "\\s*"
+ "("
+ "z\\b"
+ "|"
+ "[-+]\\d{1,4}\\b"
+ "|"
+ "\\[[-+]?\\d[^\\]]*\\]"
+ ")"
+ ")?";
+ static VALUE pat = Qnil;
+
+ REGCOMP_I(pat);
+ SUBS(str, pat, parse_ddd_cb);
+}
+
+static int
+parse_bc_cb(VALUE m, VALUE hash)
+{
+ VALUE y;
+
+ y = ref_hash("year");
+ if (!NIL_P(y))
+ set_hash("year", f_add(f_negate(y), INT2FIX(1)));
+
+ return 1;
+}
+
+static int
+parse_bc(VALUE str, VALUE hash)
+{
+ static const char pat_source[] =
+ "\\b(bc\\b|bce\\b|b\\.c\\.|b\\.c\\.e\\.)";
+ static VALUE pat = Qnil;
+
+ REGCOMP_I(pat);
+ SUBS(str, pat, parse_bc_cb);
+}
+
+static int
+parse_frag_cb(VALUE m, VALUE hash)
+{
+ VALUE s, n;
+
+ s = rb_reg_nth_match(1, m);
+
+ if (!NIL_P(ref_hash("hour")) && NIL_P(ref_hash("mday"))) {
+ n = str2num(s);
+ if (f_ge_p(n, INT2FIX(1)) &&
+ f_le_p(n, INT2FIX(31)))
+ set_hash("mday", n);
+ }
+ if (!NIL_P(ref_hash("mday")) && NIL_P(ref_hash("hour"))) {
+ n = str2num(s);
+ if (f_ge_p(n, INT2FIX(0)) &&
+ f_le_p(n, INT2FIX(24)))
+ set_hash("hour", n);
+ }
+
+ return 1;
+}
+
+static int
+parse_frag(VALUE str, VALUE hash)
+{
+ static const char pat_source[] = "\\A\\s*(\\d{1,2})\\s*\\z";
+ static VALUE pat = Qnil;
+
+ REGCOMP_I(pat);
+ SUBS(str, pat, parse_frag_cb);
+}
+
+#define HAVE_ALPHA (1<<0)
+#define HAVE_DIGIT (1<<1)
+#define HAVE_DASH (1<<2)
+#define HAVE_DOT (1<<3)
+#define HAVE_SLASH (1<<4)
+
+static unsigned
+check_class(VALUE s)
+{
+ unsigned flags;
+ long i;
+
+ flags = 0;
+ for (i = 0; i < RSTRING_LEN(s); i++) {
+ if (isalpha(RSTRING_PTR(s)[i]))
+ flags |= HAVE_ALPHA;
+ if (isdigit(RSTRING_PTR(s)[i]))
+ flags |= HAVE_DIGIT;
+ if (RSTRING_PTR(s)[i] == '-')
+ flags |= HAVE_DASH;
+ if (RSTRING_PTR(s)[i] == '.')
+ flags |= HAVE_DOT;
+ if (RSTRING_PTR(s)[i] == '/')
+ flags |= HAVE_SLASH;
+ }
+ return flags;
+}
+
+#define HAVE_ELEM_P(x) ((check_class(str) & (x)) == (x))
+
+VALUE
+date__parse(VALUE str, VALUE comp)
+{
+ VALUE backref, hash;
+
+ backref = rb_backref_get();
+ rb_match_busy(backref);
+
+ {
+ static const char pat_source[] = "[^-+',./:@[:alnum:]\\[\\]]+";
+ static VALUE pat = Qnil;
+
+ REGCOMP_0(pat);
+ str = rb_str_dup(str);
+ f_gsub_bang(str, pat, asp_string());
+ }
+
+ hash = rb_hash_new();
+ set_hash("_comp", comp);
+
+ if (HAVE_ELEM_P(HAVE_ALPHA))
+ parse_day(str, hash);
+ if (HAVE_ELEM_P(HAVE_DIGIT))
+ parse_time(str, hash);
+
+ if (HAVE_ELEM_P(HAVE_ALPHA|HAVE_DIGIT))
+ if (parse_eu(str, hash))
+ goto ok;
+ if (HAVE_ELEM_P(HAVE_ALPHA|HAVE_DIGIT))
+ if (parse_us(str, hash))
+ goto ok;
+ if (HAVE_ELEM_P(HAVE_DIGIT|HAVE_DASH))
+ if (parse_iso(str, hash))
+ goto ok;
+ if (HAVE_ELEM_P(HAVE_DIGIT|HAVE_DOT))
+ if (parse_jis(str, hash))
+ goto ok;
+ if (HAVE_ELEM_P(HAVE_ALPHA|HAVE_DIGIT|HAVE_DASH))
+ if (parse_vms(str, hash))
+ goto ok;
+ if (HAVE_ELEM_P(HAVE_DIGIT|HAVE_SLASH))
+ if (parse_sla(str, hash))
+ goto ok;
+ if (HAVE_ELEM_P(HAVE_DIGIT|HAVE_DOT))
+ if (parse_dot(str, hash))
+ goto ok;
+ if (HAVE_ELEM_P(HAVE_DIGIT))
+ if (parse_iso2(str, hash))
+ goto ok;
+ if (HAVE_ELEM_P(HAVE_DIGIT))
+ if (parse_year(str, hash))
+ goto ok;
+ if (HAVE_ELEM_P(HAVE_ALPHA))
+ if (parse_mon(str, hash))
+ goto ok;
+ if (HAVE_ELEM_P(HAVE_DIGIT))
+ if (parse_mday(str, hash))
+ goto ok;
+ if (HAVE_ELEM_P(HAVE_DIGIT))
+ if (parse_ddd(str, hash))
+ goto ok;
+
+ ok:
+ if (HAVE_ELEM_P(HAVE_ALPHA))
+ parse_bc(str, hash);
+ if (HAVE_ELEM_P(HAVE_DIGIT))
+ parse_frag(str, hash);
+
+ {
+ if (RTEST(ref_hash("_comp"))) {
+ VALUE y;
+
+ y = ref_hash("cwyear");
+ if (!NIL_P(y))
+ if (f_ge_p(y, INT2FIX(0)) && f_le_p(y, INT2FIX(99))) {
+ if (f_ge_p(y, INT2FIX(69)))
+ set_hash("cwyear", f_add(y, INT2FIX(1900)));
+ else
+ set_hash("cwyear", f_add(y, INT2FIX(2000)));
+ }
+ y = ref_hash("year");
+ if (!NIL_P(y))
+ if (f_ge_p(y, INT2FIX(0)) && f_le_p(y, INT2FIX(99))) {
+ if (f_ge_p(y, INT2FIX(69)))
+ set_hash("year", f_add(y, INT2FIX(1900)));
+ else
+ set_hash("year", f_add(y, INT2FIX(2000)));
+ }
+ }
+ }
+
+ del_hash("_comp");
+
+ {
+ VALUE zone = ref_hash("zone");
+ if (!NIL_P(zone) && NIL_P(ref_hash("offset")))
+ set_hash("offset", date_zone_to_diff(zone));
+ }
+
+ rb_backref_set(backref);
+
+ return hash;
+}
+
+static VALUE
+comp_year69(VALUE y)
+{
+ if (f_ge_p(y, INT2FIX(69)))
+ return f_add(y, INT2FIX(1900));
+ return f_add(y, INT2FIX(2000));
+}
+
+static VALUE
+comp_year50(VALUE y)
+{
+ if (f_ge_p(y, INT2FIX(50)))
+ return f_add(y, INT2FIX(1900));
+ return f_add(y, INT2FIX(2000));
+}
+
+static VALUE
+sec_fraction(VALUE f)
+{
+ return rb_rational_new2(str2num(f),
+ f_expt(INT2FIX(10),
+ LONG2NUM(RSTRING_LEN(f))));
+}
+
+#define SNUM 14
+
+static int
+iso8601_ext_datetime_cb(VALUE m, VALUE hash)
+{
+ VALUE s[SNUM + 1], y;
+
+ {
+ int i;
+ s[0] = Qnil;
+ for (i = 1; i <= SNUM; i++)
+ s[i] = rb_reg_nth_match(i, m);
+ }
+
+ if (!NIL_P(s[3])) {
+ set_hash("mday", str2num(s[3]));
+ if (strcmp(RSTRING_PTR(s[1]), "-") != 0) {
+ y = str2num(s[1]);
+ if (RSTRING_LEN(s[1]) < 4)
+ y = comp_year69(y);
+ set_hash("year", y);
+ }
+ if (NIL_P(s[2])) {
+ if (strcmp(RSTRING_PTR(s[1]), "-") != 0)
+ return 0;
+ }
+ else
+ set_hash("mon", str2num(s[2]));
+ }
+ else if (!NIL_P(s[5])) {
+ set_hash("yday", str2num(s[5]));
+ if (!NIL_P(s[4])) {
+ y = str2num(s[4]);
+ if (RSTRING_LEN(s[4]) < 4)
+ y = comp_year69(y);
+ set_hash("year", y);
+ }
+ }
+ else if (!NIL_P(s[8])) {
+ set_hash("cweek", str2num(s[7]));
+ set_hash("cwday", str2num(s[8]));
+ if (!NIL_P(s[6])) {
+ y = str2num(s[6]);
+ if (RSTRING_LEN(s[6]) < 4)
+ y = comp_year69(y);
+ set_hash("cwyear", y);
+ }
+ }
+ else if (!NIL_P(s[9])) {
+ set_hash("cwday", str2num(s[9]));
+ }
+ if (!NIL_P(s[10])) {
+ set_hash("hour", str2num(s[10]));
+ set_hash("min", str2num(s[11]));
+ if (!NIL_P(s[12]))
+ set_hash("sec", str2num(s[12]));
+ }
+ if (!NIL_P(s[13])) {
+ set_hash("sec_fraction", sec_fraction(s[13]));
+ }
+ if (!NIL_P(s[14])) {
+ set_hash("zone", s[14]);
+ set_hash("offset", date_zone_to_diff(s[14]));
+ }
+
+ return 1;
+}
+
+static int
+iso8601_ext_datetime(VALUE str, VALUE hash)
+{
+ static const char pat_source[] =
+ "\\A\\s*(?:([-+]?\\d{2,}|-)-(\\d{2})?-(\\d{2})|"
+ "([-+]?\\d{2,})?-(\\d{3})|"
+ "(\\d{4}|\\d{2})?-w(\\d{2})-(\\d)|"
+ "-w-(\\d))"
+ "(?:t"
+ "(\\d{2}):(\\d{2})(?::(\\d{2})(?:[,.](\\d+))?)?"
+ "(z|[-+]\\d{2}(?::?\\d{2})?)?)?\\s*\\z";
+ static VALUE pat = Qnil;
+
+ REGCOMP_I(pat);
+ MATCH(str, pat, iso8601_ext_datetime_cb);
+}
+
+#undef SNUM
+#define SNUM 17
+
+static int
+iso8601_bas_datetime_cb(VALUE m, VALUE hash)
+{
+ VALUE s[SNUM + 1], y;
+
+ {
+ int i;
+ s[0] = Qnil;
+ for (i = 1; i <= SNUM; i++)
+ s[i] = rb_reg_nth_match(i, m);
+ }
+
+ if (!NIL_P(s[3])) {
+ set_hash("mday", str2num(s[3]));
+ if (strcmp(RSTRING_PTR(s[1]), "--") != 0) {
+ y = str2num(s[1]);
+ if (RSTRING_LEN(s[1]) < 4)
+ y = comp_year69(y);
+ set_hash("year", y);
+ }
+ if (*RSTRING_PTR(s[2]) == '-') {
+ if (strcmp(RSTRING_PTR(s[1]), "--") != 0)
+ return 0;
+ }
+ else
+ set_hash("mon", str2num(s[2]));
+ }
+ else if (!NIL_P(s[5])) {
+ set_hash("yday", str2num(s[5]));
+ y = str2num(s[4]);
+ if (RSTRING_LEN(s[4]) < 4)
+ y = comp_year69(y);
+ set_hash("year", y);
+ }
+ else if (!NIL_P(s[6])) {
+ set_hash("yday", str2num(s[6]));
+ }
+ else if (!NIL_P(s[9])) {
+ set_hash("cweek", str2num(s[8]));
+ set_hash("cwday", str2num(s[9]));
+ y = str2num(s[7]);
+ if (RSTRING_LEN(s[7]) < 4)
+ y = comp_year69(y);
+ set_hash("cwyear", y);
+ }
+ else if (!NIL_P(s[11])) {
+ set_hash("cweek", str2num(s[10]));
+ set_hash("cwday", str2num(s[11]));
+ }
+ else if (!NIL_P(s[12])) {
+ set_hash("cwday", str2num(s[12]));
+ }
+ if (!NIL_P(s[13])) {
+ set_hash("hour", str2num(s[13]));
+ set_hash("min", str2num(s[14]));
+ if (!NIL_P(s[15]))
+ set_hash("sec", str2num(s[15]));
+ }
+ if (!NIL_P(s[16])) {
+ set_hash("sec_fraction", sec_fraction(s[16]));
+ }
+ if (!NIL_P(s[17])) {
+ set_hash("zone", s[17]);
+ set_hash("offset", date_zone_to_diff(s[17]));
+ }
+
+ return 1;
+}
+
+static int
+iso8601_bas_datetime(VALUE str, VALUE hash)
+{
+ static const char pat_source[] =
+ "\\A\\s*(?:([-+]?(?:\\d{4}|\\d{2})|--)(\\d{2}|-)(\\d{2})|"
+ "([-+]?(?:\\d{4}|\\d{2}))(\\d{3})|"
+ "-(\\d{3})|"
+ "(\\d{4}|\\d{2})w(\\d{2})(\\d)|"
+ "-w(\\d{2})(\\d)|"
+ "-w-(\\d))"
+ "(?:t?"
+ "(\\d{2})(\\d{2})(?:(\\d{2})(?:[,.](\\d+))?)?"
+ "(z|[-+]\\d{2}(?:\\d{2})?)?)?\\s*\\z";
+ static VALUE pat = Qnil;
+
+ REGCOMP_I(pat);
+ MATCH(str, pat, iso8601_bas_datetime_cb);
+}
+
+#undef SNUM
+#define SNUM 5
+
+static int
+iso8601_ext_time_cb(VALUE m, VALUE hash)
+{
+ VALUE s[SNUM + 1];
+
+ {
+ int i;
+ s[0] = Qnil;
+ for (i = 1; i <= SNUM; i++)
+ s[i] = rb_reg_nth_match(i, m);
+ }
+
+ set_hash("hour", str2num(s[1]));
+ set_hash("min", str2num(s[2]));
+ if (!NIL_P(s[3]))
+ set_hash("sec", str2num(s[3]));
+ if (!NIL_P(s[4]))
+ set_hash("sec_fraction", sec_fraction(s[4]));
+ if (!NIL_P(s[5])) {
+ set_hash("zone", s[5]);
+ set_hash("offset", date_zone_to_diff(s[5]));
+ }
+
+ return 1;
+}
+
+#define iso8601_bas_time_cb iso8601_ext_time_cb
+
+static int
+iso8601_ext_time(VALUE str, VALUE hash)
+{
+ static const char pat_source[] =
+ "\\A\\s*(?:(\\d{2}):(\\d{2})(?::(\\d{2})(?:[,.](\\d+))?)?"
+ "(z|[-+]\\d{2}(:?\\d{2})?)?)?\\s*\\z";
+ static VALUE pat = Qnil;
+
+ REGCOMP_I(pat);
+ MATCH(str, pat, iso8601_ext_time_cb);
+}
+
+static int
+iso8601_bas_time(VALUE str, VALUE hash)
+{
+ static const char pat_source[] =
+ "\\A\\s*(?:(\\d{2})(\\d{2})(?:(\\d{2})(?:[,.](\\d+))?)?"
+ "(z|[-+]\\d{2}(\\d{2})?)?)?\\s*\\z";
+ static VALUE pat = Qnil;
+
+ REGCOMP_I(pat);
+ MATCH(str, pat, iso8601_bas_time_cb);
+}
+
+VALUE
+date__iso8601(VALUE str)
+{
+ VALUE backref, hash;
+
+ backref = rb_backref_get();
+ rb_match_busy(backref);
+
+ hash = rb_hash_new();
+
+ if (iso8601_ext_datetime(str, hash))
+ goto ok;
+ if (iso8601_bas_datetime(str, hash))
+ goto ok;
+ if (iso8601_ext_time(str, hash))
+ goto ok;
+ if (iso8601_bas_time(str, hash))
+ goto ok;
+
+ ok:
+ rb_backref_set(backref);
+
+ return hash;
+}
+
+#undef SNUM
+#define SNUM 8
+
+static int
+rfc3339_cb(VALUE m, VALUE hash)
+{
+ VALUE s[SNUM + 1];
+
+ {
+ int i;
+ s[0] = Qnil;
+ for (i = 1; i <= SNUM; i++)
+ s[i] = rb_reg_nth_match(i, m);
+ }
+
+ set_hash("year", str2num(s[1]));
+ set_hash("mon", str2num(s[2]));
+ set_hash("mday", str2num(s[3]));
+ set_hash("hour", str2num(s[4]));
+ set_hash("min", str2num(s[5]));
+ set_hash("sec", str2num(s[6]));
+ set_hash("zone", s[8]);
+ set_hash("offset", date_zone_to_diff(s[8]));
+ if (!NIL_P(s[7]))
+ set_hash("sec_fraction", sec_fraction(s[7]));
+
+ return 1;
+}
+
+static int
+rfc3339(VALUE str, VALUE hash)
+{
+ static const char pat_source[] =
+ "\\A\\s*(-?\\d{4})-(\\d{2})-(\\d{2})"
+ "(?:t|\\s)"
+ "(\\d{2}):(\\d{2}):(\\d{2})(?:\\.(\\d+))?"
+ "(z|[-+]\\d{2}:\\d{2})\\s*\\z";
+ static VALUE pat = Qnil;
+
+ REGCOMP_I(pat);
+ MATCH(str, pat, rfc3339_cb);
+}
+
+VALUE
+date__rfc3339(VALUE str)
+{
+ VALUE backref, hash;
+
+ backref = rb_backref_get();
+ rb_match_busy(backref);
+
+ hash = rb_hash_new();
+ rfc3339(str, hash);
+ rb_backref_set(backref);
+ return hash;
+}
+
+#undef SNUM
+#define SNUM 8
+
+static int
+xmlschema_datetime_cb(VALUE m, VALUE hash)
+{
+ VALUE s[SNUM + 1];
+
+ {
+ int i;
+ s[0] = Qnil;
+ for (i = 1; i <= SNUM; i++)
+ s[i] = rb_reg_nth_match(i, m);
+ }
+
+ set_hash("year", str2num(s[1]));
+ if (!NIL_P(s[2]))
+ set_hash("mon", str2num(s[2]));
+ if (!NIL_P(s[3]))
+ set_hash("mday", str2num(s[3]));
+ if (!NIL_P(s[4]))
+ set_hash("hour", str2num(s[4]));
+ if (!NIL_P(s[5]))
+ set_hash("min", str2num(s[5]));
+ if (!NIL_P(s[6]))
+ set_hash("sec", str2num(s[6]));
+ if (!NIL_P(s[7]))
+ set_hash("sec_fraction", sec_fraction(s[7]));
+ if (!NIL_P(s[8])) {
+ set_hash("zone", s[8]);
+ set_hash("offset", date_zone_to_diff(s[8]));
+ }
+
+ return 1;
+}
+
+static int
+xmlschema_datetime(VALUE str, VALUE hash)
+{
+ static const char pat_source[] =
+ "\\A\\s*(-?\\d{4,})(?:-(\\d{2})(?:-(\\d{2}))?)?"
+ "(?:t"
+ "(\\d{2}):(\\d{2}):(\\d{2})(?:\\.(\\d+))?)?"
+ "(z|[-+]\\d{2}:\\d{2})?\\s*\\z";
+ static VALUE pat = Qnil;
+
+ REGCOMP_I(pat);
+ MATCH(str, pat, xmlschema_datetime_cb);
+}
+
+#undef SNUM
+#define SNUM 5
+
+static int
+xmlschema_time_cb(VALUE m, VALUE hash)
+{
+ VALUE s[SNUM + 1];
+
+ {
+ int i;
+ s[0] = Qnil;
+ for (i = 1; i <= SNUM; i++)
+ s[i] = rb_reg_nth_match(i, m);
+ }
+
+ set_hash("hour", str2num(s[1]));
+ set_hash("min", str2num(s[2]));
+ if (!NIL_P(s[3]))
+ set_hash("sec", str2num(s[3]));
+ if (!NIL_P(s[4]))
+ set_hash("sec_fraction", sec_fraction(s[4]));
+ if (!NIL_P(s[5])) {
+ set_hash("zone", s[5]);
+ set_hash("offset", date_zone_to_diff(s[5]));
+ }
+
+ return 1;
+}
+
+static int
+xmlschema_time(VALUE str, VALUE hash)
+{
+ static const char pat_source[] =
+ "\\A\\s*(\\d{2}):(\\d{2}):(\\d{2})(?:\\.(\\d+))?"
+ "(z|[-+]\\d{2}:\\d{2})?\\s*\\z";
+ static VALUE pat = Qnil;
+
+ REGCOMP_I(pat);
+ MATCH(str, pat, xmlschema_time_cb);
+}
+
+#undef SNUM
+#define SNUM 4
+
+static int
+xmlschema_trunc_cb(VALUE m, VALUE hash)
+{
+ VALUE s[SNUM + 1];
+
+ {
+ int i;
+ s[0] = Qnil;
+ for (i = 1; i <= SNUM; i++)
+ s[i] = rb_reg_nth_match(i, m);
+ }
+
+ if (!NIL_P(s[1]))
+ set_hash("mon", str2num(s[1]));
+ if (!NIL_P(s[2]))
+ set_hash("mday", str2num(s[2]));
+ if (!NIL_P(s[3]))
+ set_hash("mday", str2num(s[3]));
+ if (!NIL_P(s[4])) {
+ set_hash("zone", s[4]);
+ set_hash("offset", date_zone_to_diff(s[4]));
+ }
+
+ return 1;
+}
+
+static int
+xmlschema_trunc(VALUE str, VALUE hash)
+{
+ static const char pat_source[] =
+ "\\A\\s*(?:--(\\d{2})(?:-(\\d{2}))?|---(\\d{2}))"
+ "(z|[-+]\\d{2}:\\d{2})?\\s*\\z";
+ static VALUE pat = Qnil;
+
+ REGCOMP_I(pat);
+ MATCH(str, pat, xmlschema_trunc_cb);
+}
+
+VALUE
+date__xmlschema(VALUE str)
+{
+ VALUE backref, hash;
+
+ backref = rb_backref_get();
+ rb_match_busy(backref);
+
+ hash = rb_hash_new();
+
+ if (xmlschema_datetime(str, hash))
+ goto ok;
+ if (xmlschema_time(str, hash))
+ goto ok;
+ if (xmlschema_trunc(str, hash))
+ goto ok;
+
+ ok:
+ rb_backref_set(backref);
+
+ return hash;
+}
+
+#undef SNUM
+#define SNUM 8
+
+static int
+rfc2822_cb(VALUE m, VALUE hash)
+{
+ VALUE s[SNUM + 1], y;
+
+ {
+ int i;
+ s[0] = Qnil;
+ for (i = 1; i <= SNUM; i++)
+ s[i] = rb_reg_nth_match(i, m);
+ }
+
+ set_hash("wday", INT2FIX(day_num(s[1])));
+ set_hash("mday", str2num(s[2]));
+ set_hash("mon", INT2FIX(mon_num(s[3])));
+ y = str2num(s[4]);
+ if (RSTRING_LEN(s[4]) < 4)
+ y = comp_year50(y);
+ set_hash("year", y);
+ set_hash("hour", str2num(s[5]));
+ set_hash("min", str2num(s[6]));
+ if (!NIL_P(s[7]))
+ set_hash("sec", str2num(s[7]));
+ set_hash("zone", s[8]);
+ set_hash("offset", date_zone_to_diff(s[8]));
+
+ return 1;
+}
+
+static int
+rfc2822(VALUE str, VALUE hash)
+{
+ static const char pat_source[] =
+ "\\A\\s*(?:(" ABBR_DAYS ")\\s*,\\s+)?"
+ "(\\d{1,2})\\s+"
+ "(" ABBR_MONTHS ")\\s+"
+ "(-?\\d{2,})\\s+"
+ "(\\d{2}):(\\d{2})(?::(\\d{2}))?\\s*"
+ "([-+]\\d{4}|ut|gmt|e[sd]t|c[sd]t|m[sd]t|p[sd]t|[a-ik-z])\\s*\\z";
+ static VALUE pat = Qnil;
+
+ REGCOMP_I(pat);
+ MATCH(str, pat, rfc2822_cb);
+}
+
+VALUE
+date__rfc2822(VALUE str)
+{
+ VALUE backref, hash;
+
+ backref = rb_backref_get();
+ rb_match_busy(backref);
+
+ hash = rb_hash_new();
+ rfc2822(str, hash);
+ rb_backref_set(backref);
+ return hash;
+}
+
+#undef SNUM
+#define SNUM 8
+
+static int
+httpdate_type1_cb(VALUE m, VALUE hash)
+{
+ VALUE s[SNUM + 1];
+
+ {
+ int i;
+ s[0] = Qnil;
+ for (i = 1; i <= SNUM; i++)
+ s[i] = rb_reg_nth_match(i, m);
+ }
+
+ set_hash("wday", INT2FIX(day_num(s[1])));
+ set_hash("mday", str2num(s[2]));
+ set_hash("mon", INT2FIX(mon_num(s[3])));
+ set_hash("year", str2num(s[4]));
+ set_hash("hour", str2num(s[5]));
+ set_hash("min", str2num(s[6]));
+ set_hash("sec", str2num(s[7]));
+ set_hash("zone", s[8]);
+ set_hash("offset", INT2FIX(0));
+
+ return 1;
+}
+
+static int
+httpdate_type1(VALUE str, VALUE hash)
+{
+ static const char pat_source[] =
+ "\\A\\s*(" ABBR_DAYS ")\\s*,\\s+"
+ "(\\d{2})\\s+"
+ "(" ABBR_MONTHS ")\\s+"
+ "(-?\\d{4})\\s+"
+ "(\\d{2}):(\\d{2}):(\\d{2})\\s+"
+ "(gmt)\\s*\\z";
+ static VALUE pat = Qnil;
+
+ REGCOMP_I(pat);
+ MATCH(str, pat, httpdate_type1_cb);
+}
+
+#undef SNUM
+#define SNUM 8
+
+static int
+httpdate_type2_cb(VALUE m, VALUE hash)
+{
+ VALUE s[SNUM + 1], y;
+
+ {
+ int i;
+ s[0] = Qnil;
+ for (i = 1; i <= SNUM; i++)
+ s[i] = rb_reg_nth_match(i, m);
+ }
+
+ set_hash("wday", INT2FIX(day_num(s[1])));
+ set_hash("mday", str2num(s[2]));
+ set_hash("mon", INT2FIX(mon_num(s[3])));
+ y = str2num(s[4]);
+ if (f_ge_p(y, INT2FIX(0)) && f_le_p(y, INT2FIX(99)))
+ y = comp_year69(y);
+ set_hash("year", y);
+ set_hash("hour", str2num(s[5]));
+ set_hash("min", str2num(s[6]));
+ set_hash("sec", str2num(s[7]));
+ set_hash("zone", s[8]);
+ set_hash("offset", INT2FIX(0));
+
+ return 1;
+}
+
+static int
+httpdate_type2(VALUE str, VALUE hash)
+{
+ static const char pat_source[] =
+ "\\A\\s*(" DAYS ")\\s*,\\s+"
+ "(\\d{2})\\s*-\\s*"
+ "(" ABBR_MONTHS ")\\s*-\\s*"
+ "(\\d{2})\\s+"
+ "(\\d{2}):(\\d{2}):(\\d{2})\\s+"
+ "(gmt)\\s*\\z";
+ static VALUE pat = Qnil;
+
+ REGCOMP_I(pat);
+ MATCH(str, pat, httpdate_type2_cb);
+}
+
+#undef SNUM
+#define SNUM 7
+
+static int
+httpdate_type3_cb(VALUE m, VALUE hash)
+{
+ VALUE s[SNUM + 1];
+
+ {
+ int i;
+ s[0] = Qnil;
+ for (i = 1; i <= SNUM; i++)
+ s[i] = rb_reg_nth_match(i, m);
+ }
+
+ set_hash("wday", INT2FIX(day_num(s[1])));
+ set_hash("mon", INT2FIX(mon_num(s[2])));
+ set_hash("mday", str2num(s[3]));
+ set_hash("hour", str2num(s[4]));
+ set_hash("min", str2num(s[5]));
+ set_hash("sec", str2num(s[6]));
+ set_hash("year", str2num(s[7]));
+
+ return 1;
+}
+
+static int
+httpdate_type3(VALUE str, VALUE hash)
+{
+ static const char pat_source[] =
+ "\\A\\s*(" ABBR_DAYS ")\\s+"
+ "(" ABBR_MONTHS ")\\s+"
+ "(\\d{1,2})\\s+"
+ "(\\d{2}):(\\d{2}):(\\d{2})\\s+"
+ "(\\d{4})\\s*\\z";
+ static VALUE pat = Qnil;
+
+ REGCOMP_I(pat);
+ MATCH(str, pat, httpdate_type3_cb);
+}
+
+VALUE
+date__httpdate(VALUE str)
+{
+ VALUE backref, hash;
+
+ backref = rb_backref_get();
+ rb_match_busy(backref);
+
+ hash = rb_hash_new();
+
+ if (httpdate_type1(str, hash))
+ goto ok;
+ if (httpdate_type2(str, hash))
+ goto ok;
+ if (httpdate_type3(str, hash))
+ goto ok;
+
+ ok:
+ rb_backref_set(backref);
+
+ return hash;
+}
+
+#undef SNUM
+#define SNUM 9
+
+static int
+jisx0301_cb(VALUE m, VALUE hash)
+{
+ VALUE s[SNUM + 1];
+ int ep;
+
+ {
+ int i;
+ s[0] = Qnil;
+ for (i = 1; i <= SNUM; i++)
+ s[i] = rb_reg_nth_match(i, m);
+ }
+
+ ep = gengo(NIL_P(s[1]) ? 'h' : *RSTRING_PTR(s[1]));
+ set_hash("year", f_add(str2num(s[2]), INT2FIX(ep)));
+ set_hash("mon", str2num(s[3]));
+ set_hash("mday", str2num(s[4]));
+ if (!NIL_P(s[5])) {
+ set_hash("hour", str2num(s[5]));
+ if (!NIL_P(s[6]))
+ set_hash("min", str2num(s[6]));
+ if (!NIL_P(s[7]))
+ set_hash("sec", str2num(s[7]));
+ }
+ if (!NIL_P(s[8]))
+ set_hash("sec_fraction", sec_fraction(s[8]));
+ if (!NIL_P(s[9])) {
+ set_hash("zone", s[9]);
+ set_hash("offset", date_zone_to_diff(s[9]));
+ }
+
+ return 1;
+}
+
+static int
+jisx0301(VALUE str, VALUE hash)
+{
+ static const char pat_source[] =
+ "\\A\\s*([mtsh])?(\\d{2})\\.(\\d{2})\\.(\\d{2})"
+ "(?:t"
+ "(?:(\\d{2}):(\\d{2})(?::(\\d{2})(?:[,.](\\d*))?)?"
+ "(z|[-+]\\d{2}(?::?\\d{2})?)?)?)?\\s*\\z";
+ static VALUE pat = Qnil;
+
+ REGCOMP_I(pat);
+ MATCH(str, pat, jisx0301_cb);
+}
+
+VALUE
+date__jisx0301(VALUE str)
+{
+ VALUE backref, hash;
+
+ backref = rb_backref_get();
+ rb_match_busy(backref);
+
+ hash = rb_hash_new();
+ if (jisx0301(str, hash))
+ goto ok;
+ hash = date__iso8601(str);
+
+ ok:
+ rb_backref_set(backref);
+ return hash;
+}
+
+/*
+Local variables:
+c-file-style: "ruby"
+End:
+*/
diff --git a/ext/date/date_strftime.c b/ext/date/date_strftime.c
new file mode 100644
index 0000000000..71e1bd7f00
--- /dev/null
+++ b/ext/date/date_strftime.c
@@ -0,0 +1,1155 @@
+/* -*- c-file-style: "linux" -*- */
+
+/*
+ * strftime.c
+ *
+ * Public-domain implementation of ANSI C library routine.
+ *
+ * It's written in old-style C for maximal portability.
+ * However, since I'm used to prototypes, I've included them too.
+ *
+ * If you want stuff in the System V ascftime routine, add the SYSV_EXT define.
+ * For extensions from SunOS, add SUNOS_EXT.
+ * For stuff needed to implement the P1003.2 date command, add POSIX2_DATE.
+ * For VMS dates, add VMS_EXT.
+ * For a an RFC822 time format, add MAILHEADER_EXT.
+ * For ISO week years, add ISO_DATE_EXT.
+ * For complete POSIX semantics, add POSIX_SEMANTICS.
+ *
+ * The code for %c, %x, and %X now follows the 1003.2 specification for
+ * the POSIX locale.
+ * This version ignores LOCALE information.
+ * It also doesn't worry about multi-byte characters.
+ * So there.
+ *
+ * This file is also shipped with GAWK (GNU Awk), gawk specific bits of
+ * code are included if GAWK is defined.
+ *
+ * Arnold Robbins
+ * January, February, March, 1991
+ * Updated March, April 1992
+ * Updated April, 1993
+ * Updated February, 1994
+ * Updated May, 1994
+ * Updated January, 1995
+ * Updated September, 1995
+ * Updated January, 1996
+ *
+ * Fixes from ado@elsie.nci.nih.gov
+ * February 1991, May 1992
+ * Fixes from Tor Lillqvist tml@tik.vtt.fi
+ * May, 1993
+ * Further fixes from ado@elsie.nci.nih.gov
+ * February 1994
+ * %z code from chip@chinacat.unicom.com
+ * Applied September 1995
+ * %V code fixed (again) and %G, %g added,
+ * January 1996
+ */
+
+#include "ruby/ruby.h"
+#include "date_tmx.h"
+
+#ifndef GAWK
+#include <stdio.h>
+#include <ctype.h>
+#include <string.h>
+#include <time.h>
+#include <sys/types.h>
+#include <errno.h>
+#endif
+#if defined(TM_IN_SYS_TIME) || !defined(GAWK)
+#include <sys/types.h>
+#if HAVE_SYS_TIME_H
+#include <sys/time.h>
+#endif
+#endif
+#include <math.h>
+
+/* defaults: season to taste */
+#define SYSV_EXT 1 /* stuff in System V ascftime routine */
+#define SUNOS_EXT 1 /* stuff in SunOS strftime routine */
+#define POSIX2_DATE 1 /* stuff in Posix 1003.2 date command */
+#define VMS_EXT 1 /* include %v for VMS date format */
+#define MAILHEADER_EXT 1 /* add %z for HHMM format */
+#define ISO_DATE_EXT 1 /* %G and %g for year of ISO week */
+
+#if defined(ISO_DATE_EXT)
+#if ! defined(POSIX2_DATE)
+#define POSIX2_DATE 1
+#endif
+#endif
+
+#if defined(POSIX2_DATE)
+#if ! defined(SYSV_EXT)
+#define SYSV_EXT 1
+#endif
+#if ! defined(SUNOS_EXT)
+#define SUNOS_EXT 1
+#endif
+#endif
+
+#if defined(POSIX2_DATE)
+#define adddecl(stuff) stuff
+#else
+#define adddecl(stuff)
+#endif
+
+#undef strchr /* avoid AIX weirdness */
+
+#if 0
+#if !defined __STDC__ && !defined _WIN32
+#define const /**/
+static int weeknumber();
+adddecl(static int iso8601wknum();)
+static int weeknumber_v();
+adddecl(static int iso8601wknum_v();)
+#else
+static int weeknumber(const struct tm *timeptr, int firstweekday);
+adddecl(static int iso8601wknum(const struct tm *timeptr);)
+static int weeknumber_v(const struct tmx *tmx, int firstweekday);
+adddecl(static int iso8601wknum_v(const struct tmx *tmx);)
+#endif
+#endif
+
+#ifdef STDC_HEADERS
+#include <stdlib.h>
+#include <string.h>
+#else
+extern void *malloc();
+extern void *realloc();
+extern char *getenv();
+extern char *strchr();
+#endif
+
+#define range(low, item, hi) max((low), min((item), (hi)))
+
+#undef min /* just in case */
+
+/* min --- return minimum of two numbers */
+
+#ifndef __STDC__
+static inline int
+min(a, b)
+int a, b;
+#else
+static inline int
+min(int a, int b)
+#endif
+{
+ return (a < b ? a : b);
+}
+
+#undef max /* also, just in case */
+
+/* max --- return maximum of two numbers */
+
+#ifndef __STDC__
+static inline int
+max(a, b)
+int a, b;
+#else
+static inline int
+max(int a, int b)
+#endif
+{
+ return (a > b ? a : b);
+}
+
+#ifdef NO_STRING_LITERAL_CONCATENATION
+#error No string literal concatenation
+#endif
+
+#define add(x,y) (rb_funcall((x), '+', 1, (y)))
+#define sub(x,y) (rb_funcall((x), '-', 1, (y)))
+#define mul(x,y) (rb_funcall((x), '*', 1, (y)))
+#define quo(x,y) (rb_funcall((x), rb_intern("quo"), 1, (y)))
+#define div(x,y) (rb_funcall((x), rb_intern("div"), 1, (y)))
+#define mod(x,y) (rb_funcall((x), '%', 1, (y)))
+
+/* strftime --- produce formatted time */
+
+static size_t
+date_strftime_with_tmx(char *s, size_t maxsize, const char *format,
+ const struct tmx *tmx)
+{
+ char *endp = s + maxsize;
+ char *start = s;
+ const char *sp, *tp;
+ auto char tbuf[100];
+ long off;
+ ptrdiff_t i;
+ int w;
+ int precision, flags, colons;
+ char padding;
+ enum {LEFT, CHCASE, LOWER, UPPER, LOCALE_O, LOCALE_E};
+#define BIT_OF(n) (1U<<(n))
+
+ /* various tables, useful in North America */
+ static const char days_l[][10] = {
+ "Sunday", "Monday", "Tuesday", "Wednesday",
+ "Thursday", "Friday", "Saturday",
+ };
+ static const char months_l[][10] = {
+ "January", "February", "March", "April",
+ "May", "June", "July", "August", "September",
+ "October", "November", "December",
+ };
+ static const char ampm[][3] = { "AM", "PM", };
+
+ if (s == NULL || format == NULL || tmx == NULL || maxsize == 0)
+ return 0;
+
+ /* quick check if we even need to bother */
+ if (strchr(format, '%') == NULL && strlen(format) + 1 >= maxsize) {
+ err:
+ errno = ERANGE;
+ return 0;
+ }
+
+ for (; *format && s < endp - 1; format++) {
+#define FLAG_FOUND() do { \
+ if (precision > 0 || flags & (BIT_OF(LOCALE_E)|BIT_OF(LOCALE_O))) \
+ goto unknown; \
+ } while (0)
+#define NEEDS(n) do if (s >= endp || (n) >= endp - s - 1) goto err; while (0)
+#define FILL_PADDING(i) do { \
+ if (!(flags & BIT_OF(LEFT)) && precision > (i)) { \
+ NEEDS(precision); \
+ memset(s, padding ? padding : ' ', precision - (i)); \
+ s += precision - (i); \
+ } \
+ else { \
+ NEEDS(i); \
+ } \
+} while (0);
+#define FMT(def_pad, def_prec, fmt, val) \
+ do { \
+ int l; \
+ if (precision <= 0) precision = (def_prec); \
+ if (flags & BIT_OF(LEFT)) precision = 1; \
+ l = snprintf(s, endp - s, \
+ ((padding == '0' || (!padding && (def_pad) == '0')) ? "%0*"fmt : "%*"fmt), \
+ precision, (val)); \
+ if (l < 0) goto err; \
+ s += l; \
+ } while (0)
+#define STRFTIME(fmt) \
+ do { \
+ i = date_strftime_with_tmx(s, endp - s, (fmt), tmx); \
+ if (!i) return 0; \
+ if (precision > i) {\
+ if (start + maxsize < s + precision) { \
+ errno = ERANGE; \
+ return 0; \
+ } \
+ memmove(s + precision - i, s, i);\
+ memset(s, padding ? padding : ' ', precision - i); \
+ s += precision; \
+ }\
+ else s += i; \
+ } while (0)
+#define FMTV(def_pad, def_prec, fmt, val) \
+ do { \
+ VALUE tmp = (val); \
+ if (FIXNUM_P(tmp)) { \
+ FMT((def_pad), (def_prec), "l"fmt, FIX2LONG(tmp)); \
+ } \
+ else { \
+ VALUE args[2], result; \
+ size_t l; \
+ if (precision <= 0) precision = (def_prec); \
+ if (flags & BIT_OF(LEFT)) precision = 1; \
+ args[0] = INT2FIX(precision); \
+ args[1] = (val); \
+ if (padding == '0' || (!padding && (def_pad) == '0')) \
+ result = rb_str_format(2, args, rb_str_new2("%0*"fmt)); \
+ else \
+ result = rb_str_format(2, args, rb_str_new2("%*"fmt)); \
+ l = strlcpy(s, StringValueCStr(result), endp-s); \
+ if ((size_t)(endp-s) <= l) \
+ goto err; \
+ s += l; \
+ } \
+ } while (0)
+
+ if (*format != '%') {
+ *s++ = *format;
+ continue;
+ }
+ tp = tbuf;
+ sp = format;
+ precision = -1;
+ flags = 0;
+ padding = 0;
+ colons = 0;
+ again:
+ switch (*++format) {
+ case '\0':
+ format--;
+ goto unknown;
+
+ case '%':
+ FILL_PADDING(1);
+ *s++ = '%';
+ continue;
+
+ case 'a': /* abbreviated weekday name */
+ if (flags & BIT_OF(CHCASE)) {
+ flags &= ~(BIT_OF(LOWER)|BIT_OF(CHCASE));
+ flags |= BIT_OF(UPPER);
+ }
+ {
+ int wday = tmx_wday;
+ if (wday < 0 || wday > 6)
+ i = 1, tp = "?";
+ else
+ i = 3, tp = days_l[wday];
+ }
+ break;
+
+ case 'A': /* full weekday name */
+ if (flags & BIT_OF(CHCASE)) {
+ flags &= ~(BIT_OF(LOWER)|BIT_OF(CHCASE));
+ flags |= BIT_OF(UPPER);
+ }
+ {
+ int wday = tmx_wday;
+ if (wday < 0 || wday > 6)
+ i = 1, tp = "?";
+ else
+ i = strlen(tp = days_l[wday]);
+ }
+ break;
+
+#ifdef SYSV_EXT
+ case 'h': /* abbreviated month name */
+#endif
+ case 'b': /* abbreviated month name */
+ if (flags & BIT_OF(CHCASE)) {
+ flags &= ~(BIT_OF(LOWER)|BIT_OF(CHCASE));
+ flags |= BIT_OF(UPPER);
+ }
+ {
+ int mon = tmx_mon;
+ if (mon < 1 || mon > 12)
+ i = 1, tp = "?";
+ else
+ i = 3, tp = months_l[mon-1];
+ }
+ break;
+
+ case 'B': /* full month name */
+ if (flags & BIT_OF(CHCASE)) {
+ flags &= ~(BIT_OF(LOWER)|BIT_OF(CHCASE));
+ flags |= BIT_OF(UPPER);
+ }
+ {
+ int mon = tmx_mon;
+ if (mon < 1 || mon > 12)
+ i = 1, tp = "?";
+ else
+ i = strlen(tp = months_l[mon-1]);
+ }
+ break;
+
+ case 'c': /* appropriate date and time representation */
+ STRFTIME("%a %b %e %H:%M:%S %Y");
+ continue;
+
+ case 'd': /* day of the month, 01 - 31 */
+ i = range(1, tmx_mday, 31);
+ FMT('0', 2, "d", (int)i);
+ continue;
+
+ case 'H': /* hour, 24-hour clock, 00 - 23 */
+ i = range(0, tmx_hour, 23);
+ FMT('0', 2, "d", (int)i);
+ continue;
+
+ case 'I': /* hour, 12-hour clock, 01 - 12 */
+ i = range(0, tmx_hour, 23);
+ if (i == 0)
+ i = 12;
+ else if (i > 12)
+ i -= 12;
+ FMT('0', 2, "d", (int)i);
+ continue;
+
+ case 'j': /* day of the year, 001 - 366 */
+ FMT('0', 3, "d", tmx_yday);
+ continue;
+
+ case 'm': /* month, 01 - 12 */
+ i = range(1, tmx_mon, 12);
+ FMT('0', 2, "d", (int)i);
+ continue;
+
+ case 'M': /* minute, 00 - 59 */
+ i = range(0, tmx_min, 59);
+ FMT('0', 2, "d", (int)i);
+ continue;
+
+ case 'p': /* AM or PM based on 12-hour clock */
+ case 'P': /* am or pm based on 12-hour clock */
+ if ((*format == 'p' && (flags & BIT_OF(CHCASE))) ||
+ (*format == 'P' && !(flags & (BIT_OF(CHCASE)|BIT_OF(UPPER))))) {
+ flags &= ~(BIT_OF(UPPER)|BIT_OF(CHCASE));
+ flags |= BIT_OF(LOWER);
+ }
+ i = range(0, tmx_hour, 23);
+ if (i < 12)
+ tp = ampm[0];
+ else
+ tp = ampm[1];
+ i = 2;
+ break;
+
+ case 's':
+ FMTV('0', 1, "d", tmx_secs);
+ continue;
+
+ case 'Q':
+ FMTV('0', 1, "d", tmx_msecs);
+ continue;
+
+ case 'S': /* second, 00 - 59 */
+ i = range(0, tmx_sec, 59);
+ FMT('0', 2, "d", (int)i);
+ continue;
+
+ case 'U': /* week of year, Sunday is first day of week */
+ FMT('0', 2, "d", tmx_wnum0);
+ continue;
+
+ case 'w': /* weekday, Sunday == 0, 0 - 6 */
+ i = range(0, tmx_wday, 6);
+ FMT('0', 1, "d", (int)i);
+ continue;
+
+ case 'W': /* week of year, Monday is first day of week */
+ FMT('0', 2, "d", tmx_wnum1);
+ continue;
+
+ case 'x': /* appropriate date representation */
+ STRFTIME("%m/%d/%y");
+ continue;
+
+ case 'X': /* appropriate time representation */
+ STRFTIME("%H:%M:%S");
+ continue;
+
+ case 'y': /* year without a century, 00 - 99 */
+ i = NUM2INT(mod(tmx_year, INT2FIX(100)));
+ FMT('0', 2, "d", (int)i);
+ continue;
+
+ case 'Y': /* year with century */
+ {
+ VALUE year = tmx_year;
+ if (FIXNUM_P(year)) {
+ long y = FIX2LONG(year);
+ FMT('0', 0 <= y ? 4 : 5, "ld", y);
+ }
+ else {
+ FMTV('0', 4, "d", year);
+ }
+ }
+ continue;
+
+#ifdef MAILHEADER_EXT
+ case 'z': /* time zone offset east of GMT e.g. -0600 */
+ {
+ long aoff;
+ int hl, hw;
+
+ off = NUM2LONG(rb_funcall(tmx_offset, rb_intern("round"), 0));
+
+ aoff = off;
+ if (aoff < 0)
+ aoff = -off;
+
+ if ((aoff / 3600) < 10)
+ hl = 1;
+ else
+ hl = 2;
+ hw = 2;
+ if (flags & BIT_OF(LEFT) && hl == 1)
+ hw = 1;
+
+ switch (colons) {
+ case 0: /* %z -> +hhmm */
+ precision = precision <= (3 + hw) ? hw : precision-3;
+ NEEDS(precision + 3);
+ break;
+
+ case 1: /* %:z -> +hh:mm */
+ precision = precision <= (4 + hw) ? hw : precision-4;
+ NEEDS(precision + 4);
+ break;
+
+ case 2: /* %::z -> +hh:mm:ss */
+ precision = precision <= (7 + hw) ? hw : precision-7;
+ NEEDS(precision + 7);
+ break;
+
+ case 3: /* %:::z -> +hh[:mm[:ss]] */
+ {
+ if (aoff % 3600 == 0) {
+ precision = precision <= (1 + hw) ? hw : precision-1;
+ NEEDS(precision + 3);
+ }
+ else if (aoff % 60 == 0) {
+ precision = precision <= (4 + hw) ? hw : precision-4;
+ NEEDS(precision + 4);
+ }
+ else {
+ precision = precision <= (7 + hw) ? hw : precision-7;
+ NEEDS(precision + 7);
+ }
+ }
+ break;
+
+ default:
+ format--;
+ goto unknown;
+ }
+ if (padding == ' ' && precision > hl) {
+ i = snprintf(s, endp - s, "%*s", precision - hl, "");
+ precision = hl;
+ if (i < 0) goto err;
+ s += i;
+ }
+ if (off < 0) {
+ off = -off;
+ *s++ = '-';
+ } else {
+ *s++ = '+';
+ }
+ i = snprintf(s, endp - s, "%.*ld", precision, off / 3600);
+ if (i < 0) goto err;
+ s += i;
+ off = off % 3600;
+ if (colons == 3 && off == 0)
+ continue;
+ if (1 <= colons)
+ *s++ = ':';
+ i = snprintf(s, endp - s, "%02d", (int)(off / 60));
+ if (i < 0) goto err;
+ s += i;
+ off = off % 60;
+ if (colons == 3 && off == 0)
+ continue;
+ if (2 <= colons) {
+ *s++ = ':';
+ i = snprintf(s, endp - s, "%02d", (int)off);
+ if (i < 0) goto err;
+ s += i;
+ }
+ }
+ continue;
+#endif /* MAILHEADER_EXT */
+
+ case 'Z': /* time zone name or abbreviation */
+ if (flags & BIT_OF(CHCASE)) {
+ flags &= ~(BIT_OF(UPPER)|BIT_OF(CHCASE));
+ flags |= BIT_OF(LOWER);
+ }
+ {
+ char *zone = tmx_zone;
+ if (zone == NULL)
+ tp = "";
+ else
+ tp = zone;
+ i = strlen(tp);
+ }
+ break;
+
+#ifdef SYSV_EXT
+ case 'n': /* same as \n */
+ FILL_PADDING(1);
+ *s++ = '\n';
+ continue;
+
+ case 't': /* same as \t */
+ FILL_PADDING(1);
+ *s++ = '\t';
+ continue;
+
+ case 'D': /* date as %m/%d/%y */
+ STRFTIME("%m/%d/%y");
+ continue;
+
+ case 'e': /* day of month, blank padded */
+ FMT(' ', 2, "d", range(1, tmx_mday, 31));
+ continue;
+
+ case 'r': /* time as %I:%M:%S %p */
+ STRFTIME("%I:%M:%S %p");
+ continue;
+
+ case 'R': /* time as %H:%M */
+ STRFTIME("%H:%M");
+ continue;
+
+ case 'T': /* time as %H:%M:%S */
+ STRFTIME("%H:%M:%S");
+ continue;
+#endif
+
+#ifdef SUNOS_EXT
+ case 'k': /* hour, 24-hour clock, blank pad */
+ i = range(0, tmx_hour, 23);
+ FMT(' ', 2, "d", (int)i);
+ continue;
+
+ case 'l': /* hour, 12-hour clock, 1 - 12, blank pad */
+ i = range(0, tmx_hour, 23);
+ if (i == 0)
+ i = 12;
+ else if (i > 12)
+ i -= 12;
+ FMT(' ', 2, "d", (int)i);
+ continue;
+#endif
+
+#ifdef VMS_EXT
+ case 'v': /* date as dd-bbb-YYYY */
+ STRFTIME("%e-%b-%Y");
+ continue;
+#endif
+
+#ifdef POSIX2_DATE
+ case 'C':
+ FMTV('0', 2, "d", div(tmx_year, INT2FIX(100)));
+ continue;
+
+ case 'E':
+ /* POSIX locale extensions, ignored for now */
+ flags |= BIT_OF(LOCALE_E);
+ if (*(format + 1) && strchr("cCxXyY", *(format + 1)))
+ goto again;
+ goto unknown;
+ case 'O':
+ /* POSIX locale extensions, ignored for now */
+ flags |= BIT_OF(LOCALE_O);
+ if (*(format + 1) && strchr("deHImMSuUVwWy",
+ *(format + 1)))
+ goto again;
+ goto unknown;
+ case 'V': /* week of year according ISO 8601 */
+ FMT('0', 2, "d", tmx_cweek);
+ continue;
+
+ case 'u':
+ /* ISO 8601: Weekday as a decimal number [1 (Monday) - 7] */
+ FMT('0', 1, "d", tmx_cwday);
+ continue;
+#endif /* POSIX2_DATE */
+
+#ifdef ISO_DATE_EXT
+ case 'g': /* year of ISO week without a century */
+ i = NUM2INT(mod(tmx_cwyear, INT2FIX(100)));
+ FMT('0', 2, "d", (int)i);
+ continue;
+
+ case 'G': /* year of ISO week with century */
+ {
+ VALUE year = tmx_cwyear;
+ if (FIXNUM_P(year)) {
+ long y = FIX2LONG(year);
+ FMT('0', 0 <= y ? 4 : 5, "ld", y);
+ }
+ else {
+ FMTV('0', 4, "d", year);
+ }
+ continue;
+ }
+
+#endif /* ISO_DATE_EXT */
+
+ case 'L':
+ w = 3;
+ goto subsec;
+
+ case 'N':
+ /*
+ * fractional second digits. default is 9 digits
+ * (nanosecond).
+ *
+ * %3N millisecond (3 digits)
+ * %6N microsecond (6 digits)
+ * %9N nanosecond (9 digits)
+ */
+ w = 9;
+ subsec:
+ if (precision <= 0) {
+ precision = w;
+ }
+ NEEDS(precision);
+
+ {
+ VALUE subsec = tmx_sec_fraction;
+ int ww;
+ long n;
+
+ ww = precision;
+ while (9 <= ww) {
+ subsec = mul(subsec, INT2FIX(1000000000));
+ ww -= 9;
+ }
+ n = 1;
+ for (; 0 < ww; ww--)
+ n *= 10;
+ if (n != 1)
+ subsec = mul(subsec, INT2FIX(n));
+ subsec = div(subsec, INT2FIX(1));
+
+ if (FIXNUM_P(subsec)) {
+ (void)snprintf(s, endp - s, "%0*ld", precision, FIX2LONG(subsec));
+ s += precision;
+ }
+ else {
+ VALUE args[2], result;
+ args[0] = INT2FIX(precision);
+ args[1] = subsec;
+ result = rb_str_format(2, args, rb_str_new2("%0*d"));
+ (void)strlcpy(s, StringValueCStr(result), endp-s);
+ s += precision;
+ }
+ }
+ continue;
+
+ case 'F': /* Equivalent to %Y-%m-%d */
+ STRFTIME("%Y-%m-%d");
+ continue;
+ case '+':
+ STRFTIME("%a %b %e %H:%M:%S %Z %Y");
+ continue;
+
+ case '-':
+ FLAG_FOUND();
+ flags |= BIT_OF(LEFT);
+ padding = precision = 0;
+ goto again;
+
+ case '^':
+ FLAG_FOUND();
+ flags |= BIT_OF(UPPER);
+ goto again;
+
+ case '#':
+ FLAG_FOUND();
+ flags |= BIT_OF(CHCASE);
+ goto again;
+
+ case '_':
+ FLAG_FOUND();
+ padding = ' ';
+ goto again;
+
+ case ':':
+ colons++;
+ goto again;
+
+ case '0':
+ padding = '0';
+ case '1': case '2': case '3': case '4':
+ case '5': case '6': case '7': case '8': case '9':
+ {
+ char *e;
+ precision = (int)strtoul(format, &e, 10);
+ format = e - 1;
+ goto again;
+ }
+
+ default:
+ unknown:
+ i = format - sp + 1;
+ tp = sp;
+ precision = -1;
+ flags = 0;
+ padding = 0;
+ colons = 0;
+ break;
+ }
+ if (i) {
+ FILL_PADDING(i);
+ memcpy(s, tp, i);
+ switch (flags & (BIT_OF(UPPER)|BIT_OF(LOWER))) {
+ case BIT_OF(UPPER):
+ do {
+ if (ISLOWER(*s)) *s = TOUPPER(*s);
+ } while (s++, --i);
+ break;
+ case BIT_OF(LOWER):
+ do {
+ if (ISUPPER(*s)) *s = TOLOWER(*s);
+ } while (s++, --i);
+ break;
+ default:
+ s += i;
+ break;
+ }
+ }
+ }
+ if (s >= endp) {
+ goto err;
+ }
+ if (*format == '\0') {
+ *s = '\0';
+ return (s - start);
+ } else
+ return 0;
+}
+
+size_t
+date_strftime(char *s, size_t maxsize, const char *format,
+ const struct tmx *tmx)
+{
+ return date_strftime_with_tmx(s, maxsize, format, tmx);
+}
+
+#if 0
+/* isleap --- is a year a leap year? */
+
+#ifndef __STDC__
+static int
+isleap(year)
+long year;
+#else
+static int
+isleap(long year)
+#endif
+{
+ return ((year % 4 == 0 && year % 100 != 0) || year % 400 == 0);
+}
+
+static void
+tmx2tm_noyear(const struct tmx *tmx, struct tm *result)
+{
+ struct tm tm;
+
+ /* for isleap() in iso8601wknum. +100 is -1900 (mod 400). */
+ tm.tm_year = FIX2INT(mod(tmx_year, INT2FIX(400))) + 100;
+
+ tm.tm_mon = tmx_mon-1;
+ tm.tm_mday = tmx_mday;
+ tm.tm_hour = tmx_hour;
+ tm.tm_min = tmx_min;
+ tm.tm_sec = tmx_sec;
+ tm.tm_wday = tmx_wday;
+ tm.tm_yday = tmx_yday-1;
+ tm.tm_isdst = 0;
+#if defined(HAVE_STRUCT_TM_TM_GMTOFF)
+ tm.tm_gmtoff = NUM2LONG(tmx_offset);
+#endif
+#if defined(HAVE_TM_ZONE)
+ tm.tm_zone = (char *)tmx_zone;
+#endif
+ *result = tm;
+}
+
+#ifdef POSIX2_DATE
+/* iso8601wknum --- compute week number according to ISO 8601 */
+
+#ifndef __STDC__
+static int
+iso8601wknum(timeptr)
+const struct tm *timeptr;
+#else
+static int
+iso8601wknum(const struct tm *timeptr)
+#endif
+{
+ /*
+ * From 1003.2:
+ * If the week (Monday to Sunday) containing January 1
+ * has four or more days in the new year, then it is week 1;
+ * otherwise it is the highest numbered week of the previous
+ * year (52 or 53), and the next week is week 1.
+ *
+ * ADR: This means if Jan 1 was Monday through Thursday,
+ * it was week 1, otherwise week 52 or 53.
+ *
+ * XPG4 erroneously included POSIX.2 rationale text in the
+ * main body of the standard. Thus it requires week 53.
+ */
+
+ int weeknum, jan1day;
+
+ /* get week number, Monday as first day of the week */
+ weeknum = weeknumber(timeptr, 1);
+
+ /*
+ * With thanks and tip of the hatlo to tml@tik.vtt.fi
+ *
+ * What day of the week does January 1 fall on?
+ * We know that
+ * (timeptr->tm_yday - jan1.tm_yday) MOD 7 ==
+ * (timeptr->tm_wday - jan1.tm_wday) MOD 7
+ * and that
+ * jan1.tm_yday == 0
+ * and that
+ * timeptr->tm_wday MOD 7 == timeptr->tm_wday
+ * from which it follows that. . .
+ */
+ jan1day = timeptr->tm_wday - (timeptr->tm_yday % 7);
+ if (jan1day < 0)
+ jan1day += 7;
+
+ /*
+ * If Jan 1 was a Monday through Thursday, it was in
+ * week 1. Otherwise it was last year's highest week, which is
+ * this year's week 0.
+ *
+ * What does that mean?
+ * If Jan 1 was Monday, the week number is exactly right, it can
+ * never be 0.
+ * If it was Tuesday through Thursday, the weeknumber is one
+ * less than it should be, so we add one.
+ * Otherwise, Friday, Saturday or Sunday, the week number is
+ * OK, but if it is 0, it needs to be 52 or 53.
+ */
+ switch (jan1day) {
+ case 1: /* Monday */
+ break;
+ case 2: /* Tuesday */
+ case 3: /* Wednesday */
+ case 4: /* Thursday */
+ weeknum++;
+ break;
+ case 5: /* Friday */
+ case 6: /* Saturday */
+ case 0: /* Sunday */
+ if (weeknum == 0) {
+#ifdef USE_BROKEN_XPG4
+ /* XPG4 (as of March 1994) says 53 unconditionally */
+ weeknum = 53;
+#else
+ /* get week number of last week of last year */
+ struct tm dec31ly; /* 12/31 last year */
+ dec31ly = *timeptr;
+ dec31ly.tm_year--;
+ dec31ly.tm_mon = 11;
+ dec31ly.tm_mday = 31;
+ dec31ly.tm_wday = (jan1day == 0) ? 6 : jan1day - 1;
+ dec31ly.tm_yday = 364 + isleap(dec31ly.tm_year + 1900L);
+ weeknum = iso8601wknum(& dec31ly);
+#endif
+ }
+ break;
+ }
+
+ if (timeptr->tm_mon == 11) {
+ /*
+ * The last week of the year
+ * can be in week 1 of next year.
+ * Sigh.
+ *
+ * This can only happen if
+ * M T W
+ * 29 30 31
+ * 30 31
+ * 31
+ */
+ int wday, mday;
+
+ wday = timeptr->tm_wday;
+ mday = timeptr->tm_mday;
+ if ( (wday == 1 && (mday >= 29 && mday <= 31))
+ || (wday == 2 && (mday == 30 || mday == 31))
+ || (wday == 3 && mday == 31))
+ weeknum = 1;
+ }
+
+ return weeknum;
+}
+
+static int
+iso8601wknum_v(const struct tmx *tmx)
+{
+ struct tm tm;
+ tmx2tm_noyear(tmx, &tm);
+ return iso8601wknum(&tm);
+}
+
+#endif
+
+/* weeknumber --- figure how many weeks into the year */
+
+/* With thanks and tip of the hatlo to ado@elsie.nci.nih.gov */
+
+#ifndef __STDC__
+static int
+weeknumber(timeptr, firstweekday)
+const struct tm *timeptr;
+int firstweekday;
+#else
+static int
+weeknumber(const struct tm *timeptr, int firstweekday)
+#endif
+{
+ int wday = timeptr->tm_wday;
+ int ret;
+
+ if (firstweekday == 1) {
+ if (wday == 0) /* sunday */
+ wday = 6;
+ else
+ wday--;
+ }
+ ret = ((timeptr->tm_yday + 7 - wday) / 7);
+ if (ret < 0)
+ ret = 0;
+ return ret;
+}
+
+static int
+weeknumber_v(const struct tmx *tmx, int firstweekday)
+{
+ struct tm tm;
+ tmx2tm_noyear(tmx, &tm);
+ return weeknumber(&tm, firstweekday);
+}
+#endif
+
+#if 0
+/* ADR --- I'm loathe to mess with ado's code ... */
+
+Date: Wed, 24 Apr 91 20:54:08 MDT
+From: Michal Jaegermann <audfax!emory!vm.ucs.UAlberta.CA!NTOMCZAK>
+To: arnold@audiofax.com
+
+Hi Arnold,
+in a process of fixing of strftime() in libraries on Atari ST I grabbed
+some pieces of code from your own strftime. When doing that it came
+to mind that your weeknumber() function compiles a little bit nicer
+in the following form:
+/*
+ * firstweekday is 0 if starting in Sunday, non-zero if in Monday
+ */
+{
+ return (timeptr->tm_yday - timeptr->tm_wday +
+ (firstweekday ? (timeptr->tm_wday ? 8 : 1) : 7)) / 7;
+}
+How nicer it depends on a compiler, of course, but always a tiny bit.
+
+ Cheers,
+ Michal
+ ntomczak@vm.ucs.ualberta.ca
+#endif
+
+#ifdef TEST_STRFTIME
+
+/*
+ * NAME:
+ * tst
+ *
+ * SYNOPSIS:
+ * tst
+ *
+ * DESCRIPTION:
+ * "tst" is a test driver for the function "strftime".
+ *
+ * OPTIONS:
+ * None.
+ *
+ * AUTHOR:
+ * Karl Vogel
+ * Control Data Systems, Inc.
+ * vogelke@c-17igp.wpafb.af.mil
+ *
+ * BUGS:
+ * None noticed yet.
+ *
+ * COMPILE:
+ * cc -o tst -DTEST_STRFTIME strftime.c
+ */
+
+/* ADR: I reformatted this to my liking, and deleted some unneeded code. */
+
+#ifndef NULL
+#include <stdio.h>
+#endif
+#include <time.h>
+#include <sys/time.h>
+#include <string.h>
+
+#define MAXTIME 132
+
+/*
+ * Array of time formats.
+ */
+
+static char *array[] =
+{
+ "(%%A) full weekday name, var length (Sunday..Saturday) %A",
+ "(%%B) full month name, var length (January..December) %B",
+ "(%%C) Century %C",
+ "(%%D) date (%%m/%%d/%%y) %D",
+ "(%%E) Locale extensions (ignored) %E",
+ "(%%H) hour (24-hour clock, 00..23) %H",
+ "(%%I) hour (12-hour clock, 01..12) %I",
+ "(%%M) minute (00..59) %M",
+ "(%%O) Locale extensions (ignored) %O",
+ "(%%R) time, 24-hour (%%H:%%M) %R",
+ "(%%S) second (00..60) %S",
+ "(%%T) time, 24-hour (%%H:%%M:%%S) %T",
+ "(%%U) week of year, Sunday as first day of week (00..53) %U",
+ "(%%V) week of year according to ISO 8601 %V",
+ "(%%W) week of year, Monday as first day of week (00..53) %W",
+ "(%%X) appropriate locale time representation (%H:%M:%S) %X",
+ "(%%Y) year with century (1970...) %Y",
+ "(%%Z) timezone (EDT), or blank if timezone not determinable %Z",
+ "(%%a) locale's abbreviated weekday name (Sun..Sat) %a",
+ "(%%b) locale's abbreviated month name (Jan..Dec) %b",
+ "(%%c) full date (Sat Nov 4 12:02:33 1989)%n%t%t%t %c",
+ "(%%d) day of the month (01..31) %d",
+ "(%%e) day of the month, blank-padded ( 1..31) %e",
+ "(%%h) should be same as (%%b) %h",
+ "(%%j) day of the year (001..366) %j",
+ "(%%k) hour, 24-hour clock, blank pad ( 0..23) %k",
+ "(%%l) hour, 12-hour clock, blank pad ( 1..12) %l",
+ "(%%m) month (01..12) %m",
+ "(%%p) locale's AM or PM based on 12-hour clock %p",
+ "(%%r) time, 12-hour (same as %%I:%%M:%%S %%p) %r",
+ "(%%u) ISO 8601: Weekday as decimal number [1 (Monday) - 7] %u",
+ "(%%v) VMS date (dd-bbb-YYYY) %v",
+ "(%%w) day of week (0..6, Sunday == 0) %w",
+ "(%%x) appropriate locale date representation %x",
+ "(%%y) last two digits of year (00..99) %y",
+ "(%%z) timezone offset east of GMT as HHMM (e.g. -0500) %z",
+ (char *) NULL
+};
+
+/* main routine. */
+
+int
+main(argc, argv)
+int argc;
+char **argv;
+{
+ char *next;
+ char string[MAXTIME];
+
+ int k;
+ int length;
+
+ struct tm *tm;
+
+ time_t clock;
+
+ /* Call the function. */
+
+ clock = time(NULL);
+ tm = localtime(&clock);
+
+ for (k = 0; next = array[k]; k++) {
+ length = strftime(string, MAXTIME, next, tm);
+ printf("%s\n", string);
+ }
+
+ exit(0);
+}
+#endif /* TEST_STRFTIME */
diff --git a/ext/date/date_strptime.c b/ext/date/date_strptime.c
new file mode 100644
index 0000000000..eaec8e716b
--- /dev/null
+++ b/ext/date/date_strptime.c
@@ -0,0 +1,698 @@
+/*
+ date_strptime.c: Coded by Tadayoshi Funaba 2011,2012
+*/
+
+#include "ruby.h"
+#include "ruby/encoding.h"
+#include "ruby/re.h"
+#include <ctype.h>
+
+static const char *day_names[] = {
+ "Sunday", "Monday", "Tuesday", "Wednesday",
+ "Thursday", "Friday", "Saturday",
+ "Sun", "Mon", "Tue", "Wed",
+ "Thu", "Fri", "Sat"
+};
+
+static const char *month_names[] = {
+ "January", "February", "March", "April",
+ "May", "June", "July", "August", "September",
+ "October", "November", "December",
+ "Jan", "Feb", "Mar", "Apr", "May", "Jun",
+ "Jul", "Aug", "Sep", "Oct", "Nov", "Dec"
+};
+
+static const char *merid_names[] = {
+ "am", "pm",
+ "a.m.", "p.m."
+};
+
+static const char *extz_pats[] = {
+ ":z",
+ "::z",
+ ":::z"
+};
+
+#define sizeof_array(o) (sizeof o / sizeof o[0])
+
+#define f_negate(x) rb_funcall(x, rb_intern("-@"), 0)
+#define f_add(x,y) rb_funcall(x, '+', 1, y)
+#define f_sub(x,y) rb_funcall(x, '-', 1, y)
+#define f_mul(x,y) rb_funcall(x, '*', 1, y)
+#define f_div(x,y) rb_funcall(x, '/', 1, y)
+#define f_idiv(x,y) rb_funcall(x, rb_intern("div"), 1, y)
+#define f_mod(x,y) rb_funcall(x, '%', 1, y)
+#define f_expt(x,y) rb_funcall(x, rb_intern("**"), 1, y)
+
+#define f_lt_p(x,y) rb_funcall(x, '<', 1, y)
+#define f_gt_p(x,y) rb_funcall(x, '>', 1, y)
+#define f_le_p(x,y) rb_funcall(x, rb_intern("<="), 1, y)
+#define f_ge_p(x,y) rb_funcall(x, rb_intern(">="), 1, y)
+
+#define f_match(r,s) rb_funcall(r, rb_intern("match"), 1, s)
+#define f_aref(o,i) rb_funcall(o, rb_intern("[]"), 1, i)
+#define f_end(o,i) rb_funcall(o, rb_intern("end"), 1, i)
+
+#define issign(c) ((c) == '-' || (c) == '+')
+
+static int
+num_pattern_p(const char *s)
+{
+ if (isdigit(*s))
+ return 1;
+ if (*s == '%') {
+ s++;
+ if (*s == 'E' || *s == 'O')
+ s++;
+ if (*s &&
+ (strchr("CDdeFGgHIjkLlMmNQRrSsTUuVvWwXxYy", *s) || isdigit(*s)))
+ return 1;
+ }
+ return 0;
+}
+
+#define NUM_PATTERN_P() num_pattern_p(&fmt[fi + 1])
+
+static long
+read_digits(const char *s, VALUE *n, size_t width)
+{
+ size_t l;
+
+ l = strspn(s, "0123456789");
+
+ if (l == 0)
+ return 0;
+
+ if (width < l)
+ l = width;
+
+ if ((4 * l * sizeof(char)) <= (sizeof(long)*CHAR_BIT)) {
+ const char *os = s;
+ long v;
+
+ v = 0;
+ while ((size_t)(s - os) < l) {
+ v *= 10;
+ v += *s - '0';
+ s++;
+ }
+ if (os == s)
+ return 0;
+ *n = LONG2NUM(v);
+ return l;
+ }
+ else {
+ char *s2 = ALLOCA_N(char, l + 1);
+ memcpy(s2, s, l);
+ s2[l] = '\0';
+ *n = rb_cstr_to_inum(s2, 10, 0);
+ return l;
+ }
+}
+
+#define set_hash(k,v) rb_hash_aset(hash, ID2SYM(rb_intern(k)), v)
+#define ref_hash(k) rb_hash_aref(hash, ID2SYM(rb_intern(k)))
+#define del_hash(k) rb_hash_delete(hash, ID2SYM(rb_intern(k)))
+
+#define fail() \
+{ \
+ set_hash("_fail", Qtrue); \
+ return 0; \
+}
+
+#define fail_p() (!NIL_P(ref_hash("_fail")))
+
+#define READ_DIGITS(n,w) \
+{ \
+ size_t l; \
+ l = read_digits(&str[si], &n, w); \
+ if (l == 0) \
+ fail(); \
+ si += l; \
+}
+
+#define READ_DIGITS_MAX(n) READ_DIGITS(n, LONG_MAX)
+
+static int
+valid_range_p(VALUE v, int a, int b)
+{
+ if (FIXNUM_P(v)) {
+ int vi = FIX2INT(v);
+ return !(vi < a || vi > b);
+ }
+ return !(f_lt_p(v, INT2NUM(a)) || f_gt_p(v, INT2NUM(b)));
+}
+
+#define recur(fmt) \
+{ \
+ size_t l; \
+ l = date__strptime_internal(&str[si], slen - si, \
+ fmt, sizeof fmt - 1, hash); \
+ if (fail_p()) \
+ return 0; \
+ si += l; \
+}
+
+VALUE date_zone_to_diff(VALUE);
+
+static size_t
+date__strptime_internal(const char *str, size_t slen,
+ const char *fmt, size_t flen, VALUE hash)
+{
+ size_t si, fi;
+ int c;
+
+ si = fi = 0;
+
+ while (fi < flen) {
+
+ switch (fmt[fi]) {
+ case '%':
+
+ again:
+ fi++;
+ c = fmt[fi];
+
+ switch (c) {
+ case 'E':
+ if (fmt[fi + 1] && strchr("cCxXyY", fmt[fi + 1]))
+ goto again;
+ fi--;
+ goto ordinal;
+ case 'O':
+ if (fmt[fi + 1] && strchr("deHImMSuUVwWy", fmt[fi + 1]))
+ goto again;
+ fi--;
+ goto ordinal;
+ case ':':
+ {
+ int i;
+
+ for (i = 0; i < (int)sizeof_array(extz_pats); i++)
+ if (strncmp(extz_pats[i], &fmt[fi],
+ strlen(extz_pats[i])) == 0) {
+ fi += i;
+ goto again;
+ }
+ fail();
+ }
+
+ case 'A':
+ case 'a':
+ {
+ int i;
+
+ for (i = 0; i < (int)sizeof_array(day_names); i++) {
+ size_t l = strlen(day_names[i]);
+ if (strncasecmp(day_names[i], &str[si], l) == 0) {
+ si += l;
+ set_hash("wday", INT2FIX(i % 7));
+ goto matched;
+ }
+ }
+ fail();
+ }
+ case 'B':
+ case 'b':
+ case 'h':
+ {
+ int i;
+
+ for (i = 0; i < (int)sizeof_array(month_names); i++) {
+ size_t l = strlen(month_names[i]);
+ if (strncasecmp(month_names[i], &str[si], l) == 0) {
+ si += l;
+ set_hash("mon", INT2FIX((i % 12) + 1));
+ goto matched;
+ }
+ }
+ fail();
+ }
+
+ case 'C':
+ {
+ VALUE n;
+
+ if (NUM_PATTERN_P())
+ READ_DIGITS(n, 2)
+ else
+ READ_DIGITS_MAX(n)
+ set_hash("_cent", n);
+ goto matched;
+ }
+
+ case 'c':
+ recur("%a %b %e %H:%M:%S %Y");
+ goto matched;
+
+ case 'D':
+ recur("%m/%d/%y");
+ goto matched;
+
+ case 'd':
+ case 'e':
+ {
+ VALUE n;
+
+ if (str[si] == ' ') {
+ si++;
+ READ_DIGITS(n, 1);
+ } else {
+ READ_DIGITS(n, 2);
+ }
+ if (!valid_range_p(n, 1, 31))
+ fail();
+ set_hash("mday", n);
+ goto matched;
+ }
+
+ case 'F':
+ recur("%Y-%m-%d");
+ goto matched;
+
+ case 'G':
+ {
+ VALUE n;
+
+ if (NUM_PATTERN_P())
+ READ_DIGITS(n, 4)
+ else
+ READ_DIGITS_MAX(n)
+ set_hash("cwyear", n);
+ goto matched;
+ }
+
+ case 'g':
+ {
+ VALUE n;
+
+ READ_DIGITS(n, 2);
+ if (!valid_range_p(n, 0, 99))
+ fail();
+ set_hash("cwyear",n);
+ set_hash("_cent",
+ INT2FIX(f_ge_p(n, INT2FIX(69)) ? 19 : 20));
+ goto matched;
+ }
+
+ case 'H':
+ case 'k':
+ {
+ VALUE n;
+
+ if (str[si] == ' ') {
+ si++;
+ READ_DIGITS(n, 1);
+ } else {
+ READ_DIGITS(n, 2);
+ }
+ if (!valid_range_p(n, 0, 24))
+ fail();
+ set_hash("hour", n);
+ goto matched;
+ }
+
+ case 'I':
+ case 'l':
+ {
+ VALUE n;
+
+ if (str[si] == ' ') {
+ si++;
+ READ_DIGITS(n, 1);
+ } else {
+ READ_DIGITS(n, 2);
+ }
+ if (!valid_range_p(n, 1, 12))
+ fail();
+ set_hash("hour", n);
+ goto matched;
+ }
+
+ case 'j':
+ {
+ VALUE n;
+
+ READ_DIGITS(n, 3);
+ if (!valid_range_p(n, 1, 366))
+ fail();
+ set_hash("yday", n);
+ goto matched;
+ }
+
+ case 'L':
+ case 'N':
+ {
+ VALUE n;
+ int sign = 1;
+ size_t osi;
+
+ if (issign(str[si])) {
+ if (str[si] == '-')
+ sign = -1;
+ si++;
+ }
+ osi = si;
+ if (NUM_PATTERN_P())
+ READ_DIGITS(n, c == 'L' ? 3 : 9)
+ else
+ READ_DIGITS_MAX(n)
+ if (sign == -1)
+ n = f_negate(n);
+ set_hash("sec_fraction",
+ rb_rational_new2(n,
+ f_expt(INT2FIX(10),
+ ULONG2NUM(si - osi))));
+ goto matched;
+ }
+
+ case 'M':
+ {
+ VALUE n;
+
+ READ_DIGITS(n, 2);
+ if (!valid_range_p(n, 0, 59))
+ fail();
+ set_hash("min", n);
+ goto matched;
+ }
+
+ case 'm':
+ {
+ VALUE n;
+
+ READ_DIGITS(n, 2);
+ if (!valid_range_p(n, 1, 12))
+ fail();
+ set_hash("mon", n);
+ goto matched;
+ }
+
+ case 'n':
+ case 't':
+ recur(" ");
+ goto matched;
+
+ case 'P':
+ case 'p':
+ {
+ int i;
+
+ for (i = 0; i < 4; i++) {
+ size_t l = strlen(merid_names[i]);
+ if (strncasecmp(merid_names[i], &str[si], l) == 0) {
+ si += l;
+ set_hash("_merid", INT2FIX((i % 2) == 0 ? 0 : 12));
+ goto matched;
+ }
+ }
+ fail();
+ }
+
+ case 'Q':
+ {
+ VALUE n;
+ int sign = 1;
+
+ if (str[si] == '-') {
+ sign = -1;
+ si++;
+ }
+ READ_DIGITS_MAX(n);
+ if (sign == -1)
+ n = f_negate(n);
+ set_hash("seconds",
+ rb_rational_new2(n,
+ f_expt(INT2FIX(10),
+ INT2FIX(3))));
+ goto matched;
+ }
+
+ case 'R':
+ recur("%H:%M");
+ goto matched;
+
+ case 'r':
+ recur("%I:%M:%S %p");
+ goto matched;
+
+ case 'S':
+ {
+ VALUE n;
+
+ READ_DIGITS(n, 2);
+ if (!valid_range_p(n, 0, 60))
+ fail();
+ set_hash("sec", n);
+ goto matched;
+ }
+
+ case 's':
+ {
+ VALUE n;
+ int sign = 1;
+
+ if (str[si] == '-') {
+ sign = -1;
+ si++;
+ }
+ READ_DIGITS_MAX(n);
+ if (sign == -1)
+ n = f_negate(n);
+ set_hash("seconds", n);
+ goto matched;
+ }
+
+ case 'T':
+ recur("%H:%M:%S");
+ goto matched;
+
+ case 'U':
+ case 'W':
+ {
+ VALUE n;
+
+ READ_DIGITS(n, 2);
+ if (!valid_range_p(n, 0, 53))
+ fail();
+ set_hash(c == 'U' ? "wnum0" : "wnum1", n);
+ goto matched;
+ }
+
+ case 'u':
+ {
+ VALUE n;
+
+ READ_DIGITS(n, 1);
+ if (!valid_range_p(n, 1, 7))
+ fail();
+ set_hash("cwday", n);
+ goto matched;
+ }
+
+ case 'V':
+ {
+ VALUE n;
+
+ READ_DIGITS(n, 2);
+ if (!valid_range_p(n, 1, 53))
+ fail();
+ set_hash("cweek", n);
+ goto matched;
+ }
+
+ case 'v':
+ recur("%e-%b-%Y");
+ goto matched;
+
+ case 'w':
+ {
+ VALUE n;
+
+ READ_DIGITS(n, 1);
+ if (!valid_range_p(n, 0, 6))
+ fail();
+ set_hash("wday", n);
+ goto matched;
+ }
+
+ case 'X':
+ recur("%H:%M:%S");
+ goto matched;
+
+ case 'x':
+ recur("%m/%d/%y");
+ goto matched;
+
+ case 'Y':
+ {
+ VALUE n;
+ int sign = 1;
+
+ if (issign(str[si])) {
+ if (str[si] == '-')
+ sign = -1;
+ si++;
+ }
+ if (NUM_PATTERN_P())
+ READ_DIGITS(n, 4)
+ else
+ READ_DIGITS_MAX(n)
+ if (sign == -1)
+ n = f_negate(n);
+ set_hash("year", n);
+ goto matched;
+ }
+
+ case 'y':
+ {
+ VALUE n;
+ int sign = 1;
+
+ READ_DIGITS(n, 2);
+ if (!valid_range_p(n, 0, 99))
+ fail();
+ if (sign == -1)
+ n = f_negate(n);
+ set_hash("year", n);
+ set_hash("_cent",
+ INT2FIX(f_ge_p(n, INT2FIX(69)) ? 19 : 20));
+ goto matched;
+ }
+
+ case 'Z':
+ case 'z':
+ {
+ static const char pat_source[] =
+ "\\A("
+ "(?:gmt|utc?)?[-+]\\d+(?:[,.:]\\d+(?::\\d+)?)?"
+ "|[[:alpha:].\\s]+(?:standard|daylight)\\s+time\\b"
+ "|[[:alpha:]]+(?:\\s+dst)?\\b"
+ ")";
+ static VALUE pat = Qnil;
+ VALUE m, b;
+
+ if (NIL_P(pat)) {
+ pat = rb_reg_new(pat_source, sizeof pat_source - 1,
+ ONIG_OPTION_IGNORECASE);
+ rb_gc_register_mark_object(pat);
+ }
+
+ b = rb_backref_get();
+ rb_match_busy(b);
+ m = f_match(pat, rb_usascii_str_new2(&str[si]));
+
+ if (!NIL_P(m)) {
+ VALUE s, l, o;
+
+ s = rb_reg_nth_match(1, m);
+ l = f_end(m, INT2FIX(0));
+ o = date_zone_to_diff(s);
+ si += NUM2LONG(l);
+ set_hash("zone", s);
+ set_hash("offset", o);
+ rb_backref_set(b);
+ goto matched;
+ }
+ rb_backref_set(b);
+ fail();
+ }
+
+ case '%':
+ if (str[si] != '%')
+ fail();
+ si++;
+ goto matched;
+
+ case '+':
+ recur("%a %b %e %H:%M:%S %Z %Y");
+ goto matched;
+
+ default:
+ if (str[si] != '%')
+ fail();
+ si++;
+ if (fi < flen)
+ if (str[si] != fmt[fi])
+ fail();
+ si++;
+ goto matched;
+ }
+ case ' ':
+ case '\t':
+ case '\n':
+ case '\v':
+ case '\f':
+ case '\r':
+ while (isspace(str[si]))
+ si++;
+ fi++;
+ break;
+ default:
+ ordinal:
+ if (str[si] != fmt[fi])
+ fail();
+ si++;
+ fi++;
+ break;
+ matched:
+ fi++;
+ break;
+ }
+ }
+
+ return si;
+}
+
+VALUE
+date__strptime(const char *str, size_t slen,
+ const char *fmt, size_t flen, VALUE hash)
+{
+ size_t si;
+ VALUE cent, merid;
+
+ si = date__strptime_internal(str, slen, fmt, flen, hash);
+
+ if (slen > si) {
+ VALUE s;
+
+ s = rb_usascii_str_new(&str[si], slen - si);
+ set_hash("leftover", s);
+ }
+
+ if (fail_p())
+ return Qnil;
+
+ cent = ref_hash("_cent");
+ if (!NIL_P(cent)) {
+ VALUE year;
+
+ year = ref_hash("cwyear");
+ if (!NIL_P(year))
+ set_hash("cwyear", f_add(year, f_mul(cent, INT2FIX(100))));
+ year = ref_hash("year");
+ if (!NIL_P(year))
+ set_hash("year", f_add(year, f_mul(cent, INT2FIX(100))));
+ del_hash("_cent");
+ }
+
+ merid = ref_hash("_merid");
+ if (!NIL_P(merid)) {
+ VALUE hour;
+
+ hour = ref_hash("hour");
+ if (!NIL_P(hour)) {
+ hour = f_mod(hour, INT2FIX(12));
+ set_hash("hour", f_add(hour, merid));
+ }
+ del_hash("_merid");
+ }
+
+ return hash;
+}
+
+/*
+Local variables:
+c-file-style: "ruby"
+End:
+*/
diff --git a/ext/date/date_tmx.h b/ext/date/date_tmx.h
new file mode 100644
index 0000000000..0e56c9b4f0
--- /dev/null
+++ b/ext/date/date_tmx.h
@@ -0,0 +1,56 @@
+#ifndef DATE_TMX_H
+#define DATE_TMX_H
+
+struct tmx_funcs {
+ VALUE (*year)(void *dat);
+ int (*yday)(void *dat);
+ int (*mon)(void *dat);
+ int (*mday)(void *dat);
+ VALUE (*cwyear)(void *dat);
+ int (*cweek)(void *dat);
+ int (*cwday)(void *dat);
+ int (*wnum0)(void *dat);
+ int (*wnum1)(void *dat);
+ int (*wday)(void *dat);
+ int (*hour)(void *dat);
+ int (*min)(void *dat);
+ int (*sec)(void *dat);
+ VALUE (*sec_fraction)(void *dat);
+ VALUE (*secs)(void *dat);
+ VALUE (*msecs)(void *dat);
+ VALUE (*offset)(void *dat);
+ char *(*zone)(void *dat);
+};
+struct tmx {
+ void *dat;
+ struct tmx_funcs *funcs;
+};
+
+#define tmx_attr(x) (tmx->funcs->x)(tmx->dat)
+
+#define tmx_year tmx_attr(year)
+#define tmx_yday tmx_attr(yday)
+#define tmx_mon tmx_attr(mon)
+#define tmx_mday tmx_attr(mday)
+#define tmx_cwyear tmx_attr(cwyear)
+#define tmx_cweek tmx_attr(cweek)
+#define tmx_cwday tmx_attr(cwday)
+#define tmx_wnum0 tmx_attr(wnum0)
+#define tmx_wnum1 tmx_attr(wnum1)
+#define tmx_wday tmx_attr(wday)
+#define tmx_hour tmx_attr(hour)
+#define tmx_min tmx_attr(min)
+#define tmx_sec tmx_attr(sec)
+#define tmx_sec_fraction tmx_attr(sec_fraction)
+#define tmx_secs tmx_attr(secs)
+#define tmx_msecs tmx_attr(msecs)
+#define tmx_offset tmx_attr(offset)
+#define tmx_zone tmx_attr(zone)
+
+#endif
+
+/*
+Local variables:
+c-file-style: "ruby"
+End:
+*/
diff --git a/ext/date/depend b/ext/date/depend
new file mode 100644
index 0000000000..7e5d62e79d
--- /dev/null
+++ b/ext/date/depend
@@ -0,0 +1,2 @@
+date_core.o: date_tmx.h
+date_strftime.o: date_tmx.h
diff --git a/ext/date/extconf.rb b/ext/date/extconf.rb
new file mode 100644
index 0000000000..9f7d3e8f0b
--- /dev/null
+++ b/ext/date/extconf.rb
@@ -0,0 +1,2 @@
+require 'mkmf'
+create_makefile('date_core')
diff --git a/ext/date/lib/date.rb b/ext/date/lib/date.rb
new file mode 100644
index 0000000000..d235d76e6f
--- /dev/null
+++ b/ext/date/lib/date.rb
@@ -0,0 +1,61 @@
+# date.rb: Written by Tadayoshi Funaba 1998-2011
+
+require 'date_core'
+require 'date/format'
+
+class Date
+
+ class Infinity < Numeric # :nodoc:
+
+ include Comparable
+
+ def initialize(d=1) @d = d <=> 0 end
+
+ def d() @d end
+
+ protected :d
+
+ def zero? () false end
+ def finite? () false end
+ def infinite? () d.nonzero? end
+ def nan? () d.zero? end
+
+ def abs() self.class.new end
+
+ def -@ () self.class.new(-d) end
+ def +@ () self.class.new(+d) end
+
+ def <=> (other)
+ case other
+ when Infinity; return d <=> other.d
+ when Numeric; return d
+ else
+ begin
+ l, r = other.coerce(self)
+ return l <=> r
+ rescue NoMethodError
+ end
+ end
+ nil
+ end
+
+ def coerce(other)
+ case other
+ when Numeric; return -d, d
+ else
+ super
+ end
+ end
+
+ def to_f
+ return 0 if @d == 0
+ if @d > 0
+ Float::INFINITY
+ else
+ -Float::INFINITY
+ end
+ end
+
+ end
+
+end
diff --git a/ext/date/lib/date/format.rb b/ext/date/lib/date/format.rb
new file mode 100644
index 0000000000..892e7aacaa
--- /dev/null
+++ b/ext/date/lib/date/format.rb
@@ -0,0 +1 @@
+# format.rb: Written by Tadayoshi Funaba 1999-2011
diff --git a/ext/dbm/.cvsignore b/ext/dbm/.cvsignore
deleted file mode 100644
index 814345ece8..0000000000
--- a/ext/dbm/.cvsignore
+++ /dev/null
@@ -1,4 +0,0 @@
-Makefile
-mkmf.log
-*.def
-extconf.h
diff --git a/ext/dbm/dbm.c b/ext/dbm/dbm.c
index 84d331ae53..3c65d1f5bc 100644
--- a/ext/dbm/dbm.c
+++ b/ext/dbm/dbm.c
@@ -26,7 +26,7 @@ static VALUE rb_cDBM, rb_eDBMError;
#define RUBY_DBM_RW_BIT 0x20000000
struct dbmdata {
- int di_size;
+ long di_size;
DBM *di_dbm;
};
@@ -37,13 +37,13 @@ closed_dbm(void)
}
#define GetDBM(obj, dbmp) {\
- Data_Get_Struct(obj, struct dbmdata, dbmp);\
- if (dbmp == 0) closed_dbm();\
- if (dbmp->di_dbm == 0) closed_dbm();\
+ Data_Get_Struct((obj), struct dbmdata, (dbmp));\
+ if ((dbmp) == 0) closed_dbm();\
+ if ((dbmp)->di_dbm == 0) closed_dbm();\
}
#define GetDBM2(obj, data, dbm) {\
- GetDBM(obj, data);\
+ GetDBM((obj), (data));\
(dbm) = dbmp->di_dbm;\
}
@@ -56,6 +56,12 @@ free_dbm(struct dbmdata *dbmp)
}
}
+/*
+ * call-seq:
+ * dbm.close
+ *
+ * Closes the database.
+ */
static VALUE
fdbm_close(VALUE obj)
{
@@ -68,6 +74,12 @@ fdbm_close(VALUE obj)
return Qnil;
}
+/*
+ * call-seq:
+ * dbm.closed? -> true or false
+ *
+ * Returns true if the database is closed, false otherwise.
+ */
static VALUE
fdbm_closed(VALUE obj)
{
@@ -88,6 +100,19 @@ fdbm_alloc(VALUE klass)
return Data_Wrap_Struct(klass, 0, free_dbm, 0);
}
+/*
+ * call-seq:
+ * DBM.new(filename[, mode[, flags]]) -> dbm
+ *
+ * Open a dbm database with the specified name, which can include a directory
+ * path. Any file extensions needed will be supplied automatically by the dbm
+ * library. For example, Berkeley DB appends '.db', and GNU gdbm uses two
+ * physical files with extensions '.dir' and '.pag'.
+ *
+ * The mode should be an integer, as for Unix chmod.
+ *
+ * Flags should be one of READER, WRITER, WRCREAT or NEWDB.
+ */
static VALUE
fdbm_initialize(int argc, VALUE *argv, VALUE obj)
{
@@ -142,6 +167,14 @@ fdbm_initialize(int argc, VALUE *argv, VALUE obj)
return obj;
}
+/*
+ * call-seq:
+ * DBM.open(filename[, mode[, flags]]) -> dbm
+ * DBM.open(filename[, mode[, flags]]) {|dbm| block}
+ *
+ * Open a dbm database and yields it if a block is given. See also
+ * <code>DBM.new</code>.
+ */
static VALUE
fdbm_s_open(int argc, VALUE *argv, VALUE klass)
{
@@ -167,7 +200,7 @@ fdbm_fetch(VALUE obj, VALUE keystr, VALUE ifnone)
ExportStringValue(keystr);
key.dptr = RSTRING_PTR(keystr);
- key.dsize = RSTRING_LEN(keystr);
+ key.dsize = (int)RSTRING_LEN(keystr);
GetDBM2(obj, dbmp, dbm);
value = dbm_fetch(dbm, key);
@@ -179,12 +212,27 @@ fdbm_fetch(VALUE obj, VALUE keystr, VALUE ifnone)
return rb_tainted_str_new(value.dptr, value.dsize);
}
+/*
+ * call-seq:
+ * dbm[key] -> string value or nil
+ *
+ * Return a value from the database by locating the key string
+ * provided. If the key is not found, returns nil.
+ */
static VALUE
fdbm_aref(VALUE obj, VALUE keystr)
{
return fdbm_fetch(obj, keystr, Qnil);
}
+/*
+ * call-seq:
+ * dbm.fetch(key[, ifnone]) -> value
+ *
+ * Return a value from the database by locating the key string
+ * provided. If the key is not found, returns +ifnone+. If +ifnone+
+ * is not given, raises IndexError.
+ */
static VALUE
fdbm_fetch_m(int argc, VALUE *argv, VALUE obj)
{
@@ -198,6 +246,12 @@ fdbm_fetch_m(int argc, VALUE *argv, VALUE obj)
return valstr;
}
+/*
+ * call-seq:
+ * dbm.key(value) -> string
+ *
+ * Returns the key for the specified value.
+ */
static VALUE
fdbm_key(VALUE obj, VALUE valstr)
{
@@ -207,12 +261,12 @@ fdbm_key(VALUE obj, VALUE valstr)
ExportStringValue(valstr);
val.dptr = RSTRING_PTR(valstr);
- val.dsize = RSTRING_LEN(valstr);
+ val.dsize = (int)RSTRING_LEN(valstr);
GetDBM2(obj, dbmp, dbm);
for (key = dbm_firstkey(dbm); key.dptr; key = dbm_nextkey(dbm)) {
val = dbm_fetch(dbm, key);
- if (val.dsize == RSTRING_LEN(valstr) &&
+ if ((long)val.dsize == (int)RSTRING_LEN(valstr) &&
memcmp(val.dptr, RSTRING_PTR(valstr), val.dsize) == 0) {
return rb_tainted_str_new(key.dptr, key.dsize);
}
@@ -220,6 +274,7 @@ fdbm_key(VALUE obj, VALUE valstr)
return Qnil;
}
+/* :nodoc: */
static VALUE
fdbm_index(VALUE hash, VALUE value)
{
@@ -227,6 +282,13 @@ fdbm_index(VALUE hash, VALUE value)
return fdbm_key(hash, value);
}
+/*
+ * call-seq:
+ * dbm.select {|key, value| block} -> array
+ *
+ * Returns a new array consisting of the [key, value] pairs for which the code
+ * block returns true.
+ */
static VALUE
fdbm_select(VALUE obj)
{
@@ -251,6 +313,12 @@ fdbm_select(VALUE obj)
return new;
}
+/*
+ * call-seq:
+ * dbm.values_at(key, ...) -> Array
+ *
+ * Returns an array containing the values associated with the given keys.
+ */
static VALUE
fdbm_values_at(int argc, VALUE *argv, VALUE obj)
{
@@ -271,6 +339,12 @@ fdbm_modify(VALUE obj)
if (OBJ_FROZEN(obj)) rb_error_frozen("DBM");
}
+/*
+ * call-seq:
+ * dbm.delete(key)
+ *
+ * Deletes an entry from the database.
+ */
static VALUE
fdbm_delete(VALUE obj, VALUE keystr)
{
@@ -282,7 +356,7 @@ fdbm_delete(VALUE obj, VALUE keystr)
fdbm_modify(obj);
ExportStringValue(keystr);
key.dptr = RSTRING_PTR(keystr);
- key.dsize = RSTRING_LEN(keystr);
+ key.dsize = (int)RSTRING_LEN(keystr);
GetDBM2(obj, dbmp, dbm);
@@ -305,6 +379,14 @@ fdbm_delete(VALUE obj, VALUE keystr)
return valstr;
}
+/*
+ * call-seq:
+ * dbm.shift() -> [key, value]
+ *
+ * Removes a [key, value] pair from the database, and returns it.
+ * If the database is empty, returns nil.
+ * The order in which values are removed/returned is not guaranteed.
+ */
static VALUE
fdbm_shift(VALUE obj)
{
@@ -317,7 +399,7 @@ fdbm_shift(VALUE obj)
GetDBM2(obj, dbmp, dbm);
dbmp->di_size = -1;
- key = dbm_firstkey(dbm);
+ key = dbm_firstkey(dbm);
if (!key.dptr) return Qnil;
val = dbm_fetch(dbm, key);
keystr = rb_tainted_str_new(key.dptr, key.dsize);
@@ -327,6 +409,14 @@ fdbm_shift(VALUE obj)
return rb_assoc_new(keystr, valstr);
}
+/*
+ * call-seq:
+ * dbm.reject! {|key, value| block} -> self
+ * dbm.delete_if {|key, value| block} -> self
+ *
+ * Deletes all entries for which the code block returns true.
+ * Returns self.
+ */
static VALUE
fdbm_delete_if(VALUE obj)
{
@@ -335,7 +425,8 @@ fdbm_delete_if(VALUE obj)
DBM *dbm;
VALUE keystr, valstr;
VALUE ret, ary = rb_ary_new();
- int i, status = 0, n;
+ int i, status = 0;
+ long n;
fdbm_modify(obj);
GetDBM2(obj, dbmp, dbm);
@@ -356,7 +447,7 @@ fdbm_delete_if(VALUE obj)
keystr = RARRAY_PTR(ary)[i];
ExportStringValue(keystr);
key.dptr = RSTRING_PTR(keystr);
- key.dsize = RSTRING_LEN(keystr);
+ key.dsize = (int)RSTRING_LEN(keystr);
if (dbm_delete(dbm, key)) {
rb_raise(rb_eDBMError, "dbm_delete failed");
}
@@ -367,6 +458,12 @@ fdbm_delete_if(VALUE obj)
return obj;
}
+/*
+ * call-seq:
+ * dbm.clear
+ *
+ * Deletes all data from the database.
+ */
static VALUE
fdbm_clear(VALUE obj)
{
@@ -387,6 +484,13 @@ fdbm_clear(VALUE obj)
return obj;
}
+/*
+ * call-seq:
+ * dbm.invert -> hash
+ *
+ * Returns a Hash (not a DBM database) created by using each value in the
+ * database as a key, with the corresponding key as its value.
+ */
static VALUE
fdbm_invert(VALUE obj)
{
@@ -419,6 +523,14 @@ update_i(VALUE pair, VALUE dbm)
return Qnil;
}
+/*
+ * call-seq:
+ * dbm.update(obj)
+ *
+ * Updates the database with multiple values from the specified object.
+ * Takes any object which implements the each_pair method, including
+ * Hash and DBM objects.
+ */
static VALUE
fdbm_update(VALUE obj, VALUE other)
{
@@ -426,6 +538,14 @@ fdbm_update(VALUE obj, VALUE other)
return obj;
}
+/*
+ * call-seq:
+ * dbm.replace(obj)
+ *
+ * Replaces the contents of the database with the contents of the specified
+ * object. Takes any object which implements the each_pair method, including
+ * Hash and DBM objects.
+ */
static VALUE
fdbm_replace(VALUE obj, VALUE other)
{
@@ -434,6 +554,14 @@ fdbm_replace(VALUE obj, VALUE other)
return obj;
}
+/*
+ * call-seq:
+ * dbm.store(key, value) -> value
+ * dbm[key] = value
+ *
+ * Stores the specified string value in the database, indexed via the
+ * string key provided.
+ */
static VALUE
fdbm_store(VALUE obj, VALUE keystr, VALUE valstr)
{
@@ -446,10 +574,10 @@ fdbm_store(VALUE obj, VALUE keystr, VALUE valstr)
valstr = rb_obj_as_string(valstr);
key.dptr = RSTRING_PTR(keystr);
- key.dsize = RSTRING_LEN(keystr);
+ key.dsize = (int)RSTRING_LEN(keystr);
val.dptr = RSTRING_PTR(valstr);
- val.dsize = RSTRING_LEN(valstr);
+ val.dsize = (int)RSTRING_LEN(valstr);
GetDBM2(obj, dbmp, dbm);
dbmp->di_size = -1;
@@ -464,6 +592,12 @@ fdbm_store(VALUE obj, VALUE keystr, VALUE valstr)
return valstr;
}
+/*
+ * call-seq:
+ * dbm.length -> integer
+ *
+ * Returns the number of entries in the database.
+ */
static VALUE
fdbm_length(VALUE obj)
{
@@ -483,6 +617,12 @@ fdbm_length(VALUE obj)
return INT2FIX(i);
}
+/*
+ * call-seq:
+ * dbm.empty?
+ *
+ * Returns true if the database is empty, false otherwise.
+ */
static VALUE
fdbm_empty_p(VALUE obj)
{
@@ -500,12 +640,18 @@ fdbm_empty_p(VALUE obj)
}
}
else {
- i = dbmp->di_size;
+ i = (int)dbmp->di_size;
}
if (i == 0) return Qtrue;
return Qfalse;
}
+/*
+ * call-seq:
+ * dbm.each_value {|value| block} -> self
+ *
+ * Calls the block once for each value string in the database. Returns self.
+ */
static VALUE
fdbm_each_value(VALUE obj)
{
@@ -524,6 +670,12 @@ fdbm_each_value(VALUE obj)
return obj;
}
+/*
+ * call-seq:
+ * dbm.each_key {|key| block} -> self
+ *
+ * Calls the block once for each key string in the database. Returns self.
+ */
static VALUE
fdbm_each_key(VALUE obj)
{
@@ -541,6 +693,13 @@ fdbm_each_key(VALUE obj)
return obj;
}
+/*
+ * call-seq:
+ * dbm.each_pair {|key,value| block} -> self
+ *
+ * Calls the block once for each [key, value] pair in the database.
+ * Returns self.
+ */
static VALUE
fdbm_each_pair(VALUE obj)
{
@@ -564,6 +723,12 @@ fdbm_each_pair(VALUE obj)
return obj;
}
+/*
+ * call-seq:
+ * dbm.keys -> array
+ *
+ * Returns an array of all the string keys in the database.
+ */
static VALUE
fdbm_keys(VALUE obj)
{
@@ -582,6 +747,12 @@ fdbm_keys(VALUE obj)
return ary;
}
+/*
+ * call-seq:
+ * dbm.values -> array
+ *
+ * Returns an array of all the string values in the database.
+ */
static VALUE
fdbm_values(VALUE obj)
{
@@ -600,6 +771,12 @@ fdbm_values(VALUE obj)
return ary;
}
+/*
+ * call-seq:
+ * dbm.has_key?(key) -> boolean
+ *
+ * Returns true if the database contains the specified key, false otherwise.
+ */
static VALUE
fdbm_has_key(VALUE obj, VALUE keystr)
{
@@ -609,7 +786,7 @@ fdbm_has_key(VALUE obj, VALUE keystr)
ExportStringValue(keystr);
key.dptr = RSTRING_PTR(keystr);
- key.dsize = RSTRING_LEN(keystr);
+ key.dsize = (int)RSTRING_LEN(keystr);
GetDBM2(obj, dbmp, dbm);
val = dbm_fetch(dbm, key);
@@ -617,6 +794,13 @@ fdbm_has_key(VALUE obj, VALUE keystr)
return Qfalse;
}
+/*
+ * call-seq:
+ * dbm.has_value?(value) -> boolean
+ *
+ * Returns true if the database contains the specified string value, false
+ * otherwise.
+ */
static VALUE
fdbm_has_value(VALUE obj, VALUE valstr)
{
@@ -626,18 +810,25 @@ fdbm_has_value(VALUE obj, VALUE valstr)
ExportStringValue(valstr);
val.dptr = RSTRING_PTR(valstr);
- val.dsize = RSTRING_LEN(valstr);
+ val.dsize = (int)RSTRING_LEN(valstr);
GetDBM2(obj, dbmp, dbm);
for (key = dbm_firstkey(dbm); key.dptr; key = dbm_nextkey(dbm)) {
val = dbm_fetch(dbm, key);
- if (val.dsize == RSTRING_LEN(valstr) &&
+ if (val.dsize == (int)RSTRING_LEN(valstr) &&
memcmp(val.dptr, RSTRING_PTR(valstr), val.dsize) == 0)
return Qtrue;
}
return Qfalse;
}
+/*
+ * call-seq:
+ * dbm.to_a -> array
+ *
+ * Converts the contents of the database to an array of [key, value] arrays,
+ * and returns it.
+ */
static VALUE
fdbm_to_a(VALUE obj)
{
@@ -657,6 +848,13 @@ fdbm_to_a(VALUE obj)
return ary;
}
+/*
+ * call-seq:
+ * dbm.to_hash -> hash
+ *
+ * Converts the contents of the database to an in-memory Hash object, and
+ * returns it.
+ */
static VALUE
fdbm_to_hash(VALUE obj)
{
@@ -676,16 +874,88 @@ fdbm_to_hash(VALUE obj)
return hash;
}
+/*
+ * call-seq:
+ * dbm.reject {|key,value| block} -> Hash
+ *
+ * Converts the contents of the database to an in-memory Hash, then calls
+ * Hash#reject with the specified code block, returning a new Hash.
+ */
static VALUE
fdbm_reject(VALUE obj)
{
return rb_hash_delete_if(fdbm_to_hash(obj));
}
+/*
+ * Documented by mathew meta@pobox.com.
+ * = Introduction
+ *
+ * The DBM class provides a wrapper to a Unix-style
+ * {dbm}[http://en.wikipedia.org/wiki/Dbm] or Database Manager library.
+ *
+ * Dbm databases do not have tables or columns; they are simple key-value
+ * data stores, like a Ruby Hash except not resident in RAM. Keys and values
+ * must be strings.
+ *
+ * The exact library used depends on how Ruby was compiled. It could be any
+ * of the following:
+ *
+ * - The original ndbm library is released in 4.3BSD.
+ * It is based on dbm library in Unix Version 7 but has different API to
+ * support multiple databases in a process.
+ * - {Berkeley DB}[http://en.wikipedia.org/wiki/Berkeley_DB] versions
+ * 1 thru 5, also known as BDB and Sleepycat DB, now owned by Oracle
+ * Corporation.
+ * - Berkeley DB 1.x, still found in FreeBSD and OpenBSD.
+ * - {gdbm}[http://www.gnu.org/software/gdbm/], the GNU implementation of dbm.
+ * - {qdbm}[http://fallabs.com/qdbm/index.html], another open source
+ * reimplementation of dbm.
+ *
+ * All of these dbm implementations have their own Ruby interfaces
+ * available, which provide richer (but varying) APIs.
+ *
+ * = Cautions
+ *
+ * Before you decide to use DBM, there are some issues you should consider:
+ *
+ * - Each implementation of dbm has its own file format. Generally, dbm
+ * libraries will not read each other's files. This makes dbm files
+ * a bad choice for data exchange.
+ *
+ * - Even running the same OS and the same dbm implementation, the database
+ * file format may depend on the CPU architecture. For example, files may
+ * not be portable between PowerPC and 386, or between 32 and 64 bit Linux.
+ *
+ * - Different versions of Berkeley DB use different file formats. A change to
+ * the OS may therefore break DBM access to existing files.
+ *
+ * - Data size limits vary between implementations. Original Berkeley DB was
+ * limited to 2GB of data. Dbm libraries also sometimes limit the total
+ * size of a key/value pair, and the total size of all the keys that hash
+ * to the same value. These limits can be as little as 512 bytes. That said,
+ * gdbm and recent versions of Berkeley DB do away with these limits.
+ *
+ * Given the above cautions, DBM is not a good choice for long term storage of
+ * important data. It is probably best used as a fast and easy alternative
+ * to a Hash for processing large amounts of data.
+ *
+ * = Example
+ *
+ * require 'dbm'
+ * db = DBM.open('rfcs', 666, DBM::CREATRW)
+ * db['822'] = 'Standard for the Format of ARPA Internet Text Messages'
+ * db['1123'] = 'Requirements for Internet Hosts - Application and Support'
+ * db['3068'] = 'An Anycast Prefix for 6to4 Relay Routers'
+ * puts db['822']
+ */
void
Init_dbm(void)
{
rb_cDBM = rb_define_class("DBM", rb_cObject);
+ /* Document-class: DBMError
+ * Exception class used to return errors from the dbm library.
+ */
rb_eDBMError = rb_define_class("DBMError", rb_eStandardError);
rb_include_module(rb_cDBM, rb_mEnumerable);
@@ -732,14 +1002,40 @@ Init_dbm(void)
rb_define_method(rb_cDBM, "to_a", fdbm_to_a, 0);
rb_define_method(rb_cDBM, "to_hash", fdbm_to_hash, 0);
- /* flags for dbm_open() */
+ /* Indicates that dbm_open() should open the database in read-only mode */
rb_define_const(rb_cDBM, "READER", INT2FIX(O_RDONLY|RUBY_DBM_RW_BIT));
+
+ /* Indicates that dbm_open() should open the database in read/write mode */
rb_define_const(rb_cDBM, "WRITER", INT2FIX(O_RDWR|RUBY_DBM_RW_BIT));
+
+ /* Indicates that dbm_open() should open the database in read/write mode,
+ * and create it if it does not already exist
+ */
rb_define_const(rb_cDBM, "WRCREAT", INT2FIX(O_RDWR|O_CREAT|RUBY_DBM_RW_BIT));
+
+ /* Indicates that dbm_open() should open the database in read/write mode,
+ * create it if it does not already exist, and delete all contents if it
+ * does already exist.
+ */
rb_define_const(rb_cDBM, "NEWDB", INT2FIX(O_RDWR|O_CREAT|O_TRUNC|RUBY_DBM_RW_BIT));
-#ifdef DB_VERSION_STRING
- rb_define_const(rb_cDBM, "VERSION", rb_str_new2(DB_VERSION_STRING));
+#if defined(HAVE_DB_VERSION)
+ /* The version of the dbm library, if using Berkeley DB */
+ rb_define_const(rb_cDBM, "VERSION", rb_str_new2(db_version(NULL, NULL, NULL)));
+#elif defined(HAVE_GDBM_VERSION)
+ /* since gdbm 1.9 */
+ rb_define_const(rb_cDBM, "VERSION", rb_str_new2(gdbm_version));
+#elif defined(HAVE_LIBVAR_GDBM_VERSION)
+ /* ndbm.h doesn't declare gdbm_version until gdbm 1.8.3.
+ * See extconf.rb for more information. */
+ {
+ RUBY_EXTERN char *gdbm_version;
+ rb_define_const(rb_cDBM, "VERSION", rb_str_new2(gdbm_version));
+ }
+#elif defined(HAVE_DPVERSION)
+ rb_define_const(rb_cDBM, "VERSION", rb_sprintf("QDBM %s", dpversion));
+#elif defined(_DB_H_)
+ rb_define_const(rb_cDBM, "VERSION", rb_str_new2("Berkeley DB (unknown)"));
#else
rb_define_const(rb_cDBM, "VERSION", rb_str_new2("unknown"));
#endif
diff --git a/ext/dbm/extconf.rb b/ext/dbm/extconf.rb
index 4d12264063..bedd1131f0 100644
--- a/ext/dbm/extconf.rb
+++ b/ext/dbm/extconf.rb
@@ -5,49 +5,282 @@ dir_config("dbm")
if dblib = with_config("dbm-type", nil)
dblib = dblib.split(/[ ,]+/)
else
- dblib = %w(db db2 db1 dbm gdbm gdbm_compat qdbm)
+ dblib = %w(libc db db2 db1 db5 db4 db3 dbm gdbm gdbm_compat qdbm)
end
headers = {
+ "libc" => ["ndbm.h"], # 4.4BSD libc contains Berkeley DB 1.
"db" => ["db.h"],
"db1" => ["db1/ndbm.h", "db1.h", "ndbm.h"],
"db2" => ["db2/db.h", "db2.h", "db.h"],
- "dbm" => ["ndbm.h"],
- "gdbm" => ["gdbm-ndbm.h", "ndbm.h"],
- "gdbm_compat" => ["gdbm-ndbm.h", "ndbm.h"],
- "qdbm" => ["relic.h"],
+ "db3" => ["db3/db.h", "db3.h", "db.h"],
+ "db4" => ["db4/db.h", "db4.h", "db.h"],
+ "db5" => ["db5/db.h", "db5.h", "db.h"],
+ "dbm" => ["ndbm.h"], # traditional ndbm (4.3BSD)
+ "gdbm" => ["gdbm-ndbm.h", "ndbm.h", "gdbm/ndbm.h"], # gdbm until 1.8.0
+ "gdbm_compat" => ["gdbm-ndbm.h", "ndbm.h", "gdbm/ndbm.h"], # gdbm since 1.8.1
+ "qdbm" => ["relic.h", "qdbm/relic.h"],
}
-def headers.db_check(db)
- db_prefix = nil
- have_gdbm = false
+class << headers
+ attr_accessor :found
+ attr_accessor :defs
+end
+headers.found = []
+headers.defs = nil
+
+def headers.db_check(db, hdr)
+ old_libs = $libs.dup
+ old_defs = $defs.dup
+ result = db_check2(db, hdr)
+ if !result
+ $libs = old_libs
+ $defs = old_defs
+ end
+ result
+end
+
+# BEGIN BACKPORTED FROM 2.0
+class String
+ # Wraps a string in escaped quotes if it contains whitespace.
+ def quote
+ /\s/ =~ self ? "\"#{self}\"" : "#{self}"
+ end
+
+ # Generates a string used as cpp macro name.
+ def tr_cpp
+ strip.upcase.tr_s("^A-Z0-9_*", "_").tr_s("*", "P")
+ end
+
+ def funcall_style
+ /\)\z/ =~ self ? dup : "#{self}()"
+ end
+
+ def sans_arguments
+ self[/\A[^()]+/]
+ end
+end
+
+ def rm_f(*files)
+ opt = (Hash === files.last ? [files.pop] : [])
+ FileUtils.rm_f(Dir[*files.flatten], *opt)
+ end
+
+ def try_func(func, libs, headers = nil, opt = "", &b)
+ headers = cpp_include(headers)
+ case func
+ when /^&/
+ decltype = proc {|x|"const volatile void *#{x}"}
+ when /\)$/
+ call = func
+ else
+ call = "#{func}()"
+ decltype = proc {|x| "void ((*#{x})())"}
+ end
+ if opt and !opt.empty?
+ [[:to_str], [:join, " "], [:to_s]].each do |meth, *args|
+ if opt.respond_to?(meth)
+ break opt = opt.send(meth, *args)
+ end
+ end
+ opt = "#{opt} #{libs}"
+ else
+ opt = libs
+ end
+ decltype && try_link(<<"SRC", opt, &b) or
+#{headers}
+/*top*/
+#{MAIN_DOES_NOTHING}
+extern int t(void);
+int t(void) { #{decltype["volatile p"]}; p = (#{decltype[]})#{func}; return 0; }
+SRC
+ call && try_link(<<"SRC", opt, &b)
+#{headers}
+/*top*/
+#{MAIN_DOES_NOTHING}
+extern int t(void);
+int t(void) { #{call}; return 0; }
+SRC
+ end
+
+ def try_var(var, headers = nil, opt = "", &b)
+ headers = cpp_include(headers)
+ try_compile(<<"SRC", opt, &b)
+#{headers}
+/*top*/
+#{MAIN_DOES_NOTHING}
+extern int t(void);
+int t(void) { const volatile void *volatile p; p = &(&#{var})[0]; return 0; }
+SRC
+ end
+
+ def have_library(lib, func = nil, headers = nil, opt = "", &b)
+ func = "main" if !func or func.empty?
+ lib = with_config(lib+'lib', lib)
+ checking_for checking_message(func.funcall_style, LIBARG%lib, opt) do
+ if COMMON_LIBS.include?(lib)
+ true
+ else
+ libs = append_library($libs, lib)
+ if try_func(func, libs, headers, opt, &b)
+ $libs = libs
+ true
+ else
+ false
+ end
+ end
+ end
+ end
+
+ def have_func(func, headers = nil, opt = "", &b)
+ checking_for checking_message(func.funcall_style, headers, opt) do
+ if try_func(func, $libs, headers, opt, &b)
+ $defs << "-DHAVE_#{func.sans_arguments.tr_cpp}"
+ true
+ else
+ false
+ end
+ end
+ end
+
+ def have_var(var, headers = nil, opt = "", &b)
+ checking_for checking_message(var, headers, opt) do
+ if try_var(var, headers, opt, &b)
+ $defs.push(format("-DHAVE_%s", var.tr_cpp))
+ true
+ else
+ false
+ end
+ end
+ end
+
+ def try_cpp(src, opt="", *opts, &b)
+ try_do(src, cpp_command(CPPOUTFILE, opt), *opts, &b)
+ ensure
+ rm_f "conftest*"
+ end
+
+ alias :try_header :try_cpp
+
+ def have_header(header, preheaders = nil, opt = "", &b)
+ checking_for header do
+ if try_header(cpp_include(preheaders)+cpp_include(header), opt, &b)
+ $defs.push(format("-DHAVE_%s", header.tr_cpp))
+ true
+ else
+ false
+ end
+ end
+ end
+
+ def convertible_int(type, headers = nil, opts = nil, &b)
+ type, macname = *type
+ checking_for("convertible type of #{type}", STRING_OR_FAILED_FORMAT) do
+ if UNIVERSAL_INTS.include?(type)
+ type
+ else
+ typedef, member, prelude = typedef_expr(type, headers, &b)
+ if member
+ prelude << "static rbcv_typedef_ rbcv_var;"
+ compat = UNIVERSAL_INTS.find {|t|
+ try_static_assert("sizeof(rbcv_var.#{member}) == sizeof(#{t})", [prelude], opts, &b)
+ }
+ else
+ next unless signed = try_signedness(typedef, member, [prelude])
+ u = "unsigned " if signed > 0
+ prelude << "extern rbcv_typedef_ foo();"
+ compat = UNIVERSAL_INTS.find {|t|
+ try_compile([prelude, "extern #{u}#{t} foo();"].join("\n"), opts, :werror=>true, &b)
+ }
+ end
+ if compat
+ macname ||= type.sub(/_(?=t\z)/, '').tr_cpp
+ conv = (compat == "long long" ? "LL" : compat.upcase)
+ compat = "#{u}#{compat}"
+ typename = type.tr_cpp
+ $defs.push(format("-DSIZEOF_%s=SIZEOF_%s", typename, compat.tr_cpp))
+ $defs.push(format("-DTYPEOF_%s=%s", typename, compat.quote))
+ $defs.push(format("-DPRI_%s_PREFIX=PRI_%s_PREFIX", macname, conv))
+ conv = (u ? "U" : "") + conv
+ $defs.push(format("-D%s2NUM=%s2NUM", macname, conv))
+ $defs.push(format("-DNUM2%s=NUM2%s", macname, conv))
+ compat
+ end
+ end
+ end
+ end
+# END BACKPORTED FROM 2.0
+
+def have_libvar(var, headers = nil, opt = "", &b)
+ checking_for checking_message([*var].compact.join(' '), headers, opt) do
+ try_libvar(var, headers, opt, &b)
+ end
+end
+
+def try_libvar(var, headers = nil, opt = "", &b)
+ var, type = *var
+ if try_link(<<"SRC", opt, &b)
+#{cpp_include(headers)}
+/*top*/
+int main(int argc, char *argv[]) {
+ typedef #{type || 'int'} conftest_type;
+ extern conftest_type #{var};
+ conftest_type *conftest_var = &#{var};
+ return 0;
+}
+SRC
+ $defs.push(format("-DHAVE_LIBVAR_%s", var.tr_cpp))
+ true
+ else
+ false
+ end
+end
+
+
+def headers.db_check2(db, hdr)
hsearch = nil
case db
- when /^db2?$/
- db_prefix = "__db_n"
- hsearch = "-DDB_DBM_HSEARCH "
- when "gdbm"
- have_gdbm = true
+ when /^db[2-5]?$/
+ hsearch = "-DDB_DBM_HSEARCH"
when "gdbm_compat"
- have_gdbm = true
have_library("gdbm") or return false
end
- db_prefix ||= ""
- if (have_library(db, db_prefix+"dbm_open") || have_func(db_prefix+"dbm_open")) and
- hdr = self.fetch(db, ["ndbm.h"]).find {|h| have_type("DBM", h, hsearch)}
- have_func(db_prefix+"dbm_clearerr") unless have_gdbm
- $defs << hsearch if hsearch
+ if have_type("DBM", hdr, hsearch) and
+ (db == 'libc' ? have_func('dbm_open("", 0, 0)', hdr, hsearch) :
+ have_library(db, 'dbm_open("", 0, 0)', hdr, hsearch)) and
+ have_func('dbm_clearerr((DBM *)0)', hdr, hsearch) and
+ (/\Adb\d?\z/ =~ db || db == 'libc' || !have_macro('_DB_H_', hdr, hsearch)) # _DB_H_ should not be defined except Berkeley DB.
+ case db
+ when /\Adb\d?\z/
+ have_func('db_version((int *)0, (int *)0, (int *)0)', hdr, hsearch)
+ when /\Agdbm/
+ have_var("gdbm_version", hdr, hsearch)
+ # gdbm_version is not declared by ndbm.h until gdbm 1.8.3.
+ # We can't include ndbm.h and gdbm.h because they both define datum type.
+ # ndbm.h includes gdbm.h and gdbm_version is declared since gdbm 1.9.
+ have_libvar(["gdbm_version", "char *"], hdr, hsearch)
+ when /\Aqdbm\z/
+ have_var("dpversion", hdr, hsearch)
+ end
+ if hsearch
+ $defs << hsearch
+ @defs = hsearch
+ end
$defs << '-DDBM_HDR="<'+hdr+'>"'
+ @found << hdr
true
else
false
end
end
-if dblib.any? {|db| headers.db_check(db)}
+if dblib.any? {|db| headers.fetch(db, ["ndbm.h"]).any? {|hdr| headers.db_check(db, hdr) } }
have_header("cdefs.h")
have_header("sys/cdefs.h")
+ have_func("dbm_pagfno((DBM *)0)", headers.found, headers.defs)
+ have_func("dbm_dirfno((DBM *)0)", headers.found, headers.defs)
+ convertible_int("datum.dsize", headers.found, headers.defs)
create_makefile("dbm")
end
diff --git a/ext/digest/.cvsignore b/ext/digest/.cvsignore
deleted file mode 100644
index 814345ece8..0000000000
--- a/ext/digest/.cvsignore
+++ /dev/null
@@ -1,4 +0,0 @@
-Makefile
-mkmf.log
-*.def
-extconf.h
diff --git a/ext/digest/bubblebabble/.cvsignore b/ext/digest/bubblebabble/.cvsignore
deleted file mode 100644
index 814345ece8..0000000000
--- a/ext/digest/bubblebabble/.cvsignore
+++ /dev/null
@@ -1,4 +0,0 @@
-Makefile
-mkmf.log
-*.def
-extconf.h
diff --git a/ext/digest/bubblebabble/bubblebabble.c b/ext/digest/bubblebabble/bubblebabble.c
index 3a03ceced0..c92ae52cd9 100644
--- a/ext/digest/bubblebabble/bubblebabble.c
+++ b/ext/digest/bubblebabble/bubblebabble.c
@@ -23,7 +23,7 @@ bubblebabble_str_new(VALUE str_digest)
size_t digest_len;
VALUE str;
char *p;
- int i, j, seed = 1;
+ size_t i, j, seed = 1;
static const char vowels[] = {
'a', 'e', 'i', 'o', 'u', 'y'
};
@@ -54,7 +54,7 @@ bubblebabble_str_new(VALUE str_digest)
p[j++] = consonants[16];
p[j++] = vowels[seed / 6];
break;
- }
+ }
byte1 = digest[i++];
p[j++] = vowels[(((byte1 >> 6) & 3) + seed) % 6];
diff --git a/ext/digest/digest.c b/ext/digest/digest.c
index c3e9546ab4..956f47ff78 100644
--- a/ext/digest/digest.c
+++ b/ext/digest/digest.c
@@ -29,6 +29,53 @@ RUBY_EXTERN void Init_digest_base(void);
* Document-module: Digest
*
* This module provides a framework for message digest libraries.
+ *
+ * You may want to look at OpenSSL::Digest as it supports support more
+ * algorithms.
+ *
+ * A cryptographic hash function is a procedure that takes data and return a
+ * fixed bit string : the hash value, also known as _digest_. Hash functions
+ * are also called one-way functions, it is easy to compute a digest from
+ * a message, but it is infeasible to generate a message from a digest.
+ *
+ * == Example
+ *
+ * require 'digest'
+ *
+ * # Compute a complete digest
+ * sha256 = Digest::SHA256.new
+ * digest = sha256.digest message
+ *
+ * # Compute digest by chunks
+ * sha256 = Digest::SHA256.new
+ * sha256.update message1
+ * sha256 << message2 # << is an alias for update
+ *
+ * digest = sha256.digest
+ *
+ * == Digest algorithms
+ *
+ * Different digest algorithms (or hash functions) are available :
+ *
+ * HMAC::
+ * See FIPS PUB 198 The Keyed-Hash Message Authentication Code (HMAC)
+ * RIPEMD-160::
+ * (as Digest::RMD160) see
+ * http://homes.esat.kuleuven.be/~bosselae/ripemd160.html
+ * SHA1::
+ * See FIPS 180 Secure Hash Standard
+ * SHA2 family::
+ * See FIPS 180 Secure Hash Standard which defines the following algorithms:
+ * * SHA512
+ * * SHA384
+ * * SHA256
+ *
+ * The latest versions of the FIPS publications can be found here:
+ * http://csrc.nist.gov/publications/PubsFIPS.html
+ *
+ * Additionally Digest::BubbleBabble encodes a digest as a sequence of
+ * consonants and vowels which is more recognizable and comparable than a
+ * hexadecimal digest. See http://en.wikipedia.org/wiki/Bubblebabble
*/
static VALUE
@@ -36,7 +83,7 @@ hexencode_str_new(VALUE str_digest)
{
char *digest;
size_t digest_len;
- int i;
+ size_t i;
VALUE str;
char *p;
static const char hex[] = {
@@ -76,6 +123,8 @@ rb_digest_s_hexencode(VALUE klass, VALUE str)
return hexencode_str_new(str);
}
+NORETURN(static void rb_digest_instance_method_unimpl(VALUE self, const char *method));
+
/*
* Document-module: Digest::Instance
*
@@ -83,6 +132,13 @@ rb_digest_s_hexencode(VALUE klass, VALUE str)
* object to calculate message digest values.
*/
+static void
+rb_digest_instance_method_unimpl(VALUE self, const char *method)
+{
+ rb_raise(rb_eRuntimeError, "%s does not implement %s()",
+ rb_obj_classname(self), method);
+}
+
/*
* call-seq:
* digest_obj.update(string) -> digest_obj
@@ -97,7 +153,7 @@ rb_digest_s_hexencode(VALUE klass, VALUE str)
static VALUE
rb_digest_instance_update(VALUE self, VALUE str)
{
- rb_raise(rb_eRuntimeError, "%s does not implement update()", RSTRING_PTR(rb_inspect(self)));
+ rb_digest_instance_method_unimpl(self, "update");
}
/*
@@ -115,7 +171,7 @@ rb_digest_instance_update(VALUE self, VALUE str)
static VALUE
rb_digest_instance_finish(VALUE self)
{
- rb_raise(rb_eRuntimeError, "%s does not implement finish()", RSTRING_PTR(rb_inspect(self)));
+ rb_digest_instance_method_unimpl(self, "finish");
}
/*
@@ -129,7 +185,7 @@ rb_digest_instance_finish(VALUE self)
static VALUE
rb_digest_instance_reset(VALUE self)
{
- rb_raise(rb_eRuntimeError, "%s does not implement reset()", RSTRING_PTR(rb_inspect(self)));
+ rb_digest_instance_method_unimpl(self, "reset");
}
/*
@@ -170,10 +226,7 @@ rb_digest_instance_digest(int argc, VALUE *argv, VALUE self)
value = rb_funcall(self, id_finish, 0);
rb_funcall(self, id_reset, 0);
} else {
- VALUE clone = rb_obj_clone(self);
-
- value = rb_funcall(clone, id_finish, 0);
- rb_funcall(clone, id_reset, 0);
+ value = rb_funcall(rb_obj_clone(self), id_finish, 0);
}
return value;
@@ -218,10 +271,7 @@ rb_digest_instance_hexdigest(int argc, VALUE *argv, VALUE self)
value = rb_funcall(self, id_finish, 0);
rb_funcall(self, id_reset, 0);
} else {
- VALUE clone = rb_obj_clone(self);
-
- value = rb_funcall(clone, id_finish, 0);
- rb_funcall(clone, id_reset, 0);
+ value = rb_funcall(rb_obj_clone(self), id_finish, 0);
}
return hexencode_str_new(value);
@@ -231,8 +281,8 @@ rb_digest_instance_hexdigest(int argc, VALUE *argv, VALUE self)
* call-seq:
* digest_obj.hexdigest! -> string
*
- * Returns the resulting hash value and resets the digest to the
- * initial state.
+ * Returns the resulting hash value in a hex-encoded form and resets
+ * the digest to the initial state.
*/
static VALUE
rb_digest_instance_hexdigest_bang(VALUE self)
@@ -358,7 +408,7 @@ rb_digest_instance_length(VALUE self)
static VALUE
rb_digest_instance_block_length(VALUE self)
{
- rb_raise(rb_eRuntimeError, "%s does not implement block_length()", RSTRING_PTR(rb_inspect(self)));
+ rb_digest_instance_method_unimpl(self, "block_length");
}
/*
@@ -412,6 +462,13 @@ rb_digest_class_s_hexdigest(int argc, VALUE *argv, VALUE klass)
return hexencode_str_new(rb_funcall2(klass, id_digest, argc, argv));
}
+/* :nodoc: */
+static VALUE
+rb_digest_class_init(VALUE self)
+{
+ return self;
+}
+
/*
* Document-class: Digest::Base
*
@@ -426,14 +483,14 @@ get_digest_base_metadata(VALUE klass)
VALUE obj;
rb_digest_metadata_t *algo;
- for (p = klass; p; p = RCLASS_SUPER(p)) {
+ for (p = klass; !NIL_P(p); p = rb_class_superclass(p)) {
if (rb_ivar_defined(p, id_metadata)) {
obj = rb_ivar_get(p, id_metadata);
break;
}
}
- if (!p)
+ if (NIL_P(p))
rb_raise(rb_eRuntimeError, "Digest::Base cannot be directly inherited in Ruby");
Data_Get_Struct(obj, rb_digest_metadata_t, algo);
@@ -619,6 +676,7 @@ Init_digest(void)
* class Digest::Class
*/
rb_cDigest_Class = rb_define_class_under(rb_mDigest, "Class", rb_cObject);
+ rb_define_method(rb_cDigest_Class, "initialize", rb_digest_class_init, 0);
rb_include_module(rb_cDigest_Class, rb_mDigest_Instance);
/* class methods */
diff --git a/ext/digest/lib/digest.rb b/ext/digest/lib/digest.rb
index e42f984f95..4a98af2eae 100644
--- a/ext/digest/lib/digest.rb
+++ b/ext/digest/lib/digest.rb
@@ -1,7 +1,7 @@
require 'digest.so'
module Digest
- def self.const_missing(name)
+ def self.const_missing(name) # :nodoc:
case name
when :SHA256, :SHA384, :SHA512
lib = 'digest/sha2.so'
@@ -11,7 +11,7 @@ module Digest
begin
require lib
- rescue LoadError => e
+ rescue LoadError
raise LoadError, "library not found for class Digest::#{name} -- #{lib}", caller(1)
end
unless Digest.const_defined?(name)
@@ -23,11 +23,18 @@ module Digest
class ::Digest::Class
# creates a digest object and reads a given file, _name_.
#
- # p Digest::SHA256.file("X11R6.8.2-src.tar.bz2").hexdigest
- # # => "f02e3c85572dc9ad7cb77c2a638e3be24cc1b5bea9fdbb0b0299c9668475c534"
+ # p Digest::SHA256.file("X11R6.8.2-src.tar.bz2").hexdigest
+ # # => "f02e3c85572dc9ad7cb77c2a638e3be24cc1b5bea9fdbb0b0299c9668475c534"
def self.file(name)
new.file(name)
end
+
+ # Returns the base64 encoded hash value of a given _string_. The
+ # return value is properly padded with '=' and contains no line
+ # feeds.
+ def self.base64digest(str, *args)
+ [digest(str, *args)].pack('m0')
+ end
end
module Instance
@@ -42,9 +49,40 @@ module Digest
}
self
end
+
+ # If none is given, returns the resulting hash value of the digest
+ # in a base64 encoded form, keeping the digest's state.
+ #
+ # If a +string+ is given, returns the hash value for the given
+ # +string+ in a base64 encoded form, resetting the digest to the
+ # initial state before and after the process.
+ #
+ # In either case, the return value is properly padded with '=' and
+ # contains no line feeds.
+ def base64digest(str = nil)
+ [str ? digest(str) : digest].pack('m0')
+ end
+
+ # Returns the resulting hash value and resets the digest to the
+ # initial state.
+ def base64digest!
+ [digest!].pack('m0')
+ end
end
end
+# call-seq:
+# Digest(name) -> digest_subclass
+#
+# Returns a Digest subclass by +name+.
+#
+# require 'digest'
+#
+# Digest("MD5")
+# # => Digest::MD5
+#
+# Digest("Foo")
+# # => LoadError: library not found for class Digest::Foo -- digest/foo
def Digest(name)
Digest.const_get(name)
end
diff --git a/ext/digest/lib/digest/hmac.rb b/ext/digest/lib/digest/hmac.rb
index f50fef2948..470b0226d4 100644
--- a/ext/digest/lib/digest/hmac.rb
+++ b/ext/digest/lib/digest/hmac.rb
@@ -1,29 +1,3 @@
-# = digest/hmac.rb
-#
-# An implementation of HMAC keyed-hashing algorithm
-#
-# == Overview
-#
-# This library adds a method named hmac() to Digest classes, which
-# creates a Digest class for calculating HMAC digests.
-#
-# == Examples
-#
-# require 'digest/hmac'
-#
-# # one-liner example
-# puts Digest::HMAC.hexdigest("data", "hash key", Digest::SHA1)
-#
-# # rather longer one
-# hmac = Digest::HMAC.new("foo", Digest::RMD160)
-#
-# buf = ""
-# while stream.read(16384, buf)
-# hmac.update(buf)
-# end
-#
-# puts hmac.bubblebabble
-#
# == License
#
# Copyright (c) 2006 Akinori MUSHA <knu@iDaemons.org>
@@ -36,10 +10,43 @@
# $Id$
#
+warn "use of the experimetal library 'digest/hmac' is discouraged; require 'openssl' and use OpenSSL::HMAC instead." if $VERBOSE
+
require 'digest'
module Digest
+ # = digest/hmac.rb
+ #
+ # An experimental implementation of HMAC keyed-hashing algorithm
+ #
+ # == Overview
+ #
+ # CAUTION: Use of this library is discouraged, because this
+ # implementation was meant to be experimental but somehow got into the
+ # 1.9 series without being noticed. Please use OpenSSL::HMAC in the
+ # "openssl" library instead.
+ #
+ # == Examples
+ #
+ # require 'digest/hmac'
+ #
+ # # one-liner example
+ # puts Digest::HMAC.hexdigest("data", "hash key", Digest::SHA1)
+ #
+ # # rather longer one
+ # hmac = Digest::HMAC.new("foo", Digest::RMD160)
+ #
+ # buf = ""
+ # while stream.read(16384, buf)
+ # hmac.update(buf)
+ # end
+ #
+ # puts hmac.bubblebabble
+ #
class HMAC < Digest::Class
+
+ # Creates a Digest::HMAC instance.
+
def initialize(key, digester)
@md = digester.new
@@ -49,8 +56,8 @@ module Digest
key = @md.digest(key)
end
- ipad = Array.new(block_len).fill(0x36)
- opad = Array.new(block_len).fill(0x5c)
+ ipad = Array.new(block_len, 0x36)
+ opad = Array.new(block_len, 0x5c)
key.bytes.each_with_index { |c, i|
ipad[i] ^= c
@@ -58,28 +65,37 @@ module Digest
}
@key = key.freeze
- @ipad = ipad.inject('') { |s, c| s << c.chr }.freeze
- @opad = opad.inject('') { |s, c| s << c.chr }.freeze
+ @ipad = ipad.pack('C*').freeze
+ @opad = opad.pack('C*').freeze
@md.update(@ipad)
end
- def initialize_copy(other)
+ def initialize_copy(other) # :nodoc:
@md = other.instance_eval { @md.clone }
end
+ # call-seq:
+ # hmac.update(string) -> hmac
+ # hmac << string -> hmac
+ #
+ # Updates the hmac using a given +string+ and returns self.
def update(text)
@md.update(text)
self
end
alias << update
+ # call-seq:
+ # hmac.reset -> hmac
+ #
+ # Resets the hmac to the initial state and returns self.
def reset
@md.reset
@md.update(@ipad)
self
end
- def finish
+ def finish # :nodoc:
d = @md.digest!
@md.update(@opad)
@md.update(d)
@@ -87,14 +103,26 @@ module Digest
end
private :finish
+ # call-seq:
+ # hmac.digest_length -> Integer
+ #
+ # Returns the length in bytes of the hash value of the digest.
def digest_length
@md.digest_length
end
+ # call-seq:
+ # hmac.block_length -> Integer
+ #
+ # Returns the block length in bytes of the hmac.
def block_length
@md.block_length
end
+ # call-seq:
+ # hmac.inspect -> string
+ #
+ # Creates a printable version of the hmac object.
def inspect
sprintf('#<%s: key=%s, digest=%s>', self.class.name, @key.inspect, @md.inspect.sub(/^\#<(.*)>$/) { $1 });
end
@@ -102,7 +130,7 @@ module Digest
end
if $0 == __FILE__
- eval DATA.read, nil, $0, __LINE__+4
+ eval DATA.gets(nil), nil, $0, DATA.lineno
end
__END__
diff --git a/ext/digest/md5/.cvsignore b/ext/digest/md5/.cvsignore
deleted file mode 100644
index 814345ece8..0000000000
--- a/ext/digest/md5/.cvsignore
+++ /dev/null
@@ -1,4 +0,0 @@
-Makefile
-mkmf.log
-*.def
-extconf.h
diff --git a/ext/digest/md5/extconf.rb b/ext/digest/md5/extconf.rb
index 018f8ccb02..ddfdb707f2 100644
--- a/ext/digest/md5/extconf.rb
+++ b/ext/digest/md5/extconf.rb
@@ -20,10 +20,6 @@ end
have_header("sys/cdefs.h")
-have_header("inttypes.h")
-
-have_header("unistd.h")
-
$preload = %w[digest]
create_makefile("digest/md5")
diff --git a/ext/digest/rmd160/.cvsignore b/ext/digest/rmd160/.cvsignore
deleted file mode 100644
index 814345ece8..0000000000
--- a/ext/digest/rmd160/.cvsignore
+++ /dev/null
@@ -1,4 +0,0 @@
-Makefile
-mkmf.log
-*.def
-extconf.h
diff --git a/ext/digest/rmd160/extconf.rb b/ext/digest/rmd160/extconf.rb
index 09359944f2..cc361e3d2b 100644
--- a/ext/digest/rmd160/extconf.rb
+++ b/ext/digest/rmd160/extconf.rb
@@ -19,10 +19,6 @@ end
have_header("sys/cdefs.h")
-have_header("inttypes.h")
-
-have_header("unistd.h")
-
$preload = %w[digest]
create_makefile("digest/rmd160")
diff --git a/ext/digest/rmd160/rmd160.h b/ext/digest/rmd160/rmd160.h
index 54d1ca9140..2c98f11cd0 100644
--- a/ext/digest/rmd160/rmd160.h
+++ b/ext/digest/rmd160/rmd160.h
@@ -7,7 +7,7 @@
* FILE: rmd160.h
*
* CONTENTS: Header file for a sample C-implementation of the
- * RIPEMD-160 hash-function.
+ * RIPEMD-160 hash-function.
* TARGET: any computer with an ANSI C compiler
*
* AUTHOR: Antoon Bosselaers, ESAT-COSIC
diff --git a/ext/digest/sha1/.cvsignore b/ext/digest/sha1/.cvsignore
deleted file mode 100644
index 814345ece8..0000000000
--- a/ext/digest/sha1/.cvsignore
+++ /dev/null
@@ -1,4 +0,0 @@
-Makefile
-mkmf.log
-*.def
-extconf.h
diff --git a/ext/digest/sha1/extconf.rb b/ext/digest/sha1/extconf.rb
index 87b74c34af..fa9945cd43 100644
--- a/ext/digest/sha1/extconf.rb
+++ b/ext/digest/sha1/extconf.rb
@@ -19,10 +19,6 @@ end
have_header("sys/cdefs.h")
-have_header("inttypes.h")
-
-have_header("unistd.h")
-
$preload = %w[digest]
create_makefile("digest/sha1")
diff --git a/ext/digest/sha1/sha1.h b/ext/digest/sha1/sha1.h
index 60e3b01fe2..55997e73dd 100644
--- a/ext/digest/sha1/sha1.h
+++ b/ext/digest/sha1/sha1.h
@@ -15,7 +15,7 @@
typedef struct {
uint32_t state[5];
- uint32_t count[2];
+ uint32_t count[2];
uint8_t buffer[64];
} SHA1_CTX;
@@ -35,5 +35,5 @@ void SHA1_Finish _((SHA1_CTX *context, uint8_t digest[20]));
#define SHA1_BLOCK_LENGTH 64
#define SHA1_DIGEST_LENGTH 20
#define SHA1_DIGEST_STRING_LENGTH (SHA1_DIGEST_LENGTH * 2 + 1)
-
+
#endif /* _SYS_SHA1_H_ */
diff --git a/ext/digest/sha1/sha1init.c b/ext/digest/sha1/sha1init.c
index d46a1cd67d..06e7378950 100644
--- a/ext/digest/sha1/sha1init.c
+++ b/ext/digest/sha1/sha1init.c
@@ -27,9 +27,9 @@ void
Init_sha1()
{
VALUE mDigest, cDigest_Base, cDigest_SHA1;
-
+
rb_require("digest");
-
+
mDigest = rb_path2class("Digest");
cDigest_Base = rb_path2class("Digest::Base");
diff --git a/ext/digest/sha2/.cvsignore b/ext/digest/sha2/.cvsignore
deleted file mode 100644
index 814345ece8..0000000000
--- a/ext/digest/sha2/.cvsignore
+++ /dev/null
@@ -1,4 +0,0 @@
-Makefile
-mkmf.log
-*.def
-extconf.h
diff --git a/ext/digest/sha2/depend b/ext/digest/sha2/depend
index 225d6ad52b..00e18e158d 100644
--- a/ext/digest/sha2/depend
+++ b/ext/digest/sha2/depend
@@ -3,3 +3,4 @@ sha2.o: sha2.c sha2.h $(srcdir)/../defs.h $(hdrdir)/ruby.h \
sha2init.o: sha2init.c $(srcdir)/../digest.h $(hdrdir)/ruby.h \
$(topdir)/config.h $(hdrdir)/defines.h $(hdrdir)/intern.h \
sha2.h $(srcdir)/../defs.h
+sha2ossl.o: sha2ossl.h $(srcdir)/../defs.h
diff --git a/ext/digest/sha2/extconf.rb b/ext/digest/sha2/extconf.rb
index c084a51a64..a8f0198cf0 100644
--- a/ext/digest/sha2/extconf.rb
+++ b/ext/digest/sha2/extconf.rb
@@ -6,17 +6,23 @@ require "mkmf"
$defs << "-DHAVE_CONFIG_H"
$INCFLAGS << " -I$(srcdir)/.."
-$objs = [
- "sha2.#{$OBJEXT}",
- "sha2init.#{$OBJEXT}",
-]
+$objs = [ "sha2init.#{$OBJEXT}" ]
+
+dir_config("openssl")
+
+if !with_config("bundled-sha2") &&
+ have_library("crypto") &&
+ %w[SHA256 SHA512].all? {|d| have_func("#{d}_Transform", "openssl/sha.h")} &&
+ %w[SHA256 SHA512].all? {|d| have_type("#{d}_CTX", "openssl/sha.h")}
+ $objs << "sha2ossl.#{$OBJEXT}"
+ $defs << "-DSHA2_USE_OPENSSL"
+else
+ have_type("u_int8_t")
+ $objs << "sha2.#{$OBJEXT}"
+end
have_header("sys/cdefs.h")
-have_header("inttypes.h")
-
-have_header("unistd.h")
-
$preload = %w[digest]
if have_type("uint64_t", "defs.h", $defs.join(' '))
diff --git a/ext/digest/sha2/lib/sha2.rb b/ext/digest/sha2/lib/sha2.rb
index 52dd639f9b..3c5bf0c863 100644
--- a/ext/digest/sha2/lib/sha2.rb
+++ b/ext/digest/sha2/lib/sha2.rb
@@ -10,6 +10,7 @@
# $Id$
require 'digest'
+require 'digest/sha2.so'
module Digest
#
@@ -17,9 +18,11 @@ module Digest
#
class SHA2 < Digest::Class
# call-seq:
- # Digest::SHA2.new(bitlen = 256) -> digest_obj
+ # Digest::SHA2.new(bitlen = 256) -> digest_obj
#
# Creates a new SHA2 hash object with a given bit length.
+ #
+ # Valid bit lengths are 256, 384 and 512.
def initialize(bitlen = 256)
case bitlen
when 256
@@ -34,39 +37,70 @@ module Digest
@bitlen = bitlen
end
- # :nodoc:
+ # call-seq:
+ # digest_obj.reset -> digest_obj
+ #
+ # Resets the digest to the initial state and returns self.
def reset
@sha2.reset
self
end
- # :nodoc:
+ # call-seq:
+ # digest_obj.update(string) -> digest_obj
+ # digest_obj << string -> digest_obj
+ #
+ # Updates the digest using a given _string_ and returns self.
def update(str)
@sha2.update(str)
self
end
alias << update
- def finish
+ def finish # :nodoc:
@sha2.digest!
end
private :finish
+
+ # call-seq:
+ # digest_obj.block_length -> Integer
+ #
+ # Returns the block length of the digest in bytes.
+ #
+ # Digest::SHA256.new.digest_length * 8
+ # # => 512
+ # Digest::SHA384.new.digest_length * 8
+ # # => 1024
+ # Digest::SHA512.new.digest_length * 8
+ # # => 1024
def block_length
@sha2.block_length
end
+ # call-seq:
+ # digest_obj.digest_length -> Integer
+ #
+ # Returns the length of the hash value of the digest in bytes.
+ #
+ # Digest::SHA256.new.digest_length * 8
+ # # => 256
+ # Digest::SHA384.new.digest_length * 8
+ # # => 384
+ # Digest::SHA512.new.digest_length * 8
+ # # => 512
+ #
+ # For example, digests produced by Digest::SHA256 will always be 32 bytes
+ # (256 bits) in size.
def digest_length
@sha2.digest_length
end
- # :nodoc:
- def initialize_copy(other)
+ def initialize_copy(other) # :nodoc:
@sha2 = other.instance_eval { @sha2.clone }
end
- # :nodoc:
- def inspect
+ def inspect # :nodoc:
"#<%s:%d %s>" % [self.class.name, @bitlen, hexdigest]
end
end
diff --git a/ext/digest/sha2/sha2.c b/ext/digest/sha2/sha2.c
index aca9ee926f..0566b93cb7 100644
--- a/ext/digest/sha2/sha2.c
+++ b/ext/digest/sha2/sha2.c
@@ -1,11 +1,9 @@
/*
- * sha2.c
+ * FILE: sha2.c
+ * AUTHOR: Aaron D. Gifford - http://www.aarongifford.com/
*
- * Version 1.0.0beta1
- *
- * Written by Aaron D. Gifford <me@aarongifford.com>
- *
- * Copyright 2000 Aaron D. Gifford. All rights reserved.
+ * Copyright (c) 2000-2001, Aaron D. Gifford
+ * All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -18,11 +16,11 @@
* 3. Neither the name of the copyright holder nor the names of contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE AUTHOR(S) AND CONTRIBUTOR(S) ``AS IS'' AND
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTOR(S) ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR(S) OR CONTRIBUTOR(S) BE LIABLE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTOR(S) BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
@@ -31,15 +29,15 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
+ * $OrigId: sha2.c,v 1.1 2001/11/08 00:01:51 adg Exp adg $
+ * $RoughId: sha2.c,v 1.3 2002/02/26 22:03:36 knu Exp $
+ * $Id$
*/
-/* $RoughId: sha2.c,v 1.3 2002/02/26 22:03:36 knu Exp $ */
-/* $Id$ */
-
-#include "sha2.h"
-#include <stdio.h>
+#include "defs.h"
#include <string.h> /* memcpy()/memset() or bcopy()/bzero() */
#include <assert.h> /* assert() */
+#include "sha2.h"
/*
* ASSERT NOTE:
@@ -63,15 +61,64 @@
/*** SHA-256/384/512 Machine Architecture Definitions *****************/
+/*
+ * BYTE_ORDER NOTE:
+ *
+ * Please make sure that your system defines BYTE_ORDER. If your
+ * architecture is little-endian, make sure it also defines
+ * LITTLE_ENDIAN and that the two (BYTE_ORDER and LITTLE_ENDIAN) are
+ * equivilent.
+ *
+ * If your system does not define the above, then you can do so by
+ * hand like this:
+ *
+ * #define LITTLE_ENDIAN 1234
+ * #define BIG_ENDIAN 4321
+ *
+ * And for little-endian machines, add:
+ *
+ * #define BYTE_ORDER LITTLE_ENDIAN
+ *
+ * Or for big-endian machines:
+ *
+ * #define BYTE_ORDER BIG_ENDIAN
+ *
+ * The FreeBSD machine this was written on defines BYTE_ORDER
+ * appropriately by including <sys/types.h> (which in turn includes
+ * <machine/endian.h> where the appropriate definitions are actually
+ * made).
+ */
+#if !defined(BYTE_ORDER) || (BYTE_ORDER != LITTLE_ENDIAN && BYTE_ORDER != BIG_ENDIAN)
+#error Define BYTE_ORDER to be equal to either LITTLE_ENDIAN or BIG_ENDIAN
+#endif
+
+/*
+ * Define the followingsha2_* types to types of the correct length on
+ * the native archtecture. Most BSD systems and Linux define u_intXX_t
+ * types. Machines with very recent ANSI C headers, can use the
+ * uintXX_t definintions from inttypes.h by defining SHA2_USE_INTTYPES_H
+ * during compile or in the sha.h header file.
+ *
+ * Machines that support neither u_intXX_t nor inttypes.h's uintXX_t
+ * will need to define these three typedefs below (and the appropriate
+ * ones in sha.h too) by hand according to their system architecture.
+ *
+ * Thank you, Jun-ichiro itojun Hagino, for suggesting using u_intXX_t
+ * types and pointing out recent ANSI C support for uintXX_t in inttypes.h.
+ */
+#ifdef SHA2_USE_INTTYPES_H
+
typedef uint8_t sha2_byte; /* Exactly 1 byte */
typedef uint32_t sha2_word32; /* Exactly 4 bytes */
typedef uint64_t sha2_word64; /* Exactly 8 bytes */
-#if defined(__GNUC__) || defined(_HPUX_SOURCE) || defined(__IBMC__)
-#define ULL(number) number##ULL
-#else
-#define ULL(number) (uint64_t)(number)
-#endif
+#else /* SHA2_USE_INTTYPES_H */
+
+typedef u_int8_t sha2_byte; /* Exactly 1 byte */
+typedef u_int32_t sha2_word32; /* Exactly 4 bytes */
+typedef u_int64_t sha2_word64; /* Exactly 8 bytes */
+
+#endif /* SHA2_USE_INTTYPES_H */
/*** SHA-256/384/512 Various Length Definitions ***********************/
@@ -81,8 +128,13 @@ typedef uint64_t sha2_word64; /* Exactly 8 bytes */
#define SHA512_SHORT_BLOCK_LENGTH (SHA512_BLOCK_LENGTH - 16)
+#if (defined(__STDC_VERSION__) && (__STDC_VERSION__ >= 199901L)) || defined(__GNUC__) || defined(_HPUX_SOURCE) || defined(__IBMC__)
+#define ULL(number) number##ULL
+#else
+#define ULL(number) (uint64_t)(number)
+#endif
/*** ENDIAN REVERSAL MACROS *******************************************/
-#ifndef WORDS_BIGENDIAN
+#if BYTE_ORDER == LITTLE_ENDIAN
#define REVERSE32(w,x) { \
sha2_word32 tmp = (w); \
tmp = (tmp >> 16) | (tmp << 16); \
@@ -96,7 +148,7 @@ typedef uint64_t sha2_word64; /* Exactly 8 bytes */
(x) = ((tmp & ULL(0xffff0000ffff0000)) >> 16) | \
((tmp & ULL(0x0000ffff0000ffff)) << 16); \
}
-#endif
+#endif /* BYTE_ORDER == LITTLE_ENDIAN */
/*
* Macro for incrementally adding the unsigned 64-bit integer n to the
@@ -182,7 +234,7 @@ void SHA512_Transform(SHA512_CTX*, const sha2_word64*);
/*** SHA-XYZ INITIAL HASH VALUES AND CONSTANTS ************************/
/* Hash constant words K for SHA-256: */
-const static sha2_word32 K256[64] = {
+static const sha2_word32 K256[64] = {
0x428a2f98UL, 0x71374491UL, 0xb5c0fbcfUL, 0xe9b5dba5UL,
0x3956c25bUL, 0x59f111f1UL, 0x923f82a4UL, 0xab1c5ed5UL,
0xd807aa98UL, 0x12835b01UL, 0x243185beUL, 0x550c7dc3UL,
@@ -202,7 +254,7 @@ const static sha2_word32 K256[64] = {
};
/* Initial hash value H for SHA-256: */
-const static sha2_word32 sha256_initial_hash_value[8] = {
+static const sha2_word32 sha256_initial_hash_value[8] = {
0x6a09e667UL,
0xbb67ae85UL,
0x3c6ef372UL,
@@ -214,7 +266,7 @@ const static sha2_word32 sha256_initial_hash_value[8] = {
};
/* Hash constant words K for SHA-384 and SHA-512: */
-const static sha2_word64 K512[80] = {
+static const sha2_word64 K512[80] = {
ULL(0x428a2f98d728ae22), ULL(0x7137449123ef65cd),
ULL(0xb5c0fbcfec4d3b2f), ULL(0xe9b5dba58189dbbc),
ULL(0x3956c25bf348b538), ULL(0x59f111f1b605d019),
@@ -258,7 +310,7 @@ const static sha2_word64 K512[80] = {
};
/* Initial hash value H for SHA-384 */
-const static sha2_word64 sha384_initial_hash_value[8] = {
+static const sha2_word64 sha384_initial_hash_value[8] = {
ULL(0xcbbb9d5dc1059ed8),
ULL(0x629a292a367cd507),
ULL(0x9159015a3070dd17),
@@ -270,7 +322,7 @@ const static sha2_word64 sha384_initial_hash_value[8] = {
};
/* Initial hash value H for SHA-512 */
-const static sha2_word64 sha512_initial_hash_value[8] = {
+static const sha2_word64 sha512_initial_hash_value[8] = {
ULL(0x6a09e667f3bcc908),
ULL(0xbb67ae8584caa73b),
ULL(0x3c6ef372fe94f82b),
@@ -281,6 +333,12 @@ const static sha2_word64 sha512_initial_hash_value[8] = {
ULL(0x5be0cd19137e2179)
};
+/*
+ * Constant used by SHA256/384/512_End() functions for converting the
+ * digest to a readable hexadecimal character string:
+ */
+static const char *sha2_hex_digits = "0123456789abcdef";
+
/*** SHA-256: *********************************************************/
void SHA256_Init(SHA256_CTX* context) {
@@ -296,7 +354,7 @@ void SHA256_Init(SHA256_CTX* context) {
/* Unrolled SHA-256 round macros: */
-#ifndef WORDS_BIGENDIAN
+#if BYTE_ORDER == LITTLE_ENDIAN
#define ROUND256_0_TO_15(a,b,c,d,e,f,g,h) \
REVERSE32(*data++, W256[j]); \
@@ -307,7 +365,7 @@ void SHA256_Init(SHA256_CTX* context) {
j++
-#else
+#else /* BYTE_ORDER == LITTLE_ENDIAN */
#define ROUND256_0_TO_15(a,b,c,d,e,f,g,h) \
T1 = (h) + Sigma1_256(e) + Ch((e), (f), (g)) + \
@@ -316,7 +374,7 @@ void SHA256_Init(SHA256_CTX* context) {
(h) = T1 + Sigma0_256(a) + Maj((a), (b), (c)); \
j++
-#endif
+#endif /* BYTE_ORDER == LITTLE_ENDIAN */
#define ROUND256(a,b,c,d,e,f,g,h) \
s0 = W256[(j+1)&0x0f]; \
@@ -406,15 +464,15 @@ void SHA256_Transform(SHA256_CTX* context, const sha2_word32* data) {
j = 0;
do {
-#ifndef WORDS_BIGENDIAN
+#if BYTE_ORDER == LITTLE_ENDIAN
/* Copy data while converting to host byte order */
REVERSE32(*data++,W256[j]);
/* Apply the SHA-256 compression function to update a..h */
T1 = h + Sigma1_256(e) + Ch(e, f, g) + K256[j] + W256[j];
-#else
+#else /* BYTE_ORDER == LITTLE_ENDIAN */
/* Apply the SHA-256 compression function to update a..h with copy */
T1 = h + Sigma1_256(e) + Ch(e, f, g) + K256[j] + (W256[j] = *data++);
-#endif
+#endif /* BYTE_ORDER == LITTLE_ENDIAN */
T2 = Sigma0_256(a) + Maj(a, b, c);
h = g;
g = f;
@@ -432,11 +490,11 @@ void SHA256_Transform(SHA256_CTX* context, const sha2_word32* data) {
/* Part of the message block expansion: */
s0 = W256[(j+1)&0x0f];
s0 = sigma0_256(s0);
- s1 = W256[(j+14)&0x0f];
+ s1 = W256[(j+14)&0x0f];
s1 = sigma1_256(s1);
/* Apply the SHA-256 compression function to update a..h */
- T1 = h + Sigma1_256(e) + Ch(e, f, g) + K256[j] +
+ T1 = h + Sigma1_256(e) + Ch(e, f, g) + K256[j] +
(W256[j&0x0f] += s1 + W256[(j+9)&0x0f] + s0);
T2 = Sigma0_256(a) + Maj(a, b, c);
h = g;
@@ -476,9 +534,9 @@ void SHA256_Update(SHA256_CTX* context, const sha2_byte *data, size_t len) {
}
/* Sanity check: */
- assert(context != NULL && data != NULL);
+ assert(context != (SHA256_CTX*)0 && data != (sha2_byte*)0);
- usedspace = (context->bitcount >> 3) % SHA256_BLOCK_LENGTH;
+ usedspace = (unsigned int)((context->bitcount >> 3) % SHA256_BLOCK_LENGTH);
if (usedspace > 0) {
/* Calculate how much free space is available in the buffer */
freespace = SHA256_BLOCK_LENGTH - usedspace;
@@ -501,7 +559,8 @@ void SHA256_Update(SHA256_CTX* context, const sha2_byte *data, size_t len) {
}
while (len >= SHA256_BLOCK_LENGTH) {
/* Process as many complete blocks as we can */
- SHA256_Transform(context, (const sha2_word32*)data);
+ MEMCPY_BCOPY(context->buffer, data, SHA256_BLOCK_LENGTH);
+ SHA256_Transform(context, (sha2_word32*)context->buffer);
context->bitcount += SHA256_BLOCK_LENGTH << 3;
len -= SHA256_BLOCK_LENGTH;
data += SHA256_BLOCK_LENGTH;
@@ -515,17 +574,17 @@ void SHA256_Update(SHA256_CTX* context, const sha2_byte *data, size_t len) {
usedspace = freespace = 0;
}
-void SHA256_Finish(SHA256_CTX* context, sha2_byte digest[]) {
+void SHA256_Final(sha2_byte digest[], SHA256_CTX* context) {
sha2_word32 *d = (sha2_word32*)digest;
unsigned int usedspace;
/* Sanity check: */
- assert(context != NULL);
+ assert(context != (SHA256_CTX*)0);
/* If no digest buffer is passed, we don't bother doing this: */
if (digest != (sha2_byte*)0) {
- usedspace = (context->bitcount >> 3) % SHA256_BLOCK_LENGTH;
-#ifndef WORDS_BIGENDIAN
+ usedspace = (unsigned int)((context->bitcount >> 3) % SHA256_BLOCK_LENGTH);
+#if BYTE_ORDER == LITTLE_ENDIAN
/* Convert FROM host byte order */
REVERSE64(context->bitcount,context->bitcount);
#endif
@@ -559,7 +618,7 @@ void SHA256_Finish(SHA256_CTX* context, sha2_byte digest[]) {
/* Final transform: */
SHA256_Transform(context, (sha2_word32*)context->buffer);
-#ifndef WORDS_BIGENDIAN
+#if BYTE_ORDER == LITTLE_ENDIAN
{
/* Convert TO host byte order */
int j;
@@ -574,10 +633,41 @@ void SHA256_Finish(SHA256_CTX* context, sha2_byte digest[]) {
}
/* Clean up state data: */
- MEMSET_BZERO(context, sizeof(SHA256_CTX));
+ MEMSET_BZERO(context, sizeof(context));
usedspace = 0;
}
+char *SHA256_End(SHA256_CTX* context, char buffer[]) {
+ sha2_byte digest[SHA256_DIGEST_LENGTH], *d = digest;
+ int i;
+
+ /* Sanity check: */
+ assert(context != (SHA256_CTX*)0);
+
+ if (buffer != (char*)0) {
+ SHA256_Final(digest, context);
+ for (i = 0; i < SHA256_DIGEST_LENGTH; i++) {
+ *buffer++ = sha2_hex_digits[(*d & 0xf0) >> 4];
+ *buffer++ = sha2_hex_digits[*d & 0x0f];
+ d++;
+ }
+ *buffer = (char)0;
+ } else {
+ MEMSET_BZERO(context, sizeof(context));
+ }
+ MEMSET_BZERO(digest, SHA256_DIGEST_LENGTH);
+ return buffer;
+}
+
+char* SHA256_Data(const sha2_byte* data, size_t len, char digest[SHA256_DIGEST_STRING_LENGTH]) {
+ SHA256_CTX context;
+
+ SHA256_Init(&context);
+ SHA256_Update(&context, data, len);
+ return SHA256_End(&context, digest);
+}
+
+
/*** SHA-512: *********************************************************/
void SHA512_Init(SHA512_CTX* context) {
if (context == (SHA512_CTX*)0) {
@@ -591,7 +681,7 @@ void SHA512_Init(SHA512_CTX* context) {
#ifdef SHA2_UNROLL_TRANSFORM
/* Unrolled SHA-512 round macros: */
-#ifndef WORDS_BIGENDIAN
+#if BYTE_ORDER == LITTLE_ENDIAN
#define ROUND512_0_TO_15(a,b,c,d,e,f,g,h) \
REVERSE64(*data++, W512[j]); \
@@ -602,7 +692,7 @@ void SHA512_Init(SHA512_CTX* context) {
j++
-#else
+#else /* BYTE_ORDER == LITTLE_ENDIAN */
#define ROUND512_0_TO_15(a,b,c,d,e,f,g,h) \
T1 = (h) + Sigma1_512(e) + Ch((e), (f), (g)) + \
@@ -611,7 +701,7 @@ void SHA512_Init(SHA512_CTX* context) {
(h) = T1 + Sigma0_512(a) + Maj((a), (b), (c)); \
j++
-#endif
+#endif /* BYTE_ORDER == LITTLE_ENDIAN */
#define ROUND512(a,b,c,d,e,f,g,h) \
s0 = W512[(j+1)&0x0f]; \
@@ -696,15 +786,15 @@ void SHA512_Transform(SHA512_CTX* context, const sha2_word64* data) {
j = 0;
do {
-#ifndef WORDS_BIGENDIAN
+#if BYTE_ORDER == LITTLE_ENDIAN
/* Convert TO host byte order */
REVERSE64(*data++, W512[j]);
/* Apply the SHA-512 compression function to update a..h */
T1 = h + Sigma1_512(e) + Ch(e, f, g) + K512[j] + W512[j];
-#else
+#else /* BYTE_ORDER == LITTLE_ENDIAN */
/* Apply the SHA-512 compression function to update a..h with copy */
T1 = h + Sigma1_512(e) + Ch(e, f, g) + K512[j] + (W512[j] = *data++);
-#endif
+#endif /* BYTE_ORDER == LITTLE_ENDIAN */
T2 = Sigma0_512(a) + Maj(a, b, c);
h = g;
g = f;
@@ -766,9 +856,9 @@ void SHA512_Update(SHA512_CTX* context, const sha2_byte *data, size_t len) {
}
/* Sanity check: */
- assert(context != NULL && data != NULL);
+ assert(context != (SHA512_CTX*)0 && data != (sha2_byte*)0);
- usedspace = (context->bitcount[0] >> 3) % SHA512_BLOCK_LENGTH;
+ usedspace = (unsigned int)((context->bitcount[0] >> 3) % SHA512_BLOCK_LENGTH);
if (usedspace > 0) {
/* Calculate how much free space is available in the buffer */
freespace = SHA512_BLOCK_LENGTH - usedspace;
@@ -779,7 +869,7 @@ void SHA512_Update(SHA512_CTX* context, const sha2_byte *data, size_t len) {
ADDINC128(context->bitcount, freespace << 3);
len -= freespace;
data += freespace;
- SHA512_Transform(context, (const sha2_word64*)context->buffer);
+ SHA512_Transform(context, (sha2_word64*)context->buffer);
} else {
/* The buffer is not yet full */
MEMCPY_BCOPY(&context->buffer[usedspace], data, len);
@@ -791,7 +881,8 @@ void SHA512_Update(SHA512_CTX* context, const sha2_byte *data, size_t len) {
}
while (len >= SHA512_BLOCK_LENGTH) {
/* Process as many complete blocks as we can */
- SHA512_Transform(context, (const sha2_word64*)data);
+ MEMCPY_BCOPY(context->buffer, data, SHA512_BLOCK_LENGTH);
+ SHA512_Transform(context, (sha2_word64*)context->buffer);
ADDINC128(context->bitcount, SHA512_BLOCK_LENGTH << 3);
len -= SHA512_BLOCK_LENGTH;
data += SHA512_BLOCK_LENGTH;
@@ -808,8 +899,8 @@ void SHA512_Update(SHA512_CTX* context, const sha2_byte *data, size_t len) {
void SHA512_Last(SHA512_CTX* context) {
unsigned int usedspace;
- usedspace = (context->bitcount[0] >> 3) % SHA512_BLOCK_LENGTH;
-#ifndef WORDS_BIGENDIAN
+ usedspace = (unsigned int)((context->bitcount[0] >> 3) % SHA512_BLOCK_LENGTH);
+#if BYTE_ORDER == LITTLE_ENDIAN
/* Convert FROM host byte order */
REVERSE64(context->bitcount[0],context->bitcount[0]);
REVERSE64(context->bitcount[1],context->bitcount[1]);
@@ -826,7 +917,7 @@ void SHA512_Last(SHA512_CTX* context) {
MEMSET_BZERO(&context->buffer[usedspace], SHA512_BLOCK_LENGTH - usedspace);
}
/* Do second-to-last transform: */
- SHA512_Transform(context, (const sha2_word64*)context->buffer);
+ SHA512_Transform(context, (sha2_word64*)context->buffer);
/* And set-up for the last transform: */
MEMSET_BZERO(context->buffer, SHA512_BLOCK_LENGTH - 2);
@@ -843,21 +934,21 @@ void SHA512_Last(SHA512_CTX* context) {
*(sha2_word64*)&context->buffer[SHA512_SHORT_BLOCK_LENGTH+8] = context->bitcount[0];
/* Final transform: */
- SHA512_Transform(context, (const sha2_word64*)context->buffer);
+ SHA512_Transform(context, (sha2_word64*)context->buffer);
}
-void SHA512_Finish(SHA512_CTX* context, sha2_byte digest[]) {
+void SHA512_Final(sha2_byte digest[], SHA512_CTX* context) {
sha2_word64 *d = (sha2_word64*)digest;
/* Sanity check: */
- assert(context != NULL);
+ assert(context != (SHA512_CTX*)0);
/* If no digest buffer is passed, we don't bother doing this: */
if (digest != (sha2_byte*)0) {
SHA512_Last(context);
/* Save the hash data for output: */
-#ifndef WORDS_BIGENDIAN
+#if BYTE_ORDER == LITTLE_ENDIAN
{
/* Convert TO host byte order */
int j;
@@ -872,9 +963,40 @@ void SHA512_Finish(SHA512_CTX* context, sha2_byte digest[]) {
}
/* Zero out state data */
- MEMSET_BZERO(context, sizeof(SHA512_CTX));
+ MEMSET_BZERO(context, sizeof(context));
}
+char *SHA512_End(SHA512_CTX* context, char buffer[]) {
+ sha2_byte digest[SHA512_DIGEST_LENGTH], *d = digest;
+ int i;
+
+ /* Sanity check: */
+ assert(context != (SHA512_CTX*)0);
+
+ if (buffer != (char*)0) {
+ SHA512_Final(digest, context);
+ for (i = 0; i < SHA512_DIGEST_LENGTH; i++) {
+ *buffer++ = sha2_hex_digits[(*d & 0xf0) >> 4];
+ *buffer++ = sha2_hex_digits[*d & 0x0f];
+ d++;
+ }
+ *buffer = (char)0;
+ } else {
+ MEMSET_BZERO(context, sizeof(context));
+ }
+ MEMSET_BZERO(digest, SHA512_DIGEST_LENGTH);
+ return buffer;
+}
+
+char* SHA512_Data(const sha2_byte* data, size_t len, char digest[SHA512_DIGEST_STRING_LENGTH]) {
+ SHA512_CTX context;
+
+ SHA512_Init(&context);
+ SHA512_Update(&context, data, len);
+ return SHA512_End(&context, digest);
+}
+
+
/*** SHA-384: *********************************************************/
void SHA384_Init(SHA384_CTX* context) {
if (context == (SHA384_CTX*)0) {
@@ -889,18 +1011,18 @@ void SHA384_Update(SHA384_CTX* context, const sha2_byte* data, size_t len) {
SHA512_Update((SHA512_CTX*)context, data, len);
}
-void SHA384_Finish(SHA384_CTX* context, sha2_byte digest[]) {
+void SHA384_Final(sha2_byte digest[], SHA384_CTX* context) {
sha2_word64 *d = (sha2_word64*)digest;
/* Sanity check: */
- assert(context != NULL);
+ assert(context != (SHA384_CTX*)0);
/* If no digest buffer is passed, we don't bother doing this: */
if (digest != (sha2_byte*)0) {
SHA512_Last((SHA512_CTX*)context);
/* Save the hash data for output: */
-#ifndef WORDS_BIGENDIAN
+#if BYTE_ORDER == LITTLE_ENDIAN
{
/* Convert TO host byte order */
int j;
@@ -915,5 +1037,36 @@ void SHA384_Finish(SHA384_CTX* context, sha2_byte digest[]) {
}
/* Zero out state data */
- MEMSET_BZERO(context, sizeof(SHA384_CTX));
+ MEMSET_BZERO(context, sizeof(context));
}
+
+char *SHA384_End(SHA384_CTX* context, char buffer[]) {
+ sha2_byte digest[SHA384_DIGEST_LENGTH], *d = digest;
+ int i;
+
+ /* Sanity check: */
+ assert(context != (SHA384_CTX*)0);
+
+ if (buffer != (char*)0) {
+ SHA384_Final(digest, context);
+ for (i = 0; i < SHA384_DIGEST_LENGTH; i++) {
+ *buffer++ = sha2_hex_digits[(*d & 0xf0) >> 4];
+ *buffer++ = sha2_hex_digits[*d & 0x0f];
+ d++;
+ }
+ *buffer = (char)0;
+ } else {
+ MEMSET_BZERO(context, sizeof(context));
+ }
+ MEMSET_BZERO(digest, SHA384_DIGEST_LENGTH);
+ return buffer;
+}
+
+char* SHA384_Data(const sha2_byte* data, size_t len, char digest[SHA384_DIGEST_STRING_LENGTH]) {
+ SHA384_CTX context;
+
+ SHA384_Init(&context);
+ SHA384_Update(&context, data, len);
+ return SHA384_End(&context, digest);
+}
+
diff --git a/ext/digest/sha2/sha2.h b/ext/digest/sha2/sha2.h
index 917d415b73..465398ee19 100644
--- a/ext/digest/sha2/sha2.h
+++ b/ext/digest/sha2/sha2.h
@@ -1,11 +1,9 @@
/*
- * sha2.h
+ * FILE: sha2.h
+ * AUTHOR: Aaron D. Gifford - http://www.aarongifford.com/
*
- * Version 1.0.0beta1
- *
- * Written by Aaron D. Gifford <me@aarongifford.com>
- *
- * Copyright 2000 Aaron D. Gifford. All rights reserved.
+ * Copyright (c) 2000-2001, Aaron D. Gifford
+ * All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
@@ -18,11 +16,11 @@
* 3. Neither the name of the copyright holder nor the names of contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
- *
- * THIS SOFTWARE IS PROVIDED BY THE AUTHOR(S) AND CONTRIBUTOR(S) ``AS IS'' AND
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR AND CONTRIBUTOR(S) ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
- * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR(S) OR CONTRIBUTOR(S) BE LIABLE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTOR(S) BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
@@ -31,11 +29,11 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
+ * $OrigId: sha2.h,v 1.1 2001/11/08 00:02:01 adg Exp adg $
+ * $RoughId: sha2.h,v 1.3 2002/02/24 08:14:32 knu Exp $
+ * $Id$
*/
-/* $RoughId: sha2.h,v 1.3 2002/02/24 08:14:32 knu Exp $ */
-/* $Id$ */
-
#ifndef __SHA2_H__
#define __SHA2_H__
@@ -43,7 +41,37 @@
extern "C" {
#endif
-#include "defs.h"
+
+/*
+ * Import u_intXX_t size_t type definitions from system headers. You
+ * may need to change this, or define these things yourself in this
+ * file.
+ */
+#include <sys/types.h>
+
+#ifdef RUBY
+# ifdef HAVE_PROTOTYPES
+# undef NOPROTO
+# else
+# define NOPROTO
+# endif /* HAVE_PROTOTYPES */
+# ifndef BYTE_ORDER
+# define LITTLE_ENDIAN 1234
+# define BIG_ENDIAN 4321
+# ifdef WORDS_BIGENDIAN
+# define BYTE_ORDER BIG_ENDIAN
+# else
+# define BYTE_ORDER LITTLE_ENDIAN
+# endif
+# endif /* BYTE_ORDER */
+# define SHA2_USE_INTTYPES_H
+#else /* RUBY */
+#ifdef SHA2_USE_INTTYPES_H
+
+#include <inttypes.h>
+
+#endif /* SHA2_USE_INTTYPES_H */
+#endif /* RUBY */
/*** SHA-256/384/512 Various Length Definitions ***********************/
@@ -59,7 +87,38 @@ extern "C" {
/*** SHA-256/384/512 Context Structures *******************************/
+/* NOTE: If your architecture does not define either u_intXX_t types or
+ * uintXX_t (from inttypes.h), you may need to define things by hand
+ * for your system:
+ */
+#ifndef SHA2_USE_INTTYPES_H
+# ifdef HAVE_U_INT8_T
+typedef u_int8_t uint8_t; /* 1-byte (8-bits) */
+typedef u_int32_t uint32_t; /* 4-bytes (32-bits) */
+typedef u_int64_t uint64_t; /* 8-bytes (64-bits) */
+# else
+typedef unsigned char uint8_t; /* 1-byte (8-bits) */
+typedef unsigned int uint32_t; /* 4-bytes (32-bits) */
+typedef unsigned long long uint64_t; /* 8-bytes (64-bits) */
+# endif
+#endif
+/*
+ * Most BSD systems already define u_intXX_t types, as does Linux.
+ * Some systems, however, like Compaq's Tru64 Unix instead can use
+ * uintXX_t types defined by very recent ANSI C standards and included
+ * in the file:
+ *
+ * #include <inttypes.h>
+ *
+ * If you choose to use <inttypes.h> then please define:
+ *
+ * #define SHA2_USE_INTTYPES_H
+ *
+ * Or on the command line during compile:
+ *
+ * cc -DSHA2_USE_INTTYPES_H ...
+ */
typedef struct _SHA256_CTX {
uint32_t state[8];
uint64_t bitcount;
@@ -74,32 +133,89 @@ typedef struct _SHA512_CTX {
typedef SHA512_CTX SHA384_CTX;
+/*** SHA-256/384/512 Function Prototypes ******************************/
#ifdef RUBY
#define SHA256_Init rb_Digest_SHA256_Init
#define SHA256_Update rb_Digest_SHA256_Update
#define SHA256_Finish rb_Digest_SHA256_Finish
+#define SHA256_Data rb_Digest_SHA256_Data
+#define SHA256_End rb_Digest_SHA256_End
+#define SHA256_Last rb_Digest_SHA256_Last
+#define SHA256_Transform rb_Digest_SHA256_Transform
+#define SHA256_Final(d, c) SHA256_Finish(c, d)
#define SHA384_Init rb_Digest_SHA384_Init
#define SHA384_Update rb_Digest_SHA384_Update
#define SHA384_Finish rb_Digest_SHA384_Finish
+#define SHA384_Data rb_Digest_SHA384_Data
+#define SHA384_End rb_Digest_SHA384_End
+#define SHA384_Last rb_Digest_SHA384_Last
+#define SHA384_Transform rb_Digest_SHA384_Transform
+#define SHA384_Final(d, c) SHA384_Finish(c, d)
#define SHA512_Init rb_Digest_SHA512_Init
#define SHA512_Update rb_Digest_SHA512_Update
#define SHA512_Finish rb_Digest_SHA512_Finish
-#endif
-
-/*** SHA-256/384/512 Function Prototypes ******************************/
-void SHA256_Init _((SHA256_CTX *));
-void SHA256_Update _((SHA256_CTX*, const uint8_t*, size_t));
-void SHA256_Finish _((SHA256_CTX*, uint8_t[SHA256_DIGEST_LENGTH]));
-
-void SHA384_Init _((SHA384_CTX*));
-void SHA384_Update _((SHA384_CTX*, const uint8_t*, size_t));
-void SHA384_Finish _((SHA384_CTX*, uint8_t[SHA384_DIGEST_LENGTH]));
-
-void SHA512_Init _((SHA512_CTX*));
-void SHA512_Update _((SHA512_CTX*, const uint8_t*, size_t));
-void SHA512_Finish _((SHA512_CTX*, uint8_t[SHA512_DIGEST_LENGTH]));
+#define SHA512_Data rb_Digest_SHA512_Data
+#define SHA512_End rb_Digest_SHA512_End
+#define SHA512_Last rb_Digest_SHA512_Last
+#define SHA512_Transform rb_Digest_SHA512_Transform
+#define SHA512_Final(d, c) SHA512_Finish(c, d)
+#endif /* RUBY */
+
+#ifndef NOPROTO
+
+void SHA256_Init(SHA256_CTX *);
+void SHA256_Update(SHA256_CTX*, const uint8_t*, size_t);
+void SHA256_Final(uint8_t[SHA256_DIGEST_LENGTH], SHA256_CTX*);
+char* SHA256_End(SHA256_CTX*, char[SHA256_DIGEST_STRING_LENGTH]);
+char* SHA256_Data(const uint8_t*, size_t, char[SHA256_DIGEST_STRING_LENGTH]);
+
+void SHA384_Init(SHA384_CTX*);
+void SHA384_Update(SHA384_CTX*, const uint8_t*, size_t);
+void SHA384_Final(uint8_t[SHA384_DIGEST_LENGTH], SHA384_CTX*);
+char* SHA384_End(SHA384_CTX*, char[SHA384_DIGEST_STRING_LENGTH]);
+char* SHA384_Data(const uint8_t*, size_t, char[SHA384_DIGEST_STRING_LENGTH]);
+
+void SHA512_Init(SHA512_CTX*);
+void SHA512_Update(SHA512_CTX*, const uint8_t*, size_t);
+void SHA512_Final(uint8_t[SHA512_DIGEST_LENGTH], SHA512_CTX*);
+char* SHA512_End(SHA512_CTX*, char[SHA512_DIGEST_STRING_LENGTH]);
+char* SHA512_Data(const uint8_t*, size_t, char[SHA512_DIGEST_STRING_LENGTH]);
+
+#else /* NOPROTO */
+
+void SHA256_Init();
+void SHA256_Update();
+#ifdef RUBY
+void SHA256_Finish();
+#else
+void SHA256_Final();
+#endif /* RUBY */
+char* SHA256_End();
+char* SHA256_Data();
+
+void SHA384_Init();
+void SHA384_Update();
+#ifdef RUBY
+void SHA384_Finish();
+#else
+void SHA384_Final();
+#endif /* RUBY */
+char* SHA384_End();
+char* SHA384_Data();
+
+void SHA512_Init();
+void SHA512_Update();
+#ifdef RUBY
+void SHA512_Finish();
+#else
+void SHA512_Final();
+#endif /* RUBY */
+char* SHA512_End();
+char* SHA512_Data();
+
+#endif /* NOPROTO */
#ifdef __cplusplus
}
diff --git a/ext/digest/sha2/sha2init.c b/ext/digest/sha2/sha2init.c
index 8b79e950a6..13df4bcb78 100644
--- a/ext/digest/sha2/sha2init.c
+++ b/ext/digest/sha2/sha2init.c
@@ -2,7 +2,11 @@
/* $Id$ */
#include "digest.h"
+#if defined(SHA2_USE_OPENSSL)
+#include "sha2ossl.h"
+#else
#include "sha2.h"
+#endif
#define FOREACH_BITLEN(func) func(256) func(384) func(512)
diff --git a/ext/digest/sha2/sha2ossl.c b/ext/digest/sha2/sha2ossl.c
new file mode 100644
index 0000000000..86824e72f4
--- /dev/null
+++ b/ext/digest/sha2/sha2ossl.c
@@ -0,0 +1,11 @@
+#include "defs.h"
+#include "sha2ossl.h"
+
+#define SHA_Finish(bit) \
+ void SHA##bit##_Finish(SHA##bit##_CTX *ctx, char *buf) \
+ { SHA##bit##_Final((unsigned char *)buf, ctx);}
+#define SHA384_Final SHA512_Final
+
+SHA_Finish(256)
+SHA_Finish(384)
+SHA_Finish(512)
diff --git a/ext/digest/sha2/sha2ossl.h b/ext/digest/sha2/sha2ossl.h
new file mode 100644
index 0000000000..4229d14cf9
--- /dev/null
+++ b/ext/digest/sha2/sha2ossl.h
@@ -0,0 +1,17 @@
+#ifndef SHA2OSSL_H_INCLUDED
+#define SHA2OSSL_H_INCLUDED
+
+#include <stddef.h>
+#include <openssl/sha.h>
+
+#define SHA256_BLOCK_LENGTH SHA256_CBLOCK
+#define SHA384_BLOCK_LENGTH SHA512_CBLOCK
+#define SHA512_BLOCK_LENGTH SHA512_CBLOCK
+
+typedef SHA512_CTX SHA384_CTX;
+
+void SHA256_Finish(SHA256_CTX *ctx, char *buf);
+void SHA384_Finish(SHA384_CTX *ctx, char *buf);
+void SHA512_Finish(SHA512_CTX *ctx, char *buf);
+
+#endif
diff --git a/ext/dl/.cvsignore b/ext/dl/.cvsignore
deleted file mode 100644
index 6c0b25a1c5..0000000000
--- a/ext/dl/.cvsignore
+++ /dev/null
@@ -1,10 +0,0 @@
-Makefile
-mkmf.log
-dlconfig.h
-dlconfig.rb
-callback.h
-*.func
-*.o
-*~
-*.def
-extconf.h
diff --git a/ext/dl/callback/mkcallback.rb b/ext/dl/callback/mkcallback.rb
index d2f9e3f2e1..d14072a932 100644
--- a/ext/dl/callback/mkcallback.rb
+++ b/ext/dl/callback/mkcallback.rb
@@ -128,8 +128,16 @@ FUNC_#{calltype.upcase}(#{func_name(ty,argc,n,calltype)})(#{(0...argc).collect{|
{
VALUE ret, cb#{argc > 0 ? ", args[#{argc}]" : ""};
#{
+ sizeof_voidp = [""].pack('p').size
+ sizeof_long = [0].pack('l!').size
(0...argc).collect{|i|
- " args[%d] = LONG2NUM(stack%d);" % [i,i]
+ if sizeof_voidp == sizeof_long
+ " args[%d] = LONG2NUM(stack%d);" % [i,i]
+ elsif sizeof_voidp == 8 # should get sizeof_long_long...
+ " args[%d] = LL2NUM(stack%d);" % [i,i]
+ else
+ raise "unknown size of void*"
+ end
}.join("\n")
}
cb = rb_ary_entry(rb_ary_entry(#{proc_entry}, #{ty}), #{(n * DLSTACK_SIZE) + argc});
diff --git a/ext/dl/cfunc.c b/ext/dl/cfunc.c
index 6110e14f55..66aebf2e79 100644
--- a/ext/dl/cfunc.c
+++ b/ext/dl/cfunc.c
@@ -23,7 +23,7 @@ rb_dl_set_last_error(VALUE self, VALUE val)
return Qnil;
}
-#if defined(HAVE_WINDOWS_H)
+#if defined(_WIN32)
#include <windows.h>
static ID id_win32_last_error;
@@ -41,8 +41,16 @@ rb_dl_set_win32_last_error(VALUE self, VALUE val)
}
#endif
+static void
+dlcfunc_mark(void *ptr)
+{
+ struct cfunc_data *data = ptr;
+ if (data->wrap) {
+ rb_gc_mark(data->wrap);
+ }
+}
-void
+static void
dlcfunc_free(void *ptr)
{
struct cfunc_data *data = ptr;
@@ -52,6 +60,25 @@ dlcfunc_free(void *ptr)
xfree(data);
}
+static size_t
+dlcfunc_memsize(const void *ptr)
+{
+ const struct cfunc_data *data = ptr;
+ size_t size = 0;
+ if( data ){
+ size += sizeof(*data);
+ if( data->name ){
+ size += strlen(data->name) + 1;
+ }
+ }
+ return size;
+}
+
+const rb_data_type_t dlcfunc_data_type = {
+ "dl/cfunc",
+ {dlcfunc_mark, dlcfunc_free, dlcfunc_memsize,},
+};
+
VALUE
rb_dlcfunc_new(void (*func)(), int type, const char *name, ID calltype)
{
@@ -60,8 +87,8 @@ rb_dlcfunc_new(void (*func)(), int type, const char *name, ID calltype)
rb_secure(4);
if( func ){
- val = Data_Make_Struct(rb_cDLCFunc, struct cfunc_data, 0, dlcfunc_free, data);
- data->ptr = func;
+ val = TypedData_Make_Struct(rb_cDLCFunc, struct cfunc_data, &dlcfunc_data_type, data);
+ data->ptr = (void *)(VALUE)func;
data->name = name ? strdup(name) : NULL;
data->type = type;
data->calltype = calltype;
@@ -79,8 +106,8 @@ rb_dlcfunc2ptr(VALUE val)
struct cfunc_data *data;
void * func;
- if( rb_obj_is_kind_of(val, rb_cDLCFunc) ){
- Data_Get_Struct(val, struct cfunc_data, data);
+ if( rb_typeddata_is_kind_of(val, &dlcfunc_data_type) ){
+ data = DATA_PTR(val);
func = data->ptr;
}
else if( val == Qnil ){
@@ -93,13 +120,13 @@ rb_dlcfunc2ptr(VALUE val)
return func;
}
-VALUE
+static VALUE
rb_dlcfunc_s_allocate(VALUE klass)
{
VALUE obj;
struct cfunc_data *data;
- obj = Data_Make_Struct(klass, struct cfunc_data, 0, dlcfunc_free, data);
+ obj = TypedData_Make_Struct(klass, struct cfunc_data, &dlcfunc_data_type, data);
data->ptr = 0;
data->name = 0;
data->type = 0;
@@ -111,129 +138,180 @@ rb_dlcfunc_s_allocate(VALUE klass)
int
rb_dlcfunc_kind_p(VALUE func)
{
- if (TYPE(func) == T_DATA) return 0;
- return RDATA(func)->dfree == dlcfunc_free;
+ return rb_typeddata_is_kind_of(func, &dlcfunc_data_type);
}
-VALUE
+/*
+ * call-seq:
+ * DL::CFunc.new(address, type=DL::TYPE_VOID, name=nil, calltype=:cdecl)
+ *
+ * Create a new function that points to +address+ with an optional return type
+ * of +type+, a name of +name+ and a calltype of +calltype+.
+ */
+static VALUE
rb_dlcfunc_initialize(int argc, VALUE argv[], VALUE self)
{
- VALUE addr, name, type, calltype;
+ VALUE addr, name, type, calltype, addrnum;
struct cfunc_data *data;
void *saddr;
const char *sname;
-
+
rb_scan_args(argc, argv, "13", &addr, &type, &name, &calltype);
-
- saddr = (void*)(NUM2PTR(rb_Integer(addr)));
+
+ addrnum = rb_Integer(addr);
+ saddr = (void*)(NUM2PTR(addrnum));
sname = NIL_P(name) ? NULL : StringValuePtr(name);
-
- Data_Get_Struct(self, struct cfunc_data, data);
+
+ TypedData_Get_Struct(self, struct cfunc_data, &dlcfunc_data_type, data);
if( data->name ) xfree(data->name);
data->ptr = saddr;
data->name = sname ? strdup(sname) : 0;
- data->type = (type == Qnil) ? DLTYPE_VOID : NUM2INT(type);
- data->calltype = (calltype == Qnil) ? CFUNC_CDECL : SYM2ID(calltype);
+ data->type = NIL_P(type) ? DLTYPE_VOID : NUM2INT(type);
+ data->calltype = NIL_P(calltype) ? CFUNC_CDECL : SYM2ID(calltype);
+ data->wrap = (addrnum == addr) ? 0 : addr;
return Qnil;
}
-VALUE
+/*
+ * call-seq:
+ * name => str
+ *
+ * Get the name of this function
+ */
+static VALUE
rb_dlcfunc_name(VALUE self)
{
struct cfunc_data *cfunc;
- Data_Get_Struct(self, struct cfunc_data, cfunc);
+ TypedData_Get_Struct(self, struct cfunc_data, &dlcfunc_data_type, cfunc);
return cfunc->name ? rb_tainted_str_new2(cfunc->name) : Qnil;
}
-VALUE
+/*
+ * call-seq:
+ * cfunc.ctype => num
+ *
+ * Get the C function return value type. See DL for a list of constants
+ * corresponding to this method's return value.
+ */
+static VALUE
rb_dlcfunc_ctype(VALUE self)
{
struct cfunc_data *cfunc;
- Data_Get_Struct(self, struct cfunc_data, cfunc);
+ TypedData_Get_Struct(self, struct cfunc_data, &dlcfunc_data_type, cfunc);
return INT2NUM(cfunc->type);
}
-VALUE
+/*
+ * call-seq:
+ * cfunc.ctype = type
+ *
+ * Set the C function return value type to +type+.
+ */
+static VALUE
rb_dlcfunc_set_ctype(VALUE self, VALUE ctype)
{
struct cfunc_data *cfunc;
- Data_Get_Struct(self, struct cfunc_data, cfunc);
+ TypedData_Get_Struct(self, struct cfunc_data, &dlcfunc_data_type, cfunc);
cfunc->type = NUM2INT(ctype);
return ctype;
}
-VALUE
+/*
+ * call-seq:
+ * cfunc.calltype => symbol
+ *
+ * Get the call type of this function.
+ */
+static VALUE
rb_dlcfunc_calltype(VALUE self)
{
struct cfunc_data *cfunc;
- Data_Get_Struct(self, struct cfunc_data, cfunc);
+ TypedData_Get_Struct(self, struct cfunc_data, &dlcfunc_data_type, cfunc);
return ID2SYM(cfunc->calltype);
}
-VALUE
+/*
+ * call-seq:
+ * cfunc.calltype = symbol
+ *
+ * Set the call type for this function.
+ */
+static VALUE
rb_dlcfunc_set_calltype(VALUE self, VALUE sym)
{
struct cfunc_data *cfunc;
- Data_Get_Struct(self, struct cfunc_data, cfunc);
+ TypedData_Get_Struct(self, struct cfunc_data, &dlcfunc_data_type, cfunc);
cfunc->calltype = SYM2ID(sym);
return sym;
}
-
-VALUE
+/*
+ * call-seq:
+ * cfunc.ptr
+ *
+ * Get the underlying function pointer as a DL::CPtr object.
+ */
+static VALUE
rb_dlcfunc_ptr(VALUE self)
{
struct cfunc_data *cfunc;
- Data_Get_Struct(self, struct cfunc_data, cfunc);
+ TypedData_Get_Struct(self, struct cfunc_data, &dlcfunc_data_type, cfunc);
return PTR2NUM(cfunc->ptr);
}
-VALUE
+/*
+ * call-seq:
+ * cfunc.ptr = pointer
+ *
+ * Set the underlying function pointer to a DL::CPtr named +pointer+.
+ */
+static VALUE
rb_dlcfunc_set_ptr(VALUE self, VALUE addr)
{
struct cfunc_data *cfunc;
- Data_Get_Struct(self, struct cfunc_data, cfunc);
+ TypedData_Get_Struct(self, struct cfunc_data, &dlcfunc_data_type, cfunc);
cfunc->ptr = NUM2PTR(addr);
return Qnil;
}
-VALUE
+/*
+ * call-seq: inspect
+ *
+ * Returns a string formatted with an easily readable representation of the
+ * internal state of the DL::CFunc
+ */
+static VALUE
rb_dlcfunc_inspect(VALUE self)
{
VALUE val;
- char *str;
- int str_size;
struct cfunc_data *cfunc;
-
- Data_Get_Struct(self, struct cfunc_data, cfunc);
-
- str_size = (cfunc->name ? strlen(cfunc->name) : 0) + 100;
- str = ruby_xmalloc(str_size);
- snprintf(str, str_size - 1,
- "#<DL::CFunc:%p ptr=%p type=%d name='%s'>",
+
+ TypedData_Get_Struct(self, struct cfunc_data, &dlcfunc_data_type, cfunc);
+
+ val = rb_sprintf("#<DL::CFunc:%p ptr=%p type=%d name='%s'>",
cfunc,
cfunc->ptr,
cfunc->type,
cfunc->name ? cfunc->name : "");
- val = rb_tainted_str_new2(str);
- ruby_xfree(str);
-
+ OBJ_TAINT(val);
return val;
}
-# define DECL_FUNC_CDECL(f,ret,args) ret (FUNC_CDECL(*f))(args)
+# define DECL_FUNC_CDECL(f,ret,args,val) \
+ ret (FUNC_CDECL(*(f)))(args) = (ret (FUNC_CDECL(*))(args))(VALUE)(val)
#ifdef FUNC_STDCALL
-# define DECL_FUNC_STDCALL(f,ret,args) ret (FUNC_STDCALL(*f))(args)
+# define DECL_FUNC_STDCALL(f,ret,args,val) \
+ ret (FUNC_STDCALL(*(f)))(args) = (ret (FUNC_STDCALL(*))(args))(VALUE)(val)
#endif
#define CALL_CASE switch( RARRAY_LEN(ary) ){ \
@@ -246,7 +324,18 @@ rb_dlcfunc_inspect(VALUE self)
}
-VALUE
+#if defined(_MSC_VER) && defined(_M_AMD64) && _MSC_VER == 1500
+# pragma optimize("", off)
+#endif
+/*
+ * call-seq:
+ * dlcfunc.call(ary) => some_value
+ * dlcfunc[ary] => some_value
+ *
+ * Calls the function pointer passing in +ary+ as values to the underlying
+ * C function. The return value depends on the ctype.
+ */
+static VALUE
rb_dlcfunc_call(VALUE self, VALUE ary)
{
struct cfunc_data *cfunc;
@@ -258,22 +347,32 @@ rb_dlcfunc_call(VALUE self, VALUE ary)
memset(stack, 0, sizeof(DLSTACK_TYPE) * DLSTACK_SIZE);
Check_Type(ary, T_ARRAY);
-
- Data_Get_Struct(self, struct cfunc_data, cfunc);
+
+ TypedData_Get_Struct(self, struct cfunc_data, &dlcfunc_data_type, cfunc);
if( cfunc->ptr == 0 ){
rb_raise(rb_eDLError, "can't call null-function");
return Qnil;
}
-
+
for( i = 0; i < RARRAY_LEN(ary); i++ ){
+ VALUE arg;
if( i >= DLSTACK_SIZE ){
rb_raise(rb_eDLError, "too many arguments (stack overflow)");
}
- rb_check_safe_obj(RARRAY_PTR(ary)[i]);
- stack[i] = NUM2LONG(RARRAY_PTR(ary)[i]);
+ arg = rb_to_int(RARRAY_PTR(ary)[i]);
+ rb_check_safe_obj(arg);
+ if (FIXNUM_P(arg)) {
+ stack[i] = (DLSTACK_TYPE)FIX2LONG(arg);
+ }
+ else if (RB_TYPE_P(arg, T_BIGNUM)) {
+ stack[i] = (DLSTACK_TYPE)rb_big2ulong_pack(arg);
+ }
+ else {
+ Check_Type(arg, T_FIXNUM);
+ }
}
-
+
/* calltype == CFUNC_CDECL */
if( cfunc->calltype == CFUNC_CDECL
#ifndef FUNC_STDCALL
@@ -283,7 +382,7 @@ rb_dlcfunc_call(VALUE self, VALUE ary)
switch( cfunc->type ){
case DLTYPE_VOID:
#define CASE(n) case n: { \
- DECL_FUNC_CDECL(f,void,DLSTACK_PROTO##n) = cfunc->ptr; \
+ DECL_FUNC_CDECL(f,void,DLSTACK_PROTO##n,cfunc->ptr); \
f(DLSTACK_ARGS##n(stack)); \
result = Qnil; \
}
@@ -292,7 +391,7 @@ rb_dlcfunc_call(VALUE self, VALUE ary)
break;
case DLTYPE_VOIDP:
#define CASE(n) case n: { \
- DECL_FUNC_CDECL(f,void*,DLSTACK_PROTO##n) = cfunc->ptr; \
+ DECL_FUNC_CDECL(f,void*,DLSTACK_PROTO##n,cfunc->ptr); \
void * ret; \
ret = f(DLSTACK_ARGS##n(stack)); \
result = PTR2NUM(ret); \
@@ -302,7 +401,7 @@ rb_dlcfunc_call(VALUE self, VALUE ary)
break;
case DLTYPE_CHAR:
#define CASE(n) case n: { \
- DECL_FUNC_CDECL(f,char,DLSTACK_PROTO##n) = cfunc->ptr; \
+ DECL_FUNC_CDECL(f,char,DLSTACK_PROTO##n,cfunc->ptr); \
char ret; \
ret = f(DLSTACK_ARGS##n(stack)); \
result = CHR2FIX(ret); \
@@ -312,7 +411,7 @@ rb_dlcfunc_call(VALUE self, VALUE ary)
break;
case DLTYPE_SHORT:
#define CASE(n) case n: { \
- DECL_FUNC_CDECL(f,short,DLSTACK_PROTO##n) = cfunc->ptr; \
+ DECL_FUNC_CDECL(f,short,DLSTACK_PROTO##n,cfunc->ptr); \
short ret; \
ret = f(DLSTACK_ARGS##n(stack)); \
result = INT2NUM((int)ret); \
@@ -322,7 +421,7 @@ rb_dlcfunc_call(VALUE self, VALUE ary)
break;
case DLTYPE_INT:
#define CASE(n) case n: { \
- DECL_FUNC_CDECL(f,int,DLSTACK_PROTO##n) = cfunc->ptr; \
+ DECL_FUNC_CDECL(f,int,DLSTACK_PROTO##n,cfunc->ptr); \
int ret; \
ret = f(DLSTACK_ARGS##n(stack)); \
result = INT2NUM(ret); \
@@ -332,7 +431,7 @@ rb_dlcfunc_call(VALUE self, VALUE ary)
break;
case DLTYPE_LONG:
#define CASE(n) case n: { \
- DECL_FUNC_CDECL(f,long,DLSTACK_PROTO##n) = cfunc->ptr; \
+ DECL_FUNC_CDECL(f,long,DLSTACK_PROTO##n,cfunc->ptr); \
long ret; \
ret = f(DLSTACK_ARGS##n(stack)); \
result = LONG2NUM(ret); \
@@ -343,7 +442,7 @@ rb_dlcfunc_call(VALUE self, VALUE ary)
#if HAVE_LONG_LONG /* used in ruby.h */
case DLTYPE_LONG_LONG:
#define CASE(n) case n: { \
- DECL_FUNC_CDECL(f,LONG_LONG,DLSTACK_PROTO##n) = cfunc->ptr; \
+ DECL_FUNC_CDECL(f,LONG_LONG,DLSTACK_PROTO##n,cfunc->ptr); \
LONG_LONG ret; \
ret = f(DLSTACK_ARGS##n(stack)); \
result = LL2NUM(ret); \
@@ -354,7 +453,7 @@ rb_dlcfunc_call(VALUE self, VALUE ary)
#endif
case DLTYPE_FLOAT:
#define CASE(n) case n: { \
- DECL_FUNC_CDECL(f,float,DLSTACK_PROTO##n) = cfunc->ptr; \
+ DECL_FUNC_CDECL(f,float,DLSTACK_PROTO##n,cfunc->ptr); \
float ret; \
ret = f(DLSTACK_ARGS##n(stack)); \
result = rb_float_new(ret); \
@@ -364,7 +463,7 @@ rb_dlcfunc_call(VALUE self, VALUE ary)
break;
case DLTYPE_DOUBLE:
#define CASE(n) case n: { \
- DECL_FUNC_CDECL(f,double,DLSTACK_PROTO##n) = cfunc->ptr; \
+ DECL_FUNC_CDECL(f,double,DLSTACK_PROTO##n,cfunc->ptr); \
double ret; \
ret = f(DLSTACK_ARGS##n(stack)); \
result = rb_float_new(ret); \
@@ -382,7 +481,7 @@ rb_dlcfunc_call(VALUE self, VALUE ary)
switch( cfunc->type ){
case DLTYPE_VOID:
#define CASE(n) case n: { \
- DECL_FUNC_STDCALL(f,void,DLSTACK_PROTO##n##_) = cfunc->ptr; \
+ DECL_FUNC_STDCALL(f,void,DLSTACK_PROTO##n##_,cfunc->ptr); \
f(DLSTACK_ARGS##n(stack)); \
result = Qnil; \
}
@@ -391,7 +490,7 @@ rb_dlcfunc_call(VALUE self, VALUE ary)
break;
case DLTYPE_VOIDP:
#define CASE(n) case n: { \
- DECL_FUNC_STDCALL(f,void*,DLSTACK_PROTO##n##_) = cfunc->ptr; \
+ DECL_FUNC_STDCALL(f,void*,DLSTACK_PROTO##n##_,cfunc->ptr); \
void * ret; \
ret = f(DLSTACK_ARGS##n(stack)); \
result = PTR2NUM(ret); \
@@ -401,7 +500,7 @@ rb_dlcfunc_call(VALUE self, VALUE ary)
break;
case DLTYPE_CHAR:
#define CASE(n) case n: { \
- DECL_FUNC_STDCALL(f,char,DLSTACK_PROTO##n##_) = cfunc->ptr; \
+ DECL_FUNC_STDCALL(f,char,DLSTACK_PROTO##n##_,cfunc->ptr); \
char ret; \
ret = f(DLSTACK_ARGS##n(stack)); \
result = CHR2FIX(ret); \
@@ -411,7 +510,7 @@ rb_dlcfunc_call(VALUE self, VALUE ary)
break;
case DLTYPE_SHORT:
#define CASE(n) case n: { \
- DECL_FUNC_STDCALL(f,short,DLSTACK_PROTO##n##_) = cfunc->ptr; \
+ DECL_FUNC_STDCALL(f,short,DLSTACK_PROTO##n##_,cfunc->ptr); \
short ret; \
ret = f(DLSTACK_ARGS##n(stack)); \
result = INT2NUM((int)ret); \
@@ -421,7 +520,7 @@ rb_dlcfunc_call(VALUE self, VALUE ary)
break;
case DLTYPE_INT:
#define CASE(n) case n: { \
- DECL_FUNC_STDCALL(f,int,DLSTACK_PROTO##n##_) = cfunc->ptr; \
+ DECL_FUNC_STDCALL(f,int,DLSTACK_PROTO##n##_,cfunc->ptr); \
int ret; \
ret = f(DLSTACK_ARGS##n(stack)); \
result = INT2NUM(ret); \
@@ -431,7 +530,7 @@ rb_dlcfunc_call(VALUE self, VALUE ary)
break;
case DLTYPE_LONG:
#define CASE(n) case n: { \
- DECL_FUNC_STDCALL(f,long,DLSTACK_PROTO##n##_) = cfunc->ptr; \
+ DECL_FUNC_STDCALL(f,long,DLSTACK_PROTO##n##_,cfunc->ptr); \
long ret; \
ret = f(DLSTACK_ARGS##n(stack)); \
result = LONG2NUM(ret); \
@@ -442,7 +541,7 @@ rb_dlcfunc_call(VALUE self, VALUE ary)
#if HAVE_LONG_LONG /* used in ruby.h */
case DLTYPE_LONG_LONG:
#define CASE(n) case n: { \
- DECL_FUNC_STDCALL(f,LONG_LONG,DLSTACK_PROTO##n##_) = cfunc->ptr; \
+ DECL_FUNC_STDCALL(f,LONG_LONG,DLSTACK_PROTO##n##_,cfunc->ptr); \
LONG_LONG ret; \
ret = f(DLSTACK_ARGS##n(stack)); \
result = LL2NUM(ret); \
@@ -453,7 +552,7 @@ rb_dlcfunc_call(VALUE self, VALUE ary)
#endif
case DLTYPE_FLOAT:
#define CASE(n) case n: { \
- DECL_FUNC_STDCALL(f,float,DLSTACK_PROTO##n##_) = cfunc->ptr; \
+ DECL_FUNC_STDCALL(f,float,DLSTACK_PROTO##n##_,cfunc->ptr); \
float ret; \
ret = f(DLSTACK_ARGS##n(stack)); \
result = rb_float_new(ret); \
@@ -463,7 +562,7 @@ rb_dlcfunc_call(VALUE self, VALUE ary)
break;
case DLTYPE_DOUBLE:
#define CASE(n) case n: { \
- DECL_FUNC_STDCALL(f,double,DLSTACK_PROTO##n##_) = cfunc->ptr; \
+ DECL_FUNC_STDCALL(f,double,DLSTACK_PROTO##n##_,cfunc->ptr); \
double ret; \
ret = f(DLSTACK_ARGS##n(stack)); \
result = rb_float_new(ret); \
@@ -477,29 +576,40 @@ rb_dlcfunc_call(VALUE self, VALUE ary)
}
#endif
else{
- rb_raise(rb_eDLError,
-#ifndef LONG_LONG_VALUE
- "unsupported call type: %lx",
-#else
- "unsupported call type: %llx",
-#endif
- cfunc->calltype);
+ const char *name = rb_id2name(cfunc->calltype);
+ if( name ){
+ rb_raise(rb_eDLError, "unsupported call type: %s",
+ name);
+ }
+ else{
+ rb_raise(rb_eDLError, "unsupported call type: %"PRIxVALUE,
+ cfunc->calltype);
+ }
}
rb_dl_set_last_error(self, INT2NUM(errno));
-#if defined(HAVE_WINDOWS_H)
+#if defined(_WIN32)
rb_dl_set_win32_last_error(self, INT2NUM(GetLastError()));
#endif
return result;
}
+#if defined(_MSC_VER) && defined(_M_AMD64) && _MSC_VER == 1500
+# pragma optimize("", on)
+#endif
-VALUE
+/*
+ * call-seq:
+ * dlfunc.to_i => integer
+ *
+ * Returns the memory location of this function pointer as an integer.
+ */
+static VALUE
rb_dlcfunc_to_i(VALUE self)
{
struct cfunc_data *cfunc;
- Data_Get_Struct(self, struct cfunc_data, cfunc);
+ TypedData_Get_Struct(self, struct cfunc_data, &dlcfunc_data_type, cfunc);
return PTR2NUM(cfunc->ptr);
}
@@ -507,13 +617,41 @@ void
Init_dlcfunc(void)
{
id_last_error = rb_intern("__DL2_LAST_ERROR__");
-#if defined(HAVE_WINDOWS_H)
+#if defined(_WIN32)
id_win32_last_error = rb_intern("__DL2_WIN32_LAST_ERROR__");
#endif
+
+ /*
+ * Document-class: DL::CFunc
+ *
+ * A direct accessor to a function in a C library
+ *
+ * == Example
+ *
+ * libc_so = "/lib64/libc.so.6"
+ * => "/lib64/libc.so.6"
+ * libc = DL::dlopen(libc_so)
+ * => #<DL::Handle:0x00000000e05b00>
+ * @cfunc = DL::CFunc.new(libc,['strcpy'], DL::TYPE_VOIDP, 'strcpy')
+ * => #<DL::CFunc:0x000000012daec0 ptr=0x007f62ca5a8300 type=1 name='strcpy'>
+ *
+ */
rb_cDLCFunc = rb_define_class_under(rb_mDL, "CFunc", rb_cObject);
rb_define_alloc_func(rb_cDLCFunc, rb_dlcfunc_s_allocate);
+
+ /*
+ * Document-method: last_error
+ *
+ * Returns the last error for the current executing thread
+ */
rb_define_module_function(rb_cDLCFunc, "last_error", rb_dl_get_last_error, 0);
-#if defined(HAVE_WINDOWS_H)
+#if defined(_WIN32)
+
+ /*
+ * Document-method: win32_last_error
+ *
+ * Returns the last win32 error for the current executing thread
+ */
rb_define_module_function(rb_cDLCFunc, "win32_last_error", rb_dl_get_win32_last_error, 0);
#endif
rb_define_method(rb_cDLCFunc, "initialize", rb_dlcfunc_initialize, -1);
diff --git a/ext/dl/cptr.c b/ext/dl/cptr.c
index d2fa07771d..89dcb942c0 100644
--- a/ext/dl/cptr.c
+++ b/ext/dl/cptr.c
@@ -10,22 +10,40 @@
VALUE rb_cDLCPtr;
static inline freefunc_t
-get_freefunc(VALUE func)
+get_freefunc(VALUE func, volatile VALUE *wrap)
{
+ VALUE addrnum;
if (NIL_P(func)) {
+ *wrap = 0;
return NULL;
}
if (rb_dlcfunc_kind_p(func)) {
- return RCFUNC_DATA(func)->ptr;
+ *wrap = func;
+ return (freefunc_t)(VALUE)RCFUNC_DATA(func)->ptr;
}
- return NUM2PTR(rb_Integer(func));
+ addrnum = rb_Integer(func);
+ *wrap = (addrnum != func) ? func : 0;
+ return (freefunc_t)(VALUE)NUM2PTR(addrnum);
}
static ID id_to_ptr;
static void
-dlptr_free(struct ptr_data *data)
+dlptr_mark(void *ptr)
{
+ struct ptr_data *data = ptr;
+ if (data->wrap[0]) {
+ rb_gc_mark(data->wrap[0]);
+ }
+ if (data->wrap[1]) {
+ rb_gc_mark(data->wrap[1]);
+ }
+}
+
+static void
+dlptr_free(void *ptr)
+{
+ struct ptr_data *data = ptr;
if (data->ptr) {
if (data->free) {
(*(data->free))(data->ptr);
@@ -33,17 +51,24 @@ dlptr_free(struct ptr_data *data)
}
}
-static void
-dlptr_mark(struct ptr_data *data)
+static size_t
+dlptr_memsize(const void *ptr)
{
+ const struct ptr_data *data = ptr;
+ return data ? sizeof(*data) + data->size : 0;
}
+static const rb_data_type_t dlptr_data_type = {
+ "dl/ptr",
+ {dlptr_mark, dlptr_free, dlptr_memsize,},
+};
+
void
dlptr_init(VALUE val)
{
struct ptr_data *data;
- Data_Get_Struct(val, struct ptr_data, data);
+ TypedData_Get_Struct(val, struct ptr_data, &dlptr_data_type, data);
OBJ_TAINT(val);
}
@@ -54,8 +79,7 @@ rb_dlptr_new2(VALUE klass, void *ptr, long size, freefunc_t func)
VALUE val;
rb_secure(4);
- val = Data_Make_Struct(klass, struct ptr_data,
- 0, dlptr_free, data);
+ val = TypedData_Make_Struct(klass, struct ptr_data, &dlptr_data_type, data);
data->ptr = ptr;
data->free = func;
data->size = size;
@@ -88,7 +112,7 @@ rb_dlptr2cptr(VALUE val)
void *ptr;
if (rb_obj_is_kind_of(val, rb_cDLCPtr)) {
- Data_Get_Struct(val, struct ptr_data, data);
+ TypedData_Get_Struct(val, struct ptr_data, &dlptr_data_type, data);
ptr = data->ptr;
}
else if (val == Qnil) {
@@ -97,7 +121,7 @@ rb_dlptr2cptr(VALUE val)
else{
rb_raise(rb_eTypeError, "DL::PtrData was expected");
}
-
+
return ptr;
}
@@ -108,7 +132,7 @@ rb_dlptr_s_allocate(VALUE klass)
struct ptr_data *data;
rb_secure(4);
- obj = Data_Make_Struct(klass, struct ptr_data, dlptr_mark, dlptr_free, data);
+ obj = TypedData_Make_Struct(klass, struct ptr_data, &dlptr_data_type, data);
data->ptr = 0;
data->size = 0;
data->free = 0;
@@ -116,38 +140,44 @@ rb_dlptr_s_allocate(VALUE klass)
return obj;
}
+/*
+ * call-seq:
+ * DL::CPtr.new(address) => dl_cptr
+ * DL::CPtr.new(address, size) => dl_cptr
+ * DL::CPtr.new(address, size, freefunc) => dl_cptr
+ *
+ * Create a new pointer to +address+ with an optional +size+ and +freefunc+.
+ * +freefunc+ will be called when the instance is garbage collected.
+ */
static VALUE
rb_dlptr_initialize(int argc, VALUE argv[], VALUE self)
{
- VALUE ptr, sym, size;
+ VALUE ptr, sym, size, wrap = 0, funcwrap = 0;
struct ptr_data *data;
void *p = NULL;
freefunc_t f = NULL;
long s = 0;
- switch (rb_scan_args(argc, argv, "12", &ptr, &size, &sym)) {
- case 1:
- p = (void*)(NUM2PTR(rb_Integer(ptr)));
- break;
- case 2:
- p = (void*)(NUM2PTR(rb_Integer(ptr)));
- s = NUM2LONG(size);
- break;
- case 3:
- p = (void*)(NUM2PTR(rb_Integer(ptr)));
+ if (rb_scan_args(argc, argv, "12", &ptr, &size, &sym) >= 1) {
+ VALUE addrnum = rb_Integer(ptr);
+ if (addrnum != ptr) wrap = ptr;
+ p = NUM2PTR(addrnum);
+ }
+ if (argc >= 2) {
s = NUM2LONG(size);
- f = get_freefunc(sym);
- break;
- default:
- rb_bug("rb_dlptr_initialize");
+ }
+ if (argc >= 3) {
+ f = get_freefunc(sym, &funcwrap);
}
if (p) {
- Data_Get_Struct(self, struct ptr_data, data);
+ TypedData_Get_Struct(self, struct ptr_data, &dlptr_data_type, data);
if (data->ptr && data->free) {
/* Free previous memory. Use of inappropriate initialize may cause SEGV. */
(*(data->free))(data->ptr);
}
+ data->wrap[0] = wrap;
+ data->wrap[1] = funcwrap;
data->ptr = p;
data->size = s;
data->free = f;
@@ -156,11 +186,21 @@ rb_dlptr_initialize(int argc, VALUE argv[], VALUE self)
return Qnil;
}
+/*
+ * call-seq:
+ *
+ * DL::CPtr.malloc(size, freefunc = nil) => dl cptr instance
+ *
+ * Allocate +size+ bytes of memory and associate it with an optional
+ * +freefunc+ that will be called when the pointer is garbage collected.
+ * +freefunc+ must be an address pointing to a function or an instance of
+ * DL::CFunc
+ */
static VALUE
rb_dlptr_s_malloc(int argc, VALUE argv[], VALUE klass)
{
- VALUE size, sym, obj;
- int s;
+ VALUE size, sym, obj, wrap = 0;
+ long s;
freefunc_t f;
switch (rb_scan_args(argc, argv, "11", &size, &sym)) {
@@ -170,90 +210,138 @@ rb_dlptr_s_malloc(int argc, VALUE argv[], VALUE klass)
break;
case 2:
s = NUM2LONG(size);
- f = get_freefunc(sym);
+ f = get_freefunc(sym, &wrap);
break;
default:
rb_bug("rb_dlptr_s_malloc");
}
obj = rb_dlptr_malloc(s,f);
+ if (wrap) RPTR_DATA(obj)->wrap[1] = wrap;
return obj;
}
-VALUE
+/*
+ * call-seq: to_i
+ *
+ * Returns the integer memory location of this DL::CPtr.
+ */
+static VALUE
rb_dlptr_to_i(VALUE self)
{
struct ptr_data *data;
- Data_Get_Struct(self, struct ptr_data, data);
+ TypedData_Get_Struct(self, struct ptr_data, &dlptr_data_type, data);
return PTR2NUM(data->ptr);
}
-VALUE
+/*
+ * call-seq: to_value
+ *
+ * Cast this CPtr to a ruby object.
+ */
+static VALUE
rb_dlptr_to_value(VALUE self)
{
struct ptr_data *data;
- Data_Get_Struct(self, struct ptr_data, data);
+ TypedData_Get_Struct(self, struct ptr_data, &dlptr_data_type, data);
return (VALUE)(data->ptr);
}
+/*
+ * call-seq: ptr
+ *
+ * Returns a DL::CPtr that is a dereferenced pointer for this DL::CPtr.
+ * Analogous to the star operator in C.
+ */
VALUE
rb_dlptr_ptr(VALUE self)
{
struct ptr_data *data;
- Data_Get_Struct(self, struct ptr_data, data);
+ TypedData_Get_Struct(self, struct ptr_data, &dlptr_data_type, data);
return rb_dlptr_new(*((void**)(data->ptr)),0,0);
}
+/*
+ * call-seq: ref
+ *
+ * Returns a DL::CPtr that is a reference pointer for this DL::CPtr.
+ * Analogous to the ampersand operator in C.
+ */
VALUE
rb_dlptr_ref(VALUE self)
{
struct ptr_data *data;
- Data_Get_Struct(self, struct ptr_data, data);
+ TypedData_Get_Struct(self, struct ptr_data, &dlptr_data_type, data);
return rb_dlptr_new(&(data->ptr),0,0);
}
+/*
+ * call-seq: null?
+ *
+ * Returns true if this is a null pointer.
+ */
VALUE
rb_dlptr_null_p(VALUE self)
{
struct ptr_data *data;
- Data_Get_Struct(self, struct ptr_data, data);
+ TypedData_Get_Struct(self, struct ptr_data, &dlptr_data_type, data);
return data->ptr ? Qfalse : Qtrue;
}
-VALUE
+/*
+ * call-seq: free=(function)
+ *
+ * Set the free function for this pointer to the DL::CFunc in +function+.
+ */
+static VALUE
rb_dlptr_free_set(VALUE self, VALUE val)
{
struct ptr_data *data;
- Data_Get_Struct(self, struct ptr_data, data);
- data->free = get_freefunc(val);
+ TypedData_Get_Struct(self, struct ptr_data, &dlptr_data_type, data);
+ data->free = get_freefunc(val, &data->wrap[1]);
return Qnil;
}
-VALUE
+/*
+ * call-seq: free
+ *
+ * Get the free function for this pointer. Returns DL::CFunc or nil.
+ */
+static VALUE
rb_dlptr_free_get(VALUE self)
{
struct ptr_data *pdata;
- Data_Get_Struct(self, struct ptr_data, pdata);
+ TypedData_Get_Struct(self, struct ptr_data, &dlptr_data_type, pdata);
return rb_dlcfunc_new(pdata->free, DLTYPE_VOID, "free<anonymous>", CFUNC_CDECL);
}
-VALUE
+/*
+ * call-seq:
+ *
+ * ptr.to_s => string
+ * ptr.to_s(len) => string
+ *
+ * Returns the pointer contents as a string. When called with no arguments,
+ * this method will return the contents until the first NULL byte. When
+ * called with +len+, a string of +len+ bytes will be returned.
+ */
+static VALUE
rb_dlptr_to_s(int argc, VALUE argv[], VALUE self)
{
struct ptr_data *data;
VALUE arg1, val;
int len;
- Data_Get_Struct(self, struct ptr_data, data);
+ TypedData_Get_Struct(self, struct ptr_data, &dlptr_data_type, data);
switch (rb_scan_args(argc, argv, "01", &arg1)) {
case 0:
val = rb_tainted_str_new2((char*)(data->ptr));
@@ -269,14 +357,24 @@ rb_dlptr_to_s(int argc, VALUE argv[], VALUE self)
return val;
}
-VALUE
+/*
+ * call-seq:
+ *
+ * ptr.to_str => string
+ * ptr.to_str(len) => string
+ *
+ * Returns the pointer contents as a string. When called with no arguments,
+ * this method will return the contents with the length of this pointer's
+ * +size+. When called with +len+, a string of +len+ bytes will be returned.
+ */
+static VALUE
rb_dlptr_to_str(int argc, VALUE argv[], VALUE self)
{
struct ptr_data *data;
VALUE arg1, val;
int len;
- Data_Get_Struct(self, struct ptr_data, data);
+ TypedData_Get_Struct(self, struct ptr_data, &dlptr_data_type, data);
switch (rb_scan_args(argc, argv, "01", &arg1)) {
case 0:
val = rb_tainted_str_new((char*)(data->ptr),data->size);
@@ -292,38 +390,74 @@ rb_dlptr_to_str(int argc, VALUE argv[], VALUE self)
return val;
}
-VALUE
+/*
+ * call-seq: inspect
+ *
+ * Returns a string formatted with an easily readable representation of the
+ * internal state of the DL::CPtr
+ */
+static VALUE
rb_dlptr_inspect(VALUE self)
{
struct ptr_data *data;
char str[1024];
- Data_Get_Struct(self, struct ptr_data, data);
+ TypedData_Get_Struct(self, struct ptr_data, &dlptr_data_type, data);
snprintf(str, 1023, "#<%s:%p ptr=%p size=%ld free=%p>",
rb_class2name(CLASS_OF(self)), data, data->ptr, data->size, data->free);
return rb_str_new2(str);
}
+/*
+ * call-seq:
+ * ptr == other => true or false
+ * ptr.eql?(other) => true or false
+ *
+ * Returns true if +other+ wraps the same pointer, otherwise returns
+ * false.
+ */
VALUE
rb_dlptr_eql(VALUE self, VALUE other)
{
void *ptr1, *ptr2;
+
+ if(!rb_obj_is_kind_of(other, rb_cDLCPtr)) return Qfalse;
+
ptr1 = rb_dlptr2cptr(self);
ptr2 = rb_dlptr2cptr(other);
return ptr1 == ptr2 ? Qtrue : Qfalse;
}
-VALUE
+/*
+ * call-seq:
+ * ptr <=> other => -1, 0, 1, or nil
+ *
+ * Returns -1 if less than, 0 if equal to, 1 if greater than +other+. Returns
+ * nil if +ptr+ cannot be compared to +other+.
+ */
+static VALUE
rb_dlptr_cmp(VALUE self, VALUE other)
{
void *ptr1, *ptr2;
+ SIGNED_VALUE diff;
+
+ if(!rb_obj_is_kind_of(other, rb_cDLCPtr)) return Qnil;
+
ptr1 = rb_dlptr2cptr(self);
ptr2 = rb_dlptr2cptr(other);
- return PTR2NUM((long)ptr1 - (long)ptr2);
+ diff = (SIGNED_VALUE)ptr1 - (SIGNED_VALUE)ptr2;
+ if (!diff) return INT2FIX(0);
+ return diff > 0 ? INT2NUM(1) : INT2NUM(-1);
}
-VALUE
+/*
+ * call-seq:
+ * ptr + n => new cptr
+ *
+ * Returns a new DL::CPtr that has been advanced +n+ bytes.
+ */
+static VALUE
rb_dlptr_plus(VALUE self, VALUE other)
{
void *ptr;
@@ -335,7 +469,13 @@ rb_dlptr_plus(VALUE self, VALUE other)
return rb_dlptr_new((char *)ptr + num, size - num, 0);
}
-VALUE
+/*
+ * call-seq:
+ * ptr - n => new cptr
+ *
+ * Returns a new DL::CPtr that has been moved back +n+ bytes.
+ */
+static VALUE
rb_dlptr_minus(VALUE self, VALUE other)
{
void *ptr;
@@ -347,22 +487,34 @@ rb_dlptr_minus(VALUE self, VALUE other)
return rb_dlptr_new((char *)ptr - num, size + num, 0);
}
+/*
+ * call-seq:
+ * ptr[index] -> an_integer
+ * ptr[start, length] -> a_string
+ *
+ * Returns integer stored at _index_. If _start_ and _length_ are given,
+ * a string containing the bytes from _start_ of length _length_ will be
+ * returned.
+ */
VALUE
rb_dlptr_aref(int argc, VALUE argv[], VALUE self)
{
VALUE arg0, arg1;
VALUE retval = Qnil;
size_t offset, len;
+ struct ptr_data *data;
+ TypedData_Get_Struct(self, struct ptr_data, &dlptr_data_type, data);
+ if (!data->ptr) rb_raise(rb_eDLError, "NULL pointer dereference");
switch( rb_scan_args(argc, argv, "11", &arg0, &arg1) ){
case 1:
offset = NUM2ULONG(arg0);
- retval = INT2NUM(*((char*)RPTR_DATA(self)->ptr + offset));
+ retval = INT2NUM(*((char *)data->ptr + offset));
break;
case 2:
offset = NUM2ULONG(arg0);
len = NUM2ULONG(arg1);
- retval = rb_tainted_str_new((char *)RPTR_DATA(self)->ptr + offset, len);
+ retval = rb_tainted_str_new((char *)data->ptr + offset, len);
break;
default:
rb_bug("rb_dlptr_aref()");
@@ -370,6 +522,15 @@ rb_dlptr_aref(int argc, VALUE argv[], VALUE self)
return retval;
}
+/*
+ * call-seq:
+ * ptr[index] = int -> int
+ * ptr[start, length] = string or cptr or addr -> string or dl_cptr or addr
+ *
+ * Set the value at +index+ to +int+. Or, set the memory at +start+ until
+ * +length+ with the contents of +string+, the memory from +dl_cptr+, or the
+ * memory pointed at by the memory address +addr+.
+ */
VALUE
rb_dlptr_aset(int argc, VALUE argv[], VALUE self)
{
@@ -377,17 +538,20 @@ rb_dlptr_aset(int argc, VALUE argv[], VALUE self)
VALUE retval = Qnil;
size_t offset, len;
void *mem;
+ struct ptr_data *data;
+ TypedData_Get_Struct(self, struct ptr_data, &dlptr_data_type, data);
+ if (!data->ptr) rb_raise(rb_eDLError, "NULL pointer dereference");
switch( rb_scan_args(argc, argv, "21", &arg0, &arg1, &arg2) ){
case 2:
offset = NUM2ULONG(arg0);
- ((char*)RPTR_DATA(self)->ptr)[offset] = NUM2UINT(arg1);
+ ((char*)data->ptr)[offset] = NUM2UINT(arg1);
retval = arg1;
break;
case 3:
offset = NUM2ULONG(arg0);
len = NUM2ULONG(arg1);
- if( TYPE(arg2) == T_STRING ){
+ if (RB_TYPE_P(arg2, T_STRING)) {
mem = StringValuePtr(arg2);
}
else if( rb_obj_is_kind_of(arg2, rb_cDLCPtr) ){
@@ -396,7 +560,7 @@ rb_dlptr_aset(int argc, VALUE argv[], VALUE self)
else{
mem = NUM2PTR(arg2);
}
- memcpy((char *)RPTR_DATA(self)->ptr + offset, mem, len);
+ memcpy((char *)data->ptr + offset, mem, len);
retval = arg2;
break;
default:
@@ -405,49 +569,69 @@ rb_dlptr_aset(int argc, VALUE argv[], VALUE self)
return retval;
}
-VALUE
-rb_dlptr_size(int argc, VALUE argv[], VALUE self)
+/*
+ * call-seq: size=(size)
+ *
+ * Set the size of this pointer to +size+
+ */
+static VALUE
+rb_dlptr_size_set(VALUE self, VALUE size)
{
- VALUE size;
+ RPTR_DATA(self)->size = NUM2LONG(size);
+ return size;
+}
- if (rb_scan_args(argc, argv, "01", &size) == 0){
- return LONG2NUM(RPTR_DATA(self)->size);
- }
- else{
- RPTR_DATA(self)->size = NUM2LONG(size);
- return size;
- }
+/*
+ * call-seq: size
+ *
+ * Get the size of this pointer.
+ */
+static VALUE
+rb_dlptr_size_get(VALUE self)
+{
+ return LONG2NUM(RPTR_DATA(self)->size);
}
-VALUE
+/*
+ * call-seq:
+ * DL::CPtr.to_ptr(val) => cptr
+ * DL::CPtr[val] => cptr
+ *
+ * Get the underlying pointer for ruby object +val+ and return it as a
+ * DL::CPtr object.
+ */
+static VALUE
rb_dlptr_s_to_ptr(VALUE self, VALUE val)
{
- VALUE ptr;
+ VALUE ptr, wrap = val, vptr;
- if (rb_obj_is_kind_of(val, rb_cIO) == Qtrue){
+ if (RTEST(rb_obj_is_kind_of(val, rb_cIO))){
rb_io_t *fptr;
FILE *fp;
GetOpenFile(val, fptr);
fp = rb_io_stdio_file(fptr);
ptr = rb_dlptr_new(fp, 0, NULL);
}
- else if (rb_obj_is_kind_of(val, rb_cString) == Qtrue){
- char *str = StringValuePtr(val);
- ptr = rb_dlptr_new(str, RSTRING_LEN(val), NULL);
+ else if (RTEST(rb_obj_is_kind_of(val, rb_cString))){
+ char *str = StringValuePtr(val);
+ ptr = rb_dlptr_new(str, RSTRING_LEN(val), NULL);
}
- else if (rb_respond_to(val, id_to_ptr)){
- VALUE vptr = rb_funcall(val, id_to_ptr, 0);
+ else if ((vptr = rb_check_funcall(val, id_to_ptr, 0, 0)) != Qundef){
if (rb_obj_is_kind_of(vptr, rb_cDLCPtr)){
ptr = vptr;
+ wrap = 0;
}
else{
rb_raise(rb_eDLError, "to_ptr should return a CPtr object");
}
}
else{
- ptr = rb_dlptr_new(NUM2PTR(rb_Integer(val)), 0, NULL);
+ VALUE num = rb_Integer(val);
+ if (num == val) wrap = 0;
+ ptr = rb_dlptr_new(NUM2PTR(num), 0, NULL);
}
OBJ_INFECT(ptr, val);
+ if (wrap) RPTR_DATA(ptr)->wrap[0] = wrap;
return ptr;
}
@@ -456,6 +640,11 @@ Init_dlptr(void)
{
id_to_ptr = rb_intern("to_ptr");
+ /* Document-class: DL::CPtr
+ *
+ * CPtr is a class to handle C pointers
+ *
+ */
rb_cDLCPtr = rb_define_class_under(rb_mDL, "CPtr", rb_cObject);
rb_define_alloc_func(rb_cDLCPtr, rb_dlptr_s_allocate);
rb_define_singleton_method(rb_cDLCPtr, "malloc", rb_dlptr_s_malloc, -1);
@@ -465,6 +654,7 @@ Init_dlptr(void)
rb_define_method(rb_cDLCPtr, "free=", rb_dlptr_free_set, 1);
rb_define_method(rb_cDLCPtr, "free", rb_dlptr_free_get, 0);
rb_define_method(rb_cDLCPtr, "to_i", rb_dlptr_to_i, 0);
+ rb_define_method(rb_cDLCPtr, "to_int", rb_dlptr_to_i, 0);
rb_define_method(rb_cDLCPtr, "to_value", rb_dlptr_to_value, 0);
rb_define_method(rb_cDLCPtr, "ptr", rb_dlptr_ptr, 0);
rb_define_method(rb_cDLCPtr, "+@", rb_dlptr_ptr, 0);
@@ -481,8 +671,12 @@ Init_dlptr(void)
rb_define_method(rb_cDLCPtr, "-", rb_dlptr_minus, 1);
rb_define_method(rb_cDLCPtr, "[]", rb_dlptr_aref, -1);
rb_define_method(rb_cDLCPtr, "[]=", rb_dlptr_aset, -1);
- rb_define_method(rb_cDLCPtr, "size", rb_dlptr_size, -1);
- rb_define_method(rb_cDLCPtr, "size=", rb_dlptr_size, -1);
+ rb_define_method(rb_cDLCPtr, "size", rb_dlptr_size_get, 0);
+ rb_define_method(rb_cDLCPtr, "size=", rb_dlptr_size_set, 1);
+ /* Document-const: NULL
+ *
+ * A NULL pointer
+ */
rb_define_const(rb_mDL, "NULL", rb_dlptr_new(0, 0, 0));
}
diff --git a/ext/dl/dl.c b/ext/dl/dl.c
index 00762c5be1..e0617047ec 100644
--- a/ext/dl/dl.c
+++ b/ext/dl/dl.c
@@ -1,3 +1,10 @@
+/*
+ * ext/dl/dl.c
+ *
+ * doumentation:
+ * - Vincent Batts (vbatts@hashbangbash.com)
+ *
+ */
#include <ruby/ruby.h>
#include <ruby/io.h>
#include <ctype.h>
@@ -13,10 +20,15 @@ ID rbdl_id_stdcall;
VALUE
rb_dl_dlopen(int argc, VALUE argv[], VALUE self)
{
- rb_secure(2);
return rb_class_new_instance(argc, argv, rb_cDLHandle);
}
+/*
+ * call-seq: DL.malloc
+ *
+ * Allocate +size+ bytes of memory and return the integer memory address
+ * for the allocated memory.
+ */
VALUE
rb_dl_malloc(VALUE self, VALUE size)
{
@@ -27,6 +39,13 @@ rb_dl_malloc(VALUE self, VALUE size)
return PTR2NUM(ptr);
}
+/*
+ * call-seq: DL.realloc(addr, size)
+ *
+ * Change the size of the memory allocated at the memory location +addr+ to
+ * +size+ bytes. Returns the memory address of the reallocated memory, which
+ * may be different than the address passed in.
+ */
VALUE
rb_dl_realloc(VALUE self, VALUE addr, VALUE size)
{
@@ -37,6 +56,11 @@ rb_dl_realloc(VALUE self, VALUE addr, VALUE size)
return PTR2NUM(ptr);
}
+/*
+ * call-seq: DL.free(addr)
+ *
+ * Free the memory at address +addr+
+ */
VALUE
rb_dl_free(VALUE self, VALUE addr)
{
@@ -83,51 +107,268 @@ Init_dl(void)
rbdl_id_cdecl = rb_intern_const("cdecl");
rbdl_id_stdcall = rb_intern_const("stdcall");
+ /* Document-module: DL
+ *
+ * A bridge to the dlopen() or dynamic library linker function.
+ *
+ * == Example
+ *
+ * bash $> cat > sum.c <<EOF
+ * double sum(double *arry, int len)
+ * {
+ * double ret = 0;
+ * int i;
+ * for(i = 0; i < len; i++){
+ * ret = ret + arry[i];
+ * }
+ * return ret;
+ * }
+ *
+ * double split(double num)
+ * {
+ * double ret = 0;
+ * ret = num / 2;
+ * return ret;
+ * }
+ * EOF
+ * bash $> gcc -o libsum.so -shared sum.c
+ * bash $> cat > sum.rb <<EOF
+ * require 'dl'
+ * require 'dl/import'
+ *
+ * module LibSum
+ * extend DL::Importer
+ * dlload './libsum.so'
+ * extern 'double sum(double*, int)'
+ * extern 'double split(double)'
+ * end
+ *
+ * a = [2.0, 3.0, 4.0]
+ *
+ * sum = LibSum.sum(a.pack("d*"), a.count)
+ * p LibSum.split(sum)
+ * EOF
+ * bash $> ruby sum.rb
+ * 4.5
+ *
+ * WIN! :-)
+ */
rb_mDL = rb_define_module("DL");
+
+ /*
+ * Document-class: DL::DLError
+ *
+ * standard dynamic load exception
+ */
rb_eDLError = rb_define_class_under(rb_mDL, "DLError", rb_eStandardError);
+
+ /*
+ * Document-class: DL::DLTypeError
+ *
+ * dynamic load incorrect type exception
+ */
rb_eDLTypeError = rb_define_class_under(rb_mDL, "DLTypeError", rb_eDLError);
+ /* Document-const: MAX_CALLBACK
+ *
+ * Maximum number of callbacks
+ */
rb_define_const(rb_mDL, "MAX_CALLBACK", INT2NUM(MAX_CALLBACK));
+
+ /* Document-const: DLSTACK_SIZE
+ *
+ * Dynamic linker stack size
+ */
rb_define_const(rb_mDL, "DLSTACK_SIZE", INT2NUM(DLSTACK_SIZE));
rb_dl_init_callbacks(rb_mDL);
+ /* Document-const: RTLD_GLOBAL
+ *
+ * rtld DL::Handle flag.
+ *
+ * The symbols defined by this library will be made available for symbol
+ * resolution of subsequently loaded libraries.
+ */
rb_define_const(rb_mDL, "RTLD_GLOBAL", INT2NUM(RTLD_GLOBAL));
+
+ /* Document-const: RTLD_LAZY
+ *
+ * rtld DL::Handle flag.
+ *
+ * Perform lazy binding. Only resolve symbols as the code that references
+ * them is executed. If the symbol is never referenced, then it is never
+ * resolved. (Lazy binding is only performed for function references;
+ * references to variables are always immediately bound when the library
+ * is loaded.)
+ */
rb_define_const(rb_mDL, "RTLD_LAZY", INT2NUM(RTLD_LAZY));
+
+ /* Document-const: RTLD_NOW
+ *
+ * rtld DL::Handle flag.
+ *
+ * If this value is specified or the environment variable LD_BIND_NOW is
+ * set to a nonempty string, all undefined symbols in the library are
+ * resolved before dlopen() returns. If this cannot be done an error is
+ * returned.
+ */
rb_define_const(rb_mDL, "RTLD_NOW", INT2NUM(RTLD_NOW));
+ /* Document-const: TYPE_VOID
+ *
+ * DL::CFunc type - void
+ */
rb_define_const(rb_mDL, "TYPE_VOID", INT2NUM(DLTYPE_VOID));
+
+ /* Document-const: TYPE_VOIDP
+ *
+ * DL::CFunc type - void*
+ */
rb_define_const(rb_mDL, "TYPE_VOIDP", INT2NUM(DLTYPE_VOIDP));
+
+ /* Document-const: TYPE_CHAR
+ *
+ * DL::CFunc type - char
+ */
rb_define_const(rb_mDL, "TYPE_CHAR", INT2NUM(DLTYPE_CHAR));
+
+ /* Document-const: TYPE_SHORT
+ *
+ * DL::CFunc type - short
+ */
rb_define_const(rb_mDL, "TYPE_SHORT", INT2NUM(DLTYPE_SHORT));
+
+ /* Document-const: TYPE_INT
+ *
+ * DL::CFunc type - int
+ */
rb_define_const(rb_mDL, "TYPE_INT", INT2NUM(DLTYPE_INT));
+
+ /* Document-const: TYPE_LONG
+ *
+ * DL::CFunc type - long
+ */
rb_define_const(rb_mDL, "TYPE_LONG", INT2NUM(DLTYPE_LONG));
+
#if HAVE_LONG_LONG
+ /* Document-const: TYPE_LONG_LONG
+ *
+ * DL::CFunc type - long long
+ */
rb_define_const(rb_mDL, "TYPE_LONG_LONG", INT2NUM(DLTYPE_LONG_LONG));
#endif
+
+ /* Document-const: TYPE_FLOAT
+ *
+ * DL::CFunc type - float
+ */
rb_define_const(rb_mDL, "TYPE_FLOAT", INT2NUM(DLTYPE_FLOAT));
+
+ /* Document-const: TYPE_DOUBLE
+ *
+ * DL::CFunc type - double
+ */
rb_define_const(rb_mDL, "TYPE_DOUBLE", INT2NUM(DLTYPE_DOUBLE));
+ /* Document-const: ALIGN_VOIDP
+ *
+ * The Offset of a struct void* and a void*
+ */
rb_define_const(rb_mDL, "ALIGN_VOIDP", INT2NUM(ALIGN_VOIDP));
+
+ /* Document-const: ALIGN_CHAR
+ *
+ * The Offset of a struct char and a char
+ */
rb_define_const(rb_mDL, "ALIGN_CHAR", INT2NUM(ALIGN_CHAR));
+
+ /* Document-const: ALIGN_SHORT
+ *
+ * The Offset of a struct short and a short
+ */
rb_define_const(rb_mDL, "ALIGN_SHORT", INT2NUM(ALIGN_SHORT));
+
+ /* Document-const: ALIGN_INT
+ *
+ * The Offset of a struct int and a int
+ */
rb_define_const(rb_mDL, "ALIGN_INT", INT2NUM(ALIGN_INT));
+
+ /* Document-const: ALIGN_LONG
+ *
+ * The Offset of a struct long and a long
+ */
rb_define_const(rb_mDL, "ALIGN_LONG", INT2NUM(ALIGN_LONG));
+
#if HAVE_LONG_LONG
+ /* Document-const: ALIGN_LONG_LONG
+ *
+ * The Offset of a struct long long and a long long
+ */
rb_define_const(rb_mDL, "ALIGN_LONG_LONG", INT2NUM(ALIGN_LONG_LONG));
#endif
+
+ /* Document-const: ALIGN_FLOAT
+ *
+ * The Offset of a struct float and a float
+ */
rb_define_const(rb_mDL, "ALIGN_FLOAT", INT2NUM(ALIGN_FLOAT));
+
+ /* Document-const: ALIGN_DOUBLE
+ *
+ * The Offset of a struct double and a double
+ */
rb_define_const(rb_mDL, "ALIGN_DOUBLE",INT2NUM(ALIGN_DOUBLE));
+ /* Document-const: SIZEOF_VOIDP
+ *
+ * OS Dependent - sizeof(void*)
+ */
rb_define_const(rb_mDL, "SIZEOF_VOIDP", INT2NUM(sizeof(void*)));
+
+ /* Document-const: SIZEOF_CHAR
+ *
+ * OS Dependent - sizeof(char)
+ */
rb_define_const(rb_mDL, "SIZEOF_CHAR", INT2NUM(sizeof(char)));
+
+ /* Document-const: SIZEOF_SHORT
+ *
+ * OS Dependent - sizeof(short)
+ */
rb_define_const(rb_mDL, "SIZEOF_SHORT", INT2NUM(sizeof(short)));
+
+ /* Document-const: SIZEOF_INT
+ *
+ * OS Dependent - sizeof(int)
+ */
rb_define_const(rb_mDL, "SIZEOF_INT", INT2NUM(sizeof(int)));
+
+ /* Document-const: SIZEOF_LONG
+ *
+ * OS Dependent - sizeof(long)
+ */
rb_define_const(rb_mDL, "SIZEOF_LONG", INT2NUM(sizeof(long)));
+
#if HAVE_LONG_LONG
+ /* Document-const: SIZEOF_LONG_LONG
+ *
+ * OS Dependent - sizeof(long long)
+ */
rb_define_const(rb_mDL, "SIZEOF_LONG_LONG", INT2NUM(sizeof(LONG_LONG)));
#endif
+
+ /* Document-const: SIZEOF_FLOAT
+ *
+ * OS Dependent - sizeof(float)
+ */
rb_define_const(rb_mDL, "SIZEOF_FLOAT", INT2NUM(sizeof(float)));
+
+ /* Document-const: SIZEOF_DOUBLE
+ *
+ * OS Dependent - sizeof(double)
+ */
rb_define_const(rb_mDL, "SIZEOF_DOUBLE",INT2NUM(sizeof(double)));
rb_define_module_function(rb_mDL, "dlwrap", rb_dl_value2ptr, 1);
@@ -138,8 +379,26 @@ Init_dl(void)
rb_define_module_function(rb_mDL, "realloc", rb_dl_realloc, 2);
rb_define_module_function(rb_mDL, "free", rb_dl_free, 1);
+ /* Document-const: RUBY_FREE
+ *
+ * Address of the ruby_xfree() function
+ */
rb_define_const(rb_mDL, "RUBY_FREE", PTR2NUM(ruby_xfree));
+
+ /* Document-const: BUILD_RUBY_PLATFORM
+ *
+ * Platform built against (i.e. "x86_64-linux", etc.)
+ *
+ * See also RUBY_PLATFORM
+ */
rb_define_const(rb_mDL, "BUILD_RUBY_PLATFORM", rb_str_new2(RUBY_PLATFORM));
+
+ /* Document-const: BUILD_RUBY_VERSION
+ *
+ * Ruby Version built. (i.e. "1.9.3")
+ *
+ * See also RUBY_VERSION
+ */
rb_define_const(rb_mDL, "BUILD_RUBY_VERSION", rb_str_new2(RUBY_VERSION));
Init_dlhandle();
diff --git a/ext/dl/dl.h b/ext/dl/dl.h
index d06cad4e6b..90e2131ee2 100644
--- a/ext/dl/dl.h
+++ b/ext/dl/dl.h
@@ -20,11 +20,11 @@
#define RTLD_NOW 0
#endif
#else
-# if defined(HAVE_WINDOWS_H)
+# if defined(_WIN32)
# include <windows.h>
# define dlopen(name,flag) ((void*)LoadLibrary(name))
# define dlerror() strerror(rb_w32_map_errno(GetLastError()))
-# define dlsym(handle,name) ((void*)GetProcAddress(handle,name))
+# define dlsym(handle,name) ((void*)GetProcAddress((handle),(name)))
# define RTLD_LAZY -1
# define RTLD_NOW -1
# define RTLD_GLOBAL -1
@@ -32,7 +32,7 @@
#endif
#define MAX_CALLBACK 5
-#define DLSTACK_TYPE long
+#define DLSTACK_TYPE SIGNED_VALUE
#define DLSTACK_SIZE (20)
#define DLSTACK_PROTO \
DLSTACK_TYPE,DLSTACK_TYPE,DLSTACK_TYPE,DLSTACK_TYPE,DLSTACK_TYPE,\
@@ -40,10 +40,10 @@
DLSTACK_TYPE,DLSTACK_TYPE,DLSTACK_TYPE,DLSTACK_TYPE,DLSTACK_TYPE,\
DLSTACK_TYPE,DLSTACK_TYPE,DLSTACK_TYPE,DLSTACK_TYPE,DLSTACK_TYPE
#define DLSTACK_ARGS(stack) \
- stack[0],stack[1],stack[2],stack[3],stack[4],\
- stack[5],stack[6],stack[7],stack[8],stack[9],\
- stack[10],stack[11],stack[12],stack[13],stack[14],\
- stack[15],stack[16],stack[17],stack[18],stack[19]
+ (stack)[0],(stack)[1],(stack)[2],(stack)[3],(stack)[4],\
+ (stack)[5],(stack)[6],(stack)[7],(stack)[8],(stack)[9],\
+ (stack)[10],(stack)[11],(stack)[12],(stack)[13],(stack)[14],\
+ (stack)[15],(stack)[16],(stack)[17],(stack)[18],(stack)[19]
#define DLSTACK_PROTO0_ void
#define DLSTACK_PROTO1_ DLSTACK_TYPE
@@ -107,26 +107,26 @@
#define DLSTACK_PROTO20 DLSTACK_PROTO20_, ...
#define DLSTACK_ARGS0(stack)
-#define DLSTACK_ARGS1(stack) stack[0]
-#define DLSTACK_ARGS2(stack) DLSTACK_ARGS1(stack), stack[1]
-#define DLSTACK_ARGS3(stack) DLSTACK_ARGS2(stack), stack[2]
-#define DLSTACK_ARGS4(stack) DLSTACK_ARGS3(stack), stack[3]
-#define DLSTACK_ARGS5(stack) DLSTACK_ARGS4(stack), stack[4]
-#define DLSTACK_ARGS6(stack) DLSTACK_ARGS5(stack), stack[5]
-#define DLSTACK_ARGS7(stack) DLSTACK_ARGS6(stack), stack[6]
-#define DLSTACK_ARGS8(stack) DLSTACK_ARGS7(stack), stack[7]
-#define DLSTACK_ARGS9(stack) DLSTACK_ARGS8(stack), stack[8]
-#define DLSTACK_ARGS10(stack) DLSTACK_ARGS9(stack), stack[9]
-#define DLSTACK_ARGS11(stack) DLSTACK_ARGS10(stack), stack[10]
-#define DLSTACK_ARGS12(stack) DLSTACK_ARGS11(stack), stack[11]
-#define DLSTACK_ARGS13(stack) DLSTACK_ARGS12(stack), stack[12]
-#define DLSTACK_ARGS14(stack) DLSTACK_ARGS13(stack), stack[13]
-#define DLSTACK_ARGS15(stack) DLSTACK_ARGS14(stack), stack[14]
-#define DLSTACK_ARGS16(stack) DLSTACK_ARGS15(stack), stack[15]
-#define DLSTACK_ARGS17(stack) DLSTACK_ARGS16(stack), stack[16]
-#define DLSTACK_ARGS18(stack) DLSTACK_ARGS17(stack), stack[17]
-#define DLSTACK_ARGS19(stack) DLSTACK_ARGS18(stack), stack[18]
-#define DLSTACK_ARGS20(stack) DLSTACK_ARGS19(stack), stack[19]
+#define DLSTACK_ARGS1(stack) (stack)[0]
+#define DLSTACK_ARGS2(stack) DLSTACK_ARGS1(stack), (stack)[1]
+#define DLSTACK_ARGS3(stack) DLSTACK_ARGS2(stack), (stack)[2]
+#define DLSTACK_ARGS4(stack) DLSTACK_ARGS3(stack), (stack)[3]
+#define DLSTACK_ARGS5(stack) DLSTACK_ARGS4(stack), (stack)[4]
+#define DLSTACK_ARGS6(stack) DLSTACK_ARGS5(stack), (stack)[5]
+#define DLSTACK_ARGS7(stack) DLSTACK_ARGS6(stack), (stack)[6]
+#define DLSTACK_ARGS8(stack) DLSTACK_ARGS7(stack), (stack)[7]
+#define DLSTACK_ARGS9(stack) DLSTACK_ARGS8(stack), (stack)[8]
+#define DLSTACK_ARGS10(stack) DLSTACK_ARGS9(stack), (stack)[9]
+#define DLSTACK_ARGS11(stack) DLSTACK_ARGS10(stack), (stack)[10]
+#define DLSTACK_ARGS12(stack) DLSTACK_ARGS11(stack), (stack)[11]
+#define DLSTACK_ARGS13(stack) DLSTACK_ARGS12(stack), (stack)[12]
+#define DLSTACK_ARGS14(stack) DLSTACK_ARGS13(stack), (stack)[13]
+#define DLSTACK_ARGS15(stack) DLSTACK_ARGS14(stack), (stack)[14]
+#define DLSTACK_ARGS16(stack) DLSTACK_ARGS15(stack), (stack)[15]
+#define DLSTACK_ARGS17(stack) DLSTACK_ARGS16(stack), (stack)[16]
+#define DLSTACK_ARGS18(stack) DLSTACK_ARGS17(stack), (stack)[17]
+#define DLSTACK_ARGS19(stack) DLSTACK_ARGS18(stack), (stack)[18]
+#define DLSTACK_ARGS20(stack) DLSTACK_ARGS19(stack), (stack)[19]
extern VALUE rb_mDL;
extern VALUE rb_cDLHandle;
@@ -156,7 +156,7 @@ typedef struct { char c; LONG_LONG x; } s_long_long;
#define ALIGN_DOUBLE (sizeof(s_double) - sizeof(double))
#define DLALIGN(ptr,offset,align) {\
- while( (((unsigned long)((char *)ptr + offset)) % align) != 0 ) offset++;\
+ while( (((unsigned long)((char *)(ptr) + (offset))) % (align)) != 0 ) (offset)++;\
}
@@ -182,8 +182,8 @@ typedef struct { char c; LONG_LONG x; } s_long_long;
# define NUM2PTR(x) ((void*)(NUM2ULL(x)))
#endif
-#define BOOL2INT(x) ((x == Qtrue)?1:0)
-#define INT2BOOL(x) (x?Qtrue:Qfalse)
+#define BOOL2INT(x) (((x) == Qtrue)?1:0)
+#define INT2BOOL(x) ((x)?Qtrue:Qfalse)
typedef void (*freefunc_t)(void*);
@@ -199,6 +199,7 @@ struct cfunc_data {
char *name;
int type;
ID calltype;
+ VALUE wrap;
};
extern ID rbdl_id_cdecl;
extern ID rbdl_id_stdcall;
@@ -209,6 +210,7 @@ struct ptr_data {
void *ptr;
long size;
freefunc_t free;
+ VALUE wrap[2];
};
#define RDL_HANDLE(obj) ((struct dl_handle *)(DATA_PTR(obj)))
diff --git a/ext/dl/extconf.rb b/ext/dl/extconf.rb
index 36babf4143..8317ac35ad 100644
--- a/ext/dl/extconf.rb
+++ b/ext/dl/extconf.rb
@@ -1,6 +1,6 @@
require 'mkmf'
-if( RbConfig::CONFIG['CC'] =~ /gcc/ )
+if RbConfig::CONFIG['GCC'] == 'yes'
$CFLAGS << " -fno-defer-pop -fno-omit-frame-pointer"
end
diff --git a/ext/dl/handle.c b/ext/dl/handle.c
index ef02124e6f..2037ab5760 100644
--- a/ext/dl/handle.c
+++ b/ext/dl/handle.c
@@ -7,7 +7,7 @@
VALUE rb_cDLHandle;
-#ifdef HAVE_WINDOWS_H
+#ifdef _WIN32
# ifndef _WIN32_WCE
static void *
w32_coredll(void)
@@ -31,22 +31,53 @@ w32_dlclose(void *ptr)
#define dlclose(ptr) w32_dlclose(ptr)
#endif
-void
-dlhandle_free(struct dl_handle *dlhandle)
+static void
+dlhandle_free(void *ptr)
{
+ struct dl_handle *dlhandle = ptr;
if( dlhandle->ptr && dlhandle->open && dlhandle->enable_close ){
dlclose(dlhandle->ptr);
}
}
+static size_t
+dlhandle_memsize(const void *ptr)
+{
+ return ptr ? sizeof(struct dl_handle) : 0;
+}
+
+static const rb_data_type_t dlhandle_data_type = {
+ "dl/handle",
+ {0, dlhandle_free, dlhandle_memsize,},
+};
+
+/*
+ * call-seq: close
+ *
+ * Close this DL::Handle. Calling close more than once will raise a
+ * DL::DLError exception.
+ */
VALUE
rb_dlhandle_close(VALUE self)
{
struct dl_handle *dlhandle;
- Data_Get_Struct(self, struct dl_handle, dlhandle);
- dlhandle->open = 0;
- return INT2NUM(dlclose(dlhandle->ptr));
+ TypedData_Get_Struct(self, struct dl_handle, &dlhandle_data_type, dlhandle);
+ if(dlhandle->open) {
+ int ret = dlclose(dlhandle->ptr);
+ dlhandle->open = 0;
+
+ /* Check dlclose for successful return value */
+ if(ret) {
+#if defined(HAVE_DLERROR)
+ rb_raise(rb_eDLError, "%s", dlerror());
+#else
+ rb_raise(rb_eDLError, "could not close handle");
+#endif
+ }
+ return INT2NUM(ret);
+ }
+ rb_raise(rb_eDLError, "dlclose() called too many times");
}
VALUE
@@ -55,8 +86,7 @@ rb_dlhandle_s_allocate(VALUE klass)
VALUE obj;
struct dl_handle *dlhandle;
- obj = Data_Make_Struct(rb_cDLHandle, struct dl_handle, 0,
- dlhandle_free, dlhandle);
+ obj = TypedData_Make_Struct(rb_cDLHandle, struct dl_handle, &dlhandle_data_type, dlhandle);
dlhandle->ptr = 0;
dlhandle->open = 0;
dlhandle->enable_close = 0;
@@ -64,6 +94,25 @@ rb_dlhandle_s_allocate(VALUE klass)
return obj;
}
+static VALUE
+predefined_dlhandle(void *handle)
+{
+ VALUE obj = rb_dlhandle_s_allocate(rb_cDLHandle);
+ struct dl_handle *dlhandle = DATA_PTR(obj);
+
+ dlhandle->ptr = handle;
+ dlhandle->open = 1;
+ OBJ_FREEZE(obj);
+ return obj;
+}
+
+/*
+ * call-seq:
+ * initialize(lib = nil, flags = DL::RTLD_LAZY | DL::RTLD_GLOBAL)
+ *
+ * Create a new handler that opens library named +lib+ with +flags+. If no
+ * library is specified, RTLD_DEFAULT is used.
+ */
VALUE
rb_dlhandle_initialize(int argc, VALUE argv[], VALUE self)
{
@@ -91,7 +140,9 @@ rb_dlhandle_initialize(int argc, VALUE argv[], VALUE self)
rb_bug("rb_dlhandle_new");
}
-#if defined(HAVE_WINDOWS_H)
+ rb_secure(2);
+
+#if defined(_WIN32)
if( !clib ){
HANDLE rb_libruby_handle(void);
ptr = rb_libruby_handle();
@@ -121,7 +172,7 @@ rb_dlhandle_initialize(int argc, VALUE argv[], VALUE self)
rb_raise(rb_eDLError, "%s", err);
}
#endif
- Data_Get_Struct(self, struct dl_handle, dlhandle);
+ TypedData_Get_Struct(self, struct dl_handle, &dlhandle_data_type, dlhandle);
if( dlhandle->ptr && dlhandle->open && dlhandle->enable_close ){
dlclose(dlhandle->ptr);
}
@@ -136,65 +187,133 @@ rb_dlhandle_initialize(int argc, VALUE argv[], VALUE self)
return Qnil;
}
+/*
+ * call-seq: enable_close
+ *
+ * Enable a call to dlclose() when this DL::Handle is garbage collected.
+ */
VALUE
rb_dlhandle_enable_close(VALUE self)
{
struct dl_handle *dlhandle;
- Data_Get_Struct(self, struct dl_handle, dlhandle);
+ TypedData_Get_Struct(self, struct dl_handle, &dlhandle_data_type, dlhandle);
dlhandle->enable_close = 1;
return Qnil;
}
+/*
+ * call-seq: disable_close
+ *
+ * Disable a call to dlclose() when this DL::Handle is garbage collected.
+ */
VALUE
rb_dlhandle_disable_close(VALUE self)
{
struct dl_handle *dlhandle;
- Data_Get_Struct(self, struct dl_handle, dlhandle);
+ TypedData_Get_Struct(self, struct dl_handle, &dlhandle_data_type, dlhandle);
dlhandle->enable_close = 0;
return Qnil;
}
+/*
+ * call-seq: close_enabled?
+ *
+ * Returns +true+ if dlclose() will be called when this DL::Handle is
+ * garbage collected.
+ */
+static VALUE
+rb_dlhandle_close_enabled_p(VALUE self)
+{
+ struct dl_handle *dlhandle;
+
+ TypedData_Get_Struct(self, struct dl_handle, &dlhandle_data_type, dlhandle);
+
+ if(dlhandle->enable_close) return Qtrue;
+ return Qfalse;
+}
+
+/*
+ * call-seq: to_i
+ *
+ * Returns the memory address for this handle.
+ */
VALUE
rb_dlhandle_to_i(VALUE self)
{
struct dl_handle *dlhandle;
- Data_Get_Struct(self, struct dl_handle, dlhandle);
+ TypedData_Get_Struct(self, struct dl_handle, &dlhandle_data_type, dlhandle);
return PTR2NUM(dlhandle);
}
+static VALUE dlhandle_sym(void *handle, const char *symbol);
+
+/*
+ * Document-method: sym
+ * Document-method: []
+ *
+ * call-seq: sym(name)
+ *
+ * Get the address as an Integer for the function named +name+.
+ */
VALUE
rb_dlhandle_sym(VALUE self, VALUE sym)
{
- void (*func)();
struct dl_handle *dlhandle;
- void *handle;
- const char *name;
+
+ TypedData_Get_Struct(self, struct dl_handle, &dlhandle_data_type, dlhandle);
+ if( ! dlhandle->open ){
+ rb_raise(rb_eDLError, "closed handle");
+ }
+
+ return dlhandle_sym(dlhandle->ptr, StringValueCStr(sym));
+}
+
+#ifndef RTLD_NEXT
+#define RTLD_NEXT NULL
+#endif
+#ifndef RTLD_DEFAULT
+#define RTLD_DEFAULT NULL
+#endif
+
+/*
+ * Document-method: sym
+ * Document-method: []
+ *
+ * call-seq: sym(name)
+ *
+ * Get the address as an Integer for the function named +name+. The function
+ * is searched via dlsym on RTLD_NEXT. See man(3) dlsym() for more info.
+ */
+VALUE
+rb_dlhandle_s_sym(VALUE self, VALUE sym)
+{
+ return dlhandle_sym(RTLD_NEXT, StringValueCStr(sym));
+}
+
+static VALUE
+dlhandle_sym(void *handle, const char *name)
+{
#if defined(HAVE_DLERROR)
const char *err;
# define CHECK_DLERROR if( err = dlerror() ){ func = 0; }
#else
# define CHECK_DLERROR
#endif
+ void (*func)();
rb_secure(2);
-
- name = StringValuePtr(sym);
-
- Data_Get_Struct(self, struct dl_handle, dlhandle);
- if( ! dlhandle->open ){
- rb_raise(rb_eDLError, "closed handle");
- }
- handle = dlhandle->ptr;
-
- func = dlsym(handle, name);
+#ifdef HAVE_DLERROR
+ dlerror();
+#endif
+ func = (void (*)())(VALUE)dlsym(handle, name);
CHECK_DLERROR;
#if defined(FUNC_STDCALL)
if( !func ){
int i;
- int len = strlen(name);
+ int len = (int)strlen(name);
char *name_n;
#if defined(__CYGWIN__) || defined(_WIN32) || defined(__MINGW32__)
{
@@ -242,8 +361,60 @@ rb_dlhandle_sym(VALUE self, VALUE sym)
void
Init_dlhandle(void)
{
+ /*
+ * Document-class: DL::Handle
+ *
+ * The DL::Handle is the manner to access the dynamic library
+ *
+ * == Example
+ *
+ * === Setup
+ *
+ * libc_so = "/lib64/libc.so.6"
+ * => "/lib64/libc.so.6"
+ * @handle = DL::Handle.new(libc_so)
+ * => #<DL::Handle:0x00000000d69ef8>
+ *
+ * === Setup, with flags
+ *
+ * libc_so = "/lib64/libc.so.6"
+ * => "/lib64/libc.so.6"
+ * @handle = DL::Handle.new(libc_so, DL::RTLD_LAZY | DL::RTLD_GLOBAL)
+ * => #<DL::Handle:0x00000000d69ef8>
+ *
+ * === Addresses to symbols
+ *
+ * strcpy_addr = @handle['strcpy']
+ * => 140062278451968
+ *
+ * or
+ *
+ * strcpy_addr = @handle.sym('strcpy')
+ * => 140062278451968
+ *
+ */
rb_cDLHandle = rb_define_class_under(rb_mDL, "Handle", rb_cObject);
rb_define_alloc_func(rb_cDLHandle, rb_dlhandle_s_allocate);
+ rb_define_singleton_method(rb_cDLHandle, "sym", rb_dlhandle_s_sym, 1);
+ rb_define_singleton_method(rb_cDLHandle, "[]", rb_dlhandle_s_sym, 1);
+
+ /* Document-const: NEXT
+ *
+ * A predefined pseudo-handle of RTLD_NEXT
+ *
+ * Which will find the next occurrence of a function in the search order
+ * after the current library.
+ */
+ rb_define_const(rb_cDLHandle, "NEXT", predefined_dlhandle(RTLD_NEXT));
+
+ /* Document-const: DEFAULT
+ *
+ * A predefined pseudo-handle of RTLD_DEFAULT
+ *
+ * Which will find the first occurrence of the desired symbol using the
+ * default library search order
+ */
+ rb_define_const(rb_cDLHandle, "DEFAULT", predefined_dlhandle(RTLD_DEFAULT));
rb_define_method(rb_cDLHandle, "initialize", rb_dlhandle_initialize, -1);
rb_define_method(rb_cDLHandle, "to_i", rb_dlhandle_to_i, 0);
rb_define_method(rb_cDLHandle, "close", rb_dlhandle_close, 0);
@@ -251,4 +422,7 @@ Init_dlhandle(void)
rb_define_method(rb_cDLHandle, "[]", rb_dlhandle_sym, 1);
rb_define_method(rb_cDLHandle, "disable_close", rb_dlhandle_disable_close, 0);
rb_define_method(rb_cDLHandle, "enable_close", rb_dlhandle_enable_close, 0);
+ rb_define_method(rb_cDLHandle, "close_enabled?", rb_dlhandle_close_enabled_p, 0);
}
+
+/* mode: c; tab-with=8; sw=4; ts=8; noexpandtab: */
diff --git a/ext/dl/lib/dl.rb b/ext/dl/lib/dl.rb
new file mode 100644
index 0000000000..80d46b685a
--- /dev/null
+++ b/ext/dl/lib/dl.rb
@@ -0,0 +1,12 @@
+require 'dl.so'
+
+begin
+ require 'fiddle' unless Object.const_defined?(:Fiddle)
+rescue LoadError
+end
+
+module DL
+ def self.fiddle?
+ Object.const_defined?(:Fiddle)
+ end
+end
diff --git a/ext/dl/lib/dl/callback.rb b/ext/dl/lib/dl/callback.rb
index c8daaf6322..1722d3c6b9 100644
--- a/ext/dl/lib/dl/callback.rb
+++ b/ext/dl/lib/dl/callback.rb
@@ -2,24 +2,56 @@ require 'dl'
require 'thread'
module DL
- SEM = Mutex.new
+ # The mutual exclusion (Mutex) semaphore for the DL module
+ SEM = Mutex.new # :nodoc:
- def set_callback_internal(proc_entry, addr_entry, argc, ty, &cbp)
+ if DL.fiddle?
+ # A Hash of callback Procs
+ #
+ # Uses Fiddle
+ CdeclCallbackProcs = {} # :nodoc:
+
+ # A Hash of the addresses of callback Proc
+ #
+ # Uses Fiddle
+ CdeclCallbackAddrs = {} # :nodoc:
+
+ # A Hash of Stdcall callback Procs
+ #
+ # Uses Fiddle on win32
+ StdcallCallbackProcs = {} # :nodoc:
+
+ # A Hash of the addresses of Stdcall callback Procs
+ #
+ # Uses Fiddle on win32
+ StdcallCallbackAddrs = {} # :nodoc:
+ end
+
+ def set_callback_internal(proc_entry, addr_entry, argc, ty, abi = nil, &cbp)
if( argc < 0 )
raise(ArgumentError, "arity should not be less than 0.")
end
addr = nil
- SEM.synchronize{
- ary = proc_entry[ty]
- (0...MAX_CALLBACK).each{|n|
- idx = (n * DLSTACK_SIZE) + argc
- if( ary[idx].nil? )
- ary[idx] = cbp
- addr = addr_entry[ty][idx]
- break
- end
+
+ if DL.fiddle?
+ abi ||= Fiddle::Function::DEFAULT
+ closure = Fiddle::Closure::BlockCaller.new(ty, [TYPE_VOIDP] * argc, abi, &cbp)
+ proc_entry[closure.to_i] = closure
+ addr = closure.to_i
+ else
+ SEM.synchronize{
+ ary = proc_entry[ty]
+ (0...MAX_CALLBACK).each{|n|
+ idx = (n * DLSTACK_SIZE) + argc
+ if( ary[idx].nil? )
+ ary[idx] = cbp
+ addr = addr_entry[ty][idx]
+ break
+ end
+ }
}
- }
+ end
+
addr
end
@@ -28,31 +60,42 @@ module DL
end
def set_stdcall_callback(ty, argc, &cbp)
- set_callback_internal(StdcallCallbackProcs, StdcallCallbackAddrs, argc, ty, &cbp)
+ if DL.fiddle?
+ set_callback_internal(StdcallCallbackProcs, StdcallCallbackAddrs, argc, ty, Fiddle::Function::STDCALL, &cbp)
+ else
+ set_callback_internal(StdcallCallbackProcs, StdcallCallbackAddrs, argc, ty, &cbp)
+ end
end
def remove_callback_internal(proc_entry, addr_entry, addr, ctype = nil)
- index = nil
- if( ctype )
- addr_entry[ctype].each_with_index{|xaddr, idx|
- if( xaddr == addr )
- index = idx
- end
- }
+ if DL.fiddle?
+ addr = addr.to_i
+ return false unless proc_entry.key?(addr)
+ proc_entry.delete(addr)
+ true
else
- addr_entry.each{|ty,entry|
- entry.each_with_index{|xaddr, idx|
+ index = nil
+ if( ctype )
+ addr_entry[ctype].each_with_index{|xaddr, idx|
if( xaddr == addr )
index = idx
end
}
- }
- end
- if( index and proc_entry[ctype][index] )
- proc_entry[ctype][index] = nil
- return true
- else
- return false
+ else
+ addr_entry.each{|ty,entry|
+ entry.each_with_index{|xaddr, idx|
+ if( xaddr == addr )
+ index = idx
+ end
+ }
+ }
+ end
+ if( index and proc_entry[ctype][index] )
+ proc_entry[ctype][index] = nil
+ return true
+ else
+ return false
+ end
end
end
diff --git a/ext/dl/lib/dl/cparser.rb b/ext/dl/lib/dl/cparser.rb
index d763f07a1d..210f953471 100644
--- a/ext/dl/lib/dl/cparser.rb
+++ b/ext/dl/lib/dl/cparser.rb
@@ -2,7 +2,7 @@ module DL
module CParser
def parse_struct_signature(signature, tymap=nil)
if( signature.is_a?(String) )
- signature = signature.split("\s*,\s*")
+ signature = signature.split(/\s*,\s*/)
end
mems = []
tys = []
@@ -39,7 +39,7 @@ module DL
tymap ||= {}
signature = signature.gsub(/\s+/, " ").strip
case signature
- when /^([\d\w@\*_\s]+)\(([\d\w\*_\s\,\[\]]*)\)$/
+ when /^([\w@\*\s]+)\(([\w\*\s\,\[\]]*)\)$/
ret = $1
(args = $2).strip!
ret = ret.split(/\s+/)
@@ -73,7 +73,7 @@ module DL
return -TYPE_SHORT
when "int"
return TYPE_INT
- when "unsigned int"
+ when "unsigned int", 'uint'
return -TYPE_INT
when "long"
return TYPE_LONG
diff --git a/ext/dl/lib/dl/func.rb b/ext/dl/lib/dl/func.rb
index 7a8b62e325..3c2245f413 100644
--- a/ext/dl/lib/dl/func.rb
+++ b/ext/dl/lib/dl/func.rb
@@ -5,21 +5,37 @@ require 'dl/value'
require 'thread'
module DL
- class Function
+ parent = DL.fiddle? ? Fiddle::Function : Object
+
+ class Function < parent
include DL
include ValueUtil
- def initialize(cfunc, argtypes, &proc)
- @cfunc = cfunc
- @stack = Stack.new(argtypes.collect{|ty| ty.abs})
- if( @cfunc.ctype < 0 )
- @cfunc.ctype = @cfunc.ctype.abs
- @unsigned = true
+ def initialize cfunc, argtypes, abi = nil, &block
+ if DL.fiddle?
+ abi ||= Fiddle::Function::DEFAULT
+ if block_given?
+ @cfunc = Class.new(Fiddle::Closure) {
+ define_method(:call, block)
+ }.new(cfunc.ctype, argtypes)
+ else
+ @cfunc = cfunc
+ end
+
+ @args = argtypes
+ super(@cfunc, @args.reject { |x| x == TYPE_VOID }, cfunc.ctype, abi)
else
- @unsigned = false
- end
- if( proc )
- bind(&proc)
+ @cfunc = cfunc
+ @stack = Stack.new(argtypes.collect{|ty| ty.abs})
+ if( @cfunc.ctype < 0 )
+ @cfunc.ctype = @cfunc.ctype.abs
+ @unsigned = true
+ else
+ @unsigned = false
+ end
+ if block_given?
+ bind(&block)
+ end
end
end
@@ -32,11 +48,18 @@ module DL
end
def call(*args, &block)
- funcs = []
- args = wrap_args(args, @stack.types, funcs, &block)
- r = @cfunc.call(@stack.pack(args))
- funcs.each{|f| f.unbind_at_call()}
- return wrap_result(r)
+ if DL.fiddle?
+ if block_given?
+ args.find { |a| DL::Function === a }.bind_at_call(&block)
+ end
+ super
+ else
+ funcs = []
+ _args = wrap_args(args, @stack.types, funcs, &block)
+ r = @cfunc.call(@stack.pack(_args))
+ funcs.each{|f| f.unbind_at_call()}
+ return wrap_result(r)
+ end
end
def wrap_result(r)
@@ -52,31 +75,44 @@ module DL
end
def bind(&block)
- if( !block )
- raise(RuntimeError, "block must be given.")
- end
- if( @cfunc.ptr == 0 )
- cb = Proc.new{|*args|
- ary = @stack.unpack(args)
- @stack.types.each_with_index{|ty, idx|
- case ty
- when TYPE_VOIDP
- ary[idx] = CPtr.new(ary[idx])
- end
- }
- r = block.call(*ary)
- wrap_arg(r, @cfunc.ctype, [])
- }
- case @cfunc.calltype
- when :cdecl
- @cfunc.ptr = set_cdecl_callback(@cfunc.ctype, @stack.size, &cb)
- when :stdcall
- @cfunc.ptr = set_stdcall_callback(@cfunc.ctype, @stack.size, &cb)
- else
- raise(RuntimeError, "unsupported calltype: #{@cfunc.calltype}")
+ if DL.fiddle?
+ @cfunc = Class.new(Fiddle::Closure) {
+ def initialize ctype, args, block
+ super(ctype, args)
+ @block = block
+ end
+
+ def call *args
+ @block.call(*args)
+ end
+ }.new(@cfunc.ctype, @args, block)
+ else
+ if( !block )
+ raise(RuntimeError, "block must be given.")
end
if( @cfunc.ptr == 0 )
- raise(RuntimeException, "can't bind C function.")
+ cb = Proc.new{|*args|
+ ary = @stack.unpack(args)
+ @stack.types.each_with_index{|ty, idx|
+ case ty
+ when TYPE_VOIDP
+ ary[idx] = CPtr.new(ary[idx])
+ end
+ }
+ r = block.call(*ary)
+ wrap_arg(r, @cfunc.ctype, [])
+ }
+ case @cfunc.calltype
+ when :cdecl
+ @cfunc.ptr = set_cdecl_callback(@cfunc.ctype, @stack.size, &cb)
+ when :stdcall
+ @cfunc.ptr = set_stdcall_callback(@cfunc.ctype, @stack.size, &cb)
+ else
+ raise(RuntimeError, "unsupported calltype: #{@cfunc.calltype}")
+ end
+ if( @cfunc.ptr == 0 )
+ raise(RuntimeException, "can't bind C function.")
+ end
end
end
end
diff --git a/ext/dl/lib/dl/import.rb b/ext/dl/lib/dl/import.rb
index 199354c18e..eec65cdfd6 100644
--- a/ext/dl/lib/dl/import.rb
+++ b/ext/dl/lib/dl/import.rb
@@ -31,6 +31,22 @@ module DL
end
end
+ # DL::Importer includes the means to dynamically load libraries and build
+ # modules around them including calling extern functions within the C
+ # library that has been loaded.
+ #
+ # == Example
+ #
+ # require 'dl'
+ # require 'dl/import'
+ #
+ # module LibSum
+ # extend DL::Importer
+ # dlload './libsum.so'
+ # extern 'double sum(double*, int)'
+ # extern 'double split(double)'
+ # end
+ #
module Importer
include DL
include CParser
@@ -96,7 +112,6 @@ module DL
def parse_bind_options(opts)
h = {}
- prekey = nil
while( opt = opts.shift() )
case opt
when :stdcall, :cdecl
@@ -194,8 +209,12 @@ module DL
return ptr
end
+ def handler
+ @handler or raise "call dlload before importing symbols and functions"
+ end
+
def import_symbol(name)
- addr = @handler.sym(name)
+ addr = handler.sym(name)
if( !addr )
raise(DLError, "cannot find the symbol: #{name}")
end
@@ -203,7 +222,7 @@ module DL
end
def import_function(name, ctype, argtype, call_type = nil)
- addr = @handler.sym(name)
+ addr = handler.sym(name)
if( !addr )
raise(DLError, "cannot find the function: #{name}()")
end
@@ -211,9 +230,17 @@ module DL
end
def bind_function(name, ctype, argtype, call_type = nil, &block)
- f = Function.new(CFunc.new(0, ctype, name, call_type || :cdecl), argtype)
- f.bind(&block)
- f
+ if DL.fiddle?
+ closure = Class.new(Fiddle::Closure) {
+ define_method(:call, block)
+ }.new(ctype, argtype)
+
+ Function.new(closure, argtype)
+ else
+ f = Function.new(CFunc.new(0, ctype, name, call_type || :cdecl), argtype)
+ f.bind(&block)
+ f
+ end
end
def create_temp_function(name, ctype, argtype, call_type = nil)
diff --git a/ext/dl/lib/dl/pack.rb b/ext/dl/lib/dl/pack.rb
index d760edaab5..7fbc802b0f 100644
--- a/ext/dl/lib/dl/pack.rb
+++ b/ext/dl/lib/dl/pack.rb
@@ -79,7 +79,7 @@ module DL
case SIZEOF_VOIDP
when SIZEOF_LONG
ary.pack(@template)
- when SIZEOF_LONG
+ when SIZEOF_LONG_LONG
ary.pack(@template)
else
raise(RuntimeError, "sizeof(void*)?")
diff --git a/ext/dl/lib/dl/struct.rb b/ext/dl/lib/dl/struct.rb
index dc116f3be5..b8becca6b6 100644
--- a/ext/dl/lib/dl/struct.rb
+++ b/ext/dl/lib/dl/struct.rb
@@ -98,7 +98,6 @@ module DL
align = ALIGN_MAP[t]
end
offset = PackInfo.align(orig_offset, align)
- size = offset - orig_offset
@offset[i] = offset
if( t.is_a?(Array) )
offset += (SIZE_MAP[t[0]] * t[1])
diff --git a/ext/dl/lib/dl/types.rb b/ext/dl/lib/dl/types.rb
index b85ac890cd..3dfa40807a 100644
--- a/ext/dl/lib/dl/types.rb
+++ b/ext/dl/lib/dl/types.rb
@@ -1,9 +1,36 @@
module DL
+ # Adds Windows type aliases to the including class for use with
+ # DL::Importer.
+ #
+ # The aliases added are:
+ # * ATOM
+ # * BOOL
+ # * BYTE
+ # * DWORD
+ # * DWORD32
+ # * DWORD64
+ # * HANDLE
+ # * HDC
+ # * HINSTANCE
+ # * HWND
+ # * LPCSTR
+ # * LPSTR
+ # * PBYTE
+ # * PDWORD
+ # * PHANDLE
+ # * PVOID
+ # * PWORD
+ # * UCHAR
+ # * UINT
+ # * ULONG
+ # * WORD
module Win32Types
- def included(m)
+ def included(m) # :nodoc:
m.module_eval{
typealias "DWORD", "unsigned long"
typealias "PDWORD", "unsigned long *"
+ typealias "DWORD32", "unsigned long"
+ typealias "DWORD64", "unsigned long long"
typealias "WORD", "unsigned short"
typealias "PWORD", "unsigned short *"
typealias "BOOL", "int"
@@ -13,7 +40,11 @@ module DL
typealias "UINT", "unsigned int"
typealias "ULONG", "unsigned long"
typealias "UCHAR", "unsigned char"
- typealias "HANDLE", "unsigned long"
+ if [nil].pack('p').bytesize == 8
+ typealias "HANDLE", "unsigned long long"
+ else
+ typealias "HANDLE", "unsigned long"
+ end
typealias "PHANDLE", "void*"
typealias "PVOID", "void*"
typealias "LPCSTR", "char*"
@@ -26,8 +57,12 @@ module DL
module_function :included
end
+ # Adds basic type aliases to the including class for use with DL::Importer.
+ #
+ # The aliases added are +uint+ and +u_int+ (<tt>unsigned int</tt>) and
+ # +ulong+ and +u_long+ (<tt>unsigned long</tt>)
module BasicTypes
- def included(m)
+ def included(m) # :nodoc:
m.module_eval{
typealias "uint", "unsigned int"
typealias "u_int", "unsigned int"
diff --git a/ext/dl/lib/dl/value.rb b/ext/dl/lib/dl/value.rb
index 56dfcefa32..e99e3cf3bf 100644
--- a/ext/dl/lib/dl/value.rb
+++ b/ext/dl/lib/dl/value.rb
@@ -13,7 +13,7 @@ module DL
when TYPE_LONG
[val].pack("l!").unpack("L!")[0]
when TYPE_LONG_LONG
- [val].pack("q!").unpack("Q!")[0]
+ [val].pack("q").unpack("Q")[0]
else
val
end
@@ -30,7 +30,7 @@ module DL
when TYPE_LONG
[val].pack("L!").unpack("l!")[0]
when TYPE_LONG_LONG
- [val].pack("Q!").unpack("q!")[0]
+ [val].pack("Q").unpack("q")[0]
else
val
end
@@ -45,7 +45,7 @@ module DL
result
end
- def wrap_arg(arg, ty, funcs, &block)
+ def wrap_arg(arg, ty, funcs = [], &block)
funcs ||= []
case arg
when nil
diff --git a/ext/dl/win32/lib/win32/registry.rb b/ext/dl/win32/lib/win32/registry.rb
index a2b69a08fe..6edd85b8fb 100644
--- a/ext/dl/win32/lib/win32/registry.rb
+++ b/ext/dl/win32/lib/win32/registry.rb
@@ -1,5 +1,9 @@
-=begin
-= Win32 Registry I/F
+require 'dl/import'
+module Win32
+
+=begin rdoc
+= Win32 Registry
+
win32/registry is registry accessor library for Win32 platform.
It uses dl/import to call Win32 Registry APIs.
@@ -24,247 +28,69 @@ It uses dl/import to call Win32 Registry APIs.
== Win32::Registry class
-=== including modules
-
-* Enumerable
-* Registry::Constants
-
-=== class methods
---- Registry.open(key, subkey, desired = KEY_READ, opt = REG_OPTION_RESERVED)
---- Registry.open(key, subkey, desired = KEY_READ, opt = REG_OPTION_RESERVED) { |reg| ... }
- Open the registry key ((|subkey|)) under ((|key|)).
- ((|key|)) is Win32::Registry object of parent key.
- You can use predefined key HKEY_* (see ((<constants>)))
-
- ((|desired|)) and ((|opt|)) is access mask and key option.
- For detail, see ((<MSDN Library|URL:http://msdn.microsoft.com/library/en-us/sysinfo/base/regopenkeyex.asp>)).
-
- If block is given, the key is closed automatically.
-
---- Registry.create(key, subkey, desired = KEY_ALL_ACCESS, opt = REG_OPTION_RESERVED)
---- Registry.create(key, subkey, desired = KEY_ALL_ACCESS, opt = REG_OPTION_RESERVED) { |reg| ... }
- Create or open the registry key ((|subkey|)) under ((|key|)).
- You can use predefined key HKEY_* (see ((<constants>)))
-
- If subkey is already exists, key is opened and Registry#((<created?>))
- method will return false.
-
- If block is given, the key is closed automatically.
-
---- Registry.expand_environ(str)
- Replace (({%\w+%})) into the environment value of ((|str|)).
- This method is used for REG_EXPAND_SZ.
-
- For detail, see ((<ExpandEnvironmentStrings|URL:http://msdn.microsoft.com/library/en-us/sysinfo/base/expandenvironmentstrings.asp>)) Win32 API.
-
---- Registry.type2name(type)
- Convert registry type value to readable string.
-
---- Registry.wtime2time(wtime)
- Convert 64-bit FILETIME integer into Time object.
-
---- Registry.time2wtime(time)
- Convert Time object or Integer object into 64-bit FILETIME.
-
-=== instance methods
---- open(subkey, desired = KEY_READ, opt = REG_OPTION_RESERVED)
- Same as (({Win32::((<Registry.open>))(self, subkey, desired, opt)}))
-
---- create(subkey, desired = KEY_ALL_ACCESS, opt = REG_OPTION_RESERVED)
- Same as (({Win32::((<Registry.create>))(self, subkey, desired, opt)}))
-
---- close
- Close key.
-
- After closed, most method raises error.
-
---- read(name, *rtype)
- Read a registry value named ((|name|)) and return array of
- [ ((|type|)), ((|data|)) ].
- When name is nil, the `default' value is read.
-
- ((|type|)) is value type. (see ((<Win32::Registry::Constants module>)))
- ((|data|)) is value data, its class is:
- :REG_SZ, REG_EXPAND_SZ
- String
- :REG_MULTI_SZ
- Array of String
- :REG_DWORD, REG_DWORD_BIG_ENDIAN, REG_QWORD
- Integer
- :REG_BINARY
- String (contains binary data)
-
- When ((|rtype|)) is specified, the value type must be included by
- ((|rtype|)) array, or TypeError is raised.
-
---- self[name, *rtype]
- Read a registry value named ((|name|)) and return its value data.
- The class of value is same as ((<read>)) method returns.
-
- If the value type is REG_EXPAND_SZ, returns value data whose environment
- variables are replaced.
- If the value type is neither REG_SZ, REG_MULTI_SZ, REG_DWORD,
- REG_DWORD_BIG_ENDIAN, nor REG_QWORD, TypeError is raised.
-
- The meaning of ((|rtype|)) is same as ((<read>)) method.
-
---- read_s(name)
---- read_i(name)
---- read_bin(name)
- Read a REG_SZ(read_s), REG_DWORD(read_i), or REG_BINARY(read_bin)
- registry value named ((|name|)).
-
- If the values type does not match, TypeError is raised.
-
---- read_s_expand(name)
- Read a REG_SZ or REG_EXPAND_SZ registry value named ((|name|)).
-
- If the value type is REG_EXPAND_SZ, environment variables are replaced.
- Unless the value type is REG_SZ or REG_EXPAND_SZ, TypeError is raised.
-
---- write(name, type, data)
- Write ((|data|)) to a registry value named ((|name|)).
- When name is nil, write to the `default' value.
-
- ((|type|)) is type value. (see ((<Registry::Constants module>)))
- Class of ((|data|)) must be same as which ((<read>))
- method returns.
-
---- self[name, wtype = nil] = value
- Write ((|value|)) to a registry value named ((|name|)).
-
- If ((|wtype|)) is specified, the value type is it.
- Otherwise, the value type is depend on class of ((|value|)):
- :Integer
- REG_DWORD
- :String
- REG_SZ
- :Array
- REG_MULTI_SZ
-
---- write_s(name, value)
---- write_i(name, value)
---- write_bin(name, value)
- Write ((|value|)) to a registry value named ((|name|)).
-
- The value type is REG_SZ(write_s), REG_DWORD(write_i), or
- REG_BINARY(write_bin).
-
---- each { |name, type, value| ... }
---- each_value { |name, type, value| ... }
- Enumerate values.
-
---- each_key { |subkey, wtime| ... }
- Enumerate subkeys.
-
- ((|subkey|)) is String which contains name of subkey.
- ((|wtime|)) is last write time as FILETIME (64-bit integer).
- (see ((<Registry.wtime2time>)))
-
---- delete(name)
---- delete_value(name)
- Delete a registry value named ((|name|)).
- We can not delete the `default' value.
-
---- delete_key(name, recursive = false)
- Delete a subkey named ((|name|)) and all its values.
-
- If ((|recursive|)) is false, the subkey must not have subkeys.
- Otherwise, this method deletes all subkeys and values recursively.
-
---- flush
- Write all the attributes into the registry file.
-
---- created?
- Returns if key is created ((*newly*)).
- (see ((<Registry.create>)))
-
---- open?
- Returns if key is not closed.
-
---- hkey
- Returns key handle value.
-
---- parent
- Win32::Registry object of parent key, or nil if predefeined key.
-
---- keyname
- Same as ((|subkey|)) value of ((<Registry.open>)) or
- ((<Registry.create>)) method.
-
---- disposition
- Disposition value (REG_CREATED_NEW_KEY or REG_OPENED_EXISTING_KEY).
-
---- name
---- to_s
- Full path of key such as (({'HKEY_CURRENT_USER\SOFTWARE\foo\bar'})).
-
--- info
- Returns key information as Array of:
- :num_keys
- The number of subkeys.
- :max_key_length
- Maximum length of name of subkeys.
- :num_values
- The number of values.
- :max_value_name_length
- Maximum length of name of values.
- :max_value_length
- Maximum length of value of values.
- :descriptor_length
- Length of security descriptor.
- :wtime
- Last write time as FILETIME(64-bit integer)
-
- For detail, see ((<RegQueryInfoKey|URL:http://msdn.microsoft.com/library/en-us/sysinfo/base/regqueryinfokey.asp>)) Win32 API.
--- num_keys
+
--- max_key_length
+
--- num_values
+
--- max_value_name_length
+
--- max_value_length
+
--- descriptor_length
+
--- wtime
Returns an item of key information.
=== constants
--- HKEY_CLASSES_ROOT
---- HKEY_CURRENT_USER
---- HKEY_LOCAL_MACHINE
---- HKEY_PERFORMANCE_DATA
---- HKEY_CURRENT_CONFIG
---- HKEY_DYN_DATA
- Win32::Registry object whose key is predefined key.
- For detail, see ((<MSDN Library|URL:http://msdn.microsoft.com/library/en-us/sysinfo/base/predefined_keys.asp>)).
-== Win32::Registry::Constants module
-
-For detail, see ((<MSDN Library|URL:http://msdn.microsoft.com/library/en-us/sysinfo/base/registry.asp>)).
-
---- HKEY_*
- Predefined key ((*handle*)).
- These are Integer, not Win32::Registry.
+--- HKEY_CURRENT_USER
---- REG_*
- Registry value type.
+--- HKEY_LOCAL_MACHINE
---- KEY_*
- Security access mask.
+--- HKEY_PERFORMANCE_DATA
---- KEY_OPTIONS_*
- Key options.
+--- HKEY_CURRENT_CONFIG
---- REG_CREATED_NEW_KEY
---- REG_OPENED_EXISTING_KEY
- If the key is created newly or opened existing key.
- See also Registry#((<disposition>)) method.
+--- HKEY_DYN_DATA
-=end
+ Win32::Registry object whose key is predefined key.
+For detail, see the MSDN[http://msdn.microsoft.com/library/en-us/sysinfo/base/predefined_keys.asp] article.
-require 'dl/import'
+=end rdoc
-module Win32
class Registry
+
+ #
+ # For detail, see the MSDN[http://msdn.microsoft.com/library/en-us/sysinfo/base/registry.asp].
+ #
+ # --- HKEY_*
+ #
+ # Predefined key ((*handle*)).
+ # These are Integer, not Win32::Registry.
+ #
+ # --- REG_*
+ #
+ # Registry value type.
+ #
+ # --- KEY_*
+ #
+ # Security access mask.
+ #
+ # --- KEY_OPTIONS_*
+ #
+ # Key options.
+ #
+ # --- REG_CREATED_NEW_KEY
+ #
+ # --- REG_OPENED_EXISTING_KEY
+ #
+ # If the key is created newly or opened existing key.
+ # See also Registry#disposition method.
module Constants
HKEY_CLASSES_ROOT = 0x80000000
HKEY_CURRENT_USER = 0x80000001
@@ -365,14 +191,14 @@ module Win32
raise Error.new(5) ## ERROR_ACCESS_DENIED
end
- # Fake class for Registry#open, Registry#create
+ # Fake #class method for Registry#open, Registry#create
def class
Registry
end
# Make all
Constants.constants.grep(/^HKEY_/) do |c|
- Registry.const_set c, new(Constants.const_get(c), c)
+ Registry.const_set c, new(Constants.const_get(c), c.to_s)
end
end
@@ -384,7 +210,7 @@ module Win32
dlload "advapi32.dll"
[
"long RegOpenKeyExA(void *, void *, long, long, void *)",
- "long RegCreateKeyExA(void *, void *, long, long, long, long, void *, void *)",
+ "long RegCreateKeyExA(void *, void *, long, long, long, long, void *, void *, void *)",
"long RegEnumValueA(void *, long, void *, void *, void *, void *, void *, void *)",
"long RegEnumKeyExA(void *, long, void *, void *, void *, void *, void *, void *)",
"long RegQueryValueExA(void *, void *, void *, void *, void *, void *)",
@@ -498,7 +324,10 @@ module Win32
end
#
- # utility functions
+ # Replace %\w+% into the environment value of what is contained between the %'s
+ # This method is used for REG_EXPAND_SZ.
+ #
+ # For detail, see expandEnvironmentStrings[http://msdn.microsoft.com/library/en-us/sysinfo/base/expandenvironmentstrings.asp] \Win32 \API.
#
def self.expand_environ(str)
str.gsub(/%([^%]+)%/) { ENV[$1] || ENV[$1.upcase] || $& }
@@ -514,23 +343,43 @@ module Win32
@@type2name[Constants.const_get(type)] = type
end
+ #
+ # Convert registry type value to readable string.
+ #
def self.type2name(type)
@@type2name[type] || type.to_s
end
+ #
+ # Convert 64-bit FILETIME integer into Time object.
+ #
def self.wtime2time(wtime)
Time.at((wtime - 116444736000000000) / 10000000)
end
+ #
+ # Convert Time object or Integer object into 64-bit FILETIME.
+ #
def self.time2wtime(time)
time.to_i * 10000000 + 116444736000000000
end
#
- # constructors
+ # constructor
#
private_class_method :new
+ #
+ # --- Registry.open(key, subkey, desired = KEY_READ, opt = REG_OPTION_RESERVED)
+ #
+ # --- Registry.open(key, subkey, desired = KEY_READ, opt = REG_OPTION_RESERVED) { |reg| ... }
+ #
+ # Open the registry key subkey under key.
+ # key is Win32::Registry object of parent key.
+ # You can use predefined key HKEY_* (see Constants)
+ # desired and opt is access mask and key option.
+ # For detail, see the MSDN[http://msdn.microsoft.com/library/en-us/sysinfo/base/regopenkeyex.asp].
+ # If block is given, the key is closed automatically.
def self.open(hkey, subkey, desired = KEY_READ, opt = REG_OPTION_RESERVED)
subkey = subkey.chomp('\\')
newkey = API.OpenKey(hkey.hkey, subkey, opt, desired)
@@ -546,6 +395,19 @@ module Win32
end
end
+ #
+ # --- Registry.create(key, subkey, desired = KEY_ALL_ACCESS, opt = REG_OPTION_RESERVED)
+ #
+ # --- Registry.create(key, subkey, desired = KEY_ALL_ACCESS, opt = REG_OPTION_RESERVED) { |reg| ... }
+ #
+ # Create or open the registry key subkey under key.
+ # You can use predefined key HKEY_* (see Constants)
+ #
+ # If subkey is already exists, key is opened and Registry#created?
+ # method will return false.
+ #
+ # If block is given, the key is closed automatically.
+ #
def self.create(hkey, subkey, desired = KEY_ALL_ACCESS, opt = REG_OPTION_RESERVED)
newkey, disp = API.CreateKey(hkey.hkey, subkey, opt, desired)
obj = new(newkey, hkey, subkey, disp)
@@ -576,19 +438,37 @@ module Win32
@hkeyfinal = [ hkey ]
ObjectSpace.define_finalizer self, @@final.call(@hkeyfinal)
end
- attr_reader :hkey, :parent, :keyname, :disposition
+
+ # Returns key handle value.
+ attr_reader :hkey
+ # Win32::Registry object of parent key, or nil if predefeined key.
+ attr_reader :parent
+ # Same as subkey value of Registry.open or
+ # Registry.create method.
+ attr_reader :keyname
+ # Disposition value (REG_CREATED_NEW_KEY or REG_OPENED_EXISTING_KEY).
+ attr_reader :disposition
#
- # attributes
+ # Returns if key is created ((*newly*)).
+ # (see Registry.create) -- basically you call create
+ # then when you call created? on the instance returned
+ # it will tell if it was successful or not
#
def created?
@disposition == REG_CREATED_NEW_KEY
end
+ #
+ # Returns if key is not closed.
+ #
def open?
!@hkey.nil?
end
+ #
+ # Full path of key such as 'HKEY_CURRENT_USER\SOFTWARE\foo\bar'.
+ #
def name
parent = self
name = @keyname
@@ -603,23 +483,31 @@ module Win32
end
#
- # marshalling
+ # marshalling is not allowed
#
def _dump(depth)
raise TypeError, "can't dump Win32::Registry"
end
#
- # open/close
+ # Same as Win32::Registry.open (self, subkey, desired, opt)
#
def open(subkey, desired = KEY_READ, opt = REG_OPTION_RESERVED, &blk)
self.class.open(self, subkey, desired, opt, &blk)
end
+ #
+ # Same as Win32::Registry.create (self, subkey, desired, opt)
+ #
def create(subkey, desired = KEY_ALL_ACCESS, opt = REG_OPTION_RESERVED, &blk)
self.class.create(self, subkey, desired, opt, &blk)
end
+ #
+ # Close key.
+ #
+ # After close, most method raise an error.
+ #
def close
API.CloseKey(@hkey)
@hkey = @parent = @keyname = nil
@@ -627,7 +515,7 @@ module Win32
end
#
- # iterator
+ # Enumerate values.
#
def each_value
index = 0
@@ -649,6 +537,13 @@ module Win32
end
alias each each_value
+ #
+ # Enumerate subkeys.
+ #
+ # subkey is String which contains name of subkey.
+ # wtime is last write time as FILETIME (64-bit integer).
+ # (see Registry.wtime2time)
+ #
def each_key
index = 0
while true
@@ -663,15 +558,31 @@ module Win32
index
end
+ #
+ # return keys as an array
+ #
def keys
keys_ary = []
each_key { |key,| keys_ary << key }
keys_ary
end
- #
- # reader
- #
+ # Read a registry value named name and return array of
+ # [ type, data ].
+ # When name is nil, the `default' value is read.
+ # type is value type. (see Win32::Registry::Constants module)
+ # data is value data, its class is:
+ # :REG_SZ, REG_EXPAND_SZ
+ # String
+ # :REG_MULTI_SZ
+ # Array of String
+ # :REG_DWORD, REG_DWORD_BIG_ENDIAN, REG_QWORD
+ # Integer
+ # :REG_BINARY
+ # String (contains binary data)
+ #
+ # When rtype is specified, the value type must be included by
+ # rtype array, or TypeError is raised.
def read(name, *rtype)
type, data = API.QueryValue(@hkey, name)
unless rtype.empty? or rtype.include?(type)
@@ -695,6 +606,17 @@ module Win32
end
end
+ #
+ # Read a registry value named name and return its value data.
+ # The class of value is same as #read method returns.
+ #
+ # If the value type is REG_EXPAND_SZ, returns value data whose environment
+ # variables are replaced.
+ # If the value type is neither REG_SZ, REG_MULTI_SZ, REG_DWORD,
+ # REG_DWORD_BIG_ENDIAN, nor REG_QWORD, TypeError is raised.
+ #
+ # The meaning of rtype is same as #read method.
+ #
def [](name, *rtype)
type, data = read(name, *rtype)
case type
@@ -707,10 +629,20 @@ module Win32
end
end
+ # Read a REG_SZ(read_s), REG_DWORD(read_i), or REG_BINARY(read_bin)
+ # registry value named name.
+ #
+ # If the values type does not match, TypeError is raised.
def read_s(name)
read(name, REG_SZ)[1]
end
+ #
+ # Read a REG_SZ or REG_EXPAND_SZ registry value named name.
+ #
+ # If the value type is REG_EXPAND_SZ, environment variables are replaced.
+ # Unless the value type is REG_SZ or REG_EXPAND_SZ, TypeError is raised.
+ #
def read_s_expand(name)
type, data = read(name, REG_SZ, REG_EXPAND_SZ)
if type == REG_EXPAND_SZ
@@ -720,16 +652,33 @@ module Win32
end
end
+ #
+ # Read a REG_SZ(read_s), REG_DWORD(read_i), or REG_BINARY(read_bin)
+ # registry value named name.
+ #
+ # If the values type does not match, TypeError is raised.
+ #
def read_i(name)
read(name, REG_DWORD, REG_DWORD_BIG_ENDIAN, REG_QWORD)[1]
end
+ #
+ # Read a REG_SZ(read_s), REG_DWORD(read_i), or REG_BINARY(read_bin)
+ # registry value named name.
+ #
+ # If the values type does not match, TypeError is raised.
+ #
def read_bin(name)
read(name, REG_BINARY)[1]
end
#
- # writer
+ # Write data to a registry value named name.
+ # When name is nil, write to the `default' value.
+ #
+ # type is type value. (see Registry::Constants module)
+ # Class of data must be same as which #read
+ # method returns.
#
def write(name, type, data)
case type
@@ -751,6 +700,18 @@ module Win32
API.SetValue(@hkey, name, type, data, data.length)
end
+ #
+ # Write value to a registry value named name.
+ #
+ # If wtype is specified, the value type is it.
+ # Otherwise, the value type is depend on class of value:
+ # :Integer
+ # REG_DWORD
+ # :String
+ # REG_SZ
+ # :Array
+ # REG_MULTI_SZ
+ #
def []=(name, rtype, value = nil)
if value
write name, rtype, value
@@ -769,26 +730,51 @@ module Win32
value
end
+ #
+ # Write value to a registry value named name.
+ #
+ # The value type is REG_SZ(write_s), REG_DWORD(write_i), or
+ # REG_BINARY(write_bin).
+ #
def write_s(name, value)
write name, REG_SZ, value.to_s
end
+ #
+ # Write value to a registry value named name.
+ #
+ # The value type is REG_SZ(write_s), REG_DWORD(write_i), or
+ # REG_BINARY(write_bin).
+ #
def write_i(name, value)
write name, REG_DWORD, value.to_i
end
+ #
+ # Write value to a registry value named name.
+ #
+ # The value type is REG_SZ(write_s), REG_DWORD(write_i), or
+ # REG_BINARY(write_bin).
+ #
def write_bin(name, value)
write name, REG_BINARY, value.to_s
end
#
- # delete
+ # Delete a registry value named name.
+ # We can not delete the `default' value.
#
def delete_value(name)
API.DeleteValue(@hkey, name)
end
alias delete delete_value
+ #
+ # Delete a subkey named name and all its values.
+ #
+ # If recursive is false, the subkey must not have subkeys.
+ # Otherwise, this method deletes all subkeys and values recursively.
+ #
def delete_key(name, recursive = false)
if recursive
open(name, KEY_ALL_ACCESS) do |reg|
@@ -812,18 +798,38 @@ module Win32
end
#
- # flush
+ # Write all the attributes into the registry file.
#
def flush
API.FlushKey @hkey
end
#
- # key information
+ # Returns key information as Array of:
+ # :num_keys
+ # The number of subkeys.
+ # :max_key_length
+ # Maximum length of name of subkeys.
+ # :num_values
+ # The number of values.
+ # :max_value_name_length
+ # Maximum length of name of values.
+ # :max_value_length
+ # Maximum length of value of values.
+ # :descriptor_length
+ # Length of security descriptor.
+ # :wtime
+ # Last write time as FILETIME(64-bit integer)
+ #
+ # For detail, see RegQueryInfoKey[http://msdn.microsoft.com/library/en-us/sysinfo/base/regqueryinfokey.asp] Win32 API.
#
def info
API.QueryInfoKey(@hkey)
end
+
+ #
+ # Returns an item of key information.
+ #
%w[
num_keys max_key_length
num_values max_value_name_length max_value_length
diff --git a/ext/dl/win32/lib/win32/resolv.rb b/ext/dl/win32/lib/win32/resolv.rb
index a164fd54d2..8a65472877 100644
--- a/ext/dl/win32/lib/win32/resolv.rb
+++ b/ext/dl/win32/lib/win32/resolv.rb
@@ -73,7 +73,7 @@ if info.unpack('V5')[4] == 2 # VER_PLATFORM_WIN32_NT
unless nvdom.empty?
@search = [ nvdom ]
if reg.read_i('UseDomainNameDevolution') != 0
- if /^[\w\d]+\./ =~ nvdom
+ if /^\w+\./ =~ nvdom
devo = $'
end
end
diff --git a/ext/etc/.cvsignore b/ext/etc/.cvsignore
deleted file mode 100644
index 4088712231..0000000000
--- a/ext/etc/.cvsignore
+++ /dev/null
@@ -1,3 +0,0 @@
-Makefile
-mkmf.log
-*.def
diff --git a/ext/etc/depend b/ext/etc/depend
index ac706477b0..f2c04f5879 100644
--- a/ext/etc/depend
+++ b/ext/etc/depend
@@ -1 +1 @@
-etc.o : etc.c $(hdrdir)/ruby.h $(topdir)/config.h $(hdrdir)/defines.h
+etc.o : etc.c $(hdrdir)/ruby.h $(topdir)/config.h $(hdrdir)/defines.h
diff --git a/ext/etc/etc.c b/ext/etc/etc.c
index c8e52dabc2..2bd2e30747 100644
--- a/ext/etc/etc.c
+++ b/ext/etc/etc.c
@@ -8,6 +8,7 @@
************************************************/
#include "ruby.h"
+#include "ruby/encoding.h"
#include <sys/types.h>
#ifdef HAVE_UNISTD_H
@@ -27,6 +28,13 @@ static VALUE sPasswd;
static VALUE sGroup;
#endif
+#ifdef _WIN32
+#include <shlobj.h>
+#ifndef CSIDL_COMMON_APPDATA
+#define CSIDL_COMMON_APPDATA 35
+#endif
+#endif
+
#ifndef _WIN32
char *getenv();
#endif
@@ -133,7 +141,7 @@ etc_getpwuid(int argc, VALUE *argv, VALUE obj)
pwd = getpwuid(uid);
if (pwd == 0) rb_raise(rb_eArgError, "can't find user for %d", (int)uid);
return setup_passwd(pwd);
-#else
+#else
return Qnil;
#endif
}
@@ -156,7 +164,7 @@ etc_getpwnam(VALUE obj, VALUE nam)
pwd = getpwnam(RSTRING_PTR(nam));
if (pwd == 0) rb_raise(rb_eArgError, "can't find user for %s", RSTRING_PTR(nam));
return setup_passwd(pwd);
-#else
+#else
return Qnil;
#endif
}
@@ -166,7 +174,7 @@ static int passwd_blocking = 0;
static VALUE
passwd_ensure(void)
{
- passwd_blocking = Qfalse;
+ passwd_blocking = (int)Qfalse;
return Qnil;
}
@@ -189,15 +197,15 @@ each_passwd(void)
if (passwd_blocking) {
rb_raise(rb_eRuntimeError, "parallel passwd iteration");
}
- passwd_blocking = Qtrue;
+ passwd_blocking = (int)Qtrue;
rb_ensure(passwd_iterate, 0, passwd_ensure, 0);
}
#endif
-/* Provides a convenient Ruby iterator which executes a block for each entry
+/* Provides a convenient Ruby iterator which executes a block for each entry
* in the /etc/passwd file.
*
- * The code block is passed an Struct::Passwd struct; see getpwent above for
+ * The code block is passed an Struct::Passwd struct; see getpwent above for
* details.
*
* Example:
@@ -229,7 +237,7 @@ etc_passwd(VALUE obj)
/* Iterates for each entry in the /etc/passwd file if a block is given.
* If no block is given, returns the enumerator.
*
- * The code block is passed an Struct::Passwd struct; see getpwent above for
+ * The code block is passed an Struct::Passwd struct; see getpwent above for
* details.
*
* Example:
@@ -279,7 +287,7 @@ etc_endpwent(VALUE obj)
}
/* Returns an entry from the /etc/passwd file. The first time it is called it
- * opens the file and returns the first entry; each successive call returns
+ * opens the file and returns the first entry; each successive call returns
* the next entry, or nil if the end of the file has been reached.
*
* To close the file when processing is complete, call endpwent.
@@ -296,8 +304,8 @@ etc_endpwent(VALUE obj)
*
* - Passwd#gid contains the integer group ID (gid) of the user's primary group.
*
- * - Passwd#gecos contains a longer String description of the user, such as
- * a full name. Some Unix systems provide structured information in the
+ * - Passwd#gecos contains a longer String description of the user, such as
+ * a full name. Some Unix systems provide structured information in the
* gecos field, but this is system-dependent.
*
* - Passwd#dir contains the path to the home directory of the user as a String.
@@ -340,7 +348,7 @@ setup_group(struct group *grp)
}
#endif
-/* Returns information about the group with specified integer group id (gid),
+/* Returns information about the group with specified integer group id (gid),
* as found in /etc/group.
*
* The information is returned as a Struct::Group; see getgrent above for
@@ -373,7 +381,7 @@ etc_getgrgid(int argc, VALUE *argv, VALUE obj)
#endif
}
-/* Returns information about the group with specified String name, as found
+/* Returns information about the group with specified String name, as found
* in /etc/group.
*
* The information is returned as a Struct::Group; see getgrent above for
@@ -404,7 +412,7 @@ static int group_blocking = 0;
static VALUE
group_ensure(void)
{
- group_blocking = Qfalse;
+ group_blocking = (int)Qfalse;
return Qnil;
}
@@ -427,15 +435,15 @@ each_group(void)
if (group_blocking) {
rb_raise(rb_eRuntimeError, "parallel group iteration");
}
- group_blocking = Qtrue;
+ group_blocking = (int)Qtrue;
rb_ensure(group_iterate, 0, group_ensure, 0);
}
#endif
-/* Provides a convenient Ruby iterator which executes a block for each entry
+/* Provides a convenient Ruby iterator which executes a block for each entry
* in the /etc/group file.
*
- * The code block is passed an Struct::Group struct; see getgrent above for
+ * The code block is passed an Struct::Group struct; see getgrent above for
* details.
*
* Example:
@@ -464,11 +472,11 @@ etc_group(VALUE obj)
return Qnil;
}
-#ifdef HAVE_GETPWENT
+#ifdef HAVE_GETGRENT
/* Iterates for each entry in the /etc/group file if a block is given.
* If no block is given, returns the enumerator.
*
- * The code block is passed an Struct::Group struct; see getpwent above for
+ * The code block is passed an Struct::Group struct; see getpwent above for
* details.
*
* Example:
@@ -504,7 +512,7 @@ etc_setgrent(VALUE obj)
return Qnil;
}
-/* Ends the process of scanning through the /etc/group file begun by
+/* Ends the process of scanning through the /etc/group file begun by
* getgrent, and closes the file.
*/
static VALUE
@@ -517,7 +525,7 @@ etc_endgrent(VALUE obj)
}
/* Returns an entry from the /etc/group file. The first time it is called it
- * opens the file and returns the first entry; each successive call returns
+ * opens the file and returns the first entry; each successive call returns
* the next entry, or nil if the end of the file has been reached.
*
* To close the file when processing is complete, call endgrent.
@@ -527,13 +535,13 @@ etc_endgrent(VALUE obj)
* - Group#name contains the name of the group as a String.
*
* - Group#passwd contains the encrypted password as a String. An 'x' is
- * returned if password access to the group is not available; an empty
- * string is returned if no password is needed to obtain membership of
+ * returned if password access to the group is not available; an empty
+ * string is returned if no password is needed to obtain membership of
* the group.
*
* - Group#gid contains the group's numeric ID as an integer.
*
- * - Group#mem is an Array of Strings containing the short login names of the
+ * - Group#mem is an Array of Strings containing the short login names of the
* members of the group.
*/
static VALUE
@@ -549,8 +557,48 @@ etc_getgrent(VALUE obj)
return Qnil;
}
-/* The etc module provides access to information from the /etc/passwd and
- * /etc/group files on Linux and Unix systems.
+#define numberof(array) (sizeof(array) / sizeof(*(array)))
+
+#ifdef _WIN32
+VALUE rb_w32_special_folder(int type);
+UINT rb_w32_system_tmpdir(WCHAR *path, UINT len);
+VALUE rb_w32_conv_from_wchar(const WCHAR *wstr, rb_encoding *enc);
+#endif
+
+/*
+ * Returns system configuration directory.
+ */
+static VALUE
+etc_sysconfdir(VALUE obj)
+{
+#ifdef _WIN32
+ return rb_w32_special_folder(CSIDL_COMMON_APPDATA);
+#else
+ return rb_filesystem_str_new_cstr(SYSCONFDIR);
+#endif
+}
+
+/*
+ * Returns system temporary directory.
+ */
+static VALUE
+etc_systmpdir(void)
+{
+ VALUE tmpdir;
+#ifdef _WIN32
+ WCHAR path[_MAX_PATH];
+ UINT len = rb_w32_system_tmpdir(path, numberof(path));
+ if (!len) return Qnil;
+ tmpdir = rb_w32_conv_from_wchar(path, rb_filesystem_encoding());
+#else
+ tmpdir = rb_filesystem_str_new_cstr("/tmp");
+#endif
+ FL_UNSET(tmpdir, FL_TAINT|FL_UNTRUSTED);
+ return tmpdir;
+}
+
+/*
+ * The etc module provides access to information from the running OS.
*
* Documented by mathew <meta@pobox.com>.
*/
@@ -575,6 +623,8 @@ Init_etc(void)
rb_define_module_function(mEtc, "setgrent", etc_setgrent, 0);
rb_define_module_function(mEtc, "endgrent", etc_endgrent, 0);
rb_define_module_function(mEtc, "getgrent", etc_getgrent, 0);
+ rb_define_module_function(mEtc, "sysconfdir", etc_sysconfdir, 0);
+ rb_define_module_function(mEtc, "systmpdir", etc_systmpdir, 0);
sPasswd = rb_struct_define("Passwd",
"name", "passwd", "uid", "gid",
diff --git a/ext/etc/extconf.rb b/ext/etc/extconf.rb
index 2914bfb196..1967560cd4 100644
--- a/ext/etc/extconf.rb
+++ b/ext/etc/extconf.rb
@@ -4,7 +4,9 @@ have_library("sun", "getpwnam") # NIS (== YP) interface for IRIX 4
a = have_func("getlogin")
b = have_func("getpwent")
c = have_func("getgrent")
-if a or b or c
+sysconfdir = RbConfig.expand(RbConfig::CONFIG["sysconfdir"].dup, "prefix"=>"", "DESTDIR"=>"")
+$defs.push("-DSYSCONFDIR=#{Shellwords.escape(sysconfdir.dump)}")
+if a or b or c or sysconfdir
have_struct_member('struct passwd', 'pw_gecos', 'pwd.h')
have_struct_member('struct passwd', 'pw_change', 'pwd.h')
have_struct_member('struct passwd', 'pw_quota', 'pwd.h')
diff --git a/ext/extmk.rb b/ext/extmk.rb
index 30de287cd8..5665a966a8 100644..100755
--- a/ext/extmk.rb
+++ b/ext/extmk.rb
@@ -17,6 +17,7 @@ $extpath = nil
$ignore = nil
$message = nil
$command_output = nil
+$configure_only = false
$progname = $0
alias $PROGRAM_NAME $0
@@ -44,13 +45,17 @@ def sysquote(x)
@quote ? x.quote : x
end
+def verbose?
+ $mflags.defined?("Q") != "@"
+end
+
def extract_makefile(makefile, keep = true)
m = File.read(makefile)
if !(target = m[/^TARGET[ \t]*=[ \t]*(\S*)/, 1])
return keep
end
installrb = {}
- m.scan(/^install-rb-default:[ \t]*(\S+)\n\1:[ \t]*(\S+)/) {installrb[$2] = $1}
+ m.scan(/^install-rb-default:.*[ \t](\S+)(?:[ \t].*)?\n\1:[ \t]*(\S+)/) {installrb[$2] = $1}
oldrb = installrb.keys.sort
newrb = install_rb(nil, "").collect {|d, *f| f}.flatten.sort
if target_prefix = m[/^target_prefix[ \t]*=[ \t]*\/(.*)/, 1]
@@ -62,15 +67,18 @@ def extract_makefile(makefile, keep = true)
unless installrb.empty?
config = CONFIG.dup
install_dirs(target_prefix).each {|var, val| config[var] = val}
- FileUtils.rm_f(installrb.values.collect {|f| RbConfig.expand(f, config)}, :verbose => true)
+ FileUtils.rm_f(installrb.values.collect {|f| RbConfig.expand(f, config)},
+ :verbose => verbose?)
end
end
return false
end
$target = target
$extconf_h = m[/^RUBY_EXTCONF_H[ \t]*=[ \t]*(\S+)/, 1]
- $static ||= m[/^EXTSTATIC[ \t]*=[ \t]*(\S+)/, 1] || false
- /^STATIC_LIB[ \t]*=[ \t]*\S+/ =~ m or $static = nil
+ if $static.nil?
+ $static ||= m[/^EXTSTATIC[ \t]*=[ \t]*(\S+)/, 1] || false
+ /^STATIC_LIB[ \t]*=[ \t]*\S+/ =~ m or $static = false
+ end
$preload = Shellwords.shellwords(m[/^preload[ \t]*=[ \t]*(.*)/, 1] || "")
$DLDFLAGS += " " + (m[/^dldflags[ \t]*=[ \t]*(.*)/, 1] || "")
if s = m[/^LIBS[ \t]*=[ \t]*(.*)/, 1]
@@ -87,8 +95,10 @@ def extract_makefile(makefile, keep = true)
end
def extmake(target)
- print "#{$message} #{target}\n"
- $stdout.flush
+ unless $configure_only
+ print "#{$message} #{target}\n"
+ $stdout.flush
+ end
FileUtils.mkpath target unless File.directory?(target)
begin
@@ -147,11 +157,24 @@ def extmake(target)
[conf, "#{$srcdir}/depend"].any? {|f| modified?(f, [t])})
then
ok = false
+ if $configure_only
+ print "#{$message} #{target}\n"
+ $stdout.flush
+ end
init_mkmf
Logging::logfile 'mkmf.log'
rm_f makefile
if conf
- load $0 = conf
+ unless verbose?
+ stdout, $stdout = $stdout, File.open(File::NULL, "a")
+ else
+ stdout = $stdout
+ end
+ begin
+ load $0 = conf
+ ensure
+ $stdout = stdout
+ end
else
create_makefile(target)
end
@@ -171,10 +194,11 @@ def extmake(target)
open(makefile, "w") do |f|
f.print(*dummy_makefile(CONFIG["srcdir"]))
end
+ print "Failed to configure #{target}. It will not be installed.\n"
return true
end
args = sysquote($mflags)
- unless $destdir.to_s.empty? or $mflags.include?("DESTDIR")
+ unless $destdir.to_s.empty? or $mflags.defined?("DESTDIR")
args += [sysquote("DESTDIR=" + relative_from($destdir, "../"+prefix))]
end
if $static
@@ -183,7 +207,7 @@ def extmake(target)
end
FileUtils.rm_f(old_cleanfiles - $distcleanfiles)
FileUtils.rm_f(old_objs - $objs)
- unless system($make, *args)
+ unless $configure_only or system($make, *args)
$ignore or $continue or return false
end
$compiled[target] = true
@@ -236,7 +260,7 @@ end
def parse_args()
$mflags = []
- $makeflags = []
+ $makeflags = [] # for make command to build ruby, so quoted
$optparser ||= OptionParser.new do |opts|
opts.on('-n') {$dryrun = true}
@@ -265,7 +289,7 @@ def parse_args()
if arg = v.first
arg.insert(0, '-') if /\A[^-][^=]*\Z/ =~ arg
end
- $makeflags.concat(v.reject {|arg| /\AMINIRUBY=/ =~ arg}.quote)
+ $makeflags.concat(v.reject {|arg2| /\AMINIRUBY=/ =~ arg2}.quote)
$mflags.concat(v)
end
opts.on('--message [MESSAGE]', String) do |v|
@@ -327,11 +351,13 @@ if target = ARGV.shift and /^[a-z-]+$/ =~ target
$mflags.unshift("INSTALL_PROG=install -c -p -m 0755",
"INSTALL_DATA=install -c -p -m 0644",
"MAKEDIRS=mkdir -p") if $dryrun
+ when /configure/
+ $configure_only = true
end
end
unless $message
if target
- $message = target.sub(/^(\w+)e?\b/, '\1ing').tr('-', ' ')
+ $message = target.sub(/^(\w+?)e?\b/, '\1ing').tr('-', ' ')
else
$message = "compiling"
end
@@ -349,9 +375,7 @@ $ruby << " -I'$(topdir)'"
unless CROSS_COMPILING
$ruby << " -I'$(top_srcdir)/lib'"
$ruby << " -I'$(extout)/$(arch)' -I'$(extout)/common'" if $extout
- $ruby << " -I./- -I'$(top_srcdir)/ext' -rpurelib.rb"
ENV["RUBYLIB"] = "-"
- ENV["RUBYOPT"] = "-r#{File.expand_path('ext/purelib.rb', $top_srcdir)}"
end
$mflags << "ruby=#$ruby"
@@ -394,29 +418,28 @@ end unless $extstatic
ext_prefix = "#{$top_srcdir}/ext"
exts = $static_ext.sort_by {|t, i| i}.collect {|t, i| t}
-if $extension
- exts |= $extension.select {|d| File.directory?("#{ext_prefix}/#{d}")}
-else
- withes, withouts = %w[--with --without].collect {|w|
- if not (w = %w[-extensions -ext].collect {|o|arg_config(w+o)}).any?
- nil
- elsif (w = w.grep(String)).empty?
- proc {true}
- else
- proc {|c1| w.collect {|o| o.split(/,/)}.flatten.any?(&c1)}
- end
- }
- if withes
- withouts ||= proc {true}
+withes, withouts = %w[--with --without].collect {|w|
+ if not (w = %w[-extensions -ext].collect {|o|arg_config(w+o)}).any?
+ nil
+ elsif (w = w.grep(String)).empty?
+ proc {true}
else
- withes = proc {false}
- withouts ||= withes
+ proc {|c1| w.collect {|o| o.split(/,/)}.flatten.any?(&c1)}
end
- cond = proc {|ext, *|
- cond1 = proc {|n| File.fnmatch(n, ext)}
- withes.call(cond1) or !withouts.call(cond1)
- }
- exts |= Dir.glob("#{ext_prefix}/*/**/extconf.rb").collect {|d|
+}
+if withes
+ withouts ||= proc {true}
+else
+ withes = proc {false}
+ withouts ||= withes
+end
+cond = proc {|ext, *|
+ cond1 = proc {|n| File.fnmatch(n, ext)}
+ withes.call(cond1) or !withouts.call(cond1)
+}
+($extension || %w[*]).each do |e|
+ e = e.sub(/\A(?:\.\/)+/, '')
+ exts |= Dir.glob("#{ext_prefix}/#{e}/**/extconf.rb").collect {|d|
d = File.dirname(d)
d.slice!(0, ext_prefix.length + 1)
d
@@ -439,12 +462,13 @@ Dir::chdir('ext')
hdrdir = $hdrdir
$hdrdir = ($top_srcdir = relative_from(srcdir, $topdir = "..")) + "/include"
exts.each do |d|
- $static = $force_static ? $static_ext[target] : false
+ $static = $force_static ? $static_ext[target] : nil
if $ignore or !$nodynamic or $static
extmake(d) or abort
end
end
+
$top_srcdir = srcdir
$topdir = "."
$hdrdir = hdrdir
@@ -491,7 +515,7 @@ unless $extlist.empty?
end
next
end
- f = format("%s/%s.%s", s, i, $LIBEXT)
+ f = format("%s/%s.%s", t, i, $LIBEXT)
if File.exist?(f)
$extinit << " init(Init_#{i}, \"#{t}.so\");\n"
$extobjs << "ext/#{f} "
@@ -549,17 +573,14 @@ Dir.chdir ".."
unless $destdir.to_s.empty?
$mflags.defined?("DESTDIR") or $mflags << "DESTDIR=#{$destdir}"
end
-message = "making #{rubies.join(', ')}"
-$mflags.concat(rubies)
$makeflags.uniq!
-$makeflags.concat(rubies)
if $nmake == ?b
unless (vars = $mflags.grep(/\A\w+=/n)).empty?
open(mkf = "libruby.mk", "wb") do |tmf|
tmf.puts("!include Makefile")
tmf.puts
- tmf.puts(*vars.map {|v| v.sub(/=/, " = ")})
+ tmf.puts(*vars.map {|v| v.sub(/\=/, " = ")})
tmf.puts("PRE_LIBRUBY_UPDATE = del #{mkf}")
end
$mflags.unshift("-f#{mkf}")
@@ -568,25 +589,70 @@ if $nmake == ?b
end
$mflags.unshift("topdir=#$topdir")
ENV.delete("RUBYOPT")
-if $command_output
+if $configure_only and $command_output
+ exts.map! {|d| "ext/#{d}/."}
+ open($command_output, "wb") do |mf|
+ mf.puts "V = 0"
+ mf.puts "Q1 = $(V:1=)"
+ mf.puts "Q = $(Q1:0=@)"
+ mf.puts "ECHO1 = $(V:1=@:)"
+ mf.puts "ECHO = $(ECHO1:0=@echo)"
+ mf.puts "MFLAGS = -$(MAKEFLAGS)" if $nmake
+ mf.puts
+
+ mf.print "extensions ="
+ w = 12
+ exts.each do |d|
+ if d.size + w > 70
+ mf.print " \\\n\t "
+ w = 12
+ end
+ mf.print " #{d}"
+ w += d.size + 1
+ end
+ mf.puts
+ targets = %w[all install static install-so install-rb clean distclean realclean]
+ targets.each do |target|
+ mf.puts "#{target}: $(extensions:/.=/#{target})"
+ end
+ mf.puts
+ mf.puts "all: #{rubies.join(' ')}"
+ mf.puts "#{rubies.join(' ')}: $(extensions:/.=/all)"
+ rubies.each do |target|
+ mf.puts "#{target}:\n\t$(Q)$(MAKE) $(MFLAGS) $@"
+ end
+ mf.puts
+ exec = config_string("exec") {|s| s + " "}
+ targets.each do |target|
+ exts.each do |d|
+ mf.puts "#{d[0..-2]}#{target}:\n\t$(Q)cd $(@D) && #{exec}$(MAKE) $(MFLAGS) $(@F)"
+ end
+ end
+ end
+elsif $command_output
+ message = "making #{rubies.join(', ')}"
message = "echo #{message}"
- cmd = $makeflags.quote.join(' ')
- open($command_output, 'wb') do |f|
+ $mflags.concat(rubies)
+ $makeflags.concat(rubies)
+ cmd = $makeflags.map {|ss|ss.sub(/.*[$(){};\s].*/, %q['\&'])}.join(' ')
+ open($command_output, 'wb') do |ff|
case $command_output
when /\.sh\z/
- f.puts message, "rm -f $0; exec \"$@\" #{cmd}"
+ ff.puts message, "rm -f \"$0\"; exec \"$@\" #{cmd}"
when /\.bat\z/
- ["@echo off", message, "%* #{cmd}", "del %0 & exit %ERRORLEVEL%"].each do |s|
- f.print s, "\r\n"
+ ["@echo off", message, "%* #{cmd}", "del %0 & exit %ERRORLEVEL%"].each do |ss|
+ ff.print ss, "\r\n"
end
else
- f.puts cmd
+ ff.puts cmd
end
- f.chmod(0755)
+ ff.chmod(0755)
end
-else
+elsif !$configure_only
+ message = "making #{rubies.join(', ')}"
puts message
$stdout.flush
+ $mflags.concat(rubies)
system($make, *sysquote($mflags)) or exit($?.exitstatus)
end
diff --git a/ext/fcntl/.cvsignore b/ext/fcntl/.cvsignore
deleted file mode 100644
index 814345ece8..0000000000
--- a/ext/fcntl/.cvsignore
+++ /dev/null
@@ -1,4 +0,0 @@
-Makefile
-mkmf.log
-*.def
-extconf.h
diff --git a/ext/fcntl/fcntl.c b/ext/fcntl/fcntl.c
index 57cca103f4..b0992f30d8 100644
--- a/ext/fcntl/fcntl.c
+++ b/ext/fcntl/fcntl.c
@@ -22,7 +22,7 @@ fcntl - load the C fcntl.h defines
= DESCRIPTION
-This module is just a translation of the C <fnctl.h> file.
+This module is just a translation of the C <fcntl.h> file.
= NOTE
@@ -42,7 +42,7 @@ pack up your own arguments to pass as args for locking functions, etc.
* Documented by mathew <meta@pobox.com>
*
* = Usage
- *
+ *
* To perform a fcntl(2) operation, use IO::fcntl in the core classes.
*
* To perform an open(2) operation, use IO::sysopen.
@@ -99,10 +99,10 @@ pack up your own arguments to pass as args for locking functions, etc.
* - O_ACCMODE - mask to extract read/write flags.
*
* Example:
- *
+ *
* require 'fcntl'
*
- * fd = IO::sysopen('/tmp/tempfile',
+ * fd = IO::sysopen('/tmp/tempfile',
* Fcntl::O_WRONLY | Fcntl::O_EXCL | Fcntl::O_CREAT)
* f = IO.open(fd)
* f.syswrite("TEMP DATA")
diff --git a/ext/fiddle/closure.c b/ext/fiddle/closure.c
new file mode 100644
index 0000000000..a3c0792fc2
--- /dev/null
+++ b/ext/fiddle/closure.c
@@ -0,0 +1,307 @@
+#include <fiddle.h>
+
+VALUE cFiddleClosure;
+
+typedef struct {
+ void * code;
+ ffi_closure *pcl;
+ ffi_cif cif;
+ int argc;
+ ffi_type **argv;
+} fiddle_closure;
+
+#if defined(MACOSX) || defined(__linux) || defined(__OpenBSD__)
+#define DONT_USE_FFI_CLOSURE_ALLOC
+#endif
+
+static void
+dealloc(void * ptr)
+{
+ fiddle_closure * cls = (fiddle_closure *)ptr;
+#ifndef DONT_USE_FFI_CLOSURE_ALLOC
+ ffi_closure_free(cls->pcl);
+#else
+ munmap(cls->pcl, sizeof(cls->pcl));
+#endif
+ if (cls->argv) xfree(cls->argv);
+ xfree(cls);
+}
+
+static size_t
+closure_memsize(const void * ptr)
+{
+ fiddle_closure * cls = (fiddle_closure *)ptr;
+ size_t size = 0;
+
+ if (ptr) {
+ size += sizeof(*cls);
+#if !defined(FFI_NO_RAW_API) || !FFI_NO_RAW_API
+ size += ffi_raw_size(&cls->cif);
+#endif
+ size += sizeof(*cls->argv);
+ size += sizeof(ffi_closure);
+ }
+ return size;
+}
+
+const rb_data_type_t closure_data_type = {
+ "fiddle/closure",
+ {0, dealloc, closure_memsize,},
+};
+
+void
+callback(ffi_cif *cif, void *resp, void **args, void *ctx)
+{
+ VALUE self = (VALUE)ctx;
+ VALUE rbargs = rb_iv_get(self, "@args");
+ VALUE ctype = rb_iv_get(self, "@ctype");
+ int argc = RARRAY_LENINT(rbargs);
+ VALUE params = rb_ary_tmp_new(argc);
+ VALUE ret;
+ VALUE cPointer;
+ int i, type;
+
+ cPointer = rb_const_get(mFiddle, rb_intern("Pointer"));
+
+ for (i = 0; i < argc; i++) {
+ type = NUM2INT(RARRAY_PTR(rbargs)[i]);
+ switch (type) {
+ case TYPE_VOID:
+ argc = 0;
+ break;
+ case TYPE_INT:
+ rb_ary_push(params, INT2NUM(*(int *)args[i]));
+ break;
+ case -TYPE_INT:
+ rb_ary_push(params, UINT2NUM(*(unsigned int *)args[i]));
+ break;
+ case TYPE_VOIDP:
+ rb_ary_push(params,
+ rb_funcall(cPointer, rb_intern("[]"), 1,
+ PTR2NUM(*(void **)args[i])));
+ break;
+ case TYPE_LONG:
+ rb_ary_push(params, LONG2NUM(*(long *)args[i]));
+ break;
+ case -TYPE_LONG:
+ rb_ary_push(params, ULONG2NUM(*(unsigned long *)args[i]));
+ break;
+ case TYPE_CHAR:
+ rb_ary_push(params, INT2NUM(*(signed char *)args[i]));
+ break;
+ case -TYPE_CHAR:
+ rb_ary_push(params, UINT2NUM(*(unsigned char *)args[i]));
+ break;
+ case TYPE_SHORT:
+ rb_ary_push(params, INT2NUM(*(signed short *)args[i]));
+ break;
+ case -TYPE_SHORT:
+ rb_ary_push(params, UINT2NUM(*(unsigned short *)args[i]));
+ break;
+ case TYPE_DOUBLE:
+ rb_ary_push(params, rb_float_new(*(double *)args[i]));
+ break;
+ case TYPE_FLOAT:
+ rb_ary_push(params, rb_float_new(*(float *)args[i]));
+ break;
+#if HAVE_LONG_LONG
+ case TYPE_LONG_LONG:
+ rb_ary_push(params, LL2NUM(*(LONG_LONG *)args[i]));
+ break;
+ case -TYPE_LONG_LONG:
+ rb_ary_push(params, ULL2NUM(*(unsigned LONG_LONG *)args[i]));
+ break;
+#endif
+ default:
+ rb_raise(rb_eRuntimeError, "closure args: %d", type);
+ }
+ }
+
+ ret = rb_funcall2(self, rb_intern("call"), argc, RARRAY_PTR(params));
+ RB_GC_GUARD(params);
+
+ type = NUM2INT(ctype);
+ switch (type) {
+ case TYPE_VOID:
+ break;
+ case TYPE_LONG:
+ *(long *)resp = NUM2LONG(ret);
+ break;
+ case -TYPE_LONG:
+ *(unsigned long *)resp = NUM2ULONG(ret);
+ break;
+ case TYPE_CHAR:
+ case TYPE_SHORT:
+ case TYPE_INT:
+ *(ffi_sarg *)resp = NUM2INT(ret);
+ break;
+ case -TYPE_CHAR:
+ case -TYPE_SHORT:
+ case -TYPE_INT:
+ *(ffi_arg *)resp = NUM2UINT(ret);
+ break;
+ case TYPE_VOIDP:
+ *(void **)resp = NUM2PTR(ret);
+ break;
+ case TYPE_DOUBLE:
+ *(double *)resp = NUM2DBL(ret);
+ break;
+ case TYPE_FLOAT:
+ *(float *)resp = (float)NUM2DBL(ret);
+ break;
+#if HAVE_LONG_LONG
+ case TYPE_LONG_LONG:
+ *(LONG_LONG *)resp = NUM2LL(ret);
+ break;
+ case -TYPE_LONG_LONG:
+ *(unsigned LONG_LONG *)resp = NUM2ULL(ret);
+ break;
+#endif
+ default:
+ rb_raise(rb_eRuntimeError, "closure retval: %d", type);
+ }
+}
+
+static VALUE
+allocate(VALUE klass)
+{
+ fiddle_closure * closure;
+
+ VALUE i = TypedData_Make_Struct(klass, fiddle_closure,
+ &closure_data_type, closure);
+
+#ifndef DONT_USE_FFI_CLOSURE_ALLOC
+ closure->pcl = ffi_closure_alloc(sizeof(ffi_closure), &closure->code);
+#else
+ closure->pcl = mmap(NULL, sizeof(ffi_closure), PROT_READ | PROT_WRITE,
+ MAP_ANON | MAP_PRIVATE, -1, 0);
+#endif
+
+ return i;
+}
+
+static VALUE
+initialize(int rbargc, VALUE argv[], VALUE self)
+{
+ VALUE ret;
+ VALUE args;
+ VALUE abi;
+ fiddle_closure * cl;
+ ffi_cif * cif;
+ ffi_closure *pcl;
+ ffi_status result;
+ int i, argc;
+
+ if (2 == rb_scan_args(rbargc, argv, "21", &ret, &args, &abi))
+ abi = INT2NUM(FFI_DEFAULT_ABI);
+
+ Check_Type(args, T_ARRAY);
+
+ argc = RARRAY_LENINT(args);
+
+ TypedData_Get_Struct(self, fiddle_closure, &closure_data_type, cl);
+
+ cl->argv = (ffi_type **)xcalloc(argc + 1, sizeof(ffi_type *));
+
+ for (i = 0; i < argc; i++) {
+ int type = NUM2INT(RARRAY_PTR(args)[i]);
+ cl->argv[i] = INT2FFI_TYPE(type);
+ }
+ cl->argv[argc] = NULL;
+
+ rb_iv_set(self, "@ctype", ret);
+ rb_iv_set(self, "@args", args);
+
+ cif = &cl->cif;
+ pcl = cl->pcl;
+
+ result = ffi_prep_cif(cif, NUM2INT(abi), argc,
+ INT2FFI_TYPE(NUM2INT(ret)),
+ cl->argv);
+
+ if (FFI_OK != result)
+ rb_raise(rb_eRuntimeError, "error prepping CIF %d", result);
+
+#ifndef DONT_USE_FFI_CLOSURE_ALLOC
+ result = ffi_prep_closure_loc(pcl, cif, callback,
+ (void *)self, cl->code);
+#else
+ result = ffi_prep_closure(pcl, cif, callback, (void *)self);
+ cl->code = (void *)pcl;
+ mprotect(pcl, sizeof(pcl), PROT_READ | PROT_EXEC);
+#endif
+
+ if (FFI_OK != result)
+ rb_raise(rb_eRuntimeError, "error prepping closure %d", result);
+
+ return self;
+}
+
+static VALUE
+to_i(VALUE self)
+{
+ fiddle_closure * cl;
+ void *code;
+
+ TypedData_Get_Struct(self, fiddle_closure, &closure_data_type, cl);
+
+ code = cl->code;
+
+ return PTR2NUM(code);
+}
+
+void
+Init_fiddle_closure()
+{
+#if 0
+ mFiddle = rb_define_module("Fiddle"); /* let rdoc know about mFiddle */
+#endif
+
+ /*
+ * Document-class: Fiddle::Closure
+ *
+ * == Description
+ *
+ * An FFI closure wrapper, for handling callbacks.
+ *
+ * == Example
+ *
+ * closure = Class.new(Fiddle::Closure) {
+ * def call
+ * 10
+ * end
+ * }.new(Fiddle::TYPE_INT, [])
+ * => #<#<Class:0x0000000150d308>:0x0000000150d240>
+ * func = Fiddle::Function.new(closure, [], Fiddle::TYPE_INT)
+ * => #<Fiddle::Function:0x00000001516e58>
+ * func.call
+ * => 10
+ */
+ cFiddleClosure = rb_define_class_under(mFiddle, "Closure", rb_cObject);
+
+ rb_define_alloc_func(cFiddleClosure, allocate);
+
+ /*
+ * Document-method: new
+ *
+ * call-seq: new(ret, *args, abi = Fiddle::DEFAULT)
+ *
+ * Construct a new Closure object.
+ *
+ * * +ret+ is the C type to be returned
+ * * +args+ are passed the callback
+ * * +abi+ is the abi of the closure
+ *
+ * If there is an error in preparing the ffi_cif or ffi_prep_closure,
+ * then a RuntimeError will be raised.
+ */
+ rb_define_method(cFiddleClosure, "initialize", initialize, -1);
+
+ /*
+ * Document-method: to_i
+ *
+ * Returns the memory address for this closure
+ */
+ rb_define_method(cFiddleClosure, "to_i", to_i, 0);
+}
+/* vim: set noet sw=4 sts=4 */
diff --git a/ext/fiddle/closure.h b/ext/fiddle/closure.h
new file mode 100644
index 0000000000..1e870e2285
--- /dev/null
+++ b/ext/fiddle/closure.h
@@ -0,0 +1,8 @@
+#ifndef FIDDLE_CLOSURE_H
+#define FIDDLE_CLOSURE_H
+
+#include <fiddle.h>
+
+void Init_fiddle_closure();
+
+#endif
diff --git a/ext/fiddle/conversions.c b/ext/fiddle/conversions.c
new file mode 100644
index 0000000000..f2c1511778
--- /dev/null
+++ b/ext/fiddle/conversions.c
@@ -0,0 +1,139 @@
+#include <fiddle.h>
+
+ffi_type *
+int_to_ffi_type(int type)
+{
+ int signed_p = 1;
+
+ if (type < 0) {
+ type = -1 * type;
+ signed_p = 0;
+ }
+
+#define rb_ffi_type_of(t) (signed_p ? &ffi_type_s##t : &ffi_type_u##t)
+
+ switch (type) {
+ case TYPE_VOID:
+ return &ffi_type_void;
+ case TYPE_VOIDP:
+ return &ffi_type_pointer;
+ case TYPE_CHAR:
+ return rb_ffi_type_of(char);
+ case TYPE_SHORT:
+ return rb_ffi_type_of(short);
+ case TYPE_INT:
+ return rb_ffi_type_of(int);
+ case TYPE_LONG:
+ return rb_ffi_type_of(long);
+#if HAVE_LONG_LONG
+ case TYPE_LONG_LONG:
+ return rb_ffi_type_of(long_long);
+#endif
+ case TYPE_FLOAT:
+ return &ffi_type_float;
+ case TYPE_DOUBLE:
+ return &ffi_type_double;
+ default:
+ rb_raise(rb_eRuntimeError, "unknown type %d", type);
+ }
+ return &ffi_type_pointer;
+}
+
+void
+value_to_generic(int type, VALUE src, fiddle_generic * dst)
+{
+ switch (type) {
+ case TYPE_VOID:
+ break;
+ case TYPE_VOIDP:
+ dst->pointer = NUM2PTR(rb_Integer(src));
+ break;
+ case TYPE_CHAR:
+ dst->schar = (signed char)NUM2INT(src);
+ break;
+ case -TYPE_CHAR:
+ dst->uchar = (unsigned char)NUM2UINT(src);
+ break;
+ case TYPE_SHORT:
+ dst->sshort = (unsigned short)NUM2INT(src);
+ break;
+ case -TYPE_SHORT:
+ dst->sshort = (signed short)NUM2UINT(src);
+ break;
+ case TYPE_INT:
+ dst->sint = NUM2INT(src);
+ break;
+ case -TYPE_INT:
+ dst->uint = NUM2UINT(src);
+ break;
+ case TYPE_LONG:
+ dst->slong = NUM2LONG(src);
+ break;
+ case -TYPE_LONG:
+ dst->ulong = NUM2ULONG(src);
+ break;
+#if HAVE_LONG_LONG
+ case TYPE_LONG_LONG:
+ dst->slong_long = NUM2LL(src);
+ break;
+ case -TYPE_LONG_LONG:
+ dst->ulong_long = NUM2ULL(src);
+ break;
+#endif
+ case TYPE_FLOAT:
+ dst->ffloat = (float)NUM2DBL(src);
+ break;
+ case TYPE_DOUBLE:
+ dst->ddouble = NUM2DBL(src);
+ break;
+ default:
+ rb_raise(rb_eRuntimeError, "unknown type %d", type);
+ }
+}
+
+VALUE
+generic_to_value(VALUE rettype, fiddle_generic retval)
+{
+ int type = NUM2INT(rettype);
+ VALUE cPointer;
+
+ cPointer = rb_const_get(mFiddle, rb_intern("Pointer"));
+
+ switch (type) {
+ case TYPE_VOID:
+ return Qnil;
+ case TYPE_VOIDP:
+ return rb_funcall(cPointer, rb_intern("[]"), 1,
+ PTR2NUM((void *)retval.pointer));
+ case TYPE_CHAR:
+ return INT2NUM((signed char)retval.fffi_sarg);
+ case -TYPE_CHAR:
+ return INT2NUM((unsigned char)retval.fffi_arg);
+ case TYPE_SHORT:
+ return INT2NUM((signed short)retval.fffi_sarg);
+ case -TYPE_SHORT:
+ return INT2NUM((unsigned short)retval.fffi_arg);
+ case TYPE_INT:
+ return INT2NUM((signed int)retval.fffi_sarg);
+ case -TYPE_INT:
+ return UINT2NUM((unsigned int)retval.fffi_arg);
+ case TYPE_LONG:
+ return LONG2NUM(retval.slong);
+ case -TYPE_LONG:
+ return ULONG2NUM(retval.ulong);
+#if HAVE_LONG_LONG
+ case TYPE_LONG_LONG:
+ return LL2NUM(retval.slong_long);
+ case -TYPE_LONG_LONG:
+ return ULL2NUM(retval.ulong_long);
+#endif
+ case TYPE_FLOAT:
+ return rb_float_new(retval.ffloat);
+ case TYPE_DOUBLE:
+ return rb_float_new(retval.ddouble);
+ default:
+ rb_raise(rb_eRuntimeError, "unknown type %d", type);
+ }
+}
+
+/* vim: set noet sw=4 sts=4 */
diff --git a/ext/fiddle/conversions.h b/ext/fiddle/conversions.h
new file mode 100644
index 0000000000..d0a08d6bc0
--- /dev/null
+++ b/ext/fiddle/conversions.h
@@ -0,0 +1,44 @@
+#ifndef FIDDLE_CONVERSIONS_H
+#define FIDDLE_CONVERSIONS_H
+
+#include <fiddle.h>
+
+typedef union
+{
+ ffi_arg fffi_arg; /* rvalue smaller than unsigned long */
+ ffi_sarg fffi_sarg; /* rvalue smaller than signed long */
+ unsigned char uchar; /* ffi_type_uchar */
+ signed char schar; /* ffi_type_schar */
+ unsigned short ushort; /* ffi_type_sshort */
+ signed short sshort; /* ffi_type_ushort */
+ unsigned int uint; /* ffi_type_uint */
+ signed int sint; /* ffi_type_sint */
+ unsigned long ulong; /* ffi_type_ulong */
+ signed long slong; /* ffi_type_slong */
+ float ffloat; /* ffi_type_float */
+ double ddouble; /* ffi_type_double */
+#if HAVE_LONG_LONG
+ unsigned LONG_LONG ulong_long; /* ffi_type_ulong_long */
+ signed LONG_LONG slong_long; /* ffi_type_ulong_long */
+#endif
+ void * pointer; /* ffi_type_pointer */
+} fiddle_generic;
+
+ffi_type * int_to_ffi_type(int type);
+void value_to_generic(int type, VALUE src, fiddle_generic * dst);
+VALUE generic_to_value(VALUE rettype, fiddle_generic retval);
+
+#define VALUE2GENERIC(_type, _src, _dst) value_to_generic((_type), (_src), (_dst))
+#define INT2FFI_TYPE(_type) int_to_ffi_type(_type)
+#define GENERIC2VALUE(_type, _retval) generic_to_value((_type), (_retval))
+
+#if SIZEOF_VOIDP == SIZEOF_LONG
+# define PTR2NUM(x) (ULONG2NUM((unsigned long)(x)))
+# define NUM2PTR(x) ((void*)(NUM2ULONG(x)))
+#else
+/* # error --->> Ruby/DL2 requires sizeof(void*) == sizeof(long) to be compiled. <<--- */
+# define PTR2NUM(x) (ULL2NUM((unsigned long long)(x)))
+# define NUM2PTR(x) ((void*)(NUM2ULL(x)))
+#endif
+
+#endif
diff --git a/ext/fiddle/extconf.rb b/ext/fiddle/extconf.rb
new file mode 100644
index 0000000000..03b0ac2765
--- /dev/null
+++ b/ext/fiddle/extconf.rb
@@ -0,0 +1,24 @@
+require 'mkmf'
+
+# :stopdoc:
+
+dir_config 'libffi'
+
+pkg_config("libffi")
+unless have_header('ffi.h')
+ if have_header('ffi/ffi.h')
+ $defs.push(format('-DUSE_HEADER_HACKS'))
+ else
+ abort "ffi.h is missing. Please install libffi."
+ end
+end
+
+unless have_library('ffi') || have_library('libffi')
+ abort "libffi is missing. Please install libffi."
+end
+
+have_header 'sys/mman.h'
+
+create_makefile 'fiddle'
+
+# :startdoc:
diff --git a/ext/fiddle/fiddle.c b/ext/fiddle/fiddle.c
new file mode 100644
index 0000000000..83c0bb5e1e
--- /dev/null
+++ b/ext/fiddle/fiddle.c
@@ -0,0 +1,87 @@
+#include <fiddle.h>
+
+VALUE mFiddle;
+
+void
+Init_fiddle(void)
+{
+ /*
+ * Document-module: Fiddle
+ *
+ * == Description
+ *
+ * A libffi wrapper.
+ *
+ */
+ mFiddle = rb_define_module("Fiddle");
+
+ /* Document-const: TYPE_VOID
+ *
+ * C type - void
+ */
+ rb_define_const(mFiddle, "TYPE_VOID", INT2NUM(TYPE_VOID));
+
+ /* Document-const: TYPE_VOIDP
+ *
+ * C type - void*
+ */
+ rb_define_const(mFiddle, "TYPE_VOIDP", INT2NUM(TYPE_VOIDP));
+
+ /* Document-const: TYPE_CHAR
+ *
+ * C type - char
+ */
+ rb_define_const(mFiddle, "TYPE_CHAR", INT2NUM(TYPE_CHAR));
+
+ /* Document-const: TYPE_SHORT
+ *
+ * C type - short
+ */
+ rb_define_const(mFiddle, "TYPE_SHORT", INT2NUM(TYPE_SHORT));
+
+ /* Document-const: TYPE_INT
+ *
+ * C type - int
+ */
+ rb_define_const(mFiddle, "TYPE_INT", INT2NUM(TYPE_INT));
+
+ /* Document-const: TYPE_LONG
+ *
+ * C type - long
+ */
+ rb_define_const(mFiddle, "TYPE_LONG", INT2NUM(TYPE_LONG));
+
+#if HAVE_LONG_LONG
+ /* Document-const: TYPE_LONG_LONG
+ *
+ * C type - long long
+ */
+ rb_define_const(mFiddle, "TYPE_LONG_LONG", INT2NUM(TYPE_LONG_LONG));
+#endif
+
+ /* Document-const: TYPE_FLOAT
+ *
+ * C type - float
+ */
+ rb_define_const(mFiddle, "TYPE_FLOAT", INT2NUM(TYPE_FLOAT));
+
+ /* Document-const: TYPE_DOUBLE
+ *
+ * C type - double
+ */
+ rb_define_const(mFiddle, "TYPE_DOUBLE", INT2NUM(TYPE_DOUBLE));
+
+ /* Document-const: WINDOWS
+ *
+ * Returns a boolean regarding whether the host is WIN32
+ */
+#if defined(_WIN32)
+ rb_define_const(mFiddle, "WINDOWS", Qtrue);
+#else
+ rb_define_const(mFiddle, "WINDOWS", Qfalse);
+#endif
+
+ Init_fiddle_function();
+ Init_fiddle_closure();
+}
+/* vim: set noet sws=4 sw=4: */
diff --git a/ext/fiddle/fiddle.h b/ext/fiddle/fiddle.h
new file mode 100644
index 0000000000..3a829fe433
--- /dev/null
+++ b/ext/fiddle/fiddle.h
@@ -0,0 +1,103 @@
+#ifndef FIDDLE_H
+#define FIDDLE_H
+
+#include <ruby.h>
+#include <errno.h>
+
+#if defined(_WIN32)
+#include <windows.h>
+#endif
+
+#ifdef HAVE_SYS_MMAN_H
+#include <sys/mman.h>
+#endif
+
+#ifdef USE_HEADER_HACKS
+#include <ffi/ffi.h>
+#else
+#include <ffi.h>
+#endif
+
+#undef ffi_type_uchar
+#undef ffi_type_schar
+#undef ffi_type_ushort
+#undef ffi_type_sshort
+#undef ffi_type_uint
+#undef ffi_type_sint
+#undef ffi_type_ulong
+#undef ffi_type_slong
+
+#if CHAR_BIT == 8
+# define ffi_type_uchar ffi_type_uint8
+# define ffi_type_schar ffi_type_sint8
+#else
+# error "CHAR_BIT not supported"
+#endif
+
+# if SIZEOF_SHORT == 2
+# define ffi_type_ushort ffi_type_uint16
+# define ffi_type_sshort ffi_type_sint16
+# elif SIZEOF_SHORT == 4
+# define ffi_type_ushort ffi_type_uint32
+# define ffi_type_sshort ffi_type_sint32
+# else
+# error "short size not supported"
+# endif
+
+# if SIZEOF_INT == 2
+# define ffi_type_uint ffi_type_uint16
+# define ffi_type_sint ffi_type_sint16
+# elif SIZEOF_INT == 4
+# define ffi_type_uint ffi_type_uint32
+# define ffi_type_sint ffi_type_sint32
+# elif SIZEOF_INT == 8
+# define ffi_type_uint ffi_type_uint64
+# define ffi_type_sint ffi_type_sint64
+# else
+# error "int size not supported"
+# endif
+
+# if SIZEOF_LONG == 4
+# define ffi_type_ulong ffi_type_uint32
+# define ffi_type_slong ffi_type_sint32
+# elif SIZEOF_LONG == 8
+# define ffi_type_ulong ffi_type_uint64
+# define ffi_type_slong ffi_type_sint64
+# else
+# error "long size not supported"
+# endif
+
+#if HAVE_LONG_LONG
+# if SIZEOF_LONG_LONG == 8
+# define ffi_type_slong_long ffi_type_sint64
+# define ffi_type_ulong_long ffi_type_uint64
+# else
+# error "long long size not supported"
+# endif
+#endif
+
+#include <closure.h>
+#include <conversions.h>
+#include <function.h>
+
+/* FIXME
+ * These constants need to match up with DL. We need to refactor this to use
+ * the DL header files or vice versa.
+ */
+
+#define TYPE_VOID 0
+#define TYPE_VOIDP 1
+#define TYPE_CHAR 2
+#define TYPE_SHORT 3
+#define TYPE_INT 4
+#define TYPE_LONG 5
+#if HAVE_LONG_LONG
+#define TYPE_LONG_LONG 6
+#endif
+#define TYPE_FLOAT 7
+#define TYPE_DOUBLE 8
+
+extern VALUE mFiddle;
+
+#endif
+/* vim: set noet sws=4 sw=4: */
diff --git a/ext/fiddle/function.c b/ext/fiddle/function.c
new file mode 100644
index 0000000000..6e8909991a
--- /dev/null
+++ b/ext/fiddle/function.c
@@ -0,0 +1,217 @@
+#include <fiddle.h>
+
+VALUE cFiddleFunction;
+
+static void
+deallocate(void *p)
+{
+ ffi_cif *ptr = p;
+ if (ptr->arg_types) xfree(ptr->arg_types);
+ xfree(ptr);
+}
+
+static size_t
+function_memsize(const void *p)
+{
+ /* const */ffi_cif *ptr = (ffi_cif *)p;
+ size_t size = 0;
+
+ if (ptr) {
+ size += sizeof(*ptr);
+#if !defined(FFI_NO_RAW_API) || !FFI_NO_RAW_API
+ size += ffi_raw_size(ptr);
+#endif
+ }
+ return size;
+}
+
+const rb_data_type_t function_data_type = {
+ "fiddle/function",
+ {0, deallocate, function_memsize,},
+};
+
+static VALUE
+allocate(VALUE klass)
+{
+ ffi_cif * cif;
+
+ return TypedData_Make_Struct(klass, ffi_cif, &function_data_type, cif);
+}
+
+static VALUE
+initialize(int argc, VALUE argv[], VALUE self)
+{
+ ffi_cif * cif;
+ ffi_type **arg_types;
+ ffi_status result;
+ VALUE ptr, args, ret_type, abi;
+ int i;
+
+ rb_scan_args(argc, argv, "31", &ptr, &args, &ret_type, &abi);
+ if(NIL_P(abi)) abi = INT2NUM(FFI_DEFAULT_ABI);
+
+ Check_Type(args, T_ARRAY);
+
+ rb_iv_set(self, "@ptr", ptr);
+ rb_iv_set(self, "@args", args);
+ rb_iv_set(self, "@return_type", ret_type);
+ rb_iv_set(self, "@abi", abi);
+
+ TypedData_Get_Struct(self, ffi_cif, &function_data_type, cif);
+
+ arg_types = xcalloc(RARRAY_LEN(args) + 1, sizeof(ffi_type *));
+
+ for (i = 0; i < RARRAY_LEN(args); i++) {
+ int type = NUM2INT(RARRAY_PTR(args)[i]);
+ arg_types[i] = INT2FFI_TYPE(type);
+ }
+ arg_types[RARRAY_LEN(args)] = NULL;
+
+ result = ffi_prep_cif (
+ cif,
+ NUM2INT(abi),
+ RARRAY_LENINT(args),
+ INT2FFI_TYPE(NUM2INT(ret_type)),
+ arg_types);
+
+ if (result)
+ rb_raise(rb_eRuntimeError, "error creating CIF %d", result);
+
+ return self;
+}
+
+static VALUE
+function_call(int argc, VALUE argv[], VALUE self)
+{
+ ffi_cif * cif;
+ fiddle_generic retval;
+ fiddle_generic *generic_args;
+ void **values;
+ VALUE cfunc, types, cPointer;
+ int i;
+
+ cfunc = rb_iv_get(self, "@ptr");
+ types = rb_iv_get(self, "@args");
+ cPointer = rb_const_get(mFiddle, rb_intern("Pointer"));
+
+ if(argc != RARRAY_LENINT(types)) {
+ rb_raise(rb_eArgError, "wrong number of arguments (%d for %d)",
+ argc, RARRAY_LENINT(types));
+ }
+
+ TypedData_Get_Struct(self, ffi_cif, &function_data_type, cif);
+
+ values = xcalloc((size_t)argc + 1, (size_t)sizeof(void *));
+ generic_args = xcalloc((size_t)argc, (size_t)sizeof(fiddle_generic));
+
+ for (i = 0; i < argc; i++) {
+ VALUE type = RARRAY_PTR(types)[i];
+ VALUE src = argv[i];
+
+ if(NUM2INT(type) == TYPE_VOIDP) {
+ if(NIL_P(src)) {
+ src = INT2NUM(0);
+ } else if(cPointer != CLASS_OF(src)) {
+ src = rb_funcall(cPointer, rb_intern("[]"), 1, src);
+ }
+ src = rb_Integer(src);
+ }
+
+ VALUE2GENERIC(NUM2INT(type), src, &generic_args[i]);
+ values[i] = (void *)&generic_args[i];
+ }
+ values[argc] = NULL;
+
+ ffi_call(cif, NUM2PTR(rb_Integer(cfunc)), &retval, values);
+
+ rb_funcall(mFiddle, rb_intern("last_error="), 1, INT2NUM(errno));
+#if defined(_WIN32)
+ rb_funcall(mFiddle, rb_intern("win32_last_error="), 1, INT2NUM(errno));
+#endif
+
+ xfree(values);
+ xfree(generic_args);
+
+ return GENERIC2VALUE(rb_iv_get(self, "@return_type"), retval);
+}
+
+void
+Init_fiddle_function(void)
+{
+ /*
+ * Document-class: Fiddle::Function
+ *
+ * == Description
+ *
+ * A representation of a C function
+ *
+ * == Examples
+ *
+ * === 'strcpy'
+ *
+ * @libc = DL.dlopen "/lib/libc.so.6"
+ * => #<DL::Handle:0x00000001d7a8d8>
+ * f = Fiddle::Function.new(@libc['strcpy'], [TYPE_VOIDP, TYPE_VOIDP], TYPE_VOIDP)
+ * => #<Fiddle::Function:0x00000001d8ee00>
+ * buff = "000"
+ * => "000"
+ * str = f.call(buff, "123")
+ * => #<DL::CPtr:0x00000001d0c380 ptr=0x000000018a21b8 size=0 free=0x00000000000000>
+ * str.to_s
+ * => "123"
+ *
+ * === ABI check
+ *
+ * @libc = DL.dlopen "/lib/libc.so.6"
+ * => #<DL::Handle:0x00000001d7a8d8>
+ * f = Fiddle::Function.new(@libc['strcpy'], [TYPE_VOIDP, TYPE_VOIDP], TYPE_VOIDP)
+ * => #<Fiddle::Function:0x00000001d8ee00>
+ * f.abi == Fiddle::Function::DEFAULT
+ * => true
+ */
+ cFiddleFunction = rb_define_class_under(mFiddle, "Function", rb_cObject);
+
+ /*
+ * Document-const: DEFAULT
+ *
+ * Default ABI
+ *
+ */
+ rb_define_const(cFiddleFunction, "DEFAULT", INT2NUM(FFI_DEFAULT_ABI));
+
+#ifdef FFI_STDCALL
+ /*
+ * Document-const: STDCALL
+ *
+ * FFI implementation of WIN32 stdcall convention
+ *
+ */
+ rb_define_const(cFiddleFunction, "STDCALL", INT2NUM(FFI_STDCALL));
+#endif
+
+ rb_define_alloc_func(cFiddleFunction, allocate);
+
+ /*
+ * Document-method: call
+ *
+ * Calls the constructed Function, with +args+
+ *
+ * For an example see Fiddle::Function
+ *
+ */
+ rb_define_method(cFiddleFunction, "call", function_call, -1);
+
+ /*
+ * Document-method: new
+ * call-seq: new(ptr, *args, ret_type, abi = DEFAULT)
+ *
+ * Constructs a Function object.
+ * * +ptr+ is a referenced function, of a DL::Handle
+ * * +args+ is an Array of arguments, passed to the +ptr+ function
+ * * +ret_type+ is the return type of the function
+ * * +abi+ is the ABI of the function
+ *
+ */
+ rb_define_method(cFiddleFunction, "initialize", initialize, -1);
+}
+/* vim: set noet sws=4 sw=4: */
diff --git a/ext/fiddle/function.h b/ext/fiddle/function.h
new file mode 100644
index 0000000000..e5465ab64f
--- /dev/null
+++ b/ext/fiddle/function.h
@@ -0,0 +1,8 @@
+#ifndef FIDDLE_FUNCTION_H
+#define FIDDLE_FUNCTION_H
+
+#include <fiddle.h>
+
+void Init_fiddle_function();
+
+#endif
diff --git a/ext/fiddle/lib/fiddle.rb b/ext/fiddle/lib/fiddle.rb
new file mode 100644
index 0000000000..7d55a1f7ad
--- /dev/null
+++ b/ext/fiddle/lib/fiddle.rb
@@ -0,0 +1,34 @@
+require 'fiddle.so'
+require 'fiddle/function'
+require 'fiddle/closure'
+require 'dl' unless Object.const_defined?(:DL)
+
+module Fiddle
+
+ # A reference to DL::CPtr
+ Pointer = DL::CPtr
+
+ if WINDOWS
+ # Returns the last win32 +Error+ of the current executing +Thread+ or nil
+ # if none
+ def self.win32_last_error
+ Thread.current[:__FIDDLE_WIN32_LAST_ERROR__]
+ end
+
+ # Sets the last win32 +Error+ of the current executing +Thread+ to +error+
+ def self.win32_last_error= error
+ Thread.current[:__FIDDLE_WIN32_LAST_ERROR__] = error
+ end
+ end
+
+ # Returns the last +Error+ of the current executing +Thread+ or nil if none
+ def self.last_error
+ Thread.current[:__FIDDLE_LAST_ERROR__]
+ end
+
+ # Sets the last +Error+ of the current executing +Thread+ to +error+
+ def self.last_error= error
+ Thread.current[:__DL2_LAST_ERROR__] = error
+ Thread.current[:__FIDDLE_LAST_ERROR__] = error
+ end
+end
diff --git a/ext/fiddle/lib/fiddle/closure.rb b/ext/fiddle/lib/fiddle/closure.rb
new file mode 100644
index 0000000000..beb90ecbe5
--- /dev/null
+++ b/ext/fiddle/lib/fiddle/closure.rb
@@ -0,0 +1,48 @@
+module Fiddle
+ class Closure
+
+ # the C type of the return of the FFI closure
+ attr_reader :ctype
+
+ # arguments of the FFI closure
+ attr_reader :args
+
+ # Extends Fiddle::Closure to allow for building the closure in a block
+ class BlockCaller < Fiddle::Closure
+
+ # == Description
+ #
+ # Construct a new BlockCaller object.
+ #
+ # * +ctype+ is the C type to be returned
+ # * +args+ are passed the callback
+ # * +abi+ is the abi of the closure
+ #
+ # If there is an error in preparing the +ffi_cif+ or +ffi_prep_closure+,
+ # then a RuntimeError will be raised.
+ #
+ # == Example
+ #
+ # include Fiddle
+ #
+ # cb = Closure::BlockCaller.new(TYPE_INT, [TYPE_INT]) do |one|
+ # one
+ # end
+ #
+ # func = Function.new(cb, [TYPE_INT], TYPE_INT)
+ #
+ def initialize ctype, args, abi = Fiddle::Function::DEFAULT, &block
+ super(ctype, args, abi)
+ @block = block
+ end
+
+ # Calls the constructed BlockCaller, with +args+
+ #
+ # For an example see Fiddle::Closure::BlockCaller.new
+ #
+ def call *args
+ @block.call(*args)
+ end
+ end
+ end
+end
diff --git a/ext/fiddle/lib/fiddle/function.rb b/ext/fiddle/lib/fiddle/function.rb
new file mode 100644
index 0000000000..1657682498
--- /dev/null
+++ b/ext/fiddle/lib/fiddle/function.rb
@@ -0,0 +1,6 @@
+module Fiddle
+ class Function
+ # The ABI of the Function.
+ attr_reader :abi
+ end
+end
diff --git a/ext/gdbm/.cvsignore b/ext/gdbm/.cvsignore
deleted file mode 100644
index 814345ece8..0000000000
--- a/ext/gdbm/.cvsignore
+++ /dev/null
@@ -1,4 +0,0 @@
-Makefile
-mkmf.log
-*.def
-extconf.h
diff --git a/ext/gdbm/gdbm.c b/ext/gdbm/gdbm.c
index 71a159171e..6f0c14d664 100644
--- a/ext/gdbm/gdbm.c
+++ b/ext/gdbm/gdbm.c
@@ -44,7 +44,7 @@
* 1. Opening/creating a database, and filling it with some entries:
*
* require 'gdbm'
- *
+ *
* gdbm = GDBM.new("fruitstore.db")
* gdbm["ananas"] = "3"
* gdbm["banana"] = "8"
@@ -54,7 +54,7 @@
* 2. Reading out a database:
*
* require 'gdbm'
- *
+ *
* gdbm = GDBM.new("fruitstore.db")
* gdbm.each_pair do |key, value|
* print "#{key}: #{value}\n"
@@ -95,13 +95,13 @@ closed_dbm(void)
}
#define GetDBM(obj, dbmp) do {\
- Data_Get_Struct(obj, struct dbmdata, dbmp);\
- if (dbmp == 0) closed_dbm();\
- if (dbmp->di_dbm == 0) closed_dbm();\
+ Data_Get_Struct((obj), struct dbmdata, (dbmp));\
+ if ((dbmp) == 0) closed_dbm();\
+ if ((dbmp)->di_dbm == 0) closed_dbm();\
} while (0)
#define GetDBM2(obj, data, dbm) {\
- GetDBM(obj, data);\
+ GetDBM((obj), (data));\
(dbm) = dbmp->di_dbm;\
}
@@ -206,19 +206,19 @@ fgdbm_initialize(int argc, VALUE *argv, VALUE obj)
if (flags & RUBY_GDBM_RW_BIT) {
flags &= ~RUBY_GDBM_RW_BIT;
- dbm = gdbm_open(RSTRING_PTR(file), MY_BLOCK_SIZE,
+ dbm = gdbm_open(RSTRING_PTR(file), MY_BLOCK_SIZE,
flags, mode, MY_FATAL_FUNC);
}
else {
dbm = 0;
if (mode >= 0)
- dbm = gdbm_open(RSTRING_PTR(file), MY_BLOCK_SIZE,
+ dbm = gdbm_open(RSTRING_PTR(file), MY_BLOCK_SIZE,
GDBM_WRCREAT|flags, mode, MY_FATAL_FUNC);
if (!dbm)
- dbm = gdbm_open(RSTRING_PTR(file), MY_BLOCK_SIZE,
+ dbm = gdbm_open(RSTRING_PTR(file), MY_BLOCK_SIZE,
GDBM_WRITER|flags, 0, MY_FATAL_FUNC);
if (!dbm)
- dbm = gdbm_open(RSTRING_PTR(file), MY_BLOCK_SIZE,
+ dbm = gdbm_open(RSTRING_PTR(file), MY_BLOCK_SIZE,
GDBM_READER|flags, 0, MY_FATAL_FUNC);
}
@@ -300,7 +300,7 @@ rb_gdbm_fetch2(GDBM_FILE dbm, VALUE keystr)
StringValue(keystr);
key.dptr = RSTRING_PTR(keystr);
- key.dsize = RSTRING_LEN(keystr);
+ key.dsize = (int)RSTRING_LEN(keystr);
return rb_gdbm_fetch(dbm, key);
}
@@ -338,7 +338,7 @@ rb_gdbm_nextkey(GDBM_FILE dbm, VALUE keystr)
VALUE str;
key.dptr = RSTRING_PTR(keystr);
- key.dsize = RSTRING_LEN(keystr);
+ key.dsize = (int)RSTRING_LEN(keystr);
key2 = gdbm_nextkey(dbm, key);
if (key2.dptr == 0)
return Qnil;
@@ -416,9 +416,9 @@ fgdbm_key(VALUE obj, VALUE valstr)
valstr2 = rb_gdbm_fetch2(dbm, keystr);
if (!NIL_P(valstr2) &&
- RSTRING_LEN(valstr) == RSTRING_LEN(valstr2) &&
+ (int)RSTRING_LEN(valstr) == (int)RSTRING_LEN(valstr2) &&
memcmp(RSTRING_PTR(valstr), RSTRING_PTR(valstr2),
- RSTRING_LEN(valstr)) == 0) {
+ (int)RSTRING_LEN(valstr)) == 0) {
return keystr;
}
}
@@ -435,9 +435,9 @@ fgdbm_index(VALUE obj, VALUE value)
/*
* call-seq:
- * gdbm.select { |value| block } -> array
+ * gdbm.select { |key, value| block } -> array
*
- * Returns a new array of all values of the database for which _block_
+ * Returns a new array of all key-value pairs of the database for which _block_
* evaluates to true.
*/
static VALUE
@@ -499,7 +499,7 @@ rb_gdbm_delete(VALUE obj, VALUE keystr)
rb_gdbm_modify(obj);
StringValue(keystr);
key.dptr = RSTRING_PTR(keystr);
- key.dsize = RSTRING_LEN(keystr);
+ key.dsize = (int)RSTRING_LEN(keystr);
GetDBM2(obj, dbmp, dbm);
if (!gdbm_exists(dbm, key)) {
@@ -537,7 +537,7 @@ fgdbm_delete(VALUE obj, VALUE keystr)
* call-seq:
* gdbm.shift -> (key, value) or nil
*
- * Removes a key-value-pair from this database and returns it as a
+ * Removes a key-value-pair from this database and returns it as a
* two-item array [ _key_, _value_ ]. Returns nil if the database is empty.
*/
static VALUE
@@ -591,7 +591,7 @@ fgdbm_delete_if(VALUE obj)
for (i = 0; i < RARRAY_LEN(ary); i++)
rb_gdbm_delete(obj, RARRAY_PTR(ary)[i]);
if (status) rb_jump_tag(status);
- if (n > 0) dbmp->di_size = n - RARRAY_LEN(ary);
+ if (n > 0) dbmp->di_size = n - (int)RARRAY_LEN(ary);
return obj;
}
@@ -619,7 +619,7 @@ fgdbm_clear(VALUE obj)
free(key.dptr);
rb_raise(rb_eGDBMError, "%s", gdbm_strerror(gdbm_errno));
}
- free(key.dptr);
+ free(key.dptr);
}
#else
while (key = gdbm_firstkey(dbm), key.dptr) {
@@ -683,10 +683,10 @@ fgdbm_store(VALUE obj, VALUE keystr, VALUE valstr)
StringValue(valstr);
key.dptr = RSTRING_PTR(keystr);
- key.dsize = RSTRING_LEN(keystr);
+ key.dsize = (int)RSTRING_LEN(keystr);
val.dptr = RSTRING_PTR(valstr);
- val.dsize = RSTRING_LEN(valstr);
+ val.dsize = (int)RSTRING_LEN(valstr);
GetDBM2(obj, dbmp, dbm);
dbmp->di_size = -1;
@@ -942,7 +942,7 @@ fgdbm_has_key(VALUE obj, VALUE keystr)
StringValue(keystr);
key.dptr = RSTRING_PTR(keystr);
- key.dsize = RSTRING_LEN(keystr);
+ key.dsize = (int)RSTRING_LEN(keystr);
GetDBM2(obj, dbmp, dbm);
if (gdbm_exists(dbm, key))
@@ -973,9 +973,9 @@ fgdbm_has_value(VALUE obj, VALUE valstr)
valstr2 = rb_gdbm_fetch2(dbm, keystr);
if (!NIL_P(valstr2) &&
- RSTRING_LEN(valstr) == RSTRING_LEN(valstr2) &&
+ (int)RSTRING_LEN(valstr) == (int)RSTRING_LEN(valstr2) &&
memcmp(RSTRING_PTR(valstr), RSTRING_PTR(valstr2),
- RSTRING_LEN(valstr)) == 0) {
+ (int)RSTRING_LEN(valstr)) == 0) {
return Qtrue;
}
}
diff --git a/ext/iconv/.cvsignore b/ext/iconv/.cvsignore
deleted file mode 100644
index 66c8f5297a..0000000000
--- a/ext/iconv/.cvsignore
+++ /dev/null
@@ -1,6 +0,0 @@
-Makefile
-mkmf.log
-*.def
-iconv.rb
-config.charset
-extconf.h
diff --git a/ext/iconv/charset_alias.rb b/ext/iconv/charset_alias.rb
index d4ed9139c8..cd567a8e2e 100644
--- a/ext/iconv/charset_alias.rb
+++ b/ext/iconv/charset_alias.rb
@@ -3,8 +3,8 @@
require 'rbconfig'
require 'optparse'
-# http://www.ctan.org/tex-archive/macros/texinfo/texinfo/intl/config.charset
-# Fri, 30 May 2003 00:09:00 GMT'
+# http://www.ctan.org/get/macros/texinfo/texinfo/gnulib/lib/config.charset
+# Tue, 25 Dec 2007 00:00:00 GMT
OS = RbConfig::CONFIG["target_os"]
SHELL = RbConfig::CONFIG['SHELL']
@@ -95,7 +95,8 @@ end
target = OS
opt = nil
-ARGV.options do |opt|
+ARGV.options do |opt2|
+ opt = opt2
opt.banner << " config.status map.rb"
opt.on("--target OS") {|t| target = t}
opt.parse! and (1..2) === ARGV.size
diff --git a/ext/iconv/extconf.rb b/ext/iconv/extconf.rb
index 9632bf4db9..c4a57c80d6 100644
--- a/ext/iconv/extconf.rb
+++ b/ext/iconv/extconf.rb
@@ -7,6 +7,7 @@ conf = with_config("config-charset", enable_config("config-charset", conf))
if have_func("iconv", "iconv.h") or
have_library("iconv", "iconv", "iconv.h")
+ check_signedness("size_t")
if checking_for("const of iconv() 2nd argument") do
create_tmpsrc(cpp_include("iconv.h") + "---> iconv(cd,0,0,0,0) <---")
src = xpopen(cpp_command("")) {|f|f.read}
diff --git a/ext/iconv/iconv.c b/ext/iconv/iconv.c
index 35e5c34634..531745c38d 100644
--- a/ext/iconv/iconv.c
+++ b/ext/iconv/iconv.c
@@ -26,20 +26,20 @@
* == Summary
*
* Ruby extension for charset conversion.
- *
+ *
* == Abstract
*
* Iconv is a wrapper class for the UNIX 95 <tt>iconv()</tt> function family,
* which translates string between various encoding systems.
- *
+ *
* See Open Group's on-line documents for more details.
* * <tt>iconv.h</tt>: http://www.opengroup.org/onlinepubs/007908799/xsh/iconv.h.html
* * <tt>iconv_open()</tt>: http://www.opengroup.org/onlinepubs/007908799/xsh/iconv_open.html
* * <tt>iconv()</tt>: http://www.opengroup.org/onlinepubs/007908799/xsh/iconv.html
* * <tt>iconv_close()</tt>: http://www.opengroup.org/onlinepubs/007908799/xsh/iconv_close.html
- *
+ *
* Which coding systems are available is platform-dependent.
- *
+ *
* == Examples
*
* 1. Simple conversion between two charsets.
@@ -106,6 +106,7 @@ static VALUE rb_eIconvBrokenLibrary;
static ID rb_success, rb_failed;
static VALUE iconv_fail _((VALUE error, VALUE success, VALUE failed, struct iconv_env_t* env, const char *mesg));
+static VALUE iconv_fail_retry _((VALUE error, VALUE success, VALUE failed, struct iconv_env_t* env, const char *mesg));
static VALUE iconv_failure_initialize _((VALUE error, VALUE mesg, VALUE success, VALUE failed));
static VALUE iconv_failure_success _((VALUE self));
static VALUE iconv_failure_failed _((VALUE self));
@@ -114,7 +115,7 @@ static iconv_t iconv_create _((VALUE to, VALUE from, struct rb_iconv_opt_t *opt,
static void iconv_dfree _((void *cd));
static VALUE iconv_free _((VALUE cd));
static VALUE iconv_try _((iconv_t cd, const char **inptr, size_t *inlen, char **outptr, size_t *outlen));
-static VALUE rb_str_derive _((VALUE str, const char* ptr, int len));
+static VALUE rb_str_derive _((VALUE str, const char* ptr, long len));
static VALUE iconv_convert _((iconv_t cd, VALUE str, long start, long length, int toidx,
struct iconv_env_t* env));
static VALUE iconv_s_allocate _((VALUE klass));
@@ -163,15 +164,28 @@ map_charset(VALUE *code)
VALUE val = StringValue(*code);
if (RHASH_SIZE(charset_map)) {
+ st_data_t data;
VALUE key = rb_funcall2(val, rb_intern("downcase"), 0, 0);
StringValuePtr(key);
- if (st_lookup(RHASH_TBL(charset_map), key, &val)) {
- *code = val;
+ if (st_lookup(RHASH_TBL(charset_map), key, &data)) {
+ *code = (VALUE)data;
}
}
return StringValuePtr(*code);
}
+NORETURN(static void rb_iconv_sys_fail(const char *s));
+static void
+rb_iconv_sys_fail(const char *s)
+{
+ if (errno == 0) {
+ rb_exc_raise(iconv_fail(rb_eIconvBrokenLibrary, Qnil, Qnil, NULL, s));
+ }
+ rb_sys_fail(s);
+}
+
+#define rb_sys_fail(s) rb_iconv_sys_fail(s)
+
static iconv_t
iconv_create(VALUE to, VALUE from, struct rb_iconv_opt_t *opt, int *idx)
{
@@ -231,8 +245,8 @@ iconv_create(VALUE to, VALUE from, struct rb_iconv_opt_t *opt, int *idx)
s = RSTRING_PTR(msg);
rb_str_set_len(msg, strlen(s));
if (!inval) rb_sys_fail(s);
- iconv_fail(rb_eIconvInvalidEncoding,
- Qnil, rb_ary_new3(2, to, from), NULL, s);
+ rb_exc_raise(iconv_fail(rb_eIconvInvalidEncoding, Qnil,
+ rb_ary_new3(2, to, from), NULL, s));
}
}
@@ -372,14 +386,20 @@ iconv_fail(VALUE error, VALUE success, VALUE failed, struct iconv_env_t* env, co
args[2] = rb_ary_new4(env->argc, env->argv);
}
}
- error = rb_class_new_instance(3, args, error);
+ return rb_class_new_instance(3, args, error);
+}
+
+static VALUE
+iconv_fail_retry(VALUE error, VALUE success, VALUE failed, struct iconv_env_t* env, const char *mesg)
+{
+ error = iconv_fail(error, success, failed, env, mesg);
if (!rb_block_given_p()) rb_exc_raise(error);
rb_set_errinfo(error);
return rb_yield(failed);
}
static VALUE
-rb_str_derive(VALUE str, const char* ptr, int len)
+rb_str_derive(VALUE str, const char* ptr, long len)
{
VALUE ret;
@@ -418,7 +438,7 @@ iconv_convert(iconv_t cd, VALUE str, long start, long length, int toidx, struct
error = iconv_try(cd, &inptr, &inlen, &outptr, &outlen);
if (RTEST(error)) {
unsigned int i;
- rescue = iconv_fail(error, Qnil, Qnil, env, 0);
+ rescue = iconv_fail_retry(error, Qnil, Qnil, env, 0);
if (TYPE(rescue) == T_ARRAY) {
str = RARRAY_LEN(rescue) > 0 ? RARRAY_PTR(rescue)[0] : Qnil;
}
@@ -435,7 +455,7 @@ iconv_convert(iconv_t cd, VALUE str, long start, long length, int toidx, struct
length = 0;
}
else {
- int slen;
+ long slen;
StringValue(str);
slen = RSTRING_LEN(str);
@@ -457,11 +477,15 @@ iconv_convert(iconv_t cd, VALUE str, long start, long length, int toidx, struct
errmsg[0] = 0;
error = iconv_try(cd, &inptr, &inlen, &outptr, &outlen);
- if (0 <= outlen && outlen <= sizeof(buffer)) {
+ if (
+#if SIGNEDNESS_OF_SIZE_T < 0
+ 0 <= outlen &&
+#endif
+ outlen <= sizeof(buffer)) {
outlen = sizeof(buffer) - outlen;
if (NIL_P(error) || /* something converted */
- outlen > inptr - tmpstart || /* input can't contain output */
- (outlen < inptr - tmpstart && inlen > 0) || /* something skipped */
+ outlen > (size_t)(inptr - tmpstart) || /* input can't contain output */
+ (outlen < (size_t)(inptr - tmpstart) && inlen > 0) || /* something skipped */
memcmp(buffer, tmpstart, outlen)) /* something differs */
{
if (NIL_P(str)) {
@@ -502,7 +526,7 @@ iconv_convert(iconv_t cd, VALUE str, long start, long length, int toidx, struct
rb_str_cat(ret, instart, inptr - instart);
}
str = rb_str_derive(str, inptr, inlen);
- rescue = iconv_fail(error, ret, str, env, errmsg);
+ rescue = iconv_fail_retry(error, ret, str, env, errmsg);
if (TYPE(rescue) == T_ARRAY) {
if ((len = RARRAY_LEN(rescue)) > 0)
rb_str_concat(ret, RARRAY_PTR(rescue)[0]);
@@ -611,7 +635,7 @@ get_iconv_opt(struct rb_iconv_opt_t *opt, VALUE options)
*
* Creates new code converter from a coding-system designated with +from+
* to another one designated with +to+.
- *
+ *
* === Parameters
*
* +to+:: encoding name for destination
@@ -1093,7 +1117,7 @@ iconv_failure_success(VALUE self)
* call-seq: failed
*
* Returns substring of the original string passed to Iconv that starts at the
- * character caused the exception.
+ * character caused the exception.
*/
static VALUE
iconv_failure_failed(VALUE self)
@@ -1123,13 +1147,13 @@ iconv_failure_inspect(VALUE self)
/*
* Document-class: Iconv::InvalidEncoding
- *
+ *
* Requested coding-system is not available on this system.
*/
/*
* Document-class: Iconv::IllegalSequence
- *
+ *
* Input conversion stopped due to an input byte that does not belong to
* the input codeset, or the output codeset does not contain the
* character.
@@ -1137,29 +1161,56 @@ iconv_failure_inspect(VALUE self)
/*
* Document-class: Iconv::InvalidCharacter
- *
+ *
* Input conversion stopped due to an incomplete character or shift
* sequence at the end of the input buffer.
*/
/*
* Document-class: Iconv::OutOfRange
- *
+ *
* Iconv library internal error. Must not occur.
*/
/*
* Document-class: Iconv::BrokenLibrary
- *
+ *
* Detected a bug of underlying iconv(3) libray.
* * returns an error without setting errno properly
*/
+static void
+warn_deprecated(void)
+{
+ static const char message[] =
+ ": iconv will be deprecated in the future, use String#encode instead.\n";
+ VALUE msg = Qnil, caller = rb_make_backtrace();
+ long i;
+
+ for (i = 1; i < RARRAY_LEN(caller); ++i) {
+ VALUE s = RARRAY_PTR(caller)[i];
+ if (strncmp(RSTRING_PTR(s), "<internal:", 10) != 0) {
+ msg = s;
+ break;
+ }
+ }
+ if (NIL_P(msg)) {
+ msg = rb_str_new_cstr(message + 2);
+ }
+ else {
+ rb_str_cat(msg, message, sizeof(message) - 1);
+ }
+ rb_io_puts(1, &msg, rb_stderr);
+}
+
void
Init_iconv(void)
{
VALUE rb_cIconv = rb_define_class("Iconv", rb_cData);
+ if (!NIL_P(ruby_verbose)) {
+ warn_deprecated();
+ }
rb_define_alloc_func(rb_cIconv, iconv_s_allocate);
rb_define_singleton_method(rb_cIconv, "open", iconv_s_open, -1);
rb_define_singleton_method(rb_cIconv, "iconv", iconv_s_iconv, -1);
diff --git a/ext/iconv/mkwrapper.rb b/ext/iconv/mkwrapper.rb
index 34718507d6..44d5fcf194 100644
--- a/ext/iconv/mkwrapper.rb
+++ b/ext/iconv/mkwrapper.rb
@@ -2,8 +2,8 @@
require 'rbconfig'
require 'optparse'
-# http://www.ctan.org/tex-archive/macros/texinfo/texinfo/intl/config.charset
-# Fri, 30 May 2003 00:09:00 GMT'
+# http://www.ctan.org/get/macros/texinfo/texinfo/gnulib/lib/config.charset
+# Tue, 25 Dec 2007 00:00:00 GMT
HEADER = <<SRC
require 'iconv.so'
@@ -43,9 +43,9 @@ def charset_alias(config_charset, mapfile = nil)
end
src << " end" << "end"
if mapfile
- open(mapfile, "wb") {|f| f.puts *src}
+ open(mapfile, "wb") {|f| f.puts(*src)}
else
- puts *src
+ puts(*src)
end
end
diff --git a/ext/io/console/console.c b/ext/io/console/console.c
new file mode 100644
index 0000000000..efad30c1ca
--- /dev/null
+++ b/ext/io/console/console.c
@@ -0,0 +1,762 @@
+/* -*- c-file-style: "ruby" -*- */
+/*
+ * console IO module
+ */
+#include "ruby.h"
+#ifdef HAVE_RUBY_IO_H
+#include "ruby/io.h"
+#else
+#include "rubyio.h"
+#endif
+
+#ifndef HAVE_RB_IO_T
+typedef OpenFile rb_io_t;
+#endif
+
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>
+#endif
+#ifdef HAVE_FCNTL_H
+#include <fcntl.h>
+#endif
+#ifdef HAVE_SYS_IOCTL_H
+#include <sys/ioctl.h>
+#endif
+
+#if defined HAVE_TERMIOS_H
+# include <termios.h>
+typedef struct termios conmode;
+
+static int
+setattr(int fd, conmode *t)
+{
+ while (tcsetattr(fd, TCSAFLUSH, t)) {
+ if (errno != EINTR) return 0;
+ }
+ return 1;
+}
+# define getattr(fd, t) (tcgetattr(fd, t) == 0)
+#elif defined HAVE_TERMIO_H
+# include <termio.h>
+typedef struct termio conmode;
+# define setattr(fd, t) (ioctl(fd, TCSETAF, t) == 0)
+# define getattr(fd, t) (ioctl(fd, TCGETA, t) == 0)
+#elif defined HAVE_SGTTY_H
+# include <sgtty.h>
+typedef struct sgttyb conmode;
+# ifdef HAVE_STTY
+# define setattr(fd, t) (stty(fd, t) == 0)
+# else
+# define setattr(fd, t) (ioctl((fd), TIOCSETP, (t)) == 0)
+# endif
+# ifdef HAVE_GTTY
+# define getattr(fd, t) (gtty(fd, t) == 0)
+# else
+# define getattr(fd, t) (ioctl((fd), TIOCGETP, (t)) == 0)
+# endif
+#elif defined _WIN32
+#include <winioctl.h>
+typedef DWORD conmode;
+
+#ifdef HAVE_RB_W32_MAP_ERRNO
+#define LAST_ERROR rb_w32_map_errno(GetLastError())
+#else
+#define LAST_ERROR EBADF
+#endif
+#define SET_LAST_ERROR (errno = LAST_ERROR, 0)
+
+static int
+setattr(int fd, conmode *t)
+{
+ int x = SetConsoleMode((HANDLE)rb_w32_get_osfhandle(fd), *t);
+ if (!x) errno = LAST_ERROR;
+ return x;
+}
+
+static int
+getattr(int fd, conmode *t)
+{
+ int x = GetConsoleMode((HANDLE)rb_w32_get_osfhandle(fd), t);
+ if (!x) errno = LAST_ERROR;
+ return x;
+}
+#endif
+#ifndef SET_LAST_ERROR
+#define SET_LAST_ERROR (0)
+#endif
+
+#ifndef InitVM
+#define InitVM(ext) {void InitVM_##ext(void);InitVM_##ext();}
+#endif
+
+static ID id_getc, id_console;
+
+typedef struct {
+ int vmin;
+ int vtime;
+} rawmode_arg_t;
+
+static rawmode_arg_t *
+rawmode_opt(int argc, VALUE *argv, rawmode_arg_t *opts)
+{
+ rawmode_arg_t *optp = NULL;
+ VALUE vopts;
+ rb_scan_args(argc, argv, "0:", &vopts);
+ if (!NIL_P(vopts)) {
+ VALUE vmin = rb_hash_aref(vopts, ID2SYM(rb_intern("min")));
+ VALUE vtime = rb_hash_aref(vopts, ID2SYM(rb_intern("time")));
+ VALUE v10 = INT2FIX(10);
+ if (!NIL_P(vmin)) {
+ vmin = rb_funcall3(vmin, '*', 1, &v10);
+ opts->vmin = NUM2INT(vmin);
+ optp = opts;
+ }
+ if (!NIL_P(vtime)) {
+ vtime = rb_funcall3(vtime, '*', 1, &v10);
+ opts->vtime = NUM2INT(vtime);
+ optp = opts;
+ }
+ }
+ return optp;
+}
+
+static void
+set_rawmode(conmode *t, void *arg)
+{
+#ifdef HAVE_CFMAKERAW
+ cfmakeraw(t);
+ t->c_lflag &= ~(ECHOE|ECHOK);
+#elif defined HAVE_TERMIOS_H || defined HAVE_TERMIO_H
+ t->c_iflag &= ~(IGNBRK|BRKINT|PARMRK|ISTRIP|INLCR|IGNCR|ICRNL|IXON);
+ t->c_oflag &= ~OPOST;
+ t->c_lflag &= ~(ECHO|ECHOE|ECHOK|ECHONL|ICANON|ISIG|IEXTEN);
+ t->c_cflag &= ~(CSIZE|PARENB);
+ t->c_cflag |= CS8;
+#elif defined HAVE_SGTTY_H
+ t->sg_flags &= ~ECHO;
+ t->sg_flags |= RAW;
+#elif defined _WIN32
+ *t = 0;
+#endif
+#if defined HAVE_TERMIOS_H || defined HAVE_TERMIO_H
+ if (arg) {
+ const rawmode_arg_t *r = arg;
+ if (r->vmin >= 0) t->c_cc[VMIN] = r->vmin;
+ if (r->vtime >= 0) t->c_cc[VTIME] = r->vtime;
+ }
+#endif
+}
+
+static void
+set_cookedmode(conmode *t, void *arg)
+{
+#if defined HAVE_TERMIOS_H || defined HAVE_TERMIO_H
+ t->c_iflag |= (BRKINT|ISTRIP|ICRNL|IXON);
+ t->c_oflag |= OPOST;
+ t->c_lflag |= (ECHO|ECHOE|ECHOK|ECHONL|ICANON|ISIG|IEXTEN);
+#elif defined HAVE_SGTTY_H
+ t->sg_flags |= ECHO;
+ t->sg_flags &= ~RAW;
+#elif defined _WIN32
+ *t |= ENABLE_ECHO_INPUT|ENABLE_LINE_INPUT|ENABLE_PROCESSED_INPUT;
+#endif
+}
+
+static void
+set_noecho(conmode *t, void *arg)
+{
+#if defined HAVE_TERMIOS_H || defined HAVE_TERMIO_H
+ t->c_lflag &= ~(ECHO | ECHOE | ECHOK | ECHONL);
+#elif defined HAVE_SGTTY_H
+ t->sg_flags &= ~ECHO;
+#elif defined _WIN32
+ *t &= ~ENABLE_ECHO_INPUT;
+#endif
+}
+
+static void
+set_echo(conmode *t, void *arg)
+{
+#if defined HAVE_TERMIOS_H || defined HAVE_TERMIO_H
+ t->c_lflag |= (ECHO | ECHOE | ECHOK | ECHONL);
+#elif defined HAVE_SGTTY_H
+ t->sg_flags |= ECHO;
+#elif defined _WIN32
+ *t |= ENABLE_ECHO_INPUT;
+#endif
+}
+
+static int
+echo_p(conmode *t)
+{
+#if defined HAVE_TERMIOS_H || defined HAVE_TERMIO_H
+ return (t->c_lflag & (ECHO | ECHONL)) != 0;
+#elif defined HAVE_SGTTY_H
+ return (t->sg_flags & ECHO) != 0;
+#elif defined _WIN32
+ return (*t & ENABLE_ECHO_INPUT) != 0;
+#endif
+}
+
+static int
+set_ttymode(int fd, conmode *t, void (*setter)(conmode *, void *), void *arg)
+{
+ conmode r;
+ if (!getattr(fd, t)) return 0;
+ r = *t;
+ setter(&r, arg);
+ return setattr(fd, &r);
+}
+
+#ifdef GetReadFile
+#define GetReadFD(fptr) fileno(GetReadFile(fptr))
+#else
+#define GetReadFD(fptr) ((fptr)->fd)
+#endif
+
+#ifdef GetWriteFile
+#define GetWriteFD(fptr) fileno(GetWriteFile(fptr))
+#else
+static inline int
+get_write_fd(const rb_io_t *fptr)
+{
+ VALUE wio = fptr->tied_io_for_writing;
+ rb_io_t *ofptr;
+ if (!wio) return fptr->fd;
+ GetOpenFile(wio, ofptr);
+ return ofptr->fd;
+}
+#define GetWriteFD(fptr) get_write_fd(fptr)
+#endif
+
+#define FD_PER_IO 2
+
+static VALUE
+ttymode(VALUE io, VALUE (*func)(VALUE), void (*setter)(conmode *, void *), void *arg)
+{
+ rb_io_t *fptr;
+ int status = -1;
+ int error = 0;
+ int fd[FD_PER_IO];
+ conmode t[FD_PER_IO];
+ VALUE result = Qnil;
+
+ GetOpenFile(io, fptr);
+ fd[0] = GetReadFD(fptr);
+ if (fd[0] != -1) {
+ if (set_ttymode(fd[0], t+0, setter, arg)) {
+ status = 0;
+ }
+ else {
+ error = errno;
+ fd[0] = -1;
+ }
+ }
+ fd[1] = GetWriteFD(fptr);
+ if (fd[1] != -1 && fd[1] != fd[0]) {
+ if (set_ttymode(fd[1], t+1, setter, arg)) {
+ status = 0;
+ }
+ else {
+ error = errno;
+ fd[1] = -1;
+ }
+ }
+ if (status == 0) {
+ result = rb_protect(func, io, &status);
+ }
+ GetOpenFile(io, fptr);
+ if (fd[0] != -1 && fd[0] == GetReadFD(fptr)) {
+ if (!setattr(fd[0], t+0)) {
+ error = errno;
+ status = -1;
+ }
+ }
+ if (fd[1] != -1 && fd[1] != fd[0] && fd[1] == GetWriteFD(fptr)) {
+ if (!setattr(fd[1], t+1)) {
+ error = errno;
+ status = -1;
+ }
+ }
+ if (status) {
+ if (status == -1) {
+ errno = error;
+ rb_sys_fail(0);
+ }
+ rb_jump_tag(status);
+ }
+ return result;
+}
+
+/*
+ * call-seq:
+ * io.raw(min: nil, time: nil) {|io| }
+ *
+ * Yields +self+ within raw mode.
+ *
+ * STDIN.raw(&:gets)
+ *
+ * will read and return a line without echo back and line editing.
+ *
+ * You must require 'io/console' to use this method.
+ */
+static VALUE
+console_raw(int argc, VALUE *argv, VALUE io)
+{
+ rawmode_arg_t opts, *optp = rawmode_opt(argc, argv, &opts);
+ return ttymode(io, rb_yield, set_rawmode, optp);
+}
+
+/*
+ * call-seq:
+ * io.raw!(min: nil, time: nil)
+ *
+ * Enables raw mode.
+ *
+ * If the terminal mode needs to be back, use io.raw { ... }.
+ *
+ * You must require 'io/console' to use this method.
+ */
+static VALUE
+console_set_raw(int argc, VALUE *argv, VALUE io)
+{
+ conmode t;
+ rb_io_t *fptr;
+ int fd;
+ rawmode_arg_t opts, *optp = rawmode_opt(argc, argv, &opts);
+
+ GetOpenFile(io, fptr);
+ fd = GetReadFD(fptr);
+ if (!getattr(fd, &t)) rb_sys_fail(0);
+ set_rawmode(&t, optp);
+ if (!setattr(fd, &t)) rb_sys_fail(0);
+ return io;
+}
+
+/*
+ * call-seq:
+ * io.cooked {|io| }
+ *
+ * Yields +self+ within cooked mode.
+ *
+ * STDIN.cooked(&:gets)
+ *
+ * will read and return a line with echo back and line editing.
+ *
+ * You must require 'io/console' to use this method.
+ */
+static VALUE
+console_cooked(VALUE io)
+{
+ return ttymode(io, rb_yield, set_cookedmode, NULL);
+}
+
+/*
+ * call-seq:
+ * io.cooked!
+ *
+ * Enables cooked mode.
+ *
+ * If the terminal mode needs to be back, use io.cooked { ... }.
+ *
+ * You must require 'io/console' to use this method.
+ */
+static VALUE
+console_set_cooked(VALUE io)
+{
+ conmode t;
+ rb_io_t *fptr;
+ int fd;
+
+ GetOpenFile(io, fptr);
+ fd = GetReadFD(fptr);
+ if (!getattr(fd, &t)) rb_sys_fail(0);
+ set_cookedmode(&t, NULL);
+ if (!setattr(fd, &t)) rb_sys_fail(0);
+ return io;
+}
+
+static VALUE
+getc_call(VALUE io)
+{
+ return rb_funcall2(io, id_getc, 0, 0);
+}
+
+/*
+ * call-seq:
+ * io.getch(min: nil, time: nil) -> char
+ *
+ * Reads and returns a character in raw mode.
+ *
+ * You must require 'io/console' to use this method.
+ */
+static VALUE
+console_getch(int argc, VALUE *argv, VALUE io)
+{
+ rawmode_arg_t opts, *optp = rawmode_opt(argc, argv, &opts);
+ return ttymode(io, getc_call, set_rawmode, optp);
+}
+
+/*
+ * call-seq:
+ * io.noecho {|io| }
+ *
+ * Yields +self+ with disabling echo back.
+ *
+ * STDIN.noecho(&:gets)
+ *
+ * will read and return a line without echo back.
+ *
+ * You must require 'io/console' to use this method.
+ */
+static VALUE
+console_noecho(VALUE io)
+{
+ return ttymode(io, rb_yield, set_noecho, NULL);
+}
+
+/*
+ * call-seq:
+ * io.echo = flag
+ *
+ * Enables/disables echo back.
+ * On some platforms, all combinations of this flags and raw/cooked
+ * mode may not be valid.
+ *
+ * You must require 'io/console' to use this method.
+ */
+static VALUE
+console_set_echo(VALUE io, VALUE f)
+{
+ conmode t;
+ rb_io_t *fptr;
+ int fd;
+
+ GetOpenFile(io, fptr);
+ fd = GetReadFD(fptr);
+ if (!getattr(fd, &t)) rb_sys_fail(0);
+ if (RTEST(f))
+ set_echo(&t, NULL);
+ else
+ set_noecho(&t, NULL);
+ if (!setattr(fd, &t)) rb_sys_fail(0);
+ return io;
+}
+
+/*
+ * call-seq:
+ * io.echo? -> true or false
+ *
+ * Returns +true+ if echo back is enabled.
+ *
+ * You must require 'io/console' to use this method.
+ */
+static VALUE
+console_echo_p(VALUE io)
+{
+ conmode t;
+ rb_io_t *fptr;
+ int fd;
+
+ GetOpenFile(io, fptr);
+ fd = GetReadFD(fptr);
+ if (!getattr(fd, &t)) rb_sys_fail(0);
+ return echo_p(&t) ? Qtrue : Qfalse;
+}
+
+#if defined TIOCGWINSZ
+typedef struct winsize rb_console_size_t;
+#define getwinsize(fd, buf) (ioctl((fd), TIOCGWINSZ, (buf)) == 0)
+#define setwinsize(fd, buf) (ioctl((fd), TIOCSWINSZ, (buf)) == 0)
+#define winsize_row(buf) (buf)->ws_row
+#define winsize_col(buf) (buf)->ws_col
+#elif defined _WIN32
+typedef CONSOLE_SCREEN_BUFFER_INFO rb_console_size_t;
+#define getwinsize(fd, buf) ( \
+ GetConsoleScreenBufferInfo((HANDLE)rb_w32_get_osfhandle(fd), (buf)) || \
+ SET_LAST_ERROR)
+#define winsize_row(buf) ((buf)->srWindow.Bottom - (buf)->srWindow.Top + 1)
+#define winsize_col(buf) (buf)->dwSize.X
+#endif
+
+#if defined TIOCGWINSZ || defined _WIN32
+#define USE_CONSOLE_GETSIZE 1
+#endif
+
+#ifdef USE_CONSOLE_GETSIZE
+/*
+ * call-seq:
+ * io.winsize -> [rows, columns]
+ *
+ * Returns console size.
+ *
+ * You must require 'io/console' to use this method.
+ */
+static VALUE
+console_winsize(VALUE io)
+{
+ rb_io_t *fptr;
+ int fd;
+ rb_console_size_t ws;
+
+ GetOpenFile(io, fptr);
+ fd = GetWriteFD(fptr);
+ if (!getwinsize(fd, &ws)) rb_sys_fail(0);
+ return rb_assoc_new(INT2NUM(winsize_row(&ws)), INT2NUM(winsize_col(&ws)));
+}
+
+/*
+ * call-seq:
+ * io.winsize = [rows, columns]
+ *
+ * Tries to set console size. The effect depends on the platform and
+ * the running environment.
+ *
+ * You must require 'io/console' to use this method.
+ */
+static VALUE
+console_set_winsize(VALUE io, VALUE size)
+{
+ rb_io_t *fptr;
+ rb_console_size_t ws;
+#if defined _WIN32
+ HANDLE wh;
+ int newrow, newcol;
+#endif
+ VALUE row, col, xpixel, ypixel;
+#if defined TIOCSWINSZ
+ int fd;
+#endif
+
+ GetOpenFile(io, fptr);
+ size = rb_Array(size);
+ rb_scan_args((int)RARRAY_LEN(size), RARRAY_PTR(size), "22",
+ &row, &col, &xpixel, &ypixel);
+#if defined TIOCSWINSZ
+ fd = GetWriteFD(fptr);
+ ws.ws_row = ws.ws_col = ws.ws_xpixel = ws.ws_ypixel = 0;
+#define SET(m) ws.ws_##m = NIL_P(m) ? 0 : (unsigned short)NUM2UINT(m)
+ SET(row);
+ SET(col);
+ SET(xpixel);
+ SET(ypixel);
+#undef SET
+ if (!setwinsize(fd, &ws)) rb_sys_fail(0);
+#elif defined _WIN32
+ wh = (HANDLE)rb_w32_get_osfhandle(GetReadFD(fptr));
+ newrow = (SHORT)NUM2UINT(row);
+ newcol = (SHORT)NUM2UINT(col);
+ if (!getwinsize(GetReadFD(fptr), &ws)) {
+ rb_sys_fail("GetConsoleScreenBufferInfo");
+ }
+ if ((ws.dwSize.X < newcol && (ws.dwSize.X = newcol, 1)) ||
+ (ws.dwSize.Y < newrow && (ws.dwSize.Y = newrow, 1))) {
+ if (!(SetConsoleScreenBufferSize(wh, ws.dwSize) || SET_LAST_ERROR)) {
+ rb_sys_fail("SetConsoleScreenBufferInfo");
+ }
+ }
+ ws.srWindow.Left = 0;
+ ws.srWindow.Top = 0;
+ ws.srWindow.Right = newcol;
+ ws.srWindow.Bottom = newrow;
+ if (!(SetConsoleWindowInfo(wh, FALSE, &ws.srWindow) || SET_LAST_ERROR)) {
+ rb_sys_fail("SetConsoleWindowInfo");
+ }
+#endif
+ return io;
+}
+#endif
+
+/*
+ * call-seq:
+ * io.iflush
+ *
+ * Flushes input buffer in kernel.
+ *
+ * You must require 'io/console' to use this method.
+ */
+static VALUE
+console_iflush(VALUE io)
+{
+ rb_io_t *fptr;
+ int fd;
+
+ GetOpenFile(io, fptr);
+ fd = GetReadFD(fptr);
+#if defined HAVE_TERMIOS_H || defined HAVE_TERMIO_H
+ if (tcflush(fd, TCIFLUSH)) rb_sys_fail(0);
+#endif
+ return io;
+}
+
+/*
+ * call-seq:
+ * io.oflush
+ *
+ * Flushes output buffer in kernel.
+ *
+ * You must require 'io/console' to use this method.
+ */
+static VALUE
+console_oflush(VALUE io)
+{
+ rb_io_t *fptr;
+ int fd;
+
+ GetOpenFile(io, fptr);
+ fd = GetWriteFD(fptr);
+#if defined HAVE_TERMIOS_H || defined HAVE_TERMIO_H
+ if (tcflush(fd, TCOFLUSH)) rb_sys_fail(0);
+#endif
+ return io;
+}
+
+/*
+ * call-seq:
+ * io.ioflush
+ *
+ * Flushes input and output buffers in kernel.
+ *
+ * You must require 'io/console' to use this method.
+ */
+static VALUE
+console_ioflush(VALUE io)
+{
+ rb_io_t *fptr;
+#if defined HAVE_TERMIOS_H || defined HAVE_TERMIO_H
+ int fd1, fd2;
+#endif
+
+ GetOpenFile(io, fptr);
+#if defined HAVE_TERMIOS_H || defined HAVE_TERMIO_H
+ fd1 = GetReadFD(fptr);
+ fd2 = GetWriteFD(fptr);
+ if (fd2 != -1 && fd1 != fd2) {
+ if (tcflush(fd1, TCIFLUSH)) rb_sys_fail(0);
+ if (tcflush(fd2, TCOFLUSH)) rb_sys_fail(0);
+ }
+ else {
+ if (tcflush(fd1, TCIOFLUSH)) rb_sys_fail(0);
+ }
+#endif
+ return io;
+}
+
+/*
+ * call-seq:
+ * IO.console -> #<File:/dev/tty>
+ *
+ * Returns an File instance opened console.
+ *
+ * You must require 'io/console' to use this method.
+ */
+static VALUE
+console_dev(VALUE klass)
+{
+ VALUE con = 0;
+ rb_io_t *fptr;
+
+ if (klass == rb_cIO) klass = rb_cFile;
+ if (rb_const_defined(klass, id_console)) {
+ con = rb_const_get(klass, id_console);
+ if (TYPE(con) == T_FILE) {
+ if ((fptr = RFILE(con)->fptr) && GetReadFD(fptr) != -1)
+ return con;
+ }
+ rb_mod_remove_const(klass, ID2SYM(id_console));
+ }
+ {
+ VALUE args[2];
+#if defined HAVE_TERMIOS_H || defined HAVE_TERMIO_H || defined HAVE_SGTTY_H
+# define CONSOLE_DEVICE "/dev/tty"
+#elif defined _WIN32
+# define CONSOLE_DEVICE "con$"
+# define CONSOLE_DEVICE_FOR_READING "conin$"
+# define CONSOLE_DEVICE_FOR_WRITING "conout$"
+#endif
+#ifndef CONSOLE_DEVICE_FOR_READING
+# define CONSOLE_DEVICE_FOR_READING CONSOLE_DEVICE
+#endif
+#ifdef CONSOLE_DEVICE_FOR_WRITING
+ VALUE out;
+ rb_io_t *ofptr;
+#endif
+ int fd;
+
+#ifdef CONSOLE_DEVICE_FOR_WRITING
+ fd = open(CONSOLE_DEVICE_FOR_WRITING, O_WRONLY);
+ if (fd < 0) return Qnil;
+ rb_update_max_fd(fd);
+ args[1] = INT2FIX(O_WRONLY);
+ args[0] = INT2NUM(fd);
+ out = rb_class_new_instance(2, args, klass);
+#endif
+ fd = open(CONSOLE_DEVICE_FOR_READING, O_RDWR);
+ if (fd < 0) {
+#ifdef CONSOLE_DEVICE_FOR_WRITING
+ rb_io_close(out);
+#endif
+ return Qnil;
+ }
+ rb_update_max_fd(fd);
+ args[1] = INT2FIX(O_RDWR);
+ args[0] = INT2NUM(fd);
+ con = rb_class_new_instance(2, args, klass);
+ GetOpenFile(con, fptr);
+ fptr->pathv = rb_obj_freeze(rb_str_new2(CONSOLE_DEVICE));
+#ifdef CONSOLE_DEVICE_FOR_WRITING
+ GetOpenFile(out, ofptr);
+# ifdef HAVE_RB_IO_GET_WRITE_IO
+ ofptr->pathv = fptr->pathv;
+ fptr->tied_io_for_writing = out;
+# else
+ fptr->f2 = ofptr->f;
+ ofptr->f = 0;
+# endif
+ ofptr->mode |= FMODE_SYNC;
+#endif
+ fptr->mode |= FMODE_SYNC;
+ rb_const_set(klass, id_console, con);
+ }
+ return con;
+}
+
+static VALUE
+io_getch(int argc, VALUE *argv, VALUE io)
+{
+ return rb_funcall2(io, rb_intern("getc"), argc, argv);
+}
+
+/*
+ * IO console methods
+ */
+void
+Init_console(void)
+{
+ id_getc = rb_intern("getc");
+ id_console = rb_intern("console");
+ InitVM(console);
+}
+
+void
+InitVM_console(void)
+{
+ rb_define_method(rb_cIO, "raw", console_raw, -1);
+ rb_define_method(rb_cIO, "raw!", console_set_raw, -1);
+ rb_define_method(rb_cIO, "cooked", console_cooked, 0);
+ rb_define_method(rb_cIO, "cooked!", console_set_cooked, 0);
+ rb_define_method(rb_cIO, "getch", console_getch, -1);
+ rb_define_method(rb_cIO, "echo=", console_set_echo, 1);
+ rb_define_method(rb_cIO, "echo?", console_echo_p, 0);
+ rb_define_method(rb_cIO, "noecho", console_noecho, 0);
+ rb_define_method(rb_cIO, "winsize", console_winsize, 0);
+ rb_define_method(rb_cIO, "winsize=", console_set_winsize, 1);
+ rb_define_method(rb_cIO, "iflush", console_iflush, 0);
+ rb_define_method(rb_cIO, "oflush", console_oflush, 0);
+ rb_define_method(rb_cIO, "ioflush", console_ioflush, 0);
+ rb_define_singleton_method(rb_cIO, "console", console_dev, 0);
+ {
+ VALUE mReadable = rb_define_module_under(rb_cIO, "readable");
+ rb_define_method(mReadable, "getch", io_getch, -1);
+ }
+}
diff --git a/ext/io/console/extconf.rb b/ext/io/console/extconf.rb
new file mode 100644
index 0000000000..57cd7ad87f
--- /dev/null
+++ b/ext/io/console/extconf.rb
@@ -0,0 +1,20 @@
+require 'mkmf'
+
+ok = true
+hdr = nil
+case
+when macro_defined?("_WIN32", "")
+ have_func("rb_w32_map_errno", "ruby.h")
+when hdr = %w"termios.h termio.h".find {|h| have_header(h)}
+ have_func("cfmakeraw", hdr)
+when have_header(hdr = "sgtty.h")
+ %w"stty gtty".each {|f| have_func(f, hdr)}
+else
+ ok = false
+end
+have_header("sys/ioctl.h")
+have_func("rb_io_get_write_io", "ruby/io.h")
+have_func("dup3", "unistd.h")
+if ok
+ create_makefile("io/console")
+end
diff --git a/ext/io/console/io-console.gemspec b/ext/io/console/io-console.gemspec
new file mode 100644
index 0000000000..2d34a41336
--- /dev/null
+++ b/ext/io/console/io-console.gemspec
@@ -0,0 +1,15 @@
+# -*- ruby -*-
+_VERSION = "0.3"
+
+Gem::Specification.new do |s|
+ s.name = "io-console"
+ s.version = _VERSION
+ s.date = "2011-06-24"
+ s.summary = "Console interface"
+ s.email = "nobu@ruby-lang.org"
+ s.description = "add console capabilities to IO instances."
+ s.authors = ["Nobu Nakada"]
+ s.require_path = %[.]
+ s.files = %w[console.c extconf.rb lib/console/size.rb]
+ s.extensions = %w[extconf.rb]
+end
diff --git a/ext/io/console/lib/console/size.rb b/ext/io/console/lib/console/size.rb
new file mode 100644
index 0000000000..e9d8a1fbb6
--- /dev/null
+++ b/ext/io/console/lib/console/size.rb
@@ -0,0 +1,20 @@
+def IO.default_console_size
+ [
+ ENV["LINES"].to_i.nonzero? || 25,
+ ENV["COLUMNS"].to_i.nonzero? || 80,
+ ]
+end
+
+begin
+ require 'io/console'
+rescue LoadError
+ class IO
+ alias console_size default_console_size
+ end
+else
+ def IO.console_size
+ console.winsize
+ rescue NoMethodError
+ default_console_size
+ end
+end
diff --git a/ext/io/nonblock/extconf.rb b/ext/io/nonblock/extconf.rb
new file mode 100644
index 0000000000..aecdc16cea
--- /dev/null
+++ b/ext/io/nonblock/extconf.rb
@@ -0,0 +1,8 @@
+require 'mkmf'
+target = "io/nonblock"
+
+hdr = %w"fcntl.h"
+if have_macro("O_NONBLOCK", hdr) and
+ (have_macro("F_GETFL", hdr) or have_macro("F_SETFL", hdr))
+ create_makefile(target)
+end
diff --git a/ext/io/nonblock/nonblock.c b/ext/io/nonblock/nonblock.c
new file mode 100644
index 0000000000..1d866ceb0f
--- /dev/null
+++ b/ext/io/nonblock/nonblock.c
@@ -0,0 +1,114 @@
+/**********************************************************************
+
+ io/wait.c -
+
+ $Author$
+ created at: Tue Jul 14 21:53:18 2009
+
+ All the files in this distribution are covered under the Ruby's
+ license (see the file COPYING).
+
+**********************************************************************/
+
+#include "ruby.h"
+#include "ruby/io.h"
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>
+#endif
+#include <fcntl.h>
+
+#ifdef F_GETFL
+static int
+io_nonblock_mode(int fd)
+{
+ int f = fcntl(fd, F_GETFL);
+ if (f == -1) rb_sys_fail(0);
+ return f;
+}
+#else
+#define io_nonblock_mode(fd) ((void)(fd), 0)
+#endif
+
+#ifdef F_GETFL
+static VALUE
+rb_io_nonblock_p(VALUE io)
+{
+ rb_io_t *fptr;
+ GetOpenFile(io, fptr);
+ if (io_nonblock_mode(fptr->fd) & O_NONBLOCK)
+ return Qtrue;
+ return Qfalse;
+}
+#else
+#define rb_io_nonblock_p rb_f_notimplement
+#endif
+
+#ifdef F_SETFL
+static void
+io_nonblock_set(int fd, int f, int nb)
+{
+ if (nb) {
+ if ((f & O_NONBLOCK) != 0)
+ return;
+ f |= O_NONBLOCK;
+ }
+ else {
+ if ((f & O_NONBLOCK) == 0)
+ return;
+ f &= ~O_NONBLOCK;
+ }
+ if (fcntl(fd, F_SETFL, f) == -1)
+ rb_sys_fail(0);
+}
+
+static VALUE
+rb_io_nonblock_set(VALUE io, VALUE nb)
+{
+ rb_io_t *fptr;
+ GetOpenFile(io, fptr);
+ io_nonblock_set(fptr->fd, io_nonblock_mode(fptr->fd), RTEST(nb));
+ return io;
+}
+
+static VALUE
+io_nonblock_restore(VALUE arg)
+{
+ int *restore = (int *)arg;
+ if (fcntl(restore[0], F_SETFL, restore[1]) == -1)
+ rb_sys_fail(0);
+ return Qnil;
+}
+
+static VALUE
+rb_io_nonblock_block(int argc, VALUE *argv, VALUE io)
+{
+ int nb = 1;
+ rb_io_t *fptr;
+ int f, restore[2];
+
+ GetOpenFile(io, fptr);
+ if (argc > 0) {
+ VALUE v;
+ rb_scan_args(argc, argv, "01", &v);
+ nb = RTEST(v);
+ }
+ f = io_nonblock_mode(fptr->fd);
+ restore[0] = fptr->fd;
+ restore[1] = f;
+ io_nonblock_set(fptr->fd, f, nb);
+ return rb_ensure(rb_yield, io, io_nonblock_restore, (VALUE)restore);
+}
+#else
+#define rb_io_nonblock_set rb_f_notimplement
+#define rb_io_nonblock_block rb_f_notimplement
+#endif
+
+void
+Init_nonblock(void)
+{
+ VALUE io = rb_cIO;
+
+ rb_define_method(io, "nonblock?", rb_io_nonblock_p, 0);
+ rb_define_method(io, "nonblock=", rb_io_nonblock_set, 1);
+ rb_define_method(io, "nonblock", rb_io_nonblock_block, -1);
+}
diff --git a/ext/io/wait/.cvsignore b/ext/io/wait/.cvsignore
deleted file mode 100644
index 8767482975..0000000000
--- a/ext/io/wait/.cvsignore
+++ /dev/null
@@ -1,3 +0,0 @@
-Makefile
-mkmf.log
-extconf.h
diff --git a/ext/io/wait/lib/nonblock.rb b/ext/io/wait/lib/nonblock.rb
deleted file mode 100644
index 2103fdf25b..0000000000
--- a/ext/io/wait/lib/nonblock.rb
+++ /dev/null
@@ -1,23 +0,0 @@
-require "fcntl"
-class IO
- def nonblock?
- (fcntl(Fcntl::F_GETFL) & File::NONBLOCK) != 0
- end
-
- def nonblock=(nb)
- f = fcntl(Fcntl::F_GETFL)
- if nb
- f |= File::NONBLOCK
- else
- f &= ~File::NONBLOCK
- end
- fcntl(Fcntl::F_SETFL, f)
- end
-
- def nonblock(nb = true)
- nb, self.nonblock = nonblock?, nb
- yield
- ensure
- self.nonblock = nb
- end
-end if defined?(Fcntl::F_GETFL)
diff --git a/ext/io/wait/wait.c b/ext/io/wait/wait.c
index b73c9af1ce..34e832b122 100644
--- a/ext/io/wait/wait.c
+++ b/ext/io/wait/wait.c
@@ -40,8 +40,6 @@ static VALUE io_ready_p _((VALUE io));
static VALUE io_wait _((int argc, VALUE *argv, VALUE io));
void Init_wait _((void));
-EXTERN struct timeval rb_time_interval _((VALUE time));
-
/*
* call-seq:
* io.nread -> int
@@ -90,22 +88,6 @@ io_ready_p(VALUE io)
return Qfalse;
}
-struct wait_readable_arg {
- rb_fdset_t fds;
- struct timeval *timeout;
-};
-
-#ifdef HAVE_RB_FD_INIT
-static VALUE
-wait_readable(VALUE p)
-{
- struct wait_readable_arg *arg = (struct wait_readable_arg *)p;
- rb_fdset_t *fds = &arg->fds;
-
- return (VALUE)rb_thread_select(rb_fd_max(fds), rb_fd_ptr(fds), NULL, NULL, arg->timeout);
-}
-#endif
-
/*
* call-seq:
* io.wait -> IO, true, false or nil
@@ -119,34 +101,26 @@ static VALUE
io_wait(int argc, VALUE *argv, VALUE io)
{
rb_io_t *fptr;
- struct wait_readable_arg arg;
- int fd, i;
+ int i;
ioctl_arg n;
VALUE timeout;
struct timeval timerec;
+ struct timeval *tv;
GetOpenFile(io, fptr);
rb_io_check_readable(fptr);
rb_scan_args(argc, argv, "01", &timeout);
if (NIL_P(timeout)) {
- arg.timeout = 0;
+ tv = NULL;
}
else {
timerec = rb_time_interval(timeout);
- arg.timeout = &timerec;
+ tv = &timerec;
}
if (rb_io_read_pending(fptr)) return Qtrue;
if (!FIONREAD_POSSIBLE_P(fptr->fd)) return Qfalse;
- fd = fptr->fd;
- rb_fd_init(&arg.fds);
- rb_fd_set(fd, &arg.fds);
-#ifdef HAVE_RB_FD_INIT
- i = (int)rb_ensure(wait_readable, (VALUE)&arg,
- (VALUE (*)_((VALUE)))rb_fd_term, (VALUE)&arg.fds);
-#else
- i = rb_thread_select(fd + 1, rb_fd_ptr(&arg.fds), NULL, NULL, arg.timeout);
-#endif
+ i = rb_wait_for_single_fd(fptr->fd, RB_WAITFD_IN, tv);
if (i < 0)
rb_sys_fail(0);
rb_io_check_closed(fptr);
diff --git a/ext/json/ext/generator/extconf.rb b/ext/json/ext/generator/extconf.rb
deleted file mode 100644
index 55741516f4..0000000000
--- a/ext/json/ext/generator/extconf.rb
+++ /dev/null
@@ -1,9 +0,0 @@
-require 'mkmf'
-require 'rbconfig'
-
-if CONFIG['CC'] =~ /gcc/
- $CFLAGS += ' -Wall'
- #$CFLAGS += ' -O0 -ggdb'
-end
-
-create_makefile 'json/ext/generator'
diff --git a/ext/json/ext/generator/generator.c b/ext/json/ext/generator/generator.c
deleted file mode 100644
index 108e80fd65..0000000000
--- a/ext/json/ext/generator/generator.c
+++ /dev/null
@@ -1,919 +0,0 @@
-#include <string.h>
-#include "ruby.h"
-#if HAVE_RUBY_ST_H
-#include "ruby/st.h"
-#endif
-#if HAVE_ST_H
-#include "st.h"
-#endif
-#include "unicode.h"
-#include <math.h>
-
-#ifndef RHASH_TBL
-#define RHASH_TBL(hsh) (RHASH(hsh)->tbl)
-#endif
-
-#ifndef RHASH_SIZE
-#define RHASH_SIZE(hsh) (RHASH(hsh)->tbl->num_entries)
-#endif
-
-#ifndef RFLOAT_VALUE
-#define RFLOAT_VALUE(val) (RFLOAT(val)->value)
-#endif
-
-#ifdef HAVE_RUBY_ENCODING_H
-#include "ruby/encoding.h"
-#define FORCE_UTF8(obj) rb_enc_associate((obj), rb_utf8_encoding())
-#else
-#define FORCE_UTF8(obj)
-#endif
-
-#define check_max_nesting(state, depth) do { \
- long current_nesting = 1 + depth; \
- if (state->max_nesting != 0 && current_nesting > state->max_nesting) \
- rb_raise(eNestingError, "nesting of %ld is too deep", current_nesting); \
-} while (0);
-
-static VALUE mJSON, mExt, mGenerator, cState, mGeneratorMethods, mObject,
- mHash, mArray, mInteger, mFloat, mString, mString_Extend,
- mTrueClass, mFalseClass, mNilClass, eGeneratorError,
- eCircularDatastructure, eNestingError;
-
-static ID i_to_s, i_to_json, i_new, i_indent, i_space, i_space_before,
- i_object_nl, i_array_nl, i_check_circular, i_max_nesting,
- i_allow_nan, i_pack, i_unpack, i_create_id, i_extend;
-
-typedef struct JSON_Generator_StateStruct {
- VALUE indent;
- VALUE space;
- VALUE space_before;
- VALUE object_nl;
- VALUE array_nl;
- int check_circular;
- VALUE seen;
- VALUE memo;
- VALUE depth;
- long max_nesting;
- int flag;
- int allow_nan;
-} JSON_Generator_State;
-
-#define GET_STATE(self) \
- JSON_Generator_State *state; \
- Data_Get_Struct(self, JSON_Generator_State, state);
-
-/*
- * Document-module: JSON::Ext::Generator
- *
- * This is the JSON generator implemented as a C extension. It can be
- * configured to be used by setting
- *
- * JSON.generator = JSON::Ext::Generator
- *
- * with the method generator= in JSON.
- *
- */
-
-static int hash_to_json_state_i(VALUE key, VALUE value, VALUE Vstate)
-{
- VALUE json, buf, Vdepth;
- GET_STATE(Vstate);
- buf = state->memo;
- Vdepth = state->depth;
-
- if (key == Qundef) return ST_CONTINUE;
- if (state->flag) {
- state->flag = 0;
- rb_str_buf_cat2(buf, ",");
- if (RSTRING_LEN(state->object_nl)) rb_str_buf_append(buf, state->object_nl);
- }
- if (RSTRING_LEN(state->object_nl)) {
- rb_str_buf_append(buf, rb_str_times(state->indent, Vdepth));
- }
- json = rb_funcall(rb_funcall(key, i_to_s, 0), i_to_json, 2, Vstate, Vdepth);
- Check_Type(json, T_STRING);
- rb_str_buf_append(buf, json);
- OBJ_INFECT(buf, json);
- if (RSTRING_LEN(state->space_before)) {
- rb_str_buf_append(buf, state->space_before);
- }
- rb_str_buf_cat2(buf, ":");
- if (RSTRING_LEN(state->space)) rb_str_buf_append(buf, state->space);
- json = rb_funcall(value, i_to_json, 2, Vstate, Vdepth);
- Check_Type(json, T_STRING);
- state->flag = 1;
- rb_str_buf_append(buf, json);
- OBJ_INFECT(buf, json);
- state->depth = Vdepth;
- state->memo = buf;
- return ST_CONTINUE;
-}
-
-inline static VALUE mHash_json_transfrom(VALUE self, VALUE Vstate, VALUE Vdepth) {
- long depth, len = RHASH_SIZE(self);
- VALUE result;
- GET_STATE(Vstate);
-
- depth = 1 + FIX2LONG(Vdepth);
- result = rb_str_buf_new(len);
- state->memo = result;
- state->depth = LONG2FIX(depth);
- state->flag = 0;
- rb_str_buf_cat2(result, "{");
- if (RSTRING_LEN(state->object_nl)) rb_str_buf_append(result, state->object_nl);
- rb_hash_foreach(self, hash_to_json_state_i, Vstate);
- if (RSTRING_LEN(state->object_nl)) rb_str_buf_append(result, state->object_nl);
- if (RSTRING_LEN(state->object_nl)) {
- rb_str_buf_append(result, rb_str_times(state->indent, Vdepth));
- }
- rb_str_buf_cat2(result, "}");
- return result;
-}
-
-static int hash_to_json_i(VALUE key, VALUE value, VALUE buf)
-{
- VALUE tmp;
-
- if (key == Qundef) return ST_CONTINUE;
- if (RSTRING_LEN(buf) > 1) rb_str_buf_cat2(buf, ",");
- tmp = rb_funcall(rb_funcall(key, i_to_s, 0), i_to_json, 0);
- Check_Type(tmp, T_STRING);
- rb_str_buf_append(buf, tmp);
- OBJ_INFECT(buf, tmp);
- rb_str_buf_cat2(buf, ":");
- tmp = rb_funcall(value, i_to_json, 0);
- Check_Type(tmp, T_STRING);
- rb_str_buf_append(buf, tmp);
- OBJ_INFECT(buf, tmp);
-
- return ST_CONTINUE;
-}
-
-/*
- * call-seq: to_json(state = nil, depth = 0)
- *
- * Returns a JSON string containing a JSON object, that is unparsed from
- * this Hash instance.
- * _state_ is a JSON::State object, that can also be used to configure the
- * produced JSON string output further.
- * _depth_ is used to find out nesting depth, to indent accordingly.
- */
-static VALUE mHash_to_json(int argc, VALUE *argv, VALUE self)
-{
- VALUE Vstate, Vdepth, result;
- long depth;
-
- rb_scan_args(argc, argv, "02", &Vstate, &Vdepth);
- depth = NIL_P(Vdepth) ? 0 : FIX2LONG(Vdepth);
- if (NIL_P(Vstate)) {
- long len = RHASH_SIZE(self);
- result = rb_str_buf_new(len);
- rb_str_buf_cat2(result, "{");
- rb_hash_foreach(self, hash_to_json_i, result);
- rb_str_buf_cat2(result, "}");
- } else {
- GET_STATE(Vstate);
- check_max_nesting(state, depth);
- if (state->check_circular) {
- VALUE self_id = rb_obj_id(self);
- if (RTEST(rb_hash_aref(state->seen, self_id))) {
- rb_raise(eCircularDatastructure,
- "circular data structures not supported!");
- }
- rb_hash_aset(state->seen, self_id, Qtrue);
- result = mHash_json_transfrom(self, Vstate, LONG2FIX(depth));
- rb_hash_delete(state->seen, self_id);
- } else {
- result = mHash_json_transfrom(self, Vstate, LONG2FIX(depth));
- }
- }
- OBJ_INFECT(result, self);
- FORCE_UTF8(result);
- return result;
-}
-
-inline static VALUE mArray_json_transfrom(VALUE self, VALUE Vstate, VALUE Vdepth) {
- long i, len = RARRAY_LEN(self);
- VALUE shift, result;
- long depth = NIL_P(Vdepth) ? 0 : FIX2LONG(Vdepth);
- VALUE delim = rb_str_new2(",");
- GET_STATE(Vstate);
-
- check_max_nesting(state, depth);
- if (state->check_circular) {
- VALUE self_id = rb_obj_id(self);
- rb_hash_aset(state->seen, self_id, Qtrue);
- result = rb_str_buf_new(len);
- if (RSTRING_LEN(state->array_nl)) rb_str_append(delim, state->array_nl);
- shift = rb_str_times(state->indent, LONG2FIX(depth + 1));
-
- rb_str_buf_cat2(result, "[");
- OBJ_INFECT(result, self);
- rb_str_buf_append(result, state->array_nl);
- for (i = 0; i < len; i++) {
- VALUE element = RARRAY_PTR(self)[i];
- if (RTEST(rb_hash_aref(state->seen, rb_obj_id(element)))) {
- rb_raise(eCircularDatastructure,
- "circular data structures not supported!");
- }
- OBJ_INFECT(result, element);
- if (i > 0) rb_str_buf_append(result, delim);
- rb_str_buf_append(result, shift);
- element = rb_funcall(element, i_to_json, 2, Vstate, LONG2FIX(depth + 1));
- Check_Type(element, T_STRING);
- rb_str_buf_append(result, element);
- }
- if (RSTRING_LEN(state->array_nl)) {
- rb_str_buf_append(result, state->array_nl);
- rb_str_buf_append(result, rb_str_times(state->indent, LONG2FIX(depth)));
- }
- rb_str_buf_cat2(result, "]");
- rb_hash_delete(state->seen, self_id);
- } else {
- result = rb_str_buf_new(len);
- OBJ_INFECT(result, self);
- if (RSTRING_LEN(state->array_nl)) rb_str_append(delim, state->array_nl);
- shift = rb_str_times(state->indent, LONG2FIX(depth + 1));
-
- rb_str_buf_cat2(result, "[");
- rb_str_buf_append(result, state->array_nl);
- for (i = 0; i < len; i++) {
- VALUE element = RARRAY_PTR(self)[i];
- OBJ_INFECT(result, element);
- if (i > 0) rb_str_buf_append(result, delim);
- rb_str_buf_append(result, shift);
- element = rb_funcall(element, i_to_json, 2, Vstate, LONG2FIX(depth + 1));
- Check_Type(element, T_STRING);
- rb_str_buf_append(result, element);
- }
- rb_str_buf_append(result, state->array_nl);
- if (RSTRING_LEN(state->array_nl)) {
- rb_str_buf_append(result, rb_str_times(state->indent, LONG2FIX(depth)));
- }
- rb_str_buf_cat2(result, "]");
- }
- return result;
-}
-
-/*
- * call-seq: to_json(state = nil, depth = 0)
- *
- * Returns a JSON string containing a JSON array, that is unparsed from
- * this Array instance.
- * _state_ is a JSON::State object, that can also be used to configure the
- * produced JSON string output further.
- * _depth_ is used to find out nesting depth, to indent accordingly.
- */
-static VALUE mArray_to_json(int argc, VALUE *argv, VALUE self) {
- VALUE Vstate, Vdepth, result;
-
- rb_scan_args(argc, argv, "02", &Vstate, &Vdepth);
- if (NIL_P(Vstate)) {
- long i, len = RARRAY_LEN(self);
- result = rb_str_buf_new(2 + 2 * len);
- rb_str_buf_cat2(result, "[");
- OBJ_INFECT(result, self);
- for (i = 0; i < len; i++) {
- VALUE element = RARRAY_PTR(self)[i];
- OBJ_INFECT(result, element);
- if (i > 0) rb_str_buf_cat2(result, ",");
- element = rb_funcall(element, i_to_json, 0);
- Check_Type(element, T_STRING);
- rb_str_buf_append(result, element);
- }
- rb_str_buf_cat2(result, "]");
- } else {
- result = mArray_json_transfrom(self, Vstate, Vdepth);
- }
- OBJ_INFECT(result, self);
- FORCE_UTF8(result);
- return result;
-}
-
-/*
- * call-seq: to_json(*)
- *
- * Returns a JSON string representation for this Integer number.
- */
-static VALUE mInteger_to_json(int argc, VALUE *argv, VALUE self)
-{
- VALUE result = rb_funcall(self, i_to_s, 0);
- FORCE_UTF8(result);
- return result;
-}
-
-/*
- * call-seq: to_json(*)
- *
- * Returns a JSON string representation for this Float number.
- */
-static VALUE mFloat_to_json(int argc, VALUE *argv, VALUE self)
-{
- JSON_Generator_State *state = NULL;
- VALUE Vstate, rest, tmp, result;
- double value = RFLOAT_VALUE(self);
- rb_scan_args(argc, argv, "01*", &Vstate, &rest);
- if (!NIL_P(Vstate)) Data_Get_Struct(Vstate, JSON_Generator_State, state);
- if (isinf(value)) {
- if (!state || state->allow_nan) {
- result = rb_funcall(self, i_to_s, 0);
- } else {
- tmp = rb_funcall(self, i_to_s, 0);
- rb_raise(eGeneratorError, "%u: %s not allowed in JSON", __LINE__, StringValueCStr(tmp));
- }
- } else if (isnan(value)) {
- if (!state || state->allow_nan) {
- result = rb_funcall(self, i_to_s, 0);
- } else {
- tmp = rb_funcall(self, i_to_s, 0);
- rb_raise(eGeneratorError, "%u: %s not allowed in JSON", __LINE__, StringValueCStr(tmp));
- }
- } else {
- result = rb_funcall(self, i_to_s, 0);
- }
- FORCE_UTF8(result);
- return result;
-}
-
-/*
- * call-seq: String.included(modul)
- *
- * Extends _modul_ with the String::Extend module.
- */
-static VALUE mString_included_s(VALUE self, VALUE modul) {
- VALUE result = rb_funcall(modul, i_extend, 1, mString_Extend);
- FORCE_UTF8(result);
- return result;
-}
-
-/*
- * call-seq: to_json(*)
- *
- * This string should be encoded with UTF-8 A call to this method
- * returns a JSON string encoded with UTF16 big endian characters as
- * \u????.
- */
-static VALUE mString_to_json(int argc, VALUE *argv, VALUE self)
-{
- VALUE result = rb_str_buf_new(RSTRING_LEN(self));
- rb_str_buf_cat2(result, "\"");
- JSON_convert_UTF8_to_JSON(result, self, strictConversion);
- rb_str_buf_cat2(result, "\"");
- FORCE_UTF8(result);
- return result;
-}
-
-/*
- * call-seq: to_json_raw_object()
- *
- * This method creates a raw object hash, that can be nested into
- * other data structures and will be unparsed as a raw string. This
- * method should be used, if you want to convert raw strings to JSON
- * instead of UTF-8 strings, e. g. binary data.
- */
-static VALUE mString_to_json_raw_object(VALUE self) {
- VALUE ary;
- VALUE result = rb_hash_new();
- rb_hash_aset(result, rb_funcall(mJSON, i_create_id, 0), rb_class_name(rb_obj_class(self)));
- ary = rb_funcall(self, i_unpack, 1, rb_str_new2("C*"));
- rb_hash_aset(result, rb_str_new2("raw"), ary);
- FORCE_UTF8(result);
- return result;
-}
-
-/*
- * call-seq: to_json_raw(*args)
- *
- * This method creates a JSON text from the result of a call to
- * to_json_raw_object of this String.
- */
-static VALUE mString_to_json_raw(int argc, VALUE *argv, VALUE self) {
- VALUE result, obj = mString_to_json_raw_object(self);
- Check_Type(obj, T_HASH);
- result = mHash_to_json(argc, argv, obj);
- FORCE_UTF8(result);
- return result;
-}
-
-/*
- * call-seq: json_create(o)
- *
- * Raw Strings are JSON Objects (the raw bytes are stored in an array for the
- * key "raw"). The Ruby String can be created by this module method.
- */
-static VALUE mString_Extend_json_create(VALUE self, VALUE o) {
- VALUE ary;
- Check_Type(o, T_HASH);
- ary = rb_hash_aref(o, rb_str_new2("raw"));
- return rb_funcall(ary, i_pack, 1, rb_str_new2("C*"));
-}
-
-/*
- * call-seq: to_json(state = nil, depth = 0)
- *
- * Returns a JSON string for true: 'true'.
- */
-static VALUE mTrueClass_to_json(int argc, VALUE *argv, VALUE self)
-{
- VALUE result = rb_str_new2("true");
- FORCE_UTF8(result);
- return result;
-}
-
-/*
- * call-seq: to_json(state = nil, depth = 0)
- *
- * Returns a JSON string for false: 'false'.
- */
-static VALUE mFalseClass_to_json(int argc, VALUE *argv, VALUE self)
-{
- VALUE result = rb_str_new2("false");
- FORCE_UTF8(result);
- return result;
-}
-
-/*
- * call-seq: to_json(state = nil, depth = 0)
- *
- */
-static VALUE mNilClass_to_json(int argc, VALUE *argv, VALUE self)
-{
- VALUE result = rb_str_new2("null");
- FORCE_UTF8(result);
- return result;
-}
-
-/*
- * call-seq: to_json(*)
- *
- * Converts this object to a string (calling #to_s), converts
- * it to a JSON string, and returns the result. This is a fallback, if no
- * special method #to_json was defined for some object.
- */
-static VALUE mObject_to_json(int argc, VALUE *argv, VALUE self)
-{
- VALUE result, string = rb_funcall(self, i_to_s, 0);
- Check_Type(string, T_STRING);
- result = mString_to_json(argc, argv, string);
- FORCE_UTF8(result);
- return result;
-}
-
-/*
- * Document-class: JSON::Ext::Generator::State
- *
- * This class is used to create State instances, that are use to hold data
- * while generating a JSON text from a a Ruby data structure.
- */
-
-static void State_mark(JSON_Generator_State *state)
-{
- rb_gc_mark_maybe(state->indent);
- rb_gc_mark_maybe(state->space);
- rb_gc_mark_maybe(state->space_before);
- rb_gc_mark_maybe(state->object_nl);
- rb_gc_mark_maybe(state->array_nl);
- rb_gc_mark_maybe(state->seen);
- rb_gc_mark_maybe(state->memo);
- rb_gc_mark_maybe(state->depth);
-}
-
-static JSON_Generator_State *State_allocate()
-{
- JSON_Generator_State *state = ALLOC(JSON_Generator_State);
- return state;
-}
-
-static VALUE cState_s_allocate(VALUE klass)
-{
- JSON_Generator_State *state = State_allocate();
- return Data_Wrap_Struct(klass, State_mark, -1, state);
-}
-
-/*
- * call-seq: configure(opts)
- *
- * Configure this State instance with the Hash _opts_, and return
- * itself.
- */
-static inline VALUE cState_configure(VALUE self, VALUE opts)
-{
- VALUE tmp;
- GET_STATE(self);
- tmp = rb_convert_type(opts, T_HASH, "Hash", "to_hash");
- if (NIL_P(tmp)) tmp = rb_convert_type(opts, T_HASH, "Hash", "to_h");
- if (NIL_P(tmp)) {
- rb_raise(rb_eArgError, "opts has to be hash like or convertable into a hash");
- }
- opts = tmp;
- tmp = rb_hash_aref(opts, ID2SYM(i_indent));
- if (RTEST(tmp)) {
- Check_Type(tmp, T_STRING);
- state->indent = tmp;
- }
- tmp = rb_hash_aref(opts, ID2SYM(i_space));
- if (RTEST(tmp)) {
- Check_Type(tmp, T_STRING);
- state->space = tmp;
- }
- tmp = rb_hash_aref(opts, ID2SYM(i_space_before));
- if (RTEST(tmp)) {
- Check_Type(tmp, T_STRING);
- state->space_before = tmp;
- }
- tmp = rb_hash_aref(opts, ID2SYM(i_array_nl));
- if (RTEST(tmp)) {
- Check_Type(tmp, T_STRING);
- state->array_nl = tmp;
- }
- tmp = rb_hash_aref(opts, ID2SYM(i_object_nl));
- if (RTEST(tmp)) {
- Check_Type(tmp, T_STRING);
- state->object_nl = tmp;
- }
- tmp = ID2SYM(i_check_circular);
- if (st_lookup(RHASH_TBL(opts), tmp, 0)) {
- tmp = rb_hash_aref(opts, ID2SYM(i_check_circular));
- state->check_circular = RTEST(tmp);
- } else {
- state->check_circular = 1;
- }
- tmp = ID2SYM(i_max_nesting);
- state->max_nesting = 19;
- if (st_lookup(RHASH_TBL(opts), tmp, 0)) {
- VALUE max_nesting = rb_hash_aref(opts, tmp);
- if (RTEST(max_nesting)) {
- Check_Type(max_nesting, T_FIXNUM);
- state->max_nesting = FIX2LONG(max_nesting);
- } else {
- state->max_nesting = 0;
- }
- }
- tmp = rb_hash_aref(opts, ID2SYM(i_allow_nan));
- state->allow_nan = RTEST(tmp);
- return self;
-}
-
-/*
- * call-seq: to_h
- *
- * Returns the configuration instance variables as a hash, that can be
- * passed to the configure method.
- */
-static VALUE cState_to_h(VALUE self)
-{
- VALUE result = rb_hash_new();
- GET_STATE(self);
- rb_hash_aset(result, ID2SYM(i_indent), state->indent);
- rb_hash_aset(result, ID2SYM(i_space), state->space);
- rb_hash_aset(result, ID2SYM(i_space_before), state->space_before);
- rb_hash_aset(result, ID2SYM(i_object_nl), state->object_nl);
- rb_hash_aset(result, ID2SYM(i_array_nl), state->array_nl);
- rb_hash_aset(result, ID2SYM(i_check_circular), state->check_circular ? Qtrue : Qfalse);
- rb_hash_aset(result, ID2SYM(i_allow_nan), state->allow_nan ? Qtrue : Qfalse);
- rb_hash_aset(result, ID2SYM(i_max_nesting), LONG2FIX(state->max_nesting));
- return result;
-}
-
-
-/*
- * call-seq: new(opts = {})
- *
- * Instantiates a new State object, configured by _opts_.
- *
- * _opts_ can have the following keys:
- *
- * * *indent*: a string used to indent levels (default: ''),
- * * *space*: a string that is put after, a : or , delimiter (default: ''),
- * * *space_before*: a string that is put before a : pair delimiter (default: ''),
- * * *object_nl*: a string that is put at the end of a JSON object (default: ''),
- * * *array_nl*: a string that is put at the end of a JSON array (default: ''),
- * * *check_circular*: true if checking for circular data structures
- * should be done, false (the default) otherwise.
- * * *allow_nan*: true if NaN, Infinity, and -Infinity should be
- * generated, otherwise an exception is thrown, if these values are
- * encountered. This options defaults to false.
- */
-static VALUE cState_initialize(int argc, VALUE *argv, VALUE self)
-{
- VALUE opts;
- GET_STATE(self);
-
- rb_scan_args(argc, argv, "01", &opts);
- state->indent = rb_str_new2("");
- state->space = rb_str_new2("");
- state->space_before = rb_str_new2("");
- state->array_nl = rb_str_new2("");
- state->object_nl = rb_str_new2("");
- if (NIL_P(opts)) {
- state->check_circular = 1;
- state->allow_nan = 0;
- state->max_nesting = 19;
- } else {
- cState_configure(self, opts);
- }
- state->seen = rb_hash_new();
- state->memo = Qnil;
- state->depth = INT2FIX(0);
- return self;
-}
-
-/*
- * call-seq: from_state(opts)
- *
- * Creates a State object from _opts_, which ought to be Hash to create a
- * new State instance configured by _opts_, something else to create an
- * unconfigured instance. If _opts_ is a State object, it is just returned.
- */
-static VALUE cState_from_state_s(VALUE self, VALUE opts)
-{
- if (rb_obj_is_kind_of(opts, self)) {
- return opts;
- } else if (rb_obj_is_kind_of(opts, rb_cHash)) {
- return rb_funcall(self, i_new, 1, opts);
- } else {
- return rb_funcall(self, i_new, 0);
- }
-}
-
-/*
- * call-seq: indent()
- *
- * This string is used to indent levels in the JSON text.
- */
-static VALUE cState_indent(VALUE self)
-{
- GET_STATE(self);
- return state->indent;
-}
-
-/*
- * call-seq: indent=(indent)
- *
- * This string is used to indent levels in the JSON text.
- */
-static VALUE cState_indent_set(VALUE self, VALUE indent)
-{
- GET_STATE(self);
- Check_Type(indent, T_STRING);
- return state->indent = indent;
-}
-
-/*
- * call-seq: space()
- *
- * This string is used to insert a space between the tokens in a JSON
- * string.
- */
-static VALUE cState_space(VALUE self)
-{
- GET_STATE(self);
- return state->space;
-}
-
-/*
- * call-seq: space=(space)
- *
- * This string is used to insert a space between the tokens in a JSON
- * string.
- */
-static VALUE cState_space_set(VALUE self, VALUE space)
-{
- GET_STATE(self);
- Check_Type(space, T_STRING);
- return state->space = space;
-}
-
-/*
- * call-seq: space_before()
- *
- * This string is used to insert a space before the ':' in JSON objects.
- */
-static VALUE cState_space_before(VALUE self)
-{
- GET_STATE(self);
- return state->space_before;
-}
-
-/*
- * call-seq: space_before=(space_before)
- *
- * This string is used to insert a space before the ':' in JSON objects.
- */
-static VALUE cState_space_before_set(VALUE self, VALUE space_before)
-{
- GET_STATE(self);
- Check_Type(space_before, T_STRING);
- return state->space_before = space_before;
-}
-
-/*
- * call-seq: object_nl()
- *
- * This string is put at the end of a line that holds a JSON object (or
- * Hash).
- */
-static VALUE cState_object_nl(VALUE self)
-{
- GET_STATE(self);
- return state->object_nl;
-}
-
-/*
- * call-seq: object_nl=(object_nl)
- *
- * This string is put at the end of a line that holds a JSON object (or
- * Hash).
- */
-static VALUE cState_object_nl_set(VALUE self, VALUE object_nl)
-{
- GET_STATE(self);
- Check_Type(object_nl, T_STRING);
- return state->object_nl = object_nl;
-}
-
-/*
- * call-seq: array_nl()
- *
- * This string is put at the end of a line that holds a JSON array.
- */
-static VALUE cState_array_nl(VALUE self)
-{
- GET_STATE(self);
- return state->array_nl;
-}
-
-/*
- * call-seq: array_nl=(array_nl)
- *
- * This string is put at the end of a line that holds a JSON array.
- */
-static VALUE cState_array_nl_set(VALUE self, VALUE array_nl)
-{
- GET_STATE(self);
- Check_Type(array_nl, T_STRING);
- return state->array_nl = array_nl;
-}
-
-/*
- * call-seq: check_circular?
- *
- * Returns true, if circular data structures should be checked,
- * otherwise returns false.
- */
-static VALUE cState_check_circular_p(VALUE self)
-{
- GET_STATE(self);
- return state->check_circular ? Qtrue : Qfalse;
-}
-
-/*
- * call-seq: max_nesting
- *
- * This integer returns the maximum level of data structure nesting in
- * the generated JSON, max_nesting = 0 if no maximum is checked.
- */
-static VALUE cState_max_nesting(VALUE self)
-{
- GET_STATE(self);
- return LONG2FIX(state->max_nesting);
-}
-
-/*
- * call-seq: max_nesting=(depth)
- *
- * This sets the maximum level of data structure nesting in the generated JSON
- * to the integer depth, max_nesting = 0 if no maximum should be checked.
- */
-static VALUE cState_max_nesting_set(VALUE self, VALUE depth)
-{
- GET_STATE(self);
- Check_Type(depth, T_FIXNUM);
- state->max_nesting = FIX2LONG(depth);
- return Qnil;
-}
-
-/*
- * call-seq: allow_nan?
- *
- * Returns true, if NaN, Infinity, and -Infinity should be generated, otherwise
- * returns false.
- */
-static VALUE cState_allow_nan_p(VALUE self)
-{
- GET_STATE(self);
- return state->allow_nan ? Qtrue : Qfalse;
-}
-
-/*
- * call-seq: seen?(object)
- *
- * Returns _true_, if _object_ was already seen during this generating run.
- */
-static VALUE cState_seen_p(VALUE self, VALUE object)
-{
- GET_STATE(self);
- return rb_hash_aref(state->seen, rb_obj_id(object));
-}
-
-/*
- * call-seq: remember(object)
- *
- * Remember _object_, to find out if it was already encountered (if a cyclic
- * data structure is rendered).
- */
-static VALUE cState_remember(VALUE self, VALUE object)
-{
- GET_STATE(self);
- return rb_hash_aset(state->seen, rb_obj_id(object), Qtrue);
-}
-
-/*
- * call-seq: forget(object)
- *
- * Forget _object_ for this generating run.
- */
-static VALUE cState_forget(VALUE self, VALUE object)
-{
- GET_STATE(self);
- return rb_hash_delete(state->seen, rb_obj_id(object));
-}
-
-/*
- *
- */
-void Init_generator()
-{
- rb_require("json/common");
- mJSON = rb_define_module("JSON");
- mExt = rb_define_module_under(mJSON, "Ext");
- mGenerator = rb_define_module_under(mExt, "Generator");
- eGeneratorError = rb_path2class("JSON::GeneratorError");
- eCircularDatastructure = rb_path2class("JSON::CircularDatastructure");
- eNestingError = rb_path2class("JSON::NestingError");
- cState = rb_define_class_under(mGenerator, "State", rb_cObject);
- rb_define_alloc_func(cState, cState_s_allocate);
- rb_define_singleton_method(cState, "from_state", cState_from_state_s, 1);
- rb_define_method(cState, "initialize", cState_initialize, -1);
-
- rb_define_method(cState, "indent", cState_indent, 0);
- rb_define_method(cState, "indent=", cState_indent_set, 1);
- rb_define_method(cState, "space", cState_space, 0);
- rb_define_method(cState, "space=", cState_space_set, 1);
- rb_define_method(cState, "space_before", cState_space_before, 0);
- rb_define_method(cState, "space_before=", cState_space_before_set, 1);
- rb_define_method(cState, "object_nl", cState_object_nl, 0);
- rb_define_method(cState, "object_nl=", cState_object_nl_set, 1);
- rb_define_method(cState, "array_nl", cState_array_nl, 0);
- rb_define_method(cState, "array_nl=", cState_array_nl_set, 1);
- rb_define_method(cState, "check_circular?", cState_check_circular_p, 0);
- rb_define_method(cState, "max_nesting", cState_max_nesting, 0);
- rb_define_method(cState, "max_nesting=", cState_max_nesting_set, 1);
- rb_define_method(cState, "allow_nan?", cState_allow_nan_p, 0);
- rb_define_method(cState, "seen?", cState_seen_p, 1);
- rb_define_method(cState, "remember", cState_remember, 1);
- rb_define_method(cState, "forget", cState_forget, 1);
- rb_define_method(cState, "configure", cState_configure, 1);
- rb_define_method(cState, "to_h", cState_to_h, 0);
-
- mGeneratorMethods = rb_define_module_under(mGenerator, "GeneratorMethods");
- mObject = rb_define_module_under(mGeneratorMethods, "Object");
- rb_define_method(mObject, "to_json", mObject_to_json, -1);
- mHash = rb_define_module_under(mGeneratorMethods, "Hash");
- rb_define_method(mHash, "to_json", mHash_to_json, -1);
- mArray = rb_define_module_under(mGeneratorMethods, "Array");
- rb_define_method(mArray, "to_json", mArray_to_json, -1);
- mInteger = rb_define_module_under(mGeneratorMethods, "Integer");
- rb_define_method(mInteger, "to_json", mInteger_to_json, -1);
- mFloat = rb_define_module_under(mGeneratorMethods, "Float");
- rb_define_method(mFloat, "to_json", mFloat_to_json, -1);
- mString = rb_define_module_under(mGeneratorMethods, "String");
- rb_define_singleton_method(mString, "included", mString_included_s, 1);
- rb_define_method(mString, "to_json", mString_to_json, -1);
- rb_define_method(mString, "to_json_raw", mString_to_json_raw, -1);
- rb_define_method(mString, "to_json_raw_object", mString_to_json_raw_object, 0);
- mString_Extend = rb_define_module_under(mString, "Extend");
- rb_define_method(mString_Extend, "json_create", mString_Extend_json_create, 1);
- mTrueClass = rb_define_module_under(mGeneratorMethods, "TrueClass");
- rb_define_method(mTrueClass, "to_json", mTrueClass_to_json, -1);
- mFalseClass = rb_define_module_under(mGeneratorMethods, "FalseClass");
- rb_define_method(mFalseClass, "to_json", mFalseClass_to_json, -1);
- mNilClass = rb_define_module_under(mGeneratorMethods, "NilClass");
- rb_define_method(mNilClass, "to_json", mNilClass_to_json, -1);
-
- i_to_s = rb_intern("to_s");
- i_to_json = rb_intern("to_json");
- i_new = rb_intern("new");
- i_indent = rb_intern("indent");
- i_space = rb_intern("space");
- i_space_before = rb_intern("space_before");
- i_object_nl = rb_intern("object_nl");
- i_array_nl = rb_intern("array_nl");
- i_check_circular = rb_intern("check_circular");
- i_max_nesting = rb_intern("max_nesting");
- i_allow_nan = rb_intern("allow_nan");
- i_pack = rb_intern("pack");
- i_unpack = rb_intern("unpack");
- i_create_id = rb_intern("create_id");
- i_extend = rb_intern("extend");
-}
diff --git a/ext/json/ext/generator/unicode.c b/ext/json/ext/generator/unicode.c
deleted file mode 100644
index 76834eadc5..0000000000
--- a/ext/json/ext/generator/unicode.c
+++ /dev/null
@@ -1,182 +0,0 @@
-#include "unicode.h"
-
-#define unicode_escape(buffer, character) \
- snprintf(buf, 7, "\\u%04x", (unsigned int) (character)); \
- rb_str_buf_cat(buffer, buf, 6);
-
-/*
- * Copyright 2001-2004 Unicode, Inc.
- *
- * Disclaimer
- *
- * This source code is provided as is by Unicode, Inc. No claims are
- * made as to fitness for any particular purpose. No warranties of any
- * kind are expressed or implied. The recipient agrees to determine
- * applicability of information provided. If this file has been
- * purchased on magnetic or optical media from Unicode, Inc., the
- * sole remedy for any claim will be exchange of defective media
- * within 90 days of receipt.
- *
- * Limitations on Rights to Redistribute This Code
- *
- * Unicode, Inc. hereby grants the right to freely use the information
- * supplied in this file in the creation of products supporting the
- * Unicode Standard, and to make copies of this file in any form
- * for internal or external distribution as long as this notice
- * remains attached.
- */
-
-/*
- * Index into the table below with the first byte of a UTF-8 sequence to
- * get the number of trailing bytes that are supposed to follow it.
- * Note that *legal* UTF-8 values can't have 4 or 5-bytes. The table is
- * left as-is for anyone who may want to do such conversion, which was
- * allowed in earlier algorithms.
- */
-static const char trailingBytesForUTF8[256] = {
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
- 2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2, 3,3,3,3,3,3,3,3,4,4,4,4,5,5,5,5
-};
-
-/*
- * Magic values subtracted from a buffer value during UTF8 conversion.
- * This table contains as many values as there might be trailing bytes
- * in a UTF-8 sequence.
- */
-static const UTF32 offsetsFromUTF8[6] = { 0x00000000UL, 0x00003080UL, 0x000E2080UL,
- 0x03C82080UL, 0xFA082080UL, 0x82082080UL };
-
-/*
- * Once the bits are split out into bytes of UTF-8, this is a mask OR-ed
- * into the first byte, depending on how many bytes follow. There are
- * as many entries in this table as there are UTF-8 sequence types.
- * (I.e., one byte sequence, two byte... etc.). Remember that sequencs
- * for *legal* UTF-8 will be 4 or fewer bytes total.
- */
-static const UTF8 firstByteMark[7] = { 0x00, 0x00, 0xC0, 0xE0, 0xF0, 0xF8, 0xFC };
-
-/*
- * Utility routine to tell whether a sequence of bytes is legal UTF-8.
- * This must be called with the length pre-determined by the first byte.
- * If not calling this from ConvertUTF8to*, then the length can be set by:
- * length = trailingBytesForUTF8[*source]+1;
- * and the sequence is illegal right away if there aren't that many bytes
- * available.
- * If presented with a length > 4, this returns 0. The Unicode
- * definition of UTF-8 goes up to 4-byte sequences.
- */
-
-inline static unsigned char isLegalUTF8(const UTF8 *source, int length)
-{
- UTF8 a;
- const UTF8 *srcptr = source+length;
- switch (length) {
- default: return 0;
- /* Everything else falls through when "1"... */
- case 4: if ((a = (*--srcptr)) < 0x80 || a > 0xBF) return 0;
- case 3: if ((a = (*--srcptr)) < 0x80 || a > 0xBF) return 0;
- case 2: if ((a = (*--srcptr)) > 0xBF) return 0;
-
- switch (*source) {
- /* no fall-through in this inner switch */
- case 0xE0: if (a < 0xA0) return 0; break;
- case 0xED: if (a > 0x9F) return 0; break;
- case 0xF0: if (a < 0x90) return 0; break;
- case 0xF4: if (a > 0x8F) return 0; break;
- default: if (a < 0x80) return 0;
- }
-
- case 1: if (*source >= 0x80 && *source < 0xC2) return 0;
- }
- if (*source > 0xF4) return 0;
- return 1;
-}
-
-void JSON_convert_UTF8_to_JSON(VALUE buffer, VALUE string, ConversionFlags flags)
-{
- char buf[7];
- const UTF8* source = (UTF8 *) RSTRING_PTR(string);
- const UTF8* sourceEnd = source + RSTRING_LEN(string);
-
- while (source < sourceEnd) {
- UTF32 ch = 0;
- unsigned short extraBytesToRead = trailingBytesForUTF8[*source];
- if (source + extraBytesToRead >= sourceEnd) {
- rb_raise(rb_path2class("JSON::GeneratorError"),
- "partial character in source, but hit end");
- }
- if (!isLegalUTF8(source, extraBytesToRead+1)) {
- rb_raise(rb_path2class("JSON::GeneratorError"),
- "source sequence is illegal/malformed");
- }
- /*
- * The cases all fall through. See "Note A" below.
- */
- switch (extraBytesToRead) {
- case 5: ch += *source++; ch <<= 6; /* remember, illegal UTF-8 */
- case 4: ch += *source++; ch <<= 6; /* remember, illegal UTF-8 */
- case 3: ch += *source++; ch <<= 6;
- case 2: ch += *source++; ch <<= 6;
- case 1: ch += *source++; ch <<= 6;
- case 0: ch += *source++;
- }
- ch -= offsetsFromUTF8[extraBytesToRead];
-
- if (ch <= UNI_MAX_BMP) { /* Target is a character <= 0xFFFF */
- /* UTF-16 surrogate values are illegal in UTF-32 */
- if (ch >= UNI_SUR_HIGH_START && ch <= UNI_SUR_LOW_END) {
- if (flags == strictConversion) {
- source -= (extraBytesToRead+1); /* return to the illegal value itself */
- rb_raise(rb_path2class("JSON::GeneratorError"),
- "source sequence is illegal/malformed");
- } else {
- unicode_escape(buffer, UNI_REPLACEMENT_CHAR);
- }
- } else {
- /* normal case */
- if (ch == '"') {
- rb_str_buf_cat2(buffer, "\\\"");
- } else if (ch == '\\') {
- rb_str_buf_cat2(buffer, "\\\\");
- } else if (ch == '/') {
- rb_str_buf_cat2(buffer, "\\/");
- } else if (ch >= 0x20 && ch <= 0x7f) {
- rb_str_buf_cat(buffer, (char *) source - 1, 1);
- } else if (ch == '\n') {
- rb_str_buf_cat2(buffer, "\\n");
- } else if (ch == '\r') {
- rb_str_buf_cat2(buffer, "\\r");
- } else if (ch == '\t') {
- rb_str_buf_cat2(buffer, "\\t");
- } else if (ch == '\f') {
- rb_str_buf_cat2(buffer, "\\f");
- } else if (ch == '\b') {
- rb_str_buf_cat2(buffer, "\\b");
- } else if (ch < 0x20) {
- unicode_escape(buffer, (UTF16) ch);
- } else {
- unicode_escape(buffer, (UTF16) ch);
- }
- }
- } else if (ch > UNI_MAX_UTF16) {
- if (flags == strictConversion) {
- source -= (extraBytesToRead+1); /* return to the start */
- rb_raise(rb_path2class("JSON::GeneratorError"),
- "source sequence is illegal/malformed");
- } else {
- unicode_escape(buffer, UNI_REPLACEMENT_CHAR);
- }
- } else {
- /* target is a character in range 0xFFFF - 0x10FFFF. */
- ch -= halfBase;
- unicode_escape(buffer, (UTF16)((ch >> halfShift) + UNI_SUR_HIGH_START));
- unicode_escape(buffer, (UTF16)((ch & halfMask) + UNI_SUR_LOW_START));
- }
- }
-}
diff --git a/ext/json/ext/generator/unicode.h b/ext/json/ext/generator/unicode.h
deleted file mode 100644
index 841474bcea..0000000000
--- a/ext/json/ext/generator/unicode.h
+++ /dev/null
@@ -1,53 +0,0 @@
-#include "ruby.h"
-
-#ifndef _GENERATOR_UNICODE_H_
-#define _GENERATOR_UNICODE_H_
-
-typedef enum {
- conversionOK = 0, /* conversion successful */
- sourceExhausted, /* partial character in source, but hit end */
- targetExhausted, /* insuff. room in target for conversion */
- sourceIllegal /* source sequence is illegal/malformed */
-} ConversionResult;
-
-typedef enum {
- strictConversion = 0,
- lenientConversion
-} ConversionFlags;
-
-typedef unsigned long UTF32; /* at least 32 bits */
-typedef unsigned short UTF16; /* at least 16 bits */
-typedef unsigned char UTF8; /* typically 8 bits */
-
-#define UNI_REPLACEMENT_CHAR (UTF32)0x0000FFFD
-#define UNI_MAX_BMP (UTF32)0x0000FFFF
-#define UNI_MAX_UTF16 (UTF32)0x0010FFFF
-#define UNI_MAX_UTF32 (UTF32)0x7FFFFFFF
-#define UNI_MAX_LEGAL_UTF32 (UTF32)0x0010FFFF
-
-#define UNI_SUR_HIGH_START (UTF32)0xD800
-#define UNI_SUR_HIGH_END (UTF32)0xDBFF
-#define UNI_SUR_LOW_START (UTF32)0xDC00
-#define UNI_SUR_LOW_END (UTF32)0xDFFF
-
-static const int halfShift = 10; /* used for shifting by 10 bits */
-
-static const UTF32 halfBase = 0x0010000UL;
-static const UTF32 halfMask = 0x3FFUL;
-
-void JSON_convert_UTF8_to_JSON(VALUE buffer, VALUE string, ConversionFlags flags);
-
-#ifndef RARRAY_PTR
-#define RARRAY_PTR(ARRAY) RARRAY(ARRAY)->ptr
-#endif
-#ifndef RARRAY_LEN
-#define RARRAY_LEN(ARRAY) RARRAY(ARRAY)->len
-#endif
-#ifndef RSTRING_PTR
-#define RSTRING_PTR(string) RSTRING(string)->ptr
-#endif
-#ifndef RSTRING_LEN
-#define RSTRING_LEN(string) RSTRING(string)->len
-#endif
-
-#endif
diff --git a/ext/json/ext/parser/extconf.rb b/ext/json/ext/parser/extconf.rb
deleted file mode 100644
index b56c4e66d7..0000000000
--- a/ext/json/ext/parser/extconf.rb
+++ /dev/null
@@ -1,9 +0,0 @@
-require 'mkmf'
-require 'rbconfig'
-
-if CONFIG['CC'] =~ /gcc/
- $CFLAGS += ' -Wall'
- #$CFLAGS += ' -O0 -ggdb'
-end
-
-create_makefile 'json/ext/parser'
diff --git a/ext/json/ext/parser/parser.rl b/ext/json/ext/parser/parser.rl
deleted file mode 100644
index ca1876a7fc..0000000000
--- a/ext/json/ext/parser/parser.rl
+++ /dev/null
@@ -1,662 +0,0 @@
-#include "ruby.h"
-#include "unicode.h"
-#if HAVE_RE_H
-#include "re.h"
-#endif
-#if HAVE_RUBY_ST_H
-#include "ruby/st.h"
-#endif
-#if HAVE_ST_H
-#include "st.h"
-#endif
-
-#define EVIL 0x666
-
-#ifndef RHASH_TBL
-#define RHASH_TBL(hsh) (RHASH(hsh)->tbl)
-#endif
-
-#ifdef HAVE_RUBY_ENCODING_H
-#include "ruby/encoding.h"
-#define FORCE_UTF8(obj) rb_enc_associate((obj), rb_utf8_encoding())
-#else
-#define FORCE_UTF8(obj)
-#endif
-
-static VALUE mJSON, mExt, cParser, eParserError, eNestingError;
-static VALUE CNaN, CInfinity, CMinusInfinity;
-
-static ID i_json_creatable_p, i_json_create, i_create_id, i_create_additions,
- i_chr, i_max_nesting, i_allow_nan;
-
-#define MinusInfinity "-Infinity"
-
-typedef struct JSON_ParserStruct {
- VALUE Vsource;
- char *source;
- long len;
- char *memo;
- VALUE create_id;
- int max_nesting;
- int current_nesting;
- int allow_nan;
-} JSON_Parser;
-
-static char *JSON_parse_object(JSON_Parser *json, char *p, char *pe, VALUE *result);
-static char *JSON_parse_array(JSON_Parser *json, char *p, char *pe, VALUE *result);
-static char *JSON_parse_value(JSON_Parser *json, char *p, char *pe, VALUE *result);
-static char *JSON_parse_string(JSON_Parser *json, char *p, char *pe, VALUE *result);
-static char *JSON_parse_integer(JSON_Parser *json, char *p, char *pe, VALUE *result);
-static char *JSON_parse_float(JSON_Parser *json, char *p, char *pe, VALUE *result);
-
-#define GET_STRUCT \
- JSON_Parser *json; \
- Data_Get_Struct(self, JSON_Parser, json);
-
-%%{
- machine JSON_common;
-
- cr = '\n';
- cr_neg = [^\n];
- ws = [ \t\r\n];
- c_comment = '/*' ( any* - (any* '*/' any* ) ) '*/';
- cpp_comment = '//' cr_neg* cr;
- comment = c_comment | cpp_comment;
- ignore = ws | comment;
- name_separator = ':';
- value_separator = ',';
- Vnull = 'null';
- Vfalse = 'false';
- Vtrue = 'true';
- VNaN = 'NaN';
- VInfinity = 'Infinity';
- VMinusInfinity = '-Infinity';
- begin_value = [nft"\-[{NI] | digit;
- begin_object = '{';
- end_object = '}';
- begin_array = '[';
- end_array = ']';
- begin_string = '"';
- begin_name = begin_string;
- begin_number = digit | '-';
-}%%
-
-%%{
- machine JSON_object;
- include JSON_common;
-
- write data;
-
- action parse_value {
- VALUE v = Qnil;
- char *np = JSON_parse_value(json, fpc, pe, &v);
- if (np == NULL) {
- fhold; fbreak;
- } else {
- rb_hash_aset(*result, last_name, v);
- fexec np;
- }
- }
-
- action parse_name {
- char *np = JSON_parse_string(json, fpc, pe, &last_name);
- if (np == NULL) { fhold; fbreak; } else fexec np;
- }
-
- action exit { fhold; fbreak; }
-
- a_pair = ignore* begin_name >parse_name
- ignore* name_separator ignore*
- begin_value >parse_value;
-
- main := begin_object
- (a_pair (ignore* value_separator a_pair)*)?
- ignore* end_object @exit;
-}%%
-
-static char *JSON_parse_object(JSON_Parser *json, char *p, char *pe, VALUE *result)
-{
- int cs = EVIL;
- VALUE last_name = Qnil;
-
- if (json->max_nesting && json->current_nesting > json->max_nesting) {
- rb_raise(eNestingError, "nesting of %d is to deep", json->current_nesting);
- }
-
- *result = rb_hash_new();
-
- %% write init;
- %% write exec;
-
- if (cs >= JSON_object_first_final) {
- if (RTEST(json->create_id)) {
- VALUE klassname = rb_hash_aref(*result, json->create_id);
- if (!NIL_P(klassname)) {
- VALUE klass = rb_path2class(StringValueCStr(klassname));
- if RTEST(rb_funcall(klass, i_json_creatable_p, 0)) {
- *result = rb_funcall(klass, i_json_create, 1, *result);
- }
- }
- }
- return p + 1;
- } else {
- return NULL;
- }
-}
-
-%%{
- machine JSON_value;
- include JSON_common;
-
- write data;
-
- action parse_null {
- *result = Qnil;
- }
- action parse_false {
- *result = Qfalse;
- }
- action parse_true {
- *result = Qtrue;
- }
- action parse_nan {
- if (json->allow_nan) {
- *result = CNaN;
- } else {
- rb_raise(eParserError, "%u: unexpected token at '%s'", __LINE__, p - 2);
- }
- }
- action parse_infinity {
- if (json->allow_nan) {
- *result = CInfinity;
- } else {
- rb_raise(eParserError, "%u: unexpected token at '%s'", __LINE__, p - 8);
- }
- }
- action parse_string {
- char *np = JSON_parse_string(json, fpc, pe, result);
- if (np == NULL) { fhold; fbreak; } else fexec np;
- }
-
- action parse_number {
- char *np;
- if(pe > fpc + 9 && !strncmp(MinusInfinity, fpc, 9)) {
- if (json->allow_nan) {
- *result = CMinusInfinity;
- fexec p + 10;
- fhold; fbreak;
- } else {
- rb_raise(eParserError, "%u: unexpected token at '%s'", __LINE__, p);
- }
- }
- np = JSON_parse_float(json, fpc, pe, result);
- if (np != NULL) fexec np;
- np = JSON_parse_integer(json, fpc, pe, result);
- if (np != NULL) fexec np;
- fhold; fbreak;
- }
-
- action parse_array {
- char *np;
- json->current_nesting++;
- np = JSON_parse_array(json, fpc, pe, result);
- json->current_nesting--;
- if (np == NULL) { fhold; fbreak; } else fexec np;
- }
-
- action parse_object {
- char *np;
- json->current_nesting++;
- np = JSON_parse_object(json, fpc, pe, result);
- json->current_nesting--;
- if (np == NULL) { fhold; fbreak; } else fexec np;
- }
-
- action exit { fhold; fbreak; }
-
-main := (
- Vnull @parse_null |
- Vfalse @parse_false |
- Vtrue @parse_true |
- VNaN @parse_nan |
- VInfinity @parse_infinity |
- begin_number >parse_number |
- begin_string >parse_string |
- begin_array >parse_array |
- begin_object >parse_object
- ) %*exit;
-}%%
-
-static char *JSON_parse_value(JSON_Parser *json, char *p, char *pe, VALUE *result)
-{
- int cs = EVIL;
-
- %% write init;
- %% write exec;
-
- if (cs >= JSON_value_first_final) {
- return p;
- } else {
- return NULL;
- }
-}
-
-%%{
- machine JSON_integer;
-
- write data;
-
- action exit { fhold; fbreak; }
-
- main := '-'? ('0' | [1-9][0-9]*) (^[0-9] @exit);
-}%%
-
-static char *JSON_parse_integer(JSON_Parser *json, char *p, char *pe, VALUE *result)
-{
- int cs = EVIL;
-
- %% write init;
- json->memo = p;
- %% write exec;
-
- if (cs >= JSON_integer_first_final) {
- long len = p - json->memo;
- *result = rb_Integer(rb_str_new(json->memo, len));
- return p + 1;
- } else {
- return NULL;
- }
-}
-
-%%{
- machine JSON_float;
- include JSON_common;
-
- write data;
-
- action exit { fhold; fbreak; }
-
- main := '-'? (
- (('0' | [1-9][0-9]*) '.' [0-9]+ ([Ee] [+\-]?[0-9]+)?)
- | (('0' | [1-9][0-9]*) ([Ee] [+\-]?[0-9]+))
- ) (^[0-9Ee.\-] @exit );
-}%%
-
-static char *JSON_parse_float(JSON_Parser *json, char *p, char *pe, VALUE *result)
-{
- int cs = EVIL;
-
- %% write init;
- json->memo = p;
- %% write exec;
-
- if (cs >= JSON_float_first_final) {
- long len = p - json->memo;
- *result = rb_Float(rb_str_new(json->memo, len));
- return p + 1;
- } else {
- return NULL;
- }
-}
-
-
-%%{
- machine JSON_array;
- include JSON_common;
-
- write data;
-
- action parse_value {
- VALUE v = Qnil;
- char *np = JSON_parse_value(json, fpc, pe, &v);
- if (np == NULL) {
- fhold; fbreak;
- } else {
- rb_ary_push(*result, v);
- fexec np;
- }
- }
-
- action exit { fhold; fbreak; }
-
- next_element = value_separator ignore* begin_value >parse_value;
-
- main := begin_array ignore*
- ((begin_value >parse_value ignore*)
- (ignore* next_element ignore*)*)?
- end_array @exit;
-}%%
-
-static char *JSON_parse_array(JSON_Parser *json, char *p, char *pe, VALUE *result)
-{
- int cs = EVIL;
-
- if (json->max_nesting && json->current_nesting > json->max_nesting) {
- rb_raise(eNestingError, "nesting of %d is to deep", json->current_nesting);
- }
- *result = rb_ary_new();
-
- %% write init;
- %% write exec;
-
- if(cs >= JSON_array_first_final) {
- return p + 1;
- } else {
- rb_raise(eParserError, "%u: unexpected token at '%s'", __LINE__, p);
- }
-}
-
-static VALUE json_string_unescape(char *p, char *pe)
-{
- VALUE result = rb_str_buf_new(pe - p + 1);
-
- while (p < pe) {
- if (*p == '\\') {
- p++;
- if (p >= pe) return Qnil; /* raise an exception later, \ at end */
- switch (*p) {
- case '"':
- case '\\':
- rb_str_buf_cat(result, p, 1);
- p++;
- break;
- case 'b':
- rb_str_buf_cat2(result, "\b");
- p++;
- break;
- case 'f':
- rb_str_buf_cat2(result, "\f");
- p++;
- break;
- case 'n':
- rb_str_buf_cat2(result, "\n");
- p++;
- break;
- case 'r':
- rb_str_buf_cat2(result, "\r");
- p++;
- break;
- case 't':
- rb_str_buf_cat2(result, "\t");
- p++;
- break;
- case 'u':
- if (p > pe - 4) {
- return Qnil;
- } else {
- p = JSON_convert_UTF16_to_UTF8(result, p, pe, strictConversion);
- }
- break;
- default:
- rb_str_buf_cat(result, p, 1);
- p++;
- break;
- }
- } else {
- char *q = p;
- while (*q != '\\' && q < pe) q++;
- rb_str_buf_cat(result, p, q - p);
- p = q;
- }
- }
- return result;
-}
-
-%%{
- machine JSON_string;
- include JSON_common;
-
- write data;
-
- action parse_string {
- *result = json_string_unescape(json->memo + 1, p);
- if (NIL_P(*result)) {
- fhold;
- fbreak;
- } else {
- FORCE_UTF8(*result);
- fexec p + 1;
- }
- }
-
- action exit { fhold; fbreak; }
-
- main := '"' ((^(["\\] | 0..0x1f) | '\\'["\\/bfnrt] | '\\u'[0-9a-fA-F]{4} | '\\'^(["\\/bfnrtu]|0..0x1f))* %parse_string) '"' @exit;
-}%%
-
-static char *JSON_parse_string(JSON_Parser *json, char *p, char *pe, VALUE *result)
-{
- int cs = EVIL;
-
- *result = rb_str_new("", 0);
- %% write init;
- json->memo = p;
- %% write exec;
-
- if (cs >= JSON_string_first_final) {
- return p + 1;
- } else {
- return NULL;
- }
-}
-
-
-%%{
- machine JSON;
-
- write data;
-
- include JSON_common;
-
- action parse_object {
- char *np;
- json->current_nesting = 1;
- np = JSON_parse_object(json, fpc, pe, &result);
- if (np == NULL) { fhold; fbreak; } else fexec np;
- }
-
- action parse_array {
- char *np;
- json->current_nesting = 1;
- np = JSON_parse_array(json, fpc, pe, &result);
- if (np == NULL) { fhold; fbreak; } else fexec np;
- }
-
- main := ignore* (
- begin_object >parse_object |
- begin_array >parse_array
- ) ignore*;
-}%%
-
-/*
- * Document-class: JSON::Ext::Parser
- *
- * This is the JSON parser implemented as a C extension. It can be configured
- * to be used by setting
- *
- * JSON.parser = JSON::Ext::Parser
- *
- * with the method parser= in JSON.
- *
- */
-
-/*
- * call-seq: new(source, opts => {})
- *
- * Creates a new JSON::Ext::Parser instance for the string _source_.
- *
- * Creates a new JSON::Ext::Parser instance for the string _source_.
- *
- * It will be configured by the _opts_ hash. _opts_ can have the following
- * keys:
- *
- * _opts_ can have the following keys:
- * * *max_nesting*: The maximum depth of nesting allowed in the parsed data
- * structures. Disable depth checking with :max_nesting => false|nil|0, it
- * defaults to 19.
- * * *allow_nan*: If set to true, allow NaN, Infinity and -Infinity in
- * defiance of RFC 4627 to be parsed by the Parser. This option defaults to
- * false.
- * * *create_additions*: If set to false, the Parser doesn't create
- * additions even if a matchin class and create_id was found. This option
- * defaults to true.
- */
-static VALUE cParser_initialize(int argc, VALUE *argv, VALUE self)
-{
- char *ptr;
- long len;
- VALUE source, opts;
- GET_STRUCT;
- rb_scan_args(argc, argv, "11", &source, &opts);
- source = StringValue(source);
- ptr = RSTRING_PTR(source);
- len = RSTRING_LEN(source);
- if (len < 2) {
- rb_raise(eParserError, "A JSON text must at least contain two octets!");
- }
- if (!NIL_P(opts)) {
- opts = rb_convert_type(opts, T_HASH, "Hash", "to_hash");
- if (NIL_P(opts)) {
- rb_raise(rb_eArgError, "opts needs to be like a hash");
- } else {
- VALUE tmp = ID2SYM(i_max_nesting);
- if (st_lookup(RHASH_TBL(opts), tmp, 0)) {
- VALUE max_nesting = rb_hash_aref(opts, tmp);
- if (RTEST(max_nesting)) {
- Check_Type(max_nesting, T_FIXNUM);
- json->max_nesting = FIX2INT(max_nesting);
- } else {
- json->max_nesting = 0;
- }
- } else {
- json->max_nesting = 19;
- }
- tmp = ID2SYM(i_allow_nan);
- if (st_lookup(RHASH_TBL(opts), tmp, 0)) {
- VALUE allow_nan = rb_hash_aref(opts, tmp);
- json->allow_nan = RTEST(allow_nan) ? 1 : 0;
- } else {
- json->allow_nan = 0;
- }
- tmp = ID2SYM(i_create_additions);
- if (st_lookup(RHASH_TBL(opts), tmp, 0)) {
- VALUE create_additions = rb_hash_aref(opts, tmp);
- if (RTEST(create_additions)) {
- json->create_id = rb_funcall(mJSON, i_create_id, 0);
- } else {
- json->create_id = Qnil;
- }
- } else {
- json->create_id = rb_funcall(mJSON, i_create_id, 0);
- }
- }
- } else {
- json->max_nesting = 19;
- json->allow_nan = 0;
- json->create_id = rb_funcall(mJSON, i_create_id, 0);
- }
- json->current_nesting = 0;
- /*
- Convert these?
- if (len >= 4 && ptr[0] == 0 && ptr[1] == 0 && ptr[2] == 0) {
- rb_raise(eParserError, "Only UTF8 octet streams are supported atm!");
- } else if (len >= 4 && ptr[0] == 0 && ptr[2] == 0) {
- rb_raise(eParserError, "Only UTF8 octet streams are supported atm!");
- } else if (len >= 4 && ptr[1] == 0 && ptr[2] == 0 && ptr[3] == 0) {
- rb_raise(eParserError, "Only UTF8 octet streams are supported atm!");
- } else if (len >= 4 && ptr[1] == 0 && ptr[3] == 0) {
- rb_raise(eParserError, "Only UTF8 octet streams are supported atm!");
- }
- */
- json->len = len;
- json->source = ptr;
- json->Vsource = source;
- return self;
-}
-
-/*
- * call-seq: parse()
- *
- * Parses the current JSON text _source_ and returns the complete data
- * structure as a result.
- */
-static VALUE cParser_parse(VALUE self)
-{
- char *p, *pe;
- int cs = EVIL;
- VALUE result = Qnil;
- GET_STRUCT;
-
- %% write init;
- p = json->source;
- pe = p + json->len;
- %% write exec;
-
- if (cs >= JSON_first_final && p == pe) {
- return result;
- } else {
- rb_raise(eParserError, "%u: unexpected token at '%s'", __LINE__, p);
- }
-}
-
-inline static JSON_Parser *JSON_allocate()
-{
- JSON_Parser *json = ALLOC(JSON_Parser);
- MEMZERO(json, JSON_Parser, 1);
- return json;
-}
-
-static void JSON_mark(JSON_Parser *json)
-{
- rb_gc_mark_maybe(json->Vsource);
- rb_gc_mark_maybe(json->create_id);
-}
-
-static void JSON_free(JSON_Parser *json)
-{
- ruby_xfree(json);
-}
-
-static VALUE cJSON_parser_s_allocate(VALUE klass)
-{
- JSON_Parser *json = JSON_allocate();
- return Data_Wrap_Struct(klass, JSON_mark, JSON_free, json);
-}
-
-/*
- * call-seq: source()
- *
- * Returns a copy of the current _source_ string, that was used to construct
- * this Parser.
- */
-static VALUE cParser_source(VALUE self)
-{
- GET_STRUCT;
- return rb_str_dup(json->Vsource);
-}
-
-void Init_parser()
-{
- rb_require("json/common");
- mJSON = rb_define_module("JSON");
- mExt = rb_define_module_under(mJSON, "Ext");
- cParser = rb_define_class_under(mExt, "Parser", rb_cObject);
- eParserError = rb_path2class("JSON::ParserError");
- eNestingError = rb_path2class("JSON::NestingError");
- rb_define_alloc_func(cParser, cJSON_parser_s_allocate);
- rb_define_method(cParser, "initialize", cParser_initialize, -1);
- rb_define_method(cParser, "parse", cParser_parse, 0);
- rb_define_method(cParser, "source", cParser_source, 0);
-
- CNaN = rb_const_get(mJSON, rb_intern("NaN"));
- CInfinity = rb_const_get(mJSON, rb_intern("Infinity"));
- CMinusInfinity = rb_const_get(mJSON, rb_intern("MinusInfinity"));
-
- i_json_creatable_p = rb_intern("json_creatable?");
- i_json_create = rb_intern("json_create");
- i_create_id = rb_intern("create_id");
- i_create_additions = rb_intern("create_additions");
- i_chr = rb_intern("chr");
- i_max_nesting = rb_intern("max_nesting");
- i_allow_nan = rb_intern("allow_nan");
-}
diff --git a/ext/json/ext/parser/unicode.c b/ext/json/ext/parser/unicode.c
deleted file mode 100644
index b2f1e58676..0000000000
--- a/ext/json/ext/parser/unicode.c
+++ /dev/null
@@ -1,154 +0,0 @@
-#include "unicode.h"
-
-/*
- * Copyright 2001-2004 Unicode, Inc.
- *
- * Disclaimer
- *
- * This source code is provided as is by Unicode, Inc. No claims are
- * made as to fitness for any particular purpose. No warranties of any
- * kind are expressed or implied. The recipient agrees to determine
- * applicability of information provided. If this file has been
- * purchased on magnetic or optical media from Unicode, Inc., the
- * sole remedy for any claim will be exchange of defective media
- * within 90 days of receipt.
- *
- * Limitations on Rights to Redistribute This Code
- *
- * Unicode, Inc. hereby grants the right to freely use the information
- * supplied in this file in the creation of products supporting the
- * Unicode Standard, and to make copies of this file in any form
- * for internal or external distribution as long as this notice
- * remains attached.
- */
-
-/*
- * Index into the table below with the first byte of a UTF-8 sequence to
- * get the number of trailing bytes that are supposed to follow it.
- * Note that *legal* UTF-8 values can't have 4 or 5-bytes. The table is
- * left as-is for anyone who may want to do such conversion, which was
- * allowed in earlier algorithms.
- */
-static const char trailingBytesForUTF8[256] = {
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
- 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
- 2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2, 3,3,3,3,3,3,3,3,4,4,4,4,5,5,5,5
-};
-
-/*
- * Magic values subtracted from a buffer value during UTF8 conversion.
- * This table contains as many values as there might be trailing bytes
- * in a UTF-8 sequence.
- */
-static const UTF32 offsetsFromUTF8[6] = { 0x00000000UL, 0x00003080UL, 0x000E2080UL,
- 0x03C82080UL, 0xFA082080UL, 0x82082080UL };
-
-/*
- * Once the bits are split out into bytes of UTF-8, this is a mask OR-ed
- * into the first byte, depending on how many bytes follow. There are
- * as many entries in this table as there are UTF-8 sequence types.
- * (I.e., one byte sequence, two byte... etc.). Remember that sequencs
- * for *legal* UTF-8 will be 4 or fewer bytes total.
- */
-static const UTF8 firstByteMark[7] = { 0x00, 0x00, 0xC0, 0xE0, 0xF0, 0xF8, 0xFC };
-
-char *JSON_convert_UTF16_to_UTF8 (
- VALUE buffer,
- char *source,
- char *sourceEnd,
- ConversionFlags flags)
-{
- UTF16 *tmp, *tmpPtr, *tmpEnd;
- char buf[5];
- long n = 0, i;
- char *p = source - 1;
-
- while (p < sourceEnd && p[0] == '\\' && p[1] == 'u') {
- p += 6;
- n++;
- }
- p = source + 1;
- buf[4] = 0;
- tmpPtr = tmp = ALLOC_N(UTF16, n);
- tmpEnd = tmp + n;
- for (i = 0; i < n; i++) {
- buf[0] = *p++;
- buf[1] = *p++;
- buf[2] = *p++;
- buf[3] = *p++;
- tmpPtr[i] = strtol(buf, NULL, 16);
- p += 2;
- }
-
- while (tmpPtr < tmpEnd) {
- UTF32 ch;
- unsigned short bytesToWrite = 0;
- const UTF32 byteMask = 0xBF;
- const UTF32 byteMark = 0x80;
- ch = *tmpPtr++;
- /* If we have a surrogate pair, convert to UTF32 first. */
- if (ch >= UNI_SUR_HIGH_START && ch <= UNI_SUR_HIGH_END) {
- /* If the 16 bits following the high surrogate are in the source
- * buffer... */
- if (tmpPtr < tmpEnd) {
- UTF32 ch2 = *tmpPtr;
- /* If it's a low surrogate, convert to UTF32. */
- if (ch2 >= UNI_SUR_LOW_START && ch2 <= UNI_SUR_LOW_END) {
- ch = ((ch - UNI_SUR_HIGH_START) << halfShift)
- + (ch2 - UNI_SUR_LOW_START) + halfBase;
- ++tmpPtr;
- } else if (flags == strictConversion) { /* it's an unpaired high surrogate */
- ruby_xfree(tmp);
- rb_raise(rb_path2class("JSON::ParserError"),
- "source sequence is illegal/malformed near %s", source);
- }
- } else { /* We don't have the 16 bits following the high surrogate. */
- ruby_xfree(tmp);
- rb_raise(rb_path2class("JSON::ParserError"),
- "partial character in source, but hit end near %s", source);
- break;
- }
- } else if (flags == strictConversion) {
- /* UTF-16 surrogate values are illegal in UTF-32 */
- if (ch >= UNI_SUR_LOW_START && ch <= UNI_SUR_LOW_END) {
- ruby_xfree(tmp);
- rb_raise(rb_path2class("JSON::ParserError"),
- "source sequence is illegal/malformed near %s", source);
- }
- }
- /* Figure out how many bytes the result will require */
- if (ch < (UTF32) 0x80) {
- bytesToWrite = 1;
- } else if (ch < (UTF32) 0x800) {
- bytesToWrite = 2;
- } else if (ch < (UTF32) 0x10000) {
- bytesToWrite = 3;
- } else if (ch < (UTF32) 0x110000) {
- bytesToWrite = 4;
- } else {
- bytesToWrite = 3;
- ch = UNI_REPLACEMENT_CHAR;
- }
-
- buf[0] = 0;
- buf[1] = 0;
- buf[2] = 0;
- buf[3] = 0;
- p = buf + bytesToWrite;
- switch (bytesToWrite) { /* note: everything falls through. */
- case 4: *--p = (UTF8) ((ch | byteMark) & byteMask); ch >>= 6;
- case 3: *--p = (UTF8) ((ch | byteMark) & byteMask); ch >>= 6;
- case 2: *--p = (UTF8) ((ch | byteMark) & byteMask); ch >>= 6;
- case 1: *--p = (UTF8) (ch | firstByteMark[bytesToWrite]);
- }
- rb_str_buf_cat(buffer, p, bytesToWrite);
- }
- ruby_xfree(tmp);
- source += 5 + (n - 1) * 6;
- return source;
-}
diff --git a/ext/json/ext/parser/unicode.h b/ext/json/ext/parser/unicode.h
deleted file mode 100644
index 155da0ceee..0000000000
--- a/ext/json/ext/parser/unicode.h
+++ /dev/null
@@ -1,58 +0,0 @@
-
-#ifndef _PARSER_UNICODE_H_
-#define _PARSER_UNICODE_H_
-
-#include "ruby.h"
-
-typedef unsigned long UTF32; /* at least 32 bits */
-typedef unsigned short UTF16; /* at least 16 bits */
-typedef unsigned char UTF8; /* typically 8 bits */
-
-#define UNI_REPLACEMENT_CHAR (UTF32)0x0000FFFD
-#define UNI_MAX_BMP (UTF32)0x0000FFFF
-#define UNI_MAX_UTF16 (UTF32)0x0010FFFF
-#define UNI_MAX_UTF32 (UTF32)0x7FFFFFFF
-#define UNI_MAX_LEGAL_UTF32 (UTF32)0x0010FFFF
-
-#define UNI_SUR_HIGH_START (UTF32)0xD800
-#define UNI_SUR_HIGH_END (UTF32)0xDBFF
-#define UNI_SUR_LOW_START (UTF32)0xDC00
-#define UNI_SUR_LOW_END (UTF32)0xDFFF
-
-static const int halfShift = 10; /* used for shifting by 10 bits */
-
-static const UTF32 halfBase = 0x0010000UL;
-static const UTF32 halfMask = 0x3FFUL;
-
-typedef enum {
- conversionOK = 0, /* conversion successful */
- sourceExhausted, /* partial character in source, but hit end */
- targetExhausted, /* insuff. room in target for conversion */
- sourceIllegal /* source sequence is illegal/malformed */
-} ConversionResult;
-
-typedef enum {
- strictConversion = 0,
- lenientConversion
-} ConversionFlags;
-
-char *JSON_convert_UTF16_to_UTF8 (
- VALUE buffer,
- char *source,
- char *sourceEnd,
- ConversionFlags flags);
-
-#ifndef RARRAY_PTR
-#define RARRAY_PTR(ARRAY) RARRAY(ARRAY)->ptr
-#endif
-#ifndef RARRAY_LEN
-#define RARRAY_LEN(ARRAY) RARRAY(ARRAY)->len
-#endif
-#ifndef RSTRING_PTR
-#define RSTRING_PTR(string) RSTRING(string)->ptr
-#endif
-#ifndef RSTRING_LEN
-#define RSTRING_LEN(string) RSTRING(string)->len
-#endif
-
-#endif
diff --git a/ext/json/generator/depend b/ext/json/generator/depend
new file mode 100644
index 0000000000..bb76ad6400
--- /dev/null
+++ b/ext/json/generator/depend
@@ -0,0 +1 @@
+generator.o: generator.c generator.h
diff --git a/ext/json/generator/extconf.rb b/ext/json/generator/extconf.rb
new file mode 100644
index 0000000000..b94f71e8b3
--- /dev/null
+++ b/ext/json/generator/extconf.rb
@@ -0,0 +1,10 @@
+require 'mkmf'
+require 'rbconfig'
+
+if RUBY_VERSION < "1.9"
+ have_header("re.h")
+else
+ have_header("ruby/re.h")
+ have_header("ruby/encoding.h")
+end
+create_makefile 'json/ext/generator'
diff --git a/ext/json/generator/generator.c b/ext/json/generator/generator.c
new file mode 100644
index 0000000000..9ad037cd40
--- /dev/null
+++ b/ext/json/generator/generator.c
@@ -0,0 +1,1459 @@
+#include "generator.h"
+
+#ifdef HAVE_RUBY_ENCODING_H
+static VALUE CEncoding_UTF_8;
+static ID i_encoding, i_encode;
+#endif
+
+static VALUE mJSON, mExt, mGenerator, cState, mGeneratorMethods, mObject,
+ mHash, mArray, mFixnum, mBignum, mFloat, mString, mString_Extend,
+ mTrueClass, mFalseClass, mNilClass, eGeneratorError,
+ eNestingError, CRegexp_MULTILINE, CJSON_SAFE_STATE_PROTOTYPE,
+ i_SAFE_STATE_PROTOTYPE;
+
+static ID i_to_s, i_to_json, i_new, i_indent, i_space, i_space_before,
+ i_object_nl, i_array_nl, i_max_nesting, i_allow_nan, i_ascii_only,
+ i_quirks_mode, i_pack, i_unpack, i_create_id, i_extend, i_key_p,
+ i_aref, i_send, i_respond_to_p, i_match, i_keys, i_depth, i_dup;
+
+/*
+ * Copyright 2001-2004 Unicode, Inc.
+ *
+ * Disclaimer
+ *
+ * This source code is provided as is by Unicode, Inc. No claims are
+ * made as to fitness for any particular purpose. No warranties of any
+ * kind are expressed or implied. The recipient agrees to determine
+ * applicability of information provided. If this file has been
+ * purchased on magnetic or optical media from Unicode, Inc., the
+ * sole remedy for any claim will be exchange of defective media
+ * within 90 days of receipt.
+ *
+ * Limitations on Rights to Redistribute This Code
+ *
+ * Unicode, Inc. hereby grants the right to freely use the information
+ * supplied in this file in the creation of products supporting the
+ * Unicode Standard, and to make copies of this file in any form
+ * for internal or external distribution as long as this notice
+ * remains attached.
+ */
+
+/*
+ * Index into the table below with the first byte of a UTF-8 sequence to
+ * get the number of trailing bytes that are supposed to follow it.
+ * Note that *legal* UTF-8 values can't have 4 or 5-bytes. The table is
+ * left as-is for anyone who may want to do such conversion, which was
+ * allowed in earlier algorithms.
+ */
+static const char trailingBytesForUTF8[256] = {
+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+ 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0, 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,
+ 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1, 1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,
+ 2,2,2,2,2,2,2,2,2,2,2,2,2,2,2,2, 3,3,3,3,3,3,3,3,4,4,4,4,5,5,5,5
+};
+
+/*
+ * Magic values subtracted from a buffer value during UTF8 conversion.
+ * This table contains as many values as there might be trailing bytes
+ * in a UTF-8 sequence.
+ */
+static const UTF32 offsetsFromUTF8[6] = { 0x00000000UL, 0x00003080UL, 0x000E2080UL,
+ 0x03C82080UL, 0xFA082080UL, 0x82082080UL };
+
+/*
+ * Utility routine to tell whether a sequence of bytes is legal UTF-8.
+ * This must be called with the length pre-determined by the first byte.
+ * If not calling this from ConvertUTF8to*, then the length can be set by:
+ * length = trailingBytesForUTF8[*source]+1;
+ * and the sequence is illegal right away if there aren't that many bytes
+ * available.
+ * If presented with a length > 4, this returns 0. The Unicode
+ * definition of UTF-8 goes up to 4-byte sequences.
+ */
+static unsigned char isLegalUTF8(const UTF8 *source, unsigned long length)
+{
+ UTF8 a;
+ const UTF8 *srcptr = source+length;
+ switch (length) {
+ default: return 0;
+ /* Everything else falls through when "1"... */
+ case 4: if ((a = (*--srcptr)) < 0x80 || a > 0xBF) return 0;
+ case 3: if ((a = (*--srcptr)) < 0x80 || a > 0xBF) return 0;
+ case 2: if ((a = (*--srcptr)) > 0xBF) return 0;
+
+ switch (*source) {
+ /* no fall-through in this inner switch */
+ case 0xE0: if (a < 0xA0) return 0; break;
+ case 0xED: if (a > 0x9F) return 0; break;
+ case 0xF0: if (a < 0x90) return 0; break;
+ case 0xF4: if (a > 0x8F) return 0; break;
+ default: if (a < 0x80) return 0;
+ }
+
+ case 1: if (*source >= 0x80 && *source < 0xC2) return 0;
+ }
+ if (*source > 0xF4) return 0;
+ return 1;
+}
+
+/* Escapes the UTF16 character and stores the result in the buffer buf. */
+static void unicode_escape(char *buf, UTF16 character)
+{
+ const char *digits = "0123456789abcdef";
+
+ buf[2] = digits[character >> 12];
+ buf[3] = digits[(character >> 8) & 0xf];
+ buf[4] = digits[(character >> 4) & 0xf];
+ buf[5] = digits[character & 0xf];
+}
+
+/* Escapes the UTF16 character and stores the result in the buffer buf, then
+ * the buffer buf Ñ–s appended to the FBuffer buffer. */
+static void unicode_escape_to_buffer(FBuffer *buffer, char buf[6], UTF16
+ character)
+{
+ unicode_escape(buf, character);
+ fbuffer_append(buffer, buf, 6);
+}
+
+/* Converts string to a JSON string in FBuffer buffer, where all but the ASCII
+ * and control characters are JSON escaped. */
+static void convert_UTF8_to_JSON_ASCII(FBuffer *buffer, VALUE string)
+{
+ const UTF8 *source = (UTF8 *) RSTRING_PTR(string);
+ const UTF8 *sourceEnd = source + RSTRING_LEN(string);
+ char buf[6] = { '\\', 'u' };
+
+ while (source < sourceEnd) {
+ UTF32 ch = 0;
+ unsigned short extraBytesToRead = trailingBytesForUTF8[*source];
+ if (source + extraBytesToRead >= sourceEnd) {
+ rb_raise(rb_path2class("JSON::GeneratorError"),
+ "partial character in source, but hit end");
+ }
+ if (!isLegalUTF8(source, extraBytesToRead+1)) {
+ rb_raise(rb_path2class("JSON::GeneratorError"),
+ "source sequence is illegal/malformed utf-8");
+ }
+ /*
+ * The cases all fall through. See "Note A" below.
+ */
+ switch (extraBytesToRead) {
+ case 5: ch += *source++; ch <<= 6; /* remember, illegal UTF-8 */
+ case 4: ch += *source++; ch <<= 6; /* remember, illegal UTF-8 */
+ case 3: ch += *source++; ch <<= 6;
+ case 2: ch += *source++; ch <<= 6;
+ case 1: ch += *source++; ch <<= 6;
+ case 0: ch += *source++;
+ }
+ ch -= offsetsFromUTF8[extraBytesToRead];
+
+ if (ch <= UNI_MAX_BMP) { /* Target is a character <= 0xFFFF */
+ /* UTF-16 surrogate values are illegal in UTF-32 */
+ if (ch >= UNI_SUR_HIGH_START && ch <= UNI_SUR_LOW_END) {
+#if UNI_STRICT_CONVERSION
+ source -= (extraBytesToRead+1); /* return to the illegal value itself */
+ rb_raise(rb_path2class("JSON::GeneratorError"),
+ "source sequence is illegal/malformed utf-8");
+#else
+ unicode_escape_to_buffer(buffer, buf, UNI_REPLACEMENT_CHAR);
+#endif
+ } else {
+ /* normal case */
+ if (ch >= 0x20 && ch <= 0x7f) {
+ switch (ch) {
+ case '\\':
+ fbuffer_append(buffer, "\\\\", 2);
+ break;
+ case '"':
+ fbuffer_append(buffer, "\\\"", 2);
+ break;
+ default:
+ fbuffer_append_char(buffer, (char)ch);
+ break;
+ }
+ } else {
+ switch (ch) {
+ case '\n':
+ fbuffer_append(buffer, "\\n", 2);
+ break;
+ case '\r':
+ fbuffer_append(buffer, "\\r", 2);
+ break;
+ case '\t':
+ fbuffer_append(buffer, "\\t", 2);
+ break;
+ case '\f':
+ fbuffer_append(buffer, "\\f", 2);
+ break;
+ case '\b':
+ fbuffer_append(buffer, "\\b", 2);
+ break;
+ default:
+ unicode_escape_to_buffer(buffer, buf, (UTF16) ch);
+ break;
+ }
+ }
+ }
+ } else if (ch > UNI_MAX_UTF16) {
+#if UNI_STRICT_CONVERSION
+ source -= (extraBytesToRead+1); /* return to the start */
+ rb_raise(rb_path2class("JSON::GeneratorError"),
+ "source sequence is illegal/malformed utf8");
+#else
+ unicode_escape_to_buffer(buffer, buf, UNI_REPLACEMENT_CHAR);
+#endif
+ } else {
+ /* target is a character in range 0xFFFF - 0x10FFFF. */
+ ch -= halfBase;
+ unicode_escape_to_buffer(buffer, buf, (UTF16)((ch >> halfShift) + UNI_SUR_HIGH_START));
+ unicode_escape_to_buffer(buffer, buf, (UTF16)((ch & halfMask) + UNI_SUR_LOW_START));
+ }
+ }
+}
+
+/* Converts string to a JSON string in FBuffer buffer, where only the
+ * characters required by the JSON standard are JSON escaped. The remaining
+ * characters (should be UTF8) are just passed through and appended to the
+ * result. */
+static void convert_UTF8_to_JSON(FBuffer *buffer, VALUE string)
+{
+ const char *ptr = RSTRING_PTR(string), *p;
+ unsigned long len = RSTRING_LEN(string), start = 0, end = 0;
+ const char *escape = NULL;
+ int escape_len;
+ unsigned char c;
+ char buf[6] = { '\\', 'u' };
+
+ for (start = 0, end = 0; end < len;) {
+ p = ptr + end;
+ c = (unsigned char) *p;
+ if (c < 0x20) {
+ switch (c) {
+ case '\n':
+ escape = "\\n";
+ escape_len = 2;
+ break;
+ case '\r':
+ escape = "\\r";
+ escape_len = 2;
+ break;
+ case '\t':
+ escape = "\\t";
+ escape_len = 2;
+ break;
+ case '\f':
+ escape = "\\f";
+ escape_len = 2;
+ break;
+ case '\b':
+ escape = "\\b";
+ escape_len = 2;
+ break;
+ default:
+ unicode_escape(buf, (UTF16) *p);
+ escape = buf;
+ escape_len = 6;
+ break;
+ }
+ } else {
+ switch (c) {
+ case '\\':
+ escape = "\\\\";
+ escape_len = 2;
+ break;
+ case '"':
+ escape = "\\\"";
+ escape_len = 2;
+ break;
+ default:
+ end++;
+ continue;
+ break;
+ }
+ }
+ fbuffer_append(buffer, ptr + start, end - start);
+ fbuffer_append(buffer, escape, escape_len);
+ start = ++end;
+ escape = NULL;
+ }
+ fbuffer_append(buffer, ptr + start, end - start);
+}
+
+static char *fstrndup(const char *ptr, unsigned long len) {
+ char *result;
+ if (len <= 0) return NULL;
+ result = ALLOC_N(char, len);
+ memccpy(result, ptr, 0, len);
+ return result;
+}
+
+/* fbuffer implementation */
+
+static FBuffer *fbuffer_alloc()
+{
+ FBuffer *fb = ALLOC(FBuffer);
+ memset((void *) fb, 0, sizeof(FBuffer));
+ fb->initial_length = FBUFFER_INITIAL_LENGTH;
+ return fb;
+}
+
+static FBuffer *fbuffer_alloc_with_length(unsigned long initial_length)
+{
+ FBuffer *fb;
+ assert(initial_length > 0);
+ fb = ALLOC(FBuffer);
+ memset((void *) fb, 0, sizeof(FBuffer));
+ fb->initial_length = initial_length;
+ return fb;
+}
+
+static void fbuffer_free(FBuffer *fb)
+{
+ if (fb->ptr) ruby_xfree(fb->ptr);
+ ruby_xfree(fb);
+}
+
+static void fbuffer_clear(FBuffer *fb)
+{
+ fb->len = 0;
+}
+
+static void fbuffer_inc_capa(FBuffer *fb, unsigned long requested)
+{
+ unsigned long required;
+
+ if (!fb->ptr) {
+ fb->ptr = ALLOC_N(char, fb->initial_length);
+ fb->capa = fb->initial_length;
+ }
+
+ for (required = fb->capa; requested > required - fb->len; required <<= 1);
+
+ if (required > fb->capa) {
+ REALLOC_N(fb->ptr, char, required);
+ fb->capa = required;
+ }
+}
+
+static void fbuffer_append(FBuffer *fb, const char *newstr, unsigned long len)
+{
+ if (len > 0) {
+ fbuffer_inc_capa(fb, len);
+ MEMCPY(fb->ptr + fb->len, newstr, char, len);
+ fb->len += len;
+ }
+}
+
+static void fbuffer_append_str(FBuffer *fb, VALUE str)
+{
+ const char *newstr = StringValuePtr(str);
+ unsigned long len = RSTRING_LEN(str);
+
+ RB_GC_GUARD(str);
+
+ fbuffer_append(fb, newstr, len);
+}
+
+static void fbuffer_append_char(FBuffer *fb, char newchr)
+{
+ fbuffer_inc_capa(fb, 1);
+ *(fb->ptr + fb->len) = newchr;
+ fb->len++;
+}
+
+static void freverse(char *start, char *end)
+{
+ char c;
+
+ while (end > start) {
+ c = *end, *end-- = *start, *start++ = c;
+ }
+}
+
+static long fltoa(long number, char *buf)
+{
+ static char digits[] = "0123456789";
+ long sign = number;
+ char* tmp = buf;
+
+ if (sign < 0) number = -number;
+ do *tmp++ = digits[number % 10]; while (number /= 10);
+ if (sign < 0) *tmp++ = '-';
+ freverse(buf, tmp - 1);
+ return tmp - buf;
+}
+
+static void fbuffer_append_long(FBuffer *fb, long number)
+{
+ char buf[20];
+ unsigned long len = fltoa(number, buf);
+ fbuffer_append(fb, buf, len);
+}
+
+static FBuffer *fbuffer_dup(FBuffer *fb)
+{
+ unsigned long len = fb->len;
+ FBuffer *result;
+
+ if (len > 0) {
+ result = fbuffer_alloc_with_length(len);
+ fbuffer_append(result, FBUFFER_PAIR(fb));
+ } else {
+ result = fbuffer_alloc();
+ }
+ return result;
+}
+
+/*
+ * Document-module: JSON::Ext::Generator
+ *
+ * This is the JSON generator implemented as a C extension. It can be
+ * configured to be used by setting
+ *
+ * JSON.generator = JSON::Ext::Generator
+ *
+ * with the method generator= in JSON.
+ *
+ */
+
+/*
+ * call-seq: to_json(state = nil)
+ *
+ * Returns a JSON string containing a JSON object, that is generated from
+ * this Hash instance.
+ * _state_ is a JSON::State object, that can also be used to configure the
+ * produced JSON string output further.
+ */
+static VALUE mHash_to_json(int argc, VALUE *argv, VALUE self)
+{
+ GENERATE_JSON(object);
+}
+
+/*
+ * call-seq: to_json(state = nil)
+ *
+ * Returns a JSON string containing a JSON array, that is generated from
+ * this Array instance.
+ * _state_ is a JSON::State object, that can also be used to configure the
+ * produced JSON string output further.
+ */
+static VALUE mArray_to_json(int argc, VALUE *argv, VALUE self) {
+ GENERATE_JSON(array);
+}
+
+/*
+ * call-seq: to_json(*)
+ *
+ * Returns a JSON string representation for this Integer number.
+ */
+static VALUE mFixnum_to_json(int argc, VALUE *argv, VALUE self)
+{
+ GENERATE_JSON(fixnum);
+}
+
+/*
+ * call-seq: to_json(*)
+ *
+ * Returns a JSON string representation for this Integer number.
+ */
+static VALUE mBignum_to_json(int argc, VALUE *argv, VALUE self)
+{
+ GENERATE_JSON(bignum);
+}
+
+/*
+ * call-seq: to_json(*)
+ *
+ * Returns a JSON string representation for this Float number.
+ */
+static VALUE mFloat_to_json(int argc, VALUE *argv, VALUE self)
+{
+ GENERATE_JSON(float);
+}
+
+/*
+ * call-seq: String.included(modul)
+ *
+ * Extends _modul_ with the String::Extend module.
+ */
+static VALUE mString_included_s(VALUE self, VALUE modul) {
+ VALUE result = rb_funcall(modul, i_extend, 1, mString_Extend);
+ return result;
+}
+
+/*
+ * call-seq: to_json(*)
+ *
+ * This string should be encoded with UTF-8 A call to this method
+ * returns a JSON string encoded with UTF16 big endian characters as
+ * \u????.
+ */
+static VALUE mString_to_json(int argc, VALUE *argv, VALUE self)
+{
+ GENERATE_JSON(string);
+}
+
+/*
+ * call-seq: to_json_raw_object()
+ *
+ * This method creates a raw object hash, that can be nested into
+ * other data structures and will be generated as a raw string. This
+ * method should be used, if you want to convert raw strings to JSON
+ * instead of UTF-8 strings, e. g. binary data.
+ */
+static VALUE mString_to_json_raw_object(VALUE self)
+{
+ VALUE ary;
+ VALUE result = rb_hash_new();
+ rb_hash_aset(result, rb_funcall(mJSON, i_create_id, 0), rb_class_name(rb_obj_class(self)));
+ ary = rb_funcall(self, i_unpack, 1, rb_str_new2("C*"));
+ rb_hash_aset(result, rb_str_new2("raw"), ary);
+ return result;
+}
+
+/*
+ * call-seq: to_json_raw(*args)
+ *
+ * This method creates a JSON text from the result of a call to
+ * to_json_raw_object of this String.
+ */
+static VALUE mString_to_json_raw(int argc, VALUE *argv, VALUE self)
+{
+ VALUE obj = mString_to_json_raw_object(self);
+ Check_Type(obj, T_HASH);
+ return mHash_to_json(argc, argv, obj);
+}
+
+/*
+ * call-seq: json_create(o)
+ *
+ * Raw Strings are JSON Objects (the raw bytes are stored in an array for the
+ * key "raw"). The Ruby String can be created by this module method.
+ */
+static VALUE mString_Extend_json_create(VALUE self, VALUE o)
+{
+ VALUE ary;
+ Check_Type(o, T_HASH);
+ ary = rb_hash_aref(o, rb_str_new2("raw"));
+ return rb_funcall(ary, i_pack, 1, rb_str_new2("C*"));
+}
+
+/*
+ * call-seq: to_json(*)
+ *
+ * Returns a JSON string for true: 'true'.
+ */
+static VALUE mTrueClass_to_json(int argc, VALUE *argv, VALUE self)
+{
+ GENERATE_JSON(true);
+}
+
+/*
+ * call-seq: to_json(*)
+ *
+ * Returns a JSON string for false: 'false'.
+ */
+static VALUE mFalseClass_to_json(int argc, VALUE *argv, VALUE self)
+{
+ GENERATE_JSON(false);
+}
+
+/*
+ * call-seq: to_json(*)
+ *
+ * Returns a JSON string for nil: 'null'.
+ */
+static VALUE mNilClass_to_json(int argc, VALUE *argv, VALUE self)
+{
+ GENERATE_JSON(null);
+}
+
+/*
+ * call-seq: to_json(*)
+ *
+ * Converts this object to a string (calling #to_s), converts
+ * it to a JSON string, and returns the result. This is a fallback, if no
+ * special method #to_json was defined for some object.
+ */
+static VALUE mObject_to_json(int argc, VALUE *argv, VALUE self)
+{
+ VALUE state;
+ VALUE string = rb_funcall(self, i_to_s, 0);
+ rb_scan_args(argc, argv, "01", &state);
+ Check_Type(string, T_STRING);
+ state = cState_from_state_s(cState, state);
+ return cState_partial_generate(state, string);
+}
+
+static void State_free(JSON_Generator_State *state)
+{
+ if (state->indent) ruby_xfree(state->indent);
+ if (state->space) ruby_xfree(state->space);
+ if (state->space_before) ruby_xfree(state->space_before);
+ if (state->object_nl) ruby_xfree(state->object_nl);
+ if (state->array_nl) ruby_xfree(state->array_nl);
+ if (state->array_delim) fbuffer_free(state->array_delim);
+ if (state->object_delim) fbuffer_free(state->object_delim);
+ if (state->object_delim2) fbuffer_free(state->object_delim2);
+ ruby_xfree(state);
+}
+
+static JSON_Generator_State *State_allocate()
+{
+ JSON_Generator_State *state = ALLOC(JSON_Generator_State);
+ MEMZERO(state, JSON_Generator_State, 1);
+ return state;
+}
+
+static VALUE cState_s_allocate(VALUE klass)
+{
+ JSON_Generator_State *state = State_allocate();
+ return Data_Wrap_Struct(klass, NULL, State_free, state);
+}
+
+/*
+ * call-seq: configure(opts)
+ *
+ * Configure this State instance with the Hash _opts_, and return
+ * itself.
+ */
+static VALUE cState_configure(VALUE self, VALUE opts)
+{
+ VALUE tmp;
+ GET_STATE(self);
+ tmp = rb_convert_type(opts, T_HASH, "Hash", "to_hash");
+ if (NIL_P(tmp)) tmp = rb_convert_type(opts, T_HASH, "Hash", "to_h");
+ if (NIL_P(tmp)) {
+ rb_raise(rb_eArgError, "opts has to be hash like or convertable into a hash");
+ }
+ opts = tmp;
+ tmp = rb_hash_aref(opts, ID2SYM(i_indent));
+ if (RTEST(tmp)) {
+ unsigned long len;
+ Check_Type(tmp, T_STRING);
+ len = RSTRING_LEN(tmp);
+ state->indent = fstrndup(RSTRING_PTR(tmp), len);
+ state->indent_len = len;
+ }
+ tmp = rb_hash_aref(opts, ID2SYM(i_space));
+ if (RTEST(tmp)) {
+ unsigned long len;
+ Check_Type(tmp, T_STRING);
+ len = RSTRING_LEN(tmp);
+ state->space = fstrndup(RSTRING_PTR(tmp), len);
+ state->space_len = len;
+ }
+ tmp = rb_hash_aref(opts, ID2SYM(i_space_before));
+ if (RTEST(tmp)) {
+ unsigned long len;
+ Check_Type(tmp, T_STRING);
+ len = RSTRING_LEN(tmp);
+ state->space_before = fstrndup(RSTRING_PTR(tmp), len);
+ state->space_before_len = len;
+ }
+ tmp = rb_hash_aref(opts, ID2SYM(i_array_nl));
+ if (RTEST(tmp)) {
+ unsigned long len;
+ Check_Type(tmp, T_STRING);
+ len = RSTRING_LEN(tmp);
+ state->array_nl = fstrndup(RSTRING_PTR(tmp), len);
+ state->array_nl_len = len;
+ }
+ tmp = rb_hash_aref(opts, ID2SYM(i_object_nl));
+ if (RTEST(tmp)) {
+ unsigned long len;
+ Check_Type(tmp, T_STRING);
+ len = RSTRING_LEN(tmp);
+ state->object_nl = fstrndup(RSTRING_PTR(tmp), len);
+ state->object_nl_len = len;
+ }
+ tmp = ID2SYM(i_max_nesting);
+ state->max_nesting = 19;
+ if (option_given_p(opts, tmp)) {
+ VALUE max_nesting = rb_hash_aref(opts, tmp);
+ if (RTEST(max_nesting)) {
+ Check_Type(max_nesting, T_FIXNUM);
+ state->max_nesting = FIX2LONG(max_nesting);
+ } else {
+ state->max_nesting = 0;
+ }
+ }
+ tmp = ID2SYM(i_depth);
+ state->depth = 0;
+ if (option_given_p(opts, tmp)) {
+ VALUE depth = rb_hash_aref(opts, tmp);
+ if (RTEST(depth)) {
+ Check_Type(depth, T_FIXNUM);
+ state->depth = FIX2LONG(depth);
+ } else {
+ state->depth = 0;
+ }
+ }
+ tmp = rb_hash_aref(opts, ID2SYM(i_allow_nan));
+ state->allow_nan = RTEST(tmp);
+ tmp = rb_hash_aref(opts, ID2SYM(i_ascii_only));
+ state->ascii_only = RTEST(tmp);
+ tmp = rb_hash_aref(opts, ID2SYM(i_quirks_mode));
+ state->quirks_mode = RTEST(tmp);
+ return self;
+}
+
+/*
+ * call-seq: to_h
+ *
+ * Returns the configuration instance variables as a hash, that can be
+ * passed to the configure method.
+ */
+static VALUE cState_to_h(VALUE self)
+{
+ VALUE result = rb_hash_new();
+ GET_STATE(self);
+ rb_hash_aset(result, ID2SYM(i_indent), rb_str_new(state->indent, state->indent_len));
+ rb_hash_aset(result, ID2SYM(i_space), rb_str_new(state->space, state->space_len));
+ rb_hash_aset(result, ID2SYM(i_space_before), rb_str_new(state->space_before, state->space_before_len));
+ rb_hash_aset(result, ID2SYM(i_object_nl), rb_str_new(state->object_nl, state->object_nl_len));
+ rb_hash_aset(result, ID2SYM(i_array_nl), rb_str_new(state->array_nl, state->array_nl_len));
+ rb_hash_aset(result, ID2SYM(i_allow_nan), state->allow_nan ? Qtrue : Qfalse);
+ rb_hash_aset(result, ID2SYM(i_ascii_only), state->ascii_only ? Qtrue : Qfalse);
+ rb_hash_aset(result, ID2SYM(i_quirks_mode), state->quirks_mode ? Qtrue : Qfalse);
+ rb_hash_aset(result, ID2SYM(i_max_nesting), LONG2FIX(state->max_nesting));
+ rb_hash_aset(result, ID2SYM(i_depth), LONG2FIX(state->depth));
+ return result;
+}
+
+/*
+* call-seq: [](name)
+*
+* Return the value returned by method +name+.
+*/
+static VALUE cState_aref(VALUE self, VALUE name)
+{
+ GET_STATE(self);
+ if (RTEST(rb_funcall(self, i_respond_to_p, 1, name))) {
+ return rb_funcall(self, i_send, 1, name);
+ } else {
+ return Qnil;
+ }
+}
+
+static void generate_json_object(FBuffer *buffer, VALUE Vstate, JSON_Generator_State *state, VALUE obj)
+{
+ char *object_nl = state->object_nl;
+ long object_nl_len = state->object_nl_len;
+ char *indent = state->indent;
+ long indent_len = state->indent_len;
+ long max_nesting = state->max_nesting;
+ char *delim = FBUFFER_PTR(state->object_delim);
+ long delim_len = FBUFFER_LEN(state->object_delim);
+ char *delim2 = FBUFFER_PTR(state->object_delim2);
+ long delim2_len = FBUFFER_LEN(state->object_delim2);
+ long depth = ++state->depth;
+ int i, j;
+ VALUE key, key_to_s, keys;
+ if (max_nesting != 0 && depth > max_nesting) {
+ fbuffer_free(buffer);
+ rb_raise(eNestingError, "nesting of %ld is too deep", --state->depth);
+ }
+ fbuffer_append_char(buffer, '{');
+ keys = rb_funcall(obj, i_keys, 0);
+ for(i = 0; i < RARRAY_LEN(keys); i++) {
+ if (i > 0) fbuffer_append(buffer, delim, delim_len);
+ if (object_nl) {
+ fbuffer_append(buffer, object_nl, object_nl_len);
+ }
+ if (indent) {
+ for (j = 0; j < depth; j++) {
+ fbuffer_append(buffer, indent, indent_len);
+ }
+ }
+ key = rb_ary_entry(keys, i);
+ key_to_s = rb_funcall(key, i_to_s, 0);
+ Check_Type(key_to_s, T_STRING);
+ generate_json(buffer, Vstate, state, key_to_s);
+ fbuffer_append(buffer, delim2, delim2_len);
+ generate_json(buffer, Vstate, state, rb_hash_aref(obj, key));
+ }
+ depth = --state->depth;
+ if (object_nl) {
+ fbuffer_append(buffer, object_nl, object_nl_len);
+ if (indent) {
+ for (j = 0; j < depth; j++) {
+ fbuffer_append(buffer, indent, indent_len);
+ }
+ }
+ }
+ fbuffer_append_char(buffer, '}');
+}
+
+static void generate_json_array(FBuffer *buffer, VALUE Vstate, JSON_Generator_State *state, VALUE obj)
+{
+ char *array_nl = state->array_nl;
+ long array_nl_len = state->array_nl_len;
+ char *indent = state->indent;
+ long indent_len = state->indent_len;
+ long max_nesting = state->max_nesting;
+ char *delim = FBUFFER_PTR(state->array_delim);
+ long delim_len = FBUFFER_LEN(state->array_delim);
+ long depth = ++state->depth;
+ int i, j;
+ if (max_nesting != 0 && depth > max_nesting) {
+ fbuffer_free(buffer);
+ rb_raise(eNestingError, "nesting of %ld is too deep", --state->depth);
+ }
+ fbuffer_append_char(buffer, '[');
+ if (array_nl) fbuffer_append(buffer, array_nl, array_nl_len);
+ for(i = 0; i < RARRAY_LEN(obj); i++) {
+ if (i > 0) fbuffer_append(buffer, delim, delim_len);
+ if (indent) {
+ for (j = 0; j < depth; j++) {
+ fbuffer_append(buffer, indent, indent_len);
+ }
+ }
+ generate_json(buffer, Vstate, state, rb_ary_entry(obj, i));
+ }
+ state->depth = --depth;
+ if (array_nl) {
+ fbuffer_append(buffer, array_nl, array_nl_len);
+ if (indent) {
+ for (j = 0; j < depth; j++) {
+ fbuffer_append(buffer, indent, indent_len);
+ }
+ }
+ }
+ fbuffer_append_char(buffer, ']');
+}
+
+static void generate_json_string(FBuffer *buffer, VALUE Vstate, JSON_Generator_State *state, VALUE obj)
+{
+ fbuffer_append_char(buffer, '"');
+#ifdef HAVE_RUBY_ENCODING_H
+ obj = rb_funcall(obj, i_encode, 1, CEncoding_UTF_8);
+#endif
+ if (state->ascii_only) {
+ convert_UTF8_to_JSON_ASCII(buffer, obj);
+ } else {
+ convert_UTF8_to_JSON(buffer, obj);
+ }
+ fbuffer_append_char(buffer, '"');
+}
+
+static void generate_json_null(FBuffer *buffer, VALUE Vstate, JSON_Generator_State *state, VALUE obj)
+{
+ fbuffer_append(buffer, "null", 4);
+}
+
+static void generate_json_false(FBuffer *buffer, VALUE Vstate, JSON_Generator_State *state, VALUE obj)
+{
+ fbuffer_append(buffer, "false", 5);
+}
+
+static void generate_json_true(FBuffer *buffer, VALUE Vstate, JSON_Generator_State *state, VALUE obj)
+{
+ fbuffer_append(buffer, "true", 4);
+}
+
+static void generate_json_fixnum(FBuffer *buffer, VALUE Vstate, JSON_Generator_State *state, VALUE obj)
+{
+ fbuffer_append_long(buffer, FIX2LONG(obj));
+}
+
+static void generate_json_bignum(FBuffer *buffer, VALUE Vstate, JSON_Generator_State *state, VALUE obj)
+{
+ VALUE tmp = rb_funcall(obj, i_to_s, 0);
+ fbuffer_append_str(buffer, tmp);
+}
+
+static void generate_json_float(FBuffer *buffer, VALUE Vstate, JSON_Generator_State *state, VALUE obj)
+{
+ double value = RFLOAT_VALUE(obj);
+ char allow_nan = state->allow_nan;
+ VALUE tmp = rb_funcall(obj, i_to_s, 0);
+ if (!allow_nan) {
+ if (isinf(value)) {
+ fbuffer_free(buffer);
+ rb_raise(eGeneratorError, "%u: %s not allowed in JSON", __LINE__, StringValueCStr(tmp));
+ } else if (isnan(value)) {
+ fbuffer_free(buffer);
+ rb_raise(eGeneratorError, "%u: %s not allowed in JSON", __LINE__, StringValueCStr(tmp));
+ }
+ }
+ fbuffer_append_str(buffer, tmp);
+}
+
+static void generate_json(FBuffer *buffer, VALUE Vstate, JSON_Generator_State *state, VALUE obj)
+{
+ VALUE tmp;
+ VALUE klass = CLASS_OF(obj);
+ if (klass == rb_cHash) {
+ generate_json_object(buffer, Vstate, state, obj);
+ } else if (klass == rb_cArray) {
+ generate_json_array(buffer, Vstate, state, obj);
+ } else if (klass == rb_cString) {
+ generate_json_string(buffer, Vstate, state, obj);
+ } else if (obj == Qnil) {
+ generate_json_null(buffer, Vstate, state, obj);
+ } else if (obj == Qfalse) {
+ generate_json_false(buffer, Vstate, state, obj);
+ } else if (obj == Qtrue) {
+ generate_json_true(buffer, Vstate, state, obj);
+ } else if (klass == rb_cFixnum) {
+ generate_json_fixnum(buffer, Vstate, state, obj);
+ } else if (klass == rb_cBignum) {
+ generate_json_bignum(buffer, Vstate, state, obj);
+ } else if (klass == rb_cFloat) {
+ generate_json_float(buffer, Vstate, state, obj);
+ } else if (rb_respond_to(obj, i_to_json)) {
+ tmp = rb_funcall(obj, i_to_json, 1, Vstate);
+ Check_Type(tmp, T_STRING);
+ fbuffer_append_str(buffer, tmp);
+ } else {
+ tmp = rb_funcall(obj, i_to_s, 0);
+ Check_Type(tmp, T_STRING);
+ generate_json(buffer, Vstate, state, tmp);
+ }
+}
+
+static FBuffer *cState_prepare_buffer(VALUE self)
+{
+ FBuffer *buffer = fbuffer_alloc();
+ GET_STATE(self);
+
+ if (state->object_delim) {
+ fbuffer_clear(state->object_delim);
+ } else {
+ state->object_delim = fbuffer_alloc_with_length(16);
+ }
+ fbuffer_append_char(state->object_delim, ',');
+ if (state->object_delim2) {
+ fbuffer_clear(state->object_delim2);
+ } else {
+ state->object_delim2 = fbuffer_alloc_with_length(16);
+ }
+ fbuffer_append_char(state->object_delim2, ':');
+ if (state->space) fbuffer_append(state->object_delim2, state->space, state->space_len);
+
+ if (state->array_delim) {
+ fbuffer_clear(state->array_delim);
+ } else {
+ state->array_delim = fbuffer_alloc_with_length(16);
+ }
+ fbuffer_append_char(state->array_delim, ',');
+ if (state->array_nl) fbuffer_append(state->array_delim, state->array_nl, state->array_nl_len);
+ return buffer;
+}
+
+static VALUE fbuffer_to_s(FBuffer *fb)
+{
+ VALUE result = rb_str_new(FBUFFER_PAIR(fb));
+ fbuffer_free(fb);
+ FORCE_UTF8(result);
+ return result;
+}
+
+static VALUE cState_partial_generate(VALUE self, VALUE obj)
+{
+ FBuffer *buffer = cState_prepare_buffer(self);
+ GET_STATE(self);
+ generate_json(buffer, self, state, obj);
+ return fbuffer_to_s(buffer);
+}
+
+/*
+ * call-seq: generate(obj)
+ *
+ * Generates a valid JSON document from object +obj+ and returns the
+ * result. If no valid JSON document can be created this method raises a
+ * GeneratorError exception.
+ */
+static VALUE cState_generate(VALUE self, VALUE obj)
+{
+ VALUE result = cState_partial_generate(self, obj);
+ VALUE re, args[2];
+ GET_STATE(self);
+ if (!state->quirks_mode) {
+ args[0] = rb_str_new2("\\A\\s*(?:\\[.*\\]|\\{.*\\})\\s*\\Z");
+ args[1] = CRegexp_MULTILINE;
+ re = rb_class_new_instance(2, args, rb_cRegexp);
+ if (NIL_P(rb_funcall(re, i_match, 1, result))) {
+ rb_raise(eGeneratorError, "only generation of JSON objects or arrays allowed");
+ }
+ }
+ return result;
+}
+
+/*
+ * call-seq: new(opts = {})
+ *
+ * Instantiates a new State object, configured by _opts_.
+ *
+ * _opts_ can have the following keys:
+ *
+ * * *indent*: a string used to indent levels (default: ''),
+ * * *space*: a string that is put after, a : or , delimiter (default: ''),
+ * * *space_before*: a string that is put before a : pair delimiter (default: ''),
+ * * *object_nl*: a string that is put at the end of a JSON object (default: ''),
+ * * *array_nl*: a string that is put at the end of a JSON array (default: ''),
+ * * *allow_nan*: true if NaN, Infinity, and -Infinity should be
+ * generated, otherwise an exception is thrown, if these values are
+ * encountered. This options defaults to false.
+ * * *quirks_mode*: Enables quirks_mode for parser, that is for example
+ * generating single JSON values instead of documents is possible.
+ */
+static VALUE cState_initialize(int argc, VALUE *argv, VALUE self)
+{
+ VALUE opts;
+ GET_STATE(self);
+ state->max_nesting = 19;
+ rb_scan_args(argc, argv, "01", &opts);
+ if (!NIL_P(opts)) cState_configure(self, opts);
+ return self;
+}
+
+/*
+ * call-seq: initialize_copy(orig)
+ *
+ * Initializes this object from orig if it to be duplicated/cloned and returns
+ * it.
+*/
+static VALUE cState_init_copy(VALUE obj, VALUE orig)
+{
+ JSON_Generator_State *objState, *origState;
+
+ Data_Get_Struct(obj, JSON_Generator_State, objState);
+ Data_Get_Struct(orig, JSON_Generator_State, origState);
+ if (!objState) rb_raise(rb_eArgError, "unallocated JSON::State");
+
+ MEMCPY(objState, origState, JSON_Generator_State, 1);
+ objState->indent = fstrndup(origState->indent, origState->indent_len);
+ objState->space = fstrndup(origState->space, origState->space_len);
+ objState->space_before = fstrndup(origState->space_before, origState->space_before_len);
+ objState->object_nl = fstrndup(origState->object_nl, origState->object_nl_len);
+ objState->array_nl = fstrndup(origState->array_nl, origState->array_nl_len);
+ if (origState->array_delim) objState->array_delim = fbuffer_dup(origState->array_delim);
+ if (origState->object_delim) objState->object_delim = fbuffer_dup(origState->object_delim);
+ if (origState->object_delim2) objState->object_delim2 = fbuffer_dup(origState->object_delim2);
+ return obj;
+}
+
+/*
+ * call-seq: from_state(opts)
+ *
+ * Creates a State object from _opts_, which ought to be Hash to create a
+ * new State instance configured by _opts_, something else to create an
+ * unconfigured instance. If _opts_ is a State object, it is just returned.
+ */
+static VALUE cState_from_state_s(VALUE self, VALUE opts)
+{
+ if (rb_obj_is_kind_of(opts, self)) {
+ return opts;
+ } else if (rb_obj_is_kind_of(opts, rb_cHash)) {
+ return rb_funcall(self, i_new, 1, opts);
+ } else {
+ if (NIL_P(CJSON_SAFE_STATE_PROTOTYPE)) {
+ CJSON_SAFE_STATE_PROTOTYPE = rb_const_get(mJSON, i_SAFE_STATE_PROTOTYPE);
+ }
+ return rb_funcall(CJSON_SAFE_STATE_PROTOTYPE, i_dup, 0);
+ }
+}
+
+/*
+ * call-seq: indent()
+ *
+ * This string is used to indent levels in the JSON text.
+ */
+static VALUE cState_indent(VALUE self)
+{
+ GET_STATE(self);
+ return state->indent ? rb_str_new2(state->indent) : rb_str_new2("");
+}
+
+/*
+ * call-seq: indent=(indent)
+ *
+ * This string is used to indent levels in the JSON text.
+ */
+static VALUE cState_indent_set(VALUE self, VALUE indent)
+{
+ unsigned long len;
+ GET_STATE(self);
+ Check_Type(indent, T_STRING);
+ len = RSTRING_LEN(indent);
+ if (len == 0) {
+ if (state->indent) {
+ ruby_xfree(state->indent);
+ state->indent = NULL;
+ state->indent_len = 0;
+ }
+ } else {
+ if (state->indent) ruby_xfree(state->indent);
+ state->indent = strdup(RSTRING_PTR(indent));
+ state->indent_len = len;
+ }
+ return Qnil;
+}
+
+/*
+ * call-seq: space()
+ *
+ * This string is used to insert a space between the tokens in a JSON
+ * string.
+ */
+static VALUE cState_space(VALUE self)
+{
+ GET_STATE(self);
+ return state->space ? rb_str_new2(state->space) : rb_str_new2("");
+}
+
+/*
+ * call-seq: space=(space)
+ *
+ * This string is used to insert a space between the tokens in a JSON
+ * string.
+ */
+static VALUE cState_space_set(VALUE self, VALUE space)
+{
+ unsigned long len;
+ GET_STATE(self);
+ Check_Type(space, T_STRING);
+ len = RSTRING_LEN(space);
+ if (len == 0) {
+ if (state->space) {
+ ruby_xfree(state->space);
+ state->space = NULL;
+ state->space_len = 0;
+ }
+ } else {
+ if (state->space) ruby_xfree(state->space);
+ state->space = strdup(RSTRING_PTR(space));
+ state->space_len = len;
+ }
+ return Qnil;
+}
+
+/*
+ * call-seq: space_before()
+ *
+ * This string is used to insert a space before the ':' in JSON objects.
+ */
+static VALUE cState_space_before(VALUE self)
+{
+ GET_STATE(self);
+ return state->space_before ? rb_str_new2(state->space_before) : rb_str_new2("");
+}
+
+/*
+ * call-seq: space_before=(space_before)
+ *
+ * This string is used to insert a space before the ':' in JSON objects.
+ */
+static VALUE cState_space_before_set(VALUE self, VALUE space_before)
+{
+ unsigned long len;
+ GET_STATE(self);
+ Check_Type(space_before, T_STRING);
+ len = RSTRING_LEN(space_before);
+ if (len == 0) {
+ if (state->space_before) {
+ ruby_xfree(state->space_before);
+ state->space_before = NULL;
+ state->space_before_len = 0;
+ }
+ } else {
+ if (state->space_before) ruby_xfree(state->space_before);
+ state->space_before = strdup(RSTRING_PTR(space_before));
+ state->space_before_len = len;
+ }
+ return Qnil;
+}
+
+/*
+ * call-seq: object_nl()
+ *
+ * This string is put at the end of a line that holds a JSON object (or
+ * Hash).
+ */
+static VALUE cState_object_nl(VALUE self)
+{
+ GET_STATE(self);
+ return state->object_nl ? rb_str_new2(state->object_nl) : rb_str_new2("");
+}
+
+/*
+ * call-seq: object_nl=(object_nl)
+ *
+ * This string is put at the end of a line that holds a JSON object (or
+ * Hash).
+ */
+static VALUE cState_object_nl_set(VALUE self, VALUE object_nl)
+{
+ unsigned long len;
+ GET_STATE(self);
+ Check_Type(object_nl, T_STRING);
+ len = RSTRING_LEN(object_nl);
+ if (len == 0) {
+ if (state->object_nl) {
+ ruby_xfree(state->object_nl);
+ state->object_nl = NULL;
+ }
+ } else {
+ if (state->object_nl) ruby_xfree(state->object_nl);
+ state->object_nl = strdup(RSTRING_PTR(object_nl));
+ state->object_nl_len = len;
+ }
+ return Qnil;
+}
+
+/*
+ * call-seq: array_nl()
+ *
+ * This string is put at the end of a line that holds a JSON array.
+ */
+static VALUE cState_array_nl(VALUE self)
+{
+ GET_STATE(self);
+ return state->array_nl ? rb_str_new2(state->array_nl) : rb_str_new2("");
+}
+
+/*
+ * call-seq: array_nl=(array_nl)
+ *
+ * This string is put at the end of a line that holds a JSON array.
+ */
+static VALUE cState_array_nl_set(VALUE self, VALUE array_nl)
+{
+ unsigned long len;
+ GET_STATE(self);
+ Check_Type(array_nl, T_STRING);
+ len = RSTRING_LEN(array_nl);
+ if (len == 0) {
+ if (state->array_nl) {
+ ruby_xfree(state->array_nl);
+ state->array_nl = NULL;
+ }
+ } else {
+ if (state->array_nl) ruby_xfree(state->array_nl);
+ state->array_nl = strdup(RSTRING_PTR(array_nl));
+ state->array_nl_len = len;
+ }
+ return Qnil;
+}
+
+
+/*
+* call-seq: check_circular?
+*
+* Returns true, if circular data structures should be checked,
+* otherwise returns false.
+*/
+static VALUE cState_check_circular_p(VALUE self)
+{
+ GET_STATE(self);
+ return state->max_nesting ? Qtrue : Qfalse;
+}
+
+/*
+ * call-seq: max_nesting
+ *
+ * This integer returns the maximum level of data structure nesting in
+ * the generated JSON, max_nesting = 0 if no maximum is checked.
+ */
+static VALUE cState_max_nesting(VALUE self)
+{
+ GET_STATE(self);
+ return LONG2FIX(state->max_nesting);
+}
+
+/*
+ * call-seq: max_nesting=(depth)
+ *
+ * This sets the maximum level of data structure nesting in the generated JSON
+ * to the integer depth, max_nesting = 0 if no maximum should be checked.
+ */
+static VALUE cState_max_nesting_set(VALUE self, VALUE depth)
+{
+ GET_STATE(self);
+ Check_Type(depth, T_FIXNUM);
+ return state->max_nesting = FIX2LONG(depth);
+}
+
+/*
+ * call-seq: allow_nan?
+ *
+ * Returns true, if NaN, Infinity, and -Infinity should be generated, otherwise
+ * returns false.
+ */
+static VALUE cState_allow_nan_p(VALUE self)
+{
+ GET_STATE(self);
+ return state->allow_nan ? Qtrue : Qfalse;
+}
+
+/*
+ * call-seq: ascii_only?
+ *
+ * Returns true, if NaN, Infinity, and -Infinity should be generated, otherwise
+ * returns false.
+ */
+static VALUE cState_ascii_only_p(VALUE self)
+{
+ GET_STATE(self);
+ return state->ascii_only ? Qtrue : Qfalse;
+}
+
+/*
+ * call-seq: quirks_mode?
+ *
+ * Returns true, if quirks mode is enabled. Otherwise returns false.
+ */
+static VALUE cState_quirks_mode_p(VALUE self)
+{
+ GET_STATE(self);
+ return state->quirks_mode ? Qtrue : Qfalse;
+}
+
+/*
+ * call-seq: quirks_mode=(enable)
+ *
+ * If set to true, enables the quirks_mode mode.
+ */
+static VALUE cState_quirks_mode_set(VALUE self, VALUE enable)
+{
+ GET_STATE(self);
+ state->quirks_mode = RTEST(enable);
+ return Qnil;
+}
+
+/*
+ * call-seq: depth
+ *
+ * This integer returns the current depth of data structure nesting.
+ */
+static VALUE cState_depth(VALUE self)
+{
+ GET_STATE(self);
+ return LONG2FIX(state->depth);
+}
+
+/*
+ * call-seq: depth=(depth)
+ *
+ * This sets the maximum level of data structure nesting in the generated JSON
+ * to the integer depth, max_nesting = 0 if no maximum should be checked.
+ */
+static VALUE cState_depth_set(VALUE self, VALUE depth)
+{
+ GET_STATE(self);
+ Check_Type(depth, T_FIXNUM);
+ return state->depth = FIX2LONG(depth);
+}
+
+/*
+ *
+ */
+void Init_generator()
+{
+ rb_require("json/common");
+
+ mJSON = rb_define_module("JSON");
+ mExt = rb_define_module_under(mJSON, "Ext");
+ mGenerator = rb_define_module_under(mExt, "Generator");
+
+ eGeneratorError = rb_path2class("JSON::GeneratorError");
+ eNestingError = rb_path2class("JSON::NestingError");
+
+ cState = rb_define_class_under(mGenerator, "State", rb_cObject);
+ rb_define_alloc_func(cState, cState_s_allocate);
+ rb_define_singleton_method(cState, "from_state", cState_from_state_s, 1);
+ rb_define_method(cState, "initialize", cState_initialize, -1);
+ rb_define_method(cState, "initialize_copy", cState_init_copy, 1);
+ rb_define_method(cState, "indent", cState_indent, 0);
+ rb_define_method(cState, "indent=", cState_indent_set, 1);
+ rb_define_method(cState, "space", cState_space, 0);
+ rb_define_method(cState, "space=", cState_space_set, 1);
+ rb_define_method(cState, "space_before", cState_space_before, 0);
+ rb_define_method(cState, "space_before=", cState_space_before_set, 1);
+ rb_define_method(cState, "object_nl", cState_object_nl, 0);
+ rb_define_method(cState, "object_nl=", cState_object_nl_set, 1);
+ rb_define_method(cState, "array_nl", cState_array_nl, 0);
+ rb_define_method(cState, "array_nl=", cState_array_nl_set, 1);
+ rb_define_method(cState, "max_nesting", cState_max_nesting, 0);
+ rb_define_method(cState, "max_nesting=", cState_max_nesting_set, 1);
+ rb_define_method(cState, "check_circular?", cState_check_circular_p, 0);
+ rb_define_method(cState, "allow_nan?", cState_allow_nan_p, 0);
+ rb_define_method(cState, "ascii_only?", cState_ascii_only_p, 0);
+ rb_define_method(cState, "quirks_mode?", cState_quirks_mode_p, 0);
+ rb_define_method(cState, "quirks_mode", cState_quirks_mode_p, 0);
+ rb_define_method(cState, "quirks_mode=", cState_quirks_mode_set, 1);
+ rb_define_method(cState, "depth", cState_depth, 0);
+ rb_define_method(cState, "depth=", cState_depth_set, 1);
+ rb_define_method(cState, "configure", cState_configure, 1);
+ rb_define_alias(cState, "merge", "configure");
+ rb_define_method(cState, "to_h", cState_to_h, 0);
+ rb_define_method(cState, "[]", cState_aref, 1);
+ rb_define_method(cState, "generate", cState_generate, 1);
+
+ mGeneratorMethods = rb_define_module_under(mGenerator, "GeneratorMethods");
+ mObject = rb_define_module_under(mGeneratorMethods, "Object");
+ rb_define_method(mObject, "to_json", mObject_to_json, -1);
+ mHash = rb_define_module_under(mGeneratorMethods, "Hash");
+ rb_define_method(mHash, "to_json", mHash_to_json, -1);
+ mArray = rb_define_module_under(mGeneratorMethods, "Array");
+ rb_define_method(mArray, "to_json", mArray_to_json, -1);
+ mFixnum = rb_define_module_under(mGeneratorMethods, "Fixnum");
+ rb_define_method(mFixnum, "to_json", mFixnum_to_json, -1);
+ mBignum = rb_define_module_under(mGeneratorMethods, "Bignum");
+ rb_define_method(mBignum, "to_json", mBignum_to_json, -1);
+ mFloat = rb_define_module_under(mGeneratorMethods, "Float");
+ rb_define_method(mFloat, "to_json", mFloat_to_json, -1);
+ mString = rb_define_module_under(mGeneratorMethods, "String");
+ rb_define_singleton_method(mString, "included", mString_included_s, 1);
+ rb_define_method(mString, "to_json", mString_to_json, -1);
+ rb_define_method(mString, "to_json_raw", mString_to_json_raw, -1);
+ rb_define_method(mString, "to_json_raw_object", mString_to_json_raw_object, 0);
+ mString_Extend = rb_define_module_under(mString, "Extend");
+ rb_define_method(mString_Extend, "json_create", mString_Extend_json_create, 1);
+ mTrueClass = rb_define_module_under(mGeneratorMethods, "TrueClass");
+ rb_define_method(mTrueClass, "to_json", mTrueClass_to_json, -1);
+ mFalseClass = rb_define_module_under(mGeneratorMethods, "FalseClass");
+ rb_define_method(mFalseClass, "to_json", mFalseClass_to_json, -1);
+ mNilClass = rb_define_module_under(mGeneratorMethods, "NilClass");
+ rb_define_method(mNilClass, "to_json", mNilClass_to_json, -1);
+
+ CRegexp_MULTILINE = rb_const_get(rb_cRegexp, rb_intern("MULTILINE"));
+ i_to_s = rb_intern("to_s");
+ i_to_json = rb_intern("to_json");
+ i_new = rb_intern("new");
+ i_indent = rb_intern("indent");
+ i_space = rb_intern("space");
+ i_space_before = rb_intern("space_before");
+ i_object_nl = rb_intern("object_nl");
+ i_array_nl = rb_intern("array_nl");
+ i_max_nesting = rb_intern("max_nesting");
+ i_allow_nan = rb_intern("allow_nan");
+ i_ascii_only = rb_intern("ascii_only");
+ i_quirks_mode = rb_intern("quirks_mode");
+ i_depth = rb_intern("depth");
+ i_pack = rb_intern("pack");
+ i_unpack = rb_intern("unpack");
+ i_create_id = rb_intern("create_id");
+ i_extend = rb_intern("extend");
+ i_key_p = rb_intern("key?");
+ i_aref = rb_intern("[]");
+ i_send = rb_intern("__send__");
+ i_respond_to_p = rb_intern("respond_to?");
+ i_match = rb_intern("match");
+ i_keys = rb_intern("keys");
+ i_dup = rb_intern("dup");
+#ifdef HAVE_RUBY_ENCODING_H
+ CEncoding_UTF_8 = rb_funcall(rb_path2class("Encoding"), rb_intern("find"), 1, rb_str_new2("utf-8"));
+ i_encoding = rb_intern("encoding");
+ i_encode = rb_intern("encode");
+#endif
+ i_SAFE_STATE_PROTOTYPE = rb_intern("SAFE_STATE_PROTOTYPE");
+ CJSON_SAFE_STATE_PROTOTYPE = Qnil;
+}
diff --git a/ext/json/generator/generator.h b/ext/json/generator/generator.h
new file mode 100644
index 0000000000..f882ea004b
--- /dev/null
+++ b/ext/json/generator/generator.h
@@ -0,0 +1,200 @@
+#ifndef _GENERATOR_H_
+#define _GENERATOR_H_
+
+#include <string.h>
+#include <assert.h>
+#include <math.h>
+
+#include "ruby.h"
+
+#if HAVE_RUBY_RE_H
+#include "ruby/re.h"
+#endif
+
+#if HAVE_RE_H
+#include "re.h"
+#endif
+
+#ifdef HAVE_RUBY_ENCODING_H
+#include "ruby/encoding.h"
+#define FORCE_UTF8(obj) rb_enc_associate((obj), rb_utf8_encoding())
+#else
+#define FORCE_UTF8(obj)
+#endif
+
+#define option_given_p(opts, key) RTEST(rb_funcall(opts, i_key_p, 1, key))
+
+#ifndef RHASH_SIZE
+#define RHASH_SIZE(hsh) (RHASH(hsh)->tbl->num_entries)
+#endif
+
+#ifndef RFLOAT_VALUE
+#define RFLOAT_VALUE(val) (RFLOAT(val)->value)
+#endif
+
+#ifndef RARRAY_PTR
+#define RARRAY_PTR(ARRAY) RARRAY(ARRAY)->ptr
+#endif
+#ifndef RARRAY_LEN
+#define RARRAY_LEN(ARRAY) RARRAY(ARRAY)->len
+#endif
+#ifndef RSTRING_PTR
+#define RSTRING_PTR(string) RSTRING(string)->ptr
+#endif
+#ifndef RSTRING_LEN
+#define RSTRING_LEN(string) RSTRING(string)->len
+#endif
+
+/* We don't need to guard objects for rbx, so let's do nothing at all. */
+#ifndef RB_GC_GUARD
+#define RB_GC_GUARD(object)
+#endif
+
+/* fbuffer implementation */
+
+typedef struct FBufferStruct {
+ unsigned long initial_length;
+ char *ptr;
+ unsigned long len;
+ unsigned long capa;
+} FBuffer;
+
+#define FBUFFER_INITIAL_LENGTH 4096
+
+#define FBUFFER_PTR(fb) (fb->ptr)
+#define FBUFFER_LEN(fb) (fb->len)
+#define FBUFFER_CAPA(fb) (fb->capa)
+#define FBUFFER_PAIR(fb) FBUFFER_PTR(fb), FBUFFER_LEN(fb)
+
+static char *fstrndup(const char *ptr, unsigned long len);
+static FBuffer *fbuffer_alloc();
+static FBuffer *fbuffer_alloc_with_length(unsigned long initial_length);
+static void fbuffer_free(FBuffer *fb);
+static void fbuffer_clear(FBuffer *fb);
+static void fbuffer_append(FBuffer *fb, const char *newstr, unsigned long len);
+static void fbuffer_append_long(FBuffer *fb, long number);
+static void fbuffer_append_char(FBuffer *fb, char newchr);
+static FBuffer *fbuffer_dup(FBuffer *fb);
+static VALUE fbuffer_to_s(FBuffer *fb);
+
+/* unicode defintions */
+
+#define UNI_STRICT_CONVERSION 1
+
+typedef unsigned long UTF32; /* at least 32 bits */
+typedef unsigned short UTF16; /* at least 16 bits */
+typedef unsigned char UTF8; /* typically 8 bits */
+
+#define UNI_REPLACEMENT_CHAR (UTF32)0x0000FFFD
+#define UNI_MAX_BMP (UTF32)0x0000FFFF
+#define UNI_MAX_UTF16 (UTF32)0x0010FFFF
+#define UNI_MAX_UTF32 (UTF32)0x7FFFFFFF
+#define UNI_MAX_LEGAL_UTF32 (UTF32)0x0010FFFF
+
+#define UNI_SUR_HIGH_START (UTF32)0xD800
+#define UNI_SUR_HIGH_END (UTF32)0xDBFF
+#define UNI_SUR_LOW_START (UTF32)0xDC00
+#define UNI_SUR_LOW_END (UTF32)0xDFFF
+
+static const int halfShift = 10; /* used for shifting by 10 bits */
+
+static const UTF32 halfBase = 0x0010000UL;
+static const UTF32 halfMask = 0x3FFUL;
+
+static unsigned char isLegalUTF8(const UTF8 *source, unsigned long length);
+static void unicode_escape(char *buf, UTF16 character);
+static void unicode_escape_to_buffer(FBuffer *buffer, char buf[6], UTF16 character);
+static void convert_UTF8_to_JSON_ASCII(FBuffer *buffer, VALUE string);
+static void convert_UTF8_to_JSON(FBuffer *buffer, VALUE string);
+
+/* ruby api and some helpers */
+
+typedef struct JSON_Generator_StateStruct {
+ char *indent;
+ long indent_len;
+ char *space;
+ long space_len;
+ char *space_before;
+ long space_before_len;
+ char *object_nl;
+ long object_nl_len;
+ char *array_nl;
+ long array_nl_len;
+ FBuffer *array_delim;
+ FBuffer *object_delim;
+ FBuffer *object_delim2;
+ long max_nesting;
+ char allow_nan;
+ char ascii_only;
+ char quirks_mode;
+ long depth;
+} JSON_Generator_State;
+
+#define GET_STATE(self) \
+ JSON_Generator_State *state; \
+ Data_Get_Struct(self, JSON_Generator_State, state)
+
+#define GENERATE_JSON(type) \
+ FBuffer *buffer; \
+ VALUE Vstate; \
+ JSON_Generator_State *state; \
+ \
+ rb_scan_args(argc, argv, "01", &Vstate); \
+ Vstate = cState_from_state_s(cState, Vstate); \
+ Data_Get_Struct(Vstate, JSON_Generator_State, state); \
+ buffer = cState_prepare_buffer(Vstate); \
+ generate_json_##type(buffer, Vstate, state, self); \
+ return fbuffer_to_s(buffer)
+
+static VALUE mHash_to_json(int argc, VALUE *argv, VALUE self);
+static VALUE mArray_to_json(int argc, VALUE *argv, VALUE self);
+static VALUE mFixnum_to_json(int argc, VALUE *argv, VALUE self);
+static VALUE mBignum_to_json(int argc, VALUE *argv, VALUE self);
+static VALUE mFloat_to_json(int argc, VALUE *argv, VALUE self);
+static VALUE mString_included_s(VALUE self, VALUE modul);
+static VALUE mString_to_json(int argc, VALUE *argv, VALUE self);
+static VALUE mString_to_json_raw_object(VALUE self);
+static VALUE mString_to_json_raw(int argc, VALUE *argv, VALUE self);
+static VALUE mString_Extend_json_create(VALUE self, VALUE o);
+static VALUE mTrueClass_to_json(int argc, VALUE *argv, VALUE self);
+static VALUE mFalseClass_to_json(int argc, VALUE *argv, VALUE self);
+static VALUE mNilClass_to_json(int argc, VALUE *argv, VALUE self);
+static VALUE mObject_to_json(int argc, VALUE *argv, VALUE self);
+static void State_free(JSON_Generator_State *state);
+static JSON_Generator_State *State_allocate();
+static VALUE cState_s_allocate(VALUE klass);
+static VALUE cState_configure(VALUE self, VALUE opts);
+static VALUE cState_to_h(VALUE self);
+static void generate_json(FBuffer *buffer, VALUE Vstate, JSON_Generator_State *state, VALUE obj);
+static void generate_json_object(FBuffer *buffer, VALUE Vstate, JSON_Generator_State *state, VALUE obj);
+static void generate_json_array(FBuffer *buffer, VALUE Vstate, JSON_Generator_State *state, VALUE obj);
+static void generate_json_string(FBuffer *buffer, VALUE Vstate, JSON_Generator_State *state, VALUE obj);
+static void generate_json_null(FBuffer *buffer, VALUE Vstate, JSON_Generator_State *state, VALUE obj);
+static void generate_json_false(FBuffer *buffer, VALUE Vstate, JSON_Generator_State *state, VALUE obj);
+static void generate_json_true(FBuffer *buffer, VALUE Vstate, JSON_Generator_State *state, VALUE obj);
+static void generate_json_fixnum(FBuffer *buffer, VALUE Vstate, JSON_Generator_State *state, VALUE obj);
+static void generate_json_bignum(FBuffer *buffer, VALUE Vstate, JSON_Generator_State *state, VALUE obj);
+static void generate_json_float(FBuffer *buffer, VALUE Vstate, JSON_Generator_State *state, VALUE obj);
+static VALUE cState_partial_generate(VALUE self, VALUE obj);
+static VALUE cState_generate(VALUE self, VALUE obj);
+static VALUE cState_initialize(int argc, VALUE *argv, VALUE self);
+static VALUE cState_from_state_s(VALUE self, VALUE opts);
+static VALUE cState_indent(VALUE self);
+static VALUE cState_indent_set(VALUE self, VALUE indent);
+static VALUE cState_space(VALUE self);
+static VALUE cState_space_set(VALUE self, VALUE space);
+static VALUE cState_space_before(VALUE self);
+static VALUE cState_space_before_set(VALUE self, VALUE space_before);
+static VALUE cState_object_nl(VALUE self);
+static VALUE cState_object_nl_set(VALUE self, VALUE object_nl);
+static VALUE cState_array_nl(VALUE self);
+static VALUE cState_array_nl_set(VALUE self, VALUE array_nl);
+static VALUE cState_max_nesting(VALUE self);
+static VALUE cState_max_nesting_set(VALUE self, VALUE depth);
+static VALUE cState_allow_nan_p(VALUE self);
+static VALUE cState_ascii_only_p(VALUE self);
+static VALUE cState_depth(VALUE self);
+static VALUE cState_depth_set(VALUE self, VALUE depth);
+static FBuffer *cState_prepare_buffer(VALUE self);
+
+#endif
diff --git a/ext/json/lib/json.rb b/ext/json/lib/json.rb
index 35fab1e11d..00fe4cae84 100755..100644
--- a/ext/json/lib/json.rb
+++ b/ext/json/lib/json.rb
@@ -1,297 +1,62 @@
-require 'json/common'
-# = json - JSON for Ruby
-#
-# == Description
-#
-# This is a implementation of the JSON specification according to RFC 4627
-# (http://www.ietf.org/rfc/rfc4627.txt). Starting from version 1.0.0 on there
-# will be two variants available:
-#
-# * A pure ruby variant, that relies on the iconv and the stringscan
-# extensions, which are both part of the ruby standard library.
-# * The quite a bit faster C extension variant, which is in parts implemented
-# in C and comes with its own unicode conversion functions and a parser
-# generated by the ragel state machine compiler
-# (http://www.cs.queensu.ca/~thurston/ragel).
-#
-# Both variants of the JSON generator escape all non-ASCII an control
-# characters with \uXXXX escape sequences, and support UTF-16 surrogate pairs
-# in order to be able to generate the whole range of unicode code points. This
-# means that generated JSON text is encoded as UTF-8 (because ASCII is a subset
-# of UTF-8) and at the same time avoids decoding problems for receiving
-# endpoints, that don't expect UTF-8 encoded texts. On the negative side this
-# may lead to a bit longer strings than necessarry.
-#
-# All strings, that are to be encoded as JSON strings, should be UTF-8 byte
-# sequences on the Ruby side. To encode raw binary strings, that aren't UTF-8
-# encoded, please use the to_json_raw_object method of String (which produces
-# an object, that contains a byte array) and decode the result on the receiving
-# endpoint.
-#
-# == Author
-#
-# Florian Frank <mailto:flori@ping.de>
-#
-# == License
-#
-# This software is distributed under the same license as Ruby itself, see
-# http://www.ruby-lang.org/en/LICENSE.txt.
+##
+# = JavaScript Object Notation (JSON)
#
-# == Download
+# JSON is a lightweight data-interchange format. It is easy for us
+# humans to read and write. Plus, equally simple for machines to generate or parse.
+# JSON is completely language agnostic, making it the ideal interchange format.
#
-# The latest version of this library can be downloaded at
+# Built on two universally available structures:
+# 1. A collection of name/value pairs. Often referred to as an _object_, hash table, record, struct, keyed list, or associative array.
+# 2. An ordered list of values. More commonly called an _array_, vector, sequence or list.
#
-# * http://rubyforge.org/frs?group_id=953
+# To read more about JSON visit: http://json.org
#
-# Online Documentation should be located at
+# == Parsing JSON
#
-# * http://json.rubyforge.org
+# To parse a JSON string received by another application or generated within
+# your existing application:
#
-# == Usage
-#
-# To use JSON you can
# require 'json'
-# to load the installed variant (either the extension 'json' or the pure
-# variant 'json_pure'). If you have installed the extension variant, you can
-# pick either the extension variant or the pure variant by typing
-# require 'json/ext'
-# or
-# require 'json/pure'
-#
-# You can choose to load a set of common additions to ruby core's objects if
-# you
-# require 'json/add/core'
-#
-# After requiring this you can, e. g., serialise/deserialise Ruby ranges:
-#
-# JSON JSON(1..10) # => 1..10
-#
-# To find out how to add JSON support to other or your own classes, read the
-# Examples section below.
-#
-# To get the best compatibility to rails' JSON implementation, you can
-# require 'json/add/rails'
-#
-# Both of the additions attempt to require 'json' (like above) first, if it has
-# not been required yet.
-#
-# == Speed Comparisons
-#
-# I have created some benchmark results (see the benchmarks/data-p4-3Ghz
-# subdir of the package) for the JSON-parser to estimate the speed up in the C
-# extension:
-#
-# Comparing times (call_time_mean):
-# 1 ParserBenchmarkExt#parser 900 repeats:
-# 553.922304770 ( real) -> 21.500x
-# 0.001805307
-# 2 ParserBenchmarkYAML#parser 1000 repeats:
-# 224.513358139 ( real) -> 8.714x
-# 0.004454078
-# 3 ParserBenchmarkPure#parser 1000 repeats:
-# 26.755020642 ( real) -> 1.038x
-# 0.037376163
-# 4 ParserBenchmarkRails#parser 1000 repeats:
-# 25.763381731 ( real) -> 1.000x
-# 0.038814780
-# calls/sec ( time) -> speed covers
-# secs/call
#
-# In the table above 1 is JSON::Ext::Parser, 2 is YAML.load with YAML
-# compatbile JSON document, 3 is is JSON::Pure::Parser, and 4 is
-# ActiveSupport::JSON.decode. The ActiveSupport JSON-decoder converts the
-# input first to YAML and then uses the YAML-parser, the conversion seems to
-# slow it down so much that it is only as fast as the JSON::Pure::Parser!
+# my_hash = JSON.parse('{"hello": "goodbye"}')
+# puts my_hash["hello"] => "goodbye"
#
-# If you look at the benchmark data you can see that this is mostly caused by
-# the frequent high outliers - the median of the Rails-parser runs is still
-# overall smaller than the median of the JSON::Pure::Parser runs:
+# Notice the extra quotes <tt>''</tt> around the hash notation. Ruby expects
+# the argument to be a string and can't convert objects like a hash or array.
#
-# Comparing times (call_time_median):
-# 1 ParserBenchmarkExt#parser 900 repeats:
-# 800.592479481 ( real) -> 26.936x
-# 0.001249075
-# 2 ParserBenchmarkYAML#parser 1000 repeats:
-# 271.002390644 ( real) -> 9.118x
-# 0.003690004
-# 3 ParserBenchmarkRails#parser 1000 repeats:
-# 30.227910865 ( real) -> 1.017x
-# 0.033082008
-# 4 ParserBenchmarkPure#parser 1000 repeats:
-# 29.722384421 ( real) -> 1.000x
-# 0.033644676
-# calls/sec ( time) -> speed covers
-# secs/call
+# Ruby converts your string into a hash
#
-# I have benchmarked the JSON-Generator as well. This generated a few more
-# values, because there are different modes that also influence the achieved
-# speed:
+# == Generating JSON
#
-# Comparing times (call_time_mean):
-# 1 GeneratorBenchmarkExt#generator_fast 1000 repeats:
-# 547.354332608 ( real) -> 15.090x
-# 0.001826970
-# 2 GeneratorBenchmarkExt#generator_safe 1000 repeats:
-# 443.968212317 ( real) -> 12.240x
-# 0.002252414
-# 3 GeneratorBenchmarkExt#generator_pretty 900 repeats:
-# 375.104545883 ( real) -> 10.341x
-# 0.002665923
-# 4 GeneratorBenchmarkPure#generator_fast 1000 repeats:
-# 49.978706968 ( real) -> 1.378x
-# 0.020008521
-# 5 GeneratorBenchmarkRails#generator 1000 repeats:
-# 38.531868759 ( real) -> 1.062x
-# 0.025952543
-# 6 GeneratorBenchmarkPure#generator_safe 1000 repeats:
-# 36.927649925 ( real) -> 1.018x 7 (>=3859)
-# 0.027079979
-# 7 GeneratorBenchmarkPure#generator_pretty 1000 repeats:
-# 36.272134441 ( real) -> 1.000x 6 (>=3859)
-# 0.027569373
-# calls/sec ( time) -> speed covers
-# secs/call
+# Creating a JSON string for communication or serialization is
+# just as simple.
#
-# In the table above 1-3 are JSON::Ext::Generator methods. 4, 6, and 7 are
-# JSON::Pure::Generator methods and 5 is the Rails JSON generator. It is now a
-# bit faster than the generator_safe and generator_pretty methods of the pure
-# variant but slower than the others.
-#
-# To achieve the fastest JSON text output, you can use the fast_generate
-# method. Beware, that this will disable the checking for circular Ruby data
-# structures, which may cause JSON to go into an infinite loop.
-#
-# Here are the median comparisons for completeness' sake:
-#
-# Comparing times (call_time_median):
-# 1 GeneratorBenchmarkExt#generator_fast 1000 repeats:
-# 708.258020939 ( real) -> 16.547x
-# 0.001411915
-# 2 GeneratorBenchmarkExt#generator_safe 1000 repeats:
-# 569.105020353 ( real) -> 13.296x
-# 0.001757145
-# 3 GeneratorBenchmarkExt#generator_pretty 900 repeats:
-# 482.825371244 ( real) -> 11.280x
-# 0.002071142
-# 4 GeneratorBenchmarkPure#generator_fast 1000 repeats:
-# 62.717626652 ( real) -> 1.465x
-# 0.015944481
-# 5 GeneratorBenchmarkRails#generator 1000 repeats:
-# 43.965681162 ( real) -> 1.027x
-# 0.022745013
-# 6 GeneratorBenchmarkPure#generator_safe 1000 repeats:
-# 43.929073409 ( real) -> 1.026x 7 (>=3859)
-# 0.022763968
-# 7 GeneratorBenchmarkPure#generator_pretty 1000 repeats:
-# 42.802514491 ( real) -> 1.000x 6 (>=3859)
-# 0.023363113
-# calls/sec ( time) -> speed covers
-# secs/call
-#
-# == Examples
-#
-# To create a JSON text from a ruby data structure, you can call JSON.generate
-# like that:
-#
-# json = JSON.generate [1, 2, {"a"=>3.141}, false, true, nil, 4..10]
-# # => "[1,2,{\"a\":3.141},false,true,null,\"4..10\"]"
-#
-# To create a valid JSON text you have to make sure, that the output is
-# embedded in either a JSON array [] or a JSON object {}. The easiest way to do
-# this, is by putting your values in a Ruby Array or Hash instance.
-#
-# To get back a ruby data structure from a JSON text, you have to call
-# JSON.parse on it:
-#
-# JSON.parse json
-# # => [1, 2, {"a"=>3.141}, false, true, nil, "4..10"]
-#
-# Note, that the range from the original data structure is a simple
-# string now. The reason for this is, that JSON doesn't support ranges
-# or arbitrary classes. In this case the json library falls back to call
-# Object#to_json, which is the same as #to_s.to_json.
-#
-# It's possible to add JSON support serialization to arbitrary classes by
-# simply implementing a more specialized version of the #to_json method, that
-# should return a JSON object (a hash converted to JSON with #to_json) like
-# this (don't forget the *a for all the arguments):
-#
-# class Range
-# def to_json(*a)
-# {
-# 'json_class' => self.class.name, # = 'Range'
-# 'data' => [ first, last, exclude_end? ]
-# }.to_json(*a)
-# end
-# end
-#
-# The hash key 'json_class' is the class, that will be asked to deserialise the
-# JSON representation later. In this case it's 'Range', but any namespace of
-# the form 'A::B' or '::A::B' will do. All other keys are arbitrary and can be
-# used to store the necessary data to configure the object to be deserialised.
-#
-# If a the key 'json_class' is found in a JSON object, the JSON parser checks
-# if the given class responds to the json_create class method. If so, it is
-# called with the JSON object converted to a Ruby hash. So a range can
-# be deserialised by implementing Range.json_create like this:
-#
-# class Range
-# def self.json_create(o)
-# new(*o['data'])
-# end
-# end
+# require 'json'
#
-# Now it possible to serialise/deserialise ranges as well:
+# my_hash = {:hello => "goodbye"}
+# puts JSON.generate(my_hash) => "{\"hello\":\"goodbye\"}"
#
-# json = JSON.generate [1, 2, {"a"=>3.141}, false, true, nil, 4..10]
-# # => "[1,2,{\"a\":3.141},false,true,null,{\"json_class\":\"Range\",\"data\":[4,10,false]}]"
-# JSON.parse json
-# # => [1, 2, {"a"=>3.141}, false, true, nil, 4..10]
+# Or an alternative way:
#
-# JSON.generate always creates the shortest possible string representation of a
-# ruby data structure in one line. This good for data storage or network
-# protocols, but not so good for humans to read. Fortunately there's also
-# JSON.pretty_generate (or JSON.pretty_generate) that creates a more
-# readable output:
+# require 'json'
+# puts {:hello => "goodbye"}.to_json => "{\"hello\":\"goodbye\"}"
#
-# puts JSON.pretty_generate([1, 2, {"a"=>3.141}, false, true, nil, 4..10])
-# [
-# 1,
-# 2,
-# {
-# "a": 3.141
-# },
-# false,
-# true,
-# null,
-# {
-# "json_class": "Range",
-# "data": [
-# 4,
-# 10,
-# false
-# ]
-# }
-# ]
+# <tt>JSON.generate</tt> only allows objects or arrays to be converted
+# to JSON syntax. <tt>to_json</tt>, however, accepts many Ruby classes
+# even though it acts only as a method for serialization:
#
-# There are also the methods Kernel#j for generate, and Kernel#jj for
-# pretty_generate output to the console, that work analogous to Core Ruby's p
-# and the pp library's pp methods.
+# require 'json'
#
-# The script tools/server.rb contains a small example if you want to test, how
-# receiving a JSON object from a webrick server in your browser with the
-# javasript prototype library (http://www.prototypejs.org) works.
+# 1.to_json => "1"
#
+
+require 'json/common'
module JSON
require 'json/version'
- if VARIANT_BINARY
+ begin
require 'json/ext'
- else
- begin
- require 'json/ext'
- rescue LoadError
- require 'json/pure'
- end
+ rescue LoadError
+ require 'json/pure'
end
end
diff --git a/ext/json/lib/json/Array.xpm b/ext/json/lib/json/Array.xpm
deleted file mode 100644
index 27c48011f9..0000000000
--- a/ext/json/lib/json/Array.xpm
+++ /dev/null
@@ -1,21 +0,0 @@
-/* XPM */
-static char * Array_xpm[] = {
-"16 16 2 1",
-" c None",
-". c #000000",
-" ",
-" ",
-" ",
-" .......... ",
-" . . ",
-" . . ",
-" . . ",
-" . . ",
-" . . ",
-" . . ",
-" . . ",
-" . . ",
-" .......... ",
-" ",
-" ",
-" "};
diff --git a/ext/json/lib/json/FalseClass.xpm b/ext/json/lib/json/FalseClass.xpm
deleted file mode 100644
index 25ce60832d..0000000000
--- a/ext/json/lib/json/FalseClass.xpm
+++ /dev/null
@@ -1,21 +0,0 @@
-/* XPM */
-static char * False_xpm[] = {
-"16 16 2 1",
-" c None",
-". c #FF0000",
-" ",
-" ",
-" ",
-" ...... ",
-" . ",
-" . ",
-" . ",
-" ...... ",
-" . ",
-" . ",
-" . ",
-" . ",
-" . ",
-" ",
-" ",
-" "};
diff --git a/ext/json/lib/json/Hash.xpm b/ext/json/lib/json/Hash.xpm
deleted file mode 100644
index cd8f6f7b53..0000000000
--- a/ext/json/lib/json/Hash.xpm
+++ /dev/null
@@ -1,21 +0,0 @@
-/* XPM */
-static char * Hash_xpm[] = {
-"16 16 2 1",
-" c None",
-". c #000000",
-" ",
-" ",
-" ",
-" . . ",
-" . . ",
-" . . ",
-" ......... ",
-" . . ",
-" . . ",
-" ......... ",
-" . . ",
-" . . ",
-" . . ",
-" ",
-" ",
-" "};
diff --git a/ext/json/lib/json/Key.xpm b/ext/json/lib/json/Key.xpm
deleted file mode 100644
index 9fd7281388..0000000000
--- a/ext/json/lib/json/Key.xpm
+++ /dev/null
@@ -1,73 +0,0 @@
-/* XPM */
-static char * Key_xpm[] = {
-"16 16 54 1",
-" c None",
-". c #110007",
-"+ c #0E0900",
-"@ c #000013",
-"# c #070600",
-"$ c #F6F006",
-"% c #ECE711",
-"& c #E5EE00",
-"* c #16021E",
-"= c #120900",
-"- c #EDF12B",
-"; c #000033",
-"> c #0F0000",
-", c #FFFE03",
-"' c #E6E500",
-") c #16021B",
-"! c #F7F502",
-"~ c #000E00",
-"{ c #130000",
-"] c #FFF000",
-"^ c #FFE711",
-"/ c #140005",
-"( c #190025",
-"_ c #E9DD27",
-": c #E7DC04",
-"< c #FFEC09",
-"[ c #FFE707",
-"} c #FFDE10",
-"| c #150021",
-"1 c #160700",
-"2 c #FAF60E",
-"3 c #EFE301",
-"4 c #FEF300",
-"5 c #E7E000",
-"6 c #FFFF08",
-"7 c #0E0206",
-"8 c #040000",
-"9 c #03052E",
-"0 c #041212",
-"a c #070300",
-"b c #F2E713",
-"c c #F9DE13",
-"d c #36091E",
-"e c #00001C",
-"f c #1F0010",
-"g c #FFF500",
-"h c #DEDE00",
-"i c #050A00",
-"j c #FAF14A",
-"k c #F5F200",
-"l c #040404",
-"m c #1A0D00",
-"n c #EDE43D",
-"o c #ECE007",
-" ",
-" ",
-" .+@ ",
-" #$%&* ",
-" =-;>,') ",
-" >!~{]^/ ",
-" (_:<[}| ",
-" 1234567 ",
-" 890abcd ",
-" efghi ",
-" >jkl ",
-" mnol ",
-" >kl ",
-" ll ",
-" ",
-" "};
diff --git a/ext/json/lib/json/NilClass.xpm b/ext/json/lib/json/NilClass.xpm
deleted file mode 100644
index 3509f06c99..0000000000
--- a/ext/json/lib/json/NilClass.xpm
+++ /dev/null
@@ -1,21 +0,0 @@
-/* XPM */
-static char * False_xpm[] = {
-"16 16 2 1",
-" c None",
-". c #000000",
-" ",
-" ",
-" ",
-" ... ",
-" . . ",
-" . . ",
-" . . ",
-" . . ",
-" . . ",
-" . . ",
-" . . ",
-" . . ",
-" ... ",
-" ",
-" ",
-" "};
diff --git a/ext/json/lib/json/Numeric.xpm b/ext/json/lib/json/Numeric.xpm
deleted file mode 100644
index e071e2ee9c..0000000000
--- a/ext/json/lib/json/Numeric.xpm
+++ /dev/null
@@ -1,28 +0,0 @@
-/* XPM */
-static char * Numeric_xpm[] = {
-"16 16 9 1",
-" c None",
-". c #FF0000",
-"+ c #0000FF",
-"@ c #0023DB",
-"# c #00EA14",
-"$ c #00FF00",
-"% c #004FAF",
-"& c #0028D6",
-"* c #00F20C",
-" ",
-" ",
-" ",
-" ... +++@#$$$$ ",
-" .+ %& $$ ",
-" . + $ ",
-" . + $$ ",
-" . ++$$$$ ",
-" . + $$ ",
-" . + $ ",
-" . + $ ",
-" . + $ $$ ",
-" .....++++*$$ ",
-" ",
-" ",
-" "};
diff --git a/ext/json/lib/json/String.xpm b/ext/json/lib/json/String.xpm
deleted file mode 100644
index f79a89cdc1..0000000000
--- a/ext/json/lib/json/String.xpm
+++ /dev/null
@@ -1,96 +0,0 @@
-/* XPM */
-static char * String_xpm[] = {
-"16 16 77 1",
-" c None",
-". c #000000",
-"+ c #040404",
-"@ c #080806",
-"# c #090606",
-"$ c #EEEAE1",
-"% c #E7E3DA",
-"& c #E0DBD1",
-"* c #D4B46F",
-"= c #0C0906",
-"- c #E3C072",
-"; c #E4C072",
-"> c #060505",
-", c #0B0A08",
-"' c #D5B264",
-") c #D3AF5A",
-"! c #080602",
-"~ c #E1B863",
-"{ c #DDB151",
-"] c #DBAE4A",
-"^ c #DDB152",
-"/ c #DDB252",
-"( c #070705",
-"_ c #0C0A07",
-": c #D3A33B",
-"< c #020201",
-"[ c #DAAA41",
-"} c #040302",
-"| c #E4D9BF",
-"1 c #0B0907",
-"2 c #030201",
-"3 c #020200",
-"4 c #C99115",
-"5 c #080704",
-"6 c #DBC8A2",
-"7 c #E7D7B4",
-"8 c #E0CD9E",
-"9 c #080601",
-"0 c #040400",
-"a c #010100",
-"b c #0B0B08",
-"c c #DCBF83",
-"d c #DCBC75",
-"e c #DEB559",
-"f c #040301",
-"g c #BC8815",
-"h c #120E07",
-"i c #060402",
-"j c #0A0804",
-"k c #D4A747",
-"l c #D6A12F",
-"m c #0E0C05",
-"n c #C8C1B0",
-"o c #1D1B15",
-"p c #D7AD51",
-"q c #070502",
-"r c #080804",
-"s c #BC953B",
-"t c #C4BDAD",
-"u c #0B0807",
-"v c #DBAC47",
-"w c #1B150A",
-"x c #B78A2C",
-"y c #D8A83C",
-"z c #D4A338",
-"A c #0F0B03",
-"B c #181105",
-"C c #C59325",
-"D c #C18E1F",
-"E c #060600",
-"F c #CC992D",
-"G c #B98B25",
-"H c #B3831F",
-"I c #C08C1C",
-"J c #060500",
-"K c #0E0C03",
-"L c #0D0A00",
-" ",
-" .+@# ",
-" .$%&*= ",
-" .-;>,')! ",
-" .~. .{]. ",
-" .^/. (_:< ",
-" .[.}|$12 ",
-" 345678}90 ",
-" a2bcdefgh ",
-" ijkl.mno ",
-" <pq. rstu ",
-" .]v. wx= ",
-" .yzABCDE ",
-" .FGHIJ ",
-" 0KL0 ",
-" "};
diff --git a/ext/json/lib/json/TrueClass.xpm b/ext/json/lib/json/TrueClass.xpm
deleted file mode 100644
index 143eef49bb..0000000000
--- a/ext/json/lib/json/TrueClass.xpm
+++ /dev/null
@@ -1,21 +0,0 @@
-/* XPM */
-static char * TrueClass_xpm[] = {
-"16 16 2 1",
-" c None",
-". c #0BF311",
-" ",
-" ",
-" ",
-" ......... ",
-" . ",
-" . ",
-" . ",
-" . ",
-" . ",
-" . ",
-" . ",
-" . ",
-" . ",
-" ",
-" ",
-" "};
diff --git a/ext/json/lib/json/add/complex.rb b/ext/json/lib/json/add/complex.rb
new file mode 100644
index 0000000000..d7ebebf5f7
--- /dev/null
+++ b/ext/json/lib/json/add/complex.rb
@@ -0,0 +1,22 @@
+unless defined?(::JSON::JSON_LOADED) and ::JSON::JSON_LOADED
+ require 'json'
+end
+defined?(::Complex) or require 'complex'
+
+class Complex
+ def self.json_create(object)
+ Complex(object['r'], object['i'])
+ end
+
+ def as_json(*)
+ {
+ JSON.create_id => self.class.name,
+ 'r' => real,
+ 'i' => imag,
+ }
+ end
+
+ def to_json(*)
+ as_json.to_json
+ end
+end
diff --git a/ext/json/lib/json/add/core.rb b/ext/json/lib/json/add/core.rb
index 4423e7ad75..1ae00d01a5 100644
--- a/ext/json/lib/json/add/core.rb
+++ b/ext/json/lib/json/add/core.rb
@@ -1,13 +1,37 @@
# This file contains implementations of ruby core's custom objects for
# serialisation/deserialisation.
-unless Object.const_defined?(:JSON) and ::JSON.const_defined?(:JSON_LOADED) and
- ::JSON::JSON_LOADED
+unless defined?(::JSON::JSON_LOADED) and ::JSON::JSON_LOADED
require 'json'
end
require 'date'
+# Symbol serialization/deserialization
+class Symbol
+ # Returns a hash, that will be turned into a JSON object and represent this
+ # object.
+ def as_json(*)
+ {
+ JSON.create_id => self.class.name,
+ 's' => to_s,
+ }
+ end
+
+ # Stores class name (Symbol) with String representation of Symbol as a JSON string.
+ def to_json(*a)
+ as_json.to_json(*a)
+ end
+
+ # Deserializes JSON string by converting the <tt>string</tt> value stored in the object to a Symbol
+ def self.json_create(o)
+ o['s'].to_sym
+ end
+end
+
+# Time serialization/deserialization
class Time
+
+ # Deserializes JSON string by converting time since epoch to Time
def self.json_create(object)
if usec = object.delete('u') # used to be tv_usec -> tv_nsec
object['n'] = usec * 1000
@@ -19,34 +43,59 @@ class Time
end
end
- def to_json(*args)
+ # Returns a hash, that will be turned into a JSON object and represent this
+ # object.
+ def as_json(*)
{
- 'json_class' => self.class.name,
- 's' => tv_sec,
- 'n' => respond_to?(:tv_nsec) ? tv_nsec : tv_usec * 1000
- }.to_json(*args)
+ JSON.create_id => self.class.name,
+ 's' => tv_sec,
+ 'n' => respond_to?(:tv_nsec) ? tv_nsec : tv_usec * 1000
+ }
+ end
+
+ # Stores class name (Time) with number of seconds since epoch and number of
+ # microseconds for Time as JSON string
+ def to_json(*args)
+ as_json.to_json(*args)
end
end
+# Date serialization/deserialization
class Date
+
+ # Deserializes JSON string by converting Julian year <tt>y</tt>, month
+ # <tt>m</tt>, day <tt>d</tt> and Day of Calendar Reform <tt>sg</tt> to Date.
def self.json_create(object)
civil(*object.values_at('y', 'm', 'd', 'sg'))
end
alias start sg unless method_defined?(:start)
- def to_json(*args)
+ # Returns a hash, that will be turned into a JSON object and represent this
+ # object.
+ def as_json(*)
{
- 'json_class' => self.class.name,
+ JSON.create_id => self.class.name,
'y' => year,
'm' => month,
'd' => day,
'sg' => start,
- }.to_json(*args)
+ }
+ end
+
+ # Stores class name (Date) with Julian year <tt>y</tt>, month <tt>m</tt>, day
+ # <tt>d</tt> and Day of Calendar Reform <tt>sg</tt> as JSON string
+ def to_json(*args)
+ as_json.to_json(*args)
end
end
+# DateTime serialization/deserialization
class DateTime
+
+ # Deserializes JSON string by converting year <tt>y</tt>, month <tt>m</tt>,
+ # day <tt>d</tt>, hour <tt>H</tt>, minute <tt>M</tt>, second <tt>S</tt>,
+ # offset <tt>of</tt> and Day of Calendar Reform <tt>sg</tt> to DateTime.
def self.json_create(object)
args = object.values_at('y', 'm', 'd', 'H', 'M', 'S')
of_a, of_b = object['of'].split('/')
@@ -61,9 +110,11 @@ class DateTime
alias start sg unless method_defined?(:start)
- def to_json(*args)
+ # Returns a hash, that will be turned into a JSON object and represent this
+ # object.
+ def as_json(*)
{
- 'json_class' => self.class.name,
+ JSON.create_id => self.class.name,
'y' => year,
'm' => month,
'd' => day,
@@ -72,64 +123,121 @@ class DateTime
'S' => sec,
'of' => offset.to_s,
'sg' => start,
- }.to_json(*args)
+ }
+ end
+
+ # Stores class name (DateTime) with Julian year <tt>y</tt>, month <tt>m</tt>,
+ # day <tt>d</tt>, hour <tt>H</tt>, minute <tt>M</tt>, second <tt>S</tt>,
+ # offset <tt>of</tt> and Day of Calendar Reform <tt>sg</tt> as JSON string
+ def to_json(*args)
+ as_json.to_json(*args)
end
end
+# Range serialization/deserialization
class Range
+
+ # Deserializes JSON string by constructing new Range object with arguments
+ # <tt>a</tt> serialized by <tt>to_json</tt>.
def self.json_create(object)
new(*object['a'])
end
- def to_json(*args)
+ # Returns a hash, that will be turned into a JSON object and represent this
+ # object.
+ def as_json(*)
{
- 'json_class' => self.class.name,
- 'a' => [ first, last, exclude_end? ]
- }.to_json(*args)
+ JSON.create_id => self.class.name,
+ 'a' => [ first, last, exclude_end? ]
+ }
+ end
+
+ # Stores class name (Range) with JSON array of arguments <tt>a</tt> which
+ # include <tt>first</tt> (integer), <tt>last</tt> (integer), and
+ # <tt>exclude_end?</tt> (boolean) as JSON string.
+ def to_json(*args)
+ as_json.to_json(*args)
end
end
+# Struct serialization/deserialization
class Struct
+
+ # Deserializes JSON string by constructing new Struct object with values
+ # <tt>v</tt> serialized by <tt>to_json</tt>.
def self.json_create(object)
new(*object['v'])
end
- def to_json(*args)
+ # Returns a hash, that will be turned into a JSON object and represent this
+ # object.
+ def as_json(*)
klass = self.class.name
klass.to_s.empty? and raise JSON::JSONError, "Only named structs are supported!"
{
- 'json_class' => klass,
- 'v' => values,
- }.to_json(*args)
+ JSON.create_id => klass,
+ 'v' => values,
+ }
+ end
+
+ # Stores class name (Struct) with Struct values <tt>v</tt> as a JSON string.
+ # Only named structs are supported.
+ def to_json(*args)
+ as_json.to_json(*args)
end
end
+# Exception serialization/deserialization
class Exception
+
+ # Deserializes JSON string by constructing new Exception object with message
+ # <tt>m</tt> and backtrace <tt>b</tt> serialized with <tt>to_json</tt>
def self.json_create(object)
result = new(object['m'])
result.set_backtrace object['b']
result
end
- def to_json(*args)
+ # Returns a hash, that will be turned into a JSON object and represent this
+ # object.
+ def as_json(*)
{
- 'json_class' => self.class.name,
- 'm' => message,
- 'b' => backtrace,
- }.to_json(*args)
+ JSON.create_id => self.class.name,
+ 'm' => message,
+ 'b' => backtrace,
+ }
+ end
+
+ # Stores class name (Exception) with message <tt>m</tt> and backtrace array
+ # <tt>b</tt> as JSON string
+ def to_json(*args)
+ as_json.to_json(*args)
end
end
+# Regexp serialization/deserialization
class Regexp
+
+ # Deserializes JSON string by constructing new Regexp object with source
+ # <tt>s</tt> (Regexp or String) and options <tt>o</tt> serialized by
+ # <tt>to_json</tt>
def self.json_create(object)
new(object['s'], object['o'])
end
- def to_json(*)
+ # Returns a hash, that will be turned into a JSON object and represent this
+ # object.
+ def as_json(*)
{
- 'json_class' => self.class.name,
- 'o' => options,
- 's' => source,
- }.to_json
+ JSON.create_id => self.class.name,
+ 'o' => options,
+ 's' => source,
+ }
+ end
+
+ # Stores class name (Regexp) with options <tt>o</tt> and source <tt>s</tt>
+ # (Regexp or String) as JSON string
+ def to_json(*)
+ as_json.to_json
end
end
diff --git a/ext/json/lib/json/add/rails.rb b/ext/json/lib/json/add/rails.rb
deleted file mode 100644
index e86ed1aab9..0000000000
--- a/ext/json/lib/json/add/rails.rb
+++ /dev/null
@@ -1,58 +0,0 @@
-# This file contains implementations of rails custom objects for
-# serialisation/deserialisation.
-
-unless Object.const_defined?(:JSON) and ::JSON.const_defined?(:JSON_LOADED) and
- ::JSON::JSON_LOADED
- require 'json'
-end
-
-class Object
- def self.json_create(object)
- obj = new
- for key, value in object
- next if key == 'json_class'
- instance_variable_set "@#{key}", value
- end
- obj
- end
-
- def to_json(*a)
- result = {
- 'json_class' => self.class.name
- }
- instance_variables.inject(result) do |r, name|
- r[name[1..-1]] = instance_variable_get name
- r
- end
- result.to_json(*a)
- end
-end
-
-class Symbol
- def to_json(*a)
- to_s.to_json(*a)
- end
-end
-
-module Enumerable
- def to_json(*a)
- to_a.to_json(*a)
- end
-end
-
-# class Regexp
-# def to_json(*)
-# inspect
-# end
-# end
-#
-# The above rails definition has some problems:
-#
-# 1. { 'foo' => /bar/ }.to_json # => "{foo: /bar/}"
-# This isn't valid JSON, because the regular expression syntax is not
-# defined in RFC 4627. (And unquoted strings are disallowed there, too.)
-# Though it is valid Javascript.
-#
-# 2. { 'foo' => /bar/mix }.to_json # => "{foo: /bar/mix}"
-# This isn't even valid Javascript.
-
diff --git a/ext/json/lib/json/add/rational.rb b/ext/json/lib/json/add/rational.rb
new file mode 100644
index 0000000000..867cd92f05
--- /dev/null
+++ b/ext/json/lib/json/add/rational.rb
@@ -0,0 +1,22 @@
+unless defined?(::JSON::JSON_LOADED) and ::JSON::JSON_LOADED
+ require 'json'
+end
+defined?(::Rational) or require 'rational'
+
+class Rational
+ def self.json_create(object)
+ Rational(object['n'], object['d'])
+ end
+
+ def as_json(*)
+ {
+ JSON.create_id => self.class.name,
+ 'n' => numerator,
+ 'd' => denominator,
+ }
+ end
+
+ def to_json(*)
+ as_json.to_json
+ end
+end
diff --git a/ext/json/lib/json/common.rb b/ext/json/lib/json/common.rb
index 1bd0ad5fbd..43e249c954 100755..100644
--- a/ext/json/lib/json/common.rb
+++ b/ext/json/lib/json/common.rb
@@ -2,48 +2,53 @@ require 'json/version'
module JSON
class << self
- # If _object_ is string-like parse the string and return the parsed result
+ # If _object_ is string-like, parse the string and return the parsed result
# as a Ruby data structure. Otherwise generate a JSON text from the Ruby
# data structure object and return it.
#
- # The _opts_ argument is passed through to generate/parse respectively, see
+ # The _opts_ argument is passed through to generate/parse respectively. See
# generate and parse for their documentation.
def [](object, opts = {})
if object.respond_to? :to_str
- JSON.parse(object.to_str, opts => {})
+ JSON.parse(object.to_str, opts)
else
- JSON.generate(object, opts => {})
+ JSON.generate(object, opts)
end
end
- # Returns the JSON parser class, that is used by JSON. This might be either
+ # Returns the JSON parser class that is used by JSON. This is either
# JSON::Ext::Parser or JSON::Pure::Parser.
attr_reader :parser
# Set the JSON parser class _parser_ to be used by JSON.
def parser=(parser) # :nodoc:
@parser = parser
- remove_const :Parser if const_defined? :Parser
+ remove_const :Parser if JSON.const_defined_in?(self, :Parser)
const_set :Parser, parser
end
# Return the constant located at _path_. The format of _path_ has to be
- # either ::A::B::C or A::B::C. In any case A has to be located at the top
+ # either ::A::B::C or A::B::C. In any case, A has to be located at the top
# level (absolute namespace path?). If there doesn't exist a constant at
# the given path, an ArgumentError is raised.
def deep_const_get(path) # :nodoc:
- path = path.to_s
- path.split(/::/).inject(Object) do |p, c|
+ path.to_s.split(/::/).inject(Object) do |p, c|
case
- when c.empty? then p
- when p.const_defined?(c) then p.const_get(c)
- else raise ArgumentError, "can't find const #{path}"
+ when c.empty? then p
+ when JSON.const_defined_in?(p, c) then p.const_get(c)
+ else
+ begin
+ p.const_missing(c)
+ rescue NameError => e
+ raise ArgumentError, "can't get const #{path}: #{e}"
+ end
end
end
end
# Set the module _generator_ to be used by JSON.
def generator=(generator) # :nodoc:
+ old, $VERBOSE = $VERBOSE, nil
@generator = generator
generator_methods = generator::GeneratorMethods
for const in generator_methods.constants
@@ -58,23 +63,39 @@ module JSON
end
self.state = generator::State
const_set :State, self.state
+ const_set :SAFE_STATE_PROTOTYPE, State.new
+ const_set :FAST_STATE_PROTOTYPE, State.new(
+ :indent => '',
+ :space => '',
+ :object_nl => "",
+ :array_nl => "",
+ :max_nesting => false
+ )
+ const_set :PRETTY_STATE_PROTOTYPE, State.new(
+ :indent => ' ',
+ :space => ' ',
+ :object_nl => "\n",
+ :array_nl => "\n"
+ )
+ ensure
+ $VERBOSE = old
end
- # Returns the JSON generator modul, that is used by JSON. This might be
+ # Returns the JSON generator module that is used by JSON. This is
# either JSON::Ext::Generator or JSON::Pure::Generator.
attr_reader :generator
- # Returns the JSON generator state class, that is used by JSON. This might
- # be either JSON::Ext::Generator::State or JSON::Pure::Generator::State.
+ # Returns the JSON generator state class that is used by JSON. This is
+ # either JSON::Ext::Generator::State or JSON::Pure::Generator::State.
attr_accessor :state
- # This is create identifier, that is used to decide, if the _json_create_
+ # This is create identifier, which is used to decide if the _json_create_
# hook of a class should be called. It defaults to 'json_class'.
attr_accessor :create_id
end
self.create_id = 'json_class'
- NaN = (-1.0) ** 0.5
+ NaN = 0.0/0
Infinity = 1.0/0
@@ -83,71 +104,75 @@ module JSON
# The base exception for JSON errors.
class JSONError < StandardError; end
- # This exception is raised, if a parser error occurs.
+ # This exception is raised if a parser error occurs.
class ParserError < JSONError; end
- # This exception is raised, if the nesting of parsed datastructures is too
+ # This exception is raised if the nesting of parsed data structures is too
# deep.
class NestingError < ParserError; end
- # This exception is raised, if a generator or unparser error occurs.
+ # :stopdoc:
+ class CircularDatastructure < NestingError; end
+ # :startdoc:
+
+ # This exception is raised if a generator or unparser error occurs.
class GeneratorError < JSONError; end
# For backwards compatibility
UnparserError = GeneratorError
- # If a circular data structure is encountered while unparsing
- # this exception is raised.
- class CircularDatastructure < GeneratorError; end
-
- # This exception is raised, if the required unicode support is missing on the
- # system. Usually this means, that the iconv library is not installed.
+ # This exception is raised if the required unicode support is missing on the
+ # system. Usually this means that the iconv library is not installed.
class MissingUnicodeSupport < JSONError; end
module_function
- # Parse the JSON string _source_ into a Ruby data structure and return it.
+ # Parse the JSON document _source_ into a Ruby data structure and return it.
#
# _opts_ can have the following
# keys:
# * *max_nesting*: The maximum depth of nesting allowed in the parsed data
- # structures. Disable depth checking with :max_nesting => false, it defaults
+ # structures. Disable depth checking with :max_nesting => false. It defaults
# to 19.
# * *allow_nan*: If set to true, allow NaN, Infinity and -Infinity in
# defiance of RFC 4627 to be parsed by the Parser. This option defaults
# to false.
+ # * *symbolize_names*: If set to true, returns symbols for the names
+ # (keys) in a JSON object. Otherwise strings are returned. Strings are
+ # the default.
# * *create_additions*: If set to false, the Parser doesn't create
- # additions even if a matchin class and create_id was found. This option
+ # additions even if a matching class and create_id was found. This option
# defaults to true.
+ # * *object_class*: Defaults to Hash
+ # * *array_class*: Defaults to Array
def parse(source, opts = {})
- JSON.parser.new(source, opts).parse
+ Parser.new(source, opts).parse
end
- # Parse the JSON string _source_ into a Ruby data structure and return it.
- # The bang version of the parse method, defaults to the more dangerous values
- # for the _opts_ hash, so be sure only to parse trusted _source_ strings.
+ # Parse the JSON document _source_ into a Ruby data structure and return it.
+ # The bang version of the parse method defaults to the more dangerous values
+ # for the _opts_ hash, so be sure only to parse trusted _source_ documents.
#
# _opts_ can have the following keys:
# * *max_nesting*: The maximum depth of nesting allowed in the parsed data
# structures. Enable depth checking with :max_nesting => anInteger. The parse!
- # methods defaults to not doing max depth checking: This can be dangerous,
+ # methods defaults to not doing max depth checking: This can be dangerous
# if someone wants to fill up your stack.
# * *allow_nan*: If set to true, allow NaN, Infinity, and -Infinity in
# defiance of RFC 4627 to be parsed by the Parser. This option defaults
# to true.
# * *create_additions*: If set to false, the Parser doesn't create
- # additions even if a matchin class and create_id was found. This option
+ # additions even if a matching class and create_id was found. This option
# defaults to true.
def parse!(source, opts = {})
opts = {
- :max_nesting => false,
- :allow_nan => true
+ :max_nesting => false,
+ :allow_nan => true
}.update(opts)
- JSON.parser.new(source, opts).parse
+ Parser.new(source, opts).parse
end
- # Unparse the Ruby data structure _obj_ into a single line JSON string and
- # return it. _state_ is
- # * a JSON::State object,
+ # Generate a JSON document from the Ruby data structure _obj_ and return
+ # it. _state_ is * a JSON::State object,
# * or a Hash like object (responding to to_hash),
# * an object convertible into a hash by a to_h method,
# that is used as or to configure a State object.
@@ -162,10 +187,8 @@ module JSON
# * *space_before*: a string that is put before a : pair delimiter (default: ''),
# * *object_nl*: a string that is put at the end of a JSON object (default: ''),
# * *array_nl*: a string that is put at the end of a JSON array (default: ''),
- # * *check_circular*: true if checking for circular data structures
- # should be done (the default), false otherwise.
# * *allow_nan*: true if NaN, Infinity, and -Infinity should be
- # generated, otherwise an exception is thrown, if these values are
+ # generated, otherwise an exception is thrown if these values are
# encountered. This options defaults to false.
# * *max_nesting*: The maximum depth of nesting allowed in the data
# structures from which JSON is to be generated. Disable depth checking
@@ -173,14 +196,24 @@ module JSON
#
# See also the fast_generate for the fastest creation method with the least
# amount of sanity checks, and the pretty_generate method for some
- # defaults for a pretty output.
- def generate(obj, state = nil)
- if state
- state = State.from_state(state)
+ # defaults for pretty output.
+ def generate(obj, opts = nil)
+ if State === opts
+ state, opts = opts, nil
else
- state = State.new
+ state = SAFE_STATE_PROTOTYPE.dup
+ end
+ if opts
+ if opts.respond_to? :to_hash
+ opts = opts.to_hash
+ elsif opts.respond_to? :to_h
+ opts = opts.to_h
+ else
+ raise TypeError, "can't convert #{opts.class} into Hash"
+ end
+ state = state.configure(opts)
end
- obj.to_json(state)
+ state.generate(obj)
end
# :stopdoc:
@@ -190,14 +223,28 @@ module JSON
module_function :unparse
# :startdoc:
- # Unparse the Ruby data structure _obj_ into a single line JSON string and
- # return it. This method disables the checks for circles in Ruby objects, and
- # also generates NaN, Infinity, and, -Infinity float values.
+ # Generate a JSON document from the Ruby data structure _obj_ and return it.
+ # This method disables the checks for circles in Ruby objects.
#
# *WARNING*: Be careful not to pass any Ruby data structures with circles as
- # _obj_ argument, because this will cause JSON to go into an infinite loop.
- def fast_generate(obj)
- obj.to_json(nil)
+ # _obj_ argument because this will cause JSON to go into an infinite loop.
+ def fast_generate(obj, opts = nil)
+ if State === opts
+ state, opts = opts, nil
+ else
+ state = FAST_STATE_PROTOTYPE.dup
+ end
+ if opts
+ if opts.respond_to? :to_hash
+ opts = opts.to_hash
+ elsif opts.respond_to? :to_h
+ opts = opts.to_h
+ else
+ raise TypeError, "can't convert #{opts.class} into Hash"
+ end
+ state.configure(opts)
+ end
+ state.generate(obj)
end
# :stopdoc:
@@ -206,19 +253,18 @@ module JSON
module_function :fast_unparse
# :startdoc:
- # Unparse the Ruby data structure _obj_ into a JSON string and return it. The
- # returned string is a prettier form of the string returned by #unparse.
+ # Generate a JSON document from the Ruby data structure _obj_ and return it.
+ # The returned document is a prettier form of the document returned by
+ # #unparse.
#
- # The _opts_ argument can be used to configure the generator, see the
+ # The _opts_ argument can be used to configure the generator. See the
# generate method for a more detailed explanation.
def pretty_generate(obj, opts = nil)
- state = JSON.state.new(
- :indent => ' ',
- :space => ' ',
- :object_nl => "\n",
- :array_nl => "\n",
- :check_circular => true
- )
+ if State === opts
+ state, opts = opts, nil
+ else
+ state = PRETTY_STATE_PROTOTYPE.dup
+ end
if opts
if opts.respond_to? :to_hash
opts = opts.to_hash
@@ -229,7 +275,7 @@ module JSON
end
state.configure(opts)
end
- obj.to_json(state)
+ state.generate(obj)
end
# :stopdoc:
@@ -239,7 +285,7 @@ module JSON
# :startdoc:
# Load a ruby data structure from a JSON _source_ and return it. A source can
- # either be a string-like object, an IO like object, or an object responding
+ # either be a string-like object, an IO-like object, or an object responding
# to the read method. If _proc_ was given, it will be called with any nested
# Ruby object as an argument recursively in depth first order.
#
@@ -258,6 +304,7 @@ module JSON
result
end
+ # Recursively calls passed _Proc_ if the parsed data structure is an _Array_ or _Hash_
def recurse_proc(result, &proc)
case result
when Array
@@ -270,8 +317,6 @@ module JSON
proc.call result
end
end
- private :recurse_proc
- module_function :recurse_proc
alias restore load
module_function :restore
@@ -279,10 +324,10 @@ module JSON
# Dumps _obj_ as a JSON string, i.e. calls generate on the object and returns
# the result.
#
- # If anIO (an IO like object or an object that responds to the write method)
+ # If anIO (an IO-like object or an object that responds to the write method)
# was given, the resulting JSON is written to it.
#
- # If the number of nested arrays or objects exceeds _limit_ an ArgumentError
+ # If the number of nested arrays or objects exceeds _limit_, an ArgumentError
# exception is raised. This argument is similar (but not exactly the
# same!) to the _limit_ argument in Marshal.dump.
#
@@ -307,9 +352,44 @@ module JSON
rescue JSON::NestingError
raise ArgumentError, "exceed depth limit"
end
+
+ # Swap consecutive bytes of _string_ in place.
+ def self.swap!(string) # :nodoc:
+ 0.upto(string.size / 2) do |i|
+ break unless string[2 * i + 1]
+ string[2 * i], string[2 * i + 1] = string[2 * i + 1], string[2 * i]
+ end
+ string
+ end
+
+ # Shortuct for iconv.
+ if ::String.method_defined?(:encode)
+ # Encodes string using Ruby's _String.encode_
+ def self.iconv(to, from, string)
+ string.encode(to, from)
+ end
+ else
+ require 'iconv'
+ # Encodes string using _iconv_ library
+ def self.iconv(to, from, string)
+ Iconv.conv(to, from, string)
+ end
+ end
+
+ if ::Object.method(:const_defined?).arity == 1
+ def self.const_defined_in?(modul, constant)
+ modul.const_defined?(constant)
+ end
+ else
+ def self.const_defined_in?(modul, constant)
+ modul.const_defined?(constant, false)
+ end
+ end
end
module ::Kernel
+ private
+
# Outputs _objs_ to STDOUT as JSON strings in the shortest form, that is in
# one line.
def j(*objs)
@@ -328,26 +408,27 @@ module ::Kernel
nil
end
- # If _object_ is string-like parse the string and return the parsed result as
- # a Ruby data structure. Otherwise generate a JSON text from the Ruby data
+ # If _object_ is string-like, parse the string and return the parsed result as
+ # a Ruby data structure. Otherwise, generate a JSON text from the Ruby data
# structure object and return it.
#
- # The _opts_ argument is passed through to generate/parse respectively, see
+ # The _opts_ argument is passed through to generate/parse respectively. See
# generate and parse for their documentation.
- def JSON(object, opts = {})
+ def JSON(object, *args)
if object.respond_to? :to_str
- JSON.parse(object.to_str, opts)
+ JSON.parse(object.to_str, args.first)
else
- JSON.generate(object, opts)
+ JSON.generate(object, args.first)
end
end
end
+# Extends any Class to include _json_creatable?_ method.
class ::Class
- # Returns true, if this class can be used to create an instance
+ # Returns true if this class can be used to create an instance
# from a serialised JSON string. The class has to implement a class
- # method _json_create_ that expects a hash as first parameter, which includes
- # the required data.
+ # method _json_create_ that expects a hash as first parameter. The hash
+ # should include the required data.
def json_creatable?
respond_to?(:json_create)
end
diff --git a/ext/json/lib/json/editor.rb b/ext/json/lib/json/editor.rb
deleted file mode 100755
index 9e05f44b5b..0000000000
--- a/ext/json/lib/json/editor.rb
+++ /dev/null
@@ -1,1371 +0,0 @@
-# To use the GUI JSON editor, start the edit_json.rb executable script. It
-# requires ruby-gtk to be installed.
-
-require 'gtk2'
-require 'iconv'
-require 'json'
-require 'rbconfig'
-require 'open-uri'
-
-module JSON
- module Editor
- include Gtk
-
- # Beginning of the editor window title
- TITLE = 'JSON Editor'.freeze
-
- # Columns constants
- ICON_COL, TYPE_COL, CONTENT_COL = 0, 1, 2
-
- # JSON primitive types (Containers)
- CONTAINER_TYPES = %w[Array Hash].sort
- # All JSON primitive types
- ALL_TYPES = (%w[TrueClass FalseClass Numeric String NilClass] +
- CONTAINER_TYPES).sort
-
- # The Nodes necessary for the tree representation of a JSON document
- ALL_NODES = (ALL_TYPES + %w[Key]).sort
-
- DEFAULT_DIALOG_KEY_PRESS_HANDLER = lambda do |dialog, event|
- case event.keyval
- when Gdk::Keyval::GDK_Return
- dialog.response Dialog::RESPONSE_ACCEPT
- when Gdk::Keyval::GDK_Escape
- dialog.response Dialog::RESPONSE_REJECT
- end
- end
-
- # Returns the Gdk::Pixbuf of the icon named _name_ from the icon cache.
- def Editor.fetch_icon(name)
- @icon_cache ||= {}
- unless @icon_cache.key?(name)
- path = File.dirname(__FILE__)
- @icon_cache[name] = Gdk::Pixbuf.new(File.join(path, name + '.xpm'))
- end
- @icon_cache[name]
- end
-
- # Opens an error dialog on top of _window_ showing the error message
- # _text_.
- def Editor.error_dialog(window, text)
- dialog = MessageDialog.new(window, Dialog::MODAL,
- MessageDialog::ERROR,
- MessageDialog::BUTTONS_CLOSE, text)
- dialog.show_all
- dialog.run
- rescue TypeError
- dialog = MessageDialog.new(Editor.window, Dialog::MODAL,
- MessageDialog::ERROR,
- MessageDialog::BUTTONS_CLOSE, text)
- dialog.show_all
- dialog.run
- ensure
- dialog.destroy if dialog
- end
-
- # Opens a yes/no question dialog on top of _window_ showing the error
- # message _text_. If yes was answered _true_ is returned, otherwise
- # _false_.
- def Editor.question_dialog(window, text)
- dialog = MessageDialog.new(window, Dialog::MODAL,
- MessageDialog::QUESTION,
- MessageDialog::BUTTONS_YES_NO, text)
- dialog.show_all
- dialog.run do |response|
- return Gtk::Dialog::RESPONSE_YES === response
- end
- ensure
- dialog.destroy if dialog
- end
-
- # Convert the tree model starting from Gtk::TreeIter _iter_ into a Ruby
- # data structure and return it.
- def Editor.model2data(iter)
- return nil if iter.nil?
- case iter.type
- when 'Hash'
- hash = {}
- iter.each { |c| hash[c.content] = Editor.model2data(c.first_child) }
- hash
- when 'Array'
- array = Array.new(iter.n_children)
- iter.each_with_index { |c, i| array[i] = Editor.model2data(c) }
- array
- when 'Key'
- iter.content
- when 'String'
- iter.content
- when 'Numeric'
- content = iter.content
- if /\./.match(content)
- content.to_f
- else
- content.to_i
- end
- when 'TrueClass'
- true
- when 'FalseClass'
- false
- when 'NilClass'
- nil
- else
- fail "Unknown type found in model: #{iter.type}"
- end
- end
-
- # Convert the Ruby data structure _data_ into tree model data for Gtk and
- # returns the whole model. If the parameter _model_ wasn't given a new
- # Gtk::TreeStore is created as the model. The _parent_ parameter specifies
- # the parent node (iter, Gtk:TreeIter instance) to which the data is
- # appended, alternativeley the result of the yielded block is used as iter.
- def Editor.data2model(data, model = nil, parent = nil)
- model ||= TreeStore.new(Gdk::Pixbuf, String, String)
- iter = if block_given?
- yield model
- else
- model.append(parent)
- end
- case data
- when Hash
- iter.type = 'Hash'
- data.sort.each do |key, value|
- pair_iter = model.append(iter)
- pair_iter.type = 'Key'
- pair_iter.content = key.to_s
- Editor.data2model(value, model, pair_iter)
- end
- when Array
- iter.type = 'Array'
- data.each do |value|
- Editor.data2model(value, model, iter)
- end
- when Numeric
- iter.type = 'Numeric'
- iter.content = data.to_s
- when String, true, false, nil
- iter.type = data.class.name
- iter.content = data.nil? ? 'null' : data.to_s
- else
- iter.type = 'String'
- iter.content = data.to_s
- end
- model
- end
-
- # The Gtk::TreeIter class is reopened and some auxiliary methods are added.
- class Gtk::TreeIter
- include Enumerable
-
- # Traverse each of this Gtk::TreeIter instance's children
- # and yield to them.
- def each
- n_children.times { |i| yield nth_child(i) }
- end
-
- # Recursively traverse all nodes of this Gtk::TreeIter's subtree
- # (including self) and yield to them.
- def recursive_each(&block)
- yield self
- each do |i|
- i.recursive_each(&block)
- end
- end
-
- # Remove the subtree of this Gtk::TreeIter instance from the
- # model _model_.
- def remove_subtree(model)
- while current = first_child
- model.remove(current)
- end
- end
-
- # Returns the type of this node.
- def type
- self[TYPE_COL]
- end
-
- # Sets the type of this node to _value_. This implies setting
- # the respective icon accordingly.
- def type=(value)
- self[TYPE_COL] = value
- self[ICON_COL] = Editor.fetch_icon(value)
- end
-
- # Returns the content of this node.
- def content
- self[CONTENT_COL]
- end
-
- # Sets the content of this node to _value_.
- def content=(value)
- self[CONTENT_COL] = value
- end
- end
-
- # This module bundles some method, that can be used to create a menu. It
- # should be included into the class in question.
- module MenuExtension
- include Gtk
-
- # Creates a Menu, that includes MenuExtension. _treeview_ is the
- # Gtk::TreeView, on which it operates.
- def initialize(treeview)
- @treeview = treeview
- @menu = Menu.new
- end
-
- # Returns the Gtk::TreeView of this menu.
- attr_reader :treeview
-
- # Returns the menu.
- attr_reader :menu
-
- # Adds a Gtk::SeparatorMenuItem to this instance's #menu.
- def add_separator
- menu.append SeparatorMenuItem.new
- end
-
- # Adds a Gtk::MenuItem to this instance's #menu. _label_ is the label
- # string, _klass_ is the item type, and _callback_ is the procedure, that
- # is called if the _item_ is activated.
- def add_item(label, keyval = nil, klass = MenuItem, &callback)
- label = "#{label} (C-#{keyval.chr})" if keyval
- item = klass.new(label)
- item.signal_connect(:activate, &callback)
- if keyval
- self.signal_connect(:'key-press-event') do |item, event|
- if event.state & Gdk::Window::ModifierType::CONTROL_MASK != 0 and
- event.keyval == keyval
- callback.call item
- end
- end
- end
- menu.append item
- item
- end
-
- # This method should be implemented in subclasses to create the #menu of
- # this instance. It has to be called after an instance of this class is
- # created, to build the menu.
- def create
- raise NotImplementedError
- end
-
- def method_missing(*a, &b)
- treeview.__send__(*a, &b)
- end
- end
-
- # This class creates the popup menu, that opens when clicking onto the
- # treeview.
- class PopUpMenu
- include MenuExtension
-
- # Change the type or content of the selected node.
- def change_node(item)
- if current = selection.selected
- parent = current.parent
- old_type, old_content = current.type, current.content
- if ALL_TYPES.include?(old_type)
- @clipboard_data = Editor.model2data(current)
- type, content = ask_for_element(parent, current.type,
- current.content)
- if type
- current.type, current.content = type, content
- current.remove_subtree(model)
- toplevel.display_status("Changed a node in tree.")
- window.change
- end
- else
- toplevel.display_status(
- "Cannot change node of type #{old_type} in tree!")
- end
- end
- end
-
- # Cut the selected node and its subtree, and save it into the
- # clipboard.
- def cut_node(item)
- if current = selection.selected
- if current and current.type == 'Key'
- @clipboard_data = {
- current.content => Editor.model2data(current.first_child)
- }
- else
- @clipboard_data = Editor.model2data(current)
- end
- model.remove(current)
- window.change
- toplevel.display_status("Cut a node from tree.")
- end
- end
-
- # Copy the selected node and its subtree, and save it into the
- # clipboard.
- def copy_node(item)
- if current = selection.selected
- if current and current.type == 'Key'
- @clipboard_data = {
- current.content => Editor.model2data(current.first_child)
- }
- else
- @clipboard_data = Editor.model2data(current)
- end
- window.change
- toplevel.display_status("Copied a node from tree.")
- end
- end
-
- # Paste the data in the clipboard into the selected Array or Hash by
- # appending it.
- def paste_node_appending(item)
- if current = selection.selected
- if @clipboard_data
- case current.type
- when 'Array'
- Editor.data2model(@clipboard_data, model, current)
- expand_collapse(current)
- when 'Hash'
- if @clipboard_data.is_a? Hash
- parent = current.parent
- hash = Editor.model2data(current)
- model.remove(current)
- hash.update(@clipboard_data)
- Editor.data2model(hash, model, parent)
- if parent
- expand_collapse(parent)
- elsif @expanded
- expand_all
- end
- window.change
- else
- toplevel.display_status(
- "Cannot paste non-#{current.type} data into '#{current.type}'!")
- end
- else
- toplevel.display_status(
- "Cannot paste node below '#{current.type}'!")
- end
- else
- toplevel.display_status("Nothing to paste in clipboard!")
- end
- else
- toplevel.display_status("Append a node into the root first!")
- end
- end
-
- # Paste the data in the clipboard into the selected Array inserting it
- # before the selected element.
- def paste_node_inserting_before(item)
- if current = selection.selected
- if @clipboard_data
- parent = current.parent or return
- parent_type = parent.type
- if parent_type == 'Array'
- selected_index = parent.each_with_index do |c, i|
- break i if c == current
- end
- Editor.data2model(@clipboard_data, model, parent) do |m|
- m.insert_before(parent, current)
- end
- expand_collapse(current)
- toplevel.display_status("Inserted an element to " +
- "'#{parent_type}' before index #{selected_index}.")
- window.change
- else
- toplevel.display_status(
- "Cannot insert node below '#{parent_type}'!")
- end
- else
- toplevel.display_status("Nothing to paste in clipboard!")
- end
- else
- toplevel.display_status("Append a node into the root first!")
- end
- end
-
- # Append a new node to the selected Hash or Array.
- def append_new_node(item)
- if parent = selection.selected
- parent_type = parent.type
- case parent_type
- when 'Hash'
- key, type, content = ask_for_hash_pair(parent)
- key or return
- iter = create_node(parent, 'Key', key)
- iter = create_node(iter, type, content)
- toplevel.display_status(
- "Added a (key, value)-pair to '#{parent_type}'.")
- window.change
- when 'Array'
- type, content = ask_for_element(parent)
- type or return
- iter = create_node(parent, type, content)
- window.change
- toplevel.display_status("Appendend an element to '#{parent_type}'.")
- else
- toplevel.display_status("Cannot append to '#{parent_type}'!")
- end
- else
- type, content = ask_for_element
- type or return
- iter = create_node(nil, type, content)
- window.change
- end
- end
-
- # Insert a new node into an Array before the selected element.
- def insert_new_node(item)
- if current = selection.selected
- parent = current.parent or return
- parent_parent = parent.parent
- parent_type = parent.type
- if parent_type == 'Array'
- selected_index = parent.each_with_index do |c, i|
- break i if c == current
- end
- type, content = ask_for_element(parent)
- type or return
- iter = model.insert_before(parent, current)
- iter.type, iter.content = type, content
- toplevel.display_status("Inserted an element to " +
- "'#{parent_type}' before index #{selected_index}.")
- window.change
- else
- toplevel.display_status(
- "Cannot insert node below '#{parent_type}'!")
- end
- else
- toplevel.display_status("Append a node into the root first!")
- end
- end
-
- # Recursively collapse/expand a subtree starting from the selected node.
- def collapse_expand(item)
- if current = selection.selected
- if row_expanded?(current.path)
- collapse_row(current.path)
- else
- expand_row(current.path, true)
- end
- else
- toplevel.display_status("Append a node into the root first!")
- end
- end
-
- # Create the menu.
- def create
- add_item("Change node", ?n, &method(:change_node))
- add_separator
- add_item("Cut node", ?X, &method(:cut_node))
- add_item("Copy node", ?C, &method(:copy_node))
- add_item("Paste node (appending)", ?A, &method(:paste_node_appending))
- add_item("Paste node (inserting before)", ?I,
- &method(:paste_node_inserting_before))
- add_separator
- add_item("Append new node", ?a, &method(:append_new_node))
- add_item("Insert new node before", ?i, &method(:insert_new_node))
- add_separator
- add_item("Collapse/Expand node (recursively)", ?e,
- &method(:collapse_expand))
-
- menu.show_all
- signal_connect(:button_press_event) do |widget, event|
- if event.kind_of? Gdk::EventButton and event.button == 3
- menu.popup(nil, nil, event.button, event.time)
- end
- end
- signal_connect(:popup_menu) do
- menu.popup(nil, nil, 0, Gdk::Event::CURRENT_TIME)
- end
- end
- end
-
- # This class creates the File pulldown menu.
- class FileMenu
- include MenuExtension
-
- # Clear the model and filename, but ask to save the JSON document, if
- # unsaved changes have occured.
- def new(item)
- window.clear
- end
-
- # Open a file and load it into the editor. Ask to save the JSON document
- # first, if unsaved changes have occured.
- def open(item)
- window.file_open
- end
-
- def open_location(item)
- window.location_open
- end
-
- # Revert the current JSON document in the editor to the saved version.
- def revert(item)
- window.instance_eval do
- @filename and file_open(@filename)
- end
- end
-
- # Save the current JSON document.
- def save(item)
- window.file_save
- end
-
- # Save the current JSON document under the given filename.
- def save_as(item)
- window.file_save_as
- end
-
- # Quit the editor, after asking to save any unsaved changes first.
- def quit(item)
- window.quit
- end
-
- # Create the menu.
- def create
- title = MenuItem.new('File')
- title.submenu = menu
- add_item('New', &method(:new))
- add_item('Open', ?o, &method(:open))
- add_item('Open location', ?l, &method(:open_location))
- add_item('Revert', &method(:revert))
- add_separator
- add_item('Save', ?s, &method(:save))
- add_item('Save As', ?S, &method(:save_as))
- add_separator
- add_item('Quit', ?q, &method(:quit))
- title
- end
- end
-
- # This class creates the Edit pulldown menu.
- class EditMenu
- include MenuExtension
-
- # Copy data from model into primary clipboard.
- def copy(item)
- data = Editor.model2data(model.iter_first)
- json = JSON.pretty_generate(data, :max_nesting => false)
- c = Gtk::Clipboard.get(Gdk::Selection::PRIMARY)
- c.text = json
- end
-
- # Copy json text from primary clipboard into model.
- def paste(item)
- c = Gtk::Clipboard.get(Gdk::Selection::PRIMARY)
- if json = c.wait_for_text
- window.ask_save if @changed
- begin
- window.edit json
- rescue JSON::ParserError
- window.clear
- end
- end
- end
-
- # Find a string in all nodes' contents and select the found node in the
- # treeview.
- def find(item)
- @search = ask_for_find_term(@search) or return
- iter = model.get_iter('0') or return
- iter.recursive_each do |i|
- if @iter
- if @iter != i
- next
- else
- @iter = nil
- next
- end
- elsif @search.match(i[CONTENT_COL])
- set_cursor(i.path, nil, false)
- @iter = i
- break
- end
- end
- end
-
- # Repeat the last search given by #find.
- def find_again(item)
- @search or return
- iter = model.get_iter('0')
- iter.recursive_each do |i|
- if @iter
- if @iter != i
- next
- else
- @iter = nil
- next
- end
- elsif @search.match(i[CONTENT_COL])
- set_cursor(i.path, nil, false)
- @iter = i
- break
- end
- end
- end
-
- # Sort (Reverse sort) all elements of the selected array by the given
- # expression. _x_ is the element in question.
- def sort(item)
- if current = selection.selected
- if current.type == 'Array'
- parent = current.parent
- ary = Editor.model2data(current)
- order, reverse = ask_for_order
- order or return
- begin
- block = eval "lambda { |x| #{order} }"
- if reverse
- ary.sort! { |a,b| block[b] <=> block[a] }
- else
- ary.sort! { |a,b| block[a] <=> block[b] }
- end
- rescue => e
- Editor.error_dialog(self, "Failed to sort Array with #{order}: #{e}!")
- else
- Editor.data2model(ary, model, parent) do |m|
- m.insert_before(parent, current)
- end
- model.remove(current)
- expand_collapse(parent)
- window.change
- toplevel.display_status("Array has been sorted.")
- end
- else
- toplevel.display_status("Only Array nodes can be sorted!")
- end
- else
- toplevel.display_status("Select an Array to sort first!")
- end
- end
-
- # Create the menu.
- def create
- title = MenuItem.new('Edit')
- title.submenu = menu
- add_item('Copy', ?c, &method(:copy))
- add_item('Paste', ?v, &method(:paste))
- add_separator
- add_item('Find', ?f, &method(:find))
- add_item('Find Again', ?g, &method(:find_again))
- add_separator
- add_item('Sort', ?S, &method(:sort))
- title
- end
- end
-
- class OptionsMenu
- include MenuExtension
-
- # Collapse/Expand all nodes by default.
- def collapsed_nodes(item)
- if expanded
- self.expanded = false
- collapse_all
- else
- self.expanded = true
- expand_all
- end
- end
-
- # Toggle pretty saving mode on/off.
- def pretty_saving(item)
- @pretty_item.toggled
- window.change
- end
-
- attr_reader :pretty_item
-
- # Create the menu.
- def create
- title = MenuItem.new('Options')
- title.submenu = menu
- add_item('Collapsed nodes', nil, CheckMenuItem, &method(:collapsed_nodes))
- @pretty_item = add_item('Pretty saving', nil, CheckMenuItem,
- &method(:pretty_saving))
- @pretty_item.active = true
- window.unchange
- title
- end
- end
-
- # This class inherits from Gtk::TreeView, to configure it and to add a lot
- # of behaviour to it.
- class JSONTreeView < Gtk::TreeView
- include Gtk
-
- # Creates a JSONTreeView instance, the parameter _window_ is
- # a MainWindow instance and used for self delegation.
- def initialize(window)
- @window = window
- super(TreeStore.new(Gdk::Pixbuf, String, String))
- self.selection.mode = SELECTION_BROWSE
-
- @expanded = false
- self.headers_visible = false
- add_columns
- add_popup_menu
- end
-
- # Returns the MainWindow instance of this JSONTreeView.
- attr_reader :window
-
- # Returns true, if nodes are autoexpanding, false otherwise.
- attr_accessor :expanded
-
- private
-
- def add_columns
- cell = CellRendererPixbuf.new
- column = TreeViewColumn.new('Icon', cell,
- 'pixbuf' => ICON_COL
- )
- append_column(column)
-
- cell = CellRendererText.new
- column = TreeViewColumn.new('Type', cell,
- 'text' => TYPE_COL
- )
- append_column(column)
-
- cell = CellRendererText.new
- cell.editable = true
- column = TreeViewColumn.new('Content', cell,
- 'text' => CONTENT_COL
- )
- cell.signal_connect(:edited, &method(:cell_edited))
- append_column(column)
- end
-
- def unify_key(iter, key)
- return unless iter.type == 'Key'
- parent = iter.parent
- if parent.any? { |c| c != iter and c.content == key }
- old_key = key
- i = 0
- begin
- key = sprintf("%s.%d", old_key, i += 1)
- end while parent.any? { |c| c != iter and c.content == key }
- end
- iter.content = key
- end
-
- def cell_edited(cell, path, value)
- iter = model.get_iter(path)
- case iter.type
- when 'Key'
- unify_key(iter, value)
- toplevel.display_status('Key has been changed.')
- when 'FalseClass'
- value.downcase!
- if value == 'true'
- iter.type, iter.content = 'TrueClass', 'true'
- end
- when 'TrueClass'
- value.downcase!
- if value == 'false'
- iter.type, iter.content = 'FalseClass', 'false'
- end
- when 'Numeric'
- iter.content =
- if value == 'Infinity'
- value
- else
- (Integer(value) rescue Float(value) rescue 0).to_s
- end
- when 'String'
- iter.content = value
- when 'Hash', 'Array'
- return
- else
- fail "Unknown type found in model: #{iter.type}"
- end
- window.change
- end
-
- def configure_value(value, type)
- value.editable = false
- case type
- when 'Array', 'Hash'
- value.text = ''
- when 'TrueClass'
- value.text = 'true'
- when 'FalseClass'
- value.text = 'false'
- when 'NilClass'
- value.text = 'null'
- when 'Numeric', 'String'
- value.text ||= ''
- value.editable = true
- else
- raise ArgumentError, "unknown type '#{type}' encountered"
- end
- end
-
- def add_popup_menu
- menu = PopUpMenu.new(self)
- menu.create
- end
-
- public
-
- # Create a _type_ node with content _content_, and add it to _parent_
- # in the model. If _parent_ is nil, create a new model and put it into
- # the editor treeview.
- def create_node(parent, type, content)
- iter = if parent
- model.append(parent)
- else
- new_model = Editor.data2model(nil)
- toplevel.view_new_model(new_model)
- new_model.iter_first
- end
- iter.type, iter.content = type, content
- expand_collapse(parent) if parent
- iter
- end
-
- # Ask for a hash key, value pair to be added to the Hash node _parent_.
- def ask_for_hash_pair(parent)
- key_input = type_input = value_input = nil
-
- dialog = Dialog.new("New (key, value) pair for Hash", nil, nil,
- [ Stock::OK, Dialog::RESPONSE_ACCEPT ],
- [ Stock::CANCEL, Dialog::RESPONSE_REJECT ]
- )
- dialog.width_request = 640
-
- hbox = HBox.new(false, 5)
- hbox.pack_start(Label.new("Key:"), false)
- hbox.pack_start(key_input = Entry.new)
- key_input.text = @key || ''
- dialog.vbox.pack_start(hbox, false)
- key_input.signal_connect(:activate) do
- if parent.any? { |c| c.content == key_input.text }
- toplevel.display_status('Key already exists in Hash!')
- key_input.text = ''
- else
- toplevel.display_status('Key has been changed.')
- end
- end
-
- hbox = HBox.new(false, 5)
- hbox.pack_start(Label.new("Type:"), false)
- hbox.pack_start(type_input = ComboBox.new(true))
- ALL_TYPES.each { |t| type_input.append_text(t) }
- type_input.active = @type || 0
- dialog.vbox.pack_start(hbox, false)
-
- type_input.signal_connect(:changed) do
- value_input.editable = false
- case ALL_TYPES[type_input.active]
- when 'Array', 'Hash'
- value_input.text = ''
- when 'TrueClass'
- value_input.text = 'true'
- when 'FalseClass'
- value_input.text = 'false'
- when 'NilClass'
- value_input.text = 'null'
- else
- value_input.text = ''
- value_input.editable = true
- end
- end
-
- hbox = HBox.new(false, 5)
- hbox.pack_start(Label.new("Value:"), false)
- hbox.pack_start(value_input = Entry.new)
- value_input.width_chars = 60
- value_input.text = @value || ''
- dialog.vbox.pack_start(hbox, false)
-
- dialog.signal_connect(:'key-press-event', &DEFAULT_DIALOG_KEY_PRESS_HANDLER)
- dialog.show_all
- self.focus = dialog
- dialog.run do |response|
- if response == Dialog::RESPONSE_ACCEPT
- @key = key_input.text
- type = ALL_TYPES[@type = type_input.active]
- content = value_input.text
- return @key, type, content
- end
- end
- return
- ensure
- dialog.destroy
- end
-
- # Ask for an element to be appended _parent_.
- def ask_for_element(parent = nil, default_type = nil, value_text = @content)
- type_input = value_input = nil
-
- dialog = Dialog.new(
- "New element into #{parent ? parent.type : 'root'}",
- nil, nil,
- [ Stock::OK, Dialog::RESPONSE_ACCEPT ],
- [ Stock::CANCEL, Dialog::RESPONSE_REJECT ]
- )
- hbox = HBox.new(false, 5)
- hbox.pack_start(Label.new("Type:"), false)
- hbox.pack_start(type_input = ComboBox.new(true))
- default_active = 0
- types = parent ? ALL_TYPES : CONTAINER_TYPES
- types.each_with_index do |t, i|
- type_input.append_text(t)
- if t == default_type
- default_active = i
- end
- end
- type_input.active = default_active
- dialog.vbox.pack_start(hbox, false)
- type_input.signal_connect(:changed) do
- configure_value(value_input, types[type_input.active])
- end
-
- hbox = HBox.new(false, 5)
- hbox.pack_start(Label.new("Value:"), false)
- hbox.pack_start(value_input = Entry.new)
- value_input.width_chars = 60
- value_input.text = value_text if value_text
- configure_value(value_input, types[type_input.active])
-
- dialog.vbox.pack_start(hbox, false)
-
- dialog.signal_connect(:'key-press-event', &DEFAULT_DIALOG_KEY_PRESS_HANDLER)
- dialog.show_all
- self.focus = dialog
- dialog.run do |response|
- if response == Dialog::RESPONSE_ACCEPT
- type = types[type_input.active]
- @content = case type
- when 'Numeric'
- if (t = value_input.text) == 'Infinity'
- 1 / 0.0
- else
- Integer(t) rescue Float(t) rescue 0
- end
- else
- value_input.text
- end.to_s
- return type, @content
- end
- end
- return
- ensure
- dialog.destroy if dialog
- end
-
- # Ask for an order criteria for sorting, using _x_ for the element in
- # question. Returns the order criterium, and true/false for reverse
- # sorting.
- def ask_for_order
- dialog = Dialog.new(
- "Give an order criterium for 'x'.",
- nil, nil,
- [ Stock::OK, Dialog::RESPONSE_ACCEPT ],
- [ Stock::CANCEL, Dialog::RESPONSE_REJECT ]
- )
- hbox = HBox.new(false, 5)
-
- hbox.pack_start(Label.new("Order:"), false)
- hbox.pack_start(order_input = Entry.new)
- order_input.text = @order || 'x'
- order_input.width_chars = 60
-
- hbox.pack_start(reverse_checkbox = CheckButton.new('Reverse'), false)
-
- dialog.vbox.pack_start(hbox, false)
-
- dialog.signal_connect(:'key-press-event', &DEFAULT_DIALOG_KEY_PRESS_HANDLER)
- dialog.show_all
- self.focus = dialog
- dialog.run do |response|
- if response == Dialog::RESPONSE_ACCEPT
- return @order = order_input.text, reverse_checkbox.active?
- end
- end
- return
- ensure
- dialog.destroy if dialog
- end
-
- # Ask for a find term to search for in the tree. Returns the term as a
- # string.
- def ask_for_find_term(search = nil)
- dialog = Dialog.new(
- "Find a node matching regex in tree.",
- nil, nil,
- [ Stock::OK, Dialog::RESPONSE_ACCEPT ],
- [ Stock::CANCEL, Dialog::RESPONSE_REJECT ]
- )
- hbox = HBox.new(false, 5)
-
- hbox.pack_start(Label.new("Regex:"), false)
- hbox.pack_start(regex_input = Entry.new)
- hbox.pack_start(icase_checkbox = CheckButton.new('Icase'), false)
- regex_input.width_chars = 60
- if search
- regex_input.text = search.source
- icase_checkbox.active = search.casefold?
- end
-
- dialog.vbox.pack_start(hbox, false)
-
- dialog.signal_connect(:'key-press-event', &DEFAULT_DIALOG_KEY_PRESS_HANDLER)
- dialog.show_all
- self.focus = dialog
- dialog.run do |response|
- if response == Dialog::RESPONSE_ACCEPT
- begin
- return Regexp.new(regex_input.text, icase_checkbox.active? ? Regexp::IGNORECASE : 0)
- rescue => e
- Editor.error_dialog(self, "Evaluation of regex /#{regex_input.text}/ failed: #{e}!")
- return
- end
- end
- end
- return
- ensure
- dialog.destroy if dialog
- end
-
- # Expand or collapse row pointed to by _iter_ according
- # to the #expanded attribute.
- def expand_collapse(iter)
- if expanded
- expand_row(iter.path, true)
- else
- collapse_row(iter.path)
- end
- end
- end
-
- # The editor main window
- class MainWindow < Gtk::Window
- include Gtk
-
- def initialize(encoding)
- @changed = false
- @encoding = encoding
- super(TOPLEVEL)
- display_title
- set_default_size(800, 600)
- signal_connect(:delete_event) { quit }
-
- vbox = VBox.new(false, 0)
- add(vbox)
- #vbox.border_width = 0
-
- @treeview = JSONTreeView.new(self)
- @treeview.signal_connect(:'cursor-changed') do
- display_status('')
- end
-
- menu_bar = create_menu_bar
- vbox.pack_start(menu_bar, false, false, 0)
-
- sw = ScrolledWindow.new(nil, nil)
- sw.shadow_type = SHADOW_ETCHED_IN
- sw.set_policy(POLICY_AUTOMATIC, POLICY_AUTOMATIC)
- vbox.pack_start(sw, true, true, 0)
- sw.add(@treeview)
-
- @status_bar = Statusbar.new
- vbox.pack_start(@status_bar, false, false, 0)
-
- @filename ||= nil
- if @filename
- data = read_data(@filename)
- view_new_model Editor.data2model(data)
- end
-
- signal_connect(:button_release_event) do |_,event|
- if event.button == 2
- c = Gtk::Clipboard.get(Gdk::Selection::PRIMARY)
- if url = c.wait_for_text
- location_open url
- end
- false
- else
- true
- end
- end
- end
-
- # Creates the menu bar with the pulldown menus and returns it.
- def create_menu_bar
- menu_bar = MenuBar.new
- @file_menu = FileMenu.new(@treeview)
- menu_bar.append @file_menu.create
- @edit_menu = EditMenu.new(@treeview)
- menu_bar.append @edit_menu.create
- @options_menu = OptionsMenu.new(@treeview)
- menu_bar.append @options_menu.create
- menu_bar
- end
-
- # Sets editor status to changed, to indicate that the edited data
- # containts unsaved changes.
- def change
- @changed = true
- display_title
- end
-
- # Sets editor status to unchanged, to indicate that the edited data
- # doesn't containt unsaved changes.
- def unchange
- @changed = false
- display_title
- end
-
- # Puts a new model _model_ into the Gtk::TreeView to be edited.
- def view_new_model(model)
- @treeview.model = model
- @treeview.expanded = true
- @treeview.expand_all
- unchange
- end
-
- # Displays _text_ in the status bar.
- def display_status(text)
- @cid ||= nil
- @status_bar.pop(@cid) if @cid
- @cid = @status_bar.get_context_id('dummy')
- @status_bar.push(@cid, text)
- end
-
- # Opens a dialog, asking, if changes should be saved to a file.
- def ask_save
- if Editor.question_dialog(self,
- "Unsaved changes to JSON model. Save?")
- if @filename
- file_save
- else
- file_save_as
- end
- end
- end
-
- # Quit this editor, that is, leave this editor's main loop.
- def quit
- ask_save if @changed
- if Gtk.main_level > 0
- destroy
- Gtk.main_quit
- end
- nil
- end
-
- # Display the new title according to the editor's current state.
- def display_title
- title = TITLE.dup
- title << ": #@filename" if @filename
- title << " *" if @changed
- self.title = title
- end
-
- # Clear the current model, after asking to save all unsaved changes.
- def clear
- ask_save if @changed
- @filename = nil
- self.view_new_model nil
- end
-
- def check_pretty_printed(json)
- pretty = !!((nl_index = json.index("\n")) && nl_index != json.size - 1)
- @options_menu.pretty_item.active = pretty
- end
- private :check_pretty_printed
-
- # Open the data at the location _uri_, if given. Otherwise open a dialog
- # to ask for the _uri_.
- def location_open(uri = nil)
- uri = ask_for_location unless uri
- uri or return
- ask_save if @changed
- data = load_location(uri) or return
- view_new_model Editor.data2model(data)
- end
-
- # Open the file _filename_ or call the #select_file method to ask for a
- # filename.
- def file_open(filename = nil)
- filename = select_file('Open as a JSON file') unless filename
- data = load_file(filename) or return
- view_new_model Editor.data2model(data)
- end
-
- # Edit the string _json_ in the editor.
- def edit(json)
- if json.respond_to? :read
- json = json.read
- end
- data = parse_json json
- view_new_model Editor.data2model(data)
- end
-
- # Save the current file.
- def file_save
- if @filename
- store_file(@filename)
- else
- file_save_as
- end
- end
-
- # Save the current file as the filename
- def file_save_as
- filename = select_file('Save as a JSON file')
- store_file(filename)
- end
-
- # Store the current JSON document to _path_.
- def store_file(path)
- if path
- data = Editor.model2data(@treeview.model.iter_first)
- File.open(path + '.tmp', 'wb') do |output|
- data or break
- if @options_menu.pretty_item.active?
- output.puts JSON.pretty_generate(data, :max_nesting => false)
- else
- output.write JSON.generate(data, :max_nesting => false)
- end
- end
- File.rename path + '.tmp', path
- @filename = path
- toplevel.display_status("Saved data to '#@filename'.")
- unchange
- end
- rescue SystemCallError => e
- Editor.error_dialog(self, "Failed to store JSON file: #{e}!")
- end
-
- # Load the file named _filename_ into the editor as a JSON document.
- def load_file(filename)
- if filename
- if File.directory?(filename)
- Editor.error_dialog(self, "Try to select a JSON file!")
- nil
- else
- @filename = filename
- if data = read_data(filename)
- toplevel.display_status("Loaded data from '#@filename'.")
- end
- display_title
- data
- end
- end
- end
-
- # Load the data at location _uri_ into the editor as a JSON document.
- def load_location(uri)
- data = read_data(uri) or return
- @filename = nil
- toplevel.display_status("Loaded data from '#{uri}'.")
- display_title
- data
- end
-
- def parse_json(json)
- check_pretty_printed(json)
- if @encoding && !/^utf8$/i.match(@encoding)
- iconverter = Iconv.new('utf8', @encoding)
- json = iconverter.iconv(json)
- end
- JSON::parse(json, :max_nesting => false, :create_additions => false)
- end
- private :parse_json
-
- # Read a JSON document from the file named _filename_, parse it into a
- # ruby data structure, and return the data.
- def read_data(filename)
- open(filename) do |f|
- json = f.read
- return parse_json(json)
- end
- rescue => e
- Editor.error_dialog(self, "Failed to parse JSON file: #{e}!")
- return
- end
-
- # Open a file selecton dialog, displaying _message_, and return the
- # selected filename or nil, if no file was selected.
- def select_file(message)
- filename = nil
- fs = FileSelection.new(message)
- fs.set_modal(true)
- @default_dir = File.join(Dir.pwd, '') unless @default_dir
- fs.set_filename(@default_dir)
- fs.set_transient_for(self)
- fs.signal_connect(:destroy) { Gtk.main_quit }
- fs.ok_button.signal_connect(:clicked) do
- filename = fs.filename
- @default_dir = File.join(File.dirname(filename), '')
- fs.destroy
- Gtk.main_quit
- end
- fs.cancel_button.signal_connect(:clicked) do
- fs.destroy
- Gtk.main_quit
- end
- fs.show_all
- Gtk.main
- filename
- end
-
- # Ask for location URI a to load data from. Returns the URI as a string.
- def ask_for_location
- dialog = Dialog.new(
- "Load data from location...",
- nil, nil,
- [ Stock::OK, Dialog::RESPONSE_ACCEPT ],
- [ Stock::CANCEL, Dialog::RESPONSE_REJECT ]
- )
- hbox = HBox.new(false, 5)
-
- hbox.pack_start(Label.new("Location:"), false)
- hbox.pack_start(location_input = Entry.new)
- location_input.width_chars = 60
- location_input.text = @location || ''
-
- dialog.vbox.pack_start(hbox, false)
-
- dialog.signal_connect(:'key-press-event', &DEFAULT_DIALOG_KEY_PRESS_HANDLER)
- dialog.show_all
- dialog.run do |response|
- if response == Dialog::RESPONSE_ACCEPT
- return @location = location_input.text
- end
- end
- return
- ensure
- dialog.destroy if dialog
- end
- end
-
- class << self
- # Starts a JSON Editor. If a block was given, it yields
- # to the JSON::Editor::MainWindow instance.
- def start(encoding = 'utf8') # :yield: window
- Gtk.init
- @window = Editor::MainWindow.new(encoding)
- @window.icon_list = [ Editor.fetch_icon('json') ]
- yield @window if block_given?
- @window.show_all
- Gtk.main
- end
-
- # Edit the string _json_ with encoding _encoding_ in the editor.
- def edit(json, encoding = 'utf8')
- start(encoding) do |window|
- window.edit json
- end
- end
-
- attr_reader :window
- end
- end
-end
diff --git a/ext/json/lib/json/ext.rb b/ext/json/lib/json/ext.rb
index 719e56025c..7264a857fa 100644
--- a/ext/json/lib/json/ext.rb
+++ b/ext/json/lib/json/ext.rb
@@ -6,10 +6,10 @@ module JSON
module Ext
require 'json/ext/parser'
require 'json/ext/generator'
- $DEBUG and warn "Using c extension for JSON."
+ $DEBUG and warn "Using Ext extension for JSON."
JSON.parser = Parser
JSON.generator = Generator
end
- JSON_LOADED = true
+ JSON_LOADED = true unless defined?(::JSON::JSON_LOADED)
end
diff --git a/ext/json/lib/json/json.xpm b/ext/json/lib/json/json.xpm
deleted file mode 100644
index 2cb626bb05..0000000000
--- a/ext/json/lib/json/json.xpm
+++ /dev/null
@@ -1,1499 +0,0 @@
-/* XPM */
-static char * json_xpm[] = {
-"64 64 1432 2",
-" c None",
-". c #641839",
-"+ c #CF163C",
-"@ c #D31C3B",
-"# c #E11A38",
-"$ c #5F242D",
-"% c #320C22",
-"& c #9B532D",
-"* c #F32E34",
-"= c #820F33",
-"- c #4B0F34",
-"; c #8E1237",
-"> c #944029",
-", c #961325",
-"' c #A00C24",
-") c #872C23",
-"! c #694021",
-"~ c #590D1F",
-"{ c #420528",
-"] c #D85A2D",
-"^ c #7E092B",
-"/ c #0E0925",
-"( c #0D081F",
-"_ c #0F081E",
-": c #12071F",
-"< c #360620",
-"[ c #682A21",
-"} c #673F21",
-"| c #780E21",
-"1 c #A82320",
-"2 c #8D1D1F",
-"3 c #970127",
-"4 c #0D0123",
-"5 c #0D0324",
-"6 c #3B1E28",
-"7 c #C28429",
-"8 c #0C0523",
-"9 c #0C041E",
-"0 c #0E031A",
-"a c #11031A",
-"b c #13031B",
-"c c #13031C",
-"d c #11031D",
-"e c #19051E",
-"f c #390E20",
-"g c #9C0C20",
-"h c #C00721",
-"i c #980320",
-"j c #14031E",
-"k c #CD9F32",
-"l c #C29F2E",
-"m c #0F0325",
-"n c #0D0321",
-"o c #0E0324",
-"p c #D08329",
-"q c #9D1B27",
-"r c #1C0320",
-"s c #0D011A",
-"t c #120117",
-"u c #130017",
-"v c #150018",
-"w c #160119",
-"x c #17021A",
-"y c #15021B",
-"z c #11021E",
-"A c #0F021F",
-"B c #8C1821",
-"C c #CF4522",
-"D c #831821",
-"E c #BA7033",
-"F c #EDB339",
-"G c #C89733",
-"H c #280727",
-"I c #0F051F",
-"J c #0E0420",
-"K c #591F27",
-"L c #E47129",
-"M c #612224",
-"N c #0C021D",
-"O c #120018",
-"P c #140017",
-"Q c #170017",
-"R c #190018",
-"S c #1B0019",
-"T c #1B011A",
-"U c #18011B",
-"V c #15011C",
-"W c #12031E",
-"X c #460A21",
-"Y c #A13823",
-"Z c #784323",
-"` c #5A0C21",
-" . c #BC4530",
-".. c #EB5B38",
-"+. c #CE4E3B",
-"@. c #DD9334",
-"#. c #751A27",
-"$. c #11071E",
-"%. c #0F041C",
-"&. c #1E0824",
-"*. c #955A28",
-"=. c #9A5027",
-"-. c #1E0321",
-";. c #11011A",
-">. c #140018",
-",. c #180018",
-"'. c #1F001A",
-"). c #20001B",
-"!. c #1E001A",
-"~. c #1B001A",
-"{. c #16021B",
-"]. c #16041E",
-"^. c #220622",
-"/. c #5F3525",
-"(. c #DE5724",
-"_. c #611021",
-":. c #0F0925",
-"<. c #D1892E",
-"[. c #F27036",
-"}. c #EC633B",
-"|. c #DA293C",
-"1. c #E64833",
-"2. c #912226",
-"3. c #11081C",
-"4. c #110419",
-"5. c #0F041E",
-"6. c #451425",
-"7. c #BF6F28",
-"8. c #332225",
-"9. c #0E021E",
-"0. c #13001B",
-"a. c #17001A",
-"b. c #1C001B",
-"c. c #21001C",
-"d. c #23001C",
-"e. c #21001B",
-"f. c #19021A",
-"g. c #17041E",
-"h. c #150721",
-"i. c #602424",
-"j. c #D51223",
-"k. c #540820",
-"l. c #D04D2D",
-"m. c #EA8933",
-"n. c #875637",
-"o. c #88543A",
-"p. c #E5923A",
-"q. c #891931",
-"r. c #130B25",
-"s. c #10051B",
-"t. c #110217",
-"u. c #12021A",
-"v. c #761826",
-"w. c #E2A728",
-"x. c #300224",
-"y. c #10011E",
-"z. c #16001B",
-"A. c #1B001B",
-"B. c #21001A",
-"C. c #1E0019",
-"D. c #1D0019",
-"E. c #1A011A",
-"F. c #17031C",
-"G. c #120720",
-"H. c #4E0822",
-"I. c #670721",
-"J. c #C07630",
-"K. c #F59734",
-"L. c #BE1B35",
-"M. c #0E1435",
-"N. c #522037",
-"O. c #DB8039",
-"P. c #D45933",
-"Q. c #420927",
-"R. c #0F041D",
-"S. c #140118",
-"T. c #13021D",
-"U. c #100423",
-"V. c #7B6227",
-"W. c #C04326",
-"X. c #0E0020",
-"Y. c #13001D",
-"Z. c #18001B",
-"`. c #1E001B",
-" + c #22001C",
-".+ c #22001B",
-"++ c #1B011B",
-"@+ c #16041D",
-"#+ c #130520",
-"$+ c #860521",
-"%+ c #710520",
-"&+ c #670A2A",
-"*+ c #A66431",
-"=+ c #E97536",
-"-+ c #F8833A",
-";+ c #F77A3A",
-">+ c #C45337",
-",+ c #0A1C35",
-"'+ c #993638",
-")+ c #F7863B",
-"!+ c #F49736",
-"~+ c #94462B",
-"{+ c #0E031F",
-"]+ c #130119",
-"^+ c #160018",
-"/+ c #16011B",
-"(+ c #15021F",
-"_+ c #120123",
-":+ c #A65C28",
-"<+ c #5C4D23",
-"[+ c #0F001F",
-"}+ c #14001D",
-"|+ c #1A001B",
-"1+ c #1F001B",
-"2+ c #24001D",
-"3+ c #25001D",
-"4+ c #24001C",
-"5+ c #1F001C",
-"6+ c #1A011C",
-"7+ c #16021E",
-"8+ c #3F0421",
-"9+ c #BC0522",
-"0+ c #1C041E",
-"a+ c #7F5531",
-"b+ c #E68A38",
-"c+ c #F8933E",
-"d+ c #FA7942",
-"e+ c #FB7543",
-"f+ c #FA6F41",
-"g+ c #F1793D",
-"h+ c #7D3B3A",
-"i+ c #28263B",
-"j+ c #D45441",
-"k+ c #F8A238",
-"l+ c #996B2D",
-"m+ c #0E0421",
-"n+ c #12011A",
-"o+ c #180019",
-"p+ c #17001C",
-"q+ c #12001F",
-"r+ c #4C2B2A",
-"s+ c #DB8130",
-"t+ c #540023",
-"u+ c #0F0120",
-"v+ c #16011C",
-"w+ c #22001D",
-"x+ c #25001F",
-"y+ c #26001F",
-"z+ c #25001E",
-"A+ c #24001E",
-"B+ c #1D001C",
-"C+ c #18011D",
-"D+ c #16031F",
-"E+ c #3C0522",
-"F+ c #9B0821",
-"G+ c #13041E",
-"H+ c #F6462E",
-"I+ c #E6AB37",
-"J+ c #E7A03E",
-"K+ c #FA9F44",
-"L+ c #FB8A48",
-"M+ c #FD7A4A",
-"N+ c #FD794A",
-"O+ c #FD7748",
-"P+ c #FD7E45",
-"Q+ c #FD8343",
-"R+ c #FB5D42",
-"S+ c #6E3A40",
-"T+ c #EE8A37",
-"U+ c #7E252B",
-"V+ c #100520",
-"W+ c #13011A",
-"X+ c #170019",
-"Y+ c #15001C",
-"Z+ c #0F0020",
-"`+ c #564427",
-" @ c #E0BA29",
-".@ c #5E2B25",
-"+@ c #10011F",
-"@@ c #17011C",
-"#@ c #1E001D",
-"$@ c #23001F",
-"%@ c #250020",
-"&@ c #24001F",
-"*@ c #23001E",
-"=@ c #21001E",
-"-@ c #1B001C",
-";@ c #17021D",
-">@ c #14041E",
-",@ c #AC0B25",
-"'@ c #5E1420",
-")@ c #F28635",
-"!@ c #C2733E",
-"~@ c #984C44",
-"{@ c #EA9148",
-"]@ c #FB844B",
-"^@ c #FD7E4C",
-"/@ c #FE7E4C",
-"(@ c #FE7E4B",
-"_@ c #FE7749",
-":@ c #FD7148",
-"<@ c #FB7D46",
-"[@ c #F89641",
-"}@ c #B95634",
-"|@ c #0D0927",
-"1@ c #11041D",
-"2@ c #150119",
-"3@ c #180017",
-"4@ c #16001A",
-"5@ c #13001E",
-"6@ c #110023",
-"7@ c #944C29",
-"8@ c #EE6229",
-"9@ c #3D0324",
-"0@ c #12021F",
-"a@ c #19011D",
-"b@ c #21001F",
-"c@ c #22001F",
-"d@ c #20001E",
-"e@ c #1F001D",
-"f@ c #1C001C",
-"g@ c #19011C",
-"h@ c #3D1621",
-"i@ c #B53622",
-"j@ c #31061F",
-"k@ c #841D34",
-"l@ c #F2703F",
-"m@ c #C14445",
-"n@ c #E67349",
-"o@ c #FB8E4B",
-"p@ c #FD834C",
-"q@ c #FE834D",
-"r@ c #FE834C",
-"s@ c #FE804C",
-"t@ c #FD814B",
-"u@ c #FB7D49",
-"v@ c #F79B43",
-"w@ c #AF1234",
-"x@ c #0D0625",
-"y@ c #13021C",
-"z@ c #1A0019",
-"A@ c #190019",
-"B@ c #410225",
-"C@ c #D39729",
-"D@ c #AA5927",
-"E@ c #0E0422",
-"F@ c #15021E",
-"G@ c #1A011D",
-"H@ c #1D001D",
-"I@ c #15031D",
-"J@ c #240820",
-"K@ c #A01023",
-"L@ c #670B21",
-"M@ c #3D0D33",
-"N@ c #E63C3E",
-"O@ c #EF7C45",
-"P@ c #F59048",
-"Q@ c #FB944A",
-"R@ c #FD904A",
-"S@ c #FE8E4B",
-"T@ c #FE854A",
-"U@ c #FE854B",
-"V@ c #FE884C",
-"W@ c #FC954B",
-"X@ c #F8AB45",
-"Y@ c #C37A35",
-"Z@ c #0D0425",
-"`@ c #13011B",
-" # c #170018",
-".# c #1A0018",
-"+# c #1C0019",
-"@# c #15001B",
-"## c #100120",
-"$# c #311F25",
-"%# c #E68E28",
-"&# c #7A1425",
-"*# c #130321",
-"=# c #17011E",
-"-# c #1A001D",
-";# c #19001B",
-"># c #16021C",
-",# c #130521",
-"'# c #6F3123",
-")# c #6D3022",
-"!# c #C89433",
-"~# c #EA7E3E",
-"{# c #DB2943",
-"]# c #EF7745",
-"^# c #FB8544",
-"/# c #FD9A43",
-"(# c #FE9941",
-"_# c #FE9D43",
-":# c #FEA548",
-"<# c #FEAE49",
-"[# c #FCB944",
-"}# c #CA9F35",
-"|# c #0E0225",
-"1# c #11001B",
-"2# c #160019",
-"3# c #12011B",
-"4# c #0F0220",
-"5# c #351D26",
-"6# c #D85B28",
-"7# c #6C0F26",
-"8# c #190121",
-"9# c #1B001E",
-"0# c #1A001C",
-"a# c #1D001B",
-"b# c #130220",
-"c# c #703A23",
-"d# c #713A23",
-"e# c #140327",
-"f# c #411B36",
-"g# c #C8713E",
-"h# c #7A3A3F",
-"i# c #CE2C3C",
-"j# c #E77338",
-"k# c #9C6535",
-"l# c #9C6233",
-"m# c #9C6332",
-"n# c #9C6A35",
-"o# c #C37D3C",
-"p# c #FEAC41",
-"q# c #FEC23E",
-"r# c #826330",
-"s# c #100122",
-"t# c #120019",
-"u# c #150017",
-"v# c #190017",
-"w# c #1B0018",
-"x# c #12001A",
-"y# c #10021F",
-"z# c #1A0326",
-"A# c #5F292A",
-"B# c #7B4E29",
-"C# c #3C0E25",
-"D# c #1A0020",
-"E# c #14021F",
-"F# c #723B23",
-"G# c #14001A",
-"H# c #58042A",
-"I# c #A28337",
-"J# c #C8813B",
-"K# c #B14B38",
-"L# c #761231",
-"M# c #5A132A",
-"N# c #0D0726",
-"O# c #0C0623",
-"P# c #0B0723",
-"Q# c #0B0A26",
-"R# c #321C2D",
-"S# c #C45B33",
-"T# c #FEBB33",
-"U# c #13052A",
-"V# c #13011F",
-"W# c #160017",
-"X# c #15001A",
-"Y# c #12001D",
-"Z# c #94062A",
-"`# c #630D2C",
-" $ c #85292B",
-".$ c #AA5E29",
-"+$ c #1F0123",
-"@$ c #19011F",
-"#$ c #1E001C",
-"$$ c #15031F",
-"%$ c #712122",
-"&$ c #712223",
-"*$ c #14011B",
-"=$ c #110321",
-"-$ c #AF0C2B",
-";$ c #E7D534",
-">$ c #EAC934",
-",$ c #84582D",
-"'$ c #1B0824",
-")$ c #11041E",
-"!$ c #10021B",
-"~$ c #100119",
-"{$ c #100218",
-"]$ c #0F041A",
-"^$ c #0E0720",
-"/$ c #2C1026",
-"($ c #D8A328",
-"_$ c #140322",
-":$ c #160016",
-"<$ c #14001F",
-"[$ c #120024",
-"}$ c #100128",
-"|$ c #3C032F",
-"1$ c #2C062E",
-"2$ c #29022B",
-"3$ c #A31D29",
-"4$ c #976A25",
-"5$ c #1A0321",
-"6$ c #17031E",
-"7$ c #1B021D",
-"8$ c #20001C",
-"9$ c #14041F",
-"0$ c #703422",
-"a$ c #6F3522",
-"b$ c #8D0328",
-"c$ c #920329",
-"d$ c #0F0326",
-"e$ c #100321",
-"f$ c #11021B",
-"g$ c #130117",
-"h$ c #140016",
-"i$ c #150015",
-"j$ c #140015",
-"k$ c #130116",
-"l$ c #120219",
-"m$ c #11031C",
-"n$ c #12031D",
-"o$ c #170016",
-"p$ c #160020",
-"q$ c #250029",
-"r$ c #670033",
-"s$ c #DCA238",
-"t$ c #F5C736",
-"u$ c #9A732E",
-"v$ c #110227",
-"w$ c #110324",
-"x$ c #811924",
-"y$ c #A04323",
-"z$ c #250721",
-"A$ c #1A041F",
-"B$ c #1E011D",
-"C$ c #1C011C",
-"D$ c #18031D",
-"E$ c #130721",
-"F$ c #6F3623",
-"G$ c #6B3622",
-"H$ c #1A001A",
-"I$ c #14011F",
-"J$ c #12011E",
-"K$ c #11011C",
-"L$ c #140117",
-"M$ c #170015",
-"N$ c #150016",
-"O$ c #120119",
-"P$ c #11011B",
-"Q$ c #11001A",
-"R$ c #130018",
-"S$ c #170118",
-"T$ c #170119",
-"U$ c #18021E",
-"V$ c #1A0126",
-"W$ c #6F2332",
-"X$ c #E5563B",
-"Y$ c #F1B83F",
-"Z$ c #F6CC38",
-"`$ c #9D7A2D",
-" % c #130123",
-".% c #130320",
-"+% c #2A0721",
-"@% c #B00E24",
-"#% c #7D0B23",
-"$% c #1F0522",
-"%% c #1E0220",
-"&% c #1D011E",
-"*% c #1A031E",
-"=% c #15051F",
-"-% c #241322",
-";% c #A32F23",
-">% c #670E21",
-",% c #1C001A",
-"'% c #19001A",
-")% c #180016",
-"!% c #160118",
-"~% c #140219",
-"{% c #11021C",
-"]% c #10021E",
-"^% c #0F011D",
-"/% c #170117",
-"(% c #160219",
-"_% c #17041D",
-":% c #190523",
-"<% c #8C042E",
-"[% c #B65838",
-"}% c #E9D73F",
-"|% c #EED43E",
-"1% c #D85538",
-"2% c #493129",
-"3% c #130120",
-"4% c #15021D",
-"5% c #330822",
-"6% c #8A0825",
-"7% c #3C0424",
-"8% c #1E0322",
-"9% c #1C0321",
-"0% c #180421",
-"a% c #130822",
-"b% c #AF2D24",
-"c% c #BC5623",
-"d% c #2F071F",
-"e% c #1A041C",
-"f% c #1C031C",
-"g% c #1D011C",
-"h% c #160117",
-"i% c #150419",
-"j% c #12081D",
-"k% c #0F0923",
-"l% c #A77027",
-"m% c #A60525",
-"n% c #11021A",
-"o% c #130218",
-"p% c #150319",
-"q% c #16061D",
-"r% c #180923",
-"s% c #9C1D2B",
-"t% c #A32636",
-"u% c #A66E3B",
-"v% c #4B2E3C",
-"w% c #412C36",
-"x% c #36012D",
-"y% c #140123",
-"z% c #17001E",
-"A% c #19011B",
-"B% c #1A0421",
-"C% c #340425",
-"D% c #9E0326",
-"E% c #1F0424",
-"F% c #1C0524",
-"G% c #180724",
-"H% c #A91024",
-"I% c #D55D24",
-"J% c #90071E",
-"K% c #3C051D",
-"L% c #1C021C",
-"M% c #1C011A",
-"N% c #1D001A",
-"O% c #160116",
-"P% c #150216",
-"Q% c #140217",
-"R% c #140618",
-"S% c #120D1D",
-"T% c #231925",
-"U% c #B16A2E",
-"V% c #FDAC34",
-"W% c #D58631",
-"X% c #280E2A",
-"Y% c #0D0A23",
-"Z% c #0F0920",
-"`% c #120C21",
-" & c #1F1026",
-".& c #A3352E",
-"+& c #EE9F36",
-"@& c #5D2A3C",
-"#& c #960D3C",
-"$& c #970638",
-"%& c #A00330",
-"&& c #4D0126",
-"*& c #1C001F",
-"=& c #280120",
-"-& c #290223",
-";& c #1F0425",
-">& c #260726",
-",& c #340A26",
-"'& c #850925",
-")& c #3A0823",
-"!& c #82071D",
-"~& c #5E071D",
-"{& c #18051C",
-"]& c #18021A",
-"^& c #190118",
-"/& c #160217",
-"(& c #150418",
-"_& c #130618",
-":& c #110718",
-"<& c #10081A",
-"[& c #110D1D",
-"}& c #291C24",
-"|& c #A73B2D",
-"1& c #FD6B36",
-"2& c #FD853C",
-"3& c #FD863B",
-"4& c #C24A35",
-"5& c #6B442F",
-"6& c #6D302D",
-"7& c #6E252E",
-"8& c #8E3B32",
-"9& c #DE7739",
-"0& c #F48E3F",
-"a& c #DD8D41",
-"b& c #854F3D",
-"c& c #7E2D35",
-"d& c #33082B",
-"e& c #1C0222",
-"f& c #20001F",
-"g& c #1F0222",
-"h& c #1A0524",
-"i& c #440C27",
-"j& c #BC1427",
-"k& c #20041B",
-"l& c #53061C",
-"m& c #25071B",
-"n& c #11061A",
-"o& c #130418",
-"p& c #140317",
-"q& c #150217",
-"r& c #160318",
-"s& c #12051B",
-"t& c #100C1D",
-"u& c #0E101E",
-"v& c #0C121F",
-"w& c #0C1321",
-"x& c #781725",
-"y& c #B25D2C",
-"z& c #FA6335",
-"A& c #FD633C",
-"B& c #FE6D42",
-"C& c #FE7C42",
-"D& c #FE813F",
-"E& c #FE873C",
-"F& c #FD743B",
-"G& c #FB683B",
-"H& c #FA7A3E",
-"I& c #F98242",
-"J& c #F97844",
-"K& c #F98943",
-"L& c #F79C3D",
-"M& c #A25133",
-"N& c #280B28",
-"O& c #1D021F",
-"P& c #1F011C",
-"Q& c #280321",
-"R& c #1C0724",
-"S& c #3F1C27",
-"T& c #D33C27",
-"U& c #0E061B",
-"V& c #0C091C",
-"W& c #0C0A1B",
-"X& c #0E091A",
-"Y& c #11081B",
-"Z& c #100A20",
-"`& c #0E0D23",
-" * c #551227",
-".* c #B21829",
-"+* c #C42329",
-"@* c #C62C29",
-"#* c #C55429",
-"$* c #E76F2B",
-"%* c #F14232",
-"&* c #F95E3A",
-"** c #FC6740",
-"=* c #FE6E45",
-"-* c #FE7246",
-";* c #FE7545",
-">* c #FE7744",
-",* c #FD7745",
-"'* c #FD7845",
-")* c #FD7847",
-"!* c #FD7948",
-"~* c #FD7B44",
-"{* c #FC7C3B",
-"]* c #6F3130",
-"^* c #140B24",
-"/* c #19031D",
-"(* c #1C011B",
-"_* c #5A011F",
-":* c #B70421",
-"<* c #380824",
-"[* c #3E2626",
-"}* c #9F5626",
-"|* c #13051E",
-"1* c #360A21",
-"2* c #361223",
-"3* c #371724",
-"4* c #381824",
-"5* c #3B1524",
-"6* c #3E1E26",
-"7* c #471A29",
-"8* c #DB252E",
-"9* c #ED2733",
-"0* c #EE5436",
-"a* c #F04237",
-"b* c #F33934",
-"c* c #F53D2F",
-"d* c #D7312B",
-"e* c #AF212B",
-"f* c #3A2C31",
-"g* c #F65F39",
-"h* c #FB6F41",
-"i* c #FD6D45",
-"j* c #FE7047",
-"k* c #FE7647",
-"l* c #FE7847",
-"m* c #FE7848",
-"n* c #FE7748",
-"o* c #FE7948",
-"p* c #FE7C48",
-"q* c #FE7C47",
-"r* c #FE7642",
-"s* c #FE7439",
-"t* c #6D332C",
-"u* c #100B21",
-"v* c #16031B",
-"w* c #2B001B",
-"x* c #22011F",
-"y* c #220521",
-"z* c #1B0A23",
-"A* c #421425",
-"B* c #951924",
-"C* c #381023",
-"D* c #E94028",
-"E* c #E7302B",
-"F* c #EF432D",
-"G* c #F4302E",
-"H* c #F32C30",
-"I* c #CB4432",
-"J* c #DD3235",
-"K* c #EF4B3A",
-"L* c #F0333E",
-"M* c #CC3D3F",
-"N* c #E4313C",
-"O* c #F34834",
-"P* c #D13E2C",
-"Q* c #431825",
-"R* c #0E1424",
-"S* c #3C202C",
-"T* c #F15537",
-"U* c #F97140",
-"V* c #FC6E45",
-"W* c #FE7547",
-"X* c #FE7947",
-"Y* c #FE7B48",
-"Z* c #FE7D48",
-"`* c #FE8047",
-" = c #FE7A42",
-".= c #FE7A38",
-"+= c #6D442B",
-"@= c #0F0B21",
-"#= c #15031A",
-"$= c #49001B",
-"%= c #2F001C",
-"&= c #21021E",
-"*= c #220620",
-"== c #1B0D23",
-"-= c #641625",
-";= c #951823",
-">= c #390F25",
-",= c #AC3A2A",
-"'= c #B6492E",
-")= c #ED7531",
-"!= c #F45A34",
-"~= c #F54C36",
-"{= c #C72D39",
-"]= c #DE283C",
-"^= c #F33B40",
-"/= c #F34142",
-"(= c #D0393F",
-"_= c #E72E39",
-":= c #DB3C2E",
-"<= c #461724",
-"[= c #0F0D1E",
-"}= c #140B1E",
-"|= c #341427",
-"1= c #CB4834",
-"2= c #F7743F",
-"3= c #FB7145",
-"4= c #FE7747",
-"5= c #FE7A47",
-"6= c #FF7B48",
-"7= c #FF7C48",
-"8= c #FE7F47",
-"9= c #FE8247",
-"0= c #FE8642",
-"a= c #FE8439",
-"b= c #6D442D",
-"c= c #0F0A21",
-"d= c #14031A",
-"e= c #20031D",
-"f= c #210821",
-"g= c #191024",
-"h= c #CC1C25",
-"i= c #961423",
-"j= c #2C162C",
-"k= c #BD242E",
-"l= c #EF2C31",
-"m= c #F54C34",
-"n= c #F34037",
-"o= c #F5353A",
-"p= c #F7413D",
-"q= c #F8423D",
-"r= c #F93A39",
-"s= c #F95731",
-"t= c #341425",
-"u= c #110A1D",
-"v= c #140619",
-"w= c #18051B",
-"x= c #200F26",
-"y= c #864833",
-"z= c #F8773F",
-"A= c #FC7445",
-"B= c #FF7E48",
-"C= c #FF7E49",
-"D= c #FF7D49",
-"E= c #FF7D48",
-"F= c #FE8347",
-"G= c #FE8743",
-"H= c #FE893B",
-"I= c #6E452F",
-"J= c #100E23",
-"K= c #14041A",
-"L= c #55041D",
-"M= c #540921",
-"N= c #161124",
-"O= c #CE6A25",
-"P= c #3F1129",
-"Q= c #170A29",
-"R= c #0F0F29",
-"S= c #15132B",
-"T= c #1E182D",
-"U= c #A82B3D",
-"V= c #CB6633",
-"W= c #CC6932",
-"X= c #CC3D2D",
-"Y= c #331225",
-"Z= c #0F091C",
-"`= c #120417",
-" - c #160216",
-".- c #190419",
-"+- c #210F26",
-"@- c #8C4934",
-"#- c #F97A40",
-"$- c #FC7545",
-"%- c #FF7B49",
-"&- c #FE7D46",
-"*- c #FE7E43",
-"=- c #FD7B3E",
-"-- c #FA6934",
-";- c #532328",
-">- c #130B1D",
-",- c #150519",
-"'- c #14041C",
-")- c #120920",
-"!- c #C43624",
-"~- c #A21E23",
-"{- c #F87C30",
-"]- c #C9302D",
-"^- c #300F2A",
-"/- c #591129",
-"(- c #171328",
-"_- c #171628",
-":- c #141829",
-"<- c #101A2B",
-"[- c #0F172B",
-"}- c #0F1226",
-"|- c #0E0C20",
-"1- c #100619",
-"2- c #140316",
-"3- c #19051B",
-"4- c #3C1428",
-"5- c #E04B36",
-"6- c #FA7B41",
-"7- c #FD7346",
-"8- c #FE7548",
-"9- c #FF7849",
-"0- c #FF7749",
-"a- c #FE7B47",
-"b- c #FE7945",
-"c- c #FC7740",
-"d- c #FA7E39",
-"e- c #C1432F",
-"f- c #131523",
-"g- c #130A1C",
-"h- c #420621",
-"i- c #D08423",
-"j- c #F87739",
-"k- c #C03D37",
-"l- c #962B34",
-"m- c #A14332",
-"n- c #E54B30",
-"o- c #9E3E2F",
-"p- c #7F262E",
-"q- c #922D2E",
-"r- c #9C4B2E",
-"s- c #65212C",
-"t- c #101628",
-"u- c #101022",
-"v- c #11091C",
-"w- c #130619",
-"x- c #160A1E",
-"y- c #43252C",
-"z- c #F66439",
-"A- c #FA6942",
-"B- c #FD6C47",
-"C- c #FE6E48",
-"D- c #FE6F48",
-"E- c #FE7049",
-"F- c #FE714A",
-"G- c #FE744A",
-"H- c #FE7846",
-"I- c #FD7243",
-"J- c #FC703E",
-"K- c #FA6C37",
-"L- c #81312B",
-"M- c #121123",
-"N- c #15071D",
-"O- c #16031A",
-"P- c #17021B",
-"Q- c #8F3D22",
-"R- c #F8393E",
-"S- c #E42A3D",
-"T- c #E7473B",
-"U- c #FB503B",
-"V- c #FB4F3A",
-"W- c #F95439",
-"X- c #ED4C38",
-"Y- c #F45938",
-"Z- c #FB6537",
-"`- c #EA5236",
-" ; c #CE6232",
-".; c #CD392C",
-"+; c #181425",
-"@; c #120F21",
-"#; c #130D20",
-"$; c #151225",
-"%; c #903431",
-"&; c #F8703D",
-"*; c #FB6344",
-"=; c #FD6748",
-"-; c #FE6849",
-";; c #FE6949",
-">; c #FE6A49",
-",; c #FE6C4A",
-"'; c #FE704A",
-"); c #FE734A",
-"!; c #FE7449",
-"~; c #FE7347",
-"{; c #FE7145",
-"]; c #FD6C42",
-"^; c #FD753D",
-"/; c #F36E35",
-"(; c #CB452C",
-"_; c #600D24",
-":; c #1C061F",
-"<; c #1E031F",
-"[; c #5B3821",
-"}; c #CE9822",
-"|; c #FA4341",
-"1; c #FB4341",
-"2; c #FC4541",
-"3; c #FC4542",
-"4; c #FC4143",
-"5; c #FC4D42",
-"6; c #FB5042",
-"7; c #FB5342",
-"8; c #FC5242",
-"9; c #FD4F40",
-"0; c #FD503E",
-"a; c #FB6339",
-"b; c #F45E33",
-"c; c #A12A2E",
-"d; c #401E2C",
-"e; c #452D2F",
-"f; c #F74F38",
-"g; c #FA5940",
-"h; c #FC6245",
-"i; c #FE6447",
-"j; c #FE6449",
-"k; c #FE6549",
-"l; c #FE6749",
-"m; c #FE6B49",
-"n; c #FE6D49",
-"o; c #FE6D48",
-"p; c #FE6D47",
-"q; c #FE6D45",
-"r; c #FE6C44",
-"s; c #FE6A42",
-"t; c #FE663C",
-"u; c #FC6233",
-"v; c #752129",
-"w; c #1F0922",
-"x; c #750520",
-"y; c #81061F",
-"z; c #FA3D42",
-"A; c #FB4142",
-"B; c #FD4543",
-"C; c #FD4844",
-"D; c #FD4A45",
-"E; c #FD4D45",
-"F; c #FD5045",
-"G; c #FD5345",
-"H; c #FE5346",
-"I; c #FE5445",
-"J; c #FD5444",
-"K; c #FC4F41",
-"L; c #FA513D",
-"M; c #F95339",
-"N; c #F63736",
-"O; c #F75737",
-"P; c #F95F3B",
-"Q; c #FB5840",
-"R; c #FD5F43",
-"S; c #FE6345",
-"T; c #FE6547",
-"U; c #FE6548",
-"V; c #FE6448",
-"W; c #FE6248",
-"X; c #FE6348",
-"Y; c #FE6748",
-"Z; c #FE6848",
-"`; c #FE6846",
-" > c #FE6A45",
-".> c #FE6D43",
-"+> c #FE703F",
-"@> c #FC6F36",
-"#> c #6F302B",
-"$> c #140A22",
-"%> c #FA3B42",
-"&> c #FC4243",
-"*> c #FD4744",
-"=> c #FE4A45",
-"-> c #FE4C47",
-";> c #FE4D47",
-">> c #FE5047",
-",> c #FE5347",
-"'> c #FE5447",
-")> c #FD5246",
-"!> c #FB503F",
-"~> c #FA543D",
-"{> c #9B3D3B",
-"]> c #A3433B",
-"^> c #F9683D",
-"/> c #FC6940",
-"(> c #FE6342",
-"_> c #FE6645",
-":> c #FE6646",
-"<> c #FE6147",
-"[> c #FE6048",
-"}> c #FE6148",
-"|> c #FE6746",
-"1> c #FE6A46",
-"2> c #FE6F45",
-"3> c #FE7441",
-"4> c #FC7D39",
-"5> c #6C422E",
-"6> c #0F0F23",
-"7> c #FA4142",
-"8> c #FC4643",
-"9> c #FE4D46",
-"0> c #FE4E47",
-"a> c #FE4F48",
-"b> c #FE5148",
-"c> c #FE5348",
-"d> c #FE5548",
-"e> c #FE5247",
-"f> c #FD5445",
-"g> c #FC5544",
-"h> c #F96041",
-"i> c #D33F3D",
-"j> c #392D39",
-"k> c #973C38",
-"l> c #F94E3A",
-"m> c #FD693E",
-"n> c #FE6C43",
-"o> c #FE6047",
-"p> c #FE5D47",
-"q> c #FE5E48",
-"r> c #FE6948",
-"s> c #FE6947",
-"t> c #FE6B47",
-"u> c #FE6E46",
-"v> c #FD6D43",
-"w> c #FB723D",
-"x> c #D54A33",
-"y> c #301C29",
-"z> c #FB4A42",
-"A> c #FD4B44",
-"B> c #FE4F47",
-"C> c #FE5048",
-"D> c #FE5648",
-"E> c #FE5848",
-"F> c #FE5747",
-"G> c #FE5547",
-"H> c #FC5945",
-"I> c #F95742",
-"J> c #F3543D",
-"K> c #A33336",
-"L> c #302032",
-"M> c #152433",
-"N> c #CD3E38",
-"O> c #FD5A3F",
-"P> c #FE6343",
-"Q> c #FE6446",
-"R> c #FE6247",
-"S> c #FE6A47",
-"T> c #FC6542",
-"U> c #FB6A3B",
-"V> c #FA6D34",
-"W> c #D73C2D",
-"X> c #442428",
-"Y> c #281323",
-"Z> c #FD4E42",
-"`> c #FD4D43",
-" , c #FE4D45",
-"., c #FE5248",
-"+, c #FE5947",
-"@, c #FE5C47",
-"#, c #FE5B47",
-"$, c #FE5A47",
-"%, c #FE5847",
-"&, c #FC5C45",
-"*, c #F95B43",
-"=, c #F3613F",
-"-, c #E74F37",
-";, c #8C2431",
-">, c #161E2F",
-",, c #CD4E33",
-"', c #FD503A",
-"), c #FE5D40",
-"!, c #FE6445",
-"~, c #FE6946",
-"{, c #FE6847",
-"], c #FE6747",
-"^, c #FD6644",
-"/, c #FD6241",
-"(, c #FD5B3D",
-"_, c #FE6739",
-":, c #FE6135",
-"<, c #AB4830",
-"[, c #733E2A",
-"}, c #161224",
-"|, c #FC4E42",
-"1, c #FE4D44",
-"2, c #FE4E46",
-"3, c #FE5147",
-"4, c #FE5E47",
-"5, c #FD5C46",
-"6, c #FA5B44",
-"7, c #F45441",
-"8, c #EB393A",
-"9, c #CC3433",
-"0, c #47212F",
-"a, c #59242F",
-"b, c #FC6734",
-"c, c #FC6F3A",
-"d, c #FC723E",
-"e, c #FD6540",
-"f, c #FE6442",
-"g, c #FE6643",
-"h, c #FE6944",
-"i, c #FE6546",
-"j, c #FE6444",
-"k, c #FE6143",
-"l, c #FE5E41",
-"m, c #FE613F",
-"n, c #FE683C",
-"o, c #FE7937",
-"p, c #A25030",
-"q, c #692629",
-"r, c #151122",
-"s, c #FA573F",
-"t, c #FB4D40",
-"u, c #FC4F43",
-"v, c #FE5246",
-"w, c #FF6347",
-"x, c #FE5F48",
-"y, c #F65942",
-"z, c #F0493D",
-"A, c #ED3736",
-"B, c #73262F",
-"C, c #10152C",
-"D, c #3B292F",
-"E, c #363034",
-"F, c #AC3938",
-"G, c #FC6B3B",
-"H, c #FD763C",
-"I, c #FE6D3F",
-"J, c #FE6341",
-"K, c #FE6642",
-"L, c #FE6745",
-"M, c #FE6245",
-"N, c #FE6244",
-"O, c #FE6841",
-"P, c #FF683B",
-"Q, c #EC7035",
-"R, c #D0412D",
-"S, c #3A1627",
-"T, c #CF3938",
-"U, c #F6543C",
-"V, c #FB5040",
-"W, c #FD5544",
-"X, c #FE5A48",
-"Y, c #FE5D48",
-"Z, c #FE5F47",
-"`, c #FF6147",
-" ' c #FD5C45",
-".' c #FB5B43",
-"+' c #FA5A42",
-"@' c #F76040",
-"#' c #F4623D",
-"$' c #F26D38",
-"%' c #EC4130",
-"&' c #380E2B",
-"*' c #13122C",
-"=' c #362D31",
-"-' c #353435",
-";' c #352E37",
-">' c #2D3337",
-",' c #CC5838",
-"'' c #CD6F3A",
-")' c #CE6E3D",
-"!' c #FE793F",
-"~' c #FD7541",
-"{' c #FD6243",
-"]' c #FE6545",
-"^' c #FF6543",
-"/' c #FF6240",
-"(' c #FE723B",
-"_' c #FE8034",
-":' c #442D2C",
-"<' c #311725",
-"[' c #222830",
-"}' c #B73B36",
-"|' c #F94C3D",
-"1' c #FD5543",
-"2' c #FE5B48",
-"3' c #FF5E47",
-"4' c #FE5C48",
-"5' c #FC5B44",
-"6' c #F95640",
-"7' c #C34E3D",
-"8' c #A45A3A",
-"9' c #F37438",
-"0' c #F28935",
-"a' c #AF422F",
-"b' c #240D2B",
-"c' c #88292F",
-"d' c #FA8E34",
-"e' c #FC7E38",
-"f' c #FC5939",
-"g' c #694A37",
-"h' c #693437",
-"i' c #382638",
-"j' c #142439",
-"k' c #9F483A",
-"l' c #C45E3C",
-"m' c #FD7240",
-"n' c #FF6645",
-"o' c #FF6245",
-"p' c #FF6045",
-"q' c #FF6146",
-"r' c #FF6246",
-"s' c #FF6446",
-"t' c #FF6545",
-"u' c #FE763F",
-"v' c #FE7237",
-"w' c #C65331",
-"x' c #3D272A",
-"y' c #0D1E2B",
-"z' c #683032",
-"A' c #F9453A",
-"B' c #FD5341",
-"C' c #FE5A46",
-"D' c #FF5A48",
-"E' c #FE5948",
-"F' c #FD5A47",
-"G' c #FC5D43",
-"H' c #F95B3D",
-"I' c #713F37",
-"J' c #1E2D32",
-"K' c #C44531",
-"L' c #EF7A2F",
-"M' c #6B2E2C",
-"N' c #0F0E2C",
-"O' c #F56633",
-"P' c #FA803A",
-"Q' c #FC673E",
-"R' c #FD673E",
-"S' c #FC6F3C",
-"T' c #FA6E3B",
-"U' c #C6633A",
-"V' c #A06739",
-"W' c #835638",
-"X' c #381F38",
-"Y' c #713B38",
-"Z' c #7B503C",
-"`' c #FE7741",
-" ) c #FE7344",
-".) c #FE6D46",
-"+) c #FF6946",
-"@) c #FF5E46",
-"#) c #FF5D46",
-"$) c #FF5D47",
-"%) c #FF5F48",
-"&) c #FF6248",
-"*) c #FE6941",
-"=) c #FC783C",
-"-) c #C46B35",
-";) c #892730",
-">) c #111629",
-",) c #1F2630",
-"') c #AD3939",
-")) c #FC5D41",
-"!) c #FE5946",
-"~) c #FF5848",
-"{) c #FE5549",
-"]) c #FC5E42",
-"^) c #FA673B",
-"/) c #DB7033",
-"() c #392E2B",
-"_) c #311A28",
-":) c #3C2127",
-"<) c #1D1027",
-"[) c #92102C",
-"}) c #F58336",
-"|) c #FA673E",
-"1) c #FD6642",
-"2) c #FD5A41",
-"3) c #FC6D41",
-"4) c #FC6D3F",
-"5) c #FD683E",
-"6) c #F38C39",
-"7) c #CE6535",
-"8) c #612E34",
-"9) c #1D2637",
-"0) c #71513E",
-"a) c #FF6847",
-"b) c #FF5F47",
-"c) c #FF5A46",
-"d) c #FF5847",
-"e) c #FF5748",
-"f) c #FF594A",
-"g) c #FF5E4B",
-"h) c #FE654C",
-"i) c #FE694B",
-"j) c #FE6B48",
-"k) c #FC6A43",
-"l) c #F7683E",
-"m) c #EC6E39",
-" ",
-" ",
-" ",
-" ",
-" ",
-" ",
-" ",
-" ",
-" . + @ # $ % ",
-" & * = - ; > , ' ) ! ~ ",
-" { ] ^ / ( _ : < [ } | 1 2 ",
-" 3 4 5 6 7 8 9 0 a b c d e f g h i j ",
-" k l m n o p q r s t u v w x y z A B C D ",
-" E F G H I J K L M N O P Q R S T U V W X Y Z ` ",
-" ...+.@.#.$.%.&.*.=.-.;.>.,.S '.).!.~.{.].^./.(._. ",
-" :.<.[.}.|.1.2.3.4.5.6.7.8.9.0.a.b.c.d.e.!.S f.g.h.i.j.k. ",
-" l.m.n.o.p.q.r.s.t.u.J v.w.x.y.z.A.c.d.d.B.C.D.E.F.G.H.I. ",
-" J.K.L.M.N.O.P.Q.R.t S.T.U.V.W.X.Y.Z.`. +d.d..+B.'.++@+#+$+%+ ",
-" &+*+=+-+;+>+,+'+)+!+~+{+]+^+/+(+_+:+<+[+}+|+1+d.2+3+4+d.5+6+7+8+9+0+ ",
-" a+b+c+d+e+f+g+h+i+j+k+l+m+n+^+o+p+q+r+s+t+u+v+b.w+x+y+z+A+w+B+C+D+E+F+G+ ",
-" H+I+J+K+L+M+N+O+P+Q+R+S+T+U+V+W+Q ,.X+Y+Z+`+ @.@+@@@#@$@%@&@*@=@#@-@;@>@,@'@ ",
-" )@!@~@{@]@^@/@(@_@:@<@[@}@|@1@2@3@R ,.4@5@6@7@8@9@0@a@#@b@c@=@d@e@f@g@>@h@i@j@ ",
-" k@l@m@n@o@p@q@r@s@t@u@v@w@x@y@^+R S z@A@z.q+B@C@D@E@F@G@H@#@e@#@#@f@g@I@J@K@L@ ",
-" M@N@O@P@Q@R@S@T@U@V@W@X@Y@Z@`@ #.#+#+#S A@@###$#%#&#*#=#-#f@B+B+B+f@;#>#,#'#)# ",
-" !#~#{#]#^#/#(#(#_#:#<#[#}#|#1#^+.#S +#+#z@2#3#4#5#6#7#8#9#0#A.B+B+a#A.@@b#c#d# ",
-" e#f#g#h#i#j#k#l#m#n#o#p#q#r#s#t#u#v#.#w#S R ^+x#y#z#A#B#C#D#-#A.a#`.`.b.g@E#d#F# ",
-" G#0@H#I#J#K#L#M#N#O#P#Q#R#S#T#U#V#>.W#3@v#R R X+X#Y#s#Z#`# $.$+$@$g@f@5+5+#$6+$$%$&$ ",
-" *$=$-$;$>$,$'$)$!$~${$]$^$/$($_$*$u#:$Q 3@,.X+z.<$[$}$|$1$2$3$4$5$6$7$e@8$#$G@9$0$a$ ",
-" ,.4@E#b$c$d$e$f$g$h$i$j$k$l$m$n$`@>.:$o$3@,. #a.p$q$r$s$t$u$v$w$x$y$z$A$B$#@C$D$E$F$G$ ",
-" R S H$v+I$J$K$n+L$:$o$o$M$N$L$O$P$Q$R$N$o$3@S$T$U$V$W$X$Y$Z$`$ %.%+%@%#%$%%%&%*%=%-%;%>% ",
-" E.,%~.'%Z.4@v W#o$)%)%)%Q !%~%{%]%^%Q$u u#/%(%_%:%<%[%}%|%1%2%3%4%=%5%6%7%8%9%0%a%b%c%d% ",
-" e%f%g%a#,%,%z@R 3@3@3@)%Q h%i%j%k%l%m%{+n%o%p%q%r%s%t%u%v%w%x%y%z%A%*%B%C%D%E%F%G%H%I% ",
-" J%K%L%M%N%D.S v#)%)%O%P%Q%R%S%T%U%V%W%X%Y%Z%`% &.&+&@&#&$&%&&&*&f@a##@=&-&;&>&,&'&)& ",
-" !&~&{&]&^&.#w#^&/%/&(&_&:&<&[&}&|&1&2&3&4&5&6&7&8&9&0&a&b&c&d&e&e@1+5+e@f&g&h&i&j& ",
-" k&l&m&n&o&p&q&r&i%s&3.t&u&v&w&x&y&z&A&B&C&D&E&F&G&H&I&J&K&L&M&N&O&P&1+`.e@f&Q&R&S&T& ",
-" 0 U&V&W&X&<&Y&j%Z&`& *.*+*@*#*$*%*&***=*-*;*>*>*,*'*)*!*~*{*]*^*/*(*a#B+#@_*:*<*[*}* ",
-" |*1*2*3*4*5*6*7*8*9*0*a*b*c*d*e*f*g*h*i*j*k*l*m*n*o*p*q*r*s*t*u*v*E.w*d.e@x*y*z*A*B* ",
-" C*D*E*F*G*H*I*J*K*L*M*N*O*P*Q*R*S*T*U*V*W*l*X*o*o*Y*Z*`* =.=+=@=#='%$=%=e@&=*===-=;= ",
-" >=,='=)=!=~={=]=^=/=(=_=:=<=[=}=|=1=2=3=4=5=p*6=6=7=8=9=0=a=b=c=d=A@~.b.B+e=f=g=h=i= ",
-" j=k=l=m=n=o=p=q=r=s=t=u=v=w=x=y=z=A=5=Z*B=C=D=E=8=F=G=H=I=J=K=S$R z@'%L=M=N=O= ",
-" P=Q=R=S=T=U=V=W=X=Y=Z=`= -.-+-@-#-$-5=p*E=D=%-%-q*&-*-=---;->-,-/%3@^+'-)-!-~- ",
-" {-]-^-/-(-_-:-<-[-}-|-1-2- -3-4-5-6-7-8-n*m*9-0-9-o*a-b-c-d-e-f-g-(&h%w c h-i- ",
-" j-k-l-m-n-o-p-q-r-s-t-u-v-w-,-x-y-z-A-B-C-D-E-E-F-G-_@m*H-I-J-K-L-M-N-O-P-(+Q- ",
-" R-S-T-U-V-W-X-Y-Z-`- ;.;+;@;#;$;%;&;*;=;-;-;;;>;,;';);!;~;{;];^;/;(;_;:;<;[;}; ",
-" |;1;2;3;4;5;6;7;8;9;0;a;b;c;d;e;f;g;h;i;j;j;k;k;l;m;n;o;p;q;r;s;t;u;v;w;x;y; ",
-" z;A;B;C;D;E;F;G;H;I;J;K;L;M;N;O;P;Q;R;S;T;U;V;W;X;k;Y;Z;`; >r;.>+>@>#>$> ",
-" %>&>*>=>->;>>>,>'>,>)>F;8;!>~>{>]>^>/>(>_>:>i;<>[>X;}>i;|>1>q;2>3>4>5>6> ",
-" 7>8>=>9>0>a>b>c>d>,>e>e>f>g>h>i>j>k>l>m>n>:>i;o>p>q>W;r>s>t>p;u>v>w>x>y> ",
-" z>A>9>0>B>C>c>D>E>F>G>G>F>H>I>J>K>L>M>N>O>P>Q>R>o>R>T;s>S>S>S>t>1>T>U>V>W>X>Y> ",
-" Z>`> ,9>B>.,D>+,@,#,$,%,$,&,*,=,-,;,>,,,',),P>!,!,_>~,t>s>{,],{,],^,/,(,_,:,<,[,}, ",
-" |,`>1,2,3,G>+,4,o>o>4,@,@,5,6,7,8,9,0,a,b,c,d,e,f,g,h, >~,|>T;T;T;i,j,k,l,m,n,o,p,q,r, ",
-" s,t,u,v,G>%,@,o>w,R>x,p>@,5,6,y,z,A,B,C,D,E,F,G,H,I,J,K,L,L,i,i;i;i;Q>S;M,N,P>O,P,Q,R,S, ",
-" T,U,V,W,%,X,Y,Z,`,[>q>@, '.'+'@'#'$'%'&'*'='-';'>',''')'!'~'{'N,i,:>_>]'M,M,Q>_>^'/'('_':'<' ",
-" ['}'|'1'$,X,2'p>3'4'2'@,5'6'7'8'9'0'a'b'c'd'e'f'g'h'i'j'k'l'd,m'g, > >n'o'p'q'r's't'.>u'v'w'x' ",
-" y'z'A'B'C'X,X,2'D'E'E'F'G'H'I'J'K'L'M'N'O'P'Q'R'S'T'U'V'W'X'Y'Z'`' ).)+)r'@)#)$)%)&)l;1>*)=)-);) ",
-" >),)')))!)X,E'X,~){)d>!)])^)/)()_):)<)[)})|)1)f,2)3)4)5)6)7)8)9)0)*--*a)b)c)d)e)f)g)h)i)j)k)l)m) ",
-" ",
-" ",
-" ",
-" ",
-" ",
-" ",
-" ",
-" "};
diff --git a/ext/json/lib/json/version.rb b/ext/json/lib/json/version.rb
index e2764b0c6e..2175ac0f90 100644
--- a/ext/json/lib/json/version.rb
+++ b/ext/json/lib/json/version.rb
@@ -1,9 +1,8 @@
module JSON
# JSON version
- VERSION = '1.1.4'
+ VERSION = '1.5.4'
VERSION_ARRAY = VERSION.split(/\./).map { |x| x.to_i } # :nodoc:
VERSION_MAJOR = VERSION_ARRAY[0] # :nodoc:
VERSION_MINOR = VERSION_ARRAY[1] # :nodoc:
VERSION_BUILD = VERSION_ARRAY[2] # :nodoc:
- VARIANT_BINARY = false
end
diff --git a/ext/json/parser/depend b/ext/json/parser/depend
new file mode 100644
index 0000000000..5eaf6dd040
--- /dev/null
+++ b/ext/json/parser/depend
@@ -0,0 +1 @@
+parser.o: parser.c parser.h
diff --git a/ext/json/parser/extconf.rb b/ext/json/parser/extconf.rb
new file mode 100644
index 0000000000..4a10dd2ed6
--- /dev/null
+++ b/ext/json/parser/extconf.rb
@@ -0,0 +1,10 @@
+require 'mkmf'
+require 'rbconfig'
+
+if RUBY_VERSION < "1.9"
+ have_header("re.h")
+else
+ have_header("ruby/re.h")
+ have_header("ruby/encoding.h")
+end
+create_makefile 'json/ext/parser'
diff --git a/ext/json/ext/parser/parser.c b/ext/json/parser/parser.c
index 6928eda9e5..c0ec9ec2b0 100644
--- a/ext/json/ext/parser/parser.c
+++ b/ext/json/parser/parser.c
@@ -1,66 +1,93 @@
#line 1 "parser.rl"
-#include "ruby.h"
-#include "unicode.h"
-#if HAVE_RE_H
-#include "re.h"
-#endif
-#if HAVE_RUBY_ST_H
-#include "ruby/st.h"
-#endif
-#if HAVE_ST_H
-#include "st.h"
-#endif
-
-#define EVIL 0x666
+#include "parser.h"
+
+/* unicode */
+
+static const char digit_values[256] = {
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, -1,
+ -1, -1, -1, -1, -1, -1, 10, 11, 12, 13, 14, 15, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ 10, 11, 12, 13, 14, 15, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1
+};
+
+static UTF32 unescape_unicode(const unsigned char *p)
+{
+ char b;
+ UTF32 result = 0;
+ b = digit_values[p[0]];
+ if (b < 0) return UNI_REPLACEMENT_CHAR;
+ result = (result << 4) | b;
+ b = digit_values[p[1]];
+ result = (result << 4) | b;
+ if (b < 0) return UNI_REPLACEMENT_CHAR;
+ b = digit_values[p[2]];
+ result = (result << 4) | b;
+ if (b < 0) return UNI_REPLACEMENT_CHAR;
+ b = digit_values[p[3]];
+ result = (result << 4) | b;
+ if (b < 0) return UNI_REPLACEMENT_CHAR;
+ return result;
+}
-#ifndef RHASH_TBL
-#define RHASH_TBL(hsh) (RHASH(hsh)->tbl)
-#endif
+static int convert_UTF32_to_UTF8(char *buf, UTF32 ch)
+{
+ int len = 1;
+ if (ch <= 0x7F) {
+ buf[0] = (char) ch;
+ } else if (ch <= 0x07FF) {
+ buf[0] = (char) ((ch >> 6) | 0xC0);
+ buf[1] = (char) ((ch & 0x3F) | 0x80);
+ len++;
+ } else if (ch <= 0xFFFF) {
+ buf[0] = (char) ((ch >> 12) | 0xE0);
+ buf[1] = (char) (((ch >> 6) & 0x3F) | 0x80);
+ buf[2] = (char) ((ch & 0x3F) | 0x80);
+ len += 2;
+ } else if (ch <= 0x1fffff) {
+ buf[0] =(char) ((ch >> 18) | 0xF0);
+ buf[1] =(char) (((ch >> 12) & 0x3F) | 0x80);
+ buf[2] =(char) (((ch >> 6) & 0x3F) | 0x80);
+ buf[3] =(char) ((ch & 0x3F) | 0x80);
+ len += 3;
+ } else {
+ buf[0] = '?';
+ }
+ return len;
+}
#ifdef HAVE_RUBY_ENCODING_H
-#include "ruby/encoding.h"
-#define FORCE_UTF8(obj) rb_enc_associate((obj), rb_utf8_encoding())
+static VALUE CEncoding_ASCII_8BIT, CEncoding_UTF_8, CEncoding_UTF_16BE,
+ CEncoding_UTF_16LE, CEncoding_UTF_32BE, CEncoding_UTF_32LE;
+static ID i_encoding, i_encode;
#else
-#define FORCE_UTF8(obj)
+static ID i_iconv;
#endif
static VALUE mJSON, mExt, cParser, eParserError, eNestingError;
static VALUE CNaN, CInfinity, CMinusInfinity;
static ID i_json_creatable_p, i_json_create, i_create_id, i_create_additions,
- i_chr, i_max_nesting, i_allow_nan;
-
-#define MinusInfinity "-Infinity"
+ i_chr, i_max_nesting, i_allow_nan, i_symbolize_names, i_quirks_mode,
+ i_object_class, i_array_class, i_key_p, i_deep_const_get, i_match,
+ i_match_string, i_aset, i_aref, i_leftshift;
-typedef struct JSON_ParserStruct {
- VALUE Vsource;
- char *source;
- long len;
- char *memo;
- VALUE create_id;
- int max_nesting;
- int current_nesting;
- int allow_nan;
-} JSON_Parser;
-static char *JSON_parse_object(JSON_Parser *json, char *p, char *pe, VALUE *result);
-static char *JSON_parse_array(JSON_Parser *json, char *p, char *pe, VALUE *result);
-static char *JSON_parse_value(JSON_Parser *json, char *p, char *pe, VALUE *result);
-static char *JSON_parse_string(JSON_Parser *json, char *p, char *pe, VALUE *result);
-static char *JSON_parse_integer(JSON_Parser *json, char *p, char *pe, VALUE *result);
-static char *JSON_parse_float(JSON_Parser *json, char *p, char *pe, VALUE *result);
+#line 109 "parser.rl"
-#define GET_STRUCT \
- JSON_Parser *json; \
- Data_Get_Struct(self, JSON_Parser, json);
-#line 82 "parser.rl"
-
-
-
-#line 64 "parser.c"
+#line 91 "parser.c"
static const int JSON_object_start = 1;
static const int JSON_object_first_final = 27;
static const int JSON_object_error = 0;
@@ -68,29 +95,30 @@ static const int JSON_object_error = 0;
static const int JSON_object_en_main = 1;
-#line 115 "parser.rl"
+#line 150 "parser.rl"
static char *JSON_parse_object(JSON_Parser *json, char *p, char *pe, VALUE *result)
{
int cs = EVIL;
VALUE last_name = Qnil;
+ VALUE object_class = json->object_class;
if (json->max_nesting && json->current_nesting > json->max_nesting) {
- rb_raise(eNestingError, "nesting of %d is to deep", json->current_nesting);
+ rb_raise(eNestingError, "nesting of %d is too deep", json->current_nesting);
}
- *result = rb_hash_new();
+ *result = NIL_P(object_class) ? rb_hash_new() : rb_class_new_instance(0, 0, object_class);
-
-#line 87 "parser.c"
+
+#line 115 "parser.c"
{
cs = JSON_object_start;
}
-#line 129 "parser.rl"
-
-#line 94 "parser.c"
+#line 165 "parser.rl"
+
+#line 122 "parser.c"
{
if ( p == pe )
goto _test_eof;
@@ -118,9 +146,12 @@ case 2:
goto st2;
goto st0;
tr2:
-#line 101 "parser.rl"
+#line 132 "parser.rl"
{
- char *np = JSON_parse_string(json, p, pe, &last_name);
+ char *np;
+ json->parsing_name = 1;
+ np = JSON_parse_string(json, p, pe, &last_name);
+ json->parsing_name = 0;
if (np == NULL) { p--; {p++; cs = 3; goto _out;} } else {p = (( np))-1;}
}
goto st3;
@@ -128,7 +159,7 @@ st3:
if ( ++p == pe )
goto _test_eof3;
case 3:
-#line 132 "parser.c"
+#line 163 "parser.c"
switch( (*p) ) {
case 13: goto st3;
case 32: goto st3;
@@ -195,14 +226,18 @@ case 8:
goto st8;
goto st0;
tr11:
-#line 90 "parser.rl"
+#line 117 "parser.rl"
{
VALUE v = Qnil;
- char *np = JSON_parse_value(json, p, pe, &v);
+ char *np = JSON_parse_value(json, p, pe, &v);
if (np == NULL) {
p--; {p++; cs = 9; goto _out;}
} else {
- rb_hash_aset(*result, last_name, v);
+ if (NIL_P(json->object_class)) {
+ rb_hash_aset(*result, last_name, v);
+ } else {
+ rb_funcall(*result, i_aset, 2, last_name, v);
+ }
{p = (( np))-1;}
}
}
@@ -211,7 +246,7 @@ st9:
if ( ++p == pe )
goto _test_eof9;
case 9:
-#line 215 "parser.c"
+#line 250 "parser.c"
switch( (*p) ) {
case 13: goto st9;
case 32: goto st9;
@@ -300,14 +335,14 @@ case 18:
goto st9;
goto st18;
tr4:
-#line 106 "parser.rl"
+#line 140 "parser.rl"
{ p--; {p++; cs = 27; goto _out;} }
goto st27;
st27:
if ( ++p == pe )
goto _test_eof27;
case 27:
-#line 311 "parser.c"
+#line 346 "parser.c"
goto st0;
st19:
if ( ++p == pe )
@@ -374,45 +409,50 @@ case 26:
goto st2;
goto st26;
}
- _test_eof2: cs = 2; goto _test_eof;
- _test_eof3: cs = 3; goto _test_eof;
- _test_eof4: cs = 4; goto _test_eof;
- _test_eof5: cs = 5; goto _test_eof;
- _test_eof6: cs = 6; goto _test_eof;
- _test_eof7: cs = 7; goto _test_eof;
- _test_eof8: cs = 8; goto _test_eof;
- _test_eof9: cs = 9; goto _test_eof;
- _test_eof10: cs = 10; goto _test_eof;
- _test_eof11: cs = 11; goto _test_eof;
- _test_eof12: cs = 12; goto _test_eof;
- _test_eof13: cs = 13; goto _test_eof;
- _test_eof14: cs = 14; goto _test_eof;
- _test_eof15: cs = 15; goto _test_eof;
- _test_eof16: cs = 16; goto _test_eof;
- _test_eof17: cs = 17; goto _test_eof;
- _test_eof18: cs = 18; goto _test_eof;
- _test_eof27: cs = 27; goto _test_eof;
- _test_eof19: cs = 19; goto _test_eof;
- _test_eof20: cs = 20; goto _test_eof;
- _test_eof21: cs = 21; goto _test_eof;
- _test_eof22: cs = 22; goto _test_eof;
- _test_eof23: cs = 23; goto _test_eof;
- _test_eof24: cs = 24; goto _test_eof;
- _test_eof25: cs = 25; goto _test_eof;
- _test_eof26: cs = 26; goto _test_eof;
+ _test_eof2: cs = 2; goto _test_eof;
+ _test_eof3: cs = 3; goto _test_eof;
+ _test_eof4: cs = 4; goto _test_eof;
+ _test_eof5: cs = 5; goto _test_eof;
+ _test_eof6: cs = 6; goto _test_eof;
+ _test_eof7: cs = 7; goto _test_eof;
+ _test_eof8: cs = 8; goto _test_eof;
+ _test_eof9: cs = 9; goto _test_eof;
+ _test_eof10: cs = 10; goto _test_eof;
+ _test_eof11: cs = 11; goto _test_eof;
+ _test_eof12: cs = 12; goto _test_eof;
+ _test_eof13: cs = 13; goto _test_eof;
+ _test_eof14: cs = 14; goto _test_eof;
+ _test_eof15: cs = 15; goto _test_eof;
+ _test_eof16: cs = 16; goto _test_eof;
+ _test_eof17: cs = 17; goto _test_eof;
+ _test_eof18: cs = 18; goto _test_eof;
+ _test_eof27: cs = 27; goto _test_eof;
+ _test_eof19: cs = 19; goto _test_eof;
+ _test_eof20: cs = 20; goto _test_eof;
+ _test_eof21: cs = 21; goto _test_eof;
+ _test_eof22: cs = 22; goto _test_eof;
+ _test_eof23: cs = 23; goto _test_eof;
+ _test_eof24: cs = 24; goto _test_eof;
+ _test_eof25: cs = 25; goto _test_eof;
+ _test_eof26: cs = 26; goto _test_eof;
_test_eof: {}
_out: {}
}
-#line 130 "parser.rl"
+#line 166 "parser.rl"
if (cs >= JSON_object_first_final) {
- if (RTEST(json->create_id)) {
- VALUE klassname = rb_hash_aref(*result, json->create_id);
+ if (json->create_additions) {
+ VALUE klassname;
+ if (NIL_P(json->object_class)) {
+ klassname = rb_hash_aref(*result, json->create_id);
+ } else {
+ klassname = rb_funcall(*result, i_aref, 1, json->create_id);
+ }
if (!NIL_P(klassname)) {
- VALUE klass = rb_path2class(StringValueCStr(klassname));
- if RTEST(rb_funcall(klass, i_json_creatable_p, 0)) {
+ VALUE klass = rb_funcall(mJSON, i_deep_const_get, 1, klassname);
+ if (RTEST(rb_funcall(klass, i_json_creatable_p, 0))) {
*result = rb_funcall(klass, i_json_create, 1, *result);
}
}
@@ -424,7 +464,8 @@ case 26:
}
-#line 428 "parser.c"
+
+#line 464 "parser.c"
static const int JSON_value_start = 1;
static const int JSON_value_first_final = 21;
static const int JSON_value_error = 0;
@@ -432,22 +473,22 @@ static const int JSON_value_error = 0;
static const int JSON_value_en_main = 1;
-#line 228 "parser.rl"
+#line 265 "parser.rl"
static char *JSON_parse_value(JSON_Parser *json, char *p, char *pe, VALUE *result)
{
int cs = EVIL;
-
-#line 444 "parser.c"
+
+#line 480 "parser.c"
{
cs = JSON_value_start;
}
-#line 235 "parser.rl"
-
-#line 451 "parser.c"
+#line 272 "parser.rl"
+
+#line 487 "parser.c"
{
if ( p == pe )
goto _test_eof;
@@ -472,17 +513,17 @@ st0:
cs = 0;
goto _out;
tr0:
-#line 176 "parser.rl"
+#line 213 "parser.rl"
{
char *np = JSON_parse_string(json, p, pe, result);
if (np == NULL) { p--; {p++; cs = 21; goto _out;} } else {p = (( np))-1;}
}
goto st21;
tr2:
-#line 181 "parser.rl"
+#line 218 "parser.rl"
{
char *np;
- if(pe > p + 9 && !strncmp(MinusInfinity, p, 9)) {
+ if(pe > p + 9 - json->quirks_mode && !strncmp(MinusInfinity, p, 9)) {
if (json->allow_nan) {
*result = CMinusInfinity;
{p = (( p + 10))-1;}
@@ -499,8 +540,8 @@ tr2:
}
goto st21;
tr5:
-#line 199 "parser.rl"
- {
+#line 236 "parser.rl"
+ {
char *np;
json->current_nesting++;
np = JSON_parse_array(json, p, pe, result);
@@ -509,8 +550,8 @@ tr5:
}
goto st21;
tr9:
-#line 207 "parser.rl"
- {
+#line 244 "parser.rl"
+ {
char *np;
json->current_nesting++;
np = JSON_parse_object(json, p, pe, result);
@@ -519,7 +560,7 @@ tr9:
}
goto st21;
tr16:
-#line 169 "parser.rl"
+#line 206 "parser.rl"
{
if (json->allow_nan) {
*result = CInfinity;
@@ -529,7 +570,7 @@ tr16:
}
goto st21;
tr18:
-#line 162 "parser.rl"
+#line 199 "parser.rl"
{
if (json->allow_nan) {
*result = CNaN;
@@ -539,19 +580,19 @@ tr18:
}
goto st21;
tr22:
-#line 156 "parser.rl"
+#line 193 "parser.rl"
{
*result = Qfalse;
}
goto st21;
tr25:
-#line 153 "parser.rl"
+#line 190 "parser.rl"
{
*result = Qnil;
}
goto st21;
tr28:
-#line 159 "parser.rl"
+#line 196 "parser.rl"
{
*result = Qtrue;
}
@@ -560,9 +601,9 @@ st21:
if ( ++p == pe )
goto _test_eof21;
case 21:
-#line 215 "parser.rl"
+#line 252 "parser.rl"
{ p--; {p++; cs = 21; goto _out;} }
-#line 566 "parser.c"
+#line 602 "parser.c"
goto st0;
st2:
if ( ++p == pe )
@@ -698,32 +739,32 @@ case 20:
goto tr28;
goto st0;
}
- _test_eof21: cs = 21; goto _test_eof;
- _test_eof2: cs = 2; goto _test_eof;
- _test_eof3: cs = 3; goto _test_eof;
- _test_eof4: cs = 4; goto _test_eof;
- _test_eof5: cs = 5; goto _test_eof;
- _test_eof6: cs = 6; goto _test_eof;
- _test_eof7: cs = 7; goto _test_eof;
- _test_eof8: cs = 8; goto _test_eof;
- _test_eof9: cs = 9; goto _test_eof;
- _test_eof10: cs = 10; goto _test_eof;
- _test_eof11: cs = 11; goto _test_eof;
- _test_eof12: cs = 12; goto _test_eof;
- _test_eof13: cs = 13; goto _test_eof;
- _test_eof14: cs = 14; goto _test_eof;
- _test_eof15: cs = 15; goto _test_eof;
- _test_eof16: cs = 16; goto _test_eof;
- _test_eof17: cs = 17; goto _test_eof;
- _test_eof18: cs = 18; goto _test_eof;
- _test_eof19: cs = 19; goto _test_eof;
- _test_eof20: cs = 20; goto _test_eof;
+ _test_eof21: cs = 21; goto _test_eof;
+ _test_eof2: cs = 2; goto _test_eof;
+ _test_eof3: cs = 3; goto _test_eof;
+ _test_eof4: cs = 4; goto _test_eof;
+ _test_eof5: cs = 5; goto _test_eof;
+ _test_eof6: cs = 6; goto _test_eof;
+ _test_eof7: cs = 7; goto _test_eof;
+ _test_eof8: cs = 8; goto _test_eof;
+ _test_eof9: cs = 9; goto _test_eof;
+ _test_eof10: cs = 10; goto _test_eof;
+ _test_eof11: cs = 11; goto _test_eof;
+ _test_eof12: cs = 12; goto _test_eof;
+ _test_eof13: cs = 13; goto _test_eof;
+ _test_eof14: cs = 14; goto _test_eof;
+ _test_eof15: cs = 15; goto _test_eof;
+ _test_eof16: cs = 16; goto _test_eof;
+ _test_eof17: cs = 17; goto _test_eof;
+ _test_eof18: cs = 18; goto _test_eof;
+ _test_eof19: cs = 19; goto _test_eof;
+ _test_eof20: cs = 20; goto _test_eof;
_test_eof: {}
_out: {}
}
-#line 236 "parser.rl"
+#line 273 "parser.rl"
if (cs >= JSON_value_first_final) {
return p;
@@ -733,31 +774,31 @@ case 20:
}
-#line 737 "parser.c"
+#line 773 "parser.c"
static const int JSON_integer_start = 1;
-static const int JSON_integer_first_final = 5;
+static const int JSON_integer_first_final = 3;
static const int JSON_integer_error = 0;
static const int JSON_integer_en_main = 1;
-#line 252 "parser.rl"
+#line 289 "parser.rl"
static char *JSON_parse_integer(JSON_Parser *json, char *p, char *pe, VALUE *result)
{
int cs = EVIL;
-
-#line 753 "parser.c"
+
+#line 789 "parser.c"
{
cs = JSON_integer_start;
}
-#line 259 "parser.rl"
+#line 296 "parser.rl"
json->memo = p;
-
-#line 761 "parser.c"
+
+#line 797 "parser.c"
{
if ( p == pe )
goto _test_eof;
@@ -769,7 +810,7 @@ case 1:
case 48: goto st3;
}
if ( 49 <= (*p) && (*p) <= 57 )
- goto st4;
+ goto st5;
goto st0;
st0:
cs = 0;
@@ -781,7 +822,7 @@ case 2:
if ( (*p) == 48 )
goto st3;
if ( 49 <= (*p) && (*p) <= 57 )
- goto st4;
+ goto st5;
goto st0;
st3:
if ( ++p == pe )
@@ -791,33 +832,33 @@ case 3:
goto st0;
goto tr4;
tr4:
-#line 249 "parser.rl"
- { p--; {p++; cs = 5; goto _out;} }
- goto st5;
-st5:
- if ( ++p == pe )
- goto _test_eof5;
-case 5:
-#line 802 "parser.c"
- goto st0;
+#line 286 "parser.rl"
+ { p--; {p++; cs = 4; goto _out;} }
+ goto st4;
st4:
if ( ++p == pe )
goto _test_eof4;
case 4:
+#line 838 "parser.c"
+ goto st0;
+st5:
+ if ( ++p == pe )
+ goto _test_eof5;
+case 5:
if ( 48 <= (*p) && (*p) <= 57 )
- goto st4;
+ goto st5;
goto tr4;
}
- _test_eof2: cs = 2; goto _test_eof;
- _test_eof3: cs = 3; goto _test_eof;
- _test_eof5: cs = 5; goto _test_eof;
- _test_eof4: cs = 4; goto _test_eof;
+ _test_eof2: cs = 2; goto _test_eof;
+ _test_eof3: cs = 3; goto _test_eof;
+ _test_eof4: cs = 4; goto _test_eof;
+ _test_eof5: cs = 5; goto _test_eof;
_test_eof: {}
_out: {}
}
-#line 261 "parser.rl"
+#line 298 "parser.rl"
if (cs >= JSON_integer_first_final) {
long len = p - json->memo;
@@ -829,31 +870,31 @@ case 4:
}
-#line 833 "parser.c"
+#line 869 "parser.c"
static const int JSON_float_start = 1;
-static const int JSON_float_first_final = 10;
+static const int JSON_float_first_final = 8;
static const int JSON_float_error = 0;
static const int JSON_float_en_main = 1;
-#line 283 "parser.rl"
+#line 320 "parser.rl"
static char *JSON_parse_float(JSON_Parser *json, char *p, char *pe, VALUE *result)
{
int cs = EVIL;
-
-#line 849 "parser.c"
+
+#line 885 "parser.c"
{
cs = JSON_float_start;
}
-#line 290 "parser.rl"
+#line 327 "parser.rl"
json->memo = p;
-
-#line 857 "parser.c"
+
+#line 893 "parser.c"
{
if ( p == pe )
goto _test_eof;
@@ -865,7 +906,7 @@ case 1:
case 48: goto st3;
}
if ( 49 <= (*p) && (*p) <= 57 )
- goto st9;
+ goto st7;
goto st0;
st0:
cs = 0;
@@ -877,7 +918,7 @@ case 2:
if ( (*p) == 48 )
goto st3;
if ( 49 <= (*p) && (*p) <= 57 )
- goto st9;
+ goto st7;
goto st0;
st3:
if ( ++p == pe )
@@ -885,8 +926,8 @@ st3:
case 3:
switch( (*p) ) {
case 46: goto st4;
- case 69: goto st6;
- case 101: goto st6;
+ case 69: goto st5;
+ case 101: goto st5;
}
goto st0;
st4:
@@ -894,92 +935,92 @@ st4:
goto _test_eof4;
case 4:
if ( 48 <= (*p) && (*p) <= 57 )
- goto st5;
+ goto st8;
goto st0;
-st5:
+st8:
if ( ++p == pe )
- goto _test_eof5;
-case 5:
+ goto _test_eof8;
+case 8:
switch( (*p) ) {
- case 69: goto st6;
- case 101: goto st6;
+ case 69: goto st5;
+ case 101: goto st5;
}
if ( (*p) > 46 ) {
if ( 48 <= (*p) && (*p) <= 57 )
- goto st5;
+ goto st8;
} else if ( (*p) >= 45 )
goto st0;
- goto tr7;
-tr7:
-#line 277 "parser.rl"
- { p--; {p++; cs = 10; goto _out;} }
- goto st10;
-st10:
+ goto tr9;
+tr9:
+#line 314 "parser.rl"
+ { p--; {p++; cs = 9; goto _out;} }
+ goto st9;
+st9:
if ( ++p == pe )
- goto _test_eof10;
-case 10:
-#line 922 "parser.c"
+ goto _test_eof9;
+case 9:
+#line 958 "parser.c"
goto st0;
-st6:
+st5:
if ( ++p == pe )
- goto _test_eof6;
-case 6:
+ goto _test_eof5;
+case 5:
switch( (*p) ) {
- case 43: goto st7;
- case 45: goto st7;
+ case 43: goto st6;
+ case 45: goto st6;
}
if ( 48 <= (*p) && (*p) <= 57 )
- goto st8;
+ goto st10;
goto st0;
-st7:
+st6:
if ( ++p == pe )
- goto _test_eof7;
-case 7:
+ goto _test_eof6;
+case 6:
if ( 48 <= (*p) && (*p) <= 57 )
- goto st8;
+ goto st10;
goto st0;
-st8:
+st10:
if ( ++p == pe )
- goto _test_eof8;
-case 8:
+ goto _test_eof10;
+case 10:
switch( (*p) ) {
case 69: goto st0;
case 101: goto st0;
}
if ( (*p) > 46 ) {
if ( 48 <= (*p) && (*p) <= 57 )
- goto st8;
+ goto st10;
} else if ( (*p) >= 45 )
goto st0;
- goto tr7;
-st9:
+ goto tr9;
+st7:
if ( ++p == pe )
- goto _test_eof9;
-case 9:
+ goto _test_eof7;
+case 7:
switch( (*p) ) {
case 46: goto st4;
- case 69: goto st6;
- case 101: goto st6;
+ case 69: goto st5;
+ case 101: goto st5;
}
if ( 48 <= (*p) && (*p) <= 57 )
- goto st9;
+ goto st7;
goto st0;
}
- _test_eof2: cs = 2; goto _test_eof;
- _test_eof3: cs = 3; goto _test_eof;
- _test_eof4: cs = 4; goto _test_eof;
- _test_eof5: cs = 5; goto _test_eof;
- _test_eof10: cs = 10; goto _test_eof;
- _test_eof6: cs = 6; goto _test_eof;
- _test_eof7: cs = 7; goto _test_eof;
- _test_eof8: cs = 8; goto _test_eof;
- _test_eof9: cs = 9; goto _test_eof;
+ _test_eof2: cs = 2; goto _test_eof;
+ _test_eof3: cs = 3; goto _test_eof;
+ _test_eof4: cs = 4; goto _test_eof;
+ _test_eof8: cs = 8; goto _test_eof;
+ _test_eof9: cs = 9; goto _test_eof;
+ _test_eof5: cs = 5; goto _test_eof;
+ _test_eof6: cs = 6; goto _test_eof;
+ _test_eof10: cs = 10; goto _test_eof;
+ _test_eof7: cs = 7; goto _test_eof;
_test_eof: {}
_out: {}
}
-#line 292 "parser.rl"
+#line 329 "parser.rl"
if (cs >= JSON_float_first_final) {
long len = p - json->memo;
@@ -992,7 +1033,7 @@ case 9:
-#line 996 "parser.c"
+#line 1032 "parser.c"
static const int JSON_array_start = 1;
static const int JSON_array_first_final = 17;
static const int JSON_array_error = 0;
@@ -1000,27 +1041,28 @@ static const int JSON_array_error = 0;
static const int JSON_array_en_main = 1;
-#line 328 "parser.rl"
+#line 369 "parser.rl"
static char *JSON_parse_array(JSON_Parser *json, char *p, char *pe, VALUE *result)
{
int cs = EVIL;
+ VALUE array_class = json->array_class;
if (json->max_nesting && json->current_nesting > json->max_nesting) {
- rb_raise(eNestingError, "nesting of %d is to deep", json->current_nesting);
+ rb_raise(eNestingError, "nesting of %d is too deep", json->current_nesting);
}
- *result = rb_ary_new();
+ *result = NIL_P(array_class) ? rb_ary_new() : rb_class_new_instance(0, 0, array_class);
+
-
-#line 1017 "parser.c"
+#line 1054 "parser.c"
{
cs = JSON_array_start;
}
-#line 340 "parser.rl"
-
-#line 1024 "parser.c"
+#line 382 "parser.rl"
+
+#line 1061 "parser.c"
{
if ( p == pe )
goto _test_eof;
@@ -1059,14 +1101,18 @@ case 2:
goto st2;
goto st0;
tr2:
-#line 309 "parser.rl"
+#line 346 "parser.rl"
{
VALUE v = Qnil;
- char *np = JSON_parse_value(json, p, pe, &v);
+ char *np = JSON_parse_value(json, p, pe, &v);
if (np == NULL) {
p--; {p++; cs = 3; goto _out;}
} else {
- rb_ary_push(*result, v);
+ if (NIL_P(json->array_class)) {
+ rb_ary_push(*result, v);
+ } else {
+ rb_funcall(*result, i_leftshift, 1, v);
+ }
{p = (( np))-1;}
}
}
@@ -1075,7 +1121,7 @@ st3:
if ( ++p == pe )
goto _test_eof3;
case 3:
-#line 1079 "parser.c"
+#line 1120 "parser.c"
switch( (*p) ) {
case 13: goto st3;
case 32: goto st3;
@@ -1175,14 +1221,14 @@ case 12:
goto st3;
goto st12;
tr4:
-#line 320 "parser.rl"
+#line 361 "parser.rl"
{ p--; {p++; cs = 17; goto _out;} }
goto st17;
st17:
if ( ++p == pe )
goto _test_eof17;
case 17:
-#line 1186 "parser.c"
+#line 1227 "parser.c"
goto st0;
st13:
if ( ++p == pe )
@@ -1217,94 +1263,109 @@ case 16:
goto st2;
goto st16;
}
- _test_eof2: cs = 2; goto _test_eof;
- _test_eof3: cs = 3; goto _test_eof;
- _test_eof4: cs = 4; goto _test_eof;
- _test_eof5: cs = 5; goto _test_eof;
- _test_eof6: cs = 6; goto _test_eof;
- _test_eof7: cs = 7; goto _test_eof;
- _test_eof8: cs = 8; goto _test_eof;
- _test_eof9: cs = 9; goto _test_eof;
- _test_eof10: cs = 10; goto _test_eof;
- _test_eof11: cs = 11; goto _test_eof;
- _test_eof12: cs = 12; goto _test_eof;
- _test_eof17: cs = 17; goto _test_eof;
- _test_eof13: cs = 13; goto _test_eof;
- _test_eof14: cs = 14; goto _test_eof;
- _test_eof15: cs = 15; goto _test_eof;
- _test_eof16: cs = 16; goto _test_eof;
+ _test_eof2: cs = 2; goto _test_eof;
+ _test_eof3: cs = 3; goto _test_eof;
+ _test_eof4: cs = 4; goto _test_eof;
+ _test_eof5: cs = 5; goto _test_eof;
+ _test_eof6: cs = 6; goto _test_eof;
+ _test_eof7: cs = 7; goto _test_eof;
+ _test_eof8: cs = 8; goto _test_eof;
+ _test_eof9: cs = 9; goto _test_eof;
+ _test_eof10: cs = 10; goto _test_eof;
+ _test_eof11: cs = 11; goto _test_eof;
+ _test_eof12: cs = 12; goto _test_eof;
+ _test_eof17: cs = 17; goto _test_eof;
+ _test_eof13: cs = 13; goto _test_eof;
+ _test_eof14: cs = 14; goto _test_eof;
+ _test_eof15: cs = 15; goto _test_eof;
+ _test_eof16: cs = 16; goto _test_eof;
_test_eof: {}
_out: {}
}
-#line 341 "parser.rl"
+#line 383 "parser.rl"
if(cs >= JSON_array_first_final) {
return p + 1;
} else {
rb_raise(eParserError, "%u: unexpected token at '%s'", __LINE__, p);
+ return NULL;
}
}
-static VALUE json_string_unescape(char *p, char *pe)
+static VALUE json_string_unescape(VALUE result, char *string, char *stringEnd)
{
- VALUE result = rb_str_buf_new(pe - p + 1);
-
- while (p < pe) {
- if (*p == '\\') {
- p++;
- if (p >= pe) return Qnil; /* raise an exception later, \ at end */
- switch (*p) {
+ char *p = string, *pe = string, *unescape;
+ int unescape_len;
+ char buf[4];
+
+ while (pe < stringEnd) {
+ if (*pe == '\\') {
+ unescape = (char *) "?";
+ unescape_len = 1;
+ if (pe > p) rb_str_buf_cat(result, p, pe - p);
+ switch (*++pe) {
+ case 'n':
+ unescape = (char *) "\n";
+ break;
+ case 'r':
+ unescape = (char *) "\r";
+ break;
+ case 't':
+ unescape = (char *) "\t";
+ break;
case '"':
+ unescape = (char *) "\"";
+ break;
case '\\':
- rb_str_buf_cat(result, p, 1);
- p++;
+ unescape = (char *) "\\";
break;
case 'b':
- rb_str_buf_cat2(result, "\b");
- p++;
+ unescape = (char *) "\b";
break;
case 'f':
- rb_str_buf_cat2(result, "\f");
- p++;
- break;
- case 'n':
- rb_str_buf_cat2(result, "\n");
- p++;
- break;
- case 'r':
- rb_str_buf_cat2(result, "\r");
- p++;
- break;
- case 't':
- rb_str_buf_cat2(result, "\t");
- p++;
+ unescape = (char *) "\f";
break;
case 'u':
- if (p > pe - 4) {
+ if (pe > stringEnd - 4) {
return Qnil;
} else {
- p = JSON_convert_UTF16_to_UTF8(result, p, pe, strictConversion);
+ UTF32 ch = unescape_unicode((unsigned char *) ++pe);
+ pe += 3;
+ if (UNI_SUR_HIGH_START == (ch & 0xFC00)) {
+ pe++;
+ if (pe > stringEnd - 6) return Qnil;
+ if (pe[0] == '\\' && pe[1] == 'u') {
+ UTF32 sur = unescape_unicode((unsigned char *) pe + 2);
+ ch = (((ch & 0x3F) << 10) | ((((ch >> 6) & 0xF) + 1) << 16)
+ | (sur & 0x3FF));
+ pe += 5;
+ } else {
+ unescape = (char *) "?";
+ break;
+ }
+ }
+ unescape_len = convert_UTF32_to_UTF8(buf, ch);
+ unescape = buf;
}
break;
default:
- rb_str_buf_cat(result, p, 1);
- p++;
- break;
+ p = pe;
+ continue;
}
+ rb_str_buf_cat(result, unescape, unescape_len);
+ p = ++pe;
} else {
- char *q = p;
- while (*q != '\\' && q < pe) q++;
- rb_str_buf_cat(result, p, q - p);
- p = q;
+ pe++;
}
}
+ rb_str_buf_cat(result, p, pe - p);
return result;
}
-#line 1308 "parser.c"
+#line 1364 "parser.c"
static const int JSON_string_start = 1;
static const int JSON_string_first_final = 8;
static const int JSON_string_error = 0;
@@ -1312,24 +1373,37 @@ static const int JSON_string_error = 0;
static const int JSON_string_en_main = 1;
-#line 425 "parser.rl"
+#line 482 "parser.rl"
+
+static int
+match_i(VALUE regexp, VALUE klass, VALUE memo)
+{
+ if (regexp == Qundef) return ST_STOP;
+ if (RTEST(rb_funcall(klass, i_json_creatable_p, 0)) &&
+ RTEST(rb_funcall(regexp, i_match, 1, rb_ary_entry(memo, 0)))) {
+ rb_ary_push(memo, klass);
+ return ST_STOP;
+ }
+ return ST_CONTINUE;
+}
static char *JSON_parse_string(JSON_Parser *json, char *p, char *pe, VALUE *result)
{
int cs = EVIL;
+ VALUE match_string;
- *result = rb_str_new("", 0);
-
-#line 1325 "parser.c"
+ *result = rb_str_buf_new(0);
+
+#line 1394 "parser.c"
{
cs = JSON_string_start;
}
-#line 433 "parser.rl"
+#line 503 "parser.rl"
json->memo = p;
-
-#line 1333 "parser.c"
+
+#line 1402 "parser.c"
{
if ( p == pe )
goto _test_eof;
@@ -1354,25 +1428,25 @@ case 2:
goto st0;
goto st2;
tr2:
-#line 411 "parser.rl"
+#line 468 "parser.rl"
{
- *result = json_string_unescape(json->memo + 1, p);
+ *result = json_string_unescape(*result, json->memo + 1, p);
if (NIL_P(*result)) {
- p--;
- {p++; cs = 8; goto _out;}
- } else {
- FORCE_UTF8(*result);
- {p = (( p + 1))-1;}
- }
- }
-#line 422 "parser.rl"
+ p--;
+ {p++; cs = 8; goto _out;}
+ } else {
+ FORCE_UTF8(*result);
+ {p = (( p + 1))-1;}
+ }
+ }
+#line 479 "parser.rl"
{ p--; {p++; cs = 8; goto _out;} }
goto st8;
st8:
if ( ++p == pe )
goto _test_eof8;
case 8:
-#line 1376 "parser.c"
+#line 1445 "parser.c"
goto st0;
st3:
if ( ++p == pe )
@@ -1436,20 +1510,34 @@ case 7:
goto st2;
goto st0;
}
- _test_eof2: cs = 2; goto _test_eof;
- _test_eof8: cs = 8; goto _test_eof;
- _test_eof3: cs = 3; goto _test_eof;
- _test_eof4: cs = 4; goto _test_eof;
- _test_eof5: cs = 5; goto _test_eof;
- _test_eof6: cs = 6; goto _test_eof;
- _test_eof7: cs = 7; goto _test_eof;
+ _test_eof2: cs = 2; goto _test_eof;
+ _test_eof8: cs = 8; goto _test_eof;
+ _test_eof3: cs = 3; goto _test_eof;
+ _test_eof4: cs = 4; goto _test_eof;
+ _test_eof5: cs = 5; goto _test_eof;
+ _test_eof6: cs = 6; goto _test_eof;
+ _test_eof7: cs = 7; goto _test_eof;
_test_eof: {}
_out: {}
}
-#line 435 "parser.rl"
+#line 505 "parser.rl"
+
+ if (json->create_additions && RTEST(match_string = json->match_string)) {
+ VALUE klass;
+ VALUE memo = rb_ary_new2(2);
+ rb_ary_push(memo, *result);
+ rb_hash_foreach(match_string, match_i, memo);
+ klass = rb_ary_entry(memo, 1);
+ if (RTEST(klass)) {
+ *result = rb_funcall(klass, i_json_create, 1, *result);
+ }
+ }
+ if (json->symbolize_names && json->parsing_name) {
+ *result = rb_str_intern(*result);
+ }
if (cs >= JSON_string_first_final) {
return p + 1;
} else {
@@ -1457,20 +1545,7 @@ case 7:
}
}
-
-
-#line 1463 "parser.c"
-static const int JSON_start = 1;
-static const int JSON_first_final = 10;
-static const int JSON_error = 0;
-
-static const int JSON_en_main = 1;
-
-
-#line 469 "parser.rl"
-
-
-/*
+/*
* Document-class: JSON::Ext::Parser
*
* This is the JSON parser implemented as a C extension. It can be configured
@@ -1482,6 +1557,47 @@ static const int JSON_en_main = 1;
*
*/
+static VALUE convert_encoding(VALUE source)
+{
+ char *ptr = RSTRING_PTR(source);
+ long len = RSTRING_LEN(source);
+ if (len < 2) {
+ rb_raise(eParserError, "A JSON text must at least contain two octets!");
+ }
+#ifdef HAVE_RUBY_ENCODING_H
+ {
+ VALUE encoding = rb_funcall(source, i_encoding, 0);
+ if (encoding == CEncoding_ASCII_8BIT) {
+ if (len >= 4 && ptr[0] == 0 && ptr[1] == 0 && ptr[2] == 0) {
+ source = rb_funcall(source, i_encode, 2, CEncoding_UTF_8, CEncoding_UTF_32BE);
+ } else if (len >= 4 && ptr[0] == 0 && ptr[2] == 0) {
+ source = rb_funcall(source, i_encode, 2, CEncoding_UTF_8, CEncoding_UTF_16BE);
+ } else if (len >= 4 && ptr[1] == 0 && ptr[2] == 0 && ptr[3] == 0) {
+ source = rb_funcall(source, i_encode, 2, CEncoding_UTF_8, CEncoding_UTF_32LE);
+ } else if (len >= 4 && ptr[1] == 0 && ptr[3] == 0) {
+ source = rb_funcall(source, i_encode, 2, CEncoding_UTF_8, CEncoding_UTF_16LE);
+ } else {
+ source = rb_str_dup(source);
+ FORCE_UTF8(source);
+ }
+ } else {
+ source = rb_funcall(source, i_encode, 1, CEncoding_UTF_8);
+ }
+ }
+#else
+ if (len >= 4 && ptr[0] == 0 && ptr[1] == 0 && ptr[2] == 0) {
+ source = rb_funcall(mJSON, i_iconv, 3, rb_str_new2("utf-8"), rb_str_new2("utf-32be"), source);
+ } else if (len >= 4 && ptr[0] == 0 && ptr[2] == 0) {
+ source = rb_funcall(mJSON, i_iconv, 3, rb_str_new2("utf-8"), rb_str_new2("utf-16be"), source);
+ } else if (len >= 4 && ptr[1] == 0 && ptr[2] == 0 && ptr[3] == 0) {
+ source = rb_funcall(mJSON, i_iconv, 3, rb_str_new2("utf-8"), rb_str_new2("utf-32le"), source);
+ } else if (len >= 4 && ptr[1] == 0 && ptr[3] == 0) {
+ source = rb_funcall(mJSON, i_iconv, 3, rb_str_new2("utf-8"), rb_str_new2("utf-16le"), source);
+ }
+#endif
+ return source;
+}
+
/*
* call-seq: new(source, opts => {})
*
@@ -1499,30 +1615,34 @@ static const int JSON_en_main = 1;
* * *allow_nan*: If set to true, allow NaN, Infinity and -Infinity in
* defiance of RFC 4627 to be parsed by the Parser. This option defaults to
* false.
+ * * *symbolize_names*: If set to true, returns symbols for the names
+ * (keys) in a JSON object. Otherwise strings are returned, which is also
+ * the default.
* * *create_additions*: If set to false, the Parser doesn't create
* additions even if a matchin class and create_id was found. This option
* defaults to true.
+ * * *object_class*: Defaults to Hash
+ * * *array_class*: Defaults to Array
+ * * *quirks_mode*: Enables quirks_mode for parser, that is for example
+ * parsing single JSON values instead of documents is possible.
+ *
*/
static VALUE cParser_initialize(int argc, VALUE *argv, VALUE self)
{
- char *ptr;
- long len;
VALUE source, opts;
- GET_STRUCT;
- rb_scan_args(argc, argv, "11", &source, &opts);
- source = StringValue(source);
- ptr = RSTRING_PTR(source);
- len = RSTRING_LEN(source);
- if (len < 2) {
- rb_raise(eParserError, "A JSON text must at least contain two octets!");
+ GET_PARSER_INIT;
+
+ if (json->Vsource) {
+ rb_raise(rb_eTypeError, "already initialized instance");
}
+ rb_scan_args(argc, argv, "11", &source, &opts);
if (!NIL_P(opts)) {
opts = rb_convert_type(opts, T_HASH, "Hash", "to_hash");
if (NIL_P(opts)) {
rb_raise(rb_eArgError, "opts needs to be like a hash");
} else {
VALUE tmp = ID2SYM(i_max_nesting);
- if (st_lookup(RHASH_TBL(opts), tmp, 0)) {
+ if (option_given_p(opts, tmp)) {
VALUE max_nesting = rb_hash_aref(opts, tmp);
if (RTEST(max_nesting)) {
Check_Type(max_nesting, T_FIXNUM);
@@ -1534,72 +1654,104 @@ static VALUE cParser_initialize(int argc, VALUE *argv, VALUE self)
json->max_nesting = 19;
}
tmp = ID2SYM(i_allow_nan);
- if (st_lookup(RHASH_TBL(opts), tmp, 0)) {
- VALUE allow_nan = rb_hash_aref(opts, tmp);
- json->allow_nan = RTEST(allow_nan) ? 1 : 0;
+ if (option_given_p(opts, tmp)) {
+ json->allow_nan = RTEST(rb_hash_aref(opts, tmp)) ? 1 : 0;
} else {
json->allow_nan = 0;
}
+ tmp = ID2SYM(i_symbolize_names);
+ if (option_given_p(opts, tmp)) {
+ json->symbolize_names = RTEST(rb_hash_aref(opts, tmp)) ? 1 : 0;
+ } else {
+ json->symbolize_names = 0;
+ }
+ tmp = ID2SYM(i_quirks_mode);
+ if (option_given_p(opts, tmp)) {
+ VALUE quirks_mode = rb_hash_aref(opts, tmp);
+ json->quirks_mode = RTEST(quirks_mode) ? 1 : 0;
+ } else {
+ json->quirks_mode = 0;
+ }
tmp = ID2SYM(i_create_additions);
- if (st_lookup(RHASH_TBL(opts), tmp, 0)) {
- VALUE create_additions = rb_hash_aref(opts, tmp);
- if (RTEST(create_additions)) {
- json->create_id = rb_funcall(mJSON, i_create_id, 0);
- } else {
- json->create_id = Qnil;
- }
+ if (option_given_p(opts, tmp)) {
+ json->create_additions = RTEST(rb_hash_aref(opts, tmp));
+ } else {
+ json->create_additions = 1;
+ }
+ tmp = ID2SYM(i_create_id);
+ if (option_given_p(opts, tmp)) {
+ json->create_id = rb_hash_aref(opts, tmp);
} else {
json->create_id = rb_funcall(mJSON, i_create_id, 0);
}
+ tmp = ID2SYM(i_object_class);
+ if (option_given_p(opts, tmp)) {
+ json->object_class = rb_hash_aref(opts, tmp);
+ } else {
+ json->object_class = Qnil;
+ }
+ tmp = ID2SYM(i_array_class);
+ if (option_given_p(opts, tmp)) {
+ json->array_class = rb_hash_aref(opts, tmp);
+ } else {
+ json->array_class = Qnil;
+ }
+ tmp = ID2SYM(i_match_string);
+ if (option_given_p(opts, tmp)) {
+ VALUE match_string = rb_hash_aref(opts, tmp);
+ json->match_string = RTEST(match_string) ? match_string : Qnil;
+ } else {
+ json->match_string = Qnil;
+ }
}
} else {
json->max_nesting = 19;
json->allow_nan = 0;
+ json->create_additions = 1;
json->create_id = rb_funcall(mJSON, i_create_id, 0);
+ json->object_class = Qnil;
+ json->array_class = Qnil;
}
- json->current_nesting = 0;
- /*
- Convert these?
- if (len >= 4 && ptr[0] == 0 && ptr[1] == 0 && ptr[2] == 0) {
- rb_raise(eParserError, "Only UTF8 octet streams are supported atm!");
- } else if (len >= 4 && ptr[0] == 0 && ptr[2] == 0) {
- rb_raise(eParserError, "Only UTF8 octet streams are supported atm!");
- } else if (len >= 4 && ptr[1] == 0 && ptr[2] == 0 && ptr[3] == 0) {
- rb_raise(eParserError, "Only UTF8 octet streams are supported atm!");
- } else if (len >= 4 && ptr[1] == 0 && ptr[3] == 0) {
- rb_raise(eParserError, "Only UTF8 octet streams are supported atm!");
+ if (!json->quirks_mode) {
+ source = convert_encoding(StringValue(source));
}
- */
- json->len = len;
- json->source = ptr;
+ json->current_nesting = 0;
+ json->len = RSTRING_LEN(source);
+ json->source = RSTRING_PTR(source);;
json->Vsource = source;
return self;
}
-/*
- * call-seq: parse()
- *
- * Parses the current JSON text _source_ and returns the complete data
- * structure as a result.
- */
-static VALUE cParser_parse(VALUE self)
+
+#line 1719 "parser.c"
+static const int JSON_start = 1;
+static const int JSON_first_final = 10;
+static const int JSON_error = 0;
+
+static const int JSON_en_main = 1;
+
+
+#line 726 "parser.rl"
+
+
+static VALUE cParser_parse_strict(VALUE self)
{
char *p, *pe;
int cs = EVIL;
VALUE result = Qnil;
- GET_STRUCT;
+ GET_PARSER;
+
-
-#line 1594 "parser.c"
+#line 1738 "parser.c"
{
cs = JSON_start;
}
-#line 591 "parser.rl"
+#line 736 "parser.rl"
p = json->source;
pe = p + json->len;
-
-#line 1603 "parser.c"
+
+#line 1747 "parser.c"
{
if ( p == pe )
goto _test_eof;
@@ -1655,7 +1807,7 @@ case 5:
goto st1;
goto st5;
tr3:
-#line 458 "parser.rl"
+#line 715 "parser.rl"
{
char *np;
json->current_nesting = 1;
@@ -1664,7 +1816,7 @@ tr3:
}
goto st10;
tr4:
-#line 451 "parser.rl"
+#line 708 "parser.rl"
{
char *np;
json->current_nesting = 1;
@@ -1676,7 +1828,7 @@ st10:
if ( ++p == pe )
goto _test_eof10;
case 10:
-#line 1680 "parser.c"
+#line 1824 "parser.c"
switch( (*p) ) {
case 13: goto st10;
case 32: goto st10;
@@ -1718,31 +1870,223 @@ case 9:
goto st10;
goto st9;
}
- _test_eof1: cs = 1; goto _test_eof;
- _test_eof2: cs = 2; goto _test_eof;
- _test_eof3: cs = 3; goto _test_eof;
- _test_eof4: cs = 4; goto _test_eof;
- _test_eof5: cs = 5; goto _test_eof;
- _test_eof10: cs = 10; goto _test_eof;
- _test_eof6: cs = 6; goto _test_eof;
- _test_eof7: cs = 7; goto _test_eof;
- _test_eof8: cs = 8; goto _test_eof;
- _test_eof9: cs = 9; goto _test_eof;
+ _test_eof1: cs = 1; goto _test_eof;
+ _test_eof2: cs = 2; goto _test_eof;
+ _test_eof3: cs = 3; goto _test_eof;
+ _test_eof4: cs = 4; goto _test_eof;
+ _test_eof5: cs = 5; goto _test_eof;
+ _test_eof10: cs = 10; goto _test_eof;
+ _test_eof6: cs = 6; goto _test_eof;
+ _test_eof7: cs = 7; goto _test_eof;
+ _test_eof8: cs = 8; goto _test_eof;
+ _test_eof9: cs = 9; goto _test_eof;
_test_eof: {}
_out: {}
}
-#line 594 "parser.rl"
+#line 739 "parser.rl"
if (cs >= JSON_first_final && p == pe) {
return result;
} else {
rb_raise(eParserError, "%u: unexpected token at '%s'", __LINE__, p);
+ return Qnil;
}
}
-inline static JSON_Parser *JSON_allocate()
+
+
+#line 1893 "parser.c"
+static const int JSON_quirks_mode_start = 1;
+static const int JSON_quirks_mode_first_final = 10;
+static const int JSON_quirks_mode_error = 0;
+
+static const int JSON_quirks_mode_en_main = 1;
+
+
+#line 764 "parser.rl"
+
+
+static VALUE cParser_parse_quirks_mode(VALUE self)
+{
+ char *p, *pe;
+ int cs = EVIL;
+ VALUE result = Qnil;
+ GET_PARSER;
+
+
+#line 1912 "parser.c"
+ {
+ cs = JSON_quirks_mode_start;
+ }
+
+#line 774 "parser.rl"
+ p = json->source;
+ pe = p + json->len;
+
+#line 1921 "parser.c"
+ {
+ if ( p == pe )
+ goto _test_eof;
+ switch ( cs )
+ {
+st1:
+ if ( ++p == pe )
+ goto _test_eof1;
+case 1:
+ switch( (*p) ) {
+ case 13: goto st1;
+ case 32: goto st1;
+ case 34: goto tr2;
+ case 45: goto tr2;
+ case 47: goto st6;
+ case 73: goto tr2;
+ case 78: goto tr2;
+ case 91: goto tr2;
+ case 102: goto tr2;
+ case 110: goto tr2;
+ case 116: goto tr2;
+ case 123: goto tr2;
+ }
+ if ( (*p) > 10 ) {
+ if ( 48 <= (*p) && (*p) <= 57 )
+ goto tr2;
+ } else if ( (*p) >= 9 )
+ goto st1;
+ goto st0;
+st0:
+cs = 0;
+ goto _out;
+tr2:
+#line 756 "parser.rl"
+ {
+ char *np = JSON_parse_value(json, p, pe, &result);
+ if (np == NULL) { p--; {p++; cs = 10; goto _out;} } else {p = (( np))-1;}
+ }
+ goto st10;
+st10:
+ if ( ++p == pe )
+ goto _test_eof10;
+case 10:
+#line 1965 "parser.c"
+ switch( (*p) ) {
+ case 13: goto st10;
+ case 32: goto st10;
+ case 47: goto st2;
+ }
+ if ( 9 <= (*p) && (*p) <= 10 )
+ goto st10;
+ goto st0;
+st2:
+ if ( ++p == pe )
+ goto _test_eof2;
+case 2:
+ switch( (*p) ) {
+ case 42: goto st3;
+ case 47: goto st5;
+ }
+ goto st0;
+st3:
+ if ( ++p == pe )
+ goto _test_eof3;
+case 3:
+ if ( (*p) == 42 )
+ goto st4;
+ goto st3;
+st4:
+ if ( ++p == pe )
+ goto _test_eof4;
+case 4:
+ switch( (*p) ) {
+ case 42: goto st4;
+ case 47: goto st10;
+ }
+ goto st3;
+st5:
+ if ( ++p == pe )
+ goto _test_eof5;
+case 5:
+ if ( (*p) == 10 )
+ goto st10;
+ goto st5;
+st6:
+ if ( ++p == pe )
+ goto _test_eof6;
+case 6:
+ switch( (*p) ) {
+ case 42: goto st7;
+ case 47: goto st9;
+ }
+ goto st0;
+st7:
+ if ( ++p == pe )
+ goto _test_eof7;
+case 7:
+ if ( (*p) == 42 )
+ goto st8;
+ goto st7;
+st8:
+ if ( ++p == pe )
+ goto _test_eof8;
+case 8:
+ switch( (*p) ) {
+ case 42: goto st8;
+ case 47: goto st1;
+ }
+ goto st7;
+st9:
+ if ( ++p == pe )
+ goto _test_eof9;
+case 9:
+ if ( (*p) == 10 )
+ goto st1;
+ goto st9;
+ }
+ _test_eof1: cs = 1; goto _test_eof;
+ _test_eof10: cs = 10; goto _test_eof;
+ _test_eof2: cs = 2; goto _test_eof;
+ _test_eof3: cs = 3; goto _test_eof;
+ _test_eof4: cs = 4; goto _test_eof;
+ _test_eof5: cs = 5; goto _test_eof;
+ _test_eof6: cs = 6; goto _test_eof;
+ _test_eof7: cs = 7; goto _test_eof;
+ _test_eof8: cs = 8; goto _test_eof;
+ _test_eof9: cs = 9; goto _test_eof;
+
+ _test_eof: {}
+ _out: {}
+ }
+
+#line 777 "parser.rl"
+
+ if (cs >= JSON_quirks_mode_first_final && p == pe) {
+ return result;
+ } else {
+ rb_raise(eParserError, "%u: unexpected token at '%s'", __LINE__, p);
+ return Qnil;
+ }
+}
+
+/*
+ * call-seq: parse()
+ *
+ * Parses the current JSON text _source_ and returns the complete data
+ * structure as a result.
+ */
+static VALUE cParser_parse(VALUE self)
+{
+ GET_PARSER;
+
+ if (json->quirks_mode) {
+ return cParser_parse_quirks_mode(self);
+ } else {
+ return cParser_parse_strict(self);
+ }
+}
+
+
+static JSON_Parser *JSON_allocate()
{
JSON_Parser *json = ALLOC(JSON_Parser);
MEMZERO(json, JSON_Parser, 1);
@@ -1753,6 +2097,9 @@ static void JSON_mark(JSON_Parser *json)
{
rb_gc_mark_maybe(json->Vsource);
rb_gc_mark_maybe(json->create_id);
+ rb_gc_mark_maybe(json->object_class);
+ rb_gc_mark_maybe(json->array_class);
+ rb_gc_mark_maybe(json->match_string);
}
static void JSON_free(JSON_Parser *json)
@@ -1774,10 +2121,22 @@ static VALUE cJSON_parser_s_allocate(VALUE klass)
*/
static VALUE cParser_source(VALUE self)
{
- GET_STRUCT;
+ GET_PARSER;
return rb_str_dup(json->Vsource);
}
+/*
+ * call-seq: quirks_mode?()
+ *
+ * Returns a true, if this parser is in quirks_mode, false otherwise.
+ */
+static VALUE cParser_quirks_mode_p(VALUE self)
+{
+ GET_PARSER;
+ return json->quirks_mode ? Qtrue : Qfalse;
+}
+
+
void Init_parser()
{
rb_require("json/common");
@@ -1790,6 +2149,7 @@ void Init_parser()
rb_define_method(cParser, "initialize", cParser_initialize, -1);
rb_define_method(cParser, "parse", cParser_parse, 0);
rb_define_method(cParser, "source", cParser_source, 0);
+ rb_define_method(cParser, "quirks_mode?", cParser_quirks_mode_p, 0);
CNaN = rb_const_get(mJSON, rb_intern("NaN"));
CInfinity = rb_const_get(mJSON, rb_intern("Infinity"));
@@ -1802,4 +2162,35 @@ void Init_parser()
i_chr = rb_intern("chr");
i_max_nesting = rb_intern("max_nesting");
i_allow_nan = rb_intern("allow_nan");
+ i_symbolize_names = rb_intern("symbolize_names");
+ i_quirks_mode = rb_intern("quirks_mode");
+ i_object_class = rb_intern("object_class");
+ i_array_class = rb_intern("array_class");
+ i_match = rb_intern("match");
+ i_match_string = rb_intern("match_string");
+ i_key_p = rb_intern("key?");
+ i_deep_const_get = rb_intern("deep_const_get");
+ i_aset = rb_intern("[]=");
+ i_aref = rb_intern("[]");
+ i_leftshift = rb_intern("<<");
+#ifdef HAVE_RUBY_ENCODING_H
+ CEncoding_UTF_8 = rb_funcall(rb_path2class("Encoding"), rb_intern("find"), 1, rb_str_new2("utf-8"));
+ CEncoding_UTF_16BE = rb_funcall(rb_path2class("Encoding"), rb_intern("find"), 1, rb_str_new2("utf-16be"));
+ CEncoding_UTF_16LE = rb_funcall(rb_path2class("Encoding"), rb_intern("find"), 1, rb_str_new2("utf-16le"));
+ CEncoding_UTF_32BE = rb_funcall(rb_path2class("Encoding"), rb_intern("find"), 1, rb_str_new2("utf-32be"));
+ CEncoding_UTF_32LE = rb_funcall(rb_path2class("Encoding"), rb_intern("find"), 1, rb_str_new2("utf-32le"));
+ CEncoding_ASCII_8BIT = rb_funcall(rb_path2class("Encoding"), rb_intern("find"), 1, rb_str_new2("ascii-8bit"));
+ i_encoding = rb_intern("encoding");
+ i_encode = rb_intern("encode");
+#else
+ i_iconv = rb_intern("iconv");
+#endif
}
+
+/*
+ * Local variables:
+ * mode: c
+ * c-file-style: ruby
+ * indent-tabs-mode: nil
+ * End:
+ */
diff --git a/ext/json/parser/parser.h b/ext/json/parser/parser.h
new file mode 100644
index 0000000000..fc73810dd6
--- /dev/null
+++ b/ext/json/parser/parser.h
@@ -0,0 +1,82 @@
+#ifndef _PARSER_H_
+#define _PARSER_H_
+
+#include "ruby.h"
+
+#if HAVE_RE_H
+#include "re.h"
+#endif
+
+#ifdef HAVE_RUBY_ENCODING_H
+#include "ruby/encoding.h"
+#define FORCE_UTF8(obj) ((obj) = rb_enc_associate(rb_str_dup(obj), rb_utf8_encoding()))
+#else
+#define FORCE_UTF8(obj)
+#endif
+#ifdef HAVE_RUBY_ST_H
+#include "ruby/st.h"
+#else
+#include "st.h"
+#endif
+
+#define option_given_p(opts, key) RTEST(rb_funcall(opts, i_key_p, 1, key))
+
+/* unicode */
+
+typedef unsigned long UTF32; /* at least 32 bits */
+typedef unsigned short UTF16; /* at least 16 bits */
+typedef unsigned char UTF8; /* typically 8 bits */
+
+#define UNI_REPLACEMENT_CHAR (UTF32)0x0000FFFD
+#define UNI_SUR_HIGH_START (UTF32)0xD800
+#define UNI_SUR_HIGH_END (UTF32)0xDBFF
+#define UNI_SUR_LOW_START (UTF32)0xDC00
+#define UNI_SUR_LOW_END (UTF32)0xDFFF
+
+typedef struct JSON_ParserStruct {
+ VALUE Vsource;
+ char *source;
+ long len;
+ char *memo;
+ VALUE create_id;
+ int max_nesting;
+ int current_nesting;
+ int allow_nan;
+ int parsing_name;
+ int symbolize_names;
+ int quirks_mode;
+ VALUE object_class;
+ VALUE array_class;
+ int create_additions;
+ VALUE match_string;
+} JSON_Parser;
+
+#define GET_PARSER \
+ GET_PARSER_INIT; \
+ if (!json->Vsource) rb_raise(rb_eTypeError, "uninitialized instance")
+#define GET_PARSER_INIT \
+ JSON_Parser *json; \
+ Data_Get_Struct(self, JSON_Parser, json)
+
+#define MinusInfinity "-Infinity"
+#define EVIL 0x666
+
+static UTF32 unescape_unicode(const unsigned char *p);
+static int convert_UTF32_to_UTF8(char *buf, UTF32 ch);
+static char *JSON_parse_object(JSON_Parser *json, char *p, char *pe, VALUE *result);
+static char *JSON_parse_value(JSON_Parser *json, char *p, char *pe, VALUE *result);
+static char *JSON_parse_integer(JSON_Parser *json, char *p, char *pe, VALUE *result);
+static char *JSON_parse_float(JSON_Parser *json, char *p, char *pe, VALUE *result);
+static char *JSON_parse_array(JSON_Parser *json, char *p, char *pe, VALUE *result);
+static VALUE json_string_unescape(VALUE result, char *string, char *stringEnd);
+static char *JSON_parse_string(JSON_Parser *json, char *p, char *pe, VALUE *result);
+static VALUE convert_encoding(VALUE source);
+static VALUE cParser_initialize(int argc, VALUE *argv, VALUE self);
+static VALUE cParser_parse(VALUE self);
+static JSON_Parser *JSON_allocate();
+static void JSON_mark(JSON_Parser *json);
+static void JSON_free(JSON_Parser *json);
+static VALUE cJSON_parser_s_allocate(VALUE klass);
+static VALUE cParser_source(VALUE self);
+
+#endif
diff --git a/ext/json/parser/parser.rl b/ext/json/parser/parser.rl
new file mode 100644
index 0000000000..dcb5d2db6f
--- /dev/null
+++ b/ext/json/parser/parser.rl
@@ -0,0 +1,916 @@
+#include "parser.h"
+
+/* unicode */
+
+static const char digit_values[256] = {
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, -1,
+ -1, -1, -1, -1, -1, -1, 10, 11, 12, 13, 14, 15, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ 10, 11, 12, 13, 14, 15, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1, -1,
+ -1, -1, -1, -1, -1, -1, -1
+};
+
+static UTF32 unescape_unicode(const unsigned char *p)
+{
+ char b;
+ UTF32 result = 0;
+ b = digit_values[p[0]];
+ if (b < 0) return UNI_REPLACEMENT_CHAR;
+ result = (result << 4) | b;
+ b = digit_values[p[1]];
+ result = (result << 4) | b;
+ if (b < 0) return UNI_REPLACEMENT_CHAR;
+ b = digit_values[p[2]];
+ result = (result << 4) | b;
+ if (b < 0) return UNI_REPLACEMENT_CHAR;
+ b = digit_values[p[3]];
+ result = (result << 4) | b;
+ if (b < 0) return UNI_REPLACEMENT_CHAR;
+ return result;
+}
+
+static int convert_UTF32_to_UTF8(char *buf, UTF32 ch)
+{
+ int len = 1;
+ if (ch <= 0x7F) {
+ buf[0] = (char) ch;
+ } else if (ch <= 0x07FF) {
+ buf[0] = (char) ((ch >> 6) | 0xC0);
+ buf[1] = (char) ((ch & 0x3F) | 0x80);
+ len++;
+ } else if (ch <= 0xFFFF) {
+ buf[0] = (char) ((ch >> 12) | 0xE0);
+ buf[1] = (char) (((ch >> 6) & 0x3F) | 0x80);
+ buf[2] = (char) ((ch & 0x3F) | 0x80);
+ len += 2;
+ } else if (ch <= 0x1fffff) {
+ buf[0] =(char) ((ch >> 18) | 0xF0);
+ buf[1] =(char) (((ch >> 12) & 0x3F) | 0x80);
+ buf[2] =(char) (((ch >> 6) & 0x3F) | 0x80);
+ buf[3] =(char) ((ch & 0x3F) | 0x80);
+ len += 3;
+ } else {
+ buf[0] = '?';
+ }
+ return len;
+}
+
+#ifdef HAVE_RUBY_ENCODING_H
+static VALUE CEncoding_ASCII_8BIT, CEncoding_UTF_8, CEncoding_UTF_16BE,
+ CEncoding_UTF_16LE, CEncoding_UTF_32BE, CEncoding_UTF_32LE;
+static ID i_encoding, i_encode;
+#else
+static ID i_iconv;
+#endif
+
+static VALUE mJSON, mExt, cParser, eParserError, eNestingError;
+static VALUE CNaN, CInfinity, CMinusInfinity;
+
+static ID i_json_creatable_p, i_json_create, i_create_id, i_create_additions,
+ i_chr, i_max_nesting, i_allow_nan, i_symbolize_names, i_quirks_mode,
+ i_object_class, i_array_class, i_key_p, i_deep_const_get, i_match,
+ i_match_string, i_aset, i_aref, i_leftshift;
+
+%%{
+ machine JSON_common;
+
+ cr = '\n';
+ cr_neg = [^\n];
+ ws = [ \t\r\n];
+ c_comment = '/*' ( any* - (any* '*/' any* ) ) '*/';
+ cpp_comment = '//' cr_neg* cr;
+ comment = c_comment | cpp_comment;
+ ignore = ws | comment;
+ name_separator = ':';
+ value_separator = ',';
+ Vnull = 'null';
+ Vfalse = 'false';
+ Vtrue = 'true';
+ VNaN = 'NaN';
+ VInfinity = 'Infinity';
+ VMinusInfinity = '-Infinity';
+ begin_value = [nft\"\-\[\{NI] | digit;
+ begin_object = '{';
+ end_object = '}';
+ begin_array = '[';
+ end_array = ']';
+ begin_string = '"';
+ begin_name = begin_string;
+ begin_number = digit | '-';
+}%%
+
+%%{
+ machine JSON_object;
+ include JSON_common;
+
+ write data;
+
+ action parse_value {
+ VALUE v = Qnil;
+ char *np = JSON_parse_value(json, fpc, pe, &v);
+ if (np == NULL) {
+ fhold; fbreak;
+ } else {
+ if (NIL_P(json->object_class)) {
+ rb_hash_aset(*result, last_name, v);
+ } else {
+ rb_funcall(*result, i_aset, 2, last_name, v);
+ }
+ fexec np;
+ }
+ }
+
+ action parse_name {
+ char *np;
+ json->parsing_name = 1;
+ np = JSON_parse_string(json, fpc, pe, &last_name);
+ json->parsing_name = 0;
+ if (np == NULL) { fhold; fbreak; } else fexec np;
+ }
+
+ action exit { fhold; fbreak; }
+
+ pair = ignore* begin_name >parse_name ignore* name_separator ignore* begin_value >parse_value;
+ next_pair = ignore* value_separator pair;
+
+ main := (
+ begin_object
+ (pair (next_pair)*)? ignore*
+ end_object
+ ) @exit;
+}%%
+
+static char *JSON_parse_object(JSON_Parser *json, char *p, char *pe, VALUE *result)
+{
+ int cs = EVIL;
+ VALUE last_name = Qnil;
+ VALUE object_class = json->object_class;
+
+ if (json->max_nesting && json->current_nesting > json->max_nesting) {
+ rb_raise(eNestingError, "nesting of %d is too deep", json->current_nesting);
+ }
+
+ *result = NIL_P(object_class) ? rb_hash_new() : rb_class_new_instance(0, 0, object_class);
+
+ %% write init;
+ %% write exec;
+
+ if (cs >= JSON_object_first_final) {
+ if (json->create_additions) {
+ VALUE klassname;
+ if (NIL_P(json->object_class)) {
+ klassname = rb_hash_aref(*result, json->create_id);
+ } else {
+ klassname = rb_funcall(*result, i_aref, 1, json->create_id);
+ }
+ if (!NIL_P(klassname)) {
+ VALUE klass = rb_funcall(mJSON, i_deep_const_get, 1, klassname);
+ if (RTEST(rb_funcall(klass, i_json_creatable_p, 0))) {
+ *result = rb_funcall(klass, i_json_create, 1, *result);
+ }
+ }
+ }
+ return p + 1;
+ } else {
+ return NULL;
+ }
+}
+
+
+%%{
+ machine JSON_value;
+ include JSON_common;
+
+ write data;
+
+ action parse_null {
+ *result = Qnil;
+ }
+ action parse_false {
+ *result = Qfalse;
+ }
+ action parse_true {
+ *result = Qtrue;
+ }
+ action parse_nan {
+ if (json->allow_nan) {
+ *result = CNaN;
+ } else {
+ rb_raise(eParserError, "%u: unexpected token at '%s'", __LINE__, p - 2);
+ }
+ }
+ action parse_infinity {
+ if (json->allow_nan) {
+ *result = CInfinity;
+ } else {
+ rb_raise(eParserError, "%u: unexpected token at '%s'", __LINE__, p - 8);
+ }
+ }
+ action parse_string {
+ char *np = JSON_parse_string(json, fpc, pe, result);
+ if (np == NULL) { fhold; fbreak; } else fexec np;
+ }
+
+ action parse_number {
+ char *np;
+ if(pe > fpc + 9 - json->quirks_mode && !strncmp(MinusInfinity, fpc, 9)) {
+ if (json->allow_nan) {
+ *result = CMinusInfinity;
+ fexec p + 10;
+ fhold; fbreak;
+ } else {
+ rb_raise(eParserError, "%u: unexpected token at '%s'", __LINE__, p);
+ }
+ }
+ np = JSON_parse_float(json, fpc, pe, result);
+ if (np != NULL) fexec np;
+ np = JSON_parse_integer(json, fpc, pe, result);
+ if (np != NULL) fexec np;
+ fhold; fbreak;
+ }
+
+ action parse_array {
+ char *np;
+ json->current_nesting++;
+ np = JSON_parse_array(json, fpc, pe, result);
+ json->current_nesting--;
+ if (np == NULL) { fhold; fbreak; } else fexec np;
+ }
+
+ action parse_object {
+ char *np;
+ json->current_nesting++;
+ np = JSON_parse_object(json, fpc, pe, result);
+ json->current_nesting--;
+ if (np == NULL) { fhold; fbreak; } else fexec np;
+ }
+
+ action exit { fhold; fbreak; }
+
+main := (
+ Vnull @parse_null |
+ Vfalse @parse_false |
+ Vtrue @parse_true |
+ VNaN @parse_nan |
+ VInfinity @parse_infinity |
+ begin_number >parse_number |
+ begin_string >parse_string |
+ begin_array >parse_array |
+ begin_object >parse_object
+ ) %*exit;
+}%%
+
+static char *JSON_parse_value(JSON_Parser *json, char *p, char *pe, VALUE *result)
+{
+ int cs = EVIL;
+
+ %% write init;
+ %% write exec;
+
+ if (cs >= JSON_value_first_final) {
+ return p;
+ } else {
+ return NULL;
+ }
+}
+
+%%{
+ machine JSON_integer;
+
+ write data;
+
+ action exit { fhold; fbreak; }
+
+ main := '-'? ('0' | [1-9][0-9]*) (^[0-9]? @exit);
+}%%
+
+static char *JSON_parse_integer(JSON_Parser *json, char *p, char *pe, VALUE *result)
+{
+ int cs = EVIL;
+
+ %% write init;
+ json->memo = p;
+ %% write exec;
+
+ if (cs >= JSON_integer_first_final) {
+ long len = p - json->memo;
+ *result = rb_Integer(rb_str_new(json->memo, len));
+ return p + 1;
+ } else {
+ return NULL;
+ }
+}
+
+%%{
+ machine JSON_float;
+ include JSON_common;
+
+ write data;
+
+ action exit { fhold; fbreak; }
+
+ main := '-'? (
+ (('0' | [1-9][0-9]*) '.' [0-9]+ ([Ee] [+\-]?[0-9]+)?)
+ | (('0' | [1-9][0-9]*) ([Ee] [+\-]?[0-9]+))
+ ) (^[0-9Ee.\-]? @exit );
+}%%
+
+static char *JSON_parse_float(JSON_Parser *json, char *p, char *pe, VALUE *result)
+{
+ int cs = EVIL;
+
+ %% write init;
+ json->memo = p;
+ %% write exec;
+
+ if (cs >= JSON_float_first_final) {
+ long len = p - json->memo;
+ *result = rb_Float(rb_str_new(json->memo, len));
+ return p + 1;
+ } else {
+ return NULL;
+ }
+}
+
+
+%%{
+ machine JSON_array;
+ include JSON_common;
+
+ write data;
+
+ action parse_value {
+ VALUE v = Qnil;
+ char *np = JSON_parse_value(json, fpc, pe, &v);
+ if (np == NULL) {
+ fhold; fbreak;
+ } else {
+ if (NIL_P(json->array_class)) {
+ rb_ary_push(*result, v);
+ } else {
+ rb_funcall(*result, i_leftshift, 1, v);
+ }
+ fexec np;
+ }
+ }
+
+ action exit { fhold; fbreak; }
+
+ next_element = value_separator ignore* begin_value >parse_value;
+
+ main := begin_array ignore*
+ ((begin_value >parse_value ignore*)
+ (ignore* next_element ignore*)*)?
+ end_array @exit;
+}%%
+
+static char *JSON_parse_array(JSON_Parser *json, char *p, char *pe, VALUE *result)
+{
+ int cs = EVIL;
+ VALUE array_class = json->array_class;
+
+ if (json->max_nesting && json->current_nesting > json->max_nesting) {
+ rb_raise(eNestingError, "nesting of %d is too deep", json->current_nesting);
+ }
+ *result = NIL_P(array_class) ? rb_ary_new() : rb_class_new_instance(0, 0, array_class);
+
+ %% write init;
+ %% write exec;
+
+ if(cs >= JSON_array_first_final) {
+ return p + 1;
+ } else {
+ rb_raise(eParserError, "%u: unexpected token at '%s'", __LINE__, p);
+ return NULL;
+ }
+}
+
+static VALUE json_string_unescape(VALUE result, char *string, char *stringEnd)
+{
+ char *p = string, *pe = string, *unescape;
+ int unescape_len;
+ char buf[4];
+
+ while (pe < stringEnd) {
+ if (*pe == '\\') {
+ unescape = (char *) "?";
+ unescape_len = 1;
+ if (pe > p) rb_str_buf_cat(result, p, pe - p);
+ switch (*++pe) {
+ case 'n':
+ unescape = (char *) "\n";
+ break;
+ case 'r':
+ unescape = (char *) "\r";
+ break;
+ case 't':
+ unescape = (char *) "\t";
+ break;
+ case '"':
+ unescape = (char *) "\"";
+ break;
+ case '\\':
+ unescape = (char *) "\\";
+ break;
+ case 'b':
+ unescape = (char *) "\b";
+ break;
+ case 'f':
+ unescape = (char *) "\f";
+ break;
+ case 'u':
+ if (pe > stringEnd - 4) {
+ return Qnil;
+ } else {
+ UTF32 ch = unescape_unicode((unsigned char *) ++pe);
+ pe += 3;
+ if (UNI_SUR_HIGH_START == (ch & 0xFC00)) {
+ pe++;
+ if (pe > stringEnd - 6) return Qnil;
+ if (pe[0] == '\\' && pe[1] == 'u') {
+ UTF32 sur = unescape_unicode((unsigned char *) pe + 2);
+ ch = (((ch & 0x3F) << 10) | ((((ch >> 6) & 0xF) + 1) << 16)
+ | (sur & 0x3FF));
+ pe += 5;
+ } else {
+ unescape = (char *) "?";
+ break;
+ }
+ }
+ unescape_len = convert_UTF32_to_UTF8(buf, ch);
+ unescape = buf;
+ }
+ break;
+ default:
+ p = pe;
+ continue;
+ }
+ rb_str_buf_cat(result, unescape, unescape_len);
+ p = ++pe;
+ } else {
+ pe++;
+ }
+ }
+ rb_str_buf_cat(result, p, pe - p);
+ return result;
+}
+
+%%{
+ machine JSON_string;
+ include JSON_common;
+
+ write data;
+
+ action parse_string {
+ *result = json_string_unescape(*result, json->memo + 1, p);
+ if (NIL_P(*result)) {
+ fhold;
+ fbreak;
+ } else {
+ FORCE_UTF8(*result);
+ fexec p + 1;
+ }
+ }
+
+ action exit { fhold; fbreak; }
+
+ main := '"' ((^([\"\\] | 0..0x1f) | '\\'[\"\\/bfnrt] | '\\u'[0-9a-fA-F]{4} | '\\'^([\"\\/bfnrtu]|0..0x1f))* %parse_string) '"' @exit;
+}%%
+
+static int
+match_i(VALUE regexp, VALUE klass, VALUE memo)
+{
+ if (regexp == Qundef) return ST_STOP;
+ if (RTEST(rb_funcall(klass, i_json_creatable_p, 0)) &&
+ RTEST(rb_funcall(regexp, i_match, 1, rb_ary_entry(memo, 0)))) {
+ rb_ary_push(memo, klass);
+ return ST_STOP;
+ }
+ return ST_CONTINUE;
+}
+
+static char *JSON_parse_string(JSON_Parser *json, char *p, char *pe, VALUE *result)
+{
+ int cs = EVIL;
+ VALUE match_string;
+
+ *result = rb_str_buf_new(0);
+ %% write init;
+ json->memo = p;
+ %% write exec;
+
+ if (json->create_additions && RTEST(match_string = json->match_string)) {
+ VALUE klass;
+ VALUE memo = rb_ary_new2(2);
+ rb_ary_push(memo, *result);
+ rb_hash_foreach(match_string, match_i, memo);
+ klass = rb_ary_entry(memo, 1);
+ if (RTEST(klass)) {
+ *result = rb_funcall(klass, i_json_create, 1, *result);
+ }
+ }
+
+ if (json->symbolize_names && json->parsing_name) {
+ *result = rb_str_intern(*result);
+ }
+ if (cs >= JSON_string_first_final) {
+ return p + 1;
+ } else {
+ return NULL;
+ }
+}
+
+/*
+ * Document-class: JSON::Ext::Parser
+ *
+ * This is the JSON parser implemented as a C extension. It can be configured
+ * to be used by setting
+ *
+ * JSON.parser = JSON::Ext::Parser
+ *
+ * with the method parser= in JSON.
+ *
+ */
+
+static VALUE convert_encoding(VALUE source)
+{
+ char *ptr = RSTRING_PTR(source);
+ long len = RSTRING_LEN(source);
+ if (len < 2) {
+ rb_raise(eParserError, "A JSON text must at least contain two octets!");
+ }
+#ifdef HAVE_RUBY_ENCODING_H
+ {
+ VALUE encoding = rb_funcall(source, i_encoding, 0);
+ if (encoding == CEncoding_ASCII_8BIT) {
+ if (len >= 4 && ptr[0] == 0 && ptr[1] == 0 && ptr[2] == 0) {
+ source = rb_funcall(source, i_encode, 2, CEncoding_UTF_8, CEncoding_UTF_32BE);
+ } else if (len >= 4 && ptr[0] == 0 && ptr[2] == 0) {
+ source = rb_funcall(source, i_encode, 2, CEncoding_UTF_8, CEncoding_UTF_16BE);
+ } else if (len >= 4 && ptr[1] == 0 && ptr[2] == 0 && ptr[3] == 0) {
+ source = rb_funcall(source, i_encode, 2, CEncoding_UTF_8, CEncoding_UTF_32LE);
+ } else if (len >= 4 && ptr[1] == 0 && ptr[3] == 0) {
+ source = rb_funcall(source, i_encode, 2, CEncoding_UTF_8, CEncoding_UTF_16LE);
+ } else {
+ source = rb_str_dup(source);
+ FORCE_UTF8(source);
+ }
+ } else {
+ source = rb_funcall(source, i_encode, 1, CEncoding_UTF_8);
+ }
+ }
+#else
+ if (len >= 4 && ptr[0] == 0 && ptr[1] == 0 && ptr[2] == 0) {
+ source = rb_funcall(mJSON, i_iconv, 3, rb_str_new2("utf-8"), rb_str_new2("utf-32be"), source);
+ } else if (len >= 4 && ptr[0] == 0 && ptr[2] == 0) {
+ source = rb_funcall(mJSON, i_iconv, 3, rb_str_new2("utf-8"), rb_str_new2("utf-16be"), source);
+ } else if (len >= 4 && ptr[1] == 0 && ptr[2] == 0 && ptr[3] == 0) {
+ source = rb_funcall(mJSON, i_iconv, 3, rb_str_new2("utf-8"), rb_str_new2("utf-32le"), source);
+ } else if (len >= 4 && ptr[1] == 0 && ptr[3] == 0) {
+ source = rb_funcall(mJSON, i_iconv, 3, rb_str_new2("utf-8"), rb_str_new2("utf-16le"), source);
+ }
+#endif
+ return source;
+}
+
+/*
+ * call-seq: new(source, opts => {})
+ *
+ * Creates a new JSON::Ext::Parser instance for the string _source_.
+ *
+ * Creates a new JSON::Ext::Parser instance for the string _source_.
+ *
+ * It will be configured by the _opts_ hash. _opts_ can have the following
+ * keys:
+ *
+ * _opts_ can have the following keys:
+ * * *max_nesting*: The maximum depth of nesting allowed in the parsed data
+ * structures. Disable depth checking with :max_nesting => false|nil|0, it
+ * defaults to 19.
+ * * *allow_nan*: If set to true, allow NaN, Infinity and -Infinity in
+ * defiance of RFC 4627 to be parsed by the Parser. This option defaults to
+ * false.
+ * * *symbolize_names*: If set to true, returns symbols for the names
+ * (keys) in a JSON object. Otherwise strings are returned, which is also
+ * the default.
+ * * *create_additions*: If set to false, the Parser doesn't create
+ * additions even if a matchin class and create_id was found. This option
+ * defaults to true.
+ * * *object_class*: Defaults to Hash
+ * * *array_class*: Defaults to Array
+ */
+static VALUE cParser_initialize(int argc, VALUE *argv, VALUE self)
+{
+ VALUE source, opts;
+ GET_PARSER_INIT;
+
+ if (json->Vsource) {
+ rb_raise(rb_eTypeError, "already initialized instance");
+ }
+ rb_scan_args(argc, argv, "11", &source, &opts);
+ if (!NIL_P(opts)) {
+ opts = rb_convert_type(opts, T_HASH, "Hash", "to_hash");
+ if (NIL_P(opts)) {
+ rb_raise(rb_eArgError, "opts needs to be like a hash");
+ } else {
+ VALUE tmp = ID2SYM(i_max_nesting);
+ if (option_given_p(opts, tmp)) {
+ VALUE max_nesting = rb_hash_aref(opts, tmp);
+ if (RTEST(max_nesting)) {
+ Check_Type(max_nesting, T_FIXNUM);
+ json->max_nesting = FIX2INT(max_nesting);
+ } else {
+ json->max_nesting = 0;
+ }
+ } else {
+ json->max_nesting = 19;
+ }
+ tmp = ID2SYM(i_allow_nan);
+ if (option_given_p(opts, tmp)) {
+ json->allow_nan = RTEST(rb_hash_aref(opts, tmp)) ? 1 : 0;
+ } else {
+ json->allow_nan = 0;
+ }
+ tmp = ID2SYM(i_symbolize_names);
+ if (option_given_p(opts, tmp)) {
+ json->symbolize_names = RTEST(rb_hash_aref(opts, tmp)) ? 1 : 0;
+ } else {
+ json->symbolize_names = 0;
+ }
+ tmp = ID2SYM(i_quirks_mode);
+ if (option_given_p(opts, tmp)) {
+ VALUE quirks_mode = rb_hash_aref(opts, tmp);
+ json->quirks_mode = RTEST(quirks_mode) ? 1 : 0;
+ } else {
+ json->quirks_mode = 0;
+ }
+ tmp = ID2SYM(i_create_additions);
+ if (option_given_p(opts, tmp)) {
+ json->create_additions = RTEST(rb_hash_aref(opts, tmp));
+ } else {
+ json->create_additions = 1;
+ }
+ tmp = ID2SYM(i_create_id);
+ if (option_given_p(opts, tmp)) {
+ json->create_id = rb_hash_aref(opts, tmp);
+ } else {
+ json->create_id = rb_funcall(mJSON, i_create_id, 0);
+ }
+ tmp = ID2SYM(i_object_class);
+ if (option_given_p(opts, tmp)) {
+ json->object_class = rb_hash_aref(opts, tmp);
+ } else {
+ json->object_class = Qnil;
+ }
+ tmp = ID2SYM(i_array_class);
+ if (option_given_p(opts, tmp)) {
+ json->array_class = rb_hash_aref(opts, tmp);
+ } else {
+ json->array_class = Qnil;
+ }
+ tmp = ID2SYM(i_match_string);
+ if (option_given_p(opts, tmp)) {
+ VALUE match_string = rb_hash_aref(opts, tmp);
+ json->match_string = RTEST(match_string) ? match_string : Qnil;
+ } else {
+ json->match_string = Qnil;
+ }
+ }
+ } else {
+ json->max_nesting = 19;
+ json->allow_nan = 0;
+ json->create_additions = 1;
+ json->create_id = rb_funcall(mJSON, i_create_id, 0);
+ json->object_class = Qnil;
+ json->array_class = Qnil;
+ }
+ if (!json->quirks_mode) {
+ source = convert_encoding(StringValue(source));
+ }
+ json->current_nesting = 0;
+ json->len = RSTRING_LEN(source);
+ json->source = RSTRING_PTR(source);;
+ json->Vsource = source;
+ return self;
+}
+
+%%{
+ machine JSON;
+
+ write data;
+
+ include JSON_common;
+
+ action parse_object {
+ char *np;
+ json->current_nesting = 1;
+ np = JSON_parse_object(json, fpc, pe, &result);
+ if (np == NULL) { fhold; fbreak; } else fexec np;
+ }
+
+ action parse_array {
+ char *np;
+ json->current_nesting = 1;
+ np = JSON_parse_array(json, fpc, pe, &result);
+ if (np == NULL) { fhold; fbreak; } else fexec np;
+ }
+
+ main := ignore* (
+ begin_object >parse_object |
+ begin_array >parse_array
+ ) ignore*;
+}%%
+
+static VALUE cParser_parse_strict(VALUE self)
+{
+ char *p, *pe;
+ int cs = EVIL;
+ VALUE result = Qnil;
+ GET_PARSER;
+
+ %% write init;
+ p = json->source;
+ pe = p + json->len;
+ %% write exec;
+
+ if (cs >= JSON_first_final && p == pe) {
+ return result;
+ } else {
+ rb_raise(eParserError, "%u: unexpected token at '%s'", __LINE__, p);
+ return Qnil;
+ }
+}
+
+
+%%{
+ machine JSON_quirks_mode;
+
+ write data;
+
+ include JSON_common;
+
+ action parse_value {
+ char *np = JSON_parse_value(json, fpc, pe, &result);
+ if (np == NULL) { fhold; fbreak; } else fexec np;
+ }
+
+ main := ignore* (
+ begin_value >parse_value
+ ) ignore*;
+}%%
+
+static VALUE cParser_parse_quirks_mode(VALUE self)
+{
+ char *p, *pe;
+ int cs = EVIL;
+ VALUE result = Qnil;
+ GET_PARSER;
+
+ %% write init;
+ p = json->source;
+ pe = p + json->len;
+ %% write exec;
+
+ if (cs >= JSON_quirks_mode_first_final && p == pe) {
+ return result;
+ } else {
+ rb_raise(eParserError, "%u: unexpected token at '%s'", __LINE__, p);
+ return Qnil;
+ }
+}
+
+/*
+ * call-seq: parse()
+ *
+ * Parses the current JSON text _source_ and returns the complete data
+ * structure as a result.
+ */
+static VALUE cParser_parse(VALUE self)
+{
+ GET_PARSER;
+
+ if (json->quirks_mode) {
+ return cParser_parse_quirks_mode(self);
+ } else {
+ return cParser_parse_strict(self);
+ }
+}
+
+
+static JSON_Parser *JSON_allocate()
+{
+ JSON_Parser *json = ALLOC(JSON_Parser);
+ MEMZERO(json, JSON_Parser, 1);
+ return json;
+}
+
+static void JSON_mark(JSON_Parser *json)
+{
+ rb_gc_mark_maybe(json->Vsource);
+ rb_gc_mark_maybe(json->create_id);
+ rb_gc_mark_maybe(json->object_class);
+ rb_gc_mark_maybe(json->array_class);
+ rb_gc_mark_maybe(json->match_string);
+}
+
+static void JSON_free(JSON_Parser *json)
+{
+ ruby_xfree(json);
+}
+
+static VALUE cJSON_parser_s_allocate(VALUE klass)
+{
+ JSON_Parser *json = JSON_allocate();
+ return Data_Wrap_Struct(klass, JSON_mark, JSON_free, json);
+}
+
+/*
+ * call-seq: source()
+ *
+ * Returns a copy of the current _source_ string, that was used to construct
+ * this Parser.
+ */
+static VALUE cParser_source(VALUE self)
+{
+ GET_PARSER;
+ return rb_str_dup(json->Vsource);
+}
+
+/*
+ * call-seq: quirks_mode?()
+ *
+ * Returns a true, if this parser is in quirks_mode, false otherwise.
+ */
+static VALUE cParser_quirks_mode_p(VALUE self)
+{
+ GET_PARSER;
+ return json->quirks_mode ? Qtrue : Qfalse;
+}
+
+
+void Init_parser()
+{
+ rb_require("json/common");
+ mJSON = rb_define_module("JSON");
+ mExt = rb_define_module_under(mJSON, "Ext");
+ cParser = rb_define_class_under(mExt, "Parser", rb_cObject);
+ eParserError = rb_path2class("JSON::ParserError");
+ eNestingError = rb_path2class("JSON::NestingError");
+ rb_define_alloc_func(cParser, cJSON_parser_s_allocate);
+ rb_define_method(cParser, "initialize", cParser_initialize, -1);
+ rb_define_method(cParser, "parse", cParser_parse, 0);
+ rb_define_method(cParser, "source", cParser_source, 0);
+ rb_define_method(cParser, "quirks_mode?", cParser_quirks_mode_p, 0);
+
+ CNaN = rb_const_get(mJSON, rb_intern("NaN"));
+ CInfinity = rb_const_get(mJSON, rb_intern("Infinity"));
+ CMinusInfinity = rb_const_get(mJSON, rb_intern("MinusInfinity"));
+
+ i_json_creatable_p = rb_intern("json_creatable?");
+ i_json_create = rb_intern("json_create");
+ i_create_id = rb_intern("create_id");
+ i_create_additions = rb_intern("create_additions");
+ i_chr = rb_intern("chr");
+ i_max_nesting = rb_intern("max_nesting");
+ i_allow_nan = rb_intern("allow_nan");
+ i_symbolize_names = rb_intern("symbolize_names");
+ i_quirks_mode = rb_intern("quirks_mode");
+ i_object_class = rb_intern("object_class");
+ i_array_class = rb_intern("array_class");
+ i_match = rb_intern("match");
+ i_match_string = rb_intern("match_string");
+ i_key_p = rb_intern("key?");
+ i_deep_const_get = rb_intern("deep_const_get");
+ i_aset = rb_intern("[]=");
+ i_aref = rb_intern("[]");
+ i_leftshift = rb_intern("<<");
+#ifdef HAVE_RUBY_ENCODING_H
+ CEncoding_UTF_8 = rb_funcall(rb_path2class("Encoding"), rb_intern("find"), 1, rb_str_new2("utf-8"));
+ CEncoding_UTF_16BE = rb_funcall(rb_path2class("Encoding"), rb_intern("find"), 1, rb_str_new2("utf-16be"));
+ CEncoding_UTF_16LE = rb_funcall(rb_path2class("Encoding"), rb_intern("find"), 1, rb_str_new2("utf-16le"));
+ CEncoding_UTF_32BE = rb_funcall(rb_path2class("Encoding"), rb_intern("find"), 1, rb_str_new2("utf-32be"));
+ CEncoding_UTF_32LE = rb_funcall(rb_path2class("Encoding"), rb_intern("find"), 1, rb_str_new2("utf-32le"));
+ CEncoding_ASCII_8BIT = rb_funcall(rb_path2class("Encoding"), rb_intern("find"), 1, rb_str_new2("ascii-8bit"));
+ i_encoding = rb_intern("encoding");
+ i_encode = rb_intern("encode");
+#else
+ i_iconv = rb_intern("iconv");
+#endif
+}
+
+/*
+ * Local variables:
+ * mode: c
+ * c-file-style: ruby
+ * indent-tabs-mode: nil
+ * End:
+ */
diff --git a/ext/json/parser/prereq.mk b/ext/json/parser/prereq.mk
new file mode 100644
index 0000000000..440ef4017e
--- /dev/null
+++ b/ext/json/parser/prereq.mk
@@ -0,0 +1,9 @@
+RAGEL = ragel
+
+.SUFFIXES: .rl
+
+.rl.c:
+ $(RAGEL) -G2 $<
+ $(BASERUBY) -pli -e '$$_.sub!(/[ \t]+$$/, "")' $@
+
+parser.c:
diff --git a/ext/nkf/.cvsignore b/ext/nkf/.cvsignore
deleted file mode 100644
index 814345ece8..0000000000
--- a/ext/nkf/.cvsignore
+++ /dev/null
@@ -1,4 +0,0 @@
-Makefile
-mkmf.log
-*.def
-extconf.h
diff --git a/ext/nkf/lib/kconv.rb b/ext/nkf/lib/kconv.rb
index 6230996876..f8c1ae8f59 100644
--- a/ext/nkf/lib/kconv.rb
+++ b/ext/nkf/lib/kconv.rb
@@ -51,8 +51,8 @@ module Kconv
# call-seq:
# Kconv.kconv(str, to_enc, from_enc=nil)
#
- # Convert <code>str</code> to out_code.
- # <code>out_code</code> and <code>in_code</code> are given as constants of Kconv.
+ # Convert <code>str</code> to <code>to_enc</code>.
+ # <code>to_enc</code> and <code>from_enc</code> are given as constants of Kconv or Encoding objects.
def kconv(str, to_enc, from_enc=nil)
opt = ''
opt += ' --ic=' + from_enc.to_s if from_enc
@@ -199,10 +199,10 @@ class String
# call-seq:
# String#kconv(to_enc, from_enc)
#
- # Convert <code>self</code> to out_code.
- # <code>out_code</code> and <code>in_code</code> are given as constants of Kconv.
+ # Convert <code>self</code> to <code>to_enc</code>.
+ # <code>to_enc</code> and <code>from_enc</code> are given as constants of Kconv or Encoding objects.
def kconv(to_enc, from_enc=nil)
- form_enc = self.encoding if !from_enc && self.encoding != Encoding.list[0]
+ from_enc = self.encoding if !from_enc && self.encoding != Encoding.list[0]
Kconv::kconv(self, to_enc, from_enc)
end
diff --git a/ext/nkf/nkf-utf8/config.h b/ext/nkf/nkf-utf8/config.h
index 752ed38d59..51dc2a5152 100644
--- a/ext/nkf/nkf-utf8/config.h
+++ b/ext/nkf/nkf-utf8/config.h
@@ -39,7 +39,7 @@
/*
* Select Default Output Encoding
- *
+ *
*/
/* #define DEFAULT_CODE_JIS */
diff --git a/ext/nkf/nkf-utf8/nkf.c b/ext/nkf/nkf-utf8/nkf.c
index da1c766b4a..0382f30938 100644
--- a/ext/nkf/nkf-utf8/nkf.c
+++ b/ext/nkf/nkf-utf8/nkf.c
@@ -1,6 +1,6 @@
/*
* Copyright (c) 1987, Fujitsu LTD. (Itaru ICHIKAWA).
- * Copyright (c) 1996-2009, The nkf Project.
+ * Copyright (c) 1996-2010, The nkf Project.
*
* This software is provided 'as-is', without any express or implied
* warranty. In no event will the authors be held liable for any damages
@@ -20,11 +20,11 @@
*
* 3. This notice may not be removed or altered from any source distribution.
*/
-#define NKF_VERSION "2.0.9"
-#define NKF_RELEASE_DATE "2009-01-20"
+#define NKF_VERSION "2.1.2"
+#define NKF_RELEASE_DATE "2011-09-08"
#define COPY_RIGHT \
"Copyright (C) 1987, FUJITSU LTD. (I.Ichikawa).\n" \
- "Copyright (C) 1996-2009, The nkf Project."
+ "Copyright (C) 1996-2011, The nkf Project."
#include "config.h"
#include "nkf.h"
@@ -210,6 +210,8 @@ struct {
} encoding_name_to_id_table[] = {
{"US-ASCII", ASCII},
{"ASCII", ASCII},
+ {"646", ASCII},
+ {"ROMAN8", ASCII},
{"ISO-2022-JP", ISO_2022_JP},
{"ISO2022JP-CP932", CP50220},
{"CP50220", CP50220},
@@ -221,6 +223,8 @@ struct {
{"ISO-2022-JP-2004", ISO_2022_JP_2004},
{"SHIFT_JIS", SHIFT_JIS},
{"SJIS", SHIFT_JIS},
+ {"MS_Kanji", SHIFT_JIS},
+ {"PCK", SHIFT_JIS},
{"WINDOWS-31J", WINDOWS_31J},
{"CSWINDOWS31J", WINDOWS_31J},
{"CP932", WINDOWS_31J},
@@ -295,7 +299,7 @@ struct {
&& (c != '(') && (c != ')') && (c != '.') && (c != 0x22)))
#define is_ibmext_in_sjis(c2) (CP932_TABLE_BEGIN <= c2 && c2 <= CP932_TABLE_END)
-#define nkf_byte_jisx0201_katakana_p(c) (SP <= c && c < (0xE0&0x7F))
+#define nkf_byte_jisx0201_katakana_p(c) (SP <= c && c <= 0x5F)
#define HOLD_SIZE 1024
#if defined(INT_IS_SHORT)
@@ -379,6 +383,8 @@ static unsigned char stdibuf[IOBUF_SIZE];
static unsigned char stdobuf[IOBUF_SIZE];
#endif
+#define NKF_UNSPECIFIED (-TRUE)
+
/* flags */
static int unbuf_f = FALSE;
static int estab_f = FALSE;
@@ -393,7 +399,7 @@ static int mimebuf_f = FALSE; /* MIME buffered input */
static int broken_f = FALSE; /* convert ESC-less broken JIS */
static int iso8859_f = FALSE; /* ISO8859 through */
static int mimeout_f = FALSE; /* base64 mode */
-static int x0201_f = X0201_DEFAULT; /* convert JIS X 0201 */
+static int x0201_f = NKF_UNSPECIFIED; /* convert JIS X 0201 */
static int iso2022jp_f = FALSE; /* replace non ISO-2022-JP with GETA */
#ifdef UNICODE_NORMALIZATION
@@ -468,8 +474,10 @@ struct input_code input_code_list[] = {
{"Shift_JIS", 0, 0, 0, {0, 0, 0}, s_status, s_iconv, 0},
#ifdef UTF8_INPUT_ENABLE
{"UTF-8", 0, 0, 0, {0, 0, 0}, w_status, w_iconv, 0},
+ {"UTF-16", 0, 0, 0, {0, 0, 0}, NULL, w_iconv16, 0},
+ {"UTF-32", 0, 0, 0, {0, 0, 0}, NULL, w_iconv32, 0},
#endif
- {0}
+ {NULL, 0, 0, 0, {0, 0, 0}, NULL, NULL, 0}
};
static int mimeout_mode = 0; /* 0, -1, 'Q', 'B', 1, 2 */
@@ -809,11 +817,11 @@ static nkf_buf_t *
nkf_buf_new(int length)
{
nkf_buf_t *buf = nkf_xmalloc(sizeof(nkf_buf_t));
- buf->ptr = nkf_xmalloc(length);
+ buf->ptr = nkf_xmalloc(sizeof(nkf_char) * length);
buf->capa = length;
buf->len = 0;
return buf;
-}
+}
#if 0
static void
@@ -827,7 +835,7 @@ nkf_buf_dispose(nkf_buf_t *buf)
#define nkf_buf_length(buf) ((buf)->len)
#define nkf_buf_empty_p(buf) ((buf)->len == 0)
-static unsigned char
+static nkf_char
nkf_buf_at(nkf_buf_t *buf, int index)
{
assert(index <= buf->len);
@@ -849,7 +857,7 @@ nkf_buf_push(nkf_buf_t *buf, nkf_char c)
buf->ptr[buf->len++] = c;
}
-static unsigned char
+static nkf_char
nkf_buf_pop(nkf_buf_t *buf)
{
assert(!nkf_buf_empty_p(buf));
@@ -894,7 +902,7 @@ usage(void)
" Z[0-4] Default/0: Convert JISX0208 Alphabet to ASCII\n"
" 1: Kankaku to one space 2: to two spaces 3: HTML Entity\n"
" 4: JISX0208 Katakana to JISX0201 Katakana\n"
- " X,x Assume X0201 kana in MS-Kanji, -x preserves X0201\n"
+ " X,x Convert Halfwidth Katakana to Fullwidth or preserve it\n"
);
fprintf(HELP_OUTPUT,
" O Output to File (DEFAULT 'nkf.out')\n"
@@ -1026,7 +1034,7 @@ nkf_each_char_to_hex(void (*f)(nkf_char c2,nkf_char c1), nkf_char c)
int shift = 20;
c &= VALUE_MASK;
while(shift >= 0){
- if(c >= 1<<shift){
+ if(c >= NKF_INT32_C(1)<<shift){
while(shift >= 0){
(*f)(0, bin2hex(c>>shift));
shift -= 4;
@@ -1201,9 +1209,10 @@ set_input_encoding(nkf_encoding *enc)
case ISO_8859_1:
iso8859_f = TRUE;
break;
- case CP50220:
case CP50221:
case CP50222:
+ if (x0201_f == NKF_UNSPECIFIED) x0201_f = FALSE; /* -x specified implicitly */
+ case CP50220:
#ifdef SHIFTJIS_CP932
cp51932_f = TRUE;
#endif
@@ -1225,6 +1234,7 @@ set_input_encoding(nkf_encoding *enc)
case SHIFT_JIS:
break;
case WINDOWS_31J:
+ if (x0201_f == NKF_UNSPECIFIED) x0201_f = FALSE; /* -x specified implicitly */
#ifdef SHIFTJIS_CP932
cp51932_f = TRUE;
#endif
@@ -1246,6 +1256,7 @@ set_input_encoding(nkf_encoding *enc)
case EUCJP_NKF:
break;
case CP51932:
+ if (x0201_f == NKF_UNSPECIFIED) x0201_f = FALSE; /* -x specified implicitly */
#ifdef SHIFTJIS_CP932
cp51932_f = TRUE;
#endif
@@ -1254,6 +1265,7 @@ set_input_encoding(nkf_encoding *enc)
#endif
break;
case EUCJP_MS:
+ if (x0201_f == NKF_UNSPECIFIED) x0201_f = FALSE; /* -x specified implicitly */
#ifdef SHIFTJIS_CP932
cp51932_f = FALSE;
#endif
@@ -1262,6 +1274,7 @@ set_input_encoding(nkf_encoding *enc)
#endif
break;
case EUCJP_ASCII:
+ if (x0201_f == NKF_UNSPECIFIED) x0201_f = FALSE; /* -x specified implicitly */
#ifdef SHIFTJIS_CP932
cp51932_f = FALSE;
#endif
@@ -1316,7 +1329,6 @@ set_output_encoding(nkf_encoding *enc)
{
switch (nkf_enc_to_index(enc)) {
case CP50220:
- x0201_f = TRUE;
#ifdef SHIFTJIS_CP932
if (cp932inv_f == TRUE) cp932inv_f = FALSE;
#endif
@@ -1325,6 +1337,7 @@ set_output_encoding(nkf_encoding *enc)
#endif
break;
case CP50221:
+ if (x0201_f == NKF_UNSPECIFIED) x0201_f = FALSE; /* -x specified implicitly */
#ifdef SHIFTJIS_CP932
if (cp932inv_f == TRUE) cp932inv_f = FALSE;
#endif
@@ -1332,6 +1345,11 @@ set_output_encoding(nkf_encoding *enc)
ms_ucs_map_f = UCS_MAP_CP932;
#endif
break;
+ case ISO_2022_JP:
+#ifdef SHIFTJIS_CP932
+ if (cp932inv_f == TRUE) cp932inv_f = FALSE;
+#endif
+ break;
case ISO_2022_JP_1:
x0212_f = TRUE;
#ifdef SHIFTJIS_CP932
@@ -1348,6 +1366,7 @@ set_output_encoding(nkf_encoding *enc)
case SHIFT_JIS:
break;
case WINDOWS_31J:
+ if (x0201_f == NKF_UNSPECIFIED) x0201_f = FALSE; /* -x specified implicitly */
#ifdef UTF8_OUTPUT_ENABLE
ms_ucs_map_f = UCS_MAP_CP932;
#endif
@@ -1376,6 +1395,7 @@ set_output_encoding(nkf_encoding *enc)
#endif
break;
case CP51932:
+ if (x0201_f == NKF_UNSPECIFIED) x0201_f = FALSE; /* -x specified implicitly */
#ifdef SHIFTJIS_CP932
if (cp932inv_f == TRUE) cp932inv_f = FALSE;
#endif
@@ -1384,12 +1404,14 @@ set_output_encoding(nkf_encoding *enc)
#endif
break;
case EUCJP_MS:
+ if (x0201_f == NKF_UNSPECIFIED) x0201_f = FALSE; /* -x specified implicitly */
x0212_f = TRUE;
#ifdef UTF8_OUTPUT_ENABLE
ms_ucs_map_f = UCS_MAP_MS;
#endif
break;
case EUCJP_ASCII:
+ if (x0201_f == NKF_UNSPECIFIED) x0201_f = FALSE; /* -x specified implicitly */
x0212_f = TRUE;
#ifdef UTF8_OUTPUT_ENABLE
ms_ucs_map_f = UCS_MAP_ASCII;
@@ -1426,6 +1448,7 @@ set_output_encoding(nkf_encoding *enc)
output_endian = ENDIAN_LITTLE;
output_bom_f = TRUE;
break;
+ case UTF_32:
case UTF_32BE_BOM:
output_bom_f = TRUE;
break;
@@ -1652,7 +1675,7 @@ nkf_unicode_to_utf8(nkf_char val, nkf_char *p1, nkf_char *p2, nkf_char *p3, nkf_
*p3 = 0x80 | ( val & 0x3f);
*p4 = 0;
} else if (nkf_char_unicode_value_p(val)) {
- *p1 = 0xe0 | (val >> 16);
+ *p1 = 0xf0 | (val >> 18);
*p2 = 0x80 | ((val >> 12) & 0x3f);
*p3 = 0x80 | ((val >> 6) & 0x3f);
*p4 = 0x80 | ( val & 0x3f);
@@ -2179,8 +2202,8 @@ unicode_iconv(nkf_char wc)
return 0;
}
-#define NKF_ICONV_NEED_ONE_MORE_BYTE -1
-#define NKF_ICONV_NEED_TWO_MORE_BYTES -2
+#define NKF_ICONV_NEED_ONE_MORE_BYTE (size_t)-1
+#define NKF_ICONV_NEED_TWO_MORE_BYTES (size_t)-2
#define UTF16_TO_UTF32(lead, trail) (((lead) << 10) + (trail) - NKF_INT32_C(0x35FDC00))
static size_t
nkf_iconv_utf_16(nkf_char c1, nkf_char c2, nkf_char c3, nkf_char c4)
@@ -2216,13 +2239,15 @@ nkf_iconv_utf_16(nkf_char c1, nkf_char c2, nkf_char c3, nkf_char c4)
static nkf_char
w_iconv16(nkf_char c2, nkf_char c1, nkf_char c0)
{
- return 0;
+ (*oconv)(c2, c1);
+ return 16; /* different from w_iconv32 */
}
static nkf_char
w_iconv32(nkf_char c2, nkf_char c1, nkf_char c0)
{
- return 0;
+ (*oconv)(c2, c1);
+ return 32; /* different from w_iconv16 */
}
static size_t
@@ -3036,23 +3061,23 @@ std_putc(nkf_char c)
}
#endif /*WIN32DLL*/
-static unsigned char hold_buf[HOLD_SIZE*2];
+static nkf_char hold_buf[HOLD_SIZE*2];
static int hold_count = 0;
static nkf_char
push_hold_buf(nkf_char c2)
{
if (hold_count >= HOLD_SIZE*2)
return (EOF);
- hold_buf[hold_count++] = (unsigned char)c2;
+ hold_buf[hold_count++] = c2;
return ((hold_count >= HOLD_SIZE*2) ? EOF : hold_count);
}
static int
-h_conv(FILE *f, int c1, int c2)
+h_conv(FILE *f, nkf_char c1, nkf_char c2)
{
- int ret, c4, c3;
+ int ret;
int hold_index;
-
+ nkf_char c3, c4;
/** it must NOT be in the kanji shifte sequence */
/** it must NOT be written in JIS7 */
@@ -3102,7 +3127,11 @@ h_conv(FILE *f, int c1, int c2)
hold_index = 0;
while (hold_index < hold_count){
c1 = hold_buf[hold_index++];
- if (c1 <= DEL){
+ if (nkf_char_unicode_p(c1)) {
+ (*oconv)(0, c1);
+ continue;
+ }
+ else if (c1 <= DEL){
(*iconv)(0, c1, 0);
continue;
}else if (iconv == s_iconv && 0xa1 <= c1 && c1 <= 0xdf){
@@ -3128,18 +3157,16 @@ h_conv(FILE *f, int c1, int c2)
} else if ((c3 = (*i_getc)(f)) == EOF) {
ret = EOF;
break;
- } else {
- code_status(c3);
- if (hold_index < hold_count){
- c4 = hold_buf[hold_index++];
- } else if ((c4 = (*i_getc)(f)) == EOF) {
- c3 = ret = EOF;
- break;
- } else {
- code_status(c4);
- (*iconv)(c1, c2, (c3<<8)|c4);
- }
}
+ code_status(c3);
+ if (hold_index < hold_count){
+ c4 = hold_buf[hold_index++];
+ } else if ((c4 = (*i_getc)(f)) == EOF) {
+ c3 = ret = EOF;
+ break;
+ }
+ code_status(c4);
+ (*iconv)(c1, c2, (c3<<8)|c4);
break;
case -1:
/* 3 bytes EUC or UTF-8 */
@@ -3339,6 +3366,40 @@ eol_conv(nkf_char c2, nkf_char c1)
else if (c2 != 0 || c1 != LF) (*o_eol_conv)(c2, c1);
}
+static void
+put_newline(void (*func)(nkf_char))
+{
+ switch (eolmode_f ? eolmode_f : DEFAULT_NEWLINE) {
+ case CRLF:
+ (*func)(0x0D);
+ (*func)(0x0A);
+ break;
+ case CR:
+ (*func)(0x0D);
+ break;
+ case LF:
+ (*func)(0x0A);
+ break;
+ }
+}
+
+static void
+oconv_newline(void (*func)(nkf_char, nkf_char))
+{
+ switch (eolmode_f ? eolmode_f : DEFAULT_NEWLINE) {
+ case CRLF:
+ (*func)(0, 0x0D);
+ (*func)(0, 0x0A);
+ break;
+ case CR:
+ (*func)(0, 0x0D);
+ break;
+ case LF:
+ (*func)(0, 0x0A);
+ break;
+ }
+}
+
/*
Return value of fold_conv()
@@ -3511,13 +3572,13 @@ fold_conv(nkf_char c2, nkf_char c1)
/* terminator process */
switch(fold_state) {
case LF:
- OCONV_NEWLINE((*o_fconv));
+ oconv_newline(o_fconv);
(*o_fconv)(c2,c1);
break;
case 0:
return;
case CR:
- OCONV_NEWLINE((*o_fconv));
+ oconv_newline(o_fconv);
break;
case TAB:
case SP:
@@ -3804,6 +3865,7 @@ static const unsigned char *mime_pattern[] = {
(const unsigned char *)"\075?ISO-8859-1?Q?",
(const unsigned char *)"\075?ISO-8859-1?B?",
(const unsigned char *)"\075?ISO-2022-JP?B?",
+ (const unsigned char *)"\075?ISO-2022-JP?B?",
(const unsigned char *)"\075?ISO-2022-JP?Q?",
#if defined(UTF8_INPUT_ENABLE)
(const unsigned char *)"\075?UTF-8?B?",
@@ -3816,7 +3878,7 @@ static const unsigned char *mime_pattern[] = {
/* $B3:Ev$9$k%3!<%I$NM%@hEY$r>e$2$k$?$a$NL\0u(B */
nkf_char (*mime_priority_func[])(nkf_char c2, nkf_char c1, nkf_char c0) = {
- e_iconv, s_iconv, 0, 0, 0, 0,
+ e_iconv, s_iconv, 0, 0, 0, 0, 0,
#if defined(UTF8_INPUT_ENABLE)
w_iconv, w_iconv,
#endif
@@ -3824,7 +3886,7 @@ nkf_char (*mime_priority_func[])(nkf_char c2, nkf_char c1, nkf_char c0) = {
};
static const nkf_char mime_encode[] = {
- EUC_JP, SHIFT_JIS, ISO_8859_1, ISO_8859_1, JIS_X_0208, JIS_X_0201_1976_K,
+ EUC_JP, SHIFT_JIS, ISO_8859_1, ISO_8859_1, JIS_X_0208, JIS_X_0201_1976_K, JIS_X_0201_1976_K,
#if defined(UTF8_INPUT_ENABLE)
UTF_8, UTF_8,
#endif
@@ -3833,7 +3895,7 @@ static const nkf_char mime_encode[] = {
};
static const nkf_char mime_encode_method[] = {
- 'B', 'B','Q', 'B', 'B', 'Q',
+ 'B', 'B','Q', 'B', 'B', 'B', 'Q',
#if defined(UTF8_INPUT_ENABLE)
'B', 'Q',
#endif
@@ -4197,7 +4259,7 @@ numchar_getc(FILE *f)
nkf_char (*u)(nkf_char c ,FILE *f) = i_nungetc;
int i = 0, j;
nkf_char buf[12];
- long c = -1;
+ nkf_char c = -1;
buf[i] = (*g)(f);
if (buf[i] == '&'){
@@ -4427,7 +4489,7 @@ mime_getc(FILE *f)
}
if (c1=='='&&c2<SP) { /* this is soft wrap */
while((c1 = (*i_mgetc)(f)) <=SP) {
- if ((c1 = (*i_mgetc)(f)) == EOF) return (EOF);
+ if (c1 == EOF) return (EOF);
}
mime_decode_mode = 'Q'; /* still in MIME */
goto restart_mime_q;
@@ -4573,7 +4635,7 @@ static const char basis_64[] =
#define MIMEOUT_BUF_LENGTH 74
static struct {
- char buf[MIMEOUT_BUF_LENGTH+1];
+ unsigned char buf[MIMEOUT_BUF_LENGTH+1];
int count;
} mimeout_state;
@@ -4599,7 +4661,7 @@ open_mime(nkf_char mode)
(*o_mputc)(mimeout_state.buf[i]);
i++;
}
- PUT_NEWLINE((*o_mputc));
+ put_newline(o_mputc);
(*o_mputc)(SP);
base64_count = 1;
if (mimeout_state.count>0 && nkf_isspace(mimeout_state.buf[i])) {
@@ -4632,14 +4694,14 @@ mime_prechar(nkf_char c2, nkf_char c1)
if (c2 == EOF){
if (base64_count + mimeout_state.count/3*4> 73){
(*o_base64conv)(EOF,0);
- OCONV_NEWLINE((*o_base64conv));
+ oconv_newline(o_base64conv);
(*o_base64conv)(0,SP);
base64_count = 1;
}
} else {
- if (base64_count + mimeout_state.count/3*4> 66) {
+ if ((c2 != 0 || c1 > DEL) && base64_count + mimeout_state.count/3*4> 66) {
(*o_base64conv)(EOF,0);
- OCONV_NEWLINE((*o_base64conv));
+ oconv_newline(o_base64conv);
(*o_base64conv)(0,SP);
base64_count = 1;
mimeout_mode = -1;
@@ -4650,7 +4712,7 @@ mime_prechar(nkf_char c2, nkf_char c1)
mimeout_mode = (output_mode==ASCII ||output_mode == ISO_8859_1) ? 'Q' : 'B';
open_mime(output_mode);
(*o_base64conv)(EOF,0);
- OCONV_NEWLINE((*o_base64conv));
+ oconv_newline(o_base64conv);
(*o_base64conv)(0,SP);
base64_count = 1;
mimeout_mode = -1;
@@ -4748,14 +4810,14 @@ mime_putc(nkf_char c)
if (base64_count > 71){
if (c!=CR && c!=LF) {
(*o_mputc)('=');
- PUT_NEWLINE((*o_mputc));
+ put_newline(o_mputc);
}
base64_count = 0;
}
}else{
if (base64_count > 71){
eof_mime();
- PUT_NEWLINE((*o_mputc));
+ put_newline(o_mputc);
base64_count = 0;
}
if (c == EOF) { /* c==EOF */
@@ -4817,7 +4879,7 @@ mime_putc(nkf_char c)
} else if (c <= SP) {
close_mime();
if (base64_count > 70) {
- PUT_NEWLINE((*o_mputc));
+ put_newline(o_mputc);
base64_count = 0;
}
if (!nkf_isblank(c)) {
@@ -4827,7 +4889,7 @@ mime_putc(nkf_char c)
} else {
if (base64_count > 70) {
close_mime();
- PUT_NEWLINE((*o_mputc));
+ put_newline(o_mputc);
(*o_mputc)(SP);
base64_count = 1;
open_mime(output_mode);
@@ -4837,14 +4899,17 @@ mime_putc(nkf_char c)
return;
}
}
- (*o_mputc)(c);
- base64_count++;
+ if (c != 0x1B) {
+ (*o_mputc)(c);
+ base64_count++;
+ return;
+ }
}
- return;
}
if (mimeout_mode <= 0) {
- if (c <= DEL && (output_mode==ASCII ||output_mode == ISO_8859_1)) {
+ if (c <= DEL && (output_mode==ASCII || output_mode == ISO_8859_1 ||
+ output_mode == UTF_8)) {
if (nkf_isspace(c)) {
int flag = 0;
if (mimeout_mode == -1) {
@@ -4882,14 +4947,14 @@ mime_putc(nkf_char c)
i = 0;
for (; i < mimeout_state.count - len; ++i) {
- if (!strncmp(mimeout_state.buf+i, str, len)) {
+ if (!strncmp((char *)(mimeout_state.buf+i), str, len)) {
i += len - 2;
break;
}
}
if (i == 0 || i == mimeout_state.count - len) {
- PUT_NEWLINE((*o_mputc));
+ put_newline(o_mputc);
base64_count = 0;
if (!nkf_isspace(mimeout_state.buf[0])){
(*o_mputc)(SP);
@@ -4901,7 +4966,7 @@ mime_putc(nkf_char c)
for (j = 0; j <= i; ++j) {
(*o_mputc)(mimeout_state.buf[j]);
}
- PUT_NEWLINE((*o_mputc));
+ put_newline(o_mputc);
base64_count = 1;
for (; j <= mimeout_state.count; ++j) {
mimeout_state.buf[j - i] = mimeout_state.buf[j];
@@ -4935,14 +5000,15 @@ mime_putc(nkf_char c)
}
}else{
/* mimeout_mode == 'B', 1, 2 */
- if ( c<=DEL && (output_mode==ASCII ||output_mode == ISO_8859_1)) {
+ if (c <= DEL && (output_mode==ASCII || output_mode == ISO_8859_1 ||
+ output_mode == UTF_8)) {
if (lastchar == CR || lastchar == LF){
if (nkf_isblank(c)) {
for (i=0;i<mimeout_state.count;i++) {
mimeout_addchar(mimeout_state.buf[i]);
}
mimeout_state.count = 0;
- } else if (SP<c && c<DEL) {
+ } else {
eof_mime();
for (i=0;i<mimeout_state.count;i++) {
(*o_mputc)(mimeout_state.buf[i]);
@@ -5128,7 +5194,7 @@ reinit(void)
broken_f = FALSE;
iso8859_f = FALSE;
mimeout_f = FALSE;
- x0201_f = X0201_DEFAULT;
+ x0201_f = NKF_UNSPECIFIED;
iso2022jp_f = FALSE;
#if defined(UTF8_INPUT_ENABLE) || defined(UTF8_OUTPUT_ENABLE)
ms_ucs_map_f = UCS_MAP_ASCII;
@@ -5238,6 +5304,12 @@ module_connection(void)
set_output_encoding(output_encoding);
oconv = nkf_enc_to_oconv(output_encoding);
o_putc = std_putc;
+ if (nkf_enc_unicode_p(output_encoding))
+ output_mode = UTF_8;
+
+ if (x0201_f == NKF_UNSPECIFIED) {
+ x0201_f = X0201_DEFAULT;
+ }
/* replace continucation module, from output side */
@@ -5346,7 +5418,7 @@ noconvert(FILE *f)
#define NEXT continue /* no output, get next */
#define SKIP c2=0;continue /* no output, get next */
#define MORE c2=c1;continue /* need one more byte */
-#define SEND ; /* output c1 and c2, get next */
+#define SEND (void)0 /* output c1 and c2, get next */
#define LAST break /* end of loop, go closing */
#define set_input_mode(mode) do { \
input_mode = mode; \
@@ -5386,18 +5458,18 @@ kanji_convert(FILE *f)
(c4 = (*i_getc)(f)) != EOF) {
nkf_iconv_utf_32(c1, c2, c3, c4);
}
- (*i_ungetc)(EOF, f);
+ goto finished;
}
else if (iconv == w_iconv16) {
while ((c1 = (*i_getc)(f)) != EOF &&
(c2 = (*i_getc)(f)) != EOF) {
- if (nkf_iconv_utf_16(c1, c2, 0, 0) == -2 &&
+ if (nkf_iconv_utf_16(c1, c2, 0, 0) == NKF_ICONV_NEED_TWO_MORE_BYTES &&
(c3 = (*i_getc)(f)) != EOF &&
(c4 = (*i_getc)(f)) != EOF) {
nkf_iconv_utf_16(c1, c2, c3, c4);
}
}
- (*i_ungetc)(EOF, f);
+ goto finished;
}
#endif
@@ -5444,6 +5516,12 @@ kanji_convert(FILE *f)
if (input_mode == JIS_X_0208 && DEL <= c1 && c1 < 0x92) {
/* CP5022x */
MORE;
+ }else if (input_codename && input_codename[0] == 'I' &&
+ 0xA1 <= c1 && c1 <= 0xDF) {
+ /* JIS X 0201 Katakana in 8bit JIS */
+ c2 = JIS_X_0201_1976_K;
+ c1 &= 0x7f;
+ SEND;
} else if (c1 > DEL) {
/* 8 bit code */
if (!estab_f && !iso8859_f) {
@@ -5518,7 +5596,7 @@ kanji_convert(FILE *f)
SKIP;
} else if (c1 == ESC && (!is_8bit || mime_decode_mode)) {
if ((c1 = (*i_getc)(f)) == EOF) {
- /* (*oconv)(0, ESC); don't send bogus code */
+ (*oconv)(0, ESC);
LAST;
}
else if (c1 == '&') {
@@ -5648,7 +5726,7 @@ kanji_convert(FILE *f)
} else if (c1 == ESC && iconv == s_iconv) {
/* ESC in Shift_JIS */
if ((c1 = (*i_getc)(f)) == EOF) {
- /* (*oconv)(0, ESC); don't send bogus code */
+ (*oconv)(0, ESC);
LAST;
} else if (c1 == '$') {
/* J-PHONE emoji */
@@ -5773,6 +5851,7 @@ kanji_convert(FILE *f)
/* goto next_word */
}
+finished:
/* epilogue */
(*iconv)(EOF, 0, 0);
if (!input_codename)
@@ -5795,7 +5874,7 @@ kanji_convert(FILE *f)
/*
* int options(unsigned char *cp)
- *
+ *
* return values:
* 0: success
* -1: ArgumentError
@@ -5824,7 +5903,7 @@ options(unsigned char *cp)
option_mode = 1;
return 0;
}
- for (i=0;i<sizeof(long_option)/sizeof(long_option[0]);i++) {
+ for (i=0;i<(int)(sizeof(long_option)/sizeof(long_option[0]));i++) {
p = (unsigned char *)long_option[i].name;
for (j=0;*p && *p != '=' && *p == cp[j];p++, j++);
if (*p == cp[j] || cp[j] == SP){
@@ -6132,7 +6211,7 @@ options(unsigned char *cp)
break;
#endif
#ifdef UTF8_OUTPUT_ENABLE
- case 'w': /* UTF-8 output */
+ case 'w': /* UTF-{8,16,32} output */
if (cp[0] == '8') {
cp++;
if (cp[0] == '0'){
@@ -6157,19 +6236,18 @@ options(unsigned char *cp)
if (cp[0]=='L') {
cp++;
output_endian = ENDIAN_LITTLE;
+ output_bom_f = TRUE;
} else if (cp[0] == 'B') {
cp++;
- } else {
- output_encoding = nkf_enc_from_index(enc_idx);
- continue;
+ output_bom_f = TRUE;
}
if (cp[0] == '0'){
+ output_bom_f = FALSE;
cp++;
enc_idx = enc_idx == UTF_16
? (output_endian == ENDIAN_LITTLE ? UTF_16LE : UTF_16BE)
: (output_endian == ENDIAN_LITTLE ? UTF_32LE : UTF_32BE);
} else {
- output_bom_f = TRUE;
enc_idx = enc_idx == UTF_16
? (output_endian == ENDIAN_LITTLE ? UTF_16LE_BOM : UTF_16BE_BOM)
: (output_endian == ENDIAN_LITTLE ? UTF_32LE_BOM : UTF_32BE_BOM);
@@ -6229,10 +6307,10 @@ options(unsigned char *cp)
bit:3 Convert HTML Entity
bit:4 Convert JIS X 0208 Katakana to JIS X 0201 Katakana
*/
- while ('0'<= *cp && *cp <='9') {
+ while ('0'<= *cp && *cp <='4') {
alpha_f |= 1 << (*cp++ - '0');
}
- if (!alpha_f) alpha_f = 1;
+ alpha_f |= 1;
continue;
case 'x': /* Convert X0201 kana to X0208 or X0201 Conversion */
x0201_f = FALSE; /* No X0201->X0208 conversion */
diff --git a/ext/nkf/nkf-utf8/nkf.h b/ext/nkf/nkf-utf8/nkf.h
index 49f3b7ff34..dd479a0f87 100644
--- a/ext/nkf/nkf-utf8/nkf.h
+++ b/ext/nkf/nkf-utf8/nkf.h
@@ -1,7 +1,7 @@
/*
- *
+ *
* nkf.h - Header file for nkf
- *
+ *
* $Id$
*/
diff --git a/ext/nkf/nkf.c b/ext/nkf/nkf.c
index 82327bf356..05fd36de64 100644
--- a/ext/nkf/nkf.c
+++ b/ext/nkf/nkf.c
@@ -155,12 +155,12 @@ rb_nkf_convert(VALUE obj, VALUE opt, VALUE src)
input_ctr = 0;
StringValue(src);
input = (unsigned char *)RSTRING_PTR(src);
- i_len = RSTRING_LEN(src);
+ i_len = RSTRING_LENINT(src);
tmp = result = rb_str_new(0, i_len*3 + 10);
output_ctr = 0;
output = (unsigned char *)RSTRING_PTR(result);
- o_len = RSTRING_LEN(result);
+ o_len = RSTRING_LENINT(result);
*output = '\0';
kanji_convert(NULL);
@@ -192,7 +192,7 @@ rb_nkf_guess(VALUE obj, VALUE src)
input_ctr = 0;
StringValue(src);
input = (unsigned char *)RSTRING_PTR(src);
- i_len = RSTRING_LEN(src);
+ i_len = RSTRING_LENINT(src);
guess_f = TRUE;
kanji_convert( NULL );
@@ -203,7 +203,7 @@ rb_nkf_guess(VALUE obj, VALUE src)
/*
- * NKF - Ruby extension for Network Kanji Filter
+ * NKF - Ruby extension for Network Kanji Filter
*
* == Description
*
@@ -341,7 +341,7 @@ rb_nkf_guess(VALUE obj, VALUE src)
* To see ISO8859-1 (Latin-1) -l is necessary.
*
* [-mB] Decode MIME base64 encoded stream. Remove header or other part before
- * conversion.
+ * conversion.
*
* [-mQ] Decode MIME quoted stream. '_' in quoted stream is converted to space.
*
diff --git a/ext/objspace/depend b/ext/objspace/depend
new file mode 100644
index 0000000000..83a08f7078
--- /dev/null
+++ b/ext/objspace/depend
@@ -0,0 +1,3 @@
+objspace.o: $(hdrdir)/ruby/ruby.h $(hdrdir)/ruby/st.h $(hdrdir)/ruby/io.h \
+ $(hdrdir)/ruby/re.h $(top_srcdir)/node.h $(top_srcdir)/gc.h \
+ $(top_srcdir)/regint.h $(top_srcdir)/internal.h
diff --git a/ext/objspace/extconf.rb b/ext/objspace/extconf.rb
new file mode 100644
index 0000000000..23a42c4c20
--- /dev/null
+++ b/ext/objspace/extconf.rb
@@ -0,0 +1,2 @@
+$INCFLAGS << " -I$(topdir) -I$(top_srcdir)"
+create_makefile('objspace')
diff --git a/ext/objspace/objspace.c b/ext/objspace/objspace.c
new file mode 100644
index 0000000000..66e33a38c4
--- /dev/null
+++ b/ext/objspace/objspace.c
@@ -0,0 +1,650 @@
+/**********************************************************************
+
+ objspace.c - ObjectSpace extender for MRI.
+
+ $Author$
+ created at: Wed Jun 17 07:39:17 2009
+
+ NOTE: This extension library is not expected to exist except C Ruby.
+
+ All the files in this distribution are covered under the Ruby's
+ license (see the file COPYING).
+
+**********************************************************************/
+
+/* objspace library extends ObjectSpace module and add several
+ * methods to get internal statistic information about
+ * object/memory management.
+ *
+ * Generally, you *SHOULD NOT*use this library if you do not know
+ * about the MRI implementation. Mainly, this library is for (memory)
+ * profiler developers and MRI developers who need to know how MRI
+ * memory usage.
+ *
+ */
+
+#include <ruby/ruby.h>
+#include <ruby/st.h>
+#include <ruby/io.h>
+#include <ruby/re.h>
+#include "node.h"
+#include "gc.h"
+#include "regint.h"
+#include "internal.h"
+
+size_t rb_str_memsize(VALUE);
+size_t rb_ary_memsize(VALUE);
+size_t rb_io_memsize(const rb_io_t *);
+size_t rb_generic_ivar_memsize(VALUE);
+size_t rb_objspace_data_type_memsize(VALUE obj);
+
+static size_t
+memsize_of(VALUE obj)
+{
+ size_t size = 0;
+
+ if (SPECIAL_CONST_P(obj)) {
+ return 0;
+ }
+
+ if (FL_TEST(obj, FL_EXIVAR)) {
+ size += rb_generic_ivar_memsize(obj);
+ }
+
+ switch (BUILTIN_TYPE(obj)) {
+ case T_OBJECT:
+ if (!(RBASIC(obj)->flags & ROBJECT_EMBED) &&
+ ROBJECT(obj)->as.heap.ivptr) {
+ size += ROBJECT(obj)->as.heap.numiv * sizeof(VALUE);
+ }
+ break;
+ case T_MODULE:
+ case T_CLASS:
+ size += st_memsize(RCLASS_M_TBL(obj));
+ if (RCLASS_IV_TBL(obj)) {
+ size += st_memsize(RCLASS_IV_TBL(obj));
+ }
+ if (RCLASS_IV_INDEX_TBL(obj)) {
+ size += st_memsize(RCLASS_IV_INDEX_TBL(obj));
+ }
+ if (RCLASS(obj)->ptr->iv_tbl) {
+ size += st_memsize(RCLASS(obj)->ptr->iv_tbl);
+ }
+ if (RCLASS(obj)->ptr->const_tbl) {
+ size += st_memsize(RCLASS(obj)->ptr->const_tbl);
+ }
+ size += sizeof(rb_classext_t);
+ break;
+ case T_STRING:
+ size += rb_str_memsize(obj);
+ break;
+ case T_ARRAY:
+ size += rb_ary_memsize(obj);
+ break;
+ case T_HASH:
+ if (RHASH(obj)->ntbl) {
+ size += st_memsize(RHASH(obj)->ntbl);
+ }
+ break;
+ case T_REGEXP:
+ if (RREGEXP(obj)->ptr) {
+ size += onig_memsize(RREGEXP(obj)->ptr);
+ }
+ break;
+ case T_DATA:
+ size += rb_objspace_data_type_memsize(obj);
+ break;
+ case T_MATCH:
+ if (RMATCH(obj)->rmatch) {
+ struct rmatch *rm = RMATCH(obj)->rmatch;
+ size += sizeof(struct re_registers); /* TODO: onig_region_memsize(&rm->regs); */
+ size += sizeof(struct rmatch_offset) * rm->char_offset_num_allocated;
+ size += sizeof(struct rmatch);
+ }
+ break;
+ case T_FILE:
+ if (RFILE(obj)->fptr) {
+ size += rb_io_memsize(RFILE(obj)->fptr);
+ }
+ break;
+ case T_RATIONAL:
+ case T_COMPLEX:
+ break;
+ case T_ICLASS:
+ /* iClass shares table with the module */
+ break;
+
+ case T_FLOAT:
+ break;
+
+ case T_BIGNUM:
+ if (!(RBASIC(obj)->flags & RBIGNUM_EMBED_FLAG) && RBIGNUM_DIGITS(obj)) {
+ size += RBIGNUM_LEN(obj) * sizeof(BDIGIT);
+ }
+ break;
+ case T_NODE:
+ switch (nd_type(obj)) {
+ case NODE_SCOPE:
+ if (RNODE(obj)->u1.tbl) {
+ /* TODO: xfree(RANY(obj)->as.node.u1.tbl); */
+ }
+ break;
+ case NODE_ALLOCA:
+ /* TODO: xfree(RANY(obj)->as.node.u1.node); */
+ ;
+ }
+ break; /* no need to free iv_tbl */
+
+ case T_STRUCT:
+ if ((RBASIC(obj)->flags & RSTRUCT_EMBED_LEN_MASK) == 0 &&
+ RSTRUCT(obj)->as.heap.ptr) {
+ size += sizeof(VALUE) * RSTRUCT_LEN(obj);
+ }
+ break;
+
+ case T_ZOMBIE:
+ break;
+
+ default:
+ rb_bug("objspace/memsize_of(): unknown data type 0x%x(%p)",
+ BUILTIN_TYPE(obj), (void*)obj);
+ }
+
+ return size;
+}
+
+/*
+ * call-seq:
+ * ObjectSpace.memsize_of(obj) -> Integer
+ *
+ * Return consuming memory size of obj.
+ *
+ * Note that the return size is incomplete. You need to deal with
+ * this information as only a *HINT*. Especially, the size of
+ * T_DATA may not be correct.
+ *
+ * This method is not expected to work except C Ruby.
+ */
+
+static VALUE
+memsize_of_m(VALUE self, VALUE obj)
+{
+ return SIZET2NUM(memsize_of(obj));
+}
+
+struct total_data {
+ size_t total;
+ VALUE klass;
+};
+
+static int
+total_i(void *vstart, void *vend, size_t stride, void *ptr)
+{
+ VALUE v;
+ struct total_data *data = (struct total_data *)ptr;
+
+ for (v = (VALUE)vstart; v != (VALUE)vend; v += stride) {
+ if (RBASIC(v)->flags) {
+ switch (BUILTIN_TYPE(v)) {
+ case T_NONE:
+ case T_ICLASS:
+ case T_NODE:
+ case T_ZOMBIE:
+ continue;
+ case T_CLASS:
+ if (FL_TEST(v, FL_SINGLETON))
+ continue;
+ default:
+ if (data->klass == 0 || rb_obj_is_kind_of(v, data->klass)) {
+ data->total += memsize_of(v);
+ }
+ }
+ }
+ }
+
+ return 0;
+}
+
+/*
+ * call-seq:
+ * ObjectSpace.memsize_of_all([klass]) -> Integer
+ *
+ * Return consuming memory size of all living objects.
+ * If klass (should be Class object) is given, return the total
+ * memory size of instances of the given class.
+ *
+ * Note that the returned size is incomplete. You need to deal with
+ * this information as only a *HINT*. Especially, the size of
+ * T_DATA may not be correct.
+ *
+ * Note that this method does *NOT* return total malloc'ed memory size.
+ *
+ * This method can be defined by the following Ruby code:
+ *
+ * def memsize_of_all klass = false
+ * total = 0
+ * ObjectSpace.each_objects{|e|
+ * total += ObjectSpace.memsize_of(e) if klass == false || e.kind_of?(klass)
+ * }
+ * total
+ * end
+ *
+ * This method is not expected to work except C Ruby.
+ */
+
+static VALUE
+memsize_of_all_m(int argc, VALUE *argv, VALUE self)
+{
+ struct total_data data = {0, 0};
+
+ if (argc > 0) {
+ rb_scan_args(argc, argv, "01", &data.klass);
+ }
+
+ rb_objspace_each_objects(total_i, &data);
+ return SIZET2NUM(data.total);
+}
+
+static int
+set_zero_i(st_data_t key, st_data_t val, st_data_t arg)
+{
+ VALUE k = (VALUE)key;
+ VALUE hash = (VALUE)arg;
+ rb_hash_aset(hash, k, INT2FIX(0));
+ return ST_CONTINUE;
+}
+
+static int
+cos_i(void *vstart, void *vend, size_t stride, void *data)
+{
+ size_t *counts = (size_t *)data;
+ VALUE v = (VALUE)vstart;
+
+ for (;v != (VALUE)vend; v += stride) {
+ if (RBASIC(v)->flags) {
+ counts[BUILTIN_TYPE(v)] += memsize_of(v);
+ }
+ }
+ return 0;
+}
+
+/*
+ * call-seq:
+ * ObjectSpace.count_objects_size([result_hash]) -> hash
+ *
+ * Counts objects size (in bytes) for each type.
+ *
+ * Note that this information is incomplete. You need to deal with
+ * this information as only a *HINT*. Especially, total size of
+ * T_DATA may not right size.
+ *
+ * It returns a hash as:
+ * {:TOTAL=>1461154, :T_CLASS=>158280, :T_MODULE=>20672, :T_STRING=>527249, ...}
+ *
+ * If the optional argument, result_hash, is given,
+ * it is overwritten and returned.
+ * This is intended to avoid probe effect.
+ *
+ * The contents of the returned hash is implementation defined.
+ * It may be changed in future.
+ *
+ * This method is not expected to work except C Ruby.
+ */
+
+static VALUE
+count_objects_size(int argc, VALUE *argv, VALUE os)
+{
+ size_t counts[T_MASK+1];
+ size_t total = 0;
+ size_t i;
+ VALUE hash;
+
+ if (rb_scan_args(argc, argv, "01", &hash) == 1) {
+ if (TYPE(hash) != T_HASH)
+ rb_raise(rb_eTypeError, "non-hash given");
+ }
+
+ for (i = 0; i <= T_MASK; i++) {
+ counts[i] = 0;
+ }
+
+ rb_objspace_each_objects(cos_i, &counts[0]);
+
+ if (hash == Qnil) {
+ hash = rb_hash_new();
+ }
+ else if (!RHASH_EMPTY_P(hash)) {
+ st_foreach(RHASH_TBL(hash), set_zero_i, hash);
+ }
+
+ for (i = 0; i <= T_MASK; i++) {
+ if (counts[i]) {
+ VALUE type;
+ switch (i) {
+#define COUNT_TYPE(t) case t: type = ID2SYM(rb_intern(#t)); break;
+ COUNT_TYPE(T_NONE);
+ COUNT_TYPE(T_OBJECT);
+ COUNT_TYPE(T_CLASS);
+ COUNT_TYPE(T_MODULE);
+ COUNT_TYPE(T_FLOAT);
+ COUNT_TYPE(T_STRING);
+ COUNT_TYPE(T_REGEXP);
+ COUNT_TYPE(T_ARRAY);
+ COUNT_TYPE(T_HASH);
+ COUNT_TYPE(T_STRUCT);
+ COUNT_TYPE(T_BIGNUM);
+ COUNT_TYPE(T_FILE);
+ COUNT_TYPE(T_DATA);
+ COUNT_TYPE(T_MATCH);
+ COUNT_TYPE(T_COMPLEX);
+ COUNT_TYPE(T_RATIONAL);
+ COUNT_TYPE(T_NIL);
+ COUNT_TYPE(T_TRUE);
+ COUNT_TYPE(T_FALSE);
+ COUNT_TYPE(T_SYMBOL);
+ COUNT_TYPE(T_FIXNUM);
+ COUNT_TYPE(T_UNDEF);
+ COUNT_TYPE(T_NODE);
+ COUNT_TYPE(T_ICLASS);
+ COUNT_TYPE(T_ZOMBIE);
+#undef COUNT_TYPE
+ default: type = INT2NUM(i); break;
+ }
+ total += counts[i];
+ rb_hash_aset(hash, type, SIZET2NUM(counts[i]));
+ }
+ }
+ rb_hash_aset(hash, ID2SYM(rb_intern("TOTAL")), SIZET2NUM(total));
+ return hash;
+}
+
+static int
+cn_i(void *vstart, void *vend, size_t stride, void *n)
+{
+ size_t *nodes = (size_t *)n;
+ VALUE v = (VALUE)vstart;
+
+ for (; v != (VALUE)vend; v += stride) {
+ if (RBASIC(v)->flags && BUILTIN_TYPE(v) == T_NODE) {
+ size_t s = nd_type((NODE *)v);
+ nodes[s]++;
+ }
+ }
+
+ return 0;
+}
+
+/*
+ * call-seq:
+ * ObjectSpace.count_nodes([result_hash]) -> hash
+ *
+ * Counts nodes for each node type.
+ *
+ * This method is not for ordinary Ruby programmers, but for MRI developers
+ * who have interest in MRI performance and memory usage.
+ *
+ * It returns a hash as:
+ * {:NODE_METHOD=>2027, :NODE_FBODY=>1927, :NODE_CFUNC=>1798, ...}
+ *
+ * If the optional argument, result_hash, is given,
+ * it is overwritten and returned.
+ * This is intended to avoid probe effect.
+ *
+ * The contents of the returned hash is implementation defined.
+ * It may be changed in future.
+ *
+ * This method is not expected to work except C Ruby.
+ */
+
+static VALUE
+count_nodes(int argc, VALUE *argv, VALUE os)
+{
+ size_t nodes[NODE_LAST+1];
+ size_t i;
+ VALUE hash;
+
+ if (rb_scan_args(argc, argv, "01", &hash) == 1) {
+ if (TYPE(hash) != T_HASH)
+ rb_raise(rb_eTypeError, "non-hash given");
+ }
+
+ for (i = 0; i <= NODE_LAST; i++) {
+ nodes[i] = 0;
+ }
+
+ rb_objspace_each_objects(cn_i, &nodes[0]);
+
+ if (hash == Qnil) {
+ hash = rb_hash_new();
+ }
+ else if (!RHASH_EMPTY_P(hash)) {
+ st_foreach(RHASH_TBL(hash), set_zero_i, hash);
+ }
+
+ for (i=0; i<NODE_LAST; i++) {
+ if (nodes[i] != 0) {
+ VALUE node;
+ switch (i) {
+#define COUNT_NODE(n) case n: node = ID2SYM(rb_intern(#n)); break;
+ COUNT_NODE(NODE_SCOPE);
+ COUNT_NODE(NODE_BLOCK);
+ COUNT_NODE(NODE_IF);
+ COUNT_NODE(NODE_CASE);
+ COUNT_NODE(NODE_WHEN);
+ COUNT_NODE(NODE_OPT_N);
+ COUNT_NODE(NODE_WHILE);
+ COUNT_NODE(NODE_UNTIL);
+ COUNT_NODE(NODE_ITER);
+ COUNT_NODE(NODE_FOR);
+ COUNT_NODE(NODE_BREAK);
+ COUNT_NODE(NODE_NEXT);
+ COUNT_NODE(NODE_REDO);
+ COUNT_NODE(NODE_RETRY);
+ COUNT_NODE(NODE_BEGIN);
+ COUNT_NODE(NODE_RESCUE);
+ COUNT_NODE(NODE_RESBODY);
+ COUNT_NODE(NODE_ENSURE);
+ COUNT_NODE(NODE_AND);
+ COUNT_NODE(NODE_OR);
+ COUNT_NODE(NODE_MASGN);
+ COUNT_NODE(NODE_LASGN);
+ COUNT_NODE(NODE_DASGN);
+ COUNT_NODE(NODE_DASGN_CURR);
+ COUNT_NODE(NODE_GASGN);
+ COUNT_NODE(NODE_IASGN);
+ COUNT_NODE(NODE_IASGN2);
+ COUNT_NODE(NODE_CDECL);
+ COUNT_NODE(NODE_CVASGN);
+ COUNT_NODE(NODE_CVDECL);
+ COUNT_NODE(NODE_OP_ASGN1);
+ COUNT_NODE(NODE_OP_ASGN2);
+ COUNT_NODE(NODE_OP_ASGN_AND);
+ COUNT_NODE(NODE_OP_ASGN_OR);
+ COUNT_NODE(NODE_CALL);
+ COUNT_NODE(NODE_FCALL);
+ COUNT_NODE(NODE_VCALL);
+ COUNT_NODE(NODE_SUPER);
+ COUNT_NODE(NODE_ZSUPER);
+ COUNT_NODE(NODE_ARRAY);
+ COUNT_NODE(NODE_ZARRAY);
+ COUNT_NODE(NODE_VALUES);
+ COUNT_NODE(NODE_HASH);
+ COUNT_NODE(NODE_RETURN);
+ COUNT_NODE(NODE_YIELD);
+ COUNT_NODE(NODE_LVAR);
+ COUNT_NODE(NODE_DVAR);
+ COUNT_NODE(NODE_GVAR);
+ COUNT_NODE(NODE_IVAR);
+ COUNT_NODE(NODE_CONST);
+ COUNT_NODE(NODE_CVAR);
+ COUNT_NODE(NODE_NTH_REF);
+ COUNT_NODE(NODE_BACK_REF);
+ COUNT_NODE(NODE_MATCH);
+ COUNT_NODE(NODE_MATCH2);
+ COUNT_NODE(NODE_MATCH3);
+ COUNT_NODE(NODE_LIT);
+ COUNT_NODE(NODE_STR);
+ COUNT_NODE(NODE_DSTR);
+ COUNT_NODE(NODE_XSTR);
+ COUNT_NODE(NODE_DXSTR);
+ COUNT_NODE(NODE_EVSTR);
+ COUNT_NODE(NODE_DREGX);
+ COUNT_NODE(NODE_DREGX_ONCE);
+ COUNT_NODE(NODE_ARGS);
+ COUNT_NODE(NODE_ARGS_AUX);
+ COUNT_NODE(NODE_OPT_ARG);
+ COUNT_NODE(NODE_POSTARG);
+ COUNT_NODE(NODE_ARGSCAT);
+ COUNT_NODE(NODE_ARGSPUSH);
+ COUNT_NODE(NODE_SPLAT);
+ COUNT_NODE(NODE_TO_ARY);
+ COUNT_NODE(NODE_BLOCK_ARG);
+ COUNT_NODE(NODE_BLOCK_PASS);
+ COUNT_NODE(NODE_DEFN);
+ COUNT_NODE(NODE_DEFS);
+ COUNT_NODE(NODE_ALIAS);
+ COUNT_NODE(NODE_VALIAS);
+ COUNT_NODE(NODE_UNDEF);
+ COUNT_NODE(NODE_CLASS);
+ COUNT_NODE(NODE_MODULE);
+ COUNT_NODE(NODE_SCLASS);
+ COUNT_NODE(NODE_COLON2);
+ COUNT_NODE(NODE_COLON3);
+ COUNT_NODE(NODE_DOT2);
+ COUNT_NODE(NODE_DOT3);
+ COUNT_NODE(NODE_FLIP2);
+ COUNT_NODE(NODE_FLIP3);
+ COUNT_NODE(NODE_SELF);
+ COUNT_NODE(NODE_NIL);
+ COUNT_NODE(NODE_TRUE);
+ COUNT_NODE(NODE_FALSE);
+ COUNT_NODE(NODE_ERRINFO);
+ COUNT_NODE(NODE_DEFINED);
+ COUNT_NODE(NODE_POSTEXE);
+ COUNT_NODE(NODE_ALLOCA);
+ COUNT_NODE(NODE_BMETHOD);
+ COUNT_NODE(NODE_MEMO);
+ COUNT_NODE(NODE_IFUNC);
+ COUNT_NODE(NODE_DSYM);
+ COUNT_NODE(NODE_ATTRASGN);
+ COUNT_NODE(NODE_PRELUDE);
+ COUNT_NODE(NODE_LAMBDA);
+ COUNT_NODE(NODE_OPTBLOCK);
+#undef COUNT_NODE
+ default: node = INT2FIX(nodes[i]);
+ }
+ rb_hash_aset(hash, node, SIZET2NUM(nodes[i]));
+ }
+ }
+ return hash;
+}
+
+static int
+cto_i(void *vstart, void *vend, size_t stride, void *data)
+{
+ VALUE hash = (VALUE)data;
+ VALUE v = (VALUE)vstart;
+
+ for (; v != (VALUE)vend; v += stride) {
+ if (RBASIC(v)->flags && BUILTIN_TYPE(v) == T_DATA) {
+ VALUE counter;
+ VALUE key = RBASIC(v)->klass;
+
+ if (key == 0) {
+ const char *name = rb_objspace_data_type_name(v);
+ if (name == 0) name = "unknown";
+ key = ID2SYM(rb_intern(name));
+ }
+
+ counter = rb_hash_aref(hash, key);
+ if (NIL_P(counter)) {
+ counter = INT2FIX(1);
+ }
+ else {
+ counter = INT2FIX(FIX2INT(counter) + 1);
+ }
+
+ rb_hash_aset(hash, key, counter);
+ }
+ }
+
+ return 0;
+}
+
+/*
+ * call-seq:
+ * ObjectSpace.count_tdata_objects([result_hash]) -> hash
+ *
+ * Counts objects for each T_DATA type.
+ *
+ * This method is not for ordinary Ruby programmers, but for MRI developers
+ * who interest on MRI performance.
+ *
+ * It returns a hash as:
+ * {RubyVM::InstructionSequence=>504, :parser=>5, :barrier=>6,
+ * :mutex=>6, Proc=>60, RubyVM::Env=>57, Mutex=>1, Encoding=>99,
+ * ThreadGroup=>1, Binding=>1, Thread=>1, RubyVM=>1, :iseq=>1,
+ * Random=>1, ARGF.class=>1, Data=>1, :autoload=>3, Time=>2}
+ * # T_DATA objects existing at startup on r32276.
+ *
+ * If the optional argument, result_hash, is given,
+ * it is overwritten and returned.
+ * This is intended to avoid probe effect.
+ *
+ * The contents of the returned hash is implementation defined.
+ * It may be changed in future.
+ *
+ * In this version, keys are Class object or Symbol object.
+ * If object is kind of normal (accessible) object, the key is Class object.
+ * If object is not a kind of normal (internal) object, the key is symbol
+ * name, registered by rb_data_type_struct.
+ *
+ * This method is not expected to work except C Ruby.
+ *
+ */
+
+static VALUE
+count_tdata_objects(int argc, VALUE *argv, VALUE self)
+{
+ VALUE hash;
+
+ if (rb_scan_args(argc, argv, "01", &hash) == 1) {
+ if (TYPE(hash) != T_HASH)
+ rb_raise(rb_eTypeError, "non-hash given");
+ }
+
+ if (hash == Qnil) {
+ hash = rb_hash_new();
+ }
+ else if (!RHASH_EMPTY_P(hash)) {
+ st_foreach(RHASH_TBL(hash), set_zero_i, hash);
+ }
+
+ rb_objspace_each_objects(cto_i, (void *)hash);
+
+ return hash;
+}
+
+/* objspace library extends ObjectSpace module and add several
+ * methods to get internal statistic information about
+ * object/memory management.
+ *
+ * Generally, you *SHOULD NOT*use this library if you do not know
+ * about the MRI implementation. Mainly, this library is for (memory)
+ * profiler developers and MRI developers who need to know how MRI
+ * memory usage.
+ */
+
+void
+Init_objspace(void)
+{
+ VALUE rb_mObjSpace = rb_const_get(rb_cObject, rb_intern("ObjectSpace"));
+
+ rb_define_module_function(rb_mObjSpace, "memsize_of", memsize_of_m, 1);
+ rb_define_module_function(rb_mObjSpace, "memsize_of_all",
+ memsize_of_all_m, -1);
+
+ rb_define_module_function(rb_mObjSpace, "count_objects_size", count_objects_size, -1);
+ rb_define_module_function(rb_mObjSpace, "count_nodes", count_nodes, -1);
+ rb_define_module_function(rb_mObjSpace, "count_tdata_objects", count_tdata_objects, -1);
+}
diff --git a/ext/openssl/.cvsignore b/ext/openssl/.cvsignore
deleted file mode 100644
index 3a9a9f341f..0000000000
--- a/ext/openssl/.cvsignore
+++ /dev/null
@@ -1,5 +0,0 @@
-GNUmakefile
-Makefile
-mkmf.log
-dep
-extconf.h
diff --git a/ext/openssl/extconf.rb b/ext/openssl/extconf.rb
index 6b83489642..920caa641d 100644
--- a/ext/openssl/extconf.rb
+++ b/ext/openssl/extconf.rb
@@ -28,7 +28,7 @@ message "=== OpenSSL for Ruby configurator ===\n"
if with_config("debug") or enable_config("debug")
$defs.push("-DOSSL_DEBUG") unless $defs.include? "-DOSSL_DEBUG"
- if /gcc/ =~ CONFIG["CC"]
+ if CONFIG['GCC'] == 'yes'
$CPPFLAGS += " -Wall" unless $CPPFLAGS.split.include? "-Wall"
end
end
@@ -43,11 +43,14 @@ if $mingw
have_library("wsock32")
have_library("gdi32")
end
-result = have_header("openssl/ssl.h")
-result &&= %w[crypto libeay32].any? {|lib| have_library(lib, "OpenSSL_add_all_digests")}
-result &&= %w[ssl ssleay32].any? {|lib| have_library(lib, "SSL_library_init")}
-if !result
- unless pkg_config("openssl") and have_header("openssl/ssl.h")
+
+result = pkg_config("openssl") && have_header("openssl/ssl.h")
+
+unless result
+ result = have_header("openssl/ssl.h")
+ result &&= %w[crypto libeay32].any? {|lib| have_library(lib, "OpenSSL_add_all_digests")}
+ result &&= %w[ssl ssleay32].any? {|lib| have_library(lib, "SSL_library_init")}
+ unless result
message "=== Checking for required stuff failed. ===\n"
message "Makefile wasn't created. Fix the errors above.\n"
exit 1
@@ -63,6 +66,7 @@ end
message "=== Checking for OpenSSL features... ===\n"
have_func("ERR_peek_last_error")
+have_func("ASN1_put_eoc")
have_func("BN_mod_add")
have_func("BN_mod_sqr")
have_func("BN_mod_sub")
@@ -91,16 +95,18 @@ have_func("X509_CRL_add0_revoked")
have_func("X509_CRL_set_issuer_name")
have_func("X509_CRL_set_version")
have_func("X509_CRL_sort")
+have_func("X509_NAME_hash_old")
have_func("X509_STORE_get_ex_data")
have_func("X509_STORE_set_ex_data")
have_func("OBJ_NAME_do_all_sorted")
have_func("SSL_SESSION_get_id")
+have_func("SSL_SESSION_cmp")
have_func("OPENSSL_cleanse")
+have_func("SSLv2_method")
+have_func("SSLv2_server_method")
+have_func("SSLv2_client_method")
unless have_func("SSL_set_tlsext_host_name", ['openssl/ssl.h'])
- have_macro("SSL_set_tlsext_host_name", ['openssl/ssl.h']) && $defs.push("-DHAVE_SSL_SET_TLSEXT_HOST_NAME")
-end
-if try_compile("#define FOO(...) foo(__VA_ARGS__)\n int x(){FOO(1);FOO(1,2);FOO(1,2,3);}\n")
- $defs.push("-DHAVE_VA_ARGS_MACRO")
+ have_macro("SSL_set_tlsext_host_name", ['openssl/ssl.h']) && $defs.push("-DHAVE_SSL_SET_TLSEXT_HOST_NAME")
end
if have_header("openssl/engine.h")
have_func("ENGINE_add")
@@ -109,13 +115,18 @@ if have_header("openssl/engine.h")
have_func("ENGINE_get_digest")
have_func("ENGINE_get_cipher")
have_func("ENGINE_cleanup")
+ have_func("ENGINE_load_4758cca")
+ have_func("ENGINE_load_aep")
+ have_func("ENGINE_load_atalla")
+ have_func("ENGINE_load_chil")
+ have_func("ENGINE_load_cswift")
+ have_func("ENGINE_load_nuron")
+ have_func("ENGINE_load_sureware")
+ have_func("ENGINE_load_ubsec")
end
-if try_compile(<<SRC)
-#include <openssl/opensslv.h>
-#if OPENSSL_VERSION_NUMBER < 0x00907000L
-# error "OpenSSL version is less than 0.9.7."
-#endif
-SRC
+if checking_for('OpenSSL version is 0.9.7 or later') {
+ try_static_assert('OPENSSL_VERSION_NUMBER >= 0x00907000L', 'openssl/opensslv.h')
+ }
have_header("openssl/ocsp.h")
end
have_struct_member("EVP_CIPHER_CTX", "flags", "openssl/evp.h")
diff --git a/ext/openssl/lib/openssl.rb b/ext/openssl/lib/openssl.rb
index 70fce196a5..3cff8d9c10 100644
--- a/ext/openssl/lib/openssl.rb
+++ b/ext/openssl/lib/openssl.rb
@@ -18,6 +18,7 @@ require 'openssl.so'
require 'openssl/bn'
require 'openssl/cipher'
+require 'openssl/config'
require 'openssl/digest'
require 'openssl/ssl-internal'
require 'openssl/x509-internal'
diff --git a/ext/openssl/lib/openssl/bn.rb b/ext/openssl/lib/openssl/bn.rb
index e7cbf2cfaf..b2fca163f1 100644
--- a/ext/openssl/lib/openssl/bn.rb
+++ b/ext/openssl/lib/openssl/bn.rb
@@ -1,22 +1,22 @@
-=begin
-= $RCSfile$ -- Ruby-space definitions that completes C-space funcs for BN
-
-= Info
- 'OpenSSL for Ruby 2' project
- Copyright (C) 2002 Michal Rokos <m.rokos@sh.cvut.cz>
- All rights reserved.
-
-= Licence
- This program is licenced under the same licence as Ruby.
- (See the file 'LICENCE'.)
-
-= Version
- $Id$
-=end
-
-##
-# Should we care what if somebody require this file directly?
-#require 'openssl'
+#--
+#
+# $RCSfile$
+#
+# = Ruby-space definitions that completes C-space funcs for BN
+#
+# = Info
+# 'OpenSSL for Ruby 2' project
+# Copyright (C) 2002 Michal Rokos <m.rokos@sh.cvut.cz>
+# All rights reserved.
+#
+# = Licence
+# This program is licenced under the same licence as Ruby.
+# (See the file 'LICENCE'.)
+#
+# = Version
+# $Id$
+#
+#++
module OpenSSL
class BN
@@ -29,7 +29,7 @@ end # OpenSSL
#
class Integer
def to_bn
- OpenSSL::BN::new(self)
+ OpenSSL::BN::new(self.to_s(16), 16)
end
end # Integer
diff --git a/ext/openssl/lib/openssl/buffering.rb b/ext/openssl/lib/openssl/buffering.rb
index 3028fe5b52..51bc968e3a 100644
--- a/ext/openssl/lib/openssl/buffering.rb
+++ b/ext/openssl/lib/openssl/buffering.rb
@@ -14,10 +14,24 @@
$Id$
=end
-module OpenSSL
-module Buffering
+##
+# OpenSSL IO buffering mix-in module.
+#
+# This module allows an OpenSSL::SSL::SSLSocket to behave like an IO.
+
+module OpenSSL::Buffering
include Enumerable
+
+ ##
+ # The "sync mode" of the SSLSocket.
+ #
+ # See IO#sync for full details.
+
attr_accessor :sync
+
+ ##
+ # Default size to read from or write to the SSLSocket for buffer operations.
+
BLOCK_SIZE = 1024*16
def initialize(*args)
@@ -31,6 +45,9 @@ module Buffering
#
private
+ ##
+ # Fills the buffer from the underlying SSLSocket
+
def fill_rbuff
begin
@rbuffer << self.sysread(BLOCK_SIZE)
@@ -41,6 +58,9 @@ module Buffering
end
end
+ ##
+ # Consumes +size+ bytes from the buffer
+
def consume_rbuff(size=nil)
if @rbuffer.empty?
nil
@@ -54,6 +74,12 @@ module Buffering
public
+ ##
+ # Reads +size+ bytes from the stream. If +buf+ is provided it must
+ # reference a string which will receive the data.
+ #
+ # See IO#read for full details.
+
def read(size=nil, buf=nil)
if size == 0
if buf
@@ -75,6 +101,12 @@ module Buffering
(size && ret.empty?) ? nil : ret
end
+ ##
+ # Reads at most +maxlen+ bytes from the stream. If +buf+ is provided it
+ # must reference a string which will receive the data.
+ #
+ # See IO#readpartial for full details.
+
def readpartial(maxlen, buf=nil)
if maxlen == 0
if buf
@@ -100,38 +132,35 @@ module Buffering
ret
end
- # Reads at most _maxlen_ bytes in the non-blocking manner.
- #
- # When no data can be read without blocking,
- # It raises OpenSSL::SSL::SSLError extended by
- # IO::WaitReadable or IO::WaitWritable.
- #
- # IO::WaitReadable means SSL needs to read internally.
- # So read_nonblock should be called again after
- # underlying IO is readable.
- #
- # IO::WaitWritable means SSL needs to write internally.
- # So read_nonblock should be called again after
- # underlying IO is writable.
- #
- # So OpenSSL::Buffering#read_nonblock needs two rescue clause as follows.
- #
- # # emulates blocking read (readpartial).
- # begin
- # result = ssl.read_nonblock(maxlen)
- # rescue IO::WaitReadable
- # IO.select([io])
- # retry
- # rescue IO::WaitWritable
- # IO.select(nil, [io])
- # retry
- # end
- #
- # Note that one reason that read_nonblock write to a underlying IO
- # is the peer requests a new TLS/SSL handshake.
- # See openssl FAQ for more details.
- # http://www.openssl.org/support/faq.html
+ ##
+ # Reads at most +maxlen+ bytes in the non-blocking manner.
+ #
+ # When no data can be read without blocking it raises
+ # OpenSSL::SSL::SSLError extended by IO::WaitReadable or IO::WaitWritable.
#
+ # IO::WaitReadable means SSL needs to read internally so read_nonblock
+ # should be called again when the underlying IO is readable.
+ #
+ # IO::WaitWritable means SSL needs to write internally so read_nonblock
+ # should be called again after the underlying IO is writable.
+ #
+ # OpenSSL::Buffering#read_nonblock needs two rescue clause as follows:
+ #
+ # # emulates blocking read (readpartial).
+ # begin
+ # result = ssl.read_nonblock(maxlen)
+ # rescue IO::WaitReadable
+ # IO.select([io])
+ # retry
+ # rescue IO::WaitWritable
+ # IO.select(nil, [io])
+ # retry
+ # end
+ #
+ # Note that one reason that read_nonblock writes to the underlying IO is
+ # when the peer requests a new TLS/SSL handshake. See openssl the FAQ for
+ # more details. http://www.openssl.org/support/faq.html
+
def read_nonblock(maxlen, buf=nil)
if maxlen == 0
if buf
@@ -153,6 +182,17 @@ module Buffering
ret
end
+ ##
+ # Reads the next "line+ from the stream. Lines are separated by +eol+. If
+ # +limit+ is provided the result will not be longer than the given number of
+ # bytes.
+ #
+ # +eol+ may be a String or Regexp.
+ #
+ # Unlike IO#gets the line read will not be assigned to +$_+.
+ #
+ # Unlike IO#gets the separator must be provided if a limit is provided.
+
def gets(eol=$/, limit=nil)
idx = @rbuffer.index(eol)
until @eof
@@ -171,6 +211,12 @@ module Buffering
consume_rbuff(size)
end
+ ##
+ # Executes the block for every line in the stream where lines are separated
+ # by +eol+.
+ #
+ # See also #gets
+
def each(eol=$/)
while line = self.gets(eol)
yield line
@@ -178,6 +224,11 @@ module Buffering
end
alias each_line each
+ ##
+ # Reads lines from the stream which are separated by +eol+.
+ #
+ # See also #gets
+
def readlines(eol=$/)
ary = []
while line = self.gets(eol)
@@ -186,31 +237,58 @@ module Buffering
ary
end
+ ##
+ # Reads a line from the stream which is separated by +eol+.
+ #
+ # Raises EOFError if at end of file.
+
def readline(eol=$/)
raise EOFError if eof?
gets(eol)
end
+ ##
+ # Reads one character from the stream. Returns nil if called at end of
+ # file.
+
def getc
- c = read(1)
- c ? c[0] : nil
+ read(1)
end
- def each_byte
+ ##
+ # Calls the given block once for each byte in the stream.
+
+ def each_byte # :yields: byte
while c = getc
- yield(c)
+ yield(c.ord)
end
end
+ ##
+ # Reads a one-character string from the stream. Raises an EOFError at end
+ # of file.
+
def readchar
raise EOFError if eof?
getc
end
+ ##
+ # Pushes character +c+ back onto the stream such that a subsequent buffered
+ # character read will return it.
+ #
+ # Unlike IO#getc multiple bytes may be pushed back onto the stream.
+ #
+ # Has no effect on unbuffered reads (such as #sysread).
+
def ungetc(c)
@rbuffer[0,0] = c.chr
end
+ ##
+ # Returns true if the stream is at file which means there is no more data to
+ # be read.
+
def eof?
fill_rbuff if !@eof && @rbuffer.empty?
@eof && @rbuffer.empty?
@@ -222,9 +300,14 @@ module Buffering
#
private
+ ##
+ # Writes +s+ to the buffer. When the buffer is full or #sync is true the
+ # buffer is flushed to the underlying socket.
+
def do_write(s)
@wbuffer = "" unless defined? @wbuffer
@wbuffer << s
+ @wbuffer.force_encoding(Encoding::BINARY)
@sync ||= false
if @sync or @wbuffer.size > BLOCK_SIZE or idx = @wbuffer.rindex($/)
remain = idx ? idx + $/.size : @wbuffer.length
@@ -245,58 +328,67 @@ module Buffering
public
+ ##
+ # Writes +s+ to the stream. If the argument is not a string it will be
+ # converted using String#to_s. Returns the number of bytes written.
+
def write(s)
do_write(s)
- s.length
+ s.bytesize
end
- # Writes _str_ in the non-blocking manner.
+ ##
+ # Writes +str+ in the non-blocking manner.
#
- # If there are buffered data, it is flushed at first.
- # This may block.
+ # If there is buffered data, it is flushed first. This may block.
#
# write_nonblock returns number of bytes written to the SSL connection.
#
- # When no data can be written without blocking,
- # It raises OpenSSL::SSL::SSLError extended by
- # IO::WaitReadable or IO::WaitWritable.
+ # When no data can be written without blocking it raises
+ # OpenSSL::SSL::SSLError extended by IO::WaitReadable or IO::WaitWritable.
#
- # IO::WaitReadable means SSL needs to read internally.
- # So write_nonblock should be called again after
- # underlying IO is readable.
+ # IO::WaitReadable means SSL needs to read internally so write_nonblock
+ # should be called again after the underlying IO is readable.
#
- # IO::WaitWritable means SSL needs to write internally.
- # So write_nonblock should be called again after
- # underlying IO is writable.
+ # IO::WaitWritable means SSL needs to write internally so write_nonblock
+ # should be called again after underlying IO is writable.
#
# So OpenSSL::Buffering#write_nonblock needs two rescue clause as follows.
- #
- # # emulates blocking write.
- # begin
- # result = ssl.write_nonblock(str)
- # rescue IO::WaitReadable
- # IO.select([io])
- # retry
- # rescue IO::WaitWritable
- # IO.select(nil, [io])
- # retry
- # end
- #
- # Note that one reason that write_nonblock read from a underlying IO
- # is the peer requests a new TLS/SSL handshake.
- # See openssl FAQ for more details.
- # http://www.openssl.org/support/faq.html
#
+ # # emulates blocking write.
+ # begin
+ # result = ssl.write_nonblock(str)
+ # rescue IO::WaitReadable
+ # IO.select([io])
+ # retry
+ # rescue IO::WaitWritable
+ # IO.select(nil, [io])
+ # retry
+ # end
+ #
+ # Note that one reason that write_nonblock reads from the underlying IO
+ # is when the peer requests a new TLS/SSL handshake. See the openssl FAQ
+ # for more details. http://www.openssl.org/support/faq.html
+
def write_nonblock(s)
flush
syswrite_nonblock(s)
end
+ ##
+ # Writes +s+ to the stream. +s+ will be converted to a String using
+ # String#to_s.
+
def << (s)
do_write(s)
self
end
+ ##
+ # Writes +args+ to the stream along with a record separator.
+ #
+ # See IO#puts for full details.
+
def puts(*args)
s = ""
if args.empty?
@@ -312,6 +404,11 @@ module Buffering
nil
end
+ ##
+ # Writes +args+ to the stream.
+ #
+ # See IO#print for full details.
+
def print(*args)
s = ""
args.each{ |arg| s << arg.to_s }
@@ -319,21 +416,34 @@ module Buffering
nil
end
+ ##
+ # Formats and writes to the stream converting parameters under control of
+ # the format string.
+ #
+ # See Kernel#sprintf for format string details.
+
def printf(s, *args)
do_write(s % args)
nil
end
+ ##
+ # Flushes buffered data to the SSLSocket.
+
def flush
osync = @sync
@sync = true
do_write ""
+ return self
+ ensure
@sync = osync
end
+ ##
+ # Closes the SSLSocket and flushes any unwritten data.
+
def close
flush rescue nil
sysclose
end
end
-end
diff --git a/ext/openssl/lib/openssl/cipher.rb b/ext/openssl/lib/openssl/cipher.rb
index 290e9c1d2d..eb146fb552 100644
--- a/ext/openssl/lib/openssl/cipher.rb
+++ b/ext/openssl/lib/openssl/cipher.rb
@@ -1,22 +1,22 @@
-=begin
-= $RCSfile$ -- Ruby-space predefined Cipher subclasses
-
-= Info
- 'OpenSSL for Ruby 2' project
- Copyright (C) 2002 Michal Rokos <m.rokos@sh.cvut.cz>
- All rights reserved.
-
-= Licence
- This program is licenced under the same licence as Ruby.
- (See the file 'LICENCE'.)
-
-= Version
- $Id$
-=end
-
-##
-# Should we care what if somebody require this file directly?
-#require 'openssl'
+#--
+#
+# $RCSfile$
+#
+# = Ruby-space predefined Cipher subclasses
+#
+# = Info
+# 'OpenSSL for Ruby 2' project
+# Copyright (C) 2002 Michal Rokos <m.rokos@sh.cvut.cz>
+# All rights reserved.
+#
+# = Licence
+# This program is licenced under the same licence as Ruby.
+# (See the file 'LICENCE'.)
+#
+# = Version
+# $Id$
+#
+#++
module OpenSSL
class Cipher
@@ -57,7 +57,7 @@ module OpenSSL
return str
end
- # This class is only provided for backwards compatibility. Use OpenSSL::Digest in the future.
+ # This class is only provided for backwards compatibility. Use OpenSSL::Cipher in the future.
class Cipher < Cipher
# add warning
end
diff --git a/ext/openssl/lib/openssl/config.rb b/ext/openssl/lib/openssl/config.rb
new file mode 100644
index 0000000000..24a54c91ec
--- /dev/null
+++ b/ext/openssl/lib/openssl/config.rb
@@ -0,0 +1,313 @@
+=begin
+= Ruby-space definitions that completes C-space funcs for Config
+
+= Info
+ Copyright (C) 2010 Hiroshi Nakamura <nahi@ruby-lang.org>
+
+= Licence
+ This program is licenced under the same licence as Ruby.
+ (See the file 'LICENCE'.)
+
+=end
+
+require 'stringio'
+
+module OpenSSL
+ class Config
+ include Enumerable
+
+ class << self
+ def parse(str)
+ c = new()
+ parse_config(StringIO.new(str)).each do |section, hash|
+ c[section] = hash
+ end
+ c
+ end
+
+ alias load new
+
+ def parse_config(io)
+ begin
+ parse_config_lines(io)
+ rescue ConfigError => e
+ e.message.replace("error in line #{io.lineno}: " + e.message)
+ raise
+ end
+ end
+
+ def get_key_string(data, section, key) # :nodoc:
+ if v = data[section] && data[section][key]
+ return v
+ elsif section == 'ENV'
+ if v = ENV[key]
+ return v
+ end
+ end
+ if v = data['default'] && data['default'][key]
+ return v
+ end
+ end
+
+ private
+
+ def parse_config_lines(io)
+ section = 'default'
+ data = {section => {}}
+ while definition = get_definition(io)
+ definition = clear_comments(definition)
+ next if definition.empty?
+ if definition[0] == ?[
+ if /\[([^\]]*)\]/ =~ definition
+ section = $1.strip
+ data[section] ||= {}
+ else
+ raise ConfigError, "missing close square bracket"
+ end
+ else
+ if /\A([^:\s]*)(?:::([^:\s]*))?\s*=(.*)\z/ =~ definition
+ if $2
+ section = $1
+ key = $2
+ else
+ key = $1
+ end
+ value = unescape_value(data, section, $3)
+ (data[section] ||= {})[key] = value.strip
+ else
+ raise ConfigError, "missing equal sign"
+ end
+ end
+ end
+ data
+ end
+
+ # escape with backslash
+ QUOTE_REGEXP_SQ = /\A([^'\\]*(?:\\.[^'\\]*)*)'/
+ # escape with backslash and doubled dq
+ QUOTE_REGEXP_DQ = /\A([^"\\]*(?:""[^"\\]*|\\.[^"\\]*)*)"/
+ # escaped char map
+ ESCAPE_MAP = {
+ "r" => "\r",
+ "n" => "\n",
+ "b" => "\b",
+ "t" => "\t",
+ }
+
+ def unescape_value(data, section, value)
+ scanned = []
+ while m = value.match(/['"\\$]/)
+ scanned << m.pre_match
+ c = m[0]
+ value = m.post_match
+ case c
+ when "'"
+ if m = value.match(QUOTE_REGEXP_SQ)
+ scanned << m[1].gsub(/\\(.)/, '\\1')
+ value = m.post_match
+ else
+ break
+ end
+ when '"'
+ if m = value.match(QUOTE_REGEXP_DQ)
+ scanned << m[1].gsub(/""/, '').gsub(/\\(.)/, '\\1')
+ value = m.post_match
+ else
+ break
+ end
+ when "\\"
+ c = value.slice!(0, 1)
+ scanned << (ESCAPE_MAP[c] || c)
+ when "$"
+ ref, value = extract_reference(value)
+ refsec = section
+ if ref.index('::')
+ refsec, ref = ref.split('::', 2)
+ end
+ if v = get_key_string(data, refsec, ref)
+ scanned << v
+ else
+ raise ConfigError, "variable has no value"
+ end
+ else
+ raise 'must not reaced'
+ end
+ end
+ scanned << value
+ scanned.join
+ end
+
+ def extract_reference(value)
+ rest = ''
+ if m = value.match(/\(([^)]*)\)|\{([^}]*)\}/)
+ value = m[1] || m[2]
+ rest = m.post_match
+ elsif [?(, ?{].include?(value[0])
+ raise ConfigError, "no close brace"
+ end
+ if m = value.match(/[a-zA-Z0-9_]*(?:::[a-zA-Z0-9_]*)?/)
+ return m[0], m.post_match + rest
+ else
+ raise
+ end
+ end
+
+ def clear_comments(line)
+ # FCOMMENT
+ if m = line.match(/\A([\t\n\f ]*);.*\z/)
+ return m[1]
+ end
+ # COMMENT
+ scanned = []
+ while m = line.match(/[#'"\\]/)
+ scanned << m.pre_match
+ c = m[0]
+ line = m.post_match
+ case c
+ when '#'
+ line = nil
+ break
+ when "'", '"'
+ regexp = (c == "'") ? QUOTE_REGEXP_SQ : QUOTE_REGEXP_DQ
+ scanned << c
+ if m = line.match(regexp)
+ scanned << m[0]
+ line = m.post_match
+ else
+ scanned << line
+ line = nil
+ break
+ end
+ when "\\"
+ scanned << c
+ scanned << line.slice!(0, 1)
+ else
+ raise 'must not reaced'
+ end
+ end
+ scanned << line
+ scanned.join
+ end
+
+ def get_definition(io)
+ if line = get_line(io)
+ while /[^\\]\\\z/ =~ line
+ if extra = get_line(io)
+ line += extra
+ else
+ break
+ end
+ end
+ return line.strip
+ end
+ end
+
+ def get_line(io)
+ if line = io.gets
+ line.gsub(/[\r\n]*/, '')
+ end
+ end
+ end
+
+ def initialize(filename = nil)
+ @data = {}
+ if filename
+ File.open(filename.to_s) do |file|
+ Config.parse_config(file).each do |section, hash|
+ self[section] = hash
+ end
+ end
+ end
+ end
+
+ def get_value(section, key)
+ if section.nil?
+ raise TypeError.new('nil not allowed')
+ end
+ section = 'default' if section.empty?
+ get_key_string(section, key)
+ end
+
+ def value(arg1, arg2 = nil)
+ warn('Config#value is deprecated; use Config#get_value')
+ if arg2.nil?
+ section, key = 'default', arg1
+ else
+ section, key = arg1, arg2
+ end
+ section ||= 'default'
+ section = 'default' if section.empty?
+ get_key_string(section, key)
+ end
+
+ def add_value(section, key, value)
+ check_modify
+ (@data[section] ||= {})[key] = value
+ end
+
+ def [](section)
+ @data[section] || {}
+ end
+
+ def section(name)
+ warn('Config#section is deprecated; use Config#[]')
+ @data[name] || {}
+ end
+
+ def []=(section, pairs)
+ check_modify
+ @data[section] ||= {}
+ pairs.each do |key, value|
+ self.add_value(section, key, value)
+ end
+ end
+
+ def sections
+ @data.keys
+ end
+
+ def to_s
+ ary = []
+ @data.keys.sort.each do |section|
+ ary << "[ #{section} ]\n"
+ @data[section].keys.each do |key|
+ ary << "#{key}=#{@data[section][key]}\n"
+ end
+ ary << "\n"
+ end
+ ary.join
+ end
+
+ def each
+ @data.each do |section, hash|
+ hash.each do |key, value|
+ yield [section, key, value]
+ end
+ end
+ end
+
+ def inspect
+ "#<#{self.class.name} sections=#{sections.inspect}>"
+ end
+
+ protected
+
+ def data
+ @data
+ end
+
+ private
+
+ def initialize_copy(other)
+ @data = other.data.dup
+ end
+
+ def check_modify
+ raise TypeError.new("Insecure: can't modify OpenSSL config") if frozen?
+ end
+
+ def get_key_string(section, key)
+ Config.get_key_string(@data, section, key)
+ end
+ end
+end
diff --git a/ext/openssl/lib/openssl/digest.rb b/ext/openssl/lib/openssl/digest.rb
index 4810f0121b..b47007165c 100644
--- a/ext/openssl/lib/openssl/digest.rb
+++ b/ext/openssl/lib/openssl/digest.rb
@@ -1,22 +1,22 @@
-=begin
-= $RCSfile$ -- Ruby-space predefined Digest subclasses
-
-= Info
- 'OpenSSL for Ruby 2' project
- Copyright (C) 2002 Michal Rokos <m.rokos@sh.cvut.cz>
- All rights reserved.
-
-= Licence
- This program is licenced under the same licence as Ruby.
- (See the file 'LICENCE'.)
-
-= Version
- $Id$
-=end
-
-##
-# Should we care what if somebody require this file directly?
-#require 'openssl'
+#--
+#
+# $RCSfile$
+#
+# = Ruby-space predefined Digest subclasses
+#
+# = Info
+# 'OpenSSL for Ruby 2' project
+# Copyright (C) 2002 Michal Rokos <m.rokos@sh.cvut.cz>
+# All rights reserved.
+#
+# = Licence
+# This program is licenced under the same licence as Ruby.
+# (See the file 'LICENCE'.)
+#
+# = Version
+# $Id$
+#
+#++
module OpenSSL
class Digest
@@ -26,6 +26,17 @@ module OpenSSL
alg += %w(SHA224 SHA256 SHA384 SHA512)
end
+ # Return the +data+ hash computed with +name+ Digest. +name+ is either the
+ # long name or short name of a supported digest algorithm.
+ #
+ # === Examples
+ #
+ # OpenSSL::Digest.digest("SHA256, "abc")
+ #
+ # which is equivalent to:
+ #
+ # OpenSSL::Digest::SHA256.digest("abc")
+
def self.digest(name, data)
super(data, name)
end
@@ -40,7 +51,7 @@ module OpenSSL
super(name, data.first)
}
}
- singleton = (class <<klass; self; end)
+ singleton = (class << klass; self; end)
singleton.class_eval{
define_method(:digest){|data| Digest.digest(name, data) }
define_method(:hexdigest){|data| Digest.hexdigest(name, data) }
diff --git a/ext/openssl/lib/openssl/ssl-internal.rb b/ext/openssl/lib/openssl/ssl-internal.rb
index 04a9faa0b6..c70b5b8f6b 100644
--- a/ext/openssl/lib/openssl/ssl-internal.rb
+++ b/ext/openssl/lib/openssl/ssl-internal.rb
@@ -118,7 +118,7 @@ module OpenSSL
def post_connection_check(hostname)
unless OpenSSL::SSL.verify_certificate_identity(peer_cert, hostname)
- raise SSLError, "hostname was not match with the server certificate"
+ raise SSLError, "hostname does not match the server certificate"
end
return true
end
diff --git a/ext/openssl/lib/openssl/ssl.rb b/ext/openssl/lib/openssl/ssl.rb
index 3f17f5aa29..15f42d6091 100644
--- a/ext/openssl/lib/openssl/ssl.rb
+++ b/ext/openssl/lib/openssl/ssl.rb
@@ -1 +1,2 @@
+warn 'deprecated openssl/ssl use: require "openssl" instead of "openssl/ssl"'
require 'openssl'
diff --git a/ext/openssl/lib/openssl/x509-internal.rb b/ext/openssl/lib/openssl/x509-internal.rb
index 6aff4ca10d..47e3a6f876 100644
--- a/ext/openssl/lib/openssl/x509-internal.rb
+++ b/ext/openssl/lib/openssl/x509-internal.rb
@@ -109,7 +109,6 @@ module OpenSSL
ary = []
while true
if md = TypeAndValue.match(str)
- matched = md.to_s
remain = md.post_match
type = md[1]
value, tag = expand_value(md[2], md[3], md[4]) rescue nil
@@ -135,7 +134,7 @@ module OpenSSL
end
end
- class <<self
+ class << self
def parse_rfc2253(str, template=OBJECT_TYPE_TEMPLATE)
ary = OpenSSL::X509::Name::RFC2253DN.scan(str)
self.new(ary, template)
@@ -149,5 +148,11 @@ module OpenSSL
alias parse parse_openssl
end
end
+
+ class StoreContext
+ def cleanup
+ warn "(#{caller.first}) OpenSSL::X509::StoreContext#cleanup is deprecated with no replacement" if $VERBOSE
+ end
+ end
end
end
diff --git a/ext/openssl/lib/openssl/x509.rb b/ext/openssl/lib/openssl/x509.rb
index 3f17f5aa29..f1777cdf06 100644
--- a/ext/openssl/lib/openssl/x509.rb
+++ b/ext/openssl/lib/openssl/x509.rb
@@ -1 +1,2 @@
+warn 'deprecated openssl/x509 use: require "openssl" instead of "openssl/x509"'
require 'openssl'
diff --git a/ext/openssl/openssl_missing.c b/ext/openssl/openssl_missing.c
index 724f36b8ae..f88dd403be 100644
--- a/ext/openssl/openssl_missing.c
+++ b/ext/openssl/openssl_missing.c
@@ -36,12 +36,13 @@ HMAC_CTX_copy(HMAC_CTX *out, HMAC_CTX *in)
#endif /* NO_HMAC */
#if !defined(HAVE_X509_STORE_SET_EX_DATA)
-
int X509_STORE_set_ex_data(X509_STORE *str, int idx, void *data)
{
return CRYPTO_set_ex_data(&str->ex_data, idx, data);
}
-
+#endif
+
+#if !defined(HAVE_X509_STORE_GET_EX_DATA)
void *X509_STORE_get_ex_data(X509_STORE *str, int idx)
{
return CRYPTO_get_ex_data(&str->ex_data, idx);
@@ -111,7 +112,7 @@ HMAC_CTX_cleanup(HMAC_CTX *ctx)
#endif
#if !defined(HAVE_EVP_CIPHER_CTX_COPY)
-/*
+/*
* this function does not exist in OpenSSL yet... or ever?.
* a future version may break this function.
* tested on 0.9.7d.
@@ -180,12 +181,12 @@ OSSL_X509_REVOKED_cmp(const X509_REVOKED * const *a, const X509_REVOKED * const
(ASN1_STRING *)(*a)->serialNumber,
(ASN1_STRING *)(*b)->serialNumber));
}
-
+
int
X509_CRL_add0_revoked(X509_CRL *crl, X509_REVOKED *rev)
{
X509_CRL_INFO *inf;
-
+
inf = crl->crl;
if (!inf->revoked)
inf->revoked = sk_X509_REVOKED_new(OSSL_X509_REVOKED_cmp);
@@ -313,7 +314,7 @@ PEM_def_callback(char *buf, int num, int w, void *key)
{
int i,j;
const char *prompt;
-
+
if (key) {
i = strlen(key);
i = (i > num) ? num : i;
@@ -341,3 +342,15 @@ PEM_def_callback(char *buf, int num, int w, void *key)
}
#endif
+#if !defined(HAVE_ASN1_PUT_EOC)
+int
+ASN1_put_eoc(unsigned char **pp)
+{
+ unsigned char *p = *pp;
+ *p++ = 0;
+ *p++ = 0;
+ *pp = p;
+ return 2;
+}
+#endif
+
diff --git a/ext/openssl/openssl_missing.h b/ext/openssl/openssl_missing.h
index 619cf6fdb5..3635f88b73 100644
--- a/ext/openssl/openssl_missing.h
+++ b/ext/openssl/openssl_missing.h
@@ -28,42 +28,42 @@ typedef int i2d_of_void();
#if !defined(PEM_read_bio_DSAPublicKey)
# define PEM_read_bio_DSAPublicKey(bp,x,cb,u) (DSA *)PEM_ASN1_read_bio( \
- (d2i_of_void *)d2i_DSAPublicKey,PEM_STRING_DSA_PUBLIC,bp,(void **)x,cb,u)
+ (d2i_of_void *)d2i_DSAPublicKey,PEM_STRING_DSA_PUBLIC,(bp),(void **)(x),(cb),(u))
#endif
#if !defined(PEM_write_bio_DSAPublicKey)
# define PEM_write_bio_DSAPublicKey(bp,x) \
PEM_ASN1_write_bio((i2d_of_void *)i2d_DSAPublicKey,\
PEM_STRING_DSA_PUBLIC,\
- bp,(char *)x, NULL, NULL, 0, NULL, NULL)
+ (bp),(char *)(x), NULL, NULL, 0, NULL, NULL)
#endif
#if !defined(DSAPrivateKey_dup)
# define DSAPrivateKey_dup(dsa) (DSA *)ASN1_dup((i2d_of_void *)i2d_DSAPrivateKey, \
- (d2i_of_void *)d2i_DSAPrivateKey,(char *)dsa)
+ (d2i_of_void *)d2i_DSAPrivateKey,(char *)(dsa))
#endif
#if !defined(DSAPublicKey_dup)
# define DSAPublicKey_dup(dsa) (DSA *)ASN1_dup((i2d_of_void *)i2d_DSAPublicKey, \
- (d2i_of_void *)d2i_DSAPublicKey,(char *)dsa)
+ (d2i_of_void *)d2i_DSAPublicKey,(char *)(dsa))
#endif
#if !defined(X509_REVOKED_dup)
# define X509_REVOKED_dup(rev) (X509_REVOKED *)ASN1_dup((i2d_of_void *)i2d_X509_REVOKED, \
- (d2i_of_void *)d2i_X509_REVOKED, (char *)rev)
+ (d2i_of_void *)d2i_X509_REVOKED, (char *)(rev))
#endif
#if !defined(PKCS7_SIGNER_INFO_dup)
# define PKCS7_SIGNER_INFO_dup(si) (PKCS7_SIGNER_INFO *)ASN1_dup((i2d_of_void *)i2d_PKCS7_SIGNER_INFO, \
- (d2i_of_void *)d2i_PKCS7_SIGNER_INFO, (char *)si)
+ (d2i_of_void *)d2i_PKCS7_SIGNER_INFO, (char *)(si))
#endif
#if !defined(PKCS7_RECIP_INFO_dup)
# define PKCS7_RECIP_INFO_dup(ri) (PKCS7_RECIP_INFO *)ASN1_dup((i2d_of_void *)i2d_PKCS7_RECIP_INFO, \
- (d2i_of_void *)d2i_PKCS7_RECIP_INFO, (char *)ri)
+ (d2i_of_void *)d2i_PKCS7_RECIP_INFO, (char *)(ri))
#endif
-#if !defined(HAVE_EVP_MD_CTX_INIT)
+#if !defined(HAVE_HMAC_CTX_INIT)
void HMAC_CTX_init(HMAC_CTX *ctx);
#endif
@@ -96,17 +96,17 @@ int EVP_CIPHER_CTX_copy(EVP_CIPHER_CTX *out, EVP_CIPHER_CTX *in);
#endif
#if !defined(HAVE_EVP_DIGESTINIT_EX)
-# define EVP_DigestInit_ex(ctx, md, engine) EVP_DigestInit(ctx, md)
+# define EVP_DigestInit_ex(ctx, md, engine) EVP_DigestInit((ctx), (md))
#endif
#if !defined(HAVE_EVP_DIGESTFINAL_EX)
-# define EVP_DigestFinal_ex(ctx, buf, len) EVP_DigestFinal(ctx, buf, len)
+# define EVP_DigestFinal_ex(ctx, buf, len) EVP_DigestFinal((ctx), (buf), (len))
#endif
#if !defined(HAVE_EVP_CIPHERINIT_EX)
-# define EVP_CipherInit_ex(ctx, type, impl, key, iv, enc) EVP_CipherInit(ctx, type, key, iv, enc)
+# define EVP_CipherInit_ex(ctx, type, impl, key, iv, enc) EVP_CipherInit((ctx), (type), (key), (iv), (enc))
#endif
#if !defined(HAVE_EVP_CIPHERFINAL_EX)
-# define EVP_CipherFinal_ex(ctx, outm, outl) EVP_CipherFinal(ctx, outm, outl)
+# define EVP_CipherFinal_ex(ctx, outm, outl) EVP_CipherFinal((ctx), (outm), (outl))
#endif
#if !defined(EVP_CIPHER_name)
@@ -118,7 +118,7 @@ int EVP_CIPHER_CTX_copy(EVP_CIPHER_CTX *out, EVP_CIPHER_CTX *in);
#endif
#if !defined(HAVE_EVP_HMAC_INIT_EX)
-# define HMAC_Init_ex(ctx, key, len, digest, engine) HMAC_Init(ctx, key, len, digest)
+# define HMAC_Init_ex(ctx, key, len, digest, engine) HMAC_Init((ctx), (key), (len), (digest))
#endif
#if !defined(PKCS7_is_detached)
@@ -130,11 +130,14 @@ int EVP_CIPHER_CTX_copy(EVP_CIPHER_CTX *out, EVP_CIPHER_CTX *in);
#endif
#if !defined(HAVE_OPENSSL_CLEANSE)
-#define OPENSSL_cleanse(p, l) memset(p, 0, l)
+#define OPENSSL_cleanse(p, l) memset((p), 0, (l))
#endif
-#if !defined(HAVE_X509_STORE_SET_EX_DATA)
+#if !defined(HAVE_X509_STORE_GET_EX_DATA)
void *X509_STORE_get_ex_data(X509_STORE *str, int idx);
+#endif
+
+#if !defined(HAVE_X509_STORE_SET_EX_DATA)
int X509_STORE_set_ex_data(X509_STORE *str, int idx, void *data);
#endif
@@ -182,6 +185,10 @@ char *CONF_get1_default_config_file(void);
int PEM_def_callback(char *buf, int num, int w, void *key);
#endif
+#if !defined(HAVE_ASN1_PUT_EOC)
+int ASN1_put_eoc(unsigned char **pp);
+#endif
+
#if defined(__cplusplus)
}
#endif
diff --git a/ext/openssl/ossl.c b/ext/openssl/ossl.c
index d4a2dc1276..f3410b64e8 100644
--- a/ext/openssl/ossl.c
+++ b/ext/openssl/ossl.c
@@ -47,52 +47,57 @@ string2hex(const unsigned char *buf, int buf_len, char **hexbuf, int *hexbuf_len
/*
* Data Conversion
*/
-STACK_OF(X509) *
-ossl_x509_ary2sk0(VALUE ary)
-{
- STACK_OF(X509) *sk;
- VALUE val;
- X509 *x509;
- int i;
-
- Check_Type(ary, T_ARRAY);
- sk = sk_X509_new_null();
- if (!sk) ossl_raise(eOSSLError, NULL);
-
- for (i = 0; i < RARRAY_LEN(ary); i++) {
- val = rb_ary_entry(ary, i);
- if (!rb_obj_is_kind_of(val, cX509Cert)) {
- sk_X509_pop_free(sk, X509_free);
- ossl_raise(eOSSLError, "object not X509 cert in array");
- }
- x509 = DupX509CertPtr(val); /* NEED TO DUP */
- sk_X509_push(sk, x509);
- }
- return sk;
-}
-
-STACK_OF(X509) *
-ossl_protect_x509_ary2sk(VALUE ary, int *status)
-{
- return (STACK_OF(X509)*)rb_protect((VALUE(*)_((VALUE)))ossl_x509_ary2sk0,
- ary, status);
-}
-
-STACK_OF(X509) *
-ossl_x509_ary2sk(VALUE ary)
-{
- STACK_OF(X509) *sk;
- int status = 0;
-
- sk = ossl_protect_x509_ary2sk(ary, &status);
- if(status) rb_jump_tag(status);
-
- return sk;
+#define OSSL_IMPL_ARY2SK(name, type, expected_class, dup) \
+STACK_OF(type) * \
+ossl_##name##_ary2sk0(VALUE ary) \
+{ \
+ STACK_OF(type) *sk; \
+ VALUE val; \
+ type *x; \
+ int i; \
+ \
+ Check_Type(ary, T_ARRAY); \
+ sk = sk_##type##_new_null(); \
+ if (!sk) ossl_raise(eOSSLError, NULL); \
+ \
+ for (i = 0; i < RARRAY_LEN(ary); i++) { \
+ val = rb_ary_entry(ary, i); \
+ if (!rb_obj_is_kind_of(val, expected_class)) { \
+ sk_##type##_pop_free(sk, type##_free); \
+ ossl_raise(eOSSLError, "object in array not" \
+ " of class ##type##"); \
+ } \
+ x = dup(val); /* NEED TO DUP */ \
+ sk_##type##_push(sk, x); \
+ } \
+ return sk; \
+} \
+ \
+STACK_OF(type) * \
+ossl_protect_##name##_ary2sk(VALUE ary, int *status) \
+{ \
+ return (STACK_OF(type)*)rb_protect( \
+ (VALUE(*)_((VALUE)))ossl_##name##_ary2sk0, \
+ ary, \
+ status); \
+} \
+ \
+STACK_OF(type) * \
+ossl_##name##_ary2sk(VALUE ary) \
+{ \
+ STACK_OF(type) *sk; \
+ int status = 0; \
+ \
+ sk = ossl_protect_##name##_ary2sk(ary, &status); \
+ if (status) rb_jump_tag(status); \
+ \
+ return sk; \
}
+OSSL_IMPL_ARY2SK(x509, X509, cX509Cert, DupX509CertPtr)
#define OSSL_IMPL_SK2ARY(name, type) \
VALUE \
-ossl_##name##_sk2ary(STACK *sk) \
+ossl_##name##_sk2ary(STACK_OF(type) *sk) \
{ \
type *t; \
int i, num; \
@@ -102,7 +107,7 @@ ossl_##name##_sk2ary(STACK *sk) \
OSSL_Debug("empty sk!"); \
return Qnil; \
} \
- num = sk_num(sk); \
+ num = sk_##type##_num(sk); \
if (num < 0) { \
OSSL_Debug("items in sk < -1???"); \
return rb_ary_new(); \
@@ -110,13 +115,14 @@ ossl_##name##_sk2ary(STACK *sk) \
ary = rb_ary_new2(num); \
\
for (i=0; i<num; i++) { \
- t = (type *)sk_value(sk, i); \
+ t = sk_##type##_value(sk, i); \
rb_ary_push(ary, ossl_##name##_new(t)); \
} \
return ary; \
}
OSSL_IMPL_SK2ARY(x509, X509)
OSSL_IMPL_SK2ARY(x509crl, X509_CRL)
+OSSL_IMPL_SK2ARY(x509name, X509_NAME)
static VALUE
ossl_str_new(int size)
@@ -143,7 +149,7 @@ ossl_buf2str(char *buf, int len)
*/
static VALUE
ossl_pem_passwd_cb0(VALUE flag)
-{
+{
VALUE pass;
pass = rb_yield(flag);
@@ -157,7 +163,7 @@ ossl_pem_passwd_cb(char *buf, int max_len, int flag, void *pwd)
{
int len, status = 0;
VALUE rflag, pass;
-
+
if (pwd || !rb_block_given_p())
return PEM_def_callback(buf, max_len, flag, pwd);
@@ -170,7 +176,7 @@ ossl_pem_passwd_cb(char *buf, int max_len, int flag, void *pwd)
rflag = flag ? Qtrue : Qfalse;
pass = rb_protect(ossl_pem_passwd_cb0, rflag, &status);
if (status) return -1; /* exception was raised. */
- len = RSTRING_LEN(pass);
+ len = RSTRING_LENINT(pass);
if (len < 4) { /* 4 is OpenSSL hardcoded limit */
rb_warning("password must be longer than 4 bytes");
continue;
@@ -192,12 +198,12 @@ int ossl_verify_cb_idx;
VALUE
ossl_call_verify_cb_proc(struct ossl_verify_cb_args *args)
-{
+{
return rb_funcall(args->proc, rb_intern("call"), 2,
args->preverify_ok, args->store_ctx);
}
-
-int
+
+int
ossl_verify_cb(int ok, X509_STORE_CTX *ctx)
{
VALUE proc, rctx, ret;
@@ -217,8 +223,11 @@ ossl_verify_cb(int ok, X509_STORE_CTX *ctx)
args.proc = proc;
args.preverify_ok = ok ? Qtrue : Qfalse;
args.store_ctx = rctx;
- ret = rb_ensure(ossl_call_verify_cb_proc, (VALUE)&args,
- ossl_x509stctx_clear_ptr, rctx);
+ ret = rb_protect((VALUE(*)(VALUE))ossl_call_verify_cb_proc, (VALUE)&args, &state);
+ ossl_x509stctx_clear_ptr(rctx);
+ if (state) {
+ rb_warn("exception in verify_callback is ignored");
+ }
}
if (ret == Qtrue) {
X509_STORE_CTX_set_error(ctx, X509_V_OK);
@@ -302,7 +311,7 @@ ossl_make_error(VALUE exc, const char *fmt, va_list args)
}
ERR_clear_error();
- if(len > BUFSIZ) len = strlen(buf);
+ if(len > BUFSIZ) len = rb_long2int(strlen(buf));
return rb_exc_new(exc, buf, len);
}
@@ -360,7 +369,7 @@ void
ossl_debug(const char *fmt, ...)
{
va_list args;
-
+
if (dOSSL == Qtrue) {
fprintf(stderr, "OSSL_DEBUG: ");
va_start(args, fmt);
@@ -393,7 +402,7 @@ ossl_debug_set(VALUE self, VALUE val)
{
VALUE old = dOSSL;
dOSSL = val;
-
+
if (old != dOSSL) {
if (dOSSL == Qtrue) {
CRYPTO_mem_ctrl(CRYPTO_MEM_CHECK_ON);
@@ -407,7 +416,377 @@ ossl_debug_set(VALUE self, VALUE val)
}
/*
- * OSSL library init
+ * OpenSSL provides SSL, TLS and general purpose cryptography. It wraps the
+ * OpenSSL[http://www.openssl.org/] library.
+ *
+ * = Examples
+ *
+ * All examples assume you have loaded OpenSSL with:
+ *
+ * require 'openssl'
+ *
+ * These examples build atop each other. For example the key created in the
+ * next is used in throughout these examples.
+ *
+ * == Keys
+ *
+ * === Creating a Key
+ *
+ * This example creates a 2048 bit RSA keypair and writes it to the current
+ * directory.
+ *
+ * key = OpenSSL::PKey::RSA.new 2048
+ *
+ * open 'private_key.pem', 'w' do |io| io.write key.to_pem end
+ * open 'public_key.pem', 'w' do |io| io.write key.public_key.to_pem end
+ *
+ * === Exporting a Key
+ *
+ * Keys saved to disk without encryption are not secure as anyone who gets
+ * ahold of the key may use it unless it is encrypted. In order to securely
+ * export a key you may export it with a pass phrase.
+ *
+ * cipher = OpenSSL::Cipher::Cipher.new 'AES-128-CBC'
+ * pass_phrase = 'my secure pass phrase goes here'
+ *
+ * key_secure = key.export cipher, pass_phrase
+ *
+ * open 'private.secure.pem', 'w' do |io|
+ * io.write key_secure
+ * end
+ *
+ * OpenSSL::Cipher.ciphers returns a list of available ciphers.
+ *
+ * === Loading a Key
+ *
+ * A key can also be loaded from a file.
+ *
+ * key2 = OpenSSL::PKey::RSA.new File.read 'private_key.pem'
+ * key2.public? # => true
+ *
+ * or
+ *
+ * key3 = OpenSSL::PKey::RSA.new File.read 'public_key.pem'
+ * key3.private? # => false
+ *
+ * === Loading an Encrypted Key
+ *
+ * OpenSSL will prompt you for your pass phrase when loading an encrypted key.
+ * If you will not be able to type in the pass phrase you may provide it when
+ * loading the key:
+ *
+ * key4_pem = File.read 'private.secure.pem'
+ * key4 = OpenSSL::PKey::RSA.new key4_pem, pass_phrase
+ *
+ * == RSA Encryption
+ *
+ * RSA provides ecryption and decryption using the public and private keys.
+ * You can use a variety of padding methods depending upon the intended use of
+ * encrypted data.
+ *
+ * === Encryption
+ *
+ * Documents encrypted with the public key can only be decrypted with the
+ * private key.
+ *
+ * public_encrypted = key.public_encrypt 'top secret document'
+ *
+ * Documents encrypted with the private key can only be decrypted with the
+ * public key.
+ *
+ * private_encrypted = key.private_encrypt 'public release document'
+ *
+ * === Decryption
+ *
+ * Use the opposite key type do decrypt the document
+ *
+ * top_secret = key.public_decrypt public_encrypted
+ *
+ * public_release = key.private_decrypt private_encrypted
+ *
+ * == PKCS #5 Password-based Encryption
+ *
+ * PKCS #5 is a password-based encryption standard documented at
+ * RFC2898[http://www.ietf.org/rfc/rfc2898.txt]. It allows a short password or
+ * passphrase to be used to create a secure encryption key.
+ *
+ * PKCS #5 uses a Cipher, a pass phrase and a salt to generate an encryption
+ * key.
+ *
+ * pass_phrase = 'my secure pass phrase goes here'
+ * salt = '8 octets'
+ *
+ * === Encryption
+ *
+ * First set up the cipher for encryption
+ *
+ * encrypter = OpenSSL::Cipher::Cipher.new 'AES-128-CBC'
+ * encrypter.encrypt
+ * encrypter.pkcs5_keyivgen pass_phrase, salt
+ *
+ * Then pass the data you want to encrypt through
+ *
+ * encrypted = encrypter.update 'top secret document'
+ * encrypted << encrypter.final
+ *
+ * === Decryption
+ *
+ * Use a new Cipher instance set up for decryption
+ *
+ * decrypter = OpenSSL::Cipher::Cipher.new 'AES-128-CBC'
+ * decrypter.decrypt
+ * decrypter.pkcs5_keyivgen pass_phrase, salt
+ *
+ * Then pass the data you want to decrypt through
+ *
+ * plain = decrypter.update encrypted
+ * plain << decrypter.final
+ *
+ * == X509 Certificates
+ *
+ * === Creating a Certificate
+ *
+ * This example creates a self-signed certificate using an RSA key and a SHA1
+ * signature.
+ *
+ * name = OpenSSL::X509::Name.parse 'CN=nobody/DC=example'
+ *
+ * cert = OpenSSL::X509::Certificate.new
+ * cert.version = 2
+ * cert.serial = 0
+ * cert.not_before = Time.now
+ * cert.not_after = Time.now + 3600
+ *
+ * cert.public_key = key.public_key
+ * cert.subject = name
+ *
+ * === Certificate Extensions
+ *
+ * You can add extensions to the certificate with
+ * OpenSSL::SSL::ExtensionFactory to indicate the purpose of the certificate.
+ *
+ * extension_factory = OpenSSL::X509::ExtensionFactory.new nil, cert
+ *
+ * extension_factory.create_extension 'basicConstraints', 'CA:FALSE'
+ * extension_factory.create_extension 'keyUsage',
+ * 'keyEncipherment,dataEncipherment,digitalSignature'
+ * extension_factory.create_extension 'subjectKeyIdentifier', 'hash'
+ *
+ * === Signing a Certificate
+ *
+ * To sign a certificate set the issuer and use OpenSSL::X509::Certificate#sign
+ * with a digest algorithm. This creates a self-signed cert because we're using
+ * the same name and key to sign the certificate as was used to create the
+ * certificate.
+ *
+ * cert.issuer = name
+ * cert.sign key, OpenSSL::Digest::SHA1.new
+ *
+ * open 'certificate.pem', 'w' do |io| io.write cert.to_pem end
+ *
+ * === Loading a Certificate
+ *
+ * Like a key, a cert can also be loaded from a file.
+ *
+ * cert2 = OpenSSL::X509::Certificate.new File.read 'certificate.pem'
+ *
+ * === Verifying a Certificate
+ *
+ * Certificate#verify will return true when a certificate was signed with the
+ * given public key.
+ *
+ * raise 'certificate can not be verified' unless cert2.verify key
+ *
+ * == Certificate Authority
+ *
+ * A certificate authority (CA) is a trusted third party that allows you to
+ * verify the ownership of unknown certificates. The CA issues key signatures
+ * that indicate it trusts the user of that key. A user encountering the key
+ * can verify the signature by using the CA's public key.
+ *
+ * === CA Key
+ *
+ * CA keys are valuable, so we encrypt and save it to disk and make sure it is
+ * not readable by other users.
+ *
+ * ca_key = OpenSSL::PKey::RSA.new 2048
+ *
+ * cipher = OpenSSL::Cipher::Cipher.new 'AES-128-CBC'
+ *
+ * open 'ca_key.pem', 'w', 0400 do |io|
+ * io.write key.export(cipher, pass_phrase)
+ * end
+ *
+ * === CA Certificate
+ *
+ * A CA certificate is created the same way we created a certificate above, but
+ * with different extensions.
+ *
+ * ca_name = OpenSSL::X509::Name.parse 'CN=ca/DC=example'
+ *
+ * ca_cert = OpenSSL::X509::Certificate.new
+ * ca_cert.serial = 0
+ * ca_cert.version = 2
+ * ca_cert.not_before = Time.now
+ * ca_cert.not_after = Time.now + 86400
+ *
+ * ca_cert.public_key = ca_key.public_key
+ * ca_cert.subject = ca_name
+ * ca_cert.issuer = ca_name
+ *
+ * extension_factory = OpenSSL::X509::ExtensionFactory.new
+ * extension_factory.subject_certificate = ca_cert
+ * extension_factory.issuer_certificate = ca_cert
+ *
+ * extension_factory.create_extension 'subjectKeyIdentifier', 'hash'
+ *
+ * This extension indicates the CA's key may be used as a CA.
+ *
+ * extension_factory.create_extension 'basicConstraints', 'CA:TRUE', true
+ *
+ * This extension indicates the CA's key may be used to verify signatures on
+ * both certificates and certificate revocations.
+ *
+ * extension_factory.create_extension 'keyUsage', 'cRLSign,keyCertSign', true
+ *
+ * Root CA certificates are self-signed.
+ *
+ * ca_cert.sign ca_key, OpenSSL::Digest::SHA1.new
+ *
+ * The CA certificate is saved to disk so it may be distributed to all the
+ * users of the keys this CA will sign.
+ *
+ * open 'ca_cert.pem', 'w' do |io|
+ * io.write ca_cert.to_pem
+ * end
+ *
+ * === Certificate Signing Request
+ *
+ * The CA signs keys through a Certificate Signing Request (CSR). The CSR
+ * contains the information necessary to identify the key.
+ *
+ * csr = OpenSSL::X509::Request.new
+ * csr.version = 0
+ * csr.subject = name
+ * csr.public_key = key.public_key
+ * csr.sign key, OpenSSL::Digest::SHA1.new
+ *
+ * A CSR is saved to disk and sent to the CA for signing.
+ *
+ * open 'csr.pem', 'w' do |io|
+ * io.write csr.to_pem
+ * end
+ *
+ * === Creating a Certificate from a CSR
+ *
+ * Upon receiving a CSR the CA will verify it before signing it. A minimal
+ * verification would be to check the CSR's signature.
+ *
+ * csr = OpenSSL::X509::Request.new File.read 'csr.pem'
+ *
+ * raise 'CSR can not be verified' unless csr.verify csr.public_key
+ *
+ * After verification a certificate is created, marked for various usages,
+ * signed with the CA key and returned to the requester.
+ *
+ * csr_cert = OpenSSL::X509::Certificate.new
+ * csr_cert.serial = 0
+ * csr_cert.version = 2
+ * csr_cert.not_before = Time.now
+ * csr_cert.not_after = Time.now + 600
+ *
+ * csr_cert.subject = csr.subject
+ * csr_cert.public_key = csr.public_key
+ * csr_cert.issuer = ca_cert.subject
+ *
+ * extension_factory = OpenSSL::X509::ExtensionFactory.new
+ * extension_factory.subject_certificate = csr_cert
+ * extension_factory.issuer_certificate = ca_cert
+ *
+ * extension_factory.create_extension 'basicConstraints', 'CA:FALSE'
+ * extension_factory.create_extension 'keyUsage',
+ * 'keyEncipherment,dataEncipherment,digitalSignature'
+ * extension_factory.create_extension 'subjectKeyIdentifier', 'hash'
+ *
+ * csr_cert.sign ca_key, OpenSSL::Digest::SHA1.new
+ *
+ * open 'csr_cert.pem', 'w' do |io|
+ * io.write csr_cert.to_pem
+ * end
+ *
+ * == SSL and TLS Connections
+ *
+ * Using our created key and certificate we can create an SSL or TLS connection.
+ * An SSLContext is used to set up an SSL session.
+ *
+ * context = OpenSSL::SSL::SSLContext.new
+ *
+ * === SSL Server
+ *
+ * An SSL server requires the certificate and private key to communicate
+ * securely with its clients:
+ *
+ * context.cert = cert
+ * context.key = key
+ *
+ * Then create an SSLServer with a TCP server socket and the context. Use the
+ * SSLServer like an ordinary TCP server.
+ *
+ * require 'socket'
+ *
+ * tcp_server = TCPServer.new 5000
+ * ssl_server = OpenSSL::SSL::SSLServer.new tcp_server, context
+ *
+ * loop do
+ * ssl_connection = ssl_server.accept
+ *
+ * data = connection.gets
+ *
+ * response = "I got #{data.dump}"
+ * puts response
+ *
+ * connection.puts "I got #{data.dump}"
+ * connection.close
+ * end
+ *
+ * === SSL client
+ *
+ * An SSL client is created with a TCP socket and the context.
+ * SSLSocket#connect must be called to initiate the SSL handshake and start
+ * encryption. A key and certificate are not required for the client socket.
+ *
+ * require 'socket'
+ *
+ * tcp_client = TCPSocket.new 'localhost', 5000
+ * ssl_client = OpenSSL::SSL::SSLSocket.new client_socket, context
+ * ssl_client.connect
+ *
+ * ssl_client.puts "hello server!"
+ * puts ssl_client.gets
+ *
+ * === Peer Verification
+ *
+ * An unverified SSL connection does not provide much security. For enhanced
+ * security the client or server can verify the certificate of its peer.
+ *
+ * The client can be modified to verify the server's certificate against the
+ * certificate authority's certificate:
+ *
+ * context.ca_file = 'ca_cert.pem'
+ * context.verify_mode = OpenSSL::SSL::VERIFY_PEER
+ *
+ * require 'socket'
+ *
+ * tcp_client = TCPSocket.new 'localhost', 5000
+ * ssl_client = OpenSSL::SSL::SSLSocket.new client_socket, context
+ * ssl_client.connect
+ *
+ * ssl_client.puts "hello server!"
+ * puts ssl_client.gets
+ *
+ * If the server certificate is invalid or <tt>context.ca_file</tt> is not set
+ * when verifying peers an OpenSSL::SSL::SSLError will be raised.
+ *
*/
void
Init_openssl()
@@ -449,10 +828,18 @@ Init_openssl()
mOSSL = rb_define_module("OpenSSL");
/*
- * Constants
+ * OpenSSL ruby extension version
*/
rb_define_const(mOSSL, "VERSION", rb_str_new2(OSSL_VERSION));
+
+ /*
+ * Version of OpenSSL the ruby OpenSSL extension was built with
+ */
rb_define_const(mOSSL, "OPENSSL_VERSION", rb_str_new2(OPENSSL_VERSION_TEXT));
+ /*
+ * Version number of OpenSSL the ruby OpenSSL extension was built with
+ * (base 16)
+ */
rb_define_const(mOSSL, "OPENSSL_VERSION_NUMBER", INT2NUM(OPENSSL_VERSION_NUMBER));
/*
diff --git a/ext/openssl/ossl.h b/ext/openssl/ossl.h
index 9ac1525085..97095f7d6f 100644
--- a/ext/openssl/ossl.h
+++ b/ext/openssl/ossl.h
@@ -45,7 +45,11 @@ extern "C" {
#endif
#if defined(_WIN32)
+# include <openssl/e_os2.h>
# define OSSL_NO_CONF_API 1
+# if !defined(OPENSSL_SYS_WIN32)
+# define OPENSSL_SYS_WIN32 1
+# endif
# include <winsock2.h>
#endif
#include <errno.h>
@@ -84,26 +88,33 @@ extern VALUE eOSSLError;
* CheckTypes
*/
#define OSSL_Check_Kind(obj, klass) do {\
- if (!rb_obj_is_kind_of(obj, klass)) {\
+ if (!rb_obj_is_kind_of((obj), (klass))) {\
ossl_raise(rb_eTypeError, "wrong argument (%s)! (Expected kind of %s)",\
rb_obj_classname(obj), rb_class2name(klass));\
}\
} while (0)
#define OSSL_Check_Instance(obj, klass) do {\
- if (!rb_obj_is_instance_of(obj, klass)) {\
+ if (!rb_obj_is_instance_of((obj), (klass))) {\
ossl_raise(rb_eTypeError, "wrong argument (%s)! (Expected instance of %s)",\
rb_obj_classname(obj), rb_class2name(klass));\
}\
} while (0)
#define OSSL_Check_Same_Class(obj1, obj2) do {\
- if (!rb_obj_is_instance_of(obj1, rb_obj_class(obj2))) {\
+ if (!rb_obj_is_instance_of((obj1), rb_obj_class(obj2))) {\
ossl_raise(rb_eTypeError, "wrong argument type");\
}\
} while (0)
/*
+ * Compatibility
+ */
+#if OPENSSL_VERSION_NUMBER >= 0x10000000L
+#define STACK _STACK
+#endif
+
+/*
* String to HEXString conversion
*/
int string2hex(const unsigned char *, int, char **, int *);
@@ -116,13 +127,14 @@ STACK_OF(X509) *ossl_x509_ary2sk(VALUE);
STACK_OF(X509) *ossl_protect_x509_ary2sk(VALUE,int*);
VALUE ossl_x509_sk2ary(STACK_OF(X509) *certs);
VALUE ossl_x509crl_sk2ary(STACK_OF(X509_CRL) *crl);
+VALUE ossl_x509name_sk2ary(STACK_OF(X509_NAME) *names);
VALUE ossl_buf2str(char *buf, int len);
#define ossl_str_adjust(str, p) \
do{\
- int len = RSTRING_LEN(str);\
- int newlen = (p) - (unsigned char*)RSTRING_PTR(str);\
+ int len = RSTRING_LENINT(str);\
+ int newlen = rb_long2int((p) - (unsigned char*)RSTRING_PTR(str));\
assert(newlen <= len);\
- rb_str_set_len(str, newlen);\
+ rb_str_set_len((str), newlen);\
}while(0)
/*
@@ -131,6 +143,13 @@ do{\
int ossl_pem_passwd_cb(char *, int, int, void *);
/*
+ * Clear BIO* with this in PEM/DER fallback scenarios to avoid decoding
+ * errors piling up in OpenSSL::Errors
+ */
+#define OSSL_BIO_reset(bio) (void)BIO_reset((bio)); \
+ ERR_clear_error();
+
+/*
* ERRor messages
*/
#define OSSL_ErrMsg() ERR_reason_error_string(ERR_get_error())
@@ -173,13 +192,13 @@ extern VALUE dOSSL;
} while (0)
#define OSSL_Warning(fmt, ...) do { \
- OSSL_Debug(fmt, ##__VA_ARGS__); \
- rb_warning(fmt, ##__VA_ARGS__); \
+ OSSL_Debug((fmt), ##__VA_ARGS__); \
+ rb_warning((fmt), ##__VA_ARGS__); \
} while (0)
#define OSSL_Warn(fmt, ...) do { \
- OSSL_Debug(fmt, ##__VA_ARGS__); \
- rb_warn(fmt, ##__VA_ARGS__); \
+ OSSL_Debug((fmt), ##__VA_ARGS__); \
+ rb_warn((fmt), ##__VA_ARGS__); \
} while (0)
#else
void ossl_debug(const char *, ...);
diff --git a/ext/openssl/ossl_asn1.c b/ext/openssl/ossl_asn1.c
index 6aff2b7e95..31c9c45f05 100644
--- a/ext/openssl/ossl_asn1.c
+++ b/ext/openssl/ossl_asn1.c
@@ -19,6 +19,12 @@ struct timeval {
};
#endif
+static VALUE join_der(VALUE enumerable);
+static VALUE ossl_asn1_decode0(unsigned char **pp, long length, long *offset,
+ int depth, int yield, long *num_read);
+static VALUE ossl_asn1_initialize(int argc, VALUE *argv, VALUE self);
+static VALUE ossl_asn1eoc_initialize(VALUE self);
+
/*
* DATE conversion
*/
@@ -27,16 +33,16 @@ asn1time_to_time(ASN1_TIME *time)
{
struct tm tm;
VALUE argv[6];
-
+
if (!time || !time->data) return Qnil;
memset(&tm, 0, sizeof(struct tm));
-
+
switch (time->type) {
case V_ASN1_UTCTIME:
if (sscanf((const char *)time->data, "%2d%2d%2d%2d%2d%2dZ", &tm.tm_year, &tm.tm_mon,
&tm.tm_mday, &tm.tm_hour, &tm.tm_min, &tm.tm_sec) != 6) {
ossl_raise(rb_eTypeError, "bad UTCTIME format");
- }
+ }
if (tm.tm_year < 69) {
tm.tm_year += 2000;
} else {
@@ -47,7 +53,7 @@ asn1time_to_time(ASN1_TIME *time)
if (sscanf((const char *)time->data, "%4d%2d%2d%2d%2d%2dZ", &tm.tm_year, &tm.tm_mon,
&tm.tm_mday, &tm.tm_hour, &tm.tm_min, &tm.tm_sec) != 6) {
ossl_raise(rb_eTypeError, "bad GENERALIZEDTIME format" );
- }
+ }
break;
default:
rb_warning("unknown time format");
@@ -144,7 +150,7 @@ ASN1_INTEGER *
num_to_asn1integer(VALUE obj, ASN1_INTEGER *ai)
{
BIGNUM *bn = GetBNPtr(obj);
-
+
if (!(ai = BN_to_ASN1_INTEGER(bn, ai))) {
ossl_raise(eOSSLError, NULL);
}
@@ -156,15 +162,17 @@ num_to_asn1integer(VALUE obj, ASN1_INTEGER *ai)
/*
* ASN1 module
*/
-#define ossl_asn1_get_value(o) rb_attr_get((o),rb_intern("@value"))
-#define ossl_asn1_get_tag(o) rb_attr_get((o),rb_intern("@tag"))
-#define ossl_asn1_get_tagging(o) rb_attr_get((o),rb_intern("@tagging"))
-#define ossl_asn1_get_tag_class(o) rb_attr_get((o),rb_intern("@tag_class"))
-
-#define ossl_asn1_set_value(o,v) rb_iv_set((o),"@value",(v))
-#define ossl_asn1_set_tag(o,v) rb_iv_set((o),"@tag",(v))
-#define ossl_asn1_set_tagging(o,v) rb_iv_set((o),"@tagging",(v))
-#define ossl_asn1_set_tag_class(o,v) rb_iv_set((o),"@tag_class",(v))
+#define ossl_asn1_get_value(o) rb_attr_get((o),sivVALUE)
+#define ossl_asn1_get_tag(o) rb_attr_get((o),sivTAG)
+#define ossl_asn1_get_tagging(o) rb_attr_get((o),sivTAGGING)
+#define ossl_asn1_get_tag_class(o) rb_attr_get((o),sivTAG_CLASS)
+#define ossl_asn1_get_infinite_length(o) rb_attr_get((o),sivINFINITE_LENGTH)
+
+#define ossl_asn1_set_value(o,v) rb_ivar_set((o),sivVALUE,(v))
+#define ossl_asn1_set_tag(o,v) rb_ivar_set((o),sivTAG,(v))
+#define ossl_asn1_set_tagging(o,v) rb_ivar_set((o),sivTAGGING,(v))
+#define ossl_asn1_set_tag_class(o,v) rb_ivar_set((o),sivTAG_CLASS,(v))
+#define ossl_asn1_set_infinite_length(o,v) rb_ivar_set((o),sivINFINITE_LENGTH,(v))
VALUE mASN1;
VALUE eASN1Error;
@@ -173,6 +181,7 @@ VALUE cASN1Data;
VALUE cASN1Primitive;
VALUE cASN1Constructive;
+VALUE cASN1EndOfContent;
VALUE cASN1Boolean; /* BOOLEAN */
VALUE cASN1Integer, cASN1Enumerated; /* INTEGER */
VALUE cASN1BitString; /* BIT STRING */
@@ -189,6 +198,20 @@ VALUE cASN1Sequence, cASN1Set; /* CONSTRUCTIVE */
static ID sIMPLICIT, sEXPLICIT;
static ID sUNIVERSAL, sAPPLICATION, sCONTEXT_SPECIFIC, sPRIVATE;
+static ID sivVALUE, sivTAG, sivTAG_CLASS, sivTAGGING, sivINFINITE_LENGTH, sivUNUSED_BITS;
+
+/*
+ * We need to implement these for backward compatibility
+ * reasons, behavior of ASN1_put_object and ASN1_object_size
+ * for infinite length values is different in OpenSSL <= 0.9.7
+ */
+#if OPENSSL_VERSION_NUMBER < 0x00908000L
+#define ossl_asn1_object_size(cons, len, tag) (cons) == 2 ? (len) + ASN1_object_size((cons), 0, (tag)) : ASN1_object_size((cons), (len), (tag))
+#define ossl_asn1_put_object(pp, cons, len, tag, xc) (cons) == 2 ? ASN1_put_object((pp), (cons), 0, (tag), (xc)) : ASN1_put_object((pp), (cons), (len), (tag), (xc))
+#else
+#define ossl_asn1_object_size(cons, len, tag) ASN1_object_size((cons), (len), (tag))
+#define ossl_asn1_put_object(pp, cons, len, tag, xc) ASN1_put_object((pp), (cons), (len), (tag), (xc))
+#endif
/*
* Ruby to ASN1 converters
@@ -196,7 +219,11 @@ static ID sUNIVERSAL, sAPPLICATION, sCONTEXT_SPECIFIC, sPRIVATE;
static ASN1_BOOLEAN
obj_to_asn1bool(VALUE obj)
{
+#if OPENSSL_VERSION_NUMBER < 0x00907000L
return RTEST(obj) ? 0xff : 0x100;
+#else
+ return RTEST(obj) ? 0xff : 0x0;
+#endif
}
static ASN1_INTEGER*
@@ -214,7 +241,7 @@ obj_to_asn1bstr(VALUE obj, long unused_bits)
StringValue(obj);
if(!(bstr = ASN1_BIT_STRING_new()))
ossl_raise(eASN1Error, NULL);
- ASN1_BIT_STRING_set(bstr, (unsigned char *)RSTRING_PTR(obj), RSTRING_LEN(obj));
+ ASN1_BIT_STRING_set(bstr, (unsigned char *)RSTRING_PTR(obj), RSTRING_LENINT(obj));
bstr->flags &= ~(ASN1_STRING_FLAG_BITS_LEFT|0x07); /* clear */
bstr->flags |= ASN1_STRING_FLAG_BITS_LEFT|(unused_bits&0x07);
@@ -229,7 +256,7 @@ obj_to_asn1str(VALUE obj)
StringValue(obj);
if(!(str = ASN1_STRING_new()))
ossl_raise(eASN1Error, NULL);
- ASN1_STRING_set(str, RSTRING_PTR(obj), RSTRING_LEN(obj));
+ ASN1_STRING_set(str, RSTRING_PTR(obj), RSTRING_LENINT(obj));
return str;
}
@@ -295,7 +322,7 @@ obj_to_asn1derstr(VALUE obj)
str = ossl_to_der(obj);
if(!(a1str = ASN1_STRING_new()))
ossl_raise(eASN1Error, NULL);
- ASN1_STRING_set(a1str, RSTRING_PTR(str), RSTRING_LEN(str));
+ ASN1_STRING_set(a1str, RSTRING_PTR(str), RSTRING_LENINT(str));
return a1str;
}
@@ -321,7 +348,7 @@ decode_int(unsigned char* der, int length)
{
ASN1_INTEGER *ai;
const unsigned char *p;
- VALUE ret;
+ VALUE ret;
int status = 0;
p = der;
@@ -361,7 +388,7 @@ decode_enum(unsigned char* der, int length)
{
ASN1_ENUMERATED *ai;
const unsigned char *p;
- VALUE ret;
+ VALUE ret;
int status = 0;
p = der;
@@ -437,6 +464,15 @@ decode_time(unsigned char* der, int length)
return ret;
}
+static VALUE
+decode_eoc(unsigned char *der, int length)
+{
+ if (length != 2 || !(der[0] == 0x00 && der[1] == 0x00))
+ ossl_raise(eASN1Error, NULL);
+
+ return rb_str_new("", 0);
+}
+
/********/
typedef struct {
@@ -445,7 +481,7 @@ typedef struct {
} ossl_asn1_info_t;
static ossl_asn1_info_t ossl_asn1_info[] = {
- { "EOC", NULL, }, /* 0 */
+ { "EOC", &cASN1EndOfContent, }, /* 0 */
{ "BOOLEAN", &cASN1Boolean, }, /* 1 */
{ "INTEGER", &cASN1Integer, }, /* 2 */
{ "BIT_STRING", &cASN1BitString, }, /* 3 */
@@ -480,6 +516,8 @@ static ossl_asn1_info_t ossl_asn1_info[] = {
int ossl_asn1_info_size = (sizeof(ossl_asn1_info)/sizeof(ossl_asn1_info[0]));
+static VALUE class_tag_map;
+
static int ossl_asn1_default_tag(VALUE obj);
ASN1_TYPE*
@@ -489,7 +527,7 @@ ossl_asn1_get_asn1type(VALUE obj)
VALUE value, rflag;
void *ptr;
void (*free_func)();
- long tag, flag;
+ int tag, flag;
tag = ossl_asn1_default_tag(obj);
value = ossl_asn1_get_value(obj);
@@ -504,7 +542,7 @@ ossl_asn1_get_asn1type(VALUE obj)
free_func = ASN1_INTEGER_free;
break;
case V_ASN1_BIT_STRING:
- rflag = rb_attr_get(obj, rb_intern("@unused_bits"));
+ rflag = rb_attr_get(obj, sivUNUSED_BITS);
flag = NIL_P(rflag) ? -1 : NUM2INT(rflag);
ptr = obj_to_asn1bstr(value, flag);
free_func = ASN1_BIT_STRING_free;
@@ -524,7 +562,7 @@ ossl_asn1_get_asn1type(VALUE obj)
case V_ASN1_ISO64STRING: /* FALLTHROUGH */
case V_ASN1_GENERALSTRING: /* FALLTHROUGH */
case V_ASN1_UNIVERSALSTRING: /* FALLTHROUGH */
- case V_ASN1_BMPSTRING:
+ case V_ASN1_BMPSTRING:
ptr = obj_to_asn1str(value);
free_func = ASN1_STRING_free;
break;
@@ -561,13 +599,15 @@ ossl_asn1_get_asn1type(VALUE obj)
static int
ossl_asn1_default_tag(VALUE obj)
{
- int i;
-
- for(i = 0; i < ossl_asn1_info_size; i++){
- if(ossl_asn1_info[i].klass &&
- rb_obj_is_kind_of(obj, *ossl_asn1_info[i].klass)){
- return i;
- }
+ VALUE tmp_class, tag;
+
+ tmp_class = CLASS_OF(obj);
+ while (tmp_class) {
+ tag = rb_hash_lookup(class_tag_map, tmp_class);
+ if (tag != Qnil) {
+ return NUM2INT(tag);
+ }
+ tmp_class = rb_class_superclass(tmp_class);
}
ossl_raise(eASN1Error, "universal tag for %s not found",
rb_class2name(CLASS_OF(obj)));
@@ -646,6 +686,22 @@ ossl_asn1_class2sym(int tc)
return ID2SYM(sUNIVERSAL);
}
+/*
+ * call-seq:
+ * OpenSSL::ASN1::ASN1Data.new(value, tag, tag_class) => ASN1Data
+ *
+ * +value+: Please have a look at Constructive and Primitive to see how Ruby
+ * types are mapped to ASN.1 types and vice versa.
+ *
+ * +tag+: A +Number+ indicating the tag number.
+ *
+ * +tag_class+: A +Symbol+ indicating the tag class. Please cf. ASN1 for
+ * possible values.
+ *
+ * == Example
+ * asn1_int = OpenSSL::ASN1Data.new(42, 2, :UNIVERSAL) # => Same as OpenSSL::ASN1::Integer.new(42)
+ * tagged_int = OpenSSL::ASN1Data.new(42, 0, :CONTEXT_SPECIFIC) # implicitly 0-tagged INTEGER
+ */
static VALUE
ossl_asn1data_initialize(VALUE self, VALUE value, VALUE tag, VALUE tag_class)
{
@@ -656,12 +712,13 @@ ossl_asn1data_initialize(VALUE self, VALUE value, VALUE tag, VALUE tag_class)
ossl_asn1_set_tag(self, tag);
ossl_asn1_set_value(self, value);
ossl_asn1_set_tag_class(self, tag_class);
+ ossl_asn1_set_infinite_length(self, Qfalse);
return self;
}
-static VALUE
-join_der_i(VALUE i, VALUE str)
+static VALUE
+join_der_i(VALUE i, VALUE str)
{
i = ossl_to_der_if_possible(i);
StringValue(i);
@@ -677,10 +734,19 @@ join_der(VALUE enumerable)
return str;
}
+/*
+ * call-seq:
+ * asn1.to_der => DER-encoded String
+ *
+ * Encodes this ASN1Data into a DER-encoded String value. The result is
+ * DER-encoded except for the possibility of infinite length encodings.
+ * Infinite length encodings are not allowed in strict DER, so strictly
+ * speaking the result of such an encoding would be a BER-encoding.
+ */
static VALUE
ossl_asn1data_to_der(VALUE self)
{
- VALUE value, der;
+ VALUE value, der, inf_length;
int tag, tag_class, is_cons = 0;
long length;
unsigned char *p;
@@ -694,11 +760,15 @@ ossl_asn1data_to_der(VALUE self)
tag = ossl_asn1_tag(self);
tag_class = ossl_asn1_tag_class(self);
- if((length = ASN1_object_size(1, RSTRING_LEN(value), tag)) <= 0)
+ inf_length = ossl_asn1_get_infinite_length(self);
+ if (inf_length == Qtrue) {
+ is_cons = 2;
+ }
+ if((length = ossl_asn1_object_size(is_cons, RSTRING_LENINT(value), tag)) <= 0)
ossl_raise(eASN1Error, NULL);
der = rb_str_new(0, length);
p = (unsigned char *)RSTRING_PTR(der);
- ASN1_put_object(&p, is_cons, RSTRING_LEN(value), tag, tag_class);
+ ossl_asn1_put_object(&p, is_cons, RSTRING_LENINT(value), tag, tag_class);
memcpy(p, RSTRING_PTR(value), RSTRING_LEN(value));
p += RSTRING_LEN(value);
ossl_str_adjust(der, p);
@@ -707,160 +777,345 @@ ossl_asn1data_to_der(VALUE self)
}
static VALUE
-ossl_asn1_decode0(unsigned char **pp, long length, long *offset, long depth,
- int once, int yield)
+int_ossl_asn1_decode0_prim(unsigned char **pp, long length, int hlen, int tag,
+ VALUE tc, long *num_read)
{
- unsigned char *start, *p;
- const unsigned char *p0;
- long len, off = *offset;
- int hlen, tag, tc, j;
- VALUE ary, asn1data, value, tag_class;
+ VALUE value, asn1data;
+ unsigned char *p;
+ long flag = 0;
- ary = rb_ary_new();
p = *pp;
- while(length > 0){
- start = p;
- p0 = p;
- j = ASN1_get_object(&p0, &len, &tag, &tc, length);
- p = (unsigned char *)p0;
- if(j & 0x80) ossl_raise(eASN1Error, NULL);
- hlen = p - start;
- if(yield){
- VALUE arg = rb_ary_new();
- rb_ary_push(arg, LONG2NUM(depth));
- rb_ary_push(arg, LONG2NUM(off));
- rb_ary_push(arg, LONG2NUM(hlen));
- rb_ary_push(arg, LONG2NUM(len));
- rb_ary_push(arg, (j & V_ASN1_CONSTRUCTED) ? Qtrue : Qfalse);
- rb_ary_push(arg, ossl_asn1_class2sym(tc));
- rb_ary_push(arg, INT2NUM(tag));
- rb_yield(arg);
+
+ if(tc == sUNIVERSAL && tag < ossl_asn1_info_size) {
+ switch(tag){
+ case V_ASN1_EOC:
+ value = decode_eoc(p, hlen+length);
+ break;
+ case V_ASN1_BOOLEAN:
+ value = decode_bool(p, hlen+length);
+ break;
+ case V_ASN1_INTEGER:
+ value = decode_int(p, hlen+length);
+ break;
+ case V_ASN1_BIT_STRING:
+ value = decode_bstr(p, hlen+length, &flag);
+ break;
+ case V_ASN1_NULL:
+ value = decode_null(p, hlen+length);
+ break;
+ case V_ASN1_ENUMERATED:
+ value = decode_enum(p, hlen+length);
+ break;
+ case V_ASN1_OBJECT:
+ value = decode_obj(p, hlen+length);
+ break;
+ case V_ASN1_UTCTIME: /* FALLTHROUGH */
+ case V_ASN1_GENERALIZEDTIME:
+ value = decode_time(p, hlen+length);
+ break;
+ default:
+ /* use original value */
+ p += hlen;
+ value = rb_str_new((const char *)p, length);
+ break;
}
- length -= hlen;
- off += hlen;
- if(len > length) ossl_raise(eASN1Error, "value is too short");
- if((tc & V_ASN1_PRIVATE) == V_ASN1_PRIVATE)
- tag_class = sPRIVATE;
- else if((tc & V_ASN1_CONTEXT_SPECIFIC) == V_ASN1_CONTEXT_SPECIFIC)
- tag_class = sCONTEXT_SPECIFIC;
- else if((tc & V_ASN1_APPLICATION) == V_ASN1_APPLICATION)
- tag_class = sAPPLICATION;
- else
- tag_class = sUNIVERSAL;
- if(j & V_ASN1_CONSTRUCTED){
- /* TODO: if j == 0x21 it is indefinite length object. */
- if((j == 0x21) && (len == 0)){
- long lastoff = off;
- value = ossl_asn1_decode0(&p, length, &off, depth+1, 0, yield);
- len = off - lastoff;
- }
- else value = ossl_asn1_decode0(&p, len, &off, depth+1, 0, yield);
+ }
+ else {
+ p += hlen;
+ value = rb_str_new((const char *)p, length);
+ }
+
+ *pp += hlen + length;
+ *num_read = hlen + length;
+
+ if (tc == sUNIVERSAL && tag < ossl_asn1_info_size && ossl_asn1_info[tag].klass) {
+ VALUE klass = *ossl_asn1_info[tag].klass;
+ VALUE args[4];
+ args[0] = value;
+ args[1] = INT2NUM(tag);
+ args[2] = Qnil;
+ args[3] = ID2SYM(tc);
+ asn1data = rb_obj_alloc(klass);
+ ossl_asn1_initialize(4, args, asn1data);
+ if(tag == V_ASN1_BIT_STRING){
+ rb_ivar_set(asn1data, sivUNUSED_BITS, LONG2NUM(flag));
}
- else{
- value = rb_str_new((const char *)p, len);
- p += len;
- off += len;
+ }
+ else {
+ asn1data = rb_obj_alloc(cASN1Data);
+ ossl_asn1data_initialize(asn1data, value, INT2NUM(tag), ID2SYM(tc));
+ }
+
+ return asn1data;
+}
+
+static VALUE
+int_ossl_asn1_decode0_cons(unsigned char **pp, long max_len, long length,
+ long *offset, int depth, int yield, int j,
+ int tag, VALUE tc, long *num_read)
+{
+ VALUE value, asn1data, ary;
+ int infinite;
+ long off = *offset;
+
+ infinite = (j == 0x21);
+ ary = rb_ary_new();
+
+ while (length > 0 || infinite) {
+ long inner_read = 0;
+ value = ossl_asn1_decode0(pp, max_len, &off, depth + 1, yield, &inner_read);
+ *num_read += inner_read;
+ max_len -= inner_read;
+ rb_ary_push(ary, value);
+ if (length > 0)
+ length -= inner_read;
+
+ if (infinite &&
+ NUM2INT(ossl_asn1_get_tag(value)) == V_ASN1_EOC &&
+ SYM2ID(ossl_asn1_get_tag_class(value)) == sUNIVERSAL) {
+ break;
}
- if(tag_class == sUNIVERSAL &&
- tag < ossl_asn1_info_size && ossl_asn1_info[tag].klass){
- VALUE klass = *ossl_asn1_info[tag].klass;
- long flag = 0;
- if(!rb_obj_is_kind_of(value, rb_cArray)){
- switch(tag){
- case V_ASN1_BOOLEAN:
- value = decode_bool(start, hlen+len);
- break;
- case V_ASN1_INTEGER:
- value = decode_int(start, hlen+len);
- break;
- case V_ASN1_BIT_STRING:
- value = decode_bstr(start, hlen+len, &flag);
- break;
- case V_ASN1_NULL:
- value = decode_null(start, hlen+len);
- break;
- case V_ASN1_ENUMERATED:
- value = decode_enum(start, hlen+len);
- break;
- case V_ASN1_OBJECT:
- value = decode_obj(start, hlen+len);
- break;
- case V_ASN1_UTCTIME: /* FALLTHROUGH */
- case V_ASN1_GENERALIZEDTIME:
- value = decode_time(start, hlen+len);
- break;
- default:
- /* use original value */
- break;
- }
+ }
+
+ if (tc == sUNIVERSAL) {
+ VALUE args[4];
+ int not_sequence_or_set;
+
+ not_sequence_or_set = tag != V_ASN1_SEQUENCE && tag != V_ASN1_SET;
+
+ if (not_sequence_or_set) {
+ if (infinite) {
+ asn1data = rb_obj_alloc(cASN1Constructive);
}
- asn1data = rb_funcall(klass, rb_intern("new"), 1, value);
- if(tag == V_ASN1_BIT_STRING){
- rb_iv_set(asn1data, "@unused_bits", LONG2NUM(flag));
+ else {
+ ossl_raise(eASN1Error, "invalid non-infinite tag");
+ return Qnil;
}
}
- else{
- asn1data = rb_funcall(cASN1Data, rb_intern("new"), 3,
- value, INT2NUM(tag), ID2SYM(tag_class));
+ else {
+ VALUE klass = *ossl_asn1_info[tag].klass;
+ asn1data = rb_obj_alloc(klass);
}
- rb_ary_push(ary, asn1data);
- length -= len;
- if(once) break;
+ args[0] = ary;
+ args[1] = INT2NUM(tag);
+ args[2] = Qnil;
+ args[3] = ID2SYM(tc);
+ ossl_asn1_initialize(4, args, asn1data);
+ }
+ else {
+ asn1data = rb_obj_alloc(cASN1Data);
+ ossl_asn1data_initialize(asn1data, ary, INT2NUM(tag), ID2SYM(tc));
}
- *pp = p;
+
+ if (infinite)
+ ossl_asn1_set_infinite_length(asn1data, Qtrue);
+ else
+ ossl_asn1_set_infinite_length(asn1data, Qfalse);
+
*offset = off;
+ return asn1data;
+}
- return ary;
+static VALUE
+ossl_asn1_decode0(unsigned char **pp, long length, long *offset, int depth,
+ int yield, long *num_read)
+{
+ unsigned char *start, *p;
+ const unsigned char *p0;
+ long len = 0, inner_read = 0, off = *offset;
+ int hlen, tag, tc, j;
+ VALUE asn1data, tag_class;
+
+ p = *pp;
+ start = p;
+ p0 = p;
+ j = ASN1_get_object(&p0, &len, &tag, &tc, length);
+ p = (unsigned char *)p0;
+ if(j & 0x80) ossl_raise(eASN1Error, NULL);
+ if(len > length) ossl_raise(eASN1Error, "value is too short");
+ if((tc & V_ASN1_PRIVATE) == V_ASN1_PRIVATE)
+ tag_class = sPRIVATE;
+ else if((tc & V_ASN1_CONTEXT_SPECIFIC) == V_ASN1_CONTEXT_SPECIFIC)
+ tag_class = sCONTEXT_SPECIFIC;
+ else if((tc & V_ASN1_APPLICATION) == V_ASN1_APPLICATION)
+ tag_class = sAPPLICATION;
+ else
+ tag_class = sUNIVERSAL;
+
+ hlen = p - start;
+
+ if(yield) {
+ VALUE arg = rb_ary_new();
+ rb_ary_push(arg, LONG2NUM(depth));
+ rb_ary_push(arg, LONG2NUM(*offset));
+ rb_ary_push(arg, LONG2NUM(hlen));
+ rb_ary_push(arg, LONG2NUM(len));
+ rb_ary_push(arg, (j & V_ASN1_CONSTRUCTED) ? Qtrue : Qfalse);
+ rb_ary_push(arg, ossl_asn1_class2sym(tc));
+ rb_ary_push(arg, INT2NUM(tag));
+ rb_yield(arg);
+ }
+
+ if(j & V_ASN1_CONSTRUCTED) {
+ *pp += hlen;
+ off += hlen;
+ asn1data = int_ossl_asn1_decode0_cons(pp, length, len, &off, depth, yield, j, tag, tag_class, &inner_read);
+ inner_read += hlen;
+ }
+ else {
+ if ((j & 0x01) && (len == 0)) ossl_raise(eASN1Error, "Infinite length for primitive value");
+ asn1data = int_ossl_asn1_decode0_prim(pp, len, hlen, tag, tag_class, &inner_read);
+ off += hlen + len;
+ }
+ if (num_read)
+ *num_read = inner_read;
+ if (len != 0 && inner_read != hlen + len) {
+ ossl_raise(eASN1Error,
+ "Type mismatch. Bytes read: %ld Bytes available: %ld",
+ inner_read, hlen + len);
+ }
+
+ *offset = off;
+ return asn1data;
}
+static void
+int_ossl_decode_sanity_check(long len, long read, long offset)
+{
+ if (len != 0 && (read != len || offset != len)) {
+ ossl_raise(eASN1Error,
+ "Type mismatch. Total bytes read: %ld Bytes available: %ld Offset: %ld",
+ read, len, offset);
+ }
+}
+
+/*
+ * call-seq:
+ * OpenSSL::ASN1.traverse(asn1) -> nil
+ *
+ * If a block is given, it prints out each of the elements encountered.
+ * Block parameters are (in that order):
+ * * depth: The recursion depth, plus one with each constructed value being encountered (Number)
+ * * offset: Current byte offset (Number)
+ * * header length: Combined length in bytes of the Tag and Length headers. (Number)
+ * * length: The overall remaining length of the entire data (Number)
+ * * constructed: Whether this value is constructed or not (Boolean)
+ * * tag_class: Current tag class (Symbol)
+ * * tag: The current tag (Number)
+ *
+ * == Example
+ * der = File.binread('asn1data.der')
+ * OpenSSL::ASN1.traverse(der) do | depth, offset, header_len, length, constructed, tag_class, tag|
+ * puts "Depth: #{depth} Offset: #{offset} Length: #{length}"
+ * puts "Header length: #{header_len} Tag: #{tag} Tag class: #{tag_class} Constructed: #{constructed}"
+ * end
+ */
static VALUE
ossl_asn1_traverse(VALUE self, VALUE obj)
{
unsigned char *p;
- long offset = 0;
volatile VALUE tmp;
+ long len, read = 0, offset = 0;
obj = ossl_to_der_if_possible(obj);
tmp = rb_str_new4(StringValue(obj));
p = (unsigned char *)RSTRING_PTR(tmp);
- ossl_asn1_decode0(&p, RSTRING_LEN(tmp), &offset, 0, 0, 1);
-
+ len = RSTRING_LEN(tmp);
+ ossl_asn1_decode0(&p, len, &offset, 0, 1, &read);
+ int_ossl_decode_sanity_check(len, read, offset);
return Qnil;
}
+/*
+ * call-seq:
+ * OpenSSL::ASN1.decode(der) -> ASN1Data
+ *
+ * Decodes a BER- or DER-encoded value and creates an ASN1Data instance. +der+
+ * may be a +String+ or any object that features a +#to_der+ method transforming
+ * it into a BER-/DER-encoded +String+.
+ *
+ * == Example
+ * der = File.binread('asn1data')
+ * asn1 = OpenSSL::ASN1.decode(der)
+ */
static VALUE
ossl_asn1_decode(VALUE self, VALUE obj)
{
- VALUE ret, ary;
+ VALUE ret;
unsigned char *p;
- long offset = 0;
volatile VALUE tmp;
+ long len, read = 0, offset = 0;
obj = ossl_to_der_if_possible(obj);
tmp = rb_str_new4(StringValue(obj));
p = (unsigned char *)RSTRING_PTR(tmp);
- ary = ossl_asn1_decode0(&p, RSTRING_LEN(tmp), &offset, 0, 1, 0);
- ret = rb_ary_entry(ary, 0);
-
+ len = RSTRING_LEN(tmp);
+ ret = ossl_asn1_decode0(&p, len, &offset, 0, 0, &read);
+ int_ossl_decode_sanity_check(len, read, offset);
return ret;
}
+/*
+ * call-seq:
+ * OpenSSL::ASN1.decode_all(der) -> Array of ASN1Data
+ *
+ * Similar to +decode+ with the difference that +decode+ expects one
+ * distinct value represented in +der+. +decode_all+ on the contrary
+ * decodes a sequence of sequential BER/DER values lined up in +der+
+ * and returns them as an array.
+ *
+ * == Example
+ * ders = File.binread('asn1data_seq')
+ * asn1_ary = OpenSSL::ASN1.decode_all(ders)
+ */
static VALUE
ossl_asn1_decode_all(VALUE self, VALUE obj)
{
- VALUE ret;
+ VALUE ary, val;
unsigned char *p;
- long offset = 0;
+ long len, tmp_len = 0, read = 0, offset = 0;
volatile VALUE tmp;
obj = ossl_to_der_if_possible(obj);
tmp = rb_str_new4(StringValue(obj));
p = (unsigned char *)RSTRING_PTR(tmp);
- ret = ossl_asn1_decode0(&p, RSTRING_LEN(tmp), &offset, 0, 0, 0);
-
- return ret;
+ len = RSTRING_LEN(tmp);
+ tmp_len = len;
+ ary = rb_ary_new();
+ while (tmp_len > 0) {
+ long tmp_read = 0;
+ val = ossl_asn1_decode0(&p, tmp_len, &offset, 0, 0, &tmp_read);
+ rb_ary_push(ary, val);
+ read += tmp_read;
+ tmp_len -= tmp_read;
+ }
+ int_ossl_decode_sanity_check(len, read, offset);
+ return ary;
}
+/*
+ * call-seq:
+ * OpenSSL::ASN1::Primitive.new( value [, tag, tagging, tag_class ]) => Primitive
+ *
+ * +value+: is mandatory.
+ *
+ * +tag+: optional, may be specified for tagged values. If no +tag+ is
+ * specified, the UNIVERSAL tag corresponding to the Primitive sub-class
+ * is used by default.
+ *
+ * +tagging+: may be used as an encoding hint to encode a value either
+ * explicitly or implicitly, see ASN1 for possible values.
+ *
+ * +tag_class+: if +tag+ and +tagging+ are +nil+ then this is set to
+ * +:UNIVERSAL+ by default. If either +tag+ or +tagging+ are set then
+ * +:CONTEXT_SPECIFIC+ is used as the default. For possible values please
+ * cf. ASN1.
+ *
+ * == Example
+ * int = OpenSSL::ASN1::Integer.new(42)
+ * zero_tagged_int = OpenSSL::ASN1::Integer.new(42, 0, :IMPLICIT)
+ * private_explicit_zero_tagged_int = OpenSSL::ASN1::Integer.new(42, 0, :EXPLICIT, :PRIVATE)
+ */
static VALUE
ossl_asn1_initialize(int argc, VALUE *argv, VALUE self)
{
@@ -870,12 +1125,14 @@ ossl_asn1_initialize(int argc, VALUE *argv, VALUE self)
if(argc > 1){
if(NIL_P(tag))
ossl_raise(eASN1Error, "must specify tag number");
- if(NIL_P(tagging))
- tagging = ID2SYM(sEXPLICIT);
- if(!SYMBOL_P(tagging))
- ossl_raise(eASN1Error, "invalid tag default");
- if(NIL_P(tag_class))
- tag_class = ID2SYM(sCONTEXT_SPECIFIC);
+ if(!NIL_P(tagging) && !SYMBOL_P(tagging))
+ ossl_raise(eASN1Error, "invalid tagging method");
+ if(NIL_P(tag_class)) {
+ if (NIL_P(tagging))
+ tag_class = ID2SYM(sUNIVERSAL);
+ else
+ tag_class = ID2SYM(sCONTEXT_SPECIFIC);
+ }
if(!SYMBOL_P(tag_class))
ossl_raise(eASN1Error, "invalid tag class");
if(SYM2ID(tagging) == sIMPLICIT && NUM2INT(tag) > 31)
@@ -883,17 +1140,33 @@ ossl_asn1_initialize(int argc, VALUE *argv, VALUE self)
}
else{
tag = INT2NUM(ossl_asn1_default_tag(self));
- tagging = Qnil;
+ tagging = Qnil;
tag_class = ID2SYM(sUNIVERSAL);
}
ossl_asn1_set_tag(self, tag);
ossl_asn1_set_value(self, value);
ossl_asn1_set_tagging(self, tagging);
ossl_asn1_set_tag_class(self, tag_class);
+ ossl_asn1_set_infinite_length(self, Qfalse);
return self;
}
+static VALUE
+ossl_asn1eoc_initialize(VALUE self) {
+ VALUE tag, tagging, tag_class, value;
+ tag = INT2NUM(ossl_asn1_default_tag(self));
+ tagging = Qnil;
+ tag_class = ID2SYM(sUNIVERSAL);
+ value = rb_str_new("", 0);
+ ossl_asn1_set_tag(self, tag);
+ ossl_asn1_set_value(self, value);
+ ossl_asn1_set_tagging(self, tagging);
+ ossl_asn1_set_tag_class(self, tag_class);
+ ossl_asn1_set_infinite_length(self, Qfalse);
+ return self;
+}
+
static int
ossl_i2d_ASN1_TYPE(ASN1_TYPE *a, unsigned char **pp)
{
@@ -918,6 +1191,12 @@ ossl_ASN1_TYPE_free(ASN1_TYPE *a)
ASN1_TYPE_free(a);
}
+/*
+ * call-seq:
+ * asn1.to_der => DER-encoded String
+ *
+ * See ASN1Data#to_der for details. *
+ */
static VALUE
ossl_asn1prim_to_der(VALUE self)
{
@@ -932,7 +1211,7 @@ ossl_asn1prim_to_der(VALUE self)
explicit = ossl_asn1_is_explicit(self);
asn1 = ossl_asn1_get_asn1type(self);
- len = ASN1_object_size(1, ossl_i2d_ASN1_TYPE(asn1, NULL), tn);
+ len = ossl_asn1_object_size(1, ossl_i2d_ASN1_TYPE(asn1, NULL), tn);
if(!(buf = OPENSSL_malloc(len))){
ossl_ASN1_TYPE_free(asn1);
ossl_raise(eASN1Error, "cannot alloc buffer");
@@ -941,7 +1220,7 @@ ossl_asn1prim_to_der(VALUE self)
if (tc == V_ASN1_UNIVERSAL) {
ossl_i2d_ASN1_TYPE(asn1, &p);
} else if (explicit) {
- ASN1_put_object(&p, 1, ossl_i2d_ASN1_TYPE(asn1, NULL), tn, tc);
+ ossl_asn1_put_object(&p, 1, ossl_i2d_ASN1_TYPE(asn1, NULL), tn, tc);
ossl_i2d_ASN1_TYPE(asn1, &p);
} else {
ossl_i2d_ASN1_TYPE(asn1, &p);
@@ -950,45 +1229,113 @@ ossl_asn1prim_to_der(VALUE self)
ossl_ASN1_TYPE_free(asn1);
reallen = p - buf;
assert(reallen <= len);
- str = ossl_buf2str((char *)buf, reallen); /* buf will be free in ossl_buf2str */
+ str = ossl_buf2str((char *)buf, rb_long2int(reallen)); /* buf will be free in ossl_buf2str */
return str;
}
+/*
+ * call-seq:
+ * asn1.to_der => DER-encoded String
+ *
+ * See ASN1Data#to_der for details.
+ */
static VALUE
ossl_asn1cons_to_der(VALUE self)
{
- int tag, tn, tc, explicit;
- long seq_len, length;
+ int tag, tn, tc, explicit, constructed = 1;
+ int found_prim = 0, seq_len;
+ long length;
unsigned char *p;
- VALUE value, str;
+ VALUE value, str, inf_length;
- tag = ossl_asn1_default_tag(self);
tn = NUM2INT(ossl_asn1_get_tag(self));
tc = ossl_asn1_tag_class(self);
+ inf_length = ossl_asn1_get_infinite_length(self);
+ if (inf_length == Qtrue) {
+ VALUE ary, example;
+ constructed = 2;
+ if (CLASS_OF(self) == cASN1Sequence ||
+ CLASS_OF(self) == cASN1Set) {
+ tag = ossl_asn1_default_tag(self);
+ }
+ else { /* must be a constructive encoding of a primitive value */
+ ary = ossl_asn1_get_value(self);
+ if (!rb_obj_is_kind_of(ary, rb_cArray))
+ ossl_raise(eASN1Error, "Constructive value must be an Array");
+ /* Recursively descend until a primitive value is found.
+ The overall value of the entire constructed encoding
+ is of the type of the first primitive encoding to be
+ found. */
+ while (!found_prim){
+ example = rb_ary_entry(ary, 0);
+ if (rb_obj_is_kind_of(example, cASN1Primitive)){
+ found_prim = 1;
+ }
+ else {
+ /* example is another ASN1Constructive */
+ if (!rb_obj_is_kind_of(example, cASN1Constructive)){
+ ossl_raise(eASN1Error, "invalid constructed encoding");
+ return Qnil; /* dummy */
+ }
+ ary = ossl_asn1_get_value(example);
+ }
+ }
+ tag = ossl_asn1_default_tag(example);
+ }
+ }
+ else {
+ if (CLASS_OF(self) == cASN1Constructive)
+ ossl_raise(eASN1Error, "Constructive shall only be used with infinite length");
+ tag = ossl_asn1_default_tag(self);
+ }
explicit = ossl_asn1_is_explicit(self);
value = join_der(ossl_asn1_get_value(self));
- seq_len = ASN1_object_size(1, RSTRING_LEN(value), tag);
- length = ASN1_object_size(1, seq_len, tn);
+ seq_len = ossl_asn1_object_size(constructed, RSTRING_LENINT(value), tag);
+ length = ossl_asn1_object_size(constructed, seq_len, tn);
str = rb_str_new(0, length);
p = (unsigned char *)RSTRING_PTR(str);
if(tc == V_ASN1_UNIVERSAL)
- ASN1_put_object(&p, 1, RSTRING_LEN(value), tn, tc);
+ ossl_asn1_put_object(&p, constructed, RSTRING_LENINT(value), tn, tc);
else{
if(explicit){
- ASN1_put_object(&p, 1, seq_len, tn, tc);
- ASN1_put_object(&p, 1, RSTRING_LEN(value), tag, V_ASN1_UNIVERSAL);
+ ossl_asn1_put_object(&p, constructed, seq_len, tn, tc);
+ ossl_asn1_put_object(&p, constructed, RSTRING_LENINT(value), tag, V_ASN1_UNIVERSAL);
+ }
+ else{
+ ossl_asn1_put_object(&p, constructed, RSTRING_LENINT(value), tn, tc);
}
- else ASN1_put_object(&p, 1, RSTRING_LEN(value), tn, tc);
}
memcpy(p, RSTRING_PTR(value), RSTRING_LEN(value));
p += RSTRING_LEN(value);
+
+ /* In this case we need an additional EOC (one for the explicit part and
+ * one for the Constructive itself. The EOC for the Constructive is
+ * supplied by the user, but that for the "explicit wrapper" must be
+ * added here.
+ */
+ if (explicit && inf_length == Qtrue) {
+ ASN1_put_eoc(&p);
+ }
ossl_str_adjust(str, p);
return str;
}
+/*
+ * call-seq:
+ * asn1_ary.each { |asn1| block } => asn1_ary
+ *
+ * Calls <i>block</i> once for each element in +self+, passing that element
+ * as parameter +asn1+. If no block is given, an enumerator is returned
+ * instead.
+ *
+ * == Example
+ * asn1_ary.each do |asn1|
+ * puts asn1
+ * end
+ */
static VALUE
ossl_asn1cons_each(VALUE self)
{
@@ -1076,6 +1423,7 @@ OSSL_ASN1_IMPL_FACTORY_METHOD(UTCTime)
OSSL_ASN1_IMPL_FACTORY_METHOD(GeneralizedTime)
OSSL_ASN1_IMPL_FACTORY_METHOD(Sequence)
OSSL_ASN1_IMPL_FACTORY_METHOD(Set)
+OSSL_ASN1_IMPL_FACTORY_METHOD(EndOfContent)
void
Init_ossl_asn1()
@@ -1083,8 +1431,8 @@ Init_ossl_asn1()
VALUE ary;
int i;
-#if 0 /* let rdoc know about mOSSL */
- mOSSL = rb_define_module("OpenSSL");
+#if 0
+ mOSSL = rb_define_module("OpenSSL"); /* let rdoc know about mOSSL */
#endif
sUNIVERSAL = rb_intern("UNIVERSAL");
@@ -1094,12 +1442,155 @@ Init_ossl_asn1()
sEXPLICIT = rb_intern("EXPLICIT");
sIMPLICIT = rb_intern("IMPLICIT");
+ sivVALUE = rb_intern("@value");
+ sivTAG = rb_intern("@tag");
+ sivTAGGING = rb_intern("@tagging");
+ sivTAG_CLASS = rb_intern("@tag_class");
+ sivINFINITE_LENGTH = rb_intern("@infinite_length");
+ sivUNUSED_BITS = rb_intern("@unused_bits");
+
+ /*
+ * Document-module: OpenSSL::ASN1
+ *
+ * Abstract Syntax Notation One (or ASN.1) is a notation syntax to
+ * describe data structures and is defined in ITU-T X.680. ASN.1 itself
+ * does not mandate any encoding or parsing rules, but usually ASN.1 data
+ * structures are encoded using the Distinguished Encoding Rules (DER) or
+ * less often the Basic Encoding Rules (BER) described in ITU-T X.690. DER
+ * and BER encodings are binary Tag-Length-Value (TLV) encodings that are
+ * quite concise compared to other popular data description formats such
+ * as XML, JSON etc.
+ * ASN.1 data structures are very common in cryptographic applications,
+ * e.g. X.509 public key certificates or certificate revocation lists
+ * (CRLs) are all defined in ASN.1 and DER-encoded. ASN.1, DER and BER are
+ * the building blocks of applied cryptography.
+ * The ASN1 module provides the necessary classes that allow generation
+ * of ASN.1 data structures and the methods to encode them using a DER
+ * encoding. The decode method allows parsing arbitrary BER-/DER-encoded
+ * data to a Ruby object that can then be modified and re-encoded at will.
+ *
+ * == ASN.1 class hierarchy
+ *
+ * The base class representing ASN.1 structures is ASN1Data. ASN1Data offers
+ * attributes to read and set the +tag+, the +tag_class+ and finally the
+ * +value+ of a particular ASN.1 item. Upon parsing, any tagged values
+ * (implicit or explicit) will be represented by ASN1Data instances because
+ * their "real type" can only be determined using out-of-band information
+ * from the ASN.1 type declaration. Since this information is normally
+ * known when encoding a type, all sub-classes of ASN1Data offer an
+ * additional attribute +tagging+ that allows to encode a value implicitly
+ * (+:IMPLICIT+) or explicitly (+:EXPLICIT+).
+ *
+ * === Constructive
+ *
+ * Constructive is, as its name implies, the base class for all
+ * constructed encodings, i.e. those that consist of several values,
+ * opposed to "primitive" encodings with just one single value.
+ * Primitive values that are encoded with "infinite length" are typically
+ * constructed (their values come in multiple chunks) and are therefore
+ * represented by instances of Constructive. The value of an Constructive
+ * is always an Array.
+ *
+ * ==== ASN1::Set and ASN1::Sequence
+ *
+ * The most common constructive encodings are SETs and SEQUENCEs, which is
+ * why there are two sub-classes of Constructive representing each of
+ * them.
+ *
+ * === Primitive
+ *
+ * This is the super class of all primitive values. Primitive
+ * itself is not used when parsing ASN.1 data, all values are either
+ * instances of a corresponding sub-class of Primitive or they are
+ * instances of ASN1Data if the value was tagged implicitly or explicitly.
+ * Please cf. Primitive documentation for details on sub-classes and
+ * their respective mappings of ASN.1 data types to Ruby objects.
+ *
+ * == Possible values for +tagging+
+ *
+ * When constructing an ASN1Data object the ASN.1 type definition may
+ * require certain elements to be either implicitly or explicitly tagged.
+ * This can be achieved by setting the +tagging+ attribute manually for
+ * sub-classes of ASN1Data. Use the symbol +:IMPLICIT+ for implicit
+ * tagging and +:EXPLICIT+ if the element requires explicit tagging.
+ *
+ * == Possible values for +tag_class+
+ *
+ * It is possible to create arbitrary ASN1Data objects that also support
+ * a PRIVATE or APPLICATION tag class. Possible values for the +tag_class+
+ * attribute are:
+ * * +:UNIVERSAL+ (the default for untagged values)
+ * * +:CONTEXT_SPECIFIC+ (the default for tagged values)
+ * * +:APPLICATION+
+ * * +:PRIVATE+
+ *
+ * == Tag constants
+ *
+ * There is a constant defined for each universal tag:
+ * * OpenSSL::ASN1::EOC (0)
+ * * OpenSSL::ASN1::BOOLEAN (1)
+ * * OpenSSL::ASN1::INTEGER (2)
+ * * OpenSSL::ASN1::BIT_STRING (3)
+ * * OpenSSL::ASN1::OCTET_STRING (4)
+ * * OpenSSL::ASN1::NULL (5)
+ * * OpenSSL::ASN1::OBJECT (6)
+ * * OpenSSL::ASN1::ENUMERATED (10)
+ * * OpenSSL::ASN1::UTF8STRING (12)
+ * * OpenSSL::ASN1::SEQUENCE (16)
+ * * OpenSSL::ASN1::SET (17)
+ * * OpenSSL::ASN1::NUMERICSTRING (18)
+ * * OpenSSL::ASN1::PRINTABLESTRING (19)
+ * * OpenSSL::ASN1::T61STRING (20)
+ * * OpenSSL::ASN1::VIDEOTEXSTRING (21)
+ * * OpenSSL::ASN1::IA5STRING (22)
+ * * OpenSSL::ASN1::UTCTIME (23)
+ * * OpenSSL::ASN1::GENERALIZEDTIME (24)
+ * * OpenSSL::ASN1::GRAPHICSTRING (25)
+ * * OpenSSL::ASN1::ISO64STRING (26)
+ * * OpenSSL::ASN1::GENERALSTRING (27)
+ * * OpenSSL::ASN1::UNIVERSALSTRING (28)
+ * * OpenSSL::ASN1::BMPSTRING (30)
+ *
+ * == UNIVERSAL_TAG_NAME constant
+ *
+ * An Array that stores the name of a given tag number. These names are
+ * the same as the name of the tag constant that is additionally defined,
+ * e.g. UNIVERSAL_TAG_NAME[2] = "INTEGER" and OpenSSL::ASN1::INTEGER = 2.
+ *
+ * == Example usage
+ *
+ * === Decoding and viewing a DER-encoded file
+ * require 'openssl'
+ * require 'pp'
+ * der = File.binread('data.der')
+ * asn1 = OpenSSL::ASN1.decode(der)
+ * pp der
+ *
+ * === Creating an ASN.1 structure and DER-encoding it
+ * require 'openssl'
+ * version = OpenSSL::ASN1::Integer.new(1)
+ * # Explicitly 0-tagged implies context-specific tag class
+ * serial = OpenSSL::ASN1::Integer.new(12345, 0, :EXPLICIT, :CONTEXT_SPECIFIC)
+ * name = OpenSSL::ASN1::PrintableString.new('Data 1')
+ * sequence = OpenSSL::ASN1::Sequence.new( [ version, serial, name ] )
+ * der = sequence.to_der
+ */
mASN1 = rb_define_module_under(mOSSL, "ASN1");
+
+ /* Document-class: OpenSSL::ASN1::ASN1Error
+ *
+ * Generic error class for all errors raised in ASN1 and any of the
+ * classes defined in it.
+ */
eASN1Error = rb_define_class_under(mASN1, "ASN1Error", eOSSLError);
rb_define_module_function(mASN1, "traverse", ossl_asn1_traverse, 1);
rb_define_module_function(mASN1, "decode", ossl_asn1_decode, 1);
rb_define_module_function(mASN1, "decode_all", ossl_asn1_decode_all, 1);
ary = rb_ary_new();
+
+ /*
+ * Array storing tag names at the tag's index.
+ */
rb_define_const(mASN1, "UNIVERSAL_TAG_NAME", ary);
for(i = 0; i < ossl_asn1_info_size; i++){
if(ossl_asn1_info[i].name[0] == '[') continue;
@@ -1107,20 +1598,272 @@ Init_ossl_asn1()
rb_ary_store(ary, i, rb_str_new2(ossl_asn1_info[i].name));
}
+ /* Document-class: OpenSSL::ASN1::ASN1Data
+ *
+ * The top-level class representing any ASN.1 object. When parsed by
+ * ASN1.decode, tagged values are always represented by an instance
+ * of ASN1Data.
+ *
+ * == The role of ASN1Data for parsing tagged values
+ *
+ * When encoding an ASN.1 type it is inherently clear what original
+ * type (e.g. INTEGER, OCTET STRING etc.) this value has, regardless
+ * of its tagging.
+ * But opposed to the time an ASN.1 type is to be encoded, when parsing
+ * them it is not possible to deduce the "real type" of tagged
+ * values. This is why tagged values are generally parsed into ASN1Data
+ * instances, but with a different outcome for implicit and explicit
+ * tagging.
+ *
+ * === Example of a parsed implicitly tagged value
+ *
+ * An implicitly 1-tagged INTEGER value will be parsed as an
+ * ASN1Data with
+ * * +tag+ equal to 1
+ * * +tag_class+ equal to +:CONTEXT_SPECIFIC+
+ * * +value+ equal to a +String+ that carries the raw encoding
+ * of the INTEGER.
+ * This implies that a subsequent decoding step is required to
+ * completely decode implicitly tagged values.
+ *
+ * === Example of a parsed explicitly tagged value
+ *
+ * An explicitly 1-tagged INTEGER value will be parsed as an
+ * ASN1Data with
+ * * +tag+ equal to 1
+ * * +tag_class+ equal to +:CONTEXT_SPECIFIC+
+ * * +value+ equal to an +Array+ with one single element, an
+ * instance of OpenSSL::ASN1::Integer, i.e. the inner element
+ * is the non-tagged primitive value, and the tagging is represented
+ * in the outer ASN1Data
+ *
+ * == Example - Decoding an implicitly tagged INTEGER
+ * int = OpenSSL::ASN1::Integer.new(1, 0, :IMPLICIT) # implicit 0-tagged
+ * seq = OpenSSL::ASN1::Sequence.new( [int] )
+ * der = seq.to_der
+ * asn1 = OpenSSL::ASN1.decode(der)
+ * # pp asn1 => #<OpenSSL::ASN1::Sequence:0x87326e0
+ * # @infinite_length=false,
+ * # @tag=16,
+ * # @tag_class=:UNIVERSAL,
+ * # @tagging=nil,
+ * # @value=
+ * # [#<OpenSSL::ASN1::ASN1Data:0x87326f4
+ * # @infinite_length=false,
+ * # @tag=0,
+ * # @tag_class=:CONTEXT_SPECIFIC,
+ * # @value="\x01">]>
+ * raw_int = asn1.value[0]
+ * # manually rewrite tag and tag class to make it an UNIVERSAL value
+ * raw_int.tag = OpenSSL::ASN1::INTEGER
+ * raw_int.tag_class = :UNIVERSAL
+ * int2 = OpenSSL::ASN1.decode(raw_int)
+ * puts int2.value # => 1
+ *
+ * == Example - Decoding an explicitly tagged INTEGER
+ * int = OpenSSL::ASN1::Integer.new(1, 0, :EXPLICIT) # explicit 0-tagged
+ * seq = OpenSSL::ASN1::Sequence.new( [int] )
+ * der = seq.to_der
+ * asn1 = OpenSSL::ASN1.decode(der)
+ * # pp asn1 => #<OpenSSL::ASN1::Sequence:0x87326e0
+ * # @infinite_length=false,
+ * # @tag=16,
+ * # @tag_class=:UNIVERSAL,
+ * # @tagging=nil,
+ * # @value=
+ * # [#<OpenSSL::ASN1::ASN1Data:0x87326f4
+ * # @infinite_length=false,
+ * # @tag=0,
+ * # @tag_class=:CONTEXT_SPECIFIC,
+ * # @value=
+ * # [#<OpenSSL::ASN1::Integer:0x85bf308
+ * # @infinite_length=false,
+ * # @tag=2,
+ * # @tag_class=:UNIVERSAL
+ * # @tagging=nil,
+ * # @value=1>]>]>
+ * int2 = asn1.value[0].value[0]
+ * puts int2.value # => 1
+ */
cASN1Data = rb_define_class_under(mASN1, "ASN1Data", rb_cObject);
+ /*
+ * Carries the value of a ASN.1 type.
+ * Please confer Constructive and Primitive for the mappings between
+ * ASN.1 data types and Ruby classes.
+ */
rb_attr(cASN1Data, rb_intern("value"), 1, 1, 0);
+ /*
+ * A +Number+ representing the tag number of this ASN1Data. Never +nil+.
+ */
rb_attr(cASN1Data, rb_intern("tag"), 1, 1, 0);
+ /*
+ * A +Symbol+ representing the tag class of this ASN1Data. Never +nil+.
+ * See ASN1Data for possible values.
+ */
rb_attr(cASN1Data, rb_intern("tag_class"), 1, 1, 0);
+ /*
+ * Never +nil+. A +Boolean+ indicating whether the encoding was infinite
+ * length (in the case of parsing) or whether an infinite length encoding
+ * shall be used (in the encoding case).
+ * In DER, every value has a finite length associated with it. But in
+ * scenarios where large amounts of data need to be transferred it
+ * might be desirable to have some kind of streaming support available.
+ * For example, huge OCTET STRINGs are preferably sent in smaller-sized
+ * chunks, each at a time.
+ * This is possible in BER by setting the length bytes of an encoding
+ * to zero and by this indicating that the following value will be
+ * sent in chunks. Infinite length encodings are always constructed.
+ * The end of such a stream of chunks is indicated by sending a EOC
+ * (End of Content) tag. SETs and SEQUENCEs may use an infinite length
+ * encoding, but also primitive types such as e.g. OCTET STRINGS or
+ * BIT STRINGS may leverage this functionality (cf. ITU-T X.690).
+ */
+ rb_attr(cASN1Data, rb_intern("infinite_length"), 1, 1, 0);
rb_define_method(cASN1Data, "initialize", ossl_asn1data_initialize, 3);
rb_define_method(cASN1Data, "to_der", ossl_asn1data_to_der, 0);
+ /* Document-class: OpenSSL::ASN1::Primitive
+ *
+ * The parent class for all primitive encodings. Attributes are the same as
+ * for ASN1Data, with the addition of +tagging+.
+ * Primitive values can never be infinite length encodings, thus it is not
+ * possible to set the +infinite_length+ attribute for Primitive and its
+ * sub-classes.
+ *
+ * == Primitive sub-classes and their mapping to Ruby classes
+ * * OpenSSL::ASN1::EndOfContent <=> +value+ is always +nil+
+ * * OpenSSL::ASN1::Boolean <=> +value+ is a +Boolean+
+ * * OpenSSL::ASN1::Integer <=> +value+ is a +Number+
+ * * OpenSSL::ASN1::BitString <=> +value+ is a +String+
+ * * OpenSSL::ASN1::OctetString <=> +value+ is a +String+
+ * * OpenSSL::ASN1::Null <=> +value+ is always +nil+
+ * * OpenSSL::ASN1::Object <=> +value+ is a +String+
+ * * OpenSSL::ASN1::Enumerated <=> +value+ is a +Number+
+ * * OpenSSL::ASN1::UTF8String <=> +value+ is a +String+
+ * * OpenSSL::ASN1::NumericString <=> +value+ is a +String+
+ * * OpenSSL::ASN1::PrintableString <=> +value+ is a +String+
+ * * OpenSSL::ASN1::T61String <=> +value+ is a +String+
+ * * OpenSSL::ASN1::VideotexString <=> +value+ is a +String+
+ * * OpenSSL::ASN1::IA5String <=> +value+ is a +String+
+ * * OpenSSL::ASN1::UTCTime <=> +value+ is a +Time+
+ * * OpenSSL::ASN1::GeneralizedTime <=> +value+ is a +Time+
+ * * OpenSSL::ASN1::GraphicString <=> +value+ is a +String+
+ * * OpenSSL::ASN1::ISO64String <=> +value+ is a +String+
+ * * OpenSSL::ASN1::GeneralString <=> +value+ is a +String+
+ * * OpenSSL::ASN1::UniversalString <=> +value+ is a +String+
+ * * OpenSSL::ASN1::BMPString <=> +value+ is a +String+
+ *
+ * == OpenSSL::ASN1::BitString
+ *
+ * === Additional attributes
+ * +unused_bits+: if the underlying BIT STRING's
+ * length is a multiple of 8 then +unused_bits+ is 0. Otherwise
+ * +unused_bits+ indicates the number of bits that are to be ignored in
+ * the final octet of the +BitString+'s +value+.
+ *
+ * == OpenSSL::ASN1::ObjectId
+ *
+ * === Additional attributes
+ * * +sn+: the short name as defined in <openssl/objects.h>.
+ * * +ln+: the long name as defined in <openssl/objects.h>.
+ * * +oid+: the object identifier as a +String+, e.g. "1.2.3.4.5"
+ * * +short_name+: alias for +sn+.
+ * * +long_name+: alias for +ln+.
+ *
+ * == Examples
+ * With the Exception of OpenSSL::ASN1::EndOfContent, each Primitive class
+ * constructor takes at least one parameter, the +value+.
+ *
+ * === Creating EndOfContent
+ * eoc = OpenSSL::ASN1::EndOfContent.new
+ *
+ * === Creating any other Primitive
+ * prim = <class>.new(value) # <class> being one of the sub-classes except EndOfContent
+ * prim_zero_tagged_implicit = <class>.new(value, 0, :IMPLICIT)
+ * prim_zero_tagged_explicit = <class>.new(value, 0, :EXPLICIT)
+ */
cASN1Primitive = rb_define_class_under(mASN1, "Primitive", cASN1Data);
+ /*
+ * May be used as a hint for encoding a value either implicitly or
+ * explicitly by setting it either to +:IMPLICIT+ or to +:EXPLICIT+.
+ * +tagging+ is not set when a ASN.1 structure is parsed using
+ * OpenSSL::ASN1.decode.
+ */
rb_attr(cASN1Primitive, rb_intern("tagging"), 1, 1, Qtrue);
+ rb_undef_method(cASN1Primitive, "infinite_length=");
rb_define_method(cASN1Primitive, "initialize", ossl_asn1_initialize, -1);
rb_define_method(cASN1Primitive, "to_der", ossl_asn1prim_to_der, 0);
+ /* Document-class: OpenSSL::ASN1::Constructive
+ *
+ * The parent class for all constructed encodings. The +value+ attribute
+ * of a Constructive is always an +Array+. Attributes are the same as
+ * for ASN1Data, with the addition of +tagging+.
+ *
+ * == SET and SEQUENCE
+ *
+ * Most constructed encodings come in the form of a SET or a SEQUENCE.
+ * These encodings are represented by one of the two sub-classes of
+ * Constructive:
+ * * OpenSSL::ASN1::Set
+ * * OpenSSL::ASN1::Sequence
+ * Please note that tagged sequences and sets are still parsed as
+ * instances of ASN1Data. Find further details on tagged values
+ * there.
+ *
+ * === Example - constructing a SEQUENCE
+ * int = OpenSSL::ASN1::Integer.new(1)
+ * str = OpenSSL::ASN1::PrintableString.new('abc')
+ * sequence = OpenSSL::ASN1::Sequence.new( [ int, str ] )
+ *
+ * === Example - constructing a SET
+ * int = OpenSSL::ASN1::Integer.new(1)
+ * str = OpenSSL::ASN1::PrintableString.new('abc')
+ * set = OpenSSL::ASN1::Set.new( [ int, str ] )
+ *
+ * == Infinite length primitive values
+ *
+ * The only case where Constructive is used directly is for infinite
+ * length encodings of primitive values. These encodings are always
+ * constructed, with the contents of the +value+ +Array+ being either
+ * UNIVERSAL non-infinite length partial encodings of the actual value
+ * or again constructive encodings with infinite length (i.e. infinite
+ * length primitive encodings may be constructed recursively with another
+ * infinite length value within an already infinite length value). Each
+ * partial encoding must be of the same UNIVERSAL type as the overall
+ * encoding. The value of the overall encoding consists of the
+ * concatenation of each partial encoding taken in sequence. The +value+
+ * array of the outer infinite length value must end with a
+ * OpenSSL::ASN1::EndOfContent instance.
+ *
+ * Please note that it is not possible to encode Constructive without
+ * the +infinite_length+ attribute being set to +true+, use
+ * OpenSSL::ASN1::Sequence or OpenSSL::ASN1::Set in these cases instead.
+ *
+ * === Example - Infinite length OCTET STRING
+ * partial1 = OpenSSL::ASN1::OctetString.new("\x01")
+ * partial2 = OpenSSL::ASN1::OctetString.new("\x02")
+ * inf_octets = OpenSSL::ASN1::Constructive.new( [ partial1,
+ * partial2,
+ * OpenSSL::ASN1::EndOfContent.new ],
+ * OpenSSL::ASN1::OCTET_STRING,
+ * nil,
+ * :UNIVERSAL )
+ * # The real value of inf_octets is "\x01\x02", i.e. the concatenation
+ * # of partial1 and partial2
+ * inf_octets.infinite_length = true
+ * der = inf_octets.to_der
+ * asn1 = OpenSSL::ASN1.decode(der)
+ * puts asn1.infinite_length # => true
+ */
cASN1Constructive = rb_define_class_under(mASN1,"Constructive", cASN1Data);
rb_include_module(cASN1Constructive, rb_mEnumerable);
+ /*
+ * May be used as a hint for encoding a value either implicitly or
+ * explicitly by setting it either to +:IMPLICIT+ or to +:EXPLICIT+.
+ * +tagging+ is not set when a ASN.1 structure is parsed using
+ * OpenSSL::ASN1.decode.
+ */
rb_attr(cASN1Constructive, rb_intern("tagging"), 1, 1, Qtrue);
rb_define_method(cASN1Constructive, "initialize", ossl_asn1_initialize, -1);
rb_define_method(cASN1Constructive, "to_der", ossl_asn1cons_to_der, 0);
@@ -1156,6 +1899,8 @@ do{\
OSSL_ASN1_DEFINE_CLASS(Sequence, Constructive);
OSSL_ASN1_DEFINE_CLASS(Set, Constructive);
+ OSSL_ASN1_DEFINE_CLASS(EndOfContent, Data);
+
rb_define_singleton_method(cASN1ObjectId, "register", ossl_asn1obj_s_register, 3);
rb_define_method(cASN1ObjectId, "sn", ossl_asn1obj_get_sn, 0);
rb_define_method(cASN1ObjectId, "ln", ossl_asn1obj_get_ln, 0);
@@ -1163,4 +1908,32 @@ do{\
rb_define_alias(cASN1ObjectId, "short_name", "sn");
rb_define_alias(cASN1ObjectId, "long_name", "ln");
rb_attr(cASN1BitString, rb_intern("unused_bits"), 1, 1, 0);
+
+ rb_define_method(cASN1EndOfContent, "initialize", ossl_asn1eoc_initialize, 0);
+
+ class_tag_map = rb_hash_new();
+ rb_hash_aset(class_tag_map, cASN1EndOfContent, INT2NUM(V_ASN1_EOC));
+ rb_hash_aset(class_tag_map, cASN1Boolean, INT2NUM(V_ASN1_BOOLEAN));
+ rb_hash_aset(class_tag_map, cASN1Integer, INT2NUM(V_ASN1_INTEGER));
+ rb_hash_aset(class_tag_map, cASN1BitString, INT2NUM(V_ASN1_BIT_STRING));
+ rb_hash_aset(class_tag_map, cASN1OctetString, INT2NUM(V_ASN1_OCTET_STRING));
+ rb_hash_aset(class_tag_map, cASN1Null, INT2NUM(V_ASN1_NULL));
+ rb_hash_aset(class_tag_map, cASN1ObjectId, INT2NUM(V_ASN1_OBJECT));
+ rb_hash_aset(class_tag_map, cASN1Enumerated, INT2NUM(V_ASN1_ENUMERATED));
+ rb_hash_aset(class_tag_map, cASN1UTF8String, INT2NUM(V_ASN1_UTF8STRING));
+ rb_hash_aset(class_tag_map, cASN1Sequence, INT2NUM(V_ASN1_SEQUENCE));
+ rb_hash_aset(class_tag_map, cASN1Set, INT2NUM(V_ASN1_SET));
+ rb_hash_aset(class_tag_map, cASN1NumericString, INT2NUM(V_ASN1_NUMERICSTRING));
+ rb_hash_aset(class_tag_map, cASN1PrintableString, INT2NUM(V_ASN1_PRINTABLESTRING));
+ rb_hash_aset(class_tag_map, cASN1T61String, INT2NUM(V_ASN1_T61STRING));
+ rb_hash_aset(class_tag_map, cASN1VideotexString, INT2NUM(V_ASN1_VIDEOTEXSTRING));
+ rb_hash_aset(class_tag_map, cASN1IA5String, INT2NUM(V_ASN1_IA5STRING));
+ rb_hash_aset(class_tag_map, cASN1UTCTime, INT2NUM(V_ASN1_UTCTIME));
+ rb_hash_aset(class_tag_map, cASN1GeneralizedTime, INT2NUM(V_ASN1_GENERALIZEDTIME));
+ rb_hash_aset(class_tag_map, cASN1GraphicString, INT2NUM(V_ASN1_GRAPHICSTRING));
+ rb_hash_aset(class_tag_map, cASN1ISO64String, INT2NUM(V_ASN1_ISO64STRING));
+ rb_hash_aset(class_tag_map, cASN1GeneralString, INT2NUM(V_ASN1_GENERALSTRING));
+ rb_hash_aset(class_tag_map, cASN1UniversalString, INT2NUM(V_ASN1_UNIVERSALSTRING));
+ rb_hash_aset(class_tag_map, cASN1BMPString, INT2NUM(V_ASN1_BMPSTRING));
+ rb_global_variable(&class_tag_map);
}
diff --git a/ext/openssl/ossl_asn1.h b/ext/openssl/ossl_asn1.h
index 8aad9f970d..718f43f068 100644
--- a/ext/openssl/ossl_asn1.h
+++ b/ext/openssl/ossl_asn1.h
@@ -32,12 +32,12 @@ ASN1_INTEGER *num_to_asn1integer(VALUE, ASN1_INTEGER *);
* ASN1 module
*/
extern VALUE mASN1;
-extern VALUE eASN1Error;
+extern VALUE eASN1Error;
extern VALUE cASN1Data;
extern VALUE cASN1Primitive;
extern VALUE cASN1Constructive;
-
+
extern VALUE cASN1Boolean; /* BOOLEAN */
extern VALUE cASN1Integer, cASN1Enumerated; /* INTEGER */
extern VALUE cASN1BitString; /* BIT STRING */
diff --git a/ext/openssl/ossl_bio.c b/ext/openssl/ossl_bio.c
index 6db1fb9a62..ed7c0a71a5 100644
--- a/ext/openssl/ossl_bio.c
+++ b/ext/openssl/ossl_bio.c
@@ -28,6 +28,7 @@ ossl_obj2bio(VALUE obj)
if ((fd = dup(FPTR_TO_FD(fptr))) < 0){
rb_sys_fail(0);
}
+ rb_update_max_fd(fd);
if (!(fp = fdopen(fd, "r"))){
close(fd);
rb_sys_fail(0);
@@ -39,7 +40,7 @@ ossl_obj2bio(VALUE obj)
}
else {
StringValue(obj);
- bio = BIO_new_mem_buf(RSTRING_PTR(obj), RSTRING_LEN(obj));
+ bio = BIO_new_mem_buf(RSTRING_PTR(obj), RSTRING_LENINT(obj));
if (!bio) ossl_raise(eOSSLError, NULL);
}
@@ -72,7 +73,7 @@ ossl_protect_membio2str(BIO *bio, int *status)
return rb_protect((VALUE(*)_((VALUE)))ossl_membio2str0, (VALUE)bio, status);
}
-VALUE
+VALUE
ossl_membio2str(BIO *bio)
{
VALUE ret;
diff --git a/ext/openssl/ossl_bn.c b/ext/openssl/ossl_bn.c
index 6db9670bb7..5d690af52d 100644
--- a/ext/openssl/ossl_bn.c
+++ b/ext/openssl/ossl_bn.c
@@ -12,22 +12,22 @@
#include "ossl.h"
#define WrapBN(klass, obj, bn) do { \
- if (!bn) { \
+ if (!(bn)) { \
ossl_raise(rb_eRuntimeError, "BN wasn't initialized!"); \
} \
- obj = Data_Wrap_Struct(klass, 0, BN_clear_free, bn); \
+ (obj) = Data_Wrap_Struct((klass), 0, BN_clear_free, (bn)); \
} while (0)
#define GetBN(obj, bn) do { \
- Data_Get_Struct(obj, BIGNUM, bn); \
- if (!bn) { \
+ Data_Get_Struct((obj), BIGNUM, (bn)); \
+ if (!(bn)) { \
ossl_raise(rb_eRuntimeError, "BN wasn't initialized!"); \
} \
} while (0)
#define SafeGetBN(obj, bn) do { \
- OSSL_Check_Kind(obj, cBN); \
- GetBN(obj, bn); \
+ OSSL_Check_Kind((obj), cBN); \
+ GetBN((obj), (bn)); \
} while (0)
/*
@@ -70,6 +70,8 @@ GetBNPtr(VALUE obj)
}
WrapBN(cBN, obj, bn); /* Handle potencial mem leaks */
break;
+ case T_NIL:
+ break;
default:
ossl_raise(rb_eTypeError, "Cannot convert into OpenSSL::BN");
}
@@ -91,7 +93,7 @@ ossl_bn_alloc(VALUE klass)
{
BIGNUM *bn;
VALUE obj;
-
+
if (!(bn = BN_new())) {
ossl_raise(eBNError, NULL);
}
@@ -131,12 +133,12 @@ ossl_bn_initialize(int argc, VALUE *argv, VALUE self)
switch (base) {
case 0:
- if (!BN_mpi2bn((unsigned char *)RSTRING_PTR(str), RSTRING_LEN(str), bn)) {
+ if (!BN_mpi2bn((unsigned char *)RSTRING_PTR(str), RSTRING_LENINT(str), bn)) {
ossl_raise(eBNError, NULL);
}
break;
case 2:
- if (!BN_bin2bn((unsigned char *)RSTRING_PTR(str), RSTRING_LEN(str), bn)) {
+ if (!BN_bin2bn((unsigned char *)RSTRING_PTR(str), RSTRING_LENINT(str), bn)) {
ossl_raise(eBNError, NULL);
}
break;
@@ -196,11 +198,11 @@ ossl_bn_to_s(int argc, VALUE *argv, VALUE self)
break;
case 10:
if (!(buf = BN_bn2dec(bn))) ossl_raise(eBNError, NULL);
- str = ossl_buf2str(buf, strlen(buf));
+ str = ossl_buf2str(buf, rb_long2int(strlen(buf)));
break;
case 16:
if (!(buf = BN_bn2hex(bn))) ossl_raise(eBNError, NULL);
- str = ossl_buf2str(buf, strlen(buf));
+ str = ossl_buf2str(buf, rb_long2int(strlen(buf)));
break;
default:
ossl_raise(rb_eArgError, "invalid radix %d", base);
@@ -380,7 +382,7 @@ ossl_bn_div(VALUE self, VALUE other)
}
WrapBN(CLASS_OF(self), obj1, r1);
WrapBN(CLASS_OF(self), obj2, r2);
-
+
return rb_ary_new3(2, obj1, obj2);
}
@@ -573,7 +575,7 @@ ossl_bn_s_generate_prime(int argc, VALUE *argv, VALUE klass)
VALUE vnum, vsafe, vadd, vrem, obj;
rb_scan_args(argc, argv, "13", &vnum, &vsafe, &vadd, &vrem);
-
+
num = NUM2INT(vnum);
if (vsafe == Qfalse) {
@@ -591,7 +593,7 @@ ossl_bn_s_generate_prime(int argc, VALUE *argv, VALUE klass)
ossl_raise(eBNError, NULL);
}
WrapBN(klass, obj, result);
-
+
return obj;
}
@@ -615,14 +617,14 @@ static VALUE
ossl_bn_copy(VALUE self, VALUE other)
{
BIGNUM *bn1, *bn2;
-
+
rb_check_frozen(self);
-
+
if (self == other) return self;
-
+
GetBN(self, bn1);
bn2 = GetBNPtr(other);
-
+
if (!BN_copy(bn1, bn2)) {
ossl_raise(eBNError, NULL);
}
@@ -669,7 +671,7 @@ ossl_bn_is_prime(int argc, VALUE *argv, VALUE self)
VALUE vchecks;
int checks = BN_prime_checks;
- if (rb_scan_args(argc, argv, "01", &vchecks) == 0) {
+ if (rb_scan_args(argc, argv, "01", &vchecks) == 1) {
checks = NUM2INT(vchecks);
}
GetBN(self, bn);
@@ -731,8 +733,8 @@ ossl_bn_is_prime_fasttest(int argc, VALUE *argv, VALUE self)
void
Init_ossl_bn()
{
-#if 0 /* let rdoc know about mOSSL */
- mOSSL = rb_define_module("OpenSSL");
+#if 0
+ mOSSL = rb_define_module("OpenSSL"); /* let rdoc know about mOSSL */
#endif
if (!(ossl_bn_ctx = BN_CTX_new())) {
@@ -745,7 +747,7 @@ Init_ossl_bn()
rb_define_alloc_func(cBN, ossl_bn_alloc);
rb_define_method(cBN, "initialize", ossl_bn_initialize, -1);
-
+
rb_define_copy_func(cBN, ossl_bn_copy);
rb_define_method(cBN, "copy", ossl_bn_copy, 1);
@@ -793,7 +795,7 @@ Init_ossl_bn()
* value_one - DON'T IMPL.
* set_word
* get_word */
-
+
rb_define_singleton_method(cBN, "rand", ossl_bn_s_rand, -1);
rb_define_singleton_method(cBN, "pseudo_rand", ossl_bn_s_pseudo_rand, -1);
rb_define_singleton_method(cBN, "rand_range", ossl_bn_s_rand_range, 1);
@@ -830,7 +832,7 @@ Init_ossl_bn()
rb_define_alias(cBN, "to_int", "to_i");
rb_define_method(cBN, "to_bn", ossl_bn_to_bn, 0);
rb_define_method(cBN, "coerce", ossl_bn_coerce, 1);
-
+
/*
* TODO:
* But how to: from_bin, from_mpi? PACK?
diff --git a/ext/openssl/ossl_cipher.c b/ext/openssl/ossl_cipher.c
index df7856b6f0..26851515cd 100644
--- a/ext/openssl/ossl_cipher.c
+++ b/ext/openssl/ossl_cipher.c
@@ -10,17 +10,24 @@
*/
#include "ossl.h"
+#define WrapCipher(obj, klass, ctx) \
+ (obj) = Data_Wrap_Struct((klass), 0, ossl_cipher_free, (ctx))
#define MakeCipher(obj, klass, ctx) \
- obj = Data_Make_Struct(klass, EVP_CIPHER_CTX, 0, ossl_cipher_free, ctx)
+ (obj) = Data_Make_Struct((klass), EVP_CIPHER_CTX, 0, ossl_cipher_free, (ctx))
+#define AllocCipher(obj, ctx) \
+ memset(DATA_PTR(obj) = (ctx) = ALLOC(EVP_CIPHER_CTX), 0, sizeof(EVP_CIPHER_CTX))
+#define GetCipherInit(obj, ctx) do { \
+ Data_Get_Struct((obj), EVP_CIPHER_CTX, (ctx)); \
+} while (0)
#define GetCipher(obj, ctx) do { \
- Data_Get_Struct(obj, EVP_CIPHER_CTX, ctx); \
- if (!ctx) { \
+ GetCipherInit((obj), (ctx)); \
+ if (!(ctx)) { \
ossl_raise(rb_eRuntimeError, "Cipher not inititalized!"); \
} \
} while (0)
#define SafeGetCipher(obj, ctx) do { \
- OSSL_Check_Kind(obj, cCipher); \
- GetCipher(obj, ctx); \
+ OSSL_Check_Kind((obj), cCipher); \
+ GetCipher((obj), (ctx)); \
} while (0)
/*
@@ -51,7 +58,7 @@ ossl_cipher_new(const EVP_CIPHER *cipher)
EVP_CIPHER_CTX *ctx;
ret = ossl_cipher_alloc(cCipher);
- GetCipher(ret, ctx);
+ AllocCipher(ret, ctx);
EVP_CIPHER_CTX_init(ctx);
if (EVP_CipherInit_ex(ctx, cipher, NULL, NULL, NULL, -1) != 1)
ossl_raise(eCipherError, NULL);
@@ -74,12 +81,10 @@ ossl_cipher_free(EVP_CIPHER_CTX *ctx)
static VALUE
ossl_cipher_alloc(VALUE klass)
{
- EVP_CIPHER_CTX *ctx;
VALUE obj;
- MakeCipher(obj, klass, ctx);
- EVP_CIPHER_CTX_init(ctx);
-
+ WrapCipher(obj, klass, 0);
+
return obj;
}
@@ -97,26 +102,43 @@ ossl_cipher_initialize(VALUE self, VALUE str)
EVP_CIPHER_CTX *ctx;
const EVP_CIPHER *cipher;
char *name;
+ unsigned char key[EVP_MAX_KEY_LENGTH];
name = StringValuePtr(str);
- GetCipher(self, ctx);
+ GetCipherInit(self, ctx);
+ if (ctx) {
+ ossl_raise(rb_eRuntimeError, "Cipher already inititalized!");
+ }
+ AllocCipher(self, ctx);
+ EVP_CIPHER_CTX_init(ctx);
if (!(cipher = EVP_get_cipherbyname(name))) {
ossl_raise(rb_eRuntimeError, "unsupported cipher algorithm (%s)", name);
}
- if (EVP_CipherInit_ex(ctx, cipher, NULL, NULL, NULL, -1) != 1)
+ /*
+ * The EVP which has EVP_CIPH_RAND_KEY flag (such as DES3) allows
+ * uninitialized key, but other EVPs (such as AES) does not allow it.
+ * Calling EVP_CipherUpdate() without initializing key causes SEGV so we
+ * set the data filled with "\0" as the key by default.
+ */
+ memset(key, 0, EVP_MAX_KEY_LENGTH);
+ if (EVP_CipherInit_ex(ctx, cipher, NULL, key, NULL, -1) != 1)
ossl_raise(eCipherError, NULL);
return self;
}
+
static VALUE
ossl_cipher_copy(VALUE self, VALUE other)
{
EVP_CIPHER_CTX *ctx1, *ctx2;
-
+
rb_check_frozen(self);
if (self == other) return self;
- GetCipher(self, ctx1);
+ GetCipherInit(self, ctx1);
+ if (!ctx1) {
+ AllocCipher(self, ctx1);
+ }
SafeGetCipher(other, ctx2);
if (EVP_CIPHER_CTX_copy(ctx1, ctx2) != 1)
ossl_raise(eCipherError, NULL);
@@ -160,6 +182,9 @@ ossl_s_ciphers(VALUE self)
* call-seq:
* cipher.reset -> self
*
+ * Fully resets the internal state of the Cipher. By using this, the same
+ * Cipher instance may be used several times for en- or decryption tasks.
+ *
* Internally calls EVP_CipherInit_ex(ctx, NULL, NULL, NULL, NULL, -1).
*/
static VALUE
@@ -170,7 +195,7 @@ ossl_cipher_reset(VALUE self)
GetCipher(self, ctx);
if (EVP_CipherInit_ex(ctx, NULL, NULL, NULL, NULL, -1) != 1)
ossl_raise(eCipherError, NULL);
-
+
return self;
}
@@ -189,7 +214,7 @@ ossl_cipher_init(int argc, VALUE *argv, VALUE self, int mode)
* keeping this behaviour for backward compatibility.
*/
const char *cname = rb_class2name(rb_obj_class(self));
- rb_warn("argumtents for %s#encrypt and %s#decrypt were deprecated; "
+ rb_warn("arguments for %s#encrypt and %s#decrypt were deprecated; "
"use %s#pkcs5_keyivgen to derive key and IV",
cname, cname, cname);
StringValue(pass);
@@ -204,7 +229,7 @@ ossl_cipher_init(int argc, VALUE *argv, VALUE self, int mode)
else memcpy(iv, RSTRING_PTR(init_v), sizeof(iv));
}
EVP_BytesToKey(EVP_CIPHER_CTX_cipher(ctx), EVP_md5(), iv,
- (unsigned char *)RSTRING_PTR(pass), RSTRING_LEN(pass), 1, key, NULL);
+ (unsigned char *)RSTRING_PTR(pass), RSTRING_LENINT(pass), 1, key, NULL);
p_key = key;
p_iv = iv;
}
@@ -222,7 +247,10 @@ ossl_cipher_init(int argc, VALUE *argv, VALUE self, int mode)
* call-seq:
* cipher.encrypt -> self
*
- * Make sure to call .encrypt or .decrypt before using any of the following methods:
+ * Initializes the Cipher for encryption.
+ *
+ * Make sure to call Cipher#encrypt or Cipher#decrypt before using any of the
+ * following methods:
* * [key=, iv=, random_key, random_iv, pkcs5_keyivgen]
*
* Internally calls EVP_CipherInit_ex(ctx, NULL, NULL, NULL, NULL, 1).
@@ -237,7 +265,10 @@ ossl_cipher_encrypt(int argc, VALUE *argv, VALUE self)
* call-seq:
* cipher.decrypt -> self
*
- * Make sure to call .encrypt or .decrypt before using any of the following methods:
+ * Initializes the Cipher for decryption.
+ *
+ * Make sure to call Cipher#encrypt or Cipher#decrypt before using any of the
+ * following methods:
* * [key=, iv=, random_key, random_iv, pkcs5_keyivgen]
*
* Internally calls EVP_CipherInit_ex(ctx, NULL, NULL, NULL, NULL, 0).
@@ -252,11 +283,13 @@ ossl_cipher_decrypt(int argc, VALUE *argv, VALUE self)
* call-seq:
* cipher.pkcs5_keyivgen(pass [, salt [, iterations [, digest]]] ) -> nil
*
- * Generates and sets the key/iv based on a password.
+ * Generates and sets the key/IV based on a password.
*
- * WARNING: This method is only PKCS5 v1.5 compliant when using RC2, RC4-40, or DES
- * with MD5 or SHA1. Using anything else (like AES) will generate the key/iv using an
- * OpenSSL specific method. Use a PKCS5 v2 key generation method instead.
+ * WARNING: This method is only PKCS5 v1.5 compliant when using RC2, RC4-40,
+ * or DES with MD5 or SHA1. Using anything else (like AES) will generate the
+ * key/iv using an OpenSSL specific method. This method is deprecated and
+ * should no longer be used. Use a PKCS5 v2 key generation method from
+ * OpenSSL::PKCS5 instead.
*
* === Parameters
* +salt+ must be an 8 byte string if provided.
@@ -280,14 +313,14 @@ ossl_cipher_pkcs5_keyivgen(int argc, VALUE *argv, VALUE self)
if(!NIL_P(vsalt)){
StringValue(vsalt);
if(RSTRING_LEN(vsalt) != PKCS5_SALT_LEN)
- rb_raise(eCipherError, "salt must be an 8-octet string");
+ ossl_raise(eCipherError, "salt must be an 8-octet string");
salt = (unsigned char *)RSTRING_PTR(vsalt);
}
iter = NIL_P(viter) ? 2048 : NUM2INT(viter);
digest = NIL_P(vdigest) ? EVP_md5() : GetDigestPtr(vdigest);
GetCipher(self, ctx);
EVP_BytesToKey(EVP_CIPHER_CTX_cipher(ctx), digest, salt,
- (unsigned char *)RSTRING_PTR(vpass), RSTRING_LEN(vpass), iter, key, iv);
+ (unsigned char *)RSTRING_PTR(vpass), RSTRING_LENINT(vpass), iter, key, iv);
if (EVP_CipherInit_ex(ctx, NULL, NULL, key, iv, -1) != 1)
ossl_raise(eCipherError, NULL);
OPENSSL_cleanse(key, sizeof key);
@@ -301,11 +334,16 @@ ossl_cipher_pkcs5_keyivgen(int argc, VALUE *argv, VALUE self)
* call-seq:
* cipher.update(data [, buffer]) -> string or buffer
*
+ * Encrypts data in a streaming fashion. Hand consecutive blocks of data
+ * to the +update+ method in order to encrypt it. Returns the encrypted
+ * data chunk. When done, the output of Cipher#final should be additionally
+ * added to the result.
+ *
* === Parameters
* +data+ is a nonempty string.
* +buffer+ is an optional string to store the result.
*/
-static VALUE
+static VALUE
ossl_cipher_update(int argc, VALUE *argv, VALUE self)
{
EVP_CIPHER_CTX *ctx;
@@ -317,8 +355,8 @@ ossl_cipher_update(int argc, VALUE *argv, VALUE self)
StringValue(data);
in = (unsigned char *)RSTRING_PTR(data);
- if ((in_len = RSTRING_LEN(data)) == 0)
- rb_raise(rb_eArgError, "data must not be empty");
+ if ((in_len = RSTRING_LENINT(data)) == 0)
+ ossl_raise(rb_eArgError, "data must not be empty");
GetCipher(self, ctx);
out_len = in_len+EVP_CIPHER_CTX_block_size(ctx);
@@ -339,13 +377,14 @@ ossl_cipher_update(int argc, VALUE *argv, VALUE self)
/*
* call-seq:
- * cipher.final -> aString
+ * cipher.final -> string
*
- * Returns the remaining data held in the cipher object. Further calls to update() or final() will return garbage.
+ * Returns the remaining data held in the cipher object. Further calls to
+ * Cipher#update or Cipher#final will return garbage.
*
* See EVP_CipherFinal_ex for further information.
*/
-static VALUE
+static VALUE
ossl_cipher_final(VALUE self)
{
EVP_CIPHER_CTX *ctx;
@@ -366,7 +405,8 @@ ossl_cipher_final(VALUE self)
* call-seq:
* cipher.name -> string
*
- * Returns the name of the cipher which may differ slightly from the original name provided.
+ * Returns the name of the cipher which may differ slightly from the original
+ * name provided.
*/
static VALUE
ossl_cipher_name(VALUE self)
@@ -382,9 +422,12 @@ ossl_cipher_name(VALUE self)
* call-seq:
* cipher.key = string -> string
*
- * Sets the cipher key.
+ * Sets the cipher key. To generate a key, you should either use a secure
+ * random byte string or, if the key is to be derived from a password, you
+ * should rely on PBKDF2 functionality provided by OpenSSL::PKCS5. To
+ * generate a secure random-based key, Cipher#random_key may be used.
*
- * Only call this method after calling cipher.encrypt or cipher.decrypt.
+ * Only call this method after calling Cipher#encrypt or Cipher#decrypt.
*/
static VALUE
ossl_cipher_set_key(VALUE self, VALUE key)
@@ -407,9 +450,16 @@ ossl_cipher_set_key(VALUE self, VALUE key)
* call-seq:
* cipher.iv = string -> string
*
- * Sets the cipher iv.
+ * Sets the cipher IV. Please note that since you should never be using ECB
+ * mode, an IV is always explicitly required and should be set prior to
+ * encryption. The IV itself can be safely transmitted in public, but it
+ * should be unpredictable to prevent certain kinds of attacks. You may use
+ * Cipher#random_iv to create a secure random IV.
+ *
+ * Only call this method after calling Cipher#encrypt or Cipher#decrypt.
*
- * Only call this method after calling cipher.encrypt or cipher.decrypt.
+ * If not explicitly set, the OpenSSL default of an all-zeroes ("\\0") IV is
+ * used.
*/
static VALUE
ossl_cipher_set_iv(VALUE self, VALUE iv)
@@ -431,10 +481,11 @@ ossl_cipher_set_iv(VALUE self, VALUE iv)
/*
* call-seq:
- * cipher.key_length = integer -> integer
+ * cipher.key_len = integer -> integer
*
- * Sets the key length of the cipher. If the cipher is a fixed length cipher then attempting to set the key
- * length to any value other than the fixed value is an error.
+ * Sets the key length of the cipher. If the cipher is a fixed length cipher
+ * then attempting to set the key length to any value other than the fixed
+ * value is an error.
*
* Under normal circumstances you do not need to call this method (and probably shouldn't).
*
@@ -445,7 +496,7 @@ ossl_cipher_set_key_length(VALUE self, VALUE key_length)
{
int len = NUM2INT(key_length);
EVP_CIPHER_CTX *ctx;
-
+
GetCipher(self, ctx);
if (EVP_CIPHER_CTX_set_key_length(ctx, len) != 1)
ossl_raise(eCipherError, NULL);
@@ -487,40 +538,197 @@ ossl_cipher_set_padding(VALUE self, VALUE padding)
GetCipher(self, ctx); \
return INT2NUM(EVP_CIPHER_##func(EVP_CIPHER_CTX_cipher(ctx))); \
}
-CIPHER_0ARG_INT(key_length)
-CIPHER_0ARG_INT(iv_length)
-CIPHER_0ARG_INT(block_size)
-#if 0
/*
* call-seq:
- * cipher.key_length -> integer
+ * cipher.key_len -> integer
*
+ * Returns the key length in bytes of the Cipher.
*/
-static VALUE ossl_cipher_key_length() { }
+CIPHER_0ARG_INT(key_length)
/*
* call-seq:
- * cipher.iv_length -> integer
+ * cipher.iv_len -> integer
*
+ * Returns the expected length in bytes for an IV for this Cipher.
*/
-static VALUE ossl_cipher_iv_length() { }
+CIPHER_0ARG_INT(iv_length)
/*
* call-seq:
* cipher.block_size -> integer
*
+ * Returns the size in bytes of the blocks on which this Cipher operates on.
*/
-static VALUE ossl_cipher_block_size() { }
-#endif
+CIPHER_0ARG_INT(block_size)
/*
* INIT
*/
-void
+void
Init_ossl_cipher(void)
{
-#if 0 /* let rdoc know about mOSSL */
- mOSSL = rb_define_module("OpenSSL");
+#if 0
+ mOSSL = rb_define_module("OpenSSL"); /* let rdoc know about mOSSL */
#endif
+
+ /* Document-class: OpenSSL::Cipher
+ *
+ * Provides symmetric algorithms for encryption and decryption. The
+ * algorithms that are available depend on the particular version
+ * of OpenSSL that is installed.
+ *
+ * === Listing all supported algorithms
+ *
+ * A list of supported algorithms can be obtained by
+ *
+ * puts OpenSSL::Cipher.ciphers
+ *
+ * === Instantiating a Cipher
+ *
+ * There are several ways to create a Cipher instance. Generally, a
+ * Cipher algorithm is categorized by its name, the key length in bits
+ * and the cipher mode to be used. The most generic way to create a
+ * Cipher is the following
+ *
+ * cipher = OpenSSL::Cipher.new('<name>-<key length>-<mode>')
+ *
+ * That is, a string consisting of the hyphenated concatenation of the
+ * individual components name, key length and mode. Either all uppercase
+ * or all lowercase strings may be used, for example:
+ *
+ * cipher = OpenSSL::Cipher.new('AES-128-CBC')
+ *
+ * For each algorithm supported, there is a class defined under the
+ * Cipher class that goes by the name of the cipher, e.g. to obtain an
+ * instance of AES, you could also use
+ *
+ * # these are equivalent
+ * cipher = OpenSSL::Cipher::AES.new(128, :CBC)
+ * cipher = OpenSSL::Cipher::AES.new(128, 'CBC')
+ * cipher = OpenSSL::Cipher::AES.new('128-CBC')
+ *
+ * Finally, due to its wide-spread use, there are also extra classes
+ * defined for the different key sizes of AES
+ *
+ * cipher = OpenSSL::Cipher::AES128.new(:CBC)
+ * cipher = OpenSSL::Cipher::AES192.new(:CBC)
+ * cipher = OpenSSL::Cipher::AES256.new(:CBC)
+ *
+ * === Choosing either encryption or decryption mode
+ *
+ * Encryption and decryption are often very similar operations for
+ * symmetric algorithms, this is reflected by not having to choose
+ * different classes for either operation, both can be done using the
+ * same class. Still, after obtaining a Cipher instance, we need to
+ * tell the instance what it is that we intend to do with it, so we
+ * need to call either
+ *
+ * cipher.encrypt
+ *
+ * or
+ *
+ * cipher.decrypt
+ *
+ * on the Cipher instance. This should be the first call after creating
+ * the instance, otherwise configuration that has already been set could
+ * get lost in the process.
+ *
+ * === Choosing a key
+ *
+ * Symmetric encryption requires a key that is the same for the encrypting
+ * and for the decrypting party and after initial key establishment should
+ * be kept as private information. There are a lot of ways to create
+ * insecure keys, the most notable is to simply take a password as the key
+ * without processing the password further. A simple and secure way to
+ * create a key for a particular Cipher is
+ *
+ * cipher = OpenSSL::AES256.new(:CFB)
+ * cipher.encrypt
+ * key = cipher.random_key # also sets the generated key on the Cipher
+ *
+ * If you absolutely need to use passwords as encryption keys, you
+ * should use Password-Based Key Derivation Function 2 (PBKDF2) by
+ * generating the key with the help of the functionality provided by
+ * OpenSSL::PKCS5.pbkdf2_hmac_sha1 or OpenSSL::PKCS5.pbkdf2_hmac.
+ *
+ * Although there is Cipher#pkcs5_keyivgen, its use is deprecated and
+ * it should only be used in legacy applications because it does not use
+ * the newer PKCS#5 v2 algorithms.
+ *
+ * === Choosing an IV
+ *
+ * The cipher modes CBC, CFB, OFB and CTR all need an "initialization
+ * vector", or short, IV. ECB mode is the only mode that does not require
+ * an IV, but there is almost no legitimate use case for this mode
+ * because of the fact that it does not sufficiently hide plaintext
+ * patterns. Therefore
+ *
+ * <b>You should never use ECB mode unless you are absolutely sure that
+ * you absolutely need it</b>
+ *
+ * Because of this, you will end up with a mode that explicitly requires
+ * an IV in any case. Note that for backwards compatibility reasons,
+ * setting an IV is not explicitly mandated by the Cipher API. If not
+ * set, OpenSSL itself defaults to an all-zeroes IV ("\\0", not the
+ * character). Although the IV can be seen as public information, i.e.
+ * it may be transmitted in public once generated, it should still stay
+ * unpredictable to prevent certain kinds of attacks. Therefore, ideally
+ *
+ * <b>Always create a secure random IV for every encryption of your
+ * Cipher</b>
+ *
+ * A new, random IV should be created for every encryption of data. Think
+ * of the IV as a nonce (number used once) - it's public but random and
+ * unpredictable. A secure random IV can be created as follows
+ *
+ * cipher = ...
+ * cipher.encrypt
+ * key = cipher.random_key
+ * iv = cipher.random_iv # also sets the generated IV on the Cipher
+ *
+ * Although the key is generally a random value, too, it is a bad choice
+ * as an IV. There are elaborate ways how an attacker can take advantage
+ * of such an IV. As a general rule of thumb, exposing the key directly
+ * or indirectly should be avoided at all cost and exceptions only be
+ * made with good reason.
+ *
+ * === Calling Cipher#final
+ *
+ * ECB (which should not be used) and CBC are both block-based modes.
+ * This means that unlike for the other streaming-based modes, they
+ * operate on fixed-size blocks of data, and therefore they require a
+ * "finalization" step to produce or correctly decrypt the last block of
+ * data by appropriately handling some form of padding. Therefore it is
+ * essential to add the output of OpenSSL::Cipher#final to your
+ * encryption/decryption buffer or you will end up with decryption errors
+ * or truncated data.
+ *
+ * Although this is not really necessary for streaming-mode ciphers, it is
+ * still recommended to apply the same pattern of adding the output of
+ * Cipher#final there as well - it also enables you to switch between
+ * modes more easily in the future.
+ *
+ * === Encrypting and decrypting some data
+ *
+ * data = "Very, very confidential data"
+ *
+ * cipher = OpenSSL::Cipher::AES.new(128, :CBC)
+ * cipher.encrypt
+ * key = cipher.random_key
+ * iv = cipher.random_iv
+ *
+ * encrypted = cipher.update(data) + cipher.final
+ * ...
+ * decipher = OpenSSL::Cipher::AES.new(128, :CBC)
+ * decipher.decrypt
+ * decipher.key = key
+ * decipher.iv = iv
+ *
+ * plain = decipher.update(encrypted) + decipher.final
+ *
+ * puts data == plain #=> true
+ *
+ */
cCipher = rb_define_class_under(mOSSL, "Cipher", rb_cObject);
eCipherError = rb_define_class_under(cCipher, "CipherError", eOSSLError);
diff --git a/ext/openssl/ossl_config.c b/ext/openssl/ossl_config.c
index bbd4975031..e700833076 100644
--- a/ext/openssl/ossl_config.c
+++ b/ext/openssl/ossl_config.c
@@ -10,22 +10,6 @@
*/
#include "ossl.h"
-#define WrapConfig(klass, obj, conf) do { \
- if (!conf) { \
- ossl_raise(rb_eRuntimeError, "Config wasn't intitialized!"); \
- } \
- obj = Data_Wrap_Struct(klass, 0, NCONF_free, conf); \
-} while (0)
-#define GetConfig(obj, conf) do { \
- Data_Get_Struct(obj, CONF, conf); \
- if (!conf) { \
- ossl_raise(rb_eRuntimeError, "Config wasn't intitialized!"); \
- } \
-} while (0)
-#define SafeGetConfig(obj, conf) do { \
- OSSL_Check_Kind(obj, cConfig); \
- GetConfig(obj, conf); \
-} while(0);
/*
* Classes
@@ -33,52 +17,35 @@
VALUE cConfig;
VALUE eConfigError;
-/*
- * Public
+/*
+ * Public
*/
-static CONF *parse_config(VALUE, CONF*);
-
+/*
+ * GetConfigPtr is a public C-level function for getting OpenSSL CONF struct
+ * from an OpenSSL::Config(eConfig) instance. We decided to implement
+ * OpenSSL::Config in Ruby level but we need to pass native CONF struct for
+ * some OpenSSL features such as X509V3_EXT_*.
+ */
CONF *
GetConfigPtr(VALUE obj)
{
CONF *conf;
-
- SafeGetConfig(obj, conf);
-
- return conf;
-}
-
-CONF *
-DupConfigPtr(VALUE obj)
-{
VALUE str;
-
- OSSL_Check_Kind(obj, cConfig);
- str = rb_funcall(obj, rb_intern("to_s"), 0);
-
- return parse_config(str, NULL);
-}
-
-/*
- * Private
- */
-static CONF *
-parse_config(VALUE str, CONF *dst)
-{
- CONF *conf;
BIO *bio;
long eline = -1;
+ OSSL_Check_Kind(obj, cConfig);
+ str = rb_funcall(obj, rb_intern("to_s"), 0);
bio = ossl_obj2bio(str);
- conf = dst ? dst : NCONF_new(NULL);
+ conf = NCONF_new(NULL);
if(!conf){
BIO_free(bio);
ossl_raise(eConfigError, NULL);
}
if(!NCONF_load_bio(conf, bio, &eline)){
BIO_free(bio);
- if(!dst) NCONF_free(conf);
+ NCONF_free(conf);
if (eline <= 0) ossl_raise(eConfigError, "wrong config format");
else ossl_raise(eConfigError, "error in line %d", eline);
ossl_raise(eConfigError, NULL);
@@ -88,361 +55,6 @@ parse_config(VALUE str, CONF *dst)
return conf;
}
-static VALUE
-ossl_config_s_parse(VALUE klass, VALUE str)
-{
- CONF *conf;
- VALUE obj;
-
- conf = parse_config(str, NULL);
- WrapConfig(klass, obj, conf);
-
- return obj;
-}
-
-static VALUE
-ossl_config_s_alloc(VALUE klass)
-{
- CONF *conf;
- VALUE obj;
-
- if(!(conf = NCONF_new(NULL)))
- ossl_raise(eConfigError, NULL);
- WrapConfig(klass, obj, conf);
-
- return obj;
-}
-
-static VALUE
-ossl_config_copy(VALUE self, VALUE other)
-{
- VALUE str;
- CONF *conf;
-
- str = rb_funcall(self, rb_intern("to_s"), 0);
- GetConfig(other, conf);
- parse_config(str, conf);
-
- return self;
-}
-
-static VALUE
-ossl_config_initialize(int argc, VALUE *argv, VALUE self)
-{
- CONF *conf;
- long eline = -1;
- char *filename;
- VALUE path;
-
- rb_scan_args(argc, argv, "01", &path);
- if(!NIL_P(path)){
- SafeStringValue(path);
- filename = StringValuePtr(path);
- GetConfig(self, conf);
- if (!NCONF_load(conf, filename, &eline)){
- if (eline <= 0)
- ossl_raise(eConfigError, "wrong config file %s", filename);
- else
- ossl_raise(eConfigError, "error in %s:%d", filename, eline);
- }
- }
-#ifdef OSSL_NO_CONF_API
- else rb_raise(rb_eArgError, "wrong number of arguments (0 for 1)");
-#else
- else {
- GetConfig(self, conf);
- _CONF_new_data(conf);
- }
-#endif
-
- return self;
-}
-
-static VALUE
-ossl_config_add_value(VALUE self, VALUE section, VALUE name, VALUE value)
-{
-#ifdef OSSL_NO_CONF_API
- rb_notimplement();
-#else
- CONF *conf;
- CONF_VALUE *sv, *cv;
-
- StringValue(section);
- StringValue(name);
- StringValue(value);
- GetConfig(self, conf);
- if(!(sv = _CONF_get_section(conf, RSTRING_PTR(section)))){
- if(!(sv = _CONF_new_section(conf, RSTRING_PTR(section)))){
- ossl_raise(eConfigError, NULL);
- }
- }
- if(!(cv = OPENSSL_malloc(sizeof(CONF_VALUE)))){
- ossl_raise(eConfigError, NULL);
- }
- cv->name = BUF_strdup(RSTRING_PTR(name));
- cv->value = BUF_strdup(RSTRING_PTR(value));
- if(!cv->name || !cv->value || !_CONF_add_string(conf, sv, cv)){
- OPENSSL_free(cv->name);
- OPENSSL_free(cv->value);
- OPENSSL_free(cv);
- ossl_raise(eConfigError, "_CONF_add_string failure");
- }
-
- return value;
-#endif
-}
-
-#if !defined(OSSL_NO_CONF_API)
-static VALUE
-ossl_config_add_value_m(VALUE self, VALUE section, VALUE name, VALUE value)
-{
- return ossl_config_add_value(self, section, name, value);
-}
-#else
-#define ossl_config_add_value_m rb_f_notimplement
-#endif
-
-static VALUE
-ossl_config_get_value(VALUE self, VALUE section, VALUE name)
-{
- CONF *conf;
- char *str;
-
- StringValue(section);
- StringValue(name);
- GetConfig(self, conf);
- str = NCONF_get_string(conf, RSTRING_PTR(section), RSTRING_PTR(name));
- if(!str){
- ERR_clear_error();
- return Qnil;
- }
-
- return rb_str_new2(str);
-}
-
-static VALUE
-ossl_config_get_value_old(int argc, VALUE *argv, VALUE self)
-{
- VALUE section, name;
-
- rb_scan_args(argc, argv, "11", &section, &name);
-
- /* support conf.value(nil, "HOME") -> conf.get_value("", "HOME") */
- if (NIL_P(section)) section = rb_str_new2("");
- /* support conf.value("HOME") -> conf.get_value("", "HOME") */
- if (NIL_P(name)) {
- name = section;
- section = rb_str_new2("");
- }
- /* NOTE: Don't care about conf.get_value(nil, nil) */
- rb_warn("Config#value is deprecated; use Config#get_value");
- return ossl_config_get_value(self, section, name);
-}
-
-static VALUE
-set_conf_section_i(VALUE i, VALUE *arg)
-{
- VALUE name, value;
-
- Check_Type(i, T_ARRAY);
- name = rb_ary_entry(i, 0);
- value = rb_ary_entry(i, 1);
- ossl_config_add_value(arg[0], arg[1], name, value);
-
- return Qnil;
-}
-
-static VALUE
-ossl_config_set_section(VALUE self, VALUE section, VALUE hash)
-{
- VALUE arg[2];
-
- arg[0] = self;
- arg[1] = section;
- rb_block_call(hash, rb_intern("each"), 0, 0, set_conf_section_i, (VALUE)arg);
- return hash;
-}
-
-/*
- * Get all numbers as strings - use str.to_i to convert
- * long number = CONF_get_number(confp->config, sect, StringValuePtr(item));
- */
-static VALUE
-ossl_config_get_section(VALUE self, VALUE section)
-{
- CONF *conf;
- STACK_OF(CONF_VALUE) *sk;
- CONF_VALUE *entry;
- int i, entries;
- VALUE hash;
-
- hash = rb_hash_new();
- StringValue(section);
- GetConfig(self, conf);
- if (!(sk = NCONF_get_section(conf, StringValuePtr(section)))) {
- ERR_clear_error();
- return hash;
- }
- if ((entries = sk_CONF_VALUE_num(sk)) < 0) {
- OSSL_Debug("# of items in section is < 0?!?");
- return hash;
- }
- for (i=0; i<entries; i++) {
- entry = sk_CONF_VALUE_value(sk, i);
- rb_hash_aset(hash, rb_str_new2(entry->name), rb_str_new2(entry->value));
- }
-
- return hash;
-}
-
-static VALUE
-ossl_config_get_section_old(VALUE self, VALUE section)
-{
- rb_warn("Config#section is deprecated; use Config#[]");
- return ossl_config_get_section(self, section);
-}
-
-#ifdef IMPLEMENT_LHASH_DOALL_ARG_FN
-static void
-get_conf_section(CONF_VALUE *cv, VALUE ary)
-{
- if(cv->name) return;
- rb_ary_push(ary, rb_str_new2(cv->section));
-}
-
-static IMPLEMENT_LHASH_DOALL_ARG_FN(get_conf_section, CONF_VALUE*, VALUE)
-
-static VALUE
-ossl_config_get_sections(VALUE self)
-{
- CONF *conf;
- VALUE ary;
-
- GetConfig(self, conf);
- ary = rb_ary_new();
- lh_doall_arg(conf->data, LHASH_DOALL_ARG_FN(get_conf_section), (void*)ary);
-
- return ary;
-}
-
-static void
-dump_conf_value(CONF_VALUE *cv, VALUE str)
-{
- STACK_OF(CONF_VALUE) *sk;
- CONF_VALUE *v;
- int i, num;
-
- if (cv->name) return;
- sk = (STACK_OF(CONF_VALUE)*)cv->value;
- num = sk_CONF_VALUE_num(sk);
- rb_str_cat2(str, "[ ");
- rb_str_cat2(str, cv->section);
- rb_str_cat2(str, " ]\n");
- for(i = 0; i < num; i++){
- v = sk_CONF_VALUE_value(sk, i);
- rb_str_cat2(str, v->name ? v->name : "None");
- rb_str_cat2(str, "=");
- rb_str_cat2(str, v->value ? v->value : "None");
- rb_str_cat2(str, "\n");
- }
- rb_str_cat2(str, "\n");
-}
-
-static IMPLEMENT_LHASH_DOALL_ARG_FN(dump_conf_value, CONF_VALUE*, VALUE)
-
-static VALUE
-dump_conf(CONF *conf)
-{
- VALUE str;
-
- str = rb_str_new(0, 0);
- lh_doall_arg(conf->data, LHASH_DOALL_ARG_FN(dump_conf_value), (void*)str);
-
- return str;
-}
-
-static VALUE
-ossl_config_to_s(VALUE self)
-{
- CONF *conf;
-
- GetConfig(self, conf);
-
- return dump_conf(conf);
-}
-
-static void
-each_conf_value(CONF_VALUE *cv, void* dummy)
-{
- STACK_OF(CONF_VALUE) *sk;
- CONF_VALUE *v;
- VALUE section, name, value, args;
- int i, num;
-
- if (cv->name) return;
- sk = (STACK_OF(CONF_VALUE)*)cv->value;
- num = sk_CONF_VALUE_num(sk);
- section = rb_str_new2(cv->section);
- for(i = 0; i < num; i++){
- v = sk_CONF_VALUE_value(sk, i);
- name = v->name ? rb_str_new2(v->name) : Qnil;
- value = v->value ? rb_str_new2(v->value) : Qnil;
- args = rb_ary_new3(3, section, name, value);
- rb_yield(args);
- }
-}
-
-static IMPLEMENT_LHASH_DOALL_ARG_FN(each_conf_value, CONF_VALUE*, void*)
-
-static VALUE
-ossl_config_each(VALUE self)
-{
- CONF *conf;
-
- RETURN_ENUMERATOR(self, 0, 0);
-
- GetConfig(self, conf);
- lh_doall_arg(conf->data, LHASH_DOALL_ARG_FN(each_conf_value), (void*)NULL);
-
- return self;
-}
-#else
-static VALUE
-ossl_config_get_sections(VALUE self)
-{
- rb_warn("#sections don't work with %s", OPENSSL_VERSION_TEXT);
- return rb_ary_new();
-}
-
-static VALUE
-ossl_config_to_s(VALUE self)
-{
- rb_warn("#to_s don't work with %s", OPENSSL_VERSION_TEXT);
- return rb_str_new(0, 0);
-}
-
-static VALUE
-ossl_config_each(VALUE self)
-{
- rb_warn("#each don't work with %s", OPENSSL_VERSION_TEXT);
- return self;
-}
-#endif
-
-static VALUE
-ossl_config_inspect(VALUE self)
-{
- VALUE str, ary = ossl_config_get_sections(self);
- const char *cname = rb_class2name(rb_obj_class(self));
-
- str = rb_str_new2("#<");
- rb_str_cat2(str, cname);
- rb_str_cat2(str, " sections=");
- rb_str_append(str, rb_inspect(ary));
- rb_str_cat2(str, ">");
-
- return str;
-}
/*
* INIT
@@ -458,20 +70,5 @@ Init_ossl_config()
rb_define_const(cConfig, "DEFAULT_CONFIG_FILE",
rb_str_new2(default_config_file));
OPENSSL_free(default_config_file);
- rb_include_module(cConfig, rb_mEnumerable);
- rb_define_singleton_method(cConfig, "parse", ossl_config_s_parse, 1);
- rb_define_alias(CLASS_OF(cConfig), "load", "new");
- rb_define_alloc_func(cConfig, ossl_config_s_alloc);
- rb_define_copy_func(cConfig, ossl_config_copy);
- rb_define_method(cConfig, "initialize", ossl_config_initialize, -1);
- rb_define_method(cConfig, "get_value", ossl_config_get_value, 2);
- rb_define_method(cConfig, "value", ossl_config_get_value_old, -1);
- rb_define_method(cConfig, "add_value", ossl_config_add_value_m, 3);
- rb_define_method(cConfig, "[]", ossl_config_get_section, 1);
- rb_define_method(cConfig, "section", ossl_config_get_section_old, 1);
- rb_define_method(cConfig, "[]=", ossl_config_set_section, 2);
- rb_define_method(cConfig, "sections", ossl_config_get_sections, 0);
- rb_define_method(cConfig, "to_s", ossl_config_to_s, 0);
- rb_define_method(cConfig, "each", ossl_config_each, 0);
- rb_define_method(cConfig, "inspect", ossl_config_inspect, 0);
+ /* methods are defined by openssl/config.rb */
}
diff --git a/ext/openssl/ossl_digest.c b/ext/openssl/ossl_digest.c
index 9b8ced5233..fdf13e98e5 100644
--- a/ext/openssl/ossl_digest.c
+++ b/ext/openssl/ossl_digest.c
@@ -11,14 +11,14 @@
#include "ossl.h"
#define GetDigest(obj, ctx) do { \
- Data_Get_Struct(obj, EVP_MD_CTX, ctx); \
- if (!ctx) { \
+ Data_Get_Struct((obj), EVP_MD_CTX, (ctx)); \
+ if (!(ctx)) { \
ossl_raise(rb_eRuntimeError, "Digest CTX wasn't initialized!"); \
} \
} while (0)
#define SafeGetDigest(obj, ctx) do { \
- OSSL_Check_Kind(obj, cDigest); \
- GetDigest(obj, ctx); \
+ OSSL_Check_Kind((obj), cDigest); \
+ GetDigest((obj), (ctx)); \
} while (0)
/*
@@ -36,12 +36,18 @@ const EVP_MD *
GetDigestPtr(VALUE obj)
{
const EVP_MD *md;
+ ASN1_OBJECT *oid = NULL;
if (TYPE(obj) == T_STRING) {
const char *name = StringValueCStr(obj);
- md = EVP_get_digestbyname(name);
- if (!md)
+ md = EVP_get_digestbyname(name);
+ if (!md) {
+ oid = OBJ_txt2obj(name, 0);
+ md = EVP_get_digestbyobj(oid);
+ ASN1_OBJECT_free(oid);
+ }
+ if(!md)
ossl_raise(rb_eRuntimeError, "Unsupported digest algorithm (%s).", name);
} else {
EVP_MD_CTX *ctx;
@@ -56,14 +62,16 @@ GetDigestPtr(VALUE obj)
VALUE
ossl_digest_new(const EVP_MD *md)
-{
+{
VALUE ret;
EVP_MD_CTX *ctx;
ret = ossl_digest_alloc(cDigest);
GetDigest(ret, ctx);
- EVP_DigestInit_ex(ctx, md, NULL);
-
+ if (EVP_DigestInit_ex(ctx, md, NULL) != 1) {
+ ossl_raise(eDigestError, "Digest initialization failed.");
+ }
+
return ret;
}
@@ -88,7 +96,20 @@ VALUE ossl_digest_update(VALUE, VALUE);
/*
* call-seq:
- * Digest.new(string) -> digest
+ * Digest.new(string [, data]) -> Digest
+ *
+ * Creates a Digest instance based on +string+, which is either the ln
+ * (long name) or sn (short name) of a supported digest algorithm.
+ * If +data+ (a +String+) is given, it is used as the initial input to the
+ * Digest instance, i.e.
+ * digest = OpenSSL::Digest.new('sha256', 'digestdata')
+ * is equal to
+ * digest = OpenSSL::Digest.new('sha256')
+ * digest.update('digestdata')
+ *
+ * === Example
+ * digest = OpenSSL::Digest.new('sha1')
+ *
*
*/
static VALUE
@@ -103,8 +124,10 @@ ossl_digest_initialize(int argc, VALUE *argv, VALUE self)
if (!NIL_P(data)) StringValue(data);
GetDigest(self, ctx);
- EVP_DigestInit_ex(ctx, md, NULL);
-
+ if (EVP_DigestInit_ex(ctx, md, NULL) != 1) {
+ ossl_raise(eDigestError, "Digest initialization failed.");
+ }
+
if (!NIL_P(data)) return ossl_digest_update(self, data);
return self;
}
@@ -113,7 +136,7 @@ static VALUE
ossl_digest_copy(VALUE self, VALUE other)
{
EVP_MD_CTX *ctx1, *ctx2;
-
+
rb_check_frozen(self);
if (self == other) return self;
@@ -130,6 +153,9 @@ ossl_digest_copy(VALUE self, VALUE other)
* call-seq:
* digest.reset -> self
*
+ * Resets the Digest in the sense that any Digest#update that has been
+ * performed is abandoned and the Digest is set to its initial state again.
+ *
*/
static VALUE
ossl_digest_reset(VALUE self)
@@ -137,7 +163,9 @@ ossl_digest_reset(VALUE self)
EVP_MD_CTX *ctx;
GetDigest(self, ctx);
- EVP_DigestInit_ex(ctx, EVP_MD_CTX_md(ctx), NULL);
+ if (EVP_DigestInit_ex(ctx, EVP_MD_CTX_md(ctx), NULL) != 1) {
+ ossl_raise(eDigestError, "Digest initialization failed.");
+ }
return self;
}
@@ -146,6 +174,16 @@ ossl_digest_reset(VALUE self)
* call-seq:
* digest.update(string) -> aString
*
+ * Not every message digest can be computed in one single pass. If a message
+ * digest is to be computed from several subsequent sources, then each may
+ * be passed individually to the Digest instance.
+ *
+ * === Example
+ * digest = OpenSSL::Digest::SHA256.new
+ * digest.update('First input')
+ * digest << 'Second input' # equivalent to digest.update('Second input')
+ * result = digest.digest
+ *
*/
VALUE
ossl_digest_update(VALUE self, VALUE data)
@@ -190,6 +228,12 @@ ossl_digest_finish(int argc, VALUE *argv, VALUE self)
* call-seq:
* digest.name -> string
*
+ * Returns the sn of this Digest instance.
+ *
+ * === Example
+ * digest = OpenSSL::Digest::SHA512.new
+ * puts digest.name # => SHA512
+ *
*/
static VALUE
ossl_digest_name(VALUE self)
@@ -203,9 +247,15 @@ ossl_digest_name(VALUE self)
/*
* call-seq:
- * digest.digest_size -> integer
+ * digest.digest_length -> integer
+ *
+ * Returns the output size of the digest, i.e. the length in bytes of the
+ * final message digest result.
+ *
+ * === Example
+ * digest = OpenSSL::Digest::SHA1.new
+ * puts digest.digest_length # => 20
*
- * Returns the output size of the digest.
*/
static VALUE
ossl_digest_size(VALUE self)
@@ -217,6 +267,19 @@ ossl_digest_size(VALUE self)
return INT2NUM(EVP_MD_CTX_size(ctx));
}
+/*
+ * call-seq:
+ * digest.block_length -> integer
+ *
+ * Returns the block length of the digest algorithm, i.e. the length in bytes
+ * of an individual block. Most modern algorithms partition a message to be
+ * digested into a sequence of fix-sized blocks that are processed
+ * consecutively.
+ *
+ * === Example
+ * digest = OpenSSL::Digest::SHA1.new
+ * puts digest.block_length # => 64
+ */
static VALUE
ossl_digest_block_length(VALUE self)
{
@@ -235,13 +298,131 @@ Init_ossl_digest()
{
rb_require("digest");
-#if 0 /* let rdoc know about mOSSL */
- mOSSL = rb_define_module("OpenSSL");
+#if 0
+ mOSSL = rb_define_module("OpenSSL"); /* let rdoc know about mOSSL */
#endif
+ /* Document-class: OpenSSL::Digest
+ *
+ * OpenSSL::Digest allows you to compute message digests (sometimes
+ * interchangeably called "hashes") of arbitrary data that are
+ * cryptographically secure, i.e. a Digest implements a secure one-way
+ * function.
+ *
+ * One-way functions offer some useful properties. E.g. given two
+ * distinct inputs the probability that both yield the same output
+ * is highly unlikely. Combined with the fact that every message digest
+ * algorithm has a fixed-length output of just a few bytes, digests are
+ * often used to create unique identifiers for arbitrary data. A common
+ * example is the creation of a unique id for binary documents that are
+ * stored in a database.
+ *
+ * Another useful characteristic of one-way functions (and thus the name)
+ * is that given a digest there is no indication about the original
+ * data that produced it, i.e. the only way to identify the original input
+ * is to "brute-force" through every possible combination of inputs.
+ *
+ * These characteristics make one-way functions also ideal companions
+ * for public key signature algorithms: instead of signing an entire
+ * document, first a hash of the document is produced with a considerably
+ * faster message digest algorithm and only the few bytes of its output
+ * need to be signed using the slower public key algorithm. To validate
+ * the integrity of a signed document, it suffices to re-compute the hash
+ * and verify that it is equal to that in the signature.
+ *
+ * Among the supported message digest algorithms are:
+ * * SHA, SHA1, SHA224, SHA256, SHA384 and SHA512
+ * * MD2, MD4, MDC2 and MD5
+ * * RIPEMD160
+ * * DSS, DSS1 (Pseudo algorithms to be used for DSA signatures. DSS is
+ * equal to SHA and DSS1 is equal to SHA1)
+ *
+ * For each of these algorithms, there is a sub-class of Digest that
+ * can be instantiated as simply as e.g.
+ *
+ * digest = OpenSSL::Digest::SHA1.new
+ *
+ * === Mapping between Digest class and sn/ln
+ *
+ * The sn (short names) and ln (long names) are defined in
+ * <openssl/object.h> and <openssl/obj_mac.h>. They are textual
+ * representations of ASN.1 OBJECT IDENTIFIERs. Each supported digest
+ * algorithm has an OBJECT IDENTIFIER associated to it and those again
+ * have short/long names assigned to them.
+ * E.g. the OBJECT IDENTIFIER for SHA-1 is 1.3.14.3.2.26 and its
+ * sn is "SHA1" and its ln is "sha1".
+ * ==== MD2
+ * * sn: MD2
+ * * ln: md2
+ * ==== MD4
+ * * sn: MD4
+ * * ln: md4
+ * ==== MD5
+ * * sn: MD5
+ * * ln: md5
+ * ==== SHA
+ * * sn: SHA
+ * * ln: SHA
+ * ==== SHA-1
+ * * sn: SHA1
+ * * ln: sha1
+ * ==== SHA-224
+ * * sn: SHA224
+ * * ln: sha224
+ * ==== SHA-256
+ * * sn: SHA256
+ * * ln: sha256
+ * ==== SHA-384
+ * * sn: SHA384
+ * * ln: sha384
+ * ==== SHA-512
+ * * sn: SHA512
+ * * ln: sha512
+ *
+ * "Breaking" a message digest algorithm means defying its one-way
+ * function characteristics, i.e. producing a collision or finding a way
+ * to get to the original data by means that are more efficient than
+ * brute-forcing etc. Most of the supported digest algorithms can be
+ * considered broken in this sense, even the very popular MD5 and SHA1
+ * algorithms. Should security be your highest concern, then you should
+ * probably rely on SHA224, SHA256, SHA384 or SHA512.
+ *
+ * === Hashing a file
+ *
+ * data = File.read('document')
+ * sha256 = OpenSSL::Digest::SHA256.new
+ * digest = sha256.digest(data)
+ *
+ * === Hashing several pieces of data at once
+ *
+ * data1 = File.read('file1')
+ * data2 = File.read('file2')
+ * data3 = File.read('file3')
+ * sha256 = OpenSSL::Digest::SHA256.new
+ * sha256 << data1
+ * sha256 << data2
+ * sha256 << data3
+ * digest = sha256.digest
+ *
+ * === Reuse a Digest instance
+ *
+ * data1 = File.read('file1')
+ * sha256 = OpenSSL::Digest::SHA256.new
+ * digest1 = sha256.digest(data1)
+ *
+ * data2 = File.read('file2')
+ * sha256.reset
+ * digest2 = sha256.digest(data2)
+ *
+ */
cDigest = rb_define_class_under(mOSSL, "Digest", rb_path2class("Digest::Class"));
+ /* Document-class: OpenSSL::Digest::DigestError
+ *
+ * Generic Exception class that is raised if an error occurs during a
+ * Digest operation.
+ */
eDigestError = rb_define_class_under(cDigest, "DigestError", eOSSLError);
-
+
rb_define_alloc_func(cDigest, ossl_digest_alloc);
rb_define_method(cDigest, "initialize", ossl_digest_initialize, -1);
diff --git a/ext/openssl/ossl_engine.c b/ext/openssl/ossl_engine.c
index ec6f7fdf96..a7d1e315fd 100644
--- a/ext/openssl/ossl_engine.c
+++ b/ext/openssl/ossl_engine.c
@@ -13,23 +13,23 @@
#if defined(OSSL_ENGINE_ENABLED)
#define WrapEngine(klass, obj, engine) do { \
- if (!engine) { \
+ if (!(engine)) { \
ossl_raise(rb_eRuntimeError, "ENGINE wasn't initialized."); \
} \
- obj = Data_Wrap_Struct(klass, 0, ENGINE_free, engine); \
+ (obj) = Data_Wrap_Struct((klass), 0, ENGINE_free, (engine)); \
} while(0)
#define GetEngine(obj, engine) do { \
- Data_Get_Struct(obj, ENGINE, engine); \
- if (!engine) { \
+ Data_Get_Struct((obj), ENGINE, (engine)); \
+ if (!(engine)) { \
ossl_raise(rb_eRuntimeError, "ENGINE wasn't initialized."); \
} \
} while (0)
#define SafeGetEngine(obj, engine) do { \
- OSSL_Check_Kind(obj, cEngine); \
- GetPKCS7(obj, engine); \
+ OSSL_Check_Kind((obj), cEngine); \
+ GetPKCS7((obj), (engine)); \
} while (0)
-/*
+/*
* Classes
*/
VALUE cEngine;
@@ -61,16 +61,34 @@ ossl_engine_s_load(int argc, VALUE *argv, VALUE klass)
}
StringValue(name);
#ifndef OPENSSL_NO_STATIC_ENGINE
+#if HAVE_ENGINE_LOAD_DYNAMIC
OSSL_ENGINE_LOAD_IF_MATCH(dynamic);
+#endif
+#if HAVE_ENGINE_LOAD_CSWIFT
OSSL_ENGINE_LOAD_IF_MATCH(cswift);
+#endif
+#if HAVE_ENGINE_LOAD_CHIL
OSSL_ENGINE_LOAD_IF_MATCH(chil);
+#endif
+#if HAVE_ENGINE_LOAD_ATALLA
OSSL_ENGINE_LOAD_IF_MATCH(atalla);
+#endif
+#if HAVE_ENGINE_LOAD_NURON
OSSL_ENGINE_LOAD_IF_MATCH(nuron);
+#endif
+#if HAVE_ENGINE_LOAD_UBSEC
OSSL_ENGINE_LOAD_IF_MATCH(ubsec);
+#endif
+#if HAVE_ENGINE_LOAD_AEP
OSSL_ENGINE_LOAD_IF_MATCH(aep);
+#endif
+#if HAVE_ENGINE_LOAD_SUREWARE
OSSL_ENGINE_LOAD_IF_MATCH(sureware);
+#endif
+#if HAVE_ENGINE_LOAD_4758CCA
OSSL_ENGINE_LOAD_IF_MATCH(4758cca);
#endif
+#endif
#ifdef HAVE_ENGINE_LOAD_OPENBSD_DEV_CRYPTO
OSSL_ENGINE_LOAD_IF_MATCH(openbsd_dev_crypto);
#endif
@@ -97,7 +115,11 @@ ossl_engine_s_engines(VALUE klass)
ary = rb_ary_new();
for(e = ENGINE_get_first(); e; e = ENGINE_get_next(e)){
- WrapEngine(klass, obj, e);
+ /* Need a ref count of two here because of ENGINE_free being
+ * called internally by OpenSSL when moving to the next ENGINE
+ * and by us when releasing the ENGINE reference */
+ ENGINE_up_ref(e);
+ WrapEngine(klass, obj, e);
rb_ary_push(ary, obj);
}
@@ -327,7 +349,7 @@ ossl_engine_inspect(VALUE self)
{
VALUE str;
const char *cname = rb_class2name(rb_obj_class(self));
-
+
str = rb_str_new2("#<");
rb_str_cat2(str, cname);
rb_str_cat2(str, " id=\"");
diff --git a/ext/openssl/ossl_hmac.c b/ext/openssl/ossl_hmac.c
index aa7644aa5c..5220c9e73d 100644
--- a/ext/openssl/ossl_hmac.c
+++ b/ext/openssl/ossl_hmac.c
@@ -13,16 +13,16 @@
#include "ossl.h"
#define MakeHMAC(obj, klass, ctx) \
- obj = Data_Make_Struct(klass, HMAC_CTX, 0, ossl_hmac_free, ctx)
+ (obj) = Data_Make_Struct((klass), HMAC_CTX, 0, ossl_hmac_free, (ctx))
#define GetHMAC(obj, ctx) do { \
- Data_Get_Struct(obj, HMAC_CTX, ctx); \
- if (!ctx) { \
+ Data_Get_Struct((obj), HMAC_CTX, (ctx)); \
+ if (!(ctx)) { \
ossl_raise(rb_eRuntimeError, "HMAC wasn't initialized"); \
} \
} while (0)
#define SafeGetHMAC(obj, ctx) do { \
- OSSL_Check_Kind(obj, cHMAC); \
- GetHMAC(obj, ctx); \
+ OSSL_Check_Kind((obj), cHMAC); \
+ GetHMAC((obj), (ctx)); \
} while (0)
/*
@@ -53,7 +53,7 @@ ossl_hmac_alloc(VALUE klass)
MakeHMAC(obj, klass, ctx);
HMAC_CTX_init(ctx);
-
+
return obj;
}
@@ -70,8 +70,8 @@ ossl_hmac_initialize(VALUE self, VALUE key, VALUE digest)
StringValue(key);
GetHMAC(self, ctx);
- HMAC_Init_ex(ctx, RSTRING_PTR(key), RSTRING_LEN(key),
- GetDigestPtr(digest), NULL);
+ HMAC_Init(ctx, RSTRING_PTR(key), RSTRING_LENINT(key),
+ GetDigestPtr(digest));
return self;
}
@@ -80,7 +80,7 @@ static VALUE
ossl_hmac_copy(VALUE self, VALUE other)
{
HMAC_CTX *ctx1, *ctx2;
-
+
rb_check_frozen(self);
if (self == other) return self;
@@ -135,11 +135,11 @@ ossl_hmac_digest(VALUE self)
unsigned char *buf;
unsigned int buf_len;
VALUE digest;
-
+
GetHMAC(self, ctx);
hmac_final(ctx, &buf, &buf_len);
digest = ossl_buf2str((char *)buf, buf_len);
-
+
return digest;
}
@@ -156,10 +156,10 @@ ossl_hmac_hexdigest(VALUE self)
char *hexbuf;
unsigned int buf_len;
VALUE hexdigest;
-
+
GetHMAC(self, ctx);
hmac_final(ctx, &buf, &buf_len);
- if (string2hex(buf, buf_len, &hexbuf, NULL) != 2 * buf_len) {
+ if (string2hex(buf, buf_len, &hexbuf, NULL) != 2 * (int)buf_len) {
OPENSSL_free(buf);
ossl_raise(eHMACError, "Memory alloc error");
}
@@ -180,7 +180,7 @@ ossl_hmac_reset(VALUE self)
HMAC_CTX *ctx;
GetHMAC(self, ctx);
- HMAC_Init_ex(ctx, NULL, 0, NULL, NULL);
+ HMAC_Init(ctx, NULL, 0, NULL);
return self;
}
@@ -195,10 +195,10 @@ ossl_hmac_s_digest(VALUE klass, VALUE digest, VALUE key, VALUE data)
{
unsigned char *buf;
unsigned int buf_len;
-
+
StringValue(key);
StringValue(data);
- buf = HMAC(GetDigestPtr(digest), RSTRING_PTR(key), RSTRING_LEN(key),
+ buf = HMAC(GetDigestPtr(digest), RSTRING_PTR(key), RSTRING_LENINT(key),
(unsigned char *)RSTRING_PTR(data), RSTRING_LEN(data), NULL, &buf_len);
return rb_str_new((const char *)buf, buf_len);
@@ -219,10 +219,10 @@ ossl_hmac_s_hexdigest(VALUE klass, VALUE digest, VALUE key, VALUE data)
StringValue(key);
StringValue(data);
-
- buf = HMAC(GetDigestPtr(digest), RSTRING_PTR(key), RSTRING_LEN(key),
+
+ buf = HMAC(GetDigestPtr(digest), RSTRING_PTR(key), RSTRING_LENINT(key),
(unsigned char *)RSTRING_PTR(data), RSTRING_LEN(data), NULL, &buf_len);
- if (string2hex(buf, buf_len, &hexbuf, NULL) != 2 * buf_len) {
+ if (string2hex(buf, buf_len, &hexbuf, NULL) != 2 * (int)buf_len) {
ossl_raise(eHMACError, "Cannot convert buf to hexbuf");
}
hexdigest = ossl_buf2str(hexbuf, 2 * buf_len);
@@ -236,18 +236,18 @@ ossl_hmac_s_hexdigest(VALUE klass, VALUE digest, VALUE key, VALUE data)
void
Init_ossl_hmac()
{
-#if 0 /* let rdoc know about mOSSL */
- mOSSL = rb_define_module("OpenSSL");
+#if 0
+ mOSSL = rb_define_module("OpenSSL"); /* let rdoc know about mOSSL */
#endif
eHMACError = rb_define_class_under(mOSSL, "HMACError", eOSSLError);
-
+
cHMAC = rb_define_class_under(mOSSL, "HMAC", rb_cObject);
rb_define_alloc_func(cHMAC, ossl_hmac_alloc);
rb_define_singleton_method(cHMAC, "digest", ossl_hmac_s_digest, 3);
rb_define_singleton_method(cHMAC, "hexdigest", ossl_hmac_s_hexdigest, 3);
-
+
rb_define_method(cHMAC, "initialize", ossl_hmac_initialize, 2);
rb_define_copy_func(cHMAC, ossl_hmac_copy);
diff --git a/ext/openssl/ossl_ns_spki.c b/ext/openssl/ossl_ns_spki.c
index 5ff58c3108..bf828cbb83 100644
--- a/ext/openssl/ossl_ns_spki.c
+++ b/ext/openssl/ossl_ns_spki.c
@@ -11,14 +11,14 @@
#include "ossl.h"
#define WrapSPKI(klass, obj, spki) do { \
- if (!spki) { \
+ if (!(spki)) { \
ossl_raise(rb_eRuntimeError, "SPKI wasn't initialized!"); \
} \
- obj = Data_Wrap_Struct(klass, 0, NETSCAPE_SPKI_free, spki); \
+ (obj) = Data_Wrap_Struct((klass), 0, NETSCAPE_SPKI_free, (spki)); \
} while (0)
#define GetSPKI(obj, spki) do { \
- Data_Get_Struct(obj, NETSCAPE_SPKI, spki); \
- if (!spki) { \
+ Data_Get_Struct((obj), NETSCAPE_SPKI, (spki)); \
+ if (!(spki)) { \
ossl_raise(rb_eRuntimeError, "SPKI wasn't initialized!"); \
} \
} while (0)
@@ -42,12 +42,12 @@ ossl_spki_alloc(VALUE klass)
{
NETSCAPE_SPKI *spki;
VALUE obj;
-
+
if (!(spki = NETSCAPE_SPKI_new())) {
ossl_raise(eSPKIError, NULL);
- }
+ }
WrapSPKI(klass, obj, spki);
-
+
return obj;
}
@@ -57,7 +57,7 @@ ossl_spki_initialize(int argc, VALUE *argv, VALUE self)
NETSCAPE_SPKI *spki;
VALUE buffer;
const unsigned char *p;
-
+
if (rb_scan_args(argc, argv, "01", &buffer) == 0) {
return self;
}
@@ -91,7 +91,7 @@ ossl_spki_to_der(VALUE self)
if (i2d_NETSCAPE_SPKI(spki, &p) <= 0)
ossl_raise(eX509CertError, NULL);
ossl_str_adjust(str, p);
-
+
return str;
}
@@ -101,12 +101,12 @@ ossl_spki_to_pem(VALUE self)
NETSCAPE_SPKI *spki;
char *data;
VALUE str;
-
+
GetSPKI(self, spki);
if (!(data = NETSCAPE_SPKI_b64_encode(spki))) {
ossl_raise(eSPKIError, NULL);
}
- str = ossl_buf2str(data, strlen(data));
+ str = ossl_buf2str(data, rb_long2int(strlen(data)));
return str;
}
@@ -118,7 +118,7 @@ ossl_spki_print(VALUE self)
BIO *out;
BUF_MEM *buf;
VALUE str;
-
+
GetSPKI(self, spki);
if (!(out = BIO_new(BIO_s_mem()))) {
ossl_raise(eSPKIError, NULL);
@@ -130,7 +130,7 @@ ossl_spki_print(VALUE self)
BIO_get_mem_ptr(out, &buf);
str = rb_str_new(buf->data, buf->length);
BIO_free(out);
-
+
return str;
}
@@ -184,10 +184,10 @@ ossl_spki_set_challenge(VALUE self, VALUE str)
StringValue(str);
GetSPKI(self, spki);
if (!ASN1_STRING_set(spki->spkac->challenge, RSTRING_PTR(str),
- RSTRING_LEN(str))) {
+ RSTRING_LENINT(str))) {
ossl_raise(eSPKIError, NULL);
}
-
+
return str;
}
@@ -235,14 +235,14 @@ void
Init_ossl_ns_spki()
{
mNetscape = rb_define_module_under(mOSSL, "Netscape");
-
+
eSPKIError = rb_define_class_under(mNetscape, "SPKIError", eOSSLError);
-
+
cSPKI = rb_define_class_under(mNetscape, "SPKI", rb_cObject);
-
+
rb_define_alloc_func(cSPKI, ossl_spki_alloc);
rb_define_method(cSPKI, "initialize", ossl_spki_initialize, -1);
-
+
rb_define_method(cSPKI, "to_der", ossl_spki_to_der, 0);
rb_define_method(cSPKI, "to_pem", ossl_spki_to_pem, 0);
rb_define_alias(cSPKI, "to_s", "to_pem");
diff --git a/ext/openssl/ossl_ocsp.c b/ext/openssl/ossl_ocsp.c
index a658c0180a..e82c2d859a 100644
--- a/ext/openssl/ossl_ocsp.c
+++ b/ext/openssl/ossl_ocsp.c
@@ -14,55 +14,55 @@
#if defined(OSSL_OCSP_ENABLED)
#define WrapOCSPReq(klass, obj, req) do { \
- if(!req) ossl_raise(rb_eRuntimeError, "Request wasn't initialized!"); \
- obj = Data_Wrap_Struct(klass, 0, OCSP_REQUEST_free, req); \
+ if(!(req)) ossl_raise(rb_eRuntimeError, "Request wasn't initialized!"); \
+ (obj) = Data_Wrap_Struct((klass), 0, OCSP_REQUEST_free, (req)); \
} while (0)
#define GetOCSPReq(obj, req) do { \
- Data_Get_Struct(obj, OCSP_REQUEST, req); \
- if(!req) ossl_raise(rb_eRuntimeError, "Request wasn't initialized!"); \
+ Data_Get_Struct((obj), OCSP_REQUEST, (req)); \
+ if(!(req)) ossl_raise(rb_eRuntimeError, "Request wasn't initialized!"); \
} while (0)
#define SafeGetOCSPReq(obj, req) do { \
- OSSL_Check_Kind(obj, cOCSPReq); \
- GetOCSPReq(obj, req); \
+ OSSL_Check_Kind((obj), cOCSPReq); \
+ GetOCSPReq((obj), (req)); \
} while (0)
#define WrapOCSPRes(klass, obj, res) do { \
- if(!res) ossl_raise(rb_eRuntimeError, "Response wasn't initialized!"); \
- obj = Data_Wrap_Struct(klass, 0, OCSP_RESPONSE_free, res); \
+ if(!(res)) ossl_raise(rb_eRuntimeError, "Response wasn't initialized!"); \
+ (obj) = Data_Wrap_Struct((klass), 0, OCSP_RESPONSE_free, (res)); \
} while (0)
#define GetOCSPRes(obj, res) do { \
- Data_Get_Struct(obj, OCSP_RESPONSE, res); \
- if(!res) ossl_raise(rb_eRuntimeError, "Response wasn't initialized!"); \
+ Data_Get_Struct((obj), OCSP_RESPONSE, (res)); \
+ if(!(res)) ossl_raise(rb_eRuntimeError, "Response wasn't initialized!"); \
} while (0)
#define SafeGetOCSPRes(obj, res) do { \
- OSSL_Check_Kind(obj, cOCSPRes); \
- GetOCSPRes(obj, res); \
+ OSSL_Check_Kind((obj), cOCSPRes); \
+ GetOCSPRes((obj), (res)); \
} while (0)
#define WrapOCSPBasicRes(klass, obj, res) do { \
- if(!res) ossl_raise(rb_eRuntimeError, "Response wasn't initialized!"); \
- obj = Data_Wrap_Struct(klass, 0, OCSP_BASICRESP_free, res); \
+ if(!(res)) ossl_raise(rb_eRuntimeError, "Response wasn't initialized!"); \
+ (obj) = Data_Wrap_Struct((klass), 0, OCSP_BASICRESP_free, (res)); \
} while (0)
#define GetOCSPBasicRes(obj, res) do { \
- Data_Get_Struct(obj, OCSP_BASICRESP, res); \
- if(!res) ossl_raise(rb_eRuntimeError, "Response wasn't initialized!"); \
+ Data_Get_Struct((obj), OCSP_BASICRESP, (res)); \
+ if(!(res)) ossl_raise(rb_eRuntimeError, "Response wasn't initialized!"); \
} while (0)
#define SafeGetOCSPBasicRes(obj, res) do { \
- OSSL_Check_Kind(obj, cOCSPBasicRes); \
- GetOCSPBasicRes(obj, res); \
+ OSSL_Check_Kind((obj), cOCSPBasicRes); \
+ GetOCSPBasicRes((obj), (res)); \
} while (0)
#define WrapOCSPCertId(klass, obj, cid) do { \
- if(!cid) ossl_raise(rb_eRuntimeError, "Cert ID wasn't initialized!"); \
- obj = Data_Wrap_Struct(klass, 0, OCSP_CERTID_free, cid); \
+ if(!(cid)) ossl_raise(rb_eRuntimeError, "Cert ID wasn't initialized!"); \
+ (obj) = Data_Wrap_Struct((klass), 0, OCSP_CERTID_free, (cid)); \
} while (0)
#define GetOCSPCertId(obj, cid) do { \
- Data_Get_Struct(obj, OCSP_CERTID, cid); \
- if(!cid) ossl_raise(rb_eRuntimeError, "Cert ID wasn't initialized!"); \
+ Data_Get_Struct((obj), OCSP_CERTID, (cid)); \
+ if(!(cid)) ossl_raise(rb_eRuntimeError, "Cert ID wasn't initialized!"); \
} while (0)
#define SafeGetOCSPCertId(obj, cid) do { \
- OSSL_Check_Kind(obj, cOCSPCertId); \
- GetOCSPCertId(obj, cid); \
+ OSSL_Check_Kind((obj), cOCSPCertId); \
+ GetOCSPCertId((obj), (cid)); \
} while (0)
VALUE mOCSP;
@@ -136,7 +136,7 @@ ossl_ocspreq_add_nonce(int argc, VALUE *argv, VALUE self)
else{
StringValue(val);
GetOCSPReq(self, req);
- ret = OCSP_request_add1_nonce(req, (unsigned char *)RSTRING_PTR(val), RSTRING_LEN(val));
+ ret = OCSP_request_add1_nonce(req, (unsigned char *)RSTRING_PTR(val), RSTRING_LENINT(val));
}
if(!ret) ossl_raise(eOCSPError, NULL);
@@ -245,7 +245,7 @@ ossl_ocspreq_verify(int argc, VALUE *argv, VALUE self)
rb_scan_args(argc, argv, "21", &certs, &store, &flags);
x509st = GetX509StorePtr(store);
- flg = NIL_P(flags) ? 0 : INT2NUM(flags);
+ flg = NIL_P(flags) ? 0 : NUM2INT(flags);
x509s = ossl_x509_ary2sk(certs);
GetOCSPReq(self, req);
result = OCSP_request_verify(req, x509s, x509st, flg);
@@ -382,7 +382,7 @@ ossl_ocspres_to_der(VALUE self)
ossl_raise(eOCSPError, NULL);
str = rb_str_new(0, len);
p = (unsigned char *)RSTRING_PTR(str);
- if(i2d_OCSP_RESPONSE(res, NULL) <= 0)
+ if(i2d_OCSP_RESPONSE(res, &p) <= 0)
ossl_raise(eOCSPError, NULL);
ossl_str_adjust(str, p);
@@ -440,7 +440,7 @@ ossl_ocspbres_add_nonce(int argc, VALUE *argv, VALUE self)
else{
StringValue(val);
GetOCSPBasicRes(self, bs);
- ret = OCSP_basic_add1_nonce(bs, (unsigned char *)RSTRING_PTR(val), RSTRING_LEN(val));
+ ret = OCSP_basic_add1_nonce(bs, (unsigned char *)RSTRING_PTR(val), RSTRING_LENINT(val));
}
if(!ret) ossl_raise(eOCSPError, NULL);
@@ -558,7 +558,7 @@ ossl_ocspbres_get_status(VALUE self)
}
return ret;
-}
+}
static VALUE
ossl_ocspbres_sign(int argc, VALUE *argv, VALUE self)
@@ -601,7 +601,7 @@ ossl_ocspbres_verify(int argc, VALUE *argv, VALUE self)
rb_scan_args(argc, argv, "21", &certs, &store, &flags);
x509st = GetX509StorePtr(store);
- flg = NIL_P(flags) ? 0 : INT2NUM(flags);
+ flg = NIL_P(flags) ? 0 : NUM2INT(flags);
x509s = ossl_x509_ary2sk(certs);
GetOCSPBasicRes(self, bs);
result = OCSP_basic_verify(bs, x509s, x509st, flg) > 0 ? Qtrue : Qfalse;
@@ -628,14 +628,27 @@ ossl_ocspcid_alloc(VALUE klass)
}
static VALUE
-ossl_ocspcid_initialize(VALUE self, VALUE subject, VALUE issuer)
+ossl_ocspcid_initialize(int argc, VALUE *argv, VALUE self)
{
OCSP_CERTID *id, *newid;
X509 *x509s, *x509i;
+ VALUE subject, issuer, digest;
+ const EVP_MD *md;
+
+ if (rb_scan_args(argc, argv, "21", &subject, &issuer, &digest) == 0) {
+ return self;
+ }
x509s = GetX509CertPtr(subject); /* NO NEED TO DUP */
x509i = GetX509CertPtr(issuer); /* NO NEED TO DUP */
- if(!(newid = OCSP_cert_to_id(NULL, x509s, x509i)))
+
+ if (!NIL_P(digest)) {
+ md = GetDigestPtr(digest);
+ newid = OCSP_cert_to_id(md, x509s, x509i);
+ } else {
+ newid = OCSP_cert_to_id(NULL, x509s, x509i);
+ }
+ if(!newid)
ossl_raise(eOCSPError, NULL);
GetOCSPCertId(self, id);
OCSP_CERTID_free(id);
@@ -719,7 +732,7 @@ Init_ossl_ocsp()
cOCSPCertId = rb_define_class_under(mOCSP, "CertificateId", rb_cObject);
rb_define_alloc_func(cOCSPCertId, ossl_ocspcid_alloc);
- rb_define_method(cOCSPCertId, "initialize", ossl_ocspcid_initialize, 2);
+ rb_define_method(cOCSPCertId, "initialize", ossl_ocspcid_initialize, -1);
rb_define_method(cOCSPCertId, "cmp", ossl_ocspcid_cmp, 1);
rb_define_method(cOCSPCertId, "cmp_issuer", ossl_ocspcid_cmp_issuer, 1);
rb_define_method(cOCSPCertId, "serial", ossl_ocspcid_get_serial, 0);
diff --git a/ext/openssl/ossl_pkcs12.c b/ext/openssl/ossl_pkcs12.c
index a58d5e05e8..8a5f816082 100644
--- a/ext/openssl/ossl_pkcs12.c
+++ b/ext/openssl/ossl_pkcs12.c
@@ -6,18 +6,18 @@
#include "ossl.h"
#define WrapPKCS12(klass, obj, p12) do { \
- if(!p12) ossl_raise(rb_eRuntimeError, "PKCS12 wasn't initialized."); \
- obj = Data_Wrap_Struct(klass, 0, PKCS12_free, p12); \
+ if(!(p12)) ossl_raise(rb_eRuntimeError, "PKCS12 wasn't initialized."); \
+ (obj) = Data_Wrap_Struct((klass), 0, PKCS12_free, (p12)); \
} while (0)
#define GetPKCS12(obj, p12) do { \
- Data_Get_Struct(obj, PKCS12, p12); \
- if(!p12) ossl_raise(rb_eRuntimeError, "PKCS12 wasn't initialized."); \
+ Data_Get_Struct((obj), PKCS12, (p12)); \
+ if(!(p12)) ossl_raise(rb_eRuntimeError, "PKCS12 wasn't initialized."); \
} while (0)
#define SafeGetPKCS12(obj, p12) do { \
- OSSL_Check_Kind(obj, cPKCS12); \
- GetPKCS12(obj, p12); \
+ OSSL_Check_Kind((obj), cPKCS12); \
+ GetPKCS12((obj), (p12)); \
} while (0)
#define ossl_pkcs12_set_key(o,v) rb_iv_set((o), "@key", (v))
@@ -81,7 +81,7 @@ ossl_pkcs12_s_create(int argc, VALUE *argv, VALUE self)
STACK_OF(X509) *x509s;
int nkey = 0, ncert = 0, kiter = 0, miter = 0, ktype = 0;
PKCS12 *p12;
-
+
rb_scan_args(argc, argv, "46", &pass, &name, &pkey, &cert, &ca, &key_nid, &cert_nid, &key_iter, &mac_iter, &keytype);
passphrase = NIL_P(pass) ? NULL : StringValuePtr(pass);
friendlyname = NIL_P(name) ? NULL : StringValuePtr(name);
@@ -91,11 +91,11 @@ ossl_pkcs12_s_create(int argc, VALUE *argv, VALUE self)
/* TODO: make a VALUE to nid function */
if (!NIL_P(key_nid)) {
if ((nkey = OBJ_txt2nid(StringValuePtr(key_nid))) == NID_undef)
- rb_raise(rb_eArgError, "Unknown PBE algorithm %s", StringValuePtr(key_nid));
+ ossl_raise(rb_eArgError, "Unknown PBE algorithm %s", StringValuePtr(key_nid));
}
if (!NIL_P(cert_nid)) {
if ((ncert = OBJ_txt2nid(StringValuePtr(cert_nid))) == NID_undef)
- rb_raise(rb_eArgError, "Unknown PBE algorithm %s", StringValuePtr(cert_nid));
+ ossl_raise(rb_eArgError, "Unknown PBE algorithm %s", StringValuePtr(cert_nid));
}
if (!NIL_P(key_iter))
kiter = NUM2INT(key_iter);
diff --git a/ext/openssl/ossl_pkcs5.c b/ext/openssl/ossl_pkcs5.c
index 18d166d1ca..d3eaf2d073 100644
--- a/ext/openssl/ossl_pkcs5.c
+++ b/ext/openssl/ossl_pkcs5.c
@@ -36,7 +36,10 @@ ossl_pkcs5_pbkdf2_hmac(VALUE self, VALUE pass, VALUE salt, VALUE iter, VALUE key
str = rb_str_new(0, len);
- if (PKCS5_PBKDF2_HMAC(RSTRING_PTR(pass), RSTRING_LEN(pass), RSTRING_PTR(salt), RSTRING_LEN(salt), NUM2INT(iter), md, len, RSTRING_PTR(str)) != 1)
+ if (PKCS5_PBKDF2_HMAC(RSTRING_PTR(pass), RSTRING_LEN(pass),
+ (unsigned char *)RSTRING_PTR(salt), RSTRING_LEN(salt),
+ NUM2INT(iter), md, len,
+ (unsigned char *)RSTRING_PTR(str)) != 1)
ossl_raise(ePKCS5, "PKCS5_PBKDF2_HMAC");
return str;
@@ -72,8 +75,8 @@ ossl_pkcs5_pbkdf2_hmac_sha1(VALUE self, VALUE pass, VALUE salt, VALUE iter, VALU
str = rb_str_new(0, len);
- if (PKCS5_PBKDF2_HMAC_SHA1(RSTRING_PTR(pass), RSTRING_LEN(pass),
- (const unsigned char *)RSTRING_PTR(salt), RSTRING_LEN(salt), NUM2INT(iter),
+ if (PKCS5_PBKDF2_HMAC_SHA1(RSTRING_PTR(pass), RSTRING_LENINT(pass),
+ (const unsigned char *)RSTRING_PTR(salt), RSTRING_LENINT(salt), NUM2INT(iter),
len, (unsigned char *)RSTRING_PTR(str)) != 1)
ossl_raise(ePKCS5, "PKCS5_PBKDF2_HMAC_SHA1");
diff --git a/ext/openssl/ossl_pkcs7.c b/ext/openssl/ossl_pkcs7.c
index fe1ef7c5de..b710280c9c 100644
--- a/ext/openssl/ossl_pkcs7.c
+++ b/ext/openssl/ossl_pkcs7.c
@@ -11,64 +11,64 @@
#include "ossl.h"
#define WrapPKCS7(klass, obj, pkcs7) do { \
- if (!pkcs7) { \
+ if (!(pkcs7)) { \
ossl_raise(rb_eRuntimeError, "PKCS7 wasn't initialized."); \
} \
- obj = Data_Wrap_Struct(klass, 0, PKCS7_free, pkcs7); \
+ (obj) = Data_Wrap_Struct((klass), 0, PKCS7_free, (pkcs7)); \
} while (0)
#define GetPKCS7(obj, pkcs7) do { \
- Data_Get_Struct(obj, PKCS7, pkcs7); \
- if (!pkcs7) { \
+ Data_Get_Struct((obj), PKCS7, (pkcs7)); \
+ if (!(pkcs7)) { \
ossl_raise(rb_eRuntimeError, "PKCS7 wasn't initialized."); \
} \
} while (0)
#define SafeGetPKCS7(obj, pkcs7) do { \
- OSSL_Check_Kind(obj, cPKCS7); \
- GetPKCS7(obj, pkcs7); \
+ OSSL_Check_Kind((obj), cPKCS7); \
+ GetPKCS7((obj), (pkcs7)); \
} while (0)
#define WrapPKCS7si(klass, obj, p7si) do { \
- if (!p7si) { \
+ if (!(p7si)) { \
ossl_raise(rb_eRuntimeError, "PKCS7si wasn't initialized."); \
} \
- obj = Data_Wrap_Struct(klass, 0, PKCS7_SIGNER_INFO_free, p7si); \
+ (obj) = Data_Wrap_Struct((klass), 0, PKCS7_SIGNER_INFO_free, (p7si)); \
} while (0)
#define GetPKCS7si(obj, p7si) do { \
- Data_Get_Struct(obj, PKCS7_SIGNER_INFO, p7si); \
- if (!p7si) { \
+ Data_Get_Struct((obj), PKCS7_SIGNER_INFO, (p7si)); \
+ if (!(p7si)) { \
ossl_raise(rb_eRuntimeError, "PKCS7si wasn't initialized."); \
} \
} while (0)
#define SafeGetPKCS7si(obj, p7si) do { \
- OSSL_Check_Kind(obj, cPKCS7Signer); \
- GetPKCS7si(obj, p7si); \
+ OSSL_Check_Kind((obj), cPKCS7Signer); \
+ GetPKCS7si((obj), (p7si)); \
} while (0)
#define WrapPKCS7ri(klass, obj, p7ri) do { \
- if (!p7ri) { \
+ if (!(p7ri)) { \
ossl_raise(rb_eRuntimeError, "PKCS7ri wasn't initialized."); \
} \
- obj = Data_Wrap_Struct(klass, 0, PKCS7_RECIP_INFO_free, p7ri); \
+ (obj) = Data_Wrap_Struct((klass), 0, PKCS7_RECIP_INFO_free, (p7ri)); \
} while (0)
#define GetPKCS7ri(obj, p7ri) do { \
- Data_Get_Struct(obj, PKCS7_RECIP_INFO, p7ri); \
- if (!p7ri) { \
+ Data_Get_Struct((obj), PKCS7_RECIP_INFO, (p7ri)); \
+ if (!(p7ri)) { \
ossl_raise(rb_eRuntimeError, "PKCS7ri wasn't initialized."); \
} \
} while (0)
#define SafeGetPKCS7ri(obj, p7ri) do { \
- OSSL_Check_Kind(obj, cPKCS7Recipient); \
- GetPKCS7ri(obj, p7ri); \
+ OSSL_Check_Kind((obj), cPKCS7Recipient); \
+ GetPKCS7ri((obj), (p7ri)); \
} while (0)
-#define numberof(ary) (sizeof(ary)/sizeof(ary[0]))
+#define numberof(ary) (int)(sizeof(ary)/sizeof((ary)[0]))
#define ossl_pkcs7_set_data(o,v) rb_iv_set((o), "@data", (v))
#define ossl_pkcs7_get_data(o) rb_iv_get((o), "@data")
#define ossl_pkcs7_set_err_string(o,v) rb_iv_set((o), "@error_string", (v))
#define ossl_pkcs7_get_err_string(o) rb_iv_get((o), "@error_string")
-/*
+/*
* Classes
*/
VALUE cPKCS7;
@@ -97,7 +97,7 @@ static PKCS7_SIGNER_INFO *
DupPKCS7SignerPtr(VALUE obj)
{
PKCS7_SIGNER_INFO *p7si, *pkcs7;
-
+
SafeGetPKCS7si(obj, p7si);
if (!(pkcs7 = PKCS7_SIGNER_INFO_dup(p7si))) {
ossl_raise(ePKCS7Error, NULL);
@@ -123,7 +123,7 @@ static PKCS7_RECIP_INFO *
DupPKCS7RecipientPtr(VALUE obj)
{
PKCS7_RECIP_INFO *p7ri, *pkcs7;
-
+
SafeGetPKCS7ri(obj, p7ri);
if (!(pkcs7 = PKCS7_RECIP_INFO_dup(p7ri))) {
ossl_raise(ePKCS7Error, NULL);
@@ -295,7 +295,7 @@ ossl_pkcs7_alloc(VALUE klass)
ossl_raise(ePKCS7Error, NULL);
}
WrapPKCS7(klass, obj, pkcs7);
-
+
return obj;
}
@@ -318,12 +318,17 @@ ossl_pkcs7_initialize(int argc, VALUE *argv, VALUE self)
arg = ossl_to_der_if_possible(arg);
in = ossl_obj2bio(arg);
p7 = PEM_read_bio_PKCS7(in, &pkcs, NULL, NULL);
- DATA_PTR(self) = pkcs;
if (!p7) {
- (void)BIO_reset(in);
+ OSSL_BIO_reset(in);
p7 = d2i_PKCS7_bio(in, &pkcs);
- DATA_PTR(self) = pkcs;
+ if (!p7) {
+ BIO_free(in);
+ PKCS7_free(pkcs);
+ DATA_PTR(self) = NULL;
+ ossl_raise(rb_eArgError, "Could not parse the PKCS7");
+ }
}
+ DATA_PTR(self) = pkcs;
BIO_free(in);
ossl_pkcs7_set_data(self, Qnil);
ossl_pkcs7_set_err_string(self, Qnil);
@@ -495,7 +500,7 @@ ossl_pkcs7_get_signer(VALUE self)
PKCS7_SIGNER_INFO *si;
int num, i;
VALUE ary;
-
+
GetPKCS7(self, pkcs7);
if (!(sk = PKCS7_get_signer_info(pkcs7))) {
OSSL_Debug("OpenSSL::PKCS7#get_signer_info == NULL!");
@@ -537,7 +542,7 @@ ossl_pkcs7_get_recipient(VALUE self)
PKCS7_RECIP_INFO *si;
int num, i;
VALUE ary;
-
+
GetPKCS7(self, pkcs7);
if (PKCS7_type_is_enveloped(pkcs7))
sk = pkcs7->d.enveloped->recipientinfo;
@@ -572,12 +577,11 @@ ossl_pkcs7_add_certificate(VALUE self, VALUE cert)
return self;
}
-static STACK *
-pkcs7_get_certs_or_crls(VALUE self, int want_certs)
+static STACK_OF(X509) *
+pkcs7_get_certs(VALUE self)
{
PKCS7 *pkcs7;
STACK_OF(X509) *certs;
- STACK_OF(X509_CRL) *crls;
int i;
GetPKCS7(self, pkcs7);
@@ -585,17 +589,38 @@ pkcs7_get_certs_or_crls(VALUE self, int want_certs)
switch(i){
case NID_pkcs7_signed:
certs = pkcs7->d.sign->cert;
- crls = pkcs7->d.sign->crl;
break;
case NID_pkcs7_signedAndEnveloped:
certs = pkcs7->d.signed_and_enveloped->cert;
+ break;
+ default:
+ certs = NULL;
+ }
+
+ return certs;
+}
+
+static STACK_OF(X509_CRL) *
+pkcs7_get_crls(VALUE self)
+{
+ PKCS7 *pkcs7;
+ STACK_OF(X509_CRL) *crls;
+ int i;
+
+ GetPKCS7(self, pkcs7);
+ i = OBJ_obj2nid(pkcs7->type);
+ switch(i){
+ case NID_pkcs7_signed:
+ crls = pkcs7->d.sign->crl;
+ break;
+ case NID_pkcs7_signedAndEnveloped:
crls = pkcs7->d.signed_and_enveloped->crl;
break;
default:
- certs = crls = NULL;
+ crls = NULL;
}
- return want_certs ? certs : crls;
+ return crls;
}
static VALUE
@@ -610,7 +635,7 @@ ossl_pkcs7_set_certificates(VALUE self, VALUE ary)
STACK_OF(X509) *certs;
X509 *cert;
- certs = pkcs7_get_certs_or_crls(self, 1);
+ certs = pkcs7_get_certs(self);
while((cert = sk_X509_pop(certs))) X509_free(cert);
rb_block_call(ary, rb_intern("each"), 0, 0, ossl_pkcs7_set_certs_i, self);
@@ -620,7 +645,7 @@ ossl_pkcs7_set_certificates(VALUE self, VALUE ary)
static VALUE
ossl_pkcs7_get_certificates(VALUE self)
{
- return ossl_x509_sk2ary(pkcs7_get_certs_or_crls(self, 1));
+ return ossl_x509_sk2ary(pkcs7_get_certs(self));
}
static VALUE
@@ -650,7 +675,7 @@ ossl_pkcs7_set_crls(VALUE self, VALUE ary)
STACK_OF(X509_CRL) *crls;
X509_CRL *crl;
- crls = pkcs7_get_certs_or_crls(self, 0);
+ crls = pkcs7_get_crls(self);
while((crl = sk_X509_CRL_pop(crls))) X509_CRL_free(crl);
rb_block_call(ary, rb_intern("each"), 0, 0, ossl_pkcs7_set_crls_i, self);
@@ -660,7 +685,7 @@ ossl_pkcs7_set_crls(VALUE self, VALUE ary)
static VALUE
ossl_pkcs7_get_crls(VALUE self)
{
- return ossl_x509crl_sk2ary(pkcs7_get_certs_or_crls(self, 0));
+ return ossl_x509crl_sk2ary(pkcs7_get_crls(self));
}
static VALUE
@@ -757,7 +782,7 @@ ossl_pkcs7_add_data(VALUE self, VALUE data)
}
if(!PKCS7_dataFinal(pkcs7, out)) goto err;
ossl_pkcs7_set_data(self, Qnil);
-
+
err:
BIO_free(out);
BIO_free(in);
@@ -794,7 +819,7 @@ ossl_pkcs7_to_pem(VALUE self)
PKCS7 *pkcs7;
BIO *out;
VALUE str;
-
+
GetPKCS7(self, pkcs7);
if (!(out = BIO_new(BIO_s_mem()))) {
ossl_raise(ePKCS7Error, NULL);
@@ -869,9 +894,9 @@ ossl_pkcs7si_get_signed_time(VALUE self)
{
PKCS7_SIGNER_INFO *p7si;
ASN1_TYPE *asn1obj;
-
+
GetPKCS7si(self, p7si);
-
+
if (!(asn1obj = PKCS7_get_signed_attribute(p7si, NID_pkcs9_signingTime))) {
ossl_raise(ePKCS7Error, NULL);
}
@@ -1001,10 +1026,10 @@ Init_ossl_pkcs7()
cPKCS7Recipient = rb_define_class_under(cPKCS7,"RecipientInfo",rb_cObject);
rb_define_alloc_func(cPKCS7Recipient, ossl_pkcs7ri_alloc);
- rb_define_method(cPKCS7Recipient, "initialize", ossl_pkcs7ri_initialize,1);
+ rb_define_method(cPKCS7Recipient, "initialize", ossl_pkcs7ri_initialize,1);
rb_define_method(cPKCS7Recipient, "issuer", ossl_pkcs7ri_get_issuer,0);
rb_define_method(cPKCS7Recipient, "serial", ossl_pkcs7ri_get_serial,0);
- rb_define_method(cPKCS7Recipient, "enc_key", ossl_pkcs7ri_get_enc_key,0);
+ rb_define_method(cPKCS7Recipient, "enc_key", ossl_pkcs7ri_get_enc_key,0);
#define DefPKCS7Const(x) rb_define_const(cPKCS7, #x, INT2NUM(PKCS7_##x))
diff --git a/ext/openssl/ossl_pkey.c b/ext/openssl/ossl_pkey.c
index 903a3bb1e5..f785e66c00 100644
--- a/ext/openssl/ossl_pkey.c
+++ b/ext/openssl/ossl_pkey.c
@@ -85,6 +85,53 @@ ossl_pkey_new_from_file(VALUE filename)
return ossl_pkey_new(pkey);
}
+/*
+ * call-seq:
+ * OpenSSL::PKey.read(string [, pwd ] ) -> PKey
+ * OpenSSL::PKey.read(file [, pwd ]) -> PKey
+ *
+ * === Parameters
+ * * +string+ is a DER- or PEM-encoded string containing an arbitrary private
+ * or public key.
+ * * +file+ is an instance of +File+ containing a DER- or PEM-encoded
+ * arbitrary private or public key.
+ * * +pwd+ is an optional password in case +string+ or +file+ is an encrypted
+ * PEM resource.
+ */
+static VALUE
+ossl_pkey_new_from_data(int argc, VALUE *argv, VALUE self)
+{
+ EVP_PKEY *pkey;
+ BIO *bio;
+ VALUE data, pass;
+ char *passwd = NULL;
+
+ rb_scan_args(argc, argv, "11", &data, &pass);
+
+ bio = ossl_obj2bio(data);
+ if (!(pkey = d2i_PrivateKey_bio(bio, NULL))) {
+ OSSL_BIO_reset(bio);
+ if (!NIL_P(pass)) {
+ passwd = StringValuePtr(pass);
+ }
+ if (!(pkey = PEM_read_bio_PrivateKey(bio, NULL, ossl_pem_passwd_cb, passwd))) {
+ OSSL_BIO_reset(bio);
+ if (!(pkey = d2i_PUBKEY_bio(bio, NULL))) {
+ OSSL_BIO_reset(bio);
+ if (!NIL_P(pass)) {
+ passwd = StringValuePtr(pass);
+ }
+ pkey = PEM_read_bio_PUBKEY(bio, NULL, ossl_pem_passwd_cb, passwd);
+ }
+ }
+ }
+
+ BIO_free(bio);
+ if (!pkey)
+ ossl_raise(rb_eArgError, "Could not parse PKey");
+ return ossl_pkey_new(pkey);
+}
+
EVP_PKEY *
GetPKeyPtr(VALUE obj)
{
@@ -99,7 +146,7 @@ EVP_PKEY *
GetPrivPKeyPtr(VALUE obj)
{
EVP_PKEY *pkey;
-
+
if (rb_funcall(obj, id_private_q, 0, NULL) != Qtrue) {
ossl_raise(rb_eArgError, "Private key is needed.");
}
@@ -112,7 +159,7 @@ EVP_PKEY *
DupPKeyPtr(VALUE obj)
{
EVP_PKEY *pkey;
-
+
SafeGetPKey(obj, pkey);
CRYPTO_add(&pkey->references, 1, CRYPTO_LOCK_EVP_PKEY);
@@ -123,7 +170,7 @@ EVP_PKEY *
DupPrivPKeyPtr(VALUE obj)
{
EVP_PKEY *pkey;
-
+
if (rb_funcall(obj, id_private_q, 0, NULL) != Qtrue) {
ossl_raise(rb_eArgError, "Private key is needed.");
}
@@ -150,6 +197,13 @@ ossl_pkey_alloc(VALUE klass)
return obj;
}
+/*
+ * call-seq:
+ * PKeyClass.new -> self
+ *
+ * Because PKey is an abstract class, actually calling this method explicitly
+ * will raise a +NotImplementedError+.
+ */
static VALUE
ossl_pkey_initialize(VALUE self)
{
@@ -159,6 +213,23 @@ ossl_pkey_initialize(VALUE self)
return self;
}
+/*
+ * call-seq:
+ * pkey.sign(digest, data) -> String
+ *
+ * To sign the +String+ +data+, +digest+, an instance of OpenSSL::Digest, must
+ * be provided. The return value is again a +String+ containing the signature.
+ * A PKeyError is raised should errors occur.
+ * Any previous state of the +Digest+ instance is irrelevant to the signature
+ * outcome, the digest instance is reset to its initial state during the
+ * operation.
+ *
+ * == Example
+ * data = 'Sign me!'
+ * digest = OpenSSL::Digest::SHA256.new
+ * pkey = OpenSSL::PKey::RSA.new(2048)
+ * signature = pkey.sign(digest, data)
+ */
static VALUE
ossl_pkey_sign(VALUE self, VALUE digest, VALUE data)
{
@@ -183,6 +254,27 @@ ossl_pkey_sign(VALUE self, VALUE digest, VALUE data)
return str;
}
+/*
+ * call-seq:
+ * pkey.verify(digest, signature, data) -> String
+ *
+ * To verify the +String+ +signature+, +digest+, an instance of
+ * OpenSSL::Digest, must be provided to re-compute the message digest of the
+ * original +data+, also a +String+. The return value is +true+ if the
+ * signature is valid, +false+ otherwise. A PKeyError is raised should errors
+ * occur.
+ * Any previous state of the +Digest+ instance is irrelevant to the validation
+ * outcome, the digest instance is reset to its initial state during the
+ * operation.
+ *
+ * == Example
+ * data = 'Sign me!'
+ * digest = OpenSSL::Digest::SHA256.new
+ * pkey = OpenSSL::PKey::RSA.new(2048)
+ * signature = pkey.sign(digest, data)
+ * pub_key = pkey.public_key
+ * puts pub_key.verify(digest, signature, data) # => true
+ */
static VALUE
ossl_pkey_verify(VALUE self, VALUE digest, VALUE sig, VALUE data)
{
@@ -194,7 +286,7 @@ ossl_pkey_verify(VALUE self, VALUE digest, VALUE sig, VALUE data)
StringValue(sig);
StringValue(data);
EVP_VerifyUpdate(&ctx, RSTRING_PTR(data), RSTRING_LEN(data));
- switch (EVP_VerifyFinal(&ctx, (unsigned char *)RSTRING_PTR(sig), RSTRING_LEN(sig), pkey)) {
+ switch (EVP_VerifyFinal(&ctx, (unsigned char *)RSTRING_PTR(sig), RSTRING_LENINT(sig), pkey)) {
case 0:
return Qfalse;
case 1:
@@ -211,24 +303,90 @@ ossl_pkey_verify(VALUE self, VALUE digest, VALUE sig, VALUE data)
void
Init_ossl_pkey()
{
-#if 0 /* let rdoc know about mOSSL */
- mOSSL = rb_define_module("OpenSSL");
+#if 0
+ mOSSL = rb_define_module("OpenSSL"); /* let rdoc know about mOSSL */
#endif
-
+
+ /* Document-module: OpenSSL::PKey
+ *
+ * == Asymmetric Public Key Algorithms
+ *
+ * Asymmetric public key algorithms solve the problem of establishing and
+ * sharing secret keys to en-/decrypt messages. The key in such an
+ * algorithm consists of two parts: a public key that may be distributed
+ * to others and a private key that needs to remain secret.
+ *
+ * Messages encrypted with a public key can only be encrypted by
+ * recipients that are in possession of the associated private key.
+ * Since public key algorithms are considerably slower than symmetric
+ * key algorithms (cf. OpenSSL::Cipher) they are often used to establish
+ * a symmetric key shared between two parties that are in possession of
+ * each other's public key.
+ *
+ * Asymmetric algorithms offer a lot of nice features that are used in a
+ * lot of different areas. A very common application is the creation and
+ * validation of digital signatures. To sign a document, the signatory
+ * generally uses a message digest algorithm (cf. OpenSSL::Digest) to
+ * compute a digest of the document that is then encrypted (i.e. signed)
+ * using the private key. Anyone in possession of the public key may then
+ * verify the signature by computing the message digest of the original
+ * document on their own, decrypting the signature using the signatory's
+ * public key and comparing the result to the message digest they
+ * previously computed. The signature is valid if and only if the
+ * decrypted signature is equal to this message digest.
+ *
+ * The PKey module offers support for three popular public/private key
+ * algorithms:
+ * * RSA (OpenSSL::PKey::RSA)
+ * * DSA (OpenSSL::PKey::DSA)
+ * * Elliptic Curve Cryptography (OpenSSL::PKey::EC)
+ * Each of these implementations is in fact a sub-class of the abstract
+ * PKey class which offers the interface for supporting digital signatures
+ * in the form of PKey#sign and PKey#verify.
+ *
+ * == Diffie-Hellman Key Exchange
+ *
+ * Finally PKey also features OpenSSL::PKey::DH, an implementation of
+ * the Diffie-Hellman key exchange protocol based on discrete logarithms
+ * in finite fields, the same basis that DSA is built on.
+ * The Diffie-Hellman protocol can be used to exchange (symmetric) keys
+ * over insecure channels without needing any prior joint knowledge
+ * between the participating parties. As the security of DH demands
+ * relatively long "public keys" (i.e. the part that is overtly
+ * transmitted between participants) DH tends to be quite slow. If
+ * security or speed is your primary concern, OpenSSL::PKey::EC offers
+ * another implementation of the Diffie-Hellman protocol.
+ *
+ */
mPKey = rb_define_module_under(mOSSL, "PKey");
-
+
+ /* Document-class: OpenSSL::PKey::PKeyError
+ *
+ *Raised when errors occur during PKey#sign or PKey#verify.
+ */
ePKeyError = rb_define_class_under(mPKey, "PKeyError", eOSSLError);
+ /* Document-class: OpenSSL::PKey::PKey
+ *
+ * An abstract class that bundles signature creation (PKey#sign) and
+ * validation (PKey#verify) that is common to all implementations except
+ * OpenSSL::PKey::DH
+ * * OpenSSL::PKey::RSA
+ * * OpenSSL::PKey::DSA
+ * * OpenSSL::PKey::EC
+ */
cPKey = rb_define_class_under(mPKey, "PKey", rb_cObject);
-
+
+ rb_define_module_function(mPKey, "read", ossl_pkey_new_from_data, -1);
+
rb_define_alloc_func(cPKey, ossl_pkey_alloc);
rb_define_method(cPKey, "initialize", ossl_pkey_initialize, 0);
rb_define_method(cPKey, "sign", ossl_pkey_sign, 2);
rb_define_method(cPKey, "verify", ossl_pkey_verify, 3);
-
+
id_private_q = rb_intern("private?");
-
+
/*
* INIT rsa, dsa, dh, ec
*/
diff --git a/ext/openssl/ossl_pkey.h b/ext/openssl/ossl_pkey.h
index 67ff1fddd0..5e3329d326 100644
--- a/ext/openssl/ossl_pkey.h
+++ b/ext/openssl/ossl_pkey.h
@@ -21,21 +21,21 @@ extern ID id_private_q;
#define OSSL_PKEY_IS_PRIVATE(obj) (rb_iv_get((obj), "private") == Qtrue)
#define WrapPKey(klass, obj, pkey) do { \
- if (!pkey) { \
+ if (!(pkey)) { \
rb_raise(rb_eRuntimeError, "PKEY wasn't initialized!"); \
} \
- obj = Data_Wrap_Struct(klass, 0, EVP_PKEY_free, pkey); \
+ (obj) = Data_Wrap_Struct((klass), 0, EVP_PKEY_free, (pkey)); \
OSSL_PKEY_SET_PUBLIC(obj); \
} while (0)
#define GetPKey(obj, pkey) do {\
- Data_Get_Struct(obj, EVP_PKEY, pkey);\
- if (!pkey) { \
+ Data_Get_Struct((obj), EVP_PKEY, (pkey));\
+ if (!(pkey)) { \
rb_raise(rb_eRuntimeError, "PKEY wasn't initialized!");\
} \
} while (0)
#define SafeGetPKey(obj, pkey) do { \
- OSSL_Check_Kind(obj, cPKey); \
- GetPKey(obj, pkey); \
+ OSSL_Check_Kind((obj), cPKey); \
+ GetPKey((obj), (pkey)); \
} while (0)
void ossl_generate_cb(int, int, void *);
@@ -134,8 +134,8 @@ static VALUE ossl_##keytype##_set_##name(VALUE self, VALUE bignum) \
#define DEF_OSSL_PKEY_BN(class, keytype, name) \
do { \
- rb_define_method(class, #name, ossl_##keytype##_get_##name, 0); \
- rb_define_method(class, #name "=", ossl_##keytype##_set_##name, 1);\
+ rb_define_method((class), #name, ossl_##keytype##_get_##name, 0); \
+ rb_define_method((class), #name "=", ossl_##keytype##_set_##name, 1);\
} while (0)
#endif /* _OSSL_PKEY_H_ */
diff --git a/ext/openssl/ossl_pkey_dh.c b/ext/openssl/ossl_pkey_dh.c
index 768cda86b7..748d9c82fd 100644
--- a/ext/openssl/ossl_pkey_dh.c
+++ b/ext/openssl/ossl_pkey_dh.c
@@ -13,8 +13,8 @@
#include "ossl.h"
#define GetPKeyDH(obj, pkey) do { \
- GetPKey(obj, pkey); \
- if (EVP_PKEY_type(pkey->type) != EVP_PKEY_DH) { /* PARANOIA? */ \
+ GetPKey((obj), (pkey)); \
+ if (EVP_PKEY_type((pkey)->type) != EVP_PKEY_DH) { /* PARANOIA? */ \
ossl_raise(rb_eRuntimeError, "THIS IS NOT A DH!") ; \
} \
} while (0)
@@ -42,7 +42,7 @@ dh_instance(VALUE klass, DH *dh)
{
EVP_PKEY *pkey;
VALUE obj;
-
+
if (!dh) {
return Qfalse;
}
@@ -85,7 +85,7 @@ static DH *
dh_generate(int size, int gen)
{
DH *dh;
-
+
dh = DH_generate_parameters(size, gen,
rb_block_given_p() ? ossl_generate_cb : NULL,
NULL);
@@ -103,9 +103,12 @@ dh_generate(int size, int gen)
* call-seq:
* DH.generate(size [, generator]) -> dh
*
- * === Parameters
- * * +size+ is an integer representing the desired key size. Keys smaller than 1024 should be considered insecure.
- * * +generator+ is a small number > 1, typically 2 or 5.
+ * Creates a new DH instance from scratch by generating the private and public
+ * components alike.
+ *
+ * === Parameters
+ * * +size+ is an integer representing the desired key size. Keys smaller than 1024 bits should be considered insecure.
+ * * +generator+ is a small number > 1, typically 2 or 5.
*
*/
static VALUE
@@ -114,7 +117,7 @@ ossl_dh_s_generate(int argc, VALUE *argv, VALUE klass)
DH *dh ;
int g = 2;
VALUE size, gen, obj;
-
+
if (rb_scan_args(argc, argv, "11", &size, &gen) == 2) {
g = NUM2INT(gen);
}
@@ -132,16 +135,24 @@ ossl_dh_s_generate(int argc, VALUE *argv, VALUE klass)
* call-seq:
* DH.new([size [, generator] | string]) -> dh
*
- * === Parameters
- * * +size+ is an integer representing the desired key size. Keys smaller than 1024 should be considered insecure.
- * * +generator+ is a small number > 1, typically 2 or 5.
- * * +string+ contains the DER or PEM encoded key.
+ * Either generates a DH instance from scratch or by reading already existing
+ * DH parameters from +string+. Note that when reading a DH instance from
+ * data that was encoded from a DH instance by using DH#to_pem or DH#to_der
+ * the result will *not* contain a public/private key pair yet. This needs to
+ * be generated using DH#generate_key! first.
+ *
+ * === Parameters
+ * * +size+ is an integer representing the desired key size. Keys smaller than 1024 bits should be considered insecure.
+ * * +generator+ is a small number > 1, typically 2 or 5.
+ * * +string+ contains the DER or PEM encoded key.
*
- * === Examples
- * * DH.new -> dh
- * * DH.new(1024) -> dh
- * * DH.new(1024, 5) -> dh
- * * DH.new(File.read('key.pem')) -> dh
+ * === Examples
+ * DH.new # -> dh
+ * DH.new(1024) # -> dh
+ * DH.new(1024, 5) # -> dh
+ * #Reading DH parameters
+ * dh = DH.new(File.read('parameters.pem')) # -> dh, but no public/private key yet
+ * dh.generate_key! # -> dh with public and private key
*/
static VALUE
ossl_dh_initialize(int argc, VALUE *argv, VALUE self)
@@ -169,11 +180,13 @@ ossl_dh_initialize(int argc, VALUE *argv, VALUE self)
in = ossl_obj2bio(arg);
dh = PEM_read_bio_DHparams(in, NULL, NULL, NULL);
if (!dh){
- (void)BIO_reset(in);
+ OSSL_BIO_reset(in);
dh = d2i_DHparams_bio(in, NULL);
}
BIO_free(in);
- if (!dh) ossl_raise(eDHError, NULL);
+ if (!dh) {
+ ossl_raise(eDHError, NULL);
+ }
}
if (!EVP_PKEY_assign_DH(pkey, dh)) {
DH_free(dh);
@@ -186,6 +199,8 @@ ossl_dh_initialize(int argc, VALUE *argv, VALUE self)
* call-seq:
* dh.public? -> true | false
*
+ * Indicates whether this DH instance has a public key associated with it or
+ * not. The public key may be retrieved with DH#pub_key.
*/
static VALUE
ossl_dh_is_public(VALUE self)
@@ -201,6 +216,8 @@ ossl_dh_is_public(VALUE self)
* call-seq:
* dh.private? -> true | false
*
+ * Indicates whether this DH instance has a private key associated with it or
+ * not. The private key may be retrieved with DH#priv_key.
*/
static VALUE
ossl_dh_is_private(VALUE self)
@@ -208,7 +225,7 @@ ossl_dh_is_private(VALUE self)
EVP_PKEY *pkey;
GetPKeyDH(self, pkey);
-
+
return (DH_PRIVATE(pkey->pkey.dh)) ? Qtrue : Qfalse;
}
@@ -216,6 +233,9 @@ ossl_dh_is_private(VALUE self)
* call-seq:
* dh.to_pem -> aString
*
+ * Encodes this DH to its PEM encoding. Note that any existing per-session
+ * public/private keys will *not* get encoded, just the Diffie-Hellman
+ * parameters will be encoded.
*/
static VALUE
ossl_dh_export(VALUE self)
@@ -241,10 +261,14 @@ ossl_dh_export(VALUE self)
* call-seq:
* dh.to_der -> aString
*
+ * Encodes this DH to its DER encoding. Note that any existing per-session
+ * public/private keys will *not* get encoded, just the Diffie-Hellman
+ * parameters will be encoded.
+
*/
static VALUE
ossl_dh_to_der(VALUE self)
-{
+{
EVP_PKEY *pkey;
unsigned char *p;
long len;
@@ -284,7 +308,7 @@ ossl_dh_get_params(VALUE self)
rb_hash_aset(hash, rb_str_new2("g"), ossl_bn_new(pkey->pkey.dh->g));
rb_hash_aset(hash, rb_str_new2("pub_key"), ossl_bn_new(pkey->pkey.dh->pub_key));
rb_hash_aset(hash, rb_str_new2("priv_key"), ossl_bn_new(pkey->pkey.dh->priv_key));
-
+
return hash;
}
@@ -320,7 +344,22 @@ ossl_dh_to_text(VALUE self)
* call-seq:
* dh.public_key -> aDH
*
- * Makes new instance DH PUBLIC_KEY from PRIVATE_KEY
+ * Returns a new DH instance that carries just the public information, i.e.
+ * the prime +p+ and the generator +g+, but no public/private key yet. Such
+ * a pair may be generated using DH#generate_key!. The "public key" needed
+ * for a key exchange with DH#compute_key is considered as per-session
+ * information and may be retrieved with DH#pub_key once a key pair has
+ * been generated.
+ * If the current instance already contains private information (and thus a
+ * valid public/private key pair), this information will no longer be present
+ * in the new instance generated by DH#public_key. This feature is helpful for
+ * publishing the Diffie-Hellman parameters without leaking any of the private
+ * per-session information.
+ *
+ * === Example
+ * dh = OpenSSL::PKey::DH.new(2048) # has public and private key set
+ * public_key = dh.public_key # contains only prime and generator
+ * parameters = public_key.to_der # it's safe to publish this
*/
static VALUE
ossl_dh_to_public_key(VALUE self)
@@ -328,7 +367,7 @@ ossl_dh_to_public_key(VALUE self)
EVP_PKEY *pkey;
DH *dh;
VALUE obj;
-
+
GetPKeyDH(self, pkey);
dh = DHparams_dup(pkey->pkey.dh); /* err check perfomed by dh_instance */
obj = dh_instance(CLASS_OF(self), dh);
@@ -344,6 +383,9 @@ ossl_dh_to_public_key(VALUE self)
* call-seq:
* dh.check_params -> true | false
*
+ * Validates the Diffie-Hellman parameters associated with this instance.
+ * It checks whether a safe prime and a suitable generator are used. If this
+ * is not the case, +false+ is returned.
*/
static VALUE
ossl_dh_check_params(VALUE self)
@@ -351,7 +393,7 @@ ossl_dh_check_params(VALUE self)
DH *dh;
EVP_PKEY *pkey;
int codes;
-
+
GetPKeyDH(self, pkey);
dh = pkey->pkey.dh;
@@ -364,8 +406,19 @@ ossl_dh_check_params(VALUE self)
/*
* call-seq:
- * dh.generate_key -> self
+ * dh.generate_key! -> self
+ *
+ * Generates a private and public key unless a private key already exists.
+ * If this DH instance was generated from public DH parameters (e.g. by
+ * encoding the result of DH#public_key), then this method needs to be
+ * called first in order to generate the per-session keys before performing
+ * the actual key exchange.
*
+ * === Example
+ * dh = OpenSSL::PKey::DH.new(2048)
+ * public_key = dh.public_key #contains no private/public key yet
+ * public_key.generate_key!
+ * puts public_key.private? # => true
*/
static VALUE
ossl_dh_generate_key(VALUE self)
@@ -385,13 +438,12 @@ ossl_dh_generate_key(VALUE self)
* call-seq:
* dh.compute_key(pub_bn) -> aString
*
- * === Parameters
- * * +pub_bn+ is a OpenSSL::BN.
- *
- * Returns aString containing a shared secret computed from the other parties public value.
- *
- * See DH_compute_key() for further information.
+ * Returns a String containing a shared secret computed from the other party's public value.
+ * See DH_compute_key() for further information.
*
+ * === Parameters
+ * * +pub_bn+ is a OpenSSL::BN, *not* the DH instance returned by
+ * DH#public_key as that contains the DH parameters only.
*/
static VALUE
ossl_dh_compute_key(VALUE self, VALUE pub)
@@ -436,10 +488,10 @@ static unsigned char DEFAULT_DH_512_PRIM[] = {
0x08, 0x04, 0x8c, 0x52, 0x8f, 0xe3, 0x4a, 0x31,
0x44, 0x47, 0x19, 0xa1, 0x4a, 0xc8, 0x8b, 0xcb,
};
-static unsigned char DEFAULT_DH_512_GEN[] = { 0x02 };
+static unsigned char DEFAULT_DH_512_GEN[] = { 0x02 };
DH *OSSL_DEFAULT_DH_512 = NULL;
-
-/*
+
+/*
* -----BEGIN DH PARAMETERS-----
* MIGHAoGBAJ0lOVy0VIr/JebWn0zDwY2h+rqITFOpdNr6ugsgvkDXuucdcChhYExJ
* AV/ZD2AWPbrTqV76mGRgJg4EddgT1zG0jq3rnFdMj2XzkBYx3BVvfR0Arnby0RHR
@@ -473,8 +525,8 @@ ossl_create_dh(unsigned char *p, size_t plen, unsigned char *g, size_t glen)
DH *dh;
if ((dh = DH_new()) == NULL) ossl_raise(eDHError, NULL);
- dh->p = BN_bin2bn(p, plen, NULL);
- dh->g = BN_bin2bn(g, glen, NULL);
+ dh->p = BN_bin2bn(p, rb_long2int(plen), NULL);
+ dh->g = BN_bin2bn(g, rb_long2int(glen), NULL);
if (dh->p == NULL || dh->g == NULL){
DH_free(dh);
ossl_raise(eDHError, NULL);
@@ -489,12 +541,45 @@ ossl_create_dh(unsigned char *p, size_t plen, unsigned char *g, size_t glen)
void
Init_ossl_dh()
{
-#if 0 /* let rdoc know about mOSSL and mPKey */
- mOSSL = rb_define_module("OpenSSL");
+#if 0
+ mOSSL = rb_define_module("OpenSSL"); /* let rdoc know about mOSSL and mPKey */
mPKey = rb_define_module_under(mOSSL, "PKey");
#endif
+ /* Document-class: OpenSSL::PKey::DHError
+ *
+ * Generic exception that is raised if an operation on a DH PKey
+ * fails unexpectedly or in case an instantiation of an instance of DH
+ * fails due to non-conformant input data.
+ */
eDHError = rb_define_class_under(mPKey, "DHError", ePKeyError);
+ /* Document-class: OpenSSL::PKey::DH
+ *
+ * An implementation of the Diffie-Hellman key exchange protocol based on
+ * discrete logarithms in finite fields, the same basis that DSA is built
+ * on.
+ *
+ * === Accessor methods for the Diffie-Hellman parameters
+ * * DH#p
+ * The prime (an OpenSSL::BN) of the Diffie-Hellman parameters.
+ * * DH#g
+ * The generator (an OpenSSL::BN) g of the Diffie-Hellman parameters.
+ * * DH#pub_key
+ * The per-session public key (an OpenSSL::BN) matching the private key.
+ * This needs to be passed to DH#compute_key.
+ * * DH#priv_key
+ * The per-session private key, an OpenSSL::BN.
+ *
+ * === Example of a key exchange
+ * dh1 = OpenSSL::PKey::DH.new(2048)
+ * params = dh1.public_key.to_der #you may send this publicly to the participating party
+ * dh2 = OpenSSL::PKey::DH.new(der)
+ * dh2.generate_key! #generate the per-session key pair
+ * symm_key1 = dh1.compute_key(dh2.pub_key)
+ * symm_key2 = dh2.compute_key(dh1.pub_key)
+ *
+ * puts symm_key1 == symm_key2 # => true
+ */
cDH = rb_define_class_under(mPKey, "DH", cPKey);
rb_define_singleton_method(cDH, "generate", ossl_dh_s_generate, -1);
rb_define_method(cDH, "initialize", ossl_dh_initialize, -1);
@@ -509,6 +594,7 @@ Init_ossl_dh()
rb_define_method(cDH, "params_ok?", ossl_dh_check_params, 0);
rb_define_method(cDH, "generate_key!", ossl_dh_generate_key, 0);
rb_define_method(cDH, "compute_key", ossl_dh_compute_key, 1);
+
DEF_OSSL_PKEY_BN(cDH, dh, p);
DEF_OSSL_PKEY_BN(cDH, dh, g);
DEF_OSSL_PKEY_BN(cDH, dh, pub_key);
diff --git a/ext/openssl/ossl_pkey_dsa.c b/ext/openssl/ossl_pkey_dsa.c
index d39933b754..6b10e8fdf8 100644
--- a/ext/openssl/ossl_pkey_dsa.c
+++ b/ext/openssl/ossl_pkey_dsa.c
@@ -13,8 +13,8 @@
#include "ossl.h"
#define GetPKeyDSA(obj, pkey) do { \
- GetPKey(obj, pkey); \
- if (EVP_PKEY_type(pkey->type) != EVP_PKEY_DSA) { /* PARANOIA? */ \
+ GetPKey((obj), (pkey)); \
+ if (EVP_PKEY_type((pkey)->type) != EVP_PKEY_DSA) { /* PARANOIA? */ \
ossl_raise(rb_eRuntimeError, "THIS IS NOT A DSA!"); \
} \
} while (0)
@@ -36,7 +36,7 @@ dsa_instance(VALUE klass, DSA *dsa)
{
EVP_PKEY *pkey;
VALUE obj;
-
+
if (!dsa) {
return Qfalse;
}
@@ -103,8 +103,11 @@ dsa_generate(int size)
* call-seq:
* DSA.generate(size) -> dsa
*
- * === Parameters
- * * +size+ is an integer representing the desired key size.
+ * Creates a new DSA instance by generating a private/public key pair
+ * from scratch.
+ *
+ * === Parameters
+ * * +size+ is an integer representing the desired key size.
*
*/
static VALUE
@@ -125,16 +128,18 @@ ossl_dsa_s_generate(VALUE klass, VALUE size)
* call-seq:
* DSA.new([size | string [, pass]) -> dsa
*
- * === Parameters
- * * +size+ is an integer representing the desired key size.
- * * +string+ contains a DER or PEM encoded key.
- * * +pass+ is a string that contains a optional password.
+ * Creates a new DSA instance by reading an existing key from +string+.
*
- * === Examples
- * * DSA.new -> dsa
- * * DSA.new(1024) -> dsa
- * * DSA.new(File.read('dsa.pem')) -> dsa
- * * DSA.new(File.read('dsa.pem'), 'mypassword') -> dsa
+ * === Parameters
+ * * +size+ is an integer representing the desired key size.
+ * * +string+ contains a DER or PEM encoded key.
+ * * +pass+ is a string that contains an optional password.
+ *
+ * === Examples
+ * DSA.new -> dsa
+ * DSA.new(1024) -> dsa
+ * DSA.new(File.read('dsa.pem')) -> dsa
+ * DSA.new(File.read('dsa.pem'), 'mypassword') -> dsa
*
*/
static VALUE
@@ -145,7 +150,7 @@ ossl_dsa_initialize(int argc, VALUE *argv, VALUE self)
BIO *in;
char *passwd = NULL;
VALUE arg, pass;
-
+
GetPKey(self, pkey);
if(rb_scan_args(argc, argv, "02", &arg, &pass) == 0) {
dsa = DSA_new();
@@ -161,23 +166,26 @@ ossl_dsa_initialize(int argc, VALUE *argv, VALUE self)
in = ossl_obj2bio(arg);
dsa = PEM_read_bio_DSAPrivateKey(in, NULL, ossl_pem_passwd_cb, passwd);
if (!dsa) {
- (void)BIO_reset(in);
- dsa = PEM_read_bio_DSAPublicKey(in, NULL, NULL, NULL);
- }
- if (!dsa) {
- (void)BIO_reset(in);
+ OSSL_BIO_reset(in);
dsa = PEM_read_bio_DSA_PUBKEY(in, NULL, NULL, NULL);
}
if (!dsa) {
- (void)BIO_reset(in);
+ OSSL_BIO_reset(in);
dsa = d2i_DSAPrivateKey_bio(in, NULL);
}
if (!dsa) {
- (void)BIO_reset(in);
+ OSSL_BIO_reset(in);
dsa = d2i_DSA_PUBKEY_bio(in, NULL);
}
+ if (!dsa) {
+ OSSL_BIO_reset(in);
+ dsa = PEM_read_bio_DSAPublicKey(in, NULL, NULL, NULL);
+ }
BIO_free(in);
- if (!dsa) ossl_raise(eDSAError, "Neither PUB key nor PRIV key:");
+ if (!dsa) {
+ ERR_clear_error();
+ ossl_raise(eDSAError, "Neither PUB key nor PRIV key:");
+ }
}
if (!EVP_PKEY_assign_DSA(pkey, dsa)) {
DSA_free(dsa);
@@ -191,6 +199,8 @@ ossl_dsa_initialize(int argc, VALUE *argv, VALUE self)
* call-seq:
* dsa.public? -> true | false
*
+ * Indicates whether this DSA instance has a public key associated with it or
+ * not. The public key may be retrieved with DSA#public_key.
*/
static VALUE
ossl_dsa_is_public(VALUE self)
@@ -206,14 +216,16 @@ ossl_dsa_is_public(VALUE self)
* call-seq:
* dsa.private? -> true | false
*
+ * Indicates whether this DSA instance has a private key associated with it or
+ * not. The private key may be retrieved with DSA#private_key.
*/
static VALUE
ossl_dsa_is_private(VALUE self)
{
EVP_PKEY *pkey;
-
+
GetPKeyDSA(self, pkey);
-
+
return (DSA_PRIVATE(self, pkey->pkey.dsa)) ? Qtrue : Qfalse;
}
@@ -221,13 +233,15 @@ ossl_dsa_is_private(VALUE self)
* call-seq:
* dsa.to_pem([cipher, password]) -> aString
*
- * === Parameters
- * +cipher+ is an OpenSSL::Cipher.
- * +password+ is a string containing your password.
+ * Encodes this DSA to its PEM encoding.
+ *
+ * === Parameters
+ * * +cipher+ is an OpenSSL::Cipher.
+ * * +password+ is a string containing your password.
*
- * === Examples
- * * DSA.to_pem -> aString
- * * DSA.to_pem(cipher, 'mypassword') -> aString
+ * === Examples
+ * DSA.to_pem -> aString
+ * DSA.to_pem(cipher, 'mypassword') -> aString
*
*/
static VALUE
@@ -257,7 +271,7 @@ ossl_dsa_export(int argc, VALUE *argv, VALUE self)
ossl_raise(eDSAError, NULL);
}
} else {
- if (!PEM_write_bio_DSAPublicKey(out, pkey->pkey.dsa)) {
+ if (!PEM_write_bio_DSA_PUBKEY(out, pkey->pkey.dsa)) {
BIO_free(out);
ossl_raise(eDSAError, NULL);
}
@@ -271,6 +285,8 @@ ossl_dsa_export(int argc, VALUE *argv, VALUE self)
* call-seq:
* dsa.to_der -> aString
*
+ * Encodes this DSA to its DER encoding.
+ *
*/
static VALUE
ossl_dsa_to_der(VALUE self)
@@ -320,7 +336,7 @@ ossl_dsa_get_params(VALUE self)
rb_hash_aset(hash, rb_str_new2("g"), ossl_bn_new(pkey->pkey.dsa->g));
rb_hash_aset(hash, rb_str_new2("pub_key"), ossl_bn_new(pkey->pkey.dsa->pub_key));
rb_hash_aset(hash, rb_str_new2("priv_key"), ossl_bn_new(pkey->pkey.dsa->priv_key));
-
+
return hash;
}
@@ -356,7 +372,18 @@ ossl_dsa_to_text(VALUE self)
* call-seq:
* dsa.public_key -> aDSA
*
- * Makes new instance DSA PUBLIC_KEY from PRIVATE_KEY
+ * Returns a new DSA instance that carries just the public key information.
+ * If the current instance has also private key information, this will no
+ * longer be present in the new instance. This feature is helpful for
+ * publishing the public key information without leaking any of the private
+ * information.
+ *
+ * === Example
+ * dsa = OpenSSL::PKey::DSA.new(2048) # has public and private information
+ * pub_key = dsa.public_key # has only the public part available
+ * pub_key_der = pub_key.to_der # it's safe to publish this
+ *
+ *
*/
static VALUE
ossl_dsa_to_public_key(VALUE self)
@@ -364,7 +391,7 @@ ossl_dsa_to_public_key(VALUE self)
EVP_PKEY *pkey;
DSA *dsa;
VALUE obj;
-
+
GetPKeyDSA(self, pkey);
/* err check performed by dsa_instance */
dsa = DSAPublicKey_dup(pkey->pkey.dsa);
@@ -382,6 +409,20 @@ ossl_dsa_to_public_key(VALUE self)
* call-seq:
* dsa.syssign(string) -> aString
*
+ * Computes and returns the DSA signature of +string+, where +string+ is
+ * expected to be an already-computed message digest of the original input
+ * data. The signature is issued using the private key of this DSA instance.
+ *
+ * === Parameters
+ * * +string+ is a message digest of the original input data to be signed
+ *
+ * === Example
+ * dsa = OpenSSL::PKey::DSA.new(2048)
+ * doc = "Sign me"
+ * digest = OpenSSL::Digest::SHA1.digest(doc)
+ * sig = dsa.syssign(digest)
+ *
+ *
*/
static VALUE
ossl_dsa_sign(VALUE self, VALUE data)
@@ -396,7 +437,7 @@ ossl_dsa_sign(VALUE self, VALUE data)
ossl_raise(eDSAError, "Private DSA key needed!");
}
str = rb_str_new(0, ossl_dsa_buf_size(pkey));
- if (!DSA_sign(0, (unsigned char *)RSTRING_PTR(data), RSTRING_LEN(data),
+ if (!DSA_sign(0, (unsigned char *)RSTRING_PTR(data), RSTRING_LENINT(data),
(unsigned char *)RSTRING_PTR(str),
&buf_len, pkey->pkey.dsa)) { /* type is ignored (0) */
ossl_raise(eDSAError, NULL);
@@ -410,6 +451,20 @@ ossl_dsa_sign(VALUE self, VALUE data)
* call-seq:
* dsa.sysverify(digest, sig) -> true | false
*
+ * Verifies whether the signature is valid given the message digest input. It
+ * does so by validating +sig+ using the public key of this DSA instance.
+ *
+ * === Parameters
+ * * +digest+ is a message digest of the original input data to be signed
+ * * +sig+ is a DSA signature value
+ *
+ * === Example
+ * dsa = OpenSSL::PKey::DSA.new(2048)
+ * doc = "Sign me"
+ * digest = OpenSSL::Digest::SHA1.digest(doc)
+ * sig = dsa.syssign(digest)
+ * puts dsa.sysverify(digest, sig) # => true
+ *
*/
static VALUE
ossl_dsa_verify(VALUE self, VALUE digest, VALUE sig)
@@ -421,8 +476,8 @@ ossl_dsa_verify(VALUE self, VALUE digest, VALUE sig)
StringValue(digest);
StringValue(sig);
/* type is ignored (0) */
- ret = DSA_verify(0, (unsigned char *)RSTRING_PTR(digest), RSTRING_LEN(digest),
- (unsigned char *)RSTRING_PTR(sig), RSTRING_LEN(sig), pkey->pkey.dsa);
+ ret = DSA_verify(0, (unsigned char *)RSTRING_PTR(digest), RSTRING_LENINT(digest),
+ (unsigned char *)RSTRING_PTR(sig), RSTRING_LENINT(sig), pkey->pkey.dsa);
if (ret < 0) {
ossl_raise(eDSAError, NULL);
}
@@ -445,15 +500,33 @@ OSSL_PKEY_BN(dsa, priv_key)
void
Init_ossl_dsa()
{
-#if 0 /* let rdoc know about mOSSL and mPKey */
- mOSSL = rb_define_module("OpenSSL");
+#if 0
+ mOSSL = rb_define_module("OpenSSL"); /* let rdoc know about mOSSL and mPKey */
mPKey = rb_define_module_under(mOSSL, "PKey");
#endif
+ /* Document-class: OpenSSL::PKey::DSAError
+ *
+ * Generic exception that is raised if an operation on a DSA PKey
+ * fails unexpectedly or in case an instantiation of an instance of DSA
+ * fails due to non-conformant input data.
+ */
eDSAError = rb_define_class_under(mPKey, "DSAError", ePKeyError);
+ /* Document-class: OpenSSL::PKey::DSA
+ *
+ * DSA, the Digital Signature Algorithm, is specified in NIST's
+ * FIPS 186-3. It is an asymmetric public key algorithm that may be used
+ * similar to e.g. RSA.
+ * Please note that for OpenSSL versions prior to 1.0.0 the digest
+ * algorithms OpenSSL::Digest::DSS (equivalent to SHA) or
+ * OpenSSL::Digest::DSS1 (equivalent to SHA-1) must be used for issuing
+ * signatures with a DSA key using OpenSSL::PKey#sign.
+ * Starting with OpenSSL 1.0.0, digest algorithms are no longer restricted,
+ * any Digest may be used for signing.
+ */
cDSA = rb_define_class_under(mPKey, "DSA", cPKey);
-
+
rb_define_singleton_method(cDSA, "generate", ossl_dsa_s_generate, 1);
rb_define_method(cDSA, "initialize", ossl_dsa_initialize, -1);
diff --git a/ext/openssl/ossl_pkey_ec.c b/ext/openssl/ossl_pkey_ec.c
index edb5695fb4..9f1050f62d 100644
--- a/ext/openssl/ossl_pkey_ec.c
+++ b/ext/openssl/ossl_pkey_ec.c
@@ -22,70 +22,70 @@ typedef struct {
#define GetPKeyEC(obj, pkey) do { \
- GetPKey(obj, pkey); \
- if (EVP_PKEY_type(pkey->type) != EVP_PKEY_EC) { \
+ GetPKey((obj), (pkey)); \
+ if (EVP_PKEY_type((pkey)->type) != EVP_PKEY_EC) { \
ossl_raise(rb_eRuntimeError, "THIS IS NOT A EC PKEY!"); \
} \
} while (0)
#define SafeGet_ec_group(obj, group) do { \
- OSSL_Check_Kind(obj, cEC_GROUP); \
- Data_Get_Struct(obj, ossl_ec_group, group); \
+ OSSL_Check_Kind((obj), cEC_GROUP); \
+ Data_Get_Struct((obj), ossl_ec_group, (group)); \
} while(0)
#define Get_EC_KEY(obj, key) do { \
EVP_PKEY *pkey; \
- GetPKeyEC(obj, pkey); \
- key = pkey->pkey.ec; \
+ GetPKeyEC((obj), pkey); \
+ (key) = pkey->pkey.ec; \
} while(0)
#define Require_EC_KEY(obj, key) do { \
- Get_EC_KEY(obj, key); \
- if (key == NULL) \
- rb_raise(eECError, "EC_KEY is not initialized"); \
+ Get_EC_KEY((obj), (key)); \
+ if ((key) == NULL) \
+ ossl_raise(eECError, "EC_KEY is not initialized"); \
} while(0)
#define SafeRequire_EC_KEY(obj, key) do { \
- OSSL_Check_Kind(obj, cEC); \
- Require_EC_KEY(obj, key); \
+ OSSL_Check_Kind((obj), cEC); \
+ Require_EC_KEY((obj), (key)); \
} while (0)
#define Get_EC_GROUP(obj, g) do { \
ossl_ec_group *ec_group; \
- Data_Get_Struct(obj, ossl_ec_group, ec_group); \
+ Data_Get_Struct((obj), ossl_ec_group, ec_group); \
if (ec_group == NULL) \
- rb_raise(eEC_GROUP, "missing ossl_ec_group structure"); \
- g = ec_group->group; \
+ ossl_raise(eEC_GROUP, "missing ossl_ec_group structure"); \
+ (g) = ec_group->group; \
} while(0)
#define Require_EC_GROUP(obj, group) do { \
- Get_EC_GROUP(obj, group); \
- if (group == NULL) \
- rb_raise(eEC_GROUP, "EC_GROUP is not initialized"); \
+ Get_EC_GROUP((obj), (group)); \
+ if ((group) == NULL) \
+ ossl_raise(eEC_GROUP, "EC_GROUP is not initialized"); \
} while(0)
#define SafeRequire_EC_GROUP(obj, group) do { \
- OSSL_Check_Kind(obj, cEC_GROUP); \
- Require_EC_GROUP(obj, group); \
+ OSSL_Check_Kind((obj), cEC_GROUP); \
+ Require_EC_GROUP((obj), (group)); \
} while(0)
#define Get_EC_POINT(obj, p) do { \
ossl_ec_point *ec_point; \
- Data_Get_Struct(obj, ossl_ec_point, ec_point); \
+ Data_Get_Struct((obj), ossl_ec_point, ec_point); \
if (ec_point == NULL) \
- rb_raise(eEC_POINT, "missing ossl_ec_point structure"); \
- p = ec_point->point; \
+ ossl_raise(eEC_POINT, "missing ossl_ec_point structure"); \
+ (p) = ec_point->point; \
} while(0)
#define Require_EC_POINT(obj, point) do { \
- Get_EC_POINT(obj, point); \
- if (point == NULL) \
- rb_raise(eEC_POINT, "EC_POINT is not initialized"); \
+ Get_EC_POINT((obj), (point)); \
+ if ((point) == NULL) \
+ ossl_raise(eEC_POINT, "EC_POINT is not initialized"); \
} while(0)
#define SafeRequire_EC_POINT(obj, point) do { \
- OSSL_Check_Kind(obj, cEC_POINT); \
- Require_EC_POINT(obj, point); \
+ OSSL_Check_Kind((obj), cEC_POINT); \
+ Require_EC_POINT((obj), (point)); \
} while(0)
VALUE cEC;
@@ -110,7 +110,7 @@ static VALUE ec_instance(VALUE klass, EC_KEY *ec)
{
EVP_PKEY *pkey;
VALUE obj;
-
+
if (!ec) {
return Qfalse;
}
@@ -152,6 +152,7 @@ VALUE ossl_ec_new(EVP_PKEY *pkey)
* OpenSSL::PKey::EC.new(ec_group)
* OpenSSL::PKey::EC.new("secp112r1")
* OpenSSL::PKey::EC.new(pem_string)
+ * OpenSSL::PKey::EC.new(pem_string [, pwd])
* OpenSSL::PKey::EC.new(der_string)
*
* See the OpenSSL documentation for:
@@ -163,10 +164,11 @@ static VALUE ossl_ec_key_initialize(int argc, VALUE *argv, VALUE self)
EC_KEY *ec = NULL;
VALUE arg, pass;
VALUE group = Qnil;
-
+ char *passwd = NULL;
+
GetPKey(self, pkey);
if (pkey->pkey.ec)
- rb_raise(eECError, "EC_KEY already initialized");
+ ossl_raise(eECError, "EC_KEY already initialized");
rb_scan_args(argc, argv, "02", &arg, &pass);
@@ -184,17 +186,20 @@ static VALUE ossl_ec_key_initialize(int argc, VALUE *argv, VALUE self)
} else {
BIO *in = ossl_obj2bio(arg);
- ec = PEM_read_bio_ECPrivateKey(in, NULL, NULL, NULL);
+ if (!NIL_P(pass)) {
+ passwd = StringValuePtr(pass);
+ }
+ ec = PEM_read_bio_ECPrivateKey(in, NULL, ossl_pem_passwd_cb, passwd);
if (!ec) {
- (void)BIO_reset(in);
- ec = PEM_read_bio_EC_PUBKEY(in, NULL, NULL, NULL);
+ OSSL_BIO_reset(in);
+ ec = PEM_read_bio_EC_PUBKEY(in, NULL, ossl_pem_passwd_cb, passwd);
}
if (!ec) {
- (void)BIO_reset(in);
+ OSSL_BIO_reset(in);
ec = d2i_ECPrivateKey_bio(in, NULL);
}
if (!ec) {
- (void)BIO_reset(in);
+ OSSL_BIO_reset(in);
ec = d2i_EC_PUBKEY_bio(in, NULL);
}
@@ -204,6 +209,7 @@ static VALUE ossl_ec_key_initialize(int argc, VALUE *argv, VALUE self)
const char *name = StringValueCStr(arg);
int nid = OBJ_sn2nid(name);
+ (void)ERR_get_error();
if (nid == NID_undef)
ossl_raise(eECError, "unknown curve name (%s)\n", name);
@@ -274,7 +280,7 @@ static VALUE ossl_ec_key_get_group(VALUE self)
* the group.
*
* Setting the group will immediately destroy any previously assigned group object.
- * The group is internally copied by OpenSSL. Modifying the original group after
+ * The group is internally copied by OpenSSL. Modifying the original group after
* assignment will not effect the internal key structure.
* (your changes may be lost). BE CAREFUL.
*
@@ -457,22 +463,19 @@ static VALUE ossl_ec_key_is_private_key(VALUE self)
return (EC_KEY_get0_private_key(ec) ? Qtrue : Qfalse);
}
-static VALUE ossl_ec_key_to_string(VALUE self, int format)
+static VALUE ossl_ec_key_to_string(VALUE self, VALUE ciph, VALUE pass, int format)
{
EC_KEY *ec;
BIO *out;
int i = -1;
int private = 0;
-#if 0 /* unused now */
- EVP_CIPHER *cipher = NULL;
char *password = NULL;
-#endif
VALUE str;
Require_EC_KEY(self, ec);
if (EC_KEY_get0_public_key(ec) == NULL)
- rb_raise(eECError, "can't export - no public key set");
+ ossl_raise(eECError, "can't export - no public key set");
if (EC_KEY_check_key(ec) != 1)
ossl_raise(eECError, "can't export - EC_KEY_check_key failed");
@@ -486,44 +489,33 @@ static VALUE ossl_ec_key_to_string(VALUE self, int format)
switch(format) {
case EXPORT_PEM:
if (private) {
-#if 0 /* unused now */
- if (cipher || password)
-/* BUG: finish cipher/password key export */
- rb_notimplement();
+ const EVP_CIPHER *cipher;
+ if (!NIL_P(ciph)) {
+ cipher = GetCipherPtr(ciph);
+ if (!NIL_P(pass)) {
+ password = StringValuePtr(pass);
+ }
+ }
+ else {
+ cipher = NULL;
+ }
i = PEM_write_bio_ECPrivateKey(out, ec, cipher, NULL, 0, NULL, password);
-#endif
- i = PEM_write_bio_ECPrivateKey(out, ec, NULL, NULL, 0, NULL, NULL);
} else {
-#if 0 /* unused now */
- if (cipher || password)
- rb_raise(rb_eArgError, "encryption is not supported when exporting this key type");
-#endif
-
i = PEM_write_bio_EC_PUBKEY(out, ec);
}
break;
case EXPORT_DER:
if (private) {
-#if 0 /* unused now */
- if (cipher || password)
- rb_raise(rb_eArgError, "encryption is not supported when exporting this key type");
-#endif
-
i = i2d_ECPrivateKey_bio(out, ec);
} else {
-#if 0 /* unused now */
- if (cipher || password)
- rb_raise(rb_eArgError, "encryption is not supported when exporting this key type");
-#endif
-
i = i2d_EC_PUBKEY_bio(out, ec);
}
break;
default:
BIO_free(out);
- rb_raise(rb_eRuntimeError, "unknown format (internal error)");
+ ossl_raise(rb_eRuntimeError, "unknown format (internal error)");
}
if (i != 1) {
@@ -539,12 +531,20 @@ static VALUE ossl_ec_key_to_string(VALUE self, int format)
/*
* call-seq:
* key.to_pem => String
+ * key.to_pem(cipher, pass_phrase) => String
+ *
+ * Outputs the EC key in PEM encoding. If +cipher+ and +pass_phrase+ are
+ * given they will be used to encrypt the key. +cipher+ must be an
+ * OpenSSL::Cipher::Cipher instance. Note that encryption will only be
+ * effective for a private key, public keys will always be encoded in plain
+ * text.
*
- * See the OpenSSL documentation for PEM_write_bio_ECPrivateKey()
*/
-static VALUE ossl_ec_key_to_pem(VALUE self)
+static VALUE ossl_ec_key_to_pem(int argc, VALUE *argv, VALUE self)
{
- return ossl_ec_key_to_string(self, EXPORT_PEM);
+ VALUE cipher, passwd;
+ rb_scan_args(argc, argv, "02", &cipher, &passwd);
+ return ossl_ec_key_to_string(self, cipher, passwd, EXPORT_PEM);
}
/*
@@ -555,7 +555,7 @@ static VALUE ossl_ec_key_to_pem(VALUE self)
*/
static VALUE ossl_ec_key_to_der(VALUE self)
{
- return ossl_ec_key_to_string(self, EXPORT_DER);
+ return ossl_ec_key_to_string(self, Qnil, Qnil, EXPORT_DER);
}
/*
@@ -671,7 +671,7 @@ static VALUE ossl_ec_key_dsa_sign_asn1(VALUE self, VALUE data)
ossl_raise(eECError, "Private EC key needed!");
str = rb_str_new(0, ECDSA_size(ec) + 16);
- if (ECDSA_sign(0, (unsigned char *) RSTRING_PTR(data), RSTRING_LEN(data), (unsigned char *) RSTRING_PTR(str), &buf_len, ec) != 1)
+ if (ECDSA_sign(0, (unsigned char *) RSTRING_PTR(data), RSTRING_LENINT(data), (unsigned char *) RSTRING_PTR(str), &buf_len, ec) != 1)
ossl_raise(eECError, "ECDSA_sign");
rb_str_resize(str, buf_len);
@@ -681,7 +681,7 @@ static VALUE ossl_ec_key_dsa_sign_asn1(VALUE self, VALUE data)
/*
* call-seq:
- * key.dsa_verify(data, sig) => true or false
+ * key.dsa_verify_asn1(data, sig) => true or false
*
* See the OpenSSL documentation for ECDSA_verify()
*/
@@ -693,7 +693,7 @@ static VALUE ossl_ec_key_dsa_verify_asn1(VALUE self, VALUE data, VALUE sig)
StringValue(data);
StringValue(sig);
- switch (ECDSA_verify(0, (unsigned char *) RSTRING_PTR(data), RSTRING_LEN(data), (unsigned char *) RSTRING_PTR(sig), RSTRING_LEN(sig), ec)) {
+ switch (ECDSA_verify(0, (unsigned char *) RSTRING_PTR(data), RSTRING_LENINT(data), (unsigned char *) RSTRING_PTR(sig), (int)RSTRING_LEN(sig), ec)) {
case 1: return Qtrue;
case 0: return Qfalse;
default: break;
@@ -743,7 +743,7 @@ static VALUE ossl_ec_group_initialize(int argc, VALUE *argv, VALUE self)
Data_Get_Struct(self, ossl_ec_group, ec_group);
if (ec_group->group != NULL)
- rb_raise(rb_eRuntimeError, "EC_GROUP is already initialized");
+ ossl_raise(rb_eRuntimeError, "EC_GROUP is already initialized");
switch (rb_scan_args(argc, argv, "13", &arg1, &arg2, &arg3, &arg4)) {
case 1:
@@ -765,7 +765,7 @@ static VALUE ossl_ec_group_initialize(int argc, VALUE *argv, VALUE self)
if ((group = EC_GROUP_new(method)) == NULL)
ossl_raise(eEC_GROUP, "EC_GROUP_new");
} else {
- rb_raise(rb_eArgError, "unknown symbol, must be :GFp_simple, :GFp_mont, :GFp_nist or :GF2m_simple");
+ ossl_raise(rb_eArgError, "unknown symbol, must be :GFp_simple, :GFp_mont, :GFp_nist or :GF2m_simple");
}
} else if (rb_obj_is_kind_of(arg1, cEC_GROUP)) {
const EC_GROUP *arg1_group;
@@ -778,7 +778,7 @@ static VALUE ossl_ec_group_initialize(int argc, VALUE *argv, VALUE self)
group = PEM_read_bio_ECPKParameters(in, NULL, NULL, NULL);
if (!group) {
- (void)BIO_reset(in);
+ OSSL_BIO_reset(in);
group = d2i_ECPKParameters_bio(in, NULL);
}
@@ -788,6 +788,7 @@ static VALUE ossl_ec_group_initialize(int argc, VALUE *argv, VALUE self)
const char *name = StringValueCStr(arg1);
int nid = OBJ_sn2nid(name);
+ (void)ERR_get_error();
if (nid == NID_undef)
ossl_raise(eEC_GROUP, "unknown curve name (%s)", name);
@@ -814,18 +815,18 @@ static VALUE ossl_ec_group_initialize(int argc, VALUE *argv, VALUE self)
} else if (id == s_GF2m) {
new_curve = EC_GROUP_new_curve_GF2m;
} else {
- rb_raise(rb_eArgError, "unknown symbol, must be :GFp or :GF2m");
+ ossl_raise(rb_eArgError, "unknown symbol, must be :GFp or :GF2m");
}
if ((group = new_curve(p, a, b, ossl_bn_ctx)) == NULL)
ossl_raise(eEC_GROUP, "EC_GROUP_new_by_GF*");
} else {
- rb_raise(rb_eArgError, "unknown argument, must be :GFp or :GF2m");
+ ossl_raise(rb_eArgError, "unknown argument, must be :GFp or :GF2m");
}
break;
default:
- rb_raise(rb_eArgError, "wrong number of arguments");
+ ossl_raise(rb_eArgError, "wrong number of arguments");
}
if (group == NULL)
@@ -965,7 +966,7 @@ static VALUE ossl_s_builtin_curves(VALUE self)
{
EC_builtin_curve *curves = NULL;
int n;
- int crv_len = EC_get_builtin_curves(NULL, 0);
+ int crv_len = rb_long2int(EC_get_builtin_curves(NULL, 0));
VALUE ary, ret;
curves = ALLOCA_N(EC_builtin_curve, crv_len);
@@ -1023,7 +1024,7 @@ static VALUE ossl_ec_group_set_asn1_flag(VALUE self, VALUE flag_v)
}
/* call-seq:
- * group.point_conversion_form => :uncompressed | :compressed | :hybrid
+ * group.point_conversion_form => :uncompressed | :compressed | :hybrid
*
* See the OpenSSL documentation for EC_GROUP_get_point_conversion_form()
*/
@@ -1041,9 +1042,9 @@ static VALUE ossl_ec_group_get_point_conversion_form(VALUE self)
case POINT_CONVERSION_UNCOMPRESSED: ret = ID_uncompressed; break;
case POINT_CONVERSION_COMPRESSED: ret = ID_compressed; break;
case POINT_CONVERSION_HYBRID: ret = ID_hybrid; break;
- default: rb_raise(eEC_GROUP, "unsupported point conversion form: %d, this module should be updated", form);
+ default: ossl_raise(eEC_GROUP, "unsupported point conversion form: %d, this module should be updated", form);
}
-
+
return ID2SYM(ret);
}
@@ -1067,7 +1068,7 @@ static VALUE ossl_ec_group_set_point_conversion_form(VALUE self, VALUE form_v)
} else if (form_id == ID_hybrid) {
form = POINT_CONVERSION_HYBRID;
} else {
- rb_raise(rb_eArgError, "form must be :compressed, :uncompressed, or :hybrid");
+ ossl_raise(rb_eArgError, "form must be :compressed, :uncompressed, or :hybrid");
}
EC_GROUP_set_point_conversion_form(group, form);
@@ -1107,7 +1108,7 @@ static VALUE ossl_ec_group_set_seed(VALUE self, VALUE seed)
Require_EC_GROUP(self, group);
StringValue(seed);
- if (EC_GROUP_set_seed(group, (unsigned char *)RSTRING_PTR(seed), RSTRING_LEN(seed)) != RSTRING_LEN(seed))
+ if (EC_GROUP_set_seed(group, (unsigned char *)RSTRING_PTR(seed), RSTRING_LEN(seed)) != (size_t)RSTRING_LEN(seed))
ossl_raise(eEC_GROUP, "EC_GROUP_set_seed");
return seed;
@@ -1150,7 +1151,7 @@ static VALUE ossl_ec_group_to_string(VALUE self, int format)
break;
default:
BIO_free(out);
- rb_raise(rb_eRuntimeError, "unknown format (internal error)");
+ ossl_raise(rb_eRuntimeError, "unknown format (internal error)");
}
if (i != 1) {
@@ -1243,7 +1244,7 @@ static VALUE ossl_ec_point_initialize(int argc, VALUE *argv, VALUE self)
Data_Get_Struct(self, ossl_ec_point, ec_point);
if (ec_point->point)
- rb_raise(eEC_POINT, "EC_POINT already initialized");
+ ossl_raise(eEC_POINT, "EC_POINT already initialized");
switch (rb_scan_args(argc, argv, "11", &arg1, &arg2)) {
case 1:
@@ -1261,16 +1262,16 @@ static VALUE ossl_ec_point_initialize(int argc, VALUE *argv, VALUE self)
point = EC_POINT_new(group);
} else {
- rb_raise(eEC_POINT, "wrong argument type: must be OpenSSL::PKey::EC::Point or OpenSSL::Pkey::EC::Group");
+ ossl_raise(eEC_POINT, "wrong argument type: must be OpenSSL::PKey::EC::Point or OpenSSL::Pkey::EC::Group");
}
break;
case 2:
if (!rb_obj_is_kind_of(arg1, cEC_GROUP))
- rb_raise(rb_eArgError, "1st argument must be OpenSSL::PKey::EC::Group");
+ ossl_raise(rb_eArgError, "1st argument must be OpenSSL::PKey::EC::Group");
group_v = arg1;
SafeRequire_EC_GROUP(group_v, group);
-
+
if (rb_obj_is_kind_of(arg2, cBN)) {
const BIGNUM *bn = GetBNPtr(arg2);
@@ -1288,14 +1289,14 @@ static VALUE ossl_ec_point_initialize(int argc, VALUE *argv, VALUE self)
}
break;
default:
- rb_raise(rb_eArgError, "wrong number of arguments");
+ ossl_raise(rb_eArgError, "wrong number of arguments");
}
if (point == NULL)
ossl_raise(eEC_POINT, NULL);
if (NIL_P(group_v))
- rb_raise(rb_eRuntimeError, "missing group (internal error)");
+ ossl_raise(rb_eRuntimeError, "missing group (internal error)");
ec_point->point = point;
@@ -1526,7 +1527,7 @@ void Init_ossl_ec()
rb_define_method(cEC, "dsa_verify_asn1", ossl_ec_key_dsa_verify_asn1, 2);
/* do_sign/do_verify */
- rb_define_method(cEC, "to_pem", ossl_ec_key_to_pem, 0);
+ rb_define_method(cEC, "to_pem", ossl_ec_key_to_pem, -1);
rb_define_method(cEC, "to_der", ossl_ec_key_to_der, 0);
rb_define_method(cEC, "to_text", ossl_ec_key_to_text, 0);
diff --git a/ext/openssl/ossl_pkey_rsa.c b/ext/openssl/ossl_pkey_rsa.c
index 80665cddbd..eba693b057 100644
--- a/ext/openssl/ossl_pkey_rsa.c
+++ b/ext/openssl/ossl_pkey_rsa.c
@@ -13,8 +13,8 @@
#include "ossl.h"
#define GetPKeyRSA(obj, pkey) do { \
- GetPKey(obj, pkey); \
- if (EVP_PKEY_type(pkey->type) != EVP_PKEY_RSA) { /* PARANOIA? */ \
+ GetPKey((obj), (pkey)); \
+ if (EVP_PKEY_type((pkey)->type) != EVP_PKEY_RSA) { /* PARANOIA? */ \
ossl_raise(rb_eRuntimeError, "THIS IS NOT A RSA!") ; \
} \
} while (0)
@@ -36,7 +36,7 @@ rsa_instance(VALUE klass, RSA *rsa)
{
EVP_PKEY *pkey;
VALUE obj;
-
+
if (!rsa) {
return Qfalse;
}
@@ -48,7 +48,7 @@ rsa_instance(VALUE klass, RSA *rsa)
return Qfalse;
}
WrapPKey(klass, obj, pkey);
-
+
return obj;
}
@@ -85,13 +85,13 @@ rsa_generate(int size, int exp)
}
/*
- * call-seq:
- * RSA.generate(size [, exponent]) -> rsa
- *
- * === Parameters
- * * +size+ is an integer representing the desired key size. Keys smaller than 1024 should be considered insecure.
- * * +exponent+ is an odd number normally 3, 17, or 65537.
+ * call-seq:
+ * RSA.generate(size) => RSA instance
+ * RSA.generate(size, exponent) => RSA instance
*
+ * Generates an RSA keypair. +size+ is an integer representing the desired key
+ * size. Keys smaller than 1024 should be considered insecure. +exponent+ is
+ * an odd number normally 3, 17, or 65537.
*/
static VALUE
ossl_rsa_s_generate(int argc, VALUE *argv, VALUE klass)
@@ -115,18 +115,24 @@ ossl_rsa_s_generate(int argc, VALUE *argv, VALUE klass)
}
/*
- * call-seq:
- * RSA.new([size | encoded_key] [, pass]) -> rsa
+ * call-seq:
+ * RSA.new(key_size) => RSA instance
+ * RSA.new(encoded_key) => RSA instance
+ * RSA.new(encoded_key, pass_phrase) => RSA instance
+ *
+ * Generates or loads an RSA keypair. If an integer +key_size+ is given it
+ * represents the desired key size. Keys less than 1024 bits should be
+ * considered insecure.
+ *
+ * A key can instead be loaded from an +encoded_key+ which must be PEM or DER
+ * encoded. A +pass_phrase+ can be used to decrypt the key. If none is given
+ * OpenSSL will prompt for the pass phrase.
*
- * === Parameters
- * * +size+ is an integer representing the desired key size.
- * * +encoded_key+ is a string containing PEM or DER encoded key.
- * * +pass+ is an optional string with the password to decrypt the encoded key.
+ * = Examples
*
- * === Examples
- * * RSA.new(2048) -> rsa
- * * RSA.new(File.read("rsa.pem")) -> rsa
- * * RSA.new(File.read("rsa.pem"), "mypassword") -> rsa
+ * OpenSSL::PKey::RSA.new 2048
+ * OpenSSL::PKey::RSA.new File.read 'rsa.pem'
+ * OpenSSL::PKey::RSA.new File.read('rsa.pem'), 'my pass phrase'
*/
static VALUE
ossl_rsa_initialize(int argc, VALUE *argv, VALUE self)
@@ -136,7 +142,7 @@ ossl_rsa_initialize(int argc, VALUE *argv, VALUE self)
BIO *in;
char *passwd = NULL;
VALUE arg, pass;
-
+
GetPKey(self, pkey);
if(rb_scan_args(argc, argv, "02", &arg, &pass) == 0) {
rsa = RSA_new();
@@ -151,27 +157,29 @@ ossl_rsa_initialize(int argc, VALUE *argv, VALUE self)
in = ossl_obj2bio(arg);
rsa = PEM_read_bio_RSAPrivateKey(in, NULL, ossl_pem_passwd_cb, passwd);
if (!rsa) {
- (void)BIO_reset(in);
- rsa = PEM_read_bio_RSAPublicKey(in, NULL, NULL, NULL);
- }
- if (!rsa) {
- (void)BIO_reset(in);
+ OSSL_BIO_reset(in);
rsa = PEM_read_bio_RSA_PUBKEY(in, NULL, NULL, NULL);
}
if (!rsa) {
- (void)BIO_reset(in);
+ OSSL_BIO_reset(in);
rsa = d2i_RSAPrivateKey_bio(in, NULL);
}
if (!rsa) {
- (void)BIO_reset(in);
- rsa = d2i_RSAPublicKey_bio(in, NULL);
+ OSSL_BIO_reset(in);
+ rsa = d2i_RSA_PUBKEY_bio(in, NULL);
}
if (!rsa) {
- (void)BIO_reset(in);
- rsa = d2i_RSA_PUBKEY_bio(in, NULL);
+ OSSL_BIO_reset(in);
+ rsa = PEM_read_bio_RSAPublicKey(in, NULL, NULL, NULL);
+ }
+ if (!rsa) {
+ OSSL_BIO_reset(in);
+ rsa = d2i_RSAPublicKey_bio(in, NULL);
}
BIO_free(in);
- if (!rsa) ossl_raise(eRSAError, "Neither PUB key nor PRIV key:");
+ if (!rsa) {
+ ossl_raise(eRSAError, "Neither PUB key nor PRIV key:");
+ }
}
if (!EVP_PKEY_assign_RSA(pkey, rsa)) {
RSA_free(rsa);
@@ -182,11 +190,11 @@ ossl_rsa_initialize(int argc, VALUE *argv, VALUE self)
}
/*
- * call-seq:
- * rsa.public? -> true
- *
- * The return value is always true since every private key is also a public key.
+ * call-seq:
+ * rsa.public? => true
*
+ * The return value is always true since every private key is also a public
+ * key.
*/
static VALUE
ossl_rsa_is_public(VALUE self)
@@ -201,31 +209,29 @@ ossl_rsa_is_public(VALUE self)
}
/*
- * call-seq:
- * rsa.private? -> true | false
+ * call-seq:
+ * rsa.private? => true | false
*
+ * Does this keypair contain a private key?
*/
static VALUE
ossl_rsa_is_private(VALUE self)
{
EVP_PKEY *pkey;
-
+
GetPKeyRSA(self, pkey);
-
+
return (RSA_PRIVATE(self, pkey->pkey.rsa)) ? Qtrue : Qfalse;
}
/*
- * call-seq:
- * rsa.to_pem([cipher, pass]) -> aString
- *
- * === Parameters
- * * +cipher+ is a Cipher object.
- * * +pass+ is a string.
+ * call-seq:
+ * rsa.to_pem => PEM-format String
+ * rsa.to_pem(cipher, pass_phrase) => PEM-format String
*
- * === Examples
- * * rsa.to_pem -> aString
- * * rsa.to_pem(cipher, pass) -> aString
+ * Outputs this keypair in PEM encoding. If +cipher+ and +pass_phrase+ are
+ * given they will be used to encrypt the key. +cipher+ must be an
+ * OpenSSL::Cipher::Cipher instance.
*/
static VALUE
ossl_rsa_export(int argc, VALUE *argv, VALUE self)
@@ -256,20 +262,21 @@ ossl_rsa_export(int argc, VALUE *argv, VALUE self)
ossl_raise(eRSAError, NULL);
}
} else {
- if (!PEM_write_bio_RSAPublicKey(out, pkey->pkey.rsa)) {
+ if (!PEM_write_bio_RSA_PUBKEY(out, pkey->pkey.rsa)) {
BIO_free(out);
ossl_raise(eRSAError, NULL);
}
}
str = ossl_membio2str(out);
-
+
return str;
}
/*
- * call-seq:
- * rsa.to_der -> aString
+ * call-seq:
+ * rsa.to_der => DER-format String
*
+ * Outputs this keypair in DER encoding.
*/
static VALUE
ossl_rsa_to_der(VALUE self)
@@ -284,7 +291,7 @@ ossl_rsa_to_der(VALUE self)
if(RSA_HAS_PRIVATE(pkey->pkey.rsa))
i2d_func = i2d_RSAPrivateKey;
else
- i2d_func = i2d_RSAPublicKey;
+ i2d_func = (int (*)(const RSA*, unsigned char**))i2d_RSA_PUBKEY;
if((len = i2d_func(pkey->pkey.rsa, NULL)) <= 0)
ossl_raise(eRSAError, NULL);
str = rb_str_new(0, len);
@@ -299,9 +306,12 @@ ossl_rsa_to_der(VALUE self)
#define ossl_rsa_buf_size(pkey) (RSA_size((pkey)->pkey.rsa)+16)
/*
- * call-seq:
- * rsa.public_encrypt(string [, padding]) -> aString
+ * call-seq:
+ * rsa.public_encrypt(string) => String
+ * rsa.public_encrypt(string, padding) => String
*
+ * Encrypt +string+ with the public key. +padding+ defaults to PKCS1_PADDING.
+ * The encrypted string output can be decrypted using #private_decrypt.
*/
static VALUE
ossl_rsa_public_encrypt(int argc, VALUE *argv, VALUE self)
@@ -315,7 +325,7 @@ ossl_rsa_public_encrypt(int argc, VALUE *argv, VALUE self)
pad = (argc == 1) ? RSA_PKCS1_PADDING : NUM2INT(padding);
StringValue(buffer);
str = rb_str_new(0, ossl_rsa_buf_size(pkey));
- buf_len = RSA_public_encrypt(RSTRING_LEN(buffer), (unsigned char *)RSTRING_PTR(buffer),
+ buf_len = RSA_public_encrypt(RSTRING_LENINT(buffer), (unsigned char *)RSTRING_PTR(buffer),
(unsigned char *)RSTRING_PTR(str), pkey->pkey.rsa,
pad);
if (buf_len < 0) ossl_raise(eRSAError, NULL);
@@ -325,9 +335,12 @@ ossl_rsa_public_encrypt(int argc, VALUE *argv, VALUE self)
}
/*
- * call-seq:
- * rsa.public_decrypt(string [, padding]) -> aString
+ * call-seq:
+ * rsa.public_decrypt(string) => String
+ * rsa.public_decrypt(string, padding) => String
*
+ * Decrypt +string+, which has been encrypted with the private key, with the
+ * public key. +padding+ defaults to PKCS1_PADDING.
*/
static VALUE
ossl_rsa_public_decrypt(int argc, VALUE *argv, VALUE self)
@@ -341,19 +354,22 @@ ossl_rsa_public_decrypt(int argc, VALUE *argv, VALUE self)
pad = (argc == 1) ? RSA_PKCS1_PADDING : NUM2INT(padding);
StringValue(buffer);
str = rb_str_new(0, ossl_rsa_buf_size(pkey));
- buf_len = RSA_public_decrypt(RSTRING_LEN(buffer), (unsigned char *)RSTRING_PTR(buffer),
+ buf_len = RSA_public_decrypt(RSTRING_LENINT(buffer), (unsigned char *)RSTRING_PTR(buffer),
(unsigned char *)RSTRING_PTR(str), pkey->pkey.rsa,
pad);
if (buf_len < 0) ossl_raise(eRSAError, NULL);
rb_str_set_len(str, buf_len);
-
+
return str;
}
/*
- * call-seq:
- * rsa.private_encrypt(string [, padding]) -> aString
+ * call-seq:
+ * rsa.private_encrypt(string) => String
+ * rsa.private_encrypt(string, padding) => String
*
+ * Encrypt +string+ with the private key. +padding+ defaults to PKCS1_PADDING.
+ * The encrypted string output can be decrypted using #public_decrypt.
*/
static VALUE
ossl_rsa_private_encrypt(int argc, VALUE *argv, VALUE self)
@@ -365,25 +381,27 @@ ossl_rsa_private_encrypt(int argc, VALUE *argv, VALUE self)
GetPKeyRSA(self, pkey);
if (!RSA_PRIVATE(self, pkey->pkey.rsa)) {
ossl_raise(eRSAError, "private key needed.");
- }
+ }
rb_scan_args(argc, argv, "11", &buffer, &padding);
pad = (argc == 1) ? RSA_PKCS1_PADDING : NUM2INT(padding);
StringValue(buffer);
str = rb_str_new(0, ossl_rsa_buf_size(pkey));
- buf_len = RSA_private_encrypt(RSTRING_LEN(buffer), (unsigned char *)RSTRING_PTR(buffer),
+ buf_len = RSA_private_encrypt(RSTRING_LENINT(buffer), (unsigned char *)RSTRING_PTR(buffer),
(unsigned char *)RSTRING_PTR(str), pkey->pkey.rsa,
pad);
if (buf_len < 0) ossl_raise(eRSAError, NULL);
rb_str_set_len(str, buf_len);
-
+
return str;
}
-
/*
- * call-seq:
- * rsa.private_decrypt(string [, padding]) -> aString
+ * call-seq:
+ * rsa.private_decrypt(string) => String
+ * rsa.private_decrypt(string, padding) => String
*
+ * Decrypt +string+, which has been encrypted with the public key, with the
+ * private key. +padding+ defaults to PKCS1_PADDING.
*/
static VALUE
ossl_rsa_private_decrypt(int argc, VALUE *argv, VALUE self)
@@ -400,7 +418,7 @@ ossl_rsa_private_decrypt(int argc, VALUE *argv, VALUE self)
pad = (argc == 1) ? RSA_PKCS1_PADDING : NUM2INT(padding);
StringValue(buffer);
str = rb_str_new(0, ossl_rsa_buf_size(pkey));
- buf_len = RSA_private_decrypt(RSTRING_LEN(buffer), (unsigned char *)RSTRING_PTR(buffer),
+ buf_len = RSA_private_decrypt(RSTRING_LENINT(buffer), (unsigned char *)RSTRING_PTR(buffer),
(unsigned char *)RSTRING_PTR(str), pkey->pkey.rsa,
pad);
if (buf_len < 0) ossl_raise(eRSAError, NULL);
@@ -410,12 +428,15 @@ ossl_rsa_private_decrypt(int argc, VALUE *argv, VALUE self)
}
/*
- * call-seq:
- * rsa.params -> hash
+ * call-seq:
+ * rsa.params => hash
+ *
+ * THIS METHOD IS INSECURE, PRIVATE INFORMATION CAN LEAK OUT!!!
*
- * Stores all parameters of key to the hash
- * INSECURE: PRIVATE INFORMATIONS CAN LEAK OUT!!!
- * Don't use :-)) (I's up to you)
+ * Stores all parameters of key to the hash. The hash has keys 'n', 'e', 'd',
+ * 'p', 'q', 'dmp1', 'dmq1', 'iqmp'.
+ *
+ * Don't use :-)) (It's up to you)
*/
static VALUE
ossl_rsa_get_params(VALUE self)
@@ -435,16 +456,18 @@ ossl_rsa_get_params(VALUE self)
rb_hash_aset(hash, rb_str_new2("dmp1"), ossl_bn_new(pkey->pkey.rsa->dmp1));
rb_hash_aset(hash, rb_str_new2("dmq1"), ossl_bn_new(pkey->pkey.rsa->dmq1));
rb_hash_aset(hash, rb_str_new2("iqmp"), ossl_bn_new(pkey->pkey.rsa->iqmp));
-
+
return hash;
}
/*
- * call-seq:
- * rsa.to_text -> aString
+ * call-seq:
+ * rsa.to_text => String
+ *
+ * THIS METHOD IS INSECURE, PRIVATE INFORMATION CAN LEAK OUT!!!
+ *
+ * Dumps all parameters of a keypair to a String
*
- * Prints all parameters of key to buffer
- * INSECURE: PRIVATE INFORMATIONS CAN LEAK OUT!!!
* Don't use :-)) (It's up to you)
*/
static VALUE
@@ -468,10 +491,10 @@ ossl_rsa_to_text(VALUE self)
}
/*
- * call-seq:
- * rsa.public_key -> aRSA
+ * call-seq:
+ * rsa.public_key -> RSA
*
- * Makes new instance RSA PUBLIC_KEY from PRIVATE_KEY
+ * Makes new RSA instance containing the public key from the private key.
*/
static VALUE
ossl_rsa_to_public_key(VALUE self)
@@ -479,7 +502,7 @@ ossl_rsa_to_public_key(VALUE self)
EVP_PKEY *pkey;
RSA *rsa;
VALUE obj;
-
+
GetPKeyRSA(self, pkey);
/* err check performed by rsa_instance */
rsa = RSAPublicKey_dup(pkey->pkey.rsa);
@@ -498,7 +521,7 @@ static VALUE
ossl_rsa_blinding_on(VALUE self)
{
EVP_PKEY *pkey;
-
+
GetPKeyRSA(self, pkey);
if (RSA_blinding_on(pkey->pkey.rsa, ossl_bn_ctx) != 1) {
@@ -511,7 +534,7 @@ static VALUE
ossl_rsa_blinding_off(VALUE self)
{
EVP_PKEY *pkey;
-
+
GetPKeyRSA(self, pkey);
RSA_blinding_off(pkey->pkey.rsa);
@@ -536,18 +559,34 @@ OSSL_PKEY_BN(rsa, iqmp)
void
Init_ossl_rsa()
{
-#if 0 /* let rdoc know about mOSSL and mPKey */
- mOSSL = rb_define_module("OpenSSL");
+#if 0
+ mOSSL = rb_define_module("OpenSSL"); /* let rdoc know about mOSSL and mPKey */
mPKey = rb_define_module_under(mOSSL, "PKey");
#endif
+ /* Document-class: OpenSSL::PKey::RSAError
+ *
+ * Generic exception that is raised if an operation on an RSA PKey
+ * fails unexpectedly or in case an instantiation of an instance of RSA
+ * fails due to non-conformant input data.
+ */
eRSAError = rb_define_class_under(mPKey, "RSAError", ePKeyError);
+ /* Document-class: OpenSSL::PKey::RSA
+ *
+ * RSA is an asymmetric public key algorithm that has been formalized in
+ * RFC 3447. It is in widespread use in public key infrastuctures (PKI)
+ * where certificates (cf. OpenSSL::X509::Certificate) often are issued
+ * on the basis of a public/private RSA key pair. RSA is used in a wide
+ * field of applications such as secure (symmetric) key exchange, e.g.
+ * when establishing a secure TLS/SSL connection. It is also used in
+ * various digital signature schemes.
+ */
cRSA = rb_define_class_under(mPKey, "RSA", cPKey);
rb_define_singleton_method(cRSA, "generate", ossl_rsa_s_generate, -1);
rb_define_method(cRSA, "initialize", ossl_rsa_initialize, -1);
-
+
rb_define_method(cRSA, "public?", ossl_rsa_is_public, 0);
rb_define_method(cRSA, "private?", ossl_rsa_is_private, 0);
rb_define_method(cRSA, "to_text", ossl_rsa_to_text, 0);
diff --git a/ext/openssl/ossl_rand.c b/ext/openssl/ossl_rand.c
index af61fe33a0..270a4b7437 100644
--- a/ext/openssl/ossl_rand.c
+++ b/ext/openssl/ossl_rand.c
@@ -37,7 +37,7 @@ static VALUE
ossl_rand_seed(VALUE self, VALUE str)
{
StringValue(str);
- RAND_seed(RSTRING_PTR(str), RSTRING_LEN(str));
+ RAND_seed(RSTRING_PTR(str), RSTRING_LENINT(str));
return str;
}
@@ -51,7 +51,7 @@ static VALUE
ossl_rand_add(VALUE self, VALUE str, VALUE entropy)
{
StringValue(str);
- RAND_add(RSTRING_PTR(str), RSTRING_LEN(str), NUM2DBL(entropy));
+ RAND_add(RSTRING_PTR(str), RSTRING_LENINT(str), NUM2DBL(entropy));
return self;
}
@@ -65,7 +65,7 @@ static VALUE
ossl_rand_load_file(VALUE self, VALUE filename)
{
SafeStringValue(filename);
-
+
if(!RAND_load_file(RSTRING_PTR(filename), -1)) {
ossl_raise(eRandomError, NULL);
}
@@ -134,7 +134,7 @@ static VALUE
ossl_rand_egd(VALUE self, VALUE filename)
{
SafeStringValue(filename);
-
+
if(!RAND_egd(RSTRING_PTR(filename))) {
ossl_raise(eRandomError, NULL);
}
@@ -149,7 +149,7 @@ ossl_rand_egd(VALUE self, VALUE filename)
static VALUE
ossl_rand_egd_bytes(VALUE self, VALUE filename, VALUE len)
{
- long n = NUM2INT(len);
+ int n = NUM2INT(len);
SafeStringValue(filename);
@@ -172,8 +172,8 @@ ossl_rand_status(VALUE self)
}
#define DEFMETH(class, name, func, argc) \
- rb_define_method(class, name, func, argc); \
- rb_define_singleton_method(class, name, func, argc);
+ rb_define_method((class), (name), (func), (argc)); \
+ rb_define_singleton_method((class), (name), (func), (argc));
/*
* INIT
@@ -181,14 +181,14 @@ ossl_rand_status(VALUE self)
void
Init_ossl_rand()
{
-#if 0 /* let rdoc know about mOSSL */
- mOSSL = rb_define_module("OpenSSL");
+#if 0
+ mOSSL = rb_define_module("OpenSSL"); /* let rdoc know about mOSSL */
#endif
mRandom = rb_define_module_under(mOSSL, "Random");
-
+
eRandomError = rb_define_class_under(mRandom, "RandomError", eOSSLError);
-
+
DEFMETH(mRandom, "seed", ossl_rand_seed, 1);
DEFMETH(mRandom, "random_add", ossl_rand_add, 2);
DEFMETH(mRandom, "load_random_file", ossl_rand_load_file, 1);
@@ -196,7 +196,7 @@ Init_ossl_rand()
DEFMETH(mRandom, "random_bytes", ossl_rand_bytes, 1);
DEFMETH(mRandom, "pseudo_bytes", ossl_rand_pseudo_bytes, 1);
DEFMETH(mRandom, "egd", ossl_rand_egd, 1);
- DEFMETH(mRandom, "egd_bytes", ossl_rand_egd_bytes, 2);
+ DEFMETH(mRandom, "egd_bytes", ossl_rand_egd_bytes, 2);
DEFMETH(mRandom, "status?", ossl_rand_status, 0)
}
diff --git a/ext/openssl/ossl_ssl.c b/ext/openssl/ossl_ssl.c
index 6a3e200ee7..2b52bf07c3 100644
--- a/ext/openssl/ossl_ssl.c
+++ b/ext/openssl/ossl_ssl.c
@@ -16,12 +16,12 @@
# include <unistd.h> /* for read(), and write() */
#endif
-#define numberof(ary) (sizeof(ary)/sizeof(ary[0]))
+#define numberof(ary) (int)(sizeof(ary)/sizeof((ary)[0]))
#ifdef _WIN32
# define TO_SOCKET(s) _get_osfhandle(s)
#else
-# define TO_SOCKET(s) s
+# define TO_SOCKET(s) (s)
#endif
VALUE mSSL;
@@ -91,7 +91,7 @@ static const char *ossl_ssl_attrs[] = {
#ifdef HAVE_SSL_SET_TLSEXT_HOST_NAME
"hostname",
#endif
- "sync_close",
+ "sync_close",
};
ID ID_callback_state;
@@ -103,13 +103,16 @@ struct {
const char *name;
SSL_METHOD *(*func)(void);
} ossl_ssl_method_tab[] = {
-#define OSSL_SSL_METHOD_ENTRY(name) { #name, name##_method }
+#define OSSL_SSL_METHOD_ENTRY(name) { #name, (SSL_METHOD *(*)(void))name##_method }
OSSL_SSL_METHOD_ENTRY(TLSv1),
OSSL_SSL_METHOD_ENTRY(TLSv1_server),
OSSL_SSL_METHOD_ENTRY(TLSv1_client),
+#if defined(HAVE_SSLV2_METHOD) && defined(HAVE_SSLV2_SERVER_METHOD) && \
+ defined(HAVE_SSLV2_CLIENT_METHOD)
OSSL_SSL_METHOD_ENTRY(SSLv2),
OSSL_SSL_METHOD_ENTRY(SSLv2_server),
OSSL_SSL_METHOD_ENTRY(SSLv2_client),
+#endif
OSSL_SSL_METHOD_ENTRY(SSLv3),
OSSL_SSL_METHOD_ENTRY(SSLv3_server),
OSSL_SSL_METHOD_ENTRY(SSLv3_client),
@@ -137,16 +140,27 @@ static VALUE
ossl_sslctx_s_alloc(VALUE klass)
{
SSL_CTX *ctx;
+ long mode = SSL_MODE_ENABLE_PARTIAL_WRITE;
+
+#ifdef SSL_MODE_RELEASE_BUFFERS
+ mode |= SSL_MODE_RELEASE_BUFFERS;
+#endif
ctx = SSL_CTX_new(SSLv23_method());
if (!ctx) {
ossl_raise(eSSLError, "SSL_CTX_new:");
}
- SSL_CTX_set_mode(ctx, SSL_MODE_ENABLE_PARTIAL_WRITE);
- SSL_CTX_set_options(ctx, SSL_OP_ALL);
+ SSL_CTX_set_mode(ctx, mode);
return Data_Wrap_Struct(klass, 0, ossl_sslctx_free, ctx);
}
+/*
+ * call-seq:
+ * ctx.ssl_version = :TLSv1
+ * ctx.ssl_version = "SSLv23_client"
+ *
+ * You can get a list of valid versions with OpenSSL::SSL::SSLContext::METHODS
+ */
static VALUE
ossl_sslctx_set_ssl_version(VALUE self, VALUE ssl_method)
{
@@ -225,13 +239,12 @@ ossl_call_client_cert_cb(VALUE obj)
static int
ossl_client_cert_cb(SSL *ssl, X509 **x509, EVP_PKEY **pkey)
{
- VALUE obj;
- int status, success;
+ VALUE obj, success;
obj = (VALUE)SSL_get_ex_data(ssl, ossl_ssl_ex_ptr_idx);
success = rb_protect((VALUE(*)_((VALUE)))ossl_call_client_cert_cb,
- obj, &status);
- if (status || !success) return 0;
+ obj, NULL);
+ if (!RTEST(success)) return 0;
*x509 = DupX509CertPtr(ossl_ssl_get_x509(obj));
*pkey = DupPKeyPtr(ossl_ssl_get_key(obj));
@@ -260,15 +273,14 @@ ossl_call_tmp_dh_callback(VALUE *args)
static DH*
ossl_tmp_dh_callback(SSL *ssl, int is_export, int keylength)
{
- VALUE args[3];
- int status, success;
+ VALUE args[3], success;
args[0] = (VALUE)SSL_get_ex_data(ssl, ossl_ssl_ex_ptr_idx);
args[1] = INT2FIX(is_export);
args[2] = INT2FIX(keylength);
success = rb_protect((VALUE(*)_((VALUE)))ossl_call_tmp_dh_callback,
- (VALUE)args, &status);
- if (status || !success) return NULL;
+ (VALUE)args, NULL);
+ if (!RTEST(success)) return NULL;
return GetPKeyPtr(ossl_ssl_get_tmp_dh(args[0]))->pkey.dh;
}
@@ -304,7 +316,7 @@ static VALUE
ossl_call_session_get_cb(VALUE ary)
{
VALUE ssl_obj, sslctx_obj, cb;
-
+
Check_Type(ary, T_ARRAY);
ssl_obj = rb_ary_entry(ary, 0);
@@ -351,7 +363,7 @@ static VALUE
ossl_call_session_new_cb(VALUE ary)
{
VALUE ssl_obj, sslctx_obj, cb;
-
+
Check_Type(ary, T_ARRAY);
ssl_obj = rb_ary_entry(ary, 0);
@@ -387,18 +399,23 @@ ossl_sslctx_session_new_cb(SSL *ssl, SSL_SESSION *sess)
ret_obj = rb_protect((VALUE(*)_((VALUE)))ossl_call_session_new_cb, ary, &state);
if (state) {
rb_ivar_set(ssl_obj, ID_callback_state, INT2NUM(state));
- return 0; /* what should be returned here??? */
}
- return RTEST(ret_obj) ? 1 : 0;
+ /*
+ * return 0 which means to OpenSSL that the the session is still
+ * valid (since we created Ruby Session object) and was not freed by us
+ * with SSL_SESSION_free(). Call SSLContext#remove_session(sess) in
+ * session_get_cb block if you don't want OpenSSL to cache the session
+ * internally.
+ */
+ return 0;
}
-#if 0 /* unused */
static VALUE
ossl_call_session_remove_cb(VALUE ary)
{
VALUE sslctx_obj, cb;
-
+
Check_Type(ary, T_ARRAY);
sslctx_obj = rb_ary_entry(ary, 0);
@@ -407,7 +424,6 @@ ossl_call_session_remove_cb(VALUE ary)
return rb_funcall(cb, rb_intern("call"), 1, ary);
}
-#endif
static void
ossl_sslctx_session_remove_cb(SSL_CTX *ctx, SSL_SESSION *sess)
@@ -429,7 +445,7 @@ ossl_sslctx_session_remove_cb(SSL_CTX *ctx, SSL_SESSION *sess)
rb_ary_push(ary, sslctx_obj);
rb_ary_push(ary, sess_obj);
- ret_obj = rb_protect((VALUE(*)_((VALUE)))ossl_call_session_new_cb, ary, &state);
+ ret_obj = rb_protect((VALUE(*)_((VALUE)))ossl_call_session_remove_cb, ary, &state);
if (state) {
/*
the SSL_CTX is frozen, nowhere to save state.
@@ -480,7 +496,7 @@ ossl_call_servername_cb(VALUE ary)
Data_Get_Struct(ret_obj, SSL_CTX, ctx2);
SSL_set_SSL_CTX(ssl, ctx2);
} else if (!NIL_P(ret_obj)) {
- rb_raise(rb_eArgError, "servername_cb must return an OpenSSL::SSL::SSLContext object or nil");
+ ossl_raise(rb_eArgError, "servername_cb must return an OpenSSL::SSL::SSLContext object or nil");
}
return ret_obj;
@@ -520,7 +536,8 @@ ssl_servername_cb(SSL *ssl, int *ad, void *arg)
* ctx.setup => nil # thereafter
*
* This method is called automatically when a new SSLSocket is created.
- * Normally you do not need to call this method (unless you are writing an extension in C).
+ * Normally you do not need to call this method (unless you are writing an
+ * extension in C).
*/
static VALUE
ossl_sslctx_setup(VALUE self)
@@ -622,17 +639,22 @@ ossl_sslctx_setup(VALUE self)
if(!NIL_P(val)) SSL_CTX_set_timeout(ctx, NUM2LONG(val));
val = ossl_sslctx_get_verify_dep(self);
- if(!NIL_P(val)) SSL_CTX_set_verify_depth(ctx, NUM2LONG(val));
+ if(!NIL_P(val)) SSL_CTX_set_verify_depth(ctx, NUM2INT(val));
val = ossl_sslctx_get_options(self);
- if(!NIL_P(val)) SSL_CTX_set_options(ctx, NUM2LONG(val));
+ if(!NIL_P(val)) {
+ SSL_CTX_set_options(ctx, NUM2LONG(val));
+ }
+ else {
+ SSL_CTX_set_options(ctx, SSL_OP_ALL);
+ }
rb_obj_freeze(self);
val = ossl_sslctx_get_sess_id_ctx(self);
if (!NIL_P(val)){
StringValue(val);
if (!SSL_CTX_set_session_id_context(ctx, (unsigned char *)RSTRING_PTR(val),
- RSTRING_LEN(val))){
+ RSTRING_LENINT(val))){
ossl_raise(eSSLError, "SSL_CTX_set_session_id_context:");
}
}
@@ -680,6 +702,8 @@ ossl_ssl_cipher_to_ary(SSL_CIPHER *cipher)
/*
* call-seq:
* ctx.ciphers => [[name, version, bits, alg_bits], ...]
+ *
+ * The list of ciphers configured for this context.
*/
static VALUE
ossl_sslctx_get_ciphers(VALUE self)
@@ -700,10 +724,10 @@ ossl_sslctx_get_ciphers(VALUE self)
if (!ciphers)
return rb_ary_new();
- num = sk_num((STACK*)ciphers);
+ num = sk_SSL_CIPHER_num(ciphers);
ary = rb_ary_new2(num);
for(i = 0; i < num; i++){
- cipher = (SSL_CIPHER*)sk_value((STACK*)ciphers, i);
+ cipher = sk_SSL_CIPHER_value(ciphers, i);
rb_ary_push(ary, ossl_ssl_cipher_to_ary(cipher));
}
return ary;
@@ -714,6 +738,12 @@ ossl_sslctx_get_ciphers(VALUE self)
* ctx.ciphers = "cipher1:cipher2:..."
* ctx.ciphers = [name, ...]
* ctx.ciphers = [[name, version, bits, alg_bits], ...]
+ *
+ * Sets the list of available ciphers for this context. Note in a server
+ * context some ciphers require the appropriate certificates. For example, an
+ * RSA cipher can only be chosen when an RSA certificate is available.
+ *
+ * See also OpenSSL::Cipher and OpenSSL::Cipher::ciphers
*/
static VALUE
ossl_sslctx_set_ciphers(VALUE self, VALUE v)
@@ -756,6 +786,7 @@ ossl_sslctx_set_ciphers(VALUE self, VALUE v)
* call-seq:
* ctx.session_add(session) -> true | false
*
+ * Adds +session+ to the session cache
*/
static VALUE
ossl_sslctx_session_add(VALUE self, VALUE arg)
@@ -773,6 +804,7 @@ ossl_sslctx_session_add(VALUE self, VALUE arg)
* call-seq:
* ctx.session_remove(session) -> true | false
*
+ * Removes +session+ from the session cache
*/
static VALUE
ossl_sslctx_session_remove(VALUE self, VALUE arg)
@@ -788,8 +820,9 @@ ossl_sslctx_session_remove(VALUE self, VALUE arg)
/*
* call-seq:
- * ctx.session_cache_mode -> integer
+ * ctx.session_cache_mode -> Integer
*
+ * The current session cache mode.
*/
static VALUE
ossl_sslctx_get_session_cache_mode(VALUE self)
@@ -803,8 +836,11 @@ ossl_sslctx_get_session_cache_mode(VALUE self)
/*
* call-seq:
- * ctx.session_cache_mode=(integer) -> integer
+ * ctx.session_cache_mode=(integer) -> Integer
*
+ * Sets the SSL session cache mode. Bitwise-or together the desired
+ * SESSION_CACHE_* constants to set. See SSL_CTX_set_session_cache_mode(3) for
+ * details.
*/
static VALUE
ossl_sslctx_set_session_cache_mode(VALUE self, VALUE arg)
@@ -820,8 +856,10 @@ ossl_sslctx_set_session_cache_mode(VALUE self, VALUE arg)
/*
* call-seq:
- * ctx.session_cache_size -> integer
+ * ctx.session_cache_size -> Integer
*
+ * Returns the current session cache size. Zero is used to represent an
+ * unlimited cache size.
*/
static VALUE
ossl_sslctx_get_session_cache_size(VALUE self)
@@ -835,8 +873,10 @@ ossl_sslctx_get_session_cache_size(VALUE self)
/*
* call-seq:
- * ctx.session_cache_size=(integer) -> integer
+ * ctx.session_cache_size=(integer) -> Integer
*
+ * Sets the session cache size. Returns the previously valid session cache
+ * size. Zero is used to represent an unlimited session cache size.
*/
static VALUE
ossl_sslctx_set_session_cache_size(VALUE self, VALUE arg)
@@ -854,6 +894,23 @@ ossl_sslctx_set_session_cache_size(VALUE self, VALUE arg)
* call-seq:
* ctx.session_cache_stats -> Hash
*
+ * Returns a Hash containing the following keys:
+ *
+ * :accept:: Number of started SSL/TLS handshakes in server mode
+ * :accept_good:: Number of established SSL/TLS sessions in server mode
+ * :accept_renegotiate:: Number of start renegotiations in server mode
+ * :cache_full:: Number of sessions that were removed due to cache overflow
+ * :cache_hits:: Number of successfully reused connections
+ * :cache_misses:: Number of sessions proposed by clients that were not found
+ * in the cache
+ * :cache_num:: Number of sessions in the internal session cache
+ * :cb_hits:: Number of sessions retrieved from the external cache in server
+ * mode
+ * :connect:: Number of started SSL/TLS handshakes in client mode
+ * :connect_good:: Number of established SSL/TLS sessions in client mode
+ * :connect_renegotiate:: Number of start renegotiations in client mode
+ * :timeouts:: Number of sessions proposed by clients that were found in the
+ * cache but had expired due to timeouts
*/
static VALUE
ossl_sslctx_get_session_cache_stats(VALUE self)
@@ -885,6 +942,7 @@ ossl_sslctx_get_session_cache_stats(VALUE self)
* call-seq:
* ctx.flush_sessions(time | nil) -> self
*
+ * Removes sessions in the internal cache that have expired at +time+.
*/
static VALUE
ossl_sslctx_flush_sessions(int argc, VALUE *argv, VALUE self)
@@ -902,7 +960,7 @@ ossl_sslctx_flush_sessions(int argc, VALUE *argv, VALUE self)
} else if (rb_obj_is_instance_of(arg1, rb_cTime)) {
tm = NUM2LONG(rb_funcall(arg1, rb_intern("to_i"), 0));
} else {
- rb_raise(rb_eArgError, "arg must be Time or nil");
+ ossl_raise(rb_eArgError, "arg must be Time or nil");
}
SSL_CTX_flush_sessions(ctx, (long)tm);
@@ -916,9 +974,21 @@ ossl_sslctx_flush_sessions(int argc, VALUE *argv, VALUE self)
static void
ossl_ssl_shutdown(SSL *ssl)
{
+ int i, rc;
+
if (ssl) {
- SSL_shutdown(ssl);
- SSL_clear(ssl);
+ /* 4 is from SSL_smart_shutdown() of mod_ssl.c (v2.2.19) */
+ /* It says max 2x pending + 2x data = 4 */
+ for (i = 0; i < 4; ++i) {
+ /*
+ * Ignore the case SSL_shutdown returns -1. Empty handshake_func
+ * must not happen.
+ */
+ if (rc = SSL_shutdown(ssl))
+ break;
+ }
+ ERR_clear_error();
+ SSL_clear(ssl);
}
}
@@ -940,9 +1010,11 @@ ossl_ssl_s_alloc(VALUE klass)
* SSLSocket.new(io) => aSSLSocket
* SSLSocket.new(io, ctx) => aSSLSocket
*
- * === Parameters
- * * +io+ is a real ruby IO object. Not an IO like object that responds to read/write.
- * * +ctx+ is an OpenSSLSSL::SSLContext.
+ * Creates a new SSL socket from +io+ which must be a real ruby object (not an
+ * IO-like object that responds to read/write.
+ *
+ * If +ctx+ is provided the SSL Sockets initial params will be taken from
+ * the context.
*
* The OpenSSL::Buffering module provides additional IO methods.
*
@@ -963,6 +1035,9 @@ ossl_ssl_initialize(int argc, VALUE *argv, VALUE self)
ossl_ssl_set_ctx(self, ctx);
ossl_ssl_set_sync_close(self, Qfalse);
ossl_sslctx_setup(ctx);
+
+ rb_iv_set(self, "@hostname", Qnil);
+
rb_call_super(0, 0);
return self;
@@ -1015,9 +1090,9 @@ ossl_ssl_setup(VALUE self)
}
#ifdef _WIN32
-#define ssl_get_error(ssl, ret) (errno = WSAGetLastError(), SSL_get_error(ssl, ret))
+#define ssl_get_error(ssl, ret) (errno = rb_w32_map_errno(WSAGetLastError()), SSL_get_error((ssl), (ret)))
#else
-#define ssl_get_error(ssl, ret) SSL_get_error(ssl, ret)
+#define ssl_get_error(ssl, ret) SSL_get_error((ssl), (ret))
#endif
static void
@@ -1085,6 +1160,9 @@ ossl_start_ssl(VALUE self, int (*func)(), const char *funcname, int nonblock)
/*
* call-seq:
* ssl.connect => self
+ *
+ * Initiates an SSL/TLS handshake with a server. The handshake may be started
+ * after unencrypted data has been sent over the socket.
*/
static VALUE
ossl_ssl_connect(VALUE self)
@@ -1097,7 +1175,7 @@ ossl_ssl_connect(VALUE self)
* call-seq:
* ssl.connect_nonblock => self
*
- * initiate the TLS/SSL handshake as a client in non-blocking manner.
+ * Initiates the SSL/TLS handshake as a client in non-blocking manner.
*
* # emulates blocking connect
* begin
@@ -1121,6 +1199,9 @@ ossl_ssl_connect_nonblock(VALUE self)
/*
* call-seq:
* ssl.accept => self
+ *
+ * Waits for a SSL/TLS client to initiate a handshake. The handshake may be
+ * started after unencrypted data has been sent over the socket.
*/
static VALUE
ossl_ssl_accept(VALUE self)
@@ -1133,7 +1214,7 @@ ossl_ssl_accept(VALUE self)
* call-seq:
* ssl.accept_nonblock => self
*
- * initiate the TLS/SSL handshake as a server in non-blocking manner.
+ * Initiates the SSL/TLS handshake as a server in non-blocking manner.
*
* # emulates blocking accept
* begin
@@ -1178,7 +1259,7 @@ ossl_ssl_read_internal(int argc, VALUE *argv, VALUE self, int nonblock)
if(!nonblock && SSL_pending(ssl) <= 0)
rb_thread_wait_fd(FPTR_TO_FD(fptr));
for (;;){
- nread = SSL_read(ssl, RSTRING_PTR(str), RSTRING_LEN(str));
+ nread = SSL_read(ssl, RSTRING_PTR(str), RSTRING_LENINT(str));
switch(ssl_get_error(ssl, nread)){
case SSL_ERROR_NONE:
goto end;
@@ -1219,9 +1300,8 @@ ossl_ssl_read_internal(int argc, VALUE *argv, VALUE self, int nonblock)
* ssl.sysread(length) => string
* ssl.sysread(length, buffer) => buffer
*
- * === Parameters
- * * +length+ is a positive integer.
- * * +buffer+ is a string used to store the result.
+ * Reads +length+ bytes from the SSL connection. If a pre-allocated +buffer+
+ * is provided the data will be written into it.
*/
static VALUE
ossl_ssl_read(int argc, VALUE *argv, VALUE self)
@@ -1234,9 +1314,11 @@ ossl_ssl_read(int argc, VALUE *argv, VALUE self)
* ssl.sysread_nonblock(length) => string
* ssl.sysread_nonblock(length, buffer) => buffer
*
- * === Parameters
- * * +length+ is a positive integer.
- * * +buffer+ is a string used to store the result.
+ * A non-blocking version of #sysread. Raises an SSLError if reading would
+ * block.
+ *
+ * Reads +length+ bytes from the SSL connection. If a pre-allocated +buffer+
+ * is provided the data will be written into it.
*/
static VALUE
ossl_ssl_read_nonblock(int argc, VALUE *argv, VALUE self)
@@ -1257,7 +1339,7 @@ ossl_ssl_write_internal(VALUE self, VALUE str, int nonblock)
if (ssl) {
for (;;){
- nwrite = SSL_write(ssl, RSTRING_PTR(str), RSTRING_LEN(str));
+ nwrite = SSL_write(ssl, RSTRING_PTR(str), RSTRING_LENINT(str));
switch(ssl_get_error(ssl, nwrite)){
case SSL_ERROR_NONE:
goto end;
@@ -1288,7 +1370,9 @@ ossl_ssl_write_internal(VALUE self, VALUE str, int nonblock)
/*
* call-seq:
- * ssl.syswrite(string) => integer
+ * ssl.syswrite(string) => Integer
+ *
+ * Writes +string+ to the SSL connection.
*/
static VALUE
ossl_ssl_write(VALUE self, VALUE str)
@@ -1298,7 +1382,10 @@ ossl_ssl_write(VALUE self, VALUE str)
/*
* call-seq:
- * ssl.syswrite_nonblock(string) => integer
+ * ssl.syswrite_nonblock(string) => Integer
+ *
+ * Writes +string+ to the SSL connection in a non-blocking manner. Raises an
+ * SSLError if writing would block.
*/
static VALUE
ossl_ssl_write_nonblock(VALUE self, VALUE str)
@@ -1309,6 +1396,8 @@ ossl_ssl_write_nonblock(VALUE self, VALUE str)
/*
* call-seq:
* ssl.sysclose => nil
+ *
+ * Shuts down the SSL connection and prepares it for another connection.
*/
static VALUE
ossl_ssl_close(VALUE self)
@@ -1326,6 +1415,8 @@ ossl_ssl_close(VALUE self)
/*
* call-seq:
* ssl.cert => cert or nil
+ *
+ * The X509 certificate for this socket endpoint.
*/
static VALUE
ossl_ssl_get_cert(VALUE self)
@@ -1334,7 +1425,7 @@ ossl_ssl_get_cert(VALUE self)
X509 *cert = NULL;
Data_Get_Struct(self, SSL, ssl);
- if (ssl) {
+ if (!ssl) {
rb_warning("SSL session is not started yet.");
return Qnil;
}
@@ -1354,6 +1445,8 @@ ossl_ssl_get_cert(VALUE self)
/*
* call-seq:
* ssl.peer_cert => cert or nil
+ *
+ * The X509 certificate for this socket's peer.
*/
static VALUE
ossl_ssl_get_peer_cert(VALUE self)
@@ -1383,6 +1476,8 @@ ossl_ssl_get_peer_cert(VALUE self)
/*
* call-seq:
* ssl.peer_cert_chain => [cert, ...] or nil
+ *
+ * The X509 certificate chain for this socket's peer.
*/
static VALUE
ossl_ssl_get_peer_cert_chain(VALUE self)
@@ -1400,10 +1495,10 @@ ossl_ssl_get_peer_cert_chain(VALUE self)
}
chain = SSL_get_peer_cert_chain(ssl);
if(!chain) return Qnil;
- num = sk_num(chain);
+ num = sk_X509_num(chain);
ary = rb_ary_new2(num);
for (i = 0; i < num; i++){
- cert = (X509*)sk_value(chain, i);
+ cert = sk_X509_value(chain, i);
rb_ary_push(ary, ossl_x509_new(cert));
}
@@ -1413,6 +1508,8 @@ ossl_ssl_get_peer_cert_chain(VALUE self)
/*
* call-seq:
* ssl.cipher => [name, version, bits, alg_bits]
+ *
+ * The cipher being used for the current connection
*/
static VALUE
ossl_ssl_get_cipher(VALUE self)
@@ -1425,7 +1522,7 @@ ossl_ssl_get_cipher(VALUE self)
rb_warning("SSL session is not started yet.");
return Qnil;
}
- cipher = SSL_get_current_cipher(ssl);
+ cipher = (SSL_CIPHER *)SSL_get_current_cipher(ssl);
return ossl_ssl_cipher_to_ary(cipher);
}
@@ -1433,6 +1530,8 @@ ossl_ssl_get_cipher(VALUE self)
/*
* call-seq:
* ssl.state => string
+ *
+ * A description of the current connection state.
*/
static VALUE
ossl_ssl_get_state(VALUE self)
@@ -1455,7 +1554,9 @@ ossl_ssl_get_state(VALUE self)
/*
* call-seq:
- * ssl.pending => integer
+ * ssl.pending => Integer
+ *
+ * The number of bytes that are immediately available for reading
*/
static VALUE
ossl_ssl_pending(VALUE self)
@@ -1472,9 +1573,10 @@ ossl_ssl_pending(VALUE self)
}
/*
- * call-seq:
- * ssl.session_reused? -> true | false
+ * call-seq:
+ * ssl.session_reused? -> true | false
*
+ * Returns true if a reused session was negotiated during the handshake.
*/
static VALUE
ossl_ssl_session_reused(VALUE self)
@@ -1495,9 +1597,10 @@ ossl_ssl_session_reused(VALUE self)
}
/*
- * call-seq:
- * ssl.session = session -> session
+ * call-seq:
+ * ssl.session = session -> session
*
+ * Sets the Session to be used when the connection is established.
*/
static VALUE
ossl_ssl_set_session(VALUE self, VALUE arg1)
@@ -1522,6 +1625,15 @@ ossl_ssl_set_session(VALUE self, VALUE arg1)
return arg1;
}
+/*
+ * call-seq:
+ * ssl.verify_result => Integer
+ *
+ * Returns the result of the peer certificates verification. See verify(1)
+ * for error values and descriptions.
+ *
+ * If no peer certificate was presented X509_V_OK is returned.
+ */
static VALUE
ossl_ssl_get_verify_result(VALUE self)
{
@@ -1536,14 +1648,41 @@ ossl_ssl_get_verify_result(VALUE self)
return INT2FIX(SSL_get_verify_result(ssl));
}
+/*
+ * call-seq:
+ * ssl.client_ca => [x509name, ...]
+ *
+ * Returns the list of client CAs. Please note that in contrast to
+ * SSLContext#client_ca= no array of X509::Certificate is returned but
+ * X509::Name instances of the CA's subject distinguished name.
+ *
+ * In server mode, returns the list set by SSLContext#client_ca=.
+ * In client mode, returns the list of client CAs sent from the server.
+ */
+static VALUE
+ossl_ssl_get_client_ca_list(VALUE self)
+{
+ SSL *ssl;
+ STACK_OF(X509_NAME) *ca;
+
+ Data_Get_Struct(self, SSL, ssl);
+ if (!ssl) {
+ rb_warning("SSL session is not started yet.");
+ return Qnil;
+ }
+
+ ca = SSL_get_client_CA_list(ssl);
+ return ossl_x509name_sk2ary(ca);
+}
+
void
Init_ossl_ssl()
{
int i;
VALUE ary;
-#if 0 /* let rdoc know about mOSSL */
- mOSSL = rb_define_module("OpenSSL");
+#if 0
+ mOSSL = rb_define_module("OpenSSL"); /* let rdoc know about mOSSL */
#endif
ID_callback_state = rb_intern("@callback_state");
@@ -1561,19 +1700,163 @@ Init_ossl_ssl()
Init_ossl_ssl_session();
- /* class SSLContext
+ /* Document-class: OpenSSL::SSL::SSLContext
*
- * The following attributes are available but don't show up in rdoc.
- * All attributes must be set before calling SSLSocket.new(io, ctx).
+ * An SSLContext is used to set various options regarding certificates,
+ * algorithms, verification, session caching, etc. The SSLContext is
+ * used to create an SSLSocket.
+ *
+ * All attributes must be set before creating an SSLSocket as the
+ * SSLContext will be frozen afterward.
+ *
+ * The following attributes are available but don't show up in rdoc:
* * ssl_version, cert, key, client_ca, ca_file, ca_path, timeout,
* * verify_mode, verify_depth client_cert_cb, tmp_dh_callback,
* * session_id_context, session_add_cb, session_new_cb, session_remove_cb
*/
cSSLContext = rb_define_class_under(mSSL, "SSLContext", rb_cObject);
rb_define_alloc_func(cSSLContext, ossl_sslctx_s_alloc);
- for(i = 0; i < numberof(ossl_sslctx_attrs); i++)
- rb_attr(cSSLContext, rb_intern(ossl_sslctx_attrs[i]), 1, 1, Qfalse);
+
+ /*
+ * Context certificate
+ */
+ rb_attr(cSSLContext, rb_intern("cert"), 1, 1, Qfalse);
+
+ /*
+ * Context private key
+ */
+ rb_attr(cSSLContext, rb_intern("key"), 1, 1, Qfalse);
+
+ /*
+ * A certificate or Array of certificates that will be sent to the client.
+ */
+ rb_attr(cSSLContext, rb_intern("client_ca"), 1, 1, Qfalse);
+
+ /*
+ * The path to a file containing a PEM-format CA certificate
+ */
+ rb_attr(cSSLContext, rb_intern("ca_file"), 1, 1, Qfalse);
+
+ /*
+ * The path to a directory containing CA certificates in PEM format.
+ *
+ * Files are looked up by subject's X509 name's hash value.
+ */
+ rb_attr(cSSLContext, rb_intern("ca_path"), 1, 1, Qfalse);
+
+ /*
+ * Maximum session lifetime.
+ */
+ rb_attr(cSSLContext, rb_intern("timeout"), 1, 1, Qfalse);
+
+ /*
+ * Session verification mode.
+ *
+ * Valid modes are VERIFY_NONE, VERIFY_PEER, VERIFY_CLIENT_ONCE,
+ * VERIFY_FAIL_IF_NO_PEER_CERT and defined on OpenSSL::SSL
+ */
+ rb_attr(cSSLContext, rb_intern("verify_mode"), 1, 1, Qfalse);
+
+ /*
+ * Number of CA certificates to walk when verifying a certificate chain.
+ */
+ rb_attr(cSSLContext, rb_intern("verify_depth"), 1, 1, Qfalse);
+
+ /*
+ * A callback for additional certificate verification. The callback is
+ * invoked for each certificate in the chain.
+ *
+ * The callback is invoked with two values. +preverify_ok+ indicates
+ * indicates if the verification was passed (true) or not (false).
+ * +store_context+ is an OpenSSL::X509::StoreContext containing the
+ * context used for certificate verification.
+ *
+ * If the callback returns false verification is stopped.
+ */
+ rb_attr(cSSLContext, rb_intern("verify_callback"), 1, 1, Qfalse);
+
+ /*
+ * Sets various OpenSSL options.
+ */
+ rb_attr(cSSLContext, rb_intern("options"), 1, 1, Qfalse);
+
+ /*
+ * An OpenSSL::X509::Store used for certificate verification
+ */
+ rb_attr(cSSLContext, rb_intern("cert_store"), 1, 1, Qfalse);
+
+ /*
+ * An Array of extra X509 certificates to be added to the certificate
+ * chain.
+ */
+ rb_attr(cSSLContext, rb_intern("extra_chain_cert"), 1, 1, Qfalse);
+
+ /*
+ * A callback invoked when a client certificate is requested by a server
+ * and no certificate has been set.
+ *
+ * The callback is invoked with a Session and must return an Array
+ * containing an OpenSSL::X509::Certificate and an OpenSSL::PKey. If any
+ * other value is returned the handshake is suspended.
+ */
+ rb_attr(cSSLContext, rb_intern("client_cert_cb"), 1, 1, Qfalse);
+
+ /*
+ * A callback invoked when DH parameters are required.
+ *
+ * The callback is invoked with the Session for the key exchange, an
+ * flag indicating the use of an export cipher and the keylength
+ * required.
+ *
+ * The callback must return an OpenSSL::PKey::DH instance of the correct
+ * key length.
+ */
+ rb_attr(cSSLContext, rb_intern("tmp_dh_callback"), 1, 1, Qfalse);
+
+ /*
+ * Sets the context in which a session can be reused. This allows
+ * sessions for multiple applications to be distinguished, for exapmle, by
+ * name.
+ */
+ rb_attr(cSSLContext, rb_intern("session_id_context"), 1, 1, Qfalse);
+
+ /*
+ * A callback invoked on a server when a session is proposed by the client
+ * but the session could not be found in the server's internal cache.
+ *
+ * The callback is invoked with the SSLSocket and session id. The
+ * callback may return a Session from an external cache.
+ */
+ rb_attr(cSSLContext, rb_intern("session_get_cb"), 1, 1, Qfalse);
+
+ /*
+ * A callback invoked when a new session was negotiatied.
+ *
+ * The callback is invoked with an SSLSocket. If false is returned the
+ * session will be removed from the internal cache.
+ */
+ rb_attr(cSSLContext, rb_intern("session_new_cb"), 1, 1, Qfalse);
+
+ /*
+ * A callback invoked when a session is removed from the internal cache.
+ *
+ * The callback is invoked with an SSLContext and a Session.
+ */
+ rb_attr(cSSLContext, rb_intern("session_remove_cb"), 1, 1, Qfalse);
+
+#ifdef HAVE_SSL_SET_TLSEXT_HOST_NAME
+ /*
+ * A callback invoked at connect time to distinguish between multiple
+ * server names.
+ *
+ * The callback is invoked with an SSLSocket and a server name. The
+ * callback must return an SSLContext for the server name or nil.
+ */
+ rb_attr(cSSLContext, rb_intern("servername_cb"), 1, 1, Qfalse);
+#endif
+
rb_define_alias(cSSLContext, "ssl_timeout", "timeout");
+ rb_define_alias(cSSLContext, "ssl_timeout=", "timeout=");
rb_define_method(cSSLContext, "initialize", ossl_sslctx_initialize, -1);
rb_define_method(cSSLContext, "ssl_version=", ossl_sslctx_set_ssl_version, 1);
rb_define_method(cSSLContext, "ciphers", ossl_sslctx_get_ciphers, 0);
@@ -1581,15 +1864,54 @@ Init_ossl_ssl()
rb_define_method(cSSLContext, "setup", ossl_sslctx_setup, 0);
-
+
+ /*
+ * No session caching for client or server
+ */
rb_define_const(cSSLContext, "SESSION_CACHE_OFF", LONG2FIX(SSL_SESS_CACHE_OFF));
+
+ /*
+ * Client sessions are added to the session cache
+ */
rb_define_const(cSSLContext, "SESSION_CACHE_CLIENT", LONG2FIX(SSL_SESS_CACHE_CLIENT)); /* doesn't actually do anything in 0.9.8e */
+
+ /*
+ * Server sessions are added to the session cache
+ */
rb_define_const(cSSLContext, "SESSION_CACHE_SERVER", LONG2FIX(SSL_SESS_CACHE_SERVER));
+
+ /*
+ * Both client and server sessions are added to the session cache
+ */
rb_define_const(cSSLContext, "SESSION_CACHE_BOTH", LONG2FIX(SSL_SESS_CACHE_BOTH)); /* no different than CACHE_SERVER in 0.9.8e */
+
+ /*
+ * Normally the sesison cache is checked for expired sessions every 255
+ * connections. Since this may lead to a delay that cannot be controlled,
+ * the automatic flushing may be disabled and #flush_sessions can be
+ * called explicitly.
+ */
rb_define_const(cSSLContext, "SESSION_CACHE_NO_AUTO_CLEAR", LONG2FIX(SSL_SESS_CACHE_NO_AUTO_CLEAR));
+
+ /*
+ * Always perform external lookups of sessions even if they are in the
+ * internal cache.
+ *
+ * This flag has no effect on clients
+ */
rb_define_const(cSSLContext, "SESSION_CACHE_NO_INTERNAL_LOOKUP", LONG2FIX(SSL_SESS_CACHE_NO_INTERNAL_LOOKUP));
+
+ /*
+ * Never automatically store sessions in the internal store.
+ */
rb_define_const(cSSLContext, "SESSION_CACHE_NO_INTERNAL_STORE", LONG2FIX(SSL_SESS_CACHE_NO_INTERNAL_STORE));
+
+ /*
+ * Enables both SESSION_CACHE_NO_INTERNAL_LOOKUP and
+ * SESSION_CACHE_NO_INTERNAL_STORE.
+ */
rb_define_const(cSSLContext, "SESSION_CACHE_NO_INTERNAL", LONG2FIX(SSL_SESS_CACHE_NO_INTERNAL));
+
rb_define_method(cSSLContext, "session_add", ossl_sslctx_session_add, 1);
rb_define_method(cSSLContext, "session_remove", ossl_sslctx_session_remove, 1);
rb_define_method(cSSLContext, "session_cache_mode", ossl_sslctx_get_session_cache_mode, 0);
@@ -1604,10 +1926,11 @@ Init_ossl_ssl()
rb_ary_push(ary, ID2SYM(rb_intern(ossl_ssl_method_tab[i].name)));
}
rb_obj_freeze(ary);
- /* holds a list of available SSL/TLS methods */
+ /* The list of available SSL/TLS methods */
rb_define_const(cSSLContext, "METHODS", ary);
- /* class SSLSocket
+ /*
+ * Document-class: OpenSSL::SSL::SSLSocket
*
* The following attributes are available but don't show up in rdoc.
* * io, context, sync_close
@@ -1639,6 +1962,7 @@ Init_ossl_ssl()
rb_define_method(cSSLSocket, "session_reused?", ossl_ssl_session_reused, 0);
rb_define_method(cSSLSocket, "session=", ossl_ssl_set_session, 1);
rb_define_method(cSSLSocket, "verify_result", ossl_ssl_get_verify_result, 0);
+ rb_define_method(cSSLSocket, "client_ca", ossl_ssl_get_client_ca_list, 0);
#define ossl_ssl_def_const(x) rb_define_const(mSSL, #x, INT2NUM(SSL_##x))
@@ -1646,18 +1970,20 @@ Init_ossl_ssl()
ossl_ssl_def_const(VERIFY_PEER);
ossl_ssl_def_const(VERIFY_FAIL_IF_NO_PEER_CERT);
ossl_ssl_def_const(VERIFY_CLIENT_ONCE);
- /* Not introduce constants included in OP_ALL such as...
- * ossl_ssl_def_const(OP_MICROSOFT_SESS_ID_BUG);
- * ossl_ssl_def_const(OP_NETSCAPE_CHALLENGE_BUG);
- * ossl_ssl_def_const(OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG);
- * ossl_ssl_def_const(OP_SSLREF2_REUSE_CERT_TYPE_BUG);
- * ossl_ssl_def_const(OP_MICROSOFT_BIG_SSLV3_BUFFER);
- * ossl_ssl_def_const(OP_MSIE_SSLV2_RSA_PADDING);
- * ossl_ssl_def_const(OP_SSLEAY_080_CLIENT_DH_BUG);
- * ossl_ssl_def_const(OP_TLS_D5_BUG);
- * ossl_ssl_def_const(OP_TLS_BLOCK_PADDING_BUG);
- * ossl_ssl_def_const(OP_DONT_INSERT_EMPTY_FRAGMENTS);
+ /* Introduce constants included in OP_ALL. These constants are mostly for
+ * unset some bits in OP_ALL such as:
+ * ctx.options = OP_ALL & ~OP_DONT_INSERT_EMPTY_FRAGMENTS
*/
+ ossl_ssl_def_const(OP_MICROSOFT_SESS_ID_BUG);
+ ossl_ssl_def_const(OP_NETSCAPE_CHALLENGE_BUG);
+ ossl_ssl_def_const(OP_NETSCAPE_REUSE_CIPHER_CHANGE_BUG);
+ ossl_ssl_def_const(OP_SSLREF2_REUSE_CERT_TYPE_BUG);
+ ossl_ssl_def_const(OP_MICROSOFT_BIG_SSLV3_BUFFER);
+ ossl_ssl_def_const(OP_MSIE_SSLV2_RSA_PADDING);
+ ossl_ssl_def_const(OP_SSLEAY_080_CLIENT_DH_BUG);
+ ossl_ssl_def_const(OP_TLS_D5_BUG);
+ ossl_ssl_def_const(OP_TLS_BLOCK_PADDING_BUG);
+ ossl_ssl_def_const(OP_DONT_INSERT_EMPTY_FRAGMENTS);
ossl_ssl_def_const(OP_ALL);
#if defined(SSL_OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION)
ossl_ssl_def_const(OP_NO_SESSION_RESUMPTION_ON_RENEGOTIATION);
@@ -1677,6 +2003,9 @@ Init_ossl_ssl()
#if defined(SSL_OP_NO_TICKET)
ossl_ssl_def_const(OP_NO_TICKET);
#endif
+#if defined(SSL_OP_NO_COMPRESSION)
+ ossl_ssl_def_const(OP_NO_COMPRESSION);
+#endif
ossl_ssl_def_const(OP_PKCS1_CHECK_1);
ossl_ssl_def_const(OP_PKCS1_CHECK_2);
ossl_ssl_def_const(OP_NETSCAPE_CA_DN_BUG);
diff --git a/ext/openssl/ossl_ssl.h b/ext/openssl/ossl_ssl.h
index 487f41216c..034762fc46 100644
--- a/ext/openssl/ossl_ssl.h
+++ b/ext/openssl/ossl_ssl.h
@@ -12,17 +12,17 @@
#define _OSSL_SSL_H_
#define GetSSLSession(obj, sess) do { \
- Data_Get_Struct(obj, SSL_SESSION, sess); \
- if (!sess) { \
+ Data_Get_Struct((obj), SSL_SESSION, (sess)); \
+ if (!(sess)) { \
ossl_raise(rb_eRuntimeError, "SSL Session wasn't initialized."); \
} \
} while (0)
#define SafeGetSSLSession(obj, sess) do { \
- OSSL_Check_Kind(obj, cSSLSession); \
- GetSSLSession(obj, sess); \
+ OSSL_Check_Kind((obj), cSSLSession); \
+ GetSSLSession((obj), (sess)); \
} while (0)
-
+
extern VALUE mSSL;
extern VALUE eSSLError;
extern VALUE cSSLSocket;
diff --git a/ext/openssl/ossl_ssl_session.c b/ext/openssl/ossl_ssl_session.c
index d5fdba6aed..a7437caf37 100644
--- a/ext/openssl/ossl_ssl_session.c
+++ b/ext/openssl/ossl_ssl_session.c
@@ -5,17 +5,17 @@
#include "ossl.h"
#define GetSSLSession(obj, sess) do { \
- Data_Get_Struct(obj, SSL_SESSION, sess); \
- if (!sess) { \
+ Data_Get_Struct((obj), SSL_SESSION, (sess)); \
+ if (!(sess)) { \
ossl_raise(rb_eRuntimeError, "SSL Session wasn't initialized."); \
} \
} while (0)
#define SafeGetSSLSession(obj, sess) do { \
- OSSL_Check_Kind(obj, cSSLSession); \
- GetSSLSession(obj, sess); \
+ OSSL_Check_Kind((obj), cSSLSession); \
+ GetSSLSession((obj), (sess)); \
} while (0)
-
+
VALUE cSSLSession;
static VALUE eSSLSession;
@@ -53,7 +53,7 @@ static VALUE ossl_ssl_session_initialize(VALUE self, VALUE arg1)
ctx = PEM_read_bio_SSL_SESSION(in, NULL, NULL, NULL);
if (!ctx) {
- (void)BIO_reset(in);
+ OSSL_BIO_reset(in);
ctx = d2i_SSL_SESSION_bio(in, NULL);
}
@@ -72,6 +72,16 @@ static VALUE ossl_ssl_session_initialize(VALUE self, VALUE arg1)
return self;
}
+#if HAVE_SSL_SESSION_CMP == 0
+int SSL_SESSION_cmp(const SSL_SESSION *a,const SSL_SESSION *b)
+{
+ if (a->ssl_version != b->ssl_version ||
+ a->session_id_length != b->session_id_length)
+ return 1;
+ return memcmp(a->session_id,b-> session_id, a->session_id_length);
+}
+#endif
+
/*
* call-seq:
* session1 == session2 -> boolean
@@ -94,6 +104,8 @@ static VALUE ossl_ssl_session_eq(VALUE val1, VALUE val2)
* call-seq:
* session.time -> Time
*
+ * Gets start time of the session.
+ *
*/
static VALUE ossl_ssl_session_get_time(VALUE self)
{
@@ -114,7 +126,7 @@ static VALUE ossl_ssl_session_get_time(VALUE self)
* call-seq:
* session.timeout -> integer
*
- * How long until the session expires in seconds.
+ * Gets how long until the session expires in seconds.
*
*/
static VALUE ossl_ssl_session_get_timeout(VALUE self)
@@ -129,31 +141,45 @@ static VALUE ossl_ssl_session_get_timeout(VALUE self)
return TIMET2NUM(t);
}
-#define SSLSESSION_SET_TIME(func) \
- static VALUE ossl_ssl_session_set_##func(VALUE self, VALUE time_v) \
- { \
- SSL_SESSION *ctx; \
- unsigned long t; \
- \
- GetSSLSession(self, ctx); \
- \
- if (rb_obj_is_instance_of(time_v, rb_cTime)) { \
- time_v = rb_funcall(time_v, rb_intern("to_i"), 0); \
- } else if (FIXNUM_P(time_v)) { \
- ; \
- } else { \
- rb_raise(rb_eArgError, "unknown type"); \
- } \
- \
- t = NUM2ULONG(time_v); \
- \
- SSL_SESSION_set_##func(ctx, t); \
- \
- return ossl_ssl_session_get_##func(self); \
+/*
+ * call-seq:
+ * session.time=(Time) -> Time
+ * session.time=(integer) -> Time
+ *
+ * Sets start time of the session. Time resolution is in seconds.
+ *
+*/
+static VALUE ossl_ssl_session_set_time(VALUE self, VALUE time_v)
+{
+ SSL_SESSION *ctx;
+ long t;
+
+ GetSSLSession(self, ctx);
+ if (rb_obj_is_instance_of(time_v, rb_cTime)) {
+ time_v = rb_funcall(time_v, rb_intern("to_i"), 0);
}
+ t = NUM2LONG(time_v);
+ SSL_SESSION_set_time(ctx, t);
+ return ossl_ssl_session_get_time(self);
+}
+
+/*
+ * call-seq:
+ * session.timeout=(integer) -> integer
+ *
+ * Sets how long until the session expires in seconds.
+ *
+*/
+static VALUE ossl_ssl_session_set_timeout(VALUE self, VALUE time_v)
+{
+ SSL_SESSION *ctx;
+ long t;
-SSLSESSION_SET_TIME(time)
-SSLSESSION_SET_TIME(timeout)
+ GetSSLSession(self, ctx);
+ t = NUM2LONG(time_v);
+ SSL_SESSION_set_timeout(ctx, t);
+ return ossl_ssl_session_get_timeout(self);
+}
#ifdef HAVE_SSL_SESSION_GET_ID
/*
@@ -185,20 +211,21 @@ static VALUE ossl_ssl_session_get_id(VALUE self)
static VALUE ossl_ssl_session_to_der(VALUE self)
{
SSL_SESSION *ctx;
- unsigned char buf[1024*10], *p;
+ unsigned char *p;
int len;
+ VALUE str;
GetSSLSession(self, ctx);
-
- p = buf;
- len = i2d_SSL_SESSION(ctx, &p);
-
- if (len <= 0)
+ len = i2d_SSL_SESSION(ctx, NULL);
+ if (len <= 0) {
ossl_raise(eSSLSession, "i2d_SSL_SESSION");
- else if (len >= sizeof(buf))
- ossl_raise(eSSLSession, "i2d_SSL_SESSION too large");
+ }
- return rb_str_new((const char *) p, len);
+ str = rb_str_new(0, len);
+ p = (unsigned char *)RSTRING_PTR(str);
+ i2d_SSL_SESSION(ctx, &p);
+ ossl_str_adjust(str, p);
+ return str;
}
/*
@@ -214,7 +241,7 @@ static VALUE ossl_ssl_session_to_pem(VALUE self)
BUF_MEM *buf;
VALUE str;
int i;
-
+
GetSSLSession(self, ctx);
if (!(out = BIO_new(BIO_s_mem()))) {
@@ -246,7 +273,7 @@ static VALUE ossl_ssl_session_to_text(VALUE self)
BIO *out;
BUF_MEM *buf;
VALUE str;
-
+
GetSSLSession(self, ctx);
if (!(out = BIO_new(BIO_s_mem()))) {
@@ -264,12 +291,12 @@ static VALUE ossl_ssl_session_to_text(VALUE self)
return str;
}
-
+
void Init_ossl_ssl_session(void)
{
-#if 0 /* let rdoc know about mOSSL */
- mOSSL = rb_define_module("OpenSSL");
+#if 0
+ mOSSL = rb_define_module("OpenSSL"); /* let rdoc know about mOSSL */
mSSL = rb_define_module_under(mOSSL, "SSL");
#endif
cSSLSession = rb_define_class_under(mSSL, "Session", rb_cObject);
diff --git a/ext/openssl/ossl_x509attr.c b/ext/openssl/ossl_x509attr.c
index 1f817cdafe..1f36ca8b12 100644
--- a/ext/openssl/ossl_x509attr.c
+++ b/ext/openssl/ossl_x509attr.c
@@ -11,20 +11,20 @@
#include "ossl.h"
#define WrapX509Attr(klass, obj, attr) do { \
- if (!attr) { \
+ if (!(attr)) { \
ossl_raise(rb_eRuntimeError, "ATTR wasn't initialized!"); \
} \
- obj = Data_Wrap_Struct(klass, 0, X509_ATTRIBUTE_free, attr); \
+ (obj) = Data_Wrap_Struct((klass), 0, X509_ATTRIBUTE_free, (attr)); \
} while (0)
#define GetX509Attr(obj, attr) do { \
- Data_Get_Struct(obj, X509_ATTRIBUTE, attr); \
- if (!attr) { \
+ Data_Get_Struct((obj), X509_ATTRIBUTE, (attr)); \
+ if (!(attr)) { \
ossl_raise(rb_eRuntimeError, "ATTR wasn't initialized!"); \
} \
} while (0)
#define SafeGetX509Attr(obj, attr) do { \
- OSSL_Check_Kind(obj, cX509Attr); \
- GetX509Attr(obj, attr); \
+ OSSL_Check_Kind((obj), cX509Attr); \
+ GetX509Attr((obj), (attr)); \
} while (0)
/*
@@ -41,7 +41,7 @@ ossl_x509attr_new(X509_ATTRIBUTE *attr)
{
X509_ATTRIBUTE *new;
VALUE obj;
-
+
if (!attr) {
new = X509_ATTRIBUTE_new();
} else {
@@ -77,7 +77,7 @@ ossl_x509attr_alloc(VALUE klass)
X509_ATTRIBUTE *attr;
VALUE obj;
- if (!(attr = X509_ATTRIBUTE_new()))
+ if (!(attr = X509_ATTRIBUTE_new()))
ossl_raise(eX509AttrError, NULL);
WrapX509Attr(klass, obj, attr);
@@ -123,14 +123,14 @@ ossl_x509attr_set_oid(VALUE self, VALUE oid)
X509_ATTRIBUTE *attr;
ASN1_OBJECT *obj;
char *s;
-
+
s = StringValuePtr(oid);
obj = OBJ_txt2obj(s, 0);
if(!obj) obj = OBJ_txt2obj(s, 1);
if(!obj) ossl_raise(eX509AttrError, NULL);
GetX509Attr(self, attr);
X509_ATTRIBUTE_set1_object(attr, obj);
-
+
return oid;
}
@@ -157,7 +157,7 @@ ossl_x509attr_get_oid(VALUE self)
i2a_ASN1_OBJECT(out, oid);
ret = ossl_membio2str(out);
}
-
+
return ret;
}
@@ -218,8 +218,9 @@ ossl_x509attr_get_value(VALUE self)
ossl_str_adjust(str, p);
}
else{
- length = i2d_ASN1_SET_OF_ASN1_TYPE(attr->value.set, NULL,
- i2d_ASN1_TYPE, V_ASN1_SET, V_ASN1_UNIVERSAL, 0);
+ length = i2d_ASN1_SET_OF_ASN1_TYPE(attr->value.set,
+ (unsigned char **) NULL, i2d_ASN1_TYPE,
+ V_ASN1_SET, V_ASN1_UNIVERSAL, 0);
str = rb_str_new(0, length);
p = (unsigned char *)RSTRING_PTR(str);
i2d_ASN1_SET_OF_ASN1_TYPE(attr->value.set, &p,
@@ -250,7 +251,7 @@ ossl_x509attr_to_der(VALUE self)
p = (unsigned char *)RSTRING_PTR(str);
if(i2d_X509_ATTRIBUTE(attr, &p) <= 0)
ossl_raise(eX509AttrError, NULL);
- rb_str_set_len(str, p - (unsigned char*)RSTRING_PTR(str));
+ rb_str_set_len(str, p - (unsigned char*)RSTRING_PTR(str));
return str;
}
diff --git a/ext/openssl/ossl_x509cert.c b/ext/openssl/ossl_x509cert.c
index fec2d8b1a3..f5b2f4ff4a 100644
--- a/ext/openssl/ossl_x509cert.c
+++ b/ext/openssl/ossl_x509cert.c
@@ -11,20 +11,20 @@
#include "ossl.h"
#define WrapX509(klass, obj, x509) do { \
- if (!x509) { \
+ if (!(x509)) { \
ossl_raise(rb_eRuntimeError, "CERT wasn't initialized!"); \
} \
- obj = Data_Wrap_Struct(klass, 0, X509_free, x509); \
+ (obj) = Data_Wrap_Struct((klass), 0, X509_free, (x509)); \
} while (0)
#define GetX509(obj, x509) do { \
- Data_Get_Struct(obj, X509, x509); \
- if (!x509) { \
+ Data_Get_Struct((obj), X509, (x509)); \
+ if (!(x509)) { \
ossl_raise(rb_eRuntimeError, "CERT wasn't initialized!"); \
} \
} while (0)
#define SafeGetX509(obj, x509) do { \
- OSSL_Check_Kind(obj, cX509Cert); \
- GetX509(obj, x509); \
+ OSSL_Check_Kind((obj), cX509Cert); \
+ GetX509((obj), (x509)); \
} while (0)
/*
@@ -51,11 +51,11 @@ ossl_x509_new(X509 *x509)
ossl_raise(eX509CertError, NULL);
}
WrapX509(cX509Cert, obj, new);
-
+
return obj;
}
-VALUE
+VALUE
ossl_x509_new_from_file(VALUE filename)
{
X509 *x509;
@@ -71,6 +71,7 @@ ossl_x509_new_from_file(VALUE filename)
* prepare for DER...
#if !defined(OPENSSL_NO_FP_API)
if (!x509) {
+ (void)ERR_get_error();
rewind(fp);
x509 = d2i_X509_fp(fp, NULL);
@@ -90,9 +91,9 @@ X509 *
GetX509CertPtr(VALUE obj)
{
X509 *x509;
-
+
SafeGetX509(obj, x509);
-
+
return x509;
}
@@ -100,18 +101,18 @@ X509 *
DupX509CertPtr(VALUE obj)
{
X509 *x509;
-
+
SafeGetX509(obj, x509);
-
+
CRYPTO_add(&x509->references, 1, CRYPTO_LOCK_X509);
-
+
return x509;
}
/*
* Private
*/
-static VALUE
+static VALUE
ossl_x509_alloc(VALUE klass)
{
X509 *x509;
@@ -130,7 +131,7 @@ ossl_x509_alloc(VALUE klass)
* Certificate.new => cert
* Certificate.new(string) => cert
*/
-static VALUE
+static VALUE
ossl_x509_initialize(int argc, VALUE *argv, VALUE self)
{
BIO *in;
@@ -146,13 +147,13 @@ ossl_x509_initialize(int argc, VALUE *argv, VALUE self)
x509 = PEM_read_bio_X509(in, &x, NULL, NULL);
DATA_PTR(self) = x;
if (!x509) {
- (void)BIO_reset(in);
+ OSSL_BIO_reset(in);
x509 = d2i_X509_bio(in, &x);
DATA_PTR(self) = x;
}
BIO_free(in);
if (!x509) ossl_raise(eX509CertError, NULL);
-
+
return self;
}
@@ -160,7 +161,7 @@ static VALUE
ossl_x509_copy(VALUE self, VALUE other)
{
X509 *a, *b, *x509;
-
+
rb_check_frozen(self);
if (self == other) return self;
@@ -169,7 +170,7 @@ ossl_x509_copy(VALUE self, VALUE other)
x509 = X509_dup(b);
if (!x509) ossl_raise(eX509CertError, NULL);
-
+
DATA_PTR(self) = x509;
X509_free(a);
@@ -180,7 +181,7 @@ ossl_x509_copy(VALUE self, VALUE other)
* call-seq:
* cert.to_der => string
*/
-static VALUE
+static VALUE
ossl_x509_to_der(VALUE self)
{
X509 *x509;
@@ -196,7 +197,7 @@ ossl_x509_to_der(VALUE self)
if (i2d_X509(x509, &p) <= 0)
ossl_raise(eX509CertError, NULL);
ossl_str_adjust(str, p);
-
+
return str;
}
@@ -204,13 +205,13 @@ ossl_x509_to_der(VALUE self)
* call-seq:
* cert.to_pem => string
*/
-static VALUE
+static VALUE
ossl_x509_to_pem(VALUE self)
{
X509 *x509;
BIO *out;
VALUE str;
-
+
GetX509(self, x509);
out = BIO_new(BIO_s_mem());
if (!out) ossl_raise(eX509CertError, NULL);
@@ -234,7 +235,7 @@ ossl_x509_to_text(VALUE self)
X509 *x509;
BIO *out;
VALUE str;
-
+
GetX509(self, x509);
out = BIO_new(BIO_s_mem());
@@ -253,7 +254,7 @@ ossl_x509_to_text(VALUE self)
/*
* Makes from X509 X509_REQuest
*/
-static VALUE
+static VALUE
ossl_x509_to_req(VALUE self)
{
X509 *x509;
@@ -275,13 +276,13 @@ ossl_x509_to_req(VALUE self)
* call-seq:
* cert.version => integer
*/
-static VALUE
+static VALUE
ossl_x509_get_version(VALUE self)
{
X509 *x509;
GetX509(self, x509);
-
+
return LONG2NUM(X509_get_version(x509));
}
@@ -289,7 +290,7 @@ ossl_x509_get_version(VALUE self)
* call-seq:
* cert.version = integer => integer
*/
-static VALUE
+static VALUE
ossl_x509_set_version(VALUE self, VALUE version)
{
X509 *x509;
@@ -310,13 +311,13 @@ ossl_x509_set_version(VALUE self, VALUE version)
* call-seq:
* cert.serial => integer
*/
-static VALUE
+static VALUE
ossl_x509_get_serial(VALUE self)
{
X509 *x509;
GetX509(self, x509);
-
+
return asn1integer_to_num(X509_get_serialNumber(x509));
}
@@ -324,7 +325,7 @@ ossl_x509_get_serial(VALUE self)
* call-seq:
* cert.serial = integer => integer
*/
-static VALUE
+static VALUE
ossl_x509_set_serial(VALUE self, VALUE num)
{
X509 *x509;
@@ -333,7 +334,7 @@ ossl_x509_set_serial(VALUE self, VALUE num)
x509->cert_info->serialNumber =
num_to_asn1integer(num, X509_get_serialNumber(x509));
-
+
return num;
}
@@ -341,7 +342,7 @@ ossl_x509_set_serial(VALUE self, VALUE num)
* call-seq:
* cert.signature_algorithm => string
*/
-static VALUE
+static VALUE
ossl_x509_get_signature_algorithm(VALUE self)
{
X509 *x509;
@@ -365,12 +366,12 @@ ossl_x509_get_signature_algorithm(VALUE self)
* call-seq:
* cert.subject => name
*/
-static VALUE
+static VALUE
ossl_x509_get_subject(VALUE self)
{
X509 *x509;
X509_NAME *name;
-
+
GetX509(self, x509);
if (!(name = X509_get_subject_name(x509))) { /* NO DUP - don't free! */
ossl_raise(eX509CertError, NULL);
@@ -383,11 +384,11 @@ ossl_x509_get_subject(VALUE self)
* call-seq:
* cert.subject = name => name
*/
-static VALUE
+static VALUE
ossl_x509_set_subject(VALUE self, VALUE subject)
{
X509 *x509;
-
+
GetX509(self, x509);
if (!X509_set_subject_name(x509, GetX509NamePtr(subject))) { /* DUPs name */
ossl_raise(eX509CertError, NULL);
@@ -400,7 +401,7 @@ ossl_x509_set_subject(VALUE self, VALUE subject)
* call-seq:
* cert.issuer => name
*/
-static VALUE
+static VALUE
ossl_x509_get_issuer(VALUE self)
{
X509 *x509;
@@ -418,7 +419,7 @@ ossl_x509_get_issuer(VALUE self)
* call-seq:
* cert.issuer = name => name
*/
-static VALUE
+static VALUE
ossl_x509_set_issuer(VALUE self, VALUE issuer)
{
X509 *x509;
@@ -435,7 +436,7 @@ ossl_x509_set_issuer(VALUE self, VALUE issuer)
* call-seq:
* cert.not_before => time
*/
-static VALUE
+static VALUE
ossl_x509_get_not_before(VALUE self)
{
X509 *x509;
@@ -453,12 +454,12 @@ ossl_x509_get_not_before(VALUE self)
* call-seq:
* cert.not_before = time => time
*/
-static VALUE
+static VALUE
ossl_x509_set_not_before(VALUE self, VALUE time)
{
X509 *x509;
time_t sec;
-
+
sec = time_to_time_t(time);
GetX509(self, x509);
if (!X509_time_adj(X509_get_notBefore(x509), 0, &sec)) {
@@ -472,7 +473,7 @@ ossl_x509_set_not_before(VALUE self, VALUE time)
* call-seq:
* cert.not_after => time
*/
-static VALUE
+static VALUE
ossl_x509_get_not_after(VALUE self)
{
X509 *x509;
@@ -488,14 +489,14 @@ ossl_x509_get_not_after(VALUE self)
/*
* call-seq:
- * cert.not_before = time => time
+ * cert.not_after = time => time
*/
-static VALUE
+static VALUE
ossl_x509_set_not_after(VALUE self, VALUE time)
{
X509 *x509;
time_t sec;
-
+
sec = time_to_time_t(time);
GetX509(self, x509);
if (!X509_time_adj(X509_get_notAfter(x509), 0, &sec)) {
@@ -509,7 +510,7 @@ ossl_x509_set_not_after(VALUE self, VALUE time)
* call-seq:
* cert.public_key => key
*/
-static VALUE
+static VALUE
ossl_x509_get_public_key(VALUE self)
{
X509 *x509;
@@ -527,7 +528,7 @@ ossl_x509_get_public_key(VALUE self)
* call-seq:
* cert.public_key = key => key
*/
-static VALUE
+static VALUE
ossl_x509_set_public_key(VALUE self, VALUE key)
{
X509 *x509;
@@ -544,7 +545,7 @@ ossl_x509_set_public_key(VALUE self, VALUE key)
* call-seq:
* cert.sign(key, digest) => self
*/
-static VALUE
+static VALUE
ossl_x509_sign(VALUE self, VALUE key, VALUE digest)
{
X509 *x509;
@@ -567,7 +568,7 @@ ossl_x509_sign(VALUE self, VALUE key, VALUE digest)
*
* Checks that cert signature is made with PRIVversion of this PUBLIC 'key'
*/
-static VALUE
+static VALUE
ossl_x509_verify(VALUE self, VALUE key)
{
X509 *x509;
@@ -578,7 +579,7 @@ ossl_x509_verify(VALUE self, VALUE key)
GetX509(self, x509);
if ((i = X509_verify(x509, pkey)) < 0) {
ossl_raise(eX509CertError, NULL);
- }
+ }
if (i > 0) {
return Qtrue;
}
@@ -592,12 +593,12 @@ ossl_x509_verify(VALUE self, VALUE key)
*
* Checks if 'key' is PRIV key for this cert
*/
-static VALUE
+static VALUE
ossl_x509_check_private_key(VALUE self, VALUE key)
{
X509 *x509;
EVP_PKEY *pkey;
-
+
/* not needed private key, but should be */
pkey = GetPrivPKeyPtr(key); /* NO NEED TO DUP */
GetX509(self, x509);
@@ -613,7 +614,7 @@ ossl_x509_check_private_key(VALUE self, VALUE key)
* call-seq:
* cert.extensions => [extension...]
*/
-static VALUE
+static VALUE
ossl_x509_get_extensions(VALUE self)
{
X509 *x509;
@@ -639,13 +640,13 @@ ossl_x509_get_extensions(VALUE self)
* call-seq:
* cert.extensions = [ext...] => [ext...]
*/
-static VALUE
+static VALUE
ossl_x509_set_extensions(VALUE self, VALUE ary)
{
X509 *x509;
X509_EXTENSION *ext;
int i;
-
+
Check_Type(ary, T_ARRAY);
/* All ary's members should be X509Extension */
for (i=0; i<RARRAY_LEN(ary); i++) {
@@ -656,7 +657,7 @@ ossl_x509_set_extensions(VALUE self, VALUE ary)
x509->cert_info->extensions = NULL;
for (i=0; i<RARRAY_LEN(ary); i++) {
ext = DupX509ExtPtr(RARRAY_PTR(ary)[i]);
-
+
if (!X509_add_ext(x509, ext, -1)) { /* DUPs ext - FREE it */
X509_EXTENSION_free(ext);
ossl_raise(eX509CertError, NULL);
@@ -671,12 +672,12 @@ ossl_x509_set_extensions(VALUE self, VALUE ary)
* call-seq:
* cert.add_extension(extension) => extension
*/
-static VALUE
+static VALUE
ossl_x509_add_extension(VALUE self, VALUE extension)
{
X509 *x509;
X509_EXTENSION *ext;
-
+
GetX509(self, x509);
ext = DupX509ExtPtr(extension);
if (!X509_add_ext(x509, ext, -1)) { /* DUPs ext - FREE it */
@@ -725,17 +726,118 @@ ossl_x509_inspect(VALUE self)
/*
* INIT
*/
-void
+void
Init_ossl_x509cert()
{
+
+#if 0
+ mOSSL = rb_define_module("OpenSSL"); /* let rdoc know about mOSSL */
+ mX509 = rb_define_module_under(mOSSL, "X509");
+#endif
+
+ eX509CertError = rb_define_class_under(mX509, "CertificateError", eOSSLError);
+
+ /* Document-class: OpenSSL::X509::Certificate
+ *
+ * Implementation of an X.509 certificate as specified in RFC 5280.
+ * Provides access to a certificate's attributes and allows certificates
+ * to be read from a string, but also supports the creation of new
+ * certificates from scratch.
+ *
+ * === Reading a certificate from a file
+ *
+ * Certificate is capable of handling DER-encoded certificates and
+ * certificates encoded in OpenSSL's PEM format.
+ *
+ * raw = File.read "cert.cer" # DER- or PEM-encoded
+ * certificate = OpenSSL::X509::Certificate.new raw
+ *
+ * === Saving a certificate to a file
+ *
+ * A certificate may be encoded in DER format
+ *
+ * cert = ...
+ * File.open("cert.cer", "wb") { |f| f.print cert.to_der }
+ *
+ * or in PEM format
+ *
+ * cert = ...
+ * File.open("cert.pem", "wb") { |f| f.print cert.to_pem }
+ *
+ * X.509 certificates are associated with a private/public key pair,
+ * typically a RSA, DSA or ECC key (see also OpenSSL::PKey::RSA,
+ * OpenSSL::PKey::DSA and OpenSSL::PKey::EC), the public key itself is
+ * stored within the certificate and can be accessed in form of an
+ * OpenSSL::PKey. Certificates are typically used to be able to associate
+ * some form of identity with a key pair, for example web servers serving
+ * pages over HTTPs use certificates to authenticate themselves to the user.
+ *
+ * The public key infrastructure (PKI) model relies on trusted certificate
+ * authorities ("root CAs") that issue these certificates, so that end
+ * users need to base their trust just on a selected few authorities
+ * that themselves again vouch for subordinate CAs issuing their
+ * certificates to end users.
+ *
+ * The OpenSSL::X509 module provides the tools to set up an independent
+ * PKI, similar to scenarios where the 'openssl' command line tool is
+ * used for issuing certificates in a private PKI.
+ *
+ * === Creating a root CA certificate and an end-entity certificate
+ *
+ * First, we need to create a "self-signed" root certificate. To do so,
+ * we need to generate a key first. Please note that the choice of "1"
+ * as a serial number is considered a security flaw for real certificates.
+ * Secure choices are integers in the two-digit byte range and ideally
+ * not sequential but secure random numbers, steps omitted here to keep
+ * the example concise.
+ *
+ * root_key = OpenSSL::PKey::RSA.new 2048 # the CA's public/private key
+ * root_ca = OpenSSL::X509::Certificate.new
+ * root_ca.version = 2 # cf. RFC 5280 - to make it a "v3" certificate
+ * root_ca.serial = 1
+ * root_ca.subject = OpenSSL::X509::Name.parse "/DC=org/DC=ruby-lang/CN=Ruby CA"
+ * root_ca.issuer = root_ca.subject # root CA's are "self-signed"
+ * root_ca.public_key = root_key.public_key
+ * root_ca.not_before = Time.now
+ * root_ca.not_after = root_ca.not_before + 2 * 365 * 24 * 60 * 60 # 2 years validity
+ * ef = OpenSSL::X509::ExtensionFactory.new
+ * ef.subject_certificate = root_ca
+ * ef.issuer_certificate = root_ca
+ * root_ca.add_extension(ef.create_extension("basicConstraints","CA:TRUE",true))
+ * root_ca.add_extension(ef.create_extension("keyUsage","keyCertSign, cRLSign", true))
+ * root_ca.add_extension(ef.create_extension("subjectKeyIdentifier","hash",false))
+ * root_ca.add_extension(ef.create_extension("authorityKeyIdentifier","keyid:always",false))
+ * root_ca.sign(root_key, OpenSSL::Digest::SHA256.new)
+ *
+ * The next step is to create the end-entity certificate using the root CA
+ * certificate.
+ *
+ * key = OpenSSL::PKey::RSA.new 2048
+ * cert = OpenSSL::X509::Certificate.new
+ * cert.version = 2
+ * cert.serial = 2
+ * cert.subject = OpenSSL::X509::Name.parse "/DC=org/DC=ruby-lang/CN=Ruby certificate"
+ * cert.issuer = root_ca.subject # root CA is the issuer
+ * cert.public_key = key.public_key
+ * cert.not_before = Time.now
+ * cert.not_after = cert.not_before + 1 * 365 * 24 * 60 * 60 # 1 years validity
+ * ef = OpenSSL::X509::ExtensionFactory.new
+ * ef.subject_certificate = cert
+ * ef.issuer_certificate = root_ca
+ * cert.add_extension(ef.create_extension("keyUsage","digitalSignature", true))
+ * cert.add_extension(ef.create_extension("subjectKeyIdentifier","hash",false))
+ * cert.sign(root_key, OpenSSL::Digest::SHA256.new)
+ *
+ */
+
eX509CertError = rb_define_class_under(mX509, "CertificateError", eOSSLError);
-
+
cX509Cert = rb_define_class_under(mX509, "Certificate", rb_cObject);
-
+
rb_define_alloc_func(cX509Cert, ossl_x509_alloc);
rb_define_method(cX509Cert, "initialize", ossl_x509_initialize, -1);
rb_define_copy_func(cX509Cert, ossl_x509_copy);
-
+
rb_define_method(cX509Cert, "to_der", ossl_x509_to_der, 0);
rb_define_method(cX509Cert, "to_pem", ossl_x509_to_pem, 0);
rb_define_alias(cX509Cert, "to_s", "to_pem");
diff --git a/ext/openssl/ossl_x509crl.c b/ext/openssl/ossl_x509crl.c
index 1be9640e6b..dec13c8cae 100644
--- a/ext/openssl/ossl_x509crl.c
+++ b/ext/openssl/ossl_x509crl.c
@@ -11,20 +11,20 @@
#include "ossl.h"
#define WrapX509CRL(klass, obj, crl) do { \
- if (!crl) { \
+ if (!(crl)) { \
ossl_raise(rb_eRuntimeError, "CRL wasn't initialized!"); \
} \
- obj = Data_Wrap_Struct(klass, 0, X509_CRL_free, crl); \
+ (obj) = Data_Wrap_Struct((klass), 0, X509_CRL_free, (crl)); \
} while (0)
#define GetX509CRL(obj, crl) do { \
- Data_Get_Struct(obj, X509_CRL, crl); \
- if (!crl) { \
+ Data_Get_Struct((obj), X509_CRL, (crl)); \
+ if (!(crl)) { \
ossl_raise(rb_eRuntimeError, "CRL wasn't initialized!"); \
} \
} while (0)
#define SafeGetX509CRL(obj, crl) do { \
- OSSL_Check_Kind(obj, cX509CRL); \
- GetX509CRL(obj, crl); \
+ OSSL_Check_Kind((obj), cX509CRL); \
+ GetX509CRL((obj), (crl)); \
} while (0)
/*
@@ -66,14 +66,14 @@ ossl_x509crl_new(X509_CRL *crl)
tmp = crl ? X509_CRL_dup(crl) : X509_CRL_new();
if(!tmp) ossl_raise(eX509CRLError, NULL);
WrapX509CRL(cX509CRL, obj, tmp);
-
+
return obj;
}
/*
* PRIVATE
*/
-static VALUE
+static VALUE
ossl_x509crl_alloc(VALUE klass)
{
X509_CRL *crl;
@@ -87,7 +87,7 @@ ossl_x509crl_alloc(VALUE klass)
return obj;
}
-static VALUE
+static VALUE
ossl_x509crl_initialize(int argc, VALUE *argv, VALUE self)
{
BIO *in;
@@ -102,7 +102,7 @@ ossl_x509crl_initialize(int argc, VALUE *argv, VALUE self)
crl = PEM_read_bio_X509_CRL(in, &x, NULL, NULL);
DATA_PTR(self) = x;
if (!crl) {
- (void)BIO_reset(in);
+ OSSL_BIO_reset(in);
crl = d2i_X509_CRL_bio(in, &x);
DATA_PTR(self) = x;
}
@@ -116,7 +116,7 @@ static VALUE
ossl_x509crl_copy(VALUE self, VALUE other)
{
X509_CRL *a, *b, *crl;
-
+
rb_check_frozen(self);
if (self == other) return self;
GetX509CRL(self, a);
@@ -130,7 +130,7 @@ ossl_x509crl_copy(VALUE self, VALUE other)
return self;
}
-static VALUE
+static VALUE
ossl_x509crl_get_version(VALUE self)
{
X509_CRL *crl;
@@ -142,7 +142,7 @@ ossl_x509crl_get_version(VALUE self)
return LONG2NUM(ver);
}
-static VALUE
+static VALUE
ossl_x509crl_set_version(VALUE self, VALUE version)
{
X509_CRL *crl;
@@ -159,7 +159,7 @@ ossl_x509crl_set_version(VALUE self, VALUE version)
return version;
}
-static VALUE
+static VALUE
ossl_x509crl_get_signature_algorithm(VALUE self)
{
X509_CRL *crl;
@@ -181,7 +181,7 @@ ossl_x509crl_get_signature_algorithm(VALUE self)
return str;
}
-static VALUE
+static VALUE
ossl_x509crl_get_issuer(VALUE self)
{
X509_CRL *crl;
@@ -191,7 +191,7 @@ ossl_x509crl_get_issuer(VALUE self)
return ossl_x509name_new(X509_CRL_get_issuer(crl)); /* NO DUP - don't free */
}
-static VALUE
+static VALUE
ossl_x509crl_set_issuer(VALUE self, VALUE issuer)
{
X509_CRL *crl;
@@ -204,7 +204,7 @@ ossl_x509crl_set_issuer(VALUE self, VALUE issuer)
return issuer;
}
-static VALUE
+static VALUE
ossl_x509crl_get_last_update(VALUE self)
{
X509_CRL *crl;
@@ -214,7 +214,7 @@ ossl_x509crl_get_last_update(VALUE self)
return asn1time_to_time(X509_CRL_get_lastUpdate(crl));
}
-static VALUE
+static VALUE
ossl_x509crl_set_last_update(VALUE self, VALUE time)
{
X509_CRL *crl;
@@ -229,7 +229,7 @@ ossl_x509crl_set_last_update(VALUE self, VALUE time)
return time;
}
-static VALUE
+static VALUE
ossl_x509crl_get_next_update(VALUE self)
{
X509_CRL *crl;
@@ -239,7 +239,7 @@ ossl_x509crl_get_next_update(VALUE self)
return asn1time_to_time(X509_CRL_get_nextUpdate(crl));
}
-static VALUE
+static VALUE
ossl_x509crl_set_next_update(VALUE self, VALUE time)
{
X509_CRL *crl;
@@ -264,7 +264,7 @@ ossl_x509crl_get_revoked(VALUE self)
VALUE ary, revoked;
GetX509CRL(self, crl);
- num = sk_X509_CRL_num(X509_CRL_get_REVOKED(crl));
+ num = sk_X509_REVOKED_num(X509_CRL_get_REVOKED(crl));
if (num < 0) {
OSSL_Debug("num < 0???");
return rb_ary_new();
@@ -272,7 +272,7 @@ ossl_x509crl_get_revoked(VALUE self)
ary = rb_ary_new2(num);
for(i=0; i<num; i++) {
/* NO DUP - don't free! */
- rev = (X509_REVOKED *)sk_X509_CRL_value(X509_CRL_get_REVOKED(crl), i);
+ rev = sk_X509_REVOKED_value(X509_CRL_get_REVOKED(crl), i);
revoked = ossl_x509revoked_new(rev);
rb_ary_push(ary, revoked);
}
@@ -280,7 +280,7 @@ ossl_x509crl_get_revoked(VALUE self)
return ary;
}
-static VALUE
+static VALUE
ossl_x509crl_set_revoked(VALUE self, VALUE ary)
{
X509_CRL *crl;
@@ -306,7 +306,7 @@ ossl_x509crl_set_revoked(VALUE self, VALUE ary)
return ary;
}
-static VALUE
+static VALUE
ossl_x509crl_add_revoked(VALUE self, VALUE revoked)
{
X509_CRL *crl;
@@ -322,7 +322,7 @@ ossl_x509crl_add_revoked(VALUE self, VALUE revoked)
return revoked;
}
-static VALUE
+static VALUE
ossl_x509crl_sign(VALUE self, VALUE key, VALUE digest)
{
X509_CRL *crl;
@@ -339,7 +339,7 @@ ossl_x509crl_sign(VALUE self, VALUE key, VALUE digest)
return self;
}
-static VALUE
+static VALUE
ossl_x509crl_verify(VALUE self, VALUE key)
{
X509_CRL *crl;
@@ -356,7 +356,7 @@ ossl_x509crl_verify(VALUE self, VALUE key)
return Qfalse;
}
-static VALUE
+static VALUE
ossl_x509crl_to_der(VALUE self)
{
X509_CRL *crl;
@@ -379,7 +379,7 @@ ossl_x509crl_to_der(VALUE self)
return str;
}
-static VALUE
+static VALUE
ossl_x509crl_to_pem(VALUE self)
{
X509_CRL *crl;
@@ -402,7 +402,7 @@ ossl_x509crl_to_pem(VALUE self)
return str;
}
-static VALUE
+static VALUE
ossl_x509crl_to_text(VALUE self)
{
X509_CRL *crl;
@@ -421,14 +421,14 @@ ossl_x509crl_to_text(VALUE self)
BIO_get_mem_ptr(out, &buf);
str = rb_str_new(buf->data, buf->length);
BIO_free(out);
-
+
return str;
}
/*
* Gets X509v3 extensions as array of X509Ext objects
*/
-static VALUE
+static VALUE
ossl_x509crl_get_extensions(VALUE self)
{
X509_CRL *crl;
@@ -454,13 +454,13 @@ ossl_x509crl_get_extensions(VALUE self)
/*
* Sets X509_EXTENSIONs
*/
-static VALUE
+static VALUE
ossl_x509crl_set_extensions(VALUE self, VALUE ary)
{
X509_CRL *crl;
X509_EXTENSION *ext;
int i;
-
+
Check_Type(ary, T_ARRAY);
/* All ary members should be X509 Extensions */
for (i=0; i<RARRAY_LEN(ary); i++) {
@@ -481,7 +481,7 @@ ossl_x509crl_set_extensions(VALUE self, VALUE ary)
return ary;
}
-static VALUE
+static VALUE
ossl_x509crl_add_extension(VALUE self, VALUE extension)
{
X509_CRL *crl;
@@ -501,17 +501,17 @@ ossl_x509crl_add_extension(VALUE self, VALUE extension)
/*
* INIT
*/
-void
+void
Init_ossl_x509crl()
{
eX509CRLError = rb_define_class_under(mX509, "CRLError", eOSSLError);
cX509CRL = rb_define_class_under(mX509, "CRL", rb_cObject);
-
+
rb_define_alloc_func(cX509CRL, ossl_x509crl_alloc);
rb_define_method(cX509CRL, "initialize", ossl_x509crl_initialize, -1);
rb_define_copy_func(cX509CRL, ossl_x509crl_copy);
-
+
rb_define_method(cX509CRL, "version", ossl_x509crl_get_version, 0);
rb_define_method(cX509CRL, "version=", ossl_x509crl_set_version, 1);
rb_define_method(cX509CRL, "signature_algorithm", ossl_x509crl_get_signature_algorithm, 0);
diff --git a/ext/openssl/ossl_x509ext.c b/ext/openssl/ossl_x509ext.c
index d79615499b..bd2e1dd2fa 100644
--- a/ext/openssl/ossl_x509ext.c
+++ b/ext/openssl/ossl_x509ext.c
@@ -11,30 +11,30 @@
#include "ossl.h"
#define WrapX509Ext(klass, obj, ext) do { \
- if (!ext) { \
+ if (!(ext)) { \
ossl_raise(rb_eRuntimeError, "EXT wasn't initialized!"); \
} \
- obj = Data_Wrap_Struct(klass, 0, X509_EXTENSION_free, ext); \
+ (obj) = Data_Wrap_Struct((klass), 0, X509_EXTENSION_free, (ext)); \
} while (0)
#define GetX509Ext(obj, ext) do { \
- Data_Get_Struct(obj, X509_EXTENSION, ext); \
- if (!ext) { \
+ Data_Get_Struct((obj), X509_EXTENSION, (ext)); \
+ if (!(ext)) { \
ossl_raise(rb_eRuntimeError, "EXT wasn't initialized!"); \
} \
} while (0)
#define SafeGetX509Ext(obj, ext) do { \
- OSSL_Check_Kind(obj, cX509Ext); \
- GetX509Ext(obj, ext); \
+ OSSL_Check_Kind((obj), cX509Ext); \
+ GetX509Ext((obj), (ext)); \
} while (0)
#define MakeX509ExtFactory(klass, obj, ctx) do { \
- if (!(ctx = OPENSSL_malloc(sizeof(X509V3_CTX)))) \
+ if (!((ctx) = OPENSSL_malloc(sizeof(X509V3_CTX)))) \
ossl_raise(rb_eRuntimeError, "CTX wasn't allocated!"); \
- X509V3_set_ctx(ctx, NULL, NULL, NULL, NULL, 0); \
- obj = Data_Wrap_Struct(klass, 0, ossl_x509extfactory_free, ctx); \
+ X509V3_set_ctx((ctx), NULL, NULL, NULL, NULL, 0); \
+ (obj) = Data_Wrap_Struct((klass), 0, ossl_x509extfactory_free, (ctx)); \
} while (0)
#define GetX509ExtFactory(obj, ctx) do { \
- Data_Get_Struct(obj, X509V3_CTX, ctx); \
- if (!ctx) { \
+ Data_Get_Struct((obj), X509V3_CTX, (ctx)); \
+ if (!(ctx)) { \
ossl_raise(rb_eRuntimeError, "CTX wasn't initialized!"); \
} \
} while (0)
@@ -49,7 +49,7 @@ VALUE eX509ExtError;
/*
* Public
*/
-VALUE
+VALUE
ossl_x509ext_new(X509_EXTENSION *ext)
{
X509_EXTENSION *new;
@@ -64,7 +64,7 @@ ossl_x509ext_new(X509_EXTENSION *ext)
ossl_raise(eX509ExtError, NULL);
}
WrapX509Ext(cX509Ext, obj, new);
-
+
return obj;
}
@@ -103,7 +103,7 @@ ossl_x509extfactory_free(X509V3_CTX *ctx)
OPENSSL_free(ctx);
}
-static VALUE
+static VALUE
ossl_x509extfactory_alloc(VALUE klass)
{
X509V3_CTX *ctx;
@@ -115,7 +115,7 @@ ossl_x509extfactory_alloc(VALUE klass)
return obj;
}
-static VALUE
+static VALUE
ossl_x509extfactory_set_issuer_cert(VALUE self, VALUE cert)
{
X509V3_CTX *ctx;
@@ -127,7 +127,7 @@ ossl_x509extfactory_set_issuer_cert(VALUE self, VALUE cert)
return cert;
}
-static VALUE
+static VALUE
ossl_x509extfactory_set_subject_cert(VALUE self, VALUE cert)
{
X509V3_CTX *ctx;
@@ -139,7 +139,7 @@ ossl_x509extfactory_set_subject_cert(VALUE self, VALUE cert)
return cert;
}
-static VALUE
+static VALUE
ossl_x509extfactory_set_subject_req(VALUE self, VALUE req)
{
X509V3_CTX *ctx;
@@ -151,7 +151,7 @@ ossl_x509extfactory_set_subject_req(VALUE self, VALUE req)
return req;
}
-static VALUE
+static VALUE
ossl_x509extfactory_set_crl(VALUE self, VALUE crl)
{
X509V3_CTX *ctx;
@@ -178,15 +178,15 @@ ossl_x509extfactory_set_config(VALUE self, VALUE config)
return config;
}
#else
-#define rb_f_fork rb_f_notimplement
+#define ossl_x509extfactory_set_config rb_f_notimplement
#endif
-static VALUE
+static VALUE
ossl_x509extfactory_initialize(int argc, VALUE *argv, VALUE self)
{
/*X509V3_CTX *ctx;*/
VALUE issuer_cert, subject_cert, subject_req, crl;
-
+
/*GetX509ExtFactory(self, ctx);*/
rb_scan_args(argc, argv, "04",
@@ -211,7 +211,7 @@ ossl_x509extfactory_initialize(int argc, VALUE *argv, VALUE self)
* ["ln", "critical,value"] or the same for sn
* ["ln", "value"] => not critical
*/
-static VALUE
+static VALUE
ossl_x509extfactory_create_ext(int argc, VALUE *argv, VALUE self)
{
X509V3_CTX *ctx;
@@ -270,6 +270,18 @@ ossl_x509ext_alloc(VALUE klass)
return obj;
}
+/*
+ * call-seq:
+ * OpenSSL::X509::Extension.new asn1
+ * OpenSSL::X509::Extension.new name, value
+ * OpenSSL::X509::Extension.new name, value, critical
+ *
+ * Creates an X509 extension.
+ *
+ * The extension may be created from +asn1+ data or from an extension +name+
+ * and +value+. The +name+ may be either an OID or an extension name. If
+ * +critical+ is true the extension is marked critical.
+ */
static VALUE
ossl_x509ext_initialize(int argc, VALUE *argv, VALUE self)
{
@@ -328,7 +340,7 @@ ossl_x509ext_set_value(VALUE self, VALUE data)
OPENSSL_free(s);
ossl_raise(eX509ExtError, NULL);
}
- if(!M_ASN1_OCTET_STRING_set(asn1s, s, RSTRING_LEN(data))){
+ if(!M_ASN1_OCTET_STRING_set(asn1s, s, RSTRING_LENINT(data))){
OPENSSL_free(s);
ASN1_OCTET_STRING_free(asn1s);
ossl_raise(eX509ExtError, NULL);
@@ -351,7 +363,7 @@ ossl_x509ext_set_critical(VALUE self, VALUE flag)
return flag;
}
-static VALUE
+static VALUE
ossl_x509ext_get_oid(VALUE obj)
{
X509_EXTENSION *ext;
@@ -427,12 +439,12 @@ void
Init_ossl_x509ext()
{
eX509ExtError = rb_define_class_under(mX509, "ExtensionError", eOSSLError);
-
+
cX509ExtFactory = rb_define_class_under(mX509, "ExtensionFactory", rb_cObject);
-
+
rb_define_alloc_func(cX509ExtFactory, ossl_x509extfactory_alloc);
rb_define_method(cX509ExtFactory, "initialize", ossl_x509extfactory_initialize, -1);
-
+
rb_attr(cX509ExtFactory, rb_intern("issuer_certificate"), 1, 0, Qfalse);
rb_attr(cX509ExtFactory, rb_intern("subject_certificate"), 1, 0, Qfalse);
rb_attr(cX509ExtFactory, rb_intern("subject_request"), 1, 0, Qfalse);
@@ -445,7 +457,7 @@ Init_ossl_x509ext()
rb_define_method(cX509ExtFactory, "crl=", ossl_x509extfactory_set_crl, 1);
rb_define_method(cX509ExtFactory, "config=", ossl_x509extfactory_set_config, 1);
rb_define_method(cX509ExtFactory, "create_ext", ossl_x509extfactory_create_ext, -1);
-
+
cX509Ext = rb_define_class_under(mX509, "Extension", rb_cObject);
rb_define_alloc_func(cX509Ext, ossl_x509ext_alloc);
rb_define_method(cX509Ext, "initialize", ossl_x509ext_initialize, -1);
diff --git a/ext/openssl/ossl_x509name.c b/ext/openssl/ossl_x509name.c
index fd8e329a85..a8f288f4a5 100644
--- a/ext/openssl/ossl_x509name.c
+++ b/ext/openssl/ossl_x509name.c
@@ -11,20 +11,20 @@
#include "ossl.h"
#define WrapX509Name(klass, obj, name) do { \
- if (!name) { \
+ if (!(name)) { \
ossl_raise(rb_eRuntimeError, "Name wasn't initialized."); \
} \
- obj = Data_Wrap_Struct(klass, 0, X509_NAME_free, name); \
+ (obj) = Data_Wrap_Struct((klass), 0, X509_NAME_free, (name)); \
} while (0)
#define GetX509Name(obj, name) do { \
- Data_Get_Struct(obj, X509_NAME, name); \
- if (!name) { \
+ Data_Get_Struct((obj), X509_NAME, (name)); \
+ if (!(name)) { \
ossl_raise(rb_eRuntimeError, "Name wasn't initialized."); \
} \
} while (0)
#define SafeGetX509Name(obj, name) do { \
- OSSL_Check_Kind(obj, cX509Name); \
- GetX509Name(obj, name); \
+ OSSL_Check_Kind((obj), cX509Name); \
+ GetX509Name((obj), (name)); \
} while (0)
#define OBJECT_TYPE_TEMPLATE \
@@ -41,7 +41,7 @@ VALUE eX509NameError;
/*
* Public
*/
-VALUE
+VALUE
ossl_x509name_new(X509_NAME *name)
{
X509_NAME *new;
@@ -56,7 +56,7 @@ ossl_x509name_new(X509_NAME *name)
ossl_raise(eX509NameError, NULL);
}
WrapX509Name(cX509Name, obj, new);
-
+
return obj;
}
@@ -78,7 +78,7 @@ ossl_x509name_alloc(VALUE klass)
{
X509_NAME *name;
VALUE obj;
-
+
if (!(name = X509_NAME_new())) {
ossl_raise(eX509NameError, NULL);
}
@@ -87,9 +87,9 @@ ossl_x509name_alloc(VALUE klass)
return obj;
}
-static int id_aref;
+static ID id_aref;
static VALUE ossl_x509name_add_entry(int, VALUE*, VALUE);
-#define rb_aref(obj, key) rb_funcall(obj, id_aref, 1, key)
+#define rb_aref(obj, key) rb_funcall((obj), id_aref, 1, (key))
static VALUE
ossl_x509name_init_i(VALUE i, VALUE args)
@@ -167,7 +167,7 @@ VALUE ossl_x509name_add_entry(int argc, VALUE *argv, VALUE self)
if(NIL_P(type)) type = rb_aref(OBJECT_TYPE_TEMPLATE, oid);
GetX509Name(self, name);
if (!X509_NAME_add_entry_by_txt(name, RSTRING_PTR(oid), NUM2INT(type),
- (const unsigned char *)RSTRING_PTR(value), RSTRING_LEN(value), -1, 0)) {
+ (const unsigned char *)RSTRING_PTR(value), RSTRING_LENINT(value), -1, 0)) {
ossl_raise(eX509NameError, NULL);
}
@@ -222,16 +222,16 @@ ossl_x509name_to_s(int argc, VALUE *argv, VALUE self)
* call-seq:
* name.to_a => [[name, data, type], ...]
*/
-static VALUE
+static VALUE
ossl_x509name_to_a(VALUE self)
{
X509_NAME *name;
X509_NAME_ENTRY *entry;
- int i,entries;
+ int i,entries,nid;
char long_name[512];
const char *short_name;
- VALUE ary, ret;
-
+ VALUE ary, vname, ret;
+
GetX509Name(self, name);
entries = X509_NAME_entry_count(name);
if (entries < 0) {
@@ -246,8 +246,15 @@ ossl_x509name_to_a(VALUE self)
if (!i2t_ASN1_OBJECT(long_name, sizeof(long_name), entry->object)) {
ossl_raise(eX509NameError, NULL);
}
- short_name = OBJ_nid2sn(OBJ_ln2nid(long_name));
- ary = rb_ary_new3(3, rb_str_new2(short_name),
+ nid = OBJ_ln2nid(long_name);
+ if (nid == NID_undef) {
+ vname = rb_str_new2((const char *) &long_name);
+ } else {
+ short_name = OBJ_nid2sn(nid);
+ vname = rb_str_new2(short_name); /*do not free*/
+ }
+ ary = rb_ary_new3(3,
+ vname,
rb_str_new((const char *)entry->value->data, entry->value->length),
INT2FIX(entry->value->type));
rb_ary_push(ret, ary);
@@ -266,6 +273,14 @@ ossl_x509name_cmp0(VALUE self, VALUE other)
return X509_NAME_cmp(name1, name2);
}
+/*
+ * call-seq:
+ * name.cmp other => integer
+ * name.<=> other => integer
+ *
+ * Compares this Name with +other+ and returns 0 if they are the same and -1 or
+ * +1 if they are greater or less than each other respectively.
+ */
static VALUE
ossl_x509name_cmp(VALUE self, VALUE other)
{
@@ -292,6 +307,9 @@ ossl_x509name_eql(VALUE self, VALUE other)
/*
* call-seq:
* name.hash => integer
+ *
+ * The hash value returned is suitable for use as a certificate's filename in
+ * a CA path.
*/
static VALUE
ossl_x509name_hash(VALUE self)
@@ -306,6 +324,27 @@ ossl_x509name_hash(VALUE self)
return ULONG2NUM(hash);
}
+#ifdef HAVE_X509_NAME_HASH_OLD
+/*
+ * call-seq:
+ * name.hash_old => integer
+ *
+ * hash_old returns MD5 based hash used in OpenSSL 0.9.X.
+ */
+static VALUE
+ossl_x509name_hash_old(VALUE self)
+{
+ X509_NAME *name;
+ unsigned long hash;
+
+ GetX509Name(self, name);
+
+ hash = X509_NAME_hash_old(name);
+
+ return ULONG2NUM(hash);
+}
+#endif
+
/*
* call-seq:
* name.to_der => string
@@ -333,7 +372,7 @@ ossl_x509name_to_der(VALUE self)
/*
* INIT
*/
-void
+void
Init_ossl_x509name()
{
VALUE utf8str, ptrstr, ia5str, hash;
@@ -342,6 +381,8 @@ Init_ossl_x509name()
eX509NameError = rb_define_class_under(mX509, "NameError", eOSSLError);
cX509Name = rb_define_class_under(mX509, "Name", rb_cObject);
+ rb_include_module(cX509Name, rb_mComparable);
+
rb_define_alloc_func(cX509Name, ossl_x509name_alloc);
rb_define_method(cX509Name, "initialize", ossl_x509name_initialize, -1);
rb_define_method(cX509Name, "add_entry", ossl_x509name_add_entry, -1);
@@ -351,6 +392,9 @@ Init_ossl_x509name()
rb_define_alias(cX509Name, "<=>", "cmp");
rb_define_method(cX509Name, "eql?", ossl_x509name_eql, 1);
rb_define_method(cX509Name, "hash", ossl_x509name_hash, 0);
+#ifdef HAVE_X509_NAME_HASH_OLD
+ rb_define_method(cX509Name, "hash_old", ossl_x509name_hash_old, 0);
+#endif
rb_define_method(cX509Name, "to_der", ossl_x509name_to_der, 0);
utf8str = INT2NUM(V_ASN1_UTF8STRING);
diff --git a/ext/openssl/ossl_x509req.c b/ext/openssl/ossl_x509req.c
index 7c1b610159..5927f76d44 100644
--- a/ext/openssl/ossl_x509req.c
+++ b/ext/openssl/ossl_x509req.c
@@ -11,20 +11,20 @@
#include "ossl.h"
#define WrapX509Req(klass, obj, req) do { \
- if (!req) { \
+ if (!(req)) { \
ossl_raise(rb_eRuntimeError, "Req wasn't initialized!"); \
} \
- obj = Data_Wrap_Struct(klass, 0, X509_REQ_free, req); \
+ (obj) = Data_Wrap_Struct((klass), 0, X509_REQ_free, (req)); \
} while (0)
#define GetX509Req(obj, req) do { \
- Data_Get_Struct(obj, X509_REQ, req); \
- if (!req) { \
+ Data_Get_Struct((obj), X509_REQ, (req)); \
+ if (!(req)) { \
ossl_raise(rb_eRuntimeError, "Req wasn't initialized!"); \
} \
} while (0)
#define SafeGetX509Req(obj, req) do { \
- OSSL_Check_Kind(obj, cX509Req); \
- GetX509Req(obj, req); \
+ OSSL_Check_Kind((obj), cX509Req); \
+ GetX509Req((obj), (req)); \
} while (0)
/*
@@ -81,7 +81,7 @@ DupX509ReqPtr(VALUE obj)
/*
* Private functions
*/
-static VALUE
+static VALUE
ossl_x509req_alloc(VALUE klass)
{
X509_REQ *req;
@@ -95,7 +95,7 @@ ossl_x509req_alloc(VALUE klass)
return obj;
}
-static VALUE
+static VALUE
ossl_x509req_initialize(int argc, VALUE *argv, VALUE self)
{
BIO *in;
@@ -110,7 +110,7 @@ ossl_x509req_initialize(int argc, VALUE *argv, VALUE self)
req = PEM_read_bio_X509_REQ(in, &x, NULL, NULL);
DATA_PTR(self) = x;
if (!req) {
- (void)BIO_reset(in);
+ OSSL_BIO_reset(in);
req = d2i_X509_REQ_bio(in, &x);
DATA_PTR(self) = x;
}
@@ -124,7 +124,7 @@ static VALUE
ossl_x509req_copy(VALUE self, VALUE other)
{
X509_REQ *a, *b, *req;
-
+
rb_check_frozen(self);
if (self == other) return self;
GetX509Req(self, a);
@@ -138,14 +138,14 @@ ossl_x509req_copy(VALUE self, VALUE other)
return self;
}
-static VALUE
+static VALUE
ossl_x509req_to_pem(VALUE self)
{
X509_REQ *req;
BIO *out;
BUF_MEM *buf;
VALUE str;
-
+
GetX509Req(self, req);
if (!(out = BIO_new(BIO_s_mem()))) {
ossl_raise(eX509ReqError, NULL);
@@ -171,7 +171,7 @@ ossl_x509req_to_der(VALUE self)
GetX509Req(self, req);
if ((len = i2d_X509_REQ(req, NULL)) <= 0)
- ossl_raise(eX509CertError, NULL);
+ ossl_raise(eX509ReqError, NULL);
str = rb_str_new(0, len);
p = (unsigned char *)RSTRING_PTR(str);
if (i2d_X509_REQ(req, &p) <= 0)
@@ -181,7 +181,7 @@ ossl_x509req_to_der(VALUE self)
return str;
}
-static VALUE
+static VALUE
ossl_x509req_to_text(VALUE self)
{
X509_REQ *req;
@@ -208,12 +208,12 @@ ossl_x509req_to_text(VALUE self)
/*
* Makes X509 from X509_REQuest
*/
-static VALUE
+static VALUE
ossl_x509req_to_x509(VALUE self, VALUE days, VALUE key)
{
X509_REQ *req;
X509 *x509;
-
+
GetX509Req(self, req);
...
if (!(x509 = X509_REQ_to_X509(req, d, pkey))) {
@@ -224,7 +224,7 @@ ossl_x509req_to_x509(VALUE self, VALUE days, VALUE key)
}
#endif
-static VALUE
+static VALUE
ossl_x509req_get_version(VALUE self)
{
X509_REQ *req;
@@ -236,7 +236,7 @@ ossl_x509req_get_version(VALUE self)
return LONG2FIX(version);
}
-static VALUE
+static VALUE
ossl_x509req_set_version(VALUE self, VALUE version)
{
X509_REQ *req;
@@ -253,7 +253,7 @@ ossl_x509req_set_version(VALUE self, VALUE version)
return version;
}
-static VALUE
+static VALUE
ossl_x509req_get_subject(VALUE self)
{
X509_REQ *req;
@@ -267,11 +267,11 @@ ossl_x509req_get_subject(VALUE self)
return ossl_x509name_new(name);
}
-static VALUE
+static VALUE
ossl_x509req_set_subject(VALUE self, VALUE subject)
{
X509_REQ *req;
-
+
GetX509Req(self, req);
/* DUPs name */
if (!X509_REQ_set_subject_name(req, GetX509NamePtr(subject))) {
@@ -281,7 +281,7 @@ ossl_x509req_set_subject(VALUE self, VALUE subject)
return subject;
}
-static VALUE
+static VALUE
ossl_x509req_get_signature_algorithm(VALUE self)
{
X509_REQ *req;
@@ -290,7 +290,7 @@ ossl_x509req_get_signature_algorithm(VALUE self)
VALUE str;
GetX509Req(self, req);
-
+
if (!(out = BIO_new(BIO_s_mem()))) {
ossl_raise(eX509ReqError, NULL);
}
@@ -304,7 +304,7 @@ ossl_x509req_get_signature_algorithm(VALUE self)
return str;
}
-static VALUE
+static VALUE
ossl_x509req_get_public_key(VALUE self)
{
X509_REQ *req;
@@ -318,7 +318,7 @@ ossl_x509req_get_public_key(VALUE self)
return ossl_pkey_new(pkey); /* NO DUP - OK */
}
-static VALUE
+static VALUE
ossl_x509req_set_public_key(VALUE self, VALUE key)
{
X509_REQ *req;
@@ -333,7 +333,7 @@ ossl_x509req_set_public_key(VALUE self, VALUE key)
return key;
}
-static VALUE
+static VALUE
ossl_x509req_sign(VALUE self, VALUE key, VALUE digest)
{
X509_REQ *req;
@@ -353,7 +353,7 @@ ossl_x509req_sign(VALUE self, VALUE key, VALUE digest)
/*
* Checks that cert signature is made with PRIVversion of this PUBLIC 'key'
*/
-static VALUE
+static VALUE
ossl_x509req_verify(VALUE self, VALUE key)
{
X509_REQ *req;
@@ -372,14 +372,14 @@ ossl_x509req_verify(VALUE self, VALUE key)
return Qfalse;
}
-static VALUE
+static VALUE
ossl_x509req_get_attributes(VALUE self)
{
X509_REQ *req;
int count, i;
X509_ATTRIBUTE *attr;
VALUE ary;
-
+
GetX509Req(self, req);
count = X509_REQ_get_attr_count(req);
@@ -396,7 +396,7 @@ ossl_x509req_get_attributes(VALUE self)
return ary;
}
-static VALUE
+static VALUE
ossl_x509req_set_attributes(VALUE self, VALUE ary)
{
X509_REQ *req;
@@ -421,7 +421,7 @@ ossl_x509req_set_attributes(VALUE self, VALUE ary)
return ary;
}
-static VALUE
+static VALUE
ossl_x509req_add_attribute(VALUE self, VALUE attr)
{
X509_REQ *req;
@@ -437,17 +437,17 @@ ossl_x509req_add_attribute(VALUE self, VALUE attr)
/*
* X509_REQUEST init
*/
-void
+void
Init_ossl_x509req()
{
eX509ReqError = rb_define_class_under(mX509, "RequestError", eOSSLError);
-
+
cX509Req = rb_define_class_under(mX509, "Request", rb_cObject);
-
+
rb_define_alloc_func(cX509Req, ossl_x509req_alloc);
rb_define_method(cX509Req, "initialize", ossl_x509req_initialize, -1);
rb_define_copy_func(cX509Req, ossl_x509req_copy);
-
+
rb_define_method(cX509Req, "to_pem", ossl_x509req_to_pem, 0);
rb_define_method(cX509Req, "to_der", ossl_x509req_to_der, 0);
rb_define_alias(cX509Req, "to_s", "to_pem");
diff --git a/ext/openssl/ossl_x509revoked.c b/ext/openssl/ossl_x509revoked.c
index d0f816bad4..320abaa7ae 100644
--- a/ext/openssl/ossl_x509revoked.c
+++ b/ext/openssl/ossl_x509revoked.c
@@ -11,20 +11,20 @@
#include "ossl.h"
#define WrapX509Rev(klass, obj, rev) do { \
- if (!rev) { \
+ if (!(rev)) { \
ossl_raise(rb_eRuntimeError, "REV wasn't initialized!"); \
} \
- obj = Data_Wrap_Struct(klass, 0, X509_REVOKED_free, rev); \
+ (obj) = Data_Wrap_Struct((klass), 0, X509_REVOKED_free, (rev)); \
} while (0)
#define GetX509Rev(obj, rev) do { \
- Data_Get_Struct(obj, X509_REVOKED, rev); \
- if (!rev) { \
+ Data_Get_Struct((obj), X509_REVOKED, (rev)); \
+ if (!(rev)) { \
ossl_raise(rb_eRuntimeError, "REV wasn't initialized!"); \
} \
} while (0)
#define SafeGetX509Rev(obj, rev) do { \
- OSSL_Check_Kind(obj, cX509Rev); \
- GetX509Rev(obj, rev); \
+ OSSL_Check_Kind((obj), cX509Rev); \
+ GetX509Rev((obj), (rev)); \
} while (0)
/*
@@ -36,7 +36,7 @@ VALUE eX509RevError;
/*
* PUBLIC
*/
-VALUE
+VALUE
ossl_x509revoked_new(X509_REVOKED *rev)
{
X509_REVOKED *new;
@@ -71,7 +71,7 @@ DupX509RevokedPtr(VALUE obj)
/*
* PRIVATE
*/
-static VALUE
+static VALUE
ossl_x509revoked_alloc(VALUE klass)
{
X509_REVOKED *rev;
@@ -85,14 +85,14 @@ ossl_x509revoked_alloc(VALUE klass)
return obj;
}
-static VALUE
+static VALUE
ossl_x509revoked_initialize(int argc, VALUE *argv, VALUE self)
{
/* EMPTY */
return self;
}
-static VALUE
+static VALUE
ossl_x509revoked_get_serial(VALUE self)
{
X509_REVOKED *rev;
@@ -102,7 +102,7 @@ ossl_x509revoked_get_serial(VALUE self)
return asn1integer_to_num(rev->serialNumber);
}
-static VALUE
+static VALUE
ossl_x509revoked_set_serial(VALUE self, VALUE num)
{
X509_REVOKED *rev;
@@ -113,17 +113,17 @@ ossl_x509revoked_set_serial(VALUE self, VALUE num)
return num;
}
-static VALUE
+static VALUE
ossl_x509revoked_get_time(VALUE self)
{
X509_REVOKED *rev;
-
+
GetX509Rev(self, rev);
return asn1time_to_time(rev->revocationDate);
}
-static VALUE
+static VALUE
ossl_x509revoked_set_time(VALUE self, VALUE time)
{
X509_REVOKED *rev;
@@ -140,7 +140,7 @@ ossl_x509revoked_set_time(VALUE self, VALUE time)
/*
* Gets X509v3 extensions as array of X509Ext objects
*/
-static VALUE
+static VALUE
ossl_x509revoked_get_extensions(VALUE self)
{
X509_REVOKED *rev;
@@ -166,7 +166,7 @@ ossl_x509revoked_get_extensions(VALUE self)
/*
* Sets X509_EXTENSIONs
*/
-static VALUE
+static VALUE
ossl_x509revoked_set_extensions(VALUE self, VALUE ary)
{
X509_REVOKED *rev;
@@ -196,7 +196,7 @@ static VALUE
ossl_x509revoked_add_extension(VALUE self, VALUE ext)
{
X509_REVOKED *rev;
-
+
GetX509Rev(self, rev);
if(!X509_REVOKED_add_ext(rev, DupX509ExtPtr(ext), -1)) {
ossl_raise(eX509RevError, NULL);
@@ -214,10 +214,10 @@ Init_ossl_x509revoked()
eX509RevError = rb_define_class_under(mX509, "RevokedError", eOSSLError);
cX509Rev = rb_define_class_under(mX509, "Revoked", rb_cObject);
-
+
rb_define_alloc_func(cX509Rev, ossl_x509revoked_alloc);
rb_define_method(cX509Rev, "initialize", ossl_x509revoked_initialize, -1);
-
+
rb_define_method(cX509Rev, "serial", ossl_x509revoked_get_serial, 0);
rb_define_method(cX509Rev, "serial=", ossl_x509revoked_set_serial, 1);
rb_define_method(cX509Rev, "time", ossl_x509revoked_get_time, 0);
diff --git a/ext/openssl/ossl_x509store.c b/ext/openssl/ossl_x509store.c
index 68fb372eaa..5d341c5192 100644
--- a/ext/openssl/ossl_x509store.c
+++ b/ext/openssl/ossl_x509store.c
@@ -11,37 +11,37 @@
#include "ossl.h"
#define WrapX509Store(klass, obj, st) do { \
- if (!st) { \
+ if (!(st)) { \
ossl_raise(rb_eRuntimeError, "STORE wasn't initialized!"); \
} \
- obj = Data_Wrap_Struct(klass, 0, X509_STORE_free, st); \
+ (obj) = Data_Wrap_Struct((klass), 0, X509_STORE_free, (st)); \
} while (0)
#define GetX509Store(obj, st) do { \
- Data_Get_Struct(obj, X509_STORE, st); \
- if (!st) { \
+ Data_Get_Struct((obj), X509_STORE, (st)); \
+ if (!(st)) { \
ossl_raise(rb_eRuntimeError, "STORE wasn't initialized!"); \
} \
} while (0)
#define SafeGetX509Store(obj, st) do { \
- OSSL_Check_Kind(obj, cX509Store); \
- GetX509Store(obj, st); \
+ OSSL_Check_Kind((obj), cX509Store); \
+ GetX509Store((obj), (st)); \
} while (0)
#define WrapX509StCtx(klass, obj, ctx) do { \
- if (!ctx) { \
+ if (!(ctx)) { \
ossl_raise(rb_eRuntimeError, "STORE_CTX wasn't initialized!"); \
} \
- obj = Data_Wrap_Struct(klass, 0, ossl_x509stctx_free, ctx); \
+ (obj) = Data_Wrap_Struct((klass), 0, ossl_x509stctx_free, (ctx)); \
} while (0)
#define GetX509StCtx(obj, ctx) do { \
- Data_Get_Struct(obj, X509_STORE_CTX, ctx); \
- if (!ctx) { \
+ Data_Get_Struct((obj), X509_STORE_CTX, (ctx)); \
+ if (!(ctx)) { \
ossl_raise(rb_eRuntimeError, "STORE_CTX is out of scope!"); \
} \
} while (0)
#define SafeGetX509StCtx(obj, storep) do { \
- OSSL_Check_Kind(obj, cX509StoreContext); \
- GetX509Store(obj, ctx); \
+ OSSL_Check_Kind((obj), cX509StoreContext); \
+ GetX509Store((obj), (ctx)); \
} while (0)
/*
@@ -54,7 +54,7 @@ VALUE eX509StoreError;
/*
* Public functions
*/
-VALUE
+VALUE
ossl_x509store_new(X509_STORE *store)
{
VALUE obj;
@@ -76,19 +76,19 @@ GetX509StorePtr(VALUE obj)
X509_STORE *
DupX509StorePtr(VALUE obj)
-{
+{
X509_STORE *store;
SafeGetX509Store(obj, store);
CRYPTO_add(&store->references, 1, CRYPTO_LOCK_X509_STORE);
-
+
return store;
}
/*
* Private functions
*/
-static VALUE
+static VALUE
ossl_x509store_alloc(VALUE klass)
{
X509_STORE *store;
@@ -130,6 +130,7 @@ ossl_x509store_initialize(int argc, VALUE *argv, VALUE self)
/* BUG: This method takes any number of arguments but appears to ignore them. */
GetX509Store(self, store);
+ store->ex_data.sk = NULL;
X509_STORE_set_verify_cb_func(store, ossl_verify_cb);
ossl_x509store_set_vfy_cb(self, Qnil);
@@ -169,8 +170,8 @@ ossl_x509store_set_purpose(VALUE self, VALUE purpose)
{
#if (OPENSSL_VERSION_NUMBER >= 0x00907000L)
X509_STORE *store;
- long p = NUM2LONG(purpose);
-
+ int p = NUM2INT(purpose);
+
GetX509Store(self, store);
X509_STORE_set_purpose(store, p);
#else
@@ -185,7 +186,7 @@ ossl_x509store_set_trust(VALUE self, VALUE trust)
{
#if (OPENSSL_VERSION_NUMBER >= 0x00907000L)
X509_STORE *store;
- long t = NUM2LONG(trust);
+ int t = NUM2INT(trust);
GetX509Store(self, store);
X509_STORE_set_trust(store, t);
@@ -196,14 +197,14 @@ ossl_x509store_set_trust(VALUE self, VALUE trust)
return trust;
}
-static VALUE
+static VALUE
ossl_x509store_set_time(VALUE self, VALUE time)
{
rb_iv_set(self, "@time", time);
return time;
}
-static VALUE
+static VALUE
ossl_x509store_add_file(VALUE self, VALUE file)
{
X509_STORE *store;
@@ -211,7 +212,7 @@ ossl_x509store_add_file(VALUE self, VALUE file)
char *path = NULL;
if(file != Qnil){
- Check_SafeStr(file);
+ SafeStringValue(file);
path = RSTRING_PTR(file);
}
GetX509Store(self, store);
@@ -224,7 +225,7 @@ ossl_x509store_add_file(VALUE self, VALUE file)
return self;
}
-static VALUE
+static VALUE
ossl_x509store_add_path(VALUE self, VALUE dir)
{
X509_STORE *store;
@@ -232,7 +233,7 @@ ossl_x509store_add_path(VALUE self, VALUE dir)
char *path = NULL;
if(dir != Qnil){
- Check_SafeStr(dir);
+ SafeStringValue(dir);
path = RSTRING_PTR(dir);
}
GetX509Store(self, store);
@@ -292,7 +293,7 @@ static VALUE ossl_x509stctx_get_err(VALUE);
static VALUE ossl_x509stctx_get_err_string(VALUE);
static VALUE ossl_x509stctx_get_chain(VALUE);
-static VALUE
+static VALUE
ossl_x509store_verify(int argc, VALUE *argv, VALUE self)
{
VALUE cert, chain;
@@ -349,7 +350,7 @@ ossl_x509stctx_free(X509_STORE_CTX *ctx)
X509_STORE_CTX_free(ctx);
}
-static VALUE
+static VALUE
ossl_x509stctx_alloc(VALUE klass)
{
X509_STORE_CTX *ctx;
@@ -441,7 +442,7 @@ ossl_x509stctx_get_chain(VALUE self)
return ary;
}
-static VALUE
+static VALUE
ossl_x509stctx_get_err(VALUE self)
{
X509_STORE_CTX *ctx;
@@ -462,7 +463,7 @@ ossl_x509stctx_set_error(VALUE self, VALUE err)
return err;
}
-static VALUE
+static VALUE
ossl_x509stctx_get_err_string(VALUE self)
{
X509_STORE_CTX *ctx;
@@ -474,7 +475,7 @@ ossl_x509stctx_get_err_string(VALUE self)
return rb_str_new2(X509_verify_cert_error_string(err));
}
-static VALUE
+static VALUE
ossl_x509stctx_get_err_depth(VALUE self)
{
X509_STORE_CTX *ctx;
@@ -484,7 +485,7 @@ ossl_x509stctx_get_err_depth(VALUE self)
return INT2FIX(X509_STORE_CTX_get_error_depth(ctx));
}
-static VALUE
+static VALUE
ossl_x509stctx_get_curr_cert(VALUE self)
{
X509_STORE_CTX *ctx;
@@ -510,17 +511,6 @@ ossl_x509stctx_get_curr_crl(VALUE self)
}
static VALUE
-ossl_x509stctx_cleanup(VALUE self)
-{
- X509_STORE_CTX *ctx;
-
- GetX509StCtx(self, ctx);
- X509_STORE_CTX_cleanup(ctx);
-
- return self;
-}
-
-static VALUE
ossl_x509stctx_set_flags(VALUE self, VALUE flags)
{
X509_STORE_CTX *store;
@@ -536,7 +526,7 @@ static VALUE
ossl_x509stctx_set_purpose(VALUE self, VALUE purpose)
{
X509_STORE_CTX *store;
- long p = NUM2LONG(purpose);
+ int p = NUM2INT(purpose);
GetX509StCtx(self, store);
X509_STORE_CTX_set_purpose(store, p);
@@ -548,7 +538,7 @@ static VALUE
ossl_x509stctx_set_trust(VALUE self, VALUE trust)
{
X509_STORE_CTX *store;
- long t = NUM2LONG(trust);
+ int t = NUM2INT(trust);
GetX509StCtx(self, store);
X509_STORE_CTX_set_trust(store, t);
@@ -576,7 +566,7 @@ ossl_x509stctx_set_time(VALUE self, VALUE time)
/*
* INIT
*/
-void
+void
Init_ossl_x509store()
{
VALUE x509stctx;
@@ -614,7 +604,6 @@ Init_ossl_x509store()
rb_define_method(x509stctx,"error_depth", ossl_x509stctx_get_err_depth, 0);
rb_define_method(x509stctx,"current_cert",ossl_x509stctx_get_curr_cert, 0);
rb_define_method(x509stctx,"current_crl", ossl_x509stctx_get_curr_crl, 0);
- rb_define_method(x509stctx,"cleanup", ossl_x509stctx_cleanup, 0);
rb_define_method(x509stctx,"flags=", ossl_x509stctx_set_flags, 1);
rb_define_method(x509stctx,"purpose=", ossl_x509stctx_set_purpose, 1);
rb_define_method(x509stctx,"trust=", ossl_x509stctx_set_trust, 1);
diff --git a/ext/openssl/ruby_missing.h b/ext/openssl/ruby_missing.h
index 64b76f26b4..1c5d05baca 100644
--- a/ext/openssl/ruby_missing.h
+++ b/ext/openssl/ruby_missing.h
@@ -12,11 +12,11 @@
#define _OSSL_RUBY_MISSING_H_
#define rb_define_copy_func(klass, func) \
- rb_define_method(klass, "initialize_copy", func, 1)
+ rb_define_method((klass), "initialize_copy", (func), 1)
#ifndef GetReadFile
-#define FPTR_TO_FD(fptr) (fptr->fd)
+#define FPTR_TO_FD(fptr) ((fptr)->fd)
#else
#define FPTR_TO_FD(fptr) (fileno(GetReadFile(fptr)))
#endif
@@ -28,14 +28,14 @@
#ifndef HAVE_RB_STR_SET_LEN
/* these methods should probably be backported to 1.8 */
#define rb_str_set_len(str, length) do { \
- RSTRING(str)->ptr[length] = 0; \
- RSTRING(str)->len = length; \
+ RSTRING(str)->ptr[(length)] = 0; \
+ RSTRING(str)->len = (length); \
} while(0)
#endif /* ! HAVE_RB_STR_SET_LEN */
#ifndef HAVE_RB_BLOCK_CALL
/* the openssl module doesn't use arg[3-4] and arg2 is always rb_each */
-#define rb_block_call(arg1, arg2, arg3, arg4, arg5, arg6) rb_iterate(rb_each, arg1, arg5, arg6)
+#define rb_block_call(arg1, arg2, arg3, arg4, arg5, arg6) rb_iterate(rb_each, (arg1), (arg5), (arg6))
#endif /* ! HAVE_RB_BLOCK_CALL */
#endif /* _OSSL_RUBY_MISSING_H_ */
diff --git a/ext/pathname/extconf.rb b/ext/pathname/extconf.rb
new file mode 100644
index 0000000000..6720903e88
--- /dev/null
+++ b/ext/pathname/extconf.rb
@@ -0,0 +1,2 @@
+require 'mkmf'
+create_makefile('pathname')
diff --git a/ext/pathname/lib/pathname.rb b/ext/pathname/lib/pathname.rb
new file mode 100644
index 0000000000..1d2b37c66b
--- /dev/null
+++ b/ext/pathname/lib/pathname.rb
@@ -0,0 +1,527 @@
+#
+# = pathname.rb
+#
+# Object-Oriented Pathname Class
+#
+# Author:: Tanaka Akira <akr@m17n.org>
+# Documentation:: Author and Gavin Sinclair
+#
+# For documentation, see class Pathname.
+#
+# <tt>pathname.rb</tt> is distributed with Ruby since 1.8.0.
+#
+
+require 'pathname.so'
+
+class Pathname
+
+ # :stopdoc:
+ if RUBY_VERSION < "1.9"
+ TO_PATH = :to_str
+ else
+ # to_path is implemented so Pathname objects are usable with File.open, etc.
+ TO_PATH = :to_path
+ end
+
+ SAME_PATHS = if File::FNM_SYSCASE.nonzero?
+ proc {|a, b| a.casecmp(b).zero?}
+ else
+ proc {|a, b| a == b}
+ end
+
+ # :startdoc:
+
+ if File::ALT_SEPARATOR
+ SEPARATOR_LIST = "#{Regexp.quote File::ALT_SEPARATOR}#{Regexp.quote File::SEPARATOR}"
+ SEPARATOR_PAT = /[#{SEPARATOR_LIST}]/
+ else
+ SEPARATOR_LIST = "#{Regexp.quote File::SEPARATOR}"
+ SEPARATOR_PAT = /#{Regexp.quote File::SEPARATOR}/
+ end
+
+ # chop_basename(path) -> [pre-basename, basename] or nil
+ def chop_basename(path)
+ base = File.basename(path)
+ if /\A#{SEPARATOR_PAT}?\z/o =~ base
+ return nil
+ else
+ return path[0, path.rindex(base)], base
+ end
+ end
+ private :chop_basename
+
+ # split_names(path) -> prefix, [name, ...]
+ def split_names(path)
+ names = []
+ while r = chop_basename(path)
+ path, basename = r
+ names.unshift basename
+ end
+ return path, names
+ end
+ private :split_names
+
+ def prepend_prefix(prefix, relpath)
+ if relpath.empty?
+ File.dirname(prefix)
+ elsif /#{SEPARATOR_PAT}/o =~ prefix
+ prefix = File.dirname(prefix)
+ prefix = File.join(prefix, "") if File.basename(prefix + 'a') != 'a'
+ prefix + relpath
+ else
+ prefix + relpath
+ end
+ end
+ private :prepend_prefix
+
+ # Returns clean pathname of +self+ with consecutive slashes and useless dots
+ # removed. The filesystem is not accessed.
+ #
+ # If +consider_symlink+ is +true+, then a more conservative algorithm is used
+ # to avoid breaking symbolic linkages. This may retain more <tt>..</tt>
+ # entries than absolutely necessary, but without accessing the filesystem,
+ # this can't be avoided. See #realpath.
+ #
+ def cleanpath(consider_symlink=false)
+ if consider_symlink
+ cleanpath_conservative
+ else
+ cleanpath_aggressive
+ end
+ end
+
+ #
+ # Clean the path simply by resolving and removing excess "." and ".." entries.
+ # Nothing more, nothing less.
+ #
+ def cleanpath_aggressive
+ path = @path
+ names = []
+ pre = path
+ while r = chop_basename(pre)
+ pre, base = r
+ case base
+ when '.'
+ when '..'
+ names.unshift base
+ else
+ if names[0] == '..'
+ names.shift
+ else
+ names.unshift base
+ end
+ end
+ end
+ if /#{SEPARATOR_PAT}/o =~ File.basename(pre)
+ names.shift while names[0] == '..'
+ end
+ self.class.new(prepend_prefix(pre, File.join(*names)))
+ end
+ private :cleanpath_aggressive
+
+ # has_trailing_separator?(path) -> bool
+ def has_trailing_separator?(path)
+ if r = chop_basename(path)
+ pre, basename = r
+ pre.length + basename.length < path.length
+ else
+ false
+ end
+ end
+ private :has_trailing_separator?
+
+ # add_trailing_separator(path) -> path
+ def add_trailing_separator(path)
+ if File.basename(path + 'a') == 'a'
+ path
+ else
+ File.join(path, "") # xxx: Is File.join is appropriate to add separator?
+ end
+ end
+ private :add_trailing_separator
+
+ def del_trailing_separator(path)
+ if r = chop_basename(path)
+ pre, basename = r
+ pre + basename
+ elsif /#{SEPARATOR_PAT}+\z/o =~ path
+ $` + File.dirname(path)[/#{SEPARATOR_PAT}*\z/o]
+ else
+ path
+ end
+ end
+ private :del_trailing_separator
+
+ def cleanpath_conservative
+ path = @path
+ names = []
+ pre = path
+ while r = chop_basename(pre)
+ pre, base = r
+ names.unshift base if base != '.'
+ end
+ if /#{SEPARATOR_PAT}/o =~ File.basename(pre)
+ names.shift while names[0] == '..'
+ end
+ if names.empty?
+ self.class.new(File.dirname(pre))
+ else
+ if names.last != '..' && File.basename(path) == '.'
+ names << '.'
+ end
+ result = prepend_prefix(pre, File.join(*names))
+ if /\A(?:\.|\.\.)\z/ !~ names.last && has_trailing_separator?(path)
+ self.class.new(add_trailing_separator(result))
+ else
+ self.class.new(result)
+ end
+ end
+ end
+ private :cleanpath_conservative
+
+ # #parent returns the parent directory.
+ #
+ # This is same as <tt>self + '..'</tt>.
+ def parent
+ self + '..'
+ end
+
+ # #mountpoint? returns +true+ if <tt>self</tt> points to a mountpoint.
+ def mountpoint?
+ begin
+ stat1 = self.lstat
+ stat2 = self.parent.lstat
+ stat1.dev == stat2.dev && stat1.ino == stat2.ino ||
+ stat1.dev != stat2.dev
+ rescue Errno::ENOENT
+ false
+ end
+ end
+
+ #
+ # #root? is a predicate for root directories. I.e. it returns +true+ if the
+ # pathname consists of consecutive slashes.
+ #
+ # It doesn't access actual filesystem. So it may return +false+ for some
+ # pathnames which points to roots such as <tt>/usr/..</tt>.
+ #
+ def root?
+ !!(chop_basename(@path) == nil && /#{SEPARATOR_PAT}/o =~ @path)
+ end
+
+ # Predicate method for testing whether a path is absolute.
+ # It returns +true+ if the pathname begins with a slash.
+ def absolute?
+ !relative?
+ end
+
+ # The opposite of #absolute?
+ def relative?
+ path = @path
+ while r = chop_basename(path)
+ path, = r
+ end
+ path == ''
+ end
+
+ #
+ # Iterates over each component of the path.
+ #
+ # Pathname.new("/usr/bin/ruby").each_filename {|filename| ... }
+ # # yields "usr", "bin", and "ruby".
+ #
+ def each_filename # :yield: filename
+ return to_enum(__method__) unless block_given?
+ _, names = split_names(@path)
+ names.each {|filename| yield filename }
+ nil
+ end
+
+ # Iterates over and yields a new Pathname object
+ # for each element in the given path in descending order.
+ #
+ # Pathname.new('/path/to/some/file.rb').descend {|v| p v}
+ # #<Pathname:/>
+ # #<Pathname:/path>
+ # #<Pathname:/path/to>
+ # #<Pathname:/path/to/some>
+ # #<Pathname:/path/to/some/file.rb>
+ #
+ # Pathname.new('path/to/some/file.rb').descend {|v| p v}
+ # #<Pathname:path>
+ # #<Pathname:path/to>
+ # #<Pathname:path/to/some>
+ # #<Pathname:path/to/some/file.rb>
+ #
+ # It doesn't access actual filesystem.
+ #
+ # This method is available since 1.8.5.
+ #
+ def descend
+ vs = []
+ ascend {|v| vs << v }
+ vs.reverse_each {|v| yield v }
+ nil
+ end
+
+ # Iterates over and yields a new Pathname object
+ # for each element in the given path in ascending order.
+ #
+ # Pathname.new('/path/to/some/file.rb').ascend {|v| p v}
+ # #<Pathname:/path/to/some/file.rb>
+ # #<Pathname:/path/to/some>
+ # #<Pathname:/path/to>
+ # #<Pathname:/path>
+ # #<Pathname:/>
+ #
+ # Pathname.new('path/to/some/file.rb').ascend {|v| p v}
+ # #<Pathname:path/to/some/file.rb>
+ # #<Pathname:path/to/some>
+ # #<Pathname:path/to>
+ # #<Pathname:path>
+ #
+ # It doesn't access actual filesystem.
+ #
+ # This method is available since 1.8.5.
+ #
+ def ascend
+ path = @path
+ yield self
+ while r = chop_basename(path)
+ path, = r
+ break if path.empty?
+ yield self.class.new(del_trailing_separator(path))
+ end
+ end
+
+ #
+ # Pathname#+ appends a pathname fragment to this one to produce a new Pathname
+ # object.
+ #
+ # p1 = Pathname.new("/usr") # Pathname:/usr
+ # p2 = p1 + "bin/ruby" # Pathname:/usr/bin/ruby
+ # p3 = p1 + "/etc/passwd" # Pathname:/etc/passwd
+ #
+ # This method doesn't access the file system; it is pure string manipulation.
+ #
+ def +(other)
+ other = Pathname.new(other) unless Pathname === other
+ Pathname.new(plus(@path, other.to_s))
+ end
+
+ def plus(path1, path2) # -> path
+ prefix2 = path2
+ index_list2 = []
+ basename_list2 = []
+ while r2 = chop_basename(prefix2)
+ prefix2, basename2 = r2
+ index_list2.unshift prefix2.length
+ basename_list2.unshift basename2
+ end
+ return path2 if prefix2 != ''
+ prefix1 = path1
+ while true
+ while !basename_list2.empty? && basename_list2.first == '.'
+ index_list2.shift
+ basename_list2.shift
+ end
+ break unless r1 = chop_basename(prefix1)
+ prefix1, basename1 = r1
+ next if basename1 == '.'
+ if basename1 == '..' || basename_list2.empty? || basename_list2.first != '..'
+ prefix1 = prefix1 + basename1
+ break
+ end
+ index_list2.shift
+ basename_list2.shift
+ end
+ r1 = chop_basename(prefix1)
+ if !r1 && /#{SEPARATOR_PAT}/o =~ File.basename(prefix1)
+ while !basename_list2.empty? && basename_list2.first == '..'
+ index_list2.shift
+ basename_list2.shift
+ end
+ end
+ if !basename_list2.empty?
+ suffix2 = path2[index_list2.first..-1]
+ r1 ? File.join(prefix1, suffix2) : prefix1 + suffix2
+ else
+ r1 ? prefix1 : File.dirname(prefix1)
+ end
+ end
+ private :plus
+
+ #
+ # Pathname#join joins pathnames.
+ #
+ # <tt>path0.join(path1, ..., pathN)</tt> is the same as
+ # <tt>path0 + path1 + ... + pathN</tt>.
+ #
+ def join(*args)
+ args.unshift self
+ result = args.pop
+ result = Pathname.new(result) unless Pathname === result
+ return result if result.absolute?
+ args.reverse_each {|arg|
+ arg = Pathname.new(arg) unless Pathname === arg
+ result = arg + result
+ return result if result.absolute?
+ }
+ result
+ end
+
+ #
+ # Returns the children of the directory (files and subdirectories, not
+ # recursive) as an array of Pathname objects. By default, the returned
+ # pathnames will have enough information to access the files. If you set
+ # +with_directory+ to +false+, then the returned pathnames will contain the
+ # filename only.
+ #
+ # For example:
+ # pn = Pathname("/usr/lib/ruby/1.8")
+ # pn.children
+ # # -> [ Pathname:/usr/lib/ruby/1.8/English.rb,
+ # Pathname:/usr/lib/ruby/1.8/Env.rb,
+ # Pathname:/usr/lib/ruby/1.8/abbrev.rb, ... ]
+ # pn.children(false)
+ # # -> [ Pathname:English.rb, Pathname:Env.rb, Pathname:abbrev.rb, ... ]
+ #
+ # Note that the results never contain the entries <tt>.</tt> and <tt>..</tt> in
+ # the directory because they are not children.
+ #
+ # This method has existed since 1.8.1.
+ #
+ def children(with_directory=true)
+ with_directory = false if @path == '.'
+ result = []
+ Dir.foreach(@path) {|e|
+ next if e == '.' || e == '..'
+ if with_directory
+ result << self.class.new(File.join(@path, e))
+ else
+ result << self.class.new(e)
+ end
+ }
+ result
+ end
+
+ # Iterates over the children of the directory
+ # (files and subdirectories, not recursive).
+ # It yields Pathname object for each child.
+ # By default, the yielded pathnames will have enough information to access the files.
+ # If you set +with_directory+ to +false+, then the returned pathnames will contain the filename only.
+ #
+ # Pathname("/usr/local").each_child {|f| p f }
+ # #=> #<Pathname:/usr/local/share>
+ # # #<Pathname:/usr/local/bin>
+ # # #<Pathname:/usr/local/games>
+ # # #<Pathname:/usr/local/lib>
+ # # #<Pathname:/usr/local/include>
+ # # #<Pathname:/usr/local/sbin>
+ # # #<Pathname:/usr/local/src>
+ # # #<Pathname:/usr/local/man>
+ #
+ # Pathname("/usr/local").each_child(false) {|f| p f }
+ # #=> #<Pathname:share>
+ # # #<Pathname:bin>
+ # # #<Pathname:games>
+ # # #<Pathname:lib>
+ # # #<Pathname:include>
+ # # #<Pathname:sbin>
+ # # #<Pathname:src>
+ # # #<Pathname:man>
+ #
+ def each_child(with_directory=true, &b)
+ children(with_directory).each(&b)
+ end
+
+ #
+ # #relative_path_from returns a relative path from the argument to the
+ # receiver. If +self+ is absolute, the argument must be absolute too. If
+ # +self+ is relative, the argument must be relative too.
+ #
+ # #relative_path_from doesn't access the filesystem. It assumes no symlinks.
+ #
+ # ArgumentError is raised when it cannot find a relative path.
+ #
+ # This method has existed since 1.8.1.
+ #
+ def relative_path_from(base_directory)
+ dest_directory = self.cleanpath.to_s
+ base_directory = base_directory.cleanpath.to_s
+ dest_prefix = dest_directory
+ dest_names = []
+ while r = chop_basename(dest_prefix)
+ dest_prefix, basename = r
+ dest_names.unshift basename if basename != '.'
+ end
+ base_prefix = base_directory
+ base_names = []
+ while r = chop_basename(base_prefix)
+ base_prefix, basename = r
+ base_names.unshift basename if basename != '.'
+ end
+ unless SAME_PATHS[dest_prefix, base_prefix]
+ raise ArgumentError, "different prefix: #{dest_prefix.inspect} and #{base_directory.inspect}"
+ end
+ while !dest_names.empty? &&
+ !base_names.empty? &&
+ SAME_PATHS[dest_names.first, base_names.first]
+ dest_names.shift
+ base_names.shift
+ end
+ if base_names.include? '..'
+ raise ArgumentError, "base_directory has ..: #{base_directory.inspect}"
+ end
+ base_names.fill('..')
+ relpath_names = base_names + dest_names
+ if relpath_names.empty?
+ Pathname.new('.')
+ else
+ Pathname.new(File.join(*relpath_names))
+ end
+ end
+end
+
+
+class Pathname # * Find *
+ #
+ # Pathname#find is an iterator to traverse a directory tree in a depth first
+ # manner. It yields a Pathname for each file under "this" directory.
+ #
+ # Since it is implemented by <tt>find.rb</tt>, <tt>Find.prune</tt> can be used
+ # to control the traversal.
+ #
+ # If +self+ is <tt>.</tt>, yielded pathnames begin with a filename in the
+ # current directory, not <tt>./</tt>.
+ #
+ def find(&block) # :yield: pathname
+ require 'find'
+ if @path == '.'
+ Find.find(@path) {|f| yield self.class.new(f.sub(%r{\A\./}, '')) }
+ else
+ Find.find(@path) {|f| yield self.class.new(f) }
+ end
+ end
+end
+
+
+class Pathname # * FileUtils *
+ # See <tt>FileUtils.mkpath</tt>. Creates a full path, including any
+ # intermediate directories that don't yet exist.
+ def mkpath
+ require 'fileutils'
+ FileUtils.mkpath(@path)
+ nil
+ end
+
+ # See <tt>FileUtils.rm_r</tt>. Deletes a directory and all beneath it.
+ def rmtree
+ # The name "rmtree" is borrowed from File::Path of Perl.
+ # File::Path provides "mkpath" and "rmtree".
+ require 'fileutils'
+ FileUtils.rm_r(@path)
+ nil
+ end
+end
+
diff --git a/ext/pathname/pathname.c b/ext/pathname/pathname.c
new file mode 100644
index 0000000000..e1632c524b
--- /dev/null
+++ b/ext/pathname/pathname.c
@@ -0,0 +1,1240 @@
+#include "ruby.h"
+
+static VALUE rb_cPathname;
+static ID id_at_path, id_to_path;
+
+static VALUE
+get_strpath(VALUE obj)
+{
+ VALUE strpath;
+ strpath = rb_ivar_get(obj, id_at_path);
+ if (TYPE(strpath) != T_STRING)
+ rb_raise(rb_eTypeError, "unexpected @path");
+ return strpath;
+}
+
+static void
+set_strpath(VALUE obj, VALUE val)
+{
+ rb_ivar_set(obj, id_at_path, val);
+}
+
+/*
+ * Create a Pathname object from the given String (or String-like object).
+ * If +path+ contains a NUL character (<tt>\0</tt>), an ArgumentError is raised.
+ */
+static VALUE
+path_initialize(VALUE self, VALUE arg)
+{
+ VALUE str;
+ if (TYPE(arg) == T_STRING) {
+ str = arg;
+ }
+ else {
+ str = rb_check_funcall(arg, id_to_path, 0, NULL);
+ if (str == Qundef)
+ str = arg;
+ StringValue(str);
+ }
+ if (memchr(RSTRING_PTR(str), '\0', RSTRING_LEN(str)))
+ rb_raise(rb_eArgError, "pathname contains null byte");
+ str = rb_obj_dup(str);
+
+ set_strpath(self, str);
+ OBJ_INFECT(self, str);
+ return self;
+}
+
+static VALUE
+path_freeze(VALUE self)
+{
+ rb_call_super(0, 0);
+ rb_str_freeze(get_strpath(self));
+ return self;
+}
+
+static VALUE
+path_taint(VALUE self)
+{
+ rb_call_super(0, 0);
+ rb_obj_taint(get_strpath(self));
+ return self;
+}
+
+static VALUE
+path_untaint(VALUE self)
+{
+ rb_call_super(0, 0);
+ rb_obj_untaint(get_strpath(self));
+ return self;
+}
+
+/*
+ * Compare this pathname with +other+. The comparison is string-based.
+ * Be aware that two different paths (<tt>foo.txt</tt> and <tt>./foo.txt</tt>)
+ * can refer to the same file.
+ */
+static VALUE
+path_eq(VALUE self, VALUE other)
+{
+ if (!rb_obj_is_kind_of(other, rb_cPathname))
+ return Qfalse;
+ return rb_str_equal(get_strpath(self), get_strpath(other));
+}
+
+/*
+ * Provides for comparing pathnames, case-sensitively.
+ */
+static VALUE
+path_cmp(VALUE self, VALUE other)
+{
+ VALUE s1, s2;
+ char *p1, *p2;
+ char *e1, *e2;
+ if (!rb_obj_is_kind_of(other, rb_cPathname))
+ return Qnil;
+ s1 = get_strpath(self);
+ s2 = get_strpath(other);
+ p1 = RSTRING_PTR(s1);
+ p2 = RSTRING_PTR(s2);
+ e1 = p1 + RSTRING_LEN(s1);
+ e2 = p2 + RSTRING_LEN(s2);
+ while (p1 < e1 && p2 < e2) {
+ int c1, c2;
+ c1 = (unsigned char)*p1++;
+ c2 = (unsigned char)*p2++;
+ if (c1 == '/') c1 = '\0';
+ if (c2 == '/') c2 = '\0';
+ if (c1 != c2) {
+ if (c1 < c2)
+ return INT2FIX(-1);
+ else
+ return INT2FIX(1);
+ }
+ }
+ if (p1 < e1)
+ return INT2FIX(1);
+ if (p2 < e2)
+ return INT2FIX(-1);
+ return INT2FIX(0);
+}
+
+/* :nodoc: */
+static VALUE
+path_hash(VALUE self)
+{
+ return INT2FIX(rb_str_hash(get_strpath(self)));
+}
+
+/*
+ * call-seq:
+ * pathname.to_s -> string
+ * pathname.to_path -> string
+ *
+ * Return the path as a String.
+ *
+ * to_path is implemented so Pathname objects are usable with File.open, etc.
+ */
+static VALUE
+path_to_s(VALUE self)
+{
+ return rb_obj_dup(get_strpath(self));
+}
+
+/* :nodoc: */
+static VALUE
+path_inspect(VALUE self)
+{
+ const char *c = rb_obj_classname(self);
+ VALUE str = get_strpath(self);
+ return rb_sprintf("#<%s:%s>", c, RSTRING_PTR(str));
+}
+
+/*
+ * Return a pathname which is substituted by String#sub.
+ */
+static VALUE
+path_sub(int argc, VALUE *argv, VALUE self)
+{
+ VALUE str = get_strpath(self);
+
+ if (rb_block_given_p()) {
+ str = rb_block_call(str, rb_intern("sub"), argc, argv, 0, 0);
+ }
+ else {
+ str = rb_funcall2(str, rb_intern("sub"), argc, argv);
+ }
+ return rb_class_new_instance(1, &str, rb_obj_class(self));
+}
+
+/*
+ * Return a pathname which the extension of the basename is substituted by
+ * <i>repl</i>.
+ *
+ * If self has no extension part, <i>repl</i> is appended.
+ */
+static VALUE
+path_sub_ext(VALUE self, VALUE repl)
+{
+ VALUE str = get_strpath(self);
+ VALUE str2;
+ long extlen;
+ const char *ext;
+ const char *p;
+
+ StringValue(repl);
+ p = RSTRING_PTR(str);
+ ext = ruby_find_extname(p, &extlen);
+ if (ext == NULL) {
+ ext = p + RSTRING_LEN(str);
+ }
+ else if (extlen <= 1) {
+ ext += extlen;
+ }
+ str2 = rb_str_dup(str);
+ rb_str_resize(str2, ext-p);
+ rb_str_append(str2, repl);
+ OBJ_INFECT(str2, str);
+ return rb_class_new_instance(1, &str2, rb_obj_class(self));
+}
+
+/* Facade for File */
+
+/*
+ * Returns the real (absolute) pathname of +self+ in the actual
+ * filesystem not containing symlinks or useless dots.
+ *
+ * All components of the pathname must exist when this method is
+ * called.
+ *
+ */
+static VALUE
+path_realpath(int argc, VALUE *argv, VALUE self)
+{
+ VALUE basedir, str;
+ rb_scan_args(argc, argv, "01", &basedir);
+ str = rb_funcall(rb_cFile, rb_intern("realpath"), 2, get_strpath(self), basedir);
+ return rb_class_new_instance(1, &str, rb_obj_class(self));
+}
+
+/*
+ * Returns the real (absolute) pathname of +self+ in the actual filesystem.
+ * The real pathname doesn't contain symlinks or useless dots.
+ *
+ * The last component of the real pathname can be nonexistent.
+ */
+static VALUE
+path_realdirpath(int argc, VALUE *argv, VALUE self)
+{
+ VALUE basedir, str;
+ rb_scan_args(argc, argv, "01", &basedir);
+ str = rb_funcall(rb_cFile, rb_intern("realdirpath"), 2, get_strpath(self), basedir);
+ return rb_class_new_instance(1, &str, rb_obj_class(self));
+}
+
+/*
+ * call-seq:
+ * pathname.each_line {|line| ... }
+ * pathname.each_line(sep=$/ [, open_args]) {|line| block } -> nil
+ * pathname.each_line(limit [, open_args]) {|line| block } -> nil
+ * pathname.each_line(sep, limit [, open_args]) {|line| block } -> nil
+ * pathname.each_line(...) -> an_enumerator
+ *
+ * #each_line iterates over the line in the file. It yields a String object
+ * for each line.
+ *
+ * This method is availabel since 1.8.1.
+ */
+static VALUE
+path_each_line(int argc, VALUE *argv, VALUE self)
+{
+ VALUE args[4];
+ int n;
+
+ args[0] = get_strpath(self);
+ n = rb_scan_args(argc, argv, "03", &args[1], &args[2], &args[3]);
+ if (rb_block_given_p()) {
+ return rb_block_call(rb_cIO, rb_intern("foreach"), 1+n, args, 0, 0);
+ }
+ else {
+ return rb_funcall2(rb_cIO, rb_intern("foreach"), 1+n, args);
+ }
+}
+
+/*
+ * call-seq:
+ * pathname.read([length [, offset]]) -> string
+ * pathname.read([length [, offset]], open_args) -> string
+ *
+ * See <tt>IO.read</tt>. Returns all data from the file, or the first +N+ bytes
+ * if specified.
+ *
+ */
+static VALUE
+path_read(int argc, VALUE *argv, VALUE self)
+{
+ VALUE args[4];
+ int n;
+
+ args[0] = get_strpath(self);
+ n = rb_scan_args(argc, argv, "03", &args[1], &args[2], &args[3]);
+ return rb_funcall2(rb_cIO, rb_intern("read"), 1+n, args);
+}
+
+/*
+ * call-seq:
+ * pathname.binread([length [, offset]]) -> string
+ *
+ * See <tt>IO.binread</tt>. Returns all the bytes from the file, or the first +N+
+ * if specified.
+ *
+ */
+static VALUE
+path_binread(int argc, VALUE *argv, VALUE self)
+{
+ VALUE args[3];
+ int n;
+
+ args[0] = get_strpath(self);
+ n = rb_scan_args(argc, argv, "02", &args[1], &args[2]);
+ return rb_funcall2(rb_cIO, rb_intern("binread"), 1+n, args);
+}
+
+/*
+ * call-seq:
+ * pathname.readlines(sep=$/ [, open_args]) -> array
+ * pathname.readlines(limit [, open_args]) -> array
+ * pathname.readlines(sep, limit [, open_args]) -> array
+ *
+ * See <tt>IO.readlines</tt>. Returns all the lines from the file.
+ *
+ */
+static VALUE
+path_readlines(int argc, VALUE *argv, VALUE self)
+{
+ VALUE args[4];
+ int n;
+
+ args[0] = get_strpath(self);
+ n = rb_scan_args(argc, argv, "03", &args[1], &args[2], &args[3]);
+ return rb_funcall2(rb_cIO, rb_intern("readlines"), 1+n, args);
+}
+
+/*
+ * call-seq:
+ * pathname.sysopen([mode, [perm]]) -> fixnum
+ *
+ * See <tt>IO.sysopen</tt>.
+ *
+ */
+static VALUE
+path_sysopen(int argc, VALUE *argv, VALUE self)
+{
+ VALUE args[3];
+ int n;
+
+ args[0] = get_strpath(self);
+ n = rb_scan_args(argc, argv, "02", &args[1], &args[2]);
+ return rb_funcall2(rb_cIO, rb_intern("sysopen"), 1+n, args);
+}
+
+/*
+ * See <tt>File.atime</tt>. Returns last access time.
+ */
+static VALUE
+path_atime(VALUE self)
+{
+ return rb_funcall(rb_cFile, rb_intern("atime"), 1, get_strpath(self));
+}
+
+/*
+ * See <tt>File.ctime</tt>. Returns last (directory entry, not file) change time.
+ */
+static VALUE
+path_ctime(VALUE self)
+{
+ return rb_funcall(rb_cFile, rb_intern("ctime"), 1, get_strpath(self));
+}
+
+/*
+ * See <tt>File.mtime</tt>. Returns last modification time.
+ */
+static VALUE
+path_mtime(VALUE self)
+{
+ return rb_funcall(rb_cFile, rb_intern("mtime"), 1, get_strpath(self));
+}
+
+/*
+ * See <tt>File.chmod</tt>. Changes permissions.
+ */
+static VALUE
+path_chmod(VALUE self, VALUE mode)
+{
+ return rb_funcall(rb_cFile, rb_intern("chmod"), 2, mode, get_strpath(self));
+}
+
+/*
+ * See <tt>File.lchmod</tt>.
+ */
+static VALUE
+path_lchmod(VALUE self, VALUE mode)
+{
+ return rb_funcall(rb_cFile, rb_intern("lchmod"), 2, mode, get_strpath(self));
+}
+
+/*
+ * See <tt>File.chown</tt>. Change owner and group of file.
+ */
+static VALUE
+path_chown(VALUE self, VALUE owner, VALUE group)
+{
+ return rb_funcall(rb_cFile, rb_intern("chown"), 3, owner, group, get_strpath(self));
+}
+
+/*
+ * See <tt>File.lchown</tt>.
+ */
+static VALUE
+path_lchown(VALUE self, VALUE owner, VALUE group)
+{
+ return rb_funcall(rb_cFile, rb_intern("lchown"), 3, owner, group, get_strpath(self));
+}
+
+/*
+ * call-seq:
+ * pathname.fnmatch(pattern, [flags]) -> string
+ * pathname.fnmatch?(pattern, [flags]) -> string
+ *
+ * See <tt>File.fnmatch</tt>. Return +true+ if the receiver matches the given
+ * pattern.
+ */
+static VALUE
+path_fnmatch(int argc, VALUE *argv, VALUE self)
+{
+ VALUE str = get_strpath(self);
+ VALUE pattern, flags;
+ if (rb_scan_args(argc, argv, "11", &pattern, &flags) == 1)
+ return rb_funcall(rb_cFile, rb_intern("fnmatch"), 2, pattern, str);
+ else
+ return rb_funcall(rb_cFile, rb_intern("fnmatch"), 3, pattern, str, flags);
+}
+
+/*
+ * See <tt>File.ftype</tt>. Returns "type" of file ("file", "directory",
+ * etc).
+ */
+static VALUE
+path_ftype(VALUE self)
+{
+ return rb_funcall(rb_cFile, rb_intern("ftype"), 1, get_strpath(self));
+}
+
+/*
+ * call-seq:
+ * pathname.make_link(old)
+ *
+ * See <tt>File.link</tt>. Creates a hard link at _pathname_.
+ */
+static VALUE
+path_make_link(VALUE self, VALUE old)
+{
+ return rb_funcall(rb_cFile, rb_intern("link"), 2, old, get_strpath(self));
+}
+
+/*
+ * See <tt>File.open</tt>. Opens the file for reading or writing.
+ */
+static VALUE
+path_open(int argc, VALUE *argv, VALUE self)
+{
+ VALUE args[4];
+ int n;
+
+ args[0] = get_strpath(self);
+ n = rb_scan_args(argc, argv, "03", &args[1], &args[2], &args[3]);
+ if (rb_block_given_p()) {
+ return rb_block_call(rb_cFile, rb_intern("open"), 1+n, args, 0, 0);
+ }
+ else {
+ return rb_funcall2(rb_cFile, rb_intern("open"), 1+n, args);
+ }
+}
+
+/*
+ * See <tt>File.readlink</tt>. Read symbolic link.
+ */
+static VALUE
+path_readlink(VALUE self)
+{
+ VALUE str;
+ str = rb_funcall(rb_cFile, rb_intern("readlink"), 1, get_strpath(self));
+ return rb_class_new_instance(1, &str, rb_obj_class(self));
+}
+
+/*
+ * See <tt>File.rename</tt>. Rename the file.
+ */
+static VALUE
+path_rename(VALUE self, VALUE to)
+{
+ return rb_funcall(rb_cFile, rb_intern("rename"), 2, get_strpath(self), to);
+}
+
+/*
+ * See <tt>File.stat</tt>. Returns a <tt>File::Stat</tt> object.
+ */
+static VALUE
+path_stat(VALUE self)
+{
+ return rb_funcall(rb_cFile, rb_intern("stat"), 1, get_strpath(self));
+}
+
+/*
+ * See <tt>File.lstat</tt>.
+ */
+static VALUE
+path_lstat(VALUE self)
+{
+ return rb_funcall(rb_cFile, rb_intern("lstat"), 1, get_strpath(self));
+}
+
+/*
+ * call-seq:
+ * pathname.make_symlink(old)
+ *
+ * See <tt>File.symlink</tt>. Creates a symbolic link.
+ */
+static VALUE
+path_make_symlink(VALUE self, VALUE old)
+{
+ return rb_funcall(rb_cFile, rb_intern("symlink"), 2, old, get_strpath(self));
+}
+
+/*
+ * See <tt>File.truncate</tt>. Truncate the file to +length+ bytes.
+ */
+static VALUE
+path_truncate(VALUE self, VALUE length)
+{
+ return rb_funcall(rb_cFile, rb_intern("truncate"), 2, get_strpath(self), length);
+}
+
+/*
+ * See <tt>File.utime</tt>. Update the access and modification times.
+ */
+static VALUE
+path_utime(VALUE self, VALUE atime, VALUE mtime)
+{
+ return rb_funcall(rb_cFile, rb_intern("utime"), 3, atime, mtime, get_strpath(self));
+}
+
+/*
+ * See <tt>File.basename</tt>. Returns the last component of the path.
+ */
+static VALUE
+path_basename(int argc, VALUE *argv, VALUE self)
+{
+ VALUE str = get_strpath(self);
+ VALUE fext;
+ if (rb_scan_args(argc, argv, "01", &fext) == 0)
+ str = rb_funcall(rb_cFile, rb_intern("basename"), 1, str);
+ else
+ str = rb_funcall(rb_cFile, rb_intern("basename"), 2, str, fext);
+ return rb_class_new_instance(1, &str, rb_obj_class(self));
+}
+
+/*
+ * See <tt>File.dirname</tt>. Returns all but the last component of the path.
+ */
+static VALUE
+path_dirname(VALUE self)
+{
+ VALUE str = get_strpath(self);
+ str = rb_funcall(rb_cFile, rb_intern("dirname"), 1, str);
+ return rb_class_new_instance(1, &str, rb_obj_class(self));
+}
+
+/*
+ * See <tt>File.extname</tt>. Returns the file's extension.
+ */
+static VALUE
+path_extname(VALUE self)
+{
+ VALUE str = get_strpath(self);
+ return rb_funcall(rb_cFile, rb_intern("extname"), 1, str);
+}
+
+/*
+ * See <tt>File.expand_path</tt>.
+ */
+static VALUE
+path_expand_path(int argc, VALUE *argv, VALUE self)
+{
+ VALUE str = get_strpath(self);
+ VALUE dname;
+ if (rb_scan_args(argc, argv, "01", &dname) == 0)
+ str = rb_funcall(rb_cFile, rb_intern("expand_path"), 1, str);
+ else
+ str = rb_funcall(rb_cFile, rb_intern("expand_path"), 2, str, dname);
+ return rb_class_new_instance(1, &str, rb_obj_class(self));
+}
+
+/*
+ * See <tt>File.split</tt>. Returns the #dirname and the #basename in an Array.
+ */
+static VALUE
+path_split(VALUE self)
+{
+ VALUE str = get_strpath(self);
+ VALUE ary, dirname, basename;
+ ary = rb_funcall(rb_cFile, rb_intern("split"), 1, str);
+ ary = rb_check_array_type(ary);
+ dirname = rb_ary_entry(ary, 0);
+ basename = rb_ary_entry(ary, 1);
+ dirname = rb_class_new_instance(1, &dirname, rb_obj_class(self));
+ basename = rb_class_new_instance(1, &basename, rb_obj_class(self));
+ return rb_ary_new3(2, dirname, basename);
+}
+
+/*
+ * See <tt>FileTest.blockdev?</tt>.
+ */
+static VALUE
+path_blockdev_p(VALUE self)
+{
+ return rb_funcall(rb_mFileTest, rb_intern("blockdev?"), 1, get_strpath(self));
+}
+
+/*
+ * See <tt>FileTest.chardev?</tt>.
+ */
+static VALUE
+path_chardev_p(VALUE self)
+{
+ return rb_funcall(rb_mFileTest, rb_intern("chardev?"), 1, get_strpath(self));
+}
+
+/*
+ * See <tt>FileTest.executable?</tt>.
+ */
+static VALUE
+path_executable_p(VALUE self)
+{
+ return rb_funcall(rb_mFileTest, rb_intern("executable?"), 1, get_strpath(self));
+}
+
+/*
+ * See <tt>FileTest.executable_real?</tt>.
+ */
+static VALUE
+path_executable_real_p(VALUE self)
+{
+ return rb_funcall(rb_mFileTest, rb_intern("executable_real?"), 1, get_strpath(self));
+}
+
+/*
+ * See <tt>FileTest.exist?</tt>.
+ */
+static VALUE
+path_exist_p(VALUE self)
+{
+ return rb_funcall(rb_mFileTest, rb_intern("exist?"), 1, get_strpath(self));
+}
+
+/*
+ * See <tt>FileTest.grpowned?</tt>.
+ */
+static VALUE
+path_grpowned_p(VALUE self)
+{
+ return rb_funcall(rb_mFileTest, rb_intern("grpowned?"), 1, get_strpath(self));
+}
+
+/*
+ * See <tt>FileTest.directory?</tt>.
+ */
+static VALUE
+path_directory_p(VALUE self)
+{
+ return rb_funcall(rb_mFileTest, rb_intern("directory?"), 1, get_strpath(self));
+}
+
+/*
+ * See <tt>FileTest.file?</tt>.
+ */
+static VALUE
+path_file_p(VALUE self)
+{
+ return rb_funcall(rb_mFileTest, rb_intern("file?"), 1, get_strpath(self));
+}
+
+/*
+ * See <tt>FileTest.pipe?</tt>.
+ */
+static VALUE
+path_pipe_p(VALUE self)
+{
+ return rb_funcall(rb_mFileTest, rb_intern("pipe?"), 1, get_strpath(self));
+}
+
+/*
+ * See <tt>FileTest.socket?</tt>.
+ */
+static VALUE
+path_socket_p(VALUE self)
+{
+ return rb_funcall(rb_mFileTest, rb_intern("socket?"), 1, get_strpath(self));
+}
+
+/*
+ * See <tt>FileTest.owned?</tt>.
+ */
+static VALUE
+path_owned_p(VALUE self)
+{
+ return rb_funcall(rb_mFileTest, rb_intern("owned?"), 1, get_strpath(self));
+}
+
+/*
+ * See <tt>FileTest.readable?</tt>.
+ */
+static VALUE
+path_readable_p(VALUE self)
+{
+ return rb_funcall(rb_mFileTest, rb_intern("readable?"), 1, get_strpath(self));
+}
+
+/*
+ * See <tt>FileTest.world_readable?</tt>.
+ */
+static VALUE
+path_world_readable_p(VALUE self)
+{
+ return rb_funcall(rb_mFileTest, rb_intern("world_readable?"), 1, get_strpath(self));
+}
+
+/*
+ * See <tt>FileTest.readable_real?</tt>.
+ */
+static VALUE
+path_readable_real_p(VALUE self)
+{
+ return rb_funcall(rb_mFileTest, rb_intern("readable_real?"), 1, get_strpath(self));
+}
+
+/*
+ * See <tt>FileTest.setuid?</tt>.
+ */
+static VALUE
+path_setuid_p(VALUE self)
+{
+ return rb_funcall(rb_mFileTest, rb_intern("setuid?"), 1, get_strpath(self));
+}
+
+/*
+ * See <tt>FileTest.setgid?</tt>.
+ */
+static VALUE
+path_setgid_p(VALUE self)
+{
+ return rb_funcall(rb_mFileTest, rb_intern("setgid?"), 1, get_strpath(self));
+}
+
+/*
+ * See <tt>FileTest.size</tt>.
+ */
+static VALUE
+path_size(VALUE self)
+{
+ return rb_funcall(rb_mFileTest, rb_intern("size"), 1, get_strpath(self));
+}
+
+/*
+ * See <tt>FileTest.size?</tt>.
+ */
+static VALUE
+path_size_p(VALUE self)
+{
+ return rb_funcall(rb_mFileTest, rb_intern("size?"), 1, get_strpath(self));
+}
+
+/*
+ * See <tt>FileTest.sticky?</tt>.
+ */
+static VALUE
+path_sticky_p(VALUE self)
+{
+ return rb_funcall(rb_mFileTest, rb_intern("sticky?"), 1, get_strpath(self));
+}
+
+/*
+ * See <tt>FileTest.symlink?</tt>.
+ */
+static VALUE
+path_symlink_p(VALUE self)
+{
+ return rb_funcall(rb_mFileTest, rb_intern("symlink?"), 1, get_strpath(self));
+}
+
+/*
+ * See <tt>FileTest.writable?</tt>.
+ */
+static VALUE
+path_writable_p(VALUE self)
+{
+ return rb_funcall(rb_mFileTest, rb_intern("writable?"), 1, get_strpath(self));
+}
+
+/*
+ * See <tt>FileTest.world_writable?</tt>.
+ */
+static VALUE
+path_world_writable_p(VALUE self)
+{
+ return rb_funcall(rb_mFileTest, rb_intern("world_writable?"), 1, get_strpath(self));
+}
+
+/*
+ * See <tt>FileTest.writable_real?</tt>.
+ */
+static VALUE
+path_writable_real_p(VALUE self)
+{
+ return rb_funcall(rb_mFileTest, rb_intern("writable_real?"), 1, get_strpath(self));
+}
+
+/*
+ * See <tt>FileTest.zero?</tt>.
+ */
+static VALUE
+path_zero_p(VALUE self)
+{
+ return rb_funcall(rb_mFileTest, rb_intern("zero?"), 1, get_strpath(self));
+}
+
+static VALUE
+glob_i(VALUE elt, VALUE klass, int argc, VALUE *argv)
+{
+ return rb_yield(rb_class_new_instance(1, &elt, klass));
+}
+
+/*
+ * See <tt>Dir.glob</tt>. Returns or yields Pathname objects.
+ */
+static VALUE
+path_s_glob(int argc, VALUE *argv, VALUE klass)
+{
+ VALUE args[2];
+ int n;
+
+ n = rb_scan_args(argc, argv, "11", &args[0], &args[1]);
+ if (rb_block_given_p()) {
+ return rb_block_call(rb_cDir, rb_intern("glob"), n, args, glob_i, klass);
+ }
+ else {
+ VALUE ary;
+ long i;
+ ary = rb_funcall2(rb_cDir, rb_intern("glob"), n, args);
+ ary = rb_convert_type(ary, T_ARRAY, "Array", "to_ary");
+ for (i = 0; i < RARRAY_LEN(ary); i++) {
+ VALUE elt = RARRAY_PTR(ary)[i];
+ elt = rb_class_new_instance(1, &elt, klass);
+ rb_ary_store(ary, i, elt);
+ }
+ return ary;
+ }
+}
+
+/*
+ * See <tt>Dir.getwd</tt>. Returns the current working directory as a Pathname.
+ */
+static VALUE
+path_s_getwd(VALUE klass)
+{
+ VALUE str;
+ str = rb_funcall(rb_cDir, rb_intern("getwd"), 0);
+ return rb_class_new_instance(1, &str, klass);
+}
+
+/*
+ * Return the entries (files and subdirectories) in the directory, each as a
+ * Pathname object.
+ *
+ * The result may contain the current directory #<Pathname:.> and the parent
+ * directory #<Pathname:..>.
+ */
+static VALUE
+path_entries(VALUE self)
+{
+ VALUE klass, str, ary;
+ long i;
+ klass = rb_obj_class(self);
+ str = get_strpath(self);
+ ary = rb_funcall(rb_cDir, rb_intern("entries"), 1, str);
+ ary = rb_convert_type(ary, T_ARRAY, "Array", "to_ary");
+ for (i = 0; i < RARRAY_LEN(ary); i++) {
+ VALUE elt = RARRAY_PTR(ary)[i];
+ elt = rb_class_new_instance(1, &elt, klass);
+ rb_ary_store(ary, i, elt);
+ }
+ return ary;
+}
+
+/*
+ * See <tt>Dir.mkdir</tt>. Create the referenced directory.
+ */
+static VALUE
+path_mkdir(int argc, VALUE *argv, VALUE self)
+{
+ VALUE str = get_strpath(self);
+ VALUE vmode;
+ if (rb_scan_args(argc, argv, "01", &vmode) == 0)
+ return rb_funcall(rb_cDir, rb_intern("mkdir"), 1, str);
+ else
+ return rb_funcall(rb_cDir, rb_intern("mkdir"), 2, str, vmode);
+}
+
+/*
+ * See <tt>Dir.rmdir</tt>. Remove the referenced directory.
+ */
+static VALUE
+path_rmdir(VALUE self)
+{
+ return rb_funcall(rb_cDir, rb_intern("rmdir"), 1, get_strpath(self));
+}
+
+/*
+ * See <tt>Dir.open</tt>.
+ */
+static VALUE
+path_opendir(VALUE self)
+{
+ VALUE args[1];
+
+ args[0] = get_strpath(self);
+ return rb_block_call(rb_cDir, rb_intern("open"), 1, args, 0, 0);
+}
+
+static VALUE
+each_entry_i(VALUE elt, VALUE klass, int argc, VALUE *argv)
+{
+ return rb_yield(rb_class_new_instance(1, &elt, klass));
+}
+
+/*
+ * Iterates over the entries (files and subdirectories) in the directory. It
+ * yields a Pathname object for each entry.
+ *
+ * This method has available since 1.8.1.
+ */
+static VALUE
+path_each_entry(VALUE self)
+{
+ VALUE args[1];
+
+ args[0] = get_strpath(self);
+ return rb_block_call(rb_cDir, rb_intern("foreach"), 1, args, each_entry_i, rb_obj_class(self));
+}
+
+static VALUE
+unlink_body(VALUE str)
+{
+ return rb_funcall(rb_cDir, rb_intern("unlink"), 1, str);
+}
+
+static VALUE
+unlink_rescue(VALUE str, VALUE errinfo)
+{
+ return rb_funcall(rb_cFile, rb_intern("unlink"), 1, str);
+}
+
+/*
+ * Removes a file or directory, using <tt>File.unlink</tt> or
+ * <tt>Dir.unlink</tt> as necessary.
+ */
+static VALUE
+path_unlink(VALUE self)
+{
+ VALUE eENOTDIR = rb_const_get_at(rb_mErrno, rb_intern("ENOTDIR"));
+ VALUE str = get_strpath(self);
+ return rb_rescue2(unlink_body, str, unlink_rescue, str, eENOTDIR, (VALUE)0);
+}
+
+/*
+ * create a pathname object.
+ *
+ * This method is available since 1.8.5.
+ */
+static VALUE
+path_f_pathname(VALUE self, VALUE str)
+{
+ return rb_class_new_instance(1, &str, rb_cPathname);
+}
+
+/*
+ * == Pathname
+ *
+ * Pathname represents a pathname which locates a file in a filesystem.
+ * The pathname depends on OS: Unix, Windows, etc.
+ * Pathname library works with pathnames of local OS.
+ * However non-Unix pathnames are supported experimentally.
+ *
+ * It does not represent the file itself.
+ * A Pathname can be relative or absolute. It's not until you try to
+ * reference the file that it even matters whether the file exists or not.
+ *
+ * Pathname is immutable. It has no method for destructive update.
+ *
+ * The value of this class is to manipulate file path information in a neater
+ * way than standard Ruby provides. The examples below demonstrate the
+ * difference. *All* functionality from File, FileTest, and some from Dir and
+ * FileUtils is included, in an unsurprising way. It is essentially a facade for
+ * all of these, and more.
+ *
+ * == Examples
+ *
+ * === Example 1: Using Pathname
+ *
+ * require 'pathname'
+ * pn = Pathname.new("/usr/bin/ruby")
+ * size = pn.size # 27662
+ * isdir = pn.directory? # false
+ * dir = pn.dirname # Pathname:/usr/bin
+ * base = pn.basename # Pathname:ruby
+ * dir, base = pn.split # [Pathname:/usr/bin, Pathname:ruby]
+ * data = pn.read
+ * pn.open { |f| _ }
+ * pn.each_line { |line| _ }
+ *
+ * === Example 2: Using standard Ruby
+ *
+ * pn = "/usr/bin/ruby"
+ * size = File.size(pn) # 27662
+ * isdir = File.directory?(pn) # false
+ * dir = File.dirname(pn) # "/usr/bin"
+ * base = File.basename(pn) # "ruby"
+ * dir, base = File.split(pn) # ["/usr/bin", "ruby"]
+ * data = File.read(pn)
+ * File.open(pn) { |f| _ }
+ * File.foreach(pn) { |line| _ }
+ *
+ * === Example 3: Special features
+ *
+ * p1 = Pathname.new("/usr/lib") # Pathname:/usr/lib
+ * p2 = p1 + "ruby/1.8" # Pathname:/usr/lib/ruby/1.8
+ * p3 = p1.parent # Pathname:/usr
+ * p4 = p2.relative_path_from(p3) # Pathname:lib/ruby/1.8
+ * pwd = Pathname.pwd # Pathname:/home/gavin
+ * pwd.absolute? # true
+ * p5 = Pathname.new "." # Pathname:.
+ * p5 = p5 + "music/../articles" # Pathname:music/../articles
+ * p5.cleanpath # Pathname:articles
+ * p5.realpath # Pathname:/home/gavin/articles
+ * p5.children # [Pathname:/home/gavin/articles/linux, ...]
+ *
+ * == Breakdown of functionality
+ *
+ * === Core methods
+ *
+ * These methods are effectively manipulating a String, because that's
+ * all a path is. Except for #mountpoint?, #children, #each_child,
+ * #realdirpath and #realpath, they don't access the filesystem.
+ *
+ * - +
+ * - #join
+ * - #parent
+ * - #root?
+ * - #absolute?
+ * - #relative?
+ * - #relative_path_from
+ * - #each_filename
+ * - #cleanpath
+ * - #realpath
+ * - #realdirpath
+ * - #children
+ * - #each_child
+ * - #mountpoint?
+ *
+ * === File status predicate methods
+ *
+ * These methods are a facade for FileTest:
+ * - #blockdev?
+ * - #chardev?
+ * - #directory?
+ * - #executable?
+ * - #executable_real?
+ * - #exist?
+ * - #file?
+ * - #grpowned?
+ * - #owned?
+ * - #pipe?
+ * - #readable?
+ * - #world_readable?
+ * - #readable_real?
+ * - #setgid?
+ * - #setuid?
+ * - #size
+ * - #size?
+ * - #socket?
+ * - #sticky?
+ * - #symlink?
+ * - #writable?
+ * - #world_writable?
+ * - #writable_real?
+ * - #zero?
+ *
+ * === File property and manipulation methods
+ *
+ * These methods are a facade for File:
+ * - #atime
+ * - #ctime
+ * - #mtime
+ * - #chmod(mode)
+ * - #lchmod(mode)
+ * - #chown(owner, group)
+ * - #lchown(owner, group)
+ * - #fnmatch(pattern, *args)
+ * - #fnmatch?(pattern, *args)
+ * - #ftype
+ * - #make_link(old)
+ * - #open(*args, &block)
+ * - #readlink
+ * - #rename(to)
+ * - #stat
+ * - #lstat
+ * - #make_symlink(old)
+ * - #truncate(length)
+ * - #utime(atime, mtime)
+ * - #basename(*args)
+ * - #dirname
+ * - #extname
+ * - #expand_path(*args)
+ * - #split
+ *
+ * === Directory methods
+ *
+ * These methods are a facade for Dir:
+ * - Pathname.glob(*args)
+ * - Pathname.getwd / Pathname.pwd
+ * - #rmdir
+ * - #entries
+ * - #each_entry(&block)
+ * - #mkdir(*args)
+ * - #opendir(*args)
+ *
+ * === IO
+ *
+ * These methods are a facade for IO:
+ * - #each_line(*args, &block)
+ * - #read(*args)
+ * - #binread(*args)
+ * - #readlines(*args)
+ * - #sysopen(*args)
+ *
+ * === Utilities
+ *
+ * These methods are a mixture of Find, FileUtils, and others:
+ * - #find(&block)
+ * - #mkpath
+ * - #rmtree
+ * - #unlink / #delete
+ *
+ *
+ * == Method documentation
+ *
+ * As the above section shows, most of the methods in Pathname are facades. The
+ * documentation for these methods generally just says, for instance, "See
+ * FileTest.writable?", as you should be familiar with the original method
+ * anyway, and its documentation (e.g. through +ri+) will contain more
+ * information. In some cases, a brief description will follow.
+ */
+void
+Init_pathname()
+{
+ id_at_path = rb_intern("@path");
+ id_to_path = rb_intern("to_path");
+
+ rb_cPathname = rb_define_class("Pathname", rb_cObject);
+ rb_define_method(rb_cPathname, "initialize", path_initialize, 1);
+ rb_define_method(rb_cPathname, "freeze", path_freeze, 0);
+ rb_define_method(rb_cPathname, "taint", path_taint, 0);
+ rb_define_method(rb_cPathname, "untaint", path_untaint, 0);
+ rb_define_method(rb_cPathname, "==", path_eq, 1);
+ rb_define_method(rb_cPathname, "===", path_eq, 1);
+ rb_define_method(rb_cPathname, "eql?", path_eq, 1);
+ rb_define_method(rb_cPathname, "<=>", path_cmp, 1);
+ rb_define_method(rb_cPathname, "hash", path_hash, 0);
+ rb_define_method(rb_cPathname, "to_s", path_to_s, 0);
+ rb_define_method(rb_cPathname, "to_path", path_to_s, 0);
+ rb_define_method(rb_cPathname, "inspect", path_inspect, 0);
+ rb_define_method(rb_cPathname, "sub", path_sub, -1);
+ rb_define_method(rb_cPathname, "sub_ext", path_sub_ext, 1);
+ rb_define_method(rb_cPathname, "realpath", path_realpath, -1);
+ rb_define_method(rb_cPathname, "realdirpath", path_realdirpath, -1);
+ rb_define_method(rb_cPathname, "each_line", path_each_line, -1);
+ rb_define_method(rb_cPathname, "read", path_read, -1);
+ rb_define_method(rb_cPathname, "binread", path_binread, -1);
+ rb_define_method(rb_cPathname, "readlines", path_readlines, -1);
+ rb_define_method(rb_cPathname, "sysopen", path_sysopen, -1);
+ rb_define_method(rb_cPathname, "atime", path_atime, 0);
+ rb_define_method(rb_cPathname, "ctime", path_ctime, 0);
+ rb_define_method(rb_cPathname, "mtime", path_mtime, 0);
+ rb_define_method(rb_cPathname, "chmod", path_chmod, 1);
+ rb_define_method(rb_cPathname, "lchmod", path_lchmod, 1);
+ rb_define_method(rb_cPathname, "chown", path_chown, 2);
+ rb_define_method(rb_cPathname, "lchown", path_lchown, 2);
+ rb_define_method(rb_cPathname, "fnmatch", path_fnmatch, -1);
+ rb_define_method(rb_cPathname, "fnmatch?", path_fnmatch, -1);
+ rb_define_method(rb_cPathname, "ftype", path_ftype, 0);
+ rb_define_method(rb_cPathname, "make_link", path_make_link, 1);
+ rb_define_method(rb_cPathname, "open", path_open, -1);
+ rb_define_method(rb_cPathname, "readlink", path_readlink, 0);
+ rb_define_method(rb_cPathname, "rename", path_rename, 1);
+ rb_define_method(rb_cPathname, "stat", path_stat, 0);
+ rb_define_method(rb_cPathname, "lstat", path_lstat, 0);
+ rb_define_method(rb_cPathname, "make_symlink", path_make_symlink, 1);
+ rb_define_method(rb_cPathname, "truncate", path_truncate, 1);
+ rb_define_method(rb_cPathname, "utime", path_utime, 2);
+ rb_define_method(rb_cPathname, "basename", path_basename, -1);
+ rb_define_method(rb_cPathname, "dirname", path_dirname, 0);
+ rb_define_method(rb_cPathname, "extname", path_extname, 0);
+ rb_define_method(rb_cPathname, "expand_path", path_expand_path, -1);
+ rb_define_method(rb_cPathname, "split", path_split, 0);
+ rb_define_method(rb_cPathname, "blockdev?", path_blockdev_p, 0);
+ rb_define_method(rb_cPathname, "chardev?", path_chardev_p, 0);
+ rb_define_method(rb_cPathname, "executable?", path_executable_p, 0);
+ rb_define_method(rb_cPathname, "executable_real?", path_executable_real_p, 0);
+ rb_define_method(rb_cPathname, "exist?", path_exist_p, 0);
+ rb_define_method(rb_cPathname, "grpowned?", path_grpowned_p, 0);
+ rb_define_method(rb_cPathname, "directory?", path_directory_p, 0);
+ rb_define_method(rb_cPathname, "file?", path_file_p, 0);
+ rb_define_method(rb_cPathname, "pipe?", path_pipe_p, 0);
+ rb_define_method(rb_cPathname, "socket?", path_socket_p, 0);
+ rb_define_method(rb_cPathname, "owned?", path_owned_p, 0);
+ rb_define_method(rb_cPathname, "readable?", path_readable_p, 0);
+ rb_define_method(rb_cPathname, "world_readable?", path_world_readable_p, 0);
+ rb_define_method(rb_cPathname, "readable_real?", path_readable_real_p, 0);
+ rb_define_method(rb_cPathname, "setuid?", path_setuid_p, 0);
+ rb_define_method(rb_cPathname, "setgid?", path_setgid_p, 0);
+ rb_define_method(rb_cPathname, "size", path_size, 0);
+ rb_define_method(rb_cPathname, "size?", path_size_p, 0);
+ rb_define_method(rb_cPathname, "sticky?", path_sticky_p, 0);
+ rb_define_method(rb_cPathname, "symlink?", path_symlink_p, 0);
+ rb_define_method(rb_cPathname, "writable?", path_writable_p, 0);
+ rb_define_method(rb_cPathname, "world_writable?", path_world_writable_p, 0);
+ rb_define_method(rb_cPathname, "writable_real?", path_writable_real_p, 0);
+ rb_define_method(rb_cPathname, "zero?", path_zero_p, 0);
+ rb_define_singleton_method(rb_cPathname, "glob", path_s_glob, -1);
+ rb_define_singleton_method(rb_cPathname, "getwd", path_s_getwd, 0);
+ rb_define_singleton_method(rb_cPathname, "pwd", path_s_getwd, 0);
+ rb_define_method(rb_cPathname, "entries", path_entries, 0);
+ rb_define_method(rb_cPathname, "mkdir", path_mkdir, -1);
+ rb_define_method(rb_cPathname, "rmdir", path_rmdir, 0);
+ rb_define_method(rb_cPathname, "opendir", path_opendir, 0);
+ rb_define_method(rb_cPathname, "each_entry", path_each_entry, 0);
+ rb_define_method(rb_cPathname, "unlink", path_unlink, 0);
+ rb_define_method(rb_cPathname, "delete", path_unlink, 0);
+ rb_undef_method(rb_cPathname, "=~");
+ rb_define_global_function("Pathname", path_f_pathname, 1);
+}
diff --git a/ext/psych/emitter.c b/ext/psych/emitter.c
new file mode 100644
index 0000000000..15fdcfe75b
--- /dev/null
+++ b/ext/psych/emitter.c
@@ -0,0 +1,517 @@
+#include <psych.h>
+
+VALUE cPsychEmitter;
+static ID id_write;
+
+static void emit(yaml_emitter_t * emitter, yaml_event_t * event)
+{
+ if(!yaml_emitter_emit(emitter, event))
+ rb_raise(rb_eRuntimeError, "%s", emitter->problem);
+}
+
+static int writer(void *ctx, unsigned char *buffer, size_t size)
+{
+ VALUE io = (VALUE)ctx;
+ VALUE str = rb_str_new((const char *)buffer, (long)size);
+ VALUE wrote = rb_funcall(io, id_write, 1, str);
+ return (int)NUM2INT(wrote);
+}
+
+static void dealloc(void * ptr)
+{
+ yaml_emitter_t * emitter;
+
+ emitter = (yaml_emitter_t *)ptr;
+ yaml_emitter_delete(emitter);
+ xfree(emitter);
+}
+
+static VALUE allocate(VALUE klass)
+{
+ yaml_emitter_t * emitter;
+
+ emitter = xmalloc(sizeof(yaml_emitter_t));
+
+ yaml_emitter_initialize(emitter);
+ yaml_emitter_set_unicode(emitter, 1);
+ yaml_emitter_set_indent(emitter, 2);
+
+ return Data_Wrap_Struct(klass, 0, dealloc, emitter);
+}
+
+/* call-seq: Psych::Emitter.new(io)
+ *
+ * Create a new Psych::Emitter that writes to +io+.
+ */
+static VALUE initialize(VALUE self, VALUE io)
+{
+ yaml_emitter_t * emitter;
+ Data_Get_Struct(self, yaml_emitter_t, emitter);
+
+ yaml_emitter_set_output(emitter, writer, (void *)io);
+
+ return self;
+}
+
+/* call-seq: emitter.start_stream(encoding)
+ *
+ * Start a stream emission with +encoding+
+ *
+ * See Psych::Handler#start_stream
+ */
+static VALUE start_stream(VALUE self, VALUE encoding)
+{
+ yaml_emitter_t * emitter;
+ yaml_event_t event;
+ Data_Get_Struct(self, yaml_emitter_t, emitter);
+ Check_Type(encoding, T_FIXNUM);
+
+ yaml_stream_start_event_initialize(&event, (yaml_encoding_t)NUM2INT(encoding));
+
+ emit(emitter, &event);
+
+ return self;
+}
+
+/* call-seq: emitter.end_stream
+ *
+ * End a stream emission
+ *
+ * See Psych::Handler#end_stream
+ */
+static VALUE end_stream(VALUE self)
+{
+ yaml_emitter_t * emitter;
+ yaml_event_t event;
+ Data_Get_Struct(self, yaml_emitter_t, emitter);
+
+ yaml_stream_end_event_initialize(&event);
+
+ emit(emitter, &event);
+
+ return self;
+}
+
+/* call-seq: emitter.start_document(version, tags, implicit)
+ *
+ * Start a document emission with YAML +version+, +tags+, and an +implicit+
+ * start.
+ *
+ * See Psych::Handler#start_document
+ */
+static VALUE start_document(VALUE self, VALUE version, VALUE tags, VALUE imp)
+{
+ yaml_emitter_t * emitter;
+ yaml_tag_directive_t * head = NULL;
+ yaml_tag_directive_t * tail = NULL;
+ yaml_event_t event;
+ yaml_version_directive_t version_directive;
+ Data_Get_Struct(self, yaml_emitter_t, emitter);
+
+
+ Check_Type(version, T_ARRAY);
+
+ if(RARRAY_LEN(version) > 0) {
+ VALUE major = rb_ary_entry(version, (long)0);
+ VALUE minor = rb_ary_entry(version, (long)1);
+
+ version_directive.major = NUM2INT(major);
+ version_directive.minor = NUM2INT(minor);
+ }
+
+ if(RTEST(tags)) {
+ int i = 0;
+#ifdef HAVE_RUBY_ENCODING_H
+ rb_encoding * encoding = rb_utf8_encoding();
+#endif
+
+ Check_Type(tags, T_ARRAY);
+
+ head = xcalloc((size_t)RARRAY_LEN(tags), sizeof(yaml_tag_directive_t));
+ tail = head;
+
+ for(i = 0; i < RARRAY_LEN(tags); i++) {
+ VALUE tuple = RARRAY_PTR(tags)[i];
+ VALUE name;
+ VALUE value;
+
+ Check_Type(tuple, T_ARRAY);
+
+ if(RARRAY_LEN(tuple) < 2) {
+ xfree(head);
+ rb_raise(rb_eRuntimeError, "tag tuple must be of length 2");
+ }
+ name = RARRAY_PTR(tuple)[0];
+ value = RARRAY_PTR(tuple)[1];
+#ifdef HAVE_RUBY_ENCODING_H
+ name = rb_str_export_to_enc(name, encoding);
+ value = rb_str_export_to_enc(value, encoding);
+#endif
+
+ tail->handle = (yaml_char_t *)StringValuePtr(name);
+ tail->prefix = (yaml_char_t *)StringValuePtr(value);
+
+ tail++;
+ }
+ }
+
+ yaml_document_start_event_initialize(
+ &event,
+ (RARRAY_LEN(version) > 0) ? &version_directive : NULL,
+ head,
+ tail,
+ imp ? 1 : 0
+ );
+
+ emit(emitter, &event);
+
+ if(head) xfree(head);
+
+ return self;
+}
+
+/* call-seq: emitter.end_document(implicit)
+ *
+ * End a document emission with an +implicit+ ending.
+ *
+ * See Psych::Handler#end_document
+ */
+static VALUE end_document(VALUE self, VALUE imp)
+{
+ yaml_emitter_t * emitter;
+ yaml_event_t event;
+ Data_Get_Struct(self, yaml_emitter_t, emitter);
+
+ yaml_document_end_event_initialize(&event, imp ? 1 : 0);
+
+ emit(emitter, &event);
+
+ return self;
+}
+
+/* call-seq: emitter.scalar(value, anchor, tag, plain, quoted, style)
+ *
+ * Emit a scalar with +value+, +anchor+, +tag+, and a +plain+ or +quoted+
+ * string type with +style+.
+ *
+ * See Psych::Handler#scalar
+ */
+static VALUE scalar(
+ VALUE self,
+ VALUE value,
+ VALUE anchor,
+ VALUE tag,
+ VALUE plain,
+ VALUE quoted,
+ VALUE style
+ ) {
+ yaml_emitter_t * emitter;
+ yaml_event_t event;
+#ifdef HAVE_RUBY_ENCODING_H
+ rb_encoding *encoding;
+#endif
+ Data_Get_Struct(self, yaml_emitter_t, emitter);
+
+ Check_Type(value, T_STRING);
+
+#ifdef HAVE_RUBY_ENCODING_H
+ encoding = rb_utf8_encoding();
+
+ value = rb_str_export_to_enc(value, encoding);
+
+ if(!NIL_P(anchor)) {
+ Check_Type(anchor, T_STRING);
+ anchor = rb_str_export_to_enc(anchor, encoding);
+ }
+
+ if(!NIL_P(tag)) {
+ Check_Type(tag, T_STRING);
+ tag = rb_str_export_to_enc(tag, encoding);
+ }
+#endif
+
+ yaml_scalar_event_initialize(
+ &event,
+ (yaml_char_t *)(NIL_P(anchor) ? NULL : StringValuePtr(anchor)),
+ (yaml_char_t *)(NIL_P(tag) ? NULL : StringValuePtr(tag)),
+ (yaml_char_t*)StringValuePtr(value),
+ (int)RSTRING_LEN(value),
+ plain ? 1 : 0,
+ quoted ? 1 : 0,
+ (yaml_scalar_style_t)NUM2INT(style)
+ );
+
+ emit(emitter, &event);
+
+ return self;
+}
+
+/* call-seq: emitter.start_sequence(anchor, tag, implicit, style)
+ *
+ * Start emitting a sequence with +anchor+, a +tag+, +implicit+ sequence
+ * start and end, along with +style+.
+ *
+ * See Psych::Handler#start_sequence
+ */
+static VALUE start_sequence(
+ VALUE self,
+ VALUE anchor,
+ VALUE tag,
+ VALUE implicit,
+ VALUE style
+ ) {
+ yaml_emitter_t * emitter;
+ yaml_event_t event;
+
+#ifdef HAVE_RUBY_ENCODING_H
+ rb_encoding * encoding = rb_utf8_encoding();
+
+ if(!NIL_P(anchor)) {
+ Check_Type(anchor, T_STRING);
+ anchor = rb_str_export_to_enc(anchor, encoding);
+ }
+
+ if(!NIL_P(tag)) {
+ Check_Type(tag, T_STRING);
+ tag = rb_str_export_to_enc(tag, encoding);
+ }
+#endif
+
+ Data_Get_Struct(self, yaml_emitter_t, emitter);
+
+ yaml_sequence_start_event_initialize(
+ &event,
+ (yaml_char_t *)(NIL_P(anchor) ? NULL : StringValuePtr(anchor)),
+ (yaml_char_t *)(NIL_P(tag) ? NULL : StringValuePtr(tag)),
+ implicit ? 1 : 0,
+ (yaml_sequence_style_t)NUM2INT(style)
+ );
+
+ emit(emitter, &event);
+
+ return self;
+}
+
+/* call-seq: emitter.end_sequence
+ *
+ * End sequence emission.
+ *
+ * See Psych::Handler#end_sequence
+ */
+static VALUE end_sequence(VALUE self)
+{
+ yaml_emitter_t * emitter;
+ yaml_event_t event;
+ Data_Get_Struct(self, yaml_emitter_t, emitter);
+
+ yaml_sequence_end_event_initialize(&event);
+
+ emit(emitter, &event);
+
+ return self;
+}
+
+/* call-seq: emitter.start_mapping(anchor, tag, implicit, style)
+ *
+ * Start emitting a YAML map with +anchor+, +tag+, an +implicit+ start
+ * and end, and +style+.
+ *
+ * See Psych::Handler#start_mapping
+ */
+static VALUE start_mapping(
+ VALUE self,
+ VALUE anchor,
+ VALUE tag,
+ VALUE implicit,
+ VALUE style
+ ) {
+ yaml_emitter_t * emitter;
+ yaml_event_t event;
+#ifdef HAVE_RUBY_ENCODING_H
+ rb_encoding *encoding;
+#endif
+ Data_Get_Struct(self, yaml_emitter_t, emitter);
+
+#ifdef HAVE_RUBY_ENCODING_H
+ encoding = rb_utf8_encoding();
+
+ if(!NIL_P(anchor)) {
+ Check_Type(anchor, T_STRING);
+ anchor = rb_str_export_to_enc(anchor, encoding);
+ }
+
+ if(!NIL_P(tag)) {
+ Check_Type(tag, T_STRING);
+ tag = rb_str_export_to_enc(tag, encoding);
+ }
+#endif
+
+ yaml_mapping_start_event_initialize(
+ &event,
+ (yaml_char_t *)(NIL_P(anchor) ? NULL : StringValuePtr(anchor)),
+ (yaml_char_t *)(NIL_P(tag) ? NULL : StringValuePtr(tag)),
+ implicit ? 1 : 0,
+ (yaml_mapping_style_t)NUM2INT(style)
+ );
+
+ emit(emitter, &event);
+
+ return self;
+}
+
+/* call-seq: emitter.end_mapping
+ *
+ * Emit the end of a mapping.
+ *
+ * See Psych::Handler#end_mapping
+ */
+static VALUE end_mapping(VALUE self)
+{
+ yaml_emitter_t * emitter;
+ yaml_event_t event;
+ Data_Get_Struct(self, yaml_emitter_t, emitter);
+
+ yaml_mapping_end_event_initialize(&event);
+
+ emit(emitter, &event);
+
+ return self;
+}
+
+/* call-seq: emitter.alias(anchor)
+ *
+ * Emit an alias with +anchor+.
+ *
+ * See Psych::Handler#alias
+ */
+static VALUE alias(VALUE self, VALUE anchor)
+{
+ yaml_emitter_t * emitter;
+ yaml_event_t event;
+ Data_Get_Struct(self, yaml_emitter_t, emitter);
+
+#ifdef HAVE_RUBY_ENCODING_H
+ if(!NIL_P(anchor)) {
+ Check_Type(anchor, T_STRING);
+ anchor = rb_str_export_to_enc(anchor, rb_utf8_encoding());
+ }
+#endif
+
+ yaml_alias_event_initialize(
+ &event,
+ (yaml_char_t *)(NIL_P(anchor) ? NULL : StringValuePtr(anchor))
+ );
+
+ emit(emitter, &event);
+
+ return self;
+}
+
+/* call-seq: emitter.canonical = true
+ *
+ * Set the output style to canonical, or not.
+ */
+static VALUE set_canonical(VALUE self, VALUE style)
+{
+ yaml_emitter_t * emitter;
+ Data_Get_Struct(self, yaml_emitter_t, emitter);
+
+ yaml_emitter_set_canonical(emitter, Qtrue == style ? 1 : 0);
+
+ return style;
+}
+
+/* call-seq: emitter.canonical
+ *
+ * Get the output style, canonical or not.
+ */
+static VALUE canonical(VALUE self)
+{
+ yaml_emitter_t * emitter;
+ Data_Get_Struct(self, yaml_emitter_t, emitter);
+
+ return (emitter->canonical == 0) ? Qfalse : Qtrue;
+}
+
+/* call-seq: emitter.indentation = level
+ *
+ * Set the indentation level to +level+. The level must be less than 10 and
+ * greater than 1.
+ */
+static VALUE set_indentation(VALUE self, VALUE level)
+{
+ yaml_emitter_t * emitter;
+ Data_Get_Struct(self, yaml_emitter_t, emitter);
+
+ yaml_emitter_set_indent(emitter, NUM2INT(level));
+
+ return level;
+}
+
+/* call-seq: emitter.indentation
+ *
+ * Get the indentation level.
+ */
+static VALUE indentation(VALUE self)
+{
+ yaml_emitter_t * emitter;
+ Data_Get_Struct(self, yaml_emitter_t, emitter);
+
+ return INT2NUM(emitter->best_indent);
+}
+
+/* call-seq: emitter.line_width
+ *
+ * Get the preferred line width.
+ */
+static VALUE line_width(VALUE self)
+{
+ yaml_emitter_t * emitter;
+ Data_Get_Struct(self, yaml_emitter_t, emitter);
+
+ return INT2NUM(emitter->best_width);
+}
+
+/* call-seq: emitter.line_width = width
+ *
+ * Set the preferred line with to +width+.
+ */
+static VALUE set_line_width(VALUE self, VALUE width)
+{
+ yaml_emitter_t * emitter;
+ Data_Get_Struct(self, yaml_emitter_t, emitter);
+
+ yaml_emitter_set_width(emitter, NUM2INT(width));
+
+ return width;
+}
+
+void Init_psych_emitter()
+{
+ VALUE psych = rb_define_module("Psych");
+ VALUE handler = rb_define_class_under(psych, "Handler", rb_cObject);
+ cPsychEmitter = rb_define_class_under(psych, "Emitter", handler);
+
+ rb_define_alloc_func(cPsychEmitter, allocate);
+
+ rb_define_method(cPsychEmitter, "initialize", initialize, 1);
+ rb_define_method(cPsychEmitter, "start_stream", start_stream, 1);
+ rb_define_method(cPsychEmitter, "end_stream", end_stream, 0);
+ rb_define_method(cPsychEmitter, "start_document", start_document, 3);
+ rb_define_method(cPsychEmitter, "end_document", end_document, 1);
+ rb_define_method(cPsychEmitter, "scalar", scalar, 6);
+ rb_define_method(cPsychEmitter, "start_sequence", start_sequence, 4);
+ rb_define_method(cPsychEmitter, "end_sequence", end_sequence, 0);
+ rb_define_method(cPsychEmitter, "start_mapping", start_mapping, 4);
+ rb_define_method(cPsychEmitter, "end_mapping", end_mapping, 0);
+ rb_define_method(cPsychEmitter, "alias", alias, 1);
+ rb_define_method(cPsychEmitter, "canonical", canonical, 0);
+ rb_define_method(cPsychEmitter, "canonical=", set_canonical, 1);
+ rb_define_method(cPsychEmitter, "indentation", indentation, 0);
+ rb_define_method(cPsychEmitter, "indentation=", set_indentation, 1);
+ rb_define_method(cPsychEmitter, "line_width", line_width, 0);
+ rb_define_method(cPsychEmitter, "line_width=", set_line_width, 1);
+
+ id_write = rb_intern("write");
+}
+/* vim: set noet sws=4 sw=4: */
diff --git a/ext/psych/emitter.h b/ext/psych/emitter.h
new file mode 100644
index 0000000000..560451ef31
--- /dev/null
+++ b/ext/psych/emitter.h
@@ -0,0 +1,8 @@
+#ifndef PSYCH_EMITTER_H
+#define PSYCH_EMITTER_H
+
+#include <psych.h>
+
+void Init_psych_emitter();
+
+#endif
diff --git a/ext/psych/extconf.rb b/ext/psych/extconf.rb
new file mode 100644
index 0000000000..11f44ac104
--- /dev/null
+++ b/ext/psych/extconf.rb
@@ -0,0 +1,16 @@
+require 'mkmf'
+
+# :stopdoc:
+
+dir_config 'libyaml'
+
+def asplode missing
+ abort "#{missing} is missing. Please install libyaml."
+end
+
+asplode('yaml.h') unless find_header 'yaml.h'
+asplode('libyaml') unless find_library 'yaml', 'yaml_get_version'
+
+create_makefile 'psych'
+
+# :startdoc:
diff --git a/ext/psych/lib/psych.rb b/ext/psych/lib/psych.rb
new file mode 100644
index 0000000000..1895be6193
--- /dev/null
+++ b/ext/psych/lib/psych.rb
@@ -0,0 +1,331 @@
+require 'psych.so'
+require 'psych/nodes'
+require 'psych/streaming'
+require 'psych/visitors'
+require 'psych/handler'
+require 'psych/tree_builder'
+require 'psych/parser'
+require 'psych/omap'
+require 'psych/set'
+require 'psych/coder'
+require 'psych/core_ext'
+require 'psych/deprecated'
+require 'psych/stream'
+require 'psych/json/tree_builder'
+require 'psych/json/stream'
+require 'psych/handlers/document_stream'
+
+###
+# = Overview
+#
+# Psych is a YAML parser and emitter. Psych leverages
+# libyaml[http://libyaml.org] for it's YAML parsing and emitting capabilities.
+# In addition to wrapping libyaml, Psych also knows how to serialize and
+# de-serialize most Ruby objects to and from the YAML format.
+#
+# = I NEED TO PARSE OR EMIT YAML RIGHT NOW!
+#
+# # Parse some YAML
+# Psych.load("--- foo") # => "foo"
+#
+# # Emit some YAML
+# Psych.dump("foo") # => "--- foo\n...\n"
+# { :a => 'b'}.to_yaml # => "---\n:a: b\n"
+#
+# Got more time on your hands? Keep on reading!
+#
+# == YAML Parsing
+#
+# Psych provides a range of interfaces for parsing a YAML document ranging from
+# low level to high level, depending on your parsing needs. At the lowest
+# level, is an event based parser. Mid level is access to the raw YAML AST,
+# and at the highest level is the ability to unmarshal YAML to ruby objects.
+#
+# === Low level parsing
+#
+# The lowest level parser should be used when the YAML input is already known,
+# and the developer does not want to pay the price of building an AST or
+# automatic detection and conversion to ruby objects. See Psych::Parser for
+# more information on using the event based parser.
+#
+# === Mid level parsing
+#
+# Psych provides access to an AST produced from parsing a YAML document. This
+# tree is built using the Psych::Parser and Psych::TreeBuilder. The AST can
+# be examined and manipulated freely. Please see Psych::parse_stream,
+# Psych::Nodes, and Psych::Nodes::Node for more information on dealing with
+# YAML syntax trees.
+#
+# === High level parsing
+#
+# The high level YAML parser provided by Psych simply takes YAML as input and
+# returns a Ruby data structure. For information on using the high level parser
+# see Psych.load
+#
+# == YAML Emitting
+#
+# Psych provides a range of interfaces ranging from low to high level for
+# producing YAML documents. Very similar to the YAML parsing interfaces, Psych
+# provides at the lowest level, an event based system, mid-level is building
+# a YAML AST, and the highest level is converting a Ruby object straight to
+# a YAML document.
+#
+# === Low level emitting
+#
+# The lowest level emitter is an event based system. Events are sent to a
+# Psych::Emitter object. That object knows how to convert the events to a YAML
+# document. This interface should be used when document format is known in
+# advance or speed is a concern. See Psych::Emitter for more information.
+#
+# === Mid level emitting
+#
+# At the mid level is building an AST. This AST is exactly the same as the AST
+# used when parsing a YAML document. Users can build an AST by hand and the
+# AST knows how to emit itself as a YAML document. See Psych::Nodes,
+# Psych::Nodes::Node, and Psych::TreeBuilder for more information on building
+# a YAML AST.
+#
+# === High level emitting
+#
+# The high level emitter has the easiest interface. Psych simply takes a Ruby
+# data structure and converts it to a YAML document. See Psych.dump for more
+# information on dumping a Ruby data structure.
+
+module Psych
+ # The version is Psych you're using
+ VERSION = '1.3.2'
+
+ # The version of libyaml Psych is using
+ LIBYAML_VERSION = Psych.libyaml_version.join '.'
+
+ class Exception < RuntimeError
+ end
+
+ class BadAlias < Exception
+ end
+
+ ###
+ # Load +yaml+ in to a Ruby data structure. If multiple documents are
+ # provided, the object contained in the first document will be returned.
+ # +filename+ will be used in the exception message if any exception is raised
+ # while parsing.
+ #
+ # Raises a Psych::SyntaxError when a YAML syntax error is detected.
+ #
+ # Example:
+ #
+ # Psych.load("--- a") # => 'a'
+ # Psych.load("---\n - a\n - b") # => ['a', 'b']
+ #
+ # begin
+ # Psych.load("--- `", "file.txt")
+ # rescue Psych::SyntaxError => ex
+ # ex.file # => 'file.txt'
+ # ex.message # => "(foo.txt): found character that cannot start any token"
+ # end
+ def self.load yaml, filename = nil
+ result = parse(yaml, filename)
+ result ? result.to_ruby : result
+ end
+
+ ###
+ # Parse a YAML string in +yaml+. Returns the first object of a YAML AST.
+ # +filename+ is used in the exception message if a Psych::SyntaxError is
+ # raised.
+ #
+ # Raises a Psych::SyntaxError when a YAML syntax error is detected.
+ #
+ # Example:
+ #
+ # Psych.parse("---\n - a\n - b") # => #<Psych::Nodes::Sequence:0x00>
+ #
+ # begin
+ # Psych.parse("--- `", "file.txt")
+ # rescue Psych::SyntaxError => ex
+ # ex.file # => 'file.txt'
+ # ex.message # => "(foo.txt): found character that cannot start any token"
+ # end
+ #
+ # See Psych::Nodes for more information about YAML AST.
+ def self.parse yaml, filename = nil
+ parse_stream(yaml, filename) do |node|
+ return node
+ end
+ false
+ end
+
+ ###
+ # Parse a file at +filename+. Returns the YAML AST.
+ #
+ # Raises a Psych::SyntaxError when a YAML syntax error is detected.
+ def self.parse_file filename
+ File.open filename, 'r:bom|utf-8' do |f|
+ parse f, filename
+ end
+ end
+
+ ###
+ # Returns a default parser
+ def self.parser
+ Psych::Parser.new(TreeBuilder.new)
+ end
+
+ ###
+ # Parse a YAML string in +yaml+. Returns the full AST for the YAML document.
+ # This method can handle multiple YAML documents contained in +yaml+.
+ # +filename+ is used in the exception message if a Psych::SyntaxError is
+ # raised.
+ #
+ # If a block is given, a Psych::Nodes::Document node will be yielded to the
+ # block as it's being parsed.
+ #
+ # Raises a Psych::SyntaxError when a YAML syntax error is detected.
+ #
+ # Example:
+ #
+ # Psych.parse_stream("---\n - a\n - b") # => #<Psych::Nodes::Stream:0x00>
+ #
+ # Psych.parse_stream("--- a\n--- b") do |node|
+ # node # => #<Psych::Nodes::Document:0x00>
+ # end
+ #
+ # begin
+ # Psych.parse_stream("--- `", "file.txt")
+ # rescue Psych::SyntaxError => ex
+ # ex.file # => 'file.txt'
+ # ex.message # => "(foo.txt): found character that cannot start any token"
+ # end
+ #
+ # See Psych::Nodes for more information about YAML AST.
+ def self.parse_stream yaml, filename = nil, &block
+ if block_given?
+ parser = Psych::Parser.new(Handlers::DocumentStream.new(&block))
+ parser.parse yaml, filename
+ else
+ parser = self.parser
+ parser.parse yaml, filename
+ parser.handler.root
+ end
+ end
+
+ ###
+ # call-seq:
+ # Psych.dump(o) -> string of yaml
+ # Psych.dump(o, options) -> string of yaml
+ # Psych.dump(o, io) -> io object passed in
+ # Psych.dump(o, io, options) -> io object passed in
+ #
+ # Dump Ruby object +o+ to a YAML string. Optional +options+ may be passed in
+ # to control the output format. If an IO object is passed in, the YAML will
+ # be dumped to that IO object.
+ #
+ # Example:
+ #
+ # # Dump an array, get back a YAML string
+ # Psych.dump(['a', 'b']) # => "---\n- a\n- b\n"
+ #
+ # # Dump an array to an IO object
+ # Psych.dump(['a', 'b'], StringIO.new) # => #<StringIO:0x000001009d0890>
+ #
+ # # Dump an array with indentation set
+ # Psych.dump(['a', ['b']], :indentation => 3) # => "---\n- a\n- - b\n"
+ #
+ # # Dump an array to an IO with indentation set
+ # Psych.dump(['a', ['b']], StringIO.new, :indentation => 3)
+ def self.dump o, io = nil, options = {}
+ if Hash === io
+ options = io
+ io = nil
+ end
+
+ visitor = Psych::Visitors::YAMLTree.new options
+ visitor << o
+ visitor.tree.yaml io, options
+ end
+
+ ###
+ # Dump a list of objects as separate documents to a document stream.
+ #
+ # Example:
+ #
+ # Psych.dump_stream("foo\n ", {}) # => "--- ! \"foo\\n \"\n--- {}\n"
+ def self.dump_stream *objects
+ visitor = Psych::Visitors::YAMLTree.new {}
+ objects.each do |o|
+ visitor << o
+ end
+ visitor.tree.yaml
+ end
+
+ ###
+ # Dump Ruby object +o+ to a JSON string.
+ def self.to_json o
+ visitor = Psych::Visitors::JSONTree.new
+ visitor << o
+ visitor.tree.yaml
+ end
+
+ ###
+ # Load multiple documents given in +yaml+. Returns the parsed documents
+ # as a list. If a block is given, each document will be converted to ruby
+ # and passed to the block during parsing
+ #
+ # Example:
+ #
+ # Psych.load_stream("--- foo\n...\n--- bar\n...") # => ['foo', 'bar']
+ #
+ # list = []
+ # Psych.load_stream("--- foo\n...\n--- bar\n...") do |ruby|
+ # list << ruby
+ # end
+ # list # => ['foo', 'bar']
+ #
+ def self.load_stream yaml, filename = nil
+ if block_given?
+ parse_stream(yaml, filename) do |node|
+ yield node.to_ruby
+ end
+ else
+ parse_stream(yaml, filename).children.map { |child| child.to_ruby }
+ end
+ end
+
+ ###
+ # Load the document contained in +filename+. Returns the yaml contained in
+ # +filename+ as a ruby object
+ def self.load_file filename
+ File.open(filename, 'r:bom|utf-8') { |f| self.load f, filename }
+ end
+
+ # :stopdoc:
+ @domain_types = {}
+ def self.add_domain_type domain, type_tag, &block
+ key = ['tag', domain, type_tag].join ':'
+ @domain_types[key] = [key, block]
+ @domain_types["tag:#{type_tag}"] = [key, block]
+ end
+
+ def self.add_builtin_type type_tag, &block
+ domain = 'yaml.org,2002'
+ key = ['tag', domain, type_tag].join ':'
+ @domain_types[key] = [key, block]
+ end
+
+ def self.remove_type type_tag
+ @domain_types.delete type_tag
+ end
+
+ @load_tags = {}
+ @dump_tags = {}
+ def self.add_tag tag, klass
+ @load_tags[tag] = klass
+ @dump_tags[klass] = tag
+ end
+
+ class << self
+ attr_accessor :load_tags
+ attr_accessor :dump_tags
+ attr_accessor :domain_types
+ end
+ # :startdoc:
+end
diff --git a/ext/psych/lib/psych/coder.rb b/ext/psych/lib/psych/coder.rb
new file mode 100644
index 0000000000..2b830d2b21
--- /dev/null
+++ b/ext/psych/lib/psych/coder.rb
@@ -0,0 +1,94 @@
+module Psych
+ ###
+ # If an object defines +encode_with+, then an instance of Psych::Coder will
+ # be passed to the method when the object is being serialized. The Coder
+ # automatically assumes a Psych::Nodes::Mapping is being emitted. Other
+ # objects like Sequence and Scalar may be emitted if +seq=+ or +scalar=+ are
+ # called, respectively.
+ class Coder
+ attr_accessor :tag, :style, :implicit, :object
+ attr_reader :type, :seq
+
+ def initialize tag
+ @map = {}
+ @seq = []
+ @implicit = false
+ @type = :map
+ @tag = tag
+ @style = Psych::Nodes::Mapping::BLOCK
+ @scalar = nil
+ @object = nil
+ end
+
+ def scalar *args
+ if args.length > 0
+ warn "#{caller[0]}: Coder#scalar(a,b,c) is deprecated" if $VERBOSE
+ @tag, @scalar, _ = args
+ @type = :scalar
+ end
+ @scalar
+ end
+
+ # Emit a map. The coder will be yielded to the block.
+ def map tag = @tag, style = @style
+ @tag = tag
+ @style = style
+ yield self if block_given?
+ @map
+ end
+
+ # Emit a scalar with +value+ and +tag+
+ def represent_scalar tag, value
+ self.tag = tag
+ self.scalar = value
+ end
+
+ # Emit a sequence with +list+ and +tag+
+ def represent_seq tag, list
+ @tag = tag
+ self.seq = list
+ end
+
+ # Emit a sequence with +map+ and +tag+
+ def represent_map tag, map
+ @tag = tag
+ self.map = map
+ end
+
+ # Emit an arbitrary object +obj+ and +tag+
+ def represent_object tag, obj
+ @tag = tag
+ @type = :object
+ @object = obj
+ end
+
+ # Emit a scalar with +value+
+ def scalar= value
+ @type = :scalar
+ @scalar = value
+ end
+
+ # Emit a map with +value+
+ def map= map
+ @type = :map
+ @map = map
+ end
+
+ def []= k, v
+ @type = :map
+ @map[k] = v
+ end
+ alias :add :[]=
+
+ def [] k
+ @type = :map
+ @map[k]
+ end
+
+ # Emit a sequence of +list+
+ def seq= list
+ @type = :seq
+ @seq = list
+ end
+ end
+end
diff --git a/ext/psych/lib/psych/core_ext.rb b/ext/psych/lib/psych/core_ext.rb
new file mode 100644
index 0000000000..4a04c2d128
--- /dev/null
+++ b/ext/psych/lib/psych/core_ext.rb
@@ -0,0 +1,42 @@
+class Object
+ def self.yaml_tag url
+ Psych.add_tag(url, self)
+ end
+
+ # FIXME: rename this to "to_yaml" when syck is removed
+
+ ###
+ # call-seq: to_yaml(options = {})
+ #
+ # Convert an object to YAML. See Psych.dump for more information on the
+ # available +options+.
+ def psych_to_yaml options = {}
+ Psych.dump self, options
+ end
+ remove_method :to_yaml rescue nil
+ alias :to_yaml :psych_to_yaml
+end
+
+class Module
+ def psych_yaml_as url
+ return if caller[0].end_with?('rubytypes.rb')
+ if $VERBOSE
+ warn "#{caller[0]}: yaml_as is deprecated, please use yaml_tag"
+ end
+ Psych.add_tag(url, self)
+ end
+
+ remove_method :yaml_as rescue nil
+ alias :yaml_as :psych_yaml_as
+end
+
+if defined?(::IRB)
+module Kernel
+ def psych_y *objects
+ puts Psych.dump_stream(*objects)
+ end
+ remove_method :y rescue nil
+ alias y psych_y
+ private :y
+end
+end
diff --git a/ext/psych/lib/psych/deprecated.rb b/ext/psych/lib/psych/deprecated.rb
new file mode 100644
index 0000000000..333c3a1016
--- /dev/null
+++ b/ext/psych/lib/psych/deprecated.rb
@@ -0,0 +1,83 @@
+require 'date'
+
+module Psych
+ DEPRECATED = __FILE__ # :nodoc:
+
+ module DeprecatedMethods # :nodoc:
+ attr_accessor :taguri
+ attr_accessor :to_yaml_style
+ end
+
+ def self.quick_emit thing, opts = {}, &block # :nodoc:
+ warn "#{caller[0]}: YAML.quick_emit is deprecated" if $VERBOSE && !caller[0].start_with?(File.dirname(__FILE__))
+ target = eval 'self', block.binding
+ target.extend DeprecatedMethods
+ metaclass = class << target; self; end
+ metaclass.send(:define_method, :encode_with) do |coder|
+ target.taguri = coder.tag
+ target.to_yaml_style = coder.style
+ block.call coder
+ end
+ target.psych_to_yaml unless opts[:nodump]
+ end
+
+ def self.load_documents yaml, &block
+ if $VERBOSE
+ warn "#{caller[0]}: load_documents is deprecated, use load_stream"
+ end
+ list = load_stream yaml
+ return list unless block_given?
+ list.each(&block)
+ end
+
+ def self.detect_implicit thing
+ warn "#{caller[0]}: detect_implicit is deprecated" if $VERBOSE
+ return '' unless String === thing
+ return 'null' if '' == thing
+ ScalarScanner.new.tokenize(thing).class.name.downcase
+ end
+
+ def self.add_ruby_type type_tag, &block
+ warn "#{caller[0]}: add_ruby_type is deprecated, use add_domain_type" if $VERBOSE
+ domain = 'ruby.yaml.org,2002'
+ key = ['tag', domain, type_tag].join ':'
+ @domain_types[key] = [key, block]
+ end
+
+ def self.add_private_type type_tag, &block
+ warn "#{caller[0]}: add_private_type is deprecated, use add_domain_type" if $VERBOSE
+ domain = 'x-private'
+ key = [domain, type_tag].join ':'
+ @domain_types[key] = [key, block]
+ end
+
+ def self.tagurize thing
+ warn "#{caller[0]}: add_private_type is deprecated, use add_domain_type" if $VERBOSE
+ return thing unless String === thing
+ "tag:yaml.org,2002:#{thing}"
+ end
+
+ def self.read_type_class type, reference
+ warn "#{caller[0]}: read_type_class is deprecated" if $VERBOSE
+ _, _, type, name = type.split ':', 4
+
+ reference = name.split('::').inject(reference) do |k,n|
+ k.const_get(n.to_sym)
+ end if name
+ [type, reference]
+ end
+
+ def self.object_maker klass, hash
+ warn "#{caller[0]}: object_maker is deprecated" if $VERBOSE
+ klass.allocate.tap do |obj|
+ hash.each { |k,v| obj.instance_variable_set(:"@#{k}", v) }
+ end
+ end
+end
+
+class Object
+ undef :to_yaml_properties rescue nil
+ def to_yaml_properties # :nodoc:
+ instance_variables
+ end
+end
diff --git a/ext/psych/lib/psych/handler.rb b/ext/psych/lib/psych/handler.rb
new file mode 100644
index 0000000000..a2aa6bb178
--- /dev/null
+++ b/ext/psych/lib/psych/handler.rb
@@ -0,0 +1,221 @@
+module Psych
+ ###
+ # Psych::Handler is an abstract base class that defines the events used
+ # when dealing with Psych::Parser. Clients who want to use Psych::Parser
+ # should implement a class that inherits from Psych::Handler and define
+ # events that they can handle.
+ #
+ # Psych::Handler defines all events that Psych::Parser can possibly send to
+ # event handlers.
+ #
+ # See Psych::Parser for more details
+ class Handler
+ ###
+ # Called with +encoding+ when the YAML stream starts. This method is
+ # called once per stream. A stream may contain multiple documents.
+ #
+ # See the constants in Psych::Parser for the possible values of +encoding+.
+ def start_stream encoding
+ end
+
+ ###
+ # Called when the document starts with the declared +version+,
+ # +tag_directives+, if the document is +implicit+.
+ #
+ # +version+ will be an array of integers indicating the YAML version being
+ # dealt with, +tag_directives+ is a list of tuples indicating the prefix
+ # and suffix of each tag, and +implicit+ is a boolean indicating whether
+ # the document is started implicitly.
+ #
+ # === Example
+ #
+ # Given the following YAML:
+ #
+ # %YAML 1.1
+ # %TAG ! tag:tenderlovemaking.com,2009:
+ # --- !squee
+ #
+ # The parameters for start_document must be this:
+ #
+ # version # => [1, 1]
+ # tag_directives # => [["!", "tag:tenderlovemaking.com,2009:"]]
+ # implicit # => false
+ def start_document version, tag_directives, implicit
+ end
+
+ ###
+ # Called with the document ends. +implicit+ is a boolean value indicating
+ # whether or not the document has an implicit ending.
+ #
+ # === Example
+ #
+ # Given the following YAML:
+ #
+ # ---
+ # hello world
+ #
+ # +implicit+ will be true. Given this YAML:
+ #
+ # ---
+ # hello world
+ # ...
+ #
+ # +implicit+ will be false.
+ def end_document implicit
+ end
+
+ ###
+ # Called when an alias is found to +anchor+. +anchor+ will be the name
+ # of the anchor found.
+ #
+ # === Example
+ #
+ # Here we have an example of an array that references itself in YAML:
+ #
+ # --- &ponies
+ # - first element
+ # - *ponies
+ #
+ # &ponies is the achor, *ponies is the alias. In this case, alias is
+ # called with "ponies".
+ def alias anchor
+ end
+
+ ###
+ # Called when a scalar +value+ is found. The scalar may have an
+ # +anchor+, a +tag+, be implicitly +plain+ or implicitly +quoted+
+ #
+ # +value+ is the string value of the scalar
+ # +anchor+ is an associated anchor or nil
+ # +tag+ is an associated tag or nil
+ # +plain+ is a boolean value
+ # +quoted+ is a boolean value
+ # +style+ is an integer idicating the string style
+ #
+ # See the constants in Psych::Nodes::Scalar for the possible values of
+ # +style+
+ #
+ # === Example
+ #
+ # Here is a YAML document that exercises most of the possible ways this
+ # method can be called:
+ #
+ # ---
+ # - !str "foo"
+ # - &anchor fun
+ # - many
+ # lines
+ # - |
+ # many
+ # newlines
+ #
+ # The above YAML document contains a list with four strings. Here are
+ # the parameters sent to this method in the same order:
+ #
+ # # value anchor tag plain quoted style
+ # ["foo", nil, "!str", false, false, 3 ]
+ # ["fun", "anchor", nil, true, false, 1 ]
+ # ["many lines", nil, nil, true, false, 1 ]
+ # ["many\nnewlines\n", nil, nil, false, true, 4 ]
+ #
+ def scalar value, anchor, tag, plain, quoted, style
+ end
+
+ ###
+ # Called when a sequence is started.
+ #
+ # +anchor+ is the anchor associated with the sequence or nil.
+ # +tag+ is the tag associated with the sequence or nil.
+ # +implicit+ a boolean indicating whether or not the sequence was implicitly
+ # started.
+ # +style+ is an integer indicating the list style.
+ #
+ # See the constants in Psych::Nodes::Sequence for the possible values of
+ # +style+.
+ #
+ # === Example
+ #
+ # Here is a YAML document that exercises most of the possible ways this
+ # method can be called:
+ #
+ # ---
+ # - !!seq [
+ # a
+ # ]
+ # - &pewpew
+ # - b
+ #
+ # The above YAML document consists of three lists, an outer list that
+ # contains two inner lists. Here is a matrix of the parameters sent
+ # to represent these lists:
+ #
+ # # anchor tag implicit style
+ # [nil, nil, true, 1 ]
+ # [nil, "tag:yaml.org,2002:seq", false, 2 ]
+ # ["pewpew", nil, true, 1 ]
+
+ def start_sequence anchor, tag, implicit, style
+ end
+
+ ###
+ # Called when a sequence ends.
+ def end_sequence
+ end
+
+ ###
+ # Called when a map starts.
+ #
+ # +anchor+ is the anchor associated with the map or +nil+.
+ # +tag+ is the tag associated with the map or +nil+.
+ # +implicit+ is a boolean indicating whether or not the map was implicitly
+ # started.
+ # +style+ is an integer indicating the mapping style.
+ #
+ # See the constants in Psych::Nodes::Mapping for the possible values of
+ # +style+.
+ #
+ # === Example
+ #
+ # Here is a YAML document that exercises most of the possible ways this
+ # method can be called:
+ #
+ # ---
+ # k: !!map { hello: world }
+ # v: &pewpew
+ # hello: world
+ #
+ # The above YAML document consists of three maps, an outer map that contains
+ # two inner maps. Below is a matrix of the parameters sent in order to
+ # represent these three maps:
+ #
+ # # anchor tag implicit style
+ # [nil, nil, true, 1 ]
+ # [nil, "tag:yaml.org,2002:map", false, 2 ]
+ # ["pewpew", nil, true, 1 ]
+
+ def start_mapping anchor, tag, implicit, style
+ end
+
+ ###
+ # Called when a map ends
+ def end_mapping
+ end
+
+ ###
+ # Called when an empty event happens. (Which, as far as I can tell, is
+ # never).
+ def empty
+ end
+
+ ###
+ # Called when the YAML stream ends
+ def end_stream
+ end
+
+ ###
+ # Is this handler a streaming handler?
+ def streaming?
+ false
+ end
+ end
+end
diff --git a/ext/psych/lib/psych/handlers/document_stream.rb b/ext/psych/lib/psych/handlers/document_stream.rb
new file mode 100644
index 0000000000..e429993c1c
--- /dev/null
+++ b/ext/psych/lib/psych/handlers/document_stream.rb
@@ -0,0 +1,22 @@
+require 'psych/tree_builder'
+
+module Psych
+ module Handlers
+ class DocumentStream < Psych::TreeBuilder # :nodoc:
+ def initialize &block
+ super
+ @block = block
+ end
+
+ def start_document version, tag_directives, implicit
+ n = Nodes::Document.new version, tag_directives, implicit
+ push n
+ end
+
+ def end_document implicit_end = !streaming?
+ @last.implicit_end = implicit_end
+ @block.call pop
+ end
+ end
+ end
+end
diff --git a/ext/psych/lib/psych/json/ruby_events.rb b/ext/psych/lib/psych/json/ruby_events.rb
new file mode 100644
index 0000000000..6b73249c06
--- /dev/null
+++ b/ext/psych/lib/psych/json/ruby_events.rb
@@ -0,0 +1,19 @@
+module Psych
+ module JSON
+ module RubyEvents # :nodoc:
+ def visit_Time o
+ formatted = format_time o
+ @emitter.scalar formatted, nil, nil, false, true, Nodes::Scalar::DOUBLE_QUOTED
+ end
+
+ def visit_DateTime o
+ visit_Time o.to_time
+ end
+
+ def visit_String o
+ @emitter.scalar o.to_s, nil, nil, false, true, Nodes::Scalar::DOUBLE_QUOTED
+ end
+ alias :visit_Symbol :visit_String
+ end
+ end
+end
diff --git a/ext/psych/lib/psych/json/stream.rb b/ext/psych/lib/psych/json/stream.rb
new file mode 100644
index 0000000000..be1a0a8a82
--- /dev/null
+++ b/ext/psych/lib/psych/json/stream.rb
@@ -0,0 +1,15 @@
+require 'psych/json/ruby_events'
+require 'psych/json/yaml_events'
+
+module Psych
+ module JSON
+ class Stream < Psych::Visitors::JSONTree
+ include Psych::JSON::RubyEvents
+ include Psych::Streaming
+
+ class Emitter < Psych::Stream::Emitter # :nodoc:
+ include Psych::JSON::YAMLEvents
+ end
+ end
+ end
+end
diff --git a/ext/psych/lib/psych/json/tree_builder.rb b/ext/psych/lib/psych/json/tree_builder.rb
new file mode 100644
index 0000000000..b799c93f58
--- /dev/null
+++ b/ext/psych/lib/psych/json/tree_builder.rb
@@ -0,0 +1,12 @@
+require 'psych/json/yaml_events'
+
+module Psych
+ module JSON
+ ###
+ # Psych::JSON::TreeBuilder is an event based AST builder. Events are sent
+ # to an instance of Psych::JSON::TreeBuilder and a JSON AST is constructed.
+ class TreeBuilder < Psych::TreeBuilder
+ include Psych::JSON::YAMLEvents
+ end
+ end
+end
diff --git a/ext/psych/lib/psych/json/yaml_events.rb b/ext/psych/lib/psych/json/yaml_events.rb
new file mode 100644
index 0000000000..01d4660f85
--- /dev/null
+++ b/ext/psych/lib/psych/json/yaml_events.rb
@@ -0,0 +1,29 @@
+module Psych
+ module JSON
+ module YAMLEvents # :nodoc:
+ def start_document version, tag_directives, implicit
+ super(version, tag_directives, !streaming?)
+ end
+
+ def end_document implicit_end = !streaming?
+ super(implicit_end)
+ end
+
+ def start_mapping anchor, tag, implicit, style
+ super(anchor, nil, implicit, Nodes::Mapping::FLOW)
+ end
+
+ def start_sequence anchor, tag, implicit, style
+ super(anchor, nil, implicit, Nodes::Sequence::FLOW)
+ end
+
+ def scalar value, anchor, tag, plain, quoted, style
+ if "tag:yaml.org,2002:null" == tag
+ super('null', nil, nil, true, false, Nodes::Scalar::PLAIN)
+ else
+ super
+ end
+ end
+ end
+ end
+end
diff --git a/ext/psych/lib/psych/nodes.rb b/ext/psych/lib/psych/nodes.rb
new file mode 100644
index 0000000000..f3b33fe975
--- /dev/null
+++ b/ext/psych/lib/psych/nodes.rb
@@ -0,0 +1,77 @@
+require 'psych/nodes/node'
+require 'psych/nodes/stream'
+require 'psych/nodes/document'
+require 'psych/nodes/sequence'
+require 'psych/nodes/scalar'
+require 'psych/nodes/mapping'
+require 'psych/nodes/alias'
+
+module Psych
+ ###
+ # = Overview
+ #
+ # When using Psych.load to deserialize a YAML document, the document is
+ # translated to an intermediary AST. That intermediary AST is then
+ # translated in to a Ruby object graph.
+ #
+ # In the opposite direction, when using Psych.dump, the Ruby object graph is
+ # translated to an intermediary AST which is then converted to a YAML
+ # document.
+ #
+ # Psych::Nodes contains all of the classes that make up the nodes of a YAML
+ # AST. You can manually build an AST and use one of the visitors (see
+ # Psych::Visitors) to convert that AST to either a YAML document or to a
+ # Ruby object graph.
+ #
+ # Here is an example of building an AST that represents a list with one
+ # scalar:
+ #
+ # # Create our nodes
+ # stream = Psych::Nodes::Stream.new
+ # doc = Psych::Nodes::Document.new
+ # seq = Psych::Nodes::Sequence.new
+ # scalar = Psych::Nodes::Scalar.new('foo')
+ #
+ # # Build up our tree
+ # stream.children << doc
+ # doc.children << seq
+ # seq.children << scalar
+ #
+ # The stream is the root of the tree. We can then convert the tree to YAML:
+ #
+ # stream.to_yaml => "---\n- foo\n"
+ #
+ # Or convert it to Ruby:
+ #
+ # stream.to_ruby => [["foo"]]
+ #
+ # == YAML AST Requirements
+ #
+ # A valid YAML AST *must* have one Psych::Nodes::Stream at the root. A
+ # Psych::Nodes::Stream node must have 1 or more Psych::Nodes::Document nodes
+ # as children.
+ #
+ # Psych::Nodes::Document nodes must have one and *only* one child. That child
+ # may be one of:
+ #
+ # * Psych::Nodes::Sequence
+ # * Psych::Nodes::Mapping
+ # * Psych::Nodes::Scalar
+ #
+ # Psych::Nodes::Sequence and Psych::Nodes::Mapping nodes may have many
+ # children, but Psych::Nodes::Mapping nodes should have an even number of
+ # children.
+ #
+ # All of these are valid children for Psych::Nodes::Sequence and
+ # Psych::Nodes::Mapping nodes:
+ #
+ # * Psych::Nodes::Sequence
+ # * Psych::Nodes::Mapping
+ # * Psych::Nodes::Scalar
+ # * Psych::Nodes::Alias
+ #
+ # Psych::Nodes::Scalar and Psych::Nodes::Alias are both terminal nodes and
+ # should not have any children.
+ module Nodes
+ end
+end
diff --git a/ext/psych/lib/psych/nodes/alias.rb b/ext/psych/lib/psych/nodes/alias.rb
new file mode 100644
index 0000000000..5bd4df13d1
--- /dev/null
+++ b/ext/psych/lib/psych/nodes/alias.rb
@@ -0,0 +1,18 @@
+module Psych
+ module Nodes
+ ###
+ # This class represents a {YAML Alias}[http://yaml.org/spec/1.1/#alias].
+ # It points to an +anchor+.
+ #
+ # A Psych::Nodes::Alias is a terminal node and may have no children.
+ class Alias < Psych::Nodes::Node
+ # The anchor this alias links to
+ attr_accessor :anchor
+
+ # Create a new Alias that points to an +anchor+
+ def initialize anchor
+ @anchor = anchor
+ end
+ end
+ end
+end
diff --git a/ext/psych/lib/psych/nodes/document.rb b/ext/psych/lib/psych/nodes/document.rb
new file mode 100644
index 0000000000..32014d60dc
--- /dev/null
+++ b/ext/psych/lib/psych/nodes/document.rb
@@ -0,0 +1,60 @@
+module Psych
+ module Nodes
+ ###
+ # This represents a YAML Document. This node must be a child of
+ # Psych::Nodes::Stream. A Psych::Nodes::Document must have one child,
+ # and that child may be one of the following:
+ #
+ # * Psych::Nodes::Sequence
+ # * Psych::Nodes::Mapping
+ # * Psych::Nodes::Scalar
+ class Document < Psych::Nodes::Node
+ # The version of the YAML document
+ attr_accessor :version
+
+ # A list of tag directives for this document
+ attr_accessor :tag_directives
+
+ # Was this document implicitly created?
+ attr_accessor :implicit
+
+ # Is the end of the document implicit?
+ attr_accessor :implicit_end
+
+ ###
+ # Create a new Psych::Nodes::Document object.
+ #
+ # +version+ is a list indicating the YAML version.
+ # +tags_directives+ is a list of tag directive declarations
+ # +implicit+ is a flag indicating whether the document will be implicitly
+ # started.
+ #
+ # == Example:
+ # This creates a YAML document object that represents a YAML 1.1 document
+ # with one tag directive, and has an implicit start:
+ #
+ # Psych::Nodes::Document.new(
+ # [1,1],
+ # [["!", "tag:tenderlovemaking.com,2009:"]],
+ # true
+ # )
+ #
+ # == See Also
+ # See also Psych::Handler#start_document
+ def initialize version = [], tag_directives = [], implicit = false
+ super()
+ @version = version
+ @tag_directives = tag_directives
+ @implicit = implicit
+ @implicit_end = true
+ end
+
+ ###
+ # Returns the root node. A Document may only have one root node:
+ # http://yaml.org/spec/1.1/#id898031
+ def root
+ children.first
+ end
+ end
+ end
+end
diff --git a/ext/psych/lib/psych/nodes/mapping.rb b/ext/psych/lib/psych/nodes/mapping.rb
new file mode 100644
index 0000000000..5ba95ce4b6
--- /dev/null
+++ b/ext/psych/lib/psych/nodes/mapping.rb
@@ -0,0 +1,56 @@
+module Psych
+ module Nodes
+ ###
+ # This class represents a {YAML Mapping}[http://yaml.org/spec/1.1/#mapping].
+ #
+ # A Psych::Nodes::Mapping node may have 0 or more children, but must have
+ # an even number of children. Here are the valid children a
+ # Psych::Nodes::Mapping node may have:
+ #
+ # * Psych::Nodes::Sequence
+ # * Psych::Nodes::Mapping
+ # * Psych::Nodes::Scalar
+ # * Psych::Nodes::Alias
+ class Mapping < Psych::Nodes::Node
+ # Any Map Style
+ ANY = 0
+
+ # Block Map Style
+ BLOCK = 1
+
+ # Flow Map Style
+ FLOW = 2
+
+ # The optional anchor for this mapping
+ attr_accessor :anchor
+
+ # The optional tag for this mapping
+ attr_accessor :tag
+
+ # Is this an implicit mapping?
+ attr_accessor :implicit
+
+ # The style of this mapping
+ attr_accessor :style
+
+ ###
+ # Create a new Psych::Nodes::Mapping object.
+ #
+ # +anchor+ is the anchor associated with the map or +nil+.
+ # +tag+ is the tag associated with the map or +nil+.
+ # +implicit+ is a boolean indicating whether or not the map was implicitly
+ # started.
+ # +style+ is an integer indicating the mapping style.
+ #
+ # == See Also
+ # See also Psych::Handler#start_mapping
+ def initialize anchor = nil, tag = nil, implicit = true, style = BLOCK
+ super()
+ @anchor = anchor
+ @tag = tag
+ @implicit = implicit
+ @style = style
+ end
+ end
+ end
+end
diff --git a/ext/psych/lib/psych/nodes/node.rb b/ext/psych/lib/psych/nodes/node.rb
new file mode 100644
index 0000000000..0cefe44e44
--- /dev/null
+++ b/ext/psych/lib/psych/nodes/node.rb
@@ -0,0 +1,53 @@
+require 'stringio'
+
+module Psych
+ module Nodes
+ ###
+ # The base class for any Node in a YAML parse tree. This class should
+ # never be instantiated.
+ class Node
+ include Enumerable
+
+ # The children of this node
+ attr_reader :children
+
+ # An associated tag
+ attr_reader :tag
+
+ # Create a new Psych::Nodes::Node
+ def initialize
+ @children = []
+ end
+
+ ###
+ # Iterate over each node in the tree. Yields each node to +block+ depth
+ # first.
+ def each &block
+ return enum_for :each unless block_given?
+ Visitors::DepthFirst.new(block).accept self
+ end
+
+ ###
+ # Convert this node to Ruby.
+ #
+ # See also Psych::Visitors::ToRuby
+ def to_ruby
+ Visitors::ToRuby.new.accept self
+ end
+ alias :transform :to_ruby
+
+ ###
+ # Convert this node to YAML.
+ #
+ # See also Psych::Visitors::Emitter
+ def yaml io = nil, options = {}
+ real_io = io || StringIO.new(''.encode('utf-8'))
+
+ Visitors::Emitter.new(real_io, options).accept self
+ return real_io.string unless io
+ io
+ end
+ alias :to_yaml :yaml
+ end
+ end
+end
diff --git a/ext/psych/lib/psych/nodes/scalar.rb b/ext/psych/lib/psych/nodes/scalar.rb
new file mode 100644
index 0000000000..1b1b25b98a
--- /dev/null
+++ b/ext/psych/lib/psych/nodes/scalar.rb
@@ -0,0 +1,67 @@
+module Psych
+ module Nodes
+ ###
+ # This class represents a {YAML Scalar}[http://yaml.org/spec/1.1/#id858081].
+ #
+ # This node type is a terminal node and should not have any children.
+ class Scalar < Psych::Nodes::Node
+ # Any style scalar, the emitter chooses
+ ANY = 0
+
+ # Plain scalar style
+ PLAIN = 1
+
+ # Single quoted style
+ SINGLE_QUOTED = 2
+
+ # Double quoted style
+ DOUBLE_QUOTED = 3
+
+ # Literal style
+ LITERAL = 4
+
+ # Folded style
+ FOLDED = 5
+
+ # The scalar value
+ attr_accessor :value
+
+ # The anchor value (if there is one)
+ attr_accessor :anchor
+
+ # The tag value (if there is one)
+ attr_accessor :tag
+
+ # Is this a plain scalar?
+ attr_accessor :plain
+
+ # Is this scalar quoted?
+ attr_accessor :quoted
+
+ # The style of this scalar
+ attr_accessor :style
+
+ ###
+ # Create a new Psych::Nodes::Scalar object.
+ #
+ # +value+ is the string value of the scalar
+ # +anchor+ is an associated anchor or nil
+ # +tag+ is an associated tag or nil
+ # +plain+ is a boolean value
+ # +quoted+ is a boolean value
+ # +style+ is an integer idicating the string style
+ #
+ # == See Also
+ #
+ # See also Psych::Handler#scalar
+ def initialize value, anchor = nil, tag = nil, plain = true, quoted = false, style = ANY
+ @value = value
+ @anchor = anchor
+ @tag = tag
+ @plain = plain
+ @quoted = quoted
+ @style = style
+ end
+ end
+ end
+end
diff --git a/ext/psych/lib/psych/nodes/sequence.rb b/ext/psych/lib/psych/nodes/sequence.rb
new file mode 100644
index 0000000000..e4b833d330
--- /dev/null
+++ b/ext/psych/lib/psych/nodes/sequence.rb
@@ -0,0 +1,81 @@
+module Psych
+ module Nodes
+ ###
+ # This class represents a
+ # {YAML sequence}[http://yaml.org/spec/1.1/#sequence/syntax].
+ #
+ # A YAML sequence is basically a list, and looks like this:
+ #
+ # %YAML 1.1
+ # ---
+ # - I am
+ # - a Sequence
+ #
+ # A YAML sequence may have an anchor like this:
+ #
+ # %YAML 1.1
+ # ---
+ # &A [
+ # "This sequence",
+ # "has an anchor"
+ # ]
+ #
+ # A YAML sequence may also have a tag like this:
+ #
+ # %YAML 1.1
+ # ---
+ # !!seq [
+ # "This sequence",
+ # "has a tag"
+ # ]
+ #
+ # This class represents a sequence in a YAML document. A
+ # Psych::Nodes::Sequence node may have 0 or more children. Valid children
+ # for this node are:
+ #
+ # * Psych::Nodes::Sequence
+ # * Psych::Nodes::Mapping
+ # * Psych::Nodes::Scalar
+ # * Psych::Nodes::Alias
+ class Sequence < Psych::Nodes::Node
+ # Any Styles, emitter chooses
+ ANY = 0
+
+ # Block style sequence
+ BLOCK = 1
+
+ # Flow style sequence
+ FLOW = 2
+
+ # The anchor for this sequence (if any)
+ attr_accessor :anchor
+
+ # The tag name for this sequence (if any)
+ attr_accessor :tag
+
+ # Is this sequence started implicitly?
+ attr_accessor :implicit
+
+ # The sequece style used
+ attr_accessor :style
+
+ ###
+ # Create a new object representing a YAML sequence.
+ #
+ # +anchor+ is the anchor associated with the sequence or nil.
+ # +tag+ is the tag associated with the sequence or nil.
+ # +implicit+ a boolean indicating whether or not the sequence was
+ # implicitly started.
+ # +style+ is an integer indicating the list style.
+ #
+ # See Psych::Handler#start_sequence
+ def initialize anchor = nil, tag = nil, implicit = true, style = BLOCK
+ super()
+ @anchor = anchor
+ @tag = tag
+ @implicit = implicit
+ @style = style
+ end
+ end
+ end
+end
diff --git a/ext/psych/lib/psych/nodes/stream.rb b/ext/psych/lib/psych/nodes/stream.rb
new file mode 100644
index 0000000000..7cf5e033ec
--- /dev/null
+++ b/ext/psych/lib/psych/nodes/stream.rb
@@ -0,0 +1,37 @@
+module Psych
+ module Nodes
+ ###
+ # Represents a YAML stream. This is the root node for any YAML parse
+ # tree. This node must have one or more child nodes. The only valid
+ # child node for a Psych::Nodes::Stream node is Psych::Nodes::Document.
+ class Stream < Psych::Nodes::Node
+
+ # Encodings supported by Psych (and libyaml)
+
+ # Any encoding
+ ANY = Psych::Parser::ANY
+
+ # UTF-8 encoding
+ UTF8 = Psych::Parser::UTF8
+
+ # UTF-16LE encoding
+ UTF16LE = Psych::Parser::UTF16LE
+
+ # UTF-16BE encoding
+ UTF16BE = Psych::Parser::UTF16BE
+
+ # The encoding used for this stream
+ attr_accessor :encoding
+
+ ###
+ # Create a new Psych::Nodes::Stream node with an +encoding+ that
+ # defaults to Psych::Nodes::Stream::UTF8.
+ #
+ # See also Psych::Handler#start_stream
+ def initialize encoding = UTF8
+ super()
+ @encoding = encoding
+ end
+ end
+ end
+end
diff --git a/ext/psych/lib/psych/omap.rb b/ext/psych/lib/psych/omap.rb
new file mode 100644
index 0000000000..6286270616
--- /dev/null
+++ b/ext/psych/lib/psych/omap.rb
@@ -0,0 +1,4 @@
+module Psych
+ class Omap < ::Hash
+ end
+end
diff --git a/ext/psych/lib/psych/parser.rb b/ext/psych/lib/psych/parser.rb
new file mode 100644
index 0000000000..84085f1fb0
--- /dev/null
+++ b/ext/psych/lib/psych/parser.rb
@@ -0,0 +1,51 @@
+module Psych
+ ###
+ # YAML event parser class. This class parses a YAML document and calls
+ # events on the handler that is passed to the constructor. The events can
+ # be used for things such as constructing a YAML AST or deserializing YAML
+ # documents. It can even be fed back to Psych::Emitter to emit the same
+ # document that was parsed.
+ #
+ # See Psych::Handler for documentation on the events that Psych::Parser emits.
+ #
+ # Here is an example that prints out ever scalar found in a YAML document:
+ #
+ # # Handler for detecting scalar values
+ # class ScalarHandler < Psych::Handler
+ # def scalar value, anchor, tag, plain, quoted, style
+ # puts value
+ # end
+ # end
+ #
+ # parser = Psych::Parser.new(ScalarHandler.new)
+ # parser.parse(yaml_document)
+ #
+ # Here is an example that feeds the parser back in to Psych::Emitter. The
+ # YAML document is read from STDIN and written back out to STDERR:
+ #
+ # parser = Psych::Parser.new(Psych::Emitter.new($stderr))
+ # parser.parse($stdin)
+ #
+ # Psych uses Psych::Parser in combination with Psych::TreeBuilder to
+ # construct an AST of the parsed YAML document.
+
+ class Parser
+ class Mark < Struct.new(:index, :line, :column)
+ end
+
+ # The handler on which events will be called
+ attr_accessor :handler
+
+ # Set the encoding for this parser to +encoding+
+ attr_writer :external_encoding
+
+ ###
+ # Creates a new Psych::Parser instance with +handler+. YAML events will
+ # be called on +handler+. See Psych::Parser for more details.
+
+ def initialize handler = Handler.new
+ @handler = handler
+ @external_encoding = ANY
+ end
+ end
+end
diff --git a/ext/psych/lib/psych/scalar_scanner.rb b/ext/psych/lib/psych/scalar_scanner.rb
new file mode 100644
index 0000000000..fa2d385a63
--- /dev/null
+++ b/ext/psych/lib/psych/scalar_scanner.rb
@@ -0,0 +1,128 @@
+require 'strscan'
+
+module Psych
+ ###
+ # Scan scalars for built in types
+ class ScalarScanner
+ # Taken from http://yaml.org/type/timestamp.html
+ TIME = /^\d{4}-\d{1,2}-\d{1,2}([Tt]|\s+)\d{1,2}:\d\d:\d\d(\.\d*)?(\s*Z|[-+]\d{1,2}(:\d\d)?)?/
+
+ # Taken from http://yaml.org/type/float.html
+ FLOAT = /^(?:[-+]?([0-9][0-9_,]*)?\.[0-9.]*([eE][-+][0-9]+)?(?# base 10)
+ |[-+]?[0-9][0-9_,]*(:[0-5]?[0-9])+\.[0-9_]*(?# base 60)
+ |[-+]?\.(inf|Inf|INF)(?# infinity)
+ |\.(nan|NaN|NAN)(?# not a number))$/x
+
+ # Create a new scanner
+ def initialize
+ @string_cache = {}
+ end
+
+ # Tokenize +string+ returning the ruby object
+ def tokenize string
+ return nil if string.empty?
+ return string if @string_cache.key?(string)
+
+ case string
+ when /^[A-Za-z~]/
+ if string.length > 5
+ @string_cache[string] = true
+ return string
+ end
+
+ case string
+ when /^[^ytonf~]/i
+ @string_cache[string] = true
+ string
+ when '~', /^null$/i
+ nil
+ when /^(yes|true|on)$/i
+ true
+ when /^(no|false|off)$/i
+ false
+ else
+ @string_cache[string] = true
+ string
+ end
+ when TIME
+ parse_time string
+ when /^\d{4}-(?:1[012]|0\d|\d)-(?:[12]\d|3[01]|0\d|\d)$/
+ require 'date'
+ begin
+ Date.strptime(string, '%Y-%m-%d')
+ rescue ArgumentError
+ string
+ end
+ when /^\.inf$/i
+ 1 / 0.0
+ when /^-\.inf$/i
+ -1 / 0.0
+ when /^\.nan$/i
+ 0.0 / 0.0
+ when /^:./
+ if string =~ /^:(["'])(.*)\1/
+ $2.sub(/^:/, '').to_sym
+ else
+ string.sub(/^:/, '').to_sym
+ end
+ when /^[-+]?[0-9][0-9_]*(:[0-5]?[0-9])+$/
+ i = 0
+ string.split(':').each_with_index do |n,e|
+ i += (n.to_i * 60 ** (e - 2).abs)
+ end
+ i
+ when /^[-+]?[0-9][0-9_]*(:[0-5]?[0-9])+\.[0-9_]*$/
+ i = 0
+ string.split(':').each_with_index do |n,e|
+ i += (n.to_f * 60 ** (e - 2).abs)
+ end
+ i
+ when FLOAT
+ begin
+ return Float(string.gsub(/[,_]/, ''))
+ rescue ArgumentError
+ end
+
+ @string_cache[string] = true
+ string
+ else
+ if string.count('.') < 2
+ begin
+ return Integer(string.gsub(/[,_]/, ''))
+ rescue ArgumentError
+ end
+ end
+
+ @string_cache[string] = true
+ string
+ end
+ end
+
+ ###
+ # Parse and return a Time from +string+
+ def parse_time string
+ date, time = *(string.split(/[ tT]/, 2))
+ (yy, m, dd) = date.split('-').map { |x| x.to_i }
+ md = time.match(/(\d+:\d+:\d+)(?:\.(\d*))?\s*(Z|[-+]\d+(:\d\d)?)?/)
+
+ (hh, mm, ss) = md[1].split(':').map { |x| x.to_i }
+ us = (md[2] ? Rational("0.#{md[2]}") : 0) * 1000000
+
+ time = Time.utc(yy, m, dd, hh, mm, ss, us)
+
+ return time if 'Z' == md[3]
+ return Time.at(time.to_i, us) unless md[3]
+
+ tz = md[3].match(/^([+\-]?\d{1,2})\:?(\d{1,2})?$/)[1..-1].compact.map { |digit| Integer(digit, 10) }
+ offset = tz.first * 3600
+
+ if offset < 0
+ offset -= ((tz[1] || 0) * 60)
+ else
+ offset += ((tz[1] || 0) * 60)
+ end
+
+ Time.at((time - offset).to_i, us)
+ end
+ end
+end
diff --git a/ext/psych/lib/psych/set.rb b/ext/psych/lib/psych/set.rb
new file mode 100644
index 0000000000..6793a8ed1b
--- /dev/null
+++ b/ext/psych/lib/psych/set.rb
@@ -0,0 +1,4 @@
+module Psych
+ class Set < ::Hash
+ end
+end
diff --git a/ext/psych/lib/psych/stream.rb b/ext/psych/lib/psych/stream.rb
new file mode 100644
index 0000000000..567c1bb790
--- /dev/null
+++ b/ext/psych/lib/psych/stream.rb
@@ -0,0 +1,36 @@
+module Psych
+ ###
+ # Psych::Stream is a streaming YAML emitter. It will not buffer your YAML,
+ # but send it straight to an IO.
+ #
+ # Here is an example use:
+ #
+ # stream = Psych::Stream.new($stdout)
+ # stream.start
+ # stream.push({:foo => 'bar'})
+ # stream.finish
+ #
+ # YAML will be immediately emitted to $stdout with no buffering.
+ #
+ # Psych::Stream#start will take a block and ensure that Psych::Stream#finish
+ # is called, so you can do this form:
+ #
+ # stream = Psych::Stream.new($stdout)
+ # stream.start do |em|
+ # em.push(:foo => 'bar')
+ # end
+ #
+ class Stream < Psych::Visitors::YAMLTree
+ class Emitter < Psych::Emitter # :nodoc:
+ def end_document implicit_end = !streaming?
+ super
+ end
+
+ def streaming?
+ true
+ end
+ end
+
+ include Psych::Streaming
+ end
+end
diff --git a/ext/psych/lib/psych/streaming.rb b/ext/psych/lib/psych/streaming.rb
new file mode 100644
index 0000000000..c6fa109d5a
--- /dev/null
+++ b/ext/psych/lib/psych/streaming.rb
@@ -0,0 +1,22 @@
+module Psych
+ module Streaming
+ ###
+ # Create a new streaming emitter. Emitter will print to +io+. See
+ # Psych::Stream for an example.
+ def initialize io
+ super({}, self.class.const_get(:Emitter).new(io))
+ end
+
+ ###
+ # Start streaming using +encoding+
+ def start encoding = Nodes::Stream::UTF8
+ super.tap { yield self if block_given? }
+ ensure
+ finish if block_given?
+ end
+
+ private
+ def register target, obj
+ end
+ end
+end
diff --git a/ext/psych/lib/psych/syntax_error.rb b/ext/psych/lib/psych/syntax_error.rb
new file mode 100644
index 0000000000..f79743dba4
--- /dev/null
+++ b/ext/psych/lib/psych/syntax_error.rb
@@ -0,0 +1,19 @@
+module Psych
+ class SyntaxError < ::SyntaxError
+ attr_reader :file, :line, :column, :offset, :problem, :context
+
+ def initialize file, line, col, offset, problem, context
+ err = [problem, context].compact.join ' '
+ filename = file || '<unknown>'
+ message = "(%s): %s at line %d column %d" % [filename, err, line, col]
+
+ @file = file
+ @line = line
+ @column = col
+ @offset = offset
+ @problem = problem
+ @context = context
+ super(message)
+ end
+ end
+end
diff --git a/ext/psych/lib/psych/tree_builder.rb b/ext/psych/lib/psych/tree_builder.rb
new file mode 100644
index 0000000000..c8f344787c
--- /dev/null
+++ b/ext/psych/lib/psych/tree_builder.rb
@@ -0,0 +1,96 @@
+require 'psych/handler'
+
+module Psych
+ ###
+ # This class works in conjunction with Psych::Parser to build an in-memory
+ # parse tree that represents a YAML document.
+ #
+ # == Example
+ #
+ # parser = Psych::Parser.new Psych::TreeBuilder.new
+ # parser.parse('--- foo')
+ # tree = parser.handler.root
+ #
+ # See Psych::Handler for documentation on the event methods used in this
+ # class.
+ class TreeBuilder < Psych::Handler
+ # Returns the root node for the built tree
+ attr_reader :root
+
+ # Create a new TreeBuilder instance
+ def initialize
+ @stack = []
+ @last = nil
+ @root = nil
+ end
+
+ %w{
+ Sequence
+ Mapping
+ }.each do |node|
+ class_eval %{
+ def start_#{node.downcase}(anchor, tag, implicit, style)
+ n = Nodes::#{node}.new(anchor, tag, implicit, style)
+ @last.children << n
+ push n
+ end
+
+ def end_#{node.downcase}
+ pop
+ end
+ }
+ end
+
+ ###
+ # Handles start_document events with +version+, +tag_directives+,
+ # and +implicit+ styling.
+ #
+ # See Psych::Handler#start_document
+ def start_document version, tag_directives, implicit
+ n = Nodes::Document.new version, tag_directives, implicit
+ @last.children << n
+ push n
+ end
+
+ ###
+ # Handles end_document events with +version+, +tag_directives+,
+ # and +implicit+ styling.
+ #
+ # See Psych::Handler#start_document
+ def end_document implicit_end = !streaming?
+ @last.implicit_end = implicit_end
+ pop
+ end
+
+ def start_stream encoding
+ @root = Nodes::Stream.new(encoding)
+ push @root
+ end
+
+ def end_stream
+ pop
+ end
+
+ def scalar value, anchor, tag, plain, quoted, style
+ s = Nodes::Scalar.new(value,anchor,tag,plain,quoted,style)
+ @last.children << s
+ s
+ end
+
+ def alias anchor
+ @last.children << Nodes::Alias.new(anchor)
+ end
+
+ private
+ def push value
+ @stack.push value
+ @last = value
+ end
+
+ def pop
+ x = @stack.pop
+ @last = @stack.last
+ x
+ end
+ end
+end
diff --git a/ext/psych/lib/psych/visitors.rb b/ext/psych/lib/psych/visitors.rb
new file mode 100644
index 0000000000..cc98b103f1
--- /dev/null
+++ b/ext/psych/lib/psych/visitors.rb
@@ -0,0 +1,6 @@
+require 'psych/visitors/visitor'
+require 'psych/visitors/to_ruby'
+require 'psych/visitors/emitter'
+require 'psych/visitors/yaml_tree'
+require 'psych/visitors/json_tree'
+require 'psych/visitors/depth_first'
diff --git a/ext/psych/lib/psych/visitors/depth_first.rb b/ext/psych/lib/psych/visitors/depth_first.rb
new file mode 100644
index 0000000000..c6eb814ac0
--- /dev/null
+++ b/ext/psych/lib/psych/visitors/depth_first.rb
@@ -0,0 +1,26 @@
+module Psych
+ module Visitors
+ class DepthFirst < Psych::Visitors::Visitor
+ def initialize block
+ @block = block
+ end
+
+ private
+
+ def nary o
+ o.children.each { |x| visit x }
+ @block.call o
+ end
+ alias :visit_Psych_Nodes_Stream :nary
+ alias :visit_Psych_Nodes_Document :nary
+ alias :visit_Psych_Nodes_Sequence :nary
+ alias :visit_Psych_Nodes_Mapping :nary
+
+ def terminal o
+ @block.call o
+ end
+ alias :visit_Psych_Nodes_Scalar :terminal
+ alias :visit_Psych_Nodes_Alias :terminal
+ end
+ end
+end
diff --git a/ext/psych/lib/psych/visitors/emitter.rb b/ext/psych/lib/psych/visitors/emitter.rb
new file mode 100644
index 0000000000..30db17612d
--- /dev/null
+++ b/ext/psych/lib/psych/visitors/emitter.rb
@@ -0,0 +1,44 @@
+module Psych
+ module Visitors
+ class Emitter < Psych::Visitors::Visitor
+ def initialize io, options = {}
+ @handler = Psych::Emitter.new io
+ @handler.indentation = options[:indentation] if options[:indentation]
+ @handler.canonical = options[:canonical] if options[:canonical]
+ @handler.line_width = options[:line_width] if options[:line_width]
+ end
+
+ def visit_Psych_Nodes_Stream o
+ @handler.start_stream o.encoding
+ o.children.each { |c| accept c }
+ @handler.end_stream
+ end
+
+ def visit_Psych_Nodes_Document o
+ @handler.start_document o.version, o.tag_directives, o.implicit
+ o.children.each { |c| accept c }
+ @handler.end_document o.implicit_end
+ end
+
+ def visit_Psych_Nodes_Scalar o
+ @handler.scalar o.value, o.anchor, o.tag, o.plain, o.quoted, o.style
+ end
+
+ def visit_Psych_Nodes_Sequence o
+ @handler.start_sequence o.anchor, o.tag, o.implicit, o.style
+ o.children.each { |c| accept c }
+ @handler.end_sequence
+ end
+
+ def visit_Psych_Nodes_Mapping o
+ @handler.start_mapping o.anchor, o.tag, o.implicit, o.style
+ o.children.each { |c| accept c }
+ @handler.end_mapping
+ end
+
+ def visit_Psych_Nodes_Alias o
+ @handler.alias o.anchor
+ end
+ end
+ end
+end
diff --git a/ext/psych/lib/psych/visitors/json_tree.rb b/ext/psych/lib/psych/visitors/json_tree.rb
new file mode 100644
index 0000000000..0350dd1faa
--- /dev/null
+++ b/ext/psych/lib/psych/visitors/json_tree.rb
@@ -0,0 +1,21 @@
+require 'psych/json/ruby_events'
+
+module Psych
+ module Visitors
+ class JSONTree < YAMLTree
+ include Psych::JSON::RubyEvents
+
+ def initialize options = {}, emitter = Psych::JSON::TreeBuilder.new
+ super
+ end
+
+ def accept target
+ if target.respond_to?(:encode_with)
+ dump_coder target
+ else
+ send(@dispatch_cache[target.class], target)
+ end
+ end
+ end
+ end
+end
diff --git a/ext/psych/lib/psych/visitors/to_ruby.rb b/ext/psych/lib/psych/visitors/to_ruby.rb
new file mode 100644
index 0000000000..2e082f90b4
--- /dev/null
+++ b/ext/psych/lib/psych/visitors/to_ruby.rb
@@ -0,0 +1,317 @@
+require 'psych/scalar_scanner'
+
+unless defined?(Regexp::NOENCODING)
+ Regexp::NOENCODING = 32
+end
+
+module Psych
+ module Visitors
+ ###
+ # This class walks a YAML AST, converting each node to ruby
+ class ToRuby < Psych::Visitors::Visitor
+ def initialize ss = ScalarScanner.new
+ super()
+ @st = {}
+ @ss = ss
+ @domain_types = Psych.domain_types
+ end
+
+ def accept target
+ result = super
+ return result if @domain_types.empty? || !target.tag
+
+ key = target.tag.sub(/^[!\/]*/, '').sub(/(,\d+)\//, '\1:')
+ key = "tag:#{key}" unless key =~ /^(tag:|x-private)/
+
+ if @domain_types.key? key
+ value, block = @domain_types[key]
+ return block.call value, result
+ end
+
+ result
+ end
+
+ def deserialize o
+ if klass = Psych.load_tags[o.tag]
+ instance = klass.allocate
+
+ if instance.respond_to?(:init_with)
+ coder = Psych::Coder.new(o.tag)
+ coder.scalar = o.value
+ instance.init_with coder
+ end
+
+ return instance
+ end
+
+ return o.value if o.quoted
+ return @ss.tokenize(o.value) unless o.tag
+
+ case o.tag
+ when '!binary', 'tag:yaml.org,2002:binary'
+ o.value.unpack('m').first
+ when /^!(?:str|ruby\/string)(?::(.*))?/, 'tag:yaml.org,2002:str'
+ klass = resolve_class($1)
+ if klass
+ klass.allocate.replace o.value
+ else
+ o.value
+ end
+ when '!ruby/object:BigDecimal'
+ require 'bigdecimal'
+ BigDecimal._load o.value
+ when "!ruby/object:DateTime"
+ require 'date'
+ @ss.parse_time(o.value).to_datetime
+ when "!ruby/object:Complex"
+ Complex(o.value)
+ when "!ruby/object:Rational"
+ Rational(o.value)
+ when "!ruby/class", "!ruby/module"
+ resolve_class o.value
+ when "tag:yaml.org,2002:float", "!float"
+ Float(@ss.tokenize(o.value))
+ when "!ruby/regexp"
+ o.value =~ /^\/(.*)\/([mixn]*)$/
+ source = $1
+ options = 0
+ lang = nil
+ ($2 || '').split('').each do |option|
+ case option
+ when 'x' then options |= Regexp::EXTENDED
+ when 'i' then options |= Regexp::IGNORECASE
+ when 'm' then options |= Regexp::MULTILINE
+ when 'n' then options |= Regexp::NOENCODING
+ else lang = option
+ end
+ end
+ Regexp.new(*[source, options, lang].compact)
+ when "!ruby/range"
+ args = o.value.split(/([.]{2,3})/, 2).map { |s|
+ accept Nodes::Scalar.new(s)
+ }
+ args.push(args.delete_at(1) == '...')
+ Range.new(*args)
+ when /^!ruby\/sym(bol)?:?(.*)?$/
+ o.value.to_sym
+ else
+ @ss.tokenize o.value
+ end
+ end
+ private :deserialize
+
+ def visit_Psych_Nodes_Scalar o
+ register o, deserialize(o)
+ end
+
+ def visit_Psych_Nodes_Sequence o
+ if klass = Psych.load_tags[o.tag]
+ instance = klass.allocate
+
+ if instance.respond_to?(:init_with)
+ coder = Psych::Coder.new(o.tag)
+ coder.seq = o.children.map { |c| accept c }
+ instance.init_with coder
+ end
+
+ return instance
+ end
+
+ case o.tag
+ when '!omap', 'tag:yaml.org,2002:omap'
+ map = register(o, Psych::Omap.new)
+ o.children.each { |a|
+ map[accept(a.children.first)] = accept a.children.last
+ }
+ map
+ when /^!(?:seq|ruby\/array):(.*)$/
+ klass = resolve_class($1)
+ list = register(o, klass.allocate)
+ o.children.each { |c| list.push accept c }
+ list
+ else
+ list = register(o, [])
+ o.children.each { |c| list.push accept c }
+ list
+ end
+ end
+
+ def visit_Psych_Nodes_Mapping o
+ return revive(Psych.load_tags[o.tag], o) if Psych.load_tags[o.tag]
+ return revive_hash({}, o) unless o.tag
+
+ case o.tag
+ when /^!(?:str|ruby\/string)(?::(.*))?/, 'tag:yaml.org,2002:str'
+ klass = resolve_class($1)
+ members = Hash[*o.children.map { |c| accept c }]
+ string = members.delete 'str'
+
+ if klass
+ string = klass.allocate
+ string.replace string
+ end
+
+ init_with(string, members.map { |k,v| [k.to_s.sub(/^@/, ''),v] }, o)
+ when /^!ruby\/array:(.*)$/
+ klass = resolve_class($1)
+ list = register(o, klass.allocate)
+
+ members = Hash[o.children.map { |c| accept c }.each_slice(2).to_a]
+ list.replace members['internal']
+
+ members['ivars'].each do |ivar, v|
+ list.instance_variable_set ivar, v
+ end
+ list
+ when /^!ruby\/struct:?(.*)?$/
+ klass = resolve_class($1)
+
+ if klass
+ s = register(o, klass.allocate)
+
+ members = {}
+ struct_members = s.members.map { |x| x.to_sym }
+ o.children.each_slice(2) do |k,v|
+ member = accept(k)
+ value = accept(v)
+ if struct_members.include?(member.to_sym)
+ s.send("#{member}=", value)
+ else
+ members[member.to_s.sub(/^@/, '')] = value
+ end
+ end
+ init_with(s, members, o)
+ else
+ members = o.children.map { |c| accept c }
+ h = Hash[*members]
+ Struct.new(*h.map { |k,v| k.to_sym }).new(*h.map { |k,v| v })
+ end
+
+ when '!ruby/range'
+ h = Hash[*o.children.map { |c| accept c }]
+ register o, Range.new(h['begin'], h['end'], h['excl'])
+
+ when /^!ruby\/exception:?(.*)?$/
+ h = Hash[*o.children.map { |c| accept c }]
+
+ e = build_exception((resolve_class($1) || Exception),
+ h.delete('message'))
+ init_with(e, h, o)
+
+ when '!set', 'tag:yaml.org,2002:set'
+ set = Psych::Set.new
+ @st[o.anchor] = set if o.anchor
+ o.children.each_slice(2) do |k,v|
+ set[accept(k)] = accept(v)
+ end
+ set
+
+ when '!ruby/object:Complex'
+ h = Hash[*o.children.map { |c| accept c }]
+ register o, Complex(h['real'], h['image'])
+
+ when '!ruby/object:Rational'
+ h = Hash[*o.children.map { |c| accept c }]
+ register o, Rational(h['numerator'], h['denominator'])
+
+ when /^!ruby\/object:?(.*)?$/
+ name = $1 || 'Object'
+ obj = revive((resolve_class(name) || Object), o)
+ obj
+
+ when /^!map:(.*)$/, /^!ruby\/hash:(.*)$/
+ revive_hash resolve_class($1).new, o
+
+ else
+ revive_hash({}, o)
+ end
+ end
+
+ def visit_Psych_Nodes_Document o
+ accept o.root
+ end
+
+ def visit_Psych_Nodes_Stream o
+ o.children.map { |c| accept c }
+ end
+
+ def visit_Psych_Nodes_Alias o
+ @st.fetch(o.anchor) { raise BadAlias, "Unknown alias: #{o.anchor}" }
+ end
+
+ private
+ def register node, object
+ @st[node.anchor] = object if node.anchor
+ object
+ end
+
+ def revive_hash hash, o
+ @st[o.anchor] = hash if o.anchor
+
+ o.children.each_slice(2) { |k,v|
+ key = accept(k)
+
+ if key == '<<'
+ case v
+ when Nodes::Alias
+ hash.merge! accept(v)
+ when Nodes::Sequence
+ accept(v).reverse_each do |value|
+ hash.merge! value
+ end
+ else
+ hash[key] = accept(v)
+ end
+ else
+ hash[key] = accept(v)
+ end
+
+ }
+ hash
+ end
+
+ def revive klass, node
+ s = klass.allocate
+ @st[node.anchor] = s if node.anchor
+ h = Hash[*node.children.map { |c| accept c }]
+ init_with(s, h, node)
+ end
+
+ def init_with o, h, node
+ c = Psych::Coder.new(node.tag)
+ c.map = h
+
+ if o.respond_to?(:init_with)
+ o.init_with c
+ elsif o.respond_to?(:yaml_initialize)
+ if $VERBOSE
+ warn "Implementing #{o.class}#yaml_initialize is deprecated, please implement \"init_with(coder)\""
+ end
+ o.yaml_initialize c.tag, c.map
+ else
+ h.each { |k,v| o.instance_variable_set(:"@#{k}", v) }
+ end
+ o
+ end
+
+ # Convert +klassname+ to a Class
+ def resolve_class klassname
+ return nil unless klassname and not klassname.empty?
+
+ name = klassname
+ retried = false
+
+ begin
+ path2class(name)
+ rescue ArgumentError, NameError => ex
+ unless retried
+ name = "Struct::#{name}"
+ retried = ex
+ retry
+ end
+ raise retried
+ end
+ end
+ end
+ end
+end
diff --git a/ext/psych/lib/psych/visitors/visitor.rb b/ext/psych/lib/psych/visitors/visitor.rb
new file mode 100644
index 0000000000..4d7772f428
--- /dev/null
+++ b/ext/psych/lib/psych/visitors/visitor.rb
@@ -0,0 +1,19 @@
+module Psych
+ module Visitors
+ class Visitor
+ def accept target
+ visit target
+ end
+
+ private
+
+ DISPATCH = Hash.new do |hash, klass|
+ hash[klass] = "visit_#{klass.name.gsub('::', '_')}"
+ end
+
+ def visit target
+ send DISPATCH[target.class], target
+ end
+ end
+ end
+end
diff --git a/ext/psych/lib/psych/visitors/yaml_tree.rb b/ext/psych/lib/psych/visitors/yaml_tree.rb
new file mode 100644
index 0000000000..80af0466eb
--- /dev/null
+++ b/ext/psych/lib/psych/visitors/yaml_tree.rb
@@ -0,0 +1,452 @@
+module Psych
+ module Visitors
+ ###
+ # YAMLTree builds a YAML ast given a ruby object. For example:
+ #
+ # builder = Psych::Visitors::YAMLTree.new
+ # builder << { :foo => 'bar' }
+ # builder.tree # => #<Psych::Nodes::Stream .. }
+ #
+ class YAMLTree < Psych::Visitors::Visitor
+ attr_reader :started, :finished
+ alias :finished? :finished
+ alias :started? :started
+
+ def initialize options = {}, emitter = TreeBuilder.new, ss = ScalarScanner.new
+ super()
+ @started = false
+ @finished = false
+ @emitter = emitter
+ @st = {}
+ @ss = ss
+ @options = options
+
+ @dispatch_cache = Hash.new do |h,klass|
+ method = "visit_#{(klass.name || '').split('::').join('_')}"
+
+ method = respond_to?(method) ? method : h[klass.superclass]
+
+ raise(TypeError, "Can't dump #{target.class}") unless method
+
+ h[klass] = method
+ end
+ end
+
+ def start encoding = Nodes::Stream::UTF8
+ @emitter.start_stream(encoding).tap do
+ @started = true
+ end
+ end
+
+ def finish
+ @emitter.end_stream.tap do
+ @finished = true
+ end
+ end
+
+ def tree
+ finish unless finished?
+ end
+
+ def push object
+ start unless started?
+ version = []
+ version = [1,1] if @options[:header]
+
+ case @options[:version]
+ when Array
+ version = @options[:version]
+ when String
+ version = @options[:version].split('.').map { |x| x.to_i }
+ else
+ version = [1,1]
+ end if @options.key? :version
+
+ @emitter.start_document version, [], false
+ accept object
+ @emitter.end_document
+ end
+ alias :<< :push
+
+ def accept target
+ # return any aliases we find
+ if @st.key? target.object_id
+ oid = target.object_id
+ node = @st[oid]
+ anchor = oid.to_s
+ node.anchor = anchor
+ return @emitter.alias anchor
+ end
+
+ if target.respond_to?(:to_yaml)
+ begin
+ loc = target.method(:to_yaml).source_location.first
+ if loc !~ /(syck\/rubytypes.rb|psych\/core_ext.rb)/
+ unless target.respond_to?(:encode_with)
+ if $VERBOSE
+ warn "implementing to_yaml is deprecated, please implement \"encode_with\""
+ end
+
+ target.to_yaml(:nodump => true)
+ end
+ end
+ rescue
+ # public_method or source_location might be overridden,
+ # and it's OK to skip it since it's only to emit a warning
+ end
+ end
+
+ if target.respond_to?(:encode_with)
+ dump_coder target
+ else
+ send(@dispatch_cache[target.class], target)
+ end
+ end
+
+ def visit_Psych_Omap o
+ seq = @emitter.start_sequence(nil, '!omap', false, Nodes::Sequence::BLOCK)
+ register(o, seq)
+
+ o.each { |k,v| visit_Hash k => v }
+ @emitter.end_sequence
+ end
+
+ def visit_Object o
+ tag = Psych.dump_tags[o.class]
+ unless tag
+ klass = o.class == Object ? nil : o.class.name
+ tag = ['!ruby/object', klass].compact.join(':')
+ end
+
+ map = @emitter.start_mapping(nil, tag, false, Nodes::Mapping::BLOCK)
+ register(o, map)
+
+ dump_ivars o
+ @emitter.end_mapping
+ end
+
+ def visit_Struct o
+ tag = ['!ruby/struct', o.class.name].compact.join(':')
+
+ register o, @emitter.start_mapping(nil, tag, false, Nodes::Mapping::BLOCK)
+ o.members.each do |member|
+ @emitter.scalar member.to_s, nil, nil, true, false, Nodes::Scalar::ANY
+ accept o[member]
+ end
+
+ dump_ivars o
+
+ @emitter.end_mapping
+ end
+
+ def visit_Exception o
+ tag = ['!ruby/exception', o.class.name].join ':'
+
+ @emitter.start_mapping nil, tag, false, Nodes::Mapping::BLOCK
+
+ {
+ 'message' => private_iv_get(o, 'mesg'),
+ 'backtrace' => private_iv_get(o, 'backtrace'),
+ }.each do |k,v|
+ next unless v
+ @emitter.scalar k, nil, nil, true, false, Nodes::Scalar::ANY
+ accept v
+ end
+
+ dump_ivars o
+
+ @emitter.end_mapping
+ end
+
+ def visit_Regexp o
+ register o, @emitter.scalar(o.inspect, nil, '!ruby/regexp', false, false, Nodes::Scalar::ANY)
+ end
+
+ def visit_DateTime o
+ formatted = format_time o.to_time
+ tag = '!ruby/object:DateTime'
+ register o, @emitter.scalar(formatted, nil, tag, false, false, Nodes::Scalar::ANY)
+ end
+
+ def visit_Time o
+ formatted = format_time o
+ @emitter.scalar formatted, nil, nil, true, false, Nodes::Scalar::ANY
+ end
+
+ def visit_Rational o
+ register o, @emitter.start_mapping(nil, '!ruby/object:Rational', false, Nodes::Mapping::BLOCK)
+
+ [
+ 'denominator', o.denominator.to_s,
+ 'numerator', o.numerator.to_s
+ ].each do |m|
+ @emitter.scalar m, nil, nil, true, false, Nodes::Scalar::ANY
+ end
+
+ @emitter.end_mapping
+ end
+
+ def visit_Complex o
+ register o, @emitter.start_mapping(nil, '!ruby/object:Complex', false, Nodes::Mapping::BLOCK)
+
+ ['real', o.real.to_s, 'image', o.imag.to_s].each do |m|
+ @emitter.scalar m, nil, nil, true, false, Nodes::Scalar::ANY
+ end
+
+ @emitter.end_mapping
+ end
+
+ def visit_Integer o
+ @emitter.scalar o.to_s, nil, nil, true, false, Nodes::Scalar::ANY
+ end
+ alias :visit_TrueClass :visit_Integer
+ alias :visit_FalseClass :visit_Integer
+ alias :visit_Date :visit_Integer
+
+ def visit_Float o
+ if o.nan?
+ @emitter.scalar '.nan', nil, nil, true, false, Nodes::Scalar::ANY
+ elsif o.infinite?
+ @emitter.scalar((o.infinite? > 0 ? '.inf' : '-.inf'),
+ nil, nil, true, false, Nodes::Scalar::ANY)
+ else
+ @emitter.scalar o.to_s, nil, nil, true, false, Nodes::Scalar::ANY
+ end
+ end
+
+ def visit_BigDecimal o
+ @emitter.scalar o._dump, nil, '!ruby/object:BigDecimal', false, false, Nodes::Scalar::ANY
+ end
+
+ def binary? string
+ string.encoding == Encoding::ASCII_8BIT ||
+ string.index("\x00") ||
+ string.count("\x00-\x7F", "^ -~\t\r\n").fdiv(string.length) > 0.3
+ end
+ private :binary?
+
+ def visit_String o
+ plain = false
+ quote = false
+ style = Nodes::Scalar::ANY
+
+ if binary?(o)
+ str = [o].pack('m').chomp
+ tag = '!binary' # FIXME: change to below when syck is removed
+ #tag = 'tag:yaml.org,2002:binary'
+ style = Nodes::Scalar::LITERAL
+ else
+ str = o
+ tag = nil
+ quote = !(String === @ss.tokenize(o))
+ plain = !quote
+ end
+
+ ivars = find_ivars o
+
+ if ivars.empty?
+ unless o.class == ::String
+ tag = "!ruby/string:#{o.class}"
+ end
+ @emitter.scalar str, nil, tag, plain, quote, style
+ else
+ maptag = '!ruby/string'
+ maptag << ":#{o.class}" unless o.class == ::String
+
+ @emitter.start_mapping nil, maptag, false, Nodes::Mapping::BLOCK
+ @emitter.scalar 'str', nil, nil, true, false, Nodes::Scalar::ANY
+ @emitter.scalar str, nil, tag, plain, quote, style
+
+ dump_ivars o
+
+ @emitter.end_mapping
+ end
+ end
+
+ def visit_Module o
+ raise TypeError, "can't dump anonymous module: #{o}" unless o.name
+ register o, @emitter.scalar(o.name, nil, '!ruby/module', false, false, Nodes::Scalar::SINGLE_QUOTED)
+ end
+
+ def visit_Class o
+ raise TypeError, "can't dump anonymous class: #{o}" unless o.name
+ register o, @emitter.scalar(o.name, nil, '!ruby/class', false, false, Nodes::Scalar::SINGLE_QUOTED)
+ end
+
+ def visit_Range o
+ register o, @emitter.start_mapping(nil, '!ruby/range', false, Nodes::Mapping::BLOCK)
+ ['begin', o.begin, 'end', o.end, 'excl', o.exclude_end?].each do |m|
+ accept m
+ end
+ @emitter.end_mapping
+ end
+
+ def visit_Hash o
+ tag = o.class == ::Hash ? nil : "!ruby/hash:#{o.class}"
+ implicit = !tag
+
+ register(o, @emitter.start_mapping(nil, tag, implicit, Psych::Nodes::Mapping::BLOCK))
+
+ o.each do |k,v|
+ accept k
+ accept v
+ end
+
+ @emitter.end_mapping
+ end
+
+ def visit_Psych_Set o
+ register(o, @emitter.start_mapping(nil, '!set', false, Psych::Nodes::Mapping::BLOCK))
+
+ o.each do |k,v|
+ accept k
+ accept v
+ end
+
+ @emitter.end_mapping
+ end
+
+ def visit_Array o
+ if o.class == ::Array
+ register o, @emitter.start_sequence(nil, nil, true, Nodes::Sequence::BLOCK)
+ o.each { |c| accept c }
+ @emitter.end_sequence
+ else
+ visit_array_subclass o
+ end
+ end
+
+ def visit_NilClass o
+ @emitter.scalar('', nil, 'tag:yaml.org,2002:null', true, false, Nodes::Scalar::ANY)
+ end
+
+ def visit_Symbol o
+ @emitter.scalar ":#{o}", nil, nil, true, false, Nodes::Scalar::ANY
+ end
+
+ private
+ def visit_array_subclass o
+ tag = "!ruby/array:#{o.class}"
+ if o.instance_variables.empty?
+ node = @emitter.start_sequence(nil, tag, false, Nodes::Sequence::BLOCK)
+ register o, node
+ o.each { |c| accept c }
+ @emitter.end_sequence
+ else
+ node = @emitter.start_mapping(nil, tag, false, Nodes::Sequence::BLOCK)
+ register o, node
+
+ # Dump the internal list
+ accept 'internal'
+ @emitter.start_sequence(nil, nil, true, Nodes::Sequence::BLOCK)
+ o.each { |c| accept c }
+ @emitter.end_sequence
+
+ # Dump the ivars
+ accept 'ivars'
+ @emitter.start_mapping(nil, nil, true, Nodes::Sequence::BLOCK)
+ o.instance_variables.each do |ivar|
+ accept ivar
+ accept o.instance_variable_get ivar
+ end
+ @emitter.end_mapping
+
+ @emitter.end_mapping
+ end
+ end
+
+ def dump_list o
+ end
+
+ # '%:z' was no defined until 1.9.3
+ if RUBY_VERSION < '1.9.3'
+ def format_time time
+ formatted = time.strftime("%Y-%m-%d %H:%M:%S.%9N")
+
+ if time.utc?
+ formatted += " Z"
+ else
+ zone = time.strftime('%z')
+ formatted += " #{zone[0,3]}:#{zone[3,5]}"
+ end
+
+ formatted
+ end
+ else
+ def format_time time
+ if time.utc?
+ time.strftime("%Y-%m-%d %H:%M:%S.%9N Z")
+ else
+ time.strftime("%Y-%m-%d %H:%M:%S.%9N %:z")
+ end
+ end
+ end
+
+ # FIXME: remove this method once "to_yaml_properties" is removed
+ def find_ivars target
+ begin
+ loc = target.method(:to_yaml_properties).source_location.first
+ unless loc.start_with?(Psych::DEPRECATED) || loc.end_with?('rubytypes.rb')
+ if $VERBOSE
+ warn "#{loc}: to_yaml_properties is deprecated, please implement \"encode_with(coder)\""
+ end
+ return target.to_yaml_properties
+ end
+ rescue
+ # public_method or source_location might be overridden,
+ # and it's OK to skip it since it's only to emit a warning.
+ end
+
+ target.instance_variables
+ end
+
+ def register target, yaml_obj
+ @st[target.object_id] = yaml_obj
+ yaml_obj
+ end
+
+ def dump_coder o
+ tag = Psych.dump_tags[o.class]
+ unless tag
+ klass = o.class == Object ? nil : o.class.name
+ tag = ['!ruby/object', klass].compact.join(':')
+ end
+
+ c = Psych::Coder.new(tag)
+ o.encode_with(c)
+ emit_coder c
+ end
+
+ def emit_coder c
+ case c.type
+ when :scalar
+ @emitter.scalar c.scalar, nil, c.tag, c.tag.nil?, false, Nodes::Scalar::ANY
+ when :seq
+ @emitter.start_sequence nil, c.tag, c.tag.nil?, Nodes::Sequence::BLOCK
+ c.seq.each do |thing|
+ accept thing
+ end
+ @emitter.end_sequence
+ when :map
+ @emitter.start_mapping nil, c.tag, c.implicit, c.style
+ c.map.each do |k,v|
+ @emitter.scalar k, nil, nil, true, false, Nodes::Scalar::ANY
+ accept v
+ end
+ @emitter.end_mapping
+ when :object
+ accept c.object
+ end
+ end
+
+ def dump_ivars target
+ ivars = find_ivars target
+
+ ivars.each do |iv|
+ @emitter.scalar("#{iv.to_s.sub(/^@/, '')}", nil, nil, true, false, Nodes::Scalar::ANY)
+ accept target.instance_variable_get(iv)
+ end
+ end
+ end
+ end
+end
diff --git a/ext/psych/parser.c b/ext/psych/parser.c
new file mode 100644
index 0000000000..6f4c4569e9
--- /dev/null
+++ b/ext/psych/parser.c
@@ -0,0 +1,579 @@
+#include <psych.h>
+
+VALUE cPsychParser;
+VALUE ePsychSyntaxError;
+
+static ID id_read;
+static ID id_path;
+static ID id_empty;
+static ID id_start_stream;
+static ID id_end_stream;
+static ID id_start_document;
+static ID id_end_document;
+static ID id_alias;
+static ID id_scalar;
+static ID id_start_sequence;
+static ID id_end_sequence;
+static ID id_start_mapping;
+static ID id_end_mapping;
+
+#define PSYCH_TRANSCODE(_str, _yaml_enc, _internal_enc) \
+ do { \
+ rb_enc_associate_index((_str), (_yaml_enc)); \
+ if(_internal_enc) \
+ (_str) = rb_str_export_to_enc((_str), (_internal_enc)); \
+ } while (0)
+
+static int io_reader(void * data, unsigned char *buf, size_t size, size_t *read)
+{
+ VALUE io = (VALUE)data;
+ VALUE string = rb_funcall(io, id_read, 1, INT2NUM(size));
+
+ *read = 0;
+
+ if(! NIL_P(string)) {
+ void * str = (void *)StringValuePtr(string);
+ *read = (size_t)RSTRING_LEN(string);
+ memcpy(buf, str, *read);
+ }
+
+ return 1;
+}
+
+static void dealloc(void * ptr)
+{
+ yaml_parser_t * parser;
+
+ parser = (yaml_parser_t *)ptr;
+ yaml_parser_delete(parser);
+ xfree(parser);
+}
+
+static VALUE allocate(VALUE klass)
+{
+ yaml_parser_t * parser;
+
+ parser = xmalloc(sizeof(yaml_parser_t));
+ yaml_parser_initialize(parser);
+
+ return Data_Wrap_Struct(klass, 0, dealloc, parser);
+}
+
+static VALUE make_exception(yaml_parser_t * parser, VALUE path)
+{
+ size_t line, column;
+
+ line = parser->context_mark.line + 1;
+ column = parser->context_mark.column + 1;
+
+ return rb_funcall(ePsychSyntaxError, rb_intern("new"), 6,
+ path,
+ INT2NUM(line),
+ INT2NUM(column),
+ INT2NUM(parser->problem_offset),
+ parser->problem ? rb_usascii_str_new2(parser->problem) : Qnil,
+ parser->context ? rb_usascii_str_new2(parser->context) : Qnil);
+}
+
+#ifdef HAVE_RUBY_ENCODING_H
+static VALUE transcode_string(VALUE src, int * parser_encoding)
+{
+ int utf8 = rb_utf8_encindex();
+ int utf16le = rb_enc_find_index("UTF16_LE");
+ int utf16be = rb_enc_find_index("UTF16_BE");
+ int source_encoding = rb_enc_get_index(src);
+
+ if (source_encoding == utf8) {
+ *parser_encoding = YAML_UTF8_ENCODING;
+ return src;
+ }
+
+ if (source_encoding == utf16le) {
+ *parser_encoding = YAML_UTF16LE_ENCODING;
+ return src;
+ }
+
+ if (source_encoding == utf16be) {
+ *parser_encoding = YAML_UTF16BE_ENCODING;
+ return src;
+ }
+
+ src = rb_str_export_to_enc(src, rb_utf8_encoding());
+ RB_GC_GUARD(src);
+
+ *parser_encoding = YAML_UTF8_ENCODING;
+ return src;
+}
+
+static VALUE transcode_io(VALUE src, int * parser_encoding)
+{
+ VALUE io_external_encoding;
+ int io_external_enc_index;
+
+ io_external_encoding = rb_funcall(src, rb_intern("external_encoding"), 0);
+
+ /* if no encoding is returned, assume ascii8bit. */
+ if (NIL_P(io_external_encoding)) {
+ io_external_enc_index = rb_ascii8bit_encindex();
+ } else {
+ io_external_enc_index = rb_to_encoding_index(io_external_encoding);
+ }
+
+ /* Treat US-ASCII as utf_8 */
+ if (io_external_enc_index == rb_usascii_encindex()) {
+ *parser_encoding = YAML_UTF8_ENCODING;
+ return src;
+ }
+
+ if (io_external_enc_index == rb_utf8_encindex()) {
+ *parser_encoding = YAML_UTF8_ENCODING;
+ return src;
+ }
+
+ if (io_external_enc_index == rb_enc_find_index("UTF-16LE")) {
+ *parser_encoding = YAML_UTF16LE_ENCODING;
+ return src;
+ }
+
+ if (io_external_enc_index == rb_enc_find_index("UTF-16BE")) {
+ *parser_encoding = YAML_UTF16BE_ENCODING;
+ return src;
+ }
+
+ /* Just guess on ASCII-8BIT */
+ if (io_external_enc_index == rb_ascii8bit_encindex()) {
+ *parser_encoding = YAML_ANY_ENCODING;
+ return src;
+ }
+
+ /* If the external encoding is something we don't know how to handle,
+ * fall back to YAML_ANY_ENCODING. */
+ *parser_encoding = YAML_ANY_ENCODING;
+
+ return src;
+}
+
+#endif
+
+static VALUE protected_start_stream(VALUE pointer)
+{
+ VALUE *args = (VALUE *)pointer;
+ return rb_funcall(args[0], id_start_stream, 1, args[1]);
+}
+
+static VALUE protected_start_document(VALUE pointer)
+{
+ VALUE *args = (VALUE *)pointer;
+ return rb_funcall3(args[0], id_start_document, 3, args + 1);
+}
+
+static VALUE protected_end_document(VALUE pointer)
+{
+ VALUE *args = (VALUE *)pointer;
+ return rb_funcall(args[0], id_end_document, 1, args[1]);
+}
+
+static VALUE protected_alias(VALUE pointer)
+{
+ VALUE *args = (VALUE *)pointer;
+ return rb_funcall(args[0], id_alias, 1, args[1]);
+}
+
+static VALUE protected_scalar(VALUE pointer)
+{
+ VALUE *args = (VALUE *)pointer;
+ return rb_funcall3(args[0], id_scalar, 6, args + 1);
+}
+
+static VALUE protected_start_sequence(VALUE pointer)
+{
+ VALUE *args = (VALUE *)pointer;
+ return rb_funcall3(args[0], id_start_sequence, 4, args + 1);
+}
+
+static VALUE protected_end_sequence(VALUE handler)
+{
+ return rb_funcall(handler, id_end_sequence, 0);
+}
+
+static VALUE protected_start_mapping(VALUE pointer)
+{
+ VALUE *args = (VALUE *)pointer;
+ return rb_funcall3(args[0], id_start_mapping, 4, args + 1);
+}
+
+static VALUE protected_end_mapping(VALUE handler)
+{
+ return rb_funcall(handler, id_end_mapping, 0);
+}
+
+static VALUE protected_empty(VALUE handler)
+{
+ return rb_funcall(handler, id_empty, 0);
+}
+
+static VALUE protected_end_stream(VALUE handler)
+{
+ return rb_funcall(handler, id_end_stream, 0);
+}
+
+/*
+ * call-seq:
+ * parser.parse(yaml)
+ *
+ * Parse the YAML document contained in +yaml+. Events will be called on
+ * the handler set on the parser instance.
+ *
+ * See Psych::Parser and Psych::Parser#handler
+ */
+static VALUE parse(int argc, VALUE *argv, VALUE self)
+{
+ VALUE yaml, path;
+ yaml_parser_t * parser;
+ yaml_event_t event;
+ int done = 0;
+ int tainted = 0;
+ int state = 0;
+ int parser_encoding = YAML_ANY_ENCODING;
+#ifdef HAVE_RUBY_ENCODING_H
+ int encoding = rb_utf8_encindex();
+ rb_encoding * internal_enc = rb_default_internal_encoding();
+#endif
+ VALUE handler = rb_iv_get(self, "@handler");
+
+ if (rb_scan_args(argc, argv, "11", &yaml, &path) == 1) {
+ if(rb_respond_to(yaml, id_path))
+ path = rb_funcall(yaml, id_path, 0);
+ else
+ path = rb_str_new2("<unknown>");
+ }
+
+ Data_Get_Struct(self, yaml_parser_t, parser);
+
+ yaml_parser_delete(parser);
+ yaml_parser_initialize(parser);
+
+ if (OBJ_TAINTED(yaml)) tainted = 1;
+
+ if (rb_respond_to(yaml, id_read)) {
+#ifdef HAVE_RUBY_ENCODING_H
+ yaml = transcode_io(yaml, &parser_encoding);
+ yaml_parser_set_encoding(parser, parser_encoding);
+#endif
+ yaml_parser_set_input(parser, io_reader, (void *)yaml);
+ if (RTEST(rb_obj_is_kind_of(yaml, rb_cIO))) tainted = 1;
+ } else {
+ StringValue(yaml);
+#ifdef HAVE_RUBY_ENCODING_H
+ yaml = transcode_string(yaml, &parser_encoding);
+ yaml_parser_set_encoding(parser, parser_encoding);
+#endif
+ yaml_parser_set_input_string(
+ parser,
+ (const unsigned char *)RSTRING_PTR(yaml),
+ (size_t)RSTRING_LEN(yaml)
+ );
+ }
+
+ while(!done) {
+ if(!yaml_parser_parse(parser, &event)) {
+ VALUE exception;
+
+ exception = make_exception(parser, path);
+ yaml_parser_delete(parser);
+ yaml_parser_initialize(parser);
+
+ rb_exc_raise(exception);
+ }
+
+ switch(event.type) {
+ case YAML_STREAM_START_EVENT:
+ {
+ VALUE args[2];
+
+ args[0] = handler;
+ args[1] = INT2NUM((long)event.data.stream_start.encoding);
+ rb_protect(protected_start_stream, (VALUE)args, &state);
+ }
+ break;
+ case YAML_DOCUMENT_START_EVENT:
+ {
+ VALUE args[4];
+ /* Get a list of tag directives (if any) */
+ VALUE tag_directives = rb_ary_new();
+ /* Grab the document version */
+ VALUE version = event.data.document_start.version_directive ?
+ rb_ary_new3(
+ (long)2,
+ INT2NUM((long)event.data.document_start.version_directive->major),
+ INT2NUM((long)event.data.document_start.version_directive->minor)
+ ) : rb_ary_new();
+
+ if(event.data.document_start.tag_directives.start) {
+ yaml_tag_directive_t *start =
+ event.data.document_start.tag_directives.start;
+ yaml_tag_directive_t *end =
+ event.data.document_start.tag_directives.end;
+ for(; start != end; start++) {
+ VALUE handle = Qnil;
+ VALUE prefix = Qnil;
+ if(start->handle) {
+ handle = rb_str_new2((const char *)start->handle);
+ if (tainted) OBJ_TAINT(handle);
+#ifdef HAVE_RUBY_ENCODING_H
+ PSYCH_TRANSCODE(handle, encoding, internal_enc);
+#endif
+ }
+
+ if(start->prefix) {
+ prefix = rb_str_new2((const char *)start->prefix);
+ if (tainted) OBJ_TAINT(prefix);
+#ifdef HAVE_RUBY_ENCODING_H
+ PSYCH_TRANSCODE(prefix, encoding, internal_enc);
+#endif
+ }
+
+ rb_ary_push(tag_directives, rb_ary_new3((long)2, handle, prefix));
+ }
+ }
+ args[0] = handler;
+ args[1] = version;
+ args[2] = tag_directives;
+ args[3] = event.data.document_start.implicit == 1 ? Qtrue : Qfalse;
+ rb_protect(protected_start_document, (VALUE)args, &state);
+ }
+ break;
+ case YAML_DOCUMENT_END_EVENT:
+ {
+ VALUE args[2];
+
+ args[0] = handler;
+ args[1] = event.data.document_end.implicit == 1 ? Qtrue : Qfalse;
+ rb_protect(protected_end_document, (VALUE)args, &state);
+ }
+ break;
+ case YAML_ALIAS_EVENT:
+ {
+ VALUE args[2];
+ VALUE alias = Qnil;
+ if(event.data.alias.anchor) {
+ alias = rb_str_new2((const char *)event.data.alias.anchor);
+ if (tainted) OBJ_TAINT(alias);
+#ifdef HAVE_RUBY_ENCODING_H
+ PSYCH_TRANSCODE(alias, encoding, internal_enc);
+#endif
+ }
+
+ args[0] = handler;
+ args[1] = alias;
+ rb_protect(protected_alias, (VALUE)args, &state);
+ }
+ break;
+ case YAML_SCALAR_EVENT:
+ {
+ VALUE args[7];
+ VALUE anchor = Qnil;
+ VALUE tag = Qnil;
+ VALUE plain_implicit, quoted_implicit, style;
+ VALUE val = rb_str_new(
+ (const char *)event.data.scalar.value,
+ (long)event.data.scalar.length
+ );
+ if (tainted) OBJ_TAINT(val);
+
+#ifdef HAVE_RUBY_ENCODING_H
+ PSYCH_TRANSCODE(val, encoding, internal_enc);
+#endif
+
+ if(event.data.scalar.anchor) {
+ anchor = rb_str_new2((const char *)event.data.scalar.anchor);
+ if (tainted) OBJ_TAINT(anchor);
+#ifdef HAVE_RUBY_ENCODING_H
+ PSYCH_TRANSCODE(anchor, encoding, internal_enc);
+#endif
+ }
+
+ if(event.data.scalar.tag) {
+ tag = rb_str_new2((const char *)event.data.scalar.tag);
+ if (tainted) OBJ_TAINT(tag);
+#ifdef HAVE_RUBY_ENCODING_H
+ PSYCH_TRANSCODE(tag, encoding, internal_enc);
+#endif
+ }
+
+ plain_implicit =
+ event.data.scalar.plain_implicit == 0 ? Qfalse : Qtrue;
+
+ quoted_implicit =
+ event.data.scalar.quoted_implicit == 0 ? Qfalse : Qtrue;
+
+ style = INT2NUM((long)event.data.scalar.style);
+
+ args[0] = handler;
+ args[1] = val;
+ args[2] = anchor;
+ args[3] = tag;
+ args[4] = plain_implicit;
+ args[5] = quoted_implicit;
+ args[6] = style;
+ rb_protect(protected_scalar, (VALUE)args, &state);
+ }
+ break;
+ case YAML_SEQUENCE_START_EVENT:
+ {
+ VALUE args[5];
+ VALUE anchor = Qnil;
+ VALUE tag = Qnil;
+ VALUE implicit, style;
+ if(event.data.sequence_start.anchor) {
+ anchor = rb_str_new2((const char *)event.data.sequence_start.anchor);
+ if (tainted) OBJ_TAINT(anchor);
+#ifdef HAVE_RUBY_ENCODING_H
+ PSYCH_TRANSCODE(anchor, encoding, internal_enc);
+#endif
+ }
+
+ tag = Qnil;
+ if(event.data.sequence_start.tag) {
+ tag = rb_str_new2((const char *)event.data.sequence_start.tag);
+ if (tainted) OBJ_TAINT(tag);
+#ifdef HAVE_RUBY_ENCODING_H
+ PSYCH_TRANSCODE(tag, encoding, internal_enc);
+#endif
+ }
+
+ implicit =
+ event.data.sequence_start.implicit == 0 ? Qfalse : Qtrue;
+
+ style = INT2NUM((long)event.data.sequence_start.style);
+
+ args[0] = handler;
+ args[1] = anchor;
+ args[2] = tag;
+ args[3] = implicit;
+ args[4] = style;
+
+ rb_protect(protected_start_sequence, (VALUE)args, &state);
+ }
+ break;
+ case YAML_SEQUENCE_END_EVENT:
+ rb_protect(protected_end_sequence, handler, &state);
+ break;
+ case YAML_MAPPING_START_EVENT:
+ {
+ VALUE args[5];
+ VALUE anchor = Qnil;
+ VALUE tag = Qnil;
+ VALUE implicit, style;
+ if(event.data.mapping_start.anchor) {
+ anchor = rb_str_new2((const char *)event.data.mapping_start.anchor);
+ if (tainted) OBJ_TAINT(anchor);
+#ifdef HAVE_RUBY_ENCODING_H
+ PSYCH_TRANSCODE(anchor, encoding, internal_enc);
+#endif
+ }
+
+ if(event.data.mapping_start.tag) {
+ tag = rb_str_new2((const char *)event.data.mapping_start.tag);
+ if (tainted) OBJ_TAINT(tag);
+#ifdef HAVE_RUBY_ENCODING_H
+ PSYCH_TRANSCODE(tag, encoding, internal_enc);
+#endif
+ }
+
+ implicit =
+ event.data.mapping_start.implicit == 0 ? Qfalse : Qtrue;
+
+ style = INT2NUM((long)event.data.mapping_start.style);
+
+ args[0] = handler;
+ args[1] = anchor;
+ args[2] = tag;
+ args[3] = implicit;
+ args[4] = style;
+
+ rb_protect(protected_start_mapping, (VALUE)args, &state);
+ }
+ break;
+ case YAML_MAPPING_END_EVENT:
+ rb_protect(protected_end_mapping, handler, &state);
+ break;
+ case YAML_NO_EVENT:
+ rb_protect(protected_empty, handler, &state);
+ break;
+ case YAML_STREAM_END_EVENT:
+ rb_protect(protected_end_stream, handler, &state);
+ done = 1;
+ break;
+ }
+ yaml_event_delete(&event);
+ if (state) rb_jump_tag(state);
+ }
+
+ return self;
+}
+
+/*
+ * call-seq:
+ * parser.mark # => #<Psych::Parser::Mark>
+ *
+ * Returns a Psych::Parser::Mark object that contains line, column, and index
+ * information.
+ */
+static VALUE mark(VALUE self)
+{
+ VALUE mark_klass;
+ VALUE args[3];
+ yaml_parser_t * parser;
+
+ Data_Get_Struct(self, yaml_parser_t, parser);
+ mark_klass = rb_const_get_at(cPsychParser, rb_intern("Mark"));
+ args[0] = INT2NUM(parser->mark.index);
+ args[1] = INT2NUM(parser->mark.line);
+ args[2] = INT2NUM(parser->mark.column);
+
+ return rb_class_new_instance(3, args, mark_klass);
+}
+
+void Init_psych_parser()
+{
+#if 0
+ mPsych = rb_define_module("Psych");
+#endif
+
+ cPsychParser = rb_define_class_under(mPsych, "Parser", rb_cObject);
+ rb_define_alloc_func(cPsychParser, allocate);
+
+ /* Any encoding: Let the parser choose the encoding */
+ rb_define_const(cPsychParser, "ANY", INT2NUM(YAML_ANY_ENCODING));
+
+ /* UTF-8 Encoding */
+ rb_define_const(cPsychParser, "UTF8", INT2NUM(YAML_UTF8_ENCODING));
+
+ /* UTF-16-LE Encoding with BOM */
+ rb_define_const(cPsychParser, "UTF16LE", INT2NUM(YAML_UTF16LE_ENCODING));
+
+ /* UTF-16-BE Encoding with BOM */
+ rb_define_const(cPsychParser, "UTF16BE", INT2NUM(YAML_UTF16BE_ENCODING));
+
+ rb_require("psych/syntax_error");
+ ePsychSyntaxError = rb_define_class_under(mPsych, "SyntaxError", rb_eSyntaxError);
+
+ rb_define_method(cPsychParser, "parse", parse, -1);
+ rb_define_method(cPsychParser, "mark", mark, 0);
+
+ id_read = rb_intern("read");
+ id_path = rb_intern("path");
+ id_empty = rb_intern("empty");
+ id_start_stream = rb_intern("start_stream");
+ id_end_stream = rb_intern("end_stream");
+ id_start_document = rb_intern("start_document");
+ id_end_document = rb_intern("end_document");
+ id_alias = rb_intern("alias");
+ id_scalar = rb_intern("scalar");
+ id_start_sequence = rb_intern("start_sequence");
+ id_end_sequence = rb_intern("end_sequence");
+ id_start_mapping = rb_intern("start_mapping");
+ id_end_mapping = rb_intern("end_mapping");
+}
+/* vim: set noet sws=4 sw=4: */
diff --git a/ext/psych/parser.h b/ext/psych/parser.h
new file mode 100644
index 0000000000..25e896f01d
--- /dev/null
+++ b/ext/psych/parser.h
@@ -0,0 +1,6 @@
+#ifndef PSYCH_PARSER_H
+#define PSYCH_PARSER_H
+
+void Init_psych_parser();
+
+#endif
diff --git a/ext/psych/psych.c b/ext/psych/psych.c
new file mode 100644
index 0000000000..69ff1d8dfc
--- /dev/null
+++ b/ext/psych/psych.c
@@ -0,0 +1,34 @@
+#include <psych.h>
+
+/* call-seq: Psych.libyaml_version
+ *
+ * Returns the version of libyaml being used
+ */
+static VALUE libyaml_version(VALUE module)
+{
+ int major, minor, patch;
+ VALUE list[3];
+
+ yaml_get_version(&major, &minor, &patch);
+
+ list[0] = INT2NUM((long)major);
+ list[1] = INT2NUM((long)minor);
+ list[2] = INT2NUM((long)patch);
+
+ return rb_ary_new4((long)3, list);
+}
+
+VALUE mPsych;
+
+void Init_psych()
+{
+ mPsych = rb_define_module("Psych");
+
+ rb_define_singleton_method(mPsych, "libyaml_version", libyaml_version, 0);
+
+ Init_psych_parser();
+ Init_psych_emitter();
+ Init_psych_to_ruby();
+ Init_psych_yaml_tree();
+}
+/* vim: set noet sws=4 sw=4: */
diff --git a/ext/psych/psych.h b/ext/psych/psych.h
new file mode 100644
index 0000000000..9f1be449a2
--- /dev/null
+++ b/ext/psych/psych.h
@@ -0,0 +1,20 @@
+#ifndef PSYCH_H
+#define PSYCH_H
+
+#include <ruby.h>
+
+#ifdef HAVE_RUBY_ENCODING_H
+#include <ruby/encoding.h>
+#endif
+
+#include <yaml.h>
+
+#include <parser.h>
+#include <emitter.h>
+#include <to_ruby.h>
+#include <yaml_tree.h>
+
+extern VALUE mPsych;
+
+
+#endif
diff --git a/ext/psych/to_ruby.c b/ext/psych/to_ruby.c
new file mode 100644
index 0000000000..ed5245e12e
--- /dev/null
+++ b/ext/psych/to_ruby.c
@@ -0,0 +1,41 @@
+#include <psych.h>
+
+VALUE cPsychVisitorsToRuby;
+
+/* call-seq: vis.build_exception(klass, message)
+ *
+ * Create an exception with class +klass+ and +message+
+ */
+static VALUE build_exception(VALUE self, VALUE klass, VALUE mesg)
+{
+ VALUE e = rb_obj_alloc(klass);
+
+ rb_iv_set(e, "mesg", mesg);
+
+ return e;
+}
+
+/* call-seq: vis.path2class(path)
+ *
+ * Convert +path+ string to a class
+ */
+static VALUE path2class(VALUE self, VALUE path)
+{
+#ifdef HAVE_RUBY_ENCODING_H
+ return rb_path_to_class(path);
+#else
+ return rb_path2class(StringValuePtr(path));
+#endif
+}
+
+void Init_psych_to_ruby(void)
+{
+ VALUE psych = rb_define_module("Psych");
+ VALUE visitors = rb_define_module_under(psych, "Visitors");
+ VALUE visitor = rb_define_class_under(visitors, "Visitor", rb_cObject);
+ cPsychVisitorsToRuby = rb_define_class_under(visitors, "ToRuby", visitor);
+
+ rb_define_private_method(cPsychVisitorsToRuby, "build_exception", build_exception, 2);
+ rb_define_private_method(cPsychVisitorsToRuby, "path2class", path2class, 1);
+}
+/* vim: set noet sws=4 sw=4: */
diff --git a/ext/psych/to_ruby.h b/ext/psych/to_ruby.h
new file mode 100644
index 0000000000..7b8e757a45
--- /dev/null
+++ b/ext/psych/to_ruby.h
@@ -0,0 +1,8 @@
+#ifndef PSYCH_TO_RUBY_H
+#define PSYCH_TO_RUBY_H
+
+#include <psych.h>
+
+void Init_psych_to_ruby(void);
+
+#endif
diff --git a/ext/psych/yaml_tree.c b/ext/psych/yaml_tree.c
new file mode 100644
index 0000000000..bcf24d2070
--- /dev/null
+++ b/ext/psych/yaml_tree.c
@@ -0,0 +1,24 @@
+#include <psych.h>
+
+VALUE cPsychVisitorsYamlTree;
+
+/*
+ * call-seq: private_iv_get(target, prop)
+ *
+ * Get the private instance variable +prop+ from +target+
+ */
+static VALUE private_iv_get(VALUE self, VALUE target, VALUE prop)
+{
+ return rb_attr_get(target, rb_intern(StringValuePtr(prop)));
+}
+
+void Init_psych_yaml_tree(void)
+{
+ VALUE psych = rb_define_module("Psych");
+ VALUE visitors = rb_define_module_under(psych, "Visitors");
+ VALUE visitor = rb_define_class_under(visitors, "Visitor", rb_cObject);
+ cPsychVisitorsYamlTree = rb_define_class_under(visitors, "YAMLTree", visitor);
+
+ rb_define_private_method(cPsychVisitorsYamlTree, "private_iv_get", private_iv_get, 2);
+}
+/* vim: set noet sws=4 sw=4: */
diff --git a/ext/psych/yaml_tree.h b/ext/psych/yaml_tree.h
new file mode 100644
index 0000000000..4628a69d71
--- /dev/null
+++ b/ext/psych/yaml_tree.h
@@ -0,0 +1,8 @@
+#ifndef PSYCH_YAML_TREE_H
+#define PSYCH_YAML_TREE_H
+
+#include <psych.h>
+
+void Init_psych_yaml_tree(void);
+
+#endif
diff --git a/ext/pty/.cvsignore b/ext/pty/.cvsignore
deleted file mode 100644
index 814345ece8..0000000000
--- a/ext/pty/.cvsignore
+++ /dev/null
@@ -1,4 +0,0 @@
-Makefile
-mkmf.log
-*.def
-extconf.h
diff --git a/ext/pty/lib/expect.rb b/ext/pty/lib/expect.rb
index 08191b05b9..c15044bd2a 100644
--- a/ext/pty/lib/expect.rb
+++ b/ext/pty/lib/expect.rb
@@ -1,6 +1,14 @@
$expect_verbose = false
class IO
+ # Reads from the IO until pattern +pat+ matches or the +timeout+ is over.
+ # It returns an array with the read buffer, followed by the matches.
+ # If a block is given, the result is yielded to the block and returns nil.
+ #
+ # The optional timeout parameter defines, in seconds, the total time to wait
+ # for the pattern. If the timeout expires or eof is found, nil is returned
+ # or yielded. However, the buffer in a timeout session is kept for the next
+ # expect call. The default timeout is 9999999 seconds.
def expect(pat,timeout=9999999)
buf = ''
case pat
@@ -8,13 +16,20 @@ class IO
e_pat = Regexp.new(Regexp.quote(pat))
when Regexp
e_pat = pat
+ else
+ raise TypeError, "unsupported pattern class: #{pattern.class}"
end
+ @unusedBuf ||= ''
while true
- if !IO.select([self],nil,nil,timeout) or eof? then
+ if not @unusedBuf.empty?
+ c = @unusedBuf.slice!(0).chr
+ elsif !IO.select([self],nil,nil,timeout) or eof? then
result = nil
+ @unusedBuf = buf
break
+ else
+ c = getc.chr
end
- c = getc.chr
buf << c
if $expect_verbose
STDOUT.print c
diff --git a/ext/pty/pty.c b/ext/pty/pty.c
index c44953ca13..b18eb68f77 100644
--- a/ext/pty/pty.c
+++ b/ext/pty/pty.c
@@ -122,6 +122,9 @@ char MasterDevice[] = "/dev/pty%s",
static VALUE eChildExited;
+/* Returns the exit status of the child for which PTY#check
+ * raised this exception
+ */
static VALUE
echild_status(VALUE self)
{
@@ -135,18 +138,6 @@ struct pty_info {
static void getDevice(int*, int*, char [DEVICELEN], int);
-struct exec_info {
- int argc;
- VALUE *argv;
-};
-
-static VALUE
-pty_exec(VALUE v)
-{
- struct exec_info *arg = (struct exec_info *)v;
- return rb_f_exec(arg->argc, arg->argv);
-}
-
struct child_info {
int master, slave;
char *slavename;
@@ -155,7 +146,7 @@ struct child_info {
};
static int
-chfunc(void *data)
+chfunc(void *data, char *errbuf, size_t errbuf_len)
{
struct child_info *carg = data;
int master = carg->master;
@@ -163,8 +154,12 @@ chfunc(void *data)
int argc = carg->argc;
VALUE *argv = carg->argv;
- struct exec_info arg;
- int status;
+#define ERROR_EXIT(str) do { \
+ strlcpy(errbuf, (str), errbuf_len); \
+ return -1; \
+ } while (0)
+
+ rb_thread_atfork_before_exec();
/*
* Set free from process group and controlling terminal
@@ -175,15 +170,16 @@ chfunc(void *data)
# ifdef HAVE_SETPGRP
# ifdef SETGRP_VOID
if (setpgrp() == -1)
- perror("setpgrp()");
+ ERROR_EXIT("setpgrp()");
# else /* SETGRP_VOID */
if (setpgrp(0, getpid()) == -1)
- rb_sys_fail("setpgrp()");
+ ERROR_EXIT("setpgrp()");
{
int i = open("/dev/tty", O_RDONLY);
- if (i < 0) rb_sys_fail("/dev/tty");
+ if (i < 0) ERROR_EXIT("/dev/tty");
+ rb_update_max_fd(i);
if (ioctl(i, TIOCNOTTY, (char *)0))
- perror("ioctl(TIOCNOTTY)");
+ ERROR_EXIT("ioctl(TIOCNOTTY)");
close(i);
}
# endif /* SETGRP_VOID */
@@ -201,12 +197,11 @@ chfunc(void *data)
close(slave);
slave = open(carg->slavename, O_RDWR);
if (slave < 0) {
- perror("open: pty slave");
- _exit(1);
+ ERROR_EXIT("open: pty slave");
}
+ rb_update_max_fd(slave);
close(master);
#endif
- write(slave, "", 1);
dup2(slave,0);
dup2(slave,1);
dup2(slave,2);
@@ -215,11 +210,9 @@ chfunc(void *data)
seteuid(getuid());
#endif
- arg.argc = argc;
- arg.argv = argv;
- rb_protect(pty_exec, (VALUE)&arg, &status);
- sleep(1);
- _exit(1);
+ rb_f_exec(argc, argv);
+ return 0;
+#undef ERROR_EXIT
}
static void
@@ -228,10 +221,11 @@ establishShell(int argc, VALUE *argv, struct pty_info *info,
{
int master,slave;
rb_pid_t pid;
- char *p, tmp, *getenv();
+ char *p, *getenv();
struct passwd *pwent;
VALUE v;
struct child_info carg;
+ char errbuf[32];
if (argc == 0) {
const char *shellname;
@@ -258,15 +252,17 @@ establishShell(int argc, VALUE *argv, struct pty_info *info,
carg.slavename = SlaveName;
carg.argc = argc;
carg.argv = argv;
- pid = rb_fork(0, chfunc, &carg, Qnil);
+ errbuf[0] = '\0';
+ pid = rb_fork_err(0, chfunc, &carg, Qnil, errbuf, sizeof(errbuf));
if (pid < 0) {
+ int e = errno;
close(master);
close(slave);
- rb_sys_fail("fork failed");
+ errno = e;
+ rb_sys_fail(errbuf[0] ? errbuf : "fork failed");
}
- read(master, &tmp, 1);
close(slave);
info->child_pid = pid;
@@ -295,6 +291,7 @@ get_device_once(int *master, int *slave, char SlaveName[DEVICELEN], int nomesg,
sigemptyset(&dfl.sa_mask);
if ((masterfd = posix_openpt(O_RDWR|O_NOCTTY)) == -1) goto error;
+ rb_update_max_fd(masterfd);
if (sigaction(SIGCHLD, &dfl, &old) == -1) goto error;
if (grantpt(masterfd) == -1) goto grantpt_error;
if (sigaction(SIGCHLD, &old, NULL) == -1) goto error;
@@ -302,6 +299,7 @@ get_device_once(int *master, int *slave, char SlaveName[DEVICELEN], int nomesg,
if ((slavedevice = ptsname(masterfd)) == NULL) goto error;
if (no_mesg(slavedevice, nomesg) == -1) goto error;
if ((slavefd = open(slavedevice, O_RDWR|O_NOCTTY, 0)) == -1) goto error;
+ rb_update_max_fd(slavefd);
#if defined I_PUSH && !defined linux
if (ioctl(slavefd, I_PUSH, "ptem") == -1) goto error;
@@ -319,7 +317,7 @@ get_device_once(int *master, int *slave, char SlaveName[DEVICELEN], int nomesg,
error:
if (slavefd != -1) close(slavefd);
if (masterfd != -1) close(masterfd);
- if (!fail) {
+ if (fail) {
rb_raise(rb_eRuntimeError, "can't get Master/Slave device");
}
return -1;
@@ -333,6 +331,8 @@ get_device_once(int *master, int *slave, char SlaveName[DEVICELEN], int nomesg,
if (!fail) return -1;
rb_raise(rb_eRuntimeError, "openpty() failed");
}
+ rb_update_max_fd(*master);
+ rb_update_max_fd(*slave);
if (no_mesg(SlaveName, nomesg) == -1) {
if (!fail) return -1;
rb_raise(rb_eRuntimeError, "can't chmod slave pty");
@@ -348,8 +348,11 @@ get_device_once(int *master, int *slave, char SlaveName[DEVICELEN], int nomesg,
if (!fail) return -1;
rb_raise(rb_eRuntimeError, "_getpty() failed");
}
+ rb_update_max_fd(*master);
*slave = open(name, O_RDWR);
+ /* error check? */
+ rb_update_max_fd(*slave);
strlcpy(SlaveName, name, DEVICELEN);
return 0;
@@ -363,6 +366,7 @@ get_device_once(int *master, int *slave, char SlaveName[DEVICELEN], int nomesg,
extern int grantpt(int);
if((masterfd = open("/dev/ptmx", O_RDWR, 0)) == -1) goto error;
+ rb_update_max_fd(masterfd);
s = signal(SIGCHLD, SIG_DFL);
if(grantpt(masterfd) == -1) goto error;
signal(SIGCHLD, s);
@@ -370,6 +374,7 @@ get_device_once(int *master, int *slave, char SlaveName[DEVICELEN], int nomesg,
if((slavedevice = ptsname(masterfd)) == NULL) goto error;
if (no_mesg(slavedevice, nomesg) == -1) goto error;
if((slavefd = open(slavedevice, O_RDWR, 0)) == -1) goto error;
+ rb_update_max_fd(slavefd);
#if defined I_PUSH && !defined linux
if(ioctl(slavefd, I_PUSH, "ptem") == -1) goto error;
if(ioctl(slavefd, I_PUSH, "ldterm") == -1) goto error;
@@ -383,7 +388,7 @@ get_device_once(int *master, int *slave, char SlaveName[DEVICELEN], int nomesg,
error:
if (slavefd != -1) close(slavefd);
if (masterfd != -1) close(masterfd);
- if (!fail) rb_raise(rb_eRuntimeError, "can't get Master/Slave device");
+ if (fail) rb_raise(rb_eRuntimeError, "can't get Master/Slave device");
return -1;
#else
int masterfd = -1, slavefd = -1;
@@ -393,9 +398,11 @@ get_device_once(int *master, int *slave, char SlaveName[DEVICELEN], int nomesg,
for (p = deviceNo; *p != NULL; p++) {
snprintf(MasterName, sizeof MasterName, MasterDevice, *p);
if ((masterfd = open(MasterName,O_RDWR,0)) >= 0) {
+ rb_update_max_fd(masterfd);
*master = masterfd;
snprintf(SlaveName, DEVICELEN, SlaveDevice, *p);
if ((slavefd = open(SlaveName,O_RDWR,0)) >= 0) {
+ rb_update_max_fd(slavefd);
*slave = slavefd;
if (chown(SlaveName, getuid(), getgid()) != 0) goto error;
if (chmod(SlaveName, nomesg ? 0600 : 0622) != 0) goto error;
@@ -437,23 +444,31 @@ pty_close_pty(VALUE assoc)
/*
* call-seq:
- * master_io, slave_file = PTY.open
- * PTY.open {|master_io, slave_file| ... }
+ * PTY.open => [master_io, slave_file]
+ * PTY.open {|master_io, slave_file| ... } => block value
*
* Allocates a pty (pseudo-terminal).
*
- * It returns an array which contains an IO object and a File object.
- * The former is the master of the pty.
- * The latter is the slave of the pty.
+ * In the non-block form, returns a two element array, <tt>[master_io,
+ * slave_file]</tt>.
+ *
+ * In the block form, yields two arguments <tt>master_io, slave_file</tt>
+ * and the value of the block is returned from +open+.
+ *
+ * The IO and File are both closed after the block completes if they haven't
+ * been already closed.
+ *
+ * The arguments in both forms are:
*
- * If a block is given, it yields the array instead of return.
- * The value of the block is returned.
- * master_io and slave_file is closed when return if they are not closed.
+ * <tt>master_io</tt>:: the master of the pty, as an IO.
+ * <tt>slave_file</tt>:: the slave of the pty, as a File. The path to the
+ * terminal device is available via
+ * <tt>slave_file.path</tt>
*
- * The filename of the slave_file is slave_file.path.
+ * === Example
*
* PTY.open {|m, s|
- * p m #=> #<IO: pty /dev/pts/1>
+ * p m #=> #<IO:masterpty:/dev/pts/1>
* p s #=> #<File:/dev/pts/1>
* p s.path #=> "/dev/pts/1"
* }
@@ -462,8 +477,9 @@ pty_close_pty(VALUE assoc)
* # assuming that factor uses stdio for stdout buffering.
* # If IO.pipe is used instead of PTY.open,
* # this code deadlocks because factor's stdout is fully buffered.
+ * require 'io/console' # for IO#raw!
* m, s = PTY.open
- * system("stty raw", :in=>s) # disable newline conversion.
+ * s.raw! # disable newline conversion.
* r, w = IO.pipe
* pid = spawn("factor", :in=>r, :out=>s)
* r.close
@@ -472,6 +488,15 @@ pty_close_pty(VALUE assoc)
* p m.gets #=> "42: 2 3 7\n"
* w.puts "144"
* p m.gets #=> "144: 2 2 2 2 3 3\n"
+ * w.close
+ * # The result of read operation when pty slave is closed is platform
+ * # dependent.
+ * ret = begin
+ * m.gets # FreeBSD returns nil.
+ * rescue Errno::EIO # GNU/Linux raises EIO.
+ * nil
+ * end
+ * p ret #=> nil
*
*/
static VALUE
@@ -489,7 +514,7 @@ pty_open(VALUE klass)
MakeOpenFile(master_io, master_fptr);
master_fptr->mode = FMODE_READWRITE | FMODE_SYNC | FMODE_DUPLEX;
master_fptr->fd = master_fd;
- master_fptr->pathv = rb_obj_freeze(rb_sprintf(" pty %s", slavename));
+ master_fptr->pathv = rb_obj_freeze(rb_sprintf("masterpty:%s", slavename));
slave_file = rb_obj_alloc(rb_cFile);
MakeOpenFile(slave_file, slave_fptr);
@@ -511,7 +536,37 @@ pty_detach_process(struct pty_info *info)
return Qnil;
}
-/* ruby function: getpty */
+/*
+ * call-seq:
+ * PTY.spawn(command_line) { |r, w, pid| ... }
+ * PTY.spawn(command_line) => [r, w, pid]
+ * PTY.spawn(command, args, ...) { |r, w, pid| ... }
+ * PTY.spawn(command, args, ...) => [r, w, pid]
+ * PTY.getpty(command_line) { |r, w, pid| ... }
+ * PTY.getpty(command_line) => [r, w, pid]
+ * PTY.getpty(command, args, ...) { |r, w, pid| ... }
+ * PTY.getpty(command, args, ...) => [r, w, pid]
+ *
+ * Spawns the specified command on a newly allocated pty.
+ *
+ * The command's controlling tty is set to the slave device of the pty
+ * and its standard input/output/error is redirected to the slave device.
+ *
+ * <tt>command_line</tt>:: The full command line to run
+ * <tt>command</tt>:: The command to run, as a String.
+ * <tt>args</tt>:: Zero or more arguments, as Strings, representing
+ * the arguments to +command+
+ *
+ * In the non-block form this returns an array of size three,
+ * <tt>[r, w, pid]</tt>. In the block form the block will be called with
+ * these as arguments, <tt>|r,w,pid|</tt>:
+ *
+ * +r+:: An IO that can be read from that contains the command's
+ * standard output and standard error
+ * +w+:: An IO that can be written to that is the command's
+ * standard input
+ * +pid+:: The process identifier for the command.
+ */
static VALUE
pty_getpty(int argc, VALUE *argv, VALUE self)
{
@@ -533,6 +588,9 @@ pty_getpty(int argc, VALUE *argv, VALUE self)
wfptr->mode = rb_io_mode_flags("w") | FMODE_SYNC;
wfptr->fd = dup(info.fd);
+ if (wfptr->fd == -1)
+ rb_sys_fail("dup()");
+ rb_update_max_fd(wfptr->fd);
wfptr->pathv = rfptr->pathv;
res = rb_ary_new2(3);
@@ -575,6 +633,22 @@ raise_from_check(pid_t pid, int status)
rb_exc_raise(exc);
}
+/*
+ * call-seq:
+ * PTY.check(pid, raise = false) => Process::Status or nil
+ * PTY.check(pid, true) => nil or raises PTY::ChildExited
+ *
+ * Checks the status of the child process specified by +pid+.
+ * Returns +nil+ if the process is still alive. If the process
+ * is not alive, will return a <tt>Process::Status</tt> or raise
+ * a <tt>PTY::ChildExited</tt> (if +raise+ was true).
+ *
+ * +pid+:: The process id of the process to check
+ * +raise+:: If true and the process identified by +pid+ is no longer
+ * alive a <tt>PTY::ChildExited</tt> is raised.
+ *
+ * Returns nil or a <tt>Process::Status</tt> when +raise+ is false.
+ */
static VALUE
pty_check(int argc, VALUE *argv, VALUE self)
{
@@ -583,16 +657,30 @@ pty_check(int argc, VALUE *argv, VALUE self)
int status;
rb_scan_args(argc, argv, "11", &pid, &exc);
- cpid = rb_waitpid(NUM2PIDT(pid), &status, WUNTRACED);
- if (cpid == -1) return Qnil;
+ cpid = rb_waitpid(NUM2PIDT(pid), &status, WNOHANG|WUNTRACED);
+ if (cpid == -1 || cpid == 0) return Qnil;
- if (!RTEST(exc)) return status;
- raise_from_check(pid, status);
+ if (!RTEST(exc)) return rb_last_status_get();
+ raise_from_check(cpid, status);
return Qnil; /* not reached */
}
static VALUE cPTY;
+/*
+ * Document-class: PTY::ChildExited
+ *
+ * Thrown when PTY#check is called for a pid that represents a process that
+ * has exited.
+ */
+
+/*
+ * Document-class: PTY
+ *
+ * Creates and managed pseudo terminals (PTYs). See also
+ * http://en.wikipedia.org/wiki/Pseudo_terminal
+ */
+
void
Init_pty()
{
diff --git a/ext/purelib.rb b/ext/purelib.rb
deleted file mode 100644
index dbe514c34a..0000000000
--- a/ext/purelib.rb
+++ /dev/null
@@ -1,10 +0,0 @@
-nul = nil
-$:.each_with_index {|path, index|
- if /\A(?:\.\/)*-\z/ =~ path
- nul = index
- break
- end
-}
-if nul
- $:[nul..-1] = ["."]
-end
diff --git a/ext/racc/cparse/.cvsignore b/ext/racc/cparse/.cvsignore
deleted file mode 100644
index 814345ece8..0000000000
--- a/ext/racc/cparse/.cvsignore
+++ /dev/null
@@ -1,4 +0,0 @@
-Makefile
-mkmf.log
-*.def
-extconf.h
diff --git a/ext/racc/cparse/cparse.c b/ext/racc/cparse/cparse.c
index d085158f11..3a2a8ae74e 100644
--- a/ext/racc/cparse/cparse.c
+++ b/ext/racc/cparse/cparse.c
@@ -1,9 +1,9 @@
/*
cparse.c -- Racc Runtime Core
-
+
Copyright (c) 1999-2006 Minero Aoki
-
+
This library is free software.
You can distribute/modify this program under the same terms of ruby.
@@ -13,6 +13,13 @@
#include "ruby/ruby.h"
+#ifndef FALSE
+#define FALSE 0
+#endif
+#ifndef TRUE
+#define TRUE 1
+#endif
+
/* -----------------------------------------------------------------------
Important Constants
----------------------------------------------------------------------- */
@@ -221,7 +228,7 @@ racc_cparse(VALUE parser, VALUE arg, VALUE sysdebug)
D_puts("starting cparse");
v->sys_debug = RTEST(sysdebug);
vparams = initialize_params(vparams, parser, arg, Qnil, Qnil);
- v->lex_is_iterator = Qfalse;
+ v->lex_is_iterator = FALSE;
parse_main(v, Qnil, Qnil, 0);
return v->retval;
@@ -238,7 +245,7 @@ racc_yyparse(VALUE parser, VALUE lexer, VALUE lexmid, VALUE arg, VALUE sysdebug)
v->sys_debug = RTEST(sysdebug);
D_puts("start C yyparse");
vparams = initialize_params(vparams, parser, arg, lexer, lexmid);
- v->lex_is_iterator = Qtrue;
+ v->lex_is_iterator = TRUE;
D_puts("params initialized");
parse_main(v, Qnil, Qnil, 0);
call_lexer(v);
@@ -286,7 +293,7 @@ lexer_i(VALUE block_args, VALUE data, VALUE self)
extract_user_token(v, block_args, &tok, &val);
parse_main(v, tok, val, 1);
if (v->fin && v->fin != CP_FIN_ACCEPT)
- rb_iter_break();
+ rb_iter_break();
return Qnil;
}
@@ -344,7 +351,7 @@ initialize_params(VALUE vparams, VALUE parser, VALUE arg, VALUE lexer, VALUE lex
v->use_result_var = RTEST(RARRAY_PTR(arg)[13]);
}
else {
- v->use_result_var = Qtrue;
+ v->use_result_var = TRUE;
}
v->tstack = v->debug ? NEW_STACK() : Qnil;
@@ -360,7 +367,7 @@ initialize_params(VALUE vparams, VALUE parser, VALUE arg, VALUE lexer, VALUE lex
v->retval = Qnil;
v->fin = 0;
- v->lex_is_iterator = Qfalse;
+ v->lex_is_iterator = FALSE;
rb_iv_set(parser, "@vstack", v->vstack);
if (v->debug) {
@@ -453,7 +460,7 @@ parse_main(struct cparse_params *v, VALUE tok, VALUE val, int resume)
if (resume)
goto resume;
-
+
while (1) {
D_puts("");
D_puts("---- enter new loop ----");
@@ -512,7 +519,7 @@ parse_main(struct cparse_params *v, VALUE tok, VALUE val, int resume)
act_fixed:
D_printf("act=%ld\n", act);
goto handle_act;
-
+
notfound:
D_puts("(act) not found: use default");
act_value = AREF(v->action_default, v->curstate);
@@ -613,7 +620,7 @@ parse_main(struct cparse_params *v, VALUE tok, VALUE val, int resume)
D_puts("(err) found: can handle error token");
break;
-
+
error_pop:
D_puts("(err) act not found: can't handle error token; pop");
diff --git a/ext/readline/.cvsignore b/ext/readline/.cvsignore
deleted file mode 100644
index 814345ece8..0000000000
--- a/ext/readline/.cvsignore
+++ /dev/null
@@ -1,4 +0,0 @@
-Makefile
-mkmf.log
-*.def
-extconf.h
diff --git a/ext/readline/README.ja b/ext/readline/README.ja
index 3c6c6f3d33..77ec55c3aa 100644
--- a/ext/readline/README.ja
+++ b/ext/readline/README.ja
@@ -37,28 +37,28 @@ readline([prompt, [add_hist]]) -> String | nil
¥¨¥ó¥¿¡¼¥­¡¼¤Î²¡²¼¤Ê¤É¤Ç¥æ¡¼¥¶¤¬Ê¸»úÎó¤òÆþÎϤ·½ª¤¨¤ë¤È¡¢
ÆþÎϤ·¤¿Ê¸»úÎó¤òÊÖ¤·¤Þ¤¹¡£
¤³¤Î¤È¤­¡¢add_hist ¤¬ true ¤Ç¤¢¤ì¤Ð¡¢ÆþÎϤ·¤¿Ê¸»úÎó¤ò¥Ò¥¹¥È¥ê¤ËÄɲä·¤Þ¤¹¡£
-
+
²¿¤âÆþÎϤ·¤Æ¤¤¤Ê¤¤¾õÂÖ¤Ç EOF(UNIX ¤Ç¤Ï ^D) ¤òÆþÎϤ¹¤ë¤Ê¤É¤Ç¡¢
¥æ¡¼¥¶¤«¤é¤ÎÆþÎϤ¬¤Ê¤¤¾ì¹ç¤Ï nil ¤òÊÖ¤·¤Þ¤¹¡£
-
+
¼¡¤Î¾ò·ï¤òÁ´¤ÆËþ¤¿¤¹¾ì¹ç¡¢Îã³° IOError ¤¬È¯À¸¤·¤Þ¤¹¡£
1. ɸ½àÆþÎϤ¬ tty ¤Ç¤Ê¤¤¡£
2. ɸ½àÆþÎϤò¥¯¥í¡¼¥º¤·¤Æ¤¤¤ë¡£(isatty(2) ¤Î errno ¤¬ EBADF ¤Ç¤¢¤ë¡£)
-
+
Ëܥ᥽¥Ã¥É¤Ï¥¹¥ì¥Ã¥É¤ËÂбþ¤·¤Æ¤¤¤Þ¤¹¡£
ÆþÎÏÂÔ¤Á¾õÂ֤ΤȤ­¤Ï¥¹¥ì¥Ã¥É¥³¥ó¥Æ¥­¥¹¥È¤ÎÀÚÂØ¤¨¤¬È¯À¸¤·¤Þ¤¹¡£
-
+
ÆþÎÏ»þ¤Ë¤Ï¹ÔÆâÊÔ½¸¤¬²Äǽ¤Ç¡¢vi ¥â¡¼¥É¤È Emacs ¥â¡¼¥É¤¬ÍѰդµ¤ì¤Æ¤¤¤Þ¤¹¡£
¥Ç¥Õ¥©¥ë¥È¤Ï Emacs ¥â¡¼¥É¤Ç¤¹¡£
-
+
Ëܥ᥽¥Ã¥É¤Ë¤ÏÃí°Õ»ö¹à¤¬¤¢¤ê¤Þ¤¹¡£
ÆþÎÏÂÔ¤Á¤Î¾õÂÖ¤Ç ^C ¤¹¤ë¤È ruby ¥¤¥ó¥¿¥×¥ê¥¿¤¬½ªÎ»¤·¡¢Ã¼Ëö¾õÂÖ¤òÉüµ¢¤·¤Þ¤»¤ó¡£
¤³¤ì¤ò²óÈò¤¹¤ë¤¿¤á¤ÎÎã¤ò3¤Äµó¤²¤Þ¤¹¡£
-
+
* ^C¤Ë¤è¤ëInterruptÎã³°¤òÊä­¤·¤Æ¡¢Ã¼Ëö¾õÂÖ¤òÉüµ¢¤·¤Þ¤¹:
-
+
require "readline"
-
+
stty_save = `stty -g`.chomp
begin
while buf = Readline.readline
@@ -70,48 +70,48 @@ readline([prompt, [add_hist]]) -> String | nil
end
end
end
-
+
* INT¥·¥°¥Ê¥ë¤òÊä­¤·¤Æ¡¢Ã¼Ëö¾õÂÖ¤òÉüµ¢¤·¤Þ¤¹:
-
+
require "readline"
-
+
stty_save = `stty -g`.chomp
trap("INT") { system "stty", stty_save; exit }
-
+
while buf = Readline.readline
p buf
end
-
+
* ñ¤Ë ^C ¤ò̵»ë¤¹¤ëÊýË¡¤â¤¢¤ê¤Þ¤¹:
-
+
require "readline"
-
+
trap("INT", "SIG_IGN")
-
+
while buf = Readline.readline
p buf
end
-
+
ÆþÎÏÍúÎò Readline::HISTORY ¤ò»ÈÍѤ·¤Æ¡¢¶õ¹Ô¤äľÁ°¤ÎÆþÎÏ¤ÈÆ±¤¸ÆâÍÆ¤ÏÆþÎÏ
ÍúÎò¤Ë»Ä¤µ¤Ê¤¤¤È¤¤¤¦¤³¤È¤â¤Ç¤­¤Þ¤¹¡£
-
+
require "readline"
-
+
while buf = Readline.readline("> ", true)
# p Readline::HISTORY.to_a
Readline::HISTORY.pop if /^\s*$/ =~ buf
-
+
begin
if Readline::HISTORY[Readline::HISTORY.length-2] == buf
- Readline::HISTORY.pop
+ Readline::HISTORY.pop
end
rescue IndexError
end
-
+
# p Readline::HISTORY.to_a
print "-> ", buf, "\n"
end
-
+
$SAFE ¤¬ 4 ¤Î¾ì¹ç¡¢Îã³° SecurityError ¤¬È¯À¸¤·¤Þ¤¹¡£
=== ¥¯¥é¥¹¥á¥½¥Ã¥É
@@ -167,16 +167,31 @@ Readline.completion_case_fold -> bool
¥æ¡¼¥¶¤ÎÆþÎϤòÊä´°¤¹¤ëºÝ¡¢Âçʸ»ú¤È¾®Ê¸»ú¤ò¶èÊ̤¹¤ë¡¿¤·¤Ê¤¤¤ò¼èÆÀ¤·¤Þ¤¹¡£
bool ¤¬¿¿¤Ê¤é¤Ð¶èÊ̤·¤Þ¤»¤ó¡£bool ¤¬µ¶¤Ê¤é¤Ð¶èÊ̤·¤Þ¤¹¡£
- ¤Ê¤ª¡¢Readline.completion_case_fold= ¥á¥½¥Ã¥É¤Ç»ØÄꤷ¤¿¥ª¥Ö¥¸¥§¥¯¥È¤ò
- ¤½¤Î¤Þ¤Þ¼èÆÀ¤¹¤ë¤Î¤Ç¡¢¼¡¤Î¤è¤¦¤Êưºî¤ò¤·¤Þ¤¹¡£
+ ¤Ê¤ª¡¢Readline.completion_case_fold= ¥á¥½¥Ã¥É¤Ç»ØÄꤷ¤¿¥ª¥Ö¥¸¥§¥¯¥È¤ò
+ ¤½¤Î¤Þ¤Þ¼èÆÀ¤¹¤ë¤Î¤Ç¡¢¼¡¤Î¤è¤¦¤Êưºî¤ò¤·¤Þ¤¹¡£
- require "readline"
-
- Readline.completion_case_fold = "This is a String."
- p Readline.completion_case_fold # => "This is a String."
+ require "readline"
+
+ Readline.completion_case_fold = "This is a String."
+ p Readline.completion_case_fold # => "This is a String."
$SAFE ¤¬ 4 ¤Î¾ì¹ç¡¢Îã³° SecurityError ¤¬È¯À¸¤·¤Þ¤¹¡£
+Readline.line_buffer -> string
+
+ ÆþÎÏÃæ¤Î¹ÔÁ´ÂΤòÊÖ¤·¤Þ¤¹¡£complete_proc ¤ÎÃæ¤Ç»ÈÍѤ¹¤ë¤³¤È¤òÁÛÄꤷ
+ ¤Æ¤¤¤Þ¤¹¡£Readline.line_buffer ¤ÎŤµ¤Ï GNU Readline ¤Î rl_end ÊÑ¿ô¤Î
+ ÃͤȰìÃפ·¤Þ¤¹¡£
+
+Readline.point -> int
+
+ ¸½ºß¤Î¥«¡¼¥½¥ë¤Î°ÌÃÖ¤òÊÖ¤·¤Þ¤¹¡£
+ Readline ¥â¥¸¥å¡¼¥ë¤ÏÊä´°ÂоݤÎñ¸ì¤Î³«»Ï°ÌÃ֤ξðÊó¤òÄ󶡤·¤Æ¤¤¤Þ¤»¤ó¡£
+ ¤·¤«¤·¤Ê¤¬¤é¡¢ completion_proc ¤ÎÃæ¤ÇÆþÎϤ·¤¿Ã±¸ì text ¤È
+ Readline.point ¤ò»ÈÍѤ¹¤ë¤³¤È¤Ç³«»Ï°ÌÃÖ¤òƳ¤¯¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£
+
+ ³«»Ï°ÌÃÖ = ÆþÎϤ·¤¿Ã±¸ì¤ÎŤµ - Readline.point
+
Readline.vi_editing_mode -> nil
ÊÔ½¸¥â¡¼¥É¤ò vi ¥â¡¼¥É¤Ë¤·¤Þ¤¹¡£
@@ -223,7 +238,7 @@ Readline.completion_append_character = char
»ÈÍÑÎã:
require "readline"
-
+
Readline.readline("> ", true)
Readline.completion_append_character = " "
@@ -231,13 +246,13 @@ Readline.completion_append_character = char
>
¤³¤³¤Ç "/var/li" ¤òÆþÎϤ·¤Þ¤¹¡£
-
+
> /var/li
¤³¤³¤Ç TAB ¥­¡¼¤òÆþÎϤ·¤Þ¤¹¡£
-
+
> /var/lib
"b" ¤¬Êä´°¤µ¤ì¡¢ºÇ¸å¤Ë " " ¤¬Äɲ䵤ì¤ë¤Î¤Ç¡¢"/usr" ¤òϢ³¤·¤ÆÆþÎϤǤ­¤Þ¤¹¡£
-
+
> /var/lib /usr
¤Ê¤ª¡¢1ʸ»ú¤·¤«»ØÄꤹ¤ë¤³¤È¤Ï¤Ç¤­¤Þ¤»¤ó¡£
@@ -289,7 +304,7 @@ Readline.completer_word_break_characters = string
Readline.basic_word_break_characters= ¤È¤Î°ã¤¤¤Ï¡¢
GNU Readline ¤Î rl_complete_internal ´Ø¿ô¤Ç»ÈÍѤµ¤ì¤ë¤³¤È¤Ç¤¹¡£
- GNU Readline ¤Î¥Ç¥Õ¥©¥ë¥È¤ÎÃͤϡ¢
+ GNU Readline ¤Î¥Ç¥Õ¥©¥ë¥È¤ÎÃͤϡ¢
Readline.basic_word_break_characters ¤ÈƱ¤¸¤Ç¤¹¡£
¥µ¥Ý¡¼¥È¤·¤Æ¤¤¤Ê¤¤´Ä¶­¤Ç¤Ï¡¢Îã³° NotImplementedError ¤¬È¯À¸¤·¤Þ¤¹¡£
@@ -373,7 +388,7 @@ HISTORY
Î㤨¤Ð¡¢HISTORY[4] ¤Ë¤è¤ê 5 ÈÖÌÜ¤ËÆþÎϤ·¤¿ÆâÍÆ¤ò¼è¤ê½Ð¤¹¤³¤È¤¬¤Ç¤­¤Þ¤¹¡£
require "readline"
-
+
Readline::HISTORY.push("a", "b", "c", "d", "e")
p Readline::HISTORY[4] # => "e"
@@ -406,7 +421,7 @@ HISTORY
FILENAME_COMPLETION_PROC
¥Õ¥¡¥¤¥ë̾¤ÎÊä´°¤ò¹Ô¤¦ call ¥á¥½¥Ã¥É¤ò»ý¤Ä¥ª¥Ö¥¸¥§¥¯¥È¤Ç¤¹¡£
-
+
Readline.completion_proc= ¤Ë¤è¤ê¡¢¥æ¡¼¥¶¤ÎÆþÎÏ»þ¤Ë¥Õ¥¡¥¤¥ë̾¤ÎÊä´°¤ò
¹Ô¤¦¤è¤¦¤ËÀßÄꤹ¤ë¤¿¤á¤Ë»ÈÍѤ¹¤ë¤³¤È¤òÁÛÄꤷ¤Æ¤Þ¤¹¡£
diff --git a/ext/readline/extconf.rb b/ext/readline/extconf.rb
index faf539fffc..b8e9e0fab4 100644
--- a/ext/readline/extconf.rb
+++ b/ext/readline/extconf.rb
@@ -3,7 +3,7 @@ require "mkmf"
$readline_headers = ["stdio.h"]
def have_readline_header(header)
- if have_header(header)
+ if have_header(header, &$readline_extra_check)
$readline_headers.push(header)
return true
else
@@ -19,23 +19,38 @@ def have_readline_func(func)
return have_func(func, $readline_headers)
end
+def have_readline_macro(macro)
+ return have_macro(macro, $readline_headers)
+end
+
dir_config('curses')
dir_config('ncurses')
dir_config('termcap')
dir_config("readline")
enable_libedit = enable_config("libedit")
+
have_library("user32", nil) if /cygwin/ === RUBY_PLATFORM
have_library("ncurses", "tgetnum") ||
have_library("termcap", "tgetnum") ||
have_library("curses", "tgetnum")
-if enable_libedit
+case enable_libedit
+when true
+ # --enable-libedit
unless (have_readline_header("editline/readline.h") ||
have_readline_header("readline/readline.h")) &&
have_library("edit", "readline")
exit
end
+when false
+ # --disable-libedit
+ unless ((have_readline_header("readline/readline.h") &&
+ have_readline_header("readline/history.h")) &&
+ have_library("readline", "readline"))
+ exit
+ end
else
+ # does not specify
unless ((have_readline_header("readline/readline.h") &&
have_readline_header("readline/history.h")) &&
(have_library("readline", "readline") ||
@@ -46,10 +61,12 @@ else
end
end
+have_readline_func("rl_getc")
have_readline_func("rl_getc_function")
have_readline_func("rl_filename_completion_function")
have_readline_func("rl_username_completion_function")
have_readline_func("rl_completion_matches")
+have_readline_func("rl_refresh_line")
have_readline_var("rl_deprep_term_function")
have_readline_var("rl_completion_append_character")
have_readline_var("rl_basic_word_break_characters")
@@ -60,9 +77,14 @@ have_readline_var("rl_filename_quote_characters")
have_readline_var("rl_attempted_completion_over")
have_readline_var("rl_library_version")
have_readline_var("rl_editing_mode")
+have_readline_var("rl_line_buffer")
+have_readline_var("rl_point")
# workaround for native windows.
/mswin|bccwin|mingw/ !~ RUBY_PLATFORM && have_readline_var("rl_event_hook")
+/mswin|bccwin|mingw/ !~ RUBY_PLATFORM && have_readline_var("rl_catch_sigwinch")
+/mswin|bccwin|mingw/ !~ RUBY_PLATFORM && have_readline_var("rl_catch_signals")
have_readline_func("rl_cleanup_after_signal")
+have_readline_func("rl_free_line_state")
have_readline_func("rl_clear_signals")
have_readline_func("rl_set_screen_size")
have_readline_func("rl_get_screen_size")
@@ -71,4 +93,6 @@ have_readline_func("rl_emacs_editing_mode")
have_readline_func("replace_history_entry")
have_readline_func("remove_history")
have_readline_func("clear_history")
+have_readline_macro("RL_PROMPT_START_IGNORE")
+have_readline_macro("RL_PROMPT_END_IGNORE")
create_makefile("readline")
diff --git a/ext/readline/readline.c b/ext/readline/readline.c
index dee42f006c..9066004f8d 100644
--- a/ext/readline/readline.c
+++ b/ext/readline/readline.c
@@ -40,13 +40,27 @@
#include <unistd.h>
#endif
+#ifdef HAVE_SYS_STAT_H
+#include <sys/stat.h>
+#endif
+
static VALUE mReadline;
#define EDIT_LINE_LIBRARY_VERSION "EditLine wrapper"
+#ifndef USE_INSERT_IGNORE_ESCAPE
+# if !defined(HAVE_EDITLINE_READLINE_H) && defined(HAVE_RL_PROMPT_START_IGNORE) && defined(HAVE_RL_PROMPT_END_IGNORE)
+# define USE_INSERT_IGNORE_ESCAPE 1
+# else
+# define USE_INSERT_IGNORE_ESCAPE 0
+# endif
+#endif
#define COMPLETION_PROC "completion_proc"
#define COMPLETION_CASE_FOLD "completion_case_fold"
static ID completion_proc, completion_case_fold;
+#if USE_INSERT_IGNORE_ESCAPE
+static ID id_orig_prompt, id_last_prompt;
+#endif
#ifndef HAVE_RL_FILENAME_COMPLETION_FUNCTION
# define rl_filename_completion_function filename_completion_function
@@ -59,13 +73,17 @@ static ID completion_proc, completion_case_fold;
#endif
static int (*history_get_offset_func)(int);
+static int (*history_replace_offset_func)(int);
+#ifdef HAVE_RL_COMPLETION_APPEND_CHARACTER
+static int readline_completion_append_character;
+#endif
static char **readline_attempted_completion_function(const char *text,
int start, int end);
#define OutputStringValue(str) do {\
SafeStringValue(str);\
- str = rb_str_conv_enc(str, rb_enc_get(str), rb_locale_encoding());\
+ (str) = rb_str_conv_enc((str), rb_enc_get(str), rb_locale_encoding());\
} while (0)\
@@ -81,7 +99,7 @@ static char **readline_attempted_completion_function(const char *text,
* GNU Readline:: http://www.gnu.org/directory/readline.html
* libedit:: http://www.thrysoee.dk/editline/
*
- * Reads one inputted line with line edit by Readline.readline method.
+ * Reads one inputted line with line edit by Readline.readline method.
* At this time, the facilitatation completion and the key
* bind like Emacs can be operated like GNU Readline.
*
@@ -106,7 +124,11 @@ static char **readline_attempted_completion_function(const char *text,
#if defined HAVE_RL_GETC_FUNCTION
static VALUE readline_instream;
-static ID id_getc;
+static ID id_getbyte;
+
+#ifndef HAVE_RL_GETC
+#define rl_getc(f) EOF
+#endif
static int readline_getc(FILE *);
static int
@@ -117,7 +139,35 @@ readline_getc(FILE *input)
if (!readline_instream) return rl_getc(input);
GetOpenFile(readline_instream, ifp);
if (rl_instream != ifp->stdio_file) return rl_getc(input);
- c = rb_funcall(readline_instream, id_getc, 0, 0);
+#if defined(_WIN32)
+ {
+ INPUT_RECORD ir;
+ int n;
+ static int prior_key = '0';
+ for (;;) {
+ if (prior_key > 0xff) {
+ prior_key = rl_getc(ifp->stdio_file);
+ return prior_key;
+ }
+ if (PeekConsoleInput((HANDLE)_get_osfhandle(ifp->fd), &ir, 1, &n)) {
+ if (n == 1) {
+ if (ir.EventType == KEY_EVENT && ir.Event.KeyEvent.bKeyDown) {
+ prior_key = rl_getc(ifp->stdio_file);
+ return prior_key;
+ } else {
+ ReadConsoleInput((HANDLE)_get_osfhandle(ifp->fd), &ir, 1, &n);
+ }
+ } else {
+ HANDLE h = (HANDLE)_get_osfhandle(ifp->fd);
+ rb_w32_wait_events(&h, 1, INFINITE);
+ }
+ } else {
+ break;
+ }
+ }
+ }
+#endif
+ c = rb_funcall(readline_instream, id_getbyte, 0, 0);
if (NIL_P(c)) return EOF;
return NUM2CHR(c);
}
@@ -131,19 +181,93 @@ readline_event(void)
#if BUSY_WAIT
rb_thread_schedule();
#else
- fd_set rset;
-
- FD_ZERO(&rset);
- FD_SET(fileno(rl_instream), &rset);
- rb_thread_select(fileno(rl_instream) + 1, &rset, NULL, NULL, NULL);
+ rb_wait_for_single_fd(fileno(rl_instream), RB_WAITFD_IN, NULL);
return 0;
#endif
}
#endif
+#if USE_INSERT_IGNORE_ESCAPE
+static VALUE
+insert_ignore_escape(VALUE self, VALUE prompt)
+{
+ VALUE last_prompt, orig_prompt = rb_attr_get(self, id_orig_prompt);
+ int ignoring = 0;
+ const char *s0, *s, *e;
+ long len;
+ static const char ignore_code[2] = {RL_PROMPT_START_IGNORE, RL_PROMPT_END_IGNORE};
+
+ prompt = rb_str_new_shared(prompt);
+ last_prompt = rb_attr_get(self, id_last_prompt);
+ if (orig_prompt == prompt) return last_prompt;
+ len = RSTRING_LEN(prompt);
+ if (NIL_P(last_prompt)) {
+ last_prompt = rb_str_tmp_new(len);
+ }
+
+ s = s0 = RSTRING_PTR(prompt);
+ e = s0 + len;
+ rb_str_set_len(last_prompt, 0);
+ while (s < e && *s) {
+ switch (*s) {
+ case RL_PROMPT_START_IGNORE:
+ ignoring = -1;
+ rb_str_cat(last_prompt, s0, ++s - s0);
+ s0 = s;
+ break;
+ case RL_PROMPT_END_IGNORE:
+ ignoring = 0;
+ rb_str_cat(last_prompt, s0, ++s - s0);
+ s0 = s;
+ break;
+ case '\033':
+ if (++s < e && *s == '[') {
+ rb_str_cat(last_prompt, s0, s - s0 - 1);
+ s0 = s - 1;
+ while (++s < e && *s) {
+ if (ISALPHA(*s)) {
+ if (!ignoring) {
+ ignoring = 1;
+ rb_str_cat(last_prompt, ignore_code+0, 1);
+ }
+ rb_str_cat(last_prompt, s0, ++s - s0);
+ s0 = s;
+ break;
+ }
+ else if (!('0' <= *s && *s <= '9' || *s == ';')) {
+ break;
+ }
+ }
+ }
+ break;
+ default:
+ if (ignoring > 0) {
+ ignoring = 0;
+ rb_str_cat(last_prompt, ignore_code+1, 1);
+ }
+ s++;
+ break;
+ }
+ }
+ if (ignoring > 0) {
+ ignoring = 0;
+ rb_str_cat(last_prompt, ignore_code+1, 1);
+ }
+ rb_str_cat(last_prompt, s0, s - s0);
+
+ rb_ivar_set(self, id_orig_prompt, prompt);
+ rb_ivar_set(self, id_last_prompt, last_prompt);
+
+ return last_prompt;
+}
+#endif
+
static VALUE
readline_get(VALUE prompt)
{
+#ifdef HAVE_RL_COMPLETION_APPEND_CHARACTER
+ readline_completion_append_character = rl_completion_append_character;
+#endif
return (VALUE)readline((char *)prompt);
}
@@ -173,9 +297,9 @@ readline_get(VALUE prompt)
*
* * Catches the Interrupt exception by pressed ^C after returns
* terminal status:
- *
+ *
* require "readline"
- *
+ *
* stty_save = `stty -g`.chomp
* begin
* while buf = Readline.readline
@@ -187,25 +311,25 @@ readline_get(VALUE prompt)
* end
* end
* end
- *
+ *
* * Catches the INT signal by pressed ^C after returns terminal
* status:
- *
+ *
* require "readline"
- *
+ *
* stty_save = `stty -g`.chomp
* trap("INT") { system "stty", stty_save; exit }
- *
+ *
* while buf = Readline.readline
* p buf
* end
*
* * Ignores pressing ^C:
- *
+ *
* require "readline"
- *
+ *
* trap("INT", "SIG_IGN")
- *
+ *
* while buf = Readline.readline
* p buf
* end
@@ -215,18 +339,18 @@ readline_get(VALUE prompt)
* the same it as last one.
*
* require "readline"
- *
+ *
* while buf = Readline.readline("> ", true)
* # p Readline::HISTORY.to_a
* Readline::HISTORY.pop if /^\s*$/ =~ buf
- *
+ *
* begin
* if Readline::HISTORY[Readline::HISTORY.length-2] == buf
- * Readline::HISTORY.pop
+ * Readline::HISTORY.pop
* end
* rescue IndexError
* end
- *
+ *
* # p Readline::HISTORY.to_a
* print "-> ", buf, "\n"
* end
@@ -244,15 +368,37 @@ readline_readline(int argc, VALUE *argv, VALUE self)
rb_secure(4);
if (rb_scan_args(argc, argv, "02", &tmp, &add_hist) > 0) {
OutputStringValue(tmp);
+#if USE_INSERT_IGNORE_ESCAPE
+ tmp = insert_ignore_escape(self, tmp);
+ rb_str_locktmp(tmp);
+#endif
prompt = RSTRING_PTR(tmp);
}
- if (!isatty(0) && errno == EBADF) rb_raise(rb_eIOError, "closed stdin");
+ if (!isatty(fileno(rl_instream)) && errno == EBADF) rb_raise(rb_eIOError, "closed stdin");
+ if (rl_outstream) {
+ struct stat stbuf;
+ int fd = fileno(rl_outstream);
+ if (fd < 0 || fstat(fd, &stbuf) != 0) {
+ rb_raise(rb_eIOError, "closed stdout");
+ }
+ }
+#ifdef _WIN32
+ rl_prep_terminal(1);
+#endif
buff = (char*)rb_protect(readline_get, (VALUE)prompt, &status);
+#if USE_INSERT_IGNORE_ESCAPE
+ if (prompt) {
+ rb_str_unlocktmp(tmp);
+ }
+#endif
if (status) {
#if defined HAVE_RL_CLEANUP_AFTER_SIGNAL
/* restore terminal mode and signal handler*/
+#if defined HAVE_RL_FREE_LINE_STATE
+ rl_free_line_state();
+#endif
rl_cleanup_after_signal();
#elif defined HAVE_RL_DEPREP_TERM_FUNCTION
/* restore terminal mode */
@@ -326,15 +472,71 @@ readline_s_set_output(VALUE self, VALUE output)
* call-seq:
* Readline.completion_proc = proc
*
- * Specifies a Proc object +proc+ to determine completion behavior. It
- * should take input-string, and return an array of completion
- * candidates.
+ * Specifies a Proc object +proc+ to determine completion behavior. It
+ * should take input string and return an array of completion candidates.
*
- * Set default if +proc+ is nil.
+ * The default completion is used if +proc+ is nil.
*
- * Raises ArgumentError exception if +proc+ does not respond to call method.
+ * The String that is passed to the Proc depends on the
+ * Readline.completer_word_break_characters property. By default the word
+ * under the cursor is passed to the Proc. For example, if the input is "foo
+ * bar" then only "bar" would be passed to the completion Proc.
*
- * Raises SecurityError exception if $SAFE is 4.
+ * Upon successful completion the Readline.completion_append_character will be
+ * appended to the input so the user can start working on their next argument.
+ *
+ * = Examples
+ *
+ * == Completion for a Static List
+ *
+ * require 'readline'
+ *
+ * LIST = [
+ * 'search', 'download', 'open',
+ * 'help', 'history', 'quit',
+ * 'url', 'next', 'clear',
+ * 'prev', 'past'
+ * ].sort
+ *
+ * comp = proc { |s| LIST.grep(/^#{Regexp.escape(s)}/) }
+ *
+ * Readline.completion_append_character = " "
+ * Readline.completion_proc = comp
+ *
+ * while line = Readline.readline('> ', true)
+ * p line
+ * end
+ *
+ * == Completion For Directory Contents
+ *
+ * require 'readline'
+ *
+ * Readline.completion_append_character = " "
+ * Readline.completion_proc = Proc.new do |str|
+ * Dir[str+'*'].grep(/^#{Regexp.escape(str)}/)
+ * end
+ *
+ * while line = Readline.readline('> ', true)
+ * p line
+ * end
+ *
+ * = Autocomplete strategies
+ *
+ * When working with auto-complete there are some strategies that work well.
+ * To get some ideas you can take a look at the
+ * completion.rb[http://svn.ruby-lang.org/repos/ruby/trunk/lib/irb/completion.rb]
+ * file for irb.
+ *
+ * The common strategy is to take a list of possible completions and filter it
+ * down to those completions that start with the user input. In the above
+ * examples Enumerator.grep is used. The input is escaped to prevent Regexp
+ * special characters from interfering with the matching.
+ *
+ * It may also be helpful to use the Abbrev library to generate completions.
+ *
+ * Raises ArgumentError if +proc+ does not respond to the call method.
+ *
+ * Raises SecurityError if $SAFE is 4.
*/
static VALUE
readline_s_set_completion_proc(VALUE self, VALUE proc)
@@ -385,7 +587,7 @@ readline_s_set_completion_case_fold(VALUE self, VALUE val)
* Readline.completion_case_fold= method.
*
* require "readline"
- *
+ *
* Readline.completion_case_fold = "This is a String."
* p Readline.completion_case_fold # => "This is a String."
*
@@ -398,31 +600,89 @@ readline_s_get_completion_case_fold(VALUE self)
return rb_attr_get(mReadline, completion_case_fold);
}
+#ifdef HAVE_RL_LINE_BUFFER
+/*
+ * call-seq:
+ * Readline.line_buffer -> string
+ *
+ * Returns the full line that is being edited. This is useful from
+ * within the complete_proc for determining the context of the
+ * completion request.
+ *
+ * The length of +Readline.line_buffer+ and GNU Readline's rl_end are
+ * same.
+ */
+static VALUE
+readline_s_get_line_buffer(VALUE self)
+{
+ rb_secure(4);
+ if (rl_line_buffer == NULL)
+ return Qnil;
+ return rb_locale_str_new_cstr(rl_line_buffer);
+}
+#else
+#define readline_s_get_line_buffer rb_f_notimplement
+#endif
+
+#ifdef HAVE_RL_POINT
+/*
+ * call-seq:
+ * Readline.point -> int
+ *
+ * Returns the index of the current cursor position in
+ * +Readline.line_buffer+.
+ *
+ * The index in +Readline.line_buffer+ which matches the start of
+ * input-string passed to completion_proc is computed by subtracting
+ * the length of input-string from +Readline.point+.
+ *
+ * start = (the length of input-string) - Readline.point
+ */
+static VALUE
+readline_s_get_point(VALUE self)
+{
+ rb_secure(4);
+ return INT2NUM(rl_point);
+}
+#else
+#define readline_s_get_point rb_f_notimplement
+#endif
+
static char **
readline_attempted_completion_function(const char *text, int start, int end)
{
VALUE proc, ary, temp;
char **result;
int case_fold;
- int i, matches;
+ long i, matches;
+ rb_encoding *enc;
+ VALUE encobj;
proc = rb_attr_get(mReadline, completion_proc);
if (NIL_P(proc))
return NULL;
+#ifdef HAVE_RL_COMPLETION_APPEND_CHARACTER
+ rl_completion_append_character = readline_completion_append_character;
+#endif
#ifdef HAVE_RL_ATTEMPTED_COMPLETION_OVER
rl_attempted_completion_over = 1;
#endif
case_fold = RTEST(rb_attr_get(mReadline, completion_case_fold));
ary = rb_funcall(proc, rb_intern("call"), 1, rb_locale_str_new_cstr(text));
- if (TYPE(ary) != T_ARRAY)
+ if (!RB_TYPE_P(ary, T_ARRAY))
ary = rb_Array(ary);
matches = RARRAY_LEN(ary);
- if (matches == 0)
- return NULL;
- result = ALLOC_N(char *, matches + 2);
+ if (matches == 0) return NULL;
+ result = (char**)malloc((matches + 2)*sizeof(char*));
+ if (result == NULL) rb_raise(rb_eNoMemError, "failed to allocate memory");
+ enc = rb_locale_encoding();
+ encobj = rb_enc_from_encoding(enc);
for (i = 0; i < matches; i++) {
temp = rb_obj_as_string(RARRAY_PTR(ary)[i]);
- result[i + 1] = ALLOC_N(char, RSTRING_LEN(temp) + 1);
+ StringValueCStr(temp); /* must be NUL-terminated */
+ rb_enc_check(encobj, temp);
+ result[i + 1] = (char*)malloc(RSTRING_LEN(temp) + 1);
+ if (result[i + 1] == NULL) rb_memerror();
strcpy(result[i + 1], RSTRING_PTR(temp));
}
result[matches + 1] = NULL;
@@ -431,28 +691,27 @@ readline_attempted_completion_function(const char *text, int start, int end)
result[0] = strdup(result[1]);
}
else {
- register int i = 1;
- int low = 100000;
-
- while (i < matches) {
- register int c1, c2, si;
-
- if (case_fold) {
- for (si = 0;
- (c1 = TOLOWER(result[i][si])) &&
- (c2 = TOLOWER(result[i + 1][si]));
- si++)
- if (c1 != c2) break;
- } else {
- for (si = 0;
- (c1 = result[i][si]) &&
- (c2 = result[i + 1][si]);
- si++)
- if (c1 != c2) break;
+ const char *result1 = result[1];
+ long low = strlen(result1);
+
+ for (i = 1; i < matches; ++i) {
+ register int c1, c2;
+ long i1, i2, l2;
+ int n1, n2;
+ const char *p2 = result[i + 1];
+
+ l2 = strlen(p2);
+ for (i1 = i2 = 0; i1 < low && i2 < l2; i1 += n1, i2 += n2) {
+ c1 = rb_enc_codepoint_len(result1 + i1, result1 + low, &n1, enc);
+ c2 = rb_enc_codepoint_len(p2 + i2, p2 + l2, &n2, enc);
+ if (case_fold) {
+ c1 = rb_tolower(c1);
+ c2 = rb_tolower(c2);
+ }
+ if (c1 != c2) break;
}
- if (low > si) low = si;
- i++;
+ low = i1;
}
result[0] = ALLOC_N(char, low + 1);
strncpy(result[0], result[1], low);
@@ -469,7 +728,7 @@ readline_attempted_completion_function(const char *text, int start, int end)
*
* Set terminal size to +rows+ and +columns+.
*
- * See GNU Readline's rl_set_screen_size function.
+ * See GNU Readline's rl_set_screen_size function.
*
* Raises NotImplementedError if the using readline library does not support.
*
@@ -493,7 +752,7 @@ readline_s_set_screen_size(VALUE self, VALUE rows, VALUE columns)
*
* Returns the terminal's rows and columns.
*
- * See GNU Readline's rl_get_screen_size function.
+ * See GNU Readline's rl_get_screen_size function.
*
* Raises NotImplementedError if the using readline library does not support.
*
@@ -504,7 +763,7 @@ readline_s_get_screen_size(VALUE self)
{
int rows, columns;
VALUE res;
-
+
rb_secure(4);
rl_get_screen_size(&rows, &columns);
res = rb_ary_new();
@@ -615,20 +874,20 @@ readline_s_emacs_editing_mode_p(VALUE self)
*
* For example:
* require "readline"
- *
+ *
* Readline.readline("> ", true)
* Readline.completion_append_character = " "
*
* Result:
* >
* Input "/var/li".
- *
+ *
* > /var/li
* Press TAB key.
- *
+ *
* > /var/lib
* Completes "b" and appends " ". So, you can continuously input "/usr".
- *
+ *
* > /var/lib /usr
*
* NOTE: Only one character can be specified. When "string" is
@@ -736,7 +995,7 @@ readline_s_set_basic_word_break_characters(VALUE self, VALUE str)
*
* Gets the basic list of characters that signal a break between words
* for the completer routine.
- *
+ *
* Raises NotImplementedError if the using readline library does not support.
*
* Raises SecurityError exception if $SAFE is 4.
@@ -797,7 +1056,7 @@ readline_s_set_completer_word_break_characters(VALUE self, VALUE str)
*
* Gets the basic list of characters that signal a break between words
* for rl_complete_internal().
- *
+ *
* Raises NotImplementedError if the using readline library does not support.
*
* Raises SecurityError exception if $SAFE is 4.
@@ -995,6 +1254,26 @@ readline_s_get_filename_quote_characters(VALUE self, VALUE str)
#define readline_s_get_filename_quote_characters rb_f_notimplement
#endif
+#ifdef HAVE_RL_REFRESH_LINE
+/*
+ * call-seq:
+ * Readline.refresh_line -> nil
+ *
+ * Clear the current input line.
+ *
+ * Raises SecurityError exception if $SAFE is 4.
+ */
+static VALUE
+readline_s_refresh_line(VALUE self)
+{
+ rb_secure(4);
+ rl_refresh_line(0, 0);
+ return Qnil;
+}
+#else
+#define readline_s_refresh_line rb_f_notimplement
+#endif
+
static VALUE
hist_to_s(VALUE self)
{
@@ -1047,7 +1326,7 @@ hist_set(VALUE self, VALUE index, VALUE str)
i += history_length;
}
if (i >= 0) {
- entry = replace_history_entry(i, RSTRING_PTR(str), NULL);
+ entry = replace_history_entry(history_replace_offset_func(i), RSTRING_PTR(str), NULL);
}
if (entry == NULL) {
rb_raise(rb_eIndexError, "invalid index");
@@ -1071,7 +1350,7 @@ static VALUE
hist_push_method(int argc, VALUE *argv, VALUE self)
{
VALUE str;
-
+
rb_secure(4);
while (argc--) {
str = *argv++;
@@ -1242,6 +1521,16 @@ Init_readline()
/* Allow conditional parsing of the ~/.inputrc file. */
rl_readline_name = (char *)"Ruby";
+#if defined HAVE_RL_GETC_FUNCTION
+ /* libedit check rl_getc_function only when rl_initialize() is called, */
+ /* and using_history() call rl_initialize(). */
+ /* This assignment should be placed before using_history() */
+ rl_getc_function = readline_getc;
+ id_getbyte = rb_intern_const("getbyte");
+#elif defined HAVE_RL_EVENT_HOOK
+ rl_event_hook = readline_event;
+#endif
+
using_history();
completion_proc = rb_intern(COMPLETION_PROC);
@@ -1262,6 +1551,10 @@ Init_readline()
readline_s_set_completion_case_fold, 1);
rb_define_singleton_method(mReadline, "completion_case_fold",
readline_s_get_completion_case_fold, 0);
+ rb_define_singleton_method(mReadline, "line_buffer",
+ readline_s_get_line_buffer, 0);
+ rb_define_singleton_method(mReadline, "point",
+ readline_s_get_point, 0);
rb_define_singleton_method(mReadline, "set_screen_size",
readline_s_set_screen_size, 2);
rb_define_singleton_method(mReadline, "get_screen_size",
@@ -1298,6 +1591,13 @@ Init_readline()
readline_s_set_filename_quote_characters, 1);
rb_define_singleton_method(mReadline, "filename_quote_characters",
readline_s_get_filename_quote_characters, 0);
+ rb_define_singleton_method(mReadline, "refresh_line",
+ readline_s_refresh_line, 0);
+
+#if USE_INSERT_IGNORE_ESCAPE
+ CONST_ID(id_orig_prompt, "orig_prompt");
+ CONST_ID(id_last_prompt, "last_prompt");
+#endif
history = rb_obj_alloc(rb_cObject);
rb_extend_object(history, rb_mEnumerable);
@@ -1341,16 +1641,22 @@ Init_readline()
*/
rb_define_const(mReadline, "USERNAME_COMPLETION_PROC", ucomp);
history_get_offset_func = history_get_offset_history_base;
+ history_replace_offset_func = history_get_offset_0;
#if defined HAVE_RL_LIBRARY_VERSION
version = rb_str_new_cstr(rl_library_version);
#if defined HAVE_CLEAR_HISTORY || defined HAVE_REMOVE_HISTORY
- if (strncmp(rl_library_version, EDIT_LINE_LIBRARY_VERSION,
+ if (strncmp(rl_library_version, EDIT_LINE_LIBRARY_VERSION,
strlen(EDIT_LINE_LIBRARY_VERSION)) == 0) {
add_history("1");
if (history_get(history_get_offset_func(0)) == NULL) {
history_get_offset_func = history_get_offset_0;
}
-#if !defined HAVE_CLEAR_HISTORY
+#ifdef HAVE_REPLACE_HISTORY_ENTRY
+ if (replace_history_entry(0, "a", NULL) == NULL) {
+ history_replace_offset_func = history_get_offset_history_base;
+ }
+#endif
+#ifdef HAVE_CLEAR_HISTORY
clear_history();
#else
{
@@ -1370,13 +1676,15 @@ Init_readline()
rb_define_const(mReadline, "VERSION", version);
rl_attempted_completion_function = readline_attempted_completion_function;
-#if defined HAVE_RL_GETC_FUNCTION
- rl_getc_function = readline_getc;
- id_getc = rb_intern_const("getc");
-#elif defined HAVE_RL_EVENT_HOOK
- rl_event_hook = readline_event;
+#ifdef HAVE_RL_CATCH_SIGNALS
+ rl_catch_signals = 0;
+#endif
+#ifdef HAVE_RL_CATCH_SIGWINCH
+ rl_catch_sigwinch = 0;
#endif
#ifdef HAVE_RL_CLEAR_SIGNALS
rl_clear_signals();
#endif
+
+ readline_s_set_input(mReadline, rb_stdin);
}
diff --git a/ext/ripper/.cvsignore b/ext/ripper/.cvsignore
deleted file mode 100644
index c9adce0b1a..0000000000
--- a/ext/ripper/.cvsignore
+++ /dev/null
@@ -1,8 +0,0 @@
-Makefile
-mkmf.log
-eventids1.c
-eventids2table.c
-ripper.*
-ids1
-ids2
-extconf.h
diff --git a/ext/ripper/README b/ext/ripper/README
index 0825013ba9..2ae2470e13 100644
--- a/ext/ripper/README
+++ b/ext/ripper/README
@@ -8,7 +8,7 @@ Ripper README
Ripper is still early-alpha version.
I never assure any kind of backward compatibility.
-
+
Requirements
------------
diff --git a/ext/ripper/depend b/ext/ripper/depend
index 306a75ca9e..40d54dab77 100644
--- a/ext/ripper/depend
+++ b/ext/ripper/depend
@@ -15,27 +15,33 @@ ripper.o: ripper.c lex.c eventids1.c eventids2.c eventids2table.c \
$(hdrdir)/regex.h $(hdrdir)/st.h $(hdrdir)/util.h
.y.c:
- $(BISON) -t -v -oy.tab.c $<
- sed -f $(top_srcdir)/tool/ytab.sed -e "/^#/s!y\.tab\.c!$@!" y.tab.c > $@
+ $(ECHO) compiling compiler $<
+ $(Q) $(BISON) -t -v -oy.tab.c $<
+ $(Q) sed -f $(top_srcdir)/tool/ytab.sed -e "/^#/s!y\.tab\.c!$@!" y.tab.c > $@
@$(RM) y.tab.c
all: check
static: check
ripper.y: $(srcdir)/tools/preproc.rb $(top_srcdir)/parse.y
- $(RUBY) $(srcdir)/tools/preproc.rb $(top_srcdir)/parse.y --output=$@
+ $(ECHO) extracting $@ from $(top_srcdir)/parse.y
+ $(Q) $(RUBY) $(srcdir)/tools/preproc.rb $(top_srcdir)/parse.y --output=$@
check: $(GEN) $(SRC1) $(SRC2)
- $(RUBY) $(GEN) --mode=check --ids1src=$(SRC1) --ids2src=$(SRC2)
+ $(ECHO) checking $(SRC1) and $(SRC2)
+ $(Q) $(RUBY) $(GEN) --mode=check --ids1src=$(SRC1) --ids2src=$(SRC2)
eventids1.c: $(srcdir)/tools/generate.rb $(SRC1)
- $(RUBY) $(GEN) --mode=eventids1 --ids1src=$(SRC1) --output=$@
+ $(ECHO) generating $@ from $(SRC1)
+ $(Q) $(RUBY) $(GEN) --mode=eventids1 --ids1src=$(SRC1) --output=$@
eventids2table.c: $(srcdir)/tools/generate.rb $(SRC2)
- $(RUBY) $(GEN) --mode=eventids2table --ids2src=$(SRC2) --output=$@
+ $(ECHO) generating $@ from $(SRC2)
+ $(Q) $(RUBY) $(GEN) --mode=eventids2table --ids2src=$(SRC2) --output=$@
# Entries for Ripper maintainer
preproc: ripper.E
ripper.E: ripper.c
- $(CC) -E $(CPPFLAGS) ripper.c | $(RUBY) $(srcdir)/tools/strip.rb > $@
+ $(ECHO) preprocessing ripper.c
+ $(Q) $(CC) -E $(CPPFLAGS) ripper.c | $(RUBY) $(srcdir)/tools/strip.rb > $@
diff --git a/ext/ripper/eventids2.c b/ext/ripper/eventids2.c
index a557a41fa7..8b0d9c3757 100644
--- a/ext/ripper/eventids2.c
+++ b/ext/ripper/eventids2.c
@@ -185,6 +185,7 @@ static const struct token_assoc {
{keyword__ENCODING__, &ripper_id_kw},
{keyword_BEGIN, &ripper_id_kw},
{keyword_END, &ripper_id_kw},
+ {keyword_do_LAMBDA, &ripper_id_kw},
{tAMPER, &ripper_id_op},
{tANDOP, &ripper_id_op},
{tAREF, &ripper_id_op},
diff --git a/ext/ripper/lib/ripper/sexp.rb b/ext/ripper/lib/ripper/sexp.rb
index f2260fe8dd..37040e4c11 100644
--- a/ext/ripper/lib/ripper/sexp.rb
+++ b/ext/ripper/lib/ripper/sexp.rb
@@ -14,13 +14,32 @@ class Ripper
# [EXPERIMENTAL]
# Parses +src+ and create S-exp tree.
+ # Returns more readable tree rather than Ripper.sexp_raw.
# This method is for mainly developper use.
#
# require 'ripper'
- # require 'pp
+ # require 'pp'
#
# pp Ripper.sexp("def m(a) nil end")
# #=> [:program,
+ # [[:def,
+ # [:@ident, "m", [1, 4]],
+ # [:paren, [:params, [[:@ident, "a", [1, 6]]], nil, nil, nil, nil]],
+ # [:bodystmt, [[:var_ref, [:@kw, "nil", [1, 9]]]], nil, nil, nil]]]]
+ #
+ def Ripper.sexp(src, filename = '-', lineno = 1)
+ SexpBuilderPP.new(src, filename, lineno).parse
+ end
+
+ # [EXPERIMENTAL]
+ # Parses +src+ and create S-exp tree.
+ # This method is for mainly developper use.
+ #
+ # require 'ripper'
+ # require 'pp'
+ #
+ # pp Ripper.sexp_raw("def m(a) nil end")
+ # #=> [:program,
# [:stmts_add,
# [:stmts_new],
# [:def,
@@ -32,10 +51,6 @@ class Ripper
# nil,
# nil]]]]
#
- def Ripper.sexp(src, filename = '-', lineno = 1)
- SexpBuilderPP.new(src, filename, lineno).parse
- end
-
def Ripper.sexp_raw(src, filename = '-', lineno = 1)
SexpBuilder.new(src, filename, lineno).parse
end
diff --git a/ext/sdbm/.cvsignore b/ext/sdbm/.cvsignore
deleted file mode 100644
index 814345ece8..0000000000
--- a/ext/sdbm/.cvsignore
+++ /dev/null
@@ -1,4 +0,0 @@
-Makefile
-mkmf.log
-*.def
-extconf.h
diff --git a/ext/sdbm/_sdbm.c b/ext/sdbm/_sdbm.c
index b3a598dbc6..28e5b03b31 100644
--- a/ext/sdbm/_sdbm.c
+++ b/ext/sdbm/_sdbm.c
@@ -11,10 +11,15 @@
/*char sdbm_rcsid[] = "$Id$";*/
#endif
-#include "sdbm.h"
#include "ruby/config.h"
#include "ruby/defines.h"
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>
+#endif
+
+#include "sdbm.h"
+
/*
* sdbm - ndbm work-alike hashed database library
* tuning and portability constructs [not nearly enough]
@@ -23,24 +28,25 @@
#define BYTESIZ 8
-#ifdef HAVE_UNISTD_H
-#include <unistd.h>
-#endif
-
#ifdef BSD42
#define SEEK_SET L_SET
-#define memset(s,c,n) bzero(s, n) /* only when c is zero */
-#define memcpy(s1,s2,n) bcopy(s2, s1, n)
-#define memcmp(s1,s2,n) bcmp(s1,s2,n)
+#define memset(s,c,n) bzero((s), (n)) /* only when c is zero */
+#define memcpy(s1,s2,n) bcopy((s2), (s1), (n))
+#define memcmp(s1,s2,n) bcmp((s1),(s2),(n))
#endif
/*
* important tuning parms (hah)
*/
-#define SEEDUPS /* always detect duplicates */
-#define BADMESS /* generate a message for worst case:
+#ifndef SEEDUPS
+#define SEEDUPS 1 /* always detect duplicates */
+#endif
+#ifndef BADMESS
+#define BADMESS 1 /* generate a message for worst case:
cannot make room after SPLTMAX splits */
+#endif
+
/*
* misc
*/
@@ -54,8 +60,8 @@
#define GET_SHORT(p, i) (((unsigned)((unsigned char *)(p))[(i)*2] << 8) + (((unsigned char *)(p))[(i)*2 + 1]))
#define PUT_SHORT(p, i, s) (((unsigned char *)(p))[(i)*2] = (unsigned char)((s) >> 8), ((unsigned char *)(p))[(i)*2 + 1] = (unsigned char)(s))
#else
-#define GET_SHORT(p, i) ((p)[i])
-#define PUT_SHORT(p, i, s) ((p)[i] = (s))
+#define GET_SHORT(p, i) ((p)[(i)])
+#define PUT_SHORT(p, i, s) ((p)[(i)] = (s))
#endif
/*#include "pair.h"*/
@@ -66,7 +72,7 @@ static int delpair proto((char *, datum));
static int chkpage proto((char *));
static datum getnkey proto((char *, int));
static void splpage proto((char *, char *, long));
-#ifdef SEEDUPS
+#if SEEDUPS
static int duppair proto((char *, datum));
#endif
@@ -149,7 +155,7 @@ sdbm_open(register char *file, register int flags, register int mode)
register DBM *db;
register char *dirname;
register char *pagname;
- register int n;
+ register size_t n;
if (file == NULL || !*file)
return errno = EINVAL, (DBM *) NULL;
@@ -158,7 +164,7 @@ sdbm_open(register char *file, register int flags, register int mode)
*/
n = strlen(file) * 2 + strlen(DIRFEXT) + strlen(PAGFEXT) + 2;
- if ((dirname = malloc((unsigned) n)) == NULL)
+ if ((dirname = malloc(n)) == NULL)
return errno = ENOMEM, (DBM *) NULL;
/*
* build the file names
@@ -186,7 +192,7 @@ sdbm_prep(char *dirname, char *pagname, int flags, int mode)
db->blkptr = 0;
db->keyptr = 0;
/*
- * adjust user flags so that WRONLY becomes RDWR,
+ * adjust user flags so that WRONLY becomes RDWR,
* as required by this package. Also set our internal
* flag for RDONLY.
*/
@@ -301,7 +307,7 @@ sdbm_store(register DBM *db, datum key, datum val, int flags)
*/
if (flags == DBM_REPLACE)
(void) delpair(db->pagbuf, key);
-#ifdef SEEDUPS
+#if SEEDUPS
else if (duppair(db->pagbuf, key))
return 1;
#endif
@@ -407,7 +413,7 @@ makroom(register DBM *db, long int hash, int need)
* need to read in anything. BUT we have to write the current
* [deferred] page out, as the window of failure is too great.
*/
- db->curbit = 2 * db->curbit +
+ db->curbit = 2 * db->curbit +
((hash & (db->hmask + 1)) ? 2 : 1);
db->hmask |= (db->hmask + 1);
@@ -420,8 +426,8 @@ makroom(register DBM *db, long int hash, int need)
* if we are here, this is real bad news. After SPLTMAX splits,
* we still cannot fit the key. say goodnight.
*/
-#ifdef BADMESS
- (void) write(2, "sdbm: cannot insert after SPLTMAX attempts.\n", 44);
+#if BADMESS
+ (void) (write(2, "sdbm: cannot insert after SPLTMAX attempts.\n", 44) < 0);
#endif
return 0;
@@ -483,7 +489,7 @@ getpage(register DBM *db, register long int hash)
* see if the block we need is already in memory.
* note: this lookaside cache has about 10% hit rate.
*/
- if (pagb != db->pagbno) {
+ if (pagb != db->pagbno) {
/*
* note: here, we assume a "hole" is read as 0s.
* if not, must zero pagbuf first.
@@ -608,8 +614,8 @@ getnext(register DBM *db)
#define exhash(item) sdbm_hash((item).dptr, (item).dsize)
-/*
- * forward
+/*
+ * forward
*/
static int seepair proto((char *, int, char *, int));
@@ -697,7 +703,7 @@ getpair(char *pag, datum key)
return val;
}
-#ifdef SEEDUPS
+#if SEEDUPS
static int
duppair(char *pag, datum key)
{
@@ -749,9 +755,9 @@ delpair(char *pag, datum key)
register int m;
register char *dst = pag + (i == 1 ? PBLKSIZ : GET_SHORT(ino,i - 1));
register char *src = pag + GET_SHORT(ino,i + 1);
- register int zoo = dst - src;
+ register ptrdiff_t zoo = dst - src;
- debug(("free-up %d ", zoo));
+ debug(("free-up %"PRIdPTRDIFF" ", zoo));
/*
* shift data/keys down
*/
@@ -829,7 +835,7 @@ splpage(char *pag, char *new, long int sbit)
n = GET_SHORT(ino,0);
for (ino++; n > 0; ino += 2) {
- key.dptr = cur + GET_SHORT(ino,0);
+ key.dptr = cur + GET_SHORT(ino,0);
key.dsize = off - GET_SHORT(ino,0);
val.dptr = cur + GET_SHORT(ino,1);
val.dsize = GET_SHORT(ino,0) - GET_SHORT(ino,1);
@@ -842,13 +848,13 @@ splpage(char *pag, char *new, long int sbit)
n -= 2;
}
- debug(("%d split %d/%d\n", ((short *) cur)[0] / 2,
+ debug(("%d split %d/%d\n", ((short *) cur)[0] / 2,
((short *) new)[0] / 2,
((short *) pag)[0] / 2));
}
/*
- * check page sanity:
+ * check page sanity:
* number of entries should be something
* reasonable, and all offsets in the index should be in order.
* this could be made more rigorous.
@@ -860,7 +866,7 @@ chkpage(char *pag)
register int off;
register short *ino = (short *) pag;
- if ((n = GET_SHORT(ino,0)) < 0 || n > PBLKSIZ / sizeof(short))
+ if ((n = GET_SHORT(ino,0)) < 0 || n > PBLKSIZ / (int)sizeof(short))
return 0;
if (n > 0) {
@@ -891,7 +897,7 @@ chkpage(char *pag)
* [this seems to work remarkably well, in fact better
* then the ndbm hash function. Replace at your own risk]
* use: 65599 nice.
- * 65587 even better.
+ * 65587 even better.
*/
long
sdbm_hash(register char *str, register int len)
diff --git a/ext/sdbm/depend b/ext/sdbm/depend
index 1d8b13d13f..f205edc611 100644
--- a/ext/sdbm/depend
+++ b/ext/sdbm/depend
@@ -1,2 +1,2 @@
-_sdbm.o: _sdbm.c $(hdrdir)/ruby.h $(topdir)/config.h $(hdrdir)/defines.h
-init.o: init.c $(hdrdir)/ruby.h $(topdir)/config.h $(hdrdir)/defines.h
+_sdbm.o: _sdbm.c sdbm.h $(hdrdir)/ruby.h $(topdir)/config.h $(hdrdir)/defines.h
+init.o: init.c sdbm.h $(hdrdir)/ruby.h $(topdir)/config.h $(hdrdir)/defines.h
diff --git a/ext/sdbm/extconf.rb b/ext/sdbm/extconf.rb
index cc6c8cefd1..67796fbf8a 100644
--- a/ext/sdbm/extconf.rb
+++ b/ext/sdbm/extconf.rb
@@ -1,3 +1,4 @@
require 'mkmf'
+$defs << "-D""BADMESS=0"
create_makefile("sdbm")
diff --git a/ext/sdbm/init.c b/ext/sdbm/init.c
index f630dc3cc9..7ba59c4e5c 100644
--- a/ext/sdbm/init.c
+++ b/ext/sdbm/init.c
@@ -29,13 +29,13 @@ closed_sdbm()
}
#define GetDBM(obj, dbmp) {\
- Data_Get_Struct(obj, struct dbmdata, dbmp);\
- if (dbmp == 0) closed_sdbm();\
- if (dbmp->di_dbm == 0) closed_sdbm();\
+ Data_Get_Struct((obj), struct dbmdata, (dbmp));\
+ if ((dbmp) == 0) closed_sdbm();\
+ if ((dbmp)->di_dbm == 0) closed_sdbm();\
}
#define GetDBM2(obj, data, dbm) {\
- GetDBM(obj, data);\
+ GetDBM((obj), (data));\
(dbm) = dbmp->di_dbm;\
}
@@ -145,7 +145,7 @@ fsdbm_fetch(VALUE obj, VALUE keystr, VALUE ifnone)
ExportStringValue(keystr);
key.dptr = RSTRING_PTR(keystr);
- key.dsize = RSTRING_LEN(keystr);
+ key.dsize = RSTRING_LENINT(keystr);
GetDBM2(obj, dbmp, dbm);
value = sdbm_fetch(dbm, key);
@@ -185,7 +185,7 @@ fsdbm_key(VALUE obj, VALUE valstr)
ExportStringValue(valstr);
val.dptr = RSTRING_PTR(valstr);
- val.dsize = RSTRING_LEN(valstr);
+ val.dsize = RSTRING_LENINT(valstr);
GetDBM2(obj, dbmp, dbm);
for (key = sdbm_firstkey(dbm); key.dptr; key = sdbm_nextkey(dbm)) {
@@ -259,7 +259,7 @@ fsdbm_delete(VALUE obj, VALUE keystr)
fdbm_modify(obj);
ExportStringValue(keystr);
key.dptr = RSTRING_PTR(keystr);
- key.dsize = RSTRING_LEN(keystr);
+ key.dsize = RSTRING_LENINT(keystr);
GetDBM2(obj, dbmp, dbm);
dbmp->di_size = -1;
@@ -293,7 +293,7 @@ fsdbm_shift(VALUE obj)
fdbm_modify(obj);
GetDBM2(obj, dbmp, dbm);
- key = sdbm_firstkey(dbm);
+ key = sdbm_firstkey(dbm);
if (!key.dptr) return Qnil;
val = sdbm_fetch(dbm, key);
keystr = rb_external_str_new(key.dptr, key.dsize);
@@ -334,13 +334,13 @@ fsdbm_delete_if(VALUE obj)
keystr = RARRAY_PTR(ary)[i];
ExportStringValue(keystr);
key.dptr = RSTRING_PTR(keystr);
- key.dsize = RSTRING_LEN(keystr);
+ key.dsize = RSTRING_LENINT(keystr);
if (sdbm_delete(dbm, key)) {
rb_raise(rb_eDBMError, "sdbm_delete failed");
}
}
if (status) rb_jump_tag(status);
- if (n > 0) dbmp->di_size = n - RARRAY_LEN(ary);
+ if (n > 0) dbmp->di_size = n - RARRAY_LENINT(ary);
return obj;
}
@@ -401,10 +401,10 @@ fsdbm_store(VALUE obj, VALUE keystr, VALUE valstr)
ExportStringValue(valstr);
key.dptr = RSTRING_PTR(keystr);
- key.dsize = RSTRING_LEN(keystr);
+ key.dsize = RSTRING_LENINT(keystr);
val.dptr = RSTRING_PTR(valstr);
- val.dsize = RSTRING_LEN(valstr);
+ val.dsize = RSTRING_LENINT(valstr);
GetDBM2(obj, dbmp, dbm);
dbmp->di_size = -1;
@@ -588,7 +588,7 @@ fsdbm_has_key(VALUE obj, VALUE keystr)
ExportStringValue(keystr);
key.dptr = RSTRING_PTR(keystr);
- key.dsize = RSTRING_LEN(keystr);
+ key.dsize = RSTRING_LENINT(keystr);
GetDBM2(obj, dbmp, dbm);
val = sdbm_fetch(dbm, key);
@@ -605,12 +605,12 @@ fsdbm_has_value(VALUE obj, VALUE valstr)
ExportStringValue(valstr);
val.dptr = RSTRING_PTR(valstr);
- val.dsize = RSTRING_LEN(valstr);
+ val.dsize = RSTRING_LENINT(valstr);
GetDBM2(obj, dbmp, dbm);
for (key = sdbm_firstkey(dbm); key.dptr; key = sdbm_nextkey(dbm)) {
val = sdbm_fetch(dbm, key);
- if (val.dsize == RSTRING_LEN(valstr) &&
+ if (val.dsize == RSTRING_LENINT(valstr) &&
memcmp(val.dptr, RSTRING_PTR(valstr), val.dsize) == 0)
return Qtrue;
}
diff --git a/ext/sdbm/sdbm.h b/ext/sdbm/sdbm.h
index 0c7ed1ba9b..c3b53c4a8f 100644
--- a/ext/sdbm/sdbm.h
+++ b/ext/sdbm/sdbm.h
@@ -2,11 +2,13 @@
* sdbm - ndbm work-alike hashed database library
* based on Per-Ake Larson's Dynamic Hashing algorithms. BIT 18 (1978).
* author: oz@nexus.yorku.ca
- * status: public domain.
+ * status: public domain.
*/
#ifndef _SDBM_H_
#define _SDBM_H_
+#include <stdio.h>
+
#define DBLKSIZ 4096
#define PBLKSIZ 1024
#define PAIRMAX 1008 /* arbitrary on PBLKSIZ-N */
@@ -19,11 +21,11 @@ typedef struct {
int dirf; /* directory file descriptor */
int pagf; /* page file descriptor */
int flags; /* status/error flags, see below */
- long maxbno; /* size of dirfile in bits */
+ int keyptr; /* current key for nextkey */
+ off_t maxbno; /* size of dirfile in bits */
long curbit; /* current bit number */
long hmask; /* current hash mask */
long blkptr; /* current block for nextkey */
- int keyptr; /* current key for nextkey */
long blkno; /* current page to read/write */
long pagbno; /* current page in pagbuf */
char pagbuf[PBLKSIZ]; /* page file block buffer */
diff --git a/ext/socket/.cvsignore b/ext/socket/.cvsignore
deleted file mode 100644
index ce98586d91..0000000000
--- a/ext/socket/.cvsignore
+++ /dev/null
@@ -1,5 +0,0 @@
-Makefile
-mkmf.log
-*.def
-constants.h
-extconf.h
diff --git a/ext/socket/.document b/ext/socket/.document
new file mode 100644
index 0000000000..0216c5aa45
--- /dev/null
+++ b/ext/socket/.document
@@ -0,0 +1,16 @@
+ancdata.c
+basicsocket.c
+constants.c
+constdefs.c
+init.c
+ipsocket.c
+option.c
+raddrinfo.c
+socket.c
+sockssocket.c
+tcpserver.c
+tcpsocket.c
+udpsocket.c
+unixserver.c
+unixsocket.c
+lib
diff --git a/ext/socket/addrinfo.h b/ext/socket/addrinfo.h
index 171d3c2ce7..f0b977d79c 100644
--- a/ext/socket/addrinfo.h
+++ b/ext/socket/addrinfo.h
@@ -1,7 +1,7 @@
/*
* Copyright (C) 1995, 1996, 1997, 1998, and 1999 WIDE Project.
* All rights reserved.
- *
+ *
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
@@ -13,7 +13,7 @@
* 3. Neither the name of the project nor the names of its contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
- *
+ *
* THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
@@ -29,7 +29,6 @@
#ifndef ADDR_INFO_H
#define ADDR_INFO_H
-#ifndef HAVE_GETADDRINFO
/* special compatibility hack */
#undef EAI_ADDRFAMILY
@@ -62,17 +61,6 @@
#undef NI_NUMERICSERV
#undef NI_DGRAM
-#undef addrinfo
-#define addrinfo addrinfo__compat
-#undef getaddrinfo
-#define getaddrinfo getaddrinfo__compat
-#undef getnameinfo
-#define getnameinfo getnameinfo__compat
-#undef freehostent
-#define freehostent freehostent__compat
-#undef freeaddrinfo
-#define freeaddrinfo freeaddrinfo__compat
-
#ifndef __P
# ifdef HAVE_PROTOTYPES
# define __P(args) args
@@ -111,6 +99,7 @@
#define AI_NUMERICSERV 0x00000008 /* prevent service name resolution */
/* valid flags for addrinfo */
#ifndef __HAIKU__
+#undef AI_MASK
#define AI_MASK (AI_PASSIVE | AI_CANONNAME | AI_NUMERICHOST | AI_NUMERICSERV)
#endif
@@ -138,6 +127,7 @@
#define NI_NUMERICSERV 0x00000008
#define NI_DGRAM 0x00000010
+#ifndef HAVE_TYPE_STRUCT_ADDRINFO
struct addrinfo {
int ai_flags; /* AI_PASSIVE, AI_CANONNAME */
int ai_family; /* PF_xxx */
@@ -148,6 +138,24 @@ struct addrinfo {
struct sockaddr *ai_addr; /* binary address */
struct addrinfo *ai_next; /* next structure in linked list */
};
+#endif
+
+#ifndef HAVE_GETADDRINFO
+#undef getaddrinfo
+#define getaddrinfo getaddrinfo__compat
+#endif
+#ifndef HAVE_GETNAMEINFO
+#undef getnameinfo
+#define getnameinfo getnameinfo__compat
+#endif
+#ifndef HAVE_FREEHOSTENT
+#undef freehostent
+#define freehostent freehostent__compat
+#endif
+#ifndef HAVE_FREEADDRINFO
+#undef freeaddrinfo
+#define freeaddrinfo freeaddrinfo__compat
+#endif
extern int getaddrinfo __P((
const char *hostname, const char *servname,
@@ -156,21 +164,20 @@ extern int getaddrinfo __P((
extern int getnameinfo __P((
const struct sockaddr *sa,
- size_t salen,
+ socklen_t salen,
char *host,
- size_t hostlen,
+ socklen_t hostlen,
char *serv,
- size_t servlen,
+ socklen_t servlen,
int flags));
extern void freehostent __P((struct hostent *));
extern void freeaddrinfo __P((struct addrinfo *));
-#if defined __UCLIBC__
+extern
+#ifdef GAI_STRERROR_CONST
const
#endif
-#ifndef __HAIKU__
-extern char *gai_strerror __P((int));
-#endif
+char *gai_strerror __P((int));
/* In case there is no definition of offsetof() provided - though any proper
Standard C system should have one. */
@@ -180,4 +187,3 @@ Standard C system should have one. */
#endif
#endif
-#endif
diff --git a/ext/socket/ancdata.c b/ext/socket/ancdata.c
index d30ddf6e7c..c01a1c272a 100644
--- a/ext/socket/ancdata.c
+++ b/ext/socket/ancdata.c
@@ -54,7 +54,7 @@ ip_cmsg_type_to_sym(int level, int cmsg_type)
* - etc.
*
* _cmsg_type_ should be an integer, a string or a symbol.
- * If a string/symbol is specified, it is interepreted depend on _cmsg_level_.
+ * If a string/symbol is specified, it is interpreted depend on _cmsg_level_.
* - Socket::SCM_RIGHTS, "SCM_RIGHTS", "RIGHTS", :SCM_RIGHTS, :RIGHTS for SOL_SOCKET
* - Socket::IP_RECVTTL, "RECVTTL" and :RECVTTL for IPPROTO_IP
* - Socket::IPV6_PKTINFO, "PKTINFO" and :PKTINFO for IPPROTO_IPV6
@@ -65,7 +65,7 @@ ip_cmsg_type_to_sym(int level, int cmsg_type)
* p Socket::AncillaryData.new(:INET, :TCP, :NODELAY, "")
* #=> #<Socket::AncillaryData: INET TCP NODELAY "">
*
- * p Socket::AncillaryData.new(:INET6, :IPV6, :PKTINFO, "")
+ * p Socket::AncillaryData.new(:INET6, :IPV6, :PKTINFO, "")
* #=> #<Socket::AncillaryData: INET6 IPV6 PKTINFO "">
*
*/
@@ -228,7 +228,7 @@ ancillary_s_unix_rights(int argc, VALUE *argv, VALUE klass)
*
* returns the array of IO objects for SCM_RIGHTS control message in UNIX domain socket.
*
- * The class of the IO objects in the array is IO or Socket.
+ * The class of the IO objects in the array is IO or Socket.
*
* The array is attached to _ancillarydata_ when it is instantiated.
* For example, BasicSocket#recvmsg attach the array when
@@ -237,15 +237,16 @@ ancillary_s_unix_rights(int argc, VALUE *argv, VALUE klass)
* # recvmsg needs :scm_rights=>true for unix_rights
* s1, s2 = UNIXSocket.pair
* p s1 #=> #<UNIXSocket:fd 3>
- * s1.sendmsg "stdin and a socket", 0, nil, [:SOCKET, :RIGHTS, [0,s1.fileno].pack("ii")]
+ * s1.sendmsg "stdin and a socket", 0, nil, Socket::AncillaryData.unix_rights(STDIN, s1)
* _, _, _, ctl = s2.recvmsg(:scm_rights=>true)
+ * p ctl #=> #<Socket::AncillaryData: UNIX SOCKET RIGHTS 6 7>
* p ctl.unix_rights #=> [#<IO:fd 6>, #<Socket:fd 7>]
* p File.identical?(STDIN, ctl.unix_rights[0]) #=> true
* p File.identical?(s1, ctl.unix_rights[1]) #=> true
*
* # If :scm_rights=>true is not given, unix_rights returns nil
* s1, s2 = UNIXSocket.pair
- * s1.sendmsg "stdin and a socket", 0, nil, [:SOCKET, :RIGHTS, [0,s1.fileno].pack("ii")]
+ * s1.sendmsg "stdin and a socket", 0, nil, Socket::AncillaryData.unix_rights(STDIN, s1)
* _, _, _, ctl = s2.recvmsg
* p ctl #=> #<Socket::AncillaryData: UNIX SOCKET RIGHTS 6 7>
* p ctl.unix_rights #=> nil
@@ -262,8 +263,7 @@ ancillary_unix_rights(VALUE self)
if (level != SOL_SOCKET || type != SCM_RIGHTS)
rb_raise(rb_eTypeError, "SCM_RIGHTS ancillary data expected");
- VALUE v = rb_attr_get(self, rb_intern("unix_rights"));
- return v;
+ return rb_attr_get(self, rb_intern("unix_rights"));
}
#else
#define ancillary_unix_rights rb_f_notimplement
@@ -281,9 +281,6 @@ ancillary_unix_rights(VALUE self)
* - SOL_SOCKET/SCM_TIMESTAMPNS (nano second) GNU/Linux
* - SOL_SOCKET/SCM_BINTIME (2**(-64) second) FreeBSD
*
- * Note that Time cannot represent SCM_BINTIME timestamps accurately
- * because Time represents a time in nano second granularity.
- *
* Addrinfo.udp("127.0.0.1", 0).bind {|s1|
* Addrinfo.udp("127.0.0.1", 0).bind {|s2|
* s1.setsockopt(:SOCKET, :TIMESTAMP, true)
@@ -327,14 +324,20 @@ ancillary_timestamp(VALUE self)
}
# endif
+#define add(x,y) (rb_funcall((x), '+', 1, (y)))
+#define mul(x,y) (rb_funcall((x), '*', 1, (y)))
+#define quo(x,y) (rb_funcall((x), rb_intern("quo"), 1, (y)))
+
# ifdef SCM_BINTIME
if (level == SOL_SOCKET && type == SCM_BINTIME &&
RSTRING_LEN(data) == sizeof(struct bintime)) {
struct bintime bt;
- struct timespec ts;
+ VALUE d, timev;
memcpy((char*)&bt, RSTRING_PTR(data), sizeof(bt));
- bintime2timespec(&bt, &ts);
- result = rb_time_nano_new(ts.tv_sec, ts.tv_nsec);
+ d = ULL2NUM(0x100000000ULL);
+ d = mul(d,d);
+ timev = add(TIMET2NUM(bt.sec), quo(ULL2NUM(bt.frac), d));
+ result = rb_time_num_new(timev, Qnil);
}
# endif
@@ -353,7 +356,7 @@ ancillary_timestamp(VALUE self)
*
* Creates a new Socket::AncillaryData object which contains a int as data.
*
- * The size and endian is dependent on the host.
+ * The size and endian is dependent on the host.
*
* p Socket::AncillaryData.int(:UNIX, :SOCKET, :RIGHTS, STDERR.fileno)
* #=> #<Socket::AncillaryData: UNIX SOCKET RIGHTS 2>
@@ -374,7 +377,7 @@ ancillary_s_int(VALUE klass, VALUE vfamily, VALUE vlevel, VALUE vtype, VALUE int
*
* Returns the data in _ancillarydata_ as an int.
*
- * The size and endian is dependent on the host.
+ * The size and endian is dependent on the host.
*
* ancdata = Socket::AncillaryData.int(:UNIX, :SOCKET, :RIGHTS, STDERR.fileno)
* p ancdata.int #=> 2
@@ -391,7 +394,7 @@ ancillary_int(VALUE self)
return INT2NUM(i);
}
-#if defined(IPPROTO_IP) && defined(IP_PKTINFO) && defined(HAVE_TYPE_STRUCT_IN_PKTINFO) && defined(HAVE_IPI_SPEC_DST) /* GNU/Linux */
+#if defined(IPPROTO_IP) && defined(IP_PKTINFO) && defined(HAVE_STRUCT_IN_PKTINFO_IPI_SPEC_DST) /* GNU/Linux */
/*
* call-seq:
* Socket::AncillaryData.ip_pktinfo(addr, ifindex) => ancdata
@@ -455,7 +458,7 @@ ancillary_s_ip_pktinfo(int argc, VALUE *argv, VALUE self)
#define ancillary_s_ip_pktinfo rb_f_notimplement
#endif
-#if defined(IPPROTO_IP) && defined(IP_PKTINFO) && defined(HAVE_TYPE_STRUCT_IN_PKTINFO) && defined(HAVE_IPI_SPEC_DST) /* GNU/Linux */
+#if defined(IPPROTO_IP) && defined(IP_PKTINFO) && defined(HAVE_STRUCT_IN_PKTINFO_IPI_SPEC_DST) /* GNU/Linux */
/*
* call-seq:
* ancdata.ip_pktinfo => [addr, ifindex, spec_dst]
@@ -589,7 +592,7 @@ extract_ipv6_pktinfo(VALUE self, struct in6_pktinfo *pktinfo_ptr, struct sockadd
*
* IPV6_PKTINFO is defined by RFC 3542.
*
- * addr = Addrinfo.ip("::1")
+ * addr = Addrinfo.ip("::1")
* ifindex = 0
* ancdata = Socket::AncillaryData.ipv6_pktinfo(addr, ifindex)
* p ancdata.ipv6_pktinfo #=> [#<Addrinfo: ::1>, 0]
@@ -603,7 +606,7 @@ ancillary_ipv6_pktinfo(VALUE self)
VALUE v_addr;
extract_ipv6_pktinfo(self, &pktinfo, &sa);
- v_addr = rsock_addrinfo_new((struct sockaddr *)&sa, sizeof(sa), PF_INET6, 0, 0, Qnil, Qnil);
+ v_addr = rsock_addrinfo_new((struct sockaddr *)&sa, (socklen_t)sizeof(sa), PF_INET6, 0, 0, Qnil, Qnil);
return rb_ary_new3(2, v_addr, UINT2NUM(pktinfo.ipi6_ifindex));
}
#else
@@ -631,7 +634,7 @@ ancillary_ipv6_pktinfo_addr(VALUE self)
struct in6_pktinfo pktinfo;
struct sockaddr_in6 sa;
extract_ipv6_pktinfo(self, &pktinfo, &sa);
- return rsock_addrinfo_new((struct sockaddr *)&sa, sizeof(sa), PF_INET6, 0, 0, Qnil, Qnil);
+ return rsock_addrinfo_new((struct sockaddr *)&sa, (socklen_t)sizeof(sa), PF_INET6, 0, 0, Qnil, Qnil);
}
#else
#define ancillary_ipv6_pktinfo_addr rb_f_notimplement
@@ -775,10 +778,10 @@ anc_inspect_ip_recvdstaddr(int level, int type, VALUE data, VALUE ret)
{
if (level == IPPROTO_IP && type == IP_RECVDSTADDR &&
RSTRING_LEN(data) == sizeof(struct in_addr)) {
- struct in_addr addr;
+ struct in_addr addr;
char addrbuf[INET_ADDRSTRLEN];
memcpy(&addr, RSTRING_PTR(data), sizeof(addr));
- if (inet_ntop(AF_INET, &addr, addrbuf, sizeof(addrbuf)) == NULL)
+ if (inet_ntop(AF_INET, &addr, addrbuf, (socklen_t)sizeof(addrbuf)) == NULL)
rb_str_cat2(ret, " invalid-address");
else
rb_str_catf(ret, " %s", addrbuf);
@@ -790,7 +793,7 @@ anc_inspect_ip_recvdstaddr(int level, int type, VALUE data, VALUE ret)
}
#endif
-#if defined(IPPROTO_IP) && defined(IP_PKTINFO) && defined(HAVE_TYPE_STRUCT_IN_PKTINFO) && defined(HAVE_IPI_SPEC_DST) /* GNU/Linux */
+#if defined(IPPROTO_IP) && defined(IP_PKTINFO) && defined(HAVE_STRUCT_IN_PKTINFO_IPI_SPEC_DST) /* GNU/Linux */
static int
anc_inspect_ip_pktinfo(int level, int type, VALUE data, VALUE ret)
{
@@ -826,12 +829,12 @@ anc_inspect_ipv6_pktinfo(int level, int type, VALUE data, VALUE ret)
if (level == IPPROTO_IPV6 && type == IPV6_PKTINFO &&
RSTRING_LEN(data) == sizeof(struct in6_pktinfo)) {
struct in6_pktinfo *pktinfo = (struct in6_pktinfo *)RSTRING_PTR(data);
- struct in6_addr addr;
+ struct in6_addr addr;
unsigned int ifindex;
char addrbuf[INET6_ADDRSTRLEN], ifbuf[IFNAMSIZ];
memcpy(&addr, &pktinfo->ipi6_addr, sizeof(addr));
memcpy(&ifindex, &pktinfo->ipi6_ifindex, sizeof(ifindex));
- if (inet_ntop(AF_INET6, &addr, addrbuf, sizeof(addrbuf)) == NULL)
+ if (inet_ntop(AF_INET6, &addr, addrbuf, (socklen_t)sizeof(addrbuf)) == NULL)
rb_str_cat2(ret, " invalid-address");
else
rb_str_catf(ret, " %s", addrbuf);
@@ -1030,7 +1033,7 @@ ancillary_inspect(VALUE self)
# endif
}
break;
-
+
case AF_INET:
#ifdef INET6
case AF_INET6:
@@ -1042,7 +1045,7 @@ ancillary_inspect(VALUE self)
# if defined(IP_RECVDSTADDR) /* 4.4BSD */
case IP_RECVDSTADDR: inspected = anc_inspect_ip_recvdstaddr(level, type, data, ret); break;
# endif
-# if defined(IP_PKTINFO) && defined(HAVE_TYPE_STRUCT_IN_PKTINFO) && defined(HAVE_IPI_SPEC_DST) /* GNU/Linux */
+# if defined(IP_PKTINFO) && defined(HAVE_STRUCT_IN_PKTINFO_IPI_SPEC_DST) /* GNU/Linux */
case IP_PKTINFO: inspected = anc_inspect_ip_pktinfo(level, type, data, ret); break;
# endif
}
@@ -1063,8 +1066,8 @@ ancillary_inspect(VALUE self)
}
if (!inspected) {
- data = rb_str_dump(data);
- rb_str_catf(ret, " %s", StringValueCStr(data));
+ rb_str_cat2(ret, " ");
+ rb_str_append(ret, rb_str_dump(data));
}
rb_str_cat2(ret, ">");
@@ -1160,7 +1163,7 @@ bsock_sendmsg_internal(int argc, VALUE *argv, VALUE sock, int nonblock)
if (controls_num) {
#if defined(HAVE_ST_MSG_CONTROL)
int i;
- int last_pad = 0;
+ size_t last_pad = 0;
int last_level = 0;
int last_type = 0;
controls_str = rb_str_tmp_new(0);
@@ -1198,7 +1201,7 @@ bsock_sendmsg_internal(int argc, VALUE *argv, VALUE sock, int nonblock)
memset((char *)&cmh, 0, sizeof(cmh));
cmh.cmsg_level = level;
cmh.cmsg_type = type;
- cmh.cmsg_len = CMSG_LEN(RSTRING_LEN(cdata));
+ cmh.cmsg_len = (socklen_t)CMSG_LEN(RSTRING_LEN(cdata));
MEMCPY(cmsg, &cmh, char, sizeof(cmh));
MEMCPY(cmsg+((char*)CMSG_DATA(&cmh)-(char*)&cmh), RSTRING_PTR(cdata), char, RSTRING_LEN(cdata));
last_level = cmh.cmsg_level;
@@ -1208,17 +1211,18 @@ bsock_sendmsg_internal(int argc, VALUE *argv, VALUE sock, int nonblock)
if (last_pad) {
/*
* This code removes the last padding from msg_controllen.
- *
+ *
* 4.3BSD-Reno reject the padding for SCM_RIGHTS. (There was no 64bit environments in those days?)
* RFC 2292 require the padding.
* RFC 3542 relaxes the condition - implementation must accept both as valid.
- *
+ *
* Actual problems:
*
* - NetBSD 4.0.1
* SCM_RIGHTS with padding causes EINVAL
* IPV6_PKTINFO without padding causes "page fault trap"
- *
+ * http://www.netbsd.org/cgi-bin/query-pr-single.pl?number=40661
+ *
* - OpenBSD 4.4
* IPV6_PKTINFO without padding causes EINVAL
*
@@ -1250,7 +1254,7 @@ bsock_sendmsg_internal(int argc, VALUE *argv, VALUE sock, int nonblock)
memset(&mh, 0, sizeof(mh));
if (!NIL_P(dest_sockaddr)) {
mh.msg_name = RSTRING_PTR(dest_sockaddr);
- mh.msg_namelen = RSTRING_LEN(dest_sockaddr);
+ mh.msg_namelen = RSTRING_LENINT(dest_sockaddr);
}
mh.msg_iovlen = 1;
mh.msg_iov = &iov;
@@ -1259,7 +1263,7 @@ bsock_sendmsg_internal(int argc, VALUE *argv, VALUE sock, int nonblock)
#if defined(HAVE_ST_MSG_CONTROL)
if (controls_str) {
mh.msg_control = RSTRING_PTR(controls_str);
- mh.msg_controllen = RSTRING_LEN(controls_str);
+ mh.msg_controllen = RSTRING_LENINT(controls_str);
}
else {
mh.msg_control = NULL;
@@ -1313,7 +1317,7 @@ bsock_sendmsg_internal(int argc, VALUE *argv, VALUE sock, int nonblock)
* sendmsg can be used to implement send_io as follows:
*
* # use Socket::AncillaryData.
- * ancdata = Socket::AncillaryData.int(:UNIX, :SOCKET, :RIGHTS, io.fileno)
+ * ancdata = Socket::AncillaryData.int(:UNIX, :SOCKET, :RIGHTS, io.fileno)
* sock.sendmsg("a", 0, nil, ancdata)
*
* # use 3-element array.
@@ -1321,13 +1325,11 @@ bsock_sendmsg_internal(int argc, VALUE *argv, VALUE sock, int nonblock)
* sock.sendmsg("\0", 0, nil, ancdata)
*
*/
-static VALUE
-bsock_sendmsg(int argc, VALUE *argv, VALUE sock)
+VALUE
+rsock_bsock_sendmsg(int argc, VALUE *argv, VALUE sock)
{
return bsock_sendmsg_internal(argc, argv, sock, 0);
}
-#else
-#define bsock_sendmsg rb_f_notimplement
#endif
#if defined(HAVE_SENDMSG)
@@ -1342,13 +1344,11 @@ bsock_sendmsg(int argc, VALUE *argv, VALUE sock)
* and it doesn't retry the system call.
*
*/
-static VALUE
-bsock_sendmsg_nonblock(int argc, VALUE *argv, VALUE sock)
+VALUE
+rsock_bsock_sendmsg_nonblock(int argc, VALUE *argv, VALUE sock)
{
return bsock_sendmsg_internal(argc, argv, sock, 1);
}
-#else
-#define bsock_sendmsg_nonblock rb_f_notimplement
#endif
#if defined(HAVE_RECVMSG)
@@ -1377,13 +1377,26 @@ rb_recvmsg(int fd, struct msghdr *msg, int flags)
#if defined(HAVE_ST_MSG_CONTROL)
static void
-discard_cmsg(struct cmsghdr *cmh, char *msg_end)
+discard_cmsg(struct cmsghdr *cmh, char *msg_end, int msg_peek_p)
{
+# if !defined(FD_PASSING_WORK_WITH_RECVMSG_MSG_PEEK)
+ /*
+ * FreeBSD 8.2.0, NetBSD 5 and MacOS X Snow Leopard doesn't
+ * allocate fds by recvmsg with MSG_PEEK.
+ * [ruby-dev:44189]
+ * http://redmine.ruby-lang.org/issues/5075
+ *
+ * Linux 2.6.38 allocate fds by recvmsg with MSG_PEEK.
+ */
+ if (msg_peek_p)
+ return;
+# endif
if (cmh->cmsg_level == SOL_SOCKET && cmh->cmsg_type == SCM_RIGHTS) {
int *fdp = (int *)CMSG_DATA(cmh);
int *end = (int *)((char *)cmh + cmh->cmsg_len);
while ((char *)fdp + sizeof(int) <= (char *)end &&
(char *)fdp + sizeof(int) <= msg_end) {
+ rb_update_max_fd(*fdp);
close(*fdp);
fdp++;
}
@@ -1392,7 +1405,7 @@ discard_cmsg(struct cmsghdr *cmh, char *msg_end)
#endif
void
-rsock_discard_cmsg_resource(struct msghdr *mh)
+rsock_discard_cmsg_resource(struct msghdr *mh, int msg_peek_p)
{
#if defined(HAVE_ST_MSG_CONTROL)
struct cmsghdr *cmh;
@@ -1404,7 +1417,7 @@ rsock_discard_cmsg_resource(struct msghdr *mh)
msg_end = (char *)mh->msg_control + mh->msg_controllen;
for (cmh = CMSG_FIRSTHDR(mh); cmh != NULL; cmh = CMSG_NXTHDR(mh, cmh)) {
- discard_cmsg(cmh, msg_end);
+ discard_cmsg(cmh, msg_end, msg_peek_p);
}
#endif
}
@@ -1426,6 +1439,7 @@ make_io_for_unix_rights(VALUE ctl, struct cmsghdr *cmh, char *msg_end)
VALUE io;
if (fstat(fd, &stbuf) == -1)
rb_raise(rb_eSocket, "invalid fd in SCM_RIGHTS");
+ rb_update_max_fd(fd);
if (S_ISSOCK(stbuf.st_mode))
io = rsock_init_sock(rb_obj_alloc(rb_cSocket), fd);
else
@@ -1503,7 +1517,8 @@ bsock_recvmsg_internal(int argc, VALUE *argv, VALUE sock, int nonblock)
#if !defined(HAVE_ST_MSG_CONTROL)
if (grow_buffer) {
- int socktype, optlen = sizeof(socktype);
+ int socktype;
+ socklen_t optlen = (socklen_t)sizeof(socktype);
if (getsockopt(fptr->fd, SOL_SOCKET, SO_TYPE, (void*)&socktype, &optlen) == -1) {
rb_sys_fail("getsockopt(SO_TYPE)");
}
@@ -1539,7 +1554,7 @@ bsock_recvmsg_internal(int argc, VALUE *argv, VALUE sock, int nonblock)
memset(&namebuf, 0, sizeof(namebuf));
mh.msg_name = (struct sockaddr *)&namebuf;
- mh.msg_namelen = sizeof(namebuf);
+ mh.msg_namelen = (socklen_t)sizeof(namebuf);
mh.msg_iov = &iov;
mh.msg_iovlen = 1;
@@ -1548,7 +1563,7 @@ bsock_recvmsg_internal(int argc, VALUE *argv, VALUE sock, int nonblock)
#if defined(HAVE_ST_MSG_CONTROL)
mh.msg_control = ctlbuf;
- mh.msg_controllen = maxctllen;
+ mh.msg_controllen = (socklen_t)maxctllen;
#endif
if (grow_buffer)
@@ -1597,11 +1612,11 @@ bsock_recvmsg_internal(int argc, VALUE *argv, VALUE sock, int nonblock)
if (NIL_P(vmaxctllen) && (mh.msg_flags & MSG_CTRUNC)) {
#define BIG_ENOUGH_SPACE 65536
if (BIG_ENOUGH_SPACE < maxctllen &&
- mh.msg_controllen < maxctllen - BIG_ENOUGH_SPACE) {
+ mh.msg_controllen < (socklen_t)(maxctllen - BIG_ENOUGH_SPACE)) {
/* there are big space bug truncated.
* file descriptors limit? */
if (!gc_done) {
- rsock_discard_cmsg_resource(&mh);
+ rsock_discard_cmsg_resource(&mh, (flags & MSG_PEEK) != 0);
goto gc_and_retry;
}
}
@@ -1614,7 +1629,7 @@ bsock_recvmsg_internal(int argc, VALUE *argv, VALUE sock, int nonblock)
#undef BIG_ENOUGH_SPACE
}
#else
- if (NIL_P(vmaxdatlen) && ss != -1 && ss == iov.iov_len) {
+ if (NIL_P(vmaxdatlen) && ss != -1 && ss == (ssize_t)iov.iov_len) {
if (SIZE_MAX/2 < maxdatlen)
rb_raise(rb_eArgError, "max data length too big");
maxdatlen *= 2;
@@ -1622,14 +1637,14 @@ bsock_recvmsg_internal(int argc, VALUE *argv, VALUE sock, int nonblock)
}
#endif
if (grown) {
- rsock_discard_cmsg_resource(&mh);
+ rsock_discard_cmsg_resource(&mh, (flags & MSG_PEEK) != 0);
goto retry;
}
else {
grow_buffer = 0;
if (flags != orig_flags) {
+ rsock_discard_cmsg_resource(&mh, (flags & MSG_PEEK) != 0);
flags = orig_flags;
- rsock_discard_cmsg_resource(&mh);
goto retry;
}
}
@@ -1669,7 +1684,7 @@ bsock_recvmsg_internal(int argc, VALUE *argv, VALUE sock, int nonblock)
if (request_scm_rights)
make_io_for_unix_rights(ctl, cmh, msg_end);
else
- discard_cmsg(cmh, msg_end);
+ discard_cmsg(cmh, msg_end, (flags & MSG_PEEK) != 0);
rb_ary_push(ret, ctl);
}
}
@@ -1690,7 +1705,7 @@ bsock_recvmsg_internal(int argc, VALUE *argv, VALUE sock, int nonblock)
*
* _flags_ is bitwise OR of MSG_* constants such as Socket::MSG_PEEK.
*
- * _maxcontrolslen_ is the maximum length of controls (ancillary data) to receive.
+ * _maxcontrollen_ is the maximum length of controls (ancillary data) to receive.
*
* _opts_ is option hash.
* Currently :scm_rights=>bool is the only option.
@@ -1700,7 +1715,7 @@ bsock_recvmsg_internal(int argc, VALUE *argv, VALUE sock, int nonblock)
* In this case, recvmsg closes the passed file descriptors immediately.
* This is the default behavior.
*
- * If :scm_rights value is neigher nil nor false, application expects SCM_RIGHTS control message.
+ * If :scm_rights value is neither nil nor false, application expects SCM_RIGHTS control message.
* In this case, recvmsg creates IO objects for each file descriptors for
* Socket::AncillaryData#unix_rights method.
*
@@ -1719,7 +1734,7 @@ bsock_recvmsg_internal(int argc, VALUE *argv, VALUE sock, int nonblock)
*
* #<Socket::AncillaryData: AF_UNIX SOCKET RIGHTS 7>
*
- * _maxmesglen_ and _maxcontrolslen_ can be nil.
+ * _maxmesglen_ and _maxcontrollen_ can be nil.
* In that case, the buffer will be grown until the message is not truncated.
* Internally, MSG_PEEK is used and MSG_TRUNC/MSG_CTRUNC are checked.
*
@@ -1733,13 +1748,11 @@ bsock_recvmsg_internal(int argc, VALUE *argv, VALUE sock, int nonblock)
* }
*
*/
-static VALUE
-bsock_recvmsg(int argc, VALUE *argv, VALUE sock)
+VALUE
+rsock_bsock_recvmsg(int argc, VALUE *argv, VALUE sock)
{
return bsock_recvmsg_internal(argc, argv, sock, 0);
}
-#else
-#define bsock_recvmsg rb_f_notimplement
#endif
#if defined(HAVE_RECVMSG)
@@ -1754,28 +1767,24 @@ bsock_recvmsg(int argc, VALUE *argv, VALUE sock)
* and it doesn't retry the system call.
*
*/
-static VALUE
-bsock_recvmsg_nonblock(int argc, VALUE *argv, VALUE sock)
+VALUE
+rsock_bsock_recvmsg_nonblock(int argc, VALUE *argv, VALUE sock)
{
return bsock_recvmsg_internal(argc, argv, sock, 1);
}
-#else
-#define bsock_recvmsg_nonblock rb_f_notimplement
#endif
void
-Init_ancdata(void)
+rsock_init_ancdata(void)
{
- /* for rdoc */
- /* rb_cBasicSocket = rb_define_class("BasicSocket", rb_cIO); */
- /* rb_cSocket = rb_define_class("Socket", rb_cBasicSocket); */
-
- rb_define_method(rb_cBasicSocket, "sendmsg", bsock_sendmsg, -1);
- rb_define_method(rb_cBasicSocket, "sendmsg_nonblock", bsock_sendmsg_nonblock, -1);
- rb_define_method(rb_cBasicSocket, "recvmsg", bsock_recvmsg, -1);
- rb_define_method(rb_cBasicSocket, "recvmsg_nonblock", bsock_recvmsg_nonblock, -1);
-
#if defined(HAVE_ST_MSG_CONTROL)
+ /*
+ * Document-class: Socket::AncillaryData
+ *
+ * Socket::AncillaryData represents the ancillary data (control information)
+ * used by sendmsg and recvmsg system call. It contains socket #family,
+ * control message (cmsg) #level, cmsg #type and cmsg #data.
+ */
rb_cAncillaryData = rb_define_class_under(rb_cSocket, "AncillaryData", rb_cObject);
rb_define_method(rb_cAncillaryData, "initialize", ancillary_initialize, 4);
rb_define_method(rb_cAncillaryData, "inspect", ancillary_inspect, 0);
diff --git a/ext/socket/basicsocket.c b/ext/socket/basicsocket.c
index 4ffbd497bf..b997043620 100644
--- a/ext/socket/basicsocket.c
+++ b/ext/socket/basicsocket.c
@@ -57,7 +57,7 @@ bsock_s_for_fd(VALUE klass, VALUE fd)
* s2.close
* p s1.read #=> "pong\n"
* }
- *
+ *
*/
static VALUE
bsock_shutdown(int argc, VALUE *argv, VALUE sock)
@@ -89,7 +89,7 @@ bsock_shutdown(int argc, VALUE *argv, VALUE sock)
* call-seq:
* basicsocket.close_read => nil
*
- * Disallows further read.
+ * Disallows further read using shutdown system call.
*
* s1, s2 = UNIXSocket.pair
* s1.close_read
@@ -117,7 +117,7 @@ bsock_close_read(VALUE sock)
* call-seq:
* basicsocket.close_write => nil
*
- * Disallows further write.
+ * Disallows further write using shutdown system call.
*
* UNIXSocket.pair {|s1, s2|
* s1.print "ping"
@@ -148,16 +148,22 @@ bsock_close_write(VALUE sock)
/*
* Document-method: setsockopt
- * call-seq: setsockopt(level, optname, optval)
+ * call-seq:
+ * setsockopt(level, optname, optval)
+ * setsockopt(socketoption)
*
* Sets a socket option. These are protocol and system specific, see your
- * local sytem documentation for details.
+ * local system documentation for details.
*
* === Parameters
* * +level+ is an integer, usually one of the SOL_ constants such as
* Socket::SOL_SOCKET, or a protocol level.
+ * A string or symbol of the name, possibly without prefix, is also
+ * accepted.
* * +optname+ is an integer, usually one of the SO_ constants, such
* as Socket::SO_REUSEADDR.
+ * A string or symbol of the name, possibly without prefix, is also
+ * accepted.
* * +optval+ is the value of the option, it is passed to the underlying
* setsockopt() as a pointer to a certain number of bytes. How this is
* done depends on the type:
@@ -167,16 +173,21 @@ bsock_close_write(VALUE sock)
* int is passed as for a Fixnum. Note that +false+ must be passed,
* not +nil+.
* - String: the string's data and length is passed to the socket.
+ * * +socketoption+ is an instance of Socket::Option
*
* === Examples
*
* Some socket options are integers with boolean values, in this case
* #setsockopt could be called like this:
+ * sock.setsockopt(:SOCKET, :REUSEADDR, true)
* sock.setsockopt(Socket::SOL_SOCKET,Socket::SO_REUSEADDR, true)
+ * sock.setsockopt(Socket::Option.bool(:INET, :SOCKET, :REUSEADDR, true))
*
* Some socket options are integers with numeric values, in this case
* #setsockopt could be called like this:
+ * sock.setsockopt(:IP, :TTL, 255)
* sock.setsockopt(Socket::IPPROTO_IP, Socket::IP_TTL, 255)
+ * sock.setsockopt(Socket::Option.int(:INET, :IP, :TTL, 255))
*
* Option values may be structs. Passing them can be complex as it involves
* examining your system headers to determine the correct definition. An
@@ -185,9 +196,10 @@ bsock_close_write(VALUE sock)
* struct in_addr imr_multiaddr;
* struct in_addr imr_interface;
* };
- *
+ *
* In this case #setsockopt could be called like this:
- * optval = IPAddr.new("224.0.0.251") + Socket::INADDR_ANY
+ * optval = IPAddr.new("224.0.0.251").hton +
+ * IPAddr.new(Socket::INADDR_ANY, Socket::AF_INET).hton
* sock.setsockopt(Socket::IPPROTO_IP, Socket::IP_ADD_MEMBERSHIP, optval)
*
*/
@@ -226,12 +238,12 @@ bsock_setsockopt(int argc, VALUE *argv, VALUE sock)
case T_TRUE:
i = 1;
numval:
- v = (char*)&i; vlen = sizeof(i);
+ v = (char*)&i; vlen = (int)sizeof(i);
break;
default:
StringValue(val);
v = RSTRING_PTR(val);
- vlen = RSTRING_LEN(val);
+ vlen = RSTRING_LENINT(val);
break;
}
@@ -247,28 +259,39 @@ bsock_setsockopt(int argc, VALUE *argv, VALUE sock)
#if !defined(__BEOS__)
/*
* Document-method: getsockopt
- * call-seq: getsockopt(level, optname)
+ * call-seq:
+ * getsockopt(level, optname) => socketoption
*
* Gets a socket option. These are protocol and system specific, see your
- * local sytem documentation for details. The option is returned as
- * a String with the data being the binary value of the socket option.
+ * local system documentation for details. The option is returned as
+ * a Socket::Option object.
*
* === Parameters
* * +level+ is an integer, usually one of the SOL_ constants such as
* Socket::SOL_SOCKET, or a protocol level.
+ * A string or symbol of the name, possibly without prefix, is also
+ * accepted.
* * +optname+ is an integer, usually one of the SO_ constants, such
* as Socket::SO_REUSEADDR.
+ * A string or symbol of the name, possibly without prefix, is also
+ * accepted.
*
* === Examples
*
* Some socket options are integers with boolean values, in this case
* #getsockopt could be called like this:
+ *
+ * reuseaddr = sock.getsockopt(:SOCKET, :REUSEADDR).bool
+ *
* optval = sock.getsockopt(Socket::SOL_SOCKET,Socket::SO_REUSEADDR)
* optval = optval.unpack "i"
* reuseaddr = optval[0] == 0 ? false : true
*
* Some socket options are integers with numeric values, in this case
* #getsockopt could be called like this:
+ *
+ * ipttl = sock.getsockopt(:IP, :TTL).int
+ *
* optval = sock.getsockopt(Socket::IPPROTO_IP, Socket::IP_TTL)
* ipttl = optval.unpack("i")[0]
*
@@ -280,10 +303,15 @@ bsock_setsockopt(int argc, VALUE *argv, VALUE sock)
* int l_onoff;
* int l_linger;
* };
- *
+ *
* In this case #getsockopt could be called like this:
+ *
+ * # Socket::Option knows linger structure.
+ * onoff, linger = sock.getsockopt(:SOCKET, :LINGER).linger
+ *
* optval = sock.getsockopt(Socket::SOL_SOCKET, Socket::SO_LINGER)
* onoff, linger = optval.unpack "ii"
+ * onoff = onoff == 0 ? false : true
*/
static VALUE
bsock_getsockopt(VALUE sock, VALUE lev, VALUE optname)
@@ -321,12 +349,15 @@ bsock_getsockopt(VALUE sock, VALUE lev, VALUE optname)
* TCPServer.open("127.0.0.1", 15120) {|serv|
* p serv.getsockname #=> "\x02\x00;\x10\x7F\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00"
* }
+ *
+ * If Addrinfo object is preferred over the binary string,
+ * use BasicSocket#local_address.
*/
static VALUE
bsock_getsockname(VALUE sock)
{
struct sockaddr_storage buf;
- socklen_t len = sizeof buf;
+ socklen_t len = (socklen_t)sizeof buf;
rb_io_t *fptr;
GetOpenFile(sock, fptr);
@@ -347,12 +378,15 @@ bsock_getsockname(VALUE sock)
* p s.getpeername #=> "\x02\x00\x82u\x7F\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00"
* }
*
+ * If Addrinfo object is preferred over the binary string,
+ * use BasicSocket#remote_address.
+ *
*/
static VALUE
bsock_getpeername(VALUE sock)
{
struct sockaddr_storage buf;
- socklen_t len = sizeof buf;
+ socklen_t len = (socklen_t)sizeof buf;
rb_io_t *fptr;
GetOpenFile(sock, fptr);
@@ -427,6 +461,10 @@ bsock_getpeereid(VALUE self)
*
* Note that addrinfo.protocol is filled by 0.
*
+ * TCPSocket.open("www.ruby-lang.org", 80) {|s|
+ * p s.local_address #=> #<Addrinfo: 192.168.0.129:36873 TCP>
+ * }
+ *
* TCPServer.open("127.0.0.1", 1512) {|serv|
* p serv.local_address #=> #<Addrinfo: 127.0.0.1:1512 TCP>
* }
@@ -436,7 +474,7 @@ static VALUE
bsock_local_address(VALUE sock)
{
struct sockaddr_storage buf;
- socklen_t len = sizeof buf;
+ socklen_t len = (socklen_t)sizeof buf;
rb_io_t *fptr;
GetOpenFile(sock, fptr);
@@ -453,6 +491,10 @@ bsock_local_address(VALUE sock)
*
* Note that addrinfo.protocol is filled by 0.
*
+ * TCPSocket.open("www.ruby-lang.org", 80) {|s|
+ * p s.remote_address #=> #<Addrinfo: 221.186.184.68:80 TCP>
+ * }
+ *
* TCPServer.open("127.0.0.1", 1728) {|serv|
* c = TCPSocket.new("127.0.0.1", 1728)
* s = serv.accept
@@ -464,7 +506,7 @@ static VALUE
bsock_remote_address(VALUE sock)
{
struct sockaddr_storage buf;
- socklen_t len = sizeof buf;
+ socklen_t len = (socklen_t)sizeof buf;
rb_io_t *fptr;
GetOpenFile(sock, fptr);
@@ -475,7 +517,7 @@ bsock_remote_address(VALUE sock)
/*
* call-seq:
- * basicsocket.send(mesg, flags [, sockaddr_to]) => numbytes_sent
+ * basicsocket.send(mesg, flags [, dest_sockaddr]) => numbytes_sent
*
* send _mesg_ via _basicsocket_.
*
@@ -483,7 +525,7 @@ bsock_remote_address(VALUE sock)
*
* _flags_ should be a bitwise OR of Socket::MSG_* constants.
*
- * _sockaddr_to_ should be a packed sockaddr string or an addrinfo.
+ * _dest_sockaddr_ should be a packed sockaddr string or an addrinfo.
*
* TCPSocket.open("localhost", 80) {|s|
* s.send "GET / HTTP/1.0\r\n\r\n", 0
@@ -507,7 +549,7 @@ rsock_bsock_send(int argc, VALUE *argv, VALUE sock)
SockAddrStringValue(to);
to = rb_str_new4(to);
arg.to = (struct sockaddr *)RSTRING_PTR(to);
- arg.tolen = RSTRING_LEN(to);
+ arg.tolen = (socklen_t)RSTRING_LENINT(to);
func = rsock_sendto_blocking;
}
else {
@@ -517,7 +559,7 @@ rsock_bsock_send(int argc, VALUE *argv, VALUE sock)
arg.fd = fptr->fd;
arg.flags = NUM2INT(flags);
while (rb_thread_fd_writable(arg.fd),
- (n = (int)BLOCKING_REGION(func, &arg)) < 0) {
+ (n = (int)BLOCKING_REGION_FD(func, &arg)) < 0) {
if (rb_io_wait_writable(arg.fd)) {
continue;
}
@@ -605,7 +647,7 @@ bsock_recv(int argc, VALUE *argv, VALUE sock)
* call-seq:
* basicsocket.recv_nonblock(maxlen) => mesg
* basicsocket.recv_nonblock(maxlen, flags) => mesg
- *
+ *
* Receives up to _maxlen_ bytes from +socket+ using recvfrom(2) after
* O_NONBLOCK is set for the underlying file descriptor.
* _flags_ is zero or more of the +MSG_+ options.
@@ -614,11 +656,11 @@ bsock_recv(int argc, VALUE *argv, VALUE sock)
* When recvfrom(2) returns 0, Socket#recv_nonblock returns
* an empty string as data.
* The meaning depends on the socket: EOF on TCP, empty packet on UDP, etc.
- *
+ *
* === Parameters
* * +maxlen+ - the number of bytes to receive from the socket
- * * +flags+ - zero or more of the +MSG_+ options
- *
+ * * +flags+ - zero or more of the +MSG_+ options
+ *
* === Example
* serv = TCPServer.new("127.0.0.1", 0)
* af, port, host, addr = serv.addr
@@ -633,7 +675,7 @@ bsock_recv(int argc, VALUE *argv, VALUE sock)
* end
*
* Refer to Socket#recvfrom for the exceptions that may be thrown if the call
- * to _recv_nonblock_ fails.
+ * to _recv_nonblock_ fails.
*
* BasicSocket#recv_nonblock may raise any error corresponding to recvfrom(2) failure,
* including Errno::EWOULDBLOCK.
@@ -690,12 +732,14 @@ bsock_do_not_rev_lookup_set(VALUE self, VALUE val)
return val;
}
-/*
- * BasicSocket class
- */
void
-Init_basicsocket(void)
+rsock_init_basicsocket(void)
{
+ /*
+ * Document-class: BasicSocket < IO
+ *
+ * BasicSocket is the super class for all the Socket classes.
+ */
rb_cBasicSocket = rb_define_class("BasicSocket", rb_cIO);
rb_undef_method(rb_cBasicSocket, "initialize");
@@ -720,4 +764,10 @@ Init_basicsocket(void)
rb_define_method(rb_cBasicSocket, "recv_nonblock", bsock_recv_nonblock, -1);
rb_define_method(rb_cBasicSocket, "do_not_reverse_lookup", bsock_do_not_reverse_lookup, 0);
rb_define_method(rb_cBasicSocket, "do_not_reverse_lookup=", bsock_do_not_reverse_lookup_set, 1);
+
+ rb_define_method(rb_cBasicSocket, "sendmsg", rsock_bsock_sendmsg, -1); /* in ancdata.c */
+ rb_define_method(rb_cBasicSocket, "sendmsg_nonblock", rsock_bsock_sendmsg_nonblock, -1); /* in ancdata.c */
+ rb_define_method(rb_cBasicSocket, "recvmsg", rsock_bsock_recvmsg, -1); /* in ancdata.c */
+ rb_define_method(rb_cBasicSocket, "recvmsg_nonblock", rsock_bsock_recvmsg_nonblock, -1); /* in ancdata.c */
+
}
diff --git a/ext/socket/constants.c b/ext/socket/constants.c
index 4350a127d5..39f985b316 100644
--- a/ext/socket/constants.c
+++ b/ext/socket/constants.c
@@ -15,7 +15,7 @@ static VALUE rb_mSockConst;
#include "constdefs.c"
static int
-constant_arg(VALUE arg, int (*str_to_int)(const char*, int, int*), const char *errmsg)
+constant_arg(VALUE arg, int (*str_to_int)(const char*, long, int*), const char *errmsg)
{
VALUE tmp;
char *ptr;
@@ -138,9 +138,8 @@ rsock_shutdown_how_arg(VALUE how)
* Socket::Constants module
*/
void
-Init_socket_constants(void)
+rsock_init_socket_constants(void)
{
/* constants */
- rb_mSockConst = rb_define_module_under(rb_cSocket, "Constants");
init_constants();
}
diff --git a/ext/socket/depend b/ext/socket/depend
index 000a013c5f..ab0a5e81b3 100644
--- a/ext/socket/depend
+++ b/ext/socket/depend
@@ -1,6 +1,6 @@
SOCK_HEADERS = $(srcdir)/rubysocket.h $(hdrdir)/ruby/ruby.h $(arch_hdrdir)/ruby/config.h \
$(hdrdir)/ruby/defines.h $(hdrdir)/ruby/io.h \
- $(srcdir)/sockport.h constdefs.h
+ $(srcdir)/addrinfo.h $(srcdir)/sockport.h constdefs.h $(top_srcdir)/internal.h
init.o: init.c $(SOCK_HEADERS)
constants.o: constants.c constdefs.c $(SOCK_HEADERS)
diff --git a/ext/socket/extconf.rb b/ext/socket/extconf.rb
index 79c9d30b36..380b3ecde0 100644
--- a/ext/socket/extconf.rb
+++ b/ext/socket/extconf.rb
@@ -1,9 +1,12 @@
require 'mkmf'
+$INCFLAGS << " -I$(topdir) -I$(top_srcdir)"
+
case RUBY_PLATFORM
-when /(ms|bcc)win32|mingw/
+when /(ms|bcc)win(32|64)|mingw/
test_func = "WSACleanup"
have_library("ws2_32", "WSACleanup")
+ $defs << "-DHAVE_SOCKETPAIR"
when /cygwin/
test_func = "socket"
when /beos/
@@ -33,11 +36,13 @@ if have_header("arpa/inet.h")
end
ipv6 = false
-default_ipv6 = /cygwin|beos|haiku/ !~ RUBY_PLATFORM
+default_ipv6 = /mswin|cygwin|beos|haiku/ !~ RUBY_PLATFORM
if enable_config("ipv6", default_ipv6)
if checking_for("ipv6") {try_link(<<EOF)}
#include <sys/types.h>
+#ifndef _WIN32
#include <sys/socket.h>
+#endif
int
main()
{
@@ -50,6 +55,9 @@ EOF
end
if ipv6
+ if $mingw
+ $CPPFLAGS << " -D_WIN32_WINNT=0x501"
+ end
ipv6lib = nil
class << (fmt = "unknown")
def %(s) s || self end
@@ -92,24 +100,155 @@ end
# doug's fix, NOW add -Dss_family... only if required!
doug = proc {have_struct_member("struct sockaddr_storage", "ss_family", headers)}
if (doug[] or
- with_cppflags($CPPFLAGS + " -Dss_family=__ss_family -Dss_len=__ss_len", &doug))
+ with_cppflags($CPPFLAGS + " -Dss_family=__ss_family", &doug))
$defs[-1] = "-DHAVE_SOCKADDR_STORAGE"
+ doug = proc {have_struct_member("struct sockaddr_storage", "ss_len", headers)}
+ doug[] or with_cppflags($CPPFLAGS + " -Dss_len=__ss_len", &doug)
end
if have_struct_member("struct sockaddr", "sa_len", headers)
$defs[-1] = "-DHAVE_SA_LEN "
end
-have_header("netinet/tcp.h") if not /cygwin/ =~ RUBY_PLATFORM # for cygwin 1.1.5
+have_header("netinet/tcp.h") if /cygwin/ !~ RUBY_PLATFORM # for cygwin 1.1.5
have_header("netinet/udp.h")
+if !have_macro("IPPROTO_IPV6", headers) && have_const("IPPROTO_IPV6", headers)
+ IO.read(File.join(File.dirname(__FILE__), "mkconstants.rb")).sub(/\A.*^__END__$/m, '').split(/\r?\n/).grep(/\AIPPROTO_\w*/){$&}.each {|name|
+ have_const(name, headers) unless $defs.include?("-DHAVE_CONST_#{name.upcase}")
+ }
+end
+
if have_func("sendmsg") | have_func("recvmsg")
have_struct_member('struct msghdr', 'msg_control', ['sys/types.h', 'sys/socket.h'])
have_struct_member('struct msghdr', 'msg_accrights', ['sys/types.h', 'sys/socket.h'])
end
-getaddr_info_ok = enable_config("wide-getaddrinfo") do
- checking_for("wide getaddrinfo") {try_run(<<EOF)}
+if checking_for("recvmsg() with MSG_PEEK allocate file descriptors") {try_run(cpp_include(headers) + <<'EOF')}
+#include <stdlib.h>
+#include <stdio.h>
+#include <string.h>
+#include <sys/types.h>
+#include <sys/stat.h>
+#include <sys/socket.h>
+#include <sys/un.h>
+#include <unistd.h>
+
+int main(int argc, char *argv[])
+{
+ int ps[2], sv[2];
+ int ret;
+ ssize_t ss;
+ int s_fd, r_fd;
+ struct msghdr s_msg, r_msg;
+ union {
+ struct cmsghdr hdr;
+ char dummy[CMSG_SPACE(sizeof(int))];
+ } s_cmsg, r_cmsg;
+ struct iovec s_iov, r_iov;
+ char s_buf[1], r_buf[1];
+ struct stat s_statbuf, r_statbuf;
+
+ ret = pipe(ps);
+ if (ret == -1) { perror("pipe"); exit(EXIT_FAILURE); }
+
+ s_fd = ps[0];
+
+ ret = socketpair(AF_UNIX, SOCK_DGRAM, 0, sv);
+ if (ret == -1) { perror("socketpair"); exit(EXIT_FAILURE); }
+
+ s_msg.msg_name = NULL;
+ s_msg.msg_namelen = 0;
+ s_msg.msg_iov = &s_iov;
+ s_msg.msg_iovlen = 1;
+ s_msg.msg_control = &s_cmsg;
+ s_msg.msg_controllen = CMSG_SPACE(sizeof(int));;
+ s_msg.msg_flags = 0;
+
+ s_iov.iov_base = &s_buf;
+ s_iov.iov_len = sizeof(s_buf);
+
+ s_buf[0] = 'a';
+
+ s_cmsg.hdr.cmsg_len = CMSG_LEN(sizeof(int));
+ s_cmsg.hdr.cmsg_level = SOL_SOCKET;
+ s_cmsg.hdr.cmsg_type = SCM_RIGHTS;
+ memcpy(CMSG_DATA(&s_cmsg.hdr), (char *)&s_fd, sizeof(int));
+
+ ss = sendmsg(sv[0], &s_msg, 0);
+ if (ss == -1) { perror("sendmsg"); exit(EXIT_FAILURE); }
+
+ r_msg.msg_name = NULL;
+ r_msg.msg_namelen = 0;
+ r_msg.msg_iov = &r_iov;
+ r_msg.msg_iovlen = 1;
+ r_msg.msg_control = &r_cmsg;
+ r_msg.msg_controllen = CMSG_SPACE(sizeof(int));
+ r_msg.msg_flags = 0;
+
+ r_iov.iov_base = &r_buf;
+ r_iov.iov_len = sizeof(r_buf);
+
+ r_buf[0] = '0';
+
+ memset(&r_cmsg, 0xff, CMSG_SPACE(sizeof(int)));
+
+ ss = recvmsg(sv[1], &r_msg, MSG_PEEK);
+ if (ss == -1) { perror("recvmsg"); exit(EXIT_FAILURE); }
+
+ if (ss != 1) {
+ fprintf(stderr, "unexpected return value from recvmsg: %ld\n", (long)ss);
+ exit(EXIT_FAILURE);
+ }
+ if (r_buf[0] != 'a') {
+ fprintf(stderr, "unexpected return data from recvmsg: 0x%02x\n", r_buf[0]);
+ exit(EXIT_FAILURE);
+ }
+
+ if (r_msg.msg_controllen < CMSG_LEN(sizeof(int))) {
+ fprintf(stderr, "unexpected: r_msg.msg_controllen < CMSG_LEN(sizeof(int)) not hold: %ld\n",
+ (long)r_msg.msg_controllen);
+ exit(EXIT_FAILURE);
+ }
+ if (r_cmsg.hdr.cmsg_len < CMSG_LEN(sizeof(int))) {
+ fprintf(stderr, "unexpected: r_cmsg.hdr.cmsg_len < CMSG_LEN(sizeof(int)) not hold: %ld\n",
+ (long)r_cmsg.hdr.cmsg_len);
+ exit(EXIT_FAILURE);
+ }
+ memcpy((char *)&r_fd, CMSG_DATA(&r_cmsg.hdr), sizeof(int));
+
+ if (r_fd < 0) {
+ fprintf(stderr, "negative r_fd: %d\n", r_fd);
+ exit(EXIT_FAILURE);
+ }
+
+ if (r_fd == s_fd) {
+ fprintf(stderr, "r_fd and s_fd is same: %d\n", r_fd);
+ exit(EXIT_FAILURE);
+ }
+
+ ret = fstat(s_fd, &s_statbuf);
+ if (ret == -1) { perror("fstat(s_fd)"); exit(EXIT_FAILURE); }
+
+ ret = fstat(r_fd, &r_statbuf);
+ if (ret == -1) { perror("fstat(r_fd)"); exit(EXIT_FAILURE); }
+
+ if (s_statbuf.st_dev != r_statbuf.st_dev ||
+ s_statbuf.st_ino != r_statbuf.st_ino) {
+ fprintf(stderr, "dev/ino doesn't match: s_fd:%ld/%ld r_fd:%ld/%ld\n",
+ (long)s_statbuf.st_dev, (long)s_statbuf.st_ino,
+ (long)r_statbuf.st_dev, (long)r_statbuf.st_ino);
+ exit(EXIT_FAILURE);
+ }
+
+ return EXIT_SUCCESS;
+}
+EOF
+ $defs << "-DFD_PASSING_WORK_WITH_RECVMSG_MSG_PEEK"
+end
+
+getaddr_info_ok = (enable_config("wide-getaddrinfo") && :wide) ||
+ (checking_for("wide getaddrinfo") {try_run(<<EOF)} && :os)
#{cpp_include(headers)}
#include <stdlib.h>
@@ -217,7 +356,6 @@ main()
exit(EXIT_FAILURE);
}
EOF
-end
if ipv6 and not getaddr_info_ok
abort <<EOS
@@ -242,6 +380,23 @@ Fatal: invalid value for --with-lookup-order-hack (expected INET, INET6 or UNSPE
EOS
end
+have_type("struct addrinfo", headers)
+have_func("freehostent")
+have_func("freeaddrinfo")
+if /haiku/ !~ RUBY_PLATFORM and have_func("gai_strerror")
+ if checking_for("gai_strerror() returns const pointer") {!try_compile(<<EOF)}
+#{cpp_include(headers)}
+#include <stdlib.h>
+void
+conftest_gai_strerror_is_const()
+{
+ *gai_strerror(0) = 0;
+}
+EOF
+ $defs << "-DGAI_STRERROR_CONST"
+ end
+end
+
$objs = [
"init.#{$OBJEXT}",
"constants.#{$OBJEXT}",
@@ -259,34 +414,26 @@ $objs = [
"raddrinfo.#{$OBJEXT}"
]
-unless getaddr_info_ok and have_func("getnameinfo", headers) and have_func("getaddrinfo", headers)
+if getaddr_info_ok == :wide or
+ !have_func("getnameinfo", headers) or !have_func("getaddrinfo", headers)
if have_struct_member("struct in6_addr", "s6_addr8", headers)
- $defs[-1] = "-DHAVE_ADDR8"
+ $defs[-1] = "s6_addr=s6_addr8"
+ end
+ if ipv6 == "kame" && have_struct_member("struct in6_addr", "s6_addr32", headers)
+ $defs[-1] = "-DFAITH"
end
$CPPFLAGS="-I. "+$CPPFLAGS
$objs += ["getaddrinfo.#{$OBJEXT}"]
$objs += ["getnameinfo.#{$OBJEXT}"]
$defs << "-DGETADDRINFO_EMU"
- have_func("inet_ntop") or have_func("inet_ntoa")
- have_func("inet_pton") or have_func("inet_aton")
- have_func("getservbyport")
- if have_func("gai_strerror")
- unless checking_for("gai_strerror() returns const pointer") {!try_compile(<<EOF)}
-#{cpp_include(headers)}
-#include <stdlib.h>
-void
-conftest_gai_strerror_is_const()
-{
- *gai_strerror(0) = 0;
-}
-EOF
- $defs << "-DGAI_STRERROR_CONST"
- end
- end
- have_header("arpa/nameser.h")
- have_header("resolv.h")
end
+have_func("inet_ntop") or have_func("inet_ntoa")
+have_func("inet_pton") or have_func("inet_aton")
+have_func("getservbyport")
+have_header("arpa/nameser.h")
+have_header("resolv.h")
+
have_header("ifaddrs.h")
have_func("getifaddrs")
have_header("sys/ioctl.h")
@@ -305,14 +452,11 @@ have_header("sys/uio.h")
have_type("struct in_pktinfo", headers) {|src|
src.sub(%r'^/\*top\*/', '\1'"\n#if defined(IPPROTO_IP) && defined(IP_PKTINFO)") <<
"#else\n" << "#error\n" << ">>>>>> no in_pktinfo <<<<<<\n" << "#endif\n"
-}
+} and have_struct_member("struct in_pktinfo", "ipi_spec_dst", headers)
have_type("struct in6_pktinfo", headers) {|src|
src.sub(%r'^/\*top\*/', '\1'"\n#if defined(IPPROTO_IPV6) && defined(IPV6_PKTINFO)") <<
"#else\n" << "#error\n" << ">>>>>> no in6_pktinfo <<<<<<\n" << "#endif\n"
}
-if have_struct_member("struct in_pktinfo", "ipi_spec_dst", headers)
- $defs[-1] = "-DHAVE_IPI_SPEC_DST"
-end
have_type("struct sockcred", headers)
have_type("struct cmsgcred", headers)
@@ -322,12 +466,21 @@ have_func("getpeereid")
have_header("ucred.h", headers)
have_func("getpeerucred")
+have_func("if_indextoname")
+
+have_type("struct ip_mreq", headers) # 4.4BSD
+have_type("struct ip_mreqn", headers) # Linux 2.4
+have_type("struct ipv6_mreq", headers) # RFC 3493
+
+# workaround for recent Windows SDK
+$defs << "-DIPPROTO_IPV6=IPPROTO_IPV6" if $defs.include?("-DHAVE_CONST_IPPROTO_IPV6") && !have_macro("IPPROTO_IPV6")
+
$distcleanfiles << "constants.h" << "constdefs.*"
if have_func(test_func)
have_func("hsterror")
have_func("getipnodebyname") or have_func("gethostbyname2")
- have_func("socketpair")
+ have_func("socketpair") unless $defs.include?("-DHAVE_SOCKETPAIR")
unless have_func("gethostname")
have_func("uname")
end
diff --git a/ext/socket/getaddrinfo.c b/ext/socket/getaddrinfo.c
index 53656b4c02..aa966b3c52 100644
--- a/ext/socket/getaddrinfo.c
+++ b/ext/socket/getaddrinfo.c
@@ -1,7 +1,7 @@
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
* All rights reserved.
- *
+ *
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
@@ -13,7 +13,7 @@
* 3. Neither the name of the project nor the names of its contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
- *
+ *
* THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
@@ -45,7 +45,7 @@
#include <sys/types.h>
#ifndef _WIN32
#include <sys/param.h>
-#if defined(__BEOS__) && !defined(__HAIKU__) && !defined(BONE)
+#if defined(__BEOS__) && !defined(__HAIKU__) && !defined(BONE)
# include <net/socket.h>
#else
# include <sys/socket.h>
@@ -83,10 +83,6 @@
#include "addrinfo.h"
#include "sockport.h"
-#if defined(__KAME__) && defined(INET6)
-# define FAITH
-#endif
-
#define SUCCESS 0
#define ANY 0
#define YES 1
@@ -101,7 +97,7 @@ static const char in_addrany[] = { 0, 0, 0, 0 };
static const char in6_addrany[] = {
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0
};
-static const char in_loopback[] = { 127, 0, 0, 1 };
+static const char in_loopback[] = { 127, 0, 0, 1 };
static const char in6_loopback[] = {
0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1
};
@@ -118,7 +114,7 @@ static const struct afd {
int a_socklen;
int a_off;
const char *a_addrany;
- const char *a_loopback;
+ const char *a_loopback;
} afdl [] = {
#ifdef INET6
#define N_INET6 0
@@ -149,7 +145,7 @@ static int get_name __P((const char *, const struct afd *,
static int get_addr __P((const char *, int, struct addrinfo **,
struct addrinfo *, int));
static int str_isnumber __P((const char *));
-
+
static const char *const ai_errlist[] = {
"success.",
"address family for hostname not supported.", /* EAI_ADDRFAMILY */
@@ -186,12 +182,12 @@ if (pai->ai_flags & AI_CANONNAME) {\
error = EAI_MEMORY;\
goto free;\
}\
- memcpy(ai, pai, sizeof(struct addrinfo));\
+ memcpy((ai), pai, sizeof(struct addrinfo));\
(ai)->ai_addr = (struct sockaddr *)((ai) + 1);\
memset((ai)->ai_addr, 0, (afd)->a_socklen);\
SET_SA_LEN((ai)->ai_addr, (ai)->ai_addrlen = (afd)->a_socklen);\
(ai)->ai_addr->sa_family = (ai)->ai_family = (afd)->a_af;\
- ((struct sockinet *)(ai)->ai_addr)->si_port = port;\
+ ((struct sockinet *)(ai)->ai_addr)->si_port = (port);\
p = (char *)((ai)->ai_addr);\
memcpy(p + (afd)->a_off, (addr), (afd)->a_addrlen);\
}
@@ -306,7 +302,7 @@ getaddrinfo(const char *hostname, const char *servname, const struct addrinfo *h
pai->ai_addr = NULL;
pai->ai_next = NULL;
port = ANY;
-
+
if (hostname == NULL && servname == NULL)
return EAI_NONAME;
if (hints) {
@@ -413,7 +409,7 @@ getaddrinfo(const char *hostname, const char *servname, const struct addrinfo *h
ERR(EAI_PROTOCOL); /*xxx*/
}
}
-
+
/*
* hostname == NULL.
* passive socket -> anyaddr (0.0.0.0 or ::)
@@ -462,7 +458,7 @@ getaddrinfo(const char *hostname, const char *servname, const struct addrinfo *h
else
ERR(EAI_FAMILY);
}
-
+
/* hostname as numeric name */
for (i = 0; afdl[i].a_af; i++) {
if (inet_pton(afdl[i].a_af, hostname, pton)) {
@@ -482,17 +478,13 @@ getaddrinfo(const char *hostname, const char *servname, const struct addrinfo *h
break;
#ifdef INET6
case AF_INET6:
-#ifdef HAVE_ADDR8
- pfx = ((struct in6_addr *)pton)->s6_addr8[0];
-#else
pfx = ((struct in6_addr *)pton)->s6_addr[0];
-#endif
if (pfx == 0 || pfx == 0xfe || pfx == 0xff)
pai->ai_flags &= ~AI_CANONNAME;
break;
#endif
}
-
+
if (pai->ai_family == afdl[i].a_af ||
pai->ai_family == PF_UNSPEC) {
if (! (pai->ai_flags & AI_CANONNAME)) {
@@ -510,7 +502,7 @@ getaddrinfo(const char *hostname, const char *servname, const struct addrinfo *h
*/
get_name(pton, &afdl[i], &top, pton, pai, port);
goto good;
- } else
+ } else
ERR(EAI_FAMILY); /*xxx*/
}
}
@@ -557,7 +549,7 @@ get_name(const char *addr, const struct afd *afd, struct addrinfo **res, char *n
GET_CANONNAME(cur, hp->h_name);
} else
GET_AI(cur, afd, numaddr, port);
-
+
#ifdef INET6
if (hp)
freehostent(hp);
@@ -620,7 +612,7 @@ get_addr(const char *hostname, int af, struct addrinfo **res, struct addrinfo *p
if ((hp->h_name == NULL) || (hp->h_name[0] == 0) ||
(hp->h_addr_list[0] == NULL))
ERR(EAI_FAIL);
-
+
for (i = 0; (ap = hp->h_addr_list[i]) != NULL; i++) {
switch (af) {
#ifdef INET6
@@ -651,9 +643,10 @@ get_addr(const char *hostname, int af, struct addrinfo **res, struct addrinfo *p
GET_AI(cur->ai_next, &afdl[N_INET6], ap, port);
in6 = &((struct sockaddr_in6 *)cur->ai_next->ai_addr)->sin6_addr;
- memcpy(&in6->s6_addr32[0], &faith_prefix,
- sizeof(struct in6_addr) - sizeof(struct in_addr));
- memcpy(&in6->s6_addr32[3], ap, sizeof(struct in_addr));
+ memcpy(&in6->s6_addr, &faith_prefix,
+ sizeof(struct in6_addr) - sizeof(struct in_addr));
+ memcpy(&in6->s6_addr + sizeof(struct in_addr), ap,
+ sizeof(struct in_addr));
} else
#endif /* FAITH */
GET_AI(cur->ai_next, afd, ap, port);
diff --git a/ext/socket/getnameinfo.c b/ext/socket/getnameinfo.c
index 689b91c291..d1d5ff6c73 100644
--- a/ext/socket/getnameinfo.c
+++ b/ext/socket/getnameinfo.c
@@ -1,7 +1,7 @@
/*
* Copyright (C) 1995, 1996, 1997, and 1998 WIDE Project.
* All rights reserved.
- *
+ *
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
@@ -13,7 +13,7 @@
* 3. Neither the name of the project nor the names of its contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
- *
+ *
* THIS SOFTWARE IS PROVIDED BY THE PROJECT AND CONTRIBUTORS ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
@@ -35,6 +35,9 @@
*/
#include "ruby/config.h"
+#ifdef RUBY_EXTCONF_H
+#include RUBY_EXTCONF_H
+#endif
#include <stdio.h>
#include <sys/types.h>
#ifndef _WIN32
@@ -111,9 +114,6 @@ static struct afd {
#define ENI_FAMILY 5
#define ENI_SALEN 6
-#ifdef __HAIKU__
-#define HAVE_INET_NTOP
-#endif
#ifndef HAVE_INET_NTOP
static const char *
inet_ntop(int af, const void *addr, char *numaddr, size_t numaddr_len)
@@ -133,7 +133,7 @@ inet_ntop(int af, const void *addr, char *numaddr, size_t numaddr_len)
#endif
int
-getnameinfo(const struct sockaddr *sa, size_t salen, char *host, size_t hostlen, char *serv, size_t servlen, int flags)
+getnameinfo(const struct sockaddr *sa, socklen_t salen, char *host, socklen_t hostlen, char *serv, socklen_t servlen, int flags)
{
struct afd *afd;
struct hostent *hp;
@@ -153,7 +153,7 @@ getnameinfo(const struct sockaddr *sa, size_t salen, char *host, size_t hostlen,
len = SA_LEN(sa);
if (len != salen) return ENI_SALEN;
-
+
family = sa->sa_family;
for (i = 0; afdl[i].a_af; i++)
if (afdl[i].a_af == family) {
@@ -161,10 +161,10 @@ getnameinfo(const struct sockaddr *sa, size_t salen, char *host, size_t hostlen,
goto found;
}
return ENI_FAMILY;
-
+
found:
if (len != afd->a_socklen) return ENI_SALEN;
-
+
port = ((struct sockinet *)sa)->si_port; /* network byte order */
addr = (char *)sa + afd->a_off;
@@ -196,7 +196,7 @@ getnameinfo(const struct sockaddr *sa, size_t salen, char *host, size_t hostlen,
flags |= NI_NUMERICHOST;
v4a >>= IN_CLASSA_NSHIFT;
if (v4a == 0)
- flags |= NI_NUMERICHOST;
+ flags |= NI_NUMERICHOST;
break;
#ifdef INET6
case AF_INET6:
diff --git a/ext/socket/init.c b/ext/socket/init.c
index 81237536c9..0a2365850f 100644
--- a/ext/socket/init.c
+++ b/ext/socket/init.c
@@ -28,7 +28,7 @@ VALUE rb_eSocket;
VALUE rb_cSOCKSSocket;
#endif
-int rsock_do_not_reverse_lookup = 0;
+int rsock_do_not_reverse_lookup = 1;
void
rsock_raise_socket_error(const char *reason, int error)
@@ -43,6 +43,18 @@ VALUE
rsock_init_sock(VALUE sock, int fd)
{
rb_io_t *fp;
+#ifndef _WIN32
+ struct stat sbuf;
+
+ if (fstat(fd, &sbuf) < 0)
+ rb_sys_fail(0);
+ rb_update_max_fd(fd);
+ if (!S_ISSOCK(sbuf.st_mode))
+ rb_raise(rb_eArgError, "not a socket file descriptor");
+#else
+ if (!rb_w32_is_socket(fd))
+ rb_raise(rb_eArgError, "not a socket file descriptor");
+#endif
MakeOpenFile(sock, fp);
fp->fd = fd;
@@ -110,7 +122,7 @@ rsock_s_recvfrom(VALUE sock, int argc, VALUE *argv, enum sock_recv_type from)
rb_raise(rb_eIOError, "recv for buffered IO");
}
arg.fd = fptr->fd;
- arg.alen = sizeof(arg.buf);
+ arg.alen = (socklen_t)sizeof(arg.buf);
arg.str = str = rb_tainted_str_new(0, buflen);
klass = RBASIC(str)->klass;
@@ -118,7 +130,7 @@ rsock_s_recvfrom(VALUE sock, int argc, VALUE *argv, enum sock_recv_type from)
while (rb_io_check_closed(fptr),
rb_thread_wait_fd(arg.fd),
- (slen = BLOCKING_REGION(recvfrom_blocking, &arg)) < 0) {
+ (slen = BLOCKING_REGION_FD(recvfrom_blocking, &arg)) < 0) {
if (!rb_io_wait_readable(fptr->fd)) {
rb_sys_fail("recvfrom(2)");
}
@@ -163,7 +175,7 @@ rsock_s_recvfrom_nonblock(VALUE sock, int argc, VALUE *argv, enum sock_recv_type
rb_io_t *fptr;
VALUE str;
struct sockaddr_storage buf;
- socklen_t alen = sizeof buf;
+ socklen_t alen = (socklen_t)sizeof buf;
VALUE len, flg;
long buflen;
long slen;
@@ -239,78 +251,52 @@ rsock_socket(int domain, int type, int proto)
fd = socket(domain, type, proto);
}
}
+ if (0 <= fd)
+ rb_update_max_fd(fd);
return fd;
}
static int
-wait_connectable0(int fd, rb_fdset_t *fds_w, rb_fdset_t *fds_e)
+wait_connectable(int fd)
{
int sockerr;
socklen_t sockerrlen;
+ int revents;
+ int ret;
for (;;) {
- rb_fd_zero(fds_w);
- rb_fd_zero(fds_e);
-
- rb_fd_set(fd, fds_w);
- rb_fd_set(fd, fds_e);
-
- rb_thread_select(fd+1, 0, rb_fd_ptr(fds_w), rb_fd_ptr(fds_e), 0);
+ /*
+ * Stevens book says, succuessful finish turn on RB_WAITFD_OUT and
+ * failure finish turn on both RB_WAITFD_IN and RB_WAITFD_OUT.
+ */
+ revents = rb_wait_for_single_fd(fd, RB_WAITFD_IN|RB_WAITFD_OUT, NULL);
+
+ if (revents & (RB_WAITFD_IN|RB_WAITFD_OUT)) {
+ sockerrlen = (socklen_t)sizeof(sockerr);
+ ret = getsockopt(fd, SOL_SOCKET, SO_ERROR, (void *)&sockerr, &sockerrlen);
+
+ /*
+ * Solaris getsockopt(SO_ERROR) return -1 and set errno
+ * in getsockopt(). Let's return immediately.
+ */
+ if (ret < 0)
+ break;
+ if (sockerr == 0)
+ continue; /* workaround for winsock */
- if (rb_fd_isset(fd, fds_w)) {
- return 0;
+ /* BSD and Linux use sockerr. */
+ errno = sockerr;
+ ret = -1;
+ break;
}
- else if (rb_fd_isset(fd, fds_e)) {
- sockerrlen = sizeof(sockerr);
- if (getsockopt(fd, SOL_SOCKET, SO_ERROR, (void *)&sockerr,
- &sockerrlen) == 0) {
- if (sockerr == 0)
- continue; /* workaround for winsock */
- errno = sockerr;
- }
- return -1;
+
+ if ((revents & (RB_WAITFD_IN|RB_WAITFD_OUT)) == RB_WAITFD_OUT) {
+ ret = 0;
+ break;
}
}
-}
-
-struct wait_connectable_arg {
- int fd;
- rb_fdset_t fds_w;
- rb_fdset_t fds_e;
-};
-#ifdef HAVE_RB_FD_INIT
-static VALUE
-try_wait_connectable(VALUE arg)
-{
- struct wait_connectable_arg *p = (struct wait_connectable_arg *)arg;
- return (VALUE)wait_connectable0(p->fd, &p->fds_w, &p->fds_e);
-}
-
-static VALUE
-wait_connectable_ensure(VALUE arg)
-{
- struct wait_connectable_arg *p = (struct wait_connectable_arg *)arg;
- rb_fd_term(&p->fds_w);
- rb_fd_term(&p->fds_e);
- return Qnil;
-}
-#endif
-
-static int
-wait_connectable(int fd)
-{
- struct wait_connectable_arg arg;
-
- rb_fd_init(&arg.fds_w);
- rb_fd_init(&arg.fds_e);
-#ifdef HAVE_RB_FD_INIT
- arg.fd = fd;
- return (int)rb_ensure(try_wait_connectable, (VALUE)&arg,
- wait_connectable_ensure,(VALUE)&arg);
-#else
- return wait_connectable0(fd, &arg.fds_w, &arg.fds_e);
-#endif
+ return ret;
}
#ifdef __CYGWIN__
@@ -369,15 +355,21 @@ rsock_connect(int fd, const struct sockaddr *sockaddr, int len, int socks)
if (socks) func = socks_connect_blocking;
#endif
for (;;) {
- status = (int)BLOCKING_REGION(func, &arg);
+ status = (int)BLOCKING_REGION_FD(func, &arg);
if (status < 0) {
switch (errno) {
+ case EINTR:
+#if defined(ERESTART)
+ case ERESTART:
+#endif
+ continue;
+
case EAGAIN:
#ifdef EINPROGRESS
case EINPROGRESS:
#endif
#if WAIT_IN_PROGRESS > 0
- sockerrlen = sizeof(sockerr);
+ sockerrlen = (socklen_t)sizeof(sockerr);
status = getsockopt(fd, SOL_SOCKET, SO_ERROR, (void *)&sockerr, &sockerrlen);
if (status) break;
if (sockerr) {
@@ -407,7 +399,7 @@ rsock_connect(int fd, const struct sockaddr *sockaddr, int len, int socks)
* some platforms, need to check true error
* status.
*/
- sockerrlen = sizeof(sockerr);
+ sockerrlen = (socklen_t)sizeof(sockerr);
status = getsockopt(fd, SOL_SOCKET, SO_ERROR, (void *)&sockerr, &sockerrlen);
if (!status && !sockerr) {
struct timeval tv = {0, 100000};
@@ -474,6 +466,7 @@ rsock_s_accept_nonblock(VALUE klass, rb_io_t *fptr, struct sockaddr *sockaddr, s
}
rb_sys_fail("accept(2)");
}
+ rb_update_max_fd(fd2);
make_fd_nonblock(fd2);
return rsock_init_sock(rb_obj_alloc(klass), fd2);
}
@@ -504,7 +497,7 @@ rsock_s_accept(VALUE klass, int fd, struct sockaddr *sockaddr, socklen_t *len)
arg.len = len;
retry:
rb_thread_wait_fd(fd);
- fd2 = BLOCKING_REGION(accept_blocking, &arg);
+ fd2 = (int)BLOCKING_REGION_FD(accept_blocking, &arg);
if (fd2 < 0) {
switch (errno) {
case EMFILE:
@@ -520,6 +513,7 @@ rsock_s_accept(VALUE klass, int fd, struct sockaddr *sockaddr, socklen_t *len)
}
rb_sys_fail(0);
}
+ rb_update_max_fd(fd2);
if (!klass) return INT2NUM(fd2);
return rsock_init_sock(rb_obj_alloc(klass), fd2);
}
@@ -528,31 +522,31 @@ int
rsock_getfamily(int sockfd)
{
struct sockaddr_storage ss;
- socklen_t sslen = sizeof(ss);
+ socklen_t sslen = (socklen_t)sizeof(ss);
ss.ss_family = AF_UNSPEC;
if (getsockname(sockfd, (struct sockaddr*)&ss, &sslen) < 0)
- rb_sys_fail("getsockname(2)");
+ return AF_UNSPEC;
return ss.ss_family;
}
-/*
- * SocketError is the error class for socket.
- */
void
-Init_socket_init()
+rsock_init_socket_init()
{
+ /*
+ * SocketError is the error class for socket.
+ */
rb_eSocket = rb_define_class("SocketError", rb_eStandardError);
- Init_ipsocket();
- Init_tcpsocket();
- Init_tcpserver();
- Init_sockssocket();
- Init_udpsocket();
- Init_unixsocket();
- Init_unixserver();
- Init_sockopt();
- Init_ancdata();
- Init_addrinfo();
- Init_socket_constants();
+ rsock_init_ipsocket();
+ rsock_init_tcpsocket();
+ rsock_init_tcpserver();
+ rsock_init_sockssocket();
+ rsock_init_udpsocket();
+ rsock_init_unixsocket();
+ rsock_init_unixserver();
+ rsock_init_sockopt();
+ rsock_init_ancdata();
+ rsock_init_addrinfo();
+ rsock_init_socket_constants();
}
diff --git a/ext/socket/ipsocket.c b/ext/socket/ipsocket.c
index 78c85766ee..2217fffc9d 100644
--- a/ext/socket/ipsocket.c
+++ b/ext/socket/ipsocket.c
@@ -58,6 +58,10 @@ init_inetsock_internal(struct inetsock_arg *arg)
arg->fd = fd = -1;
for (res = arg->remote.res; res; res = res->ai_next) {
+#if !defined(INET6) && defined(AF_INET6)
+ if (res->ai_family == AF_INET6)
+ continue;
+#endif
status = rsock_socket(res->ai_family,res->ai_socktype,res->ai_protocol);
syscall = "socket(2)";
fd = status;
@@ -69,7 +73,7 @@ init_inetsock_internal(struct inetsock_arg *arg)
#if !defined(_WIN32) && !defined(__CYGWIN__)
status = 1;
setsockopt(fd, SOL_SOCKET, SO_REUSEADDR,
- (char*)&status, sizeof(status));
+ (char*)&status, (socklen_t)sizeof(status));
#endif
status = bind(fd, res->ai_addr, res->ai_addrlen);
syscall = "bind(2)";
@@ -100,8 +104,13 @@ init_inetsock_internal(struct inetsock_arg *arg)
arg->fd = -1;
- if (type == INET_SERVER)
- listen(fd, 5);
+ if (type == INET_SERVER) {
+ status = listen(fd, 5);
+ if (status < 0) {
+ close(fd);
+ rb_sys_fail("listen(2)");
+ }
+ }
/* create new instance */
return rsock_init_sock(arg->sock, fd);
@@ -125,61 +134,108 @@ rsock_init_inetsock(VALUE sock, VALUE remote_host, VALUE remote_serv,
inetsock_cleanup, (VALUE)&arg);
}
+static ID id_numeric, id_hostname;
+
+int
+rsock_revlookup_flag(VALUE revlookup, int *norevlookup)
+{
+#define return_norevlookup(x) {*norevlookup = (x); return 1;}
+ ID id;
+
+ switch (revlookup) {
+ case Qtrue: return_norevlookup(0);
+ case Qfalse: return_norevlookup(1);
+ case Qnil: break;
+ default:
+ Check_Type(revlookup, T_SYMBOL);
+ id = SYM2ID(revlookup);
+ if (id == id_numeric) return_norevlookup(1);
+ if (id == id_hostname) return_norevlookup(0);
+ rb_raise(rb_eArgError, "invalid reverse_lookup flag: :%s", rb_id2name(id));
+ }
+ return 0;
+#undef return_norevlookup
+}
+
/*
* call-seq:
- * ipsocket.addr => [address_family, port, hostname, numeric_address]
+ * ipsocket.addr([reverse_lookup]) => [address_family, port, hostname, numeric_address]
*
* Returns the local address as an array which contains
- * address_family, port, hostname and numeric_address.
+ * address_family, port, hostname and numeric_address.
*
+ * If +reverse_lookup+ is +true+ or +:hostname+,
* hostname is obtained from numeric_address using reverse lookup.
- * If ipsocket.do_not_reverse_lookup is true,
+ * Or if it is +false+, or +:numeric+,
* hostname is same as numeric_address.
+ * Or if it is +nil+ or ommitted, obeys to +ipsocket.do_not_reverse_lookup+.
+ * See +Socket.getaddrinfo+ also.
*
* TCPSocket.open("www.ruby-lang.org", 80) {|sock|
* p sock.addr #=> ["AF_INET", 49429, "hal", "192.168.0.128"]
+ * p sock.addr(true) #=> ["AF_INET", 49429, "hal", "192.168.0.128"]
+ * p sock.addr(false) #=> ["AF_INET", 49429, "192.168.0.128", "192.168.0.128"]
+ * p sock.addr(:hostname) #=> ["AF_INET", 49429, "hal", "192.168.0.128"]
+ * p sock.addr(:numeric) #=> ["AF_INET", 49429, "192.168.0.128", "192.168.0.128"]
* }
*
*/
static VALUE
-ip_addr(VALUE sock)
+ip_addr(int argc, VALUE *argv, VALUE sock)
{
rb_io_t *fptr;
struct sockaddr_storage addr;
- socklen_t len = sizeof addr;
+ socklen_t len = (socklen_t)sizeof addr;
+ int norevlookup;
GetOpenFile(sock, fptr);
+ if (argc < 1 || !rsock_revlookup_flag(argv[0], &norevlookup))
+ norevlookup = fptr->mode & FMODE_NOREVLOOKUP;
if (getsockname(fptr->fd, (struct sockaddr*)&addr, &len) < 0)
rb_sys_fail("getsockname(2)");
- return rsock_ipaddr((struct sockaddr*)&addr, fptr->mode & FMODE_NOREVLOOKUP);
+ return rsock_ipaddr((struct sockaddr*)&addr, norevlookup);
}
/*
* call-seq:
- * ipsocket.peeraddr => [address_family, port, hostname, numeric_address]
+ * ipsocket.peeraddr([reverse_lookup]) => [address_family, port, hostname, numeric_address]
*
* Returns the remote address as an array which contains
- * address_family, port, hostname and numeric_address.
- * It is defined for connection oritented socket such as TCPSocket.
+ * address_family, port, hostname and numeric_address.
+ * It is defined for connection oriented socket such as TCPSocket.
+ *
+ * If +reverse_lookup+ is +true+ or +:hostname+,
+ * hostname is obtained from numeric_address using reverse lookup.
+ * Or if it is +false+, or +:numeric+,
+ * hostname is same as numeric_address.
+ * Or if it is +nil+ or ommitted, obeys to +ipsocket.do_not_reverse_lookup+.
+ * See +Socket.getaddrinfo+ also.
*
* TCPSocket.open("www.ruby-lang.org", 80) {|sock|
* p sock.peeraddr #=> ["AF_INET", 80, "carbon.ruby-lang.org", "221.186.184.68"]
+ * p sock.peeraddr(true) #=> ["AF_INET", 80, "221.186.184.68", "221.186.184.68"]
+ * p sock.peeraddr(false) #=> ["AF_INET", 80, "221.186.184.68", "221.186.184.68"]
+ * p sock.peeraddr(:hostname) #=> ["AF_INET", 80, "carbon.ruby-lang.org", "221.186.184.68"]
+ * p sock.peeraddr(:numeric) #=> ["AF_INET", 80, "221.186.184.68", "221.186.184.68"]
* }
*
*/
static VALUE
-ip_peeraddr(VALUE sock)
+ip_peeraddr(int argc, VALUE *argv, VALUE sock)
{
rb_io_t *fptr;
struct sockaddr_storage addr;
- socklen_t len = sizeof addr;
+ socklen_t len = (socklen_t)sizeof addr;
+ int norevlookup;
GetOpenFile(sock, fptr);
+ if (argc < 1 || !rsock_revlookup_flag(argv[0], &norevlookup))
+ norevlookup = fptr->mode & FMODE_NOREVLOOKUP;
if (getpeername(fptr->fd, (struct sockaddr*)&addr, &len) < 0)
rb_sys_fail("getpeername(2)");
- return rsock_ipaddr((struct sockaddr*)&addr, fptr->mode & FMODE_NOREVLOOKUP);
+ return rsock_ipaddr((struct sockaddr*)&addr, norevlookup);
}
/*
@@ -201,7 +257,7 @@ ip_peeraddr(VALUE sock)
* u2 = UDPSocket.new
* u2.send "uuuu", 0, "127.0.0.1", 4913
* p u1.recvfrom(10) #=> ["uuuu", ["AF_INET", 33230, "localhost", "127.0.0.1"]]
- *
+ *
*/
static VALUE
ip_recvfrom(int argc, VALUE *argv, VALUE sock)
@@ -213,7 +269,7 @@ ip_recvfrom(int argc, VALUE *argv, VALUE sock)
* call-seq:
* IPSocket.getaddress(host) => ipaddress
*
- * Lookups IP address of _host_.
+ * Lookups the IP address of _host_.
*
* IPSocket.getaddress("localhost") #=> "127.0.0.1"
* IPSocket.getaddress("ip6-localhost") #=> "::1"
@@ -232,17 +288,21 @@ ip_s_getaddress(VALUE obj, VALUE host)
return rsock_make_ipaddr((struct sockaddr*)&addr);
}
-/*
- * IPSocket class
- */
void
-Init_ipsocket(void)
+rsock_init_ipsocket(void)
{
+ /*
+ * Document-class: IPSocket < BasicSocket
+ *
+ * IPSocket is the super class of TCPSocket and UDPSocket.
+ */
rb_cIPSocket = rb_define_class("IPSocket", rb_cBasicSocket);
- rb_define_method(rb_cIPSocket, "addr", ip_addr, 0);
- rb_define_method(rb_cIPSocket, "peeraddr", ip_peeraddr, 0);
+ rb_define_method(rb_cIPSocket, "addr", ip_addr, -1);
+ rb_define_method(rb_cIPSocket, "peeraddr", ip_peeraddr, -1);
rb_define_method(rb_cIPSocket, "recvfrom", ip_recvfrom, -1);
rb_define_singleton_method(rb_cIPSocket, "getaddress", ip_s_getaddress, 1);
rb_undef_method(rb_cIPSocket, "getpeereid");
+ id_numeric = rb_intern_const("numeric");
+ id_hostname = rb_intern_const("hostname");
}
diff --git a/ext/socket/lib/socket.rb b/ext/socket/lib/socket.rb
index 2355f33c17..d311eed28d 100644
--- a/ext/socket/lib/socket.rb
+++ b/ext/socket/lib/socket.rb
@@ -15,7 +15,7 @@ class Addrinfo
if args.empty?
raise ArgumentError, "no address specified"
elsif Addrinfo === args.first
- raise ArgumentError, "too man argument" if args.length != 1
+ raise ArgumentError, "too many arguments" if args.length != 1
elsif self.ip?
raise ArgumentError, "IP address needs host and port but #{args.length} arguments given" if args.length != 2
host, port = args
@@ -29,7 +29,13 @@ class Addrinfo
end
end
- def connect_internal(local_addrinfo)
+ # creates a new Socket connected to the address of +local_addrinfo+.
+ #
+ # If no arguments are given, the address of the socket is not bound.
+ #
+ # If a block is given the created socket is yielded for each address.
+ #
+ def connect_internal(local_addrinfo) # :yields: socket
sock = Socket.new(self.pfamily, self.socktype, self.protocol)
begin
sock.ipv6only! if self.ipv6?
@@ -58,14 +64,14 @@ class Addrinfo
# The socket is returned otherwise.
#
# Addrinfo.tcp("www.ruby-lang.org", 80).connect_from("0.0.0.0", 4649) {|s|
- # s.print "GET / HTTP/1.0\r\n\r\n"
- # p s.read
+ # s.print "GET / HTTP/1.0\r\nHost: www.ruby-lang.org\r\n\r\n"
+ # puts s.read
# }
#
# # Addrinfo object can be taken for the argument.
# Addrinfo.tcp("www.ruby-lang.org", 80).connect_from(Addrinfo.tcp("0.0.0.0", 4649)) {|s|
- # s.print "GET / HTTP/1.0\r\n\r\n"
- # p s.read
+ # s.print "GET / HTTP/1.0\r\nHost: www.ruby-lang.org\r\n\r\n"
+ # puts s.read
# }
#
def connect_from(*local_addr_args, &block)
@@ -78,8 +84,8 @@ class Addrinfo
# The socket is returned otherwise.
#
# Addrinfo.tcp("www.ruby-lang.org", 80).connect {|s|
- # s.print "GET / HTTP/1.0\r\n\r\n"
- # p s.read
+ # s.print "GET / HTTP/1.0\r\nHost: www.ruby-lang.org\r\n\r\n"
+ # puts s.read
# }
#
def connect(&block)
@@ -92,8 +98,8 @@ class Addrinfo
# The socket is returned otherwise.
#
# Addrinfo.tcp("0.0.0.0", 4649).connect_to("www.ruby-lang.org", 80) {|s|
- # s.print "GET / HTTP/1.0\r\n\r\n"
- # p s.read
+ # s.print "GET / HTTP/1.0\r\nHost: www.ruby-lang.org\r\n\r\n"
+ # puts s.read
# }
#
def connect_to(*remote_addr_args, &block)
@@ -158,7 +164,7 @@ class Addrinfo
end
end
-class BasicSocket
+class BasicSocket < IO
# Returns an address of the socket suitable for connect in the local machine.
#
# This method returns _self_.local_address, except following condition.
@@ -192,6 +198,8 @@ class BasicSocket
addr = Addrinfo.new(["AF_INET6", addr.ip_port, nil, "::1"], addr.pfamily, addr.socktype, addr.protocol)
elsif addr.ip_address == "0.0.0.0" # MacOS X 10.4 returns "a.b.c.d" for IPv4-mapped IPv6 address.
addr = Addrinfo.new(["AF_INET6", addr.ip_port, nil, "::1"], addr.pfamily, addr.socktype, addr.protocol)
+ elsif addr.ip_address == "::ffff:0.0.0.0" # MacOS X 10.6 returns "::ffff:a.b.c.d" for IPv4-mapped IPv6 address.
+ addr = Addrinfo.new(["AF_INET6", addr.ip_port, nil, "::1"], addr.pfamily, addr.socktype, addr.protocol)
end
elsif defined?(Socket::AF_UNIX) && afamily == Socket::AF_UNIX
raise SocketError, "unbound Unix socket" if addr.unix_path == ""
@@ -200,7 +208,7 @@ class BasicSocket
end
end
-class Socket
+class Socket < BasicSocket
# enable the socket option IPV6_V6ONLY if IPV6_V6ONLY is available.
def ipv6only!
if defined? Socket::IPV6_V6ONLY
@@ -208,7 +216,7 @@ class Socket
end
end
- # creates a new socket object connected to host:port using TCP.
+ # creates a new socket object connected to host:port using TCP/IP.
#
# If local_host:local_port is given,
# the socket is bound to it.
@@ -220,9 +228,9 @@ class Socket
# If no block is given, the socket is returned.
#
# Socket.tcp("www.ruby-lang.org", 80) {|sock|
- # sock.print "GET / HTTP/1.0\r\n\r\n"
+ # sock.print "GET / HTTP/1.0\r\nHost: www.ruby-lang.org\r\n\r\n"
# sock.close_write
- # print sock.read
+ # puts sock.read
# }
#
def self.tcp(host, port, local_host=nil, local_port=nil) # :yield: socket
@@ -268,6 +276,7 @@ class Socket
end
end
+ # :stopdoc:
def self.ip_sockets_port0(ai_list, reuseaddr)
begin
sockets = []
@@ -312,13 +321,14 @@ class Socket
}
sockets
ensure
- sockets.each {|s| s.close if !s.closed? } if $!
+ sockets.each {|s| s.close if !s.closed? } if $! && sockets
end
class << self
private :tcp_server_sockets_port0
end
+ # :startdoc:
- # creates TCP server sockets for _host_ and _port_.
+ # creates TCP/IP server sockets for _host_ and _port_.
# _host_ is optional.
#
# If no block given,
@@ -404,7 +414,7 @@ class Socket
readable.each {|r|
begin
sock, addr = r.accept_nonblock
- rescue Errno::EWOULDBLOCK
+ rescue IO::WaitReadable
next
end
yield sock, addr
@@ -412,7 +422,7 @@ class Socket
}
end
- # creates a TCP server on _port_ and calls the block for each connection accepted.
+ # creates a TCP/IP server on _port_ and calls the block for each connection accepted.
# The block is called with a socket and a client_address as an Addrinfo object.
#
# If _host_ is specified, it is used with _port_ to determine the server addresses.
@@ -462,7 +472,7 @@ class Socket
# :call-seq:
# Socket.udp_server_sockets([host, ] port)
#
- # Creates UDP sockets for a UDP server.
+ # Creates UDP/IP sockets for a UDP server.
#
# If no block given, it returns an array of sockets.
#
@@ -473,7 +483,7 @@ class Socket
# If _port_ is zero, some port is choosen.
# But the choosen port is used for the all sockets.
#
- # # UDP echo server
+ # # UDP/IP echo server
# Socket.udp_server_sockets(0) {|sockets|
# p sockets.first.local_address.ip_port #=> 32963
# Socket.udp_server_loop_on(sockets) {|msg, msg_src|
@@ -484,7 +494,6 @@ class Socket
def self.udp_server_sockets(host=nil, port)
last_error = nil
sockets = []
- addr_hash = {}
ipv6_recvpktinfo = nil
if defined? Socket::AncillaryData
@@ -532,12 +541,10 @@ class Socket
end
end
- pktinfo_sockets = {}
sockets.each {|s|
ai = s.local_address
if ipv6_recvpktinfo && ai.ipv6? && ai.ip_address == "::"
s.setsockopt(:IPV6, ipv6_recvpktinfo, 1)
- pktinfo_sockets[s] = true
end
}
@@ -553,35 +560,58 @@ class Socket
end
# :call-seq:
+ # Socket.udp_server_recv(sockets) {|msg, msg_src| ... }
+ #
+ # Receive UDP/IP packets from the given _sockets_.
+ # For each packet received, the block is called.
+ #
+ # The block receives _msg_ and _msg_src_.
+ # _msg_ is a string which is the payload of the received packet.
+ # _msg_src_ is a Socket::UDPSource object which is used for reply.
+ #
+ # Socket.udp_server_loop can be implemented using this method as follows.
+ #
+ # udp_server_sockets(host, port) {|sockets|
+ # loop {
+ # readable, _, _ = IO.select(sockets)
+ # udp_server_recv(readable) {|msg, msg_src| ... }
+ # }
+ # }
+ #
+ def self.udp_server_recv(sockets)
+ sockets.each {|r|
+ begin
+ msg, sender_addrinfo, _, *controls = r.recvmsg_nonblock
+ rescue IO::WaitReadable
+ next
+ end
+ ai = r.local_address
+ if ai.ipv6? and pktinfo = controls.find {|c| c.cmsg_is?(:IPV6, :PKTINFO) }
+ ai = Addrinfo.udp(pktinfo.ipv6_pktinfo_addr.ip_address, ai.ip_port)
+ yield msg, UDPSource.new(sender_addrinfo, ai) {|reply_msg|
+ r.sendmsg reply_msg, 0, sender_addrinfo, pktinfo
+ }
+ else
+ yield msg, UDPSource.new(sender_addrinfo, ai) {|reply_msg|
+ r.send reply_msg, 0, sender_addrinfo
+ }
+ end
+ }
+ end
+
+ # :call-seq:
# Socket.udp_server_loop_on(sockets) {|msg, msg_src| ... }
#
- # Run UDP server loop on the given sockets.
+ # Run UDP/IP server loop on the given sockets.
#
# The return value of Socket.udp_server_sockets is appropriate for the argument.
#
# It calls the block for each message received.
#
- def self.udp_server_loop_on(sockets) # :yield: msg, msg_src
+ def self.udp_server_loop_on(sockets, &b) # :yield: msg, msg_src
loop {
readable, _, _ = IO.select(sockets)
- readable.each {|r|
- begin
- msg, sender_addrinfo, rflags, *controls = r.recvmsg_nonblock
- rescue Errno::EWOULDBLOCK
- next
- end
- ai = r.local_address
- if ai.ipv6? and pktinfo = controls.find {|c| c.cmsg_is?(:IPV6, :PKTINFO) }
- ai = Addrinfo.udp(pktinfo.ipv6_pktinfo_addr.ip_address, ai.ip_port)
- yield msg, UDPSource.new(sender_addrinfo, ai) {|reply_msg|
- r.sendmsg reply_msg, 0, sender_addrinfo, pktinfo
- }
- else
- yield msg, UDPSource.new(sender_addrinfo, ai) {|reply_msg|
- r.send reply_msg, 0, sender_addrinfo
- }
- end
- }
+ udp_server_recv(readable, &b)
}
end
@@ -589,7 +619,7 @@ class Socket
# Socket.udp_server_loop(port) {|msg, msg_src| ... }
# Socket.udp_server_loop(host, port) {|msg, msg_src| ... }
#
- # creates a UDP server on _port_ and calls the block for each message arrived.
+ # creates a UDP/IP server on _port_ and calls the block for each message arrived.
# The block is called with the message and its source information.
#
# This method allocates sockets internally using _port_.
@@ -600,7 +630,7 @@ class Socket
# The _msg_src_ is a Socket::UDPSource object.
# It is used for reply.
#
- # # UDP echo server.
+ # # UDP/IP echo server.
# Socket.udp_server_loop(9261) {|msg, msg_src|
# msg_src.reply msg
# }
@@ -611,19 +641,30 @@ class Socket
}
end
- # UDP address information used by Socket.udp_server_loop.
+ # UDP/IP address information used by Socket.udp_server_loop.
class UDPSource
+ # +remote_adress+ is an Addrinfo object.
+ #
+ # +local_adress+ is an Addrinfo object.
+ #
+ # +reply_proc+ is a Proc used to send reply back to the source.
def initialize(remote_address, local_address, &reply_proc)
@remote_address = remote_address
@local_address = local_address
@reply_proc = reply_proc
end
- attr_reader :remote_address, :local_address
- def inspect
+ # Address of the source
+ attr_reader :remote_address
+
+ # Local address
+ attr_reader :local_address
+
+ def inspect # :nodoc:
"\#<#{self.class}: #{@remote_address.inspect_sockaddr} to #{@local_address.inspect_sockaddr}>"
end
+ # Sends the String +msg+ to the source
def reply(msg)
@reply_proc.call msg
end
@@ -658,7 +699,7 @@ class Socket
end
end
- # creates UNIX server sockets on _path_
+ # creates a UNIX server socket on _path_
#
# If no block given, it returns a listening socket.
#
diff --git a/ext/socket/mkconstants.rb b/ext/socket/mkconstants.rb
index 3074a8ff8d..ae28630179 100644
--- a/ext/socket/mkconstants.rb
+++ b/ext/socket/mkconstants.rb
@@ -37,14 +37,20 @@ opt.parse!
h = {}
+COMMENTS = Hash.new { |h, name| h[name] = name }
+
DATA.each_line {|s|
- name, default_value = s.scan(/\S+/)
+ name, default_value, comment = s.chomp.split(/\s+/, 3)
next unless name && name[0] != ?#
+
+ default_value = nil if default_value == 'nil'
+
if h.has_key? name
warn "#{$.}: warning: duplicate name: #{name}"
next
end
h[name] = default_value
+ COMMENTS[name] = comment
}
DEFS = h.to_a
@@ -56,7 +62,7 @@ def each_const
make_value = "INT2NUM"
end
guard = nil
- if /\A(AF_INET6|PF_INET6)\z/ =~ name
+ if /\A(AF_INET6|PF_INET6|IPV6_.*)\z/ =~ name
# IPv6 is not supported although AF_INET6 is defined on bcc32/mingw
guard = "defined(INET6)"
end
@@ -73,17 +79,23 @@ end
ERB.new(<<'EOS', nil, '%').def_method(Object, "gen_const_decls")
% each_const {|guard, make_value, name, default_value|
-% if default_value
-#ifndef <%=name%>
-# define <%=name%> <%=default_value%>
+#if !defined(<%=name%>)
+# if defined(HAVE_CONST_<%=name.upcase%>)
+# define <%=name%> <%=name%>
+%if default_value
+# else
+# define <%=name%> <%=default_value%>
+%end
+# endif
#endif
-% end
% }
EOS
ERB.new(<<'EOS', nil, '%').def_method(Object, "gen_const_defs_in_guard(make_value, name, default_value)")
#if defined(<%=name%>)
+ /* <%= COMMENTS[name] %> */
rb_define_const(rb_cSocket, <%=c_str name%>, <%=make_value%>(<%=name%>));
+ /* <%= COMMENTS[name] %> */
rb_define_const(rb_mSockConst, <%=c_str name%>, <%=make_value%>(<%=name%>));
#endif
EOS
@@ -141,16 +153,16 @@ end
ERB.new(<<'EOS', nil, '%').def_method(Object, "gen_name_to_int_decl(funcname, pat, prefix_optional, guard=nil)")
%if guard
#ifdef <%=guard%>
-int <%=funcname%>(const char *str, int len, int *valp);
+int <%=funcname%>(const char *str, long len, int *valp);
#endif
%else
-int <%=funcname%>(const char *str, int len, int *valp);
+int <%=funcname%>(const char *str, long len, int *valp);
%end
EOS
ERB.new(<<'EOS', nil, '%').def_method(Object, "gen_name_to_int_func_in_guard(funcname, pat, prefix_optional, guard=nil)")
int
-<%=funcname%>(const char *str, int len, int *valp)
+<%=funcname%>(const char *str, long len, int *valp)
{
switch (len) {
% each_names_with_len(pat, prefix_optional) {|pairs, len|
@@ -275,9 +287,18 @@ result = ERB.new(<<'EOS', nil, '%').result(binding)
static void
init_constants(void)
{
- /* for rdoc */
- /* rb_cSocket = rb_define_class("Socket", rb_cBasicSocket); */
- /* rb_mSockConst = rb_define_module_under(rb_cSocket, "Constants"); */
+ /*
+ * Document-module: Socket::Constants
+ *
+ * Socket::Constants provides socket-related constants. All possible
+ * socket constants are listed in the documentation but they may not all
+ * be present on your platform.
+ *
+ * If the underlying platform doesn't define a constant the corresponding
+ * Ruby constant is not defined.
+ *
+ */
+ rb_mSockConst = rb_define_module_under(rb_cSocket, "Constants");
<%= gen_const_defs %>
<%= INTERN_DEFS.map {|vardef, gen_hash, decl, func| gen_hash }.join("\n") %>
@@ -314,370 +335,371 @@ end
__END__
-SOCK_STREAM
-SOCK_DGRAM
-SOCK_RAW
-SOCK_RDM
-SOCK_SEQPACKET
-SOCK_PACKET
-
-AF_UNSPEC
-PF_UNSPEC
-AF_INET
-PF_INET
-AF_INET6
-PF_INET6
-AF_UNIX
-PF_UNIX
-AF_AX25
-PF_AX25
-AF_IPX
-PF_IPX
-AF_APPLETALK
-PF_APPLETALK
-AF_LOCAL
-PF_LOCAL
-AF_IMPLINK
-PF_IMPLINK
-AF_PUP
-PF_PUP
-AF_CHAOS
-PF_CHAOS
-AF_NS
-PF_NS
-AF_ISO
-PF_ISO
-AF_OSI
-PF_OSI
-AF_ECMA
-PF_ECMA
-AF_DATAKIT
-PF_DATAKIT
-AF_CCITT
-PF_CCITT
-AF_SNA
-PF_SNA
-AF_DEC
-PF_DEC
-AF_DLI
-PF_DLI
-AF_LAT
-PF_LAT
-AF_HYLINK
-PF_HYLINK
-AF_ROUTE
-PF_ROUTE
-AF_LINK
-PF_LINK
-AF_COIP
-PF_COIP
-AF_CNT
-PF_CNT
-AF_SIP
-PF_SIP
-AF_NDRV
-PF_NDRV
-AF_ISDN
-PF_ISDN
-AF_NATM
-PF_NATM
+SOCK_STREAM nil A stream socket provides a sequenced, reliable two-way connection for a byte stream
+SOCK_DGRAM nil A datagram socket provides connectionless, unreliable messaging
+SOCK_RAW nil A raw socket provides low-level access for direct access or implementing network protocols
+SOCK_RDM nil A reliable datagram socket provides reliable delivery of messages
+SOCK_SEQPACKET nil A sequential packet socket provides sequenced, reliable two-way connection for datagrams
+SOCK_PACKET nil Device-level packet access
+
+AF_UNSPEC nil Unspecified protocol, any supported address family
+PF_UNSPEC nil Unspecified protocol, any supported address family
+AF_INET nil IPv4 protocol
+PF_INET nil IPv4 protocol
+AF_INET6 nil IPv6 protocol
+PF_INET6 nil IPv6 protocol
+AF_UNIX nil UNIX sockets
+PF_UNIX nil UNIX sockets
+AF_AX25 nil AX.25 protocol
+PF_AX25 nil AX.25 protocol
+AF_IPX nil IPX protocol
+PF_IPX nil IPX protocol
+AF_APPLETALK nil AppleTalk protocol
+PF_APPLETALK nil AppleTalk protocol
+AF_LOCAL nil Host-internal protocols
+PF_LOCAL nil Host-internal protocols
+AF_IMPLINK nil ARPANET IMP protocol
+PF_IMPLINK nil ARPANET IMP protocol
+AF_PUP nil PARC Universal Packet protocol
+PF_PUP nil PARC Universal Packet protocol
+AF_CHAOS nil MIT CHAOS protocols
+PF_CHAOS nil MIT CHAOS protocols
+AF_NS nil XEROX NS protocols
+PF_NS nil XEROX NS protocols
+AF_ISO nil ISO Open Systems Interconnection protocols
+PF_ISO nil ISO Open Systems Interconnection protocols
+AF_OSI nil ISO Open Systems Interconnection protocols
+PF_OSI nil ISO Open Systems Interconnection protocols
+AF_ECMA nil European Computer Manufacturers protocols
+PF_ECMA nil European Computer Manufacturers protocols
+AF_DATAKIT nil Datakit protocol
+PF_DATAKIT nil Datakit protocol
+AF_CCITT nil CCITT (now ITU-T) protocols
+PF_CCITT nil CCITT (now ITU-T) protocols
+AF_SNA nil IBM SNA protocol
+PF_SNA nil IBM SNA protocol
+AF_DEC nil DECnet protocol
+PF_DEC nil DECnet protocol
+AF_DLI nil DEC Direct Data Link Interface protocol
+PF_DLI nil DEC Direct Data Link Interface protocol
+AF_LAT nil Local Area Transport protocol
+PF_LAT nil Local Area Transport protocol
+AF_HYLINK nil NSC Hyperchannel protocol
+PF_HYLINK nil NSC Hyperchannel protocol
+AF_ROUTE nil Internal routing protocol
+PF_ROUTE nil Internal routing protocol
+AF_LINK nil Link layer interface
+PF_LINK nil Link layer interface
+AF_COIP nil Connection-oriented IP
+PF_COIP nil Connection-oriented IP
+AF_CNT nil Computer Network Technology
+PF_CNT nil Computer Network Technology
+AF_SIP nil Simple Internet Protocol
+PF_SIP nil Simple Internet Protocol
+AF_NDRV nil Network driver raw access
+PF_NDRV nil Network driver raw access
+AF_ISDN nil Integrated Services Digital Network
+PF_ISDN nil Integrated Services Digital Network
+AF_NATM nil Native ATM access
+PF_NATM nil Native ATM access
AF_SYSTEM
PF_SYSTEM
-AF_NETBIOS
-PF_NETBIOS
-AF_PPP
-PF_PPP
-AF_ATM
-PF_ATM
-AF_NETGRAPH
-PF_NETGRAPH
-AF_MAX
-PF_MAX
-AF_PACKET
-PF_PACKET
-
-AF_E164
-PF_XTP
+AF_NETBIOS nil NetBIOS
+PF_NETBIOS nil NetBIOS
+AF_PPP nil Point-to-Point Protocol
+PF_PPP nil Point-to-Point Protocol
+AF_ATM nil Asynchronous Transfer Mode
+PF_ATM nil Asynchronous Transfer Mode
+AF_NETGRAPH nil Netgraph sockets
+PF_NETGRAPH nil Netgraph sockets
+AF_MAX nil Maximum address family for this platform
+PF_MAX nil Maximum address family for this platform
+AF_PACKET nil Direct link-layer access
+PF_PACKET nil Direct link-layer access
+
+AF_E164 nil CCITT (ITU-T) E.164 recommendation
+PF_XTP nil eXpress Transfer Protocol
PF_RTIP
PF_PIP
PF_KEY
-MSG_OOB
-MSG_PEEK
-MSG_DONTROUTE
-MSG_EOR
-MSG_TRUNC
-MSG_CTRUNC
-MSG_WAITALL
-MSG_DONTWAIT
-MSG_EOF
-MSG_FLUSH
-MSG_HOLD
-MSG_SEND
-MSG_HAVEMORE
-MSG_RCVMORE
-MSG_COMPAT
-MSG_PROXY
+MSG_OOB nil Process out-of-band data
+MSG_PEEK nil Peek at incoming message
+MSG_DONTROUTE nil Send without using the routing tables
+MSG_EOR nil Data completes record
+MSG_TRUNC nil Data discarded before delivery
+MSG_CTRUNC nil Control data lost before delivery
+MSG_WAITALL nil Wait for full request or error
+MSG_DONTWAIT nil This message should be non-blocking
+MSG_EOF nil Data completes connection
+MSG_FLUSH nil Start of a hold sequence. Dumps to so_temp
+MSG_HOLD nil Hold fragment in so_temp
+MSG_SEND nil Send the packet in so_temp
+MSG_HAVEMORE nil Data ready to be read
+MSG_RCVMORE nil Data remains in the current packet
+MSG_COMPAT nil End of record
+MSG_PROXY nil Wait for full request
MSG_FIN
MSG_SYN
-MSG_CONFIRM
+MSG_CONFIRM nil Confirm path validity
MSG_RST
-MSG_ERRQUEUE
-MSG_NOSIGNAL
-MSG_MORE
-
-SOL_SOCKET
-SOL_IP
-SOL_IPX
-SOL_AX25
-SOL_ATALK
-SOL_TCP
-SOL_UDP
-
-IPPROTO_IP 0
-IPPROTO_ICMP 1
-IPPROTO_IGMP
-IPPROTO_GGP
-IPPROTO_TCP 6
-IPPROTO_EGP
-IPPROTO_PUP
-IPPROTO_UDP 17
-IPPROTO_IDP
-IPPROTO_HELLO
-IPPROTO_ND
-IPPROTO_TP
-IPPROTO_XTP
-IPPROTO_EON
+MSG_ERRQUEUE nil Fetch message from error queue
+MSG_NOSIGNAL nil Do not generate SIGPIPE
+MSG_MORE nil Sender will send more
+
+SOL_SOCKET nil Socket-level options
+SOL_IP nil IP socket options
+SOL_IPX nil IPX socket options
+SOL_AX25 nil AX.25 socket options
+SOL_ATALK nil AppleTalk socket options
+SOL_TCP nil TCP socket options
+SOL_UDP nil UDP socket options
+
+IPPROTO_IP 0 Dummy protocol for IP
+IPPROTO_ICMP 1 Control message protocol
+IPPROTO_IGMP nil Group Management Protocol
+IPPROTO_GGP nil Gateway to Gateway Protocol
+IPPROTO_TCP 6 TCP
+IPPROTO_EGP nil Exterior Gateway Protocol
+IPPROTO_PUP nil PARC Universal Packet protocol
+IPPROTO_UDP 17 UDP
+IPPROTO_IDP nil XNS IDP
+IPPROTO_HELLO nil "hello" routing protocol
+IPPROTO_ND nil Sun net disk protocol
+IPPROTO_TP nil ISO transport protocol class 4
+IPPROTO_XTP nil Xpress Transport Protocol
+IPPROTO_EON nil ISO cnlp
IPPROTO_BIP
-IPPROTO_AH
-IPPROTO_DSTOPTS
-IPPROTO_ESP
-IPPROTO_FRAGMENT
-IPPROTO_HOPOPTS
-IPPROTO_ICMPV6
-IPPROTO_IPV6
-IPPROTO_NONE
-IPPROTO_ROUTING
-
-IPPROTO_RAW 255
-IPPROTO_MAX
+IPPROTO_AH nil IP6 auth header
+IPPROTO_DSTOPTS nil IP6 destination option
+IPPROTO_ESP nil IP6 Encapsulated Security Payload
+IPPROTO_FRAGMENT nil IP6 fragmentation header
+IPPROTO_HOPOPTS nil IP6 hop-by-hop options
+IPPROTO_ICMPV6 nil ICMP6
+IPPROTO_IPV6 nil IP6 header
+IPPROTO_NONE nil IP6 no next header
+IPPROTO_ROUTING nil IP6 routing header
+
+IPPROTO_RAW 255 Raw IP packet
+IPPROTO_MAX nil Maximum IPPROTO constant
# Some port configuration
-IPPORT_RESERVED 1024
-IPPORT_USERRESERVED 5000
+IPPORT_RESERVED 1024 Default minimum address for bind or connect
+IPPORT_USERRESERVED 5000 Default maximum address for bind or connect
# Some reserved IP v.4 addresses
-INADDR_ANY 0x00000000
-INADDR_BROADCAST 0xffffffff
-INADDR_LOOPBACK 0x7F000001
-INADDR_UNSPEC_GROUP 0xe0000000
-INADDR_ALLHOSTS_GROUP 0xe0000001
-INADDR_MAX_LOCAL_GROUP 0xe00000ff
-INADDR_NONE 0xffffffff
+INADDR_ANY 0x00000000 A socket bound to INADDR_ANY receives packets from all interfaces and sends from the default IP address
+INADDR_BROADCAST 0xffffffff The network broadcast address
+INADDR_LOOPBACK 0x7F000001 The loopback address
+INADDR_UNSPEC_GROUP 0xe0000000 The reserved multicast group
+INADDR_ALLHOSTS_GROUP 0xe0000001 Multicast group for all systems on this subset
+INADDR_MAX_LOCAL_GROUP 0xe00000ff The last local network multicast group
+INADDR_NONE 0xffffffff A bitmask for matching no valid IP address
# IP [gs]etsockopt options
-IP_OPTIONS
-IP_HDRINCL
-IP_TOS
-IP_TTL
-IP_RECVOPTS
-IP_RECVRETOPTS
-IP_RECVDSTADDR
-IP_RETOPTS
-IP_MINTTL
-IP_DONTFRAG
-IP_SENDSRCADDR
-IP_ONESBCAST
-IP_RECVTTL
-IP_RECVIF
-IP_RECVSLLA
-IP_PORTRANGE
-IP_MULTICAST_IF
-IP_MULTICAST_TTL
-IP_MULTICAST_LOOP
-IP_ADD_MEMBERSHIP
-IP_DROP_MEMBERSHIP
-IP_DEFAULT_MULTICAST_TTL
-IP_DEFAULT_MULTICAST_LOOP
-IP_MAX_MEMBERSHIPS
-IP_ROUTER_ALERT
-IP_PKTINFO
-IP_PKTOPTIONS
-IP_MTU_DISCOVER
-IP_RECVERR
-IP_RECVTOS
-IP_MTU
-IP_FREEBIND
-IP_IPSEC_POLICY
+IP_OPTIONS nil IP options to be included in packets
+IP_HDRINCL nil Header is included with data
+IP_TOS nil IP type-of-service
+IP_TTL nil IP time-to-live
+IP_RECVOPTS nil Receive all IP options with datagram
+IP_RECVRETOPTS nil Receive all IP options for response
+IP_RECVDSTADDR nil Receive IP destination address with datagram
+IP_RETOPTS nil IP options to be included in datagrams
+IP_MINTTL nil Minimum TTL allowed for received packets
+IP_DONTFRAG nil Don't fragment packets
+IP_SENDSRCADDR nil Source address for outgoing UDP datagrams
+IP_ONESBCAST nil Force outgoing broadcast datagrams to have the undirected broadcast address
+IP_RECVTTL nil Receive IP TTL with datagrams
+IP_RECVIF nil Receive interface information with datagrams
+IP_RECVSLLA nil Receive link-layer address with datagrams
+IP_PORTRANGE nil Set the port range for sockets with unspecified port numbers
+IP_MULTICAST_IF nil IP multicast interface
+IP_MULTICAST_TTL nil IP multicast TTL
+IP_MULTICAST_LOOP nil IP multicast loopback
+IP_ADD_MEMBERSHIP nil Add a multicast group membership
+IP_DROP_MEMBERSHIP nil Drop a multicast group membership
+IP_DEFAULT_MULTICAST_TTL nil Default multicast TTL
+IP_DEFAULT_MULTICAST_LOOP nil Default multicast loopback
+IP_MAX_MEMBERSHIPS nil Maximum number multicast groups a socket can join
+IP_ROUTER_ALERT nil Notify transit routers to more closely examine the contents of an IP packet
+IP_PKTINFO nil Receive packet information with datagrams
+IP_PKTOPTIONS nil Receive packet options with datagrams
+IP_MTU_DISCOVER nil Path MTU discovery
+IP_RECVERR nil Enable extended reliable error message passing
+IP_RECVTOS nil Receive TOS with incoming packets
+IP_MTU nil The Maximum Transmission Unit of the socket
+IP_FREEBIND nil Allow binding to nonexistent IP addresses
+IP_IPSEC_POLICY nil IPsec security policy
IP_XFRM_POLICY
-IP_PASSSEC
-IP_PMTUDISC_DONT
-IP_PMTUDISC_WANT
-IP_PMTUDISC_DO
-IP_UNBLOCK_SOURCE
-IP_BLOCK_SOURCE
-IP_ADD_SOURCE_MEMBERSHIP
-IP_DROP_SOURCE_MEMBERSHIP
-IP_MSFILTER
-
-MCAST_JOIN_GROUP
-MCAST_BLOCK_SOURCE
-MCAST_UNBLOCK_SOURCE
-MCAST_LEAVE_GROUP
-MCAST_JOIN_SOURCE_GROUP
-MCAST_LEAVE_SOURCE_GROUP
-MCAST_MSFILTER
-MCAST_EXCLUDE
-MCAST_INCLUDE
-
-SO_DEBUG
-SO_REUSEADDR
-SO_REUSEPORT
-SO_TYPE
-SO_ERROR
-SO_DONTROUTE
-SO_BROADCAST
-SO_SNDBUF
-SO_RCVBUF
-SO_KEEPALIVE
-SO_OOBINLINE
-SO_NO_CHECK
-SO_PRIORITY
-SO_LINGER
-SO_PASSCRED
-SO_PEERCRED
-SO_RCVLOWAT
-SO_SNDLOWAT
-SO_RCVTIMEO
-SO_SNDTIMEO
-SO_ACCEPTCONN
-SO_USELOOPBACK
-SO_ACCEPTFILTER
-SO_DONTTRUNC
-SO_WANTMORE
-SO_WANTOOBFLAG
-SO_NREAD
-SO_NKE
-SO_NOSIGPIPE
+IP_PASSSEC nil Retrieve security context with datagram
+IP_PMTUDISC_DONT nil Never send DF frames
+IP_PMTUDISC_WANT nil Use per-route hints
+IP_PMTUDISC_DO nil Always send DF frames
+IP_UNBLOCK_SOURCE nil Unblock IPv4 multicast packets with a give source address
+IP_BLOCK_SOURCE nil Block IPv4 multicast packets with a give source address
+IP_ADD_SOURCE_MEMBERSHIP nil Add a multicast group membership
+IP_DROP_SOURCE_MEMBERSHIP nil Drop a multicast group membership
+IP_MSFILTER nil Multicast source filtering
+
+MCAST_JOIN_GROUP nil Join a multicast group
+MCAST_BLOCK_SOURCE nil Block multicast packets from this source
+MCAST_UNBLOCK_SOURCE nil Unblock multicast packets from this source
+MCAST_LEAVE_GROUP nil Leave a multicast group
+MCAST_JOIN_SOURCE_GROUP nil Join a multicast source group
+MCAST_LEAVE_SOURCE_GROUP nil Leave a multicast source group
+MCAST_MSFILTER nil Multicast source filtering
+MCAST_EXCLUDE nil Exclusive multicast source filter
+MCAST_INCLUDE nil Inclusive multicast source filter
+
+SO_DEBUG nil Debug info recording
+SO_REUSEADDR nil Allow local address reuse
+SO_REUSEPORT nil Allow local address and port reuse
+SO_TYPE nil Get the socket type
+SO_ERROR nil Get and clear the error status
+SO_DONTROUTE nil Use interface addresses
+SO_BROADCAST nil Permit sending of broadcast messages
+SO_SNDBUF nil Send buffer size
+SO_RCVBUF nil Receive buffer size
+SO_KEEPALIVE nil Keep connections alive
+SO_OOBINLINE nil Leave received out-of-band data in-line
+SO_NO_CHECK nil Disable checksums
+SO_PRIORITY nil The protocol-defined priority for all packets on this socket
+SO_LINGER nil Linger on close if data is present
+SO_PASSCRED nil Receive SCM_CREDENTIALS messages
+SO_PEERCRED nil The credentials of the foreign process connected to this socket
+SO_RCVLOWAT nil Receive low-water mark
+SO_SNDLOWAT nil Send low-water mark
+SO_RCVTIMEO nil Receive timeout
+SO_SNDTIMEO nil Send timeout
+SO_ACCEPTCONN nil Socket has had listen() called on it
+SO_USELOOPBACK nil Bypass hardware when possible
+SO_ACCEPTFILTER nil There is an accept filter
+SO_DONTTRUNC nil Retain unread data
+SO_WANTMORE nil Give a hint when more data is ready
+SO_WANTOOBFLAG nil OOB data is wanted in MSG_FLAG on receive
+SO_NREAD nil Get first packet byte count
+SO_NKE nil Install socket-level Network Kernel Extension
+SO_NOSIGPIPE nil Don't SIGPIPE on EPIPE
SO_SECURITY_AUTHENTICATION
SO_SECURITY_ENCRYPTION_TRANSPORT
SO_SECURITY_ENCRYPTION_NETWORK
-SO_BINDTODEVICE
-SO_ATTACH_FILTER
-SO_DETACH_FILTER
-SO_PEERNAME
-SO_TIMESTAMP
-SO_TIMESTAMPNS
-SO_BINTIME
-SO_RECVUCRED
-SO_MAC_EXEMPT
-SO_ALLZONES
-
-SOPRI_INTERACTIVE
-SOPRI_NORMAL
-SOPRI_BACKGROUND
+SO_BINDTODEVICE nil Only send packets from the given interface
+SO_ATTACH_FILTER nil Attach an accept filter
+SO_DETACH_FILTER nil Detach an accept filter
+SO_PEERNAME nil Name of the connecting user
+SO_TIMESTAMP nil Receive timestamp with datagrams (timeval)
+SO_TIMESTAMPNS nil Receive nanosecond timestamp with datagrams (timespec)
+SO_BINTIME nil Receive timestamp with datagrams (bintime)
+SO_RECVUCRED nil Receive user credentials with datagram
+SO_MAC_EXEMPT nil Mandatory Access Control exemption for unlabeled peers
+SO_ALLZONES nil Bypass zone boundaries
+
+SOPRI_INTERACTIVE nil Interactive socket priority
+SOPRI_NORMAL nil Normal socket priority
+SOPRI_BACKGROUND nil Background socket priority
IPX_TYPE
-TCP_NODELAY
-TCP_MAXSEG
-TCP_CORK
-TCP_DEFER_ACCEPT
-TCP_INFO
-TCP_KEEPCNT
-TCP_KEEPIDLE
-TCP_KEEPINTVL
-TCP_LINGER2
-TCP_MD5SIG
-TCP_NOOPT
-TCP_NOPUSH
-TCP_QUICKACK
-TCP_SYNCNT
-TCP_WINDOW_CLAMP
-
-UDP_CORK
-
-EAI_ADDRFAMILY
-EAI_AGAIN
-EAI_BADFLAGS
-EAI_FAIL
-EAI_FAMILY
-EAI_MEMORY
-EAI_NODATA
-EAI_NONAME
-EAI_OVERFLOW
-EAI_SERVICE
-EAI_SOCKTYPE
-EAI_SYSTEM
-EAI_BADHINTS
-EAI_PROTOCOL
-EAI_MAX
-
-AI_PASSIVE
-AI_CANONNAME
-AI_NUMERICHOST
-AI_NUMERICSERV
-AI_MASK
-AI_ALL
-AI_V4MAPPED_CFG
-AI_ADDRCONFIG
-AI_V4MAPPED
-AI_DEFAULT
-
-NI_MAXHOST
-NI_MAXSERV
-NI_NOFQDN
-NI_NUMERICHOST
-NI_NAMEREQD
-NI_NUMERICSERV
-NI_DGRAM
-
-SHUT_RD 0
-SHUT_WR 1
-SHUT_RDWR 2
-
-IPV6_JOIN_GROUP
-IPV6_LEAVE_GROUP
-IPV6_MULTICAST_HOPS
-IPV6_MULTICAST_IF
-IPV6_MULTICAST_LOOP
-IPV6_UNICAST_HOPS
-IPV6_V6ONLY
-IPV6_CHECKSUM
-IPV6_DONTFRAG
-IPV6_DSTOPTS
-IPV6_HOPLIMIT
-IPV6_HOPOPTS
-IPV6_NEXTHOP
-IPV6_PATHMTU
-IPV6_PKTINFO
-IPV6_RECVDSTOPTS
-IPV6_RECVHOPLIMIT
-IPV6_RECVHOPOPTS
-IPV6_RECVPKTINFO
-IPV6_RECVRTHDR
-IPV6_RECVTCLASS
-IPV6_RTHDR
-IPV6_RTHDRDSTOPTS
-IPV6_RTHDR_TYPE_0
-IPV6_RECVPATHMTU
-IPV6_TCLASS
-IPV6_USE_MIN_MTU
-
-INET_ADDRSTRLEN
-INET6_ADDRSTRLEN
-IFNAMSIZ
-
-SOMAXCONN
-
-SCM_RIGHTS
-SCM_TIMESTAMP
-SCM_TIMESTAMPNS
-SCM_BINTIME
-SCM_CREDENTIALS
-SCM_CREDS
-SCM_UCRED
-
-LOCAL_PEERCRED
-LOCAL_CREDS
-LOCAL_CONNWAIT
+TCP_NODELAY nil Don't delay sending to coalesce packets
+TCP_MAXSEG nil Set maximum segment size
+TCP_CORK nil Don't send partial frames
+TCP_DEFER_ACCEPT nil Don't notify a listening socket until data is ready
+TCP_INFO nil Retrieve information about this socket
+TCP_KEEPCNT nil Maximum number of keepalive probes allowed before dropping a connection
+TCP_KEEPIDLE nil Idle time before keepalive probes are sent
+TCP_KEEPINTVL nil Time between keepalive probes
+TCP_LINGER2 nil Lifetime of orphaned FIN_WAIT2 sockets
+TCP_MD5SIG nil Use MD5 digests (RFC2385)
+TCP_NOOPT nil Don't use TCP options
+TCP_NOPUSH nil Don't push the last block of write
+TCP_QUICKACK nil Enable quickack mode
+TCP_SYNCNT nil Number of SYN retransmits before a connection is dropped
+TCP_WINDOW_CLAMP nil Clamp the size of the advertised window
+
+UDP_CORK nil Don't send partial frames
+
+EAI_ADDRFAMILY nil Address family for hostname not supported
+EAI_AGAIN nil Temporary failure in name resolution
+EAI_BADFLAGS nil Invalid flags
+EAI_FAIL nil Non-recoverable failure in name resolution
+EAI_FAMILY nil Address family not supported
+EAI_MEMORY nil Memory allocation failure
+EAI_NODATA nil No address associated with hostname
+EAI_NONAME nil Hostname nor servname, or not known
+EAI_OVERFLOW nil Argument buffer overflow
+EAI_SERVICE nil Servname not supported for socket type
+EAI_SOCKTYPE nil Socket type not supported
+EAI_SYSTEM nil System error returned in errno
+EAI_BADHINTS nil Invalid value for hints
+EAI_PROTOCOL nil Resolved protocol is unknown
+EAI_MAX nil Maximum error code from getaddrinfo
+
+AI_PASSIVE nil Get address to use with bind()
+AI_CANONNAME nil Fill in the canonical name
+AI_NUMERICHOST nil Prevent host name resolution
+AI_NUMERICSERV nil Prevent service name resolution
+AI_MASK nil Valid flag mask for getaddrinfo (not for application use)
+AI_ALL nil Allow all addresses
+AI_V4MAPPED_CFG nil Accept IPv4 mapped addresses if the kernel supports it
+AI_ADDRCONFIG nil Accept only if any address is assigned
+AI_V4MAPPED nil Accept IPv4-mapped IPv6 addresses
+AI_DEFAULT nil Default flags for getaddrinfo
+
+NI_MAXHOST nil Maximum length of a hostname
+NI_MAXSERV nil Maximum length of a service name
+NI_NOFQDN nil An FQDN is not required for local hosts, return only the local part
+NI_NUMERICHOST nil Return a numeric address
+NI_NAMEREQD nil A name is required
+NI_NUMERICSERV nil Return the service name as a digit string
+NI_DGRAM nil The service specified is a datagram service (looks up UDP ports)
+
+SHUT_RD 0 Shut down the reading side of the socket
+SHUT_WR 1 Shut down the writing side of the socket
+SHUT_RDWR 2 Shut down the both sides of the socket
+
+IPV6_JOIN_GROUP nil Join a group membership
+IPV6_LEAVE_GROUP nil Leave a group membership
+IPV6_MULTICAST_HOPS nil IP6 multicast hops
+IPV6_MULTICAST_IF nil IP6 multicast interface
+IPV6_MULTICAST_LOOP nil IP6 multicast loopback
+IPV6_UNICAST_HOPS nil IP6 unicast hops
+IPV6_V6ONLY nil Only bind IPv6 with a wildcard bind
+IPV6_CHECKSUM nil Checksum offset for raw sockets
+IPV6_DONTFRAG nil Don't fragment packets
+IPV6_DSTOPTS nil Destination option
+IPV6_HOPLIMIT nil Hop limit
+IPV6_HOPOPTS nil Hop-by-hop option
+IPV6_NEXTHOP nil Next hop address
+IPV6_PATHMTU nil Retrieve current path MTU
+IPV6_PKTINFO nil Receive packet information with datagram
+IPV6_RECVDSTOPTS nil Receive all IP6 options for response
+IPV6_RECVHOPLIMIT nil Receive hop limit with datagram
+IPV6_RECVHOPOPTS nil Receive hop-by-hop options
+IPV6_RECVPKTINFO nil Receive destination IP address and incoming interface
+IPV6_RECVRTHDR nil Receive routing header
+IPV6_RECVTCLASS nil Receive traffic class
+IPV6_RTHDR nil Allows removal of sticky routing headers
+IPV6_RTHDRDSTOPTS nil Allows removal of sticky destination options header
+IPV6_RTHDR_TYPE_0 nil Routing header type 0
+IPV6_RECVPATHMTU nil Receive current path MTU with datagram
+IPV6_TCLASS nil Specify the traffic class
+IPV6_USE_MIN_MTU nil Use the minimum MTU size
+
+INET_ADDRSTRLEN 16 Maximum length of an IPv4 address string
+INET6_ADDRSTRLEN 46 Maximum length of an IPv6 address string
+IFNAMSIZ nil Maximum interface name size
+IF_NAMESIZE nil Maximum interface name size
+
+SOMAXCONN nil Maximum connection requests that may be queued for a socket
+
+SCM_RIGHTS nil Access rights
+SCM_TIMESTAMP nil Timestamp (timeval)
+SCM_TIMESTAMPNS nil Timespec (timespec)
+SCM_BINTIME nil Timestamp (bintime)
+SCM_CREDENTIALS nil The sender's credentials
+SCM_CREDS nil Process credentials
+SCM_UCRED nil User credentials
+
+LOCAL_PEERCRED nil Retrieve peer credentials
+LOCAL_CREDS nil Pass credentials to receiver
+LOCAL_CONNWAIT nil Connect blocks until accepted
diff --git a/ext/socket/option.c b/ext/socket/option.c
index d1d557db14..1f334bbca0 100644
--- a/ext/socket/option.c
+++ b/ext/socket/option.c
@@ -148,7 +148,7 @@ sockopt_data(VALUE self)
*
* Creates a new Socket::Option object which contains an int as data.
*
- * The size and endian is dependent on the host.
+ * The size and endian is dependent on the platform.
*
* p Socket::Option.int(:INET, :SOCKET, :KEEPALIVE, 1)
* #=> #<Socket::Option: INET SOCKET KEEPALIVE 1>
@@ -169,7 +169,7 @@ sockopt_s_int(VALUE klass, VALUE vfamily, VALUE vlevel, VALUE voptname, VALUE vi
*
* Returns the data in _sockopt_ as an int.
*
- * The size and endian is dependent on the host.
+ * The size and endian is dependent on the platform.
*
* sockopt = Socket::Option.int(:INET, :SOCKET, :KEEPALIVE, 1)
* p sockopt.int => 1
@@ -280,7 +280,7 @@ sockopt_linger(VALUE self)
VALUE vonoff, vsecs;
if (level != SOL_SOCKET || optname != SO_LINGER)
- rb_raise(rb_eTypeError, "linger socket option expected");
+ rb_raise(rb_eTypeError, "linger socket option expected");
if (RSTRING_LEN(data) != sizeof(l))
rb_raise(rb_eTypeError, "size differ. expected as sizeof(struct linger)=%d but %ld",
(int)sizeof(struct linger), (long)RSTRING_LEN(data));
@@ -324,7 +324,7 @@ inspect_errno(int level, int optname, VALUE data, VALUE ret)
}
}
-#if defined(IPV6_MULTICAST_IF) || defined(IPV6_MULTICAST_LOOP)
+#if defined(IPV6_MULTICAST_LOOP)
static int
inspect_uint(int level, int optname, VALUE data, VALUE ret)
{
@@ -396,13 +396,222 @@ inspect_timeval_as_interval(int level, int optname, VALUE data, VALUE ret)
}
}
-#if defined(SOL_SOCKET) && defined(SO_PEERCRED) /* GNU/Linux */
+/*
+ * socket option for IPv4 multicast is bit confusing.
+ *
+ * IP Multicast is implemented by Steve Deering at first:
+ * IP Multicast Extensions for 4.3BSD UNIX and related systems
+ * (MULTICAST 1.2 Release)
+ * http://www.kohala.com/start/mcast.api.txt
+ *
+ * There are 3 socket options which takes a struct.
+ *
+ * IP_MULTICAST_IF: struct in_addr
+ * IP_ADD_MEMBERSHIP: struct ip_mreq
+ * IP_DROP_MEMBERSHIP: struct ip_mreq
+ *
+ * But they uses an IP address to specify an interface.
+ * This means the API cannot specify an unnumbered interface.
+ *
+ * Linux 2.4 introduces struct ip_mreqn to fix this problem.
+ * struct ip_mreqn has imr_ifindex field to specify interface index.
+ *
+ * IP_MULTICAST_IF: struct ip_mreqn
+ * IP_ADD_MEMBERSHIP: struct ip_mreqn
+ * IP_DROP_MEMBERSHIP: struct ip_mreqn
+ *
+ * FreeBSD 7 obtained struct ip_mreqn for IP_MULTICAST_IF.
+ * http://www.FreeBSD.org/cgi/cvsweb.cgi/src/sys/netinet/in.h.diff?r1=1.99;r2=1.100
+ *
+ * Another hackish workaround is "RFC 1724 hack".
+ * RFC 1724 section 3.3 suggests unnumbered interfaces
+ * specified by pseudo address 0.0.0.0/8.
+ * NetBSD 4 and FreeBSD 5 documented it.
+ * http://cvsweb.netbsd.org/cgi-bin/cvsweb.cgi/src/share/man/man4/ip.4.diff?r1=1.16&r2=1.17
+ * http://www.FreeBSD.org/cgi/cvsweb.cgi/src/share/man/man4/ip.4.diff?r1=1.37;r2=1.38
+ * FreeBSD 7.0 removed it.
+ * http://www.FreeBSD.org/cgi/cvsweb.cgi/src/share/man/man4/ip.4.diff?r1=1.49;r2=1.50
+ *
+ * RFC 1724 hack is not supported by Socket::Option#inspect because
+ * it is not distinguishable by the size.
+ */
+
+#ifndef HAVE_INET_NTOP
+static char *
+inet_ntop(int af, const void *addr, char *numaddr, size_t numaddr_len)
+{
+#ifdef HAVE_INET_NTOA
+ struct in_addr in;
+ memcpy(&in.s_addr, addr, sizeof(in.s_addr));
+ snprintf(numaddr, numaddr_len, "%s", inet_ntoa(in));
+#else
+ unsigned long x = ntohl(*(unsigned long*)addr);
+ snprintf(numaddr, numaddr_len, "%d.%d.%d.%d",
+ (int) (x>>24) & 0xff, (int) (x>>16) & 0xff,
+ (int) (x>> 8) & 0xff, (int) (x>> 0) & 0xff);
+#endif
+ return numaddr;
+}
+#endif
+
+/* Although the buffer size needed depends on the prefixes, "%u" may generate "4294967295". */
+static int
+rb_if_indextoname(const char *succ_prefix, const char *fail_prefix, unsigned int ifindex, char *buf, size_t len)
+{
+#if defined(HAVE_IF_INDEXTONAME)
+ char ifbuf[IFNAMSIZ];
+ if (if_indextoname(ifindex, ifbuf) == NULL)
+ return snprintf(buf, len, "%s%u", fail_prefix, ifindex);
+ else
+ return snprintf(buf, len, "%s%s", succ_prefix, ifbuf);
+#else
+# ifndef IFNAMSIZ
+# define IFNAMSIZ (sizeof(unsigned int)*3+1)
+# endif
+ return snprintf(buf, len, "%s%u", fail_prefix, ifindex);
+#endif
+}
+
+#if defined(IPPROTO_IP) && defined(HAVE_TYPE_STRUCT_IP_MREQ) /* 4.4BSD, GNU/Linux */
+static int
+inspect_ipv4_mreq(int level, int optname, VALUE data, VALUE ret)
+{
+ if (RSTRING_LEN(data) == sizeof(struct ip_mreq)) {
+ struct ip_mreq s;
+ char addrbuf[INET_ADDRSTRLEN];
+ memcpy((char*)&s, RSTRING_PTR(data), sizeof(s));
+ if (inet_ntop(AF_INET, &s.imr_multiaddr, addrbuf, (socklen_t)sizeof(addrbuf)) == NULL)
+ rb_str_cat2(ret, " invalid-address");
+ else
+ rb_str_catf(ret, " %s", addrbuf);
+ if (inet_ntop(AF_INET, &s.imr_interface, addrbuf, (socklen_t)sizeof(addrbuf)) == NULL)
+ rb_str_catf(ret, " invalid-address");
+ else
+ rb_str_catf(ret, " %s", addrbuf);
+ return 1;
+ }
+ else {
+ return 0;
+ }
+}
+#endif
+
+#if defined(IPPROTO_IP) && defined(HAVE_TYPE_STRUCT_IP_MREQN) /* GNU/Linux, FreeBSD 7 */
+static int
+inspect_ipv4_mreqn(int level, int optname, VALUE data, VALUE ret)
+{
+ if (RSTRING_LEN(data) == sizeof(struct ip_mreqn)) {
+ struct ip_mreqn s;
+ char addrbuf[INET_ADDRSTRLEN], ifbuf[32+IFNAMSIZ];
+ memcpy((char*)&s, RSTRING_PTR(data), sizeof(s));
+ if (inet_ntop(AF_INET, &s.imr_multiaddr, addrbuf, (socklen_t)sizeof(addrbuf)) == NULL)
+ rb_str_cat2(ret, " invalid-address");
+ else
+ rb_str_catf(ret, " %s", addrbuf);
+ if (inet_ntop(AF_INET, &s.imr_address, addrbuf, (socklen_t)sizeof(addrbuf)) == NULL)
+ rb_str_catf(ret, " invalid-address");
+ else
+ rb_str_catf(ret, " %s", addrbuf);
+ rb_if_indextoname(" ", " ifindex:", s.imr_ifindex, ifbuf, sizeof(ifbuf));
+ rb_str_cat2(ret, ifbuf);
+ return 1;
+ }
+ else {
+ return 0;
+ }
+}
+#endif
+
+#if defined(IPPROTO_IP) && defined(HAVE_TYPE_STRUCT_IP_MREQ) /* 4.4BSD, GNU/Linux */
+static int
+inspect_ipv4_add_drop_membership(int level, int optname, VALUE data, VALUE ret)
+{
+ if (RSTRING_LEN(data) == sizeof(struct ip_mreq))
+ return inspect_ipv4_mreq(level, optname, data, ret);
+# if defined(HAVE_TYPE_STRUCT_IP_MREQN)
+ else if (RSTRING_LEN(data) == sizeof(struct ip_mreqn))
+ return inspect_ipv4_mreqn(level, optname, data, ret);
+# endif
+ else
+ return 0;
+}
+#endif
+
+#if defined(IPPROTO_IP) && defined(IP_MULTICAST_IF) && defined(HAVE_TYPE_STRUCT_IP_MREQN) /* 4.4BSD, GNU/Linux */
+static int
+inspect_ipv4_multicast_if(int level, int optname, VALUE data, VALUE ret)
+{
+ if (RSTRING_LEN(data) == sizeof(struct in_addr)) {
+ struct in_addr s;
+ char addrbuf[INET_ADDRSTRLEN];
+ memcpy((char*)&s, RSTRING_PTR(data), sizeof(s));
+ if (inet_ntop(AF_INET, &s, addrbuf, (socklen_t)sizeof(addrbuf)) == NULL)
+ rb_str_cat2(ret, " invalid-address");
+ else
+ rb_str_catf(ret, " %s", addrbuf);
+ return 1;
+ }
+ else if (RSTRING_LEN(data) == sizeof(struct ip_mreqn)) {
+ return inspect_ipv4_mreqn(level, optname, data, ret);
+ }
+ else {
+ return 0;
+ }
+}
+#endif
+
+#if defined(IPV6_MULTICAST_IF) /* POSIX, RFC 3493 */
+static int
+inspect_ipv6_multicast_if(int level, int optname, VALUE data, VALUE ret)
+{
+ if (RSTRING_LEN(data) == sizeof(int)) {
+ char ifbuf[32+IFNAMSIZ];
+ unsigned int ifindex;
+ memcpy((char*)&ifindex, RSTRING_PTR(data), sizeof(unsigned int));
+ rb_if_indextoname(" ", " ", ifindex, ifbuf, sizeof(ifbuf));
+ rb_str_cat2(ret, ifbuf);
+ return 1;
+ }
+ else {
+ return 0;
+ }
+}
+#endif
+
+#if defined(IPPROTO_IPV6) && defined(HAVE_TYPE_STRUCT_IPV6_MREQ) /* POSIX, RFC 3493 */
+static int
+inspect_ipv6_mreq(int level, int optname, VALUE data, VALUE ret)
+{
+ if (RSTRING_LEN(data) == sizeof(struct ipv6_mreq)) {
+ struct ipv6_mreq s;
+ char addrbuf[INET6_ADDRSTRLEN], ifbuf[32+IFNAMSIZ];
+ memcpy((char*)&s, RSTRING_PTR(data), sizeof(s));
+ if (inet_ntop(AF_INET6, &s.ipv6mr_multiaddr, addrbuf, (socklen_t)sizeof(addrbuf)) == NULL)
+ rb_str_cat2(ret, " invalid-address");
+ else
+ rb_str_catf(ret, " %s", addrbuf);
+ rb_if_indextoname(" ", " interface:", s.ipv6mr_interface, ifbuf, sizeof(ifbuf));
+ rb_str_cat2(ret, ifbuf);
+ return 1;
+ }
+ else {
+ return 0;
+ }
+}
+#endif
+
+#if defined(SOL_SOCKET) && defined(SO_PEERCRED) /* GNU/Linux, OpenBSD */
+#if defined(__OpenBSD__)
+#define RUBY_SOCK_PEERCRED struct sockpeercred
+#else
+#define RUBY_SOCK_PEERCRED struct ucred
+#endif
static int
inspect_peercred(int level, int optname, VALUE data, VALUE ret)
{
- if (RSTRING_LEN(data) == sizeof(struct ucred)) {
- struct ucred cred;
- memcpy(&cred, RSTRING_PTR(data), sizeof(struct ucred));
+ if (RSTRING_LEN(data) == sizeof(RUBY_SOCK_PEERCRED)) {
+ RUBY_SOCK_PEERCRED cred;
+ memcpy(&cred, RSTRING_PTR(data), sizeof(RUBY_SOCK_PEERCRED));
rb_str_catf(ret, " pid=%u euid=%u egid=%u",
(unsigned)cred.pid, (unsigned)cred.uid, (unsigned)cred.gid);
rb_str_cat2(ret, " (ucred)");
@@ -569,7 +778,7 @@ sockopt_inspect(VALUE self)
# if defined(SO_SNDTIMEO) /* POSIX */
case SO_SNDTIMEO: inspected = inspect_timeval_as_interval(level, optname, data, ret); break;
# endif
-# if defined(SO_PEERCRED) /* GNU/Linux */
+# if defined(SO_PEERCRED) /* GNU/Linux, OpenBSD */
case SO_PEERCRED: inspected = inspect_peercred(level, optname, data, ret); break;
# endif
}
@@ -582,19 +791,40 @@ sockopt_inspect(VALUE self)
case AF_INET6:
#endif
switch (level) {
+# if defined(IPPROTO_IP)
+ case IPPROTO_IP:
+ switch (optname) {
+# if defined(IP_MULTICAST_IF) && defined(HAVE_TYPE_STRUCT_IP_MREQN) /* 4.4BSD, GNU/Linux */
+ case IP_MULTICAST_IF: inspected = inspect_ipv4_multicast_if(level, optname, data, ret); break;
+# endif
+# if defined(IP_ADD_MEMBERSHIP) /* 4.4BSD, GNU/Linux */
+ case IP_ADD_MEMBERSHIP: inspected = inspect_ipv4_add_drop_membership(level, optname, data, ret); break;
+# endif
+# if defined(IP_DROP_MEMBERSHIP) /* 4.4BSD, GNU/Linux */
+ case IP_DROP_MEMBERSHIP: inspected = inspect_ipv4_add_drop_membership(level, optname, data, ret); break;
+# endif
+ }
+ break;
+# endif
+
# if defined(IPPROTO_IPV6)
case IPPROTO_IPV6:
switch (optname) {
- /* IPV6_JOIN_GROUP ipv6_mreq, IPV6_LEAVE_GROUP ipv6_mreq */
# if defined(IPV6_MULTICAST_HOPS) /* POSIX */
case IPV6_MULTICAST_HOPS: inspected = inspect_int(level, optname, data, ret); break;
# endif
# if defined(IPV6_MULTICAST_IF) /* POSIX */
- case IPV6_MULTICAST_IF: inspected = inspect_uint(level, optname, data, ret); break;
+ case IPV6_MULTICAST_IF: inspected = inspect_ipv6_multicast_if(level, optname, data, ret); break;
# endif
# if defined(IPV6_MULTICAST_LOOP) /* POSIX */
case IPV6_MULTICAST_LOOP: inspected = inspect_uint(level, optname, data, ret); break;
# endif
+# if defined(IPV6_JOIN_GROUP) /* POSIX */
+ case IPV6_JOIN_GROUP: inspected = inspect_ipv6_mreq(level, optname, data, ret); break;
+# endif
+# if defined(IPV6_LEAVE_GROUP) /* POSIX */
+ case IPV6_LEAVE_GROUP: inspected = inspect_ipv6_mreq(level, optname, data, ret); break;
+# endif
# if defined(IPV6_UNICAST_HOPS) /* POSIX */
case IPV6_UNICAST_HOPS: inspected = inspect_int(level, optname, data, ret); break;
# endif
@@ -633,8 +863,8 @@ sockopt_inspect(VALUE self)
}
if (!inspected) {
- data = rb_str_dump(data);
- rb_str_catf(ret, " %s", StringValueCStr(data));
+ rb_str_cat2(ret, " ");
+ rb_str_append(ret, rb_str_dump(data));
}
rb_str_cat2(ret, ">");
@@ -659,11 +889,16 @@ sockopt_unpack(VALUE self, VALUE template)
}
void
-Init_sockopt(void)
+rsock_init_sockopt(void)
{
- /* for rdoc */
- /* rb_cSocket = rb_define_class("Socket", rb_cBasicSocket); */
-
+ /*
+ * Document-class: Socket::Option
+ *
+ * Socket::Option represents a socket option used by
+ * BasicSocket#getsockopt and BasicSocket#setsockopt. A socket option
+ * contains the socket #family, protocol #level, option name #optname and
+ * option value #data.
+ */
rb_cSockOpt = rb_define_class_under(rb_cSocket, "Option", rb_cObject);
rb_define_method(rb_cSockOpt, "initialize", sockopt_initialize, 4);
rb_define_method(rb_cSockOpt, "family", sockopt_family_m, 0);
diff --git a/ext/socket/raddrinfo.c b/ext/socket/raddrinfo.c
index 21cc953e1f..2229269212 100644
--- a/ext/socket/raddrinfo.c
+++ b/ext/socket/raddrinfo.c
@@ -56,7 +56,7 @@ ruby_getaddrinfo(const char *nodename, const char *servname,
#if defined(_AIX)
static int
ruby_getaddrinfo__aix(const char *nodename, const char *servname,
- struct addrinfo *hints, struct addrinfo **res)
+ const struct addrinfo *hints, struct addrinfo **res)
{
int error = getaddrinfo(nodename, servname, hints, res);
struct addrinfo *r;
@@ -97,6 +97,54 @@ ruby_getnameinfo__aix(const struct sockaddr *sa, size_t salen,
ruby_getnameinfo__aix((sa), (salen), (host), (hostlen), (serv), (servlen), (flags))
#endif
+static int str_is_number(const char *);
+
+#if defined(__APPLE__)
+static int
+ruby_getaddrinfo__darwin(const char *nodename, const char *servname,
+ const struct addrinfo *hints, struct addrinfo **res)
+{
+ /* fix [ruby-core:29427] */
+ const char *tmp_servname;
+ struct addrinfo tmp_hints;
+ int error;
+
+ tmp_servname = servname;
+ MEMCPY(&tmp_hints, hints, struct addrinfo, 1);
+ if (nodename && servname) {
+ if (str_is_number(tmp_servname) && atoi(servname) == 0) {
+ tmp_servname = NULL;
+#ifdef AI_NUMERICSERV
+ if (tmp_hints.ai_flags) tmp_hints.ai_flags &= ~AI_NUMERICSERV;
+#endif
+ }
+ }
+
+ error = getaddrinfo(nodename, tmp_servname, &tmp_hints, res);
+ if (error == 0) {
+ /* [ruby-dev:23164] */
+ struct addrinfo *r;
+ r = *res;
+ while (r) {
+ if (! r->ai_socktype) r->ai_socktype = hints->ai_socktype;
+ if (! r->ai_protocol) {
+ if (r->ai_socktype == SOCK_DGRAM) {
+ r->ai_protocol = IPPROTO_UDP;
+ }
+ else if (r->ai_socktype == SOCK_STREAM) {
+ r->ai_protocol = IPPROTO_TCP;
+ }
+ }
+ r = r->ai_next;
+ }
+ }
+
+ return error;
+}
+#undef getaddrinfo
+#define getaddrinfo(node,serv,hints,res) ruby_getaddrinfo__darwin((node),(serv),(hints),(res))
+#endif
+
#ifndef GETADDRINFO_EMU
struct getaddrinfo_arg
{
@@ -125,11 +173,12 @@ rb_getaddrinfo(const char *node, const char *service,
#else
struct getaddrinfo_arg arg;
int ret;
+ MEMZERO(&arg, sizeof arg, 1);
arg.node = node;
arg.service = service;
arg.hints = hints;
arg.res = res;
- ret = BLOCKING_REGION(nogvl_getaddrinfo, &arg);
+ ret = (int)BLOCKING_REGION(nogvl_getaddrinfo, &arg);
return ret;
#endif
}
@@ -151,8 +200,8 @@ nogvl_getnameinfo(void *arg)
{
struct getnameinfo_arg *ptr = arg;
return getnameinfo(ptr->sa, ptr->salen,
- ptr->host, ptr->hostlen,
- ptr->serv, ptr->servlen,
+ ptr->host, (socklen_t)ptr->hostlen,
+ ptr->serv, (socklen_t)ptr->servlen,
ptr->flags);
}
#endif
@@ -174,7 +223,7 @@ rb_getnameinfo(const struct sockaddr *sa, socklen_t salen,
arg.serv = serv;
arg.servlen = servlen;
arg.flags = flags;
- ret = BLOCKING_REGION(nogvl_getnameinfo, &arg);
+ ret = (int)BLOCKING_REGION(nogvl_getnameinfo, &arg);
return ret;
#endif
}
@@ -200,7 +249,7 @@ rsock_make_ipaddr(struct sockaddr *addr)
}
static void
-make_inetaddr(long host, char *buf, size_t len)
+make_inetaddr(unsigned int host, char *buf, size_t len)
{
struct sockaddr_in sin;
@@ -212,7 +261,7 @@ make_inetaddr(long host, char *buf, size_t len)
}
static int
-str_isnumber(const char *p)
+str_is_number(const char *p)
{
char *ep;
@@ -233,7 +282,7 @@ host_str(VALUE host, char *hbuf, size_t len, int *flags_ptr)
return NULL;
}
else if (rb_obj_is_kind_of(host, rb_cInteger)) {
- unsigned long i = NUM2ULONG(host);
+ unsigned int i = NUM2UINT(host);
make_inetaddr(htonl(i), hbuf, len);
if (flags_ptr) *flags_ptr |= AI_NUMERICHOST;
@@ -302,7 +351,7 @@ rsock_getaddrinfo(VALUE host, VALUE port, struct addrinfo *hints, int socktype_h
hostp = host_str(host, hbuf, sizeof(hbuf), &additional_flags);
portp = port_str(port, pbuf, sizeof(pbuf), &additional_flags);
- if (socktype_hack && hints->ai_socktype == 0 && str_isnumber(portp)) {
+ if (socktype_hack && hints->ai_socktype == 0 && str_is_number(portp)) {
hints->ai_socktype = SOCK_DGRAM;
}
hints->ai_flags |= additional_flags;
@@ -315,24 +364,6 @@ rsock_getaddrinfo(VALUE host, VALUE port, struct addrinfo *hints, int socktype_h
rsock_raise_socket_error("getaddrinfo", error);
}
-#if defined(__APPLE__) && defined(__MACH__)
- {
- struct addrinfo *r;
- r = res;
- while (r) {
- if (! r->ai_socktype) r->ai_socktype = hints->ai_socktype;
- if (! r->ai_protocol) {
- if (r->ai_socktype == SOCK_DGRAM) {
- r->ai_protocol = IPPROTO_UDP;
- }
- else if (r->ai_socktype == SOCK_STREAM) {
- r->ai_protocol = IPPROTO_TCP;
- }
- }
- r = r->ai_next;
- }
- }
-#endif
return res;
}
@@ -457,6 +488,13 @@ make_hostent_internal(struct hostent_arg *arg)
}
VALUE
+rsock_freeaddrinfo(struct addrinfo *addr)
+{
+ freeaddrinfo(addr);
+ return Qnil;
+}
+
+VALUE
rsock_make_hostent(VALUE host, struct addrinfo *addr, VALUE (*ipaddr)(struct sockaddr *, size_t))
{
struct hostent_arg arg;
@@ -465,7 +503,7 @@ rsock_make_hostent(VALUE host, struct addrinfo *addr, VALUE (*ipaddr)(struct soc
arg.addr = addr;
arg.ipaddr = ipaddr;
return rb_ensure(make_hostent_internal, (VALUE)&arg,
- RUBY_METHOD_FUNC(freeaddrinfo), (VALUE)addr);
+ rsock_freeaddrinfo, (VALUE)addr);
}
typedef struct {
@@ -474,41 +512,44 @@ typedef struct {
int pfamily;
int socktype;
int protocol;
- size_t sockaddr_len;
+ socklen_t sockaddr_len;
struct sockaddr_storage addr;
} rb_addrinfo_t;
static void
-addrinfo_mark(rb_addrinfo_t *rai)
+addrinfo_mark(void *ptr)
{
+ rb_addrinfo_t *rai = ptr;
if (rai) {
rb_gc_mark(rai->inspectname);
rb_gc_mark(rai->canonname);
}
}
-static void
-addrinfo_free(rb_addrinfo_t *rai)
+#define addrinfo_free RUBY_TYPED_DEFAULT_FREE
+
+static size_t
+addrinfo_memsize(const void *ptr)
{
- xfree(rai);
+ return ptr ? sizeof(rb_addrinfo_t) : 0;
}
+static const rb_data_type_t addrinfo_type = {
+ "socket/addrinfo",
+ {addrinfo_mark, addrinfo_free, addrinfo_memsize,},
+};
+
static VALUE
addrinfo_s_allocate(VALUE klass)
{
- return Data_Wrap_Struct(klass, addrinfo_mark, addrinfo_free, 0);
+ return TypedData_Wrap_Struct(klass, &addrinfo_type, 0);
}
-#define IS_ADDRINFO(obj) (RDATA(obj)->dmark == (RUBY_DATA_FUNC)addrinfo_mark)
-static rb_addrinfo_t *
+#define IS_ADDRINFO(obj) rb_typeddata_is_kind_of((obj), &addrinfo_type)
+static inline rb_addrinfo_t *
check_addrinfo(VALUE self)
{
- Check_Type(self, RUBY_T_DATA);
- if (!IS_ADDRINFO(self)) {
- rb_raise(rb_eTypeError, "wrong argument type %s (expected Addrinfo)",
- rb_class2name(CLASS_OF(self)));
- }
- return DATA_PTR(self);
+ return rb_check_typeddata(self, &addrinfo_type);
}
static rb_addrinfo_t *
@@ -534,11 +575,11 @@ alloc_addrinfo()
}
static void
-init_addrinfo(rb_addrinfo_t *rai, struct sockaddr *sa, size_t len,
+init_addrinfo(rb_addrinfo_t *rai, struct sockaddr *sa, socklen_t len,
int pfamily, int socktype, int protocol,
VALUE canonname, VALUE inspectname)
{
- if (sizeof(rai->addr) < len)
+ if ((socklen_t)sizeof(rai->addr) < len)
rb_raise(rb_eArgError, "sockaddr string too big");
memcpy((void *)&rai->addr, (void *)sa, len);
rai->sockaddr_len = len;
@@ -733,8 +774,9 @@ init_unix_addrinfo(rb_addrinfo_t *rai, VALUE path, int socktype)
un.sun_family = AF_UNIX;
memcpy((void*)&un.sun_path, RSTRING_PTR(path), RSTRING_LEN(path));
-
- init_addrinfo(rai, (struct sockaddr *)&un, sizeof(un), PF_UNIX, socktype, 0, Qnil, Qnil);
+
+ init_addrinfo(rai, (struct sockaddr *)&un, (socklen_t)sizeof(un),
+ PF_UNIX, socktype, 0, Qnil, Qnil);
}
#endif
@@ -746,7 +788,7 @@ init_unix_addrinfo(rb_addrinfo_t *rai, VALUE path, int socktype)
* Addrinfo.new(sockaddr, family, socktype, protocol) => addrinfo
*
* returns a new instance of Addrinfo.
- * The instnace contains sockaddr, family, socktype, protocol.
+ * The instance contains sockaddr, family, socktype, protocol.
* sockaddr means struct sockaddr which can be used for connect(2), etc.
* family, socktype and protocol are integers which is used for arguments of socket(2).
*
@@ -756,9 +798,9 @@ init_unix_addrinfo(rb_addrinfo_t *rai, VALUE path, int socktype)
* Socket.sockaddr_in or Socket.unpack_sockaddr_un.
*
* sockaddr examples:
- * - ["AF_INET", 46102, "localhost.localdomain", "127.0.0.1"]
- * - ["AF_INET6", 42304, "ip6-localhost", "::1"]
- * - ["AF_UNIX", "/tmp/sock"]
+ * - ["AF_INET", 46102, "localhost.localdomain", "127.0.0.1"]
+ * - ["AF_INET6", 42304, "ip6-localhost", "::1"]
+ * - ["AF_UNIX", "/tmp/sock"]
* - Socket.sockaddr_in("smtp", "2001:DB8::1")
* - Socket.sockaddr_in(80, "172.18.22.42")
* - Socket.sockaddr_in(80, "www.ruby-lang.org")
@@ -771,16 +813,16 @@ init_unix_addrinfo(rb_addrinfo_t *rai, VALUE path, int socktype)
* family is specified as an integer to specify the protocol family such as Socket::PF_INET.
* It can be a symbol or a string which is the constant name
* with or without PF_ prefix such as :INET, :INET6, :UNIX, "PF_INET", etc.
- * If ommitted, PF_UNSPEC is assumed.
+ * If omitted, PF_UNSPEC is assumed.
*
* socktype is specified as an integer to specify the socket type such as Socket::SOCK_STREAM.
* It can be a symbol or a string which is the constant name
* with or without SOCK_ prefix such as :STREAM, :DGRAM, :RAW, "SOCK_STREAM", etc.
- * If ommitted, 0 is assumed.
+ * If omitted, 0 is assumed.
*
* protocol is specified as an integer to specify the protocol such as Socket::IPPROTO_TCP.
* It must be an integer, unlike family and socktype.
- * If ommitted, 0 is assumed.
+ * If omitted, 0 is assumed.
* Note that 0 is reasonable value for most protocols, except raw socket.
*
*/
@@ -791,7 +833,7 @@ addrinfo_initialize(int argc, VALUE *argv, VALUE self)
VALUE sockaddr_arg, sockaddr_ary, pfamily, socktype, protocol;
int i_pfamily, i_socktype, i_protocol;
struct sockaddr *sockaddr_ptr;
- size_t sockaddr_len;
+ socklen_t sockaddr_len;
VALUE canonname = Qnil, inspectname = Qnil;
if (check_addrinfo(self))
@@ -855,7 +897,7 @@ addrinfo_initialize(int argc, VALUE *argv, VALUE self)
else {
StringValue(sockaddr_arg);
sockaddr_ptr = (struct sockaddr *)RSTRING_PTR(sockaddr_arg);
- sockaddr_len = RSTRING_LEN(sockaddr_arg);
+ sockaddr_len = RSTRING_LENINT(sockaddr_arg);
init_addrinfo(rai, sockaddr_ptr, sockaddr_len,
i_pfamily, i_socktype, i_protocol,
canonname, inspectname);
@@ -867,7 +909,7 @@ addrinfo_initialize(int argc, VALUE *argv, VALUE self)
static int
get_afamily(struct sockaddr *addr, socklen_t len)
{
- if ((char*)&addr->sa_family + sizeof(addr->sa_family) - (char*)addr <= len)
+ if ((socklen_t)((char*)&addr->sa_family + sizeof(addr->sa_family) - (char*)addr) <= len)
return addr->sa_family;
else
return AF_UNSPEC;
@@ -887,7 +929,7 @@ inspect_sockaddr(VALUE addrinfo, VALUE ret)
if (rai->sockaddr_len == 0) {
rb_str_cat2(ret, "empty-sockaddr");
}
- else if (rai->sockaddr_len < ((char*)&rai->addr.ss_family + sizeof(rai->addr.ss_family)) - (char*)&rai->addr)
+ else if ((long)rai->sockaddr_len < ((char*)&rai->addr.ss_family + sizeof(rai->addr.ss_family)) - (char*)&rai->addr)
rb_str_cat2(ret, "too-short-sockaddr");
else {
switch (rai->addr.ss_family) {
@@ -895,7 +937,7 @@ inspect_sockaddr(VALUE addrinfo, VALUE ret)
{
struct sockaddr_in *addr;
int port;
- if (rai->sockaddr_len < sizeof(struct sockaddr_in)) {
+ if (rai->sockaddr_len < (socklen_t)sizeof(struct sockaddr_in)) {
rb_str_cat2(ret, "too-short-AF_INET-sockaddr");
}
else {
@@ -908,7 +950,7 @@ inspect_sockaddr(VALUE addrinfo, VALUE ret)
port = ntohs(addr->sin_port);
if (port)
rb_str_catf(ret, ":%d", port);
- if (sizeof(struct sockaddr_in) < rai->sockaddr_len)
+ if ((socklen_t)sizeof(struct sockaddr_in) < rai->sockaddr_len)
rb_str_catf(ret, "(sockaddr %d bytes too long)", (int)(rai->sockaddr_len - sizeof(struct sockaddr_in)));
}
break;
@@ -921,7 +963,7 @@ inspect_sockaddr(VALUE addrinfo, VALUE ret)
char hbuf[1024];
int port;
int error;
- if (rai->sockaddr_len < sizeof(struct sockaddr_in6)) {
+ if (rai->sockaddr_len < (socklen_t)sizeof(struct sockaddr_in6)) {
rb_str_cat2(ret, "too-short-AF_INET6-sockaddr");
}
else {
@@ -931,7 +973,7 @@ inspect_sockaddr(VALUE addrinfo, VALUE ret)
* draft-ietf-ipv6-scope-api-00.txt: Scoped Address Extensions to the IPv6 Basic Socket API
*/
error = getnameinfo((struct sockaddr *)&rai->addr, rai->sockaddr_len,
- hbuf, sizeof(hbuf), NULL, 0,
+ hbuf, (socklen_t)sizeof(hbuf), NULL, 0,
NI_NUMERICHOST|NI_NUMERICSERV);
if (error) {
rsock_raise_socket_error("getnameinfo", error);
@@ -943,7 +985,7 @@ inspect_sockaddr(VALUE addrinfo, VALUE ret)
port = ntohs(addr->sin6_port);
rb_str_catf(ret, "[%s]:%d", hbuf, port);
}
- if (sizeof(struct sockaddr_in6) < rai->sockaddr_len)
+ if ((socklen_t)sizeof(struct sockaddr_in6) < rai->sockaddr_len)
rb_str_catf(ret, "(sockaddr %d bytes too long)", (int)(rai->sockaddr_len - sizeof(struct sockaddr_in6)));
}
break;
@@ -1172,7 +1214,7 @@ addrinfo_mdump(VALUE self)
char hbuf[NI_MAXHOST], pbuf[NI_MAXSERV];
int error;
error = getnameinfo((struct sockaddr *)&rai->addr, rai->sockaddr_len,
- hbuf, sizeof(hbuf), pbuf, sizeof(pbuf),
+ hbuf, (socklen_t)sizeof(hbuf), pbuf, (socklen_t)sizeof(pbuf),
NI_NUMERICHOST|NI_NUMERICSERV);
if (error) {
rsock_raise_socket_error("getnameinfo", error);
@@ -1193,7 +1235,7 @@ addrinfo_mload(VALUE self, VALUE ary)
VALUE canonname, inspectname;
int afamily, pfamily, socktype, protocol;
struct sockaddr_storage ss;
- size_t len;
+ socklen_t len;
rb_addrinfo_t *rai;
if (check_addrinfo(self))
@@ -1263,7 +1305,7 @@ addrinfo_mload(VALUE self, VALUE ary)
if (sizeof(uaddr.sun_path) <= (size_t)RSTRING_LEN(v))
rb_raise(rb_eSocket, "too long AF_UNIX path");
memcpy(uaddr.sun_path, RSTRING_PTR(v), RSTRING_LEN(v));
- len = sizeof(uaddr);
+ len = (socklen_t)sizeof(uaddr);
memcpy(&ss, &uaddr, len);
break;
}
@@ -1361,10 +1403,11 @@ addrinfo_protocol(VALUE self)
/*
* call-seq:
* addrinfo.to_sockaddr => string
+ * addrinfo.to_s => string
*
* returns the socket address as packed struct sockaddr string.
*
- * Addrinfo.tcp("localhost", 80).to_sockaddr
+ * Addrinfo.tcp("localhost", 80).to_sockaddr
* #=> "\x02\x00\x00P\x7F\x00\x00\x01\x00\x00\x00\x00\x00\x00\x00\x00"
*
*/
@@ -1516,7 +1559,7 @@ addrinfo_getnameinfo(int argc, VALUE *argv, VALUE self)
flags |= NI_DGRAM;
error = getnameinfo((struct sockaddr *)&rai->addr, rai->sockaddr_len,
- hbuf, sizeof(hbuf), pbuf, sizeof(pbuf),
+ hbuf, (socklen_t)sizeof(hbuf), pbuf, (socklen_t)sizeof(pbuf),
flags);
if (error) {
rsock_raise_socket_error("getnameinfo", error);
@@ -1857,7 +1900,7 @@ addrinfo_ipv6_to_ipv4(VALUE self)
sin4.sin_family = AF_INET;
SET_SIN_LEN(&sin4, sizeof(sin4));
memcpy(&sin4.sin_addr, (char*)addr + sizeof(*addr) - sizeof(sin4.sin_addr), sizeof(sin4.sin_addr));
- return rsock_addrinfo_new((struct sockaddr *)&sin4, sizeof(sin4),
+ return rsock_addrinfo_new((struct sockaddr *)&sin4, (socklen_t)sizeof(sin4),
PF_INET, rai->socktype, rai->protocol,
rai->canonname, rai->inspectname);
}
@@ -1917,18 +1960,18 @@ addrinfo_unix_path(VALUE self)
*
* nodename or service can be nil if no conversion intended.
*
- * family, socktype and protocol are hint for prefered protocol.
- * If the result will be used for a socket with SOCK_STREAM,
+ * family, socktype and protocol are hint for preferred protocol.
+ * If the result will be used for a socket with SOCK_STREAM,
* SOCK_STREAM should be specified as socktype.
* If so, Addrinfo.getaddrinfo returns addrinfo list appropriate for SOCK_STREAM.
* If they are omitted or nil is given, the result is not restricted.
- *
- * Similary, PF_INET6 as family restricts for IPv6.
+ *
+ * Similarly, PF_INET6 as family restricts for IPv6.
*
* flags should be bitwise OR of Socket::AI_??? constants.
*
* Note that socktype should be specified whenever application knows the usage of the address.
- * Some platform causes an error when socktype is ommitted and servname is specified as an integer
+ * Some platform causes an error when socktype is omitted and servname is specified as an integer
* because some port numbers, 512 for example, are ambiguous without socktype.
*
* Addrinfo.getaddrinfo("www.kame.net", 80, nil, :STREAM)
@@ -2040,7 +2083,7 @@ VALUE
rsock_sockaddr_string_value(volatile VALUE *v)
{
VALUE val = *v;
- if (TYPE(val) == RUBY_T_DATA && IS_ADDRINFO(val)) {
+ if (IS_ADDRINFO(val)) {
*v = addrinfo_to_sockaddr(val);
}
StringValue(*v);
@@ -2057,7 +2100,7 @@ rsock_sockaddr_string_value_ptr(volatile VALUE *v)
VALUE
rb_check_sockaddr_string_type(VALUE val)
{
- if (TYPE(val) == RUBY_T_DATA && IS_ADDRINFO(val))
+ if (IS_ADDRINFO(val))
return addrinfo_to_sockaddr(val);
return rb_check_string_type(val);
}
@@ -2068,7 +2111,7 @@ rsock_fd_socket_addrinfo(int fd, struct sockaddr *addr, socklen_t len)
int family;
int socktype;
int ret;
- socklen_t optlen = sizeof(socktype);
+ socklen_t optlen = (socklen_t)sizeof(socktype);
/* assumes protocol family and address family are identical */
family = get_afamily(addr, len);
@@ -2106,8 +2149,12 @@ rsock_io_socket_addrinfo(VALUE io, struct sockaddr *addr, socklen_t len)
* Addrinfo class
*/
void
-Init_addrinfo(void)
+rsock_init_addrinfo(void)
{
+ /*
+ * The Addrinfo class maps <tt>struct addrinfo</tt> to ruby. This
+ * structure identifies an Internet host and a service.
+ */
rb_cAddrinfo = rb_define_class("Addrinfo", rb_cData);
rb_define_alloc_func(rb_cAddrinfo, addrinfo_s_allocate);
rb_define_method(rb_cAddrinfo, "initialize", addrinfo_initialize, -1);
diff --git a/ext/socket/rubysocket.h b/ext/socket/rubysocket.h
index 27980c3874..4c0efdb479 100644
--- a/ext/socket/rubysocket.h
+++ b/ext/socket/rubysocket.h
@@ -4,6 +4,7 @@
#include "ruby/ruby.h"
#include "ruby/io.h"
#include "ruby/util.h"
+#include "internal.h"
#include <stdio.h>
#include <sys/types.h>
#include <sys/stat.h>
@@ -98,7 +99,7 @@
#define pseudo_AF_FTIP pseudo_AF_RTIP
#ifndef HAVE_GETADDRINFO
-# include "addrinfo.h"
+#include "addrinfo.h"
#endif
#include "sockport.h"
@@ -138,6 +139,16 @@ struct sockaddr_storage {
};
#endif
+#if defined __APPLE__ && defined __MACH__
+/*
+ * CMSG_ macros are broken on 64bit darwin, because __DARWIN_ALIGN
+ * aligns up to __darwin_size_t which is 64bit, but CMSG_DATA is
+ * 32bit-aligned.
+ */
+#undef __DARWIN_ALIGNBYTES
+#define __DARWIN_ALIGNBYTES (sizeof(unsigned int) - 1)
+#endif
+
#if defined(_AIX)
#ifndef CMSG_SPACE
# define CMSG_SPACE(len) (_CMSG_ALIGN(sizeof(struct cmsghdr)) + _CMSG_ALIGN(len))
@@ -187,6 +198,7 @@ int Rconnect();
#include "constdefs.h"
#define BLOCKING_REGION(func, arg) (long)rb_thread_blocking_region((func), (arg), RUBY_UBF_IO, 0)
+#define BLOCKING_REGION_FD(func, arg) (long)rb_thread_io_blocking_region((func), (arg), (arg)->fd)
#define SockAddrStringValue(v) rsock_sockaddr_string_value(&(v))
#define SockAddrStringValuePtr(v) rsock_sockaddr_string_value_ptr(&(v))
@@ -218,6 +230,8 @@ VALUE rsock_make_ipaddr(struct sockaddr *addr);
VALUE rsock_ipaddr(struct sockaddr *sockaddr, int norevlookup);
VALUE rsock_make_hostent(VALUE host, struct addrinfo *addr, VALUE (*ipaddr)(struct sockaddr *, size_t));
+int rsock_revlookup_flag(VALUE revlookup, int *norevlookup);
+
#ifdef HAVE_SYS_UN_H
const char* rsock_unixpath(struct sockaddr_un *sockaddr, socklen_t len);
VALUE rsock_unixaddr(struct sockaddr_un *sockaddr, socklen_t len);
@@ -254,25 +268,41 @@ int rsock_connect(int fd, const struct sockaddr *sockaddr, int len, int socks);
VALUE rsock_s_accept(VALUE klass, int fd, struct sockaddr *sockaddr, socklen_t *len);
VALUE rsock_s_accept_nonblock(VALUE klass, rb_io_t *fptr, struct sockaddr *sockaddr, socklen_t *len);
+VALUE rsock_sock_listen(VALUE sock, VALUE log);
VALUE rsock_sockopt_new(int family, int level, int optname, VALUE data);
+#if defined(HAVE_SENDMSG)
+VALUE rsock_bsock_sendmsg(int argc, VALUE *argv, VALUE sock);
+VALUE rsock_bsock_sendmsg_nonblock(int argc, VALUE *argv, VALUE sock);
+#else
+#define rsock_bsock_sendmsg rb_f_notimplement
+#define rsock_bsock_sendmsg_nonblock rb_f_notimplement
+#endif
+#if defined(HAVE_RECVMSG)
+VALUE rsock_bsock_recvmsg(int argc, VALUE *argv, VALUE sock);
+VALUE rsock_bsock_recvmsg_nonblock(int argc, VALUE *argv, VALUE sock);
+#else
+#define rsock_bsock_recvmsg rb_f_notimplement
+#define rsock_bsock_recvmsg_nonblock rb_f_notimplement
+#endif
+
#ifdef HAVE_ST_MSG_CONTROL
-void rsock_discard_cmsg_resource(struct msghdr *mh);
-#endif
-
-void Init_basicsocket(void);
-void Init_ipsocket(void);
-void Init_tcpsocket(void);
-void Init_tcpserver(void);
-void Init_sockssocket(void);
-void Init_udpsocket(void);
-void Init_unixsocket(void);
-void Init_unixserver(void);
-void Init_socket_constants(void);
-void Init_ancdata(void);
-void Init_addrinfo(void);
-void Init_sockopt(void);
-void Init_socket_init(void);
+void rsock_discard_cmsg_resource(struct msghdr *mh, int msg_peek_p);
+#endif
+
+void rsock_init_basicsocket(void);
+void rsock_init_ipsocket(void);
+void rsock_init_tcpsocket(void);
+void rsock_init_tcpserver(void);
+void rsock_init_sockssocket(void);
+void rsock_init_udpsocket(void);
+void rsock_init_unixsocket(void);
+void rsock_init_unixserver(void);
+void rsock_init_socket_constants(void);
+void rsock_init_ancdata(void);
+void rsock_init_addrinfo(void);
+void rsock_init_sockopt(void);
+void rsock_init_socket_init(void);
#endif
diff --git a/ext/socket/socket.c b/ext/socket/socket.c
index d041293a68..4613892e7d 100644
--- a/ext/socket/socket.c
+++ b/ext/socket/socket.c
@@ -119,6 +119,8 @@ rsock_sock_s_socketpair(int argc, VALUE *argv, VALUE klass)
if (ret < 0) {
rb_sys_fail("socketpair(2)");
}
+ rb_update_max_fd(sp[0]);
+ rb_update_max_fd(sp[1]);
s1 = rsock_init_sock(rb_obj_alloc(klass), sp[0]);
s2 = rsock_init_sock(rb_obj_alloc(klass), sp[1]);
@@ -134,14 +136,14 @@ rsock_sock_s_socketpair(int argc, VALUE *argv, VALUE klass)
/*
* call-seq:
- * socket.connect(server_sockaddr) => 0
- *
- * Requests a connection to be made on the given +server_sockaddr+. Returns 0 if
+ * socket.connect(remote_sockaddr) => 0
+ *
+ * Requests a connection to be made on the given +remote_sockaddr+. Returns 0 if
* successful, otherwise an exception is raised.
- *
+ *
* === Parameter
- * * +server_sockaddr+ - the +struct+ sockaddr contained in a string
- *
+ * * +remote_sockaddr+ - the +struct+ sockaddr contained in a string or Addrinfo object
+ *
* === Example:
* # Pull down Google's web page
* require 'socket'
@@ -150,17 +152,17 @@ rsock_sock_s_socketpair(int argc, VALUE *argv, VALUE klass)
* sockaddr = Socket.pack_sockaddr_in( 80, 'www.google.com' )
* socket.connect( sockaddr )
* socket.write( "GET / HTTP/1.0\r\n\r\n" )
- * results = socket.read
- *
+ * results = socket.read
+ *
* === Unix-based Exceptions
- * On unix-based systems the following system exceptions may be raised if
+ * On unix-based systems the following system exceptions may be raised if
* the call to _connect_ fails:
* * Errno::EACCES - search permission is denied for a component of the prefix
- * path or write access to the +socket+ is denided
+ * path or write access to the +socket+ is denied
* * Errno::EADDRINUSE - the _sockaddr_ is already in use
* * Errno::EADDRNOTAVAIL - the specified _sockaddr_ is not available from the
* local machine
- * * Errno::EAFNOSUPPORT - the specified _sockaddr_ is not a valid address for
+ * * Errno::EAFNOSUPPORT - the specified _sockaddr_ is not a valid address for
* the address family of the specified +socket+
* * Errno::EALREADY - a connection is already in progress for the specified
* socket
@@ -169,56 +171,56 @@ rsock_sock_s_socketpair(int argc, VALUE *argv, VALUE klass)
* refused the connection request
* * Errno::ECONNRESET - the remote host reset the connection request
* * Errno::EFAULT - the _sockaddr_ cannot be accessed
- * * Errno::EHOSTUNREACH - the destination host cannot be reached (probably
+ * * Errno::EHOSTUNREACH - the destination host cannot be reached (probably
* because the host is down or a remote router cannot reach it)
* * Errno::EINPROGRESS - the O_NONBLOCK is set for the +socket+ and the
- * connection cnanot be immediately established; the connection will be
+ * connection cannot be immediately established; the connection will be
* established asynchronously
* * Errno::EINTR - the attempt to establish the connection was interrupted by
* delivery of a signal that was caught; the connection will be established
* asynchronously
* * Errno::EISCONN - the specified +socket+ is already connected
* * Errno::EINVAL - the address length used for the _sockaddr_ is not a valid
- * length for the address family or there is an invalid family in _sockaddr_
+ * length for the address family or there is an invalid family in _sockaddr_
* * Errno::ENAMETOOLONG - the pathname resolved had a length which exceeded
* PATH_MAX
* * Errno::ENETDOWN - the local interface used to reach the destination is down
* * Errno::ENETUNREACH - no route to the network is present
* * Errno::ENOBUFS - no buffer space is available
- * * Errno::ENOSR - there were insufficient STREAMS resources available to
+ * * Errno::ENOSR - there were insufficient STREAMS resources available to
* complete the operation
* * Errno::ENOTSOCK - the +socket+ argument does not refer to a socket
* * Errno::EOPNOTSUPP - the calling +socket+ is listening and cannot be connected
- * * Errno::EPROTOTYPE - the _sockaddr_ has a different type than the socket
+ * * Errno::EPROTOTYPE - the _sockaddr_ has a different type than the socket
* bound to the specified peer address
* * Errno::ETIMEDOUT - the attempt to connect time out before a connection
* was made.
- *
+ *
* On unix-based systems if the address family of the calling +socket+ is
* AF_UNIX the follow exceptions may be raised if the call to _connect_
* fails:
- * * Errno::EIO - an i/o error occured while reading from or writing to the
+ * * Errno::EIO - an i/o error occurred while reading from or writing to the
* file system
* * Errno::ELOOP - too many symbolic links were encountered in translating
* the pathname in _sockaddr_
- * * Errno::ENAMETOOLLONG - a component of a pathname exceeded NAME_MAX
- * characters, or an entired pathname exceeded PATH_MAX characters
+ * * Errno::ENAMETOOLLONG - a component of a pathname exceeded NAME_MAX
+ * characters, or an entire pathname exceeded PATH_MAX characters
* * Errno::ENOENT - a component of the pathname does not name an existing file
* or the pathname is an empty string
* * Errno::ENOTDIR - a component of the path prefix of the pathname in _sockaddr_
- * is not a directory
- *
+ * is not a directory
+ *
* === Windows Exceptions
- * On Windows systems the following system exceptions may be raised if
+ * On Windows systems the following system exceptions may be raised if
* the call to _connect_ fails:
* * Errno::ENETDOWN - the network is down
* * Errno::EADDRINUSE - the socket's local address is already in use
* * Errno::EINTR - the socket was cancelled
* * Errno::EINPROGRESS - a blocking socket is in progress or the service provider
- * is still processing a callback function. Or a nonblocking connect call is
+ * is still processing a callback function. Or a nonblocking connect call is
* in progress on the +socket+.
* * Errno::EALREADY - see Errno::EINVAL
- * * Errno::EADDRNOTAVAIL - the remote address is not a valid address, such as
+ * * Errno::EADDRNOTAVAIL - the remote address is not a valid address, such as
* ADDR_ANY TODO check ADDRANY TO INADDR_ANY
* * Errno::EAFNOSUPPORT - addresses in the specified family cannot be used with
* with this +socket+
@@ -234,11 +236,11 @@ rsock_sock_s_socketpair(int argc, VALUE *argv, VALUE klass)
* * Errno::ENOTSOCK - the +socket+ argument does not refer to a socket
* * Errno::ETIMEDOUT - the attempt to connect time out before a connection
* was made.
- * * Errno::EWOULDBLOCK - the socket is marked as nonblocking and the
+ * * Errno::EWOULDBLOCK - the socket is marked as nonblocking and the
* connection cannot be completed immediately
- * * Errno::EACCES - the attempt to connect the datagram socket to the
+ * * Errno::EACCES - the attempt to connect the datagram socket to the
* broadcast address failed
- *
+ *
* === See
* * connect manual pages on unix-based systems
* * connect function in Microsoft's Winsock functions reference
@@ -253,7 +255,7 @@ sock_connect(VALUE sock, VALUE addr)
addr = rb_str_new4(addr);
GetOpenFile(sock, fptr);
fd = fptr->fd;
- n = rsock_connect(fd, (struct sockaddr*)RSTRING_PTR(addr), RSTRING_LEN(addr), 0);
+ n = rsock_connect(fd, (struct sockaddr*)RSTRING_PTR(addr), RSTRING_LENINT(addr), 0);
if (n < 0) {
rb_sys_fail("connect(2)");
}
@@ -263,15 +265,15 @@ sock_connect(VALUE sock, VALUE addr)
/*
* call-seq:
- * socket.connect_nonblock(server_sockaddr) => 0
- *
- * Requests a connection to be made on the given +server_sockaddr+ after
+ * socket.connect_nonblock(remote_sockaddr) => 0
+ *
+ * Requests a connection to be made on the given +remote_sockaddr+ after
* O_NONBLOCK is set for the underlying file descriptor.
* Returns 0 if successful, otherwise an exception is raised.
- *
+ *
* === Parameter
- * * +server_sockaddr+ - the +struct+ sockaddr contained in a string
- *
+ * * +remote_sockaddr+ - the +struct+ sockaddr contained in a string or Addrinfo object
+ *
* === Example:
* # Pull down Google's web page
* require 'socket'
@@ -283,15 +285,15 @@ sock_connect(VALUE sock, VALUE addr)
* rescue IO::WaitWritable
* IO.select(nil, [socket]) # wait 3-way handshake completion
* begin
- * socket.connect_nonblock(sockaddr) # check connection failure
+ * socket.connect_nonblock(sockaddr) # check connection failure
* rescue Errno::EISCONN
* end
* end
* socket.write("GET / HTTP/1.0\r\n\r\n")
- * results = socket.read
- *
+ * results = socket.read
+ *
* Refer to Socket#connect for the exceptions that may be thrown if the call
- * to _connect_nonblock_ fails.
+ * to _connect_nonblock_ fails.
*
* Socket#connect_nonblock may raise any error corresponding to connect(2) failure,
* including Errno::EINPROGRESS.
@@ -313,7 +315,7 @@ sock_connect_nonblock(VALUE sock, VALUE addr)
addr = rb_str_new4(addr);
GetOpenFile(sock, fptr);
rb_io_set_nonblock(fptr);
- n = connect(fptr->fd, (struct sockaddr*)RSTRING_PTR(addr), RSTRING_LEN(addr));
+ n = connect(fptr->fd, (struct sockaddr*)RSTRING_PTR(addr), RSTRING_LENINT(addr));
if (n < 0) {
if (errno == EINPROGRESS)
rb_mod_sys_fail(rb_mWaitWritable, "connect(2) would block");
@@ -325,33 +327,40 @@ sock_connect_nonblock(VALUE sock, VALUE addr)
/*
* call-seq:
- * socket.bind(server_sockaddr) => 0
- *
- * Binds to the given +struct+ sockaddr.
- *
+ * socket.bind(local_sockaddr) => 0
+ *
+ * Binds to the given local address.
+ *
* === Parameter
- * * +server_sockaddr+ - the +struct+ sockaddr contained in a string
+ * * +local_sockaddr+ - the +struct+ sockaddr contained in a string or an Addrinfo object
*
* === Example
* require 'socket'
+ *
+ * # use Addrinfo
+ * socket = Socket.new(:INET, :STREAM, 0)
+ * socket.bind(Addrinfo.tcp("127.0.0.1", 2222))
+ * p socket.local_address #=> #<Addrinfo: 127.0.0.1:2222 TCP>
+ *
+ * # use struct sockaddr
* include Socket::Constants
* socket = Socket.new( AF_INET, SOCK_STREAM, 0 )
* sockaddr = Socket.pack_sockaddr_in( 2200, 'localhost' )
* socket.bind( sockaddr )
- *
+ *
* === Unix-based Exceptions
- * On unix-based based systems the following system exceptions may be raised if
+ * On unix-based based systems the following system exceptions may be raised if
* the call to _bind_ fails:
* * Errno::EACCES - the specified _sockaddr_ is protected and the current
* user does not have permission to bind to it
* * Errno::EADDRINUSE - the specified _sockaddr_ is already in use
* * Errno::EADDRNOTAVAIL - the specified _sockaddr_ is not available from the
* local machine
- * * Errno::EAFNOSUPPORT - the specified _sockaddr_ isnot a valid address for
+ * * Errno::EAFNOSUPPORT - the specified _sockaddr_ is not a valid address for
* the family of the calling +socket+
* * Errno::EBADF - the _sockaddr_ specified is not a valid file descriptor
* * Errno::EFAULT - the _sockaddr_ argument cannot be accessed
- * * Errno::EINVAL - the +socket+ is already bound to an address, and the
+ * * Errno::EINVAL - the +socket+ is already bound to an address, and the
* protocol does not support binding to the new _sockaddr_ or the +socket+
* has been shut down.
* * Errno::EINVAL - the address length is not a valid length for the address
@@ -359,35 +368,35 @@ sock_connect_nonblock(VALUE sock, VALUE addr)
* * Errno::ENAMETOOLONG - the pathname resolved had a length which exceeded
* PATH_MAX
* * Errno::ENOBUFS - no buffer space is available
- * * Errno::ENOSR - there were insufficient STREAMS resources available to
+ * * Errno::ENOSR - there were insufficient STREAMS resources available to
* complete the operation
* * Errno::ENOTSOCK - the +socket+ does not refer to a socket
- * * Errno::EOPNOTSUPP - the socket type of the +socket+ does not support
+ * * Errno::EOPNOTSUPP - the socket type of the +socket+ does not support
* binding to an address
- *
+ *
* On unix-based based systems if the address family of the calling +socket+ is
* Socket::AF_UNIX the follow exceptions may be raised if the call to _bind_
* fails:
* * Errno::EACCES - search permission is denied for a component of the prefix
- * path or write access to the +socket+ is denided
+ * path or write access to the +socket+ is denied
* * Errno::EDESTADDRREQ - the _sockaddr_ argument is a null pointer
* * Errno::EISDIR - same as Errno::EDESTADDRREQ
* * Errno::EIO - an i/o error occurred
* * Errno::ELOOP - too many symbolic links were encountered in translating
* the pathname in _sockaddr_
- * * Errno::ENAMETOOLLONG - a component of a pathname exceeded NAME_MAX
- * characters, or an entired pathname exceeded PATH_MAX characters
+ * * Errno::ENAMETOOLLONG - a component of a pathname exceeded NAME_MAX
+ * characters, or an entire pathname exceeded PATH_MAX characters
* * Errno::ENOENT - a component of the pathname does not name an existing file
* or the pathname is an empty string
* * Errno::ENOTDIR - a component of the path prefix of the pathname in _sockaddr_
* is not a directory
* * Errno::EROFS - the name would reside on a read only filesystem
- *
+ *
* === Windows Exceptions
- * On Windows systems the following system exceptions may be raised if
+ * On Windows systems the following system exceptions may be raised if
* the call to _bind_ fails:
* * Errno::ENETDOWN-- the network is down
- * * Errno::EACCES - the attempt to connect the datagram socket to the
+ * * Errno::EACCES - the attempt to connect the datagram socket to the
* broadcast address failed
* * Errno::EADDRINUSE - the socket's local address is already in use
* * Errno::EADDRNOTAVAIL - the specified address is not a valid address for this
@@ -397,11 +406,11 @@ sock_connect_nonblock(VALUE sock, VALUE addr)
* * Errno::EINVAL - the +socket+ is already bound to an address
* * Errno::ENOBUFS - no buffer space is available
* * Errno::ENOTSOCK - the +socket+ argument does not refer to a socket
- *
+ *
* === See
* * bind manual pages on unix-based systems
* * bind function in Microsoft's Winsock functions reference
- */
+ */
static VALUE
sock_bind(VALUE sock, VALUE addr)
{
@@ -409,7 +418,7 @@ sock_bind(VALUE sock, VALUE addr)
SockAddrStringValue(addr);
GetOpenFile(sock, fptr);
- if (bind(fptr->fd, (struct sockaddr*)RSTRING_PTR(addr), RSTRING_LEN(addr)) < 0)
+ if (bind(fptr->fd, (struct sockaddr*)RSTRING_PTR(addr), RSTRING_LENINT(addr)) < 0)
rb_sys_fail("bind(2)");
return INT2FIX(0);
@@ -418,14 +427,14 @@ sock_bind(VALUE sock, VALUE addr)
/*
* call-seq:
* socket.listen( int ) => 0
- *
+ *
* Listens for connections, using the specified +int+ as the backlog. A call
- * to _listen_ only applies if the +socket+ is of type SOCK_STREAM or
+ * to _listen_ only applies if the +socket+ is of type SOCK_STREAM or
* SOCK_SEQPACKET.
- *
+ *
* === Parameter
* * +backlog+ - the maximum length of the queue for pending connections.
- *
+ *
* === Example 1
* require 'socket'
* include Socket::Constants
@@ -433,43 +442,43 @@ sock_bind(VALUE sock, VALUE addr)
* sockaddr = Socket.pack_sockaddr_in( 2200, 'localhost' )
* socket.bind( sockaddr )
* socket.listen( 5 )
- *
- * === Example 2 (listening on an arbitary port, unix-based systems only):
+ *
+ * === Example 2 (listening on an arbitrary port, unix-based systems only):
* require 'socket'
* include Socket::Constants
* socket = Socket.new( AF_INET, SOCK_STREAM, 0 )
* socket.listen( 1 )
- *
+ *
* === Unix-based Exceptions
* On unix based systems the above will work because a new +sockaddr+ struct
* is created on the address ADDR_ANY, for an arbitrary port number as handed
* off by the kernel. It will not work on Windows, because Windows requires that
* the +socket+ is bound by calling _bind_ before it can _listen_.
- *
+ *
* If the _backlog_ amount exceeds the implementation-dependent maximum
* queue length, the implementation's maximum queue length will be used.
- *
+ *
* On unix-based based systems the following system exceptions may be raised if the
* call to _listen_ fails:
* * Errno::EBADF - the _socket_ argument is not a valid file descriptor
- * * Errno::EDESTADDRREQ - the _socket_ is not bound to a local address, and
+ * * Errno::EDESTADDRREQ - the _socket_ is not bound to a local address, and
* the protocol does not support listening on an unbound socket
* * Errno::EINVAL - the _socket_ is already connected
* * Errno::ENOTSOCK - the _socket_ argument does not refer to a socket
* * Errno::EOPNOTSUPP - the _socket_ protocol does not support listen
- * * Errno::EACCES - the calling process does not have approriate privileges
+ * * Errno::EACCES - the calling process does not have appropriate privileges
* * Errno::EINVAL - the _socket_ has been shut down
- * * Errno::ENOBUFS - insufficient resources are available in the system to
+ * * Errno::ENOBUFS - insufficient resources are available in the system to
* complete the call
- *
+ *
* === Windows Exceptions
- * On Windows systems the following system exceptions may be raised if
+ * On Windows systems the following system exceptions may be raised if
* the call to _listen_ fails:
* * Errno::ENETDOWN - the network is down
- * * Errno::EADDRINUSE - the socket's local address is already in use. This
+ * * Errno::EADDRINUSE - the socket's local address is already in use. This
* usually occurs during the execution of _bind_ but could be delayed
* if the call to _bind_ was to a partially wildcard address (involving
- * ADDR_ANY) and if a specific address needs to be commmitted at the
+ * ADDR_ANY) and if a specific address needs to be committed at the
* time of the call to _listen_
* * Errno::EINPROGRESS - a Windows Sockets 1.1 call is in progress or the
* service provider is still processing a callback function
@@ -480,13 +489,13 @@ sock_bind(VALUE sock, VALUE addr)
* * Errno::ENOTSOC - +socket+ is not a socket
* * Errno::EOPNOTSUPP - the referenced +socket+ is not a type that supports
* the _listen_ method
- *
+ *
* === See
* * listen manual pages on unix-based systems
* * listen function in Microsoft's Winsock functions reference
*/
-static VALUE
-sock_listen(VALUE sock, VALUE log)
+VALUE
+rsock_sock_listen(VALUE sock, VALUE log)
{
rb_io_t *fptr;
int backlog;
@@ -502,18 +511,18 @@ sock_listen(VALUE sock, VALUE log)
/*
* call-seq:
- * socket.recvfrom(maxlen) => [mesg, sender_sockaddr]
- * socket.recvfrom(maxlen, flags) => [mesg, sender_sockaddr]
- *
+ * socket.recvfrom(maxlen) => [mesg, sender_addrinfo]
+ * socket.recvfrom(maxlen, flags) => [mesg, sender_addrinfo]
+ *
* Receives up to _maxlen_ bytes from +socket+. _flags_ is zero or more
* of the +MSG_+ options. The first element of the results, _mesg_, is the data
- * received. The second element, _sender_sockaddr_, contains protocol-specific information
- * on the sender.
- *
+ * received. The second element, _sender_addrinfo_, contains protocol-specific
+ * address information of the sender.
+ *
* === Parameters
- * * +maxlen+ - the number of bytes to receive from the socket
- * * +flags+ - zero or more of the +MSG_+ options
- *
+ * * +maxlen+ - the maximum number of bytes to receive from the socket
+ * * +flags+ - zero or more of the +MSG_+ options
+ *
* === Example
* # In one file, start this first
* require 'socket'
@@ -522,12 +531,12 @@ sock_listen(VALUE sock, VALUE log)
* sockaddr = Socket.pack_sockaddr_in( 2200, 'localhost' )
* socket.bind( sockaddr )
* socket.listen( 5 )
- * client, client_sockaddr = socket.accept
+ * client, client_addrinfo = socket.accept
* data = client.recvfrom( 20 )[0].chomp
* puts "I only received 20 bytes '#{data}'"
* sleep 1
* socket.close
- *
+ *
* # In another file, start this second
* require 'socket'
* include Socket::Constants
@@ -535,29 +544,29 @@ sock_listen(VALUE sock, VALUE log)
* sockaddr = Socket.pack_sockaddr_in( 2200, 'localhost' )
* socket.connect( sockaddr )
* socket.puts "Watch this get cut short!"
- * socket.close
- *
+ * socket.close
+ *
* === Unix-based Exceptions
* On unix-based based systems the following system exceptions may be raised if the
* call to _recvfrom_ fails:
* * Errno::EAGAIN - the +socket+ file descriptor is marked as O_NONBLOCK and no
* data is waiting to be received; or MSG_OOB is set and no out-of-band data
- * is available and either the +socket+ file descriptor is marked as
- * O_NONBLOCK or the +socket+ does not support blocking to wait for
+ * is available and either the +socket+ file descriptor is marked as
+ * O_NONBLOCK or the +socket+ does not support blocking to wait for
* out-of-band-data
* * Errno::EWOULDBLOCK - see Errno::EAGAIN
* * Errno::EBADF - the +socket+ is not a valid file descriptor
* * Errno::ECONNRESET - a connection was forcibly closed by a peer
- * * Errno::EFAULT - the socket's internal buffer, address or address length
+ * * Errno::EFAULT - the socket's internal buffer, address or address length
* cannot be accessed or written
- * * Errno::EINTR - a signal interupted _recvfrom_ before any data was available
+ * * Errno::EINTR - a signal interrupted _recvfrom_ before any data was available
* * Errno::EINVAL - the MSG_OOB flag is set and no out-of-band data is available
- * * Errno::EIO - an i/o error occurred while reading from or writing to the
+ * * Errno::EIO - an i/o error occurred while reading from or writing to the
* filesystem
- * * Errno::ENOBUFS - insufficient resources were available in the system to
+ * * Errno::ENOBUFS - insufficient resources were available in the system to
* perform the operation
* * Errno::ENOMEM - insufficient memory was available to fulfill the request
- * * Errno::ENOSR - there were insufficient STREAMS resources available to
+ * * Errno::ENOSR - there were insufficient STREAMS resources available to
* complete the operation
* * Errno::ENOTCONN - a receive is attempted on a connection-mode socket that
* is not connected
@@ -565,41 +574,41 @@ sock_listen(VALUE sock, VALUE log)
* * Errno::EOPNOTSUPP - the specified flags are not supported for this socket type
* * Errno::ETIMEDOUT - the connection timed out during connection establishment
* or due to a transmission timeout on an active connection
- *
+ *
* === Windows Exceptions
- * On Windows systems the following system exceptions may be raised if
+ * On Windows systems the following system exceptions may be raised if
* the call to _recvfrom_ fails:
* * Errno::ENETDOWN - the network is down
* * Errno::EFAULT - the internal buffer and from parameters on +socket+ are not
* part of the user address space, or the internal fromlen parameter is
- * too small to accomodate the peer address
+ * too small to accommodate the peer address
* * Errno::EINTR - the (blocking) call was cancelled by an internal call to
* the WinSock function WSACancelBlockingCall
- * * Errno::EINPROGRESS - a blocking Windows Sockets 1.1 call is in progress or
+ * * Errno::EINPROGRESS - a blocking Windows Sockets 1.1 call is in progress or
* the service provider is still processing a callback function
* * Errno::EINVAL - +socket+ has not been bound with a call to _bind_, or an
* unknown flag was specified, or MSG_OOB was specified for a socket with
* SO_OOBINLINE enabled, or (for byte stream-style sockets only) the internal
* len parameter on +socket+ was zero or negative
* * Errno::EISCONN - +socket+ is already connected. The call to _recvfrom_ is
- * not permitted with a connected socket on a socket that is connetion
+ * not permitted with a connected socket on a socket that is connection
* oriented or connectionless.
- * * Errno::ENETRESET - the connection has been broken due to the keep-alive
+ * * Errno::ENETRESET - the connection has been broken due to the keep-alive
* activity detecting a failure while the operation was in progress.
* * Errno::EOPNOTSUPP - MSG_OOB was specified, but +socket+ is not stream-style
* such as type SOCK_STREAM. OOB data is not supported in the communication
- * domain associated with +socket+, or +socket+ is unidirectional and
+ * domain associated with +socket+, or +socket+ is unidirectional and
* supports only send operations
- * * Errno::ESHUTDOWN - +socket+ has been shutdown. It is not possible to
+ * * Errno::ESHUTDOWN - +socket+ has been shutdown. It is not possible to
* call _recvfrom_ on a socket after _shutdown_ has been invoked.
- * * Errno::EWOULDBLOCK - +socket+ is marked as nonblocking and a call to
+ * * Errno::EWOULDBLOCK - +socket+ is marked as nonblocking and a call to
* _recvfrom_ would block.
* * Errno::EMSGSIZE - the message was too large to fit into the specified buffer
* and was truncated.
* * Errno::ETIMEDOUT - the connection has been dropped, because of a network
* failure or because the system on the other end went down without
* notice
- * * Errno::ECONNRESET - the virtual circuit was reset by the remote side
+ * * Errno::ECONNRESET - the virtual circuit was reset by the remote side
* executing a hard or abortive close. The application should close the
* socket; it is no longer usable. On a UDP-datagram socket this error
* indicates a previous send operation resulted in an ICMP Port Unreachable
@@ -613,24 +622,24 @@ sock_recvfrom(int argc, VALUE *argv, VALUE sock)
/*
* call-seq:
- * socket.recvfrom_nonblock(maxlen) => [mesg, sender_sockaddr]
- * socket.recvfrom_nonblock(maxlen, flags) => [mesg, sender_sockaddr]
- *
+ * socket.recvfrom_nonblock(maxlen) => [mesg, sender_addrinfo]
+ * socket.recvfrom_nonblock(maxlen, flags) => [mesg, sender_addrinfo]
+ *
* Receives up to _maxlen_ bytes from +socket+ using recvfrom(2) after
* O_NONBLOCK is set for the underlying file descriptor.
* _flags_ is zero or more of the +MSG_+ options.
* The first element of the results, _mesg_, is the data received.
- * The second element, _sender_sockaddr_, contains protocol-specific information
- * on the sender.
+ * The second element, _sender_addrinfo_, contains protocol-specific address
+ * information of the sender.
*
* When recvfrom(2) returns 0, Socket#recvfrom_nonblock returns
* an empty string as data.
* The meaning depends on the socket: EOF on TCP, empty packet on UDP, etc.
- *
+ *
* === Parameters
- * * +maxlen+ - the number of bytes to receive from the socket
- * * +flags+ - zero or more of the +MSG_+ options
- *
+ * * +maxlen+ - the maximum number of bytes to receive from the socket
+ * * +flags+ - zero or more of the +MSG_+ options
+ *
* === Example
* # In one file, start this first
* require 'socket'
@@ -639,7 +648,7 @@ sock_recvfrom(int argc, VALUE *argv, VALUE sock)
* sockaddr = Socket.sockaddr_in(2200, 'localhost')
* socket.bind(sockaddr)
* socket.listen(5)
- * client, client_sockaddr = socket.accept
+ * client, client_addrinfo = socket.accept
* begin # emulate blocking recvfrom
* pair = client.recvfrom_nonblock(20)
* rescue IO::WaitReadable
@@ -650,7 +659,7 @@ sock_recvfrom(int argc, VALUE *argv, VALUE sock)
* puts "I only received 20 bytes '#{data}'"
* sleep 1
* socket.close
- *
+ *
* # In another file, start this second
* require 'socket'
* include Socket::Constants
@@ -658,10 +667,10 @@ sock_recvfrom(int argc, VALUE *argv, VALUE sock)
* sockaddr = Socket.sockaddr_in(2200, 'localhost')
* socket.connect(sockaddr)
* socket.puts "Watch this get cut short!"
- * socket.close
- *
+ * socket.close
+ *
* Refer to Socket#recvfrom for the exceptions that may be thrown if the call
- * to _recvfrom_nonblock_ fails.
+ * to _recvfrom_nonblock_ fails.
*
* Socket#recvfrom_nonblock may raise any error corresponding to recvfrom(2) failure,
* including Errno::EWOULDBLOCK.
@@ -689,7 +698,7 @@ sock_recvfrom_nonblock(int argc, VALUE *argv, VALUE sock)
* serv = Socket.new(:INET, :STREAM, 0)
* serv.listen(5)
* c = Socket.new(:INET, :STREAM, 0)
- * c.connect(serv.local_address)
+ * c.connect(serv.connect_address)
* p serv.accept #=> [#<Socket:fd 6>, #<Addrinfo: 127.0.0.1:48555 TCP>]
*
*/
@@ -699,7 +708,7 @@ sock_accept(VALUE sock)
rb_io_t *fptr;
VALUE sock2;
struct sockaddr_storage buf;
- socklen_t len = sizeof buf;
+ socklen_t len = (socklen_t)sizeof buf;
GetOpenFile(sock, fptr);
sock2 = rsock_s_accept(rb_cSocket,fptr->fd,(struct sockaddr*)&buf,&len);
@@ -709,15 +718,14 @@ sock_accept(VALUE sock)
/*
* call-seq:
- * socket.accept_nonblock => [client_socket, client_sockaddr]
- *
+ * socket.accept_nonblock => [client_socket, client_addrinfo]
+ *
* Accepts an incoming connection using accept(2) after
* O_NONBLOCK is set for the underlying file descriptor.
- * It returns an array containg the accpeted socket
+ * It returns an array containing the accepted socket
* for the incoming connection, _client_socket_,
- * and a string that contains the +struct+ sockaddr information
- * about the caller, _client_sockaddr_.
- *
+ * and an Addrinfo, _client_addrinfo_.
+ *
* === Example
* # In one script, start this first
* require 'socket'
@@ -727,7 +735,7 @@ sock_accept(VALUE sock)
* socket.bind(sockaddr)
* socket.listen(5)
* begin # emulate blocking accept
- * client_socket, client_sockaddr = socket.accept_nonblock
+ * client_socket, client_addrinfo = socket.accept_nonblock
* rescue IO::WaitReadable, Errno::EINTR
* IO.select([socket])
* retry
@@ -735,19 +743,19 @@ sock_accept(VALUE sock)
* puts "The client said, '#{client_socket.readline.chomp}'"
* client_socket.puts "Hello from script one!"
* socket.close
- *
+ *
* # In another script, start this second
* require 'socket'
* include Socket::Constants
* socket = Socket.new(AF_INET, SOCK_STREAM, 0)
* sockaddr = Socket.sockaddr_in(2200, 'localhost')
* socket.connect(sockaddr)
- * socket.puts "Hello from script 2."
+ * socket.puts "Hello from script 2."
* puts "The server said, '#{socket.readline.chomp}'"
* socket.close
- *
+ *
* Refer to Socket#accept for the exceptions that may be thrown if the call
- * to _accept_nonblock_ fails.
+ * to _accept_nonblock_ fails.
*
* Socket#accept_nonblock may raise any error corresponding to accept(2) failure,
* including Errno::EWOULDBLOCK.
@@ -755,7 +763,7 @@ sock_accept(VALUE sock)
* If the exception is Errno::EWOULDBLOCK, Errno::AGAIN, Errno::ECONNABORTED or Errno::EPROTO,
* it is extended by IO::WaitReadable.
* So IO::WaitReadable can be used to rescue the exceptions for retrying accept_nonblock.
- *
+ *
* === See
* * Socket#accept
*/
@@ -765,7 +773,7 @@ sock_accept_nonblock(VALUE sock)
rb_io_t *fptr;
VALUE sock2;
struct sockaddr_storage buf;
- socklen_t len = sizeof buf;
+ socklen_t len = (socklen_t)sizeof buf;
GetOpenFile(sock, fptr);
sock2 = rsock_s_accept_nonblock(rb_cSocket, fptr, (struct sockaddr *)&buf, &len);
@@ -774,13 +782,12 @@ sock_accept_nonblock(VALUE sock)
/*
* call-seq:
- * socket.sysaccept => [client_socket_fd, client_sockaddr]
- *
- * Accepts an incoming connection returnings an array containg the (integer)
+ * socket.sysaccept => [client_socket_fd, client_addrinfo]
+ *
+ * Accepts an incoming connection returning an array containing the (integer)
* file descriptor for the incoming connection, _client_socket_fd_,
- * and a string that contains the +struct+ sockaddr information
- * about the caller, _client_sockaddr_.
- *
+ * and an Addrinfo, _client_addrinfo_.
+ *
* === Example
* # In one script, start this first
* require 'socket'
@@ -789,25 +796,25 @@ sock_accept_nonblock(VALUE sock)
* sockaddr = Socket.pack_sockaddr_in( 2200, 'localhost' )
* socket.bind( sockaddr )
* socket.listen( 5 )
- * client_fd, client_sockaddr = socket.sysaccept
+ * client_fd, client_addrinfo = socket.sysaccept
* client_socket = Socket.for_fd( client_fd )
* puts "The client said, '#{client_socket.readline.chomp}'"
* client_socket.puts "Hello from script one!"
* socket.close
- *
+ *
* # In another script, start this second
* require 'socket'
* include Socket::Constants
* socket = Socket.new( AF_INET, SOCK_STREAM, 0 )
* sockaddr = Socket.pack_sockaddr_in( 2200, 'localhost' )
* socket.connect( sockaddr )
- * socket.puts "Hello from script 2."
+ * socket.puts "Hello from script 2."
* puts "The server said, '#{socket.readline.chomp}'"
* socket.close
- *
+ *
* Refer to Socket#accept for the exceptions that may be thrown if the call
- * to _sysaccept_ fails.
- *
+ * to _sysaccept_ fails.
+ *
* === See
* * Socket#accept
*/
@@ -817,7 +824,7 @@ sock_sysaccept(VALUE sock)
rb_io_t *fptr;
VALUE sock2;
struct sockaddr_storage buf;
- socklen_t len = sizeof buf;
+ socklen_t len = (socklen_t)sizeof buf;
GetOpenFile(sock, fptr);
sock2 = rsock_s_accept(0,fptr->fd,(struct sockaddr*)&buf,&len);
@@ -832,10 +839,10 @@ sock_sysaccept(VALUE sock)
*
* Returns the hostname.
*
- * Note that it is not guaranteed to be able to convert to IP address using gethostbyname, getaddrinfo, etc.
- *
* p Socket.gethostname #=> "hal"
*
+ * Note that it is not guaranteed to be able to convert to IP address using gethostbyname, getaddrinfo, etc.
+ * If you need local IP address, use Socket.ip_address_list.
*/
static VALUE
sock_gethostname(VALUE obj)
@@ -872,7 +879,7 @@ sock_gethostname(VALUE obj)
#endif
static VALUE
-make_addrinfo(struct addrinfo *res0)
+make_addrinfo(struct addrinfo *res0, int norevlookup)
{
VALUE base, ary;
struct addrinfo *res;
@@ -882,7 +889,7 @@ make_addrinfo(struct addrinfo *res0)
}
base = rb_ary_new();
for (res = res0; res; res = res->ai_next) {
- ary = rsock_ipaddr(res->ai_addr, rsock_do_not_reverse_lookup);
+ ary = rsock_ipaddr(res->ai_addr, norevlookup);
if (res->ai_canonname) {
RARRAY_PTR(ary)[2] = rb_str_new2(res->ai_canonname);
}
@@ -904,7 +911,7 @@ sock_sockaddr(struct sockaddr *addr, size_t len)
ptr = (char*)&((struct sockaddr_in*)addr)->sin_addr.s_addr;
len = sizeof(((struct sockaddr_in*)addr)->sin_addr.s_addr);
break;
-#ifdef INET6
+#ifdef AF_INET6
case AF_INET6:
ptr = (char*)&((struct sockaddr_in6*)addr)->sin6_addr.s6_addr;
len = sizeof(((struct sockaddr_in6*)addr)->sin6_addr.s6_addr);
@@ -939,7 +946,7 @@ sock_s_gethostbyname(VALUE obj, VALUE host)
*
* Obtains the host information for _address_.
*
- * p Socket.gethostbyaddr([221,186,184,68].pack("CCCC"))
+ * p Socket.gethostbyaddr([221,186,184,68].pack("CCCC"))
* #=> ["carbon.ruby-lang.org", [], 2, "\xDD\xBA\xB8D"]
*/
static VALUE
@@ -957,12 +964,12 @@ sock_s_gethostbyaddr(int argc, VALUE *argv)
if (!NIL_P(family)) {
t = rsock_family_arg(family);
}
-#ifdef INET6
+#ifdef AF_INET6
else if (RSTRING_LEN(addr) == 16) {
t = AF_INET6;
}
#endif
- h = gethostbyaddr(RSTRING_PTR(addr), RSTRING_LEN(addr), t);
+ h = gethostbyaddr(RSTRING_PTR(addr), RSTRING_LENINT(addr), t);
if (h == NULL) {
#ifdef HAVE_HSTRERROR
extern int h_errno;
@@ -1004,13 +1011,13 @@ sock_s_gethostbyaddr(int argc, VALUE *argv)
* Socket.getservbyname("smtp") #=> 25
* Socket.getservbyname("shell") #=> 514
* Socket.getservbyname("syslog", "udp") #=> 514
- */
+ */
static VALUE
sock_s_getservbyname(int argc, VALUE *argv)
{
VALUE service, proto;
struct servent *sp;
- int port;
+ long port;
const char *servicename, *protoname = "tcp";
rb_scan_args(argc, argv, "11", &service, &proto);
@@ -1071,7 +1078,7 @@ sock_s_getservbyport(int argc, VALUE *argv)
/*
* call-seq:
- * Socket.getaddrinfo(nodename, servname[, family[, socktype[, protocol[, flags]]]]) => array
+ * Socket.getaddrinfo(nodename, servname[, family[, socktype[, protocol[, flags[, reverse_lookup]]]]]) => array
*
* Obtains address information for _nodename_:_servname_.
*
@@ -1092,14 +1099,24 @@ sock_s_getservbyport(int argc, VALUE *argv)
* # ["AF_INET", 0, "localhost", "127.0.0.1", 2, 2, 17], # PF_INET/SOCK_DGRAM/IPPROTO_UDP
* # ["AF_INET", 0, "localhost", "127.0.0.1", 2, 3, 0]] # PF_INET/SOCK_RAW/IPPROTO_IP
*
+ * _reverse_lookup_ directs the form of the third element, and has to
+ * be one of below.
+ * If it is ommitted, the default value is +nil+.
+ *
+ * +true+, +:hostname+: hostname is obtained from numeric address using reverse lookup, which may take a time.
+ * +false+, +:numeric+: hostname is same as numeric address.
+ * +nil+: obey to the current +do_not_reverse_lookup+ flag.
+ *
+ * If Addrinfo object is preferred, use Addrinfo.getaddrinfo.
*/
static VALUE
sock_s_getaddrinfo(int argc, VALUE *argv)
{
- VALUE host, port, family, socktype, protocol, flags, ret;
+ VALUE host, port, family, socktype, protocol, flags, ret, revlookup;
struct addrinfo hints, *res;
+ int norevlookup;
- rb_scan_args(argc, argv, "24", &host, &port, &family, &socktype, &protocol, &flags);
+ rb_scan_args(argc, argv, "25", &host, &port, &family, &socktype, &protocol, &flags, &revlookup);
MEMZERO(&hints, struct addrinfo, 1);
hints.ai_family = NIL_P(family) ? PF_UNSPEC : rsock_family_arg(family);
@@ -1113,9 +1130,12 @@ sock_s_getaddrinfo(int argc, VALUE *argv)
if (!NIL_P(flags)) {
hints.ai_flags = NUM2INT(flags);
}
+ if (NIL_P(revlookup) || !rsock_revlookup_flag(revlookup, &norevlookup)) {
+ norevlookup = rsock_do_not_reverse_lookup;
+ }
res = rsock_getaddrinfo(host, port, &hints, 0);
- ret = make_addrinfo(res);
+ ret = make_addrinfo(res, norevlookup);
freeaddrinfo(res);
return ret;
}
@@ -1127,7 +1147,7 @@ sock_s_getaddrinfo(int argc, VALUE *argv)
* Obtains name information for _sockaddr_.
*
* _sockaddr_ should be one of follows.
- * - packed sockddr string such as Socket.sockaddr_in(80, "127.0.0.1")
+ * - packed sockaddr string such as Socket.sockaddr_in(80, "127.0.0.1")
* - 3-elements array such as ["AF_INET", 80, "127.0.0.1"]
* - 4-elements array such as ["AF_INET", 80, ignored, "127.0.0.1"]
*
@@ -1138,6 +1158,8 @@ sock_s_getaddrinfo(int argc, VALUE *argv)
* Socket.getnameinfo(Socket.sockaddr_in(80, "127.0.0.1")) #=> ["localhost", "www"]
* Socket.getnameinfo(["AF_INET", 80, "127.0.0.1"]) #=> ["localhost", "www"]
* Socket.getnameinfo(["AF_INET", 80, "localhost", "127.0.0.1"]) #=> ["localhost", "www"]
+ *
+ * If Addrinfo object is preferred, use Addrinfo#getnameinfo.
*/
static VALUE
sock_s_getnameinfo(int argc, VALUE *argv)
@@ -1374,7 +1396,7 @@ sock_s_pack_sockaddr_un(VALUE self, VALUE path)
*
* _sockaddr_ should be a string or an addrinfo for AF_UNIX.
*
- * sockaddr = Socket.sockaddr_un("/tmp/sock")
+ * sockaddr = Socket.sockaddr_un("/tmp/sock")
* p Socket.unpack_sockaddr_un(sockaddr) #=> "/tmp/sock"
*
*/
@@ -1398,7 +1420,7 @@ sock_s_unpack_sockaddr_un(VALUE self, VALUE addr)
rb_raise(rb_eTypeError, "too long sockaddr_un - %ld longer than %d",
RSTRING_LEN(addr), (int)sizeof(struct sockaddr_un));
}
- sun_path = rsock_unixpath(sockaddr, RSTRING_LEN(addr));
+ sun_path = rsock_unixpath(sockaddr, RSTRING_LENINT(addr));
if (sizeof(struct sockaddr_un) == RSTRING_LEN(addr) &&
sun_path == sockaddr->sun_path &&
sun_path + strlen(sun_path) == RSTRING_PTR(addr) + RSTRING_LEN(addr)) {
@@ -1424,12 +1446,12 @@ sockaddr_obj(struct sockaddr *addr)
switch (addr->sa_family) {
case AF_INET:
- len = sizeof(struct sockaddr_in);
+ len = (socklen_t)sizeof(struct sockaddr_in);
break;
#ifdef AF_INET6
case AF_INET6:
- len = sizeof(struct sockaddr_in6);
+ len = (socklen_t)sizeof(struct sockaddr_in6);
# ifdef __KAME__
/* KAME uses the 2nd 16bit word of link local IPv6 address as interface index internally */
/* http://orange.kame.net/dev/cvsweb.cgi/kame/IMPLEMENTATION */
@@ -1449,17 +1471,17 @@ sockaddr_obj(struct sockaddr *addr)
#ifdef HAVE_SYS_UN_H
case AF_UNIX:
- len = sizeof(struct sockaddr_un);
+ len = (socklen_t)sizeof(struct sockaddr_un);
break;
#endif
default:
- len = sizeof(struct sockaddr_in);
+ len = (socklen_t)sizeof(struct sockaddr_in);
break;
}
#ifdef SA_LEN
- if (len < SA_LEN(addr))
- len = SA_LEN(addr);
+ if (len < (socklen_t)SA_LEN(addr))
+ len = (socklen_t)SA_LEN(addr);
#endif
return rsock_addrinfo_new(addr, len, addr->sa_family, 0, 0, Qnil, Qnil);
@@ -1508,7 +1530,7 @@ socket_s_ip_address_list(VALUE self)
return list;
#elif defined(SIOCGLIFCONF) && defined(SIOCGLIFNUM) && !defined(__hpux)
/* Solaris if_tcp(7P) */
- /* HP-UX has SIOCGLIFCONF too. But it uses differenet struct */
+ /* HP-UX has SIOCGLIFCONF too. But it uses different struct */
int fd = -1;
int ret;
struct lifnum ln;
@@ -1545,13 +1567,22 @@ socket_s_ip_address_list(VALUE self)
goto finish;
}
- close(fd);
- fd = -1;
-
list = rb_ary_new();
for (i = 0; i < ln.lifn_count; i++) {
struct lifreq *req = &lc.lifc_req[i];
if (IS_IP_FAMILY(req->lifr_addr.ss_family)) {
+ if (req->lifr_addr.ss_family == AF_INET6 &&
+ IN6_IS_ADDR_LINKLOCAL(&((struct sockaddr_in6 *)(&req->lifr_addr))->sin6_addr) &&
+ ((struct sockaddr_in6 *)(&req->lifr_addr))->sin6_scope_id == 0) {
+ struct lifreq req2;
+ memcpy(req2.lifr_name, req->lifr_name, LIFNAMSIZ);
+ ret = ioctl(fd, SIOCGLIFINDEX, &req2);
+ if (ret == -1) {
+ reason = "SIOCGLIFINDEX";
+ goto finish;
+ }
+ ((struct sockaddr_in6 *)(&req->lifr_addr))->sin6_scope_id = req2.lifr_index;
+ }
rb_ary_push(list, sockaddr_obj((struct sockaddr *)&req->lifr_addr));
}
}
@@ -1693,7 +1724,7 @@ socket_s_ip_address_list(VALUE self)
DWORD dummy9;
DWORD dummy10;
DWORD IfType;
- int dummy11;
+ int OperStatus;
DWORD dummy12;
DWORD dummy13[16];
void *dummy14;
@@ -1711,21 +1742,21 @@ socket_s_ip_address_list(VALUE self)
rb_notimplement();
pGetAdaptersAddresses = (GetAdaptersAddresses_t)GetProcAddress(h, "GetAdaptersAddresses");
if (!pGetAdaptersAddresses) {
- CloseHandle(h);
+ FreeLibrary(h);
rb_notimplement();
}
ret = pGetAdaptersAddresses(AF_UNSPEC, 0, NULL, NULL, &len);
if (ret != ERROR_SUCCESS && ret != ERROR_BUFFER_OVERFLOW) {
errno = rb_w32_map_errno(ret);
- CloseHandle(h);
+ FreeLibrary(h);
rb_sys_fail("GetAdaptersAddresses");
}
adapters = (ip_adapter_addresses_t *)ALLOCA_N(BYTE, len);
ret = pGetAdaptersAddresses(AF_UNSPEC, 0, NULL, adapters, &len);
if (ret != ERROR_SUCCESS) {
errno = rb_w32_map_errno(ret);
- CloseHandle(h);
+ FreeLibrary(h);
rb_sys_fail("GetAdaptersAddresses");
}
@@ -1733,17 +1764,27 @@ socket_s_ip_address_list(VALUE self)
for (; adapters; adapters = adapters->Next) {
ip_adapter_unicast_address_t *uni;
ip_adapter_anycast_address_t *any;
+ if (adapters->OperStatus != 1) /* 1 means IfOperStatusUp */
+ continue;
for (uni = adapters->FirstUnicastAddress; uni; uni = uni->Next) {
+#ifndef INET6
+ if (uni->Address.lpSockaddr->sa_family == AF_INET)
+#else
if (IS_IP_FAMILY(uni->Address.lpSockaddr->sa_family))
+#endif
rb_ary_push(list, sockaddr_obj(uni->Address.lpSockaddr));
}
for (any = adapters->FirstAnycastAddress; any; any = any->Next) {
+#ifndef INET6
+ if (any->Address.lpSockaddr->sa_family == AF_INET)
+#else
if (IS_IP_FAMILY(any->Address.lpSockaddr->sa_family))
+#endif
rb_ary_push(list, sockaddr_obj(any->Address.lpSockaddr));
}
}
- CloseHandle(h);
+ FreeLibrary(h);
return list;
#endif
}
@@ -1751,45 +1792,125 @@ socket_s_ip_address_list(VALUE self)
#define socket_s_ip_address_list rb_f_notimplement
#endif
-/*
- * Class +Socket+ provides access to the underlying operating system
- * socket implementations. It can be used to provide more operating system
- * specific functionality than the protocol-specific socket classes but at the
- * expense of greater complexity. In particular, the class handles addresses
- * using +struct+ sockaddr structures packed into Ruby strings, which can be
- * a joy to manipulate.
- *
- * === Exception Handling
- * Ruby's implementation of +Socket+ causes an exception to be raised
- * based on the error generated by the system dependent implementation.
- * This is why the methods are documented in a way that isolate
- * Unix-based system exceptions from Windows based exceptions. If more
- * information on particular exception is needed please refer to the
- * Unix manual pages or the Windows WinSock reference.
- *
- *
- * === Documentation by
- * * Zach Dennis
- * * Sam Roberts
- * * <em>Programming Ruby</em> from The Pragmatic Bookshelf.
- *
- * Much material in this documentation is taken with permission from
- * <em>Programming Ruby</em> from The Pragmatic Bookshelf.
- */
void
Init_socket()
{
- Init_basicsocket();
-
+ rsock_init_basicsocket();
+
+ /*
+ * Document-class: Socket < BasicSocket
+ *
+ * Class +Socket+ provides access to the underlying operating system
+ * socket implementations. It can be used to provide more operating system
+ * specific functionality than the protocol-specific socket classes.
+ *
+ * The constants defined under Socket::Constants are also defined under
+ * Socket. For example, Socket::AF_INET is usable as well as
+ * Socket::Constants::AF_INET. See Socket::Constants for the list of
+ * constants.
+ *
+ * === What's a socket?
+ *
+ * Sockets are endpoints of a bidirectionnal communication channel.
+ * Sockets can communicate within a process, between processes on the same
+ * machine or between different machines. There are many types of socket:
+ * TCPSocket, UDPSocket or UNIXSocket for example.
+ *
+ * Sockets have their own vocabulary:
+ * domain::
+ * The family of protocols: Socket::PF_INET, Socket::PF_INET6,
+ * Socket::PF_UNIX, etc.
+ * type::
+ * The type of communications between the two endpoints, typically
+ * Socket::SOCK_STREAM or Socket::SOCK_DGRAM.
+ * protocol::
+ * Typically zero. This may be used to identify a variant of a
+ * protocol.
+ * hostname::
+ * The identifier of a network interface:
+ * * a string (hostname, IPv4 or IPv6 adress or <tt><broadcast></tt>
+ * which specifies a broadcast address)
+ * * a zero-length string which specifies INADDR_ANY
+ * * an integer (interpreted as binary address in host byte order).
+ *
+ * === Quick start
+ *
+ * Some classes such as TCPSocket, UDPSocket or UNIXSocket ease use of
+ * sockets of these types compared to C programming.
+ *
+ * # Creating a TCP socket in a C-like manner
+ * s = Socket.new Socket::INET, Socket::SOCK_STREAM
+ * s.connect Socket.pack_sockaddr_in(80, 'example.com')
+ *
+ * # Using TCPSocket
+ * s = TCPSocket.new 'example.com', 80
+ *
+ * A simple server would look like:
+ *
+ * require 'socket'
+ *
+ * server = TCPServer.new 2000 # Server bound to port 2000
+ *
+ * loop do
+ * client = server.accept # Wait for a client to connect
+ * client.puts "Hello !"
+ * client.puts "Time is #{Time.now}"
+ * client.close
+ * end
+ *
+ * A simple client may look like:
+ *
+ * require 'socket'
+ *
+ * s = TCPSocket.new 'localhost', 2000
+ *
+ * while line = s.gets # Read lines from socket
+ * puts line # and print them
+ * end
+ *
+ * s.close # close socket when done
+ *
+ * === Exception Handling
+ *
+ * Ruby's Socket implementation raises exceptions based on the error
+ * generated by the system dependent implementation. This is why the
+ * methods are documented in a way that isolate Unix-based system
+ * exceptions from Windows based exceptions. If more information on
+ * particular exception is needed please refer to the Unix manual pages or
+ * the Windows WinSock reference.
+ *
+ * === Convenient methods
+ *
+ * Although the general way to create socket is Socket.new,
+ * there are several methods for socket creation for most cases.
+ *
+ * TCP client socket::
+ * Socket.tcp, TCPSocket.open
+ * TCP server socket::
+ * Socket.tcp_server_loop, TCPServer.open
+ * UNIX client socket::
+ * Socket.unix, UNIXSocket.open
+ * UNIX server socket::
+ * Socket.unix_server_loop, UNIXServer.open
+ *
+ * === Documentation by
+ *
+ * * Zach Dennis
+ * * Sam Roberts
+ * * <em>Programming Ruby</em> from The Pragmatic Bookshelf.
+ *
+ * Much material in this documentation is taken with permission from
+ * <em>Programming Ruby</em> from The Pragmatic Bookshelf.
+ */
rb_cSocket = rb_define_class("Socket", rb_cBasicSocket);
- Init_socket_init();
+ rsock_init_socket_init();
rb_define_method(rb_cSocket, "initialize", sock_initialize, -1);
rb_define_method(rb_cSocket, "connect", sock_connect, 1);
rb_define_method(rb_cSocket, "connect_nonblock", sock_connect_nonblock, 1);
rb_define_method(rb_cSocket, "bind", sock_bind, 1);
- rb_define_method(rb_cSocket, "listen", sock_listen, 1);
+ rb_define_method(rb_cSocket, "listen", rsock_sock_listen, 1);
rb_define_method(rb_cSocket, "accept", sock_accept, 0);
rb_define_method(rb_cSocket, "accept_nonblock", sock_accept_nonblock, 0);
rb_define_method(rb_cSocket, "sysaccept", sock_sysaccept, 0);
@@ -1816,10 +1937,4 @@ Init_socket()
#endif
rb_define_singleton_method(rb_cSocket, "ip_address_list", socket_s_ip_address_list, 0);
-
- /* defined here for rdoc */
- rb_define_method(rb_cTCPServer, "listen", sock_listen, 1);
-#ifdef HAVE_SYS_UN_H
- rb_define_method(rb_cUNIXServer, "listen", sock_listen, 1);
-#endif
}
diff --git a/ext/socket/sockssocket.c b/ext/socket/sockssocket.c
index 71836f704d..48be4fcf99 100644
--- a/ext/socket/sockssocket.c
+++ b/ext/socket/sockssocket.c
@@ -11,6 +11,13 @@
#include "rubysocket.h"
#ifdef SOCKS
+/*
+ * call-seq:
+ * SOCKSSocket.new(host, serv) => socket
+ *
+ * Opens a SOCKS connection to +host+ via the SOCKS server +serv+.
+ *
+ */
static VALUE
socks_init(VALUE sock, VALUE host, VALUE serv)
{
@@ -25,6 +32,10 @@ socks_init(VALUE sock, VALUE host, VALUE serv)
}
#ifdef SOCKS5
+/*
+ * Closes the SOCKS connection.
+ *
+ */
static VALUE
socks_s_close(VALUE sock)
{
@@ -40,13 +51,17 @@ socks_s_close(VALUE sock)
#endif
#endif
-/*
- * SOCKSSocket class
- */
void
-Init_sockssocket(void)
+rsock_init_sockssocket(void)
{
#ifdef SOCKS
+ /*
+ * Document-class: SOCKSSocket < TCPSocket
+ *
+ * SOCKS is an Internet protocol that routes packets between a client and
+ * a server through a proxy server. SOCKS5, if supported, additionally
+ * provides authentication so only authorized users may access a server.
+ */
rb_cSOCKSSocket = rb_define_class("SOCKSSocket", rb_cTCPSocket);
rb_define_method(rb_cSOCKSSocket, "initialize", socks_init, 2);
#ifdef SOCKS5
diff --git a/ext/socket/tcpserver.c b/ext/socket/tcpserver.c
index 59cd7dd3cc..6596733239 100644
--- a/ext/socket/tcpserver.c
+++ b/ext/socket/tcpserver.c
@@ -41,7 +41,7 @@ tcp_svr_init(int argc, VALUE *argv, VALUE sock)
* s.puts Time.now
* s.close
* }
- *
+ *
*/
static VALUE
tcp_accept(VALUE sock)
@@ -49,9 +49,9 @@ tcp_accept(VALUE sock)
rb_io_t *fptr;
struct sockaddr_storage from;
socklen_t fromlen;
-
+
GetOpenFile(sock, fptr);
- fromlen = sizeof(from);
+ fromlen = (socklen_t)sizeof(from);
return rsock_s_accept(rb_cTCPSocket, fptr->fd,
(struct sockaddr*)&from, &fromlen);
}
@@ -59,11 +59,11 @@ tcp_accept(VALUE sock)
/*
* call-seq:
* tcpserver.accept_nonblock => tcpsocket
- *
+ *
* Accepts an incoming connection using accept(2) after
* O_NONBLOCK is set for the underlying file descriptor.
* It returns an accepted TCPSocket for the incoming connection.
- *
+ *
* === Example
* require 'socket'
* serv = TCPServer.new(2202)
@@ -74,9 +74,9 @@ tcp_accept(VALUE sock)
* retry
* end
* # sock is an accepted socket.
- *
+ *
* Refer to Socket#accept for the exceptions that may be thrown if the call
- * to TCPServer#accept_nonblock fails.
+ * to TCPServer#accept_nonblock fails.
*
* TCPServer#accept_nonblock may raise any error corresponding to accept(2) failure,
* including Errno::EWOULDBLOCK.
@@ -84,7 +84,7 @@ tcp_accept(VALUE sock)
* If the exception is Errno::EWOULDBLOCK, Errno::AGAIN, Errno::ECONNABORTED, Errno::EPROTO,
* it is extended by IO::WaitReadable.
* So IO::WaitReadable can be used to rescue the exceptions for retrying accept_nonblock.
- *
+ *
* === See
* * TCPServer#accept
* * Socket#accept
@@ -97,7 +97,7 @@ tcp_accept_nonblock(VALUE sock)
socklen_t fromlen;
GetOpenFile(sock, fptr);
- fromlen = sizeof(from);
+ fromlen = (socklen_t)sizeof(from);
return rsock_s_accept_nonblock(rb_cTCPSocket, fptr,
(struct sockaddr *)&from, &fromlen);
}
@@ -110,7 +110,7 @@ tcp_accept_nonblock(VALUE sock)
*
* TCPServer.open("127.0.0.1", 28561) {|serv|
* fd = serv.sysaccept
- * s = IO.for_fd(fd)
+ * s = IO.for_fd(fd)
* s.puts Time.now
* s.close
* }
@@ -124,19 +124,48 @@ tcp_sysaccept(VALUE sock)
socklen_t fromlen;
GetOpenFile(sock, fptr);
- fromlen = sizeof(from);
+ fromlen = (socklen_t)sizeof(from);
return rsock_s_accept(0, fptr->fd, (struct sockaddr*)&from, &fromlen);
}
-/*
- * TCPServer class
- */
void
-Init_tcpserver(void)
+rsock_init_tcpserver(void)
{
+ /*
+ * Document-class: TCPServer < TCPSocket
+ *
+ * TCPServer represents a TCP/IP server socket.
+ *
+ * A simple TCP server may look like:
+ *
+ * require 'socket'
+ *
+ * server = TCPServer.new 2000 # Server bind to port 2000
+ * loop do
+ * client = server.accept # Wait for a client to connect
+ * client.puts "Hello !"
+ * client.puts "Time is #{Time.now}"
+ * client.close
+ * end
+ *
+ * A more usable server (serving multiple clients):
+ *
+ * require 'socket'
+ *
+ * server = TCPServer.new 2000
+ * loop do
+ * Thread.start(server.accept) do |client|
+ * client.puts "Hello !"
+ * client.puts "Time is #{Time.now}"
+ * client.close
+ * end
+ * end
+ *
+ */
rb_cTCPServer = rb_define_class("TCPServer", rb_cTCPSocket);
rb_define_method(rb_cTCPServer, "accept", tcp_accept, 0);
rb_define_method(rb_cTCPServer, "accept_nonblock", tcp_accept_nonblock, 0);
rb_define_method(rb_cTCPServer, "sysaccept", tcp_sysaccept, 0);
rb_define_method(rb_cTCPServer, "initialize", tcp_svr_init, -1);
+ rb_define_method(rb_cTCPServer, "listen", rsock_sock_listen, 1); /* in socket.c */
}
diff --git a/ext/socket/tcpsocket.c b/ext/socket/tcpsocket.c
index 1ab62459d1..7eb6fc7aa2 100644
--- a/ext/socket/tcpsocket.c
+++ b/ext/socket/tcpsocket.c
@@ -55,12 +55,27 @@ tcp_s_gethostbyname(VALUE obj, VALUE host)
tcp_sockaddr);
}
-/*
- * TCPSocket class
- */
void
-Init_tcpsocket(void)
+rsock_init_tcpsocket(void)
{
+ /*
+ * Document-class: TCPSocket < IPSocket
+ *
+ * TCPSocket represents a TCP/IP client socket.
+ *
+ * A simple client may look like:
+ *
+ * require 'socket'
+ *
+ * s = TCPSocket.new 'localhost', 2000
+ *
+ * while line = s.gets # Read lines from socket
+ * puts line # and print them
+ * end
+ *
+ * s.close # close socket when done
+ *
+ */
rb_cTCPSocket = rb_define_class("TCPSocket", rb_cIPSocket);
rb_define_singleton_method(rb_cTCPSocket, "gethostbyname", tcp_s_gethostbyname, 1);
rb_define_method(rb_cTCPSocket, "initialize", tcp_init, -1);
diff --git a/ext/socket/udpsocket.c b/ext/socket/udpsocket.c
index ae1f70eb10..0ba4371f1a 100644
--- a/ext/socket/udpsocket.c
+++ b/ext/socket/udpsocket.c
@@ -62,6 +62,8 @@ udp_connect_internal(struct udp_arg *arg)
return Qfalse;
}
+VALUE rsock_freeaddrinfo(struct addrinfo *addr);
+
/*
* call-seq:
* udpsocket.connect(host, port) => 0
@@ -90,7 +92,7 @@ udp_connect(VALUE sock, VALUE host, VALUE port)
GetOpenFile(sock, fptr);
arg.fd = fptr->fd;
ret = rb_ensure(udp_connect_internal, (VALUE)&arg,
- RUBY_METHOD_FUNC(freeaddrinfo), (VALUE)arg.res);
+ rsock_freeaddrinfo, (VALUE)arg.res);
if (!ret) rb_sys_fail("connect(2)");
return INT2FIX(0);
}
@@ -135,7 +137,7 @@ udp_bind(VALUE sock, VALUE host, VALUE port)
* udpsocket.send(mesg, flags) => numbytes_sent
*
* Sends _mesg_ via _udpsocket_.
- *
+ *
* _flags_ should be a bitwise OR of Socket::MSG_* constants.
*
* u1 = UDPSocket.new
@@ -175,7 +177,7 @@ udp_send(int argc, VALUE *argv, VALUE sock)
arg.to = res->ai_addr;
arg.tolen = res->ai_addrlen;
rb_thread_fd_writable(arg.fd);
- n = (int)BLOCKING_REGION(rsock_sendto_blocking, &arg);
+ n = (int)BLOCKING_REGION_FD(rsock_sendto_blocking, &arg);
if (n >= 0) {
freeaddrinfo(res0);
return INT2FIX(n);
@@ -193,10 +195,10 @@ udp_send(int argc, VALUE *argv, VALUE sock)
* call-seq:
* udpsocket.recvfrom_nonblock(maxlen) => [mesg, sender_inet_addr]
* udpsocket.recvfrom_nonblock(maxlen, flags) => [mesg, sender_inet_addr]
- *
+ *
* Receives up to _maxlen_ bytes from +udpsocket+ using recvfrom(2) after
* O_NONBLOCK is set for the underlying file descriptor.
- * If _maxlen_ is ommitted, its default value is 65536.
+ * If _maxlen_ is omitted, its default value is 65536.
* _flags_ is zero or more of the +MSG_+ options.
* The first element of the results, _mesg_, is the data received.
* The second element, _sender_inet_addr_, is an array to represent the sender address.
@@ -204,11 +206,11 @@ udp_send(int argc, VALUE *argv, VALUE sock)
* When recvfrom(2) returns 0,
* Socket#recvfrom_nonblock returns an empty string as data.
* It means an empty packet.
- *
+ *
* === Parameters
* * +maxlen+ - the number of bytes to receive from the socket
- * * +flags+ - zero or more of the +MSG_+ options
- *
+ * * +flags+ - zero or more of the +MSG_+ options
+ *
* === Example
* require 'socket'
* s1 = UDPSocket.new
@@ -226,7 +228,7 @@ udp_send(int argc, VALUE *argv, VALUE sock)
* end
*
* Refer to Socket#recvfrom for the exceptions that may be thrown if the call
- * to _recvfrom_nonblock_ fails.
+ * to _recvfrom_nonblock_ fails.
*
* UDPSocket#recvfrom_nonblock may raise any error corresponding to recvfrom(2) failure,
* including Errno::EWOULDBLOCK.
@@ -244,12 +246,15 @@ udp_recvfrom_nonblock(int argc, VALUE *argv, VALUE sock)
return rsock_s_recvfrom_nonblock(sock, argc, argv, RECV_IP);
}
-/*
- * UDPSocket class
- */
void
-Init_udpsocket(void)
+rsock_init_udpsocket(void)
{
+ /*
+ * Document-class: UDPSocket < IPSocket
+ *
+ * UDPSocket represents a UDP/IP socket.
+ *
+ */
rb_cUDPSocket = rb_define_class("UDPSocket", rb_cIPSocket);
rb_define_method(rb_cUDPSocket, "initialize", udp_init, -1);
rb_define_method(rb_cUDPSocket, "connect", udp_connect, 2);
diff --git a/ext/socket/unixserver.c b/ext/socket/unixserver.c
index fa41cba02a..9bd959d439 100644
--- a/ext/socket/unixserver.c
+++ b/ext/socket/unixserver.c
@@ -52,7 +52,7 @@ unix_accept(VALUE sock)
socklen_t fromlen;
GetOpenFile(sock, fptr);
- fromlen = sizeof(struct sockaddr_un);
+ fromlen = (socklen_t)sizeof(struct sockaddr_un);
return rsock_s_accept(rb_cUNIXSocket, fptr->fd,
(struct sockaddr*)&from, &fromlen);
}
@@ -60,11 +60,11 @@ unix_accept(VALUE sock)
/*
* call-seq:
* unixserver.accept_nonblock => unixsocket
- *
+ *
* Accepts an incoming connection using accept(2) after
* O_NONBLOCK is set for the underlying file descriptor.
* It returns an accepted UNIXSocket for the incoming connection.
- *
+ *
* === Example
* require 'socket'
* serv = UNIXServer.new("/tmp/sock")
@@ -75,9 +75,9 @@ unix_accept(VALUE sock)
* retry
* end
* # sock is an accepted socket.
- *
+ *
* Refer to Socket#accept for the exceptions that may be thrown if the call
- * to UNIXServer#accept_nonblock fails.
+ * to UNIXServer#accept_nonblock fails.
*
* UNIXServer#accept_nonblock may raise any error corresponding to accept(2) failure,
* including Errno::EWOULDBLOCK.
@@ -85,7 +85,7 @@ unix_accept(VALUE sock)
* If the exception is Errno::EWOULDBLOCK, Errno::AGAIN, Errno::ECONNABORTED or Errno::EPROTO,
* it is extended by IO::WaitReadable.
* So IO::WaitReadable can be used to rescue the exceptions for retrying accept_nonblock.
- *
+ *
* === See
* * UNIXServer#accept
* * Socket#accept
@@ -98,7 +98,7 @@ unix_accept_nonblock(VALUE sock)
socklen_t fromlen;
GetOpenFile(sock, fptr);
- fromlen = sizeof(from);
+ fromlen = (socklen_t)sizeof(from);
return rsock_s_accept_nonblock(rb_cUNIXSocket, fptr,
(struct sockaddr *)&from, &fromlen);
}
@@ -115,7 +115,7 @@ unix_accept_nonblock(VALUE sock)
* fd = serv.sysaccept
* s = IO.new(fd)
* s.puts "hi"
- * s.close
+ * s.close
* p c.read #=> "hi\n"
* }
* }
@@ -129,23 +129,27 @@ unix_sysaccept(VALUE sock)
socklen_t fromlen;
GetOpenFile(sock, fptr);
- fromlen = sizeof(struct sockaddr_un);
+ fromlen = (socklen_t)sizeof(struct sockaddr_un);
return rsock_s_accept(0, fptr->fd, (struct sockaddr*)&from, &fromlen);
}
#endif
-/*
- * UNIXServer class
- */
void
-Init_unixserver(void)
+rsock_init_unixserver(void)
{
#ifdef HAVE_SYS_UN_H
+ /*
+ * Document-class: UNIXServer < UNIXSocket
+ *
+ * UNIXServer represents a UNIX domain stream server socket.
+ *
+ */
rb_cUNIXServer = rb_define_class("UNIXServer", rb_cUNIXSocket);
rb_define_method(rb_cUNIXServer, "initialize", unix_svr_init, 1);
rb_define_method(rb_cUNIXServer, "accept", unix_accept, 0);
rb_define_method(rb_cUNIXServer, "accept_nonblock", unix_accept_nonblock, 0);
rb_define_method(rb_cUNIXServer, "sysaccept", unix_sysaccept, 0);
+ rb_define_method(rb_cUNIXServer, "listen", rsock_sock_listen, 1); /* in socket.c */
#endif
}
diff --git a/ext/socket/unixsocket.c b/ext/socket/unixsocket.c
index df1a11d094..26822e5b4f 100644
--- a/ext/socket/unixsocket.c
+++ b/ext/socket/unixsocket.c
@@ -17,10 +17,11 @@ struct unixsock_arg {
};
static VALUE
-unixsock_connect_internal(struct unixsock_arg *arg)
+unixsock_connect_internal(VALUE a)
{
+ struct unixsock_arg *arg = (struct unixsock_arg *)a;
return (VALUE)rsock_connect(arg->fd, (struct sockaddr*)arg->sockaddr,
- sizeof(*arg->sockaddr), 0);
+ (socklen_t)sizeof(*arg->sockaddr), 0);
}
VALUE
@@ -45,15 +46,14 @@ rsock_init_unixsock(VALUE sock, VALUE path, int server)
memcpy(sockaddr.sun_path, RSTRING_PTR(path), RSTRING_LEN(path));
if (server) {
- status = bind(fd, (struct sockaddr*)&sockaddr, sizeof(sockaddr));
+ status = bind(fd, (struct sockaddr*)&sockaddr, (socklen_t)sizeof(sockaddr));
}
else {
int prot;
struct unixsock_arg arg;
arg.sockaddr = &sockaddr;
arg.fd = fd;
- status = rb_protect((VALUE(*)(VALUE))unixsock_connect_internal,
- (VALUE)&arg, &prot);
+ status = (int)rb_protect(unixsock_connect_internal, (VALUE)&arg, &prot);
if (prot) {
close(fd);
rb_jump_tag(prot);
@@ -65,7 +65,12 @@ rsock_init_unixsock(VALUE sock, VALUE path, int server)
rb_sys_fail(sockaddr.sun_path);
}
- if (server) listen(fd, 5);
+ if (server) {
+ if (listen(fd, 5) < 0) {
+ close(fd);
+ rb_sys_fail("listen(2)");
+ }
+ }
rsock_init_sock(sock, fd);
if (server) {
@@ -84,7 +89,7 @@ rsock_init_unixsock(VALUE sock, VALUE path, int server)
*
* s = UNIXSocket.new("/tmp/sock")
* s.send "hello", 0
- *
+ *
*/
static VALUE
unix_init(VALUE sock, VALUE path)
@@ -110,7 +115,7 @@ unix_path(VALUE sock)
GetOpenFile(sock, fptr);
if (NIL_P(fptr->pathv)) {
struct sockaddr_un addr;
- socklen_t len = sizeof(addr);
+ socklen_t len = (socklen_t)sizeof(addr);
if (getsockname(fptr->fd, (struct sockaddr*)&addr, &len) < 0)
rb_sys_fail(0);
fptr->pathv = rb_obj_freeze(rb_str_new_cstr(rsock_unixpath(&addr, len)));
@@ -164,6 +169,7 @@ struct iomsg_arg {
struct msghdr msg;
};
+#if defined(HAVE_SENDMSG) && (FD_PASSING_BY_MSG_CONTROL || FD_PASSING_BY_MSG_ACCRIGHTS)
static VALUE
sendmsg_blocking(void *data)
{
@@ -171,7 +177,6 @@ sendmsg_blocking(void *data)
return sendmsg(arg->fd, &arg->msg, 0);
}
-#if defined(HAVE_SENDMSG) && (FD_PASSING_BY_MSG_CONTROL || FD_PASSING_BY_MSG_ACCRIGHTS)
/*
* call-seq:
* unixsocket.send_io(io) => nil
@@ -230,10 +235,10 @@ unix_send_io(VALUE sock, VALUE val)
#if FD_PASSING_BY_MSG_CONTROL
arg.msg.msg_control = (caddr_t)&cmsg;
- arg.msg.msg_controllen = CMSG_LEN(sizeof(int));
+ arg.msg.msg_controllen = (socklen_t)CMSG_LEN(sizeof(int));
arg.msg.msg_flags = 0;
MEMZERO((char*)&cmsg, char, sizeof(cmsg));
- cmsg.hdr.cmsg_len = CMSG_LEN(sizeof(int));
+ cmsg.hdr.cmsg_len = (socklen_t)CMSG_LEN(sizeof(int));
cmsg.hdr.cmsg_level = SOL_SOCKET;
cmsg.hdr.cmsg_type = SCM_RIGHTS;
memcpy(CMSG_DATA(&cmsg.hdr), &fd, sizeof(int));
@@ -243,9 +248,10 @@ unix_send_io(VALUE sock, VALUE val)
#endif
arg.fd = fptr->fd;
- rb_thread_fd_writable(arg.fd);
- if ((int)BLOCKING_REGION(sendmsg_blocking, &arg) == -1)
- rb_sys_fail("sendmsg(2)");
+ while ((int)BLOCKING_REGION_FD(sendmsg_blocking, &arg) == -1) {
+ if (!rb_io_wait_writable(arg.fd))
+ rb_sys_fail("sendmsg(2)");
+ }
return Qnil;
}
@@ -253,6 +259,7 @@ unix_send_io(VALUE sock, VALUE val)
#define unix_send_io rb_f_notimplement
#endif
+#if defined(HAVE_RECVMSG) && (FD_PASSING_BY_MSG_CONTROL || FD_PASSING_BY_MSG_ACCRIGHTS)
static VALUE
recvmsg_blocking(void *data)
{
@@ -260,17 +267,16 @@ recvmsg_blocking(void *data)
return recvmsg(arg->fd, &arg->msg, 0);
}
-#if defined(HAVE_RECVMSG) && (FD_PASSING_BY_MSG_CONTROL || FD_PASSING_BY_MSG_ACCRIGHTS)
/*
* call-seq:
* unixsocket.recv_io([klass [, mode]]) => io
*
* UNIXServer.open("/tmp/sock") {|serv|
- * UNIXSocket.open("/tmp/sock") {|c|
+ * UNIXSocket.open("/tmp/sock") {|c|
* s = serv.accept
*
- * c.send_io STDOUT
- * stdout = s.recv_io
+ * c.send_io STDOUT
+ * stdout = s.recv_io
*
* p STDOUT.fileno #=> 1
* p stdout.fileno #=> 7
@@ -315,9 +321,9 @@ unix_recv_io(int argc, VALUE *argv, VALUE sock)
#if FD_PASSING_BY_MSG_CONTROL
arg.msg.msg_control = (caddr_t)&cmsg;
- arg.msg.msg_controllen = CMSG_SPACE(sizeof(int));
+ arg.msg.msg_controllen = (socklen_t)CMSG_SPACE(sizeof(int));
arg.msg.msg_flags = 0;
- cmsg.hdr.cmsg_len = CMSG_LEN(sizeof(int));
+ cmsg.hdr.cmsg_len = (socklen_t)CMSG_LEN(sizeof(int));
cmsg.hdr.cmsg_level = SOL_SOCKET;
cmsg.hdr.cmsg_type = SCM_RIGHTS;
fd = -1;
@@ -329,12 +335,13 @@ unix_recv_io(int argc, VALUE *argv, VALUE sock)
#endif
arg.fd = fptr->fd;
- rb_thread_wait_fd(arg.fd);
- if ((int)BLOCKING_REGION(recvmsg_blocking, &arg) == -1)
- rb_sys_fail("recvmsg(2)");
+ while ((int)BLOCKING_REGION_FD(recvmsg_blocking, &arg) == -1) {
+ if (!rb_io_wait_readable(arg.fd))
+ rb_sys_fail("recvmsg(2)");
+ }
#if FD_PASSING_BY_MSG_CONTROL
- if (arg.msg.msg_controllen < sizeof(struct cmsghdr)) {
+ if (arg.msg.msg_controllen < (socklen_t)sizeof(struct cmsghdr)) {
rb_raise(rb_eSocket,
"file descriptor was not passed (msg_controllen=%d smaller than sizeof(struct cmsghdr)=%d)",
(int)arg.msg.msg_controllen, (int)sizeof(struct cmsghdr));
@@ -349,18 +356,18 @@ unix_recv_io(int argc, VALUE *argv, VALUE sock)
"file descriptor was not passed (cmsg_type=%d, %d expected)",
cmsg.hdr.cmsg_type, SCM_RIGHTS);
}
- if (arg.msg.msg_controllen < CMSG_LEN(sizeof(int))) {
+ if (arg.msg.msg_controllen < (socklen_t)CMSG_LEN(sizeof(int))) {
rb_raise(rb_eSocket,
"file descriptor was not passed (msg_controllen=%d smaller than CMSG_LEN(sizeof(int))=%d)",
(int)arg.msg.msg_controllen, (int)CMSG_LEN(sizeof(int)));
}
- if (CMSG_SPACE(sizeof(int)) < arg.msg.msg_controllen) {
+ if ((socklen_t)CMSG_SPACE(sizeof(int)) < arg.msg.msg_controllen) {
rb_raise(rb_eSocket,
"file descriptor was not passed (msg_controllen=%d bigger than CMSG_SPACE(sizeof(int))=%d)",
(int)arg.msg.msg_controllen, (int)CMSG_SPACE(sizeof(int)));
}
if (cmsg.hdr.cmsg_len != CMSG_LEN(sizeof(int))) {
- rsock_discard_cmsg_resource(&arg.msg);
+ rsock_discard_cmsg_resource(&arg.msg, 0);
rb_raise(rb_eSocket,
"file descriptor was not passed (cmsg_len=%d, %d expected)",
(int)cmsg.hdr.cmsg_len, (int)CMSG_LEN(sizeof(int)));
@@ -376,6 +383,7 @@ unix_recv_io(int argc, VALUE *argv, VALUE sock)
#if FD_PASSING_BY_MSG_CONTROL
memcpy(&fd, CMSG_DATA(&cmsg.hdr), sizeof(int));
#endif
+ rb_update_max_fd(fd);
if (klass == Qnil)
return INT2FIX(fd);
@@ -410,7 +418,7 @@ unix_addr(VALUE sock)
{
rb_io_t *fptr;
struct sockaddr_un addr;
- socklen_t len = sizeof addr;
+ socklen_t len = (socklen_t)sizeof addr;
GetOpenFile(sock, fptr);
@@ -436,7 +444,7 @@ unix_peeraddr(VALUE sock)
{
rb_io_t *fptr;
struct sockaddr_un addr;
- socklen_t len = sizeof addr;
+ socklen_t len = (socklen_t)sizeof addr;
GetOpenFile(sock, fptr);
@@ -467,9 +475,9 @@ static VALUE
unix_s_socketpair(int argc, VALUE *argv, VALUE klass)
{
VALUE domain, type, protocol;
- domain = INT2FIX(PF_UNIX);
VALUE args[3];
+ domain = INT2FIX(PF_UNIX);
rb_scan_args(argc, argv, "02", &type, &protocol);
if (argc == 0)
type = INT2FIX(SOCK_STREAM);
@@ -484,13 +492,15 @@ unix_s_socketpair(int argc, VALUE *argv, VALUE klass)
}
#endif
-/*
- * UNIXSocket class
- */
void
-Init_unixsocket(void)
+rsock_init_unixsocket(void)
{
#ifdef HAVE_SYS_UN_H
+ /*
+ * Document-class: UNIXSocket < BasicSocket
+ *
+ * UNIXSocket represents a UNIX domain stream client socket.
+ */
rb_cUNIXSocket = rb_define_class("UNIXSocket", rb_cBasicSocket);
rb_define_method(rb_cUNIXSocket, "initialize", unix_init, 1);
rb_define_method(rb_cUNIXSocket, "path", unix_path, 0);
diff --git a/ext/stringio/.cvsignore b/ext/stringio/.cvsignore
deleted file mode 100644
index 814345ece8..0000000000
--- a/ext/stringio/.cvsignore
+++ /dev/null
@@ -1,4 +0,0 @@
-Makefile
-mkmf.log
-*.def
-extconf.h
diff --git a/ext/stringio/README b/ext/stringio/README
index 10dd237de8..d03f37dfd3 100644
--- a/ext/stringio/README
+++ b/ext/stringio/README
@@ -13,6 +13,6 @@ This library is based on MoonWolf version written in Ruby. Thanks a lot.
* not implemented: (({fcntl})), (({reopen})).
* (({fileno})) returns nil.
* (({pos=})) returns new position, not 0.
-* (({ungetc})) does nothing at start of the string.
+* (({ungetc})) does nothing at start of the string.
=end
diff --git a/ext/stringio/depend b/ext/stringio/depend
index 338ebde529..e3f3409ed7 100644
--- a/ext/stringio/depend
+++ b/ext/stringio/depend
@@ -1,3 +1,3 @@
stringio.o: stringio.c $(hdrdir)/ruby/ruby.h $(arch_hdrdir)/ruby/config.h \
$(hdrdir)/ruby/defines.h $(hdrdir)/ruby/intern.h $(hdrdir)/ruby/io.h \
- $(hdrdir)/ruby/encoding.h
+ $(hdrdir)/ruby/encoding.h
diff --git a/ext/stringio/stringio.c b/ext/stringio/stringio.c
index 9bb5ed8a2a..6c41c3c368 100644
--- a/ext/stringio/stringio.c
+++ b/ext/stringio/stringio.c
@@ -28,15 +28,13 @@ struct StringIO {
int count;
};
-static void strio_mark _((struct StringIO *));
-static void strio_free _((struct StringIO *));
static void strio_init(int, VALUE *, struct StringIO *);
-#define IS_STRIO(obj) (RDATA(obj)->dmark == (RUBY_DATA_FUNC)strio_mark)
+#define IS_STRIO(obj) (rb_typeddata_is_kind_of((obj), &strio_data_type))
#define error_inval(msg) (errno = EINVAL, rb_sys_fail(msg))
static struct StringIO *
-strio_alloc()
+strio_alloc(void)
{
struct StringIO *ptr = ALLOC(struct StringIO);
ptr->string = Qnil;
@@ -48,36 +46,46 @@ strio_alloc()
}
static void
-strio_mark(struct StringIO *ptr)
+strio_mark(void *p)
{
+ struct StringIO *ptr = p;
if (ptr) {
rb_gc_mark(ptr->string);
}
}
static void
-strio_free(struct StringIO *ptr)
+strio_free(void *p)
{
+ struct StringIO *ptr = p;
if (--ptr->count <= 0) {
xfree(ptr);
}
}
-static struct StringIO*
-check_strio(VALUE self)
+static size_t
+strio_memsize(const void *p)
{
- Check_Type(self, T_DATA);
- if (!IS_STRIO(self)) {
- rb_raise(rb_eTypeError, "wrong argument type %s (expected StringIO)",
- rb_class2name(CLASS_OF(self)));
- }
- return DATA_PTR(self);
+ const struct StringIO *ptr = p;
+ if (!ptr) return 0;
+ return sizeof(struct StringIO);
}
+static const rb_data_type_t strio_data_type = {
+ "strio",
+ {
+ strio_mark,
+ strio_free,
+ strio_memsize,
+ },
+};
+
+#define check_strio(self) ((struct StringIO*)rb_check_typeddata((self), &strio_data_type))
+
static struct StringIO*
get_strio(VALUE self)
{
- struct StringIO *ptr = check_strio(self);
+ struct StringIO *ptr = check_strio(rb_io_taint_check(self));
if (!ptr) {
rb_raise(rb_eIOError, "uninitialized stream");
@@ -135,7 +143,7 @@ check_modifiable(struct StringIO *ptr)
static VALUE
strio_s_allocate(VALUE klass)
{
- return Data_Wrap_Struct(klass, strio_mark, strio_free, 0);
+ return TypedData_Wrap_Struct(klass, &strio_data_type, 0);
}
/*
@@ -304,7 +312,7 @@ strio_set_string(VALUE self, VALUE string)
{
struct StringIO *ptr = StringIO(self);
- if (!OBJ_TAINTED(self)) rb_secure(4);
+ rb_io_taint_check(self);
ptr->flags &= ~FMODE_READWRITE;
StringValue(string);
ptr->flags = OBJ_FROZEN(string) ? FMODE_READABLE : FMODE_READWRITE;
@@ -317,7 +325,7 @@ strio_set_string(VALUE self, VALUE string)
* call-seq:
* strio.close -> nil
*
- * Closes strio. The *strio* is unavailable for any further data
+ * Closes strio. The *strio* is unavailable for any further data
* operations; an +IOError+ is raised if such an attempt is made.
*/
static VALUE
@@ -414,7 +422,7 @@ strio_closed_write(VALUE self)
* strio.eof -> true or false
* strio.eof? -> true or false
*
- * Returns true if *strio* is at end of file. The stringio must be
+ * Returns true if *strio* is at end of file. The stringio must be
* opened for reading or an +IOError+ will be raised.
*/
static VALUE
@@ -490,13 +498,13 @@ strio_set_lineno(VALUE self, VALUE lineno)
* strio.reopen(other_StrIO) -> strio
* strio.reopen(string, mode) -> strio
*
- * Reinitializes *strio* with the given <i>other_StrIO</i> or _string_
+ * Reinitializes *strio* with the given <i>other_StrIO</i> or _string_
* and _mode_ (see StringIO#new).
*/
static VALUE
strio_reopen(int argc, VALUE *argv, VALUE self)
{
- if (!OBJ_TAINTED(self)) rb_secure(4);
+ rb_io_taint_check(self);
if (argc == 1 && TYPE(*argv) != T_STRING) {
return strio_copy(self, *argv);
}
@@ -609,7 +617,11 @@ strio_get_sync(VALUE self)
/*
* call-seq:
+ * strio.bytes {|byte| block } -> strio
+ * strio.bytes -> anEnumerator
+ *
* strio.each_byte {|byte| block } -> strio
+ * strio.each_byte -> anEnumerator
*
* See IO#each_byte.
*/
@@ -690,10 +702,9 @@ strio_extend(struct StringIO *ptr, long pos, long len)
* strio.ungetc(string) -> nil
*
* Pushes back one character (passed as a parameter) onto *strio*
- * such that a subsequent buffered read will return it. Pushing back
- * behind the beginning of the buffer string is not possible. Nothing
- * will be done if such an attempt is made.
- * In other case, there is no limitation for multiple pushbacks.
+ * such that a subsequent buffered read will return it. There is no
+ * limitation for multiple pushbacks including pushing back behind the
+ * beginning of the buffer string.
*/
static VALUE
strio_ungetc(VALUE self, VALUE c)
@@ -720,17 +731,26 @@ strio_ungetc(VALUE self, VALUE c)
c = rb_str_conv_enc(c, enc2, enc);
}
}
- /* get logical position */
- lpos = 0; p = RSTRING_PTR(ptr->string); pend = p + ptr->pos;
- for (;;) {
- clen = rb_enc_mbclen(p, pend, enc);
- if (p+clen >= pend) break;
- p += clen;
- lpos++;
+ if (RSTRING_LEN(ptr->string) < ptr->pos) {
+ long len = RSTRING_LEN(ptr->string);
+ rb_str_resize(ptr->string, ptr->pos - 1);
+ memset(RSTRING_PTR(ptr->string) + len, 0, ptr->pos - len - 1);
+ rb_str_concat(ptr->string, c);
+ ptr->pos--;
+ }
+ else {
+ /* get logical position */
+ lpos = 0; p = RSTRING_PTR(ptr->string); pend = p + ptr->pos;
+ for (;;) {
+ clen = rb_enc_mbclen(p, pend, enc);
+ if (p+clen >= pend) break;
+ p += clen;
+ lpos++;
+ }
+ clen = p - RSTRING_PTR(ptr->string);
+ rb_str_update(ptr->string, lpos, ptr->pos ? 1 : 0, c);
+ ptr->pos = clen;
}
- clen = p - RSTRING_PTR(ptr->string);
- rb_str_update(ptr->string, lpos, ptr->pos ? 1 : 0, c);
- ptr->pos = clen;
return Qnil;
}
@@ -786,7 +806,7 @@ strio_ungetbyte(VALUE self, VALUE c)
static VALUE
strio_readchar(VALUE self)
{
- VALUE c = strio_getc(self);
+ VALUE c = rb_funcall2(self, rb_intern("getc"), 0, 0);
if (NIL_P(c)) rb_eof_error();
return c;
}
@@ -800,14 +820,18 @@ strio_readchar(VALUE self)
static VALUE
strio_readbyte(VALUE self)
{
- VALUE c = strio_getbyte(self);
+ VALUE c = rb_funcall2(self, rb_intern("getbyte"), 0, 0);
if (NIL_P(c)) rb_eof_error();
return c;
}
/*
* call-seq:
+ * strio.chars {|char| block } -> strio
+ * strio.chars -> anEnumerator
+ *
* strio.each_char {|char| block } -> strio
+ * strio.each_char -> anEnumerator
*
* See IO#each_char.
*/
@@ -824,6 +848,41 @@ strio_each_char(VALUE self)
return self;
}
+/*
+ * call-seq:
+ * strio.codepoints {|c| block } -> strio
+ * strio.codepoints -> anEnumerator
+ *
+ * strio.each_codepoint {|c| block } -> strio
+ * strio.each_codepoint -> anEnumerator
+ *
+ * See IO#each_codepoint.
+ */
+static VALUE
+strio_each_codepoint(VALUE self)
+{
+ struct StringIO *ptr;
+ rb_encoding *enc;
+ unsigned int c;
+ int n;
+
+ RETURN_ENUMERATOR(self, 0, 0);
+
+ ptr = readable(StringIO(self));
+ enc = rb_enc_get(ptr->string);
+ for (;;) {
+ if (ptr->pos >= RSTRING_LEN(ptr->string)) {
+ return self;
+ }
+
+ c = rb_enc_codepoint_len(RSTRING_PTR(ptr->string)+ptr->pos,
+ RSTRING_END(ptr->string), &n, enc);
+ rb_yield(UINT2NUM(c));
+ ptr->pos += n;
+ }
+ return self;
+}
+
/* Boyer-Moore search: copied from regex.c */
static void
bm_init_skip(long *skip, const char *pat, long m)
@@ -862,18 +921,17 @@ strio_getline(int argc, VALUE *argv, struct StringIO *ptr)
{
const char *s, *e, *p;
long n, limit = 0;
- VALUE str;
+ VALUE str, lim;
- if (argc == 0) {
+ rb_scan_args(argc, argv, "02", &str, &lim);
+ switch (argc) {
+ case 0:
str = rb_rs;
- }
- else {
- VALUE lim, tmp;
+ break;
- rb_scan_args(argc, argv, "11", &str, &lim);
- if (!NIL_P(lim)) limit = NUM2LONG(lim);
- else if (!NIL_P(str) && TYPE(str) != T_STRING) {
- tmp = rb_check_string_type(str);
+ case 1:
+ if (!NIL_P(str) && TYPE(str) != T_STRING) {
+ VALUE tmp = rb_check_string_type(str);
if (NIL_P(tmp)) {
limit = NUM2LONG(str);
if (limit == 0) return rb_str_new(0,0);
@@ -883,9 +941,12 @@ strio_getline(int argc, VALUE *argv, struct StringIO *ptr)
str = tmp;
}
}
- else if (!NIL_P(str)) {
- StringValue(str);
- }
+ break;
+
+ case 2:
+ if (!NIL_P(str)) StringValue(str);
+ limit = NUM2LONG(lim);
+ break;
}
if (ptr->pos >= (n = RSTRING_LEN(ptr->string))) {
@@ -895,7 +956,7 @@ strio_getline(int argc, VALUE *argv, struct StringIO *ptr)
e = s + RSTRING_LEN(ptr->string);
s += ptr->pos;
if (limit > 0 && s + limit < e) {
- e = s + limit;
+ e = rb_enc_right_char_head(s, s + limit, e, rb_enc_get(ptr->string));
}
if (NIL_P(str)) {
str = strio_substr(ptr, ptr->pos, e - s);
@@ -914,7 +975,7 @@ strio_getline(int argc, VALUE *argv, struct StringIO *ptr)
break;
}
}
- str = strio_substr(ptr, s - RSTRING_PTR(ptr->string), e - s);
+ str = strio_substr(ptr, s - RSTRING_PTR(ptr->string), e - s);
}
else if (n == 1) {
if ((p = memchr(s, RSTRING_PTR(str)[0], e - s)) != 0) {
@@ -976,7 +1037,7 @@ strio_gets(int argc, VALUE *argv, VALUE self)
static VALUE
strio_readline(int argc, VALUE *argv, VALUE self)
{
- VALUE line = strio_gets(argc, argv, self);
+ VALUE line = rb_funcall2(self, rb_intern("gets"), argc, argv);
if (NIL_P(line)) rb_eof_error();
return line;
}
@@ -986,9 +1047,17 @@ strio_readline(int argc, VALUE *argv, VALUE self)
* strio.each(sep=$/) {|line| block } -> strio
* strio.each(limit) {|line| block } -> strio
* strio.each(sep, limit) {|line| block } -> strio
+ * strio.each(...) -> anEnumerator
+ *
* strio.each_line(sep=$/) {|line| block } -> strio
* strio.each_line(limit) {|line| block } -> strio
* strio.each_line(sep,limit) {|line| block } -> strio
+ * strio.each_line(...) -> anEnumerator
+ *
+ * strio.lines(sep=$/) {|line| block } -> strio
+ * strio.lines(limit) {|line| block } -> strio
+ * strio.lines(sep,limit) {|line| block } -> strio
+ * strio.lines(...) -> anEnumerator
*
* See IO#each.
*/
@@ -1000,6 +1069,11 @@ strio_each(int argc, VALUE *argv, VALUE self)
RETURN_ENUMERATOR(self, argc, argv);
+ if (argc > 0 && !NIL_P(argv[argc-1]) && NIL_P(rb_check_string_type(argv[argc-1])) &&
+ NUM2LONG(argv[argc-1]) == 0) {
+ rb_raise(rb_eArgError, "invalid limit: 0 for each_line");
+ }
+
while (!NIL_P(line = strio_getline(argc, argv, readable(ptr)))) {
rb_yield(line);
}
@@ -1019,6 +1093,12 @@ strio_readlines(int argc, VALUE *argv, VALUE self)
{
struct StringIO *ptr = StringIO(self);
VALUE ary = rb_ary_new(), line;
+
+ if (argc > 0 && !NIL_P(argv[argc-1]) && NIL_P(rb_check_string_type(argv[argc-1])) &&
+ NUM2LONG(argv[argc-1]) == 0) {
+ rb_raise(rb_eArgError, "invalid limit: 0 for readlines");
+ }
+
while (!NIL_P(line = strio_getline(argc, argv, readable(ptr)))) {
rb_ary_push(ary, line);
}
@@ -1042,6 +1122,7 @@ strio_write(VALUE self, VALUE str)
long len, olen;
rb_encoding *enc, *enc2;
+ RB_GC_GUARD(str);
if (TYPE(str) != T_STRING)
str = rb_obj_as_string(str);
enc = rb_enc_get(ptr->string);
@@ -1137,16 +1218,19 @@ strio_read(int argc, VALUE *argv, VALUE self)
{
struct StringIO *ptr = readable(StringIO(self));
VALUE str = Qnil;
- long len, olen;
+ long len;
+ int binary = 0;
switch (argc) {
case 2:
str = argv[1];
- StringValue(str);
- rb_str_modify(str);
+ if (!NIL_P(str)) {
+ StringValue(str);
+ rb_str_modify(str);
+ }
case 1:
if (!NIL_P(argv[0])) {
- len = olen = NUM2LONG(argv[0]);
+ len = NUM2LONG(argv[0]);
if (len < 0) {
rb_raise(rb_eArgError, "negative length %ld given", len);
}
@@ -1154,11 +1238,11 @@ strio_read(int argc, VALUE *argv, VALUE self)
if (!NIL_P(str)) rb_str_resize(str, 0);
return Qnil;
}
+ binary = 1;
break;
}
/* fall through */
case 0:
- olen = -1;
len = RSTRING_LEN(ptr->string);
if (len <= ptr->pos) {
if (NIL_P(str)) {
@@ -1178,20 +1262,19 @@ strio_read(int argc, VALUE *argv, VALUE self)
}
if (NIL_P(str)) {
str = strio_substr(ptr, ptr->pos, len);
+ if (binary) rb_enc_associate(str, rb_ascii8bit_encoding());
}
else {
long rest = RSTRING_LEN(ptr->string) - ptr->pos;
if (len > rest) len = rest;
rb_str_resize(str, len);
MEMCPY(RSTRING_PTR(str), RSTRING_PTR(ptr->string) + ptr->pos, char, len);
+ if (binary)
+ rb_enc_associate(str, rb_ascii8bit_encoding());
+ else
+ rb_enc_copy(str, ptr->string);
}
- if (NIL_P(str)) {
- str = rb_str_new(0, 0);
- len = 0;
- }
- else {
- ptr->pos += len = RSTRING_LEN(str);
- }
+ ptr->pos += RSTRING_LEN(str);
return str;
}
@@ -1205,14 +1288,14 @@ strio_read(int argc, VALUE *argv, VALUE self)
static VALUE
strio_sysread(int argc, VALUE *argv, VALUE self)
{
- VALUE val = strio_read(argc, argv, self);
+ VALUE val = rb_funcall2(self, rb_intern("read"), argc, argv);
if (NIL_P(val)) {
rb_eof_error();
}
return val;
}
-#define strio_syswrite strio_write
+#define strio_syswrite rb_io_write
/*
* call-seq:
@@ -1297,17 +1380,29 @@ strio_internal_encoding(VALUE self)
/*
* call-seq:
- * strio.set_encoding(ext_enc) => strio
+ * strio.set_encoding(ext_enc, [int_enc[, opt]]) => strio
*
- * Tagged with the encoding specified.
+ * Specify the encoding of the StringIO as <i>ext_enc</i>.
+ * Use the default external encoding if <i>ext_enc</i> is nil.
+ * 2nd argument <i>int_enc</i> and optional hash <i>opt</i> argument
+ * are ignored; they are for API compatibility to IO.
*/
static VALUE
-strio_set_encoding(VALUE self, VALUE ext_enc)
+strio_set_encoding(int argc, VALUE *argv, VALUE self)
{
rb_encoding* enc;
VALUE str = StringIO(self)->string;
- enc = rb_to_encoding(ext_enc);
+ VALUE ext_enc, int_enc, opt;
+
+ argc = rb_scan_args(argc, argv, "11:", &ext_enc, &int_enc, &opt);
+
+ if (NIL_P(ext_enc)) {
+ enc = rb_default_external_encoding();
+ }
+ else {
+ enc = rb_to_encoding(ext_enc);
+ }
rb_enc_associate(str, enc);
return self;
}
@@ -1359,26 +1454,18 @@ Init_stringio()
rb_define_method(StringIO, "bytes", strio_each_byte, 0);
rb_define_method(StringIO, "each_char", strio_each_char, 0);
rb_define_method(StringIO, "chars", strio_each_char, 0);
+ rb_define_method(StringIO, "each_codepoint", strio_each_codepoint, 0);
+ rb_define_method(StringIO, "codepoints", strio_each_codepoint, 0);
rb_define_method(StringIO, "getc", strio_getc, 0);
rb_define_method(StringIO, "ungetc", strio_ungetc, 1);
rb_define_method(StringIO, "ungetbyte", strio_ungetbyte, 1);
- rb_define_method(StringIO, "readchar", strio_readchar, 0);
rb_define_method(StringIO, "getbyte", strio_getbyte, 0);
- rb_define_method(StringIO, "readbyte", strio_readbyte, 0);
rb_define_method(StringIO, "gets", strio_gets, -1);
- rb_define_method(StringIO, "readline", strio_readline, -1);
rb_define_method(StringIO, "readlines", strio_readlines, -1);
rb_define_method(StringIO, "read", strio_read, -1);
- rb_define_method(StringIO, "sysread", strio_sysread, -1);
- rb_define_method(StringIO, "readpartial", strio_sysread, -1);
rb_define_method(StringIO, "write", strio_write, 1);
- rb_define_method(StringIO, "<<", strio_addstr, 1);
- rb_define_method(StringIO, "print", strio_print, -1);
- rb_define_method(StringIO, "printf", strio_printf, -1);
rb_define_method(StringIO, "putc", strio_putc, 1);
- rb_define_method(StringIO, "puts", strio_puts, -1);
- rb_define_method(StringIO, "syswrite", strio_syswrite, 1);
rb_define_method(StringIO, "isatty", strio_isatty, 0);
rb_define_method(StringIO, "tty?", strio_isatty, 0);
@@ -1390,5 +1477,26 @@ Init_stringio()
rb_define_method(StringIO, "external_encoding", strio_external_encoding, 0);
rb_define_method(StringIO, "internal_encoding", strio_internal_encoding, 0);
- rb_define_method(StringIO, "set_encoding", strio_set_encoding, 1);
+ rb_define_method(StringIO, "set_encoding", strio_set_encoding, -1);
+
+ {
+ VALUE mReadable = rb_define_module_under(rb_cIO, "readable");
+ rb_define_method(mReadable, "readchar", strio_readchar, 0);
+ rb_define_method(mReadable, "readbyte", strio_readbyte, 0);
+ rb_define_method(mReadable, "readline", strio_readline, -1);
+ rb_define_method(mReadable, "sysread", strio_sysread, -1);
+ rb_define_method(mReadable, "readpartial", strio_sysread, -1);
+ rb_define_method(mReadable, "read_nonblock", strio_sysread, -1);
+ rb_include_module(StringIO, mReadable);
+ }
+ {
+ VALUE mWritable = rb_define_module_under(rb_cIO, "writable");
+ rb_define_method(mWritable, "<<", strio_addstr, 1);
+ rb_define_method(mWritable, "print", strio_print, -1);
+ rb_define_method(mWritable, "printf", strio_printf, -1);
+ rb_define_method(mWritable, "puts", strio_puts, -1);
+ rb_define_method(mWritable, "syswrite", strio_syswrite, 1);
+ rb_define_method(mWritable, "write_nonblock", strio_syswrite, 1);
+ rb_include_module(StringIO, mWritable);
+ }
}
diff --git a/ext/strscan/.cvsignore b/ext/strscan/.cvsignore
deleted file mode 100644
index 814345ece8..0000000000
--- a/ext/strscan/.cvsignore
+++ /dev/null
@@ -1,4 +0,0 @@
-Makefile
-mkmf.log
-*.def
-extconf.h
diff --git a/ext/strscan/strscan.c b/ext/strscan/strscan.c
index 6b0d8e7c52..dcad837a37 100644
--- a/ext/strscan/strscan.c
+++ b/ext/strscan/strscan.c
@@ -29,7 +29,7 @@ struct strscanner
/* the string to scan */
VALUE str;
-
+
/* scan pointers */
long prev; /* legal only when MATCHED_P(s) */
long curr; /* always legal */
@@ -51,8 +51,8 @@ struct strscanner
#define EOS_P(s) ((s)->curr >= RSTRING_LEN(p->str))
#define GET_SCANNER(obj,var) do {\
- Data_Get_Struct(obj, struct strscanner, var);\
- if (NIL_P(var->str)) rb_raise(rb_eArgError, "uninitialized StringScanner object");\
+ Data_Get_Struct((obj), struct strscanner, (var));\
+ if (NIL_P((var)->str)) rb_raise(rb_eArgError, "uninitialized StringScanner object");\
} while (0)
/* =======================================================================
@@ -173,7 +173,7 @@ static VALUE
strscan_s_allocate(VALUE klass)
{
struct strscanner *p;
-
+
p = ALLOC(struct strscanner);
MEMZERO(p, struct strscanner, 1);
CLEAR_MATCH_STATUS(p);
@@ -321,8 +321,7 @@ strscan_set_string(VALUE self, VALUE str)
Data_Get_Struct(self, struct strscanner, p);
StringValue(str);
- p->str = rb_str_dup(str);
- rb_obj_freeze(p->str);
+ p->str = str;
p->curr = 0;
CLEAR_MATCH_STATUS(p);
return str;
@@ -354,9 +353,9 @@ strscan_concat(VALUE self, VALUE str)
}
/*
- * Returns the position of the scan pointer. In the 'reset' position, this
+ * Returns the byte position of the scan pointer. In the 'reset' position, this
* value is zero. In the 'terminated' position (i.e. the string is exhausted),
- * this value is the length of the string.
+ * this value is the bytesize of the string.
*
* In short, it's a 0-based index into the string.
*
@@ -379,7 +378,7 @@ strscan_get_pos(VALUE self)
/*
* call-seq: pos=(n)
*
- * Modify the scan pointer.
+ * Set the byte position of the scan pointer.
*
* s = StringScanner.new('test string')
* s.pos = 7 # -> 7
@@ -406,7 +405,7 @@ strscan_do_scan(VALUE self, VALUE regex, int succptr, int getstr, int headonly)
regex_t *rb_reg_prepare_re(VALUE re, VALUE str);
struct strscanner *p;
regex_t *re;
- int ret;
+ long ret;
int tmpreg;
Check_Type(regex, T_REGEXP);
@@ -610,7 +609,7 @@ strscan_exist_p(VALUE self, VALUE re)
*
* s = StringScanner.new("Fri Dec 12 1975 14:39")
* s.skip_until /12/ # -> 10
- * s #
+ * s #
*/
static VALUE
strscan_skip_until(VALUE self, VALUE re)
@@ -656,7 +655,7 @@ static void
adjust_registers_to_matched(struct strscanner *p)
{
onig_region_clear(&(p->regs));
- onig_region_set(&(p->regs), 0, 0, p->curr - p->prev);
+ onig_region_set(&(p->regs), 0, 0, (int)(p->curr - p->prev));
}
/*
@@ -894,7 +893,7 @@ strscan_matched_p(VALUE self)
/*
* Returns the last matched string.
- *
+ *
* s = StringScanner.new('test string')
* s.match?(/\w+/) # -> 4
* s.matched # -> "test"
@@ -931,17 +930,6 @@ strscan_matched_size(VALUE self)
}
/*
- * Equivalent to #matched_size.
- * This method is obsolete; use #matched_size instead.
- */
-static VALUE
-strscan_matchedsize(VALUE self)
-{
- rb_warning("StringScanner#matchedsize is obsolete; use #matched_size instead");
- return strscan_matched_size(self);
-}
-
-/*
* call-seq: [](n)
*
* Return the n-th subgroup in the most recent match.
@@ -963,7 +951,7 @@ strscan_aref(VALUE self, VALUE idx)
GET_SCANNER(self, p);
if (! MATCHED_P(p)) return Qnil;
-
+
i = NUM2LONG(idx);
if (i < 0)
i += p->regs.num_regs;
@@ -1153,20 +1141,20 @@ inspect2(struct strscanner *p)
/*
* Document-class: StringScanner
- *
+ *
* StringScanner provides for lexical scanning operations on a String. Here is
* an example of its usage:
*
* s = StringScanner.new('This is an example string')
* s.eos? # -> false
- *
+ *
* p s.scan(/\w+/) # -> "This"
* p s.scan(/\w+/) # -> nil
* p s.scan(/\s+/) # -> " "
* p s.scan(/\s+/) # -> nil
* p s.scan(/\w+/) # -> "is"
* s.eos? # -> false
- *
+ *
* p s.scan(/\s+/) # -> " "
* p s.scan(/\w+/) # -> "an"
* p s.scan(/\s+/) # -> " "
@@ -1174,7 +1162,7 @@ inspect2(struct strscanner *p)
* p s.scan(/\s+/) # -> " "
* p s.scan(/\w+/) # -> "string"
* s.eos? # -> true
- *
+ *
* p s.scan(/\s+/) # -> nil
* p s.scan(/\w+/) # -> nil
*
@@ -1203,7 +1191,7 @@ inspect2(struct strscanner *p)
* the string without actually scanning. You can access the most recent match.
* You can modify the string being scanned, reset or terminate the scanner,
* find out or change the position of the scan pointer, skip ahead, and so on.
- *
+ *
* === Advancing the Scan Pointer
*
* - #getch
@@ -1234,7 +1222,7 @@ inspect2(struct strscanner *p)
* - #reset
* - #terminate
* - #pos=
- *
+ *
* === Match Data
*
* - #matched
@@ -1271,7 +1259,7 @@ Init_strscan()
tmp = rb_str_new2("$Id$");
rb_obj_freeze(tmp);
rb_const_set(StringScanner, rb_intern("Id"), tmp);
-
+
rb_define_alloc_func(StringScanner, strscan_s_allocate);
rb_define_private_method(StringScanner, "initialize", strscan_initialize, -1);
rb_define_private_method(StringScanner, "initialize_copy", strscan_init_copy, 1);
@@ -1317,7 +1305,6 @@ Init_strscan()
rb_define_method(StringScanner, "matched?", strscan_matched_p, 0);
rb_define_method(StringScanner, "matched", strscan_matched, 0);
rb_define_method(StringScanner, "matched_size", strscan_matched_size, 0);
- rb_define_method(StringScanner, "matchedsize", strscan_matchedsize, 0);
rb_define_method(StringScanner, "[]", strscan_aref, 1);
rb_define_method(StringScanner, "pre_match", strscan_pre_match, 0);
rb_define_method(StringScanner, "post_match", strscan_post_match, 0);
diff --git a/ext/syck/.cvsignore b/ext/syck/.cvsignore
deleted file mode 100644
index 814345ece8..0000000000
--- a/ext/syck/.cvsignore
+++ /dev/null
@@ -1,4 +0,0 @@
-Makefile
-mkmf.log
-*.def
-extconf.h
diff --git a/ext/syck/bytecode.c b/ext/syck/bytecode.c
index 25ba678300..3310713e5c 100644
--- a/ext/syck/bytecode.c
+++ b/ext/syck/bytecode.c
@@ -98,7 +98,7 @@ char *get_inline( SyckParser *parser );
if ( reset == 1 ) YYPOS(0); \
return YAML_IOPEN; \
} \
- }
+ }
/*
* Nice little macro to ensure closure of levels.
@@ -135,7 +135,7 @@ sycklex_bytecode_utf8( YYSTYPE *sycklval, SyckParser *parser )
{
SyckLevel *lvl;
syck_parser_ptr = parser;
- if ( YYCURSOR == NULL )
+ if ( YYCURSOR == NULL )
{
syck_parser_read( parser );
}
@@ -289,7 +289,7 @@ yy17: ++YYCURSOR;
goto yy18;
yy18:
#line 288 "bytecode.re"
-{ ADD_BYTE_LEVEL(lvl, lvl->spaces + 1, syck_lvl_str);
+{ ADD_BYTE_LEVEL(lvl, lvl->spaces + 1, syck_lvl_str);
goto Scalar;
}
#line 296 "<stdout>"
@@ -325,7 +325,7 @@ yy24:
CHK_NL(YYCURSOR);
if ( qstr[0] == '!' )
{
- int qidx = strlen( qstr );
+ size_t qidx = strlen( qstr );
if ( qstr[1] == '\0' )
{
free( qstr );
@@ -392,7 +392,7 @@ yy28:
{ CHK_NL(YYCURSOR);
if ( lvl->status == syck_lvl_seq )
{
- return YAML_INDENT;
+ return YAML_INDENT;
}
else if ( lvl->status == syck_lvl_map )
{
@@ -434,12 +434,12 @@ yy33:
FORCE_NEXT_TOKEN( '}' );
return '{';
}
-
+
POP_LEVEL();
lvl = CURRENT_LEVEL();
if ( lvl->status == syck_lvl_seq )
{
- FORCE_NEXT_TOKEN(YAML_INDENT);
+ FORCE_NEXT_TOKEN(YAML_INDENT);
}
else if ( lvl->status == syck_lvl_map )
{
@@ -494,7 +494,7 @@ yy39:
{
complex = 1;
}
- ADD_BYTE_LEVEL(lvl, lvl->spaces + 1, syck_lvl_map);
+ ADD_BYTE_LEVEL(lvl, lvl->spaces + 1, syck_lvl_map);
CHK_NL(YYCURSOR);
if ( complex )
{
@@ -990,7 +990,7 @@ yy70: ++YYCURSOR;
yy71:
#line 461 "bytecode.re"
{ YYCURSOR = tok;
- goto ScalarEnd;
+ goto ScalarEnd;
}
#line 996 "<stdout>"
yy72: ++YYCURSOR;
@@ -1001,7 +1001,7 @@ yy72: ++YYCURSOR;
yy73:
#line 469 "bytecode.re"
{ CAT(str, cap, idx, tok[0]);
- goto Scalar2;
+ goto Scalar2;
}
#line 1007 "<stdout>"
yy74: ++YYCURSOR;
@@ -1071,7 +1071,7 @@ yy84:
#line 456 "bytecode.re"
{ CHK_NL(tok+1);
CAT(str, cap, idx, '\0');
- goto Scalar2;
+ goto Scalar2;
}
#line 1077 "<stdout>"
}
@@ -1139,7 +1139,7 @@ yy89: ++YYCURSOR;
yy90:
#line 515 "bytecode.re"
{ CAT(str, cap, idx, tok[0]);
- goto Inline;
+ goto Inline;
}
#line 1145 "<stdout>"
yy91: ++YYCURSOR;
diff --git a/ext/syck/emitter.c b/ext/syck/emitter.c
index 73ff5d7a0b..af0d7891f8 100644
--- a/ext/syck/emitter.c
+++ b/ext/syck/emitter.c
@@ -4,9 +4,9 @@
* $Author$
*
* Copyright (C) 2003 why the lucky stiff
- *
+ *
* All Base64 code from Ruby's pack.c.
- * Ruby is Copyright (C) 1993-2007 Yukihiro Matsumoto
+ * Ruby is Copyright (C) 1993-2007 Yukihiro Matsumoto
*/
#include "ruby/ruby.h"
@@ -17,7 +17,7 @@
#define DEFAULT_ANCHOR_FORMAT "id%03d"
-const char hex_table[] =
+const char hex_table[] =
"0123456789ABCDEF";
static char b64_table[] =
"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/";
@@ -131,7 +131,7 @@ syck_new_emitter(void)
e->output_handler = NULL;
e->lvl_idx = 0;
e->lvl_capa = ALLOC_CT;
- e->levels = S_ALLOC_N( SyckLevel, e->lvl_capa );
+ e->levels = S_ALLOC_N( SyckLevel, e->lvl_capa );
syck_emitter_reset_levels( e );
e->bonus = NULL;
return e;
@@ -197,7 +197,7 @@ syck_emitter_pop_level( SyckEmitter *e )
free( e->levels[e->lvl_idx].domain );
}
-void
+void
syck_emitter_add_level( SyckEmitter *e, int len, enum syck_level_status status )
{
ASSERT( e != NULL );
@@ -289,12 +289,12 @@ syck_emitter_write( SyckEmitter *e, const char *str, long len )
{
syck_emitter_clear( e );
}
-
+
/*
* Flush if at end of buffer
*/
at = e->marker - e->buffer;
- if ( len + at >= e->bufsize )
+ if ( len + at >= (long)e->bufsize )
{
syck_emitter_flush( e, 0 );
for (;;) {
@@ -326,7 +326,7 @@ syck_emitter_flush( SyckEmitter *e, long check_room )
*/
if ( check_room > 0 )
{
- if ( e->bufsize > ( e->marker - e->buffer ) + check_room )
+ if ( (long)e->bufsize > ( e->marker - e->buffer ) + check_room )
{
return;
}
@@ -360,7 +360,7 @@ syck_emit( SyckEmitter *e, st_data_t n )
int indent = 0;
long x = 0;
SyckLevel *lvl = syck_emitter_current_level( e );
-
+
/*
* Determine headers.
*/
@@ -450,7 +450,7 @@ void syck_emit_tag( SyckEmitter *e, const char *tag, const char *ignore )
/* global types */
} else if ( strncmp( tag, "tag:", 4 ) == 0 ) {
- int taglen = strlen( tag );
+ int taglen = (int)strlen( tag );
syck_emitter_write( e, "!", 1 );
if ( strncmp( tag + 4, YAML_DOMAIN, strlen( YAML_DOMAIN ) ) == 0 ) {
int skip = 4 + strlen( YAML_DOMAIN ) + 1;
@@ -459,7 +459,7 @@ void syck_emit_tag( SyckEmitter *e, const char *tag, const char *ignore )
const char *subd = tag + 4;
while ( *subd != ':' && *subd != '\0' ) subd++;
if ( *subd == ':' ) {
- if ( subd - tag > ( strlen( YAML_DOMAIN ) + 5 ) &&
+ if ( subd - tag > ( (long)( strlen( YAML_DOMAIN ) + 5 )) &&
strncmp( subd - strlen( YAML_DOMAIN ), YAML_DOMAIN, strlen( YAML_DOMAIN ) ) == 0 ) {
syck_emitter_write( e, tag + 4, subd - strlen( YAML_DOMAIN ) - ( tag + 4 ) - 1 );
syck_emitter_write( e, "/", 1 );
@@ -485,7 +485,7 @@ void syck_emit_tag( SyckEmitter *e, const char *tag, const char *ignore )
lvl->anctag = 1;
}
-/*
+/*
* Emit a newline and an appropriately spaced indent.
*/
void syck_emit_indent( SyckEmitter *e )
@@ -569,8 +569,8 @@ syck_scan_scalar( int req_width, const char *cursor, long len )
} else if ( len > 1 && cursor[len-2] == '\n' ) {
flags |= SCAN_MANYNL_E;
}
- if (
- ( len > 0 && ( cursor[0] == ' ' || cursor[0] == '\t' ) ) ||
+ if (
+ ( len > 0 && ( cursor[0] == ' ' || cursor[0] == '\t' || cursor[0] == '\n' || cursor[0] == '\r' ) ) ||
( len > 1 && ( cursor[len-1] == ' ' || cursor[len-1] == '\t' ) )
) {
flags |= SCAN_WHITEEDGE;
@@ -594,7 +594,7 @@ syck_scan_scalar( int req_width, const char *cursor, long len )
flags |= SCAN_NEWLINE;
if ( len - i >= 3 && strncmp( &cursor[i+1], "---", 3 ) == 0 )
flags |= SCAN_DOCSEP;
- if ( cursor[i+1] == ' ' || cursor[i+1] == '\t' )
+ if ( cursor[i+1] == ' ' || cursor[i+1] == '\t' )
flags |= SCAN_INDENTED;
if ( req_width > 0 && i - start > req_width )
flags |= SCAN_WIDE;
@@ -618,12 +618,12 @@ syck_scan_scalar( int req_width, const char *cursor, long len )
}
/* remember, if plain collections get implemented, to add nb-plain-flow-char */
else if ( ( cursor[i] == ' ' && cursor[i+1] == '#' ) ||
- ( cursor[i] == ':' &&
+ ( cursor[i] == ':' &&
( cursor[i+1] == ' ' || cursor[i+1] == '\n' || i == len - 1 ) ) )
{
flags |= SCAN_INDIC_C;
}
- else if ( cursor[i] == ',' &&
+ else if ( cursor[i] == ',' &&
( cursor[i+1] == ' ' || cursor[i+1] == '\n' || i == len - 1 ) )
{
flags |= SCAN_FLOWMAP;
@@ -647,12 +647,12 @@ void syck_emit_scalar( SyckEmitter *e, const char *tag, enum scalar_style force_
int scan = 0;
const char *match_implicit;
char *implicit;
-
+
if ( str == NULL ) str = "";
/* No empty nulls as map keys */
- if ( len == 0 && ( parent->status == syck_lvl_map || parent->status == syck_lvl_imap ) &&
- parent->ncount % 2 == 1 && syck_tagcmp( tag, "tag:yaml.org,2002:null" ) == 0 )
+ if ( len == 0 && ( parent->status == syck_lvl_map || parent->status == syck_lvl_imap ) &&
+ parent->ncount % 2 == 1 && syck_tagcmp( tag, "tag:yaml.org,2002:null" ) == 0 )
{
str = "~";
len = 1;
@@ -662,14 +662,14 @@ void syck_emit_scalar( SyckEmitter *e, const char *tag, enum scalar_style force_
match_implicit = syck_match_implicit( str, len );
/* quote strings which default to implicits */
- implicit = syck_taguri( YAML_DOMAIN, match_implicit, strlen( match_implicit ) );
+ implicit = syck_taguri( YAML_DOMAIN, match_implicit, (int)strlen( match_implicit ) );
if ( syck_tagcmp( tag, implicit ) != 0 && syck_tagcmp( tag, "tag:yaml.org,2002:str" ) == 0 ) {
force_style = scalar_2quote;
} else {
/* complex key */
if ( parent->status == syck_lvl_map && parent->ncount % 2 == 1 &&
- ( !( tag == NULL ||
- ( implicit != NULL && syck_tagcmp( tag, implicit ) == 0 && e->explicit_typing == 0 ) ) ) )
+ ( !( tag == NULL ||
+ ( implicit != NULL && syck_tagcmp( tag, implicit ) == 0 && e->explicit_typing == 0 ) ) ) )
{
syck_emitter_write( e, "? ", 2 );
parent->status = syck_lvl_mapx;
@@ -1231,7 +1231,7 @@ syck_emitter_mark_node( SyckEmitter *e, st_data_t n )
/*
* Second time hitting this object, let's give it an anchor
*/
- idx = e->anchors->num_entries + 1;
+ idx = (int)(e->anchors->num_entries + 1);
anchor_name = S_ALLOC_N( char, strlen( anc ) + 10 );
S_MEMZERO( anchor_name, char, strlen( anc ) + 10 );
sprintf( anchor_name, anc, idx );
diff --git a/ext/syck/gram.c b/ext/syck/gram.c
index 615a594f61..8fe4e4f3b5 100644
--- a/ext/syck/gram.c
+++ b/ext/syck/gram.c
@@ -1216,7 +1216,7 @@ yyreduce:
case 8:
#line 76 "gram.y"
- {
+ {
syck_add_transfer( yyvsp[-1].name, yyvsp[0].nodeData, ((SyckParser *)parser)->taguri_expansion );
yyval.nodeData = yyvsp[0].nodeData;
}
@@ -1232,7 +1232,7 @@ yyreduce:
case 10:
#line 86 "gram.y"
- {
+ {
/*
* _Anchors_: The language binding must keep a separate symbol table
* for anchors. The actual ID in the symbol table is returned to the
@@ -1266,7 +1266,7 @@ yyreduce:
case 16:
#line 114 "gram.y"
- {
+ {
if ( ((SyckParser *)parser)->implicit_typing == 1 )
{
try_tag_implicit( yyvsp[0].nodeData, ((SyckParser *)parser)->taguri_expansion );
@@ -1277,7 +1277,7 @@ yyreduce:
case 17:
#line 122 "gram.y"
- {
+ {
syck_add_transfer( yyvsp[-1].name, yyvsp[0].nodeData, ((SyckParser *)parser)->taguri_expansion );
yyval.nodeData = yyvsp[0].nodeData;
}
@@ -1293,7 +1293,7 @@ yyreduce:
case 19:
#line 132 "gram.y"
- {
+ {
/*
* _Anchors_: The language binding must keep a separate symbol table
* for anchors. The actual ID in the symbol table is returned to the
@@ -1305,7 +1305,7 @@ yyreduce:
case 26:
#line 165 "gram.y"
- {
+ {
syck_add_transfer( yyvsp[-1].name, yyvsp[0].nodeData, ((SyckParser *)parser)->taguri_expansion );
yyval.nodeData = yyvsp[0].nodeData;
}
@@ -1313,7 +1313,7 @@ yyreduce:
case 27:
#line 170 "gram.y"
- {
+ {
syck_add_transfer( yyvsp[-1].name, yyvsp[0].nodeData, 0 );
yyval.nodeData = yyvsp[0].nodeData;
}
@@ -1321,7 +1321,7 @@ yyreduce:
case 28:
#line 175 "gram.y"
- {
+ {
if ( ((SyckParser *)parser)->implicit_typing == 1 )
{
try_tag_implicit( yyvsp[0].nodeData, ((SyckParser *)parser)->taguri_expansion );
@@ -1332,7 +1332,7 @@ yyreduce:
case 29:
#line 183 "gram.y"
- {
+ {
yyval.nodeData = syck_hdlr_add_anchor( (SyckParser *)parser, yyvsp[-1].name, yyvsp[0].nodeData );
}
break;
@@ -1350,7 +1350,7 @@ yyreduce:
case 31:
#line 195 "gram.y"
- {
+ {
SyckNode *n = yyvsp[0].nodeData;
if ( ((SyckParser *)parser)->taguri_expansion == 1 )
{
@@ -1373,28 +1373,28 @@ yyreduce:
case 39:
#line 229 "gram.y"
- {
+ {
yyval.nodeData = yyvsp[-1].nodeData;
}
break;
case 40:
#line 233 "gram.y"
- {
+ {
yyval.nodeData = yyvsp[-1].nodeData;
}
break;
case 41:
#line 239 "gram.y"
- {
+ {
yyval.nodeId = syck_hdlr_add_node( (SyckParser *)parser, yyvsp[0].nodeData );
}
break;
case 42:
#line 245 "gram.y"
- {
+ {
syck_add_transfer( yyvsp[-2].name, yyvsp[0].nodeData, ((SyckParser *)parser)->taguri_expansion );
yyval.nodeData = yyvsp[0].nodeData;
}
@@ -1402,7 +1402,7 @@ yyreduce:
case 43:
#line 250 "gram.y"
- {
+ {
syck_add_transfer( yyvsp[-1].name, yyvsp[0].nodeData, ((SyckParser *)parser)->taguri_expansion );
yyval.nodeData = yyvsp[0].nodeData;
}
@@ -1410,7 +1410,7 @@ yyreduce:
case 44:
#line 255 "gram.y"
- {
+ {
syck_add_transfer( yyvsp[-2].name, yyvsp[0].nodeData, 0 );
yyval.nodeData = yyvsp[0].nodeData;
}
@@ -1418,7 +1418,7 @@ yyreduce:
case 45:
#line 260 "gram.y"
- {
+ {
syck_add_transfer( yyvsp[-1].name, yyvsp[0].nodeData, 0 );
yyval.nodeData = yyvsp[0].nodeData;
}
@@ -1426,14 +1426,14 @@ yyreduce:
case 46:
#line 265 "gram.y"
- {
+ {
yyval.nodeData = syck_hdlr_add_anchor( (SyckParser *)parser, yyvsp[-2].name, yyvsp[0].nodeData );
}
break;
case 47:
#line 269 "gram.y"
- {
+ {
yyval.nodeData = syck_hdlr_add_anchor( (SyckParser *)parser, yyvsp[-1].name, yyvsp[0].nodeData );
}
break;
@@ -1447,7 +1447,7 @@ yyreduce:
case 49:
#line 279 "gram.y"
- {
+ {
syck_seq_add( yyvsp[-2].nodeData, yyvsp[0].nodeId );
yyval.nodeData = yyvsp[-2].nodeData;
}
@@ -1455,21 +1455,21 @@ yyreduce:
case 50:
#line 284 "gram.y"
- {
+ {
yyval.nodeData = yyvsp[-1].nodeData;
}
break;
case 51:
#line 293 "gram.y"
- {
+ {
yyval.nodeData = yyvsp[-1].nodeData;
}
break;
case 52:
#line 297 "gram.y"
- {
+ {
yyval.nodeData = syck_alloc_seq();
}
break;
@@ -1483,7 +1483,7 @@ yyreduce:
case 54:
#line 307 "gram.y"
- {
+ {
syck_seq_add( yyvsp[-2].nodeData, syck_hdlr_add_node( (SyckParser *)parser, yyvsp[0].nodeData ) );
yyval.nodeData = yyvsp[-2].nodeData;
}
@@ -1491,7 +1491,7 @@ yyreduce:
case 57:
#line 321 "gram.y"
- {
+ {
apply_seq_in_map( (SyckParser *)parser, yyvsp[-1].nodeData );
yyval.nodeData = yyvsp[-1].nodeData;
}
@@ -1499,7 +1499,7 @@ yyreduce:
case 58:
#line 326 "gram.y"
- {
+ {
apply_seq_in_map( (SyckParser *)parser, yyvsp[-1].nodeData );
yyval.nodeData = yyvsp[-1].nodeData;
}
@@ -1507,7 +1507,7 @@ yyreduce:
case 59:
#line 333 "gram.y"
- {
+ {
syck_add_transfer( yyvsp[-2].name, yyvsp[0].nodeData, ((SyckParser *)parser)->taguri_expansion );
yyval.nodeData = yyvsp[0].nodeData;
}
@@ -1515,7 +1515,7 @@ yyreduce:
case 60:
#line 338 "gram.y"
- {
+ {
syck_add_transfer( yyvsp[-1].name, yyvsp[0].nodeData, ((SyckParser *)parser)->taguri_expansion );
yyval.nodeData = yyvsp[0].nodeData;
}
@@ -1523,7 +1523,7 @@ yyreduce:
case 61:
#line 343 "gram.y"
- {
+ {
syck_add_transfer( yyvsp[-2].name, yyvsp[0].nodeData, 0 );
yyval.nodeData = yyvsp[0].nodeData;
}
@@ -1531,7 +1531,7 @@ yyreduce:
case 62:
#line 348 "gram.y"
- {
+ {
syck_add_transfer( yyvsp[-1].name, yyvsp[0].nodeData, 0 );
yyval.nodeData = yyvsp[0].nodeData;
}
@@ -1539,14 +1539,14 @@ yyreduce:
case 63:
#line 353 "gram.y"
- {
+ {
yyval.nodeData = syck_hdlr_add_anchor( (SyckParser *)parser, yyvsp[-2].name, yyvsp[0].nodeData );
}
break;
case 64:
#line 357 "gram.y"
- {
+ {
yyval.nodeData = syck_hdlr_add_anchor( (SyckParser *)parser, yyvsp[-1].name, yyvsp[0].nodeData );
}
break;
@@ -1561,8 +1561,8 @@ yyreduce:
case 68:
#line 380 "gram.y"
{
- yyval.nodeData = syck_new_map(
- syck_hdlr_add_node( (SyckParser *)parser, yyvsp[-2].nodeData ),
+ yyval.nodeData = syck_new_map(
+ syck_hdlr_add_node( (SyckParser *)parser, yyvsp[-2].nodeData ),
syck_hdlr_add_node( (SyckParser *)parser, yyvsp[0].nodeData ) );
}
break;
@@ -1603,8 +1603,8 @@ yyreduce:
case 73:
#line 427 "gram.y"
{
- yyval.nodeData = syck_new_map(
- syck_hdlr_add_node( (SyckParser *)parser, yyvsp[-2].nodeData ),
+ yyval.nodeData = syck_new_map(
+ syck_hdlr_add_node( (SyckParser *)parser, yyvsp[-2].nodeData ),
syck_hdlr_add_node( (SyckParser *)parser, yyvsp[0].nodeData ) );
}
break;
@@ -1637,8 +1637,8 @@ yyreduce:
#line 455 "gram.y"
{
NULL_NODE( parser, n );
- yyval.nodeData = syck_new_map(
- syck_hdlr_add_node( (SyckParser *)parser, yyvsp[0].nodeData ),
+ yyval.nodeData = syck_new_map(
+ syck_hdlr_add_node( (SyckParser *)parser, yyvsp[0].nodeData ),
syck_hdlr_add_node( (SyckParser *)parser, n ) );
}
break;
diff --git a/ext/syck/handler.c b/ext/syck/handler.c
index d76a72e5cc..40f5ef27d0 100644
--- a/ext/syck/handler.c
+++ b/ext/syck/handler.c
@@ -9,12 +9,12 @@
#include "ruby/ruby.h"
#include "syck.h"
-SYMID
+SYMID
syck_hdlr_add_node( SyckParser *p, SyckNode *n )
{
SYMID id;
- if ( ! n->id )
+ if ( ! n->id )
{
n->id = (p->handler)( p, n );
}
@@ -89,7 +89,7 @@ syck_hdlr_get_anchor( SyckParser *p, char *a )
if ( st_lookup( p->anchors, (st_data_t)a, (void *)&n ) )
{
if ( n != (void *)1 )
- {
+ {
S_FREE( a );
return n;
}
@@ -116,7 +116,7 @@ syck_hdlr_get_anchor( SyckParser *p, char *a )
if ( n->anchor )
{
S_FREE( a );
- }
+ }
else
{
n->anchor = a;
@@ -165,7 +165,7 @@ syck_taguri( const char *domain, const char *type_id, int type_len )
return uri;
}
-int
+int
syck_try_implicit( SyckNode *n )
{
return 1;
diff --git a/ext/syck/implicit.c b/ext/syck/implicit.c
index 126b896f18..6911e6175d 100644
--- a/ext/syck/implicit.c
+++ b/ext/syck/implicit.c
@@ -15,7 +15,7 @@
#define YYCURSOR cursor
#define YYMARKER marker
#define YYLIMIT limit
-#define YYFILL(n)
+#define YYFILL(n) (void)0
void
try_tag_implicit( SyckNode *n, int taguri )
@@ -38,9 +38,9 @@ try_tag_implicit( SyckNode *n, int taguri )
if ( n->type_id != NULL ) S_FREE( n->type_id );
if ( taguri == 1 )
{
- n->type_id = syck_taguri( YAML_DOMAIN, tid, strlen( tid ) );
+ n->type_id = syck_taguri( YAML_DOMAIN, tid, (int)strlen( tid ) );
} else {
- n->type_id = syck_strndup( tid, strlen( tid ) );
+ n->type_id = syck_strndup( tid, (int)strlen( tid ) );
}
}
@@ -1764,7 +1764,7 @@ yy205: yyaccept = 0;
}
yy206:
#line 202 "implicit.re"
-{ return syck_taguri( YAML_DOMAIN, type_id, strlen( type_id ) ); }
+{ return syck_taguri( YAML_DOMAIN, type_id, (int)strlen( type_id ) ); }
#line 1768 "<stdout>"
yy207: yyaccept = 0;
yych = *(YYMARKER = ++YYCURSOR);
@@ -1838,7 +1838,7 @@ yy208: ++YYCURSOR;
goto yy209;
yy209:
#line 176 "implicit.re"
-{ return syck_xprivate( type_id + 1, strlen( type_id ) - 1 ); }
+{ return syck_xprivate( type_id + 1, (int)strlen( type_id ) - 1 ); }
#line 1842 "<stdout>"
yy210: yyaccept = 0;
yych = *(YYMARKER = ++YYCURSOR);
@@ -2141,7 +2141,7 @@ yy219:
strncat( domain, type_id, ( YYCURSOR - type_id ) - 1 );
strcat( domain, "." );
strcat( domain, YAML_DOMAIN );
- uri = syck_taguri( domain, YYCURSOR, YYLIMIT - YYCURSOR );
+ uri = syck_taguri( domain, YYCURSOR, (int)(YYLIMIT - YYCURSOR) );
S_FREE( domain );
return uri;
@@ -2357,7 +2357,7 @@ yy230:
domain[0] = '\0';
strncat( domain, type_id, ( YYCURSOR - type_id ) - 1 );
- uri = syck_taguri( domain, YYCURSOR, YYLIMIT - YYCURSOR );
+ uri = syck_taguri( domain, YYCURSOR, (int)(YYLIMIT - YYCURSOR) );
S_FREE( domain );
return uri;
diff --git a/ext/syck/lib/syck.rb b/ext/syck/lib/syck.rb
new file mode 100644
index 0000000000..f8e3c0f8bc
--- /dev/null
+++ b/ext/syck/lib/syck.rb
@@ -0,0 +1,447 @@
+# -*- mode: ruby; ruby-indent-level: 4; tab-width: 4 -*- vim: sw=4 ts=4
+# $Id$
+#
+# = yaml.rb: top-level module with methods for loading and parsing YAML documents
+#
+# Author:: why the lucky stiff
+#
+
+require 'yaml/syck'
+
+# == YAML
+#
+# YAML(tm) (rhymes with 'camel') is a
+# straightforward machine parsable data serialization format designed for
+# human readability and interaction with scripting languages such as Perl
+# and Python. YAML is optimized for data serialization, formatted
+# dumping, configuration files, log files, Internet messaging and
+# filtering. This specification describes the YAML information model and
+# serialization format. Together with the Unicode standard for characters, it
+# provides all the information necessary to understand YAML Version 1.0
+# and construct computer programs to process it.
+#
+# See http://yaml.org/ for more information. For a quick tutorial, please
+# visit YAML In Five Minutes (http://yaml.kwiki.org/?YamlInFiveMinutes).
+#
+# == About This Library
+#
+# The YAML 1.0 specification outlines four stages of YAML loading and dumping.
+# This library honors all four of those stages, although data is really only
+# available to you in three stages.
+#
+# The four stages are: native, representation, serialization, and presentation.
+#
+# The native stage refers to data which has been loaded completely into Ruby's
+# own types. (See +YAML::load+.)
+#
+# The representation stage means data which has been composed into
+# +YAML::BaseNode+ objects. In this stage, the document is available as a
+# tree of node objects. You can perform YPath queries and transformations
+# at this level. (See +YAML::parse+.)
+#
+# The serialization stage happens inside the parser. The YAML parser used in
+# Ruby is called Syck. Serialized nodes are available in the extension as
+# SyckNode structs.
+#
+# The presentation stage is the YAML document itself. This is accessible
+# to you as a string. (See +YAML::dump+.)
+#
+# For more information about the various information models, see Chapter
+# 3 of the YAML 1.0 Specification (http://yaml.org/spec/#id2491269).
+#
+# The YAML module provides quick access to the most common loading (YAML::load)
+# and dumping (YAML::dump) tasks. This module also provides an API for registering
+# global types (YAML::add_domain_type).
+#
+# == Example
+#
+# A simple round-trip (load and dump) of an object.
+#
+# require "yaml"
+#
+# test_obj = ["dogs", "cats", "badgers"]
+#
+# yaml_obj = YAML::dump( test_obj )
+# # -> ---
+# - dogs
+# - cats
+# - badgers
+# ruby_obj = YAML::load( yaml_obj )
+# # => ["dogs", "cats", "badgers"]
+# ruby_obj == test_obj
+# # => true
+#
+# To register your custom types with the global resolver, use +add_domain_type+.
+#
+# YAML::add_domain_type( "your-site.com,2004", "widget" ) do |type, val|
+# Widget.new( val )
+# end
+#
+module Syck
+
+ DefaultResolver.use_types_at( @@tagged_classes )
+
+ # Returns a new default parser
+ def self.parser; Parser.new.set_resolver( self.resolver ); end
+
+ # Returns a new generic parser
+ def self.generic_parser
+ warn "#{caller[0]}: YAML.generic_parser is deprecated, switch to psych" if $VERBOSE && !caller[0].start_with?(File.dirname(__FILE__))
+ Parser.new.set_resolver( GenericResolver )
+ end
+
+ # Returns the default resolver
+ def self.resolver
+ warn "#{caller[0]}: YAML.resolver is deprecated" if $VERBOSE && !caller[0].start_with?(File.dirname(__FILE__))
+ DefaultResolver
+ end
+
+ # Returns a new default emitter
+ def self.emitter
+ warn "#{caller[0]}: YAML.emitter is deprecated" if $VERBOSE && !caller[0].start_with?(File.dirname(__FILE__))
+ Emitter.new.set_resolver( self.resolver )
+ end
+
+ #
+ # Converts _obj_ to YAML and writes the YAML result to _io_.
+ #
+ # File.open( 'animals.yaml', 'w' ) do |out|
+ # YAML.dump( ['badger', 'elephant', 'tiger'], out )
+ # end
+ #
+ # If no _io_ is provided, a string containing the dumped YAML
+ # is returned.
+ #
+ # YAML.dump( :locked )
+ # #=> "--- :locked"
+ #
+ def self.dump( obj, io = nil )
+ obj.to_yaml( io || io2 = StringIO.new )
+ io || ( io2.rewind; io2.read )
+ end
+
+ #
+ # Load a document from the current _io_ stream.
+ #
+ # File.open( 'animals.yaml' ) { |yf| YAML::load( yf ) }
+ # #=> ['badger', 'elephant', 'tiger']
+ #
+ # Can also load from a string.
+ #
+ # YAML.load( "--- :locked" )
+ # #=> :locked
+ #
+ def self.load( io )
+ parser.load( io )
+ end
+
+ #
+ # Load a document from the file located at _filepath_.
+ #
+ # YAML.load_file( 'animals.yaml' )
+ # #=> ['badger', 'elephant', 'tiger']
+ #
+ def self.load_file( filepath )
+ File.open( filepath ) do |f|
+ load( f )
+ end
+ end
+
+ #
+ # Parse the first document from the current _io_ stream
+ #
+ # File.open( 'animals.yaml' ) { |yf| YAML::load( yf ) }
+ # #=> #<YAML::Syck::Node:0x82ccce0
+ # @kind=:seq,
+ # @value=
+ # [#<YAML::Syck::Node:0x82ccd94
+ # @kind=:scalar,
+ # @type_id="str",
+ # @value="badger">,
+ # #<YAML::Syck::Node:0x82ccd58
+ # @kind=:scalar,
+ # @type_id="str",
+ # @value="elephant">,
+ # #<YAML::Syck::Node:0x82ccd1c
+ # @kind=:scalar,
+ # @type_id="str",
+ # @value="tiger">]>
+ #
+ # Can also load from a string.
+ #
+ # YAML.parse( "--- :locked" )
+ # #=> #<YAML::Syck::Node:0x82edddc
+ # @type_id="tag:ruby.yaml.org,2002:sym",
+ # @value=":locked", @kind=:scalar>
+ #
+ def self.parse( io )
+ generic_parser.load( io )
+ end
+
+ #
+ # Parse a document from the file located at _filepath_.
+ #
+ # YAML.parse_file( 'animals.yaml' )
+ # #=> #<YAML::Syck::Node:0x82ccce0
+ # @kind=:seq,
+ # @value=
+ # [#<YAML::Syck::Node:0x82ccd94
+ # @kind=:scalar,
+ # @type_id="str",
+ # @value="badger">,
+ # #<YAML::Syck::Node:0x82ccd58
+ # @kind=:scalar,
+ # @type_id="str",
+ # @value="elephant">,
+ # #<YAML::Syck::Node:0x82ccd1c
+ # @kind=:scalar,
+ # @type_id="str",
+ # @value="tiger">]>
+ #
+ def self.parse_file( filepath )
+ File.open( filepath ) do |f|
+ parse( f )
+ end
+ end
+
+ #
+ # Calls _block_ with each consecutive document in the YAML
+ # stream contained in _io_.
+ #
+ # File.open( 'many-docs.yaml' ) do |yf|
+ # YAML.each_document( yf ) do |ydoc|
+ # ## ydoc contains the single object
+ # ## from the YAML document
+ # end
+ # end
+ #
+ def self.each_document( io, &block )
+ warn "#{caller[0]}: YAML.each_document is deprecated" if $VERBOSE && !caller[0].start_with?(File.dirname(__FILE__))
+ parser.load_documents( io, &block )
+ end
+
+ #
+ # Calls _block_ with each consecutive document in the YAML
+ # stream contained in _io_.
+ #
+ # File.open( 'many-docs.yaml' ) do |yf|
+ # YAML.load_documents( yf ) do |ydoc|
+ # ## ydoc contains the single object
+ # ## from the YAML document
+ # end
+ # end
+ #
+ def self.load_documents( io, &doc_proc )
+ parser.load_documents( io, &doc_proc )
+ end
+
+ #
+ # Calls _block_ with a tree of +YAML::BaseNodes+, one tree for
+ # each consecutive document in the YAML stream contained in _io_.
+ #
+ # File.open( 'many-docs.yaml' ) do |yf|
+ # YAML.each_node( yf ) do |ydoc|
+ # ## ydoc contains a tree of nodes
+ # ## from the YAML document
+ # end
+ # end
+ #
+ def self.each_node( io, &doc_proc )
+ warn "#{caller[0]}: YAML.each_node is deprecated" if $VERBOSE && !caller[0].start_with?(File.dirname(__FILE__))
+ generic_parser.load_documents( io, &doc_proc )
+ end
+
+ #
+ # Calls _block_ with a tree of +YAML::BaseNodes+, one tree for
+ # each consecutive document in the YAML stream contained in _io_.
+ #
+ # File.open( 'many-docs.yaml' ) do |yf|
+ # YAML.parse_documents( yf ) do |ydoc|
+ # ## ydoc contains a tree of nodes
+ # ## from the YAML document
+ # end
+ # end
+ #
+ def self.parse_documents( io, &doc_proc )
+ warn "#{caller[0]}: YAML.parse_documents is deprecated, use load_stream" if $VERBOSE && !caller[0].start_with?(File.dirname(__FILE__))
+ self.each_node( io, &doc_proc )
+ end
+
+ #
+ # Loads all documents from the current _io_ stream,
+ # returning a +YAML::Stream+ object containing all
+ # loaded documents.
+ #
+ def self.load_stream( io )
+ d = nil
+ parser.load_documents( io ) do |doc|
+ d = Stream.new if not d
+ d.add( doc )
+ end
+ return d
+ end
+
+ #
+ # Returns a YAML stream containing each of the items in +objs+,
+ # each having their own document.
+ #
+ # YAML.dump_stream( 0, [], {} )
+ # #=> --- 0
+ # --- []
+ # --- {}
+ #
+ def self.dump_stream( *objs )
+ d = Stream.new
+ objs.each do |doc|
+ d.add( doc )
+ end
+ d.emit
+ end
+
+ #
+ # Add a global handler for a YAML domain type.
+ #
+ def self.add_domain_type( domain, type_tag, &transfer_proc )
+ resolver.add_type( "tag:#{ domain }:#{ type_tag }", transfer_proc )
+ end
+
+ #
+ # Add a transfer method for a builtin type
+ #
+ def self.add_builtin_type( type_tag, &transfer_proc )
+ resolver.add_type( "tag:yaml.org,2002:#{ type_tag }", transfer_proc )
+ end
+
+ #
+ # Add a transfer method for a builtin type
+ #
+ def self.add_ruby_type( type_tag, &transfer_proc )
+ warn "#{caller[0]}: YAML.add_ruby_type is deprecated, use add_domain_type" if $VERBOSE && !caller[0].start_with?(File.dirname(__FILE__))
+ resolver.add_type( "tag:ruby.yaml.org,2002:#{ type_tag }", transfer_proc )
+ end
+
+ #
+ # Add a private document type
+ #
+ def self.add_private_type( type_re, &transfer_proc )
+ warn "#{caller[0]}: YAML.add_private_type is deprecated, use add_domain_type" if $VERBOSE && !caller[0].start_with?(File.dirname(__FILE__))
+ resolver.add_type( "x-private:" + type_re, transfer_proc )
+ end
+
+ #
+ # Detect typing of a string
+ #
+ def self.detect_implicit( val )
+ warn "#{caller[0]}: YAML.detect_implicit is deprecated" if $VERBOSE && !caller[0].start_with?(File.dirname(__FILE__))
+ resolver.detect_implicit( val )
+ end
+
+ #
+ # Convert a type_id to a taguri
+ #
+ def self.tagurize( val )
+ warn "#{caller[0]}: YAML.tagurize is deprecated" if $VERBOSE && !caller[0].start_with?(File.dirname(__FILE__))
+ resolver.tagurize( val )
+ end
+
+ #
+ # Apply a transfer method to a Ruby object
+ #
+ def self.transfer( type_id, obj )
+ warn "#{caller[0]}: YAML.transfer is deprecated" if $VERBOSE && !caller[0].start_with?(File.dirname(__FILE__))
+ resolver.transfer( tagurize( type_id ), obj )
+ end
+
+ #
+ # Apply any implicit a node may qualify for
+ #
+ def self.try_implicit( obj )
+ warn "#{caller[0]}: YAML.try_implicit is deprecated" if $VERBOSE && !caller[0].start_with?(File.dirname(__FILE__))
+ transfer( detect_implicit( obj ), obj )
+ end
+
+ #
+ # Method to extract colon-seperated type and class, returning
+ # the type and the constant of the class
+ #
+ def self.read_type_class( type, obj_class )
+ warn "#{caller[0]}: YAML.read_type_class is deprecated" if $VERBOSE && !caller[0].start_with?(File.dirname(__FILE__))
+ type, tclass = type.split( ':', 4 ).last(2)
+ tclass.split( "::" ).each { |c| obj_class = obj_class.const_get( c ) } if tclass
+ return [ type, obj_class ]
+ end
+
+ #
+ # Allocate blank object
+ #
+ def self.object_maker( obj_class, val )
+ warn "#{caller[0]}: YAML.object_maker is deprecated" if $VERBOSE && !caller[0].start_with?(File.dirname(__FILE__))
+ if Hash === val
+ o = obj_class.allocate
+ val.each_pair { |k,v|
+ o.instance_variable_set("@#{k}", v)
+ }
+ o
+ else
+ raise Error, "Invalid object explicitly tagged !ruby/Object: " + val.inspect
+ end
+ end
+
+ #
+ # Allocate an Emitter if needed
+ #
+ def self.quick_emit( oid, opts = {}, &e )
+ warn "#{caller[0]}: YAML.quick_emit is deprecated" if $VERBOSE && !caller[0].start_with?(File.dirname(__FILE__))
+ out =
+ if opts.is_a? Emitter
+ opts
+ else
+ emitter.reset( opts )
+ end
+ out.emit( oid, &e )
+ end
+
+end
+
+module Kernel
+ #
+ # ryan:: You know how Kernel.p is a really convenient way to dump ruby
+ # structures? The only downside is that it's not as legible as
+ # YAML.
+ #
+ # _why:: (listening)
+ #
+ # ryan:: I know you don't want to urinate all over your users' namespaces.
+ # But, on the other hand, convenience of dumping for debugging is,
+ # IMO, a big YAML use case.
+ #
+ # _why:: Go nuts! Have a pony parade!
+ #
+ # ryan:: Either way, I certainly will have a pony parade.
+ #
+
+ # Prints any supplied _objects_ out in YAML. Intended as
+ # a variation on +Kernel::p+.
+ #
+ # S = Struct.new(:name, :state)
+ # s = S['dave', 'TX']
+ # y s
+ #
+ # _produces:_
+ #
+ # --- !ruby/struct:S
+ # name: dave
+ # state: TX
+ #
+ def y( object, *objects )
+ objects.unshift object
+ puts( if objects.length == 1
+ YAML.dump( *objects )
+ else
+ YAML.dump_stream( *objects )
+ end )
+ end
+ private :y
+end
+
+
diff --git a/lib/yaml/baseemitter.rb b/ext/syck/lib/syck/baseemitter.rb
index 59d9eddc76..5e39e450de 100644
--- a/lib/yaml/baseemitter.rb
+++ b/ext/syck/lib/syck/baseemitter.rb
@@ -2,15 +2,15 @@
# BaseEmitter
#
-require 'yaml/constants'
-require 'yaml/encoding'
-require 'yaml/error'
+require 'syck/constants'
+require 'syck/encoding'
+require 'syck/error'
-module YAML
+module Syck
module BaseEmitter
def options( opt = nil )
if opt
- @options[opt] || YAML::DEFAULTS[opt]
+ @options[opt] || DEFAULTS[opt]
else
@options
end
@@ -38,7 +38,7 @@ module YAML
block =
if options(:UseBlock)
'|'
- elsif not options(:UseFold) and valx =~ /\n[ \t]/ and not valx =~ /#{YAML::ESCAPE_CHAR}/
+ elsif not options(:UseFold) and valx =~ /\n[ \t]/ and not valx =~ /#{ESCAPE_CHAR}/
'|'
else
'>'
@@ -61,7 +61,7 @@ module YAML
block += "\n"
if block[0] == ?"
esc_skip = ( "\t\n" unless valx =~ /^[ \t]/ ) || ""
- valx = fold( YAML::escape( valx, esc_skip ) + "\"" ).chomp
+ valx = fold( Syck.escape( valx, esc_skip ) + "\"" ).chomp
self << '"' + indent_text( valx, indt, false )
else
if block[0] == ?>
@@ -84,7 +84,7 @@ module YAML
# Emit double-quoted string
#
def double( value )
- "\"#{YAML.escape( value )}\""
+ "\"#{Syck.escape( value )}\""
end
#
diff --git a/lib/yaml/basenode.rb b/ext/syck/lib/syck/basenode.rb
index 5439903f42..5dc27bfdfe 100644
--- a/lib/yaml/basenode.rb
+++ b/ext/syck/lib/syck/basenode.rb
@@ -1,9 +1,8 @@
#
# YAML::BaseNode class
#
-require 'yaml/ypath'
-module YAML
+module Syck
#
# YAML Generic Model container
@@ -15,6 +14,7 @@ module YAML
# qualified nodes.
#
def select( ypath_str )
+ warn "#{caller[0]}: select is deprecated" if $VERBOSE
matches = match_path( ypath_str )
#
@@ -25,7 +25,7 @@ module YAML
matches.each { |m|
result.push m.last
}
- YAML.transfer( 'seq', result )
+ Syck.transfer( 'seq', result )
end
end
@@ -34,6 +34,7 @@ module YAML
# transformed nodes.
#
def select!( ypath_str )
+ warn "#{caller[0]}: select!() is deprecated" if $VERBOSE
matches = match_path( ypath_str )
#
@@ -53,6 +54,7 @@ module YAML
# qualified paths.
#
def search( ypath_str )
+ warn "#{caller[0]}: search() is deprecated" if $VERBOSE
matches = match_path( ypath_str )
if matches
@@ -67,6 +69,7 @@ module YAML
end
def at( seg )
+ warn "#{caller[0]}: at() is deprecated" if $VERBOSE
if Hash === @value
self[seg]
elsif Array === @value and seg =~ /\A\d+\Z/ and @value[seg.to_i]
@@ -78,7 +81,8 @@ module YAML
# YPath search returning a complete depth array
#
def match_path( ypath_str )
- depth = 0
+ warn "#{caller[0]}: match_path is deprecated" if $VERBOSE
+ require 'syck/ypath'
matches = []
YPath.each_path( ypath_str ) do |ypath|
seg = match_segment( ypath, 0 )
@@ -91,6 +95,7 @@ module YAML
# Search a node for a single YPath segment
#
def match_segment( ypath, depth )
+ warn "#{caller[0]}: match_segment is deprecated" if $VERBOSE
deep_nodes = []
seg = ypath.segments[ depth ]
if seg == "/"
@@ -200,6 +205,7 @@ module YAML
end
def children_with_index
+ warn "#{caller[0]}: children_with_index is deprecated, use children" if $VERBOSE
if Hash === @value
@value.keys.collect { |i| [self[i], i] }
elsif Array === @value
diff --git a/lib/yaml/constants.rb b/ext/syck/lib/syck/constants.rb
index 728d3b7932..19fe42ef85 100644
--- a/lib/yaml/constants.rb
+++ b/ext/syck/lib/syck/constants.rb
@@ -1,7 +1,7 @@
#
# Constants used throughout the library
#
-module YAML
+module Syck
#
# Constants
diff --git a/lib/yaml/encoding.rb b/ext/syck/lib/syck/encoding.rb
index 98e83c3853..dad062994c 100644
--- a/lib/yaml/encoding.rb
+++ b/ext/syck/lib/syck/encoding.rb
@@ -2,12 +2,13 @@
# Handle Unicode-to-Internal conversion
#
-module YAML
+module Syck
#
# Escape the string, condensing common escapes
#
- def YAML.escape( value, skip = "" )
+ def self.escape( value, skip = "" )
+ warn "#{caller[0]}: YAML.escape is deprecated" if $VERBOSE
value.gsub( /\\/, "\\\\\\" ).
gsub( /"/, "\\\"" ).
gsub( /([\x00-\x1f])/ ) do
@@ -18,7 +19,8 @@ module YAML
#
# Unescape the condenses escapes
#
- def YAML.unescape( value )
+ def self.unescape( value )
+ warn "#{caller[0]}: YAML.unescape is deprecated" if $VERBOSE
value.gsub( /\\(?:([nevfbart\\])|0?x([0-9a-fA-F]{2})|u([0-9a-fA-F]{4}))/ ) {
if $3
["#$3".hex ].pack('U*')
diff --git a/lib/yaml/error.rb b/ext/syck/lib/syck/error.rb
index 75de0ec18a..0bac872411 100644
--- a/lib/yaml/error.rb
+++ b/ext/syck/lib/syck/error.rb
@@ -2,7 +2,7 @@
# Error messages and exception class
#
-module YAML
+module Syck
#
# Error messages
diff --git a/lib/yaml/loader.rb b/ext/syck/lib/syck/loader.rb
index eb0709e103..925c9ee4b2 100644
--- a/lib/yaml/loader.rb
+++ b/ext/syck/lib/syck/loader.rb
@@ -2,7 +2,7 @@
# YAML::Loader class
# .. type handling ..
#
-module YAML
+module Syck
class Loader
TRANSFER_DOMAINS = {
'yaml.org,2002' => {},
diff --git a/lib/yaml/rubytypes.rb b/ext/syck/lib/syck/rubytypes.rb
index e8c0c89f2c..b6869c4b8b 100644
--- a/lib/yaml/rubytypes.rb
+++ b/ext/syck/lib/syck/rubytypes.rb
@@ -10,6 +10,7 @@ end
class Object
yaml_as "tag:ruby.yaml.org,2002:object"
def to_yaml_style; end
+ undef to_yaml_properties rescue nil
def to_yaml_properties; instance_variables.sort; end
def to_yaml( opts = {} )
YAML::quick_emit( self, opts ) do |out|
@@ -20,6 +21,7 @@ class Object
end
end
end
+ alias :syck_to_yaml :to_yaml
end
class Hash
@@ -35,6 +37,7 @@ class Hash
end
end
def to_yaml( opts = {} )
+ return super unless YAML::ENGINE.syck?
YAML::quick_emit( self, opts ) do |out|
out.map( taguri, to_yaml_style ) do |map|
each do |k, v|
@@ -59,7 +62,7 @@ class Struct
props = {}
val.delete_if { |k,v| props[k] = v if k =~ /^@/ }
begin
- struct_name, struct_type = YAML.read_type_class( tag, Struct )
+ struct_type = YAML.read_type_class( tag, Struct ).last
rescue NameError
end
if not struct_type
@@ -72,7 +75,7 @@ class Struct
#
st = YAML::object_maker( struct_type, {} )
st.members.each do |m|
- st.send( "#{m}=", val[m] )
+ st.send( "#{m}=", val[m.to_s] )
end
props.each do |k,v|
st.instance_variable_set(k, v)
@@ -83,13 +86,14 @@ class Struct
end
end
def to_yaml( opts = {} )
+ return super unless YAML::ENGINE.syck?
YAML::quick_emit( self, opts ) do |out|
#
# Basic struct is passed as a YAML map
#
out.map( taguri, to_yaml_style ) do |map|
self.members.each do |m|
- map.add( m, self[m] )
+ map.add( m.to_s, self[m.to_s] )
end
self.to_yaml_properties.each do |m|
map.add( m, instance_variable_get( m ) )
@@ -104,6 +108,7 @@ class Array
yaml_as "tag:yaml.org,2002:seq"
def yaml_initialize( tag, val ); concat( val.to_a ); end
def to_yaml( opts = {} )
+ return super unless YAML::ENGINE.syck?
YAML::quick_emit( self, opts ) do |out|
out.seq( taguri, to_yaml_style ) do |seq|
each do |x|
@@ -117,13 +122,15 @@ end
class Exception
yaml_as "tag:ruby.yaml.org,2002:exception"
def Exception.yaml_new( klass, tag, val )
- o = YAML.object_maker( klass, { 'mesg' => val.delete( 'message' ) } )
+ o = klass.allocate
+ Exception.instance_method(:initialize).bind(o).call(val.delete('message'))
val.each_pair do |k,v|
o.instance_variable_set("@#{k}", v)
end
o
end
def to_yaml( opts = {} )
+ return super unless YAML::ENGINE.syck?
YAML::quick_emit( self, opts ) do |out|
out.map( taguri, to_yaml_style ) do |map|
map.add( 'message', message )
@@ -143,7 +150,7 @@ class String
to_yaml_style or not to_yaml_properties.empty? or self =~ /\n.+/
end
def is_binary_data?
- self.count("^ -~\t\r\n").fdiv(self.size) > 0.3 || self.index("\x00") unless self.empty?
+ self.count("\x00-\x7F", "^ -~\t\r\n").fdiv(self.size) > 0.3 || self.index("\x00") unless self.empty?
end
def String.yaml_new( klass, tag, val )
val = val.unpack("m")[0] if tag == "tag:yaml.org,2002:binary"
@@ -161,6 +168,7 @@ class String
end
end
def to_yaml( opts = {} )
+ return super unless YAML::ENGINE.syck?
YAML::quick_emit( is_complex_yaml? ? self : nil, opts ) do |out|
if is_binary_data?
out.scalar( "tag:yaml.org,2002:binary", [self].pack("m"), :literal )
@@ -190,6 +198,7 @@ class Symbol
end
end
def to_yaml( opts = {} )
+ return super unless YAML::ENGINE.syck?
YAML::quick_emit( nil, opts ) do |out|
out.scalar( "tag:yaml.org,2002:str", self.inspect, :plain )
end
@@ -227,6 +236,7 @@ class Range
end
end
def to_yaml( opts = {} )
+ return super unless YAML::ENGINE.syck?
YAML::quick_emit( self, opts ) do |out|
# if self.begin.is_complex_yaml? or self.begin.respond_to? :to_str or
# self.end.is_complex_yaml? or self.end.respond_to? :to_str or
@@ -253,7 +263,7 @@ end
class Regexp
yaml_as "tag:ruby.yaml.org,2002:regexp"
def Regexp.yaml_new( klass, tag, val )
- if String === val and val =~ /^\/(.*)\/([mix]*)$/
+ if String === val and val =~ /^\/(.*)\/([mixn]*)$/
val = { 'regexp' => $1, 'mods' => $2 }
end
if Hash === val
@@ -263,6 +273,7 @@ class Regexp
mods |= Regexp::EXTENDED if val['mods'].include?( 'x' )
mods |= Regexp::IGNORECASE if val['mods'].include?( 'i' )
mods |= Regexp::MULTILINE if val['mods'].include?( 'm' )
+ mods |= Regexp::NOENCODING if val['mods'].include?( 'n' )
end
val.delete( 'mods' )
r = YAML::object_maker( klass, {} )
@@ -276,6 +287,7 @@ class Regexp
end
end
def to_yaml( opts = {} )
+ return super unless YAML::ENGINE.syck?
YAML::quick_emit( nil, opts ) do |out|
if to_yaml_properties.empty?
out.scalar( taguri, self.inspect, :plain )
@@ -310,6 +322,7 @@ class Time
end
end
def to_yaml( opts = {} )
+ return super unless YAML::ENGINE.syck?
YAML::quick_emit( self, opts ) do |out|
tz = "Z"
# from the tidy Tobias Peters <t-peters@gmx.de> Thanks!
@@ -347,6 +360,7 @@ end
class Date
yaml_as "tag:yaml.org,2002:timestamp#ymd"
def to_yaml( opts = {} )
+ return super unless YAML::ENGINE.syck?
YAML::quick_emit( self, opts ) do |out|
out.scalar( "tag:yaml.org,2002:timestamp", self.to_s, :plain )
end
@@ -356,6 +370,7 @@ end
class Integer
yaml_as "tag:yaml.org,2002:int"
def to_yaml( opts = {} )
+ return super unless YAML::ENGINE.syck?
YAML::quick_emit( nil, opts ) do |out|
out.scalar( "tag:yaml.org,2002:int", self.to_s, :plain )
end
@@ -365,6 +380,7 @@ end
class Float
yaml_as "tag:yaml.org,2002:float"
def to_yaml( opts = {} )
+ return super unless YAML::ENGINE.syck?
YAML::quick_emit( nil, opts ) do |out|
str = self.to_s
if str == "Infinity"
@@ -389,6 +405,7 @@ class Rational
end
end
def to_yaml( opts = {} )
+ return super unless YAML::ENGINE.syck?
YAML::quick_emit( self, opts ) do |out|
out.map( taguri, nil ) do |map|
map.add( 'denominator', denominator )
@@ -408,6 +425,7 @@ class Complex
end
end
def to_yaml( opts = {} )
+ return super unless YAML::ENGINE.syck?
YAML::quick_emit( self, opts ) do |out|
out.map( taguri, nil ) do |map|
map.add( 'image', imaginary )
@@ -420,6 +438,7 @@ end
class TrueClass
yaml_as "tag:yaml.org,2002:bool#yes"
def to_yaml( opts = {} )
+ return super unless YAML::ENGINE.syck?
YAML::quick_emit( nil, opts ) do |out|
out.scalar( taguri, "true", :plain )
end
@@ -429,6 +448,7 @@ end
class FalseClass
yaml_as "tag:yaml.org,2002:bool#no"
def to_yaml( opts = {} )
+ return super unless YAML::ENGINE.syck?
YAML::quick_emit( nil, opts ) do |out|
out.scalar( taguri, "false", :plain )
end
@@ -438,6 +458,7 @@ end
class NilClass
yaml_as "tag:yaml.org,2002:null"
def to_yaml( opts = {} )
+ return super unless YAML::ENGINE.syck?
YAML::quick_emit( nil, opts ) do |out|
out.scalar( taguri, "", :plain )
end
diff --git a/lib/yaml/stream.rb b/ext/syck/lib/syck/stream.rb
index 651a1bbbef..cd77a033c6 100644
--- a/lib/yaml/stream.rb
+++ b/ext/syck/lib/syck/stream.rb
@@ -1,4 +1,4 @@
-module YAML
+module Syck
#
# YAML::Stream -- for emitting many documents
@@ -21,13 +21,14 @@ module YAML
end
def edit( doc_num, doc )
+ warn "#{caller[0]}: edit is deprecated" if $VERBOSE
@documents[ doc_num ] = doc
end
def emit( io = nil )
# opts = @options.dup
# opts[:UseHeader] = true if @documents.length > 1
- out = YAML.emitter
+ out = Syck.emitter
out.reset( io || io2 = StringIO.new )
@documents.each { |v|
v.to_yaml( out )
diff --git a/lib/yaml/stringio.rb b/ext/syck/lib/syck/stringio.rb
index b0fda19e28..77a2b827e5 100644
--- a/lib/yaml/stringio.rb
+++ b/ext/syck/lib/syck/stringio.rb
@@ -1,3 +1,5 @@
+warn "#{caller[0]}: yaml/stringio is deprecated" if $VERBOSE
+
#
# Limited StringIO if no core lib is available
#
@@ -52,19 +54,19 @@ rescue LoadError
#
# Class method for creating streams
#
- def YAML.make_stream( io )
+ def Syck.make_stream( io )
if String === io
io = StringIO.new( io )
elsif not IO === io
- raise YAML::Error, "YAML stream must be an IO or String object."
+ raise Syck::Error, "YAML stream must be an IO or String object."
end
- if YAML::unicode
+ if Syck::unicode
def io.readline
- YAML.utf_to_internal( readline( @ln_sep ), @utf_encoding )
+ Syck.utf_to_internal( readline( @ln_sep ), @utf_encoding )
end
def io.check_unicode
- @utf_encoding = YAML.sniff_encoding( read( 4 ) )
- @ln_sep = YAML.enc_separator( @utf_encoding )
+ @utf_encoding = Syck.sniff_encoding( read( 4 ) )
+ @ln_sep = Syck.enc_separator( @utf_encoding )
seek( -4, IO::SEEK_CUR )
end
def io.utf_encoding
diff --git a/ext/syck/lib/syck/syck.rb b/ext/syck/lib/syck/syck.rb
new file mode 100644
index 0000000000..10e5023f46
--- /dev/null
+++ b/ext/syck/lib/syck/syck.rb
@@ -0,0 +1,16 @@
+#
+# YAML::Syck module
+# .. glues syck and yaml.rb together ..
+#
+require 'syck/basenode'
+
+module Syck
+
+ #
+ # Mixin BaseNode functionality
+ #
+ class Node
+ include Syck::BaseNode
+ end
+
+end
diff --git a/lib/yaml/tag.rb b/ext/syck/lib/syck/tag.rb
index add3c49894..9c6de57953 100644
--- a/lib/yaml/tag.rb
+++ b/ext/syck/lib/syck/tag.rb
@@ -5,7 +5,7 @@
#
# Author:: why the lucky stiff
#
-module YAML
+module Syck
# A dictionary of taguris which map to
# Ruby classes.
@@tagged_classes = {}
@@ -32,7 +32,7 @@ module YAML
#
# tag:why@ruby-lang.org,2004:notes/personal
#
- def YAML.tag_class( tag, cls )
+ def self.tag_class( tag, cls )
if @@tagged_classes.has_key? tag
warn "class #{ @@tagged_classes[tag] } held ownership of the #{ tag } tag"
end
@@ -45,7 +45,7 @@ module YAML
#
# YAML.tagged_classes["tag:yaml.org,2002:int"] => Integer
#
- def YAML.tagged_classes
+ def self.tagged_classes
@@tagged_classes
end
end
@@ -56,28 +56,31 @@ class Module
# Adds a taguri _tag_ to a class, used when dumping or loading the class
# in YAML. See YAML::tag_class for detailed information on typing and
# taguris.
- def yaml_as( tag, sc = true )
+ def syck_yaml_as( tag, sc = true )
verbose, $VERBOSE = $VERBOSE, nil
- class_eval <<-"end;", __FILE__, __LINE__+1
+ class_eval <<-"END", __FILE__, __LINE__+1
attr_writer :taguri
def taguri
if respond_to? :to_yaml_type
- YAML::tagurize( to_yaml_type[1..-1] )
+ Syck.tagurize( to_yaml_type[1..-1] )
else
return @taguri if defined?(@taguri) and @taguri
tag = #{ tag.dump }
- if self.class.yaml_tag_subclasses? and self.class != YAML::tagged_classes[tag]
+ if self.class.yaml_tag_subclasses? and self.class != Syck.tagged_classes[tag]
tag = "\#{ tag }:\#{ self.class.yaml_tag_class_name }"
end
tag
end
end
def self.yaml_tag_subclasses?; #{ sc ? 'true' : 'false' }; end
- end;
- YAML::tag_class tag, self
+ END
+ Syck.tag_class tag, self
ensure
$VERBOSE = verbose
end
+ remove_method :yaml_as rescue nil
+ alias :yaml_as :syck_yaml_as
+
# Transforms the subclass name into a name suitable for display
# in a subclassed tag.
def yaml_tag_class_name
@@ -88,4 +91,5 @@ class Module
def yaml_tag_read_class( name )
name
end
+ # :startdoc:
end
diff --git a/lib/yaml/types.rb b/ext/syck/lib/syck/types.rb
index 60aebc0481..5c129acba4 100644
--- a/lib/yaml/types.rb
+++ b/ext/syck/lib/syck/types.rb
@@ -3,7 +3,7 @@
# Classes required by the full core typeset
#
-module YAML
+module Syck
#
# Default private type
@@ -45,7 +45,7 @@ module YAML
class Object
def self.tag_subclasses?; false; end
def to_yaml( opts = {} )
- YAML::quick_emit( self, opts ) do |out|
+ Syck.quick_emit( self, opts ) do |out|
out.map( "tag:ruby.yaml.org,2002:object:#{ @class }", to_yaml_style ) do |map|
@ivars.each do |k,v|
map.add( k, v )
@@ -67,7 +67,7 @@ module YAML
self.default.to_s
end
def update( h )
- if YAML::SpecialHash === h
+ if Syck::SpecialHash === h
@default = h.default if h.default
end
super( h )
@@ -89,11 +89,11 @@ module YAML
if Hash === v
concat( v.to_a ) # Convert the map to a sequence
else
- raise YAML::Error, "Invalid !omap entry: " + val.inspect
+ raise Syck::Error, "Invalid !omap entry: " + val.inspect
end
end
else
- raise YAML::Error, "Invalid !omap: " + val.inspect
+ raise Syck::Error, "Invalid !omap: " + val.inspect
end
self
end
@@ -123,7 +123,7 @@ module YAML
true
end
def to_yaml( opts = {} )
- YAML::quick_emit( self, opts ) do |out|
+ Syck.quick_emit( self, opts ) do |out|
out.seq( taguri, to_yaml_style ) do |seq|
self.each do |v|
seq.add( Hash[ *v ] )
@@ -144,11 +144,11 @@ module YAML
if Hash === v
concat( v.to_a ) # Convert the map to a sequence
else
- raise YAML::Error, "Invalid !pairs entry: " + val.inspect
+ raise Syck::Error, "Invalid !pairs entry: " + val.inspect
end
end
else
- raise YAML::Error, "Invalid !pairs: " + val.inspect
+ raise Syck::Error, "Invalid !pairs: " + val.inspect
end
self
end
@@ -173,7 +173,7 @@ module YAML
true
end
def to_yaml( opts = {} )
- YAML::quick_emit( self, opts ) do |out|
+ Syck.quick_emit( self, opts ) do |out|
out.seq( taguri, to_yaml_style ) do |seq|
self.each do |v|
seq.add( Hash[ *v ] )
diff --git a/lib/yaml/yamlnode.rb b/ext/syck/lib/syck/yamlnode.rb
index 8afa142669..2fa57b1f97 100644
--- a/lib/yaml/yamlnode.rb
+++ b/ext/syck/lib/syck/yamlnode.rb
@@ -1,9 +1,9 @@
#
# YAML::YamlNode class
#
-require 'yaml/basenode'
+require 'syck/basenode'
-module YAML
+module Syck
#
# YAML Generic Model container
@@ -46,7 +46,7 @@ module YAML
else
t = @value
end
- YAML.transfer_method( @type_id, t )
+ Syck.transfer_method( @type_id, t )
end
end
diff --git a/lib/yaml/ypath.rb b/ext/syck/lib/syck/ypath.rb
index 81348ca043..024dcb7f4e 100644
--- a/lib/yaml/ypath.rb
+++ b/ext/syck/lib/syck/ypath.rb
@@ -2,7 +2,9 @@
# YAML::YPath
#
-module YAML
+warn "#{caller[0]}: YAML::YPath is deprecated" if $VERBOSE
+
+module Syck
class YPath
attr_accessor :segments, :predicates, :flags
@@ -22,7 +24,7 @@ module YAML
@segments.push "."
end
end
- def YPath.each_path( str )
+ def self.each_path( str )
#
# Find choices
#
diff --git a/ext/syck/lib/yaml/syck.rb b/ext/syck/lib/yaml/syck.rb
new file mode 100644
index 0000000000..5b5d1c494e
--- /dev/null
+++ b/ext/syck/lib/yaml/syck.rb
@@ -0,0 +1,14 @@
+# $Id$
+#
+# = yaml/syck.rb:
+#
+
+require 'stringio'
+require 'syck.so'
+require 'syck/error'
+require 'syck/syck'
+require 'syck/tag'
+require 'syck/stream'
+require 'syck/constants'
+require 'syck/rubytypes'
+require 'syck/types'
diff --git a/ext/syck/node.c b/ext/syck/node.c
index fb98f655cc..35c1f45150 100644
--- a/ext/syck/node.c
+++ b/ext/syck/node.c
@@ -59,7 +59,7 @@ syck_alloc_map(void)
n = syck_alloc_node( syck_map_kind );
n->data.pairs = m;
-
+
return n;
}
@@ -94,7 +94,7 @@ syck_alloc_str(void)
n = syck_alloc_node( syck_str_kind );
n->data.str = s;
-
+
return n;
}
@@ -128,7 +128,7 @@ syck_replace_str( SyckNode *n, char *str, enum scalar_style style )
void
syck_replace_str2( SyckNode *n, char *str, long len, enum scalar_style style )
{
- if ( n->data.str->ptr != NULL )
+ if ( n->data.str->ptr != NULL )
{
S_FREE( n->data.str->ptr );
n->data.str->ptr = NULL;
@@ -201,7 +201,7 @@ syck_map_add( SyckNode *map, SYMID key, SYMID value )
ASSERT( map != NULL );
ASSERT( map->data.pairs != NULL );
-
+
m = map->data.pairs;
idx = m->idx;
m->idx += 1;
@@ -226,7 +226,7 @@ syck_map_update( SyckNode *map1, SyckNode *map2 )
m1 = map1->data.pairs;
m2 = map2->data.pairs;
if ( m2->idx < 1 ) return;
-
+
new_idx = m1->idx;
new_idx += m2->idx;
new_capa = m1->capa;
@@ -242,8 +242,8 @@ syck_map_update( SyckNode *map1, SyckNode *map2 )
}
for ( new_idx = 0; new_idx < m2->idx; m1->idx++, new_idx++ )
{
- m1->keys[m1->idx] = m2->keys[new_idx];
- m1->values[m1->idx] = m2->values[new_idx];
+ m1->keys[m1->idx] = m2->keys[new_idx];
+ m1->values[m1->idx] = m2->values[new_idx];
}
}
@@ -324,7 +324,7 @@ syck_seq_add( SyckNode *arr, SYMID value )
ASSERT( arr != NULL );
ASSERT( arr->data.list != NULL );
-
+
s = arr->data.list;
idx = s->idx;
s->idx += 1;
@@ -374,7 +374,7 @@ syck_free_members( SyckNode *n )
switch ( n->kind )
{
case syck_str_kind:
- if ( n->data.str != NULL )
+ if ( n->data.str != NULL )
{
S_FREE( n->data.str->ptr );
n->data.str->ptr = NULL;
diff --git a/ext/syck/rubyext.c b/ext/syck/rubyext.c
index 3538deb5e3..2ab2e49482 100644
--- a/ext/syck/rubyext.c
+++ b/ext/syck/rubyext.c
@@ -114,7 +114,7 @@ rb_syck_compile(VALUE self, VALUE port)
syck_parser_taguri_expansion( parser, 0 );
oid = syck_parse( parser );
if (!syck_lookup_sym( parser, oid, &data )) {
- rb_raise(rb_eSyntaxError, "root node <%lx> not found", oid);
+ rb_raise(rb_eSyntaxError, "root node <%p> not found", (void *)oid);
}
sav = data;
@@ -196,7 +196,7 @@ VALUE
syck_get_hash_aref(VALUE hsh, VALUE key)
{
VALUE val = rb_hash_aref( hsh, key );
- if ( NIL_P( val ) )
+ if ( NIL_P( val ) )
{
val = rb_hash_new();
rb_hash_aset(hsh, key, val);
@@ -208,17 +208,18 @@ syck_get_hash_aref(VALUE hsh, VALUE key)
* creating timestamps
*/
struct mktime_arg {
- char *str;
+ const char *str;
long len;
};
-SYMID
-mktime_do(struct mktime_arg *arg)
+VALUE
+mktime_do(VALUE varg)
{
+ struct mktime_arg *arg = (struct mktime_arg *)varg;
VALUE time;
- char *str = arg->str;
+ const char *str = arg->str;
long len = arg->len;
- char *ptr = str;
+ const char *ptr = str;
VALUE year = INT2FIX(0);
VALUE mon = INT2FIX(0);
VALUE day = INT2FIX(0);
@@ -272,14 +273,14 @@ mktime_do(struct mktime_arg *arg)
if ( len > ptr - str && *ptr == '.' )
{
char padded[] = "000000";
- char *end = ptr + 1;
- char *p = end;
+ const int padding = (int)(sizeof(padded) - 1);
+ const char *end = ptr + 1;
+ const char *begin = end;
+ ptrdiff_t length;
while ( isdigit( *end ) ) end++;
- if (end - p < sizeof(padded)) {
- MEMCPY(padded, ptr + 1, char, end - (ptr + 1));
- p = padded;
- }
- usec = strtol(p, NULL, 10);
+ if ((length = (end - begin)) > padding) length = padding;
+ MEMCPY(padded, begin, char, length);
+ usec = strtol(padded, NULL, 10);
}
else
{
@@ -320,9 +321,11 @@ mktime_do(struct mktime_arg *arg)
}
}
-SYMID
-mktime_r(struct mktime_arg *arg)
+VALUE
+mktime_r(VALUE varg)
{
+ struct mktime_arg *arg = (struct mktime_arg *)varg;
+
if (!cDateTime) {
/*
* Load Date module
@@ -333,8 +336,8 @@ mktime_r(struct mktime_arg *arg)
return rb_funcall(cDateTime, s_parse, 1, rb_str_new(arg->str, arg->len));
}
-SYMID
-rb_syck_mktime(char *str, long len)
+VALUE
+rb_syck_mktime(const char *str, long len)
{
struct mktime_arg a;
@@ -537,11 +540,11 @@ yaml_org_handler( SyckNode *n, VALUE *ref )
obj = rb_funcall( cDefaultKey, s_new, 0 );
}
else if ( n->data.str->style == scalar_plain &&
- n->data.str->len > 1 &&
+ n->data.str->len > 1 &&
strncmp( n->data.str->ptr, ":", 1 ) == 0 )
{
- obj = rb_funcall( oDefaultResolver, s_transfer, 2,
- rb_str_new2( "tag:ruby.yaml.org,2002:sym" ),
+ obj = rb_funcall( oDefaultResolver, s_transfer, 2,
+ rb_str_new2( "tag:ruby.yaml.org,2002:sym" ),
rb_str_new( n->data.str->ptr + 1, n->data.str->len - 1 ) );
}
else if ( strcmp( type_id, "str" ) == 0 )
@@ -644,7 +647,7 @@ rb_syck_load_handler(SyckParser *p, SyckNode *n)
}
/*
- * Create node,
+ * Create node,
*/
obj = rb_funcall( resolver, s_node_import, 1, Data_Wrap_Struct( cNode, NULL, NULL, n ) );
@@ -680,8 +683,8 @@ rb_syck_err_handler(SyckParser *p, const char *msg)
rb_raise(rb_eArgError, "%s on line %d, col %"PRIdPTRDIFF": `%s'",
msg,
p->linect,
- p->cursor - p->lineptr,
- p->lineptr);
+ p->cursor - p->lineptr,
+ p->lineptr);
}
/*
@@ -715,7 +718,7 @@ syck_set_model(VALUE p, VALUE input, VALUE model)
if ( NIL_P( input ) )
{
- input = rb_ivar_get( p, s_input );
+ input = rb_ivar_get( p, s_input );
}
if ( input == sym_bytecode )
{
@@ -773,7 +776,7 @@ rb_syck_free_parser(SyckParser *p)
* YAML::Syck::Parser.allocate
*/
VALUE syck_parser_s_alloc _((VALUE));
-VALUE
+VALUE
syck_parser_s_alloc(VALUE class)
{
VALUE pobj;
@@ -880,7 +883,7 @@ syck_parser_load_documents(int argc, VALUE *argv, VALUE self)
model = rb_hash_aref( rb_attr_get( self, s_options ), sym_model );
Data_Get_Struct(self, SyckParser, parser);
syck_set_model( self, input, model );
-
+
bonus = (struct parser_xtra *)parser->bonus;
bonus->taint = syck_parser_assign_io(parser, &port);
bonus->resolver = rb_attr_get( self, s_resolver );
@@ -947,7 +950,7 @@ syck_resolver_use_types_at(VALUE self, VALUE hsh)
}
/*
- * YAML::Syck::Resolver#detect_implicit
+ * YAML::Syck::Resolver#detect_implicit
*/
VALUE
syck_resolver_detect_implicit(VALUE self, VALUE val)
@@ -1075,7 +1078,7 @@ syck_const_find(VALUE const_name)
VALUE
syck_resolver_transfer(VALUE self, VALUE type, VALUE val)
{
- if (NIL_P(type) || RSTRING_LEN(StringValue(type)) == 0)
+ if (NIL_P(type) || RSTRING_LEN(StringValue(type)) == 0)
{
type = rb_funcall( self, s_detect_implicit, 1, val );
}
@@ -1123,7 +1126,7 @@ syck_resolver_transfer(VALUE self, VALUE type, VALUE val)
subclass = rb_funcall( target_class, s_tag_read_class, 1, subclass );
subclass_v = syck_const_find( subclass );
- if ( subclass_v != Qnil )
+ if ( subclass_v != Qnil )
{
subclass = subclass_v;
}
@@ -1177,7 +1180,7 @@ syck_resolver_transfer(VALUE self, VALUE type, VALUE val)
rb_block_call( val, s_each, 0, 0, syck_set_ivars, obj );
}
}
- else
+ else
{
VALUE parts = rb_str_split( type, ":" );
VALUE scheme = rb_ary_shift( parts );
@@ -1219,7 +1222,7 @@ syck_resolver_tagurize(VALUE self, VALUE val)
}
/*
- * YAML::Syck::DefaultResolver#detect_implicit
+ * YAML::Syck::DefaultResolver#detect_implicit
*/
VALUE
syck_defaultresolver_detect_implicit(VALUE self, VALUE val)
@@ -1278,19 +1281,19 @@ syck_genericresolver_node_import(VALUE self, VALUE node)
if ( n->data.str->style == scalar_1quote )
{
style = sym_1quote;
- }
+ }
else if ( n->data.str->style == scalar_2quote )
{
style = sym_2quote;
- }
+ }
else if ( n->data.str->style == scalar_fold )
{
style = sym_fold;
- }
+ }
else if ( n->data.str->style == scalar_literal )
{
style = sym_literal;
- }
+ }
else if ( n->data.str->style == scalar_plain )
{
style = sym_plain;
@@ -1308,7 +1311,7 @@ syck_genericresolver_node_import(VALUE self, VALUE node)
if ( n->data.list->style == seq_inline )
{
style = sym_inline;
- }
+ }
obj = rb_funcall( cSeq, s_new, 3, t, v, style );
rb_iv_set(obj, "@kind", sym_seq);
break;
@@ -1322,7 +1325,7 @@ syck_genericresolver_node_import(VALUE self, VALUE node)
if ( n->data.pairs->style == map_inline )
{
style = sym_inline;
- }
+ }
obj = rb_funcall( cMap, s_new, 3, t, v, style );
rb_iv_set(obj, "@kind", sym_map);
break;
@@ -1347,8 +1350,8 @@ syck_badalias_initialize(VALUE self, VALUE val)
VALUE
syck_badalias_cmp(VALUE alias1, VALUE alias2)
{
- VALUE str1 = rb_ivar_get( alias1, s_name );
- VALUE str2 = rb_ivar_get( alias2, s_name );
+ VALUE str1 = rb_ivar_get( alias1, s_name );
+ VALUE str2 = rb_ivar_get( alias2, s_name );
VALUE val = rb_funcall( str1, s_cmp, 1, str2 );
return val;
}
@@ -1459,23 +1462,23 @@ syck_scalar_style_set(VALUE self, VALUE style)
if ( NIL_P( style ) )
{
node->data.str->style = scalar_none;
- }
+ }
else if ( style == sym_1quote )
{
node->data.str->style = scalar_1quote;
- }
+ }
else if ( style == sym_2quote )
{
node->data.str->style = scalar_2quote;
- }
+ }
else if ( style == sym_fold )
{
node->data.str->style = scalar_fold;
- }
+ }
else if ( style == sym_literal )
{
node->data.str->style = scalar_literal;
- }
+ }
else if ( style == sym_plain )
{
node->data.str->style = scalar_plain;
@@ -1587,7 +1590,7 @@ syck_seq_style_set(VALUE self, VALUE style)
if ( style == sym_inline )
{
node->data.list->style = seq_inline;
- }
+ }
else
{
node->data.list->style = seq_none;
@@ -1709,7 +1712,7 @@ syck_map_style_set(VALUE self, VALUE style)
if ( style == sym_inline )
{
node->data.pairs->style = map_inline;
- }
+ }
else
{
node->data.pairs->style = map_none;
@@ -1719,6 +1722,7 @@ syck_map_style_set(VALUE self, VALUE style)
return self;
}
+#if 0
/*
* Cloning method for all node types
*/
@@ -1741,6 +1745,7 @@ syck_node_init_copy(VALUE copy, VALUE orig)
MEMCPY( copy_n, orig_n, SyckNode, 1 );
return copy;
}
+#endif
/*
* YAML::Syck::Node#type_id=
@@ -1865,7 +1870,7 @@ rb_syck_emitter_handler(SyckEmitter *e, st_data_t data)
/*
* Handle output from the emitter
*/
-void
+void
rb_syck_output_handler(SyckEmitter * emitter, char *str, long len)
{
struct emitter_xtra *bonus = (struct emitter_xtra *)emitter->bonus;
@@ -1921,7 +1926,7 @@ rb_syck_free_emitter(SyckEmitter *e)
* YAML::Syck::Emitter.allocate
*/
VALUE syck_emitter_s_alloc _((VALUE));
-VALUE
+VALUE
syck_emitter_s_alloc(VALUE class)
{
VALUE pobj;
@@ -1938,6 +1943,15 @@ syck_emitter_s_alloc(VALUE class)
return pobj;
}
+static VALUE
+id_hash_new(void)
+{
+ VALUE hash;
+ hash = rb_hash_new();
+ rb_funcall(hash, rb_intern("compare_by_identity"), 0);
+ return hash;
+}
+
/*
* YAML::Syck::Emitter.reset( options )
*/
@@ -1953,7 +1967,7 @@ syck_emitter_reset(int argc, VALUE *argv, VALUE self)
bonus->oid = Qnil;
bonus->port = rb_str_new2( "" );
- bonus->data = rb_hash_new();
+ bonus->data = id_hash_new();
if (rb_scan_args(argc, argv, "01", &options) == 0)
{
@@ -1973,7 +1987,7 @@ syck_emitter_reset(int argc, VALUE *argv, VALUE self)
Check_Type(options, T_HASH);
rb_ivar_set(self, s_options, options);
}
-
+
emitter->headless = 0;
rb_ivar_set(self, s_level, INT2FIX(0));
rb_ivar_set(self, s_resolver, Qnil);
@@ -2009,14 +2023,14 @@ syck_emitter_emit(int argc, VALUE *argv, VALUE self)
/* Second pass, build emitted string */
level -= 1;
rb_ivar_set(self, s_level, INT2FIX(level));
- if ( level == 0 )
+ if ( level == 0 )
{
syck_emit(emitter, (st_data_t)symple);
syck_emitter_flush(emitter, 0);
return bonus->port;
}
-
+
return symple;
}
@@ -2102,9 +2116,7 @@ syck_out_scalar(int argc, VALUE *argv, VALUE self)
void
Init_syck()
{
- VALUE rb_yaml = rb_define_module( "YAML" );
- VALUE rb_syck = rb_define_module_under( rb_yaml, "Syck" );
- rb_define_const( rb_syck, "VERSION", rb_str_new2( SYCK_VERSION ) );
+ VALUE rb_syck = rb_define_module_under( rb_cObject, "Syck" );
rb_define_module_function( rb_syck, "compile", rb_syck_compile, 1 );
/*
@@ -2215,7 +2227,7 @@ Init_syck()
* Define YAML::Syck::Node class
*/
cNode = rb_define_class_under( rb_syck, "Node", rb_cObject );
- rb_define_method( cNode, "initialize_copy", syck_node_init_copy, 1 );
+ rb_undef( cNode, rb_intern("initialize_copy") );
rb_define_attr( cNode, "emitter", 1, 1 );
rb_define_attr( cNode, "resolver", 1, 1 );
rb_define_attr( cNode, "kind", 1, 0 );
@@ -2249,7 +2261,7 @@ Init_syck()
/*
* Define YAML::PrivateType class
*/
- cPrivateType = rb_define_class_under( rb_yaml, "PrivateType", rb_cObject );
+ cPrivateType = rb_define_class_under( rb_syck, "PrivateType", rb_cObject );
rb_define_attr( cPrivateType, "type_id", 1, 1 );
rb_define_attr( cPrivateType, "value", 1, 1 );
rb_define_method( cPrivateType, "initialize", syck_privatetype_initialize, 2);
@@ -2257,7 +2269,7 @@ Init_syck()
/*
* Define YAML::DomainType class
*/
- cDomainType = rb_define_class_under( rb_yaml, "DomainType", rb_cObject );
+ cDomainType = rb_define_class_under( rb_syck, "DomainType", rb_cObject );
rb_define_attr( cDomainType, "domain", 1, 1 );
rb_define_attr( cDomainType, "type_id", 1, 1 );
rb_define_attr( cDomainType, "value", 1, 1 );
@@ -2266,7 +2278,7 @@ Init_syck()
/*
* Define YAML::Object class
*/
- cYObject = rb_define_class_under( rb_yaml, "Object", rb_cObject );
+ cYObject = rb_define_class_under( rb_syck, "Object", rb_cObject );
rb_define_attr( cYObject, "class", 1, 1 );
rb_define_attr( cYObject, "ivars", 1, 1 );
rb_define_method( cYObject, "initialize", syck_yobject_initialize, 2);
diff --git a/ext/syck/syck.c b/ext/syck/syck.c
index e0fc2bc244..94e3992d3f 100644
--- a/ext/syck/syck.c
+++ b/ext/syck/syck.c
@@ -17,7 +17,7 @@ void syck_parser_pop_level( SyckParser * );
/*
* Custom assert
*/
-void
+void
syck_assert( const char *file_name, unsigned line_num, const char *expr )
{
fflush( NULL );
@@ -160,7 +160,7 @@ syck_new_parser(void)
p = S_ALLOC( SyckParser );
S_MEMZERO( p, SyckParser, 1 );
p->lvl_capa = ALLOC_CT;
- p->levels = S_ALLOC_N( SyckLevel, p->lvl_capa );
+ p->levels = S_ALLOC_N( SyckLevel, p->lvl_capa );
p->input_type = syck_yaml_utf8;
p->io_type = syck_io_str;
p->io.str = NULL;
@@ -186,7 +186,7 @@ syck_add_sym( SyckParser *p, void *data )
}
id = p->syms->num_entries + 1;
st_insert( p->syms, id, (st_data_t)data );
- return id;
+ return (int)id;
}
int
@@ -378,7 +378,7 @@ syck_parser_pop_level( SyckParser *p )
free( p->levels[p->lvl_idx].domain );
}
-void
+void
syck_parser_add_level( SyckParser *p, int len, enum syck_level_status status )
{
ASSERT( p != NULL );
@@ -403,7 +403,7 @@ free_any_io( SyckParser *p )
switch ( p->io_type )
{
case syck_io_str:
- if ( p->io.str != NULL )
+ if ( p->io.str != NULL )
{
S_FREE( p->io.str );
p->io.str = NULL;
@@ -411,7 +411,7 @@ free_any_io( SyckParser *p )
break;
case syck_io_file:
- if ( p->io.file != NULL )
+ if ( p->io.file != NULL )
{
S_FREE( p->io.file );
p->io.file = NULL;
@@ -516,7 +516,7 @@ syck_parse( SyckParser *p )
void
syck_default_error_handler( SyckParser *p, const char *msg )
{
- printf( "Error at [Line %d, Col %"PRIdPTRDIFF"]: %s\n",
+ printf( "Error at [Line %d, Col %"PRIdPTRDIFF"]: %s\n",
p->linect,
p->cursor - p->lineptr,
msg );
diff --git a/ext/syck/syck.h b/ext/syck/syck.h
index 81b3d67952..8885b000de 100644
--- a/ext/syck/syck.h
+++ b/ext/syck/syck.h
@@ -12,7 +12,6 @@
#define SYCK_YAML_MAJOR 1
#define SYCK_YAML_MINOR 0
-#define SYCK_VERSION "0.60"
#define YAML_DOMAIN "yaml.org,2002"
#include <stdio.h>
@@ -31,7 +30,7 @@ extern "C" {
#include <alloca.h>
#endif
-#if DEBUG
+#ifdef DEBUG
void syck_assert( const char *, unsigned, const char * );
# define ASSERT(f) \
(( f ) ? (void)0 : syck_assert( __FILE__, __LINE__, #f ))
@@ -70,7 +69,7 @@ void syck_assert( const char *, unsigned, const char * );
typedef long st_data_t;
#endif
-#define SYMID unsigned long
+#define SYMID st_data_t
typedef struct _syck_node SyckNode;
@@ -154,7 +153,7 @@ typedef struct _syck_level SyckLevel;
typedef SYMID (*SyckNodeHandler)(SyckParser *, SyckNode *);
typedef void (*SyckErrorHandler)(SyckParser *, const char *);
typedef SyckNode * (*SyckBadAnchorHandler)(SyckParser *, char *);
-typedef long (*SyckIoFileRead)(char *, SyckIoFile *, long, long);
+typedef long (*SyckIoFileRead)(char *, SyckIoFile *, long, long);
typedef long (*SyckIoStrRead)(char *, SyckIoStr *, long, long);
enum syck_io_type {
@@ -206,7 +205,7 @@ struct _syck_str {
struct _syck_level {
/* Indent */
int spaces;
- /* Counts nodes emitted at this level, useful for parsing
+ /* Counts nodes emitted at this level, useful for parsing
* keys and pairs in bytecode */
int ncount;
/* Does node have anchors or tags? */
@@ -266,8 +265,8 @@ struct _syck_parser {
typedef struct _syck_emitter SyckEmitter;
typedef struct _syck_emitter_node SyckEmitterNode;
-typedef void (*SyckOutputHandler)(SyckEmitter *, char *, long);
-typedef void (*SyckEmitterHandler)(SyckEmitter *, st_data_t);
+typedef void (*SyckOutputHandler)(SyckEmitter *, char *, long);
+typedef void (*SyckEmitterHandler)(SyckEmitter *, st_data_t);
enum doc_stage {
doc_open,
diff --git a/ext/syck/token.c b/ext/syck/token.c
index 1b26e66bdb..bea79c158a 100644
--- a/ext/syck/token.c
+++ b/ext/syck/token.c
@@ -70,7 +70,7 @@
if ( reset == 1 ) YYPOS(0); \
return YAML_IOPEN; \
} \
- }
+ }
/*
* Nice little macro to ensure closure of levels.
@@ -207,7 +207,7 @@
} \
else if ( *YYLINEPTR == ' ' ) \
{ \
- ict = YYCURSOR - YYLINEPTR; \
+ ict = (int)(YYCURSOR - YYLINEPTR); \
}
/*
@@ -278,7 +278,7 @@ sycklex_yaml_utf8( YYSTYPE *sycklval, SyckParser *parser )
{
int doc_level = 0;
syck_parser_ptr = parser;
- if ( YYCURSOR == NULL )
+ if ( YYCURSOR == NULL )
{
syck_parser_read( parser );
}
@@ -331,7 +331,7 @@ yy2: yyaccept = 0;
yy3:
#line 374 "token.re"
{ YYPOS(0);
- goto Document;
+ goto Document;
}
#line 337 "<stdout>"
yy4: yyaccept = 0;
@@ -344,7 +344,7 @@ yy5: ++YYCURSOR;
goto yy6;
yy6:
#line 356 "token.re"
-{ eat_comments( parser );
+{ eat_comments( parser );
goto Header;
}
#line 351 "<stdout>"
@@ -355,7 +355,7 @@ yy8:
{ SyckLevel *lvl = CURRENT_LEVEL();
ENSURE_YAML_IEND(lvl, -1);
YYPOS(0);
- return 0;
+ return 0;
}
#line 361 "<stdout>"
yy9: yyaccept = 1;
@@ -364,7 +364,7 @@ yy9: yyaccept = 1;
yy10:
#line 366 "token.re"
{ GOBBLE_UP_YAML_INDENT( doc_level, YYTOKEN );
- goto Header;
+ goto Header;
}
#line 370 "<stdout>"
yy11: yych = *++YYCURSOR;
@@ -377,7 +377,7 @@ yy12: ++YYCURSOR;
goto yy16;
yy13:
#line 370 "token.re"
-{ doc_level = YYCURSOR - YYLINEPTR;
+{ doc_level = (int)(YYCURSOR - YYLINEPTR);
goto Header;
}
#line 384 "<stdout>"
@@ -432,15 +432,15 @@ yy24:
{ SyckLevel *lvl = CURRENT_LEVEL();
if ( lvl->status == syck_lvl_header )
{
- goto Header;
+ goto Header;
}
else
{
ENSURE_YAML_IEND(lvl, -1);
YYPOS(0);
- return 0;
+ return 0;
}
- return 0;
+ return 0;
}
#line 446 "<stdout>"
yy25: ++YYCURSOR;
@@ -476,13 +476,13 @@ yy31:
if ( lvl->status == syck_lvl_header )
{
YYPOS(3);
- goto Directive;
+ goto Directive;
}
else
{
ENSURE_YAML_IEND(lvl, -1);
YYPOS(0);
- return 0;
+ return 0;
}
}
#line 489 "<stdout>"
@@ -583,7 +583,7 @@ yy39: ++YYCURSOR;
yy40:
#line 497 "token.re"
{ ENSURE_YAML_IOPEN(lvl, doc_level, 1);
- goto Plain;
+ goto Plain;
}
#line 589 "<stdout>"
yy41: ++YYCURSOR;
@@ -593,7 +593,7 @@ yy42:
{ ENSURE_YAML_IOPEN(lvl, doc_level, 1);
lvl = CURRENT_LEVEL();
ADD_LEVEL(lvl->spaces + 1, syck_lvl_iseq);
- return YYTOKEN[0];
+ return YYTOKEN[0];
}
#line 599 "<stdout>"
yy43: ++YYCURSOR;
@@ -603,7 +603,7 @@ yy44:
{ ENSURE_YAML_IOPEN(lvl, doc_level, 1);
lvl = CURRENT_LEVEL();
ADD_LEVEL(lvl->spaces + 1, syck_lvl_imap);
- return YYTOKEN[0];
+ return YYTOKEN[0];
}
#line 609 "<stdout>"
yy45: ++YYCURSOR;
@@ -611,7 +611,7 @@ yy45: ++YYCURSOR;
yy46:
#line 432 "token.re"
{ POP_LEVEL();
- return YYTOKEN[0];
+ return YYTOKEN[0];
}
#line 617 "<stdout>"
yy47: yyaccept = 1;
@@ -800,7 +800,7 @@ yy58: ++YYCURSOR;
goto yy59;
yy59:
#line 486 "token.re"
-{ eat_comments( parser );
+{ eat_comments( parser );
goto Document;
}
#line 807 "<stdout>"
@@ -817,7 +817,7 @@ yy63:
#line 492 "token.re"
{ ENSURE_YAML_IEND(lvl, -1);
YYPOS(0);
- return 0;
+ return 0;
}
#line 823 "<stdout>"
yy64: yych = *++YYCURSOR;
@@ -859,11 +859,11 @@ yy70: ++YYCURSOR;
goto yy71;
yy71:
#line 479 "token.re"
-{ if ( is_newline( YYCURSOR - 1 ) )
+{ if ( is_newline( YYCURSOR - 1 ) )
{
YYCURSOR--;
}
- goto ScalarBlock;
+ goto ScalarBlock;
}
#line 869 "<stdout>"
yy72: ++YYCURSOR;
@@ -1037,18 +1037,18 @@ yy81: ++YYCURSOR;
goto yy82;
yy82:
#line 441 "token.re"
-{ ENSURE_YAML_IOPEN(lvl, YYTOKEN - YYLINEPTR, 1);
+{ ENSURE_YAML_IOPEN(lvl, (int)(YYTOKEN - YYLINEPTR), 1);
FORCE_NEXT_TOKEN(YAML_IOPEN);
if ( *YYCURSOR == '#' || is_newline( YYCURSOR ) || is_newline( YYCURSOR - 1 ) )
{
- YYCURSOR--;
- ADD_LEVEL((YYTOKEN + 1) - YYLINEPTR, syck_lvl_seq);
+ YYCURSOR--;
+ ADD_LEVEL((int)((YYTOKEN + 1) - YYLINEPTR), syck_lvl_seq);
}
else /* spaces followed by content uses the space as indentation */
{
- ADD_LEVEL(YYCURSOR - YYLINEPTR, syck_lvl_seq);
+ ADD_LEVEL((int)(YYCURSOR - YYLINEPTR), syck_lvl_seq);
}
- return YYTOKEN[0];
+ return YYTOKEN[0];
}
#line 1054 "<stdout>"
yy83: ++YYCURSOR;
@@ -1069,8 +1069,8 @@ yy86: ++YYCURSOR;
yy87:
#line 436 "token.re"
{ if ( *YYTOKEN == ':' && lvl->status != syck_lvl_imap ) lvl->status = syck_lvl_map;
- YYPOS(1);
- return YYTOKEN[0];
+ YYPOS(1);
+ return YYTOKEN[0];
}
#line 1076 "<stdout>"
yy88: ++YYCURSOR;
@@ -1499,7 +1499,7 @@ Plain:
plvl = CURRENT_LEVEL();
GET_TRUE_YAML_INDENT(parentIndent);
-Plain2:
+Plain2:
YYTOKEN = YYCURSOR;
Plain3:
@@ -1564,7 +1564,7 @@ yy113:
}
}
- goto Plain2;
+ goto Plain2;
}
#line 1570 "<stdout>"
yy114: ++YYCURSOR;
@@ -1631,13 +1631,13 @@ yy122: ++YYCURSOR;
}
yy123:
#line 617 "token.re"
-{ if ( qidx == 0 )
+{ if ( qidx == 0 )
{
goto Plain2;
}
else
{
- goto Plain3;
+ goto Plain3;
}
}
#line 1644 "<stdout>"
@@ -1655,7 +1655,7 @@ yy128: ++YYCURSOR;
goto yy129;
yy129:
#line 611 "token.re"
-{ eat_comments( parser );
+{ eat_comments( parser );
RETURN_IMPLICIT();
}
#line 1662 "<stdout>"
@@ -1801,7 +1801,7 @@ yy147:
}
}
- goto SingleQuote2;
+ goto SingleQuote2;
}
#line 1807 "<stdout>"
yy148: ++YYCURSOR;
@@ -1811,8 +1811,8 @@ yy148: ++YYCURSOR;
}
yy149:
#line 712 "token.re"
-{ QUOTECAT(qstr, qcapa, qidx, *(YYCURSOR - 1));
- goto SingleQuote2;
+{ QUOTECAT(qstr, qcapa, qidx, *(YYCURSOR - 1));
+ goto SingleQuote2;
}
#line 1818 "<stdout>"
yy150: ++YYCURSOR;
@@ -1842,7 +1842,7 @@ yy151:
n->data.str->len = qidx;
n->data.str->style = scalar_1quote;
sycklval->nodeData = n;
- return YAML_PLAIN;
+ return YAML_PLAIN;
}
#line 1848 "<stdout>"
yy152: yych = *++YYCURSOR;
@@ -1854,7 +1854,7 @@ yy154: ++YYCURSOR;
yy155:
#line 685 "token.re"
{ QUOTECAT(qstr, qcapa, qidx, '\'');
- goto SingleQuote2;
+ goto SingleQuote2;
}
#line 1860 "<stdout>"
yy156: yyaccept = 0;
@@ -1960,7 +1960,7 @@ yy163:
}
keep_nl = 1;
- goto DoubleQuote2;
+ goto DoubleQuote2;
}
#line 1966 "<stdout>"
yy164: ++YYCURSOR;
@@ -1970,8 +1970,8 @@ yy164: ++YYCURSOR;
}
yy165:
#line 820 "token.re"
-{ QUOTECAT(qstr, qcapa, qidx, *(YYCURSOR - 1));
- goto DoubleQuote2;
+{ QUOTECAT(qstr, qcapa, qidx, *(YYCURSOR - 1));
+ goto DoubleQuote2;
}
#line 1977 "<stdout>"
yy166: yyaccept = 1;
@@ -2010,7 +2010,7 @@ yy168:
n->data.str->len = qidx;
n->data.str->style = scalar_2quote;
sycklval->nodeData = n;
- return YAML_PLAIN;
+ return YAML_PLAIN;
}
#line 2016 "<stdout>"
yy169: yych = *++YYCURSOR;
@@ -2038,7 +2038,7 @@ yy175:
#line 792 "token.re"
{ keep_nl = 0;
YYCURSOR--;
- goto DoubleQuote2;
+ goto DoubleQuote2;
}
#line 2044 "<stdout>"
yy176: yych = *++YYCURSOR;
@@ -2076,7 +2076,7 @@ yy179:
#line 778 "token.re"
{ char ch = *( YYCURSOR - 1 );
QUOTECAT(qstr, qcapa, qidx, escape_seq( ch ));
- goto DoubleQuote2;
+ goto DoubleQuote2;
}
#line 2082 "<stdout>"
yy180: yych = *++YYCURSOR;
@@ -2113,7 +2113,7 @@ yy182:
ch = strtol( chr_text, NULL, 16 );
free( chr_text );
QUOTECAT(qstr, qcapa, qidx, ch);
- goto DoubleQuote2;
+ goto DoubleQuote2;
}
#line 2119 "<stdout>"
yy183: yyaccept = 0;
@@ -2216,7 +2216,7 @@ yy189:
}
}
- return YAML_TRANSFER;
+ return YAML_TRANSFER;
}
#line 2222 "<stdout>"
yy190: yych = *++YYCURSOR;
@@ -2230,7 +2230,7 @@ yy192: ++YYCURSOR;
}
yy193:
#line 905 "token.re"
-{ QUOTECAT(qstr, qcapa, qidx, *(YYCURSOR - 1));
+{ QUOTECAT(qstr, qcapa, qidx, *(YYCURSOR - 1));
goto TransferMethod2;
}
#line 2237 "<stdout>"
@@ -2363,7 +2363,7 @@ ScalarBlock:
}
else if ( isdigit( *yyt ) )
{
- forceIndent = strtol( yyt, NULL, 10 );
+ forceIndent = rb_long2int(strtol( yyt, NULL, 10 ));
}
}
@@ -2505,7 +2505,7 @@ yy214:
#line 1046 "token.re"
{ YYCURSOR--;
POP_LEVEL();
- RETURN_YAML_BLOCK();
+ RETURN_YAML_BLOCK();
}
#line 2511 "<stdout>"
yy215: yyaccept = 1;
@@ -2636,7 +2636,7 @@ yy233: ++YYCURSOR;
}
yy234:
#line 1095 "token.re"
-{ goto Comment;
+{ goto Comment;
}
#line 2642 "<stdout>"
yy235: yych = *++YYCURSOR;
@@ -2699,20 +2699,20 @@ newline_len( char *ptr )
{
if ( *ptr == '\n' )
return 1;
-
+
if ( *ptr == '\r' && *( ptr + 1 ) == '\n' )
return 2;
return 0;
}
-int
+int
syckwrap()
{
return 1;
}
-void
+void
syckerror( const char *msg )
{
if ( syck_parser_ptr->error_handler == NULL )
diff --git a/ext/syck/yaml2byte.c b/ext/syck/yaml2byte.c
index 1b1ce26c49..e5cc4e0779 100644
--- a/ext/syck/yaml2byte.c
+++ b/ext/syck/yaml2byte.c
@@ -7,7 +7,7 @@
*
* WARNING WARNING WARNING --- THIS IS *NOT JUST* PLAYING
* ANYMORE! -- WHY HAS EMBRACED THIS AS THE REAL THING!
- */
+ */
#include "ruby/ruby.h"
#include <syck.h>
#include <assert.h>
@@ -35,7 +35,7 @@ typedef struct {
int printed;
} bytestring_t;
bytestring_t *bytestring_alloc(void) {
- bytestring_t *ret;
+ bytestring_t *ret;
/*TRACE0("bytestring_alloc()");*/
ret = S_ALLOC(bytestring_t);
ret->hash = HASH;
@@ -46,8 +46,8 @@ bytestring_t *bytestring_alloc(void) {
ret->printed = 0;
return ret;
}
-void bytestring_append(bytestring_t *str, char code,
- char *start, char *finish)
+void bytestring_append(bytestring_t *str, char code,
+ char *start, char *finish)
{
long grow;
long length = 2; /* CODE + LF */
@@ -62,14 +62,14 @@ void bytestring_append(bytestring_t *str, char code,
if(length > str->remaining) {
grow = (length - str->remaining) + CHUNKSIZE;
str->remaining += grow;
- str->length += grow;
- str->buffer = S_REALLOC_N( str->buffer, char, str->length + 1 );
+ str->length += grow;
+ S_REALLOC_N( str->buffer, char, str->length + 1 );
assert(str->buffer);
}
curr = str->buffer + (str->length - str->remaining);
*curr = code;
curr += 1;
- if(start)
+ if(start)
while(start < finish)
*curr ++ = *start ++;
*curr = '\n';
@@ -99,8 +99,8 @@ void bytestring_extend(bytestring_t *str, bytestring_t *ext)
if(length > str->remaining) {
grow = (length - str->remaining) + CHUNKSIZE;
str->remaining += grow;
- str->length += grow;
- str->buffer = S_REALLOC_N( str->buffer, char, str->length + 1 );
+ str->length += grow;
+ S_REALLOC_N( str->buffer, char, str->length + 1 );
}
curr = str->buffer + (str->length - str->remaining);
from = ext->buffer;
@@ -176,7 +176,7 @@ syck_yaml2byte_handler(p, n)
{
bytestring_append(val,YAMLBYTE_NULLCHAR,NULL,NULL);
}
- else
+ else
{
assert("oops");
}
diff --git a/ext/syck/yamlbyte.h b/ext/syck/yamlbyte.h
index 0fe4e7b576..16ca3d70de 100644
--- a/ext/syck/yamlbyte.h
+++ b/ext/syck/yamlbyte.h
@@ -82,12 +82,13 @@ typedef enum {
YAMLBYTE_E_WRITE = 'W', /* output stream write error */
YAMLBYTE_E_OTHER = '?', /* some other error condition */
YAMLBYTE_E_PARSE = 'P', /* parse error, check bytecodes */
+ YAMLBYTE_MAX
} yamlbyte_result_t;
-
-typedef const yamlbyte_char_t *yamlbyte_buff_t;
-/*
- * The "Instruction" API
+typedef const yamlbyte_char_t *yamlbyte_buff_t;
+
+/*
+ * The "Instruction" API
*/
typedef struct yaml_instruction {
@@ -96,7 +97,7 @@ typedef struct yaml_instruction {
yamlbyte_buff_t finish; /* open range, *finish is _not_ part */
} *yamlbyte_inst_t;
-/* producer pushes the instruction with one bytecode event to the
+/* producer pushes the instruction with one bytecode event to the
* consumer; if the consumer's result is not YAMLBYTE_OK, then
* the producer should stop */
typedef
@@ -110,14 +111,14 @@ typedef
* case the instruction (and is buffer) are owned by the producer and
* will remain valid till the pull function is called once again;
* if the instruction is NULL, then there are no more results; and
- * it is important to call the pull function till it returns NULL so
+ * it is important to call the pull function till it returns NULL so
* that the producer can clean up its memory allocations */
-typedef
+typedef
yamlbyte_result_t
(*yamlbyte_pull_t)(
yamlbyte_producer_t self,
yamlbyte_inst_t *inst /* to be filled in by the producer */
- );
+ );
/*
* Buffer based API
@@ -139,12 +140,12 @@ typedef
* is set to NULL, then there are no more results; it is important
* to call the pull function till it returns NULL so that the
* producer can clean up its memory allocations */
-typedef
+typedef
yamlbyte_result_t
(*yamlbyte_pullbuff_t)(
yamlbyte_producer_t self,
yamlbyte_buff_t *buff /* to be filled in by the producer */
- );
+ );
/* convert a pull interface to a push interface; the reverse process
* requires threads and thus is language dependent */
diff --git a/ext/syslog/.cvsignore b/ext/syslog/.cvsignore
deleted file mode 100644
index 814345ece8..0000000000
--- a/ext/syslog/.cvsignore
+++ /dev/null
@@ -1,4 +0,0 @@
-Makefile
-mkmf.log
-*.def
-extconf.h
diff --git a/ext/syslog/syslog.c b/ext/syslog/syslog.c
index 1bd82bf7d0..f7d622ef34 100644
--- a/ext/syslog/syslog.c
+++ b/ext/syslog/syslog.c
@@ -1,7 +1,8 @@
-/*
+/*
* UNIX Syslog extension for Ruby
* Amos Gouaux, University of Texas at Dallas
* <amos+ruby@utdallas.edu>
+ * Documented by mathew <meta@pobox.com>
*
* $RoughId: syslog.c,v 1.21 2002/02/25 12:21:17 knu Exp $
* $Id$
@@ -36,7 +37,9 @@ static void syslog_write(int pri, int argc, VALUE *argv)
syslog(pri, "%s", RSTRING_PTR(str));
}
-/* Syslog module methods */
+/* Closes the syslog facility.
+ * Raises a runtime exception if it is not open.
+ */
static VALUE mSyslog_close(VALUE self)
{
rb_secure(4);
@@ -54,6 +57,84 @@ static VALUE mSyslog_close(VALUE self)
return Qnil;
}
+/* call-seq:
+ * open(ident, options, facility) => syslog
+ *
+ * :yields: syslog
+ *
+ * Open the syslog facility.
+ * Raises a runtime exception if it is already open.
+ *
+ * Can be called with or without a code block. If called with a block, the
+ * Syslog object created is passed to the block.
+ *
+ * If the syslog is already open, raises a RuntimeError.
+ *
+ * +ident+ is a String which identifies the calling program.
+ *
+ * +options+ is the logical OR of any of the following:
+ *
+ * LOG_CONS:: If there is an error while sending to the system logger,
+ * write directly to the console instead.
+ *
+ * LOG_NDELAY:: Open the connection now, rather than waiting for the first
+ * message to be written.
+ *
+ * LOG_NOWAIT:: Don't wait for any child processes created while logging
+ * messages. (Has no effect on Linux.)
+ *
+ * LOG_ODELAY:: Opposite of LOG_NDELAY; wait until a message is sent before
+ * opening the connection. (This is the default.)
+ *
+ * LOG_PERROR:: Print the message to stderr as well as sending it to syslog.
+ * (Not in POSIX.1-2001.)
+ *
+ * LOG_PID:: Include the current process ID with each message.
+ *
+ * +facility+ describes the type of program opening the syslog, and is
+ * the logical OR of any of the following which are defined for the host OS:
+ *
+ * LOG_AUTH:: Security or authorization. Deprecated, use LOG_AUTHPRIV
+ * instead.
+ *
+ * LOG_AUTHPRIV:: Security or authorization messages which should be kept
+ * private.
+ *
+ * LOG_CONSOLE:: System console message.
+ *
+ * LOG_CRON:: System task scheduler (cron or at).
+ *
+ * LOG_DAEMON:: A system daemon which has no facility value of its own.
+ *
+ * LOG_FTP:: An FTP server.
+ *
+ * LOG_KERN:: A kernel message (not sendable by user processes, so not of
+ * much use to Ruby, but listed here for completeness).
+ *
+ * LOG_LRP:: Line printer subsystem.
+ *
+ * LOG_MAIL:: Mail delivery or transport subsystem.
+ *
+ * LOG_NEWS:: Usenet news system.
+ *
+ * LOG_NTP:: Network Time Protocol server.
+ *
+ * LOG_SECURITY:: General security message.
+ *
+ * LOG_SYSLOG:: Messages generated internally by syslog.
+ *
+ * LOG_USER:: Generic user-level message.
+ *
+ * LOG_UUCP:: UUCP subsystem.
+ *
+ * LOG_LOCAL0 to LOG_LOCAL7:: Locally-defined facilities.
+ *
+ * Example:
+ *
+ * Syslog.open("webrick", Syslog::LOG_PID,
+ * Syslog::LOG_DAEMON | Syslog::LOG_LOCAL3)
+ *
+ */
static VALUE mSyslog_open(int argc, VALUE *argv, VALUE self)
{
VALUE ident, opt, fac;
@@ -65,7 +146,7 @@ static VALUE mSyslog_open(int argc, VALUE *argv, VALUE self)
rb_scan_args(argc, argv, "03", &ident, &opt, &fac);
if (NIL_P(ident)) {
- ident = rb_gv_get("$0");
+ ident = rb_gv_get("$0");
}
SafeStringValue(ident);
syslog_ident = strdup(RSTRING_PTR(ident));
@@ -96,6 +177,15 @@ static VALUE mSyslog_open(int argc, VALUE *argv, VALUE self)
return self;
}
+/* call-seq:
+ * reopen(ident, options, facility) => syslog
+ *
+ * :yields: syslog
+ *
+ * Closes and then reopens the syslog.
+ *
+ * Arguments are the same as for open().
+ */
static VALUE mSyslog_reopen(int argc, VALUE *argv, VALUE self)
{
mSyslog_close(self);
@@ -103,31 +193,60 @@ static VALUE mSyslog_reopen(int argc, VALUE *argv, VALUE self)
return mSyslog_open(argc, argv, self);
}
+/* call-seq:
+ * opened?
+ *
+ * Returns true if the syslog is open.
+ */
static VALUE mSyslog_isopen(VALUE self)
{
return syslog_opened ? Qtrue : Qfalse;
}
+/* Returns the identity string used in the last call to open()
+ */
static VALUE mSyslog_ident(VALUE self)
{
return syslog_opened ? rb_str_new2(syslog_ident) : Qnil;
}
+/* Returns the options bitmask used in the last call to open()
+ */
static VALUE mSyslog_options(VALUE self)
{
return syslog_opened ? INT2NUM(syslog_options) : Qnil;
}
+/* Returns the facility number used in the last call to open()
+ */
static VALUE mSyslog_facility(VALUE self)
{
return syslog_opened ? INT2NUM(syslog_facility) : Qnil;
}
+/* Returns the log priority mask in effect. The mask is not reset by opening
+ * or closing syslog.
+ */
static VALUE mSyslog_get_mask(VALUE self)
{
return syslog_opened ? INT2NUM(syslog_mask) : Qnil;
}
+/* call-seq:
+ * mask=(priority_mask)
+ *
+ * Sets the log priority mask. A method LOG_UPTO is defined to make it easier
+ * to set mask values. Example:
+ *
+ * Syslog.mask = Syslog::LOG_UPTO(Syslog::LOG_ERR)
+ *
+ * Alternatively, specific priorities can be selected and added together using
+ * binary OR. Example:
+ *
+ * Syslog.mask = Syslog::LOG_MASK(Syslog::LOG_ERR) | Syslog::LOG_MASK(Syslog::LOG_CRIT)
+ *
+ * The priority mask persists through calls to open() and close().
+ */
static VALUE mSyslog_set_mask(VALUE self, VALUE mask)
{
rb_secure(4);
@@ -140,6 +259,36 @@ static VALUE mSyslog_set_mask(VALUE self, VALUE mask)
return mask;
}
+/* call-seq:
+ * log(priority, format_string, *format_args)
+ *
+ * Log a message with the specified priority. Example:
+ *
+ * Syslog.log(Syslog::LOG_CRIT, "Out of disk space")
+ * Syslog.log(Syslog::LOG_CRIT, "User %s logged in", ENV['USER'])
+ *
+ * The priority levels, in descending order, are:
+ *
+ * LOG_EMERG:: System is unusable
+ * LOG_ALERT:: Action needs to be taken immediately
+ * LOG_CRIT:: A critical condition has occurred
+ * LOG_ERR:: An error occurred
+ * LOG_WARNING:: Warning of a possible problem
+ * LOG_NOTICE:: A normal but significant condition occurred
+ * LOG_INFO:: Informational message
+ * LOG_DEBUG:: Debugging information
+ *
+ * Each priority level also has a shortcut method that logs with it's named priority.
+ * As an example, the two following statements would produce the same result:
+ *
+ * Syslog.log(Syslog::LOG_ALERT, "Out of memory")
+ * Syslog.alert("Out of memory")
+ *
+ * Format strings are as for printf/sprintf, except that in addition %m is
+ * replaced with the error message string that would be returned by
+ * strerror(errno).
+ *
+ */
static VALUE mSyslog_log(int argc, VALUE *argv, VALUE self)
{
VALUE pri;
@@ -160,6 +309,8 @@ static VALUE mSyslog_log(int argc, VALUE *argv, VALUE self)
return self;
}
+/* Returns an inspect() string summarizing the object state.
+ */
static VALUE mSyslog_inspect(VALUE self)
{
char buf[1024];
@@ -180,6 +331,8 @@ static VALUE mSyslog_inspect(VALUE self)
return rb_str_new2(buf);
}
+/* Returns self, for backward compatibility.
+ */
static VALUE mSyslog_instance(VALUE self)
{
return self;
@@ -188,7 +341,7 @@ static VALUE mSyslog_instance(VALUE self)
#define define_syslog_shortcut_method(pri, name) \
static VALUE mSyslog_##name(int argc, VALUE *argv, VALUE self) \
{ \
- syslog_write(pri, argc, argv); \
+ syslog_write((pri), argc, argv); \
\
return self; \
}
@@ -218,21 +371,50 @@ define_syslog_shortcut_method(LOG_INFO, info)
define_syslog_shortcut_method(LOG_DEBUG, debug)
#endif
+/* call-seq:
+ * LOG_MASK(priority_level) => priority_mask
+ *
+ * Generates a mask bit for a priority level. See #mask=
+ */
static VALUE mSyslogConstants_LOG_MASK(VALUE klass, VALUE pri)
{
return INT2FIX(LOG_MASK(NUM2INT(pri)));
}
+/* call-seq:
+ * LOG_UPTO(priority_level) => priority_mask
+ *
+ * Generates a mask value for priority levels at or below the level specified.
+ * See #mask=
+ */
static VALUE mSyslogConstants_LOG_UPTO(VALUE klass, VALUE pri)
{
return INT2FIX(LOG_UPTO(NUM2INT(pri)));
}
-/* Init for package syslog */
+/* The syslog package provides a Ruby interface to the POSIX system logging
+ * facility.
+ *
+ * Syslog messages are typically passed to a central logging daemon.
+ * The daemon may filter them; route them into different files (usually
+ * found under /var/log); place them in SQL databases; forward
+ * them to centralized logging servers via TCP or UDP; or even alert the
+ * system administrator via email, pager or text message.
+ *
+ * Unlike application-level logging via Logger or Log4r, syslog is designed
+ * to allow secure tamper-proof logging.
+ *
+ * The syslog protocol is standardized in RFC 5424.
+ */
void Init_syslog()
{
mSyslog = rb_define_module("Syslog");
-
+
+ /* Document-module: Syslog::Constants
+ *
+ * Module holding Syslog constants. See Syslog::log and Syslog::open for
+ * constant descriptions.
+ */
mSyslogConstants = rb_define_module_under(mSyslog, "Constants");
rb_include_module(mSyslog, mSyslogConstants);
diff --git a/ext/syslog/syslog.txt b/ext/syslog/syslog.txt
index 35bd4cb057..1507a87924 100644
--- a/ext/syslog/syslog.txt
+++ b/ext/syslog/syslog.txt
@@ -75,7 +75,7 @@ Module Methods:
Example:
Syslog.crit("the sky is falling in %d seconds!", 5)
-
+
mask
mask=(mask)
@@ -86,7 +86,7 @@ Module Methods:
Example:
Syslog.mask = Syslog::LOG_UPTO(Syslog::LOG_ERR)
- close
+ close
Closes syslog.
diff --git a/ext/tk/.cvsignore b/ext/tk/.cvsignore
deleted file mode 100644
index 90c83ed9b1..0000000000
--- a/ext/tk/.cvsignore
+++ /dev/null
@@ -1,3 +0,0 @@
-Makefile
-*.log
-*.def
diff --git a/ext/tk/ChangeLog.tkextlib b/ext/tk/ChangeLog.tkextlib
index fc919a5eb5..b4775c55fc 100644
--- a/ext/tk/ChangeLog.tkextlib
+++ b/ext/tk/ChangeLog.tkextlib
@@ -1,12 +1,26 @@
+2009-07-12 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
+
+ * ext/tk/lib/tkextlib/*: update release.
+ Tcllib 1.8/Tklib 0.4.1 ==> Tcllib 1.11.1/Tklib 0.5
+ BWidgets 1.7 ==> BWidgets 1.8
+ TkTable 2.9 ==> TkTable 2.10
+ TkTreeCtrl 2005-12-02 ==> TkTreeCtrl 2.2.9
+ Tile 0.8.0/8.5.1 ==> Tile 0.8.3/8.6b1
+ IncrTcl 2005-02-14 ==> IncrTcl 2008-12-15
+ TclX 2005-02-07 ==> TclX 2008-12-15
+ Trofs 0.4.3 ==> Trofs 0.4.4
+
+--------------< ... some bug fixes ... >------------------
+
Tue Nov 25 03:37:42 2008 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
- * ext/tk/lib/tkextlib/blt/tabset.rb,
- ext/tk/lib/tkextlib/blt/tabnotebook.rb:
+ * ext/tk/lib/tkextlib/blt/tabset.rb,
+ ext/tk/lib/tkextlib/blt/tabnotebook.rb:
fix many bugs. Now, those work properly.
Sat Nov 22 10:31:25 2008 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
- * ext/tk/lib/tkextlib/blt.rb, ext/tk/lib/tkextlib/blt/vector.rb:
+ * ext/tk/lib/tkextlib/blt.rb, ext/tk/lib/tkextlib/blt/vector.rb:
fix NameError bug.
2008-05-12 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
@@ -25,12 +39,12 @@ Sat Nov 22 10:31:25 2008 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
2007-01-26 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
- * ext/tk/lib/tkextlib/iwidgets/checkbox.rb: wrong number of arguments
+ * ext/tk/lib/tkextlib/iwidgets/checkbox.rb: wrong number of arguments
[ruby-Bugs-7776].
* ext/tk/lib/tkextlib/iwidgets/radiobox.rb: ditto.
- * ext/tk/lib/tkextlib/blt/tile/checkbutton.rb: change primary name
+ * ext/tk/lib/tkextlib/blt/tile/checkbutton.rb: change primary name
of class [ruby-dev:30080].
* ext/tk/lib/tkextlib/blt/tile/radiobutton.rb: ditto.
@@ -39,16 +53,16 @@ Sat Nov 22 10:31:25 2008 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
* lib/tkextlib/tile/treeview.rb : minor bug fix.
- * lib/tkextlib/blt/table.rb: fix bugs which forbade use of
+ * lib/tkextlib/blt/table.rb: fix bugs which forbade use of
'::blt::table' command. Now, probably, it'll works properly.
2006-11-06 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
- * lib/tkextlib/version.rb: keep release date of tkextlib on
+ * lib/tkextlib/version.rb: keep release date of tkextlib on
"Tk::Tkextlib_RELEASE_DATE".
- * lib/tkextlib/tile/treeview.rb : support Tile 0.7.8.
- Now, you can handle tree items as objects.
+ * lib/tkextlib/tile/treeview.rb : support Tile 0.7.8.
+ Now, you can handle tree items as objects.
2006-10-04 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
@@ -98,7 +112,7 @@ Sat Nov 22 10:31:25 2008 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
2005-11-19 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
- * sample/tkextlib/treectrl/demo.rb: remove dependency on Ruby's
+ * sample/tkextlib/treectrl/demo.rb: remove dependency on Ruby's
version (1.8 or 1.9).
2005-10-23 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
@@ -361,7 +375,7 @@ Sat Nov 22 10:31:25 2008 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
* lib/tkextlib/iwidgets/scrolledtext.rb: ditto.
* lib/tkextlib/iwidgets/scrolledcanvas.rb: bug fix on
- TkCanvas#delete when given non-TkcItem arguments.
+ TkCanvas#delete when given non-TkcItem arguments.
2005-05-10 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
@@ -562,7 +576,7 @@ Sat Nov 22 10:31:25 2008 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
* lib/tkextlib/blt/component.rb: bug fix on treatment of
component objects.
- * sample/tkextlib/blt/graph6.rb: a new sample script.
+ * sample/tkextlib/blt/graph6.rb: a new sample script.
2005-03-31 ocean <ocean@ruby-lang.org>
@@ -578,7 +592,7 @@ Sat Nov 22 10:31:25 2008 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
* sample/tkextlib/iwidgets/sample/hierarchy.rb: show basename
only [ruby-dev:25970]
- * sample/tkextlib/treectrl/demo.rb: add check for existence of
+ * sample/tkextlib/treectrl/demo.rb: add check for existence of
'backgroundimage' option.
* sample/tkextlib/treectrl/bitmaps.rb: ditto.
@@ -612,7 +626,7 @@ Sat Nov 22 10:31:25 2008 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
2005-03-29 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
* lib/tkextlib/blt/component.rb: cannot create elements except
- default type of element.
+ default type of element.
* lib/tkextlib/blt/barchart.rb: ditto.
@@ -647,7 +661,7 @@ Sat Nov 22 10:31:25 2008 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
* lib/tkextlib/blt/component.rb: proper call on xaxis_* and so on.
* lib/tkextlib/blt/htext.rb: add TkVariable object to access
- special Tcl variables.
+ special Tcl variables.
* lib/tkextlib/treectrl/tktreectrl.rb: typo fix.
@@ -909,8 +923,8 @@ Sat Nov 22 10:31:25 2008 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
* use Tk::ValidateConfigure.__def_validcmd() method
(new function to define validatecommand methods easier)
- * tcllib.rb : avoid the loading trouble that almost all part of
- the extension is not available when some libraries are invalid.
+ * tcllib.rb : avoid the loading trouble that almost all part of
+ the extension is not available when some libraries are invalid.
2004-07-09 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
@@ -928,7 +942,7 @@ Sat Nov 22 10:31:25 2008 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
* add ICONS extension demo
- * many bug fix
+ * many bug fix
2004-07-01 Hidetoshi NAGAI <nagai@ai.kyutech.ac.jp>
diff --git a/ext/tk/MANUAL_tcltklib.eng b/ext/tk/MANUAL_tcltklib.eng
index 6fa775b7de..8ba202c06f 100644
--- a/ext/tk/MANUAL_tcltklib.eng
+++ b/ext/tk/MANUAL_tcltklib.eng
@@ -3,16 +3,16 @@
This document discribes about the 'tcltklib' library. Although there
is the 'tcltk' library (tcltk.rb) under this directory, no description
-in this document (because it is not maintained recently).
+in this document (because it is not maintained recently).
==============================================================
module TclTklib
- : Defines methods to do operations which are independed on
+ : Defines methods to do operations which are independed on
: Tcl/Tk interpreters
module TclTkLib::EventFlag
- : Defines flags to define taget events on 'do_one_event' methos.
- : When to give, please use bit-operator (e.g. WINDOW | DONT_WAIT).
+ : Defines flags to define taget events on 'do_one_event' methos.
+ : When to give, please use bit-operator (e.g. WINDOW | DONT_WAIT).
[constants]
NONE
@@ -30,29 +30,29 @@ module TclTklib
IDLE
: 'idle' operation (e.g. 're-draw'; the operations when the
- : other kinds of events doesn't occur) is processed.
+ : other kinds of events doesn't occur) is processed.
ALL
- : All kinds of events are processed.
- : Same to 'WINDOW | FILE | TIMER | IDLE'.
+ : All kinds of events are processed.
+ : Same to 'WINDOW | FILE | TIMER | IDLE'.
DONT_WAIT
- : Without this flag, 'do_one_event' waits the occurence of
- : a target event. With this flag, doesn't wait and returns
- : false if there is no target event for processing.
+ : Without this flag, 'do_one_event' waits the occurence of
+ : a target event. With this flag, doesn't wait and returns
+ : false if there is no target event for processing.
module TclTkLib::VarAccessFlag
- : Defines flags to give '_get_variable' and so on. When to give,
- : please use bit-operator (e.g. GLOBAL_ONLY | LEAVE_ERR_MSG ).
+ : Defines flags to give '_get_variable' and so on. When to give,
+ : please use bit-operator (e.g. GLOBAL_ONLY | LEAVE_ERR_MSG ).
[constants]
NONE
- : Is 0. It means "set no flag".
+ : Is 0. It means "set no flag".
GLOBAL_ONLY
: (site Tcl/Tk's man page)
- : Under normal circumstances the procedures look up
- : variables as follows: If a procedure call is active
+ : Under normal circumstances the procedures look up
+ : variables as follows: If a procedure call is active
: in interp, a variable is looked up at the current
: level of procedure call. Otherwise, a variable is
: looked up first in the current namespace, then in
@@ -63,9 +63,9 @@ module TclTklib
: given, GLOBAL_ONLY is ignored.
:
: *** ATTENTION ***
- : Tcl7.6 doesn't have namespaces. So NAMESPACE_ONLY
+ : Tcl7.6 doesn't have namespaces. So NAMESPACE_ONLY
: is defined as 0, and then GLOBAL_ONLY is available
- : even if flag is (GLOBAL_ONLY | NAMESPACE_ONLY).
+ : even if flag is (GLOBAL_ONLY | NAMESPACE_ONLY).
NAMESPACE_ONLY
: (site Tcl/Tk's man page)
@@ -80,16 +80,16 @@ module TclTklib
: active.
:
: *** ATTENTION ***
- : Tcl7.6 doesn't have namespaces. So NAMESPACE_ONLY
+ : Tcl7.6 doesn't have namespaces. So NAMESPACE_ONLY
: is defined as 0.
LEAVE_ERR_MSG
: (site Tcl/Tk's man page)
- : If an error is returned and this bit is set in flags,
+ : If an error is returned and this bit is set in flags,
: then an error message will be left in the interpreter's
: result, where it can be retrieved with Tcl_GetObjResult
- : or Tcl_GetStringResult. If this flag bit isn't set then
- : no error message is left and the interpreter's result
+ : or Tcl_GetStringResult. If this flag bit isn't set then
+ : no error message is left and the interpreter's result
: will not be modified.
APPEND_VALUE
@@ -104,26 +104,26 @@ module TclTklib
: valid Tcl list element before setting (or appending
: to) the variable. A separator space is appended before
: the new list element unless the list element is going
- : to be the first element in a list or sublist (i.e. the
- : variable's current value is empty, or contains the
+ : to be the first element in a list or sublist (i.e. the
+ : variable's current value is empty, or contains the
: single character ``{'', or ends in `` }'').
PARSE_VARNAME
: (site Tcl/Tk's man page)
- : If this bit is set when calling _set_variable and so
+ : If this bit is set when calling _set_variable and so
: on, var_name argument may contain both an array and an
- : element name: if the name contains an open parenthesis
- : and ends with a close parenthesis, then the value
- : between the parentheses is treated as an element name
+ : element name: if the name contains an open parenthesis
+ : and ends with a close parenthesis, then the value
+ : between the parentheses is treated as an element name
: (which can have any string value) and the characters
- : before the first open parenthesis are treated as the
+ : before the first open parenthesis are treated as the
: name of an array variable. If the flag PARSE_VARNAME
- : is given, index_name argument should be 'nil' since the
+ : is given, index_name argument should be 'nil' since the
: array and element names are taken from var_name.
:
: *** ATTENTION ***
- : Tcl7.6 doesn't have this flag. So PARSE_VARNAME is
- : defined as 0.
+ : Tcl7.6 doesn't have this flag. So PARSE_VARNAME is
+ : defined as 0.
module TclTkLib::RELEASE_TYPE
: Defines release type number of Tcl/Tk
@@ -139,106 +139,105 @@ module TclTklib
[module methods]
get_version()
- : return an array of major, minor, release-type number,
- : number, release-type name, and patchlevel of current
- : Tcl/Tk library.
+ : return an array of major, minor, release-type number,
+ : and patchlevel of current Tcl/Tk library.
mainloop(check_root = true)
- : Starts the eventloop. If 'check_root' is true, this method
- : doesn't return when a root widget exists.
+ : Starts the eventloop. If 'check_root' is true, this method
+ : doesn't return when a root widget exists.
: If 'check_root' is false, doen't return by the other
: reasons than exceptions.
mainloop_thread?
- : Returns whether the current thread executes the eventloop.
- : If true, the eventloop is working on the current thread.
+ : Returns whether the current thread executes the eventloop.
+ : If true, the eventloop is working on the current thread.
: If no eventloop is working, this method returns nil.
: And if the other thread executes the eventloop, returns false.
- :
+ :
: *** ATTENTION ***
- : When this methods returns false, it is dangerous to call a Tk
+ : When this methods returns false, it is dangerous to call a Tk
: interpreter directly.
mainloop_watchdog(check_root = true)
- : On the normal eventloop, some kinds of callback operations
+ : On the normal eventloop, some kinds of callback operations
: cause deadlock. To avoid some of such deadlocks, this
: method starts an eventloop and a watchdog-thread.
- do_one_event(flag = TclTkLib::EventFlag::ALL |
+ do_one_event(flag = TclTkLib::EventFlag::ALL |
TclTkLib::EventFlag::DONT_WAIT)
- : Do one event for processing. When processed an event,
- : returns true.
+ : Do one event for processing. When processed an event,
+ : returns true.
: If NOT set DONT_WAIT flag, this method waits occurrence of
- : a target event.
- : If set DONT_WAIT flag and no event for processing, returns
- : false immediately.
- : If $SAFE >= 4, or $SAFE >= 1 and the flag is tainted,
+ : a target event.
+ : If set DONT_WAIT flag and no event for processing, returns
+ : false immediately.
+ : If $SAFE >= 4, or $SAFE >= 1 and the flag is tainted,
: force to set DONT_WAIT flag.
set_eventloop_tick(timer_tick)
: Define the interval of thread-switching with an integer
- : value of mili-seconds.
- : Default timer_tick is 0. It means that thread-switching
- : is based on the count of processed events.
+ : value of mili-seconds.
+ : Default timer_tick is 0. It means that thread-switching
+ : is based on the count of processed events.
: ( see 'set_eventloop_weight' method )
- : However, if the eventloop thread is the only thread,
- : timer_tick cannt be set to 0. If 0, then is set to 100 ms
- : automatically (see NO_THREAD_INTERRUPT_TIME on tcltklib.c).
- : On $SAFE >= 4, cannot call this method.
+ : However, if the eventloop thread is the only thread,
+ : timer_tick cannt be set to 0. If 0, then is set to 100 ms
+ : automatically (see NO_THREAD_INTERRUPT_TIME on tcltklib.c).
+ : On $SAFE >= 4, cannot call this method.
get_eventloop_tick
: Get current value of 'timer_tick'
set_no_event_wait(no_event_wait)
- : Define sleeping time of the eventloop when two or more
- : thread are running and there is no event for processing.
+ : Define sleeping time of the eventloop when two or more
+ : thread are running and there is no event for processing.
: Default value is 20 (ms).
- : If the eventloop thread is the only thread, this value is
- : invalid.
- : On $SAFE >= 4, cannot call this method.
+ : If the eventloop thread is the only thread, this value is
+ : invalid.
+ : On $SAFE >= 4, cannot call this method.
get_no_event_wait
: Get current value of 'no_event_wait'.
set_eventloop_weight(loop_max, no_event_tick)
- : Define the weight parameters for the eventloop thread.
- : That is invalid when the eventloop is the only thread.
- : 'loop_max' is the max events for thread-switching.
- : 'no_event_tick' is the increment value of the event count
+ : Define the weight parameters for the eventloop thread.
+ : That is invalid when the eventloop is the only thread.
+ : 'loop_max' is the max events for thread-switching.
+ : 'no_event_tick' is the increment value of the event count
: when no event for processing (And then, the eventloop thead
- : sleeps 'no_event_wait' mili-seconds).
- : 'loop_max == 800' and 'no_event_tick == 10' are defalut.
- : On $SAFE >= 4, cannot call this method.
+ : sleeps 'no_event_wait' mili-seconds).
+ : 'loop_max == 800' and 'no_event_tick == 10' are defalut.
+ : On $SAFE >= 4, cannot call this method.
get_eventloop_weight
: Get current values of 'loop_max' and 'no_event_tick'.
mainloop_abort_on_exception=(bool)
- : Define whether the eventloop stops on exception or not.
- : If true (default value), stops on exception.
+ : Define whether the eventloop stops on exception or not.
+ : If true (default value), stops on exception.
: If false, show a warinig message but ignore the exception.
- : If nil, no warning message and ignore the excepsion.
+ : If nil, no warning message and ignore the excepsion.
: This parameter is sometimes useful when multiple Tk
- : interpreters are working. Because the only one eventloop
+ : interpreters are working. Because the only one eventloop
: admins all Tk interpreters, sometimes exception on a
: interpreter kills the eventloop thread. Even if such
- : situation, when abort_on_exception == false or nil,
- : the eventloop ignores the exception and continue to working.
- : On $SAFE >= 4, cannot call this method.
+ : situation, when abort_on_exception == false or nil,
+ : the eventloop ignores the exception and continue to working.
+ : On $SAFE >= 4, cannot call this method.
mainloop_abort_on_exception
- : Get current status of that.
+ : Get current status of that.
num_of_mainwindows
- : Returns the number of main-windows (root-widget).
- : Because there is only one main-window for one Tk interpreter,
- : the value is same to the number of interpreters which has
+ : Returns the number of main-windows (root-widget).
+ : Because there is only one main-window for one Tk interpreter,
+ : the value is same to the number of interpreters which has
: available Tk functions.
_merge_tklist(str, str, ... )
- : Get a Tcl's list string from arguments with a Tcl/Tk's
- : library function. Each arguemnt is converted to a valid
- : Tcl list element.
+ : Get a Tcl's list string from arguments with a Tcl/Tk's
+ : library function. Each arguemnt is converted to a valid
+ : Tcl list element.
_conv_listelement(str)
: Convert the argument to a valid Tcl list element with
@@ -253,7 +252,7 @@ module TclTklib
_subst_Tcl_backslash(str)
: Substitute backslash sequence with Tcl's rule (include \uhhhh;
: give a sixteen-bit hexadecimal value for Unicode character).
- : _subst_Tcl_backslash method parses all backslash sequence.
+ : _subst_Tcl_backslash method parses all backslash sequence.
: _subst_UTF_backslash method parses \uhhhh only.
encoding_system
@@ -269,90 +268,95 @@ module TclTklib
class TclTkIp
[class methods]
new(ip_name=nil, options='')
- : Generate an instance of TclTkIp class.
+ : Generate an instance of TclTkIp class.
: If 'ip_name' argument is given as a string, it is the name
: of the Tk interpreter which is shown by 'winfo interps'
- : command.
- : 'options' argument accepts a string which is the command
- : line options of wish; such as '-geometry' or '-use'.
- : The information is used to generate the root widget of the
- : interpreter.
+ : command.
+ : 'options' argument accepts a string which is the command
+ : line options of wish; such as '-geometry' or '-use'.
+ : The information is used to generate the root widget of the
+ : interpreter.
: ( e.g. TclTkIp.new('FOO', '-geometry 500x200 -use 0x2200009') )
: If is given nil or falsr for the 'option' argument, generates
- : the Tcl interpreter without Tk library. Then the interpreter
+ : the Tcl interpreter without Tk library. Then the interpreter
: doesn't need GUI environment. Therefore, even if a window
: system doesn't exist or cannot be used, Ruby can control the
- : Tcl interpreter and the extention libraries loaded on the
- : interpreter.
+ : Tcl interpreter and the extention libraries loaded on the
+ : interpreter.
[instance methods]
create_slave(name, safe=false)
- : Create a slave interpreter.
+ : Create a slave interpreter.
: The parent of the interpreter is the receiver of this method.
- : The name of the slave interpreter is given by 'name' argument.
+ : The name of the slave interpreter is given by 'name' argument.
: The 'safe' argument decides whether the slave interpreter is
: created as a safe interpreter or not. If true, create a safe
: interpreter. Default is false. However, if the parent
: interpreter is a safe interpreter, the created interpreter is
- : a safe interpreter (ignore 'safe' argument value).
- : If $SAFE >= 4, can create a safe interpreter only.
+ : a safe interpreter (ignore 'safe' argument value).
+ : If $SAFE >= 4, can create a safe interpreter only.
make_safe
: Make the interpreter to the safe interpreter, and returns
: self. If fail, raise RuntimeError.
safe?
- : Check whether the interpreter is the safe interpreter.
- : If is the safe interpreter, returns true.
+ : Check whether the interpreter is the safe interpreter.
+ : If is the safe interpreter, returns true.
allow_ruby_exit?
- : Return the mode whether 'exit' function of ruby or 'exit'
- : command of Tcl/Tk can quit the ruby process or not on the
- : interpreter. If false, such a command quit the interpreter
+ : Return the mode whether 'exit' function of ruby or 'exit'
+ : command of Tcl/Tk can quit the ruby process or not on the
+ : interpreter. If false, such a command quit the interpreter
: only.
- : The default value for a master interpreter is true, and
+ : The default value for a master interpreter is true, and
: for a slave interpreter is false.
allow_ruby_exit=(mode)
: Change the mode of 'allow_ruby_exit?'.
- : If $SAFE >= 4 or the interpreter is a "safe" interpreter,
- : this is not permitted (raise an exception).
+ : If $SAFE >= 4 or the interpreter is a "safe" interpreter,
+ : this is not permitted (raise an exception).
delete
- : Delete the interpreter.
+ : Delete the interpreter.
: The deleted interpreter doesn't accept command and then
: raise an exception.
deleted?
: Check whether the interpreter is already deleted.
- : If deleted, returns true.
+ : If deleted, returns true.
has_mainwindow?
: Check whether the interpreter has a MainWindow (root widget).
- : If has, returns true. If doesn't, returns false.
- : If IP is already deleted, returns nil.
+ : If has, returns true. If doesn't, returns false.
+ : If IP is already deleted, returns nil.
restart
- : Restart Tk part of the interpreter.
+ : Restart Tk part of the interpreter.
: Use this when you need Tk functions after destroying the
- : root widget.
- : On $SAFE >= 4, cannot call this method.
+ : root widget.
+ : On $SAFE >= 4, cannot call this method.
_eval(str)
_invoke(*args)
- : Estimates the arguments as a command on the Tk interpreter.
+ : Estimates the arguments as a command on the Tk interpreter.
: The argument of _eval is a script of Tcl/Tk.
: Each argument of _invoke is a token of one command line of
- : Tcl/Tk.
+ : Tcl/Tk.
: Because the operation of _invoke doesn't through the
: command line parser of Tk interpreter, the cost of
: estimation is smaller than _eval. However, auto_load
- : mechanism of the Tk interpreter doesn't work on _invoke.
+ : mechanism of the Tk interpreter doesn't work on _invoke.
: So _invoke can call only the command which already
- : registered on the interpreter by 'load' command and so on.
- : On _eval command, auto_load mechanism words. So if succeed
+ : registered on the interpreter by 'load' command and so on.
+ : On _eval command, auto_load mechanism words. So if succeed
: to _eval and regist the command once, after that, the
- : command can be called by _invoke.
+ : command can be called by _invoke.
+
+ _cancel_eval(str)
+ _cancel_eval_unwind(str)
+ : (Tcl/Tk8.6 or later)
+ : Call Tcl_CancelEval() function, and cancel evaluation.
_toUTF8(str, encoding=nil)
_fromUTF8(str, encoding=nil)
@@ -361,46 +365,46 @@ class TclTkIp
_thread_vwait(var_name)
_thread_tkwait(mode, target)
- : 'vwait' or 'tkwait' with thread support.
- : The difference from normal 'vwait' or 'tkwait' command is
+ : 'vwait' or 'tkwait' with thread support.
+ : The difference from normal 'vwait' or 'tkwait' command is
: doing independent wait from the vwait stack when they are
: called on the other thread than the eventloop thread.
: In the case of Tcl/Tk's vwait / tkwait, if 2nd vwait /
- : tkwait is called on waiting for 1st vwait / tkwait,
+ : tkwait is called on waiting for 1st vwait / tkwait,
: returns the order of [2nd]->[1st] regardless of the order
- : of when the wait condition was fulfilled.
+ : of when the wait condition was fulfilled.
: If _thread_vwait / _thread_tkwait is called on the
: eventloop thread, there is no difference from vwait /
: tkwait. But if called on the other thread than the
- : eventloop, stops the thread. And when the wait condition
+ : eventloop, stops the thread. And when the wait condition
: is fulfilled, the thread restarts. The meaning of
- : "independent from the vwait stack" is that the timing of
- : restarting is independent from the waiting status of the
- : other threads. That is, even if the eventloop thread is
- : waiting by vwait and is not fulfilled the condition,
+ : "independent from the vwait stack" is that the timing of
+ : restarting is independent from the waiting status of the
+ : other threads. That is, even if the eventloop thread is
+ : waiting by vwait and is not fulfilled the condition,
: _thread_vwait completes the waiting when its waiting
: condition is fulfilled and the thread which stopped by
- : _thread_vwait can continue the operation.
+ : _thread_vwait can continue the operation.
_return_value
- : Get the last result value on the interpreter.
+ : Get the last result value on the interpreter.
_get_variable(var_name, flag)
_get_variable2(var_name, index_name, flag)
- : Get the current value of a variable. If specified a
- : index_name (see also the PARSE_VARNAME flag), get the
- : value of the index_name element.
+ : Get the current value of a variable. If specified a
+ : index_name (see also the PARSE_VARNAME flag), get the
+ : value of the index_name element.
_set_variable(var_name, value, flag)
_set_variable2(var_name, index_name, value, flag)
- : Create or modify a variable. If specified a index_name
- : (see also the PARSE_VARNAME flag), create or modify the
- : index_name element.
+ : Create or modify a variable. If specified a index_name
+ : (see also the PARSE_VARNAME flag), create or modify the
+ : index_name element.
_unset_variable(var_name)
_unset_variable2(var_name, index_name)
- : Remove a variable. If specified a index_name (see also
- : the PARSE_VARNAME flag), remove the index_name element.
+ : Remove a variable. If specified a index_name (see also
+ : the PARSE_VARNAME flag), remove the index_name element.
_get_global_var(var_name)
_get_global_var2(var_name, index_name)
@@ -412,13 +416,13 @@ class TclTkIp
: (GLOBAL_ONLY | LEAVE_ERR_MSG).
_split_tklist(str)
- : Split the argument with Tcl/Tk's library function and
+ : Split the argument with Tcl/Tk's library function and
: get an array as a list of Tcl list elements.
_merge_tklist(str, str, ... )
- : Get a Tcl's list string from arguments with a Tcl/Tk's
- : library function. Each arguemnt is converted to a valid
- : Tcl list element.
+ : Get a Tcl's list string from arguments with a Tcl/Tk's
+ : library function. Each arguemnt is converted to a valid
+ : Tcl list element.
_conv_listelement(str)
: Convert the argument to a valid Tcl list element with
@@ -427,14 +431,14 @@ class TclTkIp
mainloop
mainloop_watchdog
: If on the slave interpreter, never start an eventloop and
- : returns nil.
+ : returns nil.
: With the exception that, same to the TclTkLib module method
- : with the same name.
+ : with the same name.
do_one_event
: With the exception that the argument is forced to set
: DONT_WAIT flag on the slave interpreter, same to
- : TclTkLib#do_one_event.
+ : TclTkLib#do_one_event.
set_eventloop_tick
get_eventloop_tick
@@ -446,24 +450,24 @@ class TclTkIp
mainloop_abort_on_exception=
: With the exception that it is ignored to set value on the
: slave interpreter, same to the TclTkLib module method with
- : the same name.
+ : the same name.
encoding_table
- : For Ruby m17n. Return encoding relation table between Ruby's
+ : For Ruby m17n. Return encoding relation table between Ruby's
: Encoding object and Tcl's encoding name.
class TkCallbackBreak < StandardError
class TkCallbackContinue < StandardError
- : They are exception classes to break or continue the Tk callback
- : operation.
- : If raise TkCallbackBreak on the callback procedure, Ruby returns
- : 'break' code to Tk interpreter (Then the Tk interpreter will
- : break the operation for the current event).
+ : They are exception classes to break or continue the Tk callback
+ : operation.
+ : If raise TkCallbackBreak on the callback procedure, Ruby returns
+ : 'break' code to Tk interpreter (Then the Tk interpreter will
+ : break the operation for the current event).
: If raise TkCallbackContinue, returns 'continue' code (Then the Tk
- : interpreter will break the operateion for the current bindtag and
+ : interpreter will break the operateion for the current bindtag and
: starts the operation for the next buindtag for the current event).
- : However, current tcltklib supports Ruby's 'break' and 'next' to
- : get the same effect. That is, those classes are obsolete. Those
- : exist for backward compatibility.
+ : However, current tcltklib supports Ruby's 'break' and 'next' to
+ : get the same effect. That is, those classes are obsolete. Those
+ : exist for backward compatibility.
(eof)
diff --git a/ext/tk/MANUAL_tcltklib.eucj b/ext/tk/MANUAL_tcltklib.eucj
index 7df42997b4..1ff5dddde4 100644
--- a/ext/tk/MANUAL_tcltklib.eucj
+++ b/ext/tk/MANUAL_tcltklib.eucj
@@ -41,7 +41,7 @@ tcl/tk ¥¤¥ó¥¿¥×¥ê¥¿¤Ç¤Ï, ¥¦¥£¥¸¥§¥Ã¥È¤Ë²¿¤«»Ø¼¨¤òÁ÷¤ë¤Ë¤Ï, ¥¦¥£¥¸¥§¥Ã
¤³¤Î¤è¤¦¤Ê¹Í¤¨¤Ë´ð¤Å¤­, tcltk ¥é¥¤¥Ö¥é¥ê¤Ç¤Ï, tcl/tk ¤Î¥³¥Þ¥ó¥É¤ä¥¦¥£
¥¸¥§¥Ã¥È¤ËÂбþ¤¹¤ë¥ª¥Ö¥¸¥§¥¯¥È¤òÀ¸À®¤·¤Þ¤¹. ¥ª¥Ö¥¸¥§¥¯¥È¤ËÂФ¹¤ë¥á¥½¥Ã
-¥É¸Æ¤Ó½Ð¤·¤Ï, e() ¥á¥½¥Ã¥É¤Ë¤è¤ê¼Â¹Ô¤µ¤ì¤Þ¤¹. Î㤨¤Ð, tcl/tk ¤Î info
+¥É¸Æ¤Ó½Ð¤·¤Ï, e() ¥á¥½¥Ã¥É¤Ë¤è¤ê¼Â¹Ô¤µ¤ì¤Þ¤¹. Î㤨¤Ð, tcl/tk ¤Î info
¥³¥Þ¥ó¥É¤ËÂбþ¤¹¤ë ruby ¤Î¥ª¥Ö¥¸¥§¥¯¥È¤¬ info ¤È¤¤¤¦Ì¾Á°¤Ç¤¢¤ë¤È¤¹¤ë¤È,
tcl/tk ¤Î
info commands
@@ -53,7 +53,7 @@ tcl/tk ¤Î
. configure -height 300 -width 300
¤È¤¤¤¦ tcl/tk ¤ÎÌ¿Îá¤Ï
root.e("configure -height 300 -width 300")
-¤Èµ­½Ò¤µ¤ì¤Þ¤¹. ¤³¤Î¤è¤¦¤Êµ­½Ò¤Ï, ¸«¤¿¤á¤Ë¤ÏÈþ¤·¤¯¤¢¤ê¤Þ¤»¤ó¤¬, ¤½¤·¤Æ,
+¤Èµ­½Ò¤µ¤ì¤Þ¤¹. ¤³¤Î¤è¤¦¤Êµ­½Ò¤Ï, ¸«¤¿¤á¤Ë¤ÏÈþ¤·¤¯¤¢¤ê¤Þ¤»¤ó¤¬, ¤½¤·¤Æ,
¥¹¥¯¥ê¥×¥È¤òÆÉ¤à¿Í¤Ë¤Ï¸«¤Å¤é¤¤¤«¤âÃΤì¤Þ¤»¤ó¤¬, ¼ÂºÝ¤Ë¥¹¥¯¥ê¥×¥È¤ò½ñ¤¤
¤Æ¤ß¤ë¤ÈͽÁÛ³°¤Ë¼ê·Ú¤Ç¤¹.
@@ -173,7 +173,7 @@ require "tcltklib" ¤¹¤ë¤È, °Ê²¼¤Î¥â¥¸¥å¡¼¥ë, ¥¯¥é¥¹¤¬ÍøÍѲÄǽ¤Ç¤¹.
Äê¿ô DONT_WAIT
: ½èÍýÂоݥ¤¥Ù¥ó¥È¤¬Â¸ºß¤·¤Ê¤¤¾ì¹ç¤Ë¡¤¥¤¥Ù¥ó¥ÈȯÀ¸¤òÂÔ¤¿¤º
- : ¤Ë do_one_event ¤ò½ªÎ» ( false ¤òÊÖ¤¹ ) ¤¹¤ë
+ : ¤Ë do_one_event ¤ò½ªÎ» ( false ¤òÊÖ¤¹ ) ¤¹¤ë
¥â¥¸¥å¡¼¥ë TclTkLib::VarAccessFlag
: _get_variable ¤Ê¤É¤Ç¤Î¥Õ¥é¥°¤ò»ØÄꤹ¤ë¤¿¤á¤Î¤â¤Î¡¥¥Õ¥é¥°¤Ë
@@ -217,7 +217,7 @@ require "tcltklib" ¤¹¤ë¤È, °Ê²¼¤Î¥â¥¸¥å¡¼¥ë, ¥¯¥é¥¹¤¬ÍøÍѲÄǽ¤Ç¤¹.
: ´Þ¤à²ÄǽÀ­¤¬¤¢¤ë (³«¤­³ç¸Ì¤ò´Þ¤ß¡¤ÊĤ¸³ç¸Ì¤Ç½ª¤ï¤ë) ¤³
: ¤È¤ò¼¨¤¹¡¥¤½¤Î¾ì¹ç¡¤³ç¸Ì¤Î´Ö¤¬Í×ÁÇ̾»ØÄꡤºÇ½é¤Î³«¤­³ç
: ¸Ì¤Þ¤Ç¤¬Ï¢ÁÛÇÛÎó̾¤È¤·¤Æ°·¤ï¤ì¤ë¡¥_set_variable2 ¤Ê¤É¤Ç
- : ¤³¤Î¥Õ¥é¥°¤ò»ØÄꤹ¤ë¾ì¹ç¡¤Ï¢ÁÛÇÛÎó̾¤ÈÍ×ÁÇ̾¤Ï var_name
+ : ¤³¤Î¥Õ¥é¥°¤ò»ØÄꤹ¤ë¾ì¹ç¡¤Ï¢ÁÛÇÛÎó̾¤ÈÍ×ÁÇ̾¤Ï var_name
: ¤«¤éÃê½Ð¤µ¤ì¤ë¤Ï¤º¤Ç¤¢¤ë¤«¤é¡¤index_name °ú¿ô¤Ï nil ¤È
: ¤»¤Í¤Ð¤Ê¤é¤Ê¤¤¡¥
@@ -235,8 +235,8 @@ require "tcltklib" ¤¹¤ë¤È, °Ê²¼¤Î¥â¥¸¥å¡¼¥ë, ¥¯¥é¥¹¤¬ÍøÍѲÄǽ¤Ç¤¹.
¥â¥¸¥å¡¼¥ë¥á¥½¥Ã¥É
get_version()
- : Tcl/Tk ¤Î major, minor, release-type ÈÖ¹æ, release-type ̾,
- : patchlevel ¤òÇÛÎó¤Ë¤·¤ÆÊÖ¤¹¡¥
+ : Tcl/Tk ¤Î major, minor, release-type ÈÖ¹æ, patchlevel ¤ò
+ : ÇÛÎó¤Ë¤·¤ÆÊÖ¤¹¡¥
mainloop(check_root = true)
: ¥¤¥Ù¥ó¥È¥ë¡¼¥×¤òµ¯Æ°¤¹¤ë¡¥check_root ¤¬ true ¤Ç¤¢¤ì¤Ð¡¤
@@ -250,7 +250,7 @@ require "tcltklib" ¤¹¤ë¤È, °Ê²¼¤Î¥â¥¸¥å¡¼¥ë, ¥¯¥é¥¹¤¬ÍøÍѲÄǽ¤Ç¤¹.
: ¥«¥ì¥ó¥È¥¹¥ì¥Ã¥É¤¬¥¤¥Ù¥ó¥È¥ë¡¼¥×¤ò¼Â¹Ô¤·¤Æ¤¤¤ë¥¹¥ì¥Ã¥É
: ¤«¤É¤¦¤«¤òÊÖ¤¹¡¥
: ¥¤¥Ù¥ó¥È¥ë¡¼¥×¤ò¼Â¹Ô¤·¤Æ¤¤¤ë¥¹¥ì¥Ã¥É¤Ç¤¢¤ì¤Ð true ¤ò¡¤
- : ¤É¤Î¥¹¥ì¥Ã¥É¤Ç¤â¥¤¥Ù¥ó¥È¥ë¡¼¥×¤¬¼Â¹Ô¤µ¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç¤Ï
+ : ¤É¤Î¥¹¥ì¥Ã¥É¤Ç¤â¥¤¥Ù¥ó¥È¥ë¡¼¥×¤¬¼Â¹Ô¤µ¤ì¤Æ¤¤¤Ê¤¤¾ì¹ç¤Ï
: nil ¤ò¡¤Â¾¤Î¥¹¥ì¥Ã¥É¤Ç¥¤¥Ù¥ó¥È¥ë¡¼¥×¤¬¼Â¹Ô¤µ¤ì¤Æ¤¤¤ë¾ì
: ¹ç¤Ï false ¤òÊÖ¤¹¡¥
: false ¤ÎºÝ¤Ë Tk ¥¤¥ó¥¿¡¼¥×¥ê¥¿¤òľÀÜ¸Æ¤Ö¤Î¤Ï´í¸±¤Ç¤¢¤ë¡¥
@@ -264,7 +264,7 @@ require "tcltklib" ¤¹¤ë¤È, °Ê²¼¤Î¥â¥¸¥å¡¼¥ë, ¥¯¥é¥¹¤¬ÍøÍѲÄǽ¤Ç¤¹.
: ( ´Æ»ë¥¹¥ì¥Ã¥É¤òÀ¸À®¤·¤¿¸å¤Ë¥¤¥Ù¥ó¥È¥ë¡¼¥×¤ò¼Â¹Ô¤¹¤ë )¡¥
: °ú¿ô¤Î°ÕÌ£¤Ï mainloop ¤ÈƱ¤¸¤Ç¤¢¤ë¡¥
- do_one_event(flag = TclTkLib::EventFlag::ALL |
+ do_one_event(flag = TclTkLib::EventFlag::ALL |
TclTkLib::EventFlag::DONT_WAIT)
: ½èÍýÂÔ¤Á¤Î¥¤¥Ù¥ó¥È 1 ¸Ä¤ò¼Â¹Ô¤¹¤ë¡¥
: ¥¤¥Ù¥ó¥È¤ò½èÍý¤·¤¿¾ì¹ç¤Ï true ¤òÊÖ¤¹¡¥
@@ -309,7 +309,7 @@ require "tcltklib" ¤¹¤ë¤È, °Ê²¼¤Î¥â¥¸¥å¡¼¥ë, ¥¯¥é¥¹¤¬ÍøÍѲÄǽ¤Ç¤¹.
: ²ÔƯ¥¹¥ì¥Ã¥É¤¬¥¤¥Ù¥ó¥È¥ë¡¼¥×¤À¤±¤Î¾ì¹ç¤Ë¤Ï°ÕÌ£¤ò¤Ê¤µ¤Ê¤¤¡¥
: °ìÅ٤Υ¹¥ì¥Ã¥ÉÀÚ¤êÂØ¤¨¤Î´Ö¤Ë½èÍý¤¹¤ë¥¤¥Ù¥ó¥È¤ÎºÇÂç¿ô¤È¡¤
: ½èÍýÂÔ¤Á¤Î¥¤¥Ù¥ó¥È¤¬Â¸ºß¤·¤Ê¤¤ºÝ¤Î²Ã»»¿ô¤È¤òÀßÄꤹ¤ë¡¥
- : ½èÍýÂÔ¤Á¥¤¥Ù¥ó¥È¤¬Â¸ºß¤·¤Ê¤¤¾ì¹ç¤Ï no_event_wait ( see
+ : ½èÍýÂÔ¤Á¥¤¥Ù¥ó¥È¤¬Â¸ºß¤·¤Ê¤¤¾ì¹ç¤Ï no_event_wait ( see
: set_no_event_wait ) ¤À¤±¤Î´Ö sleep ¾õÂÖ¤ËÆþ¤ë¡¥
: ¥Ç¥Õ¥©¥ë¥È¤Ç¤Ï¤½¤ì¤¾¤ì 800 ²ó¤È 10 ²ó¡¤¤Ä¤Þ¤ê¡¤800 ¸Ä¤Î¥¤
: ¥Ù¥ó¥È (¥¢¥¤¥É¥ë¥¤¥Ù¥ó¥È¤ò´Þ¤à) ¤ò½èÍý¤¹¤ë¤È¤«¡¤¥¤¥Ù¥ó¥È
@@ -363,10 +363,10 @@ require "tcltklib" ¤¹¤ë¤È, °Ê²¼¤Î¥â¥¸¥å¡¼¥ë, ¥¯¥é¥¹¤¬ÍøÍѲÄǽ¤Ç¤¹.
_subst_UTF_backslash(str)
_subst_Tcl_backslash(str)
- : Tcl ¤Î¥ë¡¼¥ë¤Ç¥Ð¥Ã¥¯¥¹¥é¥Ã¥·¥åµ­Ë¡ ( \uhhhh ¤Ë¤è¤ë
+ : Tcl ¤Î¥ë¡¼¥ë¤Ç¥Ð¥Ã¥¯¥¹¥é¥Ã¥·¥åµ­Ë¡ ( \uhhhh ¤Ë¤è¤ë
: Unicode ʸ»úɽ¸½¤ò´Þ¤à ) ¤ò²òÀϤ¹¤ë¡¥
: _subst_Tcl_backslash ¤Ï¤¹¤Ù¤Æ¤Î¥Ð¥Ã¥¯¥¹¥é¥Ã¥·¥åµ­Ë¡¤ò
- : ÃÖ¤­´¹¤¨¤ë¤Î¤ËÂФ·¡¤_subst_UTF_backslash ¤Ï \uhhhh
+ : ÃÖ¤­´¹¤¨¤ë¤Î¤ËÂФ·¡¤_subst_UTF_backslash ¤Ï \uhhhh
: ¤Ë¤è¤ë Unicode ʸ»úɽ¸½¤À¤±¤òÃÖ¤­´¹¤¨¤ë¡¥
encoding_system
@@ -402,7 +402,7 @@ require "tcltklib" ¤¹¤ë¤È, °Ê²¼¤Î¥â¥¸¥å¡¼¥ë, ¥¯¥é¥¹¤¬ÍøÍѲÄǽ¤Ç¤¹.
: safe ¤Ë¤ÏÀ¸À®¤¹¤ë¥¤¥ó¥¿¡¼¥×¥ê¥¿¤ò safe ¥¤¥ó¥¿¡¼¥×¥ê¥¿¤È¤¹¤ë
: ¤«¤ò»ØÄꤹ¤ë¡¥¥Ç¥Õ¥©¥ë¥È¤Ï false ¤È¤¤¤¦¤³¤È¤Ë¤Ê¤Ã¤Æ¤¤¤ë¤¬¡¤
: ¤¿¤È¤¨ÌÀ³Î¤Ë false ¤ò»ØÄꤷ¤Æ¤¤¤¿¤È¤·¤Æ¤â¡¤¿Æ¤È¤Ê¤ë¥¤¥ó¥¿¡¼
- : ¥×¥ê¥¿¤¬ safe ¥¤¥ó¥¿¡¼¥×¥ê¥¿¤Ç¤¢¤ì¤Ð¡¤¤½¤ÎÀßÄê¤ò°ú¤­·Ñ¤¤¤Ç
+ : ¥×¥ê¥¿¤¬ safe ¥¤¥ó¥¿¡¼¥×¥ê¥¿¤Ç¤¢¤ì¤Ð¡¤¤½¤ÎÀßÄê¤ò°ú¤­·Ñ¤¤¤Ç
: safe ¥¤¥ó¥¿¡¼¥×¥ê¥¿¤È¤·¤ÆÀ¸À®¤µ¤ì¤ë¡¥
: $SAFE >= 4 ¤Ç¤Ï¡¤safe ¥¤¥ó¥¿¡¼¥×¥ê¥¿°Ê³°¤ÎÀ¸À®¤¬¶Ø»ß¤µ¤ì¤ë¡¥
@@ -416,7 +416,7 @@ require "tcltklib" ¤¹¤ë¤È, °Ê²¼¤Î¥â¥¸¥å¡¼¥ë, ¥¯¥é¥¹¤¬ÍøÍѲÄǽ¤Ç¤¹.
: safe ¥¤¥ó¥¿¡¼¥×¥ê¥¿¤Ç¤¢¤ì¤Ð true ¤òÊÖ¤¹¡¥
allow_ruby_exit?
- : ÂоݤȤʤ륤¥ó¥¿¡¼¥×¥ê¥¿¾å¤Îɾ²Á¤Ç¡¤ruby ¤Î exit ´Ø¿ô¤Þ¤¿¤Ï
+ : ÂоݤȤʤ륤¥ó¥¿¡¼¥×¥ê¥¿¾å¤Îɾ²Á¤Ç¡¤ruby ¤Î exit ´Ø¿ô¤Þ¤¿¤Ï
: Tcl/Tk ¾å¤Î exit ¥³¥Þ¥ó¥É¤Ë¤è¤Ã¤Æ ruby ¼«ÂΤò½ªÎ»¤µ¤»¤ë¤³¤È
: ¤òµö¤¹¤«¤É¤¦¤«¤òÊÖ¤¹¡¥
: µö¤µ¤Ê¤¤¾ì¹ç¤ÏÂоݤΥ¤¥ó¥¿¡¼¥×¥ê¥¿¤À¤±¤¬½ªÎ»¤¹¤ë¡¥
@@ -464,6 +464,11 @@ require "tcltklib" ¤¹¤ë¤È, °Ê²¼¤Î¥â¥¸¥å¡¼¥ë, ¥¯¥é¥¹¤¬ÍøÍѲÄǽ¤Ç¤¹.
: ¤·¤ÆÅÐÏ¿¤ËÀ®¸ù¤·¤µ¤¨¤¹¤ì¤Ð¡¤°Ê¹ß¤Ï _invoke ¤Ç¤âÍøÍѤÇ
: ¤­¤ë¤è¤¦¤Ë¤Ê¤ë¡¥
+ _cancel_eval(str)
+ _cancel_eval_unwind(str)
+ : (Tcl/Tk8.6 or later)
+ : Tcl_CancelEval() ´Ø¿ô¤ò¸Æ¤Ó½Ð¤·¡¤eval ¤Î¼Â¹Ô¤òÂǤÁÀڤ롥
+
_toUTF8(str, encoding=nil)
_fromUTF8(str, encoding=nil)
: Tcl/Tk ¤¬Æâ¢¤·¤Æ¤¤¤ë UTF8 ÊÑ´¹½èÍý¤ò¸Æ¤Ó½Ð¤¹¡¥
@@ -495,7 +500,7 @@ require "tcltklib" ¤¹¤ë¤È, °Ê²¼¤Î¥â¥¸¥å¡¼¥ë, ¥¯¥é¥¹¤¬ÍøÍѲÄǽ¤Ç¤¹.
_get_variable(var_name, flag)
_get_variable2(var_name, index_name, flag)
: Tcl/Tk ¾å¤Î var ¤È¤¤¤¦ÊÑ¿ô̾¤ÎÊÑ¿ô¤ÎÃͤòÊÖ¤¹¡¥
- : ¤â¤· index_name ¤¬»ØÄê (PARSE_VARNAME ¥Õ¥é¥°¤ÎÀâÌÀ¤â»²¾È)
+ : ¤â¤· index_name ¤¬»ØÄê (PARSE_VARNAME ¥Õ¥é¥°¤ÎÀâÌÀ¤â»²¾È)
: ¤µ¤ì¤¿¾ì¹ç¤ÏÏ¢ÁÛÇÛÎó var_name ¤Î index_name ¤ÎÍ×ÁǤòÊÖ¤¹¡¥
: flag ¤Ë¤ÏÊÑ¿ô¤ò¸¡º÷¤¹¤ëºÝ¤Î¾ò·ï¤ò»ØÄꤹ¤ë¡¥flag ¤ËÍ¿¤¨¤ë
: Ãͤϥ⥸¥å¡¼¥ë TclTkLib::VarAccessFlag ¤ò»²¾È¤¹¤ë¤³¤È¡¥
@@ -503,7 +508,7 @@ require "tcltklib" ¤¹¤ë¤È, °Ê²¼¤Î¥â¥¸¥å¡¼¥ë, ¥¯¥é¥¹¤¬ÍøÍѲÄǽ¤Ç¤¹.
_set_variable(var_name, value, flag)
_set_variable2(var_name, index_name, value, flag)
: Tcl/Tk ¾å¤Î var ¤È¤¤¤¦ÊÑ¿ô̾¤ÎÊÑ¿ô¤ËÃͤòÀßÄꤹ¤ë¡¥
- : ¤â¤· index_name ¤¬»ØÄê (PARSE_VARNAME ¥Õ¥é¥°¤ÎÀâÌÀ¤â»²¾È)
+ : ¤â¤· index_name ¤¬»ØÄê (PARSE_VARNAME ¥Õ¥é¥°¤ÎÀâÌÀ¤â»²¾È)
: ¤µ¤ì¤¿¾ì¹ç¤ÏÏ¢ÁÛÇÛÎó var_name ¤Î index_name ¤ÎÍ×ÁǤòÀßÄê
: ¤¹¤ë¡¥
: flag ¤Ë¤ÏÊÑ¿ô¤ò¸¡º÷¤¹¤ëºÝ¤Î¾ò·ï¤ò»ØÄꤹ¤ë¡¥flag ¤ËÍ¿¤¨¤ë
@@ -512,7 +517,7 @@ require "tcltklib" ¤¹¤ë¤È, °Ê²¼¤Î¥â¥¸¥å¡¼¥ë, ¥¯¥é¥¹¤¬ÍøÍѲÄǽ¤Ç¤¹.
_unset_variable(var_name)
_unset_variable2(var_name, index_name)
: Tcl/Tk ¾å¤Î var_name ¤È¤¤¤¦ÊÑ¿ô̾¤ÎÊÑ¿ô¤ò¾Ãµî¤¹¤ë¡¥
- : ¤â¤· index_name ¤¬»ØÄê (PARSE_VARNAME ¥Õ¥é¥°¤ÎÀâÌÀ¤â»²¾È)
+ : ¤â¤· index_name ¤¬»ØÄê (PARSE_VARNAME ¥Õ¥é¥°¤ÎÀâÌÀ¤â»²¾È)
: ¤µ¤ì¤¿¾ì¹ç¤ÏÏ¢ÁÛÇÛÎó var_name ¤«¤é index_name ¤ÎÍ×ÁǤÀ¤±
: ¤ò¾Ãµî¤¹¤ë¡¥
diff --git a/ext/tk/README.1st b/ext/tk/README.1st
index fce5b0242b..0179f4d526 100644
--- a/ext/tk/README.1st
+++ b/ext/tk/README.1st
@@ -1,15 +1,15 @@
-If you want to use Ruby/Tk (tk.rb and so on), you must have tcltklib.so
-which is working correctly. When you have some troubles on compiling,
-please read README.tcltklib and README.ActiveTcl.
-Even if there is a tcltklib.so on your Ruby library directry, it will not
-work without Tcl/Tk libraries (e.g. libtcl8.4.so) on your environment.
-You must also check that your Tcl/Tk is installed properly.
+If you want to use Ruby/Tk (tk.rb and so on), you must have tcltklib.so
+which is working correctly. When you have some troubles on compiling,
+please read README.tcltklib and README.ActiveTcl.
+Even if there is a tcltklib.so on your Ruby library directry, it will not
+work without Tcl/Tk libraries (e.g. libtcl8.4.so) on your environment.
+You must also check that your Tcl/Tk is installed properly.
--------------------------------------------
( the following is written in EUC-JP )
Ruby/Tk (tk.rb ¤Ê¤É) ¤ò»È¤¤¤¿¤¤¾ì¹ç¤Ë¤Ï¡¤tcltklib.so ¤¬Àµ¤·¤¯Æ°¤¤¤Æ¤¤¤Ê
-¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó¡¥¥³¥ó¥Ñ¥¤¥ë»þ¤Ë²¿¤«ÌäÂ꤬À¸¤¸¤¿¾ì¹ç¤Ï¡¤README.tcltklib
+¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó¡¥¥³¥ó¥Ñ¥¤¥ë»þ¤Ë²¿¤«ÌäÂ꤬À¸¤¸¤¿¾ì¹ç¤Ï¡¤README.tcltklib
¤ä README.ActiveTcl ¤ò¸«¤Æ¤¯¤À¤µ¤¤¡¥
¤¿¤È¤¨ Ruby ¤Î¥é¥¤¥Ö¥é¥ê¥Ç¥£¥ì¥¯¥È¥ê¤Ë tcltklib.so ¤¬Â¸ºß¤·¤Æ¤¤¤¿¤È¤·¤Æ
¤â¡¤¼Â¹Ô´Ä¶­¤Ë Tcl/Tk ¥é¥¤¥Ö¥é¥ê (libtcl8.4.so ¤Ê¤É) ¤¬¤Ê¤±¤ì¤Ðµ¡Ç½¤·¤Þ
diff --git a/ext/tk/README.ActiveTcl b/ext/tk/README.ActiveTcl
index 3afb3f4cf6..b7f023c91b 100644
--- a/ext/tk/README.ActiveTcl
+++ b/ext/tk/README.ActiveTcl
@@ -1,11 +1,24 @@
-ActiveTcl is ActiveState's quality-assured distribution of Tcl.
+ActiveTcl is ActiveState's quality-assured distribution of Tcl.
# see <http://www.activestate.com/Products/ActiveTcl/>
# <http://www.tcl.tk/>
-If you want to use ActiveTcl binary package as the Tcl/Tk libraries,
+First of all, please try to configure without any options.
+"extconf.rb" searches ActiveTcl as default action.
+If you have ActiveTcl and standard (or your own) Tcl/Tk on your
+environment and don't want to use ActiveTcl on your Ruby/Tk, please
+use --without-ActiveTcl option.
+
+When "extconf.rb" fails to find your ActiveTcl libraries, please try
+the followings.
+
+If you want to use ActiveTcl binary package as the Tcl/Tk libraries,
please use the following configure options.
+ --with-ActiveTcl=<ActiveTcl_root>
+ ( When without argument; no <ActiveTcl_root>; only '--with-ActiveTcl',
+ it same to '--with-ActiveTcl=/opt/ActiveTcl*/lib' )
+
--with-tcl-dir=<ActiveTcl_root>
--with-tk-dir=<ActiveTcl_root>
@@ -15,7 +28,7 @@ And use the followings if you need.
--with-tklib=<libname>
--enable-tcltk-stubs
-For example, when you install ActiveTcl-8.4.x to '/usr/local/ActiveTcl',
+For example, when you install ActiveTcl-8.4.x to '/usr/local/ActiveTcl',
configure --with-tcl-dir=/usr/local/ActiveTcl/ \
--with-tk-dir=/usr/local/ActiveTcl/ \
@@ -23,17 +36,17 @@ For example, when you install ActiveTcl-8.4.x to '/usr/local/ActiveTcl',
--with-tklib=tkstub8.4 \
--enable-tcltk-stubs
-It depends on your environment that you have to add the directory of
-ActiveTcl's libraries to your library path when execute Ruby/Tk.
-One of the way is to add entries to TCLLIBPATH environment variable,
+It depends on your environment that you have to add the directory of
+ActiveTcl's libraries to your library path when execute Ruby/Tk.
+One of the way is to add entries to TCLLIBPATH environment variable,
and one of the others add to LD_LIBRARY_PATH environment variable
-Probably, using TCLLIBPATH is better. The value is appended at the
-head of Tcl's 'auto_path' variable. You can see the value of the
+Probably, using TCLLIBPATH is better. The value is appended at the
+head of Tcl's 'auto_path' variable. You can see the value of the
variable by using 'Tk::AUTO_PATH.value' or 'Tk::AUTO_PATH.list'.
-For example, on Linux, one of the ways is to use LD_LIBRARY_PATH
-environment variable.
+For example, on Linux, one of the ways is to use LD_LIBRARY_PATH
+environment variable.
-------------------------------------------------------------------------
[bash]$ LD_LIBRARY_PATH=/usr/local/ActiveTcl/lib:$LD_LIBRARY_PATH \
ruby your-Ruby/Tk-script
@@ -44,6 +57,6 @@ Based on it, the Tcl interpreter changes auto_path variable's value.
Then, you'll be able to use Tcl/Tk extension libraries included in the
ActiveTcl package (e.g. call TkPackage.require('BWidget'), and then,
-use functions/widgets of BWidget extention).
+use functions/widgets of BWidget extention).
Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)
diff --git a/ext/tk/README.fork b/ext/tk/README.fork
index 707d78fc12..c58d75883b 100644
--- a/ext/tk/README.fork
+++ b/ext/tk/README.fork
@@ -1,13 +1,13 @@
Ruby/Tk does NOT support forking the process on which Tk interpreter
-is running (unless NEVER control Tk interpreter under the forked child
-process). In the library 'tk.rb', a Tk interpreter is initialized.
+is running (unless NEVER control Tk interpreter under the forked child
+process). In the library 'tk.rb', a Tk interpreter is initialized.
Therefore, if you want running Tk under a child process, please call
-"require 'tk'" in the child process.
+"require 'tk'" in the child process.
-# If do fork and exec(<new Ruby/Tk>) on the child process, you can
-# control Ruby/Tk interpreter on the child process by 'send' command
-# of Tcl/Tk. About this, please see Tk.appsend and Tk.rb_appsend, or
-# 'remote-tk.rb' and the sample 'sample/remote-ip_sample.rb'.
+# If do fork and exec(<new Ruby/Tk>) on the child process, you can
+# control Ruby/Tk interpreter on the child process by 'send' command
+# of Tcl/Tk. About this, please see Tk.appsend and Tk.rb_appsend, or
+# 'remote-tk.rb' and the sample 'sample/remote-ip_sample.rb'.
For example, the following sample1 will NOT work, and sample2 will
work properly.
diff --git a/ext/tk/README.macosx-aqua b/ext/tk/README.macosx-aqua
index 25a8ed827c..15630727ec 100644
--- a/ext/tk/README.macosx-aqua
+++ b/ext/tk/README.macosx-aqua
@@ -3,13 +3,13 @@
First of all, please read README.tcltklib to use Tcl/Tk Aqua Framework.
-With Tcl/Tk Aqua libraries, current tcltklib somtimes freezes when
-using Aqua specific dialogs (e.g. Tk.messageBox).
+With Tcl/Tk Aqua libraries, current tcltklib somtimes freezes when
+using Aqua specific dialogs (e.g. Tk.messageBox).
This is a known bug of Ruby-1.8.4 release.
-When you meet the trouble on your GUI, you'll be able to avoid the trouble
-by Tcl/Tk's traditional dialogs.
-If you want to do that, please call some of the following bits of script
+When you meet the trouble on your GUI, you'll be able to avoid the trouble
+by Tcl/Tk's traditional dialogs.
+If you want to do that, please call some of the following bits of script
after "reqruie 'tk'".
=================================================================
@@ -57,11 +57,11 @@ Tk.ip_eval(<<'EOS')
EOS
=================================================================
-Each of them replaces the platform specific dialog command to the
-traditional one.
+Each of them replaces the platform specific dialog command to the
+traditional one.
-If you use some MultiTkIp objects, probably, you'll have to call the
-bits of script for each MultiTkIp object.
+If you use some MultiTkIp objects, probably, you'll have to call the
+bits of script for each MultiTkIp object.
---
+--
Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)
diff --git a/ext/tk/README.tcltklib b/ext/tk/README.tcltklib
index 8c6dd5178f..0064586373 100644
--- a/ext/tk/README.tcltklib
+++ b/ext/tk/README.tcltklib
@@ -1,23 +1,83 @@
-To compile 'tcltklib', you must have Tcl/Tk libraries on your environment.
-Although 'extconf.rb' script searches Tcl/Tk libraries and header files,
-sometimes fails to find them. And then, 'tcltklib' cannot be compiled. If
-Tcl/Tk libraries or header files are installed but are not found, you can
-give the information by arguments of the 'configure' script. Please give
-some or all of the following options.
-
- --with-tcltkversion=<version>
+To compile 'tcltklib', you must have Tcl/Tk libraries on your environment.
+Although 'extconf.rb' script searches Tcl/Tk libraries and header files
+(as default, searches tclConfig.sh/tkConfig.sh and use the defintions on
+those; ActiveTcl has high priority on searching unless --without-ActiveTcl),
+sometimes fails to find them. And then, 'tcltklib' cannot be compiled. If
+Tcl/Tk libraries or header files are installed but are not found, you can
+give the information by arguments of the 'configure' script. Please give
+some or all of the following options.
+
+ --with-tk-old-extconf use old "extconf.rb" (default: false).
+ If current extconf.rb doesn't work properly
+ (or your install process is based on old
+ documant about Ruby/Tk install), please try
+ this option.
+
+ --with-ActiveTcl / --without-ActiveTcl
+ --with-ActiveTcl=<dir> search ActiveTcl libraries (default: true).
+ When true, try to find installed ActiveTcl.
+ When <dir> is given, use it as the ActiveTcl's
+ top directory (use <dir>/lib, and so on).
+ Old "extconf.rb" doesn't support this option.
+
+ --with-tk-shlib-search-path=<paths>
+ teach the paths for loading shared-libraries
+ to linker.
+ <paths> is a path list with the same format
+ as PATH environment variable.
+ This option may be experimental.
+ Old "extconf.rb" doesn't support this option.
+
+ --with-tcltkversion=<version>
+ --with-tcltkversion=<tclversion>,<tkversion>
force version of Tcl/Tk libaray
- (e.g. libtcl8.4g.so ==> --with-tcltkversion=8.4g)
+ (e.g. libtcl8.4g.so & libtk8.4g.so ==> --with-tcltkversion=8.4g
+ libtcl8.4.so & libtk8.4g.so ==> --with-tcltkversion=8.4,8.4g)
+
+ --enable-tcl-h-ver-check/--disable-tcl-h-ver-check
+ --enable-tk-h-ver-check/--disable-tk-h-ver-check
+ enable or disable for checking MAJOR_VERSION and
+ MINOR_VERSION on tcl.h/tk.h whether match with
+ Tcl/Tk libraries' version or not.
+
+ --with-tcl-build-dir=<dir>
+ --with-tk-build-dir=<dir> If you want to compile with libraries on Tcl/Tk
+ build dir (still NOT installed), you must use
+ these options.
+ (e.g. --with-tcl-build-dir=./build/tcl8.5.9/unix)
+ When use these options, --with-tclConfig-dir and
+ --with-tkConfig-dir options are ignored (however,
+ --with-tclConfig-file and --with-tkConfig-file
+ options are still available).
+
+ --with-tclConfig-file=<file>/--without-tclConfig-file
+ --with-tkConfig-file=<file>/--without-tkConfig-file
+ file path of tclConfig.sh/tkConfig.sh, or don't
+ refer those.
+ If you want use non-standard filenames of config
+ files (e.g. tclConfig-static.sh), you must use
+ these options.
+
+ --with-tclConfig-dir=<dir>
+ --with-tkConfig-dir=<dir> the directory contains 'tclConfig.sh' and
+ 'tkConfig.sh'.
+ Current "extconf.rb" uses the information
+ on tclConfig.sh/tkConfig.rb, if possible.
+ Old "extconf.rb" doesn't support this option.
--with-tcllib=<libname> (e.g. libtcl8.4.so ==> --with-tcllib=tcl8.4)
--with-tklib=<libname> (e.g. libtk8.4.so ==> --with-tklib=tk8.4)
--enable-tcltk-stubs (if you force to enable stubs)
+ On old "extconf.rb", default is false.
+ On current "extconf.rb", default is true when
+ tclConfig.sh/tkConfig.sh have TCL_STUB_LIB_SPEC
+ /TK_STUB_LIB_SPEC, else default is false.
- --with-tcl-dir=<path>
+ --with-tcl-dir=<path>
equal to "--with-tcl-include=<path>/include --with-tcl-lib=<path>/lib"
- --with-tk-dir=<path>
+ --with-tk-dir=<path>
equal to "--with-tk-include=<path>/include --with-tk-lib=<path>/lib"
--with-tcl-include=<dir> the directry contains 'tcl.h'
@@ -31,23 +91,29 @@ some or all of the following options.
--enable-tcltk-framework use Tcl/Tk framework
- --with-tcltk-framework=<dir> the directory contains Tcl/Tk framework;
+ --with-tcltk-framework=<dir> the directory contains Tcl/Tk framework;
"<dir>/Tcl.framework" and "<dir>/Tk.framework".
- When this option is given, it is assumed that
+ When this option is given, it is assumed that
--enable-tcltk-framework option is given also.
+ --with-tcl-framework-dir=<dir>
+ Tcl framework directory (e.g. "/Library/Frameworks/Tcl.framework")
+
+ --with-tk-framework-dir=<dir>
+ Tk framework directory (e.g. "/Library/Frameworks/Tk.framework")
+
--with-tcl-framework-header=<dir>
- Tcl framework headers directory
+ Tcl framework headers directory
(e.g. "/Library/Frameworks/Tcl.framework/Headers")
--with-tk-framework-header=<dir>
- Tk framework headers directory
+ Tk framework headers directory
(e.g. "/Library/Frameworks/Tk.framework/Headers")
--with-X11 / --without-X11 use / not use the X Window System
- --with-X11-dir=<path>
+ --with-X11-dir=<path>
equal to "--with-X11-include=<path>/include --with-X11-lib=<path>/lib"
--with-X11-include=<dir> the directry contais X11 header files
@@ -63,23 +129,24 @@ directry of Ruby sources, please try something like as the followings.
*** ATTENTION ***
-When your Tcl/Tk libraries are compiled with "pthread support",
-Ruby/Tk may cause "Hang-up" or "Segmentation Fault" frequently.
-If you have such a trouble, please try to use the '--enable-pthread'
-option of the 'configure' command and re-compile Ruby sources.
-It may help you to avoid this trouble. The following configure
+When your Tcl/Tk libraries are compiled with "pthread support",
+Ruby/Tk may cause "Hang-up" or "Segmentation Fault" frequently.
+If you have such a trouble, please try to use the '--enable-pthread'
+option of the 'configure' command and re-compile Ruby sources.
+It may help you to avoid this trouble. The following configure
options may be useful.
--enable-tcl-thread/--disable-tcl-thread
--with-tclConfig-file=<path of 'tclConfig.sh'>
+ --with-tkConfig-file=<path of 'tkConfig.sh'>
-It is not need that 'tclConfig.sh' is a normal Tcl/Tk's tclConfig.sh.
+It is not need that 'tclConfig.sh' is a normal Tcl/Tk's tclConfig.sh.
But the file is expected to include the line "TCL_THREADS=0" or "...=1".
-When no "TCL_THREADS=?" line, if Tcl version is 7.x or 8.0 which is
-given by "TCL_MAJOR_VERSION=?" line and "TCL_MINOR_VERSION=?" line,
+When no "TCL_THREADS=?" line, if Tcl version is 7.x or 8.0 which is
+given by "TCL_MAJOR_VERSION=?" line and "TCL_MINOR_VERSION=?" line,
then --disable-tcl-thread is expected. Else, ignore the 'tclConfig.sh'.
-If --enable-tcl-thread or --disable-tcl-thread option is given, then
---with-tclConfig-file option is ignored.
+If --enable-tcl-thread or --disable-tcl-thread option is given, then
+--with-tclConfig-file option is ignored.
==========================================================
Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)
diff --git a/ext/tk/config_list.in b/ext/tk/config_list.in
new file mode 100644
index 0000000000..143a7b5df6
--- /dev/null
+++ b/ext/tk/config_list.in
@@ -0,0 +1,41 @@
+##############################################
+# configure options for Ruby/Tk
+# release date: 2011-06-05
+##############################################
+with tk-old-extconf
+with ActiveTcl
+with tk-shlib-search-path
+enable tcltk-stubs
+with tcltkversion
+enable tcl-h-ver-check
+enable tk-h-ver-check
+with tcl-build-dir
+with tk-build-dir
+with tcl-config
+with tk-config
+with tclConfig-dir
+with tkConfig-dir
+with tclConfig-file
+with tkConfig-file
+with tcllib
+with tklib
+with tcl-dir
+with tk-dir
+with tcl-include
+with tk-include
+with tcl-lib
+with tk-lib
+enable mac-tcltk-framework
+enable tcltk-framework
+with tcltk-framework
+with tcl-framework-dir
+with tk-framework-dir
+with tcl-framework-header
+with tk-framework-header
+with X11
+with X11-dir
+with X11-include
+with X11-lib
+enable pthread
+enable tcl-thread
+enable space-on-tk-libpath
diff --git a/ext/tk/extconf.rb b/ext/tk/extconf.rb
index ebc83a0c0b..2f68d01e7f 100644
--- a/ext/tk/extconf.rb
+++ b/ext/tk/extconf.rb
@@ -1,98 +1,137 @@
+##############################################################
# extconf.rb for tcltklib
-
+# release date: 2010-07-30
+##############################################################
require 'mkmf'
-is_win32 = (/mswin|mingw|cygwin|bccwin/ =~ RUBY_PLATFORM)
-#is_macosx = (/darwin/ =~ RUBY_PLATFORM)
+TkLib_Config = {}
+TkLib_Config['search_versions'] =
+ # %w[8.9 8.8 8.7 8.6 8.5 8.4 8.3 8.2 8.1 8.0 7.6 4.2]
+ # %w[8.7 8.6 8.5 8.4 8.3 8.2 8.1 8.0]
+ %w[8.7 8.6 8.5 8.4 8.0] # to shorten search steps
-have_func("ruby_native_thread_p", "ruby.h")
-have_func("rb_errinfo", "ruby.h")
-have_func("rb_safe_level", "ruby.h")
-have_struct_member("struct RArray", "ptr", "ruby.h")
-have_struct_member("struct RArray", "len", "ruby.h")
+TkLib_Config['major_nums'] = '87'
-def find_framework(tcl_hdr, tk_hdr)
- if framework_dir = with_config("tcltk-framework")
- paths = [framework_dir]
- else
- unless tcl_hdr || tk_hdr ||
- enable_config("tcltk-framework", false) ||
- enable_config("mac-tcltk-framework", false)
- return false
- end
- paths = ["/Library/Frameworks", "/System/Library/Frameworks"]
- end
- checking_for('Tcl/Tk Framework') {
- paths.find{|dir|
- dir.strip!
- dir.chomp!('/')
- (tcl_hdr || FileTest.directory?(dir + "/Tcl.framework/") ) &&
- (tk_hdr || FileTest.directory?(dir + "/Tk.framework/") )
- }
- }
+##############################################################
+# use old extconf.rb ?
+##############################################################
+if with_config('tk-old-extconf')
+ require File.join(File.dirname(__FILE__), 'old-extconf.rb')
+ exit
end
-tcl_framework_header = with_config("tcl-framework-header")
-tk_framework_header = with_config("tk-framework-header")
-tcltk_framework = find_framework(tcl_framework_header, tk_framework_header)
-
-unless is_win32
- have_library("nsl", "t_open")
- have_library("socket", "socket")
- have_library("dl", "dlopen")
- have_library("m", "log")
+##############################################################
+# check configs
+##############################################################
+($cleanfiles ||= "") << 'config_list'
+config_list_file = 'config_list'
+config_list_file_source = File.join(File.dirname(__FILE__),'config_list.in')
+if !File.exist?(config_list_file) ||
+ File.ctime(config_list_file_source) > File.ctime(config_list_file)
+ old_config_list_file = config_list_file_source
+else
+ old_config_list_file = config_list_file
end
-tk_idir, tk_ldir = dir_config("tk")
-tcl_idir, tcl_ldir = dir_config("tcl")
-x11_idir, x11_ldir = dir_config("X11")
+current_configs = {'with'=>{}, 'enable'=>{}}
-tk_ldir2 = with_config("tk-lib")
-tcl_ldir2 = with_config("tcl-lib")
-x11_ldir2 = with_config("X11-lib")
+# setup keys by config_list.in
+IO.foreach(config_list_file_source){|line|
+ line.chomp!
+ line.lstrip!
+ next if line.empty? || line =~ /^\#/ #
+ mode, key, value = line.split(/\s+/, 3)
+ value ||= ""
+ current_configs[mode][key] = value rescue nil
+}
-tk_ldir_list = [tk_ldir2, tk_ldir]
-tcl_ldir_list = [tcl_ldir2, tcl_ldir]
+# define current value of keys
+IO.foreach(old_config_list_file){|line|
+ line.chomp!
+ line.lstrip!
+ next if line.empty? || line =~ /^\#/ #
+ mode, key, value = line.split(/\s+/, 3)
+ value ||= ""
+ if current_configs[mode] && current_configs[mode].has_key?(key)
+ current_configs[mode][key] = value
+ end
+}
-tklib = with_config("tklib")
-tcllib = with_config("tcllib")
-stubs = enable_config("tcltk_stubs") || with_config("tcltk_stubs")
+update_flag = false
+current_configs['with'].each_key{|key|
+ if (value = with_config(key).to_s) != current_configs['with'][key]
+ update_flag = true
+ current_configs['with'][key] = value
+ end
+}
+current_configs['enable'].each_key{|key|
+ if (value = enable_config(key).to_s) != current_configs['enable'][key]
+ update_flag = true
+ current_configs['enable'][key] = value
+ end
+}
-tcltk_version = with_config("tcltkversion")
+# update current_configs
+if update_flag || !File.exist?(config_list_file)
+ open(config_list_file, 'w'){|fobj|
+ fobj.print("# values of current configure options (generated by extconf.rb)\n");
+ ['with', 'enable'].each{|mode|
+ current_configs[mode].each_key{|key|
+ fobj.print("#{mode} #{key} #{current_configs[mode][key]}\n")
+ }
+ }
+ }
+end
-use_X = with_config("X11", (! is_win32))
+if update_flag
+ puts "Configure options for Ruby/Tk may be updated."
+ puts "So, delete files which depend on old configs."
+ File.delete(*Dir.glob("*.#{CONFIG['DLEXT']}", File::FNM_CASEFOLD))
+ File.delete(*Dir.glob("*.#{$OBJEXT}", File::FNM_CASEFOLD))
+ File.delete('Makefile') rescue nil
-def parse_tclConfig(file)
- # check tclConfig.sh/tkConfig.sh
- tbl = {}
- IO.foreach(file){|line|
- line.strip!
- next if line !~ /^([^\#=][^=]*)=(['"]|)(.*)\2$/
- key, val = $1, $3
- tbl[key] = val.gsub(/\$\{([^}]+)\}/){|s| tbl[$1]} rescue nil
- }
- tbl
+else
+ makefile = 'Makefile'
+ if File.exist?(makefile) &&
+ File.ctime(config_list_file) > File.ctime(makefile)
+ # no need to update Makefile
+ exit
+ end
end
-def check_tcltk_version(version)
- return [nil, nil] unless version
- version = version.strip
+##############################################################
+# fuctions
+##############################################################
+def is_win32?
+ /mswin|mingw|cygwin|bccwin/ =~ RUBY_PLATFORM
+end
+
+def is_macosx?
+ /darwin/ =~ RUBY_PLATFORM
+end
+
+def maybe_64bit?
+ /64|universal/ =~ RUBY_PLATFORM
+end
- tclver = version.dup
- tkver = version.dup
+def check_tcltk_version(version)
+ return [nil, nil] unless version.kind_of? String
- major = dot = minor = dot = plvl = ext = nil
+ tclver, tkver = version.split(',')
+ tclver = tclver.strip
+ return [tclver, tkver.strip] if tkver
- if version =~ /^(\d)(\.?)(\d)(\.?)(\d*)(.*)$/
- major = $1; minor_dot = $2; minor = $3; plvl_dot = $4; plvl = $5; ext = $6
+ dot = major = minor_dot = minor = plvl_dot = plvl = ext = nil
+ if tclver =~ /^(\d)(\.?)(\d)(\.?)(\d*)(.*)$/
+ major = $1; minor_dot = $2; minor = $3; plvl_dot = $4; plvl = $5; ext = $6
dot = ! minor_dot.empty?
if plvl_dot.empty? && ! plvl.empty?
minor << plvl
end
- elsif version =~ /^(\d)(\.?)(\d?)(.*)$/
+ elsif tclver =~ /^(\d)(\.?)(\d?)(.*)$/
major = $1; minor_dot = $2; minor = $3; ext = $4
dot = ! minor_dot.empty?
else # unknown -> believe user
@@ -105,19 +144,891 @@ def check_tcltk_version(version)
tkver = "4" + ((dot)? ".": "") + ((minor.empty)? "": "2") + ext
elsif major == "4" # Tk4.2 ( not support Tkversion < 4.2 )
# Tcl7.6
+ tkver = tclver
tclver = "7" + ((dot)? ".": "") + ((minor.empty)? "": "6") + ext
end
+ tkver = tclver unless tkver
+
[tclver, tkver]
end
-def find_tcl(tcllib, stubs, version, *opt_paths)
- default_paths = ["/usr/local/lib", "/usr/pkg/lib", "/usr/lib"]
- default_paths << "/Tcl/lib" # default for ActiveTcl
+def get_shlib_versions(major = 8, minor_max = 9, minor_min = 0, ext = "")
+ if tclcfg = TkLib_Config["tclConfig_info"]
+ major = tclcfg['TCL_MAJOR_VERSION'].to_i
+ minor_min = tclcfg['TCL_MINOR_VERSION'].to_i
- if (paths = opt_paths.compact).empty?
- paths = default_paths
+ elsif TkLib_Config["tcltkversion"]
+ tclver, tkver = TkLib_Config["tcltkversion"]
+ if tclver =~ /8\.?(\d)(.*)/
+ minor_min = $1.to_i
+ ext = $2
+ else
+ # unsupported version
+ return [""]
+ end
+ end
+
+ # if disable-stubs, version is fixed.
+ minor_max = minor_min unless TkLib_Config["tcltk-stubs"]
+
+ vers = []
+ minor_max.downto(minor_min){|minor|
+ vers << "#{major}.#{minor}#{ext}" unless ext.empty?
+ vers << "#{major}.#{minor}"
+ }
+
+ vers << ""
+end
+
+def get_shlib_path_head
+ path_head = []
+ path_dirs = []
+
+ if TkLib_Config["ActiveTcl"].kind_of?(String) # glob path
+ # path_head << TkLib_Config["ActiveTcl"]
+ path_head.concat Dir.glob(TkLib_Config["ActiveTcl"], File::FNM_CASEFOLD).sort.reverse
+ # path_dirs.concat Dir.glob(File.join(TkLib_Config["ActiveTcl"], 'lib'), File::FNM_CASEFOLD).sort.reverse
+ end
+
+ if CROSS_COMPILING
+ elsif is_win32?
+ if TkLib_Config["ActiveTcl"]
+ path_head.concat ["c:/ActiveTcl", "c:/Program Files/ActiveTcl",
+ "c:/Program Files (x86)/ActiveTcl"]
+ end
+ path_head.concat [
+ "c:/Tcl", "c:/Program Files/Tcl", "c:/Program Files (x86)/Tcl",
+ "/Tcl", "/Program Files/Tcl", "/Program Files (x86)/Tcl"
+ ]
+ path_head.uniq!
+ #path_head.each{|dir| path_dirs << dir.dup if File.directory? dir}
+ path_head.each{|dir| path_dirs << File.expand_path(dir) if File.directory? dir}
+
+ # for MinGW
+ ["/usr/local/lib64", "/usr/lib64", "/usr/local/lib", "/usr/lib"].each{|dir|
+ #path_dirs << dir if File.directory? dir
+ path_dirs << File.expand_path(dir) if File.directory? dir
+ }
+ path_dirs |= ENV['LIBRARY_PATH'].split(';').find_all{|dir| File.directory? dir}.map{|dir| File.expand_path(dir)} if ENV['LIBRARY_PATH']
+ path_dirs |= ENV['PATH'].split(';').find_all{|dir| File.directory? dir}.map{|dir| File.expand_path(dir)} if ENV['PATH']
+
+ else
+ [
+ '/opt', '/pkg', '/share',
+ '/usr/local/opt', '/usr/local/pkg', '/usr/local/share', '/usr/local',
+ '/usr/opt', '/usr/pkg', '/usr/share', '/usr/contrib', '/usr'
+ ].each{|dir|
+ next unless File.directory?(dir)
+
+ path_dirs << "#{dir}/lib64" if maybe_64bit?
+ path_dirs << "#{dir}/lib"
+ path_dirs << "#{dir}" unless Dir.glob("#{dir}/lib*.*", File::FNM_CASEFOLD).empty?
+
+ dirnames = []
+ if TkLib_Config["ActiveTcl"]
+ dirnames.concat ["ActiveTcl"]
+ end
+ dirnames.concat ["TclTk","Tcl_Tk","Tcl-Tk"]
+
+ dirnames.each{|name|
+ path_dirs << "#{dir}/#{name}" if File.directory?("#{dir}/#{name}")
+ path_head << "#{dir}/#{name}" unless Dir.glob("#{dir}/#{name}[-89_]*", File::FNM_CASEFOLD).empty?
+ }
+ }
+ end
+
+ unless TkLib_Config["space-on-tk-libpath"]
+ path_head.delete_if{|path| path =~ / /}
+ path_dirs.delete_if{|path| path =~ / /}
+ end
+
+ [path_head, path_dirs]
+end
+
+def find_macosx_framework
+ use_framework = is_macosx? && TkLib_Config["ActiveTcl"]
+
+ use_framework ||= (tcl_hdr = with_config("tcl-framework-header"))
+ use_framework ||= (tk_hdr = with_config("tk-framework-header"))
+ tcl_hdr = nil unless tcl_hdr.kind_of? String
+ tk_hdr = nil unless tk_hdr.kind_of? String
+ TkLib_Config["tcl-framework-header"] = tcl_hdr
+ TkLib_Config["tk-framework-header"] = tk_hdr
+
+ use_framework ||= (tcl_dir = with_config("tcl-framework-dir"))
+ tcl_dir = nil unless tcl_dir.kind_of? String
+ if !tcl_dir && tcl_hdr
+ # e.g. /Library/Frameworks/Tcl.framework/Headers
+ # ==> /Library/Frameworks/Tcl.framework
+ tcl_dir = File.dirname(tcl_hdr.strip.chomp('/'))
+ end
+ TkLib_Config["tcl-framework-dir"] = tcl_dir
+
+ use_framework ||= (tk_dir = with_config("tk-framework-dir"))
+ tk_dir = nil unless tk_dir.kind_of? String
+ if !tk_dir && tk_hdr
+ # e.g. /Library/Frameworks/Tk.framework/Headers
+ # ==> /Library/Frameworks/Tk.framework
+ tk_dir = File.dirname(tk_hdr.strip.chomp('/'))
+ end
+ TkLib_Config["tk-framework-dir"] = tk_dir
+
+ if tcl_dir && !tk_dir
+ tk_dir = File.join(File.dirname(tcl_dir), 'Tk.framework')
+ TkLib_Config["tk-framework-dir"] = tk_dir
+ elsif !tcl_dir && tk_dir
+ tcl_dir = File.join(File.dirname(tk_dir), 'Tcl.framework')
+ TkLib_Config["tcl-framework-dir"] = tcl_dir
+ end
+ if tcl_dir && tk_dir
+ TkLib_Config["tcltk-framework"] = File.dirname(tcl_dir) unless TkLib_Config["tcltk-framework"]
+ return [tcl_dir, tk_dir]
+ end
+
+ # framework is disabled?
+ if with_config("tcltk-framework") == false ||
+ enable_config("tcltk-framework") == false
+ return false
+ end
+
+ use_framework ||= (framework_dir = with_config("tcltk-framework"))
+ if framework_dir.kind_of? String
+ TkLib_Config["tcltk-framework"] = framework_dir.strip.chomp('/')
+ return [File.join(TkLib_Config["tcltk-framework"], 'Tcl.framework'),
+ File.join(TkLib_Config["tcltk-framework"], 'Tk.framework')]
+ end
+
+ unless enable_config("tcltk-framework", use_framework) ||
+ enable_config("mac-tcltk-framework", use_framework)
+ TkLib_Config["tcltk-framework"] = false
+ return false
+ end
+
+ paths = [
+ #"~/Library/Frameworks",
+ "/Library/Frameworks",
+ "/Network/Library/Frameworks", "/System/Library/Frameworks"
+ ]
+ paths.reverse! unless TkLib_Config["ActiveTcl"] # system has higher priority
+
+ paths.map{|dir| dir.strip.chomp('/')}.each{|dir|
+ next unless File.directory?(tcldir = File.join(dir, "Tcl.framework"))
+ next unless File.directory?(tkdir = File.join(dir, "Tk.framework"))
+ TkLib_Config["tcltk-framework"] = dir
+ return [tcldir, tkdir]
+ }
+
+ nil
+end
+
+def collect_tcltk_defs(tcl_defs_str, tk_defs_str)
+ conflicts = [
+ 'PACKAGE_NAME', 'PACKAGE_TARNAME', 'PACKAGE_VERSION',
+ 'PACKAGE_STRING', 'PACKAGE_BUGREPORT'
+ ]
+
+ begin
+ # Ruby 1.9.x or later
+ arch_config_h = RbConfig.expand($arch_hdrdir + "/ruby/config.h")
+ if File.exist?(arch_config_h)
+ keys = []
+ IO.foreach(arch_config_h){|line|
+ if line =~ /^#define +([^ ]+)/
+ keys << $1
+ end
+ }
+ conflicts = keys
+ end
+ rescue
+ # ignore, use default
+ end
+
+ if tcl_defs_str
+ tcl_defs = tcl_defs_str.split(/ ?-D/).map{|s|
+ s =~ /^([^=]+)(.*)$/
+ [$1, $2]
+ }
+ else
+ tcl_defs = []
+ end
+
+ if tk_defs_str
+ tk_defs = tk_defs_str.split(/ ?-D/).map{|s|
+ s =~ /^([^=]+)(.*)$/
+ [$1, $2]
+ }
+ else
+ tk_defs = []
+ end
+
+ defs = tcl_defs | tk_defs
+
+ defs.delete_if{|name,value|
+ conflicts.include?(name) ||
+ ( (vtcl = tcl_defs.assoc(name)) && (vtk = tk_defs.assoc(name)) &&
+ vtcl != vtk )
+ }
+
+ defs.map{|ary| s = ary.join(''); (s.strip.empty?)? "": "-D" << s}
+end
+
+def parse_tclConfig(file)
+ # check tclConfig.sh/tkConfig.sh
+ tbl = Hash.new{|h,k| h[k] = ""}
+ return tbl unless file
+ IO.foreach(file){|line|
+ line.strip!
+ next if line !~ /^([^\#=][^=]*)=(['"]|)(.*)\2$/
+ key, val = $1, $3
+ tbl[key] = val.gsub(/\$\{([^}]+)\}/){|s|
+ subst = $1
+ (tbl[subst])? tbl[subst]: s
+ } rescue nil
+ }
+ tbl
+end
+
+def get_libpath(lib_flag, lib_spec)
+ # get libpath from {TCL,Tk}_LIB_FLAG and {TCL,Tk}_LIB_SPEC
+ lib_spec.gsub(/(#{lib_flag}|-L)/, "").strip
+end
+
+def get_tclConfig_dirs
+ config_dir = []
+
+ if CROSS_COMPILING
+ elsif is_win32?
+ if TkLib_Config["ActiveTcl"]
+ dirs = []
+ if TkLib_Config["ActiveTcl"].kind_of?(String)
+ dirs << File.join(TkLib_Config["ActiveTcl"], 'lib')
+ end
+ dirs.concat [
+ "c:/ActiveTcl*/lib", "c:/Tcl*/lib",
+ "c:/Program Files*/ActiveTcl*/lib", "c:/Program Files*/Tcl*/lib",
+ "/ActiveTcl*/lib", "/Tcl*/lib",
+ "/Program Files*/ActiveTcl*/lib", "/Program Files*/Tcl*/lib"
+ ]
+ else
+ dirs = [
+ "c:/Tcl*/lib", "c:/Program Files*/Tcl*/lib",
+ "/Tcl*/lib", "/Program Files*/Tcl*/lib"
+ ]
+ end
+ dirs = dirs.collect{|d| Dir.glob(d, File::FNM_CASEFOLD)}.flatten.uniq
+
+ dirs |= ENV['LIBRARY_PATH'].split(';') if ENV['LIBRARY_PATH']
+ dirs |= ENV['PATH'].split(';') if ENV['PATH']
+
+ exeext = RbConfig::CONFIG['EXEEXT']
+ ENV['PATH'].split(File::PATH_SEPARATOR).each{|dir|
+ dir.tr!(File::ALT_SEPARATOR, File::SEPARATOR) if File::ALT_SEPARATOR
+ next if Dir.glob(File.join(dir, "{tclsh,wish}*#{exeext}"), File::FNM_CASEFOLD).empty?
+ dirs << File.expand_path(File.join(dir, '..', 'lib'))
+ dirs << dir
+ # dirs << File.expand_path(File.join(dir, '..'))
+ }
+
+ unless TkLib_Config["space-on-tk-libpath"]
+ dirs.delete_if{|path| path =~ / /}
+ end
+
+ config_dir.concat(dirs.zip(dirs))
+
+ else
+ if framework = find_macosx_framework()
+ config_dir.unshift(framework)
+ end
+
+ if activeTcl = TkLib_Config['ActiveTcl']
+ # check latest version at first
+ if is_macosx?
+ base = File.expand_path(activeTcl)
+ config_dir << [
+ File.join(base, 'Tcl.framework'), File.join(base, 'Tk.framework')
+ ]
+
+ config_dir << [
+ File.join(base, 'Tcl.framework', 'Versions', 'Current'),
+ File.join(base, 'Tk.framework', 'Versions', 'Current')
+ ]
+
+ Dir.glob(File.join(base, 'Tcl.framework',
+ 'Versions', '*')).sort.reverse.each{|dir|
+ next if dir =~ /Current/
+ config_dir << [dir, dir.gsub(/Tcl/, 'Tk')]
+ }
+ else
+ config_dir.concat(Dir.glob(File.join(activeTcl, 'lib'), File::FNM_CASEFOLD).sort.reverse)
+ end
+ end
+
+ config_dir << RbConfig::CONFIG['libdir']
+
+ ((maybe_64bit?)? ['lib64', 'lib']: ['lib']).each{|dir|
+ config_dir.concat [
+ File.join(RbConfig::CONFIG['exec_prefix'], dir),
+ File.join(RbConfig::CONFIG['prefix'], dir),
+ "/usr/local/opt/#{dir}", "/usr/local/pkg/#{dir}",
+ "/usr/local/share/#{dir}", "/usr/local/#{dir}",
+ "/usr/opt/#{dir}", "/usr/pkg/#{dir}", "/usr/share/#{dir}",
+ "/usr/contrib/#{dir}", "/usr/#{dir}"
+ ]
+ }
+
+ config_dir.concat [
+ '/opt', '/pkg', '/share',
+ '/usr/local/opt', '/usr/local/pkg', '/usr/local/share', '/usr/local',
+ '/usr/opt', '/usr/pkg', '/usr/share', '/usr/contrib', '/usr'
+ ].map{|dir|
+ Dir.glob(dir + "/{tcltk,tcl,tk}[#{TkLib_Config['major_nums']}*/lib",
+ File::FNM_CASEFOLD)
+ Dir.glob(dir + "/{tcltk,tcl,tk}[#{TkLib_Config['major_nums']}*",
+ File::FNM_CASEFOLD)
+ Dir.glob(dir + '/{tcltk,tcl,tk}/lib', File::FNM_CASEFOLD)
+ Dir.glob(dir + '/{tcltk,tcl,tk}', File::FNM_CASEFOLD)
+ }.flatten!
+
+ exeext = RbConfig::CONFIG['EXEEXT']
+ ENV['PATH'].split(File::PATH_SEPARATOR).each{|dir|
+ dir.tr!(File::ALT_SEPARATOR, File::SEPARATOR) if File::ALT_SEPARATOR
+ next if Dir.glob(File.join(dir, "{tclsh,wish}*#{exeext}"), File::FNM_CASEFOLD).empty?
+ config_dir << File.expand_path(File.join(dir, '..', 'lib'))
+ }
+
+ # for MacOS X
+ paths = [
+ #"~/Library/Tcl",
+ "/Library/Tcl", "/Network/Library/Tcl", "/System/Library/Tcl"
+ ]
+ paths.reverse! unless TkLib_Config["ActiveTcl"]
+
+ paths.each{|path|
+ config_dir << path
+ config_dir.concat(Dir.glob(File.join(path, '{tcl,tk}*'), File::FNM_CASEFOLD).sort.reverse.find_all{|d| File.directory?(d)})
+ }
+
+ paths = [
+ #"~/Library/Frameworks",
+ "/Library/Frameworks",
+ "/Network/Library/Frameworks", "/System/Library/Frameworks"
+ ]
+ paths.reverse! unless TkLib_Config["ActiveTcl"]
+
+ paths.each{|frmwk|
+ base = File.expand_path(frmwk)
+ config_dir << [
+ File.join(base, 'Tcl.framework'), File.join(base, 'Tk.framework')
+ ]
+
+ config_dir << [
+ File.join(base, 'Tcl.framework', 'Versions', 'Current'),
+ File.join(base, 'Tk.framework', 'Versions', 'Current')
+ ]
+
+ Dir.glob(File.join(base, 'Tcl.framework',
+ 'Versions', '*')).sort.reverse.each{|dir|
+ next if dir =~ /Current/
+ config_dir << [dir, dir.gsub(/Tcl/, 'Tk')]
+ }
+ }
+ end
+
+ config_dir
+end
+
+def get_ext_list()
+ exts = [CONFIG['DLEXT']]
+ exts.concat %w(dll lib) if is_win32?
+ exts.concat %w(bundle dylib) if is_macosx? || /nextstep|openstep|rhapsody/ =~ RUBY_PLATFORM
+
+ if enable_config("shared") == false
+ [CONFIG['LIBEXT'], "a"].concat exts
+ else
+ exts.concat [CONFIG['LIBEXT'], "a"]
+ end
+
+ if is_win32?
+ exts.map!{|ext| [ext.downcase, ext.upcase]}.flatten!
+ end
+
+ exts
+end
+
+def libcheck_for_tclConfig(tcldir, tkdir, tclconf, tkconf)
+ tcllib_ok = tklib_ok = false
+
+ if TkLib_Config["tcltk-stubs"]
+ stub = "stub"
+ tclfunc = "Tcl_InitStubs"
+ tkfunc = "Tk_InitStubs"
+ else
+ stub = ""
+ tclfunc = "Tcl_FindExecutable"
+ tkfunc = "Tk_Init"
+ end
+
+ incflags = ($INCFLAGS ||= "").dup
+ libpath = ($LIBPATH ||= []).dup
+ libs_param = ($libs ||= "").dup
+ tcllibs = nil
+ mkmf_param = nil
+
+ tclver, tkver = TkLib_Config["tcltkversion"]
+ exts = "(" + get_ext_list.join('|') + ")"
+
+ if tclver
+ tcl_glob = "*tcl#{stub}#{tclver}.*"
+ tcl_regexp = /^.*(tcl#{stub}#{tclver}.*)\.(#{exts}).*$/
+ elsif tclconf
+ tcl_glob = "*tcl#{stub}#{tclconf['TCL_MAJOR_VERSION']}{.,}#{tclconf['TCL_MINOR_VERSION']}*.*"
+ tcl_regexp = /^.*(tcl#{stub}#{tclconf['TCL_MAJOR_VERSION']}(?:\.|)#{tclconf['TCL_MINOR_VERSION']}.*)\.(#{exts}).*$/
+ end
+ if tkver
+ tk_glob = "*tk#{stub}#{tkver}.*"
+ tk_regexp = /^.*(tk#{stub}#{tkver}.*)\.(#{exts}).*$/
+ elsif tkconf
+ tk_glob = "*tk#{stub}#{tkconf['TK_MAJOR_VERSION']}{.,}#{tkconf['TK_MINOR_VERSION']}*.*"
+ tk_regexp = /^.*(tk#{stub}#{tkconf['TK_MAJOR_VERSION']}(?:\.|)#{tkconf['TK_MINOR_VERSION']}.*)\.#{exts}.*$/
+ end
+
+ tcllib_ok ||= !tclconf || Dir.glob(File.join(tcldir, tcl_glob), File::FNM_CASEFOLD).find{|file|
+ if file =~ tcl_regexp
+ libname = $1
+ ext = $2.downcase
+ begin
+ $INCFLAGS = incflags.dup << " " << tclconf["TCL_INCLUDE_SPEC"]
+ #puts "check #{file} #{$1} #{tclfunc} #{tcldir}"
+ #find_library($1, tclfunc, tcldir)
+ if (tclconf && tclconf["TCL_SHARED_BUILD"] == "0") ||
+ (ext != CONFIG['DLEXT'] && ext == CONFIG['LIBEXT']) || ext == "a"
+ # static link
+ tcllibs = $libs + " -DSTATIC_BUILD " + file.quote
+
+ # FIX ME: avoid pathname trouble (fail to find) on MinGW.
+ # e.g. TCL_INCLUDE_SPEC describes "-I/usr/local/include",
+ # but compiler can find "-IC:/msys/1.0/local/include" only.
+ $INCFLAGS << " -I" << File.join(File.dirname(File.dirname(file)),"include") if is_win32?
+ else
+ tcllibs = append_library($libs, libname)
+ tcllibs = "-L#{tcldir.quote} -Wl,-R#{tcldir.quote} " + tcllibs
+
+ # FIX ME: avoid pathname trouble (fail to find) on MinGW.
+ $INCFLAGS << " -I" << File.join(File.dirname(tcldir),"include") if is_win32?
+ end
+
+ $LIBPATH = libpath | [tcldir]
+ try_func(tclfunc, tcllibs, ["tcl.h"]) ||
+ ( try_func(tclfunc, tcllibs << " " << tclconf['TCL_LIBS'], ["tcl.h"]) if tclconf['TCL_LIBS'] )
+
+ ensure
+ mkmf_param = {
+ 'PATH' => file,
+ 'LIBNAME' => libname,
+ 'libs' => tcllibs.dup,
+ 'INCFLAGS' => $INCFLAGS.dup,
+ 'LIBPATH' => $LIBPATH.dup,
+ }
+ $LIBPATH = libpath.dup
+ $libs = libs_param.dup
+ end
+ end
+ }
+ tclconf['MKMF_PARAMS'] = mkmf_param if tclconf && tcllib_ok
+
+ tklib_ok ||= !tkconf || Dir.glob(File.join(tkdir, tk_glob), File::FNM_CASEFOLD).find{|file|
+ if file =~ tk_regexp
+ libname = $1
+ ext = $2.downcase
+ begin
+ #puts "check #{file} #{$1} #{tkfunc} #{tkdir}"
+ # find_library($1, tkfunc, tkdir)
+ if (tkconf && tkconf["TCL_SHARED_BUILD"] == "0") ||
+ (ext != CONFIG['DLEXT'] && ext == CONFIG['LIBEXT']) || ext == "a"
+ # static link
+ tklibs = " -DSTATIC_BUILD " + file.quote
+
+ # FIX ME: avoid pathname trouble (fail to find) on MinGW.
+ $INCFLAGS << " -I" << File.join(File.dirname(File.dirname(file)),"include") if is_win32?
+ else
+ tklibs = append_library("", libname)
+ #tklibs = append_library("", $1)
+ tklibs = "-L#{tkdir.quote} -Wl,-R#{tkdir.quote} " + tklibs
+
+ # FIX ME: avoid pathname trouble (fail to find) on MinGW.
+ $INCFLAGS << " -I" << File.join(File.dirname(tcldir),"include") if is_win32?
+ end
+
+ tklibs << " " << tcllibs if tcllibs
+ tmp_tklibs = tklibs.dup
+ $LIBPATH = libpath | [tkdir]
+ try_func(tkfunc, tklibs, ["tcl.h", "tk.h"]) ||
+ ( try_func(tkfunc, tklibs << " " << tkconf['TK_LIBS'], ["tcl.h", "tk.h"]) if tkconf['TK_LIBS'] ) ||
+ ( try_func(tkfunc, (tklibs = tmp_tklibs.dup) << " " << tkconf['TK_XLIBSW'], ["tcl.h", "tk.h"]) if tkconf['TK_XLIBSW'] ) ||
+ ( try_func(tkfunc, tklibs << " " << tkconf['TK_LIBS'], ["tcl.h", "tk.h"]) if tkconf['TK_LIBS'] )
+
+ ensure
+ mkmf_param = {
+ 'PATH' => file,
+ 'LIBNAME' => libname,
+ 'libs' => tklibs.dup,
+ 'INCFLAGS' => $INCFLAGS.dup,
+ 'LIBPATH' => $LIBPATH.dup,
+ }
+ $LIBPATH = libpath.dup
+ $libs = libs_param.dup
+ end
+ end
+ }
+
+ $INCFLAGS = incflags.dup
+ tkconf['MKMF_PARAMS'] = mkmf_param if tkconf && tklib_ok
+
+ [tcllib_ok, tklib_ok]
+end
+
+def search_tclConfig(*paths) # libdir list or [tcl-libdir|file, tk-libdir|file]
+ TkLib_Config["tclConfig_paths"] = []
+
+ paths.compact!
+ if paths.empty?
+ config_dir = get_tclConfig_dirs
+ elsif paths.length == 1 && !paths[0][0] && !paths[0][1]
+ config_dir = get_tclConfig_dirs.map{|dir|
+ if dir.kind_of? Array
+ [ (paths[0][0] == false)? nil: dir[0],
+ (paths[0][1] == false)? nil: dir[1] ]
+ else
+ [ (paths[0][0] == false)? nil: dir,
+ (paths[0][1] == false)? nil: dir ]
+ end
+ }
+ else
+ # fixed tclConfig
+ config_dir = []
+ paths.each{|path|
+ if path.kind_of?(Array)
+ config_dir << path
+ else
+ dirs = Dir.glob(path, File::FNM_CASEFOLD)
+ config_dir.concat(dirs.zip(dirs))
+ end
+ }
+ end
+
+ tclver, tkver = TkLib_Config['tcltkversion']
+ if tclver && tclver =~ /^\D*(\d)\.?(\d)?/ # ignore PATCH_LEVEL
+ tclver_major = $1
+ tclver_minor = $2
+ else
+ tclver_major = nil
+ tclver_minor = nil
+ end
+ if tkver && tkver =~ /^\D*(\d)\.?(\d)?/ # ignore PATCH_LEVEL
+ tkver_major = $1
+ tkver_minor = $2
+ else
+ tkver_major = nil
+ tkver_minor = nil
+ end
+
+ conf = nil
+
+ config_dir.uniq!
+ config_dir.map{|dir|
+ if dir.kind_of? Array
+ [ (dir[0])? dir[0].strip.chomp('/'): nil,
+ (dir[1])? dir[1].strip.chomp('/'): nil ]
+ else
+ dir.strip.chomp('/')
+ end
+ }.each{|dir|
+ print(".") # progress
+ # print("check #{dir} ==>");
+ if dir.kind_of? Array
+ tcldir, tkdir = dir
+ else
+ tcldir = tkdir = dir
+ end
+
+ tails = ['Config-shared.sh', 'config-shared.sh', 'Config.sh', 'config.sh']
+
+ if tcldir
+ if File.file?(tcldir)
+ tclcfg_files = [tcldir] * tails.length
+ else
+ tclcfg_files = tails.map{|f| File.join(tcldir, 'tcl' << f)}
+ end
+ else
+ tclcfg_files = [nil] * tails.length
+ end
+
+ if tkdir
+ if File.file?(tkdir)
+ tkcfg_files = [tkdir] * tails.length
+ else
+ tkcfg_files = tails.map{|f| File.join(tkdir, 'tk' << f)}
+ end
+ else
+ tkcfg_files = [nil] * tails.length
+ end
+
+ tclcfg_files.zip(tkcfg_files).map{|tclpath, tkpath|
+ [ (tclpath && File.exist?(tclpath))? File.expand_path(tclpath): tclpath,
+ (tkpath && File.exist?(tkpath))? File.expand_path(tkpath): tkpath ]
+ }.uniq.each{|tclpath, tkpath|
+ next if tclpath && !File.exist?(tclpath)
+ next if tkpath && !File.exist?(tkpath)
+
+ # parse tclConfig.sh/tkConfig.sh
+ tclconf = (tclpath)? parse_tclConfig(tclpath): nil
+ next if tclconf && tclver && ((tclver_major && tclver_major != tclconf['TCL_MAJOR_VERSION']) || (tclver_minor && tclver_minor != tclconf['TCL_MINOR_VERSION']))
+
+ tkconf = (tkpath)? parse_tclConfig(tkpath): nil
+ next if tkconf && tkver && ((tkver_major && tkver_major != tkconf['TK_MAJOR_VERSION']) || (tkver_minor && tkver_minor != tkconf['TK_MINOR_VERSION']))
+
+ # nativethread check
+ if !TkLib_Config["ruby_with_thread"]
+ if tclconf
+ if tclconf['TCL_THREADS'] == '1'
+ puts "\nWARNING: found #{tclpath.inspect}, but it WITH nativethread-support under ruby WITHOUT nativethread-support. So, ignore it."
+ TkLib_Config["tcl-NG-path"] << File.dirname(tclpath)
+ next
+ end
+ else
+ puts "\nWARNING: When not refer tclConfig.sh, cannot check native-thread support on Tcl/Tk libraries. Ruby, which is used now, does NOT support native-thread. So, if Tcl/Tk libraries support native-thread, it will NOT work properly."
+ end
+ end
+
+ # find tclConfig.sh & tkConfig.sh
+ conf = [tclconf, tkconf] unless conf
+
+ # check Tcl library
+ if is_macosx? && TkLib_Config["tcltk-framework"]
+ # if use framework, not check (believe it is installed properly)
+ tcllib_ok = tklib_ok = true
+ else
+ tcllib_ok, tklib_ok =
+ libcheck_for_tclConfig((tclpath)? File.dirname(tclpath): nil,
+ (tkpath)? File.dirname(tkpath): nil,
+ tclconf, tkconf)
+ end
+
+ unless tcllib_ok && tklib_ok
+ unless tcllib_ok
+ puts "\nWARNING: found #{tclpath.inspect}, but cannot find valid Tcl library for the tclConfig.sh. So, ignore it."
+ TkLib_Config["tcl-NG-path"] << File.dirname(tclpath)
+ end
+ unless tklib_ok
+ puts "\nWARNING: found #{tkpath.inspect}, but cannot find valid Tk library for the tkConfig.sh. So, ignore it."
+ TkLib_Config["tk-NG-path"] << File.dirname(tkpath)
+ end
+ next
+ end
+
+ #return [tclpath, tkpath]
+ # print(" #{[tclpath, tkpath].inspect}");
+ TkLib_Config["tclConfig_paths"] << [tclpath, tkpath]
+ }
+
+ # print("\n");
+ }
+
+ if is_macosx? && TkLib_Config["tcltk-stubs"]
+ CONFIG['LDSHARED'] << " -Xlinker -bind_at_load"
+ if config_string('LDSHAREDXX')
+ config_string('LDSHAREDXX') << " -Xlinker -bind_at_load"
+ end
+ end
+
+ if TkLib_Config["tclConfig_paths"].empty?
+ [nil, nil]
+ else
+ # find tclConfig.sh and tkConfig.sh
+ TkLib_Config["tclConfig_info"], TkLib_Config["tkConfig_info"] = conf
+ TkLib_Config["tclConfig_paths"][0]
+ end
+end
+
+def get_tclConfig(tclConfig_file, tkConfig_file, tclConfig_dir, tkConfig_dir)
+ use_tclConfig = tclConfig_file != false && tclConfig_dir != false
+ use_tkConfig = tkConfig_file != false && tkConfig_dir != false
+
+ unless use_tclConfig || use_tkConfig
+ puts("Don't use [tclConfig.sh, tkConfig.sh]")
+ return [nil, nil]
+ end
+
+ tclConfig_file = nil unless tclConfig_file.kind_of? String
+ tkConfig_file = nil unless tkConfig_file.kind_of? String
+ tclConfig_dir = nil unless tclConfig_dir.kind_of? String
+ tkConfig_dir = nil unless tkConfig_dir.kind_of? String
+
+ if use_tclConfig && !tclConfig_dir
+ if tclConfig_file
+ tclConfig_dir = File.dirname(tclConfig_file)
+ elsif tkConfig_dir
+ tclConfig_dir = tkConfig_dir
+ end
+ end
+ if use_tkConfig && !tkConfig_dir
+ if tkConfig_file
+ tkConfig_dir = File.dirname(tkConfig_file)
+ elsif tclConfig_dir
+ tkConfig_dir = tclConfig_dir
+ end
+ end
+ tkConfig_dir ||= tclConfig_dir
+
+ if use_tclConfig
+ TkLib_Config["tclConfig-file"] = tclConfig_file
+ TkLib_Config["tclConfig-dir"] = tclConfig_dir
+ else
+ tclConfig_file = false
+ tclConfig_dir = false
+ end
+ if use_tkConfig
+ TkLib_Config["tkConfig-file"] = tkConfig_file
+ TkLib_Config["tkConfig-dir"] = tkConfig_dir
+ else
+ tkConfig_file = false
+ tkConfig_dir = false
+ end
+
+ print ("Don't use tclConfig.sh (specified by configure option).\n") unless use_tclConfig
+ print ("Don't use tkConfig.sh (specified by configure option).\n") unless use_tkConfig
+ print("Search ")
+ print("tclConfig.sh", (tclConfig_dir)? " (in #{tclConfig_dir})": "") if use_tclConfig
+ print((use_tclConfig)? " and ": "", "tkConfig.sh", (tkConfig_dir)? " (in #{tkConfig_dir})": "") if use_tkConfig
+ print(".")
+
+ if tclConfig_dir || tkConfig_dir || !use_tclConfig || !use_tkConfig
+ tclConfig, tkConfig =
+ search_tclConfig([ ((tclConfig_file)? tclConfig_file: tclConfig_dir),
+ ((tkConfig_file)? tkConfig_file: tkConfig_dir) ])
+ else
+ tclConfig, tkConfig = search_tclConfig()
+ end
+ print("\n")
+ # TclConfig_Info = TkLib_Config["tclConfig_info"]
+ # TkConfig_Info = TkLib_Config["tkConfig_info"]
+
+ if tclConfig || tkConfig
+ dirs = TkLib_Config["tclConfig_paths"].map{|tclpath, tkpath|
+ [ (tclpath)? File.dirname(tclpath): nil,
+ (tkpath)? File.dirname(tkpath): nil ]
+ }
+ dirs |= dirs
+ puts("Valid [tclConfig.sh, tkConfig.sh] are found in #{dirs.inspect}")
+ puts("Use [tclConfig.sh, tkConfig.sh] == #{[tclConfig, tkConfig].inspect}")
+ $LIBPATH ||= []
+ $LIBPATH |= [File.dirname(tclConfig)] if tclConfig
+ $LIBPATH |= [File.dirname(tkConfig)] if tkConfig
+ #TkLib_Config["tclConfig_paths"].each{|tclcfg, tkcfg|
+ # $LIBPATH |= [File.dirname(tclcfg)] | [File.dirname(tkcfg)]
+ #}
+ else
+ puts("Fail to find [tclConfig.sh, tkConfig.sh]")
+ end
+
+ [tclConfig, tkConfig]
+end
+
+def check_tcl_NG_path(path_list)
+ path_list.find_all{|path| not TkLib_Config["tcl-NG-path"].include?(path) }
+end
+
+def check_tk_NG_path(path_list)
+ path_list.find_all{|path| not TkLib_Config["tk-NG-path"].include?(path) }
+end
+
+def check_NG_path(path_list)
+ path_list.find_all{|path|
+ not (TkLib_Config["tcl-NG-path"].include?(path) &&
+ TkLib_Config["tk-NG-path"].include?(path))
+ }
+end
+
+def check_shlib_search_path(paths)
+ if !paths || paths.empty?
+ path_list = []
+
+ #if TkLib_Config["ActiveTcl"]
+ # path_list.concat Dir.glob(TkLib_Config["ActiveTcl"], File::FNM_CASEFOLD).sort.reverse
+ #end
+ if TkLib_Config["ActiveTcl"].kind_of?(String) # glob path
+ path_list.concat Dir.glob(TkLib_Config["ActiveTcl"], File::FNM_CASEFOLD).sort.reverse
+ end
+
+ vers = get_shlib_versions
+ path_head, path_dirs = get_shlib_path_head
+
+ path_list.concat vers.map{|ver|
+ path_head.map{|head|
+ if ver.empty?
+ head + "/lib"
+ else
+ dirs = []
+
+ if Dir.glob(head, File::FNM_CASEFOLD).find{|dir| dir == head}
+ dirs << head + "/lib"
+ end
+
+ if !Dir.glob(head + "-*", File::FNM_CASEFOLD).empty?
+ dirs << head + "-#{ver}/lib" if !Dir.glob(head + "-[89].*", File::FNM_CASEFOLD).empty?
+ dirs << head + "-#{ver.delete('.')}/lib" if !Dir.glob(head + "-[89][0-9]*", File::FNM_CASEFOLD).empty?
+ end
+
+ if !Dir.glob(head + "[_-]*", File::FNM_CASEFOLD).empty?
+ dirs << head + "_#{ver}/lib" if !Dir.glob(head + "_[89].*", File::FNM_CASEFOLD).empty?
+ dirs << head + "-#{ver}/lib" if !Dir.glob(head + "-[89].*", File::FNM_CASEFOLD).empty?
+ dirs << head + "_#{ver.delete('.')}/lib" if !Dir.glob(head + "_[89][0-9]*", File::FNM_CASEFOLD).empty?
+ dirs << head + "-#{ver.delete('.')}/lib" if !Dir.glob(head + "-[89][0-9]*", File::FNM_CASEFOLD).empty?
+ end
+
+ dirs
+ end
+ }
+ }.flatten!
+
+ path_list.concat path_dirs
+
+ else
+ # paths is a string with PATH environment style
+ path_list = paths.split((is_win32?)? ';': ':')
+ end
+
+ path_list = check_NG_path(path_list)
+ path_list.map!{|path| path.strip}
+
+ if !CROSS_COMPILING and (is_win32? || is_macosx?)
+ # exist-dir only
+ path_list.delete_if{|path| Dir.glob(File.join(path, "*.{a,so,dll,lib}")).empty?}
+ end
+
+ # keep paths for searching dynamic libs
+ #$LIBPATH |= path_list
+ path_list.uniq
+end
+
+def search_vers_on_path(vers, path, *heads)
+ exts = get_ext_list.join(',')
+ files = Dir.glob(File.join(path, "*{#{heads.join(',')}}*.{#{exts}}"), File::FNM_CASEFOLD)
+ vers.find_all{|ver| files.find{|f| f =~ /(#{ver}|#{ver.delete('.')})/} }
+end
+
+def find_tcl(tcllib, stubs, version, *opt_paths)
+ if TclConfig_Info['MKMF_PARAMS']
+ # already checked existence of tcl library based on tclConfig.sh
+ ($INCFLAGS ||= "") << " " << TclConfig_Info['MKMF_PARAMS']['INCFLAGS']
+ $LIBPATH ||= []; $LIBPATH |= TclConfig_Info['MKMF_PARAMS']['LIBPATH']
+ ($libs ||= "") << " " << TclConfig_Info['MKMF_PARAMS']['libs']
+ return [true, nil, nil, nil]
end
+ # else, no available tclConfig.sh on the system
+
+ print "Search Tcl library"
if stubs
func = "Tcl_InitStubs"
@@ -130,37 +1041,138 @@ def find_tcl(tcllib, stubs, version, *opt_paths)
if version && ! version.empty?
versions = [version]
else
- versions = %w[8.7 8.6 8.5 8.4 8.3 8.2 8.1 8.0 7.6]
+ versions = TkLib_Config['search_versions']
end
- if tcllib
- st = find_library(tcllib, func, *paths)
- else
- st = versions.find { |ver|
- find_library("#{lib}#{ver}", func, *paths) or
- find_library("#{lib}#{ver.delete('.')}", func, *paths) or
- find_library("#{lib}#{ver}g", func, *paths) or
- find_library("#{lib}#{ver.delete('.')}g", func, *paths) or
- find_library("tcl#{ver}", func, *paths) or
- find_library("tcl#{ver.delete('.')}", func, *paths) or
- find_library("tcl#{ver}g", func, *paths) or
- find_library("tcl#{ver.delete('.')}g", func, *paths)
- } || (!version && find_library(lib, func, *paths))
+ default_paths = []
+
+ default_paths.concat [
+ RbConfig::CONFIG['libdir'],
+ File.join(RbConfig::CONFIG['exec_prefix'], 'lib'),
+ File.join(RbConfig::CONFIG['prefix'], 'lib'),
+ "/usr/local/lib", "/usr/pkg/lib", "/usr/contrib/lib", "/usr/lib"
+ ].find_all{|dir| File.directory?(dir)} unless CROSS_COMPILING
+
+ if TkLib_Config["ActiveTcl"].kind_of?(String) # glob path
+ default_paths.concat Dir.glob(TkLib_Config["ActiveTcl"]).sort.reverse.map{|d| d << "/lib"}
end
- unless st
- puts("Warning:: cannot find Tcl library. tcltklib will not be compiled (tcltklib is disabled on your Ruby == Ruby/Tk will not work). Please check configure options.")
+ if !CROSS_COMPILING and is_win32?
+ default_paths.concat [
+ "c:/Tcl/lib","c:/Program Files/Tcl/lib","c:/Program Files (x86)/Tcl/lib",
+ "/Tcl/lib","/Program Files/Tcl/lib","/Program Files (x86)/Tcl/lib"
+ ].find_all{|dir| File.directory?(dir)}.map{|dir| File.expand_path(dir)}
+
+ # for MinGW
+ ["/usr/local/lib64", "/usr/lib64", "/usr/local/lib", "/usr/lib"].each{|dir|
+ default_paths << File.expand_path(dir) if File.directory? dir
+ }
+
+ default_paths |= ENV['LIBRARY_PATH'].split(';').find_all{|dir| File.directory? dir}.map{|dir| File.expand_path(dir)} if ENV['LIBRARY_PATH']
+ default_paths |= ENV['PATH'].split(';').find_all{|dir| File.directory? dir}.map{|dir| File.expand_path(dir)} if ENV['PATH']
end
- st
-end
-def find_tk(tklib, stubs, version, *opt_paths)
- default_paths = ["/usr/local/lib", "/usr/pkg/lib", "/usr/lib"]
- default_paths << "/Tcl/lib" # default for ActiveTcl
+ default_paths |= TkLib_Config["checked_shlib_dirs"]
+
+ unless TkLib_Config["space-on-tk-libpath"]
+ default_paths.delete_if{|path| path =~ / /}
+ end
if (paths = opt_paths.compact).empty?
- paths = default_paths
+ paths = check_tcl_NG_path(default_paths)
+ end
+
+ incflags = ($INCFLAGS ||= "").dup
+ libpath = ($LIBPATH ||= []).dup
+ libs_param = ($libs ||= "").dup
+ tcllibs = nil
+
+ exts = "(" + get_ext_list.join('|') + ")"
+
+ paths.map{|path|
+ lib_w_sufx = lib
+ begin
+ $LIBPATH |= [path]
+ inc = [File.join(File.dirname(path),"include"), File.dirname(path)]
+ inc.each{|f| $INCFLAGS << " -I" << f }
+
+ if tcllib
+ print(".")
+ if have_library(tcllib, func, ["tcl.h"])
+ return [true, path, lib_w_sufx, nil, *inc]
+ end
+ else
+ sufx_list = ['', 't', 'g', 's', 'x']
+ search_vers_on_path(versions, path, lib, 'tcl').find{|ver|
+ dir_enum = Dir.foreach(path)
+ no_dot_ver = ver.delete('.')
+ libnames = ["#{lib}#{ver}", "#{lib}#{no_dot_ver}"]
+ libnames << "tcl#{ver}" << "tcl#{no_dot_ver}" if lib != "tcl"
+ libnames.find{|libname|
+ sufx_list.find{|sufx|
+ print(".")
+ dir_enum.map{|fname|
+ if fname =~ /^.*(#{libname}.*#{sufx})\.(#{exts}).*$/
+ [fname, $1, $2]
+ end
+ }.compact.find{|fname, lib_w_sufx, ext|
+ ext.downcase!
+ if (ext != CONFIG['DLEXT'] && ext == CONFIG['LIBEXT']) ||
+ ext == "a"
+ # static link
+ tcllibs = libs_param + " -DSTATIC_BUILD " + fname.quote
+ else
+ tcllibs = append_library($libs, lib_w_sufx)
+ tcllibs = "-L#{path.quote} -Wl,-R#{path.quote} " + tcllibs
+ end
+ if try_func(func, tcllibs, ["tcl.h"])
+ return [true, path, nil, tcllibs, *inc]
+ end
+ }
+ }
+ }
+ }
+ if (!version && (print(".");try_func(func, libs_param, ["tcl.h"])))
+ return [true, path, lib_w_sufx, nil, *inc]
+ end
+ end
+ ensure
+ $LIBPATH = libpath.dup
+ $libs = libs_param.dup
+ $INCFLAGS = incflags.dup
+ end
+ }
+
+ print("\n") # progress
+ [false, nil, nil, nil]
+end
+
+def parse_TK_LIBS(tklibs)
+ sfx = "lib|shlib|dll|so"
+ re = /(("|')[^"']+\.(#{sfx})\2|[^"' ]+\.(#{sfx})|-l("|')[^"']+\5|-l[^" ]+)/#'
+
+ tklibs.scan(re).map{|lib,|
+ if lib =~ /^("|')([^"]+)\.(#{sfx})\1/
+ "\"-l#{$2}\""
+ elsif lib =~ /([^" ]+)\.(#{sfx})/
+ "-l#{$1}"
+ else
+ lib
+ end
+ }.join(' ')
+end
+
+def find_tk(tklib, stubs, version, *opt_paths)
+ if TkConfig_Info['MKMF_PARAMS']
+ # already checked existence of tcl library based on tkConfig.sh
+ ($INCFLAGS ||= "") << " " << TkConfig_Info['MKMF_PARAMS']['INCFLAGS']
+ $LIBPATH ||= []; $LIBPATH |= TkConfig_Info['MKMF_PARAMS']['LIBPATH']
+ ($libs ||= "") << " " << TkConfig_Info['MKMF_PARAMS']['libs']
+ return [true, nil, nil, nil]
end
+ # else, no available tkConfig.sh on the system
+
+ print "Search Tk library"
if stubs
func = "Tk_InitStubs"
@@ -173,70 +1185,383 @@ def find_tk(tklib, stubs, version, *opt_paths)
if version && ! version.empty?
versions = [version]
else
- versions = %w[8.7 8.6 8.5 8.4 8.3 8.2 8.1 8.0 4.2]
+ versions = TkLib_Config['search_versions']
end
- if tklib
- st = find_library(tklib, func, *paths)
+ default_paths = []
+
+ default_paths.concat [
+ RbConfig::CONFIG['libdir'],
+ File.join(RbConfig::CONFIG['exec_prefix'], 'lib'),
+ File.join(RbConfig::CONFIG['prefix'], 'lib'),
+ "/usr/local/lib", "/usr/pkg/lib", "/usr/contrib/lib", "/usr/lib"
+ ].find_all{|dir| File.directory?(dir)} unless CROSS_COMPILING
+
+ if !CROSS_COMPILING and is_win32?
+ default_paths.concat [
+ "c:/Tcl/lib","c:/Program Files/Tcl/lib","c:/Program Files (x86)/Tcl/lib",
+ "/Tcl/lib","/Program Files/Tcl/lib","/Program Files (x86)/Tcl/lib"
+ ].find_all{|dir| File.directory?(dir)}
+
+ # for MinGW
+ ["/usr/local/lib64", "/usr/lib64", "/usr/local/lib", "/usr/lib"].each{|dir|
+ default_paths << File.expand_path(dir) if File.directory? dir
+ }
+
+ default_paths |= ENV['LIBRARY_PATH'].split(';').find_all{|dir| File.directory? dir}.map{|dir| File.expand_path(dir)} if ENV['LIBRARY_PATH']
+ default_paths |= ENV['PATH'].split(';').find_all{|dir| File.directory? dir}.map{|dir| File.expand_path(dir)} if ENV['PATH']
+ end
+
+ default_paths |= TkLib_Config["checked_shlib_dirs"]
+
+ unless TkLib_Config["space-on-tk-libpath"]
+ default_paths.delete_if{|path| path =~ / /}
+ end
+
+ if (paths = opt_paths.compact).empty?
+ paths = check_tk_NG_path(default_paths)
+ end
+
+ incflags = ($INCFLAGS ||= "").dup
+ libpath = ($LIBPATH ||= []).dup
+ libs_param = ($libs ||= "").dup
+ tcllibs = nil
+
+ exts = "(" + get_ext_list.join('|') + ")"
+
+ paths.map{|path|
+ lib_w_sufx = lib
+ begin
+ $LIBPATH |= [path]
+ inc = [File.join(File.dirname(path),"include"), File.dirname(path)]
+ inc.each{|f| $INCFLAGS << " -I" << f }
+
+ if tklib
+ print(".")
+ if have_library(tklib, func, ["tcl.h", "tk.h"])
+ return [true, path, lib_w_sufx, nil, *inc]
+ end
+ else
+ sufx_list = ['', 't', 'g', 's', 'x']
+ search_vers_on_path(versions, path, lib, 'tk').find{|ver|
+ dir_enum = Dir.foreach(path)
+ no_dot_ver = ver.delete('.')
+ libnames = ["#{lib}#{ver}", "#{lib}#{no_dot_ver}"]
+ libnames << "tk#{ver}" << "tk#{no_dot_ver}" if lib != "tk"
+ libnames.find{|libname|
+ sufx_list.find{|sufx|
+ print(".")
+ dir_enum.map{|fname|
+ if fname =~ /^.*(#{libname}.*#{sufx})\.(#{exts}).*$/
+ [fname, $1, $2]
+ end
+ }.compact.find{|fname, lib_w_sufx, ext|
+ if (ext != CONFIG['DLEXT'] && ext == CONFIG['LIBEXT']) ||
+ ext == "a"
+ # static link
+ tklibs = libs_param + " -DSTATIC_BUILD " + fname.quote
+ else
+ tklibs = append_library($libs, lib_w_sufx)
+ tklibs = "-L#{path.quote} -Wl,-R#{path.quote} " + tklibs
+ end
+ if try_func(func, tklibs, ["tcl.h", "tk.h"])
+ return [true, path, nil, tklibs, *inc]
+ end
+ }
+ }
+ }
+ }
+ if (!version && (print(".");try_func(func, libs_param, ["tcl.h", "tk.h"])))
+ return [true, path, lib_w_sufx, nil, *inc]
+ end
+ end
+ ensure
+ $LIBPATH = libpath
+ $libs = libs_param
+ $INCFLAGS = incflags.dup
+ end
+ }
+
+ print("\n") # progress
+ [false, nil, nil, nil]
+end
+
+def find_tcltk_library(tcllib, tklib, stubs, tclversion, tkversion,
+ tcl_opt_paths, tk_opt_paths)
+ st,path,lib,libs,*inc = find_tcl(tcllib, stubs, tclversion, *tcl_opt_paths)
+ unless st
+ puts("Warning:: cannot find Tcl library. tcltklib will not be compiled (tcltklib is disabled on your Ruby. That is, Ruby/Tk will not work). Please check configure options.")
+ return false
else
- st = versions.find { |ver|
- find_library("#{lib}#{ver}", func, *paths) or
- find_library("#{lib}#{ver.delete('.')}", func, *paths) or
- find_library("#{lib}#{ver}g", func, *paths) or
- find_library("#{lib}#{ver.delete('.')}g", func, *paths) or
- find_library("tk#{ver}", func, *paths) or
- find_library("tk#{ver.delete('.')}", func, *paths) or
- find_library("tk#{ver}g", func, *paths) or
- find_library("tk#{ver.delete('.')}g", func, *paths)
- } || (!version && find_library(lib, func, *paths))
+ ($LIBPATH ||= []; $LIBPATH |= [path]) if path
+ $libs = append_library($libs, lib) if lib
+ ($libs ||= "") << " " << libs if libs
+ $INCFLAGS ||= ""
+ inc.each{|f| $INCFLAGS << " -I" << f}
end
+ st,path,lib,libs,*inc = find_tk(tklib, stubs, tkversion, *tk_opt_paths)
unless st
- puts("Warning:: cannot find Tk library. tcltklib will not be compiled (tcltklib is disabled on your Ruby == Ruby/Tk will not work). Please check configure options.")
+ puts("Warning:: cannot find Tk library. tcltklib will not be compiled (tcltklib is disabled on your Ruby. That is, Ruby/Tk will not work). Please check configure options.")
+ return false
+ else
+ ($LIBPATH ||= []; $LIBPATH |= [path]) if path
+ $libs = append_library($libs, lib) if lib && !lib.empty?
+ ($libs ||= "") << " " << libs if libs
+ $INCFLAGS ||= ""
+ inc.each{|f| $INCFLAGS << " -I" << f}
end
- st
+
+ true
end
def find_tcltk_header(tclver, tkver)
- base_dir = ['/usr/local/include', '/usr/pkg/include', '/usr/include']
- base_dir << '/Tcl/include' # default for ActiveTcl
+ base_dir = []
+
+ base_dir.concat [
+ File.join(RbConfig::CONFIG['prefix'], 'include'),
+ "/usr/local/include", "/usr/pkg/include", "/usr/contrib/include",
+ "/usr/include"
+ ].find_all{|dir| File.directory?(dir)}.map{|dir| File.expand_path(dir)}
+
+ if !CROSS_COMPILING && is_win32?
+ base_dir.concat [
+ "c:/Tcl/include","c:/Program Files/Tcl/include",
+ "c:/Program Files (x86)/Tcl/include",
+ "/Tcl/include","/Program Files/Tcl/include",
+ "/Program Files (x86)/Tcl/include"
+ ].find_all{|dir| File.directory?(dir)}.map{|dir| File.expand_path(dir)}
+
+ if ENV['CPATH']
+ base_dir |= ENV['CPATH'].split(';').find_all{|dir| File.directory?(dir)}.map{|dir| File.expand_path(dir)}
+ end
+ end
+
+ base_dir |= TkLib_Config["checked_shlib_dirs"]
+
+ unless TkLib_Config["space-on-tk-libpath"]
+ base_dir.delete_if{|path| path =~ / /}
+ end
- unless have_tcl_h = have_header('tcl.h')
- if tclver && ! tclver.empty?
- versions = [tclver]
+ # tcl.h
+ if TclConfig_Info['MKMF_PARAMS']
+ # already checked existence of tcl headers based on tclConfig.sh
+ have_tcl_h = true
+ else
+ print "\nSearch tcl.h"
+ if enable_config("tcl-h-ver-check", true) &&
+ tclver && tclver =~ /^\D*(\d)\.?(\d)/
+ major = $1; minor = $2
+ else
+ major = minor = nil
+ end
+ print(".") # progress
+ if major && minor
+ # version check on tcl.h
+ have_tcl_h = try_cpp("#include <tcl.h>\n#if TCL_MAJOR_VERSION != #{major} || TCL_MINOR_VERSION != #{minor}\n#error VERSION does not match\n#endif")
else
- versions = %w[8.7 8.6 8.5 8.4 8.3 8.2 8.1 8.0 7.6]
+ have_tcl_h = have_header('tcl.h')
+ end
+ unless have_tcl_h
+ if tclver && ! tclver.empty?
+ versions = [tclver]
+ else
+ versions = TkLib_Config['search_versions']
+ end
+ paths = base_dir.dup
+ (versions + [""]).each{|ver|
+ paths.concat(base_dir.map{|dir|
+ [
+ dir + '/tcl' + ver,
+ dir + '/tcl' + ver + '/include',
+ dir + '/tcl' + ver.delete('.'),
+ dir + '/tcl' + ver.delete('.') + '/include'
+ ]
+ }.flatten)
+ }
+ paths = paths.map{|dir|
+ (File.directory?(dir))? File.expand_path(dir): nil
+ }.compact.uniq
+
+ code = "#include <tcl.h>\n"
+ code << "#if TCL_MAJOR_VERSION != #{major}\n#error MAJOR_VERSION does not match\n#endif\n" if major
+ code << "#if TCL_MINOR_VERSION != #{minor}\n#error MINOR_VERSION does not match\n#endif\n" if minor
+ have_tcl_h = paths.find{|path|
+ print(".") # progress
+ inc_opt = " -I#{path.quote}"
+ if try_cpp(code, inc_opt)
+ ($INCFLAGS ||= "") << inc_opt
+ true
+ else
+ false
+ end
+ }
end
- paths = base_dir.dup
- versions.each{|ver| paths.concat(base_dir.map{|dir| dir + '/tcl' + ver})}
- have_tcl_h = find_header('tcl.h', *paths)
end
- unless have_tk_h = have_header("tk.h")
- if tkver && ! tkver.empty?
- versions = [tkver]
+ # tk.h
+ if TkConfig_Info['MKMF_PARAMS']
+ # already checked existence of tk headers based on tkConfig.sh
+ have_tk_h = true
+ else
+ print "\nSearch tk.h"
+ if enable_config("tk-h-ver-check", true) &&
+ tkver && tkver =~ /^\D*(\d)\.?(\d)/
+ major = $1; minor = $2
+ else
+ major = minor = nil
+ end
+ print(".") # progress
+ if major && minor
+ # version check on tk.h
+ have_tk_h = try_cpp("#include <tk.h>\n#if TK_MAJOR_VERSION != #{major} || TK_MINOR_VERSION != #{minor}\n#error VERSION does not match\n#endif")
else
- versions = %w[8.7 8.6 8.5 8.4 8.3 8.2 8.1 8.0 4.2]
+ have_tk_h = have_header('tk.h')
+ end
+ unless have_tk_h
+ if tkver && ! tkver.empty?
+ versions = [tkver]
+ else
+ versions = TkLib_Config['search_versions']
+ end
+ paths = base_dir.dup
+ (versions + [""]).each{|ver|
+ paths.concat(base_dir.map{|dir|
+ [
+ dir + '/tk' + ver,
+ dir + '/tk' + ver + '/include',
+ dir + '/tk' + ver.delete('.'),
+ dir + '/tk' + ver.delete('.') + '/include'
+ ]
+ }.flatten)
+ }
+ paths = paths.map{|dir|
+ (File.directory?(dir))? File.expand_path(dir): nil
+ }.compact.uniq
+
+ code = "#include <tcl.h>\n#include <tk.h>\n"
+ code << "#if TK_MAJOR_VERSION != #{major}\n#error MAJOR_VERSION does not match\n#endif\n" if major
+ code << "#if TK_MINOR_VERSION != #{minor}\n#error MINOR_VERSION does not match\n#endif\n" if minor
+ have_tk_h = paths.find{|path|
+ print(".") # progress
+ inc_opt = " -I#{path.quote}"
+ if try_cpp(code, inc_opt)
+ ($INCFLAGS ||= "") << inc_opt
+ true
+ else
+ false
+ end
+ }
end
- paths = base_dir.dup
- versions.each{|ver| paths.concat(base_dir.map{|dir| dir + '/tk' + ver})}
- have_tk_h = find_header('tk.h', *paths)
end
+ puts "Can't find \"tcl.h\"." unless have_tcl_h
+ puts "Can't find \"tk.h\"." unless have_tk_h
have_tcl_h && have_tk_h
end
+def setup_for_macosx_framework(tclver, tkver)
+ # use framework, but no tclConfig.sh
+ unless $LDFLAGS && $LDFLAGS.include?('-framework')
+ ($LDFLAGS ||= "") << ' -framework Tk -framework Tcl'
+ end
+
+ if TkLib_Config["tcl-framework-header"]
+ TclConfig_Info['TCL_INCLUDE_SPEC'][0,0] =
+ " -I#{TkLib_Config["tcl-framework-header"].quote} "
+ else
+ tcl_base = File.join(TkLib_Config["tcltk-framework"], 'Tcl.framework')
+ if tclver
+ TclConfig_Info['TCL_INCLUDE_SPEC'] <<
+ " -I#{File.join(tcl_base, 'Versions', tclver, 'Headers').quote} "
+ end
+
+ TclConfig_Info['TCL_INCLUDE_SPEC'] << File.join(tcl_base, 'Headers')
+
+ unless tclver
+ dir = Dir.glob(File.join(tcl_base, 'Versions', '*', 'Headers'),
+ File::FNM_CASEFOLD).sort.reverse[0]
+ TclConfig_Info['TCL_INCLUDE_SPEC'] << "-I#{dir.quote} " if dir
+ end
+ end
+
+ if TkLib_Config["tk-framework-header"]
+ TkConfig_Info['TK_INCLUDE_SPEC'][0,0] =
+ " -I#{TkLib_Config["tk-framework-header"].quote} "
+ else
+ tk_base = File.join(TkLib_Config["tcltk-framework"], 'Tk.framework')
+ if tkver
+ TkConfig_Info['TK_INCLUDE_SPEC'] <<
+ " -I#{File.join(tk_base, 'Versions', tkver, 'Headers').quote} "
+ end
+
+ TkConfig_Info['TK_INCLUDE_SPEC'] << File.join(tk_base, 'Headers')
+
+ unless tkver
+ dir = Dir.glob(File.join(tk_base, 'Versions', '*', 'Headers'),
+ File::FNM_CASEFOLD).sort.reverse[0]
+ TkConfig_Info['TK_INCLUDE_SPEC'] << "-I#{dir.quote} " if dir
+ end
+ end
+end
+
def find_X11(*opt_paths)
- default_paths =
- [ "/usr/X11/lib", "/usr/lib/X11", "/usr/X11R6/lib", "/usr/openwin/lib" ]
- paths = opt_paths.compact.concat(default_paths)
+ defaults =
+ [ "/usr/X11*/lib", "/usr/lib/X11*", "/usr/local/X11*", "/usr/openwin/lib" ]
+ paths = []
+ opt_paths.compact.each{|path| paths.concat(Dir.glob(path.strip.chomp('/'), File::FNM_CASEFOLD))}
+ defaults.compact.each{|path| paths.concat(Dir.glob(path.strip.chomp('/'), File::FNM_CASEFOLD))}
st = find_library("X11", "XOpenDisplay", *paths)
unless st
- puts("Warning:: cannot find X11 library. tcltklib will not be compiled (tcltklib is disabled on your Ruby == Ruby/Tk will not work). Please check configure options. If your Tcl/Tk don't require X11, please try --without-X11.")
+ puts("Warning:: cannot find X11 library. tcltklib will not be compiled (tcltklib is disabled on your Ruby. That is, Ruby/Tk will not work). Please check configure options. If your Tcl/Tk don't require X11, please try --without-X11.")
end
st
end
+def search_X_libraries
+ use_tkConfig = false
+ if TkConfig_Info['config_file_path']
+ # use definitions on tkConfig.sh
+ if (TkConfig_Info['TK_XINCLUDES'] &&
+ !TkConfig_Info['TK_XINCLUDES'].strip.empty?) ||
+ (TkConfig_Info['TK_XLIBSW'] && !TkConfig_Info['TK_XLIBSW'].strip.empty?)
+ use_tkConfig = true
+ #use_X = true && with_config("X11", ! is_win32?)
+ use_X = with_config("X11", true)
+ else
+ #use_X = false || with_config("X11", false)
+ use_X = with_config("X11", false)
+ end
+ else
+ # depend on configure options
+ use_X = with_config("X11", !(is_win32? || TkLib_Config["tcltk-framework"]))
+ end
+
+ if TkConfig_Info['TK_XINCLUDES'] &&
+ !TkConfig_Info['TK_XINCLUDES'].strip.empty?
+ ($INCFLAGS ||= "") << " " << TkConfig_Info['TK_XINCLUDES'].strip
+ end
+
+ if use_X
+ puts("Use X11 libraries (or use TK_XINCLUDES/TK_XLIBSW information on tkConfig.sh).")
+ x11_idir, x11_ldir = dir_config("X11")
+ x11_ldir2 = with_config("X11-lib")
+ unless find_X11(x11_ldir2, x11_ldir)
+ puts("Can't find X11 libraries. ")
+ if use_tkConfig &&
+ TkConfig_Info['TK_XLIBSW'] && !TkConfig_Info['TK_XLIBSW'].strip.empty?
+ puts("But, try to use TK_XLIBSW information (believe tkCOnfig.sh).")
+ ($libs ||= "") << " " << TkConfig_Info['TK_XLIBSW'] << " "
+ else
+ puts("So, can't make tcltklib.so which is required by Ruby/Tk.")
+ exit
+ end
+ end
+ end
+
+ use_X
+end
+
def pthread_check()
tcl_major_ver = nil
tcl_minor_ver = nil
@@ -251,56 +1576,50 @@ def pthread_check()
tcl_enable_thread = nil
end
- if (tclConfig = with_config("tclConfig-file"))
+ if TclConfig_Info['config_file_path']
if tcl_enable_thread == true
- puts("Warning: --with-tclConfig-file option is ignored, because --enable-tcl-thread option is given.")
+ puts("Warning: definiton of tclConfig.sh is ignored, because --enable-tcl-thread option is given.")
elsif tcl_enable_thread == false
- puts("Warning: --with-tclConfig-file option is ignored, because --disable-tcl-thread option is given.")
+ puts("Warning: definition of tclConfig.sh is ignored, because --disable-tcl-thread option is given.")
else
# tcl-thread is unknown and tclConfig.sh is given
- begin
- tbl = parse_tclConfig(tclConfig)
- if tbl['TCL_THREADS']
- tcl_enable_thread = (tbl['TCL_THREADS'] == "1")
- else
- tcl_major_ver = tbl['TCL_MAJOR_VERSION'].to_i
- tcl_minor_ver = tbl['TCL_MINOR_VERSION'].to_i
- if tcl_major_ver < 8 || (tcl_major_ver == 8 && tcl_minor_ver == 0)
- tcl_enable_thread = false
- end
+ if TclConfig_Info['TCL_THREADS']
+ tcl_enable_thread = (TclConfig_Info['TCL_THREADS'] == "1")
+ else
+ tcl_major_ver = TclConfig_Info['TCL_MAJOR_VERSION'].to_i
+ tcl_minor_ver = TclConfig_Info['TCL_MINOR_VERSION'].to_i
+ if tcl_major_ver < 8 || (tcl_major_ver == 8 && tcl_minor_ver == 0)
+ tcl_enable_thread = false
end
+ end
- if tcl_enable_thread == nil
- # cannot find definition
- if tcl_major_ver
- puts("Warning: '#{tclConfig}' doesn't include TCL_THREADS definition.")
- else
- puts("Warning: '#{tclConfig}' may not be a tclConfig file.")
- end
- tclConfig = false
+ if tcl_enable_thread == nil
+ # cannot find definition
+ if tcl_major_ver
+ puts("Warning: '#{TclConfig_Info['config_file_path']}' doesn't include TCL_THREADS definition.")
+ else
+ puts("Warning: '#{TclConfig_Info['config_file_path']}' may not be a tclConfig file.")
end
- rescue Exception
- puts("Warning: fail to read '#{tclConfig}'!! --> ignore the file")
- tclConfig = false
+ #tclConfig = false
end
end
end
- if tcl_enable_thread == nil && !tclConfig
+ if tcl_enable_thread == nil && !TclConfig_Info['config_file_path']
# tcl-thread is unknown and tclConfig is unavailable
begin
- try_run_available = try_run("int main() { exit(0); }")
+ try_run("int main() { exit(0); }")
rescue Exception
# cannot try_run. Is CROSS-COMPILE environment?
puts(%Q'\
*****************************************************************************
**
-** PTHREAD SUPPORT CHECK WARNING:
+** NATIVETHREAD SUPPORT CHECK WARNING:
**
-** We cannot check the consistency of pthread support between Ruby
-** and the Tcl/Tk library in your environment (are you perhaps
-** cross-compiling?). If pthread support for these 2 packages is
-** inconsistent you may find you get errors when running Ruby/Tk
+** We cannot check the consistency of nativethread support between
+** Ruby and the Tcl/Tk library in your environment (are you perhaps
+** cross-compiling?). If nativethread support for these 2 packages
+** is inconsistent you may find you get errors when running Ruby/Tk
** (e.g. hangs or segmentation faults). We strongly recommend
** you to check the consistency manually.
**
@@ -333,26 +1652,29 @@ EOF
end
# check pthread mode
- if (macro_defined?('HAVE_NATIVETHREAD', '#include "ruby.h"'))
+ if (TkLib_Config["ruby_with_thread"])
+ $CPPFLAGS ||= ""
+
# ruby -> enable
unless tcl_enable_thread
# ruby -> enable && tcl -> disable
puts(%Q'\
*****************************************************************************
**
-** PTHREAD SUPPORT MODE WARNING:
+** NATIVETHREAD SUPPORT MODE WARNING:
**
** Ruby is compiled with --enable-pthread, but your Tcl/Tk library
-** seems to be compiled without pthread support. Although you can
-** create the tcltklib library, this combination may cause errors
-** (e.g. hangs or segmentation faults). If you have no reason to
-** keep the current pthread support status, we recommend you reconfigure
-** and recompile the libraries so that both or neither support pthreads.
+** seems to be compiled without nativethread support. Although you can
+** create the tcltklib library, this combination may cause errors (e.g.
+** hangs or segmentation faults). If you have no reason to keep the
+** current nativethread support status, we recommend you reconfigure and
+** recompile the libraries so that both or neither support nativethreads.
**
-** If you want change the status of pthread support, please recompile
-** Ruby without "--enable-pthread" configure option or recompile Tcl/Tk
-** with "--enable-threads" configure option (if your Tcl/Tk is later
-** than or equal to Tcl/Tk 8.1).
+** If you want change the status of nativethread support, please recompile
+** Ruby without "--enable-pthread" configure option (If you use Ruby 1.9.x
+** or later, you cannot remove this option, because it requires native-
+** thread support.) or recompile Tcl/Tk with "--enable-threads" configure
+** option (if your Tcl/Tk is later than or equal to Tcl/Tk 8.1).
**
*****************************************************************************
')
@@ -374,13 +1696,13 @@ EOF
puts(%Q'\
*****************************************************************************
**
-** PTHREAD SUPPORT MODE ERROR:
+** NATIVETHREAD SUPPORT MODE ERROR:
**
** Ruby is not compiled with --enable-pthread, but your Tcl/Tk
-** library seems to be compiled with pthread support. This
+** library seems to be compiled with nativethread support. This
** combination may cause frequent hang or segmentation fault
** errors when Ruby/Tk is working. We recommend that you NEVER
-** create the library with such a combination of pthread support.
+** create the library with such a combination of nativethread support.
**
** Please recompile Ruby with the "--enable-pthread" configure option
** or recompile Tcl/Tk with the "--disable-threads" configure option.
@@ -397,44 +1719,314 @@ EOF
end
end
-tclver, tkver = check_tcltk_version(tcltk_version)
+##############################################################
+# main
+##############################################################
+# check header file
+print("check functions.")
+have_func("ruby_native_thread_p", "ruby.h")
+print(".") # progress
+have_func("rb_errinfo", "ruby.h")
+print(".") # progress
+have_func("rb_safe_level", "ruby.h")
+print(".") # progress
+have_func("rb_hash_lookup", "ruby.h")
+print(".") # progress
+have_func("rb_proc_new", "ruby.h")
+print(".") # progress
+have_func("rb_obj_untrust", "ruby.h")
+print(".") # progress
+have_func("rb_obj_taint", "ruby.h")
+print(".") # progress
+have_func("rb_set_safe_level_force", "ruby.h")
+print(".") # progress
+have_func("rb_sourcefile", "ruby.h")
+print("\n") # progress
-if ( tcltk_framework ||
- ( find_tcltk_header(tclver, tkver) &&
- ( !use_X || find_X11(x11_ldir2, x11_ldir) ) &&
- find_tcl(tcllib, stubs, tclver, *tcl_ldir_list) &&
- find_tk(tklib, stubs, tkver, *tk_ldir_list) ) )
- $CPPFLAGS += ' -DUSE_TCL_STUBS -DUSE_TK_STUBS' if stubs
- $CPPFLAGS += ' -D_WIN32' if /cygwin/ =~ RUBY_PLATFORM
+print("check struct members.")
+have_struct_member("struct RArray", "ptr", "ruby.h")
+print(".") # progress
+have_struct_member("struct RArray", "len", "ruby.h")
+print("\n") # progress
- if tcltk_framework
- if tcl_framework_header
- $CPPFLAGS += " -I#{tcl_framework_header}"
+# check libraries
+unless is_win32?
+ print("check libraries.")
+ have_library("nsl", "t_open")
+ print(".") # progress
+ have_library("socket", "socket")
+ print(".") # progress
+ have_library("dl", "dlopen")
+ print(".") # progress
+ have_library("m", "log", "math.h")
+ print("\n") # progress
+end
+$CPPFLAGS ||= ""
+$CPPFLAGS += ' -D_WIN32' if /cygwin/ =~ RUBY_PLATFORM
+
+# Does ruby have nativethread ?
+TkLib_Config["ruby_with_thread"] =
+ macro_defined?('HAVE_NATIVETHREAD', '#include "ruby.h"')
+
+
+#---------------------------------------------------
+TclConfig_Info = {}
+TkConfig_Info = {}
+
+# use Tcl/Tk build dir? (has highest priority)
+TkLib_Config["tcl-build-dir"] = with_config("tcl-build-dir")
+TkLib_Config["tk-build-dir"] = with_config("tk-build-dir")
+if TkLib_Config["tcl-build-dir"]
+ puts("use Tcl build (pre-install) dir \"#{TkLib_Config["tcl-build-dir"]}\"")
+ TkLib_Config["tcl-build-dir"] = File.expand_path(TkLib_Config["tcl-build-dir"])
+ base = File.dirname(TkLib_Config["tcl-build-dir"])
+ ($INCFLAGS ||= "") << " -I#{File.join(base, "generic").quote} -I#{TkLib_Config["tcl-build-dir"].quote}"
+ $LIBPATH ||= []; $LIBPATH |= [TkLib_Config["tcl-build-dir"]]
+end
+if TkLib_Config["tk-build-dir"]
+ puts("use Tk build (pre-install) dir \"#{TkLib_Config["tk-build-dir"]}\"")
+ TkLib_Config["tk-build-dir"] = File.expand_path(TkLib_Config["tk-build-dir"])
+ base = File.dirname(TkLib_Config["tk-build-dir"])
+ ($INCFLAGS ||= "") << " -I#{File.join(base, "generic").quote} -I#{TkLib_Config["tk-build-dir"].quote}"
+ $LIBPATH ||= []; $LIBPATH |= [TkLib_Config["tk-build-dir"]]
+end
+
+# check requirement of Tcl/tk version
+tcltk_version = with_config("tcltkversion")
+TkLib_Config["tcltkversion"] = check_tcltk_version(tcltk_version)
+
+if TkLib_Config["tcl-build-dir"]
+ if (cfgfile = with_config("tclConfig-file", Dir.glob(File.join(TkLib_Config["tcl-build-dir"], "tclConfig*.sh"), File::FNM_CASEFOLD)[0]))
+ TclConfig_Info['config_file_path'] = cfgfile
+ TkLib_Config["tclConfig_info"] = cfginfo = parse_tclConfig(cfgfile)
+ if tclver = TkLib_Config["tcltkversion"][0]
+ TkLib_Config["tcltkversion"][0].sub!(/\d(\.?)\d/, "#{cfginfo['TCL_MAJOR_VERSION']}\\1#{cfginfo['TCL_MINOR_VERSION']}")
+ else
+ TkLib_Config["tcltkversion"][0] = "#{cfginfo['TCL_MAJOR_VERSION']}.#{cfginfo['TCL_MINOR_VERSION']}"
+ end
+ end
+end
+if TkLib_Config["tk-build-dir"]
+ if (cfgfile = with_config("tkConfig-file", Dir.glob(File.join(TkLib_Config["tk-build-dir"], "tkConfig*.sh"), File::FNM_CASEFOLD)[0]))
+ TkConfig_Info['config_file_path'] = cfgfile
+ TkLib_Config["tkConfig_info"] = cfginfo = parse_tclConfig(cfgfile)
+ if TkLib_Config["tcltkversion"][1]
+ TkLib_Config["tcltkversion"][1].sub!(/\d(\.?)\d/, "#{cfginfo['TK_MAJOR_VERSION']}\\1#{cfginfo['TK_MINOR_VERSION']}")
else
- $CPPFLAGS += " -I#{tcltk_framework}/Tcl.framework/Headers"
+ TkLib_Config["tcltkversion"][1] = "#{cfginfo['TK_MAJOR_VERSION']}.#{cfginfo['TK_MINOR_VERSION']}"
end
+ end
+end
- if tk_framework_header
- $CPPFLAGS += " -I#{tk_framework_header}"
+tclver, tkver = TkLib_Config["tcltkversion"]
+puts("Specified Tcl/Tk version is #{[tclver, tkver].inspect}") if tclver||tkver
+
+# use ActiveTcl ?
+#if activeTcl = with_config("ActiveTcl")
+#if activeTcl = with_config("ActiveTcl", true)
+if activeTcl = with_config("ActiveTcl", !(TkLib_Config["tcl-build-dir"] && TkLib_Config["tk-build-dir"]))
+ puts("Use ActiveTcl libraries (if available).")
+ unless activeTcl.kind_of? String
+ # set default ActiveTcl path
+ if CROSS_COMPILING
+ elsif is_win32?
+ activeTcl = 'c:/Tcl*'
+ elsif is_macosx?
+ activeTcl = '/Library/Frameworks'
else
- $CPPFLAGS += " -I#{tcltk_framework}/Tk.framework/Headers"
+ activeTcl = '/opt/ActiveTcl*'
end
+ end
+end
+TkLib_Config["ActiveTcl"] = activeTcl
+
+# allow space chars on a libpath
+TkLib_Config["space-on-tk-libpath"] =
+ enable_config("space-on-tk-libpath", ! is_win32?)
- $LDFLAGS += ' -framework Tk -framework Tcl'
+# enable Tcl/Tk stubs?
+=begin
+if TclConfig_Info['TCL_STUB_LIB_SPEC'] && TkConfig_Info['TK_STUB_LIB_SPEC'] &&
+ !TclConfig_Info['TCL_STUB_LIB_SPEC'].strip.empty? &&
+ !TkConfig_Info['TK_STUB_LIB_SPEC'].strip.empty?
+ stubs = true
+ unless (st = enable_config("tcltk-stubs")).nil?
+ stubs &&= st
end
+ unless (st = with_config("tcltk-stubs")).nil?
+ stubs &&= st
+ end
+else
+ stubs = enable_config("tcltk-stubs") || with_config("tcltk-stubs")
+end
+=end
+stubs = enable_config("tcltk-stubs") || with_config("tcltk-stubs")
+if (TkLib_Config["tcltk-stubs"] = stubs)
+ puts("Compile with Tcl/Tk stubs.")
+ $CPPFLAGS ||= ""; $CPPFLAGS += ' -DUSE_TCL_STUBS -DUSE_TK_STUBS'
+end
+
+# directory configuration of Tcl/Tk libraries
+if TkLib_Config["tcl-build-dir"]
+ tcl_idir = File.join(File.dirname(TkLib_Config["tcl-build-dir"]),"generic")
+ tcl_ldir = TkLib_Config["tcl-build-dir"]
+else
+ tcl_idir, tcl_ldir = dir_config("tcl")
+end
+if TkLib_Config["tk-build-dir"]
+ tk_idir = File.join(File.dirname(TkLib_Config["tk-build-dir"]),"generic")
+ tk_ldir = TkLib_Config["tk-build-dir"]
+else
+ tk_idir, tk_ldir = dir_config("tk")
+end
- if stubs or pthread_check
- # create Makefile
+tcl_idir = tk_idir unless tcl_idir
+tcl_ldir = tk_ldir unless tcl_ldir
+tk_idir = tcl_idir unless tk_idir
+tk_ldir = tcl_ldir unless tk_ldir
- # for SUPPORT_STATUS
- $INSTALLFILES ||= []
- $INSTALLFILES << ["lib/tkextlib/SUPPORT_STATUS", "$(RUBYLIBDIR)", "lib"]
+TclConfig_Info['TCL_INCLUDE_SPEC'] ||= ""
+TkConfig_Info['TK_INCLUDE_SPEC'] ||= ""
+TclConfig_Info['TCL_INCLUDE_SPEC'][0,0] = "-I#{tcl_idir.quote} " if tcl_idir
+TkConfig_Info['TK_INCLUDE_SPEC'][0,0] = "-I#{tk_idir.quote} " if tk_idir
- have_func("rb_hash_lookup", "ruby.h")
+# get tclConfig.sh/tkConfig.sh
+TkLib_Config["tcl-NG-path"] = []
+TkLib_Config["tk-NG-path"] = []
+tclcfg, tkcfg =
+ get_tclConfig(
+ TclConfig_Info['config_file_path'] || with_config("tclConfig-file", true),
+ TkConfig_Info['config_file_path'] || with_config("tkConfig-file", true),
+ (TclConfig_Info['config_file_path'])?
+ File.dirname(TclConfig_Info['config_file_path']) :
+ with_config("tclConfig-dir", tcl_ldir || true),
+ (TkConfig_Info['config_file_path'])?
+ File.dirname(TkConfig_Info['config_file_path']) :
+ with_config("tkConfig-dir", tk_ldir || true)
+ )
+TclConfig_Info.merge!(TkLib_Config["tclConfig_info"]) if TkLib_Config["tclConfig_info"]
+TkConfig_Info.merge!(TkLib_Config["tkConfig_info"]) if TkLib_Config["tkConfig_info"]
+TclConfig_Info['config_file_path'] ||= tclcfg
+TkConfig_Info['config_file_path'] ||= tkcfg
- # create
- $defs << %[-DRUBY_VERSION=\\"#{RUBY_VERSION}\\"]
- $defs << %[-DRUBY_RELEASE_DATE=\\"#{RUBY_RELEASE_DATE}\\"]
- create_makefile("tcltklib")
+tk_cfg_dir = File.dirname(TkConfig_Info['config_file_path']) rescue nil
+tcl_cfg_dir = File.dirname(TclConfig_Info['config_file_path']) rescue nil
+
+tk_ldir_list = [tk_ldir, tk_cfg_dir].uniq
+tcl_ldir_list = [tcl_ldir, tcl_cfg_dir].uniq
+
+if TkConfig_Info['config_file_path']
+ if TkLib_Config["tk-build-dir"]
+ spec_dir = get_libpath(TkConfig_Info['TK_LIB_FLAG'], TkConfig_Info['TK_BUILD_LIB_SPEC'])
+ else
+ spec_dir = get_libpath(TkConfig_Info['TK_LIB_FLAG'], TkConfig_Info['TK_LIB_SPEC'])
end
+ tk_ldir_list << spec_dir if File.directory?(spec_dir)
+end
+if TclConfig_Info['config_file_path']
+ if TkLib_Config["tcl-build-dir"]
+ spec_dir = get_libpath(TclConfig_Info['TCL_LIB_FLAG'], TclConfig_Info['TCL_BUILD_LIB_SPEC'])
+ else
+ spec_dir = get_libpath(TclConfig_Info['TCL_LIB_FLAG'], TclConfig_Info['TCL_LIB_SPEC'])
+ end
+ tcl_ldir_list << spec_dir if File.directory?(spec_dir)
+end
+
+# check tk_shlib_search_path
+TkLib_Config["checked_shlib_dirs"] =
+ check_shlib_search_path(with_config('tk-shlib-search-path'))
+
+# set TCL_DEFS and TK_DEFS
+$CPPFLAGS ||= ""
+# $CPPFLAGS += " #{TclConfig_Info['TCL_DEFS']}"
+# $CPPFLAGS += " #{TkConfig_Info['TK_DEFS']}"
+$defs += collect_tcltk_defs(TclConfig_Info['TCL_DEFS'], TkConfig_Info['TK_DEFS'])
+
+# MacOS X Frameworks?
+if TkLib_Config["tcltk-framework"]
+ puts("Use MacOS X Frameworks.")
+ ($LDFLAGS ||= "") << " -L#{TkLib_Config["tcl-build-dir"].quote} -Wl,-R#{TkLib_Config["tcl-build-dir"].quote}" if TkLib_Config["tcl-build-dir"]
+
+ if tcl_cfg_dir
+ TclConfig_Info['TCL_LIBS'] ||= ""
+ ($INCFLAGS ||= "") << ' ' << TclConfig_Info['TCL_INCLUDE_SPEC']
+ $LDFLAGS << ' ' << TclConfig_Info['TCL_LIBS']
+ if stubs
+ if TkLib_Config["tcl-build-dir"] &&
+ TclConfig_Info['TCL_BUILD_STUB_LIB_SPEC'] &&
+ !TclConfig_Info['TCL_BUILD_STUB_LIB_SPEC'].strip.empty?
+ $LDFLAGS << ' ' << TclConfig_Info['TCL_BUILD_STUB_LIB_SPEC']
+ else
+ $LDFLAGS << ' ' << TclConfig_Info['TCL_STUB_LIB_SPEC']
+ end
+ else
+ if TkLib_Config["tcl-build-dir"] &&
+ TclConfig_Info['TCL_BUILD_LIB_SPEC'] &&
+ !TclConfig_Info['TCL_BUILD_LIB_SPEC'].strip.empty?
+ $LDFLAGS << ' ' << TclConfig_Info['TCL_BUILD_LIB_SPEC']
+ else
+ $LDFLAGS << ' ' << TclConfig_Info['TCL_LIB_SPEC']
+ end
+ end
+ end
+
+ $LDFLAGS << " -L#{TkLib_Config["tk-build-dir"].quote} -Wl,-R#{TkLib_Config["tk-build-dir"].quote}" if TkLib_Config["tk-build-dir"]
+
+ if tk_cfg_dir
+ TkConfig_Info['TK_LIBS'] ||= ""
+ ($INCFLAGS ||= "") << ' ' << TkConfig_Info['TK_INCLUDE_SPEC']
+ $LDFLAGS << ' ' << TkConfig_Info['TK_LIBS']
+ if stubs
+ if TkLib_Config["tk-build-dir"] &&
+ TclConfig_Info['TK_BUILD_STUB_LIB_SPEC'] &&
+ !TclConfig_Info['TK_BUILD_STUB_LIB_SPEC'].strip.empty?
+ $LDFLAGS << ' ' << TkConfig_Info['TK_BUILD_STUB_LIB_SPEC']
+ else
+ $LDFLAGS << ' ' << TkConfig_Info['TK_STUB_LIB_SPEC']
+ end
+ else
+ if TkLib_Config["tk-build-dir"] &&
+ TclConfig_Info['TK_BUILD_LIB_SPEC'] &&
+ !TclConfig_Info['TK_BUILD_LIB_SPEC'].strip.empty?
+ $LDFLAGS << ' ' << TkConfig_Info['TK_BUILD_LIB_SPEC']
+ else
+ $LDFLAGS << ' ' << TkConfig_Info['TK_LIB_SPEC']
+ end
+ end
+ end
+ setup_for_macosx_framework(tclver, tkver) if tcl_cfg_dir && tk_cfg_dir
+end
+
+# name of Tcl/Tk libraries
+tklib = with_config("tklib")
+tcllib = with_config("tcllib")
+
+# search X libraries
+use_X = search_X_libraries
+
+
+#---------------------------------------------------
+if (TkLib_Config["tcltk-framework"] ||
+ ( find_tcltk_header(tclver, tkver) &&
+ find_tcltk_library(tcllib, tklib, stubs, tclver, tkver,
+ tcl_ldir_list, tk_ldir_list) ) ) &&
+ (stubs || pthread_check())
+ # create Makefile
+
+ # for SUPPORT_STATUS
+ $INSTALLFILES ||= []
+ $INSTALLFILES << ["lib/tkextlib/SUPPORT_STATUS", "$(RUBYLIBDIR)", "lib"]
+
+ # create
+ $defs << %[-DRUBY_VERSION=\\"#{RUBY_VERSION}\\"]
+ $defs << %[-DRUBY_RELEASE_DATE=\\"#{RUBY_RELEASE_DATE}\\"]
+
+ # remove harmful definitions.
+ $defs.delete_if{|x|/^-Du?intptr_t=/ =~ x}
+
+ create_makefile("tcltklib")
+
+ puts "\nFind Tcl/Tk libraries. Make tcltklib.so which is required by Ruby/Tk."
+else
+ puts "\nCan't find proper Tcl/Tk libraries. So, can't make tcltklib.so which is required by Ruby/Tk."
end
diff --git a/ext/tk/lib/README b/ext/tk/lib/README
index 5918fe4bf0..c076755756 100644
--- a/ext/tk/lib/README
+++ b/ext/tk/lib/README
@@ -9,8 +9,8 @@ tkextlib/ non-standard Tcl/Tk extension support libraries
*********************************************************************
*** The followings exists for backward compatibility only.
-*** The only thing which they work is that requires current
-*** library files ( tk/*.rb ).
+*** The only thing which they work is that requires current
+*** library files ( tk/*.rb ).
*********************************************************************
tkafter.rb handles Tcl after
tkbgerror.rb Tk error module
diff --git a/ext/tk/lib/multi-tk.rb b/ext/tk/lib/multi-tk.rb
index 32aaa2099c..b125c6e18e 100644
--- a/ext/tk/lib/multi-tk.rb
+++ b/ext/tk/lib/multi-tk.rb
@@ -30,8 +30,8 @@ class << TclTkIp
end
obj = __new__(*args)
obj.instance_eval{
- @force_default_encoding ||= [false].taint
- @encoding ||= [nil].taint
+ @force_default_encoding ||= TkUtil.untrust([false])
+ @encoding ||= TkUtil.untrust([nil])
def @encoding.to_s; self.join(nil); end
}
obj
@@ -40,64 +40,6 @@ end
################################################
-# use pseudo-toplevel feature of MultiTkIp ?
-if (!defined?(Use_PseudoToplevel_Feature_of_MultiTkIp) ||
- Use_PseudoToplevel_Feature_of_MultiTkIp)
- module MultiTkIp_PseudoToplevel_Evaluable
- #def pseudo_toplevel_eval(body = Proc.new)
- # Thread.current[:TOPLEVEL] = self
- # begin
- # body.call
- # ensure
- # Thread.current[:TOPLEVEL] = nil
- # end
- #end
-
- def pseudo_toplevel_evaluable?
- @pseudo_toplevel_evaluable
- end
-
- def pseudo_toplevel_evaluable=(mode)
- @pseudo_toplevel_evaluable = (mode)? true: false
- end
-
- def self.extended(mod)
- mod.__send__(:extend_object, mod)
- mod.instance_variable_set('@pseudo_toplevel_evaluable', true)
- end
- end
-
- class Object
- alias __method_missing_alias_for_MultiTkIp__ method_missing
- private :__method_missing_alias_for_MultiTkIp__
-
- def method_missing(id, *args)
- begin
- has_top = (top = MultiTkIp.__getip.__pseudo_toplevel) &&
- top.respond_to?(:pseudo_toplevel_evaluable?) &&
- top.pseudo_toplevel_evaluable? &&
- top.respond_to?(id)
- rescue Exception => e
- has_top = false
- end
-
- if has_top
- top.__send__(id, *args)
- else
- __method_missing_alias_for_MultiTkIp__(id, *args)
- end
- end
- end
-else
- # dummy
- module MultiTkIp_PseudoToplevel_Evaluable
- def pseudo_toplevel_evaluable?
- false
- end
- end
-end
-
-################################################
# exceptiopn to treat the return value from IP
class MultiTkIp_OK < Exception
def self.send(thread, ret=nil)
@@ -118,33 +60,54 @@ MultiTkIp_OK.freeze
################################################
# methods for construction
class MultiTkIp
+ class Command_Queue < Queue
+ def initialize(interp)
+ @interp = interp
+ super()
+ end
+
+ def push(value)
+ if !@interp || @interp.deleted?
+ fail RuntimeError, "Tk interpreter is already deleted"
+ end
+ super(value)
+ end
+ alias << push
+ alias enq push
+
+ def close
+ @interp = nil
+ end
+ end
+ Command_Queue.freeze
+
BASE_DIR = File.dirname(__FILE__)
- WITH_RUBY_VM = Object.const_defined?(:VM) && ::VM.class == Class
+ WITH_RUBY_VM = Object.const_defined?(:RubyVM) && ::RubyVM.class == Class
WITH_ENCODING = defined?(::Encoding.default_external)
#WITH_ENCODING = Object.const_defined?(:Encoding) && ::Encoding.class == Class
- (@@SLAVE_IP_ID = ['slave'.freeze, '0'.taint]).instance_eval{
+ (@@SLAVE_IP_ID = ['slave'.freeze, TkUtil.untrust('0')]).instance_eval{
@mutex = Mutex.new
def mutex; @mutex; end
freeze
}
- @@IP_TABLE = {}.taint unless defined?(@@IP_TABLE)
+ @@IP_TABLE = TkUtil.untrust({}) unless defined?(@@IP_TABLE)
- @@INIT_IP_ENV = [].taint unless defined?(@@INIT_IP_ENV) # table of Procs
- @@ADD_TK_PROCS = [].taint unless defined?(@@ADD_TK_PROCS) # table of [name, args, body]
+ @@INIT_IP_ENV = TkUtil.untrust([]) unless defined?(@@INIT_IP_ENV) # table of Procs
+ @@ADD_TK_PROCS = TkUtil.untrust([]) unless defined?(@@ADD_TK_PROCS) # table of [name, args, body]
- @@TK_TABLE_LIST = [].taint unless defined?(@@TK_TABLE_LIST)
+ @@TK_TABLE_LIST = TkUtil.untrust([]) unless defined?(@@TK_TABLE_LIST)
unless defined?(@@TK_CMD_TBL)
- @@TK_CMD_TBL = Object.new.taint
+ @@TK_CMD_TBL = TkUtil.untrust(Object.new)
# @@TK_CMD_TBL.instance_variable_set('@tbl', {}.taint)
- @@TK_CMD_TBL.instance_variable_set('@tbl', Hash.new{|hash,key|
- fail IndexError,
- "unknown command ID '#{key}'"
- }.taint)
+ tbl_obj = TkUtil.untrust(Hash.new{|hash,key|
+ fail IndexError, "unknown command ID '#{key}'"
+ })
+ @@TK_CMD_TBL.instance_variable_set('@tbl', tbl_obj)
class << @@TK_CMD_TBL
allow = [
@@ -223,7 +186,10 @@ class MultiTkIp
@@CB_ENTRY_CLASS = Class.new(TkCallbackEntry){
def initialize(ip, cmd)
@ip = ip
- @cmd = cmd
+ @safe = safe = $SAFE
+ # @cmd = cmd
+ cmd = MultiTkIp._proc_on_safelevel(&cmd)
+ @cmd = proc{|*args| cmd.call(safe, *args)}
self.freeze
end
attr_reader :ip, :cmd
@@ -689,15 +655,29 @@ class MultiTkIp
begin
loop do
sleep 1
- receiver.kill if @interp.deleted?
+ if @interp.deleted?
+ receiver.kill
+ @cmd_queue.close
+ end
break unless receiver.alive?
end
rescue Exception
# ignore all kind of Exception
end
+
# receiver is dead
+ retry_count = 3
loop do
- thread, cmd, *args = @cmd_queue.deq
+ Thread.pass
+ begin
+ thread, cmd, *args = @cmd_queue.deq(true) # non-block
+ rescue ThreadError
+ # queue is empty
+ retry_count -= 1
+ break if retry_count <= 0
+ sleep 0.5
+ retry
+ end
next unless thread
if thread.alive?
if @interp.deleted?
@@ -736,15 +716,15 @@ class MultiTkIp
@@DEFAULT_MASTER = self.allocate
@@DEFAULT_MASTER.instance_eval{
- @tk_windows = {}.taint
+ @tk_windows = TkUtil.untrust({})
- @tk_table_list = [].taint
+ @tk_table_list = TkUtil.untrust([])
- @slave_ip_tbl = {}.taint
+ @slave_ip_tbl = TkUtil.untrust({})
- @slave_ip_top = {}.taint
+ @slave_ip_top = TkUtil.untrust({})
- @evloop_thread = [].taint
+ @evloop_thread = TkUtil.untrust([])
unless keys.kind_of? Hash
fail ArgumentError, "expecting a Hash object for the 2nd argument"
@@ -755,7 +735,12 @@ class MultiTkIp
else ### Ruby 1.9 !!!!!!!!!!!
@interp_thread = Thread.new{
current = Thread.current
- current[:interp] = interp = TclTkIp.new(name, _keys2opts(keys))
+ begin
+ current[:interp] = interp = TclTkIp.new(name, _keys2opts(keys))
+ rescue e
+ current[:interp] = e
+ raise e
+ end
#sleep
current[:mutex] = mutex = Mutex.new
current[:root_check] = cond_var = ConditionVariable.new
@@ -770,20 +755,47 @@ class MultiTkIp
current[:status] = status
begin
- current[:status].value = interp.mainloop(true)
- rescue Exception=>e
- current[:status].value = e
+ begin
+ #TclTkLib.mainloop_abort_on_exception = false
+ #Thread.current[:status].value = TclTkLib.mainloop(true)
+ interp.mainloop_abort_on_exception = true
+ current[:status].value = interp.mainloop(true)
+ rescue SystemExit=>e
+ current[:status].value = e
+ rescue Exception=>e
+ current[:status].value = e
+ retry if interp.has_mainwindow?
+ ensure
+ mutex.synchronize{ cond_var.broadcast }
+ end
+
+ #Thread.current[:status].value = TclTkLib.mainloop(false)
+ current[:status].value = interp.mainloop(false)
+
ensure
- mutex.synchronize{ cond_var.broadcast }
+ # interp must be deleted before the thread for interp is dead.
+ # If not, raise Tcl_Panic on Tcl_AsyncDelete because async handler
+ # deleted by the wrong thread.
+ interp.delete
end
- current[:status].value = interp.mainloop(false)
}
until @interp_thread[:interp]
Thread.pass
end
# INTERP_THREAD.run
+ raise @interp_thread[:interp] if @interp_thread[:interp].kind_of? Exception
@interp = @interp_thread[:interp]
+ # delete the interpreter and kill the eventloop thread at exit
+ interp = @interp
+ interp_thread = @interp_thread
+ END{
+ if interp_thread.alive?
+ interp.delete
+ interp_thread.kill
+ end
+ }
+
def self.mainloop(check_root = true)
begin
TclTkLib.set_eventloop_window_mode(true)
@@ -795,18 +807,18 @@ class MultiTkIp
end
@interp.instance_eval{
- @force_default_encoding ||= [false].taint
- @encoding ||= [nil].taint
+ @force_default_encoding ||= TkUtil.untrust([false])
+ @encoding ||= TkUtil.untrust([nil])
def @encoding.to_s; self.join(nil); end
}
@ip_name = nil
- @callback_status = [].taint
+ @callback_status = TkUtil.untrust([])
@system = Object.new
- @wait_on_mainloop = [true, 0].taint
+ @wait_on_mainloop = TkUtil.untrust([true, 0])
@threadgroup = Thread.current.group
@@ -814,7 +826,7 @@ class MultiTkIp
@safe_level = [$SAFE]
- @cmd_queue = Queue.new
+ @cmd_queue = MultiTkIp::Command_Queue.new(@interp)
@cmd_receiver, @receiver_watchdog = _create_receiver_and_watchdog(@safe_level[0])
@@ -1181,8 +1193,8 @@ class MultiTkIp
ip_name = _create_slave_ip_name
slave_ip = @interp.create_slave(ip_name, true)
slave_ip.instance_eval{
- @force_default_encoding ||= [false].taint
- @encoding ||= [nil].taint
+ @force_default_encoding ||= TkUtil.untrust([false])
+ @encoding ||= TkUtil.untrust([nil])
def @encoding.to_s; self.join(nil); end
}
@slave_ip_tbl[ip_name] = slave_ip
@@ -1204,6 +1216,7 @@ class MultiTkIp
@slave_ip_top[ip_name] = top_path
end
@interp._eval("::safe::loadTk #{ip_name} #{_keys2opts(tk_opts)}")
+ @interp._invoke('__replace_slave_tk_commands__', ip_name)
else
@slave_ip_top[ip_name] = nil
end
@@ -1228,13 +1241,14 @@ class MultiTkIp
ip_name = _create_slave_ip_name
slave_ip = @interp.create_slave(ip_name, false)
slave_ip.instance_eval{
- @force_default_encoding ||= [false].taint
- @encoding ||= [nil].taint
+ @force_default_encoding ||= TkUtil.untrust([false])
+ @encoding ||= TkUtil.untrust([nil])
def @encoding.to_s; self.join(nil); end
}
slave_ip._invoke('set', 'argv0', name) if name.kind_of?(String)
slave_ip._invoke('set', 'argv', _keys2opts(keys))
@interp._invoke('load', '', 'Tk', ip_name)
+ @interp._invoke('__replace_slave_tk_commands__', ip_name)
@slave_ip_tbl[ip_name] = slave_ip
[slave_ip, ip_name]
end
@@ -1282,12 +1296,12 @@ class MultiTkIp
@cb_error_proc = []
@evloop_thread = []
- @tk_windows.taint unless @tk_windows.tainted?
- @tk_table_list.taint unless @tk_table_list.tainted?
- @slave_ip_tbl.taint unless @slave_ip_tbl.tainted?
- @slave_ip_top.taint unless @slave_ip_top.tainted?
- @cb_error_proc.taint unless @cb_error_proc.tainted?
- @evloop_thread.taint unless @evloop_thread.tainted?
+ TkUtil.untrust(@tk_windows) unless @tk_windows.tainted?
+ TkUtil.untrust(@tk_table_list) unless @tk_table_list.tainted?
+ TkUtil.untrust(@slave_ip_tbl) unless @slave_ip_tbl.tainted?
+ TkUtil.untrust(@slave_ip_top) unless @slave_ip_top.tainted?
+ TkUtil.untrust(@cb_error_proc) unless @cb_error_proc.tainted?
+ TkUtil.untrust(@evloop_thread) unless @evloop_thread.tainted?
@callback_status = []
@@ -1302,17 +1316,18 @@ class MultiTkIp
unless WITH_RUBY_VM
@interp = TclTkIp.new(name, _keys2opts(tk_opts))
@interp.instance_eval{
- @force_default_encoding ||= [false].taint
- @encoding ||= [nil].taint
+ @force_default_encoding ||= TkUtil.untrust([false])
+ @encoding ||= TkUtil.untrust([nil])
def @encoding.to_s; self.join(nil); end
}
else ### Ruby 1.9 !!!!!!!!!!!
+=begin
@interp_thread = Thread.new{
Thread.current[:interp] = interp = TclTkIp.new(name, _keys2opts(tk_opts))
interp.instance_eval{
- @force_default_encoding ||= [false].taint
- @encoding ||= [nil].taint
+ @force_default_encoding ||= TkUtil.untrust([false])
+ @encoding ||= TkUtil.untrust([nil])
def @encoding.to_s; self.join(nil); end
}
@@ -1324,15 +1339,78 @@ class MultiTkIp
end
# INTERP_THREAD.run
@interp = @interp_thread[:interp]
+=end
+ @interp_thread = Thread.new{
+ current = Thread.current
+ begin
+ current[:interp] = interp = TclTkIp.new(name, _keys2opts(tk_opts))
+ rescue e
+ current[:interp] = e
+ raise e
+ end
+ #sleep
+ #TclTkLib.mainloop(true)
+ current[:mutex] = mutex = Mutex.new
+ current[:root_check] = cond_ver = ConditionVariable.new
+
+ status = [nil]
+ def status.value
+ self[0]
+ end
+ def status.value=(val)
+ self[0] = val
+ end
+ current[:status] = status
+
+ begin
+ begin
+ current[:status].value = interp.mainloop(true)
+ rescue SystemExit=>e
+ current[:status].value = e
+ rescue Exception=>e
+ current[:status].value = e
+ retry if interp.has_mainwindow?
+ ensure
+ mutex.synchronize{ cond_var.broadcast }
+ end
+ current[:status].value = interp.mainloop(false)
+ ensure
+ interp.delete
+ end
+ }
+ until @interp_thread[:interp]
+ Thread.pass
+ end
+ # INTERP_THREAD.run
+ @interp = @interp_thread[:interp]
+
+ @evloop_thread[0] = @interp_thread
+
+ def self.mainloop(check_root = true)
+ begin
+ TclTkLib.set_eventloop_window_mode(true)
+ @interp_thread.value
+ ensure
+ TclTkLib.set_eventloop_window_mode(false)
+ end
+ end
end
+ @interp.instance_eval{
+ @force_default_encoding ||= TkUtil.untrust([false])
+ @encoding ||= TkUtil.untrust([nil])
+ def @encoding.to_s; self.join(nil); end
+ }
+
@ip_name = nil
+
if safe
safe = $SAFE if safe < $SAFE
@safe_level = [safe]
else
@safe_level = [$SAFE]
end
+
else
# create slave-ip
if safeip || master.safe?
@@ -1365,14 +1443,14 @@ class MultiTkIp
@system = Object.new
- @wait_on_mainloop = [true, 0].taint
- # @wait_on_mainloop = [false, 0].taint
+ @wait_on_mainloop = TkUtil.untrust([true, 0])
+ # @wait_on_mainloop = TkUtil.untrust([false, 0])
@threadgroup = ThreadGroup.new
@pseudo_toplevel = [false, nil]
- @cmd_queue = Queue.new
+ @cmd_queue = MultiTkIp::Command_Queue.new(@interp)
=begin
@cmd_receiver, @receiver_watchdog = _create_receiver_and_watchdog(@safe_level[0])
@@ -1386,8 +1464,7 @@ class MultiTkIp
@@IP_TABLE[@threadgroup] = self
@@TK_TABLE_LIST.size.times{
- (tbl = {}).tainted? || tbl.taint
- @tk_table_list << tbl
+ @tk_table_list << TkUtil.untrust({})
}
_init_ip_internal(@@INIT_IP_ENV, @@ADD_TK_PROCS)
@@ -1435,6 +1512,17 @@ end
# get target IP
class MultiTkIp
+ @@CALLBACK_SUBTHREAD = Class.new(Thread){
+ def self.new(interp, &blk)
+ super(interp){|ip| Thread.current[:callback_ip] = ip; blk.call}
+ end
+
+ @table = TkUtil.untrust(Hash.new{|h,k| h[k] = TkUtil.untrust([])})
+ def self.table
+ @table
+ end
+ }
+
def self._ip_id_
__getip._ip_id_
end
@@ -1445,6 +1533,9 @@ class MultiTkIp
def self.__getip
current = Thread.current
+ if current.kind_of?(@@CALLBACK_SUBTHREAD)
+ return current[:callback_ip]
+ end
if TclTkLib.mainloop_thread? != false && current[:callback_ip]
return current[:callback_ip]
end
@@ -1467,11 +1558,11 @@ class << MultiTkIp
alias __new new
private :__new
- def new_master(safe=nil, keys={})
+ def new_master(safe=nil, keys={}, &blk)
if MultiTkIp::WITH_RUBY_VM
#### TODO !!!!!!
fail RuntimeError,
- 'sorry, still not support multiple master-interpreters on Ruby VM'
+ 'sorry, still not support multiple master-interpreters on RubyVM'
end
if safe.kind_of?(Hash)
@@ -1489,15 +1580,17 @@ class << MultiTkIp
ip = __new(__getip, nil, keys)
#ip.eval_proc(proc{$SAFE=ip.safe_level; Proc.new}.call) if block_given?
- if block_given?
- Thread.new{ip.eval_proc(proc{$SAFE=ip.safe_level; Proc.new}.call)}
- end
+ if block_given?
+ #Thread.new{ip.eval_proc(proc{$SAFE=ip.safe_level; Proc.new}.call)}
+ #Thread.new{ip.eval_proc(proc{$SAFE=ip.safe_level; yield}.call)}
+ ip._proc_on_safelevel(&blk).call(ip.safe_level)
+ end
ip
end
alias new new_master
- def new_slave(safe=nil, keys={})
+ def new_slave(safe=nil, keys={}, &blk)
if safe.kind_of?(Hash)
keys = safe
elsif safe.kind_of?(Integer)
@@ -1514,13 +1607,15 @@ class << MultiTkIp
ip = __new(__getip, false, keys)
# ip.eval_proc(proc{$SAFE=ip.safe_level; Proc.new}.call) if block_given?
if block_given?
- Thread.new{ip.eval_proc(proc{$SAFE=ip.safe_level; Proc.new}.call)}
+ #Thread.new{ip.eval_proc(proc{$SAFE=ip.safe_level; Proc.new}.call)}
+ #Thread.new{ip.eval_proc(proc{$SAFE=ip.safe_level; yield}.call)}
+ ip._proc_on_safelevel(&blk).call(ip.safe_level)
end
ip
end
alias new_trusted_slave new_slave
- def new_safe_slave(safe=4, keys={})
+ def new_safe_slave(safe=4, keys={}, &blk)
if safe.kind_of?(Hash)
keys = safe
elsif safe.kind_of?(Integer)
@@ -1535,7 +1630,9 @@ class << MultiTkIp
ip = __new(__getip, true, keys)
# ip.eval_proc(proc{$SAFE=ip.safe_level; Proc.new}.call) if block_given?
if block_given?
- Thread.new{ip.eval_proc(proc{$SAFE=ip.safe_level; Proc.new}.call)}
+ #Thread.new{ip.eval_proc(proc{$SAFE=ip.safe_level; Proc.new}.call)}
+ #Thread.new{ip.eval_proc(proc{$SAFE=ip.safe_level; yield}.call)}
+ ip._proc_on_safelevel(&blk).call(ip.safe_level)
end
ip
end
@@ -1669,8 +1766,7 @@ class MultiTkIp
def _add_new_tables
(@@TK_TABLE_LIST.size - @tk_table_list.size).times{
- (tbl = {}).tainted? || tbl.taint
- @tk_table_list << tbl
+ @tk_table_list << TkUtil.untrust({})
}
end
@@ -1813,7 +1909,6 @@ class MultiTkIp
end
end
-
# for callback operation
class MultiTkIp
def self.cb_entry_class
@@ -1838,12 +1933,20 @@ class MultiTkIp
end
=end
def cb_eval(cmd, *args)
+ self.eval_callback(*args,
+ &_proc_on_safelevel{|*params|
+ TkComm._get_eval_string(TkUtil.eval_cmd(cmd, *params))
+ })
+ end
+=begin
+ def cb_eval(cmd, *args)
self.eval_callback(*args){|safe, *params|
$SAFE=safe if $SAFE < safe
# TkUtil.eval_cmd(cmd, *params)
TkComm._get_eval_string(TkUtil.eval_cmd(cmd, *params))
}
end
+=end
=begin
def cb_eval(cmd, *args)
@callback_status[0] ||= TkVariable.new
@@ -1936,8 +2039,111 @@ class MultiTkIp
end
end
+
+################################################
+# use pseudo-toplevel feature of MultiTkIp ?
+if (!defined?(Use_PseudoToplevel_Feature_of_MultiTkIp) ||
+ Use_PseudoToplevel_Feature_of_MultiTkIp)
+ module MultiTkIp_PseudoToplevel_Evaluable
+ #def pseudo_toplevel_eval(body = Proc.new)
+ # Thread.current[:TOPLEVEL] = self
+ # begin
+ # body.call
+ # ensure
+ # Thread.current[:TOPLEVEL] = nil
+ # end
+ #end
+
+ def pseudo_toplevel_evaluable?
+ @pseudo_toplevel_evaluable
+ end
+
+ def pseudo_toplevel_evaluable=(mode)
+ @pseudo_toplevel_evaluable = (mode)? true: false
+ end
+
+ def self.extended(mod)
+ mod.__send__(:extend_object, mod)
+ mod.instance_variable_set('@pseudo_toplevel_evaluable', true)
+ end
+ end
+
+ class Object
+ alias __method_missing_alias_for_MultiTkIp__ method_missing
+ private :__method_missing_alias_for_MultiTkIp__
+
+ def method_missing(id, *args)
+ begin
+ has_top = (top = MultiTkIp.__getip.__pseudo_toplevel) &&
+ top.respond_to?(:pseudo_toplevel_evaluable?) &&
+ top.pseudo_toplevel_evaluable? &&
+ top.respond_to?(id)
+ rescue Exception => e
+ has_top = false
+ end
+
+ if has_top
+ top.__send__(id, *args)
+ else
+ __method_missing_alias_for_MultiTkIp__(id, *args)
+ end
+ end
+ end
+else
+ # dummy
+ module MultiTkIp_PseudoToplevel_Evaluable
+ def pseudo_toplevel_evaluable?
+ false
+ end
+ end
+end
+
+
+################################################
# evaluate a procedure on the proper interpreter
class MultiTkIp
+ # instance & class method
+ def _proc_on_safelevel(cmd=nil, &blk) # require a block for eval
+ if cmd
+ if cmd.kind_of?(Method)
+ _proc_on_safelevel{|*args| cmd.call(*args)}
+ else
+ _proc_on_safelevel(&cmd)
+ end
+ else
+ #Proc.new{|safe, *args| $SAFE=safe if $SAFE < safe; yield(*args)}
+ Proc.new{|safe, *args|
+ # avoid security error on Exception objects
+ untrust_proc = proc{|err|
+ begin
+ err.untrust if err.respond_to?(:untrust)
+ rescue SecurityError
+ end
+ err
+ }
+ $SAFE=safe if $SAFE < safe;
+ begin
+ yield(*args)
+ rescue Exception => e
+ fail untrust_proc.call(e)
+ end
+ }
+ end
+ end
+ def MultiTkIp._proc_on_safelevel(cmd=nil, &blk)
+ MultiTkIp.__getip._proc_on_safelevel(cmd, &blk)
+ end
+
+ def _proc_on_current_safelevel(cmd=nil, &blk) # require a block for eval
+ safe = $SAFE
+ cmd = _proc_on_safelevel(cmd, &blk)
+ Proc.new{|*args| cmd.call(safe, *args)}
+ end
+ def MultiTkIp._proc_on_current_safelevel(cmd=nil, &blk)
+ MultiTkIp.__getip._proc_on_current_safelevel(cmd, &blk)
+ end
+
+ ######################################
# instance method
def eval_proc_core(req_val, cmd, *args)
# check
@@ -1953,10 +2159,10 @@ class MultiTkIp
ret = cmd.call(safe_level, *args)
rescue SystemExit => e
# exit IP
- warn("Warning: "+ $! + " on " + self.inspect) if $DEBUG
+ warn("Warning: "+ e.inspect + " on " + self.inspect) if $DEBUG
begin
self._eval_without_enc('exit')
- rescue Exception
+ rescue Exception => e
end
self.delete
ret = nil
@@ -2008,7 +2214,7 @@ class MultiTkIp
return ret.value
rescue SystemExit => e
# exit IP
- warn("Warning: " + $! + " on " + self.inspect) if $DEBUG
+ warn("Warning: " + e.inspect + " on " + self.inspect) if $DEBUG
begin
self._eval_without_enc('exit')
rescue Exception
@@ -2031,22 +2237,77 @@ class MultiTkIp
end
private :eval_proc_core
+if false && WITH_RUBY_VM ### Ruby 1.9
+ # Not stable, so disable this feature
+ def eval_callback(*args)
+ if block_given?
+ cmd = Proc.new
+ else
+ cmd = args.shift
+ end
+ begin
+ if @@CALLBACK_SUBTHREAD.table[self].index(Thread.current)
+ last_th = nil
+ else
+ last_th = @@CALLBACK_SUBTHREAD.table[self][-1]
+ end
+ @@CALLBACK_SUBTHREAD.new(self){
+ @@CALLBACK_SUBTHREAD.table[self] << Thread.current
+ begin
+ last_th.join if last_th
+ eval_proc_core(false, cmd, *args)
+ rescue Exception=>e
+ e
+ ensure
+ @@CALLBACK_SUBTHREAD.table[self].delete(Thread.current)
+ end
+ }
+ end
+ end
+else ### Ruby 1.8
def eval_callback(*args)
if block_given?
cmd = Proc.new
else
cmd = args.shift
end
- current = Thread.current
- backup_ip = current[:callback_ip]
- current[:callback_ip] = self
begin
eval_proc_core(false, cmd, *args)
+ rescue Exception=>e
+ e
ensure
- current[:callback_ip] = backup_ip
end
end
+end
+ def eval_proc(*args, &blk)
+ if block_given?
+ cmd = _proc_on_safelevel(&blk)
+ else
+ unless (cmd = args.shift)
+ fail ArgumentError, "A Proc or Method object is expected for 1st argument"
+ end
+ cmd = _proc_on_safelevel(&cmd)
+ end
+ if TclTkLib.mainloop_thread? == true
+ # call from eventloop
+ current = Thread.current
+ backup_ip = current[:callback_ip]
+ current[:callback_ip] = self
+ begin
+ eval_proc_core(false, cmd, *args)
+ ensure
+ current[:callback_ip] = backup_ip
+ end
+ else
+ eval_proc_core(true,
+ proc{|safe, *params|
+ Thread.new{cmd.call(safe, *params)}.value
+ },
+ *args)
+ end
+ end
+=begin
def eval_proc(*args)
# The scope of the eval-block of 'eval_proc' method is different from
# the external. If you want to pass local values to the eval-block,
@@ -2081,6 +2342,7 @@ class MultiTkIp
*args)
end
end
+=end
alias call eval_proc
def bg_eval_proc(*args)
@@ -2478,7 +2740,8 @@ end
# depend on TclTkIp
class MultiTkIp
- def mainloop(check_root = true, restart_on_dead = true)
+# def mainloop(check_root = true, restart_on_dead = true)
+ def mainloop(check_root = true, restart_on_dead = false)
raise SecurityError, "no permission to manipulate" unless self.manipulable?
if WITH_RUBY_VM ### Ruby 1.9 !!!!!!!!!!!
@@ -2507,7 +2770,7 @@ class MultiTkIp
end
rescue SystemExit => e
# exit IP
- warn("Warning: " + $! + " on " + self.inspect) if $DEBUG
+ warn("Warning: " + e.inspect + " on " + self.inspect) if $DEBUG
begin
self._eval_without_enc('exit')
rescue Exception
diff --git a/ext/tk/lib/remote-tk.rb b/ext/tk/lib/remote-tk.rb
index f56864687e..443d66010c 100644
--- a/ext/tk/lib/remote-tk.rb
+++ b/ext/tk/lib/remote-tk.rb
@@ -10,8 +10,8 @@ class MultiTkIp; end
class RemoteTkIp < MultiTkIp; end
class MultiTkIp
- @@IP_TABLE = {}.taint unless defined?(@@IP_TABLE)
- @@TK_TABLE_LIST = [].taint unless defined?(@@TK_TABLE_LIST)
+ @@IP_TABLE = TkUtil.untrust({}) unless defined?(@@IP_TABLE)
+ @@TK_TABLE_LIST = TkUtil.untrust([]) unless defined?(@@TK_TABLE_LIST)
def self._IP_TABLE; @@IP_TABLE; end
def self._TK_TABLE_LIST; @@TK_TABLE_LIST; end
@@ -88,14 +88,14 @@ class RemoteTkIp
@slave_ip_tbl = {}
@slave_ip_top = {}
- @force_default_encoding ||= [false].taint
- @encoding ||= [nil].taint
+ @force_default_encoding ||= TkUtil.untrust([false])
+ @encoding ||= TkUtil.untrust([nil])
def @encoding.to_s; self.join(nil); end
- @tk_windows.taint unless @tk_windows.tainted?
- @tk_table_list.taint unless @tk_table_list.tainted?
- @slave_ip_tbl.taint unless @slave_ip_tbl.tainted?
- @slave_ip_top.taint unless @slave_ip_top.tainted?
+ TkUtil.untrust(@tk_windows) unless @tk_windows.tainted?
+ TkUtil.untrust(@tk_table_list) unless @tk_table_list.tainted?
+ TkUtil.untrust(@slave_ip_tbl) unless @slave_ip_tbl.tainted?
+ TkUtil.untrust(@slave_ip_top) unless @slave_ip_top.tainted?
@system = Object.new
@@ -119,7 +119,7 @@ class RemoteTkIp
@@IP_TABLE[@threadgroup] = self
@@TK_TABLE_LIST.size.times{
- (tbl = {}).tainted? || tbl.taint
+ (tbl = {}).tainted? || TkUtil.untrust(tbl)
@tk_table_list << tbl
}
@@ -464,7 +464,7 @@ class RemoteTkIp
def mainloop_watchdog
fail RuntimeError, 'not support "mainloop_watchdog" on the remote interpreter'
end
- def do_one_evant(flag = nil)
+ def do_one_event(flag = nil)
fail RuntimeError, 'not support "do_one_event" on the remote interpreter'
end
def mainloop_abort_on_exception
@@ -500,7 +500,7 @@ class << RemoteTkIp
def mainloop_watchdog(*args)
fail RuntimeError, 'not support "mainloop_watchdog" on the remote interpreter'
end
- def do_one_evant(flag = nil)
+ def do_one_event(flag = nil)
fail RuntimeError, 'not support "do_one_event" on the remote interpreter'
end
def mainloop_abort_on_exception
diff --git a/ext/tk/lib/tk.rb b/ext/tk/lib/tk.rb
index 49e4ca2564..5bac92e47c 100644
--- a/ext/tk/lib/tk.rb
+++ b/ext/tk/lib/tk.rb
@@ -15,7 +15,9 @@ require 'thread'
class TclTkIp
# backup original (without encoding) _eval and _invoke
alias _eval_without_enc _eval
+ alias __eval__ _eval
alias _invoke_without_enc _invoke
+ alias __invoke__ _invoke
def _ip_id_
# for RemoteTkIp
@@ -28,8 +30,8 @@ class TclTkIp
def initialize(*args)
__initialize__(*args)
- @force_default_encoding ||= [false].taint
- @encoding ||= [nil].taint
+ @force_default_encoding ||= TkUtil.untrust([false])
+ @encoding ||= TkUtil.untrust([nil])
def @encoding.to_s; self.join(nil); end
end
end
@@ -39,8 +41,8 @@ module TkComm
include TkUtil
extend TkUtil
- WidgetClassNames = {}.taint
- TkExtlibAutoloadModule = [].taint
+ WidgetClassNames = TkUtil.untrust({})
+ TkExtlibAutoloadModule = TkUtil.untrust([])
# None = Object.new ### --> definition is moved to TkUtil module
# def None.to_s
@@ -50,7 +52,10 @@ module TkComm
#Tk_CMDTBL = {}
#Tk_WINDOWS = {}
- Tk_IDs = ["00000".taint, "00000".taint] # [0]-cmdid, [1]-winid
+ Tk_IDs = [
+ TkUtil.untrust("00000"), # [0]-cmdid
+ TkUtil.untrust("00000") # [1]-winid
+ ]
Tk_IDs.instance_eval{
@mutex = Mutex.new
def mutex; @mutex; end
@@ -70,7 +75,7 @@ module TkComm
Tk_WINDOWS.freeze
self.instance_eval{
- @cmdtbl = [].taint
+ @cmdtbl = TkUtil.untrust([])
}
unless const_defined?(:GET_CONFIGINFO_AS_ARRAY)
@@ -113,15 +118,22 @@ module TkComm
gen_class_name = ruby_class_name
classname_def = ''
else # ruby_class == nil
- mods = TkExtlibAutoloadModule.find_all{|m| m.const_defined?(tk_class)}
- mods.each{|mod|
- begin
- mod.const_get(tk_class) # auto_load
- break if (ruby_class = WidgetClassNames[tk_class])
- rescue LoadError
- # ignore load error
- end
- }
+ if Tk.const_defined?(tk_class)
+ Tk.const_get(tk_class) # auto_load
+ ruby_class = WidgetClassNames[tk_class]
+ end
+
+ unless ruby_class
+ mods = TkExtlibAutoloadModule.find_all{|m| m.const_defined?(tk_class)}
+ mods.each{|mod|
+ begin
+ mod.const_get(tk_class) # auto_load
+ break if (ruby_class = WidgetClassNames[tk_class])
+ rescue LoadError
+ # ignore load error
+ end
+ }
+ end
unless ruby_class
std_class = 'Tk' << tk_class
@@ -131,6 +143,14 @@ module TkComm
end
end
+ unless ruby_class
+ if Tk.const_defined?('TOPLEVEL_ALIASES') &&
+ Tk::TOPLEVEL_ALIASES.const_defined?(std_class)
+ Tk::TOPLEVEL_ALIASES.const_get(std_class) # auto_load
+ ruby_class = WidgetClassNames[tk_class]
+ end
+ end
+
if ruby_class
# found
ruby_class_name = ruby_class.name
@@ -613,11 +633,35 @@ end
val
end
end
- private :bool, :number, :string, :num_or_str
- private :list, :simplelist, :window, :procedure
- module_function :bool, :number, :num_or_str, :string
+ private :bool, :number, :num_or_str, :num_or_nil, :string
+ private :list, :simplelist, :window, :image_obj, :procedure
+ module_function :bool, :number, :num_or_str, :num_or_nil, :string
module_function :list, :simplelist, :window, :image_obj, :procedure
+ if (RUBY_VERSION.split('.').map{|n| n.to_i} <=> [1,8,7]) < 0
+ def slice_ary(ary, size)
+ sliced = []
+ wk_ary = ary.dup
+ until wk_ary.size.zero?
+ sub_ary = []
+ size.times{ sub_ary << wk_ary.shift }
+ yield(sub_ary) if block_given?
+ sliced << sub_ary
+ end
+ (block_given?)? ary: sliced
+ end
+ else
+ def slice_ary(ary, size, &b)
+ if b
+ ary.each_slice(size, &b)
+ else
+ ary.each_slice(size).to_a
+ end
+ end
+ end
+ private :slice_ary
+ module_function :slice_ary
+
def subst(str, *opts)
# opts := :nobackslashes | :nocommands | novariables
tk_call('subst',
@@ -803,7 +847,7 @@ end
TkCore::INTERP.tk_cmd_tbl[id] = TkCore::INTERP.get_cb_entry(cmd)
end
@cmdtbl = [] unless defined? @cmdtbl
- @cmdtbl.taint unless @cmdtbl.tainted?
+ TkUtil.untrust(@cmdtbl) unless @cmdtbl.tainted?
@cmdtbl.push id
if local_cmdtbl && local_cmdtbl.kind_of?(Array)
@@ -1130,30 +1174,62 @@ module TkCore
opts = ''
end
- if WITH_RUBY_VM ### check Ruby 1.9 !!!!!!!
- # *** NEED TO FIX ***
- ip = TclTkIp.new(name, opts)
- if ip._invoke_without_enc('tk', 'windowingsystem') == 'aqua' &&
- (TclTkLib.get_version <=> [8,4,TclTkLib::RELEASE_TYPE::FINAL,9]) > 0
- # *** KNOWN BUG ***
- # Main event loop thread of TkAqua (> Tk8.4.9) must be the main
- # application thread. So, ruby1.9 users must call Tk.mainloop on
- # the main application thread.
- RUN_EVENTLOOP_ON_MAIN_THREAD = true
- INTERP = ip
- else
- unless self.const_defined? :RUN_EVENTLOOP_ON_MAIN_THREAD
- RUN_EVENTLOOP_ON_MAIN_THREAD = false
- end
- if RUN_EVENTLOOP_ON_MAIN_THREAD
- INTERP = ip
+ # RUN_EVENTLOOP_ON_MAIN_THREAD = true
+
+ unless self.const_defined? :RUN_EVENTLOOP_ON_MAIN_THREAD
+ if WITH_RUBY_VM ### check Ruby 1.9 !!!!!!!
+ # *** NEED TO FIX ***
+ case RUBY_PLATFORM
+ when /cygwin/
+ RUN_EVENTLOOP_ON_MAIN_THREAD = true
+ when /darwin/ # MacOS X
+=begin
+ ip = TclTkIp.new(name, opts)
+ if ip._invoke_without_enc('tk', 'windowingsystem') == 'aqua' &&
+ (TclTkLib.get_version<=>[8,4,TclTkLib::RELEASE_TYPE::FINAL,6]) > 0
+=end
+ if TclTkLib::WINDOWING_SYSTEM == 'aqua' &&
+ (TclTkLib.get_version<=>[8,4,TclTkLib::RELEASE_TYPE::FINAL,6]) > 0
+ # *** KNOWN BUG ***
+ # Main event loop thread of TkAqua (> Tk8.4.9) must be the main
+ # application thread. So, ruby1.9 users must call Tk.mainloop on
+ # the main application thread.
+ #
+ # *** ADD (2009/05/10) ***
+ # In some cases (I don't know the description of conditions),
+ # TkAqua 8.4.7 has a same kind of hang-up trouble.
+ # So, if 8.4.7 or later, set RUN_EVENTLOOP_ON_MAIN_THREAD to true.
+ # When you want to control this mode, please call the following
+ # (set true/false as you want) before "require 'tk'".
+ # ----------------------------------------------------------
+ # module TkCore; RUN_EVENTLOOP_ON_MAIN_THREAD = true; end
+ # ----------------------------------------------------------
+ #
+ # *** ADD (2010/07/05) ***
+ # The value of TclTkLib::WINDOWING_SYSTEM is defined at compiling.
+ # If it is inconsistent with linked DLL, please call the following
+ # before "require 'tk'".
+ # ----------------------------------------------------------
+ # require 'tcltklib'
+ # module TclTkLib
+ # remove_const :WINDOWING_SYSTEM
+ # WINDOWING_SYSTEM = 'x11' # or 'aqua'
+ # end
+ # ----------------------------------------------------------
+ #
+ RUN_EVENTLOOP_ON_MAIN_THREAD = true
+ else
+ RUN_EVENTLOOP_ON_MAIN_THREAD = false
+=begin
+ ip.delete
+ ip = nil
+=end
+ end
else
- ip.delete
+ RUN_EVENTLOOP_ON_MAIN_THREAD = false
end
- end
- ip = nil
- else
- unless self.const_defined? :RUN_EVENTLOOP_ON_MAIN_THREAD
+
+ else # Ruby 1.8.x
RUN_EVENTLOOP_ON_MAIN_THREAD = false
end
end
@@ -1165,12 +1241,16 @@ module TkCore
INTERP_ROOT_CHECK = ConditionVariable.new
INTERP_THREAD = Thread.new{
begin
- Thread.current[:interp] = interp = TclTkIp.new(name, opts)
+ #Thread.current[:interp] = interp = TclTkIp.new(name, opts)
+ interp = TclTkIp.new(name, opts)
rescue => e
Thread.current[:interp] = e
raise e
end
+ interp.mainloop_abort_on_exception = true
+ Thread.current.instance_variable_set("@interp", interp)
+
status = [nil]
def status.value
self[0]
@@ -1182,24 +1262,92 @@ module TkCore
Thread.current[:status] = status
#sleep
+ # like as 1.8, withdraw a root widget before calling Tk.mainloop
+ interp._eval <<EOS
+wm withdraw .
+rename wm __wm_orig__
+proc wm {subcmd win args} {
+ set val [eval [list __wm_orig__ $subcmd $win] $args]
+ if {[string equal $subcmd withdraw] && [string equal $win .]} {
+ rename wm {}
+ rename __wm_orig__ wm
+ }
+ return $val
+}
+proc __startup_rbtk_mainloop__ {args} {
+ rename __startup_rbtk_mainloop__ {}
+ if {[info command __wm_orig__] == "__wm_orig__"} {
+ rename wm {}
+ rename __wm_orig__ wm
+ if [string equal [wm state .] withdrawn] {
+ wm deiconify .
+ }
+ }
+}
+set __initial_state_of_rubytk__ 1
+trace add variable __initial_state_of_rubytk__ unset __startup_rbtk_mainloop__
+
+# complete initializing
+ruby {TkCore::INTERP_THREAD[:interp] = TkCore::INTERP_THREAD.instance_variable_get('@interp')}
+EOS
+
begin
- Thread.current[:status].value = TclTkLib.mainloop(true)
- rescue Exception=>e
- Thread.current[:status].value = e
+ begin
+ #TclTkLib.mainloop_abort_on_exception = false
+ #interp.mainloop_abort_on_exception = true
+ #Thread.current[:interp] = interp
+ #Thread.current[:status].value = TclTkLib.mainloop(true)
+ Thread.current[:status].value = interp.mainloop(true)
+ rescue SystemExit=>e
+ Thread.current[:status].value = e
+ rescue Exception=>e
+ Thread.current[:status].value = e
+ p e if $DEBUG
+ retry if interp.has_mainwindow?
+ ensure
+ INTERP_MUTEX.synchronize{ INTERP_ROOT_CHECK.broadcast }
+ end
+
+ unless interp.deleted?
+ #Thread.current[:status].value = TclTkLib.mainloop(false)
+ Thread.current[:status].value = interp.mainloop(false)
+ end
+
ensure
- INTERP_MUTEX.synchronize{ INTERP_ROOT_CHECK.broadcast }
+ # interp must be deleted before the thread for interp is dead.
+ # If not, raise Tcl_Panic on Tcl_AsyncDelete because async handler
+ # deleted by the wrong thread.
+ interp.delete
end
- Thread.current[:status].value = TclTkLib.mainloop(false)
}
+ # check a Tcl/Tk interpreter is initialized
until INTERP_THREAD[:interp]
- Thread.pass
+ # Thread.pass
+ INTERP_THREAD.run
end
+
# INTERP_THREAD.run
raise INTERP_THREAD[:interp] if INTERP_THREAD[:interp].kind_of? Exception
+ # check an eventloop is running
+ while INTERP_THREAD.alive? && TclTkLib.mainloop_thread?.nil?
+ INTERP_THREAD.run
+ end
+
INTERP = INTERP_THREAD[:interp]
INTERP_THREAD_STATUS = INTERP_THREAD[:status]
+
+ # delete the interpreter and kill the eventloop thread at exit
+ END{
+ if INTERP_THREAD.alive?
+ INTERP.delete
+ INTERP_THREAD.kill
+ end
+ }
+
+ # (for safety's sake) force the eventloop to run
+ INTERP_THREAD.run
end
def INTERP.__getip
@@ -1210,10 +1358,11 @@ module TkCore
end
INTERP.instance_eval{
- # @tk_cmd_tbl = {}.taint
- @tk_cmd_tbl = Hash.new{|hash, key|
- fail IndexError, "unknown command ID '#{key}'"
- }.taint
+ # @tk_cmd_tbl = TkUtil.untrust({})
+ @tk_cmd_tbl =
+ TkUtil.untrust(Hash.new{|hash, key|
+ fail IndexError, "unknown command ID '#{key}'"
+ })
def @tk_cmd_tbl.[]=(idx,val)
if self.has_key?(idx) && Thread.current.group != ThreadGroup::Default
fail SecurityError,"cannot change the entried command"
@@ -1221,15 +1370,15 @@ module TkCore
super(idx,val)
end
- @tk_windows = {}.taint
+ @tk_windows = TkUtil.untrust({})
- @tk_table_list = [].taint
+ @tk_table_list = TkUtil.untrust([])
- @init_ip_env = [].taint # table of Procs
- @add_tk_procs = [].taint # table of [name, args, body]
+ @init_ip_env = TkUtil.untrust([]) # table of Procs
+ @add_tk_procs = TkUtil.untrust([]) # table of [name, args, body]
- @force_default_encoding ||= [false].taint
- @encoding ||= [nil].taint
+ @force_default_encoding ||= TkUtil.untrust([false])
+ @encoding ||= TkUtil.untrust([nil])
def @encoding.to_s; self.join(nil); end
@cb_entry_class = Class.new(TkCallbackEntry){
@@ -1283,7 +1432,7 @@ module TkCore
end
def INTERP.create_table
id = @tk_table_list.size
- (tbl = {}).tainted? || tbl.taint
+ (tbl = {}).tainted? || TkUtil.untrust(tbl)
@tk_table_list << tbl
# obj = Object.new
# obj.instance_eval <<-EOD
@@ -1321,7 +1470,8 @@ module TkCore
@add_tk_procs.delete_if{|elem|
elem.kind_of?(Array) && elem[0].to_s == name
}
- self._invoke('rename', name, '')
+ #self._invoke('rename', name, '')
+ self.__invoke__('rename', name, '')
}
end
def INTERP.init_ip_internal
@@ -1704,11 +1854,14 @@ module TkCore
elsif TkCore::RUN_EVENTLOOP_ON_MAIN_THREAD
# if TclTkLib::WINDOWING_SYSTEM == 'aqua' &&
- if TkCore::INTERP._invoke_without_enc('tk','windowingsystem')=='aqua' &&
- Thread.current != Thread.main &&
- (TclTkLib.get_version <=> [8,4,TclTkLib::RELEASE_TYPE::FINAL,9]) > 0
- raise RuntimeError,
- "eventloop on TkAqua ( > Tk8.4.9 ) works on the main thread only"
+ #if TkCore::INTERP._invoke_without_enc('tk','windowingsystem')=='aqua' &&
+ # Thread.current != Thread.main &&
+ # (TclTkLib.get_version <=> [8,4,TclTkLib::RELEASE_TYPE::FINAL,9]) > 0
+ # raise RuntimeError,
+ # "eventloop on TkAqua ( > Tk8.4.9 ) works on the main thread only"
+ #end
+ if Thread.current != Thread.main
+ raise RuntimeError, "Tk.mainloop is allowed on the main thread only"
end
TclTkLib.mainloop(check_root)
@@ -1718,8 +1871,17 @@ module TkCore
return TkCore::INTERP._thread_tkwait('window', '.') if check_root
end
+ # like as 1.8, withdraw a root widget before calling Tk.mainloop
+ TkCore::INTERP._eval_without_enc('catch {unset __initial_state_of_rubytk__}')
+ INTERP_THREAD.run
+
begin
TclTkLib.set_eventloop_window_mode(true)
+
+ # force run the eventloop
+ TkCore::INTERP._eval_without_enc('update')
+ TkCore::INTERP._eval_without_enc('catch {set __initial_state_of_rubytk__}')
+ INTERP_THREAD.run
if check_root
INTERP_MUTEX.synchronize{
INTERP_ROOT_CHECK.wait(INTERP_MUTEX)
@@ -1730,8 +1892,15 @@ module TkCore
end
}
else
- INTERP_THREAD.value
+ # INTERP_THREAD.value
+ begin
+ INTERP_THREAD.value
+ rescue Exception => e
+ raise e
+ end
end
+ rescue Exception => e
+ raise e
ensure
TclTkLib.set_eventloop_window_mode(false)
end
@@ -1911,7 +2080,7 @@ module TkCore
puts 'invoke args => ' + args.inspect if $DEBUG
### print "=> ", args.join(" ").inspect, "\n" if $DEBUG
begin
- # res = INTERP._invoke(*args).taint
+ # res = TkUtil.untrust(INTERP._invoke(*args))
# res = INTERP._invoke(enc_mode, *args)
res = _ip_invoke_core(enc_mode, *args)
# >>>>> _invoke returns a TAINTED string <<<<<
@@ -1919,7 +2088,7 @@ module TkCore
# err = $!
begin
args.unshift "unknown"
- #res = INTERP._invoke(*args).taint
+ #res = TkUtil.untrust(INTERP._invoke(*args))
#res = INTERP._invoke(enc_mode, *args)
res = _ip_invoke_core(enc_mode, *args)
# >>>>> _invoke returns a TAINTED string <<<<<
@@ -3028,7 +3197,7 @@ if (/^(8\.[1-9]|9\.|[1-9][0-9])/ =~ Tk::TCL_VERSION && !Tk::JAPANIZED_TK)
=begin
if ext_enc_obj == Tk::Encoding::UNKNOWN
- if defind? DEFAULT_TK_ENCODING
+ if defined? DEFAULT_TK_ENCODING
if DEFAULT_TK_ENCODING.kind_of?(::Encoding)
tk_enc_name = DEFAULT_TK_ENCODING.name
tksys_enc_name = DEFAULT_TK_ENCODING.name
@@ -3126,7 +3295,7 @@ if (/^(8\.[1-9]|9\.|[1-9][0-9])/ =~ Tk::TCL_VERSION && !Tk::JAPANIZED_TK)
#if ext_enc_name && ext_enc_name != tksys_enc_name
int_enc_name = Tk::Encoding::ENCODING_TABLE.get_name(int_enc_obj)
if int_enc_name
- # use default_external
+ # use default_internal
enc_name = int_enc_name
else
# use Tk.encoding_system
@@ -3279,10 +3448,10 @@ module TkTreatFont
TkFont.init_widget_font(pathname, *__confinfo_cmd)
else
fonts = {}
- optkeys.each{|key|
- key = key.to_s
- pathname = [win, tag, key].join(';')
- fonts[key] =
+ optkeys.each{|k|
+ k = k.to_s
+ pathname = [win, tag, k].join(';')
+ fonts[k] =
TkFont.used_on(pathname) ||
TkFont.init_widget_font(pathname, *__confinfo_cmd)
}
@@ -3407,7 +3576,7 @@ module TkTreatFont
if fobj.kind_of?(TkFont)
if ltn.kind_of?(TkFont)
conf = {}
- ltn.latin_configinfo.each{|key,val| conf[key] = val}
+ ltn.latin_configinfo.each{|k,val| conf[k] = val}
if keys
fobj.latin_configure(conf.update(keys))
else
@@ -3467,7 +3636,7 @@ module TkTreatFont
if fobj.kind_of?(TkFont)
if knj.kind_of?(TkFont)
conf = {}
- knj.kanji_configinfo.each{|key,val| conf[key] = val}
+ knj.kanji_configinfo.each{|k,val| conf[k] = val}
if keys
fobj.kanji_configure(conf.update(keys))
else
@@ -3701,11 +3870,17 @@ module TkConfigMethod
val
end
+ def cget_tkstring(option)
+ opt = option.to_s
+ fail ArgumentError, "Invalid option `#{option.inspect}'" if opt.length == 0
+ tk_call_without_enc(*(__cget_cmd << "-#{opt}"))
+ end
+
def __cget_core(slot)
orig_slot = slot
slot = slot.to_s
- if slot.length == 0
+ if slot.length == 0
fail ArgumentError, "Invalid option `#{orig_slot.inspect}'"
end
@@ -4106,7 +4281,8 @@ module TkConfigMethod
else
# conf = tk_split_list(_fromUTF8(tk_call_without_enc(*(__confinfo_cmd << "-#{slot}"))))
- conf = tk_split_list(tk_call_without_enc(*(__confinfo_cmd << "-#{slot}")), 0, false, true)
+ # conf = tk_split_list(tk_call_without_enc(*(__confinfo_cmd << "-#{slot}")), 0, false, true)
+ conf = tk_split_list(tk_call_without_enc(*(__confinfo_cmd << "-#{slot}")), 1, false, true)
end
conf[__configinfo_struct[:key]] =
conf[__configinfo_struct[:key]][1..-1]
@@ -4296,8 +4472,8 @@ module TkConfigMethod
end
}
- __methodcall_optkeys.each{|optkey, method|
- ret << [optkey.to_s, '', '', '', self.__send__(method)]
+ __methodcall_optkeys.each{|optkey, m|
+ ret << [optkey.to_s, '', '', '', self.__send__(m)]
}
ret
@@ -4335,7 +4511,7 @@ module TkConfigMethod
if slot
slot = slot.to_s
- alias_name, real_name = __optkey_aliases.find{|k, v| k.to_s == slot}
+ alias_name, real_name = __optkey_aliases.find{|k,var| k.to_s == slot}
if real_name
slot = real_name.to_s
end
@@ -4682,8 +4858,8 @@ module TkConfigMethod
end
}
- __methodcall_optkeys.each{|optkey, method|
- ret[optkey.to_s] = ['', '', '', self.__send__(method)]
+ __methodcall_optkeys.each{|optkey, m|
+ ret[optkey.to_s] = ['', '', '', self.__send__(m)]
}
ret
@@ -4721,18 +4897,18 @@ module TkConfigMethod
"there is a configure alias loop about '#{org_slot}'"
else
ret = {}
- configinfo().each{|conf|
+ configinfo().each{|cnf|
if ( ! __configinfo_struct[:alias] \
- || conf.size > __configinfo_struct[:alias] + 1 )
- ret[conf[0]] = conf[-1]
+ || cnf.size > __configinfo_struct[:alias] + 1 )
+ ret[cnf[0]] = cnf[-1]
end
}
ret
end
else # ! TkComm::GET_CONFIGINFO_AS_ARRAY
ret = {}
- configinfo(slot).each{|key, conf|
- ret[key] = conf[-1] if conf.kind_of?(Array)
+ configinfo(slot).each{|key, cnf|
+ ret[key] = cnf[-1] if cnf.kind_of?(Array)
}
ret
end
@@ -4803,7 +4979,7 @@ class TkObject<TkKernel
begin
cget(name)
rescue
- if self.kind_of?(TkWindow)
+ if self.kind_of?(TkWindow) && name != "to_ary" && name != "to_str"
fail NameError,
"unknown option '#{id}' for #{self.inspect} (deleted widget?)"
else
@@ -4864,6 +5040,7 @@ class TkWindow<TkObject
include TkWinfo
extend TkBindCore
include Tk::Wm_for_General
+ include Tk::Busy
@@WIDGET_INSPECT_FULL = false
def TkWindow._widget_inspect_full_?
@@ -5177,14 +5354,12 @@ class TkWindow<TkObject
TkGrid.columnconfigure(self, index, keys)
end
alias grid_columnconfigure grid_columnconfig
- alias grid_column grid_columnconfig
def grid_rowconfig(index, keys)
#tk_call('grid', 'rowconfigure', epath, index, *hash_kv(keys))
TkGrid.rowconfigure(self, index, keys)
end
alias grid_rowconfigure grid_rowconfig
- alias grid_row grid_rowconfig
def grid_columnconfiginfo(index, slot=nil)
#if slot
@@ -5214,6 +5389,22 @@ class TkWindow<TkObject
TkGrid.rowconfiginfo(self, index, slot)
end
+ def grid_column(index, keys=nil)
+ if keys.kind_of?(Hash)
+ grid_columnconfigure(index, keys)
+ else
+ grid_columnconfiginfo(index, keys)
+ end
+ end
+
+ def grid_row(index, keys=nil)
+ if keys.kind_of?(Hash)
+ grid_rowconfigure(index, keys)
+ else
+ grid_rowconfiginfo(index, keys)
+ end
+ end
+
def grid_info()
#list(tk_call('grid', 'info', epath))
TkGrid.info(self)
@@ -5250,9 +5441,9 @@ class TkWindow<TkObject
TkGrid.size(self)
end
- def grid_slaves(args)
+ def grid_slaves(keys = nil)
#list(tk_call('grid', 'slaves', epath, *hash_kv(args)))
- TkGrid.slaves(self, args)
+ TkGrid.slaves(self, keys)
end
def place(keys)
@@ -5551,7 +5742,7 @@ TkWidget = TkWindow
#Tk.freeze
module Tk
- RELEASE_DATE = '2009-01-13'.freeze
+ RELEASE_DATE = '2010-06-03'.freeze
autoload :AUTO_PATH, 'tk/variable'
autoload :TCL_PACKAGE_PATH, 'tk/variable'
diff --git a/ext/tk/lib/tk/autoload.rb b/ext/tk/lib/tk/autoload.rb
index df888eb927..f6ca261da9 100644
--- a/ext/tk/lib/tk/autoload.rb
+++ b/ext/tk/lib/tk/autoload.rb
@@ -27,6 +27,8 @@ def TkPlace(*args); TkPlace.configure(*args); end
############################################
# classes on Tk module
module Tk
+ autoload :Busy, 'tk/busy'
+
autoload :Button, 'tk/button'
autoload :Canvas, 'tk/canvas'
@@ -319,9 +321,16 @@ module Tk
@TOPLEVEL_ALIAS_SETUP_PROC = {}
+ @AUTOLOAD_FILE_SYM_TABLE = Hash.new{|h,k| h[k]={}} # TABLE[file][sym] -> obj
+
@current_default_widget_set = nil
+
+ module TOPLEVEL_ALIASES; end
end
+class Object
+ include Tk::TOPLEVEL_ALIASES
+end
############################################
# methods to control default widget set
@@ -343,50 +352,387 @@ class << Tk
_replace_toplevel_aliases(target)
end
- def __set_toplevel_aliases__(target, obj, *symbols)
+ def widget_set_symbols
+ @TOPLEVEL_ALIAS_TABLE.keys
+ end
+
+ def toplevel_aliases_on_widget_set(widget_set)
+ if (tbl = @TOPLEVEL_ALIAS_TABLE[widget_set.to_sym])
+ tbl.collect{|k, v| (v.nil?)? nil: k}.compact
+ else
+ fail ArgumentError, "unknown widget_set #{widget_set.to_sym.inspect}"
+ end
+ end
+
+ def __toplevel_alias_setup_proc__(*target_list, &cmd)
+ target_list.each{|target| @TOPLEVEL_ALIAS_SETUP_PROC[target.to_sym] = cmd}
+ end
+
+ def topobj_defined?(sym) #=> alias_filename or object or false
+ Object.autoload?(sym) ||
+ (Object.const_defined?(sym) && Object.const_get(sym))
+ end
+ def topalias_defined?(sym) #=> alias_filename or object or false
+ Tk::TOPLEVEL_ALIASES.autoload?(sym) ||
+ (Tk::TOPLEVEL_ALIASES.const_defined?(sym) &&
+ Tk::TOPLEVEL_ALIASES.const_get(sym))
+ end
+ def define_topobj(sym, obj)
+ if obj.kind_of? String
+ # obj is an autoload path
+ Object.autoload(sym, obj)
+ unless Object.autoload?(sym)
+ # file is autoloaded?
+ if @AUTOLOAD_FILE_SYM_TABLE.has_key?(obj) &&
+ (loaded_obj = @AUTOLOAD_FILE_SYM_TABLE[obj][sym])
+ Object.const_set(sym, loaded_obj)
+ else
+ fail ArgumentError, "cannot define autoload file (already loaded?)"
+ end
+ end
+ else
+ # object
+ Object.const_set(sym, obj)
+ end
+ end
+ def define_topalias(sym, obj)
+ if obj.kind_of? String
+ # obj is an autoload path
+ Tk::TOPLEVEL_ALIASES.autoload(sym, obj)
+ unless Tk::TOPLEVEL_ALIASES.autoload?(sym)
+ # file is autoloaded?
+ if @AUTOLOAD_FILE_SYM_TABLE.has_key?(obj) &&
+ (loaded_obj = @AUTOLOAD_FILE_SYM_TABLE[obj][sym])
+ Tk::TOPLEVEL_ALIASES.const_set(sym, loaded_obj)
+ else
+ fail ArgumentError, "cannot define autoload file (already loaded?)"
+ end
+ end
+ else
+ # object
+ Tk::TOPLEVEL_ALIASES.const_set(sym, obj)
+ end
+ end
+ def replace_topobj(sym, obj) #=> old_obj (alias_filename or object) or nil
+ if old_obj = topobj_defined?(sym)
+ Object.class_eval{remove_const sym} rescue nil # ignore err
+ end
+ define_topobj(sym, obj)
+ old_obj
+ end
+ def replace_topalias(sym, obj) #=> old_obj (alias_filename or object) or nil
+ if old_obj = topalias_defined?(sym)
+ Tk::TOPLEVEL_ALIASES.module_eval{remove_const sym} rescue nil #ignore err
+ end
+ define_topalias(sym, obj)
+ old_obj
+ end
+ private :topobj_defined?, :topalias_defined?
+ private :define_topobj, :define_topalias
+ private :replace_topobj, :replace_topalias
+
+ def __regist_toplevel_aliases__(target, obj, *symbols)
+ # initial regist
@TOPLEVEL_ALIAS_TABLE[target = target.to_sym] ||= {}
symbols.each{|sym|
@TOPLEVEL_ALIAS_TABLE[target][sym = sym.to_sym] = obj
- # if @current_default_widget_set == target
- if @TOPLEVEL_ALIAS_OWNER[sym] == target
- Object.class_eval{remove_const sym} if Object.const_defined?(sym)
- Object.const_set(sym, obj)
+ if !topalias_defined?(sym) || target == @current_default_widget_set
+ @TOPLEVEL_ALIAS_OWNER[sym] = target
+ replace_topalias(sym, obj)
+ replace_topobj(sym, obj) unless obj.kind_of?(String) # NOT autoload
end
}
end
- ###################################
- private
- def _replace_toplevel_aliases(target)
- # check already autoloaded
- if (table = @TOPLEVEL_ALIAS_TABLE[current = @current_default_widget_set])
- table.each{|sym, file|
- if !Object.autoload?(sym) && Object.const_defined?(sym) &&
- @TOPLEVEL_ALIAS_TABLE[current][sym].kind_of?(String)
- # autoload -> class
- @TOPLEVEL_ALIAS_TABLE[current][sym] = Object.const_get(sym)
+ def regist_sym_for_loaded_file(auto, obj, sym)
+ @AUTOLOAD_FILE_SYM_TABLE[auto][sym] = obj
+
+ reg = /^#{Regexp.quote(auto)}(\.rb|\.so|)$/
+ @TOPLEVEL_ALIAS_TABLE.each_key{|set|
+ if @TOPLEVEL_ALIAS_TABLE[set][sym] =~ reg
+ @TOPLEVEL_ALIAS_TABLE[set][sym] = obj
+ if @TOPLEVEL_ALIAS_OWNER[sym].nil? || @TOPLEVEL_ALIAS_OWNER[sym] == set
+ replace_topalias(sym, obj)
+ replace_topobj(sym, obj) if set == @current_default_widget_set
+ end
+ end
+ }
+ if (f = Object.autoload?(sym)) && f =~ reg
+ replace_topobj(sym, obj)
+ end
+ if (f = Tk::TOPLEVEL_ALIASES.autoload?(sym)) && f =~ reg
+ replace_topalias(sym, obj)
+ end
+ end
+ private :regist_sym_for_loaded_file
+
+ def set_topalias(target, obj, sym)
+ # obj is a kind of String : define autoload path
+ # Class : use the class object
+ if target == @current_default_widget_set
+ case @TOPLEVEL_ALIAS_OWNER[sym]
+ when false
+ # Object::sym is out of control. --> not change
+ # Make ALIAS::sym under control, because target widget set is current.
+ # Keep OWNER[sym]
+ @TOPLEVEL_ALIAS_TABLE[target][sym] = obj
+ replace_topalias(sym, obj)
+
+ when target
+ if current_obj = topobj_defined?(sym)
+ if current_obj == obj
+ # Make current_obj under control.
+ # Keep Object::sym.
+ # Keep OWNER[sym].
+ @TOPLEVEL_ALIAS_TABLE[target][sym] = obj
+ replace_topalias(sym, obj)
+
+ else # current_obj != obj
+ if current_obj == topalias_defined?(sym)
+ # Change controlled object
+ # Keep OWNER[sym].
+ @TOPLEVEL_ALIAS_TABLE[target][sym] = obj
+ replace_topalias(sym, obj)
+ replace_topobj(sym, obj)
+
+ else # current_obj != topalias_defined?(sym)
+ # Maybe current_obj is defined by user. --> OWNER[sym] = faise
+ # Keep Object::sym.
+ @TOPLEVEL_ALIAS_OWNER[sym] = false
+ @TOPLEVEL_ALIAS_TABLE[target][sym] = obj
+ replace_topalias(sym, obj)
+ end
+ end
+
+ else # NOT topobj_defined?(sym)
+ # New definition for sym at target.
+ # Keep OWNER[sym].
+ @TOPLEVEL_ALIAS_TABLE[target][sym] = obj
+ replace_topalias(sym, obj)
+ define_topobj(sym, obj)
+ end
+
+ when nil
+ # New definition for sym at target.
+ @TOPLEVEL_ALIAS_OWNER[sym] = target
+ @TOPLEVEL_ALIAS_TABLE[target][sym] = obj
+ replace_topalias(sym, obj)
+
+ else # others
+ # Maybe planning to make sym under control.
+ @TOPLEVEL_ALIAS_OWNER[sym] = target
+ @TOPLEVEL_ALIAS_TABLE[target][sym] = obj
+ replace_topalias(sym, obj)
+ replace_topobj(sym, obj)
+ end
+
+ else # target != @current_default_widget_set
+ case @TOPLEVEL_ALIAS_OWNER[sym]
+ when false
+ # Object::sym is out of control. --> not change
+ if topalias_defined?(sym)
+ # ALIAS[sym] may be defined by other widget set.
+ # Keep Object::sym (even if it is not defined)
+ # Keep ALIAS[sym].
+ # Keep OWNER[sym].
+ @TOPLEVEL_ALIAS_TABLE[target][sym] = obj
+
+ else # NOT topalias_defined?(sym)
+ # Nobody controls ALIAS[sym].
+ # At leaset, current widget set doesn't control ALIAS[sym].
+ # Keep Object::sym (even if it is not defined)
+ # Keep OWNER[sym].
+ @TOPLEVEL_ALIAS_TABLE[target][sym] = obj
+ define_topalias(sym, obj)
+ end
+
+ when target
+ # Maybe change controlled object, because Object::sym is under control.
+ # Keep OWNER[sym].
+ @TOPLEVEL_ALIAS_TABLE[target][sym] = obj
+ replace_topalias(sym, obj)
+ replace_topobj(sym, obj)
+
+ when nil
+ # New definition for sym
+ @TOPLEVEL_ALIAS_OWNER[sym] = target
+ @TOPLEVEL_ALIAS_TABLE[target][sym] = obj
+ replace_topalias(sym, obj)
+ replace_topobj(sym, obj)
+
+ else # others
+ # An other widget set controls sym.
+ # Keep Object::sym (even if it is not defined)
+ # Keep ALIAS[sym].
+ # Keep OWNER[sym].
+ @TOPLEVEL_ALIAS_TABLE[target][sym] = obj
+
+ end
+ end
+
+ sym
+ end
+ private :set_topalias
+
+ def __set_toplevel_aliases__(target, obj, *symbols)
+ # obj is a kind of String : define autoload path
+ # Class : use the class object
+ target = target.to_sym
+ symbols.each{|sym| set_topalias(target, obj, sym.to_sym)}
+ end
+
+ def __set_loaded_toplevel_aliases__(autopath, target, obj, *symbols)
+ # autopath is an autoload file
+ # Currently, this method doesn't support that autoload loads
+ # different toplevels between <basename>.rb and <basename>.so extension.
+ shortpath = (autopath =~ /^(.*)(.rb|.so)$/)? $1: autopath
+ target = target.to_sym
+ symbols.map!{|sym| sym.to_sym}
+
+ symbols.each{|sym| regist_sym_for_loaded_file(shortpath, obj, sym) }
+ symbols.each{|sym| set_topalias(target, obj, sym)}
+ end
+
+ def backup_current_topdef(sym)
+ return if (current = @current_default_widget_set).nil?
+
+ case @TOPLEVEL_ALIAS_OWNER[sym]
+ when false
+ # Object::sym is out of control.
+ if (cur_alias = topalias_defined?(sym)) && ! cur_alias.kind_of?(String)
+ @TOPLEVEL_ALIAS_TABLE[current][sym] = cur_alias
+ end
+
+ when current
+ if cur_obj = topobj_defined?(sym)
+ if ! cur_obj.kind_of?(String) && (cur_alias = topalias_defined?(sym))
+ if cur_alias.kind_of?(String)
+ # Mayby, user replaced Object::sym.
+ # Make Object::sym out of control.
+ @TOPLEVEL_ALIAS_OWNER[sym] = false
+ elsif cur_obj == cur_alias
+ # Possibley, defined normally. Backup it
+ @TOPLEVEL_ALIAS_TABLE[current][sym] = cur_alias
+ else
+ # Mayby, user replaced Object::sym.
+ # Make Object::sym out of control.
+ @TOPLEVEL_ALIAS_OWNER[sym] = false
+ end
end
- }
+ else
+ # Mayby, user replaced Object::sym.
+ # Make Object::sym out of control.
+ @TOPLEVEL_ALIAS_OWNER[sym] = false
+ end
+
+ when nil
+ # Object::sym is out of control.
+ if (cur_alias = topalias_defined?(sym)) && ! cur_alias.kind_of?(String)
+ # Possibley, defined normally. Backup it.
+ @TOPLEVEL_ALIAS_TABLE[current][sym] = cur_alias
+ end
+ else
+ # No authority to control Object::sym and ALIASES::sym.
+ # Do nothing.
end
+ end
+ private :backup_current_topdef
- # setup autoloads
- @TOPLEVEL_ALIAS_TABLE[target].each{|sym, file|
- Object.class_eval{remove_const sym} if Object.const_defined?(sym)
- if file.kind_of?(String)
- # file => autoload target file
- Object.autoload(sym, file)
+ def _replace_toplevel_aliases(target)
+ # backup
+ @TOPLEVEL_ALIAS_TABLE[target].each_key{|sym|
+ backup_current_topdef(sym)
+ }
+
+ # replace
+ @TOPLEVEL_ALIAS_TABLE[target].each_key{|sym|
+ next if (obj = @TOPLEVEL_ALIAS_TABLE[target][sym]).nil?
+ if @TOPLEVEL_ALIAS_OWNER[sym] == false
+ # Object::sym is out of control. --> not change
+ # Keep OWNER[sym].
+ replace_topalias(sym, obj)
else
- # file => loaded class object
- Object.const_set(sym, file)
+ # New definition
+ @TOPLEVEL_ALIAS_OWNER[sym] = target
+ replace_topalias(sym, obj)
+ replace_topobj(sym, obj)
end
- @TOPLEVEL_ALIAS_OWNER[sym] = target
}
- # update current alias
+ # change default_widget_set
@current_default_widget_set = target
end
+ private :_replace_toplevel_aliases
+
+ def __import_toplevel_aliases__(target, *symbols)
+ current = @current_default_widget_set
+ symbols.each{|sym|
+ sym = sym.to_sym
+ if (obj = @TOPLEVEL_ALIAS_TABLE[target][sym]).nil?
+ # remove
+ @TOPLEVEL_ALIAS_TABLE[current].delete(sym)
+ @TOPLEVEL_ALIAS_OWNER.delete(sym)
+ Tk::TOPLEVEL_ALIASES.module_eval{remove_const sym} if topalias_defined?(sym)
+ Object.class_eval{remove_const sym} if topobj_defined?(sym)
+
+ elsif obj == false
+ # remove, but OWNER[sym] <- false and not treat Object::sym
+ @TOPLEVEL_ALIAS_TABLE[current].delete(sym)
+ @TOPLEVEL_ALIAS_OWNER[sym] = false
+ Tk::TOPLEVEL_ALIASES.module_eval{remove_const sym} if topalias_defined?(sym)
+
+ elsif @TOPLEVEL_ALIAS_OWNER[sym] == false
+ # Object::sym is out of control. --> not change
+ # Keep OWNER[sym].
+ @TOPLEVEL_ALIAS_TABLE[current][sym] = obj
+ replace_topalias(sym, obj)
+
+ else
+ # new definition under control
+ @TOPLEVEL_ALIAS_OWNER[sym] = current
+ @TOPLEVEL_ALIAS_TABLE[current][sym] = obj
+ replace_topalias(sym, obj)
+ replace_topobj(sym, obj)
+ end
+ }
+ end
+
+ def __remove_toplevel_aliases__(*symbols)
+ # remove toplevel aliases of current widget set
+ current = @current_default_widget_set
+ symbols.each{|sym|
+ sym = sym.to_sym
+ @TOPLEVEL_ALIAS_TABLE[current].delete(sym)
+ @TOPLEVEL_ALIAS_OWNER.delete(sym)
+ Tk::TOPLEVEL_ALIASES.module_eval{remove_const sym} if topalias_defined?(sym)
+ Object.class_eval{remove_const sym} if topobj_defined?(sym)
+ }
+ end
+
+ def __reset_toplevel_owner__(*symbols)
+ symbols.each{|sym| @TOPLEVEL_ALIAS_OWNER.delete(sym.to_sym)}
+ end
+
+ def __disable_toplevel_control__(*symbols)
+ symbols.each{|sym| @TOPLEVEL_ALIAS_OWNER[sym.to_sym] = false}
+ end
+
+ def __create_widget_set__(new_set, src_set={})
+ new_set = new_set.to_sym
+ if @TOPLEVEL_ALIAS_TABLE[new_set]
+ fail RuntimeError, "A widget-set #{new_set.inspect} is already exist."
+ end
+ if src_set.kind_of?(Symbol)
+ # new_set is an alias name of existed widget set.
+ @TOPLEVEL_ALIAS_TABLE[new_set] = @TOPLEVEL_ALIAS_TABLE[src_set]
+ else
+ @TOPLEVEL_ALIAS_TABLE[new_set] = {}
+ src_set.each{|sym, obj| set_topalias(new_set, obj, sym.to_sym) }
+ end
+ end
end
+
############################################
# setup default widget set => :Tk
Tk.default_widget_set = :Tk
diff --git a/ext/tk/lib/tk/bindtag.rb b/ext/tk/lib/tk/bindtag.rb
index 88c8367a88..23b4e0b7c3 100644
--- a/ext/tk/lib/tk/bindtag.rb
+++ b/ext/tk/lib/tk/bindtag.rb
@@ -9,7 +9,7 @@ class TkBindTag
#BTagID_TBL = {}
BTagID_TBL = TkCore::INTERP.create_table
- (Tk_BINDTAG_ID = ["btag".freeze, "00000".taint]).instance_eval{
+ (Tk_BINDTAG_ID = ["btag".freeze, TkUtil.untrust("00000")]).instance_eval{
@mutex = Mutex.new
def mutex; @mutex; end
freeze
diff --git a/ext/tk/lib/tk/busy.rb b/ext/tk/lib/tk/busy.rb
new file mode 100644
index 0000000000..7f4f89f524
--- /dev/null
+++ b/ext/tk/lib/tk/busy.rb
@@ -0,0 +1,118 @@
+#
+# tk/busy.rb: support 'tk busy' command (Tcl/Tk8.6 or later)
+#
+require 'tk'
+
+module Tk::Busy
+ include TkCore
+ extend TkCore
+ extend TkItemConfigMethod
+end
+
+class << Tk::Busy
+ def __item_cget_cmd(win)
+ # maybe need to override
+ ['tk', 'busy', 'cget', win.path]
+ end
+ private :__item_cget_cmd
+
+ def __item_config_cmd(win)
+ # maybe need to override
+ ['tk', 'busy', 'configure', win.path]
+ end
+ private :__item_config_cmd
+
+ def __item_confinfo_cmd(win)
+ # maybe need to override
+ __item_config_cmd(win)
+ end
+ private :__item_confinfo_cmd
+
+ alias cget_tkstring itemcget_tkstring
+ alias cget itemcget
+ alias cget_strict itemcget_strict
+ alias configure itemconfigure
+ alias configinfo itemconfiginfo
+ alias current_configinfo current_itemconfiginfo
+
+ private :itemcget_tkstring, :itemcget, :itemcget_strict
+ private :itemconfigure, :itemconfiginfo, :current_itemconfiginfo
+
+ def method_missing(id, *args)
+ name = id.id2name
+ case args.length
+ when 1
+ if name[-1] == ?=
+ configure name[0..-2], args[0]
+ args[0]
+ else
+ configure name, args[0]
+ self
+ end
+ when 0
+ begin
+ cget(name)
+ rescue
+ super(id, *args)
+ end
+ else
+ super(id, *args)
+ end
+ end
+
+ def hold(win, keys={})
+ tk_call_without_enc('tk', 'busy', 'hold', win, *hash_kv(keys))
+ win
+ end
+
+ def forget(*wins)
+ tk_call_without_enc('tk', 'busy', 'forget', *wins)
+ self
+ end
+
+ def current(pat=None)
+ list(tk_call('tk', 'busy', 'current', pat))
+ end
+
+ def status(win)
+ bool(tk_call_without_enc('tk', 'busy', 'status', win))
+ end
+end
+
+module Tk::Busy
+ def busy_configinfo(option=nil)
+ Tk::Busy.configinfo(self, option)
+ end
+
+ def busy_current_configinfo(option=nil)
+ Tk::Busy.current_configinfo(self, option)
+ end
+
+ def busy_configure(option, value=None)
+ Tk::Busy.configure(self, option, value)
+ self
+ end
+
+ def busy_cget(option)
+ Tk::Busy.configure(self, option)
+ end
+
+ def busy(keys={})
+ Tk::Busy.hold(self, keys)
+ self
+ end
+ alias busy_hold busy
+
+ def busy_forget
+ Tk::Busy.forget(self)
+ self
+ end
+
+ def busy_current?
+ ! Tk::Busy.current(self.path).empty?
+ end
+
+ def busy_status
+ Tk::Busy.status(self)
+ end
+end
diff --git a/ext/tk/lib/tk/button.rb b/ext/tk/lib/tk/button.rb
index 770a5785bb..65233c91b6 100644
--- a/ext/tk/lib/tk/button.rb
+++ b/ext/tk/lib/tk/button.rb
@@ -7,7 +7,7 @@ require 'tk/label'
class Tk::Button<Tk::Label
TkCommandNames = ['button'.freeze].freeze
WidgetClassName = 'Button'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
#def create_self(keys)
# if keys and keys != None
# tk_call_without_enc('button', @path, *hash_kv(keys, true))
@@ -27,4 +27,5 @@ class Tk::Button<Tk::Label
end
#TkButton = Tk::Button unless Object.const_defined? :TkButton
-Tk.__set_toplevel_aliases__(:Tk, Tk::Button, :TkButton)
+#Tk.__set_toplevel_aliases__(:Tk, Tk::Button, :TkButton)
+Tk.__set_loaded_toplevel_aliases__('tk/button.rb', :Tk, Tk::Button, :TkButton)
diff --git a/ext/tk/lib/tk/canvas.rb b/ext/tk/lib/tk/canvas.rb
index b05a619939..7d3d71675c 100644
--- a/ext/tk/lib/tk/canvas.rb
+++ b/ext/tk/lib/tk/canvas.rb
@@ -25,7 +25,10 @@ module TkCanvasItemConfig
private :__item_methodcall_optkeys
def __item_val2ruby_optkeys(id) # { key=>proc, ... }
- super(id).update('window'=>proc{|i, v| window(v)})
+ super(id).update('window'=>proc{|i, v| window(v)},
+ 'tags'=>proc{|i, v|
+ simplelist(v).collect{|tag| TkcTag.id2obj(self, tag)}
+ })
end
private :__item_val2ruby_optkeys
@@ -45,7 +48,7 @@ class Tk::Canvas<TkWindow
TkCommandNames = ['canvas'.freeze].freeze
WidgetClassName = 'Canvas'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
def __destroy_hook__
TkcItem::CItemID_TBL.delete(@path)
@@ -82,6 +85,7 @@ class Tk::Canvas<TkWindow
# create a canvas item without creating a TkcItem object
def create(type, *args)
+ type = TkcItem.type2class(type.to_s) unless type.kind_of?(TkcItem)
type.create(self, *args)
end
@@ -172,7 +176,7 @@ class Tk::Canvas<TkWindow
alias canvas_y canvasy
def coords(tag, *args)
- if args == []
+ if args.empty?
tk_split_list(tk_send_without_enc('coords', tagid(tag)))
else
tk_send_without_enc('coords', tagid(tag), *(args.flatten))
@@ -265,6 +269,12 @@ class Tk::Canvas<TkWindow
self
end
+ def imove(tagOrId, idx, x, y)
+ tk_send_without_enc('imove', tagid(tagOrId), idx, x, y)
+ self
+ end
+ alias i_move imove
+
def index(tagOrId, idx)
number(tk_send_without_enc('index', tagid(tagOrId), idx))
end
@@ -523,10 +533,17 @@ class Tk::Canvas<TkWindow
self
end
- def move(tag, x, y)
- tk_send_without_enc('move', tagid(tag), x, y)
+ def move(tag, dx, dy)
+ tk_send_without_enc('move', tagid(tag), dx, dy)
+ self
+ end
+
+ def moveto(tag, x, y)
+ # Tcl/Tk 8.6 or later
+ tk_send_without_enc('moveto', tagid(tag), x, y)
self
end
+ alias move_to moveto
def postscript(keys)
tk_send("postscript", *hash_kv(keys))
@@ -541,6 +558,15 @@ class Tk::Canvas<TkWindow
self
end
+ def rchars(tag, first, last, str_or_coords)
+ # Tcl/Tk 8.6 or later
+ str_or_coords = str_or_coords.flatten if str_or_coords.kinad_of? Array
+ tk_send_without_enc('rchars', tagid(tag), first, last, str_or_coords)
+ self
+ end
+ alias replace_chars rchars
+ alias replace_coords rchars
+
def scale(tag, x, y, xs, ys)
tk_send_without_enc('scale', tagid(tag), x, y, xs, ys)
self
@@ -578,10 +604,35 @@ class Tk::Canvas<TkWindow
def itemtype(tag)
TkcItem.type2class(tk_send('type', tagid(tag)))
end
+
+ def create_itemobj_from_id(idnum)
+ id = TkcItem.id2obj(self, idnum.to_i)
+ return id if id.kind_of?(TkcItem)
+
+ typename = tk_send('type', id)
+ unless type = TkcItem.type2class(typename)
+ (itemclass = typename.dup)[0,1] = typename[0,1].upcase
+ type = TkcItem.const_set(itemclass, Class.new(TkcItem))
+ type.const_set("CItemTypeName", typename.freeze)
+ TkcItem::CItemTypeToClass[typename] = type
+ end
+
+ canvas = self
+ (obj = type.allocate).instance_eval{
+ @parent = @c = canvas
+ @path = canvas.path
+ @id = id
+ TkcItem::CItemID_TBL.mutex.synchronize{
+ TkcItem::CItemID_TBL[@path] = {} unless TkcItem::CItemID_TBL[@path]
+ TkcItem::CItemID_TBL[@path][@id] = self
+ }
+ }
+ end
end
#TkCanvas = Tk::Canvas unless Object.const_defined? :TkCanvas
-Tk.__set_toplevel_aliases__(:Tk, Tk::Canvas, :TkCanvas)
+#Tk.__set_toplevel_aliases__(:Tk, Tk::Canvas, :TkCanvas)
+Tk.__set_loaded_toplevel_aliases__('tk/canvas.rb', :Tk, Tk::Canvas, :TkCanvas)
class TkcItem<TkObject
@@ -667,7 +718,7 @@ class TkcItem<TkObject
args = args.flatten
end
- [args, fontkeys]
+ [args, fontkeys, methodkeys]
end
private_class_method :_parse_create_args
@@ -675,10 +726,11 @@ class TkcItem<TkObject
unless self::CItemTypeName
fail RuntimeError, "#{self} is an abstract class"
end
- args, fontkeys = _parse_create_args(args)
+ args, fontkeys, methodkeys = _parse_create_args(args)
idnum = tk_call_without_enc(canvas.path, 'create',
self::CItemTypeName, *args)
canvas.itemconfigure(idnum, fontkeys) unless fontkeys.empty?
+ canvas.itemconfigure(idnum, methodkeys) unless methodkeys.empty?
idnum.to_i # 'canvas item id' is an integer number
end
########################################
diff --git a/ext/tk/lib/tk/canvastag.rb b/ext/tk/lib/tk/canvastag.rb
index 4e57a159bf..495d92a9a8 100644
--- a/ext/tk/lib/tk/canvastag.rb
+++ b/ext/tk/lib/tk/canvastag.rb
@@ -60,6 +60,9 @@ module TkcTagAccess
@c.itembindinfo(@id, seq)
end
+ def cget_tkstring(option)
+ @c.itemcget_tkstring(@id, option)
+ end
def cget(option)
@c.itemcget(@id, option)
end
@@ -116,6 +119,13 @@ module TkcTagAccess
self
end
+ def imove(idx, x, y)
+ # Tcl/Tk 8.6 or later
+ @c.imove(@id, idx, x, y)
+ self
+ end
+ alias i_move imove
+
def index(idx)
@c.index(@id, idx)
end
@@ -135,6 +145,13 @@ module TkcTagAccess
self
end
+ def moveto(x, y)
+ # Tcl/Tk 8.6 or later
+ @c.moveto(@id, x, y)
+ self
+ end
+ alias move_to moveto
+
def raise(abovethis=None)
@c.raise(@id, abovethis)
self
@@ -145,6 +162,14 @@ module TkcTagAccess
self
end
+ def rchars(first, last, str_or_coords)
+ # Tcl/Tk 8.6 or later
+ @c.rchars(@id, first, last, str_or_coords)
+ self
+ end
+ alias replace_chars rchars
+ alias replace_coords rchars
+
def select_adjust(index)
@c.select('adjust', @id, index)
self
@@ -203,7 +228,7 @@ class TkcTag<TkObject
CTagID_TBL = TkCore::INTERP.create_table
- (Tk_CanvasTag_ID = ['ctag'.freeze, '00000'.taint]).instance_eval{
+ (Tk_CanvasTag_ID = ['ctag'.freeze, TkUtil.untrust('00000')]).instance_eval{
@mutex = Mutex.new
def mutex; @mutex; end
freeze
@@ -389,7 +414,7 @@ class TkcTagCurrent<TkcTagString
end
class TkcGroup<TkcTag
- (Tk_cGroup_ID = ['tkcg'.freeze, '00000'.taint]).instance_eval{
+ (Tk_cGroup_ID = ['tkcg'.freeze, TkUtil.untrust('00000')]).instance_eval{
@mutex = Mutex.new
def mutex; @mutex; end
freeze
diff --git a/ext/tk/lib/tk/checkbutton.rb b/ext/tk/lib/tk/checkbutton.rb
index c1c4905c5e..b7449541c5 100644
--- a/ext/tk/lib/tk/checkbutton.rb
+++ b/ext/tk/lib/tk/checkbutton.rb
@@ -7,7 +7,7 @@ require 'tk/radiobutton'
class Tk::CheckButton<Tk::RadioButton
TkCommandNames = ['checkbutton'.freeze].freeze
WidgetClassName = 'Checkbutton'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
#def create_self(keys)
# if keys and keys != None
# tk_call_without_enc('checkbutton', @path, *hash_kv(keys, true))
@@ -26,5 +26,7 @@ end
Tk::Checkbutton = Tk::CheckButton
#TkCheckButton = Tk::CheckButton unless Object.const_defined? :TkCheckButton
#TkCheckbutton = Tk::Checkbutton unless Object.const_defined? :TkCheckbutton
-Tk.__set_toplevel_aliases__(:Tk, Tk::CheckButton,
- :TkCheckButton, :TkCheckbutton)
+#Tk.__set_toplevel_aliases__(:Tk, Tk::CheckButton,
+# :TkCheckButton, :TkCheckbutton)
+Tk.__set_loaded_toplevel_aliases__('tk/checkbutton.rb', :Tk, Tk::CheckButton,
+ :TkCheckButton, :TkCheckbutton)
diff --git a/ext/tk/lib/tk/composite.rb b/ext/tk/lib/tk/composite.rb
index 9a4aafda18..e267c7a22b 100644
--- a/ext/tk/lib/tk/composite.rb
+++ b/ext/tk/lib/tk/composite.rb
@@ -145,16 +145,34 @@ module TkComposite
str.chop << ' @epath=' << @epath.inspect << '>'
end
+ def _get_opt_method_list(arg)
+ m_set, m_cget, m_info = arg
+ m_set = m_set.to_s
+ m_cget = m_set if !m_cget && self.method(m_set).arity == -1
+ m_cget = m_cget.to_s if m_cget
+ m_info = m_info.to_s if m_info
+ [m_set, m_cget, m_info]
+ end
+ private :_get_opt_method_list
+
def option_methods(*opts)
- opts.each{|m_set, m_cget, m_info|
- m_set = m_set.to_s
- m_cget = m_set if !m_cget && self.method(m_set).arity == -1
- m_cget = m_cget.to_s if m_cget
- m_info = m_info.to_s if m_info
- @option_methods[m_set] = {
- :set => m_set, :cget => m_cget, :info => m_info
+ if opts.size == 1 && opts[0].kind_of?(Hash)
+ # {name => [m_set, m_cget, m_info], name => method} style
+ opts[0].each{|name, arg|
+ m_set, m_cget, m_info = _get_opt_method_list(arg)
+ @option_methods[name.to_s] = {
+ :set => m_set, :cget => m_cget, :info => m_info
+ }
}
- }
+ else
+ # [m_set, m_cget, m_info] or method style
+ opts.each{|arg|
+ m_set, m_cget, m_info = _get_opt_method_list(arg)
+ @option_methods[m_set] = {
+ :set => m_set, :cget => m_cget, :info => m_info
+ }
+ }
+ end
end
def delegate_alias(alias_opt, option, *wins)
@@ -215,6 +233,14 @@ module TkComposite
end
private :__cget_delegates
+ def cget_tkstring(slot)
+ if (ret = __cget_delegates(slot)) == None
+ super(slot)
+ else
+ _get_eval_string(ret)
+ end
+ end
+
def cget(slot)
if (ret = __cget_delegates(slot)) == None
super(slot)
diff --git a/ext/tk/lib/tk/entry.rb b/ext/tk/lib/tk/entry.rb
index 8ce8def1e7..d4aa03f2b6 100644
--- a/ext/tk/lib/tk/entry.rb
+++ b/ext/tk/lib/tk/entry.rb
@@ -13,7 +13,7 @@ class Tk::Entry<Tk::Label
TkCommandNames = ['entry'.freeze].freeze
WidgetClassName = 'Entry'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
#def create_self(keys)
# super(__conv_vcmd_on_hash_kv(keys))
@@ -116,4 +116,5 @@ class Tk::Entry<Tk::Label
end
#TkEntry = Tk::Entry unless Object.const_defined? :TkEntry
-Tk.__set_toplevel_aliases__(:Tk, Tk::Entry, :TkEntry)
+#Tk.__set_toplevel_aliases__(:Tk, Tk::Entry, :TkEntry)
+Tk.__set_loaded_toplevel_aliases__('tk/entry.rb', :Tk, Tk::Entry, :TkEntry)
diff --git a/ext/tk/lib/tk/event.rb b/ext/tk/lib/tk/event.rb
index d07b3b5a85..bf4e122322 100644
--- a/ext/tk/lib/tk/event.rb
+++ b/ext/tk/lib/tk/event.rb
@@ -8,7 +8,7 @@ end
########################
require 'tkutil'
-require 'tk'
+require 'tk' unless Object.const_defined? :TkComm
########################
@@ -482,6 +482,26 @@ module TkEvent
end
})
end
+ elsif cmd.respond_to?(:arity) && cmd.arity == 0 # args.size == 0
+ args = ''
+ if cmd.kind_of?(String)
+ id = cmd
+ elsif cmd.kind_of?(TkCallbackEntry)
+ id = install_cmd(cmd)
+ else
+ id = install_cmd(proc{
+ begin
+ TkUtil.eval_cmd(cmd)
+ rescue Exception=>e
+ if TkCore::INTERP.kind_of?(TclTkIp)
+ fail e
+ else
+ # MultiTkIp
+ fail Exception, "#{e.class}: #{e.message.dup}"
+ end
+ end
+ })
+ end
else
keys, args = klass._get_all_subst_keys
diff --git a/ext/tk/lib/tk/font.rb b/ext/tk/lib/tk/font.rb
index da6482c122..03db850f96 100644
--- a/ext/tk/lib/tk/font.rb
+++ b/ext/tk/lib/tk/font.rb
@@ -11,7 +11,7 @@ class TkFont
TkCommandNames = ['font'.freeze].freeze
- (Tk_FontID = ["@font".freeze, "00000".taint]).instance_eval{
+ (Tk_FontID = ["@font".freeze, TkUtil.untrust("00000")]).instance_eval{
@mutex = Mutex.new
def mutex; @mutex; end
freeze
@@ -211,7 +211,7 @@ class TkFont
end
end
def TkFont.actual_hash(fnt, option=nil)
- Hash[TkFont.actual_hash(fnt, option)]
+ Hash[TkFont.actual(fnt, option)]
end
def TkFont.actual_displayof(fnt, win, option=nil)
@@ -224,7 +224,7 @@ class TkFont
end
end
def TkFont.actual_hash_displayof(fnt, option=nil)
- Hash[TkFont.actual_hash_displayof(fnt, option)]
+ Hash[TkFont.actual_displayof(fnt, option)]
end
def TkFont.configure(fnt, slot, value=None)
@@ -2199,7 +2199,7 @@ module TkFont::CoreMethods
alias measure_core measure_core_tk4x
alias metrics_core metrics_core_tk4x
- when /^8\.[0-5]/
+ when /^8\.[0-9]/
alias actual_core actual_core_tk8x
alias configure_core configure_core_tk8x
alias configinfo_core configinfo_core_tk8x
@@ -2342,3 +2342,10 @@ if Tk::TCL_MAJOR_VERSION > 8 ||
'systemDetailSystemFont', 'systemDetailEmphasizedSystemFont'
]
end
+
+#######################################
+# autoload
+#######################################
+class TkFont
+ autoload :Chooser, 'tk/fontchooser'
+end
diff --git a/ext/tk/lib/tk/fontchooser.rb b/ext/tk/lib/tk/fontchooser.rb
new file mode 100644
index 0000000000..694c58a607
--- /dev/null
+++ b/ext/tk/lib/tk/fontchooser.rb
@@ -0,0 +1,176 @@
+#
+# tk/fontchooser.rb -- "tk fontchooser" support (Tcl/Tk8.6 or later)
+#
+require 'tk'
+require 'tk/font'
+
+module TkFont::Chooser
+ extend TkCore
+end
+
+class << TkFont::Chooser
+ def method_missing(id, *args)
+ name = id.id2name
+ case args.length
+ when 1
+ if name[-1] == ?=
+ configure name[0..-2], args[0]
+ args[0]
+ else
+ configure name, args[0]
+ self
+ end
+ when 0
+ begin
+ cget(name)
+ rescue
+ super(id, *args)
+ end
+ else
+ super(id, *args)
+ end
+ end
+
+ def __configinfo_value(key, val)
+ case key
+ when 'parent'
+ window(val)
+ when 'title'
+ val
+ when 'font'
+ if (lst = tk_split_simplelist(val)).size == 1
+ lst[0]
+ else
+ lst.map{|elem| num_or_str(elem)}
+ end
+ when 'command'
+ tk_tcl2ruby(val)
+ when 'visible'
+ bool(val)
+ else # unkown
+ val
+ end
+ end
+ private :__configinfo_value
+
+ def configinfo(option=nil)
+ if !option && TkComm::GET_CONFIGINFOwoRES_AS_ARRAY
+ lst = tk_split_simplelist(tk_call('tk', 'fontchooser', 'configure'))
+ ret = []
+ TkComm.slice_ary(lst, 2){|k, v|
+ k = k[1..-1]
+ ret << [k, __configinfo_value(k, v)]
+ }
+ ret
+ else
+ current_configinfo(option)
+ end
+ end
+
+ def current_configinfo(option=nil)
+ if option
+ opt = option.to_s
+ fail ArgumentError, "Invalid option `#{option.inspect}'" if opt.empty?
+ __configinfo_value(option.to_s, tk_call('tk','fontchooser',
+ 'configure',"-#{opt}"))
+ else
+ lst = tk_split_simplelist(tk_call('tk', 'fontchooser', 'configure'))
+ ret = {}
+ TkComm.slice_ary(lst, 2){|k, v|
+ k = k[1..-1]
+ ret[k] = __configinfo_value(k, v)
+ }
+ ret
+ end
+ end
+
+ def configure(option, value=None)
+ if option.kind_of? Hash
+ tk_call('tk', 'fontchooser', 'configure',
+ *hash_kv(_symbolkey2str(option)))
+ else
+ opt = option.to_s
+ fail ArgumentError, "Invalid option `#{option.inspect}'" if opt.empty?
+ tk_call('tk', 'fontchooser', 'configure', "-#{opt}", value)
+ end
+ self
+ end
+
+ def configure_cmd(slot, value)
+ configure(slot, install_cmd(value))
+ end
+
+ def command(cmd=nil, &b)
+ if cmd
+ configure_cmd('command', cmd)
+ elsif b
+ configure_cmd('command', Proc.new(&b))
+ else
+ cget('command')
+ end
+ end
+
+ def cget(slot)
+ configinfo slot
+ end
+
+ def [](slot)
+ cget slot
+ end
+
+ def []=(slot, val)
+ configure slot, val
+ val
+ end
+
+ def show
+ tk_call('tk', 'fontchooser', 'show')
+ self
+ end
+
+ def hide
+ tk_call('tk', 'fontchooser', 'hide')
+ self
+ end
+
+ def toggle
+ cget(:visible) ? hide: show
+ self
+ end
+
+ def set_for(target, title="Font")
+ if target.kind_of? TkFont
+ configs = {
+ :font=>target.actual_hash,
+ :command=>proc{|fnt, *args|
+ target.configure(TkFont.actual_hash(fnt))
+ }
+ }
+ elsif target.kind_of? Hash
+ # key=>value list or OptionObj
+ fnt = target[:font] rescue ''
+ fnt = fnt.actual_hash if fnt.kind_of?(TkFont)
+ configs = {
+ :font => fnt,
+ :command=>proc{|fnt, *args|
+ target[:font] = TkFont.actual_hash(fnt)
+ }
+ }
+ else
+ configs = {
+ :font=>target.cget_tkstring(:font),
+ :command=>proc{|fnt, *args|
+ target.font = TkFont.actual_hash_displayof(fnt, target)
+ }
+ }
+ end
+
+ configs[:title] = title if title
+ configure(configs)
+ target
+ end
+
+ def unset
+ configure(:command, nil)
+ end
+end
diff --git a/ext/tk/lib/tk/frame.rb b/ext/tk/lib/tk/frame.rb
index 263b160f29..5118939732 100644
--- a/ext/tk/lib/tk/frame.rb
+++ b/ext/tk/lib/tk/frame.rb
@@ -6,7 +6,7 @@ require 'tk'
class Tk::Frame<TkWindow
TkCommandNames = ['frame'.freeze].freeze
WidgetClassName = 'Frame'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
################# old version
# def initialize(parent=nil, keys=nil)
@@ -128,4 +128,5 @@ class Tk::Frame<TkWindow
end
#TkFrame = Tk::Frame unless Object.const_defined? :TkFrame
-Tk.__set_toplevel_aliases__(:Tk, Tk::Frame, :TkFrame)
+#Tk.__set_toplevel_aliases__(:Tk, Tk::Frame, :TkFrame)
+Tk.__set_loaded_toplevel_aliases__('tk/frame.rb', :Tk, Tk::Frame, :TkFrame)
diff --git a/ext/tk/lib/tk/grid.rb b/ext/tk/lib/tk/grid.rb
index ca476a6ab5..e1e07c44fa 100644
--- a/ext/tk/lib/tk/grid.rb
+++ b/ext/tk/lib/tk/grid.rb
@@ -104,14 +104,12 @@ module TkGrid
tk_call_without_enc("grid", 'columnconfigure',
master, index, *hash_kv(args))
end
- alias column columnconfigure
def rowconfigure(master, index, args)
# master = master.epath if master.kind_of?(TkObject)
master = _epath(master)
tk_call_without_enc("grid", 'rowconfigure', master, index, *hash_kv(args))
end
- alias row rowconfigure
def columnconfiginfo(master, index, slot=nil)
# master = master.epath if master.kind_of?(TkObject)
@@ -171,6 +169,22 @@ module TkGrid
end
end
+ def column(master, index, keys=nil)
+ if keys.kind_of?(Hash)
+ columnconfigure(master, index, keys)
+ else
+ columnconfiginfo(master, index, keys)
+ end
+ end
+
+ def row(master, index, keys=nil)
+ if keys.kind_of?(Hash)
+ rowconfigure(master, index, keys)
+ else
+ rowconfiginfo(master, index, keys)
+ end
+ end
+
def add(widget, *args)
configure(widget, *args)
end
@@ -228,7 +242,7 @@ module TkGrid
list(tk_call_without_enc('grid', 'size', master))
end
- def slaves(master, args)
+ def slaves(master, keys=nil)
# master = master.epath if master.kind_of?(TkObject)
master = _epath(master)
list(tk_call_without_enc('grid', 'slaves', master, *hash_kv(args)))
diff --git a/ext/tk/lib/tk/image.rb b/ext/tk/lib/tk/image.rb
index 09f173909d..00bb440d6a 100644
--- a/ext/tk/lib/tk/image.rb
+++ b/ext/tk/lib/tk/image.rb
@@ -11,7 +11,7 @@ class TkImage<TkObject
Tk_IMGTBL = TkCore::INTERP.create_table
- (Tk_Image_ID = ['i'.freeze, '00000'.taint]).instance_eval{
+ (Tk_Image_ID = ['i'.freeze, TkUtil.untrust('00000')]).instance_eval{
@mutex = Mutex.new
def mutex; @mutex; end
freeze
@@ -72,7 +72,6 @@ class TkImage<TkObject
end
unless @path
Tk_Image_ID.mutex.synchronize{
- # @path = Tk_Image_ID.join('')
@path = Tk_Image_ID.join(TkCore::INTERP._ip_id_)
Tk_Image_ID[1].succ!
}
@@ -128,6 +127,12 @@ class TkBitmapImage<TkImage
end
end
+# A photo is an image whose pixels can display any color or be transparent.
+# At present, only GIF and PPM/PGM formats are supported, but an interface
+# exists to allow additional image file formats to be added easily.
+#
+# This class documentation is a copy from the original Tcl/Tk at
+# http://www.tcl.tk/man/tcl8.5/TkCmd/photo.htm with some rewrited parts.
class TkPhotoImage<TkImage
NullArgOptionKeys = [ "shrink", "grayscale" ]
@@ -146,11 +151,49 @@ class TkPhotoImage<TkImage
end
private :_photo_hash_kv
+ # Create a new image with the given options.
+ # == Examples of use :
+ # === Create an empty image of 300x200 pixels
+ #
+ # image = TkPhotoImage.new(:height => 200, :width => 300)
+ #
+ # === Create an image from a file
+ #
+ # image = TkPhotoImage.new(:file: => 'my_image.gif')
+ #
+ # == Options
+ # Photos support the following options:
+ # * :data
+ # Specifies the contents of the image as a string.
+ # * :format
+ # Specifies the name of the file format for the data.
+ # * :file
+ # Gives the name of a file that is to be read to supply data for the image.
+ # * :gamma
+ # Specifies that the colors allocated for displaying this image in a window
+ # should be corrected for a non-linear display with the specified gamma
+ # exponent value.
+ # * height
+ # Specifies the height of the image, in pixels. This option is useful
+ # primarily in situations where the user wishes to build up the contents of
+ # the image piece by piece. A value of zero (the default) allows the image
+ # to expand or shrink vertically to fit the data stored in it.
+ # * palette
+ # Specifies the resolution of the color cube to be allocated for displaying
+ # this image.
+ # * width
+ # Specifies the width of the image, in pixels. This option is useful
+ # primarily in situations where the user wishes to build up the contents of
+ # the image piece by piece. A value of zero (the default) allows the image
+ # to expand or shrink horizontally to fit the data stored in it.
def initialize(*args)
@type = 'photo'
super(*args)
end
+ # Blank the image; that is, set the entire image to have no data, so it will
+ # be displayed as transparent, and the background of whatever window it is
+ # displayed in will show through.
def blank
tk_send_without_enc('blank')
self
@@ -164,6 +207,10 @@ class TkPhotoImage<TkImage
tk_tcl2ruby(tk_send('cget', '-' << option.to_s))
end
end
+
+ # Returns the current value of the configuration option given by option.
+ # Example, display name of the file from which <tt>image</tt> was created:
+ # puts image.cget :file
def cget(option)
unless TkConfigMethod.__IGNORE_UNKNOWN_CONFIGURE_OPTION__
cget_strict(option)
@@ -182,6 +229,51 @@ class TkPhotoImage<TkImage
end
end
+ # Copies a region from the image called source to the image called
+ # destination, possibly with pixel zooming and/or subsampling. If no options
+ # are specified, this method copies the whole of source into destination,
+ # starting at coordinates (0,0) in destination. The following options may be
+ # specified:
+ #
+ # * :from [x1, y1, x2, y2]
+ # Specifies a rectangular sub-region of the source image to be copied.
+ # (x1,y1) and (x2,y2) specify diagonally opposite corners of the rectangle.
+ # If x2 and y2 are not specified, the default value is the bottom-right
+ # corner of the source image. The pixels copied will include the left and
+ # top edges of the specified rectangle but not the bottom or right edges.
+ # If the :from option is not given, the default is the whole source image.
+ # * :to [x1, y1, x2, y2]
+ # Specifies a rectangular sub-region of the destination image to be
+ # affected. (x1,y1) and (x2,y2) specify diagonally opposite corners of the
+ # rectangle. If x2 and y2 are not specified, the default value is (x1,y1)
+ # plus the size of the source region (after subsampling and zooming, if
+ # specified). If x2 and y2 are specified, the source region will be
+ # replicated if necessary to fill the destination region in a tiled fashion.
+ # * :shrink
+ # Specifies that the size of the destination image should be reduced, if
+ # necessary, so that the region being copied into is at the bottom-right
+ # corner of the image. This option will not affect the width or height of
+ # the image if the user has specified a non-zero value for the :width or
+ # :height configuration option, respectively.
+ # * :zoom [x, y]
+ # Specifies that the source region should be magnified by a factor of x
+ # in the X direction and y in the Y direction. If y is not given, the
+ # default value is the same as x. With this option, each pixel in the
+ # source image will be expanded into a block of x x y pixels in the
+ # destination image, all the same color. x and y must be greater than 0.
+ # * :subsample [x, y]
+ # Specifies that the source image should be reduced in size by using only
+ # every xth pixel in the X direction and yth pixel in the Y direction.
+ # Negative values will cause the image to be flipped about the Y or X axes,
+ # respectively. If y is not given, the default value is the same as x.
+ # * :compositingrule rule
+ # Specifies how transparent pixels in the source image are combined with
+ # the destination image. When a compositing rule of <tt>overlay</tt> is set,
+ # the old contents of the destination image are visible, as if the source
+ # image were printed on a piece of transparent film and placed over the
+ # top of the destination. When a compositing rule of <tt>set</tt> is set,
+ # the old contents of the destination image are discarded and the source
+ # image is used as-is. The default compositing rule is <tt>overlay</tt>.
def copy(src, *opts)
if opts.size == 0
tk_send('copy', src)
@@ -201,17 +293,41 @@ class TkPhotoImage<TkImage
self
end
+ # Returns image data in the form of a string. The following options may be
+ # specified:
+ # * :background color
+ # If the color is specified, the data will not contain any transparency
+ # information. In all transparent pixels the color will be replaced by the
+ # specified color.
+ # * :format format-name
+ # Specifies the name of the image file format handler to be used.
+ # Specifically, this subcommand searches for the first handler whose name
+ # matches an initial substring of format-name and which has the capability
+ # to read this image data. If this option is not given, this subcommand
+ # uses the first handler that has the capability to read the image data.
+ # * :from [x1, y1, x2, y2]
+ # Specifies a rectangular region of imageName to be returned. If only x1
+ # and y1 are specified, the region extends from (x1,y1) to the bottom-right
+ # corner of imageName. If all four coordinates are given, they specify
+ # diagonally opposite corners of the rectangular region, including x1,y1
+ # and excluding x2,y2. The default, if this option is not given, is the
+ # whole image.
+ # * :grayscale
+ # If this options is specified, the data will not contain color information.
+ # All pixel data will be transformed into grayscale.
def data(keys={})
- #tk_send('data', *_photo_hash_kv(keys))
tk_split_list(tk_send('data', *_photo_hash_kv(keys)))
end
+ # Returns the color of the pixel at coordinates (x,y) in the image as a list
+ # of three integers between 0 and 255, representing the red, green and blue
+ # components respectively.
def get(x, y)
tk_send('get', x, y).split.collect{|n| n.to_i}
end
def put(data, *opts)
- if opts == []
+ if opts.empty?
tk_send('put', data)
elsif opts.size == 1 && opts[0].kind_of?(Hash)
tk_send('put', data, *_photo_hash_kv(opts[0]))
@@ -246,11 +362,15 @@ class TkPhotoImage<TkImage
self
end
+ # Returns a boolean indicating if the pixel at (x,y) is transparent.
def get_transparency(x, y)
bool(tk_send('transparency', 'get', x, y))
end
- def set_transparency(x, y, st)
- tk_send('transparency', 'set', x, y, st)
+
+ # Makes the pixel at (x,y) transparent if <tt>state</tt> is true, and makes
+ # that pixel opaque otherwise.
+ def set_transparency(x, y, state)
+ tk_send('transparency', 'set', x, y, state)
self
end
diff --git a/ext/tk/lib/tk/itemconfig.rb b/ext/tk/lib/tk/itemconfig.rb
index cd05d7ea53..14396048ba 100644
--- a/ext/tk/lib/tk/itemconfig.rb
+++ b/ext/tk/lib/tk/itemconfig.rb
@@ -162,6 +162,13 @@ module TkItemConfigMethod
################################################
+
+ def itemcget_tkstring(tagOrId, option)
+ opt = option.to_s
+ fail ArgumentError, "Invalid option `#{option.inspect}'" if opt.length == 0
+ tk_call_without_enc(*(__item_cget_cmd(tagid(tagOrId)) << "-#{opt}"))
+ end
+
def __itemcget_core(tagOrId, option)
orig_opt = option
option = option.to_s
diff --git a/ext/tk/lib/tk/label.rb b/ext/tk/lib/tk/label.rb
index 80b3d778f1..05e430e49b 100644
--- a/ext/tk/lib/tk/label.rb
+++ b/ext/tk/lib/tk/label.rb
@@ -6,7 +6,7 @@ require 'tk'
class Tk::Label<TkWindow
TkCommandNames = ['label'.freeze].freeze
WidgetClassName = 'Label'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
#def create_self(keys)
# if keys and keys != None
# tk_call_without_enc('label', @path, *hash_kv(keys, true))
@@ -18,4 +18,5 @@ class Tk::Label<TkWindow
end
#TkLabel = Tk::Label unless Object.const_defined? :TkLabel
-Tk.__set_toplevel_aliases__(:Tk, Tk::Label, :TkLabel)
+#Tk.__set_toplevel_aliases__(:Tk, Tk::Label, :TkLabel)
+Tk.__set_loaded_toplevel_aliases__('tk/label.rb', :Tk, Tk::Label, :TkLabel)
diff --git a/ext/tk/lib/tk/labelframe.rb b/ext/tk/lib/tk/labelframe.rb
index 995b5b7e72..6f679e55b5 100644
--- a/ext/tk/lib/tk/labelframe.rb
+++ b/ext/tk/lib/tk/labelframe.rb
@@ -7,7 +7,7 @@ require 'tk/frame'
class Tk::LabelFrame<Tk::Frame
TkCommandNames = ['labelframe'.freeze].freeze
WidgetClassName = 'Labelframe'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
#def create_self(keys)
# if keys and keys != None
# tk_call_without_enc('labelframe', @path, *hash_kv(keys, true))
@@ -26,4 +26,6 @@ end
Tk::Labelframe = Tk::LabelFrame
#TkLabelFrame = Tk::LabelFrame unless Object.const_defined? :TkLabelFrame
#TkLabelframe = Tk::Labelframe unless Object.const_defined? :TkLabelframe
-Tk.__set_toplevel_aliases__(:Tk, Tk::LabelFrame, :TkLabelFrame, :TkLabelframe)
+#Tk.__set_toplevel_aliases__(:Tk, Tk::LabelFrame, :TkLabelFrame, :TkLabelframe)
+Tk.__set_loaded_toplevel_aliases__('tk/labelframe.rb', :Tk, Tk::LabelFrame,
+ :TkLabelFrame, :TkLabelframe)
diff --git a/ext/tk/lib/tk/listbox.rb b/ext/tk/lib/tk/listbox.rb
index 4357fafc27..6742b2132c 100644
--- a/ext/tk/lib/tk/listbox.rb
+++ b/ext/tk/lib/tk/listbox.rb
@@ -21,7 +21,7 @@ class Tk::Listbox<TkTextWin
TkCommandNames = ['listbox'.freeze].freeze
WidgetClassName = 'Listbox'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
#def create_self(keys)
# if keys and keys != None
@@ -279,4 +279,6 @@ class Tk::Listbox<TkTextWin
end
#TkListbox = Tk::Listbox unless Object.const_defined? :TkListbox
-Tk.__set_toplevel_aliases__(:Tk, Tk::Listbox, :TkListbox)
+#Tk.__set_toplevel_aliases__(:Tk, Tk::Listbox, :TkListbox)
+Tk.__set_loaded_toplevel_aliases__('tk/listbox.rb', :Tk, Tk::Listbox,
+ :TkListbox)
diff --git a/ext/tk/lib/tk/macpkg.rb b/ext/tk/lib/tk/macpkg.rb
index 67b0a4bb60..3ca7953c13 100644
--- a/ext/tk/lib/tk/macpkg.rb
+++ b/ext/tk/lib/tk/macpkg.rb
@@ -23,7 +23,9 @@ end
module Tk::MacResource
end
#TkMacResource = Tk::MacResource
-Tk.__set_toplevel_aliases__(:Tk, Tk::MacResource, :TkMacResource)
+#Tk.__set_toplevel_aliases__(:Tk, Tk::MacResource, :TkMacResource)
+Tk.__set_loaded_toplevel_aliases__('tk/macpkg.rb', :Tk, Tk::MacResource,
+ :TkMacResource)
module Tk::MacResource
extend Tk
diff --git a/ext/tk/lib/tk/menu.rb b/ext/tk/lib/tk/menu.rb
index 3e122e6987..bcd250026d 100644
--- a/ext/tk/lib/tk/menu.rb
+++ b/ext/tk/lib/tk/menu.rb
@@ -33,13 +33,14 @@ module TkMenuEntryConfig
end
private :__item_val2ruby_optkeys
+ alias entrycget_tkstring itemcget_tkstring
alias entrycget itemcget
alias entrycget_strict itemcget_strict
alias entryconfigure itemconfigure
alias entryconfiginfo itemconfiginfo
alias current_entryconfiginfo current_itemconfiginfo
- private :itemcget, :itemcget_strict
+ private :itemcget_tkstring, :itemcget, :itemcget_strict
private :itemconfigure, :itemconfiginfo, :current_itemconfiginfo
end
@@ -50,7 +51,7 @@ class Tk::Menu<TkWindow
TkCommandNames = ['menu'.freeze].freeze
WidgetClassName = 'Menu'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
#def create_self(keys)
# if keys and keys != None
@@ -386,8 +387,32 @@ class Tk::Menu<TkWindow
end
#TkMenu = Tk::Menu unless Object.const_defined? :TkMenu
-Tk.__set_toplevel_aliases__(:Tk, Tk::Menu, :TkMenu)
+#Tk.__set_toplevel_aliases__(:Tk, Tk::Menu, :TkMenu)
+Tk.__set_loaded_toplevel_aliases__('tk/menu.rb', :Tk, Tk::Menu, :TkMenu)
+
+
+module Tk::Menu::TkInternalFunction; end
+class << Tk::Menu::TkInternalFunction
+ # These methods calls internal functions of Tcl/Tk.
+ # So, They may not work on your Tcl/Tk.
+ def next_menu(menu, dir='next')
+ dir = dir.to_s
+ case dir
+ when 'next', 'forward', 'down'
+ dir = 'right'
+ when 'previous', 'backward', 'up'
+ dir = 'left'
+ end
+
+ Tk.tk_call('::tk::MenuNextMenu', menu, dir)
+ end
+ def next_entry(menu, delta)
+ # delta is increment value of entry index.
+ # For example, +1 denotes 'next entry' and -1 denotes 'previous entry'.
+ Tk.tk_call('::tk::MenuNextEntry', menu, delta)
+ end
+end
class Tk::MenuClone<Tk::Menu
=begin
@@ -446,7 +471,9 @@ end
Tk::CloneMenu = Tk::MenuClone
#TkMenuClone = Tk::MenuClone unless Object.const_defined? :TkMenuClone
#TkCloneMenu = Tk::CloneMenu unless Object.const_defined? :TkCloneMenu
-Tk.__set_toplevel_aliases__(:Tk, Tk::MenuClone, :TkMenuClone, :TkCloneMenu)
+#Tk.__set_toplevel_aliases__(:Tk, Tk::MenuClone, :TkMenuClone, :TkCloneMenu)
+Tk.__set_loaded_toplevel_aliases__('tk/menu.rb', :Tk, Tk::MenuClone,
+ :TkMenuClone, :TkCloneMenu)
module Tk::SystemMenu
def initialize(parent, keys=nil)
@@ -480,7 +507,9 @@ class Tk::SysMenu_Help<Tk::Menu
SYSMENU_NAME = 'help'
end
#TkSysMenu_Help = Tk::SysMenu_Help unless Object.const_defined? :TkSysMenu_Help
-Tk.__set_toplevel_aliases__(:Tk, Tk::SysMenu_Help, :TkSysMenu_Help)
+#Tk.__set_toplevel_aliases__(:Tk, Tk::SysMenu_Help, :TkSysMenu_Help)
+Tk.__set_loaded_toplevel_aliases__('tk/menu.rb', :Tk, Tk::SysMenu_Help,
+ :TkSysMenu_Help)
class Tk::SysMenu_System<Tk::Menu
@@ -489,7 +518,9 @@ class Tk::SysMenu_System<Tk::Menu
SYSMENU_NAME = 'system'
end
#TkSysMenu_System = Tk::SysMenu_System unless Object.const_defined? :TkSysMenu_System
-Tk.__set_toplevel_aliases__(:Tk, Tk::SysMenu_System, :TkSysMenu_System)
+#Tk.__set_toplevel_aliases__(:Tk, Tk::SysMenu_System, :TkSysMenu_System)
+Tk.__set_loaded_toplevel_aliases__('tk/menu.rb', :Tk, Tk::SysMenu_System,
+ :TkSysMenu_System)
class Tk::SysMenu_Apple<Tk::Menu
@@ -498,13 +529,15 @@ class Tk::SysMenu_Apple<Tk::Menu
SYSMENU_NAME = 'apple'
end
#TkSysMenu_Apple = Tk::SysMenu_Apple unless Object.const_defined? :TkSysMenu_Apple
-Tk.__set_toplevel_aliases__(:Tk, Tk::SysMenu_Apple, :TkSysMenu_Apple)
+#Tk.__set_toplevel_aliases__(:Tk, Tk::SysMenu_Apple, :TkSysMenu_Apple)
+Tk.__set_loaded_toplevel_aliases__('tk/menu.rb', :Tk, Tk::SysMenu_Apple,
+ :TkSysMenu_Apple)
class Tk::Menubutton<Tk::Label
TkCommandNames = ['menubutton'.freeze].freeze
WidgetClassName = 'Menubutton'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
def create_self(keys)
if keys and keys != None
unless TkConfigMethod.__IGNORE_UNKNOWN_CONFIGURE_OPTION__
@@ -541,7 +574,9 @@ end
Tk::MenuButton = Tk::Menubutton
#TkMenubutton = Tk::Menubutton unless Object.const_defined? :TkMenubutton
#TkMenuButton = Tk::MenuButton unless Object.const_defined? :TkMenuButton
-Tk.__set_toplevel_aliases__(:Tk, Tk::Menubutton, :TkMenubutton, :TkMenuButton)
+#Tk.__set_toplevel_aliases__(:Tk, Tk::Menubutton, :TkMenubutton, :TkMenuButton)
+Tk.__set_loaded_toplevel_aliases__('tk/menu.rb', :Tk, Tk::Menubutton,
+ :TkMenubutton, :TkMenuButton)
class Tk::OptionMenubutton<Tk::Menubutton
@@ -677,5 +712,7 @@ end
Tk::OptionMenuButton = Tk::OptionMenubutton
#TkOptionMenubutton = Tk::OptionMenubutton unless Object.const_defined? :TkOptionMenubutton
#TkOptionMenuButton = Tk::OptionMenuButton unless Object.const_defined? :TkOptionMenuButton
-Tk.__set_toplevel_aliases__(:Tk, Tk::OptionMenubutton,
- :TkOptionMenubutton, :TkOptionMenuButton)
+#Tk.__set_toplevel_aliases__(:Tk, Tk::OptionMenubutton,
+# :TkOptionMenubutton, :TkOptionMenuButton)
+Tk.__set_loaded_toplevel_aliases__('tk/menu.rb', :Tk, Tk::OptionMenubutton,
+ :TkOptionMenubutton, :TkOptionMenuButton)
diff --git a/ext/tk/lib/tk/menubar.rb b/ext/tk/lib/tk/menubar.rb
index ac537cb4ec..9d5571c470 100644
--- a/ext/tk/lib/tk/menubar.rb
+++ b/ext/tk/lib/tk/menubar.rb
@@ -93,24 +93,30 @@ class TkMenubar<Tk::Frame
include TkComposite
include TkMenuSpec
- def initialize(parent = nil, spec = nil, options = nil)
+ def initialize(parent = nil, spec = nil, options = {})
if parent.kind_of? Hash
- options = _symbolkey2str(parent)
- spec = options.delete('spec')
- super(options)
- else
- super(parent, options)
+ options = parent
+ parent = nil
+ spec = (options.has_key?('spec'))? options.delete('spec'): nil
end
+ _symbolkey2str(options)
+ menuspec_opt = {}
+ TkMenuSpec::MENUSPEC_OPTKEYS.each{|key|
+ menuspec_opt[key] = options.delete(key) if options.has_key?(key)
+ }
+
+ super(parent, options)
+
@menus = []
- spec.each{|info| add_menu(info)} if spec
+ spec.each{|info| add_menu(info, menuspec_opt)} if spec
options.each{|key, value| configure(key, value)} if options
end
- def add_menu(menu_info)
- mbtn, menu = _create_menubutton(@frame, menu_info)
+ def add_menu(menu_info, menuspec_opt={})
+ mbtn, menu = _create_menubutton(@frame, menu_info, menuspec_opt)
submenus = _get_cascade_menus(menu).flatten
diff --git a/ext/tk/lib/tk/menuspec.rb b/ext/tk/lib/tk/menuspec.rb
index 3f38ab5140..cb3597eec9 100644
--- a/ext/tk/lib/tk/menuspec.rb
+++ b/ext/tk/lib/tk/menuspec.rb
@@ -7,9 +7,12 @@
# This file can be distributed under the terms of the Ruby.
#
# The format of the menu_spec is:
-# [ menu_info, menu_info, ... ]
+# [ menubutton_info, menubutton_info, ... ]
#
-# And the format of the menu_info is:
+# The format of the menubutton_info is:
+# [ menubutton_info, entry_info, entry_info, ... ]
+#
+# And each format of *_info is:
# [
# [text, underline, configs], # menu button/entry (*1)
# [label, command, underline, accelerator, configs], # command entry
@@ -22,12 +25,24 @@
# ...
# ]
#
+# A menu_info is an array of menu entries:
+# [ entry_info, entry_info, ... ]
+#
+#
# underline, accelerator, and configs are optional pearameters.
# Hashes are OK instead of Arrays. Then the entry type ('command',
# 'checkbutton', 'radiobutton' or 'cascade') is given by 'type' key
# (e.g. :type=>'cascade'). When type is 'cascade', an array of menu_info
# is acceptable for 'menu' key (then, create sub-menu).
#
+# If the value of underline is true instead of an integer,
+# check whether the text/label string contains a '&' character.
+# When includes, the first '&' is removed and its following character is
+# converted the corresponding 'underline' option (first '&' is removed).
+# Else if the value of underline is a String or a Regexp,
+# use the result of label.index(underline) as the index of underline
+# (don't remove matched substring).
+#
# NOTE: (*1)
# If you want to make special menus (*.help for UNIX, *.system for Win,
# and *.apple for Mac), append 'menu_name'=>name (name is 'help' for UNIX,
@@ -39,6 +54,10 @@
# to the configs of the cascade entry.
module TkMenuSpec
+ extend TkMenuSpec
+
+ MENUSPEC_OPTKEYS = [ 'layout_proc' ]
+
def _create_menu(parent, menu_info, menu_name = nil,
tearoff = false, default_opts = nil)
if tearoff.kind_of?(Hash)
@@ -59,6 +78,7 @@ module TkMenuSpec
end
tearoff = orig_opts.delete('tearoff') if orig_opts.key?('tearoff')
+ tearoff = false unless tearoff # nil --> false
if menu_name
#menu = Tk::Menu.new(parent, :widgetname=>menu_name, :tearoff=>tearoff)
@@ -84,6 +104,23 @@ module TkMenuSpec
tearoff, menu_opts)
options['menu'] = submenu
end
+ case options['underline']
+ when String, Regexp
+ if options['label'] &&
+ (idx = options['label'].index(options['underline']))
+ options['underline'] = idx
+ else
+ options['underline'] = -1
+ end
+ when true
+ if options['label'] && (idx = options['label'].index('&'))
+ options['label'] = options['label'].dup
+ options['label'][idx] = ''
+ options['underline'] = idx
+ else
+ options['underline'] = -1
+ end
+ end
menu.add(item_type, options)
elsif item_info.kind_of?(Array)
@@ -138,6 +175,25 @@ module TkMenuSpec
end
options.update(opts)
end
+
+ case options['underline']
+ when String, Regexp
+ if options['label'] &&
+ (idx = options['label'].index(options['underline']))
+ options['underline'] = idx
+ else
+ options['underline'] = -1
+ end
+ when true
+ if options['label'] && (idx = options['label'].index('&'))
+ options['label'] = options['label'].dup
+ options['label'][idx] = ''
+ options['underline'] = idx
+ else
+ options['underline'] = -1
+ end
+ end
+
menu.add(item_type, options)
elsif /^-+$/ =~ item_info
@@ -177,7 +233,7 @@ module TkMenuSpec
end
private :_create_menu_for_menubar
- def _create_menubutton(parent, menu_info, tearoff=false, default_opts = nil)
+ def _create_menubutton(parent, menu_info, tearoff=false, default_opts = {})
btn_info = menu_info[0]
if tearoff.kind_of?(Hash)
@@ -186,14 +242,49 @@ module TkMenuSpec
end
if default_opts.kind_of?(Hash)
- keys = _symbolkey2str(default_opts)
- else
- keys = {}
+ default_opts = _symbolkey2str(default_opts)
+
+ if default_opts.has_key?('layout_proc')
+ layout_proc = default_opts.delete('layout_proc')
+ end
+
+ _vertical_mbar_bind_proc = proc{|m, dir|
+ Tk::Menu::TkInternalFunction.next_menu(m, dir) rescue nil
+ # ignore error when the internal function doesn't exist
+ }
+
+ case layout_proc
+ when :vertical, 'vertical', :vertical_left, 'vertical_left'
+ layout_proc = proc{|_parent, _mbtn|
+ _mbtn.direction :right
+ _mbtn.pack(:side=>:top, :fill=>:x)
+
+ menu = _mbtn.menu
+ menu.bind('Tab', _vertical_mbar_bind_proc, :widget, 'forward')
+ menu.bind('Alt-Tab', _vertical_mbar_bind_proc, :widget, 'backward')
+ }
+ when :vertical_right, 'vertical_right'
+ layout_proc = proc{|_parent, _mbtn|
+ _mbtn.direction :left
+ _mbtn.pack(:side=>:top, :fill=>:x)
+
+ menu = _mbtn.menu
+ menu.bind('Tab', _vertical_mbar_bind_proc, :widget, 'forward')
+ menu.bind('Alt-Tab', _vertical_mbar_bind_proc, :widget, 'backward')
+ }
+ when :horizontal, 'horizontal'
+ layout_proc = proc{|_parent, _mbtn| _mbtn.pack(:side=>:left)}
+ else
+ # do nothing
+ end
end
+ keys = (default_opts)? default_opts.dup: {}
+
tearoff = keys.delete('tearoff') if keys.key?('tearoff')
+ tearoff = false unless tearoff # nil --> false
- if _use_menubar?(parent)
+ if _use_menubar?(parent) && ! layout_proc
# menubar by menu entries
mbar = _create_menu_for_menubar(parent)
@@ -202,14 +293,52 @@ module TkMenuSpec
if btn_info.kind_of?(Hash)
keys.update(_symbolkey2str(btn_info))
menu_name = keys.delete('menu_name')
- keys['label'] = keys.delete('text') if keys.key?('text')
+ keys['label'] = keys.delete('text') || ''
+
+ case keys['underline']
+ when String, Regexp
+ if idx = keys['label'].index(keys['underline'])
+ keys['underline'] = idx
+ else
+ keys['underline'] = -1
+ end
+ when true
+ if idx = keys['label'].index('&')
+ keys['label'] = keys['label'].dup
+ keys['label'][idx] = ''
+ keys['underline'] = idx
+ else
+ keys['underline'] = -1
+ end
+ end
+
elsif btn_info.kind_of?(Array)
keys['label'] = btn_info[0] if btn_info[0]
- keys['underline'] = btn_info[1] if btn_info[1]
+
+ case btn_info[1]
+ when Integer
+ keys['underline'] = btn_info[1]
+ when String, Regexp
+ if idx = keys['label'].index(btn_info[1])
+ keys['underline'] = idx
+ else
+ keys['underline'] = -1
+ end
+ when true
+ if idx = keys['label'].index('&')
+ keys['label'] = keys['label'].dup
+ keys['label'][idx] = ''
+ keys['underline'] = idx
+ else
+ keys['underline'] = -1
+ end
+ end
+
if btn_info[2]&&btn_info[2].kind_of?(Hash)
keys.update(_symbolkey2str(btn_info[2]))
menu_name = keys.delete('menu_name')
end
+
else
keys = {:label=>btn_info}
end
@@ -234,9 +363,42 @@ module TkMenuSpec
if btn_info.kind_of?(Hash)
keys.update(_symbolkey2str(btn_info))
menu_name = keys.delete('menu_name')
- keys['text'] = keys.delete('label') if keys.key?('label')
+ keys['text'] = keys.delete('label') || ''
+ case keys['underline']
+ when String, Regexp
+ if idx = keys['text'].index(keys['underline'])
+ keys['underline'] = idx
+ else
+ keys['underline'] = -1
+ end
+ when true
+ if idx = keys['text'].index('&')
+ keys['text'] = keys['text'].dup
+ keys['text'][idx] = ''
+ keys['underline'] = idx
+ else
+ keys['underline'] = -1
+ end
+ end
mbtn.configure(keys)
+
elsif btn_info.kind_of?(Array)
+ case btn_info[1]
+ when String, Regexp
+ if btn_info[0] && (idx = btn_info[0].index(btn_info[1]))
+ btn_info[1] = idx
+ else
+ btn_info[1] = -1
+ end
+ when true
+ if btn_info[0] && (idx = btn_info[0].index('&'))
+ btn_info[0] = btn_info[0].dup
+ btn_info[0][idx] = ''
+ btn_info[1] = idx
+ else
+ btn_info[1] = -1
+ end
+ end
mbtn.configure('text', btn_info[0]) if btn_info[0]
mbtn.configure('underline', btn_info[1]) if btn_info[1]
# mbtn.configure('accelerator', btn_info[2]) if btn_info[2]
@@ -245,22 +407,41 @@ module TkMenuSpec
menu_name = keys.delete('menu_name')
mbtn.configure(keys)
end
+
else
mbtn.configure('text', btn_info)
end
- mbtn.pack('side' => 'left')
-
menu = _create_menu(mbtn, menu_info[1..-1], menu_name,
tearoff, default_opts)
-
mbtn.menu(menu)
+ if layout_proc.kind_of?(Proc) || layout_proc.kind_of?(Method)
+ # e.g. make a vertical menubar
+ # :layout_proc => proc{|parent, btn| btn.pack(:side=>:top, :fill=>:x)}
+ layout_proc.call(parent, mbtn)
+ else
+ mbtn.pack('side' => 'left')
+ end
+
[mbtn, menu]
end
end
private :_create_menubutton
+ def _create_menubar(parent, menu_spec, tearoff = false, opts = nil)
+ if tearoff.kind_of?(Hash)
+ opts = tearoff
+ tearoff = false
+ end
+ tearoff = false unless tearoff # nil --> false
+ menu_spec.each{|menu_info|
+ _create_menubutton(parent, menu_info, tearoff, opts)
+ }
+ parent
+ end
+ private :_create_menubar
+
def _get_cascade_menus(menu)
menus = []
(0..(menu.index('last'))).each{|idx|
diff --git a/ext/tk/lib/tk/message.rb b/ext/tk/lib/tk/message.rb
index 946b68c704..5f73b3066f 100644
--- a/ext/tk/lib/tk/message.rb
+++ b/ext/tk/lib/tk/message.rb
@@ -7,7 +7,7 @@ require 'tk/label'
class Tk::Message<Tk::Label
TkCommandNames = ['message'.freeze].freeze
WidgetClassName = 'Message'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
#def create_self(keys)
# if keys and keys != None
# tk_call_without_enc('message', @path, *hash_kv(keys, true))
@@ -19,4 +19,6 @@ class Tk::Message<Tk::Label
end
#TkMessage = Tk::Message unless Object.const_defined? :TkMessage
-Tk.__set_toplevel_aliases__(:Tk, Tk::Message, :TkMessage)
+#Tk.__set_toplevel_aliases__(:Tk, Tk::Message, :TkMessage)
+Tk.__set_loaded_toplevel_aliases__('tk/message.rb', :Tk, Tk::Message,
+ :TkMessage)
diff --git a/ext/tk/lib/tk/msgcat.rb b/ext/tk/lib/tk/msgcat.rb
index f90dbc5efa..4abbcad85e 100644
--- a/ext/tk/lib/tk/msgcat.rb
+++ b/ext/tk/lib/tk/msgcat.rb
@@ -36,7 +36,7 @@ class TkMsgCatalog < TkObject
MSGCAT_EXT = '.msg'
- UNKNOWN_CBTBL = Hash.new{|hash,key| hash[key] = {}}.taint
+ UNKNOWN_CBTBL = TkUtil.untrust(Hash.new{|hash,key| hash[key] = {}})
TkCore::INTERP.add_tk_procs('::msgcat::mcunknown', 'args', <<-'EOL')
if {[set st [catch {eval {ruby_cmd TkMsgCatalog callback} [namespace current] $args} ret]] != 0} {
diff --git a/ext/tk/lib/tk/namespace.rb b/ext/tk/lib/tk/namespace.rb
index dfb162cda8..4af891995e 100644
--- a/ext/tk/lib/tk/namespace.rb
+++ b/ext/tk/lib/tk/namespace.rb
@@ -13,7 +13,7 @@ class TkNamespace < TkObject
Tk_Namespace_ID_TBL = TkCore::INTERP.create_table
- (Tk_Namespace_ID = ["ns".freeze, "00000".taint]).instance_eval{
+ (Tk_Namespace_ID = ["ns".freeze, TkUtil.untrust("00000")]).instance_eval{
@mutex = Mutex.new
def mutex; @mutex; end
freeze
diff --git a/ext/tk/lib/tk/optiondb.rb b/ext/tk/lib/tk/optiondb.rb
index 9d366c13ea..0f3be30ff7 100644
--- a/ext/tk/lib/tk/optiondb.rb
+++ b/ext/tk/lib/tk/optiondb.rb
@@ -8,7 +8,7 @@ module TkOptionDB
extend Tk
TkCommandNames = ['option'.freeze].freeze
- (CmdClassID = ['CMD_CLASS'.freeze, '00000'.taint]).instance_eval{
+ (CmdClassID = ['CMD_CLASS'.freeze, TkUtil.untrust('00000')]).instance_eval{
@mutex = Mutex.new
def mutex; @mutex; end
freeze
diff --git a/ext/tk/lib/tk/panedwindow.rb b/ext/tk/lib/tk/panedwindow.rb
index 4e70ede9bf..04407802ea 100644
--- a/ext/tk/lib/tk/panedwindow.rb
+++ b/ext/tk/lib/tk/panedwindow.rb
@@ -6,7 +6,7 @@ require 'tk'
class Tk::PanedWindow<TkWindow
TkCommandNames = ['panedwindow'.freeze].freeze
WidgetClassName = 'Panedwindow'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
#def create_self(keys)
# if keys and keys != None
# tk_call_without_enc('panedwindow', @path, *hash_kv(keys, true))
@@ -254,5 +254,7 @@ end
Tk::Panedwindow = Tk::PanedWindow
#TkPanedWindow = Tk::PanedWindow unless Object.const_defined? :TkPanedWindow
#TkPanedwindow = Tk::Panedwindow unless Object.const_defined? :TkPanedwindow
-Tk.__set_toplevel_aliases__(:Tk, Tk::PanedWindow,
- :TkPanedWindow, :TkPanedwindow)
+#Tk.__set_toplevel_aliases__(:Tk, Tk::PanedWindow,
+# :TkPanedWindow, :TkPanedwindow)
+Tk.__set_loaded_toplevel_aliases__('tk/panedwindow.rb', :Tk, Tk::PanedWindow,
+ :TkPanedWindow, :TkPanedwindow)
diff --git a/ext/tk/lib/tk/radiobutton.rb b/ext/tk/lib/tk/radiobutton.rb
index 1d75dc220d..627df6d9cf 100644
--- a/ext/tk/lib/tk/radiobutton.rb
+++ b/ext/tk/lib/tk/radiobutton.rb
@@ -7,7 +7,7 @@ require 'tk/button'
class Tk::RadioButton<Tk::Button
TkCommandNames = ['radiobutton'.freeze].freeze
WidgetClassName = 'Radiobutton'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
#def create_self(keys)
# if keys and keys != None
# tk_call_without_enc('radiobutton', @path, *hash_kv(keys, true))
@@ -67,5 +67,7 @@ end
Tk::Radiobutton = Tk::RadioButton
#TkRadioButton = Tk::RadioButton unless Object.const_defined? :TkRadioButton
#TkRadiobutton = Tk::Radiobutton unless Object.const_defined? :TkRadiobutton
-Tk.__set_toplevel_aliases__(:Tk, Tk::RadioButton,
- :TkRadioButton, :TkRadiobutton)
+#Tk.__set_toplevel_aliases__(:Tk, Tk::RadioButton,
+# :TkRadioButton, :TkRadiobutton)
+Tk.__set_loaded_toplevel_aliases__('tk/radiobutton.rb', :Tk, Tk::RadioButton,
+ :TkRadioButton, :TkRadiobutton)
diff --git a/ext/tk/lib/tk/root.rb b/ext/tk/lib/tk/root.rb
index ca6260927a..b4f0bd107f 100644
--- a/ext/tk/lib/tk/root.rb
+++ b/ext/tk/lib/tk/root.rb
@@ -52,7 +52,7 @@ class Tk::Root<TkWindow
end
WidgetClassName = 'Tk'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
def self.to_eval
# self::WidgetClassName
diff --git a/ext/tk/lib/tk/scale.rb b/ext/tk/lib/tk/scale.rb
index 58283216b8..0bdcead7f2 100644
--- a/ext/tk/lib/tk/scale.rb
+++ b/ext/tk/lib/tk/scale.rb
@@ -6,7 +6,7 @@ require 'tk'
class Tk::Scale<TkWindow
TkCommandNames = ['scale'.freeze].freeze
WidgetClassName = 'Scale'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
def create_self(keys)
if keys and keys != None
@@ -108,4 +108,5 @@ class Tk::Scale<TkWindow
end
#TkScale = Tk::Scale unless Object.const_defined? :TkScale
-Tk.__set_toplevel_aliases__(:Tk, Tk::Scale, :TkScale)
+#Tk.__set_toplevel_aliases__(:Tk, Tk::Scale, :TkScale)
+Tk.__set_loaded_toplevel_aliases__('tk/scale.rb', :Tk, Tk::Scale, :TkScale)
diff --git a/ext/tk/lib/tk/scrollbar.rb b/ext/tk/lib/tk/scrollbar.rb
index decc4205c4..c0ac201acb 100644
--- a/ext/tk/lib/tk/scrollbar.rb
+++ b/ext/tk/lib/tk/scrollbar.rb
@@ -6,7 +6,7 @@ require 'tk'
class Tk::Scrollbar<TkWindow
TkCommandNames = ['scrollbar'.freeze].freeze
WidgetClassName = 'Scrollbar'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
def create_self(keys)
@assigned = []
@@ -148,7 +148,9 @@ class Tk::Scrollbar<TkWindow
end
#TkScrollbar = Tk::Scrollbar unless Object.const_defined? :TkScrollbar
-Tk.__set_toplevel_aliases__(:Tk, Tk::Scrollbar, :TkScrollbar)
+#Tk.__set_toplevel_aliases__(:Tk, Tk::Scrollbar, :TkScrollbar)
+Tk.__set_loaded_toplevel_aliases__('tk/scrollbar.rb', :Tk, Tk::Scrollbar,
+ :TkScrollbar)
class Tk::XScrollbar<Tk::Scrollbar
@@ -161,7 +163,9 @@ class Tk::XScrollbar<Tk::Scrollbar
end
#TkXScrollbar = Tk::XScrollbar unless Object.const_defined? :TkXScrollbar
-Tk.__set_toplevel_aliases__(:Tk, Tk::XScrollbar, :TkXScrollbar)
+#Tk.__set_toplevel_aliases__(:Tk, Tk::XScrollbar, :TkXScrollbar)
+Tk.__set_loaded_toplevel_aliases__('tk/scrollbar.rb', :Tk, Tk::XScrollbar,
+ :TkXScrollbar)
class Tk::YScrollbar<Tk::Scrollbar
@@ -174,4 +178,6 @@ class Tk::YScrollbar<Tk::Scrollbar
end
#TkYScrollbar = Tk::YScrollbar unless Object.const_defined? :TkYScrollbar
-Tk.__set_toplevel_aliases__(:Tk, Tk::YScrollbar, :TkYScrollbar)
+#Tk.__set_toplevel_aliases__(:Tk, Tk::YScrollbar, :TkYScrollbar)
+Tk.__set_loaded_toplevel_aliases__('tk/scrollbar.rb', :Tk, Tk::YScrollbar,
+ :TkYScrollbar)
diff --git a/ext/tk/lib/tk/spinbox.rb b/ext/tk/lib/tk/spinbox.rb
index 2fcc916237..f2917d60ca 100644
--- a/ext/tk/lib/tk/spinbox.rb
+++ b/ext/tk/lib/tk/spinbox.rb
@@ -8,7 +8,7 @@ require 'tk/entry'
class Tk::Spinbox<Tk::Entry
TkCommandNames = ['spinbox'.freeze].freeze
WidgetClassName = 'Spinbox'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
class SpinCommand < TkValidateCommand
class ValidateArgs < TkUtil::CallbackSubst
@@ -100,13 +100,36 @@ class Tk::Spinbox<Tk::Entry
tk_send_without_enc('identify', x, y)
end
+ def invoke(elem)
+ tk_send_without_enc('invoke', elem)
+ self
+ end
+
def spinup
- tk_send_without_enc('invoke', 'spinup')
+ begin
+ tk_send_without_enc('invoke', 'buttonup')
+ rescue RuntimeError => e
+ # old version of element?
+ begin
+ tk_send_without_enc('invoke', 'spinup')
+ rescue
+ fail e
+ end
+ end
self
end
def spindown
- tk_send_without_enc('invoke', 'spindown')
+ begin
+ tk_send_without_enc('invoke', 'buttondown')
+ rescue RuntimeError => e
+ # old version of element?
+ begin
+ tk_send_without_enc('invoke', 'spinup')
+ rescue
+ fail e
+ end
+ end
self
end
@@ -116,4 +139,6 @@ class Tk::Spinbox<Tk::Entry
end
#TkSpinbox = Tk::Spinbox unless Object.const_defined? :TkSpinbox
-Tk.__set_toplevel_aliases__(:Tk, Tk::Spinbox, :TkSpinbox)
+#Tk.__set_toplevel_aliases__(:Tk, Tk::Spinbox, :TkSpinbox)
+Tk.__set_loaded_toplevel_aliases__('tk/spinbox.rb', :Tk, Tk::Spinbox,
+ :TkSpinbox)
diff --git a/ext/tk/lib/tk/text.rb b/ext/tk/lib/tk/text.rb
index 42b8be475e..bc2aa0a293 100644
--- a/ext/tk/lib/tk/text.rb
+++ b/ext/tk/lib/tk/text.rb
@@ -29,6 +29,9 @@ module TkTextTagConfig
end
private :__item_pathname
+ def tag_cget_tkstring(tagOrId, option)
+ itemcget_tkstring(['tag', tagOrId], option)
+ end
def tag_cget(tagOrId, option)
itemcget(['tag', tagOrId], option)
end
@@ -45,6 +48,9 @@ module TkTextTagConfig
current_itemconfiginfo(['tag', tagOrId], slot)
end
+ def window_cget_tkstring(tagOrId, option)
+ itemcget_tkstring(['window', tagOrId], option)
+ end
def window_cget(tagOrId, option)
itemcget(['window', tagOrId], option)
end
@@ -61,7 +67,7 @@ module TkTextTagConfig
current_itemconfiginfo(['window', tagOrId], slot)
end
- private :itemcget, :itemcget_strict
+ private :itemcget_tkstring, :itemcget, :itemcget_strict
private :itemconfigure, :itemconfiginfo, :current_itemconfiginfo
end
@@ -251,7 +257,7 @@ class Tk::Text<TkTextWin
TkCommandNames = ['text'.freeze].freeze
WidgetClassName = 'Text'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
def self.new(*args, &block)
obj = super(*args){}
@@ -1570,7 +1576,8 @@ class Tk::Text<TkTextWin
end
#TkText = Tk::Text unless Object.const_defined? :TkText
-Tk.__set_toplevel_aliases__(:Tk, Tk::Text, :TkText)
+#Tk.__set_toplevel_aliases__(:Tk, Tk::Text, :TkText)
+Tk.__set_loaded_toplevel_aliases__('tk/text.rb', :Tk, Tk::Text, :TkText)
#######################################
@@ -1587,7 +1594,8 @@ class Tk::Text::Peer < Tk::Text
def create_self(keys)
if keys and keys != None
- tk_call_without_enc(@src_text.path, 'peer', 'create', @path)
+ tk_call_without_enc(@src_text.path, 'peer', 'create',
+ @path, *hash_kv(keys, true))
else
tk_call_without_enc(@src_text.path, 'peer', 'create', @path)
end
diff --git a/ext/tk/lib/tk/textmark.rb b/ext/tk/lib/tk/textmark.rb
index e9743475e0..d1888c5e54 100644
--- a/ext/tk/lib/tk/textmark.rb
+++ b/ext/tk/lib/tk/textmark.rb
@@ -9,7 +9,7 @@ class TkTextMark<TkObject
TMarkID_TBL = TkCore::INTERP.create_table
- (Tk_TextMark_ID = ['mark'.freeze, '00000'.taint]).instance_eval{
+ (Tk_TextMark_ID = ['mark'.freeze, TkUtil.untrust('00000')]).instance_eval{
@mutex = Mutex.new
def mutex; @mutex; end
freeze
diff --git a/ext/tk/lib/tk/texttag.rb b/ext/tk/lib/tk/texttag.rb
index 7bd59bf8ee..96692014e4 100644
--- a/ext/tk/lib/tk/texttag.rb
+++ b/ext/tk/lib/tk/texttag.rb
@@ -11,7 +11,7 @@ class TkTextTag<TkObject
TTagID_TBL = TkCore::INTERP.create_table
- (Tk_TextTag_ID = ['tag'.freeze, '00000'.taint]).instance_eval{
+ (Tk_TextTag_ID = ['tag'.freeze, TkUtil.untrust('00000')]).instance_eval{
@mutex = Mutex.new
def mutex; @mutex; end
freeze
@@ -129,6 +129,9 @@ class TkTextTag<TkObject
val
end
+ def cget_tkstring(key)
+ @t.tag_cget_tkstring @id, key
+ end
def cget(key)
@t.tag_cget @id, key
end
diff --git a/ext/tk/lib/tk/timer.rb b/ext/tk/lib/tk/timer.rb
index 686d4bd483..ddfbfce9be 100644
--- a/ext/tk/lib/tk/timer.rb
+++ b/ext/tk/lib/tk/timer.rb
@@ -11,13 +11,13 @@ class TkTimer
TkCommandNames = ['after'.freeze].freeze
- (Tk_CBID = ['a'.freeze, '00000'.taint]).instance_eval{
+ (Tk_CBID = ['a'.freeze, TkUtil.untrust('00000')]).instance_eval{
@mutex = Mutex.new
def mutex; @mutex; end
freeze
}
- Tk_CBTBL = {}.taint
+ Tk_CBTBL = TkUtil.untrust({})
TkCore::INTERP.add_tk_procs('rb_after', 'id', <<-'EOL')
if {[set st [catch {eval {ruby_cmd TkTimer callback} $id} ret]] != 0} {
@@ -428,7 +428,7 @@ class TkTimer
def restart(*restart_args, &b)
cancel if @running
- if restart_args == [] && !b
+ if restart_args.empty? && !b
start(@init_sleep, @init_proc, *@init_args)
else
start(*restart_args, &b)
diff --git a/ext/tk/lib/tk/toplevel.rb b/ext/tk/lib/tk/toplevel.rb
index 917264aef7..30ef009517 100644
--- a/ext/tk/lib/tk/toplevel.rb
+++ b/ext/tk/lib/tk/toplevel.rb
@@ -11,7 +11,7 @@ class Tk::Toplevel<TkWindow
TkCommandNames = ['toplevel'.freeze].freeze
WidgetClassName = 'Toplevel'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
################# old version
# def initialize(parent=nil, screen=nil, classname=nil, keys=nil)
@@ -259,4 +259,6 @@ class Tk::Toplevel<TkWindow
end
#TkToplevel = Tk::Toplevel unless Object.const_defined? :TkToplevel
-Tk.__set_toplevel_aliases__(:Tk, Tk::Toplevel, :TkToplevel)
+#Tk.__set_toplevel_aliases__(:Tk, Tk::Toplevel, :TkToplevel)
+Tk.__set_loaded_toplevel_aliases__('tk/toplevel.rb', :Tk, Tk::Toplevel,
+ :TkToplevel)
diff --git a/ext/tk/lib/tk/ttk_selector.rb b/ext/tk/lib/tk/ttk_selector.rb
index 7a0dd34038..cc9e9928cb 100644
--- a/ext/tk/lib/tk/ttk_selector.rb
+++ b/ext/tk/lib/tk/ttk_selector.rb
@@ -53,21 +53,43 @@ module Tk
:TkTreeview => 'tkextlib/tile/treeview',
}
- @TOPLEVEL_ALIAS_TABLE[:Tile] = @TOPLEVEL_ALIAS_TABLE[:Ttk]
+
+ # @TOPLEVEL_ALIAS_TABLE[:Tile] = @TOPLEVEL_ALIAS_TABLE[:Ttk]
+ Tk.__create_widget_set__(:Tile, :Ttk)
+
+ ############################################
+ # depend on the version of Tcl/Tk
+ major, minor, type, patchlevel = TclTkLib.get_version
+
+ # ttk::spinbox is supported on Tcl/Tk8.6b1 or later
+ if ([major,minor,type,patchlevel] <=>
+ [8,6,TclTkLib::RELEASE_TYPE::BETA,1]) >= 0
+ @TOPLEVEL_ALIAS_TABLE[:Ttk].update(
+ :TkSpinbox => 'tkextlib/tile/tspinbox'
+ )
+ end
################################################
# register some Ttk widgets as default
# (Ttk is a standard library on Tcl/Tk8.5+)
@TOPLEVEL_ALIAS_TABLE[:Ttk].each{|sym, file|
- unless Object.autoload?(sym) || Object.const_defined?(sym)
- Object.autoload(sym, file)
- end
+ #unless Tk::TOPLEVEL_ALIASES.autoload?(sym) || Tk::TOPLEVEL_ALIASES.const_defined?(sym)
+ # @TOPLEVEL_ALIAS_OWNER[sym] = :Ttk
+ # Tk::TOPLEVEL_ALIASES.autoload(sym, file)
+ #end
+ Tk.__regist_toplevel_aliases__(:Ttk, file, sym)
}
################################################
- @TOPLEVEL_ALIAS_SETUP_PROC[:Tile] =
- @TOPLEVEL_ALIAS_SETUP_PROC[:Ttk] = proc{|mod|
+ # @TOPLEVEL_ALIAS_SETUP_PROC[:Tile] =
+ # @TOPLEVEL_ALIAS_SETUP_PROC[:Ttk] = proc{|mod|
+ # unless Tk.autoload?(:Tile) || Tk.const_defined?(:Tile)
+ # Object.autoload :Ttk, 'tkextlib/tile'
+ # Tk.autoload :Tile, 'tkextlib/tile'
+ # end
+ # }
+ Tk.__toplevel_alias_setup_proc__(:Ttk, :Tile){|mod|
unless Tk.autoload?(:Tile) || Tk.const_defined?(:Tile)
Object.autoload :Ttk, 'tkextlib/tile'
Tk.autoload :Tile, 'tkextlib/tile'
diff --git a/ext/tk/lib/tk/variable.rb b/ext/tk/lib/tk/variable.rb
index bdd441705b..0487b034bd 100644
--- a/ext/tk/lib/tk/variable.rb
+++ b/ext/tk/lib/tk/variable.rb
@@ -16,7 +16,7 @@ class TkVariable
#TkVar_ID_TBL = {}
TkVar_CB_TBL = TkCore::INTERP.create_table
TkVar_ID_TBL = TkCore::INTERP.create_table
- (Tk_VARIABLE_ID = ["v".freeze, "00000".taint]).instance_eval{
+ (Tk_VARIABLE_ID = ["v".freeze, TkUtil.untrust("00000")]).instance_eval{
@mutex = Mutex.new
def mutex; @mutex; end
freeze
@@ -694,6 +694,14 @@ end
self
end
+ def to_hash
+ hash = {}
+ self.keys.each{|k|
+ hash[k] = self[k]
+ }
+ hash
+ end
+
def set_element_value(idxs, val)
if idxs.kind_of?(Array)
self[*idxs]=val
@@ -921,9 +929,20 @@ end
self.set_proceure_element(idxs, cmd)
end
+ def to_proc
+ cmd = self.procedure
+ if cmd.respond_to?(:call)
+ cmd
+ else
+ # cmd is a String
+ cmd.to_sym.to_proc
+ end
+ end
+
def to_i
number(_value).to_i
end
+ alias to_int to_i
def element_to_i(*idxs)
number(_element_value(*idxs)).to_i
end
@@ -940,6 +959,7 @@ end
_value
end
alias string to_s
+ alias to_str to_s
def element_to_s(*idxs)
_element_value(*idxs)
end
@@ -1011,6 +1031,7 @@ end
tk_split_simplelist(_value)
end
alias to_a list
+ alias to_ary list
def list_element(*idxs)
tk_split_simplelist(_element_value(*idxs))
end
@@ -1143,10 +1164,8 @@ end
[other, self.to_s]
when Symbol
[other, self.to_sym]
- when Integer
- [other, self.to_i]
- when Float
- [other, self.to_f]
+ when Numeric
+ [other, self.numeric]
when Array
[other, self.to_a]
else
@@ -1154,6 +1173,13 @@ end
end
end
+ def +@
+ self.numeric
+ end
+ def -@
+ -(self.numeric)
+ end
+
def &(other)
if other.kind_of?(Array)
self.to_a & other.to_a
@@ -1190,7 +1216,7 @@ end
end
end
def *(other)
- num_or_str(self._value) * other.to_i
+ num_or_str(self._value) * other
#begin
# number(self._value) * other
#rescue
@@ -1201,7 +1227,7 @@ end
number(self._value) / other
end
def %(other)
- num_or_str(self._value) % other.to_i
+ num_or_str(self._value) % other
#begin
# number(self._value) % other
#rescue
@@ -1239,6 +1265,14 @@ end
end
end
+ def ===(other)
+ if other.kind_of?(TkVariable)
+ self.id == other.id
+ else
+ super
+ end
+ end
+
def zero?
numeric.zero?
end
@@ -1346,7 +1380,7 @@ end
if @trace_opts == nil
TkVar_CB_TBL[@id] = self
- @trace_opts = opts
+ @trace_opts = opts.dup
if USE_OLD_TRACE_OPTION_STYLE
Tk.tk_call_without_enc('trace', 'variable',
@id, @trace_opts, 'rb_var ' << @id)
@@ -1392,7 +1426,7 @@ end
if @trace_opts == nil
TkVar_CB_TBL[@id] = self
- @trace_opts = opts
+ @trace_opts = opts.dup
if USE_OLD_TRACE_OPTION_STYLE
Tk.tk_call_without_enc('trace', 'add', 'variable',
@id, @trace_opts, 'rb_var ' << @id)
diff --git a/ext/tk/lib/tk/virtevent.rb b/ext/tk/lib/tk/virtevent.rb
index ba771da647..c11e9692e7 100644
--- a/ext/tk/lib/tk/virtevent.rb
+++ b/ext/tk/lib/tk/virtevent.rb
@@ -9,7 +9,7 @@ class TkVirtualEvent<TkObject
TkCommandNames = ['event'.freeze].freeze
- (TkVirtualEventID = ["VirtEvent".freeze, "00000".taint]).instance_eval{
+ (TkVirtualEventID = ["VirtEvent".freeze, TkUtil.untrust("00000")]).instance_eval{
@mutex = Mutex.new
def mutex; @mutex; end
freeze
@@ -100,7 +100,7 @@ class TkVirtualEvent<TkObject
end
def delete(*sequences)
- if sequences == []
+ if sequences.empty?
tk_call_without_enc('event', 'delete', "<#{@id}>")
TkVirtualEventTBL.mutex.synchronize{
TkVirtualEventTBL.delete(@id)
diff --git a/ext/tk/lib/tk/winpkg.rb b/ext/tk/lib/tk/winpkg.rb
index a131731560..80e0439ace 100644
--- a/ext/tk/lib/tk/winpkg.rb
+++ b/ext/tk/lib/tk/winpkg.rb
@@ -10,7 +10,8 @@ require 'tk'
module Tk::WinDDE
end
#TkWinDDE = Tk::WinDDE
-Tk.__set_toplevel_aliases__(:Tk, Tk::WinDDE, :TkWinDDE)
+#Tk.__set_toplevel_aliases__(:Tk, Tk::WinDDE, :TkWinDDE)
+Tk.__set_loaded_toplevel_aliases__('tk/winpkg.rb', :Tk, Tk::WinDDE, :TkWinDDE)
module Tk::WinDDE
extend Tk
@@ -93,7 +94,9 @@ end
module Tk::WinRegistry
end
#TkWinRegistry = Tk::WinRegistry
-Tk.__set_toplevel_aliases__(:Tk, Tk::WinRegistry, :TkWinRegistry)
+#Tk.__set_toplevel_aliases__(:Tk, Tk::WinRegistry, :TkWinRegistry)
+Tk.__set_loaded_toplevel_aliases__('tk/winpkg.rb', :Tk, Tk::WinRegistry,
+ :TkWinRegistry)
module Tk::WinRegistry
extend Tk
diff --git a/ext/tk/lib/tkextlib/SUPPORT_STATUS b/ext/tk/lib/tkextlib/SUPPORT_STATUS
index cfbe274c86..522039b11a 100644
--- a/ext/tk/lib/tkextlib/SUPPORT_STATUS
+++ b/ext/tk/lib/tkextlib/SUPPORT_STATUS
@@ -6,67 +6,69 @@
The following list shows *CURRENT* status when this file was modifyed
at last. If you want to add other Tcl/Tk extensions to the planed list
(or change its status position), please request them at the ruby-talk,
-ruby-list, or ruby-dev ML. Although we cannot promise to support your
-requests, we'll try to do.
+ruby-list, or ruby-dev ML. Although we cannot promise to support your
+requests, we'll try to do.
-If you want to check that wrapper libraries are ready to use on your
-environment, please execute 'pkg_checker.rb' with no arguments. The
+If you want to check that wrapper libraries are ready to use on your
+environment, please execute 'pkg_checker.rb' with no arguments. The
script may give you some hints about that.
***** IMPORTANT NOTE **********************************************
- 'support' means that Ruby/Tk's wrapper libraries are released.
+ 'support' means that Ruby/Tk's wrapper libraries are released.
'not support' does *NOT* mean that the extension doesn't work
- on Ruby/Tk.
+ on Ruby/Tk.
The version number of each extension means the latest version
- which is checked its feature. That is, it does NOT means only
- version of working. Library files maybe include some features
- which is included in the former version but removed from the
- latest, and maybe able to support the later version then the
+ which is checked its feature. That is, it does NOT means only
+ version of working. Library files maybe include some features
+ which is included in the former version but removed from the
+ latest, and maybe able to support the later version then the
shown version.
- Even if the status of the extension is 'not support', you can
- control the functions/widgets of the extension without wrapper
- libraries by Tk.tk_call(), Tk.ip_eval(), and so on.
+ Even if the status of the extension is 'not support', you can
+ control the functions/widgets of the extension without wrapper
+ libraries by Tk.tk_call(), Tk.ip_eval(), and so on.
- If you cannot use installed Tcl/Tk extension, please check the
- followings.
+ If you cannot use installed Tcl/Tk extension, please check the
+ followings.
(1) On your Tcl/Tk, does the extention work?
(2) Do DLL libraries of the extension exist on DLL load-path?
(See also "<ruby archive>/ext/tcltklib/README.ActiveTcl")
- (3) Is the Tcl library directory of the extension included in
+ (3) Is the Tcl library directory of the extension included in
library search-path of the Tcl interpreter linked Ruby/Tk?
- The check results may request you to do some setup operations
- before using the extension. If so, then please write the step
- of setup oprations into the "setup.rb" file in the directory
+ The check results may request you to do some setup operations
+ before using the extension. If so, then please write the step
+ of setup oprations into the "setup.rb" file in the directory
of the wrapper libraries for the extention (It is the wrapper
- libraries have the standard structure of the libraries in this
- directory). The "setup" file is required before requiring the
- Tcl library package (TkPackage.require(<libname>)).
+ libraries have the standard structure of the libraries in this
+ directory). The "setup" file is required before requiring the
+ Tcl library package (TkPackage.require(<libname>)).
*******************************************************************
===< support with some examples (may be beta quality) >=======================
-Tcllib 1.8
-Tklib 0.4.1 http://sourceforge.net/projects/tcllib ==> tcllib
+Tcllib 1.11.1
+Tklib 0.5 http://sourceforge.net/projects/tcllib ==> tcllib
+ ( partial support; primary support target is Tklib)
IWidgets 4.0.2 http://sourceforge.net/projects/incrtcl ==> iwidgets
-BWidgets 1.7 http://sourceforge.net/projects/tcllib ==> bwidget
+BWidget 1.8 [ CVS/Hd(2009-07-02) ]
+ http://sourceforge.net/projects/tcllib ==> bwidget
-TkTable 2.9 http://sourceforge.net/projects/tktable ==> tktable
+TkTable 2.10 http://sourceforge.net/projects/tktable ==> tktable
* see also <http://www.korus.hu/~fery/ruby/tktable.rb>
written by Ferenc Engard (ferenc@engard.hu)
-vu 2.3.0 http://sourceforge.net/projects/tktable ==> vu
+Vu widgets 2.3.0 http://sourceforge.net/projects/tktable ==> vu
TkHTML 2.0 http://www.hwaci.com/sw/tkhtml/ ==> tkHTML
@@ -76,29 +78,29 @@ TkImg 1.3 http://sourceforge.net/projects/tkimg ==> tkimg
BLT 2.4z http://sourceforge.net/projects/blt
- * see also tcltk-ext library on RAA
+ * see also tcltk-ext library on RAA
(http://raa.ruby-lang.org/)
==> blt
-TkTreeCtrl CVS/Hd(2005-12-02)
- http://sourceforge.net/projects/tktreectrl ==> treectrl
+TkTreeCtrl 2.2.9
+ http://tktreectrl.sourceforge.net/ ==> treectrl
-Tile 0.8.0/8.5.1
+Tile 0.8.3/8.6b1
http://sourceforge.net/projects/tktable ==> tile
===< support (may be alpha or beta quality) >=================================
-IncrTcl CVS/Hd(2005-02-14)
+IncrTcl CVS/Hd(2008-12-15)
http://sourceforge.net/projects/incrtcl ==> itcl, itk
-TclX CVS/Hd(2005-02-07)
+TclX CVS/Hd(2008-12-15)
http://sourceforge.net/projects/tclx
- ==> tclx (partial support; infox command and
+ ==> tclx (partial support; infox command and
XPG/3 message catalogs only)
-Trofs 0.4.3 http://math.nist.gov/~DPorter/tcltk/trofs/
+Trofs 0.4.4 http://math.nist.gov/~DPorter/tcltk/trofs/
@@ -127,7 +129,7 @@ Tkgeomap *** http://tkgeomap.sourceforge.net/index.html
===< not determined to supprt or not >========================================
Tix *** http://tixlibrary.sourceforge.net/
- * see also tcltk-ext library on RAA
+ * see also tcltk-ext library on RAA
(http://raa.ruby-lang.org/)
TkZinc *** http://www.tkzinc.org/
@@ -173,7 +175,7 @@ TclDOM *** http://sourceforge.net/projects/tclxml
TclSOAP *** http://sourceforge.net/projects/tclsoap
Snack *** http://www.speech.kth.se/~kare/snack2.2.tar.gz
- * use Snack for Ruby
+ * use Snack for Ruby
(see http://rbsnack.sourceforge.net/)
Tcom *** http://www.vex.net/~cthuang/tcom/
@@ -189,7 +191,7 @@ XOTcl *** http://www.xotcl.org/
===< tool (may not supprt) >==================================================
-tbcload/tclcompiler
+tbcload/tclcompiler
*** http://www.tcl.tk/software/tclpro/
diff --git a/ext/tk/lib/tkextlib/blt.rb b/ext/tk/lib/tkextlib/blt.rb
index 8d58c1f1bc..8b132e41a7 100644
--- a/ext/tk/lib/tkextlib/blt.rb
+++ b/ext/tk/lib/tkextlib/blt.rb
@@ -19,6 +19,8 @@ TkPackage.require('BLT')
module Tk
module BLT
TkComm::TkExtlibAutoloadModule.unshift(self)
+ # Require autoload-symbols which is a same name as widget classname.
+ # Those are used at TkComm._genobj_for_tkwidget method.
extend TkCore
diff --git a/ext/tk/lib/tkextlib/blt/barchart.rb b/ext/tk/lib/tkextlib/blt/barchart.rb
index 8e71c3f5e0..a86b91c959 100644
--- a/ext/tk/lib/tkextlib/blt/barchart.rb
+++ b/ext/tk/lib/tkextlib/blt/barchart.rb
@@ -11,7 +11,7 @@ module Tk::BLT
class Barchart < TkWindow
TkCommandNames = ['::blt::barchart'.freeze].freeze
WidgetClassName = 'Barchart'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
include PlotComponent
include GraphCommand
@@ -33,7 +33,7 @@ module Tk::BLT
private :__tkvariable_optkeys
=begin
- BarElement_ID = ['blt_barchart_bar'.freeze, '00000'.taint].freeze
+ BarElement_ID = ['blt_barchart_bar'.freeze, TkUtil.untrust('00000')].freeze
def bar(elem=nil, keys={})
if elem.kind_of?(Hash)
diff --git a/ext/tk/lib/tkextlib/blt/bitmap.rb b/ext/tk/lib/tkextlib/blt/bitmap.rb
index 23c6d2d064..3254b63116 100644
--- a/ext/tk/lib/tkextlib/blt/bitmap.rb
+++ b/ext/tk/lib/tkextlib/blt/bitmap.rb
@@ -14,7 +14,7 @@ module Tk::BLT
BITMAP_ID_TBL = TkCore::INTERP.create_table
- (BITMAP_ID = ['blt_bitmap_id'.freeze, '00000'.taint]).instance_eval{
+ (BITMAP_ID = ['blt_bitmap_id'.freeze, TkUtil.untrust('00000')]).instance_eval{
@mutex = Mutex.new
def mutex; @mutex; end
freeze
diff --git a/ext/tk/lib/tkextlib/blt/busy.rb b/ext/tk/lib/tkextlib/blt/busy.rb
index 2f807fcd9c..b5287fb5b7 100644
--- a/ext/tk/lib/tkextlib/blt/busy.rb
+++ b/ext/tk/lib/tkextlib/blt/busy.rb
@@ -44,6 +44,7 @@ class << Tk::BLT::Busy
private :__item_config_cmd
undef itemcget
+ undef itemcget_tkstring
alias configure itemconfigure
alias configinfo itemconfiginfo
alias current_configinfo current_itemconfiginfo
diff --git a/ext/tk/lib/tkextlib/blt/component.rb b/ext/tk/lib/tkextlib/blt/component.rb
index 74cbcb56ae..a228a82246 100644
--- a/ext/tk/lib/tkextlib/blt/component.rb
+++ b/ext/tk/lib/tkextlib/blt/component.rb
@@ -82,6 +82,9 @@ module Tk::BLT
end
private :__item_pathname
+ def axis_cget_tkstring(id, option)
+ ret = itemcget_tkstring(['axis', tagid(id)], option)
+ end
def axis_cget(id, option)
ret = itemcget(['axis', tagid(id)], option)
end
@@ -118,6 +121,9 @@ module Tk::BLT
current_itemconfiginfo(['axis', tagid(id)], slot)
end
+ def crosshairs_cget_tkstring(option)
+ itemcget_tkstring('crosshairs', option)
+ end
def crosshairs_cget(option)
itemcget('crosshairs', option)
end
@@ -134,6 +140,9 @@ module Tk::BLT
current_itemconfiginfo('crosshairs', slot)
end
+ def element_cget_tkstring(id, option)
+ itemcget_tkstring(['element', tagid(id)], option)
+ end
def element_cget(id, option)
itemcget(['element', tagid(id)], option)
end
@@ -158,6 +167,9 @@ module Tk::BLT
current_itemconfiginfo(['element', tagid(id)], slot)
end
+ def bar_cget_tkstring(id, option)
+ itemcget_tkstring(['bar', tagid(id)], option)
+ end
def bar_cget(id, option)
itemcget(['bar', tagid(id)], option)
end
@@ -182,6 +194,9 @@ module Tk::BLT
current_itemconfiginfo(['bar', tagid(id)], slot)
end
+ def line_cget_tkstring(id, option)
+ itemcget_tkstring(['line', tagid(id)], option)
+ end
def line_cget(id, option)
itemcget(['line', tagid(id)], option)
end
@@ -206,6 +221,9 @@ module Tk::BLT
current_itemconfiginfo(['line', tagid(id)], slot)
end
+ def gridline_cget_tkstring(option)
+ itemcget_tkstring('grid', option)
+ end
def gridline_cget(option)
itemcget('grid', option)
end
@@ -222,6 +240,9 @@ module Tk::BLT
current_itemconfiginfo('grid', slot)
end
+ def legend_cget_tkstring(option)
+ itemcget_tkstring('legend', option)
+ end
def legend_cget(option)
itemcget('legend', option)
end
@@ -238,6 +259,9 @@ module Tk::BLT
current_itemconfiginfo('legend', slot)
end
+ def pen_cget_tkstring(id, option)
+ itemcget_tkstring(['pen', tagid(id)], option)
+ end
def pen_cget(id, option)
itemcget(['pen', tagid(id)], option)
end
@@ -262,6 +286,9 @@ module Tk::BLT
current_itemconfiginfo(['pen', tagid(id)], slot)
end
+ def postscript_cget_tkstring(option)
+ itemcget_tkstring('postscript', option)
+ end
def postscript_cget(option)
itemcget('postscript', option)
end
@@ -278,6 +305,9 @@ module Tk::BLT
current_itemconfiginfo('postscript', slot)
end
+ def marker_cget_tkstring(id, option)
+ itemcget_tkstring(['marker', tagid(id)], option)
+ end
def marker_cget(id, option)
itemcget(['marker', tagid(id)], option)
end
@@ -302,12 +332,16 @@ module Tk::BLT
current_itemconfiginfo(['marker', tagid(id)], slot)
end
+ alias __itemcget_tkstring itemcget_tkstring
alias __itemcget itemcget
alias __itemcget_strict itemcget_strict
alias __itemconfiginfo itemconfiginfo
alias __current_itemconfiginfo current_itemconfiginfo
- private :__itemcget, :__itemconfiginfo, :__current_itemconfiginfo
+ private :__itemcget_tkstring, :__itemcget, :__itemconfiginfo, :__current_itemconfiginfo
+ def itemcget_tkstring(tagOrId, option)
+ __itemcget_tkstring(tagid(tagOrId), option)
+ end
def itemcget_strict(tagOrId, option)
ret = __itemcget(tagid(tagOrId), option)
if option == 'bindtags' || option == :bindtags
@@ -373,13 +407,13 @@ module Tk::BLT
ret
end
- private :itemcget, :itemcget_strict
+ private :itemcget_tkstring, :itemcget, :itemcget_strict
private :itemconfigure, :itemconfiginfo, :current_itemconfiginfo
#################
class Axis < TkObject
- (OBJ_ID = ['blt_chart_axis'.freeze, '00000'.taint]).instance_eval{
+ (OBJ_ID = ['blt_chart_axis'.freeze, TkUtil.untrust('00000')]).instance_eval{
@mutex = Mutex.new
def mutex; @mutex; end
freeze
@@ -477,6 +511,9 @@ module Tk::BLT
@id
end
+ def cget_tkstring(option)
+ @chart.axis_cget_tkstring(@id, option)
+ end
def cget(option)
@chart.axis_cget(@id, option)
end
@@ -582,6 +619,9 @@ module Tk::BLT
@id
end
+ def cget_tkstring(option)
+ @chart.crosshair_cget_tkstring(option)
+ end
def cget(option)
@chart.crosshair_cget(option)
end
@@ -631,7 +671,7 @@ module Tk::BLT
ElementID_TBL.mutex.synchronize{ ElementID_TBL.clear }
}
- (OBJ_ID = ['blt_chart_element'.freeze, '00000'.taint]).instance_eval{
+ (OBJ_ID = ['blt_chart_element'.freeze, TkUtil.untrust('00000')]).instance_eval{
@mutex = Mutex.new
def mutex; @mutex; end
freeze
@@ -729,6 +769,10 @@ module Tk::BLT
@id
end
+ def cget_tkstring(option)
+ # @chart.element_cget(@id, option)
+ @chart.__send__(@typename + '_cget_tkstring', @id, option)
+ end
def cget(option)
# @chart.element_cget(@id, option)
@chart.__send__(@typename + '_cget', @id, option)
@@ -833,6 +877,9 @@ module Tk::BLT
@id
end
+ def cget_tkstring(option)
+ @chart.gridline_cget_tkstring(option)
+ end
def cget(option)
@chart.gridline_cget(option)
end
@@ -907,6 +954,9 @@ module Tk::BLT
@id
end
+ def cget_tkstring(option)
+ @chart.legend_cget_tkstring(option)
+ end
def cget(option)
@chart.legend_cget(option)
end
@@ -940,7 +990,7 @@ module Tk::BLT
#################
class Pen < TkObject
- (OBJ_ID = ['blt_chart_pen'.freeze, '00000'.taint]).instance_eval{
+ (OBJ_ID = ['blt_chart_pen'.freeze, TkUtil.untrust('00000')]).instance_eval{
@mutex = Mutex.new
def mutex; @mutex; end
freeze
@@ -1036,6 +1086,9 @@ module Tk::BLT
@id
end
+ def cget_tkstring(option)
+ @chart.pen_cget_tkstring(@id, option)
+ end
def cget(option)
@chart.pen_cget(@id, option)
end
@@ -1106,6 +1159,9 @@ module Tk::BLT
@id
end
+ def cget_tkstring(option)
+ @chart.postscript_cget_tkstring(option)
+ end
def cget(option)
@chart.postscript_cget(option)
end
@@ -1212,7 +1268,7 @@ module Tk::BLT
args = []
end
- [args, fontkeys]
+ [args, fontkeys, methodkeys]
end
private_class_method :_parse_create_args
@@ -1220,18 +1276,20 @@ module Tk::BLT
unless self::MarkerTypeName
fail RuntimeError, "#{self} is an abstract class"
end
- args, fontkeys = _parse_create_args(keys)
+ args, fontkeys, methodkeys = _parse_create_args(keys)
idnum = tk_call_without_enc(chart.path, 'marker', 'create',
self::MarkerTypeName, *args)
chart.marker_configure(idnum, fontkeys) unless fontkeys.empty?
+ chart.marker_configure(idnum, methodkeys) unless methodkeys.empty?
idnum.to_i # 'item id' is an integer number
end
def self.create_type(chart, type, keys={})
- args, fontkeys = _parse_create_args(keys)
+ args, fontkeys, methodkeys = _parse_create_args(keys)
idnum = tk_call_without_enc(chart.path, 'marker', 'create',
type, *args)
chart.marker_configure(idnum, fontkeys) unless fontkeys.empty?
+ chart.marker_configure(idnum, methodkeys) unless methodkeys.empty?
id = idnum.to_i # 'item id' is an integer number
obj = self.allocate
obj.instance_eval{
@@ -1269,6 +1327,9 @@ module Tk::BLT
@id
end
+ def cget_tkstring(option)
+ @chart.marker_cget_tkstring(@id, option)
+ end
def cget(option)
@chart.marker_cget(@id, option)
end
@@ -1854,6 +1915,9 @@ module Tk::BLT
###################
+ def xaxis_cget_tkstring(option)
+ itemcget_tkstring('xaxis', option)
+ end
def xaxis_cget(option)
itemcget('xaxis', option)
end
@@ -1926,6 +1990,9 @@ module Tk::BLT
end
end
+ def x2axis_cget_tkstring(option)
+ itemcget_tkstring('x2axis', option)
+ end
def x2axis_cget(option)
itemcget('x2axis', option)
end
@@ -1998,6 +2065,9 @@ module Tk::BLT
end
end
+ def yaxis_cget_tkstring(option)
+ itemcget_tkstring('yaxis', option)
+ end
def yaxis_cget(option)
itemcget('yaxis', option)
end
@@ -2070,6 +2140,9 @@ module Tk::BLT
end
end
+ def y2axis_cget_tkstring(option)
+ itemcget_tkstring('y2axis', option)
+ end
def y2axis_cget(option)
itemcget('y2axis', option)
end
diff --git a/ext/tk/lib/tkextlib/blt/container.rb b/ext/tk/lib/tkextlib/blt/container.rb
index cdbec21f25..be05828d95 100644
--- a/ext/tk/lib/tkextlib/blt/container.rb
+++ b/ext/tk/lib/tkextlib/blt/container.rb
@@ -10,7 +10,7 @@ module Tk::BLT
class Container < TkWindow
TkCommandNames = ['::blt::container'.freeze].freeze
WidgetClassName = 'Container'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
def __strval_optkeys
super() << 'name'
diff --git a/ext/tk/lib/tkextlib/blt/dragdrop.rb b/ext/tk/lib/tkextlib/blt/dragdrop.rb
index d11d8bc41a..aa5c5654c2 100644
--- a/ext/tk/lib/tkextlib/blt/dragdrop.rb
+++ b/ext/tk/lib/tkextlib/blt/dragdrop.rb
@@ -15,7 +15,7 @@ module Tk::BLT
class Token < TkWindow
WidgetClassName = 'DragDropToken'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
def initialize(arg)
if arg.kind_of?(Hash) # arg is a hash includes the widgetpath of token
@@ -55,6 +55,7 @@ module Tk::BLT
private :__item_strval_optkeys
undef itemcget
+ undef itemcget_tkstring
private :itemconfigure, :itemconfiginfo, :current_itemconfiginfo
def source_configure(win, slot, value=None)
diff --git a/ext/tk/lib/tkextlib/blt/graph.rb b/ext/tk/lib/tkextlib/blt/graph.rb
index 9ae99bff5c..6bd4424065 100644
--- a/ext/tk/lib/tkextlib/blt/graph.rb
+++ b/ext/tk/lib/tkextlib/blt/graph.rb
@@ -11,7 +11,7 @@ module Tk::BLT
class Graph < TkWindow
TkCommandNames = ['::blt::graph'.freeze].freeze
WidgetClassName = 'Graph'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
include PlotComponent
include GraphCommand
@@ -27,7 +27,7 @@ module Tk::BLT
private :__strval_optkeys
=begin
- BarElement_ID = ['blt_graph_bar'.freeze, '00000'.taint].freeze
+ BarElement_ID = ['blt_graph_bar'.freeze, TkUtil.untrust('00000')].freeze
def bar(elem=nil, keys={})
if elem.kind_of?(Hash)
diff --git a/ext/tk/lib/tkextlib/blt/htext.rb b/ext/tk/lib/tkextlib/blt/htext.rb
index 0d9cb30185..878bd9982d 100644
--- a/ext/tk/lib/tkextlib/blt/htext.rb
+++ b/ext/tk/lib/tkextlib/blt/htext.rb
@@ -19,8 +19,9 @@ module Tk::BLT
TkCommandNames = ['::blt::htext'.freeze].freeze
WidgetClassName = 'Htext'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
+ alias window_cget_tkstring itemcget_tkstring
alias window_cget itemcget
alias window_cget_strict itemcget_strict
alias window_configure itemconfigure
diff --git a/ext/tk/lib/tkextlib/blt/stripchart.rb b/ext/tk/lib/tkextlib/blt/stripchart.rb
index a6b0f354e2..74093f1868 100644
--- a/ext/tk/lib/tkextlib/blt/stripchart.rb
+++ b/ext/tk/lib/tkextlib/blt/stripchart.rb
@@ -11,7 +11,7 @@ module Tk::BLT
class Stripchart < TkWindow
TkCommandNames = ['::blt::stripchart'.freeze].freeze
WidgetClassName = 'Stripchart'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
include PlotComponent
include GraphCommand
@@ -28,7 +28,7 @@ module Tk::BLT
private :__strval_optkeys
=begin
- BarElement_ID = ['blt_stripchart_bar'.freeze, '00000'.taint].freeze
+ BarElement_ID = ['blt_stripchart_bar'.freeze, TkUtil.untrust('00000')].freeze
def bar(elem=nil, keys={})
if elem.kind_of?(Hash)
diff --git a/ext/tk/lib/tkextlib/blt/table.rb b/ext/tk/lib/tkextlib/blt/table.rb
index dfa10269ed..205e29e6c5 100644
--- a/ext/tk/lib/tkextlib/blt/table.rb
+++ b/ext/tk/lib/tkextlib/blt/table.rb
@@ -26,6 +26,9 @@ module Tk::BLT
self
end
+ def blt_table_cget_tkstring(*args)
+ Tk::BLT::Table.cget_tkstring(self, *args)
+ end
def blt_table_cget(*args)
Tk::BLT::Table.cget(self, *args)
end
@@ -92,6 +95,9 @@ module Tk::BLT
self
end
+ def blt_table_itemcget_tkstring(*args)
+ Tk::BLT::Table.itemcget_tkstring(self, *args)
+ end
def blt_table_itemcget(*args)
Tk::BLT::Table.itemcget(self, *args)
end
@@ -141,13 +147,14 @@ class << Tk::BLT::Table
end
private :__item_pathname
+ alias __itemcget_tkstring itemcget_tkstring
alias __itemcget itemcget
alias __itemcget_strict itemcget_strict
alias __itemconfigure itemconfigure
alias __itemconfiginfo itemconfiginfo
alias __current_itemconfiginfo current_itemconfiginfo
- private :__itemcget, :__itemcget_strict
+ private :__itemcget_tkstring, :__itemcget, :__itemcget_strict
private :__itemconfigure, :__itemconfiginfo, :__current_itemconfiginfo
def __boolval_optkeys
@@ -180,6 +187,9 @@ class << Tk::BLT::Table
############################################
+ def cget_tkstring(container, option)
+ __itemcget_tkstring([container], option)
+ end
def cget(container, option)
__itemcget([container], option)
end
@@ -199,6 +209,9 @@ class << Tk::BLT::Table
__current_itemconfiginfo([container], *args)
end
+ def itemcget_tkstring(container, item, option)
+ __itemcget_tkstring([container, tagid(item)], option)
+ end
def itemcget(container, item, option)
__itemcget([container, tagid(item)], option)
end
diff --git a/ext/tk/lib/tkextlib/blt/tabnotebook.rb b/ext/tk/lib/tkextlib/blt/tabnotebook.rb
index 738ba7c601..82936c67d3 100644
--- a/ext/tk/lib/tkextlib/blt/tabnotebook.rb
+++ b/ext/tk/lib/tkextlib/blt/tabnotebook.rb
@@ -11,7 +11,7 @@ module Tk::BLT
class Tabnotebook < Tabset
TkCommandNames = ['::blt::tabnotebook'.freeze].freeze
WidgetClassName = 'Tabnotebook'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
class Tab < Tk::BLT::Tabset::Tab
def self.new(parent, pos=nil, name=nil, keys={})
diff --git a/ext/tk/lib/tkextlib/blt/tabset.rb b/ext/tk/lib/tkextlib/blt/tabset.rb
index b5e076db3a..c4716c7304 100644
--- a/ext/tk/lib/tkextlib/blt/tabset.rb
+++ b/ext/tk/lib/tkextlib/blt/tabset.rb
@@ -13,7 +13,7 @@ module Tk::BLT
TabID_TBL = TkCore::INTERP.create_table
- (TabsetTab_ID = ['blt_tabset_tab'.freeze, '00000'.taint]).instance_eval{
+ (TabsetTab_ID = ['blt_tabset_tab'.freeze, TkUtil.untrust('00000')]).instance_eval{
@mutex = Mutex.new
def mutex; @mutex; end
freeze
@@ -132,6 +132,9 @@ module Tk::BLT
@t.tab_bindinfo(@id, context)
end
+ def cget_tkstring(*args)
+ @t.tab_cget_tkstring(@id, *args)
+ end
def cget(*args)
@t.tab_cget(@id, *args)
end
@@ -210,7 +213,7 @@ module Tk::BLT
TkCommandNames = ['::blt::tabset'.freeze].freeze
WidgetClassName = 'Tabset'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
def __destroy_hook__
Tk::BLT::Tabset::Tab::TabID_TBL.mutex.synchronize{
@@ -249,6 +252,7 @@ module Tk::BLT
end
private :__item_pathname
+ alias tab_cget_tkstring itemcget_tkstring
alias tab_cget itemcget
alias tab_cget_strict itemcget_strict
alias tab_configure itemconfigure
diff --git a/ext/tk/lib/tkextlib/blt/ted.rb b/ext/tk/lib/tkextlib/blt/ted.rb
index 670265fc78..53ab9acdaa 100644
--- a/ext/tk/lib/tkextlib/blt/ted.rb
+++ b/ext/tk/lib/tkextlib/blt/ted.rb
@@ -30,9 +30,12 @@ module Tk::BLT
end
private :__item_config_cmd
- private :itemcget, :itemcget_strict
+ private :itemcget_tkstring, :itemcget, :itemcget_strict
private :itemconfigure, :itemconfiginfo, :current_itemconfiginfo
+ def cget_tkstring(master, option)
+ itemcget_tkstring(master, option)
+ end
def cget(master, option)
itemcget(master, option)
end
diff --git a/ext/tk/lib/tkextlib/blt/tile.rb b/ext/tk/lib/tkextlib/blt/tile.rb
index 5f5242f299..c67cafd8d6 100644
--- a/ext/tk/lib/tkextlib/blt/tile.rb
+++ b/ext/tk/lib/tkextlib/blt/tile.rb
@@ -8,6 +8,10 @@ require 'tkextlib/blt.rb'
module Tk::BLT
module Tile
+ TkComm::TkExtlibAutoloadModule.unshift(self)
+ # Require autoload-symbols which is a same name as widget classname.
+ # Those are used at TkComm._genobj_for_tkwidget method.
+
autoload :Button, 'tkextlib/blt/tile/button.rb'
autoload :CheckButton, 'tkextlib/blt/tile/checkbutton.rb'
autoload :Checkbutton, 'tkextlib/blt/tile/checkbutton.rb'
diff --git a/ext/tk/lib/tkextlib/blt/tree.rb b/ext/tk/lib/tkextlib/blt/tree.rb
index 605a64daa6..da53a6ed04 100644
--- a/ext/tk/lib/tkextlib/blt/tree.rb
+++ b/ext/tk/lib/tkextlib/blt/tree.rb
@@ -272,7 +272,7 @@ module Tk::BLT
TreeTagID_TBL.mutex.synchronize{ TreeTagID_TBL.clear }
}
- (TreeTag_ID = ['blt_tree_tag'.freeze, '00000'.taint]).instance_eval{
+ (TreeTag_ID = ['blt_tree_tag'.freeze, TkUtil.untrust('00000')]).instance_eval{
@mutex = Mutex.new
def mutex; @mutex; end
freeze
@@ -578,7 +578,7 @@ module Tk::BLT
TreeID_TBL = TkCore::INTERP.create_table
- (Tree_ID = ['blt_tree'.freeze, '00000'.taint]).instance_eval{
+ (Tree_ID = ['blt_tree'.freeze, TkUtil.untrust('00000')]).instance_eval{
@mutex = Mutex.new
def mutex; @mutex; end
freeze
diff --git a/ext/tk/lib/tkextlib/blt/treeview.rb b/ext/tk/lib/tkextlib/blt/treeview.rb
index 550422ee2e..046cf7f837 100644
--- a/ext/tk/lib/tkextlib/blt/treeview.rb
+++ b/ext/tk/lib/tkextlib/blt/treeview.rb
@@ -95,6 +95,9 @@ module Tk::BLT::Treeview::ConfigMethod
end
private :__item_pathname
+ def column_cget_tkstring(name, option)
+ itemcget_tkstring(['column', name], option)
+ end
def column_cget(name, option)
itemcget(['column', name], option)
end
@@ -111,6 +114,9 @@ module Tk::BLT::Treeview::ConfigMethod
current_itemconfiginfo(['column', name], slot)
end
+ def button_cget_tkstring(option)
+ itemcget_tkstring('button', option)
+ end
def button_cget(option)
itemcget('button', option)
end
@@ -127,6 +133,9 @@ module Tk::BLT::Treeview::ConfigMethod
current_itemconfiginfo('button', slot)
end
+ def entry_cget_tkstring(option)
+ itemcget_tkstring('entry', option)
+ end
def entry_cget(option)
ret = itemcget('entry', option)
if option == 'bindtags' || option == :bindtags
@@ -181,6 +190,9 @@ module Tk::BLT::Treeview::ConfigMethod
ret
end
+ def sort_cget_tkstring(option)
+ itemcget_tkstring('sort', option)
+ end
def sort_cget(option)
itemcget('sort', option)
end
@@ -197,6 +209,9 @@ module Tk::BLT::Treeview::ConfigMethod
current_itemconfiginfo('sort', slot)
end
+ def text_cget_tkstring(option)
+ itemcget_tkstring('text', option)
+ end
def text_cget(option)
itemcget('text', option)
end
@@ -213,14 +228,14 @@ module Tk::BLT::Treeview::ConfigMethod
current_itemconfiginfo('text', slot)
end
- private :itemcget, :itemcget_strict
+ private :itemcget_tkstring, :itemcget, :itemcget_strict
private :itemconfigure, :itemconfiginfo, :current_itemconfiginfo
end
class Tk::BLT::Treeview
TkCommandNames = ['::blt::treeview'.freeze].freeze
WidgetClassName = 'TreeView'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
include Scrollable
include ValidateConfigure
@@ -1029,7 +1044,7 @@ class Tk::BLT::Treeview::Node < TkObject
TreeNodeID_TBL = TkCore::INTERP.create_table
- (TreeNode_ID = ['blt_treeview_node'.freeze, '00000'.taint]).instance_eval{
+ (TreeNode_ID = ['blt_treeview_node'.freeze, TkUtil.untrust('00000')]).instance_eval{
@mutex = Mutex.new
def mutex; @mutex; end
freeze
@@ -1150,7 +1165,7 @@ class Tk::BLT::Treeview::Tag < TkObject
TreeTagID_TBL = TkCore::INTERP.create_table
- (TreeTag_ID = ['blt_treeview_tag'.freeze, '00000'.taint]).instance_eval{
+ (TreeTag_ID = ['blt_treeview_tag'.freeze, TkUtil.untrust('00000')]).instance_eval{
@mutex = Mutex.new
def mutex; @mutex; end
freeze
@@ -1268,5 +1283,5 @@ end
class Tk::BLT::Hiertable
TkCommandNames = ['::blt::hiertable'.freeze].freeze
WidgetClassName = 'Hiertable'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
end
diff --git a/ext/tk/lib/tkextlib/blt/unix_dnd.rb b/ext/tk/lib/tkextlib/blt/unix_dnd.rb
index 445002d7a5..8996f7c891 100644
--- a/ext/tk/lib/tkextlib/blt/unix_dnd.rb
+++ b/ext/tk/lib/tkextlib/blt/unix_dnd.rb
@@ -30,9 +30,12 @@ module Tk::BLT
end
private :__item_config_cmd
- private :itemcget, :itemcget_strict
+ private :itemcget_tkstring, :itemcget, :itemcget_strict
private :itemconfigure, :itemconfiginfo, :current_itemconfiginfo
+ def cget_tkstring(win, option)
+ itemcget_tkstring(['cget', win], option)
+ end
def cget(win, option)
itemcget(['cget', win], option)
end
@@ -49,6 +52,9 @@ module Tk::BLT
current_itemconfiginfo(['configure', win], slot)
end
+ def token_cget_tkstring(win, option)
+ itemcget_tkstring(['token', 'cget', win], option)
+ end
def token_cget(win, option)
itemcget(['token', 'cget', win], option)
end
diff --git a/ext/tk/lib/tkextlib/blt/watch.rb b/ext/tk/lib/tkextlib/blt/watch.rb
index 219ff78e97..292623ff58 100644
--- a/ext/tk/lib/tkextlib/blt/watch.rb
+++ b/ext/tk/lib/tkextlib/blt/watch.rb
@@ -14,7 +14,7 @@ module Tk::BLT
WATCH_ID_TBL = TkCore::INTERP.create_table
- (BLT_WATCH_ID = ['blt_watch_id'.freeze, '00000'.taint]).instance_eval{
+ (BLT_WATCH_ID = ['blt_watch_id'.freeze, TkUtil.untrust('00000')]).instance_eval{
@mutex = Mutex.new
def mutex; @mutex; end
freeze
diff --git a/ext/tk/lib/tkextlib/bwidget.rb b/ext/tk/lib/tkextlib/bwidget.rb
index 62631d8b54..7a1eff51d8 100644
--- a/ext/tk/lib/tkextlib/bwidget.rb
+++ b/ext/tk/lib/tkextlib/bwidget.rb
@@ -18,6 +18,8 @@ TkPackage.require('BWidget')
module Tk
module BWidget
TkComm::TkExtlibAutoloadModule.unshift(self)
+ # Require autoload-symbols which is a same name as widget classname.
+ # Those are used at TkComm._genobj_for_tkwidget method.
extend TkCore
diff --git a/ext/tk/lib/tkextlib/bwidget/arrowbutton.rb b/ext/tk/lib/tkextlib/bwidget/arrowbutton.rb
index 770e5e9ef1..13fe9e59bf 100644
--- a/ext/tk/lib/tkextlib/bwidget/arrowbutton.rb
+++ b/ext/tk/lib/tkextlib/bwidget/arrowbutton.rb
@@ -17,5 +17,5 @@ end
class Tk::BWidget::ArrowButton
TkCommandNames = ['ArrowButton'.freeze].freeze
WidgetClassName = 'ArrowButton'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
end
diff --git a/ext/tk/lib/tkextlib/bwidget/button.rb b/ext/tk/lib/tkextlib/bwidget/button.rb
index 8f3087d098..e139fb6708 100644
--- a/ext/tk/lib/tkextlib/bwidget/button.rb
+++ b/ext/tk/lib/tkextlib/bwidget/button.rb
@@ -17,7 +17,7 @@ end
class Tk::BWidget::Button
TkCommandNames = ['Button'.freeze].freeze
WidgetClassName = 'Button'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
def __strval_optkeys
super() << 'helptext'
diff --git a/ext/tk/lib/tkextlib/bwidget/buttonbox.rb b/ext/tk/lib/tkextlib/bwidget/buttonbox.rb
index 8d6d212189..a6de33c40c 100644
--- a/ext/tk/lib/tkextlib/bwidget/buttonbox.rb
+++ b/ext/tk/lib/tkextlib/bwidget/buttonbox.rb
@@ -17,7 +17,7 @@ end
class Tk::BWidget::ButtonBox
TkCommandNames = ['ButtonBox'.freeze].freeze
WidgetClassName = 'ButtonBox'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
include TkItemConfigMethod
diff --git a/ext/tk/lib/tkextlib/bwidget/combobox.rb b/ext/tk/lib/tkextlib/bwidget/combobox.rb
index 1c58a4ccb0..16143dfbc6 100644
--- a/ext/tk/lib/tkextlib/bwidget/combobox.rb
+++ b/ext/tk/lib/tkextlib/bwidget/combobox.rb
@@ -21,7 +21,12 @@ class Tk::BWidget::ComboBox
TkCommandNames = ['ComboBox'.freeze].freeze
WidgetClassName = 'ComboBox'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
+
+ def __boolval_optkeys
+ super() << 'autocomplete' << 'autopost'
+ end
+ private :__boolval_optkeys
def get_listbox(&b)
win = window(tk_send_without_enc('getlistbox'))
@@ -35,6 +40,12 @@ class Tk::BWidget::ComboBox
win
end
+ def clear_value
+ tk_send_without_enc('clearvalue')
+ self
+ end
+ alias clearvalue clear_value
+
def icursor(idx)
tk_send_without_enc('icursor', idx)
end
diff --git a/ext/tk/lib/tkextlib/bwidget/dialog.rb b/ext/tk/lib/tkextlib/bwidget/dialog.rb
index 13527f96ad..3b0656f021 100644
--- a/ext/tk/lib/tkextlib/bwidget/dialog.rb
+++ b/ext/tk/lib/tkextlib/bwidget/dialog.rb
@@ -18,12 +18,17 @@ end
class Tk::BWidget::Dialog
TkCommandNames = ['Dialog'.freeze].freeze
WidgetClassName = 'Dialog'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
include TkItemConfigMethod
+ def __numstrval_optkeys
+ super() << 'buttonwidth'
+ end
+ private :__numstrval_optkeys
+
def __strval_optkeys
- super() << 'title'
+ super() << 'title' << 'geometry'
end
private :__strval_optkeys
@@ -59,6 +64,13 @@ class Tk::BWidget::Dialog
end
end
+ def cget_tkstring(slot)
+ if slot.to_s == 'relative'
+ super('parent')
+ else
+ super(slot)
+ end
+ end
def cget_strict(slot)
if slot.to_s == 'relative'
super('parent')
diff --git a/ext/tk/lib/tkextlib/bwidget/entry.rb b/ext/tk/lib/tkextlib/bwidget/entry.rb
index a56890f4e3..8dc4496123 100644
--- a/ext/tk/lib/tkextlib/bwidget/entry.rb
+++ b/ext/tk/lib/tkextlib/bwidget/entry.rb
@@ -19,7 +19,7 @@ class Tk::BWidget::Entry
TkCommandNames = ['Entry'.freeze].freeze
WidgetClassName = 'Entry'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
def __strval_optkeys
super() << 'helptext' << 'insertbackground'
diff --git a/ext/tk/lib/tkextlib/bwidget/label.rb b/ext/tk/lib/tkextlib/bwidget/label.rb
index 88a504aa50..e8d9352c62 100644
--- a/ext/tk/lib/tkextlib/bwidget/label.rb
+++ b/ext/tk/lib/tkextlib/bwidget/label.rb
@@ -17,7 +17,7 @@ end
class Tk::BWidget::Label
TkCommandNames = ['Label'.freeze].freeze
WidgetClassName = 'Label'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
def __strval_optkeys
super() << 'helptext'
diff --git a/ext/tk/lib/tkextlib/bwidget/labelentry.rb b/ext/tk/lib/tkextlib/bwidget/labelentry.rb
index 95b40946a6..16e7b46933 100644
--- a/ext/tk/lib/tkextlib/bwidget/labelentry.rb
+++ b/ext/tk/lib/tkextlib/bwidget/labelentry.rb
@@ -21,7 +21,7 @@ class Tk::BWidget::LabelEntry
TkCommandNames = ['LabelEntry'.freeze].freeze
WidgetClassName = 'LabelEntry'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
def __strval_optkeys
super() << 'helptext' << 'insertbackground' << 'entryfg' << 'entrybg'
diff --git a/ext/tk/lib/tkextlib/bwidget/labelframe.rb b/ext/tk/lib/tkextlib/bwidget/labelframe.rb
index dc221806e4..0710f213f0 100644
--- a/ext/tk/lib/tkextlib/bwidget/labelframe.rb
+++ b/ext/tk/lib/tkextlib/bwidget/labelframe.rb
@@ -18,7 +18,7 @@ end
class Tk::BWidget::LabelFrame
TkCommandNames = ['LabelFrame'.freeze].freeze
WidgetClassName = 'LabelFrame'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
def __strval_optkeys
super() << 'helptext'
diff --git a/ext/tk/lib/tkextlib/bwidget/listbox.rb b/ext/tk/lib/tkextlib/bwidget/listbox.rb
index 33b69b408a..930491c869 100644
--- a/ext/tk/lib/tkextlib/bwidget/listbox.rb
+++ b/ext/tk/lib/tkextlib/bwidget/listbox.rb
@@ -25,7 +25,7 @@ class Tk::BWidget::ListBox
TkCommandNames = ['ListBox'.freeze].freeze
WidgetClassName = 'ListBox'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
class Event_for_Items < TkEvent::Event
def self._get_extra_args_tbl
@@ -212,7 +212,7 @@ class Tk::BWidget::ListBox::Item
ListItem_TBL = TkCore::INTERP.create_table
- (ListItem_ID = ['bw:item'.freeze, '00000'.taint]).instance_eval{
+ (ListItem_ID = ['bw:item'.freeze, TkUtil.untrust('00000')]).instance_eval{
@mutex = Mutex.new
def mutex; @mutex; end
freeze
@@ -294,6 +294,9 @@ class Tk::BWidget::ListBox::Item
val
end
+ def cget_tkstring(key)
+ @listbox.itemcget_tkstring(@id, key)
+ end
def cget(key)
@listbox.itemcget(@id, key)
end
diff --git a/ext/tk/lib/tkextlib/bwidget/mainframe.rb b/ext/tk/lib/tkextlib/bwidget/mainframe.rb
index de66eaf81e..92253bd8d3 100644
--- a/ext/tk/lib/tkextlib/bwidget/mainframe.rb
+++ b/ext/tk/lib/tkextlib/bwidget/mainframe.rb
@@ -18,7 +18,7 @@ end
class Tk::BWidget::MainFrame
TkCommandNames = ['MainFrame'.freeze].freeze
WidgetClassName = 'MainFrame'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
def __strval_optkeys
super() << 'progressfg'
@@ -111,6 +111,10 @@ class Tk::BWidget::MainFrame
win
end
+ def get_menustate(tag)
+ tk_send('getmenustate', tag) # return state name string
+ end
+
def set_menustate(tag, state)
tk_send('setmenustate', tag, state)
self
diff --git a/ext/tk/lib/tkextlib/bwidget/messagedlg.rb b/ext/tk/lib/tkextlib/bwidget/messagedlg.rb
index 9b46532934..7b62614737 100644
--- a/ext/tk/lib/tkextlib/bwidget/messagedlg.rb
+++ b/ext/tk/lib/tkextlib/bwidget/messagedlg.rb
@@ -17,7 +17,7 @@ end
class Tk::BWidget::MessageDlg
TkCommandNames = ['MessageDlg'.freeze].freeze
WidgetClassName = 'MessageDlg'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
def initialize(parent=nil, keys=nil)
@relative = ''
diff --git a/ext/tk/lib/tkextlib/bwidget/notebook.rb b/ext/tk/lib/tkextlib/bwidget/notebook.rb
index 6101fa93e5..ed28bcd86a 100644
--- a/ext/tk/lib/tkextlib/bwidget/notebook.rb
+++ b/ext/tk/lib/tkextlib/bwidget/notebook.rb
@@ -19,7 +19,7 @@ class Tk::BWidget::NoteBook
TkCommandNames = ['NoteBook'.freeze].freeze
WidgetClassName = 'NoteBook'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
class Event_for_Tabs < TkEvent::Event
def self._get_extra_args_tbl
diff --git a/ext/tk/lib/tkextlib/bwidget/pagesmanager.rb b/ext/tk/lib/tkextlib/bwidget/pagesmanager.rb
index fbc2c11255..31bbf1fb8b 100644
--- a/ext/tk/lib/tkextlib/bwidget/pagesmanager.rb
+++ b/ext/tk/lib/tkextlib/bwidget/pagesmanager.rb
@@ -17,7 +17,7 @@ end
class Tk::BWidget::PagesManager
TkCommandNames = ['PagesManager'.freeze].freeze
WidgetClassName = 'PagesManager'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
def tagid(id)
# id.to_s
diff --git a/ext/tk/lib/tkextlib/bwidget/panedwindow.rb b/ext/tk/lib/tkextlib/bwidget/panedwindow.rb
index 4d979fd523..54cf06cbde 100644
--- a/ext/tk/lib/tkextlib/bwidget/panedwindow.rb
+++ b/ext/tk/lib/tkextlib/bwidget/panedwindow.rb
@@ -17,7 +17,12 @@ end
class Tk::BWidget::PanedWindow
TkCommandNames = ['PanedWindow'.freeze].freeze
WidgetClassName = 'PanedWindow'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
+
+ def __strval_optkeys
+ super() << 'activator'
+ end
+ private :__strval_optkeys
def add(keys={})
window(tk_send('add', *hash_kv(keys)))
diff --git a/ext/tk/lib/tkextlib/bwidget/panelframe.rb b/ext/tk/lib/tkextlib/bwidget/panelframe.rb
index 84bae0768b..1cbf914425 100644
--- a/ext/tk/lib/tkextlib/bwidget/panelframe.rb
+++ b/ext/tk/lib/tkextlib/bwidget/panelframe.rb
@@ -17,7 +17,7 @@ end
class Tk::BWidget::PanelFrame
TkCommandNames = ['PanelFrame'.freeze].freeze
WidgetClassName = 'PanelFrame'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
def __strval_optkeys
super() + ['panelforeground', 'panelbackground']
@@ -47,11 +47,21 @@ class Tk::BWidget::PanelFrame
end
def items
- list(tk_send('items'))
+ simplelist(tk_send('items')).map{|w| window(w)}
end
def remove(*wins)
tk_send('remove', *wins)
self
end
+
+ def remove_with_destroy(*wins)
+ tk_send('remove', '-destroy', *wins)
+ self
+ end
+
+ def delete(*wins) # same to 'remove_with_destroy'
+ tk_send('delete', *wins)
+ self
+ end
end
diff --git a/ext/tk/lib/tkextlib/bwidget/passwddlg.rb b/ext/tk/lib/tkextlib/bwidget/passwddlg.rb
index 2c7153333c..ea50c87cef 100644
--- a/ext/tk/lib/tkextlib/bwidget/passwddlg.rb
+++ b/ext/tk/lib/tkextlib/bwidget/passwddlg.rb
@@ -17,7 +17,7 @@ end
class Tk::BWidget::PasswdDlg
TkCommandNames = ['PasswdDlg'.freeze].freeze
WidgetClassName = 'PasswdDlg'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
def __strval_optkeys
super() << 'loginhelptext' << 'loginlabel' << 'logintext' <<
diff --git a/ext/tk/lib/tkextlib/bwidget/progressbar.rb b/ext/tk/lib/tkextlib/bwidget/progressbar.rb
index 0253ce2ada..18eb67349b 100644
--- a/ext/tk/lib/tkextlib/bwidget/progressbar.rb
+++ b/ext/tk/lib/tkextlib/bwidget/progressbar.rb
@@ -16,5 +16,5 @@ end
class Tk::BWidget::ProgressBar
TkCommandNames = ['ProgressBar'.freeze].freeze
WidgetClassName = 'ProgressBar'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
end
diff --git a/ext/tk/lib/tkextlib/bwidget/progressdlg.rb b/ext/tk/lib/tkextlib/bwidget/progressdlg.rb
index 32600255d5..0c0c4540bc 100644
--- a/ext/tk/lib/tkextlib/bwidget/progressdlg.rb
+++ b/ext/tk/lib/tkextlib/bwidget/progressdlg.rb
@@ -19,7 +19,7 @@ end
class Tk::BWidget::ProgressDlg
TkCommandNames = ['ProgressDlg'.freeze].freeze
WidgetClassName = 'ProgressDlg'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
def create_self(keys)
# NOT create widget for reusing the object
diff --git a/ext/tk/lib/tkextlib/bwidget/scrollableframe.rb b/ext/tk/lib/tkextlib/bwidget/scrollableframe.rb
index 010c960ec5..5bd00d6870 100644
--- a/ext/tk/lib/tkextlib/bwidget/scrollableframe.rb
+++ b/ext/tk/lib/tkextlib/bwidget/scrollableframe.rb
@@ -19,7 +19,7 @@ class Tk::BWidget::ScrollableFrame
TkCommandNames = ['ScrollableFrame'.freeze].freeze
WidgetClassName = 'ScrollableFrame'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
def get_frame(&b)
win = window(tk_send_without_enc('getframe'))
diff --git a/ext/tk/lib/tkextlib/bwidget/scrolledwindow.rb b/ext/tk/lib/tkextlib/bwidget/scrolledwindow.rb
index 3599fd8459..ea5a18cc66 100644
--- a/ext/tk/lib/tkextlib/bwidget/scrolledwindow.rb
+++ b/ext/tk/lib/tkextlib/bwidget/scrolledwindow.rb
@@ -17,7 +17,17 @@ end
class Tk::BWidget::ScrolledWindow
TkCommandNames = ['ScrolledWindow'.freeze].freeze
WidgetClassName = 'ScrolledWindow'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
+
+ def __strval_optkeys
+ super() << 'sides'
+ end
+ private :__strval_optkeys
+
+ def __boolval_optkeys
+ super() << 'managed'
+ end
+ private :__boolval_optkeys
def get_frame(&b)
win = window(tk_send_without_enc('getframe'))
diff --git a/ext/tk/lib/tkextlib/bwidget/scrollview.rb b/ext/tk/lib/tkextlib/bwidget/scrollview.rb
index 0546af2c43..ab27bc91cf 100644
--- a/ext/tk/lib/tkextlib/bwidget/scrollview.rb
+++ b/ext/tk/lib/tkextlib/bwidget/scrollview.rb
@@ -16,7 +16,7 @@ end
class Tk::BWidget::ScrollView
TkCommandNames = ['ScrollView'.freeze].freeze
WidgetClassName = 'ScrollView'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
def __strval_optkeys
super() << 'fill'
diff --git a/ext/tk/lib/tkextlib/bwidget/selectcolor.rb b/ext/tk/lib/tkextlib/bwidget/selectcolor.rb
index 82bd05eb13..456175e87e 100644
--- a/ext/tk/lib/tkextlib/bwidget/selectcolor.rb
+++ b/ext/tk/lib/tkextlib/bwidget/selectcolor.rb
@@ -24,7 +24,7 @@ class Tk::BWidget::SelectColor
TkCommandNames = ['SelectColor'.freeze].freeze
WidgetClassName = 'SelectColor'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
def dialog(keys={})
newkeys = @keys.dup
diff --git a/ext/tk/lib/tkextlib/bwidget/selectfont.rb b/ext/tk/lib/tkextlib/bwidget/selectfont.rb
index 71b1afded3..23419cb0fa 100644
--- a/ext/tk/lib/tkextlib/bwidget/selectfont.rb
+++ b/ext/tk/lib/tkextlib/bwidget/selectfont.rb
@@ -23,13 +23,18 @@ class Tk::BWidget::SelectFont
TkCommandNames = ['SelectFont'.freeze].freeze
WidgetClassName = 'SelectFont'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
def __strval_optkeys
super() << 'sampletext' << 'title'
end
private :__strval_optkeys
+ def __boolval_optkeys
+ super() << 'nosizes'
+ end
+ private :__boolval_optkeys
+
def __font_optkeys
[] # without fontobj operation
end
diff --git a/ext/tk/lib/tkextlib/bwidget/separator.rb b/ext/tk/lib/tkextlib/bwidget/separator.rb
index d9c3458e51..6d92321210 100644
--- a/ext/tk/lib/tkextlib/bwidget/separator.rb
+++ b/ext/tk/lib/tkextlib/bwidget/separator.rb
@@ -16,5 +16,5 @@ end
class Tk::BWidget::Separator
TkCommandNames = ['Separator'.freeze].freeze
WidgetClassName = 'Separator'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
end
diff --git a/ext/tk/lib/tkextlib/bwidget/spinbox.rb b/ext/tk/lib/tkextlib/bwidget/spinbox.rb
index 48358baa5c..0a45b045fb 100644
--- a/ext/tk/lib/tkextlib/bwidget/spinbox.rb
+++ b/ext/tk/lib/tkextlib/bwidget/spinbox.rb
@@ -20,7 +20,7 @@ class Tk::BWidget::SpinBox
TkCommandNames = ['SpinBox'.freeze].freeze
WidgetClassName = 'SpinBox'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
def __strval_optkeys
super() << 'helptext' << 'insertbackground' << 'entryfg' << 'entrybg'
diff --git a/ext/tk/lib/tkextlib/bwidget/statusbar.rb b/ext/tk/lib/tkextlib/bwidget/statusbar.rb
index 39c678d37e..5c5dd43fe4 100644
--- a/ext/tk/lib/tkextlib/bwidget/statusbar.rb
+++ b/ext/tk/lib/tkextlib/bwidget/statusbar.rb
@@ -17,10 +17,10 @@ end
class Tk::BWidget::StatusBar
TkCommandNames = ['StatusBar'.freeze].freeze
WidgetClassName = 'StatusBar'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
def __boolval_optkeys
- super() << 'showresize'
+ super() << 'showresize' << 'showseparator' << 'showresizesep'
end
private :__boolval_optkeys
@@ -29,7 +29,17 @@ class Tk::BWidget::StatusBar
self
end
- def delete(*wins)
+ def remove(*wins)
+ tk_send('remove', *wins)
+ self
+ end
+
+ def remove_with_destroy(*wins)
+ tk_send('remove', '-destroy', *wins)
+ self
+ end
+
+ def delete(*wins) # same to 'remove_with_destroy'
tk_send('delete', *wins)
self
end
@@ -47,6 +57,6 @@ class Tk::BWidget::StatusBar
end
def items
- list(tk_send('items'))
+ simplelist(tk_send('items')).map{|w| window(w)}
end
end
diff --git a/ext/tk/lib/tkextlib/bwidget/titleframe.rb b/ext/tk/lib/tkextlib/bwidget/titleframe.rb
index 68534e66e9..71879111c1 100644
--- a/ext/tk/lib/tkextlib/bwidget/titleframe.rb
+++ b/ext/tk/lib/tkextlib/bwidget/titleframe.rb
@@ -17,7 +17,7 @@ end
class Tk::BWidget::TitleFrame
TkCommandNames = ['TitleFrame'.freeze].freeze
WidgetClassName = 'TitleFrame'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
def get_frame(&b)
win = window(tk_send_without_enc('getframe'))
diff --git a/ext/tk/lib/tkextlib/bwidget/tree.rb b/ext/tk/lib/tkextlib/bwidget/tree.rb
index 86074ab6f4..089c482fe8 100644
--- a/ext/tk/lib/tkextlib/bwidget/tree.rb
+++ b/ext/tk/lib/tkextlib/bwidget/tree.rb
@@ -22,7 +22,7 @@ class Tk::BWidget::Tree
TkCommandNames = ['Tree'.freeze].freeze
WidgetClassName = 'Tree'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
class Event_for_Items < TkEvent::Event
def self._get_extra_args_tbl
@@ -57,6 +57,37 @@ class Tk::BWidget::Tree
end
end
+ def areabind(context, *args)
+ if TkComm._callback_entry?(args[0]) || !block_given?
+ cmd = args.shift
+ else
+ cmd = Proc.new
+ end
+ _bind_for_event_class(Event_for_Items, [path, 'bindArea'],
+ context, cmd, *args)
+ self
+ end
+
+ def areabind_append(context, *args)
+ if TkComm._callback_entry?(args[0]) || !block_given?
+ cmd = args.shift
+ else
+ cmd = Proc.new
+ end
+ _bind_append_for_event_class(Event_for_Items, [path, 'bindArea'],
+ context, cmd, *args)
+ self
+ end
+
+ def areabind_remove(*args)
+ _bind_remove_for_event_class(Event_for_Items, [path, 'bindArea'], *args)
+ self
+ end
+
+ def areabindinfo(*args)
+ _bindinfo_for_event_class(Event_for_Items, [path, 'bindArea'], *args)
+ end
+
#def imagebind(*args)
# _bind_for_event_class(Event_for_Items, [path, 'bindImage'], *args)
# self
@@ -158,6 +189,16 @@ class Tk::BWidget::Tree
bool(tk_send('exists', tagid(node)))
end
+ def find(findinfo, confine=None)
+ Tk::BWidget::Tree::Node.id2obj(self, tk_send(findinfo, confine))
+ end
+ def find_position(x, y, confine=None)
+ self.find(_at(x,y), confine)
+ end
+ def find_line(linenum)
+ self.find(linenum)
+ end
+
def index(node)
num_or_str(tk_send('index', tagid(node)))
end
@@ -167,6 +208,10 @@ class Tk::BWidget::Tree
self
end
+ def line(node)
+ number(tk_send('line', tagid(node)))
+ end
+
def move(parent, node, idx)
tk_send('move', tagid(parent), tagid(node), idx)
self
@@ -183,7 +228,7 @@ class Tk::BWidget::Tree
end
def open?(node)
- bool(@tree.itemcget(tagid(node), 'open'))
+ bool(self.itemcget(tagid(node), 'open'))
end
def open_tree(node, recurse=None)
@@ -264,7 +309,7 @@ class Tk::BWidget::Tree::Node
TreeNode_TBL = TkCore::INTERP.create_table
- (TreeNode_ID = ['bw:node'.freeze, '00000'.taint]).instance_eval{
+ (TreeNode_ID = ['bw:node'.freeze, TkUtil.untrust('00000')]).instance_eval{
@mutex = Mutex.new
def mutex; @mutex; end
freeze
@@ -355,6 +400,9 @@ class Tk::BWidget::Tree::Node
val
end
+ def cget_tkstring(key)
+ @tree.itemcget_tkstring(@id, key)
+ end
def cget(key)
@tree.itemcget(@id, key)
end
@@ -450,4 +498,3 @@ class Tk::BWidget::Tree::Node
@tree.visible(@id)
end
end
-
diff --git a/ext/tk/lib/tkextlib/itcl/incr_tcl.rb b/ext/tk/lib/tkextlib/itcl/incr_tcl.rb
index 2b75d62eb9..8f6bb33abe 100644
--- a/ext/tk/lib/tkextlib/itcl/incr_tcl.rb
+++ b/ext/tk/lib/tkextlib/itcl/incr_tcl.rb
@@ -40,12 +40,12 @@ module Tk
class ItclObject < TkObject
ITCL_CLASSNAME = ''.freeze
- (ITCL_OBJ_ID = ['itclobj'.freeze, '00000'.taint]).instance_eval{
+ (ITCL_OBJ_ID = ['itclobj'.freeze, TkUtil.untrust('00000')]).instance_eval{
@mutex = Mutex.new
def mutex; @mutex; end
freeze
}
- ITCL_OBJ_TBL = {}.taint
+ ITCL_OBJ_TBL = TkUtil.untrust({})
def initialize(*args)
if (@klass = self.class::ITCL_CLASSNAME).empty?
diff --git a/ext/tk/lib/tkextlib/itk/incr_tk.rb b/ext/tk/lib/tkextlib/itk/incr_tk.rb
index 8772f21b49..989585e33b 100644
--- a/ext/tk/lib/tkextlib/itk/incr_tk.rb
+++ b/ext/tk/lib/tkextlib/itk/incr_tk.rb
@@ -111,7 +111,7 @@ module Tk
class Toplevel < Archetype
TkCommandNames = ['::itk::Toplevel'].freeze
WidgetClassName = 'Toplevel'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
include Wm
include TkMenuSpec
@@ -127,7 +127,7 @@ module Tk
class Widget < Archetype
TkCommandNames = ['::itk::Widget'].freeze
WidgetClassName = 'Widget'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
end
@@ -146,7 +146,7 @@ module Tk
ComponentID_TBL = TkCore::INTERP.create_table
- (Itk_Component_ID = ['itk:component'.freeze, '00000'.taint]).instance_eval{
+ (Itk_Component_ID = ['itk:component'.freeze, TkUtil.untrust('00000')]).instance_eval{
@mutex = Mutex.new
def mutex; @mutex; end
freeze
diff --git a/ext/tk/lib/tkextlib/iwidgets/buttonbox.rb b/ext/tk/lib/tkextlib/iwidgets/buttonbox.rb
index 05d58c386f..91e06d1b52 100644
--- a/ext/tk/lib/tkextlib/iwidgets/buttonbox.rb
+++ b/ext/tk/lib/tkextlib/iwidgets/buttonbox.rb
@@ -16,7 +16,7 @@ end
class Tk::Iwidgets::Buttonbox
TkCommandNames = ['::iwidgets::buttonbox'.freeze].freeze
WidgetClassName = 'Buttonbox'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
####################################
@@ -46,13 +46,14 @@ class Tk::Iwidgets::Buttonbox
end
end
+ alias buttoncget_tkstring itemcget_tkstring
alias buttoncget itemcget
alias buttoncget_strict itemcget_strict
alias buttonconfigure itemconfigure
alias buttonconfiginfo itemconfiginfo
alias current_buttonconfiginfo current_itemconfiginfo
- private :itemcget, :itemcget_strict
+ private :itemcget_tkstring, :itemcget, :itemcget_strict
private :itemconfigure, :itemconfiginfo, :current_itemconfiginfo
####################################
diff --git a/ext/tk/lib/tkextlib/iwidgets/calendar.rb b/ext/tk/lib/tkextlib/iwidgets/calendar.rb
index e85d6e4e51..a5478c7cc6 100644
--- a/ext/tk/lib/tkextlib/iwidgets/calendar.rb
+++ b/ext/tk/lib/tkextlib/iwidgets/calendar.rb
@@ -16,7 +16,7 @@ end
class Tk::Iwidgets::Calendar
TkCommandNames = ['::iwidgets::calendar'.freeze].freeze
WidgetClassName = 'Calendar'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
def __strval_optkeys
super() + [
diff --git a/ext/tk/lib/tkextlib/iwidgets/canvasprintbox.rb b/ext/tk/lib/tkextlib/iwidgets/canvasprintbox.rb
index fa5e90ad05..398eec3f1a 100644
--- a/ext/tk/lib/tkextlib/iwidgets/canvasprintbox.rb
+++ b/ext/tk/lib/tkextlib/iwidgets/canvasprintbox.rb
@@ -16,7 +16,7 @@ end
class Tk::Iwidgets::Canvasprintbox
TkCommandNames = ['::iwidgets::canvasprintbox'.freeze].freeze
WidgetClassName = 'Canvasprintbox'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
def __strval_optkeys
super() << 'filename'
diff --git a/ext/tk/lib/tkextlib/iwidgets/canvasprintdialog.rb b/ext/tk/lib/tkextlib/iwidgets/canvasprintdialog.rb
index bbf507677c..e64d8154ca 100644
--- a/ext/tk/lib/tkextlib/iwidgets/canvasprintdialog.rb
+++ b/ext/tk/lib/tkextlib/iwidgets/canvasprintdialog.rb
@@ -16,7 +16,7 @@ end
class Tk::Iwidgets::Canvasprintdialog
TkCommandNames = ['::iwidgets::canvasprintdialog'.freeze].freeze
WidgetClassName = 'Canvasprintdialog'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
def get_output
tk_call(@path, 'getoutput')
diff --git a/ext/tk/lib/tkextlib/iwidgets/checkbox.rb b/ext/tk/lib/tkextlib/iwidgets/checkbox.rb
index c85d356c55..a7476c824e 100644
--- a/ext/tk/lib/tkextlib/iwidgets/checkbox.rb
+++ b/ext/tk/lib/tkextlib/iwidgets/checkbox.rb
@@ -16,7 +16,7 @@ end
class Tk::Iwidgets::Checkbox
TkCommandNames = ['::iwidgets::checkbox'.freeze].freeze
WidgetClassName = 'Checkbox'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
####################################
@@ -46,13 +46,14 @@ class Tk::Iwidgets::Checkbox
end
end
+ alias buttoncget_tkstring itemcget_tkstring
alias buttoncget itemcget
alias buttoncget_strict itemcget_strict
alias buttonconfigure itemconfigure
alias buttonconfiginfo itemconfiginfo
alias current_buttonconfiginfo current_itemconfiginfo
- private :itemcget, :itemcget_strict
+ private :itemcget_tkstring, :itemcget, :itemcget_strict
private :itemconfigure, :itemconfiginfo, :current_itemconfiginfo
####################################
diff --git a/ext/tk/lib/tkextlib/iwidgets/combobox.rb b/ext/tk/lib/tkextlib/iwidgets/combobox.rb
index a6d54d78fa..82dcf25d0b 100644
--- a/ext/tk/lib/tkextlib/iwidgets/combobox.rb
+++ b/ext/tk/lib/tkextlib/iwidgets/combobox.rb
@@ -16,7 +16,7 @@ end
class Tk::Iwidgets::Combobox
TkCommandNames = ['::iwidgets::combobox'.freeze].freeze
WidgetClassName = 'Combobox'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
def __boolval_optkeys
super() << 'completion' << 'dropdown' << 'editable' << 'unique'
diff --git a/ext/tk/lib/tkextlib/iwidgets/dateentry.rb b/ext/tk/lib/tkextlib/iwidgets/dateentry.rb
index 0a8897f50d..98a0051e55 100644
--- a/ext/tk/lib/tkextlib/iwidgets/dateentry.rb
+++ b/ext/tk/lib/tkextlib/iwidgets/dateentry.rb
@@ -16,5 +16,5 @@ end
class Tk::Iwidgets::Dateentry
TkCommandNames = ['::iwidgets::dateentry'.freeze].freeze
WidgetClassName = 'Dateentry'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
end
diff --git a/ext/tk/lib/tkextlib/iwidgets/datefield.rb b/ext/tk/lib/tkextlib/iwidgets/datefield.rb
index 632f3334dc..50d5405a3b 100644
--- a/ext/tk/lib/tkextlib/iwidgets/datefield.rb
+++ b/ext/tk/lib/tkextlib/iwidgets/datefield.rb
@@ -16,7 +16,7 @@ end
class Tk::Iwidgets::Datefield
TkCommandNames = ['::iwidgets::datefield'.freeze].freeze
WidgetClassName = 'Datefield'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
def __boolval_optkeys
super() << 'gmt'
diff --git a/ext/tk/lib/tkextlib/iwidgets/dialog.rb b/ext/tk/lib/tkextlib/iwidgets/dialog.rb
index 8540eae1b5..2d554ca7b5 100644
--- a/ext/tk/lib/tkextlib/iwidgets/dialog.rb
+++ b/ext/tk/lib/tkextlib/iwidgets/dialog.rb
@@ -16,5 +16,5 @@ end
class Tk::Iwidgets::Dialog
TkCommandNames = ['::iwidgets::dialog'.freeze].freeze
WidgetClassName = 'Dialog'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
end
diff --git a/ext/tk/lib/tkextlib/iwidgets/dialogshell.rb b/ext/tk/lib/tkextlib/iwidgets/dialogshell.rb
index 8d43cc07ab..e880594532 100644
--- a/ext/tk/lib/tkextlib/iwidgets/dialogshell.rb
+++ b/ext/tk/lib/tkextlib/iwidgets/dialogshell.rb
@@ -16,7 +16,7 @@ end
class Tk::Iwidgets::Dialogshell
TkCommandNames = ['::iwidgets::dialogshell'.freeze].freeze
WidgetClassName = 'Dialogshell'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
####################################
@@ -46,13 +46,14 @@ class Tk::Iwidgets::Dialogshell
end
end
+ alias buttoncget_tkstring itemcget_tkstring
alias buttoncget itemcget
alias buttoncget_strict itemcget_strict
alias buttonconfigure itemconfigure
alias buttonconfiginfo itemconfiginfo
alias current_buttonconfiginfo current_itemconfiginfo
- private :itemcget, :itemcget_strict
+ private :itemcget_tkstring, :itemcget, :itemcget_strict
private :itemconfigure, :itemconfiginfo, :current_itemconfiginfo
####################################
diff --git a/ext/tk/lib/tkextlib/iwidgets/disjointlistbox.rb b/ext/tk/lib/tkextlib/iwidgets/disjointlistbox.rb
index 9bc063ba69..07ab025cdf 100644
--- a/ext/tk/lib/tkextlib/iwidgets/disjointlistbox.rb
+++ b/ext/tk/lib/tkextlib/iwidgets/disjointlistbox.rb
@@ -16,7 +16,7 @@ end
class Tk::Iwidgets::Disjointlistbox
TkCommandNames = ['::iwidgets::disjointlistbox'.freeze].freeze
WidgetClassName = 'Disjointlistbox'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
def __strval_optkeys
super() << 'lhslabeltext' << 'rhslabeltext' << 'lhsbuttonlabel' << 'rhsbuttonlabel'
diff --git a/ext/tk/lib/tkextlib/iwidgets/entryfield.rb b/ext/tk/lib/tkextlib/iwidgets/entryfield.rb
index 6e1cd0053b..3e7149a662 100644
--- a/ext/tk/lib/tkextlib/iwidgets/entryfield.rb
+++ b/ext/tk/lib/tkextlib/iwidgets/entryfield.rb
@@ -16,7 +16,7 @@ end
class Tk::Iwidgets::Entryfield
TkCommandNames = ['::iwidgets::entryfield'.freeze].freeze
WidgetClassName = 'Entryfield'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
def __font_optkeys
super() << 'textfont'
diff --git a/ext/tk/lib/tkextlib/iwidgets/extbutton.rb b/ext/tk/lib/tkextlib/iwidgets/extbutton.rb
index 158d9d474a..e744fba91a 100644
--- a/ext/tk/lib/tkextlib/iwidgets/extbutton.rb
+++ b/ext/tk/lib/tkextlib/iwidgets/extbutton.rb
@@ -16,7 +16,7 @@ end
class Tk::Iwidgets::Extbutton
TkCommandNames = ['::iwidgets::extbutton'.freeze].freeze
WidgetClassName = 'Extbutton'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
def __strval_optkeys
super() << 'bitmapforeground' << 'ringbackground'
diff --git a/ext/tk/lib/tkextlib/iwidgets/extfileselectionbox.rb b/ext/tk/lib/tkextlib/iwidgets/extfileselectionbox.rb
index 526dae1123..2ff15bb509 100644
--- a/ext/tk/lib/tkextlib/iwidgets/extfileselectionbox.rb
+++ b/ext/tk/lib/tkextlib/iwidgets/extfileselectionbox.rb
@@ -16,7 +16,7 @@ end
class Tk::Iwidgets::Extfileselectionbox
TkCommandNames = ['::iwidgets::extfileselectionbox'.freeze].freeze
WidgetClassName = 'Extfileselectionbox'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
def __strval_optkeys
super() + [
diff --git a/ext/tk/lib/tkextlib/iwidgets/extfileselectiondialog.rb b/ext/tk/lib/tkextlib/iwidgets/extfileselectiondialog.rb
index 14388be7c4..509fdcf636 100644
--- a/ext/tk/lib/tkextlib/iwidgets/extfileselectiondialog.rb
+++ b/ext/tk/lib/tkextlib/iwidgets/extfileselectiondialog.rb
@@ -16,7 +16,7 @@ end
class Tk::Iwidgets::Extfileselectiondialog
TkCommandNames = ['::iwidgets::extfileselectiondialog'.freeze].freeze
WidgetClassName = 'Extfileselectiondialog'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
def child_site
window(tk_call(@path, 'childsite'))
diff --git a/ext/tk/lib/tkextlib/iwidgets/feedback.rb b/ext/tk/lib/tkextlib/iwidgets/feedback.rb
index 0a25237a24..29d04c8a5d 100644
--- a/ext/tk/lib/tkextlib/iwidgets/feedback.rb
+++ b/ext/tk/lib/tkextlib/iwidgets/feedback.rb
@@ -16,7 +16,7 @@ end
class Tk::Iwidgets::Feedback
TkCommandNames = ['::iwidgets::feedback'.freeze].freeze
WidgetClassName = 'Feedback'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
def __strval_optkeys
super() << 'barcolor'
diff --git a/ext/tk/lib/tkextlib/iwidgets/fileselectionbox.rb b/ext/tk/lib/tkextlib/iwidgets/fileselectionbox.rb
index eb4dde484f..a425b53b5f 100644
--- a/ext/tk/lib/tkextlib/iwidgets/fileselectionbox.rb
+++ b/ext/tk/lib/tkextlib/iwidgets/fileselectionbox.rb
@@ -16,7 +16,7 @@ end
class Tk::Iwidgets::Fileselectionbox
TkCommandNames = ['::iwidgets::fileselectionbox'.freeze].freeze
WidgetClassName = 'Fileselectionbox'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
def __strval_optkeys
super() + [
diff --git a/ext/tk/lib/tkextlib/iwidgets/fileselectiondialog.rb b/ext/tk/lib/tkextlib/iwidgets/fileselectiondialog.rb
index 50f459e56d..ebcdaf8c0b 100644
--- a/ext/tk/lib/tkextlib/iwidgets/fileselectiondialog.rb
+++ b/ext/tk/lib/tkextlib/iwidgets/fileselectiondialog.rb
@@ -16,7 +16,7 @@ end
class Tk::Iwidgets::Fileselectiondialog
TkCommandNames = ['::iwidgets::fileselectiondialog'.freeze].freeze
WidgetClassName = 'Fileselectiondialog'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
def child_site
window(tk_call(@path, 'childsite'))
diff --git a/ext/tk/lib/tkextlib/iwidgets/finddialog.rb b/ext/tk/lib/tkextlib/iwidgets/finddialog.rb
index c46b972214..3d522e07c8 100644
--- a/ext/tk/lib/tkextlib/iwidgets/finddialog.rb
+++ b/ext/tk/lib/tkextlib/iwidgets/finddialog.rb
@@ -16,7 +16,7 @@ end
class Tk::Iwidgets::Finddialog
TkCommandNames = ['::iwidgets::finddialog'.freeze].freeze
WidgetClassName = 'Finddialog'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
def __strval_optkeys
super() + [
diff --git a/ext/tk/lib/tkextlib/iwidgets/hierarchy.rb b/ext/tk/lib/tkextlib/iwidgets/hierarchy.rb
index fa16d9aad8..cb9301d0c9 100644
--- a/ext/tk/lib/tkextlib/iwidgets/hierarchy.rb
+++ b/ext/tk/lib/tkextlib/iwidgets/hierarchy.rb
@@ -20,7 +20,7 @@ class Tk::Iwidgets::Hierarchy
TkCommandNames = ['::iwidgets::hierarchy'.freeze].freeze
WidgetClassName = 'Hierarchy'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
####################################
diff --git a/ext/tk/lib/tkextlib/iwidgets/hyperhelp.rb b/ext/tk/lib/tkextlib/iwidgets/hyperhelp.rb
index 77b0e090cd..d4ea1aac65 100644
--- a/ext/tk/lib/tkextlib/iwidgets/hyperhelp.rb
+++ b/ext/tk/lib/tkextlib/iwidgets/hyperhelp.rb
@@ -16,7 +16,7 @@ end
class Tk::Iwidgets::Hyperhelp
TkCommandNames = ['::iwidgets::hyperhelp'.freeze].freeze
WidgetClassName = 'Hyperhelp'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
def __strval_optkeys
super() << 'helpdir'
diff --git a/ext/tk/lib/tkextlib/iwidgets/labeledframe.rb b/ext/tk/lib/tkextlib/iwidgets/labeledframe.rb
index e77e85045d..6595398427 100644
--- a/ext/tk/lib/tkextlib/iwidgets/labeledframe.rb
+++ b/ext/tk/lib/tkextlib/iwidgets/labeledframe.rb
@@ -16,7 +16,7 @@ end
class Tk::Iwidgets::Labeledframe
TkCommandNames = ['::iwidgets::labeledframe'.freeze].freeze
WidgetClassName = 'Labeledframe'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
def __strval_optkeys
super() << 'labeltext'
diff --git a/ext/tk/lib/tkextlib/iwidgets/labeledwidget.rb b/ext/tk/lib/tkextlib/iwidgets/labeledwidget.rb
index 99387710cb..d36d42878d 100644
--- a/ext/tk/lib/tkextlib/iwidgets/labeledwidget.rb
+++ b/ext/tk/lib/tkextlib/iwidgets/labeledwidget.rb
@@ -18,7 +18,7 @@ class Tk::Iwidgets::Labeledwidget
TkCommandNames = ['::iwidgets::labeledwidget'.freeze].freeze
WidgetClassName = 'Labeledwidget'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
def __strval_optkeys
super() << 'labeltext'
diff --git a/ext/tk/lib/tkextlib/iwidgets/mainwindow.rb b/ext/tk/lib/tkextlib/iwidgets/mainwindow.rb
index 4b2541b997..ebf48021db 100644
--- a/ext/tk/lib/tkextlib/iwidgets/mainwindow.rb
+++ b/ext/tk/lib/tkextlib/iwidgets/mainwindow.rb
@@ -16,7 +16,7 @@ end
class Tk::Iwidgets::Mainwindow
TkCommandNames = ['::iwidgets::mainwindow'.freeze].freeze
WidgetClassName = 'Mainwindow'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
def __boolval_optkeys
super() << 'helpline' << 'statusline'
diff --git a/ext/tk/lib/tkextlib/iwidgets/menubar.rb b/ext/tk/lib/tkextlib/iwidgets/menubar.rb
index 5aaefbe50d..f9a17d0b55 100644
--- a/ext/tk/lib/tkextlib/iwidgets/menubar.rb
+++ b/ext/tk/lib/tkextlib/iwidgets/menubar.rb
@@ -16,7 +16,7 @@ end
class Tk::Iwidgets::Menubar
TkCommandNames = ['::iwidgets::menubar'.freeze].freeze
WidgetClassName = 'Menubar'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
def __strval_optkeys
super() << 'menubuttons'
@@ -61,13 +61,14 @@ class Tk::Iwidgets::Menubar
end
end
+ alias menucget_tkstring itemcget_tkstring
alias menucget itemcget
alias menucget_strict itemcget_strict
alias menuconfigure itemconfigure
alias menuconfiginfo itemconfiginfo
alias current_menuconfiginfo current_itemconfiginfo
- private :itemcget, :itemcget_strict
+ private :itemcget_tkstring, :itemcget, :itemcget_strict
private :itemconfigure, :itemconfiginfo, :current_itemconfiginfo
####################################
diff --git a/ext/tk/lib/tkextlib/iwidgets/messagebox.rb b/ext/tk/lib/tkextlib/iwidgets/messagebox.rb
index 98ac32900c..6adb53d941 100644
--- a/ext/tk/lib/tkextlib/iwidgets/messagebox.rb
+++ b/ext/tk/lib/tkextlib/iwidgets/messagebox.rb
@@ -16,7 +16,7 @@ end
class Tk::Iwidgets::Messagebox
TkCommandNames = ['::iwidgets::messagebox'.freeze].freeze
WidgetClassName = 'Messagebox'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
####################################
@@ -46,13 +46,14 @@ class Tk::Iwidgets::Messagebox
end
private :__item_boolval_optkeys
+ alias typecget_tkstring itemcget_tkstring
alias typecget itemcget
alias typecget_strict itemcget_strict
alias typeconfigure itemconfigure
alias typeconfiginfo itemconfiginfo
alias current_typeconfiginfo current_itemconfiginfo
- private :itemcget, :itemcget_strict
+ private :itemcget_tkstring, :itemcget, :itemcget_strict
private :itemconfigure, :itemconfiginfo, :current_itemconfiginfo
####################################
diff --git a/ext/tk/lib/tkextlib/iwidgets/messagedialog.rb b/ext/tk/lib/tkextlib/iwidgets/messagedialog.rb
index c19b83e517..9aa590056f 100644
--- a/ext/tk/lib/tkextlib/iwidgets/messagedialog.rb
+++ b/ext/tk/lib/tkextlib/iwidgets/messagedialog.rb
@@ -16,5 +16,5 @@ end
class Tk::Iwidgets::Messagedialog
TkCommandNames = ['::iwidgets::messagedialog'.freeze].freeze
WidgetClassName = 'Messagedialog'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
end
diff --git a/ext/tk/lib/tkextlib/iwidgets/notebook.rb b/ext/tk/lib/tkextlib/iwidgets/notebook.rb
index 03b50633df..7ed4126a4d 100644
--- a/ext/tk/lib/tkextlib/iwidgets/notebook.rb
+++ b/ext/tk/lib/tkextlib/iwidgets/notebook.rb
@@ -16,7 +16,7 @@ end
class Tk::Iwidgets::Notebook
TkCommandNames = ['::iwidgets::notebook'.freeze].freeze
WidgetClassName = 'Notebook'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
####################################
@@ -41,13 +41,14 @@ class Tk::Iwidgets::Notebook
end
end
+ alias pagecget_tkstring itemcget_tkstring
alias pagecget itemcget
alias pagecget_strict itemcget_strict
alias pageconfigure itemconfigure
alias pageconfiginfo itemconfiginfo
alias current_pageconfiginfo current_itemconfiginfo
- private :itemcget, :itemcget_strict
+ private :itemcget_tkstring, :itemcget, :itemcget_strict
private :itemconfigure, :itemconfiginfo, :current_itemconfiginfo
####################################
diff --git a/ext/tk/lib/tkextlib/iwidgets/optionmenu.rb b/ext/tk/lib/tkextlib/iwidgets/optionmenu.rb
index 0c74440be7..57a3cc7d2b 100644
--- a/ext/tk/lib/tkextlib/iwidgets/optionmenu.rb
+++ b/ext/tk/lib/tkextlib/iwidgets/optionmenu.rb
@@ -16,7 +16,7 @@ end
class Tk::Iwidgets::Optionmenu
TkCommandNames = ['::iwidgets::optionmenu'.freeze].freeze
WidgetClassName = 'Optionmenu'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
def __boolval_optkeys
super() << 'cyclicon'
diff --git a/ext/tk/lib/tkextlib/iwidgets/panedwindow.rb b/ext/tk/lib/tkextlib/iwidgets/panedwindow.rb
index 3bf73d69fe..65463cc85a 100644
--- a/ext/tk/lib/tkextlib/iwidgets/panedwindow.rb
+++ b/ext/tk/lib/tkextlib/iwidgets/panedwindow.rb
@@ -16,7 +16,7 @@ end
class Tk::Iwidgets::Panedwindow
TkCommandNames = ['::iwidgets::panedwindow'.freeze].freeze
WidgetClassName = 'Panedwindow'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
####################################
@@ -41,13 +41,14 @@ class Tk::Iwidgets::Panedwindow
end
end
+ alias panecget_tkstring itemcget_tkstring
alias panecget itemcget
alias panecget_strict itemcget_strict
alias paneconfigure itemconfigure
alias paneconfiginfo itemconfiginfo
alias current_paneconfiginfo current_itemconfiginfo
- private :itemcget, :itemcget_strict
+ private :itemcget_tkstring, :itemcget, :itemcget_strict
private :itemconfigure, :itemconfiginfo, :current_itemconfiginfo
####################################
diff --git a/ext/tk/lib/tkextlib/iwidgets/promptdialog.rb b/ext/tk/lib/tkextlib/iwidgets/promptdialog.rb
index 620b14b5d5..7c7ff7ad62 100644
--- a/ext/tk/lib/tkextlib/iwidgets/promptdialog.rb
+++ b/ext/tk/lib/tkextlib/iwidgets/promptdialog.rb
@@ -16,7 +16,7 @@ end
class Tk::Iwidgets::Promptdialog
TkCommandNames = ['::iwidgets::promptdialog'.freeze].freeze
WidgetClassName = 'Promptdialog'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
# index method is not available, because it shows index of the entry field
def default(name)
diff --git a/ext/tk/lib/tkextlib/iwidgets/pushbutton.rb b/ext/tk/lib/tkextlib/iwidgets/pushbutton.rb
index c21007ca6c..ae56788289 100644
--- a/ext/tk/lib/tkextlib/iwidgets/pushbutton.rb
+++ b/ext/tk/lib/tkextlib/iwidgets/pushbutton.rb
@@ -16,7 +16,7 @@ end
class Tk::Iwidgets::Pushbutton
TkCommandNames = ['::iwidgets::pushbutton'.freeze].freeze
WidgetClassName = 'Pushbutton'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
def __boolval_optkeys
super() << 'defaultring'
diff --git a/ext/tk/lib/tkextlib/iwidgets/radiobox.rb b/ext/tk/lib/tkextlib/iwidgets/radiobox.rb
index e9d9521252..21181777b5 100644
--- a/ext/tk/lib/tkextlib/iwidgets/radiobox.rb
+++ b/ext/tk/lib/tkextlib/iwidgets/radiobox.rb
@@ -16,7 +16,7 @@ end
class Tk::Iwidgets::Radiobox
TkCommandNames = ['::iwidgets::radiobox'.freeze].freeze
WidgetClassName = 'Radiobox'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
####################################
@@ -46,13 +46,14 @@ class Tk::Iwidgets::Radiobox
end
end
+ alias buttoncget_tkstring itemcget_tkstring
alias buttoncget itemcget
alias buttoncget_strict itemcget_strict
alias buttonconfigure itemconfigure
alias buttonconfiginfo itemconfiginfo
alias current_buttonconfiginfo current_itemconfiginfo
- private :itemcget, :itemcget_strict
+ private :itemcget_tkstring, :itemcget, :itemcget_strict
private :itemconfigure, :itemconfiginfo, :current_itemconfiginfo
####################################
diff --git a/ext/tk/lib/tkextlib/iwidgets/scopedobject.rb b/ext/tk/lib/tkextlib/iwidgets/scopedobject.rb
index bddef50841..056cd85322 100644
--- a/ext/tk/lib/tkextlib/iwidgets/scopedobject.rb
+++ b/ext/tk/lib/tkextlib/iwidgets/scopedobject.rb
@@ -16,7 +16,7 @@ end
class Tk::Iwidgets::Scopedobject
TkCommandNames = ['::iwidgets::scopedobject'.freeze].freeze
WidgetClassName = 'Scopedobject'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
def initialize(obj_name, keys={})
@path = tk_call(self.class::TkCommandNames[0], obj_name, *hash_kv(keys))
diff --git a/ext/tk/lib/tkextlib/iwidgets/scrolledcanvas.rb b/ext/tk/lib/tkextlib/iwidgets/scrolledcanvas.rb
index 42368f5a56..935e04bbcc 100644
--- a/ext/tk/lib/tkextlib/iwidgets/scrolledcanvas.rb
+++ b/ext/tk/lib/tkextlib/iwidgets/scrolledcanvas.rb
@@ -17,7 +17,7 @@ end
class Tk::Iwidgets::Scrolledcanvas
TkCommandNames = ['::iwidgets::scrolledcanvas'.freeze].freeze
WidgetClassName = 'Scrolledcanvas'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
################################
diff --git a/ext/tk/lib/tkextlib/iwidgets/scrolledframe.rb b/ext/tk/lib/tkextlib/iwidgets/scrolledframe.rb
index 8b47460357..7b7b95df1c 100644
--- a/ext/tk/lib/tkextlib/iwidgets/scrolledframe.rb
+++ b/ext/tk/lib/tkextlib/iwidgets/scrolledframe.rb
@@ -16,7 +16,7 @@ end
class Tk::Iwidgets::Scrolledframe
TkCommandNames = ['::iwidgets::scrolledframe'.freeze].freeze
WidgetClassName = 'Scrolledframe'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
def child_site
window(tk_call(@path, 'childsite'))
diff --git a/ext/tk/lib/tkextlib/iwidgets/scrolledhtml.rb b/ext/tk/lib/tkextlib/iwidgets/scrolledhtml.rb
index 9b69ef07fe..dc2966bd48 100644
--- a/ext/tk/lib/tkextlib/iwidgets/scrolledhtml.rb
+++ b/ext/tk/lib/tkextlib/iwidgets/scrolledhtml.rb
@@ -16,7 +16,7 @@ end
class Tk::Iwidgets::Scrolledhtml
TkCommandNames = ['::iwidgets::scrolledhtml'.freeze].freeze
WidgetClassName = 'Scrolledhtml'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
def __boolval_optkeys
super() << 'update'
diff --git a/ext/tk/lib/tkextlib/iwidgets/scrolledlistbox.rb b/ext/tk/lib/tkextlib/iwidgets/scrolledlistbox.rb
index 7e63633a1d..20a4cd1d36 100644
--- a/ext/tk/lib/tkextlib/iwidgets/scrolledlistbox.rb
+++ b/ext/tk/lib/tkextlib/iwidgets/scrolledlistbox.rb
@@ -17,7 +17,7 @@ end
class Tk::Iwidgets::Scrolledlistbox
TkCommandNames = ['::iwidgets::scrolledlistbox'.freeze].freeze
WidgetClassName = 'Scrolledlistbox'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
def __strval_optkeys
super() << 'textbackground'
diff --git a/ext/tk/lib/tkextlib/iwidgets/scrolledtext.rb b/ext/tk/lib/tkextlib/iwidgets/scrolledtext.rb
index 674298ff80..69b7d314fd 100644
--- a/ext/tk/lib/tkextlib/iwidgets/scrolledtext.rb
+++ b/ext/tk/lib/tkextlib/iwidgets/scrolledtext.rb
@@ -17,7 +17,7 @@ end
class Tk::Iwidgets::Scrolledtext
TkCommandNames = ['::iwidgets::scrolledtext'.freeze].freeze
WidgetClassName = 'Scrolledtext'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
def __strval_optkeys
super() << 'textbackground'
@@ -116,6 +116,10 @@ class Tk::Iwidgets::Scrolledtext
get('-displaychars', *index)
end
+ def image_cget_tkstring(index, slot)
+ _fromUTF8(tk_send_without_enc('image', 'cget',
+ _get_eval_enc_str(index), "-#{slot.to_s}"))
+ end
def image_cget_strict(index, slot)
case slot.to_s
when 'text', 'label', 'show', 'data', 'file'
diff --git a/ext/tk/lib/tkextlib/iwidgets/scrolledwidget.rb b/ext/tk/lib/tkextlib/iwidgets/scrolledwidget.rb
index eef093d314..5ecd2d72d2 100644
--- a/ext/tk/lib/tkextlib/iwidgets/scrolledwidget.rb
+++ b/ext/tk/lib/tkextlib/iwidgets/scrolledwidget.rb
@@ -16,5 +16,5 @@ end
class Tk::Iwidgets::Scrolledwidget
TkCommandNames = ['::iwidgets::scrolledwidget'.freeze].freeze
WidgetClassName = 'Scrolledwidget'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
end
diff --git a/ext/tk/lib/tkextlib/iwidgets/selectionbox.rb b/ext/tk/lib/tkextlib/iwidgets/selectionbox.rb
index bf9b5ec30a..eb8fe3ad52 100644
--- a/ext/tk/lib/tkextlib/iwidgets/selectionbox.rb
+++ b/ext/tk/lib/tkextlib/iwidgets/selectionbox.rb
@@ -16,7 +16,7 @@ end
class Tk::Iwidgets::Selectionbox
TkCommandNames = ['::iwidgets::selectionbox'.freeze].freeze
WidgetClassName = 'Selectionbox'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
def __boolval_optkeys
super() << 'itemson' << 'selectionon'
diff --git a/ext/tk/lib/tkextlib/iwidgets/selectiondialog.rb b/ext/tk/lib/tkextlib/iwidgets/selectiondialog.rb
index f772ecf8c2..45aecf3266 100644
--- a/ext/tk/lib/tkextlib/iwidgets/selectiondialog.rb
+++ b/ext/tk/lib/tkextlib/iwidgets/selectiondialog.rb
@@ -16,7 +16,7 @@ end
class Tk::Iwidgets::Selectiondialog
TkCommandNames = ['::iwidgets::selectiondialog'.freeze].freeze
WidgetClassName = 'Selectiondialog'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
def child_site
window(tk_call(@path, 'childsite'))
diff --git a/ext/tk/lib/tkextlib/iwidgets/shell.rb b/ext/tk/lib/tkextlib/iwidgets/shell.rb
index dabf2e6f25..c560e3ac29 100644
--- a/ext/tk/lib/tkextlib/iwidgets/shell.rb
+++ b/ext/tk/lib/tkextlib/iwidgets/shell.rb
@@ -16,7 +16,7 @@ end
class Tk::Iwidgets::Shell
TkCommandNames = ['::iwidgets::shell'.freeze].freeze
WidgetClassName = 'Shell'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
def activate
tk_call(@path, 'activate') # may return val of deactibate method
diff --git a/ext/tk/lib/tkextlib/iwidgets/spindate.rb b/ext/tk/lib/tkextlib/iwidgets/spindate.rb
index 2c98eb4629..b3de9ed989 100644
--- a/ext/tk/lib/tkextlib/iwidgets/spindate.rb
+++ b/ext/tk/lib/tkextlib/iwidgets/spindate.rb
@@ -16,7 +16,7 @@ end
class Tk::Iwidgets::Spindate
TkCommandNames = ['::iwidgets::spindate'.freeze].freeze
WidgetClassName = 'Spindate'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
def __boolval_optkeys
super() << 'dayon' << 'monthon' << 'yearon'
diff --git a/ext/tk/lib/tkextlib/iwidgets/spinint.rb b/ext/tk/lib/tkextlib/iwidgets/spinint.rb
index 5eb944d081..bede3bb1bf 100644
--- a/ext/tk/lib/tkextlib/iwidgets/spinint.rb
+++ b/ext/tk/lib/tkextlib/iwidgets/spinint.rb
@@ -16,7 +16,7 @@ end
class Tk::Iwidgets::Spinint
TkCommandNames = ['::iwidgets::spinint'.freeze].freeze
WidgetClassName = 'Spinint'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
def __boolval_optkeys
super() << 'wrap'
diff --git a/ext/tk/lib/tkextlib/iwidgets/spinner.rb b/ext/tk/lib/tkextlib/iwidgets/spinner.rb
index f2d9caae21..d960996e22 100644
--- a/ext/tk/lib/tkextlib/iwidgets/spinner.rb
+++ b/ext/tk/lib/tkextlib/iwidgets/spinner.rb
@@ -16,7 +16,7 @@ end
class Tk::Iwidgets::Spinner
TkCommandNames = ['::iwidgets::spinner'.freeze].freeze
WidgetClassName = 'Spinner'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
####################################
diff --git a/ext/tk/lib/tkextlib/iwidgets/spintime.rb b/ext/tk/lib/tkextlib/iwidgets/spintime.rb
index 0ff683ab56..20f8197a09 100644
--- a/ext/tk/lib/tkextlib/iwidgets/spintime.rb
+++ b/ext/tk/lib/tkextlib/iwidgets/spintime.rb
@@ -16,7 +16,7 @@ end
class Tk::Iwidgets::Spintime
TkCommandNames = ['::iwidgets::spintime'.freeze].freeze
WidgetClassName = 'Spintime'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
def __boolval_optkeys
super() << 'houron' << 'militaryon' << 'minutelabel' << 'secondlabel'
diff --git a/ext/tk/lib/tkextlib/iwidgets/tabnotebook.rb b/ext/tk/lib/tkextlib/iwidgets/tabnotebook.rb
index dbb90e5102..f56efa9aaf 100644
--- a/ext/tk/lib/tkextlib/iwidgets/tabnotebook.rb
+++ b/ext/tk/lib/tkextlib/iwidgets/tabnotebook.rb
@@ -16,7 +16,7 @@ end
class Tk::Iwidgets::Tabnotebook
TkCommandNames = ['::iwidgets::tabnotebook'.freeze].freeze
WidgetClassName = 'Tabnotebook'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
####################################
@@ -46,13 +46,14 @@ class Tk::Iwidgets::Tabnotebook
end
end
+ alias pagecget_tkstring itemcget_tkstring
alias pagecget itemcget
alias pagecget_strict itemcget_strict
alias pageconfigure itemconfigure
alias pageconfiginfo itemconfiginfo
alias current_pageconfiginfo current_itemconfiginfo
- private :itemcget, :itemcget_strict
+ private :itemcget_tkstring, :itemcget, :itemcget_strict
private :itemconfigure, :itemconfiginfo, :current_itemconfiginfo
####################################
diff --git a/ext/tk/lib/tkextlib/iwidgets/tabset.rb b/ext/tk/lib/tkextlib/iwidgets/tabset.rb
index c1a1b29268..501ead4964 100644
--- a/ext/tk/lib/tkextlib/iwidgets/tabset.rb
+++ b/ext/tk/lib/tkextlib/iwidgets/tabset.rb
@@ -16,7 +16,7 @@ end
class Tk::Iwidgets::Tabset
TkCommandNames = ['::iwidgets::tabset'.freeze].freeze
WidgetClassName = 'Tabset'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
####################################
@@ -41,13 +41,14 @@ class Tk::Iwidgets::Tabset
end
end
+ alias tabcget_tkstring itemcget_tkstring
alias tabcget itemcget
alias tabcget_strict itemcget_strict
alias tabconfigure itemconfigure
alias tabconfiginfo itemconfiginfo
alias current_tabconfiginfo current_itemconfiginfo
- private :itemcget, :itemcget_strict
+ private :itemcget_tkstring, :itemcget, :itemcget_strict
private :itemconfigure, :itemconfiginfo, :current_itemconfiginfo
####################################
diff --git a/ext/tk/lib/tkextlib/iwidgets/timeentry.rb b/ext/tk/lib/tkextlib/iwidgets/timeentry.rb
index 588da77dc8..b0afb3afd9 100644
--- a/ext/tk/lib/tkextlib/iwidgets/timeentry.rb
+++ b/ext/tk/lib/tkextlib/iwidgets/timeentry.rb
@@ -16,7 +16,7 @@ end
class Tk::Iwidgets::Timeentry
TkCommandNames = ['::iwidgets::timeentry'.freeze].freeze
WidgetClassName = 'Timeentry'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
def __strval_optkeys
super() << 'closetext'
diff --git a/ext/tk/lib/tkextlib/iwidgets/timefield.rb b/ext/tk/lib/tkextlib/iwidgets/timefield.rb
index 28e1504797..c34281d4ff 100644
--- a/ext/tk/lib/tkextlib/iwidgets/timefield.rb
+++ b/ext/tk/lib/tkextlib/iwidgets/timefield.rb
@@ -16,7 +16,7 @@ end
class Tk::Iwidgets::Timefield
TkCommandNames = ['::iwidgets::timefield'.freeze].freeze
WidgetClassName = 'Timefield'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
def __boolval_optkeys
super() << 'gmt'
diff --git a/ext/tk/lib/tkextlib/iwidgets/toolbar.rb b/ext/tk/lib/tkextlib/iwidgets/toolbar.rb
index c9f1753c70..5b474c3816 100644
--- a/ext/tk/lib/tkextlib/iwidgets/toolbar.rb
+++ b/ext/tk/lib/tkextlib/iwidgets/toolbar.rb
@@ -16,7 +16,7 @@ end
class Tk::Iwidgets::Toolbar
TkCommandNames = ['::iwidgets::toolbar'.freeze].freeze
WidgetClassName = 'Toolbar'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
def __tkvariable_optkeys
super() << 'helpvariable'
diff --git a/ext/tk/lib/tkextlib/iwidgets/watch.rb b/ext/tk/lib/tkextlib/iwidgets/watch.rb
index dd96d4f953..f10ec54cb2 100644
--- a/ext/tk/lib/tkextlib/iwidgets/watch.rb
+++ b/ext/tk/lib/tkextlib/iwidgets/watch.rb
@@ -16,7 +16,7 @@ end
class Tk::Iwidgets::Watch
TkCommandNames = ['::iwidgets::watch'.freeze].freeze
WidgetClassName = 'Watch'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
def __boolval_optkeys
super() << 'showampm'
diff --git a/ext/tk/lib/tkextlib/tcllib.rb b/ext/tk/lib/tkextlib/tcllib.rb
index c6138f4275..2831989759 100644
--- a/ext/tk/lib/tkextlib/tcllib.rb
+++ b/ext/tk/lib/tkextlib/tcllib.rb
@@ -42,19 +42,25 @@ module Tk
module Tcllib
TkComm::TkExtlibAutoloadModule.unshift(self)
+ # package:: autoscroll
+ autoload :Autoscroll, 'tkextlib/tcllib/autoscroll'
+
# package:: ctext
autoload :CText, 'tkextlib/tcllib/ctext'
+ # package:: cursor
+ autoload :Cursor, 'tkextlib/tcllib/cursor'
+
+ # package:: datefield
+ autoload :Datefield, 'tkextlib/tcllib/datefield'
+ autoload :DateField, 'tkextlib/tcllib/datefield'
+
# package:: getstring
autoload :GetString_Dialog, 'tkextlib/tcllib/getstring'
# package:: history
autoload :History, 'tkextlib/tcllib/history'
- # package:: datefield
- autoload :Datefield, 'tkextlib/tcllib/datefield'
- autoload :DateField, 'tkextlib/tcllib/datefield'
-
# package:: ico
autoload :ICO, 'tkextlib/tcllib/ico'
@@ -62,12 +68,21 @@ module Tk
autoload :IP_Entry, 'tkextlib/tcllib/ip_entry'
autoload :IPEntry, 'tkextlib/tcllib/ip_entry'
- # package:: swaplist
- autoload :Swaplist_Dialog, 'tkextlib/tcllib/swaplist'
+ # package:: khim
+ autoload :KHIM, 'tkextlib/tcllib/khim'
+
+ # package:: ntext
+ autoload :Ntext, 'tkextlib/tcllib/ntext'
# package:: Plotchart
autoload :Plotchart, 'tkextlib/tcllib/plotchart'
+ # package:: style
+ autoload :Style, 'tkextlib/tcllib/style'
+
+ # package:: swaplist
+ autoload :Swaplist_Dialog, 'tkextlib/tcllib/swaplist'
+
# package:: tablelist
autoload :Tablelist, 'tkextlib/tcllib/tablelist'
autoload :TableList, 'tkextlib/tcllib/tablelist'
@@ -81,7 +96,7 @@ module Tk
autoload :Tooltip, 'tkextlib/tcllib/tooltip'
# package:: widget
- autoload :Wdiget, 'tkextlib/tcllib/widget'
+ autoload :Widget, 'tkextlib/tcllib/widget'
end
end
diff --git a/ext/tk/lib/tkextlib/tcllib/README b/ext/tk/lib/tkextlib/tcllib/README
index 953239befa..441918adce 100644
--- a/ext/tk/lib/tkextlib/tcllib/README
+++ b/ext/tk/lib/tkextlib/tcllib/README
@@ -4,14 +4,14 @@
Tcllib includes many utilities. But currently, supports TKLib part
only (see the following 'tcllib contents').
-If you request to support others, please send your message to one of
-ruby-talk/ruby-list/ruby-dev/ruby-ext mailing lists.
+If you request to support others, please send your message to one of
+ruby-talk/ruby-list/ruby-dev/ruby-ext mailing lists.
-----<from "What is tcllib?">----------------------------
-Tcllib is a collection of utility modules for Tcl. These modules provide
-a wide variety of functionality, from implementations of standard data
-structures to implementations of common networking protocols. The intent
-is to collect commonly used function into a single library, which users
+Tcllib is a collection of utility modules for Tcl. These modules provide
+a wide variety of functionality, from implementations of standard data
+structures to implementations of common networking protocols. The intent
+is to collect commonly used function into a single library, which users
can rely on to be available and stable.
---------------------------------------------------------
@@ -124,7 +124,7 @@ Grammars and finite automata
TKLib
* Plotchart - Simple plotting and charting package
- * autoscroll - Provides for a scrollbar to automatically mapped and
+ * autoscroll - Provides for a scrollbar to automatically mapped and
unmapped as needed
* ctext - An extended text widget with customizable Syntax highlighting
* cursor - Procedures to handle CURSOR data
diff --git a/ext/tk/lib/tkextlib/tcllib/calendar.rb b/ext/tk/lib/tkextlib/tcllib/calendar.rb
new file mode 100644
index 0000000000..b6843df176
--- /dev/null
+++ b/ext/tk/lib/tkextlib/tcllib/calendar.rb
@@ -0,0 +1,55 @@
+#
+# tkextlib/tcllib/calendar.rb
+# by Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)
+#
+# * Part of tcllib extension
+# * calendar widget
+#
+
+require 'tk'
+require 'tkextlib/tcllib.rb'
+
+# TkPackage.require('widget::calendar', '0.9')
+TkPackage.require('widget::calendar')
+
+module Tk::Tcllib
+ module Widget
+ class Calendar < TkCanvas
+ PACKAGE_NAME = 'widget::calendar'.freeze
+ def self.package_name
+ PACKAGE_NAME
+ end
+
+ def self.package_version
+ begin
+ TkPackage.require('widget::calendar')
+ rescue
+ ''
+ end
+ end
+ end
+ end
+end
+
+class Tk::Tcllib::Widget::Calendar
+ TkCommandNames = ['::widget::calendar'.freeze].freeze
+
+ def __boolval_optkeys
+ super() << 'showpast'
+ end
+ private :__boolval_optkeys
+
+ def create_self(keys)
+ if keys and keys != None
+ tk_call_without_enc(self.class::TkCommandNames[0], @path,
+ *hash_kv(keys, true))
+ else
+ tk_call_without_enc(self.class::TkCommandNames[0], @path)
+ end
+ end
+ private :create_self
+
+ def get(what = 'all')
+ tk_send('get', what)
+ end
+end
diff --git a/ext/tk/lib/tkextlib/tcllib/canvas_sqmap.rb b/ext/tk/lib/tkextlib/tcllib/canvas_sqmap.rb
new file mode 100644
index 0000000000..ba87cd3aae
--- /dev/null
+++ b/ext/tk/lib/tkextlib/tcllib/canvas_sqmap.rb
@@ -0,0 +1,36 @@
+#
+# tkextlib/tcllib/canvas.rb
+# by Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)
+#
+# * Part of tcllib extension
+# *
+#
+
+require 'tk'
+require 'tkextlib/tcllib.rb'
+
+# TkPackage.require('widget::canvas_sqmap', '0.2')
+TkPackage.require('widget::canvas_sqmap')
+
+module Tk::Tcllib
+ module Widget
+ class Canvas_Sqmap < Canvas
+ TkCommandNames = ['::widget::canvas_sqmap'.freeze].freeze
+
+ def image_set(cell, img)
+ tk_send('image', 'set', cell, img)
+ self
+ end
+
+ def image_unset(cell)
+ tk_send('image', 'unset', cell)
+ self
+ end
+
+ def flush
+ tk_send('flush')
+ self
+ end
+ end
+ end
+end
diff --git a/ext/tk/lib/tkextlib/tcllib/canvas_zoom.rb b/ext/tk/lib/tkextlib/tcllib/canvas_zoom.rb
new file mode 100644
index 0000000000..f4ffb48ece
--- /dev/null
+++ b/ext/tk/lib/tkextlib/tcllib/canvas_zoom.rb
@@ -0,0 +1,21 @@
+#
+# tkextlib/tcllib/canvas.rb
+# by Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)
+#
+# * Part of tcllib extension
+# *
+#
+
+require 'tk'
+require 'tkextlib/tcllib.rb'
+
+# TkPackage.require('widget::canvas_zoom', '0.1')
+TkPackage.require('widget::canvas_zoom')
+
+module Tk::Tcllib
+ module Widget
+ class Canvas_Zoom < Canvas
+ TkCommandNames = ['::widget::canvas_zoom'.freeze].freeze
+ end
+ end
+end
diff --git a/ext/tk/lib/tkextlib/tcllib/chatwidget.rb b/ext/tk/lib/tkextlib/tcllib/chatwidget.rb
new file mode 100644
index 0000000000..ddb0340c31
--- /dev/null
+++ b/ext/tk/lib/tkextlib/tcllib/chatwidget.rb
@@ -0,0 +1,151 @@
+#
+# tkextlib/tcllib/chatwidget.rb
+# by Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)
+#
+# * Part of tcllib extension
+# * chatwidget - Provides a multi-paned view suitable for display of
+# chat room or irc channel information
+#
+
+require 'tk'
+require 'tkextlib/tcllib.rb'
+
+# TkPackage.require('chatwidget', '1.1.0')
+TkPackage.require('chatwidget')
+
+module Tk::Tcllib
+ class ChatWidget < TkText
+ PACKAGE_NAME = 'chatwidget'.freeze
+ def self.package_name
+ PACKAGE_NAME
+ end
+
+ def self.package_version
+ begin
+ TkPackage.require('chatwidget')
+ rescue
+ ''
+ end
+ end
+ end
+end
+
+class Tk::Tcllib::ChatWidget
+ TkCommandNames = ['::chatwidget::chatwidget'.freeze].freeze
+
+ def show_topic
+ tk_send_without_enc('topic', 'show')
+ self
+ end
+
+ def hide_topic
+ tk_send_without_enc('topic', 'hide')
+ self
+ end
+
+ def set_topic(topic)
+ tk_send('topic', 'set', topic)
+ end
+
+ def list_name
+ tk_split_simplelist(tk_send('name', 'list'))
+ end
+
+ def list_name_full
+ tk_split_simplelist(tk_send('name', 'list')).map{|lst|
+ nick, *opts = tk_split_simplelist(lst)
+ h_opt = {}
+ opts.slice(2){|k, v| h_opt[k[1..-1]] = tk_tcl2ruby(v)}
+ [nick, h_opt]
+ }
+ end
+
+ def add_name(nick, opts={})
+ tk_send('name', 'add', nick, *(hash_kv(opts)))
+ end
+
+ def delete_name(nick)
+ tk_send('name', 'delete', nick)
+ end
+
+ def get_name(nick)
+ lst = tk_send('name', 'get', nick)
+ return nil if lst.empty?
+ nick, *opts = tk_split_simplelist(lst)
+ h_opt = {}
+ opts.slice(2){|k, v| h_opt[k[1..-1]] = tk_tcl2ruby(v)}
+ [nick, h_opt]
+ end
+
+ def message(msg, opts={})
+ tk_send('message', msg, *(hash_kv(opts)))
+ self
+ end
+
+ def _parse_hook_list(lst)
+ tk_split_simplelist(lst).map{|hook|
+ cmd, prior = tk_split_simplelist(hook)
+ [procedure(cmd), number(prior)]
+ }
+ end
+ private :_parse_hook_list
+
+ def hook_add(type, *args, &blk) # args -> [prior, cmd], [prior], [cmd]
+ #type -> 'message', 'post', 'names_group', 'names_nick', 'chatstate', 'url'
+
+ if prior = args.shift
+ if !prior.kind_of?(Numeric)
+ cmd = prior
+ if (prior = args.shift) && !prior.kind_of?(Numeric) # error
+ args.unshift(prior)
+ end
+ args.unshift(cmd)
+ end
+ prior ||= 50 # default priority
+ end
+
+ cmd = args.shift || blk
+
+ fail ArgumentError, "invalid arguments" unless args.empty?
+ fail ArgumentError, "no callback is given" unless cmd
+
+ _parse_hook_list(tk_send('hook', 'add', type, cmd, prior))
+ end
+
+ def hook_remove(type, cmd)
+ #type -> 'message', 'post', 'names_group', 'names_nick', 'chatstate', 'url'
+ _parse_hook_list(tk_send('hook', 'remove', type, cmd))
+ end
+
+ def hook_run(type, *cmd_args)
+ #type -> 'message', 'post', 'names_group', 'names_nick', 'chatstate', 'url'
+ tk_send('hook', 'run', type, *cmd_args)
+ end
+
+ def hook_list(type)
+ #type -> 'message', 'post', 'names_group', 'names_nick', 'chatstate', 'url'
+ _parse_hook_list(tk_send('hook', 'list', type))
+ end
+
+ def show_names
+ tk_send('names', 'show')
+ self
+ end
+
+ def hide_names
+ tk_send('names', 'hide')
+ self
+ end
+
+ def names_widget
+ window(tk_send('names'))
+ end
+
+ def entry_widget
+ window(tk_send('entry'))
+ end
+
+ def chat_widget
+ window(tk_send('chat'))
+ end
+end
diff --git a/ext/tk/lib/tkextlib/tcllib/crosshair.rb b/ext/tk/lib/tkextlib/tcllib/crosshair.rb
new file mode 100644
index 0000000000..49b5361e4f
--- /dev/null
+++ b/ext/tk/lib/tkextlib/tcllib/crosshair.rb
@@ -0,0 +1,117 @@
+#
+# tkextlib/tcllib/crosshair.rb
+# by Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)
+#
+# * Part of tcllib extension
+# * Crosshairs for Tk canvas
+#
+
+require 'tk'
+require 'tkextlib/tcllib.rb'
+
+# TkPackage.require('crosshair', '1.0.2')
+TkPackage.require('crosshair')
+
+module Tk::Tcllib
+ module Crosshair
+ PACKAGE_NAME = 'crosshair'.freeze
+ def self.package_name
+ PACKAGE_NAME
+ end
+
+ def self.package_version
+ begin
+ TkPackage.require('crosshair')
+ rescue
+ ''
+ end
+ end
+ end
+end
+
+module Tk::Tcllib::Crosshair
+ include TkCore
+ TkCommandNames = ['::crosshair::crosshair'.freeze].freeze
+
+ def self.crosshair(w, keys={})
+ Tk.tk_call('::crosshair::crosshair', w, *hash_kv(keys))
+ w
+ end
+ def self.on(w, keys={})
+ self.crosshair(w, keys)
+ end
+
+ def self.off(w)
+ Tk.tk_call('::crosshair::off', w)
+ w
+ end
+
+ def self.track_on(w, &b)
+ Tk.tk_call('::crosshair::track_on', w, b)
+ w
+ end
+
+ def self.track_off(w)
+ Tk.tk_call('::crosshair::track_off', w)
+ w
+ end
+end
+
+class << Tk::Tcllib::Crosshair
+ include TkComm
+ include TkCanvasItemConfig
+
+ def __item_methodcall_optkeys(id)
+ {}
+ end
+ private :__item_methodcall_optkeys
+
+ def __item_config_cmd(id)
+ # maybe need to override
+ ['::crosshair::configure', id]
+ end
+ private :__item_config_cmd
+
+ private :itemcget_tkstring, :itemcget, :itemcget_strict
+ private :itemconfigure, :itemconfiginfo, :current_itemconfiginfo
+
+ def confugure(w, slot, value=None)
+ itemconfigure(w, slot, value)
+ end
+ def confuginfo(w, slot = nil)
+ itemconfiginfo(w, slot)
+ end
+ def current_configinfo(w, slot = nil)
+ current_itemconfiginfo(w, slot)
+ end
+ def cget(w, slot)
+ current_itemconfiginfo(w, slot).values[0]
+ end
+end
+
+module Tk::Tcllib::Crosshair
+ def crosshair_on(keys={})
+ Tk::Tcllib::Crosshair.on(self, keys)
+ end
+ def crosshair_off
+ Tk::Tcllib::Crosshair.off(self)
+ end
+ def crosshair_track_on(&b)
+ Tk::Tcllib::Crosshair.track_on(self, &b)
+ end
+ def crosshair_track_off
+ Tk::Tcllib::Crosshair.track_off(self)
+ end
+ def crosshair_configure(*args)
+ Tk::Tcllib::Crosshair.configure(self, *args)
+ end
+ def crosshair_configinfo(slot = nil)
+ Tk::Tcllib::Crosshair.configinfo(self, slot)
+ end
+ def crosshair_current_configinfo(slot = nil)
+ Tk::Tcllib::Crosshair.current_configinfo(self, slot)
+ end
+ def crosshair_cget(slot)
+ Tk::Tcllib::Crosshair.cget(self, slot)
+ end
+end
diff --git a/ext/tk/lib/tkextlib/tcllib/ctext.rb b/ext/tk/lib/tkextlib/tcllib/ctext.rb
index 21d6438b48..308847c233 100644
--- a/ext/tk/lib/tkextlib/tcllib/ctext.rb
+++ b/ext/tk/lib/tkextlib/tcllib/ctext.rb
@@ -35,7 +35,7 @@ end
class Tk::Tcllib::CText
TkCommandNames = ['ctext'.freeze].freeze
WidgetClassName = 'Ctext'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
def create_self(keys)
if keys and keys != None
diff --git a/ext/tk/lib/tkextlib/tcllib/dateentry.rb b/ext/tk/lib/tkextlib/tcllib/dateentry.rb
new file mode 100644
index 0000000000..77038d95bc
--- /dev/null
+++ b/ext/tk/lib/tkextlib/tcllib/dateentry.rb
@@ -0,0 +1,62 @@
+#
+# tkextlib/tcllib/dateentry.rb
+# by Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)
+#
+# * Part of tcllib extension
+# * dateentry widget
+#
+
+require 'tk'
+require 'tkextlib/tcllib.rb'
+
+# TkPackage.require('widget::dateentry', '0.91')
+TkPackage.require('widget::dateentry')
+
+module Tk::Tcllib
+ module Widget
+ class Dateentry < Tk::Tile::TEntry
+ PACKAGE_NAME = 'widget::dateentry'.freeze
+ def self.package_name
+ PACKAGE_NAME
+ end
+
+ def self.package_version
+ begin
+ TkPackage.require('widget::dateentry')
+ rescue
+ ''
+ end
+ end
+ end
+ DateEntry = Dateentry
+ end
+end
+
+class Tk::Tcllib::Widget::Dateentry
+ TkCommandNames = ['::widget::dateentry'.freeze].freeze
+
+ def __strval_optkeys
+ super() << ['dateformat']
+ end
+ private :__strval_optkeys
+
+ def create_self(keys)
+ if keys and keys != None
+ tk_call_without_enc(self.class::TkCommandNames[0], @path,
+ *hash_kv(keys, true))
+ else
+ tk_call_without_enc(self.class::TkCommandNames[0], @path)
+ end
+ end
+ private :create_self
+
+ def post
+ tk_send('post')
+ self
+ end
+
+ def unpost
+ tk_send('unpost')
+ self
+ end
+end
diff --git a/ext/tk/lib/tkextlib/tcllib/diagrams.rb b/ext/tk/lib/tkextlib/tcllib/diagrams.rb
new file mode 100644
index 0000000000..d24ba9d232
--- /dev/null
+++ b/ext/tk/lib/tkextlib/tcllib/diagrams.rb
@@ -0,0 +1,224 @@
+#
+# tkextlib/tcllib/diagrams.rb
+# by Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)
+#
+# * Part of tcllib extension
+# * Draw diagrams
+#
+
+require 'tk'
+require 'tkextlib/tcllib.rb'
+
+# TkPackage.require('Diagrams', '0.3')
+TkPackage.require('Diagrams')
+
+module Tk::Tcllib
+ module Diagrams
+ PACKAGE_NAME = 'Diagrams'.freeze
+ def self.package_name
+ PACKAGE_NAME
+ end
+
+ def self.package_version
+ begin
+ TkPackage.require('Diagrams')
+ rescue
+ ''
+ end
+ end
+ end
+end
+
+class << Tk::Tcllib::Diagrams
+ include TkCore
+
+ def drawin(canvas)
+ tk_call('::Diagrams::drawin', canvas)
+ canvas
+ end
+ alias draw_in drawin
+
+ def saveps(filename)
+ tk_call('::Diagrams::saveps', filename)
+ filename
+ end
+ alias save_ps saveps
+
+ def direction(dir)
+ tk_call('::Diagrams::direction', dir)
+ dir
+ end
+
+ def currentpos(pos)
+ list(tk_call('::Diagrams::currentpos', pos))
+ end
+ alias current_pos currentpos
+ alias currentpos= currentpos
+ alias current_pos= currentpos
+
+ def getpos(anchor, obj)
+ list(tk_call('::Diagrams::getpos', anchor, obj))
+ end
+ alias get_pos getpos
+
+ def position(x, y)
+ list(tk_call('::Diagrams::position', x, y))
+ end
+
+ def box(text, width=nil, height=nil)
+ if width || height
+ width = '' unless width
+ height = '' unless height
+ list(tk_call('::Diagrams::box', text, width, height))
+ else
+ list(tk_call('::Diagrams::box', text))
+ end
+ end
+
+ def plaintext(text, width=nil, height=nil)
+ if width || height
+ width = '' unless width
+ height = '' unless height
+ list(tk_call('::Diagrams::plaintext', text, width, height))
+ else
+ list(tk_call('::Diagrams::plaintext', text))
+ end
+ end
+
+ def circle(text, radius=nil)
+ if radius
+ list(tk_call('::Diagrams::circle', text, radius))
+ else
+ list(tk_call('::Diagrams::circle', text))
+ end
+ end
+
+ def slanted(text, width=nil, height=nil, angle=nil)
+ if width || height || angle
+ width = '' unless width
+ height = '' unless height
+ if angle
+ list(tk_call('::Diagrams::slanted', text, width, height, angle))
+ else
+ list(tk_call('::Diagrams::slanted', text, width, height))
+ end
+ else
+ list(tk_call('::Diagrams::slanted', text))
+ end
+ end
+
+ def diamond(text, width=nil, height=nil)
+ if width || height
+ width = '' unless width
+ height = '' unless height
+ list(tk_call('::Diagrams::diamond', text, width, height))
+ else
+ list(tk_call('::Diagrams::diamond', text))
+ end
+ end
+
+ def drum(text, width=nil, height=nil)
+ if width || height
+ width = '' unless width
+ height = '' unless height
+ list(tk_call('::Diagrams::drum', text, width, height))
+ else
+ list(tk_call('::Diagrams::drum', text))
+ end
+ end
+
+ def arrow(text=nil, length=nil, head=nil)
+ if length || head
+ text = '' unless text
+ length = '' unless length
+ list(tk_call('::Diagrams::arrow', text, length, head))
+ else
+ if text
+ list(tk_call('::Diagrams::arrow', text))
+ else
+ list(tk_call('::Diagrams::arrow'))
+ end
+ end
+ end
+
+ def line(*args)
+ ary = []
+ args.each{|arg|
+ if arg.kind_of?(Array) && arg.length == 2 # [length, angle]
+ ary.concat arg
+ else # ["POSITION", x, y] or length or angle
+ ary << arg
+ end
+ }
+ list(tk_call('::Diagrams::line', *ary))
+ end
+
+ def bracket(dir, dist, from_pos, to_pos)
+ list(tk_call('::Diagrams::bracket', dir, dist, from_pos, to_pos))
+ end
+
+ def attach(anchor=None)
+ tk_call('::Diagrams::attach', anchor)
+ end
+
+ def color(name=None)
+ tk_call('::Diagrams::color', name)
+ end
+
+ def fillcolor(name=None)
+ tk_call('::Diagrams::fillcolor', name)
+ end
+
+ def textcolor(name=None)
+ tk_call('::Diagrams::textcolor', name)
+ end
+
+ def usegap(mode=None)
+ bool(tk_call('::Diagrams::usegap', mode))
+ end
+ alias use_gap usegap
+
+ def xgap(val=None)
+ number(tk_call('::Diagrams::xgap', val))
+ end
+
+ def ygap(val=None)
+ number(tk_call('::Diagrams::ygap', val))
+ end
+
+ def textfont(fnt=None)
+ tk_call('::Diagrams::textfont', fnt)
+ end
+
+ def linewidth(pixels=None)
+ number(tk_call('::Diagrams::linewidth', pixels))
+ end
+
+ def linestyle(style=None)
+ tk_call('::Diagrams::linestyle', style)
+ end
+
+ def pushstate
+ tk_call('::Diagrams::pushstate')
+ end
+ alias push_state pushstate
+
+ def popstate
+ tk_call('::Diagrams::popstate')
+ end
+ alias pop_state popstate
+
+ def computepos
+ list(tk_call('::Diagrams::computepos'))
+ end
+ alias compute_pos computepos
+
+ def boxcoords(x1, y1, x2, y2)
+ list(tk_call('::Diagrams::boxcoords', x1, y1, x2, y2))
+ end
+
+ def moveobject(obj)
+ list(tk_call('::Diagrams::moveobject', obj))
+ end
+ alias move_object moveobject
+end
diff --git a/ext/tk/lib/tkextlib/tcllib/getstring.rb b/ext/tk/lib/tkextlib/tcllib/getstring.rb
index ab45c9b1ea..48711d3b66 100644
--- a/ext/tk/lib/tkextlib/tcllib/getstring.rb
+++ b/ext/tk/lib/tkextlib/tcllib/getstring.rb
@@ -34,7 +34,7 @@ end
class Tk::Tcllib::GetString_Dialog
TkCommandNames = ['::getstring::tk_getString'.freeze].freeze
WidgetClassName = 'TkSDialog'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
def self.show(*args)
dialog = self.new(*args)
diff --git a/ext/tk/lib/tkextlib/tcllib/ico.rb b/ext/tk/lib/tkextlib/tcllib/ico.rb
index 538f7b5408..36a32c6b09 100644
--- a/ext/tk/lib/tkextlib/tcllib/ico.rb
+++ b/ext/tk/lib/tkextlib/tcllib/ico.rb
@@ -8,7 +8,7 @@
require 'tk'
require 'tk/image'
-require 'tkextlib/tcllib.rb'
+#require 'tkextlib/tcllib.rb'
# TkPackage.require('ico', '0.3')
TkPackage.require('ico')
@@ -38,9 +38,39 @@ class Tk::Tcllib::ICO
*hash_kv(keys, true)))
end
+ def self.icons(file, keys=nil)
+ tk_split_simplelist(tk_call_without_enc('::ico::icons', file,
+ *hash_kv(keys, true))).map{|elem|
+ num_or_str(elem)
+ }
+ end
+
+ def self.get_members(file, name, keys=nil)
+ tk_split_simplelist(tk_call_without_enc('::ico::getMembers', file, name,
+ *hash_kv(keys, true))).map{|elem|
+ name, width, height, bpp = tk_split_simplelist(elem)
+ [name, number(width), number(height), number(bpp)]
+ }
+ end
+
def self.get(file, index, keys=nil)
tk_call_without_enc('::ico::getIcon', file, index, *hash_kv(keys, true))
end
+ def self.get_icon(*args)
+ get(*args)
+ end
+
+ def self.get_by_name(file, name, keys=nil)
+ tk_call_without_enc('::ico::getIconByName', file, name,
+ *hash_kv(keys, true))
+ end
+ def self.get_icon_by_name(*args)
+ get_by_name(*args)
+ end
+
+ def self.get_fileicon(file, keys=nil)
+ tk_call_without_enc('::ico::getFileIcon', file, *hash_kv(keys, true))
+ end
def self.get_image(file, index, keys={})
keys = _symbolkey2str(keys)
diff --git a/ext/tk/lib/tkextlib/tcllib/ip_entry.rb b/ext/tk/lib/tkextlib/tcllib/ip_entry.rb
index a8a33f1cad..4878cc3c23 100644
--- a/ext/tk/lib/tkextlib/tcllib/ip_entry.rb
+++ b/ext/tk/lib/tkextlib/tcllib/ip_entry.rb
@@ -33,13 +33,18 @@ module Tk
end
end
IPEntry = IP_Entry
+
+ class IP_Entry6 < IP_Entry
+ end
+ IPEntry6 = IP_Entry6
+ IP6_Entry = IP_Entry6
end
end
class Tk::Tcllib::IP_Entry
TkCommandNames = ['::ipentry::ipentry'.freeze].freeze
WidgetClassName = 'IPEntry'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
def create_self(keys)
if keys and keys != None
@@ -64,3 +69,7 @@ class Tk::Tcllib::IP_Entry
tk_send_without_enc('insert', array2tk_list(ip.flatten))
end
end
+
+class Tk::Tcllib::IP_Entry6 < Tk::Tcllib::IP_Entry
+ TkCommandNames = ['::ipentry::ipentry6'.freeze].freeze
+end
diff --git a/ext/tk/lib/tkextlib/tcllib/khim.rb b/ext/tk/lib/tkextlib/tcllib/khim.rb
new file mode 100644
index 0000000000..5dc2130b35
--- /dev/null
+++ b/ext/tk/lib/tkextlib/tcllib/khim.rb
@@ -0,0 +1,68 @@
+#
+# tkextlib/tcllib/khim.rb
+# by Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)
+#
+# * Part of tcllib extension
+# * Kevin's Hacky Input Method
+#
+
+require 'tk'
+require 'tkextlib/tcllib.rb'
+
+# TkPackage.require('khim', '1.0')
+TkPackage.require('khim')
+
+module Tk::Tcllib
+ class KHIM < TkToplevel
+ PACKAGE_NAME = 'khim'.freeze
+ def self.package_name
+ PACKAGE_NAME
+ end
+
+ def self.package_version
+ begin
+ TkPackage.require('khim')
+ rescue
+ ''
+ end
+ end
+ end
+end
+
+class Tk::Tcllib::KHIM
+ TkCommandNames = ['::khim::getOptions'.freeze].freeze
+
+ def self.get_options(parent='')
+ path = parent + '.tcllib_widget_khim_dialog'
+ self.new(:widgetname => path)
+ end
+
+ def self.get_config #=> cmd_string
+ Tk.tk_call_without_enc('::khim::getConfig')
+ end
+
+ def self.set_config(*args)
+ if args.length == 1
+ # cmd_string generated by
+ #Tk.ip_eval_without_enc(cmd_string)
+ Tk.ip_eval(cmd_string)
+ else
+ # args for setConfig command
+ #Tk.tk_call_without_enc('::khim::setConfig', *args)
+ Tk.tk_call('::khim::setConfig', *args)
+ end
+ end
+
+ def self.showHelp
+ Tk::Tcllib::KHIM::Help.new
+ end
+
+ def create_self(keys=None)
+ @db_class = @classname = nil
+ super(None) # ignore keys
+ end
+end
+
+class Tk::Tcllib::KHIM::Help < TkToplevel
+ TkCommandNames = ['::khim::showHelp'.freeze].freeze
+end
diff --git a/ext/tk/lib/tkextlib/tcllib/menuentry.rb b/ext/tk/lib/tkextlib/tcllib/menuentry.rb
new file mode 100644
index 0000000000..f1eb2f295c
--- /dev/null
+++ b/ext/tk/lib/tkextlib/tcllib/menuentry.rb
@@ -0,0 +1,47 @@
+#
+# tkextlib/tcllib/menuentry.rb
+# by Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)
+#
+# * Part of tcllib extension
+# * menuentry widget
+#
+
+require 'tk'
+require 'tkextlib/tcllib.rb'
+
+# TkPackage.require('widget::menuentry', '1.0')
+TkPackage.require('widget::menuentry')
+
+module Tk::Tcllib
+ module Widget
+ class Menuentry < Tk::Tile::TEntry
+ PACKAGE_NAME = 'widget::menuentry'.freeze
+ def self.package_name
+ PACKAGE_NAME
+ end
+
+ def self.package_version
+ begin
+ TkPackage.require('widget::menuentry')
+ rescue
+ ''
+ end
+ end
+ end
+ MenuEntry = Menuentry
+ end
+end
+
+class Tk::Tcllib::Widget::Menuentry
+ TkCommandNames = ['::widget::menuentry'.freeze].freeze
+
+ def create_self(keys)
+ if keys and keys != None
+ tk_call_without_enc(self.class::TkCommandNames[0], @path,
+ *hash_kv(keys, true))
+ else
+ tk_call_without_enc(self.class::TkCommandNames[0], @path)
+ end
+ end
+ private :create_self
+end
diff --git a/ext/tk/lib/tkextlib/tcllib/ntext.rb b/ext/tk/lib/tkextlib/tcllib/ntext.rb
new file mode 100644
index 0000000000..7888ed4871
--- /dev/null
+++ b/ext/tk/lib/tkextlib/tcllib/ntext.rb
@@ -0,0 +1,146 @@
+#
+# tkextlib/tcllib/ntext.rb
+# by Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)
+#
+# * Part of tcllib extension
+# * Ntext bindtag
+#
+
+require 'tk'
+require 'tkextlib/tcllib.rb'
+
+# TkPackage.require('ntext', '0.81')
+TkPackage.require('ntext')
+
+module Tk::Tcllib
+ Ntext = TkBindTag.new_by_name('Ntext')
+end
+
+# variables
+Tk::Tcllib::Ntext.instance_eval{
+ # boolean
+ @classicAnchor = TkVarAccess.new('::ntext::classicAnchor')
+ @classicExtras = TkVarAccess.new('::ntext::classicExtras')
+ @classicMouseSelect = TkVarAccess.new('::ntext::classicMouseSelect')
+ @classicWordBreak = TkVarAccess.new('::ntext::classicWordBreak')
+ @classicWrap = TkVarAccess.new('::ntext::classicWrap')
+ @overwrite = TkVarAccess.new('::ntext::overwrite')
+
+ # regexp
+ @newWrapRegexp = TkVarAccess.new('::ntext::newWrapRegexp')
+
+ # variables (advanced use)
+ @tcl_match_wordBreakAfter = TkVarAccess.new('::ntext::tcl_match_wordBreakAfter')
+ @tcl_match_wordBreakBefore = TkVarAccess.new('::ntext::tcl_match_wordBreakBefore')
+ @tcl_match_endOfWord = TkVarAccess.new('::ntext::tcl_match_endOfWord')
+ @tcl_match_startOfNextWord = TkVarAccess.new('::ntext::tcl_match_startOfNextWord')
+ @tcl_match_startOfPreviousWord = TkVarAccess.new('::ntext::tcl_match_startOfPreviousWord')
+}
+
+class << Tk::Tcllib::Ntext
+ def wrapIndent(txt, *args)
+ TK.tk_call('::next::wrapIndent', txt, *args)
+ end
+
+ def initializeMatchPatterns
+ TK.tk_call('::next::initializeMatchPatterns')
+ self
+ end
+
+ def createMatchPatterns(*args)
+ TK.tk_call('::next::createMatchPatterns', *args)
+ self
+ end
+
+ # functions (advanced use)
+ #ntext::new_wordBreakAfter
+ #ntext::new_wordBreakBefore
+ #ntext::new_endOfWord
+ #ntext::new_startOfNextWord
+ #ntext::new_startOfPreviousWord
+
+ # accessor
+ def classicAnchor
+ @classicAnchor.bool
+ end
+ def classicAnchor=(mode)
+ @classicAnchor.bool = mode
+ end
+
+ def classicExtras
+ @classicExtras.bool
+ end
+ def classicExtras=(mode)
+ @classicExtras.bool = mode
+ end
+
+ def classicMouseSelect
+ @classicMouseSelect.bool
+ end
+ def classicMouseSelect=(mode)
+ @classicMouseSelect.bool = mode
+ end
+
+ def classicWordBreak
+ @classicWordBreak.bool
+ end
+ def classicWordBreak=(mode)
+ @classicWordBreak.bool = mode
+ end
+
+ def classicWrap
+ @classicWrap.bool
+ end
+ def classicWrap=(mode)
+ @classicWrap.bool = mode
+ end
+
+ def overwrite
+ @overwrite.bool
+ end
+ def overwrite=(mode)
+ @classic.bool = mode
+ end
+
+ def newWrapRegexp
+ @newWrapRegexp.value
+ end
+ def newWrapRegexp=(val)
+ @newWrapRegexp.value = val
+ end
+
+ def tcl_match_wordBreakAfter
+ @tcl_match_wordBreakAfter.value
+ end
+ def tcl_match_wordBreakAfter=(val)
+ @tcl_match_wordBreakAfter.value = val
+ end
+
+ def tcl_match_wordBreakBefore
+ @tcl_match_wordBreakBefore.value
+ end
+ def tcl_match_wordBreakBefore=(val)
+ @tcl_match_wordBreakBefore.value = val
+ end
+
+ def tcl_match_endOfWord
+ @tcl_match_endOfWord.value
+ end
+ def tcl_match_endOfWord=(val)
+ @tcl_match_endOfWord.value = val
+ end
+
+ def tcl_match_startOfNextWord
+ @tcl_match_startOfNextWord.value
+ end
+ def tcl_match_startOfNextWord=(val)
+ @tcl_match_startOfNextWord.value = val
+ end
+
+ def tcl_match_startOfPreviousWord
+ @tcl_match_startOfPreviousWord.value
+ end
+ def tcl_match_startOfPreviousWord=(val)
+ @tcl_match_startOfPreviousWord.value = val
+ end
+end
diff --git a/ext/tk/lib/tkextlib/tcllib/panelframe.rb b/ext/tk/lib/tkextlib/tcllib/panelframe.rb
index 9086ad78d2..020c51cbd1 100644
--- a/ext/tk/lib/tkextlib/tcllib/panelframe.rb
+++ b/ext/tk/lib/tkextlib/tcllib/panelframe.rb
@@ -60,11 +60,17 @@ class Tk::Tcllib::Widget::PanelFrame
def remove(*wins)
tk_send('remove', *wins)
+ self
end
def remove_destroy(*wins)
tk_send('remove', '-destroy', *wins)
+ self
+ end
+
+ def delete(*wins)
+ tk_send('delete', *wins)
+ self
end
- alias delete remove_destroy
def items
simplelist(tk_send('items')).collect!{|w| window(w)}
diff --git a/ext/tk/lib/tkextlib/tcllib/plotchart.rb b/ext/tk/lib/tkextlib/tcllib/plotchart.rb
index 25a574efbc..2f3d79d427 100644
--- a/ext/tk/lib/tkextlib/tcllib/plotchart.rb
+++ b/ext/tk/lib/tkextlib/tcllib/plotchart.rb
@@ -62,6 +62,7 @@ require 'tkextlib/tcllib.rb'
# TkPackage.require('Plotchart', '0.9')
# TkPackage.require('Plotchart', '1.1')
+# TkPackage.require('Plotchart', '1.6.3')
TkPackage.require('Plotchart')
module Tk
@@ -109,6 +110,29 @@ module Tk::Tcllib::Plotchart
list(tk_call_without_enc('::Plotchart::coords3DToPixel', w.path, x, y, z))
end
+ def self.plotconfig(*args)
+ case args.length
+ when 0, 1, 2
+ # 0: (no args) --> list of chat types
+ # 1: charttype --> list of components
+ # 2: charttype, component --> list of properties
+ simplelist(tk_call('::Plotchart::plotconfig', *args))
+ when 3
+ # 3: charttype, component, property --> current value
+ tk_call('::Plotchart::plotconfig', *args)
+ else
+ # 4: charttype, component, property, value : set new value
+ # 5+: Error on Tcl/Tk
+ tk_call('::Plotchart::plotconfig', *args)
+ nil
+ end
+ end
+
+ def self.plotpack(w, dir, *plots)
+ tk_call_without_enc('::Plotchart::plotpack', w.path, dir, *plots)
+ w
+ end
+
def self.polar_coordinates(w, radmax)
tk_call_without_enc('::Plotchart::polarCoordinates', w.path, radmax)
end
@@ -121,8 +145,8 @@ module Tk::Tcllib::Plotchart
list(tk_call_without_enc('::Plotchart::coordsToPixel', w.path, x, y))
end
- def self.determine_scale(w, xmax, ymax)
- tk_call_without_enc('::Plotchart::determineScale', w.path, xmax, ymax)
+ def self.determine_scale(*args) # (xmin, xmax, inverted=false)
+ tk_call_without_enc('::Plotchart::determineScale', *args)
end
def self.set_zoom_pan(w)
@@ -157,8 +181,7 @@ module Tk::Tcllib::Plotchart
if key.kind_of?(Hash)
tk_call_without_enc(@chart, 'xconfig', *hash_kv(key, true))
else
- tk_call_without_enc(@chart, 'xconfig',
- "-#{key}", _get_eval_enc_str(value))
+ tk_call(@chart, 'xconfig', "-#{key}",value)
end
self
end
@@ -167,13 +190,86 @@ module Tk::Tcllib::Plotchart
if key.kind_of?(Hash)
tk_call_without_enc(@chart, 'yconfig', *hash_kv(key, true))
else
- tk_call_without_enc(@chart, 'yconfig',
- "-#{key}", _get_eval_enc_str(value))
+ tk_call(@chart, 'yconfig', "-#{key}", value)
+ end
+ self
+ end
+
+ def background(part, color_or_image, dir)
+ tk_call_without_enc(@chart, 'background',
+ part, color_or_image, dir)
+ self
+ end
+
+ def xticklines(color=None)
+ tk_call(@chart, 'xticklines', color)
+ self
+ end
+
+ def yticklines(color=None)
+ tk_call(@chart, 'yticklines', color)
+ self
+ end
+
+ def legendconfig(key, value=None)
+ if key.kind_of?(Hash)
+ tk_call_without_enc(@chart, 'legendconfig', *hash_kv(key, true))
+ else
+ tk_call(@chart, 'legendconfig', "-#{key}", value)
+ end
+ self
+ end
+
+ def legend(series, text)
+ tk_call_without_enc(@chart, 'legend',
+ _get_eval_enc_str(series), _get_eval_enc_str(text))
+ self
+ end
+
+ def balloon(*args) # args => (x, y, text, dir) or ([x, y], text, dir)
+ if args[0].kind_of?(Array)
+ # args => ([x, y], text, dir)
+ x, y = args.shift
+ else
+ # args => (x, y, text, dir)
+ x = args.shift
+ y = args.shift
end
+
+ text, dir = args
+
+ tk_call_without_enc(@chart, 'balloon', x, y,
+ _get_eval_enc_str(text), dir)
+ self
+ end
+
+ def balloonconfig(key, value=None)
+ if key.kind_of?(Hash)
+ tk_call_without_enc(@chart, 'balloonconfig', *hash_kv(key, true))
+ else
+ tk_call(@chart, 'balloonconfig', "-#{key}", value)
+ end
+ end
+
+ def plaintext(*args) # args => (x, y, text, dir) or ([x, y], text, dir)
+ if args[0].kind_of?(Array)
+ # args => ([x, y], text, dir)
+ x, y = args.shift
+ else
+ # args => (x, y, text, dir)
+ x = args.shift
+ y = args.shift
+ end
+
+ text, dir = args
+
+ tk_call_without_enc(@chart, 'plaintext', x, y,
+ _get_eval_enc_str(text), dir)
self
end
############################
+
def view_port(*args) # args := pxmin, pymin, pxmax, pymax
tk_call_without_enc('::Plotchart::viewPort', @path, *(args.flatten))
self
@@ -200,6 +296,11 @@ module Tk::Tcllib::Plotchart
list(tk_call_without_enc('::Plotchart::coords3DToPixel', @path, x, y, z))
end
+ def plotpack(dir, *plots)
+ tk_call_without_enc('::Plotchart::plotpack', @path, dir, *plots)
+ self
+ end
+
def polar_coordinates(radmax)
tk_call_without_enc('::Plotchart::polarCoordinates', @path, radmax)
self
@@ -281,27 +382,27 @@ module Tk::Tcllib::Plotchart
vals = array2tk_list(vals) if vals.kind_of?(Array)
clss = array2tk_list(clss) if clss.kind_of?(Array)
- tk_call_without_enc(@chart, 'contourlines', xcrd, ycrd, vals, clss)
+ tk_call(@chart, 'contourlines', xcrd, ycrd, vals, clss)
self
end
- def contourfill(xcrd, ycrd, vals, klasses=None)
+ def contourfill(xcrd, ycrd, vals, clss=None)
xcrd = array2tk_list(xcrd) if xcrd.kind_of?(Array)
ycrd = array2tk_list(ycrd) if ycrd.kind_of?(Array)
vals = array2tk_list(vals) if vals.kind_of?(Array)
clss = array2tk_list(clss) if clss.kind_of?(Array)
- tk_call_without_enc(@chart, 'contourfill', xcrd, ycrd, vals, clss)
+ tk_call(@chart, 'contourfill', xcrd, ycrd, vals, clss)
self
end
- def contourbox(xcrd, ycrd, vals, klasses=None)
+ def contourbox(xcrd, ycrd, vals, clss=None)
xcrd = array2tk_list(xcrd) if xcrd.kind_of?(Array)
ycrd = array2tk_list(ycrd) if ycrd.kind_of?(Array)
vals = array2tk_list(vals) if vals.kind_of?(Array)
clss = array2tk_list(clss) if clss.kind_of?(Array)
- tk_call_without_enc(@chart, 'contourbox', xcrd, ycrd, vals, clss)
+ tk_call(@chart, 'contourbox', xcrd, ycrd, vals, clss)
self
end
@@ -324,10 +425,70 @@ module Tk::Tcllib::Plotchart
if key.kind_of?(Hash)
tk_call_without_enc(@chart, 'dataconfig', series, *hash_kv(key, true))
else
- tk_call_without_enc(@chart, 'dataconfig', series,
- "-#{key}", _get_eval_enc_str(value))
+ tk_call(@chart, 'dataconfig', series, "-#{key}", value)
end
end
+
+ def rescale(xscale, yscale) # xscale|yscale => [newmin, newmax, newstep]
+ tk_call_without_enc(@chart, 'rescale', xscale, yscale)
+ self
+ end
+
+ def trend(series, xcrd, ycrd)
+ tk_call_without_enc(@chart, 'trend',
+ _get_eval_enc_str(series), xcrd, ycrd)
+ self
+ end
+
+ def rchart(series, xcrd, ycrd)
+ tk_call_without_enc(@chart, 'rchart',
+ _get_eval_enc_str(series), xcrd, ycrd)
+ self
+ end
+
+ def interval(series, xcrd, ymin, ymax, ycenter=None)
+ tk_call(@chart, 'interval', series, xcrd, ymin, ymax, ycenter)
+ self
+ end
+
+ def box_and_whiskers(series, xcrd, ycrd)
+ tk_call_without_enc(@chart, 'box-and-whiskers',
+ _get_eval_enc_str(series), xcrd, ycrd)
+ self
+ end
+ alias box_whiskers box_and_whiskers
+
+ def vectorconfig(series, key, value=None)
+ if key.kind_of?(Hash)
+ tk_call_without_enc(@chart, 'vectorconfig',
+ _get_eval_enc_str(series), *hash_kv(key, true))
+ else
+ tk_call(@chart, 'vectorconfig', series, "-#{key}", value)
+ end
+ self
+ end
+
+ def vector(series, xcrd, ycrd, ucmp, vcmp)
+ tk_call_without_enc(@chart, 'vector', _get_eval_enc_str(series),
+ xcrd, ycrd, ucmp, vcmp)
+ self
+ end
+
+ def dotconfig(series, key, value=None)
+ if key.kind_of?(Hash)
+ tk_call_without_enc(@chart, 'dotconfig',
+ _get_eval_enc_str(series), *hash_kv(key, true))
+ else
+ tk_call(@chart, 'dotconfig', series, "-#{key}", value)
+ end
+ self
+ end
+
+ def dot(series, xcrd, ycrd, value)
+ tk_call_without_enc(@chart, 'dot', _get_eval_enc_str(series),
+ xcrd, ycrd, value)
+ self
+ end
end
############################
@@ -339,6 +500,30 @@ module Tk::Tcllib::Plotchart
end
############################
+ class TXPlot < XYPlot
+ TkCommandNames = [
+ 'canvas'.freeze,
+ '::Plotchart::createTXPlot'.freeze
+ ].freeze
+ end
+
+ ############################
+ class XLogYPlot < XYPlot
+ TkCommandNames = [
+ 'canvas'.freeze,
+ '::Plotchart::createXLogYPlot'.freeze
+ ].freeze
+ end
+
+ ############################
+ class Histogram < XYPlot
+ TkCommandNames = [
+ 'canvas'.freeze,
+ '::Plotchart::createHistgram'.freeze
+ ].freeze
+ end
+
+ ############################
class PolarPlot < Tk::Canvas
include ChartMethod
@@ -389,10 +574,10 @@ module Tk::Tcllib::Plotchart
def dataconfig(series, key, value=None)
if key.kind_of?(Hash)
- tk_call_without_enc(@chart, 'dataconfig', series, *hash_kv(key, true))
+ tk_call_without_enc(@chart, 'dataconfig', _get_eval_enc_str(series),
+ *hash_kv(key, true))
else
- tk_call_without_enc(@chart, 'dataconfig', series,
- "-#{key}", _get_eval_enc_str(value))
+ tk_call(@chart, 'dataconfig', series, "-#{key}", value)
end
end
end
@@ -541,6 +726,15 @@ module Tk::Tcllib::Plotchart
self
end
+ def plot_line(dat, color)
+ # dat has to be provided as a 2 level array.
+ # 1st level contains rows, drawn in y-direction,
+ # and each row is an array whose elements are drawn in x-direction,
+ # for the columns.
+ tk_call_without_enc(@chart, 'plotline', dat, color)
+ self
+ end
+
def plot_data(dat)
# dat has to be provided as a 2 level array.
# 1st level contains rows, drawn in y-direction,
@@ -550,6 +744,15 @@ module Tk::Tcllib::Plotchart
self
end
+ def zconfig(key, value=None)
+ if key.kind_of?(Hash)
+ tk_call_without_enc(@chart, 'zconfig', *hash_kv(key, true))
+ else
+ tk_call(@chart, 'zconfig', "-#{key}", value)
+ end
+ self
+ end
+
def colour(fill, border)
# configure the colours to use for polygon borders and inner area
tk_call_without_enc(@chart, 'colour', fill, border)
@@ -561,6 +764,132 @@ module Tk::Tcllib::Plotchart
end
############################
+ class Barchart3D < Tk::Canvas
+ include ChartMethod
+
+ TkCommandNames = [
+ 'canvas'.freeze,
+ '::Plotchart::create3DBarchart'.freeze
+ ].freeze
+
+ def initialize(*args) # args := ([parent,] yaxis, nobars [, keys])
+ # yaxis := Array of [minimum, maximum, stepsize]
+ # nobars := number of bars
+ if args[0].kind_of?(Array)
+ @yaxis = args.shift
+ @nobars = args.shift
+
+ super(*args) # create canvas widget
+ else
+ parent = args.shift
+
+ @yaxis = args.shift
+ @nobars = args.shift
+
+ if parent.kind_of?(Tk::Canvas)
+ @path = parent.path
+ else
+ super(parent, *args) # create canvas widget
+ end
+ end
+
+ @chart = _create_chart
+ end
+
+ def _create_chart
+ p self.class::TkCommandNames[1] if $DEBUG
+ tk_call_without_enc(self.class::TkCommandNames[1], @path,
+ array2tk_list(@yaxis), @nobars)
+ end
+ private :_create_chart
+
+ def plot(label, yvalue, color)
+ tk_call_without_enc(@chart, 'plot', _get_eval_enc_str(label),
+ _get_eval_enc_str(yvalue), color)
+ self
+ end
+
+ def config(key, value=None)
+ if key.kind_of?(Hash)
+ tk_call_without_enc(@chart, 'config', *hash_kv(key, true))
+ else
+ tk_call(@chart, 'config', "-#{key}", value)
+ end
+ self
+ end
+ end
+
+ ############################
+ class RibbonChart3D < Tk::Canvas
+ include ChartMethod
+
+ TkCommandNames = [
+ 'canvas'.freeze,
+ '::Plotchart::create3DRibbonChart'.freeze
+ ].freeze
+
+ def initialize(*args) # args := ([parent,] names, yaxis, zaxis [, keys])
+ # names := Array of the series
+ # yaxis := Array of [minimum, maximum, stepsize]
+ # zaxis := Array of [minimum, maximum, stepsize]
+ if args[0].kind_of?(Array)
+ @names = args.shift
+ @yaxis = args.shift
+ @zaxis = args.shift
+
+ super(*args) # create canvas widget
+ else
+ parent = args.shift
+
+ @names = args.shift
+ @yaxis = args.shift
+ @zaxis = args.shift
+
+ if parent.kind_of?(Tk::Canvas)
+ @path = parent.path
+ else
+ super(parent, *args) # create canvas widget
+ end
+ end
+
+ @chart = _create_chart
+ end
+
+ def _create_chart
+ p self.class::TkCommandNames[1] if $DEBUG
+ tk_call_without_enc(self.class::TkCommandNames[1], @path,
+ array2tk_list(@names),
+ array2tk_list(@yaxis),
+ array2tk_list(@zaxis))
+ end
+ private :_create_chart
+
+ def line(*args) # xypairs, color
+ color = args.pop # last argument is a color
+ xypairs = TkComm.slice_ary(args.flatten, 2) # regenerate xypairs
+ tk_call_without_enc(@chart, 'line', xypairs, color)
+ self
+ end
+
+ def area(*args) # xypairs, color
+ color = args.pop # last argument is a color
+ xypairs = TkComm.slice_ary(args.flatten, 2) # regenerate xypairs
+ tk_call_without_enc(@chart, 'area', xypairs, color)
+ self
+ end
+
+ def zconfig(key, value=None)
+ if key.kind_of?(Hash)
+ tk_call_without_enc(@chart, 'zconfig', *hash_kv(key, true))
+ else
+ tk_call(@chart, 'zconfig',"-#{key}", value)
+ end
+ self
+ end
+ end
+
+
+ ############################
class Piechart < Tk::Canvas
include ChartMethod
@@ -586,9 +915,76 @@ module Tk::Tcllib::Plotchart
private :_create_chart
def plot(*dat) # argument is a list of [label, value]
- tk_call_without_enc(@chart, 'plot', dat.flatten)
+ tk_call(@chart, 'plot', dat.flatten)
+ self
+ end
+
+ def colours(*list)
+ tk_call_without_enc(@chart, 'colours', *list)
self
end
+ alias colors colours
+ end
+
+
+ ############################
+ class Radialchart < Tk::Canvas
+ include ChartMethod
+
+ TkCommandNames = [
+ 'canvas'.freeze,
+ '::Plotchart::createRadialchart'.freeze
+ ].freeze
+
+ def initialize(*args) # args := ([parent,] names, scale, style [, keys])
+ # radius_data := Array of [maximum_radius, stepsize]
+ if args[0].kind_of?(Array)
+ @names = args.shift
+ @scale = args.shift
+ @style = args.shift
+
+ super(*args) # create canvas widget
+ else
+ parent = args.shift
+
+ @names = args.shift
+ @scale = args.shift
+ @style = args.shift
+
+ if parent.kind_of?(Tk::Canvas)
+ @path = parent.path
+ else
+ super(parent, *args) # create canvas widget
+ end
+ end
+
+ @chart = _create_chart
+ end
+
+ def _create_chart
+ p self.class::TkCommandNames[1] if $DEBUG
+ tk_call_without_enc(self.class::TkCommandNames[1], @path,
+ array2tk_list(@names), @scale, @style)
+ end
+ private :_create_chart
+
+ def __destroy_hook__
+ Tk::Tcllib::Plotchart::PlotSeries::SeriesID_TBL.mutex.synchronize{
+ Tk::Tcllib::Plotchart::PlotSeries::SeriesID_TBL.delete(@path)
+ }
+ end
+
+ def plot(data, color, thickness)
+ tk_call_without_enc(@chart, 'plot', _get_eval_enc_str(data),
+ color, thickness)
+ self
+ end
+
+ def colours(*list)
+ tk_call_without_enc(@chart, 'colours', *list)
+ self
+ end
+ alias colors colours
end
############################
@@ -655,13 +1051,13 @@ module Tk::Tcllib::Plotchart
end
def plot(series, dat, col=None)
- tk_call_without_enc(@chart, 'plot', series, dat, col)
+ tk_call(@chart, 'plot', series, dat, col)
self
end
def colours(*cols)
# set the colours to be used
- tk_call_without_enc(@chart, 'colours', *cols)
+ tk_call(@chart, 'colours', *cols)
self
end
alias colour colours
@@ -678,6 +1074,102 @@ module Tk::Tcllib::Plotchart
end
############################
+ class Boxplot < Tk::Canvas
+ include ChartMethod
+
+ TkCommandNames = [
+ 'canvas'.freeze,
+ '::Plotchart::createBoxplot'.freeze
+ ].freeze
+
+ def initialize(*args) # args := ([parent,] xaxis, ylabels [, keys])
+ # xaxis := Array of [minimum, maximum, stepsize]
+ # yaxis := List of labels for the y-axis
+ if args[0].kind_of?(Array)
+ @xaxis = args.shift
+ @ylabels = args.shift
+
+ super(*args) # create canvas widget
+ else
+ parent = args.shift
+
+ @xaxis = args.shift
+ @ylabels = args.shift
+
+ if parent.kind_of?(Tk::Canvas)
+ @path = parent.path
+ else
+ super(parent, *args) # create canvas widget
+ end
+ end
+
+ @chart = _create_chart
+ end
+
+ def _create_chart
+ p self.class::TkCommandNames[1] if $DEBUG
+ tk_call_without_enc(self.class::TkCommandNames[1], @path,
+ array2tk_list(@xaxis), array2tk_list(@ylabels))
+ end
+ private :_create_chart
+
+ def __destroy_hook__
+ Tk::Tcllib::Plotchart::PlotSeries::SeriesID_TBL.mutex.synchronize{
+ Tk::Tcllib::Plotchart::PlotSeries::SeriesID_TBL.delete(@path)
+ }
+ end
+
+ def plot(label, *values)
+ tk_call(@chart, 'plot', label, values.flatten)
+ self
+ end
+ end
+
+ ############################
+ class RightAxis < Tk::Canvas
+ include ChartMethod
+
+ TkCommandNames = [
+ 'canvas'.freeze,
+ '::Plotchart::createRightAxis'.freeze
+ ].freeze
+
+ def initialize(*args) # args := ([parent,] yaxis [, keys])
+ # yaxis := Array of [minimum, maximum, stepsize]
+ if args[0].kind_of?(Array)
+ @yaxis = args.shift
+
+ super(*args) # create canvas widget
+ else
+ parent = args.shift
+
+ @yaxis = args.shift
+
+ if parent.kind_of?(Tk::Canvas)
+ @path = parent.path
+ else
+ super(parent, *args) # create canvas widget
+ end
+ end
+
+ @chart = _create_chart
+ end
+
+ def _create_chart
+ p self.class::TkCommandNames[1] if $DEBUG
+ tk_call_without_enc(self.class::TkCommandNames[1], @path,
+ array2tk_list(@yaxis))
+ end
+ private :_create_chart
+
+ def __destroy_hook__
+ Tk::Tcllib::Plotchart::PlotSeries::SeriesID_TBL.mutex.synchronize{
+ Tk::Tcllib::Plotchart::PlotSeries::SeriesID_TBL.delete(@path)
+ }
+ end
+ end
+
+ ############################
class Timechart < Tk::Canvas
include ChartMethod
@@ -723,46 +1215,60 @@ module Tk::Tcllib::Plotchart
private :_create_chart
def period(txt, time_begin, time_end, col=None)
- tk_call_without_enc(@chart, 'period', txt, time_begin, time_end, col)
+ tk_call(@chart, 'period', txt, time_begin, time_end, col)
self
end
def milestone(txt, time, col=None)
- tk_call_without_enc(@chart, 'milestone', txt, time, col)
+ tk_call(@chart, 'milestone', txt, time, col)
self
end
def vertline(txt, time)
- tk_call_without_enc(@chart, 'vertline', txt, time)
+ tk_call(@chart, 'vertline', txt, time)
+ self
+ end
+
+ def hscroll=(scr)
+ tk_call_without_enc(@chart, 'hscroll', scr)
+ scr
+ end
+ def hscroll(scr)
+ tk_call_without_enc(@chart, 'hscroll', scr)
+ self
+ end
+
+ def vscroll=(scr)
+ tk_call_without_enc(@chart, 'vscroll', scr)
+ scr
+ end
+ def vscroll(scr)
+ tk_call_without_enc(@chart, 'vscroll', scr)
self
end
end
############################
- class Gnattchart < Tk::Canvas
+ class Ganttchart < Tk::Canvas
include ChartMethod
TkCommandNames = [
'canvas'.freeze,
- '::Plotchart::createGnattchart'.freeze
+ '::Plotchart::createGanttchart'.freeze
].freeze
def initialize(*args)
# args := ([parent,] time_begin, time_end, items [, text_width] [, keys])
# time_begin := String of time format (e.g. "1 january 2004")
# time_end := String of time format (e.g. "1 january 2004")
- # items := Expected/maximum number of items
- # ( This determines the vertical spacing. )
+ # args := Expected/maximum number of items
+ # ( This determines the vertical spacing. ),
+ # Expected/maximum width of items,
+ # Option Hash ( { key=>value, ... } )
if args[0].kind_of?(String)
@time_begin = args.shift
@time_end = args.shift
- @items = args.shift
-
- if args[0].kind_of?(Fixnum)
- @text_width = args.shift
- else
- @text_width = None
- end
+ @args = args
super(*args) # create canvas widget
else
@@ -770,13 +1276,7 @@ module Tk::Tcllib::Plotchart
@time_begin = args.shift
@time_end = args.shift
- @items = args.shift
-
- if args[0].kind_of?(Fixnum)
- @text_width = args.shift
- else
- @text_width = None
- end
+ @args = args
if parent.kind_of?(Tk::Canvas)
@path = parent.path
@@ -790,25 +1290,25 @@ module Tk::Tcllib::Plotchart
def _create_chart
p self.class::TkCommandNames[1] if $DEBUG
- tk_call_without_enc(self.class::TkCommandNames[1], @path,
- @time_begin, @time_end, @items, @text_width)
+ tk_call(self.class::TkCommandNames[1], @path,
+ @time_begin, @time_end, *args)
end
private :_create_chart
def task(txt, time_begin, time_end, completed=0.0)
- list(tk_call_without_enc(@chart, 'task', txt, time_begin, time_end,
- completed)).collect!{|id|
+ list(tk_call(@chart, 'task', txt, time_begin, time_end,
+ completed)).collect!{|id|
TkcItem.id2obj(self, id)
}
end
def milestone(txt, time, col=None)
- tk_call_without_enc(@chart, 'milestone', txt, time, col)
+ tk_call(@chart, 'milestone', txt, time, col)
self
end
def vertline(txt, time)
- tk_call_without_enc(@chart, 'vertline', txt, time)
+ tk_call(@chart, 'vertline', txt, time)
self
end
@@ -816,23 +1316,41 @@ module Tk::Tcllib::Plotchart
from_task = array2tk_list(from_task) if from_task.kind_of?(Array)
to_task = array2tk_list(to_task) if to_task.kind_of?(Array)
- tk_call_without_enc(@chart, 'connect', from_task, to_task)
+ tk_call(@chart, 'connect', from_task, to_task)
self
end
def summary(txt, tasks)
tasks = array2tk_list(tasks) if tasks.kind_of?(Array)
- tk_call_without_enc(@chart, 'summary', tasks)
+ tk_call(@chart, 'summary', tasks)
self
end
def color_of_part(keyword, newcolor)
- tk_call_without_enc(@chart, 'color', keyword, newcolor)
+ tk_call(@chart, 'color', keyword, newcolor)
self
end
def font_of_part(keyword, newfont)
- tk_call_without_enc(@chart, 'font', keyword, newfont)
+ tk_call(@chart, 'font', keyword, newfont)
+ self
+ end
+
+ def hscroll=(scr)
+ tk_call_without_enc(@chart, 'hscroll', scr)
+ scr
+ end
+ def hscroll(scr)
+ tk_call_without_enc(@chart, 'hscroll', scr)
+ self
+ end
+
+ def vscroll=(scr)
+ tk_call_without_enc(@chart, 'vscroll', scr)
+ scr
+ end
+ def vscroll(scr)
+ tk_call_without_enc(@chart, 'vscroll', scr)
self
end
end
@@ -841,7 +1359,7 @@ module Tk::Tcllib::Plotchart
class PlotSeries < TkObject
SeriesID_TBL = TkCore::INTERP.create_table
- (Series_ID = ['series'.freeze, '00000'.taint]).instance_eval{
+ (Series_ID = ['series'.freeze, TkUtil.untrust('00000')]).instance_eval{
@mutex = Mutex.new
def mutex; @mutex; end
freeze
diff --git a/ext/tk/lib/tkextlib/tcllib/scrolledwindow.rb b/ext/tk/lib/tkextlib/tcllib/scrolledwindow.rb
new file mode 100644
index 0000000000..c9488b4686
--- /dev/null
+++ b/ext/tk/lib/tkextlib/tcllib/scrolledwindow.rb
@@ -0,0 +1,57 @@
+#
+# tkextlib/tcllib/scrolledwindow.rb
+# by Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)
+#
+# * Part of tcllib extension
+# * scrolledwindow widget
+#
+
+require 'tk'
+require 'tkextlib/tcllib.rb'
+
+# TkPackage.require('widget::scrolledwindow', '1.2')
+TkPackage.require('widget::scrolledwindow')
+
+module Tk::Tcllib
+ module Widget
+ class Scrolledwindow < Tk::Tile::TFrame
+ PACKAGE_NAME = 'widget::scrolledwindow'.freeze
+ def self.package_name
+ PACKAGE_NAME
+ end
+
+ def self.package_version
+ begin
+ TkPackage.require('widget::scrolledwindow')
+ rescue
+ ''
+ end
+ end
+ end
+ ScrolledWindow = Scrolledwindow
+ end
+end
+
+class Tk::Tcllib::Widget::ScrolledWindow
+ TkCommandNames = ['::widget::scrolledwindow'.freeze].freeze
+
+ def create_self(keys)
+ if keys and keys != None
+ tk_call_without_enc(self.class::TkCommandNames[0], @path,
+ *hash_kv(keys, true))
+ else
+ tk_call_without_enc(self.class::TkCommandNames[0], @path)
+ end
+ end
+ private :create_self
+
+ def getframe
+ window(tk_send_without_enc('getframe'))
+ end
+ alias get_frame getframe
+
+ def setwidget(w)
+ window(tk_send_without_enc('setwidget', w))
+ end
+ alias set_widget setwidget
+end
diff --git a/ext/tk/lib/tkextlib/tcllib/statusbar.rb b/ext/tk/lib/tkextlib/tcllib/statusbar.rb
new file mode 100644
index 0000000000..46a4b9d8b6
--- /dev/null
+++ b/ext/tk/lib/tkextlib/tcllib/statusbar.rb
@@ -0,0 +1,79 @@
+#
+# tkextlib/tcllib/statusbar.rb
+# by Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)
+#
+# * Part of tcllib extension
+# * statusbar widget
+#
+
+require 'tk'
+require 'tkextlib/tcllib.rb'
+
+# TkPackage.require('widget::statusbar', '1.2')
+TkPackage.require('widget::statusbar')
+
+module Tk::Tcllib
+ module Widget
+ class Statusbar < Tk::Tile::TFrame
+ PACKAGE_NAME = 'widget::statusbar'.freeze
+ def self.package_name
+ PACKAGE_NAME
+ end
+
+ def self.package_version
+ begin
+ TkPackage.require('widget::statusbar')
+ rescue
+ ''
+ end
+ end
+ end
+ end
+end
+
+class Tk::Tcllib::Widget::Statusbar
+ TkCommandNames = ['::widget::statusbar'.freeze].freeze
+
+ def __boolval_optkeys
+ super() << 'separator' << 'resize' << 'resizeseparator'
+ end
+ private :__boolval_optkeys
+
+ def create_self(keys)
+ if keys and keys != None
+ tk_call_without_enc(self.class::TkCommandNames[0], @path,
+ *hash_kv(keys, true))
+ else
+ tk_call_without_enc(self.class::TkCommandNames[0], @path)
+ end
+ end
+ private :create_self
+
+ def getframe
+ window(tk_send_without_enc('getframe'))
+ end
+ alias get_frame getframe
+
+ def add(w, keys={})
+ window(tk_send_without_enc('setwidget', *(hash_kv(keys))))
+ end
+
+ def remove(*wins)
+ tk_send_without_enc('remove', *wins)
+ self
+ end
+
+ def remove_with_destroy(*wins)
+ tk_send_without_enc('remove', '-destroy', *wins)
+ self
+ end
+
+ def delete(*wins)
+ tk_send_without_enc('delete', *wins)
+ self
+ end
+
+ def items(pat=None)
+ tk_split_list(tk_send('items', pat))
+ end
+end
diff --git a/ext/tk/lib/tkextlib/tcllib/swaplist.rb b/ext/tk/lib/tkextlib/tcllib/swaplist.rb
index bb4c71cd5f..7698640534 100644
--- a/ext/tk/lib/tkextlib/tcllib/swaplist.rb
+++ b/ext/tk/lib/tkextlib/tcllib/swaplist.rb
@@ -33,7 +33,7 @@ end
class Tk::Tcllib::Swaplist_Dialog
TkCommandNames = ['::swaplist::swaplist'.freeze].freeze
WidgetClassName = 'Swaplist'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
def self.show(*args)
dialog = self.new(*args)
diff --git a/ext/tk/lib/tkextlib/tcllib/tablelist.rb b/ext/tk/lib/tkextlib/tcllib/tablelist.rb
index efeb8fbbac..bf5ab6620a 100644
--- a/ext/tk/lib/tkextlib/tcllib/tablelist.rb
+++ b/ext/tk/lib/tkextlib/tcllib/tablelist.rb
@@ -10,7 +10,8 @@ require 'tkextlib/tcllib.rb'
# check Tile extension :: If already loaded, use tablelist_tile.
unless defined? Tk::Tcllib::Tablelist_usingTile
- Tk::Tcllib::Tablelist_usingTile = TkPackage.provide('tile')
+ Tk::Tcllib::Tablelist_usingTile =
+ TkPackage.provide('tile') || TkPackage.provide('Ttk')
end
if Tk::Tcllib::Tablelist_usingTile
@@ -20,8 +21,8 @@ if Tk::Tcllib::Tablelist_usingTile
else
# without Tile
- # TkPackage.require('Tablelist', '4.2')
- TkPackage.require('Tablelist')
+ # TkPackage.require('tablelist', '4.2')
+ TkPackage.require('tablelist')
require 'tkextlib/tcllib/tablelist_core'
end
diff --git a/ext/tk/lib/tkextlib/tcllib/tablelist_core.rb b/ext/tk/lib/tkextlib/tcllib/tablelist_core.rb
index c99f62f2dc..2a5c415cc7 100644
--- a/ext/tk/lib/tkextlib/tcllib/tablelist_core.rb
+++ b/ext/tk/lib/tkextlib/tcllib/tablelist_core.rb
@@ -67,6 +67,9 @@ module Tk::Tcllib::TablelistItemConfig
[self.path, mixed_id[0] + 'configure', _to_idx(mixed_id[1])]
end
+ def cell_cget_tkstring(tagOrId, option)
+ itemcget_tkstring(['cell', tagOrId], option)
+ end
def cell_cget(tagOrId, option)
itemcget(['cell', tagOrId], option)
end
@@ -82,12 +85,16 @@ module Tk::Tcllib::TablelistItemConfig
def current_cell_configinfo(tagOrId, slot=nil)
current_itemconfiginfo(['cell', tagOrId], slot)
end
+ alias cellcget_tkstring cell_cget_tkstring
alias cellcget cell_cget
alias cellcget_strict cell_cget_strict
alias cellconfigure cell_configure
alias cellconfiginfo cell_configinfo
alias current_cellconfiginfo current_cell_configinfo
+ def column_cget_tkstring(tagOrId, option)
+ itemcget_tkstring(['column', tagOrId], option)
+ end
def column_cget(tagOrId, option)
itemcget(['column', tagOrId], option)
end
@@ -103,12 +110,16 @@ module Tk::Tcllib::TablelistItemConfig
def current_column_configinfo(tagOrId, slot=nil)
current_itemconfiginfo(['column', tagOrId], slot)
end
+ alias columncget_tkstring column_cget_tkstring
alias columncget column_cget
alias columncget_strict column_cget_strict
alias columnconfigure column_configure
alias columnconfiginfo column_configinfo
alias current_columnconfiginfo current_column_configinfo
+ def row_cget_tkstring(tagOrId, option)
+ itemcget_tkstring(['row', tagOrId], option)
+ end
def row_cget(tagOrId, option)
itemcget(['row', tagOrId], option)
end
@@ -124,13 +135,14 @@ module Tk::Tcllib::TablelistItemConfig
def current_row_configinfo(tagOrId, slot=nil)
current_itemconfiginfo(['row', tagOrId], slot)
end
+ alias rowcget_tkstring row_cget_tkstring
alias rowcget row_cget
alias rowcget_strict row_cget_strict
alias rowconfigure row_configure
alias rowconfiginfo row_configinfo
alias current_rowconfiginfo current_row_configinfo
- private :itemcget, :itemcget_strict
+ private :itemcget_tkstring, :itemcget, :itemcget_strict
private :itemconfigure, :itemconfiginfo, :current_itemconfiginfo
end
@@ -140,7 +152,7 @@ class Tk::Tcllib::Tablelist
TkCommandNames = ['::tablelist::tablelist'.freeze].freeze
WidgetClassName = 'Tablelist'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
def create_self(keys)
if keys and keys != None
@@ -165,16 +177,16 @@ class Tk::Tcllib::Tablelist
private :__strval_optkeys
def __boolval_optkeys
- super() + [
+ super() - ['takefocus'] + [
'forceeditendcommand', 'movablecolumns', 'movablerows',
- 'protecttitlecolumns', 'resizablecolumns',
+ 'protecttitlecolumns', 'resizablecolumns', 'setfocus',
'showarrow', 'showlabels', 'showseparators'
]
end
private :__boolval_optkeys
def __listval_optkeys
- super() + ['columns']
+ super() + ['columns', 'columntitles']
end
private :__listval_optkeys
@@ -186,7 +198,21 @@ class Tk::Tcllib::Tablelist
def __val2ruby_optkeys # { key=>proc, ... }
# The method is used to convert a opt-value to a ruby's object.
# When get the value of the option "key", "proc.call(value)" is called.
- super().update('stretch'=>proc{|v| (v == 'all')? v: simplelist(v)})
+ super().update('stretch'=>proc{|v|
+ (v == 'all')? v: simplelist(v)
+ },
+ 'takefocus'=>proc{|v|
+ case v
+ when '1'
+ true
+ when '0'
+ false
+ when ''
+ nil
+ else # cmd
+ tk_tcl2ruby(cmd)
+ end
+ })
end
private :__val2ruby_optkeys
@@ -196,6 +222,18 @@ class Tk::Tcllib::Tablelist
# That is, "-#{key} #{proc.call(value)}".
super().update('stretch'=>proc{|v|
(v.kind_of?(Array))? v.collect{|e| _to_idx(e)}: v
+ },
+ 'takefocus'=>proc{|v|
+ case v
+ when true
+ '1'
+ when false
+ '0'
+ when nil
+ ''
+ else
+ _get_eval_string(v)
+ end
})
end
private :__ruby2val_optkeys
@@ -211,14 +249,15 @@ class Tk::Tcllib::Tablelist
if id[0] == 'cell'
super(id) + ['title']
else
- super(id) - ['text'] + ['title']
+ super(id) - ['text'] + ['title', 'name']
end
end
private :__item_strval_optkeys
def __item_boolval_optkeys(id)
super(id) + [
- 'editable', 'hide', 'resizable', 'showarrow', 'stretchable',
+ 'changesnipside', 'editable', 'hide', 'resizable', 'selectable',
+ 'showarrow', 'showlinenumbers', 'stretchable', 'stretchwindow', 'wrap'
]
end
private :__item_boolval_optkeys
@@ -286,6 +325,23 @@ class Tk::Tcllib::Tablelist
end
alias cancelediting cancel_editing
+ def get_cellattrib(name=nil)
+ if name && name != None
+ tk_send('cellattrib', name)
+ else
+ ret = []
+ lst = simplelist(tk_send('cellattrib'))
+ until lst.empty?
+ ret << ( [lst.shift] << lst.shift )
+ end
+ ret
+ end
+ end
+ def set_cellattrib(*args)
+ tk_send('cellattrib', *(args.flatten))
+ self
+ end
+
def cellindex(idx)
_from_idx(tk_send('cellindex', _to_idx(idx)))
end
@@ -321,6 +377,23 @@ class Tk::Tcllib::Tablelist
self
end
+ def get_columnattrib(name=nil)
+ if name && name != None
+ tk_send('columnattrib', name)
+ else
+ ret = []
+ lst = simplelist(tk_send('columnattrib'))
+ until lst.empty?
+ ret << ( [lst.shift] << lst.shift )
+ end
+ ret
+ end
+ end
+ def set_columnattrib(*args)
+ tk_send('columnattrib', *(args.flatten))
+ self
+ end
+
def columncount
number(tk_send('columncount'))
end
@@ -329,6 +402,83 @@ class Tk::Tcllib::Tablelist
number(tk_send('columnindex', _to_idx(idx)))
end
+ def columnwidth(idx, opt=nil)
+ if opt
+ number(tk_send('columnwidth', _to_idx(idx), "-#{opt}"))
+ else
+ number(tk_send('columnwidth', _to_idx(idx)))
+ end
+ end
+ def requested_columnwidth(idx)
+ columnwidth(idx, 'requested')
+ end
+ def stretched_columnwidth(idx)
+ columnwidth(idx, 'stretched')
+ end
+ def total_columnwidth(idx)
+ columnwidth(idx, 'total')
+ end
+
+ def configcelllist(lst) # lst ==> [idx, opt, val, idx, opt, val, ...]
+ ary = []
+ lst.slice(3){|idx, opt, val|
+ ary << _to_idx(idx) << "-#{opt}" << val
+ }
+ tk_send('configcelllist', ary)
+ self
+ end
+ alias config_celllist configcelllist
+
+ def configcells(*args) # args ==> idx, opt, val, idx, opt, val, ...
+ ary = []
+ args.slice(3){|idx, opt, val|
+ ary << _to_idx(idx) << "-#{opt}" << val
+ }
+ tk_send('configcells', *ary)
+ self
+ end
+ alias config_cells configcells
+
+ def configcolumnlist(lst) # lst ==> [idx, opt, val, idx, opt, val, ...]
+ ary = []
+ lst.slice(3){|idx, opt, val|
+ ary << _to_idx(idx) << "-#{opt}" << val
+ }
+ tk_send('configcolumnlist', ary)
+ self
+ end
+ alias config_columnlist configcolumnlist
+
+ def configcolumns(*args) # args ==> idx, opt, val, idx, opt, val, ...
+ ary = []
+ args.slice(3){|idx, opt, val|
+ ary << _to_idx(idx) << "-#{opt}" << val
+ }
+ tk_send('configcolumns', *ary)
+ self
+ end
+ alias config_columns configcolumns
+
+ def configrowlist(lst) # lst ==> [idx, opt, val, idx, opt, val, ...]
+ ary = []
+ lst.slice(3){|idx, opt, val|
+ ary << _to_idx(idx) << "-#{opt}" << val
+ }
+ tk_send('configrowlist', ary)
+ self
+ end
+ alias config_rowlist configrowlist
+
+ def configrows(*args) # args ==> idx, opt, val, idx, opt, val, ...
+ ary = []
+ args.slice(3){|idx, opt, val|
+ ary << _to_idx(idx) << "-#{opt}" << val
+ }
+ tk_send('configrows', *ary)
+ self
+ end
+ alias config_rows configrows
+
def containing(y)
idx = num_or_str(tk_send('containing', y))
(idx.kind_of?(Fixnum) && idx < 0)? nil: idx
@@ -392,6 +542,10 @@ class Tk::Tcllib::Tablelist
end
alias editcell edit_cell
+ def editwintag
+ TkBindTag.new_by_name(tk_send('editwintag'))
+ end
+
def editwinpath
window(tk_send('editwinpath'))
end
@@ -412,6 +566,11 @@ class Tk::Tcllib::Tablelist
end
alias finishediting finish_editing
+ def formatinfo
+ key, row, col = simplelist(tk_send('formatinfo'))
+ [key, number(row), number(col)]
+ end
+
def get(first, last=nil)
if first.kind_of?(Array)
simplelist(tk_send('get', first.collect{|idx| _to_idx(idx)})).collect!{|elem| simplelist(elem) }
@@ -455,6 +614,22 @@ class Tk::Tcllib::Tablelist
end
alias getkeys get_keys
+ def has_attrib?(name)
+ bool(tk_send('hasattrib', name))
+ end
+
+ def has_cellattrib?(idx, name)
+ bool(tk_send('hascellattrib', _to_idx(idx), name))
+ end
+
+ def has_columnattrib?(idx, name)
+ bool(tk_send('hascolumnattrib', _to_idx(idx), name))
+ end
+
+ def has_rowattrib?(idx, name)
+ bool(tk_send('hasrowattrib', _to_idx(idx), name))
+ end
+
def imagelabelpath(idx)
window(tk_send('imagelabelpath', _to_idx(idx)))
end
@@ -486,6 +661,16 @@ class Tk::Tcllib::Tablelist
end
alias insertlist insert_list
+ def is_elem_snipped?(cellidx, tkvar)
+ bool(tk_send('iselemsnipped', _to_idx(cellidx), tkvar))
+ end
+ alias elem_snipped? is_elem_snipped?
+
+ def is_title_snipped?(colidx, tkvar)
+ bool(tk_send('istitlesnipped', _to_idx(colidx), tkvar))
+ end
+ alias title_snipped? is_title_snipped?
+
def itemlistvar
TkVarAccess.new(tk_send('itemlistvar'))
end
@@ -498,6 +683,10 @@ class Tk::Tcllib::Tablelist
simplelist(tk_send('labels'))
end
+ def labeltag
+ TkBindTag.new_by_name(tk_send('labeltag'))
+ end
+
def move(src, target)
tk_send('move', _to_idx(src), _to_idx(target))
self
@@ -535,6 +724,23 @@ class Tk::Tcllib::Tablelist
end
alias resetsortinfo reset_sortinfo
+ def get_rowattrib(name=nil)
+ if name && name != None
+ tk_send('rowattrib', name)
+ else
+ ret = []
+ lst = simplelist(tk_send('rowattrib'))
+ until lst.empty?
+ ret << ( [lst.shift] << lst.shift )
+ end
+ ret
+ end
+ end
+ def set_rowattrib(*args)
+ tk_send('rowattrib', *(args.flatten))
+ self
+ end
+
def scan_mark(x, y)
tk_send('scan', 'mark', x, y)
self
@@ -633,7 +839,22 @@ class Tk::Tcllib::Tablelist
self
end
- DEFAULT_sortByColumn_cmd = '::tablelist::sortByColumn'
+
+ # default of 'labelcommand' option
+ DEFAULT_labelcommand_value =
+ DEFAULT_sortByColumn_cmd = '::tablelist::sortByColumn'
+
+ # default of 'labelcommand2' option
+ DEFAULT_labelcommand2_value =
+ DEFAULT_addToSortColumns_cmd = '::tablelist::addToSortColumns'
+
+ def sortByColumn_with_event_generate(idx)
+ tk_call('::tablelist::sortByColumn', @path, _to_idx(idx))
+ end
+
+ def addToSortColumns_with_event_generate(idx)
+ tk_call('::tablelist::addToSortColumns', @path, _to_idx(idx))
+ end
def sort_by_column(idx, order=nil)
if order
@@ -659,15 +880,49 @@ class Tk::Tcllib::Tablelist
self
end
+ def sort_by_columnlist(idxlist, orderlist=None)
+ # orderlist :: list of 'increasing' or 'decreasing'
+ tk_send('sortbycolumnlist', idxlist.map{|idx| _to_idx(idx)}, orderlist)
+ self
+ end
+
def sortcolumn
idx = num_or_str(tk_send('sortcolum'))
(idx.kind_of?(Fixnum) && idx < 0)? nil: idx
end
+ def sortcolumnlist
+ simplelist(tk_send('sortcolumlist')).map{|col| num_or_str(col)}
+ end
+
def sortorder
tk_send('sortorder')
end
+ def sortorderlist
+ simplelist(tk_send('sortorderlist'))
+ end
+
+ def toggle_columnhide(first, last=nil)
+ if first.kind_of?(Array)
+ tk_send('togglecolumnhide', first.collect{|idx| _to_idx(idx)})
+ else
+ first = _to_idx(first)
+ last = (last)? _to_idx(last): first
+ tk_send('togglecolumnhide', first, last)
+ end
+ end
+
+ def toggle_rowhide(first, last=nil)
+ if first.kind_of?(Array)
+ tk_send('togglerowhide', first.collect{|idx| _to_idx(idx)})
+ else
+ first = _to_idx(first)
+ last = (last)? _to_idx(last): first
+ tk_send('togglerowhide', first, last)
+ end
+ end
+
def toggle_visibility(first, last=nil)
if first.kind_of?(Array)
tk_send('togglevisibility', first.collect{|idx| _to_idx(idx)})
@@ -680,6 +935,26 @@ class Tk::Tcllib::Tablelist
end
alias togglevisibility toggle_visibility
+ def unset_attrib(name)
+ tk_send('unsetattrib', name)
+ self
+ end
+
+ def unset_cellattrib(idx, name)
+ tk_send('unsetcellattrib', _to_idx(idx), name)
+ self
+ end
+
+ def unset_columnattrib(idx, name)
+ tk_send('unsetcolumnattrib', _to_idx(idx), name)
+ self
+ end
+
+ def unset_rowattrib(idx, name)
+ tk_send('unsetrowattrib', _to_idx(idx), name)
+ self
+ end
+
def windowpath(idx)
window(tk_send('windowpath', _to_idx(idx)))
end
@@ -692,6 +967,11 @@ class << Tk::Tcllib::Tablelist
window(Tk.tk_call('::tablelist::getTablelistPath', descendant))
end
+ def getTablelistColumn(descendant)
+ num_or_str(Tk.tk_call('::tablelist::getTablelistColumn', headerlabel))
+ end
+
+
def convEventFields(descendant, x, y)
window(Tk.tk_call('::tablelist::convEventFields', descendant, x, y))
end
@@ -767,6 +1047,16 @@ class << Tk::Tcllib::Tablelist
Tk.tk_call('::tablelist::addTimeMentry', format, separator, gmt, name)
end
+ def addDateTimeMentry(format, date_sep, time_sep, gmt=false, name=None)
+ if gmt && gmt != None
+ gmt = '-gmt'
+ else
+ gmt = None
+ end
+ Tk.tk_call('::tablelist::addDateTimeMentry',
+ format, date_sep, time_sep, gmt, name)
+ end
+
def addFixedPointMentry(count1, count2, comma=false, name=None)
if comma && comma != None
comma = '-comma'
diff --git a/ext/tk/lib/tkextlib/tcllib/tablelist_tile.rb b/ext/tk/lib/tkextlib/tcllib/tablelist_tile.rb
index 0cb4eb735d..0a1458415e 100644
--- a/ext/tk/lib/tkextlib/tcllib/tablelist_tile.rb
+++ b/ext/tk/lib/tkextlib/tcllib/tablelist_tile.rb
@@ -9,7 +9,7 @@ require 'tk'
require 'tkextlib/tcllib.rb'
# TkPackage.require('tablelist_tile', '4.2')
-TkPackage.require('Tablelist_tile')
+TkPackage.require('tablelist_tile')
unless defined? Tk::Tcllib::Tablelist_usingTile
Tk::Tcllib::Tablelist_usingTile = true
@@ -19,6 +19,24 @@ requrie 'tkextlib/tcllib/tablelist_core'
module Tk
module Tcllib
+ class Tablelist
+ # commands related to tile Themems
+ def self.set_theme(theme)
+ Tk.tk_call('::tablelist::setTheme', theme)
+ end
+
+ def self.get_current_theme
+ Tk.tk_call('::tablelist::getCurrentTheme')
+ end
+
+ def self.get_theme_list
+ TkComm.simplelist(Tk.tk_call('::tablelist::getThemes'))
+ end
+ def self.set_theme_defaults
+ Tk.tk_call('::tablelist::setThemeDefaults')
+ end
+ end
+
Tablelist_Tile = Tablelist
TableList_Tile = Tablelist
end
diff --git a/ext/tk/lib/tkextlib/tcllib/toolbar.rb b/ext/tk/lib/tkextlib/tcllib/toolbar.rb
new file mode 100644
index 0000000000..6eae4eb3e1
--- /dev/null
+++ b/ext/tk/lib/tkextlib/tcllib/toolbar.rb
@@ -0,0 +1,175 @@
+#
+# tkextlib/tcllib/toolbar.rb
+# by Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)
+#
+# * Part of tcllib extension
+# * toolbar widget
+#
+
+require 'tk'
+require 'tkextlib/tcllib.rb'
+
+# TkPackage.require('widget::toolbar', '1.2')
+TkPackage.require('widget::toolbar')
+
+module Tk::Tcllib
+ module Widget
+ class Toolbar < TkWindow
+ PACKAGE_NAME = 'widget::toolbar'.freeze
+ def self.package_name
+ PACKAGE_NAME
+ end
+
+ def self.package_version
+ begin
+ TkPackage.require('widget::toolbar')
+ rescue
+ ''
+ end
+ end
+ end
+
+ module ToolbarItemConfig
+ include TkItemConfigMethod
+ end
+ end
+end
+
+
+class Tk::Tcllib::Widget::ToolbarItem < TkObject
+ include TkTreatTagFont
+
+ ToolbarItemID_TBL = TkCore::INTERP.create_table
+
+ TkCore::INTERP.init_ip_env{
+ TTagID_TBL.mutex.synchronize{ TTagID_TBL.clear }
+ }
+
+ def ToolbarItem.id2obj(tbar, id)
+ tpath = tbar.path
+ ToolbarItemID_TBL.mutex.synchronize{
+ if ToolbarItemID_TBL[tpath]
+ ToolbarItemID_TBL[tpath][id]? ToolbarItemID_TBL[tpath][id]: id
+ else
+ id
+ end
+ }
+ end
+
+ def initaialize(parent, *args)
+ @parent = @t = parent
+ @tpath = parent.path
+
+ @path = @id = @t.tk_send('add', *args)
+ # A same id is rejected by the Tcl function.
+
+ ToolbarItemID_TBL.mutex.synchronize{
+ ToolbarItemID_TBL[@id] = self
+ ToolbarItemID_TBL[@tpath] = {} unless ToolbarItemID_TBL[@tpath]
+ ToolbarItemID_TBL[@tpath][@id] = self
+ }
+ end
+
+ def [](key)
+ cget key
+ end
+
+ def []=(key,val)
+ configure key, val
+ val
+ end
+
+ def cget_tkstring(option)
+ @t.itemcget_tkstring(@id, option)
+ end
+ def cget(option)
+ @t.itemcget(@id, option)
+ end
+ def cget_strict(option)
+ @t.itemcget_strict(@id, option)
+ end
+
+ def configure(key, value=None)
+ @t.itemconfigure(@id, key, value)
+ self
+ end
+
+ def configinfo(key=nil)
+ @t.itemconfiginfo(@id, key)
+ end
+
+ def current_configinfo(key=nil)
+ @t.current_itemconfiginfo(@id, key)
+ end
+
+ def delete
+ @t.delete(@id)
+ end
+
+ def itemid
+ @t.itemid(@id)
+ end
+
+ def remove
+ @t.remove(@id)
+ end
+ def remove_with_destroy
+ @t.remove_with_destroy(@id)
+ end
+end
+
+class Tk::Tcllib::Widget::Toolbar
+ include Tk::Tcllib::Widget::ToolbarItemConfig
+
+ TkCommandNames = ['::widget::toolbar'.freeze].freeze
+
+ def __destroy_hook__
+ Tk::Tcllib::Widget::ToolbarItem::ToolbarItemID_TBL.mutex.synchronize{
+ Tk::Tcllib::Widget::ToolbarItem::ToolbarItemID_TBL.delete(@path)
+ }
+ end
+
+ def create_self(keys)
+ if keys and keys != None
+ tk_call_without_enc(self.class::TkCommandNames[0], @path,
+ *hash_kv(keys, true))
+ else
+ tk_call_without_enc(self.class::TkCommandNames[0], @path)
+ end
+ end
+ private :create_self
+
+ def getframe
+ window(tk_send('getframe'))
+ end
+ alias get_frame getframe
+
+ def add(*args)
+ Tk::Tcllib::Widget::Toolbar.new(self, *args)
+ end
+
+ def itemid(item)
+ window(tk_send('itemid'))
+ end
+
+ def items(pattern)
+ tk_split_simplelist(tk_send('items', pattern)).map{|id|
+ Tk::Tcllib::Widget::ToolbarItem.id2obj(self, id)
+ }
+ end
+
+ def remove(*items)
+ tk_send('remove', *items)
+ self
+ end
+
+ def remove_with_destroy(*items)
+ tk_send('remove', '-destroy', *items)
+ self
+ end
+
+ def delete(*items)
+ tk_send('delete', *items)
+ self
+ end
+end
diff --git a/ext/tk/lib/tkextlib/tcllib/tooltip.rb b/ext/tk/lib/tkextlib/tcllib/tooltip.rb
index 73b7df0c22..070e63a7b5 100644
--- a/ext/tk/lib/tkextlib/tcllib/tooltip.rb
+++ b/ext/tk/lib/tkextlib/tcllib/tooltip.rb
@@ -34,6 +34,8 @@ module Tk::Tcllib::Tooltip
extend TkCore
WidgetClassName = 'Tooltip'.freeze
+ WidgetClassNames[WidgetClassName] ||= self
+
def self.database_classname
self::WidgetClassName
end
@@ -64,6 +66,13 @@ module Tk::Tcllib::Tooltip
self.delay(millisecs)
end
+ def self.fade?
+ bool(tk_call_without_enc('::tooltip::tooltip', 'fade'))
+ end
+ def self.fade(mode)
+ tk_call_without_enc('::tooltip::tooltip', 'fade', mode)
+ end
+
def self.disable
tk_call_without_enc('::tooltip::tooltip', 'disable')
false
@@ -86,7 +95,7 @@ module Tk::Tcllib::Tooltip
else
args = msg
end
- tk_call_without_enc('::tooltip::tooltip', widget.path, *args)
+ tk_call('::tooltip::tooltip', widget.path, *args)
end
def self.erase(widget)
diff --git a/ext/tk/lib/tkextlib/tcllib/widget.rb b/ext/tk/lib/tkextlib/tcllib/widget.rb
index ed69f67ce6..57fdf7a575 100644
--- a/ext/tk/lib/tkextlib/tcllib/widget.rb
+++ b/ext/tk/lib/tkextlib/tcllib/widget.rb
@@ -26,10 +26,41 @@ module Tk::Tcllib
''
end
end
+
+ #--- followings may be private functions of tklib
+ def self.isa(compare_as, *args)
+ begin
+ return Tk.tk_call('::widget::isa', compare_as, *args)
+ rescue => e
+ if TkComm.bool(Tk.tk_call('info','command','::widget::isa')) ||
+ ! TkComm.bool(Tk.tk_call('info','command','::widget::validate'))
+ fail e
+ end
+ end
+ Tk.tk_call('::widget::validate', compare_as, *args)
+ end
+ def self.validate(compare_as, *args)
+ begin
+ return Tk.tk_call('::widget::validate', compare_as, *args)
+ rescue => e
+ if TkComm.bool(Tk.tk_call('info','command','::widget::validate')) ||
+ ! TkComm.bool(Tk.tk_call('info','command','::widget::isa'))
+ fail e
+ end
+ end
+ Tk.tk_call('::widget::isa', compare_as, *args)
+ end
end
end
module Tk::Tcllib::Widget
+ TkComm::TkExtlibAutoloadModule.unshift(self)
+
+ autoload :Calendar, 'tkextlib/tcllib/calendar'
+
+ autoload :Canvas_Sqmap, 'tkextlib/tcllib/canvas_sqmap'
+ autoload :Canvas_Zoom, 'tkextlib/tcllib/canvas_zoom'
+
autoload :Dialog, 'tkextlib/tcllib/dialog'
autoload :Panelframe, 'tkextlib/tcllib/panelframe'
@@ -45,4 +76,7 @@ module Tk::Tcllib::Widget
autoload :Superframe, 'tkextlib/tcllib/superframe'
autoload :SuperFrame, 'tkextlib/tcllib/superframe'
+
+ autoload :Toolbar, 'tkextlib/tcllib/toolbar'
+ autoload :ToolbarItem, 'tkextlib/tcllib/toolbar'
end
diff --git a/ext/tk/lib/tkextlib/tile.rb b/ext/tk/lib/tkextlib/tile.rb
index 09cf49faa6..6c11e212ae 100644
--- a/ext/tk/lib/tkextlib/tile.rb
+++ b/ext/tk/lib/tkextlib/tile.rb
@@ -18,10 +18,37 @@ require 'tkextlib/tile/setup.rb'
# TkPackage.require('tile', '0.7')
if Tk::TK_MAJOR_VERSION > 8 ||
(Tk::TK_MAJOR_VERSION == 8 && Tk::TK_MINOR_VERSION >= 5)
- TkPackage.require('tile') # for compatibility (version check of 'tile')
- verstr = TkPackage.require('Ttk')
+ begin
+ TkPackage.require('tile') # for compatibility (version check of 'tile')
+ rescue RuntimeError
+ # ignore, even if cannot find package 'tile'
+ end
+ pkgname = 'Ttk'
else
- verstr = TkPackage.require('tile')
+ pkgname = 'tile'
+end
+
+begin
+ verstr = TkPackage.require(pkgname)
+rescue RuntimeError
+ # define dummy methods
+ module Tk
+ module Tile
+ CANNOT_FIND_PACKAGE = true
+ def self.const_missing(sym)
+ TkPackage.require(PACKAGE_NAME)
+ end
+ def self.method_missing(*args)
+ TkPackage.require(PACKAGE_NAME)
+ end
+ end
+ end
+ Tk.__cannot_find_tk_package_for_widget_set__(:Ttk, pkgname)
+ if pkgname == 'Ttk'
+ verstr = Tk::TK_PATCHLEVEL # dummy
+ else
+ verstr = '0.7' # dummy
+ end
end
ver = verstr.split('.')
@@ -404,6 +431,9 @@ module Tk
autoload :TSeparator, 'tkextlib/tile/tseparator'
autoload :Separator, 'tkextlib/tile/tseparator'
+ autoload :TSpinbox, 'tkextlib/tile/tspinbox'
+ autoload :Spinbox, 'tkextlib/tile/tspinbox'
+
autoload :TSquare, 'tkextlib/tile/tsquare'
autoload :Square, 'tkextlib/tile/tsquare'
diff --git a/ext/tk/lib/tkextlib/tile/dialog.rb b/ext/tk/lib/tkextlib/tile/dialog.rb
index ef2d1fe577..b112e6152b 100644
--- a/ext/tk/lib/tkextlib/tile/dialog.rb
+++ b/ext/tk/lib/tkextlib/tile/dialog.rb
@@ -12,6 +12,12 @@ module Tk
end
end
+begin
+ TkPackage.require('ttk::dialog') # this may be required.
+rescue RuntimeError
+ # ignore
+end
+
class Tk::Tile::Dialog
TkCommandNames = ['::ttk::dialog'.freeze].freeze
diff --git a/ext/tk/lib/tkextlib/tile/sizegrip.rb b/ext/tk/lib/tkextlib/tile/sizegrip.rb
index c5068919a4..9947e0d870 100644
--- a/ext/tk/lib/tkextlib/tile/sizegrip.rb
+++ b/ext/tk/lib/tkextlib/tile/sizegrip.rb
@@ -13,17 +13,20 @@ module Tk
end
end
-Tk.__set_toplevel_aliases__(:Ttk, Tk::Tile::Sizegrip, :TkSizegrip, :TkSizeGrip)
-
-
class Tk::Tile::SizeGrip < TkWindow
include Tk::Tile::TileWidget
TkCommandNames = ['::ttk::sizegrip'.freeze].freeze
WidgetClassName = 'TSizegrip'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
def self.style(*args)
[self::WidgetClassName, *(args.map!{|a| _get_eval_string(a)})].join('.')
end
end
+
+#Tk.__set_toplevel_aliases__(:Ttk, Tk::Tile::Sizegrip,
+# :TkSizegrip, :TkSizeGrip)
+Tk.__set_loaded_toplevel_aliases__('tkextlib/tile/sizegrip.rb',
+ :Ttk, Tk::Tile::Sizegrip,
+ :TkSizegrip, :TkSizeGrip)
diff --git a/ext/tk/lib/tkextlib/tile/style.rb b/ext/tk/lib/tkextlib/tile/style.rb
index 26d79d378b..108d81f88b 100644
--- a/ext/tk/lib/tkextlib/tile/style.rb
+++ b/ext/tk/lib/tkextlib/tile/style.rb
@@ -233,6 +233,8 @@ class << Tk::Tile::Style
def element_create(name, type, *args)
if type == 'image' || type == :image
element_create_image(name, *args)
+ elsif type == 'vsapi' || type == :vsapi
+ element_create_vsapi(name, *args)
else
tk_call(TkCommandNames[0], 'element', 'create', name, type, *args)
end
@@ -279,6 +281,24 @@ class << Tk::Tile::Style
end
end
+ def element_create_vsapi(name, class_name, part_id, *args)
+ # supported on Tcl/Tk 8.6 or later
+
+ # argument check
+ if (state_map = args.shift || None)
+ if state_map.kind_of?(Hash)
+ opts = _symbolkey2str(state_map)
+ state_map = None
+ end
+ end
+ opts = args.shift || None
+ fail ArgumentError, "too many arguments" unless args.empty?
+
+ # define a Microsoft Visual Styles element
+ tk_call(TkCommandNames[0], 'element', 'create', name, 'vsapi',
+ class_name, part_id, state_map, opts)
+ end
+
def element_names()
list(tk_call(TkCommandNames[0], 'element', 'names'))
end
diff --git a/ext/tk/lib/tkextlib/tile/tbutton.rb b/ext/tk/lib/tkextlib/tile/tbutton.rb
index 5d7db10fe9..c852024842 100644
--- a/ext/tk/lib/tkextlib/tile/tbutton.rb
+++ b/ext/tk/lib/tkextlib/tile/tbutton.rb
@@ -13,9 +13,6 @@ module Tk
end
end
-Tk.__set_toplevel_aliases__(:Ttk, Tk::Tile::Button, :TkButton)
-
-
class Tk::Tile::TButton < Tk::Button
include Tk::Tile::TileWidget
@@ -25,9 +22,13 @@ class Tk::Tile::TButton < Tk::Button
TkCommandNames = ['::tbutton'.freeze].freeze
end
WidgetClassName = 'TButton'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
def self.style(*args)
[self::WidgetClassName, *(args.map!{|a| _get_eval_string(a)})].join('.')
end
end
+
+#Tk.__set_toplevel_aliases__(:Ttk, Tk::Tile::Button, :TkButton)
+Tk.__set_loaded_toplevel_aliases__('tkextlib/tile/tbutton.rb',
+ :Ttk, Tk::Tile::Button, :TkButton)
diff --git a/ext/tk/lib/tkextlib/tile/tcheckbutton.rb b/ext/tk/lib/tkextlib/tile/tcheckbutton.rb
index ca79d89e58..01751ede0f 100644
--- a/ext/tk/lib/tkextlib/tile/tcheckbutton.rb
+++ b/ext/tk/lib/tkextlib/tile/tcheckbutton.rb
@@ -15,10 +15,6 @@ module Tk
end
end
-Tk.__set_toplevel_aliases__(:Ttk, Tk::Tile::Checkbutton,
- :TkCheckbutton, :TkCheckButton)
-
-
class Tk::Tile::TCheckButton < Tk::CheckButton
include Tk::Tile::TileWidget
@@ -28,9 +24,15 @@ class Tk::Tile::TCheckButton < Tk::CheckButton
TkCommandNames = ['::tcheckbutton'.freeze].freeze
end
WidgetClassName = 'TCheckbutton'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
def self.style(*args)
[self::WidgetClassName, *(args.map!{|a| _get_eval_string(a)})].join('.')
end
end
+
+#Tk.__set_toplevel_aliases__(:Ttk, Tk::Tile::Checkbutton,
+# :TkCheckbutton, :TkCheckButton)
+Tk.__set_loaded_toplevel_aliases__('tkextlib/tile/tcheckbutton.rb',
+ :Ttk, Tk::Tile::Checkbutton,
+ :TkCheckbutton, :TkCheckButton)
diff --git a/ext/tk/lib/tkextlib/tile/tcombobox.rb b/ext/tk/lib/tkextlib/tile/tcombobox.rb
index b64372f1c9..b5ab827e2d 100644
--- a/ext/tk/lib/tkextlib/tile/tcombobox.rb
+++ b/ext/tk/lib/tkextlib/tile/tcombobox.rb
@@ -13,9 +13,6 @@ module Tk
end
end
-Tk.__set_toplevel_aliases__(:Ttk, Tk::Tile::Combobox, :TkCombobox)
-
-
class Tk::Tile::TCombobox < Tk::Tile::TEntry
include Tk::Tile::TileWidget
@@ -25,7 +22,7 @@ class Tk::Tile::TCombobox < Tk::Tile::TEntry
TkCommandNames = ['::tcombobox'.freeze].freeze
end
WidgetClassName = 'TCombobox'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
def __boolval_optkeys
super() << 'exportselection'
@@ -52,3 +49,7 @@ class Tk::Tile::TCombobox < Tk::Tile::TEntry
tk_send('set', val)
end
end
+
+#Tk.__set_toplevel_aliases__(:Ttk, Tk::Tile::Combobox, :TkCombobox)
+Tk.__set_loaded_toplevel_aliases__('tkextlib/tile/tcombobox.rb',
+ :Ttk, Tk::Tile::Combobox, :TkCombobox)
diff --git a/ext/tk/lib/tkextlib/tile/tentry.rb b/ext/tk/lib/tkextlib/tile/tentry.rb
index 0bea98dcd9..8d2633a774 100644
--- a/ext/tk/lib/tkextlib/tile/tentry.rb
+++ b/ext/tk/lib/tkextlib/tile/tentry.rb
@@ -13,9 +13,6 @@ module Tk
end
end
-Tk.__set_toplevel_aliases__(:Ttk, Tk::Tile::Entry, :TkEntry)
-
-
class Tk::Tile::TEntry < Tk::Entry
include Tk::Tile::TileWidget
@@ -25,7 +22,7 @@ class Tk::Tile::TEntry < Tk::Entry
TkCommandNames = ['::tentry'.freeze].freeze
end
WidgetClassName = 'TEntry'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
def __optkey_aliases
{:vcmd=>:validatecommand, :invcmd=>:invalidcommand}
@@ -46,3 +43,7 @@ class Tk::Tile::TEntry < Tk::Entry
[self::WidgetClassName, *(args.map!{|a| _get_eval_string(a)})].join('.')
end
end
+
+#Tk.__set_toplevel_aliases__(:Ttk, Tk::Tile::Entry, :TkEntry)
+Tk.__set_loaded_toplevel_aliases__('tkextlib/tile/tentry.rb',
+ :Ttk, Tk::Tile::Entry, :TkEntry)
diff --git a/ext/tk/lib/tkextlib/tile/tframe.rb b/ext/tk/lib/tkextlib/tile/tframe.rb
index 3b5f98bb6e..d6d4312628 100644
--- a/ext/tk/lib/tkextlib/tile/tframe.rb
+++ b/ext/tk/lib/tkextlib/tile/tframe.rb
@@ -13,9 +13,6 @@ module Tk
end
end
-Tk.__set_toplevel_aliases__(:Ttk, Tk::Tile::Frame, :TkFrame)
-
-
class Tk::Tile::TFrame < Tk::Frame
include Tk::Tile::TileWidget
@@ -25,9 +22,13 @@ class Tk::Tile::TFrame < Tk::Frame
TkCommandNames = ['::tframe'.freeze].freeze
end
WidgetClassName = 'TFrame'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
def self.style(*args)
[self::WidgetClassName, *(args.map!{|a| _get_eval_string(a)})].join('.')
end
end
+
+#Tk.__set_toplevel_aliases__(:Ttk, Tk::Tile::Frame, :TkFrame)
+Tk.__set_loaded_toplevel_aliases__('tkextlib/tile/tframe.rb',
+ :Ttk, Tk::Tile::Frame, :TkFrame)
diff --git a/ext/tk/lib/tkextlib/tile/tlabel.rb b/ext/tk/lib/tkextlib/tile/tlabel.rb
index 7d074d3842..55b98acc68 100644
--- a/ext/tk/lib/tkextlib/tile/tlabel.rb
+++ b/ext/tk/lib/tkextlib/tile/tlabel.rb
@@ -13,9 +13,6 @@ module Tk
end
end
-Tk.__set_toplevel_aliases__(:Ttk, Tk::Tile::Label, :TkLabel)
-
-
class Tk::Tile::TLabel < Tk::Label
include Tk::Tile::TileWidget
@@ -25,9 +22,13 @@ class Tk::Tile::TLabel < Tk::Label
TkCommandNames = ['::tlabel'.freeze].freeze
end
WidgetClassName = 'TLabel'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
def self.style(*args)
[self::WidgetClassName, *(args.map!{|a| _get_eval_string(a)})].join('.')
end
end
+
+#Tk.__set_toplevel_aliases__(:Ttk, Tk::Tile::Label, :TkLabel)
+Tk.__set_loaded_toplevel_aliases__('tkextlib/tile/tlabel.rb',
+ :Ttk, Tk::Tile::Label, :TkLabel)
diff --git a/ext/tk/lib/tkextlib/tile/tlabelframe.rb b/ext/tk/lib/tkextlib/tile/tlabelframe.rb
index 9f4a11990c..a34c98583f 100644
--- a/ext/tk/lib/tkextlib/tile/tlabelframe.rb
+++ b/ext/tk/lib/tkextlib/tile/tlabelframe.rb
@@ -15,10 +15,6 @@ module Tk
end
end
-Tk.__set_toplevel_aliases__(:Ttk, Tk::Tile::Labelframe,
- :TkLabelframe, :TkLabelFrame)
-
-
class Tk::Tile::TLabelframe < Tk::Tile::TFrame
include Tk::Tile::TileWidget
@@ -28,9 +24,15 @@ class Tk::Tile::TLabelframe < Tk::Tile::TFrame
TkCommandNames = ['::tlabelframe'.freeze].freeze
end
WidgetClassName = 'TLabelframe'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
def self.style(*args)
[self::WidgetClassName, *(args.map!{|a| _get_eval_string(a)})].join('.')
end
end
+
+#Tk.__set_toplevel_aliases__(:Ttk, Tk::Tile::Labelframe,
+# :TkLabelframe, :TkLabelFrame)
+Tk.__set_loaded_toplevel_aliases__('tkextlib/tile/tlabelframe.rb',
+ :Ttk, Tk::Tile::Labelframe,
+ :TkLabelframe, :TkLabelFrame)
diff --git a/ext/tk/lib/tkextlib/tile/tmenubutton.rb b/ext/tk/lib/tkextlib/tile/tmenubutton.rb
index 5612fb47eb..1cf553ec8c 100644
--- a/ext/tk/lib/tkextlib/tile/tmenubutton.rb
+++ b/ext/tk/lib/tkextlib/tile/tmenubutton.rb
@@ -15,10 +15,6 @@ module Tk
end
end
-Tk.__set_toplevel_aliases__(:Ttk, Tk::Tile::Menubutton,
- :TkMenubutton, :TkMenuButton)
-
-
class Tk::Tile::TMenubutton < Tk::Menubutton
include Tk::Tile::TileWidget
@@ -28,9 +24,15 @@ class Tk::Tile::TMenubutton < Tk::Menubutton
TkCommandNames = ['::tmenubutton'.freeze].freeze
end
WidgetClassName = 'TMenubutton'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
def self.style(*args)
[self::WidgetClassName, *(args.map!{|a| _get_eval_string(a)})].join('.')
end
end
+
+#Tk.__set_toplevel_aliases__(:Ttk, Tk::Tile::Menubutton,
+# :TkMenubutton, :TkMenuButton)
+Tk.__set_loaded_toplevel_aliases__('tkextlib/tile/tmenubutton.rb',
+ :Ttk, Tk::Tile::Menubutton,
+ :TkMenubutton, :TkMenuButton)
diff --git a/ext/tk/lib/tkextlib/tile/tnotebook.rb b/ext/tk/lib/tkextlib/tile/tnotebook.rb
index d02e05b211..9e27e2c1fd 100644
--- a/ext/tk/lib/tkextlib/tile/tnotebook.rb
+++ b/ext/tk/lib/tkextlib/tile/tnotebook.rb
@@ -13,9 +13,6 @@ module Tk
end
end
-Tk.__set_toplevel_aliases__(:Ttk, Tk::Tile::Notebook, :TkNotebook)
-
-
class Tk::Tile::TNotebook < TkWindow
################################
include TkItemConfigMethod
@@ -46,8 +43,11 @@ class Tk::Tile::TNotebook < TkWindow
alias tabconfiginfo itemconfiginfo
alias current_tabconfiginfo current_itemconfiginfo
+ def tabcget_tkstring(tagOrId, option)
+ tk_split_simplelist(tk_call_without_enc(*(__item_confinfo_cmd(tagid(tagOrId)) << "-#{option}")), false, true)[-1]
+ end
def tabcget_strict(tagOrId, option)
- tabconfigure(tagOrId, option)[-1]
+ tabconfiginfo(tagOrId, option)[-1]
end
def tabcget(tagOrId, option)
unless TkItemConfigMethod.__IGNORE_UNKNOWN_CONFIGURE_OPTION__
@@ -80,7 +80,7 @@ class Tk::Tile::TNotebook < TkWindow
TkCommandNames = ['::tnotebook'.freeze].freeze
end
WidgetClassName = 'TNotebook'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
def self.style(*args)
[self::WidgetClassName, *(args.map!{|a| _get_eval_string(a)})].join('.')
@@ -111,6 +111,10 @@ class Tk::Tile::TNotebook < TkWindow
self
end
+ def hide(idx)
+ tk_send('hide', idx)
+ end
+
def index(idx)
number(tk_send('index', idx))
end
@@ -137,3 +141,7 @@ class Tk::Tile::TNotebook < TkWindow
list(tk_send('tabs'))
end
end
+
+#Tk.__set_toplevel_aliases__(:Ttk, Tk::Tile::Notebook, :TkNotebook)
+Tk.__set_loaded_toplevel_aliases__('tkextlib/tile/tnotebook.rb',
+ :Ttk, Tk::Tile::Notebook, :TkNotebook)
diff --git a/ext/tk/lib/tkextlib/tile/tpaned.rb b/ext/tk/lib/tkextlib/tile/tpaned.rb
index aff6cac4bb..d6ad234559 100644
--- a/ext/tk/lib/tkextlib/tile/tpaned.rb
+++ b/ext/tk/lib/tkextlib/tile/tpaned.rb
@@ -13,10 +13,6 @@ module Tk
end
end
-Tk.__set_toplevel_aliases__(:Ttk, Tk::Tile::Panedwindow,
- :TkPanedwindow, :TkPanedWindow)
-
-
class Tk::Tile::TPaned < TkWindow
include Tk::Tile::TileWidget
@@ -30,7 +26,7 @@ class Tk::Tile::TPaned < TkWindow
TkCommandNames = ['::tpaned'.freeze].freeze
end
WidgetClassName = 'TPaned'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
def self.style(*args)
[self::WidgetClassName, *(args.map!{|a| _get_eval_string(a)})].join('.')
@@ -66,6 +62,12 @@ class Tk::Tile::TPaned < TkWindow
self
end
+ def panecget_tkstring(pane, slot)
+ pane = _epath(pane)
+ tk_send_without_enc('pane', pane, "-#{slot}")
+ end
+ alias pane_cget_tkstring panecget_tkstring
+
def panecget_strict(pane, slot)
pane = _epath(pane)
tk_tcl2ruby(tk_send_without_enc('pane', pane, "-#{slot}"))
@@ -221,11 +223,23 @@ class Tk::Tile::TPaned < TkWindow
end
alias current_pane_configinfo current_paneconfiginfo
+ def panes
+ tk_split_simplelist(tk_send_without_enc('panes')).map{|w|
+ (obj = window(w))? obj: w
+ }
+ end
+
def identify(x, y)
- list(tk_send_without_enc('identify', x, y))
+ num_or_nil(tk_send_without_enc('identify', x, y))
end
def sashpos(idx, newpos=None)
num_or_str(tk_send_without_enc('sashpos', idx, newpos))
end
end
+
+#Tk.__set_toplevel_aliases__(:Ttk, Tk::Tile::Panedwindow,
+# :TkPanedwindow, :TkPanedWindow)
+Tk.__set_loaded_toplevel_aliases__('tkextlib/tile/tpaned.rb',
+ :Ttk, Tk::Tile::Panedwindow,
+ :TkPanedwindow, :TkPanedWindow)
diff --git a/ext/tk/lib/tkextlib/tile/tprogressbar.rb b/ext/tk/lib/tkextlib/tile/tprogressbar.rb
index f786d370dd..0c9d15e1b9 100644
--- a/ext/tk/lib/tkextlib/tile/tprogressbar.rb
+++ b/ext/tk/lib/tkextlib/tile/tprogressbar.rb
@@ -13,9 +13,6 @@ module Tk
end
end
-Tk.__set_toplevel_aliases__(:Ttk, Tk::Tile::Progressbar, :TkProgressbar)
-
-
class Tk::Tile::TProgressbar
include Tk::Tile::TileWidget
@@ -25,7 +22,7 @@ class Tk::Tile::TProgressbar
TkCommandNames = ['::tprogressbar'.freeze].freeze
end
WidgetClassName = 'TProgressbar'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
def self.style(*args)
[self::WidgetClassName, *(args.map!{|a| _get_eval_string(a)})].join('.')
@@ -54,3 +51,7 @@ class Tk::Tile::TProgressbar
end
end
end
+
+#Tk.__set_toplevel_aliases__(:Ttk, Tk::Tile::Progressbar, :TkProgressbar)
+Tk.__set_loaded_toplevel_aliases__('tkextlib/tile/tprogressbar.rb',
+ :Ttk, Tk::Tile::Progressbar, :TkProgressbar)
diff --git a/ext/tk/lib/tkextlib/tile/tradiobutton.rb b/ext/tk/lib/tkextlib/tile/tradiobutton.rb
index 72e72170cb..5dbf260666 100644
--- a/ext/tk/lib/tkextlib/tile/tradiobutton.rb
+++ b/ext/tk/lib/tkextlib/tile/tradiobutton.rb
@@ -15,10 +15,6 @@ module Tk
end
end
-Tk.__set_toplevel_aliases__(:Ttk, Tk::Tile::Radiobutton,
- :TkRadiobutton, :TkRadioButton)
-
-
class Tk::Tile::TRadioButton < Tk::RadioButton
include Tk::Tile::TileWidget
@@ -28,9 +24,15 @@ class Tk::Tile::TRadioButton < Tk::RadioButton
TkCommandNames = ['::tradiobutton'.freeze].freeze
end
WidgetClassName = 'TRadiobutton'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
def self.style(*args)
[self::WidgetClassName, *(args.map!{|a| _get_eval_string(a)})].join('.')
end
end
+
+#Tk.__set_toplevel_aliases__(:Ttk, Tk::Tile::Radiobutton,
+# :TkRadiobutton, :TkRadioButton)
+Tk.__set_loaded_toplevel_aliases__('tkextlib/tile/tradiobutton.rb',
+ :Ttk, Tk::Tile::Radiobutton,
+ :TkRadiobutton, :TkRadioButton)
diff --git a/ext/tk/lib/tkextlib/tile/treeview.rb b/ext/tk/lib/tkextlib/tile/treeview.rb
index 2046be8a69..70db3d6d78 100644
--- a/ext/tk/lib/tkextlib/tile/treeview.rb
+++ b/ext/tk/lib/tkextlib/tile/treeview.rb
@@ -12,9 +12,6 @@ module Tk
end
end
-Tk.__set_toplevel_aliases__(:Ttk, Tk::Tile::Treeview, :TkTreeview)
-
-
module Tk::Tile::TreeviewConfig
include TkItemConfigMethod
@@ -519,16 +516,20 @@ module Tk::Tile::TreeviewConfig
end
end
+ alias __itemcget_tkstring itemcget_tkstring
alias __itemcget itemcget
alias __itemcget_strict itemcget_strict
alias __itemconfigure itemconfigure
alias __itemconfiginfo itemconfiginfo
alias __current_itemconfiginfo current_itemconfiginfo
- private :__itemcget, :__itemcget_strict
+ private :__itemcget_tkstring, :__itemcget, :__itemcget_strict
private :__itemconfigure, :__itemconfiginfo, :__current_itemconfiginfo
# Treeview Item
+ def itemcget_tkstring(tagOrId, option)
+ __itemcget_tkstring([:item, tagOrId], option)
+ end
def itemcget(tagOrId, option)
__itemcget([:item, tagOrId], option)
end
@@ -546,6 +547,9 @@ module Tk::Tile::TreeviewConfig
end
# Treeview Column
+ def columncget_tkstring(tagOrId, option)
+ __itemcget_tkstring([:column, tagOrId], option)
+ end
def columncget(tagOrId, option)
__itemcget([:column, tagOrId], option)
end
@@ -561,6 +565,7 @@ module Tk::Tile::TreeviewConfig
def current_columnconfiginfo(tagOrId, slot=nil)
__current_itemconfiginfo([:column, tagOrId], slot)
end
+ alias column_cget_tkstring columncget_tkstring
alias column_cget columncget
alias column_cget_strict columncget_strict
alias column_configure columnconfigure
@@ -568,6 +573,19 @@ module Tk::Tile::TreeviewConfig
alias current_column_configinfo current_columnconfiginfo
# Treeview Heading
+ def headingcget_tkstring(tagOrId, option)
+ if __tile_specific_item_optkeys([:heading, tagOrId]).index(option.to_s)
+ begin
+ # On tile-0.7.{2-8}, 'state' options has no '-' at its head.
+ tk_call(*(__item_cget_cmd([:heading, tagOrId]) << option.to_s))
+ rescue
+ # Maybe, 'state' option has '-' in future.
+ tk_call(*(__item_cget_cmd([:heading, tagOrId]) << "-#{option}"))
+ end
+ else
+ __itemcget_tkstring([:heading, tagOrId], option)
+ end
+ end
def headingcget_strict(tagOrId, option)
if __tile_specific_item_optkeys([:heading, tagOrId]).index(option.to_s)
begin
@@ -630,6 +648,7 @@ module Tk::Tile::TreeviewConfig
def current_headingconfiginfo(tagOrId, slot=nil)
__current_itemconfiginfo([:heading, tagOrId], slot)
end
+ alias heading_cget_tkstring headingcget_tkstring
alias heading_cget headingcget
alias heading_cget_strict headingcget_strict
alias heading_configure headingconfigure
@@ -637,6 +656,9 @@ module Tk::Tile::TreeviewConfig
alias current_heading_configinfo current_headingconfiginfo
# Treeview Tag
+ def tagcget_tkstring(tagOrId, option)
+ __itemcget_tkstring([:tag, :configure, tagOrId], option)
+ end
def tagcget(tagOrId, option)
__itemcget([:tag, :configure, tagOrId], option)
end
@@ -652,6 +674,7 @@ module Tk::Tile::TreeviewConfig
def current_tagconfiginfo(tagOrId, slot=nil)
__current_itemconfiginfo([:tag, :configure, tagOrId], slot)
end
+ alias tag_cget_tkstring tagcget_tkstring
alias tag_cget tagcget
alias tag_cget_strict tagcget_strict
alias tag_configure tagconfigure
@@ -737,6 +760,9 @@ class Tk::Tile::Treeview::Item < TkObject
@id
end
+ def cget_tkstring(option)
+ @t.itemcget_tkstring(@id, option)
+ end
def cget(option)
@t.itemcget(@id, option)
end
@@ -769,6 +795,11 @@ class Tk::Tile::Treeview::Item < TkObject
self
end
+ def tag_has?(tag)
+ @t.tag_has?(tag, @id)
+ end
+ alias has_tag? tag_has?
+
def bbox(column=None)
@t.bbox(@id, column)
end
@@ -907,7 +938,7 @@ class Tk::Tile::Treeview::Tag < TkObject
TagID_TBL = TkCore::INTERP.create_table
- (Tag_ID = ['tile_treeview_tag'.freeze, '00000'.taint]).instance_eval{
+ (Tag_ID = ['tile_treeview_tag'.freeze, TkUtil.untrust('00000')]).instance_eval{
@mutex = Mutex.new
def mutex; @mutex; end
freeze
@@ -950,6 +981,11 @@ class Tk::Tile::Treeview::Tag < TkObject
@id
end
+ def tag_has?(item)
+ @t.tag_has?(@id, item)
+ end
+ alias added? tag_has?
+
def bind(seq, *args)
if TkComm._callback_entry?(args[0]) || !block_given?
cmd = args.shift
@@ -979,6 +1015,9 @@ class Tk::Tile::Treeview::Tag < TkObject
@t.tag_bindinfo(@id, seq)
end
+ def cget_tkstring(option)
+ @t.tagcget_tkstring(@id, option)
+ end
def cget(option)
@t.tagcget(@id, option)
end
@@ -1014,7 +1053,7 @@ class Tk::Tile::Treeview < TkWindow
TkCommandNames = ['::treeview'.freeze].freeze
end
WidgetClassName = 'Treeview'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
def __destroy_hook__
Tk::Tile::Treeview::Item::ItemID_TBL.mutex.synchronize{
@@ -1098,14 +1137,29 @@ class Tk::Tile::Treeview < TkWindow
end
end
+ def identify_region(x, y)
+ tk_send('identify', 'region', x, y)
+ end
+
+ def identify_item(x, y)
+ id = tk_send('identify', 'item', x, y)
+ (id.empty?)? nil: Tk::Tile::Treeview::Item.id2obj(self, id)
+ end
+
+ def identify_element(x, y)
+ tk_send('identify', 'element', x, y)
+ end
+
def row_identify(x, y)
id = tk_send('identify', 'row', x, y)
(id.empty?)? nil: Tk::Tile::Treeview::Item.id2obj(self, id)
end
+ alias identify_row row_identify
def column_identify(x, y)
tk_send('identify', 'column', x, y)
end
+ alias identify_column column_identify
def index(item)
number(tk_send('index', item))
@@ -1204,6 +1258,15 @@ class Tk::Tile::Treeview < TkWindow
self
end
+ def tag_has?(tag, item)
+ bool(tk_send('tag', 'has', tagid(tag), tagid(item)))
+ end
+ def tag_has(tag)
+ tk_split_simplelist(tk_send('tag', 'has', tagid(tag))).collect{|id|
+ Tk::Tile::Treeview::Item.id2obj(self, id)
+ }
+ end
+
def tag_bind(tag, seq, *args)
if TkComm._callback_entry?(args[0]) || !block_given?
cmd = args.shift
@@ -1237,3 +1300,7 @@ class Tk::Tile::Treeview < TkWindow
end
alias tagbindinfo tag_bindinfo
end
+
+#Tk.__set_toplevel_aliases__(:Ttk, Tk::Tile::Treeview, :TkTreeview)
+Tk.__set_loaded_toplevel_aliases__('tkextlib/tile/treeview.rb',
+ :Ttk, Tk::Tile::Treeview, :TkTreeview)
diff --git a/ext/tk/lib/tkextlib/tile/tscale.rb b/ext/tk/lib/tkextlib/tile/tscale.rb
index 2c46fd9bd4..7eefcef731 100644
--- a/ext/tk/lib/tkextlib/tile/tscale.rb
+++ b/ext/tk/lib/tkextlib/tile/tscale.rb
@@ -17,9 +17,6 @@ module Tk
end
end
-Tk.__set_toplevel_aliases__(:Ttk, Tk::Tile::Scale, :TkScale)
-
-
class Tk::Tile::TScale < Tk::Scale
include Tk::Tile::TileWidget
@@ -29,11 +26,13 @@ class Tk::Tile::TScale < Tk::Scale
TkCommandNames = ['::tscale'.freeze].freeze
end
WidgetClassName = 'TScale'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
def self.style(*args)
[self::WidgetClassName, *(args.map!{|a| _get_eval_string(a)})].join('.')
end
+
+ alias identify ttk_identify
end
class Tk::Tile::TProgress < Tk::Tile::TScale
@@ -45,9 +44,13 @@ class Tk::Tile::TProgress < Tk::Tile::TScale
TkCommandNames = ['::tprogress'.freeze].freeze
end
WidgetClassName = 'TProgress'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
def self.style(*args)
[self::WidgetClassName, *(args.map!{|a| _get_eval_string(a)})].join('.')
end
end
+
+#Tk.__set_toplevel_aliases__(:Ttk, Tk::Tile::Scale, :TkScale)
+Tk.__set_loaded_toplevel_aliases__('tkextlib/tile/tscale.rb',
+ :Ttk, Tk::Tile::Scale, :TkScale)
diff --git a/ext/tk/lib/tkextlib/tile/tscrollbar.rb b/ext/tk/lib/tkextlib/tile/tscrollbar.rb
index 163b8f4713..c6bba5810b 100644
--- a/ext/tk/lib/tkextlib/tile/tscrollbar.rb
+++ b/ext/tk/lib/tkextlib/tile/tscrollbar.rb
@@ -13,9 +13,6 @@ module Tk
end
end
-Tk.__set_toplevel_aliases__(:Ttk, Tk::Tile::Scrollbar, :TkScrollbar)
-
-
class Tk::Tile::TScrollbar < Tk::Scrollbar
include Tk::Tile::TileWidget
@@ -25,13 +22,21 @@ class Tk::Tile::TScrollbar < Tk::Scrollbar
TkCommandNames = ['::tscrollbar'.freeze].freeze
end
WidgetClassName = 'TScrollbar'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
def self.style(*args)
[self::WidgetClassName, *(args.map!{|a| _get_eval_string(a)})].join('.')
end
+
+ alias identify ttk_identify
end
+#Tk.__set_toplevel_aliases__(:Ttk, Tk::Tile::Scrollbar, :TkScrollbar)
+Tk.__set_loaded_toplevel_aliases__('tkextlib/tile/tscrollbar.rb',
+ :Ttk, Tk::Tile::Scrollbar, :TkScrollbar)
+
+#######################################################################
+
class Tk::Tile::XScrollbar < Tk::Tile::TScrollbar
def create_self(keys)
keys = {} unless keys
@@ -50,5 +55,9 @@ class Tk::Tile::YScrollbar < Tk::Tile::TScrollbar
private :create_self
end
-Tk.__set_toplevel_aliases__(:Ttk, Tk::Tile::XScrollbar, :TkXScrollbar)
-Tk.__set_toplevel_aliases__(:Ttk, Tk::Tile::YScrollbar, :TkYScrollbar)
+#Tk.__set_toplevel_aliases__(:Ttk, Tk::Tile::XScrollbar, :TkXScrollbar)
+#Tk.__set_toplevel_aliases__(:Ttk, Tk::Tile::YScrollbar, :TkYScrollbar)
+Tk.__set_loaded_toplevel_aliases__('tkextlib/tile/tscrollbar.rb',
+ :Ttk, Tk::Tile::XScrollbar, :TkXScrollbar)
+Tk.__set_loaded_toplevel_aliases__('tkextlib/tile/tscrollbar.rb',
+ :Ttk, Tk::Tile::YScrollbar, :TkYScrollbar)
diff --git a/ext/tk/lib/tkextlib/tile/tseparator.rb b/ext/tk/lib/tkextlib/tile/tseparator.rb
index 30fae2c525..ffd2f6f89f 100644
--- a/ext/tk/lib/tkextlib/tile/tseparator.rb
+++ b/ext/tk/lib/tkextlib/tile/tseparator.rb
@@ -13,9 +13,6 @@ module Tk
end
end
-Tk.__set_toplevel_aliases__(:Ttk, Tk::Tile::Separator, :TkSeparator)
-
-
class Tk::Tile::TSeparator < TkWindow
include Tk::Tile::TileWidget
@@ -25,9 +22,13 @@ class Tk::Tile::TSeparator < TkWindow
TkCommandNames = ['::tseparator'.freeze].freeze
end
WidgetClassName = 'TSeparator'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
def self.style(*args)
[self::WidgetClassName, *(args.map!{|a| _get_eval_string(a)})].join('.')
end
end
+
+#Tk.__set_toplevel_aliases__(:Ttk, Tk::Tile::Separator, :TkSeparator)
+Tk.__set_loaded_toplevel_aliases__('tkextlib/tile/tseparator.rb',
+ :Ttk, Tk::Tile::Separator, :TkSeparator)
diff --git a/ext/tk/lib/tkextlib/tile/tspinbox.rb b/ext/tk/lib/tkextlib/tile/tspinbox.rb
new file mode 100644
index 0000000000..2f2d73c5ab
--- /dev/null
+++ b/ext/tk/lib/tkextlib/tile/tspinbox.rb
@@ -0,0 +1,107 @@
+#
+# ttk::spinbox widget (Tcl/Tk 8.6b1 or later)
+# by Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)
+#
+require 'tk'
+require 'tkextlib/tile.rb'
+
+module Tk
+ module Tile
+ class TSpinbox < Tk::Tile::TEntry
+ end
+ Spinbox = TSpinbox
+ end
+end
+
+class Tk::Tile::TSpinbox < Tk::Tile::TEntry
+ include Tk::Tile::TileWidget
+
+ if Tk::Tile::USE_TTK_NAMESPACE
+ TkCommandNames = ['::ttk::spinbox'.freeze].freeze
+ else
+ TkCommandNames = ['::tspinbox'.freeze].freeze
+ end
+ WidgetClassName = 'TSpinbox'.freeze
+ WidgetClassNames[WidgetClassName] ||= self
+
+ class SpinCommand < TkValidateCommand
+ class ValidateArgs < TkUtil::CallbackSubst
+ KEY_TBL = [
+ [ ?d, ?s, :direction ],
+ [ ?s, ?e, :current ],
+ [ ?W, ?w, :widget ],
+ nil
+ ]
+
+ PROC_TBL = [
+ [ ?s, TkComm.method(:string) ],
+ [ ?w, TkComm.method(:window) ],
+
+ [ ?e, proc{|val|
+ #enc = Tk.encoding
+ enc = ((Tk.encoding)? Tk.encoding : Tk.encoding_system)
+ if enc
+ Tk.fromUTF8(TkComm::string(val), enc)
+ else
+ TkComm::string(val)
+ end
+ }
+ ],
+
+ nil
+ ]
+
+ _setup_subst_table(KEY_TBL, PROC_TBL);
+
+ def self.ret_val(val)
+ (val)? '1': '0'
+ end
+ end
+
+ def self._config_keys
+ ['command']
+ end
+ end
+
+ def __validation_class_list
+ super() << SpinCommand
+ end
+
+ Tk::ValidateConfigure.__def_validcmd(binding, SpinCommand)
+
+ def __boolval_optkeys
+ super() << 'wrap'
+ end
+ private :__boolval_optkeys
+
+ def __strval_optkeys
+ super() << 'buttonbackground' << 'format'
+ end
+ private :__strval_optkeys
+
+ def __listval_optkeys
+ super() << 'values'
+ end
+ private :__listval_optkeys
+
+ def self.style(*args)
+ [self::WidgetClassName, *(args.map!{|a| _get_eval_string(a)})].join('.')
+ end
+
+ def current
+ number(tk_send_without_enc('current'))
+ end
+ def current=(idx)
+ tk_send('current', idx)
+ end
+
+ def set(val)
+ tk_send('set', val)
+ end
+
+ alias identify ttk_identify
+end
+
+#Tk.__set_toplevel_aliases__(:Ttk, Tk::Tile::Spinbox, :TkSpinbox)
+Tk.__set_loaded_toplevel_aliases__('tkextlib/tile/tspinbox.rb',
+ :Ttk, Tk::Tile::Spinbox, :TkSpinbox)
diff --git a/ext/tk/lib/tkextlib/tile/tsquare.rb b/ext/tk/lib/tkextlib/tile/tsquare.rb
index 600b55e4e7..a81cd7b98a 100644
--- a/ext/tk/lib/tkextlib/tile/tsquare.rb
+++ b/ext/tk/lib/tkextlib/tile/tsquare.rb
@@ -22,7 +22,7 @@ class Tk::Tile::TSquare < TkWindow
TkCommandNames = ['::tsquare'.freeze].freeze
end
WidgetClassName = 'TSquare'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
def self.style(*args)
[self::WidgetClassName, *(args.map!{|a| _get_eval_string(a)})].join('.')
diff --git a/ext/tk/lib/tkextlib/tkHTML/htmlwidget.rb b/ext/tk/lib/tkextlib/tkHTML/htmlwidget.rb
index 522ebfb92c..b9ee90aace 100644
--- a/ext/tk/lib/tkextlib/tkHTML/htmlwidget.rb
+++ b/ext/tk/lib/tkextlib/tkHTML/htmlwidget.rb
@@ -36,7 +36,7 @@ end
class Tk::HTML_Widget::ClippingWindow
WidgetClassName = 'HtmlClip'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
HtmlClip_TBL = TkCore::INTERP.create_table
@@ -101,7 +101,7 @@ class Tk::HTML_Widget
TkCommandNames = ['html'.freeze].freeze
WidgetClassName = 'Html'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
def create_self(keys)
if keys and keys != None
diff --git a/ext/tk/lib/tkextlib/tkimg/README b/ext/tk/lib/tkextlib/tkimg/README
index 65d36365d0..f5981cb98c 100644
--- a/ext/tk/lib/tkextlib/tkimg/README
+++ b/ext/tk/lib/tkextlib/tkimg/README
@@ -2,7 +2,7 @@
[ Tcl/Tk Image formats (TkImg) support ]
TkImg contains a collection of format handlers for the Tk photo
-image type, and a new image type, pixmaps.
+image type, and a new image type, pixmaps.
Supported formats of TkImg version 1.3 are
-------------------------------------------------------
diff --git a/ext/tk/lib/tkextlib/tktable/tktable.rb b/ext/tk/lib/tkextlib/tktable/tktable.rb
index 12a2dd75bf..bc7a6c9a2e 100644
--- a/ext/tk/lib/tkextlib/tktable/tktable.rb
+++ b/ext/tk/lib/tkextlib/tktable/tktable.rb
@@ -74,6 +74,9 @@ module Tk::TkTable::ConfigMethod
end
private :__item_val2ruby_optkeys
+ def tag_cget_tkstring(tagOrId, option)
+ itemcget_tkstring(['tag', tagid(tagOrId)], option)
+ end
def tag_cget(tagOrId, option)
itemcget(['tag', tagid(tagOrId)], option)
end
@@ -90,6 +93,9 @@ module Tk::TkTable::ConfigMethod
current_itemconfiginfo(['tag', tagid(tagOrId)], slot)
end
+ def window_cget_tkstring(tagOrId, option)
+ itemcget_tkstring(['window', tagid(tagOrId)], option)
+ end
def window_cget(tagOrId, option)
itemcget(['window', tagid(tagOrId)], option)
end
@@ -114,7 +120,7 @@ module Tk::TkTable::ConfigMethod
current_itemconfiginfo(['window', tagid(tagOrId)], slot)
end
- private :itemcget, :itemcget_strict
+ private :itemcget_tkstring, :itemcget, :itemcget_strict
private :itemconfigure, :itemconfiginfo, :current_itemconfiginfo
end
@@ -125,7 +131,7 @@ class Tk::TkTable::CellTag
CellTagID_TBL = TkCore::INTERP.create_table
- (CellTag_ID = ['tktbl:celltag'.freeze, '00000'.taint]).instance_eval{
+ (CellTag_ID = ['tktbl:celltag'.freeze, TkUtil.untrust('00000')]).instance_eval{
@mutex = Mutex.new
def mutex; @mutex; end
freeze
@@ -197,6 +203,9 @@ class Tk::TkTable::CellTag
@t.tag_lower(@id, target)
end
+ def cget_tkstring(key)
+ @t.tag_cget_tkstring(@id, key)
+ end
def cget(key)
@t.tag_cget(@id, key)
end
@@ -253,7 +262,7 @@ end
class Tk::TkTable
TkCommandNames = ['table'.freeze].freeze
WidgetClassName = 'Table'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
include Scrollable
include Tk::TkTable::ConfigMethod
diff --git a/ext/tk/lib/tkextlib/treectrl/tktreectrl.rb b/ext/tk/lib/tkextlib/treectrl/tktreectrl.rb
index 0c3de94baa..1879a531ae 100644
--- a/ext/tk/lib/tkextlib/treectrl/tktreectrl.rb
+++ b/ext/tk/lib/tkextlib/treectrl/tktreectrl.rb
@@ -322,7 +322,7 @@ module Tk::TreeCtrl::ConfigMethod
def __item_boolval_optkeys(id)
if id == 'debug'
- ['data', 'display', 'enable']
+ ['data', 'display', 'enable', 'span', 'textlayout']
elsif id == 'dragimage'
['visible']
elsif id == 'marquee'
@@ -330,7 +330,7 @@ module Tk::TreeCtrl::ConfigMethod
elsif id.kind_of?(Array)
case id[0]
when 'item'
- ['button', 'visible']
+ ['visible', 'wrap', 'open', 'returnid', 'visible']
when 'column'
if id[1] == 'drag'
['enable']
@@ -339,11 +339,11 @@ module Tk::TreeCtrl::ConfigMethod
'visible', 'widthhack']
end
when 'element'
- ['draw', 'filled', 'showfocus', 'destroy']
+ ['draw', 'filled', 'showfocus', 'clip', 'destroy']
when 'notify'
['active']
when 'style'
- ['detach']
+ ['detach', 'indent', 'visible']
else
if id[0].kind_of?(Array) && id[0][1] == 'element'
['filled', 'showfocus']
@@ -401,6 +401,20 @@ module Tk::TreeCtrl::ConfigMethod
end
private :__item_listval_optkeys
+ def __item_val2ruby_optkeys(id)
+ if id.kind_of?(Array)
+ case id[0]
+ when 'item'
+ { 'button' => proc{|id,val| (val == 'auto')? val: TkComm.bool(val)} }
+ else
+ []
+ end
+ else
+ []
+ end
+ end
+ private :__item_val2ruby_optkeys
+
def __item_keyonly_optkeys(id) # { def_key=>(undef_key|nil), ... }
{
'notreally'=>nil,
@@ -414,6 +428,9 @@ module Tk::TreeCtrl::ConfigMethod
end
private :__item_keyonly_optkeys
+ def column_cget_tkstring(tagOrId, option)
+ itemcget_tkstring(['column', tagOrId], option)
+ end
def column_cget(tagOrId, option)
itemcget(['column', tagOrId], option)
end
@@ -430,6 +447,9 @@ module Tk::TreeCtrl::ConfigMethod
current_itemconfiginfo(['column', tagOrId], slot)
end
+ def column_dragcget_tkstring(option)
+ itemcget_tkstring(['column', 'drag'], option)
+ end
def column_dragcget(option)
itemcget(['column', 'drag'], option)
end
@@ -446,6 +466,9 @@ module Tk::TreeCtrl::ConfigMethod
current_itemconfiginfo(['column', 'drag'], slot)
end
+ def debug_cget_tkstring(option)
+ itemcget_tkstring('debug', option)
+ end
def debug_cget(option)
itemcget('debug', option)
end
@@ -462,6 +485,9 @@ module Tk::TreeCtrl::ConfigMethod
current_itemconfiginfo('debug', slot)
end
+ def dragimage_cget_tkstring(option)
+ itemcget_tkstring('dragimage', option)
+ end
def dragimage_cget(option)
itemcget('dragimage', option)
end
@@ -478,6 +504,9 @@ module Tk::TreeCtrl::ConfigMethod
current_itemconfiginfo('dragimage', slot)
end
+ def element_cget_tkstring(tagOrId, option)
+ itemcget_tkstring(['element', tagOrId], option)
+ end
def element_cget(tagOrId, option)
itemcget(['element', tagOrId], option)
end
@@ -494,6 +523,9 @@ module Tk::TreeCtrl::ConfigMethod
current_itemconfiginfo(['element', tagOrId], slot)
end
+ def item_cget_tkstring(tagOrId, option)
+ itemcget_tkstring(['item', tagOrId], option)
+ end
def item_cget(tagOrId, option)
itemcget(['item', tagOrId], option)
end
@@ -510,6 +542,9 @@ module Tk::TreeCtrl::ConfigMethod
current_itemconfiginfo(['item', tagOrId], slot)
end
+ def item_element_cget_tkstring(item, column, elem, option)
+ itemcget_tkstring([['item', 'element'], [item, column, elem]], option)
+ end
def item_element_cget(item, column, elem, option)
itemcget([['item', 'element'], [item, column, elem]], option)
end
@@ -526,6 +561,9 @@ module Tk::TreeCtrl::ConfigMethod
current_itemconfiginfo([['item', 'element'], [item, column, elem]], slot)
end
+ def marquee_cget_tkstring(option)
+ itemcget_tkstring('marquee', option)
+ end
def marquee_cget(option)
itemcget('marquee', option)
end
@@ -542,6 +580,11 @@ module Tk::TreeCtrl::ConfigMethod
current_itemconfiginfo('marquee', slot)
end
+ def notify_cget_tkstring(win, pattern, option)
+ pattern = "<#{pattern}>"
+ # "notify" doesn't have cget subcommand.
+ tk_split_simplelist(tk_call_without_enc(*(__item_confinfo_cmd(tagid(['notify', [win, pattern]])) << "-#{option}")), false, true)[-1]
+ end
def notify_cget(win, pattern, option)
pattern = "<#{pattern}>"
# "notify" doesn't have cget subcommand.
@@ -571,6 +614,9 @@ module Tk::TreeCtrl::ConfigMethod
current_itemconfiginfo(['notify', [win, pattern]], slot)
end
+ def style_cget_tkstring(tagOrId, option)
+ itemcget_tkstring(['style', tagOrId], option)
+ end
def style_cget(tagOrId, option)
itemcget(['style', tagOrId], option)
end
@@ -587,7 +633,7 @@ module Tk::TreeCtrl::ConfigMethod
current_itemconfiginfo(['style', tagOrId], slot)
end
- private :itemcget, :itemcget_strict
+ private :itemcget_tkstring, :itemcget, :itemcget_strict
private :itemconfigure, :itemconfiginfo, :current_itemconfiginfo
end
@@ -599,7 +645,7 @@ class Tk::TreeCtrl
TkCommandNames = ['treectrl'.freeze].freeze
WidgetClassName = 'TreeCtrl'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
#########################
@@ -631,7 +677,7 @@ class Tk::TreeCtrl
[
'itemwidthequal', 'usetheme',
'showbuttons', 'showheader', 'showlines', 'showroot',
- 'showrootbutton', 'showrootlines',
+ 'showrootbutton', 'showrootlines', 'showrootchildbuttons'
]
end
private :__boolval_optkeys
@@ -1547,8 +1593,8 @@ class Tk::TreeCtrl
self
end
- def see(item)
- tk_send('see', item)
+ def see(item, column=None, keys={})
+ tk_send('see', item, column, *hash_kv(keys))
self
end
@@ -1686,7 +1732,7 @@ end
class Tk::TreeCtrl::Column < TkObject
TreeCtrlColumnID_TBL = TkCore::INTERP.create_table
- (TreeCtrlColumnID = ['treectrl_column'.freeze, '00000'.taint]).instance_eval{
+ (TreeCtrlColumnID = ['treectrl_column'.freeze, TkUtil.untrust('00000')]).instance_eval{
@mutex = Mutex.new
def mutex; @mutex; end
freeze
@@ -1741,6 +1787,9 @@ class Tk::TreeCtrl::Column < TkObject
@id.to_s.dup
end
+ def cget_tkstring(opt)
+ @tree.column_cget_tkstring(@tree.column_index(@id), opt)
+ end
def cget(opt)
@tree.column_cget(@tree.column_index(@id), opt)
end
@@ -1789,7 +1838,7 @@ end
class Tk::TreeCtrl::Element < TkObject
TreeCtrlElementID_TBL = TkCore::INTERP.create_table
- (TreeCtrlElementID = ['treectrl_element'.freeze, '00000'.taint]).instance_eval{
+ (TreeCtrlElementID = ['treectrl_element'.freeze, TkUtil.untrust('00000')]).instance_eval{
@mutex = Mutex.new
def mutex; @mutex; end
freeze
@@ -1844,6 +1893,9 @@ class Tk::TreeCtrl::Element < TkObject
@id.dup
end
+ def cget_tkstring(opt)
+ @tree.element_cget_tkstring(@id, opt)
+ end
def cget(opt)
@tree.element_cget(@id, opt)
end
@@ -1978,6 +2030,9 @@ class Tk::TreeCtrl::Item < TkObject
self
end
+ def cget_tkstring(opt)
+ @tree.item_cget_tkstring(@id, opt)
+ end
def cget(opt)
@tree.item_cget(@id, opt)
end
@@ -2014,7 +2069,10 @@ class Tk::TreeCtrl::Item < TkObject
@tree.item_element_actual(@id, column, elem, key)
end
- def element_cget(opt)
+ def element_cget_tkstring(opt)
+ @tree.item_element_cget(@id, opt)
+ end
+ def element_cget_tkstring(opt)
@tree.item_element_cget(@id, opt)
end
def element_cget_strict(opt)
@@ -2218,7 +2276,7 @@ end
class Tk::TreeCtrl::Style < TkObject
TreeCtrlStyleID_TBL = TkCore::INTERP.create_table
- (TreeCtrlStyleID = ['treectrl_style'.freeze, '00000'.taint]).instance_eval{
+ (TreeCtrlStyleID = ['treectrl_style'.freeze, TkUtil.untrust('00000')]).instance_eval{
@mutex = Mutex.new
def mutex; @mutex; end
freeze
@@ -2268,6 +2326,9 @@ class Tk::TreeCtrl::Style < TkObject
@id.dup
end
+ def cget_tkstring(opt)
+ @tree.style_cget_tkstring(@id, opt)
+ end
def cget(opt)
@tree.style_cget(@id, opt)
end
diff --git a/ext/tk/lib/tkextlib/version.rb b/ext/tk/lib/tkextlib/version.rb
index 82ed7ef542..4bef78fe54 100644
--- a/ext/tk/lib/tkextlib/version.rb
+++ b/ext/tk/lib/tkextlib/version.rb
@@ -2,5 +2,5 @@
# release date of tkextlib
#
module Tk
- Tkextlib_RELEASE_DATE = '2008-11-25'.freeze
+ Tkextlib_RELEASE_DATE = '2010-02-01'.freeze
end
diff --git a/ext/tk/lib/tkextlib/vu/bargraph.rb b/ext/tk/lib/tkextlib/vu/bargraph.rb
index 1bcafc2887..b9fcf925f3 100644
--- a/ext/tk/lib/tkextlib/vu/bargraph.rb
+++ b/ext/tk/lib/tkextlib/vu/bargraph.rb
@@ -19,7 +19,7 @@ require 'tkextlib/vu.rb'
class Tk::Vu::Bargraph < TkWindow
TkCommandNames = ['::vu::bargraph'.freeze].freeze
WidgetClassName = 'Bargraph'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
###############################
diff --git a/ext/tk/lib/tkextlib/vu/dial.rb b/ext/tk/lib/tkextlib/vu/dial.rb
index e27a38ae42..4d04974a55 100644
--- a/ext/tk/lib/tkextlib/vu/dial.rb
+++ b/ext/tk/lib/tkextlib/vu/dial.rb
@@ -19,7 +19,7 @@ require 'tkextlib/vu.rb'
class Tk::Vu::Dial < TkWindow
TkCommandNames = ['::vu::dial'.freeze].freeze
WidgetClassName = 'Dial'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
###############################
@@ -32,10 +32,10 @@ class Tk::Vu::Dial < TkWindow
def coords(val = nil)
if val
- tk_split_list(tk_send_without_enc('coords'))
- else
tk_send_without_enc('coords', val)
self
+ else
+ tk_split_list(tk_send_without_enc('coords'))
end
end
diff --git a/ext/tk/lib/tkextlib/vu/pie.rb b/ext/tk/lib/tkextlib/vu/pie.rb
index c1fb6857bf..6b0c485d8a 100644
--- a/ext/tk/lib/tkextlib/vu/pie.rb
+++ b/ext/tk/lib/tkextlib/vu/pie.rb
@@ -37,7 +37,7 @@ end
class Tk::Vu::Pie < TkWindow
TkCommandNames = ['::vu::pie'.freeze].freeze
WidgetClassName = 'Pie'.freeze
- WidgetClassNames[WidgetClassName] = self
+ WidgetClassNames[WidgetClassName] ||= self
def __destroy_hook__
Tk::Vu::PieSlice::SliceID_TBL.delete(@path)
@@ -117,7 +117,7 @@ end
class Tk::Vu::PieSlice
SliceID_TBL = TkCore::INTERP.create_table
- (Pie_Slice_ID = ['vu:pie'.freeze, '00000'.taint]).instance_eval{
+ (Pie_Slice_ID = ['vu:pie'.freeze, TkUtil.untrust('00000')]).instance_eval{
@mutex = Mutex.new
def mutex; @mutex; end
freeze
@@ -173,6 +173,10 @@ class Tk::Vu::PieSlice
val
end
+ def cget_tkstring(slot)
+ @pie.itemcget_tkstring(@id, slot)
+ end
+
def cget(slot)
@pie.itemcget(@id, slot)
end
diff --git a/ext/tk/old-README.tcltklib.eucj b/ext/tk/old-README.tcltklib.eucj
index fd75202c18..1683629fcb 100644
--- a/ext/tk/old-README.tcltklib.eucj
+++ b/ext/tk/old-README.tcltklib.eucj
@@ -70,7 +70,7 @@ demo/lines2.rb : tcltk ¥é¥¤¥Ö¥é¥êÍѤΥ¹¥¯¥ê¥×¥È.
¤ÇºîÀ®/ưºî³Îǧ¤·¤Þ¤·¤¿. ¾¤Î´Ä¶­¤Ç¤Ïưºî¤¹¤ë¤«¤É¤¦¤«¤ï¤«¤ê¤Þ¤»¤ó.
-TclTkLib.mainloop ¤ò¼Â¹ÔÃæ¤Ë Control-C ¤¬¸ú¤«¤Ê¤¤¤Î¤ÏÉÔÊØ¤Ê¤Î¤Ç, ruby
+TclTkLib.mainloop ¤ò¼Â¹ÔÃæ¤Ë Control-C ¤¬¸ú¤«¤Ê¤¤¤Î¤ÏÉÔÊØ¤Ê¤Î¤Ç, ruby
¤Î¥½¡¼¥¹¤ò»²¹Í¤Ë, #include "sig.h" ¤·¤Æ trap_immediate ¤òÁàºî¤·¤Æ¤¤¤Þ
¤¹¤¬, ruby ¤Î README.EXT ¤Ë¤â½ñ¤¤¤Æ¤Ê¤¤¤Î¤Ë, ¤³¤ó¤Ê¤³¤È¤ò¤·¤ÆÎɤ¤¤Î¤«
¤É¤¦¤«¤ï¤«¤ê¤Þ¤»¤ó.
@@ -86,12 +86,12 @@ extconf.rb ¤Ï½ñ¤­¤Þ¤·¤¿¤¬, (¤¤¤í¤¤¤í¤Ê°ÕÌ£¤Ç)¤³¤ì¤ÇÎɤ¤¤Î¤«Îɤ¯Ê¬¤«¤ê
ruby ¤«¤é tcl/tk ¥é¥¤¥Ö¥é¥ê¤òÍøÍѤǤ­¤Þ¤¹.
-tcl/tk ¥¤¥ó¥¿¥×¥ê¥¿¤Î¥¹¥¯¥ê¥×¥È¤Ï, µ¡³£Åª¤Ë tcltk ¥é¥¤¥Ö¥é¥êÍѤΠruby
+tcl/tk ¥¤¥ó¥¿¥×¥ê¥¿¤Î¥¹¥¯¥ê¥×¥È¤Ï, µ¡³£Åª¤Ë tcltk ¥é¥¤¥Ö¥é¥êÍѤΠruby
¥¹¥¯¥ê¥×¥È¤ËÊÑ´¹¤Ç¤­¤Þ¤¹.
(`tk.rb' ¤È¤Î°ã¤¤)
-1. tcl/tk ¥¤¥ó¥¿¥×¥ê¥¿¤Î¥¹¥¯¥ê¥×¥È¤¬, ¤É¤Î¤è¤¦¤Ë, tcltk ¥é¥¤¥Ö¥é¥êÍѤÎ
+1. tcl/tk ¥¤¥ó¥¿¥×¥ê¥¿¤Î¥¹¥¯¥ê¥×¥È¤¬, ¤É¤Î¤è¤¦¤Ë, tcltk ¥é¥¤¥Ö¥é¥êÍѤÎ
ruby ¥¹¥¯¥ê¥×¥È¤ËÊÑ´¹¤µ¤ì¤ë¤«¤¬Íý²ò¤Ç¤­¤ì¤Ð, ¥Þ¥Ë¥å¥¢¥ëÎब̵¤¤¤ËÅù
¤·¤¤ `tk.rb' ¤È¤Ï°Û¤Ê¤ê
@@ -136,7 +136,7 @@ tcl/tk ¥¤¥ó¥¿¥×¥ê¥¿¤Î¥¹¥¯¥ê¥×¥È¤Ï, µ¡³£Åª¤Ë tcltk ¥é¥¤¥Ö¥é¥êÍѤΠruby
¤·¤Ê¤±¤ì¤Ð¤Ê¤ê¤Þ¤»¤ó(¤½¤ÎÂå¤ï¤ê, tcl/tk ¥é¥¤¥Ö¥é¥ê¤Î»ÅÍÍÄ̤ê,
tcl/tk ¥¤¥ó¥¿¥×¥ê¥¿¤òÊ£¿ôÀ¸À®¤¹¤ë¤³¤È¤â¤Ç¤­¤Þ¤¹¤¬).
- ¥¤¥ó¥¿¡¼¥Õ¥§¡¼¥¹¤Ï(¤ª¤½¤é¤¯) ruby ¤Î»×Áۤ˱è¤Ã¤¿¤â¤Î¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó.
+ ¥¤¥ó¥¿¡¼¥Õ¥§¡¼¥¹¤Ï(¤ª¤½¤é¤¯) ruby ¤Î»×Áۤ˱è¤Ã¤¿¤â¤Î¤Ç¤Ï¤¢¤ê¤Þ¤»¤ó.
¤Þ¤¿, ¥¹¥¯¥ê¥×¥È¤Îµ­½Ò¤Ï
¥À¥µ¥À¥µ
diff --git a/ext/tk/old-extconf.rb b/ext/tk/old-extconf.rb
new file mode 100644
index 0000000000..ebc83a0c0b
--- /dev/null
+++ b/ext/tk/old-extconf.rb
@@ -0,0 +1,440 @@
+# extconf.rb for tcltklib
+
+require 'mkmf'
+
+is_win32 = (/mswin|mingw|cygwin|bccwin/ =~ RUBY_PLATFORM)
+#is_macosx = (/darwin/ =~ RUBY_PLATFORM)
+
+have_func("ruby_native_thread_p", "ruby.h")
+have_func("rb_errinfo", "ruby.h")
+have_func("rb_safe_level", "ruby.h")
+have_struct_member("struct RArray", "ptr", "ruby.h")
+have_struct_member("struct RArray", "len", "ruby.h")
+
+def find_framework(tcl_hdr, tk_hdr)
+ if framework_dir = with_config("tcltk-framework")
+ paths = [framework_dir]
+ else
+ unless tcl_hdr || tk_hdr ||
+ enable_config("tcltk-framework", false) ||
+ enable_config("mac-tcltk-framework", false)
+ return false
+ end
+ paths = ["/Library/Frameworks", "/System/Library/Frameworks"]
+ end
+
+ checking_for('Tcl/Tk Framework') {
+ paths.find{|dir|
+ dir.strip!
+ dir.chomp!('/')
+ (tcl_hdr || FileTest.directory?(dir + "/Tcl.framework/") ) &&
+ (tk_hdr || FileTest.directory?(dir + "/Tk.framework/") )
+ }
+ }
+end
+
+tcl_framework_header = with_config("tcl-framework-header")
+tk_framework_header = with_config("tk-framework-header")
+
+tcltk_framework = find_framework(tcl_framework_header, tk_framework_header)
+
+unless is_win32
+ have_library("nsl", "t_open")
+ have_library("socket", "socket")
+ have_library("dl", "dlopen")
+ have_library("m", "log")
+end
+
+tk_idir, tk_ldir = dir_config("tk")
+tcl_idir, tcl_ldir = dir_config("tcl")
+x11_idir, x11_ldir = dir_config("X11")
+
+tk_ldir2 = with_config("tk-lib")
+tcl_ldir2 = with_config("tcl-lib")
+x11_ldir2 = with_config("X11-lib")
+
+tk_ldir_list = [tk_ldir2, tk_ldir]
+tcl_ldir_list = [tcl_ldir2, tcl_ldir]
+
+tklib = with_config("tklib")
+tcllib = with_config("tcllib")
+stubs = enable_config("tcltk_stubs") || with_config("tcltk_stubs")
+
+tcltk_version = with_config("tcltkversion")
+
+use_X = with_config("X11", (! is_win32))
+
+def parse_tclConfig(file)
+ # check tclConfig.sh/tkConfig.sh
+ tbl = {}
+ IO.foreach(file){|line|
+ line.strip!
+ next if line !~ /^([^\#=][^=]*)=(['"]|)(.*)\2$/
+ key, val = $1, $3
+ tbl[key] = val.gsub(/\$\{([^}]+)\}/){|s| tbl[$1]} rescue nil
+ }
+ tbl
+end
+
+def check_tcltk_version(version)
+ return [nil, nil] unless version
+
+ version = version.strip
+
+ tclver = version.dup
+ tkver = version.dup
+
+ major = dot = minor = dot = plvl = ext = nil
+
+ if version =~ /^(\d)(\.?)(\d)(\.?)(\d*)(.*)$/
+ major = $1; minor_dot = $2; minor = $3; plvl_dot = $4; plvl = $5; ext = $6
+ dot = ! minor_dot.empty?
+ if plvl_dot.empty? && ! plvl.empty?
+ minor << plvl
+ end
+ elsif version =~ /^(\d)(\.?)(\d?)(.*)$/
+ major = $1; minor_dot = $2; minor = $3; ext = $4
+ dot = ! minor_dot.empty?
+ else # unknown -> believe user
+ return [tclver, tkver]
+ end
+
+ # check Tcl7.6 / Tk4.2 ?
+ if major == "7" # Tcl7.6 ( not support Tclversion < 7.6 )
+ # Tk4.2
+ tkver = "4" + ((dot)? ".": "") + ((minor.empty)? "": "2") + ext
+ elsif major == "4" # Tk4.2 ( not support Tkversion < 4.2 )
+ # Tcl7.6
+ tclver = "7" + ((dot)? ".": "") + ((minor.empty)? "": "6") + ext
+ end
+
+ [tclver, tkver]
+end
+
+def find_tcl(tcllib, stubs, version, *opt_paths)
+ default_paths = ["/usr/local/lib", "/usr/pkg/lib", "/usr/lib"]
+ default_paths << "/Tcl/lib" # default for ActiveTcl
+
+ if (paths = opt_paths.compact).empty?
+ paths = default_paths
+ end
+
+ if stubs
+ func = "Tcl_InitStubs"
+ lib = "tclstub"
+ else
+ func = "Tcl_FindExecutable"
+ lib = "tcl"
+ end
+
+ if version && ! version.empty?
+ versions = [version]
+ else
+ versions = %w[8.7 8.6 8.5 8.4 8.3 8.2 8.1 8.0 7.6]
+ end
+
+ if tcllib
+ st = find_library(tcllib, func, *paths)
+ else
+ st = versions.find { |ver|
+ find_library("#{lib}#{ver}", func, *paths) or
+ find_library("#{lib}#{ver.delete('.')}", func, *paths) or
+ find_library("#{lib}#{ver}g", func, *paths) or
+ find_library("#{lib}#{ver.delete('.')}g", func, *paths) or
+ find_library("tcl#{ver}", func, *paths) or
+ find_library("tcl#{ver.delete('.')}", func, *paths) or
+ find_library("tcl#{ver}g", func, *paths) or
+ find_library("tcl#{ver.delete('.')}g", func, *paths)
+ } || (!version && find_library(lib, func, *paths))
+ end
+
+ unless st
+ puts("Warning:: cannot find Tcl library. tcltklib will not be compiled (tcltklib is disabled on your Ruby == Ruby/Tk will not work). Please check configure options.")
+ end
+ st
+end
+
+def find_tk(tklib, stubs, version, *opt_paths)
+ default_paths = ["/usr/local/lib", "/usr/pkg/lib", "/usr/lib"]
+ default_paths << "/Tcl/lib" # default for ActiveTcl
+
+ if (paths = opt_paths.compact).empty?
+ paths = default_paths
+ end
+
+ if stubs
+ func = "Tk_InitStubs"
+ lib = "tkstub"
+ else
+ func = "Tk_Init"
+ lib = "tk"
+ end
+
+ if version && ! version.empty?
+ versions = [version]
+ else
+ versions = %w[8.7 8.6 8.5 8.4 8.3 8.2 8.1 8.0 4.2]
+ end
+
+ if tklib
+ st = find_library(tklib, func, *paths)
+ else
+ st = versions.find { |ver|
+ find_library("#{lib}#{ver}", func, *paths) or
+ find_library("#{lib}#{ver.delete('.')}", func, *paths) or
+ find_library("#{lib}#{ver}g", func, *paths) or
+ find_library("#{lib}#{ver.delete('.')}g", func, *paths) or
+ find_library("tk#{ver}", func, *paths) or
+ find_library("tk#{ver.delete('.')}", func, *paths) or
+ find_library("tk#{ver}g", func, *paths) or
+ find_library("tk#{ver.delete('.')}g", func, *paths)
+ } || (!version && find_library(lib, func, *paths))
+ end
+
+ unless st
+ puts("Warning:: cannot find Tk library. tcltklib will not be compiled (tcltklib is disabled on your Ruby == Ruby/Tk will not work). Please check configure options.")
+ end
+ st
+end
+
+def find_tcltk_header(tclver, tkver)
+ base_dir = ['/usr/local/include', '/usr/pkg/include', '/usr/include']
+ base_dir << '/Tcl/include' # default for ActiveTcl
+
+ unless have_tcl_h = have_header('tcl.h')
+ if tclver && ! tclver.empty?
+ versions = [tclver]
+ else
+ versions = %w[8.7 8.6 8.5 8.4 8.3 8.2 8.1 8.0 7.6]
+ end
+ paths = base_dir.dup
+ versions.each{|ver| paths.concat(base_dir.map{|dir| dir + '/tcl' + ver})}
+ have_tcl_h = find_header('tcl.h', *paths)
+ end
+
+ unless have_tk_h = have_header("tk.h")
+ if tkver && ! tkver.empty?
+ versions = [tkver]
+ else
+ versions = %w[8.7 8.6 8.5 8.4 8.3 8.2 8.1 8.0 4.2]
+ end
+ paths = base_dir.dup
+ versions.each{|ver| paths.concat(base_dir.map{|dir| dir + '/tk' + ver})}
+ have_tk_h = find_header('tk.h', *paths)
+ end
+
+ have_tcl_h && have_tk_h
+end
+
+def find_X11(*opt_paths)
+ default_paths =
+ [ "/usr/X11/lib", "/usr/lib/X11", "/usr/X11R6/lib", "/usr/openwin/lib" ]
+ paths = opt_paths.compact.concat(default_paths)
+ st = find_library("X11", "XOpenDisplay", *paths)
+ unless st
+ puts("Warning:: cannot find X11 library. tcltklib will not be compiled (tcltklib is disabled on your Ruby == Ruby/Tk will not work). Please check configure options. If your Tcl/Tk don't require X11, please try --without-X11.")
+ end
+ st
+end
+
+def pthread_check()
+ tcl_major_ver = nil
+ tcl_minor_ver = nil
+
+ # Is tcl-thread given by user ?
+ case enable_config("tcl-thread")
+ when true
+ tcl_enable_thread = true
+ when false
+ tcl_enable_thread = false
+ else
+ tcl_enable_thread = nil
+ end
+
+ if (tclConfig = with_config("tclConfig-file"))
+ if tcl_enable_thread == true
+ puts("Warning: --with-tclConfig-file option is ignored, because --enable-tcl-thread option is given.")
+ elsif tcl_enable_thread == false
+ puts("Warning: --with-tclConfig-file option is ignored, because --disable-tcl-thread option is given.")
+ else
+ # tcl-thread is unknown and tclConfig.sh is given
+ begin
+ tbl = parse_tclConfig(tclConfig)
+ if tbl['TCL_THREADS']
+ tcl_enable_thread = (tbl['TCL_THREADS'] == "1")
+ else
+ tcl_major_ver = tbl['TCL_MAJOR_VERSION'].to_i
+ tcl_minor_ver = tbl['TCL_MINOR_VERSION'].to_i
+ if tcl_major_ver < 8 || (tcl_major_ver == 8 && tcl_minor_ver == 0)
+ tcl_enable_thread = false
+ end
+ end
+
+ if tcl_enable_thread == nil
+ # cannot find definition
+ if tcl_major_ver
+ puts("Warning: '#{tclConfig}' doesn't include TCL_THREADS definition.")
+ else
+ puts("Warning: '#{tclConfig}' may not be a tclConfig file.")
+ end
+ tclConfig = false
+ end
+ rescue Exception
+ puts("Warning: fail to read '#{tclConfig}'!! --> ignore the file")
+ tclConfig = false
+ end
+ end
+ end
+
+ if tcl_enable_thread == nil && !tclConfig
+ # tcl-thread is unknown and tclConfig is unavailable
+ begin
+ try_run_available = try_run("int main() { exit(0); }")
+ rescue Exception
+ # cannot try_run. Is CROSS-COMPILE environment?
+ puts(%Q'\
+*****************************************************************************
+**
+** PTHREAD SUPPORT CHECK WARNING:
+**
+** We cannot check the consistency of pthread support between Ruby
+** and the Tcl/Tk library in your environment (are you perhaps
+** cross-compiling?). If pthread support for these 2 packages is
+** inconsistent you may find you get errors when running Ruby/Tk
+** (e.g. hangs or segmentation faults). We strongly recommend
+** you to check the consistency manually.
+**
+*****************************************************************************
+')
+ return true
+ end
+ end
+
+ if tcl_enable_thread == nil
+ # tcl-thread is unknown
+ if try_run(<<EOF)
+#include <tcl.h>
+int main() {
+ Tcl_Interp *ip;
+ ip = Tcl_CreateInterp();
+ exit((Tcl_Eval(ip, "set tcl_platform(threaded)") == TCL_OK)? 0: 1);
+}
+EOF
+ tcl_enable_thread = true
+ elsif try_run(<<EOF)
+#include <tcl.h>
+static Tcl_ThreadDataKey dataKey;
+int main() { exit((Tcl_GetThreadData(&dataKey, 1) == dataKey)? 1: 0); }
+EOF
+ tcl_enable_thread = true
+ else
+ tcl_enable_thread = false
+ end
+ end
+
+ # check pthread mode
+ if (macro_defined?('HAVE_NATIVETHREAD', '#include "ruby.h"'))
+ # ruby -> enable
+ unless tcl_enable_thread
+ # ruby -> enable && tcl -> disable
+ puts(%Q'\
+*****************************************************************************
+**
+** PTHREAD SUPPORT MODE WARNING:
+**
+** Ruby is compiled with --enable-pthread, but your Tcl/Tk library
+** seems to be compiled without pthread support. Although you can
+** create the tcltklib library, this combination may cause errors
+** (e.g. hangs or segmentation faults). If you have no reason to
+** keep the current pthread support status, we recommend you reconfigure
+** and recompile the libraries so that both or neither support pthreads.
+**
+** If you want change the status of pthread support, please recompile
+** Ruby without "--enable-pthread" configure option or recompile Tcl/Tk
+** with "--enable-threads" configure option (if your Tcl/Tk is later
+** than or equal to Tcl/Tk 8.1).
+**
+*****************************************************************************
+')
+ end
+
+ # ruby -> enable && tcl -> enable/disable
+ if tcl_enable_thread
+ $CPPFLAGS += ' -DWITH_TCL_ENABLE_THREAD=1'
+ else
+ $CPPFLAGS += ' -DWITH_TCL_ENABLE_THREAD=0'
+ end
+
+ return true
+
+ else
+ # ruby -> disable
+ if tcl_enable_thread
+ # ruby -> disable && tcl -> enable
+ puts(%Q'\
+*****************************************************************************
+**
+** PTHREAD SUPPORT MODE ERROR:
+**
+** Ruby is not compiled with --enable-pthread, but your Tcl/Tk
+** library seems to be compiled with pthread support. This
+** combination may cause frequent hang or segmentation fault
+** errors when Ruby/Tk is working. We recommend that you NEVER
+** create the library with such a combination of pthread support.
+**
+** Please recompile Ruby with the "--enable-pthread" configure option
+** or recompile Tcl/Tk with the "--disable-threads" configure option.
+**
+*****************************************************************************
+')
+ $CPPFLAGS += ' -DWITH_TCL_ENABLE_THREAD=1'
+ return false
+ else
+ # ruby -> disable && tcl -> disable
+ $CPPFLAGS += ' -DWITH_TCL_ENABLE_THREAD=0'
+ return true
+ end
+ end
+end
+
+tclver, tkver = check_tcltk_version(tcltk_version)
+
+if ( tcltk_framework ||
+ ( find_tcltk_header(tclver, tkver) &&
+ ( !use_X || find_X11(x11_ldir2, x11_ldir) ) &&
+ find_tcl(tcllib, stubs, tclver, *tcl_ldir_list) &&
+ find_tk(tklib, stubs, tkver, *tk_ldir_list) ) )
+ $CPPFLAGS += ' -DUSE_TCL_STUBS -DUSE_TK_STUBS' if stubs
+ $CPPFLAGS += ' -D_WIN32' if /cygwin/ =~ RUBY_PLATFORM
+
+ if tcltk_framework
+ if tcl_framework_header
+ $CPPFLAGS += " -I#{tcl_framework_header}"
+ else
+ $CPPFLAGS += " -I#{tcltk_framework}/Tcl.framework/Headers"
+ end
+
+ if tk_framework_header
+ $CPPFLAGS += " -I#{tk_framework_header}"
+ else
+ $CPPFLAGS += " -I#{tcltk_framework}/Tk.framework/Headers"
+ end
+
+ $LDFLAGS += ' -framework Tk -framework Tcl'
+ end
+
+ if stubs or pthread_check
+ # create Makefile
+
+ # for SUPPORT_STATUS
+ $INSTALLFILES ||= []
+ $INSTALLFILES << ["lib/tkextlib/SUPPORT_STATUS", "$(RUBYLIBDIR)", "lib"]
+
+ have_func("rb_hash_lookup", "ruby.h")
+
+ # create
+ $defs << %[-DRUBY_VERSION=\\"#{RUBY_VERSION}\\"]
+ $defs << %[-DRUBY_RELEASE_DATE=\\"#{RUBY_RELEASE_DATE}\\"]
+ create_makefile("tcltklib")
+ end
+end
diff --git a/ext/tk/sample/demos-en/ChangeLog.prev b/ext/tk/sample/demos-en/ChangeLog.prev
index 536ce30abe..ba808eca8b 100644
--- a/ext/tk/sample/demos-en/ChangeLog.prev
+++ b/ext/tk/sample/demos-en/ChangeLog.prev
@@ -6,4 +6,4 @@
* Added test to widget and hello versus Tk::TCL_VERSION & Tk::JAPANIZED_TK (per Guy Decoux in [ruby-talk:18559]) before requiring tkencoding.rb.
- \ No newline at end of file
+
diff --git a/ext/tk/sample/demos-en/README b/ext/tk/sample/demos-en/README
index 2908aa38e4..a6ea4fae8c 100644
--- a/ext/tk/sample/demos-en/README
+++ b/ext/tk/sample/demos-en/README
@@ -1,14 +1,14 @@
-Current Maintainer:
+Current Maintainer:
Jonathan Conway
rise@knavery.net
- Please direct all bug reports/requests/suggestions to the above
+ Please direct all bug reports/requests/suggestions to the above
address.
Notes:
-* The files hello and widget have been changed to test Tk::TCL_VERSION
+* The files hello and widget have been changed to test Tk::TCL_VERSION
and Tk::JAPANIZED_TK before requiring tkencoding.rb to prevent an
infinite loop. This test was taken from a message in
[ruby-talk:18559] by Guy Decoux.
@@ -18,7 +18,7 @@ Notes:
able to use images exported by a graphics program as Windows
bitmaps with this demo collection nor will you be able to edit the
included images without setting the file type correctly.
-
+
-- Jonathan Conway, 2001-07-26
@@ -28,19 +28,19 @@ Notes:
# To create this version of the Ruby/Tk widget demo, I took the
# ruby-tk81-demos and removed all the Kanji strings and comments. I
# have tried to restore the original English strings and comments
-# using the Tcl/Tk8.2.2 version of the widget demo.
+# using the Tcl/Tk8.2.2 version of the widget demo.
#
# When I tried running the Kanji version, all I got was a mostly blank
# panel with a non-functional "File" button. I disovered that if all
# non-ASCII characters were replaced with blanks, then I could get the
-# gutted stuff running.
+# gutted stuff running.
#
# Since English Ruby/Tk documentation is lacking and I needed this
# code to see how it worked and to use as the basis of my try-it
# prototype (The Ruby Yielding Interactive Toolkit), plus the fact
# that no help was forthcoming for making the Kanji version work (plus
# the fact that I can't read Kanji anyway), I decided to embark on
-# this English restoration project.
+# this English restoration project.
#
# Thanks to everyone who worked on the original Ruby/Tk widget demo
# (and the preceding Tcl/Tk version for that matter). The
@@ -86,13 +86,13 @@ Windows(Cygwin)¤Ë¤ª¤¤¤Æ¡¢¥µ¥ó¥×¥ë¤òư¤«¤¹¤Ë¤Ïruby¤ò-Ke¤È¤¤¤¦¥ª¥×¥·¥ç¥ó¤òÉÕ
<eban@os.rim.or.jp>
----------------------------------------------------------------------------
- Ruby/Tk widget-demo
+ Ruby/Tk widget-demo
version 1.1 ( 1998/07/24 )
±Ê°æ¡÷ÃÎǽ¡¥¶å¹©Âç (nagai@ai.kyutech.ac.jp)
-ɸ½àÇÛÉۤΠTcl/Tk ³ÈÄ¥¥Ñ¥Ã¥±¡¼¥¸¤ò¼è¤ê¹þ¤ó¤À Ruby (°Ê²¼ Ruby/Tk ¤È¸Æ¤Ó¤Þ¤¹)
+ɸ½àÇÛÉۤΠTcl/Tk ³ÈÄ¥¥Ñ¥Ã¥±¡¼¥¸¤ò¼è¤ê¹þ¤ó¤À Ruby (°Ê²¼ Ruby/Tk ¤È¸Æ¤Ó¤Þ¤¹)
¤Ç¤Ï¡¤Tk widget ¤òÍѤ¤¤¿ GUI ¤ÎºîÀ®¤ò¹Ô¤¦¤³¤È¤¬¤Ç¤­¤Þ¤¹¡¥¼ÂºÝ¤Ë GUI ¤òºîÀ®
-¤·¤Æ¤¤¤¯¾ì¹ç¤Ë¤ÏÍÍ¡¹¤Ê¼ÂÎ㤬¥µ¥ó¥×¥ë¤È¤·¤ÆÂ¸ºß¤¹¤ë¤ÈÊØÍø¤Ê¤Î¤Ç¤¹¤¬¡¤Ruby/Tk
+¤·¤Æ¤¤¤¯¾ì¹ç¤Ë¤ÏÍÍ¡¹¤Ê¼ÂÎ㤬¥µ¥ó¥×¥ë¤È¤·¤ÆÂ¸ºß¤¹¤ë¤ÈÊØÍø¤Ê¤Î¤Ç¤¹¤¬¡¤Ruby/Tk
¤Ë¤Ï¤½¤Î¤è¤¦¤ÊŬÅö¤Ê¥µ¥ó¥×¥ë¥¹¥¯¥ê¥×¥È½¸¹ç¤Ï¸ºß¤·¤Þ¤»¤ó¤Ç¤·¤¿¡¥¤½¤ì¤ËÂФ·¡¤
³ÈÄ¥¥Ñ¥Ã¥±¡¼¥¸¤Î¸µ¤Ç¤¢¤ë Tcl/Tk ¤Ë¤Ï¡¤Tk widget ¤òÍѤ¤¤Æ¤É¤Î¤è¤¦¤Ê¤³¤È¤¬¤Ç
¤­¤ë¤«¤ò¼¨¤¹¤â¤Î¤È¤·¤Æ widget-demo ¤¬Â¸ºß¤·¤ª¤ê¡¤Tcl/Tk ¤òÍѤ¤¤¿ GUI ¤ÎºîÀ®
@@ -118,21 +118,21 @@ Tcl/Tk ¤Ë¤ÏŬÅö¤Ê»²¹Í½ñ¤¬²¿ºý¤«Â¸ºß¤·¤Æ¤¤¤Þ¤¹¤«¤é¡¤Ruby/Tk ¥¹¥¯¥ê¥×¥È¤òºîÀ®
¤Ç¤·¤ç¤¦¡¥Ruby/Tk ÈǤε­½Ò¤ò widget-demo ¤ò Tcl/Tk ÈǤε­½Ò¤Ë¶á¤¤¤â¤Î¤Ë¤·¤Æ
¤ª¤±¤Ð¡¤¤½¤ÎÂÐÈæ¤Ë¤è¤Ã¤Æ¡¤Ruby/Tk ¤ÎÍý²ò¤òÁá¤á¤ë¤³¤È¤¬¤Ç¤­¤ë¤È¹Í¤¨¤é¤ì¤Þ¤¹¡¥
°ìö Ruby/Tk ¤Ç¤Î ³Æ widget ¤Î»ÈÍÑÊýË¡¤ò½¬ÆÀ¤·¤Æ¤·¤Þ¤¨¤Ð¡¤Ruby ¤é¤·¤¤¥¹¥¯¥ê
-¥×¥È¤òºîÀ®¤¹¤ë¤³¤È¤ÏÆñ¤·¤¯¤Ê¤¤¤Ç¤·¤ç¤¦¡¥ËÜ¥¢¡¼¥«¥¤¥Ö¤Î¥¹¥¯¥ê¥×¥È¤Ï¡¤Ruby/Tk
+¥×¥È¤òºîÀ®¤¹¤ë¤³¤È¤ÏÆñ¤·¤¯¤Ê¤¤¤Ç¤·¤ç¤¦¡¥ËÜ¥¢¡¼¥«¥¤¥Ö¤Î¥¹¥¯¥ê¥×¥È¤Ï¡¤Ruby/Tk
¤òºÇ½é¤Ë½¬ÆÀ¤¹¤ë¤Þ¤Ç¤ÎÆ§Âæ¤È¤·¤ÆÍøÍѤ·¤Æ¤¤¤¿¤À¤±¤ì¤Ð¹¬¤¤¤Ç¤¹¡¥
widget-demo ¤Î°Ü¿¢¤Ë¤¢¤¿¤Ã¤Æ¤Ï¡¤¼¡¤ÎÊý¤Ë¤â°Ü¿¢¤·¤¿¥¹¥¯¥ê¥×¥È¤òÄ󶡤·¤Æ¤¤¤¿¤À
¤­¤Þ¤·¤¿¡¥¤³¤³¤Ë´¶¼Õ¤Î°Õ¤òɽ¤·¤Þ¤¹¡¥
- ΩÀС÷JAIST (ttate@jaist.ac.jp) ¤µ¤ó
+ ΩÀС÷JAIST (ttate@jaist.ac.jp) ¤µ¤ó
Ê¿¾¾¾Í»Ë (hiramatu@cdrom.co.jp) ¤µ¤ó
-Ê¿¾¾¤µ¤ó¤Ë¤è¤ë Ruby/Tk ÆþÌç¤Î Web page (http://www.cdrom.co.jp/~hiramatu/)
+Ê¿¾¾¤µ¤ó¤Ë¤è¤ë Ruby/Tk ÆþÌç¤Î Web page (http://www.cdrom.co.jp/~hiramatu/)
¤â Ruby/Tk ¤Î½¬ÆÀ¤ËÍ­ÍѤȻפ¨¤Þ¤¹¤Î¤Ç¡¤¤¼¤Ò¤´»²¾È¤¯¤À¤µ¤¤¡¥
¤Þ¤¿¡¤Á°¶¶ (maebashi@iij.ad.jp) ¤µ¤ó¤ò¤Ï¤¸¤á¤È¤·¤Æ¡¤widget-demo ¤Î°Ü¿¢¤ËºÝ¤·
¤ÆÉ¬ÍפȤʤä¿ Ruby ¤Î Tk ´ØÏ¢¥é¥¤¥Ö¥é¥ê½¤Àµ¤Ë¤Ä¤¤¤Æ¡¤ÌäÂêÅÀ¡¤¥Ð¥°¤Î»ØÅ¦¤ò¤·
¤Æ¤¤¤¿¤À¤¤¤¿Êý¡¹¤Ë¤â´¶¼ÕÃפ·¤Þ¤¹¡¥
-¤½¤·¤ÆºÇ¸å¤ËºÇÂç¤Î´¶¼Õ¤ò Ruby À߷׼ԤΠ¤Þ¤Ä¤â¤È ¤æ¤­¤Ò¤í (matz@netlab.co.jp)
+¤½¤·¤ÆºÇ¸å¤ËºÇÂç¤Î´¶¼Õ¤ò Ruby À߷׼ԤΠ¤Þ¤Ä¤â¤È ¤æ¤­¤Ò¤í (matz@netlab.co.jp)
¤µ¤ó¤ËÊû¤²¤¿¤¤¤È»×¤¤¤Þ¤¹¡¥
diff --git a/ext/tk/sample/demos-en/README.1st b/ext/tk/sample/demos-en/README.1st
index e031f123d2..2ba1e275c8 100644
--- a/ext/tk/sample/demos-en/README.1st
+++ b/ext/tk/sample/demos-en/README.1st
@@ -1,18 +1,18 @@
There are Ruby/Tk demo scripts.
Files with '.rb' extension are sub-scripts which are launched 'widget'
-script. Those files don't work independently. Please call them from
+script. Those files don't work independently. Please call them from
'widget' script.
If you want start some sub-scripts at same time when the launcher
-script tarts, please give the sub-script names as arguments.
+script tarts, please give the sub-script names as arguments.
(e.g. /usr/local/bin/ruby widget button.rb entry1.rb text.rb )
You can ommit '.rb' of the sub-scripts
(e.g. /usr/local/bin/ruby widget button entry1 text )
-If you don't need launcher's main window, give -n option.
+If you don't need launcher's main window, give -n option.
(e.g. /usr/local/bin/ruby widget -n button.rb entry1.rb text.rb )
-Others (browse1, hello, and so on) are standalone scripts.
+Others (browse1, hello, and so on) are standalone scripts.
2004/04/14 Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)
diff --git a/ext/tk/sample/demos-en/README.tkencoding b/ext/tk/sample/demos-en/README.tkencoding
index f576bc593e..679b476a08 100644
--- a/ext/tk/sample/demos-en/README.tkencoding
+++ b/ext/tk/sample/demos-en/README.tkencoding
@@ -1,5 +1,5 @@
-This is a original document of 'tkencoding.rb'.
-The library 'tkencoding.rb' is obsolete.
+This is a original document of 'tkencoding.rb'.
+The library 'tkencoding.rb' is obsolete.
Functions of tkencoding.rb is already included into Ruby/Tk.
-------------------------------------------------
diff --git a/ext/tk/sample/demos-en/browse1 b/ext/tk/sample/demos-en/browse1
index 03e251035a..568892e4a8 100644
--- a/ext/tk/sample/demos-en/browse1
+++ b/ext/tk/sample/demos-en/browse1
@@ -1,16 +1,16 @@
#!/usr/bin/env ruby
# browse --
-# This script generates a directory browser, which lists the working
-# directory and allow you to open files or subdirectories by
-# double-clicking.
+# This script generates a directory browser, which lists the working
+# directory and allow you to open files or subdirectories by
+# double-clicking.
require 'tk'
-# Create a scrollbar on the right side of the main window and a listbox
+# Create a scrollbar on the right side of the main window and a listbox
# on the left side.
-listbox = TkListbox.new(nil, 'relief'=>'sunken',
+listbox = TkListbox.new(nil, 'relief'=>'sunken',
'width'=>20, 'height'=>20, 'setgrid'=>'yes') {|l|
TkScrollbar.new(nil, 'command'=>proc{|*args| l.yview *args}) {|s|
pack('side'=>'right', 'fill'=>'y')
@@ -23,10 +23,10 @@ listbox = TkListbox.new(nil, 'relief'=>'sunken',
root = TkRoot.new
root.minsize(1,1)
-# The procedure below is invoked to open a browser on a given file; if the
-# file is a directory then another instance of this program is invoked; if
-# the file is a regular file then the Mx editor is invoked to display
-# the file.
+# The procedure below is invoked to open a browser on a given file; if the
+# file is a directory then another instance of this program is invoked; if
+# the file is a regular file then the Mx editor is invoked to display
+# the file.
def browse (dir, file)
file = dir + File::Separator + file if dir != '.'
@@ -46,7 +46,7 @@ def browse (dir, file)
end
end
-# Fill the listbox with a list of all the files in the directory (run
+# Fill the listbox with a list of all the files in the directory (run
# the "ls" command to get that information).
dir = ARGV[0] ? ARGV[0] : '.'
@@ -57,7 +57,7 @@ open("|ls -a #{dir}", 'r'){|fid| fid.readlines}.each{|fname|
# Set up bindings for the browser.
Tk.bind_all('Control-c', proc{root.destroy})
-listbox.bind('Double-Button-1',
+listbox.bind('Double-Button-1',
proc{TkSelection.get.each{|f| browse dir, f}})
Tk.mainloop
diff --git a/ext/tk/sample/demos-en/browse2 b/ext/tk/sample/demos-en/browse2
index edad04dbcb..1a511c8d29 100644
--- a/ext/tk/sample/demos-en/browse2
+++ b/ext/tk/sample/demos-en/browse2
@@ -1,9 +1,9 @@
#!/usr/bin/env ruby
# browse --
-# This script generates a directory browser, which lists the working
-# directory and allow you to open files or subdirectories by
-# double-clicking.
+# This script generates a directory browser, which lists the working
+# directory and allow you to open files or subdirectories by
+# double-clicking.
require 'tk'
@@ -19,9 +19,9 @@ class Browse
title('Browse : ' + dir)
}
- # Create a scrollbar on the right side of the main window and a listbox
+ # Create a scrollbar on the right side of the main window and a listbox
# on the left side.
- list = TkListbox.new(base, 'relief'=>'sunken',
+ list = TkListbox.new(base, 'relief'=>'sunken',
'width'=>20, 'height'=>20, 'setgrid'=>'yes') {|l|
TkScrollbar.new(base, 'command'=>proc{|*args| l.yview *args}) {|s|
pack('side'=>'right', 'fill'=>'y')
@@ -30,7 +30,7 @@ class Browse
pack('side'=>'left', 'fill'=>'both', 'expand'=>'yes')
- # Fill the listbox with a list of all the files in the directory (run
+ # Fill the listbox with a list of all the files in the directory (run
# the "ls" command to get that information).
open("|ls -a #{dir}", 'r'){|fid| fid.readlines}.each{|fname|
l.insert('end', fname.chomp)
@@ -44,14 +44,14 @@ class Browse
Browse::BROWSE_WIN_COUNTER.to_i - 1
})
base.bind('Control-c', proc{base.destroy})
- list.bind('Double-Button-1',
+ list.bind('Double-Button-1',
proc{TkSelection.get.each{|f| self.browse dir, f}})
end
- # The method below is invoked to open a browser on a given file; if the
- # file is a directory then another instance of this program is invoked; if
- # the file is a regular file then the Mx editor is invoked to display
- # the file.
+ # The method below is invoked to open a browser on a given file; if the
+ # file is a directory then another instance of this program is invoked; if
+ # the file is a regular file then the Mx editor is invoked to display
+ # the file.
def browse (dir, file)
file = dir + File::Separator + file if dir != '.'
type = File.ftype(file)
diff --git a/ext/tk/sample/demos-en/doc.org/license.terms b/ext/tk/sample/demos-en/doc.org/license.terms
index 03ca6fcb31..c0a44d3fc2 100644
--- a/ext/tk/sample/demos-en/doc.org/license.terms
+++ b/ext/tk/sample/demos-en/doc.org/license.terms
@@ -28,7 +28,7 @@ MODIFICATIONS.
GOVERNMENT USE: If you are acquiring this software on behalf of the
U.S. government, the Government shall have only "Restricted Rights"
-in the software and related documentation as defined in the Federal
+in the software and related documentation as defined in the Federal
Acquisition Regulations (FARs) in Clause 52.227.19 (c) (2). If you
are acquiring the software on behalf of the Department of Defense, the
software shall be classified as "Commercial Computer Software" and the
diff --git a/ext/tk/sample/demos-en/doc.org/license.terms.tk80 b/ext/tk/sample/demos-en/doc.org/license.terms.tk80
index 03ca6fcb31..c0a44d3fc2 100644
--- a/ext/tk/sample/demos-en/doc.org/license.terms.tk80
+++ b/ext/tk/sample/demos-en/doc.org/license.terms.tk80
@@ -28,7 +28,7 @@ MODIFICATIONS.
GOVERNMENT USE: If you are acquiring this software on behalf of the
U.S. government, the Government shall have only "Restricted Rights"
-in the software and related documentation as defined in the Federal
+in the software and related documentation as defined in the Federal
Acquisition Regulations (FARs) in Clause 52.227.19 (c) (2). If you
are acquiring the software on behalf of the Department of Defense, the
software shall be classified as "Commercial Computer Software" and the
diff --git a/ext/tk/sample/demos-en/ixset b/ext/tk/sample/demos-en/ixset
index 979894fcb8..40a77f487c 100644
--- a/ext/tk/sample/demos-en/ixset
+++ b/ext/tk/sample/demos-en/ixset
@@ -164,8 +164,8 @@ class Xsettings
#
bell = TkFrame.new(@root, 'relief'=>'raised', 'borderwidth'=>2)
l = TkLabel.new(bell, 'text'=>'Bell Settings')
- @w_bellvol = TkScale.new(bell, 'from'=>0, 'to'=>100, 'length'=>200,
- 'tickinterval'=>20, 'orient'=>'horizontal',
+ @w_bellvol = TkScale.new(bell, 'from'=>0, 'to'=>100, 'length'=>200,
+ 'tickinterval'=>20, 'orient'=>'horizontal',
'label'=>"Volume (%)")
f = TkFrame.new(bell)
@@ -180,13 +180,13 @@ class Xsettings
#
# Keyboard settings
- #
+ #
kbdonoff = nil
kbdcli = nil
kbd = TkFrame.new(@root, 'relief'=>'raised', 'borderwidth'=>2)
l = TkLabel.new(kbd, 'text'=>'Keyboard Repeat Settings')
f = TkFrame.new(kbd)
- @w_kbdonoff = TkCheckButton.new(f, 'text'=>'On', 'relief'=>'flat',
+ @w_kbdonoff = TkCheckButton.new(f, 'text'=>'On', 'relief'=>'flat',
'onvalue'=>'on', 'offvalue'=>'off',
'variable'=>@w_kbdrep ) {
def self.set(value)
@@ -198,8 +198,8 @@ class Xsettings
end
pack('side'=>'left', 'expand'=>'yes', 'fill'=>'both')
}
- @w_kbdcli = TkScale.new(f, 'from'=>0, 'to'=>100, 'length'=>200,
- 'tickinterval'=>20, 'orient'=>'horizontal',
+ @w_kbdcli = TkScale.new(f, 'from'=>0, 'to'=>100, 'length'=>200,
+ 'tickinterval'=>20, 'orient'=>'horizontal',
'label'=>'Click Volume (%)')
@w_kbdcli.pack('side'=>'left', 'expand'=>'yes')
l.pack('side'=>'top', 'expand'=>'yes')
@@ -225,9 +225,9 @@ class Xsettings
l = TkLabel.new(screen, 'text'=>'Screen-saver Settings')
f = TkFrame.new(screen)
ff1 = TkFrame.new(f)
- [ @w_screenblank = TkRadioButton.new(ff1, 'text'=>'Blank',
- 'relief'=>'flat',
- 'variable'=>@w_screenbla,
+ [ @w_screenblank = TkRadioButton.new(ff1, 'text'=>'Blank',
+ 'relief'=>'flat',
+ 'variable'=>@w_screenbla,
'value'=>'blank') {
def self.set(value)
if value == 'blank'
@@ -236,10 +236,10 @@ class Xsettings
self.deselect
end
end
- },
- @w_screenpat = TkRadioButton.new(ff1, 'text'=>'Pattern',
- 'relief'=>'flat',
- 'variable'=>@w_screenbla,
+ },
+ @w_screenpat = TkRadioButton.new(ff1, 'text'=>'Pattern',
+ 'relief'=>'flat',
+ 'variable'=>@w_screenbla,
'value'=>'noblank') {
def self.set(value)
if value != 'blank'
@@ -252,7 +252,7 @@ class Xsettings
].each {|w| w.pack('side'=>'top', 'pady'=>2, 'anchor'=>'w') }
ff2 = TkFrame.new(f)
- [ @w_screentim = LabelEntry.new(ff2, 'Timeout (s)', 5),
+ [ @w_screentim = LabelEntry.new(ff2, 'Timeout (s)', 5),
@w_screencyc = LabelEntry.new(ff2, 'Cycle (s)', 5) ].each{|w|
w.pack('side'=>'top', 'pady'=>2, 'anchor'=>'e')
}
diff --git a/ext/tk/sample/demos-en/ixset2 b/ext/tk/sample/demos-en/ixset2
index ce8472abe0..cb99c60793 100644
--- a/ext/tk/sample/demos-en/ixset2
+++ b/ext/tk/sample/demos-en/ixset2
@@ -134,8 +134,8 @@ class Xsettings
def initialize(parent, text, length, range=[])
@frame = TkFrame.new(parent)
TkLabel.new(@frame, 'text'=>text).pack('side'=>'left')
- if range.size > 0
- @entry = TkSpinbox.new(@frame, 'width'=>length, 'relief'=>'sunken',
+ if range.size > 0
+ @entry = TkSpinbox.new(@frame, 'width'=>length, 'relief'=>'sunken',
'from'=>range[0], 'to'=>range[1])
else
@entry = TkEntry.new(@frame, 'width'=>length, 'relief'=>'sunken')
@@ -164,16 +164,16 @@ class Xsettings
# Buttons
#
btn_frame = TkFrame.new(@root)
- buttons = [
- @btn_OK = TkButton.new(btn_frame, 'command'=>proc{win.ok},
+ buttons = [
+ @btn_OK = TkButton.new(btn_frame, 'command'=>proc{win.ok},
'default'=>'active', 'text'=>'Ok'),
- @btn_APPLY = TkButton.new(btn_frame, 'command'=>proc{win.writesettings},
- 'default'=>'normal', 'text'=>'Apply',
+ @btn_APPLY = TkButton.new(btn_frame, 'command'=>proc{win.writesettings},
+ 'default'=>'normal', 'text'=>'Apply',
'state'=>'disabled'),
- @btn_CANCEL = TkButton.new(btn_frame, 'command'=>proc{win.cancel},
- 'default'=>'normal', 'text'=>'Cancel',
+ @btn_CANCEL = TkButton.new(btn_frame, 'command'=>proc{win.cancel},
+ 'default'=>'normal', 'text'=>'Cancel',
'state'=>'disabled'),
- @btn_QUIT = TkButton.new(btn_frame, 'command'=>proc{win.quit},
+ @btn_QUIT = TkButton.new(btn_frame, 'command'=>proc{win.quit},
'default'=>'normal', 'text'=>'Quit')
]
buttons.each{|b| b.pack('side'=>'left', 'expand'=>'yes', 'pady'=>5) }
@@ -201,10 +201,10 @@ class Xsettings
#
# Bell settings
#
- bell = TkLabelframe.new(@root, 'text'=>'Bell Settings',
+ bell = TkLabelframe.new(@root, 'text'=>'Bell Settings',
'padx'=>'1.5m', 'pady'=>'1.5m')
- @w_bellvol = TkScale.new(bell, 'from'=>0, 'to'=>100, 'length'=>200,
- 'tickinterval'=>20, 'orient'=>'horizontal',
+ @w_bellvol = TkScale.new(bell, 'from'=>0, 'to'=>100, 'length'=>200,
+ 'tickinterval'=>20, 'orient'=>'horizontal',
'label'=>"Volume (%)")
f = TkFrame.new(bell)
@@ -218,13 +218,13 @@ class Xsettings
#
# Keyboard settings
- #
+ #
kbdonoff = nil
kbdcli = nil
- kbd = TkLabelframe.new(@root, 'text'=>'Keyboard Repeat Settings',
+ kbd = TkLabelframe.new(@root, 'text'=>'Keyboard Repeat Settings',
'padx'=>'1.5m', 'pady'=>'1.5m')
f = TkFrame.new(kbd)
- @w_kbdonoff = TkCheckButton.new(f, 'text'=>'On', 'relief'=>'flat',
+ @w_kbdonoff = TkCheckButton.new(f, 'text'=>'On', 'relief'=>'flat',
'onvalue'=>'on', 'offvalue'=>'off',
'variable'=>@w_kbdrep ) {
def self.set(value)
@@ -236,17 +236,17 @@ class Xsettings
end
pack('side'=>'left', 'expand'=>'yes', 'fill'=>'x', 'padx'=>[0, '1m'])
}
- @w_kbdcli = TkScale.new(f, 'from'=>0, 'to'=>100, 'length'=>200,
- 'tickinterval'=>20, 'orient'=>'horizontal',
+ @w_kbdcli = TkScale.new(f, 'from'=>0, 'to'=>100, 'length'=>200,
+ 'tickinterval'=>20, 'orient'=>'horizontal',
'label'=>'Click Volume (%)')
- @w_kbdcli.pack('side'=>'left', 'expand'=>'yes',
+ @w_kbdcli.pack('side'=>'left', 'expand'=>'yes',
'fill'=>'x', 'padx'=>['1m', 0])
f.pack('side'=>'top', 'expand'=>'yes', 'pady'=>2, 'fill'=>'x')
#
# Mouse settings
#
- mouse = TkLabelframe.new(@root, 'text'=>'Mouse Settings',
+ mouse = TkLabelframe.new(@root, 'text'=>'Mouse Settings',
'padx'=>'1.5m', 'pady'=>'1.5m')
f = TkFrame.new(mouse)
@w_mouseacc = LabelEntry.new(f, 'Acceleration', 5)
@@ -258,11 +258,11 @@ class Xsettings
#
# Screen Saver settings
#
- screen = TkLabelframe.new(@root, 'text'=>'Screen-saver Settings',
+ screen = TkLabelframe.new(@root, 'text'=>'Screen-saver Settings',
'padx'=>'1.5m', 'pady'=>'1.5m')
- @w_screenblank = TkRadioButton.new(screen, 'text'=>'Blank',
- 'relief'=>'flat', 'anchor'=>'w',
- 'variable'=>@w_screenbla,
+ @w_screenblank = TkRadioButton.new(screen, 'text'=>'Blank',
+ 'relief'=>'flat', 'anchor'=>'w',
+ 'variable'=>@w_screenbla,
'value'=>'blank') {
def self.set(value)
if value == 'blank'
@@ -273,9 +273,9 @@ class Xsettings
end
}
- @w_screenpat = TkRadioButton.new(screen, 'text'=>'Pattern',
- 'relief'=>'flat', 'anchor'=>'w',
- 'variable'=>@w_screenbla,
+ @w_screenpat = TkRadioButton.new(screen, 'text'=>'Pattern',
+ 'relief'=>'flat', 'anchor'=>'w',
+ 'variable'=>@w_screenbla,
'value'=>'noblank') {
def self.set(value)
if value != 'blank'
@@ -297,7 +297,7 @@ class Xsettings
# Main window
#
param = {
- 'side'=>'top', 'fill'=>'both', 'expand'=>'yes',
+ 'side'=>'top', 'fill'=>'both', 'expand'=>'yes',
'padx'=>'1m', 'pady'=>'1m'
}
btn_frame.pack('side'=>'top', 'fill'=>'both')
diff --git a/ext/tk/sample/demos-en/rmt b/ext/tk/sample/demos-en/rmt
index 73f631180a..dcfb328fc8 100644
--- a/ext/tk/sample/demos-en/rmt
+++ b/ext/tk/sample/demos-en/rmt
@@ -1,9 +1,9 @@
#!/usr/bin/env ruby
-# rmt --
-# This script implements a simple remote-control mechanism for
-# Tk applications. It allows you to select an application and
-# then type commands to that application.
+# rmt --
+# This script implements a simple remote-control mechanism for
+# Tk applications. It allows you to select an application and
+# then type commands to that application.
require 'tk'
@@ -17,41 +17,41 @@ class Rmt
root = TkWinfo.toplevel(parent)
root.minsize(1,1)
- # The instance variable below keeps track of the remote application
- # that we're sending to. If it's an empty string then we execute
- # the commands locally.
+ # The instance variable below keeps track of the remote application
+ # that we're sending to. If it's an empty string then we execute
+ # the commands locally.
@app = 'local'
@mode = 'Ruby'
- # The instance variable below keeps track of whether we're in the
- # middle of executing a command entered via the text.
+ # The instance variable below keeps track of whether we're in the
+ # middle of executing a command entered via the text.
@executing = 0
- # The instance variable below keeps track of the last command executed,
- # so it can be re-executed in response to !! commands.
+ # The instance variable below keeps track of the last command executed,
+ # so it can be re-executed in response to !! commands.
@lastCommand = ""
- # Create menu bar. Arrange to recreate all the information in the
- # applications sub-menu whenever it is cascaded to.
+ # Create menu bar. Arrange to recreate all the information in the
+ # applications sub-menu whenever it is cascaded to.
TkFrame.new(root, 'relief'=>'raised', 'bd'=>2) {|f|
pack('side'=>'top', 'fill'=>'x')
TkMenubutton.new(f, 'text'=>'File', 'underline'=>0) {|mb|
TkMenu.new(mb) {|mf|
mb.menu(mf)
- TkMenu.new(mf) {|ma|
+ TkMenu.new(mf) {|ma|
postcommand proc{win.fillAppsMenu ma}
- mf.add('cascade', 'label'=>'Select Application',
+ mf.add('cascade', 'label'=>'Select Application',
'menu'=>ma, 'underline'=>0)
}
- add('command', 'label'=>'Quit',
+ add('command', 'label'=>'Quit',
'command'=>proc{root.destroy}, 'underline'=>0)
}
pack('side'=>'left')
}
}
- # Create text window and scrollbar.
+ # Create text window and scrollbar.
@txt = TkText.new(root, 'relief'=>'sunken', 'bd'=>2, 'setgrid'=>true) {
yscrollbar(TkScrollbar.new(root){pack('side'=>'right', 'fill'=>'y')})
@@ -60,9 +60,9 @@ class Rmt
@promptEnd = TkTextMark.new(@txt, 'insert')
- # Create a binding to forward commands to the target application,
- # plus modify many of the built-in bindings so that only information
- # in the current command can be deleted (can still set the cursor
+ # Create a binding to forward commands to the target application,
+ # plus modify many of the built-in bindings so that only information
+ # in the current command can be deleted (can still set the cursor
# earlier in the text and select and insert; just can't delete).
@txt.bindtags([@txt, TkText, root, 'all'])
@@ -151,8 +151,8 @@ class Rmt
w.see('insert')
end
- # The method below is used to print out a prompt at the
- # insertion point (which should be at the beginning of a line
+ # The method below is used to print out a prompt at the
+ # insertion point (which should be at the beginning of a line
# right now).
def prompt
@@ -162,8 +162,8 @@ class Rmt
@txt.tag_add('bold', "#{@promptEnd.path} linestart", @promptEnd)
end
- # The method below executes a command (it takes everything on the
- # current line after the prompt and either sends it to the remote
+ # The method below executes a command (it takes everything on the
+ # current line after the prompt and either sends it to the remote
# application or executes it locally, depending on "app".
def invoke
@@ -200,8 +200,8 @@ class Rmt
if complete
@lastCommand = cmd
begin
-# msg = Tk.appsend(@app, false,
-# 'ruby',
+# msg = Tk.appsend(@app, false,
+# 'ruby',
# '"(' + cmd.gsub(/[][$"]/, '\\\\\&') + ').to_s"')
msg = Tk.rb_appsend(@app, false, cmd)
rescue
@@ -218,10 +218,10 @@ class Rmt
end
# The following method is invoked to change the application that
- # we're talking to. It also updates the prompt for the current
- # command, unless we're in the middle of executing a command from
- # the text item (in which case a new prompt is about to be output
- # so there's no need to change the old one).
+ # we're talking to. It also updates the prompt for the current
+ # command, unless we're in the middle of executing a command from
+ # the text item (in which case a new prompt is about to be output
+ # so there's no need to change the old one).
def newApp(appName, mode)
@app = appName
@@ -236,7 +236,7 @@ class Rmt
end
# The method below will fill in the applications sub-menu with a list
- # of all the applications that currently exist.
+ # of all the applications that currently exist.
def fillAppsMenu(menu)
win = self
@@ -251,14 +251,14 @@ class Rmt
else
mode = 'Ruby'
end
- menu.add('command', 'label'=>format("%s (#{mode}/Tk)", ip),
+ menu.add('command', 'label'=>format("%s (#{mode}/Tk)", ip),
'command'=>proc{win.newApp ip, mode})
rescue
- menu.add('command', 'label'=>format("%s (unknown Tk)", ip),
+ menu.add('command', 'label'=>format("%s (unknown Tk)", ip),
'command'=>proc{win.newApp ip, mode}, 'state'=>'disabled')
end
}
- menu.add('command', 'label'=>format("local (Ruby/Tk)"),
+ menu.add('command', 'label'=>format("local (Ruby/Tk)"),
'command'=>proc{win.newApp 'local', 'Ruby'})
end
end
diff --git a/ext/tk/sample/demos-en/rolodex b/ext/tk/sample/demos-en/rolodex
index 9a4030e902..dfc4b2b245 100644
--- a/ext/tk/sample/demos-en/rolodex
+++ b/ext/tk/sample/demos-en/rolodex
@@ -2,7 +2,7 @@
#
# rolodex --
# This script is a part of Tom LaStrange's rolodex
-#
+#
# Copyright (C) 1998 by Takaaki Tateishi <ttate@jaist.ac.jp>
# Time-stamp: "03/08/02 06:23:06 nagai"
#
@@ -17,7 +17,7 @@ def show_help(topic,x=0,y=0)
topic = w
end
end
-
+
if( $helpTopics.include?(topic) )
msg = $helpTopics[topic]
else
@@ -81,7 +81,7 @@ class RolodexFrame < TkFrame
def initialize(parent=nil,keys=nil)
super(parent,keys)
self["relief"] = "flat"
-
+
@i = []
@label = []
@entry = []
diff --git a/ext/tk/sample/demos-en/square b/ext/tk/sample/demos-en/square
index 00bfde59ff..bb66282154 100644
--- a/ext/tk/sample/demos-en/square
+++ b/ext/tk/sample/demos-en/square
@@ -1,10 +1,10 @@
#!/usr/bin/env ruby
# square --
-# This script generates a demo application containing only
-# a "square" widget. It's only usable if Tk has been compiled
-# with tkSquare.c and with the -DSQUARE_DEMO compiler switch.
-# This demo arranges the following bindings for the widget:
+# This script generates a demo application containing only
+# a "square" widget. It's only usable if Tk has been compiled
+# with tkSquare.c and with the -DSQUARE_DEMO compiler switch.
+# This demo arranges the following bindings for the widget:
#
# Button-1 press/drag: moves square to mouse
# "a": toggle size animation on/off
@@ -19,7 +19,7 @@ class TkSquare<TkWindow
tk_call 'square', path
rescue
STDERR.print "\nSorry. Your Tk interpreter does not contain " +
- 'a "square" demonstration widget.' +
+ 'a "square" demonstration widget.' +
"\n ( See documents included the Tcl/Tk source archive. )\n\n"
exit
end
@@ -53,7 +53,7 @@ def center(x,y)
end
# The procedures below provide a simple form of animation where
-# the box changes size in a pulsing pattern: larger, smaller, larger,
+# the box changes size in a pulsing pattern: larger, smaller, larger,
# and so on.
$inc = 0
diff --git a/ext/tk/sample/demos-en/tcolor b/ext/tk/sample/demos-en/tcolor
index 3c63d6730d..48cda6d1da 100644
--- a/ext/tk/sample/demos-en/tcolor
+++ b/ext/tk/sample/demos-en/tcolor
@@ -126,7 +126,7 @@ def _null_binding
end
private :_null_binding
-def doUpdate
+def doUpdate
newCmd = $command.to_s.gsub("%%","\"#{$color}\"")
eval(newCmd, _null_binding)
end
@@ -134,7 +134,7 @@ end
def tc_scaleChanged
if( $updating.to_i == 1 )
- return
+ return
end
$master = :scale if $master == nil
@@ -151,7 +151,7 @@ def tc_scaleChanged
when :cmy
$red = (65535 - scale1.get * 65.535).to_i
$green = (65535 - scale2.get * 65.535).to_i
- $blue = (65535 - scale3.get * 65.535).to_i
+ $blue = (65535 - scale3.get * 65.535).to_i
when :hsb
list = hsbToRgb(scale1.get / 1000.0,
scale2.get / 1000.0,
@@ -179,7 +179,7 @@ def tc_setScales
scale1 = $root.middle.middle.scale1
scale2 = $root.middle.middle.scale2
scale3 = $root.middle.middle.scale3
-
+
case $colorSpace.value.intern
when :rgb
scale1.set($red / 65.535)
@@ -205,7 +205,7 @@ end
def tc_loadNamedColor(name)
$name.value = name
$master = :name if $master == nil
- if name[0,1] != "#"
+ if name[0,1] != "#"
list = TkWinfo.rgb($root.middle.right.swatch,name)
$red = list[0]
$green = list[1]
@@ -239,7 +239,7 @@ def tc_loadNamedColor(name)
$green = $green << shift
$blue = $blue << shift
end
-
+
tc_setScales
$color = format("#%04x%04x%04x",$red,$green,$blue)
$root.middle.right.set_color($color)
@@ -318,7 +318,7 @@ class TkColorMenuFrame<TkFrame
"underline" => "0",
"command" => proc{exit}
}
-
+
# assign File menu to File button
menu @file_menu
@@ -354,7 +354,7 @@ class TkColorBotFrame<TkFrame
self
end
-end
+end
# left side frame of middle level
@@ -459,7 +459,7 @@ class TkColorMiddleRightFrame<TkFrame
super(parent)
@swatch = TkFrame.new(self, "width"=>"2c", "height"=>"5c",
"background"=>$color)
- @value = TkLabel.new(self,
+ @value = TkLabel.new(self,
"text"=>$color,
"width"=>"13",
"font"=>"-Adobe-Courier-Medium-R-Normal--*-120-*-*-*-*-*-*")
diff --git a/ext/tk/sample/demos-en/timer b/ext/tk/sample/demos-en/timer
index 58a41d00c0..6cb7c87e09 100644
--- a/ext/tk/sample/demos-en/timer
+++ b/ext/tk/sample/demos-en/timer
@@ -69,7 +69,7 @@ class CountFrame < TkFrame
def initialize(parent=nil,keys=nil)
super(parent,keys)
@counter = TkLabel.new(self,
- 'text'=>$time,
+ 'text'=>$time,
'relief'=>'raised')
@counter.pack('fill'=>'both')
self
diff --git a/ext/tk/sample/demos-en/widget b/ext/tk/sample/demos-en/widget
index 9a0605d8b9..e6510c7e45 100644
--- a/ext/tk/sample/demos-en/widget
+++ b/ext/tk/sample/demos-en/widget
@@ -26,15 +26,15 @@ $RubyTk_WidgetDemo = true
# $demo_dir = File.dirname($0)
$demo_dir = File.dirname(__FILE__)
-# root
+# root
$root = TkRoot.new{title "Ruby/Tk Widget Demonstration"}
-# tk
+# tk
$tk_version = Tk::TK_VERSION
$tk_major_ver, $tk_minor_ver = $tk_version.split('.').map{|n| n.to_i}
$tk_patchlevel = Tk::TK_PATCHLEVEL
-# tcl_platform
+# tcl_platform
$tk_platform = TkVarAccess.new('tcl_platform')
#
@@ -104,18 +104,18 @@ $image['print'] = TkPhotoImage.new(:height=>19, :format=>'GIF', :data=><<EOD)
EOD
end
-#
+#
if $tk_major_ver >= 8
- $root.add_menubar([[['File', 0],
+ $root.add_menubar([[['File', 0],
['About ... ', proc{aboutBox}, 0, '<F1>'],
- '---',
+ '---',
['Quit', proc{exit}, 0, 'Ctrl-Q']
]])
else
- TkMenubar.new($root,
- [[['File', 0],
+ TkMenubar.new($root,
+ [[['File', 0],
['About ... ', proc{aboutBox}, 0, '<F1>'],
- '---',
+ '---',
['Quit', proc{exit}, 0, 'Ctrl-Q']
]]).pack('side'=>'top', 'fill'=>'x')
end
@@ -135,7 +135,7 @@ TkFrame.new($root){|frame|
}.pack('side'=>'top', 'fill'=>'x')
=end
-#
+#
if $tk_version =~ /^4\.[01]/
scr = TkScrollbar.new($root, 'orient'=>'vertical')
txt = TkText.new($root) {
@@ -151,7 +151,7 @@ if $tk_version =~ /^4\.[01]/
txt.pack('expand'=>'yes', 'fill'=>'both')
else
textFrame = TkFrame.new($root)
- scr = TkScrollbar.new($root, 'orient'=>'vertical',
+ scr = TkScrollbar.new($root, 'orient'=>'vertical',
'highlightthickness'=>0, 'takefocus'=>1) {
pack('in'=>textFrame, 'side'=>'right', 'fill'=>'y', 'padx'=>1)
}
@@ -170,9 +170,12 @@ else
}
scr.command(proc{|*args| txt.yview(*args)})
# txt.pack('in'=>textFrame, 'expand'=>'yes', 'fill'=>'both', 'padx'=>1)
- txt.pack('in'=>textFrame, 'expand'=>'yes', 'fill'=>'both')
+# txt.pack('in'=>textFrame, 'expand'=>'yes', 'fill'=>'both')
# textFrame.pack('expand'=>'yes', 'fill'=>'both', 'padx'=>1, 'pady'=>2)
textFrame.pack('expand'=>'yes', 'fill'=>'both')
+ # $root.withdraw.deiconify
+ Tk.update_idletasks
+ txt.pack('in'=>textFrame, 'expand'=>'yes', 'fill'=>'both')
statusBar = TkFrame.new($root) {|f|
if $tk_version =~ /^4.*/
@@ -181,10 +184,10 @@ else
statusfont = 'Helvetica 10'
end
$statusBarLabel = \
- TkLabel.new(f, 'text'=>" ", 'relief'=>'sunken', 'bd'=>1, 'anchor'=>'w',
+ TkLabel.new(f, 'text'=>" ", 'relief'=>'sunken', 'bd'=>1, 'anchor'=>'w',
'font'=>statusfont) \
.pack('side'=>'left', 'padx'=>2, 'expand'=>'yes', 'fill'=>'both')
- TkLabel.new(f, 'width'=>8, 'relief'=>'sunken', 'bd'=>1, 'anchor'=>'w',
+ TkLabel.new(f, 'width'=>8, 'relief'=>'sunken', 'bd'=>1, 'anchor'=>'w',
'font'=>statusfont) \
.pack('side'=>'left', 'padx'=>2)
}.pack('side'=>'bottom', 'fill'=>'x', 'pady'=>2)
@@ -193,7 +196,7 @@ end
# Create a bunch of tags to use in the text widget, such as those for
# section titles and demo descriptions. Also define the bindings for
# tags.
-
+
if $tk_version =~ /^4.*/
tag_title = TkTextTag.new(txt, 'font'=>'-*-Helvetica-Bold-R-Normal--*-180-*-*-*-*-*-*')
else
@@ -207,23 +210,23 @@ end
tag_demospace = TkTextTag.new(txt, 'lmargin1'=>'1c', 'lmargin2'=>'1c')
if TkWinfo.depth($root) == 1
- tag_demo = TkTextTag.new(txt, 'lmargin1'=>'1c', 'lmargin2'=>'1c',
+ tag_demo = TkTextTag.new(txt, 'lmargin1'=>'1c', 'lmargin2'=>'1c',
'underline'=>1)
- $tag_visited = TkTextTag.new(txt, 'lmargin1'=>'1c', 'lmargin2'=>'1c',
+ $tag_visited = TkTextTag.new(txt, 'lmargin1'=>'1c', 'lmargin2'=>'1c',
'underline'=>1)
tag_hot = TkTextTag.new(txt, 'background'=>'black', 'foreground'=>'white')
else
- tag_demo = TkTextTag.new(txt, 'lmargin1'=>'1c', 'lmargin2'=>'1c',
+ tag_demo = TkTextTag.new(txt, 'lmargin1'=>'1c', 'lmargin2'=>'1c',
'foreground'=>'blue', 'underline'=>1)
- $tag_visited = TkTextTag.new(txt, 'lmargin1'=>'1c', 'lmargin2'=>'1c',
+ $tag_visited = TkTextTag.new(txt, 'lmargin1'=>'1c', 'lmargin2'=>'1c',
'foreground'=>'#303080', 'underline'=>1)
-# tag_hot = TkTextTag.new(txt, 'relief'=>'raised', 'borderwidth'=>1,
+# tag_hot = TkTextTag.new(txt, 'relief'=>'raised', 'borderwidth'=>1,
# 'background'=>'SeaGreen3')
tag_hot = TkTextTag.new(txt, 'borderwidth'=>1, 'foreground'=>'red')
end
#tag_demo.bind('Button-1', proc{invoke txt, txt.index('current')})
-tag_demo.bind('ButtonRelease-1',
+tag_demo.bind('ButtonRelease-1',
proc{|x,y|invoke txt, txt.index("@#{x},#{y}")}, '%x %y')
lastLine = TkVariable.new("")
@@ -234,7 +237,7 @@ tag_demo.bind('Enter', proc{|x,y|
showStatus txt, txt.index("@#{x},#{y}")
},
'%x %y')
-tag_demo.bind('Leave',
+tag_demo.bind('Leave',
proc{
tag_hot.remove('1.0','end')
txt.configure('cursor','xterm')
@@ -245,10 +248,10 @@ tag_demo.bind('Motion', proc{|x, y|
if newLine.value != lastLine.value
tag_hot.remove('1.0','end')
lastLine.value = newLine.value
- if ( txt.tag_names("@#{x},#{y}").find{|t|
+ if ( txt.tag_names("@#{x},#{y}").find{|t|
t.kind_of?(String) && t =~ /^demo-/
} )
- tag_hot.add(lastLine.value,
+ tag_hot.add(lastLine.value,
"#{lastLine.value} lineend -1 chars")
end
end
@@ -270,7 +273,7 @@ demonstration. If you wish, you can edit the code and click the \
with the modified code. \
Don't worry about breaking the source code. \
Your modifications are not reflected on the original file. \
-Please try many kind of changes.
+Please try many kind of changes.
Some demo scripts require the recent version of Tk library \
(e.g. Tk8.4 or later) \
@@ -350,8 +353,8 @@ txt.insert('end', "1. Without scrollbars.\n", tag_demo, "demo-entry1")
txt.insert('end', " \n ", tag_demospace)
txt.insert('end', "2. With scrollbars.\n", tag_demo, "demo-entry2")
txt.insert('end', " \n ", tag_demospace)
-txt.insert('end',
- "3. Validated entries and password fields. (if supported)\n",
+txt.insert('end',
+ "3. Validated entries and password fields. (if supported)\n",
tag_demo, "demo-entry3")
txt.insert('end', " \n ", tag_demospace)
txt.insert('end', "4. Spin-boxes. (if supported)\n", tag_demo, "demo-spin")
@@ -496,7 +499,7 @@ $showVarsWin = {}
def showVars1(parent, *args)
if $showVarsWin[parent.path]
begin
- $showVarsWin[parent.path].destroy
+ $showVarsWin[parent.path].destroy
rescue
end
end
@@ -536,7 +539,7 @@ end
def showVars2(parent, *args)
if $showVarsWin[parent.path]
begin
- $showVarsWin[parent.path].destroy
+ $showVarsWin[parent.path].destroy
rescue
end
end
@@ -545,11 +548,11 @@ def showVars2(parent, *args)
base = TkFrame.new(top).pack(:fill=>:both, :expand=>true)
- TkLabelFrame.new(base, :text=>"Variable values:",
+ TkLabelFrame.new(base, :text=>"Variable values:",
:font=>{:family=>'Helvetica', :size=>14}){|f|
args.each{|vnam,vbody|
- TkGrid(TkLabel.new(f, :text=>"#{vnam}: ", :anchor=>'w'),
- TkLabel.new(f, :textvariable=>vbody, :anchor=>'w'),
+ TkGrid(TkLabel.new(f, :text=>"#{vnam}: ", :anchor=>'w'),
+ TkLabel.new(f, :textvariable=>vbody, :anchor=>'w'),
:padx=>2, :pady=>2, :sticky=>'w')
}
@@ -557,7 +560,7 @@ def showVars2(parent, *args)
f.grid_columnconfig(1, :weight=>1)
f.grid_rowconfig(100, :weight=>1)
}
- TkButton.new(base, :text=>"OK", :width=>8, :default=>:active,
+ TkButton.new(base, :text=>"OK", :width=>8, :default=>:active,
:command=>proc{top.destroy}){|b|
top.bind('Return', proc{b.invoke})
top.bind('Escape', proc{b.invoke})
@@ -607,9 +610,9 @@ class Object
def method_missing(id, *args)
begin
- has_top = (top = Thread.current[:TOPLEVEL]) &&
- top.respond_to?(:pseudo_toplevel_evaluable?) &&
- top.pseudo_toplevel_evaluable? &&
+ has_top = (top = Thread.current[:TOPLEVEL]) &&
+ top.respond_to?(:pseudo_toplevel_evaluable?) &&
+ top.pseudo_toplevel_evaluable? &&
top.respond_to?(id)
rescue Exception => e
has_top = false
@@ -735,7 +738,7 @@ def showStatus (txt, index)
newcursor = 'xterm'
else
demoname = tag[5..-1]
- $statusBarLabel.configure('text',
+ $statusBarLabel.configure('text',
"Run the \"#{demoname}\" sample program")
newcursor = 'hand2'
end
@@ -797,9 +800,9 @@ def showCode1(demo)
TkFrame.new($code_window) {|f|
pack('expand'=>'yes', 'fill'=>'both', 'padx'=>1, 'pady'=>1)
- hs = TkScrollbar.new($code_window, 'highlightthickness'=>0,
+ hs = TkScrollbar.new($code_window, 'highlightthickness'=>0,
'orient'=>'horizontal')
- vs = TkScrollbar.new($code_window, 'highlightthickness'=>0,
+ vs = TkScrollbar.new($code_window, 'highlightthickness'=>0,
'orient'=>'vertical')
$code_text = TkText.new($code_window) {|t|
height 40
@@ -814,11 +817,11 @@ def showCode1(demo)
vs.command(proc{|*args| $code_text.yview(*args)})
}
- $code_text.grid('in'=>f, 'padx'=>1, 'pady'=>1, 'row'=>0, 'column'=>0,
+ $code_text.grid('in'=>f, 'padx'=>1, 'pady'=>1, 'row'=>0, 'column'=>0,
'rowspan'=>1, 'columnspan'=>1, 'sticky'=>'news')
- vs.grid('in'=>f, 'padx'=>1, 'pady'=>1, 'row'=>0, 'column'=>1,
+ vs.grid('in'=>f, 'padx'=>1, 'pady'=>1, 'row'=>0, 'column'=>1,
'rowspan'=>1, 'columnspan'=>1, 'sticky'=>'news')
-# xs.grid('in'=>f, 'padx'=>1, 'pady'=>1, 'row'=>1, 'column'=>0,
+# xs.grid('in'=>f, 'padx'=>1, 'pady'=>1, 'row'=>1, 'column'=>0,
# 'rowspan'=>1, 'columnspan'=>1, 'sticky'=>'news')
# JKC 2001-07-26: segfaults under 1.7.1 (2001-06-19) [i686-linux]
@@ -863,8 +866,8 @@ def showCode2(demo)
if $code_window == nil || TkWinfo.exist?($code_window) == false
$code_window = TkToplevel.new(nil)
tf = TkFrame.new($code_window)
- $code_text = TkText.new(tf, :font=>'Courier 10', :height=>30,
- :wrap=>'word', :bd=>1, :setgrid=>true,
+ $code_text = TkText.new(tf, :font=>'Courier 10', :height=>30,
+ :wrap=>'word', :bd=>1, :setgrid=>true,
:highlightthickness=>0, :pady=>2, :padx=>3)
xscr = TkScrollbar.new(tf, :bd=>1){assign($code_text)}
yscr = TkScrollbar.new(tf, :bd=>1){assign($code_text)}
@@ -887,20 +890,20 @@ def showCode2(demo)
posnum.text = pos
}
- b_dis = TkButton.new(bf, :text=>'Dismiss', :default=>:active,
+ b_dis = TkButton.new(bf, :text=>'Dismiss', :default=>:active,
:command=>proc{
$code_window.destroy
$code_window = nil
- },
+ },
:image=>$image['delete'], :compound=>:left)
- b_prn = TkButton.new(bf, :text=>'Print Code',
- :command=>proc{printCode($code_text, file)},
+ b_prn = TkButton.new(bf, :text=>'Print Code',
+ :command=>proc{printCode($code_text, file)},
:image=>$image['print'], :compound=>:left)
- b_run = TkButton.new(bf, :text=>'Rerun Demo',
+ b_run = TkButton.new(bf, :text=>'Rerun Demo',
:command=>proc{
# eval($code_text.get('1.0','end'), _null_binding)
eval_samplecode($code_text.get('1.0','end'), '<viewer>')
- },
+ },
:image=>$image['refresh'], :compound=>:left)
TkGrid(lf, 'x', b_run, b_prn, b_dis, :padx=>4, :pady=>[6,4])
@@ -976,23 +979,23 @@ def printCode(txt, file)
when 'unix'
msg = `lp -c #{fname}`
unless $?.exitstatus == 0
- Tk.messageBox(:title=>'Print spooling failure',
+ Tk.messageBox(:title=>'Print spooling failure',
:message=>'Print spooling probably failed: ' + msg)
end
when 'windows'
begin
printTextWin32(fname)
rescue => e
- Tk.messageBox(:title=>'Print spooling failure',
- :message=>'Print spooling probably failed: ' +
+ Tk.messageBox(:title=>'Print spooling failure',
+ :message=>'Print spooling probably failed: ' +
e.message)
- end
+ end
when 'macintosh'
- Tk.messageBox(:title=>'Operation not Implemented',
+ Tk.messageBox(:title=>'Operation not Implemented',
:message=>'Oops, sorry: not implemented yet!')
else
- Tk.messageBox(:title=>'Operation not Implemented',
- :message=>'Wow! Unknown platform: ' +
+ Tk.messageBox(:title=>'Operation not Implemented',
+ :message=>'Wow! Unknown platform: ' +
Tk::TCL_PLATFORM('platform'))
end
ensure
@@ -1022,7 +1025,7 @@ def printTextWin32(fname)
pcmd.gsub!('%1', fname)
puts pcmd
cmd = Tk.tk_call('auto_execok', 'start') + ' /min ' + pcmd
-
+
msg = `#{cmd}`
unless $?.exitstatus == 0
fail RuntimeError, msg
@@ -1034,16 +1037,16 @@ end
# Pops up a message box with an "about" message
#
def aboutBox
- Tk.messageBox('icon'=>'info', 'type'=>'ok', 'title'=>'About Widget Demo',
- 'message'=>"Ruby/Tk widget demonstration Ver.1.7.0-en\n\n" +
- "based on demos of Tk8.1 -- 8.5 " +
- "( Copyright of Tcl/Tk demos:: " +
- "(c) 1996-1997 Sun Microsystems, Inc. / " +
- "(c) 1997-2000 Ajuba Solutions, Inc. / " +
- "(c) 2001-2007 Donal K. Fellows / " +
+ Tk.messageBox('icon'=>'info', 'type'=>'ok', 'title'=>'About Widget Demo',
+ 'message'=>"Ruby/Tk widget demonstration Ver.1.7.1-en\n\n" +
+ "based on demos of Tk8.1 -- 8.5 " +
+ "( Copyright of Tcl/Tk demos:: " +
+ "(c) 1996-1997 Sun Microsystems, Inc. / " +
+ "(c) 1997-2000 Ajuba Solutions, Inc. / " +
+ "(c) 2001-2007 Donal K. Fellows / " +
"(c) 2002-2007 Daniel A. Steffen )\n\n" +
- "Your Ruby & Tk Version ::\n" +
- "Ruby#{RUBY_VERSION}(#{RUBY_RELEASE_DATE})[#{RUBY_PLATFORM}] / Tk#{$tk_patchlevel}#{(Tk::JAPANIZED_TK)? '-jp': ''}\n\n" +
+ "Your Ruby & Tk Version ::\n" +
+ "Ruby#{RUBY_VERSION}(#{RUBY_RELEASE_DATE})[#{RUBY_PLATFORM}] / Tk#{$tk_patchlevel}#{(Tk::JAPANIZED_TK)? '-jp': ''}\n\n" +
"Ruby/Tk release date :: tcltklib #{TclTkLib::RELEASE_DATE}; tk #{Tk::RELEASE_DATE}")
end
@@ -1057,11 +1060,11 @@ else
# show the root widget to make it lower then demo windows
Tk.update
end
-ARGV.each{|cmd|
+ARGV.each{|cmd|
if cmd =~ /(.*).rb/
cmd = $1
end
- #eval(IO.readlines("#{[$demo_dir, cmd].join(File::Separator)}.rb").join,
+ #eval(IO.readlines("#{[$demo_dir, cmd].join(File::Separator)}.rb").join,
# _null_binding)
eval_samplecode(IO.readlines("#{[$demo_dir, cmd].join(File::Separator)}.rb").join, cmd + '.rb')
}
diff --git a/ext/tk/sample/demos-jp/README b/ext/tk/sample/demos-jp/README
index 42bec16c60..6375800232 100644
--- a/ext/tk/sample/demos-jp/README
+++ b/ext/tk/sample/demos-jp/README
@@ -1,11 +1,11 @@
- Ruby/Tk widget-demo
+ Ruby/Tk widget-demo
version 1.2 ( 2000/04/08 )
±Ê°æ¡÷ÃÎǽ¡¥¶å¹©Âç (nagai@ai.kyutech.ac.jp)
-ɸ½àÇÛÉۤΠTcl/Tk ³ÈÄ¥¥Ñ¥Ã¥±¡¼¥¸¤ò¼è¤ê¹þ¤ó¤À Ruby (°Ê²¼ Ruby/Tk ¤È¸Æ¤Ó¤Þ¤¹)
+ɸ½àÇÛÉۤΠTcl/Tk ³ÈÄ¥¥Ñ¥Ã¥±¡¼¥¸¤ò¼è¤ê¹þ¤ó¤À Ruby (°Ê²¼ Ruby/Tk ¤È¸Æ¤Ó¤Þ¤¹)
¤Ç¤Ï¡¤Tk widget ¤òÍѤ¤¤¿ GUI ¤ÎºîÀ®¤ò¹Ô¤¦¤³¤È¤¬¤Ç¤­¤Þ¤¹¡¥¼ÂºÝ¤Ë GUI ¤òºîÀ®
-¤·¤Æ¤¤¤¯¾ì¹ç¤Ë¤ÏÍÍ¡¹¤Ê¼ÂÎ㤬¥µ¥ó¥×¥ë¤È¤·¤ÆÂ¸ºß¤¹¤ë¤ÈÊØÍø¤Ê¤Î¤Ç¤¹¤¬¡¤Ruby/Tk
+¤·¤Æ¤¤¤¯¾ì¹ç¤Ë¤ÏÍÍ¡¹¤Ê¼ÂÎ㤬¥µ¥ó¥×¥ë¤È¤·¤ÆÂ¸ºß¤¹¤ë¤ÈÊØÍø¤Ê¤Î¤Ç¤¹¤¬¡¤Ruby/Tk
¤Ë¤Ï¤½¤Î¤è¤¦¤ÊŬÅö¤Ê¥µ¥ó¥×¥ë¥¹¥¯¥ê¥×¥È½¸¹ç¤Ï¸ºß¤·¤Þ¤»¤ó¤Ç¤·¤¿¡¥¤½¤ì¤ËÂФ·¡¤
³ÈÄ¥¥Ñ¥Ã¥±¡¼¥¸¤Î¸µ¤Ç¤¢¤ë Tcl/Tk ¤Ë¤Ï¡¤Tk widget ¤òÍѤ¤¤Æ¤É¤Î¤è¤¦¤Ê¤³¤È¤¬¤Ç
¤­¤ë¤«¤ò¼¨¤¹¤â¤Î¤È¤·¤Æ widget-demo ¤¬Â¸ºß¤·¤ª¤ê¡¤Tcl/Tk ¤òÍѤ¤¤¿ GUI ¤ÎºîÀ®
@@ -34,21 +34,21 @@ Tcl/Tk ¤Ë¤ÏŬÅö¤Ê»²¹Í½ñ¤¬²¿ºý¤«Â¸ºß¤·¤Æ¤¤¤Þ¤¹¤«¤é¡¤Ruby/Tk ¥¹¥¯¥ê¥×¥È¤òºîÀ®
¤Ç¤·¤ç¤¦¡¥Ruby/Tk ÈǤε­½Ò¤ò widget-demo ¤ò Tcl/Tk ÈǤε­½Ò¤Ë¶á¤¤¤â¤Î¤Ë¤·¤Æ
¤ª¤±¤Ð¡¤¤½¤ÎÂÐÈæ¤Ë¤è¤Ã¤Æ¡¤Ruby/Tk ¤ÎÍý²ò¤òÁá¤á¤ë¤³¤È¤¬¤Ç¤­¤ë¤È¹Í¤¨¤é¤ì¤Þ¤¹¡¥
°ìö Ruby/Tk ¤Ç¤Î ³Æ widget ¤Î»ÈÍÑÊýË¡¤ò½¬ÆÀ¤·¤Æ¤·¤Þ¤¨¤Ð¡¤Ruby ¤é¤·¤¤¥¹¥¯¥ê
-¥×¥È¤òºîÀ®¤¹¤ë¤³¤È¤ÏÆñ¤·¤¯¤Ê¤¤¤Ç¤·¤ç¤¦¡¥ËÜ¥¢¡¼¥«¥¤¥Ö¤Î¥¹¥¯¥ê¥×¥È¤Ï¡¤Ruby/Tk
+¥×¥È¤òºîÀ®¤¹¤ë¤³¤È¤ÏÆñ¤·¤¯¤Ê¤¤¤Ç¤·¤ç¤¦¡¥ËÜ¥¢¡¼¥«¥¤¥Ö¤Î¥¹¥¯¥ê¥×¥È¤Ï¡¤Ruby/Tk
¤òºÇ½é¤Ë½¬ÆÀ¤¹¤ë¤Þ¤Ç¤ÎÆ§Âæ¤È¤·¤ÆÍøÍѤ·¤Æ¤¤¤¿¤À¤±¤ì¤Ð¹¬¤¤¤Ç¤¹¡¥
widget-demo ¤Î°Ü¿¢¤Ë¤¢¤¿¤Ã¤Æ¤Ï¡¤¼¡¤ÎÊý¤Ë¤â°Ü¿¢¤·¤¿¥¹¥¯¥ê¥×¥È¤òÄ󶡤·¤Æ¤¤¤¿¤À
¤­¤Þ¤·¤¿¡¥¤³¤³¤Ë´¶¼Õ¤Î°Õ¤òɽ¤·¤Þ¤¹¡¥
- ΩÀС÷JAIST (ttate@jaist.ac.jp) ¤µ¤ó
+ ΩÀС÷JAIST (ttate@jaist.ac.jp) ¤µ¤ó
Ê¿¾¾¾Í»Ë (hiramatu@cdrom.co.jp) ¤µ¤ó
-Ê¿¾¾¤µ¤ó¤Ë¤è¤ë Ruby/Tk ÆþÌç¤Î Web page (http://www.cdrom.co.jp/~hiramatu/)
+Ê¿¾¾¤µ¤ó¤Ë¤è¤ë Ruby/Tk ÆþÌç¤Î Web page (http://www.cdrom.co.jp/~hiramatu/)
¤â Ruby/Tk ¤Î½¬ÆÀ¤ËÍ­ÍѤȻפ¨¤Þ¤¹¤Î¤Ç¡¤¤¼¤Ò¤´»²¾È¤¯¤À¤µ¤¤¡¥
¤Þ¤¿¡¤Á°¶¶ (maebashi@iij.ad.jp) ¤µ¤ó¤ò¤Ï¤¸¤á¤È¤·¤Æ¡¤widget-demo ¤Î°Ü¿¢¤ËºÝ¤·
¤ÆÉ¬ÍפȤʤä¿ Ruby ¤Î Tk ´ØÏ¢¥é¥¤¥Ö¥é¥ê½¤Àµ¤Ë¤Ä¤¤¤Æ¡¤ÌäÂêÅÀ¡¤¥Ð¥°¤Î»ØÅ¦¤ò¤·
¤Æ¤¤¤¿¤À¤¤¤¿Êý¡¹¤Ë¤â´¶¼ÕÃפ·¤Þ¤¹¡¥
-¤½¤·¤ÆºÇ¸å¤ËºÇÂç¤Î´¶¼Õ¤ò Ruby À߷׼ԤΠ¤Þ¤Ä¤â¤È ¤æ¤­¤Ò¤í (matz@netlab.co.jp)
+¤½¤·¤ÆºÇ¸å¤ËºÇÂç¤Î´¶¼Õ¤ò Ruby À߷׼ԤΠ¤Þ¤Ä¤â¤È ¤æ¤­¤Ò¤í (matz@netlab.co.jp)
¤µ¤ó¤ËÊû¤²¤¿¤¤¤È»×¤¤¤Þ¤¹¡¥
diff --git a/ext/tk/sample/demos-jp/browse1 b/ext/tk/sample/demos-jp/browse1
index 03e251035a..568892e4a8 100644
--- a/ext/tk/sample/demos-jp/browse1
+++ b/ext/tk/sample/demos-jp/browse1
@@ -1,16 +1,16 @@
#!/usr/bin/env ruby
# browse --
-# This script generates a directory browser, which lists the working
-# directory and allow you to open files or subdirectories by
-# double-clicking.
+# This script generates a directory browser, which lists the working
+# directory and allow you to open files or subdirectories by
+# double-clicking.
require 'tk'
-# Create a scrollbar on the right side of the main window and a listbox
+# Create a scrollbar on the right side of the main window and a listbox
# on the left side.
-listbox = TkListbox.new(nil, 'relief'=>'sunken',
+listbox = TkListbox.new(nil, 'relief'=>'sunken',
'width'=>20, 'height'=>20, 'setgrid'=>'yes') {|l|
TkScrollbar.new(nil, 'command'=>proc{|*args| l.yview *args}) {|s|
pack('side'=>'right', 'fill'=>'y')
@@ -23,10 +23,10 @@ listbox = TkListbox.new(nil, 'relief'=>'sunken',
root = TkRoot.new
root.minsize(1,1)
-# The procedure below is invoked to open a browser on a given file; if the
-# file is a directory then another instance of this program is invoked; if
-# the file is a regular file then the Mx editor is invoked to display
-# the file.
+# The procedure below is invoked to open a browser on a given file; if the
+# file is a directory then another instance of this program is invoked; if
+# the file is a regular file then the Mx editor is invoked to display
+# the file.
def browse (dir, file)
file = dir + File::Separator + file if dir != '.'
@@ -46,7 +46,7 @@ def browse (dir, file)
end
end
-# Fill the listbox with a list of all the files in the directory (run
+# Fill the listbox with a list of all the files in the directory (run
# the "ls" command to get that information).
dir = ARGV[0] ? ARGV[0] : '.'
@@ -57,7 +57,7 @@ open("|ls -a #{dir}", 'r'){|fid| fid.readlines}.each{|fname|
# Set up bindings for the browser.
Tk.bind_all('Control-c', proc{root.destroy})
-listbox.bind('Double-Button-1',
+listbox.bind('Double-Button-1',
proc{TkSelection.get.each{|f| browse dir, f}})
Tk.mainloop
diff --git a/ext/tk/sample/demos-jp/browse2 b/ext/tk/sample/demos-jp/browse2
index edad04dbcb..1a511c8d29 100644
--- a/ext/tk/sample/demos-jp/browse2
+++ b/ext/tk/sample/demos-jp/browse2
@@ -1,9 +1,9 @@
#!/usr/bin/env ruby
# browse --
-# This script generates a directory browser, which lists the working
-# directory and allow you to open files or subdirectories by
-# double-clicking.
+# This script generates a directory browser, which lists the working
+# directory and allow you to open files or subdirectories by
+# double-clicking.
require 'tk'
@@ -19,9 +19,9 @@ class Browse
title('Browse : ' + dir)
}
- # Create a scrollbar on the right side of the main window and a listbox
+ # Create a scrollbar on the right side of the main window and a listbox
# on the left side.
- list = TkListbox.new(base, 'relief'=>'sunken',
+ list = TkListbox.new(base, 'relief'=>'sunken',
'width'=>20, 'height'=>20, 'setgrid'=>'yes') {|l|
TkScrollbar.new(base, 'command'=>proc{|*args| l.yview *args}) {|s|
pack('side'=>'right', 'fill'=>'y')
@@ -30,7 +30,7 @@ class Browse
pack('side'=>'left', 'fill'=>'both', 'expand'=>'yes')
- # Fill the listbox with a list of all the files in the directory (run
+ # Fill the listbox with a list of all the files in the directory (run
# the "ls" command to get that information).
open("|ls -a #{dir}", 'r'){|fid| fid.readlines}.each{|fname|
l.insert('end', fname.chomp)
@@ -44,14 +44,14 @@ class Browse
Browse::BROWSE_WIN_COUNTER.to_i - 1
})
base.bind('Control-c', proc{base.destroy})
- list.bind('Double-Button-1',
+ list.bind('Double-Button-1',
proc{TkSelection.get.each{|f| self.browse dir, f}})
end
- # The method below is invoked to open a browser on a given file; if the
- # file is a directory then another instance of this program is invoked; if
- # the file is a regular file then the Mx editor is invoked to display
- # the file.
+ # The method below is invoked to open a browser on a given file; if the
+ # file is a directory then another instance of this program is invoked; if
+ # the file is a regular file then the Mx editor is invoked to display
+ # the file.
def browse (dir, file)
file = dir + File::Separator + file if dir != '.'
type = File.ftype(file)
diff --git a/ext/tk/sample/demos-jp/doc.org/license.terms b/ext/tk/sample/demos-jp/doc.org/license.terms
index 03ca6fcb31..c0a44d3fc2 100644
--- a/ext/tk/sample/demos-jp/doc.org/license.terms
+++ b/ext/tk/sample/demos-jp/doc.org/license.terms
@@ -28,7 +28,7 @@ MODIFICATIONS.
GOVERNMENT USE: If you are acquiring this software on behalf of the
U.S. government, the Government shall have only "Restricted Rights"
-in the software and related documentation as defined in the Federal
+in the software and related documentation as defined in the Federal
Acquisition Regulations (FARs) in Clause 52.227.19 (c) (2). If you
are acquiring the software on behalf of the Department of Defense, the
software shall be classified as "Commercial Computer Software" and the
diff --git a/ext/tk/sample/demos-jp/doc.org/license.terms.tk80 b/ext/tk/sample/demos-jp/doc.org/license.terms.tk80
index 03ca6fcb31..c0a44d3fc2 100644
--- a/ext/tk/sample/demos-jp/doc.org/license.terms.tk80
+++ b/ext/tk/sample/demos-jp/doc.org/license.terms.tk80
@@ -28,7 +28,7 @@ MODIFICATIONS.
GOVERNMENT USE: If you are acquiring this software on behalf of the
U.S. government, the Government shall have only "Restricted Rights"
-in the software and related documentation as defined in the Federal
+in the software and related documentation as defined in the Federal
Acquisition Regulations (FARs) in Clause 52.227.19 (c) (2). If you
are acquiring the software on behalf of the Department of Defense, the
software shall be classified as "Commercial Computer Software" and the
diff --git a/ext/tk/sample/demos-jp/ixset b/ext/tk/sample/demos-jp/ixset
index 46c2378073..40a77f487c 100644
--- a/ext/tk/sample/demos-jp/ixset
+++ b/ext/tk/sample/demos-jp/ixset
@@ -164,9 +164,9 @@ class Xsettings
#
bell = TkFrame.new(@root, 'relief'=>'raised', 'borderwidth'=>2)
l = TkLabel.new(bell, 'text'=>'Bell Settings')
- @w_bellvol = TkScale.new(bell, 'from'=>0, 'to'=>100, 'length'=>200,
- 'tickinterval'=>20, 'orient'=>'horizontal',
- 'label'=>"Volume (%)")
+ @w_bellvol = TkScale.new(bell, 'from'=>0, 'to'=>100, 'length'=>200,
+ 'tickinterval'=>20, 'orient'=>'horizontal',
+ 'label'=>"Volume (%)")
f = TkFrame.new(bell)
@w_bellpit = LabelEntry.new(f, "Pitch (Hz)", 6)
@@ -180,13 +180,13 @@ class Xsettings
#
# Keyboard settings
- #
+ #
kbdonoff = nil
kbdcli = nil
kbd = TkFrame.new(@root, 'relief'=>'raised', 'borderwidth'=>2)
l = TkLabel.new(kbd, 'text'=>'Keyboard Repeat Settings')
f = TkFrame.new(kbd)
- @w_kbdonoff = TkCheckButton.new(f, 'text'=>'On', 'relief'=>'flat',
+ @w_kbdonoff = TkCheckButton.new(f, 'text'=>'On', 'relief'=>'flat',
'onvalue'=>'on', 'offvalue'=>'off',
'variable'=>@w_kbdrep ) {
def self.set(value)
@@ -198,8 +198,8 @@ class Xsettings
end
pack('side'=>'left', 'expand'=>'yes', 'fill'=>'both')
}
- @w_kbdcli = TkScale.new(f, 'from'=>0, 'to'=>100, 'length'=>200,
- 'tickinterval'=>20, 'orient'=>'horizontal',
+ @w_kbdcli = TkScale.new(f, 'from'=>0, 'to'=>100, 'length'=>200,
+ 'tickinterval'=>20, 'orient'=>'horizontal',
'label'=>'Click Volume (%)')
@w_kbdcli.pack('side'=>'left', 'expand'=>'yes')
l.pack('side'=>'top', 'expand'=>'yes')
@@ -225,9 +225,9 @@ class Xsettings
l = TkLabel.new(screen, 'text'=>'Screen-saver Settings')
f = TkFrame.new(screen)
ff1 = TkFrame.new(f)
- [ @w_screenblank = TkRadioButton.new(ff1, 'text'=>'Blank',
- 'relief'=>'flat',
- 'variable'=>@w_screenbla,
+ [ @w_screenblank = TkRadioButton.new(ff1, 'text'=>'Blank',
+ 'relief'=>'flat',
+ 'variable'=>@w_screenbla,
'value'=>'blank') {
def self.set(value)
if value == 'blank'
@@ -236,10 +236,10 @@ class Xsettings
self.deselect
end
end
- },
- @w_screenpat = TkRadioButton.new(ff1, 'text'=>'Pattern',
- 'relief'=>'flat',
- 'variable'=>@w_screenbla,
+ },
+ @w_screenpat = TkRadioButton.new(ff1, 'text'=>'Pattern',
+ 'relief'=>'flat',
+ 'variable'=>@w_screenbla,
'value'=>'noblank') {
def self.set(value)
if value != 'blank'
@@ -252,7 +252,7 @@ class Xsettings
].each {|w| w.pack('side'=>'top', 'pady'=>2, 'anchor'=>'w') }
ff2 = TkFrame.new(f)
- [ @w_screentim = LabelEntry.new(ff2, 'Timeout (s)', 5),
+ [ @w_screentim = LabelEntry.new(ff2, 'Timeout (s)', 5),
@w_screencyc = LabelEntry.new(ff2, 'Cycle (s)', 5) ].each{|w|
w.pack('side'=>'top', 'pady'=>2, 'anchor'=>'e')
}
diff --git a/ext/tk/sample/demos-jp/ixset2 b/ext/tk/sample/demos-jp/ixset2
index 5b816e40b1..5011dfe640 100644
--- a/ext/tk/sample/demos-jp/ixset2
+++ b/ext/tk/sample/demos-jp/ixset2
@@ -135,8 +135,8 @@ class Xsettings
def initialize(parent, text, length, range=[])
@frame = TkFrame.new(parent)
TkLabel.new(@frame, 'text'=>text).pack('side'=>'left')
- if range.size > 0
- @entry = TkSpinbox.new(@frame, 'width'=>length, 'relief'=>'sunken',
+ if range.size > 0
+ @entry = TkSpinbox.new(@frame, 'width'=>length, 'relief'=>'sunken',
'from'=>range[0], 'to'=>range[1])
else
@entry = TkEntry.new(@frame, 'width'=>length, 'relief'=>'sunken')
@@ -165,16 +165,16 @@ class Xsettings
# Buttons
#
btn_frame = TkFrame.new(@root)
- buttons = [
- @btn_OK = TkButton.new(btn_frame, 'command'=>proc{win.ok},
+ buttons = [
+ @btn_OK = TkButton.new(btn_frame, 'command'=>proc{win.ok},
'default'=>'active', 'text'=>'λ²ò'),
- @btn_APPLY = TkButton.new(btn_frame, 'command'=>proc{win.writesettings},
- 'default'=>'normal', 'text'=>'ŬÍÑ',
+ @btn_APPLY = TkButton.new(btn_frame, 'command'=>proc{win.writesettings},
+ 'default'=>'normal', 'text'=>'ŬÍÑ',
'state'=>'disabled'),
- @btn_CANCEL = TkButton.new(btn_frame, 'command'=>proc{win.cancel},
- 'default'=>'normal', 'text'=>'¼è¾Ã',
+ @btn_CANCEL = TkButton.new(btn_frame, 'command'=>proc{win.cancel},
+ 'default'=>'normal', 'text'=>'¼è¾Ã',
'state'=>'disabled'),
- @btn_QUIT = TkButton.new(btn_frame, 'command'=>proc{win.quit},
+ @btn_QUIT = TkButton.new(btn_frame, 'command'=>proc{win.quit},
'default'=>'normal', 'text'=>'̾ȧ')
]
buttons.each{|b| b.pack('side'=>'left', 'expand'=>'yes', 'pady'=>5) }
@@ -202,10 +202,10 @@ class Xsettings
#
# Bell settings
#
- bell = TkLabelframe.new(@root, 'text'=>'¥Ù¥ëÀßÄê',
+ bell = TkLabelframe.new(@root, 'text'=>'¥Ù¥ëÀßÄê',
'padx'=>'1.5m', 'pady'=>'1.5m')
- @w_bellvol = TkScale.new(bell, 'from'=>0, 'to'=>100, 'length'=>200,
- 'tickinterval'=>20, 'orient'=>'horizontal',
+ @w_bellvol = TkScale.new(bell, 'from'=>0, 'to'=>100, 'length'=>200,
+ 'tickinterval'=>20, 'orient'=>'horizontal',
'label'=>"²»ÎÌ (%)")
f = TkFrame.new(bell)
@@ -219,14 +219,14 @@ class Xsettings
#
# Keyboard settings
- #
+ #
kbdonoff = nil
kbdcli = nil
- kbd = TkLabelframe.new(@root, 'text'=>'¥­¡¼¥Ü¡¼¥É¥ê¥Ô¡¼¥ÈÀßÄê',
+ kbd = TkLabelframe.new(@root, 'text'=>'¥­¡¼¥Ü¡¼¥É¥ê¥Ô¡¼¥ÈÀßÄê',
'padx'=>'1.5m', 'pady'=>'1.5m')
f = TkFrame.new(kbd)
- @w_kbdonoff = TkCheckButton.new(f, 'text'=>'¥¯¥ê¥Ã¥¯²»¤¢¤ê',
- 'relief'=>'flat',
+ @w_kbdonoff = TkCheckButton.new(f, 'text'=>'¥¯¥ê¥Ã¥¯²»¤¢¤ê',
+ 'relief'=>'flat',
'onvalue'=>'on', 'offvalue'=>'off',
'variable'=>@w_kbdrep ) {
def self.set(value)
@@ -238,17 +238,17 @@ class Xsettings
end
pack('side'=>'left', 'expand'=>'yes', 'fill'=>'x', 'padx'=>[0, '1m'])
}
- @w_kbdcli = TkScale.new(f, 'from'=>0, 'to'=>100, 'length'=>200,
- 'tickinterval'=>20, 'orient'=>'horizontal',
+ @w_kbdcli = TkScale.new(f, 'from'=>0, 'to'=>100, 'length'=>200,
+ 'tickinterval'=>20, 'orient'=>'horizontal',
'label'=>'¥¯¥ê¥Ã¥¯²»ÎÌ (%)')
- @w_kbdcli.pack('side'=>'left', 'expand'=>'yes',
+ @w_kbdcli.pack('side'=>'left', 'expand'=>'yes',
'fill'=>'x', 'padx'=>['1m', 0])
f.pack('side'=>'top', 'expand'=>'yes', 'pady'=>2, 'fill'=>'x')
#
# Mouse settings
#
- mouse = TkLabelframe.new(@root, 'text'=>'¥Þ¥¦¥¹ÀßÄê',
+ mouse = TkLabelframe.new(@root, 'text'=>'¥Þ¥¦¥¹ÀßÄê',
'padx'=>'1.5m', 'pady'=>'1.5m')
f = TkFrame.new(mouse)
@w_mouseacc = LabelEntry.new(f, '²Ã®ÎÌ', 5)
@@ -260,11 +260,11 @@ class Xsettings
#
# Screen Saver settings
#
- screen = TkLabelframe.new(@root, 'text'=>'¥¹¥¯¥ê¡¼¥ó¥»¡¼¥ÐÀßÄê',
+ screen = TkLabelframe.new(@root, 'text'=>'¥¹¥¯¥ê¡¼¥ó¥»¡¼¥ÐÀßÄê',
'padx'=>'1.5m', 'pady'=>'1.5m')
- @w_screenblank = TkRadioButton.new(screen, 'text'=>'¥Ö¥é¥ó¥¯É½¼¨',
- 'relief'=>'flat', 'anchor'=>'w',
- 'variable'=>@w_screenbla,
+ @w_screenblank = TkRadioButton.new(screen, 'text'=>'¥Ö¥é¥ó¥¯É½¼¨',
+ 'relief'=>'flat', 'anchor'=>'w',
+ 'variable'=>@w_screenbla,
'value'=>'blank') {
def self.set(value)
if value == 'blank'
@@ -275,9 +275,9 @@ class Xsettings
end
}
- @w_screenpat = TkRadioButton.new(screen, 'text'=>'¥Ñ¥¿¡¼¥óɽ¼¨',
- 'relief'=>'flat', 'anchor'=>'w',
- 'variable'=>@w_screenbla,
+ @w_screenpat = TkRadioButton.new(screen, 'text'=>'¥Ñ¥¿¡¼¥óɽ¼¨',
+ 'relief'=>'flat', 'anchor'=>'w',
+ 'variable'=>@w_screenbla,
'value'=>'noblank') {
def self.set(value)
if value != 'blank'
@@ -299,7 +299,7 @@ class Xsettings
# Main window
#
param = {
- 'side'=>'top', 'fill'=>'both', 'expand'=>'yes',
+ 'side'=>'top', 'fill'=>'both', 'expand'=>'yes',
'padx'=>'1m', 'pady'=>'1m'
}
btn_frame.pack('side'=>'top', 'fill'=>'both')
diff --git a/ext/tk/sample/demos-jp/rmt b/ext/tk/sample/demos-jp/rmt
index 73f631180a..dcfb328fc8 100644
--- a/ext/tk/sample/demos-jp/rmt
+++ b/ext/tk/sample/demos-jp/rmt
@@ -1,9 +1,9 @@
#!/usr/bin/env ruby
-# rmt --
-# This script implements a simple remote-control mechanism for
-# Tk applications. It allows you to select an application and
-# then type commands to that application.
+# rmt --
+# This script implements a simple remote-control mechanism for
+# Tk applications. It allows you to select an application and
+# then type commands to that application.
require 'tk'
@@ -17,41 +17,41 @@ class Rmt
root = TkWinfo.toplevel(parent)
root.minsize(1,1)
- # The instance variable below keeps track of the remote application
- # that we're sending to. If it's an empty string then we execute
- # the commands locally.
+ # The instance variable below keeps track of the remote application
+ # that we're sending to. If it's an empty string then we execute
+ # the commands locally.
@app = 'local'
@mode = 'Ruby'
- # The instance variable below keeps track of whether we're in the
- # middle of executing a command entered via the text.
+ # The instance variable below keeps track of whether we're in the
+ # middle of executing a command entered via the text.
@executing = 0
- # The instance variable below keeps track of the last command executed,
- # so it can be re-executed in response to !! commands.
+ # The instance variable below keeps track of the last command executed,
+ # so it can be re-executed in response to !! commands.
@lastCommand = ""
- # Create menu bar. Arrange to recreate all the information in the
- # applications sub-menu whenever it is cascaded to.
+ # Create menu bar. Arrange to recreate all the information in the
+ # applications sub-menu whenever it is cascaded to.
TkFrame.new(root, 'relief'=>'raised', 'bd'=>2) {|f|
pack('side'=>'top', 'fill'=>'x')
TkMenubutton.new(f, 'text'=>'File', 'underline'=>0) {|mb|
TkMenu.new(mb) {|mf|
mb.menu(mf)
- TkMenu.new(mf) {|ma|
+ TkMenu.new(mf) {|ma|
postcommand proc{win.fillAppsMenu ma}
- mf.add('cascade', 'label'=>'Select Application',
+ mf.add('cascade', 'label'=>'Select Application',
'menu'=>ma, 'underline'=>0)
}
- add('command', 'label'=>'Quit',
+ add('command', 'label'=>'Quit',
'command'=>proc{root.destroy}, 'underline'=>0)
}
pack('side'=>'left')
}
}
- # Create text window and scrollbar.
+ # Create text window and scrollbar.
@txt = TkText.new(root, 'relief'=>'sunken', 'bd'=>2, 'setgrid'=>true) {
yscrollbar(TkScrollbar.new(root){pack('side'=>'right', 'fill'=>'y')})
@@ -60,9 +60,9 @@ class Rmt
@promptEnd = TkTextMark.new(@txt, 'insert')
- # Create a binding to forward commands to the target application,
- # plus modify many of the built-in bindings so that only information
- # in the current command can be deleted (can still set the cursor
+ # Create a binding to forward commands to the target application,
+ # plus modify many of the built-in bindings so that only information
+ # in the current command can be deleted (can still set the cursor
# earlier in the text and select and insert; just can't delete).
@txt.bindtags([@txt, TkText, root, 'all'])
@@ -151,8 +151,8 @@ class Rmt
w.see('insert')
end
- # The method below is used to print out a prompt at the
- # insertion point (which should be at the beginning of a line
+ # The method below is used to print out a prompt at the
+ # insertion point (which should be at the beginning of a line
# right now).
def prompt
@@ -162,8 +162,8 @@ class Rmt
@txt.tag_add('bold', "#{@promptEnd.path} linestart", @promptEnd)
end
- # The method below executes a command (it takes everything on the
- # current line after the prompt and either sends it to the remote
+ # The method below executes a command (it takes everything on the
+ # current line after the prompt and either sends it to the remote
# application or executes it locally, depending on "app".
def invoke
@@ -200,8 +200,8 @@ class Rmt
if complete
@lastCommand = cmd
begin
-# msg = Tk.appsend(@app, false,
-# 'ruby',
+# msg = Tk.appsend(@app, false,
+# 'ruby',
# '"(' + cmd.gsub(/[][$"]/, '\\\\\&') + ').to_s"')
msg = Tk.rb_appsend(@app, false, cmd)
rescue
@@ -218,10 +218,10 @@ class Rmt
end
# The following method is invoked to change the application that
- # we're talking to. It also updates the prompt for the current
- # command, unless we're in the middle of executing a command from
- # the text item (in which case a new prompt is about to be output
- # so there's no need to change the old one).
+ # we're talking to. It also updates the prompt for the current
+ # command, unless we're in the middle of executing a command from
+ # the text item (in which case a new prompt is about to be output
+ # so there's no need to change the old one).
def newApp(appName, mode)
@app = appName
@@ -236,7 +236,7 @@ class Rmt
end
# The method below will fill in the applications sub-menu with a list
- # of all the applications that currently exist.
+ # of all the applications that currently exist.
def fillAppsMenu(menu)
win = self
@@ -251,14 +251,14 @@ class Rmt
else
mode = 'Ruby'
end
- menu.add('command', 'label'=>format("%s (#{mode}/Tk)", ip),
+ menu.add('command', 'label'=>format("%s (#{mode}/Tk)", ip),
'command'=>proc{win.newApp ip, mode})
rescue
- menu.add('command', 'label'=>format("%s (unknown Tk)", ip),
+ menu.add('command', 'label'=>format("%s (unknown Tk)", ip),
'command'=>proc{win.newApp ip, mode}, 'state'=>'disabled')
end
}
- menu.add('command', 'label'=>format("local (Ruby/Tk)"),
+ menu.add('command', 'label'=>format("local (Ruby/Tk)"),
'command'=>proc{win.newApp 'local', 'Ruby'})
end
end
diff --git a/ext/tk/sample/demos-jp/rolodex b/ext/tk/sample/demos-jp/rolodex
index 9f87ae2829..2cc73e128f 100644
--- a/ext/tk/sample/demos-jp/rolodex
+++ b/ext/tk/sample/demos-jp/rolodex
@@ -2,7 +2,7 @@
#
# rolodex --
# This script is a part of Tom LaStrange's rolodex
-#
+#
# Copyright (C) 1998 by Takaaki Tateishi <ttate@jaist.ac.jp>
# Time-stamp: "03/08/02 12:45:21 nagai"
#
@@ -17,7 +17,7 @@ def show_help(topic,x=0,y=0)
topic = w
end
end
-
+
if( $helpTopics.include?(topic) )
msg = $helpTopics[topic]
else
@@ -81,7 +81,7 @@ class RolodexFrame < TkFrame
def initialize(parent=nil,keys=nil)
super(parent,keys)
self["relief"] = "flat"
-
+
@i = []
@label = []
@entry = []
diff --git a/ext/tk/sample/demos-jp/rolodex-j b/ext/tk/sample/demos-jp/rolodex-j
index 6c3ea7a484..ee8dd110bc 100644
--- a/ext/tk/sample/demos-jp/rolodex-j
+++ b/ext/tk/sample/demos-jp/rolodex-j
@@ -3,7 +3,7 @@
#
# rolodex --
# ¤³¤Î¥¹¥¯¥ê¥×¥È¤Ï Tom LaStrange ¤Î rolodex ¤Î°ìÉô¤Ç¤¹¡£
-#
+#
# Copyright (C) 1998 by Takaaki Tateishi <ttate@jaist.ac.jp>
# Time-stamp: "04/04/09 00:32:12 nagai"
#
@@ -20,7 +20,7 @@ def show_help(topic,x=0,y=0)
end
end
end
-
+
if( $helpTopics.include?(topic) )
msg = $helpTopics[topic]
else
diff --git a/ext/tk/sample/demos-jp/square b/ext/tk/sample/demos-jp/square
index 00bfde59ff..bb66282154 100644
--- a/ext/tk/sample/demos-jp/square
+++ b/ext/tk/sample/demos-jp/square
@@ -1,10 +1,10 @@
#!/usr/bin/env ruby
# square --
-# This script generates a demo application containing only
-# a "square" widget. It's only usable if Tk has been compiled
-# with tkSquare.c and with the -DSQUARE_DEMO compiler switch.
-# This demo arranges the following bindings for the widget:
+# This script generates a demo application containing only
+# a "square" widget. It's only usable if Tk has been compiled
+# with tkSquare.c and with the -DSQUARE_DEMO compiler switch.
+# This demo arranges the following bindings for the widget:
#
# Button-1 press/drag: moves square to mouse
# "a": toggle size animation on/off
@@ -19,7 +19,7 @@ class TkSquare<TkWindow
tk_call 'square', path
rescue
STDERR.print "\nSorry. Your Tk interpreter does not contain " +
- 'a "square" demonstration widget.' +
+ 'a "square" demonstration widget.' +
"\n ( See documents included the Tcl/Tk source archive. )\n\n"
exit
end
@@ -53,7 +53,7 @@ def center(x,y)
end
# The procedures below provide a simple form of animation where
-# the box changes size in a pulsing pattern: larger, smaller, larger,
+# the box changes size in a pulsing pattern: larger, smaller, larger,
# and so on.
$inc = 0
diff --git a/ext/tk/sample/demos-jp/tcolor b/ext/tk/sample/demos-jp/tcolor
index 17f7e1347e..1c83a4b10b 100644
--- a/ext/tk/sample/demos-jp/tcolor
+++ b/ext/tk/sample/demos-jp/tcolor
@@ -130,7 +130,7 @@ def _null_binding
end
private :_null_binding
-def doUpdate
+def doUpdate
newCmd = $command.to_s.gsub("%%","\"#{$color}\"")
eval(newCmd, _null_binding)
end
@@ -138,7 +138,7 @@ end
def tc_scaleChanged
if( $updating.to_i == 1 )
- return
+ return
end
$master = :scale if $master == nil
@@ -155,7 +155,7 @@ def tc_scaleChanged
when :cmy
$red = (65535 - scale1.get * 65.535).to_i
$green = (65535 - scale2.get * 65.535).to_i
- $blue = (65535 - scale3.get * 65.535).to_i
+ $blue = (65535 - scale3.get * 65.535).to_i
when :hsb
list = hsbToRgb(scale1.get / 1000.0,
scale2.get / 1000.0,
@@ -183,7 +183,7 @@ def tc_setScales
scale1 = $root.middle.middle.scale1
scale2 = $root.middle.middle.scale2
scale3 = $root.middle.middle.scale3
-
+
case $colorSpace.value.intern
when :rgb
scale1.set($red / 65.535)
@@ -209,7 +209,7 @@ end
def tc_loadNamedColor(name)
$name.value = name
$master = :name if $master == nil
- if name[0,1] != "#"
+ if name[0,1] != "#"
list = TkWinfo.rgb($root.middle.right.swatch,name)
$red = list[0]
$green = list[1]
@@ -243,7 +243,7 @@ def tc_loadNamedColor(name)
$green = $green << shift
$blue = $blue << shift
end
-
+
tc_setScales
$color = format("#%04x%04x%04x",$red,$green,$blue)
$root.middle.right.set_color($color)
@@ -325,7 +325,7 @@ class TkColorMenuFrame<TkFrame
"underline" => "0",
"command" => proc{exit}
}
-
+
# File¥á¥Ë¥å¡¼¤ÈFile¥Ü¥¿¥ó¤ò´ØÏ¢ÉÕ¤±¤ë
menu @file_menu
@@ -361,7 +361,7 @@ class TkColorBotFrame<TkFrame
self
end
-end
+end
# ÃæÃʺ¸¤Î¥Õ¥ì¡¼¥à
@@ -467,7 +467,7 @@ class TkColorMiddleRightFrame<TkFrame
super(parent)
@swatch = TkFrame.new(self, "width"=>"2c", "height"=>"5c",
"background"=>$color)
- @value = TkLabel.new(self,
+ @value = TkLabel.new(self,
"text"=>$color,
"width"=>"13",
"font"=>"-Adobe-Courier-Medium-R-Normal--*-120-*-*-*-*-*-*")
diff --git a/ext/tk/sample/demos-jp/timer b/ext/tk/sample/demos-jp/timer
index 58a41d00c0..6cb7c87e09 100644
--- a/ext/tk/sample/demos-jp/timer
+++ b/ext/tk/sample/demos-jp/timer
@@ -69,7 +69,7 @@ class CountFrame < TkFrame
def initialize(parent=nil,keys=nil)
super(parent,keys)
@counter = TkLabel.new(self,
- 'text'=>$time,
+ 'text'=>$time,
'relief'=>'raised')
@counter.pack('fill'=>'both')
self
diff --git a/ext/tk/sample/demos-jp/widget b/ext/tk/sample/demos-jp/widget
index 132953f32d..fc3c084e9a 100644
--- a/ext/tk/sample/demos-jp/widget
+++ b/ext/tk/sample/demos-jp/widget
@@ -125,16 +125,16 @@ end
# ¥á¥Ë¥å¡¼ÀßÄê
if $tk_major_ver >= 8
- $root.add_menubar([[['File', 0],
+ $root.add_menubar([[['File', 0],
['About ... ', proc{aboutBox}, 0, '<F1>'],
- '---',
+ '---',
['Quit', proc{exit}, 0, 'Ctrl-Q']
]])
else
- TkMenubar.new($root,
- [[['File', 0],
+ TkMenubar.new($root,
+ [[['File', 0],
['About ... ', proc{aboutBox}, 0, '<F1>'],
- '---',
+ '---',
['Quit', proc{exit}, 0, 'Ctrl-Q']
]]).pack('side'=>'top', 'fill'=>'x')
end
@@ -171,7 +171,7 @@ if $tk_version =~ /^4\.[01]/
txt.pack('expand'=>'yes', 'fill'=>'both')
else
textFrame = TkFrame.new($root)
- scr = TkScrollbar.new($root, 'orient'=>'vertical',
+ scr = TkScrollbar.new($root, 'orient'=>'vertical',
'highlightthickness'=>0, 'takefocus'=>1) {
pack('in'=>textFrame, 'side'=>'right', 'fill'=>'y', 'padx'=>1)
}
@@ -190,10 +190,14 @@ else
yscrollcommand proc{|first,last| scr.set first,last}
}
scr.command(proc{|*args| txt.yview(*args)})
+
# txt.pack('in'=>textFrame, 'expand'=>'yes', 'fill'=>'both', 'padx'=>1)
- txt.pack('in'=>textFrame, 'expand'=>'yes', 'fill'=>'both')
+# txt.pack('in'=>textFrame, 'expand'=>'yes', 'fill'=>'both')
# textFrame.pack('expand'=>'yes', 'fill'=>'both', 'padx'=>1, 'pady'=>2)
textFrame.pack('expand'=>'yes', 'fill'=>'both')
+ # $root.withdraw.deiconify
+ Tk.update_idletasks
+ txt.pack('in'=>textFrame, 'expand'=>'yes', 'fill'=>'both')
statusBar = TkFrame.new($root) {|f|
if $tk_version =~ /^4.*/
@@ -202,10 +206,10 @@ else
statusfont = 'Helvetica 10'
end
$statusBarLabel = \
- TkLabel.new(f, 'text'=>" ", 'relief'=>'sunken', 'bd'=>1, 'anchor'=>'w',
+ TkLabel.new(f, 'text'=>" ", 'relief'=>'sunken', 'bd'=>1, 'anchor'=>'w',
'font'=>statusfont) \
.pack('side'=>'left', 'padx'=>2, 'expand'=>'yes', 'fill'=>'both')
- TkLabel.new(f, 'width'=>8, 'relief'=>'sunken', 'bd'=>1, 'anchor'=>'w',
+ TkLabel.new(f, 'width'=>8, 'relief'=>'sunken', 'bd'=>1, 'anchor'=>'w',
'font'=>statusfont) \
.pack('side'=>'left', 'padx'=>2)
}.pack('side'=>'bottom', 'fill'=>'x', 'pady'=>2)
@@ -224,23 +228,23 @@ tag_middle = TkTextTag.new(txt, 'font'=>$kanji_font)
tag_demospace = TkTextTag.new(txt, 'lmargin1'=>'1c', 'lmargin2'=>'1c')
if TkWinfo.depth($root) == 1
- tag_demo = TkTextTag.new(txt, 'lmargin1'=>'1c', 'lmargin2'=>'1c',
+ tag_demo = TkTextTag.new(txt, 'lmargin1'=>'1c', 'lmargin2'=>'1c',
'underline'=>1)
- $tag_visited = TkTextTag.new(txt, 'lmargin1'=>'1c', 'lmargin2'=>'1c',
+ $tag_visited = TkTextTag.new(txt, 'lmargin1'=>'1c', 'lmargin2'=>'1c',
'underline'=>1)
tag_hot = TkTextTag.new(txt, 'background'=>'black', 'foreground'=>'white')
else
- tag_demo = TkTextTag.new(txt, 'lmargin1'=>'1c', 'lmargin2'=>'1c',
+ tag_demo = TkTextTag.new(txt, 'lmargin1'=>'1c', 'lmargin2'=>'1c',
'foreground'=>'blue', 'underline'=>1)
- $tag_visited = TkTextTag.new(txt, 'lmargin1'=>'1c', 'lmargin2'=>'1c',
+ $tag_visited = TkTextTag.new(txt, 'lmargin1'=>'1c', 'lmargin2'=>'1c',
'foreground'=>'#303080', 'underline'=>1)
-# tag_hot = TkTextTag.new(txt, 'relief'=>'raised', 'borderwidth'=>1,
+# tag_hot = TkTextTag.new(txt, 'relief'=>'raised', 'borderwidth'=>1,
# 'background'=>'SeaGreen3')
tag_hot = TkTextTag.new(txt, 'borderwidth'=>1, 'foreground'=>'red')
end
#tag_demo.bind('Button-1', proc{invoke txt, txt.index('current')})
-tag_demo.bind('ButtonRelease-1',
+tag_demo.bind('ButtonRelease-1',
proc{|x,y|invoke txt, txt.index("@#{x},#{y}")}, '%x %y')
lastLine = TkVariable.new("")
@@ -251,7 +255,7 @@ tag_demo.bind('Enter', proc{|x,y|
showStatus txt, txt.index("@#{x},#{y}")
},
'%x %y')
-tag_demo.bind('Leave',
+tag_demo.bind('Leave',
proc{
tag_hot.remove('1.0','end')
txt.configure('cursor','xterm')
@@ -262,10 +266,10 @@ tag_demo.bind('Motion', proc{|x, y|
if newLine.value != lastLine.value
tag_hot.remove('1.0','end')
lastLine.value = newLine.value
- if ( txt.tag_names("@#{x},#{y}").find{|t|
+ if ( txt.tag_names("@#{x},#{y}").find{|t|
t.kind_of?(String) && t =~ /^demo-/
} )
- tag_hot.add(lastLine.value,
+ tag_hot.add(lastLine.value,
"#{lastLine.value} lineend -1 chars")
end
end
@@ -317,50 +321,50 @@ Ttk ³ÈÄ¥¤Ï¡¢Tk8.5 °Ê¾å¤Ç¤Ïɸ½à¤Îµ¡Ç½¤È¤·¤ÆÁȤ߹þ¤Þ¤ì¤Æ¤¤¤Þ¤¹¡£
EOT
#txt.insert('end',"¥é¥Ù¥ë, ¥Ü¥¿¥ó, ¥Á¥§¥Ã¥¯¥Ü¥¿¥ó, ¥é¥¸¥ª¥Ü¥¿¥ó\n",tag_middle)
-txt.insert('end', "¥é¥Ù¥ë, ¥Ü¥¿¥ó, ¥Á¥§¥Ã¥¯¥Ü¥¿¥ó, ¥é¥¸¥ª¥Ü¥¿¥ó\n",
+txt.insert('end', "¥é¥Ù¥ë, ¥Ü¥¿¥ó, ¥Á¥§¥Ã¥¯¥Ü¥¿¥ó, ¥é¥¸¥ª¥Ü¥¿¥ó\n",
tag_kanji_title)
txt.insert('end', " \n ", tag_demospace)
-txt.insert('end', "1. ¥é¥Ù¥ë (¥Æ¥­¥¹¥È, ¥Ó¥Ã¥È¥Þ¥Ã¥×)\n",
+txt.insert('end', "1. ¥é¥Ù¥ë (¥Æ¥­¥¹¥È, ¥Ó¥Ã¥È¥Þ¥Ã¥×)\n",
tag_demo, "demo-label")
txt.insert('end', " \n ", tag_demospace)
txt.insert('end', "2. ¥é¥Ù¥ë¤ÈUNICODE¥Æ¥­¥¹¥È (µ¡Ç½¤ËÂбþ¤·¤¿¥Ð¡¼¥¸¥ç¥ó¤ÎTk¤¬É¬Í×)\n", tag_demo, "demo-unicodeout")
txt.insert('end', " \n ", tag_demospace)
txt.insert('end', "3. ¥Ü¥¿¥ó \n", tag_demo, "demo-button")
txt.insert('end', " \n ", tag_demospace)
-txt.insert('end', "4. ¥Á¥§¥Ã¥¯¥Ü¥¿¥ó (Ê£¿ô¤òÁªÂò²Äǽ)\n",
+txt.insert('end', "4. ¥Á¥§¥Ã¥¯¥Ü¥¿¥ó (Ê£¿ô¤òÁªÂò²Äǽ)\n",
tag_demo, "demo-check")
txt.insert('end', " \n ", tag_demospace)
-txt.insert('end', "5. £³¾õÂÖ¥Á¥§¥Ã¥¯¥Ü¥¿¥ó (µ¡Ç½¤ËÂбþ¤·¤¿¥Ð¡¼¥¸¥ç¥ó¤ÎTk¤¬É¬Í×)\n",
+txt.insert('end', "5. £³¾õÂÖ¥Á¥§¥Ã¥¯¥Ü¥¿¥ó (µ¡Ç½¤ËÂбþ¤·¤¿¥Ð¡¼¥¸¥ç¥ó¤ÎTk¤¬É¬Í×)\n",
tag_demo, "demo-check2")
txt.insert('end', " \n ", tag_demospace)
-txt.insert('end', "6. ¥é¥¸¥ª¥Ü¥¿¥ó (Ǥ°Õ¤Î°ì¤Ä¤òÁªÂò²Äǽ)\n",
+txt.insert('end', "6. ¥é¥¸¥ª¥Ü¥¿¥ó (Ǥ°Õ¤Î°ì¤Ä¤òÁªÂò²Äǽ)\n",
tag_demo, "demo-radio")
txt.insert('end', " \n ", tag_demospace)
-txt.insert('end', "7. ¥é¥¸¥ª¥Ü¥¿¥ó (µ¡Ç½¤ËÂбþ¤·¤¿¥Ð¡¼¥¸¥ç¥ó¤ÎTk¤¬É¬Í×)\n",
+txt.insert('end', "7. ¥é¥¸¥ª¥Ü¥¿¥ó (µ¡Ç½¤ËÂбþ¤·¤¿¥Ð¡¼¥¸¥ç¥ó¤ÎTk¤¬É¬Í×)\n",
tag_demo, "demo-radio2")
txt.insert('end', " \n ", tag_demospace)
-txt.insert('end', "8. £³¾õÂ֥饸¥ª¥Ü¥¿¥ó (µ¡Ç½¤ËÂбþ¤·¤¿¥Ð¡¼¥¸¥ç¥ó¤ÎTk¤¬É¬Í×)\n",
+txt.insert('end', "8. £³¾õÂ֥饸¥ª¥Ü¥¿¥ó (µ¡Ç½¤ËÂбþ¤·¤¿¥Ð¡¼¥¸¥ç¥ó¤ÎTk¤¬É¬Í×)\n",
tag_demo, "demo-radio3")
txt.insert('end', " \n ", tag_demospace)
-txt.insert('end', "9. ¥Ü¥¿¥ó¤Çºî¤é¤ì¤¿15-¥Ñ¥º¥ë¥²¡¼¥à\n",
+txt.insert('end', "9. ¥Ü¥¿¥ó¤Çºî¤é¤ì¤¿15-¥Ñ¥º¥ë¥²¡¼¥à\n",
tag_demo, "demo-puzzle")
txt.insert('end', " \n ", tag_demospace)
-txt.insert('end', "10. ¥Ó¥Ã¥È¥Þ¥Ã¥×¤ò»ÈÍѤ·¤¿¥¢¥¤¥³¥ó¥Ü¥¿¥ó\n",
+txt.insert('end', "10. ¥Ó¥Ã¥È¥Þ¥Ã¥×¤ò»ÈÍѤ·¤¿¥¢¥¤¥³¥ó¥Ü¥¿¥ó\n",
tag_demo, "demo-icon")
txt.insert('end', " \n ", tag_demospace)
-txt.insert('end', "11. ²èÁü¤òɽ¼¨¤¹¤ëÆó¤Ä¤Î¥é¥Ù¥ë\n",
+txt.insert('end', "11. ²èÁü¤òɽ¼¨¤¹¤ëÆó¤Ä¤Î¥é¥Ù¥ë\n",
tag_demo, "demo-image1")
txt.insert('end', " \n ", tag_demospace)
-txt.insert('end', "12. ²èÁü¤ò¸«¤ë¤¿¤á¤Î´Êñ¤Ê¥æ¡¼¥¶¥¤¥ó¥¿¡¼¥Õ¥§¡¼¥¹\n",
+txt.insert('end', "12. ²èÁü¤ò¸«¤ë¤¿¤á¤Î´Êñ¤Ê¥æ¡¼¥¶¥¤¥ó¥¿¡¼¥Õ¥§¡¼¥¹\n",
tag_demo, "demo-image2")
txt.insert('end', " \n ", tag_demospace)
-txt.insert('end', "13. ²èÁü¤ò¸«¤ë¤¿¤á¤Î´Êñ¤Ê¥æ¡¼¥¶¥¤¥ó¥¿¡¼¥Õ¥§¡¼¥¹ (µ¡Ç½¤ËÂбþ¤·¤¿¥Ð¡¼¥¸¥ç¥ó¤ÎTk¤¬É¬Í×)\n",
+txt.insert('end', "13. ²èÁü¤ò¸«¤ë¤¿¤á¤Î´Êñ¤Ê¥æ¡¼¥¶¥¤¥ó¥¿¡¼¥Õ¥§¡¼¥¹ (µ¡Ç½¤ËÂбþ¤·¤¿¥Ð¡¼¥¸¥ç¥ó¤ÎTk¤¬É¬Í×)\n",
tag_demo, "demo-image3")
txt.insert('end', " \n ", tag_demospace)
-txt.insert('end', "14. ¥é¥Ù¥ëÉÕ¤­¥Õ¥ì¡¼¥à (µ¡Ç½¤ËÂбþ¤·¤¿¥Ð¡¼¥¸¥ç¥ó¤ÎTk¤¬É¬Í×)\n",
+txt.insert('end', "14. ¥é¥Ù¥ëÉÕ¤­¥Õ¥ì¡¼¥à (µ¡Ç½¤ËÂбþ¤·¤¿¥Ð¡¼¥¸¥ç¥ó¤ÎTk¤¬É¬Í×)\n",
tag_demo, "demo-labelframe")
txt.insert('end', " \n ", tag_demospace)
-txt.insert('end', "15. ¥Æ¡¼¥Þ¤ËÂбþ¤·¤¿¥¦¥£¥¸¥§¥Ã¥È¤Î´Êñ¤ÊÎã (Tile/Ttk³ÈÄ¥¤Ø¤ÎÂбþ¤¬É¬Í×)\n",
+txt.insert('end', "15. ¥Æ¡¼¥Þ¤ËÂбþ¤·¤¿¥¦¥£¥¸¥§¥Ã¥È¤Î´Êñ¤ÊÎã (Tile/Ttk³ÈÄ¥¤Ø¤ÎÂбþ¤¬É¬Í×)\n",
tag_demo, "demo-ttkbut")
txt.insert('end', " \n ", tag_demospace)
@@ -370,15 +374,15 @@ txt.insert('end', "¥ê¥¹¥È¥Ü¥Ã¥¯¥¹\n", tag_kanji_title)
txt.insert('end', " \n ", tag_demospace)
txt.insert('end', "1. ÅÔÆ»Éܸ©.\n", tag_demo, "demo-states")
txt.insert('end', " \n ", tag_demospace)
-txt.insert('end', "2. ¿§: ¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤Î¤¿¤á¤ÎÇÛ¿§¤òÊѤ¨¤ë\n",
+txt.insert('end', "2. ¿§: ¥¢¥×¥ê¥±¡¼¥·¥ç¥ó¤Î¤¿¤á¤ÎÇÛ¿§¤òÊѤ¨¤ë\n",
"#{tag_demo.id} demo-colors")
txt.insert('end', " \n ", tag_demospace)
txt.insert('end', "3. ³Ê¸À½¸\n", tag_demo, "demo-sayings")
txt.insert('end', " \n ", tag_demospace)
-txt.insert('end', "4. ¹ñ¤Ë¤Ä¤¤¤Æ¤Î¥Þ¥ë¥Á¥«¥é¥à¥ê¥¹¥È (Tile/Ttk³ÈÄ¥¤Ø¤ÎÂбþ¤¬É¬Í×)\n",
+txt.insert('end', "4. ¹ñ¤Ë¤Ä¤¤¤Æ¤Î¥Þ¥ë¥Á¥«¥é¥à¥ê¥¹¥È (Tile/Ttk³ÈÄ¥¤Ø¤ÎÂбþ¤¬É¬Í×)\n",
tag_demo, "demo-mclist")
txt.insert('end', " \n ", tag_demospace)
-txt.insert('end', "5. ¥Ç¥£¥ì¥¯¥È¥ê¥Ö¥é¥¦¥¶ (Tile/Ttk³ÈÄ¥¤Ø¤ÎÂбþ¤¬É¬Í×)\n",
+txt.insert('end', "5. ¥Ç¥£¥ì¥¯¥È¥ê¥Ö¥é¥¦¥¶ (Tile/Ttk³ÈÄ¥¤Ø¤ÎÂбþ¤¬É¬Í×)\n",
tag_demo, "demo-tree")
txt.insert('end', " \n ", tag_demospace)
@@ -390,13 +394,13 @@ txt.insert('end', "1. ¥¹¥¯¥í¡¼¥ë¥Ð¡¼¤Ê¤·\n", tag_demo, "demo-entry1")
txt.insert('end', " \n ", tag_demospace)
txt.insert('end', "2. ¥¹¥¯¥í¡¼¥ë¥Ð¡¼¤¢¤ê\n", tag_demo, "demo-entry2")
txt.insert('end', " \n ", tag_demospace)
-txt.insert('end', "3. ǧ¾Ú½èÍýÉÕ¤­¤Î¥¨¥ó¥È¥ê¥Ü¥Ã¥¯¥¹¤È¥Ñ¥¹¥ï¡¼¥É¥Õ¥£¡¼¥ë¥É (µ¡Ç½¤ËÂбþ¤·¤¿¥Ð¡¼¥¸¥ç¥ó¤ÎTk¤¬É¬Í×)\n",
+txt.insert('end', "3. ǧ¾Ú½èÍýÉÕ¤­¤Î¥¨¥ó¥È¥ê¥Ü¥Ã¥¯¥¹¤È¥Ñ¥¹¥ï¡¼¥É¥Õ¥£¡¼¥ë¥É (µ¡Ç½¤ËÂбþ¤·¤¿¥Ð¡¼¥¸¥ç¥ó¤ÎTk¤¬É¬Í×)\n",
tag_demo, "demo-entry3")
txt.insert('end', " \n ", tag_demospace)
-txt.insert('end', "4. ¥¹¥Ô¥ó¥Ü¥Ã¥¯¥¹ (µ¡Ç½¤ËÂбþ¤·¤¿¥Ð¡¼¥¸¥ç¥ó¤ÎTk¤¬É¬Í×)\n",
+txt.insert('end', "4. ¥¹¥Ô¥ó¥Ü¥Ã¥¯¥¹ (µ¡Ç½¤ËÂбþ¤·¤¿¥Ð¡¼¥¸¥ç¥ó¤ÎTk¤¬É¬Í×)\n",
tag_demo, "demo-spin")
txt.insert('end', " \n ", tag_demospace)
-txt.insert('end', "5. ¥³¥ó¥Ü¥Ü¥Ã¥¯¥¹ (Tile/Ttk³ÈÄ¥¤Ø¤ÎÂбþ¤¬É¬Í×)\n",
+txt.insert('end', "5. ¥³¥ó¥Ü¥Ü¥Ã¥¯¥¹ (Tile/Ttk³ÈÄ¥¤Ø¤ÎÂбþ¤¬É¬Í×)\n",
tag_demo, "demo-combo")
txt.insert('end', " \n ", tag_demospace)
txt.insert('end', "6. ´Êñ¤Ê¥Õ¥©¡¼¥à\n", tag_demo, "demo-form")
@@ -410,13 +414,13 @@ txt.insert('end', "1. ´ðËÜŪ¤Ê¥Æ¥­¥¹¥È\n", tag_demo, "demo-text")
txt.insert('end', " \n ", tag_demospace)
txt.insert('end', "2. ɽ¼¨¥¹¥¿¥¤¥ë.\n", tag_demo, "demo-style")
txt.insert('end', " \n ", tag_demospace)
-txt.insert('end', "3. ¥Ï¥¤¥Ñ¡¼¥Æ¥­¥¹¥È(¥¿¥°¥Ð¥¤¥ó¥É).\n",
+txt.insert('end', "3. ¥Ï¥¤¥Ñ¡¼¥Æ¥­¥¹¥È(¥¿¥°¥Ð¥¤¥ó¥É).\n",
tag_demo, "demo-bind")
txt.insert('end', " \n ", tag_demospace)
-txt.insert('end', "4. ¥¦¥£¥ó¥É¥¦¤òËä¤á¹þ¤ó¤À¥Æ¥­¥¹¥È\n",
+txt.insert('end', "4. ¥¦¥£¥ó¥É¥¦¤òËä¤á¹þ¤ó¤À¥Æ¥­¥¹¥È\n",
tag_demo, "demo-twind")
txt.insert('end', " \n ", tag_demospace)
-txt.insert('end', "5. ¥¦¥£¥ó¥É¥¦¤òËä¤á¹þ¤ó¤À¥Æ¥­¥¹¥È (µ¡Ç½¤ËÂбþ¤·¤¿¥Ð¡¼¥¸¥ç¥ó¤ÎTk¤¬É¬Í×)\n",
+txt.insert('end', "5. ¥¦¥£¥ó¥É¥¦¤òËä¤á¹þ¤ó¤À¥Æ¥­¥¹¥È (µ¡Ç½¤ËÂбþ¤·¤¿¥Ð¡¼¥¸¥ç¥ó¤ÎTk¤¬É¬Í×)\n",
tag_demo, "demo-twind2")
txt.insert('end', " \n ", tag_demospace)
txt.insert('end', "6. ¸¡º÷\n", tag_demo, "demo-search")
@@ -442,10 +446,10 @@ txt.insert('end', "6. ¥Õ¥í¥¢¥×¥é¥ó\n", tag_demo, "demo-floor")
txt.insert('end', " \n ", tag_demospace)
txt.insert('end', "7. ¥Õ¥í¥¢¥×¥é¥ó (°Û¤Ê¤ë¥­¥ã¥ó¥Ð¥¹¥¢¥¤¥Æ¥àºîÀ®ÊýË¡¤ò»ÈÍÑ)\n", tag_demo, "demo-floor2")
txt.insert('end', " \n ", tag_demospace)
-txt.insert('end', "8. ¥¹¥¯¥í¡¼¥ë²Äǽ¤Ê¥­¥ã¥ó¥Ð¥¹\n",
+txt.insert('end', "8. ¥¹¥¯¥í¡¼¥ë²Äǽ¤Ê¥­¥ã¥ó¥Ð¥¹\n",
tag_demo, "demo-cscroll")
txt.insert('end', " \n ", tag_demospace)
-txt.insert('end', "9. ¥Á¥§¥¹¥Ü¡¼¥É¾å¤Îµ³»Î¤Î½ä²ó (Tile/Ttk³ÈÄ¥¤Ø¤ÎÂбþ¤¬É¬Í×)\n",
+txt.insert('end', "9. ¥Á¥§¥¹¥Ü¡¼¥É¾å¤Îµ³»Î¤Î½ä²ó (Tile/Ttk³ÈÄ¥¤Ø¤ÎÂбþ¤¬É¬Í×)\n",
tag_demo, "demo-knightstour")
txt.insert('end', " \n ", tag_demospace)
@@ -463,16 +467,16 @@ txt.insert('end', " \n ", tag_demospace)
txt.insert('end', "\n")
txt.insert('end', "¥Ú¥¤¥ó¥É¥¦¥£¥ó¥É¥¦¤È¥Î¡¼¥È¥Ö¥Ã¥¯\n", tag_kanji_title)
txt.insert('end', " \n ", tag_demospace)
-txt.insert('end', "1. ¿åÊ¿Êý¸þ (µ¡Ç½¤ËÂбþ¤·¤¿¥Ð¡¼¥¸¥ç¥ó¤ÎTk¤¬É¬Í×)\n",
+txt.insert('end', "1. ¿åÊ¿Êý¸þ (µ¡Ç½¤ËÂбþ¤·¤¿¥Ð¡¼¥¸¥ç¥ó¤ÎTk¤¬É¬Í×)\n",
tag_demo.id, "demo-paned1")
txt.insert('end', " \n ", tag_demospace)
-txt.insert('end', "2. ¿âľÊý¸þ (µ¡Ç½¤ËÂбþ¤·¤¿¥Ð¡¼¥¸¥ç¥ó¤ÎTk¤¬É¬Í×)\n",
+txt.insert('end', "2. ¿âľÊý¸þ (µ¡Ç½¤ËÂбþ¤·¤¿¥Ð¡¼¥¸¥ç¥ó¤ÎTk¤¬É¬Í×)\n",
tag_demo.id, "demo-paned2")
txt.insert('end', " \n ", tag_demospace)
-txt.insert('end', "3. ¥Æ¡¼¥Þ¤ËÂбþ¤·¤¿Ëä¤á¹þ¤ß¥Ú¥¤¥ó (Tile/Ttk³ÈÄ¥¤Ø¤ÎÂбþ¤¬É¬Í×)\n",
+txt.insert('end', "3. ¥Æ¡¼¥Þ¤ËÂбþ¤·¤¿Ëä¤á¹þ¤ß¥Ú¥¤¥ó (Tile/Ttk³ÈÄ¥¤Ø¤ÎÂбþ¤¬É¬Í×)\n",
tag_demo.id, "demo-ttkpane")
txt.insert('end', " \n ", tag_demospace)
-txt.insert('end', "4. ¥Î¡¼¥È¥Ö¥Ã¥¯¥¦¥£¥¸¥§¥Ã¥È (Tile/Ttk³ÈÄ¥¤Ø¤ÎÂбþ¤¬É¬Í×)\n",
+txt.insert('end', "4. ¥Î¡¼¥È¥Ö¥Ã¥¯¥¦¥£¥¸¥§¥Ã¥È (Tile/Ttk³ÈÄ¥¤Ø¤ÎÂбþ¤¬É¬Í×)\n",
tag_demo.id, "demo-ttknote")
txt.insert('end', " \n ", tag_demospace)
@@ -480,22 +484,22 @@ txt.insert('end', "\n")
#txt.insert('end', "¥á¥Ë¥å¡¼¤È¥Ä¡¼¥ë¥Ð¡¼\n", tag_middle)
txt.insert('end', "¥á¥Ë¥å¡¼¤È¥Ä¡¼¥ë¥Ð¡¼\n", tag_kanji_title)
txt.insert('end', " \n ", tag_demospace)
-txt.insert('end', "1. ¥á¥Ë¥å¡¼¤È¥«¥¹¥±¡¼¥É¤ò´Þ¤ó¤À¥¦¥£¥ó¥É¥¦\n",
+txt.insert('end', "1. ¥á¥Ë¥å¡¼¤È¥«¥¹¥±¡¼¥É¤ò´Þ¤ó¤À¥¦¥£¥ó¥É¥¦\n",
tag_demo, "demo-menu")
txt.insert('end', " \n ", tag_demospace)
-txt.insert('end', "2. ¥á¥Ë¥å¡¼¤È¥«¥¹¥±¡¼¥É¤ò´Þ¤ó¤À¥¦¥£¥ó¥É¥¦ (Tk8.x ÀìÍÑ)\n",
+txt.insert('end', "2. ¥á¥Ë¥å¡¼¤È¥«¥¹¥±¡¼¥É¤ò´Þ¤ó¤À¥¦¥£¥ó¥É¥¦ (Tk8.x ÀìÍÑ)\n",
tag_demo, "demo-menu8x")
txt.insert('end', " \n ", tag_demospace)
-txt.insert('end', "3. ¡· (µ¡Ç½¤ËÂбþ¤·¤¿¥Ð¡¼¥¸¥ç¥ó¤ÎTk¤¬É¬Í×)\n",
+txt.insert('end', "3. ¡· (µ¡Ç½¤ËÂбþ¤·¤¿¥Ð¡¼¥¸¥ç¥ó¤ÎTk¤¬É¬Í×)\n",
tag_demo, "demo-menu84")
txt.insert('end', " \n ", tag_demospace)
-txt.insert('end', "4. ¥á¥Ë¥å¡¼¥Ü¥¿¥ó (Tk8.x ÀìÍÑ)\n",
+txt.insert('end', "4. ¥á¥Ë¥å¡¼¥Ü¥¿¥ó (Tk8.x ÀìÍÑ)\n",
tag_demo, "demo-menubu")
txt.insert('end', " \n ", tag_demospace)
-txt.insert('end', "5. ¥Æ¡¼¥Þ¤ËÂбþ¤·¤¿¥á¥Ë¥å¡¼¥Ü¥¿¥ó (Tile/Ttk³ÈÄ¥¤Ø¤ÎÂбþ¤¬É¬Í×)\n",
+txt.insert('end', "5. ¥Æ¡¼¥Þ¤ËÂбþ¤·¤¿¥á¥Ë¥å¡¼¥Ü¥¿¥ó (Tile/Ttk³ÈÄ¥¤Ø¤ÎÂбþ¤¬É¬Í×)\n",
tag_demo.id, "demo-ttkmenu")
txt.insert('end', " \n ", tag_demospace)
-txt.insert('end', "6. ¥Æ¡¼¥Þ¤ËÂбþ¤·¤¿¥Ä¡¼¥ë¥Ð¡¼ (Tile/Ttk³ÈÄ¥¤Ø¤ÎÂбþ¤¬É¬Í×)\n",
+txt.insert('end', "6. ¥Æ¡¼¥Þ¤ËÂбþ¤·¤¿¥Ä¡¼¥ë¥Ð¡¼ (Tile/Ttk³ÈÄ¥¤Ø¤ÎÂбþ¤¬É¬Í×)\n",
tag_demo.id, "demo-toolbar")
txt.insert('end', " \n ", tag_demospace)
@@ -530,10 +534,10 @@ txt.insert('end', "¤½¤Î¾\n", tag_kanji_title)
txt.insert('end', " \n ", tag_demospace)
txt.insert('end', "1. ÁȤ߹þ¤ß¤Î¥Ó¥Ã¥È¥Þ¥Ã¥×\n", tag_demo, "demo-bitmap")
txt.insert('end', " \n ", tag_demospace)
-txt.insert('end', "2. ¥â¡¼¥À¥ë¥À¥¤¥¢¥í¥°(¥í¡¼¥«¥ë¥°¥é¥Ö)\n",
+txt.insert('end', "2. ¥â¡¼¥À¥ë¥À¥¤¥¢¥í¥°(¥í¡¼¥«¥ë¥°¥é¥Ö)\n",
tag_demo, "demo-dialog1")
txt.insert('end', " \n ", tag_demospace)
-txt.insert('end', "3. ¥â¡¼¥À¥ë¥À¥¤¥¢¥í¥°(¥°¥í¡¼¥Ð¥ë¥°¥é¥Ö)\n",
+txt.insert('end', "3. ¥â¡¼¥À¥ë¥À¥¤¥¢¥í¥°(¥°¥í¡¼¥Ð¥ë¥°¥é¥Ö)\n",
tag_demo, "demo-dialog2")
txt.insert('end', " \n ", tag_demospace)
@@ -552,7 +556,7 @@ $showVarsWin = {}
def showVars1(parent, *args)
if $showVarsWin[parent.path]
begin
- $showVarsWin[parent.path].destroy
+ $showVarsWin[parent.path].destroy
rescue
end
end
@@ -592,7 +596,7 @@ end
def showVars2(parent, *args)
if $showVarsWin[parent.path]
begin
- $showVarsWin[parent.path].destroy
+ $showVarsWin[parent.path].destroy
rescue
end
end
@@ -601,11 +605,11 @@ def showVars2(parent, *args)
base = TkFrame.new(top).pack(:fill=>:both, :expand=>true)
- TkLabelFrame.new(base, :text=>"ÊÑ¿ôÃÍ:",
+ TkLabelFrame.new(base, :text=>"ÊÑ¿ôÃÍ:",
:font=>{:family=>'Helvetica', :size=>14}){|f|
args.each{|vnam,vbody|
- TkGrid(TkLabel.new(f, :text=>"#{vnam}: ", :anchor=>'w'),
- TkLabel.new(f, :textvariable=>vbody, :anchor=>'w'),
+ TkGrid(TkLabel.new(f, :text=>"#{vnam}: ", :anchor=>'w'),
+ TkLabel.new(f, :textvariable=>vbody, :anchor=>'w'),
:padx=>2, :pady=>2, :sticky=>'w')
}
@@ -613,7 +617,7 @@ def showVars2(parent, *args)
f.grid_columnconfig(1, :weight=>1)
f.grid_rowconfig(100, :weight=>1)
}
- TkButton.new(base, :text=>"λ²ò", :width=>8, :default=>:active,
+ TkButton.new(base, :text=>"λ²ò", :width=>8, :default=>:active,
:command=>proc{top.destroy}){|b|
top.bind('Return', proc{b.invoke})
top.bind('Escape', proc{b.invoke})
@@ -663,9 +667,9 @@ class Object
def method_missing(id, *args)
begin
- has_top = (top = Thread.current[:TOPLEVEL]) &&
- top.respond_to?(:pseudo_toplevel_evaluable?) &&
- top.pseudo_toplevel_evaluable? &&
+ has_top = (top = Thread.current[:TOPLEVEL]) &&
+ top.respond_to?(:pseudo_toplevel_evaluable?) &&
+ top.pseudo_toplevel_evaluable? &&
top.respond_to?(id)
rescue Exception => e
has_top = false
@@ -729,9 +733,9 @@ def eval_samplecode(code, file=nil)
end
rescue Exception=>e
#p e
- TkBgError.show(e.message + "\n" +
- "\n---< backtrace of Ruby side >-----\n" +
- e.backtrace.join("\n") +
+ TkBgError.show(e.message + "\n" +
+ "\n---< backtrace of Ruby side >-----\n" +
+ e.backtrace.join("\n") +
"\n---< backtrace of Tk side >-------")
end
}
@@ -781,7 +785,7 @@ def showStatus (txt, index)
newcursor = 'xterm'
else
demoname = tag[5..-1]
- $statusBarLabel.configure('text',
+ $statusBarLabel.configure('text',
"¥µ¥ó¥×¥ë¥×¥í¥°¥é¥à \"#{demoname}\" ¤Î¼Â¹Ô ")
newcursor = 'hand2'
end
@@ -837,9 +841,9 @@ def showCode1(demo)
TkFrame.new($code_window) {|f|
pack('expand'=>'yes', 'fill'=>'both', 'padx'=>1, 'pady'=>1)
- hs = TkScrollbar.new($code_window, 'highlightthickness'=>0,
+ hs = TkScrollbar.new($code_window, 'highlightthickness'=>0,
'orient'=>'horizontal')
- vs = TkScrollbar.new($code_window, 'highlightthickness'=>0,
+ vs = TkScrollbar.new($code_window, 'highlightthickness'=>0,
'orient'=>'vertical')
$code_text = TkText.new($code_window) {|t|
height 40
@@ -855,11 +859,11 @@ def showCode1(demo)
vs.command(proc{|*args| $code_text.yview(*args)})
}
- $code_text.grid('in'=>f, 'padx'=>1, 'pady'=>1, 'row'=>0, 'column'=>0,
+ $code_text.grid('in'=>f, 'padx'=>1, 'pady'=>1, 'row'=>0, 'column'=>0,
'rowspan'=>1, 'columnspan'=>1, 'sticky'=>'news')
- vs.grid('in'=>f, 'padx'=>1, 'pady'=>1, 'row'=>0, 'column'=>1,
+ vs.grid('in'=>f, 'padx'=>1, 'pady'=>1, 'row'=>0, 'column'=>1,
'rowspan'=>1, 'columnspan'=>1, 'sticky'=>'news')
-# xs.grid('in'=>f, 'padx'=>1, 'pady'=>1, 'row'=>1, 'column'=>0,
+# xs.grid('in'=>f, 'padx'=>1, 'pady'=>1, 'row'=>1, 'column'=>0,
# 'rowspan'=>1, 'columnspan'=>1, 'sticky'=>'news')
TkGrid.rowconfigure(f, 0, 'weight'=>1, 'minsize'=>0)
TkGrid.columnconfigure(f, 0, 'weight'=>1, 'minsize'=>0)
@@ -896,8 +900,8 @@ def showCode2(demo)
if $code_window == nil || TkWinfo.exist?($code_window) == false
$code_window = TkToplevel.new(nil)
tf = TkFrame.new($code_window)
- $code_text = TkText.new(tf, :font=>'Courier 10', :height=>30,
- :wrap=>'word', :bd=>1, :setgrid=>true,
+ $code_text = TkText.new(tf, :font=>'Courier 10', :height=>30,
+ :wrap=>'word', :bd=>1, :setgrid=>true,
:highlightthickness=>0, :pady=>2, :padx=>3)
xscr = TkScrollbar.new(tf, :bd=>1){assign($code_text)}
yscr = TkScrollbar.new(tf, :bd=>1){assign($code_text)}
@@ -920,21 +924,21 @@ def showCode2(demo)
posnum.text = pos
}
- #b_dis = TkButton.new(bf, :text=>'λ²ò', :default=>:active,
- b_dis = TkButton.new(bf, :text=>'ÊĤ¸¤ë', :default=>:active,
+ #b_dis = TkButton.new(bf, :text=>'λ²ò', :default=>:active,
+ b_dis = TkButton.new(bf, :text=>'ÊĤ¸¤ë', :default=>:active,
:command=>proc{
$code_window.destroy
$code_window = nil
- },
+ },
:image=>$image['delete'], :compound=>:left)
- b_prn = TkButton.new(bf, :text=>'°õºþ',
- :command=>proc{printCode($code_text, file)},
+ b_prn = TkButton.new(bf, :text=>'°õºþ',
+ :command=>proc{printCode($code_text, file)},
:image=>$image['print'], :compound=>:left)
- b_run = TkButton.new(bf, :text=>'ºÆ¼Â¹Ô',
+ b_run = TkButton.new(bf, :text=>'ºÆ¼Â¹Ô',
:command=>proc{
# eval($code_text.get('1.0','end'), _null_binding)
eval_samplecode($code_text.get('1.0','end'), '<viewer>')
- },
+ },
:image=>$image['refresh'], :compound=>:left)
TkGrid(lf, 'x', b_run, b_prn, b_dis, :padx=>4, :pady=>[6,4])
@@ -1007,27 +1011,27 @@ def printCode(txt, file)
when 'unix'
msg = `lp -c #{fname}`
unless $?.exitstatus == 0
- Tk.messageBox(:title=>'Print spooling failure',
- :message=>'¥¨¥é¡¼¤¬È¯À¸¤·¤Þ¤·¤¿¡¥' +
+ Tk.messageBox(:title=>'Print spooling failure',
+ :message=>'¥¨¥é¡¼¤¬È¯À¸¤·¤Þ¤·¤¿¡¥' +
'°õºþ¤Ë¼ºÇÔ¤·¤¿¤â¤Î¤È»×¤ï¤ì¤Þ¤¹ : ' + msg)
end
when 'windows'
begin
printTextWin32(fname)
rescue => e
- Tk.messageBox(:title=>'Print spooling failure',
- :message=>'¥¨¥é¡¼¤¬È¯À¸¤·¤Þ¤·¤¿¡¥' +
- '°õºþ¤Ë¼ºÇÔ¤·¤¿¤â¤Î¤È»×¤ï¤ì¤Þ¤¹ : ' +
+ Tk.messageBox(:title=>'Print spooling failure',
+ :message=>'¥¨¥é¡¼¤¬È¯À¸¤·¤Þ¤·¤¿¡¥' +
+ '°õºþ¤Ë¼ºÇÔ¤·¤¿¤â¤Î¤È»×¤ï¤ì¤Þ¤¹ : ' +
e.message)
- end
+ end
when 'macintosh'
- Tk.messageBox(:title=>'Operation not Implemented',
+ Tk.messageBox(:title=>'Operation not Implemented',
:message=>'°õºþµ¡Ç½¤Ï¤Þ¤À¼ÂÁõ¤µ¤ì¤Æ¤¤¤Þ¤»¤ó')
else
- Tk.messageBox(:title=>'Operation not Implemented',
- :message=>'¸¡½Ð¤µ¤ì¤¿´Ä¶­ ' +
- Tk::TCL_PLATFORM('platform') +
- ' ¤Ï̤ÃΤδĶ­¤Ç¤¢¤ë¤¿¤á¡¤' +
+ Tk.messageBox(:title=>'Operation not Implemented',
+ :message=>'¸¡½Ð¤µ¤ì¤¿´Ä¶­ ' +
+ Tk::TCL_PLATFORM('platform') +
+ ' ¤Ï̤ÃΤδĶ­¤Ç¤¢¤ë¤¿¤á¡¤' +
'°õºþµ¡Ç½¤Ï¼ÂÁõ¤µ¤ì¤Æ¤¤¤Þ¤»¤ó: ')
end
ensure
@@ -1057,7 +1061,7 @@ def printTextWin32(fname)
pcmd.gsub!('%1', fname)
puts pcmd
cmd = Tk.tk_call('auto_execok', 'start') + ' /min ' + pcmd
-
+
msg = `#{cmd}`
unless $?.exitstatus == 0
fail RuntimeError, msg
@@ -1069,16 +1073,16 @@ end
# Pops up a message box with an "about" message
#
def aboutBox
- Tk.messageBox('icon'=>'info', 'type'=>'ok', 'title'=>'About Widget Demo',
- 'message'=>"Ruby/Tk ¥¦¥£¥¸¥§¥Ã¥È¥Ç¥â Ver.1.7.0-jp\n\n" +
- "based on demos of Tk8.1 -- 8.5 " +
- "( Copyright of Tcl/Tk demos:: " +
- "(c) 1996-1997 Sun Microsystems, Inc. / " +
- "(c) 1997-2000 Ajuba Solutions, Inc. / " +
- "(c) 2001-2007 Donal K. Fellows / " +
+ Tk.messageBox('icon'=>'info', 'type'=>'ok', 'title'=>'About Widget Demo',
+ 'message'=>"Ruby/Tk ¥¦¥£¥¸¥§¥Ã¥È¥Ç¥â Ver.1.7.1-jp\n\n" +
+ "based on demos of Tk8.1 -- 8.5 " +
+ "( Copyright of Tcl/Tk demos:: " +
+ "(c) 1996-1997 Sun Microsystems, Inc. / " +
+ "(c) 1997-2000 Ajuba Solutions, Inc. / " +
+ "(c) 2001-2007 Donal K. Fellows / " +
"(c) 2002-2007 Daniel A. Steffen )\n\n" +
- "Your Ruby & Tk Version ::\n" +
- "Ruby#{RUBY_VERSION}(#{RUBY_RELEASE_DATE})[#{RUBY_PLATFORM}] / Tk#{$tk_patchlevel}#{(Tk::JAPANIZED_TK)? '-jp': ''}\n\n" +
+ "Your Ruby & Tk Version ::\n" +
+ "Ruby#{RUBY_VERSION}(#{RUBY_RELEASE_DATE})[#{RUBY_PLATFORM}] / Tk#{$tk_patchlevel}#{(Tk::JAPANIZED_TK)? '-jp': ''}\n\n" +
"Ruby/Tk release date :: tcltklib #{TclTkLib::RELEASE_DATE}; tk #{Tk::RELEASE_DATE}")
end
@@ -1092,11 +1096,11 @@ else
# show the root widget to make it lower then demo windows
Tk.update
end
-ARGV.each{|cmd|
+ARGV.each{|cmd|
if cmd =~ /(.*).rb/
cmd = $1
end
- #eval(IO.readlines("#{[$demo_dir, cmd].join(File::Separator)}.rb").join,
+ #eval(IO.readlines("#{[$demo_dir, cmd].join(File::Separator)}.rb").join,
# _null_binding)
eval_samplecode(IO.readlines("#{[$demo_dir, cmd].join(File::Separator)}.rb").join, cmd + '.rb')
}
diff --git a/ext/tk/sample/editable_listbox.rb b/ext/tk/sample/editable_listbox.rb
index 553d400e24..890aec032e 100644
--- a/ext/tk/sample/editable_listbox.rb
+++ b/ext/tk/sample/editable_listbox.rb
@@ -1,5 +1,5 @@
#
-# Editable_TkListbox class
+# Tk::RbWidget::Editable_Listbox class
#
# When "DoubleClick-1" on a listbox item, the entry box is opend on the
# item. And when hit "Return" key on the entry box after modifying the
@@ -10,19 +10,106 @@
#
require 'tk'
-class Editable_TkListbox < TkListbox
- def _ebox_placer(coord_y)
- idx = self.nearest(coord_y)
- x, y, w, h = self.bbox(idx)
+module Tk
+ module RbWidget
+ class Editable_Listbox < TkListbox
+ end
+ end
+end
+
+
+class Tk::RbWidget::Editable_Listbox < TkListbox
+ #------------------------------------
+ BindTag = TkBindTag.new_by_name(self.to_s.gsub(/::/, '#'))
+
+ BindTag.bind('FocusIn', :widget){|w|
+ w.instance_eval{
+ if idx = @ebox.pos
+ see(idx) if bbox(idx).empty?
+ @ebox.focus(true)
+ end
+ }
+ }
+
+ BindTag.bind('Double-1', :widget, :y){|w, y|
+ w.instance_eval{ _ebox_placer(nearest(y)) }
+ }
+
+ BindTag.bind('Return', :widget){|w|
+ w.instance_eval{
+ if idx = index(:active)
+ _ebox_placer(idx)
+ end
+ }
+ }
+ #------------------------------------
+
+ def configure(*args)
+ ret = super
+
+ case cget(:state)
+ when 'normal'
+ # do nothing
+ when 'disabled'
+ _ebox_erase
+ else # unknown
+ # do nothing
+
+ end
+
+ ret
+ end
+
+ def _ebox_move(idx)
+ return nil if cget(:state) == 'disabled'
+ x, y, w, h = bbox(idx)
+ return nil unless y && h
@ebox.place(:x => 0, :relwidth => 1.0,
- :y => y - self.selectborderwidth,
- :height => h + 2 * self.selectborderwidth)
+ :y => y - selectborderwidth,
+ :height => h + 2 * selectborderwidth)
@ebox.pos = idx
- @ebox.value = self.listvariable.list[idx]
@ebox.focus
end
- private :_ebox_placer
+ def _ebox_placer(idx)
+ return nil unless _ebox_move(idx)
+ @ebox.value = listvariable.list[idx]
+ @ebox.xview_moveto(self.xview[0])
+ end
+
+ def _ebox_erase
+ @ebox.place_forget
+ @ebox.pos = nil
+ end
+ private :_ebox_move, :_ebox_placer, :_ebox_erase
+
+ def _setup_ebox_bindings
+ # bindings for entry
+ @ebox.bind('Return'){
+ list = listvariable.list
+ list[@ebox.pos] = @ebox.value if @ebox.pos
+ listvariable.value = list
+ _ebox_erase
+ focus
+ }
+
+ @ebox.bind('Escape'){ _ebox_erase }
+ end
+ def _setup_listbox_bindings
+ # bindings for listbox
+ tags = bindtags
+ bindtags(tags.insert(tags.index(self) + 1, self.class::BindTag))
+ end
+ private :_setup_ebox_bindings, :_setup_listbox_bindings
+
+ def yview(*args)
+ if !@ebox.pos || bbox(@ebox.pos).empty?
+ @ebox.place_forget
+ else
+ _ebox_move(@ebox.pos)
+ end
+ super
+ end
def create_self(keys)
super(keys)
@@ -32,38 +119,30 @@ class Editable_TkListbox < TkListbox
end
@ebox = TkEntry.new(self){
- @pos = -1
+ @pos = nil
def self.pos; @pos; end
def self.pos=(idx); @pos = idx; end
}
- @ebox.bind('Return'){
- list = self.listvariable.list
- list[@ebox.pos] = @ebox.value
- self.listvariable.value = list
- @ebox.place_forget
- @ebox.pos = -1
- }
-
- @ebox.bind('Escape'){
- @ebox.place_forget
- @ebox.pos = -1
- }
-
- self.bind('Double-1', '%y'){|y| _ebox_placer(y) }
+ _setup_ebox_bindings
+ _setup_listbox_bindings
end
end
if $0 == __FILE__
+ #lbox0 = TkListbox.new.pack(:side=>:left)
+ #lbox0.insert(:end, 0,1,2,3,4,5,6,7,8,9,0,1,2,3)
+
scr = TkScrollbar.new.pack(:side=>:right, :fill=>:y)
- lbox1 = Editable_TkListbox.new.pack(:side=>:left)
- lbox2 = Editable_TkListbox.new.pack(:side=>:left)
+ lbox1 = Tk::RbWidget::Editable_Listbox.new.pack(:side=>:left)
+ lbox2 = Tk::RbWidget::Editable_Listbox.new.pack(:side=>:left)
scr.assign(lbox1, lbox2)
lbox1.insert(:end, *%w(a b c d e f g h i j k l m n))
lbox2.insert(:end, 0,1,2,3,4,5,6,7,8,9,0,1,2,3)
+
Tk.mainloop
end
diff --git a/ext/tk/sample/irbtkw.rbw b/ext/tk/sample/irbtkw.rbw
index 04de3a2022..b75ebca48d 100644
--- a/ext/tk/sample/irbtkw.rbw
+++ b/ext/tk/sample/irbtkw.rbw
@@ -41,12 +41,12 @@ else
fnt = ['courier', '-12']
end
-console = TkTextIO.new(top, :mode=>:console,
- :width=>80).pack(:side=>:left,
+console = TkTextIO.new(top, :mode=>:console,
+ :width=>80).pack(:side=>:left,
:expand=>true, :fill=>:both)
-console.yscrollbar(TkScrollbar.new(top, :width=>10).pack(:before=>console,
- :side=>:right,
- :expand=>false,
+console.yscrollbar(TkScrollbar.new(top, :width=>10).pack(:before=>console,
+ :side=>:right,
+ :expand=>false,
:fill=>:y))
# save original I/O
diff --git a/ext/tk/sample/menubar3.rb b/ext/tk/sample/menubar3.rb
new file mode 100644
index 0000000000..4f42f81c88
--- /dev/null
+++ b/ext/tk/sample/menubar3.rb
@@ -0,0 +1,72 @@
+#
+# menubar sample 3 : vertical layout menubar; use frame and menubuttons
+#
+
+require 'tk'
+
+radio_var = TkVariable.new('y')
+
+menu_spec = [
+ [['&File', true], # when underline option is ture, '&' index is the position
+ {:label=>'Open', :command=>proc{puts('Open clicked')}, :underline=>0},
+ '---',
+ ['Check_A', TkVariable.new(true), 6],
+ {:type=>'checkbutton', :label=>'Check_B',
+ :variable=>TkVariable.new, :underline=>6},
+ '---',
+ ['Radio_X', [radio_var, 'x'], /[XYZ]/, '', {:foreground=>'black'}],
+ ['Radio_Y', [radio_var, 'y'], /[XYZ]/],
+ ['Radio_Z', [radio_var, 'z'], /[XYZ]/], # use Regexp for underline position
+ '---',
+ ['cascade', [
+ ['sss', proc{p 'sss'}, 0],
+ ['ttt', proc{p 'ttt'}, 0],
+ ['uuu', proc{p 'uuu'}, 0],
+ ['vvv', proc{p 'vvv'}, 0],
+ ],
+ 0, '',
+ {:font=>'Courier 16 italic',
+ :menu_config=>{:font=>'Times -18 bold', :foreground=>'black'}}],
+ '---',
+ ['Quit', proc{exit}, 0]],
+
+ [['Edit', 0],
+ ['Cut', proc{puts('Cut clicked')}, 2],
+ ['Copy', proc{puts('Copy clicked')}, 0],
+ ['Paste', proc{puts('Paste clicked')}, 0]],
+
+ [['Help', 0, {:menu_name=>'help'}],
+ ['About This', proc{puts('Ruby/Tk menubar sample 3')}, "This"]]
+ # use string index for underline position
+]
+
+layout_proc = 'vertical'
+# The following procedure is same to 'layout_proc'=>'vertical'
+=begin
+layout_proc = proc{|parent, mbtn|
+ mbtn.direction :right
+ mbtn.pack(:side=>:top, :fill=>:x)
+
+ menu = mbtn.menu
+ cmd = proc{|m, dir|
+ Tk::Menu::TkInternalFunction.next_menu(m, dir) rescue nil
+ # ignore error when the internal function doesn't exist
+ }
+ menu.bind('Tab', cmd, :widget, 'forward')
+ menu.bind('Alt-Tab', cmd, :widget, 'backward')
+}
+=end
+
+menubar = TkMenubar.new(nil, menu_spec,
+ 'layout_proc'=>layout_proc,
+ 'tearoff'=>false,
+ 'foreground'=>'grey40',
+ 'activeforeground'=>'red',
+ 'font'=>'Helvetia 12 bold')
+menubar.pack('side'=>'left', 'fill'=>'y')
+
+TkText.new(:wrap=>'word').pack.insert('1.0', 'This sample script generates "Menu Sidebar".
+If "::tk::MenuNextMenuon" function is available your Tcl/Tk library, you will be able to move to the next menu by Tab key on the posted menu, or the previous menu by Alt + Tab key.
+Please read the sample source, and check how to override default configure options of menu entries on a menu_spec. Maybe, on windows, this menubar does not work properly about keyboard shortcuts. Then, please use "menu" option of root/toplevel widget (see sample/menubar3.rb).')
+
+Tk.mainloop
diff --git a/ext/tk/sample/msgs_rb/README b/ext/tk/sample/msgs_rb/README
index d986e031fd..781dda93ef 100644
--- a/ext/tk/sample/msgs_rb/README
+++ b/ext/tk/sample/msgs_rb/README
@@ -1,3 +1,3 @@
-Message catalogs in this directory depend on Tcl/Tk's message catalogs.
+Message catalogs in this directory depend on Tcl/Tk's message catalogs.
Texts of each locale are copied from Tcl/Tk8.5a1 widget demos.
-Please refer to '../msgs_tk/README'.
+Please refer to '../msgs_tk/README'.
diff --git a/ext/tk/sample/msgs_rb/es.msg b/ext/tk/sample/msgs_rb/es.msg
index 460dbe848c..38ca28fb8f 100644
--- a/ext/tk/sample/msgs_rb/es.msg
+++ b/ext/tk/sample/msgs_rb/es.msg
@@ -69,7 +69,7 @@ TkMsgCatalog.new('::tk') {
es "Tcl Scripts", "Scripts Tcl"
es "Tcl for Windows", "Tcl para Windows"
es "Text Files", "Archivos de texto"
- es "&Yes", "&S\\u00ed"
+ es "&Yes", "&S\\u00ed"
es "abort", "abortar"
es "blue", "azul"
es "cancel", "cancelar"
diff --git a/ext/tk/sample/msgs_rb/ru.msg b/ext/tk/sample/msgs_rb/ru.msg
index f389dff0b6..752cd42619 100644
--- a/ext/tk/sample/msgs_rb/ru.msg
+++ b/ext/tk/sample/msgs_rb/ru.msg
@@ -31,7 +31,7 @@ TkMsgCatalog.new('::tk') {
ru 'Details >>', '\u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 >>'
ru 'Directory "%1\$s" does not exist.', '\u041a\u0430\u0442\u0430\u043b\u043e\u0433\u0430 "%1\$s" \u043d\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442.'
ru '&Directory:', '&\u041a\u0430\u0442\u0430\u043b\u043e\u0433:'
- ru 'Error: %1\$s', '\u041e\u0448\u0438\u0431\u043a\u0430: %1\$s'
+ ru 'Error: %1\$s', '\u041e\u0448\u0438\u0431\u043a\u0430: %1\$s'
ru 'Exit', '\u0412\u044b\u0445\u043e\u0434'
ru 'File "%1\$s" already exists.' "\n" 'Do you want to overwrite it?' \
'\u0424\u0430\u0439\u043b "%1\$s" \u0443\u0436\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442.' "\n" '\u0417\u0430\u043c\u0435\u043d\u0438\u0442\u044c \u0435\u0433\u043e?'
@@ -47,7 +47,7 @@ TkMsgCatalog.new('::tk') {
ru 'Hi', '\u041f\u0440\u0438\u0432\u0435\u0442'
ru 'Hide Console', '\u0421\u043f\u0440\u044f\u0442\u0430\u0442\u044c \u043a\u043e\u043d\u0441\u043e\u043b\u044c'
ru '&Ignore', '&\u0418\u0433\u043d\u043e\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c'
- ru 'Invalid file name "%1\$s".', '\u041d\u0435\u0432\u0435\u0440\u043d\u043e\u0435 \u0438\u043c\u044f \u0444\u0430\u0439\u043b\u0430 "%1\$s".'
+ ru 'Invalid file name "%1\$s".', '\u041d\u0435\u0432\u0435\u0440\u043d\u043e\u0435 \u0438\u043c\u044f \u0444\u0430\u0439\u043b\u0430 "%1\$s".'
ru 'Log Files', '\u0424\u0430\u0439\u043b\u044b \u0436\u0443\u0440\u043d\u0430\u043b\u0430'
ru '&No', '&\u041d\u0435\u0442'
ru '&OK', '&\u041e\u041a'
diff --git a/ext/tk/sample/msgs_rb2/README b/ext/tk/sample/msgs_rb2/README
index b8aa114e1b..f6a904b3b6 100644
--- a/ext/tk/sample/msgs_rb2/README
+++ b/ext/tk/sample/msgs_rb2/README
@@ -1,5 +1,5 @@
Message catalogs in this directory are written in encodings except
-UTF-8. As if you have a trouble to edit UTF-8 text, you can write
+UTF-8. As if you have a trouble to edit UTF-8 text, you can write
message catalogs in your familier encoding.
Please see '../msgs_rb/README' too.
diff --git a/ext/tk/sample/msgs_tk/README b/ext/tk/sample/msgs_tk/README
index c7422e3a9b..062ec20cf8 100644
--- a/ext/tk/sample/msgs_tk/README
+++ b/ext/tk/sample/msgs_tk/README
@@ -1,4 +1,4 @@
-Almost all of Message-Catalog files in this directory are quoted
+Almost all of Message-Catalog files in this directory are quoted
from Tcl/Tk8.5a1 source archive (only a little are modified for
'tkmsgcat-load_tk.rb'). Please read the file 'license.terms' in
this directry (That was included in demo directory of Tcl/Tk8.5a1).
diff --git a/ext/tk/sample/msgs_tk/el.msg b/ext/tk/sample/msgs_tk/el.msg
index 1e3a539647..ee75af3ced 100644
--- a/ext/tk/sample/msgs_tk/el.msg
+++ b/ext/tk/sample/msgs_tk/el.msg
@@ -13,7 +13,7 @@ namespace eval ::tkmsgcat_demo {
}
-# followings are same to original file included into Tk8.5a1's widget demos.
+# followings are same to original file included into Tk8.5a1's widget demos.
## Messages for the Greek (Hellenic - "el") language.
## Please report any changes/suggestions to:
diff --git a/ext/tk/sample/msgs_tk/es.msg b/ext/tk/sample/msgs_tk/es.msg
index ba981236a3..62ce33d5cc 100644
--- a/ext/tk/sample/msgs_tk/es.msg
+++ b/ext/tk/sample/msgs_tk/es.msg
@@ -69,7 +69,7 @@ namespace eval ::tk {
::msgcat::mcset es "Tcl Scripts" "Scripts Tcl"
::msgcat::mcset es "Tcl for Windows" "Tcl para Windows"
::msgcat::mcset es "Text Files" "Archivos de texto"
- ::msgcat::mcset es "&Yes" "&S\u00ed"
+ ::msgcat::mcset es "&Yes" "&S\u00ed"
::msgcat::mcset es "abort" "abortar"
::msgcat::mcset es "blue" "azul"
::msgcat::mcset es "cancel" "cancelar"
diff --git a/ext/tk/sample/msgs_tk/license.terms b/ext/tk/sample/msgs_tk/license.terms
index 03ca6fcb31..c0a44d3fc2 100644
--- a/ext/tk/sample/msgs_tk/license.terms
+++ b/ext/tk/sample/msgs_tk/license.terms
@@ -28,7 +28,7 @@ MODIFICATIONS.
GOVERNMENT USE: If you are acquiring this software on behalf of the
U.S. government, the Government shall have only "Restricted Rights"
-in the software and related documentation as defined in the Federal
+in the software and related documentation as defined in the Federal
Acquisition Regulations (FARs) in Clause 52.227.19 (c) (2). If you
are acquiring the software on behalf of the Department of Defense, the
software shall be classified as "Commercial Computer Software" and the
diff --git a/ext/tk/sample/msgs_tk/ru.msg b/ext/tk/sample/msgs_tk/ru.msg
index a1192b7095..db009a4a52 100644
--- a/ext/tk/sample/msgs_tk/ru.msg
+++ b/ext/tk/sample/msgs_tk/ru.msg
@@ -31,7 +31,7 @@ namespace eval ::tk {
::msgcat::mcset ru "Details >>" "\u041f\u043e\u0434\u0440\u043e\u0431\u043d\u0435\u0435 >>"
::msgcat::mcset ru "Directory \"%1\$s\" does not exist." "\u041a\u0430\u0442\u0430\u043b\u043e\u0433\u0430 \"%1\$s\" \u043d\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442."
::msgcat::mcset ru "&Directory:" "&\u041a\u0430\u0442\u0430\u043b\u043e\u0433:"
- ::msgcat::mcset ru "Error: %1\$s" "\u041e\u0448\u0438\u0431\u043a\u0430: %1\$s"
+ ::msgcat::mcset ru "Error: %1\$s" "\u041e\u0448\u0438\u0431\u043a\u0430: %1\$s"
::msgcat::mcset ru "Exit" "\u0412\u044b\u0445\u043e\u0434"
::msgcat::mcset ru "File \"%1\$s\" already exists.\nDo you want to overwrite it?" \
"\u0424\u0430\u0439\u043b \"%1\$s\" \u0443\u0436\u0435 \u0441\u0443\u0449\u0435\u0441\u0442\u0432\u0443\u0435\u0442.\n\u0417\u0430\u043c\u0435\u043d\u0438\u0442\u044c \u0435\u0433\u043e?"
@@ -47,7 +47,7 @@ namespace eval ::tk {
::msgcat::mcset ru "Hi" "\u041f\u0440\u0438\u0432\u0435\u0442"
::msgcat::mcset ru "Hide Console" "\u0421\u043f\u0440\u044f\u0442\u0430\u0442\u044c \u043a\u043e\u043d\u0441\u043e\u043b\u044c"
::msgcat::mcset ru "&Ignore" "&\u0418\u0433\u043d\u043e\u0440\u0438\u0440\u043e\u0432\u0430\u0442\u044c"
- ::msgcat::mcset ru "Invalid file name \"%1\$s\"." "\u041d\u0435\u0432\u0435\u0440\u043d\u043e\u0435 \u0438\u043c\u044f \u0444\u0430\u0439\u043b\u0430 \"%1\$s\"."
+ ::msgcat::mcset ru "Invalid file name \"%1\$s\"." "\u041d\u0435\u0432\u0435\u0440\u043d\u043e\u0435 \u0438\u043c\u044f \u0444\u0430\u0439\u043b\u0430 \"%1\$s\"."
::msgcat::mcset ru "Log Files" "\u0424\u0430\u0439\u043b\u044b \u0436\u0443\u0440\u043d\u0430\u043b\u0430"
::msgcat::mcset ru "&No" "&\u041d\u0435\u0442"
::msgcat::mcset ru "&OK" "&\u041e\u041a"
diff --git a/ext/tk/sample/multi-ip_sample.rb b/ext/tk/sample/multi-ip_sample.rb
index 8150e69c73..eccf0201f8 100644
--- a/ext/tk/sample/multi-ip_sample.rb
+++ b/ext/tk/sample/multi-ip_sample.rb
@@ -19,7 +19,6 @@ cmd = Proc.new{|txt|
else
root = TkRoot.new(:title=>'timer sample')
end
-
label = TkLabel.new(:parent=>root, :relief=>:raised, :width=>10) \
.pack(:side=>:bottom, :fill=>:both)
@@ -48,6 +47,7 @@ cmd = Proc.new{|txt|
b_start = TkButton.new(:text=>'Start', :state=>:disabled) {
pack(:side=>:left, :fill=>:both, :expand=>true)
}
+
b_stop = TkButton.new(:text=>'Stop', :state=>:normal) {
pack('side'=>'left', 'fill'=>'both', 'expand'=>'yes')
}
@@ -80,6 +80,7 @@ safe_slave2.eval_proc(cmd, 'safe2') # label -> .w00020
cmd.call('master') # label -> .w00024
#second_master = MultiTkIp.new(&cmd)
+#second_master = MultiTkIp.new(:safe=>2){p [:second_master, $SAFE]}
TkTimer.new(2000, -1, proc{p ['safe1', safe_slave1.deleted?]}).start
TkTimer.new(2000, -1, proc{p ['safe2', safe_slave2.deleted?]}).start
diff --git a/ext/tk/sample/safe-tk.rb b/ext/tk/sample/safe-tk.rb
index e2408480d1..38131c0155 100644
--- a/ext/tk/sample/safe-tk.rb
+++ b/ext/tk/sample/safe-tk.rb
@@ -11,13 +11,16 @@ TkFrame.new(:borderwidth=>2, :height=>3,
:relief=>:sunken).pack(:fill=>:x, :expand=>true,
:padx=>10, :pady=>7)
+safe0_p = proc{|*args| p args}
+
###############################
puts "---- create a safe slave IP with Ruby's safe-level == 1 ----------"
-ip = MultiTkIp.new_safe_slave(1)
+ip = MultiTkIp.new_safe_slave(1){|*args| safe0_p["safe_slave safe_level == #{$SAFE}", args]}
puts "\n---- create procs ----------"
puts 'x = proc{p [\'proc x\', "$SAFE==#{$SAFE}"]; exit}'
+#x = proc{p ['proc x', "$SAFE==#{$SAFE}"]; exit}
x = proc{p ['proc x', "$SAFE==#{$SAFE}"]; exit}
TkLabel.new(:text=>'x = proc{p [\'proc x\', "$SAFE==#{$SAFE}"]; exit}',
:anchor=>:w).pack(:fill=>:x)
@@ -46,7 +49,9 @@ p lbl = ip.eval_proc{
:command=>proc{l.text($SAFE)}).pack(:fill=>:x, :padx=>5)
TkButton.new(:text=>':command=>x', :command=>x).pack(:fill=>:x, :padx=>5)
TkButton.new(:text=>':command=>proc{exit}',
- :command=>proc{exit}).pack(:fill=>:x, :padx=>5)
+ :command=>proc{
+ safe0_p["'exit' is called at $SAFE=#{$SAFE}"];exit}
+ ).pack(:fill=>:x, :padx=>5)
TkFrame.new(:borderwidth=>2, :height=>3,
:relief=>:sunken).pack(:fill=>:x, :expand=>true,
:padx=>10, :pady=>7)
@@ -68,10 +73,24 @@ p ip.eval_proc(proc{
TkButton.new(:text=>':command=>proc{y.call(l)}',
:command=>proc{y.call(l)}).pack(:fill=>:x,
:padx=>5)
+ TkButton.new(:text=>':command=>proc{Proc.new(&y).call(l)}',
+ :command=>proc{
+ Proc.new(&y).call(l)
+ }).pack(:fill=>:x, :padx=>5)
+ TkButton.new(:text=>':command=>proc{MultiTkIp._proc_on_current_safelevel(y).call(l)}',
+ :command=>proc{
+ MultiTkIp._proc_on_current_safelevel(y).call(l)
+ }).pack(:fill=>:x, :padx=>5)
+if false && Object.const_defined?(:RubyVM) && ::RubyVM.class == Class
TkButton.new(:text=>':command=>proc{Thread.new(l, &y).value}',
:command=>proc{
Thread.new(l, &y).value
}).pack(:fill=>:x, :padx=>5)
+else
+ # KNOWN BUG::
+ # Current multi-tk.rb cannot support long term threads on callbacks.
+ # Such a thread freezes the Ruby/Tk process.
+end
TkButton.new(:text=>':command=>proc{z.call}',
:command=>proc{z.call}).pack(:fill=>:x, :padx=>5)
TkFrame.new(:borderwidth=>2, :height=>3,
diff --git a/ext/tk/sample/scrollframe.rb b/ext/tk/sample/scrollframe.rb
index ab7a9ce24b..e340e1da3c 100644
--- a/ext/tk/sample/scrollframe.rb
+++ b/ext/tk/sample/scrollframe.rb
@@ -1,11 +1,11 @@
#
-# Tk::ScrollFrame class
+# Tk::RbWidget::ScrollFrame class
#
# This widget class is a frame widget with scrollbars.
# The ScrollFrame doesn't propagate the size of embedded widgets.
# When it is configured, scrollregion of the container is changed.
#
-# Scrollbars can be toggled by Tk::ScrollFrame#vscroll & hscroll.
+# Scrollbars can be toggled by Tk::RbWidget::ScrollFrame#vscroll & hscroll.
# If horizontal or virtical scrollbar is turned off, the horizontal
# or virtical size of embedded widgets is propagated.
#
@@ -13,7 +13,7 @@
#
require 'tk'
-class Tk::ScrollFrame < TkFrame
+class Tk::RbWidget::ScrollFrame < TkFrame
include TkComposite
DEFAULT_WIDTH = 200
@@ -209,7 +209,8 @@ end
# test
if __FILE__ == $0
- f = Tk::ScrollFrame.new(:scrollbarwidth=>10, :width=>300, :height=>200)
+ f = Tk::RbWidget::ScrollFrame.new(:scrollbarwidth=>10,
+ :width=>300, :height=>200)
f.pack(:expand=>true, :fill=>:both)
TkButton.new(f, :text=>'foo button', :command=>proc{puts 'foo'}).pack
@@ -220,17 +221,26 @@ if __FILE__ == $0
# f.hscroll(false)
+ # add a text widget
Tk.after(3000){
t = TkText.new(f).pack(:expand=>true, :fill=>:both)
- t.insert(:end, 'Here is a text widget')
+ t.insert(:end, "An example of Tk::RbWidget::ScrollFrame widget.\n\n")
+ t.insert(:end, "Here is a text widget.\n")
+ t.insert(:end, "Please resize the application window, ")
+ t.insert(:end, "and try the scrollbars ")
+ t.insert(:end, "to move the view of packed widgets.\n")
}
+ # remove a vertical scrollbar, and then the scrollframe is not scrollable.
Tk.after(6000){ f.vscroll(false) }
+ # add a vertical scrollbar, and make the scrollframe scrollable.
Tk.after(9000){ f.vscroll(true) }
+ # remove a horizontal scrollbar, and then the scrollframe is not scrollable.
Tk.after(12000){ f.hscroll(false) }
+ # add a horizontal scrollbar, and make the scrollframe scrollable.
Tk.after(15000){ f.hscroll(true) }
Tk.mainloop
diff --git a/ext/tk/sample/tkalignbox.rb b/ext/tk/sample/tkalignbox.rb
index dd82b50360..f3d083c33d 100644
--- a/ext/tk/sample/tkalignbox.rb
+++ b/ext/tk/sample/tkalignbox.rb
@@ -10,10 +10,17 @@
require 'tk'
-class TkAlignBox < TkFrame
+module Tk
+ module RbWidget
+ class AlignBox < TkFrame
+ end
+ end
+end
+
+class Tk::RbWidget::AlignBox < TkFrame
def initialize(*args)
- if self.class == TkAlignBox
- fail RuntimeError, "TkAlignBox is an abstract class"
+ if self.class == Tk::RbWidget::AlignBox
+ fail RuntimeError, "Tk::AlignBox is an abstract class"
end
@padx = 0
@pady = 0
@@ -31,12 +38,12 @@ class TkAlignBox < TkFrame
end
def _set_framesize
- fail RuntimeError, "TkAlignBox is an abstract class"
+ fail RuntimeError, "Tk::AlignBox is an abstract class"
end
private :_set_framesize
def _place_config(widget, idx, cnt)
- fail RuntimeError, "TkAlignBox is an abstract class"
+ fail RuntimeError, "Tk::AlignBox is an abstract class"
end
private :_place_config
@@ -117,7 +124,7 @@ class TkAlignBox < TkFrame
attr_accessor :propagate
end
-class TkHBox < TkAlignBox
+class Tk::RbWidget::HBox < Tk::RbWidget::AlignBox
def _set_framesize
bd = self.borderwidth
self.width((@max_width + 2*@padx) * @widgets.size + 2*bd)
@@ -134,9 +141,9 @@ class TkHBox < TkAlignBox
end
private :_place_config
end
-TkHLBox = TkHBox
+Tk::RbWidget::HLBox = Tk::RbWidget::HBox
-class TkHRBox < TkHBox
+class Tk::RbWidget::HRBox < Tk::RbWidget::HBox
def _place_config(widget, idx, cnt)
widget.place_in(self,
'relx'=>(cnt - idx - 1)/cnt, 'x'=>@padx,
@@ -147,7 +154,7 @@ class TkHRBox < TkHBox
private :_place_config
end
-class TkVBox < TkAlignBox
+class Tk::RbWidget::VBox < Tk::RbWidget::AlignBox
def _set_framesize
bd = self.borderwidth
self.width(@max_width + 2*@padx + 2*bd)
@@ -164,9 +171,9 @@ class TkVBox < TkAlignBox
end
private :_place_config
end
-TkVTBox = TkVBox
+Tk::RbWidget::VTBox = Tk::RbWidget::VBox
-class TkVBBox < TkVBox
+class Tk::RbWidget::VBBox < Tk::RbWidget::VBox
def _place_config(widget, idx, cnt)
widget.place_in(self,
'relx'=>0, 'x'=>@padx,
@@ -181,31 +188,34 @@ end
# test
################################################
if __FILE__ == $0
- f = TkHBox.new(:borderwidth=>3, :relief=>'ridge').pack
+ f = Tk::RbWidget::HBox.new(:borderwidth=>3, :relief=>'ridge').pack
f.add(TkButton.new(f, :text=>'a'),
TkButton.new(f, :text=>'aa', :font=>'Helvetica 16'),
TkButton.new(f, :text=>'aaa'),
TkButton.new(f, :text=>'aaaa'))
- f = TkHBox.new(:borderwidth=>3, :relief=>'ridge',
- :padx=>7, :pady=>3, :background=>'yellow').pack
+ f = Tk::RbWidget::HBox.new(:borderwidth=>3, :relief=>'ridge',
+ :padx=>7, :pady=>3, :background=>'yellow').pack
f.add(TkButton.new(f, :text=>'a'),
TkButton.new(f, :text=>'aa', :font=>'Helvetica 16'),
TkButton.new(f, :text=>'aaa'),
TkButton.new(f, :text=>'aaaa'))
- f = TkVBox.new(:borderwidth=>5, :relief=>'groove').pack
+ f = Tk::RbWidget::VBox.new(:borderwidth=>5,
+ :relief=>'groove').pack(:fill=>:y, :expand=>true)
f.add(TkButton.new(f, :text=>'a'),
TkButton.new(f, :text=>'aa', :font=>'Helvetica 30'),
TkButton.new(f, :text=>'aaa'),
TkButton.new(f, :text=>'aaaa'))
- f = TkHRBox.new(:borderwidth=>3, :relief=>'raised').pack(:fill=>:x)
+ f = Tk::RbWidget::HRBox.new(:borderwidth=>3,
+ :relief=>'raised').pack(:fill=>:x)
f.add(TkButton.new(f, :text=>'a'),
TkButton.new(f, :text=>'aa'),
TkButton.new(f, :text=>'aaa'))
- f = TkVBBox.new(:borderwidth=>3, :relief=>'ridge').pack(:fill=>:x)
+ f = Tk::RbWidget::VBBox.new(:borderwidth=>3,
+ :relief=>'ridge').pack(:fill=>:x)
f.propagate = false
f.height 100
f.add(TkFrame.new(f){|ff|
diff --git a/ext/tk/sample/tkballoonhelp.rb b/ext/tk/sample/tkballoonhelp.rb
index fc99753b81..2daa522601 100644
--- a/ext/tk/sample/tkballoonhelp.rb
+++ b/ext/tk/sample/tkballoonhelp.rb
@@ -7,11 +7,21 @@
# please try to use the Tix extension of Tcl/Tk under Ruby/Tk.
#
# The interval time to display a balloon help is defined 'interval' option
-# (default is 1000ms).
+# (default is 750ms).
#
require 'tk'
-class TkBalloonHelp<TkLabel
+module Tk
+ module RbWidget
+ class BalloonHelp<TkLabel
+ end
+ end
+end
+class Tk::RbWidget::BalloonHelp<TkLabel
+ DEFAULT_FOREGROUND = 'black'
+ DEFAULT_BACKGROUND = 'white'
+ DEFAULT_INTERVAL = 750
+
def _balloon_binding(interval)
@timer = TkAfter.new(interval, 1, proc{show})
def @timer.interval(val)
@@ -50,10 +60,13 @@ class TkBalloonHelp<TkLabel
@command = keys.delete('command')
- @interval = keys.delete('interval'){1000}
+ @interval = keys.delete('interval'){DEFAULT_INTERVAL}
_balloon_binding(@interval)
- @label = TkLabel.new(@frame, 'background'=>'bisque').pack
+ # @label = TkLabel.new(@frame, 'background'=>'bisque').pack
+ @label = TkLabel.new(@frame,
+ 'foreground'=>DEFAULT_FOREGROUND,
+ 'background'=>DEFAULT_BACKGROUND).pack
@label.configure(_symbolkey2str(keys)) unless keys.empty?
@path = @label
end
@@ -98,12 +111,24 @@ class TkBalloonHelp<TkLabel
@frame.deiconify
@frame.raise
- @org_cursor = @parent['cursor']
- @parent.cursor('crosshair')
+ begin
+ @org_cursor = @parent.cget('cursor')
+ rescue
+ @org_cursor = @parent['cursor']
+ end
+ begin
+ @parent.configure('cursor', 'crosshair')
+ rescue
+ @parent.cursor('crosshair')
+ end
end
def erase
- @parent.cursor(@org_cursor)
+ begin
+ @parent.configure('cursor', @org_cursor)
+ rescue
+ @parent.cursor(@org_cursor)
+ end
@frame.withdraw
end
@@ -118,41 +143,42 @@ end
if __FILE__ == $0
TkButton.new('text'=>'This button has a balloon help') {|b|
pack('fill'=>'x')
- TkBalloonHelp.new(b, 'text'=>' Message ')
+ Tk::RbWidget::BalloonHelp.new(b, 'text'=>' Message ')
}
TkButton.new('text'=>'This button has another balloon help') {|b|
pack('fill'=>'x')
- TkBalloonHelp.new(b, 'text'=>'configured message',
- 'interval'=>200, 'font'=>'courier',
- 'background'=>'gray', 'foreground'=>'red')
+ Tk::RbWidget::BalloonHelp.new(b,
+ 'text'=>"CONFIGURED MESSAGE\nchange colors, and so on",
+ 'interval'=>200, 'font'=>'courier',
+ 'background'=>'gray', 'foreground'=>'red')
}
sb = TkScrollbox.new.pack(:fill=>:x)
sb.insert(:end, *%w(aaa bbb ccc ddd eee fff ggg hhh iii jjj kkk lll mmm))
=begin
# CASE1 : command takes no arguemnt
- bh = TkBalloonHelp.new(sb, :interval=>500,
- :relief=>:ridge, :background=>'white',
- :command=>proc{
- y = TkWinfo.pointery(sb) - TkWinfo.rooty(sb)
- bh.text "current index == #{sb.nearest(y)}"
- })
+ bh = Tk::RbWidget::BalloonHelp.new(sb, :interval=>500,
+ :relief=>:ridge, :background=>'white',
+ :command=>proc{
+ y = TkWinfo.pointery(sb) - TkWinfo.rooty(sb)
+ bh.text "current index == #{sb.nearest(y)}"
+ })
=end
=begin
# CASE2 : command takes 2 arguemnts
- bh = TkBalloonHelp.new(sb, :interval=>500,
- :relief=>:ridge, :background=>'white',
- :command=>proc{|x, y|
- bh.text "current index == #{sb.nearest(y)}"
- })
+ bh = Tk::RbWidget::BalloonHelp.new(sb, :interval=>500,
+ :relief=>:ridge, :background=>'white',
+ :command=>proc{|x, y|
+ bh.text "current index == #{sb.nearest(y)}"
+ })
=end
=begin
# CASE3 : command takes 3 arguemnts
- TkBalloonHelp.new(sb, :interval=>500,
- :relief=>:ridge, :background=>'white',
- :command=>proc{|x, y, bhelp|
- bhelp.text "current index == #{sb.nearest(y)}"
- })
+ Tk::RbWidget::BalloonHelp.new(sb, :interval=>500,
+ :relief=>:ridge, :background=>'white',
+ :command=>proc{|x, y, bhelp|
+ bhelp.text "current index == #{sb.nearest(y)}"
+ })
=end
=begin
# CASE4a : command is a Proc object and takes 4 arguemnts
@@ -160,16 +186,16 @@ if __FILE__ == $0
bhelp.text "current index == #{parent.nearest(y)}"
}
- TkBalloonHelp.new(sb, :interval=>500,
- :relief=>:ridge, :background=>'white',
- :command=>cmd)
+ Tk::RbWidget::BalloonHelp.new(sb, :interval=>500,
+ :relief=>:ridge, :background=>'white',
+ :command=>cmd)
sb2 = TkScrollbox.new.pack(:fill=>:x)
sb2.insert(:end, *%w(AAA BBB CCC DDD EEE FFF GGG HHH III JJJ KKK LLL MMM))
- TkBalloonHelp.new(sb2, :interval=>500,
- :padx=>5, :relief=>:raised,
- :background=>'gray25', :foreground=>'white',
- :command=>cmd)
+ Tk::RbWidget::BalloonHelp.new(sb2, :interval=>500,
+ :padx=>5, :relief=>:raised,
+ :background=>'gray25', :foreground=>'white',
+ :command=>cmd)
=end
#=begin
# CASE4b : command is a Method object and takes 4 arguemnts
@@ -178,16 +204,16 @@ if __FILE__ == $0
end
cmd = self.method(:set_msg)
- TkBalloonHelp.new(sb, :interval=>500,
- :relief=>:ridge, :background=>'white',
- :command=>cmd)
+ Tk::RbWidget::BalloonHelp.new(sb, :interval=>500,
+ :relief=>:ridge, :background=>'white',
+ :command=>cmd)
sb2 = TkScrollbox.new.pack(:fill=>:x)
sb2.insert(:end, *%w(AAA BBB CCC DDD EEE FFF GGG HHH III JJJ KKK LLL MMM))
- TkBalloonHelp.new(sb2, :interval=>500,
- :padx=>5, :relief=>:raised,
- :background=>'gray25', :foreground=>'white',
- :command=>cmd)
+ Tk::RbWidget::BalloonHelp.new(sb2, :interval=>500,
+ :padx=>5, :relief=>:raised,
+ :background=>'gray25', :foreground=>'white',
+ :command=>cmd)
#=end
Tk.mainloop
diff --git a/ext/tk/sample/tkcombobox.rb b/ext/tk/sample/tkcombobox.rb
index 941f7cc4cb..c38bde10d4 100644
--- a/ext/tk/sample/tkcombobox.rb
+++ b/ext/tk/sample/tkcombobox.rb
@@ -1,11 +1,20 @@
#
-# tkcombobox.rb : TkAutoScrollbox & TkCombobox
+# tkcombobox.rb : auto scrollbox & combobox
#
# by Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp)
#
require 'tk'
-class TkAutoScrollbox < TkListbox
+module Tk
+ module RbWidget
+ class AutoScrollListbox < TkListbox
+ end
+ class Combobox < TkEntry
+ end
+ end
+end
+
+class Tk::RbWidget::AutoScrollListbox
include TkComposite
@@up_bmp = TkBitmapImage.new(:data=><<EOD)
@@ -221,17 +230,7 @@ end
################################################
-# don't use Ttk widget
-Object.instance_eval{remove_const :TkCombobox} if Object.autoload? :TkCombobox
-
-# if you want to use the 'default_widget_set' selector,
-#class TkCombobox < TkEntry; end
-#Tk.__set_toplevel_aliases__(:Tk, TkCombobox, :TkCombobox)
-
-
-################################################
-
-class TkCombobox < TkEntry
+class Tk::RbWidget::Combobox < TkEntry
include TkComposite
@@down_btn_bmp = TkBitmapImage.new(:data=><<EOD)
@@ -251,6 +250,7 @@ static unsigned char up_arrow_bits[] = {
EOD
def _button_proc(dir = true)
+ return if @ent.state == 'disabled'
@btn.relief(:sunken)
x = @frame.winfo_rootx
y = @frame.winfo_rooty
@@ -275,9 +275,10 @@ EOD
@top.grab
begin
- @var.tkwait
- if (idx = @var.to_i) >= 0
- @ent.value = @lst.get(idx)
+ @wait_var.tkwait
+ if (idx = @wait_var.to_i) >= 0
+ # @ent.value = @lst.get(idx)
+ _set_entry_value(@lst.get(idx))
end
@top.withdraw
@btn.relief(:raised)
@@ -297,18 +298,65 @@ EOD
@btn.bind('1', proc{_button_proc(true)})
@btn.bind('3', proc{_button_proc(false)})
- @lst.bind('1', proc{|y| @var.value = @lst.nearest(y)}, '%y')
- @lst.bind('Return', proc{@var.value = @lst.curselection[0]})
+ @lst.bind('1', proc{|y| @wait_var.value = @lst.nearest(y)}, '%y')
+ @lst.bind('Return', proc{@wait_var.value = @lst.curselection[0]})
cancel = TkVirtualEvent.new('2', '3', 'Escape')
- @lst.bind(cancel, proc{@var.value = -1})
+ @lst.bind(cancel, proc{@wait_var.value = -1})
end
private :_init_bindings
+ def _set_entry_value(val)
+ @ent.textvariable.value = val
+ end
+ private :_set_entry_value
+
+ #----------------------------------------------------
+
+ def _state_control(value = None)
+ if value == None
+ # get
+ @ent.state
+ else
+ # set
+ @ent.state(value.to_s)
+ case value = @ent.state # regulate 'state' string
+ when 'normal', 'readonly'
+ @btn.state 'normal'
+ when 'disabled'
+ @btn.state 'disabled'
+ else
+ # unknown : do nothing
+ end
+ end
+ end
+ private :_state_control
+
+ def __methodcall_optkeys # { key=>method, ... }
+ {'state' => :_state_control}
+ end
+ private :__methodcall_optkeys
+
+ #----------------------------------------------------
+
+ def _textvariable_control(var = None)
+ if var == None
+ # get
+ ((var = @ent.textvariable) === @default_var)? nil: var
+ else
+ # set
+ @var = var
+ tk_send('configure', '-textvariable', (@var)? var: @default_var)
+ end
+ end
+ private :_textvariable_control
+
+ #----------------------------------------------------
+
def initialize_composite(keys={})
keys = _symbolkey2str(keys)
- @btn = TkLabel.new(@frame, :relief=>:raised, :borderwidth=>3,
+ @btn = TkLabel.new(@frame, :relief=>:raised, :borderwidth=>2,
:image=>@@down_btn_bmp).pack(:side=>:right,
:ipadx=>2, :fill=>:y)
@ent = TkEntry.new(@frame).pack(:side=>:left)
@@ -322,16 +370,21 @@ EOD
startwait = keys.delete('startwait'){300}
interval = keys.delete('interval'){150}
- @lst = TkAutoScrollbox.new(@top,
- :startwait=>startwait,
- :interval=>interval).pack(:fill=>:both,
- :expand=>true)
+ @lst = Tk::RbWidget::AutoScrollListbox.new(@top, :scrollbar=>true,
+ :startwait=>startwait,
+ :interval=>interval)
+ @lst.pack(:fill=>:both, :expand=>true)
@ent_list = []
- @var = TkVariable.new
+ @wait_var = TkVariable.new
+ @var = @default_var = TkVariable.new
+
+ @ent.textvariable @default_var
_init_bindings
+ option_methods('textvariable' => :_textvariable_control)
+
delegate('DEFAULT', @ent)
delegate('height', @lst)
delegate('relief', @frame)
@@ -340,6 +393,8 @@ EOD
delegate('arrowrelief', @lst)
delegate('arrowborderwidth', @lst)
+ delegate('state', false)
+
if mode = keys.delete('scrollbar')
scrollbar(mode)
end
@@ -405,10 +460,14 @@ end
# test
################################################
if __FILE__ == $0
+# e0 = Tk::RbWidget::Combobox.new.pack
+# e0.values(%w(aa bb cc dd ee ff gg hh ii jj kk ll mm nn oo pp qq rr ss tt uu))
+
v = TkVariable.new
- e = TkCombobox.new(:height=>7, :scrollbar=>true, :textvariable=>v,
- :arrowrelief=>:flat, :arrowborderwidth=>0,
- :startwait=>400, :interval=>200).pack
+ e = Tk::RbWidget::Combobox.new(:height=>7, :scrollbar=>true,
+ :textvariable=>v,
+ :arrowrelief=>:flat, :arrowborderwidth=>0,
+ :startwait=>400, :interval=>200).pack
e.values(%w(aa bb cc dd ee ff gg hh ii jj kk ll mm nn oo pp qq rr ss tt uu))
#e.see(e.list_index('end') - 2)
e.value = 'cc'
@@ -421,8 +480,10 @@ if __FILE__ == $0
TkFrame.new(:relief=>:raised, :borderwidth=>2,
:height=>3).pack(:fill=>:x, :expand=>true, :padx=>5, :pady=>3)
- l = TkAutoScrollbox.new(nil, :relief=>:groove, :borderwidth=>4,
- :width=>20).pack(:fill=>:both, :expand=>true)
+ l = Tk::RbWidget::AutoScrollListbox.new(nil, :relief=>:groove,
+ :borderwidth=>4,:height=>7,
+ :width=>20).pack(:fill=>:both,
+ :expand=>true)
(0..20).each{|i| l.insert('end', "line #{i}")}
TkFrame.new(:relief=>:ridge, :borderwidth=>3){
diff --git a/ext/tk/sample/tkextlib/blt/readme.txt b/ext/tk/sample/tkextlib/blt/readme.txt
index fe12dd88a3..4183c01ecb 100644
--- a/ext/tk/sample/tkextlib/blt/readme.txt
+++ b/ext/tk/sample/tkextlib/blt/readme.txt
@@ -1,2 +1,2 @@
The scripts and image files in this directory are based on demo files
-of Tcl/Tk's BLT extention.
+of Tcl/Tk's BLT extention.
diff --git a/ext/tk/sample/tkextlib/tile/readme.txt b/ext/tk/sample/tkextlib/tile/readme.txt
index a76b3338f7..6c4a5cf543 100644
--- a/ext/tk/sample/tkextlib/tile/readme.txt
+++ b/ext/tk/sample/tkextlib/tile/readme.txt
@@ -1,2 +1,2 @@
-All of *.tcl and under themes/ directory (except kroc.rb) are
-quoted from Tcl/Tk's Tile extension. Please read Orig_LICENSE.txt.
+All of *.tcl and under themes/ directory (except kroc.rb) are
+quoted from Tcl/Tk's Tile extension. Please read Orig_LICENSE.txt.
diff --git a/ext/tk/sample/tkextlib/tile/repeater.tcl b/ext/tk/sample/tkextlib/tile/repeater.tcl
index 652ba8ab17..43beb9430a 100644
--- a/ext/tk/sample/tkextlib/tile/repeater.tcl
+++ b/ext/tk/sample/tkextlib/tile/repeater.tcl
@@ -17,7 +17,7 @@
# Notes:
# Repeater buttons work more like scrollbar arrows than
# Tk repeating buttons: they fire once immediately when
-# first pressed, and $State(delay) specifies the initial
+# first pressed, and $State(delay) specifies the initial
# interval before the button starts autorepeating.
#
@@ -49,8 +49,8 @@ bind Repeater <B1-Enter> \
### Binding procedures.
#
-## Activate -- Keyboard activation binding.
-# Simulate clicking the button, and invoke the command once.
+## Activate -- Keyboard activation binding.
+# Simulate clicking the button, and invoke the command once.
#
proc tile::Repeater::Activate {w} {
$w instate disabled { return }
@@ -61,7 +61,7 @@ proc tile::Repeater::Activate {w} {
}
## Press -- ButtonPress-1 binding.
-# Invoke the command once and start autorepeating after
+# Invoke the command once and start autorepeating after
# $State(delay) milliseconds.
#
proc tile::Repeater::Press {w} {
@@ -104,7 +104,7 @@ proc tile::Repeater::Resume {w} {
}
## Repeat -- Timer script
-# Invoke the command and reschedule another repetition
+# Invoke the command and reschedule another repetition
# after $State(interval) milliseconds.
#
proc tile::Repeater::Repeat {w} {
diff --git a/ext/tk/sample/tkextlib/tile/themes/blue/blue.tcl b/ext/tk/sample/tkextlib/tile/themes/blue/blue.tcl
index 37e3d07ff7..68733e8ad2 100644
--- a/ext/tk/sample/tkextlib/tile/themes/blue/blue.tcl
+++ b/ext/tk/sample/tkextlib/tile/themes/blue/blue.tcl
@@ -68,12 +68,12 @@ namespace eval tile::theme::blue {
style default Toolbutton \
-width 0 -relief flat -borderwidth 2 -padding 4 \
-background $colors(-frame) -foreground #000000 ;
- style map Toolbutton -background [list active $colors(-selectbg)]
- style map Toolbutton -foreground [list active $colors(-selectfg)]
+ style map Toolbutton -background [list active $colors(-selectbg)]
+ style map Toolbutton -foreground [list active $colors(-selectfg)]
style map Toolbutton -relief {
disabled flat
- selected sunken
- pressed sunken
+ selected sunken
+ pressed sunken
active raised
}
diff --git a/ext/tk/sample/tkextlib/tile/themes/keramik/keramik.tcl b/ext/tk/sample/tkextlib/tile/themes/keramik/keramik.tcl
index 79fcd7c04e..60c59be0ca 100644
--- a/ext/tk/sample/tkextlib/tile/themes/keramik/keramik.tcl
+++ b/ext/tk/sample/tkextlib/tile/themes/keramik/keramik.tcl
@@ -1,4 +1,4 @@
-# keramik.tcl -
+# keramik.tcl -
#
# A sample pixmap theme for the tile package.
#
@@ -48,12 +48,12 @@ namespace eval tile::theme::keramik {
;
style map . -foreground [list disabled $colors(-disabledfg)]
-
+
# -----------------------------------------------------------------
# Button elements
# - the button has a large rounded border and needs a bit of
# horizontal padding.
- # - the checkbutton and radiobutton have the focus drawn around
+ # - the checkbutton and radiobutton have the focus drawn around
# the whole widget - hence the new layouts.
#
style layout TButton {
@@ -125,7 +125,7 @@ namespace eval tile::theme::keramik {
# one at the top.
#
style layout Vertical.TScrollbar {
- Scrollbar.background
+ Scrollbar.background
Scrollbar.trough -children {
Scrollbar.uparrow -side top
Scrollbar.downarrow -side bottom
@@ -133,9 +133,9 @@ namespace eval tile::theme::keramik {
Vertical.Scrollbar.thumb -side top -expand true -sticky ns
}
}
-
+
style layout Horizontal.TScrollbar {
- Scrollbar.background
+ Scrollbar.background
Scrollbar.trough -children {
Scrollbar.leftarrow -side left
Scrollbar.rightarrow -side right
@@ -149,26 +149,26 @@ namespace eval tile::theme::keramik {
style element create Horizontal.Scrollbar.thumb image $I(hsb-n) \
-border {6 4} -width 15 -height 16 -sticky news \
-map [list {pressed !disabled} $I(hsb-p)]
-
+
style element create Vertical.Scrollbar.thumb image $I(vsb-n) \
-border {4 6} -width 16 -height 15 -sticky news \
-map [list {pressed !disabled} $I(vsb-p)]
-
+
style element create Scale.slider image $I(hslider-n) \
-border 3
-
+
style element create Vertical.Scale.slider image $I(vslider-n) \
-border 3
-
+
style element create Horizontal.Progress.bar image $I(hsb-n) \
-border {6 4}
-
+
style element create Vertical.Progress.bar image $I(vsb-n) \
-border {4 6}
-
+
style element create uparrow image $I(arrowup-n) \
-map [list {pressed !disabled} $I(arrowup-p)]
-
+
style element create downarrow image $I(arrowdown-n) \
-map [list {pressed !disabled} $I(arrowdown-p)]
@@ -177,7 +177,7 @@ namespace eval tile::theme::keramik {
style element create leftarrow image $I(arrowleft-n) \
-map [list {pressed !disabled} $I(arrowleft-p)]
-
+
# -----------------------------------------------------------------
# Notebook elements
#
diff --git a/ext/tk/sample/tkextlib/tile/themes/keramik/pkgIndex.tcl b/ext/tk/sample/tkextlib/tile/themes/keramik/pkgIndex.tcl
index 4bb89aa8a5..cedec328f8 100644
--- a/ext/tk/sample/tkextlib/tile/themes/keramik/pkgIndex.tcl
+++ b/ext/tk/sample/tkextlib/tile/themes/keramik/pkgIndex.tcl
@@ -4,7 +4,7 @@
# or we don't have the right version of Tcl/Tk
#
# To use this automatically within tile, the tile-using application should
-# use tile::availableThemes and tile::setTheme
+# use tile::availableThemes and tile::setTheme
#
# $Id$
diff --git a/ext/tk/sample/tkextlib/tile/themes/kroc/kroc.tcl b/ext/tk/sample/tkextlib/tile/themes/kroc/kroc.tcl
index 73548acef2..b2cd79679a 100644
--- a/ext/tk/sample/tkextlib/tile/themes/kroc/kroc.tcl
+++ b/ext/tk/sample/tkextlib/tile/themes/kroc/kroc.tcl
@@ -11,25 +11,25 @@ namespace eval tile {
}
namespace eval tile::kroc {
-
+
set imgdir [file join [file dirname [info script]] kroc]
array set Images [tile::LoadImages $imgdir *.gif]
-
+
if {[package vsatisfies [package provide tile] 0.5]} {
set TNoteBook_Tab TNotebook.Tab
} else {
set TNoteBook_Tab Tab.TNotebook
}
-
+
style theme create kroc -parent alt -settings {
-
+
style default . -background #FCB64F -troughcolor #F8C278 -borderwidth 1
style default . -font TkDefaultFont -borderwidth 1
style map . -background [list active #694418]
style map . -foreground [list disabled #B2B2B2 active #FFE7CB]
-
+
style default TButton -padding "10 4"
-
+
style default $TNoteBook_Tab -padding {10 3} -font TkDefaultFont
style map $TNoteBook_Tab \
-background [list selected #FCB64F {} #FFE6BA] \
@@ -41,7 +41,7 @@ namespace eval tile::kroc {
-arrowcolor { pressed #FFE7CB } \
-relief { pressed sunken } \
;
-
+
style layout Vertical.TScrollbar {
Scrollbar.trough -children {
Scrollbar.uparrow -side top
@@ -50,7 +50,7 @@ namespace eval tile::kroc {
Scrollbar.thumb -side top -expand true
}
}
-
+
style layout Horizontal.TScrollbar {
Scrollbar.trough -children {
Scrollbar.leftarrow -side left
@@ -59,18 +59,18 @@ namespace eval tile::kroc {
Scrollbar.thumb -side left -expand true
}
}
-
+
#
# Elements:
#
if {[package vsatisfies [package provide tile] 0.5]} {
-
+
style element create Button.button image $Images(button-n) \
-map [list \
pressed $Images(button-p) \
active $Images(button-h) \
] -border 3 -sticky ew
-
+
style element create Checkbutton.indicator image $Images(check-nu) \
-map [list \
{pressed selected} $Images(check-nc) \
@@ -79,7 +79,7 @@ namespace eval tile::kroc {
active $Images(check-hu) \
selected $Images(check-nc) \
] -sticky w
-
+
style element create Radiobutton.indicator image $Images(radio-nu) \
-map [list \
{pressed selected} $Images(radio-nc) \
@@ -88,15 +88,15 @@ namespace eval tile::kroc {
active $Images(radio-hu) \
selected $Images(radio-nc) \
] -sticky w
-
+
} else {
-
+
style element create Button.button pixmap -images [list \
pressed $Images(button-p) \
active $Images(button-h) \
{} $Images(button-n) \
] -border 3 -tiling tile
-
+
style element create Checkbutton.indicator pixmap -images [list \
{pressed selected} $Images(check-nc) \
pressed $Images(check-nu) \
@@ -105,7 +105,7 @@ namespace eval tile::kroc {
selected $Images(check-nc) \
{} $Images(check-nu) \
] -tiling fixed
-
+
style element create Radiobutton.indicator pixmap -images [list \
{pressed selected} $Images(radio-nc) \
pressed $Images(radio-nu) \
@@ -114,7 +114,7 @@ namespace eval tile::kroc {
selected $Images(radio-nc) \
{} $Images(radio-nu) \
] -tiling fixed
-
+
}
#
@@ -141,7 +141,7 @@ namespace eval tile::kroc {
}
}
}
-
+
style layout TRadiobutton {
Radiobutton.border -children {
Radiobutton.background
@@ -153,7 +153,7 @@ namespace eval tile::kroc {
}
}
}
-
+
} }
# -------------------------------------------------------------------------
diff --git a/ext/tk/sample/tkextlib/tile/themes/kroc/pkgIndex.tcl b/ext/tk/sample/tkextlib/tile/themes/kroc/pkgIndex.tcl
index 179077917c..de4f3d4555 100644
--- a/ext/tk/sample/tkextlib/tile/themes/kroc/pkgIndex.tcl
+++ b/ext/tk/sample/tkextlib/tile/themes/kroc/pkgIndex.tcl
@@ -4,7 +4,7 @@
# or we don't have the right version of Tcl/Tk
#
# To use this automatically within tile, the tile-using application should
-# use tile::availableThemes and tile::setTheme
+# use tile::availableThemes and tile::setTheme
#
# $Id$
diff --git a/ext/tk/sample/tkextlib/tile/themes/plastik/pkgIndex.tcl b/ext/tk/sample/tkextlib/tile/themes/plastik/pkgIndex.tcl
index e39aff6f44..f402a73f10 100644
--- a/ext/tk/sample/tkextlib/tile/themes/plastik/pkgIndex.tcl
+++ b/ext/tk/sample/tkextlib/tile/themes/plastik/pkgIndex.tcl
@@ -4,7 +4,7 @@
# or we don't have the right version of Tcl/Tk
#
# To use this automatically within tile, the tile-using application should
-# use tile::availableThemes and tile::setTheme
+# use tile::availableThemes and tile::setTheme
#
# $Id$
diff --git a/ext/tk/sample/tkextlib/tile/toolbutton.tcl b/ext/tk/sample/tkextlib/tile/toolbutton.tcl
index 4e08034e31..91e9ad18bb 100644
--- a/ext/tk/sample/tkextlib/tile/toolbutton.tcl
+++ b/ext/tk/sample/tkextlib/tile/toolbutton.tcl
@@ -7,14 +7,14 @@
#
# ~ BACKGROUND
#
-# Checkbuttons in toolbars have a very different appearance
+# Checkbuttons in toolbars have a very different appearance
# than regular checkbuttons: there's no indicator, they
# "pop up" when the mouse is over them, and they appear sunken
# when selected.
-#
-# Tk added partial support for toolbar-style buttons in 8.4
+#
+# Tk added partial support for toolbar-style buttons in 8.4
# with the "-overrelief" option, and TIP #82 added further
-# support with the "-offrelief" option. So to get a toolbar-style
+# support with the "-offrelief" option. So to get a toolbar-style
# checkbutton, you can configure it with:
#
# checkbutton .cb \
@@ -34,11 +34,11 @@
#
# ~ DEMONSTRATION
#
-# The tile built-in themes (default, "alt", windows, and XP)
+# The tile built-in themes (default, "alt", windows, and XP)
# already include Toolbutton styles. This script will add
# them to the "step" and "blue" themes as a demonstration.
#
-# (Note: Pushbuttons and radiobuttons can also use the "Toolbutton"
+# (Note: Pushbuttons and radiobuttons can also use the "Toolbutton"
# style; see demo.tcl.)
#
@@ -48,7 +48,7 @@ style theme settings "step" {
# First, we use [style layout] to define what elements to
# use and how they're arranged. Toolbuttons are pretty
# simple, consisting of a border, some internal padding,
-# and a label. (See also the TScrollbar layout definition
+# and a label. (See also the TScrollbar layout definition
# in demos/blue.tcl for a more complicated layout spec.)
#
style layout Toolbutton {
@@ -60,8 +60,8 @@ style theme settings "step" {
}
}
-# (Actually the above isn't strictly necessary, since the same layout
-# is defined in the default theme; we could have inherited it
+# (Actually the above isn't strictly necessary, since the same layout
+# is defined in the default theme; we could have inherited it
# instead.)
#
# Next, specify default values for element options.
@@ -71,17 +71,17 @@ style theme settings "step" {
style default Toolbutton -width 0 -padding 1 -relief flat -borderwidth 2
#
-# Finally, use [style map] to specify state-specific
+# Finally, use [style map] to specify state-specific
# resource values. We want a flat relief if the widget is
-# disabled, sunken if it's selected (on) or pressed,
+# disabled, sunken if it's selected (on) or pressed,
# and raised when it's active (the mouse pointer is
# over the widget). Each state-value pair is checked
# in order, and the first matching state takes precedence.
#
style map Toolbutton -relief {
disabled flat
- selected sunken
- pressed sunken
+ selected sunken
+ pressed sunken
active raised
}
}
@@ -107,10 +107,10 @@ style theme settings "blue" {
#
style map Toolbutton -relief {
disabled flat
- selected sunken
- pressed sunken
+ selected sunken
+ pressed sunken
active raised
- }
+ }
#
# Adjust the -padding at the same time, to enhance
@@ -138,7 +138,7 @@ style theme settings "blue" {
}
#
-# ~ A final note:
+# ~ A final note:
#
# TIP #82 also says: "When -indicatoron is off and the button itself
# is on, the relief continues to be hard-coded to sunken. For symmetry,
diff --git a/ext/tk/sample/tkextlib/tkHTML/README b/ext/tk/sample/tkextlib/tkHTML/README
index 1208e270b4..0b9f799cbd 100644
--- a/ext/tk/sample/tkextlib/tkHTML/README
+++ b/ext/tk/sample/tkextlib/tkHTML/README
@@ -1,12 +1,12 @@
[ TkHtml widget example ]
-The directory page1 -- page4 are referd from "test" directory of
-original TkHtml extension's source archive.
+The directory page1 -- page4 are referd from "test" directory of
+original TkHtml extension's source archive.
( see http://www.hwaci.com/sw/tkhtml/index.html )
You can see the HTML documents on the 'hv.rb' or 'ss.rb' sample script.
- e.g.
+ e.g.
LD_LIBRARY_PATH=/usr/local/ActiveTcl/lib:$LD_LIBRARY_PATH /usr/local/bin/ruby ./hv.rb page1/index.html
diff --git a/ext/tk/sample/tkextlib/tkHTML/page2/index.html b/ext/tk/sample/tkextlib/tkHTML/page2/index.html
index 7eaf2d2cc9..1c67be6c0b 100644
--- a/ext/tk/sample/tkextlib/tkHTML/page2/index.html
+++ b/ext/tk/sample/tkextlib/tkHTML/page2/index.html
@@ -10,7 +10,7 @@
<tr>
<td width="120" valign="TOP"><a href="/"><img src="image1" width="120" height="79" alt="Scriptics" border="0"></a></td>
<td valign="top" width="548">
-
+
<!-- Table to hold tabs -->
<table cellpadding="0" cellspacing="0" border="0" width="548">
<tr>
@@ -50,8 +50,8 @@
}
}
//-->
- </SCRIPT>
-
+ </SCRIPT>
+
<!-- MenuSubLevel Resource Software Extensions Tk -->
<table cellpadding="0" cellspacing="0" border="0">
@@ -186,13 +186,13 @@ or higher.
There are also an "<a href="#bltunoff">unofficial</a>" release for 8.0p2
and 8.1a2 that were not done by the author. <a href="/live/annotate?url=http%3a%2f%2fwww%2etcltk%2ecom%2fblt%2f">Edit</a>
<i><font size="-1">(October 26, 1999 09:43)</font></i><dt><b><a href="http://www.unifix-online.com/BWidget/index.html" ="">BWidget</a></b>
-<dd>A set of native Tk 8.x Widgets using Tcl8.x namespaces.
+<dd>A set of native Tk 8.x Widgets using Tcl8.x namespaces.
The ToolKit is available under Unix/X11 and Windows.
-The BWidget(s) have a professional look&feel as in other
-well known Toolkits (Tix or Incr Widget) but the concept is
-radically different because everything is native
+The BWidget(s) have a professional look&feel as in other
+well known Toolkits (Tix or Incr Widget) but the concept is
+radically different because everything is native
so no platform compilation, no compiled extension
-library are needed. The code is 100 Pure Tcl/Tk.
+library are needed. The code is 100 Pure Tcl/Tk.
More 30 components : Notebook, PageManager, Tree, PanedWindow, ButtonBox,
ScrollView, ComboBox, SpinBox, ListBox, SelectFont, SelectColor,
ProgressBare ... <a href="/live/annotate?url=http%3a%2f%2fwww%2eunifix%2donline%2ecom%2fBWidget%2findex%2ehtml">Edit</a>
@@ -220,10 +220,10 @@ Unix). The console itself provides many more features than the standard console.
<dd>This project seeks to integrate the Tk toolkit
with the Frontier scripting language. <a href="/live/annotate?url=http%3a%2f%2fwww%2escriptmeridian%2eorg%2fprojects%2ftk%2f">Edit</a>
<i><font size="-1">(August 19, 1999 15:36)</font></i><dt><b><a href="http://purl.oclc.org/net/nijtmans/img.html" ="">Img image format extension</a></b>
-<dd>This package enhances Tk, adding support for many other Image formats:
+<dd>This package enhances Tk, adding support for many other Image formats:
BMP, XBM, XPM, GIF (with transparency), PNG,
JPEG, TIFF and postscript.
-This is implemented as a shared library that can be dynamically loaded into
+This is implemented as a shared library that can be dynamically loaded into
Tcl/Tk.
<a href="/live/annotate?url=http%3a%2f%2fpurl%2eoclc%2eorg%2fnet%2fnijtmans%2fimg%2ehtml">Edit</a>
<i><font size="-1">(November 21, 1999 06:35)</font></i><dt><b><a href="http://purl.oclc.org/net/oakley/tcl/mclistbox/index.html" ="">mclistbox - a multi-column listbox widget</a></b>
@@ -234,7 +234,7 @@ requires no other extensions; it is completely
standalone. <a href="/live/annotate?url=http%3a%2f%2fpurl%2eoclc%2eorg%2fnet%2foakley%2ftcl%2fmclistbox%2findex%2ehtml">Edit</a>
<i><font size="-1">(August 19, 1999 15:37)</font></i><dt><b><a href="http://home.t-online.de/home/dshepherd/tkview.htm" ="">MFC views C++ class for embedding Tk</a></b>
<dd>The idea of embedding Tk in MFC windows always seemed very enticing but information was sparse and contradictory - on a
- scale between "very easy" and "not yet possible". The only thing for it was to have a go and lo, it wasn't that hard after all.
+ scale between "very easy" and "not yet possible". The only thing for it was to have a go and lo, it wasn't that hard after all.
CTkView is a C++ class which can be used in MFC SDI or MDI applications. An instance of CTkView hosts an embedded Tk
toplevel widget and performs some management chores for the widget so that it can size, update and react correctly to Windows
events. <a href="/live/annotate?url=http%3a%2f%2fhome%2et%2donline%2ede%2fhome%2fdshepherd%2ftkview%2ehtm">Edit</a>
@@ -244,7 +244,7 @@ standalone. <a href="/live/annotate?url=http%3a%2f%2fpurl%2eoclc%2eorg%2fnet%2fo
Works with <b>8.0</b>
<br>Download: <a href="http://www.cs.umd.edu/hcil/pad++/download.html">download.html</a><br>Pad++ is a Tk widget that provides a Zoomable User Interface (ZUI) that supports real-time interactive zoomable graphics in a fashion similar to the Tk Canvas widget. Pad++ supports tens of thousands of objects which include text, images, graphics, portals, lenses, simple html (and more), including transparency and rotation. <a href="/live/annotate?url=http%3a%2f%2fwww%2ecs%2eumd%2eedu%2fhcil%2fpad%2b%2b">Edit</a>
<i><font size="-1">(August 19, 1999 15:39)</font></i><dt><b><a href="http://home.t-online.de/home/sesam.com/freeware.htm" ="">Progressbar</a></b>
-<dd>Progressbar is a megawidget written in pure tcl (ie: no compiling required - runs on all platforms Macintosh, Unix, Windows).
+<dd>Progressbar is a megawidget written in pure tcl (ie: no compiling required - runs on all platforms Macintosh, Unix, Windows).
Its primary purpose is to show the progress of any action in percent. <a href="/live/annotate?url=http%3a%2f%2fhome%2et%2donline%2ede%2fhome%2fsesam%2ecom%2ffreeware%2ehtm">Edit</a>
<i><font size="-1">(January 24, 2000 09:19)</font></i><dt><b><a href="http://jfontain.free.fr/" ="">scwoop (Simple Composite Widget Object Oriented Package)</a></b>
<dd>Scwoop is a composite widget (also known as mega widget) extension to the great Tk widget library. Scwoop is
@@ -287,7 +287,7 @@ pie charts on a Tk canvas. <a href="/live/annotate?url=http%3a%2f%2fjfontain%2ef
<dd>TkPrint is an extension that allows you to print from a
Tk widget. <a href="/live/annotate?url=http%3a%2f%2fwww%2ecygnus%2ecom%2f%7eirox%2ftkprint%2f">Edit</a>
<i><font size="-1">(October 11, 1999 09:58)</font></i><dt><b><a href="http://www.purl.org/net/hobbs/tcl/capp/" ="">TkTable Home Page</a></b>
-<dd>The TkTable widget. The <code>table</code> command creates a
+<dd>The TkTable widget. The <code>table</code> command creates a
2-dimensional grid of cells. The table can use a Tcl array variable or Tcl
command for data storage and retrieval. <a href="/live/annotate?url=http%3a%2f%2fwww%2epurl%2eorg%2fnet%2fhobbs%2ftcl%2fcapp%2f">Edit</a>
@@ -303,14 +303,14 @@ command for data storage and retrieval. <a href="/live/annotate?url=http%3a%2f%2
distribution. <a href="/live/annotate?url=http%3a%2f%2fftp%2eaustintx%2enet%2fusers%2fjatucker%2fTkTextmatrix%2fdefault%2ehtm">Edit</a>
<i><font size="-1">(August 23, 1999 12:14)</font></i><dt><b><a href="http://www.cs.umd.edu/~bederson/Togl.html" ="">ToGL - a Tk Open GL widget</a></b>
<dd>Togl is a Tk widget for OpenGL rendering. Togl is based on OGLTK, originally written by Benjamin Bederson at the
-University of New Mexico (who has since moved to the University of Maryland). Togl adds the new features:
+University of New Mexico (who has since moved to the University of Maryland). Togl adds the new features:
<ul>
-<li> color-index mode support including color allocation functions
-<li> support for requesting stencil, accumulation, alpha buffers, etc
-<li> multiple OpenGL drawing widgets
-<li> OpenGL extension testing from Tcl
-<li> simple, portable font support
-<li> overlay plane support
+<li> color-index mode support including color allocation functions
+<li> support for requesting stencil, accumulation, alpha buffers, etc
+<li> multiple OpenGL drawing widgets
+<li> OpenGL extension testing from Tcl
+<li> simple, portable font support
+<li> overlay plane support
</ul>
Togl allows one to create and manage a special Tk/OpenGL widget with Tcl and render into it with a C program. That is,
a typical Togl program will have Tcl code for managing the user interface and a C program for computations and
@@ -383,7 +383,7 @@ tree. The tree can be displayed horizontally or vertically.
Works with <b>Tcl/Tk 8.0 or higher</b>
<br>Download: <a href="http://www.purl.org/net/hobbs/tcl/script/widget/widget-0.9.tar.gz">widget-0.9.tar.gz</a><br>This is a package of
megawidgets (i.e., compound widgets) that work almost exactly like Tk widgets.
- You can also build your own new megawidgets.
+ You can also build your own new megawidgets.
Includes: combobox, hierarchy, console, progressbar,
tabnotebook, validating entry, pane geometry manager, baloon help. <a href="/live/annotate?url=http%3a%2f%2fwww%2epurl%2eorg%2fnet%2fhobbs%2ftcl%2fscript%2fwidget%2f">Edit</a>
<i><font size="-1">(August 23, 1999 12:16)</font></i></dl>
@@ -419,15 +419,15 @@ tabnotebook, validating entry, pane geometry manager, baloon help. <a href="/liv
over[9].src = "http://images.scriptics.com/images/homeMainRollover3.gif"
}
-
+
function MakeImageArray(n) {
this.length = n
for (var i = 0; i<=n; i++)="i++)" {="{" this[i]="this[i]" ="" new="new" Image()="Image()" }="}" return="return" this="this" }="}" //="//" --="--">
</SCRIPT><br>
<font size="2">
&copy; 1998-2000 Scriptics Corporation. All rights reserved.
- <a href="/legal_notice.html">Legal Notice</a> | <A href="" /privacy.html="/privacy.html">
+ <a href="/legal_notice.html">Legal Notice</a> | <A href="" /privacy.html="/privacy.html">
Privacy Statement</a>
</td></tr></table></td></tr></table>
</Body>
-</Html> \ No newline at end of file
+</Html>
diff --git a/ext/tk/sample/tkextlib/tkHTML/page3/index.html b/ext/tk/sample/tkextlib/tkHTML/page3/index.html
index ce92e8a22e..a04470e659 100644
--- a/ext/tk/sample/tkextlib/tkHTML/page3/index.html
+++ b/ext/tk/sample/tkextlib/tkHTML/page3/index.html
@@ -218,7 +218,7 @@
<h2 align="center">How To Compile Under Unix Without Installing Tcl</h2>
<p><p>Specify the *.a file directly:</p>
<blockquote><pre>
- $ gcc -I../tcl8.2.2/generic hello.c \
+ $ gcc -I../tcl8.2.2/generic hello.c \
../tcl8.2.2/unix/libtcl8.2.a -lm -ldl
$ strip a.out
$ ./a.out
@@ -226,7 +226,7 @@
<p>Or, tell the C compiler where to look for *.a files:</p>
<blockquote><pre>
- $ gcc -I../tcl8.2.2/generic hello.c \
+ $ gcc -I../tcl8.2.2/generic hello.c \
-L../tcl8.2.2/unix -ltcl -lm -ldl
$ strip a.out
$ ./a.out
@@ -982,7 +982,7 @@ int&nbsp;main(int&nbsp;argc,&nbsp;char&nbsp;**argv){<br>
<br clear="both"><p><hr></p>
<h2 align="center">Linkage From Tcl To C</h2>
<p><p align="center"><img src="image4"></p></p><p><ul><li>3rd parameter of Tcl_CreateCommand() is a pointer to the C subroutine
- that implements the command.</li></ul><ul><li>4th parameter to Tcl_CreateCommand() becomes the 1st parameter to
+ that implements the command.</li></ul><ul><li>4th parameter to Tcl_CreateCommand() becomes the 1st parameter to
the C routine whenever the Tcl command is executed.</li></ul><ul><li>1st parameter to Tcl_CreateCommand() must be a valid Tcl interpreter.
The same pointer appears as the second parameter to the C routine
whenever the Tcl command is executed.</li></ul></p>
@@ -990,7 +990,7 @@ int&nbsp;main(int&nbsp;argc,&nbsp;char&nbsp;**argv){<br>
<br clear="both"><p><hr></p>
<h2 align="center">Linkage From Tcl To C</h2>
<p><p align="center"><img src="image5"></p></p><p><ul><li>5th parameter of Tcl_CreateCommand() is a pointer to the C subroutine
- that is called when the Tcl command is deleted.</li></ul><ul><li>4th parameter to Tcl_CreateCommand() becomes the 1st parameter to
+ that is called when the Tcl command is deleted.</li></ul><ul><li>4th parameter to Tcl_CreateCommand() becomes the 1st parameter to
the C routine.</li></ul></p>
<br clear="both"><p><hr></p>
@@ -1035,7 +1035,7 @@ pack&nbsp;.b</tt></small></td>
<br clear="both"><p><hr></p>
<h2 align="center">Linkage From Tcl To C</h2>
-<p>The <tt>argc</tt> and <tt>argv</tt> parameters work just like in
+<p>The <tt>argc</tt> and <tt>argv</tt> parameters work just like in
<tt>main()</tt></p><p>
<table cellspacing="0" cellpadding="0" border="0">
<tr><td valign="center">
@@ -1139,7 +1139,7 @@ pack&nbsp;.b</tt></small></td>
<td></td><td></td><td></td><td></td>
</tr>
</table>
-<p><ul><li>Result should be the text of an error message if you
+<p><ul><li>Result should be the text of an error message if you
return TCL_ERROR.</li></ul><ul><li>3rd argument to Tcl_SetResult() can be TCL_STATIC,
TCL_DYNAMIC, TCL_VOLATILE, or a function pointer.</li></ul><ul><li>Also consider using Tcl_AppendResult().</li></ul><ul><li>Direct access to <tt>interp->result</tt> is deprecated.</li></ul><ul><li>See the man pages for details.</li></ul></p>
@@ -1443,7 +1443,7 @@ int&nbsp;main(int&nbsp;argc,&nbsp;char&nbsp;**argv){<br>
<h2 align="center">Initialization Scripts</h2>
<p><ul><li>Run the mini TCLSH implemented above and execute the <tt>parray</tt> command</li></ul><ul><li>It doesn't work! What's wrong? </p></li></li></ul><ul><li><tt>parray</tt> is really a Tcl proc that is read in when the
interpreter is initialized. </p></li></li></ul><ul><li><tt>parray</tt> (and several other commands) are stored in a
- handful of &quot;Initialization Scripts&quot; </p></li></li></ul><ul><li>All the initialization scripts are stored in the
+ handful of &quot;Initialization Scripts&quot; </p></li></li></ul><ul><li>All the initialization scripts are stored in the
&quot;Tcl Library&quot; - a directory on the host
computer. </p></li></li></ul><table><tr><td valign="top"><img src="image3"></td>
<td valign="top"><b>Invoke the Tcl_Init() function to locate and read the
@@ -1668,8 +1668,8 @@ int&nbsp;main(int&nbsp;argc,&nbsp;char&nbsp;**argv){<br>
</ul></li></ul><ul><li>Allows us to implement a virtual filesystem that overlays the
real filesystem.</li></ul><ul><li>The virtual filesystem contains all the initialization scripts
as compiled-in strings. The initialization scripts look like
- they are resident on disk even though they are built in.</li></ul><ul><li>These functions first appeared in Tcl8.0.3.
- Presumably to support TclPro Wrapper.</li></ul><ul><li>The only documentation is comments on the code.
+ they are resident on disk even though they are built in.</li></ul><ul><li>These functions first appeared in Tcl8.0.3.
+ Presumably to support TclPro Wrapper.</li></ul><ul><li>The only documentation is comments on the code.
See the Tcl source file <tt>generic/tclIOUtil.c</tt></li></ul></p>
<br clear="both"><p><hr></p>
<h2 align="center">The <tt>TclStatInsertProc()</tt> Function</h2>
@@ -1997,7 +1997,7 @@ int&nbsp;main(int&nbsp;argc,&nbsp;char&nbsp;**argv){<br>
<h2 align="center">Compiling "Hello, World!" For Tk</h2>
<p><p><b>Unix:</b></p>
<blockquote><pre>
- $ gcc hello.c -ltk -L/usr/X11R6/lib \
+ $ gcc hello.c -ltk -L/usr/X11R6/lib \
-lX11 -ltcl -lm -ldl
$ ./a.out</pre></blockquote>
@@ -2008,7 +2008,7 @@ int&nbsp;main(int&nbsp;argc,&nbsp;char&nbsp;**argv){<br>
<p><b>Windows using Mingw32:</b></p>
<blockquote><pre>
- C:> gcc -mno-cygwin hello.c -mwindows \
+ C:> gcc -mno-cygwin hello.c -mwindows \
-ltk82 -ltcl82 -lm
C:> a.exe</pre></blockquote></p>
<br clear="both"><p><hr></p>
@@ -2162,7 +2162,7 @@ int&nbsp;main(int&nbsp;argc,&nbsp;char&nbsp;**argv){<br>
<li> FreeWrap - http://www.albany.net/~dlabelle/freewrap/freewrap.html </li>
<li> Wrap - http://members1.chello.nl/~j.nijtmans/wrap.html </li>
</ul></li></ul><ul><li>No C compiler required!</li></ul><ul><li>TclPro will convert Tcl script into bytecode so that it cannot be
- easily read by the end user. FreeWrap encrypts the scripts.</li></ul><ul><li>FreeWrap uses compression on its executable.
+ easily read by the end user. FreeWrap encrypts the scripts.</li></ul><ul><li>FreeWrap uses compression on its executable.
Wrap uses compression on both the executable and on the bundled script files.</li></ul><ul><li>Usually include extensions like winico and/or BLT</li></ul></p></td></tr></table>
<br clear="both"><p><hr></p>
@@ -2170,8 +2170,8 @@ int&nbsp;main(int&nbsp;argc,&nbsp;char&nbsp;**argv){<br>
<table><tr><td valign="top"><img src="image9"></td>
<td valign="top"><p><ul><li>Mix C/C++ with Tcl/Tk into a standalone binary</li></ul>
<ul><li><tt>mktclapp</tt> generates an application initialization file
- that contains Tcl scripts as strings and makes all necessary calls
- to <tt>Tcl_Init</tt>, <tt>Tcl_CreateCommand</tt>,
+ that contains Tcl scripts as strings and makes all necessary calls
+ to <tt>Tcl_Init</tt>, <tt>Tcl_CreateCommand</tt>,
<tt>Tcl</tt>*<tt>InsertProc</tt>, etc.</li></ul><ul><li>Features to make it easier to write new Tcl command in C</li></ul><ul><li><tt>xmktclapp.tcl</tt> provides a GUI interface to <tt>mktclapp</tt></li></ul><ul><li>http://www.hwaci.com/sw/mktclapp/</li></ul></p></td></tr></table>
<br clear="both"><p><hr></p>
@@ -2400,7 +2400,7 @@ int&nbsp;ET_OBJCOMMAND_add2(ET_OBJARGS){<br>
<h2 align="center">Locations Of Libraries</h2>
<table><tr><td valign="top"><img src="image13"></td>
<td valign="top"><p><ul><li>Tells mktclapp where to look for script libraries.</li></ul><ul><li>All Tcl scripts in the indicated directories are
- compiled into the <tt>appinit.c</tt> file.</li></ul><ul><li>Comments and extra white-space are removed.
+ compiled into the <tt>appinit.c</tt> file.</li></ul><ul><li>Comments and extra white-space are removed.
There is no way to turn this off.</li></ul></p></td></tr></table>
<br clear="both"><p><hr></p>
@@ -2607,10 +2607,10 @@ int&nbsp;main(int&nbsp;argc,&nbsp;char&nbsp;**argv){</tt></small></td>
<br clear="both"><p><hr></p>
<h2 align="center">Mktclapp Initialization Sequence</h2>
-<p><ul><li>Initialization starts when the <tt>Et_Init()</tt>
+<p><ul><li>Initialization starts when the <tt>Et_Init()</tt>
function is called either by client code or by
the <tt>main()</tt> that mktclapp generates</li></ul><ul><li>Create the main Tcl interpreter</li></ul><ul><li>Construct the virtual filesystem overlay by redefining
- the <tt>source</tt> command and by using the
+ the <tt>source</tt> command and by using the
<tt>Tcl</tt>*<tt>InsertProc()</tt> functions</li></ul><ul><li>Call <tt>Et_PreInit()</tt> if the client defines it</li></ul><ul><li>Call <tt>Tcl_Init()</tt> and <tt>Tk_Init()</tt></li></ul><ul><li>Call <tt>Tcl_CreateCommand()</tt> and <tt>Tcl_CreateObjCommand()</tt>
for every <tt>ET_COMMAND_</tt>* and <tt>ET_OBJCOMMAND_</tt>* function
in the client code</li></ul><ul><li>Call <tt>Et_AppInit()</tt> if the client defines it</li></ul><ul><li>Run the main Tcl script if there is one</li></ul><ul><li>Call <tt>Et_CustomMainLoop()</tt> if defined by client code or
@@ -2680,7 +2680,7 @@ void&nbsp;ErrMsg(char&nbsp;*zMsg){<br>
<ul><li>
The command that gets executed is:
<pre>
- tk_messageBox -icon error -msg \
+ tk_messageBox -icon error -msg \
{Syntax error near "}"} -type ok
</pre>
</li></ul>
@@ -2708,7 +2708,7 @@ void&nbsp;ErrMsg(char&nbsp;*zMsg){<br>
<p><ul><li>The <tt></tt> puts a backslash before all characters that
are special to Tcl</li></ul><ul><li>The Tcl command becomes:
<pre>
- tk_messageBox -icon error -msg \
+ tk_messageBox -icon error -msg \
"Syntax error near \"\}\"" -type ok
</pre></li></ul></p>
diff --git a/ext/tk/sample/tkextlib/tkimg/license_terms_of_Img_extension b/ext/tk/sample/tkextlib/tkimg/license_terms_of_Img_extension
index 7f515feee8..23238e9c66 100644
--- a/ext/tk/sample/tkextlib/tkimg/license_terms_of_Img_extension
+++ b/ext/tk/sample/tkextlib/tkimg/license_terms_of_Img_extension
@@ -30,7 +30,7 @@ MODIFICATIONS.
GOVERNMENT USE: If you are acquiring this software on behalf of the
U.S. government, the Government shall have only "Restricted Rights"
-in the software and related documentation as defined in the Federal
+in the software and related documentation as defined in the Federal
Acquisition Regulations (FARs) in Clause 52.227.19 (c) (2). If you
are acquiring the software on behalf of the Department of Defense, the
software shall be classified as "Commercial Computer Software" and the
@@ -38,4 +38,4 @@ Government shall have only "Restricted Rights" as defined in Clause
252.227-7013 (c) (1) of DFARs. Notwithstanding the foregoing, the
authors grant the U.S. Government and others acting in its behalf
permission to use and distribute the software in accordance with the
-terms specified in this license.
+terms specified in this license.
diff --git a/ext/tk/sample/tkextlib/tkimg/readme.txt b/ext/tk/sample/tkextlib/tkimg/readme.txt
index 4d9774492c..8e4b0163b1 100644
--- a/ext/tk/sample/tkextlib/tkimg/readme.txt
+++ b/ext/tk/sample/tkextlib/tkimg/readme.txt
@@ -1,3 +1,3 @@
-The script 'demo.rb' is based on 'demo.tcl' of Tcl/Tk's 'Img' extention.
+The script 'demo.rb' is based on 'demo.tcl' of Tcl/Tk's 'Img' extention.
Image data in 'demo.rb' is those of 'demo.tcl'.
Please read 'license_terms_of_Img_extension' file.
diff --git a/ext/tk/sample/tkextlib/treectrl/readme.txt b/ext/tk/sample/tkextlib/treectrl/readme.txt
index 9f26ac069c..bda4f63d88 100644
--- a/ext/tk/sample/tkextlib/treectrl/readme.txt
+++ b/ext/tk/sample/tkextlib/treectrl/readme.txt
@@ -1,2 +1,2 @@
The scripts and image files in this directory are based on demo files
-of Tcl/Tk's TreeCtrl extention.
+of Tcl/Tk's TreeCtrl extention.
diff --git a/ext/tk/sample/tktextframe.rb b/ext/tk/sample/tktextframe.rb
index d50f2e5d88..b2b40c9138 100644
--- a/ext/tk/sample/tktextframe.rb
+++ b/ext/tk/sample/tktextframe.rb
@@ -5,9 +5,53 @@
#
require 'tk'
-class TkTextFrame < TkText
+module Tk::ScrollbarComposite
include TkComposite
+ def component_construct_keys
+ # If a component requires options for construction,
+ # return an Array of option-keys.
+ []
+ end
+ private :component_construct_keys
+
+ def create_component(keys={})
+ # This method must return the created component widget.
+ end
+ private :create_component
+
+ def component_delegates
+ # if want to override defalut option-methods or delegates,
+ # please define here.
+ end
+ private :component_delegates
+
+ def define_delegates
+ # option methods for scrollbars
+ option_methods([:scrollbarwidth, :get_scrollbarwidth])
+
+ # set receiver widgets for configure methods (with alias)
+ delegate_alias('scrollbarrelief', 'relief', @h_scroll, @v_scroll)
+ delegate_alias('framebackground', 'background',
+ @frame, @h_scroll, @v_scroll)
+ delegate_alias('activeframebackground', 'activebackground',
+ @h_scroll, @v_scroll)
+
+ # set receiver widgets for configure methods
+ delegate('DEFAULT', @component)
+ delegate('troughcolor', @h_scroll, @v_scroll)
+ delegate('repeatdelay', @h_scroll, @v_scroll)
+ delegate('repeatinterval', @h_scroll, @v_scroll)
+ delegate('borderwidth', @frame)
+ delegate('relief', @frame)
+
+ component_delegates
+ end
+ private :define_delegates
+
+ DEFAULT_VSCROLL = true
+ DEFAULT_HSCROLL = true
+
def initialize_composite(keys={})
keys = _symbolkey2str(keys)
@@ -15,55 +59,123 @@ class TkTextFrame < TkText
@v_scroll = TkScrollbar.new(@frame, 'orient'=>'vertical')
@h_scroll = TkScrollbar.new(@frame, 'orient'=>'horizontal')
- # create a text widget
- @text = TkText.new(@frame, 'wrap'=>'none')
+ # create a component
+ construct_keys = {}
+ ((component_construct_keys.map{|k| k.to_s}) & keys.keys).each{|k|
+ construct_keys[k] = keys.delete(k)
+ }
+
+ # create a component (the component must be scrollable)
+ @component = create_component(construct_keys)
# set default receiver of method calls
- @path = @text.path
+ @path = @component.path
# assign scrollbars
- @text.xscrollbar(@h_scroll)
- @text.yscrollbar(@v_scroll)
+ @component.xscrollbar(@h_scroll)
+ @component.yscrollbar(@v_scroll)
# allignment
TkGrid.rowconfigure(@frame, 0, 'weight'=>1, 'minsize'=>0)
TkGrid.columnconfigure(@frame, 0, 'weight'=>1, 'minsize'=>0)
- @text.grid('row'=>0, 'column'=>0, 'sticky'=>'news')
+ @component.grid('row'=>0, 'column'=>0, 'sticky'=>'news')
# scrollbars ON
- vscroll(keys.delete('vscroll'){true})
- hscroll(keys.delete('hscroll'){true})
-
- # set background of the text widget
-=begin
- color = keys.delete('textbackground')
- textbackground(color) if color
-=end
- # please check the differences of the following definitions
+ vscroll(keys.delete('vscroll'){self.class::DEFAULT_VSCROLL})
+ hscroll(keys.delete('hscroll'){self.class::DEFAULT_HSCROLL})
+
+ # do configure
+ define_delegates
+
+ # do configure
+ configure keys unless keys.empty?
+ end
+ private :initialize_composite
+
+ # get/set width of scrollbar
+ def get_scrollbarwidth
+ @v_scroll.width
+ end
+ def set_scrollbarwidth(width)
+ @v_scroll.width(width)
+ @h_scroll.width(width)
+ end
+ alias :scrollbarwidth :set_scrollbarwidth
+
+ def hook_vscroll_on(*args); end
+ def hook_vscroll_off(*args); end
+ def hook_hscroll_on(*args); end
+ def hook_hscroll_off(*args); end
+ private :hook_vscroll_on,:hook_vscroll_off,:hook_hscroll_on,:hook_hscroll_off
+
+ # vertical scrollbar : ON/OFF
+ def vscroll(mode, *args)
+ st = TkGrid.info(@v_scroll)
+ if mode && st.size == 0 then
+ @v_scroll.grid('row'=>0, 'column'=>1, 'sticky'=>'ns')
+ hook_vscroll_on(*args)
+ elsif !mode && st.size != 0 then
+ @v_scroll.ungrid
+ hook_vscroll_off(*args)
+ end
+ self
+ end
+
+ # horizontal scrollbar : ON/OFF
+ def hscroll(mode, *args)
+ st = TkGrid.info(@h_scroll)
+ if mode && st.size == 0 then
+ @h_scroll.grid('row'=>1, 'column'=>0, 'sticky'=>'ew')
+ hook_hscroll_on(*args)
+ elsif !mode && st.size != 0 then
+ @h_scroll.ungrid
+ hook_hscroll_off(*args)
+ end
+ self
+ end
+end
+
+################################################
+
+class TkTextFrame < TkText
+ include Tk::ScrollbarComposite
+
+ # def component_construct_keys; []; end
+ # private :component_construct_keys
+
+ def create_component(keys={})
+ # keys has options which are listed by component_construct_keys method.
+ @text = TkText.new(@frame, 'wrap'=>'none')
+ @text.configure(keys) unless keys.empty?
+
+ # option methods for component
option_methods(
- [:scrollbarwidth, :get_scrollbarwidth],
[:textbackground, nil, :textbg_info],
:textborderwidth,
:textrelief
)
- # set receiver widgets for configure methods (with alias)
- delegate_alias('scrollbarrelief', 'relief', @h_scroll, @v_scroll)
+ # return the created componet
+ @text
+ end
+ private :create_component
- # set receiver widgets for configure methods
- delegate('DEFAULT', @text)
- delegate('background', @frame, @h_scroll, @v_scroll)
- delegate('activebackground', @h_scroll, @v_scroll)
- delegate('troughcolor', @h_scroll, @v_scroll)
- delegate('repeatdelay', @h_scroll, @v_scroll)
- delegate('repeatinterval', @h_scroll, @v_scroll)
- delegate('borderwidth', @frame)
- delegate('relief', @frame)
+ # def component_delegates; end
+ # private :component_delegates
- # do configure
- configure keys unless keys.empty?
+ def hook_hscroll_on(wrap_mode=nil)
+ if wrap_mode
+ wrap wrap_mode
+ else
+ wrap 'none' # => self.wrap('none')
+ end
+ end
+ def hook_hscroll_off(wrap_mode)
+ wrap wrap_mode # => self.wrap(wrap_mode)
+ end
+ def hscroll(mode, wrap_mode="char")
+ super
end
- private :initialize_composite
# set background color of text widget
def textbackground(color = nil)
@@ -103,47 +215,13 @@ class TkTextFrame < TkText
def textrelief(type)
@text.relief(type)
end
-
- # get/set width of scrollbar
- def get_scrollbarwidth
- @v_scroll.width
- end
- def set_scrollbarwidth(width)
- @v_scroll.width(width)
- @h_scroll.width(width)
- end
- alias :scrollbarwidth :set_scrollbarwidth
-
- # vertical scrollbar : ON/OFF
- def vscroll(mode)
- st = TkGrid.info(@v_scroll)
- if mode && st.size == 0 then
- @v_scroll.grid('row'=>0, 'column'=>1, 'sticky'=>'ns')
- elsif !mode && st.size != 0 then
- @v_scroll.ungrid
- end
- self
- end
-
- # horizontal scrollbar : ON/OFF
- def hscroll(mode, wrap_mode="char")
- st = TkGrid.info(@h_scroll)
- if mode && st.size == 0 then
- @h_scroll.grid('row'=>1, 'column'=>0, 'sticky'=>'ew')
- wrap 'none' # => self.wrap('none')
- elsif !mode && st.size != 0 then
- @h_scroll.ungrid
- wrap wrap_mode # => self.wrap(wrap_mode)
- end
- self
- end
end
-
################################################
# test
################################################
if __FILE__ == $0
+ TkLabel.new(:text=>'TkTextFrame is an example of Tk::ScrollbarComposite module.').pack
f = TkFrame.new.pack('fill'=>'x')
#t = TkTextFrame.new.pack
t = TkTextFrame.new(:textborderwidth=>3,
@@ -158,5 +236,46 @@ if __FILE__ == $0
'command'=>proc{t.hscroll(true)}).pack('side'=>'left')
TkButton.new(f, 'text'=>'hscr OFF',
'command'=>proc{t.hscroll(false)}).pack('side'=>'left')
+
+ ############################################
+
+ # Tk.default_widget_set = :Ttk
+
+ TkFrame.new.pack(:pady=>10)
+ TkLabel.new(:text=>'The following is another example of Tk::ScrollbarComposite module.').pack
+
+ #----------------------------------
+ class ScrListbox < TkListbox
+ include Tk::ScrollbarComposite
+
+ DEFAULT_HSCROLL = false
+
+ def create_component(keys={})
+ TkListbox.new(@frame, keys)
+ end
+ private :create_component
+ end
+ #----------------------------------
+
+ f = TkFrame.new.pack(:pady=>5)
+ lbox = ScrListbox.new(f).pack(:side=>:left)
+ lbox.value = %w(aa bb cc dd eeeeeeeeeeeeeeeeeeeeeeeeee ffffffffff gg hh ii jj kk ll mmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmmm nn oo pp qq)
+ fb = TkFrame.new(f).pack(:expand=>true, :fill=>:y, :padx=>5)
+ TkButton.new(fb, 'text'=>'lbox hscr OFF',
+ 'command'=>proc{lbox.hscroll(false)}).pack(:side=>:bottom,
+ :fill=>:x)
+ TkButton.new(fb, 'text'=>'lbox hscr ON',
+ 'command'=>proc{lbox.hscroll(true)}).pack(:side=>:bottom,
+ :fill=>:x)
+ TkFrame.new(fb).pack(:pady=>5, :side=>:bottom)
+ TkButton.new(fb, 'text'=>'lbox vscr OFF',
+ 'command'=>proc{lbox.vscroll(false)}).pack(:side=>:bottom,
+ :fill=>:x)
+ TkButton.new(fb, 'text'=>'lbox vscr ON',
+ 'command'=>proc{lbox.vscroll(true)}).pack(:side=>:bottom,
+ :fill=>:x)
+
+ ############################################
+
Tk.mainloop
end
diff --git a/ext/tk/stubs.c b/ext/tk/stubs.c
index e7ef79dda8..dd475c3455 100644
--- a/ext/tk/stubs.c
+++ b/ext/tk/stubs.c
@@ -6,11 +6,36 @@
#include "ruby.h"
#include "stubs.h"
+
+#if !defined(RSTRING_PTR)
+#define RSTRING_PTR(s) (RSTRING(s)->ptr)
+#define RSTRING_LEN(s) (RSTRING(s)->len)
+#endif
+
#include <tcl.h>
#include <tk.h>
/*------------------------------*/
+#ifdef __MACOS__
+# include <tkMac.h>
+# include <Quickdraw.h>
+
+static int call_macinit = 0;
+
+static void
+_macinit()
+{
+ if (!call_macinit) {
+ tcl_macQdPtr = &qd; /* setup QuickDraw globals */
+ Tcl_MacSetEventProc(TkMacConvertEvent); /* setup event handler */
+ call_macinit = 1;
+ }
+}
+#endif
+
+/*------------------------------*/
+
static int nativethread_checked = 0;
static void
@@ -21,7 +46,7 @@ _nativethread_consistency_check(ip)
return;
}
- /* If the variable "tcl_platform(threaded)" exists,
+ /* If the variable "tcl_platform(threaded)" exists,
then the Tcl interpreter was compiled with threads enabled. */
if (Tcl_GetVar2(ip, "tcl_platform", "threaded", TCL_GLOBAL_ONLY) != (char*)NULL) {
#ifdef HAVE_NATIVETHREAD
@@ -47,7 +72,11 @@ _nativethread_consistency_check(ip)
#if defined USE_TCL_STUBS && defined USE_TK_STUBS
#if defined _WIN32 || defined __CYGWIN__
-# include "util.h"
+# ifdef HAVE_RUBY_RUBY_H
+# include "ruby/util.h"
+# else
+# include "util.h"
+# endif
# include <windows.h>
typedef HINSTANCE DL_HANDLE;
# define DL_OPEN LoadLibrary
@@ -67,6 +96,10 @@ _nativethread_consistency_check(ip)
# define TK_INDEX 7
# define TCL_NAME "libtcl8.9%s"
# define TK_NAME "libtk8.9%s"
+# if defined(__APPLE__) && defined(__MACH__) /* Mac OS X */
+# undef DLEXT
+# define DLEXT ".dylib"
+# endif
#endif
static DL_HANDLE tcl_dll = (DL_HANDLE)0;
@@ -170,13 +203,13 @@ ruby_open_tcltk_dll(appname)
return( ruby_open_tcl_dll(appname) || ruby_open_tk_dll() );
}
-int
+int
tcl_stubs_init_p()
{
return(tclStubsPtr != (TclStubs*)NULL);
}
-int
+int
tk_stubs_init_p()
{
return(tkStubsPtr != (TkStubs*)NULL);
@@ -221,14 +254,14 @@ ruby_tcl_create_ip_and_stubs_init(st)
}
}
- p_Tcl_CreateInterp
+ p_Tcl_CreateInterp
= (Tcl_Interp *(*)())DL_SYM(tcl_dll, "Tcl_CreateInterp");
if (!p_Tcl_CreateInterp) {
if (st) *st = NO_CreateInterp;
return (Tcl_Interp*)NULL;
}
- p_Tcl_DeleteInterp
+ p_Tcl_DeleteInterp
= (Tcl_Interp *(*)())DL_SYM(tcl_dll, "Tcl_DeleteInterp");
if (!p_Tcl_DeleteInterp) {
if (st) *st = NO_DeleteInterp;
@@ -296,11 +329,31 @@ ruby_tk_stubs_init(tcl_ip)
if (!p_Tk_Init)
return NO_Tk_Init;
+#if defined USE_TK_STUBS && defined TK_FRAMEWORK && defined(__APPLE__) && defined(__MACH__)
+ /*
+ FIX ME : dirty hack for Mac OS X frameworks.
+ With stubs, fails to find Resource/Script directory of Tk.framework.
+ So, teach it to a Tcl interpreter by an environment variable.
+ e.g. when $tcl_library ==
+ /Library/Frameworks/Tcl.framwwork/8.5/Resources/Scripts
+ ==> /Library/Frameworks/Tk.framwwork/8.5/Resources/Scripts
+ */
+ if (Tcl_Eval(tcl_ip,
+ "if {[array get env TK_LIBRARY] == {}} { set env(TK_LIBRARY) [regsub -all -nocase {(t)cl} $tcl_library {\\1k}] }"
+ ) != TCL_OK) {
+ return FAIL_Tk_Init;
+ }
+#endif
+
if ((*p_Tk_Init)(tcl_ip) == TCL_ERROR)
return FAIL_Tk_Init;
if (!Tk_InitStubs(tcl_ip, (char *)"8.1", 0))
return FAIL_Tk_InitStubs;
+
+#ifdef __MACOS__
+ _macinit();
+#endif
}
return TCLTK_STUBS_OK;
@@ -336,6 +389,10 @@ ruby_tk_stubs_safeinit(tcl_ip)
if (!Tk_InitStubs(tcl_ip, (char *)"8.1", 0))
return FAIL_Tk_InitStubs;
+
+#ifdef __MACOS__
+ _macinit();
+#endif
}
return TCLTK_STUBS_OK;
@@ -411,7 +468,7 @@ ruby_open_tcl_dll(appname)
return TCLTK_STUBS_OK;
}
-int
+int
ruby_open_tk_dll()
{
if (!open_tcl_dll) {
@@ -422,7 +479,7 @@ ruby_open_tk_dll()
return TCLTK_STUBS_OK;
}
-int
+int
#ifdef HAVE_PROTOTYPES
ruby_open_tcltk_dll(char *appname)
#else
@@ -433,13 +490,13 @@ ruby_open_tcltk_dll(appname)
return( ruby_open_tcl_dll(appname) || ruby_open_tk_dll() );
}
-int
+int
tcl_stubs_init_p()
{
return 1;
}
-int
+int
tk_stubs_init_p()
{
return call_tk_stubs_init;
@@ -472,13 +529,13 @@ ruby_tcl_create_ip_and_stubs_init(st)
return tcl_ip;
}
-int
+int
ruby_tcl_stubs_init()
{
return TCLTK_STUBS_OK;
}
-int
+int
#ifdef HAVE_PROTOTYPES
ruby_tk_stubs_init(Tcl_Interp *tcl_ip)
#else
@@ -490,6 +547,9 @@ ruby_tk_stubs_init(tcl_ip)
return FAIL_Tk_Init;
if (!call_tk_stubs_init) {
+#ifdef __MACOS__
+ _macinit();
+#endif
call_tk_stubs_init = 1;
}
@@ -509,6 +569,9 @@ ruby_tk_stubs_safeinit(tcl_ip)
return FAIL_Tk_Init;
if (!call_tk_stubs_init) {
+#ifdef __MACOS__
+ _macinit();
+#endif
call_tk_stubs_init = 1;
}
@@ -520,7 +583,7 @@ ruby_tk_stubs_safeinit(tcl_ip)
#endif
}
-int
+int
ruby_tcltk_stubs()
{
/* Tcl_FindExecutable(RSTRING_PTR(rb_argv0)); */
diff --git a/ext/tk/tcltklib.c b/ext/tk/tcltklib.c
index fe199ef483..312b0c05eb 100644
--- a/ext/tk/tcltklib.c
+++ b/ext/tk/tcltklib.c
@@ -4,15 +4,47 @@
* Oct. 24, 1997 Y. Matsumoto
*/
-#define TCLTKLIB_RELEASE_DATE "2008-12-22"
+#define TCLTKLIB_RELEASE_DATE "2010-08-25"
+/* #define CREATE_RUBYTK_KIT */
#include "ruby.h"
#ifdef HAVE_RUBY_ENCODING_H
#include "ruby/encoding.h"
#endif
-#ifndef HAVE_RUBY_RUBY_H
-#include "version.h"
+#ifndef RUBY_VERSION
+#define RUBY_VERSION "(unknown version)"
+#endif
+#ifndef RUBY_RELEASE_DATE
+#define RUBY_RELEASE_DATE "unknown release-date"
+#endif
+
+#ifdef RUBY_VM
+static VALUE rb_thread_critical; /* dummy */
+int rb_thread_check_trap_pending();
+#else
+/* use rb_thread_critical on Ruby 1.8.x */
+#include "rubysig.h"
+#endif
+
+#if !defined(RSTRING_PTR)
+#define RSTRING_PTR(s) (RSTRING(s)->ptr)
+#define RSTRING_LEN(s) (RSTRING(s)->len)
+#endif
+#if !defined(RARRAY_PTR)
+#define RARRAY_PTR(s) (RARRAY(s)->ptr)
+#define RARRAY_LEN(s) (RARRAY(s)->len)
+#endif
+
+#ifdef OBJ_UNTRUST
+#define RbTk_OBJ_UNTRUST(x) do {OBJ_TAINT(x); OBJ_UNTRUST(x);} while (0)
+#else
+#define RbTk_OBJ_UNTRUST(x) OBJ_TAINT(x)
+#endif
+
+#if defined(HAVE_RB_PROC_NEW) && !defined(RUBY_VM)
+/* Ruby 1.8 :: rb_proc_new() was hidden from intern.h at 2008/04/22 */
+extern VALUE rb_proc_new _((VALUE (*)(ANYARGS/* VALUE yieldarg[, VALUE procarg] */), VALUE));
#endif
#undef EXTERN /* avoid conflict with tcl.h of tcl8.2 or before */
@@ -25,6 +57,20 @@
#define va_init_list(a,b) va_start(a)
#endif
#include <string.h>
+
+#if !defined HAVE_VSNPRINTF && !defined vsnprintf
+# ifdef WIN32
+ /* In Win32, vsnprintf is available as the "non-ANSI" _vsnprintf. */
+# define vsnprintf _vsnprintf
+# else
+# ifdef HAVE_RUBY_RUBY_H
+# include "ruby/missing.h"
+# else
+# include "missing.h"
+# endif
+# endif
+#endif
+
#include <tcl.h>
#include <tk.h>
@@ -34,11 +80,17 @@
#else
#define RUBY_USE_NATIVE_THREAD 1
#endif
+
#ifndef HAVE_RB_ERRINFO
#define rb_errinfo() (ruby_errinfo+0) /* cannot be l-value */
+#else
+VALUE rb_errinfo(void);
#endif
#ifndef HAVE_RB_SAFE_LEVEL
-#define rb_safe_level() (ruby_safe_level+0) /* cannot be l-value */
+#define rb_safe_level() (ruby_safe_level+0)
+#endif
+#ifndef HAVE_RB_SOURCEFILE
+#define rb_sourcefile() (ruby_sourcefile+0)
#endif
#include "stubs.h"
@@ -49,9 +101,6 @@
#define TCL_FINAL_RELEASE 2 /* "final" */
#endif
-static VALUE rb_thread_critical; /* dummy */
-int rb_thread_check_trap_pending();
-
static struct {
int major;
int minor;
@@ -64,9 +113,9 @@ set_tcltk_version()
{
if (tcltk_version.major) return;
- Tcl_GetVersion(&(tcltk_version.major),
- &(tcltk_version.minor),
- &(tcltk_version.patchlevel),
+ Tcl_GetVersion(&(tcltk_version.major),
+ &(tcltk_version.minor),
+ &(tcltk_version.patchlevel),
&(tcltk_version.type));
}
@@ -91,6 +140,14 @@ set_tcltk_version()
# endif
#endif
+#ifndef CONST86
+# if TCL_MAJOR_VERSION == 8 && TCL_MINOR_VERSION <= 5 /* Tcl8.0.x -- 8.5.x */
+# define CONST86
+# else
+# define CONST86 CONST84
+# endif
+#endif
+
/* copied from eval.c */
#define TAG_RETURN 0x1
#define TAG_BREAK 0x2
@@ -191,10 +248,10 @@ static VALUE callq_safelevel_handler _((VALUE, VALUE));
/* Tcl's object type */
#if TCL_MAJOR_VERSION >= 8
static const char Tcl_ObjTypeName_ByteArray[] = "bytearray";
-static Tcl_ObjType *Tcl_ObjType_ByteArray;
+static CONST86 Tcl_ObjType *Tcl_ObjType_ByteArray;
static const char Tcl_ObjTypeName_String[] = "string";
-static Tcl_ObjType *Tcl_ObjType_String;
+static CONST86 Tcl_ObjType *Tcl_ObjType_String;
#if TCL_MAJOR_VERSION > 8 || (TCL_MAJOR_VERSION == 8 && TCL_MINOR_VERSION >= 1)
#define IS_TCL_BYTEARRAY(obj) ((obj)->typePtr == Tcl_ObjType_ByteArray)
@@ -375,7 +432,7 @@ struct call_queue {
VALUE thread;
};
-void
+void
invoke_queue_mark(struct invoke_queue *q)
{
rb_gc_mark(q->interp);
@@ -383,7 +440,7 @@ invoke_queue_mark(struct invoke_queue *q)
rb_gc_mark(q->thread);
}
-void
+void
eval_queue_mark(struct eval_queue *q)
{
rb_gc_mark(q->interp);
@@ -391,7 +448,7 @@ eval_queue_mark(struct eval_queue *q)
rb_gc_mark(q->thread);
}
-void
+void
call_queue_mark(struct call_queue *q)
{
int i;
@@ -407,6 +464,7 @@ call_queue_mark(struct call_queue *q)
static VALUE eventloop_thread;
+static Tcl_Interp *eventloop_interp;
#ifdef RUBY_USE_NATIVE_THREAD
Tcl_ThreadId tk_eventloop_thread_id; /* native thread ID of Tcl interpreter */
#endif
@@ -417,7 +475,7 @@ static VALUE watchdog_thread;
Tcl_Interp *current_interp;
-/* thread control strategy */
+/* thread control strategy */
/* multi-tk works with the following settings only ???
: CONTROL_BY_STATUS_OF_RB_THREAD_WAITING_FOR_VALUE 1
: USE_TOGGLE_WINDOW_MODE_FOR_IDLE 0
@@ -437,17 +495,17 @@ Tcl_Interp *current_interp;
static int have_rb_thread_waiting_for_value = 0;
#endif
-/*
- * 'event_loop_max' is a maximum events which the eventloop processes in one
- * term of thread scheduling. 'no_event_tick' is the count-up value when
- * there are no event for processing.
- * 'timer_tick' is a limit of one term of thread scheduling.
+/*
+ * 'event_loop_max' is a maximum events which the eventloop processes in one
+ * term of thread scheduling. 'no_event_tick' is the count-up value when
+ * there are no event for processing.
+ * 'timer_tick' is a limit of one term of thread scheduling.
* If 'timer_tick' == 0, then not use the timer for thread scheduling.
*/
#ifdef RUBY_USE_NATIVE_THREAD
#define DEFAULT_EVENT_LOOP_MAX 800/*counts*/
#define DEFAULT_NO_EVENT_TICK 10/*counts*/
-#define DEFAULT_NO_EVENT_WAIT 1/*milliseconds ( 1 -- 999 ) */
+#define DEFAULT_NO_EVENT_WAIT 5/*milliseconds ( 1 -- 999 ) */
#define WATCHDOG_INTERVAL 10/*milliseconds ( 1 -- 999 ) */
#define DEFAULT_TIMER_TICK 0/*milliseconds ( 0 -- 999 ) */
#define NO_THREAD_INTERRUPT_TIME 100/*milliseconds ( 1 -- 999 ) */
@@ -460,6 +518,8 @@ static int have_rb_thread_waiting_for_value = 0;
#define NO_THREAD_INTERRUPT_TIME 100/*milliseconds ( 1 -- 999 ) */
#endif
+#define EVENT_HANDLER_TIMEOUT 100/*milliseconds*/
+
static int event_loop_max = DEFAULT_EVENT_LOOP_MAX;
static int no_event_tick = DEFAULT_NO_EVENT_TICK;
static int no_event_wait = DEFAULT_NO_EVENT_WAIT;
@@ -489,7 +549,6 @@ struct cmd_body_arg {
VALUE args;
};
-
/*----------------------------*/
/* use Tcl internal functions */
/*----------------------------*/
@@ -798,6 +857,420 @@ create_ip_exc(interp, exc, fmt, va_alist)
}
+/*####################################################################*/
+#if defined CREATE_RUBYTK_KIT || defined CREATE_RUBYKIT
+
+/*--------------------------------------------------------*/
+
+#if 10 * TCL_MAJOR_VERSION + TCL_MINOR_VERSION < 84
+#error Ruby/Tk-Kit requires Tcl/Tk8.4 or later.
+#endif
+
+/*--------------------------------------------------------*/
+
+/* Many part of code to support Ruby/Tk-Kit is quoted from Tclkit. */
+/* But, never ask Tclkit community about Ruby/Tk-Kit. */
+/* Please ask Ruby (Ruby/Tk) community (e.g. "ruby-dev" mailing list). */
+/*
+----<< license terms of TclKit (from kitgen's "README" file) >>---------------
+The Tclkit-specific sources are license free, they just have a copyright. Hold
+the author(s) harmless and any lawful use is permitted.
+
+This does *not* apply to any of the sources of the other major Open Source
+Software used in Tclkit, which each have very liberal BSD/MIT-like licenses:
+
+ * Tcl/Tk, TclVFS, Thread, Vlerq, Zlib
+------------------------------------------------------------------------------
+ */
+/* Tcl/Tk stubs may work, but probably it is meaningless. */
+#if defined USE_TCL_STUBS || defined USE_TK_STUBS
+# error Not support Tcl/Tk stubs with Ruby/Tk-Kit or Rubykit.
+#endif
+
+#ifndef KIT_INCLUDES_ZLIB
+#if 10 * TCL_MAJOR_VERSION + TCL_MINOR_VERSION < 86
+#define KIT_INCLUDES_ZLIB 1
+#else
+#define KIT_INCLUDES_ZLIB 0
+#endif
+#endif
+
+#ifdef _WIN32
+#define WIN32_LEAN_AND_MEAN
+#include <windows.h>
+#undef WIN32_LEAN_AND_MEAN
+#endif
+
+#if 10 * TCL_MAJOR_VERSION + TCL_MINOR_VERSION < 86
+EXTERN Tcl_Obj* TclGetStartupScriptPath();
+EXTERN void TclSetStartupScriptPath _((Tcl_Obj*));
+#define Tcl_GetStartupScript(encPtr) TclGetStartupScriptPath()
+#define Tcl_SetStartupScript(path,enc) TclSetStartupScriptPath(path)
+#endif
+#if !defined(TclSetPreInitScript) && !defined(TclSetPreInitScript_TCL_DECLARED)
+EXTERN char* TclSetPreInitScript _((char *));
+#endif
+
+#ifndef KIT_INCLUDES_TK
+# define KIT_INCLUDES_TK 1
+#endif
+/* #define KIT_INCLUDES_ITCL 1 */
+/* #define KIT_INCLUDES_THREAD 1 */
+
+Tcl_AppInitProc Vfs_Init, Rechan_Init;
+#if 10 * TCL_MAJOR_VERSION + TCL_MINOR_VERSION < 85
+Tcl_AppInitProc Pwb_Init;
+#endif
+
+#ifdef KIT_LITE
+Tcl_AppInitProc Vlerq_Init, Vlerq_SafeInit;
+#else
+Tcl_AppInitProc Mk4tcl_Init;
+#endif
+
+#if defined TCL_THREADS && defined KIT_INCLUDES_THREAD
+Tcl_AppInitProc Thread_Init;
+#endif
+
+#if KIT_INCLUDES_ZLIB
+Tcl_AppInitProc Zlib_Init;
+#endif
+
+#ifdef KIT_INCLUDES_ITCL
+Tcl_AppInitProc Itcl_Init;
+#endif
+
+#ifdef _WIN32
+Tcl_AppInitProc Dde_Init, Dde_SafeInit, Registry_Init;
+#endif
+
+/*--------------------------------------------------------*/
+
+#define RUBYTK_KITPATH_CONST_NAME "RUBYTK_KITPATH"
+
+static char *rubytk_kitpath = NULL;
+
+static char rubytkkit_preInitCmd[] =
+"proc tclKitPreInit {} {\n"
+ "rename tclKitPreInit {}\n"
+ "load {} rubytk_kitpath\n"
+#if KIT_INCLUDES_ZLIB
+ "catch {load {} zlib}\n"
+#endif
+#ifdef KIT_LITE
+ "load {} vlerq\n"
+ "namespace eval ::vlerq {}\n"
+ "if {[catch { vlerq open $::tcl::kitpath } ::vlerq::starkit_root]} {\n"
+ "set n -1\n"
+ "} else {\n"
+ "set files [vlerq get $::vlerq::starkit_root 0 dirs 0 files]\n"
+ "set n [lsearch [vlerq get $files * name] boot.tcl]\n"
+ "}\n"
+ "if {$n >= 0} {\n"
+ "array set a [vlerq get $files $n]\n"
+#else
+ "load {} Mk4tcl\n"
+#if defined KIT_VFS_WRITABLE && !defined CREATE_RUBYKIT
+ /* running command cannot open itself for writing */
+ "mk::file open exe $::tcl::kitpath\n"
+#else
+ "mk::file open exe $::tcl::kitpath -readonly\n"
+#endif
+ "set n [mk::select exe.dirs!0.files name boot.tcl]\n"
+ "if {[llength $n] == 1} {\n"
+ "array set a [mk::get exe.dirs!0.files!$n]\n"
+#endif
+ "if {![info exists a(contents)]} { error {no boot.tcl file} }\n"
+ "if {$a(size) != [string length $a(contents)]} {\n"
+ "set a(contents) [zlib decompress $a(contents)]\n"
+ "}\n"
+ "if {$a(contents) eq \"\"} { error {empty boot.tcl} }\n"
+ "uplevel #0 $a(contents)\n"
+#if 0
+ "} elseif {[lindex $::argv 0] eq \"-init-\"} {\n"
+ "uplevel #0 { source [lindex $::argv 1] }\n"
+ "exit\n"
+#endif
+ "} else {\n"
+ /* When cannot find VFS data, try to use a real directory */
+ "set vfsdir \"[file rootname $::tcl::kitpath].vfs\"\n"
+ "if {[file isdirectory $vfsdir]} {\n"
+ "set ::tcl_library [file join $vfsdir lib tcl$::tcl_version]\n"
+ "set ::tcl_libPath [list $::tcl_library [file join $vfsdir lib]]\n"
+ "catch {uplevel #0 [list source [file join $vfsdir config.tcl]]}\n"
+ "uplevel #0 [list source [file join $::tcl_library init.tcl]]\n"
+ "set ::auto_path $::tcl_libPath\n"
+ "} else {\n"
+ "error \"\n $::tcl::kitpath has no VFS data to start up\"\n"
+ "}\n"
+ "}\n"
+"}\n"
+"tclKitPreInit"
+;
+
+#if 0
+/* Not use this script.
+ It's a memo to support an initScript for Tcl interpreters in the future. */
+static const char initScript[] =
+"if {[file isfile [file join $::tcl::kitpath main.tcl]]} {\n"
+ "if {[info commands console] != {}} { console hide }\n"
+ "set tcl_interactive 0\n"
+ "incr argc\n"
+ "set argv [linsert $argv 0 $argv0]\n"
+ "set argv0 [file join $::tcl::kitpath main.tcl]\n"
+"} else continue\n"
+;
+#endif
+
+/*--------------------------------------------------------*/
+
+static char*
+set_rubytk_kitpath(const char *kitpath)
+{
+ if (kitpath) {
+ int len = (int)strlen(kitpath);
+ if (rubytk_kitpath) {
+ ckfree(rubytk_kitpath);
+ }
+
+ rubytk_kitpath = (char *)ckalloc(len + 1);
+ memcpy(rubytk_kitpath, kitpath, len);
+ rubytk_kitpath[len] = '\0';
+ }
+ return rubytk_kitpath;
+}
+
+/*--------------------------------------------------------*/
+
+#ifdef WIN32
+#define DEV_NULL "NUL"
+#else
+#define DEV_NULL "/dev/null"
+#endif
+
+static void
+check_tclkit_std_channels()
+{
+ Tcl_Channel chan;
+
+ /*
+ * We need to verify if we have the standard channels and create them if
+ * not. Otherwise internals channels may get used as standard channels
+ * (like for encodings) and panic.
+ */
+ chan = Tcl_GetStdChannel(TCL_STDIN);
+ if (chan == NULL) {
+ chan = Tcl_OpenFileChannel(NULL, DEV_NULL, "r", 0);
+ if (chan != NULL) {
+ Tcl_SetChannelOption(NULL, chan, "-encoding", "utf-8");
+ }
+ Tcl_SetStdChannel(chan, TCL_STDIN);
+ }
+ chan = Tcl_GetStdChannel(TCL_STDOUT);
+ if (chan == NULL) {
+ chan = Tcl_OpenFileChannel(NULL, DEV_NULL, "w", 0);
+ if (chan != NULL) {
+ Tcl_SetChannelOption(NULL, chan, "-encoding", "utf-8");
+ }
+ Tcl_SetStdChannel(chan, TCL_STDOUT);
+ }
+ chan = Tcl_GetStdChannel(TCL_STDERR);
+ if (chan == NULL) {
+ chan = Tcl_OpenFileChannel(NULL, DEV_NULL, "w", 0);
+ if (chan != NULL) {
+ Tcl_SetChannelOption(NULL, chan, "-encoding", "utf-8");
+ }
+ Tcl_SetStdChannel(chan, TCL_STDERR);
+ }
+}
+
+/*--------------------------------------------------------*/
+
+static int
+rubytk_kitpathObjCmd(ClientData dummy, Tcl_Interp *interp, int objc, Tcl_Obj *const objv[])
+{
+ const char* str;
+ if (objc == 2) {
+ set_rubytk_kitpath(Tcl_GetString(objv[1]));
+ } else if (objc > 2) {
+ Tcl_WrongNumArgs(interp, 1, objv, "?path?");
+ }
+ str = rubytk_kitpath ? rubytk_kitpath : Tcl_GetNameOfExecutable();
+ Tcl_SetObjResult(interp, Tcl_NewStringObj(str, -1));
+ return TCL_OK;
+}
+
+/*
+ * Public entry point for ::tcl::kitpath.
+ * Creates both link variable name and Tcl command ::tcl::kitpath.
+ */
+static int
+rubytk_kitpath_init(Tcl_Interp *interp)
+{
+ Tcl_CreateObjCommand(interp, "::tcl::kitpath", rubytk_kitpathObjCmd, 0, 0);
+ if (Tcl_LinkVar(interp, "::tcl::kitpath", (char *) &rubytk_kitpath,
+ TCL_LINK_STRING | TCL_LINK_READ_ONLY) != TCL_OK) {
+ Tcl_ResetResult(interp);
+ }
+
+ Tcl_CreateObjCommand(interp, "::tcl::rubytk_kitpath", rubytk_kitpathObjCmd, 0, 0);
+ if (Tcl_LinkVar(interp, "::tcl::rubytk_kitpath", (char *) &rubytk_kitpath,
+ TCL_LINK_STRING | TCL_LINK_READ_ONLY) != TCL_OK) {
+ Tcl_ResetResult(interp);
+ }
+
+ if (rubytk_kitpath == NULL) {
+ /*
+ * XXX: We may want to avoid doing this to allow tcl::kitpath calls
+ * XXX: to obtain changes in nameofexe, if they occur.
+ */
+ set_rubytk_kitpath(Tcl_GetNameOfExecutable());
+ }
+
+ return Tcl_PkgProvide(interp, "rubytk_kitpath", "1.0");
+}
+
+/*--------------------------------------------------------*/
+
+static void
+init_static_tcltk_packages()
+{
+ /*
+ * Ensure that std channels exist (creating them if necessary)
+ */
+ check_tclkit_std_channels();
+
+#ifdef KIT_INCLUDES_ITCL
+ Tcl_StaticPackage(0, "Itcl", Itcl_Init, NULL);
+#endif
+#ifdef KIT_LITE
+ Tcl_StaticPackage(0, "Vlerq", Vlerq_Init, Vlerq_SafeInit);
+#else
+ Tcl_StaticPackage(0, "Mk4tcl", Mk4tcl_Init, NULL);
+#endif
+#if 10 * TCL_MAJOR_VERSION + TCL_MINOR_VERSION < 85
+ Tcl_StaticPackage(0, "pwb", Pwb_Init, NULL);
+#endif
+ Tcl_StaticPackage(0, "rubytk_kitpath", rubytk_kitpath_init, NULL);
+ Tcl_StaticPackage(0, "rechan", Rechan_Init, NULL);
+ Tcl_StaticPackage(0, "vfs", Vfs_Init, NULL);
+#if KIT_INCLUDES_ZLIB
+ Tcl_StaticPackage(0, "zlib", Zlib_Init, NULL);
+#endif
+#if defined TCL_THREADS && defined KIT_INCLUDES_THREAD
+ Tcl_StaticPackage(0, "Thread", Thread_Init, Thread_SafeInit);
+#endif
+#ifdef _WIN32
+#if 10 * TCL_MAJOR_VERSION + TCL_MINOR_VERSION > 84
+ Tcl_StaticPackage(0, "dde", Dde_Init, Dde_SafeInit);
+#else
+ Tcl_StaticPackage(0, "dde", Dde_Init, NULL);
+#endif
+ Tcl_StaticPackage(0, "registry", Registry_Init, NULL);
+#endif
+#ifdef KIT_INCLUDES_TK
+ Tcl_StaticPackage(0, "Tk", Tk_Init, Tk_SafeInit);
+#endif
+}
+
+/*--------------------------------------------------------*/
+
+static int
+call_tclkit_init_script(Tcl_Interp *interp)
+{
+#if 0
+ /* Currently, do nothing in this function.
+ It's a memo (quoted from kitInit.c of Tclkit)
+ to support an initScript for Tcl interpreters in the future. */
+ if (Tcl_EvalEx(interp, initScript, -1, TCL_EVAL_GLOBAL) == TCL_OK) {
+ const char *encoding = NULL;
+ Tcl_Obj* path = Tcl_GetStartupScript(&encoding);
+ Tcl_SetStartupScript(Tcl_GetObjResult(interp), encoding);
+ if (path == NULL) {
+ Tcl_Eval(interp, "incr argc -1; set argv [lrange $argv 1 end]");
+ }
+ }
+#endif
+
+ return 1;
+}
+
+/*--------------------------------------------------------*/
+
+#ifdef __WIN32__
+/* #include <tkWinInt.h> *//* conflict definition of struct timezone */
+/* #include <tkIntPlatDecls.h> */
+/* #include <windows.h> */
+EXTERN void TkWinSetHINSTANCE(HINSTANCE hInstance);
+void rbtk_win32_SetHINSTANCE(const char *module_name)
+{
+ /* TCHAR szBuf[256]; */
+ HINSTANCE hInst;
+
+ /* hInst = GetModuleHandle(NULL); */
+ /* hInst = GetModuleHandle("tcltklib.so"); */
+ hInst = GetModuleHandle(module_name);
+ TkWinSetHINSTANCE(hInst);
+
+ /* GetModuleFileName(hInst, szBuf, sizeof(szBuf) / sizeof(TCHAR)); */
+ /* MessageBox(NULL, szBuf, TEXT("OK"), MB_OK); */
+}
+#endif
+
+/*--------------------------------------------------------*/
+
+static void
+setup_rubytkkit()
+{
+ init_static_tcltk_packages();
+
+ {
+ ID const_id;
+ const_id = rb_intern(RUBYTK_KITPATH_CONST_NAME);
+
+ if (rb_const_defined(rb_cObject, const_id)) {
+ volatile VALUE pathobj;
+ pathobj = rb_const_get(rb_cObject, const_id);
+
+ if (rb_obj_is_kind_of(pathobj, rb_cString)) {
+#ifdef HAVE_RUBY_ENCODING_H
+ pathobj = rb_str_export_to_enc(pathobj, rb_utf8_encoding());
+#endif
+ set_rubytk_kitpath(RSTRING_PTR(pathobj));
+ }
+ }
+ }
+
+#ifdef CREATE_RUBYTK_KIT
+ if (rubytk_kitpath == NULL) {
+#ifdef __WIN32__
+ /* rbtk_win32_SetHINSTANCE("tcltklib.so"); */
+ {
+ volatile VALUE basename;
+ basename = rb_funcall(rb_cFile, rb_intern("basename"), 1,
+ rb_str_new2(rb_sourcefile()));
+ rbtk_win32_SetHINSTANCE(RSTRING_PTR(basename));
+ }
+#endif
+ set_rubytk_kitpath(rb_sourcefile());
+ }
+#endif
+
+ if (rubytk_kitpath == NULL) {
+ set_rubytk_kitpath(Tcl_GetNameOfExecutable());
+ }
+
+ TclSetPreInitScript(rubytkkit_preInitCmd);
+}
+
+/*--------------------------------------------------------*/
+
+#endif /* defined CREATE_RUBYTK_KIT || defined CREATE_RUBYKIT */
+/*####################################################################*/
+
+
+/**********************************************************************/
+
/* stub status */
static void
tcl_stubs_check()
@@ -842,18 +1315,18 @@ tcltkip_init_tk(interp)
case TCLTK_STUBS_OK:
break;
case NO_Tk_Init:
- return rb_exc_new2(rb_eLoadError,
+ return rb_exc_new2(rb_eLoadError,
"tcltklib: can't find Tk_SafeInit()");
case FAIL_Tk_Init:
- return create_ip_exc(interp, rb_eRuntimeError,
- "tcltklib: fail to Tk_SafeInit(). %s",
+ return create_ip_exc(interp, rb_eRuntimeError,
+ "tcltklib: fail to Tk_SafeInit(). %s",
Tcl_GetStringResult(ptr->ip));
case FAIL_Tk_InitStubs:
- return create_ip_exc(interp, rb_eRuntimeError,
- "tcltklib: fail to Tk_InitStubs(). %s",
+ return create_ip_exc(interp, rb_eRuntimeError,
+ "tcltklib: fail to Tk_InitStubs(). %s",
Tcl_GetStringResult(ptr->ip));
default:
- return create_ip_exc(interp, rb_eRuntimeError,
+ return create_ip_exc(interp, rb_eRuntimeError,
"tcltklib: unknown error(%d) on ruby_tk_stubs_safeinit", st);
}
} else {
@@ -863,18 +1336,18 @@ tcltkip_init_tk(interp)
case TCLTK_STUBS_OK:
break;
case NO_Tk_Init:
- return rb_exc_new2(rb_eLoadError,
+ return rb_exc_new2(rb_eLoadError,
"tcltklib: can't find Tk_Init()");
case FAIL_Tk_Init:
- return create_ip_exc(interp, rb_eRuntimeError,
- "tcltklib: fail to Tk_Init(). %s",
+ return create_ip_exc(interp, rb_eRuntimeError,
+ "tcltklib: fail to Tk_Init(). %s",
Tcl_GetStringResult(ptr->ip));
case FAIL_Tk_InitStubs:
- return create_ip_exc(interp, rb_eRuntimeError,
- "tcltklib: fail to Tk_InitStubs(). %s",
+ return create_ip_exc(interp, rb_eRuntimeError,
+ "tcltklib: fail to Tk_InitStubs(). %s",
Tcl_GetStringResult(ptr->ip));
default:
- return create_ip_exc(interp, rb_eRuntimeError,
+ return create_ip_exc(interp, rb_eRuntimeError,
"tcltklib: unknown error(%d) on ruby_tk_stubs_init", st);
}
}
@@ -907,7 +1380,7 @@ pending_exception_check0()
if (!NIL_P(exc) && rb_obj_is_kind_of(exc, rb_eException)) {
DUMP1("find a pending exception");
- if (rbtk_eventloop_depth > 0
+ if (rbtk_eventloop_depth > 0
|| rbtk_internal_eventloop_handler > 0
) {
return 1; /* pending */
@@ -975,7 +1448,7 @@ pending_exception_check1(thr_crit_bup, ptr)
/* call original 'exit' command */
-static void
+static void
call_original_exit(ptr, state)
struct tcltkip *ptr;
int state;
@@ -1020,13 +1493,13 @@ call_original_exit(ptr, state)
argv[1] = state_obj;
argv[2] = (Tcl_Obj *)NULL;
- ptr->return_value
+ ptr->return_value
= (*(info->objProc))(info->objClientData, ptr->ip, 2, argv);
Tcl_DecrRefCount(cmd_obj);
#if USE_RUBY_ALLOC
- free(argv);
+ xfree(argv);
#else /* not USE_RUBY_ALLOC */
#if 0 /* use Tcl_EventuallyFree */
Tcl_EventuallyFree((ClientData)argv, TCL_DYNAMIC); /* XXXXXXXX */
@@ -1053,7 +1526,7 @@ call_original_exit(ptr, state)
Tcl_Preserve((ClientData)argv); /* XXXXXXXX */
#endif
#endif
- argv[0] = "exit";
+ argv[0] = (char *)"exit";
/* argv[1] = Tcl_GetString(state_obj); */
argv[1] = Tcl_GetStringFromObj(state_obj, (int*)NULL);
argv[2] = (char *)NULL;
@@ -1061,7 +1534,7 @@ call_original_exit(ptr, state)
ptr->return_value = (*(info->proc))(info->clientData, ptr->ip, 2, argv);
#if USE_RUBY_ALLOC
- free(argv);
+ xfree(argv);
#else /* not USE_RUBY_ALLOC */
#if 0 /* use Tcl_EventuallyFree */
Tcl_EventuallyFree((ClientData)argv, TCL_DYNAMIC); /* XXXXXXXX */
@@ -1096,11 +1569,11 @@ call_original_exit(ptr, state)
argv[1] = RSTRING_PTR(rb_fix2str(INT2NUM(state), 10));
argv[2] = (char *)NULL;
- ptr->return_value = (*(info->proc))(info->clientData, ptr->ip,
+ ptr->return_value = (*(info->proc))(info->clientData, ptr->ip,
2, argv);
#if USE_RUBY_ALLOC
- free(argv);
+ xfree(argv);
#else /* not USE_RUBY_ALLOC */
#if 0 /* use Tcl_EventuallyFree */
Tcl_EventuallyFree((ClientData)argv, TCL_DYNAMIC); /* XXXXXXXX */
@@ -1145,7 +1618,7 @@ _timer_for_tcl(clientData)
run_timer_flag = 1;
if (timer_tick > 0) {
- timer_token = Tcl_CreateTimerHandler(timer_tick, _timer_for_tcl,
+ timer_token = Tcl_CreateTimerHandler(timer_tick, _timer_for_tcl,
(ClientData)0);
} else {
timer_token = (Tcl_TimerToken)NULL;
@@ -1215,7 +1688,7 @@ set_eventloop_tick(self, tick)
rb_secure(4);
if (ttick < 0) {
- rb_raise(rb_eArgError,
+ rb_raise(rb_eArgError,
"timer-tick parameter must be 0 or positive number");
}
@@ -1228,7 +1701,7 @@ set_eventloop_tick(self, tick)
timer_tick = req_timer_tick = ttick;
if (timer_tick > 0) {
/* start timer callback */
- timer_token = Tcl_CreateTimerHandler(timer_tick, _timer_for_tcl,
+ timer_token = Tcl_CreateTimerHandler(timer_tick, _timer_for_tcl,
(ClientData)0);
} else {
timer_token = (Tcl_TimerToken)NULL;
@@ -1282,7 +1755,7 @@ set_no_event_wait(self, wait)
rb_secure(4);
if (t_wait <= 0) {
- rb_raise(rb_eArgError,
+ rb_raise(rb_eArgError,
"no_event_wait parameter must be positive number");
}
@@ -1405,7 +1878,7 @@ set_max_block_time(self, time)
default:
{
VALUE tmp = rb_funcall(time, ID_inspect, 0, 0);
- rb_raise(rb_eArgError, "invalid value for time: '%s'",
+ rb_raise(rb_eArgError, "invalid value for time: '%s'",
StringValuePtr(tmp));
}
}
@@ -1507,11 +1980,30 @@ lib_num_of_mainwindows(self)
#endif
}
+void
+rbtk_EventSetupProc(ClientData clientData, int flag)
+{
+ Tcl_Time tcl_time;
+ tcl_time.sec = 0;
+ tcl_time.usec = 1000L * (long)no_event_tick;
+ Tcl_SetMaxBlockTime(&tcl_time);
+}
+
+void
+rbtk_EventCheckProc(ClientData clientData, int flag)
+{
+ rb_thread_schedule();
+}
+
#ifdef RUBY_USE_NATIVE_THREAD /* Ruby 1.9+ !!! */
static VALUE
+#ifdef HAVE_PROTOTYPES
+call_DoOneEvent_core(VALUE flag_val)
+#else
call_DoOneEvent_core(flag_val)
VALUE flag_val;
+#endif
{
int flag;
@@ -1524,16 +2016,24 @@ call_DoOneEvent_core(flag_val)
}
static VALUE
+#ifdef HAVE_PROTOTYPES
+call_DoOneEvent(VALUE flag_val)
+#else
call_DoOneEvent(flag_val)
VALUE flag_val;
+#endif
{
return tk_funcall(call_DoOneEvent_core, 0, (VALUE*)NULL, flag_val);
}
#else /* Ruby 1.8- */
static VALUE
+#ifdef HAVE_PROTOTYPES
+call_DoOneEvent(VALUE flag_val)
+#else
call_DoOneEvent(flag_val)
VALUE flag_val;
+#endif
{
int flag;
@@ -1548,8 +2048,12 @@ call_DoOneEvent(flag_val)
static VALUE
+#ifdef HAVE_PROTOTYPES
+eventloop_sleep(VALUE dummy)
+#else
eventloop_sleep(dummy)
VALUE dummy;
+#endif
{
struct timeval t;
@@ -1557,7 +2061,7 @@ eventloop_sleep(dummy)
return Qnil;
}
- t.tv_sec = (time_t)0;
+ t.tv_sec = 0;
t.tv_usec = (long)(no_event_wait*1000.0);
#ifdef HAVE_NATIVETHREAD
@@ -1630,6 +2134,7 @@ trap_check(int *check_var)
{
DUMP1("trap check");
+#ifdef RUBY_VM
if (rb_thread_check_trap_pending()) {
if (check_var != (int*)NULL) {
/* wait command */
@@ -1639,11 +2144,35 @@ trap_check(int *check_var)
rb_thread_check_ints();
}
}
+#else
+ if (rb_trap_pending) {
+ run_timer_flag = 0;
+ if (rb_prohibit_interrupt || check_var != (int*)NULL) {
+ /* pending or on wait command */
+ return 0;
+ } else {
+ rb_trap_exec();
+ }
+ }
+#endif
return 1;
}
static int
+check_eventloop_interp()
+{
+ DUMP1("check eventloop_interp");
+ if (eventloop_interp != (Tcl_Interp*)NULL
+ && Tcl_InterpDeleted(eventloop_interp)) {
+ DUMP2("eventloop_interp(%p) was deleted", eventloop_interp);
+ return 1;
+ }
+
+ return 0;
+}
+
+static int
lib_eventloop_core(check_root, update_flag, check_var, interp)
int check_root;
int update_flag;
@@ -1663,15 +2192,15 @@ lib_eventloop_core(check_root, update_flag, check_var, interp)
if (update_flag) DUMP1("update loop start!!");
- t.tv_sec = (time_t)0;
- t.tv_usec = (long)(no_event_wait*1000.0);
+ t.tv_sec = 0;
+ t.tv_usec = 1000 * (long)no_event_wait;
Tcl_DeleteTimerHandler(timer_token);
run_timer_flag = 0;
if (timer_tick > 0) {
thr_crit_bup = rb_thread_critical;
rb_thread_critical = Qtrue;
- timer_token = Tcl_CreateTimerHandler(timer_tick, _timer_for_tcl,
+ timer_token = Tcl_CreateTimerHandler(timer_tick, _timer_for_tcl,
(ClientData)0);
rb_thread_critical = thr_crit_bup;
} else {
@@ -1684,6 +2213,8 @@ lib_eventloop_core(check_root, update_flag, check_var, interp)
#endif
for(;;) {
+ if (check_eventloop_interp()) return 0;
+
#if USE_EVLOOP_THREAD_ALONE_CHECK_FLAG
if (thread_alone_check_flag && rb_thread_alone()) {
#else
@@ -1693,7 +2224,8 @@ lib_eventloop_core(check_root, update_flag, check_var, interp)
event_loop_wait_event = 0;
if (update_flag) {
- event_flag = update_flag | TCL_DONT_WAIT; /* for safety */
+ event_flag = update_flag;
+ /* event_flag = update_flag | TCL_DONT_WAIT; */ /* for safety */
} else {
event_flag = TCL_ALL_EVENTS;
/* event_flag = TCL_ALL_EVENTS | TCL_DONT_WAIT; */
@@ -1701,8 +2233,8 @@ lib_eventloop_core(check_root, update_flag, check_var, interp)
if (timer_tick == 0 && update_flag == 0) {
timer_tick = NO_THREAD_INTERRUPT_TIME;
- timer_token = Tcl_CreateTimerHandler(timer_tick,
- _timer_for_tcl,
+ timer_token = Tcl_CreateTimerHandler(timer_tick,
+ _timer_for_tcl,
(ClientData)0);
}
@@ -1710,7 +2242,7 @@ lib_eventloop_core(check_root, update_flag, check_var, interp)
if (*check_var || !found_event) {
return found_event;
}
- if (interp != (Tcl_Interp*)NULL
+ if (interp != (Tcl_Interp*)NULL
&& Tcl_InterpDeleted(interp)) {
/* IP for check_var is deleted */
return 0;
@@ -1718,13 +2250,13 @@ lib_eventloop_core(check_root, update_flag, check_var, interp)
}
/* found_event = Tcl_DoOneEvent(event_flag); */
- found_event = RTEST(rb_protect(call_DoOneEvent,
- INT2FIX(event_flag), &status));
+ found_event = RTEST(rb_protect(call_DoOneEvent,
+ INT2FIX(event_flag), &status));
if (status) {
switch (status) {
case TAG_RAISE:
if (NIL_P(rb_errinfo())) {
- rbtk_pending_exception
+ rbtk_pending_exception
= rb_exc_new2(rb_eException, "unknown exception");
} else {
rbtk_pending_exception = rb_errinfo();
@@ -1751,7 +2283,7 @@ lib_eventloop_core(check_root, update_flag, check_var, interp)
}
if (depth != rbtk_eventloop_depth) {
- DUMP2("DoOneEvent(1) abnormal exit!! %d",
+ DUMP2("DoOneEvent(1) abnormal exit!! %d",
rbtk_eventloop_depth);
}
@@ -1776,6 +2308,7 @@ lib_eventloop_core(check_root, update_flag, check_var, interp)
}
TRAP_CHECK();
+ if (check_eventloop_interp()) return 0;
DUMP1("check Root Widget");
if (check_root && tk_stubs_init_p() && Tk_GetNumMainWindows() == 0) {
@@ -1798,9 +2331,11 @@ lib_eventloop_core(check_root, update_flag, check_var, interp)
found_event = 1;
if (update_flag) {
- event_flag = update_flag | TCL_DONT_WAIT; /* for safety */
+ event_flag = update_flag; /* for safety */
+ /* event_flag = update_flag | TCL_DONT_WAIT; */ /* for safety */
} else {
- event_flag = TCL_ALL_EVENTS | TCL_DONT_WAIT;
+ event_flag = TCL_ALL_EVENTS;
+ /* event_flag = TCL_ALL_EVENTS | TCL_DONT_WAIT; */
}
timer_tick = req_timer_tick;
@@ -1810,7 +2345,7 @@ lib_eventloop_core(check_root, update_flag, check_var, interp)
if (*check_var || !found_event) {
return found_event;
}
- if (interp != (Tcl_Interp*)NULL
+ if (interp != (Tcl_Interp*)NULL
&& Tcl_InterpDeleted(interp)) {
/* IP for check_var is deleted */
return 0;
@@ -1820,14 +2355,15 @@ lib_eventloop_core(check_root, update_flag, check_var, interp)
if (NIL_P(eventloop_thread) || current == eventloop_thread) {
int st;
int status;
+
#ifdef RUBY_USE_NATIVE_THREAD
if (update_flag) {
- st = RTEST(rb_protect(call_DoOneEvent,
- INT2FIX(event_flag), &status));
+ st = RTEST(rb_protect(call_DoOneEvent,
+ INT2FIX(event_flag), &status));
} else {
- st = RTEST(rb_protect(call_DoOneEvent,
- INT2FIX(event_flag & window_event_mode),
- &status));
+ st = RTEST(rb_protect(call_DoOneEvent,
+ INT2FIX(event_flag & window_event_mode),
+ &status));
#if USE_TOGGLE_WINDOW_MODE_FOR_IDLE
if (!st) {
if (toggle_eventloop_window_mode_for_idle()) {
@@ -1842,8 +2378,8 @@ lib_eventloop_core(check_root, update_flag, check_var, interp)
}
#else
/* st = Tcl_DoOneEvent(event_flag); */
- st = RTEST(rb_protect(call_DoOneEvent,
- INT2FIX(event_flag), &status));
+ st = RTEST(rb_protect(call_DoOneEvent,
+ INT2FIX(event_flag), &status));
#endif
#if CONTROL_BY_STATUS_OF_RB_THREAD_WAITING_FOR_VALUE
@@ -1857,8 +2393,8 @@ lib_eventloop_core(check_root, update_flag, check_var, interp)
switch (status) {
case TAG_RAISE:
if (NIL_P(rb_errinfo())) {
- rbtk_pending_exception
- = rb_exc_new2(rb_eException,
+ rbtk_pending_exception
+ = rb_exc_new2(rb_eException,
"unknown exception");
} else {
rbtk_pending_exception = rb_errinfo();
@@ -1885,14 +2421,14 @@ lib_eventloop_core(check_root, update_flag, check_var, interp)
}
if (depth != rbtk_eventloop_depth) {
- DUMP2("DoOneEvent(2) abnormal exit!! %d",
+ DUMP2("DoOneEvent(2) abnormal exit!! %d",
rbtk_eventloop_depth);
return 0;
}
TRAP_CHECK();
- if (check_var != (int*)NULL
+ if (check_var != (int*)NULL
&& !NIL_P(rbtk_pending_exception)) {
DUMP1("exception on wait");
return 0;
@@ -1913,16 +2449,16 @@ lib_eventloop_core(check_root, update_flag, check_var, interp)
tick_counter += no_event_tick;
+#if 0
/* rb_thread_wait_for(t); */
-
rb_protect(eventloop_sleep, Qnil, &status);
if (status) {
switch (status) {
case TAG_RAISE:
if (NIL_P(rb_errinfo())) {
- rbtk_pending_exception
- = rb_exc_new2(rb_eException,
+ rbtk_pending_exception
+ = rb_exc_new2(rb_eException,
"unknown exception");
} else {
rbtk_pending_exception = rb_errinfo();
@@ -1941,13 +2477,14 @@ lib_eventloop_core(check_root, update_flag, check_var, interp)
case TAG_FATAL:
if (NIL_P(rb_errinfo())) {
- rb_exc_raise(rb_exc_new2(rb_eFatal,
+ rb_exc_raise(rb_exc_new2(rb_eFatal,
"FATAL"));
} else {
rb_exc_raise(rb_errinfo());
}
}
}
+#endif
}
} else {
@@ -1962,6 +2499,7 @@ lib_eventloop_core(check_root, update_flag, check_var, interp)
}
TRAP_CHECK();
+ if (check_eventloop_interp()) return 0;
DUMP1("check Root Widget");
if (check_root && tk_stubs_init_p() && Tk_GetNumMainWindows() == 0) {
@@ -1988,9 +2526,9 @@ lib_eventloop_core(check_root, update_flag, check_var, interp)
rb_thread_schedule();
}
- DUMP1("trap check & thread scheduling");
-#ifdef RUBY_USE_NATIVE_THREAD
- /* if (update_flag == 0) CHECK_INTS; */ /*XXXXXXXXXXXXX TODO !!!! */
+ DUMP1("check interrupts");
+#if defined(RUBY_USE_NATIVE_THREAD) || defined(RUBY_VM)
+ if (update_flag == 0) rb_thread_check_ints();
#else
if (update_flag == 0) CHECK_INTS;
#endif
@@ -2016,9 +2554,11 @@ lib_eventloop_main_core(args)
check_rootwidget_flag = params->check_root;
- if (lib_eventloop_core(params->check_root,
- params->update_flag,
- params->check_var,
+ Tcl_CreateEventSource(rbtk_EventSetupProc, rbtk_EventCheckProc, (ClientData)args);
+
+ if (lib_eventloop_core(params->check_root,
+ params->update_flag,
+ params->check_var,
params->interp)) {
return Qtrue;
} else {
@@ -2041,7 +2581,7 @@ lib_eventloop_main(args)
switch (status) {
case TAG_RAISE:
if (NIL_P(rb_errinfo())) {
- rbtk_pending_exception
+ rbtk_pending_exception
= rb_exc_new2(rb_eException, "unknown exception");
} else {
rbtk_pending_exception = rb_errinfo();
@@ -2068,6 +2608,8 @@ lib_eventloop_ensure(args)
struct evloop_params *ptr = (struct evloop_params *)args;
volatile VALUE current_evloop = rb_thread_current();
+ Tcl_DeleteEventSource(rbtk_EventSetupProc, rbtk_EventCheckProc, (ClientData)args);
+
DUMP2("eventloop_ensure: current-thread : %lx", current_evloop);
DUMP2("eventloop_ensure: eventloop-thread : %lx", eventloop_thread);
if (eventloop_thread != current_evloop) {
@@ -2075,14 +2617,14 @@ lib_eventloop_ensure(args)
rb_thread_critical = ptr->thr_crit_bup;
- free(ptr);
+ xfree(ptr);
/* ckfree((char*)ptr); */
return Qnil;
}
while((eventloop_thread = rb_ary_pop(eventloop_stack))) {
- DUMP2("eventloop-ensure: new eventloop-thread -> %lx",
+ DUMP2("eventloop-ensure: new eventloop-thread -> %lx",
eventloop_thread);
if (eventloop_thread == current_evloop) {
@@ -2095,7 +2637,7 @@ lib_eventloop_ensure(args)
Tcl_DeleteTimerHandler(timer_token);
timer_token = (Tcl_TimerToken)NULL;
- break;
+ break;
}
#ifdef RUBY_VM
@@ -2118,7 +2660,7 @@ lib_eventloop_ensure(args)
rb_thread_critical = ptr->thr_crit_bup;
- free(ptr);
+ xfree(ptr);
/* ckfree((char*)ptr);*/
DUMP2("finish current eventloop %lx", current_evloop);
@@ -2159,7 +2701,7 @@ lib_eventloop_launcher(check_root, update_flag, check_var, interp)
rb_ary_push(eventloop_stack, parent_evloop);
- DUMP3("tcltklib: eventloop-thread : %lx -> %lx\n",
+ DUMP3("tcltklib: eventloop-thread : %lx -> %lx\n",
parent_evloop, eventloop_thread);
args->check_root = check_root;
@@ -2171,10 +2713,10 @@ lib_eventloop_launcher(check_root, update_flag, check_var, interp)
rb_thread_critical = Qfalse;
#if 0
- return rb_ensure(lib_eventloop_main, (VALUE)args,
+ return rb_ensure(lib_eventloop_main, (VALUE)args,
lib_eventloop_ensure, (VALUE)args);
#endif
- return rb_ensure(lib_eventloop_main_core, (VALUE)args,
+ return rb_ensure(lib_eventloop_main_core, (VALUE)args,
lib_eventloop_ensure, (VALUE)args);
}
@@ -2195,7 +2737,7 @@ lib_mainloop(argc, argv, self)
check_rootwidget = Qfalse;
}
- return lib_eventloop_launcher(RTEST(check_rootwidget), 0,
+ return lib_eventloop_launcher(RTEST(check_rootwidget), 0,
(int*)NULL, (Tcl_Interp*)NULL);
}
@@ -2205,6 +2747,7 @@ ip_mainloop(argc, argv, self)
VALUE *argv;
VALUE self;
{
+ volatile VALUE ret;
struct tcltkip *ptr = get_ip(self);
/* ip is deleted? */
@@ -2216,7 +2759,11 @@ ip_mainloop(argc, argv, self)
/* slave IP */
return Qnil;
}
- return lib_mainloop(argc, argv, self);
+
+ eventloop_interp = ptr->ip;
+ ret = lib_mainloop(argc, argv, self);
+ eventloop_interp = (Tcl_Interp*)NULL;
+ return ret;
}
@@ -2224,7 +2771,7 @@ static VALUE
watchdog_evloop_launcher(check_rootwidget)
VALUE check_rootwidget;
{
- return lib_eventloop_launcher(RTEST(check_rootwidget), 0,
+ return lib_eventloop_launcher(RTEST(check_rootwidget), 0,
(int*)NULL, (Tcl_Interp*)NULL);
}
@@ -2240,9 +2787,9 @@ lib_watchdog_core(check_rootwidget)
int check = RTEST(check_rootwidget);
struct timeval t0, t1;
- t0.tv_sec = (time_t)0;
+ t0.tv_sec = 0;
t0.tv_usec = (long)((NO_THREAD_INTERRUPT_TIME)*1000.0);
- t1.tv_sec = (time_t)0;
+ t1.tv_sec = 0;
t1.tv_usec = (long)((WATCHDOG_INTERVAL)*1000.0);
/* check other watchdog thread */
@@ -2260,9 +2807,9 @@ lib_watchdog_core(check_rootwidget)
if (NIL_P(eventloop_thread)
|| (loop_counter == prev_val && chance >= EVLOOP_WAKEUP_CHANCE)) {
/* start new eventloop thread */
- DUMP2("eventloop thread %lx is sleeping or dead",
+ DUMP2("eventloop thread %lx is sleeping or dead",
eventloop_thread);
- evloop = rb_thread_create(watchdog_evloop_launcher,
+ evloop = rb_thread_create(watchdog_evloop_launcher,
(void*)&check_rootwidget);
DUMP2("create new eventloop thread %lx", evloop);
loop_counter = -1;
@@ -2306,8 +2853,8 @@ lib_mainloop_watchdog(argc, argv, self)
{
VALUE check_rootwidget;
-#ifdef RUBY_USE_NATIVE_THREAD
- rb_raise(rb_eNotImpError,
+#ifdef RUBY_VM
+ rb_raise(rb_eNotImpError,
"eventloop_watchdog is not implemented on Ruby VM.");
#endif
@@ -2319,7 +2866,7 @@ lib_mainloop_watchdog(argc, argv, self)
check_rootwidget = Qfalse;
}
- return rb_ensure(lib_watchdog_core, check_rootwidget,
+ return rb_ensure(lib_watchdog_core, check_rootwidget,
lib_watchdog_ensure, Qnil);
}
@@ -2350,7 +2897,7 @@ struct thread_call_proc_arg {
int *done;
};
-void
+void
_thread_call_proc_arg_mark(struct thread_call_proc_arg *q)
{
rb_gc_mark(q->proc);
@@ -2379,13 +2926,17 @@ _thread_call_proc(arg)
{
struct thread_call_proc_arg *q = (struct thread_call_proc_arg*)arg;
- return rb_ensure(_thread_call_proc_core, (VALUE)q,
+ return rb_ensure(_thread_call_proc_core, (VALUE)q,
_thread_call_proc_ensure, (VALUE)q);
}
static VALUE
+#ifdef HAVE_PROTOTYPES
+_thread_call_proc_value(VALUE th)
+#else
_thread_call_proc_value(th)
VALUE th;
+#endif
{
return rb_funcall(th, ID_value, 0);
}
@@ -2417,7 +2968,7 @@ lib_thread_callback(argc, argv, self)
rb_thread_schedule();
/* start sub-eventloop */
- foundEvent = RTEST(lib_eventloop_launcher(/* not check root-widget */0, 0,
+ foundEvent = RTEST(lib_eventloop_launcher(/* not check root-widget */0, 0,
q->done, (Tcl_Interp*)NULL));
#ifdef RUBY_VM
@@ -2431,8 +2982,8 @@ lib_thread_callback(argc, argv, self)
ret = rb_protect(_thread_call_proc_value, th, &status);
}
- free(q->done);
- free(q);
+ xfree(q->done);
+ xfree(q);
/* ckfree((char*)q->done); */
/* ckfree((char*)q); */
@@ -2582,7 +3133,7 @@ ip_set_exc_message(interp, exc)
Tcl_AppendResult(interp, Tcl_DStringValue(&dstr), (char*)NULL);
DUMP2("error message:%s", Tcl_DStringValue(&dstr));
Tcl_DStringFree(&dstr);
- free(buf);
+ xfree(buf);
/* ckfree(buf); */
#else /* TCL_VERSION <= 8.0 */
@@ -2622,10 +3173,14 @@ TkStringValue(obj)
}
static int
+#ifdef HAVE_PROTOTYPES
+tcl_protect_core(Tcl_Interp *interp, VALUE (*proc)(VALUE), VALUE data)
+#else
tcl_protect_core(interp, proc, data) /* should not raise exception */
Tcl_Interp *interp;
VALUE (*proc)();
VALUE data;
+#endif
{
volatile VALUE ret, exc = Qnil;
int status = 0;
@@ -2707,7 +3262,7 @@ tcl_protect_core(interp, proc, data) /* should not raise exception */
/* buf = ckalloc(sizeof(char) * 256); */
sprintf(buf, "unknown loncaljmp status %d", status);
exc = rb_exc_new2(rb_eException, buf);
- free(buf);
+ xfree(buf);
/* ckfree(buf); */
break;
}
@@ -2812,7 +3367,17 @@ tcl_protect(interp, proc, data)
#endif
#endif
+#ifdef RUBY_VM
code = tcl_protect_core(interp, proc, data);
+#else
+ do {
+ int old_trapflag = rb_trap_immediate;
+ rb_trap_immediate = 0;
+ code = tcl_protect_core(interp, proc, data);
+ rb_trap_immediate = old_trapflag;
+ } while (0);
+#endif
+
return code;
}
@@ -2820,7 +3385,7 @@ static int
#if TCL_MAJOR_VERSION >= 8
ip_ruby_eval(clientData, interp, argc, argv)
ClientData clientData;
- Tcl_Interp *interp;
+ Tcl_Interp *interp;
int argc;
Tcl_Obj *CONST argv[];
#else /* TCL_MAJOR_VERSION < 8 */
@@ -2836,7 +3401,7 @@ ip_ruby_eval(clientData, interp, argc, argv)
int code;
if (interp == (Tcl_Interp*)NULL) {
- rbtk_pending_exception = rb_exc_new2(rb_eRuntimeError,
+ rbtk_pending_exception = rb_exc_new2(rb_eRuntimeError,
"IP is deleted");
return TCL_ERROR;
}
@@ -2844,15 +3409,15 @@ ip_ruby_eval(clientData, interp, argc, argv)
/* ruby command has 1 arg. */
if (argc != 2) {
#if 0
- rb_raise(rb_eArgError,
+ rb_raise(rb_eArgError,
"wrong number of arguments (%d for 1)", argc - 1);
#else
char buf[sizeof(int)*8 + 1];
Tcl_ResetResult(interp);
sprintf(buf, "%d", argc-1);
- Tcl_AppendResult(interp, "wrong number of arguments (",
+ Tcl_AppendResult(interp, "wrong number of arguments (",
buf, " for 1)", (char *)NULL);
- rbtk_pending_exception = rb_exc_new2(rb_eArgError,
+ rbtk_pending_exception = rb_exc_new2(rb_eArgError,
Tcl_GetStringResult(interp));
return TCL_ERROR;
#endif
@@ -2886,7 +3451,7 @@ ip_ruby_eval(clientData, interp, argc, argv)
code = tcl_protect(interp, rb_eval_string, (VALUE)arg);
#if TCL_MAJOR_VERSION >= 8
- free(arg);
+ xfree(arg);
/* ckfree(arg); */
#endif
@@ -2906,6 +3471,7 @@ ip_ruby_cmd_core(arg)
thr_crit_bup = rb_thread_critical;
rb_thread_critical = Qfalse;
ret = rb_apply(arg->receiver, arg->method, arg->args);
+ DUMP2("rb_apply return:%lx", ret);
rb_thread_critical = thr_crit_bup;
DUMP1("finish ip_ruby_cmd_core");
@@ -2947,7 +3513,7 @@ ip_ruby_cmd_receiver_const_get(name)
/* has '::' at head ? */
if (*head == ':') head += 2;
- tail = head;
+ tail = head;
/* search */
while(*tail) {
@@ -2998,7 +3564,7 @@ ip_ruby_cmd_receiver_get(str)
memcpy(buf + 1, str, len);
buf[len + 1] = 0;
receiver = rb_gv_get(buf);
- free(buf);
+ xfree(buf);
/* ckfree(buf); */
}
@@ -3010,7 +3576,7 @@ static int
#if TCL_MAJOR_VERSION >= 8
ip_ruby_cmd(clientData, interp, argc, argv)
ClientData clientData;
- Tcl_Interp *interp;
+ Tcl_Interp *interp;
int argc;
Tcl_Obj *CONST argv[];
#else /* TCL_MAJOR_VERSION < 8 */
@@ -3033,7 +3599,7 @@ ip_ruby_cmd(clientData, interp, argc, argv)
int code;
if (interp == (Tcl_Interp*)NULL) {
- rbtk_pending_exception = rb_exc_new2(rb_eRuntimeError,
+ rbtk_pending_exception = rb_exc_new2(rb_eRuntimeError,
"IP is deleted");
return TCL_ERROR;
}
@@ -3044,7 +3610,7 @@ ip_ruby_cmd(clientData, interp, argc, argv)
#else
Tcl_ResetResult(interp);
Tcl_AppendResult(interp, "too few arguments", (char *)NULL);
- rbtk_pending_exception = rb_exc_new2(rb_eArgError,
+ rbtk_pending_exception = rb_exc_new2(rb_eArgError,
Tcl_GetStringResult(interp));
return TCL_ERROR;
#endif
@@ -3066,13 +3632,13 @@ ip_ruby_cmd(clientData, interp, argc, argv)
receiver = ip_ruby_cmd_receiver_get(str);
if (NIL_P(receiver)) {
#if 0
- rb_raise(rb_eArgError,
+ rb_raise(rb_eArgError,
"unknown class/module/global-variable '%s'", str);
#else
Tcl_ResetResult(interp);
- Tcl_AppendResult(interp, "unknown class/module/global-variable '",
+ Tcl_AppendResult(interp, "unknown class/module/global-variable '",
str, "'", (char *)NULL);
- rbtk_pending_exception = rb_exc_new2(rb_eArgError,
+ rbtk_pending_exception = rb_exc_new2(rb_eArgError,
Tcl_GetStringResult(interp));
if (old_gc == Qfalse) rb_gc_enable();
return TCL_ERROR;
@@ -3120,7 +3686,7 @@ ip_ruby_cmd(clientData, interp, argc, argv)
/* evaluate the argument string by ruby */
code = tcl_protect(interp, ip_ruby_cmd_core, (VALUE)arg);
- free(arg);
+ xfree(arg);
/* ckfree((char*)arg); */
return code;
@@ -3132,21 +3698,31 @@ ip_ruby_cmd(clientData, interp, argc, argv)
/*****************************/
static int
#if TCL_MAJOR_VERSION >= 8
+#ifdef HAVE_PROTOTYPES
+ip_InterpExitObjCmd(ClientData clientData, Tcl_Interp *interp,
+ int argc, Tcl_Obj *CONST argv[])
+#else
ip_InterpExitObjCmd(clientData, interp, argc, argv)
ClientData clientData;
- Tcl_Interp *interp;
+ Tcl_Interp *interp;
int argc;
Tcl_Obj *CONST argv[];
+#endif
#else /* TCL_MAJOR_VERSION < 8 */
+#ifdef HAVE_PROTOTYPES
+ip_InterpExitCommand(ClientData clientData, Tcl_Interp *interp,
+ int argc, char *argv[])
+#else
ip_InterpExitCommand(clientData, interp, argc, argv)
ClientData clientData;
Tcl_Interp *interp;
int argc;
char *argv[];
#endif
+#endif
{
DUMP1("start ip_InterpExitCommand");
- if (interp != (Tcl_Interp*)NULL
+ if (interp != (Tcl_Interp*)NULL
&& !Tcl_InterpDeleted(interp)
#if TCL_NAMESPACE_DEBUG
&& !ip_null_namespace(interp)
@@ -3155,27 +3731,40 @@ ip_InterpExitCommand(clientData, interp, argc, argv)
Tcl_ResetResult(interp);
/* Tcl_Preserve(interp); */
/* Tcl_Eval(interp, "interp eval {} {destroy .}; interp delete {}"); */
- ip_finalize(interp);
- Tcl_DeleteInterp(interp);
- Tcl_Release(interp);
+ if (!Tcl_InterpDeleted(interp)) {
+ ip_finalize(interp);
+
+ Tcl_DeleteInterp(interp);
+ Tcl_Release(interp);
+ }
}
return TCL_OK;
}
static int
#if TCL_MAJOR_VERSION >= 8
+#ifdef HAVE_PROTOTYPES
+ip_RubyExitObjCmd(ClientData clientData, Tcl_Interp *interp,
+ int argc, Tcl_Obj *CONST argv[])
+#else
ip_RubyExitObjCmd(clientData, interp, argc, argv)
ClientData clientData;
- Tcl_Interp *interp;
+ Tcl_Interp *interp;
int argc;
Tcl_Obj *CONST argv[];
+#endif
#else /* TCL_MAJOR_VERSION < 8 */
+#ifdef HAVE_PROTOTYPES
+ip_RubyExitCommand(ClientData clientData, Tcl_Interp *interp,
+ int argc, char *argv[])
+#else
ip_RubyExitCommand(clientData, interp, argc, argv)
ClientData clientData;
Tcl_Interp *interp;
int argc;
char *argv[];
#endif
+#endif
{
int state;
char *cmd, *param;
@@ -3193,8 +3782,8 @@ ip_RubyExitCommand(clientData, interp, argc, argv)
if (argc < 1 || argc > 2) {
/* arguemnt error */
- Tcl_AppendResult(interp,
- "wrong number of arguments: should be \"",
+ Tcl_AppendResult(interp,
+ "wrong number of arguments: should be \"",
cmd, " ?returnCode?\"", (char *)NULL);
return TCL_ERROR;
}
@@ -3204,19 +3793,22 @@ ip_RubyExitCommand(clientData, interp, argc, argv)
Tcl_ResetResult(interp);
if (rb_safe_level() >= 4 || Tcl_IsSafe(interp)) {
- ip_finalize(interp);
- Tcl_DeleteInterp(interp);
- Tcl_Release(interp);
+ if (!Tcl_InterpDeleted(interp)) {
+ ip_finalize(interp);
+
+ Tcl_DeleteInterp(interp);
+ Tcl_Release(interp);
+ }
return TCL_OK;
}
switch(argc) {
case 1:
/* rb_exit(0); */ /* not return if succeed */
- Tcl_AppendResult(interp,
+ Tcl_AppendResult(interp,
"fail to call \"", cmd, "\"", (char *)NULL);
- rbtk_pending_exception = rb_exc_new2(rb_eSystemExit,
+ rbtk_pending_exception = rb_exc_new2(rb_eSystemExit,
Tcl_GetStringResult(interp));
rb_iv_set(rbtk_pending_exception, "status", INT2FIX(0));
@@ -3232,8 +3824,8 @@ ip_RubyExitCommand(clientData, interp, argc, argv)
#else /* TCL_MAJOR_VERSION < 8 */
state = (int)strtol(argv[1], &endptr, 0);
if (*endptr) {
- Tcl_AppendResult(interp,
- "expected integer but got \"",
+ Tcl_AppendResult(interp,
+ "expected integer but got \"",
argv[1], "\"", (char *)NULL);
return TCL_ERROR;
}
@@ -3241,10 +3833,10 @@ ip_RubyExitCommand(clientData, interp, argc, argv)
#endif
/* rb_exit(state); */ /* not return if succeed */
- Tcl_AppendResult(interp, "fail to call \"", cmd, " ",
+ Tcl_AppendResult(interp, "fail to call \"", cmd, " ",
param, "\"", (char *)NULL);
- rbtk_pending_exception = rb_exc_new2(rb_eSystemExit,
+ rbtk_pending_exception = rb_exc_new2(rb_eSystemExit,
Tcl_GetStringResult(interp));
rb_iv_set(rbtk_pending_exception, "status", INT2FIX(state));
@@ -3252,8 +3844,8 @@ ip_RubyExitCommand(clientData, interp, argc, argv)
default:
/* arguemnt error */
- Tcl_AppendResult(interp,
- "wrong number of arguments: should be \"",
+ Tcl_AppendResult(interp,
+ "wrong number of arguments: should be \"",
cmd, " ?returnCode?\"", (char *)NULL);
return TCL_ERROR;
}
@@ -3273,7 +3865,7 @@ static int ip_rbUpdateObjCmd _((ClientData, Tcl_Interp *, int,
static int
ip_rbUpdateObjCmd(clientData, interp, objc, objv)
ClientData clientData;
- Tcl_Interp *interp;
+ Tcl_Interp *interp;
int objc;
Tcl_Obj *CONST objv[];
#else /* TCL_MAJOR_VERSION < 8 */
@@ -3294,7 +3886,7 @@ ip_rbUpdateCommand(clientData, interp, objc, objv)
DUMP1("Ruby's 'update' is called");
if (interp == (Tcl_Interp*)NULL) {
- rbtk_pending_exception = rb_exc_new2(rb_eRuntimeError,
+ rbtk_pending_exception = rb_exc_new2(rb_eRuntimeError,
"IP is deleted");
return TCL_ERROR;
}
@@ -3341,8 +3933,8 @@ ip_rbUpdateCommand(clientData, interp, objc, objv)
# if TCL_MAJOR_VERSION >= 8
int dummy;
Tcl_AppendResult(interp, "wrong number of arguments: should be \"",
- Tcl_GetStringFromObj(objv[0], &dummy),
- " [ idletasks ]\"",
+ Tcl_GetStringFromObj(objv[0], &dummy),
+ " [ idletasks ]\"",
(char *) NULL);
# else /* TCL_MAJOR_VERSION < 8 */
Tcl_AppendResult(interp, "wrong number of arguments: should be \"",
@@ -3374,7 +3966,11 @@ ip_rbUpdateCommand(clientData, interp, objc, objv)
}
/* trap check */
+#ifdef RUBY_VM
if (rb_thread_check_trap_pending()) {
+#else
+ if (rb_trap_pending) {
+#endif
Tcl_Release(interp);
return TCL_RETURN;
@@ -3403,7 +3999,7 @@ struct th_update_param {
};
static void rb_threadUpdateProc _((ClientData));
-static void
+static void
rb_threadUpdateProc(clientData)
ClientData clientData; /* Pointer to integer to set to 1. */
{
@@ -3422,7 +4018,7 @@ static int ip_rb_threadUpdateObjCmd _((ClientData, Tcl_Interp *, int,
static int
ip_rb_threadUpdateObjCmd(clientData, interp, objc, objv)
ClientData clientData;
- Tcl_Interp *interp;
+ Tcl_Interp *interp;
int objc;
Tcl_Obj *CONST objv[];
#else /* TCL_MAJOR_VERSION < 8 */
@@ -3442,10 +4038,11 @@ ip_rb_threadUpdateCommand(clientData, interp, objc, objv)
static CONST char *updateOptions[] = {"idletasks", (char *) NULL};
enum updateOptions {REGEXP_IDLETASKS};
volatile VALUE current_thread = rb_thread_current();
+ struct timeval t;
DUMP1("Ruby's 'thread_update' is called");
if (interp == (Tcl_Interp*)NULL) {
- rbtk_pending_exception = rb_exc_new2(rb_eRuntimeError,
+ rbtk_pending_exception = rb_exc_new2(rb_eRuntimeError,
"IP is deleted");
return TCL_ERROR;
}
@@ -3457,7 +4054,7 @@ ip_rb_threadUpdateCommand(clientData, interp, objc, objv)
#endif
#endif
- if (rb_thread_alone()
+ if (rb_thread_alone()
|| NIL_P(eventloop_thread) || eventloop_thread == current_thread) {
#if TCL_MAJOR_VERSION >= 8
DUMP1("call ip_rbUpdateObjCmd");
@@ -3505,8 +4102,8 @@ ip_rb_threadUpdateCommand(clientData, interp, objc, objv)
# if TCL_MAJOR_VERSION >= 8
int dummy;
Tcl_AppendResult(interp, "wrong number of arguments: should be \"",
- Tcl_GetStringFromObj(objv[0], &dummy),
- " [ idletasks ]\"",
+ Tcl_GetStringFromObj(objv[0], &dummy),
+ " [ idletasks ]\"",
(char *) NULL);
# else /* TCL_MAJOR_VERSION < 8 */
Tcl_AppendResult(interp, "wrong number of arguments: should be \"",
@@ -3529,10 +4126,17 @@ ip_rb_threadUpdateCommand(clientData, interp, objc, objv)
DUMP1("set idle proc");
Tcl_DoWhenIdle(rb_threadUpdateProc, (ClientData) param);
+ t.tv_sec = 0;
+ t.tv_usec = (long)((EVENT_HANDLER_TIMEOUT)*1000.0);
+
while(!param->done) {
- DUMP1("wait for complete idle proc");
- /* rb_thread_stop(); */
- rb_thread_sleep_forever();
+ DUMP1("wait for complete idle proc");
+ /* rb_thread_stop(); */
+ /* rb_thread_sleep_forever(); */
+ rb_thread_wait_for(t);
+ if (NIL_P(eventloop_thread)) {
+ break;
+ }
}
#if 0 /* use Tcl_EventuallyFree */
@@ -3573,7 +4177,7 @@ static int ip_rb_threadTkWaitCommand _((ClientData, Tcl_Interp *, int,
#endif
#if TCL_MAJOR_VERSION >= 8
-static char *VwaitVarProc _((ClientData, Tcl_Interp *,
+static char *VwaitVarProc _((ClientData, Tcl_Interp *,
CONST84 char *,CONST84 char *, int));
static char *
VwaitVarProc(clientData, interp, name1, name2, flags)
@@ -3602,14 +4206,14 @@ VwaitVarProc(clientData, interp, name1, name2, flags)
#if TCL_MAJOR_VERSION >= 8
static int
ip_rbVwaitObjCmd(clientData, interp, objc, objv)
- ClientData clientData;
- Tcl_Interp *interp;
+ ClientData clientData; /* Not used */
+ Tcl_Interp *interp;
int objc;
Tcl_Obj *CONST objv[];
#else /* TCL_MAJOR_VERSION < 8 */
static int
ip_rbVwaitCommand(clientData, interp, objc, objv)
- ClientData clientData;
+ ClientData clientData; /* Not used */
Tcl_Interp *interp;
int objc;
char *objv[];
@@ -3622,13 +4226,13 @@ ip_rbVwaitCommand(clientData, interp, objc, objv)
DUMP1("Ruby's 'vwait' is called");
if (interp == (Tcl_Interp*)NULL) {
- rbtk_pending_exception = rb_exc_new2(rb_eRuntimeError,
+ rbtk_pending_exception = rb_exc_new2(rb_eRuntimeError,
"IP is deleted");
return TCL_ERROR;
}
#if 0
- if (!rb_thread_alone()
+ if (!rb_thread_alone()
&& eventloop_thread != Qnil
&& eventloop_thread != rb_thread_current()) {
#if TCL_MAJOR_VERSION >= 8
@@ -3686,7 +4290,7 @@ ip_rbVwaitCommand(clientData, interp, objc, objv)
nameString = objv[1];
#endif
- /*
+ /*
if (Tcl_TraceVar(interp, nameString,
TCL_GLOBAL_ONLY|TCL_TRACE_WRITES|TCL_TRACE_UNSETS,
VwaitVarProc, (ClientData) &done) != TCL_OK) {
@@ -3709,7 +4313,7 @@ ip_rbVwaitCommand(clientData, interp, objc, objv)
done = 0;
- foundEvent = RTEST(lib_eventloop_launcher(/* not check root-widget */0,
+ foundEvent = RTEST(lib_eventloop_launcher(/* not check root-widget */0,
0, &done, interp));
thr_crit_bup = rb_thread_critical;
@@ -3740,7 +4344,11 @@ ip_rbVwaitCommand(clientData, interp, objc, objv)
}
/* trap check */
+#ifdef RUBY_VM
if (rb_thread_check_trap_pending()) {
+#else
+ if (rb_trap_pending) {
+#endif
#if TCL_MAJOR_VERSION >= 8
Tcl_DecrRefCount(objv[1]);
#endif
@@ -3783,7 +4391,7 @@ ip_rbVwaitCommand(clientData, interp, objc, objv)
/* based on tkCmd.c */
/**************************/
#if TCL_MAJOR_VERSION >= 8
-static char *WaitVariableProc _((ClientData, Tcl_Interp *,
+static char *WaitVariableProc _((ClientData, Tcl_Interp *,
CONST84 char *,CONST84 char *, int));
static char *
WaitVariableProc(clientData, interp, name1, name2, flags)
@@ -3793,7 +4401,7 @@ WaitVariableProc(clientData, interp, name1, name2, flags)
CONST84 char *name2; /* Second part of variable name. */
int flags; /* Information about what happened. */
#else /* TCL_MAJOR_VERSION < 8 */
-static char *WaitVariableProc _((ClientData, Tcl_Interp *,
+static char *WaitVariableProc _((ClientData, Tcl_Interp *,
char *, char *, int));
static char *
WaitVariableProc(clientData, interp, name1, name2, flags)
@@ -3843,7 +4451,7 @@ WaitWindowProc(clientData, eventPtr)
static int
ip_rbTkWaitObjCmd(clientData, interp, objc, objv)
ClientData clientData;
- Tcl_Interp *interp;
+ Tcl_Interp *interp;
int objc;
Tcl_Obj *CONST objv[];
#else /* TCL_MAJOR_VERSION < 8 */
@@ -3867,21 +4475,21 @@ ip_rbTkWaitCommand(clientData, interp, objc, objv)
DUMP1("Ruby's 'tkwait' is called");
if (interp == (Tcl_Interp*)NULL) {
- rbtk_pending_exception = rb_exc_new2(rb_eRuntimeError,
+ rbtk_pending_exception = rb_exc_new2(rb_eRuntimeError,
"IP is deleted");
return TCL_ERROR;
}
#if 0
- if (!rb_thread_alone()
+ if (!rb_thread_alone()
&& eventloop_thread != Qnil
&& eventloop_thread != rb_thread_current()) {
#if TCL_MAJOR_VERSION >= 8
DUMP1("call ip_rb_threadTkWaitObjCmd");
- return ip_rb_threadTkWaitObjCmd(clientData, interp, objc, objv);
+ return ip_rb_threadTkWaitObjCmd((ClientData)tkwin, interp, objc, objv);
#else /* TCL_MAJOR_VERSION < 8 */
DUMP1("call ip_rb_threadTkWaitCommand");
- return ip_rb_threadTkWwaitCommand(clientData, interp, objc, objv);
+ return ip_rb_threadTkWwaitCommand((ClientData)tkwin, interp, objc, objv);
#endif
}
#endif
@@ -3898,12 +4506,12 @@ ip_rbTkWaitCommand(clientData, interp, objc, objv)
#if TCL_MAJOR_VERSION >= 8
Tcl_AppendResult(interp, "wrong number of arguments: should be \"",
- Tcl_GetStringFromObj(objv[0], &dummy),
- " variable|visibility|window name\"",
+ Tcl_GetStringFromObj(objv[0], &dummy),
+ " variable|visibility|window name\"",
(char *) NULL);
#else /* TCL_MAJOR_VERSION < 8 */
Tcl_AppendResult(interp, "wrong number of arguments: should be \"",
- objv[0], " variable|visibility|window name\"",
+ objv[0], " variable|visibility|window name\"",
(char *) NULL);
#endif
@@ -3919,14 +4527,14 @@ ip_rbTkWaitCommand(clientData, interp, objc, objv)
rb_thread_critical = Qtrue;
/*
- if (Tcl_GetIndexFromObj(interp, objv[1],
- (CONST84 char **)optionStrings,
+ if (Tcl_GetIndexFromObj(interp, objv[1],
+ (CONST84 char **)optionStrings,
"option", 0, &index) != TCL_OK) {
return TCL_ERROR;
}
*/
- ret = Tcl_GetIndexFromObj(interp, objv[1],
- (CONST84 char **)optionStrings,
+ ret = Tcl_GetIndexFromObj(interp, objv[1],
+ (CONST84 char **)optionStrings,
"option", 0, &index);
rb_thread_critical = thr_crit_bup;
@@ -3950,7 +4558,7 @@ ip_rbTkWaitCommand(clientData, interp, objc, objv)
index = TKWAIT_WINDOW;
} else {
Tcl_AppendResult(interp, "bad option \"", objv[1],
- "\": must be variable, visibility, or window",
+ "\": must be variable, visibility, or window",
(char *) NULL);
Tcl_Release(interp);
return TCL_ERROR;
@@ -4029,7 +4637,11 @@ ip_rbTkWaitCommand(clientData, interp, objc, objv)
}
/* trap check */
- if (rb_thread_check_trap_pending()) {
+#ifdef RUBY_VM
+ if (rb_thread_check_trap_pending()) {
+#else
+ if (rb_trap_pending) {
+#endif
Tcl_Release(interp);
return TCL_RETURN;
@@ -4049,8 +4661,8 @@ ip_rbTkWaitCommand(clientData, interp, objc, objv)
}
if (window == NULL) {
- Tcl_AppendResult(interp, ": tkwait: ",
- "no main-window (not Tk application?)",
+ Tcl_AppendResult(interp, ": tkwait: ",
+ "no main-window (not Tk application?)",
(char*)NULL);
rb_thread_critical = thr_crit_bup;
#if TCL_MAJOR_VERSION >= 8
@@ -4089,7 +4701,11 @@ ip_rbTkWaitCommand(clientData, interp, objc, objv)
}
/* trap check */
- if (rb_thread_check_trap_pending()) {
+#ifdef RUBY_VM
+ if (rb_thread_check_trap_pending()) {
+#else
+ if (rb_trap_pending) {
+#endif
#if TCL_MAJOR_VERSION >= 8
Tcl_DecrRefCount(objv[2]);
#endif
@@ -4151,8 +4767,8 @@ ip_rbTkWaitCommand(clientData, interp, objc, objv)
#endif
if (window == NULL) {
- Tcl_AppendResult(interp, ": tkwait: ",
- "no main-window (not Tk application?)",
+ Tcl_AppendResult(interp, ": tkwait: ",
+ "no main-window (not Tk application?)",
(char*)NULL);
rb_thread_critical = thr_crit_bup;
Tcl_Release(interp);
@@ -4184,7 +4800,11 @@ ip_rbTkWaitCommand(clientData, interp, objc, objv)
}
/* trap check */
- if (rb_thread_check_trap_pending()) {
+#ifdef RUBY_VM
+ if (rb_thread_check_trap_pending()) {
+#else
+ if (rb_trap_pending) {
+#endif
Tcl_Release(interp);
return TCL_RETURN;
@@ -4216,7 +4836,7 @@ struct th_vwait_param {
};
#if TCL_MAJOR_VERSION >= 8
-static char *rb_threadVwaitProc _((ClientData, Tcl_Interp *,
+static char *rb_threadVwaitProc _((ClientData, Tcl_Interp *,
CONST84 char *,CONST84 char *, int));
static char *
rb_threadVwaitProc(clientData, interp, name1, name2, flags)
@@ -4226,7 +4846,7 @@ rb_threadVwaitProc(clientData, interp, name1, name2, flags)
CONST84 char *name2; /* Second part of variable name. */
int flags; /* Information about what happened. */
#else /* TCL_MAJOR_VERSION < 8 */
-static char *rb_threadVwaitProc _((ClientData, Tcl_Interp *,
+static char *rb_threadVwaitProc _((ClientData, Tcl_Interp *,
char *, char *, int));
static char *
rb_threadVwaitProc(clientData, interp, name1, name2, flags)
@@ -4287,13 +4907,13 @@ rb_threadWaitWindowProc(clientData, eventPtr)
static int
ip_rb_threadVwaitObjCmd(clientData, interp, objc, objv)
ClientData clientData;
- Tcl_Interp *interp;
+ Tcl_Interp *interp;
int objc;
Tcl_Obj *CONST objv[];
#else /* TCL_MAJOR_VERSION < 8 */
static int
ip_rb_threadVwaitCommand(clientData, interp, objc, objv)
- ClientData clientData;
+ ClientData clientData; /* Not used */
Tcl_Interp *interp;
int objc;
char *objv[];
@@ -4304,10 +4924,11 @@ ip_rb_threadVwaitCommand(clientData, interp, objc, objv)
int ret, dummy;
int thr_crit_bup;
volatile VALUE current_thread = rb_thread_current();
+ struct timeval t;
DUMP1("Ruby's 'thread_vwait' is called");
if (interp == (Tcl_Interp*)NULL) {
- rbtk_pending_exception = rb_exc_new2(rb_eRuntimeError,
+ rbtk_pending_exception = rb_exc_new2(rb_eRuntimeError,
"IP is deleted");
return TCL_ERROR;
}
@@ -4398,9 +5019,16 @@ ip_rb_threadVwaitCommand(clientData, interp, objc, objv)
return TCL_ERROR;
}
+ t.tv_sec = 0;
+ t.tv_usec = (long)((EVENT_HANDLER_TIMEOUT)*1000.0);
+
while(!param->done) {
- /* rb_thread_stop(); */
- rb_thread_sleep_forever();
+ /* rb_thread_stop(); */
+ /* rb_thread_sleep_forever(); */
+ rb_thread_wait_for(t);
+ if (NIL_P(eventloop_thread)) {
+ break;
+ }
}
thr_crit_bup = rb_thread_critical;
@@ -4436,7 +5064,7 @@ ip_rb_threadVwaitCommand(clientData, interp, objc, objv)
static int
ip_rb_threadTkWaitObjCmd(clientData, interp, objc, objv)
ClientData clientData;
- Tcl_Interp *interp;
+ Tcl_Interp *interp;
int objc;
Tcl_Obj *CONST objv[];
#else /* TCL_MAJOR_VERSION < 8 */
@@ -4459,10 +5087,11 @@ ip_rb_threadTkWaitCommand(clientData, interp, objc, objv)
int ret, dummy;
int thr_crit_bup;
volatile VALUE current_thread = rb_thread_current();
+ struct timeval t;
DUMP1("Ruby's 'thread_tkwait' is called");
if (interp == (Tcl_Interp*)NULL) {
- rbtk_pending_exception = rb_exc_new2(rb_eRuntimeError,
+ rbtk_pending_exception = rb_exc_new2(rb_eRuntimeError,
"IP is deleted");
return TCL_ERROR;
}
@@ -4470,6 +5099,8 @@ ip_rb_threadTkWaitCommand(clientData, interp, objc, objv)
if (rb_thread_alone() || eventloop_thread == current_thread) {
#if TCL_MAJOR_VERSION >= 8
DUMP1("call ip_rbTkWaitObjCmd");
+ DUMP2("eventloop_thread %lx", eventloop_thread);
+ DUMP2("current_thread %lx", current_thread);
return ip_rbTkWaitObjCmd(clientData, interp, objc, objv);
#else /* TCL_MAJOR_VERSION < 8 */
DUMP1("call rb_VwaitCommand");
@@ -4491,12 +5122,12 @@ ip_rb_threadTkWaitCommand(clientData, interp, objc, objv)
#if TCL_MAJOR_VERSION >= 8
Tcl_AppendResult(interp, "wrong number of arguments: should be \"",
- Tcl_GetStringFromObj(objv[0], &dummy),
- " variable|visibility|window name\"",
+ Tcl_GetStringFromObj(objv[0], &dummy),
+ " variable|visibility|window name\"",
(char *) NULL);
#else /* TCL_MAJOR_VERSION < 8 */
Tcl_AppendResult(interp, "wrong number of arguments: should be \"",
- objv[0], " variable|visibility|window name\"",
+ objv[0], " variable|visibility|window name\"",
(char *) NULL);
#endif
@@ -4512,14 +5143,14 @@ ip_rb_threadTkWaitCommand(clientData, interp, objc, objv)
thr_crit_bup = rb_thread_critical;
rb_thread_critical = Qtrue;
/*
- if (Tcl_GetIndexFromObj(interp, objv[1],
- (CONST84 char **)optionStrings,
+ if (Tcl_GetIndexFromObj(interp, objv[1],
+ (CONST84 char **)optionStrings,
"option", 0, &index) != TCL_OK) {
return TCL_ERROR;
}
*/
- ret = Tcl_GetIndexFromObj(interp, objv[1],
- (CONST84 char **)optionStrings,
+ ret = Tcl_GetIndexFromObj(interp, objv[1],
+ (CONST84 char **)optionStrings,
"option", 0, &index);
rb_thread_critical = thr_crit_bup;
@@ -4544,7 +5175,7 @@ ip_rb_threadTkWaitCommand(clientData, interp, objc, objv)
index = TKWAIT_WINDOW;
} else {
Tcl_AppendResult(interp, "bad option \"", objv[1],
- "\": must be variable, visibility, or window",
+ "\": must be variable, visibility, or window",
(char *) NULL);
Tcl_Release(tkwin);
Tcl_Release(interp);
@@ -4578,7 +5209,7 @@ ip_rb_threadTkWaitCommand(clientData, interp, objc, objv)
case TKWAIT_VARIABLE:
thr_crit_bup = rb_thread_critical;
rb_thread_critical = Qtrue;
- /*
+ /*
if (Tcl_TraceVar(interp, nameString,
TCL_GLOBAL_ONLY|TCL_TRACE_WRITES|TCL_TRACE_UNSETS,
rb_threadVwaitProc, (ClientData) param) != TCL_OK) {
@@ -4612,9 +5243,16 @@ ip_rb_threadTkWaitCommand(clientData, interp, objc, objv)
return TCL_ERROR;
}
+ t.tv_sec = 0;
+ t.tv_usec = (long)((EVENT_HANDLER_TIMEOUT)*1000.0);
+
while(!param->done) {
- /* rb_thread_stop(); */
- rb_thread_sleep_forever();
+ /* rb_thread_stop(); */
+ /* rb_thread_sleep_forever(); */
+ rb_thread_wait_for(t);
+ if (NIL_P(eventloop_thread)) {
+ break;
+ }
}
thr_crit_bup = rb_thread_critical;
@@ -4659,8 +5297,8 @@ ip_rb_threadTkWaitCommand(clientData, interp, objc, objv)
#endif
if (window == NULL) {
- Tcl_AppendResult(interp, ": thread_tkwait: ",
- "no main-window (not Tk application?)",
+ Tcl_AppendResult(interp, ": thread_tkwait: ",
+ "no main-window (not Tk application?)",
(char*)NULL);
rb_thread_critical = thr_crit_bup;
@@ -4691,10 +5329,17 @@ ip_rb_threadTkWaitCommand(clientData, interp, objc, objv)
rb_thread_critical = thr_crit_bup;
+ t.tv_sec = 0;
+ t.tv_usec = (long)((EVENT_HANDLER_TIMEOUT)*1000.0);
+
while(param->done != TKWAIT_MODE_VISIBILITY) {
- if (param->done == TKWAIT_MODE_DESTROY) break;
- /* rb_thread_stop(); */
- rb_thread_sleep_forever();
+ if (param->done == TKWAIT_MODE_DESTROY) break;
+ /* rb_thread_stop(); */
+ /* rb_thread_sleep_forever(); */
+ rb_thread_wait_for(t);
+ if (NIL_P(eventloop_thread)) {
+ break;
+ }
}
thr_crit_bup = rb_thread_critical;
@@ -4704,7 +5349,7 @@ ip_rb_threadTkWaitCommand(clientData, interp, objc, objv)
if (param->done != TKWAIT_MODE_DESTROY) {
Tk_DeleteEventHandler(window,
VisibilityChangeMask|StructureNotifyMask,
- rb_threadWaitVisibilityProc,
+ rb_threadWaitVisibilityProc,
(ClientData) param);
}
@@ -4777,8 +5422,8 @@ ip_rb_threadTkWaitCommand(clientData, interp, objc, objv)
#endif
if (window == NULL) {
- Tcl_AppendResult(interp, ": thread_tkwait: ",
- "no main-window (not Tk application?)",
+ Tcl_AppendResult(interp, ": thread_tkwait: ",
+ "no main-window (not Tk application?)",
(char*)NULL);
rb_thread_critical = thr_crit_bup;
@@ -4806,9 +5451,16 @@ ip_rb_threadTkWaitCommand(clientData, interp, objc, objv)
rb_thread_critical = thr_crit_bup;
+ t.tv_sec = 0;
+ t.tv_usec = (long)((EVENT_HANDLER_TIMEOUT)*1000.0);
+
while(param->done != TKWAIT_MODE_DESTROY) {
- /* rb_thread_stop(); */
- rb_thread_sleep_forever();
+ /* rb_thread_stop(); */
+ /* rb_thread_sleep_forever(); */
+ rb_thread_wait_for(t);
+ if (NIL_P(eventloop_thread)) {
+ break;
+ }
}
Tcl_Release(window);
@@ -4918,11 +5570,13 @@ delete_slaves(ip)
slave = Tcl_GetSlave(ip, slave_name);
if (slave == (Tcl_Interp*)NULL) continue;
- /* call ip_finalize */
- ip_finalize(slave);
+ if (!Tcl_InterpDeleted(slave)) {
+ /* call ip_finalize */
+ ip_finalize(slave);
- Tcl_DeleteInterp(slave);
- /* Tcl_Release(slave); */
+ Tcl_DeleteInterp(slave);
+ /* Tcl_Release(slave); */
+ }
}
}
@@ -4950,7 +5604,7 @@ delete_slaves(ip)
if (!Tcl_InterpDeleted(ip) && Tcl_Eval(ip, "interp slaves") == TCL_OK) {
slave_list = ip->result;
- if (Tcl_SplitList((Tcl_Interp*)NULL,
+ if (Tcl_SplitList((Tcl_Interp*)NULL,
slave_list, &argc, &argv) == TCL_OK) {
for(i = 0; i < argc; i++) {
slave_name = argv[i];
@@ -4960,10 +5614,12 @@ delete_slaves(ip)
slave = Tcl_GetSlave(ip, slave_name);
if (slave == (Tcl_Interp*)NULL) continue;
- /* call ip_finalize */
- ip_finalize(slave);
+ if (!Tcl_InterpDeleted(slave)) {
+ /* call ip_finalize */
+ ip_finalize(slave);
- Tcl_DeleteInterp(slave);
+ Tcl_DeleteInterp(slave);
+ }
}
}
}
@@ -4975,26 +5631,39 @@ delete_slaves(ip)
/* finalize operation */
static void
+#ifdef HAVE_PROTOTYPES
+lib_mark_at_exit(VALUE self)
+#else
lib_mark_at_exit(self)
VALUE self;
+#endif
{
at_exit = 1;
}
static int
#if TCL_MAJOR_VERSION >= 8
+#ifdef HAVE_PROTOTYPES
+ip_null_proc(ClientData clientData, Tcl_Interp *interp,
+ int argc, Tcl_Obj *CONST argv[])
+#else
ip_null_proc(clientData, interp, argc, argv)
ClientData clientData;
- Tcl_Interp *interp;
+ Tcl_Interp *interp;
int argc;
Tcl_Obj *CONST argv[];
+#endif
#else /* TCL_MAJOR_VERSION < 8 */
+#ifdef HAVE_PROTOTYPES
+ip_null_proc(ClientData clientData, Tcl_Interp *interp, int argc, char *argv[])
+#else
ip_null_proc(clientData, interp, argc, argv)
ClientData clientData;
Tcl_Interp *interp;
int argc;
char *argv[];
#endif
+#endif
{
Tcl_ResetResult(interp);
return TCL_OK;
@@ -5008,10 +5677,10 @@ ip_finalize(ip)
int thr_crit_bup;
VALUE rb_debug_bup, rb_verbose_bup;
- /* When ruby is exiting, printing debug messages in some callback
- operations from Tcl-IP sometimes cause SEGV. I don't know the
+ /* When ruby is exiting, printing debug messages in some callback
+ operations from Tcl-IP sometimes cause SEGV. I don't know the
reason. But I got SEGV when calling "rb_io_write(rb_stdout, ...)".
- So, in some part of this function, debug mode and verbose mode
+ So, in some part of this function, debug mode and verbose mode
are disabled. If you know the reason, please fix it.
-- Hidetoshi NAGAI (nagai@ai.kyutech.ac.jp) */
@@ -5047,33 +5716,35 @@ ip_finalize(ip)
/* shut off some connections from Tcl-proc to Ruby */
if (at_exit) {
- /* NOTE: Only when at exit.
- Because, ruby removes objects, which depends on the deleted
- interpreter, on some callback operations.
+ /* NOTE: Only when at exit.
+ Because, ruby removes objects, which depends on the deleted
+ interpreter, on some callback operations.
It is important for GC. */
#if TCL_MAJOR_VERSION >= 8
- Tcl_CreateObjCommand(ip, "ruby", ip_null_proc,
+ Tcl_CreateObjCommand(ip, "ruby", ip_null_proc,
(ClientData)NULL, (Tcl_CmdDeleteProc *)NULL);
- Tcl_CreateObjCommand(ip, "ruby_eval", ip_null_proc,
+ Tcl_CreateObjCommand(ip, "ruby_eval", ip_null_proc,
(ClientData)NULL, (Tcl_CmdDeleteProc *)NULL);
- Tcl_CreateObjCommand(ip, "ruby_cmd", ip_null_proc,
+ Tcl_CreateObjCommand(ip, "ruby_cmd", ip_null_proc,
(ClientData)NULL, (Tcl_CmdDeleteProc *)NULL);
#else /* TCL_MAJOR_VERSION < 8 */
- Tcl_CreateCommand(ip, "ruby", ip_null_proc,
+ Tcl_CreateCommand(ip, "ruby", ip_null_proc,
(ClientData)NULL, (Tcl_CmdDeleteProc *)NULL);
- Tcl_CreateCommand(ip, "ruby_eval", ip_null_proc,
+ Tcl_CreateCommand(ip, "ruby_eval", ip_null_proc,
(ClientData)NULL, (Tcl_CmdDeleteProc *)NULL);
- Tcl_CreateCommand(ip, "ruby_cmd", ip_null_proc,
+ Tcl_CreateCommand(ip, "ruby_cmd", ip_null_proc,
(ClientData)NULL, (Tcl_CmdDeleteProc *)NULL);
#endif
- /*
+ /*
rb_thread_critical = thr_crit_bup;
return;
*/
}
/* delete root widget */
-#if 0 /* cause SEGV on Ruby 1.9 */
+#ifdef RUBY_VM
+ /* cause SEGV on Ruby 1.9 */
+#else
DUMP1("check `destroy'");
if (Tcl_GetCommandInfo(ip, "destroy", &info)) {
DUMP1("call `destroy .'");
@@ -5084,13 +5755,13 @@ ip_finalize(ip)
DUMP1("destroy root widget");
if (tk_stubs_init_p() && Tk_MainWindow(ip) != (Tk_Window)NULL) {
/*
- * On Ruby VM, this code piece may be not called, because
- * Tk_MainWindow() returns NULL on a native thread except
+ * On Ruby VM, this code piece may be not called, because
+ * Tk_MainWindow() returns NULL on a native thread except
* the thread which initialize Tk environment.
* Of course, that is a problem. But maybe not so serious.
* All widgets are destroyed when the Tcl interp is deleted.
- * At then, Ruby may raise exceptions on the delete hook
- * callbacks which registered for the deleted widgets, and
+ * At then, Ruby may raise exceptions on the delete hook
+ * callbacks which registered for the deleted widgets, and
* may fail to clear objects which depends on the widgets.
* Although it is the problem, it is possibly avoidable by
* rescuing exceptions and the finalize hook of the interp.
@@ -5151,15 +5822,15 @@ ip_free(ptr)
thr_crit_bup = rb_thread_critical;
rb_thread_critical = Qtrue;
- if ( ptr->ip != (Tcl_Interp*)NULL
+ if ( ptr->ip != (Tcl_Interp*)NULL
&& !Tcl_InterpDeleted(ptr->ip)
- && Tcl_GetMaster(ptr->ip) != (Tcl_Interp*)NULL
+ && Tcl_GetMaster(ptr->ip) != (Tcl_Interp*)NULL
&& !Tcl_InterpDeleted(Tcl_GetMaster(ptr->ip)) ) {
- DUMP2("parent IP(%lx) is not deleted",
+ DUMP2("parent IP(%lx) is not deleted",
(unsigned long)Tcl_GetMaster(ptr->ip));
- DUMP2("slave IP(%lx) should not be deleted",
+ DUMP2("slave IP(%lx) should not be deleted",
(unsigned long)ptr->ip);
- free(ptr);
+ xfree(ptr);
/* ckfree((char*)ptr); */
rb_thread_critical = thr_crit_bup;
return;
@@ -5167,18 +5838,21 @@ ip_free(ptr)
if (ptr->ip == (Tcl_Interp*)NULL) {
DUMP1("ip_free is called for deleted IP");
- free(ptr);
+ xfree(ptr);
/* ckfree((char*)ptr); */
rb_thread_critical = thr_crit_bup;
return;
}
- ip_finalize(ptr->ip);
- Tcl_DeleteInterp(ptr->ip);
- Tcl_Release(ptr->ip);
+ if (!Tcl_InterpDeleted(ptr->ip)) {
+ ip_finalize(ptr->ip);
+
+ Tcl_DeleteInterp(ptr->ip);
+ Tcl_Release(ptr->ip);
+ }
ptr->ip = (Tcl_Interp*)NULL;
- free(ptr);
+ xfree(ptr);
/* ckfree((char*)ptr); */
rb_thread_critical = thr_crit_bup;
@@ -5205,71 +5879,137 @@ ip_replace_wait_commands(interp, mainWin)
/* replace 'vwait' command */
#if TCL_MAJOR_VERSION >= 8
DUMP1("Tcl_CreateObjCommand(\"vwait\")");
- Tcl_CreateObjCommand(interp, "vwait", ip_rbVwaitObjCmd,
- (ClientData)mainWin, (Tcl_CmdDeleteProc *)NULL);
+ Tcl_CreateObjCommand(interp, "vwait", ip_rbVwaitObjCmd,
+ (ClientData)NULL, (Tcl_CmdDeleteProc *)NULL);
#else /* TCL_MAJOR_VERSION < 8 */
DUMP1("Tcl_CreateCommand(\"vwait\")");
- Tcl_CreateCommand(interp, "vwait", ip_rbVwaitCommand,
- (ClientData)mainWin, (Tcl_CmdDeleteProc *)NULL);
+ Tcl_CreateCommand(interp, "vwait", ip_rbVwaitCommand,
+ (ClientData)NULL, (Tcl_CmdDeleteProc *)NULL);
#endif
/* replace 'tkwait' command */
#if TCL_MAJOR_VERSION >= 8
DUMP1("Tcl_CreateObjCommand(\"tkwait\")");
- Tcl_CreateObjCommand(interp, "tkwait", ip_rbTkWaitObjCmd,
+ Tcl_CreateObjCommand(interp, "tkwait", ip_rbTkWaitObjCmd,
(ClientData)mainWin, (Tcl_CmdDeleteProc *)NULL);
#else /* TCL_MAJOR_VERSION < 8 */
DUMP1("Tcl_CreateCommand(\"tkwait\")");
- Tcl_CreateCommand(interp, "tkwait", ip_rbTkWaitCommand,
+ Tcl_CreateCommand(interp, "tkwait", ip_rbTkWaitCommand,
(ClientData)mainWin, (Tcl_CmdDeleteProc *)NULL);
#endif
/* add 'thread_vwait' command */
#if TCL_MAJOR_VERSION >= 8
DUMP1("Tcl_CreateObjCommand(\"thread_vwait\")");
- Tcl_CreateObjCommand(interp, "thread_vwait", ip_rb_threadVwaitObjCmd,
- (ClientData)mainWin, (Tcl_CmdDeleteProc *)NULL);
+ Tcl_CreateObjCommand(interp, "thread_vwait", ip_rb_threadVwaitObjCmd,
+ (ClientData)NULL, (Tcl_CmdDeleteProc *)NULL);
#else /* TCL_MAJOR_VERSION < 8 */
DUMP1("Tcl_CreateCommand(\"thread_vwait\")");
- Tcl_CreateCommand(interp, "thread_vwait", ip_rb_threadVwaitCommand,
- (ClientData)mainWin, (Tcl_CmdDeleteProc *)NULL);
+ Tcl_CreateCommand(interp, "thread_vwait", ip_rb_threadVwaitCommand,
+ (ClientData)NULL, (Tcl_CmdDeleteProc *)NULL);
#endif
/* add 'thread_tkwait' command */
#if TCL_MAJOR_VERSION >= 8
DUMP1("Tcl_CreateObjCommand(\"thread_tkwait\")");
- Tcl_CreateObjCommand(interp, "thread_tkwait", ip_rb_threadTkWaitObjCmd,
+ Tcl_CreateObjCommand(interp, "thread_tkwait", ip_rb_threadTkWaitObjCmd,
(ClientData)mainWin, (Tcl_CmdDeleteProc *)NULL);
#else /* TCL_MAJOR_VERSION < 8 */
DUMP1("Tcl_CreateCommand(\"thread_tkwait\")");
- Tcl_CreateCommand(interp, "thread_tkwait", ip_rb_threadTkWaitCommand,
+ Tcl_CreateCommand(interp, "thread_tkwait", ip_rb_threadTkWaitCommand,
(ClientData)mainWin, (Tcl_CmdDeleteProc *)NULL);
#endif
/* replace 'update' command */
#if TCL_MAJOR_VERSION >= 8
DUMP1("Tcl_CreateObjCommand(\"update\")");
- Tcl_CreateObjCommand(interp, "update", ip_rbUpdateObjCmd,
+ Tcl_CreateObjCommand(interp, "update", ip_rbUpdateObjCmd,
(ClientData)mainWin, (Tcl_CmdDeleteProc *)NULL);
#else /* TCL_MAJOR_VERSION < 8 */
DUMP1("Tcl_CreateCommand(\"update\")");
- Tcl_CreateCommand(interp, "update", ip_rbUpdateCommand,
+ Tcl_CreateCommand(interp, "update", ip_rbUpdateCommand,
(ClientData)mainWin, (Tcl_CmdDeleteProc *)NULL);
#endif
/* add 'thread_update' command */
#if TCL_MAJOR_VERSION >= 8
DUMP1("Tcl_CreateObjCommand(\"thread_update\")");
- Tcl_CreateObjCommand(interp, "thread_update", ip_rb_threadUpdateObjCmd,
+ Tcl_CreateObjCommand(interp, "thread_update", ip_rb_threadUpdateObjCmd,
(ClientData)mainWin, (Tcl_CmdDeleteProc *)NULL);
#else /* TCL_MAJOR_VERSION < 8 */
DUMP1("Tcl_CreateCommand(\"thread_update\")");
- Tcl_CreateCommand(interp, "thread_update", ip_rb_threadUpdateCommand,
+ Tcl_CreateCommand(interp, "thread_update", ip_rb_threadUpdateCommand,
(ClientData)mainWin, (Tcl_CmdDeleteProc *)NULL);
#endif
}
+#if TCL_MAJOR_VERSION >= 8
+static int
+ip_rb_replaceSlaveTkCmdsObjCmd(clientData, interp, objc, objv)
+ ClientData clientData;
+ Tcl_Interp *interp;
+ int objc;
+ Tcl_Obj *CONST objv[];
+#else /* TCL_MAJOR_VERSION < 8 */
+static int
+ip_rb_replaceSlaveTkCmdsCommand(clientData, interp, objc, objv)
+ ClientData clientData;
+ Tcl_Interp *interp;
+ int objc;
+ char *objv[];
+#endif
+{
+ char *slave_name;
+ Tcl_Interp *slave;
+ Tk_Window mainWin;
+
+ if (objc != 2) {
+#ifdef Tcl_WrongNumArgs
+ Tcl_WrongNumArgs(interp, 1, objv, "slave_name");
+#else
+ char *nameString;
+#if TCL_MAJOR_VERSION >= 8
+ nameString = Tcl_GetStringFromObj(objv[0], (int*)NULL);
+#else /* TCL_MAJOR_VERSION < 8 */
+ nameString = objv[0];
+#endif
+ Tcl_AppendResult(interp, "wrong number of arguments: should be \"",
+ nameString, " slave_name\"", (char *) NULL);
+#endif
+ }
+
+#if TCL_MAJOR_VERSION >= 8
+ slave_name = Tcl_GetStringFromObj(objv[1], (int*)NULL);
+#else
+ slave_name = objv[1];
+#endif
+
+ slave = Tcl_GetSlave(interp, slave_name);
+ if (slave == NULL) {
+ Tcl_AppendResult(interp, "cannot find slave \"",
+ slave_name, "\"", (char *)NULL);
+ return TCL_ERROR;
+ }
+ mainWin = Tk_MainWindow(slave);
+
+ /* replace 'exit' command --> 'interp_exit' command */
+#if TCL_MAJOR_VERSION >= 8
+ DUMP1("Tcl_CreateObjCommand(\"exit\") --> \"interp_exit\"");
+ Tcl_CreateObjCommand(slave, "exit", ip_InterpExitObjCmd,
+ (ClientData)mainWin, (Tcl_CmdDeleteProc *)NULL);
+#else /* TCL_MAJOR_VERSION < 8 */
+ DUMP1("Tcl_CreateCommand(\"exit\") --> \"interp_exit\"");
+ Tcl_CreateCommand(slave, "exit", ip_InterpExitCommand,
+ (ClientData)mainWin, (Tcl_CmdDeleteProc *)NULL);
+#endif
+
+ /* replace vwait and tkwait */
+ ip_replace_wait_commands(slave, mainWin);
+
+ return TCL_OK;
+}
+
#if TCL_MAJOR_VERSION >= 8
static int ip_rbNamespaceObjCmd _((ClientData, Tcl_Interp *, int,
@@ -5277,7 +6017,7 @@ static int ip_rbNamespaceObjCmd _((ClientData, Tcl_Interp *, int,
static int
ip_rbNamespaceObjCmd(clientData, interp, objc, objv)
ClientData clientData;
- Tcl_Interp *interp;
+ Tcl_Interp *interp;
int objc;
Tcl_Obj *CONST objv[];
{
@@ -5286,13 +6026,13 @@ ip_rbNamespaceObjCmd(clientData, interp, objc, objv)
if (!Tcl_GetCommandInfo(interp, "__orig_namespace_command__", &(info))) {
Tcl_ResetResult(interp);
- Tcl_AppendResult(interp,
+ Tcl_AppendResult(interp,
"invalid command name \"namespace\"", (char*)NULL);
return TCL_ERROR;
}
rbtk_eventloop_depth++;
- DUMP2("namespace wrapper enter depth == %d", rbtk_eventloop_depth);
+ /* DUMP2("namespace wrapper enter depth == %d", rbtk_eventloop_depth); */
if (info.isNativeObjectProc) {
ret = (*(info.objProc))(info.objClientData, interp, objc, objv);
@@ -5313,7 +6053,7 @@ ip_rbNamespaceObjCmd(clientData, interp, objc, objv)
}
argv[objc] = (char *)NULL;
- ret = (*(info.proc))(info.clientData, interp,
+ ret = (*(info.proc))(info.clientData, interp,
objc, (CONST84 char **)argv);
#if 0 /* use Tcl_EventuallyFree */
@@ -5328,7 +6068,7 @@ ip_rbNamespaceObjCmd(clientData, interp, objc, objv)
#endif
}
- DUMP2("namespace wrapper exit depth == %d", rbtk_eventloop_depth);
+ /* DUMP2("namespace wrapper exit depth == %d", rbtk_eventloop_depth); */
rbtk_eventloop_depth--;
return ret;
@@ -5337,7 +6077,7 @@ ip_rbNamespaceObjCmd(clientData, interp, objc, objv)
static void
ip_wrap_namespace_command(interp)
- Tcl_Interp *interp;
+ Tcl_Interp *interp;
{
#if TCL_MAJOR_VERSION >= 8
Tcl_CmdInfo orig_info;
@@ -5347,16 +6087,16 @@ ip_wrap_namespace_command(interp)
}
if (orig_info.isNativeObjectProc) {
- Tcl_CreateObjCommand(interp, "__orig_namespace_command__",
- orig_info.objProc, orig_info.objClientData,
+ Tcl_CreateObjCommand(interp, "__orig_namespace_command__",
+ orig_info.objProc, orig_info.objClientData,
orig_info.deleteProc);
} else {
- Tcl_CreateCommand(interp, "__orig_namespace_command__",
- orig_info.proc, orig_info.clientData,
+ Tcl_CreateCommand(interp, "__orig_namespace_command__",
+ orig_info.proc, orig_info.clientData,
orig_info.deleteProc);
}
- Tcl_CreateObjCommand(interp, "namespace", ip_rbNamespaceObjCmd,
+ Tcl_CreateObjCommand(interp, "namespace", ip_rbNamespaceObjCmd,
(ClientData) 0, (Tcl_CmdDeleteProc *)NULL);
#endif
}
@@ -5364,9 +6104,13 @@ ip_wrap_namespace_command(interp)
/* call when interpreter is deleted */
static void
+#ifdef HAVE_PROTOTYPES
+ip_CallWhenDeleted(ClientData clientData, Tcl_Interp *ip)
+#else
ip_CallWhenDeleted(clientData, ip)
ClientData clientData;
Tcl_Interp *ip;
+#endif
{
int thr_crit_bup;
/* Tk_Window main_win = (Tk_Window) clientData; */
@@ -5381,6 +6125,8 @@ ip_CallWhenDeleted(clientData, ip)
rb_thread_critical = thr_crit_bup;
}
+/*--------------------------------------------------------*/
+
/* initialize interpreter */
static VALUE
ip_init(argc, argv, self)
@@ -5397,8 +6143,8 @@ ip_init(argc, argv, self)
/* security check */
if (rb_safe_level() >= 4) {
- rb_raise(rb_eSecurityError,
- "Cannot create a TclTkIp object at level %d",
+ rb_raise(rb_eSecurityError,
+ "Cannot create a TclTkIp object at level %d",
rb_safe_level());
}
@@ -5441,7 +6187,7 @@ ip_init(argc, argv, self)
#if TCL_MAJOR_VERSION >= 8
#if TCL_NAMESPACE_DEBUG
DUMP1("get current namespace");
- if ((ptr->default_ns = Tcl_GetCurrentNamespace(ptr->ip))
+ if ((ptr->default_ns = Tcl_GetCurrentNamespace(ptr->ip))
== (Tcl_Namespace*)NULL) {
rb_raise(rb_eRuntimeError, "a new Tk interpreter has a NULL namespace");
}
@@ -5452,16 +6198,29 @@ ip_init(argc, argv, self)
DUMP2("IP ref_count = %d", ptr->ref_count);
current_interp = ptr->ip;
- ptr->has_orig_exit
+ ptr->has_orig_exit
= Tcl_GetCommandInfo(ptr->ip, "exit", &(ptr->orig_exit_info));
- /* from Tcl_AppInit() */
- DUMP1("Tcl_Init");
- if (Tcl_Init(ptr->ip) == TCL_ERROR) {
- rb_raise(rb_eRuntimeError, "%s", Tcl_GetStringResult(ptr->ip));
+#if defined CREATE_RUBYTK_KIT || defined CREATE_RUBYKIT
+ call_tclkit_init_script(current_interp);
+
+# if 10 * TCL_MAJOR_VERSION + TCL_MINOR_VERSION > 84
+ {
+ Tcl_DString encodingName;
+ Tcl_GetEncodingNameFromEnvironment(&encodingName);
+ if (strcmp(Tcl_DStringValue(&encodingName), Tcl_GetEncodingName(NULL))) {
+ /* fails, so we set a variable and do it in the boot.tcl script */
+ Tcl_SetSystemEncoding(NULL, Tcl_DStringValue(&encodingName));
+ }
+ Tcl_SetVar(current_interp, "tclkit_system_encoding", Tcl_DStringValue(&encodingName), 0);
+ Tcl_DStringFree(&encodingName);
}
+# endif
+#endif
/* set variables */
+ Tcl_Eval(ptr->ip, "set argc 0; set argv {}; set argv0 tcltklib.so");
+
cnt = rb_scan_args(argc, argv, "02", &argv0, &opts);
switch(cnt) {
case 2:
@@ -5472,6 +6231,7 @@ ip_init(argc, argv, self)
} else {
/* Tcl_SetVar(ptr->ip, "argv", StringValuePtr(opts), 0); */
Tcl_SetVar(ptr->ip, "argv", StringValuePtr(opts), TCL_GLOBAL_ONLY);
+ Tcl_Eval(ptr->ip, "set argc [llength $argv]");
}
case 1:
/* argv0 */
@@ -5481,7 +6241,7 @@ ip_init(argc, argv, self)
Tcl_SetVar(ptr->ip, "argv0", "ruby", TCL_GLOBAL_ONLY);
} else {
/* Tcl_SetVar(ptr->ip, "argv0", StringValuePtr(argv0), 0); */
- Tcl_SetVar(ptr->ip, "argv0", StringValuePtr(argv0),
+ Tcl_SetVar(ptr->ip, "argv0", StringValuePtr(argv0),
TCL_GLOBAL_ONLY);
}
}
@@ -5491,6 +6251,27 @@ ip_init(argc, argv, self)
}
/* from Tcl_AppInit() */
+ DUMP1("Tcl_Init");
+#if (defined CREATE_RUBYTK_KIT || defined CREATE_RUBYKIT) && (!defined KIT_LITE) && (10 * TCL_MAJOR_VERSION + TCL_MINOR_VERSION == 85)
+ /*************************************************************************/
+ /* FIX ME (2010/06/28) */
+ /* Don't use ::chan command for Mk4tcl + tclvfs-1.4 on Tcl8.5. */
+ /* It fails to access VFS files because of vfs::zstream. */
+ /* So, force to use ::rechan by temporaly hiding ::chan. */
+ /*************************************************************************/
+ Tcl_Eval(ptr->ip, "catch {rename ::chan ::_tmp_chan}");
+ if (Tcl_Init(ptr->ip) == TCL_ERROR) {
+ rb_raise(rb_eRuntimeError, "%s", Tcl_GetStringResult(ptr->ip));
+ }
+ Tcl_Eval(ptr->ip, "catch {rename ::_tmp_chan ::chan}");
+#else
+ if (Tcl_Init(ptr->ip) == TCL_ERROR) {
+ rb_raise(rb_eRuntimeError, "%s", Tcl_GetStringResult(ptr->ip));
+ }
+#endif
+
+ st = ruby_tcl_stubs_init();
+ /* from Tcl_AppInit() */
if (with_tk) {
DUMP1("Tk_Init");
st = ruby_tk_stubs_init(ptr->ip);
@@ -5500,10 +6281,10 @@ ip_init(argc, argv, self)
case NO_Tk_Init:
rb_raise(rb_eLoadError, "tcltklib: can't find Tk_Init()");
case FAIL_Tk_Init:
- rb_raise(rb_eRuntimeError, "tcltklib: fail to Tk_Init(). %s",
+ rb_raise(rb_eRuntimeError, "tcltklib: fail to Tk_Init(). %s",
Tcl_GetStringResult(ptr->ip));
case FAIL_Tk_InitStubs:
- rb_raise(rb_eRuntimeError, "tcltklib: fail to Tk_InitStubs(). %s",
+ rb_raise(rb_eRuntimeError, "tcltklib: fail to Tk_InitStubs(). %s",
Tcl_GetStringResult(ptr->ip));
default:
rb_raise(rb_eRuntimeError, "tcltklib: unknown error(%d) on ruby_tk_stubs_init", st);
@@ -5552,23 +6333,23 @@ ip_init(argc, argv, self)
/* add 'interp_exit', 'ruby_exit' and replace 'exit' command */
#if TCL_MAJOR_VERSION >= 8
DUMP1("Tcl_CreateObjCommand(\"interp_exit\")");
- Tcl_CreateObjCommand(ptr->ip, "interp_exit", ip_InterpExitObjCmd,
+ Tcl_CreateObjCommand(ptr->ip, "interp_exit", ip_InterpExitObjCmd,
(ClientData)mainWin, (Tcl_CmdDeleteProc *)NULL);
DUMP1("Tcl_CreateObjCommand(\"ruby_exit\")");
- Tcl_CreateObjCommand(ptr->ip, "ruby_exit", ip_RubyExitObjCmd,
+ Tcl_CreateObjCommand(ptr->ip, "ruby_exit", ip_RubyExitObjCmd,
(ClientData)mainWin, (Tcl_CmdDeleteProc *)NULL);
DUMP1("Tcl_CreateObjCommand(\"exit\") --> \"ruby_exit\"");
- Tcl_CreateObjCommand(ptr->ip, "exit", ip_RubyExitObjCmd,
+ Tcl_CreateObjCommand(ptr->ip, "exit", ip_RubyExitObjCmd,
(ClientData)mainWin, (Tcl_CmdDeleteProc *)NULL);
#else /* TCL_MAJOR_VERSION < 8 */
DUMP1("Tcl_CreateCommand(\"interp_exit\")");
- Tcl_CreateCommand(ptr->ip, "interp_exit", ip_InterpExitCommand,
+ Tcl_CreateCommand(ptr->ip, "interp_exit", ip_InterpExitCommand,
(ClientData)mainWin, (Tcl_CmdDeleteProc *)NULL);
DUMP1("Tcl_CreateCommand(\"ruby_exit\")");
- Tcl_CreateCommand(ptr->ip, "ruby_exit", ip_RubyExitCommand,
+ Tcl_CreateCommand(ptr->ip, "ruby_exit", ip_RubyExitCommand,
(ClientData)mainWin, (Tcl_CmdDeleteProc *)NULL);
DUMP1("Tcl_CreateCommand(\"exit\") --> \"ruby_exit\"");
- Tcl_CreateCommand(ptr->ip, "exit", ip_RubyExitCommand,
+ Tcl_CreateCommand(ptr->ip, "exit", ip_RubyExitCommand,
(ClientData)mainWin, (Tcl_CmdDeleteProc *)NULL);
#endif
@@ -5578,6 +6359,17 @@ ip_init(argc, argv, self)
/* wrap namespace command */
ip_wrap_namespace_command(ptr->ip);
+ /* define command to replace commands which depend on slave's MainWindow */
+#if TCL_MAJOR_VERSION >= 8
+ Tcl_CreateObjCommand(ptr->ip, "__replace_slave_tk_commands__",
+ ip_rb_replaceSlaveTkCmdsObjCmd,
+ (ClientData)NULL, (Tcl_CmdDeleteProc *)NULL);
+#else /* TCL_MAJOR_VERSION < 8 */
+ Tcl_CreateCommand(ptr->ip, "__replace_slave_tk_commands__",
+ ip_rb_replaceSlaveTkCmdsCommand,
+ (ClientData)NULL, (Tcl_CmdDeleteProc *)NULL);
+#endif
+
/* set finalizer */
Tcl_CallWhenDeleted(ptr->ip, ip_CallWhenDeleted, (ClientData)mainWin);
@@ -5605,7 +6397,7 @@ ip_create_slave_core(interp, argc, argv)
/* ip is deleted? */
if (deleted_ip(master)) {
- return rb_exc_new2(rb_eRuntimeError,
+ return rb_exc_new2(rb_eRuntimeError,
"deleted master cannot create a new slave");
}
@@ -5650,7 +6442,7 @@ ip_create_slave_core(interp, argc, argv)
slave->ip = Tcl_CreateSlave(master->ip, StringValuePtr(name), safe);
if (slave->ip == NULL) {
rb_thread_critical = thr_crit_bup;
- return rb_exc_new2(rb_eRuntimeError,
+ return rb_exc_new2(rb_eRuntimeError,
"fail to create the new slave interpreter");
}
#if TCL_MAJOR_VERSION >= 8
@@ -5660,18 +6452,18 @@ ip_create_slave_core(interp, argc, argv)
#endif
rbtk_preserve_ip(slave);
- slave->has_orig_exit
+ slave->has_orig_exit
= Tcl_GetCommandInfo(slave->ip, "exit", &(slave->orig_exit_info));
/* replace 'exit' command --> 'interp_exit' command */
mainWin = (tk_stubs_init_p())? Tk_MainWindow(slave->ip): (Tk_Window)NULL;
#if TCL_MAJOR_VERSION >= 8
DUMP1("Tcl_CreateObjCommand(\"exit\") --> \"interp_exit\"");
- Tcl_CreateObjCommand(slave->ip, "exit", ip_InterpExitObjCmd,
+ Tcl_CreateObjCommand(slave->ip, "exit", ip_InterpExitObjCmd,
(ClientData)mainWin, (Tcl_CmdDeleteProc *)NULL);
#else /* TCL_MAJOR_VERSION < 8 */
DUMP1("Tcl_CreateCommand(\"exit\") --> \"interp_exit\"");
- Tcl_CreateCommand(slave->ip, "exit", ip_InterpExitCommand,
+ Tcl_CreateCommand(slave->ip, "exit", ip_InterpExitCommand,
(ClientData)mainWin, (Tcl_CmdDeleteProc *)NULL);
#endif
@@ -5681,6 +6473,17 @@ ip_create_slave_core(interp, argc, argv)
/* wrap namespace command */
ip_wrap_namespace_command(slave->ip);
+ /* define command to replace cmds which depend on slave-slave's MainWin */
+#if TCL_MAJOR_VERSION >= 8
+ Tcl_CreateObjCommand(slave->ip, "__replace_slave_tk_commands__",
+ ip_rb_replaceSlaveTkCmdsObjCmd,
+ (ClientData)NULL, (Tcl_CmdDeleteProc *)NULL);
+#else /* TCL_MAJOR_VERSION < 8 */
+ Tcl_CreateCommand(slave->ip, "__replace_slave_tk_commands__",
+ ip_rb_replaceSlaveTkCmdsCommand,
+ (ClientData)NULL, (Tcl_CmdDeleteProc *)NULL);
+#endif
+
/* set finalizer */
Tcl_CallWhenDeleted(slave->ip, ip_CallWhenDeleted, (ClientData)mainWin);
@@ -5702,7 +6505,7 @@ ip_create_slave(argc, argv, self)
/* ip is deleted? */
if (deleted_ip(master)) {
- rb_raise(rb_eRuntimeError,
+ rb_raise(rb_eRuntimeError,
"deleted master cannot create a new slave interpreter");
}
@@ -5811,7 +6614,7 @@ ip_create_console(self)
VALUE self;
{
struct tcltkip *ptr = get_ip(self);
-
+
/* ip is deleted? */
if (deleted_ip(ptr)) {
rb_raise(rb_eRuntimeError, "interpreter is deleted");
@@ -5829,16 +6632,16 @@ ip_make_safe_core(interp, argc, argv)
{
struct tcltkip *ptr = get_ip(interp);
Tk_Window mainWin;
-
+
/* ip is deleted? */
if (deleted_ip(ptr)) {
return rb_exc_new2(rb_eRuntimeError, "interpreter is deleted");
}
if (Tcl_MakeSafe(ptr->ip) == TCL_ERROR) {
- /* return rb_exc_new2(rb_eRuntimeError,
+ /* return rb_exc_new2(rb_eRuntimeError,
Tcl_GetStringResult(ptr->ip)); */
- return create_ip_exc(interp, rb_eRuntimeError,
+ return create_ip_exc(interp, rb_eRuntimeError,
Tcl_GetStringResult(ptr->ip));
}
@@ -5848,11 +6651,11 @@ ip_make_safe_core(interp, argc, argv)
mainWin = (tk_stubs_init_p())? Tk_MainWindow(ptr->ip): (Tk_Window)NULL;
#if TCL_MAJOR_VERSION >= 8
DUMP1("Tcl_CreateObjCommand(\"exit\") --> \"interp_exit\"");
- Tcl_CreateObjCommand(ptr->ip, "exit", ip_InterpExitObjCmd,
+ Tcl_CreateObjCommand(ptr->ip, "exit", ip_InterpExitObjCmd,
(ClientData)mainWin, (Tcl_CmdDeleteProc *)NULL);
#else /* TCL_MAJOR_VERSION < 8 */
DUMP1("Tcl_CreateCommand(\"exit\") --> \"interp_exit\"");
- Tcl_CreateCommand(ptr->ip, "exit", ip_InterpExitCommand,
+ Tcl_CreateCommand(ptr->ip, "exit", ip_InterpExitCommand,
(ClientData)mainWin, (Tcl_CmdDeleteProc *)NULL);
#endif
@@ -5864,7 +6667,7 @@ ip_make_safe(self)
VALUE self;
{
struct tcltkip *ptr = get_ip(self);
-
+
/* ip is deleted? */
if (deleted_ip(ptr)) {
rb_raise(rb_eRuntimeError, "interpreter is deleted");
@@ -5879,7 +6682,7 @@ ip_is_safe_p(self)
VALUE self;
{
struct tcltkip *ptr = get_ip(self);
-
+
/* ip is deleted? */
if (deleted_ip(ptr)) {
rb_raise(rb_eRuntimeError, "interpreter is deleted");
@@ -5898,7 +6701,7 @@ ip_allow_ruby_exit_p(self)
VALUE self;
{
struct tcltkip *ptr = get_ip(self);
-
+
/* ip is deleted? */
if (deleted_ip(ptr)) {
rb_raise(rb_eRuntimeError, "interpreter is deleted");
@@ -5927,14 +6730,14 @@ ip_allow_ruby_exit_set(self, val)
}
if (Tcl_IsSafe(ptr->ip)) {
- rb_raise(rb_eSecurityError,
+ rb_raise(rb_eSecurityError,
"insecure operation on a safe interpreter");
}
/*
- * Because of cross-threading, the following line may fail to find
+ * Because of cross-threading, the following line may fail to find
* the MainWindow, even if the Tcl/Tk interpreter has one or more.
- * But it has no problem. Current implementation of both type of
+ * But it has no problem. Current implementation of both type of
* the "exit" command don't need maiinWin token.
*/
mainWin = (tk_stubs_init_p())? Tk_MainWindow(ptr->ip): (Tk_Window)NULL;
@@ -5943,11 +6746,11 @@ ip_allow_ruby_exit_set(self, val)
ptr->allow_ruby_exit = 1;
#if TCL_MAJOR_VERSION >= 8
DUMP1("Tcl_CreateObjCommand(\"exit\") --> \"ruby_exit\"");
- Tcl_CreateObjCommand(ptr->ip, "exit", ip_RubyExitObjCmd,
+ Tcl_CreateObjCommand(ptr->ip, "exit", ip_RubyExitObjCmd,
(ClientData)mainWin, (Tcl_CmdDeleteProc *)NULL);
#else /* TCL_MAJOR_VERSION < 8 */
DUMP1("Tcl_CreateCommand(\"exit\") --> \"ruby_exit\"");
- Tcl_CreateCommand(ptr->ip, "exit", ip_RubyExitCommand,
+ Tcl_CreateCommand(ptr->ip, "exit", ip_RubyExitCommand,
(ClientData)mainWin, (Tcl_CmdDeleteProc *)NULL);
#endif
return Qtrue;
@@ -5956,11 +6759,11 @@ ip_allow_ruby_exit_set(self, val)
ptr->allow_ruby_exit = 0;
#if TCL_MAJOR_VERSION >= 8
DUMP1("Tcl_CreateObjCommand(\"exit\") --> \"interp_exit\"");
- Tcl_CreateObjCommand(ptr->ip, "exit", ip_InterpExitObjCmd,
+ Tcl_CreateObjCommand(ptr->ip, "exit", ip_InterpExitObjCmd,
(ClientData)mainWin, (Tcl_CmdDeleteProc *)NULL);
#else /* TCL_MAJOR_VERSION < 8 */
DUMP1("Tcl_CreateCommand(\"exit\") --> \"interp_exit\"");
- Tcl_CreateCommand(ptr->ip, "exit", ip_InterpExitCommand,
+ Tcl_CreateCommand(ptr->ip, "exit", ip_InterpExitCommand,
(ClientData)mainWin, (Tcl_CmdDeleteProc *)NULL);
#endif
return Qfalse;
@@ -5975,7 +6778,8 @@ ip_delete(self)
int thr_crit_bup;
struct tcltkip *ptr = get_ip(self);
- if (ptr == (struct tcltkip *)NULL || ptr->ip == (Tcl_Interp*)NULL) {
+ /* if (ptr == (struct tcltkip *)NULL || ptr->ip == (Tcl_Interp*)NULL) { */
+ if (deleted_ip(ptr)) {
DUMP1("delete deleted IP");
return Qnil;
}
@@ -5983,12 +6787,14 @@ ip_delete(self)
thr_crit_bup = rb_thread_critical;
rb_thread_critical = Qtrue;
- DUMP1("call ip_finalize");
- ip_finalize(ptr->ip);
-
DUMP1("delete interp");
- Tcl_DeleteInterp(ptr->ip);
- Tcl_Release(ptr->ip);
+ if (!Tcl_InterpDeleted(ptr->ip)) {
+ DUMP1("call ip_finalize");
+ ip_finalize(ptr->ip);
+
+ Tcl_DeleteInterp(ptr->ip);
+ Tcl_Release(ptr->ip);
+ }
rb_thread_critical = thr_crit_bup;
@@ -6132,7 +6938,7 @@ get_obj_from_str(str)
/* binary string */
return Tcl_NewByteArrayObj((const unsigned char *)s, RSTRING_LEN(str));
#endif
- } else if (strlen(s) != RSTRING_LEN(str)) {
+ } else if (memchr(s, 0, RSTRING_LEN(str))) {
/* probably binary string */
return Tcl_NewByteArrayObj((const unsigned char *)s, RSTRING_LEN(str));
} else {
@@ -6154,7 +6960,7 @@ ip_get_result_string_obj(interp)
retObj = Tcl_GetObjResult(interp);
Tcl_IncrRefCount(retObj);
strval = get_str_from_obj(retObj);
- OBJ_TAINT(strval);
+ RbTk_OBJ_UNTRUST(strval);
Tcl_ResetResult(interp);
Tcl_DecrRefCount(retObj);
return strval;
@@ -6204,7 +7010,7 @@ call_queue_handler(evPtr, flags)
if (RTEST(rb_funcall(thread, ID_alive_p, 0))
&& ! RTEST(rb_funcall(thread, ID_stop_p, 0))) {
#else
- if (RTEST(rb_thread_alive_p(thread))
+ if (RTEST(rb_thread_alive_p(thread))
&& ! RTEST(rb_funcall(thread, ID_stop_p, 0))) {
#endif
DUMP1("caller is not yet ready to receive the result -> pending");
@@ -6228,7 +7034,7 @@ call_queue_handler(evPtr, flags)
if (rb_safe_level() != q->safe_level) {
/* q_dat = Data_Wrap_Struct(rb_cData,0,-1,q); */
q_dat = Data_Wrap_Struct(rb_cData,call_queue_mark,-1,q);
- ret = rb_funcall(rb_proc_new(callq_safelevel_handler, q_dat),
+ ret = rb_funcall(rb_proc_new(callq_safelevel_handler, q_dat),
ID_call, 0);
rb_gc_force_recycle(q_dat);
q_dat = (VALUE)NULL;
@@ -6297,6 +7103,7 @@ tk_funcall(func, argc, argv, obj)
volatile VALUE ip_obj = obj;
volatile VALUE result;
volatile VALUE ret;
+ struct timeval t;
if (!NIL_P(ip_obj) && rb_obj_is_kind_of(ip_obj, tcltkip_class)) {
ptr = get_ip(ip_obj);
@@ -6308,11 +7115,11 @@ tk_funcall(func, argc, argv, obj)
#ifdef RUBY_USE_NATIVE_THREAD
if (ptr) {
/* on Tcl interpreter */
- is_tk_evloop_thread = (ptr->tk_thread_id == (Tcl_ThreadId) 0
+ is_tk_evloop_thread = (ptr->tk_thread_id == (Tcl_ThreadId) 0
|| ptr->tk_thread_id == Tcl_GetCurrentThread());
} else {
/* on Tcl/Tk library */
- is_tk_evloop_thread = (tk_eventloop_thread_id == (Tcl_ThreadId) 0
+ is_tk_evloop_thread = (tk_eventloop_thread_id == (Tcl_ThreadId) 0
|| tk_eventloop_thread_id == Tcl_GetCurrentThread());
}
#else
@@ -6383,15 +7190,15 @@ tk_funcall(func, argc, argv, obj)
DUMP1("add handler");
#ifdef RUBY_USE_NATIVE_THREAD
if (ptr && ptr->tk_thread_id) {
- /* Tcl_ThreadQueueEvent(ptr->tk_thread_id,
+ /* Tcl_ThreadQueueEvent(ptr->tk_thread_id,
&(callq->ev), TCL_QUEUE_HEAD); */
- Tcl_ThreadQueueEvent(ptr->tk_thread_id,
+ Tcl_ThreadQueueEvent(ptr->tk_thread_id,
(Tcl_Event*)callq, TCL_QUEUE_HEAD);
Tcl_ThreadAlert(ptr->tk_thread_id);
} else if (tk_eventloop_thread_id) {
- /* Tcl_ThreadQueueEvent(tk_eventloop_thread_id,
+ /* Tcl_ThreadQueueEvent(tk_eventloop_thread_id,
&(callq->ev), TCL_QUEUE_HEAD); */
- Tcl_ThreadQueueEvent(tk_eventloop_thread_id,
+ Tcl_ThreadQueueEvent(tk_eventloop_thread_id,
(Tcl_Event*)callq, TCL_QUEUE_HEAD);
Tcl_ThreadAlert(tk_eventloop_thread_id);
} else {
@@ -6406,12 +7213,21 @@ tk_funcall(func, argc, argv, obj)
rb_thread_critical = thr_crit_bup;
/* wait for the handler to be processed */
- DUMP2("wait for handler (current thread:%lx)", current);
+ t.tv_sec = 0;
+ t.tv_usec = (long)((EVENT_HANDLER_TIMEOUT)*1000.0);
+
+ DUMP2("callq wait for handler (current thread:%lx)", current);
while(*alloc_done >= 0) {
- DUMP2("*** wait for handler (current thread:%lx)", current);
+ DUMP2("*** callq wait for handler (current thread:%lx)", current);
/* rb_thread_stop(); */
- rb_thread_sleep_forever();
- DUMP2("*** wakeup (current thread:%lx)", current);
+ /* rb_thread_sleep_forever(); */
+ rb_thread_wait_for(t);
+ DUMP2("*** callq wakeup (current thread:%lx)", current);
+ DUMP2("*** (eventloop thread:%lx)", eventloop_thread);
+ if (NIL_P(eventloop_thread)) {
+ DUMP1("*** callq lost eventloop thread");
+ break;
+ }
}
DUMP2("back from handler (current thread:%lx)", current);
@@ -6456,7 +7272,7 @@ tk_funcall(func, argc, argv, obj)
if (rb_obj_is_kind_of(ret, rb_eException)) {
DUMP1("raise exception");
/* rb_exc_raise(ret); */
- rb_exc_raise(rb_exc_new3(rb_obj_class(ret),
+ rb_exc_raise(rb_exc_new3(rb_obj_class(ret),
rb_funcall(ret, ID_to_s, 0, 0)));
}
@@ -6473,8 +7289,12 @@ struct call_eval_info {
};
static VALUE
+#ifdef HAVE_PROTOTYPES
+call_tcl_eval(VALUE arg)
+#else
call_tcl_eval(arg)
VALUE arg;
+#endif
{
struct call_eval_info *inf = (struct call_eval_info *)arg;
@@ -6529,7 +7349,7 @@ ip_eval_real(self, cmd_str, cmd_len)
switch(status) {
case TAG_RAISE:
if (NIL_P(rb_errinfo())) {
- rbtk_pending_exception = rb_exc_new2(rb_eException,
+ rbtk_pending_exception = rb_exc_new2(rb_eException,
"unknown exception");
} else {
rbtk_pending_exception = rb_errinfo();
@@ -6562,18 +7382,18 @@ ip_eval_real(self, cmd_str, cmd_len)
switch (ptr->return_value) {
case TCL_RETURN:
- exc = create_ip_exc(self, eTkCallbackReturn,
+ exc = create_ip_exc(self, eTkCallbackReturn,
"ip_eval_real receives TCL_RETURN");
case TCL_BREAK:
- exc = create_ip_exc(self, eTkCallbackBreak,
+ exc = create_ip_exc(self, eTkCallbackBreak,
"ip_eval_real receives TCL_BREAK");
case TCL_CONTINUE:
- exc = create_ip_exc(self, eTkCallbackContinue,
+ exc = create_ip_exc(self, eTkCallbackContinue,
"ip_eval_real receives TCL_CONTINUE");
default:
- exc = create_ip_exc(self, rb_eRuntimeError, "%s",
+ exc = create_ip_exc(self, rb_eRuntimeError, "%s",
Tcl_GetStringResult(ptr->ip));
- }
+ }
rbtk_release_ip(ptr);
rb_thread_critical = thr_crit_bup;
@@ -6622,17 +7442,17 @@ ip_eval_real(self, cmd_str, cmd_len)
switch (ptr->return_value) {
case TCL_RETURN:
- exc = create_ip_exc(self, eTkCallbackReturn,
+ exc = create_ip_exc(self, eTkCallbackReturn,
"ip_eval_real receives TCL_RETURN");
case TCL_BREAK:
- exc = create_ip_exc(self, eTkCallbackBreak,
+ exc = create_ip_exc(self, eTkCallbackBreak,
"ip_eval_real receives TCL_BREAK");
case TCL_CONTINUE:
- exc = create_ip_exc(self, eTkCallbackContinue,
+ exc = create_ip_exc(self, eTkCallbackContinue,
"ip_eval_real receives TCL_CONTINUE");
default:
exc = create_ip_exc(self, rb_eRuntimeError, "%s", ptr->ip->result);
- }
+ }
rbtk_release_ip(ptr);
return exc;
@@ -6686,7 +7506,7 @@ eval_queue_handler(evPtr, flags)
if (RTEST(rb_funcall(thread, ID_alive_p, 0))
&& ! RTEST(rb_funcall(thread, ID_stop_p, 0))) {
#else
- if (RTEST(rb_thread_alive_p(thread))
+ if (RTEST(rb_thread_alive_p(thread))
&& ! RTEST(rb_funcall(thread, ID_stop_p, 0))) {
#endif
DUMP1("caller is not yet ready to receive the result -> pending");
@@ -6717,7 +7537,7 @@ eval_queue_handler(evPtr, flags)
#endif
/* q_dat = Data_Wrap_Struct(rb_cData,0,-1,q); */
q_dat = Data_Wrap_Struct(rb_cData,eval_queue_mark,-1,q);
- ret = rb_funcall(rb_proc_new(evq_safelevel_handler, q_dat),
+ ret = rb_funcall(rb_proc_new(evq_safelevel_handler, q_dat),
ID_call, 0);
rb_gc_force_recycle(q_dat);
q_dat = (VALUE)NULL;
@@ -6784,6 +7604,7 @@ ip_eval(self, str)
volatile VALUE result;
volatile VALUE ret;
Tcl_QueuePosition position;
+ struct timeval t;
thr_crit_bup = rb_thread_critical;
rb_thread_critical = Qtrue;
@@ -6792,12 +7613,17 @@ ip_eval(self, str)
#ifdef RUBY_USE_NATIVE_THREAD
ptr = get_ip(ip_obj);
+ DUMP2("eval status: ptr->tk_thread_id %p", ptr->tk_thread_id);
+ DUMP2("eval status: Tcl_GetCurrentThread %p", Tcl_GetCurrentThread());
+#else
+ DUMP2("status: Tcl_GetCurrentThread %p", Tcl_GetCurrentThread());
#endif
+ DUMP2("status: eventloopt_thread %lx", eventloop_thread);
if (
#ifdef RUBY_USE_NATIVE_THREAD
(ptr->tk_thread_id == 0 || ptr->tk_thread_id == Tcl_GetCurrentThread())
- &&
+ &&
#endif
(NIL_P(eventloop_thread) || current == eventloop_thread)
) {
@@ -6865,7 +7691,7 @@ ip_eval(self, str)
Tcl_ThreadAlert(ptr->tk_thread_id);
} else if (tk_eventloop_thread_id) {
Tcl_ThreadQueueEvent(tk_eventloop_thread_id, (Tcl_Event*)evq, position);
- /* Tcl_ThreadQueueEvent(tk_eventloop_thread_id,
+ /* Tcl_ThreadQueueEvent(tk_eventloop_thread_id,
&(evq->ev), position); */
Tcl_ThreadAlert(tk_eventloop_thread_id);
} else {
@@ -6880,12 +7706,21 @@ ip_eval(self, str)
rb_thread_critical = thr_crit_bup;
/* wait for the handler to be processed */
- DUMP2("wait for handler (current thread:%lx)", current);
+ t.tv_sec = 0;
+ t.tv_usec = (long)((EVENT_HANDLER_TIMEOUT)*1000.0);
+
+ DUMP2("evq wait for handler (current thread:%lx)", current);
while(*alloc_done >= 0) {
- DUMP2("*** wait for handler (current thread:%lx)", current);
+ DUMP2("*** evq wait for handler (current thread:%lx)", current);
/* rb_thread_stop(); */
- rb_thread_sleep_forever();
- DUMP2("*** wakeup (current thread:%lx)", current);
+ /* rb_thread_sleep_forever(); */
+ rb_thread_wait_for(t);
+ DUMP2("*** evq wakeup (current thread:%lx)", current);
+ DUMP2("*** (eventloop thread:%lx)", eventloop_thread);
+ if (NIL_P(eventloop_thread)) {
+ DUMP1("*** evq lost eventloop thread");
+ break;
+ }
}
DUMP2("back from handler (current thread:%lx)", current);
@@ -6923,7 +7758,7 @@ ip_eval(self, str)
if (rb_obj_is_kind_of(ret, rb_eException)) {
DUMP1("raise exception");
/* rb_exc_raise(ret); */
- rb_exc_raise(rb_exc_new3(rb_obj_class(ret),
+ rb_exc_raise(rb_exc_new3(rb_obj_class(ret),
rb_funcall(ret, ID_to_s, 0, 0)));
}
@@ -6931,6 +7766,71 @@ ip_eval(self, str)
}
+static int
+ip_cancel_eval_core(interp, msg, flag)
+ Tcl_Interp *interp;
+ VALUE msg;
+ int flag;
+{
+#if TCL_MAJOR_VERSION < 8 || (TCL_MAJOR_VERSION == 8 && TCL_MINOR_VERSION < 6)
+ rb_raise(rb_eNotImpError,
+ "cancel_eval is supported Tcl/Tk8.6 or later.");
+#else
+ Tcl_Obj *msg_obj;
+
+ if (NIL_P(msg)) {
+ msg_obj = NULL;
+ } else {
+ msg_obj = Tcl_NewStringObj(RSTRING_PTR(msg), RSTRING_LEN(msg));
+ Tcl_IncrRefCount(msg_obj);
+ }
+
+ return Tcl_CancelEval(interp, msg_obj, 0, flag);
+#endif
+}
+
+static VALUE
+ip_cancel_eval(argc, argv, self)
+ int argc;
+ VALUE *argv;
+ VALUE self;
+{
+ VALUE retval;
+
+ if (rb_scan_args(argc, argv, "01", &retval) == 0) {
+ retval = Qnil;
+ }
+ if (ip_cancel_eval_core(get_ip(self)->ip, retval, 0) == TCL_OK) {
+ return Qtrue;
+ } else {
+ return Qfalse;
+ }
+}
+
+#ifndef TCL_CANCEL_UNWIND
+#define TCL_CANCEL_UNWIND 0x100000
+#endif
+static VALUE
+ip_cancel_eval_unwind(argc, argv, self)
+ int argc;
+ VALUE *argv;
+ VALUE self;
+{
+ int flag = 0;
+ VALUE retval;
+
+ if (rb_scan_args(argc, argv, "01", &retval) == 0) {
+ retval = Qnil;
+ }
+
+ flag |= TCL_CANCEL_UNWIND;
+ if (ip_cancel_eval_core(get_ip(self)->ip, retval, flag) == TCL_OK) {
+ return Qtrue;
+ } else {
+ return Qfalse;
+ }
+}
+
/* restart Tk */
static VALUE
lib_restart_core(interp, argc, argv)
@@ -7099,7 +7999,7 @@ lib_toUTF8_core(ip_obj, src, encodename)
if (!RSTRING_LEN(enc)) {
encoding = (Tcl_Encoding)NULL;
} else {
- encoding = Tcl_GetEncoding((Tcl_Interp*)NULL,
+ encoding = Tcl_GetEncoding((Tcl_Interp*)NULL,
RSTRING_PTR(enc));
if (encoding == (Tcl_Encoding)NULL) {
rb_warning("Tk-interp has unknown encoding information (@encoding:'%s')", RSTRING_PTR(enc));
@@ -7118,7 +8018,7 @@ lib_toUTF8_core(ip_obj, src, encodename)
return str;
}
/* encoding = Tcl_GetEncoding(interp, RSTRING_PTR(enc)); */
- encoding = Tcl_GetEncoding((Tcl_Interp*)NULL,
+ encoding = Tcl_GetEncoding((Tcl_Interp*)NULL,
RSTRING_PTR(enc));
if (encoding == (Tcl_Encoding)NULL) {
rb_warning("string has unknown encoding information (@encoding:'%s')", RSTRING_PTR(enc));
@@ -7141,10 +8041,10 @@ lib_toUTF8_core(ip_obj, src, encodename)
encoding = Tcl_GetEncoding((Tcl_Interp*)NULL, RSTRING_PTR(encodename));
if (encoding == (Tcl_Encoding)NULL) {
/*
- rb_warning("unknown encoding name '%s'",
+ rb_warning("unknown encoding name '%s'",
RSTRING_PTR(encodename));
*/
- rb_raise(rb_eArgError, "unknown encoding name '%s'",
+ rb_raise(rb_eArgError, "unknown encoding name '%s'",
RSTRING_PTR(encodename));
}
}
@@ -7170,8 +8070,8 @@ lib_toUTF8_core(ip_obj, src, encodename)
#ifdef HAVE_RUBY_ENCODING_H
rb_enc_associate_index(str, ENCODING_INDEX_UTF8);
#endif
+ if (taint_flag) RbTk_OBJ_UNTRUST(str);
rb_ivar_set(str, ID_at_enc, ENCODING_NAME_UTF8);
- if (taint_flag) OBJ_TAINT(str);
/*
if (encoding != (Tcl_Encoding)NULL) {
@@ -7180,7 +8080,7 @@ lib_toUTF8_core(ip_obj, src, encodename)
*/
Tcl_DStringFree(&dstr);
- free(buf);
+ xfree(buf);
/* ckfree(buf); */
rb_thread_critical = thr_crit_bup;
@@ -7290,7 +8190,7 @@ lib_fromUTF8_core(ip_obj, src, encodename)
if (!RSTRING_LEN(enc)) {
encoding = (Tcl_Encoding)NULL;
} else {
- encoding = Tcl_GetEncoding((Tcl_Interp*)NULL,
+ encoding = Tcl_GetEncoding((Tcl_Interp*)NULL,
RSTRING_PTR(enc));
if (encoding == (Tcl_Encoding)NULL) {
rb_warning("Tk-interp has unknown encoding information (@encoding:'%s')", RSTRING_PTR(enc));
@@ -7328,12 +8228,12 @@ lib_fromUTF8_core(ip_obj, src, encodename)
/* encoding = Tcl_GetEncoding(interp, RSTRING_PTR(encodename)); */
encoding = Tcl_GetEncoding((Tcl_Interp*)NULL, RSTRING_PTR(encodename));
if (encoding == (Tcl_Encoding)NULL) {
- /*
- rb_warning("unknown encoding name '%s'",
+ /*
+ rb_warning("unknown encoding name '%s'",
RSTRING_PTR(encodename));
encodename = Qnil;
*/
- rb_raise(rb_eArgError, "unknown encoding name '%s'",
+ rb_raise(rb_eArgError, "unknown encoding name '%s'",
RSTRING_PTR(encodename));
}
}
@@ -7371,9 +8271,9 @@ lib_fromUTF8_core(ip_obj, src, encodename)
rb_enc_associate_index(str, rb_enc_find_index(RSTRING_PTR(encodename)));
}
#endif
- rb_ivar_set(str, ID_at_enc, encodename);
- if (taint_flag) OBJ_TAINT(str);
+ if (taint_flag) RbTk_OBJ_UNTRUST(str);
+ rb_ivar_set(str, ID_at_enc, encodename);
/*
if (encoding != (Tcl_Encoding)NULL) {
@@ -7382,7 +8282,7 @@ lib_fromUTF8_core(ip_obj, src, encodename)
*/
Tcl_DStringFree(&dstr);
- free(buf);
+ xfree(buf);
/* ckfree(buf); */
rb_thread_critical = thr_crit_bup;
@@ -7466,7 +8366,7 @@ lib_UTF_backslash_core(self, str, all_bs)
}
str = rb_str_new(dst_buf, dst_len);
- if (taint_flag) OBJ_TAINT(str);
+ if (taint_flag) RbTk_OBJ_UNTRUST(str);
#ifdef HAVE_RUBY_ENCODING_H
rb_enc_associate_index(str, ENCODING_INDEX_UTF8);
#endif
@@ -7541,9 +8441,9 @@ lib_set_system_encoding(self, enc_name)
}
enc_name = rb_funcall(enc_name, ID_to_s, 0, 0);
- if (Tcl_SetSystemEncoding((Tcl_Interp *)NULL,
+ if (Tcl_SetSystemEncoding((Tcl_Interp *)NULL,
StringValuePtr(enc_name)) != TCL_OK) {
- rb_raise(rb_eArgError, "unknown encoding name '%s'",
+ rb_raise(rb_eArgError, "unknown encoding name '%s'",
RSTRING_PTR(enc_name));
}
@@ -7568,8 +8468,12 @@ struct invoke_info {
};
static VALUE
+#ifdef HAVE_PROTOTYPES
+invoke_tcl_proc(VALUE arg)
+#else
invoke_tcl_proc(arg)
VALUE arg;
+#endif
{
struct invoke_info *inf = (struct invoke_info *)arg;
int i, len;
@@ -7599,16 +8503,16 @@ invoke_tcl_proc(arg)
/* Invoke the C procedure */
#if TCL_MAJOR_VERSION >= 8
if (inf->cmdinfo.isNativeObjectProc) {
- inf->ptr->return_value
- = (*(inf->cmdinfo.objProc))(inf->cmdinfo.objClientData,
+ inf->ptr->return_value
+ = (*(inf->cmdinfo.objProc))(inf->cmdinfo.objClientData,
inf->ptr->ip, inf->objc, inf->objv);
}
else
#endif
{
#if TCL_MAJOR_VERSION >= 8
- inf->ptr->return_value
- = (*(inf->cmdinfo.proc))(inf->cmdinfo.clientData, inf->ptr->ip,
+ inf->ptr->return_value
+ = (*(inf->cmdinfo.proc))(inf->cmdinfo.clientData, inf->ptr->ip,
argc, (CONST84 char **)argv);
#if 0 /* use Tcl_EventuallyFree */
@@ -7623,8 +8527,8 @@ invoke_tcl_proc(arg)
#endif
#else /* TCL_MAJOR_VERSION < 8 */
- inf->ptr->return_value
- = (*(inf->cmdinfo.proc))(inf->cmdinfo.clientData, inf->ptr->ip,
+ inf->ptr->return_value
+ = (*(inf->cmdinfo.proc))(inf->cmdinfo.clientData, inf->ptr->ip,
inf->argc, inf->argv);
#endif
}
@@ -7692,11 +8596,11 @@ ip_invoke_core(interp, argc, argv)
if (!Tcl_GetCommandInfo(ptr->ip, cmd, &info)) {
DUMP1("error Tcl_GetCommandInfo");
DUMP1("try auto_load (call 'unknown' command)");
- if (!Tcl_GetCommandInfo(ptr->ip,
+ if (!Tcl_GetCommandInfo(ptr->ip,
#if TCL_MAJOR_VERSION >= 8
- "::unknown",
+ "::unknown",
#else
- "unknown",
+ "unknown",
#endif
&info)) {
DUMP1("fail to get 'unknown' command");
@@ -7705,7 +8609,7 @@ ip_invoke_core(interp, argc, argv)
/* Tcl_Release(ptr->ip); */
rbtk_release_ip(ptr);
/*rb_ip_raise(obj,rb_eNameError,"invalid command name `%s'",cmd);*/
- return create_ip_exc(interp, rb_eNameError,
+ return create_ip_exc(interp, rb_eNameError,
"invalid command name `%s'", cmd);
} else {
if (event_loop_abort_on_exc < 0) {
@@ -7773,13 +8677,13 @@ ip_invoke_core(interp, argc, argv)
switch(status) {
case TAG_RAISE:
if (NIL_P(rb_errinfo())) {
- rbtk_pending_exception = rb_exc_new2(rb_eException,
+ rbtk_pending_exception = rb_exc_new2(rb_eException,
"unknown exception");
} else {
rbtk_pending_exception = rb_errinfo();
}
break;
-
+
case TAG_FATAL:
if (NIL_P(rb_errinfo())) {
rbtk_pending_exception = rb_exc_new2(rb_eFatal, "FATAL");
@@ -7813,7 +8717,7 @@ ip_invoke_core(interp, argc, argv)
/* Invoke the C procedure */
#if TCL_MAJOR_VERSION >= 8
if (info.isNativeObjectProc) {
- ptr->return_value = (*info.objProc)(info.objClientData, ptr->ip,
+ ptr->return_value = (*info.objProc)(info.objClientData, ptr->ip,
objc, objv);
#if 0
/* get the string value from the result object */
@@ -7826,7 +8730,7 @@ ip_invoke_core(interp, argc, argv)
#endif
{
#if TCL_MAJOR_VERSION >= 8
- ptr->return_value = (*info.proc)(info.clientData, ptr->ip,
+ ptr->return_value = (*info.proc)(info.clientData, ptr->ip,
argc, (CONST84 char **)argv);
#if 0 /* use Tcl_EventuallyFree */
@@ -7841,7 +8745,7 @@ ip_invoke_core(interp, argc, argv)
#endif
#else /* TCL_MAJOR_VERSION < 8 */
- ptr->return_value = (*info.proc)(info.clientData, ptr->ip,
+ ptr->return_value = (*info.proc)(info.clientData, ptr->ip,
argc, argv);
#endif
}
@@ -7889,18 +8793,18 @@ ip_invoke_core(interp, argc, argv)
if (event_loop_abort_on_exc > 0 && !Tcl_InterpDeleted(ptr->ip)) {
switch (ptr->return_value) {
case TCL_RETURN:
- return create_ip_exc(interp, eTkCallbackReturn,
+ return create_ip_exc(interp, eTkCallbackReturn,
"ip_invoke_core receives TCL_RETURN");
case TCL_BREAK:
- return create_ip_exc(interp, eTkCallbackBreak,
+ return create_ip_exc(interp, eTkCallbackBreak,
"ip_invoke_core receives TCL_BREAK");
case TCL_CONTINUE:
- return create_ip_exc(interp, eTkCallbackContinue,
+ return create_ip_exc(interp, eTkCallbackContinue,
"ip_invoke_core receives TCL_CONTINUE");
default:
- return create_ip_exc(interp, rb_eRuntimeError, "%s",
+ return create_ip_exc(interp, rb_eRuntimeError, "%s",
Tcl_GetStringResult(ptr->ip));
- }
+ }
} else {
if (event_loop_abort_on_exc < 0) {
@@ -8092,7 +8996,7 @@ invoke_queue_handler(evPtr, flags)
if (RTEST(rb_funcall(thread, ID_alive_p, 0))
&& ! RTEST(rb_funcall(thread, ID_stop_p, 0))) {
#else
- if (RTEST(rb_thread_alive_p(thread))
+ if (RTEST(rb_thread_alive_p(thread))
&& ! RTEST(rb_funcall(thread, ID_stop_p, 0))) {
#endif
DUMP1("caller is not yet ready to receive the result -> pending");
@@ -8116,7 +9020,7 @@ invoke_queue_handler(evPtr, flags)
if (rb_safe_level() != q->safe_level) {
/* q_dat = Data_Wrap_Struct(rb_cData,0,0,q); */
q_dat = Data_Wrap_Struct(rb_cData,invoke_queue_mark,-1,q);
- ret = rb_funcall(rb_proc_new(ivq_safelevel_handler, q_dat),
+ ret = rb_funcall(rb_proc_new(ivq_safelevel_handler, q_dat),
ID_call, 0);
rb_gc_force_recycle(q_dat);
q_dat = (VALUE)NULL;
@@ -8185,6 +9089,7 @@ ip_invoke_with_position(argc, argv, obj, position)
volatile VALUE ip_obj = obj;
volatile VALUE result;
volatile VALUE ret;
+ struct timeval t;
#if TCL_MAJOR_VERSION >= 8
Tcl_Obj **av = (Tcl_Obj **)NULL;
@@ -8198,17 +9103,17 @@ ip_invoke_with_position(argc, argv, obj, position)
#ifdef RUBY_USE_NATIVE_THREAD
ptr = get_ip(ip_obj);
- DUMP2("status: ptr->tk_thread_id %p", ptr->tk_thread_id);
- DUMP2("status: Tcl_GetCurrentThread %p", Tcl_GetCurrentThread());
+ DUMP2("invoke status: ptr->tk_thread_id %p", ptr->tk_thread_id);
+ DUMP2("invoke status: Tcl_GetCurrentThread %p", Tcl_GetCurrentThread());
#else
- DUMP2("status: Tcl_GetCurrentThread %lx", Tcl_GetCurrentThread());
+ DUMP2("status: Tcl_GetCurrentThread %p", Tcl_GetCurrentThread());
#endif
DUMP2("status: eventloopt_thread %lx", eventloop_thread);
if (
#ifdef RUBY_USE_NATIVE_THREAD
(ptr->tk_thread_id == 0 || ptr->tk_thread_id == Tcl_GetCurrentThread())
- &&
+ &&
#endif
(NIL_P(eventloop_thread) || current == eventloop_thread)
) {
@@ -8268,9 +9173,9 @@ ip_invoke_with_position(argc, argv, obj, position)
Tcl_ThreadQueueEvent(ptr->tk_thread_id, (Tcl_Event*)ivq, position);
Tcl_ThreadAlert(ptr->tk_thread_id);
} else if (tk_eventloop_thread_id) {
- /* Tcl_ThreadQueueEvent(tk_eventloop_thread_id,
+ /* Tcl_ThreadQueueEvent(tk_eventloop_thread_id,
&(ivq->ev), position); */
- Tcl_ThreadQueueEvent(tk_eventloop_thread_id,
+ Tcl_ThreadQueueEvent(tk_eventloop_thread_id,
(Tcl_Event*)ivq, position);
Tcl_ThreadAlert(tk_eventloop_thread_id);
} else {
@@ -8285,10 +9190,20 @@ ip_invoke_with_position(argc, argv, obj, position)
rb_thread_critical = thr_crit_bup;
/* wait for the handler to be processed */
- DUMP2("wait for handler (current thread:%lx)", current);
+ t.tv_sec = 0;
+ t.tv_usec = (long)((EVENT_HANDLER_TIMEOUT)*1000.0);
+
+ DUMP2("ivq wait for handler (current thread:%lx)", current);
while(*alloc_done >= 0) {
- /* rb_thread_stop(); */
- rb_thread_sleep_forever();
+ /* rb_thread_stop(); */
+ /* rb_thread_sleep_forever(); */
+ rb_thread_wait_for(t);
+ DUMP2("*** ivq wakeup (current thread:%lx)", current);
+ DUMP2("*** (eventloop thread:%lx)", eventloop_thread);
+ if (NIL_P(eventloop_thread)) {
+ DUMP1("*** ivq lost eventloop thread");
+ break;
+ }
}
DUMP2("back from handler (current thread:%lx)", current);
@@ -8324,7 +9239,7 @@ ip_invoke_with_position(argc, argv, obj, position)
if (rb_obj_is_kind_of(ret, rb_eException)) {
DUMP1("raise exception");
/* rb_exc_raise(ret); */
- rb_exc_raise(rb_exc_new3(rb_obj_class(ret),
+ rb_exc_raise(rb_exc_new3(rb_obj_class(ret),
rb_funcall(ret, ID_to_s, 0, 0)));
}
@@ -8387,7 +9302,7 @@ ip_get_variable2_core(interp, argc, argv)
index = argv[1];
flag = argv[2];
- /*
+ /*
StringValue(varname);
if (!NIL_P(index)) StringValue(index);
*/
@@ -8414,9 +9329,9 @@ ip_get_variable2_core(interp, argc, argv)
if (ret == (Tcl_Obj*)NULL) {
volatile VALUE exc;
- /* exc = rb_exc_new2(rb_eRuntimeError,
+ /* exc = rb_exc_new2(rb_eRuntimeError,
Tcl_GetStringResult(ptr->ip)); */
- exc = create_ip_exc(interp, rb_eRuntimeError,
+ exc = create_ip_exc(interp, rb_eRuntimeError,
Tcl_GetStringResult(ptr->ip));
/* Tcl_Release(ptr->ip); */
rbtk_release_ip(ptr);
@@ -8426,7 +9341,7 @@ ip_get_variable2_core(interp, argc, argv)
Tcl_IncrRefCount(ret);
strval = get_str_from_obj(ret);
- OBJ_TAINT(strval);
+ RbTk_OBJ_UNTRUST(strval);
Tcl_DecrRefCount(ret);
/* Tcl_Release(ptr->ip); */
@@ -8445,7 +9360,7 @@ ip_get_variable2_core(interp, argc, argv)
} else {
/* Tcl_Preserve(ptr->ip); */
rbtk_preserve_ip(ptr);
- ret = Tcl_GetVar2(ptr->ip, RSTRING_PTR(varname),
+ ret = Tcl_GetVar2(ptr->ip, RSTRING_PTR(varname),
NIL_P(index) ? NULL : RSTRING_PTR(index),
FIX2INT(flag));
}
@@ -8553,9 +9468,9 @@ ip_set_variable2_core(interp, argc, argv)
if (ret == (Tcl_Obj*)NULL) {
volatile VALUE exc;
- /* exc = rb_exc_new2(rb_eRuntimeError,
+ /* exc = rb_exc_new2(rb_eRuntimeError,
Tcl_GetStringResult(ptr->ip)); */
- exc = create_ip_exc(interp, rb_eRuntimeError,
+ exc = create_ip_exc(interp, rb_eRuntimeError,
Tcl_GetStringResult(ptr->ip));
/* Tcl_Release(ptr->ip); */
rbtk_release_ip(ptr);
@@ -8565,7 +9480,7 @@ ip_set_variable2_core(interp, argc, argv)
Tcl_IncrRefCount(ret);
strval = get_str_from_obj(ret);
- OBJ_TAINT(strval);
+ RbTk_OBJ_UNTRUST(strval);
Tcl_DecrRefCount(ret);
/* Tcl_Release(ptr->ip); */
@@ -8585,8 +9500,8 @@ ip_set_variable2_core(interp, argc, argv)
} else {
/* Tcl_Preserve(ptr->ip); */
rbtk_preserve_ip(ptr);
- ret = Tcl_SetVar2(ptr->ip, RSTRING_PTR(varname),
- NIL_P(index) ? NULL : RSTRING_PTR(index),
+ ret = Tcl_SetVar2(ptr->ip, RSTRING_PTR(varname),
+ NIL_P(index) ? NULL : RSTRING_PTR(index),
RSTRING_PTR(value), FIX2INT(flag));
}
@@ -8657,7 +9572,7 @@ ip_unset_variable2_core(interp, argc, argv)
index = argv[1];
flag = argv[2];
- /*
+ /*
StringValue(varname);
if (!NIL_P(index)) StringValue(index);
*/
@@ -8667,15 +9582,15 @@ ip_unset_variable2_core(interp, argc, argv)
return Qtrue;
}
- ptr->return_value = Tcl_UnsetVar2(ptr->ip, RSTRING_PTR(varname),
+ ptr->return_value = Tcl_UnsetVar2(ptr->ip, RSTRING_PTR(varname),
NIL_P(index) ? NULL : RSTRING_PTR(index),
FIX2INT(flag));
if (ptr->return_value == TCL_ERROR) {
if (FIX2INT(flag) & TCL_LEAVE_ERR_MSG) {
- /* return rb_exc_new2(rb_eRuntimeError,
+ /* return rb_exc_new2(rb_eRuntimeError,
Tcl_GetStringResult(ptr->ip)); */
- return create_ip_exc(interp, rb_eRuntimeError,
+ return create_ip_exc(interp, rb_eRuntimeError,
Tcl_GetStringResult(ptr->ip));
}
return Qfalse;
@@ -8723,7 +9638,7 @@ ip_get_global_var(self, varname)
VALUE self;
VALUE varname;
{
- return ip_get_variable(self, varname,
+ return ip_get_variable(self, varname,
INT2FIX(TCL_GLOBAL_ONLY | TCL_LEAVE_ERR_MSG));
}
@@ -8733,7 +9648,7 @@ ip_get_global_var2(self, varname, index)
VALUE varname;
VALUE index;
{
- return ip_get_variable2(self, varname, index,
+ return ip_get_variable2(self, varname, index,
INT2FIX(TCL_GLOBAL_ONLY | TCL_LEAVE_ERR_MSG));
}
@@ -8743,7 +9658,7 @@ ip_set_global_var(self, varname, value)
VALUE varname;
VALUE value;
{
- return ip_set_variable(self, varname, value,
+ return ip_set_variable(self, varname, value,
INT2FIX(TCL_GLOBAL_ONLY | TCL_LEAVE_ERR_MSG));
}
@@ -8754,7 +9669,7 @@ ip_set_global_var2(self, varname, index, value)
VALUE index;
VALUE value;
{
- return ip_set_variable2(self, varname, index, value,
+ return ip_set_variable2(self, varname, index, value,
INT2FIX(TCL_GLOBAL_ONLY | TCL_LEAVE_ERR_MSG));
}
@@ -8763,7 +9678,7 @@ ip_unset_global_var(self, varname)
VALUE self;
VALUE varname;
{
- return ip_unset_variable(self, varname,
+ return ip_unset_variable(self, varname,
INT2FIX(TCL_GLOBAL_ONLY | TCL_LEAVE_ERR_MSG));
}
@@ -8773,7 +9688,7 @@ ip_unset_global_var2(self, varname, index)
VALUE varname;
VALUE index;
{
- return ip_unset_variable2(self, varname, index,
+ return ip_unset_variable2(self, varname, index,
INT2FIX(TCL_GLOBAL_ONLY | TCL_LEAVE_ERR_MSG));
}
@@ -8842,12 +9757,14 @@ lib_split_tklist_core(ip_obj, list_str)
rb_thread_critical = Qtrue;
ary = rb_ary_new2(objc);
- if (taint_flag) OBJ_TAINT(ary);
+ if (taint_flag) RbTk_OBJ_UNTRUST(ary);
old_gc = rb_gc_disable();
for(idx = 0; idx < objc; idx++) {
elem = get_str_from_obj(objv[idx]);
+ if (taint_flag) RbTk_OBJ_UNTRUST(elem);
+
#ifdef HAVE_RUBY_ENCODING_H
if (rb_enc_get_index(elem) == ENCODING_INDEX_BINARY) {
rb_enc_associate_index(elem, ENCODING_INDEX_BINARY);
@@ -8857,7 +9774,6 @@ lib_split_tklist_core(ip_obj, list_str)
rb_ivar_set(elem, ID_at_enc, list_ivar_enc);
}
#endif
- if (taint_flag) OBJ_TAINT(elem);
/* RARRAY(ary)->ptr[idx] = elem; */
rb_ary_push(ary, elem);
}
@@ -8879,7 +9795,7 @@ lib_split_tklist_core(ip_obj, list_str)
int argc;
char **argv;
- if (Tcl_SplitList(interp, RSTRING_PTR(list_str),
+ if (Tcl_SplitList(interp, RSTRING_PTR(list_str),
&argc, &argv) == TCL_ERROR) {
if (interp == (Tcl_Interp*)NULL) {
rb_raise(rb_eRuntimeError, "can't get elements from list");
@@ -8889,7 +9805,7 @@ lib_split_tklist_core(ip_obj, list_str)
}
ary = rb_ary_new2(argc);
- if (taint_flag) OBJ_TAINT(ary);
+ if (taint_flag) RbTk_OBJ_UNTRUST(ary);
old_gc = rb_gc_disable();
@@ -8964,7 +9880,7 @@ lib_merge_tklist(argc, argv, obj)
if (OBJ_TAINTED(argv[num])) taint_flag = 1;
dst = StringValuePtr(argv[num]);
#if TCL_MAJOR_VERSION >= 8
- len += Tcl_ScanCountedElement(dst, RSTRING_LEN(argv[num]),
+ len += Tcl_ScanCountedElement(dst, RSTRING_LEN(argv[num]),
&flagPtr[num]) + 1;
#else /* TCL_MAJOR_VERSION < 8 */
len += Tcl_ScanElement(dst, &flagPtr[num]) + 1;
@@ -8980,8 +9896,8 @@ lib_merge_tklist(argc, argv, obj)
dst = result;
for(num = 0; num < argc; num++) {
#if TCL_MAJOR_VERSION >= 8
- len = Tcl_ConvertCountedElement(RSTRING_PTR(argv[num]),
- RSTRING_LEN(argv[num]),
+ len = Tcl_ConvertCountedElement(RSTRING_PTR(argv[num]),
+ RSTRING_LEN(argv[num]),
dst, flagPtr[num]);
#else /* TCL_MAJOR_VERSION < 8 */
len = Tcl_ConvertElement(RSTRING_PTR(argv[num]), dst, flagPtr[num]);
@@ -9009,7 +9925,7 @@ lib_merge_tklist(argc, argv, obj)
/* create object */
str = rb_str_new(result, dst - result - 1);
- if (taint_flag) OBJ_TAINT(str);
+ if (taint_flag) RbTk_OBJ_UNTRUST(str);
#if 0 /* use Tcl_EventuallyFree */
Tcl_EventuallyFree((ClientData)result, TCL_DYNAMIC); /* XXXXXXXX */
#else
@@ -9045,10 +9961,10 @@ lib_conv_listelement(self, src)
StringValue(src);
#if TCL_MAJOR_VERSION >= 8
- len = Tcl_ScanCountedElement(RSTRING_PTR(src), RSTRING_LEN(src),
+ len = Tcl_ScanCountedElement(RSTRING_PTR(src), RSTRING_LEN(src),
&scan_flag);
dst = rb_str_new(0, len + 1);
- len = Tcl_ConvertCountedElement(RSTRING_PTR(src), RSTRING_LEN(src),
+ len = Tcl_ConvertCountedElement(RSTRING_PTR(src), RSTRING_LEN(src),
RSTRING_PTR(dst), scan_flag);
#else /* TCL_MAJOR_VERSION < 8 */
len = Tcl_ScanElement(RSTRING_PTR(src), &scan_flag);
@@ -9057,7 +9973,7 @@ lib_conv_listelement(self, src)
#endif
rb_str_resize(dst, len);
- if (taint_flag) OBJ_TAINT(dst);
+ if (taint_flag) RbTk_OBJ_UNTRUST(dst);
rb_thread_critical = thr_crit_bup;
@@ -9070,9 +9986,9 @@ lib_getversion(self)
{
set_tcltk_version();
- return rb_ary_new3(4, INT2NUM(tcltk_version.major),
- INT2NUM(tcltk_version.minor),
- INT2NUM(tcltk_version.type),
+ return rb_ary_new3(4, INT2NUM(tcltk_version.major),
+ INT2NUM(tcltk_version.minor),
+ INT2NUM(tcltk_version.type),
INT2NUM(tcltk_version.patchlevel));
}
@@ -9100,7 +10016,7 @@ tcltklib_compile_info()
{
volatile VALUE ret;
int size;
- char form[]
+ char form[]
= "tcltklib %s :: Ruby%s (%s) %s pthread :: Tcl%s(%s)/Tk%s(%s) %s";
char *info;
@@ -9108,31 +10024,31 @@ tcltklib_compile_info()
+ strlen(TCLTKLIB_RELEASE_DATE)
+ strlen(RUBY_VERSION)
+ strlen(RUBY_RELEASE_DATE)
- + strlen("without")
+ + strlen("without")
+ strlen(TCL_PATCH_LEVEL)
+ strlen("without stub")
+ strlen(TK_PATCH_LEVEL)
- + strlen("without stub")
+ + strlen("without stub")
+ strlen("unknown tcl_threads");
info = ALLOC_N(char, size);
/* info = ckalloc(sizeof(char) * size); */ /* SEGV */
sprintf(info, form,
- TCLTKLIB_RELEASE_DATE,
- RUBY_VERSION, RUBY_RELEASE_DATE,
+ TCLTKLIB_RELEASE_DATE,
+ RUBY_VERSION, RUBY_RELEASE_DATE,
#ifdef HAVE_NATIVETHREAD
"with",
#else
"without",
#endif
- TCL_PATCH_LEVEL,
+ TCL_PATCH_LEVEL,
#ifdef USE_TCL_STUBS
"with stub",
#else
"without stub",
#endif
- TK_PATCH_LEVEL,
+ TK_PATCH_LEVEL,
#ifdef USE_TK_STUBS
"with stub",
#else
@@ -9151,7 +10067,7 @@ tcltklib_compile_info()
ret = rb_obj_freeze(rb_str_new2(info));
- free(info);
+ xfree(info);
/* ckfree(info); */
return ret;
@@ -9175,7 +10091,7 @@ create_dummy_encoding_for_tk_core(interp, name, error_mode)
#if TCL_MAJOR_VERSION > 8 || (TCL_MAJOR_VERSION == 8 && TCL_MINOR_VERSION >= 1)
if (Tcl_GetEncoding((Tcl_Interp*)NULL, RSTRING_PTR(name)) == (Tcl_Encoding)NULL) {
if (RTEST(error_mode)) {
- rb_raise(rb_eArgError, "invalid Tk encoding name '%s'",
+ rb_raise(rb_eArgError, "invalid Tk encoding name '%s'",
RSTRING_PTR(name));
} else {
return Qnil;
@@ -9234,7 +10150,7 @@ update_encoding_table(table, interp, error_mode)
enc_list = Tcl_GetObjResult(ptr->ip);
Tcl_IncrRefCount(enc_list);
- if (Tcl_ListObjGetElements(ptr->ip, enc_list,
+ if (Tcl_ListObjGetElements(ptr->ip, enc_list,
&objc, &objv) != TCL_OK) {
Tcl_DecrRefCount(enc_list);
/* rb_raise(rb_eRuntimeError, "failt to get Tcl's encoding names");*/
@@ -9381,7 +10297,7 @@ encoding_table_get_obj_core(table, enc, error_mode)
{
volatile VALUE obj = Qnil;
- obj = rb_hash_lookup(table,
+ obj = rb_hash_lookup(table,
encoding_table_get_name_core(table, enc, error_mode));
if (RTEST(rb_obj_is_kind_of(obj, cRubyEncoding))) {
return obj;
@@ -9400,11 +10316,10 @@ update_encoding_table(table, interp, error_mode)
{
struct tcltkip *ptr;
int retry = 0;
- int i, idx, objc;
+ int i, objc;
Tcl_Obj **objv;
Tcl_Obj *enc_list;
volatile VALUE encname = Qnil;
- volatile VALUE encobj = Qnil;
/* interpreter check */
if (NIL_P(interp)) return 0;
@@ -9446,7 +10361,6 @@ encoding_table_get_name_core(table, enc, error_mode)
VALUE error_mode;
{
volatile VALUE name = Qnil;
- int retry = 0;
enc = rb_funcall(enc, ID_to_s, 0, 0);
name = rb_hash_lookup(table, enc);
@@ -9457,7 +10371,7 @@ encoding_table_get_name_core(table, enc, error_mode)
}
/* update check */
- if (update_encoding_table(table, rb_ivar_get(table, ID_at_interp),
+ if (update_encoding_table(table, rb_ivar_get(table, ID_at_interp),
error_mode)) {
/* add new relations to the table */
/* RETRY: registered Ruby encoding? */
@@ -9519,7 +10433,8 @@ encoding_table_get_obj(table, enc)
#ifdef HAVE_RUBY_ENCODING_H
static VALUE
-create_encoding_table(interp)
+create_encoding_table_core(arg, interp)
+ VALUE arg;
VALUE interp;
{
struct tcltkip *ptr = get_ip(interp);
@@ -9530,13 +10445,17 @@ create_encoding_table(interp)
Tcl_Obj **objv;
Tcl_Obj *enc_list;
- rb_secure(4);
+#ifdef HAVE_RB_SET_SAFE_LEVEL_FORCE
+ rb_set_safe_level_force(0);
+#else
+ rb_set_safe_level(0);
+#endif
/* set 'binary' encoding */
encobj = rb_enc_from_encoding(rb_enc_from_index(ENCODING_INDEX_BINARY));
rb_hash_aset(table, ENCODING_NAME_BINARY, encobj);
rb_hash_aset(table, encobj, ENCODING_NAME_BINARY);
-
+
/* Tcl stub check */
tcl_stubs_check();
@@ -9610,7 +10529,8 @@ create_encoding_table(interp)
#else /* ! HAVE_RUBY_ENCODING_H */
#if TCL_MAJOR_VERSION > 8 || (TCL_MAJOR_VERSION == 8 && TCL_MINOR_VERSION >= 1)
static VALUE
-create_encoding_table(interp)
+create_encoding_table_core(arg, interp)
+ VALUE arg;
VALUE interp;
{
struct tcltkip *ptr = get_ip(interp);
@@ -9651,7 +10571,8 @@ create_encoding_table(interp)
#else /* Tcl/Tk 7.x or 8.0 */
static VALUE
-create_encoding_table(interp)
+create_encoding_table_core(arg, interp)
+ VALUE arg;
VALUE interp;
{
volatile VALUE table = rb_hash_new();
@@ -9663,6 +10584,14 @@ create_encoding_table(interp)
#endif
static VALUE
+create_encoding_table(interp)
+ VALUE interp;
+{
+ return rb_funcall(rb_proc_new(create_encoding_table_core, interp),
+ ID_call, 0);
+}
+
+static VALUE
ip_get_encoding_table(interp)
VALUE interp;
{
@@ -9684,7 +10613,7 @@ ip_get_encoding_table(interp)
/*###############################################*/
/*
- * The following is based on tkMenu.[ch]
+ * The following is based on tkMenu.[ch]
* of Tcl/Tk (Tk8.0 -- Tk8.5b1) source code.
*/
#if TCL_MAJOR_VERSION >= 8
@@ -9747,10 +10676,10 @@ ip_make_menu_embeddable_core(interp, argc, argv)
#if 0 /* was available on Tk8.0 -- Tk8.4 */
menuRefPtr = TkFindMenuReferences(ptr->ip, RSTRING_PTR(menu_path));
#else /* based on Tk8.0 -- Tk8.5b1 */
- if ((menuTablePtr
+ if ((menuTablePtr
= (Tcl_HashTable *) Tcl_GetAssocData(ptr->ip, MENU_HASH_KEY, NULL))
!= NULL) {
- if ((hashEntryPtr
+ if ((hashEntryPtr
= Tcl_FindHashEntry(menuTablePtr, RSTRING_PTR(menu_path)))
!= NULL) {
menuRefPtr = (struct dummy_TkMenuRef *) Tcl_GetHashValue(hashEntryPtr);
@@ -9763,12 +10692,12 @@ ip_make_menu_embeddable_core(interp, argc, argv)
}
if (menuRefPtr->menuPtr == (struct dummy_TkMenu *) NULL) {
- rb_raise(rb_eRuntimeError,
+ rb_raise(rb_eRuntimeError,
"invalid menu widget (maybe already destroyed)");
}
if ((menuRefPtr->menuPtr)->menuType != MENUBAR) {
- rb_raise(rb_eRuntimeError,
+ rb_raise(rb_eRuntimeError,
"target menu widget must be a MENUBAR type");
}
@@ -9787,7 +10716,7 @@ ip_make_menu_embeddable_core(interp, argc, argv)
#if 0 /* was available on Tk8.0 -- Tk8.4 */
TkEventuallyRecomputeMenu(menuRefPtr->menuPtr);
- TkEventuallyRedrawMenu(menuRefPtr->menuPtr,
+ TkEventuallyRedrawMenu(menuRefPtr->menuPtr,
(struct dummy_TkMenuEntry *)NULL);
#else /* based on Tk8.0 -- Tk8.5b1 */
memset((void *) &event, 0, sizeof(event));
@@ -9870,28 +10799,28 @@ Init_tcltklib()
rb_define_const(lib, "COMPILE_INFO", tcltklib_compile_info());
- rb_define_const(lib, "RELEASE_DATE",
+ rb_define_const(lib, "RELEASE_DATE",
rb_obj_freeze(rb_str_new2(tcltklib_release_date)));
- rb_define_const(lib, "FINALIZE_PROC_NAME",
+ rb_define_const(lib, "FINALIZE_PROC_NAME",
rb_str_new2(finalize_hook_name));
/* --------------------------------------------------------------- */
#ifdef __WIN32__
-#define TK_WINDOWING_SYSTEM "win32"
-#else
-#ifdef MAC_TCL
-#define TK_WINDOWING_SYSTEM "classic"
-#else
-#ifdef MAC_OSX_TK
-#define TK_WINDOWING_SYSTEM "aqua"
+# define TK_WINDOWING_SYSTEM "win32"
#else
-#define TK_WINDOWING_SYSTEM "x11"
-#endif
-#endif
+# ifdef MAC_TCL
+# define TK_WINDOWING_SYSTEM "classic"
+# else
+# ifdef MAC_OSX_TK
+# define TK_WINDOWING_SYSTEM "aqua"
+# else
+# define TK_WINDOWING_SYSTEM "x11"
+# endif
+# endif
#endif
- rb_define_const(lib, "WINDOWING_SYSTEM",
+ rb_define_const(lib, "WINDOWING_SYSTEM",
rb_obj_freeze(rb_str_new2(TK_WINDOWING_SYSTEM)));
/* --------------------------------------------------------------- */
@@ -9925,7 +10854,7 @@ Init_tcltklib()
/* --------------------------------------------------------------- */
rb_define_module_function(lib, "get_version", lib_getversion, -1);
- rb_define_module_function(lib, "get_release_type_name",
+ rb_define_module_function(lib, "get_release_type_name",
lib_get_reltype_name, -1);
rb_define_const(release_type, "ALPHA", INT2FIX(TCL_ALPHA_RELEASE));
@@ -9977,53 +10906,53 @@ Init_tcltklib()
/* --------------------------------------------------------------- */
rb_define_module_function(lib, "mainloop", lib_mainloop, -1);
- rb_define_module_function(lib, "mainloop_thread?",
+ rb_define_module_function(lib, "mainloop_thread?",
lib_evloop_thread_p, 0);
- rb_define_module_function(lib, "mainloop_watchdog",
+ rb_define_module_function(lib, "mainloop_watchdog",
lib_mainloop_watchdog, -1);
- rb_define_module_function(lib, "do_thread_callback",
+ rb_define_module_function(lib, "do_thread_callback",
lib_thread_callback, -1);
rb_define_module_function(lib, "do_one_event", lib_do_one_event, -1);
- rb_define_module_function(lib, "mainloop_abort_on_exception",
+ rb_define_module_function(lib, "mainloop_abort_on_exception",
lib_evloop_abort_on_exc, 0);
- rb_define_module_function(lib, "mainloop_abort_on_exception=",
+ rb_define_module_function(lib, "mainloop_abort_on_exception=",
lib_evloop_abort_on_exc_set, 1);
- rb_define_module_function(lib, "set_eventloop_window_mode",
+ rb_define_module_function(lib, "set_eventloop_window_mode",
set_eventloop_window_mode, 1);
- rb_define_module_function(lib, "get_eventloop_window_mode",
+ rb_define_module_function(lib, "get_eventloop_window_mode",
get_eventloop_window_mode, 0);
rb_define_module_function(lib, "set_eventloop_tick",set_eventloop_tick,1);
rb_define_module_function(lib, "get_eventloop_tick",get_eventloop_tick,0);
rb_define_module_function(lib, "set_no_event_wait", set_no_event_wait, 1);
rb_define_module_function(lib, "get_no_event_wait", get_no_event_wait, 0);
- rb_define_module_function(lib, "set_eventloop_weight",
+ rb_define_module_function(lib, "set_eventloop_weight",
set_eventloop_weight, 2);
rb_define_module_function(lib, "set_max_block_time", set_max_block_time,1);
- rb_define_module_function(lib, "get_eventloop_weight",
+ rb_define_module_function(lib, "get_eventloop_weight",
get_eventloop_weight, 0);
- rb_define_module_function(lib, "num_of_mainwindows",
+ rb_define_module_function(lib, "num_of_mainwindows",
lib_num_of_mainwindows, 0);
/* --------------------------------------------------------------- */
rb_define_module_function(lib, "_split_tklist", lib_split_tklist, 1);
rb_define_module_function(lib, "_merge_tklist", lib_merge_tklist, -1);
- rb_define_module_function(lib, "_conv_listelement",
+ rb_define_module_function(lib, "_conv_listelement",
lib_conv_listelement, 1);
rb_define_module_function(lib, "_toUTF8", lib_toUTF8, -1);
rb_define_module_function(lib, "_fromUTF8", lib_fromUTF8, -1);
- rb_define_module_function(lib, "_subst_UTF_backslash",
+ rb_define_module_function(lib, "_subst_UTF_backslash",
lib_UTF_backslash, 1);
- rb_define_module_function(lib, "_subst_Tcl_backslash",
+ rb_define_module_function(lib, "_subst_Tcl_backslash",
lib_Tcl_backslash, 1);
- rb_define_module_function(lib, "encoding_system",
+ rb_define_module_function(lib, "encoding_system",
lib_get_system_encoding, 0);
- rb_define_module_function(lib, "encoding_system=",
+ rb_define_module_function(lib, "encoding_system=",
lib_set_system_encoding, 1);
- rb_define_module_function(lib, "encoding",
+ rb_define_module_function(lib, "encoding",
lib_get_system_encoding, 0);
- rb_define_module_function(lib, "encoding=",
+ rb_define_module_function(lib, "encoding=",
lib_set_system_encoding, 1);
/* --------------------------------------------------------------- */
@@ -10041,6 +10970,8 @@ Init_tcltklib()
rb_define_method(ip, "has_mainwindow?", ip_has_mainwindow_p, 0);
rb_define_method(ip, "invalid_namespace?", ip_has_invalid_namespace_p, 0);
rb_define_method(ip, "_eval", ip_eval, 1);
+ rb_define_method(ip, "_cancel_eval", ip_cancel_eval, -1);
+ rb_define_method(ip, "_cancel_eval_unwind", ip_cancel_eval_unwind, -1);
rb_define_method(ip, "_toUTF8", ip_toUTF8, -1);
rb_define_method(ip, "_fromUTF8", ip_fromUTF8, -1);
rb_define_method(ip, "_thread_vwait", ip_thread_vwait, 1);
@@ -10053,7 +10984,7 @@ Init_tcltklib()
/* --------------------------------------------------------------- */
- rb_define_method(ip, "create_dummy_encoding_for_tk",
+ rb_define_method(ip, "create_dummy_encoding_for_tk",
create_dummy_encoding_for_tk, 1);
rb_define_method(ip, "encoding_table", ip_get_encoding_table, 0);
@@ -10087,9 +11018,9 @@ Init_tcltklib()
rb_define_method(ip, "mainloop", ip_mainloop, -1);
rb_define_method(ip, "mainloop_watchdog", ip_mainloop_watchdog, -1);
rb_define_method(ip, "do_one_event", ip_do_one_event, -1);
- rb_define_method(ip, "mainloop_abort_on_exception",
+ rb_define_method(ip, "mainloop_abort_on_exception",
ip_evloop_abort_on_exc, 0);
- rb_define_method(ip, "mainloop_abort_on_exception=",
+ rb_define_method(ip, "mainloop_abort_on_exception=",
ip_evloop_abort_on_exc_set, 1);
rb_define_method(ip, "set_eventloop_tick", ip_set_eventloop_tick, 1);
rb_define_method(ip, "get_eventloop_tick", ip_get_eventloop_tick, 0);
@@ -10103,12 +11034,13 @@ Init_tcltklib()
/* --------------------------------------------------------------- */
eventloop_thread = Qnil;
+ eventloop_interp = (Tcl_Interp*)NULL;
#ifndef DEFAULT_EVENTLOOP_DEPTH
#define DEFAULT_EVENTLOOP_DEPTH 7
-#endif
+#endif
eventloop_stack = rb_ary_new2(DEFAULT_EVENTLOOP_DEPTH);
- OBJ_TAINT(eventloop_stack);
+ RbTk_OBJ_UNTRUST(eventloop_stack);
watchdog_thread = Qnil;
@@ -10116,9 +11048,11 @@ Init_tcltklib()
/* --------------------------------------------------------------- */
- /* if ruby->nativethread-supprt and tcltklib->doen't,
+#ifdef HAVE_NATIVETHREAD
+ /* if ruby->nativethread-supprt and tcltklib->doen't,
the following will cause link-error. */
ruby_native_thread_p();
+#endif
/* --------------------------------------------------------------- */
@@ -10140,6 +11074,12 @@ Init_tcltklib()
/* --------------------------------------------------------------- */
+#if defined CREATE_RUBYTK_KIT || defined CREATE_RUBYKIT
+ setup_rubytkkit();
+#endif
+
+ /* --------------------------------------------------------------- */
+
/* Tcl stub check */
tcl_stubs_check();
@@ -10152,4 +11092,3 @@ Init_tcltklib()
}
/* eof */
-
diff --git a/ext/tk/tkutil/.cvsignore b/ext/tk/tkutil/.cvsignore
deleted file mode 100644
index 90c83ed9b1..0000000000
--- a/ext/tk/tkutil/.cvsignore
+++ /dev/null
@@ -1,3 +0,0 @@
-Makefile
-*.log
-*.def
diff --git a/ext/tk/tkutil/extconf.rb b/ext/tk/tkutil/extconf.rb
index 34b91632eb..57de973c0a 100644
--- a/ext/tk/tkutil/extconf.rb
+++ b/ext/tk/tkutil/extconf.rb
@@ -7,8 +7,12 @@ end
if has_tk
require 'mkmf'
+
have_func("rb_obj_instance_exec", "ruby.h")
+ have_func("rb_obj_untrust", "ruby.h")
+ have_func("rb_obj_taint", "ruby.h")
have_func("rb_sym_to_s", "ruby.h")
have_func("strndup", "string.h")
+
create_makefile('tkutil')
end
diff --git a/ext/tk/tkutil/tkutil.c b/ext/tk/tkutil/tkutil.c
index 42c9330766..2f92b334bb 100644
--- a/ext/tk/tkutil/tkutil.c
+++ b/ext/tk/tkutil/tkutil.c
@@ -7,16 +7,38 @@
************************************************/
-#define TKUTIL_RELEASE_DATE "2008-05-23"
+#define TKUTIL_RELEASE_DATE "2010-03-26"
#include "ruby.h"
+#ifdef RUBY_VM
+static VALUE rb_thread_critical; /* dummy */
+#else
+/* On Ruby 1.8.x, use rb_thread_critical (defined at rubysig.h) */
+#include "rubysig.h"
+#endif
#ifdef HAVE_RUBY_ST_H
#include "ruby/st.h"
#else
#include "st.h"
#endif
+#if !defined(RHASH_TBL)
+#define RHASH_TBL(h) (RHASH(h)->tbl)
+#endif
+#if !defined(RSTRING_PTR)
+#define RSTRING_PTR(s) (RSTRING(s)->ptr)
+#define RSTRING_LEN(s) (RSTRING(s)->len)
+#endif
+#if !defined(RARRAY_PTR)
+#define RARRAY_PTR(s) (RARRAY(s)->ptr)
+#define RARRAY_LEN(s) (RARRAY(s)->len)
+#endif
+
+#if defined(HAVE_STRNDUP) && !defined(_GNU_SOURCE)
+extern char *strndup(const char* _ptr, size_t _len);
+#endif
+
static VALUE cMethod;
static VALUE cTclTkLib;
@@ -54,6 +76,9 @@ static unsigned long CALLBACK_ID_NUM = 0;
/*************************************/
+#if defined(HAVE_RB_OBJ_INSTANCE_EXEC) && !defined(RUBY_VM)
+extern VALUE rb_obj_instance_exec _((int, VALUE*, VALUE));
+#endif
static VALUE
tk_s_new(argc, argv, klass)
int argc;
@@ -78,12 +103,34 @@ static VALUE
tkNone_to_s(self)
VALUE self;
{
+ return rb_str_new2("");
+}
+
+static VALUE
+tkNone_inspect(self)
+ VALUE self;
+{
return rb_str_new2("None");
}
/*************************************/
static VALUE
+tk_obj_untrust(self, obj)
+ VALUE self;
+ VALUE obj;
+{
+#ifdef HAVE_RB_OBJ_TAINT
+ rb_obj_taint(obj);
+#endif
+#ifdef HAVE_RB_OBJ_UNTRUST
+ rb_obj_untrust(obj);
+#endif
+
+ return obj;
+}
+
+static VALUE
tk_eval_cmd(argc, argv, self)
int argc;
VALUE argv[];
@@ -108,7 +155,7 @@ tk_do_callback(argc, argv, self)
rb_scan_args(argc, argv, "1*", &id, &rest);
return rb_apply(rb_hash_aref(CALLBACK_TABLE, id), ID_call, rest);
#endif
- return rb_funcall2(rb_hash_aref(CALLBACK_TABLE, argv[0]),
+ return rb_funcall2(rb_hash_aref(CALLBACK_TABLE, argv[0]),
ID_call, argc - 1, argv + 1);
}
@@ -162,12 +209,12 @@ tk_uninstall_cmd(self, cmd_id)
if (strncmp(cmd_id_head, RSTRING_PTR(cmd_id), head_len) != 0) {
return Qnil;
}
- if (strncmp(cmd_id_prefix,
+ if (strncmp(cmd_id_prefix,
RSTRING_PTR(cmd_id) + head_len, prefix_len) != 0) {
return Qnil;
}
- return rb_hash_delete(CALLBACK_TABLE,
+ return rb_hash_delete(CALLBACK_TABLE,
rb_str_new2(RSTRING_PTR(cmd_id) + head_len));
}
@@ -650,7 +697,7 @@ push_kv_enc(key, val, args)
#if 0
rb_ary_push(ary, key2keyname(key));
if (val != TK_None) {
- rb_ary_push(ary, get_eval_string_core(val, Qtrue,
+ rb_ary_push(ary, get_eval_string_core(val, Qtrue,
RARRAY_PTR(args)[1]));
}
#endif
@@ -782,7 +829,7 @@ get_eval_string_core(obj, enc_flag, self)
case T_SYMBOL:
if (RTEST(enc_flag)) {
if (rb_obj_respond_to(self, ID_toUTF8, Qtrue)) {
- return rb_funcall(self, ID_toUTF8, 1,
+ return rb_funcall(self, ID_toUTF8, 1,
rb_str_new2(rb_id2name(SYM2ID(obj))));
} else {
return fromDefaultEnc_toUTF8(rb_str_new2(rb_id2name(SYM2ID(obj))), self);
@@ -820,7 +867,7 @@ get_eval_string_core(obj, enc_flag, self)
default:
if (rb_obj_is_kind_of(obj, cTkObject)) {
/* return rb_str_new3(rb_funcall(obj, ID_path, 0, 0)); */
- return get_eval_string_core(rb_funcall(obj, ID_path, 0, 0),
+ return get_eval_string_core(rb_funcall(obj, ID_path, 0, 0),
enc_flag, self);
}
@@ -838,18 +885,18 @@ get_eval_string_core(obj, enc_flag, self)
if (rb_obj_respond_to(obj, ID_to_eval, Qtrue)) {
/* return rb_funcall(obj, ID_to_eval, 0, 0); */
- return get_eval_string_core(rb_funcall(obj, ID_to_eval, 0, 0),
+ return get_eval_string_core(rb_funcall(obj, ID_to_eval, 0, 0),
enc_flag, self);
} else if (rb_obj_respond_to(obj, ID_path, Qtrue)) {
/* return rb_funcall(obj, ID_path, 0, 0); */
- return get_eval_string_core(rb_funcall(obj, ID_path, 0, 0),
+ return get_eval_string_core(rb_funcall(obj, ID_path, 0, 0),
enc_flag, self);
} else if (rb_obj_respond_to(obj, ID_to_s, Qtrue)) {
return rb_funcall(obj, ID_to_s, 0, 0);
}
}
- rb_warning("fail to convert '%s' to string for Tk",
+ rb_warning("fail to convert '%s' to string for Tk",
RSTRING_PTR(rb_funcall(obj, rb_intern("inspect"), 0, 0)));
return obj;
@@ -890,12 +937,15 @@ tk_conv_args(argc, argv, self)
{
int idx, size;
volatile VALUE dst;
+ int thr_crit_bup;
VALUE old_gc;
if (argc < 2) {
rb_raise(rb_eArgError, "too few arguments");
}
+ thr_crit_bup = rb_thread_critical;
+ rb_thread_critical = Qtrue;
old_gc = rb_gc_disable();
for(size = 0, idx = 2; idx < argc; idx++) {
@@ -920,6 +970,7 @@ tk_conv_args(argc, argv, self)
}
if (old_gc == Qfalse) rb_gc_enable();
+ rb_thread_critical = thr_crit_bup;
return rb_ary_plus(argv[0], dst);
}
@@ -988,7 +1039,7 @@ static VALUE
tkstr_invalid_numstr(value)
VALUE value;
{
- rb_raise(rb_eArgError,
+ rb_raise(rb_eArgError,
"invalid value for Number: '%s'", RSTRING_PTR(value));
return Qnil; /*dummy*/
}
@@ -997,8 +1048,8 @@ static VALUE
tkstr_rescue_float(value)
VALUE value;
{
- return rb_rescue2(tkstr_to_float, value,
- tkstr_invalid_numstr, value,
+ return rb_rescue2(tkstr_to_float, value,
+ tkstr_invalid_numstr, value,
rb_eArgError, 0);
}
@@ -1010,8 +1061,8 @@ tkstr_to_number(value)
if (RSTRING_PTR(value) == (char*)NULL) return INT2FIX(0);
- return rb_rescue2(tkstr_to_int, value,
- tkstr_rescue_float, value,
+ return rb_rescue2(tkstr_to_int, value,
+ tkstr_rescue_float, value,
rb_eArgError, 0);
}
@@ -1060,11 +1111,23 @@ tcl2rb_num_or_str(self, value)
if (RSTRING_PTR(value) == (char*)NULL) return rb_tainted_str_new2("");
- return rb_rescue2(tkstr_to_number, value,
- tkstr_to_str, value,
+ return rb_rescue2(tkstr_to_number, value,
+ tkstr_to_str, value,
rb_eArgError, 0);
}
+static VALUE
+tcl2rb_num_or_nil(self, value)
+ VALUE self;
+ VALUE value;
+{
+ rb_check_type(value, T_STRING);
+
+ if (RSTRING_LEN(value) == 0) return Qnil;
+
+ return tkstr_to_number(value);
+}
+
/*************************************/
@@ -1096,16 +1159,16 @@ subst_free(ptr)
if (ptr) {
for(i = 0; i < CBSUBST_TBL_MAX; i++) {
if (ptr->key[i] != NULL) {
- free(ptr->key[i]);
+ free(ptr->key[i]); /* allocated by malloc */
ptr->key[i] = NULL;
}
}
- free(ptr);
+ xfree(ptr); /* allocated by ALLOC */
}
}
-static struct cbsubst_info *
-allocate_cbsubst_info()
+static VALUE
+allocate_cbsubst_info(struct cbsubst_info **inf_ptr)
{
struct cbsubst_info *inf;
volatile VALUE proc, aliases;
@@ -1128,15 +1191,16 @@ allocate_cbsubst_info()
aliases = rb_hash_new();
inf->aliases = aliases;
- return inf;
+ if (inf_ptr != (struct cbsubst_info **)NULL) *inf_ptr = inf;
+
+ return Data_Wrap_Struct(cSUBST_INFO, subst_mark, subst_free, inf);
}
static void
cbsubst_init()
{
- rb_const_set(cCB_SUBST, ID_SUBST_INFO,
- Data_Wrap_Struct(cSUBST_INFO, subst_mark, subst_free,
- allocate_cbsubst_info()));
+ rb_const_set(cCB_SUBST, ID_SUBST_INFO,
+ allocate_cbsubst_info((struct cbsubst_info **)NULL));
}
static VALUE
@@ -1148,7 +1212,7 @@ cbsubst_initialize(argc, argv, self)
struct cbsubst_info *inf;
int idx, iv_idx;
- Data_Get_Struct(rb_const_get(rb_obj_class(self), ID_SUBST_INFO),
+ Data_Get_Struct(rb_const_get(rb_obj_class(self), ID_SUBST_INFO),
struct cbsubst_info, inf);
idx = 0;
@@ -1188,7 +1252,7 @@ each_attr_def(key, value, klass)
key_id = SYM2ID(key);
break;
default:
- rb_raise(rb_eArgError,
+ rb_raise(rb_eArgError,
"includes invalid key(s). expected a String or a Symbol");
}
@@ -1200,7 +1264,7 @@ each_attr_def(key, value, klass)
value_id = SYM2ID(value);
break;
default:
- rb_raise(rb_eArgError,
+ rb_raise(rb_eArgError,
"includes invalid value(s). expected a String or a Symbol");
}
@@ -1220,7 +1284,7 @@ cbsubst_def_attr_aliases(self, tbl)
rb_raise(rb_eArgError, "expected a Hash");
}
- Data_Get_Struct(rb_const_get(self, ID_SUBST_INFO),
+ Data_Get_Struct(rb_const_get(self, ID_SUBST_INFO),
struct cbsubst_info, inf);
rb_hash_foreach(tbl, each_attr_def, self);
@@ -1242,7 +1306,7 @@ cbsubst_sym_to_subst(self, sym)
if (TYPE(sym) != T_SYMBOL) return sym;
- Data_Get_Struct(rb_const_get(self, ID_SUBST_INFO),
+ Data_Get_Struct(rb_const_get(self, ID_SUBST_INFO),
struct cbsubst_info, inf);
if (!NIL_P(ret = rb_hash_aref(inf->aliases, sym))) {
@@ -1276,7 +1340,7 @@ cbsubst_sym_to_subst(self, sym)
ret = rb_str_new2(buf);
- free(buf);
+ xfree(buf);
return ret;
}
@@ -1294,7 +1358,7 @@ cbsubst_get_subst_arg(argc, argv, self)
ID id;
volatile VALUE arg_sym, ret;
- Data_Get_Struct(rb_const_get(self, ID_SUBST_INFO),
+ Data_Get_Struct(rb_const_get(self, ID_SUBST_INFO),
struct cbsubst_info, inf);
ptr = buf = ALLOC_N(char, inf->full_subst_length + 1);
@@ -1344,7 +1408,7 @@ cbsubst_get_subst_arg(argc, argv, self)
ret = rb_str_new2(buf);
- free(buf);
+ xfree(buf);
return ret;
}
@@ -1364,7 +1428,7 @@ cbsubst_get_subst_key(self, str)
list = rb_funcall(cTclTkLib, ID_split_tklist, 1, str);
len = RARRAY_LEN(list);
- Data_Get_Struct(rb_const_get(self, ID_SUBST_INFO),
+ Data_Get_Struct(rb_const_get(self, ID_SUBST_INFO),
struct cbsubst_info, inf);
ptr = buf = ALLOC_N(char, inf->full_subst_length + len + 1);
@@ -1398,7 +1462,7 @@ cbsubst_get_subst_key(self, str)
*ptr = '\0';
ret = rb_str_new2(buf);
- free(buf);
+ xfree(buf);
return ret;
}
@@ -1412,7 +1476,7 @@ cbsubst_get_all_subst_keys(self)
int idx, len;
volatile VALUE ret;
- Data_Get_Struct(rb_const_get(self, ID_SUBST_INFO),
+ Data_Get_Struct(rb_const_get(self, ID_SUBST_INFO),
struct cbsubst_info, inf);
ptr = buf = ALLOC_N(char, inf->full_subst_length + 1);
@@ -1442,8 +1506,8 @@ cbsubst_get_all_subst_keys(self)
ret = rb_ary_new3(2, rb_str_new2(keys_buf), rb_str_new2(buf));
- free(buf);
- free(keys_buf);
+ xfree(buf);
+ xfree(keys_buf);
return ret;
}
@@ -1454,6 +1518,7 @@ cbsubst_table_setup(argc, argv, self)
VALUE *argv;
VALUE self;
{
+ volatile VALUE cbsubst_obj;
volatile VALUE key_inf;
volatile VALUE longkey_inf;
volatile VALUE proc_inf;
@@ -1475,7 +1540,7 @@ cbsubst_table_setup(argc, argv, self)
}
/* init */
- subst_inf = allocate_cbsubst_info();
+ cbsubst_obj = allocate_cbsubst_info(&subst_inf);
/*
* keys : array of [subst, type, ivar]
@@ -1522,7 +1587,7 @@ cbsubst_table_setup(argc, argv, self)
chr = (unsigned char)(0x80 + idx);
subst_inf->keylen[chr] = RSTRING_LEN(RARRAY_PTR(inf)[0]);
#if HAVE_STRNDUP
- subst_inf->key[chr] = strndup(RSTRING_PTR(RARRAY_PTR(inf)[0]),
+ subst_inf->key[chr] = strndup(RSTRING_PTR(RARRAY_PTR(inf)[0]),
RSTRING_LEN(RARRAY_PTR(inf)[0]));
#else
subst_inf->key[chr] = malloc(RSTRING_LEN(RARRAY_PTR(inf)[0]) + 1);
@@ -1555,16 +1620,14 @@ cbsubst_table_setup(argc, argv, self)
for(idx = 0; idx < len; idx++) {
inf = RARRAY_PTR(proc_inf)[idx];
if (TYPE(inf) != T_ARRAY) continue;
- rb_hash_aset(subst_inf->proc,
- ((TYPE(RARRAY_PTR(inf)[0]) == T_STRING)?
- INT2FIX(*(RSTRING_PTR(RARRAY_PTR(inf)[0]))) :
- RARRAY_PTR(inf)[0]),
+ rb_hash_aset(subst_inf->proc,
+ ((TYPE(RARRAY_PTR(inf)[0]) == T_STRING)?
+ INT2FIX(*(RSTRING_PTR(RARRAY_PTR(inf)[0]))) :
+ RARRAY_PTR(inf)[0]),
RARRAY_PTR(inf)[1]);
}
- rb_const_set(self, ID_SUBST_INFO,
- Data_Wrap_Struct(cSUBST_INFO, subst_mark,
- subst_free, subst_inf));
+ rb_const_set(self, ID_SUBST_INFO, cbsubst_obj);
return self;
}
@@ -1590,11 +1653,15 @@ cbsubst_scan_args(self, arg_key, val_ary)
unsigned char type_chr;
volatile VALUE dst = rb_ary_new2(vallen);
volatile VALUE proc;
+ int thr_crit_bup;
VALUE old_gc;
+ thr_crit_bup = rb_thread_critical;
+ rb_thread_critical = Qtrue;
+
old_gc = rb_gc_disable();
- Data_Get_Struct(rb_const_get(self, ID_SUBST_INFO),
+ Data_Get_Struct(rb_const_get(self, ID_SUBST_INFO),
struct cbsubst_info, inf);
for(idx = 0; idx < vallen; idx++) {
@@ -1613,12 +1680,13 @@ cbsubst_scan_args(self, arg_key, val_ary)
if (NIL_P(proc)) {
rb_ary_push(dst, RARRAY_PTR(val_ary)[idx]);
} else {
- rb_ary_push(dst, rb_funcall(proc, ID_call, 1,
+ rb_ary_push(dst, rb_funcall(proc, ID_call, 1,
RARRAY_PTR(val_ary)[idx]));
}
}
if (old_gc == Qfalse) rb_gc_enable();
+ rb_thread_critical = thr_crit_bup;
return dst;
}
@@ -1668,7 +1736,7 @@ Init_tkutil()
/* --------------------- */
- rb_define_const(mTK, "RELEASE_DATE",
+ rb_define_const(mTK, "RELEASE_DATE",
rb_obj_freeze(rb_str_new2(tkutil_release_date)));
/* --------------------- */
@@ -1698,19 +1766,19 @@ Init_tkutil()
ID_SUBST_INFO = rb_intern("SUBST_INFO");
rb_define_singleton_method(cCB_SUBST, "ret_val", cbsubst_ret_val, 1);
rb_define_singleton_method(cCB_SUBST, "scan_args", cbsubst_scan_args, 2);
- rb_define_singleton_method(cCB_SUBST, "_sym2subst",
+ rb_define_singleton_method(cCB_SUBST, "_sym2subst",
cbsubst_sym_to_subst, 1);
- rb_define_singleton_method(cCB_SUBST, "subst_arg",
+ rb_define_singleton_method(cCB_SUBST, "subst_arg",
cbsubst_get_subst_arg, -1);
- rb_define_singleton_method(cCB_SUBST, "_get_subst_key",
+ rb_define_singleton_method(cCB_SUBST, "_get_subst_key",
cbsubst_get_subst_key, 1);
- rb_define_singleton_method(cCB_SUBST, "_get_all_subst_keys",
+ rb_define_singleton_method(cCB_SUBST, "_get_all_subst_keys",
cbsubst_get_all_subst_keys, 0);
- rb_define_singleton_method(cCB_SUBST, "_setup_subst_table",
+ rb_define_singleton_method(cCB_SUBST, "_setup_subst_table",
cbsubst_table_setup, -1);
- rb_define_singleton_method(cCB_SUBST, "_get_extra_args_tbl",
+ rb_define_singleton_method(cCB_SUBST, "_get_extra_args_tbl",
cbsubst_get_extra_args_tbl, 0);
- rb_define_singleton_method(cCB_SUBST, "_define_attribute_aliases",
+ rb_define_singleton_method(cCB_SUBST, "_define_attribute_aliases",
cbsubst_def_attr_aliases, 1);
rb_define_method(cCB_SUBST, "initialize", cbsubst_initialize, -1);
@@ -1743,7 +1811,7 @@ Init_tkutil()
TK_None = rb_obj_alloc(rb_cObject);
rb_define_const(mTK, "None", TK_None);
rb_define_singleton_method(TK_None, "to_s", tkNone_to_s, 0);
- rb_define_singleton_method(TK_None, "inspect", tkNone_to_s, 0);
+ rb_define_singleton_method(TK_None, "inspect", tkNone_inspect, 0);
OBJ_FREEZE(TK_None);
/* --------------------- */
@@ -1751,15 +1819,17 @@ Init_tkutil()
CALLBACK_TABLE = rb_hash_new();
/* --------------------- */
+ rb_define_singleton_method(mTK, "untrust", tk_obj_untrust, 1);
+
rb_define_singleton_method(mTK, "eval_cmd", tk_eval_cmd, -1);
rb_define_singleton_method(mTK, "callback", tk_do_callback, -1);
rb_define_singleton_method(mTK, "install_cmd", tk_install_cmd, -1);
rb_define_singleton_method(mTK, "uninstall_cmd", tk_uninstall_cmd, 1);
rb_define_singleton_method(mTK, "_symbolkey2str", tk_symbolkey2str, 1);
rb_define_singleton_method(mTK, "hash_kv", tk_hash_kv, -1);
- rb_define_singleton_method(mTK, "_get_eval_string",
+ rb_define_singleton_method(mTK, "_get_eval_string",
tk_get_eval_string, -1);
- rb_define_singleton_method(mTK, "_get_eval_enc_str",
+ rb_define_singleton_method(mTK, "_get_eval_enc_str",
tk_get_eval_enc_str, 1);
rb_define_singleton_method(mTK, "_conv_args", tk_conv_args, -1);
@@ -1767,6 +1837,7 @@ Init_tkutil()
rb_define_singleton_method(mTK, "number", tcl2rb_number, 1);
rb_define_singleton_method(mTK, "string", tcl2rb_string, 1);
rb_define_singleton_method(mTK, "num_or_str", tcl2rb_num_or_str, 1);
+ rb_define_singleton_method(mTK, "num_or_nil", tcl2rb_num_or_nil, 1);
rb_define_method(mTK, "_toUTF8", tk_toUTF8, -1);
rb_define_method(mTK, "_fromUTF8", tk_fromUTF8, -1);
@@ -1780,6 +1851,7 @@ Init_tkutil()
rb_define_method(mTK, "number", tcl2rb_number, 1);
rb_define_method(mTK, "string", tcl2rb_string, 1);
rb_define_method(mTK, "num_or_str", tcl2rb_num_or_str, 1);
+ rb_define_method(mTK, "num_or_nil", tcl2rb_num_or_nil, 1);
/* --------------------- */
rb_global_variable(&ENCODING_NAME_UTF8);
diff --git a/ext/win32ole/.cvsignore b/ext/win32ole/.cvsignore
deleted file mode 100644
index 4f6430def0..0000000000
--- a/ext/win32ole/.cvsignore
+++ /dev/null
@@ -1,4 +0,0 @@
-Makefile
-mkmf.log
-*.log
-.document
diff --git a/ext/win32ole/depend b/ext/win32ole/depend
index 4bf5ab5b94..3b1d7e9a97 100644
--- a/ext/win32ole/depend
+++ b/ext/win32ole/depend
@@ -1 +1 @@
-win32ole.o : win32ole.c $(hdrdir)/ruby.h $(hdrdir)/config.h $(hdrdir)/defines.h
+win32ole.o : win32ole.c $(hdrdir)/ruby.h $(hdrdir)/config.h $(hdrdir)/defines.h
diff --git a/ext/win32ole/extconf.rb b/ext/win32ole/extconf.rb
index b4f09fc7c0..c3717316d4 100644
--- a/ext/win32ole/extconf.rb
+++ b/ext/win32ole/extconf.rb
@@ -4,22 +4,18 @@
#----------------------------------
require 'mkmf'
-dir_config("win32")
-
-SRCFILES=<<SRC
-win32ole.c
-SRC
-
-def create_docfile(src)
- open(File.expand_path($srcdir) + "/.document", "w") {|ofs|
- ofs.print src
- }
+case RUBY_PLATFORM
+when /cygwin/
+ inc = nil
+ lib = '/usr/lib/w32api'
end
+dir_config("win32", inc, lib)
+
def create_win32ole_makefile
if have_library("ole32") and
have_library("oleaut32") and
- have_library("uuid") and
+ have_library("uuid", "&CLSID_CMultiLanguage", "mlang.h") and
have_library("user32") and
have_library("kernel32") and
have_library("advapi32") and
@@ -28,9 +24,6 @@ def create_win32ole_makefile
have_type("IMultiLanguage", "mlang.h")
end
create_makefile("win32ole")
- create_docfile(SRCFILES)
- else
- create_docfile("")
end
end
@@ -38,7 +31,5 @@ end
case RUBY_PLATFORM
when /mswin/
$CFLAGS += ' /W3'
-when /cygwin/, /mingw/
- $defs << '-DNONAMELESSUNION'
end
create_win32ole_makefile
diff --git a/ext/win32ole/lib/win32ole.rb b/ext/win32ole/lib/win32ole.rb
new file mode 100644
index 0000000000..aaf7e7cdcf
--- /dev/null
+++ b/ext/win32ole/lib/win32ole.rb
@@ -0,0 +1,22 @@
+require 'win32ole.so'
+
+# re-define Thread#initialize
+# bug #2618(ruby-core:27634)
+
+class Thread
+ alias :org_initialize :initialize
+ def initialize(*arg, &block)
+ if block
+ org_initialize(*arg) {
+ WIN32OLE.ole_initialize
+ begin
+ block.call(*arg)
+ ensure
+ WIN32OLE.ole_uninitialize
+ end
+ }
+ else
+ org_initialize(*arg)
+ end
+ end
+end
diff --git a/ext/win32ole/win32ole.c b/ext/win32ole/win32ole.c
index 86f4f2e085..acc2fea39d 100644
--- a/ext/win32ole/win32ole.c
+++ b/ext/win32ole/win32ole.c
@@ -18,7 +18,20 @@
#include "ruby/ruby.h"
#include "ruby/st.h"
#include "ruby/encoding.h"
+
+#define GNUC_OLDER_3_4_4 \
+ ((__GNUC__ < 3) || \
+ ((__GNUC__ <= 3) && (__GNUC_MINOR__ < 4)) || \
+ ((__GNUC__ <= 3) && (__GNUC_MINOR__ <= 4) && (__GNUC_PATCHLEVEL__ <= 4)))
+
+#if (defined(__GNUC__)) && (GNUC_OLDER_3_4_4)
+#ifndef NONAMELESSUNION
+#define NONAMELESSUNION 1
+#endif
+#endif
+
#include <ctype.h>
+
#include <windows.h>
#include <ocidl.h>
#include <olectl.h>
@@ -43,13 +56,13 @@
#define DOUTI(x) fprintf(stderr, "[%ld]:" #x "=%d\n",__LINE__,x)
#define DOUTD(x) fprintf(stderr, "[%d]:" #x "=%f\n",__LINE__,x)
-#if defined NONAMELESSUNION && __GNUC__
+#if (defined(__GNUC__)) && (GNUC_OLDER_3_4_4)
#define V_UNION1(X, Y) ((X)->u.Y)
#else
#define V_UNION1(X, Y) ((X)->Y)
#endif
-#if defined NONAMELESSUNION && __GNUC__
+#if (defined(__GNUC__)) && (GNUC_OLDER_3_4_4)
#undef V_UNION
#define V_UNION(X,Y) ((X)->n1.n2.n3.Y)
@@ -64,7 +77,7 @@
#define V_I1REF(X) V_UNION(X, pcVal)
#endif
-#ifndef U_UI2REF
+#ifndef V_UI2REF
#define V_UI2REF(X) V_UNION(X, puiVal)
#endif
@@ -85,7 +98,7 @@
#endif
/*
- * unfortunately IID_IMultiLanguage2 is not included in any libXXX.a
+ * unfortunately IID_IMultiLanguage2 is not included in any libXXX.a
* in Cygwin(mingw32).
*/
#if defined(__CYGWIN__) || defined(__MINGW32__)
@@ -130,7 +143,7 @@ const IID IID_IMultiLanguage2 = {0xDCCFC164, 0x2B38, 0x11d2, {0xB7, 0xEC, 0x00,
#define WC2VSTR(x) ole_wc2vstr((x), TRUE)
-#define WIN32OLE_VERSION "1.4.0"
+#define WIN32OLE_VERSION "1.5.3"
typedef HRESULT (STDAPICALLTYPE FNCOCREATEINSTANCEEX)
(REFCLSID, IUnknown*, DWORD, COSERVERINFO*, DWORD, MULTI_QI*);
@@ -232,6 +245,10 @@ struct oledata {
IDispatch *pDispatch;
};
+struct oletypelibdata {
+ ITypeLib *pTypeLib;
+};
+
struct oletypedata {
ITypeInfo *pTypeInfo;
};
@@ -278,13 +295,8 @@ static HRESULT ( STDMETHODCALLTYPE GetTypeInfo )(IDispatch __RPC_FAR * This, UIN
static HRESULT ( STDMETHODCALLTYPE GetIDsOfNames )(IDispatch __RPC_FAR * This, REFIID riid, LPOLESTR __RPC_FAR *rgszNames, UINT cNames, LCID lcid, DISPID __RPC_FAR *rgDispId);
static HRESULT ( STDMETHODCALLTYPE Invoke )( IDispatch __RPC_FAR * This, DISPID dispIdMember, REFIID riid, LCID lcid, WORD wFlags, DISPPARAMS __RPC_FAR *pDispParams, VARIANT __RPC_FAR *pVarResult, EXCEPINFO __RPC_FAR *pExcepInfo, UINT __RPC_FAR *puArgErr);
static IDispatch* val2dispatch(VALUE val);
-static void time2d(int hh, int mm, int ss, double *pv);
-static void d2time(double v, int *hh, int *mm, int *ss);
-static void civil2jd(int y, int m, int d, long *jd);
-static void jd2civil(long day, int *yy, int *mm, int *dd);
-static void double2time(double v, int *y, int *m, int *d, int *hh, int *mm, int *ss);
-static double time_object2date(VALUE tmobj);
-static VALUE date2time_str(double date);
+static double rbtime2vtdate(VALUE tmobj);
+static VALUE vtdate2rbtime(double date);
static rb_encoding *ole_cp2encoding(UINT cp);
static UINT ole_encoding2cp(rb_encoding *enc);
NORETURN(static void failed_load_conv51932(void));
@@ -300,6 +312,7 @@ static void ole_raise(HRESULT hr, VALUE ecs, const char *fmt, ...);
static void ole_initialize();
static void ole_msg_loop();
static void ole_free(struct oledata *pole);
+static void oletypelib_free(struct oletypelibdata *poletypelib);
static void oletype_free(struct oletypedata *poletype);
static void olemethod_free(struct olemethoddata *polemethod);
static void olevariable_free(struct olevariabledata *polevar);
@@ -357,6 +370,10 @@ static BOOL CALLBACK installed_lcid_proc(LPTSTR str);
static BOOL lcid_installed(LCID lcid);
static VALUE fole_s_set_locale(VALUE self, VALUE vlcid);
static VALUE fole_s_create_guid(VALUE self);
+static void ole_pure_initialize();
+static VALUE fole_s_ole_initialize(VALUE self);
+static void ole_pure_uninitialize();
+static VALUE fole_s_ole_uninitialize(VALUE self);
static VALUE fole_initialize(int argc, VALUE *argv, VALUE self);
static VALUE hash2named_arg(VALUE pair, struct oleparam* pOp);
static VALUE set_argv(VARIANTARG* realargs, unsigned int beg, unsigned int end);
@@ -387,8 +404,6 @@ static VALUE fole_put_methods(VALUE self);
static VALUE fole_func_methods(VALUE self);
static VALUE ole_type_from_itypeinfo(ITypeInfo *pTypeInfo);
static VALUE fole_type(VALUE self);
-static VALUE make_oletypelib_obj(VALUE guid, VALUE major_version, VALUE minor_version);
-static VALUE ole_typelib_from_itypelib(ITypeLib *pTypeLib);
static VALUE ole_typelib_from_itypeinfo(ITypeInfo *pTypeInfo);
static VALUE fole_typelib(VALUE self);
static VALUE fole_query_interface(VALUE self, VALUE str_iid);
@@ -405,11 +420,14 @@ static VALUE foletype_s_progids(VALUE self);
static VALUE foletype_s_allocate(VALUE klass);
static VALUE oletype_set_member(VALUE self, ITypeInfo *pTypeInfo, VALUE name);
static VALUE oleclass_from_typelib(VALUE self, ITypeLib *pTypeLib, VALUE oleclass);
-static VALUE oletypelib_set_member(VALUE self, VALUE typelib, VALUE guid, VALUE version);
+static VALUE oletypelib_set_member(VALUE self, ITypeLib *pTypeLib);
+static ITypeLib * oletypelib_get_typelib(VALUE self);
+static void oletypelib_get_libattr(ITypeLib *pTypeLib, TLIBATTR **ppTLibAttr);
static VALUE foletypelib_s_typelibs(VALUE self);
static VALUE make_version_str(VALUE major, VALUE minor);
static VALUE oletypelib_search_registry2(VALUE self, VALUE args);
static VALUE oletypelib_search_registry(VALUE self, VALUE typelib);
+static VALUE foletypelib_s_allocate(VALUE klass);
static VALUE foletypelib_initialize(VALUE self, VALUE args);
static VALUE foletypelib_guid(VALUE self);
static VALUE foletypelib_name(VALUE self);
@@ -417,8 +435,8 @@ static VALUE foletypelib_version(VALUE self);
static VALUE foletypelib_major_version(VALUE self);
static VALUE foletypelib_minor_version(VALUE self);
static VALUE oletypelib_path(VALUE guid, VALUE version);
+static HRESULT oletypelib_from_guid(VALUE guid, VALUE version, ITypeLib **ppTypeLib);
static VALUE foletypelib_path(VALUE self);
-static void oletypelib2itypelib(VALUE self, ITypeLib **ppTypeLib);
static VALUE foletypelib_visible(VALUE self);
static VALUE foletypelib_library_name(VALUE self);
static VALUE foletypelib_ole_types(VALUE self);
@@ -508,6 +526,10 @@ static VALUE folemethod_size_opt_params(VALUE self);
static VALUE ole_method_params(ITypeInfo *pTypeInfo, UINT method_index);
static VALUE folemethod_params(VALUE self);
static VALUE folemethod_inspect(VALUE self);
+static VALUE foleparam_s_allocate(VALUE klass);
+static VALUE oleparam_ole_param_from_index(VALUE self, ITypeInfo *pTypeInfo, UINT method_index, int param_index);
+static VALUE oleparam_ole_param(VALUE self, VALUE olemethod, int n);
+static VALUE foleparam_initialize(VALUE self, VALUE olemethod, VALUE n);
static VALUE foleparam_name(VALUE self);
static VALUE ole_param_ole_type(ITypeInfo *pTypeInfo, UINT method_index, UINT index);
static VALUE foleparam_ole_type(VALUE self);
@@ -566,7 +588,7 @@ static VALUE folevariant_vartype(VALUE self);
static VALUE folevariant_set_value(VALUE self, VALUE val);
static void init_enc2cp();
static void free_enc2cp();
-
+
static HRESULT (STDMETHODCALLTYPE mf_QueryInterface)(
IMessageFilter __RPC_FAR * This,
/* [in] */ REFIID riid,
@@ -581,13 +603,13 @@ static HRESULT (STDMETHODCALLTYPE mf_QueryInterface)(
return E_NOINTERFACE;
}
-static ULONG (STDMETHODCALLTYPE mf_AddRef)(
+static ULONG (STDMETHODCALLTYPE mf_AddRef)(
IMessageFilter __RPC_FAR * This)
{
return 1;
}
-
-static ULONG (STDMETHODCALLTYPE mf_Release)(
+
+static ULONG (STDMETHODCALLTYPE mf_Release)(
IMessageFilter __RPC_FAR * This)
{
return 1;
@@ -661,7 +683,7 @@ static DWORD (STDMETHODCALLTYPE mf_MessagePending)(
}
return PENDINGMSG_WAITNOPROCESS;
}
-
+
typedef struct _Win32OLEIDispatch
{
IDispatch dispatch;
@@ -669,7 +691,7 @@ typedef struct _Win32OLEIDispatch
VALUE obj;
} Win32OLEIDispatch;
-static HRESULT ( STDMETHODCALLTYPE QueryInterface )(
+static HRESULT ( STDMETHODCALLTYPE QueryInterface )(
IDispatch __RPC_FAR * This,
/* [in] */ REFIID riid,
/* [iid_is][out] */ void __RPC_FAR *__RPC_FAR *ppvObject)
@@ -684,15 +706,15 @@ static HRESULT ( STDMETHODCALLTYPE QueryInterface )(
}
return E_NOINTERFACE;
}
-
-static ULONG ( STDMETHODCALLTYPE AddRef )(
+
+static ULONG ( STDMETHODCALLTYPE AddRef )(
IDispatch __RPC_FAR * This)
{
Win32OLEIDispatch* p = (Win32OLEIDispatch*)This;
return ++(p->refcount);
}
-
-static ULONG ( STDMETHODCALLTYPE Release )(
+
+static ULONG ( STDMETHODCALLTYPE Release )(
IDispatch __RPC_FAR * This)
{
Win32OLEIDispatch* p = (Win32OLEIDispatch*)This;
@@ -704,15 +726,15 @@ static ULONG ( STDMETHODCALLTYPE Release )(
}
return u;
}
-
-static HRESULT ( STDMETHODCALLTYPE GetTypeInfoCount )(
+
+static HRESULT ( STDMETHODCALLTYPE GetTypeInfoCount )(
IDispatch __RPC_FAR * This,
/* [out] */ UINT __RPC_FAR *pctinfo)
{
return E_NOTIMPL;
}
-
-static HRESULT ( STDMETHODCALLTYPE GetTypeInfo )(
+
+static HRESULT ( STDMETHODCALLTYPE GetTypeInfo )(
IDispatch __RPC_FAR * This,
/* [in] */ UINT iTInfo,
/* [in] */ LCID lcid,
@@ -721,8 +743,8 @@ static HRESULT ( STDMETHODCALLTYPE GetTypeInfo )(
return E_NOTIMPL;
}
-
-static HRESULT ( STDMETHODCALLTYPE GetIDsOfNames )(
+
+static HRESULT ( STDMETHODCALLTYPE GetIDsOfNames )(
IDispatch __RPC_FAR * This,
/* [in] */ REFIID riid,
/* [size_is][in] */ LPOLESTR __RPC_FAR *rgszNames,
@@ -738,8 +760,8 @@ static HRESULT ( STDMETHODCALLTYPE GetIDsOfNames )(
free(psz);
return S_OK;
}
-
-static /* [local] */ HRESULT ( STDMETHODCALLTYPE Invoke )(
+
+static /* [local] */ HRESULT ( STDMETHODCALLTYPE Invoke )(
IDispatch __RPC_FAR * This,
/* [in] */ DISPID dispIdMember,
/* [in] */ REFIID riid,
@@ -791,126 +813,41 @@ val2dispatch(VALUE val)
return &pdisp->dispatch;
}
-static void
-time2d(int hh, int mm, int ss, double *pv)
-{
- *pv = (hh * 60.0 * 60.0 + mm * 60.0 + ss) / 86400.0;
-}
-
-static void
-d2time(double v, int *hh, int *mm, int *ss)
-{
- double d_hh, d_mm, d_ss;
- int i_hh, i_mm, i_ss;
-
- double d = fabs(v * 86400.0);
-
- d_hh = d / 3600.0;
- i_hh = (int)d_hh;
-
- d = d - i_hh * 3600.0;
-
- d_mm = d / 60.0;
- i_mm = (int)d_mm;
-
- d = d - i_mm * 60.0;
-
- d_ss = d * 10.0 + 5;
-
- i_ss = (int)d_ss / 10;
-
- if(i_ss == 60) {
- i_mm += 1;
- i_ss = 0;
- }
-
- if (i_mm == 60) {
- i_hh += 1;
- i_mm = 0;
- }
- if (i_hh == 24) {
- i_hh = 0;
- }
-
- *hh = i_hh;
- *mm = i_mm;
- *ss = i_ss;
-}
-
-static void
-civil2jd(int y, int m, int d, long *jd)
-{
- long a, b;
- if (m <= 2) {
- y -= 1;
- m += 12;
- }
- a = (long)(y / 100.0);
- b = 2 - a + (long)(a / 4.0);
- *jd = (long)(365.25 * (double)(y + 4716))
- + (long)(30.6001 * (m + 1))
- + d + b - 1524;
-}
-
-static void
-jd2civil(long day, int *yy, int *mm, int *dd)
-{
- long x, a, b, c, d, e;
- x = (long)(((double)day - 1867216.25) / 36524.25);
- a = day + 1 + x - (long)(x / 4.0);
- b = a + 1524;
- c = (long)(((double)b -122.1) /365.25);
- d = (long)(365.25 * c);
- e = (long)((double)(b - d) / 30.6001);
- *dd = b - d - (long)(30.6001 * e);
- if (e <= 13) {
- *mm = e - 1;
- *yy = c - 4716;
- }
- else {
- *mm = e - 13;
- *yy = c - 4715;
- }
-}
-
-static void
-double2time(double v, int *y, int *m, int *d, int *hh, int *mm, int *ss)
-{
- long day;
- double t;
-
- day = (long)v;
- t = v - day;
- jd2civil(2415019 + day, y, m, d);
-
- d2time(t, hh, mm, ss);
-}
-
static double
-time_object2date(VALUE tmobj)
+rbtime2vtdate(VALUE tmobj)
{
- long y, m, d, hh, mm, ss;
- long day;
- double t;
- y = FIX2INT(rb_funcall(tmobj, rb_intern("year"), 0));
- m = FIX2INT(rb_funcall(tmobj, rb_intern("month"), 0));
- d = FIX2INT(rb_funcall(tmobj, rb_intern("mday"), 0));
- hh = FIX2INT(rb_funcall(tmobj, rb_intern("hour"), 0));
- mm = FIX2INT(rb_funcall(tmobj, rb_intern("min"), 0));
- ss = FIX2INT(rb_funcall(tmobj, rb_intern("sec"), 0));
- civil2jd(y, m, d, &day);
- time2d(hh, mm, ss, &t);
- return t + day - 2415019;
+ SYSTEMTIME st;
+ double t = 0;
+ memset(&st, 0, sizeof(SYSTEMTIME));
+ st.wYear = FIX2INT(rb_funcall(tmobj, rb_intern("year"), 0));
+ st.wMonth = FIX2INT(rb_funcall(tmobj, rb_intern("month"), 0));
+ st.wDay = FIX2INT(rb_funcall(tmobj, rb_intern("mday"), 0));
+ st.wHour = FIX2INT(rb_funcall(tmobj, rb_intern("hour"), 0));
+ st.wMinute = FIX2INT(rb_funcall(tmobj, rb_intern("min"), 0));
+ st.wSecond = FIX2INT(rb_funcall(tmobj, rb_intern("sec"), 0));
+ st.wMilliseconds = FIX2INT(rb_funcall(tmobj, rb_intern("nsec"), 0)) / 1000000;
+ SystemTimeToVariantTime(&st, &t);
+ return t;
}
static VALUE
-date2time_str(double date)
+vtdate2rbtime(double date)
{
- int y, m, d, hh, mm, ss;
- double2time(date, &y, &m, &d, &hh, &mm, &ss);
- return rb_sprintf(
- "%04d/%02d/%02d %02d:%02d:%02d",
- y, m, d, hh, mm, ss);
+ SYSTEMTIME st;
+ VALUE v;
+ VariantTimeToSystemTime(date, &st);
+
+ v = rb_funcall(rb_cTime, rb_intern("new"), 6,
+ INT2FIX(st.wYear),
+ INT2FIX(st.wMonth),
+ INT2FIX(st.wDay),
+ INT2FIX(st.wHour),
+ INT2FIX(st.wMinute),
+ INT2FIX(st.wSecond));
+ if (st.wMilliseconds > 0) {
+ return rb_funcall(v, rb_intern("+"), 1, rb_float_new((double)(st.wMilliseconds / 1000.0)));
+ }
+ return v;
}
#define ENC_MACHING_CP(enc,encname,cp) if(strcasecmp(rb_enc_name((enc)),(encname)) == 0) return cp
@@ -918,7 +855,7 @@ date2time_str(double date)
static UINT ole_encoding2cp(rb_encoding *enc)
{
/*
- * Is there any better solution to convert
+ * Is there any better solution to convert
* Ruby encoding to Windows codepage???
*/
ENC_MACHING_CP(enc, "Big5", 950);
@@ -927,11 +864,11 @@ static UINT ole_encoding2cp(rb_encoding *enc)
ENC_MACHING_CP(enc, "CP852", 852);
ENC_MACHING_CP(enc, "CP855", 855);
ENC_MACHING_CP(enc, "CP949", 949);
- ENC_MACHING_CP(enc, "EUC-JP", 20932);
+ ENC_MACHING_CP(enc, "EUC-JP", 20932);
ENC_MACHING_CP(enc, "EUC-KR", 51949);
ENC_MACHING_CP(enc, "EUC-TW", 51950);
ENC_MACHING_CP(enc, "GB18030", 54936);
- ENC_MACHING_CP(enc, "GB2312", 51936);
+ ENC_MACHING_CP(enc, "GB2312", 20936);
ENC_MACHING_CP(enc, "GBK", 936);
ENC_MACHING_CP(enc, "IBM437", 437);
ENC_MACHING_CP(enc, "IBM737", 737);
@@ -1102,7 +1039,7 @@ ole_cp2encoding(UINT cp)
case CP_UTF7:
case CP_UTF8:
break;
- case 51932:
+ case 51932:
load_conv_function51932();
break;
default:
@@ -1122,7 +1059,7 @@ static char *
ole_wc2mb(LPWSTR pw)
{
LPSTR pm;
- int size = 0;
+ UINT size = 0;
if (conv_51932(cWIN32OLE_cp)) {
#ifndef pIMultiLanguage
DWORD dw = 0;
@@ -1143,7 +1080,7 @@ ole_wc2mb(LPWSTR pw)
}
size = WideCharToMultiByte(cWIN32OLE_cp, 0, pw, -1, NULL, 0, NULL, NULL);
if (size) {
- pm = ALLOC_N(char, size + 1);
+ pm = ALLOC_N(char, size + 1);
WideCharToMultiByte(cWIN32OLE_cp, 0, pw, -1, pm, size, NULL, NULL);
pm[size] = '\0';
}
@@ -1152,7 +1089,7 @@ ole_wc2mb(LPWSTR pw)
*pm = '\0';
}
return pm;
-}
+}
static VALUE
ole_hresult2msg(HRESULT hr)
@@ -1165,12 +1102,19 @@ ole_hresult2msg(HRESULT hr)
char strhr[100];
sprintf(strhr, " HRESULT error code:0x%08x\n ", (unsigned)hr);
msg = rb_str_new2(strhr);
-
dwCount = FormatMessage(FORMAT_MESSAGE_ALLOCATE_BUFFER |
FORMAT_MESSAGE_FROM_SYSTEM |
FORMAT_MESSAGE_IGNORE_INSERTS,
- NULL, hr, cWIN32OLE_lcid,
+ NULL, hr,
+ MAKELANGID(LANG_ENGLISH, SUBLANG_ENGLISH_US),
(LPTSTR)&p_msg, 0, NULL);
+ if (dwCount == 0) {
+ dwCount = FormatMessage(FORMAT_MESSAGE_ALLOCATE_BUFFER |
+ FORMAT_MESSAGE_FROM_SYSTEM |
+ FORMAT_MESSAGE_IGNORE_INSERTS,
+ NULL, hr, cWIN32OLE_lcid,
+ (LPTSTR)&p_msg, 0, NULL);
+ }
if (dwCount > 0) {
term = p_msg + strlen(p_msg);
while (p_msg < term) {
@@ -1264,10 +1208,10 @@ ole_uninitialize()
}
static void
-ole_initialize()
+ole_initialize()
{
HRESULT hr;
-
+
if(g_ole_initialized == FALSE) {
hr = OleInitialize(NULL);
if(FAILED(hr)) {
@@ -1305,6 +1249,13 @@ ole_free(struct oledata *pole)
}
static void
+oletypelib_free(struct oletypelibdata *poletypelib)
+{
+ OLE_FREE(poletypelib->pTypeLib);
+ free(poletypelib);
+}
+
+static void
oletype_free(struct oletypedata *poletype)
{
OLE_FREE(poletype->pTypeInfo);
@@ -1339,7 +1290,7 @@ ole_vstr2wc(VALUE vstr)
{
rb_encoding *enc;
int cp;
- int size = 0;
+ UINT size = 0;
LPWSTR pw;
st_data_t data;
enc = rb_enc_get(vstr);
@@ -1365,7 +1316,7 @@ ole_vstr2wc(VALUE vstr)
if (conv_51932(cp)) {
#ifndef pIMultiLanguage
DWORD dw = 0;
- int len = RSTRING_LEN(vstr);
+ UINT len = RSTRING_LENINT(vstr);
HRESULT hr = pIMultiLanguage->lpVtbl->ConvertStringToUnicode(pIMultiLanguage,
&dw, cp, RSTRING_PTR(vstr), &len, NULL, &size);
if (FAILED(hr)) {
@@ -1390,13 +1341,13 @@ ole_vstr2wc(VALUE vstr)
static LPWSTR
ole_mb2wc(char *pm, int len)
{
- int size = 0;
+ UINT size = 0;
LPWSTR pw;
if (conv_51932(cWIN32OLE_cp)) {
#ifndef pIMultiLanguage
DWORD dw = 0;
- int n = len;
+ UINT n = len;
HRESULT hr = pIMultiLanguage->lpVtbl->ConvertStringToUnicode(pIMultiLanguage,
&dw, cWIN32OLE_cp, pm, &n, NULL, &size);
if (FAILED(hr)) {
@@ -1511,7 +1462,7 @@ get_ptr_of_variant(VARIANT *pvar)
}
static VALUE
-is_all_index_under(long *pid, long *pub, long dim)
+is_all_index_under(long *pid, long *pub, long dim)
{
long i = 0;
for (i = 0; i < dim; i++) {
@@ -1573,7 +1524,7 @@ dimension(VALUE val) {
return dim;
}
-static long
+static long
ary_len_of_dim(VALUE ary, long dim) {
long ary_len = 0;
long ary_len1 = 0;
@@ -1680,7 +1631,7 @@ ole_val2variant(VALUE val, VARIANT *var)
if (rb_obj_is_kind_of(val, rb_cTime)) {
V_VT(var) = VT_DATE;
- V_DATE(var) = time_object2date(val);
+ V_DATE(var) = rbtime2vtdate(val);
return;
}
switch (TYPE(val)) {
@@ -1942,7 +1893,7 @@ ole_val2olevariantdata(VALUE val, VARTYPE vt, struct olevariantdata *pvar)
hr = VariantCopy(&(pvar->var), &(pvar->realvar));
}
} else {
- if (psa)
+ if (psa)
SafeArrayDestroy(psa);
}
} else if (vt & VT_ARRAY) {
@@ -1988,7 +1939,7 @@ ole_val2olevariantdata(VALUE val, VARTYPE vt, struct olevariantdata *pvar)
ole_set_byref(&(pvar->realvar), &(pvar->var), vt);
} else if (vt & VT_BYREF) {
if ( (vt & ~VT_BYREF) != V_VT(&(pvar->realvar))) {
- hr = VariantChangeTypeEx(&(pvar->realvar), &(pvar->realvar),
+ hr = VariantChangeTypeEx(&(pvar->realvar), &(pvar->realvar),
cWIN32OLE_lcid, 0, (VARTYPE)(vt & ~VT_BYREF));
}
if (SUCCEEDED(hr)) {
@@ -1998,7 +1949,7 @@ ole_val2olevariantdata(VALUE val, VARTYPE vt, struct olevariantdata *pvar)
if (vt == V_VT(&(pvar->realvar))) {
hr = VariantCopy(&(pvar->var), &(pvar->realvar));
} else {
- hr = VariantChangeTypeEx(&(pvar->var), &(pvar->realvar),
+ hr = VariantChangeTypeEx(&(pvar->var), &(pvar->realvar),
cWIN32OLE_lcid, 0, vt);
}
}
@@ -2018,7 +1969,7 @@ ole_val2variant2(VALUE val, VARIANT *var)
}
static VALUE
-make_inspect(const char *class_name, VALUE detail)
+make_inspect(const char *class_name, VALUE detail)
{
VALUE str;
str = rb_str_new2("#<");
@@ -2030,7 +1981,7 @@ make_inspect(const char *class_name, VALUE detail)
}
static VALUE
-default_inspect(VALUE self, const char *class_name)
+default_inspect(VALUE self, const char *class_name)
{
VALUE detail = rb_funcall(self, rb_intern("to_s"), 0);
return make_inspect(class_name, detail);
@@ -2170,58 +2121,58 @@ ole_variant2val(VARIANT *pvar)
case VT_NULL:
break;
case VT_I1:
- if(V_ISBYREF(pvar))
+ if(V_ISBYREF(pvar))
obj = INT2NUM((long)*V_I1REF(pvar));
- else
+ else
obj = INT2NUM((long)V_I1(pvar));
break;
case VT_UI1:
- if(V_ISBYREF(pvar))
+ if(V_ISBYREF(pvar))
obj = INT2NUM((long)*V_UI1REF(pvar));
- else
+ else
obj = INT2NUM((long)V_UI1(pvar));
break;
case VT_I2:
if(V_ISBYREF(pvar))
obj = INT2NUM((long)*V_I2REF(pvar));
- else
+ else
obj = INT2NUM((long)V_I2(pvar));
break;
case VT_UI2:
if(V_ISBYREF(pvar))
obj = INT2NUM((long)*V_UI2REF(pvar));
- else
+ else
obj = INT2NUM((long)V_UI2(pvar));
break;
case VT_I4:
if(V_ISBYREF(pvar))
obj = INT2NUM((long)*V_I4REF(pvar));
- else
+ else
obj = INT2NUM((long)V_I4(pvar));
break;
case VT_UI4:
if(V_ISBYREF(pvar))
obj = INT2NUM((long)*V_UI4REF(pvar));
- else
+ else
obj = INT2NUM((long)V_UI4(pvar));
break;
case VT_INT:
if(V_ISBYREF(pvar))
obj = INT2NUM((long)*V_INTREF(pvar));
- else
+ else
obj = INT2NUM((long)V_INT(pvar));
break;
case VT_UINT:
if(V_ISBYREF(pvar))
obj = INT2NUM((long)*V_UINTREF(pvar));
- else
+ else
obj = INT2NUM((long)V_UINT(pvar));
break;
@@ -2230,7 +2181,7 @@ ole_variant2val(VARIANT *pvar)
if(V_ISBYREF(pvar))
#if (_MSC_VER >= 1300)
obj = I8_2_NUM(*V_I8REF(pvar));
-#else
+#else
obj = Qnil;
#endif
else
@@ -2332,7 +2283,7 @@ ole_variant2val(VARIANT *pvar)
else
date = V_DATE(pvar);
- obj = date2time_str(date);
+ obj = vtdate2rbtime(date);
break;
}
case VT_CY:
@@ -2341,7 +2292,7 @@ ole_variant2val(VARIANT *pvar)
HRESULT hr;
VARIANT variant;
VariantInit(&variant);
- hr = VariantChangeTypeEx(&variant, pvar,
+ hr = VariantChangeTypeEx(&variant, pvar,
cWIN32OLE_lcid, 0, VT_BSTR);
if (SUCCEEDED(hr) && V_VT(&variant) == VT_BSTR) {
obj = ole_wc2vstr(V_BSTR(&variant), FALSE);
@@ -2385,16 +2336,23 @@ reg_get_val(HKEY hkey, const char *subkey)
{
char *pbuf;
DWORD dwtype = 0;
- LONG size = 0;
+ DWORD size = 0;
VALUE val = Qnil;
- LONG err = RegQueryValueEx(hkey, subkey, NULL, &dwtype, NULL, &size);
+ LONG err = RegQueryValueEx(hkey, subkey, NULL, &dwtype, NULL, &size);
if (err == ERROR_SUCCESS) {
pbuf = ALLOC_N(char, size + 1);
- err = RegQueryValueEx(hkey, subkey, NULL, &dwtype, pbuf, &size);
+ err = RegQueryValueEx(hkey, subkey, NULL, &dwtype, (BYTE *)pbuf, &size);
if (err == ERROR_SUCCESS) {
pbuf[size] = '\0';
- val = rb_str_new2(pbuf);
+ if (dwtype == REG_EXPAND_SZ) {
+ char* pbuf2 = (char *)pbuf;
+ DWORD len = ExpandEnvironmentStrings(pbuf2, NULL, 0);
+ pbuf = ALLOC_N(char, len + 1);
+ ExpandEnvironmentStrings(pbuf2, pbuf, len + 1);
+ free(pbuf2);
+ }
+ val = rb_str_new2((char *)pbuf);
}
free(pbuf);
}
@@ -2422,10 +2380,15 @@ static VALUE
reg_get_typelib_file_path(HKEY hkey)
{
VALUE path = Qnil;
+ path = reg_get_val2(hkey, "win64");
+ if (path != Qnil) {
+ return path;
+ }
path = reg_get_val2(hkey, "win32");
- if (path == Qnil) {
- path = reg_get_val2(hkey, "win16");
+ if (path != Qnil) {
+ return path;
}
+ path = reg_get_val2(hkey, "win16");
return path;
}
@@ -2501,7 +2464,7 @@ typelib_file_from_typelib(VALUE ole)
break;
err = reg_open_vkey(hversion, lang, &hlang);
if (err == ERROR_SUCCESS) {
- if ((file = reg_get_typelib_file_path(hlang)) != Qnil)
+ if ((file = reg_get_typelib_file_path(hlang)) != Qnil)
found = TRUE;
RegCloseKey(hlang);
}
@@ -2566,7 +2529,7 @@ ole_const_load(ITypeLib *pTypeLib, VALUE klass, VALUE self)
continue;
pName = ole_wc2mb(bstr);
val = ole_variant2val(V_UNION1(pVarDesc, lpvarValue));
- *pName = toupper(*pName);
+ *pName = toupper((int)*pName);
id = rb_intern(pName);
if (rb_is_const_id(id)) {
rb_define_const(klass, pName, val);
@@ -2611,7 +2574,7 @@ clsid_from_remote(VALUE host, VALUE com, CLSID *pclsid)
hr = HRESULT_FROM_WIN32(err);
else {
len = sizeof(clsid);
- err = RegQueryValueEx(hpid, (LPBYTE)"", NULL, &dwtype, clsid, &len);
+ err = RegQueryValueEx(hpid, "", NULL, &dwtype, (BYTE *)clsid, &len);
if (err == ERROR_SUCCESS && dwtype == REG_SZ) {
pbuf = ole_mb2wc(clsid, -1);
hr = CLSIDFromString(pbuf, pclsid);
@@ -2657,17 +2620,17 @@ ole_create_dcom(int argc, VALUE *argv, VALUE self)
hr = CLSIDFromString(pbuf, &clsid);
SysFreeString(pbuf);
if (FAILED(hr))
- ole_raise(hr, eWIN32OLERuntimeError,
+ ole_raise(hr, eWIN32OLERuntimeError,
"unknown OLE server: `%s'",
StringValuePtr(ole));
- memset(&serverinfo, 0, sizeof(COSERVERINFO));
+ memset(&serverinfo, 0, sizeof(COSERVERINFO));
serverinfo.pwszName = ole_vstr2wc(host);
memset(&multi_qi, 0, sizeof(MULTI_QI));
multi_qi.pIID = &IID_IDispatch;
hr = gCoCreateInstanceEx(&clsid, NULL, clsctx, &serverinfo, 1, &multi_qi);
SysFreeString(serverinfo.pwszName);
if (FAILED(hr))
- ole_raise(hr, eWIN32OLERuntimeError,
+ ole_raise(hr, eWIN32OLERuntimeError,
"failed to create DCOM server `%s' in `%s'",
StringValuePtr(ole),
StringValuePtr(host));
@@ -2686,12 +2649,12 @@ ole_bind_obj(VALUE moniker, int argc, VALUE *argv, VALUE self)
HRESULT hr;
OLECHAR *pbuf;
ULONG eaten = 0;
-
+
ole_initialize();
hr = CreateBindCtx(0, &pBindCtx);
if(FAILED(hr)) {
- ole_raise(hr, eWIN32OLERuntimeError,
+ ole_raise(hr, eWIN32OLERuntimeError,
"failed to create bind context");
}
@@ -2704,7 +2667,7 @@ ole_bind_obj(VALUE moniker, int argc, VALUE *argv, VALUE self)
"failed to parse display name of moniker `%s'",
StringValuePtr(moniker));
}
- hr = pMoniker->lpVtbl->BindToObject(pMoniker, pBindCtx, NULL,
+ hr = pMoniker->lpVtbl->BindToObject(pMoniker, pBindCtx, NULL,
&IID_IDispatch, &p);
pDispatch = p;
OLE_RELEASE(pMoniker);
@@ -2721,10 +2684,10 @@ ole_bind_obj(VALUE moniker, int argc, VALUE *argv, VALUE self)
/*
* call-seq:
* WIN32OLE.connect( ole ) --> aWIN32OLE
- *
+ *
* Returns running OLE Automation object or WIN32OLE object from moniker.
* 1st argument should be OLE program id or class id or moniker.
- *
+ *
* WIN32OLE.connect('Excel.Application') # => WIN32OLE object which represents running Excel.
*/
static VALUE
@@ -2744,10 +2707,10 @@ fole_s_connect(int argc, VALUE *argv, VALUE self)
ole_initialize();
rb_scan_args(argc, argv, "1*", &svr_name, &others);
- Check_SafeStr(svr_name);
+ SafeStringValue(svr_name);
if (rb_safe_level() > 0 && OBJ_TAINTED(svr_name)) {
rb_raise(rb_eSecurityError, "Insecure Object Connection - %s",
- StringValuePtr(svr_name));
+ StringValuePtr(svr_name));
}
/* get CLSID from OLE server name */
@@ -2763,15 +2726,15 @@ fole_s_connect(int argc, VALUE *argv, VALUE self)
hr = GetActiveObject(&clsid, 0, &pUnknown);
if (FAILED(hr)) {
- ole_raise(hr, eWIN32OLERuntimeError,
+ ole_raise(hr, eWIN32OLERuntimeError,
"OLE server `%s' not running", StringValuePtr(svr_name));
}
hr = pUnknown->lpVtbl->QueryInterface(pUnknown, &IID_IDispatch, &p);
pDispatch = p;
if(FAILED(hr)) {
OLE_RELEASE(pUnknown);
- ole_raise(hr, eWIN32OLERuntimeError,
- "failed to create WIN32OLE server `%s'",
+ ole_raise(hr, eWIN32OLERuntimeError,
+ "failed to create WIN32OLE server `%s'",
StringValuePtr(svr_name));
}
@@ -2780,16 +2743,16 @@ fole_s_connect(int argc, VALUE *argv, VALUE self)
return create_win32ole_object(self, pDispatch, argc, argv);
}
-/*
+/*
* call-seq:
* WIN32OLE.const_load( ole, mod = WIN32OLE)
- *
+ *
* Defines the constants of OLE Automation server as mod's constants.
* The first argument is WIN32OLE object or type library name.
* If 2nd argument is omitted, the default is WIN32OLE.
* The first letter of Ruby's constant variable name is upper case,
* so constant variable name of WIN32OLE object is capitalized.
- * For example, the 'xlTop' constant of Excel is changed to 'XlTop'
+ * For example, the 'xlTop' constant of Excel is changed to 'XlTop'
* in WIN32OLE.
* If the first letter of constant variabl is not [A-Z], then
* the constant is defined as CONSTANTS hash element.
@@ -2800,7 +2763,7 @@ fole_s_connect(int argc, VALUE *argv, VALUE self)
* WIN32OLE.const_load(excel, EXCEL_CONST)
* puts EXCEL_CONST::XlTop # => -4160
* puts EXCEL_CONST::CONSTANTS['_xlDialogChartSourceData'] # => 541
- *
+ *
* WIN32OLE.const_load(excel)
* puts WIN32OLE::XlTop # => -4160
*
@@ -2822,7 +2785,7 @@ fole_s_const_load(int argc, VALUE *argv, VALUE self)
OLECHAR *pBuf;
VALUE file;
LCID lcid = cWIN32OLE_lcid;
-
+
rb_secure(4);
rb_scan_args(argc, argv, "11", &ole, &klass);
if (TYPE(klass) != T_CLASS &&
@@ -2878,20 +2841,20 @@ fole_s_const_load(int argc, VALUE *argv, VALUE self)
static VALUE
ole_types_from_typelib(ITypeLib *pTypeLib, VALUE classes)
{
-
+
long count;
int i;
HRESULT hr;
BSTR bstr;
ITypeInfo *pTypeInfo;
VALUE type;
-
+
rb_secure(4);
count = pTypeLib->lpVtbl->GetTypeInfoCount(pTypeLib);
for (i = 0; i < count; i++) {
hr = pTypeLib->lpVtbl->GetDocumentation(pTypeLib, i,
&bstr, NULL, NULL, NULL);
- if (FAILED(hr))
+ if (FAILED(hr))
continue;
hr = pTypeLib->lpVtbl->GetTypeInfo(pTypeLib, i, &pTypeInfo);
@@ -2921,8 +2884,8 @@ reference_count(struct oledata * pole)
/*
* call-seq:
* WIN32OLE.ole_reference_count(aWIN32OLE) --> number
- *
- * Returns reference counter of Dispatch interface of WIN32OLE object.
+ *
+ * Returns reference counter of Dispatch interface of WIN32OLE object.
* You should not use this method because this method
* exists only for debugging WIN32OLE.
*/
@@ -2937,8 +2900,8 @@ fole_s_reference_count(VALUE self, VALUE obj)
/*
* call-seq:
* WIN32OLE.ole_free(aWIN32OLE) --> number
- *
- * Invokes Release method of Dispatch interface of WIN32OLE object.
+ *
+ * Invokes Release method of Dispatch interface of WIN32OLE object.
* You should not use this method because this method
* exists only for debugging WIN32OLE.
* The return value is reference counter of OLE object.
@@ -2970,10 +2933,10 @@ ole_show_help(VALUE helpfile, VALUE helpcontext)
pfnHtmlHelp = (FNHTMLHELP*)GetProcAddress(ghhctrl, "HtmlHelpA");
if (!pfnHtmlHelp)
return hwnd;
- hwnd = pfnHtmlHelp(GetDesktopWindow(), StringValuePtr(helpfile),
+ hwnd = pfnHtmlHelp(GetDesktopWindow(), StringValuePtr(helpfile),
0x0f, NUM2INT(helpcontext));
if (hwnd == 0)
- hwnd = pfnHtmlHelp(GetDesktopWindow(), StringValuePtr(helpfile),
+ hwnd = pfnHtmlHelp(GetDesktopWindow(), StringValuePtr(helpfile),
0, NUM2INT(helpcontext));
return hwnd;
}
@@ -2981,7 +2944,7 @@ ole_show_help(VALUE helpfile, VALUE helpcontext)
/*
* call-seq:
* WIN32OLE.ole_show_help(obj [,helpcontext])
- *
+ *
* Displays helpfile. The 1st argument specifies WIN32OLE_TYPE
* object or WIN32OLE_METHOD object or helpfile.
*
@@ -3021,10 +2984,10 @@ fole_s_show_help(int argc, VALUE *argv, VALUE self)
return Qnil;
}
-/*
+/*
* call-seq:
* WIN32OLE.codepage
- *
+ *
* Returns current codepage.
* WIN32OLE.codepage # => WIN32OLE::CP_ACP
*/
@@ -3034,7 +2997,7 @@ fole_s_get_code_page(VALUE self)
return INT2FIX(cWIN32OLE_cp);
}
-static BOOL CALLBACK
+static BOOL CALLBACK
installed_code_page_proc(LPTSTR str) {
if (strtoul(str, NULL, 10) == g_cp_to_check) {
g_cp_installed = TRUE;
@@ -3043,7 +3006,7 @@ installed_code_page_proc(LPTSTR str) {
return TRUE;
}
-static BOOL
+static BOOL
code_page_installed(UINT cp)
{
g_cp_installed = FALSE;
@@ -3052,12 +3015,12 @@ code_page_installed(UINT cp)
return g_cp_installed;
}
-/*
+/*
* call-seq:
* WIN32OLE.codepage = CP
- *
- * Sets current codepage.
- * The WIN32OLE.codepage is initialized according to
+ *
+ * Sets current codepage.
+ * The WIN32OLE.codepage is initialized according to
* Encoding.default_internal.
* If Encoding.default_internal is nil then WIN32OLE.codepage
* is initialized according to Encoding.default_external.
@@ -3085,7 +3048,7 @@ fole_s_set_code_page(VALUE self, VALUE vcp)
*
* lcid = WIN32OLE.locale
*/
-static VALUE
+static VALUE
fole_s_get_locale(VALUE self)
{
return INT2FIX(cWIN32OLE_lcid);
@@ -3120,7 +3083,7 @@ lcid_installed(LCID lcid)
* obj = WIN32OLE_VARIANT.new("$100,000", WIN32OLE::VARIANT::VT_CY)
*
*/
-static VALUE
+static VALUE
fole_s_set_locale(VALUE self, VALUE vlcid)
{
LCID lcid = FIX2INT(vlcid);
@@ -3139,12 +3102,12 @@ fole_s_set_locale(VALUE self, VALUE vlcid)
return Qnil;
}
-/*
+/*
* call-seq:
* WIN32OLE.create_guid
- *
+ *
* Creates GUID.
- * WIN32OLE.create_guid # => {1CB530F1-F6B1-404D-BCE6-1959BF91F4A8}
+ * WIN32OLE.create_guid # => {1CB530F1-F6B1-404D-BCE6-1959BF91F4A8}
*/
static VALUE
fole_s_create_guid(VALUE self)
@@ -3165,16 +3128,52 @@ fole_s_create_guid(VALUE self)
}
/*
+ * WIN32OLE.ole_initialize and WIN32OLE.ole_uninitialize
+ * are used in win32ole.rb to fix the issue bug #2618 (ruby-core:27634).
+ * You must not use thease method.
+ */
+
+static void ole_pure_initialize()
+{
+ HRESULT hr;
+ hr = OleInitialize(NULL);
+ if(FAILED(hr)) {
+ ole_raise(hr, rb_eRuntimeError, "fail: OLE initialize");
+ }
+}
+
+static void ole_pure_uninitialize()
+{
+ OleUninitialize();
+}
+
+/* :nodoc */
+static VALUE
+fole_s_ole_initialize(VALUE self)
+{
+ ole_pure_initialize();
+ return Qnil;
+}
+
+/* :nodoc */
+static VALUE
+fole_s_ole_uninitialize(VALUE self)
+{
+ ole_pure_uninitialize();
+ return Qnil;
+}
+
+/*
* Document-class: WIN32OLE
*
* <code>WIN32OLE</code> objects represent OLE Automation object in Ruby.
*
* By using WIN32OLE, you can access OLE server like VBScript.
- *
+ *
* Here is sample script.
*
* require 'win32ole'
- *
+ *
* excel = WIN32OLE.new('Excel.Application')
* excel.visible = true
* workbook = excel.Workbooks.Add();
@@ -3183,17 +3182,17 @@ fole_s_create_guid(VALUE self)
* worksheet.Range("A2:B2").value = [5.2, 10];
* worksheet.Range("C2").value = 8;
* worksheet.Range("D2").value = 20;
- *
+ *
* range = worksheet.Range("A1:D2");
* range.select
* chart = workbook.Charts.Add;
- *
+ *
* workbook.saved = true;
- *
+ *
* excel.ActiveWorkbook.Close(0);
* excel.Quit();
*
- * Unfortunately, Win32OLE doesn't support the argument passed by
+ * Unfortunately, Win32OLE doesn't support the argument passed by
* reference directly.
* Instead, Win32OLE provides WIN32OLE::ARGV.
* If you want to get the result value of argument passed by reference,
@@ -3201,18 +3200,18 @@ fole_s_create_guid(VALUE self)
*
* oleobj.method(arg1, arg2, refargv3)
* puts WIN32OLE::ARGV[2] # the value of refargv3 after called oleobj.method
- *
+ *
*/
/*
* call-seq:
* WIN32OLE.new(server, [host]) -> WIN32OLE object
- *
+ *
* Returns a new WIN32OLE object(OLE Automation object).
* The first argument server specifies OLE Automation server.
* The first argument should be CLSID or PROGID.
- * If second argument host specified, then returns OLE Automation
- * object on host.
+ * If second argument host specified, then returns OLE Automation
+ * object on host.
*
* WIN32OLE.new('Excel.Application') # => Excel OLE Automation WIN32OLE object.
* WIN32OLE.new('{00024500-0000-0000-C000-000000000046}') # => Excel OLE Automation WIN32OLE object.
@@ -3232,13 +3231,13 @@ fole_initialize(int argc, VALUE *argv, VALUE self)
rb_call_super(0, 0);
rb_scan_args(argc, argv, "11*", &svr_name, &host, &others);
- Check_SafeStr(svr_name);
+ SafeStringValue(svr_name);
if (rb_safe_level() > 0 && OBJ_TAINTED(svr_name)) {
rb_raise(rb_eSecurityError, "Insecure Object Creation - %s",
StringValuePtr(svr_name));
}
if (!NIL_P(host)) {
- Check_SafeStr(host);
+ SafeStringValue(host);
if (rb_safe_level() > 0 && OBJ_TAINTED(host)) {
rb_raise(rb_eSecurityError, "Insecure Object Creation - %s",
StringValuePtr(svr_name));
@@ -3254,7 +3253,7 @@ fole_initialize(int argc, VALUE *argv, VALUE self)
}
SysFreeString(pBuf);
if(FAILED(hr)) {
- ole_raise(hr, eWIN32OLERuntimeError,
+ ole_raise(hr, eWIN32OLERuntimeError,
"unknown OLE server: `%s'",
StringValuePtr(svr_name));
}
@@ -3380,7 +3379,7 @@ ole_invoke(int argc, VALUE *argv, VALUE self, USHORT wFlags, BOOL is_bracket)
&wcmdname, 1, lcid, &DispID);
SysFreeString(wcmdname);
if(FAILED(hr)) {
- ole_raise(hr, eWIN32OLERuntimeError,
+ ole_raise(hr, rb_eNoMethodError,
"unknown property or method: `%s'",
StringValuePtr(cmd));
}
@@ -3393,8 +3392,8 @@ ole_invoke(int argc, VALUE *argv, VALUE self, USHORT wFlags, BOOL is_bracket)
/* if last arg is hash object */
if(TYPE(param) == T_HASH) {
- /*------------------------------------------
- hash object ==> named dispatch parameters
+ /*------------------------------------------
+ hash object ==> named dispatch parameters
--------------------------------------------*/
cNamedArgs = NUM2INT(rb_funcall(param, rb_intern("length"), 0));
op.dp.cArgs = cNamedArgs + argc - 2;
@@ -3418,7 +3417,7 @@ ole_invoke(int argc, VALUE *argv, VALUE self, USHORT wFlags, BOOL is_bracket)
for(i = 0; i < op.dp.cArgs; i++ ) {
VariantClear(&op.dp.rgvarg[i]);
}
- ole_raise(hr, eWIN32OLERuntimeError,
+ ole_raise(hr, eWIN32OLERuntimeError,
"failed to get named argument info: `%s'",
StringValuePtr(cmd));
}
@@ -3433,7 +3432,7 @@ ole_invoke(int argc, VALUE *argv, VALUE self, USHORT wFlags, BOOL is_bracket)
}
}
/*--------------------------------------
- non hash args ==> dispatch parameters
+ non hash args ==> dispatch parameters
----------------------------------------*/
if(op.dp.cArgs > cNamedArgs) {
realargs = ALLOCA_N(VARIANTARG, op.dp.cArgs-cNamedArgs+1);
@@ -3461,9 +3460,9 @@ ole_invoke(int argc, VALUE *argv, VALUE self, USHORT wFlags, BOOL is_bracket)
op.dp.rgdispidNamedArgs = ALLOCA_N( DISPID, 1 );
op.dp.rgdispidNamedArgs[0] = DISPID_PROPERTYPUT;
}
-
- hr = pole->pDispatch->lpVtbl->Invoke(pole->pDispatch, DispID,
- &IID_NULL, lcid, wFlags, &op.dp,
+
+ hr = pole->pDispatch->lpVtbl->Invoke(pole->pDispatch, DispID,
+ &IID_NULL, lcid, wFlags, &op.dp,
&result, &excepinfo, &argErr);
if (FAILED(hr)) {
@@ -3479,7 +3478,7 @@ ole_invoke(int argc, VALUE *argv, VALUE self, USHORT wFlags, BOOL is_bracket)
}
memset(&excepinfo, 0, sizeof(EXCEPINFO));
VariantInit(&result);
- hr = pole->pDispatch->lpVtbl->Invoke(pole->pDispatch, DispID,
+ hr = pole->pDispatch->lpVtbl->Invoke(pole->pDispatch, DispID,
&IID_NULL, lcid, wFlags,
&op.dp, &result,
&excepinfo, &argErr);
@@ -3493,7 +3492,7 @@ ole_invoke(int argc, VALUE *argv, VALUE self, USHORT wFlags, BOOL is_bracket)
ole_freeexceptinfo(&excepinfo);
}
memset(&excepinfo, 0, sizeof(EXCEPINFO));
- hr = pole->pDispatch->lpVtbl->Invoke(pole->pDispatch, DispID,
+ hr = pole->pDispatch->lpVtbl->Invoke(pole->pDispatch, DispID,
&IID_NULL, lcid, wFlags,
&op.dp, NULL,
&excepinfo, &argErr);
@@ -3518,7 +3517,7 @@ ole_invoke(int argc, VALUE *argv, VALUE self, USHORT wFlags, BOOL is_bracket)
}
memset(&excepinfo, 0, sizeof(EXCEPINFO));
VariantInit(&result);
- hr = pole->pDispatch->lpVtbl->Invoke(pole->pDispatch, DispID,
+ hr = pole->pDispatch->lpVtbl->Invoke(pole->pDispatch, DispID,
&IID_NULL, lcid, wFlags,
&op.dp, &result,
&excepinfo, &argErr);
@@ -3562,7 +3561,7 @@ ole_invoke(int argc, VALUE *argv, VALUE self, USHORT wFlags, BOOL is_bracket)
* call-seq:
* WIN32OLE#invoke(method, [arg1,...]) => return value of method.
*
- * Runs OLE method.
+ * Runs OLE method.
* The first argument specifies the method name of OLE Automation object.
* The others specify argument of the <i>method</i>.
* If you can not execute <i>method</i> directly, then use this method instead.
@@ -3595,7 +3594,7 @@ ole_invoke2(VALUE self, VALUE dispid, VALUE args, VALUE types, USHORT dispkind)
Check_Type(args, T_ARRAY);
Check_Type(types, T_ARRAY);
-
+
memset(&excepinfo, 0, sizeof(EXCEPINFO));
memset(&dispParams, 0, sizeof(DISPPARAMS));
VariantInit(&result);
@@ -3770,9 +3769,9 @@ ole_invoke2(VALUE self, VALUE dispid, VALUE args, VALUE types, USHORT dispkind)
/*
* call-seq:
* WIN32OLE#_invoke(dispid, args, types)
- *
+ *
* Runs the early binding method.
- * The 1st argument specifies dispatch ID,
+ * The 1st argument specifies dispatch ID,
* the 2nd argument specifies the array of arguments,
* the 3rd argument specifies the array of the type of arguments.
*
@@ -3788,9 +3787,9 @@ fole_invoke2(VALUE self, VALUE dispid, VALUE args, VALUE types)
/*
* call-seq:
* WIN32OLE#_getproperty(dispid, args, types)
- *
+ *
* Runs the early binding method to get property.
- * The 1st argument specifies dispatch ID,
+ * The 1st argument specifies dispatch ID,
* the 2nd argument specifies the array of arguments,
* the 3rd argument specifies the array of the type of arguments.
*
@@ -3806,9 +3805,9 @@ fole_getproperty2(VALUE self, VALUE dispid, VALUE args, VALUE types)
/*
* call-seq:
* WIN32OLE#_setproperty(dispid, args, types)
- *
+ *
* Runs the early binding method to set property.
- * The 1st argument specifies dispatch ID,
+ * The 1st argument specifies dispatch ID,
* the 2nd argument specifies the array of arguments,
* the 3rd argument specifies the array of the type of arguments.
*
@@ -3823,13 +3822,13 @@ fole_setproperty2(VALUE self, VALUE dispid, VALUE args, VALUE types)
/*
* call-seq:
- * WIN32OLE[a1, a2, ...]=val
- *
+ * WIN32OLE[a1, a2, ...]=val
+ *
* Sets the value to WIN32OLE object specified by a1, a2, ...
- *
+ *
* dict = WIN32OLE.new('Scripting.Dictionary')
* dict.add('ruby', 'RUBY')
- * dict['ruby'] = 'Ruby'
+ * dict['ruby'] = 'Ruby'
* puts dict['ruby'] # => 'Ruby'
*
* Remark: You can not use this method to set the property value.
@@ -3848,7 +3847,7 @@ fole_setproperty_with_bracket(int argc, VALUE *argv, VALUE self)
/*
* call-seq:
* WIN32OLE.setproperty('property', [arg1, arg2,...] val)
- *
+ *
* Sets property of OLE object.
* When you want to set property with argument, you can use this method.
*
@@ -3866,14 +3865,14 @@ fole_setproperty(int argc, VALUE *argv, VALUE self)
/*
* call-seq:
- * WIN32OLE[a1,a2,...]
- *
+ * WIN32OLE[a1,a2,...]
+ *
* Returns the value of Collection specified by a1, a2,....
*
* dict = WIN32OLE.new('Scripting.Dictionary')
* dict.add('ruby', 'Ruby')
* puts dict['ruby'] # => 'Ruby' (same as `puts dict.item('ruby')')
- *
+ *
* Remark: You can not use this method to get the property.
* excel = WIN32OLE.new('Excel.Application')
* # puts excel['Visible'] This is error !!!
@@ -3921,13 +3920,13 @@ ole_propertyput(VALUE self, VALUE property, VALUE value)
pBuf[0] = NULL;
if(FAILED(hr)) {
- ole_raise(hr, eWIN32OLERuntimeError,
+ ole_raise(hr, eWIN32OLERuntimeError,
"unknown property or method: `%s'",
StringValuePtr(property));
}
/* set property value */
ole_val2variant(value, &propertyValue[0]);
- hr = pole->pDispatch->lpVtbl->Invoke(pole->pDispatch, dispID, &IID_NULL,
+ hr = pole->pDispatch->lpVtbl->Invoke(pole->pDispatch, dispID, &IID_NULL,
lcid, wFlags, &dispParams,
NULL, &excepinfo, &argErr);
@@ -3990,7 +3989,7 @@ ole_ienum_free(VALUE pEnumV)
/*
* call-seq:
* WIN32OLE#each {|i|...}
- *
+ *
* Iterates over each item of OLE collection which has IEnumVARIANT interface.
*
* excel = WIN32OLE.new('Excel.Application')
@@ -4024,7 +4023,7 @@ fole_each(VALUE self)
dispParams.cNamedArgs = 0;
dispParams.cArgs = 0;
memset(&excepinfo, 0, sizeof(excepinfo));
-
+
OLEData_Get_Struct(self, pole);
hr = pole->pDispatch->lpVtbl->Invoke(pole->pDispatch, DISPID_NEWENUM,
&IID_NULL, lcid,
@@ -4061,7 +4060,7 @@ fole_each(VALUE self)
/*
* call-seq:
* WIN32OLE#method_missing(id [,arg1, arg2, ...])
- *
+ *
* Calls WIN32OLE#invoke method.
*/
static VALUE
@@ -4174,7 +4173,7 @@ ole_methods_sub(ITypeInfo *pOwnerTypeInfo, ITypeInfo *pTypeInfo, VALUE methods,
hr = pTypeInfo->lpVtbl->GetFuncDesc(pTypeInfo, i, &pFuncDesc);
if (FAILED(hr))
continue;
-
+
hr = pTypeInfo->lpVtbl->GetDocumentation(pTypeInfo, pFuncDesc->memid,
&bstr, NULL, NULL, NULL);
if (FAILED(hr)) {
@@ -4183,7 +4182,7 @@ ole_methods_sub(ITypeInfo *pOwnerTypeInfo, ITypeInfo *pTypeInfo, VALUE methods,
}
if(pFuncDesc->invkind & mask) {
method = folemethod_s_allocate(cWIN32OLE_METHOD);
- olemethod_set_member(method, pTypeInfo, pOwnerTypeInfo,
+ olemethod_set_member(method, pTypeInfo, pOwnerTypeInfo,
i, WC2VSTR(bstr));
rb_ary_push(methods, method);
}
@@ -4287,13 +4286,13 @@ ole_methods(VALUE self, int mask)
/*
* call-seq:
* WIN32OLE#ole_methods
- *
- * Returns the array of WIN32OLE_METHOD object.
+ *
+ * Returns the array of WIN32OLE_METHOD object.
* The element is OLE method of WIN32OLE object.
*
* excel = WIN32OLE.new('Excel.Application')
* methods = excel.ole_methods
- *
+ *
*/
static VALUE
fole_methods(VALUE self)
@@ -4304,7 +4303,7 @@ fole_methods(VALUE self)
/*
* call-seq:
* WIN32OLE#ole_get_methods
- *
+ *
* Returns the array of WIN32OLE_METHOD object .
* The element of the array is property (gettable) of WIN32OLE object.
*
@@ -4320,7 +4319,7 @@ fole_get_methods(VALUE self)
/*
* call-seq:
* WIN32OLE#ole_put_methods
- *
+ *
* Returns the array of WIN32OLE_METHOD object .
* The element of the array is property (settable) of WIN32OLE object.
*
@@ -4336,7 +4335,7 @@ fole_put_methods(VALUE self)
/*
* call-seq:
* WIN32OLE#ole_func_methods
- *
+ *
* Returns the array of WIN32OLE_METHOD object .
* The element of the array is property (settable) of WIN32OLE object.
*
@@ -4377,7 +4376,7 @@ ole_type_from_itypeinfo(ITypeInfo *pTypeInfo)
/*
* call-seq:
* WIN32OLE#ole_type
- *
+ *
* Returns WIN32OLE_TYPE object.
*
* excel = WIN32OLE.new('Excel.Application')
@@ -4407,44 +4406,6 @@ fole_type(VALUE self)
}
static VALUE
-make_oletypelib_obj(VALUE guid, VALUE major_version, VALUE minor_version)
-{
- VALUE args = rb_ary_new();
- rb_ary_push(args, guid);
- rb_ary_push(args, major_version);
- rb_ary_push(args, minor_version);
- return rb_apply(cWIN32OLE_TYPELIB, rb_intern("new"), args);
-}
-
-static VALUE
-ole_typelib_from_itypelib(ITypeLib *pTypeLib)
-{
- TLIBATTR *pTLibAttr;
- OLECHAR bstr[80];
- VALUE guid = Qnil;
- VALUE major;
- VALUE minor;
- int len = 0;
- HRESULT hr = S_OK;
- hr = pTypeLib->lpVtbl->GetLibAttr(pTypeLib, &pTLibAttr);
- if (FAILED(hr)) {
- return Qnil;
- }
- len = StringFromGUID2(&pTLibAttr->guid, bstr, sizeof(bstr)/sizeof(OLECHAR));
- if (len > 3) {
- guid = ole_wc2vstr(bstr, FALSE);
- }
- major = INT2NUM(pTLibAttr->wMajorVerNum);
- minor = INT2NUM(pTLibAttr->wMinorVerNum);
- pTypeLib->lpVtbl->ReleaseTLibAttr(pTypeLib, pTLibAttr);
- if (guid == Qnil) {
- return Qnil;
- }
- return make_oletypelib_obj(guid, major, minor);
-}
-
-
-static VALUE
ole_typelib_from_itypeinfo(ITypeInfo *pTypeInfo)
{
HRESULT hr;
@@ -4456,14 +4417,14 @@ ole_typelib_from_itypeinfo(ITypeInfo *pTypeInfo)
if(FAILED(hr)) {
return Qnil;
}
- retval = ole_typelib_from_itypelib(pTypeLib);
- OLE_RELEASE(pTypeLib);
+ retval = rb_funcall(cWIN32OLE_TYPELIB, rb_intern("allocate"), 0);
+ oletypelib_set_member(retval, pTypeLib);
return retval;
}
/*
* call-seq:
- * WIN32OLE#ole_typelib -> The WIN32OLE_TYPELIB object
+ * WIN32OLE#ole_typelib -> The WIN32OLE_TYPELIB object
*
* Returns the WIN32OLE_TYPELIB object. The object represents the
* type library which contains the WIN32OLE object.
@@ -4498,12 +4459,12 @@ fole_typelib(VALUE self)
/*
* call-seq:
* WIN32OLE#ole_query_interface(iid) -> WIN32OLE object
- *
+ *
* Returns WIN32OLE object for a specific dispatch or dual
* interface specified by iid.
*
* ie = WIN32OLE.new('InternetExplorer.Application')
- * ie_web_app = ie.ole_query_interface('{0002DF05-0000-0000-C000-000000000046}') # => WIN32OLE object for dispinterface IWebBrowserApp
+ * ie_web_app = ie.ole_query_interface('{0002DF05-0000-0000-C000-000000000046}') # => WIN32OLE object for dispinterface IWebBrowserApp
*/
static VALUE
fole_query_interface(VALUE self, VALUE str_iid)
@@ -4514,12 +4475,12 @@ fole_query_interface(VALUE self, VALUE str_iid)
struct oledata *pole;
IDispatch *pDispatch;
void *p;
-
+
pBuf = ole_vstr2wc(str_iid);
hr = CLSIDFromString(pBuf, &iid);
SysFreeString(pBuf);
if(FAILED(hr)) {
- ole_raise(hr, eWIN32OLERuntimeError,
+ ole_raise(hr, eWIN32OLERuntimeError,
"invalid iid: `%s'",
StringValuePtr(str_iid));
}
@@ -4532,8 +4493,8 @@ fole_query_interface(VALUE self, VALUE str_iid)
hr = pole->pDispatch->lpVtbl->QueryInterface(pole->pDispatch, &iid,
&p);
if(FAILED(hr)) {
- ole_raise(hr, eWIN32OLERuntimeError,
- "failed to get interface `%s'",
+ ole_raise(hr, eWIN32OLERuntimeError,
+ "failed to get interface `%s'",
StringValuePtr(str_iid));
}
@@ -4544,7 +4505,7 @@ fole_query_interface(VALUE self, VALUE str_iid)
/*
* call-seq:
* WIN32OLE#ole_respond_to?(method) -> true or false
- *
+ *
* Returns true when OLE object has OLE method, otherwise returns false.
*
* ie = WIN32OLE.new('InternetExplorer.Application')
@@ -4583,9 +4544,9 @@ ole_docinfo_from_type(ITypeInfo *pTypeInfo, BSTR *name, BSTR *helpstr, DWORD *he
if (FAILED(hr)) {
return hr;
}
-
+
hr = pTypeLib->lpVtbl->GetDocumentation(pTypeLib, i,
- name, helpstr,
+ name, helpstr,
helpcontext, helpfile);
if (FAILED(hr)) {
OLE_RELEASE(pTypeLib);
@@ -4603,7 +4564,7 @@ ole_usertype2val(ITypeInfo *pTypeInfo, TYPEDESC *pTypeDesc, VALUE typedetails)
ITypeInfo *pRefTypeInfo;
VALUE type = Qnil;
- hr = pTypeInfo->lpVtbl->GetRefTypeInfo(pTypeInfo,
+ hr = pTypeInfo->lpVtbl->GetRefTypeInfo(pTypeInfo,
V_UNION1(pTypeDesc, hreftype),
&pRefTypeInfo);
if(FAILED(hr))
@@ -4622,7 +4583,7 @@ ole_usertype2val(ITypeInfo *pTypeInfo, TYPEDESC *pTypeDesc, VALUE typedetails)
static VALUE
ole_ptrtype2val(ITypeInfo *pTypeInfo, TYPEDESC *pTypeDesc, VALUE typedetails)
-{
+{
TYPEDESC *p = pTypeDesc;
VALUE type = rb_str_new2("");
@@ -4716,7 +4677,7 @@ ole_typedesc2val(ITypeInfo *pTypeInfo, TYPEDESC *pTypeDesc, VALUE typedetails)
break;
case VT_USERDEFINED:
typestr = rb_str_new2("USERDEFINED");
- if (typedetails != Qnil)
+ if (typedetails != Qnil)
rb_ary_push(typedetails, typestr);
str = ole_usertype2val(pTypeInfo, pTypeDesc, typedetails);
if (str != Qnil) {
@@ -4751,8 +4712,8 @@ ole_typedesc2val(ITypeInfo *pTypeInfo, TYPEDESC *pTypeDesc, VALUE typedetails)
/*
* call-seq:
* WIN32OLE#ole_method_help(method)
- *
- * Returns WIN32OLE_METHOD object corresponding with method
+ *
+ * Returns WIN32OLE_METHOD object corresponding with method
* specified by 1st argument.
*
* excel = WIN32OLE.new('Excel.Application')
@@ -4767,7 +4728,7 @@ fole_method_help(VALUE self, VALUE cmdname)
struct oledata *pole;
VALUE method, obj;
- Check_SafeStr(cmdname);
+ SafeStringValue(cmdname);
OLEData_Get_Struct(self, pole);
hr = typeinfo_from_ole(pole, &pTypeInfo);
if(FAILED(hr))
@@ -4785,11 +4746,11 @@ fole_method_help(VALUE self, VALUE cmdname)
* call-seq:
* WIN32OLE#ole_activex_initialize() -> Qnil
*
- * Initialize WIN32OLE object(ActiveX Control) by calling
+ * Initialize WIN32OLE object(ActiveX Control) by calling
* IPersistMemory::InitNew.
*
- * Before calling OLE method, some kind of the ActiveX controls
- * created with MFC should be initialized by calling
+ * Before calling OLE method, some kind of the ActiveX controls
+ * created with MFC should be initialized by calling
* IPersistXXX::InitNew.
*
* If and only if you received the exception "HRESULT error code:
@@ -4799,10 +4760,10 @@ fole_method_help(VALUE self, VALUE cmdname)
* obj = WIN32OLE.new("ProgID_or_GUID_of_ActiveX_Control")
* obj.ole_activex_initialize
* obj.method(...)
- *
- */
+ *
+ */
static VALUE
-fole_activex_initialize(VALUE self)
+fole_activex_initialize(VALUE self)
{
struct oledata *pole;
IPersistMemory *pPersistMemory;
@@ -4832,7 +4793,7 @@ fole_activex_initialize(VALUE self)
/*
* call-seq:
* WIN32OLE_TYPE.ole_classes(typelib)
- *
+ *
* Returns array of WIN32OLE_TYPE objects defined by the <i>typelib</i> type library.
* This method will be OBSOLETE. Use WIN32OLE_TYPELIB.new(typelib).ole_classes instead.
*/
@@ -4853,7 +4814,7 @@ foletype_s_ole_classes(VALUE self, VALUE typelib)
/*
* call-seq:
* WIN32OLE_TYPE.typelibs
- *
+ *
* Returns array of type libraries.
* This method will be OBSOLETE. Use WIN32OLE_TYPELIB.typelibs.collect{|t| t.name} instead.
*
@@ -4872,7 +4833,7 @@ foletype_s_typelibs(VALUE self)
/*
* call-seq:
* WIN32OLE_TYPE.progids
- *
+ *
* Returns array of ProgID.
*/
static VALUE
@@ -4896,7 +4857,7 @@ foletype_s_progids(VALUE self)
err = reg_open_vkey(hclsids, clsid, &hclsid);
if (err != ERROR_SUCCESS)
continue;
- if ((v = reg_get_val2(hclsid, "ProgID")) != Qnil)
+ if ((v = reg_get_val2(hclsid, "ProgID")) != Qnil)
rb_ary_push(progids, v);
if ((v = reg_get_val2(hclsid, "VersionIndependentProgID")) != Qnil)
rb_ary_push(progids, v);
@@ -4931,7 +4892,7 @@ oletype_set_member(VALUE self, ITypeInfo *pTypeInfo, VALUE name)
static VALUE
oleclass_from_typelib(VALUE self, ITypeLib *pTypeLib, VALUE oleclass)
{
-
+
long count;
int i;
HRESULT hr;
@@ -4940,7 +4901,7 @@ oleclass_from_typelib(VALUE self, ITypeLib *pTypeLib, VALUE oleclass)
ITypeInfo *pTypeInfo;
VALUE found = Qfalse;
-
+
count = pTypeLib->lpVtbl->GetTypeInfoCount(pTypeLib);
for (i = 0; i < count && found == Qfalse; i++) {
hr = pTypeLib->lpVtbl->GetTypeInfo(pTypeLib, i, &pTypeInfo);
@@ -4948,7 +4909,7 @@ oleclass_from_typelib(VALUE self, ITypeLib *pTypeLib, VALUE oleclass)
continue;
hr = pTypeLib->lpVtbl->GetDocumentation(pTypeLib, i,
&bstr, NULL, NULL, NULL);
- if (FAILED(hr))
+ if (FAILED(hr))
continue;
typelib = WC2VSTR(bstr);
if (rb_str_cmp(oleclass, typelib) == 0) {
@@ -4966,16 +4927,34 @@ oleclass_from_typelib(VALUE self, ITypeLib *pTypeLib, VALUE oleclass)
* <code>WIN32OLE_TYPELIB</code> objects represent OLE tyblib information.
*/
-
static VALUE
-oletypelib_set_member(VALUE self, VALUE typelib, VALUE guid, VALUE version)
+oletypelib_set_member(VALUE self, ITypeLib *pTypeLib)
{
- rb_ivar_set(self, rb_intern("name"), typelib);
- rb_ivar_set(self, rb_intern("guid"), guid);
- rb_ivar_set(self, rb_intern("version"), version);
+ struct oletypelibdata *ptlib;
+ Data_Get_Struct(self, struct oletypelibdata, ptlib);
+ ptlib->pTypeLib = pTypeLib;
return self;
}
+static ITypeLib *
+oletypelib_get_typelib(VALUE self)
+{
+ struct oletypelibdata *ptlib;
+ Data_Get_Struct(self, struct oletypelibdata, ptlib);
+ return ptlib->pTypeLib;
+}
+
+static void
+oletypelib_get_libattr(ITypeLib *pTypeLib, TLIBATTR **ppTLibAttr)
+{
+ HRESULT hr;
+ hr = pTypeLib->lpVtbl->GetLibAttr(pTypeLib, ppTLibAttr);
+ if (FAILED(hr)) {
+ ole_raise(hr, eWIN32OLERuntimeError,
+ "failed to get library attribute(TLIBATTR) from ITypeLib");
+ }
+}
+
/*
* call-seq:
*
@@ -4997,6 +4976,8 @@ foletypelib_s_typelibs(VALUE self)
VALUE name = Qnil;
VALUE typelibs = rb_ary_new();
VALUE typelib = Qnil;
+ HRESULT hr;
+ ITypeLib *pTypeLib;
err = reg_open_key(HKEY_CLASSES_ROOT, "TypeLib", &htypelib);
if(err != ERROR_SUCCESS) {
@@ -5014,9 +4995,12 @@ foletypelib_s_typelibs(VALUE self)
if (version == Qnil)
break;
if ( (name = reg_get_val2(hguid, StringValuePtr(version))) != Qnil ) {
- typelib = rb_funcall(cWIN32OLE_TYPELIB, rb_intern("allocate"), 0);
- oletypelib_set_member(typelib, name, guid, version);
- rb_ary_push(typelibs, typelib);
+ hr = oletypelib_from_guid(guid, version, &pTypeLib);
+ if (SUCCEEDED(hr)) {
+ typelib = rb_funcall(cWIN32OLE_TYPELIB, rb_intern("allocate"), 0);
+ oletypelib_set_member(typelib, pTypeLib);
+ rb_ary_push(typelibs, typelib);
+ }
}
}
RegCloseKey(hguid);
@@ -5055,6 +5039,8 @@ oletypelib_search_registry2(VALUE self, VALUE args)
VALUE version_str;
VALUE version = Qnil;
VALUE typelib = Qnil;
+ HRESULT hr;
+ ITypeLib *pTypeLib;
VALUE guid = rb_ary_entry(args, 0);
version_str = make_version_str(rb_ary_entry(args, 1), rb_ary_entry(args, 2));
@@ -5085,7 +5071,7 @@ oletypelib_search_registry2(VALUE self, VALUE args)
if (ver == Qnil)
break;
err = reg_open_vkey(hguid, ver, &hversion);
- if (err != ERROR_SUCCESS)
+ if (err != ERROR_SUCCESS)
continue;
tlib = reg_get_val(hversion, NULL);
if (tlib == Qnil) {
@@ -5103,8 +5089,11 @@ oletypelib_search_registry2(VALUE self, VALUE args)
RegCloseKey(hguid);
RegCloseKey(htypelib);
if (typelib != Qnil) {
- found = Qtrue;
- oletypelib_set_member(self, typelib, guid, version);
+ hr = oletypelib_from_guid(guid, version, &pTypeLib);
+ if (SUCCEEDED(hr)) {
+ found = Qtrue;
+ oletypelib_set_member(self, pTypeLib);
+ }
}
return found;
}
@@ -5119,6 +5108,8 @@ oletypelib_search_registry(VALUE self, VALUE typelib)
VALUE tlib;
VALUE guid;
VALUE ver;
+ HRESULT hr;
+ ITypeLib *pTypeLib;
err = reg_open_key(HKEY_CLASSES_ROOT, "TypeLib", &htypelib);
if(err != ERROR_SUCCESS) {
@@ -5136,7 +5127,7 @@ oletypelib_search_registry(VALUE self, VALUE typelib)
if (ver == Qnil)
break;
err = reg_open_vkey(hguid, ver, &hversion);
- if (err != ERROR_SUCCESS)
+ if (err != ERROR_SUCCESS)
continue;
tlib = reg_get_val(hversion, NULL);
if (tlib == Qnil) {
@@ -5144,8 +5135,11 @@ oletypelib_search_registry(VALUE self, VALUE typelib)
continue;
}
if (rb_str_cmp(typelib, tlib) == 0) {
- oletypelib_set_member(self, typelib, guid, ver);
- found = Qtrue;
+ hr = oletypelib_from_guid(guid, ver, &pTypeLib);
+ if (SUCCEEDED(hr)) {
+ oletypelib_set_member(self, pTypeLib);
+ found = Qtrue;
+ }
}
RegCloseKey(hversion);
}
@@ -5155,13 +5149,24 @@ oletypelib_search_registry(VALUE self, VALUE typelib)
return found;
}
+static VALUE
+foletypelib_s_allocate(VALUE klass)
+{
+ struct oletypelibdata *poletypelib;
+ VALUE obj;
+ ole_initialize();
+ obj = Data_Make_Struct(klass, struct oletypelibdata, 0, oletypelib_free, poletypelib);
+ poletypelib->pTypeLib = NULL;
+ return obj;
+}
+
/*
* call-seq:
* WIN32OLE_TYPELIB.new(typelib [, version1, version2]) -> WIN32OLE_TYPELIB object
*
* Returns a new WIN32OLE_TYPELIB object.
*
- * The first argument <i>typelib</i> specifies OLE type library name or GUID or
+ * The first argument <i>typelib</i> specifies OLE type library name or GUID or
* OLE library file.
* The second argument is major version or version of the type library.
* The third argument is minor version.
@@ -5169,7 +5174,7 @@ oletypelib_search_registry(VALUE self, VALUE typelib)
* If the first argument is type library name, then the second and third argument
* are ignored.
*
- * tlib1 = WIN32OLE_TYPELIB.new('Microsoft Excel 9.0 Object Library')
+ * tlib1 = WIN32OLE_TYPELIB.new('Microsoft Excel 9.0 Object Library')
* tlib2 = WIN32OLE_TYPELIB.new('{00020813-0000-0000-C000-000000000046}')
* tlib3 = WIN32OLE_TYPELIB.new('{00020813-0000-0000-C000-000000000046}', 1.3)
* tlib4 = WIN32OLE_TYPELIB.new('{00020813-0000-0000-C000-000000000046}', 1, 3)
@@ -5189,7 +5194,6 @@ foletypelib_initialize(VALUE self, VALUE args)
int len = 0;
OLECHAR * pbuf;
ITypeLib *pTypeLib;
- VALUE retval;
HRESULT hr = S_OK;
len = RARRAY_LEN(args);
@@ -5199,7 +5203,7 @@ foletypelib_initialize(VALUE self, VALUE args)
typelib = rb_ary_entry(args, 0);
- Check_SafeStr(typelib);
+ SafeStringValue(typelib);
found = oletypelib_search_registry(self, typelib);
if (found == Qfalse) {
@@ -5210,15 +5214,8 @@ foletypelib_initialize(VALUE self, VALUE args)
hr = LoadTypeLibEx(pbuf, REGKIND_NONE, &pTypeLib);
SysFreeString(pbuf);
if (SUCCEEDED(hr)) {
- retval = ole_typelib_from_itypelib(pTypeLib);
- OLE_RELEASE(pTypeLib);
- if (retval != Qnil) {
- found = Qtrue;
- oletypelib_set_member(self,
- rb_ivar_get(retval, rb_intern("name")),
- rb_ivar_get(retval, rb_intern("guid")),
- rb_ivar_get(retval, rb_intern("version")));
- }
+ found = Qtrue;
+ oletypelib_set_member(self, pTypeLib);
}
}
@@ -5241,7 +5238,20 @@ foletypelib_initialize(VALUE self, VALUE args)
static VALUE
foletypelib_guid(VALUE self)
{
- return rb_ivar_get(self, rb_intern("guid"));
+ ITypeLib *pTypeLib;
+ OLECHAR bstr[80];
+ VALUE guid = Qnil;
+ int len;
+ TLIBATTR *pTLibAttr;
+
+ pTypeLib = oletypelib_get_typelib(self);
+ oletypelib_get_libattr(pTypeLib, &pTLibAttr);
+ len = StringFromGUID2(&pTLibAttr->guid, bstr, sizeof(bstr)/sizeof(OLECHAR));
+ if (len > 3) {
+ guid = ole_wc2vstr(bstr, FALSE);
+ }
+ pTypeLib->lpVtbl->ReleaseTLibAttr(pTypeLib, pTLibAttr);
+ return guid;
}
/*
@@ -5256,13 +5266,24 @@ foletypelib_guid(VALUE self)
static VALUE
foletypelib_name(VALUE self)
{
- VALUE name = rb_ivar_get(self, rb_intern("name"));
+ ITypeLib *pTypeLib;
+ HRESULT hr;
+ BSTR bstr;
+ VALUE name;
+ pTypeLib = oletypelib_get_typelib(self);
+ hr = pTypeLib->lpVtbl->GetDocumentation(pTypeLib, -1,
+ NULL, &bstr, NULL, NULL);
+
+ if (FAILED(hr)) {
+ ole_raise(hr, eWIN32OLERuntimeError, "failed to get name from ITypeLib");
+ }
+ name = WC2VSTR(bstr);
return rb_enc_str_new(StringValuePtr(name), strlen(StringValuePtr(name)), cWIN32OLE_enc);
}
/*
* call-seq:
- * WIN32OLE_TYPELIB#version -> The type library version.
+ * WIN32OLE_TYPELIB#version -> The type library version.
*
* Returns the type library version.
*
@@ -5272,13 +5293,22 @@ foletypelib_name(VALUE self)
static VALUE
foletypelib_version(VALUE self)
{
- VALUE ver = rb_ivar_get(self, rb_intern("version"));
- return rb_Float(ver);
+ TLIBATTR *pTLibAttr;
+ VALUE major;
+ VALUE minor;
+ ITypeLib *pTypeLib;
+
+ pTypeLib = oletypelib_get_typelib(self);
+ oletypelib_get_libattr(pTypeLib, &pTLibAttr);
+ major = INT2NUM(pTLibAttr->wMajorVerNum);
+ minor = INT2NUM(pTLibAttr->wMinorVerNum);
+ pTypeLib->lpVtbl->ReleaseTLibAttr(pTypeLib, pTLibAttr);
+ return rb_Float(make_version_str(major, minor));
}
/*
* call-seq:
- * WIN32OLE_TYPELIB#major_version -> The type library major version.
+ * WIN32OLE_TYPELIB#major_version -> The type library major version.
*
* Returns the type library major version.
*
@@ -5288,14 +5318,20 @@ foletypelib_version(VALUE self)
static VALUE
foletypelib_major_version(VALUE self)
{
- VALUE ver = rb_ivar_get(self, rb_intern("version"));
- VALUE ary = rb_str_split(ver, ".");
- return rb_Integer(rb_ary_entry(ary, 0));
+ TLIBATTR *pTLibAttr;
+ VALUE major;
+ ITypeLib *pTypeLib;
+ pTypeLib = oletypelib_get_typelib(self);
+ oletypelib_get_libattr(pTypeLib, &pTLibAttr);
+
+ major = INT2NUM(pTLibAttr->wMajorVerNum);
+ pTypeLib->lpVtbl->ReleaseTLibAttr(pTypeLib, pTLibAttr);
+ return major;
}
/*
* call-seq:
- * WIN32OLE_TYPELIB#minor_version -> The type library minor version.
+ * WIN32OLE_TYPELIB#minor_version -> The type library minor version.
*
* Returns the type library minor version.
*
@@ -5305,9 +5341,14 @@ foletypelib_major_version(VALUE self)
static VALUE
foletypelib_minor_version(VALUE self)
{
- VALUE ver = rb_ivar_get(self, rb_intern("version"));
- VALUE ary = rb_str_split(ver, ".");
- return rb_Integer(rb_ary_entry(ary, 1));
+ TLIBATTR *pTLibAttr;
+ VALUE minor;
+ ITypeLib *pTypeLib;
+ pTypeLib = oletypelib_get_typelib(self);
+ oletypelib_get_libattr(pTypeLib, &pTLibAttr);
+ minor = INT2NUM(pTLibAttr->wMinorVerNum);
+ pTypeLib->lpVtbl->ReleaseTLibAttr(pTypeLib, pTLibAttr);
+ return minor;
}
static VALUE
@@ -5343,9 +5384,25 @@ oletypelib_path(VALUE guid, VALUE version)
return path;
}
+static HRESULT
+oletypelib_from_guid(VALUE guid, VALUE version, ITypeLib **ppTypeLib)
+{
+ VALUE path;
+ OLECHAR *pBuf;
+ HRESULT hr;
+ path = oletypelib_path(guid, version);
+ if (path == Qnil) {
+ return E_UNEXPECTED;
+ }
+ pBuf = ole_vstr2wc(path);
+ hr = LoadTypeLibEx(pBuf, REGKIND_NONE, ppTypeLib);
+ SysFreeString(pBuf);
+ return hr;
+}
+
/*
* call-seq:
- * WIN32OLE_TYPELIB#path -> The type library file path.
+ * WIN32OLE_TYPELIB#path -> The type library file path.
*
* Returns the type library file path.
*
@@ -5355,33 +5412,33 @@ oletypelib_path(VALUE guid, VALUE version)
static VALUE
foletypelib_path(VALUE self)
{
- VALUE guid = rb_ivar_get(self, rb_intern("guid"));
- VALUE version = rb_ivar_get(self, rb_intern("version"));
- return oletypelib_path(guid, version);
-}
-
-static void
-oletypelib2itypelib(VALUE self, ITypeLib **ppTypeLib)
-{
- VALUE path = Qnil;
- OLECHAR *pbuf;
+ TLIBATTR *pTLibAttr;
HRESULT hr = S_OK;
- path = rb_funcall(self, rb_intern("path"), 0);
- if (path != Qnil) {
- pbuf = ole_vstr2wc(path);
- hr = LoadTypeLibEx(pbuf, REGKIND_NONE, ppTypeLib);
- SysFreeString(pbuf);
- if (FAILED(hr))
- ole_raise(hr, eWIN32OLERuntimeError, "failed to LoadTypeLibEx from `%s'",
- StringValuePtr(path));
- } else {
- rb_raise(eWIN32OLERuntimeError, "failed to get type library path");
+ BSTR bstr;
+ LCID lcid = cWIN32OLE_lcid;
+ VALUE path;
+ ITypeLib *pTypeLib;
+
+ pTypeLib = oletypelib_get_typelib(self);
+ oletypelib_get_libattr(pTypeLib, &pTLibAttr);
+ hr = QueryPathOfRegTypeLib(&pTLibAttr->guid,
+ pTLibAttr->wMajorVerNum,
+ pTLibAttr->wMinorVerNum,
+ lcid,
+ &bstr);
+ if (FAILED(hr)) {
+ pTypeLib->lpVtbl->ReleaseTLibAttr(pTypeLib, pTLibAttr);
+ ole_raise(hr, eWIN32OLERuntimeError, "failed to QueryPathOfRegTypeTypeLib");
}
+
+ pTypeLib->lpVtbl->ReleaseTLibAttr(pTypeLib, pTLibAttr);
+ path = WC2VSTR(bstr);
+ return rb_enc_str_new(StringValuePtr(path), strlen(StringValuePtr(path)), cWIN32OLE_enc);
}
/*
* call-seq:
- * WIN32OLE_TYPELIB#visible?
+ * WIN32OLE_TYPELIB#visible?
*
* Returns true if the type library information is not hidden.
* If wLibFlags of TLIBATTR is 0 or LIBFLAG_FRESTRICTED or LIBFLAG_FHIDDEN,
@@ -5395,31 +5452,25 @@ oletypelib2itypelib(VALUE self, ITypeLib **ppTypeLib)
static VALUE
foletypelib_visible(VALUE self)
{
- HRESULT hr;
ITypeLib *pTypeLib = NULL;
VALUE visible = Qtrue;
TLIBATTR *pTLibAttr;
- oletypelib2itypelib(self, &pTypeLib);
+ pTypeLib = oletypelib_get_typelib(self);
+ oletypelib_get_libattr(pTypeLib, &pTLibAttr);
- hr = pTypeLib->lpVtbl->GetLibAttr(pTypeLib, &pTLibAttr);
- if (FAILED(hr)) {
- OLE_RELEASE(pTypeLib);
- ole_raise(hr, eWIN32OLERuntimeError, "failed to get TLIBATTR information");
- }
if ((pTLibAttr->wLibFlags == 0) ||
(pTLibAttr->wLibFlags & LIBFLAG_FRESTRICTED) ||
(pTLibAttr->wLibFlags & LIBFLAG_FHIDDEN)) {
visible = Qfalse;
}
pTypeLib->lpVtbl->ReleaseTLibAttr(pTypeLib, pTLibAttr);
- OLE_RELEASE(pTypeLib);
return visible;
}
/*
* call-seq:
- * WIN32OLE_TYPELIB#library_name
+ * WIN32OLE_TYPELIB#library_name
*
* Returns library name.
* If the method fails to access library name, WIN32OLERuntimeError is raised.
@@ -5435,14 +5486,12 @@ foletypelib_library_name(VALUE self)
VALUE libname = Qnil;
BSTR bstr;
- oletypelib2itypelib(self, &pTypeLib);
+ pTypeLib = oletypelib_get_typelib(self);
hr = pTypeLib->lpVtbl->GetDocumentation(pTypeLib, -1,
&bstr, NULL, NULL, NULL);
if (FAILED(hr)) {
- OLE_RELEASE(pTypeLib);
ole_raise(hr, eWIN32OLERuntimeError, "failed to get library name");
}
- OLE_RELEASE(pTypeLib);
libname = WC2VSTR(bstr);
return libname;
}
@@ -5455,16 +5504,15 @@ foletypelib_library_name(VALUE self)
* Returns the type library file path.
*
* tlib = WIN32OLE_TYPELIB.new('Microsoft Excel 9.0 Object Library')
- * classes = tlib.ole_types.collect{|k| k.name} # -> ['AddIn', 'AddIns' ...]
+ * classes = tlib.ole_types.collect{|k| k.name} # -> ['AddIn', 'AddIns' ...]
*/
static VALUE
foletypelib_ole_types(VALUE self)
{
ITypeLib *pTypeLib = NULL;
VALUE classes = rb_ary_new();
- oletypelib2itypelib(self, &pTypeLib);
+ pTypeLib = oletypelib_get_typelib(self);
ole_types_from_typelib(pTypeLib, classes);
- OLE_RELEASE(pTypeLib);
return classes;
}
@@ -5497,8 +5545,8 @@ foletypelib_inspect(VALUE self)
* The first argument <i>typelib</i> specifies OLE type library name.
* The second argument specifies OLE class name.
*
- * WIN32OLE_TYPE.new('Microsoft Excel 9.0 Object Library', 'Application')
- * # => WIN32OLE_TYPE object of Application class of Excel.
+ * WIN32OLE_TYPE.new('Microsoft Excel 9.0 Object Library', 'Application')
+ * # => WIN32OLE_TYPE object of Application class of Excel.
*/
static VALUE
foletype_initialize(VALUE self, VALUE typelib, VALUE oleclass)
@@ -5508,8 +5556,8 @@ foletype_initialize(VALUE self, VALUE typelib, VALUE oleclass)
ITypeLib *pTypeLib;
HRESULT hr;
- Check_SafeStr(oleclass);
- Check_SafeStr(typelib);
+ SafeStringValue(oleclass);
+ SafeStringValue(typelib);
file = typelib_file(typelib);
if (file == Qnil) {
file = typelib;
@@ -5533,7 +5581,7 @@ foletype_initialize(VALUE self, VALUE typelib, VALUE oleclass)
* WIN32OLE_TYPE#name #=> OLE type name
*
* Returns OLE type name.
- * tobj = WIN32OLE_TYPE.new('Microsoft Excel 9.0 Object Library', 'Application')
+ * tobj = WIN32OLE_TYPE.new('Microsoft Excel 9.0 Object Library', 'Application')
* puts tobj.name # => Application
*/
static VALUE
@@ -5591,9 +5639,9 @@ ole_ole_type(ITypeInfo *pTypeInfo)
/*
* call-seq:
* WIN32OLE_TYPE#ole_type #=> OLE type string.
- *
+ *
* returns type of OLE class.
- * tobj = WIN32OLE_TYPE.new('Microsoft Excel 9.0 Object Library', 'Application')
+ * tobj = WIN32OLE_TYPE.new('Microsoft Excel 9.0 Object Library', 'Application')
* puts tobj.ole_type # => Class
*/
static VALUE
@@ -5613,7 +5661,7 @@ ole_type_guid(ITypeInfo *pTypeInfo)
OLECHAR bstr[80];
VALUE guid = Qnil;
hr = OLE_GET_TYPEATTR(pTypeInfo, &pTypeAttr);
- if (FAILED(hr))
+ if (FAILED(hr))
return guid;
len = StringFromGUID2(&pTypeAttr->guid, bstr, sizeof(bstr)/sizeof(OLECHAR));
if (len > 3) {
@@ -5626,9 +5674,9 @@ ole_type_guid(ITypeInfo *pTypeInfo)
/*
* call-seq:
* WIN32OLE_TYPE#guid #=> GUID
- *
+ *
* Returns GUID.
- * tobj = WIN32OLE_TYPE.new('Microsoft Excel 9.0 Object Library', 'Application')
+ * tobj = WIN32OLE_TYPE.new('Microsoft Excel 9.0 Object Library', 'Application')
* puts tobj.guid # => {00024500-0000-0000-C000-000000000046}
*/
static VALUE
@@ -5647,7 +5695,7 @@ ole_type_progid(ITypeInfo *pTypeInfo)
OLECHAR *pbuf;
VALUE progid = Qnil;
hr = OLE_GET_TYPEATTR(pTypeInfo, &pTypeAttr);
- if (FAILED(hr))
+ if (FAILED(hr))
return progid;
hr = ProgIDFromCLSID(&pTypeAttr->guid, &pbuf);
if (SUCCEEDED(hr)) {
@@ -5661,7 +5709,7 @@ ole_type_progid(ITypeInfo *pTypeInfo)
/*
* call-seq:
* WIN32OLE_TYPE#progid #=> ProgID
- *
+ *
* Returns ProgID if it exists. If not found, then returns nil.
* tobj = WIN32OLE_TYPE.new('Microsoft Excel 9.0 Object Library', 'Application')
* puts tobj.progid # => Excel.Application.9
@@ -5682,7 +5730,7 @@ ole_type_visible(ITypeInfo *pTypeInfo)
TYPEATTR *pTypeAttr;
VALUE visible;
hr = OLE_GET_TYPEATTR(pTypeInfo, &pTypeAttr);
- if (FAILED(hr))
+ if (FAILED(hr))
return Qtrue;
if (pTypeAttr->wTypeFlags & (TYPEFLAG_FHIDDEN | TYPEFLAG_FRESTRICTED)) {
visible = Qfalse;
@@ -5696,7 +5744,7 @@ ole_type_visible(ITypeInfo *pTypeInfo)
/*
* call-seq:
* WIN32OLE_TYPE#visible #=> true or false
- *
+ *
* Returns true if the OLE class is public.
* tobj = WIN32OLE_TYPE.new('Microsoft Excel 9.0 Object Library', 'Application')
* puts tobj.visible # => true
@@ -5726,7 +5774,7 @@ ole_type_major_version(ITypeInfo *pTypeInfo)
/*
* call-seq:
* WIN32OLE_TYPE#major_version
- *
+ *
* Returns major version.
* tobj = WIN32OLE_TYPE.new('Microsoft Word 10.0 Object Library', 'Documents')
* puts tobj.major_version # => 8
@@ -5756,7 +5804,7 @@ ole_type_minor_version(ITypeInfo *pTypeInfo)
/*
* call-seq:
* WIN32OLE_TYPE#minor_version #=> OLE minor version
- *
+ *
* Returns minor version.
* tobj = WIN32OLE_TYPE.new('Microsoft Word 10.0 Object Library', 'Documents')
* puts tobj.minor_version # => 2
@@ -5786,13 +5834,13 @@ ole_type_typekind(ITypeInfo *pTypeInfo)
/*
* call-seq:
* WIN32OLE_TYPE#typekind #=> number of type.
- *
+ *
* Returns number which represents type.
* tobj = WIN32OLE_TYPE.new('Microsoft Word 10.0 Object Library', 'Documents')
* puts tobj.typekind # => 4
*
*/
-static VALUE
+static VALUE
foletype_typekind(VALUE self)
{
struct oletypedata *ptype;
@@ -5815,12 +5863,12 @@ ole_type_helpstring(ITypeInfo *pTypeInfo)
/*
* call-seq:
* WIN32OLE_TYPE#helpstring #=> help string.
- *
+ *
* Returns help string.
* tobj = WIN32OLE_TYPE.new('Microsoft Internet Controls', 'IWebBrowser')
* puts tobj.helpstring # => Web Browser interface
*/
-static VALUE
+static VALUE
foletype_helpstring(VALUE self)
{
struct oletypedata *ptype;
@@ -5849,7 +5897,7 @@ ole_type_src_type(ITypeInfo *pTypeInfo)
/*
* call-seq:
* WIN32OLE_TYPE#src_type #=> OLE source class
- *
+ *
* Returns source class when the OLE class is 'Alias'.
* tobj = WIN32OLE_TYPE.new('Microsoft Office 9.0 Object Library', 'MsoRGBType')
* puts tobj.src_type # => I4
@@ -5878,7 +5926,7 @@ ole_type_helpfile(ITypeInfo *pTypeInfo)
/*
* call-seq:
* WIN32OLE_TYPE#helpfile
- *
+ *
* Returns helpfile path. If helpfile is not found, then returns nil.
* tobj = WIN32OLE_TYPE.new('Microsoft Excel 9.0 Object Library', 'Worksheet')
* puts tobj.helpfile # => C:\...\VBAXL9.CHM
@@ -5897,7 +5945,7 @@ ole_type_helpcontext(ITypeInfo *pTypeInfo)
{
HRESULT hr;
DWORD helpcontext;
- hr = ole_docinfo_from_type(pTypeInfo, NULL, NULL,
+ hr = ole_docinfo_from_type(pTypeInfo, NULL, NULL,
&helpcontext, NULL);
if(FAILED(hr))
return Qnil;
@@ -5907,7 +5955,7 @@ ole_type_helpcontext(ITypeInfo *pTypeInfo)
/*
* call-seq:
* WIN32OLE_TYPE#helpcontext
- *
+ *
* Returns helpcontext. If helpcontext is not found, then returns nil.
* tobj = WIN32OLE_TYPE.new('Microsoft Excel 9.0 Object Library', 'Worksheet')
* puts tobj.helpfile # => 131185
@@ -5923,8 +5971,8 @@ foletype_helpcontext(VALUE self)
/*
* call-seq:
* WIN32OLE_TYPE#ole_typelib
- *
- * Returns the WIN32OLE_TYPELIB object which is including the WIN32OLE_TYPE
+ *
+ * Returns the WIN32OLE_TYPELIB object which is including the WIN32OLE_TYPE
* object. If it is not found, then returns nil.
* tobj = WIN32OLE_TYPE.new('Microsoft Excel 9.0 Object Library', 'Worksheet')
* puts tobj.ole_typelib # => 'Microsoft Excel 9.0 Object Library'
@@ -5962,7 +6010,7 @@ ole_type_impl_ole_types(ITypeInfo *pTypeInfo, int implflags)
if (FAILED(hr))
continue;
hr = pTypeInfo->lpVtbl->GetRefTypeInfo(pTypeInfo, href, &pRefTypeInfo);
- if (FAILED(hr))
+ if (FAILED(hr))
continue;
if ((flags & implflags) == implflags) {
@@ -5981,9 +6029,9 @@ ole_type_impl_ole_types(ITypeInfo *pTypeInfo, int implflags)
/*
* call-seq:
* WIN32OLE_TYPE#implemented_ole_types
- *
- * Returns the array of WIN32OLE_TYPE object which is implemented by the WIN32OLE_TYPE
- * object.
+ *
+ * Returns the array of WIN32OLE_TYPE object which is implemented by the WIN32OLE_TYPE
+ * object.
* tobj = WIN32OLE_TYPE.new('Microsoft Excel 9.0 Object Library', 'Worksheet')
* p tobj.implemented_ole_types # => [_Worksheet, DocEvents]
*/
@@ -5998,10 +6046,10 @@ foletype_impl_ole_types(VALUE self)
/*
* call-seq:
* WIN32OLE_TYPE#source_ole_types
- *
- * Returns the array of WIN32OLE_TYPE object which is implemented by the WIN32OLE_TYPE
- * object and having IMPLTYPEFLAG_FSOURCE.
- * tobj = WIN32OLE_TYPE.new('Microsoft Internet Controls', "InternetExplorer")
+ *
+ * Returns the array of WIN32OLE_TYPE object which is implemented by the WIN32OLE_TYPE
+ * object and having IMPLTYPEFLAG_FSOURCE.
+ * tobj = WIN32OLE_TYPE.new('Microsoft Internet Controls', "InternetExplorer")
* p tobj.source_ole_types
* # => [#<WIN32OLE_TYPE:DWebBrowserEvents2>, #<WIN32OLE_TYPE:DWebBrowserEvents>]
*/
@@ -6016,10 +6064,10 @@ foletype_source_ole_types(VALUE self)
/*
* call-seq:
* WIN32OLE_TYPE#default_event_sources
- *
- * Returns the array of WIN32OLE_TYPE object which is implemented by the WIN32OLE_TYPE
- * object and having IMPLTYPEFLAG_FSOURCE and IMPLTYPEFLAG_FDEFAULT.
- * tobj = WIN32OLE_TYPE.new('Microsoft Internet Controls', "InternetExplorer")
+ *
+ * Returns the array of WIN32OLE_TYPE object which is implemented by the WIN32OLE_TYPE
+ * object and having IMPLTYPEFLAG_FSOURCE and IMPLTYPEFLAG_FDEFAULT.
+ * tobj = WIN32OLE_TYPE.new('Microsoft Internet Controls', "InternetExplorer")
* p tobj.default_event_sources # => [#<WIN32OLE_TYPE:DWebBrowserEvents2>]
*/
static VALUE
@@ -6033,10 +6081,10 @@ foletype_default_event_sources(VALUE self)
/*
* call-seq:
* WIN32OLE_TYPE#default_ole_types
- *
- * Returns the array of WIN32OLE_TYPE object which is implemented by the WIN32OLE_TYPE
+ *
+ * Returns the array of WIN32OLE_TYPE object which is implemented by the WIN32OLE_TYPE
* object and having IMPLTYPEFLAG_FDEFAULT.
- * tobj = WIN32OLE_TYPE.new('Microsoft Internet Controls', "InternetExplorer")
+ * tobj = WIN32OLE_TYPE.new('Microsoft Internet Controls', "InternetExplorer")
* p tobj.default_ole_types
* # => [#<WIN32OLE_TYPE:IWebBrowser2>, #<WIN32OLE_TYPE:DWebBrowserEvents2>]
*/
@@ -6080,7 +6128,7 @@ ole_variables(ITypeInfo *pTypeInfo)
if (FAILED(hr)) {
ole_raise(hr, eWIN32OLERuntimeError, "failed to GetTypeAttr");
}
-
+
for(i = 0; i < pTypeAttr->cVars; i++) {
hr = pTypeInfo->lpVtbl->GetVarDesc(pTypeInfo, i, &pVarDesc);
if(FAILED(hr))
@@ -6110,15 +6158,15 @@ ole_variables(ITypeInfo *pTypeInfo)
/*
* call-seq:
* WIN32OLE_TYPE#variables
- *
- * Returns array of WIN32OLE_VARIABLE objects which represent variables
+ *
+ * Returns array of WIN32OLE_VARIABLE objects which represent variables
* defined in OLE class.
* tobj = WIN32OLE_TYPE.new('Microsoft Excel 9.0 Object Library', 'XlSheetType')
* vars = tobj.variables
* vars.each do |v|
* puts "#{v.name} = #{v.value}"
* end
- *
+ *
* The result of above sample script is follows:
* xlChart = -4109
* xlDialogSheet = -4116
@@ -6138,13 +6186,13 @@ foletype_variables(VALUE self)
/*
* call-seq:
* WIN32OLE_TYPE#ole_methods # the array of WIN32OLE_METHOD objects.
- *
- * Returns array of WIN32OLE_METHOD objects which represent OLE method defined in
+ *
+ * Returns array of WIN32OLE_METHOD objects which represent OLE method defined in
* OLE type library.
* tobj = WIN32OLE_TYPE.new('Microsoft Excel 9.0 Object Library', 'Worksheet')
* methods = tobj.ole_methods.collect{|m|
* m.name
- * }
+ * }
* # => ['Activate', 'Copy', 'Delete',....]
*/
static VALUE
@@ -6164,7 +6212,7 @@ foletype_methods(VALUE self)
/*
* call-seq:
* WIN32OLE_VARIABLE#name
- *
+ *
* Returns the name of variable.
*
* tobj = WIN32OLE_TYPE.new('Microsoft Excel 9.0 Object Library', 'XlSheetType')
@@ -6204,7 +6252,7 @@ ole_variable_ole_type(ITypeInfo *pTypeInfo, UINT var_index)
/*
* call-seq:
* WIN32OLE_VARIABLE#ole_type
- *
+ *
* Returns OLE type string.
*
* tobj = WIN32OLE_TYPE.new('Microsoft Excel 9.0 Object Library', 'XlSheetType')
@@ -6246,7 +6294,7 @@ ole_variable_ole_type_detail(ITypeInfo *pTypeInfo, UINT var_index)
/*
* call-seq:
* WIN32OLE_VARIABLE#ole_type_detail
- *
+ *
* Returns detail information of type. The information is array of type.
*
* tobj = WIN32OLE_TYPE.new('DirectX 7 for Visual Basic Type Library', 'D3DCLIPSTATUS')
@@ -6281,8 +6329,8 @@ ole_variable_value(ITypeInfo *pTypeInfo, UINT var_index)
/*
* call-seq:
* WIN32OLE_VARIABLE#value
- *
- * Returns value if value is exists. If the value does not exist,
+ *
+ * Returns value if value is exists. If the value does not exist,
* this method returns nil.
*
* tobj = WIN32OLE_TYPE.new('Microsoft Excel 9.0 Object Library', 'XlSheetType')
@@ -6298,7 +6346,7 @@ ole_variable_value(ITypeInfo *pTypeInfo, UINT var_index)
* xlExcel4MacroSheet = 3
* xlWorksheet = -4167
*
- */
+ */
static VALUE
folevariable_value(VALUE self)
{
@@ -6328,7 +6376,7 @@ ole_variable_visible(ITypeInfo *pTypeInfo, UINT var_index)
/*
* call-seq:
* WIN32OLE_VARIABLE#visible?
- *
+ *
* Returns true if the variable is public.
*
* tobj = WIN32OLE_TYPE.new('Microsoft Excel 9.0 Object Library', 'XlSheetType')
@@ -6343,7 +6391,7 @@ ole_variable_visible(ITypeInfo *pTypeInfo, UINT var_index)
* xlExcel4IntlMacroSheet true
* xlExcel4MacroSheet true
* xlWorksheet true
- *
+ *
*/
static VALUE
folevariable_visible(VALUE self)
@@ -6385,7 +6433,7 @@ ole_variable_kind(ITypeInfo *pTypeInfo, UINT var_index)
/*
* call-seq:
* WIN32OLE_VARIABLE#variable_kind
- *
+ *
* Returns variable kind string.
*
* tobj = WIN32OLE_TYPE.new('Microsoft Excel 9.0 Object Library', 'XlSheetType')
@@ -6419,14 +6467,14 @@ ole_variable_varkind(ITypeInfo *pTypeInfo, UINT var_index)
if (FAILED(hr))
return kind;
pTypeInfo->lpVtbl->ReleaseVarDesc(pTypeInfo, pVarDesc);
- kind = INT2FIX(pVarDesc->varkind);
+ kind = INT2FIX(pVarDesc->varkind);
return kind;
}
/*
* call-seq:
* WIN32OLE_VARIABLE#varkind
- *
+ *
* Returns the number which represents variable kind.
* tobj = WIN32OLE_TYPE.new('Microsoft Excel 9.0 Object Library', 'XlSheetType')
* variables = tobj.variables
@@ -6453,7 +6501,7 @@ folevariable_varkind(VALUE self)
* call-seq:
* WIN32OLE_VARIABLE#inspect -> String
*
- * Returns the OLE variable name and the value with class name.
+ * Returns the OLE variable name and the value with class name.
*
*/
static VALUE
@@ -6490,7 +6538,7 @@ folemethod_s_allocate(VALUE klass)
{
struct olemethoddata *pmethod;
VALUE obj;
- obj = Data_Make_Struct(klass,
+ obj = Data_Make_Struct(klass,
struct olemethoddata,
0, olemethod_free, pmethod);
pmethod->pTypeInfo = NULL;
@@ -6502,7 +6550,7 @@ folemethod_s_allocate(VALUE klass)
/*
* call-seq:
* WIN32OLE_METHOD.new(ole_type, method) -> WIN32OLE_METHOD object
- *
+ *
* Returns a new WIN32OLE_METHOD object which represents the information
* about OLE method.
* The first argument <i>ole_type</i> specifies WIN32OLE_TYPE object.
@@ -6518,7 +6566,7 @@ folemethod_initialize(VALUE self, VALUE oletype, VALUE method)
struct oletypedata *ptype;
VALUE obj = Qnil;
if (rb_obj_is_kind_of(oletype, cWIN32OLE_TYPE)) {
- Check_SafeStr(method);
+ SafeStringValue(method);
Data_Get_Struct(oletype, struct oletypedata, ptype);
obj = olemethod_from_typeinfo(self, ptype->pTypeInfo, method);
if (obj == Qnil) {
@@ -6541,7 +6589,7 @@ folemethod_initialize(VALUE self, VALUE oletype, VALUE method)
* tobj = WIN32OLE_TYPE.new('Microsoft Excel 9.0 Object Library', 'Workbook')
* method = WIN32OLE_METHOD.new(tobj, 'SaveAs')
* puts method.name # => SaveAs
- *
+ *
*/
static VALUE
folemethod_name(VALUE self)
@@ -6557,9 +6605,9 @@ ole_method_return_type(ITypeInfo *pTypeInfo, UINT method_index)
VALUE type;
hr = pTypeInfo->lpVtbl->GetFuncDesc(pTypeInfo, method_index, &pFuncDesc);
- if (FAILED(hr))
+ if (FAILED(hr))
ole_raise(hr, eWIN32OLERuntimeError, "failed to GetFuncDesc");
-
+
type = ole_typedesc2val(pTypeInfo, &(pFuncDesc->elemdescFunc.tdesc), Qnil);
pTypeInfo->lpVtbl->ReleaseFuncDesc(pTypeInfo, pFuncDesc);
return type;
@@ -6568,7 +6616,7 @@ ole_method_return_type(ITypeInfo *pTypeInfo, UINT method_index)
/*
* call-seq:
* WIN32OLE_METHOD#return_type
- *
+ *
* Returns string of return value type of method.
* tobj = WIN32OLE_TYPE.new('Microsoft Excel 9.0 Object Library', 'Workbooks')
* method = WIN32OLE_METHOD.new(tobj, 'Add')
@@ -6591,9 +6639,9 @@ ole_method_return_vtype(ITypeInfo *pTypeInfo, UINT method_index)
VALUE vvt;
hr = pTypeInfo->lpVtbl->GetFuncDesc(pTypeInfo, method_index, &pFuncDesc);
- if (FAILED(hr))
+ if (FAILED(hr))
ole_raise(hr, eWIN32OLERuntimeError, "failed to GetFuncDesc");
-
+
vvt = INT2FIX(pFuncDesc->elemdescFunc.tdesc.vt);
pTypeInfo->lpVtbl->ReleaseFuncDesc(pTypeInfo, pFuncDesc);
return vvt;
@@ -6602,7 +6650,7 @@ ole_method_return_vtype(ITypeInfo *pTypeInfo, UINT method_index)
/*
* call-seq:
* WIN32OLE_METHOD#return_vtype
- *
+ *
* Returns number of return value type of method.
* tobj = WIN32OLE_TYPE.new('Microsoft Excel 9.0 Object Library', 'Workbooks')
* method = WIN32OLE_METHOD.new(tobj, 'Add')
@@ -6625,9 +6673,9 @@ ole_method_return_type_detail(ITypeInfo *pTypeInfo, UINT method_index)
VALUE type = rb_ary_new();
hr = pTypeInfo->lpVtbl->GetFuncDesc(pTypeInfo, method_index, &pFuncDesc);
- if (FAILED(hr))
+ if (FAILED(hr))
return type;
-
+
ole_typedesc2val(pTypeInfo, &(pFuncDesc->elemdescFunc.tdesc), type);
pTypeInfo->lpVtbl->ReleaseFuncDesc(pTypeInfo, pFuncDesc);
return type;
@@ -6636,7 +6684,7 @@ ole_method_return_type_detail(ITypeInfo *pTypeInfo, UINT method_index)
/*
* call-seq:
* WIN32OLE_METHOD#return_type_detail
- *
+ *
* Returns detail information of return value type of method.
* The information is array.
* tobj = WIN32OLE_TYPE.new('Microsoft Excel 9.0 Object Library', 'Workbooks')
@@ -6658,7 +6706,7 @@ ole_method_invkind(ITypeInfo *pTypeInfo, UINT method_index)
HRESULT hr;
VALUE invkind;
hr = pTypeInfo->lpVtbl->GetFuncDesc(pTypeInfo, method_index, &pFuncDesc);
- if(FAILED(hr))
+ if(FAILED(hr))
ole_raise(hr, eWIN32OLERuntimeError, "failed to GetFuncDesc");
invkind = INT2FIX(pFuncDesc->invkind);
pTypeInfo->lpVtbl->ReleaseFuncDesc(pTypeInfo, pFuncDesc);
@@ -6688,8 +6736,8 @@ ole_method_invoke_kind(ITypeInfo *pTypeInfo, UINT method_index)
/*
* call-seq:
* WIN32OLE_MTHOD#invkind
- *
- * Returns the method invoke kind.
+ *
+ * Returns the method invoke kind.
* tobj = WIN32OLE_TYPE.new('Microsoft Excel 9.0 Object Library', 'Workbooks')
* method = WIN32OLE_METHOD.new(tobj, 'Add')
* puts method.invkind # => 1
@@ -6706,9 +6754,9 @@ folemethod_invkind(VALUE self)
/*
* call-seq:
* WIN32OLE_METHOD#invoke_kind
- *
- * Returns the method kind string. The string is "UNKNOWN" or "PROPERTY"
- * or "PROPERTY" or "PROPERTYGET" or "PROPERTYPUT" or "PROPERTYPPUTREF"
+ *
+ * Returns the method kind string. The string is "UNKNOWN" or "PROPERTY"
+ * or "PROPERTY" or "PROPERTYGET" or "PROPERTYPUT" or "PROPERTYPPUTREF"
* or "FUNC".
* tobj = WIN32OLE_TYPE.new('Microsoft Excel 9.0 Object Library', 'Workbooks')
* method = WIN32OLE_METHOD.new(tobj, 'Add')
@@ -6745,7 +6793,7 @@ ole_method_visible(ITypeInfo *pTypeInfo, UINT method_index)
/*
* call-seq:
* WIN32OLE_METHOD#visible?
- *
+ *
* Returns true if the method is public.
* tobj = WIN32OLE_TYPE.new('Microsoft Excel 9.0 Object Library', 'Workbooks')
* method = WIN32OLE_METHOD.new(tobj, 'Add')
@@ -6772,9 +6820,9 @@ ole_method_event(ITypeInfo *pTypeInfo, UINT method_index, VALUE method_name)
BSTR bstr;
VALUE name;
VALUE event = Qfalse;
-
+
hr = OLE_GET_TYPEATTR(pTypeInfo, &pTypeAttr);
- if (FAILED(hr))
+ if (FAILED(hr))
return event;
if(pTypeAttr->typekind != TKIND_COCLASS) {
pTypeInfo->lpVtbl->ReleaseTypeAttr(pTypeInfo, pTypeAttr);
@@ -6794,14 +6842,14 @@ ole_method_event(ITypeInfo *pTypeInfo, UINT method_index, VALUE method_name)
href, &pRefTypeInfo);
if (FAILED(hr))
continue;
- hr = pRefTypeInfo->lpVtbl->GetFuncDesc(pRefTypeInfo, method_index,
+ hr = pRefTypeInfo->lpVtbl->GetFuncDesc(pRefTypeInfo, method_index,
&pFuncDesc);
if (FAILED(hr)) {
OLE_RELEASE(pRefTypeInfo);
continue;
}
- hr = pRefTypeInfo->lpVtbl->GetDocumentation(pRefTypeInfo,
+ hr = pRefTypeInfo->lpVtbl->GetDocumentation(pRefTypeInfo,
pFuncDesc->memid,
&bstr, NULL, NULL, NULL);
if (FAILED(hr)) {
@@ -6826,7 +6874,7 @@ ole_method_event(ITypeInfo *pTypeInfo, UINT method_index, VALUE method_name)
/*
* call-seq:
* WIN32OLE_METHOD#event?
- *
+ *
* Returns true if the method is event.
* tobj = WIN32OLE_TYPE.new('Microsoft Excel 9.0 Object Library', 'Workbook')
* method = WIN32OLE_METHOD.new(tobj, 'SheetActivate')
@@ -6840,7 +6888,7 @@ folemethod_event(VALUE self)
Data_Get_Struct(self, struct olemethoddata, pmethod);
if (!pmethod->pOwnerTypeInfo)
return Qfalse;
- return ole_method_event(pmethod->pOwnerTypeInfo,
+ return ole_method_event(pmethod->pOwnerTypeInfo,
pmethod->index,
rb_ivar_get(self, rb_intern("name")));
}
@@ -6897,7 +6945,7 @@ ole_method_helpstring(ITypeInfo *pTypeInfo, UINT method_index)
HRESULT hr;
BSTR bhelpstring;
hr = ole_method_docinfo_from_type(pTypeInfo, method_index, NULL, &bhelpstring,
- NULL, NULL);
+ NULL, NULL);
if (FAILED(hr))
return Qnil;
return WC2VSTR(bhelpstring);
@@ -6907,7 +6955,7 @@ ole_method_helpstring(ITypeInfo *pTypeInfo, UINT method_index)
* call-seq:
* WIN32OLE_METHOD#helpstring
*
- * Returns help string of OLE method. If the help string is not found,
+ * Returns help string of OLE method. If the help string is not found,
* then the method returns nil.
* tobj = WIN32OLE_TYPE.new('Microsoft Internet Controls', 'IWebBrowser')
* method = WIN32OLE_METHOD.new(tobj, 'Navigate')
@@ -6928,7 +6976,7 @@ ole_method_helpfile(ITypeInfo *pTypeInfo, UINT method_index)
HRESULT hr;
BSTR bhelpfile;
hr = ole_method_docinfo_from_type(pTypeInfo, method_index, NULL, NULL,
- NULL, &bhelpfile);
+ NULL, &bhelpfile);
if (FAILED(hr))
return Qnil;
return WC2VSTR(bhelpfile);
@@ -6937,8 +6985,8 @@ ole_method_helpfile(ITypeInfo *pTypeInfo, UINT method_index)
/*
* call-seq:
* WIN32OLE_METHOD#helpfile
- *
- * Returns help file. If help file is not found, then
+ *
+ * Returns help file. If help file is not found, then
* the method returns nil.
* tobj = WIN32OLE_TYPE.new('Microsoft Excel 9.0 Object Library', 'Workbooks')
* method = WIN32OLE_METHOD.new(tobj, 'Add')
@@ -6959,16 +7007,16 @@ ole_method_helpcontext(ITypeInfo *pTypeInfo, UINT method_index)
HRESULT hr;
DWORD helpcontext = 0;
hr = ole_method_docinfo_from_type(pTypeInfo, method_index, NULL, NULL,
- &helpcontext, NULL);
+ &helpcontext, NULL);
if (FAILED(hr))
return Qnil;
return INT2FIX(helpcontext);
}
-/*
+/*
* call-seq:
* WIN32OLE_METHOD#helpcontext
- *
+ *
* Returns help context.
* tobj = WIN32OLE_TYPE.new('Microsoft Excel 9.0 Object Library', 'Workbooks')
* method = WIN32OLE_METHOD.new(tobj, 'Add')
@@ -6991,7 +7039,7 @@ ole_method_dispid(ITypeInfo *pTypeInfo, UINT method_index)
hr = pTypeInfo->lpVtbl->GetFuncDesc(pTypeInfo, method_index, &pFuncDesc);
if (FAILED(hr))
return dispid;
- dispid = INT2NUM(pFuncDesc->memid);
+ dispid = INT2NUM(pFuncDesc->memid);
pTypeInfo->lpVtbl->ReleaseFuncDesc(pTypeInfo, pFuncDesc);
return dispid;
}
@@ -6999,7 +7047,7 @@ ole_method_dispid(ITypeInfo *pTypeInfo, UINT method_index)
/*
* call-seq:
* WIN32OLE_METHOD#dispid
- *
+ *
* Returns dispatch ID.
* tobj = WIN32OLE_TYPE.new('Microsoft Excel 9.0 Object Library', 'Workbooks')
* method = WIN32OLE_METHOD.new(tobj, 'Add')
@@ -7022,7 +7070,7 @@ ole_method_offset_vtbl(ITypeInfo *pTypeInfo, UINT method_index)
hr = pTypeInfo->lpVtbl->GetFuncDesc(pTypeInfo, method_index, &pFuncDesc);
if (FAILED(hr))
return offset_vtbl;
- offset_vtbl = INT2FIX(pFuncDesc->oVft);
+ offset_vtbl = INT2FIX(pFuncDesc->oVft);
pTypeInfo->lpVtbl->ReleaseFuncDesc(pTypeInfo, pFuncDesc);
return offset_vtbl;
}
@@ -7030,7 +7078,7 @@ ole_method_offset_vtbl(ITypeInfo *pTypeInfo, UINT method_index)
/*
* call-seq:
* WIN32OLE_METHOD#offset_vtbl
- *
+ *
* Returns the offset ov VTBL.
* tobj = WIN32OLE_TYPE.new('Microsoft Excel 9.0 Object Library', 'Workbooks')
* method = WIN32OLE_METHOD.new(tobj, 'Add')
@@ -7061,12 +7109,12 @@ ole_method_size_params(ITypeInfo *pTypeInfo, UINT method_index)
/*
* call-seq:
* WIN32OLE_METHOD#size_params
- *
+ *
* Returns the size of arguments of the method.
* tobj = WIN32OLE_TYPE.new('Microsoft Excel 9.0 Object Library', 'Workbook')
* method = WIN32OLE_METHOD.new(tobj, 'SaveAs')
* puts method.size_params # => 11
- *
+ *
*/
static VALUE
folemethod_size_params(VALUE self)
@@ -7093,7 +7141,7 @@ ole_method_size_opt_params(ITypeInfo *pTypeInfo, UINT method_index)
/*
* call-seq:
* WIN32OLE_METHOD#size_opt_params
- *
+ *
* Returns the size of optional parameters.
* tobj = WIN32OLE_TYPE.new('Microsoft Excel 9.0 Object Library', 'Workbook')
* method = WIN32OLE_METHOD.new(tobj, 'SaveAs')
@@ -7118,12 +7166,12 @@ ole_method_params(ITypeInfo *pTypeInfo, UINT method_index)
VALUE param;
VALUE params = rb_ary_new();
hr = pTypeInfo->lpVtbl->GetFuncDesc(pTypeInfo, method_index, &pFuncDesc);
- if (FAILED(hr))
+ if (FAILED(hr))
return params;
len = 0;
bstrs = ALLOCA_N(BSTR, pFuncDesc->cParams + 1);
- hr = pTypeInfo->lpVtbl->GetNames(pTypeInfo, pFuncDesc->memid,
+ hr = pTypeInfo->lpVtbl->GetNames(pTypeInfo, pFuncDesc->memid,
bstrs, pFuncDesc->cParams + 1,
&len);
if (FAILED(hr)) {
@@ -7151,13 +7199,13 @@ ole_method_params(ITypeInfo *pTypeInfo, UINT method_index)
/*
* call-seq:
* WIN32OLE_METHOD#params
- *
+ *
* returns array of WIN32OLE_PARAM object corresponding with method parameters.
* tobj = WIN32OLE_TYPE.new('Microsoft Excel 9.0 Object Library', 'Workbook')
* method = WIN32OLE_METHOD.new(tobj, 'SaveAs')
- * p method.params # => [Filename, FileFormat, Password, WriteResPassword,
- * ReadOnlyRecommended, CreateBackup, AccessMode,
- * ConflictResolution, AddToMru, TextCodepage,
+ * p method.params # => [Filename, FileFormat, Password, WriteResPassword,
+ * ReadOnlyRecommended, CreateBackup, AccessMode,
+ * ConflictResolution, AddToMru, TextCodepage,
* TextVisualLayout]
*/
static VALUE
@@ -7184,14 +7232,82 @@ folemethod_inspect(VALUE self)
/*
* Document-class: WIN32OLE_PARAM
*
- * <code>WIN32OLE_PARAM</code> objects represent param information of
+ * <code>WIN32OLE_PARAM</code> objects represent param information of
* the OLE method.
*/
+static VALUE foleparam_s_allocate(VALUE klass)
+{
+ struct oleparamdata *pparam;
+ VALUE obj;
+ obj = Data_Make_Struct(klass,
+ struct oleparamdata,
+ 0, oleparam_free, pparam);
+ pparam->pTypeInfo = NULL;
+ pparam->method_index = 0;
+ pparam->index = 0;
+ return obj;
+}
+
+static VALUE
+oleparam_ole_param_from_index(VALUE self, ITypeInfo *pTypeInfo, UINT method_index, int param_index)
+{
+ FUNCDESC *pFuncDesc;
+ HRESULT hr;
+ BSTR *bstrs;
+ UINT len;
+ struct oleparamdata *pparam;
+ hr = pTypeInfo->lpVtbl->GetFuncDesc(pTypeInfo, method_index, &pFuncDesc);
+ if (FAILED(hr))
+ ole_raise(hr, rb_eRuntimeError, "fail to ITypeInfo::GetFuncDesc");
+
+ len = 0;
+ bstrs = ALLOCA_N(BSTR, pFuncDesc->cParams + 1);
+ hr = pTypeInfo->lpVtbl->GetNames(pTypeInfo, pFuncDesc->memid,
+ bstrs, pFuncDesc->cParams + 1,
+ &len);
+ if (FAILED(hr)) {
+ pTypeInfo->lpVtbl->ReleaseFuncDesc(pTypeInfo, pFuncDesc);
+ ole_raise(hr, rb_eRuntimeError, "fail to ITypeInfo::GetNames");
+ }
+ SysFreeString(bstrs[0]);
+ if (param_index < 1 || len <= (UINT)param_index)
+ {
+ pTypeInfo->lpVtbl->ReleaseFuncDesc(pTypeInfo, pFuncDesc);
+ rb_raise(rb_eIndexError, "index of param must be in 1..%d", len);
+ }
+
+ Data_Get_Struct(self, struct oleparamdata, pparam);
+ pparam->pTypeInfo = pTypeInfo;
+ OLE_ADDREF(pTypeInfo);
+ pparam->method_index = method_index;
+ pparam->index = param_index - 1;
+ rb_ivar_set(self, rb_intern("name"), WC2VSTR(bstrs[param_index]));
+
+ pTypeInfo->lpVtbl->ReleaseFuncDesc(pTypeInfo, pFuncDesc);
+ return self;
+}
+
+static VALUE oleparam_ole_param(VALUE self, VALUE olemethod, int n)
+{
+ struct olemethoddata *pmethod;
+ Data_Get_Struct(olemethod, struct olemethoddata, pmethod);
+ return oleparam_ole_param_from_index(self, pmethod->pTypeInfo, pmethod->index, n);
+}
+
+static VALUE foleparam_initialize(VALUE self, VALUE olemethod, VALUE n)
+{
+ int idx;
+ if (!rb_obj_is_kind_of(olemethod, cWIN32OLE_METHOD)) {
+ rb_raise(rb_eTypeError, "1st parameter must be WIN32OLE_METHOD object");
+ }
+ idx = FIX2INT(n);
+ return oleparam_ole_param(self, olemethod, idx);
+}
/*
* call-seq:
* WIN32OLE_PARAM#name
- *
+ *
* Returns name.
* tobj = WIN32OLE_TYPE.new('Microsoft Excel 9.0 Object Library', 'Workbook')
* method = WIN32OLE_METHOD.new(tobj, 'SaveAs')
@@ -7213,7 +7329,7 @@ ole_param_ole_type(ITypeInfo *pTypeInfo, UINT method_index, UINT index)
hr = pTypeInfo->lpVtbl->GetFuncDesc(pTypeInfo, method_index, &pFuncDesc);
if (FAILED(hr))
return type;
- type = ole_typedesc2val(pTypeInfo,
+ type = ole_typedesc2val(pTypeInfo,
&(pFuncDesc->lprgelemdescParam[index].tdesc), Qnil);
pTypeInfo->lpVtbl->ReleaseFuncDesc(pTypeInfo, pFuncDesc);
return type;
@@ -7229,12 +7345,12 @@ ole_param_ole_type(ITypeInfo *pTypeInfo, UINT method_index, UINT index)
* param1 = method.params[0]
* puts param1.ole_type # => VARIANT
*/
-static VALUE
+static VALUE
foleparam_ole_type(VALUE self)
{
struct oleparamdata *pparam;
Data_Get_Struct(self, struct oleparamdata, pparam);
- return ole_param_ole_type(pparam->pTypeInfo, pparam->method_index,
+ return ole_param_ole_type(pparam->pTypeInfo, pparam->method_index,
pparam->index);
}
@@ -7247,7 +7363,7 @@ ole_param_ole_type_detail(ITypeInfo *pTypeInfo, UINT method_index, UINT index)
hr = pTypeInfo->lpVtbl->GetFuncDesc(pTypeInfo, method_index, &pFuncDesc);
if (FAILED(hr))
return typedetail;
- ole_typedesc2val(pTypeInfo,
+ ole_typedesc2val(pTypeInfo,
&(pFuncDesc->lprgelemdescParam[index].tdesc), typedetail);
pTypeInfo->lpVtbl->ReleaseFuncDesc(pTypeInfo, pFuncDesc);
return typedetail;
@@ -7263,12 +7379,12 @@ ole_param_ole_type_detail(ITypeInfo *pTypeInfo, UINT method_index, UINT index)
* param1 = method.params[0]
* p param1.ole_type_detail # => ["PTR", "USERDEFINED", "Range"]
*/
-static VALUE
+static VALUE
foleparam_ole_type_detail(VALUE self)
{
struct oleparamdata *pparam;
Data_Get_Struct(self, struct oleparamdata, pparam);
- return ole_param_ole_type_detail(pparam->pTypeInfo, pparam->method_index,
+ return ole_param_ole_type_detail(pparam->pTypeInfo, pparam->method_index,
pparam->index);
}
@@ -7279,9 +7395,9 @@ ole_param_flag_mask(ITypeInfo *pTypeInfo, UINT method_index, UINT index, USHORT
HRESULT hr;
VALUE ret = Qfalse;
hr = pTypeInfo->lpVtbl->GetFuncDesc(pTypeInfo, method_index, &pFuncDesc);
- if(FAILED(hr))
+ if(FAILED(hr))
return ret;
- if (V_UNION1((&(pFuncDesc->lprgelemdescParam[index])), paramdesc).wParamFlags &mask)
+ if (V_UNION1((&(pFuncDesc->lprgelemdescParam[index])), paramdesc).wParamFlags &mask)
ret = Qtrue;
pTypeInfo->lpVtbl->ReleaseFuncDesc(pTypeInfo, pFuncDesc);
return ret;
@@ -7290,7 +7406,7 @@ ole_param_flag_mask(ITypeInfo *pTypeInfo, UINT method_index, UINT index, USHORT
/*
* call-seq:
* WIN32OLE_PARAM#input?
- *
+ *
* Returns true if the parameter is input.
* tobj = WIN32OLE_TYPE.new('Microsoft Excel 9.0 Object Library', 'Workbook')
* method = WIN32OLE_METHOD.new(tobj, 'SaveAs')
@@ -7301,14 +7417,14 @@ static VALUE foleparam_input(VALUE self)
{
struct oleparamdata *pparam;
Data_Get_Struct(self, struct oleparamdata, pparam);
- return ole_param_flag_mask(pparam->pTypeInfo, pparam->method_index,
+ return ole_param_flag_mask(pparam->pTypeInfo, pparam->method_index,
pparam->index, PARAMFLAG_FIN);
}
/*
* call-seq:
* WIN32OLE#output?
- *
+ *
* Returns true if argument is output.
* tobj = WIN32OLE_TYPE.new('Microsoft Internet Controls', 'DWebBrowserEvents')
* method = WIN32OLE_METHOD.new(tobj, 'NewWindow')
@@ -7328,14 +7444,14 @@ static VALUE foleparam_output(VALUE self)
{
struct oleparamdata *pparam;
Data_Get_Struct(self, struct oleparamdata, pparam);
- return ole_param_flag_mask(pparam->pTypeInfo, pparam->method_index,
+ return ole_param_flag_mask(pparam->pTypeInfo, pparam->method_index,
pparam->index, PARAMFLAG_FOUT);
}
/*
* call-seq:
* WIN32OLE_PARAM#optional?
- *
+ *
* Returns true if argument is optional.
* tobj = WIN32OLE_TYPE.new('Microsoft Excel 9.0 Object Library', 'Workbook')
* method = WIN32OLE_METHOD.new(tobj, 'SaveAs')
@@ -7346,7 +7462,7 @@ static VALUE foleparam_optional(VALUE self)
{
struct oleparamdata *pparam;
Data_Get_Struct(self, struct oleparamdata, pparam);
- return ole_param_flag_mask(pparam->pTypeInfo, pparam->method_index,
+ return ole_param_flag_mask(pparam->pTypeInfo, pparam->method_index,
pparam->index, PARAMFLAG_FOPT);
}
@@ -7355,7 +7471,7 @@ static VALUE foleparam_optional(VALUE self)
* WIN32OLE_PARAM#retval?
*
* Returns true if argument is return value.
- * tobj = WIN32OLE_TYPE.new('DirectX 7 for Visual Basic Type Library',
+ * tobj = WIN32OLE_TYPE.new('DirectX 7 for Visual Basic Type Library',
* 'DirectPlayLobbyConnection')
* method = WIN32OLE_METHOD.new(tobj, 'GetPlayerShortName')
* param = method.params[0]
@@ -7365,7 +7481,7 @@ static VALUE foleparam_retval(VALUE self)
{
struct oleparamdata *pparam;
Data_Get_Struct(self, struct oleparamdata, pparam);
- return ole_param_flag_mask(pparam->pTypeInfo, pparam->method_index,
+ return ole_param_flag_mask(pparam->pTypeInfo, pparam->method_index,
pparam->index, PARAMFLAG_FRETVAL);
}
@@ -7382,7 +7498,7 @@ ole_param_default(ITypeInfo *pTypeInfo, UINT method_index, UINT index)
hr = pTypeInfo->lpVtbl->GetFuncDesc(pTypeInfo, method_index, &pFuncDesc);
if (FAILED(hr))
return defval;
- pElemDesc = &pFuncDesc->lprgelemdescParam[index];
+ pElemDesc = &pFuncDesc->lprgelemdescParam[index];
wParamFlags = V_UNION1(pElemDesc, paramdesc).wParamFlags;
if ((wParamFlags & mask) == mask) {
pParamDescEx = V_UNION1(pElemDesc, paramdesc).pparamdescex;
@@ -7395,8 +7511,8 @@ ole_param_default(ITypeInfo *pTypeInfo, UINT method_index, UINT index)
/*
* call-seq:
* WIN32OLE_PARAM#default
- *
- * Returns default value. If the default value does not exist,
+ *
+ * Returns default value. If the default value does not exist,
* this method returns nil.
* tobj = WIN32OLE_TYPE.new('Microsoft Excel 9.0 Object Library', 'Workbook')
* method = WIN32OLE_METHOD.new(tobj, 'SaveAs')
@@ -7448,7 +7564,7 @@ foleparam_inspect(VALUE self)
}
return make_inspect("WIN32OLE_PARAM", detail);
}
-
+
/*
* Document-class: WIN32OLE_EVENT
*
@@ -7539,7 +7655,7 @@ ole_search_event_at(VALUE ary, VALUE ev)
VALUE event;
VALUE def_event;
VALUE event_name;
- long i, len;
+ long i, len;
long ret = -1;
def_event = Qnil;
len = RARRAY_LEN(ary);
@@ -7612,7 +7728,7 @@ ole_delete_event(VALUE ary, VALUE ev)
}
}
-static void
+static void
hash2ptr_dispparams(VALUE hash, ITypeInfo *pTypeInfo, DISPID dispid, DISPPARAMS *pdispparams)
{
BSTR *bstrs;
@@ -7623,7 +7739,7 @@ hash2ptr_dispparams(VALUE hash, ITypeInfo *pTypeInfo, DISPID dispid, DISPPARAMS
VALUE key;
len = 0;
bstrs = ALLOCA_N(BSTR, pdispparams->cArgs + 1);
- hr = pTypeInfo->lpVtbl->GetNames(pTypeInfo, dispid,
+ hr = pTypeInfo->lpVtbl->GetNames(pTypeInfo, dispid,
bstrs, pdispparams->cArgs + 1,
&len);
if (FAILED(hr))
@@ -7632,7 +7748,7 @@ hash2ptr_dispparams(VALUE hash, ITypeInfo *pTypeInfo, DISPID dispid, DISPPARAMS
for (i = 0; i < len - 1; i++) {
key = WC2VSTR(bstrs[i + 1]);
val = rb_hash_aref(hash, INT2FIX(i));
- if (val == Qnil)
+ if (val == Qnil)
val = rb_hash_aref(hash, key);
if (val == Qnil)
val = rb_hash_aref(hash, rb_str_intern(key));
@@ -7641,7 +7757,7 @@ hash2ptr_dispparams(VALUE hash, ITypeInfo *pTypeInfo, DISPID dispid, DISPPARAMS
}
}
-static VALUE
+static VALUE
hash2result(VALUE hash)
{
VALUE ret = Qnil;
@@ -7677,7 +7793,7 @@ exec_callback(VALUE arg)
static VALUE
rescue_callback(VALUE arg)
{
-
+
VALUE error;
VALUE e = rb_errinfo();
VALUE bt = rb_funcall(e, rb_intern("backtrace"), 0);
@@ -7688,7 +7804,7 @@ rescue_callback(VALUE arg)
rb_backtrace();
ruby_finalize();
exit(-1);
-
+
return Qnil;
}
@@ -7769,7 +7885,7 @@ STDMETHODIMP EVENTSINK_Invoke(
/*
* if exception raised in event callback,
- * then you receive cfp consistency error.
+ * then you receive cfp consistency error.
* to avoid this error we use begin rescue end.
* and the exception raised then error message print
* and exit ruby process by Win32OLE itself.
@@ -7789,9 +7905,10 @@ STDMETHODIMP EVENTSINK_Invoke(
}
if (pvarResult) {
+ VariantInit(pvarResult);
ole_val2variant(result, pvarResult);
}
-
+
return NOERROR;
}
@@ -7939,11 +8056,11 @@ find_iid(VALUE ole, char *pitf, IID *piid, ITypeInfo **ppTypeInfo)
return hr;
}
-static HRESULT
+static HRESULT
find_coclass(
- ITypeInfo *pTypeInfo,
- TYPEATTR *pTypeAttr,
- ITypeInfo **pCOTypeInfo,
+ ITypeInfo *pTypeInfo,
+ TYPEATTR *pTypeAttr,
+ ITypeInfo **pCOTypeInfo,
TYPEATTR **pCOTypeAttr)
{
HRESULT hr = E_NOINTERFACE;
@@ -7981,13 +8098,13 @@ find_coclass(
hr = pTypeInfo2->lpVtbl->GetImplTypeFlags(pTypeInfo2, j, &flags);
if (FAILED(hr))
continue;
- if (!(flags & IMPLTYPEFLAG_FDEFAULT))
+ if (!(flags & IMPLTYPEFLAG_FDEFAULT))
continue;
hr = pTypeInfo2->lpVtbl->GetRefTypeOfImplType(pTypeInfo2, j, &href);
if (FAILED(hr))
continue;
hr = pTypeInfo2->lpVtbl->GetRefTypeInfo(pTypeInfo2, href, &pRefTypeInfo);
- if (FAILED(hr))
+ if (FAILED(hr))
continue;
hr = OLE_GET_TYPEATTR(pRefTypeInfo, &pRefTypeAttr);
if (FAILED(hr)) {
@@ -8016,8 +8133,8 @@ find_coclass(
static HRESULT
find_default_source_from_typeinfo(
- ITypeInfo *pTypeInfo,
- TYPEATTR *pTypeAttr,
+ ITypeInfo *pTypeInfo,
+ TYPEATTR *pTypeAttr,
ITypeInfo **ppTypeInfo)
{
int i = 0;
@@ -8189,7 +8306,7 @@ ev_advise(int argc, VALUE *argv, VALUE self)
rb_raise(rb_eSecurityError, "Insecure Event Creation - %s",
StringValuePtr(itf));
}
- Check_SafeStr(itf);
+ SafeStringValue(itf);
pitf = StringValuePtr(itf);
hr = find_iid(ole, pitf, &iid, &pTypeInfo);
}
@@ -8249,7 +8366,7 @@ ev_advise(int argc, VALUE *argv, VALUE self)
* The second argument specifies OLE event name.
* ie = WIN32OLE.new('InternetExplorer.Application')
* ev = WIN32OLE_EVENT.new(ie, 'DWebBrowserEvents')
- */
+ */
static VALUE
fev_initialize(int argc, VALUE *argv, VALUE self)
{
@@ -8263,7 +8380,7 @@ fev_initialize(int argc, VALUE *argv, VALUE self)
/*
* call-seq:
* WIN32OLE_EVENT.message_loop
- *
+ *
* Translates and dispatches Windows message.
*/
static VALUE
@@ -8312,7 +8429,7 @@ ev_on_event(int argc, VALUE *argv, VALUE self, VALUE is_ary_arg)
/*
* call-seq:
* WIN32OLE_EVENT#on_event([event]){...}
- *
+ *
* Defines the callback event.
* If argument is omitted, this method defines the callback of all events.
* If you want to modify reference argument in callback, return hash in
@@ -8322,14 +8439,14 @@ ev_on_event(int argc, VALUE *argv, VALUE self, VALUE is_ary_arg)
* ie = WIN32OLE.new('InternetExplorer.Application')
* ev = WIN32OLE_EVENT.new(ie)
* ev.on_event("NavigateComplete") {|url| puts url}
- * ev.on_event() {|ev, *args| puts "#{ev} fired"}
+ * ev.on_event() {|ev, *args| puts "#{ev} fired"}
*
- * ev.on_event("BeforeNavigate2") {|*args|
+ * ev.on_event("BeforeNavigate2") {|*args|
* ...
* # set true to BeforeNavigate reference argument `Cancel'.
* # Cancel is 7-th argument of BeforeNavigate,
* # so you can use 6 as key of hash instead of 'Cancel'.
- * # The argument is counted from 0.
+ * # The argument is counted from 0.
* # The hash key of 0 means first argument.)
* {:Cancel => true} # or {'Cancel' => true} or {6 => true}
* }
@@ -8347,9 +8464,9 @@ fev_on_event(int argc, VALUE *argv, VALUE self)
/*
* call-seq:
* WIN32OLE_EVENT#on_event_with_outargs([event]){...}
- *
+ *
* Defines the callback of event.
- * If you want modify argument in callback,
+ * If you want modify argument in callback,
* you could use this method instead of WIN32OLE_EVENT#on_event.
*
* ie = WIN32OLE.new('InternetExplorer.Application')
@@ -8367,7 +8484,7 @@ fev_on_event_with_outargs(int argc, VALUE *argv, VALUE self)
/*
* call-seq:
* WIN32OLE_EVENT#off_event([event])
- *
+ *
* removes the callback of event.
*
* ie = WIN32OLE.new('InternetExplorer.Application')
@@ -8418,7 +8535,7 @@ fev_off_event(int argc, VALUE *argv, VALUE self)
* ev.unadvise
*
*/
-static VALUE
+static VALUE
fev_unadvise(VALUE self)
{
struct oleeventdata *poleev;
@@ -8433,7 +8550,7 @@ fev_unadvise(VALUE self)
return Qnil;
}
-static VALUE
+static VALUE
evs_push(VALUE ev)
{
return rb_ary_push(ary_ole_event, ev);
@@ -8446,13 +8563,13 @@ evs_delete(long i)
return Qnil;
}
-static VALUE
+static VALUE
evs_entry(long i)
{
return rb_ary_entry(ary_ole_event, i);
}
-static VALUE
+static VALUE
evs_length()
{
return rb_funcall(ary_ole_event, rb_intern("length"), 0);
@@ -8463,9 +8580,9 @@ evs_length()
* WIN32OLE_EVENT#handler=
*
* sets event handler object. If handler object has onXXX
- * method according to XXX event, then onXXX method is called
+ * method according to XXX event, then onXXX method is called
* when XXX event occurs.
- *
+ *
* If handler object has method_missing and there is no
* method according to the event, then method_missing
* called and 1-st argument is event name.
@@ -8486,7 +8603,7 @@ evs_length()
* puts "other event #{ev}"
* end
* end
- *
+ *
* handler = Handler.new
* ie = WIN32OLE.new('InternetExplorer.Application')
* ev = WIN32OLE_EVENT.new(ie)
@@ -8507,8 +8624,8 @@ fev_set_handler(VALUE self, VALUE val)
* call-seq:
* WIN32OLE_EVENT#handler
*
- * returns handler object.
- *
+ * returns handler object.
+ *
*/
static VALUE
fev_get_handler(VALUE self)
@@ -8516,7 +8633,7 @@ fev_get_handler(VALUE self)
return rb_ivar_get(self, rb_intern("handler"));
}
-static void
+static void
olevariant_free(struct olevariantdata *pvar)
{
VariantClear(&(pvar->realvar));
@@ -8541,8 +8658,8 @@ folevariant_s_allocate(VALUE klass)
* WIN32OLE_VARIANT.array(ary, vt)
*
* Returns Ruby object wrapping OLE variant whose variant type is VT_ARRAY.
- * The first argument should be Array object which specifies dimensions
- * and each size of dimensions of OLE array.
+ * The first argument should be Array object which specifies dimensions
+ * and each size of dimensions of OLE array.
* The second argument specifies variant type of the element of OLE array.
*
* The following create 2 dimensions OLE array. The first dimensions size
@@ -8551,7 +8668,7 @@ folevariant_s_allocate(VALUE klass)
* ole_ary = WIN32OLE_VARIANT.array([3,4], VT_I4)
* ruby_ary = ole_ary.value # => [[0, 0, 0, 0], [0, 0, 0, 0], [0, 0, 0, 0]]
*
- */
+ */
static VALUE
folevariant_s_array(VALUE klass, VALUE elems, VALUE vvt)
{
@@ -8608,7 +8725,7 @@ folevariant_s_array(VALUE klass, VALUE elems, VALUE vvt)
*
* Returns Ruby object wrapping OLE variant.
* The first argument specifies Ruby object to convert OLE variant variable.
- * The second argument specifies VARIANT type.
+ * The second argument specifies VARIANT type.
* In some situation, you need the WIN32OLE_VARIANT object to pass OLE method
*
* shell = WIN32OLE.new("Shell.Application")
@@ -8619,7 +8736,7 @@ folevariant_s_array(VALUE klass, VALUE elems, VALUE vvt)
* shortcut = WIN32OLE_VARIANT.new("Create Shortcut(\&S)")
* item.invokeVerb(shortcut)
*
- */
+ */
static VALUE
folevariant_initialize(VALUE self, VALUE args)
{
@@ -8637,7 +8754,7 @@ folevariant_initialize(VALUE self, VALUE args)
VariantInit(&var);
val = rb_ary_entry(args, 0);
- if(!rb_obj_is_kind_of(val, cWIN32OLE) &&
+ if(!rb_obj_is_kind_of(val, cWIN32OLE) &&
!rb_obj_is_kind_of(val, cWIN32OLE_VARIANT) &&
!rb_obj_is_kind_of(val, rb_cTime)) {
switch (TYPE(val)) {
@@ -8668,7 +8785,7 @@ folevariant_initialize(VALUE self, VALUE args)
return self;
}
-static SAFEARRAY *
+static SAFEARRAY *
get_locked_safe_array(VALUE val)
{
struct olevariantdata *pvar;
@@ -8710,7 +8827,7 @@ ary2safe_array_index(int ary_size, VALUE *ary, SAFEARRAY *psa)
}
static void
-unlock_safe_array(SAFEARRAY *psa)
+unlock_safe_array(SAFEARRAY *psa)
{
HRESULT hr;
hr = SafeArrayUnlock(psa);
@@ -8724,11 +8841,11 @@ unlock_safe_array(SAFEARRAY *psa)
* WIN32OLE_VARIANT[i,j,...] #=> element of OLE array.
*
* Returns the element of WIN32OLE_VARIANT object(OLE array).
- * This method is available only when the variant type of
+ * This method is available only when the variant type of
* WIN32OLE_VARIANT object is VT_ARRAY.
*
- * REMARK:
- * The all indicies should be 0 or natural number and
+ * REMARK:
+ * The all indicies should be 0 or natural number and
* lower than or equal to max indicies.
* (This point is different with Ruby Array indicies.)
*
@@ -8738,7 +8855,7 @@ unlock_safe_array(SAFEARRAY *psa)
* p obj[2,0] # => WIN32OLERuntimeError
* p obj[0, -1] # => WIN32OLERuntimeError
*
- */
+ */
static VALUE
folevariant_ary_aref(int argc, VALUE *argv, VALUE self)
{
@@ -8751,7 +8868,7 @@ folevariant_ary_aref(int argc, VALUE *argv, VALUE self)
Data_Get_Struct(self, struct olevariantdata, pvar);
if (!V_ISARRAY(&(pvar->var))) {
- rb_raise(eWIN32OLERuntimeError,
+ rb_raise(eWIN32OLERuntimeError,
"`[]' is not available for this variant type object");
}
psa = get_locked_safe_array(self);
@@ -8784,7 +8901,7 @@ val2variant_ptr(VALUE val, VARIANT *var, VARTYPE vt)
p = var;
} else {
if ( (vt & ~VT_BYREF) != V_VT(var)) {
- hr = VariantChangeTypeEx(var, var,
+ hr = VariantChangeTypeEx(var, var,
cWIN32OLE_lcid, 0, (VARTYPE)(vt & ~VT_BYREF));
if (FAILED(hr)) {
ole_raise(hr, rb_eRuntimeError, "failed to change type");
@@ -8803,10 +8920,10 @@ val2variant_ptr(VALUE val, VARIANT *var, VARTYPE vt)
* WIN32OLE_VARIANT[i,j,...] = val #=> set the element of OLE array
*
* Set the element of WIN32OLE_VARIANT object(OLE array) to val.
- * This method is available only when the variant type of
+ * This method is available only when the variant type of
* WIN32OLE_VARIANT object is VT_ARRAY.
*
- * REMARK:
+ * REMARK:
* The all indicies should be 0 or natural number and
* lower than or equal to max indicies.
* (This point is different with Ruby Array indicies.)
@@ -8818,7 +8935,7 @@ val2variant_ptr(VALUE val, VARIANT *var, VARTYPE vt)
* obj[2,0] = 9 # => WIN32OLERuntimeError
* obj[0, -1] = 9 # => WIN32OLERuntimeError
*
- */
+ */
static VALUE
folevariant_ary_aset(int argc, VALUE *argv, VALUE self)
{
@@ -8832,7 +8949,7 @@ folevariant_ary_aset(int argc, VALUE *argv, VALUE self)
Data_Get_Struct(self, struct olevariantdata, pvar);
if (!V_ISARRAY(&(pvar->var))) {
- rb_raise(eWIN32OLERuntimeError,
+ rb_raise(eWIN32OLERuntimeError,
"`[]' is not available for this variant type object");
}
psa = get_locked_safe_array(self);
@@ -8867,7 +8984,7 @@ folevariant_ary_aset(int argc, VALUE *argv, VALUE self)
* obj = WIN32OLE_VARIANT.new(1, WIN32OLE::VARIANT::VT_BSTR)
* obj.value # => "1" (not Fixnum object, but String object "1")
*
- */
+ */
static VALUE
folevariant_value(VALUE self)
{
@@ -8904,9 +9021,9 @@ folevariant_value(VALUE self)
*
* Returns OLE variant type.
* obj = WIN32OLE_VARIANT.new("string")
- * obj.vartype # => WIN32OLE::VARIANT::VT_BSTR
+ * obj.vartype # => WIN32OLE::VARIANT::VT_BSTR
*
- */
+ */
static VALUE
folevariant_vartype(VALUE self)
{
@@ -8919,16 +9036,16 @@ folevariant_vartype(VALUE self)
* call-seq:
* WIN32OLE_VARIANT.value = val #=> set WIN32OLE_VARIANT value to val.
*
- * Sets variant value to val. If the val type does not match variant value
- * type(vartype), then val is changed to match variant value type(vartype)
+ * Sets variant value to val. If the val type does not match variant value
+ * type(vartype), then val is changed to match variant value type(vartype)
* before setting val.
* Thie method is not available when vartype is VT_ARRAY(except VT_UI1|VT_ARRAY).
* If the vartype is VT_UI1|VT_ARRAY, the val should be String object.
*
* obj = WIN32OLE_VARIANT.new(1) # obj.vartype is WIN32OLE::VARIANT::VT_I4
* obj.value = 3.2 # 3.2 is changed to 3 when setting value.
- * p obj.value # => 3
- */
+ * p obj.value # => 3
+ */
static VALUE
folevariant_set_value(VALUE self, VALUE val)
{
@@ -8937,14 +9054,14 @@ folevariant_set_value(VALUE self, VALUE val)
Data_Get_Struct(self, struct olevariantdata, pvar);
vt = V_VT(&(pvar->var));
if (V_ISARRAY(&(pvar->var)) && ((vt & ~VT_BYREF) != (VT_UI1|VT_ARRAY) || TYPE(val) != T_STRING)) {
- rb_raise(eWIN32OLERuntimeError,
+ rb_raise(eWIN32OLERuntimeError,
"`value=' is not available for this variant type object");
}
ole_val2olevariantdata(val, vt, pvar);
return Qnil;
}
-static void
+static void
init_enc2cp()
{
enc2cp_table = st_init_numtable();
@@ -8977,7 +9094,7 @@ Init_win32ole()
message_filter.HandleInComingCall = mf_HandleInComingCall;
message_filter.RetryRejectedCall = mf_RetryRejectedCall;
message_filter.MessagePending = mf_MessagePending;
-
+
com_hash = Data_Wrap_Struct(rb_cData, rb_mark_hash, st_free_table, st_init_numtable());
rb_gc_register_mark_object(com_hash);
@@ -8998,6 +9115,8 @@ Init_win32ole()
rb_define_singleton_method(cWIN32OLE, "locale", fole_s_get_locale, 0);
rb_define_singleton_method(cWIN32OLE, "locale=", fole_s_set_locale, 1);
rb_define_singleton_method(cWIN32OLE, "create_guid", fole_s_create_guid, 0);
+ rb_define_singleton_method(cWIN32OLE, "ole_initialize", fole_s_ole_initialize, 0);
+ rb_define_singleton_method(cWIN32OLE, "ole_uninitialize", fole_s_ole_uninitialize, 0);
rb_define_method(cWIN32OLE, "invoke", fole_invoke, -1);
rb_define_method(cWIN32OLE, "[]", fole_getproperty_with_bracket, -1);
@@ -9006,7 +9125,7 @@ Init_win32ole()
rb_define_method(cWIN32OLE, "_setproperty", fole_setproperty2, 3);
/* support propput method that takes an argument */
- rb_define_method(cWIN32OLE, "[]=", fole_setproperty_with_bracket, -1);
+ rb_define_method(cWIN32OLE, "[]=", fole_setproperty_with_bracket, -1);
rb_define_method(cWIN32OLE, "ole_free", fole_free, 0);
@@ -9076,6 +9195,7 @@ Init_win32ole()
cWIN32OLE_TYPELIB = rb_define_class("WIN32OLE_TYPELIB", rb_cObject);
rb_define_singleton_method(cWIN32OLE_TYPELIB, "typelibs", foletypelib_s_typelibs, 0);
+ rb_define_alloc_func(cWIN32OLE_TYPELIB, foletypelib_s_allocate);
rb_define_method(cWIN32OLE_TYPELIB, "initialize", foletypelib_initialize, -2);
rb_define_method(cWIN32OLE_TYPELIB, "guid", foletypelib_guid, 0);
rb_define_method(cWIN32OLE_TYPELIB, "name", foletypelib_name, 0);
@@ -9089,7 +9209,7 @@ Init_win32ole()
rb_define_method(cWIN32OLE_TYPELIB, "library_name", foletypelib_library_name, 0);
rb_define_alias(cWIN32OLE_TYPELIB, "to_s", "name");
rb_define_method(cWIN32OLE_TYPELIB, "inspect", foletypelib_inspect, 0);
-
+
cWIN32OLE_TYPE = rb_define_class("WIN32OLE_TYPE", rb_cObject);
rb_define_singleton_method(cWIN32OLE_TYPE, "ole_classes", foletype_s_ole_classes, 1);
rb_define_singleton_method(cWIN32OLE_TYPE, "typelibs", foletype_s_typelibs, 0);
@@ -9153,6 +9273,8 @@ Init_win32ole()
rb_define_method(cWIN32OLE_METHOD, "inspect", folemethod_inspect, 0);
cWIN32OLE_PARAM = rb_define_class("WIN32OLE_PARAM", rb_cObject);
+ rb_define_alloc_func(cWIN32OLE_PARAM, foleparam_s_allocate);
+ rb_define_method(cWIN32OLE_PARAM, "initialize", foleparam_initialize, 2);
rb_define_method(cWIN32OLE_PARAM, "name", foleparam_name, 0);
rb_define_method(cWIN32OLE_PARAM, "ole_type", foleparam_ole_type, 0);
rb_define_method(cWIN32OLE_PARAM, "ole_type_detail", foleparam_ole_type_detail, 0);
@@ -9163,7 +9285,7 @@ Init_win32ole()
rb_define_method(cWIN32OLE_PARAM, "default", foleparam_default, 0);
rb_define_alias(cWIN32OLE_PARAM, "to_s", "name");
rb_define_method(cWIN32OLE_PARAM, "inspect", foleparam_inspect, 0);
-
+
cWIN32OLE_EVENT = rb_define_class("WIN32OLE_EVENT", rb_cObject);
rb_define_singleton_method(cWIN32OLE_EVENT, "message_loop", fev_s_msg_loop, 0);
rb_define_alloc_func(cWIN32OLE_EVENT, fev_s_allocate);
diff --git a/ext/zlib/.cvsignore b/ext/zlib/.cvsignore
deleted file mode 100644
index 814345ece8..0000000000
--- a/ext/zlib/.cvsignore
+++ /dev/null
@@ -1,4 +0,0 @@
-Makefile
-mkmf.log
-*.def
-extconf.h
diff --git a/ext/zlib/doc/zlib.rd b/ext/zlib/doc/zlib.rd
deleted file mode 100644
index 0a5e2d0abf..0000000000
--- a/ext/zlib/doc/zlib.rd
+++ /dev/null
@@ -1,917 +0,0 @@
-=begin
-#
-# zlib.rd.src
-#
-# Copyright (C) UENO Katsuhiro 2000-2003
-#
-# $Id$
-#
-
-= Ruby/zlib version 0.6.0
-
-Ruby/zlib is an extension library to use zlib from Ruby.
-Ruby/zlib also provides the features for accessing gzipped files.
-
-You can modify or redistribute Ruby/zlib in the same manner of
-Ruby interpreter. The latest version of Ruby/zlib would be found
-at ((<URL:http://www.blue.sky.or.jp/>)).
-
-Any comments and suggestions are always welcome. Please send
-them to ruby-list ML, ruby-ext ML, ruby-talk ML, or the author's
-mail address ((<URL:mailto:katsu@blue.sky.or.jp>)).
-
-This document is experimental and broken English version.
-If you find some mistakes or strange expressions (including
-kidding or unnatural ones) in this document, please let me know
-for my study.
-
-* ((<Zlib>))
-
- * ((<Zlib::Error>))
- * ((<Zlib::ZStream>))
- * ((<Zlib::Deflate>))
- * ((<Zlib::Inflate>))
- * ((<Zlib::GzipFile>))
- * ((<Zlib::GzipFile::Error>))
- * ((<Zlib::GzipWriter>))
- * ((<Zlib::GzipReader>))
-
-* ((<Changes from 0.5 to 0.6>))
-* ((<Changes from 0.4 to 0.5>))
-
-== Zlib
-
-Zlib is the module which provides the other features in zlib C
-library. See zlib.h for detail of each module function.
-
-=== Module Functions:
-
---- Zlib.zlib_version
-
- Returns the string which represents the version of zlib
- library.
-
---- Zlib.adler32([string[, adler]])
-
- Calculates Alder-32 checksum for ((|string|)),
- and returns updated value of ((|alder|)).
- If ((|string|)) is omitted, it returns the Adler-32 initial
- value. If ((|alder|)) is omitted, it assumes that the initial
- value is given to ((|alder|)).
-
---- Zlib.crc32([string[, crc]])
-
- Calculates CRC checksum for ((|string|)), and returns
- updated value of ((|crc|)). If ((|string|)) is omitted,
- it returns the CRC initial value. ((|crc|)) is omitted,
- it assumes that the initial value is given to ((|crc|)).
-
---- Zlib.crc_table
-
- Returns the table for calculating CRC checksum as an array.
-
-=== Constants:
-
---- Zlib::VERSION
-
- The Ruby/zlib version string.
-
---- Zlib::ZLIB_VERSION
-
- The string which represents the version of zlib.h.
-
---- Zlib::BINARY
---- Zlib::ASCII
---- Zlib::UNKNOWN
-
- The integers representing data types which
- ((<Zlib::ZStream#data_type>)) method returns.
-
---- Zlib::NO_COMPRESSION
---- Zlib::BEST_SPEED
---- Zlib::BEST_COMPRESSION
---- Zlib::DEFAULT_COMPRESSION
-
- The integers representing compression levels which are
- an argument for ((<Zlib::Deflate.new>)),
- ((<Zlib::Deflate#deflate>)), and so on.
-
---- Zlib::FILTERED
---- Zlib::HUFFMAN_ONLY
---- Zlib::DEFAULT_STRATEGY
-
- The integers representing compression methods which are
- an argument for ((<Zlib::Deflate.new>)) and
- ((<Zlib::Deflate#params>)).
-
---- Zlib::DEF_MEM_LEVEL
---- Zlib::MAX_MEM_LEVEL
-
- The integers representing memory levels which are an
- argument for ((<Zlib::Deflate.new>)),
- ((<Zlib::Deflate#params>)), and so on.
-
---- Zlib::MAX_WBITS
-
- The default value of ((|windowBits|)) which is an argument for
- ((<Zlib::Deflate.new>)) and ((<Zlib::Inflate.new>)).
-
---- Zlib::NO_FLUSH
---- Zlib::SYNC_FLUSH
---- Zlib::FULL_FLUSH
---- Zlib::FINISH
-
- The integers to control the output of the deflate stream,
- which are an argument for ((<Zlib::Deflate#deflate>)) and so on.
-
---- Zlib::OS_CODE
---- Zlib::OS_MSDOS
---- Zlib::OS_AMIGA
---- Zlib::OS_VMS
---- Zlib::OS_UNIX
---- Zlib::OS_VMCMS
---- Zlib::OS_ATARI
---- Zlib::OS_OS2
---- Zlib::OS_MACOS
---- Zlib::OS_ZSYSTEM
---- Zlib::OS_CPM
---- Zlib::OS_TOPS20
---- Zlib::OS_WIN32
---- Zlib::OS_QDOS
---- Zlib::OS_RISCOS
---- Zlib::OS_UNKNOWN
-
- The return values of ((<Zlib::GzipFile#os_code>)) method.
-
-
-== Zlib::Error
-
-The superclass for all exceptions raised by Ruby/zlib.
-
-The following exceptions are defined as subclasses of Zlib::Error.
-These exceptions are raised when zlib library functions return
-with an error status.
-
- * Zlib::StreamEnd
- * Zlib::NeedDict
- * Zlib::DataError
- * Zlib::StreamError
- * Zlib::MemError
- * Zlib::BufError
- * Zlib::VersionError
-
-=== SuperClass:
-
-* StandardError
-
-
-== Zlib::ZStream
-
-The abstract class for the stream which handles the compressed
-data. The operations are defined in the subclasses,
-((<Zlib::Deflate>)) for compression, and ((<Zlib::Inflate>))
-for decompression.
-
-An instance of Zlib::ZStream has one stream (struct zstream) and
-two variable-length buffers which associated to the input
-(next_in) of the stream and the output (next_out) of the stream.
-In this document, "input buffer" means the buffer for input, and
-"output buffer" means the buffer for output.
-
-Data inputed into an instance of Zlib::ZStream are temporally
-stored into the end of input buffer, and then data in input buffer
-are processed from the beginning of the buffer until no more
-output from the stream is produced (i.e. until avail_out > 0
-after processing). During processing, output buffer is allocated
-and expanded automatically to hold all output data.
-
-Some particular instance methods consume the data in output buffer
-and return them as a String.
-
-Here is an ascii art for describing above:
-
- +================ an instance of Zlib::ZStream ================+
- || ||
- || +--------+ +-------+ +--------+ ||
- || +--| output |<---------|zstream|<---------| input |<--+ ||
- || | | buffer | next_out+-------+next_in | buffer | | ||
- || | +--------+ +--------+ | ||
- || | | ||
- +===|======================================================|===+
- | |
- v |
- "output data" "input data"
-
-If an error is occurred during processing input buffer,
-an exception which is a subclass of ((<Zlib::Error>)) is raised.
-At that time, both input and output buffer keeps their conditions
-at the time when the error is occurred.
-
-=== SuperClass:
-
-* Object
-
-=== Class Methods:
-
---- Zlib::ZStream.new
-
- See ((<Zlib::Deflate.new>)) and ((<Zlib::Inflate.new>)).
-
-=== Methods:
-
---- Zlib::ZStream#avail_in
-
- Returns bytes of data in input buffer.
- Normally, returns 0.
-
---- Zlib::ZStream#avail_out
-
- Returns bytes of free spaces in output buffer.
- Because the free spaces are allocated automatically,
- this method returns 0 normally.
-
---- Zlib::ZStream#avail_out = size
-
- Allocates free spaces of ((|size|)) bytes in output buffer.
- If there are more than ((|size|)) bytes spaces in the buffer,
- the buffer is truncated.
- Because the free spaces are allocated automatically,
- you usually need not to use this method.
-
---- Zlib::ZStream#flush_next_in
-
- Flushes input buffer and returns all data in that buffer.
-
---- Zlib::ZStream#flush_next_out
-
- Flushes output buffer and returns all data in that buffer.
-
---- Zlib::ZStream#total_in
-
- Returns the total bytes of the input data to the stream.
-
---- Zlib::ZStream#total_out
-
- Returns the total bytes of the output data from the stream.
-
---- Zlib::ZStream#data_type
-
- Guesses the type of the data which have been inputed into
- the stream. The returned value is either ((<Zlib::BINARY>)),
- ((<Zlib::ASCII>)), or ((<Zlib::UNKNOWN>)).
-
---- Zlib::ZStream#adler
-
- Returns the alder-32 checksum.
-
---- Zlib::ZStream#reset
-
- Resets and initializes the stream. All data in both
- input and output buffer are discarded.
-
---- Zlib::ZStream#finish
-
- Finishes the stream and flushes output buffer.
- See ((<Zlib::Deflate#finish>)) and ((<Zlib::Inflate#finish>))
- for detail of the behavior.
-
---- Zlib::ZStream#finished?
---- Zlib::ZStream#stream_end?
-
- Returns true if the stream is finished.
-
---- Zlib::ZStream#close
---- Zlib::ZStream#end
-
- Closes the stream. All operations on the closed stream
- will raise an exception.
-
---- Zlib::ZStream#closed?
---- Zlib::ZStream#ended?
-
- Returns true if the stream closed.
-
-
-== Zlib::Deflate
-
-The class for compressing string data.
-
-=== SuperClass:
-
-* ((<Zlib::ZStream>))
-
-=== Class Methods:
-
---- Zlib::Deflate.deflate(string[, level])
-
- Compresses ((|string|)). The avail values of ((|level|)) are
- ((<Zlib::NO_COMPRESSION>)), ((<Zlib::BEST_SPEED>)),
- ((<Zlib::BEST_COMPRESSION>)), ((<Zlib::DEFAULT_COMPRESSION>)),
- and the integer from 0 to 9.
-
- This method is almost equivalent to the following code:
-
- def deflate(string, level)
- z = Zlib::Deflate.new(level)
- dst = z.deflate(string, Zlib::FINISH)
- z.close
- dst
- end
-
---- Zlib::Deflate.new([level[, windowBits[, memlevel[, strategy]]]])
-
- Creates a new deflate stream for compression.
- See zlib.h for details of each argument.
- If an argument is nil, the default value of that
- argument is used.
-
-=== Methods:
-
---- Zlib::Deflate#clone
-
- Duplicates the deflate stream.
-
---- Zlib::Deflate#deflate(string[, flush])
-
- Inputs ((|string|)) into the deflate stream and returns
- the output from the stream. Calling this method,
- both input and output buffer of the stream are flushed.
- If ((|string|)) is nil, this method finishes the stream,
- just like ((<Zlib::ZStream#finish>)).
- The value of ((|flush|)) should be either ((<Zlib::NO_FLUSH>)),
- ((<Zlib::SYNC_FLUSH>)), ((<Zlib::FULL_FLUSH>)), or
- ((<Zlib::FINISH>)).
- See zlib.h for details.
-
---- Zlib::Deflate#<< string
-
- Inputs ((|string|)) into the deflate stream just like
- ((<Zlib::Deflate#deflate>)), but returns Zlib::Deflate object
- itself. The output from the stream is preserved in output
- buffer.
-
---- Zlib::Deflate#flush([flush])
-
- This method is equivalent to (({deflate('', ((|flush|)))})).
- If ((|flush|)) is omitted, ((<Zlib::SYNC_FLUSH>)) is used
- as ((|flush|)). This method is just provided for
- readability of your Ruby script.
-
---- Zlib::Deflate#finish
-
- Finishes the stream. This method is equivalent to
- (({deflate('', Zlib::FINISH)})).
-
---- Zlib::Deflate#params(level, strategy)
-
- Changes the parameters of the deflate stream.
- See zlib.h for details. The output from the stream
- by changing the params is preserved in output buffer.
-
---- Zlib::Deflate#set_dictionary(string)
-
- Sets the preset dictionary and returns ((|string|)).
- This method is available just only after
- ((<Zlib::Deflate.new>)) or ((<Zlib::ZStream#reset>)) method
- was called. See zlib.h for details.
-
-
-== Zlib::Inflate
-
-The class for decompressing compressed data.
-Unlike ((<Zlib::Deflate>)), an instance of this class is not able
-to duplicate (clone, dup) itself.
-
-=== SuperClass:
-
-* ((<Zlib::ZStream>))
-
-=== Class Methods:
-
---- Zlib::Inflate.inflate(string)
-
- Decompresses ((|string|)). Raises a ((<Zlib::NeedDict>))
- exception if a preset dictionary is needed for decompression.
-
- This method is almost equivalent to the following code:
-
- def inflate(string)
- zstream = Zlib::Inflate.new
- buf = zstream.inflate(string)
- zstream.finish
- zstream.close
- buf
- end
-
---- Zlib::Inflate.new([windowBits])
-
- Creates a new inflate stream for decompression.
- See zlib.h for details of the argument.
- If ((|windowBits|)) is nil, the default value is used.
-
-=== Methods:
-
---- Zlib::Inflate#inflate(string)
-
- Inputs ((|string|)) into the inflate stream and returns
- the output from the stream. Calling this method,
- both input and output buffer of the stream are flushed.
- If ((|string|)) is nil, this method finishes the stream,
- just like ((<Zlib::ZStream#finish>)).
-
- Raises a ((<Zlib::NeedDict>)) exception if a preset
- dictionary is needed to decompress. Set the dictionary
- by ((<Zlib::Inflate#set_dictionary>)) and then call
- this method again with an empty string.
-
---- Zlib::Inflate#<< string
-
- Inputs ((|string|)) into the inflate stream just like
- ((<Zlib::Inflate#inflate>)), but returns Zlib::Inflate object
- itself. The output from the stream is preserved in output
- buffer.
-
---- Zlib::Inflate#finish
-
- Finishes the inflate stream and returns the garbage
- following the compressed data. Raises an exception
- if the stream is not finished
- (i.e. ((<Zlib::ZStream#finished?>)) doesn't returns true).
-
- The inflate stream finishes itself as soon as it meets
- the end code of the compressed data, you need not to call
- this method explicitly. However, this method is useful
- for checking whether the data is correctly ended or not.
-
---- Zlib::Inflate#set_dictionary(string)
-
- Sets the preset dictionary and returns ((|string|))
- This method is available just only after a ((<Zlib::NeedDict>))
- exception was raised. See zlib.h for details.
-
---- Zlib::Inflate#sync(string)
-
- Inputs ((|string|)) into the end of input buffer and
- skips data until a full flush point can be found.
- If the point is found in the buffer, this method flushes
- the buffer and returns false. Otherwise it returns true
- and the following data of full flush point is preserved
- in the buffer.
-
---- Zlib::Inflate#sync_point?
-
- What is this?
-
-
-== Zlib::GzipFile
-
-The abstract class for handling a gzip formatted compressed file.
-The operations are defined in the subclasses,
-((<Zlib::GzipReader>)) for reading, and ((<Zlib::GzipWriter>))
-for writing.
-
-GzipReader should be used with associating an instance of IO class
-(or an object which has the same methods as IO has).
-
-=== SuperClass:
-
-* Object
-
-=== Class Methods:
-
---- Zlib::GzipFile.new(args...)
-
- See ((<Zlib::GzipReader.new>)) and ((<Zlib::GzipWriter.new>)).
-
---- Zlib::GzipFile.wrap(args...) {|gz| ... }
-
- See ((<Zlib::GzipReader.wrap>)) and ((<Zlib::GzipWriter.wrap>)).
-
---- Zlib::GzipFile.open(args...) {|gz| ... }
-
- See ((<Zlib::GzipReader.open>)) and ((<Zlib::GzipWriter.open>)).
-
-=== Methods:
-
---- Zlib::GzipFile#closed?
---- Zlib::GzipFile#to_io
-
- Same as IO.
-
---- Zlib::GzipFile#close
-
- Closes the GzipFile object. This method calls close method
- of the associated IO object. Returns the associated IO object.
-
---- Zlib::GzipFile#finish
-
- Closes the GzipFile object. Unlike ((<Zlib::GzipFile#close>)),
- this method ((*never*)) calls close method of the associated IO
- object. Returns the associated IO object.
-
---- Zlib::GzipFile#crc
-
- Returns CRC value of the uncompressed data.
-
---- Zlib::GzipFile#level
-
- Returns compression level.
-
---- Zlib::GzipFile#mtime
-
- Returns last modification time recorded in the gzip
- file header.
-
---- Zlib::GzipFile#os_code
-
- Returns OS code number recorded in the gzip file header.
-
---- Zlib::GzipFile#orig_name
-
- Returns original filename recorded in the gzip file header,
- or nil if original filename is not present.
-
---- Zlib::GzipFile#comment
-
- Returns comments recorded in the gzip file header, or
- nil if the comments is not present.
-
---- Zlib::GzipFile#sync
---- Zlib::GzipFile#sync= flag
-
- Same as IO. If ((|flag|)) is true, the associated IO object
- must respond to flush method. While `sync' mode is true,
- the compression ratio decreases sharply.
-
---- Zlib::GzipFile#path
-
- Returns the path string of the associated IO-like object. This
- method is only defined when the IO-like object responds to
- #path().
-
-
-== Zlib::GzipFile::Error
-
-The superclass for all exceptions raised during processing a gzip
-file.
-
-The following exceptions are defined as subclasses of
-Zlib::GzipFile::Error.
-
-: Zlib::GzipFile::NoFooter
-
- Raised when gzip file footer has not found.
-
-: Zlib::GzipFile::CRCError
-
- Raised when the CRC checksum recorded in gzip file footer
- is not equivalent to CRC checksum of the actually
- uncompressed data.
-
-: Zlib::GzipFile::LengthError
-
- Raised when the data length recorded in gzip file footer
- is not equivalent to length of the actually uncompressed data.
-
-=== SuperClass:
-
-* ((<Zlib::Error>))
-
-
-== Zlib::GzipReader
-
-The class for reading a gzipped file. GzipReader should be used
-with associating an instance of IO class (or an object which has
-the same methods as IO has).
-
- Zlib::GzipReader.open('hoge.gz') {|gz|
- print gz.read
- }
-
- f = File.open('hoge.gz')
- gz = Zlib::GzipReader.new(f)
- print gz.read
- gz.close
-
-=== SuperClass:
-
-* ((<Zlib::GzipFile>))
-
-=== Included Modules:
-
-* Enumerable
-
-=== Class Methods:
-
---- Zlib::GzipReader.new(io)
-
- Creates a GzipReader object associated with ((|io|)).
- The GzipReader object reads gzipped data from ((|io|)),
- and parses/decompresses them. At least, ((|io|)) must have
- read method that behaves same as read method in IO class.
-
- If the gzip file header is incorrect, raises an
- ((<Zlib::GzipFile::Error>)) exception.
-
---- Zlib::GzipReader.wrap(io) {|gz| ... }
-
- Creates a GzipReader object associated with ((|io|)), and
- executes the block with the newly created GzipReader object,
- just like File::open. The GzipReader object will be closed
- automatically after executing the block. If you want to keep
- the associated IO object opening, you may call
- ((<Zlib::GzipFile#finish>)) method in the block.
-
---- Zlib::GzipReader.open(filename)
---- Zlib::GzipReader.open(filename) {|gz| ... }
-
- Opens a file specified by ((|filename|)) as a gzipped file,
- and returns a GzipReader object associated with that file.
- Further details of this method are same as
- ((<Zlib::GzipReader.new>)) and ((<ZLib::GzipReader.wrap>)).
-
-=== ¥á¥½¥Ã¥É:
-
---- Zlib::GzipReader#eof
---- Zlib::GzipReader#eof?
-
- Returns true if the object reaches the end of compressed data.
- Note that eof? does ((*not*)) return true when reaches the
- end of ((*file*)).
-
---- Zlib::GzipReader#pos
---- Zlib::GzipReader#tell
-
- Returns the total bytes of data decompressed until now.
- Not that it does ((*not*)) the position of file pointer.
-
---- Zlib::GzipReader#each([rs])
---- Zlib::GzipReader#each_line([rs])
---- Zlib::GzipReader#each_byte([rs])
---- Zlib::GzipReader#gets([rs])
---- Zlib::GzipReader#getc
---- Zlib::GzipReader#lineno
---- Zlib::GzipReader#lineno=
---- Zlib::GzipReader#read([length])
---- Zlib::GzipReader#readchar
---- Zlib::GzipReader#readline([rs])
---- Zlib::GzipReader#readlines([rs])
---- Zlib::GzipReader#ungetc(char)
-
- Same as IO, but raises ((<Zlib::Error>)) or
- ((<Zlib::GzipFile::Error>)) exception if an error was found
- in the gzip file.
-
- Be careful of the footer of gzip file. A gzip file has
- the checksum of pre-compressed data in its footer.
- GzipReader checks all uncompressed data against that checksum
- at the following cases, and if failed, raises
- ((<Zlib::GzipFile::NoFooter>)), ((<Zlib::GzipFile::CRCError>)),
- or ((<Zlib::GzipFile::LengthError>)) exception.
-
- * When an reading request is received beyond the end of file
- (the end of compressed data).
- That is, when ((<Zlib::GzipReader#read>)),
- ((<Zlib::GzipReader#gets>)), or some other methods for reading
- returns nil.
-
- * When ((<Zlib::GzipFile#close>)) method is called after
- the object reaches the end of file.
-
- * When ((<Zlib::GzipReader#unused>)) method is called after
- the object reaches the end of file.
-
---- Zlib::GzipReader#rewind
-
- Resets the position of the file pointer to the point
- created the GzipReader object.
- The associated IO object need to respond to seek method.
-
---- Zlib::GzipReader#unused
-
- Returns the rest of the data which had read for parsing gzip
- format, or nil if the whole gzip file is not parsed yet.
-
-
-== Zlib::GzipWriter
-
-The class for writing a gzipped file. GzipWriter should be used
-with associate with an instance of IO class (or an object which
-has the same methods as IO has).
-
- Zlib::GzipWriter.open('hoge.gz') {|gz|
- gz.write 'jugemu jugemu gokou no surikire...'
- }
-
- f = File.open('hoge.gz', 'w')
- gz = Zlib::GzipWriter.new(f)
- gz.write 'jugemu jugemu gokou no surikire...'
- gz.close
-
-NOTE: Due to the limitation in finalizer of Ruby, you must close
-explicitly GzipWriter object by ((<Zlib::GzipWriter#close>)) etc.
-Otherwise, GzipWriter should be not able to write gzip footer and
-generate broken gzip file.
-
-=== SuperClass:
-
-* ((<Zlib::GzipFile>))
-
-=== Class Methods:
-
---- Zlib::GzipWriter.new(io[, level[, strategy]])
-
- Creates a GzipWriter object associated with ((|io|)).
- ((|level|)) and ((|strategy|)) should be same as the
- arguments of ((<Zlib::Deflate.new>)). The GzipWriter object
- writes gzipped data to ((|io|)). At least, ((|io|)) must
- respond to write method that behaves same as write method
- in IO class.
-
---- Zlib::GzipWriter.wrap(io[, level[, strategy]]) {|gz| ... }
-
- Creates a GzipWriter object associated with ((|io|)), and
- executes the block with the newly created GzipWriter object,
- just like File::open. The GzipWriter object will be closed
- automatically after executing the block. If you want to keep
- the associated IO object opening, you may call
- ((<Zlib::GzipFile#finish>)) method in the block.
-
---- Zlib::GzipWriter.open(filename[, level[, strategy]])
---- Zlib::GzipWriter.open(filename[, level[, strategy]]) {|gz| ... }
-
- Opens a file specified by ((|filename|)) for writing
- gzip compressed data, and returns a GzipWriter object
- associated with that file. Further details of this method
- are same as ((<Zlib::GzipWriter.new>)) and
- ((<Zlib::GzipWriter#wrap>)).
-
-
-=== Methods:
-
---- Zlib::GzipWriter#close
---- Zlib::GzipWriter#finish
-
- Closes the GzipFile object. This method calls close method
- of the associated IO object. Returns the associated IO object.
- See ((<Zlib::GzipFile#close>)) and ((<Zlib::GzipFile#finish>))
- for the difference between close and finish.
-
- ((*NOTE: Due to the limitation in finalizer of Ruby, you must
- close GzipWriter object explicitly. Otherwise, GzipWriter
- should be not able to write gzip footer and generate broken
- gzip file.*))
-
---- Zlib::GzipWriter#pos
---- Zlib::GzipWriter#tell
-
- Returns the total bytes of data compressed until now.
- Note that it does ((*not*)) the position of file pointer.
-
---- Zlib::GzipWriter#<< str
---- Zlib::GzipWriter#putc(ch)
---- Zlib::GzipWriter#puts(obj...)
---- Zlib::GzipWriter#print(arg...)
---- Zlib::GzipWriter#printf(format, arg...)
---- Zlib::GzipWriter#write(str)
-
- Same as IO.
-
---- Zlib::GzipWriter#flush([flush])
-
- Flushes all the internal buffers of the GzipWriter object.
- The meaning of ((|flush|)) is same as one of the argument of
- ((<Zlib::Deflate#deflate>)).
- ((<Zlib::SYNC_FLUSH>)) is used if ((|flush|)) is omitted.
- It is no use giving ((|flush|)) ((<Zlib::NO_FLUSH>)).
-
---- Zlib::GzipWriter#mtime= time
-
- Sets last modification time to be stored in the gzip file
- header. ((<Zlib::GzipFile::Error>)) exception will be raised
- if this method is called after writing method (like
- ((<Zlib::GzipWriter#write>))) was called.
-
---- Zlib::GzipWriter#orig_name= filename
-
- Sets original filename to be stored in the gzip file header.
- ((<Zlib::GzipFile::Error>)) exception will be raised
- if this method is called after writing method (like
- ((<Zlib::GzipWriter#write>))) was called.
-
---- Zlib::GzipWriter#comment= string
-
- Sets comments to be stored in the gzip file header.
- ((<Zlib::GzipFile::Error>)) exception will be raised
- if this method is called after writing method (like
- ((<Zlib::GzipWriter#write>))) was called.
-
-
-== Changes from 0.5 to 0.6
-
-* New methods:
-
- * ((<Zlib::GzipFile.wrap>))
- * ((<Zlib::GzipFile#finish>))
-
-* New constants:
-
- * ((<Zlib::ZLIB_VERSION>))
- * ((<Zlib::OS_VMCMS>))
- * ((<Zlib::OS_ZSYSTEM>))
- * ((<Zlib::OS_CPM>))
- * ((<Zlib::OS_QDOS>))
- * ((<Zlib::OS_RISCOS>))
- * ((<Zlib::OS_UNKNOWN>))
-
-* Changed methods:
-
- * ((<Zlib::GzipFile.new>)) now takes no block. Use
- ((<Zlib::GzipFile.wrap>)) instead.
-
- * ((<Zlib::GzipFile#close>)) now takes no argument. Use
- ((<Zlib::GzipFile#finish>)) instead.
-
-* Renamed methods:
-
- * Zlib.version is renamed to ((<Zlib.zlib_version>)).
-
-* Changed constants:
-
- * ((<Zlib::VERSION>)) indicates the version of Ruby/zlib.
- The zlib.h version is now in ((<Zlib::ZLIB_VERSION>)).
-
-* Backward compatibility:
-
- * For backward compatibility for 0.5, the obsoleted methods and
- arguments are still available.
-
- * Obsoleted classes, methods, and constants for backward
- compatibility for 0.4 or earlier are removed.
-
-== Changes from 0.4 to 0.5
-
-Almost all the code are rewritten.
-I hope all changes are enumerated below :-)
-
-* The names of almost classes and some methods are changed.
- All classes and constants are now defined under module
- ((<Zlib>)). The obsoleted names are also available for backward
- compatibility.
-
- * Classes
-
- * Deflate -> ((<Zlib::Deflate>))
- * Inflate -> ((<Zlib::Inflate>))
- * Zlib::Gzip -> ((<Zlib::GzipFile>))
- * GzipReader -> ((<Zlib::GzipReader>))
- * GzipWriter -> ((<Zlib::GzipWriter>))
- * Zlib::Gzip::Error -> ((<Zlib::GzipFile::Error>))
- * Zlib::GzipReader::NoFooter -> ((<Zlib::GzipFile::NoFooter>))
- * Zlib::GzipReader::CRCError -> ((<Zlib::GzipFile::CRCError>))
- * Zlib::GzipReader::LengthError -> ((<Zlib::GzipFile::LengthError>))
-
- * Constants
-
- * Zlib::ZStream::BINARY -> ((<Zlib::BINARY>))
- * Zlib::ZStream::ASCII -> ((<Zlib::ASCII>))
- * Zlib::ZStream::UNKNOWN -> ((<Zlib::UNKNOWN>))
- * Zlib::Deflate::NO_COMPRESSION -> ((<Zlib::NO_COMPRESSION>))
- * Zlib::Deflate::BEST_SPEED -> ((<Zlib::BEST_SPEED>))
- * Zlib::Deflate::BEST_COMPRESSION -> ((<Zlib::BEST_COMPRESSION>))
- * Zlib::Deflate::DEFAULT_COMPRESSION -> ((<Zlib::DEFAULT_COMPRESSION>))
- * Zlib::Deflate::FILTERED -> ((<Zlib::FILTERED>))
- * Zlib::Deflate::HUFFMAN_ONLY -> ((<Zlib::HUFFMAN_ONLY>))
- * Zlib::Deflate::DEFAULT_STRATEGY -> ((<Zlib::DEFAULT_STRATEGY>))
- * Zlib::Deflate::MAX_WBITS -> ((<Zlib::MAX_WBITS>))
- * Zlib::Deflate::DEF_MEM_LEVEL -> ((<Zlib::DEF_MEM_LEVEL>))
- * Zlib::Deflate::MAX_MEM_LEVEL -> ((<Zlib::MAX_MEM_LEVEL>))
- * Zlib::Deflate::NO_FLUSH -> ((<Zlib::NO_FLUSH>))
- * Zlib::Deflate::SYNC_FLUSH -> ((<Zlib::SYNC_FLUSH>))
- * Zlib::Deflate::FULL_FLUSH -> ((<Zlib::FULL_FLUSH>))
- * Zlib::Inflate::MAX_WBITS -> ((<Zlib::MAX_WBITS>))
- * Zlib::GzipReader::OS_* -> ((<Zlib::OS_*|Zlib::OS_CODE>))
-
- * Methods
-
- * Zlib::ZStream#flush_out -> ((<Zlib::ZStream#flush_next_out>))
-
-* Made buffer for input (next_in).
-
-* ((<Zlib::GzipReader#unused>)) returns nil after closing.
-
-* Now you are up to call ((<Zlib::GzipWriter#close>)) explicitly
-to avoid segv in finalizer.
-((<[ruby-dev:11915]|URL:http://blade.nagaokaut.ac.jp/cgi-bin/scat.rb/ruby/ruby-dev/11915>))
-
-* divided initialize from new.
-
-* remove sanity checks for arguments for deflateInit2 and
- inflateInit2.
-
-* adapted the behavior of ((<Zlib::GzipWriter#puts>)) to Ruby-1.7.
-
-* Made all functions static.
-
-
-=end
diff --git a/ext/zlib/extconf.rb b/ext/zlib/extconf.rb
index 53b971b189..499f55a046 100644
--- a/ext/zlib/extconf.rb
+++ b/ext/zlib/extconf.rb
@@ -56,6 +56,9 @@ if %w'z libz zlib1 zlib zdll'.find {|z| have_library(z, 'deflateReset')} and
$defs.concat(defines.collect{|d|' -D'+d})
+ have_func('crc32_combine', 'zlib.h')
+ have_func('adler32_combine', 'zlib.h')
+
create_makefile('zlib')
end
diff --git a/ext/zlib/zlib.c b/ext/zlib/zlib.c
index 288b13b728..42c2c75f92 100644
--- a/ext/zlib/zlib.c
+++ b/ext/zlib/zlib.c
@@ -9,7 +9,20 @@
#include <ruby.h>
#include <zlib.h>
#include <time.h>
-#include <ruby/encoding.h>
+#include <ruby/io.h>
+
+#ifdef HAVE_VALGRIND_MEMCHECK_H
+# include <valgrind/memcheck.h>
+# ifndef VALGRIND_MAKE_MEM_DEFINED
+# define VALGRIND_MAKE_MEM_DEFINED(p, n) VALGRIND_MAKE_READABLE((p), (n))
+# endif
+# ifndef VALGRIND_MAKE_MEM_UNDEFINED
+# define VALGRIND_MAKE_MEM_UNDEFINED(p, n) VALGRIND_MAKE_WRITABLE((p), (n))
+# endif
+#else
+# define VALGRIND_MAKE_MEM_DEFINED(p, n) /* empty */
+# define VALGRIND_MAKE_MEM_UNDEFINED(p, n) /* empty */
+#endif
#define RUBY_ZLIB_VERSION "0.6.0"
@@ -29,6 +42,19 @@
#endif
#endif
+#if SIZEOF_LONG > SIZEOF_INT
+static inline uInt
+max_uint(long n)
+{
+ if (n > UINT_MAX) n = UINT_MAX;
+ return (uInt)n;
+}
+#define MAX_UINT(n) max_uint(n)
+#else
+#define MAX_UINT(n) (uInt)(n)
+#endif
+
+#define sizeof(x) ((int)sizeof(x))
/*--------- Prototypes --------*/
@@ -46,21 +72,21 @@ struct zstream;
struct zstream_funcs;
static void zstream_init(struct zstream*, const struct zstream_funcs*);
static void zstream_expand_buffer(struct zstream*);
-static void zstream_expand_buffer_into(struct zstream*, int);
-static void zstream_append_buffer(struct zstream*, const Bytef*, int);
+static void zstream_expand_buffer_into(struct zstream*, unsigned long);
+static void zstream_append_buffer(struct zstream*, const Bytef*, long);
static VALUE zstream_detach_buffer(struct zstream*);
-static VALUE zstream_shift_buffer(struct zstream*, int);
-static void zstream_buffer_ungets(struct zstream*, const Bytef*, int);
+static VALUE zstream_shift_buffer(struct zstream*, long);
+static void zstream_buffer_ungets(struct zstream*, const Bytef*, unsigned long);
static void zstream_buffer_ungetbyte(struct zstream*, int);
-static void zstream_append_input(struct zstream*, const Bytef*, unsigned int);
-static void zstream_discard_input(struct zstream*, unsigned int);
+static void zstream_append_input(struct zstream*, const Bytef*, long);
+static void zstream_discard_input(struct zstream*, long);
static void zstream_reset_input(struct zstream*);
static void zstream_passthrough_input(struct zstream*);
static VALUE zstream_detach_input(struct zstream*);
static void zstream_reset(struct zstream*);
static VALUE zstream_end(struct zstream*);
-static void zstream_run(struct zstream*, Bytef*, uInt, int);
-static VALUE zstream_sync(struct zstream*, Bytef*, uInt);
+static void zstream_run(struct zstream*, Bytef*, long, int);
+static VALUE zstream_sync(struct zstream*, Bytef*, long);
static void zstream_mark(struct zstream*);
static void zstream_free(struct zstream*);
static VALUE zstream_new(VALUE, const struct zstream_funcs*);
@@ -116,7 +142,7 @@ static void gzfile_write_raw(struct gzfile*);
static VALUE gzfile_read_raw_partial(VALUE);
static VALUE gzfile_read_raw_rescue(VALUE);
static VALUE gzfile_read_raw(struct gzfile*);
-static int gzfile_read_raw_ensure(struct gzfile*, int);
+static int gzfile_read_raw_ensure(struct gzfile*, long);
static char *gzfile_read_raw_until_zero(struct gzfile*, long);
static unsigned int gzfile_get16(const unsigned char*);
static unsigned long gzfile_get32(const unsigned char*);
@@ -125,12 +151,12 @@ static void gzfile_make_header(struct gzfile*);
static void gzfile_make_footer(struct gzfile*);
static void gzfile_read_header(struct gzfile*);
static void gzfile_check_footer(struct gzfile*);
-static void gzfile_write(struct gzfile*, Bytef*, uInt);
+static void gzfile_write(struct gzfile*, Bytef*, long);
static long gzfile_read_more(struct gzfile*);
static void gzfile_calc_crc(struct gzfile*, VALUE);
-static VALUE gzfile_read(struct gzfile*, int);
+static VALUE gzfile_read(struct gzfile*, long);
static VALUE gzfile_read_all(struct gzfile*);
-static void gzfile_ungets(struct gzfile*, const Bytef*, int);
+static void gzfile_ungets(struct gzfile*, const Bytef*, long);
static void gzfile_ungetbyte(struct gzfile*, int);
static VALUE gzfile_writer_end_run(VALUE);
static void gzfile_writer_end(struct gzfile*);
@@ -142,6 +168,8 @@ static struct gzfile *get_gzfile(VALUE);
static VALUE gzfile_ensure_close(VALUE);
static VALUE rb_gzfile_s_wrap(int, VALUE*, VALUE);
static VALUE gzfile_s_open(int, VALUE*, VALUE, const char*);
+NORETURN(static void gzfile_raise(struct gzfile *, VALUE, const char *));
+static VALUE gzfile_error_inspect(VALUE);
static VALUE rb_gzfile_to_io(VALUE);
static VALUE rb_gzfile_crc(VALUE);
@@ -191,12 +219,41 @@ static VALUE rb_gzreader_each(int, VALUE*, VALUE);
static VALUE rb_gzreader_readlines(int, VALUE*, VALUE);
#endif /* GZIP_SUPPORT */
-
+/*
+ * Document-module: Zlib
+ *
+ * == Overview
+ *
+ * Access to the zlib library.
+ *
+ * == Class tree
+ *
+ * - Zlib::Deflate
+ * - Zlib::Inflate
+ * - Zlib::ZStream
+ * - Zlib::Error
+ * - Zlib::StreamEnd
+ * - Zlib::NeedDict
+ * - Zlib::DataError
+ * - Zlib::StreamError
+ * - Zlib::MemError
+ * - Zlib::BufError
+ * - Zlib::VersionError
+ *
+ * (if you have GZIP_SUPPORT)
+ * - Zlib::GzipReader
+ * - Zlib::GzipWriter
+ * - Zlib::GzipFile
+ * - Zlib::GzipFile::Error
+ * - Zlib::GzipFile::LengthError
+ * - Zlib::GzipFile::CRCError
+ * - Zlib::GzipFile::NoFooter
+ *
+ * see also zlib.h
+ *
+ */
void Init_zlib(void);
-int rb_io_extract_encoding_option(VALUE opt, rb_encoding **enc_p, rb_encoding **enc2_p);
-VALUE rb_str_conv_enc_opts(VALUE, rb_encoding*, rb_encoding*, int, VALUE);
-
/*--------- Exceptions --------*/
static VALUE cZError, cStreamEnd, cNeedDict;
@@ -260,6 +317,8 @@ finalizer_warn(const char *msg)
/*-------- module Zlib --------*/
/*
+ * Document-method: Zlib.zlib_version
+ *
* Returns the string which represents the version of zlib library.
*/
static VALUE
@@ -272,6 +331,24 @@ rb_zlib_version(VALUE klass)
return str;
}
+#if SIZEOF_LONG > SIZEOF_INT
+static uLong
+checksum_long(uLong (*func)(uLong, const Bytef*, uInt), uLong sum, const Bytef *ptr, long len)
+{
+ if (len > UINT_MAX) {
+ do {
+ sum = func(sum, ptr, UINT_MAX);
+ ptr += UINT_MAX;
+ len -= UINT_MAX;
+ } while (len >= UINT_MAX);
+ }
+ if (len > 0) sum = func(sum, ptr, (uInt)len);
+ return sum;
+}
+#else
+#define checksum_long(func, sum, ptr, len) (func)((sum), (ptr), (len))
+#endif
+
static VALUE
do_checksum(argc, argv, func)
int argc;
@@ -298,15 +375,17 @@ do_checksum(argc, argv, func)
}
else {
StringValue(str);
- sum = func(sum, (Bytef*)RSTRING_PTR(str), RSTRING_LEN(str));
+ sum = checksum_long(func, sum, (Bytef*)RSTRING_PTR(str), RSTRING_LEN(str));
}
return rb_uint2inum(sum);
}
/*
+ * Document-method: Zlib.adler32
+ *
* call-seq: Zlib.adler32(string, adler)
*
- * Calculates Alder-32 checksum for +string+, and returns updated value of
+ * Calculates Adler-32 checksum for +string+, and returns updated value of
* +adler+. If +string+ is omitted, it returns the Adler-32 initial value. If
* +adler+ is omitted, it assumes that the initial value is given to +adler+.
*
@@ -318,7 +397,30 @@ rb_zlib_adler32(int argc, VALUE *argv, VALUE klass)
return do_checksum(argc, argv, adler32);
}
+#ifdef HAVE_ADLER32_COMBINE
+/*
+ * Document-method: Zlib.adler32_combine
+ *
+ * call-seq: Zlib.adler32_combine(adler1, adler2, len2)
+ *
+ * Combine two Adler-32 check values in to one. +alder1+ is the first Adler-32
+ * value, +adler2+ is the second Adler-32 value. +len2+ is the length of the
+ * string used to generate +adler2+.
+ *
+ */
+static VALUE
+rb_zlib_adler32_combine(VALUE klass, VALUE adler1, VALUE adler2, VALUE len2)
+{
+ return ULONG2NUM(
+ adler32_combine(NUM2ULONG(adler1), NUM2ULONG(adler2), NUM2LONG(len2)));
+}
+#else
+#define rb_zlib_adler32_combine rb_f_notimplement
+#endif
+
/*
+ * Document-method: Zlib.crc32
+ *
* call-seq: Zlib.crc32(string, adler)
*
* Calculates CRC checksum for +string+, and returns updated value of +crc+. If
@@ -333,7 +435,30 @@ rb_zlib_crc32(int argc, VALUE *argv, VALUE klass)
return do_checksum(argc, argv, crc32);
}
+#ifdef HAVE_CRC32_COMBINE
+/*
+ * Document-method: Zlib.crc32_combine
+ *
+ * call-seq: Zlib.crc32_combine(crc1, crc2, len2)
+ *
+ * Combine two CRC-32 check values in to one. +crc1+ is the first CRC-32
+ * value, +crc2+ is the second CRC-32 value. +len2+ is the length of the
+ * string used to generate +crc2+.
+ *
+ */
+static VALUE
+rb_zlib_crc32_combine(VALUE klass, VALUE crc1, VALUE crc2, VALUE len2)
+{
+ return ULONG2NUM(
+ crc32_combine(NUM2ULONG(crc1), NUM2ULONG(crc2), NUM2LONG(len2)));
+}
+#else
+#define rb_zlib_crc32_combine rb_f_notimplement
+#endif
+
/*
+ * Document-method: Zlib.crc_table
+ *
* Returns the table for calculating CRC checksum as an array.
*/
static VALUE
@@ -398,7 +523,13 @@ static const struct zstream_funcs inflate_funcs = {
static voidpf
zlib_mem_alloc(voidpf opaque, uInt items, uInt size)
{
- return xmalloc(items * size);
+ voidpf p = xmalloc(items * size);
+ /* zlib FAQ: Valgrind (or some similar memory access checker) says that
+ deflate is performing a conditional jump that depends on an
+ uninitialized value. Isn't that a bug?
+ http://www.zlib.net/zlib_faq.html#faq36 */
+ VALGRIND_MAKE_MEM_DEFINED(p, items * size);
+ return p;
}
static void
@@ -455,13 +586,13 @@ zstream_expand_buffer(struct zstream *z)
}
rb_str_resize(z->buf, z->buf_filled + inc);
z->stream.avail_out = (inc < ZSTREAM_AVAIL_OUT_STEP_MAX) ?
- inc : ZSTREAM_AVAIL_OUT_STEP_MAX;
+ (int)inc : ZSTREAM_AVAIL_OUT_STEP_MAX;
}
z->stream.next_out = (Bytef*)RSTRING_PTR(z->buf) + z->buf_filled;
}
static void
-zstream_expand_buffer_into(struct zstream *z, int size)
+zstream_expand_buffer_into(struct zstream *z, unsigned long size)
{
if (NIL_P(z->buf)) {
/* I uses rb_str_new here not rb_str_buf_new because
@@ -469,18 +600,18 @@ zstream_expand_buffer_into(struct zstream *z, int size)
z->buf = rb_str_new(0, size);
z->buf_filled = 0;
z->stream.next_out = (Bytef*)RSTRING_PTR(z->buf);
- z->stream.avail_out = size;
+ z->stream.avail_out = MAX_UINT(size);
RBASIC(z->buf)->klass = 0;
}
else if (z->stream.avail_out != size) {
rb_str_resize(z->buf, z->buf_filled + size);
z->stream.next_out = (Bytef*)RSTRING_PTR(z->buf) + z->buf_filled;
- z->stream.avail_out = size;
+ z->stream.avail_out = MAX_UINT(size);
}
}
static void
-zstream_append_buffer(struct zstream *z, const Bytef *src, int len)
+zstream_append_buffer(struct zstream *z, const Bytef *src, long len)
{
if (NIL_P(z->buf)) {
z->buf = rb_str_buf_new(len);
@@ -497,8 +628,8 @@ zstream_append_buffer(struct zstream *z, const Bytef *src, int len)
z->stream.avail_out = 0;
}
else {
- if (z->stream.avail_out >= len) {
- z->stream.avail_out -= len;
+ if (z->stream.avail_out >= (uInt)len) {
+ z->stream.avail_out -= (uInt)len;
}
else {
z->stream.avail_out = 0;
@@ -534,9 +665,10 @@ zstream_detach_buffer(struct zstream *z)
}
static VALUE
-zstream_shift_buffer(struct zstream *z, int len)
+zstream_shift_buffer(struct zstream *z, long len)
{
VALUE dst;
+ long buflen;
if (z->buf_filled <= len) {
return zstream_detach_buffer(z);
@@ -548,16 +680,17 @@ zstream_shift_buffer(struct zstream *z, int len)
memmove(RSTRING_PTR(z->buf), RSTRING_PTR(z->buf) + len,
z->buf_filled);
z->stream.next_out = (Bytef*)RSTRING_PTR(z->buf) + z->buf_filled;
- z->stream.avail_out = RSTRING_LEN(z->buf) - z->buf_filled;
- if (z->stream.avail_out > ZSTREAM_AVAIL_OUT_STEP_MAX) {
- z->stream.avail_out = ZSTREAM_AVAIL_OUT_STEP_MAX;
+ buflen = RSTRING_LEN(z->buf) - z->buf_filled;
+ if (buflen > ZSTREAM_AVAIL_OUT_STEP_MAX) {
+ buflen = ZSTREAM_AVAIL_OUT_STEP_MAX;
}
+ z->stream.avail_out = (uInt)buflen;
return dst;
}
static void
-zstream_buffer_ungets(struct zstream *z, const Bytef *b, int len)
+zstream_buffer_ungets(struct zstream *z, const Bytef *b, unsigned long len)
{
if (NIL_P(z->buf) || RSTRING_LEN(z->buf) - z->buf_filled == 0) {
zstream_expand_buffer_into(z, len);
@@ -567,8 +700,9 @@ zstream_buffer_ungets(struct zstream *z, const Bytef *b, int len)
memmove(RSTRING_PTR(z->buf), b, len);
z->buf_filled+=len;
if (z->stream.avail_out > 0) {
+ if (len > z->stream.avail_out) len = z->stream.avail_out;
z->stream.next_out+=len;
- z->stream.avail_out-=len;
+ z->stream.avail_out-=(uInt)len;
}
}
@@ -589,7 +723,7 @@ zstream_buffer_ungetbyte(struct zstream *z, int c)
}
static void
-zstream_append_input(struct zstream *z, const Bytef *src, unsigned int len)
+zstream_append_input(struct zstream *z, const Bytef *src, long len)
{
if (len <= 0) return;
@@ -604,10 +738,11 @@ zstream_append_input(struct zstream *z, const Bytef *src, unsigned int len)
}
#define zstream_append_input2(z,v)\
+ RB_GC_GUARD(v),\
zstream_append_input((z), (Bytef*)RSTRING_PTR(v), RSTRING_LEN(v))
static void
-zstream_discard_input(struct zstream *z, unsigned int len)
+zstream_discard_input(struct zstream *z, long len)
{
if (NIL_P(z->input) || RSTRING_LEN(z->input) <= len) {
z->input = Qnil;
@@ -692,7 +827,7 @@ zstream_end(struct zstream *z)
}
static void
-zstream_run(struct zstream *z, Bytef *src, uInt len, int flush)
+zstream_run(struct zstream *z, Bytef *src, long len, int flush)
{
uInt n;
int err;
@@ -705,7 +840,7 @@ zstream_run(struct zstream *z, Bytef *src, uInt len, int flush)
else {
zstream_append_input(z, src, len);
z->stream.next_in = (Bytef*)RSTRING_PTR(z->input);
- z->stream.avail_in = RSTRING_LEN(z->input);
+ z->stream.avail_in = MAX_UINT(RSTRING_LEN(z->input));
/* keep reference to `z->input' so as not to be garbage collected
after zstream_reset_input() and prevent `z->stream.next_in'
from dangling. */
@@ -757,14 +892,14 @@ zstream_run(struct zstream *z, Bytef *src, uInt len, int flush)
}
static VALUE
-zstream_sync(struct zstream *z, Bytef *src, uInt len)
+zstream_sync(struct zstream *z, Bytef *src, long len)
{
VALUE rest;
int err;
if (!NIL_P(z->input)) {
z->stream.next_in = (Bytef*)RSTRING_PTR(z->input);
- z->stream.avail_in = RSTRING_LEN(z->input);
+ z->stream.avail_in = MAX_UINT(RSTRING_LEN(z->input));
err = inflateSync(&z->stream);
if (err == Z_OK) {
zstream_discard_input(z,
@@ -782,7 +917,7 @@ zstream_sync(struct zstream *z, Bytef *src, uInt len)
if (len <= 0) return Qfalse;
z->stream.next_in = src;
- z->stream.avail_in = len;
+ z->stream.avail_in = MAX_UINT(len);
err = inflateSync(&z->stream);
if (err == Z_OK) {
zstream_append_input(z, z->stream.next_in, z->stream.avail_in);
@@ -995,7 +1130,7 @@ rb_zstream_avail_out(VALUE obj)
/*
* Allocates +size+ bytes of free space in the output buffer. If there are more
- * than +size+ bytes already in the buffer, the buffer is truncated. Because
+ * than +size+ bytes already in the buffer, the buffer is truncated. Because
* free space is allocated automatically, you usually don't need to use this
* method.
*/
@@ -1040,8 +1175,8 @@ rb_zstream_total_out(VALUE obj)
/*
* Guesses the type of the data which have been inputed into the stream. The
- * returned value is either <tt>Zlib::BINARY</tt>, <tt>Zlib::ASCII</tt>, or
- * <tt>Zlib::UNKNOWN</tt>.
+ * returned value is either <tt>BINARY</tt>, <tt>ASCII</tt>, or
+ * <tt>UNKNOWN</tt>.
*/
static VALUE
rb_zstream_data_type(VALUE obj)
@@ -1084,7 +1219,7 @@ rb_zstream_closed_p(VALUE obj)
/*
* Document-class: Zlib::Deflate
*
- * Zlib::Deflate is the class for compressing data. See Zlib::Stream for more
+ * Zlib::Deflate is the class for compressing data. See Zlib::ZStream for more
* information.
*/
@@ -1106,13 +1241,62 @@ rb_deflate_s_allocate(VALUE klass)
}
/*
+ * Document-method: Zlib::Deflate.new
+ *
* call-seq: Zlib::Deflate.new(level=nil, windowBits=nil, memlevel=nil, strategy=nil)
*
+ * == Arguments
+ *
+ * +level+::
+ * An Integer compression level between
+ * BEST_SPEED and BEST_COMPRESSION
+ * +windowBits+::
+ * An Integer for the windowBits size. Should be
+ * in the range 8..15, larger values of this parameter
+ * result in better at the expense of memory usage.
+ * +memlevel+::
+ * Specifies how much memory should be allocated for
+ * the internal compression state.
+ * Between DEF_MEM_LEVEL and MAX_MEM_LEVEL
+ * +strategy+::
+ * A parameter to tune the compression algorithm. Use the
+ * DEFAULT_STRATEGY for normal data, FILTERED for data produced by a
+ * filter (or predictor), HUFFMAN_ONLY to force Huffman encoding only (no
+ * string match).
+ *
+ * == Description
+ *
* Creates a new deflate stream for compression. See zlib.h for details of
* each argument. If an argument is nil, the default value of that argument is
* used.
*
- * TODO: document better!
+ *
+ * == examples
+ *
+ * === basic
+ *
+ * f = File.new("compressed.file","w+")
+ * #=> #<File:compressed.file>
+ * f << Zlib::Deflate.new().deflate(File.read("big.file"))
+ * #=> #<File:compressed.file>
+ * f.close
+ * #=> nil
+ *
+ * === a little more robust
+ *
+ * compressed_file = File.open("compressed.file", "w+")
+ * #=> #<File:compressed.file>
+ * zd = Zlib::Deflate.new(Zlib::BEST_COMPRESSION, 15, Zlib::MAX_MEM_LEVEL, Zlib::HUFFMAN_ONLY)
+ * #=> #<Zlib::Deflate:0x000000008610a0>
+ * compressed_file << zd.deflate(File.read("big.file"))
+ * #=> "\xD4z\xC6\xDE\b\xA1K\x1Ej\x8A ..."
+ * compressed_file.close
+ * #=> nil
+ * zd.close
+ * #=> nil
+ *
+ * (while this example will work, for best optimization the flags need to be reviewed for your specific function)
+ *
*/
static VALUE
rb_deflate_initialize(int argc, VALUE *argv, VALUE obj)
@@ -1136,6 +1320,8 @@ rb_deflate_initialize(int argc, VALUE *argv, VALUE obj)
}
/*
+ * Document-method: Zlib::Deflate#initialize_copy
+ *
* Duplicates the deflate stream.
*/
static VALUE
@@ -1170,23 +1356,26 @@ deflate_run(VALUE args)
}
/*
- * call-seq: Zlib::Deflate.deflate(string[, level])
+ * Document-method: Zlib::Deflate.deflate
+ *
+ * call-seq: Zlib.deflate(string[, level])
+ * Zlib::Deflate.deflate(string[, level])
*
* Compresses the given +string+. Valid values of level are
- * <tt>Zlib::NO_COMPRESSION</tt>, <tt>Zlib::BEST_SPEED</tt>,
- * <tt>Zlib::BEST_COMPRESSION</tt>, <tt>Zlib::DEFAULT_COMPRESSION</tt>, and an
- * integer from 0 to 9.
+ * <tt>NO_COMPRESSION</tt>, <tt>BEST_SPEED</tt>,
+ * <tt>BEST_COMPRESSION</tt>, <tt>DEFAULT_COMPRESSION</tt>, and an
+ * integer from 0 to 9 (the default is 6).
*
* This method is almost equivalent to the following code:
*
* def deflate(string, level)
* z = Zlib::Deflate.new(level)
- * dst = z.deflate(string, Zlib::FINISH)
+ * dst = z.deflate(string, Zlib::NO_FLUSH)
* z.close
* dst
* end
*
- * TODO: what's default value of +level+?
+ * See also Zlib.inflate
*
*/
static VALUE
@@ -1229,18 +1418,37 @@ do_deflate(struct zstream *z, VALUE src, int flush)
}
/*
+ * Document-method: Zlib.deflate
+ *
* call-seq: deflate(string[, flush])
*
+ * == Arguments
+ *
+ * +string+::
+ * String
+ *
+ * +flush+::
+ * Integer representing a flush code. Either NO_FLUSH,
+ * SYNC_FLUSH, FULL_FLUSH, or FINISH. See zlib.h for details.
+ * Normally the parameter flush is set to Z_NO_FLUSH, which allows deflate to
+ * decide how much data to accumulate before producing output, in order to
+ * maximize compression.
+ *
+ * == Description
+ *
* Inputs +string+ into the deflate stream and returns the output from the
* stream. On calling this method, both the input and the output buffers of
- * the stream are flushed. If +string+ is nil, this method finishes the
+ * the stream are flushed.
+ *
+ * If +string+ is nil, this method finishes the
* stream, just like Zlib::ZStream#finish.
*
- * The value of +flush+ should be either <tt>Zlib::NO_FLUSH</tt>,
- * <tt>Zlib::SYNC_FLUSH</tt>, <tt>Zlib::FULL_FLUSH</tt>, or
- * <tt>Zlib::FINISH</tt>. See zlib.h for details.
+ * == Usage
+ *
+ * comp = Zlib.deflate(File.read("big.file"))
+ * or
+ * comp = Zlib.deflate(File.read("big.file"), Zlib::FULL_FLUSH)
*
- * TODO: document better!
*/
static VALUE
rb_deflate_deflate(int argc, VALUE *argv, VALUE obj)
@@ -1258,6 +1466,8 @@ rb_deflate_deflate(int argc, VALUE *argv, VALUE obj)
}
/*
+ * Document-method: Zlib::Deflate.<<
+ *
* call-seq: << string
*
* Inputs +string+ into the deflate stream just like Zlib::Deflate#deflate, but
@@ -1273,13 +1483,16 @@ rb_deflate_addstr(VALUE obj, VALUE src)
}
/*
+ * Document-method: Zlib::Deflate#flush
+ *
* call-seq: flush(flush)
*
* This method is equivalent to <tt>deflate('', flush)</tt>. If flush is omitted,
- * <tt>Zlib::SYNC_FLUSH</tt> is used as flush. This method is just provided
+ * <tt>SYNC_FLUSH</tt> is used as flush. This method is just provided
* to improve the readability of your Ruby program.
*
- * TODO: document better!
+ * Please visit your zlib.h for a deeper detail on NO_FLUSH, SYNC_FLUSH, FULL_FLUSH, and FINISH
+ *
*/
static VALUE
rb_deflate_flush(int argc, VALUE *argv, VALUE obj)
@@ -1300,13 +1513,23 @@ rb_deflate_flush(int argc, VALUE *argv, VALUE obj)
}
/*
+ * Document-method: Zlib::Deflate.params
+ *
* call-seq: params(level, strategy)
- *
+ *
* Changes the parameters of the deflate stream. See zlib.h for details. The
* output from the stream by changing the params is preserved in output
* buffer.
*
- * TODO: document better!
+ * +level+::
+ * An Integer compression level between
+ * BEST_SPEED and BEST_COMPRESSION
+ * +strategy+::
+ * A parameter to tune the compression algorithm. Use the
+ * DEFAULT_STRATEGY for normal data, FILTERED for data produced by a
+ * filter (or predictor), HUFFMAN_ONLY to force Huffman encoding only (no
+ * string match).
+ *
*/
static VALUE
rb_deflate_params(VALUE obj, VALUE v_level, VALUE v_strategy)
@@ -1314,16 +1537,20 @@ rb_deflate_params(VALUE obj, VALUE v_level, VALUE v_strategy)
struct zstream *z = get_zstream(obj);
int level, strategy;
int err;
+ uInt n;
level = ARG_LEVEL(v_level);
strategy = ARG_STRATEGY(v_strategy);
- zstream_run(z, (Bytef*)"", 0, Z_SYNC_FLUSH);
+ n = z->stream.avail_out;
err = deflateParams(&z->stream, level, strategy);
+ z->buf_filled += n - z->stream.avail_out;
while (err == Z_BUF_ERROR) {
rb_warning("deflateParams() returned Z_BUF_ERROR");
zstream_expand_buffer(z);
+ n = z->stream.avail_out;
err = deflateParams(&z->stream, level, strategy);
+ z->buf_filled += n - z->stream.avail_out;
}
if (err != Z_OK) {
raise_zlib_error(err, z->stream.msg);
@@ -1333,13 +1560,18 @@ rb_deflate_params(VALUE obj, VALUE v_level, VALUE v_strategy)
}
/*
+ * Document-method: Zlib::Deflate.set_dictionary
+ *
* call-seq: set_dictionary(string)
*
* Sets the preset dictionary and returns +string+. This method is available
* just only after Zlib::Deflate.new or Zlib::ZStream#reset method was called.
* See zlib.h for details.
*
- * TODO: document better!
+ * Can raise errors of Z_STREAM_ERROR if a parameter is invalid (such as
+ * NULL dictionary) or the stream state is inconsistent, Z_DATA_ERROR if
+ * the given dictionary doesn't match the expected one (incorrect adler32 value)
+ *
*/
static VALUE
rb_deflate_set_dictionary(VALUE obj, VALUE dic)
@@ -1351,7 +1583,7 @@ rb_deflate_set_dictionary(VALUE obj, VALUE dic)
OBJ_INFECT(obj, dic);
StringValue(src);
err = deflateSetDictionary(&z->stream,
- (Bytef*)RSTRING_PTR(src), RSTRING_LEN(src));
+ (Bytef*)RSTRING_PTR(src), RSTRING_LENINT(src));
if (err != Z_OK) {
raise_zlib_error(err, z->stream.msg);
}
@@ -1379,12 +1611,44 @@ rb_inflate_s_allocate(VALUE klass)
}
/*
+ * Document-method: Zlib::Inflate.new
+ *
* call-seq: Zlib::Inflate.new(window_bits)
*
+ * == Arguments
+ *
+ * +windowBits+::
+ * An Integer for the windowBits size. Should be
+ * in the range 8..15, larger values of this parameter
+ * result in better at the expense of memory usage.
+ *
+ * == Description
+ *
* Creates a new inflate stream for decompression. See zlib.h for details
* of the argument. If +window_bits+ is +nil+, the default value is used.
*
- * TODO: document better!
+ * == Example
+ *
+ * cf = File.open("compressed.file")
+ * ucf = File.open("uncompressed.file", "w+")
+ * zi = Zlib::Inflate.new(Zlib::MAX_WBITS)
+ *
+ * ucf << zi.inflate(cf.read)
+ *
+ * ucf.close
+ * zi.close
+ * cf.close
+ *
+ * or
+ *
+ * File.open("compressed.file") {|cf|
+ * zi = Zlib::Inflate.new
+ * File.open("uncompressed.file", "w+") {|ucf|
+ * ucf << zi.inflate(cf.read)
+ * }
+ * zi.close
+ * }
+ *
*/
static VALUE
rb_inflate_initialize(int argc, VALUE *argv, VALUE obj)
@@ -1417,6 +1681,8 @@ inflate_run(VALUE args)
}
/*
+ * Document-method: Zlib::Inflate.inflate
+ *
* call-seq: Zlib::Inflate.inflate(string)
*
* Decompresses +string+. Raises a Zlib::NeedDict exception if a preset
@@ -1432,6 +1698,8 @@ inflate_run(VALUE args)
* buf
* end
*
+ * See also Zlib.deflate
+ *
*/
static VALUE
rb_inflate_s_inflate(VALUE obj, VALUE src)
@@ -1470,6 +1738,8 @@ do_inflate(struct zstream *z, VALUE src)
}
/*
+ * Document-method: Zlib::Inflate#inflate
+ *
* call-seq: inflate(string)
*
* Inputs +string+ into the inflate stream and returns the output from the
@@ -1481,7 +1751,7 @@ do_inflate(struct zstream *z, VALUE src)
* decompress. Set the dictionary by Zlib::Inflate#set_dictionary and then
* call this method again with an empty string. (<i>???</i>)
*
- * TODO: document better!
+ * See also Zlib::Inflate.new
*/
static VALUE
rb_inflate_inflate(VALUE obj, VALUE src)
@@ -1585,10 +1855,11 @@ rb_inflate_sync_point_p(VALUE obj)
}
/*
+ * Document-method: Zlib::Inflate#set_dictionary
+ *
* Sets the preset dictionary and returns +string+. This method is available just
* only after a Zlib::NeedDict exception was raised. See zlib.h for details.
*
- * TODO: document better!
*/
static VALUE
rb_inflate_set_dictionary(VALUE obj, VALUE dic)
@@ -1600,7 +1871,7 @@ rb_inflate_set_dictionary(VALUE obj, VALUE dic)
OBJ_INFECT(obj, dic);
StringValue(src);
err = inflateSetDictionary(&z->stream,
- (Bytef*)RSTRING_PTR(src), RSTRING_LEN(src));
+ (Bytef*)RSTRING_PTR(src), RSTRING_LENINT(src));
if (err != Z_OK) {
raise_zlib_error(err, z->stream.msg);
}
@@ -1654,7 +1925,7 @@ rb_inflate_set_dictionary(VALUE obj, VALUE dic)
#define OS_CODE OS_UNIX
#endif
-static ID id_write, id_read, id_readpartial, id_flush, id_seek, id_close, id_path;
+static ID id_write, id_read, id_readpartial, id_flush, id_seek, id_close, id_path, id_input;
static VALUE cGzError, cNoFooter, cCRCError, cLengthError;
@@ -1671,7 +1942,7 @@ struct gzfile {
VALUE comment; /* for header; must be a String */
unsigned long crc;
int lineno;
- int ungetc;
+ long ungetc;
void (*end)(struct gzfile *);
rb_encoding *enc;
rb_encoding *enc2;
@@ -1688,7 +1959,7 @@ struct gzfile {
#define GZFILE_FLAG_FOOTER_FINISHED (ZSTREAM_FLAG_UNUSED << 2)
#define GZFILE_IS_FINISHED(gz) \
- (ZSTREAM_IS_FINISHED(&gz->z) && (gz)->z.buf_filled == 0)
+ (ZSTREAM_IS_FINISHED(&(gz)->z) && (gz)->z.buf_filled == 0)
#define GZFILE_READ_SIZE 2048
@@ -1833,16 +2104,16 @@ gzfile_read_raw(struct gzfile *gz)
}
static int
-gzfile_read_raw_ensure(struct gzfile *gz, int size)
+gzfile_read_raw_ensure(struct gzfile *gz, long size)
{
VALUE str;
while (NIL_P(gz->z.input) || RSTRING_LEN(gz->z.input) < size) {
str = gzfile_read_raw(gz);
- if (NIL_P(str)) return Qfalse;
+ if (NIL_P(str)) return 0;
zstream_append_input2(&gz->z, str);
}
- return Qtrue;
+ return 1;
}
static char *
@@ -1895,6 +2166,36 @@ gzfile_set32(unsigned long n, unsigned char *dst)
}
static void
+gzfile_raise(struct gzfile *gz, VALUE klass, const char *message)
+{
+ VALUE exc = rb_exc_new2(klass, message);
+ if (!NIL_P(gz->z.input)) {
+ rb_ivar_set(exc, id_input, rb_str_resurrect(gz->z.input));
+ }
+ rb_exc_raise(exc);
+}
+
+/*
+ * Document-method: Zlib::GzipFile::Error#inspect
+ *
+ * Constructs a String of the GzipFile Error
+ */
+static VALUE
+gzfile_error_inspect(VALUE error)
+{
+ VALUE str = rb_call_super(0, 0);
+ VALUE input = rb_attr_get(error, id_input);
+
+ if (!NIL_P(input)) {
+ rb_str_resize(str, RSTRING_LEN(str)-1);
+ rb_str_cat2(str, ", input=");
+ rb_str_append(str, rb_str_inspect(input));
+ rb_str_cat2(str, ">");
+ }
+ return str;
+}
+
+static void
gzfile_make_header(struct gzfile *gz)
{
Bytef buf[10]; /* the size of gzip header */
@@ -1921,7 +2222,7 @@ gzfile_make_header(struct gzfile *gz)
buf[1] = GZ_MAGIC2;
buf[2] = GZ_METHOD_DEFLATE;
buf[3] = flags;
- gzfile_set32(gz->mtime, &buf[4]);
+ gzfile_set32((unsigned long)gz->mtime, &buf[4]);
buf[8] = extraflags;
buf[9] = gz->os_code;
zstream_append_buffer(&gz->z, buf, sizeof(buf));
@@ -1957,13 +2258,13 @@ gzfile_read_header(struct gzfile *gz)
char flags, *p;
if (!gzfile_read_raw_ensure(gz, 10)) { /* 10 is the size of gzip header */
- rb_raise(cGzError, "not in gzip format");
+ gzfile_raise(gz, cGzError, "not in gzip format");
}
head = (unsigned char*)RSTRING_PTR(gz->z.input);
if (head[0] != GZ_MAGIC1 || head[1] != GZ_MAGIC2) {
- rb_raise(cGzError, "not in gzip format");
+ gzfile_raise(gz, cGzError, "not in gzip format");
}
if (head[2] != GZ_METHOD_DEFLATE) {
rb_raise(cGzError, "unsupported compression method %d", head[2]);
@@ -2005,6 +2306,9 @@ gzfile_read_header(struct gzfile *gz)
zstream_discard_input(&gz->z, 2 + len);
}
if (flags & GZ_FLAG_ORIG_NAME) {
+ if (!gzfile_read_raw_ensure(gz, 1)) {
+ rb_raise(cGzError, "unexpected end of file");
+ }
p = gzfile_read_raw_until_zero(gz, 0);
len = p - RSTRING_PTR(gz->z.input);
gz->orig_name = rb_str_new(RSTRING_PTR(gz->z.input), len);
@@ -2012,6 +2316,9 @@ gzfile_read_header(struct gzfile *gz)
zstream_discard_input(&gz->z, len + 1);
}
if (flags & GZ_FLAG_COMMENT) {
+ if (!gzfile_read_raw_ensure(gz, 1)) {
+ rb_raise(cGzError, "unexpected end of file");
+ }
p = gzfile_read_raw_until_zero(gz, 0);
len = p - RSTRING_PTR(gz->z.input);
gz->comment = rb_str_new(RSTRING_PTR(gz->z.input), len);
@@ -2032,7 +2339,7 @@ gzfile_check_footer(struct gzfile *gz)
gz->z.flags |= GZFILE_FLAG_FOOTER_FINISHED;
if (!gzfile_read_raw_ensure(gz, 8)) { /* 8 is the size of gzip footer */
- rb_raise(cNoFooter, "footer is not found");
+ gzfile_raise(gz, cNoFooter, "footer is not found");
}
crc = gzfile_get32((Bytef*)RSTRING_PTR(gz->z.input));
@@ -2044,20 +2351,20 @@ gzfile_check_footer(struct gzfile *gz)
if (gz->crc != crc) {
rb_raise(cCRCError, "invalid compressed data -- crc error");
}
- if (gz->z.stream.total_out != length) {
+ if ((uint32_t)gz->z.stream.total_out != length) {
rb_raise(cLengthError, "invalid compressed data -- length error");
}
}
static void
-gzfile_write(struct gzfile *gz, Bytef *str, uInt len)
+gzfile_write(struct gzfile *gz, Bytef *str, long len)
{
if (!(gz->z.flags & GZFILE_FLAG_HEADER_FINISHED)) {
gzfile_make_header(gz);
}
if (len > 0 || (gz->z.flags & GZFILE_FLAG_SYNC)) {
- gz->crc = crc32(gz->crc, str, len);
+ gz->crc = checksum_long(crc32, gz->crc, str, len);
zstream_run(&gz->z, str, len, (gz->z.flags & GZFILE_FLAG_SYNC)
? Z_SYNC_FLUSH : Z_NO_FLUSH);
}
@@ -2093,7 +2400,7 @@ gzfile_calc_crc(struct gzfile *gz, VALUE str)
gz->ungetc -= RSTRING_LEN(str);
}
else {
- gz->crc = crc32(gz->crc, (Bytef*)RSTRING_PTR(str) + gz->ungetc,
+ gz->crc = checksum_long(crc32, gz->crc, (Bytef*)RSTRING_PTR(str) + gz->ungetc,
RSTRING_LEN(str) - gz->ungetc);
gz->ungetc = 0;
}
@@ -2117,15 +2424,13 @@ gzfile_newstr(struct gzfile *gz, VALUE str)
gz->ecflags, gz->ecopts);
}
-static VALUE
-gzfile_read(struct gzfile *gz, int len)
+static long
+gzfile_fill(struct gzfile *gz, long len)
{
- VALUE dst;
-
if (len < 0)
- rb_raise(rb_eArgError, "negative length %d given", len);
+ rb_raise(rb_eArgError, "negative length %ld given", len);
if (len == 0)
- return rb_str_new(0, 0);
+ return 0;
while (!ZSTREAM_IS_FINISHED(&gz->z) && gz->z.buf_filled < len) {
gzfile_read_more(gz);
}
@@ -2133,24 +2438,34 @@ gzfile_read(struct gzfile *gz, int len)
if (!(gz->z.flags & GZFILE_FLAG_FOOTER_FINISHED)) {
gzfile_check_footer(gz);
}
- return Qnil;
+ return -1;
}
+ return len < gz->z.buf_filled ? len : gz->z.buf_filled;
+}
+static VALUE
+gzfile_read(struct gzfile *gz, long len)
+{
+ VALUE dst;
+
+ len = gzfile_fill(gz, len);
+ if (len == 0) return rb_str_new(0, 0);
+ if (len < 0) return Qnil;
dst = zstream_shift_buffer(&gz->z, len);
gzfile_calc_crc(gz, dst);
return dst;
}
static VALUE
-gzfile_readpartial(struct gzfile *gz, int len, VALUE outbuf)
+gzfile_readpartial(struct gzfile *gz, long len, VALUE outbuf)
{
VALUE dst;
if (len < 0)
- rb_raise(rb_eArgError, "negative length %d given", len);
+ rb_raise(rb_eArgError, "negative length %ld given", len);
if (!NIL_P(outbuf))
- OBJ_TAINT(outbuf);
+ OBJ_TAINT(outbuf);
if (len == 0) {
if (NIL_P(outbuf))
@@ -2202,7 +2517,7 @@ gzfile_read_all(struct gzfile *gz)
dst = zstream_detach_buffer(&gz->z);
gzfile_calc_crc(gz, dst);
OBJ_TAINT(dst);
- return dst;
+ return gzfile_newstr(gz, dst);
}
static VALUE
@@ -2252,7 +2567,7 @@ gzfile_getc(struct gzfile *gz)
}
static void
-gzfile_ungets(struct gzfile *gz, const Bytef *b, int len)
+gzfile_ungets(struct gzfile *gz, const Bytef *b, long len)
{
zstream_buffer_ungets(&gz->z, b, len);
gz->ungetc+=len;
@@ -2338,7 +2653,7 @@ gzfile_reader_get_unused(struct gzfile *gz)
}
if (NIL_P(gz->z.input)) return Qnil;
- str = rb_str_dup(gz->z.input);
+ str = rb_str_resurrect(gz->z.input);
OBJ_TAINT(str); /* for safe */
return str;
}
@@ -2366,9 +2681,49 @@ get_gzfile(VALUE obj)
* Zlib::GzipReader for reading, and Zlib::GzipWriter for writing.
*
* GzipReader should be used by associating an IO, or IO-like, object.
+ *
+ * == Method Catalogue
+ *
+ * - ::wrap
+ * - ::open (Zlib::GzipReader::open and Zlib::GzipWriter::open)
+ * - #close
+ * - #closed?
+ * - #comment
+ * - comment= (Zlib::GzipWriter#comment=)
+ * - #crc
+ * - eof? (Zlib::GzipReader#eof?)
+ * - #finish
+ * - #level
+ * - lineno (Zlib::GzipReader#lineno)
+ * - lineno= (Zlib::GzipReader#lineno=)
+ * - #mtime
+ * - mtime= (Zlib::GzipWriter#mtime=)
+ * - #orig_name
+ * - orig_name (Zlib::GzipWriter#orig_name=)
+ * - #os_code
+ * - path (when the underlying IO supports #path)
+ * - #sync
+ * - #sync=
+ * - #to_io
+ *
+ * (due to internal structure, documentation may appear under Zlib::GzipReader
+ * or Zlib::GzipWriter)
*/
+typedef struct {
+ int argc;
+ VALUE *argv;
+ VALUE klass;
+} new_wrap_arg_t;
+
+static VALUE
+new_wrap(VALUE tmp)
+{
+ new_wrap_arg_t *arg = (new_wrap_arg_t *)tmp;
+ return rb_class_new_instance(arg->argc, arg->argv, arg->klass);
+}
+
static VALUE
gzfile_ensure_close(VALUE obj)
{
@@ -2381,13 +2736,26 @@ gzfile_ensure_close(VALUE obj)
return Qnil;
}
-/*
- * See Zlib::GzipReader#wrap and Zlib::GzipWriter#wrap.
- */
static VALUE
-rb_gzfile_s_wrap(int argc, VALUE *argv, VALUE klass)
+gzfile_wrap(int argc, VALUE *argv, VALUE klass, int close_io_on_error)
{
- VALUE obj = rb_class_new_instance(argc, argv, klass);
+ VALUE obj;
+
+ if (close_io_on_error) {
+ int state = 0;
+ new_wrap_arg_t arg;
+ arg.argc = argc;
+ arg.argv = argv;
+ arg.klass = klass;
+ obj = rb_protect(new_wrap, (VALUE)&arg, &state);
+ if (state) {
+ rb_io_close(argv[0]);
+ rb_jump_tag(state);
+ }
+ }
+ else {
+ obj = rb_class_new_instance(argc, argv, klass);
+ }
if (rb_block_given_p()) {
return rb_ensure(rb_yield, obj, gzfile_ensure_close, obj);
@@ -2398,6 +2766,26 @@ rb_gzfile_s_wrap(int argc, VALUE *argv, VALUE klass)
}
/*
+ * Document-method: Zlib::GzipFile.wrap
+ *
+ * call-seq: Zlib::GzipFile.wrap(io) { |gz| ... }
+ *
+ * Creates a GzipFile object associated with +io+, and
+ * executes the block with the newly created GzipFile object,
+ * just like File.open. The GzipFile object will be closed
+ * automatically after executing the block. If you want to keep
+ * the associated IO object opening, you may call
+ * +Zlib::GzipFile#finish+ method in the block.
+ */
+static VALUE
+rb_gzfile_s_wrap(int argc, VALUE *argv, VALUE klass)
+{
+ return gzfile_wrap(argc, argv, klass, 0);
+}
+
+/*
+ * Document-method: Zlib::GzipFile.open
+ *
* See Zlib::GzipReader#open and Zlib::GzipWriter#open.
*/
static VALUE
@@ -2411,10 +2799,12 @@ gzfile_s_open(int argc, VALUE *argv, VALUE klass, const char *mode)
filename = argv[0];
io = rb_file_open_str(filename, mode);
argv[0] = io;
- return rb_gzfile_s_wrap(argc, argv, klass);
+ return gzfile_wrap(argc, argv, klass, 1);
}
/*
+ * Document-method: Zlib::GzipFile#to_io
+ *
* Same as IO.
*/
static VALUE
@@ -2424,6 +2814,8 @@ rb_gzfile_to_io(VALUE obj)
}
/*
+ * Document-method: Zlib::GzipFile#crc
+ *
* Returns CRC value of the uncompressed data.
*/
static VALUE
@@ -2433,6 +2825,8 @@ rb_gzfile_crc(VALUE obj)
}
/*
+ * Document-method: Zlib::GzipFile#mtime
+ *
* Returns last modification time recorded in the gzip file header.
*/
static VALUE
@@ -2442,6 +2836,8 @@ rb_gzfile_mtime(VALUE obj)
}
/*
+ * Document-method: Zlib::GzipFile#level
+ *
* Returns compression level.
*/
static VALUE
@@ -2451,6 +2847,8 @@ rb_gzfile_level(VALUE obj)
}
/*
+ * Document-method: Zlib::GzipFile#os_code
+ *
* Returns OS code number recorded in the gzip file header.
*/
static VALUE
@@ -2460,6 +2858,8 @@ rb_gzfile_os_code(VALUE obj)
}
/*
+ * Document-method: Zlib::GzipFile#orig_name
+ *
* Returns original filename recorded in the gzip file header, or +nil+ if
* original filename is not present.
*/
@@ -2475,6 +2875,8 @@ rb_gzfile_orig_name(VALUE obj)
}
/*
+ * Document-method: Zlib::GzipFile#comment
+ *
* Returns comments recorded in the gzip file header, or nil if the comments
* is not present.
*/
@@ -2490,7 +2892,9 @@ rb_gzfile_comment(VALUE obj)
}
/*
- * ???
+ * Document-method: Zlib::GzipFile#lineno
+ *
+ * The line number of the last row read from this file.
*/
static VALUE
rb_gzfile_lineno(VALUE obj)
@@ -2499,7 +2903,9 @@ rb_gzfile_lineno(VALUE obj)
}
/*
- * ???
+ * Document-method: Zlib::GzipReader#lineno=
+ *
+ * Specify line number of the last row read from this file.
*/
static VALUE
rb_gzfile_set_lineno(VALUE obj, VALUE lineno)
@@ -2510,7 +2916,10 @@ rb_gzfile_set_lineno(VALUE obj, VALUE lineno)
}
/*
- * ???
+ * Document-method: Zlib::GzipWriter#mtime=
+ *
+ * Specify the modification time (+mtime+) in the gzip header.
+ * Using a Fixnum or Integer
*/
static VALUE
rb_gzfile_set_mtime(VALUE obj, VALUE mtime)
@@ -2527,13 +2936,15 @@ rb_gzfile_set_mtime(VALUE obj, VALUE mtime)
}
else {
val = rb_Integer(mtime);
- gz->mtime = FIXNUM_P(val) ? FIX2INT(val) : rb_big2ulong(val);
+ gz->mtime = FIXNUM_P(val) ? FIX2UINT(val) : rb_big2ulong(val);
}
return mtime;
}
/*
- * ???
+ * Document-method: Zlib::GzipFile#orig_name=
+ *
+ * Specify the original name (+str+) in the gzip header.
*/
static VALUE
rb_gzfile_set_orig_name(VALUE obj, VALUE str)
@@ -2555,7 +2966,9 @@ rb_gzfile_set_orig_name(VALUE obj, VALUE str)
}
/*
- * ???
+ * Document-method: Zlib::GzipFile#comment=
+ *
+ * Specify the comment (+str+) in the gzip header.
*/
static VALUE
rb_gzfile_set_comment(VALUE obj, VALUE str)
@@ -2577,6 +2990,8 @@ rb_gzfile_set_comment(VALUE obj, VALUE str)
}
/*
+ * Document-method: Zlib::GzipFile#close
+ *
* Closes the GzipFile object. This method calls close method of the
* associated IO object. Returns the associated IO object.
*/
@@ -2592,6 +3007,8 @@ rb_gzfile_close(VALUE obj)
}
/*
+ * Document-method: Zlib::GzipFile#finish
+ *
* Closes the GzipFile object. Unlike Zlib::GzipFile#close, this method never
* calls the close method of the associated IO object. Returns the associated IO
* object.
@@ -2608,7 +3025,10 @@ rb_gzfile_finish(VALUE obj)
}
/*
- * Same as IO.
+ * Document-method: Zlib::GzipFile#closed?
+ *
+ * Same as IO#closed?
+ *
*/
static VALUE
rb_gzfile_closed_p(VALUE obj)
@@ -2619,7 +3039,9 @@ rb_gzfile_closed_p(VALUE obj)
}
/*
- * ???
+ * Document-method: Zlib::GzipFile#eof?
+ *
+ * Returns +true+ or +false+ whether the stream has reached the end.
*/
static VALUE
rb_gzfile_eof_p(VALUE obj)
@@ -2629,7 +3051,10 @@ rb_gzfile_eof_p(VALUE obj)
}
/*
- * Same as IO.
+ * Document-method: Zlib::GzipFile#sync
+ *
+ * Same as IO#sync
+ *
*/
static VALUE
rb_gzfile_sync(VALUE obj)
@@ -2638,6 +3063,8 @@ rb_gzfile_sync(VALUE obj)
}
/*
+ * Document-method: Zlib::GzipFile#sync=
+ *
* call-seq: sync = flag
*
* Same as IO. If flag is +true+, the associated IO object must respond to the
@@ -2659,7 +3086,9 @@ rb_gzfile_set_sync(VALUE obj, VALUE mode)
}
/*
- * ???
+ * Document-method: Zlib::GzipFile#total_in
+ *
+ * Total number of input bytes read so far.
*/
static VALUE
rb_gzfile_total_in(VALUE obj)
@@ -2668,7 +3097,9 @@ rb_gzfile_total_in(VALUE obj)
}
/*
- * ???
+ * Document-method: Zlib::GzipFile#total_out
+ *
+ * Total number of output bytes output so far.
*/
static VALUE
rb_gzfile_total_out(VALUE obj)
@@ -2678,7 +3109,7 @@ rb_gzfile_total_out(VALUE obj)
}
/*
- * Document-method: path
+ * Document-method: Zlib::GzipFile#path
*
* call-seq: path
*
@@ -2697,7 +3128,7 @@ static void
rb_gzfile_ecopts(struct gzfile *gz, VALUE opts)
{
if (!NIL_P(opts)) {
- rb_io_extract_encoding_option(opts, &gz->enc, &gz->enc2);
+ rb_io_extract_encoding_option(opts, &gz->enc, &gz->enc2, NULL);
}
if (gz->enc2) {
gz->ecflags = rb_econv_prepare_opts(opts, &opts);
@@ -2713,9 +3144,9 @@ rb_gzfile_ecopts(struct gzfile *gz, VALUE opts)
* Document-class: Zlib::GzipWriter
*
* Zlib::GzipWriter is a class for writing gzipped files. GzipWriter should
- * be used with an instance of IO, or IO-like, object.
+ * be used with an instance of IO, or IO-like, object.
*
- * For example:
+ * Following two example generate the same result.
*
* Zlib::GzipWriter.open('hoge.gz') do |gz|
* gz.write 'jugemu jugemu gokou no surikire...'
@@ -2727,8 +3158,14 @@ rb_gzfile_ecopts(struct gzfile *gz, VALUE opts)
* gz.close
* end
*
- * # TODO: test these. Are they equivalent? Can GzipWriter.new take a
- * # block?
+ * To make like gzip(1) does, run following:
+ *
+ * orig = 'hoge.txt'
+ * Zlib::GzipWriter.open('hoge.gz') do |gz|
+ * gz.mtime = File.mtime(orig)
+ * gz.orig_name = orig
+ * gz.write IO.binread(orig)
+ * end
*
* NOTE: Due to the limitation of Ruby's finalizer, you must explicitly close
* GzipWriter objects by Zlib::GzipWriter#close etc. Otherwise, GzipWriter
@@ -2747,7 +3184,7 @@ rb_gzwriter_s_allocate(VALUE klass)
*
* Opens a file specified by +filename+ for writing gzip compressed data, and
* returns a GzipWriter object associated with that file. Further details of
- * this method are found in Zlib::GzipWriter.new and Zlib::GzipWriter#wrap.
+ * this method are found in Zlib::GzipWriter.new and Zlib::GzipFile.wrap.
*/
static VALUE
rb_gzwriter_s_open(int argc, VALUE *argv, VALUE klass)
@@ -2774,7 +3211,7 @@ rb_gzwriter_initialize(int argc, VALUE *argv, VALUE obj)
opt = rb_check_convert_type(argv[argc-1], T_HASH, "Hash", "to_hash");
if (!NIL_P(opt)) argc--;
}
-
+
rb_scan_args(argc, argv, "12", &io, &level, &strategy);
Data_Get_Struct(obj, struct gzfile, gz);
@@ -2897,9 +3334,6 @@ rb_gzwriter_putc(VALUE obj, VALUE ch)
* gz.close
* end
*
- * # TODO: test these. Are they equivalent? Can GzipReader.new take a
- * # block?
- *
* == Method Catalogue
*
* The following methods in Zlib::GzipReader are just like their counterparts
@@ -2943,11 +3377,13 @@ rb_gzreader_s_allocate(VALUE klass)
}
/*
+ * Document-method: Zlib::GzipReader.open
+ *
* call-seq: Zlib::GzipReader.open(filename) {|gz| ... }
*
* Opens a file specified by +filename+ as a gzipped file, and returns a
* GzipReader object associated with that file. Further details of this method
- * are in Zlib::GzipReader.new and ZLib::GzipReader.wrap.
+ * are in Zlib::GzipReader.new and ZLib::GzipFile.wrap.
*/
static VALUE
rb_gzreader_s_open(int argc, VALUE *argv, VALUE klass)
@@ -2956,6 +3392,8 @@ rb_gzreader_s_open(int argc, VALUE *argv, VALUE klass)
}
/*
+ * Document-method: Zlib::GzipReader.new
+ *
* call-seq: Zlib::GzipReader.new(io)
*
* Creates a GzipReader object associated with +io+. The GzipReader object reads
@@ -2973,11 +3411,7 @@ rb_gzreader_initialize(int argc, VALUE *argv, VALUE obj)
int err;
Data_Get_Struct(obj, struct gzfile, gz);
- if (argc > 1) {
- opt = rb_check_convert_type(argv[argc-1], T_HASH, "Hash", "to_hash");
- if (!NIL_P(opt)) argc--;
- }
- rb_scan_args(argc, argv, "1", &io);
+ rb_scan_args(argc, argv, "1:", &io, &opt);
/* this is undocumented feature of zlib */
err = inflateInit2(&gz->z.stream, -MAX_WBITS);
@@ -2998,6 +3432,8 @@ rb_gzreader_initialize(int argc, VALUE *argv, VALUE obj)
}
/*
+ * Document-method: Zlib::GzipReader#rewind
+ *
* Resets the position of the file pointer to the point created the GzipReader
* object. The associated IO object needs to respond to the +seek+ method.
*/
@@ -3010,6 +3446,8 @@ rb_gzreader_rewind(VALUE obj)
}
/*
+ * Document-method: Zlib::GzipReader#unused
+ *
* Returns the rest of the data which had read for parsing gzip format, or
* +nil+ if the whole gzip file is not parsed yet.
*/
@@ -3022,6 +3460,8 @@ rb_gzreader_unused(VALUE obj)
}
/*
+ * Document-method: Zlib::GzipReader#read
+ *
* See Zlib::GzipReader documentation for a description.
*/
static VALUE
@@ -3029,7 +3469,7 @@ rb_gzreader_read(int argc, VALUE *argv, VALUE obj)
{
struct gzfile *gz = get_gzfile(obj);
VALUE vlen;
- int len;
+ long len;
rb_scan_args(argc, argv, "01", &vlen);
if (NIL_P(vlen)) {
@@ -3038,12 +3478,14 @@ rb_gzreader_read(int argc, VALUE *argv, VALUE obj)
len = NUM2INT(vlen);
if (len < 0) {
- rb_raise(rb_eArgError, "negative length %d given", len);
+ rb_raise(rb_eArgError, "negative length %ld given", len);
}
return gzfile_read(gz, len);
}
/*
+ * Document-method: Zlib::GzipReader#readpartial
+ *
* call-seq:
* gzipreader.readpartial(maxlen [, outbuf]) => string, outbuf
*
@@ -3058,13 +3500,13 @@ rb_gzreader_readpartial(int argc, VALUE *argv, VALUE obj)
{
struct gzfile *gz = get_gzfile(obj);
VALUE vlen, outbuf;
- int len;
+ long len;
rb_scan_args(argc, argv, "11", &vlen, &outbuf);
len = NUM2INT(vlen);
if (len < 0) {
- rb_raise(rb_eArgError, "negative length %d given", len);
+ rb_raise(rb_eArgError, "negative length %ld given", len);
}
if (!NIL_P(outbuf))
Check_Type(outbuf, T_STRING);
@@ -3072,6 +3514,8 @@ rb_gzreader_readpartial(int argc, VALUE *argv, VALUE obj)
}
/*
+ * Document-method: Zlib::GzipReader#getc
+ *
* See Zlib::GzipReader documentation for a description.
*/
static VALUE
@@ -3083,6 +3527,8 @@ rb_gzreader_getc(VALUE obj)
}
/*
+ * Document-method: Zlib::GzipReader#readchar
+ *
* See Zlib::GzipReader documentation for a description.
*/
static VALUE
@@ -3097,6 +3543,8 @@ rb_gzreader_readchar(VALUE obj)
}
/*
+ * Document-method: Zlib::GzipReader#getbyte
+ *
* See Zlib::GzipReader documentation for a description.
*/
static VALUE
@@ -3113,6 +3561,8 @@ rb_gzreader_getbyte(VALUE obj)
}
/*
+ * Document-method: Zlib::GzipReader#readbyte
+ *
* See Zlib::GzipReader documentation for a description.
*/
static VALUE
@@ -3127,6 +3577,8 @@ rb_gzreader_readbyte(VALUE obj)
}
/*
+ * Document-method: Zlib::GzipReader#each_char
+ *
* See Zlib::GzipReader documentation for a description.
*/
static VALUE
@@ -3143,6 +3595,8 @@ rb_gzreader_each_char(VALUE obj)
}
/*
+ * Document-method: Zlib::GzipReader#each_byte
+ *
* See Zlib::GzipReader documentation for a description.
*/
static VALUE
@@ -3159,6 +3613,8 @@ rb_gzreader_each_byte(VALUE obj)
}
/*
+ * Document-method: Zlib::GzipReader#ungetc
+ *
* See Zlib::GzipReader documentation for a description.
*/
static VALUE
@@ -3178,6 +3634,8 @@ rb_gzreader_ungetc(VALUE obj, VALUE s)
}
/*
+ * Document-method: Zlib::GzipReader#ungetbyte
+ *
* See Zlib::GzipReader documentation for a description.
*/
static VALUE
@@ -3226,6 +3684,27 @@ rscheck(const char *rsptr, long rslen, VALUE rs)
rb_raise(rb_eRuntimeError, "rs modified");
}
+static long
+gzreader_charboundary(struct gzfile *gz, long n)
+{
+ char *s = RSTRING_PTR(gz->z.buf);
+ char *e = s + gz->z.buf_filled;
+ char *p = rb_enc_left_char_head(s, s + n, e, gz->enc);
+ long l = p - s;
+ if (l < n) {
+ n = rb_enc_precise_mbclen(p, e, gz->enc);
+ if (MBCLEN_NEEDMORE_P(n)) {
+ if ((l = gzfile_fill(gz, l + MBCLEN_NEEDMORE_LEN(n))) > 0) {
+ return l;
+ }
+ }
+ else if (MBCLEN_CHARFOUND_P(n)) {
+ return l + MBCLEN_CHARFOUND_LEN(n);
+ }
+ }
+ return n;
+}
+
static VALUE
gzreader_gets(int argc, VALUE *argv, VALUE obj)
{
@@ -3234,24 +3713,57 @@ gzreader_gets(int argc, VALUE *argv, VALUE obj)
VALUE dst;
const char *rsptr;
char *p, *res;
- long rslen, n;
+ long rslen, n, limit = -1;
int rspara;
+ rb_encoding *enc = gz->enc;
+ int maxlen = rb_enc_mbmaxlen(enc);
if (argc == 0) {
rs = rb_rs;
}
else {
- rb_scan_args(argc, argv, "1", &rs);
- if (!NIL_P(rs)) {
- Check_Type(rs, T_STRING);
+ VALUE lim, tmp;
+
+ rb_scan_args(argc, argv, "11", &rs, &lim);
+ if (!NIL_P(lim)) {
+ if (!NIL_P(rs)) StringValue(rs);
+ }
+ else if (!NIL_P(rs)) {
+ tmp = rb_check_string_type(rs);
+ if (NIL_P(tmp)) {
+ lim = rs;
+ rs = rb_rs;
+ }
+ else {
+ rs = tmp;
+ }
+ }
+ if (!NIL_P(lim)) {
+ limit = NUM2LONG(lim);
+ if (limit == 0) return rb_str_new(0,0);
}
}
if (NIL_P(rs)) {
- dst = gzfile_read_all(gz);
- if (RSTRING_LEN(dst) != 0) gz->lineno++;
- else
+ if (limit < 0) {
+ dst = gzfile_read_all(gz);
+ if (RSTRING_LEN(dst) == 0) return Qnil;
+ }
+ else if ((n = gzfile_fill(gz, limit)) <= 0) {
return Qnil;
+ }
+ else {
+ if (maxlen > 1 && n >= limit && !GZFILE_IS_FINISHED(gz)) {
+ n = gzreader_charboundary(gz, n);
+ }
+ else {
+ n = limit;
+ }
+ dst = zstream_shift_buffer(&gz->z, n);
+ gzfile_calc_crc(gz, dst);
+ dst = gzfile_newstr(gz, dst);
+ }
+ gz->lineno++;
return dst;
}
@@ -3280,15 +3792,22 @@ gzreader_gets(int argc, VALUE *argv, VALUE obj)
p = RSTRING_PTR(gz->z.buf);
n = rslen;
for (;;) {
+ long filled;
if (n > gz->z.buf_filled) {
if (ZSTREAM_IS_FINISHED(&gz->z)) break;
gzfile_read_more(gz);
p = RSTRING_PTR(gz->z.buf) + n - rslen;
}
if (!rspara) rscheck(rsptr, rslen, rs);
- res = memchr(p, rsptr[0], (gz->z.buf_filled - n + 1));
+ filled = gz->z.buf_filled;
+ if (limit > 0 && filled >= limit) {
+ filled = limit;
+ }
+ res = memchr(p, rsptr[0], (filled - n + 1));
if (!res) {
- n = gz->z.buf_filled + 1;
+ n = filled;
+ if (limit > 0 && filled >= limit) break;
+ n++;
} else {
n += (long)(res - p);
p = res;
@@ -3296,6 +3815,9 @@ gzreader_gets(int argc, VALUE *argv, VALUE obj)
p++, n++;
}
}
+ if (maxlen > 1 && n == limit && (gz->z.buf_filled > n || !ZSTREAM_IS_FINISHED(&gz->z))) {
+ n = gzreader_charboundary(gz, n);
+ }
gz->lineno++;
dst = gzfile_read(gz, n);
@@ -3307,6 +3829,8 @@ gzreader_gets(int argc, VALUE *argv, VALUE obj)
}
/*
+ * Document-method: Zlib::GzipReader#gets
+ *
* See Zlib::GzipReader documentation for a description.
*/
static VALUE
@@ -3321,6 +3845,8 @@ rb_gzreader_gets(int argc, VALUE *argv, VALUE obj)
}
/*
+ * Document-method: Zlib::GzipReader#readline
+ *
* See Zlib::GzipReader documentation for a description.
*/
static VALUE
@@ -3335,6 +3861,8 @@ rb_gzreader_readline(int argc, VALUE *argv, VALUE obj)
}
/*
+ * Document-method: Zlib::GzipReader#each
+ *
* See Zlib::GzipReader documentation for a description.
*/
static VALUE
@@ -3351,6 +3879,8 @@ rb_gzreader_each(int argc, VALUE *argv, VALUE obj)
}
/*
+ * Document-method: Zlib::GzipReader#readlines
+ *
* See Zlib::GzipReader documentation for a description.
*/
static VALUE
@@ -3369,6 +3899,8 @@ rb_gzreader_readlines(int argc, VALUE *argv, VALUE obj)
/*
+ * Document-module: Zlib
+ *
* The Zlib module contains several classes for compressing and decompressing
* streams, and for working with "gzip" files.
*
@@ -3468,10 +4000,14 @@ Init_zlib()
rb_define_module_function(mZlib, "zlib_version", rb_zlib_version, 0);
rb_define_module_function(mZlib, "adler32", rb_zlib_adler32, -1);
+ rb_define_module_function(mZlib, "adler32_combine", rb_zlib_adler32_combine, 3);
rb_define_module_function(mZlib, "crc32", rb_zlib_crc32, -1);
+ rb_define_module_function(mZlib, "crc32_combine", rb_zlib_crc32_combine, 3);
rb_define_module_function(mZlib, "crc_table", rb_zlib_crc_table, 0);
+ /* The Ruby/zlib version string. */
rb_define_const(mZlib, "VERSION", rb_str_new2(RUBY_ZLIB_VERSION));
+ /* The string which represents the version of zlib.h */
rb_define_const(mZlib, "ZLIB_VERSION", rb_str_new2(ZLIB_VERSION));
cZStream = rb_define_class_under(mZlib, "ZStream", rb_cObject);
@@ -3494,12 +4030,19 @@ Init_zlib()
rb_define_method(cZStream, "flush_next_in", rb_zstream_flush_next_in, 0);
rb_define_method(cZStream, "flush_next_out", rb_zstream_flush_next_out, 0);
+ /* Integer representing date types which
+ * ZStream#data_type method returns */
rb_define_const(mZlib, "BINARY", INT2FIX(Z_BINARY));
+ /* Integer representing date types which
+ * ZStream#data_type method returns */
rb_define_const(mZlib, "ASCII", INT2FIX(Z_ASCII));
+ /* Integer representing date types which
+ * ZStream#data_type method returns */
rb_define_const(mZlib, "UNKNOWN", INT2FIX(Z_UNKNOWN));
cDeflate = rb_define_class_under(mZlib, "Deflate", cZStream);
rb_define_singleton_method(cDeflate, "deflate", rb_deflate_s_deflate, -1);
+ rb_define_singleton_method(mZlib, "deflate", rb_deflate_s_deflate, -1);
rb_define_alloc_func(cDeflate, rb_deflate_s_allocate);
rb_define_method(cDeflate, "initialize", rb_deflate_initialize, -1);
rb_define_method(cDeflate, "initialize_copy", rb_deflate_init_copy, 1);
@@ -3511,6 +4054,7 @@ Init_zlib()
cInflate = rb_define_class_under(mZlib, "Inflate", cZStream);
rb_define_singleton_method(cInflate, "inflate", rb_inflate_s_inflate, 1);
+ rb_define_singleton_method(mZlib, "inflate", rb_inflate_s_inflate, 1);
rb_define_alloc_func(cInflate, rb_inflate_s_allocate);
rb_define_method(cInflate, "initialize", rb_inflate_initialize, -1);
rb_define_method(cInflate, "inflate", rb_inflate_inflate, 1);
@@ -3519,23 +4063,71 @@ Init_zlib()
rb_define_method(cInflate, "sync_point?", rb_inflate_sync_point_p, 0);
rb_define_method(cInflate, "set_dictionary", rb_inflate_set_dictionary, 1);
+ /* compression level 0
+ *
+ * Which is an argument for Deflate.new, Deflate#deflate, and so on. */
rb_define_const(mZlib, "NO_COMPRESSION", INT2FIX(Z_NO_COMPRESSION));
+ /* compression level 1
+ *
+ * Which is an argument for Deflate.new, Deflate#deflate, and so on. */
rb_define_const(mZlib, "BEST_SPEED", INT2FIX(Z_BEST_SPEED));
+ /* compression level 9
+ *
+ * Which is an argument for Deflate.new, Deflate#deflate, and so on. */
rb_define_const(mZlib, "BEST_COMPRESSION", INT2FIX(Z_BEST_COMPRESSION));
+ /* compression level -1
+ *
+ * Which is an argument for Deflate.new, Deflate#deflate, and so on. */
rb_define_const(mZlib, "DEFAULT_COMPRESSION",
INT2FIX(Z_DEFAULT_COMPRESSION));
+ /* compression method 1
+ *
+ * Which is an argument for Deflate.new and Deflate#params. */
rb_define_const(mZlib, "FILTERED", INT2FIX(Z_FILTERED));
+ /* compression method 2
+ *
+ * Which is an argument for Deflate.new and Deflate#params. */
rb_define_const(mZlib, "HUFFMAN_ONLY", INT2FIX(Z_HUFFMAN_ONLY));
+ /* compression method 0
+ *
+ * Which is an argument for Deflate.new and Deflate#params. */
rb_define_const(mZlib, "DEFAULT_STRATEGY", INT2FIX(Z_DEFAULT_STRATEGY));
+ /* The default value of windowBits which is an argument for
+ * Deflate.new and Inflate.new.
+ */
rb_define_const(mZlib, "MAX_WBITS", INT2FIX(MAX_WBITS));
+ /* Default value is 8
+ *
+ * The integer representing memory levels.
+ * Which are an argument for Deflate.new, Deflate#params, and so on. */
rb_define_const(mZlib, "DEF_MEM_LEVEL", INT2FIX(DEF_MEM_LEVEL));
+ /* Maximum level is 9
+ *
+ * The integers representing memory levels which are an argument for
+ * Deflate.new, Deflate#params, and so on. */
rb_define_const(mZlib, "MAX_MEM_LEVEL", INT2FIX(MAX_MEM_LEVEL));
+ /* Output control - 0
+ *
+ * The integers to control the output of the deflate stream, which are
+ * an argument for Deflate#deflate and so on. */
rb_define_const(mZlib, "NO_FLUSH", INT2FIX(Z_NO_FLUSH));
+ /* Output control - 2
+ *
+ * The integers to control the output of the deflate stream, which are
+ * an argument for Deflate#deflate and so on. */
rb_define_const(mZlib, "SYNC_FLUSH", INT2FIX(Z_SYNC_FLUSH));
+ /* Output control - 3
+ *
+ * The integers to control the output of the deflate stream, which are
+ * an argument for Deflate#deflate and so on. */
rb_define_const(mZlib, "FULL_FLUSH", INT2FIX(Z_FULL_FLUSH));
+ /* Oputput control - 4
+ *
+ * The integers to control the output of the deflate stream, which are
+ * an argument for Deflate#deflate and so on. */
rb_define_const(mZlib, "FINISH", INT2FIX(Z_FINISH));
#if GZIP_SUPPORT
@@ -3546,10 +4138,15 @@ Init_zlib()
id_seek = rb_intern("seek");
id_close = rb_intern("close");
id_path = rb_intern("path");
+ id_input = rb_intern("@input");
cGzipFile = rb_define_class_under(mZlib, "GzipFile", rb_cObject);
cGzError = rb_define_class_under(cGzipFile, "Error", cZError);
+ /* input gzipped string */
+ rb_define_attr(cGzError, "input", 1, 0);
+ rb_define_method(cGzError, "inspect", gzfile_error_inspect, 0);
+
cNoFooter = rb_define_class_under(cGzipFile, "NoFooter", cGzError);
cCRCError = rb_define_class_under(cGzipFile, "CRCError", cGzError);
cLengthError = rb_define_class_under(cGzipFile,"LengthError",cGzError);
@@ -3618,22 +4215,38 @@ Init_zlib()
rb_define_method(cGzipReader, "lines", rb_gzreader_each, -1);
rb_define_method(cGzipReader, "readlines", rb_gzreader_readlines, -1);
+ /* From GzipFile#os_code - code of current host */
rb_define_const(mZlib, "OS_CODE", INT2FIX(OS_CODE));
+ /* From GzipFile#os_code - 0x00 */
rb_define_const(mZlib, "OS_MSDOS", INT2FIX(OS_MSDOS));
+ /* From GzipFile#os_code - 0x01 */
rb_define_const(mZlib, "OS_AMIGA", INT2FIX(OS_AMIGA));
+ /* From GzipFile#os_code - 0x02 */
rb_define_const(mZlib, "OS_VMS", INT2FIX(OS_VMS));
+ /* From GzipFile#os_code - 0x03 */
rb_define_const(mZlib, "OS_UNIX", INT2FIX(OS_UNIX));
+ /* From GzipFile#os_code - 0x05 */
rb_define_const(mZlib, "OS_ATARI", INT2FIX(OS_ATARI));
+ /* From GzipFile#os_code - 0x06 */
rb_define_const(mZlib, "OS_OS2", INT2FIX(OS_OS2));
+ /* From GzipFile#os_code - 0x07 */
rb_define_const(mZlib, "OS_MACOS", INT2FIX(OS_MACOS));
+ /* From GzipFile#os_code - 0x0a */
rb_define_const(mZlib, "OS_TOPS20", INT2FIX(OS_TOPS20));
+ /* From GzipFile#os_code - 0x0b */
rb_define_const(mZlib, "OS_WIN32", INT2FIX(OS_WIN32));
+ /* From GzipFile#os_code - 0x04 */
rb_define_const(mZlib, "OS_VMCMS", INT2FIX(OS_VMCMS));
+ /* From GzipFile#os_code - 0x08 */
rb_define_const(mZlib, "OS_ZSYSTEM", INT2FIX(OS_ZSYSTEM));
+ /* From GzipFile#os_code - 0x09 */
rb_define_const(mZlib, "OS_CPM", INT2FIX(OS_CPM));
+ /* From GzipFile#os_code - 0x0c */
rb_define_const(mZlib, "OS_QDOS", INT2FIX(OS_QDOS));
+ /* From GzipFile#os_code - 0x0d */
rb_define_const(mZlib, "OS_RISCOS", INT2FIX(OS_RISCOS));
+ /* From GzipFile#os_code - 0xff */
rb_define_const(mZlib, "OS_UNKNOWN", INT2FIX(OS_UNKNOWN));
#endif /* GZIP_SUPPORT */
@@ -3661,6 +4274,77 @@ Init_zlib()
*/
/*
+ * Document-class: Zlib::StreamEnd
+ *
+ * Subclass of Zlib::Error
+ *
+ * When zlib returns a Z_STREAM_END
+ * is return if the end of the compressed data has been reached
+ * and all uncompressed out put has been produced.
+ *
+ */
+
+/*
+ * Document-class: Zlib::NeedDict
+ *
+ * Subclass of Zlib::Error
+ *
+ * When zlib returns a Z_NEED_DICT
+ * if a preset dictionary is needed at this point.
+ *
+ * Used by Zlib::Inflate.inflate and <tt>Zlib.inflate</tt>
+ */
+
+/*
+ * Document-class: Zlib::VersionError
+ *
+ * Subclass of Zlib::Error
+ *
+ * When zlib returns a Z_VERSION_ERROR,
+ * usually if the zlib library version is incompatible with the
+ * version assumed by the caller.
+ *
+ */
+
+/*
+ * Document-class: Zlib::MemError
+ *
+ * Subclass of Zlib::Error
+ *
+ * When zlib returns a Z_MEM_ERROR,
+ * usually if there was not enough memory.
+ *
+ */
+
+/*
+ * Document-class: Zlib::StreamError
+ *
+ * Subclass of Zlib::Error
+ *
+ * When zlib returns a Z_STREAM_ERROR,
+ * usually if the stream state was inconsistent.
+ *
+ */
+
+/*
+ * Document-class: Zlib::BufError
+ *
+ * Subclass of Zlib::Error when zlib returns a Z_BUF_ERROR.
+ *
+ * Usually if no progress is possible.
+ *
+ */
+
+/*
+ * Document-class: Zlib::DataError
+ *
+ * Subclass of Zlib::Error when zlib returns a Z_DATA_ERROR.
+ *
+ * Usually if a stream was prematurely freed.
+ *
+ */
+
+/*
* Document-class: Zlib::GzipFile::Error
*
* Base class of errors that occur when processing GZIP files.
@@ -3669,21 +4353,21 @@ Init_zlib()
/*
* Document-class: Zlib::GzipFile::NoFooter
*
- * Raised when gzip file footer is not found.
+ * Raised when gzip file footer is not found.
*/
/*
* Document-class: Zlib::GzipFile::CRCError
*
* Raised when the CRC checksum recorded in gzip file footer is not equivalent
- * to the CRC checksum of the actual uncompressed data.
+ * to the CRC checksum of the actual uncompressed data.
*/
/*
* Document-class: Zlib::GzipFile::LengthError
*
* Raised when the data length recorded in the gzip file footer is not equivalent
- * to the length of the actual uncompressed data.
+ * to the length of the actual uncompressed data.
*/
diff --git a/file.c b/file.c
index 4b67b02171..67b281aba1 100644
--- a/file.c
+++ b/file.c
@@ -23,6 +23,7 @@
#include "ruby/io.h"
#include "ruby/util.h"
#include "dln.h"
+#include "internal.h"
#ifdef HAVE_UNISTD_H
#include <unistd.h>
@@ -70,15 +71,40 @@ int flock(int, int);
#define lstat stat
#endif
-#ifdef __BEOS__ /* should not change ID if -1 */
+/* define system APIs */
+#ifdef _WIN32
+#define STAT(p, s) rb_w32_ustati64((p), (s))
+#undef lstat
+#define lstat(p, s) rb_w32_ustati64((p), (s))
+#undef access
+#define access(p, m) rb_w32_uaccess((p), (m))
+#undef chmod
+#define chmod(p, m) rb_w32_uchmod((p), (m))
+#undef chown
+#define chown(p, o, g) rb_w32_uchown((p), (o), (g))
+#undef utime
+#define utime(p, t) rb_w32_uutime((p), (t))
+#undef link
+#define link(f, t) rb_w32_ulink((f), (t))
+#undef unlink
+#define unlink(p) rb_w32_uunlink(p)
+#undef rename
+#define rename(f, t) rb_w32_urename((f), (t))
+#else
+#define STAT(p, s) stat((p), (s))
+#endif
+
+#define rb_sys_fail_path(path) rb_sys_fail_str(path)
+
+#if defined(__BEOS__) || defined(__HAIKU__) /* should not change ID if -1 */
static int
be_chown(const char *path, uid_t owner, gid_t group)
{
- if (owner == -1 || group == -1) {
+ if (owner == (uid_t)-1 || group == (gid_t)-1) {
struct stat st;
- if (stat(path, &st) < 0) return -1;
- if (owner == -1) owner = st.st_uid;
- if (group == -1) group = st.st_gid;
+ if (STAT(path, &st) < 0) return -1;
+ if (owner == (uid_t)-1) owner = st.st_uid;
+ if (group == (gid_t)-1) group = st.st_gid;
}
return chown(path, owner, group);
}
@@ -86,42 +112,67 @@ be_chown(const char *path, uid_t owner, gid_t group)
static int
be_fchown(int fd, uid_t owner, gid_t group)
{
- if (owner == -1 || group == -1) {
+ if (owner == (uid_t)-1 || group == (gid_t)-1) {
struct stat st;
if (fstat(fd, &st) < 0) return -1;
- if (owner == -1) owner = st.st_uid;
- if (group == -1) group = st.st_gid;
+ if (owner == (uid_t)-1) owner = st.st_uid;
+ if (group == (gid_t)-1) group = st.st_gid;
}
return fchown(fd, owner, group);
}
#define fchown be_fchown
-#endif /* __BEOS__ */
+#endif /* __BEOS__ || __HAIKU__ */
VALUE rb_cFile;
VALUE rb_mFileTest;
VALUE rb_cStat;
+#define insecure_obj_p(obj, level) ((level) >= 4 || ((level) > 0 && OBJ_TAINTED(obj)))
+
static VALUE
-rb_get_path_check(VALUE obj, int check)
+file_path_convert(VALUE name)
+{
+#ifndef _WIN32 /* non Windows == Unix */
+ rb_encoding *fname_encoding = rb_enc_from_index(ENCODING_GET(name));
+ rb_encoding *fs_encoding;
+ if (rb_default_internal_encoding() != NULL
+ && rb_usascii_encoding() != fname_encoding
+ && rb_ascii8bit_encoding() != fname_encoding
+ && (fs_encoding = rb_filesystem_encoding()) != fname_encoding) {
+ /* Don't call rb_filesystem_encoding() before US-ASCII and ASCII-8BIT */
+ name = rb_str_conv_enc(name, fname_encoding, fs_encoding);
+ }
+#endif
+ return name;
+}
+
+static VALUE
+rb_get_path_check(VALUE obj, int level)
{
VALUE tmp;
ID to_path;
+ rb_encoding *enc;
- if (check) rb_check_safe_obj(obj);
- tmp = rb_check_string_type(obj);
- if (!NIL_P(tmp)) goto exit;
+ if (insecure_obj_p(obj, level)) {
+ rb_insecure_operation();
+ }
CONST_ID(to_path, "to_path");
- if (rb_respond_to(obj, to_path)) {
- tmp = rb_funcall(obj, to_path, 0, 0);
- }
- else {
+ tmp = rb_check_funcall(obj, to_path, 0, 0);
+ if (tmp == Qundef) {
tmp = obj;
}
- exit:
- StringValueCStr(tmp);
- if (check && obj != tmp) {
- rb_check_safe_obj(tmp);
+ StringValue(tmp);
+
+ tmp = file_path_convert(tmp);
+ if (obj != tmp && insecure_obj_p(tmp, level)) {
+ rb_insecure_operation();
+ }
+ enc = rb_enc_get(tmp);
+ if (!rb_enc_asciicompat(enc)) {
+ tmp = rb_str_inspect(tmp);
+ rb_raise(rb_eEncCompatError, "path name must be ASCII-compatible (%s): %s",
+ rb_enc_name(enc), RSTRING_PTR(tmp));
}
return rb_str_new4(tmp);
}
@@ -135,19 +186,41 @@ rb_get_path_no_checksafe(VALUE obj)
VALUE
rb_get_path(VALUE obj)
{
- return rb_get_path_check(obj, 1);
+ return rb_get_path_check(obj, rb_safe_level());
+}
+
+VALUE
+rb_str_encode_ospath(VALUE path)
+{
+#ifdef _WIN32
+ rb_encoding *enc = rb_enc_get(path);
+ if (enc != rb_ascii8bit_encoding()) {
+ rb_encoding *utf8 = rb_utf8_encoding();
+ if (enc != utf8)
+ path = rb_str_encode(path, rb_enc_from_encoding(utf8), 0, Qnil);
+ }
+ else if (RSTRING_LEN(path) > 0) {
+ path = rb_str_dup(path);
+ rb_enc_associate(path, rb_filesystem_encoding());
+ path = rb_str_encode(path, rb_enc_from_encoding(rb_utf8_encoding()), 0, Qnil);
+ }
+#endif
+ return path;
}
static long
-apply2files(void (*func)(const char *, void *), VALUE vargs, void *arg)
+apply2files(void (*func)(const char *, VALUE, void *), VALUE vargs, void *arg)
{
long i;
volatile VALUE path;
rb_secure(4);
for (i=0; i<RARRAY_LEN(vargs); i++) {
+ const char *s;
path = rb_get_path(RARRAY_PTR(vargs)[i]);
- (*func)(StringValueCStr(path), arg);
+ path = rb_str_encode_ospath(path);
+ s = RSTRING_PTR(path);
+ (*func)(s, path, arg);
}
return RARRAY_LEN(vargs);
@@ -155,7 +228,7 @@ apply2files(void (*func)(const char *, void *), VALUE vargs, void *arg)
/*
* call-seq:
- * file.path -> filename
+ * file.path -> filename
*
* Returns the pathname used to create <i>file</i> as a string. Does
* not normalize the name.
@@ -176,6 +249,17 @@ rb_file_path(VALUE obj)
return rb_obj_taint(rb_str_dup(fptr->pathv));
}
+static size_t
+stat_memsize(const void *p)
+{
+ return p ? sizeof(struct stat) : 0;
+}
+
+static const rb_data_type_t stat_data_type = {
+ "stat",
+ {NULL, RUBY_TYPED_DEFAULT_FREE, stat_memsize,},
+};
+
static VALUE
stat_new_0(VALUE klass, struct stat *st)
{
@@ -185,7 +269,7 @@ stat_new_0(VALUE klass, struct stat *st)
nst = ALLOC(struct stat);
*nst = *st;
}
- return Data_Wrap_Struct(klass, NULL, -1, nst);
+ return TypedData_Wrap_Struct(klass, &stat_data_type, nst);
}
static VALUE
@@ -198,7 +282,7 @@ static struct stat*
get_stat(VALUE self)
{
struct stat* st;
- Data_Get_Struct(self, struct stat, st);
+ TypedData_Get_Struct(self, struct stat, &stat_data_type, st);
if (!st) rb_raise(rb_eTypeError, "uninitialized File::Stat");
return st;
}
@@ -207,7 +291,7 @@ static struct timespec stat_mtimespec(struct stat *st);
/*
* call-seq:
- * stat <=> other_stat => -1, 0, 1
+ * stat <=> other_stat -> -1, 0, 1, nil
*
* Compares <code>File::Stat</code> objects by comparing their
* respective modification times.
@@ -237,9 +321,19 @@ rb_stat_cmp(VALUE self, VALUE other)
#define ST2UINT(val) ((val) & ~(~1UL << (sizeof(val) * CHAR_BIT - 1)))
+#ifndef NUM2DEVT
+# define NUM2DEVT(v) NUM2UINT(v)
+#endif
+#ifndef DEVT2NUM
+# define DEVT2NUM(v) UINT2NUM(v)
+#endif
+#ifndef PRI_DEVT_PREFIX
+# define PRI_DEVT_PREFIX ""
+#endif
+
/*
* call-seq:
- * stat.dev => fixnum
+ * stat.dev -> fixnum
*
* Returns an integer representing the device on which <i>stat</i>
* resides.
@@ -250,12 +344,12 @@ rb_stat_cmp(VALUE self, VALUE other)
static VALUE
rb_stat_dev(VALUE self)
{
- return INT2NUM(get_stat(self)->st_dev);
+ return DEVT2NUM(get_stat(self)->st_dev);
}
/*
* call-seq:
- * stat.dev_major => fixnum
+ * stat.dev_major -> fixnum
*
* Returns the major part of <code>File_Stat#dev</code> or
* <code>nil</code>.
@@ -268,8 +362,7 @@ static VALUE
rb_stat_dev_major(VALUE self)
{
#if defined(major)
- long dev = get_stat(self)->st_dev;
- return ULONG2NUM(major(dev));
+ return INT2NUM(major(get_stat(self)->st_dev));
#else
return Qnil;
#endif
@@ -277,7 +370,7 @@ rb_stat_dev_major(VALUE self)
/*
* call-seq:
- * stat.dev_minor => fixnum
+ * stat.dev_minor -> fixnum
*
* Returns the minor part of <code>File_Stat#dev</code> or
* <code>nil</code>.
@@ -290,8 +383,7 @@ static VALUE
rb_stat_dev_minor(VALUE self)
{
#if defined(minor)
- long dev = get_stat(self)->st_dev;
- return ULONG2NUM(minor(dev));
+ return INT2NUM(minor(get_stat(self)->st_dev));
#else
return Qnil;
#endif
@@ -299,7 +391,7 @@ rb_stat_dev_minor(VALUE self)
/*
* call-seq:
- * stat.ino => fixnum
+ * stat.ino -> fixnum
*
* Returns the inode number for <i>stat</i>.
*
@@ -319,7 +411,7 @@ rb_stat_ino(VALUE self)
/*
* call-seq:
- * stat.mode => fixnum
+ * stat.mode -> fixnum
*
* Returns an integer representing the permission bits of
* <i>stat</i>. The meaning of the bits is platform dependent; on
@@ -338,7 +430,7 @@ rb_stat_mode(VALUE self)
/*
* call-seq:
- * stat.nlink => fixnum
+ * stat.nlink -> fixnum
*
* Returns the number of hard links to <i>stat</i>.
*
@@ -356,7 +448,7 @@ rb_stat_nlink(VALUE self)
/*
* call-seq:
- * stat.uid => fixnum
+ * stat.uid -> fixnum
*
* Returns the numeric user id of the owner of <i>stat</i>.
*
@@ -372,7 +464,7 @@ rb_stat_uid(VALUE self)
/*
* call-seq:
- * stat.gid => fixnum
+ * stat.gid -> fixnum
*
* Returns the numeric group id of the owner of <i>stat</i>.
*
@@ -388,7 +480,7 @@ rb_stat_gid(VALUE self)
/*
* call-seq:
- * stat.rdev => fixnum or nil
+ * stat.rdev -> fixnum or nil
*
* Returns an integer representing the device type on which
* <i>stat</i> resides. Returns <code>nil</code> if the operating
@@ -402,7 +494,7 @@ static VALUE
rb_stat_rdev(VALUE self)
{
#ifdef HAVE_ST_RDEV
- return ULONG2NUM(get_stat(self)->st_rdev);
+ return DEVT2NUM(get_stat(self)->st_rdev);
#else
return Qnil;
#endif
@@ -410,7 +502,7 @@ rb_stat_rdev(VALUE self)
/*
* call-seq:
- * stat.rdev_major => fixnum
+ * stat.rdev_major -> fixnum
*
* Returns the major part of <code>File_Stat#rdev</code> or
* <code>nil</code>.
@@ -423,8 +515,7 @@ static VALUE
rb_stat_rdev_major(VALUE self)
{
#if defined(HAVE_ST_RDEV) && defined(major)
- long rdev = get_stat(self)->st_rdev;
- return ULONG2NUM(major(rdev));
+ return DEVT2NUM(major(get_stat(self)->st_rdev));
#else
return Qnil;
#endif
@@ -432,7 +523,7 @@ rb_stat_rdev_major(VALUE self)
/*
* call-seq:
- * stat.rdev_minor => fixnum
+ * stat.rdev_minor -> fixnum
*
* Returns the minor part of <code>File_Stat#rdev</code> or
* <code>nil</code>.
@@ -445,8 +536,7 @@ static VALUE
rb_stat_rdev_minor(VALUE self)
{
#if defined(HAVE_ST_RDEV) && defined(minor)
- long rdev = get_stat(self)->st_rdev;
- return ULONG2NUM(minor(rdev));
+ return DEVT2NUM(minor(get_stat(self)->st_rdev));
#else
return Qnil;
#endif
@@ -454,7 +544,7 @@ rb_stat_rdev_minor(VALUE self)
/*
* call-seq:
- * stat.size => fixnum
+ * stat.size -> fixnum
*
* Returns the size of <i>stat</i> in bytes.
*
@@ -469,7 +559,7 @@ rb_stat_size(VALUE self)
/*
* call-seq:
- * stat.blksize => integer or nil
+ * stat.blksize -> integer or nil
*
* Returns the native file system's block size. Will return <code>nil</code>
* on platforms that don't support this information.
@@ -490,7 +580,7 @@ rb_stat_blksize(VALUE self)
/*
* call-seq:
- * stat.blocks => integer or nil
+ * stat.blocks -> integer or nil
*
* Returns the number of native file system blocks allocated for this
* file, or <code>nil</code> if the operating system doesn't
@@ -587,7 +677,7 @@ stat_ctime(struct stat *st)
/*
* call-seq:
- * stat.atime => time
+ * stat.atime -> time
*
* Returns the last access time for this file as an object of class
* <code>Time</code>.
@@ -604,7 +694,7 @@ rb_stat_atime(VALUE self)
/*
* call-seq:
- * stat.mtime -> aTime
+ * stat.mtime -> aTime
*
* Returns the modification time of <i>stat</i>.
*
@@ -620,12 +710,14 @@ rb_stat_mtime(VALUE self)
/*
* call-seq:
- * stat.ctime -> aTime
+ * stat.ctime -> aTime
*
* Returns the change time for <i>stat</i> (that is, the time
* directory information about the file was changed, not the file
* itself).
*
+ * Note that on Windows (NTFS), returns creation time (birth time).
+ *
* File.stat("testfile").ctime #=> Wed Apr 09 08:53:14 CDT 2003
*
*/
@@ -638,7 +730,7 @@ rb_stat_ctime(VALUE self)
/*
* call-seq:
- * stat.inspect => string
+ * stat.inspect -> string
*
* Produce a nicely formatted description of <i>stat</i>.
*
@@ -675,7 +767,7 @@ rb_stat_inspect(VALUE self)
};
struct stat* st;
- Data_Get_Struct(self, struct stat, st);
+ TypedData_Get_Struct(self, struct stat, &stat_data_type, st);
if (!st) {
return rb_sprintf("#<%s: uninitialized>", rb_obj_classname(self));
}
@@ -694,10 +786,10 @@ rb_stat_inspect(VALUE self)
rb_str_buf_cat2(str, "=");
v = (*member[i].func)(self);
if (i == 2) { /* mode */
- rb_str_catf(str, "0%lo", NUM2ULONG(v));
+ rb_str_catf(str, "0%lo", (unsigned long)NUM2ULONG(v));
}
else if (i == 0 || i == 6) { /* dev/rdev */
- rb_str_catf(str, "0x%lx", NUM2ULONG(v));
+ rb_str_catf(str, "0x%"PRI_DEVT_PREFIX"x", NUM2DEVT(v));
}
else {
rb_str_append(str, rb_inspect(v));
@@ -723,7 +815,8 @@ rb_stat(VALUE file, struct stat *st)
return fstat(fptr->fd, st);
}
FilePathValue(file);
- return stat(StringValueCStr(file), st);
+ file = rb_str_encode_ospath(file);
+ return STAT(StringValueCStr(file), st);
}
#ifdef _WIN32
@@ -742,10 +835,21 @@ w32_io_info(VALUE *file, BY_HANDLE_FILE_INFORMATION *st)
if (f == (HANDLE)-1) return INVALID_HANDLE_VALUE;
}
else {
+ VALUE tmp;
+ WCHAR *ptr;
+ int len;
+ VALUE v;
+
FilePathValue(*file);
- f = CreateFile(StringValueCStr(*file), 0,
- FILE_SHARE_READ | FILE_SHARE_WRITE, NULL, OPEN_EXISTING,
- rb_w32_iswin95() ? 0 : FILE_FLAG_BACKUP_SEMANTICS, NULL);
+ tmp = rb_str_encode_ospath(*file);
+ len = MultiByteToWideChar(CP_UTF8, 0, RSTRING_PTR(tmp), -1, NULL, 0);
+ ptr = ALLOCV_N(WCHAR, v, len);
+ MultiByteToWideChar(CP_UTF8, 0, RSTRING_PTR(tmp), -1, ptr, len);
+ f = CreateFileW(ptr, 0,
+ FILE_SHARE_READ | FILE_SHARE_WRITE, NULL, OPEN_EXISTING,
+ rb_w32_iswin95() ? 0 : FILE_FLAG_BACKUP_SEMANTICS,
+ NULL);
+ ALLOCV_END(v);
if (f == INVALID_HANDLE_VALUE) return f;
ret = f;
}
@@ -760,7 +864,7 @@ w32_io_info(VALUE *file, BY_HANDLE_FILE_INFORMATION *st)
/*
* call-seq:
- * File.stat(file_name) => stat
+ * File.stat(file_name) -> stat
*
* Returns a <code>File::Stat</code> object for the named file (see
* <code>File::Stat</code>).
@@ -777,14 +881,14 @@ rb_file_s_stat(VALUE klass, VALUE fname)
rb_secure(4);
FilePathValue(fname);
if (rb_stat(fname, &st) < 0) {
- rb_sys_fail(RSTRING_PTR(fname));
+ rb_sys_fail_path(fname);
}
return stat_new(&st);
}
/*
* call-seq:
- * ios.stat => stat
+ * ios.stat -> stat
*
* Returns status information for <em>ios</em> as an object of type
* <code>File::Stat</code>.
@@ -803,7 +907,6 @@ rb_io_stat(VALUE obj)
rb_io_t *fptr;
struct stat st;
-#define rb_sys_fail_path(path) rb_sys_fail(NIL_P(path) ? 0 : RSTRING_PTR(path))
GetOpenFile(obj, fptr);
if (fstat(fptr->fd, &st) == -1) {
rb_sys_fail_path(fptr->pathv);
@@ -813,7 +916,7 @@ rb_io_stat(VALUE obj)
/*
* call-seq:
- * File.lstat(file_name) => stat
+ * File.lstat(file_name) -> stat
*
* Same as <code>File::stat</code>, but does not follow the last symbolic
* link. Instead, reports on the link itself.
@@ -833,8 +936,9 @@ rb_file_s_lstat(VALUE klass, VALUE fname)
rb_secure(2);
FilePathValue(fname);
+ fname = rb_str_encode_ospath(fname);
if (lstat(StringValueCStr(fname), &st) == -1) {
- rb_sys_fail(RSTRING_PTR(fname));
+ rb_sys_fail_path(fname);
}
return stat_new(&st);
#else
@@ -844,7 +948,7 @@ rb_file_s_lstat(VALUE klass, VALUE fname)
/*
* call-seq:
- * file.lstat => stat
+ * file.lstat -> stat
*
* Same as <code>IO#stat</code>, but does not follow the last symbolic
* link. Instead, reports on the link itself.
@@ -862,11 +966,13 @@ rb_file_lstat(VALUE obj)
#ifdef HAVE_LSTAT
rb_io_t *fptr;
struct stat st;
+ VALUE path;
rb_secure(2);
GetOpenFile(obj, fptr);
if (NIL_P(fptr->pathv)) return Qnil;
- if (lstat(RSTRING_PTR(fptr->pathv), &st) == -1) {
+ path = rb_str_encode_ospath(fptr->pathv);
+ if (lstat(RSTRING_PTR(path), &st) == -1) {
rb_sys_fail_path(fptr->pathv);
}
return stat_new(&st);
@@ -875,13 +981,13 @@ rb_file_lstat(VALUE obj)
#endif
}
-#ifndef HAVE_GROUP_MEMBER
static int
-group_member(GETGROUPS_T gid)
+rb_group_member(GETGROUPS_T gid)
{
+ int rv = FALSE;
#ifndef _WIN32
if (getgid() == gid || getegid() == gid)
- return Qtrue;
+ return TRUE;
# ifdef HAVE_GETGROUPS
# ifndef NGROUPS
@@ -892,19 +998,23 @@ group_member(GETGROUPS_T gid)
# endif
# endif
{
- GETGROUPS_T gary[NGROUPS];
+ GETGROUPS_T *gary;
int anum;
+ gary = xmalloc(NGROUPS * sizeof(GETGROUPS_T));
anum = getgroups(NGROUPS, gary);
- while (--anum >= 0)
- if (gary[anum] == gid)
- return Qtrue;
+ while (--anum >= 0) {
+ if (gary[anum] == gid) {
+ rv = TRUE;
+ break;
+ }
+ }
+ xfree(gary);
}
# endif
#endif
- return Qfalse;
+ return rv;
}
-#endif
#ifndef S_IXUGO
# define S_IXUGO (S_IXUSR | S_IXGRP | S_IXOTH)
@@ -922,7 +1032,8 @@ eaccess(const char *path, int mode)
struct stat st;
rb_uid_t euid;
- if (stat(path, &st) < 0) return -1;
+ if (STAT(path, &st) < 0)
+ return -1;
euid = geteuid();
@@ -941,21 +1052,24 @@ eaccess(const char *path, int mode)
if (st.st_uid == euid) /* owner */
mode <<= 6;
- else if (group_member(st.st_gid))
+ else if (rb_group_member(st.st_gid))
mode <<= 3;
- if ((st.st_mode & mode) == mode) return 0;
+ if ((int)(st.st_mode & mode) == mode) return 0;
return -1;
#else
-# if defined(_MSC_VER) || defined(__MINGW32__)
- mode &= ~1;
-# endif
return access(path, mode);
#endif
}
#endif
+static inline int
+access_internal(const char *path, int mode)
+{
+ return access(path, mode);
+}
+
/*
* Document-class: FileTest
@@ -968,21 +1082,11 @@ eaccess(const char *path, int mode)
*/
/*
- * File.directory?(file_name) => true or false
- * File.directory?(file_name) => true or false
- *
- * Returns <code>true</code> if the named file is a directory,
- * <code>false</code> otherwise.
- *
- * File.directory?(".")
- */
-
-/*
* Document-method: exist?
*
* call-seq:
- * Dir.exist?(file_name) => true or false
- * Dir.exists?(file_name) => true or false
+ * Dir.exist?(file_name) -> true or false
+ * Dir.exists?(file_name) -> true or false
*
* Returns <code>true</code> if the named file is a directory,
* <code>false</code> otherwise.
@@ -993,10 +1097,11 @@ eaccess(const char *path, int mode)
* Document-method: directory?
*
* call-seq:
- * File.directory?(file_name) => true or false
+ * File.directory?(file_name) -> true or false
*
* Returns <code>true</code> if the named file is a directory,
- * <code>false</code> otherwise.
+ * or a symlink that points at a directory, and <code>false</code>
+ * otherwise.
*
* File.directory?(".")
*/
@@ -1005,7 +1110,7 @@ VALUE
rb_file_directory_p(VALUE obj, VALUE fname)
{
#ifndef S_ISDIR
-# define S_ISDIR(m) ((m & S_IFMT) == S_IFDIR)
+# define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR)
#endif
struct stat st;
@@ -1017,7 +1122,7 @@ rb_file_directory_p(VALUE obj, VALUE fname)
/*
* call-seq:
- * File.pipe?(file_name) => true or false
+ * File.pipe?(file_name) -> true or false
*
* Returns <code>true</code> if the named file is a pipe.
*/
@@ -1027,7 +1132,7 @@ rb_file_pipe_p(VALUE obj, VALUE fname)
{
#ifdef S_IFIFO
# ifndef S_ISFIFO
-# define S_ISFIFO(m) ((m & S_IFMT) == S_IFIFO)
+# define S_ISFIFO(m) (((m) & S_IFMT) == S_IFIFO)
# endif
struct stat st;
@@ -1041,7 +1146,7 @@ rb_file_pipe_p(VALUE obj, VALUE fname)
/*
* call-seq:
- * File.symlink?(file_name) => true or false
+ * File.symlink?(file_name) -> true or false
*
* Returns <code>true</code> if the named file is a symbolic link.
*/
@@ -1054,10 +1159,10 @@ rb_file_symlink_p(VALUE obj, VALUE fname)
# define S_ISLNK(m) _S_ISLNK(m)
# else
# ifdef _S_IFLNK
-# define S_ISLNK(m) ((m & S_IFMT) == _S_IFLNK)
+# define S_ISLNK(m) (((m) & S_IFMT) == _S_IFLNK)
# else
# ifdef S_IFLNK
-# define S_ISLNK(m) ((m & S_IFMT) == S_IFLNK)
+# define S_ISLNK(m) (((m) & S_IFMT) == S_IFLNK)
# endif
# endif
# endif
@@ -1068,6 +1173,7 @@ rb_file_symlink_p(VALUE obj, VALUE fname)
rb_secure(2);
FilePathValue(fname);
+ fname = rb_str_encode_ospath(fname);
if (lstat(StringValueCStr(fname), &st) < 0) return Qfalse;
if (S_ISLNK(st.st_mode)) return Qtrue;
#endif
@@ -1077,7 +1183,7 @@ rb_file_symlink_p(VALUE obj, VALUE fname)
/*
* call-seq:
- * File.socket?(file_name) => true or false
+ * File.socket?(file_name) -> true or false
*
* Returns <code>true</code> if the named file is a socket.
*/
@@ -1090,10 +1196,10 @@ rb_file_socket_p(VALUE obj, VALUE fname)
# define S_ISSOCK(m) _S_ISSOCK(m)
# else
# ifdef _S_IFSOCK
-# define S_ISSOCK(m) ((m & S_IFMT) == _S_IFSOCK)
+# define S_ISSOCK(m) (((m) & S_IFMT) == _S_IFSOCK)
# else
# ifdef S_IFSOCK
-# define S_ISSOCK(m) ((m & S_IFMT) == S_IFSOCK)
+# define S_ISSOCK(m) (((m) & S_IFMT) == S_IFSOCK)
# endif
# endif
# endif
@@ -1111,7 +1217,7 @@ rb_file_socket_p(VALUE obj, VALUE fname)
/*
* call-seq:
- * File.blockdev?(file_name) => true or false
+ * File.blockdev?(file_name) -> true or false
*
* Returns <code>true</code> if the named file is a block device.
*/
@@ -1121,7 +1227,7 @@ rb_file_blockdev_p(VALUE obj, VALUE fname)
{
#ifndef S_ISBLK
# ifdef S_IFBLK
-# define S_ISBLK(m) ((m & S_IFMT) == S_IFBLK)
+# define S_ISBLK(m) (((m) & S_IFMT) == S_IFBLK)
# else
# define S_ISBLK(m) (0) /* anytime false */
# endif
@@ -1139,7 +1245,7 @@ rb_file_blockdev_p(VALUE obj, VALUE fname)
/*
* call-seq:
- * File.chardev?(file_name) => true or false
+ * File.chardev?(file_name) -> true or false
*
* Returns <code>true</code> if the named file is a character device.
*/
@@ -1147,7 +1253,7 @@ static VALUE
rb_file_chardev_p(VALUE obj, VALUE fname)
{
#ifndef S_ISCHR
-# define S_ISCHR(m) ((m & S_IFMT) == S_IFCHR)
+# define S_ISCHR(m) (((m) & S_IFMT) == S_IFCHR)
#endif
struct stat st;
@@ -1160,8 +1266,8 @@ rb_file_chardev_p(VALUE obj, VALUE fname)
/*
* call-seq:
- * File.exist?(file_name) => true or false
- * File.exists?(file_name) => true or false
+ * File.exist?(file_name) -> true or false
+ * File.exists?(file_name) -> true or false
*
* Return <code>true</code> if the named file exists.
*/
@@ -1177,7 +1283,7 @@ rb_file_exist_p(VALUE obj, VALUE fname)
/*
* call-seq:
- * File.readable?(file_name) => true or false
+ * File.readable?(file_name) -> true or false
*
* Returns <code>true</code> if the named file is readable by the effective
* user id of this process.
@@ -1188,13 +1294,14 @@ rb_file_readable_p(VALUE obj, VALUE fname)
{
rb_secure(2);
FilePathValue(fname);
+ fname = rb_str_encode_ospath(fname);
if (eaccess(StringValueCStr(fname), R_OK) < 0) return Qfalse;
return Qtrue;
}
/*
* call-seq:
- * File.readable_real?(file_name) => true or false
+ * File.readable_real?(file_name) -> true or false
*
* Returns <code>true</code> if the named file is readable by the real
* user id of this process.
@@ -1205,7 +1312,8 @@ rb_file_readable_real_p(VALUE obj, VALUE fname)
{
rb_secure(2);
FilePathValue(fname);
- if (access(StringValueCStr(fname), R_OK) < 0) return Qfalse;
+ fname = rb_str_encode_ospath(fname);
+ if (access_internal(StringValueCStr(fname), R_OK) < 0) return Qfalse;
return Qtrue;
}
@@ -1219,16 +1327,16 @@ rb_file_readable_real_p(VALUE obj, VALUE fname)
/*
* call-seq:
- * File.world_readable?(file_name) => fixnum or nil
+ * File.world_readable?(file_name) -> fixnum or nil
*
* If <i>file_name</i> is readable by others, returns an integer
* representing the file permission bits of <i>file_name</i>. Returns
* <code>nil</code> otherwise. The meaning of the bits is platform
* dependent; on Unix systems, see <code>stat(2)</code>.
*
- * File.world_readable?("/etc/passwd") # => 420
+ * File.world_readable?("/etc/passwd") #=> 420
* m = File.world_readable?("/etc/passwd")
- * sprintf("%o", m) # => "644"
+ * sprintf("%o", m) #=> "644"
*/
static VALUE
@@ -1247,7 +1355,7 @@ rb_file_world_readable_p(VALUE obj, VALUE fname)
/*
* call-seq:
- * File.writable?(file_name) => true or false
+ * File.writable?(file_name) -> true or false
*
* Returns <code>true</code> if the named file is writable by the effective
* user id of this process.
@@ -1258,13 +1366,14 @@ rb_file_writable_p(VALUE obj, VALUE fname)
{
rb_secure(2);
FilePathValue(fname);
+ fname = rb_str_encode_ospath(fname);
if (eaccess(StringValueCStr(fname), W_OK) < 0) return Qfalse;
return Qtrue;
}
/*
* call-seq:
- * File.writable_real?(file_name) => true or false
+ * File.writable_real?(file_name) -> true or false
*
* Returns <code>true</code> if the named file is writable by the real
* user id of this process.
@@ -1275,13 +1384,14 @@ rb_file_writable_real_p(VALUE obj, VALUE fname)
{
rb_secure(2);
FilePathValue(fname);
- if (access(StringValueCStr(fname), W_OK) < 0) return Qfalse;
+ fname = rb_str_encode_ospath(fname);
+ if (access_internal(StringValueCStr(fname), W_OK) < 0) return Qfalse;
return Qtrue;
}
/*
* call-seq:
- * File.world_writable?(file_name) => fixnum or nil
+ * File.world_writable?(file_name) -> fixnum or nil
*
* If <i>file_name</i> is writable by others, returns an integer
* representing the file permission bits of <i>file_name</i>. Returns
@@ -1309,7 +1419,7 @@ rb_file_world_writable_p(VALUE obj, VALUE fname)
/*
* call-seq:
- * File.executable?(file_name) => true or false
+ * File.executable?(file_name) -> true or false
*
* Returns <code>true</code> if the named file is executable by the effective
* user id of this process.
@@ -1320,13 +1430,14 @@ rb_file_executable_p(VALUE obj, VALUE fname)
{
rb_secure(2);
FilePathValue(fname);
+ fname = rb_str_encode_ospath(fname);
if (eaccess(StringValueCStr(fname), X_OK) < 0) return Qfalse;
return Qtrue;
}
/*
* call-seq:
- * File.executable_real?(file_name) => true or false
+ * File.executable_real?(file_name) -> true or false
*
* Returns <code>true</code> if the named file is executable by the real
* user id of this process.
@@ -1337,17 +1448,18 @@ rb_file_executable_real_p(VALUE obj, VALUE fname)
{
rb_secure(2);
FilePathValue(fname);
- if (access(StringValueCStr(fname), X_OK) < 0) return Qfalse;
+ fname = rb_str_encode_ospath(fname);
+ if (access_internal(StringValueCStr(fname), X_OK) < 0) return Qfalse;
return Qtrue;
}
#ifndef S_ISREG
-# define S_ISREG(m) ((m & S_IFMT) == S_IFREG)
+# define S_ISREG(m) (((m) & S_IFMT) == S_IFREG)
#endif
/*
* call-seq:
- * File.file?(file_name) => true or false
+ * File.file?(file_name) -> true or false
*
* Returns <code>true</code> if the named file exists and is a
* regular file.
@@ -1365,7 +1477,7 @@ rb_file_file_p(VALUE obj, VALUE fname)
/*
* call-seq:
- * File.zero?(file_name) => true or false
+ * File.zero?(file_name) -> true or false
*
* Returns <code>true</code> if the named file exists and has
* a zero size.
@@ -1383,7 +1495,7 @@ rb_file_zero_p(VALUE obj, VALUE fname)
/*
* call-seq:
- * File.size?(file_name) => Integer or nil
+ * File.size?(file_name) -> Integer or nil
*
* Returns +nil+ if +file_name+ doesn't exist or has zero size, the size of the
* file otherwise.
@@ -1401,7 +1513,7 @@ rb_file_size_p(VALUE obj, VALUE fname)
/*
* call-seq:
- * File.owned?(file_name) => true or false
+ * File.owned?(file_name) -> true or false
*
* Returns <code>true</code> if the named file exists and the
* effective used id of the calling process is the owner of
@@ -1430,7 +1542,7 @@ rb_file_rowned_p(VALUE obj, VALUE fname)
/*
* call-seq:
- * File.grpowned?(file_name) => true or false
+ * File.grpowned?(file_name) -> true or false
*
* Returns <code>true</code> if the named file exists and the
* effective group id of the calling process is the owner of
@@ -1444,7 +1556,7 @@ rb_file_grpowned_p(VALUE obj, VALUE fname)
struct stat st;
if (rb_stat(fname, &st) < 0) return Qfalse;
- if (group_member(st.st_gid)) return Qtrue;
+ if (rb_group_member(st.st_gid)) return Qtrue;
#endif
return Qfalse;
}
@@ -1457,7 +1569,8 @@ check3rdbyte(VALUE fname, int mode)
rb_secure(2);
FilePathValue(fname);
- if (stat(StringValueCStr(fname), &st) < 0) return Qfalse;
+ fname = rb_str_encode_ospath(fname);
+ if (STAT(StringValueCStr(fname), &st) < 0) return Qfalse;
if (st.st_mode & mode) return Qtrue;
return Qfalse;
}
@@ -1465,7 +1578,7 @@ check3rdbyte(VALUE fname, int mode)
/*
* call-seq:
- * File.setuid?(file_name) => true or false
+ * File.setuid?(file_name) -> true or false
*
* Returns <code>true</code> if the named file has the setuid bit set.
*/
@@ -1482,7 +1595,7 @@ rb_file_suid_p(VALUE obj, VALUE fname)
/*
* call-seq:
- * File.setgid?(file_name) => true or false
+ * File.setgid?(file_name) -> true or false
*
* Returns <code>true</code> if the named file has the setgid bit set.
*/
@@ -1499,7 +1612,7 @@ rb_file_sgid_p(VALUE obj, VALUE fname)
/*
* call-seq:
- * File.sticky?(file_name) => true or false
+ * File.sticky?(file_name) -> true or false
*
* Returns <code>true</code> if the named file has the sticky bit set.
*/
@@ -1516,7 +1629,7 @@ rb_file_sticky_p(VALUE obj, VALUE fname)
/*
* call-seq:
- * File.identical?(file_1, file_2) => true or false
+ * File.identical?(file_1, file_2) -> true or false
*
* Returns <code>true</code> if the named files are identical.
*
@@ -1542,13 +1655,13 @@ rb_file_identical_p(VALUE obj, VALUE fname1, VALUE fname2)
if (st1.st_dev != st2.st_dev) return Qfalse;
if (st1.st_ino != st2.st_ino) return Qfalse;
#else
-#ifdef _WIN32
+# ifdef _WIN32
BY_HANDLE_FILE_INFORMATION st1, st2;
HANDLE f1 = 0, f2 = 0;
-#endif
+# endif
rb_secure(2);
-#ifdef _WIN32
+# ifdef _WIN32
f1 = w32_io_info(&fname1, &st1);
if (f1 == INVALID_HANDLE_VALUE) return Qfalse;
f2 = w32_io_info(&fname2, &st2);
@@ -1562,13 +1675,15 @@ rb_file_identical_p(VALUE obj, VALUE fname1, VALUE fname2)
return Qtrue;
if (!f1 || !f2) return Qfalse;
if (rb_w32_iswin95()) return Qfalse;
-#else
+# else
FilePathValue(fname1);
fname1 = rb_str_new4(fname1);
+ fname1 = rb_str_encode_ospath(fname1);
FilePathValue(fname2);
+ fname2 = rb_str_encode_ospath(fname2);
if (access(RSTRING_PTR(fname1), 0)) return Qfalse;
if (access(RSTRING_PTR(fname2), 0)) return Qfalse;
-#endif
+# endif
fname1 = rb_file_expand_path(fname1, Qnil);
fname2 = rb_file_expand_path(fname2, Qnil);
if (RSTRING_LEN(fname1) != RSTRING_LEN(fname2)) return Qfalse;
@@ -1580,7 +1695,7 @@ rb_file_identical_p(VALUE obj, VALUE fname1, VALUE fname2)
/*
* call-seq:
- * File.size(file_name) => integer
+ * File.size(file_name) -> integer
*
* Returns the size of <code>file_name</code>.
*/
@@ -1592,7 +1707,7 @@ rb_file_s_size(VALUE klass, VALUE fname)
if (rb_stat(fname, &st) < 0) {
FilePathValue(fname);
- rb_sys_fail(RSTRING_PTR(fname));
+ rb_sys_fail_path(fname);
}
return OFFT2NUM(st.st_size);
}
@@ -1640,7 +1755,7 @@ rb_file_ftype(const struct stat *st)
/*
* call-seq:
- * File.ftype(file_name) => string
+ * File.ftype(file_name) -> string
*
* Identifies the type of the named file; the return string is one of
* ``<code>file</code>'', ``<code>directory</code>'',
@@ -1660,8 +1775,9 @@ rb_file_s_ftype(VALUE klass, VALUE fname)
rb_secure(2);
FilePathValue(fname);
+ fname = rb_str_encode_ospath(fname);
if (lstat(StringValueCStr(fname), &st) == -1) {
- rb_sys_fail(RSTRING_PTR(fname));
+ rb_sys_fail_path(fname);
}
return rb_file_ftype(&st);
@@ -1669,7 +1785,7 @@ rb_file_s_ftype(VALUE klass, VALUE fname)
/*
* call-seq:
- * File.atime(file_name) => time
+ * File.atime(file_name) -> time
*
* Returns the last access time for the named file as a Time object).
*
@@ -1684,14 +1800,14 @@ rb_file_s_atime(VALUE klass, VALUE fname)
if (rb_stat(fname, &st) < 0) {
FilePathValue(fname);
- rb_sys_fail(RSTRING_PTR(fname));
+ rb_sys_fail_path(fname);
}
return stat_atime(&st);
}
/*
* call-seq:
- * file.atime => time
+ * file.atime -> time
*
* Returns the last access time (a <code>Time</code> object)
* for <i>file</i>, or epoch if <i>file</i> has not been accessed.
@@ -1715,7 +1831,7 @@ rb_file_atime(VALUE obj)
/*
* call-seq:
- * File.mtime(file_name) => time
+ * File.mtime(file_name) -> time
*
* Returns the modification time for the named file as a Time object.
*
@@ -1730,14 +1846,14 @@ rb_file_s_mtime(VALUE klass, VALUE fname)
if (rb_stat(fname, &st) < 0) {
FilePathValue(fname);
- rb_sys_fail(RSTRING_PTR(fname));
+ rb_sys_fail_path(fname);
}
return stat_mtime(&st);
}
/*
* call-seq:
- * file.mtime -> time
+ * file.mtime -> time
*
* Returns the modification time for <i>file</i>.
*
@@ -1760,12 +1876,14 @@ rb_file_mtime(VALUE obj)
/*
* call-seq:
- * File.ctime(file_name) => time
+ * File.ctime(file_name) -> time
*
* Returns the change time for the named file (the time at which
* directory information about the file was changed, not the file
* itself).
*
+ * Note that on Windows (NTFS), returns creation time (birth time).
+ *
* File.ctime("testfile") #=> Wed Apr 09 08:53:13 CDT 2003
*
*/
@@ -1777,18 +1895,20 @@ rb_file_s_ctime(VALUE klass, VALUE fname)
if (rb_stat(fname, &st) < 0) {
FilePathValue(fname);
- rb_sys_fail(RSTRING_PTR(fname));
+ rb_sys_fail_path(fname);
}
return stat_ctime(&st);
}
/*
* call-seq:
- * file.ctime -> time
+ * file.ctime -> time
*
* Returns the change time for <i>file</i> (that is, the time directory
* information about the file was changed, not the file itself).
*
+ * Note that on Windows (NTFS), returns creation time (birth time).
+ *
* File.new("testfile").ctime #=> Wed Apr 09 08:53:14 CDT 2003
*
*/
@@ -1806,6 +1926,16 @@ rb_file_ctime(VALUE obj)
return stat_ctime(&st);
}
+/*
+ * call-seq:
+ * file.size -> integer
+ *
+ * Returns the size of <i>file</i> in bytes.
+ *
+ * File.new("testfile").size #=> 66
+ *
+ */
+
static VALUE
rb_file_size(VALUE obj)
{
@@ -1823,15 +1953,15 @@ rb_file_size(VALUE obj)
}
static void
-chmod_internal(const char *path, void *mode)
+chmod_internal(const char *path, VALUE pathv, void *mode)
{
if (chmod(path, *(int *)mode) < 0)
- rb_sys_fail(path);
+ rb_sys_fail_path(pathv);
}
/*
* call-seq:
- * File.chmod(mode_int, file_name, ... ) -> integer
+ * File.chmod(mode_int, file_name, ... ) -> integer
*
* Changes permission bits on the named file(s) to the bit pattern
* represented by <i>mode_int</i>. Actual effects are operating system
@@ -1860,7 +1990,7 @@ rb_file_s_chmod(int argc, VALUE *argv)
/*
* call-seq:
- * file.chmod(mode_int) => 0
+ * file.chmod(mode_int) -> 0
*
* Changes permission bits on <i>file</i> to the bit pattern
* represented by <i>mode_int</i>. Actual effects are platform
@@ -1876,6 +2006,9 @@ rb_file_chmod(VALUE obj, VALUE vmode)
{
rb_io_t *fptr;
int mode;
+#ifndef HAVE_FCHMOD
+ VALUE path;
+#endif
rb_secure(2);
mode = NUM2INT(vmode);
@@ -1886,7 +2019,8 @@ rb_file_chmod(VALUE obj, VALUE vmode)
rb_sys_fail_path(fptr->pathv);
#else
if (NIL_P(fptr->pathv)) return Qnil;
- if (chmod(RSTRING_PTR(fptr->pathv), mode) == -1)
+ path = rb_str_encode_ospath(fptr->pathv);
+ if (chmod(RSTRING_PTR(path), mode) == -1)
rb_sys_fail_path(fptr->pathv);
#endif
@@ -1895,15 +2029,15 @@ rb_file_chmod(VALUE obj, VALUE vmode)
#if defined(HAVE_LCHMOD)
static void
-lchmod_internal(const char *path, void *mode)
+lchmod_internal(const char *path, VALUE pathv, void *mode)
{
if (lchmod(path, (int)(VALUE)mode) < 0)
- rb_sys_fail(path);
+ rb_sys_fail_path(pathv);
}
/*
* call-seq:
- * File.lchmod(mode_int, file_name, ...) => integer
+ * File.lchmod(mode_int, file_name, ...) -> integer
*
* Equivalent to <code>File::chmod</code>, but does not follow symbolic
* links (so it will change the permissions associated with the link,
@@ -1935,16 +2069,16 @@ struct chown_args {
};
static void
-chown_internal(const char *path, void *arg)
+chown_internal(const char *path, VALUE pathv, void *arg)
{
struct chown_args *args = arg;
if (chown(path, args->owner, args->group) < 0)
- rb_sys_fail(path);
+ rb_sys_fail_path(pathv);
}
/*
* call-seq:
- * File.chown(owner_int, group_int, file_name,... ) -> integer
+ * File.chown(owner_int, group_int, file_name,... ) -> integer
*
* Changes the owner and group of the named file(s) to the given
* numeric owner and group id's. Only a process with superuser
@@ -1985,7 +2119,7 @@ rb_file_s_chown(int argc, VALUE *argv)
/*
* call-seq:
- * file.chown(owner_int, group_int ) => 0
+ * file.chown(owner_int, group_int ) -> 0
*
* Changes the owner and group of <i>file</i> to the given numeric
* owner and group id's. Only a process with superuser privileges may
@@ -2003,6 +2137,9 @@ rb_file_chown(VALUE obj, VALUE owner, VALUE group)
{
rb_io_t *fptr;
int o, g;
+#ifndef HAVE_FCHOWN
+ VALUE path;
+#endif
rb_secure(2);
o = NIL_P(owner) ? -1 : NUM2INT(owner);
@@ -2010,7 +2147,8 @@ rb_file_chown(VALUE obj, VALUE owner, VALUE group)
GetOpenFile(obj, fptr);
#ifndef HAVE_FCHOWN
if (NIL_P(fptr->pathv)) return Qnil;
- if (chown(RSTRING_PTR(fptr->pathv), o, g) == -1)
+ path = rb_str_encode_ospath(fptr->pathv);
+ if (chown(RSTRING_PTR(path), o, g) == -1)
rb_sys_fail_path(fptr->pathv);
#else
if (fchown(fptr->fd, o, g) == -1)
@@ -2020,18 +2158,18 @@ rb_file_chown(VALUE obj, VALUE owner, VALUE group)
return INT2FIX(0);
}
-#if defined(HAVE_LCHOWN) && !defined(__CHECKER__)
+#if defined(HAVE_LCHOWN)
static void
-lchown_internal(const char *path, void *arg)
+lchown_internal(const char *path, VALUE pathv, void *arg)
{
struct chown_args *args = arg;
if (lchown(path, args->owner, args->group) < 0)
- rb_sys_fail(path);
+ rb_sys_fail_path(pathv);
}
/*
* call-seq:
- * file.lchown(owner_int, group_int, file_name,..) => integer
+ * file.lchown(owner_int, group_int, file_name,..) -> integer
*
* Equivalent to <code>File::chown</code>, but does not follow symbolic
* links (so it will change the owner associated with the link, not the
@@ -2069,18 +2207,16 @@ rb_file_s_lchown(int argc, VALUE *argv)
#define rb_file_s_lchown rb_f_notimplement
#endif
-struct timespec rb_time_timespec(VALUE time);
-
struct utime_args {
const struct timespec* tsp;
VALUE atime, mtime;
};
#if defined DOSISH || defined __CYGWIN__
-NORETURN(static void utime_failed(const char *, const struct timespec *, VALUE, VALUE));
+NORETURN(static void utime_failed(VALUE, const struct timespec *, VALUE, VALUE));
static void
-utime_failed(const char *path, const struct timespec *tsp, VALUE atime, VALUE mtime)
+utime_failed(VALUE path, const struct timespec *tsp, VALUE atime, VALUE mtime)
{
if (tsp && errno == EINVAL) {
VALUE e[2], a = Qnil, m = Qnil;
@@ -2101,23 +2237,23 @@ utime_failed(const char *path, const struct timespec *tsp, VALUE atime, VALUE mt
if (!NIL_P(e[0])) {
if (path) {
if (!d) e[0] = rb_str_dup(e[0]);
- rb_str_cat2(rb_str_cat2(e[0], " for "), path);
+ rb_str_append(rb_str_cat2(e[0], " for "), path);
}
e[1] = INT2FIX(EINVAL);
rb_exc_raise(rb_class_new_instance(2, e, rb_eSystemCallError));
}
errno = EINVAL;
}
- rb_sys_fail(path);
+ rb_sys_fail_path(path);
}
#else
-#define utime_failed(path, tsp, atime, mtime) rb_sys_fail(path)
+#define utime_failed(path, tsp, atime, mtime) rb_sys_fail_path(path)
#endif
#if defined(HAVE_UTIMES)
static void
-utime_internal(const char *path, void *arg)
+utime_internal(const char *path, VALUE pathv, void *arg)
{
struct utime_args *v = arg;
const struct timespec *tsp = v->tsp;
@@ -2132,7 +2268,7 @@ utime_internal(const char *path, void *arg)
try_utimensat = 0;
goto no_utimensat;
}
- utime_failed(path, tsp, v->atime, v->mtime);
+ utime_failed(pathv, tsp, v->atime, v->mtime);
}
return;
}
@@ -2147,7 +2283,7 @@ no_utimensat:
tvp = tvbuf;
}
if (utimes(path, tvp) < 0)
- utime_failed(path, tsp, v->atime, v->mtime);
+ utime_failed(pathv, tsp, v->atime, v->mtime);
}
#else
@@ -2160,7 +2296,7 @@ struct utimbuf {
#endif
static void
-utime_internal(const char *path, void *arg)
+utime_internal(const char *path, VALUE pathv, void *arg)
{
struct utime_args *v = arg;
const struct timespec *tsp = v->tsp;
@@ -2171,14 +2307,14 @@ utime_internal(const char *path, void *arg)
utp = &utbuf;
}
if (utime(path, utp) < 0)
- utime_failed(path, tsp, v->atime, v->mtime);
+ utime_failed(pathv, tsp, v->atime, v->mtime);
}
#endif
/*
* call-seq:
- * File.utime(atime, mtime, file_name,...) => integer
+ * File.utime(atime, mtime, file_name,...) -> integer
*
* Sets the access and modification times of each
* named file to the first two arguments. Returns
@@ -2211,39 +2347,25 @@ NORETURN(static void sys_fail2(VALUE,VALUE));
static void
sys_fail2(VALUE s1, VALUE s2)
{
- char *buf;
+ VALUE str;
#ifdef MAX_PATH
const int max_pathlen = MAX_PATH;
#else
const int max_pathlen = MAXPATHLEN;
#endif
- const char *e1, *e2;
- int len = 5;
- long l1 = RSTRING_LEN(s1), l2 = RSTRING_LEN(s2);
- e1 = e2 = "";
- if (l1 > max_pathlen) {
- l1 = max_pathlen - 3;
- e1 = "...";
- len += 3;
- }
- if (l2 > max_pathlen) {
- l2 = max_pathlen - 3;
- e2 = "...";
- len += 3;
- }
- len += (int)l1 + (int)l2;
- buf = ALLOCA_N(char, len);
- snprintf(buf, len, "(%.*s%s, %.*s%s)",
- (int)l1, RSTRING_PTR(s1), e1,
- (int)l2, RSTRING_PTR(s2), e2);
- rb_sys_fail(buf);
+ str = rb_str_new_cstr("(");
+ rb_str_append(str, rb_str_ellipsize(s1, max_pathlen));
+ rb_str_cat2(str, ", ");
+ rb_str_append(str, rb_str_ellipsize(s2, max_pathlen));
+ rb_str_cat2(str, ")");
+ rb_sys_fail_path(str);
}
#ifdef HAVE_LINK
/*
* call-seq:
- * File.link(old_name, new_name) => 0
+ * File.link(old_name, new_name) -> 0
*
* Creates a new name for an existing file using a hard link. Will not
* overwrite <i>new_name</i> if it already exists (raising a subclass
@@ -2259,6 +2381,8 @@ rb_file_s_link(VALUE klass, VALUE from, VALUE to)
rb_secure(2);
FilePathValue(from);
FilePathValue(to);
+ from = rb_str_encode_ospath(from);
+ to = rb_str_encode_ospath(to);
if (link(StringValueCStr(from), StringValueCStr(to)) < 0) {
sys_fail2(from, to);
@@ -2272,7 +2396,7 @@ rb_file_s_link(VALUE klass, VALUE from, VALUE to)
#ifdef HAVE_SYMLINK
/*
* call-seq:
- * File.symlink(old_name, new_name) => 0
+ * File.symlink(old_name, new_name) -> 0
*
* Creates a symbolic link called <i>new_name</i> for the existing file
* <i>old_name</i>. Raises a <code>NotImplemented</code> exception on
@@ -2288,6 +2412,8 @@ rb_file_s_symlink(VALUE klass, VALUE from, VALUE to)
rb_secure(2);
FilePathValue(from);
FilePathValue(to);
+ from = rb_str_encode_ospath(from);
+ to = rb_str_encode_ospath(to);
if (symlink(StringValueCStr(from), StringValueCStr(to)) < 0) {
sys_fail2(from, to);
@@ -2301,7 +2427,7 @@ rb_file_s_symlink(VALUE klass, VALUE from, VALUE to)
#ifdef HAVE_READLINK
/*
* call-seq:
- * File.readlink(link_name) -> file_name
+ * File.readlink(link_name) -> file_name
*
* Returns the name of the file referenced by the given link.
* Not available on all platforms.
@@ -2320,6 +2446,7 @@ rb_file_s_readlink(VALUE klass, VALUE path)
rb_secure(2);
FilePathValue(path);
+ path = rb_str_encode_ospath(path);
buf = xmalloc(size);
while ((rv = readlink(RSTRING_PTR(path), buf, size)) == size
#ifdef _AIX
@@ -2333,7 +2460,7 @@ rb_file_s_readlink(VALUE klass, VALUE path)
xfree(buf);
rb_sys_fail_path(path);
}
- v = rb_tainted_str_new(buf, rv);
+ v = rb_filesystem_str_new(buf, rv);
xfree(buf);
return v;
@@ -2343,16 +2470,16 @@ rb_file_s_readlink(VALUE klass, VALUE path)
#endif
static void
-unlink_internal(const char *path, void *arg)
+unlink_internal(const char *path, VALUE pathv, void *arg)
{
if (unlink(path) < 0)
- rb_sys_fail(path);
+ rb_sys_fail_path(pathv);
}
/*
* call-seq:
- * File.delete(file_name, ...) => integer
- * File.unlink(file_name, ...) => integer
+ * File.delete(file_name, ...) -> integer
+ * File.unlink(file_name, ...) -> integer
*
* Deletes the named files, returning the number of names
* passed as arguments. Raises an exception on any error.
@@ -2371,7 +2498,7 @@ rb_file_s_unlink(VALUE klass, VALUE args)
/*
* call-seq:
- * File.rename(old_name, new_name) => 0
+ * File.rename(old_name, new_name) -> 0
*
* Renames the given file to the new name. Raises a
* <code>SystemCallError</code> if the file cannot be renamed.
@@ -2383,17 +2510,20 @@ static VALUE
rb_file_s_rename(VALUE klass, VALUE from, VALUE to)
{
const char *src, *dst;
+ VALUE f, t;
rb_secure(2);
FilePathValue(from);
FilePathValue(to);
- src = StringValueCStr(from);
- dst = StringValueCStr(to);
+ f = rb_str_encode_ospath(from);
+ t = rb_str_encode_ospath(to);
+ src = StringValueCStr(f);
+ dst = StringValueCStr(t);
#if defined __CYGWIN__
errno = 0;
#endif
if (rename(src, dst) < 0) {
-#if defined DOSISH && !defined _WIN32
+#if defined DOSISH
switch (errno) {
case EEXIST:
#if defined (__EMX__)
@@ -2413,8 +2543,8 @@ rb_file_s_rename(VALUE klass, VALUE from, VALUE to)
/*
* call-seq:
- * File.umask() => integer
- * File.umask(integer) => integer
+ * File.umask() -> integer
+ * File.umask(integer) -> integer
*
* Returns the current umask value for this process. If the optional
* argument is given, set the umask to that value and return the
@@ -2440,7 +2570,7 @@ rb_file_s_umask(int argc, VALUE *argv)
omask = umask(NUM2INT(argv[0]));
}
else {
- rb_raise(rb_eArgError, "wrong number of arguments");
+ rb_raise(rb_eArgError, "wrong number of arguments (%d for 0..1)", argc);
}
return INT2FIX(omask);
}
@@ -2451,7 +2581,11 @@ rb_file_s_umask(int argc, VALUE *argv)
#if defined __CYGWIN__ || defined DOSISH
#define DOSISH_UNC
#define DOSISH_DRIVE_LETTER
-#define isdirsep(x) ((x) == '/' || (x) == '\\')
+#define FILE_ALT_SEPARATOR '\\'
+#endif
+#ifdef FILE_ALT_SEPARATOR
+#define isdirsep(x) ((x) == '/' || (x) == FILE_ALT_SEPARATOR)
+static const char file_alt_separator[] = {FILE_ALT_SEPARATOR, '\0'};
#else
#define isdirsep(x) ((x) == '/')
#endif
@@ -2465,15 +2599,21 @@ rb_file_s_umask(int argc, VALUE *argv)
#endif
#if USE_NTFS
-#define istrailinggabage(x) ((x) == '.' || (x) == ' ')
+#define istrailinggarbage(x) ((x) == '.' || (x) == ' ')
#else
-#define istrailinggabage(x) 0
+#define istrailinggarbage(x) 0
#endif
#ifndef CharNext /* defined as CharNext[AW] on Windows. */
# define CharNext(p) ((p) + 1)
#endif
+#if defined(DOSISH_UNC)
+#define has_unc(buf) (isdirsep((buf)[0]) && isdirsep((buf)[1]))
+#else
+#define has_unc(buf) 0
+#endif
+
#ifdef DOSISH_DRIVE_LETTER
static inline int
has_drive_letter(const char *buf)
@@ -2512,6 +2652,19 @@ getcwdofdrv(int drv)
}
return drvcwd;
}
+
+static inline int
+not_same_drive(VALUE path, int drive)
+{
+ const char *p = RSTRING_PTR(path);
+ if (RSTRING_LEN(path) < 2) return 0;
+ if (has_drive_letter(p)) {
+ return TOLOWER(p[0]) != TOLOWER(drive);
+ }
+ else {
+ return has_unc(p);
+ }
+}
#endif
static inline char *
@@ -2560,6 +2713,18 @@ rb_path_skip_prefix(const char *path)
return (char *)path;
}
+static inline char *
+skipprefixroot(const char *path)
+{
+#if defined(DOSISH_UNC) || defined(DOSISH_DRIVE_LETTER)
+ char *p = skipprefix(path);
+ while (isdirsep(*p)) p++;
+ return p;
+#else
+ return skiproot(path);
+#endif
+}
+
#define strrdirsep rb_path_last_separator
char *
rb_path_last_separator(const char *path)
@@ -2608,9 +2773,9 @@ ntfs_tail(const char *path)
{
while (*path == '.') path++;
while (*path && *path != ':') {
- if (istrailinggabage(*path)) {
+ if (istrailinggarbage(*path)) {
const char *last = path++;
- while (istrailinggabage(*path)) path++;
+ while (istrailinggarbage(*path)) path++;
if (!*path || *path == ':') return (char *)last;
}
else if (isdirsep(*path)) {
@@ -2628,7 +2793,7 @@ ntfs_tail(const char *path)
#endif
#define BUFCHECK(cond) do {\
- size_t bdiff = p - buf;\
+ bdiff = p - buf;\
if (cond) {\
do {buflen *= 2;} while (cond);\
rb_str_resize(result, buflen);\
@@ -2643,12 +2808,6 @@ ntfs_tail(const char *path)
buflen = RSTRING_LEN(result),\
pend = p + buflen)
-#define SET_EXTERNAL_ENCODING() (\
- (void)(extenc || (extenc = rb_default_external_encoding())),\
- rb_enc_associate(result, extenc))
-
-static int is_absolute_path(const char*);
-
VALUE
rb_home_dir(const char *user, VALUE result)
{
@@ -2689,6 +2848,7 @@ rb_home_dir(const char *user, VALUE result)
}
}
#endif
+ rb_enc_associate_index(result, rb_filesystem_encindex());
return result;
}
@@ -2697,31 +2857,42 @@ file_expand_path(VALUE fname, VALUE dname, int abs_mode, VALUE result)
{
const char *s, *b;
char *buf, *p, *pend, *root;
- size_t buflen, dirlen;
+ size_t buflen, dirlen, bdiff;
int tainted;
- rb_encoding *extenc = 0;
- FilePathValue(fname);
s = StringValuePtr(fname);
BUFINIT();
tainted = OBJ_TAINTED(fname);
if (s[0] == '~' && abs_mode == 0) { /* execute only if NOT absolute_path() */
+ long userlen = 0;
tainted = 1;
if (isdirsep(s[1]) || s[1] == '\0') {
buf = 0;
+ b = 0;
rb_str_set_len(result, 0);
if (*++s) ++s;
}
else {
s = nextdirsep(b = s);
- BUFCHECK(bdiff + (s-b) >= buflen);
- memcpy(p, b, s-b);
- rb_str_set_len(result, s-b);
+ userlen = s - b;
+ BUFCHECK(bdiff + userlen >= buflen);
+ memcpy(p, b, userlen);
+ rb_str_set_len(result, userlen);
buf = p + 1;
- p += s-b;
+ p += userlen;
+ }
+ if (NIL_P(rb_home_dir(buf, result))) {
+ rb_raise(rb_eArgError, "can't find user %s", buf);
+ }
+ if (!rb_is_absolute_path(RSTRING_PTR(result))) {
+ if (userlen) {
+ rb_raise(rb_eArgError, "non-absolute home of %.*s", (int)userlen, b);
+ }
+ else {
+ rb_raise(rb_eArgError, "non-absolute home");
+ }
}
- rb_home_dir(buf, result);
BUFINIT();
p = pend;
}
@@ -2735,11 +2906,12 @@ file_expand_path(VALUE fname, VALUE dname, int abs_mode, VALUE result)
memcpy(p, s, 2);
p += 2;
s += 2;
+ rb_enc_copy(result, fname);
}
else {
/* specified drive, but not full path */
int same = 0;
- if (!NIL_P(dname)) {
+ if (!NIL_P(dname) && !not_same_drive(dname, s[0])) {
file_expand_path(dname, Qnil, abs_mode, result);
BUFINIT();
if (has_drive_letter(p) && TOLOWER(p[0]) == TOLOWER(s[0])) {
@@ -2755,17 +2927,20 @@ file_expand_path(VALUE fname, VALUE dname, int abs_mode, VALUE result)
BUFCHECK(dirlen > buflen);
strcpy(buf, dir);
xfree(dir);
- SET_EXTERNAL_ENCODING();
+ rb_enc_associate_index(result, rb_filesystem_encindex());
}
+ else
+ rb_enc_associate(result, rb_enc_check(result, fname));
p = chompdirsep(skiproot(buf));
s += 2;
}
}
#endif
- else if (!is_absolute_path(s)) {
+ else if (!rb_is_absolute_path(s)) {
if (!NIL_P(dname)) {
file_expand_path(dname, Qnil, abs_mode, result);
BUFINIT();
+ rb_enc_associate(result, rb_enc_check(result, fname));
}
else {
char *dir = my_getcwd();
@@ -2775,7 +2950,7 @@ file_expand_path(VALUE fname, VALUE dname, int abs_mode, VALUE result)
BUFCHECK(dirlen > buflen);
strcpy(buf, dir);
xfree(dir);
- SET_EXTERNAL_ENCODING();
+ rb_enc_associate_index(result, rb_filesystem_encindex());
}
#if defined DOSISH || defined __CYGWIN__
if (isdirsep(*s)) {
@@ -2788,19 +2963,25 @@ file_expand_path(VALUE fname, VALUE dname, int abs_mode, VALUE result)
p = chompdirsep(skiproot(buf));
}
else {
+ size_t len;
b = s;
do s++; while (isdirsep(*s));
- p = buf + (s - b);
+ len = s - b;
+ p = buf + len;
BUFCHECK(bdiff >= buflen);
- memset(buf, '/', p - buf);
+ memset(buf, '/', len);
+ rb_str_set_len(result, len);
+ rb_enc_associate(result, rb_enc_check(result, fname));
}
if (p > buf && p[-1] == '/')
--p;
else {
+ rb_str_set_len(result, p-buf);
BUFCHECK(bdiff + 1 >= buflen);
*p = '/';
}
+ rb_str_set_len(result, p-buf+1);
BUFCHECK(bdiff + 1 >= buflen);
p[1] = 0;
root = skipprefix(buf);
@@ -2829,7 +3010,7 @@ file_expand_path(VALUE fname, VALUE dname, int abs_mode, VALUE result)
}
#if USE_NTFS
else {
- do ++s; while (istrailinggabage(*s));
+ do ++s; while (istrailinggarbage(*s));
}
#endif
break;
@@ -2849,7 +3030,7 @@ file_expand_path(VALUE fname, VALUE dname, int abs_mode, VALUE result)
--s;
case ' ': {
const char *e = s;
- while (istrailinggabage(*s)) s++;
+ while (istrailinggarbage(*s)) s++;
if (!*s) {
s = e;
goto endpath;
@@ -2864,6 +3045,7 @@ file_expand_path(VALUE fname, VALUE dname, int abs_mode, VALUE result)
#endif
if (s > b) {
long rootdiff = root - buf;
+ rb_str_set_len(result, p-buf+1);
BUFCHECK(bdiff + (s-b+1) >= buflen);
root = buf + rootdiff;
memcpy(++p, b, s-b);
@@ -2894,41 +3076,68 @@ file_expand_path(VALUE fname, VALUE dname, int abs_mode, VALUE result)
}
}
#endif
+ rb_str_set_len(result, p-buf+1);
BUFCHECK(bdiff + (s-b) >= buflen);
memcpy(++p, b, s-b);
p += s-b;
}
if (p == skiproot(buf) - 1) p++;
-#if USE_NTFS && defined __WIN32__
+#if USE_NTFS
*p = '\0';
if ((s = strrdirsep(b = buf)) != 0 && !strpbrk(s, "*?")) {
size_t len;
WIN32_FIND_DATA wfd;
+ HANDLE h;
#ifdef __CYGWIN__
+#ifdef HAVE_CYGWIN_CONV_PATH
+ char *w32buf = NULL;
+ const int flags = CCP_POSIX_TO_WIN_A | CCP_RELATIVE;
+#else
+ char w32buf[MAXPATHLEN];
+#endif
+ const char *path;
+ ssize_t bufsize;
int lnk_added = 0, is_symlink = 0;
struct stat st;
- char w32buf[MAXPATHLEN];
p = (char *)s;
+ len = strlen(p);
if (lstat(buf, &st) == 0 && S_ISLNK(st.st_mode)) {
is_symlink = 1;
- *p = '\0';
+ if (len > 4 && STRCASECMP(p + len - 4, ".lnk") != 0) {
+ lnk_added = 1;
+ }
}
- if (cygwin_conv_to_win32_path((*buf ? buf : "/"), w32buf) == 0) {
+ path = *buf ? buf : "/";
+#ifdef HAVE_CYGWIN_CONV_PATH
+ bufsize = cygwin_conv_path(flags, path, NULL, 0);
+ if (bufsize > 0) {
+ bufsize += len;
+ if (lnk_added) bufsize += 4;
+ w32buf = ALLOCA_N(char, bufsize);
+ if (cygwin_conv_path(flags, path, w32buf, bufsize) == 0) {
+ b = w32buf;
+ }
+ }
+#else
+ bufsize = MAXPATHLEN;
+ if (cygwin_conv_to_win32_path(path, w32buf) == 0) {
b = w32buf;
}
+#endif
if (is_symlink && b == w32buf) {
*p = '\\';
- strlcat(w32buf, p, sizeof(w32buf));
- len = strlen(p);
- if (len > 4 && STRCASECMP(p + len - 4, ".lnk") != 0) {
- lnk_added = 1;
- strlcat(w32buf, ".lnk", sizeof(w32buf));
+ strlcat(w32buf, p, bufsize);
+ if (lnk_added) {
+ strlcat(w32buf, ".lnk", bufsize);
}
}
+ else {
+ lnk_added = 0;
+ }
*p = '/';
#endif
- HANDLE h = FindFirstFile(b, &wfd);
+ h = FindFirstFile(b, &wfd);
if (h != INVALID_HANDLE_VALUE) {
FindClose(h);
len = strlen(wfd.cFileName);
@@ -2956,18 +3165,32 @@ file_expand_path(VALUE fname, VALUE dname, int abs_mode, VALUE result)
if (tainted) OBJ_TAINT(result);
rb_str_set_len(result, p - buf);
rb_enc_check(fname, result);
+ ENC_CODERANGE_CLEAR(result);
return result;
}
+#define EXPAND_PATH_BUFFER() rb_usascii_str_new(0, MAXPATHLEN + 2)
+
+#define check_expand_path_args(fname, dname) \
+ (((fname) = rb_get_path(fname)), \
+ (void)(NIL_P(dname) ? (dname) : ((dname) = rb_get_path(dname))))
+
+static VALUE
+file_expand_path_1(VALUE fname)
+{
+ return file_expand_path(fname, Qnil, 0, EXPAND_PATH_BUFFER());
+}
+
VALUE
rb_file_expand_path(VALUE fname, VALUE dname)
{
- return file_expand_path(fname, dname, 0, rb_usascii_str_new(0, MAXPATHLEN + 2));
+ check_expand_path_args(fname, dname);
+ return file_expand_path(fname, dname, 0, EXPAND_PATH_BUFFER());
}
/*
* call-seq:
- * File.expand_path(file_name [, dir_string] ) -> abs_file_name
+ * File.expand_path(file_name [, dir_string] ) -> abs_file_name
*
* Converts a pathname to an absolute pathname. Relative paths are
* referenced from the current working directory of the process unless
@@ -2998,12 +3221,13 @@ rb_file_s_expand_path(int argc, VALUE *argv)
VALUE
rb_file_absolute_path(VALUE fname, VALUE dname)
{
- return file_expand_path(fname, dname, 1, rb_usascii_str_new(0, MAXPATHLEN + 2));
+ check_expand_path_args(fname, dname);
+ return file_expand_path(fname, dname, 1, EXPAND_PATH_BUFFER());
}
/*
* call-seq:
- * File.absolute_path(file_name [, dir_string] ) -> abs_file_name
+ * File.absolute_path(file_name [, dir_string] ) -> abs_file_name
*
* Converts a pathname to an absolute pathname. Relative paths are
* referenced from the current working directory of the process unless
@@ -3027,16 +3251,213 @@ rb_file_s_absolute_path(int argc, VALUE *argv)
return rb_file_absolute_path(fname, dname);
}
+static void
+realpath_rec(long *prefixlenp, VALUE *resolvedp, char *unresolved, VALUE loopcheck, int strict, int last)
+{
+ ID resolving;
+ CONST_ID(resolving, "resolving");
+ while (*unresolved) {
+ char *testname = unresolved;
+ char *unresolved_firstsep = rb_path_next(unresolved);
+ long testnamelen = unresolved_firstsep - unresolved;
+ char *unresolved_nextname = unresolved_firstsep;
+ while (isdirsep(*unresolved_nextname)) unresolved_nextname++;
+ unresolved = unresolved_nextname;
+ if (testnamelen == 1 && testname[0] == '.') {
+ }
+ else if (testnamelen == 2 && testname[0] == '.' && testname[1] == '.') {
+ if (*prefixlenp < RSTRING_LEN(*resolvedp)) {
+ char *resolved_names = RSTRING_PTR(*resolvedp) + *prefixlenp;
+ char *lastsep = rb_path_last_separator(resolved_names);
+ long len = lastsep ? lastsep - resolved_names : 0;
+ rb_str_resize(*resolvedp, *prefixlenp + len);
+ }
+ }
+ else {
+ VALUE checkval;
+ VALUE testpath = rb_str_dup(*resolvedp);
+ if (*prefixlenp < RSTRING_LEN(testpath))
+ rb_str_cat2(testpath, "/");
+ rb_str_cat(testpath, testname, testnamelen);
+ checkval = rb_hash_aref(loopcheck, testpath);
+ if (!NIL_P(checkval)) {
+ if (checkval == ID2SYM(resolving)) {
+ errno = ELOOP;
+ rb_sys_fail_path(testpath);
+ }
+ else {
+ *resolvedp = rb_str_dup(checkval);
+ }
+ }
+ else {
+ struct stat sbuf;
+ int ret;
+ VALUE testpath2 = rb_str_encode_ospath(testpath);
+ ret = lstat(RSTRING_PTR(testpath2), &sbuf);
+ if (ret == -1) {
+ if (errno == ENOENT) {
+ if (strict || !last || *unresolved_firstsep)
+ rb_sys_fail_path(testpath);
+ *resolvedp = testpath;
+ break;
+ }
+ else {
+ rb_sys_fail_path(testpath);
+ }
+ }
+#ifdef HAVE_READLINK
+ if (S_ISLNK(sbuf.st_mode)) {
+ volatile VALUE link;
+ char *link_prefix, *link_names;
+ long link_prefixlen;
+ rb_hash_aset(loopcheck, testpath, ID2SYM(resolving));
+ link = rb_file_s_readlink(rb_cFile, testpath);
+ link_prefix = RSTRING_PTR(link);
+ link_names = skipprefixroot(link_prefix);
+ link_prefixlen = link_names - link_prefix;
+ if (link_prefixlen == 0) {
+ realpath_rec(prefixlenp, resolvedp, link_names, loopcheck, strict, *unresolved_firstsep == '\0');
+ }
+ else {
+ *resolvedp = rb_str_new(link_prefix, link_prefixlen);
+ *prefixlenp = link_prefixlen;
+ realpath_rec(prefixlenp, resolvedp, link_names, loopcheck, strict, *unresolved_firstsep == '\0');
+ }
+ rb_hash_aset(loopcheck, testpath, rb_str_dup_frozen(*resolvedp));
+ }
+ else
+#endif
+ {
+ VALUE s = rb_str_dup_frozen(testpath);
+ rb_hash_aset(loopcheck, s, s);
+ *resolvedp = testpath;
+ }
+ }
+ }
+ }
+}
+
+VALUE
+rb_realpath_internal(VALUE basedir, VALUE path, int strict)
+{
+ long prefixlen;
+ VALUE resolved;
+ volatile VALUE unresolved_path;
+ VALUE loopcheck;
+ volatile VALUE curdir = Qnil;
+
+ char *path_names = NULL, *basedir_names = NULL, *curdir_names = NULL;
+ char *ptr, *prefixptr = NULL;
+
+ rb_secure(2);
+
+ FilePathValue(path);
+ unresolved_path = rb_str_dup_frozen(path);
+
+ if (!NIL_P(basedir)) {
+ FilePathValue(basedir);
+ basedir = rb_str_dup_frozen(basedir);
+ }
+
+ ptr = RSTRING_PTR(unresolved_path);
+ path_names = skipprefixroot(ptr);
+ if (ptr != path_names) {
+ resolved = rb_enc_str_new(ptr, path_names - ptr,
+ rb_enc_get(unresolved_path));
+ goto root_found;
+ }
+
+ if (!NIL_P(basedir)) {
+ ptr = RSTRING_PTR(basedir);
+ basedir_names = skipprefixroot(ptr);
+ if (ptr != basedir_names) {
+ resolved = rb_enc_str_new(ptr, basedir_names - ptr,
+ rb_enc_get(basedir));
+ goto root_found;
+ }
+ }
+
+ curdir = rb_dir_getwd();
+ ptr = RSTRING_PTR(curdir);
+ curdir_names = skipprefixroot(ptr);
+ resolved = rb_enc_str_new(ptr, curdir_names - ptr, rb_enc_get(curdir));
+
+ root_found:
+ prefixptr = RSTRING_PTR(resolved);
+ prefixlen = RSTRING_LEN(resolved);
+ ptr = chompdirsep(prefixptr);
+ if (*ptr) {
+ prefixlen = ++ptr - prefixptr;
+ rb_str_set_len(resolved, prefixlen);
+ }
+#ifdef FILE_ALT_SEPARATOR
+ while (prefixptr < ptr) {
+ if (*prefixptr == FILE_ALT_SEPARATOR) {
+ *prefixptr = '/';
+ }
+ prefixptr = CharNext(prefixptr);
+ }
+#endif
+
+ loopcheck = rb_hash_new();
+ if (curdir_names)
+ realpath_rec(&prefixlen, &resolved, curdir_names, loopcheck, 1, 0);
+ if (basedir_names)
+ realpath_rec(&prefixlen, &resolved, basedir_names, loopcheck, 1, 0);
+ realpath_rec(&prefixlen, &resolved, path_names, loopcheck, strict, 1);
+
+ OBJ_TAINT(resolved);
+ return resolved;
+}
+
+/*
+ * call-seq:
+ * File.realpath(pathname [, dir_string]) -> real_pathname
+ *
+ * Returns the real (absolute) pathname of _pathname_ in the actual
+ * filesystem not containing symlinks or useless dots.
+ *
+ * If _dir_string_ is given, it is used as a base directory
+ * for interpreting relative pathname instead of the current directory.
+ *
+ * All components of the pathname must exist when this method is
+ * called.
+ */
+static VALUE
+rb_file_s_realpath(int argc, VALUE *argv, VALUE klass)
+{
+ VALUE path, basedir;
+ rb_scan_args(argc, argv, "11", &path, &basedir);
+ return rb_realpath_internal(basedir, path, 1);
+}
+
+/*
+ * call-seq:
+ * File.realdirpath(pathname [, dir_string]) -> real_pathname
+ *
+ * Returns the real (absolute) pathname of _pathname_ in the actual filesystem.
+ * The real pathname doesn't contain symlinks or useless dots.
+ *
+ * If _dir_string_ is given, it is used as a base directory
+ * for interpreting relative pathname instead of the current directory.
+ *
+ * The last component of the real pathname can be nonexistent.
+ */
+static VALUE
+rb_file_s_realdirpath(int argc, VALUE *argv, VALUE klass)
+{
+ VALUE path, basedir;
+ rb_scan_args(argc, argv, "11", &path, &basedir);
+ return rb_realpath_internal(basedir, path, 0);
+}
+
static size_t
-rmext(const char *p, long l1, const char *e)
+rmext(const char *p, long l0, long l1, const char *e)
{
- long l0, l2;
+ long l2;
if (!e) return 0;
- for (l0 = 0; l0 < l1; ++l0) {
- if (p[l0] != '.') break;
- }
l2 = strlen(e);
if (l2 == 2 && e[1] == '*') {
unsigned char c = *e;
@@ -3059,36 +3480,15 @@ rmext(const char *p, long l1, const char *e)
return 0;
}
-/*
- * call-seq:
- * File.basename(file_name [, suffix] ) -> base_name
- *
- * Returns the last component of the filename given in <i>file_name</i>,
- * which must be formed using forward slashes (``<code>/</code>'')
- * regardless of the separator used on the local file system. If
- * <i>suffix</i> is given and present at the end of <i>file_name</i>,
- * it is removed.
- *
- * File.basename("/home/gumby/work/ruby.rb") #=> "ruby.rb"
- * File.basename("/home/gumby/work/ruby.rb", ".rb") #=> "ruby"
- */
-
-static VALUE
-rb_file_s_basename(int argc, VALUE *argv)
+const char *
+ruby_find_basename(const char *name, long *baselen, long *alllen)
{
- VALUE fname, fext, basename;
- const char *name, *p;
+ const char *p, *q, *e;
#if defined DOSISH_DRIVE_LETTER || defined DOSISH_UNC
const char *root;
#endif
- long f, n;
+ long f = 0, n = -1;
- if (rb_scan_args(argc, argv, "11", &fname, &fext) == 2) {
- StringValue(fext);
- }
- FilePathStringValue(fname);
- if (RSTRING_LEN(fname) == 0 || !*(name = RSTRING_PTR(fname)))
- return fname;
name = skipprefix(name);
#if defined DOSISH_DRIVE_LETTER || defined DOSISH_UNC
root = name;
@@ -3127,11 +3527,63 @@ rb_file_s_basename(int argc, VALUE *argv)
#else
n = chompdirsep(p) - p;
#endif
- if (NIL_P(fext) || !(f = rmext(p, n, StringValueCStr(fext)))) {
+ for (q = p; q - p < n && *q == '.'; q++);
+ for (e = 0; q - p < n; q = CharNext(q)) {
+ if (*q == '.') e = q;
+ }
+ if (e) f = e - p;
+ else f = n;
+ }
+
+ if (baselen)
+ *baselen = f;
+ if (alllen)
+ *alllen = n;
+ return p;
+}
+
+/*
+ * call-seq:
+ * File.basename(file_name [, suffix] ) -> base_name
+ *
+ * Returns the last component of the filename given in <i>file_name</i>,
+ * which must be formed using forward slashes (``<code>/</code>'')
+ * regardless of the separator used on the local file system. If
+ * <i>suffix</i> is given and present at the end of <i>file_name</i>,
+ * it is removed.
+ *
+ * File.basename("/home/gumby/work/ruby.rb") #=> "ruby.rb"
+ * File.basename("/home/gumby/work/ruby.rb", ".rb") #=> "ruby"
+ */
+
+static VALUE
+rb_file_s_basename(int argc, VALUE *argv)
+{
+ VALUE fname, fext, basename;
+ const char *name, *p;
+ long f, n;
+
+ if (rb_scan_args(argc, argv, "11", &fname, &fext) == 2) {
+ rb_encoding *enc;
+ StringValue(fext);
+ if (!rb_enc_asciicompat(enc = rb_enc_get(fext))) {
+ rb_raise(rb_eEncCompatError, "ascii incompatible character encodings: %s",
+ rb_enc_name(enc));
+ }
+ }
+ FilePathStringValue(fname);
+ if (!NIL_P(fext)) rb_enc_check(fname, fext);
+ if (RSTRING_LEN(fname) == 0 || !*(name = RSTRING_PTR(fname)))
+ return rb_str_new_shared(fname);
+
+ p = ruby_find_basename(name, &f, &n);
+ if (n >= 0) {
+ if (NIL_P(fext) || !(f = rmext(p, f, n, StringValueCStr(fext)))) {
f = n;
}
- if (f == RSTRING_LEN(fname)) return fname;
+ if (f == RSTRING_LEN(fname)) return rb_str_new_shared(fname);
}
+
basename = rb_str_new(p, f);
rb_enc_copy(basename, fname);
OBJ_INFECT(basename, fname);
@@ -3140,7 +3592,7 @@ rb_file_s_basename(int argc, VALUE *argv)
/*
* call-seq:
- * File.dirname(file_name ) -> dir_name
+ * File.dirname(file_name ) -> dir_name
*
* Returns all components of the filename given in <i>file_name</i>
* except the last one. The filename must be formed using forward
@@ -3153,6 +3605,12 @@ rb_file_s_basename(int argc, VALUE *argv)
static VALUE
rb_file_s_dirname(VALUE klass, VALUE fname)
{
+ return rb_file_dirname(fname);
+}
+
+VALUE
+rb_file_dirname(VALUE fname)
+{
const char *name, *root, *p;
VALUE dirname;
@@ -3191,40 +3649,35 @@ rb_file_s_dirname(VALUE klass, VALUE fname)
}
/*
- * call-seq:
- * File.extname(path) -> string
- *
- * Returns the extension (the portion of file name in <i>path</i>
- * after the period).
- *
- * File.extname("test.rb") #=> ".rb"
- * File.extname("a/b/d/test.rb") #=> ".rb"
- * File.extname("test") #=> ""
- * File.extname(".profile") #=> ""
+ * accept a String, and return the pointer of the extension.
+ * if len is passed, set the length of extension to it.
+ * returned pointer is in ``name'' or NULL.
+ * returns *len
+ * no dot NULL 0
+ * dotfile top 0
+ * end with dot dot 1
+ * .ext dot len of .ext
+ * .ext:stream dot len of .ext without :stream (NT only)
*
*/
-
-static VALUE
-rb_file_s_extname(VALUE klass, VALUE fname)
+const char *
+ruby_find_extname(const char *name, long *len)
{
- const char *name, *p, *e;
- VALUE extname;
+ const char *p, *e;
- FilePathStringValue(fname);
- name = StringValueCStr(fname);
p = strrdirsep(name); /* get the last path component */
if (!p)
p = name;
else
- name = ++p;
+ do name = ++p; while (isdirsep(*p));
e = 0;
while (*p && *p == '.') p++;
while (*p) {
- if (*p == '.' || istrailinggabage(*p)) {
+ if (*p == '.' || istrailinggarbage(*p)) {
#if USE_NTFS
const char *last = p++, *dot = last;
- while (istrailinggabage(*p)) {
+ while (istrailinggarbage(*p)) {
if (*p == '.') dot = p;
p++;
}
@@ -3247,9 +3700,46 @@ rb_file_s_extname(VALUE klass, VALUE fname)
break;
p = CharNext(p);
}
- if (!e || e == name || e+1 == p) /* no dot, or the only dot is first or end? */
+
+ if (len) {
+ /* no dot, or the only dot is first or end? */
+ if (!e || e == name)
+ *len = 0;
+ else if (e+1 == p)
+ *len = 1;
+ else
+ *len = p - e;
+ }
+ return e;
+}
+
+/*
+ * call-seq:
+ * File.extname(path) -> string
+ *
+ * Returns the extension (the portion of file name in <i>path</i>
+ * after the period).
+ *
+ * File.extname("test.rb") #=> ".rb"
+ * File.extname("a/b/d/test.rb") #=> ".rb"
+ * File.extname("test") #=> ""
+ * File.extname(".profile") #=> ""
+ *
+ */
+
+static VALUE
+rb_file_s_extname(VALUE klass, VALUE fname)
+{
+ const char *name, *e;
+ long len;
+ VALUE extname;
+
+ FilePathStringValue(fname);
+ name = StringValueCStr(fname);
+ e = ruby_find_extname(name, &len);
+ if (len <= 1)
return rb_str_new(0, 0);
- extname = rb_str_new(e, p - e); /* keep the dot, too! */
+ extname = rb_str_new(e, len); /* keep the dot, too! */
rb_enc_copy(extname, fname);
OBJ_INFECT(extname, fname);
return extname;
@@ -3257,7 +3747,7 @@ rb_file_s_extname(VALUE klass, VALUE fname)
/*
* call-seq:
- * File.path(path) -> string
+ * File.path(path) -> string
*
* Returns the string representation of the path
*
@@ -3274,7 +3764,7 @@ rb_file_s_path(VALUE klass, VALUE fname)
/*
* call-seq:
- * File.split(file_name) => array
+ * File.split(file_name) -> array
*
* Splits the given string into a directory and a file component and
* returns them in a two-element array. See also
@@ -3347,7 +3837,10 @@ rb_file_join(VALUE ary, VALUE sep)
FilePathStringValue(tmp);
}
name = StringValueCStr(result);
- if (i > 0 && !NIL_P(sep)) {
+ if (i == 0) {
+ rb_enc_copy(result, tmp);
+ }
+ else if (!NIL_P(sep)) {
tail = chompdirsep(name);
if (RSTRING_PTR(tmp) && isdirsep(RSTRING_PTR(tmp)[0])) {
rb_str_set_len(result, tail - name);
@@ -3364,7 +3857,7 @@ rb_file_join(VALUE ary, VALUE sep)
/*
* call-seq:
- * File.join(string, ...) -> path
+ * File.join(string, ...) -> path
*
* Returns a new string formed by joining the strings using
* <code>File::SEPARATOR</code>.
@@ -3382,7 +3875,7 @@ rb_file_s_join(VALUE klass, VALUE args)
#if defined(HAVE_TRUNCATE) || defined(HAVE_CHSIZE)
/*
* call-seq:
- * File.truncate(file_name, integer) => 0
+ * File.truncate(file_name, integer) -> 0
*
* Truncates the file <i>file_name</i> to be at most <i>integer</i>
* bytes long. Not available on all platforms.
@@ -3403,25 +3896,21 @@ rb_file_s_truncate(VALUE klass, VALUE path, VALUE len)
rb_secure(2);
pos = NUM2OFFT(len);
FilePathValue(path);
+ path = rb_str_encode_ospath(path);
#ifdef HAVE_TRUNCATE
if (truncate(StringValueCStr(path), pos) < 0)
- rb_sys_fail(RSTRING_PTR(path));
+ rb_sys_fail_path(path);
#else /* defined(HAVE_CHSIZE) */
{
int tmpfd;
-# ifdef _WIN32
- if ((tmpfd = open(StringValueCStr(path), O_RDWR)) < 0) {
- rb_sys_fail(RSTRING_PTR(path));
- }
-# else
if ((tmpfd = open(StringValueCStr(path), 0)) < 0) {
- rb_sys_fail(RSTRING_PTR(path));
+ rb_sys_fail_path(path);
}
-# endif
+ rb_update_max_fd(tmpfd);
if (chsize(tmpfd, pos) < 0) {
close(tmpfd);
- rb_sys_fail(RSTRING_PTR(path));
+ rb_sys_fail_path(path);
}
close(tmpfd);
}
@@ -3435,7 +3924,7 @@ rb_file_s_truncate(VALUE klass, VALUE path, VALUE len)
#if defined(HAVE_FTRUNCATE) || defined(HAVE_CHSIZE)
/*
* call-seq:
- * file.truncate(integer) => 0
+ * file.truncate(integer) -> 0
*
* Truncates <i>file</i> to at most <i>integer</i> bytes. The file
* must be opened for writing. Not available on all platforms.
@@ -3465,7 +3954,7 @@ rb_file_truncate(VALUE obj, VALUE len)
rb_sys_fail_path(fptr->pathv);
#else /* defined(HAVE_CHSIZE) */
if (chsize(fptr->fd, pos) < 0)
- rb_sys_fail(fptr->pathv);
+ rb_sys_fail_path(fptr->pathv);
#endif
return INT2FIX(0);
}
@@ -3510,7 +3999,7 @@ rb_thread_flock(void *data)
/*
* call-seq:
- * file.flock (locking_constant ) => 0 or false
+ * file.flock (locking_constant )-> 0 or false
*
* Locks or unlocks a file according to <i>locking_constant</i> (a
* logical <em>or</em> of the values in the table below).
@@ -3555,7 +4044,6 @@ rb_thread_flock(void *data)
static VALUE
rb_file_flock(VALUE obj, VALUE operation)
{
-#ifndef __CHECKER__
rb_io_t *fptr;
int op[2], op1;
@@ -3567,7 +4055,7 @@ rb_file_flock(VALUE obj, VALUE operation)
if (fptr->mode & FMODE_WRITABLE) {
rb_io_flush(obj);
}
- while ((int)rb_thread_blocking_region(rb_thread_flock, op, RUBY_UBF_IO, 0) < 0) {
+ while ((int)rb_thread_io_blocking_region(rb_thread_flock, op, fptr->fd) < 0) {
switch (errno) {
case EAGAIN:
case EACCES:
@@ -3589,7 +4077,6 @@ rb_file_flock(VALUE obj, VALUE operation)
rb_sys_fail_path(fptr->pathv);
}
}
-#endif
return INT2FIX(0);
}
#undef flock
@@ -3618,7 +4105,7 @@ test_check(int n, int argc, VALUE *argv)
/*
* call-seq:
- * test(int_cmd, file1 [, file2] ) => obj
+ * test(int_cmd, file1 [, file2] ) -> obj
*
* Uses the integer <i>aCmd</i> to perform various tests on
* <i>file1</i> (first table below) or on <i>file1</i> and
@@ -3627,51 +4114,51 @@ test_check(int n, int argc, VALUE *argv)
* File tests on a single file:
*
* Test Returns Meaning
- * ?A | Time | Last access time for file1
- * ?b | boolean | True if file1 is a block device
- * ?c | boolean | True if file1 is a character device
- * ?C | Time | Last change time for file1
- * ?d | boolean | True if file1 exists and is a directory
- * ?e | boolean | True if file1 exists
- * ?f | boolean | True if file1 exists and is a regular file
- * ?g | boolean | True if file1 has the \CF{setgid} bit
+ * "A" | Time | Last access time for file1
+ * "b" | boolean | True if file1 is a block device
+ * "c" | boolean | True if file1 is a character device
+ * "C" | Time | Last change time for file1
+ * "d" | boolean | True if file1 exists and is a directory
+ * "e" | boolean | True if file1 exists
+ * "f" | boolean | True if file1 exists and is a regular file
+ * "g" | boolean | True if file1 has the \CF{setgid} bit
* | | set (false under NT)
- * ?G | boolean | True if file1 exists and has a group
+ * "G" | boolean | True if file1 exists and has a group
* | | ownership equal to the caller's group
- * ?k | boolean | True if file1 exists and has the sticky bit set
- * ?l | boolean | True if file1 exists and is a symbolic link
- * ?M | Time | Last modification time for file1
- * ?o | boolean | True if file1 exists and is owned by
+ * "k" | boolean | True if file1 exists and has the sticky bit set
+ * "l" | boolean | True if file1 exists and is a symbolic link
+ * "M" | Time | Last modification time for file1
+ * "o" | boolean | True if file1 exists and is owned by
* | | the caller's effective uid
- * ?O | boolean | True if file1 exists and is owned by
+ * "O" | boolean | True if file1 exists and is owned by
* | | the caller's real uid
- * ?p | boolean | True if file1 exists and is a fifo
- * ?r | boolean | True if file1 is readable by the effective
+ * "p" | boolean | True if file1 exists and is a fifo
+ * "r" | boolean | True if file1 is readable by the effective
* | | uid/gid of the caller
- * ?R | boolean | True if file is readable by the real
+ * "R" | boolean | True if file is readable by the real
* | | uid/gid of the caller
- * ?s | int/nil | If file1 has nonzero size, return the size,
+ * "s" | int/nil | If file1 has nonzero size, return the size,
* | | otherwise return nil
- * ?S | boolean | True if file1 exists and is a socket
- * ?u | boolean | True if file1 has the setuid bit set
- * ?w | boolean | True if file1 exists and is writable by
+ * "S" | boolean | True if file1 exists and is a socket
+ * "u" | boolean | True if file1 has the setuid bit set
+ * "w" | boolean | True if file1 exists and is writable by
* | | the effective uid/gid
- * ?W | boolean | True if file1 exists and is writable by
+ * "W" | boolean | True if file1 exists and is writable by
* | | the real uid/gid
- * ?x | boolean | True if file1 exists and is executable by
+ * "x" | boolean | True if file1 exists and is executable by
* | | the effective uid/gid
- * ?X | boolean | True if file1 exists and is executable by
+ * "X" | boolean | True if file1 exists and is executable by
* | | the real uid/gid
- * ?z | boolean | True if file1 exists and has a zero length
+ * "z" | boolean | True if file1 exists and has a zero length
*
* Tests that take two files:
*
- * ?- | boolean | True if file1 and file2 are identical
- * ?= | boolean | True if the modification times of file1
+ * "-" | boolean | True if file1 and file2 are identical
+ * "=" | boolean | True if the modification times of file1
* | | and file2 are equal
- * ?< | boolean | True if the modification time of file1
+ * "<" | boolean | True if the modification time of file1
* | | is prior to that of file2
- * ?> | boolean | True if the modification time of file1
+ * ">" | boolean | True if the modification time of file1
* | | is after that of file2
*/
@@ -3680,7 +4167,7 @@ rb_f_test(int argc, VALUE *argv)
{
int cmd;
- if (argc == 0) rb_raise(rb_eArgError, "wrong number of arguments");
+ if (argc == 0) rb_raise(rb_eArgError, "wrong number of arguments (0 for 2..3)");
cmd = NUM2CHR(argv[0]);
if (cmd == 0) goto unknown;
if (strchr("bcdefgGkloOprRsSuwWxXz", cmd)) {
@@ -3742,7 +4229,7 @@ rb_f_test(int argc, VALUE *argv)
return rb_file_writable_p(0, argv[1]);
case 'W':
- return rb_file_world_writable_p(0, argv[1]);
+ return rb_file_writable_real_p(0, argv[1]);
case 'x':
return rb_file_executable_p(0, argv[1]);
@@ -3762,7 +4249,7 @@ rb_f_test(int argc, VALUE *argv)
CHECK(1);
if (rb_stat(fname, &st) == -1) {
FilePathValue(fname);
- rb_sys_fail(RSTRING_PTR(fname));
+ rb_sys_fail_path(fname);
}
switch (cmd) {
@@ -3804,10 +4291,10 @@ rb_f_test(int argc, VALUE *argv)
unknown:
/* unknown command */
if (ISPRINT(cmd)) {
- rb_raise(rb_eArgError, "unknown command ?%c", cmd);
+ rb_raise(rb_eArgError, "unknown command '%s%c'", cmd == '\'' || cmd == '\\' ? "\\" : "", cmd);
}
else {
- rb_raise(rb_eArgError, "unknown command ?\\x%02X", cmd);
+ rb_raise(rb_eArgError, "unknown command \"\\x%02X\"", cmd);
}
return Qnil; /* not reached */
}
@@ -3836,7 +4323,7 @@ rb_stat_s_alloc(VALUE klass)
/*
* call-seq:
*
- * File::Stat.new(file_name) => stat
+ * File::Stat.new(file_name) -> stat
*
* Create a File::Stat object for the given file name (raising an
* exception if the file doesn't exist).
@@ -3849,8 +4336,9 @@ rb_stat_init(VALUE obj, VALUE fname)
rb_secure(2);
FilePathValue(fname);
- if (stat(StringValueCStr(fname), &st) == -1) {
- rb_sys_fail(RSTRING_PTR(fname));
+ fname = rb_str_encode_ospath(fname);
+ if (STAT(StringValueCStr(fname), &st) == -1) {
+ rb_sys_fail_path(fname);
}
if (DATA_PTR(obj)) {
xfree(DATA_PTR(obj));
@@ -3890,7 +4378,7 @@ rb_stat_init_copy(VALUE copy, VALUE orig)
/*
* call-seq:
- * stat.ftype => string
+ * stat.ftype -> string
*
* Identifies the type of <i>stat</i>. The return string is one of:
* ``<code>file</code>'', ``<code>directory</code>'',
@@ -3910,7 +4398,7 @@ rb_stat_ftype(VALUE obj)
/*
* call-seq:
- * stat.directory? => true or false
+ * stat.directory? -> true or false
*
* Returns <code>true</code> if <i>stat</i> is a directory,
* <code>false</code> otherwise.
@@ -3928,7 +4416,7 @@ rb_stat_d(VALUE obj)
/*
* call-seq:
- * stat.pipe? => true or false
+ * stat.pipe? -> true or false
*
* Returns <code>true</code> if the operating system supports pipes and
* <i>stat</i> is a pipe; <code>false</code> otherwise.
@@ -3946,7 +4434,7 @@ rb_stat_p(VALUE obj)
/*
* call-seq:
- * stat.symlink? => true or false
+ * stat.symlink? -> true or false
*
* Returns <code>true</code> if <i>stat</i> is a symbolic link,
* <code>false</code> if it isn't or if the operating system doesn't
@@ -3972,7 +4460,7 @@ rb_stat_l(VALUE obj)
/*
* call-seq:
- * stat.socket? => true or false
+ * stat.socket? -> true or false
*
* Returns <code>true</code> if <i>stat</i> is a socket,
* <code>false</code> if it isn't or if the operating system doesn't
@@ -3994,7 +4482,7 @@ rb_stat_S(VALUE obj)
/*
* call-seq:
- * stat.blockdev? => true or false
+ * stat.blockdev? -> true or false
*
* Returns <code>true</code> if the file is a block device,
* <code>false</code> if it isn't or if the operating system doesn't
@@ -4017,7 +4505,7 @@ rb_stat_b(VALUE obj)
/*
* call-seq:
- * stat.chardev? => true or false
+ * stat.chardev? -> true or false
*
* Returns <code>true</code> if the file is a character device,
* <code>false</code> if it isn't or if the operating system doesn't
@@ -4037,7 +4525,7 @@ rb_stat_c(VALUE obj)
/*
* call-seq:
- * stat.owned? => true or false
+ * stat.owned? -> true or false
*
* Returns <code>true</code> if the effective user id of the process is
* the same as the owner of <i>stat</i>.
@@ -4063,7 +4551,7 @@ rb_stat_rowned(VALUE obj)
/*
* call-seq:
- * stat.grpowned? => true or false
+ * stat.grpowned? -> true or false
*
* Returns true if the effective group id of the process is the same as
* the group id of <i>stat</i>. On Windows NT, returns <code>false</code>.
@@ -4077,14 +4565,14 @@ static VALUE
rb_stat_grpowned(VALUE obj)
{
#ifndef _WIN32
- if (group_member(get_stat(obj)->st_gid)) return Qtrue;
+ if (rb_group_member(get_stat(obj)->st_gid)) return Qtrue;
#endif
return Qfalse;
}
/*
* call-seq:
- * stat.readable? => true or false
+ * stat.readable? -> true or false
*
* Returns <code>true</code> if <i>stat</i> is readable by the
* effective user id of this process.
@@ -4117,7 +4605,7 @@ rb_stat_r(VALUE obj)
/*
* call-seq:
- * stat.readable_real? -> true or false
+ * stat.readable_real? -> true or false
*
* Returns <code>true</code> if <i>stat</i> is readable by the real
* user id of this process.
@@ -4139,7 +4627,7 @@ rb_stat_R(VALUE obj)
return st->st_mode & S_IRUSR ? Qtrue : Qfalse;
#endif
#ifdef S_IRGRP
- if (group_member(get_stat(obj)->st_gid))
+ if (rb_group_member(get_stat(obj)->st_gid))
return st->st_mode & S_IRGRP ? Qtrue : Qfalse;
#endif
#ifdef S_IROTH
@@ -4150,15 +4638,15 @@ rb_stat_R(VALUE obj)
/*
* call-seq:
- * stat.world_readable? => fixnum or nil
+ * stat.world_readable? -> fixnum or nil
*
* If <i>stat</i> is readable by others, returns an integer
* representing the file permission bits of <i>stat</i>. Returns
* <code>nil</code> otherwise. The meaning of the bits is platform
* dependent; on Unix systems, see <code>stat(2)</code>.
*
- * m = File.stat("/etc/passwd").world_readable? # => 420
- * sprintf("%o", m) # => "644"
+ * m = File.stat("/etc/passwd").world_readable? #=> 420
+ * sprintf("%o", m) #=> "644"
*/
static VALUE
@@ -4176,7 +4664,7 @@ rb_stat_wr(VALUE obj)
/*
* call-seq:
- * stat.writable? -> true or false
+ * stat.writable? -> true or false
*
* Returns <code>true</code> if <i>stat</i> is writable by the
* effective user id of this process.
@@ -4209,7 +4697,7 @@ rb_stat_w(VALUE obj)
/*
* call-seq:
- * stat.writable_real? -> true or false
+ * stat.writable_real? -> true or false
*
* Returns <code>true</code> if <i>stat</i> is writable by the real
* user id of this process.
@@ -4231,7 +4719,7 @@ rb_stat_W(VALUE obj)
return st->st_mode & S_IWUSR ? Qtrue : Qfalse;
#endif
#ifdef S_IWGRP
- if (group_member(get_stat(obj)->st_gid))
+ if (rb_group_member(get_stat(obj)->st_gid))
return st->st_mode & S_IWGRP ? Qtrue : Qfalse;
#endif
#ifdef S_IWOTH
@@ -4242,15 +4730,15 @@ rb_stat_W(VALUE obj)
/*
* call-seq:
- * stat.world_writable? => fixnum or nil
+ * stat.world_writable? -> fixnum or nil
*
* If <i>stat</i> is writable by others, returns an integer
* representing the file permission bits of <i>stat</i>. Returns
* <code>nil</code> otherwise. The meaning of the bits is platform
* dependent; on Unix systems, see <code>stat(2)</code>.
*
- * m = File.stat("/tmp").world_writable? # => 511
- * sprintf("%o", m) # => "777"
+ * m = File.stat("/tmp").world_writable? #=> 511
+ * sprintf("%o", m) #=> "777"
*/
static VALUE
@@ -4268,7 +4756,7 @@ rb_stat_ww(VALUE obj)
/*
* call-seq:
- * stat.executable? => true or false
+ * stat.executable? -> true or false
*
* Returns <code>true</code> if <i>stat</i> is executable or if the
* operating system doesn't distinguish executable files from
@@ -4305,7 +4793,7 @@ rb_stat_x(VALUE obj)
/*
* call-seq:
- * stat.executable_real? => true or false
+ * stat.executable_real? -> true or false
*
* Same as <code>executable?</code>, but tests using the real owner of
* the process.
@@ -4326,7 +4814,7 @@ rb_stat_X(VALUE obj)
return st->st_mode & S_IXUSR ? Qtrue : Qfalse;
#endif
#ifdef S_IXGRP
- if (group_member(get_stat(obj)->st_gid))
+ if (rb_group_member(get_stat(obj)->st_gid))
return st->st_mode & S_IXGRP ? Qtrue : Qfalse;
#endif
#ifdef S_IXOTH
@@ -4337,7 +4825,7 @@ rb_stat_X(VALUE obj)
/*
* call-seq:
- * stat.file? => true or false
+ * stat.file? -> true or false
*
* Returns <code>true</code> if <i>stat</i> is a regular file (not
* a device file, pipe, socket, etc.).
@@ -4355,7 +4843,7 @@ rb_stat_f(VALUE obj)
/*
* call-seq:
- * stat.zero? => true or false
+ * stat.zero? -> true or false
*
* Returns <code>true</code> if <i>stat</i> is a zero-length file;
* <code>false</code> otherwise.
@@ -4373,7 +4861,7 @@ rb_stat_z(VALUE obj)
/*
* call-seq:
- * state.size => integer
+ * state.size -> integer
*
* Returns the size of <i>stat</i> in bytes.
*
@@ -4392,7 +4880,7 @@ rb_stat_s(VALUE obj)
/*
* call-seq:
- * stat.setuid? => true or false
+ * stat.setuid? -> true or false
*
* Returns <code>true</code> if <i>stat</i> has the set-user-id
* permission bit set, <code>false</code> if it doesn't or if the
@@ -4412,7 +4900,7 @@ rb_stat_suid(VALUE obj)
/*
* call-seq:
- * stat.setgid? => true or false
+ * stat.setgid? -> true or false
*
* Returns <code>true</code> if <i>stat</i> has the set-group-id
* permission bit set, <code>false</code> if it doesn't or if the
@@ -4433,7 +4921,7 @@ rb_stat_sgid(VALUE obj)
/*
* call-seq:
- * stat.sticky? => true or false
+ * stat.sticky? -> true or false
*
* Returns <code>true</code> if <i>stat</i> has its sticky bit set,
* <code>false</code> if it doesn't or if the operating system doesn't
@@ -4460,8 +4948,8 @@ rb_file_const(const char *name, VALUE value)
rb_define_const(rb_mFConst, name, value);
}
-static int
-is_absolute_path(const char *path)
+int
+rb_is_absolute_path(const char *path)
{
#ifdef DOSISH_DRIVE_LETTER
if (has_drive_letter(path) && isdirsep(path[2])) return 1;
@@ -4491,7 +4979,7 @@ path_check_0(VALUE path, int execpath)
const char *p0 = StringValueCStr(path);
char *p = 0, *s;
- if (!is_absolute_path(p0)) {
+ if (!rb_is_absolute_path(p0)) {
char *buf = my_getcwd();
VALUE newpath;
@@ -4500,20 +4988,23 @@ path_check_0(VALUE path, int execpath)
rb_str_cat2(newpath, "/");
rb_str_cat2(newpath, p0);
- p0 = RSTRING_PTR(path = newpath);
+ path = newpath;
+ p0 = RSTRING_PTR(path);
}
for (;;) {
#ifndef S_IWOTH
# define S_IWOTH 002
#endif
- if (stat(p0, &st) == 0 && S_ISDIR(st.st_mode) && (st.st_mode & S_IWOTH)
+ if (STAT(p0, &st) == 0 && S_ISDIR(st.st_mode) && (st.st_mode & S_IWOTH)
#ifdef S_ISVTX
&& !(p && execpath && (st.st_mode & S_ISVTX))
#endif
&& !access(p0, W_OK)) {
- rb_warn("Insecure world writable dir %s in %sPATH, mode 0%o",
+ rb_warn("Insecure world writable dir %s in %sPATH, mode 0%"
+ PRI_MODET_PREFIX"o",
p0, (execpath ? "" : "LOAD_"), st.st_mode);
if (p) *p = '/';
+ RB_GC_GUARD(path);
return 0;
}
s = strrdirsep(p0);
@@ -4525,15 +5016,11 @@ path_check_0(VALUE path, int execpath)
}
#endif
-static int
-fpath_check(const char *path)
-{
#if ENABLE_PATH_CHECK
- return path_check_0(rb_str_new2(path), Qfalse);
+#define fpath_check(path) path_check_0((path), FALSE)
#else
- return 1;
+#define fpath_check(path) 1
#endif
-}
int
rb_path_check(const char *path)
@@ -4550,7 +5037,7 @@ rb_path_check(const char *path)
if (!p) p = pend;
for (;;) {
- if (!path_check_0(rb_str_new(p0, p - p0), Qtrue)) {
+ if (!path_check_0(rb_str_new(p0, p - p0), TRUE)) {
return 0; /* not safe */
}
p0 = p + 1;
@@ -4568,6 +5055,7 @@ file_load_ok(const char *path)
int ret = 1;
int fd = open(path, O_RDONLY);
if (fd == -1) return 0;
+ rb_update_max_fd(fd);
#if !defined DOSISH
{
struct stat st;
@@ -4580,6 +5068,12 @@ file_load_ok(const char *path)
return ret;
}
+int
+rb_file_load_ok(const char *path)
+{
+ return file_load_ok(path);
+}
+
static int
is_explicit_relative(const char *path)
{
@@ -4588,36 +5082,50 @@ is_explicit_relative(const char *path)
return isdirsep(*path);
}
-VALUE rb_get_load_path(void);
+static VALUE
+copy_path_class(VALUE path, VALUE orig)
+{
+ RBASIC(path)->klass = rb_obj_class(orig);
+ OBJ_FREEZE(path);
+ return path;
+}
int
rb_find_file_ext(VALUE *filep, const char *const *ext)
{
- const char *f = RSTRING_PTR(*filep);
- VALUE fname, load_path, tmp;
+ return rb_find_file_ext_safe(filep, ext, rb_safe_level());
+}
+
+int
+rb_find_file_ext_safe(VALUE *filep, const char *const *ext, int safe_level)
+{
+ const char *f = StringValueCStr(*filep);
+ VALUE fname = *filep, load_path, tmp;
long i, j, fnlen;
+ int expanded = 0;
if (!ext[0]) return 0;
if (f[0] == '~') {
- fname = rb_file_expand_path(*filep, Qnil);
- if (rb_safe_level() >= 2 && OBJ_TAINTED(fname)) {
+ fname = file_expand_path_1(fname);
+ if (safe_level >= 1 && OBJ_TAINTED(fname)) {
rb_raise(rb_eSecurityError, "loading from unsafe file %s", f);
}
- OBJ_FREEZE(fname);
- f = StringValueCStr(fname);
+ f = RSTRING_PTR(fname);
*filep = fname;
+ expanded = 1;
}
- if (is_absolute_path(f) || is_explicit_relative(f)) {
- fname = rb_str_dup(*filep);
+ if (expanded || rb_is_absolute_path(f) || is_explicit_relative(f)) {
+ if (safe_level >= 1 && !fpath_check(fname)) {
+ rb_raise(rb_eSecurityError, "loading from unsafe path %s", f);
+ }
+ if (!expanded) fname = file_expand_path_1(fname);
fnlen = RSTRING_LEN(fname);
for (i=0; ext[i]; i++) {
rb_str_cat2(fname, ext[i]);
- if (file_load_ok(StringValueCStr(fname))) {
- if (!is_absolute_path(f)) fname = rb_file_expand_path(fname, Qnil);
- OBJ_FREEZE(fname);
- *filep = fname;
+ if (file_load_ok(RSTRING_PTR(fname))) {
+ *filep = copy_path_class(fname, *filep);
return (int)(i+1);
}
rb_str_set_len(fname, fnlen);
@@ -4625,7 +5133,11 @@ rb_find_file_ext(VALUE *filep, const char *const *ext)
return 0;
}
- load_path = rb_get_load_path();
+ if (safe_level >= 4) {
+ rb_raise(rb_eSecurityError, "loading from non-absolute path %s", f);
+ }
+
+ RB_GC_GUARD(load_path) = rb_get_load_path();
if (!load_path) return 0;
fname = rb_str_dup(*filep);
@@ -4637,13 +5149,11 @@ rb_find_file_ext(VALUE *filep, const char *const *ext)
for (i = 0; i < RARRAY_LEN(load_path); i++) {
VALUE str = RARRAY_PTR(load_path)[i];
- FilePathValue(str);
+ RB_GC_GUARD(str) = rb_get_path_check(str, safe_level);
if (RSTRING_LEN(str) == 0) continue;
file_expand_path(fname, str, 0, tmp);
if (file_load_ok(RSTRING_PTR(tmp))) {
- RBASIC(tmp)->klass = rb_obj_class(*filep);
- OBJ_FREEZE(tmp);
- *filep = tmp;
+ *filep = copy_path_class(tmp, *filep);
return (int)(j+1);
}
FL_UNSET(tmp, FL_TAINT | FL_UNTRUSTED);
@@ -4657,28 +5167,37 @@ rb_find_file_ext(VALUE *filep, const char *const *ext)
VALUE
rb_find_file(VALUE path)
{
+ return rb_find_file_safe(path, rb_safe_level());
+}
+
+VALUE
+rb_find_file_safe(VALUE path, int safe_level)
+{
VALUE tmp, load_path;
const char *f = StringValueCStr(path);
+ int expanded = 0;
if (f[0] == '~') {
- path = rb_file_expand_path(path, Qnil);
- if (rb_safe_level() >= 1 && OBJ_TAINTED(path)) {
- rb_raise(rb_eSecurityError, "loading from unsafe path %s", f);
+ tmp = file_expand_path_1(path);
+ if (safe_level >= 1 && OBJ_TAINTED(tmp)) {
+ rb_raise(rb_eSecurityError, "loading from unsafe file %s", f);
}
- OBJ_FREEZE(path);
- f = StringValueCStr(path);
+ path = copy_path_class(tmp, path);
+ f = RSTRING_PTR(path);
+ expanded = 1;
}
- if (is_absolute_path(f) || is_explicit_relative(f)) {
- if (rb_safe_level() >= 1 && !fpath_check(f)) {
- rb_raise(rb_eSecurityError, "loading from unsafe file %s", f);
+ if (expanded || rb_is_absolute_path(f) || is_explicit_relative(f)) {
+ if (safe_level >= 1 && !fpath_check(path)) {
+ rb_raise(rb_eSecurityError, "loading from unsafe path %s", f);
}
if (!file_load_ok(f)) return 0;
- if (!is_absolute_path(f)) path = rb_file_expand_path(path, Qnil);
+ if (!expanded)
+ path = copy_path_class(file_expand_path_1(path), path);
return path;
}
- if (rb_safe_level() >= 4) {
+ if (safe_level >= 4) {
rb_raise(rb_eSecurityError, "loading from non-absolute path %s", f);
}
@@ -4689,7 +5208,7 @@ rb_find_file(VALUE path)
tmp = rb_str_tmp_new(MAXPATHLEN + 2);
for (i = 0; i < RARRAY_LEN(load_path); i++) {
VALUE str = RARRAY_PTR(load_path)[i];
- FilePathValue(str);
+ RB_GC_GUARD(str) = rb_get_path_check(str, safe_level);
if (RSTRING_LEN(str) > 0) {
file_expand_path(path, str, 0, tmp);
f = RSTRING_PTR(tmp);
@@ -4697,19 +5216,17 @@ rb_find_file(VALUE path)
}
}
return 0;
- found:
- RBASIC(tmp)->klass = rb_obj_class(path);
- OBJ_FREEZE(tmp);
}
else {
return 0; /* no path, no load */
}
- if (rb_safe_level() >= 1 && !fpath_check(f)) {
+ found:
+ if (safe_level >= 1 && !fpath_check(tmp)) {
rb_raise(rb_eSecurityError, "loading from unsafe file %s", f);
}
- return tmp;
+ return copy_path_class(tmp, path);
}
static void
@@ -4719,6 +5236,17 @@ define_filetest_function(const char *name, VALUE (*func)(ANYARGS), int argc)
rb_define_singleton_method(rb_cFile, name, func, argc);
}
+static const char null_device[] =
+#if defined DOSISH
+ "NUL"
+#elif defined AMIGA || defined __amigaos__
+ "NIL"
+#elif defined __VMS
+ "NL:"
+#else
+ "/dev/null"
+#endif
+ ;
/*
* A <code>File</code> is an abstraction of any file object accessible
@@ -4814,6 +5342,8 @@ Init_File(void)
rb_define_singleton_method(rb_cFile, "truncate", rb_file_s_truncate, 2);
rb_define_singleton_method(rb_cFile, "expand_path", rb_file_s_expand_path, -1);
rb_define_singleton_method(rb_cFile, "absolute_path", rb_file_s_absolute_path, -1);
+ rb_define_singleton_method(rb_cFile, "realpath", rb_file_s_realpath, -1);
+ rb_define_singleton_method(rb_cFile, "realdirpath", rb_file_s_realdirpath, -1);
rb_define_singleton_method(rb_cFile, "basename", rb_file_s_basename, -1);
rb_define_singleton_method(rb_cFile, "dirname", rb_file_s_dirname, 1);
rb_define_singleton_method(rb_cFile, "extname", rb_file_s_extname, 1);
@@ -4826,7 +5356,7 @@ Init_File(void)
rb_define_singleton_method(rb_cFile, "join", rb_file_s_join, -2);
#ifdef DOSISH
- rb_define_const(rb_cFile, "ALT_SEPARATOR", rb_obj_freeze(rb_usascii_str_new2("\\")));
+ rb_define_const(rb_cFile, "ALT_SEPARATOR", rb_obj_freeze(rb_usascii_str_new2(file_alt_separator)));
#else
rb_define_const(rb_cFile, "ALT_SEPARATOR", Qnil);
#endif
@@ -4853,6 +5383,8 @@ Init_File(void)
rb_file_const("LOCK_UN", INT2FIX(LOCK_UN));
rb_file_const("LOCK_NB", INT2FIX(LOCK_NB));
+ rb_file_const("NULL", rb_obj_freeze(rb_usascii_str_new2(null_device)));
+
rb_define_method(rb_cFile, "path", rb_file_path, 0);
rb_define_method(rb_cFile, "to_path", rb_file_path, 0);
rb_define_global_function("test", rb_f_test, -1);
diff --git a/gc.c b/gc.c
index 434dbd4ee0..e65d0ec6e6 100644
--- a/gc.c
+++ b/gc.c
@@ -18,7 +18,9 @@
#include "ruby/util.h"
#include "eval_intern.h"
#include "vm_core.h"
+#include "internal.h"
#include "gc.h"
+#include "constant.h"
#include <stdio.h>
#include <setjmp.h>
#include <sys/types.h>
@@ -38,18 +40,16 @@
#ifdef HAVE_VALGRIND_MEMCHECK_H
# include <valgrind/memcheck.h>
# ifndef VALGRIND_MAKE_MEM_DEFINED
-# define VALGRIND_MAKE_MEM_DEFINED(p, n) VALGRIND_MAKE_READABLE(p, n)
+# define VALGRIND_MAKE_MEM_DEFINED(p, n) VALGRIND_MAKE_READABLE((p), (n))
# endif
# ifndef VALGRIND_MAKE_MEM_UNDEFINED
-# define VALGRIND_MAKE_MEM_UNDEFINED(p, n) VALGRIND_MAKE_WRITABLE(p, n)
+# define VALGRIND_MAKE_MEM_UNDEFINED(p, n) VALGRIND_MAKE_WRITABLE((p), (n))
# endif
#else
# define VALGRIND_MAKE_MEM_DEFINED(p, n) /* empty */
# define VALGRIND_MAKE_MEM_UNDEFINED(p, n) /* empty */
#endif
-int rb_io_fptr_finalize(struct rb_io_t*);
-
#define rb_setjmp(env) RUBY_SETJMP(env)
#define rb_jmp_buf rb_jmpbuf_t
@@ -77,6 +77,24 @@ void *alloca ();
#ifndef GC_MALLOC_LIMIT
#define GC_MALLOC_LIMIT 8000000
#endif
+#define HEAP_MIN_SLOTS 10000
+#define FREE_MIN 4096
+
+typedef struct {
+ unsigned int initial_malloc_limit;
+ unsigned int initial_heap_min_slots;
+ unsigned int initial_free_min;
+ int gc_stress;
+} ruby_gc_params_t;
+
+ruby_gc_params_t initial_params = {
+ GC_MALLOC_LIMIT,
+ HEAP_MIN_SLOTS,
+ FREE_MIN,
+#if defined(ENABLE_VM_OBJSPACE) && ENABLE_VM_OBJSPACE
+ FALSE,
+#endif
+};
#define nomem_error GET_VM()->special_exceptions[ruby_error_nomemory]
@@ -84,8 +102,6 @@ void *alloca ();
int ruby_gc_debug_indent = 0;
-#undef GC_DEBUG
-
/* for GC profile */
#define GC_PROFILE_MORE_DETAIL 0
typedef struct gc_profile_record {
@@ -95,7 +111,6 @@ typedef struct gc_profile_record {
double gc_invoke_time;
size_t heap_use_slots;
- size_t heap_longlife_use_slots;
size_t heap_live_objects;
size_t heap_free_objects;
size_t heap_total_objects;
@@ -103,7 +118,7 @@ typedef struct gc_profile_record {
size_t heap_total_size;
int have_finalize;
- int longlife_collection;
+ int is_marked;
size_t allocate_increase;
size_t allocate_limit;
@@ -161,24 +176,26 @@ getrusage_time(void)
MEMZERO(&objspace->profile.record[count], gc_profile_record, 1);\
gc_time = getrusage_time();\
objspace->profile.record[count].gc_invoke_time = gc_time - objspace->profile.invoke_time;\
- objspace->profile.record[count].longlife_collection = objspace->flags.longlife_collection;\
}\
} while(0)
-#define GC_PROF_TIMER_STOP do {\
+#define GC_PROF_TIMER_STOP(marked) do {\
if (objspace->profile.run) {\
gc_time = getrusage_time() - gc_time;\
if (gc_time < 0) gc_time = 0;\
objspace->profile.record[count].gc_time = gc_time;\
+ objspace->profile.record[count].is_marked = !!(marked);\
+ GC_PROF_SET_HEAP_INFO(objspace->profile.record[count]);\
objspace->profile.count++;\
}\
} while(0)
#if GC_PROFILE_MORE_DETAIL
-#define INIT_GC_PROF_PARAMS double gc_time = 0, mark_time = 0, sweep_time = 0;\
- size_t count = objspace->profile.count
+#define INIT_GC_PROF_PARAMS double gc_time = 0, sweep_time = 0;\
+ size_t count = objspace->profile.count, total = 0, live = 0
-#define GC_PROF_MARK_TIMER_START do {\
+#define GC_PROF_MARK_TIMER_START double mark_time = 0;\
+ do {\
if (objspace->profile.run) {\
mark_time = getrusage_time();\
}\
@@ -188,7 +205,7 @@ getrusage_time(void)
if (objspace->profile.run) {\
mark_time = getrusage_time() - mark_time;\
if (mark_time < 0) mark_time = 0;\
- objspace->profile.record[count].gc_mark_time = mark_time;\
+ objspace->profile.record[objspace->profile.count].gc_mark_time = mark_time;\
}\
} while(0)
@@ -207,40 +224,41 @@ getrusage_time(void)
} while(0)
#define GC_PROF_SET_MALLOC_INFO do {\
if (objspace->profile.run) {\
- size_t count = objspace->profile.count;\
- objspace->profile.record[count].allocate_increase = malloc_increase;\
- objspace->profile.record[count].allocate_limit = malloc_limit; \
+ gc_profile_record *record = &objspace->profile.record[objspace->profile.count];\
+ record->allocate_increase = malloc_increase;\
+ record->allocate_limit = malloc_limit; \
}\
} while(0)
-#define GC_PROF_SET_HEAP_INFO do {\
- if (objspace->profile.run) {\
- size_t count = objspace->profile.count;\
- objspace->profile.record[count].heap_use_slots = heaps_used;\
- objspace->profile.record[count].heap_longlife_use_slots = objspace->heap.longlife_used;\
- objspace->profile.record[count].heap_live_objects = live + objspace->profile.longlife_objects;\
- objspace->profile.record[count].heap_free_objects = freed + (objspace->heap.longlife_used * HEAP_OBJ_LIMIT - objspace->profile.longlife_objects); \
- objspace->profile.record[count].heap_total_objects = heaps_used * HEAP_OBJ_LIMIT;\
- objspace->profile.record[count].have_finalize = final_list ? Qtrue : Qfalse;\
- objspace->profile.record[count].heap_use_size = (live + objspace->profile.longlife_objects) * sizeof(RVALUE); \
- objspace->profile.record[count].heap_total_size = heaps_used * (HEAP_OBJ_LIMIT * sizeof(RVALUE));\
- }\
+#define GC_PROF_SET_HEAP_INFO(record) do {\
+ live = objspace->heap.live_num;\
+ total = heaps_used * HEAP_OBJ_LIMIT;\
+ (record).heap_use_slots = heaps_used;\
+ (record).heap_live_objects = live;\
+ (record).heap_free_objects = total - live;\
+ (record).heap_total_objects = total;\
+ (record).have_finalize = deferred_final_list ? Qtrue : Qfalse;\
+ (record).heap_use_size = live * sizeof(RVALUE);\
+ (record).heap_total_size = total * sizeof(RVALUE);\
} while(0)
+#define GC_PROF_INC_LIVE_NUM objspace->heap.live_num++
+#define GC_PROF_DEC_LIVE_NUM objspace->heap.live_num--
#else
#define INIT_GC_PROF_PARAMS double gc_time = 0;\
- size_t count = objspace->profile.count
+ size_t count = objspace->profile.count, total = 0, live = 0
#define GC_PROF_MARK_TIMER_START
#define GC_PROF_MARK_TIMER_STOP
#define GC_PROF_SWEEP_TIMER_START
#define GC_PROF_SWEEP_TIMER_STOP
#define GC_PROF_SET_MALLOC_INFO
-#define GC_PROF_SET_HEAP_INFO do {\
- if (objspace->profile.run) {\
- size_t count = objspace->profile.count;\
- objspace->profile.record[count].heap_total_objects = heaps_used * HEAP_OBJ_LIMIT;\
- objspace->profile.record[count].heap_use_size = (live + objspace->profile.longlife_objects) * sizeof(RVALUE); \
- objspace->profile.record[count].heap_total_size = heaps_used * HEAP_SIZE;\
- }\
+#define GC_PROF_SET_HEAP_INFO(record) do {\
+ live = objspace->heap.live_num;\
+ total = heaps_used * HEAP_OBJ_LIMIT;\
+ (record).heap_total_objects = total;\
+ (record).heap_use_size = live * sizeof(RVALUE);\
+ (record).heap_total_size = total * sizeof(RVALUE);\
} while(0)
+#define GC_PROF_INC_LIVE_NUM
+#define GC_PROF_DEC_LIVE_NUM
#endif
@@ -263,6 +281,7 @@ typedef struct RVALUE {
struct RRegexp regexp;
struct RHash hash;
struct RData data;
+ struct RTypedData typeddata;
struct RStruct rstruct;
struct RBignum bignum;
struct RFile file;
@@ -272,7 +291,7 @@ typedef struct RVALUE {
struct RComplex complex;
} as;
#ifdef GC_DEBUG
- char *file;
+ const char *file;
int line;
#endif
} RVALUE;
@@ -281,20 +300,19 @@ typedef struct RVALUE {
#pragma pack(pop)
#endif
-enum lifetime {
- lifetime_normal,
- lifetime_longlife
-};
-
struct heaps_slot {
void *membase;
RVALUE *slot;
- int limit;
- enum lifetime lifetime;
+ size_t limit;
+ struct heaps_slot *next;
+ struct heaps_slot *prev;
};
-#define HEAP_MIN_SLOTS 10000
-#define FREE_MIN 4096
+struct sorted_heaps_slot {
+ RVALUE *start;
+ RVALUE *end;
+ struct heaps_slot *slot;
+};
struct gc_list {
VALUE *varptr;
@@ -303,11 +321,6 @@ struct gc_list {
#define CALC_EXACT_MALLOC_SIZE 0
-typedef struct remembered_set {
- RVALUE *obj;
- struct remembered_set *next;
-} remembered_set_t;
-
typedef struct rb_objspace {
struct {
size_t limit;
@@ -320,22 +333,23 @@ typedef struct rb_objspace {
struct {
size_t increment;
struct heaps_slot *ptr;
+ struct heaps_slot *sweep_slots;
+ struct sorted_heaps_slot *sorted;
size_t length;
size_t used;
- size_t longlife_used;
RVALUE *freelist;
- RVALUE *longlife_freelist;
RVALUE *range[2];
RVALUE *freed;
+ size_t live_num;
+ size_t free_num;
+ size_t free_min;
+ size_t final_num;
+ size_t do_heap_free;
} heap;
struct {
- remembered_set_t *ptr;
- remembered_set_t *freed;
- } remembered_set;
- struct {
int dont_gc;
+ int dont_lazy_sweep;
int during_gc;
- int longlife_collection;
} flags;
struct {
st_table *table;
@@ -351,17 +365,16 @@ typedef struct rb_objspace {
gc_profile_record *record;
size_t count;
size_t size;
- size_t longlife_objects;
double invoke_time;
} profile;
struct gc_list *global_list;
- unsigned int count;
+ size_t count;
int gc_stress;
} rb_objspace_t;
#if defined(ENABLE_VM_OBJSPACE) && ENABLE_VM_OBJSPACE
#define rb_objspace (*GET_VM()->objspace)
-static int ruby_initial_gc_stress = 0;
+#define ruby_initial_gc_stress initial_params.gc_stress
int *ruby_initial_gc_stress_ptr = &ruby_initial_gc_stress;
#else
static rb_objspace_t rb_objspace = {{GC_MALLOC_LIMIT}, {HEAP_MIN_SLOTS}};
@@ -369,7 +382,6 @@ int *ruby_initial_gc_stress_ptr = &rb_objspace.gc_stress;
#endif
#define malloc_limit objspace->malloc_params.limit
#define malloc_increase objspace->malloc_params.increase
-#define heap_slots objspace->heap.slots
#define heaps objspace->heap.ptr
#define heaps_length objspace->heap.length
#define heaps_used objspace->heap.used
@@ -387,8 +399,11 @@ int *ruby_initial_gc_stress_ptr = &rb_objspace.gc_stress;
#define mark_stack_overflow objspace->markstack.overflow
#define global_List objspace->global_list
#define ruby_gc_stress objspace->gc_stress
+#define initial_malloc_limit initial_params.initial_malloc_limit
+#define initial_heap_min_slots initial_params.initial_heap_min_slots
+#define initial_free_min initial_params.initial_free_min
-#define need_call_final (finalizer_table && finalizer_table->num_entries)
+static void rb_objspace_call_finalizer(rb_objspace_t *objspace);
#if defined(ENABLE_VM_OBJSPACE) && ENABLE_VM_OBJSPACE
rb_objspace_t *
@@ -396,13 +411,90 @@ rb_objspace_alloc(void)
{
rb_objspace_t *objspace = malloc(sizeof(rb_objspace_t));
memset(objspace, 0, sizeof(*objspace));
- malloc_limit = GC_MALLOC_LIMIT;
+ malloc_limit = initial_malloc_limit;
ruby_gc_stress = ruby_initial_gc_stress;
return objspace;
}
#endif
+static void initial_expand_heap(rb_objspace_t *objspace);
+
+void
+rb_gc_set_params(void)
+{
+ char *malloc_limit_ptr, *heap_min_slots_ptr, *free_min_ptr;
+
+ if (rb_safe_level() > 0) return;
+
+ malloc_limit_ptr = getenv("RUBY_GC_MALLOC_LIMIT");
+ if (malloc_limit_ptr != NULL) {
+ int malloc_limit_i = atoi(malloc_limit_ptr);
+ if (RTEST(ruby_verbose))
+ fprintf(stderr, "malloc_limit=%d (%d)\n",
+ malloc_limit_i, initial_malloc_limit);
+ if (malloc_limit_i > 0) {
+ initial_malloc_limit = malloc_limit_i;
+ }
+ }
+
+ heap_min_slots_ptr = getenv("RUBY_HEAP_MIN_SLOTS");
+ if (heap_min_slots_ptr != NULL) {
+ int heap_min_slots_i = atoi(heap_min_slots_ptr);
+ if (RTEST(ruby_verbose))
+ fprintf(stderr, "heap_min_slots=%d (%d)\n",
+ heap_min_slots_i, initial_heap_min_slots);
+ if (heap_min_slots_i > 0) {
+ initial_heap_min_slots = heap_min_slots_i;
+ initial_expand_heap(&rb_objspace);
+ }
+ }
+
+ free_min_ptr = getenv("RUBY_FREE_MIN");
+ if (free_min_ptr != NULL) {
+ int free_min_i = atoi(free_min_ptr);
+ if (RTEST(ruby_verbose))
+ fprintf(stderr, "free_min=%d (%d)\n", free_min_i, initial_free_min);
+ if (free_min_i > 0) {
+ initial_free_min = free_min_i;
+ }
+ }
+}
+
+#if defined(ENABLE_VM_OBJSPACE) && ENABLE_VM_OBJSPACE
+static void gc_sweep(rb_objspace_t *);
+static void slot_sweep(rb_objspace_t *, struct heaps_slot *);
+static void rest_sweep(rb_objspace_t *);
+
+void
+rb_objspace_free(rb_objspace_t *objspace)
+{
+ rest_sweep(objspace);
+ if (objspace->profile.record) {
+ free(objspace->profile.record);
+ objspace->profile.record = 0;
+ }
+ if (global_List) {
+ struct gc_list *list, *next;
+ for (list = global_List; list; list = next) {
+ next = list->next;
+ free(list);
+ }
+ }
+ if (objspace->heap.sorted) {
+ size_t i;
+ for (i = 0; i < heaps_used; ++i) {
+ free(objspace->heap.sorted[i].slot->membase);
+ free(objspace->heap.sorted[i].slot);
+ }
+ free(objspace->heap.sorted);
+ heaps_used = 0;
+ heaps = 0;
+ }
+ free(objspace);
+}
+#endif
+
/* tiny heap size */
/* 32KB */
/*#define HEAP_SIZE 0x8000 */
@@ -419,16 +511,15 @@ rb_objspace_alloc(void)
/* 2KB */
/*#define HEAP_SIZE 0x800 */
-#define HEAP_OBJ_LIMIT (HEAP_SIZE / sizeof(struct RVALUE))
-#define NORMAL_HEAPS_USED (objspace->heap.used - objspace->heap.longlife_used)
+#define HEAP_OBJ_LIMIT (unsigned int)(HEAP_SIZE / sizeof(struct RVALUE))
-extern VALUE rb_cMutex;
extern st_table *rb_class_tbl;
int ruby_disable_gc_stress = 0;
static void run_final(rb_objspace_t *objspace, VALUE obj);
static int garbage_collect(rb_objspace_t *objspace);
+static int gc_lazy_sweep(rb_objspace_t *objspace);
void
rb_global_variable(VALUE *var)
@@ -481,7 +572,7 @@ rb_memerror(void)
/*
* call-seq:
- * GC.stress => true or false
+ * GC.stress -> true or false
*
* returns current status of GC stress mode.
*/
@@ -495,14 +586,14 @@ gc_stress_get(VALUE self)
/*
* call-seq:
- * GC.stress = bool => bool
+ * GC.stress = bool -> bool
*
- * updates GC stress mode.
+ * Updates the GC stress mode.
*
- * When GC.stress = true, GC is invoked for all GC opportunity:
- * all memory and object allocation.
+ * When stress mode is enabled the GC is invoked at every GC opportunity:
+ * all memory and object allocations.
*
- * Since it makes Ruby very slow, it is only for debugging.
+ * Enabling stress mode makes Ruby very slow, it is only for debugging.
*/
static VALUE
@@ -516,9 +607,9 @@ gc_stress_set(VALUE self, VALUE flag)
/*
* call-seq:
- * GC::Profiler.enable? => true or false
+ * GC::Profiler.enable? -> true or false
*
- * returns current status of GC profile mode.
+ * The current status of GC profile mode.
*/
static VALUE
@@ -530,10 +621,9 @@ gc_profile_enable_get(VALUE self)
/*
* call-seq:
- * GC::Profiler.enable => nil
+ * GC::Profiler.enable -> nil
*
- * updates GC profile mode.
- * start profiler for GC.
+ * Starts the GC profiler.
*
*/
@@ -542,16 +632,15 @@ gc_profile_enable(void)
{
rb_objspace_t *objspace = &rb_objspace;
- objspace->profile.run = Qtrue;
+ objspace->profile.run = TRUE;
return Qnil;
}
/*
* call-seq:
- * GC::Profiler.disable => nil
+ * GC::Profiler.disable -> nil
*
- * updates GC profile mode.
- * stop profiler for GC.
+ * Stops the GC profiler.
*
*/
@@ -560,15 +649,15 @@ gc_profile_disable(void)
{
rb_objspace_t *objspace = &rb_objspace;
- objspace->profile.run = Qfalse;
+ objspace->profile.run = FALSE;
return Qnil;
}
/*
* call-seq:
- * GC::Profiler.clear => nil
+ * GC::Profiler.clear -> nil
*
- * clear before profile data.
+ * Clears the GC profiler data.
*
*/
@@ -614,12 +703,13 @@ gc_with_gvl(void *ptr)
static int
garbage_collect_with_gvl(rb_objspace_t *objspace)
{
+ if (dont_gc) return TRUE;
if (ruby_thread_has_gvl_p()) {
return garbage_collect(objspace);
}
else {
if (ruby_native_thread_p()) {
- return (VALUE)rb_thread_call_with_gvl(gc_with_gvl, (void *)objspace);
+ return (int)(VALUE)rb_thread_call_with_gvl(gc_with_gvl, (void *)objspace);
}
else {
/* no ruby thread */
@@ -629,11 +719,11 @@ garbage_collect_with_gvl(rb_objspace_t *objspace)
}
}
-static void *
-vm_xmalloc(rb_objspace_t *objspace, size_t size)
-{
- void *mem;
+static void vm_xfree(rb_objspace_t *objspace, void *ptr);
+static inline size_t
+vm_malloc_prepare(rb_objspace_t *objspace, size_t size)
+{
if ((ssize_t)size < 0) {
negative_size_allocation_error("negative allocation size (or too big)");
}
@@ -647,15 +737,13 @@ vm_xmalloc(rb_objspace_t *objspace, size_t size)
(malloc_increase+size) > malloc_limit) {
garbage_collect_with_gvl(objspace);
}
- mem = malloc(size);
- if (!mem) {
- if (garbage_collect_with_gvl(objspace)) {
- mem = malloc(size);
- }
- if (!mem) {
- ruby_memerror();
- }
- }
+
+ return size;
+}
+
+static inline void *
+vm_malloc_fixup(rb_objspace_t *objspace, void *mem, size_t size)
+{
malloc_increase += size;
#if CALC_EXACT_MALLOC_SIZE
@@ -668,6 +756,24 @@ vm_xmalloc(rb_objspace_t *objspace, size_t size)
return mem;
}
+#define TRY_WITH_GC(alloc) do { \
+ if (!(alloc) && \
+ (!garbage_collect_with_gvl(objspace) || \
+ !(alloc))) { \
+ ruby_memerror(); \
+ } \
+ } while (0)
+
+static void *
+vm_xmalloc(rb_objspace_t *objspace, size_t size)
+{
+ void *mem;
+
+ size = vm_malloc_prepare(objspace, size);
+ TRY_WITH_GC(mem = malloc(size));
+ return vm_malloc_fixup(objspace, mem, size);
+}
+
static void *
vm_xrealloc(rb_objspace_t *objspace, void *ptr, size_t size)
{
@@ -676,8 +782,11 @@ vm_xrealloc(rb_objspace_t *objspace, void *ptr, size_t size)
if ((ssize_t)size < 0) {
negative_size_allocation_error("negative re-allocation size");
}
- if (!ptr) return ruby_xmalloc(size);
- if (size == 0) size = 1;
+ if (!ptr) return vm_xmalloc(objspace, size);
+ if (size == 0) {
+ vm_xfree(objspace, ptr);
+ return 0;
+ }
if (ruby_gc_stress && !ruby_disable_gc_stress)
garbage_collect_with_gvl(objspace);
@@ -727,23 +836,39 @@ ruby_xmalloc(size_t size)
return vm_xmalloc(&rb_objspace, size);
}
-void *
-ruby_xmalloc2(size_t n, size_t size)
+static inline size_t
+xmalloc2_size(size_t n, size_t size)
{
size_t len = size * n;
if (n != 0 && size != len / n) {
rb_raise(rb_eArgError, "malloc: possible integer overflow");
}
- return vm_xmalloc(&rb_objspace, len);
+ return len;
}
void *
-ruby_xcalloc(size_t n, size_t size)
+ruby_xmalloc2(size_t n, size_t size)
+{
+ return vm_xmalloc(&rb_objspace, xmalloc2_size(n, size));
+}
+
+static void *
+vm_xcalloc(rb_objspace_t *objspace, size_t count, size_t elsize)
{
- void *mem = ruby_xmalloc2(n, size);
- memset(mem, 0, n * size);
+ void *mem;
+ size_t size;
- return mem;
+ size = xmalloc2_size(count, elsize);
+ size = vm_malloc_prepare(objspace, size);
+
+ TRY_WITH_GC(mem = calloc(1, size));
+ return vm_malloc_fixup(objspace, mem, size);
+}
+
+void *
+ruby_xcalloc(size_t n, size_t size)
+{
+ return vm_xcalloc(&rb_objspace, n, size);
}
void *
@@ -766,13 +891,13 @@ void
ruby_xfree(void *x)
{
if (x)
- vm_xfree(&rb_objspace, x);
+ vm_xfree(&rb_objspace, x);
}
/*
* call-seq:
- * GC.enable => true or false
+ * GC.enable -> true or false
*
* Enables garbage collection, returning <code>true</code> if garbage
* collection was previously disabled.
@@ -789,13 +914,13 @@ rb_gc_enable(void)
rb_objspace_t *objspace = &rb_objspace;
int old = dont_gc;
- dont_gc = Qfalse;
- return old;
+ dont_gc = FALSE;
+ return old ? Qtrue : Qfalse;
}
/*
* call-seq:
- * GC.disable => true or false
+ * GC.disable -> true or false
*
* Disables garbage collection, returning <code>true</code> if garbage
* collection was already disabled.
@@ -811,8 +936,8 @@ rb_gc_disable(void)
rb_objspace_t *objspace = &rb_objspace;
int old = dont_gc;
- dont_gc = Qtrue;
- return old;
+ dont_gc = TRUE;
+ return old ? Qtrue : Qfalse;
}
VALUE rb_mGC;
@@ -861,19 +986,19 @@ rb_gc_unregister_address(VALUE *addr)
static void
-allocate_heaps(rb_objspace_t *objspace, size_t next_heaps_length)
+allocate_sorted_heaps(rb_objspace_t *objspace, size_t next_heaps_length)
{
- struct heaps_slot *p;
+ struct sorted_heaps_slot *p;
size_t size;
- size = next_heaps_length*sizeof(struct heaps_slot);
+ size = next_heaps_length*sizeof(struct sorted_heaps_slot);
if (heaps_used > 0) {
- p = (struct heaps_slot *)realloc(heaps, size);
- if (p) heaps = p;
+ p = (struct sorted_heaps_slot *)realloc(objspace->heap.sorted, size);
+ if (p) objspace->heap.sorted = p;
}
else {
- p = heaps = (struct heaps_slot *)malloc(size);
+ p = objspace->heap.sorted = (struct sorted_heaps_slot *)malloc(size);
}
if (p == 0) {
@@ -884,24 +1009,35 @@ allocate_heaps(rb_objspace_t *objspace, size_t next_heaps_length)
}
static void
-assign_heap_slot(rb_objspace_t *objspace, RVALUE **list, enum lifetime lifetime)
+assign_heap_slot(rb_objspace_t *objspace)
{
RVALUE *p, *pend, *membase;
+ struct heaps_slot *slot;
size_t hi, lo, mid;
- int objs;
+ size_t objs;
objs = HEAP_OBJ_LIMIT;
p = (RVALUE*)malloc(HEAP_SIZE);
-
if (p == 0) {
during_gc = 0;
rb_memerror();
}
+ slot = (struct heaps_slot *)malloc(sizeof(struct heaps_slot));
+ if (slot == 0) {
+ xfree(p);
+ during_gc = 0;
+ rb_memerror();
+ }
+ MEMZERO((void*)slot, struct heaps_slot, 1);
+
+ slot->next = heaps;
+ if (heaps) heaps->prev = slot;
+ heaps = slot;
membase = p;
if ((VALUE)p % sizeof(RVALUE) != 0) {
p = (RVALUE*)((VALUE)p + sizeof(RVALUE) - ((VALUE)p % sizeof(RVALUE)));
- if ((HEAP_SIZE - HEAP_OBJ_LIMIT * sizeof(RVALUE)) < ((char*)p - (char*)membase)) {
+ if ((HEAP_SIZE - HEAP_OBJ_LIMIT * sizeof(RVALUE)) < (size_t)((char*)p - (char*)membase)) {
objs--;
}
}
@@ -911,7 +1047,7 @@ assign_heap_slot(rb_objspace_t *objspace, RVALUE **list, enum lifetime lifetime)
while (lo < hi) {
register RVALUE *mid_membase;
mid = (lo + hi) / 2;
- mid_membase = heaps[mid].membase;
+ mid_membase = objspace->heap.sorted[mid].slot->membase;
if (mid_membase < membase) {
lo = mid + 1;
}
@@ -923,48 +1059,70 @@ assign_heap_slot(rb_objspace_t *objspace, RVALUE **list, enum lifetime lifetime)
}
}
if (hi < heaps_used) {
- MEMMOVE(&heaps[hi+1], &heaps[hi], struct heaps_slot, heaps_used - hi);
- }
- heaps[hi].membase = membase;
- heaps[hi].slot = p;
- heaps[hi].limit = objs;
- heaps[hi].lifetime = lifetime;
+ MEMMOVE(&objspace->heap.sorted[hi+1], &objspace->heap.sorted[hi], struct sorted_heaps_slot, heaps_used - hi);
+ }
+ objspace->heap.sorted[hi].slot = slot;
+ objspace->heap.sorted[hi].start = p;
+ objspace->heap.sorted[hi].end = (p + objs);
+ heaps->membase = membase;
+ heaps->slot = p;
+ heaps->limit = objs;
+ objspace->heap.free_num += objs;
pend = p + objs;
if (lomem == 0 || lomem > p) lomem = p;
if (himem < pend) himem = pend;
- if (lifetime == lifetime_longlife) objspace->heap.longlife_used++;
heaps_used++;
while (p < pend) {
p->as.free.flags = 0;
- p->as.free.next = *list;
- *list = p;
+ p->as.free.next = freelist;
+ freelist = p;
p++;
}
}
static void
-init_heap(rb_objspace_t *objspace)
+add_heap_slots(rb_objspace_t *objspace, size_t add)
{
- size_t add, i;
-
- add = HEAP_MIN_SLOTS / HEAP_OBJ_LIMIT;
-
- if (!add) {
- add = 1;
- }
+ size_t i;
if ((heaps_used + add) > heaps_length) {
- allocate_heaps(objspace, heaps_used + add);
+ allocate_sorted_heaps(objspace, heaps_used + add);
}
for (i = 0; i < add; i++) {
- assign_heap_slot(objspace, &freelist, lifetime_normal);
+ assign_heap_slot(objspace);
}
heaps_inc = 0;
+}
+
+static void
+init_heap(rb_objspace_t *objspace)
+{
+ add_heap_slots(objspace, HEAP_MIN_SLOTS / HEAP_OBJ_LIMIT);
+#ifdef USE_SIGALTSTACK
+ {
+ /* altstack of another threads are allocated in another place */
+ rb_thread_t *th = GET_THREAD();
+ void *tmp = th->altstack;
+ th->altstack = malloc(ALT_STACK_SIZE);
+ free(tmp); /* free previously allocated area */
+ }
+#endif
+
objspace->profile.invoke_time = getrusage_time();
+ finalizer_table = st_init_numtable();
}
+static void
+initial_expand_heap(rb_objspace_t *objspace)
+{
+ size_t min_size = initial_heap_min_slots / HEAP_OBJ_LIMIT;
+
+ if (min_size > heaps_used) {
+ add_heap_slots(objspace, min_size - heaps_used);
+ }
+}
static void
set_heaps_increment(rb_objspace_t *objspace)
@@ -978,7 +1136,7 @@ set_heaps_increment(rb_objspace_t *objspace)
heaps_inc = next_heaps_length - heaps_used;
if (next_heaps_length > heaps_length) {
- allocate_heaps(objspace, next_heaps_length);
+ allocate_sorted_heaps(objspace, next_heaps_length);
}
}
@@ -986,51 +1144,43 @@ static int
heaps_increment(rb_objspace_t *objspace)
{
if (heaps_inc > 0) {
- assign_heap_slot(objspace, &freelist, lifetime_normal);
+ assign_heap_slot(objspace);
heaps_inc--;
- return Qtrue;
+ return TRUE;
}
- return Qfalse;
+ return FALSE;
}
-#define LONGLIFE_ALLOCATE_HEAPS_MIN 10
-
-static void
-add_longlife_heaps_slot(rb_objspace_t *objspace)
+int
+rb_during_gc(void)
{
- if ((heaps_used + heaps_inc) >= heaps_length) {
- allocate_heaps(objspace, (heaps_length + LONGLIFE_ALLOCATE_HEAPS_MIN));
- }
- assign_heap_slot(objspace, &objspace->heap.longlife_freelist, lifetime_longlife);
+ rb_objspace_t *objspace = &rb_objspace;
+ return during_gc;
}
#define RANY(o) ((RVALUE*)(o))
-static VALUE
-rb_newobj_from_longlife_heap(rb_objspace_t *objspace)
+VALUE
+rb_newobj(void)
{
+ rb_objspace_t *objspace = &rb_objspace;
VALUE obj;
- if (!objspace->heap.longlife_freelist) {
- add_longlife_heaps_slot(objspace);
- }
-
- obj = (VALUE)objspace->heap.longlife_freelist;
- objspace->heap.longlife_freelist = objspace->heap.longlife_freelist->as.free.next;
- MEMZERO((void*)obj, RVALUE, 1);
- FL_SET(RANY(obj), FL_MARK);
- objspace->profile.longlife_objects++;
-
- return obj;
-}
+ if (UNLIKELY(during_gc)) {
+ dont_gc = 1;
+ during_gc = 0;
+ rb_bug("object allocation during garbage collection phase");
+ }
-static VALUE
-rb_newobj_from_heap(rb_objspace_t *objspace)
-{
- VALUE obj;
+ if (UNLIKELY(ruby_gc_stress && !ruby_disable_gc_stress)) {
+ if (!garbage_collect(objspace)) {
+ during_gc = 0;
+ rb_memerror();
+ }
+ }
- if ((ruby_gc_stress && !ruby_disable_gc_stress) || !freelist) {
- if (!heaps_increment(objspace) && !garbage_collect(objspace)) {
+ if (UNLIKELY(!freelist)) {
+ if (!gc_lazy_sweep(objspace)) {
during_gc = 0;
rb_memerror();
}
@@ -1044,95 +1194,11 @@ rb_newobj_from_heap(rb_objspace_t *objspace)
RANY(obj)->file = rb_sourcefile();
RANY(obj)->line = rb_sourceline();
#endif
+ GC_PROF_INC_LIVE_NUM;
return obj;
}
-#if USE_VALUE_CACHE
-static VALUE
-rb_fill_value_cache(rb_thread_t *th)
-{
- rb_objspace_t *objspace = &rb_objspace;
- int i;
- VALUE rv;
-
- /* LOCK */
- for (i=0; i<RUBY_VM_VALUE_CACHE_SIZE; i++) {
- VALUE v = rb_newobj_from_heap(objspace);
-
- th->value_cache[i] = v;
- RBASIC(v)->flags = FL_MARK;
- }
- th->value_cache_ptr = &th->value_cache[0];
- rv = rb_newobj_from_heap(objspace);
- /* UNLOCK */
- return rv;
-}
-#endif
-
-int
-rb_during_gc(void)
-{
- rb_objspace_t *objspace = &rb_objspace;
- return during_gc;
-}
-
-VALUE
-rb_newobj(void)
-{
-#if USE_VALUE_CACHE || (defined(ENABLE_VM_OBJSPACE) && ENABLE_VM_OBJSPACE)
- rb_thread_t *th = GET_THREAD();
-#endif
-#if USE_VALUE_CACHE
- VALUE v = *th->value_cache_ptr;
-#endif
-#if defined(ENABLE_VM_OBJSPACE) && ENABLE_VM_OBJSPACE
- rb_objspace_t *objspace = th->vm->objspace;
-#else
- rb_objspace_t *objspace = &rb_objspace;
-#endif
-
- if (during_gc) {
- dont_gc = 1;
- during_gc = 0;
- rb_bug("object allocation during garbage collection phase");
- }
-
-#if USE_VALUE_CACHE
- if (v) {
- RBASIC(v)->flags = 0;
- th->value_cache_ptr++;
- }
- else {
- v = rb_fill_value_cache(th);
- }
-
-#if defined(GC_DEBUG)
- printf("cache index: %d, v: %p, th: %p\n",
- th->value_cache_ptr - th->value_cache, v, th);
-#endif
- return v;
-#else
- return rb_newobj_from_heap(objspace);
-#endif
-}
-
-VALUE
-rb_newobj_longlife(void)
-{
-#if defined(ENABLE_VM_OBJSPACE) && ENABLE_VM_OBJSPACE
- rb_objspace_t *objspace = th->vm->objspace;
-#else
- rb_objspace_t *objspace = &rb_objspace;
-#endif
- if (during_gc) {
- dont_gc = 1;
- during_gc = 0;
- rb_bug("object allocation during garbage collection phase");
- }
- return rb_newobj_from_longlife_heap(objspace);
-}
-
NODE*
rb_node_newnode(enum node_type type, VALUE a0, VALUE a1, VALUE a2)
{
@@ -1148,21 +1214,6 @@ rb_node_newnode(enum node_type type, VALUE a0, VALUE a1, VALUE a2)
return n;
}
-NODE*
-rb_node_newnode_longlife(enum node_type type, VALUE a0, VALUE a1, VALUE a2)
-{
- NODE *n = (NODE*)rb_newobj_longlife();
-
- n->flags |= T_NODE;
- nd_set_type(n, type);
-
- n->u1.value = a0;
- n->u2.value = a1;
- n->u3.value = a2;
-
- return n;
-}
-
VALUE
rb_data_object_alloc(VALUE klass, void *datap, RUBY_DATA_FUNC dmark, RUBY_DATA_FUNC dfree)
{
@@ -1176,6 +1227,44 @@ rb_data_object_alloc(VALUE klass, void *datap, RUBY_DATA_FUNC dmark, RUBY_DATA_F
return (VALUE)data;
}
+VALUE
+rb_data_typed_object_alloc(VALUE klass, void *datap, const rb_data_type_t *type)
+{
+ NEWOBJ(data, struct RTypedData);
+
+ if (klass) Check_Type(klass, T_CLASS);
+
+ OBJSETUP(data, klass, T_DATA);
+
+ data->data = datap;
+ data->typed_flag = 1;
+ data->type = type;
+
+ return (VALUE)data;
+}
+
+size_t
+rb_objspace_data_type_memsize(VALUE obj)
+{
+ if (RTYPEDDATA_P(obj) && RTYPEDDATA_TYPE(obj)->function.dsize) {
+ return RTYPEDDATA_TYPE(obj)->function.dsize(RTYPEDDATA_DATA(obj));
+ }
+ else {
+ return 0;
+ }
+}
+
+const char *
+rb_objspace_data_type_name(VALUE obj)
+{
+ if (RTYPEDDATA_P(obj)) {
+ return RTYPEDDATA_TYPE(obj)->wrap_struct_name;
+ }
+ else {
+ return 0;
+ }
+}
+
#ifdef __ia64
#define SET_STACK_END (SET_MACHINE_STACK_END(&th->machine_stack_end), th->machine_register_stack_end = rb_ia64_bsp())
#else
@@ -1207,7 +1296,8 @@ ruby_get_stack_grow_direction(volatile VALUE *addr)
}
#endif
-#define GC_WATER_MARK 512
+#define GC_LEVEL_MAX 250
+#define STACKFRAME_FOR_GC_MARK (GC_LEVEL_MAX * GC_MARK_STACKFRAME_WORD)
size_t
ruby_stack_length(VALUE **p)
@@ -1219,28 +1309,30 @@ ruby_stack_length(VALUE **p)
}
static int
-stack_check(void)
+stack_check(int water_mark)
{
int ret;
rb_thread_t *th = GET_THREAD();
SET_STACK_END;
- ret = STACK_LENGTH > STACK_LEVEL_MAX - GC_WATER_MARK;
+ ret = STACK_LENGTH > STACK_LEVEL_MAX - water_mark;
#ifdef __ia64
if (!ret) {
ret = (VALUE*)rb_ia64_bsp() - th->machine_register_stack_start >
- th->machine_register_stack_maxsize/sizeof(VALUE) - GC_WATER_MARK;
+ th->machine_register_stack_maxsize/sizeof(VALUE) - water_mark;
}
#endif
return ret;
}
+#define STACKFRAME_FOR_CALL_CFUNC 512
+
int
ruby_stack_check(void)
{
#if defined(POSIX_SIGNAL) && defined(SIGSEGV) && defined(HAVE_SIGALTSTACK)
return 0;
#else
- return stack_check();
+ return stack_check(STACKFRAME_FOR_CALL_CFUNC);
#endif
}
@@ -1264,7 +1356,7 @@ gc_mark_all(rb_objspace_t *objspace)
init_mark_stack(objspace);
for (i = 0; i < heaps_used; i++) {
- p = heaps[i].slot; pend = p + heaps[i].limit;
+ p = objspace->heap.sorted[i].start; pend = objspace->heap.sorted[i].end;
while (p < pend) {
if ((p->as.basic.flags & FL_MARK) &&
(p->as.basic.flags != FL_MARK)) {
@@ -1295,52 +1387,28 @@ static inline int
is_pointer_to_heap(rb_objspace_t *objspace, void *ptr)
{
register RVALUE *p = RANY(ptr);
- register struct heaps_slot *heap;
+ register struct sorted_heaps_slot *heap;
register size_t hi, lo, mid;
- if (p < lomem || p > himem) return Qfalse;
- if ((VALUE)p % sizeof(RVALUE) != 0) return Qfalse;
+ if (p < lomem || p > himem) return FALSE;
+ if ((VALUE)p % sizeof(RVALUE) != 0) return FALSE;
/* check if p looks like a pointer using bsearch*/
lo = 0;
hi = heaps_used;
while (lo < hi) {
mid = (lo + hi) / 2;
- heap = &heaps[mid];
- if (heap->slot <= p) {
- if (p < heap->slot + heap->limit)
- return Qtrue;
+ heap = &objspace->heap.sorted[mid];
+ if (heap->start <= p) {
+ if (p < heap->end)
+ return TRUE;
lo = mid + 1;
}
else {
hi = mid;
}
}
- return Qfalse;
-}
-
-VALUE
-rb_gc_write_barrier(VALUE ptr)
-{
- rb_objspace_t *objspace = &rb_objspace;
- remembered_set_t *tmp;
- RVALUE *obj = RANY(ptr);
-
- if (!SPECIAL_CONST_P(ptr) &&
- !(RBASIC(ptr)->flags & FL_MARK || RBASIC(ptr)->flags & FL_REMEMBERED_SET)) {
- if (objspace->remembered_set.freed) {
- tmp = objspace->remembered_set.freed;
- objspace->remembered_set.freed = objspace->remembered_set.freed->next;
- }
- else {
- tmp = ALLOC(remembered_set_t);
- }
- tmp->next = objspace->remembered_set.ptr;
- tmp->obj = obj;
- obj->as.basic.flags |= FL_REMEMBERED_SET;
- objspace->remembered_set.ptr = tmp;
- }
- return ptr;
+ return FALSE;
}
static void
@@ -1373,7 +1441,7 @@ rb_gc_mark_locations(VALUE *start, VALUE *end)
gc_mark_locations(&rb_objspace, start, end);
}
-#define rb_gc_mark_locations(start, end) gc_mark_locations(objspace, start, end)
+#define rb_gc_mark_locations(start, end) gc_mark_locations(objspace, (start), (end))
struct mark_tbl_arg {
rb_objspace_t *objspace;
@@ -1392,18 +1460,12 @@ static void
mark_tbl(rb_objspace_t *objspace, st_table *tbl, int lev)
{
struct mark_tbl_arg arg;
- if (!tbl) return;
+ if (!tbl || tbl->num_entries == 0) return;
arg.objspace = objspace;
arg.lev = lev;
st_foreach(tbl, mark_entry, (st_data_t)&arg);
}
-void
-rb_mark_tbl(st_table *tbl)
-{
- mark_tbl(&rb_objspace, tbl, 0);
-}
-
static int
mark_key(VALUE key, VALUE value, st_data_t data)
{
@@ -1453,6 +1515,105 @@ rb_mark_hash(st_table *tbl)
mark_hash(&rb_objspace, tbl, 0);
}
+static void
+mark_method_entry(rb_objspace_t *objspace, const rb_method_entry_t *me, int lev)
+{
+ const rb_method_definition_t *def = me->def;
+
+ gc_mark(objspace, me->klass, lev);
+ if (!def) return;
+ switch (def->type) {
+ case VM_METHOD_TYPE_ISEQ:
+ gc_mark(objspace, def->body.iseq->self, lev);
+ break;
+ case VM_METHOD_TYPE_BMETHOD:
+ gc_mark(objspace, def->body.proc, lev);
+ break;
+ case VM_METHOD_TYPE_ATTRSET:
+ case VM_METHOD_TYPE_IVAR:
+ gc_mark(objspace, def->body.attr.location, lev);
+ break;
+ default:
+ break; /* ignore */
+ }
+}
+
+void
+rb_mark_method_entry(const rb_method_entry_t *me)
+{
+ mark_method_entry(&rb_objspace, me, 0);
+}
+
+static int
+mark_method_entry_i(ID key, const rb_method_entry_t *me, st_data_t data)
+{
+ struct mark_tbl_arg *arg = (void*)data;
+ mark_method_entry(arg->objspace, me, arg->lev);
+ return ST_CONTINUE;
+}
+
+static void
+mark_m_tbl(rb_objspace_t *objspace, st_table *tbl, int lev)
+{
+ struct mark_tbl_arg arg;
+ if (!tbl) return;
+ arg.objspace = objspace;
+ arg.lev = lev;
+ st_foreach(tbl, mark_method_entry_i, (st_data_t)&arg);
+}
+
+static int
+free_method_entry_i(ID key, rb_method_entry_t *me, st_data_t data)
+{
+ rb_free_method_entry(me);
+ return ST_CONTINUE;
+}
+
+void
+rb_free_m_table(st_table *tbl)
+{
+ st_foreach(tbl, free_method_entry_i, 0);
+ st_free_table(tbl);
+}
+
+static int
+mark_const_entry_i(ID key, const rb_const_entry_t *ce, st_data_t data)
+{
+ struct mark_tbl_arg *arg = (void*)data;
+ gc_mark(arg->objspace, ce->value, arg->lev);
+ return ST_CONTINUE;
+}
+
+static void
+mark_const_tbl(rb_objspace_t *objspace, st_table *tbl, int lev)
+{
+ struct mark_tbl_arg arg;
+ if (!tbl) return;
+ arg.objspace = objspace;
+ arg.lev = lev;
+ st_foreach(tbl, mark_const_entry_i, (st_data_t)&arg);
+}
+
+static int
+free_const_entry_i(ID key, rb_const_entry_t *ce, st_data_t data)
+{
+ xfree(ce);
+ return ST_CONTINUE;
+}
+
+void
+rb_free_const_table(st_table *tbl)
+{
+ st_foreach(tbl, free_const_entry_i, 0);
+ st_free_table(tbl);
+}
+
+void
+rb_mark_tbl(st_table *tbl)
+{
+ mark_tbl(&rb_objspace, tbl, 0);
+}
+
void
rb_gc_mark_maybe(VALUE obj)
{
@@ -1461,8 +1622,6 @@ rb_gc_mark_maybe(VALUE obj)
}
}
-#define GC_LEVEL_MAX 250
-
static void
gc_mark(rb_objspace_t *objspace, VALUE ptr, int lev)
{
@@ -1473,8 +1632,9 @@ gc_mark(rb_objspace_t *objspace, VALUE ptr, int lev)
if (obj->as.basic.flags == 0) return; /* free cell */
if (obj->as.basic.flags & FL_MARK) return; /* already marked */
obj->as.basic.flags |= FL_MARK;
+ objspace->heap.live_num++;
- if (lev > GC_LEVEL_MAX || (lev == 0 && stack_check())) {
+ if (lev > GC_LEVEL_MAX || (lev == 0 && stack_check(STACKFRAME_FOR_GC_MARK))) {
if (!mark_stack_overflow) {
if (mark_stack_ptr - mark_stack < MARK_STACK_MAX) {
*mark_stack_ptr = ptr;
@@ -1508,6 +1668,7 @@ gc_mark_children(rb_objspace_t *objspace, VALUE ptr, int lev)
if (obj->as.basic.flags == 0) return; /* free cell */
if (obj->as.basic.flags & FL_MARK) return; /* already marked */
obj->as.basic.flags |= FL_MARK;
+ objspace->heap.live_num++;
marking:
if (FL_TEST(obj, FL_EXIVAR)) {
@@ -1554,8 +1715,7 @@ gc_mark_children(rb_objspace_t *objspace, VALUE ptr, int lev)
ptr = (VALUE)obj->as.node.u3.node;
goto again;
- case NODE_METHOD: /* 1,2 */
- case NODE_WHILE:
+ case NODE_WHILE: /* 1,2 */
case NODE_UNTIL:
case NODE_AND:
case NODE_OR:
@@ -1575,8 +1735,7 @@ gc_mark_children(rb_objspace_t *objspace, VALUE ptr, int lev)
case NODE_ARGSCAT:
gc_mark(objspace, (VALUE)obj->as.node.u1.node, lev);
/* fall through */
- case NODE_FBODY: /* 2 */
- case NODE_GASGN:
+ case NODE_GASGN: /* 2 */
case NODE_LASGN:
case NODE_DASGN:
case NODE_DASGN_CURR:
@@ -1616,7 +1775,6 @@ gc_mark_children(rb_objspace_t *objspace, VALUE ptr, int lev)
case NODE_ZARRAY: /* - */
case NODE_ZSUPER:
- case NODE_CFUNC:
case NODE_VCALL:
case NODE_GVAR:
case NODE_LVAR:
@@ -1632,7 +1790,6 @@ gc_mark_children(rb_objspace_t *objspace, VALUE ptr, int lev)
case NODE_TRUE:
case NODE_FALSE:
case NODE_ERRINFO:
- case NODE_ATTRSET:
case NODE_BLOCK_ARG:
break;
case NODE_ALLOCA:
@@ -1661,8 +1818,9 @@ gc_mark_children(rb_objspace_t *objspace, VALUE ptr, int lev)
case T_ICLASS:
case T_CLASS:
case T_MODULE:
- mark_tbl(objspace, RCLASS_M_TBL(obj), lev);
+ mark_m_tbl(objspace, RCLASS_M_TBL(obj), lev);
mark_tbl(objspace, RCLASS_IV_TBL(obj), lev);
+ mark_const_tbl(objspace, RCLASS_CONST_TBL(obj), lev);
ptr = RCLASS_SUPER(obj);
goto again;
@@ -1694,7 +1852,13 @@ gc_mark_children(rb_objspace_t *objspace, VALUE ptr, int lev)
break;
case T_DATA:
- if (obj->as.data.dmark) (*obj->as.data.dmark)(DATA_PTR(obj));
+ if (RTYPEDDATA_P(obj)) {
+ RUBY_DATA_FUNC mark_func = obj->as.typeddata.type->function.dmark;
+ if (mark_func) (*mark_func)(DATA_PTR(obj));
+ }
+ else {
+ if (obj->as.data.dmark) (*obj->as.data.dmark)(DATA_PTR(obj));
+ }
break;
case T_OBJECT:
@@ -1766,12 +1930,12 @@ gc_mark_children(rb_objspace_t *objspace, VALUE ptr, int lev)
static int obj_free(rb_objspace_t *, VALUE);
static inline void
-add_freelist(rb_objspace_t *objspace, RVALUE **list, RVALUE *p)
+add_freelist(rb_objspace_t *objspace, RVALUE *p)
{
VALGRIND_MAKE_MEM_UNDEFINED((void*)p, sizeof(RVALUE));
p->as.free.flags = 0;
- p->as.free.next = *list;
- *list = p;
+ p->as.free.next = freelist;
+ freelist = p;
}
static void
@@ -1781,10 +1945,16 @@ finalize_list(rb_objspace_t *objspace, RVALUE *p)
RVALUE *tmp = p->as.free.next;
run_final(objspace, (VALUE)p);
if (!FL_TEST(p, FL_SINGLETON)) { /* not freeing page */
- add_freelist(objspace, &freelist, p);
+ if (objspace->heap.sweep_slots) {
+ p->as.free.flags = 0;
+ }
+ else {
+ GC_PROF_DEC_LIVE_NUM;
+ add_freelist(objspace, p);
+ }
}
else {
- struct heaps_slot *slot = (struct heaps_slot *)RDATA(p)->dmark;
+ struct heaps_slot *slot = (struct heaps_slot *)(VALUE)RDATA(p)->dmark;
slot->limit--;
}
p = tmp;
@@ -1792,27 +1962,41 @@ finalize_list(rb_objspace_t *objspace, RVALUE *p)
}
static void
+unlink_heap_slot(rb_objspace_t *objspace, struct heaps_slot *slot)
+{
+ if (slot->prev)
+ slot->prev->next = slot->next;
+ if (slot->next)
+ slot->next->prev = slot->prev;
+ if (heaps == slot)
+ heaps = slot->next;
+ if (objspace->heap.sweep_slots == slot)
+ objspace->heap.sweep_slots = slot->next;
+ slot->prev = NULL;
+ slot->next = NULL;
+}
+
+
+static void
free_unused_heaps(rb_objspace_t *objspace)
{
size_t i, j;
RVALUE *last = 0;
for (i = j = 1; j < heaps_used; i++) {
- if (heaps[i].limit == 0) {
+ if (objspace->heap.sorted[i].slot->limit == 0) {
if (!last) {
- last = heaps[i].membase;
+ last = objspace->heap.sorted[i].slot->membase;
}
else {
- free(heaps[i].membase);
+ free(objspace->heap.sorted[i].slot->membase);
}
- if (heaps[i].lifetime == lifetime_longlife) {
- objspace->heap.longlife_used--;
- }
+ free(objspace->heap.sorted[i].slot);
heaps_used--;
}
else {
if (i != j) {
- heaps[j] = heaps[i];
+ objspace->heap.sorted[j] = objspace->heap.sorted[i];
}
j++;
}
@@ -1829,162 +2013,233 @@ free_unused_heaps(rb_objspace_t *objspace)
}
static void
-gc_sweep(rb_objspace_t *objspace)
+slot_sweep(rb_objspace_t *objspace, struct heaps_slot *sweep_slot)
{
- RVALUE *p, *pend, *final_list;
- size_t freed = 0;
- size_t i;
- size_t live = 0, free_min = 0, do_heap_free = 0;
+ size_t free_num = 0, final_num = 0;
+ RVALUE *p, *pend;
+ RVALUE *free = freelist, *final = deferred_final_list;
+ int deferred;
- do_heap_free = (size_t)((heaps_used * HEAP_OBJ_LIMIT) * 0.65);
- free_min = (size_t)((heaps_used * HEAP_OBJ_LIMIT) * 0.2);
+ p = sweep_slot->slot; pend = p + sweep_slot->limit;
+ while (p < pend) {
+ if (!(p->as.basic.flags & FL_MARK)) {
+ if (p->as.basic.flags &&
+ ((deferred = obj_free(objspace, (VALUE)p)) ||
+ (FL_TEST(p, FL_FINALIZE)))) {
+ if (!deferred) {
+ p->as.free.flags = T_ZOMBIE;
+ RDATA(p)->dfree = 0;
+ }
+ p->as.free.flags |= FL_MARK;
+ p->as.free.next = deferred_final_list;
+ deferred_final_list = p;
+ final_num++;
+ }
+ else {
+ add_freelist(objspace, p);
+ free_num++;
+ }
+ }
+ else if (BUILTIN_TYPE(p) == T_ZOMBIE) {
+ /* objects to be finalized */
+ /* do nothing remain marked */
+ }
+ else {
+ RBASIC(p)->flags &= ~FL_MARK;
+ }
+ p++;
+ }
+ if (final_num + free_num == sweep_slot->limit &&
+ objspace->heap.free_num > objspace->heap.do_heap_free) {
+ RVALUE *pp;
- if (free_min < FREE_MIN) {
- do_heap_free = heaps_used * HEAP_OBJ_LIMIT;
- free_min = FREE_MIN;
+ for (pp = deferred_final_list; pp != final; pp = pp->as.free.next) {
+ RDATA(pp)->dmark = (void (*)(void *))(VALUE)sweep_slot;
+ pp->as.free.flags |= FL_SINGLETON; /* freeing page mark */
+ }
+ sweep_slot->limit = final_num;
+ freelist = free; /* cancel this page from freelist */
+ unlink_heap_slot(objspace, sweep_slot);
}
+ else {
+ objspace->heap.free_num += free_num;
+ }
+ objspace->heap.final_num += final_num;
- freelist = 0;
- final_list = deferred_final_list;
- deferred_final_list = 0;
- for (i = 0; i < heaps_used; i++) {
- int free_num = 0, final_num = 0;
- RVALUE *free = freelist;
- RVALUE *final = final_list;
- int deferred;
+ if (deferred_final_list) {
+ rb_thread_t *th = GET_THREAD();
+ if (th) {
+ RUBY_VM_SET_FINALIZER_INTERRUPT(th);
+ }
+ }
+}
- if (heaps[i].lifetime == lifetime_longlife) continue;
- p = heaps[i].slot; pend = p + heaps[i].limit;
- while (p < pend) {
- if (!(p->as.basic.flags & FL_MARK)) {
- if (p->as.basic.flags &&
- ((deferred = obj_free(objspace, (VALUE)p)) ||
- ((FL_TEST(p, FL_FINALIZE)) && need_call_final))) {
- if (!deferred) {
- p->as.free.flags = T_ZOMBIE;
- RDATA(p)->dfree = 0;
- }
- p->as.free.flags |= FL_MARK;
- p->as.free.next = final_list;
- final_list = p;
- final_num++;
- }
- else {
- add_freelist(objspace, &freelist, p);
- free_num++;
- }
- }
- else if (BUILTIN_TYPE(p) == T_ZOMBIE) {
- /* objects to be finalized */
- /* do nothing remain marked */
- }
- else {
- RBASIC(p)->flags &= ~FL_MARK;
- live++;
- }
- p++;
+static int
+ready_to_gc(rb_objspace_t *objspace)
+{
+ if (dont_gc || during_gc) {
+ if (!freelist) {
+ if (!heaps_increment(objspace)) {
+ set_heaps_increment(objspace);
+ heaps_increment(objspace);
+ }
}
- if (final_num + free_num == heaps[i].limit && freed > do_heap_free) {
- RVALUE *pp;
+ return FALSE;
+ }
+ return TRUE;
+}
- for (pp = final_list; pp != final; pp = pp->as.free.next) {
- RDATA(pp)->dmark = (void *)&heaps[i];
- pp->as.free.flags |= FL_SINGLETON; /* freeing page mark */
- }
- heaps[i].limit = final_num;
+static void
+before_gc_sweep(rb_objspace_t *objspace)
+{
+ freelist = 0;
+ objspace->heap.do_heap_free = (size_t)((heaps_used * HEAP_OBJ_LIMIT) * 0.65);
+ objspace->heap.free_min = (size_t)((heaps_used * HEAP_OBJ_LIMIT) * 0.2);
+ if (objspace->heap.free_min < initial_free_min) {
+ objspace->heap.do_heap_free = heaps_used * HEAP_OBJ_LIMIT;
+ objspace->heap.free_min = initial_free_min;
+ }
+ objspace->heap.sweep_slots = heaps;
+ objspace->heap.free_num = 0;
- freelist = free; /* cancel this page from freelist */
- }
- else {
- freed += free_num;
- }
+ /* sweep unlinked method entries */
+ if (GET_VM()->unlinked_method_entry_list) {
+ rb_sweep_method_entry(GET_VM());
}
+}
+
+static void
+after_gc_sweep(rb_objspace_t *objspace)
+{
GC_PROF_SET_MALLOC_INFO;
- if (malloc_increase > malloc_limit) {
- malloc_limit += (size_t)((malloc_increase - malloc_limit) * (double)live / (live + freed));
- if (malloc_limit < GC_MALLOC_LIMIT) malloc_limit = GC_MALLOC_LIMIT;
- }
- malloc_increase = 0;
- if (freed < free_min) {
- if (!heaps_inc && objspace->heap.longlife_used)
- objspace->flags.longlife_collection = Qtrue;
+
+ if (objspace->heap.free_num < objspace->heap.free_min) {
set_heaps_increment(objspace);
heaps_increment(objspace);
}
- during_gc = 0;
- /* clear finalization list */
- if (final_list) {
- GC_PROF_SET_HEAP_INFO;
- deferred_final_list = final_list;
- RUBY_VM_SET_FINALIZER_INTERRUPT(GET_THREAD());
+ if (malloc_increase > malloc_limit) {
+ malloc_limit += (size_t)((malloc_increase - malloc_limit) * (double)objspace->heap.live_num / (heaps_used * HEAP_OBJ_LIMIT));
+ if (malloc_limit < initial_malloc_limit) malloc_limit = initial_malloc_limit;
}
- else{
- free_unused_heaps(objspace);
- GC_PROF_SET_HEAP_INFO;
+ malloc_increase = 0;
+
+ free_unused_heaps(objspace);
+}
+
+static int
+lazy_sweep(rb_objspace_t *objspace)
+{
+ struct heaps_slot *next;
+
+ heaps_increment(objspace);
+ while (objspace->heap.sweep_slots) {
+ next = objspace->heap.sweep_slots->next;
+ slot_sweep(objspace, objspace->heap.sweep_slots);
+ objspace->heap.sweep_slots = next;
+ if (freelist) {
+ during_gc = 0;
+ return TRUE;
+ }
}
+ return FALSE;
}
static void
-remembered_set_recycle(rb_objspace_t *objspace)
+rest_sweep(rb_objspace_t *objspace)
+{
+ if (objspace->heap.sweep_slots) {
+ while (objspace->heap.sweep_slots) {
+ lazy_sweep(objspace);
+ }
+ after_gc_sweep(objspace);
+ }
+}
+
+static void gc_marks(rb_objspace_t *objspace);
+
+static int
+gc_lazy_sweep(rb_objspace_t *objspace)
{
- remembered_set_t *top = 0, *rem, *next;
+ int res;
+ INIT_GC_PROF_PARAMS;
+
+ if (objspace->flags.dont_lazy_sweep)
+ return garbage_collect(objspace);
- rem = objspace->remembered_set.ptr;
- while (rem) {
- next = rem->next;
- if (RBASIC(rem->obj)->flags & FL_MARK) {
- top = rem;
+
+ if (!ready_to_gc(objspace)) return TRUE;
+
+ during_gc++;
+ GC_PROF_TIMER_START;
+ GC_PROF_SWEEP_TIMER_START;
+
+ if (objspace->heap.sweep_slots) {
+ res = lazy_sweep(objspace);
+ if (res) {
+ GC_PROF_SWEEP_TIMER_STOP;
+ GC_PROF_SET_MALLOC_INFO;
+ GC_PROF_TIMER_STOP(Qfalse);
+ return res;
}
- else {
- if (top) {
- top->next = next;
- }
- else {
- objspace->remembered_set.ptr = next;
- }
- rem->obj = 0;
- rem->next = objspace->remembered_set.freed;
- objspace->remembered_set.freed = rem;
+ after_gc_sweep(objspace);
+ }
+ else {
+ if (heaps_increment(objspace)) {
+ during_gc = 0;
+ return TRUE;
+ }
+ }
+
+ gc_marks(objspace);
+
+ before_gc_sweep(objspace);
+ if (objspace->heap.free_min > (heaps_used * HEAP_OBJ_LIMIT - objspace->heap.live_num)) {
+ set_heaps_increment(objspace);
+ }
+
+ GC_PROF_SWEEP_TIMER_START;
+ if(!(res = lazy_sweep(objspace))) {
+ after_gc_sweep(objspace);
+ if(freelist) {
+ res = TRUE;
+ during_gc = 0;
}
- rem = next;
}
+ GC_PROF_SWEEP_TIMER_STOP;
+
+ GC_PROF_TIMER_STOP(Qtrue);
+ return res;
}
static void
-gc_sweep_for_longlife(rb_objspace_t *objspace)
+gc_sweep(rb_objspace_t *objspace)
{
- RVALUE *p, *pend;
- size_t i, freed = 0;
+ struct heaps_slot *next;
- objspace->heap.longlife_freelist = 0;
- for (i = 0; i < heaps_used; i++) {
+ before_gc_sweep(objspace);
- if (heaps[i].lifetime == lifetime_normal) continue;
- p = heaps[i].slot; pend = p + heaps[i].limit;
- while (p < pend) {
- if (!(p->as.basic.flags & FL_MARK)) {
- if (p->as.basic.flags) {
- obj_free(objspace, (VALUE)p);
- }
- add_freelist(objspace, &objspace->heap.longlife_freelist, p);
- freed++;
- }
- p++;
- }
+ while (objspace->heap.sweep_slots) {
+ next = objspace->heap.sweep_slots->next;
+ slot_sweep(objspace, objspace->heap.sweep_slots);
+ objspace->heap.sweep_slots = next;
}
- remembered_set_recycle(objspace);
- objspace->flags.longlife_collection = Qfalse;
- objspace->profile.longlife_objects = objspace->profile.longlife_objects - freed;
+ after_gc_sweep(objspace);
+
+ during_gc = 0;
}
void
rb_gc_force_recycle(VALUE p)
{
rb_objspace_t *objspace = &rb_objspace;
- if (!(RBASIC(p)->flags & FL_MARK || RBASIC(p)->flags & FL_REMEMBERED_SET)) {
- add_freelist(objspace, &freelist, (RVALUE *)p);
+ GC_PROF_DEC_LIVE_NUM;
+ if (RBASIC(p)->flags & FL_MARK) {
+ RANY(p)->as.free.flags = 0;
+ }
+ else {
+ add_freelist(objspace, (RVALUE *)p);
}
}
@@ -2030,10 +2285,13 @@ obj_free(rb_objspace_t *objspace, VALUE obj)
case T_MODULE:
case T_CLASS:
rb_clear_cache_by_class((VALUE)obj);
- st_free_table(RCLASS_M_TBL(obj));
+ rb_free_m_table(RCLASS_M_TBL(obj));
if (RCLASS_IV_TBL(obj)) {
st_free_table(RCLASS_IV_TBL(obj));
}
+ if (RCLASS_CONST_TBL(obj)) {
+ rb_free_const_table(RCLASS_CONST_TBL(obj));
+ }
if (RCLASS_IV_INDEX_TBL(obj)) {
st_free_table(RCLASS_IV_INDEX_TBL(obj));
}
@@ -2057,7 +2315,10 @@ obj_free(rb_objspace_t *objspace, VALUE obj)
break;
case T_DATA:
if (DATA_PTR(obj)) {
- if ((long)RANY(obj)->as.data.dfree == -1) {
+ if (RTYPEDDATA_P(obj)) {
+ RDATA(obj)->dfree = RANY(obj)->as.typeddata.type->function.dfree;
+ }
+ if (RANY(obj)->as.data.dfree == (RUBY_DATA_FUNC)-1) {
xfree(DATA_PTR(obj));
}
else if (RANY(obj)->as.data.dfree) {
@@ -2086,6 +2347,7 @@ obj_free(rb_objspace_t *objspace, VALUE obj)
break;
case T_ICLASS:
/* iClass shares table with the module */
+ xfree(RANY(obj)->as.klass.ptr);
break;
case T_FLOAT:
@@ -2126,129 +2388,66 @@ obj_free(rb_objspace_t *objspace, VALUE obj)
#define GC_NOTIFY 0
-void rb_vm_mark(void *ptr);
+#if STACK_GROW_DIRECTION < 0
+#define GET_STACK_BOUNDS(start, end, appendix) ((start) = STACK_END, (end) = STACK_START)
+#elif STACK_GROW_DIRECTION > 0
+#define GET_STACK_BOUNDS(start, end, appendix) ((start) = STACK_START, (end) = STACK_END+(appendix))
+#else
+#define GET_STACK_BOUNDS(start, end, appendix) \
+ ((STACK_END < STACK_START) ? \
+ ((start) = STACK_END, (end) = STACK_START) : ((start) = STACK_START, (end) = STACK_END+(appendix)))
+#endif
+
+#define numberof(array) (int)(sizeof(array) / sizeof((array)[0]))
static void
mark_current_machine_context(rb_objspace_t *objspace, rb_thread_t *th)
{
- rb_jmp_buf save_regs_gc_mark;
+ union {
+ rb_jmp_buf j;
+ VALUE v[sizeof(rb_jmp_buf) / sizeof(VALUE)];
+ } save_regs_gc_mark;
VALUE *stack_start, *stack_end;
- SET_STACK_END;
-#if STACK_GROW_DIRECTION < 0
- stack_start = th->machine_stack_end;
- stack_end = th->machine_stack_start;
-#elif STACK_GROW_DIRECTION > 0
- stack_start = th->machine_stack_start;
- stack_end = th->machine_stack_end + 1;
-#else
- if (th->machine_stack_end < th->machine_stack_start) {
- stack_start = th->machine_stack_end;
- stack_end = th->machine_stack_start;
- }
- else {
- stack_start = th->machine_stack_start;
- stack_end = th->machine_stack_end + 1;
- }
-#endif
-
FLUSH_REGISTER_WINDOWS;
/* This assumes that all registers are saved into the jmp_buf (and stack) */
- rb_setjmp(save_regs_gc_mark);
- mark_locations_array(objspace,
- (VALUE*)save_regs_gc_mark,
- sizeof(save_regs_gc_mark) / sizeof(VALUE));
+ rb_setjmp(save_regs_gc_mark.j);
+
+ SET_STACK_END;
+ GET_STACK_BOUNDS(stack_start, stack_end, 1);
+
+ mark_locations_array(objspace, save_regs_gc_mark.v, numberof(save_regs_gc_mark.v));
rb_gc_mark_locations(stack_start, stack_end);
#ifdef __ia64
rb_gc_mark_locations(th->machine_register_stack_start, th->machine_register_stack_end);
#endif
#if defined(__mc68000__)
- mark_locations_array((VALUE*)((char*)STACK_END + 2),
+ mark_locations_array(objspace, (VALUE*)((char*)STACK_END + 2),
(STACK_START - STACK_END));
#endif
}
-void rb_gc_mark_encodings(void);
-
static void
-rb_gc_mark_remembered_set(rb_objspace_t *objspace)
-{
- remembered_set_t *rem;
-
- rem = objspace->remembered_set.ptr;
- while (rem) {
- rb_gc_mark((VALUE)rem->obj);
- rem = rem->next;
- }
-}
-
-static void
-clear_mark_longlife_heaps(rb_objspace_t *objspace)
-{
- int i;
-
- for (i = 0; i < heaps_used; i++) {
- RVALUE *p, *pend;
-
- if (heaps[i].lifetime == lifetime_longlife) {
- p = heaps[i].slot; pend = p + heaps[i].limit;
- for (;p < pend; p++) {
- if (p->as.basic.flags & FL_MARK) {
- RBASIC(p)->flags &= ~FL_MARK;
- }
- }
- }
- }
-}
-
-static int
-garbage_collect(rb_objspace_t *objspace)
+gc_marks(rb_objspace_t *objspace)
{
struct gc_list *list;
rb_thread_t *th = GET_THREAD();
- INIT_GC_PROF_PARAMS;
-
- if (GC_NOTIFY) printf("start garbage_collect()\n");
-
- if (!heaps) {
- return Qfalse;
- }
+ GC_PROF_MARK_TIMER_START;
- if (dont_gc || during_gc) {
- if (!freelist) {
- if (!heaps_increment(objspace)) {
- set_heaps_increment(objspace);
- heaps_increment(objspace);
- }
- }
- return Qtrue;
- }
- during_gc++;
+ objspace->heap.live_num = 0;
objspace->count++;
- GC_PROF_TIMER_START;
- GC_PROF_MARK_TIMER_START;
+
SET_STACK_END;
init_mark_stack(objspace);
- if (objspace->flags.longlife_collection) {
- clear_mark_longlife_heaps(objspace);
- }
- else {
- rb_gc_mark_remembered_set(objspace);
- }
-
th->vm->self ? rb_gc_mark(th->vm->self) : rb_vm_mark(th->vm);
- if (finalizer_table) {
- mark_tbl(objspace, finalizer_table, 0);
- }
-
+ mark_tbl(objspace, finalizer_table, 0);
mark_current_machine_context(objspace, th);
- rb_gc_mark_threads();
rb_gc_mark_symbols();
rb_gc_mark_encodings();
@@ -2266,6 +2465,8 @@ garbage_collect(rb_objspace_t *objspace)
rb_gc_mark_parser();
+ rb_gc_mark_unlinked_live_method_entries(th->vm);
+
/* gc_mark objects whose marking are not completed*/
while (!MARK_STACK_EMPTY) {
if (mark_stack_overflow) {
@@ -2276,17 +2477,36 @@ garbage_collect(rb_objspace_t *objspace)
}
}
GC_PROF_MARK_TIMER_STOP;
+}
- GC_PROF_SWEEP_TIMER_START;
- if (objspace->flags.longlife_collection) {
- gc_sweep_for_longlife(objspace);
+static int
+garbage_collect(rb_objspace_t *objspace)
+{
+ INIT_GC_PROF_PARAMS;
+
+ if (GC_NOTIFY) printf("start garbage_collect()\n");
+
+ if (!heaps) {
+ return FALSE;
+ }
+ if (!ready_to_gc(objspace)) {
+ return TRUE;
}
+
+ GC_PROF_TIMER_START;
+
+ rest_sweep(objspace);
+
+ during_gc++;
+ gc_marks(objspace);
+
+ GC_PROF_SWEEP_TIMER_START;
gc_sweep(objspace);
GC_PROF_SWEEP_TIMER_STOP;
- GC_PROF_TIMER_STOP;
+ GC_PROF_TIMER_STOP(Qtrue);
if (GC_NOTIFY) printf("end garbage_collect()\n");
- return Qtrue;
+ return TRUE;
}
int
@@ -2299,18 +2519,10 @@ void
rb_gc_mark_machine_stack(rb_thread_t *th)
{
rb_objspace_t *objspace = &rb_objspace;
-#if STACK_GROW_DIRECTION < 0
- rb_gc_mark_locations(th->machine_stack_end, th->machine_stack_start);
-#elif STACK_GROW_DIRECTION > 0
- rb_gc_mark_locations(th->machine_stack_start, th->machine_stack_end);
-#else
- if (th->machine_stack_start < th->machine_stack_end) {
- rb_gc_mark_locations(th->machine_stack_start, th->machine_stack_end);
- }
- else {
- rb_gc_mark_locations(th->machine_stack_end, th->machine_stack_start);
- }
-#endif
+ VALUE *stack_start, *stack_end;
+
+ GET_STACK_BOUNDS(stack_start, stack_end, 0);
+ rb_gc_mark_locations(stack_start, stack_end);
#ifdef __ia64
rb_gc_mark_locations(th->machine_register_stack_start, th->machine_register_stack_end);
#endif
@@ -2319,9 +2531,9 @@ rb_gc_mark_machine_stack(rb_thread_t *th)
/*
* call-seq:
- * GC.start => nil
- * gc.garbage_collect => nil
- * ObjectSpace.garbage_collect => nil
+ * GC.start -> nil
+ * gc.garbage_collect -> nil
+ * ObjectSpace.garbage_collect -> nil
*
* Initiates garbage collection, unless manually disabled.
*
@@ -2330,10 +2542,6 @@ rb_gc_mark_machine_stack(rb_thread_t *th)
VALUE
rb_gc_start(void)
{
- rb_objspace_t *objspace = &rb_objspace;
- if (objspace->heap.longlife_used) {
- objspace->flags.longlife_collection = Qtrue;
- }
rb_gc();
return Qnil;
}
@@ -2384,53 +2592,162 @@ Init_heap(void)
}
static VALUE
-os_obj_of(rb_objspace_t *objspace, VALUE of)
+lazy_sweep_enable(void)
+{
+ rb_objspace_t *objspace = &rb_objspace;
+
+ objspace->flags.dont_lazy_sweep = FALSE;
+ return Qnil;
+}
+
+typedef int each_obj_callback(void *, void *, size_t, void *);
+
+struct each_obj_args {
+ each_obj_callback *callback;
+ void *data;
+};
+
+static VALUE
+objspace_each_objects(VALUE arg)
{
size_t i;
- size_t n = 0;
RVALUE *membase = 0;
- RVALUE *p, *pend;
+ RVALUE *pstart, *pend;
+ rb_objspace_t *objspace = &rb_objspace;
+ struct each_obj_args *args = (struct each_obj_args *)arg;
volatile VALUE v;
i = 0;
while (i < heaps_used) {
- while (0 < i && (uintptr_t)membase < (uintptr_t)heaps[i-1].membase)
- i--;
- while (i < heaps_used && (uintptr_t)heaps[i].membase <= (uintptr_t)membase )
- i++;
- if (heaps_used <= i)
- break;
- membase = heaps[i].membase;
-
- p = heaps[i].slot; pend = p + heaps[i].limit;
- for (;p < pend; p++) {
- if (p->as.basic.flags) {
- switch (BUILTIN_TYPE(p)) {
- case T_NONE:
- case T_ICLASS:
- case T_NODE:
- case T_ZOMBIE:
- continue;
- case T_CLASS:
- if (FL_TEST(p, FL_SINGLETON)) continue;
- default:
- if (!p->as.basic.klass) continue;
- v = (VALUE)p;
- if (!of || rb_obj_is_kind_of(v, of)) {
- rb_yield(v);
- n++;
- }
+ while (0 < i && (uintptr_t)membase < (uintptr_t)objspace->heap.sorted[i-1].slot->membase)
+ i--;
+ while (i < heaps_used && (uintptr_t)objspace->heap.sorted[i].slot->membase <= (uintptr_t)membase)
+ i++;
+ if (heaps_used <= i)
+ break;
+ membase = objspace->heap.sorted[i].slot->membase;
+
+ pstart = objspace->heap.sorted[i].slot->slot;
+ pend = pstart + objspace->heap.sorted[i].slot->limit;
+
+ for (; pstart != pend; pstart++) {
+ if (pstart->as.basic.flags) {
+ v = (VALUE)pstart; /* acquire to save this object */
+ break;
+ }
+ }
+ if (pstart != pend) {
+ if ((*args->callback)(pstart, pend, sizeof(RVALUE), args->data)) {
+ break;
+ }
+ }
+ }
+
+ return Qnil;
+}
+
+/*
+ * rb_objspace_each_objects() is special C API to walk through
+ * Ruby object space. This C API is too difficult to use it.
+ * To be frank, you should not use it. Or you need to read the
+ * source code of this function and understand what this function does.
+ *
+ * 'callback' will be called several times (the number of heap slot,
+ * at current implementation) with:
+ * vstart: a pointer to the first living object of the heap_slot.
+ * vend: a pointer to next to the valid heap_slot area.
+ * stride: a distance to next VALUE.
+ *
+ * If callback() returns non-zero, the iteration will be stopped.
+ *
+ * This is a sample callback code to iterate liveness objects:
+ *
+ * int
+ * sample_callback(void *vstart, void *vend, int stride, void *data) {
+ * VALUE v = (VALUE)vstart;
+ * for (; v != (VALUE)vend; v += stride) {
+ * if (RBASIC(v)->flags) { // liveness check
+ * // do something with live object 'v'
+ * }
+ * return 0; // continue to iteration
+ * }
+ *
+ * Note: 'vstart' is not a top of heap_slot. This point the first
+ * living object to grasp at least one object to avoid GC issue.
+ * This means that you can not walk through all Ruby object slot
+ * including freed object slot.
+ *
+ * Note: On this implementation, 'stride' is same as sizeof(RVALUE).
+ * However, there are possibilities to pass variable values with
+ * 'stride' with some reasons. You must use stride instead of
+ * use some constant value in the iteration.
+ */
+void
+rb_objspace_each_objects(each_obj_callback *callback, void *data)
+{
+ struct each_obj_args args;
+ rb_objspace_t *objspace = &rb_objspace;
+
+ rest_sweep(objspace);
+ objspace->flags.dont_lazy_sweep = TRUE;
+
+ args.callback = callback;
+ args.data = data;
+ rb_ensure(objspace_each_objects, (VALUE)&args, lazy_sweep_enable, Qnil);
+}
+
+struct os_each_struct {
+ size_t num;
+ VALUE of;
+};
+
+static int
+os_obj_of_i(void *vstart, void *vend, size_t stride, void *data)
+{
+ struct os_each_struct *oes = (struct os_each_struct *)data;
+ RVALUE *p = (RVALUE *)vstart, *pend = (RVALUE *)vend;
+ volatile VALUE v;
+
+ for (; p != pend; p++) {
+ if (p->as.basic.flags) {
+ switch (BUILTIN_TYPE(p)) {
+ case T_NONE:
+ case T_ICLASS:
+ case T_NODE:
+ case T_ZOMBIE:
+ continue;
+ case T_CLASS:
+ if (FL_TEST(p, FL_SINGLETON))
+ continue;
+ default:
+ if (!p->as.basic.klass) continue;
+ v = (VALUE)p;
+ if (!oes->of || rb_obj_is_kind_of(v, oes->of)) {
+ rb_yield(v);
+ oes->num++;
}
}
}
}
- return SIZET2NUM(n);
+ return 0;
+}
+
+static VALUE
+os_obj_of(VALUE of)
+{
+ struct os_each_struct oes;
+
+ oes.num = 0;
+ oes.of = of;
+ rb_objspace_each_objects(os_obj_of_i, &oes);
+ return SIZET2NUM(oes.num);
}
/*
* call-seq:
- * ObjectSpace.each_object([module]) {|obj| ... } => fixnum
+ * ObjectSpace.each_object([module]) {|obj| ... } -> fixnum
+ * ObjectSpace.each_object([module]) -> an_enumerator
*
* Calls the block once for each living, nonimmediate object in this
* Ruby process. If <i>module</i> is specified, calls the block
@@ -2442,6 +2759,8 @@ os_obj_of(rb_objspace_t *objspace, VALUE of)
* returns both the numbers we defined and several constants defined in
* the <code>Math</code> module.
*
+ * If no block is given, an enumerator is returned instead.
+ *
* a = 102.7
* b = 95 # Won't be returned
* c = 12345678987654321
@@ -2474,7 +2793,7 @@ os_each_obj(int argc, VALUE *argv, VALUE os)
rb_scan_args(argc, argv, "01", &of);
}
RETURN_ENUMERATOR(os, 1, &of);
- return os_obj_of(&rb_objspace, of);
+ return os_obj_of(of);
}
/*
@@ -2489,10 +2808,9 @@ static VALUE
undefine_final(VALUE os, VALUE obj)
{
rb_objspace_t *objspace = &rb_objspace;
- if (OBJ_FROZEN(obj)) rb_error_frozen("object");
- if (finalizer_table) {
- st_delete(finalizer_table, (st_data_t*)&obj, 0);
- }
+ st_data_t data = obj;
+ rb_check_frozen(obj);
+ st_delete(finalizer_table, &data, 0);
FL_UNSET(obj, FL_FINALIZE);
return obj;
}
@@ -2511,9 +2829,10 @@ define_final(int argc, VALUE *argv, VALUE os)
{
rb_objspace_t *objspace = &rb_objspace;
VALUE obj, block, table;
+ st_data_t data;
rb_scan_args(argc, argv, "11", &obj, &block);
- if (OBJ_FROZEN(obj)) rb_error_frozen("object");
+ rb_check_frozen(obj);
if (argc == 1) {
block = rb_block_proc();
}
@@ -2530,10 +2849,8 @@ define_final(int argc, VALUE *argv, VALUE os)
block = rb_ary_new3(2, INT2FIX(rb_safe_level()), block);
OBJ_FREEZE(block);
- if (!finalizer_table) {
- finalizer_table = st_init_numtable();
- }
- if (st_lookup(finalizer_table, obj, &table)) {
+ if (st_lookup(finalizer_table, obj, &data)) {
+ table = (VALUE)data;
rb_ary_push(table, block);
}
else {
@@ -2549,10 +2866,11 @@ rb_gc_copy_finalizer(VALUE dest, VALUE obj)
{
rb_objspace_t *objspace = &rb_objspace;
VALUE table;
+ st_data_t data;
- if (!finalizer_table) return;
if (!FL_TEST(obj, FL_FINALIZE)) return;
- if (st_lookup(finalizer_table, obj, &table)) {
+ if (st_lookup(finalizer_table, obj, &data)) {
+ table = (VALUE)data;
st_insert(finalizer_table, dest, table);
}
FL_SET(dest, FL_FINALIZE);
@@ -2567,32 +2885,56 @@ run_single_final(VALUE arg)
}
static void
-run_final(rb_objspace_t *objspace, VALUE obj)
+run_finalizer(rb_objspace_t *objspace, VALUE objid, VALUE table)
{
long i;
int status;
- VALUE args[3], table, objid;
+ VALUE args[3];
+
+ if (RARRAY_LEN(table) > 0) {
+ args[1] = rb_obj_freeze(rb_ary_new3(1, objid));
+ }
+ else {
+ args[1] = 0;
+ }
+
+ args[2] = (VALUE)rb_safe_level();
+ for (i=0; i<RARRAY_LEN(table); i++) {
+ VALUE final = RARRAY_PTR(table)[i];
+ args[0] = RARRAY_PTR(final)[1];
+ args[2] = FIX2INT(RARRAY_PTR(final)[0]);
+ status = 0;
+ rb_protect(run_single_final, (VALUE)args, &status);
+ if (status)
+ rb_set_errinfo(Qnil);
+ }
+}
+
+static void
+run_final(rb_objspace_t *objspace, VALUE obj)
+{
+ VALUE objid;
+ RUBY_DATA_FUNC free_func = 0;
+ st_data_t key, table;
+
+ objspace->heap.final_num--;
objid = rb_obj_id(obj); /* make obj into id */
RBASIC(obj)->klass = 0;
- if (RDATA(obj)->dfree) {
- (*RDATA(obj)->dfree)(DATA_PTR(obj));
+ if (RTYPEDDATA_P(obj)) {
+ free_func = RTYPEDDATA_TYPE(obj)->function.dfree;
+ }
+ else {
+ free_func = RDATA(obj)->dfree;
+ }
+ if (free_func) {
+ (*free_func)(DATA_PTR(obj));
}
- if (finalizer_table &&
- st_delete(finalizer_table, (st_data_t*)&obj, &table)) {
- args[1] = 0;
- args[2] = (VALUE)rb_safe_level();
- if (!args[1] && RARRAY_LEN(table) > 0) {
- args[1] = rb_obj_freeze(rb_ary_new3(1, objid));
- }
- for (i=0; i<RARRAY_LEN(table); i++) {
- VALUE final = RARRAY_PTR(table)[i];
- args[0] = RARRAY_PTR(final)[1];
- args[2] = FIX2INT(RARRAY_PTR(final)[0]);
- rb_protect(run_single_final, (VALUE)args, &status);
- }
+ key = (st_data_t)obj;
+ if (st_delete(finalizer_table, &key, &table)) {
+ run_finalizer(objspace, objid, (VALUE)table);
}
}
@@ -2607,71 +2949,98 @@ finalize_deferred(rb_objspace_t *objspace)
}
}
-static void
-gc_finalize_deferred(rb_objspace_t *objspace)
-{
- finalize_deferred(objspace);
- free_unused_heaps(objspace);
-}
-
void
rb_gc_finalize_deferred(void)
{
- gc_finalize_deferred(&rb_objspace);
+ finalize_deferred(&rb_objspace);
}
static int
chain_finalized_object(st_data_t key, st_data_t val, st_data_t arg)
{
RVALUE *p = (RVALUE *)key, **final_list = (RVALUE **)arg;
- if (p->as.basic.flags & FL_FINALIZE) {
+ if ((p->as.basic.flags & (FL_FINALIZE|FL_MARK)) == FL_FINALIZE) {
if (BUILTIN_TYPE(p) != T_ZOMBIE) {
p->as.free.flags = FL_MARK | T_ZOMBIE; /* remain marked */
RDATA(p)->dfree = 0;
}
p->as.free.next = *final_list;
*final_list = p;
- return ST_CONTINUE;
- }
- else {
- return ST_DELETE;
}
+ return ST_CONTINUE;
+}
+
+struct force_finalize_list {
+ VALUE obj;
+ VALUE table;
+ struct force_finalize_list *next;
+};
+
+static int
+force_chain_object(st_data_t key, st_data_t val, st_data_t arg)
+{
+ struct force_finalize_list **prev = (struct force_finalize_list **)arg;
+ struct force_finalize_list *curr = ALLOC(struct force_finalize_list);
+ curr->obj = key;
+ curr->table = val;
+ curr->next = *prev;
+ *prev = curr;
+ return ST_CONTINUE;
}
void
rb_gc_call_finalizer_at_exit(void)
{
- rb_objspace_t *objspace = &rb_objspace;
+ rb_objspace_call_finalizer(&rb_objspace);
+}
+
+static void
+rb_objspace_call_finalizer(rb_objspace_t *objspace)
+{
RVALUE *p, *pend;
RVALUE *final_list = 0;
size_t i;
/* run finalizers */
- if (finalizer_table) {
+ rest_sweep(objspace);
+
+ do {
+ /* XXX: this loop will make no sense */
+ /* because mark will not be removed */
finalize_deferred(objspace);
- while (finalizer_table->num_entries > 0) {
- st_foreach(finalizer_table, chain_finalized_object,
- (st_data_t)&final_list);
- if (!(p = final_list)) break;
- do {
- final_list = p->as.free.next;
- run_final(objspace, (VALUE)p);
- } while ((p = final_list) != 0);
+ mark_tbl(objspace, finalizer_table, 0);
+ st_foreach(finalizer_table, chain_finalized_object,
+ (st_data_t)&deferred_final_list);
+ } while (deferred_final_list);
+ /* force to run finalizer */
+ while (finalizer_table->num_entries) {
+ struct force_finalize_list *list = 0;
+ st_foreach(finalizer_table, force_chain_object, (st_data_t)&list);
+ while (list) {
+ struct force_finalize_list *curr = list;
+ run_finalizer(objspace, rb_obj_id(curr->obj), curr->table);
+ st_delete(finalizer_table, (st_data_t*)&curr->obj, 0);
+ list = curr->next;
+ xfree(curr);
}
- st_free_table(finalizer_table);
- finalizer_table = 0;
}
+
/* finalizers are part of garbage collection */
during_gc++;
+
/* run data object's finalizers */
for (i = 0; i < heaps_used; i++) {
- p = heaps[i].slot; pend = p + heaps[i].limit;
+ p = objspace->heap.sorted[i].start; pend = objspace->heap.sorted[i].end;
while (p < pend) {
if (BUILTIN_TYPE(p) == T_DATA &&
DATA_PTR(p) && RANY(p)->as.data.dfree &&
- RANY(p)->as.basic.klass != rb_cThread && RANY(p)->as.basic.klass != rb_cMutex) {
+ !rb_obj_is_thread((VALUE)p) && !rb_obj_is_mutex((VALUE)p) &&
+ !rb_obj_is_fiber((VALUE)p)) {
p->as.free.flags = 0;
- if ((long)RANY(p)->as.data.dfree == -1) {
+ if (RTYPEDDATA_P(p)) {
+ RDATA(p)->dfree = RANY(p)->as.typeddata.type->function.dfree;
+ }
+ if (RANY(p)->as.data.dfree == (RUBY_DATA_FUNC)-1) {
xfree(DATA_PTR(p));
}
else if (RANY(p)->as.data.dfree) {
@@ -2694,6 +3063,9 @@ rb_gc_call_finalizer_at_exit(void)
if (final_list) {
finalize_list(objspace, final_list);
}
+
+ st_free_table(finalizer_table);
+ finalizer_table = 0;
}
void
@@ -2701,7 +3073,8 @@ rb_gc(void)
{
rb_objspace_t *objspace = &rb_objspace;
garbage_collect(objspace);
- gc_finalize_deferred(objspace);
+ finalize_deferred(objspace);
+ free_unused_heaps(objspace);
}
/*
@@ -2761,8 +3134,8 @@ id2ref(VALUE obj, VALUE objid)
* Document-method: object_id
*
* call-seq:
- * obj.__id__ => fixnum
- * obj.object_id => fixnum
+ * obj.__id__ -> fixnum
+ * obj.object_id -> fixnum
*
* Returns an integer identifier for <i>obj</i>. The same number will
* be returned on all calls to <code>id</code> for a given object, and
@@ -2774,7 +3147,7 @@ id2ref(VALUE obj, VALUE objid)
/*
* call-seq:
- * obj.hash => fixnum
+ * obj.hash -> fixnum
*
* Generates a <code>Fixnum</code> hash value for this object. This
* function must have the property that <code>a.eql?(b)</code> implies
@@ -2814,7 +3187,7 @@ rb_obj_id(VALUE obj)
* 24 if 32-bit, double is 8-byte aligned
* 40 if 64-bit
*/
- if (TYPE(obj) == T_SYMBOL) {
+ if (SYMBOL_P(obj)) {
return (SYM2ID(obj) * sizeof(RVALUE) + (4 << 2)) | FIXNUM_FLAG;
}
if (SPECIAL_CONST_P(obj)) {
@@ -2874,7 +3247,7 @@ count_objects(int argc, VALUE *argv, VALUE os)
for (i = 0; i < heaps_used; i++) {
RVALUE *p, *pend;
- p = heaps[i].slot; pend = p + heaps[i].limit;
+ p = objspace->heap.sorted[i].start; pend = objspace->heap.sorted[i].end;
for (;p < pend; p++) {
if (p->as.basic.flags) {
counts[BUILTIN_TYPE(p)]++;
@@ -2883,7 +3256,7 @@ count_objects(int argc, VALUE *argv, VALUE os)
freed++;
}
}
- total += heaps[i].limit;
+ total += objspace->heap.sorted[i].slot->limit;
}
if (hash == Qnil) {
@@ -2898,7 +3271,7 @@ count_objects(int argc, VALUE *argv, VALUE os)
for (i = 0; i <= T_MASK; i++) {
VALUE type;
switch (i) {
-#define COUNT_TYPE(t) case t: type = ID2SYM(rb_intern(#t)); break;
+#define COUNT_TYPE(t) case (t): type = ID2SYM(rb_intern(#t)); break;
COUNT_TYPE(T_NONE);
COUNT_TYPE(T_OBJECT);
COUNT_TYPE(T_CLASS);
@@ -2938,9 +3311,9 @@ count_objects(int argc, VALUE *argv, VALUE os)
* call-seq:
* GC.count -> Integer
*
- * The number of times GC occured.
+ * The number of times GC occurred.
*
- * It returns the number of times GC occured since the process started.
+ * It returns the number of times GC occurred since the process started.
*
*/
@@ -2950,6 +3323,61 @@ gc_count(VALUE self)
return UINT2NUM((&rb_objspace)->count);
}
+/*
+ * call-seq:
+ * GC.stat -> Hash
+ *
+ * Returns a Hash containing information about the GC.
+ *
+ * The hash includes information about internal statistics about GC such as:
+ *
+ * {
+ * :count => 18,
+ * :heap_used => 77,
+ * :heap_length => 77,
+ * :heap_increment => 0,
+ * :heap_live_num => 23287,
+ * :heap_free_num => 8115,
+ * :heap_final_num => 0,
+ * }
+ *
+ * The contents of the hash are implementation defined and may be changed in
+ * the future.
+ *
+ * This method is only expected to work on C Ruby.
+ *
+ */
+
+static VALUE
+gc_stat(int argc, VALUE *argv, VALUE self)
+{
+ rb_objspace_t *objspace = &rb_objspace;
+ VALUE hash;
+
+ if (rb_scan_args(argc, argv, "01", &hash) == 1) {
+ if (TYPE(hash) != T_HASH)
+ rb_raise(rb_eTypeError, "non-hash given");
+ }
+
+ if (hash == Qnil) {
+ hash = rb_hash_new();
+ }
+
+ rest_sweep(objspace);
+
+ rb_hash_aset(hash, ID2SYM(rb_intern("count")), SIZET2NUM(objspace->count));
+
+ /* implementation dependent counters */
+ rb_hash_aset(hash, ID2SYM(rb_intern("heap_used")), SIZET2NUM(objspace->heap.used));
+ rb_hash_aset(hash, ID2SYM(rb_intern("heap_length")), SIZET2NUM(objspace->heap.length));
+ rb_hash_aset(hash, ID2SYM(rb_intern("heap_increment")), SIZET2NUM(objspace->heap.increment));
+ rb_hash_aset(hash, ID2SYM(rb_intern("heap_live_num")), SIZET2NUM(objspace->heap.live_num));
+ rb_hash_aset(hash, ID2SYM(rb_intern("heap_free_num")), SIZET2NUM(objspace->heap.free_num));
+ rb_hash_aset(hash, ID2SYM(rb_intern("heap_final_num")), SIZET2NUM(objspace->heap.final_num));
+ return hash;
+}
+
+
#if CALC_EXACT_MALLOC_SIZE
/*
* call-seq:
@@ -2998,19 +3426,18 @@ gc_profile_record_get(void)
prof = rb_hash_new();
rb_hash_aset(prof, ID2SYM(rb_intern("GC_TIME")), DBL2NUM(objspace->profile.record[i].gc_time));
rb_hash_aset(prof, ID2SYM(rb_intern("GC_INVOKE_TIME")), DBL2NUM(objspace->profile.record[i].gc_invoke_time));
- rb_hash_aset(prof, ID2SYM(rb_intern("HEAP_USE_SIZE")), rb_uint2inum(objspace->profile.record[i].heap_use_size));
- rb_hash_aset(prof, ID2SYM(rb_intern("HEAP_TOTAL_SIZE")), rb_uint2inum(objspace->profile.record[i].heap_total_size));
- rb_hash_aset(prof, ID2SYM(rb_intern("HEAP_TOTAL_OBJECTS")), rb_uint2inum(objspace->profile.record[i].heap_total_objects));
+ rb_hash_aset(prof, ID2SYM(rb_intern("HEAP_USE_SIZE")), SIZET2NUM(objspace->profile.record[i].heap_use_size));
+ rb_hash_aset(prof, ID2SYM(rb_intern("HEAP_TOTAL_SIZE")), SIZET2NUM(objspace->profile.record[i].heap_total_size));
+ rb_hash_aset(prof, ID2SYM(rb_intern("HEAP_TOTAL_OBJECTS")), SIZET2NUM(objspace->profile.record[i].heap_total_objects));
+ rb_hash_aset(prof, ID2SYM(rb_intern("GC_IS_MARKED")), objspace->profile.record[i].is_marked);
#if GC_PROFILE_MORE_DETAIL
- rb_hash_aset(prof, ID2SYM(rb_intern("LONGLIFE_COLLECTION")), objspace->profile.record[i].longlife_collection);
rb_hash_aset(prof, ID2SYM(rb_intern("GC_MARK_TIME")), DBL2NUM(objspace->profile.record[i].gc_mark_time));
rb_hash_aset(prof, ID2SYM(rb_intern("GC_SWEEP_TIME")), DBL2NUM(objspace->profile.record[i].gc_sweep_time));
- rb_hash_aset(prof, ID2SYM(rb_intern("ALLOCATE_INCREASE")), rb_uint2inum(objspace->profile.record[i].allocate_increase));
- rb_hash_aset(prof, ID2SYM(rb_intern("ALLOCATE_LIMIT")), rb_uint2inum(objspace->profile.record[i].allocate_limit));
- rb_hash_aset(prof, ID2SYM(rb_intern("HEAP_USE_SLOTS")), rb_uint2inum(objspace->profile.record[i].heap_use_slots));
- rb_hash_aset(prof, ID2SYM(rb_intern("HEAP_LONGLIFE_USE_SLOTS")), rb_uint2inum(objspace->profile.record[i].heap_longlife_use_slots));
- rb_hash_aset(prof, ID2SYM(rb_intern("HEAP_LIVE_OBJECTS")), rb_uint2inum(objspace->profile.record[i].heap_live_objects));
- rb_hash_aset(prof, ID2SYM(rb_intern("HEAP_FREE_OBJECTS")), rb_uint2inum(objspace->profile.record[i].heap_free_objects));
+ rb_hash_aset(prof, ID2SYM(rb_intern("ALLOCATE_INCREASE")), SIZET2NUM(objspace->profile.record[i].allocate_increase));
+ rb_hash_aset(prof, ID2SYM(rb_intern("ALLOCATE_LIMIT")), SIZET2NUM(objspace->profile.record[i].allocate_limit));
+ rb_hash_aset(prof, ID2SYM(rb_intern("HEAP_USE_SLOTS")), SIZET2NUM(objspace->profile.record[i].heap_use_slots));
+ rb_hash_aset(prof, ID2SYM(rb_intern("HEAP_LIVE_OBJECTS")), SIZET2NUM(objspace->profile.record[i].heap_live_objects));
+ rb_hash_aset(prof, ID2SYM(rb_intern("HEAP_FREE_OBJECTS")), SIZET2NUM(objspace->profile.record[i].heap_free_objects));
rb_hash_aset(prof, ID2SYM(rb_intern("HAVE_FINALIZE")), objspace->profile.record[i].have_finalize);
#endif
rb_ary_push(gc_profile, prof);
@@ -3021,14 +3448,13 @@ gc_profile_record_get(void)
/*
* call-seq:
- * GC::Profiler.result -> string
+ * GC::Profiler.result -> String
*
- * Report profile data to string.
+ * Returns a profile data report such as:
*
- * It returns a string as:
- * GC 1 invokes.
- * Index Invoke Time(sec) Use Size(byte) Total Size(byte) Total Object GC time(ms)
- * 1 0.012 159240 212940 10647 0.00000000000001530000
+ * GC 1 invokes.
+ * Index Invoke Time(sec) Use Size(byte) Total Size(byte) Total Object GC time(ms)
+ * 1 0.012 159240 212940 10647 0.00000000000001530000
*/
static VALUE
@@ -3037,38 +3463,42 @@ gc_profile_result(void)
rb_objspace_t *objspace = &rb_objspace;
VALUE record;
VALUE result;
- int i;
+ int i, index;
record = gc_profile_record_get();
if (objspace->profile.run && objspace->profile.count) {
result = rb_sprintf("GC %d invokes.\n", NUM2INT(gc_count(0)));
+ index = 1;
rb_str_cat2(result, "Index Invoke Time(sec) Use Size(byte) Total Size(byte) Total Object GC Time(ms)\n");
for (i = 0; i < (int)RARRAY_LEN(record); i++) {
VALUE r = RARRAY_PTR(record)[i];
- rb_str_catf(result, "%5d %19.3f %20d %20d %20d %30.20f\n",
- i+1, NUM2DBL(rb_hash_aref(r, ID2SYM(rb_intern("GC_INVOKE_TIME")))),
- NUM2INT(rb_hash_aref(r, ID2SYM(rb_intern("HEAP_USE_SIZE")))),
- NUM2INT(rb_hash_aref(r, ID2SYM(rb_intern("HEAP_TOTAL_SIZE")))),
- NUM2INT(rb_hash_aref(r, ID2SYM(rb_intern("HEAP_TOTAL_OBJECTS")))),
- NUM2DBL(rb_hash_aref(r, ID2SYM(rb_intern("GC_TIME"))))*1000
- );
+#if !GC_PROFILE_MORE_DETAIL
+ if (rb_hash_aref(r, ID2SYM(rb_intern("GC_IS_MARKED")))) {
+#endif
+ rb_str_catf(result, "%5d %19.3f %20"PRIuSIZE" %20"PRIuSIZE" %20"PRIuSIZE" %30.20f\n",
+ index++, NUM2DBL(rb_hash_aref(r, ID2SYM(rb_intern("GC_INVOKE_TIME")))),
+ (size_t)NUM2SIZET(rb_hash_aref(r, ID2SYM(rb_intern("HEAP_USE_SIZE")))),
+ (size_t)NUM2SIZET(rb_hash_aref(r, ID2SYM(rb_intern("HEAP_TOTAL_SIZE")))),
+ (size_t)NUM2SIZET(rb_hash_aref(r, ID2SYM(rb_intern("HEAP_TOTAL_OBJECTS")))),
+ NUM2DBL(rb_hash_aref(r, ID2SYM(rb_intern("GC_TIME"))))*1000);
+#if !GC_PROFILE_MORE_DETAIL
+ }
+#endif
}
#if GC_PROFILE_MORE_DETAIL
rb_str_cat2(result, "\n\n");
rb_str_cat2(result, "More detail.\n");
- rb_str_cat2(result, "Index Allocate Increase Allocate Limit Use Slot Longlife Slot Have Finalize Collection Mark Time(ms) Sweep Time(ms)\n");
+ rb_str_cat2(result, "Index Allocate Increase Allocate Limit Use Slot Have Finalize Mark Time(ms) Sweep Time(ms)\n");
+ index = 1;
for (i = 0; i < (int)RARRAY_LEN(record); i++) {
VALUE r = RARRAY_PTR(record)[i];
- rb_str_catf(result, "%5d %17d %17d %9d %14d %14s %11s %25.20f %25.20f\n",
- i+1, NUM2INT(rb_hash_aref(r, ID2SYM(rb_intern("ALLOCATE_INCREASE")))),
- NUM2INT(rb_hash_aref(r, ID2SYM(rb_intern("ALLOCATE_LIMIT")))),
- NUM2INT(rb_hash_aref(r, ID2SYM(rb_intern("HEAP_USE_SLOTS")))),
- NUM2INT(rb_hash_aref(r, ID2SYM(rb_intern("HEAP_LONGLIFE_USE_SLOTS")))),
+ rb_str_catf(result, "%5d %17"PRIuSIZE" %17"PRIuSIZE" %9"PRIuSIZE" %14s %25.20f %25.20f\n",
+ index++, (size_t)NUM2SIZET(rb_hash_aref(r, ID2SYM(rb_intern("ALLOCATE_INCREASE")))),
+ (size_t)NUM2SIZET(rb_hash_aref(r, ID2SYM(rb_intern("ALLOCATE_LIMIT")))),
+ (size_t)NUM2SIZET(rb_hash_aref(r, ID2SYM(rb_intern("HEAP_USE_SLOTS")))),
rb_hash_aref(r, ID2SYM(rb_intern("HAVE_FINALIZE")))? "true" : "false",
- rb_hash_aref(r, ID2SYM(rb_intern("LONGLIFE_COLLECTION")))? "longlife" : "normal",
NUM2DBL(rb_hash_aref(r, ID2SYM(rb_intern("GC_MARK_TIME"))))*1000,
- NUM2DBL(rb_hash_aref(r, ID2SYM(rb_intern("GC_SWEEP_TIME"))))*1000
- );
+ NUM2DBL(rb_hash_aref(r, ID2SYM(rb_intern("GC_SWEEP_TIME"))))*1000);
}
#endif
}
@@ -3082,8 +3512,9 @@ gc_profile_result(void)
/*
* call-seq:
* GC::Profiler.report
+ * GC::Profiler.report io
*
- * GC::Profiler.result display
+ * Writes the GC::Profiler#result to <tt>$stdout</tt> or the given IO object.
*
*/
@@ -3104,9 +3535,52 @@ gc_profile_report(int argc, VALUE *argv, VALUE self)
}
/*
+ * call-seq:
+ * GC::Profiler.total_time -> float
+ *
+ * The total time used for garbage collection in milliseconds
+ */
+
+static VALUE
+gc_profile_total_time(VALUE self)
+{
+ double time = 0;
+ rb_objspace_t *objspace = &rb_objspace;
+ size_t i;
+
+ if (objspace->profile.run && objspace->profile.count) {
+ for (i = 0; i < objspace->profile.count; i++) {
+ time += objspace->profile.record[i].gc_time;
+ }
+ }
+ return DBL2NUM(time);
+}
+
+/* Document-class: GC::Profiler
+ *
+ * The GC profiler provides access to information on GC runs including time,
+ * length and object space size.
+ *
+ * Example:
+ *
+ * GC::Profiler.enable
+ *
+ * require 'rdoc/rdoc'
+ *
+ * puts GC::Profiler.result
+ *
+ * GC::Profiler.disable
+ *
+ * See also GC.count, GC.malloc_allocated_size and GC.malloc_allocations
+ */
+
+/*
* The <code>GC</code> module provides an interface to Ruby's mark and
* sweep garbage collection mechanism. Some of the underlying methods
- * are also available via the <code>ObjectSpace</code> module.
+ * are also available via the ObjectSpace module.
+ *
+ * You may obtain information about the operation of the GC through
+ * GC::Profiler.
*/
void
@@ -3122,6 +3596,7 @@ Init_GC(void)
rb_define_singleton_method(rb_mGC, "stress", gc_stress_get, 0);
rb_define_singleton_method(rb_mGC, "stress=", gc_stress_set, 1);
rb_define_singleton_method(rb_mGC, "count", gc_count, 0);
+ rb_define_singleton_method(rb_mGC, "stat", gc_stat, -1);
rb_define_method(rb_mGC, "garbage_collect", rb_gc_start, 0);
rb_mProfiler = rb_define_module_under(rb_mGC, "Profiler");
@@ -3131,6 +3606,7 @@ Init_GC(void)
rb_define_singleton_method(rb_mProfiler, "clear", gc_profile_clear, 0);
rb_define_singleton_method(rb_mProfiler, "result", gc_profile_result, 0);
rb_define_singleton_method(rb_mProfiler, "report", gc_profile_report, -1);
+ rb_define_singleton_method(rb_mProfiler, "total_time", gc_profile_total_time, 0);
rb_mObSpace = rb_define_module("ObjectSpace");
rb_define_module_function(rb_mObSpace, "each_object", os_each_obj, -1);
@@ -3146,7 +3622,7 @@ Init_GC(void)
OBJ_TAINT(nomem_error);
OBJ_FREEZE(nomem_error);
- rb_define_method(rb_mKernel, "__id__", rb_obj_id, 0);
+ rb_define_method(rb_cBasicObject, "__id__", rb_obj_id, 0);
rb_define_method(rb_mKernel, "object_id", rb_obj_id, 0);
rb_define_module_function(rb_mObSpace, "count_objects", count_objects, -1);
diff --git a/gc.h b/gc.h
index 29fd6b407c..df2cf7dd79 100644
--- a/gc.h
+++ b/gc.h
@@ -2,8 +2,10 @@
#ifndef RUBY_GC_H
#define RUBY_GC_H 1
-#if defined(__i386) && defined(__GNUC__)
-#define SET_MACHINE_STACK_END(p) __asm__("mov %%esp, %0" : "=r" (*p))
+#if defined(__x86_64__) && defined(__GNUC__)
+#define SET_MACHINE_STACK_END(p) __asm__("movq\t%%rsp, %0" : "=r" (*(p)))
+#elif defined(__i386) && defined(__GNUC__)
+#define SET_MACHINE_STACK_END(p) __asm__("movl\t%%esp, %0" : "=r" (*(p)))
#else
NOINLINE(void rb_gc_set_stack_end(VALUE **stack_end_p));
#define SET_MACHINE_STACK_END(p) rb_gc_set_stack_end(p)
@@ -19,14 +21,14 @@ NOINLINE(void rb_gc_set_stack_end(VALUE **stack_end_p));
#if RUBY_MARK_FREE_DEBUG
extern int ruby_gc_debug_indent;
-static void
+static inline void
rb_gc_debug_indent(void)
{
printf("%*s", ruby_gc_debug_indent, "");
}
-static void
-rb_gc_debug_body(char *mode, char *msg, int st, void *ptr)
+static inline void
+rb_gc_debug_body(const char *mode, const char *msg, int st, void *ptr)
{
if (st == 0) {
ruby_gc_debug_indent--;
@@ -41,10 +43,10 @@ rb_gc_debug_body(char *mode, char *msg, int st, void *ptr)
fflush(stdout);
}
-#define RUBY_MARK_ENTER(msg) rb_gc_debug_body("mark", msg, 1, ptr)
-#define RUBY_MARK_LEAVE(msg) rb_gc_debug_body("mark", msg, 0, ptr)
-#define RUBY_FREE_ENTER(msg) rb_gc_debug_body("free", msg, 1, ptr)
-#define RUBY_FREE_LEAVE(msg) rb_gc_debug_body("free", msg, 0, ptr)
+#define RUBY_MARK_ENTER(msg) rb_gc_debug_body("mark", (msg), 1, ptr)
+#define RUBY_MARK_LEAVE(msg) rb_gc_debug_body("mark", (msg), 0, ptr)
+#define RUBY_FREE_ENTER(msg) rb_gc_debug_body("free", (msg), 1, ptr)
+#define RUBY_FREE_LEAVE(msg) rb_gc_debug_body("free", (msg), 0, ptr)
#define RUBY_GC_INFO rb_gc_debug_indent(); printf
#else
@@ -56,20 +58,41 @@ rb_gc_debug_body(char *mode, char *msg, int st, void *ptr)
#endif
#define RUBY_MARK_UNLESS_NULL(ptr) if(RTEST(ptr)){rb_gc_mark(ptr);}
-#define RUBY_FREE_UNLESS_NULL(ptr) if(ptr){ruby_xfree(ptr);}
+#define RUBY_FREE_UNLESS_NULL(ptr) if(ptr){ruby_xfree(ptr);(ptr)=NULL;}
#if STACK_GROW_DIRECTION > 0
-# define STACK_UPPER(x, a, b) a
+# define STACK_UPPER(x, a, b) (a)
#elif STACK_GROW_DIRECTION < 0
-# define STACK_UPPER(x, a, b) b
+# define STACK_UPPER(x, a, b) (b)
#else
RUBY_EXTERN int ruby_stack_grow_direction;
-int ruby_get_stack_grow_direction(VALUE *addr);
+int ruby_get_stack_grow_direction(volatile VALUE *addr);
# define stack_growup_p(x) ( \
(ruby_stack_grow_direction ? \
ruby_stack_grow_direction : \
ruby_get_stack_grow_direction(x)) > 0)
-# define STACK_UPPER(x, a, b) (stack_growup_p(x) ? a : b)
+# define STACK_UPPER(x, a, b) (stack_growup_p(x) ? (a) : (b))
+#endif
+
+#if STACK_GROW_DIRECTION
+#define STACK_GROW_DIR_DETECTION
+#define STACK_DIR_UPPER(a,b) STACK_UPPER(0, (a), (b))
+#else
+#define STACK_GROW_DIR_DETECTION VALUE stack_grow_dir_detection
+#define STACK_DIR_UPPER(a,b) STACK_UPPER(&stack_grow_dir_detection, (a), (b))
+#endif
+
+#if defined __GNUC__ && __GNUC__ >= 4
+#pragma GCC visibility push(default)
+#endif
+
+size_t rb_objspace_data_type_memsize(VALUE obj);
+void rb_objspace_each_objects(
+ int (*callback)(void *start, void *end, size_t stride, void *data),
+ void *data);
+
+#if defined __GNUC__ && __GNUC__ >= 4
+#pragma GCC visibility pop
#endif
#endif /* RUBY_GC_H */
diff --git a/gem_prelude.rb b/gem_prelude.rb
index 4eb0e4e304..3d4516f341 100644
--- a/gem_prelude.rb
+++ b/gem_prelude.rb
@@ -1,354 +1 @@
-# depends on: array.rb dir.rb env.rb file.rb hash.rb module.rb regexp.rb
-# vim: filetype=ruby
-# THIS FILE WAS AUTOGENERATED, DO NOT EDIT
-
-# NOTICE: Ruby is during initialization here.
-# * Encoding.default_external does not reflects -E.
-# * Should not expect Encoding.default_internal.
-# * Locale encoding is available.
-if defined?(Gem) then
-
- module Kernel
-
- def gem(gem_name, *version_requirements)
- Gem.push_gem_version_on_load_path(gem_name, *version_requirements)
- end
-
- end
-
- module Gem
-
- class LoadError < ::LoadError
- end
-
- ConfigMap = {
- :sitedir => RbConfig::CONFIG["sitedir"],
- :ruby_version => RbConfig::CONFIG["ruby_version"],
- :libdir => RbConfig::CONFIG["libdir"],
- :sitelibdir => RbConfig::CONFIG["sitelibdir"],
- :arch => RbConfig::CONFIG["arch"],
- :bindir => RbConfig::CONFIG["bindir"],
- :EXEEXT => RbConfig::CONFIG["EXEEXT"],
- :RUBY_SO_NAME => RbConfig::CONFIG["RUBY_SO_NAME"],
- :ruby_install_name => RbConfig::CONFIG["ruby_install_name"]
- }
-
- def self.dir
- @gem_home ||= nil
- set_home(ENV['GEM_HOME'] || default_dir) unless @gem_home
- @gem_home
- end
-
- def self.path
- @gem_path ||= nil
- unless @gem_path
- paths = [ENV['GEM_PATH']]
- paths << APPLE_GEM_HOME if defined? APPLE_GEM_HOME
- set_paths(paths.compact.join(File::PATH_SEPARATOR))
- end
- @gem_path
- end
-
- def self.post_install(&hook)
- @post_install_hooks << hook
- end
-
- def self.post_uninstall(&hook)
- @post_uninstall_hooks << hook
- end
-
- def self.pre_install(&hook)
- @pre_install_hooks << hook
- end
-
- def self.pre_uninstall(&hook)
- @pre_uninstall_hooks << hook
- end
-
- def self.set_home(home)
- @gem_home = home
- ensure_gem_subdirectories(@gem_home)
- end
-
- def self.set_paths(gpaths)
- if gpaths
- @gem_path = gpaths.split(File::PATH_SEPARATOR)
- @gem_path << Gem.dir
- else
- @gem_path = [Gem.dir]
- end
- @gem_path.uniq!
- @gem_path.each do |gp| ensure_gem_subdirectories(gp) end
- end
-
- def self.ensure_gem_subdirectories(path)
- end
-
-
- @post_install_hooks ||= []
- @post_uninstall_hooks ||= []
- @pre_uninstall_hooks ||= []
- @pre_install_hooks ||= []
-
- ##
- # An Array of the default sources that come with RubyGems
-
- def self.default_sources
- %w[http://gems.rubyforge.org/]
- end
-
- ##
- # Default home directory path to be used if an alternate value is not
- # specified in the environment
-
- def self.default_dir
- if defined? RUBY_FRAMEWORK_VERSION then
- File.join File.dirname(ConfigMap[:sitedir]), 'Gems',
- ConfigMap[:ruby_version]
- elsif RUBY_VERSION > '1.9' then
- File.join(ConfigMap[:libdir], ConfigMap[:ruby_install_name], 'gems',
- ConfigMap[:ruby_version])
- else
- File.join(ConfigMap[:libdir], ruby_engine, 'gems',
- ConfigMap[:ruby_version])
- end
- end
-
- ##
- # Path for gems in the user's home directory
-
- def self.user_dir
- File.join(Gem.user_home, '.gem', ruby_engine,
- ConfigMap[:ruby_version])
- end
-
- ##
- # Default gem load path
-
- def self.default_path
- [user_dir, default_dir]
- end
-
- ##
- # Deduce Ruby's --program-prefix and --program-suffix from its install name
-
- def self.default_exec_format
- baseruby = ConfigMap[:BASERUBY] || 'ruby'
- ConfigMap[:RUBY_INSTALL_NAME].sub(baseruby, '%s') rescue '%s'
- end
-
- ##
- # The default directory for binaries
-
- def self.default_bindir
- if defined? RUBY_FRAMEWORK_VERSION then # mac framework support
- '/usr/bin'
- else # generic install
- ConfigMap[:bindir]
- end
- end
-
- ##
- # The default system-wide source info cache directory
-
- def self.default_system_source_cache_dir
- File.join Gem.dir, 'source_cache'
- end
-
- ##
- # The default user-specific source info cache directory
-
- def self.default_user_source_cache_dir
- File.join Gem.user_home, '.gem', 'source_cache'
- end
-
- ##
- # A wrapper around RUBY_ENGINE const that may not be defined
-
- def self.ruby_engine
- if defined? RUBY_ENGINE then
- RUBY_ENGINE
- else
- 'ruby'
- end
- end
-
-
-
- # Methods before this line will be removed when QuickLoader is replaced
- # with the real RubyGems
-
- GEM_PRELUDE_METHODS = Gem.methods(false)
-
- begin
- verbose, debug = $VERBOSE, $DEBUG
- $DEBUG = $VERBOSE = nil
-
- begin
- require 'rubygems/defaults/operating_system'
- rescue ::LoadError
- end
-
- if defined?(RUBY_ENGINE) then
- begin
- require "rubygems/defaults/#{RUBY_ENGINE}"
- rescue ::LoadError
- end
- end
- ensure
- $VERBOSE, $DEBUG = verbose, debug
- end
-
- module QuickLoader
-
- @loaded_full_rubygems_library = false
-
- def self.load_full_rubygems_library
- return if @loaded_full_rubygems_library
-
- @loaded_full_rubygems_library = true
-
- class << Gem
- Gem::GEM_PRELUDE_METHODS.each do |method_name|
- undef_method method_name
- end
- end
-
- Kernel.module_eval do
- undef_method :gem if method_defined? :gem
- end
-
- $".delete File.join(Gem::ConfigMap[:libdir],
- Gem::ConfigMap[:ruby_install_name],
- Gem::ConfigMap[:ruby_version], 'rubygems.rb')
-
- require 'rubygems'
- end
-
- GemPaths = {}
- GemVersions = {}
-
- def push_gem_version_on_load_path(gem_name, *version_requirements)
- if version_requirements.empty?
- unless GemPaths.has_key?(gem_name)
- raise Gem::LoadError.new("Could not find RubyGem #{gem_name} (>= 0)\n")
- end
-
- # highest version gems already active
- return false
- else
- if version_requirements.length > 1
- QuickLoader.load_full_rubygems_library
- return gem(gem_name, *version_requirements)
- end
-
- requirement, version = version_requirements[0].split
- requirement.strip!
-
- if loaded_version = GemVersions[gem_name]
- case requirement
- when ">", ">="
- if (loaded_version <=> Gem.calculate_integers_for_gem_version(version)) >= 0
- return false
- end
- when "~>"
- required_version = Gem.calculate_integers_for_gem_version(version)
- if (loaded_version[0] == required_version[0])
- return false
- end
- end
- end
-
- QuickLoader.load_full_rubygems_library
- gem(gem_name, *version_requirements)
- end
- end
-
- def calculate_integers_for_gem_version(gem_version)
- numbers = gem_version.split(".").collect {|n| n.to_i}
- numbers.pop while numbers.last == 0
- numbers << 0 if numbers.empty?
- numbers
- end
-
- def push_all_highest_version_gems_on_load_path
- Gem.path.each do |path|
- gems_directory = File.join(path, "gems")
- if File.exist?(gems_directory)
- Dir.entries(gems_directory).each do |gem_directory_name|
- next if gem_directory_name == "." || gem_directory_name == ".."
- dash = gem_directory_name.rindex("-")
- next if dash.nil?
- gem_name = gem_directory_name[0...dash]
- current_version = GemVersions[gem_name]
- new_version = calculate_integers_for_gem_version(gem_directory_name[dash+1..-1])
- if current_version
- if (current_version <=> new_version) == -1
- GemVersions[gem_name] = new_version
- GemPaths[gem_name] = File.join(gems_directory, gem_directory_name)
- end
- else
- GemVersions[gem_name] = new_version
- GemPaths[gem_name] = File.join(gems_directory, gem_directory_name)
- end
- end
- end
- end
-
- require_paths = []
-
- GemPaths.each_value do |path|
- if File.exist?(file = File.join(path, ".require_paths")) then
- paths = File.read(file).split.map do |require_path|
- File.join path, require_path
- end
-
- require_paths.concat paths
- else
- require_paths << file if File.exist?(file = File.join(path, "bin"))
- require_paths << file if File.exist?(file = File.join(path, "lib"))
- end
- end
-
- # "tag" the first require_path inserted into the $LOAD_PATH to enable
- # indexing correctly with rubygems proper when it inserts an explicitly
- # gem version
- unless require_paths.empty?
- require_paths.first.instance_variable_set(:@gem_prelude_index, true)
- end
- # gem directories must come after -I and ENV['RUBYLIB']
- $:[$:.index(ConfigMap[:sitelibdir]),0] = require_paths
- end
-
- def const_missing(constant)
- QuickLoader.load_full_rubygems_library
- if Gem.const_defined?(constant)
- Gem.const_get(constant)
- else
- super
- end
- end
-
- def method_missing(method, *args, &block)
- QuickLoader.load_full_rubygems_library
- super unless Gem.respond_to?(method)
- Gem.send(method, *args, &block)
- end
- end
-
- extend QuickLoader
-
- end
-
- begin
- Gem.push_all_highest_version_gems_on_load_path
- $" << File.join(Gem::ConfigMap[:libdir], Gem::ConfigMap[:ruby_install_name],
- Gem::ConfigMap[:ruby_version], "rubygems.rb")
- rescue Exception => e
- puts "Error loading gem paths on load path in gem_prelude"
- puts e
- puts e.backtrace.join("\n")
- end
-
-end
-
+require 'rubygems.rb' if defined?(Gem)
diff --git a/golf_prelude.rb b/golf_prelude.rb
index 4363b496f0..b090503213 100644
--- a/golf_prelude.rb
+++ b/golf_prelude.rb
@@ -112,3 +112,11 @@ class Enumerator
alias old_inspect inspect
alias inspect old_to_s
end
+
+class Symbol
+ def call(*args, &block)
+ proc do |recv|
+ recv.__send__(self, *args, &block)
+ end
+ end
+end
diff --git a/hash.c b/hash.c
index 79e253e266..fbd82374eb 100644
--- a/hash.c
+++ b/hash.c
@@ -14,6 +14,8 @@
#include "ruby/ruby.h"
#include "ruby/st.h"
#include "ruby/util.h"
+#include "ruby/encoding.h"
+#include <errno.h>
#ifdef __APPLE__
#include <crt_externs.h>
@@ -72,11 +74,11 @@ rb_hash(VALUE obj)
}
}
-static int
+static st_index_t
rb_any_hash(VALUE a)
{
VALUE hval;
- VALUE hnum;
+ st_index_t hnum;
switch (TYPE(a)) {
case T_FIXNUM:
@@ -96,7 +98,7 @@ rb_any_hash(VALUE a)
hnum = FIX2LONG(hval);
}
hnum <<= 1;
- return (int)RSHIFT(hnum, 1);
+ return (st_index_t)RSHIFT(hnum, 1);
}
static const struct st_hash_type objhash = {
@@ -193,7 +195,7 @@ static VALUE
hash_foreach_call(struct hash_foreach_arg *arg)
{
if (st_foreach(RHASH(arg->hash)->ntbl, hash_foreach_iter, (st_data_t)arg)) {
- rb_raise(rb_eRuntimeError, "hash modified during iteration");
+ rb_raise(rb_eRuntimeError, "hash modified during iteration");
}
return Qnil;
}
@@ -218,7 +220,7 @@ hash_alloc(VALUE klass)
NEWOBJ(hash, struct RHash);
OBJSETUP(hash, klass, T_HASH);
- hash->ifnone = Qnil;
+ RHASH_IFNONE(hash) = Qnil;
return (VALUE)hash;
}
@@ -240,14 +242,14 @@ rb_hash_dup(VALUE hash)
if (FL_TEST(hash, HASH_PROC_DEFAULT)) {
FL_SET(ret, HASH_PROC_DEFAULT);
}
- ret->ifnone = RHASH(hash)->ifnone;
+ RHASH_IFNONE(ret) = RHASH_IFNONE(hash);
return (VALUE)ret;
}
static void
rb_hash_modify_check(VALUE hash)
{
- if (OBJ_FROZEN(hash)) rb_error_frozen("hash");
+ rb_check_frozen(hash);
if (!OBJ_UNTRUSTED(hash) && rb_safe_level() >= 4)
rb_raise(rb_eSecurityError, "Insecure: can't modify hash");
}
@@ -268,11 +270,30 @@ rb_hash_modify(VALUE hash)
rb_hash_tbl(hash);
}
+static void
+hash_update(VALUE hash, VALUE key)
+{
+ if (RHASH(hash)->iter_lev > 0 && !st_lookup(RHASH(hash)->ntbl, key, 0)) {
+ rb_raise(rb_eRuntimeError, "can't add a new key into hash during iteration");
+ }
+}
+
+static void
+default_proc_arity_check(VALUE proc)
+{
+ int n = rb_proc_arity(proc);
+
+ if (rb_proc_lambda_p(proc) && n != 2 && (n >= 0 || n < -3)) {
+ if (n < 0) n = -n-1;
+ rb_raise(rb_eTypeError, "default_proc takes two arguments (2 for %d)", n);
+ }
+}
+
/*
* call-seq:
- * Hash.new => hash
- * Hash.new(obj) => aHash
- * Hash.new {|hash, key| block } => aHash
+ * Hash.new -> new_hash
+ * Hash.new(obj) -> new_hash
+ * Hash.new {|hash, key| block } -> new_hash
*
* Returns a new, empty hash. If this hash is subsequently accessed by
* a key that doesn't correspond to a hash entry, the value returned
@@ -313,12 +334,14 @@ rb_hash_initialize(int argc, VALUE *argv, VALUE hash)
if (argc > 0) {
rb_raise(rb_eArgError, "wrong number of arguments");
}
- RHASH(hash)->ifnone = rb_block_proc();
+ ifnone = rb_block_proc();
+ default_proc_arity_check(ifnone);
+ RHASH_IFNONE(hash) = ifnone;
FL_SET(hash, HASH_PROC_DEFAULT);
}
else {
rb_scan_args(argc, argv, "01", &ifnone);
- RHASH(hash)->ifnone = ifnone;
+ RHASH_IFNONE(hash) = ifnone;
}
return hash;
@@ -326,15 +349,19 @@ rb_hash_initialize(int argc, VALUE *argv, VALUE hash)
/*
* call-seq:
- * Hash[ [key =>|, value]* ] => hash
+ * Hash[ key, value, ... ] -> new_hash
+ * Hash[ [ [key, value], ... ] ] -> new_hash
+ * Hash[ object ] -> new_hash
*
* Creates a new hash populated with the given objects. Equivalent to
- * the literal <code>{ <i>key</i>, <i>value</i>, ... }</code>. Keys and
- * values occur in pairs, so there must be an even number of arguments.
- *
- * Hash["a", 100, "b", 200] #=> {"a"=>100, "b"=>200}
- * Hash["a" => 100, "b" => 200] #=> {"a"=>100, "b"=>200}
- * { "a" => 100, "b" => 200 } #=> {"a"=>100, "b"=>200}
+ * the literal <code>{ <i>key</i> => <i>value</i>, ... }</code>. In the first
+ * form, keys and values occur in pairs, so there must be an even number of arguments.
+ * The second and third form take a single argument which is either
+ * an array of key-value pairs or an object convertible to a hash.
+ *
+ * Hash["a", 100, "b", 200] #=> {"a"=>100, "b"=>200}
+ * Hash[ [ ["a", 100], ["b", 200] ] ] #=> {"a"=>100, "b"=>200}
+ * Hash["a" => 100, "b" => 200] #=> {"a"=>100, "b"=>200}
*/
static VALUE
@@ -392,6 +419,12 @@ to_hash(VALUE hash)
return rb_convert_type(hash, T_HASH, "Hash", "to_hash");
}
+VALUE
+rb_check_hash_type(VALUE hash)
+{
+ return rb_check_convert_type(hash, T_HASH, "Hash", "to_hash");
+}
+
/*
* call-seq:
* Hash.try_convert(obj) -> hash or nil
@@ -406,7 +439,7 @@ to_hash(VALUE hash)
static VALUE
rb_hash_s_try_convert(VALUE dummy, VALUE hash)
{
- return rb_check_convert_type(hash, T_HASH, "Hash", "to_hash");
+ return rb_check_hash_type(hash);
}
static int
@@ -459,10 +492,10 @@ rb_hash_rehash(VALUE hash)
/*
* call-seq:
- * hsh[key] => value
+ * hsh[key] -> value
*
* Element Reference---Retrieves the <i>value</i> object corresponding
- * to the <i>key</i> object. If not found, returns the a default value (see
+ * to the <i>key</i> object. If not found, returns the default value (see
* <code>Hash::new</code> for details).
*
* h = { "a" => 100, "b" => 200 }
@@ -474,23 +507,29 @@ rb_hash_rehash(VALUE hash)
VALUE
rb_hash_aref(VALUE hash, VALUE key)
{
- VALUE val;
+ st_data_t val;
if (!RHASH(hash)->ntbl || !st_lookup(RHASH(hash)->ntbl, key, &val)) {
- return rb_funcall(hash, id_default, 1, key);
+ if (!FL_TEST(hash, HASH_PROC_DEFAULT) &&
+ rb_method_basic_definition_p(CLASS_OF(hash), id_default)) {
+ return RHASH_IFNONE(hash);
+ }
+ else {
+ return rb_funcall(hash, id_default, 1, key);
+ }
}
- return val;
+ return (VALUE)val;
}
VALUE
rb_hash_lookup2(VALUE hash, VALUE key, VALUE def)
{
- VALUE val;
+ st_data_t val;
if (!RHASH(hash)->ntbl || !st_lookup(RHASH(hash)->ntbl, key, &val)) {
return def; /* without Hash#default */
}
- return val;
+ return (VALUE)val;
}
VALUE
@@ -501,8 +540,8 @@ rb_hash_lookup(VALUE hash, VALUE key)
/*
* call-seq:
- * hsh.fetch(key [, default] ) => obj
- * hsh.fetch(key) {| key | block } => obj
+ * hsh.fetch(key [, default] ) -> obj
+ * hsh.fetch(key) {| key | block } -> obj
*
* Returns a value from the hash for the given key. If the key can't be
* found, there are several options: With no other arguments, it will
@@ -532,7 +571,7 @@ static VALUE
rb_hash_fetch_m(int argc, VALUE *argv, VALUE hash)
{
VALUE key, if_none;
- VALUE val;
+ st_data_t val;
long block_given;
rb_scan_args(argc, argv, "11", &key, &if_none);
@@ -544,11 +583,16 @@ rb_hash_fetch_m(int argc, VALUE *argv, VALUE hash)
if (!RHASH(hash)->ntbl || !st_lookup(RHASH(hash)->ntbl, key, &val)) {
if (block_given) return rb_yield(key);
if (argc == 1) {
- rb_raise(rb_eKeyError, "key not found");
+ volatile VALUE desc = rb_protect(rb_inspect, key, 0);
+ if (NIL_P(desc)) {
+ desc = rb_any_to_s(key);
+ }
+ desc = rb_str_ellipsize(desc, 65);
+ rb_raise(rb_eKeyError, "key not found: %s", RSTRING_PTR(desc));
}
return if_none;
}
- return val;
+ return (VALUE)val;
}
VALUE
@@ -559,7 +603,7 @@ rb_hash_fetch(VALUE hash, VALUE key)
/*
* call-seq:
- * hsh.default(key=nil) => obj
+ * hsh.default(key=nil) -> obj
*
* Returns the default value, the value that would be returned by
* <i>hsh</i>[<i>key</i>] if <i>key</i> did not exist in <i>hsh</i>.
@@ -581,22 +625,23 @@ rb_hash_fetch(VALUE hash, VALUE key)
static VALUE
rb_hash_default(int argc, VALUE *argv, VALUE hash)
{
- VALUE key;
+ VALUE key, ifnone;
rb_scan_args(argc, argv, "01", &key);
+ ifnone = RHASH_IFNONE(hash);
if (FL_TEST(hash, HASH_PROC_DEFAULT)) {
if (argc == 0) return Qnil;
- return rb_funcall(RHASH(hash)->ifnone, id_yield, 2, hash, key);
+ return rb_funcall(ifnone, id_yield, 2, hash, key);
}
- return RHASH(hash)->ifnone;
+ return ifnone;
}
/*
* call-seq:
- * hsh.default = obj => obj
+ * hsh.default = obj -> obj
*
* Sets the default value, the value returned for a key that does not
- * exist in the hash. It is not possible to set the a default to a
+ * exist in the hash. It is not possible to set the default to a
* <code>Proc</code> that will be executed on each key lookup.
*
* h = { "a" => 100, "b" => 200 }
@@ -615,7 +660,7 @@ static VALUE
rb_hash_set_default(VALUE hash, VALUE ifnone)
{
rb_hash_modify(hash);
- RHASH(hash)->ifnone = ifnone;
+ RHASH_IFNONE(hash) = ifnone;
FL_UNSET(hash, HASH_PROC_DEFAULT);
return ifnone;
}
@@ -639,16 +684,14 @@ static VALUE
rb_hash_default_proc(VALUE hash)
{
if (FL_TEST(hash, HASH_PROC_DEFAULT)) {
- return RHASH(hash)->ifnone;
+ return RHASH_IFNONE(hash);
}
return Qnil;
}
-VALUE rb_obj_is_proc(VALUE proc);
-
/*
* call-seq:
- * hsh.default_proc = proc_obj => proc_obj
+ * hsh.default_proc = proc_obj -> proc_obj
*
* Sets the default proc to be executed on each key lookup.
*
@@ -672,7 +715,8 @@ rb_hash_set_default_proc(VALUE hash, VALUE proc)
rb_obj_classname(proc));
}
proc = b;
- RHASH(hash)->ifnone = proc;
+ default_proc_arity_check(proc);
+ RHASH_IFNONE(hash) = proc;
FL_SET(hash, HASH_PROC_DEFAULT);
return proc;
}
@@ -691,12 +735,14 @@ key_i(VALUE key, VALUE value, VALUE arg)
/*
* call-seq:
- * hsh.key(value) => key
+ * hsh.key(value) -> key
*
- * Returns the key for a given value. If not found, returns <code>nil</code>.
+ * Returns the key of an occurrence of a given value. If the value is
+ * not found, returns <code>nil</code>.
*
- * h = { "a" => 100, "b" => 200 }
+ * h = { "a" => 100, "b" => 200, "c" => 300, "d" => 300 }
* h.key(200) #=> "b"
+ * h.key(300) #=> "c"
* h.key(999) #=> nil
*
*/
@@ -742,8 +788,8 @@ rb_hash_delete_key(VALUE hash, VALUE key)
/*
* call-seq:
- * hsh.delete(key) => value
- * hsh.delete(key) {| key | block } => value
+ * hsh.delete(key) -> value
+ * hsh.delete(key) {| key | block } -> value
*
* Deletes and returns a key-value pair from <i>hsh</i> whose key is
* equal to <i>key</i>. If the key is not found, returns the
@@ -830,10 +876,10 @@ rb_hash_shift(VALUE hash)
return rb_assoc_new(var.key, var.val);
}
else if (FL_TEST(hash, HASH_PROC_DEFAULT)) {
- return rb_funcall(RHASH(hash)->ifnone, id_yield, 2, hash, Qnil);
+ return rb_funcall(RHASH_IFNONE(hash), id_yield, 2, hash, Qnil);
}
else {
- return RHASH(hash)->ifnone;
+ return RHASH_IFNONE(hash);
}
}
@@ -850,10 +896,13 @@ delete_if_i(VALUE key, VALUE value, VALUE hash)
/*
* call-seq:
* hsh.delete_if {| key, value | block } -> hsh
+ * hsh.delete_if -> an_enumerator
*
* Deletes every key-value pair from <i>hsh</i> for which <i>block</i>
* evaluates to <code>true</code>.
*
+ * If no block is given, an enumerator is returned instead.
+ *
* h = { "a" => 100, "b" => 200, "c" => 300 }
* h.delete_if {|key, value| key >= "b" } #=> {"a"=>100}
*
@@ -871,6 +920,7 @@ rb_hash_delete_if(VALUE hash)
/*
* call-seq:
* hsh.reject! {| key, value | block } -> hsh or nil
+ * hsh.reject! -> an_enumerator
*
* Equivalent to <code>Hash#delete_if</code>, but returns
* <code>nil</code> if no changes were made.
@@ -882,10 +932,11 @@ rb_hash_reject_bang(VALUE hash)
st_index_t n;
RETURN_ENUMERATOR(hash, 0, 0);
+ rb_hash_modify(hash);
if (!RHASH(hash)->ntbl)
return Qnil;
n = RHASH(hash)->ntbl->num_entries;
- rb_hash_delete_if(hash);
+ rb_hash_foreach(hash, delete_if_i, hash);
if (n == RHASH(hash)->ntbl->num_entries) return Qnil;
return hash;
}
@@ -893,6 +944,7 @@ rb_hash_reject_bang(VALUE hash)
/*
* call-seq:
* hsh.reject {| key, value | block } -> a_hash
+ * hsh.reject -> an_enumerator
*
* Same as <code>Hash#delete_if</code>, but works on (and returns) a
* copy of the <i>hsh</i>. Equivalent to
@@ -908,7 +960,7 @@ rb_hash_reject(VALUE hash)
/*
* call-seq:
- * hsh.values_at(key, ...) => array
+ * hsh.values_at(key, ...) -> array
*
* Return an array containing the values associated with the given keys.
* Also see <code>Hash.select</code>.
@@ -940,9 +992,12 @@ select_i(VALUE key, VALUE value, VALUE result)
/*
* call-seq:
- * hsh.select {|key, value| block} => a_hash
+ * hsh.select {|key, value| block} -> a_hash
+ * hsh.select -> an_enumerator
+ *
+ * Returns a new hash consisting of entries for which the block returns true.
*
- * Returns a new hash consisting of entries which the block returns true.
+ * If no block is given, an enumerator is returned instead.
*
* h = { "a" => 100, "b" => 200, "c" => 300 }
* h.select {|k,v| k > "a"} #=> {"b" => 200, "c" => 300}
@@ -961,6 +1016,61 @@ rb_hash_select(VALUE hash)
}
static int
+keep_if_i(VALUE key, VALUE value, VALUE hash)
+{
+ if (key == Qundef) return ST_CONTINUE;
+ if (!RTEST(rb_yield_values(2, key, value))) {
+ return ST_DELETE;
+ }
+ return ST_CONTINUE;
+}
+
+/*
+ * call-seq:
+ * hsh.select! {| key, value | block } -> hsh or nil
+ * hsh.select! -> an_enumerator
+ *
+ * Equivalent to <code>Hash#keep_if</code>, but returns
+ * <code>nil</code> if no changes were made.
+ */
+
+VALUE
+rb_hash_select_bang(VALUE hash)
+{
+ st_index_t n;
+
+ RETURN_ENUMERATOR(hash, 0, 0);
+ rb_hash_modify(hash);
+ if (!RHASH(hash)->ntbl)
+ return Qnil;
+ n = RHASH(hash)->ntbl->num_entries;
+ rb_hash_foreach(hash, keep_if_i, hash);
+ if (n == RHASH(hash)->ntbl->num_entries) return Qnil;
+ return hash;
+}
+
+/*
+ * call-seq:
+ * hsh.keep_if {| key, value | block } -> hsh
+ * hsh.keep_if -> an_enumerator
+ *
+ * Deletes every key-value pair from <i>hsh</i> for which <i>block</i>
+ * evaluates to false.
+ *
+ * If no block is given, an enumerator is returned instead.
+ *
+ */
+
+VALUE
+rb_hash_keep_if(VALUE hash)
+{
+ RETURN_ENUMERATOR(hash, 0, 0);
+ rb_hash_modify(hash);
+ rb_hash_foreach(hash, keep_if_i, hash);
+ return hash;
+}
+
+static int
clear_i(VALUE key, VALUE value, VALUE dummy)
{
return ST_DELETE;
@@ -993,10 +1103,16 @@ rb_hash_clear(VALUE hash)
return hash;
}
+static st_data_t
+copy_str_key(st_data_t str)
+{
+ return (st_data_t)rb_str_new4((VALUE)str);
+}
+
/*
* call-seq:
- * hsh[key] = value => value
- * hsh.store(key, value) => value
+ * hsh[key] = value -> value
+ * hsh.store(key, value) -> value
*
* Element Assignment---Associates the value given by
* <i>value</i> with the key given by <i>key</i>.
@@ -1015,12 +1131,12 @@ VALUE
rb_hash_aset(VALUE hash, VALUE key, VALUE val)
{
rb_hash_modify(hash);
- if (RHASH(hash)->ntbl->type == &identhash ||
- rb_obj_class(key) != rb_cString || st_lookup(RHASH(hash)->ntbl, key, 0)) {
+ hash_update(hash, key);
+ if (RHASH(hash)->ntbl->type == &identhash || rb_obj_class(key) != rb_cString) {
st_insert(RHASH(hash)->ntbl, key, val);
}
else {
- st_add_direct(RHASH(hash)->ntbl, rb_str_new4(key), val);
+ st_insert2(RHASH(hash)->ntbl, key, val, copy_str_key);
}
return val;
}
@@ -1050,11 +1166,16 @@ replace_i(VALUE key, VALUE val, VALUE hash)
static VALUE
rb_hash_replace(VALUE hash, VALUE hash2)
{
+ rb_hash_modify_check(hash);
hash2 = to_hash(hash2);
if (hash == hash2) return hash;
rb_hash_clear(hash);
+ if (RHASH(hash2)->ntbl) {
+ rb_hash_tbl(hash);
+ RHASH(hash)->ntbl->type = RHASH(hash2)->ntbl->type;
+ }
rb_hash_foreach(hash2, replace_i, hash);
- RHASH(hash)->ifnone = RHASH(hash2)->ifnone;
+ RHASH_IFNONE(hash) = RHASH_IFNONE(hash2);
if (FL_TEST(hash2, HASH_PROC_DEFAULT)) {
FL_SET(hash, HASH_PROC_DEFAULT);
}
@@ -1067,8 +1188,8 @@ rb_hash_replace(VALUE hash, VALUE hash2)
/*
* call-seq:
- * hsh.length => fixnum
- * hsh.size => fixnum
+ * hsh.length -> fixnum
+ * hsh.size -> fixnum
*
* Returns the number of key-value pairs in the hash.
*
@@ -1089,7 +1210,7 @@ rb_hash_size(VALUE hash)
/*
* call-seq:
- * hsh.empty? => true or false
+ * hsh.empty? -> true or false
*
* Returns <code>true</code> if <i>hsh</i> contains no key-value pairs.
*
@@ -1114,10 +1235,13 @@ each_value_i(VALUE key, VALUE value)
/*
* call-seq:
* hsh.each_value {| value | block } -> hsh
+ * hsh.each_value -> an_enumerator
*
* Calls <i>block</i> once for each key in <i>hsh</i>, passing the
* value as a parameter.
*
+ * If no block is given, an enumerator is returned instead.
+ *
* h = { "a" => 100, "b" => 200 }
* h.each_value {|value| puts value }
*
@@ -1146,10 +1270,13 @@ each_key_i(VALUE key, VALUE value)
/*
* call-seq:
* hsh.each_key {| key | block } -> hsh
+ * hsh.each_key -> an_enumerator
*
* Calls <i>block</i> once for each key in <i>hsh</i>, passing the key
* as a parameter.
*
+ * If no block is given, an enumerator is returned instead.
+ *
* h = { "a" => 100, "b" => 200 }
* h.each_key {|key| puts key }
*
@@ -1176,12 +1303,16 @@ each_pair_i(VALUE key, VALUE value)
/*
* call-seq:
- * hsh.each {| key, value | block } -> hsh
+ * hsh.each {| key, value | block } -> hsh
* hsh.each_pair {| key, value | block } -> hsh
+ * hsh.each -> an_enumerator
+ * hsh.each_pair -> an_enumerator
*
* Calls <i>block</i> once for each key in <i>hsh</i>, passing the key-value
* pair as parameters.
*
+ * If no block is given, an enumerator is returned instead.
+ *
* h = { "a" => 100, "b" => 200 }
* h.each {|key, value| puts "#{key} is #{value}" }
*
@@ -1237,10 +1368,13 @@ inspect_i(VALUE key, VALUE value, VALUE str)
VALUE str2;
if (key == Qundef) return ST_CONTINUE;
+ str2 = rb_inspect(key);
if (RSTRING_LEN(str) > 1) {
rb_str_cat2(str, ", ");
}
- str2 = rb_inspect(key);
+ else {
+ rb_enc_copy(str, str2);
+ }
rb_str_buf_append(str, str2);
OBJ_INFECT(str, str2);
rb_str_buf_cat2(str, "=>");
@@ -1267,8 +1401,8 @@ inspect_hash(VALUE hash, VALUE dummy, int recur)
/*
* call-seq:
- * hsh.to_s => string
- * hsh.inspect => string
+ * hsh.to_s -> string
+ * hsh.inspect -> string
*
* Return the contents of this hash as a string.
*
@@ -1288,7 +1422,7 @@ rb_hash_inspect(VALUE hash)
* call-seq:
* hsh.to_hash => hsh
*
- * Returns <i>self</i>.
+ * Returns +self+.
*/
static VALUE
@@ -1307,7 +1441,7 @@ keys_i(VALUE key, VALUE value, VALUE ary)
/*
* call-seq:
- * hsh.keys => array
+ * hsh.keys -> array
*
* Returns a new array populated with the keys from this hash. See also
* <code>Hash#values</code>.
@@ -1338,7 +1472,7 @@ values_i(VALUE key, VALUE value, VALUE ary)
/*
* call-seq:
- * hsh.values => array
+ * hsh.values -> array
*
* Returns a new array populated with the values from <i>hsh</i>. See
* also <code>Hash#keys</code>.
@@ -1361,10 +1495,10 @@ rb_hash_values(VALUE hash)
/*
* call-seq:
- * hsh.has_key?(key) => true or false
- * hsh.include?(key) => true or false
- * hsh.key?(key) => true or false
- * hsh.member?(key) => true or false
+ * hsh.has_key?(key) -> true or false
+ * hsh.include?(key) -> true or false
+ * hsh.key?(key) -> true or false
+ * hsh.member?(key) -> true or false
*
* Returns <code>true</code> if the given key is present in <i>hsh</i>.
*
@@ -1400,8 +1534,8 @@ rb_hash_search_value(VALUE key, VALUE value, VALUE arg)
/*
* call-seq:
- * hsh.has_value?(value) => true or false
- * hsh.value?(value) => true or false
+ * hsh.has_value?(value) -> true or false
+ * hsh.value?(value) -> true or false
*
* Returns <code>true</code> if the given value is present for some key
* in <i>hsh</i>.
@@ -1432,14 +1566,14 @@ static int
eql_i(VALUE key, VALUE val1, VALUE arg)
{
struct equal_data *data = (struct equal_data *)arg;
- VALUE val2;
+ st_data_t val2;
if (key == Qundef) return ST_CONTINUE;
if (!st_lookup(data->tbl, key, &val2)) {
data->result = Qfalse;
return ST_STOP;
}
- if (!(data->eql ? rb_eql(val1, val2) : (int)rb_equal(val1, val2))) {
+ if (!(data->eql ? rb_eql(val1, (VALUE)val2) : (int)rb_equal(val1, (VALUE)val2))) {
data->result = Qfalse;
return ST_STOP;
}
@@ -1451,7 +1585,7 @@ recursive_eql(VALUE hash, VALUE dt, int recur)
{
struct equal_data *data;
- if (recur) return Qfalse;
+ if (recur) return Qtrue; /* Subtle! */
data = (struct equal_data*)dt;
data->result = Qtrue;
rb_hash_foreach(hash, eql_i, dt);
@@ -1481,19 +1615,19 @@ hash_equal(VALUE hash1, VALUE hash2, int eql)
if (RHASH(hash1)->ntbl->type != RHASH(hash2)->ntbl->type)
return Qfalse;
#if 0
- if (!(rb_equal(RHASH(hash1)->ifnone, RHASH(hash2)->ifnone) &&
+ if (!(rb_equal(RHASH_IFNONE(hash1), RHASH_IFNONE(hash2)) &&
FL_TEST(hash1, HASH_PROC_DEFAULT) == FL_TEST(hash2, HASH_PROC_DEFAULT)))
return Qfalse;
#endif
data.tbl = RHASH(hash2)->ntbl;
data.eql = eql;
- return rb_exec_recursive(recursive_eql, hash1, (VALUE)&data);
+ return rb_exec_recursive_paired(recursive_eql, hash1, hash2, (VALUE)&data);
}
/*
* call-seq:
- * hsh == other_hash => true or false
+ * hsh == other_hash -> true or false
*
* Equality---Two hashes are equal if they each contain the same number
* of keys and if each key-value pair is equal to (according to
@@ -1513,7 +1647,7 @@ hash_equal(VALUE hash1, VALUE hash2, int eql)
static VALUE
rb_hash_equal(VALUE hash1, VALUE hash2)
{
- return hash_equal(hash1, hash2, Qfalse);
+ return hash_equal(hash1, hash2, FALSE);
}
/*
@@ -1527,46 +1661,51 @@ rb_hash_equal(VALUE hash1, VALUE hash2)
static VALUE
rb_hash_eql(VALUE hash1, VALUE hash2)
{
- return hash_equal(hash1, hash2, Qtrue);
+ return hash_equal(hash1, hash2, TRUE);
}
static int
hash_i(VALUE key, VALUE val, VALUE arg)
{
- VALUE *hval = (VALUE *)arg;
+ st_index_t *hval = (st_index_t *)arg;
+ st_index_t hdata[2];
if (key == Qundef) return ST_CONTINUE;
- *hval ^= rb_hash_end(rb_hash_uint(rb_hash_start(rb_hash(key)), rb_hash(val)));
+ hdata[0] = rb_hash(key);
+ hdata[1] = rb_hash(val);
+ *hval ^= st_hash(hdata, sizeof(hdata), 0);
return ST_CONTINUE;
}
static VALUE
recursive_hash(VALUE hash, VALUE dummy, int recur)
{
- VALUE hval;
+ st_index_t hval;
- if (recur) {
- return LONG2FIX(0);
- }
if (!RHASH(hash)->ntbl)
return LONG2FIX(0);
hval = RHASH(hash)->ntbl->num_entries;
- rb_hash_foreach(hash, hash_i, (VALUE)&hval);
+ if (!hval) return LONG2FIX(0);
+ if (recur)
+ hval = rb_hash_uint(rb_hash_start(rb_hash(rb_cHash)), hval);
+ else
+ rb_hash_foreach(hash, hash_i, (VALUE)&hval);
+ hval = rb_hash_end(hval);
return INT2FIX(hval);
}
/*
* call-seq:
- * array.hash -> fixnum
+ * hsh.hash -> fixnum
*
- * Compute a hash-code for this array. Two arrays with the same content
+ * Compute a hash-code for this hash. Two hashes with the same content
* will have the same hash code (and will compare using <code>eql?</code>).
*/
static VALUE
rb_hash_hash(VALUE hash)
{
- return rb_exec_recursive(recursive_hash, hash, 0);
+ return rb_exec_recursive_outer(recursive_hash, hash, 0);
}
static int
@@ -1579,7 +1718,7 @@ rb_hash_invert_i(VALUE key, VALUE value, VALUE hash)
/*
* call-seq:
- * hsh.invert -> aHash
+ * hsh.invert -> new_hash
*
* Returns a new hash created by using <i>hsh</i>'s values as keys, and
* the keys as values.
@@ -1602,7 +1741,8 @@ static int
rb_hash_update_i(VALUE key, VALUE value, VALUE hash)
{
if (key == Qundef) return ST_CONTINUE;
- rb_hash_aset(hash, key, value);
+ hash_update(hash, key);
+ st_insert(RHASH(hash)->ntbl, key, value);
return ST_CONTINUE;
}
@@ -1613,19 +1753,20 @@ rb_hash_update_block_i(VALUE key, VALUE value, VALUE hash)
if (rb_hash_has_key(hash, key)) {
value = rb_yield_values(3, key, rb_hash_aref(hash, key), value);
}
- rb_hash_aset(hash, key, value);
+ hash_update(hash, key);
+ st_insert(RHASH(hash)->ntbl, key, value);
return ST_CONTINUE;
}
/*
* call-seq:
- * hsh.merge!(other_hash) => hsh
- * hsh.update(other_hash) => hsh
- * hsh.merge!(other_hash){|key, oldval, newval| block} => hsh
- * hsh.update(other_hash){|key, oldval, newval| block} => hsh
+ * hsh.merge!(other_hash) -> hsh
+ * hsh.update(other_hash) -> hsh
+ * hsh.merge!(other_hash){|key, oldval, newval| block} -> hsh
+ * hsh.update(other_hash){|key, oldval, newval| block} -> hsh
*
* Adds the contents of <i>other_hash</i> to <i>hsh</i>. If no
- * block is specified entries with duplicate keys are overwritten
+ * block is specified, entries with duplicate keys are overwritten
* with the values from <i>other_hash</i>, otherwise the value
* of each duplicate key is determined by calling the block with
* the key, its value in <i>hsh</i> and its value in <i>other_hash</i>.
@@ -1643,6 +1784,7 @@ rb_hash_update_block_i(VALUE key, VALUE value, VALUE hash)
static VALUE
rb_hash_update(VALUE hash1, VALUE hash2)
{
+ rb_hash_modify(hash1);
hash2 = to_hash(hash2);
if (rb_block_given_p()) {
rb_hash_foreach(hash2, rb_hash_update_block_i, hash1);
@@ -1653,18 +1795,59 @@ rb_hash_update(VALUE hash1, VALUE hash2)
return hash1;
}
+struct update_arg {
+ VALUE hash;
+ rb_hash_update_func *func;
+};
+
+static int
+rb_hash_update_func_i(VALUE key, VALUE value, VALUE arg0)
+{
+ struct update_arg *arg = (struct update_arg *)arg0;
+ VALUE hash = arg->hash;
+
+ if (key == Qundef) return ST_CONTINUE;
+ if (rb_hash_has_key(hash, key)) {
+ value = (*arg->func)(key, rb_hash_aref(hash, key), value);
+ }
+ hash_update(hash, key);
+ st_insert(RHASH(hash)->ntbl, key, value);
+ return ST_CONTINUE;
+}
+
+VALUE
+rb_hash_update_by(VALUE hash1, VALUE hash2, rb_hash_update_func *func)
+{
+ rb_hash_modify(hash1);
+ hash2 = to_hash(hash2);
+ if (func) {
+ struct update_arg arg;
+ arg.hash = hash1;
+ arg.func = func;
+ rb_hash_foreach(hash2, rb_hash_update_func_i, (VALUE)&arg);
+ }
+ else {
+ rb_hash_foreach(hash2, rb_hash_update_i, hash1);
+ }
+ return hash1;
+}
+
/*
* call-seq:
- * hsh.merge(other_hash) -> a_hash
- * hsh.merge(other_hash){|key, oldval, newval| block} -> a_hash
+ * hsh.merge(other_hash) -> new_hash
+ * hsh.merge(other_hash){|key, oldval, newval| block} -> new_hash
*
* Returns a new hash containing the contents of <i>other_hash</i> and
- * the contents of <i>hsh</i>, overwriting entries in <i>hsh</i> with
- * duplicate keys with those from <i>other_hash</i>.
+ * the contents of <i>hsh</i>. If no block is specified, the value for
+ * entries with duplicate keys will be that of <i>other_hash</i>. Otherwise
+ * the value for each duplicate key is determined by calling the block
+ * with the key, its value in <i>hsh</i> and its value in <i>other_hash</i>.
*
* h1 = { "a" => 100, "b" => 200 }
* h2 = { "b" => 254, "c" => 300 }
* h1.merge(h2) #=> {"a"=>100, "b"=>254, "c"=>300}
+ * h1.merge(h2){|key, oldval, newval| newval - oldval}
+ * #=> {"a"=>100, "b"=>54, "c"=>300}
* h1 #=> {"a"=>100, "b"=>200}
*
*/
@@ -1728,10 +1911,10 @@ rassoc_i(VALUE key, VALUE val, VALUE arg)
/*
* call-seq:
- * hash.rassoc(key) -> an_array or nil
+ * hash.rassoc(obj) -> an_array or nil
*
* Searches through the hash comparing _obj_ with the value using <code>==</code>.
- * Returns the first key-value pair (two elements array) that matches. See
+ * Returns the first key-value pair (two-element array) that matches. See
* also <code>Array#rassoc</code>.
*
* a = {1=> "one", 2 => "two", 3 => "three", "ii" => "two"}
@@ -1758,7 +1941,7 @@ rb_hash_rassoc(VALUE hash, VALUE obj)
* Returns a new array that is a one-dimensional flattening of this
* hash. That is, for every key or value that is an array, extract
* its elements into the new array. Unlike Array#flatten, this
- * method does not flatten recursively by default. If the optional
+ * method does not flatten recursively by default. The optional
* <i>level</i> argument determines the level of recursion to flatten.
*
* a = {1=> "one", 2 => [2,"two"], 3 => "three"}
@@ -1783,9 +1966,9 @@ rb_hash_flatten(int argc, VALUE *argv, VALUE hash)
/*
* call-seq:
- * hsh.compare_by_identity => hsh
+ * hsh.compare_by_identity -> hsh
*
- * Makes <i>hsh</i> to compare its keys by their identity, i.e. it
+ * Makes <i>hsh</i> compare its keys by their identity, i.e. it
* will consider exact same objects as same keys.
*
* h1 = { "a" => 100, "b" => 200, :c => "c" }
@@ -1808,7 +1991,7 @@ rb_hash_compare_by_id(VALUE hash)
/*
* call-seq:
- * hsh.compare_by_identity? => true or false
+ * hsh.compare_by_identity? -> true or false
*
* Returns <code>true</code> if <i>hsh</i> will compare its keys by
* their identity. Also see <code>Hash#compare_by_identity</code>.
@@ -1830,7 +2013,7 @@ static int path_tainted = -1;
static char **origenviron;
#ifdef _WIN32
-#define GET_ENVIRON(e) (e = rb_w32_get_environ())
+#define GET_ENVIRON(e) ((e) = rb_w32_get_environ())
#define FREE_ENVIRON(e) rb_w32_free_environ(e)
static char **my_environ;
#undef environ
@@ -1846,17 +2029,17 @@ extern char **environ;
#define FREE_ENVIRON(e)
#endif
#ifdef ENV_IGNORECASE
-#define ENVMATCH(s1, s2) (STRCASECMP(s1, s2) == 0)
-#define ENVNMATCH(s1, s2, n) (STRNCASECMP(s1, s2, n) == 0)
+#define ENVMATCH(s1, s2) (STRCASECMP((s1), (s2)) == 0)
+#define ENVNMATCH(s1, s2, n) (STRNCASECMP((s1), (s2), (n)) == 0)
#else
-#define ENVMATCH(n1, n2) (strcmp(n1, n2) == 0)
-#define ENVNMATCH(s1, s2, n) (memcmp(s1, s2, n) == 0)
+#define ENVMATCH(n1, n2) (strcmp((n1), (n2)) == 0)
+#define ENVNMATCH(s1, s2, n) (memcmp((s1), (s2), (n)) == 0)
#endif
static VALUE
env_str_new(const char *ptr, long len)
{
- VALUE str = rb_tainted_str_new(ptr, len);
+ VALUE str = rb_locale_str_new(ptr, len);
rb_obj_freeze(str);
return str;
@@ -1893,6 +2076,15 @@ env_delete(VALUE obj, VALUE name)
return Qnil;
}
+/*
+ * call-seq:
+ * ENV.delete(name) -> value
+ * ENV.delete(name) { |name| } -> value
+ *
+ * Deletes the environment variable with +name+ and returns the value of the
+ * variable. If a block is given it will be called when the named environment
+ * does not exist.
+ */
static VALUE
env_delete_m(VALUE obj, VALUE name)
{
@@ -1903,6 +2095,15 @@ env_delete_m(VALUE obj, VALUE name)
return val;
}
+static int env_path_tainted(const char *);
+
+/*
+ * call-seq:
+ * ENV[name] -> value
+ *
+ * Retrieves the +value+ for environment variable +name+ as a String. Returns
+ * +nil+ if the named variable does not exist.
+ */
static VALUE
rb_f_getenv(VALUE obj, VALUE name)
{
@@ -1916,8 +2117,8 @@ rb_f_getenv(VALUE obj, VALUE name)
}
env = getenv(nam);
if (env) {
- if (ENVMATCH(nam, PATH_ENV) && !rb_env_path_tainted()) {
- VALUE str = rb_str_new2(env);
+ if (ENVMATCH(nam, PATH_ENV) && !env_path_tainted(env)) {
+ VALUE str = rb_filesystem_str_new_cstr(env);
rb_obj_freeze(str);
return str;
@@ -1927,6 +2128,20 @@ rb_f_getenv(VALUE obj, VALUE name)
return Qnil;
}
+/*
+ * :yield: missing_name
+ * call-seq:
+ * ENV.fetch(name) -> value
+ * ENV.fetch(name, default) -> value
+ * ENV.fetch(name) { |missing_name| ... } -> value
+ *
+ * Retrieves the environment variable +name+.
+ *
+ * If the given name does not exist and neither +default+ nor a block a
+ * provided an IndexError is raised. If a block is given it is called with
+ * the missing name to provide a value. If a default value is given it will
+ * be returned when no block is given.
+ */
static VALUE
env_fetch(int argc, VALUE *argv)
{
@@ -1953,17 +2168,26 @@ env_fetch(int argc, VALUE *argv)
}
return if_none;
}
- if (ENVMATCH(nam, PATH_ENV) && !rb_env_path_tainted())
- return rb_str_new2(env);
+ if (ENVMATCH(nam, PATH_ENV) && !env_path_tainted(env))
+ return rb_filesystem_str_new_cstr(env);
return env_str_new2(env);
}
static void
-path_tainted_p(char *path)
+path_tainted_p(const char *path)
{
path_tainted = rb_path_check(path)?0:1;
}
+static int
+env_path_tainted(const char *path)
+{
+ if (path_tainted < 0) {
+ path_tainted_p(path);
+ }
+ return path_tainted;
+}
+
int
rb_env_path_tainted(void)
{
@@ -1973,7 +2197,18 @@ rb_env_path_tainted(void)
return path_tainted;
}
-#if !defined(_WIN32) && !(defined(HAVE_SETENV) && defined(HAVE_UNSETENV))
+#if defined(_WIN32) || (defined(HAVE_SETENV) && defined(HAVE_UNSETENV))
+#elif defined __sun__
+static int
+in_origenv(const char *str)
+{
+ char **env;
+ for (env = origenviron; *env; ++env) {
+ if (*env == str) return 1;
+ }
+ return 0;
+}
+#else
static int
envix(const char *nam)
{
@@ -1990,38 +2225,96 @@ envix(const char *nam)
}
#endif
+#if defined(_WIN32)
+static size_t
+getenvsize(const char* p)
+{
+ const char* porg = p;
+ while (*p++) p += strlen(p) + 1;
+ return p - porg + 1;
+}
+static size_t
+getenvblocksize()
+{
+ return (rb_w32_osver() >= 5) ? 32767 : 5120;
+}
+#endif
+
void
ruby_setenv(const char *name, const char *value)
{
#if defined(_WIN32)
- /* The sane way to deal with the environment.
- * Has these advantages over putenv() & co.:
- * * enables us to store a truly empty value in the
- * environment (like in UNIX).
- * * we don't have to deal with RTL globals, bugs and leaks.
- * * Much faster.
- * Why you may want to enable USE_WIN32_RTL_ENV:
- * * environ[] and RTL functions will not reflect changes,
- * which might be an issue if extensions want to access
- * the env. via RTL. This cuts both ways, since RTL will
- * not see changes made by extensions that call the Win32
- * functions directly, either.
- * GSAR 97-06-07
- *
- * REMARK: USE_WIN32_RTL_ENV is already obsoleted since we don't use
- * RTL's environ global variable directly yet.
- */
- SetEnvironmentVariable(name,value);
+ VALUE buf;
+ int failed = 0;
+ if (strchr(name, '=')) {
+ fail:
+ errno = EINVAL;
+ rb_sys_fail("ruby_setenv");
+ }
+ if (value) {
+ const char* p = GetEnvironmentStringsA();
+ if (!p) goto fail; /* never happen */
+ if (strlen(name) + 2 + strlen(value) + getenvsize(p) >= getenvblocksize()) {
+ goto fail; /* 2 for '=' & '\0' */
+ }
+ buf = rb_sprintf("%s=%s", name, value);
+ }
+ else {
+ buf = rb_sprintf("%s=", name);
+ }
+ failed = putenv(RSTRING_PTR(buf));
+ /* even if putenv() failed, clean up and try to delete the
+ * variable from the system area. */
+ rb_str_resize(buf, 0);
+ if (!value || !*value) {
+ /* putenv() doesn't handle empty value */
+ if (!SetEnvironmentVariable(name, value) &&
+ GetLastError() != ERROR_ENVVAR_NOT_FOUND) goto fail;
+ }
+ if (failed) goto fail;
#elif defined(HAVE_SETENV) && defined(HAVE_UNSETENV)
#undef setenv
#undef unsetenv
- if (value)
- setenv(name,value,1);
- else
+ if (value) {
+ if (setenv(name, value, 1))
+ rb_sys_fail("setenv");
+ } else {
+#ifdef VOID_UNSETENV
unsetenv(name);
+#else
+ if (unsetenv(name))
+ rb_sys_fail("unsetenv");
+#endif
+ }
+#elif defined __sun__
+ size_t len;
+ char **env_ptr, *str;
+ if (strchr(name, '=')) {
+ errno = EINVAL;
+ rb_sys_fail("ruby_setenv");
+ }
+ len = strlen(name);
+ for (env_ptr = GET_ENVIRON(environ); (str = *env_ptr) != 0; ++env_ptr) {
+ if (!strncmp(str, name, len) && str[len] == '=') {
+ if (!in_origenv(str)) free(str);
+ while ((env_ptr[0] = env_ptr[1]) != 0) env_ptr++;
+ break;
+ }
+ }
+ if (value) {
+ str = malloc(len += strlen(value) + 2);
+ snprintf(str, len, "%s=%s", name, value);
+ if (putenv(str))
+ rb_sys_fail("putenv");
+ }
#else /* WIN32 */
size_t len;
- int i=envix(name); /* where does it go? */
+ int i;
+ if (strchr(name, '=')) {
+ errno = EINVAL;
+ rb_sys_fail("ruby_setenv");
+ }
+ i=envix(name); /* where does it go? */
if (environ == origenviron) { /* need we copy environment? */
int j;
@@ -2031,7 +2324,7 @@ ruby_setenv(const char *name, const char *value)
for (max = i; environ[max]; max++) ;
tmpenv = ALLOC_N(char*, max+2);
for (j=0; j<max; j++) /* copy environment */
- tmpenv[j] = strdup(environ[j]);
+ tmpenv[j] = ruby_strdup(environ[j]);
tmpenv[max] = 0;
environ = tmpenv; /* tell exec where it is now */
}
@@ -2065,6 +2358,15 @@ ruby_unsetenv(const char *name)
ruby_setenv(name, 0);
}
+/*
+ * call-seq:
+ * ENV[name] = value
+ * ENV.store(name, value) -> value
+ *
+ * Sets the environment variable +name+ to +value+. If the value given is
+ * +nil+ the environment variable is deleted.
+ *
+ */
static VALUE
env_aset(VALUE obj, VALUE nm, VALUE val)
{
@@ -2101,6 +2403,12 @@ env_aset(VALUE obj, VALUE nm, VALUE val)
return val;
}
+/*
+ * call-seq:
+ * ENV.keys -> Array
+ *
+ * Returns every environment variable name in an Array
+ */
static VALUE
env_keys(void)
{
@@ -2121,6 +2429,15 @@ env_keys(void)
return ary;
}
+/*
+ * call-seq:
+ * ENV.each_key { |name| } -> Hash
+ * ENV.each_key -> Enumerator
+ *
+ * Yields each environment variable name.
+ *
+ * An Enumerator is returned if no block is given.
+ */
static VALUE
env_each_key(VALUE ehash)
{
@@ -2135,6 +2452,12 @@ env_each_key(VALUE ehash)
return ehash;
}
+/*
+ * call-seq:
+ * ENV.values -> Array
+ *
+ * Returns every environment variable value as an Array
+ */
static VALUE
env_values(void)
{
@@ -2155,6 +2478,15 @@ env_values(void)
return ary;
}
+/*
+ * call-seq:
+ * ENV.each_value { |value| } -> Hash
+ * ENV.each_value -> Enumerator
+ *
+ * Yields each environment variable +value+.
+ *
+ * An Enumerator is returned if no block was given.
+ */
static VALUE
env_each_value(VALUE ehash)
{
@@ -2169,6 +2501,17 @@ env_each_value(VALUE ehash)
return ehash;
}
+/*
+ * call-seq:
+ * ENV.each { |name, value| } -> Hash
+ * ENV.each -> Enumerator
+ * ENV.each_pair { |name, value| } -> Hash
+ * ENV.each_pair -> Enumerator
+ *
+ * Yields each environment variable +name+ and +value+.
+ *
+ * If no block is given an Enumerator is returned.
+ */
static VALUE
env_each_pair(VALUE ehash)
{
@@ -2197,6 +2540,15 @@ env_each_pair(VALUE ehash)
return ehash;
}
+/*
+ * call-seq:
+ * ENV.reject! { |name, value| } -> Hash or nil
+ * ENV.reject! -> Enumerator
+ *
+ * Equivalent to ENV#delete_if but returns +nil+ if no changes were made.
+ *
+ * Returns an Enumerator if no block was given.
+ */
static VALUE
env_reject_bang(VALUE ehash)
{
@@ -2220,6 +2572,15 @@ env_reject_bang(VALUE ehash)
return envtbl;
}
+/*
+ * call-seq:
+ * ENV.delete_if { |name, value| } -> Hash
+ * ENV.delete_if -> Enumerator
+ *
+ * Deletes every environment variable for which the block evaluates to +true+.
+ *
+ * If no block is given an enumerator is returned instead.
+ */
static VALUE
env_delete_if(VALUE ehash)
{
@@ -2228,6 +2589,13 @@ env_delete_if(VALUE ehash)
return envtbl;
}
+/*
+ * call-seq:
+ * ENV.values_at(name, ...) -> Array
+ *
+ * Returns an array containing the environment variable values associated with
+ * the given names. See also ENV.select.
+ */
static VALUE
env_values_at(int argc, VALUE *argv)
{
@@ -2242,6 +2610,15 @@ env_values_at(int argc, VALUE *argv)
return result;
}
+/*
+ * call-seq:
+ * ENV.select { |name, value| } -> Hash
+ * ENV.select -> Enumerator
+ *
+ * Returns a copy of the environment for entries where the block returns true.
+ *
+ * Returns an Enumerator if no block was given.
+ */
static VALUE
env_select(VALUE ehash)
{
@@ -2268,6 +2645,59 @@ env_select(VALUE ehash)
return result;
}
+/*
+ * call-seq:
+ * ENV.select! { |name, value| } -> ENV or nil
+ * ENV.select! -> Enumerator
+ *
+ * Equivalent to ENV#keep_if but returns +nil+ if no changes were made.
+ */
+static VALUE
+env_select_bang(VALUE ehash)
+{
+ volatile VALUE keys;
+ long i;
+ int del = 0;
+
+ RETURN_ENUMERATOR(ehash, 0, 0);
+ keys = env_keys(); /* rb_secure(4); */
+ for (i=0; i<RARRAY_LEN(keys); i++) {
+ VALUE val = rb_f_getenv(Qnil, RARRAY_PTR(keys)[i]);
+ if (!NIL_P(val)) {
+ if (!RTEST(rb_yield_values(2, RARRAY_PTR(keys)[i], val))) {
+ FL_UNSET(RARRAY_PTR(keys)[i], FL_TAINT);
+ env_delete(Qnil, RARRAY_PTR(keys)[i]);
+ del++;
+ }
+ }
+ }
+ if (del == 0) return Qnil;
+ return envtbl;
+}
+
+/*
+ * call-seq:
+ * ENV.keep_if { |name, value| } -> Hash
+ * ENV.keep_if -> Enumerator
+ *
+ * Deletes every environment variable where the block evaluates to +false+.
+ *
+ * Returns an enumerator if no block was given.
+ */
+static VALUE
+env_keep_if(VALUE ehash)
+{
+ RETURN_ENUMERATOR(ehash, 0, 0);
+ env_select_bang(ehash);
+ return envtbl;
+}
+
+/*
+ * call-seq:
+ * ENV.clear
+ *
+ * Removes every environment variable.
+ */
VALUE
rb_env_clear(void)
{
@@ -2284,12 +2714,24 @@ rb_env_clear(void)
return envtbl;
}
+/*
+ * call-seq:
+ * ENV.to_s -> "ENV"
+ *
+ * Returns "ENV"
+ */
static VALUE
env_to_s(void)
{
return rb_usascii_str_new2("ENV");
}
+/*
+ * call-seq:
+ * ENV.inspect -> string
+ *
+ * Returns the contents of the environment as a String.
+ */
static VALUE
env_inspect(void)
{
@@ -2321,6 +2763,15 @@ env_inspect(void)
return str;
}
+/*
+ * call-seq:
+ * ENV.to_a -> Array
+ *
+ * Converts the environment variables into an array of names and value arrays.
+ *
+ * ENV.to_a # => [["TERM" => "xterm-color"], ["SHELL" => "/bin/bash"], ...]
+ *
+ */
static VALUE
env_to_a(void)
{
@@ -2342,12 +2793,26 @@ env_to_a(void)
return ary;
}
+/*
+ * call-seq:
+ * ENV.rehash
+ *
+ * Re-hashing the environment variables does nothing. It is provided for
+ * compatibility with Hash.
+ */
static VALUE
env_none(void)
{
return Qnil;
}
+/*
+ * call-seq:
+ * ENV.length
+ * ENV.size
+ *
+ * Returns the number of environment variables.
+ */
static VALUE
env_size(void)
{
@@ -2362,6 +2827,12 @@ env_size(void)
return INT2FIX(i);
}
+/*
+ * call-seq:
+ * ENV.empty? -> true or false
+ *
+ * Returns true when there are no environment variables
+ */
static VALUE
env_empty_p(void)
{
@@ -2377,6 +2848,15 @@ env_empty_p(void)
return Qfalse;
}
+/*
+ * call-seq:
+ * ENV.key?(name) -> true or false
+ * ENV.include?(name) -> true or false
+ * ENV.has_key?(name) -> true or false
+ * ENV.member?(name) -> true or false
+ *
+ * Returns +true+ if there is an environment variable with the given +name+.
+ */
static VALUE
env_has_key(VALUE env, VALUE key)
{
@@ -2390,6 +2870,13 @@ env_has_key(VALUE env, VALUE key)
return Qfalse;
}
+/*
+ * call-seq:
+ * ENV.assoc(name) -> Array or nil
+ *
+ * Returns an Array of the name and value of the environment variable with
+ * +name+ or +nil+ if the name cannot be found.
+ */
static VALUE
env_assoc(VALUE env, VALUE key)
{
@@ -2404,6 +2891,13 @@ env_assoc(VALUE env, VALUE key)
return Qnil;
}
+/*
+ * call-seq:
+ * ENV.value?(value) -> true or false
+ * ENV.has_value?(value) -> true or false
+ *
+ * Returns +true+ if there is an environment variable with the given +value+.
+ */
static VALUE
env_has_value(VALUE dmy, VALUE obj)
{
@@ -2428,6 +2922,13 @@ env_has_value(VALUE dmy, VALUE obj)
return Qfalse;
}
+/*
+ * call-seq:
+ * ENV.rassoc(value)
+ *
+ * Returns an Array of the name and value of the environment variable with
+ * +value+ or +nil+ if the value cannot be found.
+ */
static VALUE
env_rassoc(VALUE dmy, VALUE obj)
{
@@ -2453,6 +2954,13 @@ env_rassoc(VALUE dmy, VALUE obj)
return Qnil;
}
+/*
+ * call-seq:
+ * ENV.key(value) -> name
+ *
+ * Returns the name of the environment variable with +value+. If the value is
+ * not found +nil+ is returned.
+ */
static VALUE
env_key(VALUE dmy, VALUE value)
{
@@ -2478,6 +2986,12 @@ env_key(VALUE dmy, VALUE value)
return Qnil;
}
+/*
+ * call-seq:
+ * ENV.index(value) -> key
+ *
+ * Deprecated method that is equivalent to ENV.key
+ */
static VALUE
env_index(VALUE dmy, VALUE value)
{
@@ -2485,6 +2999,13 @@ env_index(VALUE dmy, VALUE value)
return env_key(dmy, value);
}
+/*
+ * call-seq:
+ * ENV.to_hash -> Hash
+ *
+ * Creates a hash with a copy of the environment variables.
+ *
+ */
static VALUE
env_to_hash(void)
{
@@ -2506,12 +3027,27 @@ env_to_hash(void)
return hash;
}
+/*
+ * call-seq:
+ * ENV.reject { |name, value| } -> Hash
+ * ENV.reject -> Enumerator
+ *
+ * Same as ENV#delete_if, but works on (and returns) a copy of the
+ * environment.
+ */
static VALUE
env_reject(void)
{
return rb_hash_delete_if(env_to_hash());
}
+/*
+ * call-seq:
+ * ENV.shift -> Array or nil
+ *
+ * Removes an environment variable name-value pair from ENV and returns it as
+ * an Array. Returns +nil+ if when the environment is empty.
+ */
static VALUE
env_shift(void)
{
@@ -2532,6 +3068,13 @@ env_shift(void)
return Qnil;
}
+/*
+ * call-seq:
+ * ENV.invert -> Hash
+ *
+ * Returns a new hash created by using environment variable names as values
+ * and values as names.
+ */
static VALUE
env_invert(void)
{
@@ -2550,6 +3093,13 @@ env_replace_i(VALUE key, VALUE val, VALUE keys)
return ST_CONTINUE;
}
+/*
+ * call-seq:
+ * ENV.replace(hash) -> env
+ *
+ * Replaces the contents of the environment variables with the contents of
+ * +hash+.
+ */
static VALUE
env_replace(VALUE env, VALUE hash)
{
@@ -2579,6 +3129,16 @@ env_update_i(VALUE key, VALUE val)
return ST_CONTINUE;
}
+/*
+ * call-seq:
+ * ENV.update(hash) -> Hash
+ * ENV.update(hash) { |name, old_value, new_value| } -> Hash
+ *
+ * Adds the contents of +hash+ to the environment variables. If no block is
+ * specified entries with duplicate keys are overwritten, otherwise the value
+ * of each duplicate name is determined by calling the block with the key, its
+ * value from the environment and its value from the hash.
+ */
static VALUE
env_update(VALUE env, VALUE hash)
{
@@ -2592,9 +3152,8 @@ env_update(VALUE env, VALUE hash)
/*
* A <code>Hash</code> is a collection of key-value pairs. It is
* similar to an <code>Array</code>, except that indexing is done via
- * arbitrary keys of any object type, not an integer index. The order
- * in which you traverse a hash by either key or value may seem
- * arbitrary, and will generally not be in the insertion order.
+ * arbitrary keys of any object type, not an integer index. Hashes enumerate
+ * their values in the order that the corresponding keys were inserted.
*
* Hashes have a <em>default value</em> that is returned when accessing
* keys that do not exist in the hash. By default, that value is
@@ -2625,8 +3184,8 @@ Init_Hash(void)
rb_define_method(rb_cHash,"to_hash", rb_hash_to_hash, 0);
rb_define_method(rb_cHash,"to_a", rb_hash_to_a, 0);
- rb_define_method(rb_cHash,"to_s", rb_hash_inspect, 0);
rb_define_method(rb_cHash,"inspect", rb_hash_inspect, 0);
+ rb_define_alias(rb_cHash, "to_s", "inspect");
rb_define_method(rb_cHash,"==", rb_hash_equal, 1);
rb_define_method(rb_cHash,"[]", rb_hash_aref, 1);
@@ -2657,7 +3216,9 @@ Init_Hash(void)
rb_define_method(rb_cHash,"shift", rb_hash_shift, 0);
rb_define_method(rb_cHash,"delete", rb_hash_delete, 1);
rb_define_method(rb_cHash,"delete_if", rb_hash_delete_if, 0);
+ rb_define_method(rb_cHash,"keep_if", rb_hash_keep_if, 0);
rb_define_method(rb_cHash,"select", rb_hash_select, 0);
+ rb_define_method(rb_cHash,"select!", rb_hash_select_bang, 0);
rb_define_method(rb_cHash,"reject", rb_hash_reject, 0);
rb_define_method(rb_cHash,"reject!", rb_hash_reject_bang, 0);
rb_define_method(rb_cHash,"clear", rb_hash_clear, 0);
@@ -2680,6 +3241,15 @@ Init_Hash(void)
rb_define_method(rb_cHash,"compare_by_identity", rb_hash_compare_by_id, 0);
rb_define_method(rb_cHash,"compare_by_identity?", rb_hash_compare_by_id_p, 0);
+ /* Document-class: ENV
+ *
+ * ENV is a hash-like accessor for environment variables.
+ */
+
+ /*
+ * Hack to get RDoc to regard ENV as a class:
+ * envtbl = rb_define_class("ENV", rb_cObject);
+ */
origenviron = environ;
envtbl = rb_obj_alloc(rb_cObject);
rb_extend_object(envtbl, rb_mEnumerable);
@@ -2694,10 +3264,12 @@ Init_Hash(void)
rb_define_singleton_method(envtbl,"each_value", env_each_value, 0);
rb_define_singleton_method(envtbl,"delete", env_delete_m, 1);
rb_define_singleton_method(envtbl,"delete_if", env_delete_if, 0);
+ rb_define_singleton_method(envtbl,"keep_if", env_keep_if, 0);
rb_define_singleton_method(envtbl,"clear", rb_env_clear, 0);
rb_define_singleton_method(envtbl,"reject", env_reject, 0);
rb_define_singleton_method(envtbl,"reject!", env_reject_bang, 0);
rb_define_singleton_method(envtbl,"select", env_select, 0);
+ rb_define_singleton_method(envtbl,"select!", env_select_bang, 0);
rb_define_singleton_method(envtbl,"shift", env_shift, 0);
rb_define_singleton_method(envtbl,"invert", env_invert, 0);
rb_define_singleton_method(envtbl,"replace", env_replace, 1);
@@ -2724,5 +3296,10 @@ Init_Hash(void)
rb_define_singleton_method(envtbl,"assoc", env_assoc, 1);
rb_define_singleton_method(envtbl,"rassoc", env_rassoc, 1);
+ /*
+ * ENV is a Hash-like accessor for environment variables.
+ *
+ * See ENV (the class) for more details.
+ */
rb_define_global_const("ENV", envtbl);
}
diff --git a/id.c b/id.c
index 24a1959d6f..89ae4a4e77 100644
--- a/id.c
+++ b/id.c
@@ -24,7 +24,6 @@ Init_id(void)
REGISTER_SYMID(idIFUNC, "<IFUNC>");
REGISTER_SYMID(idCFUNC, "<CFUNC>");
REGISTER_SYMID(idRespond_to, "respond_to?");
- REGISTER_SYMID(idThrowState, "#__ThrowState__");
REGISTER_SYMID(id_core_set_method_alias, "core#set_method_alias");
REGISTER_SYMID(id_core_set_variable_alias, "core#set_variable_alias");
@@ -35,6 +34,7 @@ Init_id(void)
REGISTER_SYMID(idEach, "each");
REGISTER_SYMID(idLength, "length");
+ REGISTER_SYMID(idSize, "size");
REGISTER_SYMID(idLambda, "lambda");
REGISTER_SYMID(idIntern, "intern");
REGISTER_SYMID(idGets, "gets");
@@ -47,4 +47,5 @@ Init_id(void)
REGISTER_SYMID(idSend, "send");
REGISTER_SYMID(id__send__, "__send__");
REGISTER_SYMID(idInitialize, "initialize");
+ REGISTER_SYMID(idUScore, "_");
}
diff --git a/id.h b/id.h
deleted file mode 100644
index 97faaf4f6f..0000000000
--- a/id.h
+++ /dev/null
@@ -1,163 +0,0 @@
-/* DO NOT EDIT THIS FILE DIRECTLY */
-/**********************************************************************
-
- id.h -
-
- $Author: nobu $
- created at: Sun Oct 19 21:12:51 2008
-
- Copyright (C) 2007 Koichi Sasada
-
-**********************************************************************/
-
-#ifndef RUBY_ID_H
-#define RUBY_ID_H
-
-#define ID_SCOPE_SHIFT 3
-#define ID_SCOPE_MASK 0x07
-#define ID_LOCAL 0x00
-#define ID_INSTANCE 0x01
-#define ID_GLOBAL 0x03
-#define ID_ATTRSET 0x04
-#define ID_CONST 0x05
-#define ID_CLASS 0x06
-#define ID_JUNK 0x07
-#define ID_INTERNAL ID_JUNK
-
-#ifdef USE_PARSE_H
-#include "parse.h"
-#endif
-
-#define symIFUNC ID2SYM(idIFUNC)
-#define symCFUNC ID2SYM(idCFUNC)
-
-#if !defined tLAST_TOKEN && defined YYTOKENTYPE
-#define tLAST_TOKEN tLAST_TOKEN
-#endif
-
-enum ruby_method_ids {
-#ifndef tLAST_TOKEN
- tUPLUS = 321,
- tUMINUS = 322,
- tPOW = 323,
- tCMP = 324,
- tEQ = 325,
- tEQQ = 326,
- tNEQ = 327,
- tGEQ = 328,
- tLEQ = 329,
- tANDOP = 330,
- tOROP = 331,
- tMATCH = 332,
- tNMATCH = 333,
- tDOT2 = 334,
- tDOT3 = 335,
- tAREF = 336,
- tASET = 337,
- tLSHFT = 338,
- tRSHFT = 339,
- tLAMBDA = 352,
- idNULL = 365,
- idRespond_to = 366,
- idIFUNC = 367,
- idCFUNC = 368,
- idThrowState = 369,
- id_core_set_method_alias = 370,
- id_core_set_variable_alias = 371,
- id_core_undef_method = 372,
- id_core_define_method = 373,
- id_core_define_singleton_method = 374,
- id_core_set_postexe = 375,
- tLAST_TOKEN = 376,
-#endif
- idPLUS = '+',
- idMINUS = '-',
- idMULT = '*',
- idDIV = '/',
- idMOD = '%',
- idLT = '<',
- idLTLT = tLSHFT,
- idLE = tLEQ,
- idGT = '>',
- idGE = tGEQ,
- idEq = tEQ,
- idEqq = tEQQ,
- idNeq = tNEQ,
- idNot = '!',
- idBackquote = '`',
- idEqTilde = tMATCH,
- idAREF = tAREF,
- idASET = tASET,
- idLAST_TOKEN = tLAST_TOKEN >> ID_SCOPE_SHIFT,
- tIntern,
- tMethodMissing,
- tLength,
- tGets,
- tSucc,
- tEach,
- tLambda,
- tSend,
- t__send__,
- tInitialize,
-#if SUPPORT_JOKE
- tBitblt,
- tAnswer,
-#endif
- tLAST_ID,
-#define TOKEN2ID(n) id##n = ((t##n<<ID_SCOPE_SHIFT)|ID_LOCAL)
-#if SUPPORT_JOKE
- TOKEN2ID(Bitblt),
- TOKEN2ID(Answer),
-#endif
- TOKEN2ID(Intern),
- TOKEN2ID(MethodMissing),
- TOKEN2ID(Length),
- TOKEN2ID(Gets),
- TOKEN2ID(Succ),
- TOKEN2ID(Each),
- TOKEN2ID(Lambda),
- TOKEN2ID(Send),
- TOKEN2ID(__send__),
- TOKEN2ID(Initialize)
-};
-
-#ifdef tLAST_TOKEN
-struct ruby_method_ids_check {
-#define ruby_method_id_check_for(name, value) \
- int checking_for_##name[name == value ? 1 : -1]
-ruby_method_id_check_for(tUPLUS, 321);
-ruby_method_id_check_for(tUMINUS, 322);
-ruby_method_id_check_for(tPOW, 323);
-ruby_method_id_check_for(tCMP, 324);
-ruby_method_id_check_for(tEQ, 325);
-ruby_method_id_check_for(tEQQ, 326);
-ruby_method_id_check_for(tNEQ, 327);
-ruby_method_id_check_for(tGEQ, 328);
-ruby_method_id_check_for(tLEQ, 329);
-ruby_method_id_check_for(tANDOP, 330);
-ruby_method_id_check_for(tOROP, 331);
-ruby_method_id_check_for(tMATCH, 332);
-ruby_method_id_check_for(tNMATCH, 333);
-ruby_method_id_check_for(tDOT2, 334);
-ruby_method_id_check_for(tDOT3, 335);
-ruby_method_id_check_for(tAREF, 336);
-ruby_method_id_check_for(tASET, 337);
-ruby_method_id_check_for(tLSHFT, 338);
-ruby_method_id_check_for(tRSHFT, 339);
-ruby_method_id_check_for(tLAMBDA, 352);
-ruby_method_id_check_for(idNULL, 365);
-ruby_method_id_check_for(idRespond_to, 366);
-ruby_method_id_check_for(idIFUNC, 367);
-ruby_method_id_check_for(idCFUNC, 368);
-ruby_method_id_check_for(idThrowState, 369);
-ruby_method_id_check_for(id_core_set_method_alias, 370);
-ruby_method_id_check_for(id_core_set_variable_alias, 371);
-ruby_method_id_check_for(id_core_undef_method, 372);
-ruby_method_id_check_for(id_core_define_method, 373);
-ruby_method_id_check_for(id_core_define_singleton_method, 374);
-ruby_method_id_check_for(id_core_set_postexe, 375);
-ruby_method_id_check_for(tLAST_TOKEN, 376);
-};
-#endif
-
-#endif /* RUBY_ID_H */
diff --git a/include/ruby.h b/include/ruby.h
index dd7e2b8e59..862b1687d4 100644
--- a/include/ruby.h
+++ b/include/ruby.h
@@ -17,13 +17,13 @@
#define HAVE_RUBY_INTERN_H 1
#define HAVE_RUBY_IO_H 1
#define HAVE_RUBY_MISSING_H 1
-#define HAVE_RUBY_VM_H 1
#define HAVE_RUBY_ONIGURUMA_H 1
#define HAVE_RUBY_RE_H 1
#define HAVE_RUBY_REGEX_H 1
#define HAVE_RUBY_RUBY_H 1
#define HAVE_RUBY_ST_H 1
#define HAVE_RUBY_UTIL_H 1
+#define HAVE_RUBY_VERSION_H 1
#define HAVE_RUBY_VM_H 1
#ifdef _WIN32
#define HAVE_RUBY_WIN32_H 1
diff --git a/include/ruby/backward/classext.h b/include/ruby/backward/classext.h
new file mode 100644
index 0000000000..615e6f6858
--- /dev/null
+++ b/include/ruby/backward/classext.h
@@ -0,0 +1,18 @@
+#if defined __GNUC__
+#warning use of RClass internals is deprecated
+#elif defined _MSC_VER || defined __BORLANDC__
+#pragma message("warning: use of RClass internals is deprecated")
+#endif
+
+#ifndef RUBY_BACKWARD_CLASSEXT_H
+#define RUBY_BACKWARD_CLASSEXT_H 1
+
+typedef struct rb_deprecated_classext_struct {
+ VALUE super;
+} rb_deprecated_classext_t;
+
+#undef RCLASS_SUPER(c)
+#define RCLASS_EXT(c) ((rb_deprecated_classext_t *)RCLASS(c)->ptr)
+#define RCLASS_SUPER(c) (RCLASS_EXT(c)->super)
+
+#endif /* RUBY_BACKWARD_CLASSEXT_H */
diff --git a/include/ruby/defines.h b/include/ruby/defines.h
index 50b60c60e1..8fd09716f1 100644
--- a/include/ruby/defines.h
+++ b/include/ruby/defines.h
@@ -17,9 +17,17 @@ extern "C" {
#endif
#endif
+#include "ruby/config.h"
+#ifdef RUBY_EXTCONF_H
+#include RUBY_EXTCONF_H
+#endif
+
#define RUBY
-#include <stdlib.h>
+# include <stddef.h>
+#ifdef HAVE_STDLIB_H
+# include <stdlib.h>
+#endif
#ifdef __cplusplus
# ifndef HAVE_PROTOTYPES
# define HAVE_PROTOTYPES 1
@@ -49,6 +57,10 @@ extern "C" {
#define ANYARGS
#endif
+#if defined __GNUC__ && __GNUC__ >= 4
+#pragma GCC visibility push(default)
+#endif
+
#define xmalloc ruby_xmalloc
#define xmalloc2 ruby_xmalloc2
#define xcalloc ruby_xcalloc
@@ -82,23 +94,45 @@ void xfree(void*);
# define SIZEOF_BDIGITS SIZEOF_INT
# define BDIGIT_DBL unsigned LONG_LONG
# define BDIGIT_DBL_SIGNED LONG_LONG
+# define PRI_BDIGIT_PREFIX ""
+# define PRI_BDIGIT_DBL_PREFIX PRI_LL_PREFIX
#elif SIZEOF_INT*2 <= SIZEOF_LONG
# define BDIGIT unsigned int
# define SIZEOF_BDIGITS SIZEOF_INT
# define BDIGIT_DBL unsigned long
# define BDIGIT_DBL_SIGNED long
+# define PRI_BDIGIT_PREFIX ""
+# define PRI_BDIGIT_DBL_PREFIX "l"
#elif SIZEOF_SHORT*2 <= SIZEOF_LONG
# define BDIGIT unsigned short
# define SIZEOF_BDIGITS SIZEOF_SHORT
# define BDIGIT_DBL unsigned long
# define BDIGIT_DBL_SIGNED long
+# define PRI_BDIGIT_PREFIX "h"
+# define PRI_BDIGIT_DBL_PREFIX "l"
#else
# define BDIGIT unsigned short
# define SIZEOF_BDIGITS (SIZEOF_LONG/2)
# define BDIGIT_DBL unsigned long
# define BDIGIT_DBL_SIGNED long
+# define PRI_BDIGIT_PREFIX "h"
+# define PRI_BDIGIT_DBL_PREFIX "l"
#endif
+#define PRIdBDIGIT PRI_BDIGIT_PREFIX"d"
+#define PRIiBDIGIT PRI_BDIGIT_PREFIX"i"
+#define PRIoBDIGIT PRI_BDIGIT_PREFIX"o"
+#define PRIuBDIGIT PRI_BDIGIT_PREFIX"u"
+#define PRIxBDIGIT PRI_BDIGIT_PREFIX"x"
+#define PRIXBDIGIT PRI_BDIGIT_PREFIX"X"
+
+#define PRIdBDIGIT_DBL PRI_BDIGIT_DBL_PREFIX"d"
+#define PRIiBDIGIT_DBL PRI_BDIGIT_DBL_PREFIX"i"
+#define PRIoBDIGIT_DBL PRI_BDIGIT_DBL_PREFIX"o"
+#define PRIuBDIGIT_DBL PRI_BDIGIT_DBL_PREFIX"u"
+#define PRIxBDIGIT_DBL PRI_BDIGIT_DBL_PREFIX"x"
+#define PRIXBDIGIT_DBL PRI_BDIGIT_DBL_PREFIX"X"
+
#ifdef __CYGWIN__
#undef _WIN32
#endif
@@ -195,8 +229,29 @@ void xfree(void*);
# include <sys/select.h>
#endif
+#ifdef __SYMBIAN32__
+# define FALSE 0
+# define TRUE 1
+#endif
+
#ifdef RUBY_EXPORT
#undef RUBY_EXTERN
+
+#ifndef FALSE
+# define FALSE 0
+#elif FALSE
+# error FALSE must be false
+#endif
+#ifndef TRUE
+# define TRUE 1
+#elif !TRUE
+# error TRUE must be true
+#endif
+
+#endif
+
+#ifndef RUBY_FUNC_EXPORTED
+#define RUBY_FUNC_EXPORTED
#endif
#ifndef RUBY_EXTERN
@@ -213,21 +268,8 @@ void xfree(void*);
#endif
#if defined(sparc) || defined(__sparc__)
-static inline void
-flush_register_windows(void)
-{
- asm
-#ifdef __GNUC__
- volatile
-#endif
-# if defined(__sparc_v9__) || defined(__sparcv9) || defined(__arch64__)
- ("flushw")
-# else
- ("ta 0x03")
-# endif /* trap always to flush register windows if we are on a Sparc system */
- ;
-}
-# define FLUSH_REGISTER_WINDOWS flush_register_windows()
+void rb_sparc_flush_register_windows(void);
+# define FLUSH_REGISTER_WINDOWS rb_sparc_flush_register_windows()
#elif defined(__ia64)
void *rb_ia64_bsp(void);
void rb_ia64_flushrs(void);
@@ -278,6 +320,10 @@ void rb_ia64_flushrs(void);
RUBY_ALIAS_FUNCTION_TYPE(VALUE, prot, name, args)
#endif
+#if defined __GNUC__ && __GNUC__ >= 4
+#pragma GCC visibility pop
+#endif
+
#if defined(__cplusplus)
#if 0
{ /* satisfy cc-mode */
diff --git a/include/ruby/encoding.h b/include/ruby/encoding.h
index 9be412ddf2..058462fd24 100644
--- a/include/ruby/encoding.h
+++ b/include/ruby/encoding.h
@@ -12,9 +12,20 @@
#ifndef RUBY_ENCODING_H
#define RUBY_ENCODING_H 1
+#if defined(__cplusplus)
+extern "C" {
+#if 0
+} /* satisfy cc-mode */
+#endif
+#endif
+
#include <stdarg.h>
#include "ruby/oniguruma.h"
+#if defined __GNUC__ && __GNUC__ >= 4
+#pragma GCC visibility push(default)
+#endif
+
#define ENCODING_INLINE_MAX 1023
#define ENCODING_SHIFT (FL_USHIFT+10)
#define ENCODING_MASK (((VALUE)ENCODING_INLINE_MAX)<<ENCODING_SHIFT)
@@ -51,12 +62,12 @@
#define ENC_CODERANGE_ASCIIONLY(obj) (ENC_CODERANGE(obj) == ENC_CODERANGE_7BIT)
#define ENC_CODERANGE_SET(obj,cr) (RBASIC(obj)->flags = \
(RBASIC(obj)->flags & ~ENC_CODERANGE_MASK) | (cr))
-#define ENC_CODERANGE_CLEAR(obj) ENC_CODERANGE_SET(obj,0)
+#define ENC_CODERANGE_CLEAR(obj) ENC_CODERANGE_SET((obj),0)
/* assumed ASCII compatibility */
#define ENC_CODERANGE_AND(a, b) \
- (a == ENC_CODERANGE_7BIT ? b : \
- a == ENC_CODERANGE_VALID ? (b == ENC_CODERANGE_7BIT ? ENC_CODERANGE_VALID : b) : \
+ ((a) == ENC_CODERANGE_7BIT ? (b) : \
+ (a) == ENC_CODERANGE_VALID ? ((b) == ENC_CODERANGE_7BIT ? ENC_CODERANGE_VALID : (b)) : \
ENC_CODERANGE_UNKNOWN)
#define ENCODING_CODERANGE_SET(obj, encindex, cr) \
@@ -68,6 +79,8 @@
typedef OnigEncodingType rb_encoding;
+int rb_char_to_option_kcode(int c, int *option, int *kcode);
+
int rb_enc_replicate(const char *, rb_encoding *);
int rb_define_dummy_encoding(const char *);
#define rb_enc_to_index(enc) ((enc) ? ENC_TO_ENCINDEX(enc) : 0)
@@ -91,10 +104,12 @@ long rb_enc_strlen(const char*, const char*, rb_encoding*);
char* rb_enc_nth(const char*, const char*, long, rb_encoding*);
VALUE rb_obj_encoding(VALUE);
VALUE rb_enc_str_buf_cat(VALUE str, const char *ptr, long len, rb_encoding *enc);
+VALUE rb_enc_uint_chr(unsigned int code, rb_encoding *enc);
VALUE rb_external_str_new_with_enc(const char *ptr, long len, rb_encoding *);
VALUE rb_str_export_to_enc(VALUE, rb_encoding *);
VALUE rb_str_conv_enc(VALUE str, rb_encoding *from, rb_encoding *to);
+VALUE rb_str_conv_enc_opts(VALUE str, rb_encoding *from, rb_encoding *to, int ecflags, VALUE ecopts);
/* index -> rb_encoding */
rb_encoding* rb_enc_from_index(int idx);
@@ -134,33 +149,34 @@ unsigned int rb_enc_codepoint_len(const char *p, const char *e, int *len, rb_enc
unsigned int rb_enc_codepoint(const char *p, const char *e, rb_encoding *enc);
/* overriding macro */
#define rb_enc_codepoint(p,e,enc) rb_enc_codepoint_len((p),(e),0,(enc))
-#define rb_enc_mbc_to_codepoint(p, e, enc) ONIGENC_MBC_TO_CODE(enc,(UChar*)(p),(UChar*)(e))
+#define rb_enc_mbc_to_codepoint(p, e, enc) ONIGENC_MBC_TO_CODE((enc),(UChar*)(p),(UChar*)(e))
/* -> codelen>0 or raise exception */
int rb_enc_codelen(int code, rb_encoding *enc);
/* code,ptr,encoding -> write buf */
-#define rb_enc_mbcput(c,buf,enc) ONIGENC_CODE_TO_MBC(enc,c,(UChar*)(buf))
+#define rb_enc_mbcput(c,buf,enc) ONIGENC_CODE_TO_MBC((enc),(c),(UChar*)(buf))
/* start, ptr, end, encoding -> prev_char */
-#define rb_enc_prev_char(s,p,e,enc) (char *)onigenc_get_prev_char_head(enc,(UChar*)(s),(UChar*)(p),(UChar*)(e))
+#define rb_enc_prev_char(s,p,e,enc) ((char *)onigenc_get_prev_char_head((enc),(UChar*)(s),(UChar*)(p),(UChar*)(e)))
/* start, ptr, end, encoding -> next_char */
-#define rb_enc_left_char_head(s,p,e,enc) (char *)onigenc_get_left_adjust_char_head(enc,(UChar*)(s),(UChar*)(p),(UChar*)(e))
-#define rb_enc_right_char_head(s,p,e,enc) (char *)onigenc_get_right_adjust_char_head(enc,(UChar*)(s),(UChar*)(p),(UChar*)(e))
+#define rb_enc_left_char_head(s,p,e,enc) ((char *)onigenc_get_left_adjust_char_head((enc),(UChar*)(s),(UChar*)(p),(UChar*)(e)))
+#define rb_enc_right_char_head(s,p,e,enc) ((char *)onigenc_get_right_adjust_char_head((enc),(UChar*)(s),(UChar*)(p),(UChar*)(e)))
+#define rb_enc_step_back(s,p,e,n,enc) ((char *)onigenc_step_back((enc),(UChar*)(s),(UChar*)(p),(UChar*)(e),(int)(n)))
/* ptr, ptr, encoding -> newline_or_not */
-#define rb_enc_is_newline(p,end,enc) ONIGENC_IS_MBC_NEWLINE(enc,(UChar*)(p),(UChar*)(end))
+#define rb_enc_is_newline(p,end,enc) ONIGENC_IS_MBC_NEWLINE((enc),(UChar*)(p),(UChar*)(end))
-#define rb_enc_isctype(c,t,enc) ONIGENC_IS_CODE_CTYPE(enc,c,t)
+#define rb_enc_isctype(c,t,enc) ONIGENC_IS_CODE_CTYPE((enc),(c),(t))
#define rb_enc_isascii(c,enc) ONIGENC_IS_CODE_ASCII(c)
-#define rb_enc_isalpha(c,enc) ONIGENC_IS_CODE_ALPHA(enc,c)
-#define rb_enc_islower(c,enc) ONIGENC_IS_CODE_LOWER(enc,c)
-#define rb_enc_isupper(c,enc) ONIGENC_IS_CODE_UPPER(enc,c)
-#define rb_enc_ispunct(c,enc) ONIGENC_IS_CODE_PUNCT(enc,c)
-#define rb_enc_isalnum(c,enc) ONIGENC_IS_CODE_ALNUM(enc,c)
-#define rb_enc_isprint(c,enc) ONIGENC_IS_CODE_PRINT(enc,c)
-#define rb_enc_isspace(c,enc) ONIGENC_IS_CODE_SPACE(enc,c)
-#define rb_enc_isdigit(c,enc) ONIGENC_IS_CODE_DIGIT(enc,c)
+#define rb_enc_isalpha(c,enc) ONIGENC_IS_CODE_ALPHA((enc),(c))
+#define rb_enc_islower(c,enc) ONIGENC_IS_CODE_LOWER((enc),(c))
+#define rb_enc_isupper(c,enc) ONIGENC_IS_CODE_UPPER((enc),(c))
+#define rb_enc_ispunct(c,enc) ONIGENC_IS_CODE_PUNCT((enc),(c))
+#define rb_enc_isalnum(c,enc) ONIGENC_IS_CODE_ALNUM((enc),(c))
+#define rb_enc_isprint(c,enc) ONIGENC_IS_CODE_PRINT((enc),(c))
+#define rb_enc_isspace(c,enc) ONIGENC_IS_CODE_SPACE((enc),(c))
+#define rb_enc_isdigit(c,enc) ONIGENC_IS_CODE_DIGIT((enc),(c))
#define rb_enc_asciicompat(enc) (rb_enc_mbminlen(enc)==1 && !rb_enc_dummy_p(enc))
@@ -170,11 +186,13 @@ int rb_enc_tolower(int c, rb_encoding *enc);
ID rb_intern3(const char*, long, rb_encoding*);
ID rb_interned_id_p(const char *, long, rb_encoding *);
int rb_enc_symname_p(const char*, rb_encoding*);
+int rb_enc_symname2_p(const char*, long, rb_encoding*);
int rb_enc_str_coderange(VALUE);
long rb_str_coderange_scan_restartable(const char*, const char*, rb_encoding*, int*);
int rb_enc_str_asciionly_p(VALUE);
#define rb_enc_str_asciicompat_p(str) rb_enc_asciicompat(rb_enc_get(str))
VALUE rb_enc_from_encoding(rb_encoding *enc);
+int rb_enc_unicode_p(rb_encoding *enc);
rb_encoding *rb_ascii8bit_encoding(void);
rb_encoding *rb_utf8_encoding(void);
rb_encoding *rb_usascii_encoding(void);
@@ -185,6 +203,8 @@ rb_encoding *rb_default_internal_encoding(void);
int rb_ascii8bit_encindex(void);
int rb_utf8_encindex(void);
int rb_usascii_encindex(void);
+int rb_locale_encindex(void);
+int rb_filesystem_encindex(void);
VALUE rb_enc_default_external(void);
VALUE rb_enc_default_internal(void);
void rb_enc_set_default_external(VALUE encoding);
@@ -196,7 +216,7 @@ RUBY_EXTERN VALUE rb_cEncoding;
#define ENC_DUMMY_FLAG (1<<24)
#define ENC_INDEX_MASK (~(~0U<<24))
-#define ENC_TO_ENCINDEX(enc) ((enc)->ruby_encoding_index & ENC_INDEX_MASK)
+#define ENC_TO_ENCINDEX(enc) (int)((enc)->ruby_encoding_index & ENC_INDEX_MASK)
#define ENC_DUMMY_P(enc) ((enc)->ruby_encoding_index & ENC_DUMMY_FLAG)
#define ENC_SET_DUMMY(enc) ((enc)->ruby_encoding_index |= ENC_DUMMY_FLAG)
@@ -224,6 +244,7 @@ typedef struct rb_econv_t rb_econv_t;
VALUE rb_str_encode(VALUE str, VALUE to, int ecflags, VALUE ecopts);
int rb_econv_has_convpath_p(const char* from_encoding, const char* to_encoding);
+int rb_econv_prepare_options(VALUE opthash, VALUE *ecopts, int ecflags);
int rb_econv_prepare_opts(VALUE opthash, VALUE *ecopts);
rb_econv_t *rb_econv_open(const char *source_encoding, const char *destination_encoding, int ecflags);
@@ -283,6 +304,9 @@ void rb_econv_binmode(rb_econv_t *ec);
#define ECONV_UNDEF_HEX_CHARREF 0x00000030
#define ECONV_DECORATOR_MASK 0x0000ff00
+#define ECONV_NEWLINE_DECORATOR_MASK 0x00003f00
+#define ECONV_NEWLINE_DECORATOR_READ_MASK 0x00000f00
+#define ECONV_NEWLINE_DECORATOR_WRITE_MASK 0x00003000
#define ECONV_UNIVERSAL_NEWLINE_DECORATOR 0x00000100
#define ECONV_CRLF_NEWLINE_DECORATOR 0x00001000
@@ -293,6 +317,12 @@ void rb_econv_binmode(rb_econv_t *ec);
#define ECONV_STATEFUL_DECORATOR_MASK 0x00f00000
#define ECONV_XML_ATTR_QUOTE_DECORATOR 0x00100000
+#if defined(RUBY_TEST_CRLF_ENVIRONMENT) || defined(_WIN32)
+#define ECONV_DEFAULT_NEWLINE_DECORATOR ECONV_CRLF_NEWLINE_DECORATOR
+#else
+#define ECONV_DEFAULT_NEWLINE_DECORATOR 0
+#endif
+
/* end of flags for rb_econv_open */
/* flags for rb_econv_convert */
@@ -300,4 +330,15 @@ void rb_econv_binmode(rb_econv_t *ec);
#define ECONV_AFTER_OUTPUT 0x00020000
/* end of flags for rb_econv_convert */
+#if defined __GNUC__ && __GNUC__ >= 4
+#pragma GCC visibility pop
+#endif
+
+#if defined(__cplusplus)
+#if 0
+{ /* satisfy cc-mode */
+#endif
+} /* extern "C" { */
+#endif
+
#endif /* RUBY_ENCODING_H */
diff --git a/include/ruby/intern.h b/include/ruby/intern.h
index ae443859d6..50451f35b3 100644
--- a/include/ruby/intern.h
+++ b/include/ruby/intern.h
@@ -21,6 +21,11 @@ extern "C" {
#endif
#endif
+#include "ruby/defines.h"
+#ifdef RUBY_EXTCONF_H
+#include RUBY_EXTCONF_H
+#endif
+
#ifdef HAVE_STDARG_PROTOTYPES
# include <stdarg.h>
#else
@@ -28,6 +33,10 @@ extern "C" {
#endif
#include "ruby/st.h"
+#if defined __GNUC__ && __GNUC__ >= 4
+#pragma GCC visibility push(default)
+#endif
+
/*
* Functions and variables that are used by more than one source file of
* the kernel.
@@ -45,11 +54,13 @@ VALUE rb_ary_new3(long,...);
VALUE rb_ary_new4(long, const VALUE *);
VALUE rb_ary_tmp_new(long);
void rb_ary_free(VALUE);
+void rb_ary_modify(VALUE);
VALUE rb_ary_freeze(VALUE);
VALUE rb_ary_aref(int, VALUE*, VALUE);
VALUE rb_ary_subseq(VALUE, long, long);
void rb_ary_store(VALUE, long, VALUE);
VALUE rb_ary_dup(VALUE);
+VALUE rb_ary_resurrect(VALUE ary);
VALUE rb_ary_to_ary(VALUE);
VALUE rb_ary_to_s(VALUE);
VALUE rb_ary_push(VALUE, VALUE);
@@ -59,7 +70,6 @@ VALUE rb_ary_unshift(VALUE, VALUE);
VALUE rb_ary_entry(VALUE, long);
VALUE rb_ary_each(VALUE);
VALUE rb_ary_join(VALUE, VALUE);
-VALUE rb_ary_print_on(VALUE, VALUE);
VALUE rb_ary_reverse(VALUE);
VALUE rb_ary_sort(VALUE);
VALUE rb_ary_sort_bang(VALUE);
@@ -74,7 +84,10 @@ VALUE rb_ary_includes(VALUE, VALUE);
VALUE rb_ary_cmp(VALUE, VALUE);
VALUE rb_ary_replace(VALUE copy, VALUE orig);
VALUE rb_get_values_at(VALUE, long, int, VALUE*, VALUE(*)(VALUE,long));
+VALUE rb_ary_resize(VALUE ary, long len);
/* bignum.c */
+VALUE rb_big_new(long, int);
+int rb_bigzero_p(VALUE x);
VALUE rb_big_clone(VALUE);
void rb_big_2comp(VALUE);
VALUE rb_big_norm(VALUE);
@@ -93,14 +106,17 @@ SIGNED_VALUE rb_big2long(VALUE);
#define rb_big2int(x) rb_big2long(x)
VALUE rb_big2ulong(VALUE);
#define rb_big2uint(x) rb_big2ulong(x)
+VALUE rb_big2ulong_pack(VALUE x);
#if HAVE_LONG_LONG
VALUE rb_ll2inum(LONG_LONG);
VALUE rb_ull2inum(unsigned LONG_LONG);
LONG_LONG rb_big2ll(VALUE);
unsigned LONG_LONG rb_big2ull(VALUE);
#endif /* HAVE_LONG_LONG */
-void rb_quad_pack(char*,VALUE);
-VALUE rb_quad_unpack(const char*,int);
+DEPRECATED(void rb_quad_pack(char*,VALUE));
+DEPRECATED(VALUE rb_quad_unpack(const char*,int));
+void rb_big_pack(VALUE val, unsigned long *buf, long num_longs);
+VALUE rb_big_unpack(unsigned long *buf, long num_longs);
int rb_uv_to_utf8(char[6],unsigned long);
VALUE rb_dbl2big(double);
double rb_big2dbl(VALUE);
@@ -110,6 +126,7 @@ VALUE rb_big_plus(VALUE, VALUE);
VALUE rb_big_minus(VALUE, VALUE);
VALUE rb_big_mul(VALUE, VALUE);
VALUE rb_big_div(VALUE, VALUE);
+VALUE rb_big_idiv(VALUE, VALUE);
VALUE rb_big_modulo(VALUE, VALUE);
VALUE rb_big_divmod(VALUE, VALUE);
VALUE rb_big_pow(VALUE, VALUE);
@@ -120,25 +137,25 @@ VALUE rb_big_lshift(VALUE, VALUE);
VALUE rb_big_rshift(VALUE, VALUE);
/* rational.c */
VALUE rb_rational_raw(VALUE, VALUE);
-#define rb_rational_raw1(x) rb_rational_raw(x, INT2FIX(1))
-#define rb_rational_raw2(x,y) rb_rational_raw(x, y)
+#define rb_rational_raw1(x) rb_rational_raw((x), INT2FIX(1))
+#define rb_rational_raw2(x,y) rb_rational_raw((x), (y))
VALUE rb_rational_new(VALUE, VALUE);
-#define rb_rational_new1(x) rb_rational_new(x, INT2FIX(1))
-#define rb_rational_new2(x,y) rb_rational_new(x, y)
+#define rb_rational_new1(x) rb_rational_new((x), INT2FIX(1))
+#define rb_rational_new2(x,y) rb_rational_new((x), (y))
VALUE rb_Rational(VALUE, VALUE);
-#define rb_Rational1(x) rb_Rational(x, INT2FIX(1))
-#define rb_Rational2(x,y) rb_Rational(x, y)
+#define rb_Rational1(x) rb_Rational((x), INT2FIX(1))
+#define rb_Rational2(x,y) rb_Rational((x), (y))
/* complex.c */
VALUE rb_complex_raw(VALUE, VALUE);
-#define rb_complex_raw1(x) rb_complex_raw(x, INT2FIX(0))
-#define rb_complex_raw2(x,y) rb_complex_raw(x, y)
+#define rb_complex_raw1(x) rb_complex_raw((x), INT2FIX(0))
+#define rb_complex_raw2(x,y) rb_complex_raw((x), (y))
VALUE rb_complex_new(VALUE, VALUE);
-#define rb_complex_new1(x) rb_complex_new(x, INT2FIX(0))
-#define rb_complex_new2(x,y) rb_complex_new(x, y)
+#define rb_complex_new1(x) rb_complex_new((x), INT2FIX(0))
+#define rb_complex_new2(x,y) rb_complex_new((x), (y))
VALUE rb_complex_polar(VALUE, VALUE);
VALUE rb_Complex(VALUE, VALUE);
-#define rb_Complex1(x) rb_Complex(x, INT2FIX(0))
-#define rb_Complex2(x,y) rb_Complex(x, y)
+#define rb_Complex1(x) rb_Complex((x), INT2FIX(0))
+#define rb_Complex2(x,y) rb_Complex((x), (y))
/* class.c */
VALUE rb_class_boot(VALUE);
VALUE rb_class_new(VALUE);
@@ -150,8 +167,10 @@ VALUE rb_make_metaclass(VALUE, VALUE);
void rb_check_inheritable(VALUE);
VALUE rb_class_inherited(VALUE, VALUE);
VALUE rb_define_class_id(ID, VALUE);
+VALUE rb_define_class_id_under(VALUE, ID, VALUE);
VALUE rb_module_new(void);
VALUE rb_define_module_id(ID);
+VALUE rb_define_module_id_under(VALUE, ID);
VALUE rb_mod_included_modules(VALUE);
VALUE rb_mod_include_p(VALUE, VALUE);
VALUE rb_mod_ancestors(VALUE);
@@ -181,8 +200,8 @@ VALUE rb_fiber_alive_p(VALUE);
VALUE rb_enumeratorize(VALUE, VALUE, int, VALUE *);
#define RETURN_ENUMERATOR(obj, argc, argv) do { \
if (!rb_block_given_p()) \
- return rb_enumeratorize(obj, ID2SYM(rb_frame_this_func()), \
- argc, argv); \
+ return rb_enumeratorize((obj), ID2SYM(rb_frame_this_func()),\
+ (argc), (argv)); \
} while (0)
/* error.c */
VALUE rb_exc_new(VALUE, const char*, long);
@@ -192,13 +211,32 @@ PRINTF_ARGS(NORETURN(void rb_loaderror(const char*, ...)), 1, 2);
PRINTF_ARGS(NORETURN(void rb_name_error(ID, const char*, ...)), 2, 3);
NORETURN(void rb_invalid_str(const char*, const char*));
PRINTF_ARGS(void rb_compile_error(const char*, int, const char*, ...), 3, 4);
+PRINTF_ARGS(void rb_compile_error_with_enc(const char*, int, void *, const char*, ...), 4, 5);
PRINTF_ARGS(void rb_compile_error_append(const char*, ...), 1, 2);
NORETURN(void rb_load_fail(const char*));
NORETURN(void rb_error_frozen(const char*));
void rb_check_frozen(VALUE);
+#define rb_check_frozen_internal(obj) do { \
+ VALUE frozen_obj = (obj); \
+ if (OBJ_FROZEN(frozen_obj)) { \
+ rb_error_frozen(rb_obj_classname(frozen_obj)); \
+ } \
+ } while (0)
+#ifdef __GNUC__
+#define rb_check_frozen(obj) __extension__({rb_check_frozen_internal(obj);})
+#else
+static inline void
+rb_check_frozen_inline(VALUE obj)
+{
+ rb_check_frozen_internal(obj);
+}
+#define rb_check_frozen(obj) rb_check_frozen_inline(obj)
+#endif
+
/* eval.c */
int rb_sourceline(void);
const char *rb_sourcefile(void);
+VALUE rb_check_funcall(VALUE, ID, int, VALUE*);
#if defined(NFDBITS) && defined(HAVE_RB_FD_INIT)
typedef struct {
@@ -206,13 +244,14 @@ typedef struct {
fd_set *fdset;
} rb_fdset_t;
-void rb_fd_init(volatile rb_fdset_t *);
+void rb_fd_init(rb_fdset_t *);
void rb_fd_term(rb_fdset_t *);
void rb_fd_zero(rb_fdset_t *);
void rb_fd_set(int, rb_fdset_t *);
void rb_fd_clr(int, rb_fdset_t *);
int rb_fd_isset(int, const rb_fdset_t *);
void rb_fd_copy(rb_fdset_t *, const fd_set *, int);
+void rb_fd_dup(rb_fdset_t *dst, const rb_fdset_t *src);
int rb_fd_select(int, rb_fdset_t *, rb_fdset_t *, rb_fdset_t *, struct timeval *);
#define rb_fd_ptr(f) ((f)->fdset)
@@ -225,14 +264,18 @@ typedef struct {
fd_set *fdset;
} rb_fdset_t;
-void rb_fd_init(volatile rb_fdset_t *);
+void rb_fd_init(rb_fdset_t *);
void rb_fd_term(rb_fdset_t *);
#define rb_fd_zero(f) ((f)->fdset->fd_count = 0)
void rb_fd_set(int, rb_fdset_t *);
-#define rb_fd_clr(n, f) rb_w32_fdclr(n, (f)->fdset)
-#define rb_fd_isset(n, f) rb_w32_fdisset(n, (f)->fdset)
-#define rb_fd_select(n, rfds, wfds, efds, timeout) rb_w32_select(n, (rfds) ? ((rb_fdset_t*)rfds)->fdset : NULL, (wfds) ? ((rb_fdset_t*)wfds)->fdset : NULL, (efds) ? ((rb_fdset_t*)efds)->fdset: NULL, timeout)
-#define rb_fd_resize(n, f) (void)(f)
+#define rb_fd_clr(n, f) rb_w32_fdclr((n), (f)->fdset)
+#define rb_fd_isset(n, f) rb_w32_fdisset((n), (f)->fdset)
+#define rb_fd_copy(d, s, n) rb_w32_fd_copy((d), (s), (n))
+void rb_w32_fd_copy(rb_fdset_t *, const fd_set *, int);
+#define rb_fd_dup(d, s) rb_w32_fd_dup((d), (s))
+void rb_w32_fd_dup(rb_fdset_t *dst, const rb_fdset_t *src);
+#define rb_fd_select(n, rfds, wfds, efds, timeout) rb_w32_select((n), (rfds) ? ((rb_fdset_t*)(rfds))->fdset : NULL, (wfds) ? ((rb_fdset_t*)(wfds))->fdset : NULL, (efds) ? ((rb_fdset_t*)(efds))->fdset: NULL, (timeout))
+#define rb_fd_resize(n, f) ((void)(f))
#define rb_fd_ptr(f) ((f)->fdset)
#define rb_fd_max(f) ((f)->fdset->fd_count)
@@ -241,16 +284,18 @@ void rb_fd_set(int, rb_fdset_t *);
typedef fd_set rb_fdset_t;
#define rb_fd_zero(f) FD_ZERO(f)
-#define rb_fd_set(n, f) FD_SET(n, f)
-#define rb_fd_clr(n, f) FD_CLR(n, f)
-#define rb_fd_isset(n, f) FD_ISSET(n, f)
+#define rb_fd_set(n, f) FD_SET((n), (f))
+#define rb_fd_clr(n, f) FD_CLR((n), (f))
+#define rb_fd_isset(n, f) FD_ISSET((n), (f))
#define rb_fd_copy(d, s, n) (*(d) = *(s))
-#define rb_fd_resize(n, f) (void)(f)
+#define rb_fd_dup(d, s) (*(d) = *(s))
+#define rb_fd_resize(n, f) ((void)(f))
#define rb_fd_ptr(f) (f)
#define rb_fd_init(f) FD_ZERO(f)
-#define rb_fd_term(f) (void)(f)
+#define rb_fd_init_copy(d, s) (*(d) = *(s))
+#define rb_fd_term(f) ((void)(f))
#define rb_fd_max(f) FD_SETSIZE
-#define rb_fd_select(n, rfds, wfds, efds, timeout) select(n, rfds, wfds, efds, timeout)
+#define rb_fd_select(n, rfds, wfds, efds, timeout) select((n), (rfds), (wfds), (efds), (timeout))
#endif
@@ -259,6 +304,7 @@ NORETURN(void rb_exc_fatal(VALUE));
VALUE rb_f_exit(int,VALUE*);
VALUE rb_f_abort(int,VALUE*);
void rb_remove_method(VALUE, const char*);
+void rb_remove_method_id(VALUE, ID);
#define rb_disable_super(klass, name) ((void)0)
#define rb_enable_super(klass, name) ((void)0)
#define HAVE_RB_DEFINE_ALLOC_FUNC 1
@@ -275,7 +321,6 @@ int rb_method_basic_definition_p(VALUE, ID);
VALUE rb_eval_cmd(VALUE, VALUE, int);
int rb_obj_respond_to(VALUE, ID, int);
int rb_respond_to(VALUE, ID);
-void rb_define_notimplement_method_id(VALUE mod, ID id, int noex);
VALUE rb_f_notimplement(int argc, VALUE *argv, VALUE obj);
void rb_interrupt(void);
VALUE rb_apply(VALUE, ID, VALUE);
@@ -298,11 +343,14 @@ VALUE rb_class_new_instance(int, VALUE*, VALUE);
VALUE rb_block_proc(void);
VALUE rb_f_lambda(void);
VALUE rb_proc_new(VALUE (*)(ANYARGS/* VALUE yieldarg[, VALUE procarg] */), VALUE);
+VALUE rb_obj_is_proc(VALUE);
VALUE rb_proc_call(VALUE, VALUE);
VALUE rb_proc_call_with_block(VALUE, int argc, VALUE *argv, VALUE);
int rb_proc_arity(VALUE);
+VALUE rb_proc_lambda_p(VALUE);
VALUE rb_binding_new(void);
VALUE rb_obj_method(VALUE, VALUE);
+VALUE rb_obj_is_method(VALUE);
VALUE rb_method_call(int, VALUE*, VALUE);
int rb_mod_method_arity(VALUE, ID);
int rb_obj_method_arity(VALUE, ID);
@@ -310,11 +358,10 @@ VALUE rb_protect(VALUE (*)(VALUE), VALUE, int*);
void rb_set_end_proc(void (*)(VALUE), VALUE);
void rb_mark_end_proc(void);
void rb_exec_end_proc(void);
-void Init_jump(void);
void ruby_finalize(void);
NORETURN(void ruby_stop(int));
int ruby_cleanup(volatile int);
-void rb_gc_mark_threads(void);
+DEPRECATED(void rb_gc_mark_threads(void));
void rb_thread_schedule(void);
void rb_thread_wait_fd(int);
int rb_thread_fd_writable(int);
@@ -325,12 +372,11 @@ void rb_thread_sleep(int);
void rb_thread_sleep_forever(void);
VALUE rb_thread_stop(void);
VALUE rb_thread_wakeup(VALUE);
+VALUE rb_thread_wakeup_alive(VALUE);
VALUE rb_thread_run(VALUE);
VALUE rb_thread_kill(VALUE);
VALUE rb_thread_create(VALUE (*)(ANYARGS), void*);
-void rb_thread_signal_raise(void *, int);
-void rb_thread_signal_exit(void *);
-int rb_thread_select(int, fd_set *, fd_set *, fd_set *, struct timeval *);
+DEPRECATED(int rb_thread_select(int, fd_set *, fd_set *, fd_set *, struct timeval *));
int rb_thread_fd_select(int, rb_fdset_t *, rb_fdset_t *, rb_fdset_t *, struct timeval *);
void rb_thread_wait_for(struct timeval);
VALUE rb_thread_current(void);
@@ -340,12 +386,20 @@ VALUE rb_thread_local_aset(VALUE, ID, VALUE);
void rb_thread_atfork(void);
void rb_thread_atfork_before_exec(void);
VALUE rb_exec_recursive(VALUE(*)(VALUE, VALUE, int),VALUE,VALUE);
+VALUE rb_exec_recursive_paired(VALUE(*)(VALUE, VALUE, int),VALUE,VALUE,VALUE);
+VALUE rb_exec_recursive_outer(VALUE(*)(VALUE, VALUE, int),VALUE,VALUE);
+/* dir.c */
+VALUE rb_dir_getwd(void);
/* file.c */
VALUE rb_file_s_expand_path(int, VALUE *);
VALUE rb_file_expand_path(VALUE, VALUE);
VALUE rb_file_s_absolute_path(int, VALUE *);
VALUE rb_file_absolute_path(VALUE, VALUE);
+VALUE rb_file_dirname(VALUE fname);
void rb_file_const(const char*, VALUE);
+int rb_file_load_ok(const char *);
+int rb_find_file_ext_safe(VALUE*, const char* const*, int);
+VALUE rb_find_file_safe(VALUE, int);
int rb_find_file_ext(VALUE*, const char* const*);
VALUE rb_find_file(VALUE);
char *rb_path_next(const char *);
@@ -353,6 +407,10 @@ char *rb_path_skip_prefix(const char *);
char *rb_path_last_separator(const char *);
char *rb_path_end(const char *);
VALUE rb_file_directory_p(VALUE,VALUE);
+VALUE rb_str_encode_ospath(VALUE);
+int rb_is_absolute_path(const char *);
+const char *ruby_find_basename(const char *name, long *baselen, long *alllen);
+const char *ruby_find_extname(const char *name, long *len);
/* gc.c */
void ruby_set_stack_size(size_t);
NORETURN(void rb_memerror(void));
@@ -367,7 +425,6 @@ void rb_gc_mark_maybe(VALUE);
void rb_gc_mark(VALUE);
void rb_gc_force_recycle(VALUE);
void rb_gc(void);
-VALUE rb_gc_write_barrier(VALUE);
void rb_gc_copy_finalizer(VALUE,VALUE);
void rb_gc_finalize_deferred(void);
void rb_gc_call_finalizer_at_exit(void);
@@ -375,8 +432,10 @@ VALUE rb_gc_enable(void);
VALUE rb_gc_disable(void);
VALUE rb_gc_start(void);
#define Init_stack(addr) ruby_init_stack(addr)
+void rb_gc_set_params(void);
/* hash.c */
void st_foreach_safe(struct st_table *, int (*)(ANYARGS), st_data_t);
+VALUE rb_check_hash_type(VALUE);
void rb_hash_foreach(VALUE, int (*)(ANYARGS), VALUE);
VALUE rb_hash(VALUE);
VALUE rb_hash_new(void);
@@ -389,6 +448,8 @@ VALUE rb_hash_fetch(VALUE, VALUE);
VALUE rb_hash_aset(VALUE, VALUE, VALUE);
VALUE rb_hash_delete_if(VALUE);
VALUE rb_hash_delete(VALUE,VALUE);
+typedef VALUE rb_hash_update_func(VALUE newkey, VALUE oldkey, VALUE value);
+VALUE rb_hash_update_by(VALUE hash1, VALUE hash2, rb_hash_update_func *func);
struct st_table *rb_hash_tbl(VALUE);
int rb_path_check(const char*);
int rb_env_path_tainted(void);
@@ -423,6 +484,9 @@ void rb_write_error(const char*);
void rb_write_error2(const char*, long);
void rb_close_before_exec(int lowfd, int maxhint, VALUE noclose_fds);
int rb_pipe(int *pipes);
+int rb_reserved_fd_p(int fd);
+#define RB_RESERVED_FD_P(fd) rb_reserved_fd_p(fd)
+void rb_update_max_fd(int fd);
/* marshal.c */
VALUE rb_marshal_dump(VALUE, VALUE);
VALUE rb_marshal_load(VALUE);
@@ -450,15 +514,21 @@ VALUE rb_obj_init_copy(VALUE,VALUE);
VALUE rb_obj_taint(VALUE);
VALUE rb_obj_tainted(VALUE);
VALUE rb_obj_untaint(VALUE);
+VALUE rb_obj_untrust(VALUE);
+VALUE rb_obj_untrusted(VALUE);
+VALUE rb_obj_trust(VALUE);
VALUE rb_obj_freeze(VALUE);
VALUE rb_obj_frozen_p(VALUE);
VALUE rb_obj_id(VALUE);
VALUE rb_obj_class(VALUE);
VALUE rb_class_real(VALUE);
VALUE rb_class_inherited_p(VALUE, VALUE);
+VALUE rb_class_superclass(VALUE);
+VALUE rb_class_get_superclass(VALUE);
VALUE rb_convert_type(VALUE,int,const char*,const char*);
VALUE rb_check_convert_type(VALUE,int,const char*,const char*);
VALUE rb_check_to_integer(VALUE, const char *);
+VALUE rb_check_to_float(VALUE);
VALUE rb_to_int(VALUE);
VALUE rb_Integer(VALUE);
VALUE rb_to_float(VALUE);
@@ -516,10 +586,16 @@ VALUE rb_detach_process(rb_pid_t pid);
/* range.c */
VALUE rb_range_new(VALUE, VALUE, int);
VALUE rb_range_beg_len(VALUE, long*, long*, long, int);
+int rb_range_values(VALUE range, VALUE *begp, VALUE *endp, int *exclp);
/* random.c */
-unsigned long rb_genrand_int32(void);
+unsigned int rb_genrand_int32(void);
double rb_genrand_real(void);
void rb_reset_random_seed(void);
+VALUE rb_random_bytes(VALUE rnd, long n);
+VALUE rb_random_int(VALUE rnd, VALUE max);
+unsigned int rb_random_int32(VALUE rnd);
+double rb_random_real(VALUE rnd);
+unsigned long rb_genrand_ulong_limited(unsigned long i);
/* re.c */
#define rb_memcmp memcmp
int rb_memcicmp(const void*,const void*,long);
@@ -534,11 +610,11 @@ VALUE rb_reg_match_last(VALUE);
#define HAVE_RB_REG_NEW_STR 1
VALUE rb_reg_new_str(VALUE, int);
VALUE rb_reg_new(const char *, long, int);
+VALUE rb_reg_alloc(void);
+VALUE rb_reg_init_str(VALUE re, VALUE s, int options);
VALUE rb_reg_match(VALUE, VALUE);
VALUE rb_reg_match2(VALUE);
int rb_reg_options(VALUE);
-void rb_set_kcode(const char*);
-const char* rb_get_kcode(void);
/* ruby.c */
#define rb_argv rb_get_argv()
RUBY_EXTERN VALUE rb_argv0;
@@ -586,6 +662,8 @@ VALUE rb_external_str_new(const char*, long);
VALUE rb_external_str_new_cstr(const char*);
VALUE rb_locale_str_new(const char*, long);
VALUE rb_locale_str_new_cstr(const char*);
+VALUE rb_filesystem_str_new(const char*, long);
+VALUE rb_filesystem_str_new_cstr(const char*);
VALUE rb_str_buf_new(long);
VALUE rb_str_buf_new_cstr(const char*);
VALUE rb_str_buf_new2(const char*);
@@ -602,6 +680,7 @@ VALUE rb_str_buf_cat_ascii(VALUE, const char*);
VALUE rb_obj_as_string(VALUE);
VALUE rb_check_string_type(VALUE);
VALUE rb_str_dup(VALUE);
+VALUE rb_str_resurrect(VALUE str);
VALUE rb_str_locktmp(VALUE);
VALUE rb_str_unlocktmp(VALUE);
VALUE rb_str_dup_frozen(VALUE);
@@ -612,6 +691,7 @@ long rb_str_sublen(VALUE, long);
VALUE rb_str_substr(VALUE, long, long);
VALUE rb_str_subseq(VALUE, long, long);
void rb_str_modify(VALUE);
+void rb_str_modify_expand(VALUE, long);
VALUE rb_str_freeze(VALUE);
void rb_str_set_len(VALUE, long);
VALUE rb_str_resize(VALUE, long);
@@ -619,12 +699,15 @@ VALUE rb_str_cat(VALUE, const char*, long);
VALUE rb_str_cat2(VALUE, const char*);
VALUE rb_str_append(VALUE, VALUE);
VALUE rb_str_concat(VALUE, VALUE);
-int rb_memhash(const void *ptr, long len);
-VALUE rb_hash_start(VALUE);
-VALUE rb_hash_uint32(VALUE, unsigned int);
-VALUE rb_hash_uint(VALUE, VALUE);
-VALUE rb_hash_end(VALUE);
-int rb_str_hash(VALUE);
+st_index_t rb_memhash(const void *ptr, long len);
+st_index_t rb_hash_start(st_index_t);
+st_index_t rb_hash_uint32(st_index_t, uint32_t);
+st_index_t rb_hash_uint(st_index_t, st_index_t);
+st_index_t rb_hash_end(st_index_t);
+#define rb_hash_uint32(h, i) st_hash_uint32((h), (i))
+#define rb_hash_uint(h, i) st_hash_uint((h), (i))
+#define rb_hash_end(h) st_hash_end(h)
+st_index_t rb_str_hash(VALUE);
int rb_str_hash_cmp(VALUE,VALUE);
int rb_str_comparable(VALUE, VALUE);
int rb_str_cmp(VALUE, VALUE);
@@ -640,57 +723,66 @@ VALUE rb_str_associated(VALUE);
void rb_str_setter(VALUE, ID, VALUE*);
VALUE rb_str_intern(VALUE);
VALUE rb_sym_to_s(VALUE);
+long rb_str_strlen(VALUE);
VALUE rb_str_length(VALUE);
+long rb_str_offset(VALUE, long);
size_t rb_str_capacity(VALUE);
-#if defined __GNUC__
+VALUE rb_str_ellipsize(VALUE, long);
+#if defined(__GNUC__) && !defined(__PCC__)
#define rb_str_new_cstr(str) __extension__ ( \
{ \
(__builtin_constant_p(str)) ? \
- rb_str_new(str, strlen(str)) : \
+ rb_str_new((str), (long)strlen(str)) : \
rb_str_new_cstr(str); \
})
#define rb_tainted_str_new_cstr(str) __extension__ ( \
{ \
(__builtin_constant_p(str)) ? \
- rb_tainted_str_new(str, strlen(str)) : \
+ rb_tainted_str_new((str), (long)strlen(str)) : \
rb_tainted_str_new_cstr(str); \
})
#define rb_usascii_str_new_cstr(str) __extension__ ( \
{ \
(__builtin_constant_p(str)) ? \
- rb_usascii_str_new(str, strlen(str)) : \
+ rb_usascii_str_new((str), (long)strlen(str)) : \
rb_usascii_str_new_cstr(str); \
})
#define rb_external_str_new_cstr(str) __extension__ ( \
{ \
(__builtin_constant_p(str)) ? \
- rb_external_str_new(str, strlen(str)) : \
+ rb_external_str_new((str), (long)strlen(str)) : \
rb_external_str_new_cstr(str); \
})
#define rb_locale_str_new_cstr(str) __extension__ ( \
{ \
(__builtin_constant_p(str)) ? \
- rb_locale_str_new(str, strlen(str)) : \
+ rb_locale_str_new((str), (long)strlen(str)) : \
rb_locale_str_new_cstr(str); \
})
#define rb_str_buf_new_cstr(str) __extension__ ( \
{ \
(__builtin_constant_p(str)) ? \
- rb_str_buf_cat(rb_str_buf_new(strlen(str)), \
- str, strlen(str)) : \
+ rb_str_buf_cat(rb_str_buf_new((long)strlen(str)), \
+ (str), (long)strlen(str)) : \
rb_str_buf_new_cstr(str); \
})
#define rb_str_buf_cat2(str, ptr) __extension__ ( \
{ \
(__builtin_constant_p(ptr)) ? \
- rb_str_buf_cat(str, ptr, strlen(ptr)) : \
- rb_str_buf_cat2(str, ptr); \
+ rb_str_buf_cat((str), (ptr), (long)strlen(ptr)) : \
+ rb_str_buf_cat2((str), (ptr)); \
})
#define rb_str_cat2(str, ptr) __extension__ ( \
{ \
(__builtin_constant_p(ptr)) ? \
- rb_str_cat(str, ptr, strlen(ptr)) : \
- rb_str_cat2(str, ptr); \
+ rb_str_cat((str), (ptr), (long)strlen(ptr)) : \
+ rb_str_cat2((str), (ptr)); \
+})
+#define rb_exc_new2(klass, ptr) __extension__ ( \
+{ \
+ (__builtin_constant_p(ptr)) ? \
+ rb_exc_new((klass), (ptr), (long)strlen(ptr)) : \
+ rb_exc_new2((klass), (ptr)); \
})
#endif
#define rb_str_new2 rb_str_new_cstr
@@ -708,7 +800,7 @@ VALUE rb_struct_initialize(VALUE, VALUE);
VALUE rb_struct_aref(VALUE, VALUE);
VALUE rb_struct_aset(VALUE, VALUE, VALUE);
VALUE rb_struct_getmember(VALUE, ID);
-VALUE rb_struct_iv_get(VALUE, const char*);
+DEPRECATED(VALUE rb_struct_iv_get(VALUE, const char*));
VALUE rb_struct_s_members(VALUE);
VALUE rb_struct_members(VALUE);
VALUE rb_struct_alloc_noinit(VALUE);
@@ -724,7 +816,7 @@ VALUE rb_thread_blocking_region(rb_blocking_function_t *func, void *data1,
#define RUBY_UBF_PROCESS ((rb_unblock_function_t *)-1)
VALUE rb_mutex_new(void);
VALUE rb_mutex_locked_p(VALUE mutex);
-VALUE rb_mutex_try_lock(VALUE mutex);
+VALUE rb_mutex_trylock(VALUE mutex);
VALUE rb_mutex_lock(VALUE mutex);
VALUE rb_mutex_unlock(VALUE mutex);
VALUE rb_mutex_sleep(VALUE self, VALUE timeout);
@@ -736,10 +828,16 @@ VALUE rb_barrier_destroy(VALUE self);
/* time.c */
VALUE rb_time_new(time_t, long);
VALUE rb_time_nano_new(time_t, long);
+VALUE rb_time_num_new(VALUE, VALUE);
+struct timeval rb_time_interval(VALUE num);
+struct timeval rb_time_timeval(VALUE time);
+struct timespec rb_time_timespec(VALUE time);
/* variable.c */
VALUE rb_mod_name(VALUE);
VALUE rb_class_path(VALUE);
void rb_set_class_path(VALUE, VALUE, const char*);
+void rb_set_class_path_string(VALUE, VALUE, VALUE);
+VALUE rb_path_to_class(VALUE);
VALUE rb_path2class(const char*);
void rb_name_class(VALUE, ID);
VALUE rb_class_name(VALUE);
@@ -760,6 +858,7 @@ VALUE rb_ivar_get(VALUE, ID);
VALUE rb_ivar_set(VALUE, ID, VALUE);
VALUE rb_ivar_defined(VALUE, ID);
void rb_ivar_foreach(VALUE, int (*)(ANYARGS), st_data_t);
+st_index_t rb_ivar_count(VALUE);
VALUE rb_iv_set(VALUE, const char*, VALUE);
VALUE rb_iv_get(VALUE, const char*);
VALUE rb_attr_get(VALUE, ID);
@@ -777,6 +876,7 @@ VALUE rb_const_get(VALUE, ID);
VALUE rb_const_get_at(VALUE, ID);
VALUE rb_const_get_from(VALUE, ID);
void rb_const_set(VALUE, ID, VALUE);
+VALUE rb_const_remove(VALUE, ID);
VALUE rb_mod_const_missing(VALUE,VALUE);
VALUE rb_cvar_defined(VALUE, ID);
void rb_cvar_set(VALUE, ID, VALUE);
@@ -795,6 +895,12 @@ VALUE rb_str_succ(VALUE);
VALUE rb_time_succ(VALUE);
void rb_frame_pop(void);
int rb_frame_method_id_and_class(ID *idp, VALUE *klassp);
+VALUE rb_make_backtrace(void);
+VALUE rb_make_exception(int, VALUE*);
+
+#if defined __GNUC__ && __GNUC__ >= 4
+#pragma GCC visibility pop
+#endif
#if defined(__cplusplus)
#if 0
diff --git a/include/ruby/io.h b/include/ruby/io.h
index 64773549f5..cfdfaf1fb7 100644
--- a/include/ruby/io.h
+++ b/include/ruby/io.h
@@ -27,6 +27,29 @@ extern "C" {
#include <stdio_ext.h>
#endif
+#include "ruby/config.h"
+#if defined(HAVE_POLL)
+# include <poll.h>
+# define RB_WAITFD_IN POLLIN
+# define RB_WAITFD_PRI POLLPRI
+# define RB_WAITFD_OUT POLLOUT
+#else
+# define RB_WAITFD_IN 0x001
+# define RB_WAITFD_PRI 0x002
+# define RB_WAITFD_OUT 0x004
+#endif
+
+#if defined __GNUC__ && __GNUC__ >= 4
+#pragma GCC visibility push(default)
+#endif
+
+typedef struct {
+ char *ptr; /* off + len <= capa */
+ int off;
+ int len;
+ int capa;
+} rb_io_buffer_t;
+
typedef struct rb_io_t {
int fd; /* file descriptor */
FILE *stdio_file; /* stdio ptr for read/write if available */
@@ -36,15 +59,7 @@ typedef struct rb_io_t {
VALUE pathv; /* pathname for file */
void (*finalize)(struct rb_io_t*,int); /* finalize proc */
- char *wbuf; /* wbuf_off + wbuf_len <= wbuf_capa */
- int wbuf_off;
- int wbuf_len;
- int wbuf_capa;
-
- char *rbuf; /* rbuf_off + rbuf_len <= rbuf_capa */
- int rbuf_off;
- int rbuf_len;
- int rbuf_capa;
+ rb_io_buffer_t wbuf, rbuf;
VALUE tied_io_for_writing;
@@ -62,10 +77,7 @@ typedef struct rb_io_t {
} encs;
rb_econv_t *readconv;
- char *cbuf; /* cbuf_off + cbuf_len <= cbuf_capa */
- int cbuf_off;
- int cbuf_len;
- int cbuf_capa;
+ rb_io_buffer_t cbuf;
rb_econv_t *writeconv;
VALUE writeconv_asciicompat;
@@ -92,50 +104,53 @@ typedef struct rb_io_t {
#define FMODE_WSPLIT_INITIALIZED 0x00000400
#define FMODE_TRUNC 0x00000800
#define FMODE_TEXTMODE 0x00001000
-#define FMODE_EOF 0x00002000
/* #define FMODE_PREP 0x00010000 */
+#define FMODE_SETENC_BY_BOM 0x00100000
#define GetOpenFile(obj,fp) rb_io_check_closed((fp) = RFILE(rb_io_taint_check(obj))->fptr)
+#define RB_IO_BUFFER_INIT(buf) do {\
+ (buf).ptr = NULL;\
+ (buf).off = 0;\
+ (buf).len = 0;\
+ (buf).capa = 0;\
+} while (0)
+
#define MakeOpenFile(obj, fp) do {\
if (RFILE(obj)->fptr) {\
rb_io_close(obj);\
- free(RFILE(obj)->fptr);\
+ rb_io_fptr_finalize(RFILE(obj)->fptr);\
RFILE(obj)->fptr = 0;\
}\
- fp = 0;\
- fp = RFILE(obj)->fptr = ALLOC(rb_io_t);\
- fp->fd = -1;\
- fp->stdio_file = NULL;\
- fp->mode = 0;\
- fp->pid = 0;\
- fp->lineno = 0;\
- fp->pathv = Qnil;\
- fp->finalize = 0;\
- fp->wbuf = NULL;\
- fp->wbuf_off = 0;\
- fp->wbuf_len = 0;\
- fp->wbuf_capa = 0;\
- fp->rbuf = NULL;\
- fp->rbuf_off = 0;\
- fp->rbuf_len = 0;\
- fp->rbuf_capa = 0;\
- fp->readconv = NULL;\
- fp->cbuf = NULL;\
- fp->cbuf_off = 0;\
- fp->cbuf_len = 0;\
- fp->cbuf_capa = 0;\
- fp->writeconv = NULL;\
- fp->writeconv_asciicompat = Qnil;\
- fp->writeconv_pre_ecflags = 0;\
- fp->writeconv_pre_ecopts = Qnil;\
- fp->writeconv_initialized = 0;\
- fp->tied_io_for_writing = 0;\
- fp->encs.enc = NULL;\
- fp->encs.enc2 = NULL;\
- fp->encs.ecflags = 0;\
- fp->encs.ecopts = Qnil;\
- fp->write_lock = 0;\
+ (fp) = 0;\
+ RB_IO_FPTR_NEW(fp);\
+ RFILE(obj)->fptr = (fp);\
+} while (0)
+
+#define RB_IO_FPTR_NEW(fp) do {\
+ (fp) = ALLOC(rb_io_t);\
+ (fp)->fd = -1;\
+ (fp)->stdio_file = NULL;\
+ (fp)->mode = 0;\
+ (fp)->pid = 0;\
+ (fp)->lineno = 0;\
+ (fp)->pathv = Qnil;\
+ (fp)->finalize = 0;\
+ RB_IO_BUFFER_INIT((fp)->wbuf);\
+ RB_IO_BUFFER_INIT((fp)->rbuf);\
+ RB_IO_BUFFER_INIT((fp)->cbuf);\
+ (fp)->readconv = NULL;\
+ (fp)->writeconv = NULL;\
+ (fp)->writeconv_asciicompat = Qnil;\
+ (fp)->writeconv_pre_ecflags = 0;\
+ (fp)->writeconv_pre_ecopts = Qnil;\
+ (fp)->writeconv_initialized = 0;\
+ (fp)->tied_io_for_writing = 0;\
+ (fp)->encs.enc = NULL;\
+ (fp)->encs.enc2 = NULL;\
+ (fp)->encs.ecflags = 0;\
+ (fp)->encs.ecopts = Qnil;\
+ (fp)->write_lock = 0;\
} while (0)
FILE *rb_io_stdio_file(rb_io_t *fptr);
@@ -146,13 +161,21 @@ int rb_io_modestr_oflags(const char *modestr);
int rb_io_oflags_fmode(int oflags);
void rb_io_check_writable(rb_io_t*);
void rb_io_check_readable(rb_io_t*);
+void rb_io_check_char_readable(rb_io_t *fptr);
+void rb_io_check_byte_readable(rb_io_t *fptr);
int rb_io_fptr_finalize(rb_io_t*);
void rb_io_synchronized(rb_io_t*);
void rb_io_check_initialized(rb_io_t*);
void rb_io_check_closed(rb_io_t*);
+VALUE rb_io_get_io(VALUE io);
+VALUE rb_io_get_write_io(VALUE io);
+VALUE rb_io_set_write_io(VALUE io, VALUE w);
int rb_io_wait_readable(int);
int rb_io_wait_writable(int);
+int rb_wait_for_single_fd(int fd, int events, struct timeval *tv);
void rb_io_set_nonblock(rb_io_t *fptr);
+int rb_io_extract_encoding_option(VALUE opt, rb_encoding **enc_p, rb_encoding **enc2_p, int *fmode_p);
+ssize_t rb_io_bufwrite(VALUE io, const void *buf, size_t size);
/* compatibility for ruby 1.8 and older */
#define rb_io_mode_flags(modestr) rb_io_modestr_fmode(modestr)
@@ -163,7 +186,11 @@ NORETURN(void rb_eof_error(void));
void rb_io_read_check(rb_io_t*);
int rb_io_read_pending(rb_io_t*);
-void rb_read_check(FILE*);
+DEPRECATED(void rb_read_check(FILE*));
+
+#if defined __GNUC__ && __GNUC__ >= 4
+#pragma GCC visibility pop
+#endif
#if defined(__cplusplus)
#if 0
diff --git a/include/ruby/missing.h b/include/ruby/missing.h
index d553f1c738..bded5521d1 100644
--- a/include/ruby/missing.h
+++ b/include/ruby/missing.h
@@ -18,6 +18,12 @@ extern "C" {
#endif
#endif
+#include "ruby/config.h"
+#include <stddef.h>
+#ifdef RUBY_EXTCONF_H
+#include RUBY_EXTCONF_H
+#endif
+
#if defined(HAVE_SYS_TIME_H)
# include <sys/time.h>
#elif !defined(_WIN32)
@@ -38,10 +44,29 @@ struct timespec {
};
#endif
+#if !defined(HAVE_STRUCT_TIMEZONE)
+struct timezone {
+ int tz_minuteswest;
+ int tz_dsttime;
+};
+#endif
+
+#if defined(HAVE___SYSCALL) && defined(__APPLE__)
+/* Mac OS X has __syscall but doen't defined in headers */
+off_t __syscall(quad_t number, ...);
+#endif
+
+#ifdef RUBY_EXPORT
+#undef RUBY_EXTERN
+#endif
#ifndef RUBY_EXTERN
#define RUBY_EXTERN extern
#endif
+#if defined __GNUC__ && __GNUC__ >= 4
+#pragma GCC visibility push(default)
+#endif
+
#ifndef HAVE_ACOSH
RUBY_EXTERN double acosh(double);
RUBY_EXTERN double asinh(double);
@@ -60,6 +85,10 @@ RUBY_EXTERN int dup2(int, int);
RUBY_EXTERN int eaccess(const char*, int);
#endif
+#ifndef HAVE_ROUND
+RUBY_EXTERN double round(double); /* numeric.c */
+#endif
+
#ifndef HAVE_FINITE
RUBY_EXTERN int finite(double);
#endif
@@ -95,9 +124,28 @@ RUBY_EXTERN double lgamma_r(double, int *);
RUBY_EXTERN double cbrt(double);
#endif
+#ifdef INFINITY
+# define HAVE_INFINITY
+#else
+/** @internal */
+RUBY_EXTERN const unsigned char rb_infinity[];
+# define INFINITY (*(float *)rb_infinity)
+#endif
+
+#ifdef NAN
+# define HAVE_NAN
+#else
+/** @internal */
+RUBY_EXTERN const unsigned char rb_nan[];
+# define NAN (*(float *)rb_nan)
+#endif
+
#ifndef isinf
# ifndef HAVE_ISINF
# if defined(HAVE_FINITE) && defined(HAVE_ISNAN)
+# ifdef HAVE_IEEEFP_H
+# include <ieeefp.h>
+# endif
# define isinf(x) (!finite(x) && !isnan(x))
# else
RUBY_EXTERN int isinf(double);
@@ -105,8 +153,10 @@ RUBY_EXTERN int isinf(double);
# endif
#endif
-#ifndef HAVE_ISNAN
+#ifndef isnan
+# ifndef HAVE_ISNAN
RUBY_EXTERN int isnan(double);
+# endif
#endif
/*
@@ -144,22 +194,6 @@ RUBY_EXTERN long strtol(const char *, char **, int);
#endif
*/
-#if defined HAVE_VSNPRINTF || defined HAVE_SNPRINTF
-# include <stdarg.h>
-#endif
-#ifndef HAVE_SNPRINTF
-RUBY_EXTERN int snprintf(char *, size_t n, char const *, ...);
-#endif
-#ifndef HAVE_VSNPRINTF
-# if _MSC_VER >= 1300
-# pragma warning(disable: 4273)
-# endif
-RUBY_EXTERN int vsnprintf(char *, size_t n, char const *, va_list);
-# if _MSC_VER >= 1300
-# pragma warning(default: 4273)
-# endif
-#endif
-
#ifndef HAVE_STRLCPY
RUBY_EXTERN size_t strlcpy(char *, const char*, size_t);
#endif
@@ -168,6 +202,31 @@ RUBY_EXTERN size_t strlcpy(char *, const char*, size_t);
RUBY_EXTERN size_t strlcat(char *, const char*, size_t);
#endif
+#ifndef HAVE_SIGNBIT
+RUBY_EXTERN int signbit(double x);
+#endif
+
+#ifndef HAVE_FFS
+RUBY_EXTERN int ffs(int);
+#endif
+
+#ifdef BROKEN_CLOSE
+#include <sys/types.h>
+#include <sys/socket.h>
+RUBY_EXTERN int ruby_getpeername(int, struct sockaddr *, socklen_t *);
+RUBY_EXTERN int ruby_getsockname(int, struct sockaddr *, socklen_t *);
+RUBY_EXTERN int ruby_shutdown(int, int);
+RUBY_EXTERN int ruby_close(int);
+#endif
+
+#ifndef HAVE_SETPROCTITLE
+RUBY_EXTERN void setproctitle(const char *fmt, ...);
+#endif
+
+#if defined __GNUC__ && __GNUC__ >= 4
+#pragma GCC visibility pop
+#endif
+
#if defined(__cplusplus)
#if 0
{ /* satisfy cc-mode */
diff --git a/include/ruby/oniguruma.h b/include/ruby/oniguruma.h
index a8fa62208f..67773aa482 100644
--- a/include/ruby/oniguruma.h
+++ b/include/ruby/oniguruma.h
@@ -4,7 +4,7 @@
oniguruma.h - Oniguruma (regular expression library)
**********************************************************************/
/*-
- * Copyright (c) 2002-2007 K.Kosako <sndgk393 AT ybb DOT ne DOT jp>
+ * Copyright (c) 2002-2008 K.Kosako <sndgk393 AT ybb DOT ne DOT jp>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -39,7 +39,7 @@ extern "C" {
#define ONIGURUMA
#define ONIGURUMA_VERSION_MAJOR 5
#define ONIGURUMA_VERSION_MINOR 9
-#define ONIGURUMA_VERSION_TEENY 1
+#define ONIGURUMA_VERSION_TEENY 2
#ifdef __cplusplus
# ifndef HAVE_PROTOTYPES
@@ -97,6 +97,10 @@ extern "C" {
#define ONIG_EXTERN extern
#endif
+#if defined __GNUC__ && __GNUC__ >= 4
+#pragma GCC visibility push(default)
+#endif
+
/* PART: character encoding */
#ifndef ONIG_ESCAPE_UCHAR_COLLISION
@@ -106,7 +110,7 @@ extern "C" {
typedef unsigned char OnigUChar;
typedef unsigned int OnigCodePoint;
typedef unsigned int OnigCtype;
-typedef unsigned int OnigDistance;
+typedef size_t OnigDistance;
#define ONIG_INFINITE_DISTANCE ~((OnigDistance )0)
@@ -200,6 +204,14 @@ ONIG_EXTERN OnigEncodingType OnigEncodingASCII;
#define ONIGENC_CTYPE_ALNUM 13 /* alpha || digit */
#define ONIGENC_CTYPE_ASCII 14
#define ONIGENC_MAX_STD_CTYPE ONIGENC_CTYPE_ASCII
+#define ONIGENC_CTYPE_SPECIAL_MASK 256
+#define ONIGENC_CTYPE_S /* [\t\n\v\f\r\s] */ \
+ ONIGENC_CTYPE_SPECIAL_MASK | ONIGENC_CTYPE_SPACE
+#define ONIGENC_CTYPE_D /* [0-9] */ \
+ ONIGENC_CTYPE_SPECIAL_MASK | ONIGENC_CTYPE_DIGIT
+#define ONIGENC_CTYPE_W /* [0-9A-Za-z_] */ \
+ ONIGENC_CTYPE_SPECIAL_MASK | ONIGENC_CTYPE_WORD
+#define ONIGENC_CTYPE_SPECIAL_P(ctype) ((ctype) & ONIGENC_CTYPE_SPECIAL_MASK)
#define onig_enc_len(enc,p,e) ONIGENC_MBC_ENC_LEN(enc, p, e)
@@ -466,6 +478,7 @@ ONIG_EXTERN const OnigSyntaxType* OnigDefaultSyntax;
/* syntax (behavior) warning */
#define ONIG_SYN_WARN_CC_OP_NOT_ESCAPED (1U<<24) /* [,-,] */
#define ONIG_SYN_WARN_REDUNDANT_NESTED_REPEAT (1U<<25) /* (?:a*)+ */
+#define ONIG_SYN_WARN_CC_DUP (1U<<26) /* [aa] */
/* meta character specifiers (onig_set_meta_char()) */
#define ONIG_META_CHAR_ESCAPE 0
@@ -684,17 +697,23 @@ void onig_set_verb_warn_func P_((OnigWarnFunc f));
ONIG_EXTERN
int onig_new P_((OnigRegex*, const OnigUChar* pattern, const OnigUChar* pattern_end, OnigOptionType option, OnigEncoding enc, const OnigSyntaxType* syntax, OnigErrorInfo* einfo));
ONIG_EXTERN
+int onig_reg_init P_((regex_t* reg, OnigOptionType option, OnigCaseFoldType case_fold_flag, OnigEncoding enc, const OnigSyntaxType* syntax));
+ONIG_EXTERN
+int onig_new_without_alloc P_((OnigRegex, const OnigUChar* pattern, const OnigUChar* pattern_end, OnigOptionType option, OnigEncoding enc, OnigSyntaxType* syntax, OnigErrorInfo* einfo));
+ONIG_EXTERN
int onig_new_deluxe P_((OnigRegex* reg, const OnigUChar* pattern, const OnigUChar* pattern_end, OnigCompileInfo* ci, OnigErrorInfo* einfo));
ONIG_EXTERN
void onig_free P_((OnigRegex));
ONIG_EXTERN
+void onig_free_body P_((OnigRegex));
+ONIG_EXTERN
int onig_recompile P_((OnigRegex, const OnigUChar* pattern, const OnigUChar* pattern_end, OnigOptionType option, OnigEncoding enc, OnigSyntaxType* syntax, OnigErrorInfo* einfo));
ONIG_EXTERN
int onig_recompile_deluxe P_((OnigRegex reg, const OnigUChar* pattern, const OnigUChar* pattern_end, OnigCompileInfo* ci, OnigErrorInfo* einfo));
ONIG_EXTERN
-int onig_search P_((OnigRegex, const OnigUChar* str, const OnigUChar* end, const OnigUChar* start, const OnigUChar* range, OnigRegion* region, OnigOptionType option));
+long onig_search P_((OnigRegex, const OnigUChar* str, const OnigUChar* end, const OnigUChar* start, const OnigUChar* range, OnigRegion* region, OnigOptionType option));
ONIG_EXTERN
-int onig_match P_((OnigRegex, const OnigUChar* str, const OnigUChar* end, const OnigUChar* at, OnigRegion* region, OnigOptionType option));
+long onig_match P_((OnigRegex, const OnigUChar* str, const OnigUChar* end, const OnigUChar* at, OnigRegion* region, OnigOptionType option));
ONIG_EXTERN
OnigRegion* onig_region_new P_((void));
ONIG_EXTERN
@@ -774,6 +793,10 @@ const char* onig_version P_((void));
ONIG_EXTERN
const char* onig_copyright P_((void));
+#if defined __GNUC__ && __GNUC__ >= 4
+#pragma GCC visibility pop
+#endif
+
#ifdef __cplusplus
#if 0
{ /* satisfy cc-mode */
diff --git a/include/ruby/re.h b/include/ruby/re.h
index cc7f6025a7..4039ba1800 100644
--- a/include/ruby/re.h
+++ b/include/ruby/re.h
@@ -24,11 +24,15 @@ extern "C" {
#include "ruby/regex.h"
+#if defined __GNUC__ && __GNUC__ >= 4
+#pragma GCC visibility push(default)
+#endif
+
typedef struct re_pattern_buffer Regexp;
struct rmatch_offset {
- int beg;
- int end;
+ long beg;
+ long end;
};
struct rmatch {
@@ -50,11 +54,16 @@ struct RMatch {
#define RMATCH_REGS(obj) (&(R_CAST(RMatch)(obj))->rmatch->regs)
VALUE rb_reg_regcomp(VALUE);
-int rb_reg_search(VALUE, VALUE, int, int);
+long rb_reg_search(VALUE, VALUE, long, int);
VALUE rb_reg_regsub(VALUE, VALUE, struct re_registers *, VALUE);
-int rb_reg_adjust_startpos(VALUE, VALUE, int, int);
+long rb_reg_adjust_startpos(VALUE, VALUE, long, int);
void rb_match_busy(VALUE);
VALUE rb_reg_quote(VALUE);
+regex_t *rb_reg_prepare_re(VALUE re, VALUE str);
+
+#if defined __GNUC__ && __GNUC__ >= 4
+#pragma GCC visibility pop
+#endif
#if defined(__cplusplus)
#if 0
diff --git a/include/ruby/regex.h b/include/ruby/regex.h
index a63e2f6a4c..aeb6418d0a 100644
--- a/include/ruby/regex.h
+++ b/include/ruby/regex.h
@@ -24,6 +24,10 @@ extern "C" {
#include "oniguruma.h"
#endif
+#if defined __GNUC__ && __GNUC__ >= 4
+#pragma GCC visibility push(default)
+#endif
+
#ifndef ONIG_RUBY_M17N
ONIG_EXTERN OnigEncoding OnigEncDefaultCharEncoding;
@@ -32,6 +36,10 @@ ONIG_EXTERN OnigEncoding OnigEncDefaultCharEncoding;
#endif /* ifndef ONIG_RUBY_M17N */
+#if defined __GNUC__ && __GNUC__ >= 4
+#pragma GCC visibility pop
+#endif
+
#if defined(__cplusplus)
#if 0
{ /* satisfy cc-mode */
diff --git a/include/ruby/ruby.h b/include/ruby/ruby.h
index a277bb2e9a..2f97b33bc4 100644
--- a/include/ruby/ruby.h
+++ b/include/ruby/ruby.h
@@ -21,12 +21,10 @@ extern "C" {
#endif
#endif
-#ifndef RUBY_LIB
#include "ruby/config.h"
#ifdef RUBY_EXTCONF_H
#include RUBY_EXTCONF_H
#endif
-#endif
#define NORETURN_STYLE_NEW 1
#ifndef NORETURN
@@ -46,10 +44,6 @@ extern "C" {
#define PRINTF_ARGS(decl, string_index, first_to_check) decl
#endif
-#ifdef HAVE_STDLIB_H
-# include <stdlib.h>
-#endif
-
#ifdef HAVE_STRING_H
# include <string.h>
#else
@@ -67,11 +61,15 @@ extern "C" {
# include <inttypes.h>
#endif
-#include <stddef.h>
+#include <stdarg.h>
#include <stdio.h>
#include "defines.h"
+#if defined __GNUC__ && __GNUC__ >= 4
+#pragma GCC visibility push(default)
+#endif
+
#if defined(HAVE_ALLOCA_H)
#include <alloca.h>
#else
@@ -98,7 +96,7 @@ typedef unsigned LONG_LONG ID;
# define SIGNED_VALUE LONG_LONG
# define LONG_LONG_VALUE 1
# define SIZEOF_VALUE SIZEOF_LONG_LONG
-# define PRI_VALUE_PREFIX "ll"
+# define PRI_VALUE_PREFIX PRI_LL_PREFIX
#else
# error ---->> ruby requires sizeof(void*) == sizeof(long) to be compiled. <<----
#endif
@@ -110,6 +108,13 @@ typedef char ruby_check_sizeof_long_long[SIZEOF_LONG_LONG == sizeof(LONG_LONG) ?
#endif
typedef char ruby_check_sizeof_voidp[SIZEOF_VOIDP == sizeof(void*) ? 1 : -1];
+#ifndef PRI_INT_PREFIX
+#define PRI_INT_PREFIX ""
+#endif
+#ifndef PRI_LONG_PREFIX
+#define PRI_LONG_PREFIX "l"
+#endif
+
#if defined PRIdPTR && !defined PRI_VALUE_PREFIX
#define PRIdVALUE PRIdPTR
#define PRIiVALUE PRIiPTR
@@ -129,14 +134,23 @@ typedef char ruby_check_sizeof_voidp[SIZEOF_VOIDP == sizeof(void*) ? 1 : -1];
# define PRI_VALUE_PREFIX ""
#endif
-#if defined PRIdPTR
-# define PRI_PTRDIFF_PREFIX "t"
+#ifndef PRI_TIMET_PREFIX
+# if SIZEOF_TIME_T == SIZEOF_INT
+# define PRI_TIMET_PREFIX
+# elif SIZEOF_TIME_T == SIZEOF_LONG
+# define PRI_TIMET_PREFIX "l"
+# elif SIZEOF_TIME_T == SIZEOF_LONG_LONG
+# define PRI_TIMET_PREFIX PRI_LL_PREFIX
+# endif
+#endif
+
+#if defined PRI_PTRDIFF_PREFIX
#elif SIZEOF_PTRDIFF_T == SIZEOF_INT
-# define PRI_PTRDIFF_PREFIX
+# define PRI_PTRDIFF_PREFIX ""
#elif SIZEOF_PTRDIFF_T == SIZEOF_LONG
# define PRI_PTRDIFF_PREFIX "l"
#elif SIZEOF_PTRDIFF_T == SIZEOF_LONG_LONG
-# define PRI_PTRDIFF_PREFIX "ll"
+# define PRI_PTRDIFF_PREFIX PRI_LL_PREFIX
#endif
#define PRIdPTRDIFF PRI_PTRDIFF_PREFIX"d"
#define PRIiPTRDIFF PRI_PTRDIFF_PREFIX"i"
@@ -145,14 +159,13 @@ typedef char ruby_check_sizeof_voidp[SIZEOF_VOIDP == sizeof(void*) ? 1 : -1];
#define PRIxPTRDIFF PRI_PTRDIFF_PREFIX"x"
#define PRIXPTRDIFF PRI_PTRDIFF_PREFIX"X"
-#if defined PRIdPTR
-# define PRI_SIZE_PREFIX "z"
+#if defined PRI_SIZE_PREFIX
#elif SIZEOF_SIZE_T == SIZEOF_INT
-# define PRI_SIZE_PREFIX
+# define PRI_SIZE_PREFIX ""
#elif SIZEOF_SIZE_T == SIZEOF_LONG
# define PRI_SIZE_PREFIX "l"
#elif SIZEOF_SIZE_T == SIZEOF_LONG_LONG
-# define PRI_SIZE_PREFIX "ll"
+# define PRI_SIZE_PREFIX PRI_LL_PREFIX
#endif
#define PRIdSIZE PRI_SIZE_PREFIX"d"
#define PRIiSIZE PRI_SIZE_PREFIX"i"
@@ -245,6 +258,22 @@ VALUE rb_ull2inum(unsigned LONG_LONG);
# define SSIZET2NUM(v) INT2NUM(v)
#endif
+#ifndef SIZE_MAX
+# if SIZEOF_SIZE_T > SIZEOF_LONG && defined(HAVE_LONG_LONG)
+# define SIZE_MAX ULLONG_MAX
+# define SIZE_MIN ULLONG_MIN
+# elif SIZEOF_SIZE_T == SIZEOF_LONG
+# define SIZE_MAX ULONG_MAX
+# define SIZE_MIN ULONG_MIN
+# elif SIZEOF_SIZE_T == SIZEOF_INT
+# define SIZE_MAX UINT_MAX
+# define SIZE_MIN UINT_MIN
+# else
+# define SIZE_MAX USHRT_MAX
+# define SIZE_MIN USHRT_MIN
+# endif
+#endif
+
#ifndef SSIZE_MAX
# if SIZEOF_SIZE_T > SIZEOF_LONG && defined(HAVE_LONG_LONG)
# define SSIZE_MAX LLONG_MAX
@@ -261,6 +290,24 @@ VALUE rb_ull2inum(unsigned LONG_LONG);
# endif
#endif
+#if SIZEOF_INT < SIZEOF_VALUE
+NORETURN(void rb_out_of_int(SIGNED_VALUE num));
+#endif
+
+#if SIZEOF_INT < SIZEOF_LONG
+#define rb_long2int_internal(n, i) \
+ int (i) = (int)(n); \
+ if ((long)(i) != (n)) rb_out_of_int(n)
+#ifdef __GNUC__
+#define rb_long2int(n) __extension__ ({long i2l_n = (n); rb_long2int_internal(i2l_n, i2l_i); i2l_i;})
+#else
+static inline int
+rb_long2int(long n) {rb_long2int_internal(n, i); return i;}
+#endif
+#else
+#define rb_long2int(n) ((int)(n))
+#endif
+
#ifndef PIDT2NUM
#define PIDT2NUM(v) LONG2NUM(v)
#endif
@@ -279,10 +326,16 @@ VALUE rb_ull2inum(unsigned LONG_LONG);
#ifndef NUM2GIDT
#define NUM2GIDT(v) NUM2LONG(v)
#endif
+#ifndef NUM2MODET
+#define NUM2MODET(v) NUM2INT(v)
+#endif
+#ifndef MODET2NUM
+#define MODET2NUM(v) INT2NUM(v)
+#endif
-#define FIX2LONG(x) RSHIFT((SIGNED_VALUE)x,1)
+#define FIX2LONG(x) (long)RSHIFT((SIGNED_VALUE)(x),1)
#define FIX2ULONG(x) ((((VALUE)(x))>>1)&LONG_MAX)
-#define FIXNUM_P(f) (((SIGNED_VALUE)(f))&FIXNUM_FLAG)
+#define FIXNUM_P(f) (((int)(SIGNED_VALUE)(f))&FIXNUM_FLAG)
#define POSFIXABLE(f) ((f) < FIXNUM_MAX+1)
#define NEGFIXABLE(f) ((f) >= FIXNUM_MIN)
#define FIXABLE(f) (POSFIXABLE(f) && NEGFIXABLE(f))
@@ -291,7 +344,7 @@ VALUE rb_ull2inum(unsigned LONG_LONG);
#define SYMBOL_P(x) (((VALUE)(x)&~(~(VALUE)0<<RUBY_SPECIAL_SHIFT))==SYMBOL_FLAG)
#define ID2SYM(x) (((VALUE)(x)<<RUBY_SPECIAL_SHIFT)|SYMBOL_FLAG)
-#define SYM2ID(x) RSHIFT((unsigned long)x,RUBY_SPECIAL_SHIFT)
+#define SYM2ID(x) RSHIFT((unsigned long)(x),RUBY_SPECIAL_SHIFT)
/* Module#methods, #singleton_methods and so on return Symbols */
#define USE_SYMBOL_AS_METHOD_NAME 1
@@ -384,12 +437,26 @@ enum ruby_value_type {
#define BUILTIN_TYPE(x) (int)(((struct RBasic*)(x))->flags & T_MASK)
+static inline int rb_type(VALUE obj);
#define TYPE(x) rb_type((VALUE)(x))
-#define RB_GC_GUARD(v) (*(volatile VALUE *)&(v))
+#ifdef __GNUC__
+#define RB_GC_GUARD_PTR(ptr) \
+ __extension__ ({volatile VALUE *rb_gc_guarded_ptr = (ptr); rb_gc_guarded_ptr;})
+#else
+#ifdef _MSC_VER
+#pragma optimize("", off)
+#endif
+static inline volatile VALUE *rb_gc_guarded_ptr(volatile VALUE *ptr) {return ptr;}
+#ifdef _MSC_VER
+#pragma optimize("", on)
+#endif
+#define RB_GC_GUARD_PTR(ptr) rb_gc_guarded_ptr(ptr)
+#endif
+#define RB_GC_GUARD(v) (*RB_GC_GUARD_PTR(&(v)))
void rb_check_type(VALUE,int);
-#define Check_Type(v,t) rb_check_type((VALUE)(v),t)
+#define Check_Type(v,t) rb_check_type((VALUE)(v),(t))
VALUE rb_str_to_str(VALUE);
VALUE rb_string_value(volatile VALUE*);
@@ -401,7 +468,7 @@ char *rb_string_value_cstr(volatile VALUE*);
#define StringValueCStr(v) rb_string_value_cstr(&(v))
void rb_check_safe_obj(VALUE);
-void rb_check_safe_str(VALUE);
+DEPRECATED(void rb_check_safe_str(VALUE));
#define SafeStringValue(v) do {\
StringValue(v);\
rb_check_safe_obj(v);\
@@ -417,7 +484,7 @@ VALUE rb_str_export(VALUE);
VALUE rb_str_export_locale(VALUE);
VALUE rb_get_path(VALUE);
-#define FilePathValue(v) ((v) = rb_get_path(v))
+#define FilePathValue(v) (RB_GC_GUARD(v) = rb_get_path(v))
VALUE rb_get_path_no_checksafe(VALUE);
#define FilePathStringValue(v) ((v) = rb_get_path_no_checksafe(v))
@@ -427,27 +494,40 @@ int rb_safe_level(void);
void rb_set_safe_level(int);
void rb_set_safe_level_force(int);
void rb_secure_update(VALUE);
+NORETURN(void rb_insecure_operation(void));
VALUE rb_errinfo(void);
void rb_set_errinfo(VALUE);
SIGNED_VALUE rb_num2long(VALUE);
VALUE rb_num2ulong(VALUE);
+#define NUM2LONG_internal(x) ((long)(FIXNUM_P(x) ? FIX2LONG(x) : rb_num2long(x)))
+#ifdef __GNUC__
+#define NUM2LONG(x) \
+ __extension__ ({VALUE num2long_x = (x); NUM2LONG_internal(num2long_x);})
+#else
static inline long
NUM2LONG(VALUE x)
{
- return FIXNUM_P(x) ? FIX2LONG(x) : rb_num2long(x);
+ return NUM2LONG_internal(x);
}
-#define NUM2ULONG(x) rb_num2ulong((VALUE)x)
+#endif
+#define NUM2ULONG(x) rb_num2ulong((VALUE)(x))
#if SIZEOF_INT < SIZEOF_LONG
long rb_num2int(VALUE);
long rb_fix2int(VALUE);
-#define FIX2INT(x) ((int)rb_fix2int((VALUE)x))
+#define FIX2INT(x) ((int)rb_fix2int((VALUE)(x)))
+#define NUM2INT_internal(x) (FIXNUM_P(x) ? FIX2INT(x) : (int)rb_num2int(x))
+#ifdef __GNUC__
+#define NUM2INT(x) \
+ __extension__ ({VALUE num2int_x = (x); NUM2INT_internal(num2int_x);})
+#else
static inline int
NUM2INT(VALUE x)
{
- return FIXNUM_P(x) ? FIX2INT(x) : (int)rb_num2int(x);
+ return NUM2INT_internal(x);
}
+#endif
unsigned long rb_num2uint(VALUE);
#define NUM2UINT(x) ((unsigned int)rb_num2uint(x))
unsigned long rb_fix2uint(VALUE);
@@ -462,12 +542,18 @@ unsigned long rb_fix2uint(VALUE);
#ifdef HAVE_LONG_LONG
LONG_LONG rb_num2ll(VALUE);
unsigned LONG_LONG rb_num2ull(VALUE);
+# define NUM2LL_internal(x) (FIXNUM_P(x) ? FIX2LONG(x) : rb_num2ll(x))
+# ifdef __GNUC__
+# define NUM2LL(x) \
+ __extension__ ({VALUE num2ll_x = (x); NUM2LL_internal(num2ll_x);})
+# else
static inline LONG_LONG
NUM2LL(VALUE x)
{
- return FIXNUM_P(x) ? FIX2LONG(x) : rb_num2ll(x);
+ return NUM2LL_internal(x);
}
-# define NUM2ULL(x) rb_num2ull((VALUE)x)
+# endif
+# define NUM2ULL(x) rb_num2ull((VALUE)(x))
#endif
#if defined(HAVE_LONG_LONG) && SIZEOF_OFF_T > SIZEOF_LONG
@@ -490,60 +576,21 @@ double rb_num2dbl(VALUE);
VALUE rb_uint2big(VALUE);
VALUE rb_int2big(SIGNED_VALUE);
-#if SIZEOF_INT < SIZEOF_VALUE
-# define INT2NUM(v) INT2FIX((int)(v))
-# define UINT2NUM(v) LONG2FIX((unsigned int)(v))
-#else
-static inline VALUE
-INT2NUM(int v)
-{
- if (!FIXABLE(v))
- return rb_int2big(v);
- return INT2FIX(v);
-}
-
-static inline VALUE
-UINT2NUM(unsigned int v)
-{
- if (!POSFIXABLE(v))
- return rb_uint2big(v);
- return LONG2FIX(v);
-}
-#endif
-
-static inline VALUE
-LONG2NUM(long v)
-{
- if (FIXABLE(v)) return LONG2FIX(v);
- return rb_int2big(v);
-}
-
-static inline VALUE
-ULONG2NUM(unsigned long v)
-{
- if (POSFIXABLE(v)) return LONG2FIX(v);
- return rb_uint2big(v);
-}
-
-#define NUM2CHR(x) (((TYPE(x) == T_STRING)&&(RSTRING_LEN(x)>=1))?\
- RSTRING_PTR(x)[0]:(char)(NUM2INT(x)&0xff))
-#define CHR2FIX(x) INT2FIX((long)((x)&0xff))
-
VALUE rb_newobj(void);
-#define NEWOBJ(obj,type) type *obj = (type*)rb_newobj()
+#define NEWOBJ(obj,type) type *(obj) = (type*)rb_newobj()
#define OBJSETUP(obj,c,t) do {\
RBASIC(obj)->flags = (t);\
RBASIC(obj)->klass = (c);\
- if (rb_safe_level() >= 3) FL_SET(obj, FL_TAINT | FL_UNTRUSTED);\
+ if (rb_safe_level() >= 3) FL_SET((obj), FL_TAINT | FL_UNTRUSTED);\
} while (0)
#define CLONESETUP(clone,obj) do {\
- OBJSETUP(clone,rb_singleton_class_clone((VALUE)obj),RBASIC(obj)->flags);\
- rb_singleton_class_attached(RBASIC(clone)->klass, (VALUE)clone);\
- if (FL_TEST(obj, FL_EXIVAR)) rb_copy_generic_ivar((VALUE)clone,(VALUE)obj);\
+ OBJSETUP((clone),rb_singleton_class_clone((VALUE)(obj)),RBASIC(obj)->flags);\
+ rb_singleton_class_attached(RBASIC(clone)->klass, (VALUE)(clone));\
+ if (FL_TEST((obj), FL_EXIVAR)) rb_copy_generic_ivar((VALUE)(clone),(VALUE)(obj));\
} while (0)
#define DUPSETUP(dup,obj) do {\
- OBJSETUP(dup,rb_obj_class(obj), (RBASIC(obj)->flags)&(T_MASK|FL_EXIVAR|FL_TAINT|FL_UNTRUSTED)); \
- if (FL_TEST(obj, FL_EXIVAR)) rb_copy_generic_ivar((VALUE)dup,(VALUE)obj);\
+ OBJSETUP((dup),rb_obj_class(obj), (RBASIC(obj)->flags)&(T_MASK|FL_EXIVAR|FL_TAINT|FL_UNTRUSTED)); \
+ if (FL_TEST((obj), FL_EXIVAR)) rb_copy_generic_ivar((VALUE)(dup),(VALUE)(obj));\
} while (0)
struct RBasic {
@@ -577,10 +624,8 @@ struct RObject {
RCLASS_IV_INDEX_TBL(rb_obj_class(o)) : \
ROBJECT(o)->as.heap.iv_index_tbl)
-typedef struct {
- VALUE super;
- struct st_table *iv_tbl;
-} rb_classext_t;
+/** @internal */
+typedef struct rb_classext_struct rb_classext_t;
struct RClass {
struct RBasic basic;
@@ -588,11 +633,9 @@ struct RClass {
struct st_table *m_tbl;
struct st_table *iv_index_tbl;
};
-#define RCLASS_IV_TBL(c) (RCLASS(c)->ptr->iv_tbl)
-#define RCLASS_M_TBL(c) (RCLASS(c)->m_tbl)
-#define RCLASS_SUPER(c) (RCLASS(c)->ptr->super)
-#define RCLASS_IV_INDEX_TBL(c) (RCLASS(c)->iv_index_tbl)
+#define RCLASS_SUPER(c) rb_class_get_superclass(c)
#define RMODULE_IV_TBL(m) RCLASS_IV_TBL(m)
+#define RMODULE_CONST_TBL(m) RCLASS_CONST_TBL(m)
#define RMODULE_M_TBL(m) RCLASS_M_TBL(m)
#define RMODULE_SUPER(m) RCLASS_SUPER(m)
@@ -623,16 +666,26 @@ struct RString {
#define RSTRING_NOEMBED FL_USER1
#define RSTRING_EMBED_LEN_MASK (FL_USER2|FL_USER3|FL_USER4|FL_USER5|FL_USER6)
#define RSTRING_EMBED_LEN_SHIFT (FL_USHIFT+2)
+#define RSTRING_EMBED_LEN(str) \
+ (long)((RBASIC(str)->flags >> RSTRING_EMBED_LEN_SHIFT) & \
+ (RSTRING_EMBED_LEN_MASK >> RSTRING_EMBED_LEN_SHIFT))
#define RSTRING_LEN(str) \
(!(RBASIC(str)->flags & RSTRING_NOEMBED) ? \
- (long)((RBASIC(str)->flags >> RSTRING_EMBED_LEN_SHIFT) & \
- (RSTRING_EMBED_LEN_MASK >> RSTRING_EMBED_LEN_SHIFT)) : \
+ RSTRING_EMBED_LEN(str) : \
RSTRING(str)->as.heap.len)
#define RSTRING_PTR(str) \
(!(RBASIC(str)->flags & RSTRING_NOEMBED) ? \
RSTRING(str)->as.ary : \
RSTRING(str)->as.heap.ptr)
-#define RSTRING_END(str) (RSTRING_PTR(str)+RSTRING_LEN(str))
+#define RSTRING_END(str) \
+ (!(RBASIC(str)->flags & RSTRING_NOEMBED) ? \
+ (RSTRING(str)->as.ary + RSTRING_EMBED_LEN(str)) : \
+ (RSTRING(str)->as.heap.ptr + RSTRING(str)->as.heap.len))
+#define RSTRING_LENINT(str) rb_long2int(RSTRING_LEN(str))
+#define RSTRING_GETMEM(str, ptrvar, lenvar) \
+ (!(RBASIC(str)->flags & RSTRING_NOEMBED) ? \
+ ((ptrvar) = RSTRING(str)->as.ary, (lenvar) = RSTRING_EMBED_LEN(str)) : \
+ ((ptrvar) = RSTRING(str)->as.heap.ptr, (lenvar) = RSTRING(str)->as.heap.len))
#define RARRAY_EMBED_LEN_MAX 3
struct RArray {
@@ -662,6 +715,7 @@ struct RArray {
((RBASIC(a)->flags & RARRAY_EMBED_FLAG) ? \
RARRAY(a)->as.ary : \
RARRAY(a)->as.heap.ptr)
+#define RARRAY_LENINT(ary) rb_long2int(RARRAY_LEN(ary))
struct RRegexp {
struct RBasic basic;
@@ -672,6 +726,7 @@ struct RRegexp {
#define RREGEXP_SRC(r) RREGEXP(r)->src
#define RREGEXP_SRC_PTR(r) RSTRING_PTR(RREGEXP(r)->src)
#define RREGEXP_SRC_LEN(r) RSTRING_LEN(RREGEXP(r)->src)
+#define RREGEXP_SRC_END(r) RSTRING_END(RREGEXP(r)->src)
struct RHash {
struct RBasic basic;
@@ -710,27 +765,80 @@ struct RData {
void *data;
};
+typedef struct rb_data_type_struct rb_data_type_t;
+
+struct rb_data_type_struct {
+ const char *wrap_struct_name;
+ struct {
+ void (*dmark)(void*);
+ void (*dfree)(void*);
+ size_t (*dsize)(const void *);
+ void *reserved[2]; /* For future extension.
+ This array *must* be filled with ZERO. */
+ } function;
+ const rb_data_type_t *parent;
+ void *data; /* This area can be used for any purpose
+ by a programmer who define the type. */
+};
+
+#define HAVE_TYPE_RB_DATA_TYPE_T 1
+#define HAVE_RB_DATA_TYPE_T_FUNCTION 1
+#define HAVE_RB_DATA_TYPE_T_PARENT 1
+
+struct RTypedData {
+ struct RBasic basic;
+ const rb_data_type_t *type;
+ VALUE typed_flag; /* 1 or not */
+ void *data;
+};
+
#define DATA_PTR(dta) (RDATA(dta)->data)
+#define RTYPEDDATA_P(v) (RTYPEDDATA(v)->typed_flag == 1)
+#define RTYPEDDATA_TYPE(v) (RTYPEDDATA(v)->type)
+#define RTYPEDDATA_DATA(v) (RTYPEDDATA(v)->data)
+
/*
-#define RUBY_DATA_FUNC(func) ((void (*)(void*))func)
+#define RUBY_DATA_FUNC(func) ((void (*)(void*))(func))
*/
typedef void (*RUBY_DATA_FUNC)(void*);
VALUE rb_data_object_alloc(VALUE,void*,RUBY_DATA_FUNC,RUBY_DATA_FUNC);
+VALUE rb_data_typed_object_alloc(VALUE klass, void *datap, const rb_data_type_t *);
+int rb_typeddata_inherited_p(const rb_data_type_t *child, const rb_data_type_t *parent);
+int rb_typeddata_is_kind_of(VALUE, const rb_data_type_t *);
+void *rb_check_typeddata(VALUE, const rb_data_type_t *);
+#define Check_TypedStruct(v,t) rb_check_typeddata((VALUE)(v),(t))
+#define RUBY_DEFAULT_FREE ((RUBY_DATA_FUNC)-1)
+#define RUBY_NEVER_FREE ((RUBY_DATA_FUNC)0)
+#define RUBY_TYPED_DEFAULT_FREE RUBY_DEFAULT_FREE
+#define RUBY_TYPED_NEVER_FREE RUBY_NEVER_FREE
#define Data_Wrap_Struct(klass,mark,free,sval)\
- rb_data_object_alloc(klass,sval,(RUBY_DATA_FUNC)mark,(RUBY_DATA_FUNC)free)
+ rb_data_object_alloc((klass),(sval),(RUBY_DATA_FUNC)(mark),(RUBY_DATA_FUNC)(free))
#define Data_Make_Struct(klass,type,mark,free,sval) (\
- sval = ALLOC(type),\
- memset(sval, 0, sizeof(type)),\
- Data_Wrap_Struct(klass,mark,free,sval)\
+ (sval) = ALLOC(type),\
+ memset((sval), 0, sizeof(type)),\
+ Data_Wrap_Struct((klass),(mark),(free),(sval))\
+)
+
+#define TypedData_Wrap_Struct(klass,data_type,sval)\
+ rb_data_typed_object_alloc((klass),(sval),(data_type))
+
+#define TypedData_Make_Struct(klass, type, data_type, sval) (\
+ (sval) = ALLOC(type),\
+ memset((sval), 0, sizeof(type)),\
+ TypedData_Wrap_Struct((klass),(data_type),(sval))\
)
#define Data_Get_Struct(obj,type,sval) do {\
- Check_Type(obj, T_DATA); \
- sval = (type*)DATA_PTR(obj);\
+ Check_Type((obj), T_DATA); \
+ (sval) = (type*)DATA_PTR(obj);\
+} while (0)
+
+#define TypedData_Get_Struct(obj,type,data_type,sval) do {\
+ (sval) = (type*)rb_check_typeddata((obj), (data_type)); \
} while (0)
#define RSTRUCT_EMBED_LEN_MAX 3
@@ -755,6 +863,7 @@ struct RStruct {
((RBASIC(st)->flags & RSTRUCT_EMBED_LEN_MASK) ? \
RSTRUCT(st)->as.ary : \
RSTRUCT(st)->as.heap.ptr)
+#define RSTRUCT_LENINT(st) rb_long2int(RSTRUCT_LEN(st))
#define RBIGNUM_EMBED_LEN_MAX ((int)((sizeof(VALUE)*3)/sizeof(BDIGIT)))
struct RBignum {
@@ -789,6 +898,7 @@ struct RBignum {
((RBASIC(b)->flags & RBIGNUM_EMBED_FLAG) ? \
RBIGNUM(b)->as.ary : \
RBIGNUM(b)->as.heap.digits)
+#define RBIGNUM_LENINT(b) rb_long2int(RBIGNUM_LEN(b))
#define R_CAST(st) (struct st*)
#define RBASIC(obj) (R_CAST(RBasic)(obj))
@@ -801,6 +911,7 @@ struct RBignum {
#define RARRAY(obj) (R_CAST(RArray)(obj))
#define RHASH(obj) (R_CAST(RHash)(obj))
#define RDATA(obj) (R_CAST(RData)(obj))
+#define RTYPEDDATA(obj) (R_CAST(RTypedData)(obj))
#define RSTRUCT(obj) (R_CAST(RStruct)(obj))
#define RBIGNUM(obj) (R_CAST(RBignum)(obj))
#define RFILE(obj) (R_CAST(RFile)(obj))
@@ -809,7 +920,7 @@ struct RBignum {
#define FL_SINGLETON FL_USER0
#define FL_MARK (((VALUE)1)<<5)
-#define FL_REMEMBERED_SET (((VALUE)1)<<6)
+#define FL_RESERVED (((VALUE)1)<<6) /* will be used in the future GC */
#define FL_FINALIZE (((VALUE)1)<<7)
#define FL_TAINT (((VALUE)1)<<8)
#define FL_UNTRUSTED (((VALUE)1)<<9)
@@ -843,8 +954,8 @@ struct RBignum {
#define FL_ABLE(x) (!SPECIAL_CONST_P(x) && BUILTIN_TYPE(x) != T_NODE)
#define FL_TEST(x,f) (FL_ABLE(x)?(RBASIC(x)->flags&(f)):0)
-#define FL_ANY(x,f) FL_TEST(x,f)
-#define FL_ALL(x,f) (FL_TEST(x,f) == (f))
+#define FL_ANY(x,f) FL_TEST((x),(f))
+#define FL_ALL(x,f) (FL_TEST((x),(f)) == (f))
#define FL_SET(x,f) do {if (FL_ABLE(x)) RBASIC(x)->flags |= (f);} while (0)
#define FL_UNSET(x,f) do {if (FL_ABLE(x)) RBASIC(x)->flags &= ~(f);} while (0)
#define FL_REVERSE(x,f) do {if (FL_ABLE(x)) RBASIC(x)->flags ^= (f);} while (0)
@@ -858,11 +969,85 @@ struct RBignum {
#define OBJ_FROZEN(x) (!!FL_TEST((x), FL_FREEZE))
#define OBJ_FREEZE(x) FL_SET((x), FL_FREEZE)
-#define ALLOC_N(type,n) (type*)xmalloc2((n),sizeof(type))
-#define ALLOC(type) (type*)xmalloc(sizeof(type))
-#define REALLOC_N(var,type,n) (var)=(type*)xrealloc2((char*)(var),(n),sizeof(type))
+#if SIZEOF_INT < SIZEOF_LONG
+# define INT2NUM(v) INT2FIX((int)(v))
+# define UINT2NUM(v) LONG2FIX((unsigned int)(v))
+#else
+# define INT2NUM_internal(v) (FIXABLE(v) ? INT2FIX(v) : rb_int2big(v))
+# ifdef __GNUC__
+# define INT2NUM(v) __extension__ ({int int2num_v = (v); INT2NUM_internal(int2num_v);})
+# else
+static inline VALUE
+INT2NUM(int v)
+{
+ return INT2NUM_internal(v);
+}
+# endif
+
+# define UINT2NUM_internal(v) (POSFIXABLE(v) ? LONG2FIX(v) : rb_uint2big(v))
+# ifdef __GNUC__
+# define UINT2NUM(v) __extension__ ({unsigned int uint2num_v = (v); UINT2NUM_internal(uint2num_v);})
+# else
+static inline VALUE
+UINT2NUM(unsigned int v)
+{
+ return UINT2NUM_internal(v);
+}
+# endif
+#endif
-#define ALLOCA_N(type,n) (type*)alloca(sizeof(type)*(n))
+#define LONG2NUM_internal(v) (FIXABLE(v) ? LONG2FIX(v) : rb_int2big(v))
+#ifdef __GNUC__
+# define LONG2NUM(v) __extension__ ({long long2num_v = (v); LONG2NUM_internal(long2num_v);})
+#else
+static inline VALUE
+LONG2NUM(long v)
+{
+ return LONG2NUM_internal(v);
+}
+#endif
+
+#define ULONG2NUM_internal(v) (POSFIXABLE(v) ? LONG2FIX(v) : rb_uint2big(v))
+#ifdef __GNUC__
+# define ULONG2NUM(v) __extension__ ({unsigned long ulong2num_v = (v); ULONG2NUM_internal(ulong2num_v);})
+#else
+static inline VALUE
+ULONG2NUM(unsigned long v)
+{
+ return ULONG2NUM_internal(v);
+}
+#endif
+
+#define NUM2CHR_internal(x) (((TYPE(x) == T_STRING)&&(RSTRING_LEN(x)>=1))?\
+ RSTRING_PTR(x)[0]:(char)(NUM2INT(x)&0xff))
+#ifdef __GNUC__
+# define NUM2CHR(x) __extension__ ({VALUE num2chr_x = (x); NUM2CHR_internal(num2chr_x);})
+#else
+static inline char
+NUM2CHR(VALUE x)
+{
+ return NUM2CHR_internal(x);
+}
+#endif
+#define CHR2FIX(x) INT2FIX((long)((x)&0xff))
+
+#define ALLOC_N(type,n) ((type*)xmalloc2((n),sizeof(type)))
+#define ALLOC(type) ((type*)xmalloc(sizeof(type)))
+#define REALLOC_N(var,type,n) ((var)=(type*)xrealloc2((char*)(var),(n),sizeof(type)))
+
+#define ALLOCA_N(type,n) ((type*)alloca(sizeof(type)*(n)))
+
+void *rb_alloc_tmp_buffer(volatile VALUE *store, long len);
+void rb_free_tmp_buffer(volatile VALUE *store);
+/* allocates _n_ bytes temporary buffer and stores VALUE including it
+ * in _v_. _n_ may be evaluated twice. */
+#ifdef C_ALLOCA
+# define ALLOCV(v, n) rb_alloc_tmp_buffer(&(v), (n))
+#else
+# define ALLOCV(v, n) ((n) < 1024 ? (RB_GC_GUARD(v) = 0, alloca(n)) : rb_alloc_tmp_buffer(&(v), (n)))
+#endif
+#define ALLOCV_N(type, v, n) ((type*)ALLOCV((v), sizeof(type)*(n)))
+#define ALLOCV_END(v) rb_free_tmp_buffer(&(v))
#define MEMZERO(p,type,n) memset((p), 0, sizeof(type)*(n))
#define MEMCPY(p1,p2,type,n) memcpy((p1), (p2), sizeof(type)*(n))
@@ -911,7 +1096,7 @@ void rb_define_readonly_variable(const char*,VALUE*);
void rb_define_const(VALUE,const char*,VALUE);
void rb_define_global_const(const char*,VALUE);
-#define RUBY_METHOD_FUNC(func) ((VALUE (*)(ANYARGS))func)
+#define RUBY_METHOD_FUNC(func) ((VALUE (*)(ANYARGS))(func))
void rb_define_method(VALUE,const char*,VALUE(*)(ANYARGS),int);
void rb_define_module_function(VALUE,const char*,VALUE(*)(ANYARGS),int);
void rb_define_global_function(const char*,VALUE(*)(ANYARGS),int);
@@ -936,24 +1121,24 @@ VALUE rb_id2str(ID);
{ \
static ID rb_intern_id_cache; \
if (!rb_intern_id_cache) \
- rb_intern_id_cache = rb_intern2(str, strlen(str)); \
+ rb_intern_id_cache = rb_intern2((str), (long)strlen(str)); \
result rb_intern_id_cache; \
}
#define CONST_ID(var, str) \
- do CONST_ID_CACHE(var =, str) while (0)
+ do CONST_ID_CACHE((var) =, (str)) while (0)
#ifdef __GNUC__
/* __builtin_constant_p and statement expression is available
* since gcc-2.7.2.3 at least. */
#define rb_intern(str) \
(__builtin_constant_p(str) ? \
- __extension__ (CONST_ID_CACHE(/**/, str)) : \
+ __extension__ (CONST_ID_CACHE((ID), (str))) : \
rb_intern(str))
#define rb_intern_const(str) \
(__builtin_constant_p(str) ? \
- __extension__ (rb_intern2(str, strlen(str))) : \
+ __extension__ (rb_intern2((str), (long)strlen(str))) : \
(rb_intern)(str))
#else
-#define rb_intern_const(str) rb_intern2(str, strlen(str))
+#define rb_intern_const(str) rb_intern2((str), (long)strlen(str))
#endif
const char *rb_class2name(VALUE);
@@ -967,6 +1152,7 @@ VALUE rb_eval_string_wrap(const char*, int*);
VALUE rb_funcall(VALUE, ID, int, ...);
VALUE rb_funcall2(VALUE, ID, int, const VALUE*);
VALUE rb_funcall3(VALUE, ID, int, const VALUE*);
+VALUE rb_funcall_passing_block(VALUE, ID, int, const VALUE*);
int rb_scan_args(int, const VALUE*, const char*, ...);
VALUE rb_call_super(int, const VALUE*);
@@ -985,13 +1171,22 @@ VALUE *rb_ruby_debug_ptr(void);
PRINTF_ARGS(NORETURN(void rb_raise(VALUE, const char*, ...)), 2, 3);
PRINTF_ARGS(NORETURN(void rb_fatal(const char*, ...)), 1, 2);
PRINTF_ARGS(NORETURN(void rb_bug(const char*, ...)), 1, 2);
+NORETURN(void rb_bug_errno(const char*, int));
NORETURN(void rb_sys_fail(const char*));
+NORETURN(void rb_sys_fail_str(VALUE));
NORETURN(void rb_mod_sys_fail(VALUE, const char*));
+NORETURN(void rb_mod_sys_fail_str(VALUE, VALUE));
NORETURN(void rb_iter_break(void));
NORETURN(void rb_exit(int));
NORETURN(void rb_notimplement(void));
-
-/* reports if `-w' specified */
+VALUE rb_syserr_new(int, const char *);
+VALUE rb_syserr_new_str(int n, VALUE arg);
+NORETURN(void rb_syserr_fail(int, const char*));
+NORETURN(void rb_syserr_fail_str(int, VALUE));
+NORETURN(void rb_mod_syserr_fail(VALUE, int, const char*));
+NORETURN(void rb_mod_syserr_fail_str(VALUE, int, VALUE));
+
+/* reports if `-W' specified */
PRINTF_ARGS(void rb_warning(const char*, ...), 1, 2);
PRINTF_ARGS(void rb_compile_warning(const char *, int, const char*, ...), 3, 4);
PRINTF_ARGS(void rb_sys_warning(const char*, ...), 1, 2);
@@ -1022,7 +1217,7 @@ VALUE rb_require(const char*);
#ifdef __ia64
void ruby_init_stack(volatile VALUE*, void*);
-#define ruby_init_stack(addr) ruby_init_stack(addr, rb_ia64_bsp())
+#define ruby_init_stack(addr) ruby_init_stack((addr), rb_ia64_bsp())
#else
void ruby_init_stack(volatile VALUE*);
#endif
@@ -1032,6 +1227,8 @@ void ruby_init_stack(volatile VALUE*);
void ruby_init(void);
void *ruby_options(int, char**);
int ruby_run_node(void *);
+int ruby_exec_node(void *);
+int ruby_executable_node(void *n, int *status);
RUBY_EXTERN VALUE rb_mKernel;
RUBY_EXTERN VALUE rb_mComparable;
@@ -1069,6 +1266,7 @@ RUBY_EXTERN VALUE rb_cNameErrorMesg;
RUBY_EXTERN VALUE rb_cNilClass;
RUBY_EXTERN VALUE rb_cNumeric;
RUBY_EXTERN VALUE rb_cProc;
+RUBY_EXTERN VALUE rb_cRandom;
RUBY_EXTERN VALUE rb_cRange;
RUBY_EXTERN VALUE rb_cRational;
RUBY_EXTERN VALUE rb_cComplex;
@@ -1116,6 +1314,8 @@ RUBY_EXTERN VALUE rb_eNameError;
RUBY_EXTERN VALUE rb_eSyntaxError;
RUBY_EXTERN VALUE rb_eLoadError;
+RUBY_EXTERN VALUE rb_eMathDomainError;
+
RUBY_EXTERN VALUE rb_stdin, rb_stdout, rb_stderr;
static inline VALUE
@@ -1149,12 +1349,34 @@ rb_type(VALUE obj)
return BUILTIN_TYPE(obj);
}
+#define RB_TYPE_P(obj, type) ( \
+ ((type) == T_FIXNUM) ? FIXNUM_P(obj) : \
+ ((type) == T_TRUE) ? ((obj) == Qtrue) : \
+ ((type) == T_FALSE) ? ((obj) == Qfalse) : \
+ ((type) == T_NIL) ? ((obj) == Qnil) : \
+ ((type) == T_UNDEF) ? ((obj) == Qundef) : \
+ ((type) == T_SYMBOL) ? SYMBOL_P(obj) : \
+ (!SPECIAL_CONST_P(obj) && BUILTIN_TYPE(obj) == (type)))
+
+#ifdef __GNUC__
+#define rb_type_p(obj, type) \
+ __extension__ (__builtin_constant_p(type) ? RB_TYPE_P((obj), (type)) : \
+ rb_type(obj) == (type))
+#else
+#define rb_type_p(obj, type) (rb_type(obj) == (type))
+#endif
+
+#ifdef __GNUC__
+#define rb_special_const_p(obj) \
+ __extension__ ({VALUE special_const_obj = (obj); (int)(SPECIAL_CONST_P(special_const_obj) ? Qtrue : Qfalse);})
+#else
static inline int
rb_special_const_p(VALUE obj)
{
if (SPECIAL_CONST_P(obj)) return (int)Qtrue;
return (int)Qfalse;
}
+#endif
#include "ruby/missing.h"
#include "ruby/intern.h"
@@ -1165,8 +1387,7 @@ static char *dln_libs_to_be_linked[] = { EXTLIB, 0 };
#endif
#if (defined(__APPLE__) || defined(__NeXT__)) && defined(__MACH__)
-/* to link startup code with ObjC support */
-#define RUBY_GLOBAL_SETUP static void objcdummyfunction(void) {objc_msgSend();}
+#define RUBY_GLOBAL_SETUP /* use linker option to link startup code with ObjC support */
#else
#define RUBY_GLOBAL_SETUP
#endif
@@ -1201,6 +1422,7 @@ typedef struct rb_event_hook_struct {
struct rb_event_hook_struct *next;
} rb_event_hook_t;
+#define RB_EVENT_HOOKS_HAVE_CALLBACK_DATA 1
void rb_add_event_hook(rb_event_hook_func_t func, rb_event_flag_t events,
VALUE data);
int rb_remove_event_hook(rb_event_hook_func_t func);
@@ -1240,11 +1462,24 @@ int rb_toupper(int c);
int st_strcasecmp(const char *s1, const char *s2);
int st_strncasecmp(const char *s1, const char *s2, size_t n);
-#define STRCASECMP(s1, s2) (st_strcasecmp(s1, s2))
-#define STRNCASECMP(s1, s2, n) (st_strncasecmp(s1, s2, n))
+#define STRCASECMP(s1, s2) (st_strcasecmp((s1), (s2)))
+#define STRNCASECMP(s1, s2, n) (st_strncasecmp((s1), (s2), (n)))
unsigned long ruby_strtoul(const char *str, char **endptr, int base);
-#define STRTOUL(str, endptr, base) (ruby_strtoul(str, endptr, base))
+#define STRTOUL(str, endptr, base) (ruby_strtoul((str), (endptr), (base)))
+
+#define InitVM(ext) {void InitVM_##ext(void);InitVM_##ext();}
+
+PRINTF_ARGS(int ruby_snprintf(char *str, size_t n, char const *fmt, ...), 3, 4);
+int ruby_vsnprintf(char *str, size_t n, char const *fmt, va_list ap);
+
+#if defined __GNUC__ && __GNUC__ >= 4
+#pragma GCC visibility pop
+#endif
+
+#ifndef RUBY_DONT_SUBST
+#include "ruby/subst.h"
+#endif
#if defined(__cplusplus)
#if 0
diff --git a/include/ruby/st.h b/include/ruby/st.h
index 73216ba45c..50f2a75328 100644
--- a/include/ruby/st.h
+++ b/include/ruby/st.h
@@ -12,13 +12,7 @@ extern "C" {
#endif
#endif
-#ifndef RUBY_LIB
-#include "ruby/config.h"
#include "ruby/defines.h"
-#ifdef RUBY_EXTCONF_H
-#include RUBY_EXTCONF_H
-#endif
-#endif
#if defined STDC_HEADERS
#include <stddef.h>
@@ -26,6 +20,17 @@ extern "C" {
#include <stdlib.h>
#endif
+#ifdef HAVE_STDINT_H
+# include <stdint.h>
+#endif
+#ifdef HAVE_INTTYPES_H
+# include <inttypes.h>
+#endif
+
+#if defined __GNUC__ && __GNUC__ >= 4
+#pragma GCC visibility push(default)
+#endif
+
#if SIZEOF_LONG == SIZEOF_VOIDP
typedef unsigned long st_data_t;
#elif SIZEOF_LONG_LONG == SIZEOF_VOIDP
@@ -55,15 +60,18 @@ typedef unsigned LONG_LONG st_data_t;
typedef struct st_table st_table;
+typedef st_data_t st_index_t;
typedef int st_compare_func(st_data_t, st_data_t);
-typedef int st_hash_func(st_data_t);
+typedef st_index_t st_hash_func(st_data_t);
+
+typedef char st_check_for_sizeof_st_index_t[SIZEOF_VOIDP == (int)sizeof(st_index_t) ? 1 : -1];
+#define SIZEOF_ST_INDEX_T SIZEOF_VOIDP
struct st_hash_type {
int (*compare)(ANYARGS /*st_data_t, st_data_t*/); /* st_compare_func* */
- int (*hash)(ANYARGS /*st_data_t*/); /* st_hash_func* */
+ st_index_t (*hash)(ANYARGS /*st_data_t*/); /* st_hash_func* */
};
-typedef st_data_t st_index_t;
#define ST_INDEX_BITS (sizeof(st_index_t) * CHAR_BIT)
struct st_table {
@@ -71,6 +79,15 @@ struct st_table {
st_index_t num_bins;
unsigned int entries_packed : 1;
#ifdef __GNUC__
+ /*
+ * C spec says,
+ * A bit-field shall have a type that is a qualified or unqualified
+ * version of _Bool, signed int, unsigned int, or some other
+ * implementation-defined type. It is implementation-defined whether
+ * atomic types are permitted.
+ * In short, long and long long bit-field are implementation-defined
+ * feature. Therefore we want to supress a warning explicitly.
+ */
__extension__
#endif
st_index_t num_entries : ST_INDEX_BITS - 1;
@@ -78,21 +95,22 @@ struct st_table {
struct st_table_entry *head, *tail;
};
-#define st_is_member(table,key) st_lookup(table,key,(st_data_t *)0)
+#define st_is_member(table,key) st_lookup((table),(key),(st_data_t *)0)
enum st_retval {ST_CONTINUE, ST_STOP, ST_DELETE, ST_CHECK};
st_table *st_init_table(const struct st_hash_type *);
-st_table *st_init_table_with_size(const struct st_hash_type *, int);
+st_table *st_init_table_with_size(const struct st_hash_type *, st_index_t);
st_table *st_init_numtable(void);
-st_table *st_init_numtable_with_size(int);
+st_table *st_init_numtable_with_size(st_index_t);
st_table *st_init_strtable(void);
-st_table *st_init_strtable_with_size(int);
+st_table *st_init_strtable_with_size(st_index_t);
st_table *st_init_strcasetable(void);
-st_table *st_init_strcasetable_with_size(int);
+st_table *st_init_strcasetable_with_size(st_index_t);
int st_delete(st_table *, st_data_t *, st_data_t *); /* returns 0:notfound 1:deleted */
int st_delete_safe(st_table *, st_data_t *, st_data_t *, st_data_t);
int st_insert(st_table *, st_data_t, st_data_t);
+int st_insert2(st_table *, st_data_t, st_data_t, st_data_t (*)(st_data_t));
int st_lookup(st_table *, st_data_t, st_data_t *);
int st_get_key(st_table *, st_data_t, st_data_t *);
int st_foreach(st_table *, int (*)(ANYARGS), st_data_t);
@@ -103,9 +121,20 @@ void st_cleanup_safe(st_table *, st_data_t);
void st_clear(st_table *);
st_table *st_copy(st_table *);
int st_numcmp(st_data_t, st_data_t);
-int st_numhash(st_data_t);
+st_index_t st_numhash(st_data_t);
int st_strcasecmp(const char *s1, const char *s2);
int st_strncasecmp(const char *s1, const char *s2, size_t n);
+size_t st_memsize(const st_table *);
+st_index_t st_hash(const void *ptr, size_t len, st_index_t h);
+st_index_t st_hash_uint32(st_index_t h, uint32_t i);
+st_index_t st_hash_uint(st_index_t h, st_index_t i);
+st_index_t st_hash_end(st_index_t h);
+st_index_t st_hash_start(st_index_t h);
+#define st_hash_start(h) ((st_index_t)(h))
+
+#if defined __GNUC__ && __GNUC__ >= 4
+#pragma GCC visibility pop
+#endif
#if defined(__cplusplus)
#if 0
diff --git a/include/ruby/subst.h b/include/ruby/subst.h
new file mode 100644
index 0000000000..6c01b25900
--- /dev/null
+++ b/include/ruby/subst.h
@@ -0,0 +1,20 @@
+#ifndef RUBY_SUBST_H
+#define RUBY_SUBST_H 1
+
+#undef snprintf
+#undef vsnprintf
+#define snprintf ruby_snprintf
+#define vsnprintf ruby_vsnprintf
+
+#ifdef BROKEN_CLOSE
+#undef getpeername
+#define getpeername ruby_getpeername
+#undef getsockname
+#define getsockname ruby_getsockname
+#undef shutdown
+#define shutdown ruby_shutdown
+#undef close
+#define close ruby_close
+#endif
+
+#endif
diff --git a/include/ruby/util.h b/include/ruby/util.h
index febd87d3e5..40f044d3cb 100644
--- a/include/ruby/util.h
+++ b/include/ruby/util.h
@@ -19,6 +19,11 @@ extern "C" {
#endif
#endif
+#include "ruby/defines.h"
+#ifdef RUBY_EXTCONF_H
+#include RUBY_EXTCONF_H
+#endif
+
#ifndef _
#ifdef __cplusplus
# ifndef HAVE_PROTOTYPES
@@ -40,9 +45,13 @@ extern "C" {
#endif
#endif
-#define scan_oct ruby_scan_oct
+#if defined __GNUC__ && __GNUC__ >= 4
+#pragma GCC visibility push(default)
+#endif
+
+#define scan_oct(s,l,e) ((int)ruby_scan_oct((s),(l),(e)))
unsigned long ruby_scan_oct(const char *, size_t, size_t *);
-#define scan_hex ruby_scan_hex
+#define scan_hex(s,l,e) ((int)ruby_scan_hex((s),(l),(e)))
unsigned long ruby_scan_hex(const char *, size_t, size_t *);
#if defined(__CYGWIN32__) || defined(_WIN32)
@@ -56,7 +65,7 @@ void ruby_setenv(const char *, const char *);
void ruby_unsetenv(const char *);
#undef setenv
#undef unsetenv
-#define setenv(name,val) ruby_setenv(name,val)
+#define setenv(name,val) ruby_setenv((name),(val))
#define unsetenv(name,val) ruby_unsetenv(name);
char *ruby_strdup(const char *);
@@ -68,10 +77,22 @@ char *ruby_getcwd(void);
double ruby_strtod(const char *, char **);
#undef strtod
-#define strtod(s,e) ruby_strtod(s,e)
+#define strtod(s,e) ruby_strtod((s),(e))
+
+#if defined _MSC_VER && _MSC_VER >= 1300
+#pragma warning(push)
+#pragma warning(disable:4723)
+#endif
+#if defined _MSC_VER && _MSC_VER >= 1300
+#pragma warning(pop)
+#endif
void ruby_each_words(const char *, void (*)(const char*, int, void*), void *);
+#if defined __GNUC__ && __GNUC__ >= 4
+#pragma GCC visibility pop
+#endif
+
#if defined(__cplusplus)
#if 0
{ /* satisfy cc-mode */
diff --git a/include/ruby/version.h b/include/ruby/version.h
index 32b09b3f52..458efff320 100644
--- a/include/ruby/version.h
+++ b/include/ruby/version.h
@@ -29,6 +29,12 @@
#define RUBY_BIRTH_MONTH 2
#define RUBY_BIRTH_DAY 24
+/* API version */
+#define RUBY_API_VERSION_MAJOR 1
+#define RUBY_API_VERSION_MINOR 9
+#define RUBY_API_VERSION_TEENY 1
+#define RUBY_API_VERSION_CODE (RUBY_API_VERSION_MAJOR*10000+RUBY_API_VERSION_MINOR*100+RUBY_API_VERSION_TEENY)
+
#ifdef RUBY_EXTERN
#if defined(__cplusplus)
extern "C" {
@@ -36,6 +42,11 @@ extern "C" {
} /* satisfy cc-mode */
#endif
#endif
+
+#if defined __GNUC__ && __GNUC__ >= 4
+#pragma GCC visibility push(default)
+#endif
+
/*
* Interfaces from extension libraries.
*
@@ -43,6 +54,7 @@ extern "C" {
* necessary or not, and if the answer was yes, think twice a week
* later again.
*/
+RUBY_EXTERN const int ruby_api_version[3];
RUBY_EXTERN const char ruby_version[];
RUBY_EXTERN const char ruby_release_date[];
RUBY_EXTERN const char ruby_platform[];
@@ -50,6 +62,11 @@ RUBY_EXTERN const int ruby_patchlevel;
RUBY_EXTERN const char ruby_description[];
RUBY_EXTERN const char ruby_copyright[];
RUBY_EXTERN const char ruby_engine[];
+
+#if defined __GNUC__ && __GNUC__ >= 4
+#pragma GCC visibility pop
+#endif
+
#if defined(__cplusplus)
#if 0
{ /* satisfy cc-mode */
diff --git a/include/ruby/vm.h b/include/ruby/vm.h
index 6843469735..1146bf5426 100644
--- a/include/ruby/vm.h
+++ b/include/ruby/vm.h
@@ -12,6 +12,17 @@
#ifndef RUBY_VM_H
#define RUBY_VM_H 1
+#if defined(__cplusplus)
+extern "C" {
+#if 0
+} /* satisfy cc-mode */
+#endif
+#endif
+
+#if defined __GNUC__ && __GNUC__ >= 4
+#pragma GCC visibility push(default)
+#endif
+
/* Place holder.
*
* We will prepare VM creation/control APIs on 1.9.2 or later.
@@ -19,4 +30,39 @@
* http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/branches/mvm/
*/
+/* VM type declaration */
+typedef struct rb_vm_struct ruby_vm_t;
+
+/* core API */
+int ruby_vm_destruct(ruby_vm_t *vm);
+
+/**
+ * ruby_vm_at_exit registers a function _func_ to be invoked when a VM
+ * passed away. Functions registered this way runs in reverse order
+ * of registration, just like END {} block does. The difference is
+ * its timing to be triggered. ruby_vm_at_exit functions runs when a
+ * VM _passed_ _away_, while END {} blocks runs just _before_ a VM
+ * _is_ _passing_ _away_.
+ *
+ * You cannot register a function to another VM than where you are in.
+ * So where to register is intuitive, omitted. OTOH the argument
+ * _func_ cannot know which VM it is in because at the time of
+ * invocation, the VM has already died and there is no execution
+ * context. The VM itself is passed as the first argument to it.
+ *
+ * @param[in] func the function to register.
+ */
+void ruby_vm_at_exit(void(*func)(ruby_vm_t *));
+
+#if defined __GNUC__ && __GNUC__ >= 4
+#pragma GCC visibility pop
+#endif
+
+#if defined(__cplusplus)
+#if 0
+{ /* satisfy cc-mode */
+#endif
+} /* extern "C" { */
+#endif
+
#endif /* RUBY_VM_H */
diff --git a/include/ruby/win32.h b/include/ruby/win32.h
index a7d07083af..3d15742dc7 100644
--- a/include/ruby/win32.h
+++ b/include/ruby/win32.h
@@ -8,6 +8,10 @@ extern "C" {
#endif
#endif
+#if defined __GNUC__ && __GNUC__ >= 4
+#pragma GCC visibility push(default)
+#endif
+
/*
* Copyright (c) 1993, Intergraph Corporation
*
@@ -27,8 +31,17 @@ extern "C" {
// #include <stdarg.h> conflict with varargs.h?
#if !defined(WSAAPI)
+#if defined(__cplusplus) && defined(_MSC_VER)
+extern "C++" { /* template without extern "C++" */
+#endif
+#if !defined(_WIN64) && !defined(WIN32)
+#define WIN32
+#endif
#include <winsock2.h>
#include <ws2tcpip.h>
+#if defined(__cplusplus) && defined(_MSC_VER)
+}
+#endif
#endif
#define NT 1 /* deprecated */
@@ -88,6 +101,9 @@ typedef unsigned int uintptr_t;
#ifndef __MINGW32__
# define mode_t int
#endif
+#ifdef HAVE_UNISTD_H
+# include <unistd.h>
+#endif
#ifdef WIN95
extern DWORD rb_w32_osid(void);
@@ -133,7 +149,6 @@ extern DWORD rb_w32_osid(void);
#define getppid() rb_w32_getppid()
#define sleep(x) rb_w32_Sleep((x)*1000)
#define Sleep(msec) (void)rb_w32_Sleep(msec)
-#define fstat(fd,st) _fstati64(fd,st)
#ifdef __BORLANDC__
#define creat(p, m) _creat(p, m)
#define eof() _eof()
@@ -149,14 +164,14 @@ extern DWORD rb_w32_osid(void);
#define fdopen(h, m) rb_w32_fdopen(h, m)
#undef fsopen
#define fsopen(p, m, sh) rb_w32_fsopen(p, m, sh)
-#endif
+#endif /* __BORLANDC__ */
#undef execv
#define execv(path,argv) rb_w32_aspawn(P_OVERLAY,path,argv)
#if !defined(__BORLANDC__)
#undef isatty
#define isatty(h) rb_w32_isatty(h)
-#endif
+#endif /* __BORLANDC__ */
#undef mkdir
#define mkdir(p, m) rb_w32_mkdir(p, m)
@@ -164,19 +179,23 @@ extern DWORD rb_w32_osid(void);
#define rmdir(p) rb_w32_rmdir(p)
#undef unlink
#define unlink(p) rb_w32_unlink(p)
-#endif
+#endif /* RUBY_EXPORT */
#if SIZEOF_OFF_T == 8
#define off_t __int64
#define stat stati64
+#define fstat(fd,st) _fstati64(fd,st)
#if defined(__BORLANDC__)
#define stati64(path, st) rb_w32_stati64(path, st)
-#elif !defined(_MSC_VER) || _MSC_VER < 1400
+#elif !defined(_MSC_VER) || RT_VER < 80
#define stati64 _stati64
+#ifndef _stati64
#define _stati64(path, st) rb_w32_stati64(path, st)
+#endif
#else
#define stati64 _stat64
#define _stat64(path, st) rb_w32_stati64(path, st)
+#define _fstati64 _fstat64
#endif
#else
#define stat(path,st) rb_w32_stat(path,st)
@@ -184,23 +203,38 @@ extern DWORD rb_w32_osid(void);
extern int rb_w32_stat(const char *, struct stat *);
extern int rb_w32_fstat(int, struct stat *);
#endif
+#define access(path,mode) rb_w32_access(path,mode)
#define strcasecmp _stricmp
#define strncasecmp _strnicmp
#define fsync _commit
+struct timezone;
+
#ifdef __MINGW32__
-struct timezone {
- int tz_minuteswest;
- int tz_dsttime;
-};
#undef isascii
#define isascii __isascii
#endif
+
+struct iovec {
+ void *iov_base;
+ size_t iov_len;
+};
+struct msghdr {
+ void *msg_name;
+ int msg_namelen;
+ struct iovec *msg_iov;
+ int msg_iovlen;
+ void *msg_control;
+ int msg_controllen;
+ int msg_flags;
+};
+
#define NtInitialize ruby_sysinit
extern int rb_w32_cmdvector(const char *, char ***);
extern rb_pid_t rb_w32_pipe_exec(const char *, const char *, int, int *, int *);
extern int flock(int fd, int oper);
+extern int rb_w32_has_cancel_io(void);
extern int rb_w32_is_socket(int);
extern int WSAAPI rb_w32_accept(int, struct sockaddr *, int *);
extern int WSAAPI rb_w32_bind(int, const struct sockaddr *, int);
@@ -218,6 +252,8 @@ extern int WSAAPI rb_w32_recv(int, char *, int, int);
extern int WSAAPI rb_w32_recvfrom(int, char *, int, int, struct sockaddr *, int *);
extern int WSAAPI rb_w32_send(int, const char *, int, int);
extern int WSAAPI rb_w32_sendto(int, const char *, int, int, const struct sockaddr *, int);
+extern int recvmsg(int, struct msghdr *, int);
+extern int sendmsg(int, const struct msghdr *, int);
extern int WSAAPI rb_w32_setsockopt(int, int, int, const char *, int);
extern int WSAAPI rb_w32_shutdown(int, int);
extern int WSAAPI rb_w32_socket(int, int, int);
@@ -233,16 +269,22 @@ extern int rb_w32_socketpair(int, int, int, int *);
extern char * rb_w32_getcwd(char *, int);
extern char * rb_w32_getenv(const char *);
extern int rb_w32_rename(const char *, const char *);
+extern int rb_w32_urename(const char *, const char *);
extern char **rb_w32_get_environ(void);
extern void rb_w32_free_environ(char **);
extern int rb_w32_map_errno(DWORD);
+extern char * WSAAPI rb_w32_inet_ntop(int,void *,char *,size_t);
+extern DWORD rb_w32_osver(void);
extern int chown(const char *, int, int);
+extern int rb_w32_uchown(const char *, int, int);
extern int link(const char *, const char *);
+extern int rb_w32_ulink(const char *, const char *);
extern int gettimeofday(struct timeval *, struct timezone *);
extern rb_pid_t waitpid (rb_pid_t, int *, int);
extern rb_pid_t rb_w32_spawn(int, const char *, const char*);
extern rb_pid_t rb_w32_aspawn(int, const char *, char *const *);
+extern rb_pid_t rb_w32_aspawn_flags(int, const char *, char *const *, DWORD);
extern int kill(int, int);
extern int fcntl(int, int, ...);
extern rb_pid_t rb_w32_getpid(void);
@@ -250,10 +292,19 @@ extern rb_pid_t rb_w32_getppid(void);
#if !defined(__BORLANDC__)
extern int rb_w32_isatty(int);
#endif
+extern int rb_w32_uchdir(const char *);
extern int rb_w32_mkdir(const char *, int);
+extern int rb_w32_umkdir(const char *, int);
extern int rb_w32_rmdir(const char *);
+extern int rb_w32_urmdir(const char *);
extern int rb_w32_unlink(const char *);
+extern int rb_w32_uunlink(const char *);
+extern int rb_w32_uchmod(const char *, int);
extern int rb_w32_stati64(const char *, struct stati64 *);
+extern int rb_w32_ustati64(const char *, struct stati64 *);
+extern int rb_w32_access(const char *, int);
+extern int rb_w32_uaccess(const char *, int);
+extern char rb_w32_fd_is_text(int);
#ifdef __BORLANDC__
extern int rb_w32_fstati64(int, struct stati64 *);
@@ -268,15 +319,19 @@ extern FILE *rb_w32_fsopen(const char *, const char *, int);
#ifndef isnan
#define isnan(x) _isnan(x)
#endif
-#ifndef finite
-#define finite(x) _finite(x)
-#endif
+static inline int
+finite(double x)
+{
+ return _finite(x);
+}
#ifndef copysign
#define copysign(a, b) _copysign(a, b)
#endif
-#ifndef scalb
-#define scalb(a, b) _scalb(a, b)
-#endif
+static inline double
+scalb(double a, long b)
+{
+ return _scalb(a, b);
+}
#endif
#if !defined S_IFIFO && defined _S_IFIFO
@@ -331,10 +386,43 @@ extern FILE *rb_w32_fsopen(const char *, const char *, int);
//
#define SUFFIX
-extern int truncate(const char *path, off_t length);
-extern int ftruncate(int fd, off_t length);
-extern int fseeko(FILE *stream, off_t offset, int whence);
-extern off_t ftello(FILE *stream);
+
+extern int rb_w32_ftruncate(int fd, off_t length);
+extern int rb_w32_truncate(const char *path, off_t length);
+extern off_t rb_w32_ftello(FILE *stream);
+extern int rb_w32_fseeko(FILE *stream, off_t offset, int whence);
+
+#undef HAVE_FTRUNCATE
+#define HAVE_FTRUNCATE 1
+#if defined HAVE_FTRUNCATE64
+#define ftruncate ftruncate64
+#else
+#define ftruncate rb_w32_ftruncate
+#endif
+
+#undef HAVE_TRUNCATE
+#define HAVE_TRUNCATE 1
+#if defined HAVE_TRUNCATE64
+#define truncate truncate64
+#else
+#define truncate rb_w32_truncate
+#endif
+
+#undef HAVE_FSEEKO
+#define HAVE_FSEEKO 1
+#if defined HAVE_FSEEKO64
+#define fseeko fseeko64
+#else
+#define fseeko rb_w32_fseeko
+#endif
+
+#undef HAVE_FTELLO
+#define HAVE_FTELLO 1
+#if defined HAVE_FTELLO64
+#define ftello ftello64
+#else
+#define ftello rb_w32_ftello
+#endif
//
// stubs
@@ -373,43 +461,115 @@ extern char *rb_w32_strerror(int);
/* #undef va_end */
/* winsock error map */
-#define EWOULDBLOCK WSAEWOULDBLOCK
-#define EINPROGRESS WSAEINPROGRESS
-#define EALREADY WSAEALREADY
-#define ENOTSOCK WSAENOTSOCK
-#define EDESTADDRREQ WSAEDESTADDRREQ
-#define EMSGSIZE WSAEMSGSIZE
-#define EPROTOTYPE WSAEPROTOTYPE
-#define ENOPROTOOPT WSAENOPROTOOPT
-#define EPROTONOSUPPORT WSAEPROTONOSUPPORT
-#define ESOCKTNOSUPPORT WSAESOCKTNOSUPPORT
-#define EOPNOTSUPP WSAEOPNOTSUPP
-#define EPFNOSUPPORT WSAEPFNOSUPPORT
-#define EAFNOSUPPORT WSAEAFNOSUPPORT
-#define EADDRINUSE WSAEADDRINUSE
-#define EADDRNOTAVAIL WSAEADDRNOTAVAIL
-#define ENETDOWN WSAENETDOWN
-#define ENETUNREACH WSAENETUNREACH
-#define ENETRESET WSAENETRESET
-#define ECONNABORTED WSAECONNABORTED
-#define ECONNRESET WSAECONNRESET
-#define ENOBUFS WSAENOBUFS
-#define EISCONN WSAEISCONN
-#define ENOTCONN WSAENOTCONN
-#define ESHUTDOWN WSAESHUTDOWN
-#define ETOOMANYREFS WSAETOOMANYREFS
-#define ETIMEDOUT WSAETIMEDOUT
-#define ECONNREFUSED WSAECONNREFUSED
-#define ELOOP WSAELOOP
+#include <errno.h>
+
+#ifndef EWOULDBLOCK
+# define EWOULDBLOCK WSAEWOULDBLOCK
+#endif
+#ifndef EINPROGRESS
+# define EINPROGRESS WSAEINPROGRESS
+#endif
+#ifndef EALREADY
+# define EALREADY WSAEALREADY
+#endif
+#ifndef ENOTSOCK
+# define ENOTSOCK WSAENOTSOCK
+#endif
+#ifndef EDESTADDRREQ
+# define EDESTADDRREQ WSAEDESTADDRREQ
+#endif
+#ifndef EMSGSIZE
+# define EMSGSIZE WSAEMSGSIZE
+#endif
+#ifndef EPROTOTYPE
+# define EPROTOTYPE WSAEPROTOTYPE
+#endif
+#ifndef ENOPROTOOPT
+# define ENOPROTOOPT WSAENOPROTOOPT
+#endif
+#ifndef EPROTONOSUPPORT
+# define EPROTONOSUPPORT WSAEPROTONOSUPPORT
+#endif
+#ifndef ESOCKTNOSUPPORT
+# define ESOCKTNOSUPPORT WSAESOCKTNOSUPPORT
+#endif
+#ifndef EOPNOTSUPP
+# define EOPNOTSUPP WSAEOPNOTSUPP
+#endif
+#ifndef EPFNOSUPPORT
+# define EPFNOSUPPORT WSAEPFNOSUPPORT
+#endif
+#ifndef EAFNOSUPPORT
+# define EAFNOSUPPORT WSAEAFNOSUPPORT
+#endif
+#ifndef EADDRINUSE
+# define EADDRINUSE WSAEADDRINUSE
+#endif
+#ifndef EADDRNOTAVAIL
+# define EADDRNOTAVAIL WSAEADDRNOTAVAIL
+#endif
+#ifndef ENETDOWN
+# define ENETDOWN WSAENETDOWN
+#endif
+#ifndef ENETUNREACH
+# define ENETUNREACH WSAENETUNREACH
+#endif
+#ifndef ENETRESET
+# define ENETRESET WSAENETRESET
+#endif
+#ifndef ECONNABORTED
+# define ECONNABORTED WSAECONNABORTED
+#endif
+#ifndef ECONNRESET
+# define ECONNRESET WSAECONNRESET
+#endif
+#ifndef ENOBUFS
+# define ENOBUFS WSAENOBUFS
+#endif
+#ifndef EISCONN
+# define EISCONN WSAEISCONN
+#endif
+#ifndef ENOTCONN
+# define ENOTCONN WSAENOTCONN
+#endif
+#ifndef ESHUTDOWN
+# define ESHUTDOWN WSAESHUTDOWN
+#endif
+#ifndef ETOOMANYREFS
+# define ETOOMANYREFS WSAETOOMANYREFS
+#endif
+#ifndef ETIMEDOUT
+# define ETIMEDOUT WSAETIMEDOUT
+#endif
+#ifndef ECONNREFUSED
+# define ECONNREFUSED WSAECONNREFUSED
+#endif
+#ifndef ELOOP
+# define ELOOP WSAELOOP
+#endif
/*#define ENAMETOOLONG WSAENAMETOOLONG*/
-#define EHOSTDOWN WSAEHOSTDOWN
-#define EHOSTUNREACH WSAEHOSTUNREACH
+#ifndef EHOSTDOWN
+# define EHOSTDOWN WSAEHOSTDOWN
+#endif
+#ifndef EHOSTUNREACH
+# define EHOSTUNREACH WSAEHOSTUNREACH
+#endif
/*#define ENOTEMPTY WSAENOTEMPTY*/
-#define EPROCLIM WSAEPROCLIM
-#define EUSERS WSAEUSERS
-#define EDQUOT WSAEDQUOT
-#define ESTALE WSAESTALE
-#define EREMOTE WSAEREMOTE
+#ifndef EPROCLIM
+# define EPROCLIM WSAEPROCLIM
+#endif
+#ifndef EUSERS
+# define EUSERS WSAEUSERS
+#endif
+#ifndef EDQUOT
+# define EDQUOT WSAEDQUOT
+#endif
+#ifndef ESTALE
+# define ESTALE WSAESTALE
+#endif
+#ifndef EREMOTE
+# define EREMOTE WSAEREMOTE
+#endif
#define F_SETFL 1
#define O_NONBLOCK 1
@@ -424,6 +584,9 @@ extern char *rb_w32_strerror(int);
#define FD_ISSET(f, s) rb_w32_fdisset(f, s)
#ifdef RUBY_EXPORT
+#undef inet_ntop
+#define inet_ntop(f,a,n,l) rb_w32_inet_ntop(f,a,n,l)
+
#undef accept
#define accept(s, a, l) rb_w32_accept(s, a, l)
@@ -526,16 +689,20 @@ HANDLE GetCurrentThreadHandle(void);
int rb_w32_sleep(unsigned long msec);
int rb_w32_putc(int, FILE*);
int rb_w32_getc(FILE*);
-int rb_w32_wopen(const WCHAR *, int, ...);
int rb_w32_open(const char *, int, ...);
+int rb_w32_uopen(const char *, int, ...);
+int rb_w32_wopen(const WCHAR *, int, ...);
int rb_w32_close(int);
int rb_w32_fclose(FILE*);
int rb_w32_pipe(int[2]);
-size_t rb_w32_read(int, void *, size_t);
-size_t rb_w32_write(int, const void *, size_t);
+ssize_t rb_w32_read(int, void *, size_t);
+ssize_t rb_w32_write(int, const void *, size_t);
int rb_w32_utime(const char *, const struct utimbuf *);
+int rb_w32_uutime(const char *, const struct utimbuf *);
+long rb_w32_write_console(uintptr_t, int); /* use uintptr_t instead of VALUE because it's not defined yet here */
int WINAPI rb_w32_Sleep(unsigned long msec);
int rb_w32_wait_events_blocking(HANDLE *events, int num, DWORD timeout);
+int rb_w32_time_subtract(struct timeval *rest, const struct timeval *wait);
/*
== ***CAUTION***
@@ -547,6 +714,26 @@ in asynchronous_func_t.
typedef uintptr_t (*asynchronous_func_t)(uintptr_t self, int argc, uintptr_t* argv);
uintptr_t rb_w32_asynchronize(asynchronous_func_t func, uintptr_t self, int argc, uintptr_t* argv, uintptr_t intrval);
+#if defined __GNUC__ && __GNUC__ >= 4
+#pragma GCC visibility pop
+#endif
+
+#ifdef __MINGW_ATTRIB_PURE
+/* get rid of bugs in math.h of mingw */
+#define frexp(_X, _Y) __extension__ ({\
+ int intpart_frexp_bug = intpart_frexp_bug;\
+ double result_frexp_bug = frexp((_X), &intpart_frexp_bug);\
+ *(_Y) = intpart_frexp_bug;\
+ result_frexp_bug;\
+})
+#define modf(_X, _Y) __extension__ ({\
+ double intpart_modf_bug = intpart_modf_bug;\
+ double result_modf_bug = modf((_X), &intpart_modf_bug);\
+ *(_Y) = intpart_modf_bug;\
+ result_modf_bug;\
+})
+#endif
+
#if defined(__cplusplus)
#if 0
{ /* satisfy cc-mode */
diff --git a/inits.c b/inits.c
index 6fb7463c57..73b9eb4283 100644
--- a/inits.c
+++ b/inits.c
@@ -10,6 +10,7 @@
**********************************************************************/
#include "ruby/ruby.h"
+#include "internal.h"
#define CALL(n) {void Init_##n(void); Init_##n();}
diff --git a/insns.def b/insns.def
index e1e77c6901..8f25fdcd07 100644
--- a/insns.def
+++ b/insns.def
@@ -1,4 +1,4 @@
-/** ##skip -*- mode:c; style:ruby -*-
+/** ##skip -*- mode:c; style:ruby; coding: shift_jis -*-
insns.def - YARV instruction definitions
$Author: $
@@ -15,7 +15,7 @@
instruction form:
DEFINE_INSN
- instrunction_name
+ instruction_name
(instruction_operands, ..)
(pop_values, ..)
(return value)
@@ -113,7 +113,7 @@ getdynamic
()
(VALUE val)
{
- int i;
+ rb_num_t i;
VALUE *dfp2 = GET_DFP();
for (i = 0; i < level; i++) {
dfp2 = GET_PREV_DFP(dfp2);
@@ -134,7 +134,7 @@ setdynamic
(VALUE val)
()
{
- int i;
+ rb_num_t i;
VALUE *dfp2 = GET_DFP();
for (i = 0; i < level; i++) {
dfp2 = GET_PREV_DFP(dfp2);
@@ -150,11 +150,11 @@ setdynamic
*/
DEFINE_INSN
getinstancevariable
-(ID id)
+(ID id, IC ic)
()
(VALUE val)
{
- val = rb_ivar_get(GET_SELF(), id);
+ val = vm_getivar(GET_SELF(), id, ic);
}
/**
@@ -165,11 +165,11 @@ getinstancevariable
*/
DEFINE_INSN
setinstancevariable
-(ID id)
+(ID id, IC ic)
(VALUE val)
()
{
- rb_ivar_set(GET_SELF(), id, val);
+ vm_setivar(GET_SELF(), id, val, ic);
}
/**
@@ -258,7 +258,7 @@ getglobal
()
(VALUE val)
{
- val = GET_GLOBAL(entry);
+ val = GET_GLOBAL((VALUE)entry);
}
/**
@@ -272,7 +272,7 @@ setglobal
(VALUE val)
()
{
- SET_GLOBAL(entry, val);
+ SET_GLOBAL((VALUE)entry, val);
}
@@ -336,13 +336,18 @@ putspecialobject
()
(VALUE val)
{
- switch (value_type) {
+ enum vm_special_object_type type = (enum vm_special_object_type)value_type;
+
+ switch (type) {
case VM_SPECIAL_OBJECT_VMCORE:
val = rb_mRubyVMFrozenCore;
break;
case VM_SPECIAL_OBJECT_CBASE:
val = vm_get_cbase(GET_ISEQ(), GET_LFP(), GET_DFP());
break;
+ case VM_SPECIAL_OBJECT_CONST_BASE:
+ val = vm_get_const_base(GET_ISEQ(), GET_LFP(), GET_DFP());
+ break;
default:
rb_bug("putspecialobject insn: unknown value_type");
}
@@ -387,10 +392,10 @@ concatstrings
(...)
(VALUE val) // inc += 1 - num;
{
- int i;
+ rb_num_t i = num - 1;
- val = rb_str_new(0, 0);
- for (i = num - 1; i >= 0; i--) {
+ val = rb_str_resurrect(TOPN(i));
+ while (i-- > 0) {
const VALUE v = TOPN(i);
rb_str_append(val, v);
}
@@ -424,13 +429,13 @@ toregexp
(VALUE val) // inc += 1 - cnt;
{
VALUE rb_reg_new_ary(VALUE ary, int options);
- int i;
+ rb_num_t i;
const VALUE ary = rb_ary_tmp_new(cnt);
for (i = 0; i < cnt; i++) {
rb_ary_store(ary, cnt-i-1, TOPN(i));
}
POPN(cnt);
- val = rb_reg_new_ary(ary, opt);
+ val = rb_reg_new_ary(ary, (int)opt);
rb_ary_clear(ary);
}
@@ -481,7 +486,7 @@ expandarray
(..., VALUE ary)
(...) // inc += num - 1 + (flag & 1 ? 1 : 0);
{
- vm_expandarray(GET_CFP(), ary, num, flag);
+ vm_expandarray(GET_CFP(), ary, num, (int)flag);
}
/**
@@ -583,7 +588,7 @@ newhash
(...)
(VALUE val) // inc += 1 - num;
{
- int i;
+ rb_num_t i;
val = rb_hash_new();
for (i = num; i > 0; i -= 2) {
@@ -605,7 +610,7 @@ newrange
(VALUE low, VALUE high)
(VALUE val)
{
- val = rb_range_new(low, high, flag);
+ val = rb_range_new(low, high, (int)flag);
}
/**********************************************************/
@@ -652,7 +657,7 @@ dupn
(...)
(...) // inc += n;
{
- int i;
+ rb_num_t i;
VALUE *sp = STACK_ADDR_FROM_TOP(n);
for (i = 0; i < n; i++) {
GET_SP()[i] = sp[i];
@@ -743,12 +748,14 @@ adjuststack
*/
DEFINE_INSN
defined
-(rb_num_t type, VALUE obj, VALUE needstr)
+(rb_num_t op_type, VALUE obj, VALUE needstr)
(VALUE v)
(VALUE val)
{
VALUE klass;
const char *expr_type = 0;
+ enum defined_type type = (enum defined_type)op_type;
+
val = Qnil;
switch (type) {
@@ -761,16 +768,19 @@ defined
klass = vm_get_cbase(GET_ISEQ(), GET_LFP(), GET_DFP());
break;
case DEFINED_GVAR:
- if (rb_gvar_defined((struct global_entry *)(obj & ~1))) {
+ if (rb_gvar_defined(rb_global_entry(SYM2ID(obj)))) {
expr_type = "global-variable";
}
break;
case DEFINED_CVAR:
- klass = vm_get_cbase(GET_ISEQ(), GET_LFP(), GET_DFP());
+ {
+ NODE *cref = vm_get_cref(GET_ISEQ(), GET_LFP(), GET_DFP());
+ klass = vm_get_cvar_base(cref);
if (rb_cvar_defined(klass, SYM2ID(obj))) {
expr_type = "class variable";
}
break;
+ }
case DEFINED_CONST:
klass = v;
if (vm_get_ev_const(th, GET_ISEQ(), klass, SYM2ID(obj), 1)) {
@@ -784,19 +794,28 @@ defined
}
break;
case DEFINED_METHOD:{
- VALUE klass = CLASS_OF(v);
- NODE *method = (NODE *) rb_method_node(klass, SYM2ID(obj));
-
- if (method) {
- if (!(method->nd_noex & NOEX_PRIVATE)) {
- if (!((method->nd_noex & NOEX_PROTECTED) &&
- !rb_obj_is_kind_of(GET_SELF(),
- rb_class_real(klass)))) {
- expr_type = "method";
- }
- }
- }
- break;
+ VALUE klass = CLASS_OF(v);
+ const rb_method_entry_t *me = rb_method_entry(klass, SYM2ID(obj));
+
+ if (me) {
+ if (!(me->flag & NOEX_PRIVATE)) {
+ if (!((me->flag & NOEX_PROTECTED) &&
+ !rb_obj_is_kind_of(GET_SELF(),
+ rb_class_real(klass)))) {
+ expr_type = "method";
+ }
+ }
+ }
+ {
+ VALUE args[2];
+ VALUE r;
+
+ args[0] = obj; args[1] = Qfalse;
+ r = rb_check_funcall(v, rb_intern("respond_to_missing?"), 2, args);
+ if (r != Qundef && RTEST(r))
+ expr_type = "method";
+ }
+ break;
}
case DEFINED_YIELD:
if (GET_BLOCK_PTR()) {
@@ -804,27 +823,27 @@ defined
}
break;
case DEFINED_ZSUPER:{
- rb_iseq_t *ip = GET_ISEQ();
- while (ip) {
- if (ip->defined_method_id) {
- break;
- }
- ip = ip->parent_iseq;
- }
- if (ip) {
- VALUE klass = vm_search_normal_superclass(ip->klass, GET_SELF());
- if (rb_method_boundp(klass, ip->defined_method_id, 0)) {
- expr_type = "super";
- }
- }
- break;
+ rb_iseq_t *iseq = GET_ISEQ();
+ while (iseq) {
+ if (iseq->defined_method_id) {
+ break;
+ }
+ iseq = iseq->parent_iseq;
+ }
+ if (iseq) {
+ VALUE klass = vm_search_normal_superclass(iseq->klass, GET_SELF());
+ if (rb_method_boundp(klass, iseq->defined_method_id, 0)) {
+ expr_type = "super";
+ }
+ }
+ break;
}
case DEFINED_REF:{
- val = vm_getspecial(th, GET_LFP(), Qfalse, FIX2INT(obj));
- if (val != Qnil) {
- expr_type = "global-variable";
- }
- break;
+ val = vm_getspecial(th, GET_LFP(), Qfalse, FIX2INT(obj));
+ if (val != Qnil) {
+ expr_type = "global-variable";
+ }
+ break;
}
default:
rb_bug("unimplemented defined? type (VM)");
@@ -851,7 +870,7 @@ trace
()
()
{
- rb_event_flag_t flag = nf;
+ rb_event_flag_t flag = (rb_event_flag_t)nf;
EXEC_EVENT_HOOK(th, flag, GET_SELF(), 0, 0 /* TODO: id, klass */);
}
@@ -878,7 +897,8 @@ defineclass
VALUE klass;
switch ((int)define_type) {
- case 0:
+ case 0: /* scoped: class Foo::Bar */
+ case 3: /* no scope: class Bar */
/* val is dummy. classdef returns class scope value */
if (super == Qnil) {
@@ -889,9 +909,9 @@ defineclass
/* find klass */
rb_autoload_load(cbase, id);
- if (rb_const_defined_at(cbase, id)) {
+ if ((klass = vm_search_const_defined_class(cbase, id)) != 0) {
/* already exist */
- klass = rb_const_get_at(cbase, id);
+ klass = define_type == 0 ? rb_public_const_get_at(klass, id) : rb_const_get_at(klass, id);
if (TYPE(klass) != T_CLASS) {
rb_raise(rb_eTypeError, "%s is not a class", rb_id2name(id));
}
@@ -909,7 +929,7 @@ defineclass
else {
/* new class declaration */
klass = rb_define_class_id(id, super);
- rb_set_class_path(klass, cbase, rb_id2name(id));
+ rb_set_class_path_string(klass, cbase, rb_id2str(id));
rb_const_set(cbase, id, klass);
rb_class_inherited(super, klass);
}
@@ -919,15 +939,16 @@ defineclass
/* super is dummy */
klass = rb_singleton_class(cbase);
break;
- case 2:
+ case 2: /* scoped: module Foo::Bar or module ::Bar */
+ case 5: /* no scope: module Bar */
/* val is dummy. classdef returns class scope value */
/* super is dummy */
vm_check_if_namespace(cbase);
/* find klass */
- if (rb_const_defined_at(cbase, id)) {
- klass = rb_const_get_at(cbase, id);
+ if ((klass = vm_search_const_defined_class(cbase, id)) != 0) {
+ klass = define_type == 2 ? rb_public_const_get_at(klass, id) : rb_const_get_at(klass, id);
/* already exist */
if (TYPE(klass) != T_MODULE) {
rb_raise(rb_eTypeError, "%s is not a module", rb_id2name(id));
@@ -936,7 +957,7 @@ defineclass
else {
/* new module declaration */
klass = rb_define_module_id(id);
- rb_set_class_path(klass, cbase, rb_id2name(id));
+ rb_set_class_path_string(klass, cbase, rb_id2str(id));
rb_const_set(cbase, id, klass);
}
break;
@@ -944,11 +965,11 @@ defineclass
rb_bug("unknown defineclass type: %d", (int)define_type);
}
- COPY_CREF(class_iseq->cref_stack, vm_cref_push(th, klass, NOEX_PUBLIC));
+ COPY_CREF(class_iseq->cref_stack, vm_cref_push(th, klass, NOEX_PUBLIC, NULL));
/* enter scope */
vm_push_frame(th, class_iseq,
- VM_FRAME_MAGIC_CLASS, klass, (VALUE) GET_DFP() | 0x02,
+ VM_FRAME_MAGIC_CLASS, klass, (VALUE) GET_BLOCK_PTR(),
class_iseq->iseq_encoded, GET_SP(), 0,
class_iseq->local_size);
RESTORE_REGS();
@@ -979,25 +1000,19 @@ send
(...)
(VALUE val) // inc += - (int)(op_argc + ((op_flag & VM_CALL_ARGS_BLOCKARG_BIT) ? 1 : 0));
{
- NODE *mn;
+ const rb_method_entry_t *me;
VALUE recv, klass;
rb_block_t *blockptr = 0;
- rb_num_t num = caller_setup_args(th, GET_CFP(), op_flag, op_argc,
- (rb_iseq_t *)blockiseq, &blockptr);
- rb_num_t flag = op_flag;
+ VALUE flag = op_flag;
+ int num = caller_setup_args(th, GET_CFP(), flag, (int)op_argc,
+ (rb_iseq_t *)blockiseq, &blockptr);
ID id = op_id;
/* get receiver */
- recv = (flag & VM_CALL_FCALL_BIT) ? GET_SELF() : TOPN(num);
+ recv = TOPN(num);
klass = CLASS_OF(recv);
- mn = vm_method_search(id, klass, ic);
-
- /* send/funcall optimization */
- if (flag & VM_CALL_SEND_BIT) {
- vm_send_optimize(GET_CFP(), &mn, &flag, &num, &id, klass);
- }
-
- CALL_METHOD(num, blockptr, flag, id, mn, recv);
+ me = vm_method_search(id, klass, ic);
+ CALL_METHOD(num, blockptr, flag, id, me, recv);
}
/**
@@ -1014,17 +1029,26 @@ invokesuper
(VALUE val) // inc += - (int)(op_argc + ((op_flag & VM_CALL_ARGS_BLOCKARG_BIT) ? 1 : 0));
{
rb_block_t *blockptr = !(op_flag & VM_CALL_ARGS_BLOCKARG_BIT) ? GET_BLOCK_PTR() : 0;
- int num = caller_setup_args(th, GET_CFP(), op_flag, op_argc, blockiseq, &blockptr);
+ VALUE flag = op_flag;
+ int num = caller_setup_args(th, GET_CFP(), flag,
+ (int)op_argc, blockiseq, &blockptr);
VALUE recv, klass;
- NODE *mn;
ID id;
- const VALUE flag = VM_CALL_SUPER_BIT | VM_CALL_FCALL_BIT;
+ const rb_method_entry_t *me;
+
+ flag = VM_CALL_SUPER_BIT | VM_CALL_FCALL_BIT;
recv = GET_SELF();
vm_search_superclass(GET_CFP(), GET_ISEQ(), recv, TOPN(num), &id, &klass);
- mn = rb_method_node(klass, id);
- CALL_METHOD(num, blockptr, flag, id, mn, recv);
+ /* temporary measure for [Bug #2402] [Bug #2502] [Bug #3136] */
+ if (!rb_obj_is_kind_of(recv, klass)) {
+ rb_raise(rb_eNotImpError, "super from singleton method that is defined to multiple classes is not supported; this will be fixed in 1.9.3 or later");
+ }
+
+ me = rb_method_entry(klass, id);
+
+ CALL_METHOD(num, blockptr, flag, id, me, recv);
}
/**
@@ -1174,12 +1198,12 @@ branchunless
*/
DEFINE_INSN
getinlinecache
-(IC ic, OFFSET dst)
+(OFFSET dst, IC ic)
()
(VALUE val)
{
if (ic->ic_vmstat == GET_VM_STATE_VERSION()) {
- val = ic->ic_value;
+ val = ic->ic_value.value;
JUMP(dst);
}
else {
@@ -1195,16 +1219,24 @@ getinlinecache
*/
DEFINE_INSN
onceinlinecache
-(IC ic, OFFSET dst)
+(OFFSET dst, IC ic)
()
(VALUE val)
{
+ retry:
if (ic->ic_vmstat) {
- val = ic->ic_value;
+ val = ic->ic_value.value;
JUMP(dst);
}
+ else if (ic->ic_value.value == Qundef)
+ {
+ RUBY_VM_CHECK_INTS();
+ rb_thread_schedule();
+ goto retry;
+ }
else {
/* none */
+ ic->ic_value.value = Qundef;
val = Qnil;
}
}
@@ -1216,13 +1248,14 @@ onceinlinecache
*/
DEFINE_INSN
setinlinecache
-(OFFSET dst)
+(IC ic)
(VALUE val)
(VALUE val)
{
- IC ic = GET_CONST_INLINE_CACHE(dst);
-
- ic->ic_value = rb_gc_write_barrier(val);
+ if (ic->ic_value.value == Qundef) {
+ rb_ary_push(GET_ISEQ()->mark_ary, val);
+ }
+ ic->ic_value.value = val;
ic->ic_vmstat = GET_VM_STATE_VERSION() - ruby_vm_const_missing_count;
ruby_vm_const_missing_count = 0;
}
@@ -1238,17 +1271,29 @@ opt_case_dispatch
(..., VALUE key)
() // inc += -1;
{
- if (0) {
- /* TODO: if some === method is overrided */
- }
- else {
- VALUE val;
- if (st_lookup(RHASH_TBL(hash), key, &val)) {
- JUMP(FIX2INT(val));
+ switch(TYPE(key)) {
+ case T_FLOAT: {
+ double ival;
+ if (modf(RFLOAT_VALUE(key), &ival) == 0.0) {
+ key = FIXABLE(ival) ? LONG2FIX((long)ival) : rb_dbl2big(ival);
}
- else {
- JUMP(else_offset);
+ }
+ case T_SYMBOL: /* fall through */
+ case T_FIXNUM:
+ case T_BIGNUM:
+ case T_STRING:
+ if (BASIC_OP_UNREDEFINED_P(BOP_EQQ)) {
+ st_data_t val;
+ if (st_lookup(RHASH_TBL(hash), key, &val)) {
+ JUMP(FIX2INT((VALUE)val));
+ }
+ else {
+ JUMP(else_offset);
+ }
+ break;
}
+ default:
+ break;
}
}
@@ -1281,7 +1326,7 @@ opt_checkenv
*/
DEFINE_INSN
opt_plus
-()
+(IC ic)
(VALUE recv, VALUE obj)
(VALUE val)
{
@@ -1357,7 +1402,7 @@ opt_plus
*/
DEFINE_INSN
opt_minus
-()
+(IC ic)
(VALUE recv, VALUE obj)
(VALUE val)
{
@@ -1406,19 +1451,20 @@ opt_minus
*/
DEFINE_INSN
opt_mult
-()
+(IC ic)
(VALUE recv, VALUE obj)
(VALUE val)
{
if (FIXNUM_2_P(recv, obj) &&
BASIC_OP_UNREDEFINED_P(BOP_MULT)) {
- long a, b, c;
+ long a, b;
a = FIX2LONG(recv);
if (a == 0) {
val = recv;
}
else {
+ volatile long c;
b = FIX2LONG(obj);
c = a * b;
@@ -1459,7 +1505,7 @@ opt_mult
*/
DEFINE_INSN
opt_div
-()
+(IC ic)
(VALUE recv, VALUE obj)
(VALUE val)
{
@@ -1523,7 +1569,7 @@ opt_div
*/
DEFINE_INSN
opt_mod
-()
+(IC ic)
(VALUE recv, VALUE obj)
(VALUE val)
{
@@ -1565,23 +1611,7 @@ opt_mod
else if (HEAP_CLASS_OF(recv) == rb_cFloat &&
HEAP_CLASS_OF(obj) == rb_cFloat &&
BASIC_OP_UNREDEFINED_P(BOP_MOD)) {
- double x = RFLOAT_VALUE(recv);
- double y = RFLOAT_VALUE(obj);
- double div, mod;
-
- {
- double z;
-
- modf(x / y, &z);
- mod = x - z * y;
- }
-
- div = (x - mod) / y;
- if (y * mod < 0) {
- mod += y;
- div -= 1.0;
- }
- val = DBL2NUM(mod);
+ val = DBL2NUM(ruby_float_mod(RFLOAT_VALUE(recv), RFLOAT_VALUE(obj)));
}
else {
goto INSN_LABEL(normal_dispatch);
@@ -1623,16 +1653,16 @@ opt_eq
*/
DEFINE_INSN
opt_neq
-(IC ic1, IC ic2)
+(IC ic, IC ic_eq)
(VALUE recv, VALUE obj)
(VALUE val)
{
extern VALUE rb_obj_not_equal(VALUE obj1, VALUE obj2);
- NODE *mn = vm_method_search(idNeq, CLASS_OF(recv), ic1);
+ const rb_method_entry_t *me = vm_method_search(idNeq, CLASS_OF(recv), ic);
val = Qundef;
- if (check_cfunc(mn, rb_obj_not_equal)) {
- val = opt_eq_func(recv, obj, ic2);
+ if (check_cfunc(me, rb_obj_not_equal)) {
+ val = opt_eq_func(recv, obj, ic_eq);
if (val != Qundef) {
val = RTEST(val) ? Qfalse : Qtrue;
@@ -1654,7 +1684,7 @@ opt_neq
*/
DEFINE_INSN
opt_lt
-()
+(IC ic)
(VALUE recv, VALUE obj)
(VALUE val)
{
@@ -1704,7 +1734,7 @@ opt_lt
*/
DEFINE_INSN
opt_le
-()
+(IC ic)
(VALUE recv, VALUE obj)
(VALUE val)
{
@@ -1734,7 +1764,7 @@ opt_le
*/
DEFINE_INSN
opt_gt
-()
+(IC ic)
(VALUE recv, VALUE obj)
(VALUE val)
{
@@ -1784,7 +1814,7 @@ opt_gt
*/
DEFINE_INSN
opt_ge
-()
+(IC ic)
(VALUE recv, VALUE obj)
(VALUE val)
{
@@ -1813,7 +1843,7 @@ opt_ge
*/
DEFINE_INSN
opt_ltlt
-()
+(IC ic)
(VALUE recv, VALUE obj)
(VALUE val)
{
@@ -1847,7 +1877,7 @@ opt_ltlt
*/
DEFINE_INSN
opt_aref
-()
+(IC ic)
(VALUE recv, VALUE obj)
(VALUE val)
{
@@ -1877,7 +1907,7 @@ opt_aref
*/
DEFINE_INSN
opt_aset
-()
+(IC ic)
(VALUE recv, VALUE obj, VALUE set)
(VALUE val)
{
@@ -1911,12 +1941,12 @@ opt_aset
*/
DEFINE_INSN
opt_length
-()
+(IC ic)
(VALUE recv)
(VALUE val)
{
- if (!SPECIAL_CONST_P(recv) &&
- BASIC_OP_UNREDEFINED_P(BOP_LENGTH)) {
+ if (LIKELY(!SPECIAL_CONST_P(recv) &&
+ BASIC_OP_UNREDEFINED_P(BOP_LENGTH))) {
if (HEAP_CLASS_OF(recv) == rb_cString) {
val = rb_str_length(recv);
}
@@ -1939,12 +1969,45 @@ opt_length
/**
@c optimize
+ @e optimized size
+ @j Å“K‰»‚³‚ꂽ recv.size()B
+ */
+DEFINE_INSN
+opt_size
+(IC ic)
+(VALUE recv)
+(VALUE val)
+{
+ if (LIKELY(BASIC_OP_UNREDEFINED_P(BOP_SIZE) &&
+ !SPECIAL_CONST_P(recv))) {
+ if (HEAP_CLASS_OF(recv) == rb_cString) {
+ val = rb_str_length(recv);
+ }
+ else if (HEAP_CLASS_OF(recv) == rb_cArray) {
+ val = LONG2NUM(RARRAY_LEN(recv));
+ }
+ else if (HEAP_CLASS_OF(recv) == rb_cHash) {
+ val = INT2FIX(RHASH_SIZE(recv));
+ }
+ else {
+ goto INSN_LABEL(normal_dispatch);
+ }
+ }
+ else {
+ INSN_LABEL(normal_dispatch):
+ PUSH(recv);
+ CALL_SIMPLE_METHOD(0, idSize, recv);
+ }
+}
+
+/**
+ @c optimize
@e optimized succ
@j Å“K‰»‚³‚ꂽ recv.succ()B
*/
DEFINE_INSN
opt_succ
-()
+(IC ic)
(VALUE recv)
(VALUE val)
{
@@ -1996,9 +2059,9 @@ opt_not
(VALUE val)
{
extern VALUE rb_obj_not(VALUE obj);
- NODE *mn = vm_method_search(idNot, CLASS_OF(recv), ic);
+ const rb_method_entry_t *me = vm_method_search(idNot, CLASS_OF(recv), ic);
- if (check_cfunc(mn, rb_obj_not)) {
+ if (check_cfunc(me, rb_obj_not)) {
val = RTEST(recv) ? Qfalse : Qtrue;
}
else {
diff --git a/internal.h b/internal.h
new file mode 100644
index 0000000000..5d0cff0034
--- /dev/null
+++ b/internal.h
@@ -0,0 +1,232 @@
+/**********************************************************************
+
+ internal.h -
+
+ $Author$
+ created at: Tue May 17 11:42:20 JST 2011
+
+ Copyright (C) 2011 Yukihiro Matsumoto
+
+**********************************************************************/
+
+#ifndef RUBY_INTERNAL_H
+#define RUBY_INTERNAL_H 1
+
+#if defined(__cplusplus)
+extern "C" {
+#if 0
+} /* satisfy cc-mode */
+#endif
+#endif
+
+struct rb_deprecated_classext_struct {
+ char conflict[sizeof(VALUE) * 3];
+};
+
+struct rb_classext_struct {
+ VALUE super;
+ struct st_table *iv_tbl;
+ struct st_table *const_tbl;
+};
+
+#undef RCLASS_SUPER
+#define RCLASS_EXT(c) (RCLASS(c)->ptr)
+#define RCLASS_SUPER(c) (RCLASS_EXT(c)->super)
+#define RCLASS_IV_TBL(c) (RCLASS_EXT(c)->iv_tbl)
+#define RCLASS_CONST_TBL(c) (RCLASS_EXT(c)->const_tbl)
+#define RCLASS_M_TBL(c) (RCLASS(c)->m_tbl)
+#define RCLASS_IV_INDEX_TBL(c) (RCLASS(c)->iv_index_tbl)
+
+struct vtm; /* defined by timev.h */
+
+/* array.c */
+VALUE rb_ary_last(int, VALUE *, VALUE);
+
+/* bignum.c */
+VALUE rb_big_fdiv(VALUE x, VALUE y);
+VALUE rb_big_uminus(VALUE x);
+
+/* class.c */
+VALUE rb_obj_methods(int argc, VALUE *argv, VALUE obj);
+VALUE rb_obj_protected_methods(int argc, VALUE *argv, VALUE obj);
+VALUE rb_obj_private_methods(int argc, VALUE *argv, VALUE obj);
+VALUE rb_obj_public_methods(int argc, VALUE *argv, VALUE obj);
+int rb_obj_basic_to_s_p(VALUE);
+void Init_class_hierarchy(void);
+
+/* compile.c */
+int rb_dvar_defined(ID);
+int rb_local_defined(ID);
+int rb_parse_in_eval(void);
+int rb_parse_in_main(void);
+VALUE rb_insns_name_array(void);
+
+/* cont.c */
+VALUE rb_obj_is_fiber(VALUE);
+void rb_fiber_reset_root_local_storage(VALUE);
+
+/* debug.c */
+PRINTF_ARGS(void ruby_debug_printf(const char*, ...), 1, 2);
+
+/* dmyext.c */
+void Init_ext(void);
+
+/* encoding.c */
+ID rb_id_encoding(void);
+
+/* encoding.c */
+void rb_gc_mark_encodings(void);
+
+/* error.c */
+NORETURN(PRINTF_ARGS(void rb_compile_bug(const char*, int, const char*, ...), 3, 4));
+VALUE rb_check_backtrace(VALUE);
+NORETURN(void rb_async_bug_errno(const char *,int));
+
+/* eval_error.c */
+void ruby_error_print(void);
+VALUE rb_get_backtrace(VALUE info);
+
+/* eval_jump.c */
+void rb_call_end_proc(VALUE data);
+
+/* file.c */
+VALUE rb_home_dir(const char *user, VALUE result);
+VALUE rb_realpath_internal(VALUE basedir, VALUE path, int strict);
+void Init_File(void);
+
+/* gc.c */
+void Init_heap(void);
+
+/* inits.c */
+void rb_call_inits(void);
+
+/* io.c */
+const char *ruby_get_inplace_mode(void);
+void ruby_set_inplace_mode(const char *);
+ssize_t rb_io_bufread(VALUE io, void *buf, size_t size);
+void rb_stdio_set_default_encoding(void);
+
+/* iseq.c */
+VALUE rb_iseq_compile_with_option(VALUE src, VALUE file, VALUE filepath, VALUE line, VALUE opt);
+VALUE rb_iseq_clone(VALUE iseqval, VALUE newcbase);
+
+/* load.c */
+VALUE rb_get_load_path(void);
+
+/* math.c */
+VALUE rb_math_atan2(VALUE, VALUE);
+VALUE rb_math_cos(VALUE);
+VALUE rb_math_cosh(VALUE);
+VALUE rb_math_exp(VALUE);
+VALUE rb_math_hypot(VALUE, VALUE);
+VALUE rb_math_log(int argc, VALUE *argv);
+VALUE rb_math_sin(VALUE);
+VALUE rb_math_sinh(VALUE);
+VALUE rb_math_sqrt(VALUE);
+
+/* newline.c */
+void Init_newline(void);
+
+/* numeric.c */
+int rb_num_to_uint(VALUE val, unsigned int *ret);
+int ruby_float_step(VALUE from, VALUE to, VALUE step, int excl);
+double ruby_float_mod(double x, double y);
+
+/* object.c */
+VALUE rb_obj_equal(VALUE obj1, VALUE obj2);
+
+/* parse.y */
+VALUE rb_parser_get_yydebug(VALUE);
+VALUE rb_parser_set_yydebug(VALUE, VALUE);
+
+/* proc.c */
+VALUE rb_proc_location(VALUE self);
+
+/* rational.c */
+VALUE rb_lcm(VALUE x, VALUE y);
+VALUE rb_rational_reciprocal(VALUE x);
+
+/* re.c */
+VALUE rb_reg_compile(VALUE str, int options, const char *sourcefile, int sourceline);
+VALUE rb_reg_check_preprocess(VALUE);
+
+/* signal.c */
+int rb_get_next_signal(void);
+
+/* strftime.c */
+size_t rb_strftime_timespec(char *s, size_t maxsize, const char *format, const struct vtm *vtm, struct timespec *ts, int gmt);
+
+/* string.c */
+int rb_str_buf_cat_escaped_char(VALUE result, unsigned int c, int unicode_p);
+
+/* struct.c */
+VALUE rb_struct_init_copy(VALUE copy, VALUE s);
+
+/* time.c */
+struct timeval rb_time_timeval(VALUE);
+
+/* thread.c */
+VALUE rb_obj_is_mutex(VALUE obj);
+VALUE ruby_suppress_tracing(VALUE (*func)(VALUE, int), VALUE arg, int always);
+void rb_thread_execute_interrupts(VALUE th);
+void rb_clear_trace_func(void);
+VALUE rb_thread_backtrace(VALUE thval);
+VALUE rb_get_coverages(void);
+
+/* thread_pthread.c, thread_win32.c */
+void Init_native_thread(void);
+
+/* vm.c */
+VALUE rb_obj_is_thread(VALUE obj);
+void rb_vm_mark(void *ptr);
+void Init_BareVM(void);
+VALUE rb_vm_top_self(void);
+void rb_thread_recycle_stack_release(VALUE *);
+void rb_vm_change_state(void);
+void rb_vm_inc_const_missing_count(void);
+void rb_thread_mark(void *th);
+const void **rb_vm_get_insns_address_table(void);
+
+/* vm_dump.c */
+void rb_vm_bugreport(void);
+
+/* vm_eval.c */
+void Init_vm_eval(void);
+VALUE rb_current_realfilepath(void);
+
+/* vm_method.c */
+void Init_eval_method(void);
+
+/* miniprelude.c, prelude.c */
+void Init_prelude(void);
+
+#if defined __GNUC__ && __GNUC__ >= 4
+#pragma GCC visibility push(default)
+#endif
+const char *rb_objspace_data_type_name(VALUE obj);
+
+/* Temporary. This API will be removed (renamed). */
+VALUE rb_thread_io_blocking_region(rb_blocking_function_t *func, void *data1, int fd);
+
+/* experimental.
+ * These APIs can be changed on Ruby 1.9.4 or later.
+ * We will change these APIs (spac, name and so on) if there are something wrong.
+ * If you use these APIs, catch up future changes.
+ */
+void *rb_thread_call_with_gvl(void *(*func)(void *), void *data1);
+VALUE rb_thread_call_without_gvl(
+ rb_blocking_function_t *func, void *data1,
+ rb_unblock_function_t *ubf, void *data2);
+
+#if defined __GNUC__ && __GNUC__ >= 4
+#pragma GCC visibility pop
+#endif
+
+#if defined(__cplusplus)
+#if 0
+{ /* satisfy cc-mode */
+#endif
+} /* extern "C" { */
+#endif
+
+#endif /* RUBY_INTERNAL_H */
diff --git a/io.c b/io.c
index 92dc006e33..bbe5da93e8 100644
--- a/io.c
+++ b/io.c
@@ -14,6 +14,7 @@
#include "ruby/ruby.h"
#include "ruby/io.h"
#include "dln.h"
+#include "internal.h"
#include <ctype.h>
#include <errno.h>
@@ -30,7 +31,7 @@
# include <sys/socket.h>
#endif
-#if defined(__BOW__) || defined(__CYGWIN__) || defined(_WIN32) || defined(__EMX__) || defined(__BEOS__)
+#if defined(__BOW__) || defined(__CYGWIN__) || defined(_WIN32) || defined(__EMX__) || defined(__BEOS__) || defined(__HAIKU__)
# define NO_SAFE_RENAME
#endif
@@ -81,9 +82,7 @@
#include <sys/syscall.h>
#endif
-extern void Init_File(void);
-
-#ifdef __BEOS__
+#if defined(__BEOS__) || defined(__HAIKU__)
# ifndef NOFILE
# define NOFILE (OPEN_MAX)
# endif
@@ -109,6 +108,17 @@ extern void Init_File(void);
#define numberof(array) (int)(sizeof(array) / sizeof((array)[0]))
+#define IO_RBUF_CAPA_MIN 8192
+#define IO_CBUF_CAPA_MIN (128*1024)
+#define IO_RBUF_CAPA_FOR(fptr) (NEED_READCONV(fptr) ? IO_CBUF_CAPA_MIN : IO_RBUF_CAPA_MIN)
+#define IO_WBUF_CAPA_MIN 8192
+
+/* define system APIs */
+#ifdef _WIN32
+#undef open
+#define open rb_w32_uopen
+#endif
+
VALUE rb_cIO;
VALUE rb_eEOFError;
VALUE rb_eIOError;
@@ -126,28 +136,30 @@ VALUE rb_default_rs;
static VALUE argf;
-static ID id_write, id_read, id_getc, id_flush, id_readpartial;
+static ID id_write, id_read, id_getc, id_flush, id_readpartial, id_set_encoding;
static VALUE sym_mode, sym_perm, sym_extenc, sym_intenc, sym_encoding, sym_open_args;
-static VALUE sym_textmode, sym_binmode;
-
-struct timeval rb_time_interval(VALUE);
+static VALUE sym_textmode, sym_binmode, sym_autoclose;
struct argf {
VALUE filename, current_file;
- int gets_lineno;
- int init_p, next_p;
- VALUE lineno;
+ long last_lineno; /* $. */
+ long lineno;
VALUE argv;
char *inplace;
- int binmode;
struct rb_io_enc_t encs;
+ int8_t init_p, next_p, binmode;
};
static int max_file_descriptor = NOFILE;
-#define UPDATE_MAXFD(fd) \
- do { \
- if (max_file_descriptor < (fd)) max_file_descriptor = (fd); \
- } while (0)
+void
+rb_update_max_fd(int fd)
+{
+ struct stat buf;
+ if (fstat(fd, &buf) != 0 && errno == EBADF) {
+ rb_bug("rb_update_max_fd: invalid fd (%d) given.", fd);
+ }
+ if (max_file_descriptor < fd) max_file_descriptor = fd;
+}
#define argf_of(obj) (*(struct argf *)DATA_PTR(obj))
#define ARGF argf_of(argf)
@@ -162,22 +174,33 @@ static int max_file_descriptor = NOFILE;
# define STDIO_READ_DATA_PENDING(fp) ((fp)->FILE_COUNT > 0)
#elif defined(FILE_READEND)
# define STDIO_READ_DATA_PENDING(fp) ((fp)->FILE_READPTR < (fp)->FILE_READEND)
-#elif defined(__BEOS__)
-# define STDIO_READ_DATA_PENDING(fp) (fp->_state._eof == 0)
+#elif defined(__BEOS__) || defined(__HAIKU__)
+# define STDIO_READ_DATA_PENDING(fp) ((fp)->_state._eof == 0)
#else
# define STDIO_READ_DATA_PENDING(fp) (!feof(fp))
#endif
#define GetWriteIO(io) rb_io_get_write_io(io)
-#define READ_DATA_PENDING(fptr) ((fptr)->rbuf_len)
-#define READ_DATA_PENDING_COUNT(fptr) ((fptr)->rbuf_len)
-#define READ_DATA_PENDING_PTR(fptr) ((fptr)->rbuf+(fptr)->rbuf_off)
+#define READ_DATA_PENDING(fptr) ((fptr)->rbuf.len)
+#define READ_DATA_PENDING_COUNT(fptr) ((fptr)->rbuf.len)
+#define READ_DATA_PENDING_PTR(fptr) ((fptr)->rbuf.ptr+(fptr)->rbuf.off)
#define READ_DATA_BUFFERED(fptr) READ_DATA_PENDING(fptr)
+#define READ_CHAR_PENDING(fptr) ((fptr)->cbuf.len)
+#define READ_CHAR_PENDING_COUNT(fptr) ((fptr)->cbuf.len)
+#define READ_CHAR_PENDING_PTR(fptr) ((fptr)->cbuf.ptr+(fptr)->cbuf.off)
+
+#if defined(_WIN32)
+#define WAIT_FD_IN_WIN32(fptr) \
+ (rb_w32_has_cancel_io() ? 0 : rb_thread_wait_fd((fptr)->fd))
+#else
+#define WAIT_FD_IN_WIN32(fptr)
+#endif
+
#define READ_CHECK(fptr) do {\
if (!READ_DATA_PENDING(fptr)) {\
- rb_thread_wait_fd((fptr)->fd);\
+ WAIT_FD_IN_WIN32(fptr);\
rb_io_check_closed(fptr);\
}\
} while(0)
@@ -187,21 +210,166 @@ static int max_file_descriptor = NOFILE;
# define S_ISSOCK(m) _S_ISSOCK(m)
# else
# ifdef _S_IFSOCK
-# define S_ISSOCK(m) ((m & S_IFMT) == _S_IFSOCK)
+# define S_ISSOCK(m) (((m) & S_IFMT) == _S_IFSOCK)
# else
# ifdef S_IFSOCK
-# define S_ISSOCK(m) ((m & S_IFMT) == S_IFSOCK)
+# define S_ISSOCK(m) (((m) & S_IFMT) == S_IFSOCK)
# endif
# endif
# endif
#endif
+#define rb_sys_fail_path(path) rb_sys_fail_str(path)
+
+static int io_fflush(rb_io_t *);
+static rb_io_t *flush_before_seek(rb_io_t *fptr);
+
+#define NEED_NEWLINE_DECORATOR_ON_READ(fptr) ((fptr)->mode & FMODE_TEXTMODE)
+#define NEED_NEWLINE_DECORATOR_ON_WRITE(fptr) ((fptr)->mode & FMODE_TEXTMODE)
+#if defined(RUBY_TEST_CRLF_ENVIRONMENT) || defined(_WIN32)
+/* Windows */
+# define DEFAULT_TEXTMODE FMODE_TEXTMODE
+# define TEXTMODE_NEWLINE_DECORATOR_ON_WRITE ECONV_CRLF_NEWLINE_DECORATOR
+/*
+ * CRLF newline is set as default newline decorator.
+ * If only CRLF newline conversion is needed, we use binary IO process
+ * with OS's text mode for IO performance improvement.
+ * If encoding conversion is needed or a user sets text mode, we use encoding
+ * conversion IO process and universal newline decorator by default.
+ */
+#define NEED_READCONV(fptr) ((fptr)->encs.enc2 != NULL || (fptr)->encs.ecflags & ~ECONV_CRLF_NEWLINE_DECORATOR)
+#define NEED_WRITECONV(fptr) (((fptr)->encs.enc != NULL && (fptr)->encs.enc != rb_ascii8bit_encoding()) || ((fptr)->encs.ecflags & ((ECONV_DECORATOR_MASK & ~ECONV_CRLF_NEWLINE_DECORATOR)|ECONV_STATEFUL_DECORATOR_MASK)))
+#define SET_BINARY_MODE(fptr) setmode((fptr)->fd, O_BINARY)
+
+#define NEED_NEWLINE_DECORATOR_ON_READ_CHECK(fptr) do {\
+ if (NEED_NEWLINE_DECORATOR_ON_READ(fptr)) {\
+ if (((fptr)->mode & FMODE_READABLE) &&\
+ !((fptr)->encs.ecflags & ECONV_NEWLINE_DECORATOR_MASK)) {\
+ setmode((fptr)->fd, O_BINARY);\
+ }\
+ else {\
+ setmode((fptr)->fd, O_TEXT);\
+ }\
+ }\
+} while(0)
+
+#define SET_UNIVERSAL_NEWLINE_DECORATOR_IF_ENC2(enc2, ecflags) do {\
+ if ((enc2) && ((ecflags) & ECONV_DEFAULT_NEWLINE_DECORATOR)) {\
+ (ecflags) |= ECONV_UNIVERSAL_NEWLINE_DECORATOR;\
+ }\
+} while(0)
+
+/*
+ * IO unread with taking care of removed '\r' in text mode.
+ */
+static void
+io_unread(rb_io_t *fptr)
+{
+ off_t r, pos;
+ ssize_t read_size;
+ long i;
+ long newlines = 0;
+ long extra_max;
+ char *p;
+ char *buf;
+
+ rb_io_check_closed(fptr);
+ if (fptr->rbuf.len == 0 || fptr->mode & FMODE_DUPLEX) {
+ return;
+ }
+
+ errno = 0;
+ if (!rb_w32_fd_is_text(fptr->fd)) {
+ r = lseek(fptr->fd, -fptr->rbuf.len, SEEK_CUR);
+ if (r < 0 && errno) {
+ if (errno == ESPIPE)
+ fptr->mode |= FMODE_DUPLEX;
+ return;
+ }
+
+ fptr->rbuf.off = 0;
+ fptr->rbuf.len = 0;
+ return;
+ }
+
+ pos = lseek(fptr->fd, 0, SEEK_CUR);
+ if (pos < 0 && errno) {
+ if (errno == ESPIPE)
+ fptr->mode |= FMODE_DUPLEX;
+ return;
+ }
+
+ /* add extra offset for removed '\r' in rbuf */
+ extra_max = (long)(pos - fptr->rbuf.len);
+ p = fptr->rbuf.ptr + fptr->rbuf.off;
+ for (i = 0; i < fptr->rbuf.len; i++) {
+ if (*p == '\n') newlines++;
+ if (extra_max == newlines) break;
+ p++;
+ }
+
+ buf = ALLOC_N(char, fptr->rbuf.len + newlines);
+ while (newlines >= 0) {
+ r = lseek(fptr->fd, pos - fptr->rbuf.len - newlines, SEEK_SET);
+ if (newlines == 0) break;
+ if (r < 0) {
+ newlines--;
+ continue;
+ }
+ read_size = _read(fptr->fd, buf, fptr->rbuf.len + newlines);
+ if (read_size < 0) {
+ free(buf);
+ rb_sys_fail_path(fptr->pathv);
+ }
+ if (read_size == fptr->rbuf.len) {
+ lseek(fptr->fd, r, SEEK_SET);
+ break;
+ }
+ else {
+ newlines--;
+ }
+ }
+ free(buf);
+ fptr->rbuf.off = 0;
+ fptr->rbuf.len = 0;
+ return;
+}
+
+/*
+ * We use io_seek to back cursor position when changing mode from text to binary,
+ * but stdin and pipe cannot seek back. Stdin and pipe read should use encoding
+ * conversion for working properly with mode change.
+ *
+ * Return previous translation mode.
+ */
+static inline int
+set_binary_mode_with_seek_cur(rb_io_t *fptr)
+{
+ if (!rb_w32_fd_is_text(fptr->fd)) return O_BINARY;
+
+ if (fptr->rbuf.len == 0 || fptr->mode & FMODE_DUPLEX) {
+ return setmode(fptr->fd, O_BINARY);
+ }
+ flush_before_seek(fptr);
+ return setmode(fptr->fd, O_BINARY);
+}
+#define SET_BINARY_MODE_WITH_SEEK_CUR(fptr) set_binary_mode_with_seek_cur(fptr)
+
+#else
+/* Unix */
+# define DEFAULT_TEXTMODE 0
+#define NEED_READCONV(fptr) ((fptr)->encs.enc2 != NULL || NEED_NEWLINE_DECORATOR_ON_READ(fptr))
+#define NEED_WRITECONV(fptr) (((fptr)->encs.enc != NULL && (fptr)->encs.enc != rb_ascii8bit_encoding()) || NEED_NEWLINE_DECORATOR_ON_WRITE(fptr) || ((fptr)->encs.ecflags & (ECONV_DECORATOR_MASK|ECONV_STATEFUL_DECORATOR_MASK)))
+#define SET_BINARY_MODE(fptr) 0
+#define NEED_NEWLINE_DECORATOR_ON_READ_CHECK(fptr) 0
+#define SET_UNIVERSAL_NEWLINE_DECORATOR_IF_ENC2(enc2, ecflags) 0
+#define SET_BINARY_MODE_WITH_SEEK_CUR(fptr) 0
+#endif
+
#if !defined HAVE_SHUTDOWN && !defined shutdown
#define shutdown(a,b) 0
#endif
-#define rb_sys_fail_path(path) rb_sys_fail(NIL_P(path) ? 0 : RSTRING_PTR(path))
-
#if defined(_WIN32)
#define is_socket(fd, path) rb_w32_is_socket(fd)
#elif !defined(S_ISSOCK)
@@ -249,7 +417,6 @@ rb_io_check_closed(rb_io_t *fptr)
}
}
-static int io_fflush(rb_io_t *);
VALUE
rb_io_get_io(VALUE io)
@@ -275,21 +442,37 @@ rb_io_get_write_io(VALUE io)
return io;
}
+VALUE
+rb_io_set_write_io(VALUE io, VALUE w)
+{
+ VALUE write_io;
+ rb_io_check_initialized(RFILE(io)->fptr);
+ if (!RTEST(w)) {
+ w = 0;
+ }
+ else {
+ GetWriteIO(w);
+ }
+ write_io = RFILE(io)->fptr->tied_io_for_writing;
+ RFILE(io)->fptr->tied_io_for_writing = w;
+ return write_io ? write_io : Qnil;
+}
+
/*
* call-seq:
- * IO.try_convert(obj) -> io or nil
+ * IO.try_convert(obj) -> io or nil
*
* Try to convert <i>obj</i> into an IO, using to_io method.
* Returns converted IO or nil if <i>obj</i> cannot be converted
* for any reason.
*
- * IO.try_convert(STDOUT) # => STDOUT
- * IO.try_convert("STDOUT") # => nil
+ * IO.try_convert(STDOUT) #=> STDOUT
+ * IO.try_convert("STDOUT") #=> nil
*
* require 'zlib'
- * f = open("/tmp/zz.gz") # => #<File:/tmp/zz.gz>
- * z = Zlib::GzipReader.open(f) # => #<Zlib::GzipReader:0x81d8744>
- * IO.try_convert(z) # => #<File:/tmp/zz.gz>
+ * f = open("/tmp/zz.gz") #=> #<File:/tmp/zz.gz>
+ * z = Zlib::GzipReader.open(f) #=> #<Zlib::GzipReader:0x81d8744>
+ * IO.try_convert(z) #=> #<File:/tmp/zz.gz>
*
*/
static VALUE
@@ -298,24 +481,27 @@ rb_io_s_try_convert(VALUE dummy, VALUE io)
return rb_io_check_io(io);
}
+#if !(defined(RUBY_TEST_CRLF_ENVIRONMENT) || defined(_WIN32))
static void
io_unread(rb_io_t *fptr)
{
off_t r;
rb_io_check_closed(fptr);
- if (fptr->rbuf_len == 0 || fptr->mode & FMODE_DUPLEX)
+ if (fptr->rbuf.len == 0 || fptr->mode & FMODE_DUPLEX)
return;
/* xxx: target position may be negative if buffer is filled by ungetc */
- r = lseek(fptr->fd, -fptr->rbuf_len, SEEK_CUR);
- if (r < 0) {
+ errno = 0;
+ r = lseek(fptr->fd, -fptr->rbuf.len, SEEK_CUR);
+ if (r < 0 && errno) {
if (errno == ESPIPE)
fptr->mode |= FMODE_DUPLEX;
return;
}
- fptr->rbuf_off = 0;
- fptr->rbuf_len = 0;
+ fptr->rbuf.off = 0;
+ fptr->rbuf.len = 0;
return;
}
+#endif
static rb_encoding *io_input_encoding(rb_io_t *fptr);
@@ -324,31 +510,32 @@ io_ungetbyte(VALUE str, rb_io_t *fptr)
{
long len = RSTRING_LEN(str);
- if (fptr->rbuf == NULL) {
- fptr->rbuf_off = 0;
- fptr->rbuf_len = 0;
+ if (fptr->rbuf.ptr == NULL) {
+ const int min_capa = IO_RBUF_CAPA_FOR(fptr);
+ fptr->rbuf.off = 0;
+ fptr->rbuf.len = 0;
#if SIZEOF_LONG > SIZEOF_INT
if (len > INT_MAX)
rb_raise(rb_eIOError, "ungetbyte failed");
#endif
- if (len > 8192)
- fptr->rbuf_capa = (int)len;
+ if (len > min_capa)
+ fptr->rbuf.capa = (int)len;
else
- fptr->rbuf_capa = 8192;
- fptr->rbuf = ALLOC_N(char, fptr->rbuf_capa);
+ fptr->rbuf.capa = min_capa;
+ fptr->rbuf.ptr = ALLOC_N(char, fptr->rbuf.capa);
}
- if (fptr->rbuf_capa < len + fptr->rbuf_len) {
+ if (fptr->rbuf.capa < len + fptr->rbuf.len) {
rb_raise(rb_eIOError, "ungetbyte failed");
}
- if (fptr->rbuf_off < len) {
- MEMMOVE(fptr->rbuf+fptr->rbuf_capa-fptr->rbuf_len,
- fptr->rbuf+fptr->rbuf_off,
- char, fptr->rbuf_len);
- fptr->rbuf_off = fptr->rbuf_capa-fptr->rbuf_len;
+ if (fptr->rbuf.off < len) {
+ MEMMOVE(fptr->rbuf.ptr+fptr->rbuf.capa-fptr->rbuf.len,
+ fptr->rbuf.ptr+fptr->rbuf.off,
+ char, fptr->rbuf.len);
+ fptr->rbuf.off = fptr->rbuf.capa-fptr->rbuf.len;
}
- fptr->rbuf_off-=(int)len;
- fptr->rbuf_len+=(int)len;
- MEMMOVE(fptr->rbuf+fptr->rbuf_off, RSTRING_PTR(str), char, len);
+ fptr->rbuf.off-=(int)len;
+ fptr->rbuf.len+=(int)len;
+ MEMMOVE(fptr->rbuf.ptr+fptr->rbuf.off, RSTRING_PTR(str), char, len);
}
static rb_io_t *
@@ -361,9 +548,7 @@ flush_before_seek(rb_io_t *fptr)
return fptr;
}
-#define io_set_eof(fptr) (void)(((fptr)->mode & FMODE_TTY) && ((fptr)->mode |= FMODE_EOF))
-#define io_unset_eof(fptr) (fptr->mode &= ~FMODE_EOF)
-#define io_seek(fptr, ofs, whence) (io_unset_eof(fptr), lseek(flush_before_seek(fptr)->fd, ofs, whence))
+#define io_seek(fptr, ofs, whence) (errno = 0, lseek(flush_before_seek(fptr)->fd, (ofs), (whence)))
#define io_tell(fptr) lseek(flush_before_seek(fptr)->fd, 0, SEEK_CUR)
#ifndef SEEK_CUR
@@ -375,13 +560,13 @@ flush_before_seek(rb_io_t *fptr)
#define FMODE_SYNCWRITE (FMODE_SYNC|FMODE_WRITABLE)
void
-rb_io_check_readable(rb_io_t *fptr)
+rb_io_check_char_readable(rb_io_t *fptr)
{
rb_io_check_closed(fptr);
if (!(fptr->mode & FMODE_READABLE)) {
rb_raise(rb_eIOError, "not opened for reading");
}
- if (fptr->wbuf_len) {
+ if (fptr->wbuf.len) {
if (io_fflush(fptr) < 0)
rb_sys_fail(0);
}
@@ -393,6 +578,21 @@ rb_io_check_readable(rb_io_t *fptr)
}
}
+void
+rb_io_check_byte_readable(rb_io_t *fptr)
+{
+ rb_io_check_char_readable(fptr);
+ if (READ_CHAR_PENDING(fptr)) {
+ rb_raise(rb_eIOError, "byte oriented read for character buffered IO");
+ }
+}
+
+void
+rb_io_check_readable(rb_io_t *fptr)
+{
+ rb_io_check_byte_readable(fptr);
+}
+
static rb_encoding*
io_read_encoding(rb_io_t *fptr)
{
@@ -418,7 +618,7 @@ rb_io_check_writable(rb_io_t *fptr)
if (!(fptr->mode & FMODE_WRITABLE)) {
rb_raise(rb_eIOError, "not opened for writing");
}
- if (fptr->rbuf_len) {
+ if (fptr->rbuf.len) {
io_unread(fptr);
}
}
@@ -426,6 +626,9 @@ rb_io_check_writable(rb_io_t *fptr)
int
rb_io_read_pending(rb_io_t *fptr)
{
+ /* This function is used for bytes and chars. Confusing. */
+ if (READ_CHAR_PENDING(fptr))
+ return 1; /* should raise? */
return READ_DATA_PENDING(fptr);
}
@@ -461,6 +664,7 @@ ruby_dup(int orig)
rb_sys_fail(0);
}
}
+ rb_update_max_fd(fd);
return fd;
}
@@ -476,7 +680,7 @@ io_alloc(VALUE klass)
}
#ifndef S_ISREG
-# define S_ISREG(m) ((m & S_IFMT) == S_IFREG)
+# define S_ISREG(m) (((m) & S_IFMT) == S_IFREG)
#endif
static int
@@ -502,46 +706,52 @@ wsplit_p(rb_io_t *fptr)
return fptr->mode & FMODE_WSPLIT;
}
-struct io_internal_struct {
+struct io_internal_read_struct {
int fd;
void *buf;
size_t capa;
};
+struct io_internal_write_struct {
+ int fd;
+ const void *buf;
+ size_t capa;
+};
+
static VALUE
internal_read_func(void *ptr)
{
- struct io_internal_struct *iis = (struct io_internal_struct*)ptr;
+ struct io_internal_read_struct *iis = ptr;
return read(iis->fd, iis->buf, iis->capa);
}
static VALUE
internal_write_func(void *ptr)
{
- struct io_internal_struct *iis = (struct io_internal_struct*)ptr;
+ struct io_internal_write_struct *iis = ptr;
return write(iis->fd, iis->buf, iis->capa);
}
static ssize_t
rb_read_internal(int fd, void *buf, size_t count)
{
- struct io_internal_struct iis;
+ struct io_internal_read_struct iis;
iis.fd = fd;
iis.buf = buf;
iis.capa = count;
- return (ssize_t)rb_thread_blocking_region(internal_read_func, &iis, RUBY_UBF_IO, 0);
+ return (ssize_t)rb_thread_io_blocking_region(internal_read_func, &iis, fd);
}
static ssize_t
-rb_write_internal(int fd, void *buf, size_t count)
+rb_write_internal(int fd, const void *buf, size_t count)
{
- struct io_internal_struct iis;
+ struct io_internal_write_struct iis;
iis.fd = fd;
iis.buf = buf;
iis.capa = count;
- return (ssize_t)rb_thread_blocking_region(internal_write_func, &iis, RUBY_UBF_IO, 0);
+ return (ssize_t)rb_thread_io_blocking_region(internal_write_func, &iis, fd);
}
static long
@@ -556,69 +766,63 @@ io_writable_length(rb_io_t *fptr, long l)
}
static VALUE
-io_flush_buffer(VALUE arg)
+io_flush_buffer_sync(void *arg)
{
- rb_io_t *fptr = (rb_io_t *)arg;
- long l = io_writable_length(fptr, fptr->wbuf_len);
- return rb_write_internal(fptr->fd, fptr->wbuf+fptr->wbuf_off, l);
+ rb_io_t *fptr = arg;
+ long l = io_writable_length(fptr, fptr->wbuf.len);
+ ssize_t r = write(fptr->fd, fptr->wbuf.ptr+fptr->wbuf.off, (size_t)l);
+
+ if (fptr->wbuf.len <= r) {
+ fptr->wbuf.off = 0;
+ fptr->wbuf.len = 0;
+ return 0;
+ }
+ if (0 <= r) {
+ fptr->wbuf.off += (int)r;
+ fptr->wbuf.len -= (int)r;
+ errno = EAGAIN;
+ }
+ return (VALUE)-1;
}
-static int
-io_fflush(rb_io_t *fptr)
+static VALUE
+io_flush_buffer_async(VALUE arg)
{
- long r;
+ rb_io_t *fptr = (rb_io_t *)arg;
+ return rb_thread_io_blocking_region(io_flush_buffer_sync, fptr, fptr->fd);
+}
- rb_io_check_closed(fptr);
- if (fptr->wbuf_len == 0)
- return 0;
- if (!rb_thread_fd_writable(fptr->fd)) {
- rb_io_check_closed(fptr);
- }
- retry:
- if (fptr->wbuf_len == 0)
- return 0;
+static inline int
+io_flush_buffer(rb_io_t *fptr)
+{
if (fptr->write_lock) {
- r = rb_mutex_synchronize(fptr->write_lock, io_flush_buffer, (VALUE)fptr);
+ return (int)rb_mutex_synchronize(fptr->write_lock, io_flush_buffer_async, (VALUE)fptr);
}
else {
- long l = io_writable_length(fptr, fptr->wbuf_len);
- r = rb_write_internal(fptr->fd, fptr->wbuf+fptr->wbuf_off, l);
+ return (int)io_flush_buffer_async((VALUE)fptr);
}
- /* xxx: Other threads may modify wbuf.
- * A lock is required, definitely. */
+}
+
+static int
+io_fflush(rb_io_t *fptr)
+{
rb_io_check_closed(fptr);
- if (fptr->wbuf_len <= r) {
- fptr->wbuf_off = 0;
- fptr->wbuf_len = 0;
+ if (fptr->wbuf.len == 0)
return 0;
+ if (!rb_thread_fd_writable(fptr->fd)) {
+ rb_io_check_closed(fptr);
}
- if (0 <= r) {
- fptr->wbuf_off += (int)r;
- fptr->wbuf_len -= (int)r;
- errno = EAGAIN;
- }
- if (rb_io_wait_writable(fptr->fd)) {
+ while (fptr->wbuf.len > 0 && io_flush_buffer(fptr) != 0) {
+ if (!rb_io_wait_writable(fptr->fd))
+ return -1;
rb_io_check_closed(fptr);
- goto retry;
}
- return -1;
-}
-
-#ifdef HAVE_RB_FD_INIT
-static VALUE
-wait_readable(VALUE p)
-{
- rb_fdset_t *rfds = (rb_fdset_t *)p;
-
- return rb_thread_select(rb_fd_max(rfds), rb_fd_ptr(rfds), NULL, NULL, NULL);
+ return 0;
}
-#endif
int
rb_io_wait_readable(int f)
{
- rb_fdset_t rfds;
-
if (f < 0) {
rb_raise(rb_eIOError, "closed stream");
}
@@ -628,42 +832,23 @@ rb_io_wait_readable(int f)
case ERESTART:
#endif
rb_thread_wait_fd(f);
- return Qtrue;
+ return TRUE;
case EAGAIN:
#if defined(EWOULDBLOCK) && EWOULDBLOCK != EAGAIN
case EWOULDBLOCK:
#endif
- rb_fd_init(&rfds);
- rb_fd_set(f, &rfds);
-#ifdef HAVE_RB_FD_INIT
- rb_ensure(wait_readable, (VALUE)&rfds,
- (VALUE (*)(VALUE))rb_fd_term, (VALUE)&rfds);
-#else
- rb_thread_select(f + 1, rb_fd_ptr(&rfds), NULL, NULL, NULL);
-#endif
- return Qtrue;
+ rb_wait_for_single_fd(f, RB_WAITFD_IN, NULL);
+ return TRUE;
default:
- return Qfalse;
+ return FALSE;
}
}
-#ifdef HAVE_RB_FD_INIT
-static VALUE
-wait_writable(VALUE p)
-{
- rb_fdset_t *wfds = (rb_fdset_t *)p;
-
- return rb_thread_select(rb_fd_max(wfds), NULL, rb_fd_ptr(wfds), NULL, NULL);
-}
-#endif
-
int
rb_io_wait_writable(int f)
{
- rb_fdset_t wfds;
-
if (f < 0) {
rb_raise(rb_eIOError, "closed stream");
}
@@ -673,40 +858,20 @@ rb_io_wait_writable(int f)
case ERESTART:
#endif
rb_thread_fd_writable(f);
- return Qtrue;
+ return TRUE;
case EAGAIN:
#if defined(EWOULDBLOCK) && EWOULDBLOCK != EAGAIN
case EWOULDBLOCK:
#endif
- rb_fd_init(&wfds);
- rb_fd_set(f, &wfds);
-#ifdef HAVE_RB_FD_INIT
- rb_ensure(wait_writable, (VALUE)&wfds,
- (VALUE (*)(VALUE))rb_fd_term, (VALUE)&wfds);
-#else
- rb_thread_select(f + 1, NULL, rb_fd_ptr(&wfds), NULL, NULL);
-#endif
- return Qtrue;
+ rb_wait_for_single_fd(f, RB_WAITFD_OUT, NULL);
+ return TRUE;
default:
- return Qfalse;
+ return FALSE;
}
}
-#if defined(RUBY_TEST_CRLF_ENVIRONMENT) || defined(_WIN32)
-/* Windows */
-# define NEED_NEWLINE_DECORATOR_ON_READ(fptr) (!(fptr->mode & FMODE_BINMODE))
-# define NEED_NEWLINE_DECORATOR_ON_WRITE(fptr) (!(fptr->mode & FMODE_BINMODE))
-# define TEXTMODE_NEWLINE_DECORATOR_ON_WRITE ECONV_CRLF_NEWLINE_DECORATOR
-#else
-/* Unix */
-# define NEED_NEWLINE_DECORATOR_ON_READ(fptr) (fptr->mode & FMODE_TEXTMODE)
-# define NEED_NEWLINE_DECORATOR_ON_WRITE(fptr) 0
-#endif
-#define NEED_READCONV(fptr) (fptr->encs.enc2 != NULL || NEED_NEWLINE_DECORATOR_ON_READ(fptr))
-#define NEED_WRITECONV(fptr) ((fptr->encs.enc != NULL && fptr->encs.enc != rb_ascii8bit_encoding()) || NEED_NEWLINE_DECORATOR_ON_WRITE(fptr) || (fptr->encs.ecflags & (ECONV_DECORATOR_MASK|ECONV_STATEFUL_DECORATOR_MASK)))
-
static void
make_writeconv(rb_io_t *fptr)
{
@@ -718,12 +883,8 @@ make_writeconv(rb_io_t *fptr)
fptr->writeconv_initialized = 1;
- ecflags = fptr->encs.ecflags;
+ ecflags = fptr->encs.ecflags & ~ECONV_NEWLINE_DECORATOR_READ_MASK;
ecopts = fptr->encs.ecopts;
-#ifdef TEXTMODE_NEWLINE_DECORATOR_ON_WRITE
- if (NEED_NEWLINE_DECORATOR_ON_WRITE(fptr))
- ecflags |= TEXTMODE_NEWLINE_DECORATOR_ON_WRITE;
-#endif
if (!fptr->encs.enc || (fptr->encs.enc == rb_ascii8bit_encoding() && !fptr->encs.enc2)) {
/* no encoding conversion */
@@ -770,44 +931,49 @@ make_writeconv(rb_io_t *fptr)
struct binwrite_arg {
rb_io_t *fptr;
VALUE str;
- long offset;
+ const char *ptr;
long length;
};
+struct write_arg {
+ VALUE io;
+ VALUE str;
+ int nosync;
+};
+
static VALUE
io_binwrite_string(VALUE arg)
{
struct binwrite_arg *p = (struct binwrite_arg *)arg;
long l = io_writable_length(p->fptr, p->length);
- return rb_write_internal(p->fptr->fd, RSTRING_PTR(p->str)+p->offset, l);
+ return rb_write_internal(p->fptr->fd, p->ptr, l);
}
static long
-io_binwrite(VALUE str, rb_io_t *fptr, int nosync)
+io_binwrite(VALUE str, const char *ptr, long len, rb_io_t *fptr, int nosync)
{
- long len, n, r, offset = 0;
+ long n, r, offset = 0;
- len = RSTRING_LEN(str);
if ((n = len) <= 0) return n;
- if (fptr->wbuf == NULL && !(!nosync && (fptr->mode & FMODE_SYNC))) {
- fptr->wbuf_off = 0;
- fptr->wbuf_len = 0;
- fptr->wbuf_capa = 8192;
- fptr->wbuf = ALLOC_N(char, fptr->wbuf_capa);
+ if (fptr->wbuf.ptr == NULL && !(!nosync && (fptr->mode & FMODE_SYNC))) {
+ fptr->wbuf.off = 0;
+ fptr->wbuf.len = 0;
+ fptr->wbuf.capa = IO_WBUF_CAPA_MIN;
+ fptr->wbuf.ptr = ALLOC_N(char, fptr->wbuf.capa);
fptr->write_lock = rb_mutex_new();
}
if ((!nosync && (fptr->mode & (FMODE_SYNC|FMODE_TTY))) ||
- (fptr->wbuf && fptr->wbuf_capa <= fptr->wbuf_len + len)) {
+ (fptr->wbuf.ptr && fptr->wbuf.capa <= fptr->wbuf.len + len)) {
struct binwrite_arg arg;
/* xxx: use writev to avoid double write if available */
- if (fptr->wbuf_len && fptr->wbuf_len+len <= fptr->wbuf_capa) {
- if (fptr->wbuf_capa < fptr->wbuf_off+fptr->wbuf_len+len) {
- MEMMOVE(fptr->wbuf, fptr->wbuf+fptr->wbuf_off, char, fptr->wbuf_len);
- fptr->wbuf_off = 0;
+ if (fptr->wbuf.len && fptr->wbuf.len+len <= fptr->wbuf.capa) {
+ if (fptr->wbuf.capa < fptr->wbuf.off+fptr->wbuf.len+len) {
+ MEMMOVE(fptr->wbuf.ptr, fptr->wbuf.ptr+fptr->wbuf.off, char, fptr->wbuf.len);
+ fptr->wbuf.off = 0;
}
- MEMMOVE(fptr->wbuf+fptr->wbuf_off+fptr->wbuf_len, RSTRING_PTR(str)+offset, char, len);
- fptr->wbuf_len += (int)len;
+ MEMMOVE(fptr->wbuf.ptr+fptr->wbuf.off+fptr->wbuf.len, ptr+offset, char, len);
+ fptr->wbuf.len += (int)len;
n = 0;
}
if (io_fflush(fptr) < 0)
@@ -822,14 +988,14 @@ io_binwrite(VALUE str, rb_io_t *fptr, int nosync)
arg.fptr = fptr;
arg.str = str;
retry:
- arg.offset = offset;
+ arg.ptr = ptr + offset;
arg.length = n;
if (fptr->write_lock) {
r = rb_mutex_synchronize(fptr->write_lock, io_binwrite_string, (VALUE)&arg);
}
else {
long l = io_writable_length(fptr, n);
- r = rb_write_internal(fptr->fd, RSTRING_PTR(str)+offset, l);
+ r = rb_write_internal(fptr->fd, ptr+offset, l);
}
/* xxx: other threads may modify given string. */
if (r == n) return len;
@@ -840,37 +1006,42 @@ io_binwrite(VALUE str, rb_io_t *fptr, int nosync)
}
if (rb_io_wait_writable(fptr->fd)) {
rb_io_check_closed(fptr);
- if (offset < RSTRING_LEN(str))
+ if (offset < len)
goto retry;
}
return -1L;
}
- if (fptr->wbuf_off) {
- if (fptr->wbuf_len)
- MEMMOVE(fptr->wbuf, fptr->wbuf+fptr->wbuf_off, char, fptr->wbuf_len);
- fptr->wbuf_off = 0;
+ if (fptr->wbuf.off) {
+ if (fptr->wbuf.len)
+ MEMMOVE(fptr->wbuf.ptr, fptr->wbuf.ptr+fptr->wbuf.off, char, fptr->wbuf.len);
+ fptr->wbuf.off = 0;
}
- MEMMOVE(fptr->wbuf+fptr->wbuf_off+fptr->wbuf_len, RSTRING_PTR(str)+offset, char, len);
- fptr->wbuf_len += (int)len;
+ MEMMOVE(fptr->wbuf.ptr+fptr->wbuf.off+fptr->wbuf.len, ptr+offset, char, len);
+ fptr->wbuf.len += (int)len;
return len;
}
+# define MODE_BTMODE(a,b,c) ((fmode & FMODE_BINMODE) ? (b) : \
+ (fmode & FMODE_TEXTMODE) ? (c) : (a))
static VALUE
do_writeconv(VALUE str, rb_io_t *fptr)
{
if (NEED_WRITECONV(fptr)) {
VALUE common_encoding = Qnil;
+ SET_BINARY_MODE(fptr);
make_writeconv(fptr);
if (fptr->writeconv) {
+#define fmode (fptr->mode)
if (!NIL_P(fptr->writeconv_asciicompat))
common_encoding = fptr->writeconv_asciicompat;
- else if (!rb_enc_asciicompat(rb_enc_get(str))) {
+ else if (MODE_BTMODE(DEFAULT_TEXTMODE,0,1) && !rb_enc_asciicompat(rb_enc_get(str))) {
rb_raise(rb_eArgError, "ASCII incompatible string written for text mode IO without encoding conversion: %s",
rb_enc_name(rb_enc_get(str)));
}
+#undef fmode
}
else {
if (fptr->encs.enc2)
@@ -888,14 +1059,48 @@ do_writeconv(VALUE str, rb_io_t *fptr)
str = rb_econv_str_convert(fptr->writeconv, str, ECONV_PARTIAL_INPUT);
}
}
+#if defined(RUBY_TEST_CRLF_ENVIRONMENT) || defined(_WIN32)
+#define fmode (fptr->mode)
+ else if (MODE_BTMODE(DEFAULT_TEXTMODE,0,1)) {
+ if ((fptr->mode & FMODE_READABLE) &&
+ !(fptr->encs.ecflags & ECONV_NEWLINE_DECORATOR_MASK)) {
+ setmode(fptr->fd, O_BINARY);
+ }
+ else {
+ setmode(fptr->fd, O_TEXT);
+ }
+ if (!rb_enc_asciicompat(rb_enc_get(str))) {
+ rb_raise(rb_eArgError, "ASCII incompatible string written for text mode IO without encoding conversion: %s",
+ rb_enc_name(rb_enc_get(str)));
+ }
+ }
+#undef fmode
+#endif
return str;
}
static long
io_fwrite(VALUE str, rb_io_t *fptr, int nosync)
{
+#ifdef _WIN32
+ if (fptr->mode & FMODE_TTY) {
+ long len = rb_w32_write_console(str, fptr->fd);
+ if (len > 0) return len;
+ }
+#endif
str = do_writeconv(str, fptr);
- return io_binwrite(str, fptr, nosync);
+ return io_binwrite(str, RSTRING_PTR(str), RSTRING_LEN(str),
+ fptr, nosync);
+}
+
+ssize_t
+rb_io_bufwrite(VALUE io, const void *buf, size_t size)
+{
+ rb_io_t *fptr;
+
+ GetOpenFile(io, fptr);
+ rb_io_check_writable(fptr);
+ return (ssize_t)io_binwrite(0, buf, (long)size, fptr, 0);
}
static VALUE
@@ -927,14 +1132,14 @@ io_write(VALUE io, VALUE str, int nosync)
/*
* call-seq:
- * ios.write(string) => integer
+ * ios.write(string) -> integer
*
* Writes the given string to <em>ios</em>. The stream must be opened
* for writing. If the argument is not a string, it will be converted
* to a string using <code>to_s</code>. Returns the number of bytes
* written.
*
- * count = $stdout.write( "This is a test\n" )
+ * count = $stdout.write("This is a test\n")
* puts "That was #{count} bytes of data"
*
* <em>produces:</em>
@@ -957,7 +1162,7 @@ rb_io_write(VALUE io, VALUE str)
/*
* call-seq:
- * ios << obj => ios
+ * ios << obj -> ios
*
* String Output---Writes <i>obj</i> to <em>ios</em>.
* <i>obj</i> will be converted to a string using
@@ -980,7 +1185,7 @@ rb_io_addstr(VALUE io, VALUE str)
/*
* call-seq:
- * ios.flush => ios
+ * ios.flush -> ios
*
* Flushes any buffered data within <em>ios</em> to the underlying
* operating system (note that this is Ruby internal buffering only;
@@ -1010,7 +1215,9 @@ rb_io_flush(VALUE io)
if (io_fflush(fptr) < 0)
rb_sys_fail(0);
#ifdef _WIN32
- fsync(fptr->fd);
+ if (GetFileType((HANDLE)rb_w32_get_osfhandle(fptr->fd)) == FILE_TYPE_DISK) {
+ fsync(fptr->fd);
+ }
#endif
}
if (fptr->mode & FMODE_READABLE) {
@@ -1022,8 +1229,8 @@ rb_io_flush(VALUE io)
/*
* call-seq:
- * ios.pos => integer
- * ios.tell => integer
+ * ios.pos -> integer
+ * ios.tell -> integer
*
* Returns the current offset (in bytes) of <em>ios</em>.
*
@@ -1042,6 +1249,7 @@ rb_io_tell(VALUE io)
GetOpenFile(io, fptr);
pos = io_tell(fptr);
if (pos < 0 && errno) rb_sys_fail_path(fptr->pathv);
+ pos -= fptr->rbuf.len;
return OFFT2NUM(pos);
}
@@ -1061,7 +1269,7 @@ rb_io_seek(VALUE io, VALUE offset, int whence)
/*
* call-seq:
- * ios.seek(amount, whence=SEEK_SET) -> 0
+ * ios.seek(amount, whence=IO::SEEK_SET) -> 0
*
* Seeks to a given offset <i>anInteger</i> in the stream according to
* the value of <i>whence</i>:
@@ -1095,7 +1303,7 @@ rb_io_seek_m(int argc, VALUE *argv, VALUE io)
/*
* call-seq:
- * ios.pos = integer => integer
+ * ios.pos = integer -> integer
*
* Seeks to the given position (in bytes) in <em>ios</em>.
*
@@ -1113,7 +1321,7 @@ rb_io_set_pos(VALUE io, VALUE offset)
pos = NUM2OFFT(offset);
GetOpenFile(io, fptr);
pos = io_seek(fptr, pos, SEEK_SET);
- if (pos < 0) rb_sys_fail_path(fptr->pathv);
+ if (pos < 0 && errno) rb_sys_fail_path(fptr->pathv);
return OFFT2NUM(pos);
}
@@ -1122,7 +1330,7 @@ static void clear_readconv(rb_io_t *fptr);
/*
* call-seq:
- * ios.rewind => 0
+ * ios.rewind -> 0
*
* Positions <em>ios</em> to the beginning of input, resetting
* <code>lineno</code> to zero.
@@ -1132,6 +1340,8 @@ static void clear_readconv(rb_io_t *fptr);
* f.rewind #=> 0
* f.lineno #=> 0
* f.readline #=> "This is line one\n"
+ *
+ * Note that it cannot be used with streams such as pipes, ttys, and sockets.
*/
static VALUE
@@ -1140,9 +1350,14 @@ rb_io_rewind(VALUE io)
rb_io_t *fptr;
GetOpenFile(io, fptr);
- if (io_seek(fptr, 0L, 0) < 0) rb_sys_fail_path(fptr->pathv);
+ if (io_seek(fptr, 0L, 0) < 0 && errno) rb_sys_fail_path(fptr->pathv);
+#ifdef _WIN32
+ if (GetFileType((HANDLE)rb_w32_get_osfhandle(fptr->fd)) == FILE_TYPE_DISK) {
+ fsync(fptr->fd);
+ }
+#endif
if (io == ARGF.current_file) {
- ARGF.gets_lineno -= fptr->lineno;
+ ARGF.lineno -= fptr->lineno;
}
fptr->lineno = 0;
if (fptr->readconv) {
@@ -1157,39 +1372,37 @@ io_fillbuf(rb_io_t *fptr)
{
ssize_t r;
- if (fptr->mode & FMODE_EOF) {
- return -1;
- }
- if (fptr->rbuf == NULL) {
- fptr->rbuf_off = 0;
- fptr->rbuf_len = 0;
- fptr->rbuf_capa = 8192;
- fptr->rbuf = ALLOC_N(char, fptr->rbuf_capa);
+ if (fptr->rbuf.ptr == NULL) {
+ fptr->rbuf.off = 0;
+ fptr->rbuf.len = 0;
+ fptr->rbuf.capa = IO_RBUF_CAPA_FOR(fptr);
+ fptr->rbuf.ptr = ALLOC_N(char, fptr->rbuf.capa);
+#ifdef _WIN32
+ fptr->rbuf.capa--;
+#endif
}
- if (fptr->rbuf_len == 0) {
+ if (fptr->rbuf.len == 0) {
retry:
{
- r = rb_read_internal(fptr->fd, fptr->rbuf, fptr->rbuf_capa);
+ r = rb_read_internal(fptr->fd, fptr->rbuf.ptr, fptr->rbuf.capa);
}
if (r < 0) {
if (rb_io_wait_readable(fptr->fd))
goto retry;
rb_sys_fail_path(fptr->pathv);
}
- fptr->rbuf_off = 0;
- fptr->rbuf_len = (int)r; /* r should be <= rbuf_capa */
- if (r == 0) {
- io_set_eof(fptr);
+ fptr->rbuf.off = 0;
+ fptr->rbuf.len = (int)r; /* r should be <= rbuf_capa */
+ if (r == 0)
return -1; /* EOF */
- }
}
return 0;
}
/*
* call-seq:
- * ios.eof => true or false
- * ios.eof? => true or false
+ * ios.eof -> true or false
+ * ios.eof? -> true or false
*
* Returns true if <em>ios</em> is at end of file that means
* there are no more data to read.
@@ -1214,8 +1427,10 @@ io_fillbuf(rb_io_t *fptr)
* r, w = IO.pipe
* r.eof? # blocks forever
*
- * Note that <code>IO#eof?</code> reads data to a input buffer.
- * So <code>IO#sysread</code> doesn't work with <code>IO#eof?</code>.
+ * Note that <code>IO#eof?</code> reads data to the input byte buffer.
+ * So <code>IO#sysread</code> may not behave as you intend with
+ * <code>IO#eof?</code>, unless you call <code>IO#rewind</code>
+ * first (which is not available for some streams).
*/
VALUE
@@ -1224,10 +1439,16 @@ rb_io_eof(VALUE io)
rb_io_t *fptr;
GetOpenFile(io, fptr);
- rb_io_check_readable(fptr);
+ rb_io_check_char_readable(fptr);
+ if (READ_CHAR_PENDING(fptr)) return Qfalse;
if (READ_DATA_PENDING(fptr)) return Qfalse;
READ_CHECK(fptr);
+#if defined(RUBY_TEST_CRLF_ENVIRONMENT) || defined(_WIN32)
+ if (!NEED_READCONV(fptr) && NEED_NEWLINE_DECORATOR_ON_READ(fptr)) {
+ return eof(fptr->fd) ? Qtrue : Qfalse;
+ }
+#endif
if (io_fillbuf(fptr) < 0) {
return Qtrue;
}
@@ -1236,7 +1457,7 @@ rb_io_eof(VALUE io)
/*
* call-seq:
- * ios.sync => true or false
+ * ios.sync -> true or false
*
* Returns the current ``sync mode'' of <em>ios</em>. When sync mode is
* true, all output is immediately flushed to the underlying operating
@@ -1259,7 +1480,7 @@ rb_io_sync(VALUE io)
/*
* call-seq:
- * ios.sync = boolean => boolean
+ * ios.sync = boolean -> boolean
*
* Sets the ``sync mode'' to <code>true</code> or <code>false</code>.
* When sync mode is true, all output is immediately flushed to the
@@ -1289,16 +1510,25 @@ rb_io_set_sync(VALUE io, VALUE sync)
}
#ifdef HAVE_FSYNC
+static VALUE nogvl_fsync(void *ptr)
+{
+ rb_io_t *fptr = ptr;
+
+ return (VALUE)fsync(fptr->fd);
+}
+
/*
* call-seq:
- * ios.fsync => 0 or nil
+ * ios.fsync -> 0 or nil
*
* Immediately writes all buffered data in <em>ios</em> to disk.
- * Returns <code>nil</code> if the underlying operating system does not
- * support <em>fsync(2)</em>. Note that <code>fsync</code> differs from
+ * Note that <code>fsync</code> differs from
* using <code>IO#sync=</code>. The latter ensures that data is flushed
* from Ruby's buffers, but doesn't not guarantee that the underlying
* operating system actually writes it to disk.
+ *
+ * <code>NotImplementedError</code> is raised
+ * if the underlying operating system does not support <em>fsync(2)</em>.
*/
static VALUE
@@ -1311,18 +1541,60 @@ rb_io_fsync(VALUE io)
if (io_fflush(fptr) < 0)
rb_sys_fail(0);
- if (fsync(fptr->fd) < 0)
+#ifndef _WIN32 /* already called in io_fflush() */
+ if ((int)rb_thread_io_blocking_region(nogvl_fsync, fptr, fptr->fd) < 0)
rb_sys_fail_path(fptr->pathv);
+#endif
return INT2FIX(0);
}
#else
#define rb_io_fsync rb_f_notimplement
#endif
+#ifdef HAVE_FDATASYNC
+static VALUE nogvl_fdatasync(void *ptr)
+{
+ rb_io_t *fptr = ptr;
+
+ return (VALUE)fdatasync(fptr->fd);
+}
+
+/*
+ * call-seq:
+ * ios.fdatasync -> 0 or nil
+ *
+ * Immediately writes all buffered data in <em>ios</em> to disk.
+ *
+ * If the underlying operating system does not support <em>fdatasync(2)</em>,
+ * <code>IO#fsync</code> is called instead (which might raise a
+ * <code>NotImplementedError</code>).
+ */
+
+static VALUE
+rb_io_fdatasync(VALUE io)
+{
+ rb_io_t *fptr;
+
+ io = GetWriteIO(io);
+ GetOpenFile(io, fptr);
+
+ if (io_fflush(fptr) < 0)
+ rb_sys_fail(0);
+
+ if ((int)rb_thread_io_blocking_region(nogvl_fdatasync, fptr, fptr->fd) == 0)
+ return INT2FIX(0);
+
+ /* fall back */
+ return rb_io_fsync(io);
+}
+#else
+#define rb_io_fdatasync rb_io_fsync
+#endif
+
/*
* call-seq:
- * ios.fileno => fixnum
- * ios.to_i => fixnum
+ * ios.fileno -> fixnum
+ * ios.to_i -> fixnum
*
* Returns an integer representing the numeric file descriptor for
* <em>ios</em>.
@@ -1345,7 +1617,7 @@ rb_io_fileno(VALUE io)
/*
* call-seq:
- * ios.pid => fixnum
+ * ios.pid -> fixnum
*
* Returns the process ID of a child process associated with
* <em>ios</em>. This will be set by <code>IO.popen</code>.
@@ -1377,7 +1649,7 @@ rb_io_pid(VALUE io)
/*
* call-seq:
- * ios.inspect => string
+ * ios.inspect -> string
*
* Return a string describing this IO object.
*/
@@ -1386,36 +1658,34 @@ static VALUE
rb_io_inspect(VALUE obj)
{
rb_io_t *fptr;
- const char *cname;
- char fd_desc[256];
- const char *path;
- const char *st = "";
+ VALUE result;
+ static const char closed[] = " (closed)";
fptr = RFILE(rb_io_taint_check(obj))->fptr;
if (!fptr) return rb_any_to_s(obj);
- cname = rb_obj_classname(obj);
+ result = rb_str_new_cstr("#<");
+ rb_str_append(result, rb_class_name(CLASS_OF(obj)));
+ rb_str_cat2(result, ":");
if (NIL_P(fptr->pathv)) {
if (fptr->fd < 0) {
- path = "";
- st = "(closed)";
+ rb_str_cat(result, closed+1, strlen(closed)-1);
}
else {
- snprintf(fd_desc, sizeof(fd_desc), "fd %d", fptr->fd);
- path = fd_desc;
+ rb_str_catf(result, "fd %d", fptr->fd);
}
}
else {
- path = RSTRING_PTR(fptr->pathv);
+ rb_str_append(result, fptr->pathv);
if (fptr->fd < 0) {
- st = " (closed)";
+ rb_str_cat(result, closed, strlen(closed));
}
}
- return rb_sprintf("#<%s:%s%s>", cname, path, st);
+ return rb_str_cat2(result, ">");
}
/*
* call-seq:
- * ios.to_io -> ios
+ * ios.to_io -> ios
*
* Returns <em>ios</em>.
*/
@@ -1435,31 +1705,28 @@ read_buffered_data(char *ptr, long len, rb_io_t *fptr)
n = READ_DATA_PENDING_COUNT(fptr);
if (n <= 0) return 0;
if (n > len) n = (int)len;
- MEMMOVE(ptr, fptr->rbuf+fptr->rbuf_off, char, n);
- fptr->rbuf_off += n;
- fptr->rbuf_len -= n;
+ MEMMOVE(ptr, fptr->rbuf.ptr+fptr->rbuf.off, char, n);
+ fptr->rbuf.off += n;
+ fptr->rbuf.len -= n;
return n;
}
static long
-io_fread(VALUE str, long offset, rb_io_t *fptr)
+io_bufread(char *ptr, long len, rb_io_t *fptr)
{
- long len = RSTRING_LEN(str) - offset;
+ long offset = 0;
long n = len;
long c;
if (READ_DATA_PENDING(fptr) == 0) {
while (n > 0) {
again:
- c = rb_read_internal(fptr->fd, RSTRING_PTR(str)+offset, n);
- if (c == 0) {
- io_set_eof(fptr);
- break;
- }
+ c = rb_read_internal(fptr->fd, ptr+offset, n);
+ if (c == 0) break;
if (c < 0) {
if (rb_io_wait_readable(fptr->fd))
goto again;
- rb_sys_fail_path(fptr->pathv);
+ return -1;
}
offset += c;
if ((n -= c) <= 0) break;
@@ -1469,7 +1736,7 @@ io_fread(VALUE str, long offset, rb_io_t *fptr)
}
while (n > 0) {
- c = read_buffered_data(RSTRING_PTR(str)+offset, n, fptr);
+ c = read_buffered_data(ptr+offset, n, fptr);
if (c > 0) {
offset += c;
if ((n -= c) <= 0) break;
@@ -1483,6 +1750,29 @@ io_fread(VALUE str, long offset, rb_io_t *fptr)
return len - n;
}
+static long
+io_fread(VALUE str, long offset, rb_io_t *fptr)
+{
+ long len;
+
+ rb_str_locktmp(str);
+ len = io_bufread(RSTRING_PTR(str) + offset, RSTRING_LEN(str) - offset,
+ fptr);
+ rb_str_unlocktmp(str);
+ if (len < 0) rb_sys_fail_path(fptr->pathv);
+ return len;
+}
+
+ssize_t
+rb_io_bufread(VALUE io, void *buf, size_t size)
+{
+ rb_io_t *fptr;
+
+ GetOpenFile(io, fptr);
+ rb_io_check_readable(fptr);
+ return (ssize_t)io_bufread(buf, (long)size, fptr);
+}
+
#define SMALLBUF 100
static long
@@ -1493,7 +1783,7 @@ remain_size(rb_io_t *fptr)
off_t pos;
if (fstat(fptr->fd, &st) == 0 && S_ISREG(st.st_mode)
-#ifdef __BEOS__
+#if defined(__BEOS__) || defined(__HAIKU__)
&& (st.st_dev > 3)
#endif
)
@@ -1529,10 +1819,8 @@ make_readconv(rb_io_t *fptr, int size)
int ecflags;
VALUE ecopts;
const char *sname, *dname;
- ecflags = fptr->encs.ecflags;
+ ecflags = fptr->encs.ecflags & ~ECONV_NEWLINE_DECORATOR_WRITE_MASK;
ecopts = fptr->encs.ecopts;
- if (NEED_NEWLINE_DECORATOR_ON_READ(fptr))
- ecflags |= ECONV_UNIVERSAL_NEWLINE_DECORATOR;
if (fptr->encs.enc2) {
sname = rb_enc_name(fptr->encs.enc2);
dname = rb_enc_name(fptr->encs.enc);
@@ -1543,104 +1831,153 @@ make_readconv(rb_io_t *fptr, int size)
fptr->readconv = rb_econv_open_opts(sname, dname, ecflags, ecopts);
if (!fptr->readconv)
rb_exc_raise(rb_econv_open_exc(sname, dname, ecflags));
- fptr->cbuf_off = 0;
- fptr->cbuf_len = 0;
- fptr->cbuf_capa = size < 1024 ? 1024 : size;
- fptr->cbuf = ALLOC_N(char, fptr->cbuf_capa);
+ fptr->cbuf.off = 0;
+ fptr->cbuf.len = 0;
+ if (size < IO_CBUF_CAPA_MIN) size = IO_CBUF_CAPA_MIN;
+ fptr->cbuf.capa = size;
+ fptr->cbuf.ptr = ALLOC_N(char, fptr->cbuf.capa);
}
}
-static int
-more_char(rb_io_t *fptr)
+#define MORE_CHAR_SUSPENDED Qtrue
+#define MORE_CHAR_FINISHED Qnil
+static VALUE
+fill_cbuf(rb_io_t *fptr, int ec_flags)
{
const unsigned char *ss, *sp, *se;
unsigned char *ds, *dp, *de;
rb_econv_result_t res;
int putbackable;
int cbuf_len0;
+ VALUE exc;
- if (fptr->cbuf_len == fptr->cbuf_capa)
- return 0; /* cbuf full */
- if (fptr->cbuf_len == 0)
- fptr->cbuf_off = 0;
- else if (fptr->cbuf_off + fptr->cbuf_len == fptr->cbuf_capa) {
- memmove(fptr->cbuf, fptr->cbuf+fptr->cbuf_off, fptr->cbuf_len);
- fptr->cbuf_off = 0;
+ ec_flags |= ECONV_PARTIAL_INPUT;
+
+ if (fptr->cbuf.len == fptr->cbuf.capa)
+ return MORE_CHAR_SUSPENDED; /* cbuf full */
+ if (fptr->cbuf.len == 0)
+ fptr->cbuf.off = 0;
+ else if (fptr->cbuf.off + fptr->cbuf.len == fptr->cbuf.capa) {
+ memmove(fptr->cbuf.ptr, fptr->cbuf.ptr+fptr->cbuf.off, fptr->cbuf.len);
+ fptr->cbuf.off = 0;
}
- cbuf_len0 = fptr->cbuf_len;
+ cbuf_len0 = fptr->cbuf.len;
while (1) {
- ss = sp = (const unsigned char *)fptr->rbuf + fptr->rbuf_off;
- se = sp + fptr->rbuf_len;
- ds = dp = (unsigned char *)fptr->cbuf + fptr->cbuf_off + fptr->cbuf_len;
- de = (unsigned char *)fptr->cbuf + fptr->cbuf_capa;
- res = rb_econv_convert(fptr->readconv, &sp, se, &dp, de, ECONV_PARTIAL_INPUT|ECONV_AFTER_OUTPUT);
- fptr->rbuf_off += (int)(sp - ss);
- fptr->rbuf_len -= (int)(sp - ss);
- fptr->cbuf_len += (int)(dp - ds);
+ ss = sp = (const unsigned char *)fptr->rbuf.ptr + fptr->rbuf.off;
+ se = sp + fptr->rbuf.len;
+ ds = dp = (unsigned char *)fptr->cbuf.ptr + fptr->cbuf.off + fptr->cbuf.len;
+ de = (unsigned char *)fptr->cbuf.ptr + fptr->cbuf.capa;
+ res = rb_econv_convert(fptr->readconv, &sp, se, &dp, de, ec_flags);
+ fptr->rbuf.off += (int)(sp - ss);
+ fptr->rbuf.len -= (int)(sp - ss);
+ fptr->cbuf.len += (int)(dp - ds);
putbackable = rb_econv_putbackable(fptr->readconv);
if (putbackable) {
- rb_econv_putback(fptr->readconv, (unsigned char *)fptr->rbuf + fptr->rbuf_off - putbackable, putbackable);
- fptr->rbuf_off -= putbackable;
- fptr->rbuf_len += putbackable;
+ rb_econv_putback(fptr->readconv, (unsigned char *)fptr->rbuf.ptr + fptr->rbuf.off - putbackable, putbackable);
+ fptr->rbuf.off -= putbackable;
+ fptr->rbuf.len += putbackable;
}
- rb_econv_check_error(fptr->readconv);
+ exc = rb_econv_make_exception(fptr->readconv);
+ if (!NIL_P(exc))
+ return exc;
- if (cbuf_len0 != fptr->cbuf_len)
- return 0;
+ if (cbuf_len0 != fptr->cbuf.len)
+ return MORE_CHAR_SUSPENDED;
if (res == econv_finished) {
- clear_readconv(fptr);
- return -1;
+ return MORE_CHAR_FINISHED;
}
if (res == econv_source_buffer_empty) {
- if (fptr->rbuf_len == 0) {
- rb_thread_wait_fd(fptr->fd);
- rb_io_check_closed(fptr);
+ if (fptr->rbuf.len == 0) {
+ READ_CHECK(fptr);
if (io_fillbuf(fptr) == -1) {
- ds = dp = (unsigned char *)fptr->cbuf + fptr->cbuf_off + fptr->cbuf_len;
- de = (unsigned char *)fptr->cbuf + fptr->cbuf_capa;
+ if (!fptr->readconv) {
+ return MORE_CHAR_FINISHED;
+ }
+ ds = dp = (unsigned char *)fptr->cbuf.ptr + fptr->cbuf.off + fptr->cbuf.len;
+ de = (unsigned char *)fptr->cbuf.ptr + fptr->cbuf.capa;
res = rb_econv_convert(fptr->readconv, NULL, NULL, &dp, de, 0);
- fptr->cbuf_len += (int)(dp - ds);
+ fptr->cbuf.len += (int)(dp - ds);
rb_econv_check_error(fptr->readconv);
+ break;
}
}
}
}
+ if (cbuf_len0 != fptr->cbuf.len)
+ return MORE_CHAR_SUSPENDED;
+
+ return MORE_CHAR_FINISHED;
+}
+
+static VALUE
+more_char(rb_io_t *fptr)
+{
+ VALUE v;
+ v = fill_cbuf(fptr, ECONV_AFTER_OUTPUT);
+ if (v != MORE_CHAR_SUSPENDED && v != MORE_CHAR_FINISHED)
+ rb_exc_raise(v);
+ return v;
}
static VALUE
io_shift_cbuf(rb_io_t *fptr, int len, VALUE *strp)
{
- VALUE str;
- if (NIL_P(*strp)) {
- *strp = str = rb_str_new(fptr->cbuf+fptr->cbuf_off, len);
+ VALUE str = Qnil;
+ if (strp) {
+ str = *strp;
+ if (NIL_P(str)) {
+ *strp = str = rb_str_new(fptr->cbuf.ptr+fptr->cbuf.off, len);
+ }
+ else {
+ rb_str_cat(str, fptr->cbuf.ptr+fptr->cbuf.off, len);
+ }
+ OBJ_TAINT(str);
+ rb_enc_associate(str, fptr->encs.enc);
}
- else {
- size_t slen;
- str = *strp;
- slen = RSTRING_LEN(str);
- rb_str_resize(str, RSTRING_LEN(str) + len);
- memcpy(RSTRING_PTR(str)+slen, fptr->cbuf+fptr->cbuf_off, len);
- }
- fptr->cbuf_off += len;
- fptr->cbuf_len -= len;
- OBJ_TAINT(str);
- rb_enc_associate(str, fptr->encs.enc);
+ fptr->cbuf.off += len;
+ fptr->cbuf.len -= len;
/* xxx: set coderange */
- if (fptr->cbuf_len == 0)
- fptr->cbuf_off = 0;
- if (fptr->cbuf_off < fptr->cbuf_capa/2) {
- memmove(fptr->cbuf, fptr->cbuf+fptr->cbuf_off, fptr->cbuf_len);
- fptr->cbuf_off = 0;
+ if (fptr->cbuf.len == 0)
+ fptr->cbuf.off = 0;
+ else if (fptr->cbuf.capa/2 < fptr->cbuf.off) {
+ memmove(fptr->cbuf.ptr, fptr->cbuf.ptr+fptr->cbuf.off, fptr->cbuf.len);
+ fptr->cbuf.off = 0;
}
return str;
}
+static void
+io_setstrbuf(VALUE *str,long len)
+{
+#ifdef _WIN32
+ if (NIL_P(*str)) {
+ *str = rb_str_new(0, len+1);
+ rb_str_set_len(*str,len);
+ }
+ else {
+ StringValue(*str);
+ rb_str_modify(*str);
+ rb_str_resize(*str, len+1);
+ rb_str_set_len(*str,len);
+ }
+#else
+ if (NIL_P(*str)) {
+ *str = rb_str_new(0, len);
+ }
+ else {
+ StringValue(*str);
+ rb_str_modify(*str);
+ rb_str_resize(*str, len);
+ }
+#endif
+}
+
static VALUE
read_all(rb_io_t *fptr, long siz, VALUE str)
{
@@ -1651,19 +1988,29 @@ read_all(rb_io_t *fptr, long siz, VALUE str)
int cr;
if (NEED_READCONV(fptr)) {
- if (NIL_P(str)) str = rb_str_new(NULL, 0);
- else rb_str_set_len(str, 0);
+ SET_BINARY_MODE(fptr);
+ io_setstrbuf(&str,0);
make_readconv(fptr, 0);
while (1) {
- if (fptr->cbuf_len) {
- io_shift_cbuf(fptr, fptr->cbuf_len, &str);
+ VALUE v;
+ if (fptr->cbuf.len) {
+ io_shift_cbuf(fptr, fptr->cbuf.len, &str);
+ }
+ v = fill_cbuf(fptr, 0);
+ if (v != MORE_CHAR_SUSPENDED && v != MORE_CHAR_FINISHED) {
+ if (fptr->cbuf.len) {
+ io_shift_cbuf(fptr, fptr->cbuf.len, &str);
+ }
+ rb_exc_raise(v);
}
- if (more_char(fptr) == -1) {
+ if (v == MORE_CHAR_FINISHED) {
+ clear_readconv(fptr);
return io_enc_str(str, fptr);
}
}
}
+ NEED_NEWLINE_DECORATOR_ON_READ_CHECK(fptr);
bytes = 0;
pos = 0;
@@ -1671,12 +2018,7 @@ read_all(rb_io_t *fptr, long siz, VALUE str)
cr = 0;
if (siz == 0) siz = BUFSIZ;
- if (NIL_P(str)) {
- str = rb_str_new(0, siz);
- }
- else {
- rb_str_resize(str, siz);
- }
+ io_setstrbuf(&str,siz);
for (;;) {
READ_CHECK(fptr);
n = io_fread(str, bytes, fptr);
@@ -1685,7 +2027,7 @@ read_all(rb_io_t *fptr, long siz, VALUE str)
}
bytes += n;
if (cr != ENC_CODERANGE_BROKEN)
- pos = rb_str_coderange_scan_restartable(RSTRING_PTR(str) + pos, RSTRING_PTR(str) + bytes, enc, &cr);
+ pos += rb_str_coderange_scan_restartable(RSTRING_PTR(str) + pos, RSTRING_PTR(str) + bytes, enc, &cr);
if (bytes < siz) break;
siz += BUFSIZ;
rb_str_resize(str, siz);
@@ -1729,36 +2071,26 @@ io_getpartial(int argc, VALUE *argv, VALUE io, int nonblock)
rb_raise(rb_eArgError, "negative length %ld given", len);
}
- if (NIL_P(str)) {
- str = rb_str_new(0, len);
- }
- else {
- StringValue(str);
- rb_str_modify(str);
- rb_str_resize(str, len);
- }
+ io_setstrbuf(&str,len);
OBJ_TAINT(str);
GetOpenFile(io, fptr);
- rb_io_check_readable(fptr);
+ rb_io_check_byte_readable(fptr);
if (len == 0)
return str;
if (!nonblock)
READ_CHECK(fptr);
- if (RSTRING_LEN(str) != len) {
- modified:
- rb_raise(rb_eRuntimeError, "buffer string modified");
- }
n = read_buffered_data(RSTRING_PTR(str), len, fptr);
if (n <= 0) {
again:
- if (RSTRING_LEN(str) != len) goto modified;
if (nonblock) {
rb_io_set_nonblock(fptr);
}
+ rb_str_locktmp(str);
n = rb_read_internal(fptr->fd, RSTRING_PTR(str), len);
+ rb_str_unlocktmp(str);
if (n < 0) {
if (!nonblock && rb_io_wait_readable(fptr->fd))
goto again;
@@ -1766,9 +2098,6 @@ io_getpartial(int argc, VALUE *argv, VALUE io, int nonblock)
rb_mod_sys_fail(rb_mWaitReadable, "read would block");
rb_sys_fail_path(fptr->pathv);
}
- else if (n == 0) {
- io_set_eof(fptr);
- }
}
rb_str_resize(str, n);
@@ -1780,8 +2109,8 @@ io_getpartial(int argc, VALUE *argv, VALUE io, int nonblock)
/*
* call-seq:
- * ios.readpartial(maxlen) => string
- * ios.readpartial(maxlen, outbuf) => outbuf
+ * ios.readpartial(maxlen) -> string
+ * ios.readpartial(maxlen, outbuf) -> outbuf
*
* Reads at most <i>maxlen</i> bytes from the I/O stream.
* It blocks only if <em>ios</em> has no data immediately available.
@@ -1793,7 +2122,7 @@ io_getpartial(int argc, VALUE *argv, VALUE io, int nonblock)
* readpartial is designed for streams such as pipe, socket, tty, etc.
* It blocks only when no data immediately available.
* This means that it blocks only when following all conditions hold.
- * * the buffer in the IO object is empty.
+ * * the byte buffer in the IO object is empty.
* * the content of the stream is empty.
* * the stream is not reached to EOF.
*
@@ -1802,7 +2131,7 @@ io_getpartial(int argc, VALUE *argv, VALUE io, int nonblock)
* If EOF is reached, readpartial raises EOFError.
*
* When readpartial doesn't blocks, it returns or raises immediately.
- * If the buffer is not empty, it returns the data in the buffer.
+ * If the byte buffer is not empty, it returns the data in the buffer.
* Otherwise if the stream has some content,
* it returns the data in the stream.
* Otherwise if the stream is reached to EOF, it raises EOFError.
@@ -1827,7 +2156,7 @@ io_getpartial(int argc, VALUE *argv, VALUE io, int nonblock)
*
* Note that readpartial behaves similar to sysread.
* The differences are:
- * * If the buffer is not empty, read from the buffer instead of "sysread for buffered IO (IOError)".
+ * * If the byte buffer is not empty, read from the byte buffer instead of "sysread for buffered IO (IOError)".
* * It doesn't cause Errno::EWOULDBLOCK and Errno::EINTR. When readpartial meets EWOULDBLOCK and EINTR by read system call, readpartial retry the system call.
*
* The later means that readpartial is nonblocking-flag insensitive.
@@ -1849,8 +2178,8 @@ io_readpartial(int argc, VALUE *argv, VALUE io)
/*
* call-seq:
- * ios.read_nonblock(maxlen) => string
- * ios.read_nonblock(maxlen, outbuf) => outbuf
+ * ios.read_nonblock(maxlen) -> string
+ * ios.read_nonblock(maxlen, outbuf) -> outbuf
*
* Reads at most <i>maxlen</i> bytes from <em>ios</em> using
* the read(2) system call after O_NONBLOCK is set for
@@ -1869,7 +2198,7 @@ io_readpartial(int argc, VALUE *argv, VALUE io)
*
* read_nonblock causes EOFError on EOF.
*
- * If the read buffer is not empty,
+ * If the read byte buffer is not empty,
* read_nonblock reads from the buffer like readpartial.
* In this case, the read(2) system call is not called.
*
@@ -1878,14 +2207,21 @@ io_readpartial(int argc, VALUE *argv, VALUE io)
* until io is readable for avoiding busy loop.
* This can be done as follows.
*
+ * # emulates blocking read (readpartial).
* begin
* result = io.read_nonblock(maxlen)
- * rescue IO::WaitReadable, Errno::EINTR
+ * rescue IO::WaitReadable
* IO.select([io])
* retry
* end
*
- * Note that this is identical to readpartial
+ * Although IO#read_nonblock doesn't raise IO::WaitWritable.
+ * OpenSSL::Buffering#read_nonblock can raise IO::WaitWritable.
+ * If IO and SSL should be used polymorphically,
+ * IO::WaitWritable should be rescued too.
+ * See the document of OpenSSL::Buffering#read_nonblock for sample code.
+ *
+ * Note that this method is identical to readpartial
* except the non-blocking flag is set.
*/
@@ -1903,7 +2239,7 @@ io_read_nonblock(int argc, VALUE *argv, VALUE io)
/*
* call-seq:
- * ios.write_nonblock(string) => integer
+ * ios.write_nonblock(string) -> integer
*
* Writes the given string to <em>ios</em> using
* the write(2) system call after O_NONBLOCK is set for
@@ -1948,6 +2284,10 @@ io_read_nonblock(int argc, VALUE *argv, VALUE io)
* Note that this doesn't guarantee to write all data in string.
* The length written is reported as result and it should be checked later.
*
+ * On some platforms such as Windows, write_nonblock is not supported
+ * according to the kind of the IO object.
+ * In such cases, write_nonblock raises <code>Errno::EBADF</code>.
+ *
*/
static VALUE
@@ -1981,21 +2321,22 @@ rb_io_write_nonblock(VALUE io, VALUE str)
/*
* call-seq:
- * ios.read([length [, buffer]]) => string, buffer, or nil
+ * ios.read([length [, buffer]]) -> string, buffer, or nil
*
* Reads <i>length</i> bytes from the I/O stream.
*
- * <i>length</i> must be a non-negative integer or nil.
+ * <i>length</i> must be a non-negative integer or <code>nil</code>.
*
* If <i>length</i> is a positive integer,
- * it try to read <i>length</i> bytes.
- * It returns nil or a string which length is 1 to <i>length</i> bytes.
- * nil means it met EOF at beginning.
+ * it try to read <i>length</i> bytes without any conversion (binary mode).
+ * It returns <code>nil</code> or a string whose length is 1 to <i>length</i> bytes.
+ * <code>nil</code> means it met EOF at beginning.
* The 1 to <i>length</i>-1 bytes string means it met EOF after reading the result.
* The <i>length</i> bytes string means it doesn't meet EOF.
+ * The resulted string is always ASCII-8BIT encoding.
*
* If <i>length</i> is omitted or is <code>nil</code>,
- * it reads until EOF.
+ * it reads until EOF and the encoding conversion is applied.
* It returns a string even if EOF is met at beginning.
*
* If <i>length</i> is zero, it returns <code>""</code>.
@@ -2007,7 +2348,7 @@ rb_io_write_nonblock(VALUE io, VALUE str)
* depend on <i>length</i>.
* <code><i>ios</i>.read()</code> and
* <code><i>ios</i>.read(nil)</code> returns <code>""</code>.
- * <code><i>ios</i>.read(<i>positive-integer</i>)</code> returns nil.
+ * <code><i>ios</i>.read(<i>positive-integer</i>)</code> returns <code>nil</code>.
*
* f = File.new("testfile")
* f.read(16) #=> "This is line one"
@@ -2045,13 +2386,15 @@ io_read(int argc, VALUE *argv, VALUE io)
rb_io_t *fptr;
long n, len;
VALUE length, str;
+#if defined(RUBY_TEST_CRLF_ENVIRONMENT) || defined(_WIN32)
+ int previous_mode;
+#endif
rb_scan_args(argc, argv, "02", &length, &str);
if (NIL_P(length)) {
- if (!NIL_P(str)) StringValue(str);
GetOpenFile(io, fptr);
- rb_io_check_readable(fptr);
+ rb_io_check_char_readable(fptr);
return read_all(fptr, remain_size(fptr), str);
}
len = NUM2LONG(length);
@@ -2059,30 +2402,29 @@ io_read(int argc, VALUE *argv, VALUE io)
rb_raise(rb_eArgError, "negative length %ld given", len);
}
- if (NIL_P(str)) {
- str = rb_str_new(0, len);
- }
- else {
- StringValue(str);
- rb_str_modify(str);
- rb_str_resize(str,len);
- }
+ io_setstrbuf(&str,len);
GetOpenFile(io, fptr);
- rb_io_check_readable(fptr);
+ rb_io_check_byte_readable(fptr);
if (len == 0) return str;
READ_CHECK(fptr);
- if (RSTRING_LEN(str) != len) {
- rb_raise(rb_eRuntimeError, "buffer string modified");
- }
+#if defined(RUBY_TEST_CRLF_ENVIRONMENT) || defined(_WIN32)
+ previous_mode = set_binary_mode_with_seek_cur(fptr);
+#endif
n = io_fread(str, 0, fptr);
+#if defined(RUBY_TEST_CRLF_ENVIRONMENT) || defined(_WIN32)
+ if (previous_mode == O_TEXT) {
+ setmode(fptr->fd, O_TEXT);
+ }
+#endif
if (n == 0) {
if (fptr->fd < 0) return Qnil;
rb_str_resize(str, 0);
return Qnil;
}
rb_str_resize(str, n);
+ OBJ_TAINT(str);
return str;
}
@@ -2102,13 +2444,14 @@ appendline(rb_io_t *fptr, int delim, VALUE *strp, long *lp)
long limit = *lp;
if (NEED_READCONV(fptr)) {
+ SET_BINARY_MODE(fptr);
make_readconv(fptr, 0);
do {
const char *p, *e;
int searchlen;
- if (fptr->cbuf_len) {
- p = fptr->cbuf+fptr->cbuf_off;
- searchlen = fptr->cbuf_len;
+ if (fptr->cbuf.len) {
+ p = fptr->cbuf.ptr+fptr->cbuf.off;
+ searchlen = fptr->cbuf.len;
if (0 < limit && limit < searchlen)
searchlen = (int)limit;
e = memchr(p, delim, searchlen);
@@ -2118,8 +2461,8 @@ appendline(rb_io_t *fptr, int delim, VALUE *strp, long *lp)
*strp = str = rb_str_new(p, len);
else
rb_str_buf_cat(str, p, len);
- fptr->cbuf_off += len;
- fptr->cbuf_len -= len;
+ fptr->cbuf.off += len;
+ fptr->cbuf.len -= len;
limit -= len;
*lp = limit;
return delim;
@@ -2129,8 +2472,8 @@ appendline(rb_io_t *fptr, int delim, VALUE *strp, long *lp)
*strp = str = rb_str_new(p, searchlen);
else
rb_str_buf_cat(str, p, searchlen);
- fptr->cbuf_off += searchlen;
- fptr->cbuf_len -= searchlen;
+ fptr->cbuf.off += searchlen;
+ fptr->cbuf.len -= searchlen;
limit -= searchlen;
if (limit == 0) {
@@ -2138,11 +2481,13 @@ appendline(rb_io_t *fptr, int delim, VALUE *strp, long *lp)
return (unsigned char)RSTRING_PTR(str)[RSTRING_LEN(str)-1];
}
}
- } while (more_char(fptr) != -1);
+ } while (more_char(fptr) != MORE_CHAR_FINISHED);
+ clear_readconv(fptr);
*lp = limit;
return EOF;
}
+ NEED_NEWLINE_DECORATOR_ON_READ_CHECK(fptr);
do {
long pending = READ_DATA_PENDING_COUNT(fptr);
if (pending > 0) {
@@ -2169,8 +2514,7 @@ appendline(rb_io_t *fptr, int delim, VALUE *strp, long *lp)
if (limit == 0)
return (unsigned char)RSTRING_PTR(str)[RSTRING_LEN(str)-1];
}
- rb_thread_wait_fd(fptr->fd);
- rb_io_check_closed(fptr);
+ READ_CHECK(fptr);
} while (io_fillbuf(fptr) >= 0);
*lp = limit;
return EOF;
@@ -2179,6 +2523,34 @@ appendline(rb_io_t *fptr, int delim, VALUE *strp, long *lp)
static inline int
swallow(rb_io_t *fptr, int term)
{
+ if (NEED_READCONV(fptr)) {
+ rb_encoding *enc = io_read_encoding(fptr);
+ int needconv = rb_enc_mbminlen(enc) != 1;
+ SET_BINARY_MODE(fptr);
+ make_readconv(fptr, 0);
+ do {
+ size_t cnt;
+ while ((cnt = READ_CHAR_PENDING_COUNT(fptr)) > 0) {
+ const char *p = READ_CHAR_PENDING_PTR(fptr);
+ int i;
+ if (!needconv) {
+ if (*p != term) return TRUE;
+ i = (int)cnt;
+ while (--i && *++p == term);
+ }
+ else {
+ const char *e = p + cnt;
+ if (rb_enc_ascget(p, e, &i, enc) != term) return TRUE;
+ while ((p += i) < e && rb_enc_ascget(p, e, &i, enc) == term);
+ i = (int)(e - p);
+ }
+ io_shift_cbuf(fptr, (int)cnt - i, NULL);
+ }
+ } while (more_char(fptr) != MORE_CHAR_FINISHED);
+ return FALSE;
+ }
+
+ NEED_NEWLINE_DECORATOR_ON_READ_CHECK(fptr);
do {
size_t cnt;
while ((cnt = READ_DATA_PENDING_COUNT(fptr)) > 0) {
@@ -2186,20 +2558,19 @@ swallow(rb_io_t *fptr, int term)
const char *p = READ_DATA_PENDING_PTR(fptr);
int i;
if (cnt > sizeof buf) cnt = sizeof buf;
- if (*p != term) return Qtrue;
+ if (*p != term) return TRUE;
i = (int)cnt;
while (--i && *++p == term);
if (!read_buffered_data(buf, cnt - i, fptr)) /* must not fail */
rb_sys_fail_path(fptr->pathv);
}
- rb_thread_wait_fd(fptr->fd);
- rb_io_check_closed(fptr);
+ READ_CHECK(fptr);
} while (io_fillbuf(fptr) == 0);
- return Qfalse;
+ return FALSE;
}
static VALUE
-rb_io_getline_fast(rb_io_t *fptr, rb_encoding *enc)
+rb_io_getline_fast(rb_io_t *fptr, rb_encoding *enc, VALUE io)
{
VALUE str = Qnil;
int len = 0;
@@ -2219,8 +2590,8 @@ rb_io_getline_fast(rb_io_t *fptr, rb_encoding *enc)
}
if (NIL_P(str)) {
str = rb_str_new(p, pending);
- fptr->rbuf_off += pending;
- fptr->rbuf_len -= pending;
+ fptr->rbuf.off += pending;
+ fptr->rbuf.len -= pending;
}
else {
rb_str_resize(str, len + pending);
@@ -2228,11 +2599,10 @@ rb_io_getline_fast(rb_io_t *fptr, rb_encoding *enc)
}
len += pending;
if (cr != ENC_CODERANGE_BROKEN)
- pos = rb_str_coderange_scan_restartable(RSTRING_PTR(str) + pos, RSTRING_PTR(str) + len, enc, &cr);
+ pos += rb_str_coderange_scan_restartable(RSTRING_PTR(str) + pos, RSTRING_PTR(str) + len, enc, &cr);
if (e) break;
}
- rb_thread_wait_fd(fptr->fd);
- rb_io_check_closed(fptr);
+ READ_CHECK(fptr);
if (io_fillbuf(fptr) < 0) {
if (NIL_P(str)) return Qnil;
break;
@@ -2242,7 +2612,14 @@ rb_io_getline_fast(rb_io_t *fptr, rb_encoding *enc)
str = io_enc_str(str, fptr);
ENC_CODERANGE_SET(str, cr);
fptr->lineno++;
- ARGF.lineno = INT2FIX(fptr->lineno);
+ if (io == ARGF.current_file) {
+ ARGF.lineno++;
+ ARGF.last_lineno = ARGF.lineno;
+ }
+ else {
+ ARGF.last_lineno = fptr->lineno;
+ }
+
return str;
}
@@ -2275,7 +2652,7 @@ prepare_getline_args(int argc, VALUE *argv, VALUE *rsp, long *limit, VALUE io)
enc_io = io_read_encoding(fptr);
if (enc_io != enc_rs &&
(rb_enc_str_coderange(rs) != ENC_CODERANGE_7BIT ||
- !rb_enc_asciicompat(enc_io))) {
+ (RSTRING_LEN(rs) > 0 && !rb_enc_asciicompat(enc_io)))) {
if (rs == rb_default_rs) {
rs = rb_enc_str_new(0, 0, enc_io);
rb_str_buf_cat_ascii(rs, "\n");
@@ -2300,7 +2677,7 @@ rb_io_getline_1(VALUE rs, long limit, VALUE io)
rb_encoding *enc;
GetOpenFile(io, fptr);
- rb_io_check_readable(fptr);
+ rb_io_check_char_readable(fptr);
if (NIL_P(rs) && limit < 0) {
str = read_all(fptr, 0, Qnil);
if (RSTRING_LEN(str) == 0) return Qnil;
@@ -2310,7 +2687,8 @@ rb_io_getline_1(VALUE rs, long limit, VALUE io)
}
else if (rs == rb_default_rs && limit < 0 && !NEED_READCONV(fptr) &&
rb_enc_asciicompat(enc = io_read_encoding(fptr))) {
- return rb_io_getline_fast(fptr, enc);
+ NEED_NEWLINE_DECORATOR_ON_READ_CHECK(fptr);
+ return rb_io_getline_fast(fptr, enc, io);
}
else {
int c, newline = -1;
@@ -2319,6 +2697,9 @@ rb_io_getline_1(VALUE rs, long limit, VALUE io)
int rspara = 0;
int extra_limit = 16;
+ SET_BINARY_MODE(fptr);
+ enc = io_read_encoding(fptr);
+
if (!NIL_P(rs)) {
rslen = RSTRING_LEN(rs);
if (rslen == 0) {
@@ -2327,6 +2708,13 @@ rb_io_getline_1(VALUE rs, long limit, VALUE io)
rspara = 1;
swallow(fptr, '\n');
rs = 0;
+ if (!rb_enc_asciicompat(enc)) {
+ rs = rb_usascii_str_new(rsptr, rslen);
+ rs = rb_str_encode(rs, rb_enc_from_encoding(enc), 0, Qnil);
+ OBJ_FREEZE(rs);
+ rsptr = RSTRING_PTR(rs);
+ rslen = RSTRING_LEN(rs);
+ }
}
else {
rsptr = RSTRING_PTR(rs);
@@ -2335,7 +2723,6 @@ rb_io_getline_1(VALUE rs, long limit, VALUE io)
}
/* MS - Optimisation */
- enc = io_read_encoding(fptr);
while ((c = appendline(fptr, newline, &str, &limit)) != EOF) {
const char *s, *p, *pp, *e;
@@ -2379,7 +2766,13 @@ rb_io_getline_1(VALUE rs, long limit, VALUE io)
if (!NIL_P(str)) {
if (!nolimit) {
fptr->lineno++;
- ARGF.lineno = INT2FIX(fptr->lineno);
+ if (io == ARGF.current_file) {
+ ARGF.lineno++;
+ ARGF.last_lineno = ARGF.lineno;
+ }
+ else {
+ ARGF.last_lineno = fptr->lineno;
+ }
}
}
@@ -2404,9 +2797,9 @@ rb_io_gets(VALUE io)
/*
* call-seq:
- * ios.gets(sep=$/) => string or nil
- * ios.gets(limit) => string or nil
- * ios.gets(sep, limit) => string or nil
+ * ios.gets(sep=$/) -> string or nil
+ * ios.gets(limit) -> string or nil
+ * ios.gets(sep, limit) -> string or nil
*
* Reads the next ``line'' from the I/O stream; lines are separated by
* <i>sep</i>. A separator of <code>nil</code> reads the entire
@@ -2436,14 +2829,17 @@ rb_io_gets_m(int argc, VALUE *argv, VALUE io)
/*
* call-seq:
- * ios.lineno => integer
+ * ios.lineno -> integer
*
- * Returns the current line number in <em>ios</em>. The stream must be
+ * Returns the current line number in <em>ios</em>. The stream must be
* opened for reading. <code>lineno</code> counts the number of times
- * <code>gets</code> is called, rather than the number of newlines
- * encountered. The two values will differ if <code>gets</code> is
- * called with a separator other than newline. See also the
- * <code>$.</code> variable.
+ * #gets is called rather than the number of newlines encountered. The two
+ * values will differ if #gets is called with a separator other than newline.
+ *
+ * Methods that use <code>$/</code> like #each, #lines and #readline will
+ * also increment <code>lineno</code>.
+ *
+ * See also the <code>$.</code> variable.
*
* f = File.new("testfile")
* f.lineno #=> 0
@@ -2459,13 +2855,13 @@ rb_io_lineno(VALUE io)
rb_io_t *fptr;
GetOpenFile(io, fptr);
- rb_io_check_readable(fptr);
+ rb_io_check_char_readable(fptr);
return INT2NUM(fptr->lineno);
}
/*
* call-seq:
- * ios.lineno = integer => integer
+ * ios.lineno = integer -> integer
*
* Manually sets the current line number to the given value.
* <code>$.</code> is updated only on the next read.
@@ -2486,16 +2882,16 @@ rb_io_set_lineno(VALUE io, VALUE lineno)
rb_io_t *fptr;
GetOpenFile(io, fptr);
- rb_io_check_readable(fptr);
+ rb_io_check_char_readable(fptr);
fptr->lineno = NUM2INT(lineno);
return lineno;
}
/*
* call-seq:
- * ios.readline(sep=$/) => string
- * ios.readline(limit) => string
- * ios.readline(sep, limit) => string
+ * ios.readline(sep=$/) -> string
+ * ios.readline(limit) -> string
+ * ios.readline(sep, limit) -> string
*
* Reads a line as with <code>IO#gets</code>, but raises an
* <code>EOFError</code> on end of file.
@@ -2514,9 +2910,9 @@ rb_io_readline(int argc, VALUE *argv, VALUE io)
/*
* call-seq:
- * ios.readlines(sep=$/) => array
- * ios.readlines(limit) => array
- * ios.readlines(sep, limit) => array
+ * ios.readlines(sep=$/) -> array
+ * ios.readlines(limit) -> array
+ * ios.readlines(sep, limit) -> array
*
* Reads all of the lines in <em>ios</em>, and returns them in
* <i>anArray</i>. Lines are separated by the optional <i>sep</i>. If
@@ -2537,6 +2933,8 @@ rb_io_readlines(int argc, VALUE *argv, VALUE io)
long limit;
prepare_getline_args(argc, argv, &rs, &limit, io);
+ if (limit == 0)
+ rb_raise(rb_eArgError, "invalid limit: 0 for readlines");
ary = rb_ary_new();
while (!NIL_P(line = rb_io_getline_1(rs, limit, io))) {
rb_ary_push(ary, line);
@@ -2546,17 +2944,27 @@ rb_io_readlines(int argc, VALUE *argv, VALUE io)
/*
* call-seq:
- * ios.each(sep=$/) {|line| block } => ios
- * ios.each(limit) {|line| block } => ios
- * ios.each(sep,limit) {|line| block } => ios
- * ios.each_line(sep=$/) {|line| block } => ios
- * ios.each_line(limit) {|line| block } => ios
- * ios.each_line(sep,limit) {|line| block } => ios
+ * ios.each(sep=$/) {|line| block } -> ios
+ * ios.each(limit) {|line| block } -> ios
+ * ios.each(sep,limit) {|line| block } -> ios
+ * ios.each(...) -> an_enumerator
+ *
+ * ios.each_line(sep=$/) {|line| block } -> ios
+ * ios.each_line(limit) {|line| block } -> ios
+ * ios.each_line(sep,limit) {|line| block } -> ios
+ * ios.each_line(...) -> an_enumerator
+ *
+ * ios.lines(sep=$/) {|line| block } -> ios
+ * ios.lines(limit) {|line| block } -> ios
+ * ios.lines(sep,limit) {|line| block } -> ios
+ * ios.lines(...) -> an_enumerator
*
* Executes the block for every line in <em>ios</em>, where lines are
* separated by <i>sep</i>. <em>ios</em> must be opened for
* reading or an <code>IOError</code> will be raised.
*
+ * If no block is given, an enumerator is returned instead.
+ *
* f = File.new("testfile")
* f.each {|line| puts "#{f.lineno}: #{line}" }
*
@@ -2576,6 +2984,8 @@ rb_io_each_line(int argc, VALUE *argv, VALUE io)
RETURN_ENUMERATOR(io, argc, argv);
prepare_getline_args(argc, argv, &rs, &limit, io);
+ if (limit == 0)
+ rb_raise(rb_eArgError, "invalid limit: 0 for each_line");
while (!NIL_P(str = rb_io_getline_1(rs, limit, io))) {
rb_yield(str);
}
@@ -2584,12 +2994,18 @@ rb_io_each_line(int argc, VALUE *argv, VALUE io)
/*
* call-seq:
- * ios.each_byte {|byte| block } => ios
+ * ios.bytes {|byte| block } -> ios
+ * ios.bytes -> an_enumerator
+ *
+ * ios.each_byte {|byte| block } -> ios
+ * ios.each_byte -> an_enumerator
*
* Calls the given block once for each byte (0..255) in <em>ios</em>,
* passing the byte as an argument. The stream must be opened for
* reading or an <code>IOError</code> will be raised.
*
+ * If no block is given, an enumerator is returned instead.
+ *
* f = File.new("testfile")
* checksum = 0
* f.each_byte {|x| checksum ^= x } #=> #<File:testfile>
@@ -2606,16 +3022,13 @@ rb_io_each_byte(VALUE io)
GetOpenFile(io, fptr);
for (;;) {
- p = fptr->rbuf+fptr->rbuf_off;
- e = p + fptr->rbuf_len;
- while (p < e) {
- fptr->rbuf_off++;
- fptr->rbuf_len--;
+ while (fptr->rbuf.len > 0) {
+ p = fptr->rbuf.ptr + fptr->rbuf.off++;
+ e = p + fptr->rbuf.len--;
rb_yield(INT2FIX(*p & 0xff));
- p++;
- errno = 0;
+ errno = 0;
}
- rb_io_check_readable(fptr);
+ rb_io_check_byte_readable(fptr);
READ_CHECK(fptr);
if (io_fillbuf(fptr) < 0) {
break;
@@ -2632,66 +3045,80 @@ io_getc(rb_io_t *fptr, rb_encoding *enc)
if (NEED_READCONV(fptr)) {
VALUE str = Qnil;
+ rb_encoding *read_enc = io_read_encoding(fptr);
+ SET_BINARY_MODE(fptr);
make_readconv(fptr, 0);
while (1) {
- if (fptr->cbuf_len) {
- if (fptr->encs.enc)
- r = rb_enc_precise_mbclen(fptr->cbuf+fptr->cbuf_off,
- fptr->cbuf+fptr->cbuf_off+fptr->cbuf_len,
- fptr->encs.enc);
- else
- r = ONIGENC_CONSTRUCT_MBCLEN_CHARFOUND(1);
+ if (fptr->cbuf.len) {
+ r = rb_enc_precise_mbclen(fptr->cbuf.ptr+fptr->cbuf.off,
+ fptr->cbuf.ptr+fptr->cbuf.off+fptr->cbuf.len,
+ read_enc);
if (!MBCLEN_NEEDMORE_P(r))
break;
- if (fptr->cbuf_len == fptr->cbuf_capa) {
+ if (fptr->cbuf.len == fptr->cbuf.capa) {
rb_raise(rb_eIOError, "too long character");
}
}
- if (more_char(fptr) == -1) {
- if (fptr->cbuf_len == 0)
- return Qnil;
- /* return an incomplete character just before EOF */
- return io_shift_cbuf(fptr, fptr->cbuf_len, &str);
+ if (more_char(fptr) == MORE_CHAR_FINISHED) {
+ if (fptr->cbuf.len == 0) {
+ clear_readconv(fptr);
+ return Qnil;
+ }
+ /* return an unit of an incomplete character just before EOF */
+ str = rb_enc_str_new(fptr->cbuf.ptr+fptr->cbuf.off, 1, read_enc);
+ fptr->cbuf.off += 1;
+ fptr->cbuf.len -= 1;
+ if (fptr->cbuf.len == 0) clear_readconv(fptr);
+ ENC_CODERANGE_SET(str, ENC_CODERANGE_BROKEN);
+ return str;
}
}
if (MBCLEN_INVALID_P(r)) {
- r = rb_enc_mbclen(fptr->cbuf+fptr->cbuf_off,
- fptr->cbuf+fptr->cbuf_off+fptr->cbuf_len,
- fptr->encs.enc);
- return io_shift_cbuf(fptr, r, &str);
- }
- return io_shift_cbuf(fptr, MBCLEN_CHARFOUND_LEN(r), &str);
+ r = rb_enc_mbclen(fptr->cbuf.ptr+fptr->cbuf.off,
+ fptr->cbuf.ptr+fptr->cbuf.off+fptr->cbuf.len,
+ read_enc);
+ io_shift_cbuf(fptr, r, &str);
+ cr = ENC_CODERANGE_BROKEN;
+ }
+ else {
+ io_shift_cbuf(fptr, MBCLEN_CHARFOUND_LEN(r), &str);
+ cr = ISASCII(r) ? ENC_CODERANGE_7BIT : ENC_CODERANGE_VALID;
+ }
+ str = io_enc_str(str, fptr);
+ ENC_CODERANGE_SET(str, cr);
+ return str;
}
+ NEED_NEWLINE_DECORATOR_ON_READ_CHECK(fptr);
if (io_fillbuf(fptr) < 0) {
return Qnil;
}
- if (rb_enc_asciicompat(enc) && ISASCII(fptr->rbuf[fptr->rbuf_off])) {
- str = rb_str_new(fptr->rbuf+fptr->rbuf_off, 1);
- fptr->rbuf_off += 1;
- fptr->rbuf_len -= 1;
+ if (rb_enc_asciicompat(enc) && ISASCII(fptr->rbuf.ptr[fptr->rbuf.off])) {
+ str = rb_str_new(fptr->rbuf.ptr+fptr->rbuf.off, 1);
+ fptr->rbuf.off += 1;
+ fptr->rbuf.len -= 1;
cr = ENC_CODERANGE_7BIT;
}
else {
- r = rb_enc_precise_mbclen(fptr->rbuf+fptr->rbuf_off, fptr->rbuf+fptr->rbuf_off+fptr->rbuf_len, enc);
+ r = rb_enc_precise_mbclen(fptr->rbuf.ptr+fptr->rbuf.off, fptr->rbuf.ptr+fptr->rbuf.off+fptr->rbuf.len, enc);
if (MBCLEN_CHARFOUND_P(r) &&
- (n = MBCLEN_CHARFOUND_LEN(r)) <= fptr->rbuf_len) {
- str = rb_str_new(fptr->rbuf+fptr->rbuf_off, n);
- fptr->rbuf_off += n;
- fptr->rbuf_len -= n;
+ (n = MBCLEN_CHARFOUND_LEN(r)) <= fptr->rbuf.len) {
+ str = rb_str_new(fptr->rbuf.ptr+fptr->rbuf.off, n);
+ fptr->rbuf.off += n;
+ fptr->rbuf.len -= n;
cr = ENC_CODERANGE_VALID;
}
else if (MBCLEN_NEEDMORE_P(r)) {
- str = rb_str_new(fptr->rbuf+fptr->rbuf_off, fptr->rbuf_len);
- fptr->rbuf_len = 0;
+ str = rb_str_new(fptr->rbuf.ptr+fptr->rbuf.off, fptr->rbuf.len);
+ fptr->rbuf.len = 0;
getc_needmore:
if (io_fillbuf(fptr) != -1) {
- rb_str_cat(str, fptr->rbuf+fptr->rbuf_off, 1);
- fptr->rbuf_off++;
- fptr->rbuf_len--;
+ rb_str_cat(str, fptr->rbuf.ptr+fptr->rbuf.off, 1);
+ fptr->rbuf.off++;
+ fptr->rbuf.len--;
r = rb_enc_precise_mbclen(RSTRING_PTR(str), RSTRING_PTR(str)+RSTRING_LEN(str), enc);
if (MBCLEN_NEEDMORE_P(r)) {
goto getc_needmore;
@@ -2702,9 +3129,9 @@ io_getc(rb_io_t *fptr, rb_encoding *enc)
}
}
else {
- str = rb_str_new(fptr->rbuf+fptr->rbuf_off, 1);
- fptr->rbuf_off++;
- fptr->rbuf_len--;
+ str = rb_str_new(fptr->rbuf.ptr+fptr->rbuf.off, 1);
+ fptr->rbuf.off++;
+ fptr->rbuf.len--;
}
}
if (!cr) cr = ENC_CODERANGE_BROKEN;
@@ -2715,12 +3142,18 @@ io_getc(rb_io_t *fptr, rb_encoding *enc)
/*
* call-seq:
- * ios.each_char {|c| block } => ios
+ * ios.chars {|c| block } -> ios
+ * ios.chars -> an_enumerator
+ *
+ * ios.each_char {|c| block } -> ios
+ * ios.each_char -> an_enumerator
*
* Calls the given block once for each character in <em>ios</em>,
* passing the character as an argument. The stream must be opened for
* reading or an <code>IOError</code> will be raised.
*
+ * If no block is given, an enumerator is returned instead.
+ *
* f = File.new("testfile")
* f.each_char {|c| print c, ' ' } #=> #<File:testfile>
*/
@@ -2734,7 +3167,7 @@ rb_io_each_char(VALUE io)
RETURN_ENUMERATOR(io, 0, 0);
GetOpenFile(io, fptr);
- rb_io_check_readable(fptr);
+ rb_io_check_char_readable(fptr);
enc = io_input_encoding(fptr);
READ_CHECK(fptr);
@@ -2745,72 +3178,107 @@ rb_io_each_char(VALUE io)
}
-
/*
* call-seq:
- * ios.lines(sep=$/) => anEnumerator
- * ios.lines(limit) => anEnumerator
- * ios.lines(sep, limit) => anEnumerator
+ * ios.each_codepoint {|c| block } -> ios
+ * ios.codepoints {|c| block } -> ios
+ * ios.each_codepoint -> an_enumerator
+ * ios.codepoints -> an_enumerator
*
- * Returns an enumerator that gives each line in <em>ios</em>.
- * The stream must be opened for reading or an <code>IOError</code>
- * will be raised.
+ * Passes the <code>Integer</code> ordinal of each character in <i>ios</i>,
+ * passing the codepoint as an argument. The stream must be opened for
+ * reading or an <code>IOError</code> will be raised.
+ *
+ * If no block is given, an enumerator is returned instead.
*
- * f = File.new("testfile")
- * f.lines.to_a #=> ["foo\n", "bar\n"]
- * f.rewind
- * f.lines.sort #=> ["bar\n", "foo\n"]
*/
static VALUE
-rb_io_lines(int argc, VALUE *argv, VALUE io)
+rb_io_each_codepoint(VALUE io)
{
- return rb_enumeratorize(io, ID2SYM(rb_intern("each_line")), argc, argv);
-}
+ rb_io_t *fptr;
+ rb_encoding *enc;
+ unsigned int c;
+ int r, n;
-/*
- * call-seq:
- * ios.bytes => anEnumerator
- *
- * Returns an enumerator that gives each byte (0..255) in <em>ios</em>.
- * The stream must be opened for reading or an <code>IOError</code>
- * will be raised.
- *
- * f = File.new("testfile")
- * f.bytes.to_a #=> [104, 101, 108, 108, 111]
- * f.rewind
- * f.bytes.sort #=> [101, 104, 108, 108, 111]
- */
+ RETURN_ENUMERATOR(io, 0, 0);
+ GetOpenFile(io, fptr);
+ rb_io_check_char_readable(fptr);
-static VALUE
-rb_io_bytes(VALUE io)
-{
- return rb_enumeratorize(io, ID2SYM(rb_intern("each_byte")), 0, 0);
+ READ_CHECK(fptr);
+ if (NEED_READCONV(fptr)) {
+ SET_BINARY_MODE(fptr);
+ for (;;) {
+ make_readconv(fptr, 0);
+ for (;;) {
+ if (fptr->cbuf.len) {
+ if (fptr->encs.enc)
+ r = rb_enc_precise_mbclen(fptr->cbuf.ptr+fptr->cbuf.off,
+ fptr->cbuf.ptr+fptr->cbuf.off+fptr->cbuf.len,
+ fptr->encs.enc);
+ else
+ r = ONIGENC_CONSTRUCT_MBCLEN_CHARFOUND(1);
+ if (!MBCLEN_NEEDMORE_P(r))
+ break;
+ if (fptr->cbuf.len == fptr->cbuf.capa) {
+ rb_raise(rb_eIOError, "too long character");
+ }
+ }
+ if (more_char(fptr) == MORE_CHAR_FINISHED) {
+ clear_readconv(fptr);
+ /* ignore an incomplete character before EOF */
+ return io;
+ }
+ }
+ if (MBCLEN_INVALID_P(r)) {
+ rb_raise(rb_eArgError, "invalid byte sequence in %s",
+ rb_enc_name(fptr->encs.enc));
+ }
+ n = MBCLEN_CHARFOUND_LEN(r);
+ if (fptr->encs.enc) {
+ c = rb_enc_codepoint(fptr->cbuf.ptr+fptr->cbuf.off,
+ fptr->cbuf.ptr+fptr->cbuf.off+fptr->cbuf.len,
+ fptr->encs.enc);
+ }
+ else {
+ c = (unsigned char)fptr->cbuf.ptr[fptr->cbuf.off];
+ }
+ fptr->cbuf.off += n;
+ fptr->cbuf.len -= n;
+ rb_yield(UINT2NUM(c));
+ }
+ }
+ NEED_NEWLINE_DECORATOR_ON_READ_CHECK(fptr);
+ enc = io_input_encoding(fptr);
+ for (;;) {
+ if (io_fillbuf(fptr) < 0) {
+ return io;
+ }
+ r = rb_enc_precise_mbclen(fptr->rbuf.ptr+fptr->rbuf.off,
+ fptr->rbuf.ptr+fptr->rbuf.off+fptr->rbuf.len, enc);
+ if (MBCLEN_CHARFOUND_P(r) &&
+ (n = MBCLEN_CHARFOUND_LEN(r)) <= fptr->rbuf.len) {
+ c = rb_enc_codepoint(fptr->rbuf.ptr+fptr->rbuf.off,
+ fptr->rbuf.ptr+fptr->rbuf.off+fptr->rbuf.len, enc);
+ fptr->rbuf.off += n;
+ fptr->rbuf.len -= n;
+ rb_yield(UINT2NUM(c));
+ }
+ else if (MBCLEN_INVALID_P(r)) {
+ rb_raise(rb_eArgError, "invalid byte sequence in %s", rb_enc_name(enc));
+ }
+ else {
+ continue;
+ }
+ }
+ return io;
}
-/*
- * call-seq:
- * ios.chars => anEnumerator
- *
- * Returns an enumerator that gives each character in <em>ios</em>.
- * The stream must be opened for reading or an <code>IOError</code>
- * will be raised.
- *
- * f = File.new("testfile")
- * f.chars.to_a #=> ["h", "e", "l", "l", "o"]
- * f.rewind
- * f.chars.sort #=> ["e", "h", "l", "l", "o"]
- */
-static VALUE
-rb_io_chars(VALUE io)
-{
- return rb_enumeratorize(io, ID2SYM(rb_intern("each_char")), 0, 0);
-}
/*
* call-seq:
- * ios.getc => string or nil
+ * ios.getc -> string or nil
*
* Reads a one-character string from <em>ios</em>. Returns
* <code>nil</code> if called at end of file.
@@ -2827,7 +3295,7 @@ rb_io_getc(VALUE io)
rb_encoding *enc;
GetOpenFile(io, fptr);
- rb_io_check_readable(fptr);
+ rb_io_check_char_readable(fptr);
enc = io_input_encoding(fptr);
READ_CHECK(fptr);
@@ -2836,7 +3304,7 @@ rb_io_getc(VALUE io)
/*
* call-seq:
- * ios.readchar => string
+ * ios.readchar -> string
*
* Reads a one-character string from <em>ios</em>. Raises an
* <code>EOFError</code> on end of file.
@@ -2859,7 +3327,7 @@ rb_io_readchar(VALUE io)
/*
* call-seq:
- * ios.getbyte => fixnum or nil
+ * ios.getbyte -> fixnum or nil
*
* Gets the next 8-bit byte (0..255) from <em>ios</em>. Returns
* <code>nil</code> if called at end of file.
@@ -2876,7 +3344,7 @@ rb_io_getbyte(VALUE io)
int c;
GetOpenFile(io, fptr);
- rb_io_check_readable(fptr);
+ rb_io_check_byte_readable(fptr);
READ_CHECK(fptr);
if (fptr->fd == 0 && (fptr->mode & FMODE_TTY) && TYPE(rb_stdout) == T_FILE) {
rb_io_t *ofp;
@@ -2888,15 +3356,15 @@ rb_io_getbyte(VALUE io)
if (io_fillbuf(fptr) < 0) {
return Qnil;
}
- fptr->rbuf_off++;
- fptr->rbuf_len--;
- c = (unsigned char)fptr->rbuf[fptr->rbuf_off-1];
+ fptr->rbuf.off++;
+ fptr->rbuf.len--;
+ c = (unsigned char)fptr->rbuf.ptr[fptr->rbuf.off-1];
return INT2FIX(c & 0xff);
}
/*
* call-seq:
- * ios.readbyte => fixnum
+ * ios.readbyte -> fixnum
*
* Reads a byte as with <code>IO#getbyte</code>, but raises an
* <code>EOFError</code> on end of file.
@@ -2915,8 +3383,8 @@ rb_io_readbyte(VALUE io)
/*
* call-seq:
- * ios.ungetbyte(string) => nil
- * ios.ungetbyte(integer) => nil
+ * ios.ungetbyte(string) -> nil
+ * ios.ungetbyte(integer) -> nil
*
* Pushes back bytes (passed as a parameter) onto <em>ios</em>,
* such that a subsequent buffered read will return it. Only one byte
@@ -2936,8 +3404,7 @@ rb_io_ungetbyte(VALUE io, VALUE b)
rb_io_t *fptr;
GetOpenFile(io, fptr);
- rb_io_check_readable(fptr);
- io_unset_eof(fptr);
+ rb_io_check_byte_readable(fptr);
if (NIL_P(b)) return Qnil;
if (FIXNUM_P(b)) {
char cc = FIX2INT(b);
@@ -2952,10 +3419,10 @@ rb_io_ungetbyte(VALUE io, VALUE b)
/*
* call-seq:
- * ios.ungetc(string) => nil
+ * ios.ungetc(string) -> nil
*
* Pushes back one character (passed as a parameter) onto <em>ios</em>,
- * such that a subsequent buffered read will return it. Only one character
+ * such that a subsequent buffered character read will return it. Only one character
* may be pushed back before a subsequent read operation (that is,
* you will be able to read only the last of several characters that have been pushed
* back). Has no effect with unbuffered reads (such as <code>IO#sysread</code>).
@@ -2973,39 +3440,39 @@ rb_io_ungetc(VALUE io, VALUE c)
long len;
GetOpenFile(io, fptr);
- rb_io_check_readable(fptr);
- io_unset_eof(fptr);
+ rb_io_check_char_readable(fptr);
if (NIL_P(c)) return Qnil;
if (FIXNUM_P(c)) {
- int cc = FIX2INT(c);
- rb_encoding *enc = io_read_encoding(fptr);
- char buf[16];
-
- c = rb_str_new(buf, rb_enc_mbcput(cc, buf, enc));
+ c = rb_enc_uint_chr(FIX2UINT(c), io_read_encoding(fptr));
+ }
+ else if (TYPE(c) == T_BIGNUM) {
+ c = rb_enc_uint_chr(NUM2UINT(c), io_read_encoding(fptr));
}
else {
SafeStringValue(c);
}
if (NEED_READCONV(fptr)) {
+ SET_BINARY_MODE(fptr);
len = RSTRING_LEN(c);
#if SIZEOF_LONG > SIZEOF_INT
if (len > INT_MAX)
rb_raise(rb_eIOError, "ungetc failed");
#endif
make_readconv(fptr, (int)len);
- if (fptr->cbuf_capa - fptr->cbuf_len < len)
+ if (fptr->cbuf.capa - fptr->cbuf.len < len)
rb_raise(rb_eIOError, "ungetc failed");
- if (fptr->cbuf_off < len) {
- MEMMOVE(fptr->cbuf+fptr->cbuf_capa-fptr->cbuf_len,
- fptr->cbuf+fptr->cbuf_off,
- char, fptr->cbuf_len);
- fptr->cbuf_off = fptr->cbuf_capa-fptr->cbuf_len;
+ if (fptr->cbuf.off < len) {
+ MEMMOVE(fptr->cbuf.ptr+fptr->cbuf.capa-fptr->cbuf.len,
+ fptr->cbuf.ptr+fptr->cbuf.off,
+ char, fptr->cbuf.len);
+ fptr->cbuf.off = fptr->cbuf.capa-fptr->cbuf.len;
}
- fptr->cbuf_off -= (int)len;
- fptr->cbuf_len += (int)len;
- MEMMOVE(fptr->cbuf+fptr->cbuf_off, RSTRING_PTR(c), char, len);
+ fptr->cbuf.off -= (int)len;
+ fptr->cbuf.len += (int)len;
+ MEMMOVE(fptr->cbuf.ptr+fptr->cbuf.off, RSTRING_PTR(c), char, len);
}
else {
+ NEED_NEWLINE_DECORATOR_ON_READ_CHECK(fptr);
io_ungetbyte(c, fptr);
}
return Qnil;
@@ -3013,8 +3480,8 @@ rb_io_ungetc(VALUE io, VALUE c)
/*
* call-seq:
- * ios.isatty => true or false
- * ios.tty? => true or false
+ * ios.isatty -> true or false
+ * ios.tty? -> true or false
*
* Returns <code>true</code> if <em>ios</em> is associated with a
* terminal device (tty), <code>false</code> otherwise.
@@ -3037,7 +3504,7 @@ rb_io_isatty(VALUE io)
#if defined(HAVE_FCNTL) && defined(F_GETFD) && defined(F_SETFD) && defined(FD_CLOEXEC)
/*
* call-seq:
- * ios.close_on_exec? => true or false
+ * ios.close_on_exec? -> true or false
*
* Returns <code>true</code> if <em>ios</em> will be closed on exec.
*
@@ -3079,7 +3546,7 @@ rb_io_close_on_exec_p(VALUE io)
#if defined(HAVE_FCNTL) && defined(F_GETFD) && defined(F_SETFD) && defined(FD_CLOEXEC)
/*
* call-seq:
- * ios.close_on_exec = bool => true or false
+ * ios.close_on_exec = bool -> true or false
*
* Sets a close-on-exec flag.
*
@@ -3136,7 +3603,7 @@ finish_writeconv(rb_io_t *fptr, int noalloc)
unsigned char *ds, *dp, *de;
rb_econv_result_t res;
- if (!fptr->wbuf) {
+ if (!fptr->wbuf.ptr) {
unsigned char buf[1024];
long r;
@@ -3172,15 +3639,15 @@ finish_writeconv(rb_io_t *fptr, int noalloc)
res = econv_destination_buffer_full;
while (res == econv_destination_buffer_full) {
- if (fptr->wbuf_len == fptr->wbuf_capa) {
+ if (fptr->wbuf.len == fptr->wbuf.capa) {
if (io_fflush(fptr) < 0)
return noalloc ? Qtrue : INT2NUM(errno);
}
- ds = dp = (unsigned char *)fptr->wbuf + fptr->wbuf_off + fptr->wbuf_len;
- de = (unsigned char *)fptr->wbuf + fptr->wbuf_capa;
+ ds = dp = (unsigned char *)fptr->wbuf.ptr + fptr->wbuf.off + fptr->wbuf.len;
+ de = (unsigned char *)fptr->wbuf.ptr + fptr->wbuf.capa;
res = rb_econv_convert(fptr->writeconv, NULL, NULL, &dp, de, 0);
- fptr->wbuf_len += (int)(dp - ds);
+ fptr->wbuf.len += (int)(dp - ds);
if (res == econv_invalid_byte_sequence ||
res == econv_incomplete_input ||
res == econv_undefined_conversion) {
@@ -3207,7 +3674,7 @@ fptr_finalize(rb_io_t *fptr, int noraise)
{
VALUE err = Qnil;
if (fptr->writeconv) {
- if (fptr->write_lock) {
+ if (fptr->write_lock && !noraise) {
struct finish_writeconv_arg arg;
arg.fptr = fptr;
arg.noalloc = noraise;
@@ -3217,12 +3684,18 @@ fptr_finalize(rb_io_t *fptr, int noraise)
err = finish_writeconv(fptr, noraise);
}
}
- if (fptr->wbuf_len) {
- if (io_fflush(fptr) < 0 && NIL_P(err))
- err = noraise ? Qtrue : INT2NUM(errno);
+ if (fptr->wbuf.len) {
+ if (noraise) {
+ if ((int)io_flush_buffer_sync(fptr) < 0 && NIL_P(err))
+ err = Qtrue;
+ }
+ else {
+ if (io_fflush(fptr) < 0 && NIL_P(err))
+ err = INT2NUM(errno);
+ }
}
if (IS_PREP_STDIO(fptr) || fptr->fd <= 2) {
- goto check_err;
+ goto skip_fd_close;
}
if (fptr->stdio_file) {
/* fptr->stdio_file is deallocated anyway
@@ -3237,11 +3710,11 @@ fptr_finalize(rb_io_t *fptr, int noraise)
if (close(fptr->fd) < 0 && NIL_P(err))
err = noraise ? Qtrue : INT2NUM(errno);
}
+ skip_fd_close:
fptr->fd = -1;
fptr->stdio_file = 0;
fptr->mode &= ~(FMODE_READABLE|FMODE_WRITABLE);
- check_err:
if (!NIL_P(err) && !noraise) {
switch(TYPE(err)) {
case T_FIXNUM:
@@ -3273,9 +3746,9 @@ clear_readconv(rb_io_t *fptr)
rb_econv_close(fptr->readconv);
fptr->readconv = NULL;
}
- if (fptr->cbuf) {
- free(fptr->cbuf);
- fptr->cbuf = NULL;
+ if (fptr->cbuf.ptr) {
+ free(fptr->cbuf.ptr);
+ fptr->cbuf.ptr = NULL;
}
}
@@ -3301,22 +3774,36 @@ rb_io_fptr_finalize(rb_io_t *fptr)
{
if (!fptr) return 0;
fptr->pathv = Qnil;
- fptr->write_lock = 0;
if (0 <= fptr->fd)
- rb_io_fptr_cleanup(fptr, Qtrue);
- if (fptr->rbuf) {
- free(fptr->rbuf);
- fptr->rbuf = 0;
+ rb_io_fptr_cleanup(fptr, TRUE);
+ fptr->write_lock = 0;
+ if (fptr->rbuf.ptr) {
+ free(fptr->rbuf.ptr);
+ fptr->rbuf.ptr = 0;
}
- if (fptr->wbuf) {
- free(fptr->wbuf);
- fptr->wbuf = 0;
+ if (fptr->wbuf.ptr) {
+ free(fptr->wbuf.ptr);
+ fptr->wbuf.ptr = 0;
}
clear_codeconv(fptr);
free(fptr);
return 1;
}
+size_t rb_econv_memsize(rb_econv_t *);
+
+RUBY_FUNC_EXPORTED size_t
+rb_io_memsize(const rb_io_t *fptr)
+{
+ size_t size = sizeof(rb_io_t);
+ size += fptr->rbuf.capa;
+ size += fptr->wbuf.capa;
+ size += fptr->cbuf.capa;
+ if (fptr->readconv) size += rb_econv_memsize(fptr->readconv);
+ if (fptr->writeconv) size += rb_econv_memsize(fptr->writeconv);
+ return size;
+}
+
VALUE
rb_io_close(VALUE io)
{
@@ -3329,7 +3816,7 @@ rb_io_close(VALUE io)
if (io != write_io) {
write_fptr = RFILE(write_io)->fptr;
if (write_fptr && 0 <= write_fptr->fd) {
- rb_io_fptr_cleanup(write_fptr, Qtrue);
+ rb_io_fptr_cleanup(write_fptr, TRUE);
}
}
@@ -3338,7 +3825,13 @@ rb_io_close(VALUE io)
if (fptr->fd < 0) return Qnil;
fd = fptr->fd;
- rb_io_fptr_cleanup(fptr, Qfalse);
+#if defined __APPLE__ && defined(__MACH__) && \
+ (!defined(MAC_OS_X_VERSION_MIN_ALLOWED) || MAC_OS_X_VERSION_MIN_ALLOWED <= 1050)
+ /* close(2) on a fd which is being read by another thread causes
+ * deadlock on Mac OS X 10.5 */
+ rb_thread_fd_close(fd);
+#endif
+ rb_io_fptr_cleanup(fptr, FALSE);
rb_thread_fd_close(fd);
if (fptr->pid) {
@@ -3351,7 +3844,7 @@ rb_io_close(VALUE io)
/*
* call-seq:
- * ios.close => nil
+ * ios.close -> nil
*
* Closes <em>ios</em> and flushes any pending writes to the operating
* system. The stream is unavailable for any further data operations;
@@ -3388,7 +3881,7 @@ io_close(VALUE io)
/*
* call-seq:
- * ios.closed? => true or false
+ * ios.closed? -> true or false
*
* Returns <code>true</code> if <em>ios</em> is completely closed (for
* duplex streams, both reader and writer), <code>false</code>
@@ -3427,7 +3920,7 @@ rb_io_closed(VALUE io)
/*
* call-seq:
- * ios.close_read => nil
+ * ios.close_read -> nil
*
* Closes the read end of a duplex I/O stream (i.e., one that contains
* both a read and a write stream, such as a pipe). Will raise an
@@ -3468,7 +3961,7 @@ rb_io_close_read(VALUE io)
write_io = GetWriteIO(io);
if (io != write_io) {
rb_io_t *wfptr;
- rb_io_fptr_cleanup(fptr, Qfalse);
+ rb_io_fptr_cleanup(fptr, FALSE);
GetOpenFile(write_io, wfptr);
RFILE(io)->fptr = wfptr;
RFILE(write_io)->fptr = NULL;
@@ -3484,7 +3977,7 @@ rb_io_close_read(VALUE io)
/*
* call-seq:
- * ios.close_write => nil
+ * ios.close_write -> nil
*
* Closes the write end of a duplex I/O stream (i.e., one that contains
* both a read and a write stream, such as a pipe). Will raise an
@@ -3539,7 +4032,7 @@ rb_io_close_write(VALUE io)
/*
* call-seq:
- * ios.sysseek(offset, whence=SEEK_SET) => integer
+ * ios.sysseek(offset, whence=IO::SEEK_SET) -> integer
*
* Seeks to a given <i>offset</i> in the stream according to the value
* of <i>whence</i> (see <code>IO#seek</code> for values of
@@ -3563,21 +4056,23 @@ rb_io_sysseek(int argc, VALUE *argv, VALUE io)
}
pos = NUM2OFFT(offset);
GetOpenFile(io, fptr);
- if ((fptr->mode & FMODE_READABLE) && READ_DATA_BUFFERED(fptr)) {
+ if ((fptr->mode & FMODE_READABLE) &&
+ (READ_DATA_BUFFERED(fptr) || READ_CHAR_PENDING(fptr))) {
rb_raise(rb_eIOError, "sysseek for buffered IO");
}
- if ((fptr->mode & FMODE_WRITABLE) && fptr->wbuf_len) {
+ if ((fptr->mode & FMODE_WRITABLE) && fptr->wbuf.len) {
rb_warn("sysseek for buffered IO");
}
+ errno = 0;
pos = lseek(fptr->fd, pos, whence);
- if (pos == -1) rb_sys_fail_path(fptr->pathv);
+ if (pos == -1 && errno) rb_sys_fail_path(fptr->pathv);
return OFFT2NUM(pos);
}
/*
* call-seq:
- * ios.syswrite(string) => integer
+ * ios.syswrite(string) -> integer
*
* Writes the given string to <em>ios</em> using a low-level write.
* Returns the number of bytes written. Do not mix with other methods
@@ -3602,14 +4097,14 @@ rb_io_syswrite(VALUE io, VALUE str)
GetOpenFile(io, fptr);
rb_io_check_writable(fptr);
- if (fptr->wbuf_len) {
+ if (fptr->wbuf.len) {
rb_warn("syswrite for buffered IO");
}
if (!rb_thread_fd_writable(fptr->fd)) {
rb_io_check_closed(fptr);
}
- n = write(fptr->fd, RSTRING_PTR(str), RSTRING_LEN(str));
+ n = rb_write_internal(fptr->fd, RSTRING_PTR(str), RSTRING_LEN(str));
if (n == -1) rb_sys_fail_path(fptr->pathv);
@@ -3618,10 +4113,10 @@ rb_io_syswrite(VALUE io, VALUE str)
/*
* call-seq:
- * ios.sysread(integer[, outbuf]) => string
+ * ios.sysread(maxlen[, outbuf]) -> string
*
- * Reads <i>integer</i> bytes from <em>ios</em> using a low-level
- * read and returns them as a string. Do not mix with other methods
+ * Reads <i>maxlen</i> bytes from <em>ios</em> using a low-level
+ * read and returns them as a string. Do not mix with other methods
* that read from <em>ios</em> or you may get unpredictable results.
* If the optional <i>outbuf</i> argument is present, it must reference
* a String, which will receive the data.
@@ -3642,18 +4137,11 @@ rb_io_sysread(int argc, VALUE *argv, VALUE io)
rb_scan_args(argc, argv, "11", &len, &str);
ilen = NUM2LONG(len);
- if (NIL_P(str)) {
- str = rb_str_new(0, ilen);
- }
- else {
- StringValue(str);
- rb_str_modify(str);
- rb_str_resize(str, ilen);
- }
+ io_setstrbuf(&str,ilen);
if (ilen == 0) return str;
GetOpenFile(io, fptr);
- rb_io_check_readable(fptr);
+ rb_io_check_byte_readable(fptr);
if (READ_DATA_BUFFERED(fptr)) {
rb_raise(rb_eIOError, "sysread for buffered IO");
@@ -3662,11 +4150,10 @@ rb_io_sysread(int argc, VALUE *argv, VALUE io)
n = fptr->fd;
rb_thread_wait_fd(fptr->fd);
rb_io_check_closed(fptr);
- if (RSTRING_LEN(str) != ilen) {
- rb_raise(rb_eRuntimeError, "buffer string modified");
- }
+ rb_str_locktmp(str);
n = rb_read_internal(fptr->fd, RSTRING_PTR(str), ilen);
+ rb_str_unlocktmp(str);
if (n == -1) {
rb_sys_fail_path(fptr->pathv);
@@ -3693,7 +4180,15 @@ rb_io_binmode(VALUE io)
rb_econv_binmode(fptr->writeconv);
fptr->mode |= FMODE_BINMODE;
fptr->mode &= ~FMODE_TEXTMODE;
- fptr->writeconv_pre_ecflags &= ~(ECONV_UNIVERSAL_NEWLINE_DECORATOR|ECONV_CRLF_NEWLINE_DECORATOR|ECONV_CR_NEWLINE_DECORATOR);
+ fptr->writeconv_pre_ecflags &= ~ECONV_NEWLINE_DECORATOR_MASK;
+#ifdef O_BINARY
+ if (!fptr->readconv) {
+ SET_BINARY_MODE_WITH_SEEK_CUR(fptr);
+ }
+ else {
+ setmode(fptr->fd, O_BINARY);
+ }
+#endif
return io;
}
@@ -3713,6 +4208,7 @@ rb_io_ascii8bit_binmode(VALUE io)
}
fptr->mode |= FMODE_BINMODE;
fptr->mode &= ~FMODE_TEXTMODE;
+ SET_BINARY_MODE_WITH_SEEK_CUR(fptr);
fptr->encs.enc = rb_ascii8bit_encoding();
fptr->encs.enc2 = NULL;
@@ -3725,7 +4221,7 @@ rb_io_ascii8bit_binmode(VALUE io)
/*
* call-seq:
- * ios.binmode => ios
+ * ios.binmode -> ios
*
* Puts <em>ios</em> into binary mode.
* Once a stream is in binary mode, it cannot be reset to nonbinary mode.
@@ -3751,7 +4247,7 @@ rb_io_binmode_m(VALUE io)
/*
* call-seq:
- * ios.binmode? => true or false
+ * ios.binmode? -> true or false
*
* Returns <code>true</code> if <em>ios</em> is binmode.
*/
@@ -3766,8 +4262,6 @@ rb_io_binmode_p(VALUE io)
static const char*
rb_io_fmode_modestr(int fmode)
{
-# define MODE_BTMODE(a,b,c) ((fmode & FMODE_BINMODE) ? (b) : \
- (fmode & FMODE_TEXTMODE) ? (c) : (a))
if (fmode & FMODE_APPEND) {
if ((fmode & FMODE_READWRITE) == FMODE_READWRITE) {
return MODE_BTMODE("a+", "ab+", "at+");
@@ -3789,11 +4283,23 @@ rb_io_fmode_modestr(int fmode)
return NULL; /* not reached */
}
+static int
+io_encname_bom_p(const char *name, long len)
+{
+ static const char bom_prefix[] = "bom|utf-";
+ enum {bom_prefix_len = (int)sizeof(bom_prefix) - 1};
+ if (!len) {
+ const char *p = strchr(name, ':');
+ len = p ? (long)(p - name) : (long)strlen(name);
+ }
+ return len > bom_prefix_len && STRNCASECMP(name, bom_prefix, bom_prefix_len) == 0;
+}
+
int
rb_io_modestr_fmode(const char *modestr)
{
int fmode = 0;
- const char *m = modestr;
+ const char *m = modestr, *p = NULL;
switch (*m++) {
case 'r':
@@ -3824,6 +4330,7 @@ rb_io_modestr_fmode(const char *modestr)
default:
goto error;
case ':':
+ p = m;
goto finished;
}
}
@@ -3831,6 +4338,8 @@ rb_io_modestr_fmode(const char *modestr)
finished:
if ((fmode & FMODE_BINMODE) && (fmode & FMODE_TEXTMODE))
goto error;
+ if (p && io_encname_bom_p(p, 0))
+ fmode |= FMODE_SETENC_BY_BOM;
return fmode;
}
@@ -3919,11 +4428,14 @@ rb_io_oflags_modestr(int oflags)
#else
# define MODE_BINARY(a,b) (a)
#endif
+ int accmode = oflags & (O_RDONLY|O_WRONLY|O_RDWR);
if (oflags & O_APPEND) {
- if ((oflags & O_RDWR) == O_RDWR) {
+ if (accmode == O_WRONLY) {
+ return MODE_BINARY("a", "ab");
+ }
+ if (accmode == O_RDWR) {
return MODE_BINARY("a+", "ab+");
}
- return MODE_BINARY("a", "ab");
}
switch (oflags & (O_RDONLY|O_WRONLY|O_RDWR)) {
case O_RDONLY:
@@ -3956,7 +4468,7 @@ rb_io_ext_int_to_encs(rb_encoding *ext, rb_encoding *intern, rb_encoding **enc,
intern = rb_default_internal_encoding();
if (intern == NULL || intern == (rb_encoding *)Qnil || intern == ext) {
/* No internal encoding => use external + no transcoding */
- *enc = default_ext ? NULL : ext;
+ *enc = (default_ext && intern != ext) ? NULL : ext;
*enc2 = NULL;
}
else {
@@ -3966,7 +4478,7 @@ rb_io_ext_int_to_encs(rb_encoding *ext, rb_encoding *intern, rb_encoding **enc,
}
static void
-parse_mode_enc(const char *estr, rb_encoding **enc_p, rb_encoding **enc2_p)
+parse_mode_enc(const char *estr, rb_encoding **enc_p, rb_encoding **enc2_p, int *fmode_p)
{
const char *p;
char encname[ENCODING_MAXNAMELEN+1];
@@ -3981,14 +4493,29 @@ parse_mode_enc(const char *estr, rb_encoding **enc_p, rb_encoding **enc2_p)
if (len == 0 || len > ENCODING_MAXNAMELEN)
idx = -1;
else {
+ if (io_encname_bom_p(estr, len)) {
+ if (fmode_p) *fmode_p |= FMODE_SETENC_BY_BOM;
+ estr += 4;
+ len -= 4;
+ }
memcpy(encname, estr, len);
encname[len] = '\0';
estr = encname;
idx = rb_enc_find_index(encname);
}
}
- else
+ else {
+ long len = strlen(estr);
+ if (io_encname_bom_p(estr, len)) {
+ if (fmode_p) *fmode_p |= FMODE_SETENC_BY_BOM;
+ estr += 4;
+ len -= 4;
+ memcpy(encname, estr, len);
+ encname[len] = '\0';
+ estr = encname;
+ }
idx = rb_enc_find_index(estr);
+ }
if (idx >= 0)
ext_enc = rb_enc_from_index(idx);
@@ -4025,7 +4552,7 @@ mode_enc(rb_io_t *fptr, const char *estr)
{
clear_codeconv(fptr);
- parse_mode_enc(estr, &fptr->encs.enc, &fptr->encs.enc2);
+ parse_mode_enc(estr, &fptr->encs.enc, &fptr->encs.enc2, NULL);
}
static void
@@ -4038,7 +4565,7 @@ rb_io_mode_enc(rb_io_t *fptr, const char *modestr)
}
int
-rb_io_extract_encoding_option(VALUE opt, rb_encoding **enc_p, rb_encoding **enc2_p)
+rb_io_extract_encoding_option(VALUE opt, rb_encoding **enc_p, rb_encoding **enc2_p, int *fmode_p)
{
VALUE encoding=Qnil, extenc=Qundef, intenc=Qundef, tmp;
int extracted = 0;
@@ -4055,9 +4582,12 @@ rb_io_extract_encoding_option(VALUE opt, rb_encoding **enc_p, rb_encoding **enc2
if (v != Qundef) intenc = v;
}
if ((extenc != Qundef || intenc != Qundef) && !NIL_P(encoding)) {
- rb_warn("Ignoring encoding parameter '%s': %s_encoding is used",
- StringValueCStr(encoding),
- extenc == Qundef ? "internal" : "external");
+ if (!NIL_P(ruby_verbose)) {
+ int idx = rb_to_encoding_index(encoding);
+ rb_warn("Ignoring encoding parameter '%s': %s_encoding is used",
+ idx < 0 ? StringValueCStr(encoding) : rb_enc_name(rb_enc_from_index(idx)),
+ extenc == Qundef ? "internal" : "external");
+ }
encoding = Qnil;
}
if (extenc != Qundef && !NIL_P(extenc)) {
@@ -4088,7 +4618,12 @@ rb_io_extract_encoding_option(VALUE opt, rb_encoding **enc_p, rb_encoding **enc2
}
if (!NIL_P(encoding)) {
extracted = 1;
- parse_mode_enc(StringValueCStr(encoding), enc_p, enc2_p);
+ if (!NIL_P(tmp = rb_check_string_type(encoding))) {
+ parse_mode_enc(StringValueCStr(tmp), enc_p, enc2_p, fmode_p);
+ }
+ else {
+ rb_io_ext_int_to_encs(rb_to_encoding(encoding), NULL, enc_p, enc2_p);
+ }
}
else if (extenc != Qundef || intenc != Qundef) {
extracted = 1;
@@ -4100,13 +4635,27 @@ rb_io_extract_encoding_option(VALUE opt, rb_encoding **enc_p, rb_encoding **enc2
typedef struct rb_io_enc_t convconfig_t;
static void
-validate_enc_binmode(int fmode, rb_encoding *enc, rb_encoding *enc2)
+validate_enc_binmode(int *fmode_p, int ecflags, rb_encoding *enc, rb_encoding *enc2)
{
+ int fmode = *fmode_p;
+
if ((fmode & FMODE_READABLE) &&
!enc2 &&
!(fmode & FMODE_BINMODE) &&
!rb_enc_asciicompat(enc ? enc : rb_default_external_encoding()))
rb_raise(rb_eArgError, "ASCII incompatible encoding needs binmode");
+
+ if (!(fmode & FMODE_BINMODE) &&
+ (DEFAULT_TEXTMODE || (ecflags & ECONV_NEWLINE_DECORATOR_MASK))) {
+ fmode |= DEFAULT_TEXTMODE;
+ *fmode_p = fmode;
+ }
+#if !DEFAULT_TEXTMODE
+ else if (!(ecflags & ECONV_NEWLINE_DECORATOR_MASK)) {
+ fmode &= ~FMODE_TEXTMODE;
+ *fmode_p = fmode;
+ }
+#endif
}
static void
@@ -4143,8 +4692,9 @@ rb_io_extract_modeenc(VALUE *vmode_p, VALUE *vperm_p, VALUE opthash,
/* Set to defaults */
rb_io_ext_int_to_encs(NULL, NULL, &enc, &enc2);
+ vmode_handle:
if (NIL_P(vmode)) {
- fmode = FMODE_READABLE;
+ fmode = FMODE_READABLE | DEFAULT_TEXTMODE;
oflags = O_RDONLY;
}
else if (!NIL_P(intmode = rb_check_to_integer(vmode, "to_int"))) {
@@ -4155,7 +4705,6 @@ rb_io_extract_modeenc(VALUE *vmode_p, VALUE *vperm_p, VALUE opthash,
else {
const char *p;
- vmode_handle:
SafeStringValue(vmode);
p = StringValueCStr(vmode);
fmode = rb_io_modestr_fmode(p);
@@ -4163,7 +4712,7 @@ rb_io_extract_modeenc(VALUE *vmode_p, VALUE *vperm_p, VALUE opthash,
p = strchr(p, ':');
if (p) {
has_enc = 1;
- parse_mode_enc(p+1, &enc, &enc2);
+ parse_mode_enc(p+1, &enc, &enc2, &fmode);
}
else {
rb_encoding *e;
@@ -4174,7 +4723,15 @@ rb_io_extract_modeenc(VALUE *vmode_p, VALUE *vperm_p, VALUE opthash,
}
if (NIL_P(opthash)) {
- ecflags = 0;
+ ecflags = (fmode & FMODE_READABLE) ?
+ MODE_BTMODE(ECONV_DEFAULT_NEWLINE_DECORATOR,
+ 0, ECONV_UNIVERSAL_NEWLINE_DECORATOR) : 0;
+#ifdef TEXTMODE_NEWLINE_DECORATOR_ON_WRITE
+ ecflags |= (fmode & FMODE_WRITABLE) ?
+ MODE_BTMODE(TEXTMODE_NEWLINE_DECORATOR_ON_WRITE,
+ 0, TEXTMODE_NEWLINE_DECORATOR_ON_WRITE) : 0;
+#endif
+ SET_UNIVERSAL_NEWLINE_DECORATOR_IF_ENC2(enc2, ecflags);
ecopts = Qnil;
}
else {
@@ -4207,16 +4764,25 @@ rb_io_extract_modeenc(VALUE *vmode_p, VALUE *vperm_p, VALUE opthash,
/* perm no use, just ignore */
}
}
- ecflags = rb_econv_prepare_opts(opthash, &ecopts);
+ ecflags = (fmode & FMODE_READABLE) ?
+ MODE_BTMODE(ECONV_DEFAULT_NEWLINE_DECORATOR,
+ 0, ECONV_UNIVERSAL_NEWLINE_DECORATOR) : 0;
+#ifdef TEXTMODE_NEWLINE_DECORATOR_ON_WRITE
+ ecflags |= (fmode & FMODE_WRITABLE) ?
+ MODE_BTMODE(TEXTMODE_NEWLINE_DECORATOR_ON_WRITE,
+ 0, TEXTMODE_NEWLINE_DECORATOR_ON_WRITE) : 0;
+#endif
- if (rb_io_extract_encoding_option(opthash, &enc, &enc2)) {
+ if (rb_io_extract_encoding_option(opthash, &enc, &enc2, &fmode)) {
if (has_enc) {
rb_raise(rb_eArgError, "encoding specified twice");
}
}
+ SET_UNIVERSAL_NEWLINE_DECORATOR_IF_ENC2(enc2, ecflags);
+ ecflags = rb_econv_prepare_options(opthash, &ecopts, ecflags);
}
- validate_enc_binmode(fmode, enc, enc2);
+ validate_enc_binmode(&fmode, ecflags, enc, enc2);
*vmode_p = vmode;
@@ -4229,76 +4795,50 @@ rb_io_extract_modeenc(VALUE *vmode_p, VALUE *vperm_p, VALUE opthash,
}
struct sysopen_struct {
- const char *fname;
+ VALUE fname;
int oflags;
mode_t perm;
-#ifdef _WIN32
- int wchar;
-#endif
};
static VALUE
sysopen_func(void *ptr)
{
- struct sysopen_struct *data = ptr;
-#ifdef _WIN32
- if (data->wchar)
- return (VALUE)rb_w32_wopen((WCHAR *)data->fname, data->oflags,
- data->perm);
-#endif
- return (VALUE)open(data->fname, data->oflags, data->perm);
+ const struct sysopen_struct *data = ptr;
+ const char *fname = RSTRING_PTR(data->fname);
+ return (VALUE)open(fname, data->oflags, data->perm);
}
-static int
-rb_sysopen_internal(VALUE fname, int oflags, mode_t perm)
+static inline int
+rb_sysopen_internal(struct sysopen_struct *data)
{
-#ifdef _WIN32
- static rb_encoding *utf16 = (rb_encoding *)-1;
-#endif
- struct sysopen_struct data;
- data.fname = RSTRING_PTR(fname);
- data.oflags = oflags;
- data.perm = perm;
-#ifdef _WIN32
- if (utf16 == (rb_encoding *)-1) {
- utf16 = rb_enc_find("UTF-16LE");
- if (utf16 == rb_ascii8bit_encoding())
- utf16 = NULL;
- }
- if (utf16) {
- VALUE wfname = rb_str_encode(fname, rb_enc_from_encoding(utf16), 0,
- Qnil);
- rb_enc_str_buf_cat(wfname, "", 1, utf16); /* workaround */
- data.fname = RSTRING_PTR(wfname);
- data.wchar = 1;
- }
- else {
- data.wchar = 0;
- }
-#endif
- return (int)rb_thread_blocking_region(sysopen_func, &data, RUBY_UBF_IO, 0);
+ int fd;
+ fd = (int)rb_thread_blocking_region(sysopen_func, data, RUBY_UBF_IO, 0);
+ if (0 <= fd)
+ rb_update_max_fd(fd);
+ return fd;
}
static int
rb_sysopen(VALUE fname, int oflags, mode_t perm)
{
int fd;
+ struct sysopen_struct data;
-#ifdef O_BINARY
- oflags |= O_BINARY;
-#endif
+ data.fname = rb_str_encode_ospath(fname);
+ data.oflags = oflags;
+ data.perm = perm;
- fd = rb_sysopen_internal(fname, oflags, perm);
+ fd = rb_sysopen_internal(&data);
if (fd < 0) {
if (errno == EMFILE || errno == ENFILE) {
rb_gc();
- fd = rb_sysopen_internal(fname, oflags, perm);
+ fd = rb_sysopen_internal(&data);
}
if (fd < 0) {
- rb_sys_fail(RSTRING_PTR(fname));
+ rb_sys_fail_path(fname);
}
}
- UPDATE_MAXFD(fd);
+ rb_update_max_fd(fd);
return fd;
}
@@ -4348,6 +4888,87 @@ io_check_tty(rb_io_t *fptr)
fptr->mode |= FMODE_TTY|FMODE_DUPLEX;
}
+static VALUE rb_io_internal_encoding(VALUE);
+static void io_encoding_set(rb_io_t *, VALUE, VALUE, VALUE);
+
+static int
+io_strip_bom(VALUE io)
+{
+ int b1, b2, b3, b4;
+ switch (b1 = FIX2INT(rb_io_getbyte(io))) {
+ case 0xEF:
+ b2 = FIX2INT(rb_io_getbyte(io));
+ if (b2 == 0xBB) {
+ b3 = FIX2INT(rb_io_getbyte(io));
+ if (b3 == 0xBF) {
+ return rb_utf8_encindex();
+ }
+ rb_io_ungetbyte(io, INT2FIX(b3));
+ }
+ rb_io_ungetbyte(io, INT2FIX(b2));
+ break;
+
+ case 0xFE:
+ b2 = FIX2INT(rb_io_getbyte(io));
+ if (b2 == 0xFF) {
+ return rb_enc_find_index("UTF-16BE");
+ }
+ rb_io_ungetbyte(io, INT2FIX(b2));
+ break;
+
+ case 0xFF:
+ b2 = FIX2INT(rb_io_getbyte(io));
+ if (b2 == 0xFE) {
+ b3 = FIX2INT(rb_io_getbyte(io));
+ if (b3 == 0) {
+ b4 = FIX2INT(rb_io_getbyte(io));
+ if (b4 == 0) {
+ return rb_enc_find_index("UTF-32LE");
+ }
+ rb_io_ungetbyte(io, INT2FIX(b4));
+ }
+ else {
+ rb_io_ungetbyte(io, INT2FIX(b3));
+ return rb_enc_find_index("UTF-16LE");
+ }
+ rb_io_ungetbyte(io, INT2FIX(b3));
+ }
+ rb_io_ungetbyte(io, INT2FIX(b2));
+ break;
+
+ case 0:
+ b2 = FIX2INT(rb_io_getbyte(io));
+ if (b2 == 0) {
+ b3 = FIX2INT(rb_io_getbyte(io));
+ if (b3 == 0xFE) {
+ b4 = FIX2INT(rb_io_getbyte(io));
+ if (b4 == 0xFF) {
+ return rb_enc_find_index("UTF-32BE");
+ }
+ rb_io_ungetbyte(io, INT2FIX(b4));
+ }
+ rb_io_ungetbyte(io, INT2FIX(b3));
+ }
+ rb_io_ungetbyte(io, INT2FIX(b2));
+ break;
+ }
+ rb_io_ungetbyte(io, INT2FIX(b1));
+ return 0;
+}
+
+static void
+io_set_encoding_by_bom(VALUE io)
+{
+ int idx = io_strip_bom(io);
+
+ if (idx) {
+ rb_io_t *fptr;
+ GetOpenFile(io, fptr);
+ io_encoding_set(fptr, rb_enc_from_encoding(rb_enc_from_index(idx)),
+ rb_io_internal_encoding(io), Qnil);
+ }
+}
+
static VALUE
rb_file_open_generic(VALUE io, VALUE filename, int oflags, int fmode, convconfig_t *convconfig, mode_t perm)
{
@@ -4360,7 +4981,8 @@ rb_file_open_generic(VALUE io, VALUE filename, int oflags, int fmode, convconfig
cc.ecopts = Qnil;
convconfig = &cc;
}
- validate_enc_binmode(fmode, convconfig->enc, convconfig->enc2);
+ validate_enc_binmode(&fmode, convconfig->ecflags,
+ convconfig->enc, convconfig->enc2);
MakeOpenFile(io, fptr);
fptr->mode = fmode;
@@ -4368,6 +4990,7 @@ rb_file_open_generic(VALUE io, VALUE filename, int oflags, int fmode, convconfig
fptr->pathv = rb_str_new_frozen(filename);
fptr->fd = rb_sysopen(fptr->pathv, oflags, perm);
io_check_tty(fptr);
+ if (fmode & FMODE_SETENC_BY_BOM) io_set_encoding_by_bom(io);
return io;
}
@@ -4380,7 +5003,7 @@ rb_file_open_internal(VALUE io, VALUE filename, const char *modestr)
convconfig_t convconfig;
if (p) {
- parse_mode_enc(p+1, &convconfig.enc, &convconfig.enc2);
+ parse_mode_enc(p+1, &convconfig.enc, &convconfig.enc2, &fmode);
}
else {
rb_encoding *e;
@@ -4469,7 +5092,7 @@ static void
pipe_finalize(rb_io_t *fptr, int noraise)
{
#if !defined(HAVE_FORK) && !defined(_WIN32)
- int status;
+ int status = 0;
if (fptr->stdio_file) {
status = pclose(fptr->stdio_file);
}
@@ -4508,8 +5131,8 @@ rb_pipe(int *pipes)
}
}
if (ret == 0) {
- UPDATE_MAXFD(pipes[0]);
- UPDATE_MAXFD(pipes[1]);
+ rb_update_max_fd(pipes[0]);
+ rb_update_max_fd(pipes[1]);
}
return ret;
}
@@ -4680,6 +5303,7 @@ pipe_open(struct rb_exec_arg *eargp, VALUE prog, const char *modestr, int fmode,
fflush(stdin); /* is it really needed? */
pid = rb_fork(&status, 0, 0, Qnil);
if (pid == 0) { /* child */
+ rb_thread_atfork();
popen_redirect(&arg);
rb_io_synchronized(RFILE(orig_stdout)->fptr);
rb_io_synchronized(RFILE(orig_stderr)->fptr);
@@ -4719,7 +5343,7 @@ pipe_open(struct rb_exec_arg *eargp, VALUE prog, const char *modestr, int fmode,
if (argc) {
int i;
- if (argc >= FIXNUM_MAX / sizeof(char *)) {
+ if (argc >= (int)(FIXNUM_MAX / sizeof(char *))) {
rb_raise(rb_eArgError, "too many arguments");
}
argbuf = rb_str_tmp_new((argc+1) * sizeof(char *));
@@ -4776,12 +5400,25 @@ pipe_open(struct rb_exec_arg *eargp, VALUE prog, const char *modestr, int fmode,
rb_thread_sleep(1);
break;
default:
- if (eargp)
- rb_run_exec_options(&sarg, NULL);
- rb_sys_fail(cmd);
+ {
+ int e = errno;
+ if (eargp)
+ rb_run_exec_options(&sarg, NULL);
+ close(pair[0]);
+ close(pair[1]);
+ if ((fmode & (FMODE_READABLE|FMODE_WRITABLE)) == (FMODE_READABLE|FMODE_WRITABLE)) {
+ close(write_pair[0]);
+ close(write_pair[1]);
+ }
+ errno = e;
+ rb_sys_fail(cmd);
+ }
break;
}
}
+
+ RB_GC_GUARD(argbuf);
+
if (eargp)
rb_run_exec_options(&sarg, NULL);
if ((fmode & FMODE_READABLE) && (fmode & FMODE_WRITABLE)) {
@@ -4810,7 +5447,7 @@ pipe_open(struct rb_exec_arg *eargp, VALUE prog, const char *modestr, int fmode,
fp = popen(cmd, modestr);
if (eargp)
rb_run_exec_options(&sarg, NULL);
- if (!fp) rb_sys_fail(RSTRING_PTR(prog));
+ if (!fp) rb_sys_fail_path(prog);
fd = fileno(fp);
#endif
@@ -4821,6 +5458,21 @@ pipe_open(struct rb_exec_arg *eargp, VALUE prog, const char *modestr, int fmode,
fptr->mode = fmode | FMODE_SYNC|FMODE_DUPLEX;
if (convconfig) {
fptr->encs = *convconfig;
+#if defined(RUBY_TEST_CRLF_ENVIRONMENT) || defined(_WIN32)
+ if (fptr->encs.ecflags & ECONV_DEFAULT_NEWLINE_DECORATOR) {
+ fptr->encs.ecflags |= ECONV_UNIVERSAL_NEWLINE_DECORATOR;
+ }
+#endif
+ }
+ else {
+ if (NEED_NEWLINE_DECORATOR_ON_READ(fptr)) {
+ fptr->encs.ecflags |= ECONV_UNIVERSAL_NEWLINE_DECORATOR;
+ }
+#ifdef TEXTMODE_NEWLINE_DECORATOR_ON_WRITE
+ if (NEED_NEWLINE_DECORATOR_ON_WRITE(fptr)) {
+ fptr->encs.ecflags |= TEXTMODE_NEWLINE_DECORATOR_ON_WRITE;
+ }
+#endif
}
fptr->pid = pid;
@@ -4846,7 +5498,7 @@ pipe_open_v(int argc, VALUE *argv, const char *modestr, int fmode, convconfig_t
{
VALUE prog;
struct rb_exec_arg earg;
- prog = rb_exec_arg_init(argc, argv, Qfalse, &earg);
+ prog = rb_exec_arg_init(argc, argv, FALSE, &earg);
return pipe_open(&earg, prog, modestr, fmode, convconfig);
}
@@ -4866,28 +5518,14 @@ pipe_open_s(VALUE prog, const char *modestr, int fmode, convconfig_t *convconfig
return pipe_open(0, 0, modestr, fmode, convconfig);
}
- rb_exec_arg_init(argc, argv, Qtrue, &earg);
+ rb_exec_arg_init(argc, argv, TRUE, &earg);
return pipe_open(&earg, prog, modestr, fmode, convconfig);
}
-static VALUE
-pop_last_hash(int *argc_p, VALUE *argv)
-{
- VALUE last, tmp;
- if (*argc_p == 0)
- return Qnil;
- last = argv[*argc_p-1];
- tmp = rb_check_convert_type(last, T_HASH, "Hash", "to_hash");
- if (NIL_P(tmp))
- return Qnil;
- (*argc_p)--;
- return tmp;
-}
-
/*
* call-seq:
- * IO.popen(cmd, mode="r" [, opt]) => io
- * IO.popen(cmd, mode="r" [, opt]) {|io| block } => obj
+ * IO.popen(cmd, mode="r" [, opt]) -> io
+ * IO.popen(cmd, mode="r" [, opt]) {|io| block } -> obj
*
* Runs the specified command as a subprocess; the subprocess's
* standard input and output will be connected to the returned
@@ -4975,8 +5613,7 @@ rb_io_s_popen(int argc, VALUE *argv, VALUE klass)
int oflags, fmode;
convconfig_t convconfig;
- opt = pop_last_hash(&argc, argv);
- rb_scan_args(argc, argv, "11", &pname, &pmode);
+ argc = rb_scan_args(argc, argv, "11:", &pname, &pmode, &opt);
rb_io_extract_modeenc(&pmode, 0, opt, &oflags, &fmode, &convconfig);
modestr = rb_io_oflags_modestr(oflags);
@@ -5020,36 +5657,16 @@ rb_scan_open_args(int argc, VALUE *argv,
VALUE *fname_p, int *oflags_p, int *fmode_p,
convconfig_t *convconfig_p, mode_t *perm_p)
{
- VALUE opt=Qnil, fname, vmode, vperm;
+ VALUE opt, fname, vmode, vperm;
int oflags, fmode;
mode_t perm;
- opt = pop_last_hash(&argc, argv);
- rb_scan_args(argc, argv, "12", &fname, &vmode, &vperm);
+ argc = rb_scan_args(argc, argv, "12:", &fname, &vmode, &vperm, &opt);
FilePathValue(fname);
-#if defined __APPLE__
- {
- static rb_encoding *fs_encoding;
- rb_encoding *fname_encoding = rb_enc_get(fname);
- if (!fs_encoding)
- fs_encoding = rb_filesystem_encoding();
- if (rb_usascii_encoding() != fname_encoding
- && rb_ascii8bit_encoding() != fname_encoding
-#if defined __APPLE__
- && rb_utf8_encoding() != fname_encoding
-#endif
- && fs_encoding != fname_encoding) {
- static VALUE fs_enc;
- if (!fs_enc)
- fs_enc = rb_enc_from_encoding(fs_encoding);
- fname = rb_str_encode(fname, fs_enc, 0, Qnil);
- }
- }
-#endif
rb_io_extract_modeenc(&vmode, &vperm, opt, &oflags, &fmode, convconfig_p);
- perm = NIL_P(vperm) ? 0666 : NUM2UINT(vperm);
+ perm = NIL_P(vperm) ? 0666 : NUM2MODET(vperm);
*fname_p = fname;
*oflags_p = oflags;
@@ -5076,30 +5693,33 @@ rb_open_file(int argc, VALUE *argv, VALUE io)
* Document-method: File::open
*
* call-seq:
- * File.open(filename, mode="r" [, opt]) => file
- * File.open(filename [, mode [, perm]] [, opt]) => file
- * File.open(filename, mode="r" [, opt]) {|file| block } => obj
- * File.open(filename [, mode [, perm]] [, opt]) {|file| block } => obj
- *
- * With no associated block, <code>open</code> is a synonym for
- * <code>File.new</code>. If the optional code block is given, it will
- * be passed <i>file</i> as an argument, and the File object will
- * automatically be closed when the block terminates. In this instance,
+ * File.open(filename, mode="r" [, opt]) -> file
+ * File.open(filename [, mode [, perm]] [, opt]) -> file
+ * File.open(filename, mode="r" [, opt]) {|file| block } -> obj
+ * File.open(filename [, mode [, perm]] [, opt]) {|file| block } -> obj
+ *
+ * With no associated block, <code>File.open</code> is a synonym for
+ * File.new. If the optional code block is given, it will
+ * be passed the opened +file+ as an argument, and the File object will
+ * automatically be closed when the block terminates. In this instance,
* <code>File.open</code> returns the value of the block.
+ *
+ * See IO.new for a list of values for the +opt+ parameter.
*/
/*
* Document-method: IO::open
*
* call-seq:
- * IO.open(fd, mode_string="r" [, opt] ) => io
- * IO.open(fd, mode_string="r" [, opt] ) {|io| block } => obj
+ * IO.open(fd, mode_string="r" [, opt]) -> io
+ * IO.open(fd, mode_string="r" [, opt]) {|io| block } -> obj
+ *
+ * With no associated block, <code>IO.open</code> is a synonym for IO.new. If
+ * the optional code block is given, it will be passed +io+ as an
+ * argument, and the IO object will automatically be closed when the block
+ * terminates. In this instance, IO.open returns the value of the block.
*
- * With no associated block, <code>open</code> is a synonym for
- * <code>IO.new</code>. If the optional code block is given, it will
- * be passed <i>io</i> as an argument, and the IO object will
- * automatically be closed when the block terminates. In this instance,
- * <code>IO.open</code> returns the value of the block.
+ * See IO.new for a description of values for the +opt+ parameter.
*
*/
@@ -5117,7 +5737,7 @@ rb_io_s_open(int argc, VALUE *argv, VALUE klass)
/*
* call-seq:
- * IO.sysopen(path, [mode, [perm]]) => fixnum
+ * IO.sysopen(path, [mode, [perm]]) -> fixnum
*
* Opens the given path, returning the underlying file descriptor as a
* <code>Fixnum</code>.
@@ -5146,7 +5766,7 @@ rb_io_s_sysopen(int argc, VALUE *argv)
oflags = rb_io_modestr_oflags(StringValueCStr(vmode));
}
if (NIL_P(vperm)) perm = 0666;
- else perm = NUM2UINT(vperm);
+ else perm = NUM2MODET(vperm);
RB_GC_GUARD(fname) = rb_str_new4(fname);
fd = rb_sysopen(fname, oflags, perm);
@@ -5171,8 +5791,8 @@ check_pipe_command(VALUE filename_or_command)
/*
* call-seq:
- * open(path [, mode_enc [, perm]] [, opt] ) => io or nil
- * open(path [, mode_enc [, perm]] [, opt] ) {|io| block } => obj
+ * open(path [, mode_enc [, perm]] [, opt]) -> io or nil
+ * open(path [, mode_enc [, perm]] [, opt]) {|io| block } -> obj
*
* Creates an <code>IO</code> object connected to the given stream,
* file, or subprocess.
@@ -5198,6 +5818,9 @@ check_pipe_command(VALUE filename_or_command)
* read string will be tagged by the encoding in reading,
* and output string will be converted
* to the specified encoding in writing.
+ * If ext_enc starts with 'BOM|', check whether the input has a BOM. If
+ * there is a BOM, strip it and set external encoding as
+ * what the BOM tells. If there is no BOM, use ext_enc without 'BOM|'.
* If two encoding names,
* ext_enc and int_enc (external encoding and internal encoding),
* are specified, the read string is converted from ext_enc
@@ -5280,18 +5903,18 @@ static VALUE
rb_f_open(int argc, VALUE *argv)
{
ID to_open = 0;
- int redirect = Qfalse;
+ int redirect = FALSE;
if (argc >= 1) {
CONST_ID(to_open, "to_open");
if (rb_respond_to(argv[0], to_open)) {
- redirect = Qtrue;
+ redirect = TRUE;
}
else {
VALUE tmp = argv[0];
FilePathValue(tmp);
if (NIL_P(tmp)) {
- redirect = Qtrue;
+ redirect = TRUE;
}
else {
VALUE cmd = check_pipe_command(tmp);
@@ -5322,7 +5945,7 @@ rb_io_open(VALUE filename, VALUE vmode, VALUE vperm, VALUE opt)
mode_t perm;
rb_io_extract_modeenc(&vmode, &vperm, opt, &oflags, &fmode, &convconfig);
- perm = NIL_P(vperm) ? 0666 : NUM2UINT(vperm);
+ perm = NIL_P(vperm) ? 0666 : NUM2MODET(vperm);
if (!NIL_P(cmd = check_pipe_command(filename))) {
return pipe_open_s(cmd, rb_io_oflags_modestr(oflags), fmode, &convconfig);
@@ -5352,7 +5975,7 @@ io_reopen(VALUE io, VALUE nfile)
nfile = rb_io_get_io(nfile);
if (rb_safe_level() >= 4 &&
- (!OBJ_UNTRUSTED(io) || !OBJ_UNTRUSTED(nfile))) {
+ (!OBJ_UNTRUSTED(io) || !OBJ_UNTRUSTED(nfile))) {
rb_raise(rb_eSecurityError, "Insecure: can't reopen");
}
GetOpenFile(io, fptr);
@@ -5369,6 +5992,13 @@ io_reopen(VALUE io, VALUE nfile)
rb_io_fmode_modestr(orig->mode));
}
}
+ if (fptr->mode & FMODE_WRITABLE) {
+ if (io_fflush(fptr) < 0)
+ rb_sys_fail(0);
+ }
+ else {
+ io_tell(fptr);
+ }
if (orig->mode & FMODE_READABLE) {
pos = io_tell(orig);
}
@@ -5376,10 +6006,6 @@ io_reopen(VALUE io, VALUE nfile)
if (io_fflush(orig) < 0)
rb_sys_fail(0);
}
- if (fptr->mode & FMODE_WRITABLE) {
- if (io_fflush(fptr) < 0)
- rb_sys_fail(0);
- }
/* copy rb_io_t structure */
fptr->mode = orig->mode | (fptr->mode & FMODE_PREP);
@@ -5396,28 +6022,27 @@ io_reopen(VALUE io, VALUE nfile)
fd = fptr->fd;
fd2 = orig->fd;
if (fd != fd2) {
- if (IS_PREP_STDIO(fptr)) {
- /* need to keep stdio objects */
+ if (IS_PREP_STDIO(fptr) || fd <= 2 || !fptr->stdio_file) {
+ /* need to keep FILE objects of stdin, stdout and stderr */
if (dup2(fd2, fd) < 0)
rb_sys_fail_path(orig->pathv);
+ rb_update_max_fd(fd);
}
else {
- if (fptr->stdio_file)
- fclose(fptr->stdio_file);
- else
- close(fptr->fd);
+ fclose(fptr->stdio_file);
fptr->stdio_file = 0;
fptr->fd = -1;
- if (dup2(fd2, fd) < 0)
- rb_sys_fail_path(orig->pathv);
+ if (dup2(fd2, fd) < 0)
+ rb_sys_fail_path(orig->pathv);
+ rb_update_max_fd(fd);
fptr->fd = fd;
}
rb_thread_fd_close(fd);
if ((orig->mode & FMODE_READABLE) && pos >= 0) {
- if (io_seek(fptr, pos, SEEK_SET) < 0) {
+ if (io_seek(fptr, pos, SEEK_SET) < 0 && errno) {
rb_sys_fail_path(fptr->pathv);
}
- if (io_seek(orig, pos, SEEK_SET) < 0) {
+ if (io_seek(orig, pos, SEEK_SET) < 0 && errno) {
rb_sys_fail_path(orig->pathv);
}
}
@@ -5433,8 +6058,8 @@ io_reopen(VALUE io, VALUE nfile)
/*
* call-seq:
- * ios.reopen(other_IO) => ios
- * ios.reopen(path, mode_str) => ios
+ * ios.reopen(other_IO) -> ios
+ * ios.reopen(path, mode_str) -> ios
*
* Reassociates <em>ios</em> with the I/O stream given in
* <i>other_IO</i> or to a new stream opened on <i>path</i>. This may
@@ -5498,7 +6123,7 @@ rb_io_reopen(int argc, VALUE *argv, VALUE file)
if (io_fflush(fptr) < 0)
rb_sys_fail(0);
}
- fptr->rbuf_off = fptr->rbuf_len = 0;
+ fptr->rbuf.off = fptr->rbuf.len = 0;
if (fptr->stdio_file) {
if (freopen(RSTRING_PTR(fptr->pathv), rb_io_oflags_modestr(oflags), fptr->stdio_file) == 0) {
@@ -5569,7 +6194,7 @@ rb_io_init_copy(VALUE dest, VALUE io)
/*
* call-seq:
- * ios.printf(format_string [, obj, ...] ) => nil
+ * ios.printf(format_string [, obj, ...]) -> nil
*
* Formats and writes to <em>ios</em>, converting parameters under
* control of the format string. See <code>Kernel#sprintf</code>
@@ -5585,8 +6210,8 @@ rb_io_printf(int argc, VALUE *argv, VALUE out)
/*
* call-seq:
- * printf(io, string [, obj ... ] ) => nil
- * printf(string [, obj ... ] ) => nil
+ * printf(io, string [, obj ... ]) -> nil
+ * printf(string [, obj ... ]) -> nil
*
* Equivalent to:
* io.write(sprintf(string, obj, ...)
@@ -5615,11 +6240,13 @@ rb_f_printf(int argc, VALUE *argv)
/*
* call-seq:
- * ios.print() => nil
- * ios.print(obj, ...) => nil
+ * ios.print() -> nil
+ * ios.print(obj, ...) -> nil
*
* Writes the given object(s) to <em>ios</em>. The stream must be
- * opened for writing. If the output record separator (<code>$\\</code>)
+ * opened for writing. If the output field separator (<code>$,</code>)
+ * is not <code>nil</code>, it will be inserted between each object.
+ * If the output record separator (<code>$\\</code>)
* is not <code>nil</code>, it will be appended to the output. If no
* arguments are given, prints <code>$_</code>. Objects that aren't
* strings will be converted by calling their <code>to_s</code> method.
@@ -5646,10 +6273,10 @@ rb_io_print(int argc, VALUE *argv, VALUE out)
argv = &line;
}
for (i=0; i<argc; i++) {
- rb_io_write(out, argv[i]);
- if (!NIL_P(rb_output_fs)) {
+ if (!NIL_P(rb_output_fs) && i>0) {
rb_io_write(out, rb_output_fs);
}
+ rb_io_write(out, argv[i]);
}
if (argc > 0 && !NIL_P(rb_output_rs)) {
rb_io_write(out, rb_output_rs);
@@ -5660,7 +6287,7 @@ rb_io_print(int argc, VALUE *argv, VALUE out)
/*
* call-seq:
- * print(obj, ...) => nil
+ * print(obj, ...) -> nil
*
* Prints each object in turn to <code>$stdout</code>. If the output
* field separator (<code>$,</code>) is not +nil+, its
@@ -5690,11 +6317,13 @@ rb_f_print(int argc, VALUE *argv)
/*
* call-seq:
- * ios.putc(obj) => obj
+ * ios.putc(obj) -> obj
*
- * If <i>obj</i> is <code>Numeric</code>, write the character whose
- * code is <i>obj</i>, otherwise write the first character of the
- * string representation of <i>obj</i> to <em>ios</em>.
+ * If <i>obj</i> is <code>Numeric</code>, write the character whose code is
+ * the least-significant byte of <i>obj</i>, otherwise write the first byte
+ * of the string representation of <i>obj</i> to <em>ios</em>. Note: This
+ * method is not safe for use with multi-byte characters as it will truncate
+ * them.
*
* $stdout.putc "A"
* $stdout.putc 65
@@ -5707,19 +6336,28 @@ rb_f_print(int argc, VALUE *argv)
static VALUE
rb_io_putc(VALUE io, VALUE ch)
{
- char c = NUM2CHR(ch);
-
- rb_io_write(io, rb_str_new(&c, 1));
+ VALUE str;
+ if (TYPE(ch) == T_STRING) {
+ str = rb_str_substr(ch, 0, 1);
+ }
+ else {
+ char c = NUM2CHR(ch);
+ str = rb_str_new(&c, 1);
+ }
+ rb_io_write(io, str);
return ch;
}
/*
* call-seq:
- * putc(int) => int
+ * putc(int) -> int
*
* Equivalent to:
*
* $stdout.putc(int)
+ *
+ * Refer to the documentation for IO#putc for important information regarding
+ * multi-byte characters.
*/
static VALUE
@@ -5731,6 +6369,22 @@ rb_f_putc(VALUE recv, VALUE ch)
return rb_funcall2(rb_stdout, rb_intern("putc"), 1, &ch);
}
+
+static int
+str_end_with_asciichar(VALUE str, int c)
+{
+ long len = RSTRING_LEN(str);
+ const char *ptr = RSTRING_PTR(str);
+ rb_encoding *enc = rb_enc_from_index(ENCODING_GET(str));
+ int n;
+
+ if (len == 0) return 0;
+ if ((n = rb_enc_mbminlen(enc)) == 1) {
+ return ptr[len - 1] == c;
+ }
+ return rb_enc_ascget(ptr + ((len - 1) / n) * n, ptr + len, &n, enc) == c;
+}
+
static VALUE
io_puts_ary(VALUE ary, VALUE out, int recur)
{
@@ -5751,7 +6405,7 @@ io_puts_ary(VALUE ary, VALUE out, int recur)
/*
* call-seq:
- * ios.puts(obj, ...) => nil
+ * ios.puts(obj, ...) -> nil
*
* Writes the given objects to <em>ios</em> as with
* <code>IO#print</code>. Writes a record separator (typically a
@@ -5781,15 +6435,20 @@ rb_io_puts(int argc, VALUE *argv, VALUE out)
return Qnil;
}
for (i=0; i<argc; i++) {
+ if (TYPE(argv[i]) == T_STRING) {
+ line = argv[i];
+ goto string;
+ }
line = rb_check_array_type(argv[i]);
if (!NIL_P(line)) {
rb_exec_recursive(io_puts_ary, line, out);
continue;
}
line = rb_obj_as_string(argv[i]);
+ string:
rb_io_write(out, line);
if (RSTRING_LEN(line) == 0 ||
- RSTRING_PTR(line)[RSTRING_LEN(line)-1] != '\n') {
+ !str_end_with_asciichar(line, '\n')) {
rb_io_write(out, rb_default_rs);
}
}
@@ -5799,7 +6458,7 @@ rb_io_puts(int argc, VALUE *argv, VALUE out)
/*
* call-seq:
- * puts(obj, ...) => nil
+ * puts(obj, ...) -> nil
*
* Equivalent to
*
@@ -5832,13 +6491,12 @@ rb_p(VALUE obj) /* for debug print within C code */
/*
* call-seq:
- * p(obj) => obj
- * p(obj1, obj2, ...) => [obj, ...]
- * p() => nil
+ * p(obj) -> obj
+ * p(obj1, obj2, ...) -> [obj, ...]
+ * p() -> nil
*
- * For each object, directly writes
- * _obj_.+inspect+ followed by the current output
- * record separator to the program's standard output.
+ * For each object, directly writes _obj_.+inspect+ followed by a
+ * newline to the program's standard output.
*
* S = Struct.new(:name, :state)
* s = S['dave', 'TX']
@@ -5872,7 +6530,7 @@ rb_f_p(int argc, VALUE *argv, VALUE self)
/*
* call-seq:
- * obj.display(port=$>) => nil
+ * obj.display(port=$>) -> nil
*
* Prints <i>obj</i> on the given port (default <code>$></code>).
* Equivalent to:
@@ -5960,6 +6618,7 @@ prep_io(int fd, int fmode, VALUE klass, const char *path)
fp->mode = fmode;
io_check_tty(fp);
if (path) fp->pathv = rb_obj_freeze(rb_str_new_cstr(path));
+ rb_update_max_fd(fd);
return io;
}
@@ -5977,9 +6636,16 @@ static VALUE
prep_stdio(FILE *f, int fmode, VALUE klass, const char *path)
{
rb_io_t *fptr;
- VALUE io = prep_io(fileno(f), fmode|FMODE_PREP, klass, path);
+ VALUE io = prep_io(fileno(f), fmode|FMODE_PREP|DEFAULT_TEXTMODE, klass, path);
GetOpenFile(io, fptr);
+ fptr->encs.ecflags |= ECONV_DEFAULT_NEWLINE_DECORATOR;
+#ifdef TEXTMODE_NEWLINE_DECORATOR_ON_WRITE
+ fptr->encs.ecflags |= TEXTMODE_NEWLINE_DECORATOR_ON_WRITE;
+ if (fmode & FMODE_READABLE) {
+ fptr->encs.ecflags |= ECONV_UNIVERSAL_NEWLINE_DECORATOR;
+ }
+#endif
fptr->stdio_file = f;
return io;
@@ -5997,73 +6663,90 @@ rb_io_stdio_file(rb_io_t *fptr)
/*
* call-seq:
- * IO.new(fd [, mode] [, opt]) => io
+ * IO.new(fd [, mode] [, opt]) -> io
*
- * Returns a new <code>IO</code> object (a stream) for the given
- * <code>IO</code> object or integer file descriptor and mode
- * string. See also <code>IO#fileno</code> and
- * <code>IO.for_fd</code>.
+ * Returns a new IO object (a stream) for the given IO object or integer file
+ * descriptor and mode string. See also IO.sysopen and IO.for_fd.
*
* === Parameters
- * fd:: numeric file descriptor
+ *
+ * fd:: numeric file descriptor or IO object
* mode:: file mode. a string or an integer
- * opt:: hash for specifiying mode by name.
+ * opt:: hash for specifying +mode+ by name.
*
* ==== Mode
- * When <code>mode</code> is an integer it must be combination of
- * the modes defined in <code>File::Constants</code>.
*
- * When <code>mode</code> is a string it must be in one of the
- * following forms:
+ * When mode is an integer it must be combination of the modes defined in
+ * File::Constants.
+ *
+ * When mode is a string it must be in one of the following forms:
* - "fmode",
* - "fmode:extern",
* - "fmode:extern:intern".
* <code>extern</code> is the external encoding name for the IO.
* <code>intern</code> is the internal encoding.
- * <code>fmode</code> must be combination of the directives. See
- * the description of class +IO+ for a description of the directives.
+ * <code>fmode</code> must be a file open mode string. See the description of
+ * class IO for mode string directives.
+ *
+ * When the mode of original IO is read only, the mode cannot be changed to
+ * be writable. Similarly, the mode cannot be changed from write only to
+ * readable.
+ *
+ * When such a change is attempted the error is raised in different locations
+ * according to the platform.
*
* ==== Options
- * <code>opt</code> can have the following keys
+ * +opt+ can have the following keys
* :mode ::
- * same as <code>mode</code> parameter
+ * Same as +mode+ parameter
* :external_encoding ::
- * external encoding for the IO. "-" is a
- * synonym for the default external encoding.
+ * External encoding for the IO. "-" is a synonym for the default external
+ * encoding.
* :internal_encoding ::
- * internal encoding for the IO.
- * "-" is a synonym for the default internal encoding.
+ * Internal encoding for the IO. "-" is a synonym for the default internal
+ * encoding.
+ *
* If the value is nil no conversion occurs.
* :encoding ::
- * specifies external and internal encodings as "extern:intern".
+ * Specifies external and internal encodings as "extern:intern".
* :textmode ::
- * If the value is truth value, same as "b" in argument <code>mode</code>.
+ * If the value is truth value, same as "t" in argument +mode+.
* :binmode ::
- * If the value is truth value, same as "t" in argument <code>mode</code>.
+ * If the value is truth value, same as "b" in argument +mode+.
+ * :autoclose ::
+ * If the value is +false+, the +fd+ will be kept open after this IO
+ * instance gets finalized.
*
- * Also <code>opt</code> can have same keys in <code>String#encode</code> for
- * controlling conversion between the external encoding and the internal encoding.
+ * Also +opt+ can have same keys in String#encode for controlling conversion
+ * between the external encoding and the internal encoding.
*
- * === Example1
+ * === Example 1
*
- * a = IO.new(2,"w") # '2' is standard error
- * $stderr.puts "Hello"
- * a.puts "World"
+ * fd = IO.sysopen("/dev/tty", "w")
+ * a = IO.new(fd,"w")
+ * $stderr.puts "Hello"
+ * a.puts "World"
*
* <em>produces:</em>
*
- * Hello
- * World
+ * Hello
+ * World
+ *
+ * === Example 2
*
- * === Example2
- * io = IO.new(2, mode: 'w:UTF-16LE', cr_newline: true)
- * io.puts "Hello, World!"
+ * require 'fcntl'
*
- * io = IO.new(2, mode: 'w', cr_newline: true, external_encoding: Encoding::UTF_16LE)
- * io.puts "Hello, World!"
+ * fd = STDERR.fcntl(Fcntl::F_DUPFD)
+ * io = IO.new(fd, mode: 'w:UTF-16LE', cr_newline: true)
+ * io.puts "Hello, World!"
*
- * both of aboves print "Hello, World!" in UTF-16LE to standard error output with
- * converting EOL generated by <code>puts</code> to CR.
+ * fd = STDERR.fcntl(Fcntl::F_DUPFD)
+ * io = IO.new(fd, mode: 'w', cr_newline: true,
+ * external_encoding: Encoding::UTF_16LE)
+ * io.puts "Hello, World!"
+ *
+ * Both of above print "Hello, World!" in UTF-16LE to standard error output
+ * with converting EOL generated by <code>puts</code> to CR.
*/
static VALUE
@@ -6074,23 +6757,40 @@ rb_io_initialize(int argc, VALUE *argv, VALUE io)
int fd, fmode, oflags = O_RDONLY;
convconfig_t convconfig;
VALUE opt;
+#if defined(HAVE_FCNTL) && defined(F_GETFL)
+ int ofmode;
+#else
struct stat st;
+#endif
rb_secure(4);
- opt = pop_last_hash(&argc, argv);
- rb_scan_args(argc, argv, "11", &fnum, &vmode);
+ argc = rb_scan_args(argc, argv, "11:", &fnum, &vmode, &opt);
rb_io_extract_modeenc(&vmode, 0, opt, &oflags, &fmode, &convconfig);
fd = NUM2INT(fnum);
+ if (rb_reserved_fd_p(fd)) {
+ rb_raise(rb_eArgError, "The given fd is not accessible because RubyVM reserves it");
+ }
+#if defined(HAVE_FCNTL) && defined(F_GETFL)
+ oflags = fcntl(fd, F_GETFL);
+ if (oflags == -1) rb_sys_fail(0);
+#else
if (fstat(fd, &st) == -1) rb_sys_fail(0);
- UPDATE_MAXFD(fd);
- if (NIL_P(vmode)) {
+#endif
+ rb_update_max_fd(fd);
#if defined(HAVE_FCNTL) && defined(F_GETFL)
- oflags = fcntl(fd, F_GETFL);
- if (oflags == -1) rb_sys_fail(0);
- fmode = rb_io_oflags_fmode(oflags);
+ ofmode = rb_io_oflags_fmode(oflags);
+ if (NIL_P(vmode)) {
+ fmode = ofmode;
+ }
+ else if ((~ofmode & fmode) & FMODE_READWRITE) {
+ VALUE error = INT2FIX(EINVAL);
+ rb_exc_raise(rb_class_new_instance(1, &error, rb_eSystemCallError));
+ }
#endif
+ if (!NIL_P(opt) && rb_hash_aref(opt, sym_autoclose) == Qfalse) {
+ fmode |= FMODE_PREP;
}
MakeOpenFile(io, fp);
fp->fd = fd;
@@ -6105,35 +6805,35 @@ rb_io_initialize(int argc, VALUE *argv, VALUE io)
else if (fileno(stderr) == fd)
fp->stdio_file = stderr;
+ if (fmode & FMODE_SETENC_BY_BOM) io_set_encoding_by_bom(io);
return io;
}
/*
* call-seq:
- * File.new(filename, mode="r" [, opt]) => file
- * File.new(filename [, mode [, perm]] [, opt]) => file
+ * File.new(filename, mode="r" [, opt]) -> file
+ * File.new(filename [, mode [, perm]] [, opt]) -> file
*
- * Opens the file named by _filename_ according to
- * _mode_ (default is ``r'') and returns a new
- * <code>File</code> object.
+ * Opens the file named by +filename+ according to +mode+ (default is "r")
+ * and returns a new <code>File</code> object.
*
* === Parameters
- * See the description of class +IO+ for a description of _mode_.
- * The file mode may optionally be specified as a +Fixnum+
- * by _or_-ing together the flags (O_RDONLY etc,
- * again described under +IO+).
*
- * Optional permission bits may be given in _perm_.
- * These mode and permission bits are platform dependent;
- * on Unix systems, see <code>open(2)</code> for details.
+ * See the description of class IO for a description of +mode+. The file
+ * mode may optionally be specified as a Fixnum by +or+-ing together the
+ * flags (O_RDONLY etc, again described under +IO+).
+ *
+ * Optional permission bits may be given in +perm+. These mode and
+ * permission bits are platform dependent; on Unix systems, see
+ * <code>open(2)</code> for details.
*
- * Optional _opt_ parameter is same as in <code.IO.open</code>.
+ * Optional +opt+ parameter is same as in IO.open.
*
* === Examples
*
- * f = File.new("testfile", "r")
- * f = File.new("newfile", "w+")
- * f = File.new("newfile", File::CREAT|File::TRUNC|File::RDWR, 0644)
+ * f = File.new("testfile", "r")
+ * f = File.new("newfile", "w+")
+ * f = File.new("newfile", File::CREAT|File::TRUNC|File::RDWR, 0644)
*/
static VALUE
@@ -6155,6 +6855,7 @@ rb_file_initialize(int argc, VALUE *argv, VALUE io)
return io;
}
+/* :nodoc: */
static VALUE
rb_io_s_new(int argc, VALUE *argv, VALUE klass)
{
@@ -6170,7 +6871,7 @@ rb_io_s_new(int argc, VALUE *argv, VALUE klass)
/*
* call-seq:
- * IO.for_fd(fd, mode [, opt]) => io
+ * IO.for_fd(fd, mode [, opt]) -> io
*
* Synonym for <code>IO.new</code>.
*
@@ -6184,13 +6885,59 @@ rb_io_s_for_fd(int argc, VALUE *argv, VALUE klass)
return io;
}
+/*
+ * call-seq:
+ * ios.autoclose? -> true or false
+ *
+ * Returns +true+ if the underlying file descriptor of _ios_ will be
+ * closed automatically at its finalization, otherwise +false+.
+ */
+
+static VALUE
+rb_io_autoclose_p(VALUE io)
+{
+ rb_io_t *fptr;
+ rb_secure(4);
+ GetOpenFile(io, fptr);
+ return (fptr->mode & FMODE_PREP) ? Qfalse : Qtrue;
+}
+
+/*
+ * call-seq:
+ * io.autoclose = bool -> true or false
+ *
+ * Sets auto-close flag.
+ *
+ * f = open("/dev/null")
+ * IO.for_fd(f.fileno)
+ * # ...
+ * f.gets # may cause IOError
+ *
+ * f = open("/dev/null")
+ * IO.for_fd(f.fileno).autoclose = true
+ * # ...
+ * f.gets # won't cause IOError
+ */
+
+static VALUE
+rb_io_set_autoclose(VALUE io, VALUE autoclose)
+{
+ rb_io_t *fptr;
+ rb_secure(4);
+ GetOpenFile(io, fptr);
+ if (!RTEST(autoclose))
+ fptr->mode |= FMODE_PREP;
+ else
+ fptr->mode &= ~FMODE_PREP;
+ return io;
+}
+
static void
argf_mark(void *ptr)
{
struct argf *p = ptr;
rb_gc_mark(p->filename);
rb_gc_mark(p->current_file);
- rb_gc_mark(p->lineno);
rb_gc_mark(p->argv);
rb_gc_mark(p->encs.ecopts);
}
@@ -6199,7 +6946,8 @@ static void
argf_free(void *ptr)
{
struct argf *p = ptr;
- free(p->inplace);
+ xfree(p->inplace);
+ xfree(p);
}
static inline void
@@ -6207,7 +6955,7 @@ argf_init(struct argf *p, VALUE v)
{
p->filename = Qnil;
p->current_file = Qnil;
- p->lineno = INT2FIX(0);
+ p->lineno = 0;
p->argv = v;
}
@@ -6223,6 +6971,7 @@ argf_alloc(VALUE klass)
#undef rb_argv
+/* :nodoc: */
static VALUE
argf_initialize(VALUE argf, VALUE argv)
{
@@ -6232,6 +6981,7 @@ argf_initialize(VALUE argf, VALUE argv)
return argf;
}
+/* :nodoc: */
static VALUE
argf_initialize_copy(VALUE argf, VALUE orig)
{
@@ -6245,18 +6995,49 @@ argf_initialize_copy(VALUE argf, VALUE orig)
return argf;
}
+/*
+ * call-seq:
+ * ARGF.lineno = number -> nil
+ *
+ * Sets the line number of +ARGF+ as a whole to the given +Integer+.
+ *
+ * +ARGF+ sets the line number automatically as you read data, so normally
+ * you will not need to set it explicitly. To access the current line number
+ * use +ARGF.lineno+.
+ *
+ * For example:
+ *
+ * ARGF.lineno #=> 0
+ * ARGF.readline #=> "This is line 1\n"
+ * ARGF.lineno #=> 1
+ * ARGF.lineno = 0 #=> nil
+ * ARGF.lineno #=> 0
+ */
static VALUE
argf_set_lineno(VALUE argf, VALUE val)
{
- ARGF.gets_lineno = NUM2INT(val);
- ARGF.lineno = INT2FIX(ARGF.gets_lineno);
+ ARGF.lineno = NUM2INT(val);
+ ARGF.last_lineno = ARGF.lineno;
return Qnil;
}
+/*
+ * call-seq:
+ * ARGF.lineno -> integer
+ *
+ * Returns the current line number of ARGF as a whole. This value
+ * can be set manually with +ARGF.lineno=+.
+ *
+ * For example:
+ *
+ * ARGF.lineno #=> 0
+ * ARGF.readline #=> "This is line 1\n"
+ * ARGF.lineno #=> 1
+ */
static VALUE
argf_lineno(VALUE argf)
{
- return ARGF.lineno;
+ return INT2FIX(ARGF.lineno);
}
static VALUE
@@ -6270,16 +7051,20 @@ argf_forward(int argc, VALUE *argv, VALUE argf)
(ARGF.current_file == rb_stdin && TYPE(ARGF.current_file) != T_FILE)
#define ARGF_FORWARD(argc, argv) do {\
if (ARGF_GENERIC_INPUT_P())\
- return argf_forward(argc, argv, argf);\
+ return argf_forward((argc), (argv), argf);\
} while (0)
#define NEXT_ARGF_FORWARD(argc, argv) do {\
if (!next_argv()) return Qnil;\
- ARGF_FORWARD(argc, argv);\
+ ARGF_FORWARD((argc), (argv));\
} while (0)
static void
argf_close(VALUE file)
{
+ if (file == rb_stdin) return;
+ if (RB_TYPE_P(file, T_FILE)) {
+ rb_io_set_write_io(file, Qnil);
+ }
rb_funcall3(file, rb_intern("close"), 0, 0);
}
@@ -6289,6 +7074,7 @@ argf_next_argv(VALUE argf)
char *fn;
rb_io_t *fptr;
int stdout_binmode = 0;
+ int fmode;
if (TYPE(rb_stdout) == T_FILE) {
GetOpenFile(rb_stdout, fptr);
@@ -6304,11 +7090,17 @@ argf_next_argv(VALUE argf)
ARGF.next_p = -1;
}
ARGF.init_p = 1;
- ARGF.gets_lineno = 0;
+ }
+ else {
+ if (NIL_P(ARGF.argv)) {
+ ARGF.next_p = -1;
+ }
+ else if (ARGF.next_p == -1 && RARRAY_LEN(ARGF.argv) > 0) {
+ ARGF.next_p = 1;
+ }
}
if (ARGF.next_p == 1) {
- ARGF.next_p = 0;
retry:
if (RARRAY_LEN(ARGF.argv) > 0) {
ARGF.filename = rb_ary_shift(ARGF.argv);
@@ -6321,6 +7113,7 @@ argf_next_argv(VALUE argf)
}
}
else {
+ VALUE write_io = Qnil;
int fr = rb_sysopen(ARGF.filename, O_RDONLY, 0);
if (ARGF.inplace) {
@@ -6377,30 +7170,56 @@ argf_next_argv(VALUE argf)
chmod(fn, st.st_mode);
#endif
if (st.st_uid!=st2.st_uid || st.st_gid!=st2.st_gid) {
+ int err;
#ifdef HAVE_FCHOWN
- (void)fchown(fw, st.st_uid, st.st_gid);
+ err = fchown(fw, st.st_uid, st.st_gid);
#else
- (void)chown(fn, st.st_uid, st.st_gid);
+ err = chown(fn, st.st_uid, st.st_gid);
#endif
+ if (err && getuid() == 0 && st2.st_uid == 0) {
+ const char *wkfn = RSTRING_PTR(ARGF.filename);
+ rb_warn("Can't set owner/group of %s to same as %s: %s, skipping file",
+ wkfn, fn, strerror(errno));
+ (void)close(fr);
+ (void)close(fw);
+ (void)unlink(wkfn);
+ goto retry;
+ }
}
#endif
- rb_stdout = prep_io(fw, FMODE_WRITABLE, rb_cFile, fn);
+ write_io = prep_io(fw, FMODE_WRITABLE, rb_cFile, fn);
+ rb_stdout = write_io;
if (stdout_binmode) rb_io_binmode(rb_stdout);
}
- ARGF.current_file = prep_io(fr, FMODE_READABLE, rb_cFile, fn);
+ fmode = FMODE_READABLE;
+ if (!ARGF.binmode) {
+ fmode |= DEFAULT_TEXTMODE;
+ }
+ ARGF.current_file = prep_io(fr, fmode, rb_cFile, fn);
+ if (!NIL_P(write_io)) {
+ rb_io_set_write_io(ARGF.current_file, write_io);
+ }
}
- if (ARGF.binmode) rb_io_binmode(ARGF.current_file);
+ if (ARGF.binmode) rb_io_ascii8bit_binmode(ARGF.current_file);
+ GetOpenFile(ARGF.current_file, fptr);
if (ARGF.encs.enc) {
- rb_io_t *fptr;
-
- GetOpenFile(ARGF.current_file, fptr);
fptr->encs = ARGF.encs;
clear_codeconv(fptr);
}
+ else {
+ fptr->encs.ecflags &= ~ECONV_NEWLINE_DECORATOR_MASK;
+ if (!ARGF.binmode) {
+ fptr->encs.ecflags |= ECONV_DEFAULT_NEWLINE_DECORATOR;
+#ifdef TEXTMODE_NEWLINE_DECORATOR_ON_WRITE
+ fptr->encs.ecflags |= TEXTMODE_NEWLINE_DECORATOR_ON_WRITE;
+#endif
+ }
+ }
+ ARGF.next_p = 0;
}
else {
ARGF.next_p = 1;
- return Qfalse;
+ return FALSE;
}
}
else if (ARGF.next_p == -1) {
@@ -6411,13 +7230,14 @@ argf_next_argv(VALUE argf)
rb_stdout = orig_stdout;
}
}
- return Qtrue;
+ return TRUE;
}
static VALUE
argf_getline(int argc, VALUE *argv, VALUE argf)
{
VALUE line;
+ long lineno = ARGF.lineno;
retry:
if (!next_argv()) return Qnil;
@@ -6438,8 +7258,8 @@ argf_getline(int argc, VALUE *argv, VALUE argf)
}
}
if (!NIL_P(line)) {
- ARGF.gets_lineno++;
- ARGF.lineno = INT2FIX(ARGF.gets_lineno);
+ ARGF.lineno = ++lineno;
+ ARGF.last_lineno = ARGF.lineno;
}
return line;
}
@@ -6448,7 +7268,7 @@ static VALUE
argf_lineno_getter(ID id, VALUE *var)
{
VALUE argf = *var;
- return ARGF.lineno;
+ return INT2FIX(ARGF.last_lineno);
}
static void
@@ -6456,17 +7276,16 @@ argf_lineno_setter(VALUE val, ID id, VALUE *var)
{
VALUE argf = *var;
int n = NUM2INT(val);
- ARGF.gets_lineno = n;
- ARGF.lineno = INT2FIX(n);
+ ARGF.last_lineno = ARGF.lineno = n;
}
static VALUE argf_gets(int, VALUE *, VALUE);
/*
* call-seq:
- * gets(sep=$/) => string or nil
- * gets(limit) => string or nil
- * gets(sep,limit) => string or nil
+ * gets(sep=$/) -> string or nil
+ * gets(limit) -> string or nil
+ * gets(sep,limit) -> string or nil
*
* Returns (and assigns to <code>$_</code>) the next line from the list
* of files in +ARGV+ (or <code>$*</code>), or from standard input if
@@ -6504,6 +7323,21 @@ rb_f_gets(int argc, VALUE *argv, VALUE recv)
return rb_funcall2(argf, rb_intern("gets"), argc, argv);
}
+/*
+ * call-seq:
+ * ARGF.gets(sep=$/) -> string
+ * ARGF.gets(limit) -> string
+ * ARGF.gets(sep, limit) -> string
+ *
+ * Returns the next line from the current file in +ARGF+.
+ *
+ * By default lines are assumed to be separated by +$/+; to use a different
+ * character as a separator, supply it as a +String+ for the _sep_ argument.
+ *
+ * The optional _limit_ argument specifies how many characters of each line
+ * to return. By default all characters are returned.
+ *
+ */
static VALUE
argf_gets(int argc, VALUE *argv, VALUE argf)
{
@@ -6511,6 +7345,7 @@ argf_gets(int argc, VALUE *argv, VALUE argf)
line = argf_getline(argc, argv, argf);
rb_lastline_set(line);
+
return line;
}
@@ -6533,8 +7368,8 @@ rb_gets(void)
}
rb_lastline_set(line);
if (!NIL_P(line)) {
- ARGF.gets_lineno++;
- ARGF.lineno = INT2FIX(ARGF.gets_lineno);
+ ARGF.lineno++;
+ ARGF.last_lineno = ARGF.lineno;
}
return line;
@@ -6544,9 +7379,9 @@ static VALUE argf_readline(int, VALUE *, VALUE);
/*
* call-seq:
- * readline(sep=$/) => string
- * readline(limit) => string
- * readline(sep, limit) => string
+ * readline(sep=$/) -> string
+ * readline(limit) -> string
+ * readline(sep, limit) -> string
*
* Equivalent to <code>Kernel::gets</code>, except
* +readline+ raises +EOFError+ at end of file.
@@ -6561,6 +7396,23 @@ rb_f_readline(int argc, VALUE *argv, VALUE recv)
return rb_funcall2(argf, rb_intern("readline"), argc, argv);
}
+
+/*
+ * call-seq:
+ * ARGF.readline(sep=$/) -> string
+ * ARGF.readline(limit) -> string
+ * ARGF.readline(sep, limit) -> string
+ *
+ * Returns the next line from the current file in +ARGF+.
+ *
+ * By default lines are assumed to be separated by +$/+; to use a different
+ * character as a separator, supply it as a +String+ for the _sep_ argument.
+ *
+ * The optional _limit_ argument specifies how many characters of each line
+ * to return. By default all characters are returned.
+ *
+ * An +EOFError+ is raised at the end of the file.
+ */
static VALUE
argf_readline(int argc, VALUE *argv, VALUE argf)
{
@@ -6580,9 +7432,9 @@ static VALUE argf_readlines(int, VALUE *, VALUE);
/*
* call-seq:
- * readlines(sep=$/) => array
- * readlines(limit) => array
- * readlines(sep,limit) => array
+ * readlines(sep=$/) -> array
+ * readlines(limit) -> array
+ * readlines(sep,limit) -> array
*
* Returns an array containing the lines returned by calling
* <code>Kernel.gets(<i>sep</i>)</code> until the end of file.
@@ -6597,22 +7449,49 @@ rb_f_readlines(int argc, VALUE *argv, VALUE recv)
return rb_funcall2(argf, rb_intern("readlines"), argc, argv);
}
+/*
+ * call-seq:
+ * ARGF.readlines(sep=$/) -> array
+ * ARGF.readlines(limit) -> array
+ * ARGF.readlines(sep, limit) -> array
+ *
+ * ARGF.to_a(sep=$/) -> array
+ * ARGF.to_a(limit) -> array
+ * ARGF.to_a(sep, limit) -> array
+ *
+ * Reads +ARGF+'s current file in its entirety, returning an +Array+ of its
+ * lines, one line per element. Lines are assumed to be separated by _sep_.
+ *
+ * lines = ARGF.readlines
+ * lines[0] #=> "This is line one\n"
+ */
static VALUE
argf_readlines(int argc, VALUE *argv, VALUE argf)
{
- VALUE line, ary;
+ long lineno = ARGF.lineno;
+ VALUE lines, ary;
ary = rb_ary_new();
- while (!NIL_P(line = argf_getline(argc, argv, argf))) {
- rb_ary_push(ary, line);
+ while (next_argv()) {
+ if (ARGF_GENERIC_INPUT_P()) {
+ lines = rb_funcall3(ARGF.current_file, rb_intern("readlines"), argc, argv);
+ }
+ else {
+ lines = rb_io_readlines(argc, argv, ARGF.current_file);
+ argf_close(ARGF.current_file);
+ }
+ ARGF.next_p = 1;
+ rb_ary_concat(ary, lines);
+ ARGF.lineno = lineno + RARRAY_LEN(ary);
+ ARGF.last_lineno = ARGF.lineno;
}
-
+ ARGF.init_p = 0;
return ary;
}
/*
* call-seq:
- * `cmd` => string
+ * `cmd` -> string
*
* Returns the standard output of running _cmd_ in a subshell.
* The built-in syntax <code>%x{...}</code> uses
@@ -6632,7 +7511,7 @@ rb_f_backquote(VALUE obj, VALUE str)
rb_io_t *fptr;
SafeStringValue(str);
- port = pipe_open_s(str, "r", FMODE_READABLE, NULL);
+ port = pipe_open_s(str, "r", FMODE_READABLE|DEFAULT_TEXTMODE, NULL);
if (NIL_P(port)) return rb_str_new(0,0);
GetOpenFile(port, fptr);
@@ -6654,7 +7533,6 @@ select_internal(VALUE read, VALUE write, VALUE except, struct timeval *tp, rb_fd
rb_io_t *fptr;
long i;
int max = 0, n;
- int interrupt_flag = 0;
int pending = 0;
struct timeval timerec;
@@ -6663,7 +7541,7 @@ select_internal(VALUE read, VALUE write, VALUE except, struct timeval *tp, rb_fd
for (i=0; i<RARRAY_LEN(read); i++) {
GetOpenFile(rb_io_get_io(RARRAY_PTR(read)[i]), fptr);
rb_fd_set(fptr->fd, &fds[0]);
- if (READ_DATA_PENDING(fptr)) { /* check for buffered data */
+ if (READ_DATA_PENDING(fptr) || READ_CHAR_PENDING(fptr)) { /* check for buffered data */
pending++;
rb_fd_set(fptr->fd, &fds[3]);
}
@@ -6724,49 +7602,47 @@ select_internal(VALUE read, VALUE write, VALUE except, struct timeval *tp, rb_fd
rb_ary_push(res, wp?rb_ary_new():rb_ary_new2(0));
rb_ary_push(res, ep?rb_ary_new():rb_ary_new2(0));
- if (interrupt_flag == 0) {
- if (rp) {
- list = RARRAY_PTR(res)[0];
- for (i=0; i< RARRAY_LEN(read); i++) {
- VALUE obj = rb_ary_entry(read, i);
- VALUE io = rb_io_get_io(obj);
- GetOpenFile(io, fptr);
- if (rb_fd_isset(fptr->fd, &fds[0]) ||
- rb_fd_isset(fptr->fd, &fds[3])) {
- rb_ary_push(list, obj);
- }
+ if (rp) {
+ list = RARRAY_PTR(res)[0];
+ for (i=0; i< RARRAY_LEN(read); i++) {
+ VALUE obj = rb_ary_entry(read, i);
+ VALUE io = rb_io_get_io(obj);
+ GetOpenFile(io, fptr);
+ if (rb_fd_isset(fptr->fd, &fds[0]) ||
+ rb_fd_isset(fptr->fd, &fds[3])) {
+ rb_ary_push(list, obj);
}
}
+ }
- if (wp) {
- list = RARRAY_PTR(res)[1];
- for (i=0; i< RARRAY_LEN(write); i++) {
- VALUE obj = rb_ary_entry(write, i);
- VALUE io = rb_io_get_io(obj);
- VALUE write_io = GetWriteIO(io);
- GetOpenFile(write_io, fptr);
- if (rb_fd_isset(fptr->fd, &fds[1])) {
- rb_ary_push(list, obj);
- }
+ if (wp) {
+ list = RARRAY_PTR(res)[1];
+ for (i=0; i< RARRAY_LEN(write); i++) {
+ VALUE obj = rb_ary_entry(write, i);
+ VALUE io = rb_io_get_io(obj);
+ VALUE write_io = GetWriteIO(io);
+ GetOpenFile(write_io, fptr);
+ if (rb_fd_isset(fptr->fd, &fds[1])) {
+ rb_ary_push(list, obj);
}
}
+ }
- if (ep) {
- list = RARRAY_PTR(res)[2];
- for (i=0; i< RARRAY_LEN(except); i++) {
- VALUE obj = rb_ary_entry(except, i);
- VALUE io = rb_io_get_io(obj);
- VALUE write_io = GetWriteIO(io);
- GetOpenFile(io, fptr);
+ if (ep) {
+ list = RARRAY_PTR(res)[2];
+ for (i=0; i< RARRAY_LEN(except); i++) {
+ VALUE obj = rb_ary_entry(except, i);
+ VALUE io = rb_io_get_io(obj);
+ VALUE write_io = GetWriteIO(io);
+ GetOpenFile(io, fptr);
+ if (rb_fd_isset(fptr->fd, &fds[2])) {
+ rb_ary_push(list, obj);
+ }
+ else if (io != write_io) {
+ GetOpenFile(write_io, fptr);
if (rb_fd_isset(fptr->fd, &fds[2])) {
rb_ary_push(list, obj);
}
- else if (io != write_io) {
- GetOpenFile(write_io, fptr);
- if (rb_fd_isset(fptr->fd, &fds[2])) {
- rb_ary_push(list, obj);
- }
- }
}
}
}
@@ -6780,7 +7656,6 @@ struct select_args {
rb_fdset_t fdsets[4];
};
-#ifdef HAVE_RB_FD_INIT
static VALUE
select_call(VALUE arg)
{
@@ -6799,16 +7674,225 @@ select_end(VALUE arg)
rb_fd_term(&p->fdsets[i]);
return Qnil;
}
+
+static VALUE sym_normal, sym_sequential, sym_random,
+ sym_willneed, sym_dontneed, sym_noreuse;
+
+#ifdef HAVE_POSIX_FADVISE
+struct io_advise_struct {
+ int fd;
+ off_t offset;
+ off_t len;
+ int advice;
+};
+
+static VALUE
+io_advise_internal(void *arg)
+{
+ struct io_advise_struct *ptr = arg;
+ return posix_fadvise(ptr->fd, ptr->offset, ptr->len, ptr->advice);
+}
+
+static VALUE
+io_advise_sym_to_const(VALUE sym)
+{
+#ifdef POSIX_FADV_NORMAL
+ if (sym == sym_normal)
+ return INT2NUM(POSIX_FADV_NORMAL);
+#endif
+
+#ifdef POSIX_FADV_RANDOM
+ if (sym == sym_random)
+ return INT2NUM(POSIX_FADV_RANDOM);
#endif
+#ifdef POSIX_FADV_SEQUENTIAL
+ if (sym == sym_sequential)
+ return INT2NUM(POSIX_FADV_SEQUENTIAL);
+#endif
+
+#ifdef POSIX_FADV_WILLNEED
+ if (sym == sym_willneed)
+ return INT2NUM(POSIX_FADV_WILLNEED);
+#endif
+
+#ifdef POSIX_FADV_DONTNEED
+ if (sym == sym_dontneed)
+ return INT2NUM(POSIX_FADV_DONTNEED);
+#endif
+
+#ifdef POSIX_FADV_NOREUSE
+ if (sym == sym_noreuse)
+ return INT2NUM(POSIX_FADV_NOREUSE);
+#endif
+
+ return Qnil;
+}
+
+static VALUE
+do_io_advise(rb_io_t *fptr, VALUE advice, off_t offset, off_t len)
+{
+ int rv;
+ struct io_advise_struct ias;
+ VALUE num_adv;
+
+ num_adv = io_advise_sym_to_const(advice);
+
+ /*
+ * The platform doesn't support this hint. We don't raise exception, instead
+ * silently ignore it. Because IO::advise is only hint.
+ */
+ if (num_adv == Qnil)
+ return Qnil;
+
+ ias.fd = fptr->fd;
+ ias.advice = NUM2INT(num_adv);
+ ias.offset = offset;
+ ias.len = len;
+
+ rv = (int)rb_thread_io_blocking_region(io_advise_internal, &ias, fptr->fd);
+ if (rv)
+ /* posix_fadvise(2) doesn't set errno. On success it returns 0; otherwise
+ it returns the error code. */
+ rb_syserr_fail(rv, RSTRING_PTR(fptr->pathv));
+
+ return Qnil;
+}
+
+#endif /* HAVE_POSIX_FADVISE */
+
+static void
+advice_arg_check(VALUE advice)
+{
+ if (!SYMBOL_P(advice))
+ rb_raise(rb_eTypeError, "advice must be a Symbol");
+
+ if (advice != sym_normal &&
+ advice != sym_sequential &&
+ advice != sym_random &&
+ advice != sym_willneed &&
+ advice != sym_dontneed &&
+ advice != sym_noreuse) {
+ VALUE symname = rb_inspect(advice);
+ rb_raise(rb_eNotImpError, "Unsupported advice: %s",
+ StringValuePtr(symname));
+ }
+}
+
+/*
+ * call-seq:
+ * ios.advise(advice, offset=0, len=0) -> nil
+ *
+ * Announce an intention to access data from the current file in a
+ * specific pattern. On platforms that do not support the
+ * <em>posix_fadvise(2)</em> system call, this method is a no-op.
+ *
+ * _advice_ is one of the following symbols:
+ *
+ * * :normal - No advice to give; the default assumption for an open file.
+ * * :sequential - The data will be accessed sequentially:
+ * with lower offsets read before higher ones.
+ * * :random - The data will be accessed in random order.
+ * * :willneed - The data will be accessed in the near future.
+ * * :dontneed - The data will not be accessed in the near future.
+ * * :noreuse - The data will only be accessed once.
+ *
+ * The semantics of a piece of advice are platform-dependent. See
+ * <em>man 2 posix_fadvise</em> for details.
+ *
+ * "data" means the region of the current file that begins at
+ * _offset_ and extends for _len_ bytes. If _len_ is 0, the region
+ * ends at the last byte of the file. By default, both _offset_ and
+ * _len_ are 0, meaning that the advice applies to the entire file.
+ *
+ * If an error occurs, one of the following exceptions will be raised:
+ *
+ * * <code>IOError</code> - The <code>IO</code> stream is closed.
+ * * <code>Errno::EBADF</code> - The file descriptor of the current file is
+ invalid.
+ * * <code>Errno::EINVAL</code> - An invalid value for _advice_ was given.
+ * * <code>Errno::ESPIPE</code> - The file descriptor of the current
+ * * file refers to a FIFO or pipe. (Linux raises <code>Errno::EINVAL</code>
+ * * in this case).
+ * * <code>TypeError</code> - Either _advice_ was not a Symbol, or one of the
+ other arguments was not an <code>Integer</code>.
+ * * <code>RangeError</code> - One of the arguments given was too big/small.
+ *
+ * This list is not exhaustive; other Errno:: exceptions are also possible.
+ */
+static VALUE
+rb_io_advise(int argc, VALUE *argv, VALUE io)
+{
+ VALUE advice, offset, len;
+ off_t off, l;
+ rb_io_t *fptr;
+
+ rb_scan_args(argc, argv, "12", &advice, &offset, &len);
+ advice_arg_check(advice);
+
+ io = GetWriteIO(io);
+ GetOpenFile(io, fptr);
+
+ off = NIL_P(offset) ? 0 : NUM2OFFT(offset);
+ l = NIL_P(len) ? 0 : NUM2OFFT(len);
+
+#ifdef HAVE_POSIX_FADVISE
+ return do_io_advise(fptr, advice, off, l);
+#else
+ /* Ignore all hint */
+ return Qnil;
+#endif
+}
+
/*
* call-seq:
* IO.select(read_array
* [, write_array
* [, error_array
- * [, timeout]]] ) => array or nil
+ * [, timeout]]]) -> array or nil
+ *
+ * Calls select(2) system call.
+ * It monitors given arrays of <code>IO</code> objects, waits one or more
+ * of <code>IO</code> objects ready for reading, are ready for writing,
+ * and have pending exceptions respectably, and returns an array that
+ * contains arrays of those IO objects. It will return <code>nil</code>
+ * if optional <i>timeout</i> value is given and no <code>IO</code> object
+ * is ready in <i>timeout</i> seconds.
+ *
+ * === Parameters
+ * read_array:: an array of <code>IO</code> objects that wait until ready for read
+ * write_array:: an array of <code>IO</code> objects that wait until ready for write
+ * error_array:: an array of <code>IO</code> objects that wait for exceptions
+ * timeout:: a numeric value in second
+ *
+ * === Example
+ *
+ * rp, wp = IO.pipe
+ * mesg = "ping "
+ * 100.times {
+ * rs, ws, = IO.select([rp], [wp])
+ * if r = rs[0]
+ * ret = r.read(5)
+ * print ret
+ * case ret
+ * when /ping/
+ * mesg = "pong\n"
+ * when /pong/
+ * mesg = "ping "
+ * end
+ * end
+ * if w = ws[0]
+ * w.write(mesg)
+ * end
+ * }
*
- * See <code>Kernel#select</code>.
+ * <em>produces:</em>
+ *
+ * ping pong
+ * ping pong
+ * ping pong
+ * (snipped)
+ * ping
*/
static VALUE
@@ -6831,39 +7915,57 @@ rb_f_select(int argc, VALUE *argv, VALUE obj)
for (i = 0; i < numberof(args.fdsets); ++i)
rb_fd_init(&args.fdsets[i]);
-#ifdef HAVE_RB_FD_INIT
return rb_ensure(select_call, (VALUE)&args, select_end, (VALUE)&args);
-#else
- return select_internal(args.read, args.write, args.except,
- args.timeout, args.fdsets);
-#endif
+}
+struct io_cntl_arg {
+ int fd;
+ int cmd;
+ long narg;
+ int io_p;
+};
+
+static VALUE nogvl_io_cntl(void *ptr)
+{
+ struct io_cntl_arg *arg = ptr;
+
+ if (arg->io_p)
+ return (VALUE)ioctl(arg->fd, arg->cmd, arg->narg);
+ else
+ return (VALUE)fcntl(arg->fd, arg->cmd, arg->narg);
}
static int
-io_cntl(int fd, unsigned long cmd, long narg, int io_p)
+io_cntl(int fd, int cmd, long narg, int io_p)
{
int retval;
+ struct io_cntl_arg arg;
-#ifdef HAVE_FCNTL
-# if defined(__CYGWIN__)
- retval = io_p?ioctl(fd, cmd, (void*)narg):fcntl(fd, cmd, narg);
-# else
- retval = io_p?ioctl(fd, cmd, narg):fcntl(fd, (int)cmd, narg);
-# endif
-#else
+#ifndef HAVE_FCNTL
if (!io_p) {
rb_notimplement();
}
- retval = ioctl(fd, cmd, narg);
#endif
+
+ arg.fd = fd;
+ arg.cmd = cmd;
+ arg.narg = narg;
+ arg.io_p = io_p;
+
+ retval = (int)rb_thread_io_blocking_region(nogvl_io_cntl, &arg, fd);
+#if defined(F_DUPFD)
+ if (!io_p && retval != -1 && cmd == F_DUPFD) {
+ rb_update_max_fd(retval);
+ }
+#endif
+
return retval;
}
static VALUE
rb_io_ctl(VALUE io, VALUE req, VALUE arg, int io_p)
{
- unsigned long cmd = NUM2ULONG(req);
+ int cmd = NUM2INT(req);
rb_io_t *fptr;
long len = 0;
long narg = 0;
@@ -6907,7 +8009,7 @@ rb_io_ctl(VALUE io, VALUE req, VALUE arg, int io_p)
rb_str_resize(arg, len+1);
}
RSTRING_PTR(arg)[len] = 17; /* a little sanity check here */
- narg = (long)RSTRING_PTR(arg);
+ narg = (long)(SIGNED_VALUE)RSTRING_PTR(arg);
}
}
GetOpenFile(io, fptr);
@@ -6933,7 +8035,7 @@ rb_io_ctl(VALUE io, VALUE req, VALUE arg, int io_p)
/*
* call-seq:
- * ios.ioctl(integer_cmd, arg) => integer
+ * ios.ioctl(integer_cmd, arg) -> integer
*
* Provides a mechanism for issuing low-level commands to control or
* query I/O devices. Arguments and results are platform dependent. If
@@ -6955,7 +8057,7 @@ rb_io_ioctl(int argc, VALUE *argv, VALUE io)
#ifdef HAVE_FCNTL
/*
* call-seq:
- * ios.fcntl(integer_cmd, arg) => integer
+ * ios.fcntl(integer_cmd, arg) -> integer
*
* Provides a mechanism for issuing low-level commands to control or
* query file-oriented I/O streams. Arguments and results are platform
@@ -6978,16 +8080,22 @@ rb_io_fcntl(int argc, VALUE *argv, VALUE io)
#define rb_io_fcntl rb_f_notimplement
#endif
-#if defined(HAVE_SYSCALL) && !defined(__CHECKER__) && SIZEOF_LONG == SIZEOF_INT
+#if defined(HAVE_SYSCALL) || defined(HAVE___SYSCALL)
/*
* call-seq:
- * syscall(fixnum [, args...]) => integer
+ * syscall(num [, args...]) -> integer
+ *
+ * Calls the operating system function identified by _num_ and
+ * returns the result of the function or raises SystemCallError if
+ * it failed.
+ *
+ * Arguments for the function can follow _num_. They must be either
+ * +String+ objects or +Integer+ objects. A +String+ object is passed
+ * as a pointer to the byte sequence. An +Integer+ object is passed
+ * as an integer whose bit size is same as a pointer.
+ * Up to nine parameters may be passed (14 on the Atari-ST).
*
- * Calls the operating system function identified by _fixnum_,
- * passing in the arguments, which must be either +String+
- * objects, or +Integer+ objects that ultimately fit within
- * a native +long+. Up to nine parameters may be passed (14
- * on the Atari-ST). The function identified by _fixnum_ is system
+ * The function identified by _num_ is system
* dependent. On some Unix systems, the numbers may be obtained from a
* header file called <code>syscall.h</code>.
*
@@ -6996,102 +8104,137 @@ rb_io_fcntl(int argc, VALUE *argv, VALUE io)
* <em>produces:</em>
*
* hello
+ *
+ *
+ * Calling +syscall+ on a platform which does not have any way to
+ * an arbitrary system function just fails with NotImplementedError.
+ *
+ * Note::
+ * +syscall+ is essentially unsafe and unportable. Feel free to shoot your foot.
+ * DL (Fiddle) library is preferred for safer and a bit more portable programming.
*/
static VALUE
rb_f_syscall(int argc, VALUE *argv)
{
#ifdef atarist
- unsigned long arg[14]; /* yes, we really need that many ! */
+ VALUE arg[13]; /* yes, we really need that many ! */
#else
- unsigned long arg[8];
+ VALUE arg[8];
#endif
- int retval = -1;
- int i = 1;
- int items = argc - 1;
-
- /* This probably won't work on machines where sizeof(long) != sizeof(int)
- * or where sizeof(long) != sizeof(char*). But such machines will
- * not likely have syscall implemented either, so who cares?
+#if SIZEOF_VOIDP == 8 && defined(HAVE___SYSCALL) && SIZEOF_INT != 8 /* mainly *BSD */
+# define SYSCALL __syscall
+# define NUM2SYSCALLID(x) NUM2LONG(x)
+# define RETVAL2NUM(x) LONG2NUM(x)
+# if SIZEOF_LONG == 8
+ long num, retval = -1;
+# elif SIZEOF_LONG_LONG == 8
+ long long num, retval = -1;
+# else
+# error ---->> it is asserted that __syscall takes the first argument and returns retval in 64bit signed integer. <<----
+# endif
+#elif defined linux
+# define SYSCALL syscall
+# define NUM2SYSCALLID(x) NUM2LONG(x)
+# define RETVAL2NUM(x) LONG2NUM(x)
+ /*
+ * Linux man page says, syscall(2) function prototype is below.
+ *
+ * int syscall(int number, ...);
+ *
+ * But, it's incorrect. Actual one takes and returned long. (see unistd.h)
*/
+ long num, retval = -1;
+#else
+# define SYSCALL syscall
+# define NUM2SYSCALLID(x) NUM2INT(x)
+# define RETVAL2NUM(x) INT2NUM(x)
+ int num, retval = -1;
+#endif
+ int i;
+
+ if (RTEST(ruby_verbose)) {
+ rb_warning("We plan to remove a syscall function at future release. DL(Fiddle) provides safer alternative.");
+ }
rb_secure(2);
if (argc == 0)
rb_raise(rb_eArgError, "too few arguments for syscall");
if (argc > numberof(arg))
rb_raise(rb_eArgError, "too many arguments for syscall");
- arg[0] = NUM2LONG(argv[0]); argv++;
- while (items--) {
- VALUE v = rb_check_string_type(*argv);
+ num = NUM2SYSCALLID(argv[0]); ++argv;
+ for (i = argc - 1; i--; ) {
+ VALUE v = rb_check_string_type(argv[i]);
if (!NIL_P(v)) {
- StringValue(v);
+ SafeStringValue(v);
rb_str_modify(v);
- arg[i] = (unsigned long)StringValueCStr(v);
+ arg[i] = (VALUE)StringValueCStr(v);
}
else {
- arg[i] = (unsigned long)NUM2LONG(*argv);
+ arg[i] = (VALUE)NUM2LONG(argv[i]);
}
- argv++;
- i++;
}
switch (argc) {
case 1:
- retval = syscall(arg[0]);
+ retval = SYSCALL(num);
break;
case 2:
- retval = syscall(arg[0],arg[1]);
+ retval = SYSCALL(num, arg[0]);
break;
case 3:
- retval = syscall(arg[0],arg[1],arg[2]);
+ retval = SYSCALL(num, arg[0],arg[1]);
break;
case 4:
- retval = syscall(arg[0],arg[1],arg[2],arg[3]);
+ retval = SYSCALL(num, arg[0],arg[1],arg[2]);
break;
case 5:
- retval = syscall(arg[0],arg[1],arg[2],arg[3],arg[4]);
+ retval = SYSCALL(num, arg[0],arg[1],arg[2],arg[3]);
break;
case 6:
- retval = syscall(arg[0],arg[1],arg[2],arg[3],arg[4],arg[5]);
+ retval = SYSCALL(num, arg[0],arg[1],arg[2],arg[3],arg[4]);
break;
case 7:
- retval = syscall(arg[0],arg[1],arg[2],arg[3],arg[4],arg[5],arg[6]);
+ retval = SYSCALL(num, arg[0],arg[1],arg[2],arg[3],arg[4],arg[5]);
break;
case 8:
- retval = syscall(arg[0],arg[1],arg[2],arg[3],arg[4],arg[5],arg[6],
- arg[7]);
+ retval = SYSCALL(num, arg[0],arg[1],arg[2],arg[3],arg[4],arg[5],arg[6]);
break;
#ifdef atarist
case 9:
- retval = syscall(arg[0],arg[1],arg[2],arg[3],arg[4],arg[5],arg[6],
- arg[7], arg[8]);
+ retval = SYSCALL(num, arg[0],arg[1],arg[2],arg[3],arg[4],arg[5],arg[6],
+ arg[7]);
break;
case 10:
- retval = syscall(arg[0],arg[1],arg[2],arg[3],arg[4],arg[5],arg[6],
- arg[7], arg[8], arg[9]);
+ retval = SYSCALL(num, arg[0],arg[1],arg[2],arg[3],arg[4],arg[5],arg[6],
+ arg[7], arg[8]);
break;
case 11:
- retval = syscall(arg[0],arg[1],arg[2],arg[3],arg[4],arg[5],arg[6],
- arg[7], arg[8], arg[9], arg[10]);
+ retval = SYSCALL(num, arg[0],arg[1],arg[2],arg[3],arg[4],arg[5],arg[6],
+ arg[7], arg[8], arg[9]);
break;
case 12:
- retval = syscall(arg[0],arg[1],arg[2],arg[3],arg[4],arg[5],arg[6],
- arg[7], arg[8], arg[9], arg[10], arg[11]);
+ retval = SYSCALL(num, arg[0],arg[1],arg[2],arg[3],arg[4],arg[5],arg[6],
+ arg[7], arg[8], arg[9], arg[10]);
break;
case 13:
- retval = syscall(arg[0],arg[1],arg[2],arg[3],arg[4],arg[5],arg[6],
- arg[7], arg[8], arg[9], arg[10], arg[11], arg[12]);
+ retval = SYSCALL(num, arg[0],arg[1],arg[2],arg[3],arg[4],arg[5],arg[6],
+ arg[7], arg[8], arg[9], arg[10], arg[11]);
break;
case 14:
- retval = syscall(arg[0],arg[1],arg[2],arg[3],arg[4],arg[5],arg[6],
- arg[7], arg[8], arg[9], arg[10], arg[11], arg[12], arg[13]);
- break;
-#endif /* atarist */
+ retval = SYSCALL(num, arg[0],arg[1],arg[2],arg[3],arg[4],arg[5],arg[6],
+ arg[7], arg[8], arg[9], arg[10], arg[11], arg[12]);
+ break;
+#endif
}
- if (retval < 0) rb_sys_fail(0);
- return INT2NUM(retval);
+ if (retval == -1)
+ rb_sys_fail(0);
+ return RETVAL2NUM(retval);
+#undef SYSCALL
+#undef NUM2SYSCALLID
+#undef RETVAL2NUM
}
#else
#define rb_f_syscall rb_f_notimplement
@@ -7107,15 +8250,14 @@ static void
io_encoding_set(rb_io_t *fptr, VALUE v1, VALUE v2, VALUE opt)
{
rb_encoding *enc, *enc2;
- int ecflags;
+ int ecflags = fptr->encs.ecflags;
VALUE ecopts, tmp;
if (!NIL_P(v2)) {
enc2 = rb_to_encoding(v1);
tmp = rb_check_string_type(v2);
if (!NIL_P(tmp)) {
- char *p = StringValueCStr(tmp);
- if (*p == '-' && *(p+1) == '\0') {
+ if (RSTRING_LEN(tmp) == 1 && RSTRING_PTR(tmp)[0] == '-') {
/* Special case - "-" => no transcoding */
enc = enc2;
enc2 = NULL;
@@ -7129,29 +8271,31 @@ io_encoding_set(rb_io_t *fptr, VALUE v1, VALUE v2, VALUE opt)
}
else
enc = rb_to_encoding(v2);
- ecflags = rb_econv_prepare_opts(opt, &ecopts);
+ SET_UNIVERSAL_NEWLINE_DECORATOR_IF_ENC2(enc2, ecflags);
+ ecflags = rb_econv_prepare_options(opt, &ecopts, ecflags);
}
else {
if (NIL_P(v1)) {
/* Set to default encodings */
rb_io_ext_int_to_encs(NULL, NULL, &enc, &enc2);
- ecflags = 0;
+ SET_UNIVERSAL_NEWLINE_DECORATOR_IF_ENC2(enc2, ecflags);
ecopts = Qnil;
}
else {
tmp = rb_check_string_type(v1);
- if (!NIL_P(tmp)) {
- parse_mode_enc(StringValueCStr(tmp), &enc, &enc2);
- ecflags = rb_econv_prepare_opts(opt, &ecopts);
+ if (!NIL_P(tmp) && rb_enc_asciicompat(rb_enc_get(tmp))) {
+ parse_mode_enc(RSTRING_PTR(tmp), &enc, &enc2, NULL);
+ SET_UNIVERSAL_NEWLINE_DECORATOR_IF_ENC2(enc2, ecflags);
+ ecflags = rb_econv_prepare_options(opt, &ecopts, ecflags);
}
else {
rb_io_ext_int_to_encs(rb_to_encoding(v1), NULL, &enc, &enc2);
- ecflags = 0;
+ SET_UNIVERSAL_NEWLINE_DECORATOR_IF_ENC2(enc2, ecflags);
ecopts = Qnil;
}
}
}
- validate_enc_binmode(fptr->mode, enc, enc2);
+ validate_enc_binmode(&fptr->mode, ecflags, enc, enc2);
fptr->encs.enc = enc;
fptr->encs.enc2 = enc2;
fptr->encs.ecflags = ecflags;
@@ -7169,10 +8313,10 @@ pipe_pair_close(VALUE rw)
/*
* call-seq:
- * IO.pipe -> [read_io, write_io]
- * IO.pipe(ext_enc) -> [read_io, write_io]
- * IO.pipe("ext_enc:int_enc" [, opt]) -> [read_io, write_io]
- * IO.pipe(ext_enc, int_enc [, opt]) -> [read_io, write_io]
+ * IO.pipe -> [read_io, write_io]
+ * IO.pipe(ext_enc) -> [read_io, write_io]
+ * IO.pipe("ext_enc:int_enc" [, opt]) -> [read_io, write_io]
+ * IO.pipe(ext_enc, int_enc [, opt]) -> [read_io, write_io]
*
* IO.pipe(...) {|read_io, write_io| ... }
*
@@ -7183,7 +8327,8 @@ pipe_pair_close(VALUE rw)
* If a block is given, the block is called and
* returns the value of the block.
* <i>read_io</i> and <i>write_io</i> are sent to the block as arguments.
- * In this form, read_io and write_io are closed when IO.pipe returns.
+ * If read_io and write_io are not closed when the block exits, they are closed.
+ * i.e. closing read_io and/or write_io doesn't cause an error.
*
* Not available on all platforms.
*
@@ -7236,8 +8381,7 @@ rb_io_s_pipe(int argc, VALUE *argv, VALUE klass)
int fmode = 0;
VALUE ret;
- opt = pop_last_hash(&argc, argv);
- rb_scan_args(argc, argv, "02", &v1, &v2);
+ argc = rb_scan_args(argc, argv, "02:", &v1, &v2, &opt);
if (rb_pipe(pipes) == -1)
rb_sys_fail(0);
@@ -7264,7 +8408,24 @@ rb_io_s_pipe(int argc, VALUE *argv, VALUE klass)
rb_io_synchronized(fptr2);
extract_binmode(opt, &fmode);
+#if DEFAULT_TEXTMODE
+ if ((fptr->mode & FMODE_TEXTMODE) && (fmode & FMODE_BINMODE)) {
+ fptr->mode &= ~FMODE_TEXTMODE;
+ setmode(fptr->fd, O_BINARY);
+ }
+#if defined(RUBY_TEST_CRLF_ENVIRONMENT) || defined(_WIN32)
+ if (fptr->encs.ecflags & ECONV_DEFAULT_NEWLINE_DECORATOR) {
+ fptr->encs.ecflags |= ECONV_UNIVERSAL_NEWLINE_DECORATOR;
+ }
+#endif
+#endif
fptr->mode |= fmode;
+#if DEFAULT_TEXTMODE
+ if ((fptr2->mode & FMODE_TEXTMODE) && (fmode & FMODE_BINMODE)) {
+ fptr2->mode &= ~FMODE_TEXTMODE;
+ setmode(fptr2->fd, O_BINARY);
+ }
+#endif
fptr2->mode |= fmode;
ret = rb_assoc_new(r, w);
@@ -7284,22 +8445,20 @@ struct foreach_arg {
};
static void
-open_key_args(int argc, VALUE *argv, struct foreach_arg *arg)
+open_key_args(int argc, VALUE *argv, VALUE opt, struct foreach_arg *arg)
{
- VALUE opt, v;
+ VALUE path, v;
- FilePathValue(argv[0]);
+ path = *argv++;
+ argc--;
+ FilePathValue(path);
arg->io = 0;
- arg->argc = argc - 1;
- arg->argv = argv + 1;
- if (argc == 1) {
- no_key:
- arg->io = rb_io_open(argv[0], INT2NUM(O_RDONLY), INT2FIX(0666), Qnil);
+ arg->argc = argc;
+ arg->argv = argv;
+ if (NIL_P(opt)) {
+ arg->io = rb_io_open(path, INT2NUM(O_RDONLY), INT2FIX(0666), Qnil);
return;
}
- opt = pop_last_hash(&arg->argc, arg->argv);
- if (NIL_P(opt)) goto no_key;
-
v = rb_hash_aref(opt, sym_open_args);
if (!NIL_P(v)) {
VALUE args;
@@ -7313,13 +8472,13 @@ open_key_args(int argc, VALUE *argv, struct foreach_arg *arg)
}
#endif
args = rb_ary_tmp_new(n);
- rb_ary_push(args, argv[0]);
+ rb_ary_push(args, path);
rb_ary_concat(args, v);
arg->io = rb_io_open_with_args((int)n, RARRAY_PTR(args));
rb_ary_clear(args); /* prevent from GC */
return;
}
- arg->io = rb_io_open(argv[0], Qnil, Qnil, opt);
+ arg->io = rb_io_open(path, Qnil, Qnil, opt);
}
static VALUE
@@ -7335,13 +8494,16 @@ io_s_foreach(struct foreach_arg *arg)
/*
* call-seq:
- * IO.foreach(name, sep=$/ [, open_args]) {|line| block } => nil
- * IO.foreach(name, limit [, open_args]) {|line| block } => nil
- * IO.foreach(name, sep, limit [, open_args]) {|line| block } => nil
+ * IO.foreach(name, sep=$/ [, open_args]) {|line| block } -> nil
+ * IO.foreach(name, limit [, open_args]) {|line| block } -> nil
+ * IO.foreach(name, sep, limit [, open_args]) {|line| block } -> nil
+ * IO.foreach(...) -> an_enumerator
*
* Executes the block for every line in the named I/O port, where lines
* are separated by <em>sep</em>.
*
+ * If no block is given, an enumerator is returned instead.
+ *
* IO.foreach("testfile") {|x| print "GOT ", x }
*
* <em>produces:</em>
@@ -7359,11 +8521,13 @@ io_s_foreach(struct foreach_arg *arg)
static VALUE
rb_io_s_foreach(int argc, VALUE *argv, VALUE self)
{
+ VALUE opt;
+ int orig_argc = argc;
struct foreach_arg arg;
- rb_scan_args(argc, argv, "13", NULL, NULL, NULL, NULL);
- RETURN_ENUMERATOR(self, argc, argv);
- open_key_args(argc, argv, &arg);
+ argc = rb_scan_args(argc, argv, "13:", NULL, NULL, NULL, NULL, &opt);
+ RETURN_ENUMERATOR(self, orig_argc, argv);
+ open_key_args(argc, argv, opt, &arg);
if (NIL_P(arg.io)) return Qnil;
return rb_ensure(io_s_foreach, (VALUE)&arg, rb_io_close, arg.io);
}
@@ -7376,9 +8540,9 @@ io_s_readlines(struct foreach_arg *arg)
/*
* call-seq:
- * IO.readlines(name, sep=$/ [, open_args]) => array
- * IO.readlines(name, limit [, open_args]) => array
- * IO.readlines(name, sep, limit [, open_args]) => array
+ * IO.readlines(name, sep=$/ [, open_args]) -> array
+ * IO.readlines(name, limit [, open_args]) -> array
+ * IO.readlines(name, sep, limit [, open_args]) -> array
*
* Reads the entire file specified by <i>name</i> as individual
* lines, and returns those lines in an array. Lines are separated by
@@ -7395,10 +8559,11 @@ io_s_readlines(struct foreach_arg *arg)
static VALUE
rb_io_s_readlines(int argc, VALUE *argv, VALUE io)
{
+ VALUE opt;
struct foreach_arg arg;
- rb_scan_args(argc, argv, "13", NULL, NULL, NULL, NULL);
- open_key_args(argc, argv, &arg);
+ argc = rb_scan_args(argc, argv, "13:", NULL, NULL, NULL, NULL, &opt);
+ open_key_args(argc, argv, opt, &arg);
if (NIL_P(arg.io)) return Qnil;
return rb_ensure(io_s_readlines, (VALUE)&arg, rb_io_close, arg.io);
}
@@ -7409,12 +8574,26 @@ io_s_read(struct foreach_arg *arg)
return io_read(arg->argc, arg->argv, arg->io);
}
+struct seek_arg {
+ VALUE io;
+ VALUE offset;
+ int mode;
+};
+
+static VALUE
+seek_before_access(VALUE argp)
+{
+ struct seek_arg *arg = (struct seek_arg *)argp;
+ rb_io_binmode(arg->io);
+ return rb_io_seek(arg->io, arg->offset, arg->mode);
+}
+
/*
* call-seq:
- * IO.read(name, [length [, offset]] ) => string
- * IO.read(name, [length [, offset]], open_args) => string
+ * IO.read(name, [length [, offset]] ) -> string
+ * IO.read(name, [length [, offset]], open_args) -> string
*
- * Opens the file, optionally seeks to the given offset, then returns
+ * Opens the file, optionally seeks to the given <i>offset</i>, then returns
* <i>length</i> bytes (defaulting to the rest of the file).
* <code>read</code> ensures the file is closed before returning.
*
@@ -7444,15 +8623,23 @@ io_s_read(struct foreach_arg *arg)
static VALUE
rb_io_s_read(int argc, VALUE *argv, VALUE io)
{
- VALUE offset;
+ VALUE opt, offset;
struct foreach_arg arg;
- rb_scan_args(argc, argv, "13", NULL, NULL, &offset, NULL);
- open_key_args(argc, argv, &arg);
+ argc = rb_scan_args(argc, argv, "13:", NULL, NULL, &offset, NULL, &opt);
+ open_key_args(argc, argv, opt, &arg);
if (NIL_P(arg.io)) return Qnil;
if (!NIL_P(offset)) {
- rb_io_binmode(arg.io);
- rb_io_seek(arg.io, offset, SEEK_SET);
+ struct seek_arg sarg;
+ int state = 0;
+ sarg.io = arg.io;
+ sarg.offset = offset;
+ sarg.mode = SEEK_SET;
+ rb_protect(seek_before_access, (VALUE)&sarg, &state);
+ if (state) {
+ rb_io_close(arg.io);
+ rb_jump_tag(state);
+ }
if (arg.argc == 2) arg.argc = 1;
}
return rb_ensure(io_s_read, (VALUE)&arg, rb_io_close, arg.io);
@@ -7460,11 +8647,11 @@ rb_io_s_read(int argc, VALUE *argv, VALUE io)
/*
* call-seq:
- * IO.binread(name, [length [, offset]] ) => string
+ * IO.binread(name, [length [, offset]] ) -> string
*
- * Opens the file, optionally seeks to the given offset, then returns
+ * Opens the file, optionally seeks to the given <i>offset</i>, then returns
* <i>length</i> bytes (defaulting to the rest of the file).
- * <code>read</code> ensures the file is closed before returning.
+ * <code>binread</code> ensures the file is closed before returning.
* The open mode would be "rb:ASCII-8BIT".
*
* IO.binread("testfile") #=> "This is line one\nThis is line two\nThis is line three\nAnd so on...\n"
@@ -7490,6 +8677,128 @@ rb_io_s_binread(int argc, VALUE *argv, VALUE io)
return rb_ensure(io_s_read, (VALUE)&arg, rb_io_close, arg.io);
}
+static VALUE
+io_s_write0(struct write_arg *arg)
+{
+ return io_write(arg->io,arg->str,arg->nosync);
+}
+
+static VALUE
+io_s_write(int argc, VALUE *argv, int binary)
+{
+ VALUE string, offset, opt;
+ struct foreach_arg arg;
+ struct write_arg warg;
+
+ rb_scan_args(argc, argv, "21:", NULL, &string, &offset, &opt);
+
+ if (NIL_P(opt)) opt = rb_hash_new();
+ else opt = rb_hash_dup(opt);
+
+
+ if (NIL_P(rb_hash_aref(opt,sym_mode))) {
+ int mode = O_WRONLY|O_CREAT;
+#ifdef O_BINARY
+ if (binary) mode |= O_BINARY;
+#endif
+ if (NIL_P(offset)) mode |= O_TRUNC;
+ rb_hash_aset(opt,sym_mode,INT2NUM(mode));
+ }
+ open_key_args(argc,argv,opt,&arg);
+
+#ifndef O_BINARY
+ if (binary) rb_io_binmode_m(arg.io);
+#endif
+
+ if (NIL_P(arg.io)) return Qnil;
+ if (!NIL_P(offset)) {
+ struct seek_arg sarg;
+ int state = 0;
+ sarg.io = arg.io;
+ sarg.offset = offset;
+ sarg.mode = SEEK_SET;
+ rb_protect(seek_before_access, (VALUE)&sarg, &state);
+ if (state) {
+ rb_io_close(arg.io);
+ rb_jump_tag(state);
+ }
+ }
+
+ warg.io = arg.io;
+ warg.str = string;
+ warg.nosync = 0;
+
+ return rb_ensure(io_s_write0, (VALUE)&warg, rb_io_close, arg.io);
+}
+
+/*
+ * call-seq:
+ * IO.write(name, string, [offset] ) => fixnum
+ * IO.write(name, string, [offset], open_args ) => fixnum
+ *
+ * Opens the file, optionally seeks to the given <i>offset</i>, writes
+ * <i>string</i>, then returns the length written.
+ * <code>write</code> ensures the file is closed before returning.
+ * If <i>offset</i> is not given, the file is truncated. Otherwise,
+ * it is not truncated.
+ *
+ * If the last argument is a hash, it specifies option for internal
+ * open(). The key would be the following. open_args: is exclusive
+ * to others.
+ *
+ * encoding: string or encoding
+ *
+ * specifies encoding of the read string. encoding will be ignored
+ * if length is specified.
+ *
+ * mode: string
+ *
+ * specifies mode argument for open(). it should start with "w" or "a" or "r+"
+ * otherwise it would cause error.
+ *
+ * perm: fixnum
+ *
+ * specifies perm argument for open().
+ *
+ * open_args: array
+ *
+ * specifies arguments for open() as an array.
+ *
+ * IO.write("testfile", "0123456789", 20) # => 10
+ * # File could contain: "This is line one\nThi0123456789two\nThis is line three\nAnd so on...\n"
+ * IO.write("testfile", "0123456789") #=> 10
+ * # File would now read: "0123456789"
+ */
+
+static VALUE
+rb_io_s_write(int argc, VALUE *argv, VALUE io)
+{
+ return io_s_write(argc, argv, 0);
+}
+
+/*
+ * call-seq:
+ * IO.binwrite(name, string, [offset] ) => fixnum
+ *
+ * Opens the file, optionally seeks to the given <i>offset</i>, writes
+ * <i>string</i> then returns the length written.
+ * <code>binwrite</code> ensures the file is closed before returning.
+ * The open mode would be "wb:ASCII-8BIT".
+ * If <i>offset</i> is not given, the file is truncated. Otherwise,
+ * it is not truncated.
+ *
+ * IO.binwrite("testfile", "0123456789", 20) # => 10
+ * # File could contain: "This is line one\nThi0123456789two\nThis is line three\nAnd so on...\n"
+ * IO.binwrite("testfile", "0123456789") #=> 10
+ * # File would now read: "0123456789"
+ */
+
+static VALUE
+rb_io_s_binwrite(int argc, VALUE *argv, VALUE io)
+{
+ return io_s_write(argc, argv, 1);
+}
+
struct copy_stream_struct {
VALUE src;
VALUE dst;
@@ -7508,13 +8817,58 @@ struct copy_stream_struct {
VALUE th;
};
+static void *
+exec_interrupts(void *arg)
+{
+ VALUE th = (VALUE)arg;
+ rb_thread_execute_interrupts(th);
+ return NULL;
+}
+
+/*
+ * returns TRUE if the preceding system call was interrupted
+ * so we can continue. If the thread was interrupted, we
+ * reacquire the GVL to execute interrupts before continuing.
+ */
+static int
+maygvl_copy_stream_continue_p(int has_gvl, struct copy_stream_struct *stp)
+{
+ switch (errno) {
+ case EINTR:
+#if defined(ERESTART)
+ case ERESTART:
+#endif
+ if (rb_thread_interrupted(stp->th)) {
+ if (has_gvl)
+ rb_thread_execute_interrupts(stp->th);
+ else
+ rb_thread_call_with_gvl(exec_interrupts, (void *)stp->th);
+ }
+ return TRUE;
+ }
+ return FALSE;
+}
+
+static int
+maygvl_select(int has_gvl, int n, rb_fdset_t *rfds, rb_fdset_t *wfds, rb_fdset_t *efds, struct timeval *timeout)
+{
+ if (has_gvl)
+ return rb_thread_fd_select(n, rfds, wfds, efds, timeout);
+ else
+ return rb_fd_select(n, rfds, wfds, efds, timeout);
+}
+
static int
-maygvl_copy_stream_wait_read(struct copy_stream_struct *stp)
+maygvl_copy_stream_wait_read(int has_gvl, struct copy_stream_struct *stp)
{
int ret;
- rb_fd_zero(&stp->fds);
- rb_fd_set(stp->src_fd, &stp->fds);
- ret = rb_fd_select(rb_fd_max(&stp->fds), &stp->fds, NULL, NULL, NULL);
+
+ do {
+ rb_fd_zero(&stp->fds);
+ rb_fd_set(stp->src_fd, &stp->fds);
+ ret = maygvl_select(has_gvl, rb_fd_max(&stp->fds), &stp->fds, NULL, NULL, NULL);
+ } while (ret == -1 && maygvl_copy_stream_continue_p(has_gvl, stp));
+
if (ret == -1) {
stp->syserr = "select";
stp->error_no = errno;
@@ -7527,9 +8881,13 @@ static int
nogvl_copy_stream_wait_write(struct copy_stream_struct *stp)
{
int ret;
- rb_fd_zero(&stp->fds);
- rb_fd_set(stp->dst_fd, &stp->fds);
- ret = rb_fd_select(rb_fd_max(&stp->fds), NULL, &stp->fds, NULL, NULL);
+
+ do {
+ rb_fd_zero(&stp->fds);
+ rb_fd_set(stp->dst_fd, &stp->fds);
+ ret = rb_fd_select(rb_fd_max(&stp->fds), NULL, &stp->fds, NULL, NULL);
+ } while (ret == -1 && maygvl_copy_stream_continue_p(0, stp));
+
if (ret == -1) {
stp->syserr = "select";
stp->error_no = errno;
@@ -7540,20 +8898,52 @@ nogvl_copy_stream_wait_write(struct copy_stream_struct *stp)
#ifdef HAVE_SENDFILE
-#ifdef __linux__
-#define USE_SENDFILE
+# ifdef __linux__
+# define USE_SENDFILE
-#ifdef HAVE_SYS_SENDFILE_H
-#include <sys/sendfile.h>
-#endif
+# ifdef HAVE_SYS_SENDFILE_H
+# include <sys/sendfile.h>
+# endif
static ssize_t
-simple_sendfile(int out_fd, int in_fd, off_t *offset, size_t count)
+simple_sendfile(int out_fd, int in_fd, off_t *offset, off_t count)
{
- return sendfile(out_fd, in_fd, offset, count);
+ return sendfile(out_fd, in_fd, offset, (size_t)count);
}
-#endif
+# elif 0 /* defined(__FreeBSD__) || defined(__DragonFly__) */ || defined(__APPLE__)
+/* This runs on FreeBSD8.1 r30210, but sendfiles blocks its execution
+ * without cpuset -l 0.
+ */
+# define USE_SENDFILE
+
+# ifdef HAVE_SYS_UIO_H
+# include <sys/uio.h>
+# endif
+
+static ssize_t
+simple_sendfile(int out_fd, int in_fd, off_t *offset, off_t count)
+{
+ int r;
+ off_t pos = offset ? *offset : lseek(in_fd, 0, SEEK_CUR);
+ off_t sbytes;
+# ifdef __APPLE__
+ r = sendfile(in_fd, out_fd, pos, &count, NULL, 0);
+ sbytes = count;
+# else
+ r = sendfile(in_fd, out_fd, pos, (size_t)count, NULL, &sbytes, 0);
+# endif
+ if (r != 0 && sbytes == 0) return -1;
+ if (offset) {
+ *offset += sbytes;
+ }
+ else {
+ lseek(in_fd, sbytes, SEEK_CUR);
+ }
+ return (ssize_t)sbytes;
+}
+
+# endif
#endif
@@ -7595,8 +8985,10 @@ nogvl_copy_stream_sendfile(struct copy_stream_struct *stp)
if (use_pread)
copy_length = src_stat.st_size - src_offset;
else {
- off_t cur = lseek(stp->src_fd, 0, SEEK_CUR);
- if (cur == (off_t)-1) {
+ off_t cur;
+ errno = 0;
+ cur = lseek(stp->src_fd, 0, SEEK_CUR);
+ if (cur == (off_t)-1 && errno) {
stp->syserr = "lseek";
stp->error_no = errno;
return -1;
@@ -7606,21 +8998,28 @@ nogvl_copy_stream_sendfile(struct copy_stream_struct *stp)
}
retry_sendfile:
+# if SIZEOF_OFF_T > SIZEOF_SIZE_T
+ /* we are limited by the 32-bit ssize_t return value on 32-bit */
+ ss = (copy_length > (off_t)SSIZE_MAX) ? SSIZE_MAX : (ssize_t)copy_length;
+# else
+ ss = (ssize_t)copy_length;
+# endif
if (use_pread) {
- ss = simple_sendfile(stp->dst_fd, stp->src_fd, &src_offset, copy_length);
+ ss = simple_sendfile(stp->dst_fd, stp->src_fd, &src_offset, ss);
}
else {
- ss = simple_sendfile(stp->dst_fd, stp->src_fd, NULL, copy_length);
+ ss = simple_sendfile(stp->dst_fd, stp->src_fd, NULL, ss);
}
if (0 < ss) {
stp->total += ss;
copy_length -= ss;
if (0 < copy_length) {
- ss = -1;
- errno = EAGAIN;
+ goto retry_sendfile;
}
}
if (ss == -1) {
+ if (maygvl_copy_stream_continue_p(0, stp))
+ goto retry_sendfile;
switch (errno) {
case EINVAL:
#ifdef ENOSYS
@@ -7631,9 +9030,18 @@ nogvl_copy_stream_sendfile(struct copy_stream_struct *stp)
#if defined(EWOULDBLOCK) && EWOULDBLOCK != EAGAIN
case EWOULDBLOCK:
#endif
- if (nogvl_copy_stream_wait_write(stp) == -1)
+#ifndef linux
+ /*
+ * Linux requires stp->src_fd to be a mmap-able (regular) file,
+ * select() reports regular files to always be "ready", so
+ * there is no need to select() on it.
+ * Other OSes may have the same limitation for sendfile() which
+ * allow us to bypass maygvl_copy_stream_wait_read()...
+ */
+ if (maygvl_copy_stream_wait_read(0, stp) == -1)
return -1;
- if (rb_thread_interrupted(stp->th))
+#endif
+ if (nogvl_copy_stream_wait_write(stp) == -1)
return -1;
goto retry_sendfile;
}
@@ -7646,12 +9054,22 @@ nogvl_copy_stream_sendfile(struct copy_stream_struct *stp)
#endif
static ssize_t
-maygvl_copy_stream_read(struct copy_stream_struct *stp, char *buf, size_t len, off_t offset)
+maygvl_read(int has_gvl, int fd, void *buf, size_t count)
+{
+ if (has_gvl)
+ return rb_read_internal(fd, buf, count);
+ else
+ return read(fd, buf, count);
+}
+
+static ssize_t
+maygvl_copy_stream_read(int has_gvl, struct copy_stream_struct *stp, char *buf, size_t len, off_t offset)
{
ssize_t ss;
retry_read:
- if (offset == (off_t)-1)
- ss = read(stp->src_fd, buf, len);
+ if (offset == (off_t)-1) {
+ ss = maygvl_read(has_gvl, stp->src_fd, buf, len);
+ }
else {
#ifdef HAVE_PREAD
ss = pread(stp->src_fd, buf, len, offset);
@@ -7664,12 +9082,14 @@ maygvl_copy_stream_read(struct copy_stream_struct *stp, char *buf, size_t len, o
return 0;
}
if (ss == -1) {
+ if (maygvl_copy_stream_continue_p(has_gvl, stp))
+ goto retry_read;
switch (errno) {
case EAGAIN:
#if defined(EWOULDBLOCK) && EWOULDBLOCK != EAGAIN
case EWOULDBLOCK:
#endif
- if (maygvl_copy_stream_wait_read(stp) == -1)
+ if (maygvl_copy_stream_wait_read(has_gvl, stp) == -1)
return -1;
goto retry_read;
#ifdef ENOSYS
@@ -7693,6 +9113,8 @@ nogvl_copy_stream_write(struct copy_stream_struct *stp, char *buf, size_t len)
while (len) {
ss = write(stp->dst_fd, buf+off, len);
if (ss == -1) {
+ if (maygvl_copy_stream_continue_p(0, stp))
+ continue;
if (errno == EAGAIN || errno == EWOULDBLOCK) {
if (nogvl_copy_stream_wait_write(stp) == -1)
return -1;
@@ -7728,8 +9150,9 @@ nogvl_copy_stream_read_write(struct copy_stream_struct *stp)
if (use_pread && stp->close_src) {
off_t r;
+ errno = 0;
r = lseek(stp->src_fd, src_offset, SEEK_SET);
- if (r == (off_t)-1) {
+ if (r == (off_t)-1 && errno) {
stp->syserr = "lseek";
stp->error_no = errno;
return;
@@ -7746,12 +9169,12 @@ nogvl_copy_stream_read_write(struct copy_stream_struct *stp)
len = sizeof(buf);
}
if (use_pread) {
- ss = maygvl_copy_stream_read(stp, buf, len, src_offset);
+ ss = maygvl_copy_stream_read(0, stp, buf, len, src_offset);
if (0 < ss)
src_offset += ss;
}
else {
- ss = maygvl_copy_stream_read(stp, buf, len, (off_t)-1);
+ ss = maygvl_copy_stream_read(0, stp, buf, len, (off_t)-1);
}
if (ss <= 0) /* EOF or error */
return;
@@ -7762,9 +9185,6 @@ nogvl_copy_stream_read_write(struct copy_stream_struct *stp)
if (!use_eof)
copy_length -= ss;
-
- if (rb_thread_interrupted(stp->th))
- return;
}
}
@@ -7825,7 +9245,7 @@ copy_stream_fallback_body(VALUE arg)
ssize_t ss;
rb_thread_wait_fd(stp->src_fd);
rb_str_resize(buf, buflen);
- ss = maygvl_copy_stream_read(stp, RSTRING_PTR(buf), l, off);
+ ss = maygvl_copy_stream_read(1, stp, RSTRING_PTR(buf), l, off);
if (ss == -1)
return Qnil;
if (ss == 0)
@@ -7892,7 +9312,7 @@ copy_stream_body(VALUE arg)
stp->close_src = 1;
}
GetOpenFile(src_io, src_fptr);
- rb_io_check_readable(src_fptr);
+ rb_io_check_byte_readable(src_fptr);
src_fd = src_fptr->fd;
}
stp->src_fd = src_fd;
@@ -7929,8 +9349,15 @@ copy_stream_body(VALUE arg)
}
stp->dst_fd = dst_fd;
- if (stp->src_offset == (off_t)-1 && src_fptr && src_fptr->rbuf_len) {
- size_t len = src_fptr->rbuf_len;
+#ifdef O_BINARY
+ if (src_fptr)
+ SET_BINARY_MODE_WITH_SEEK_CUR(src_fptr);
+ if (dst_fptr)
+ setmode(dst_fd, O_BINARY);
+#endif
+
+ if (stp->src_offset == (off_t)-1 && src_fptr && src_fptr->rbuf.len) {
+ size_t len = src_fptr->rbuf.len;
VALUE str;
if (stp->copy_length != (off_t)-1 && stp->copy_length < (off_t)len) {
len = (size_t)stp->copy_length;
@@ -7939,7 +9366,7 @@ copy_stream_body(VALUE arg)
rb_str_resize(str,len);
read_buffered_data(RSTRING_PTR(str), len, src_fptr);
if (dst_fptr) { /* IO or filename */
- if (io_binwrite(str, dst_fptr, 0) < 0)
+ if (io_binwrite(str, RSTRING_PTR(str), RSTRING_LEN(str), dst_fptr, 0) < 0)
rb_sys_fail(0);
}
else /* others such as StringIO */
@@ -7960,7 +9387,6 @@ copy_stream_body(VALUE arg)
return copy_stream_fallback(stp);
}
- rb_fd_init(&stp->fds);
rb_fd_set(src_fd, &stp->fds);
rb_fd_set(dst_fd, &stp->fds);
@@ -8039,6 +9465,7 @@ rb_io_s_copy_stream(int argc, VALUE *argv, VALUE io)
else
st.src_offset = NUM2OFFT(src_offset);
+ rb_fd_init(&st.fds);
rb_ensure(copy_stream_body, (VALUE)&st, copy_stream_finalize, (VALUE)&st);
return OFFT2NUM(st.total);
@@ -8046,7 +9473,7 @@ rb_io_s_copy_stream(int argc, VALUE *argv, VALUE io)
/*
* call-seq:
- * io.external_encoding => encoding
+ * io.external_encoding -> encoding
*
* Returns the Encoding object that represents the encoding of the file.
* If io is write mode and no encoding is specified, returns <code>nil</code>.
@@ -8071,7 +9498,7 @@ rb_io_external_encoding(VALUE io)
/*
* call-seq:
- * io.internal_encoding => encoding
+ * io.internal_encoding -> encoding
*
* Returns the Encoding of the internal string if conversion is
* specified. Otherwise returns nil.
@@ -8089,11 +9516,11 @@ rb_io_internal_encoding(VALUE io)
/*
* call-seq:
- * io.set_encoding(ext_enc) => io
- * io.set_encoding("ext_enc:int_enc") => io
- * io.set_encoding(ext_enc, int_enc) => io
- * io.set_encoding("ext_enc:int_enc", opt) => io
- * io.set_encoding(ext_enc, int_enc, opt) => io
+ * io.set_encoding(ext_enc) -> io
+ * io.set_encoding("ext_enc:int_enc") -> io
+ * io.set_encoding(ext_enc, int_enc) -> io
+ * io.set_encoding("ext_enc:int_enc", opt) -> io
+ * io.set_encoding(ext_enc, int_enc, opt) -> io
*
* If single argument is specified, read string from io is tagged
* with the encoding specified. If encoding is a colon separated two
@@ -8112,13 +9539,43 @@ rb_io_set_encoding(int argc, VALUE *argv, VALUE io)
rb_io_t *fptr;
VALUE v1, v2, opt;
- opt = pop_last_hash(&argc, argv);
- rb_scan_args(argc, argv, "11", &v1, &v2);
+ if (TYPE(io) != T_FILE) {
+ return rb_funcall2(io, id_set_encoding, argc, argv);
+ }
+
+ argc = rb_scan_args(argc, argv, "11:", &v1, &v2, &opt);
GetOpenFile(io, fptr);
io_encoding_set(fptr, v1, v2, opt);
return io;
}
+void
+rb_stdio_set_default_encoding(void)
+{
+ extern VALUE rb_stdin, rb_stdout, rb_stderr;
+ VALUE val = Qnil;
+
+ rb_io_set_encoding(1, &val, rb_stdin);
+ rb_io_set_encoding(1, &val, rb_stdout);
+ rb_io_set_encoding(1, &val, rb_stderr);
+}
+
+/*
+ * call-seq:
+ * ARGF.external_encoding -> encoding
+ *
+ * Returns the external encoding for files read from +ARGF+ as an +Encoding+
+ * object. The external encoding is the encoding of the text as stored in a
+ * file. Contrast with +ARGF.internal_encoding+, which is the encoding used
+ * to represent this text within Ruby.
+ *
+ * To set the external encoding use +ARGF.set_encoding+.
+ *
+ * For example:
+ *
+ * ARGF.external_encoding #=> #<Encoding:UTF-8>
+ *
+ */
static VALUE
argf_external_encoding(VALUE argf)
{
@@ -8128,6 +9585,19 @@ argf_external_encoding(VALUE argf)
return rb_io_external_encoding(rb_io_check_io(ARGF.current_file));
}
+/*
+ * call-seq:
+ * ARGF.internal_encoding -> encoding
+ *
+ * Returns the internal encoding for strings read from +ARGF+ as an
+ * +Encoding+ object.
+ *
+ * If +ARGF.set_encoding+ has been called with two encoding names, the second
+ * is returned. Otherwise, if +Encoding.default_external+ has been set, that
+ * value is returned. Failing that, if a default external encoding was
+ * specified on the command-line, that value is used. If the encoding is
+ * unknown, nil is returned.
+ */
static VALUE
argf_internal_encoding(VALUE argf)
{
@@ -8137,6 +9607,37 @@ argf_internal_encoding(VALUE argf)
return rb_io_internal_encoding(rb_io_check_io(ARGF.current_file));
}
+/*
+ * call-seq:
+ * ARGF.set_encoding(ext_enc) -> ARGF
+ * ARGF.set_encoding("ext_enc:int_enc") -> ARGF
+ * ARGF.set_encoding(ext_enc, int_enc) -> ARGF
+ * ARGF.set_encoding("ext_enc:int_enc", opt) -> ARGF
+ * ARGF.set_encoding(ext_enc, int_enc, opt) -> ARGF
+ *
+ * If single argument is specified, strings read from ARGF are tagged with
+ * the encoding specified.
+ *
+ * If two encoding names separated by a colon are given, e.g. "ascii:utf-8",
+ * the read string is converted from the first encoding (external encoding)
+ * to the second encoding (internal encoding), then tagged with the second
+ * encoding.
+ *
+ * If two arguments are specified, they must be encoding objects or encoding
+ * names. Again, the first specifies the external encoding; the second
+ * specifies the internal encoding.
+ *
+ * If the external encoding and the internal encoding are specified, the
+ * optional +Hash+ argument can be used to adjust the conversion process. The
+ * structure of this hash is explained in the +String#encode+ documentation.
+ *
+ * For example:
+ *
+ * ARGF.set_encoding('ascii') # Tag the input as US-ASCII text
+ * ARGF.set_encoding(Encoding::UTF_8) # Tag the input as UTF-8 text
+ * ARGF.set_encoding('utf-8','ascii') # Transcode the input from US-ASCII
+ * # to UTF-8.
+ */
static VALUE
argf_set_encoding(int argc, VALUE *argv, VALUE argf)
{
@@ -8151,6 +9652,18 @@ argf_set_encoding(int argc, VALUE *argv, VALUE argf)
return argf;
}
+/*
+ * call-seq:
+ * ARGF.tell -> Integer
+ * ARGF.pos -> Integer
+ *
+ * Returns the current offset (in bytes) of the current file in +ARGF+.
+ *
+ * ARGF.pos #=> 0
+ * ARGF.gets #=> "This is line one\n"
+ * ARGF.pos #=> 17
+ *
+ */
static VALUE
argf_tell(VALUE argf)
{
@@ -8161,6 +9674,13 @@ argf_tell(VALUE argf)
return rb_io_tell(ARGF.current_file);
}
+/*
+ * call-seq:
+ * ARGF.seek(amount, whence=IO::SEEK_SET) -> 0
+ *
+ * Seeks to offset _amount_ (an +Integer+) in the +ARGF+ stream according to
+ * the value of _whence_. See +IO#seek+ for further details.
+ */
static VALUE
argf_seek_m(int argc, VALUE *argv, VALUE argf)
{
@@ -8171,6 +9691,17 @@ argf_seek_m(int argc, VALUE *argv, VALUE argf)
return rb_io_seek_m(argc, argv, ARGF.current_file);
}
+/*
+ * call-seq:
+ * ARGF.pos = position -> Integer
+ *
+ * Seeks to the position given by _position_ (in bytes) in +ARGF+.
+ *
+ * For example:
+ *
+ * ARGF.pos = 17
+ * ARGF.gets #=> "This is line two\n"
+ */
static VALUE
argf_set_pos(VALUE argf, VALUE offset)
{
@@ -8181,6 +9712,18 @@ argf_set_pos(VALUE argf, VALUE offset)
return rb_io_set_pos(ARGF.current_file, offset);
}
+/*
+ * call-seq:
+ * ARGF.rewind -> 0
+ *
+ * Positions the current file to the beginning of input, resetting
+ * +ARGF.lineno+ to zero.
+ *
+ * ARGF.readline #=> "This is line one\n"
+ * ARGF.rewind #=> 0
+ * ARGF.lineno #=> 0
+ * ARGF.readline #=> "This is line one\n"
+ */
static VALUE
argf_rewind(VALUE argf)
{
@@ -8191,6 +9734,16 @@ argf_rewind(VALUE argf)
return rb_io_rewind(ARGF.current_file);
}
+/*
+ * call-seq:
+ * ARGF.fileno -> fixnum
+ * ARGF.to_i -> fixnum
+ *
+ * Returns an integer representing the numeric file descriptor for
+ * the current file. Raises an +ArgumentError+ if there isn't a current file.
+ *
+ * ARGF.fileno #=> 3
+ */
static VALUE
argf_fileno(VALUE argf)
{
@@ -8201,6 +9754,18 @@ argf_fileno(VALUE argf)
return rb_io_fileno(ARGF.current_file);
}
+/*
+ * call-seq:
+ * ARGF.to_io -> IO
+ *
+ * Returns an +IO+ object representing the current file. This will be a
+ * +File+ object unless the current file is a stream such as STDIN.
+ *
+ * For example:
+ *
+ * ARGF.to_io #=> #<File:glark.txt>
+ * ARGF.to_io #=> #<IO:<STDIN>>
+ */
static VALUE
argf_to_io(VALUE argf)
{
@@ -8209,11 +9774,31 @@ argf_to_io(VALUE argf)
return ARGF.current_file;
}
+/*
+ * call-seq:
+ * ARGF.eof? -> true or false
+ * ARGF.eof -> true or false
+ *
+ * Returns true if the current file in +ARGF+ is at end of file, i.e. it has
+ * no data to read. The stream must be opened for reading or an +IOError+
+ * will be raised.
+ *
+ * $ echo "eof" | ruby argf.rb
+ *
+ * ARGF.eof? #=> false
+ * 3.times { ARGF.readchar }
+ * ARGF.eof? #=> false
+ * ARGF.readchar #=> "\n"
+ * ARGF.eof? #=> true
+ */
+
static VALUE
argf_eof(VALUE argf)
{
- if (ARGF.current_file) {
+ next_argv();
+ if (RTEST(ARGF.current_file)) {
if (ARGF.init_p == 0) return Qtrue;
+ next_argv();
ARGF_FORWARD(0, 0);
if (rb_io_eof(ARGF.current_file)) {
return Qtrue;
@@ -8222,6 +9807,43 @@ argf_eof(VALUE argf)
return Qfalse;
}
+/*
+ * call-seq:
+ * ARGF.read([length [, buffer]]) -> string, buffer, or nil
+ *
+ * Reads _length_ bytes from ARGF. The files named on the command line
+ * are concatenated and treated as a single file by this method, so when
+ * called without arguments the contents of this pseudo file are returned in
+ * their entirety.
+ *
+ * _length_ must be a non-negative integer or nil. If it is a positive
+ * integer, +read+ tries to read at most _length_ bytes. It returns nil
+ * if an EOF was encountered before anything could be read. Fewer than
+ * _length_ bytes may be returned if an EOF is encountered during the read.
+ *
+ * If _length_ is omitted or is _nil_, it reads until EOF. A String is
+ * returned even if EOF is encountered before any data is read.
+ *
+ * If _length_ is zero, it returns _""_.
+ *
+ * If the optional _buffer_ argument is present, it must reference a String,
+ * which will receive the data.
+ *
+ * For example:
+ *
+ * $ echo "small" > small.txt
+ * $ echo "large" > large.txt
+ * $ ./glark.rb small.txt large.txt
+ *
+ * ARGF.read #=> "small\nlarge"
+ * ARGF.read(200) #=> "small\nlarge"
+ * ARGF.read(2) #=> "sm"
+ * ARGF.read(0) #=> ""
+ *
+ * Note that this method behaves like fread() function in C. If you need the
+ * behavior like read(2) system call, consider +ARGF.readpartial+.
+ */
+
static VALUE
argf_read(int argc, VALUE *argv, VALUE argf)
{
@@ -8281,9 +9903,59 @@ argf_forward_call(VALUE arg)
return Qnil;
}
+static VALUE argf_getpartial(int argc, VALUE *argv, VALUE argf, int nonblock);
+
+/*
+ * call-seq:
+ * ARGF.readpartial(maxlen) -> string
+ * ARGF.readpartial(maxlen, outbuf) -> outbuf
+ *
+ * Reads at most _maxlen_ bytes from the ARGF stream. It blocks only if
+ * +ARGF+ has no data immediately available. If the optional _outbuf_
+ * argument is present, it must reference a String, which will receive the
+ * data. It raises <code>EOFError</code> on end of file.
+ *
+ * +readpartial+ is designed for streams such as pipes, sockets, and ttys. It
+ * blocks only when no data is immediately available. This means that it
+ * blocks only when following all conditions hold:
+ *
+ * * The byte buffer in the +IO+ object is empty.
+ * * The content of the stream is empty.
+ * * The stream has not reached EOF.
+ *
+ * When +readpartial+ blocks, it waits for data or EOF. If some data is read,
+ * +readpartial+ returns with the data. If EOF is reached, readpartial raises
+ * an +EOFError+.
+ *
+ * When +readpartial+ doesn't block, it returns or raises immediately. If
+ * the byte buffer is not empty, it returns the data in the buffer. Otherwise, if
+ * the stream has some content, it returns the data in the stream. If the
+ * stream reaches EOF an +EOFError+ is raised.
+ */
+
static VALUE
argf_readpartial(int argc, VALUE *argv, VALUE argf)
{
+ return argf_getpartial(argc, argv, argf, 0);
+}
+
+/*
+ * call-seq:
+ * ARGF.read_nonblock(maxlen) -> string
+ * ARGF.read_nonblock(maxlen, outbuf) -> outbuf
+ *
+ * Reads at most _maxlen_ bytes from the ARGF stream in non-blocking mode.
+ */
+
+static VALUE
+argf_read_nonblock(int argc, VALUE *argv, VALUE argf)
+{
+ return argf_getpartial(argc, argv, argf, 1);
+}
+
+static VALUE
+argf_getpartial(int argc, VALUE *argv, VALUE argf, int nonblock)
+{
VALUE tmp, str, length;
rb_scan_args(argc, argv, "11", &length, &str);
@@ -8305,7 +9977,7 @@ argf_readpartial(int argc, VALUE *argv, VALUE argf)
RUBY_METHOD_FUNC(0), Qnil, rb_eEOFError, (VALUE)0);
}
else {
- tmp = io_getpartial(argc, argv, ARGF.current_file, 0);
+ tmp = io_getpartial(argc, argv, ARGF.current_file, nonblock);
}
if (NIL_P(tmp)) {
if (ARGF.next_p == -1) {
@@ -8322,6 +9994,29 @@ argf_readpartial(int argc, VALUE *argv, VALUE argf)
return tmp;
}
+/*
+ * call-seq:
+ * ARGF.getc -> String or nil
+ *
+ * Reads the next character from +ARGF+ and returns it as a +String+. Returns
+ * +nil+ at the end of the stream.
+ *
+ * +ARGF+ treats the files named on the command line as a single file created
+ * by concatenating their contents. After returning the last character of the
+ * first file, it returns the first character of the second file, and so on.
+ *
+ * For example:
+ *
+ * $ echo "foo" > file
+ * $ ruby argf.rb file
+ *
+ * ARGF.getc #=> "f"
+ * ARGF.getc #=> "o"
+ * ARGF.getc #=> "o"
+ * ARGF.getc #=> "\n"
+ * ARGF.getc #=> nil
+ * ARGF.getc #=> nil
+ */
static VALUE
argf_getc(VALUE argf)
{
@@ -8344,6 +10039,24 @@ argf_getc(VALUE argf)
return ch;
}
+/*
+ * call-seq:
+ * ARGF.getbyte -> Fixnum or nil
+ *
+ * Gets the next 8-bit byte (0..255) from +ARGF+. Returns +nil+ if called at
+ * the end of the stream.
+ *
+ * For example:
+ *
+ * $ echo "foo" > file
+ * $ ruby argf.rb file
+ *
+ * ARGF.getbyte #=> 102
+ * ARGF.getbyte #=> 111
+ * ARGF.getbyte #=> 111
+ * ARGF.getbyte #=> 10
+ * ARGF.getbyte #=> nil
+ */
static VALUE
argf_getbyte(VALUE argf)
{
@@ -8366,6 +10079,24 @@ argf_getbyte(VALUE argf)
return ch;
}
+/*
+ * call-seq:
+ * ARGF.readchar -> String or nil
+ *
+ * Reads the next character from +ARGF+ and returns it as a +String+. Raises
+ * an +EOFError+ after the last character of the last file has been read.
+ *
+ * For example:
+ *
+ * $ echo "foo" > file
+ * $ ruby argf.rb file
+ *
+ * ARGF.readchar #=> "f"
+ * ARGF.readchar #=> "o"
+ * ARGF.readchar #=> "o"
+ * ARGF.readchar #=> "\n"
+ * ARGF.readchar #=> end of file reached (EOFError)
+ */
static VALUE
argf_readchar(VALUE argf)
{
@@ -8388,6 +10119,24 @@ argf_readchar(VALUE argf)
return ch;
}
+/*
+ * call-seq:
+ * ARGF.readbyte -> Fixnum
+ *
+ * Reads the next 8-bit byte from ARGF and returns it as a +Fixnum+. Raises
+ * an +EOFError+ after the last byte of the last file has been read.
+ *
+ * For example:
+ *
+ * $ echo "foo" > file
+ * $ ruby argf.rb file
+ *
+ * ARGF.readbyte #=> 102
+ * ARGF.readbyte #=> 111
+ * ARGF.readbyte #=> 111
+ * ARGF.readbyte #=> 10
+ * ARGF.readbyte #=> end of file reached (EOFError)
+ */
static VALUE
argf_readbyte(VALUE argf)
{
@@ -8401,40 +10150,140 @@ argf_readbyte(VALUE argf)
return c;
}
+/*
+ * call-seq:
+ * ARGF.each(sep=$/) {|line| block } -> ARGF
+ * ARGF.each(sep=$/,limit) {|line| block } -> ARGF
+ * ARGF.each(...) -> an_enumerator
+ *
+ * ARGF.each_line(sep=$/) {|line| block } -> ARGF
+ * ARGF.each_line(sep=$/,limit) {|line| block } -> ARGF
+ * ARGF.each_line(...) -> an_enumerator
+ *
+ * ARGF.lines(sep=$/) {|line| block } -> ARGF
+ * ARGF.lines(sep=$/,limit) {|line| block } -> ARGF
+ * ARGF.lines(...) -> an_enumerator
+ *
+ * Returns an enumerator which iterates over each line (separated by _sep_,
+ * which defaults to your platform's newline character) of each file in
+ * +ARGV+. If a block is supplied, each line in turn will be yielded to the
+ * block, otherwise an enumerator is returned.
+ * The optional _limit_ argument is a +Fixnum+ specifying the maximum
+ * length of each line; longer lines will be split according to this limit.
+ *
+ * This method allows you to treat the files supplied on the command line as
+ * a single file consisting of the concatenation of each named file. After
+ * the last line of the first file has been returned, the first line of the
+ * second file is returned. The +ARGF.filename+ and +ARGF.lineno+ methods can
+ * be used to determine the filename and line number, respectively, of the
+ * current line.
+ *
+ * For example, the following code prints out each line of each named file
+ * prefixed with its line number, displaying the filename once per file:
+ *
+ * ARGF.lines do |line|
+ * puts ARGF.filename if ARGF.lineno == 1
+ * puts "#{ARGF.lineno}: #{line}"
+ * end
+ */
static VALUE
argf_each_line(int argc, VALUE *argv, VALUE argf)
{
RETURN_ENUMERATOR(argf, argc, argv);
for (;;) {
- if (!next_argv()) return Qnil;
- rb_block_call(ARGF.current_file, rb_intern("each_line"), argc, argv, rb_yield, 0);
+ if (!next_argv()) return argf;
+ rb_block_call(ARGF.current_file, rb_intern("each_line"), argc, argv, 0, 0);
ARGF.next_p = 1;
}
- return argf;
}
+/*
+ * call-seq:
+ * ARGF.bytes {|byte| block } -> ARGF
+ * ARGF.bytes -> an_enumerator
+ *
+ * ARGF.each_byte {|byte| block } -> ARGF
+ * ARGF.each_byte -> an_enumerator
+ *
+ * Iterates over each byte of each file in +ARGV+.
+ * A byte is returned as a +Fixnum+ in the range 0..255.
+ *
+ * This method allows you to treat the files supplied on the command line as
+ * a single file consisting of the concatenation of each named file. After
+ * the last byte of the first file has been returned, the first byte of the
+ * second file is returned. The +ARGF.filename+ method can be used to
+ * determine the filename of the current byte.
+ *
+ * If no block is given, an enumerator is returned instead.
+ *
+ * For example:
+ *
+ * ARGF.bytes.to_a #=> [35, 32, ... 95, 10]
+ *
+ */
static VALUE
argf_each_byte(VALUE argf)
{
RETURN_ENUMERATOR(argf, 0, 0);
for (;;) {
- if (!next_argv()) return Qnil;
- rb_block_call(ARGF.current_file, rb_intern("each_byte"), 0, 0, rb_yield, 0);
+ if (!next_argv()) return argf;
+ rb_block_call(ARGF.current_file, rb_intern("each_byte"), 0, 0, 0, 0);
ARGF.next_p = 1;
}
}
+/*
+ * call-seq:
+ * ARGF.chars {|char| block } -> ARGF
+ * ARGF.chars -> an_enumerator
+ *
+ * ARGF.each_char {|char| block } -> ARGF
+ * ARGF.each_char -> an_enumerator
+ *
+ * Iterates over each character of each file in +ARGF+.
+ *
+ * This method allows you to treat the files supplied on the command line as
+ * a single file consisting of the concatenation of each named file. After
+ * the last character of the first file has been returned, the first
+ * character of the second file is returned. The +ARGF.filename+ method can
+ * be used to determine the name of the file in which the current character
+ * appears.
+ *
+ * If no block is given, an enumerator is returned instead.
+ */
static VALUE
argf_each_char(VALUE argf)
{
RETURN_ENUMERATOR(argf, 0, 0);
for (;;) {
- if (!next_argv()) return Qnil;
- rb_block_call(ARGF.current_file, rb_intern("each_char"), 0, 0, rb_yield, 0);
+ if (!next_argv()) return argf;
+ rb_block_call(ARGF.current_file, rb_intern("each_char"), 0, 0, 0, 0);
ARGF.next_p = 1;
}
}
+/*
+ * call-seq:
+ * ARGF.filename -> String
+ * ARGF.path -> String
+ *
+ * Returns the current filename. "-" is returned when the current file is
+ * STDIN.
+ *
+ * For example:
+ *
+ * $ echo "foo" > foo
+ * $ echo "bar" > bar
+ * $ echo "glark" > glark
+ *
+ * $ ruby argf.rb foo bar glark
+ *
+ * ARGF.filename #=> "foo"
+ * ARGF.read(5) #=> "foo\nb"
+ * ARGF.filename #=> "bar"
+ * ARGF.skip
+ * ARGF.filename #=> "glark"
+ */
static VALUE
argf_filename(VALUE argf)
{
@@ -8448,6 +10297,24 @@ argf_filename_getter(ID id, VALUE *var)
return argf_filename(*var);
}
+/*
+ * call-seq:
+ * ARGF.file -> IO or File object
+ *
+ * Returns the current file as an +IO+ or +File+ object. #<IO:<STDIN>> is
+ * returned when the current file is STDIN.
+ *
+ * For example:
+ *
+ * $ echo "foo" > foo
+ * $ echo "bar" > bar
+ *
+ * $ ruby argf.rb foo bar
+ *
+ * ARGF.file #=> #<File:foo>
+ * ARGF.read(5) #=> "foo\nb"
+ * ARGF.file #=> #<File:bar>
+ */
static VALUE
argf_file(VALUE argf)
{
@@ -8455,32 +10322,88 @@ argf_file(VALUE argf)
return ARGF.current_file;
}
+/*
+ * call-seq:
+ * ARGF.binmode -> ARGF
+ *
+ * Puts +ARGF+ into binary mode. Once a stream is in binary mode, it cannot
+ * be reset to non-binary mode. This option has the following effects:
+ *
+ * * Newline conversion is disabled.
+ * * Encoding conversion is disabled.
+ * * Content is treated as ASCII-8BIT.
+ */
static VALUE
argf_binmode_m(VALUE argf)
{
ARGF.binmode = 1;
next_argv();
ARGF_FORWARD(0, 0);
- rb_io_binmode(ARGF.current_file);
+ rb_io_ascii8bit_binmode(ARGF.current_file);
return argf;
}
+/*
+ * call-seq:
+ * ARGF.binmode? -> true or false
+ *
+ * Returns true if +ARGF+ is being read in binary mode; false otherwise. (To
+ * enable binary mode use +ARGF.binmode+.
+ *
+ * For example:
+ *
+ * ARGF.binmode? #=> false
+ * ARGF.binmode
+ * ARGF.binmode? #=> true
+ */
static VALUE
argf_binmode_p(VALUE argf)
{
return ARGF.binmode ? Qtrue : Qfalse;
}
+/*
+ * call-seq:
+ * ARGF.skip -> ARGF
+ *
+ * Sets the current file to the next file in ARGV. If there aren't any more
+ * files it has no effect.
+ *
+ * For example:
+ *
+ * $ ruby argf.rb foo bar
+ * ARGF.filename #=> "foo"
+ * ARGF.skip
+ * ARGF.filename #=> "bar"
+ */
static VALUE
argf_skip(VALUE argf)
{
- if (ARGF.next_p != -1) {
+ if (ARGF.init_p && ARGF.next_p == 0) {
argf_close(ARGF.current_file);
ARGF.next_p = 1;
}
return argf;
}
+/*
+ * call-seq:
+ * ARGF.close -> ARGF
+ *
+ * Closes the current file and skips to the next in the stream. Trying to
+ * close a file that has already been closed causes an +IOError+ to be
+ * raised.
+ *
+ * For example:
+ *
+ * $ ruby argf.rb foo bar
+ *
+ * ARGF.filename #=> "foo"
+ * ARGF.close
+ * ARGF.filename #=> "bar"
+ * ARGF.close
+ * ARGF.close #=> closed stream (IOError)
+ */
static VALUE
argf_close_m(VALUE argf)
{
@@ -8489,10 +10412,17 @@ argf_close_m(VALUE argf)
if (ARGF.next_p != -1) {
ARGF.next_p = 1;
}
- ARGF.gets_lineno = 0;
+ ARGF.lineno = 0;
return argf;
}
+/*
+ * call-seq:
+ * ARGF.closed? -> true or false
+ *
+ * Returns _true_ if the current file has been closed; _false_ otherwise. Use
+ * +ARGF.close+ to actually close the current file.
+ */
static VALUE
argf_closed(VALUE argf)
{
@@ -8501,12 +10431,26 @@ argf_closed(VALUE argf)
return rb_io_closed(ARGF.current_file);
}
+/*
+ * call-seq:
+ * ARGF.to_s -> String
+ *
+ * Returns "ARGF".
+ */
static VALUE
argf_to_s(VALUE argf)
{
return rb_str_new2("ARGF");
}
+/*
+ * call-seq:
+ * ARGF.inplace_mode -> String
+ *
+ * Returns the file extension appended to the names of modified files under
+ * inplace-edit mode. This value can be set using +ARGF.inplace_mode=+ or
+ * passing the +-i+ switch to the Ruby binary.
+ */
static VALUE
argf_inplace_mode_get(VALUE argf)
{
@@ -8520,9 +10464,32 @@ opt_i_get(ID id, VALUE *var)
return argf_inplace_mode_get(*var);
}
+/*
+ * call-seq:
+ * ARGF.inplace_mode = ext -> ARGF
+ *
+ * Sets the filename extension for inplace editing mode to the given String.
+ * Each file being edited has this value appended to its filename. The
+ * modified file is saved under this new name.
+ *
+ * For example:
+ *
+ * $ ruby argf.rb file.txt
+ *
+ * ARGF.inplace_mode = '.bak'
+ * ARGF.lines do |line|
+ * print line.sub("foo","bar")
+ * end
+ *
+ * Each line of _file.txt_ has the first occurrence of "foo" replaced with
+ * "bar", then the new line is written out to _file.txt.bak_.
+ */
static VALUE
argf_inplace_mode_set(VALUE argf, VALUE val)
{
+ if (rb_safe_level() >= 1 && OBJ_TAINTED(val))
+ rb_insecure_operation();
+
if (!RTEST(val)) {
if (ARGF.inplace) free(ARGF.inplace);
ARGF.inplace = 0;
@@ -8556,6 +10523,20 @@ ruby_set_inplace_mode(const char *suffix)
if (suffix) ARGF.inplace = strdup(suffix);
}
+/*
+ * call-seq:
+ * ARGF.argv -> ARGV
+ *
+ * Returns the +ARGV+ array, which contains the arguments passed to your
+ * script, one per element.
+ *
+ * For example:
+ *
+ * $ ruby argf.rb -v glark.txt
+ *
+ * ARGF.argv #=> ["-v", "glark.txt"]
+ *
+ */
static VALUE
argf_argv(VALUE argf)
{
@@ -8575,6 +10556,110 @@ rb_get_argv(void)
}
/*
+ * call-seq:
+ * ARGF.to_write_io -> io
+ *
+ * Returns IO instance tied to _ARGF_ for writing if inplace mode is
+ * enabled.
+ */
+static VALUE
+argf_write_io(VALUE argf)
+{
+ if (!RTEST(ARGF.current_file)) {
+ rb_raise(rb_eIOError, "not opened for writing");
+ }
+ return GetWriteIO(ARGF.current_file);
+}
+
+/*
+ * call-seq:
+ * ARGF.write(string) -> integer
+ *
+ * Writes _string_ if inplace mode.
+ */
+static VALUE
+argf_write(VALUE argf, VALUE str)
+{
+ return rb_io_write(argf_write_io(argf), str);
+}
+
+/*
+ * Document-class: IOError
+ *
+ * Raised when an IO operation fails.
+ *
+ * File.open("/etc/hosts") {|f| f << "example"}
+ * #=> IOError: not opened for writing
+ *
+ * File.open("/etc/hosts") {|f| f.close; f.read }
+ * #=> IOError: closed stream
+ *
+ * Note that some IO failures raise +SystemCallError+s and these are not
+ * subclasses of IOError:
+ *
+ * File.open("does/not/exist")
+ * #=> Errno::ENOENT: No such file or directory - does/not/exist
+ */
+
+/*
+ * Document-class: EOFError
+ *
+ * Raised by some IO operations when reaching the end of file. Many IO
+ * methods exist in two forms,
+ *
+ * one that returns +nil+ when the end of file is reached, the other
+ * raises EOFError +EOFError+.
+ *
+ * +EOFError+ is a subclass of +IOError+.
+ *
+ * file = File.open("/etc/hosts")
+ * file.read
+ * file.gets #=> nil
+ * file.readline #=> EOFError: end of file reached
+ */
+
+/*
+ * Document-class: ARGF
+ *
+ * +ARGF+ is a stream designed for use in scripts that process files given as
+ * command-line arguments or passed in via STDIN.
+ *
+ * The arguments passed to your script are stored in the +ARGV+ Array, one
+ * argument per element. +ARGF+ assumes that any arguments that aren't
+ * filenames have been removed from +ARGV+. For example:
+ *
+ * $ ruby argf.rb --verbose file1 file2
+ *
+ * ARGV #=> ["--verbose", "file1", "file2"]
+ * option = ARGV.shift #=> "--verbose"
+ * ARGV #=> ["file1", "file2"]
+ *
+ * You can now use +ARGF+ to work with a concatenation of each of these named
+ * files. For instance, +ARGF.read+ will return the contents of _file1_
+ * followed by the contents of _file2_.
+ *
+ * After a file in +ARGV+ has been read +ARGF+ removes it from the Array.
+ * Thus, after all files have been read +ARGV+ will be empty.
+ *
+ * You can manipulate +ARGV+ yourself to control what +ARGF+ operates on. If
+ * you remove a file from +ARGV+, it is ignored by +ARGF+; if you add files to
+ * +ARGV+, they are treated as if they were named on the command line. For
+ * example:
+ *
+ * ARGV.replace ["file1"]
+ * ARGF.readlines # Returns the contents of file1 as an Array
+ * ARGV #=> []
+ * ARGV.replace ["file2", "file3"]
+ * ARGF.read # Returns the contents of file2 and file3
+ *
+ * If +ARGV+ is empty, +ARGF+ acts as if it contained STDIN, i.e. the data
+ * piped to your script. For example:
+ *
+ * $ echo "glark" | ruby -e 'p ARGF.read'
+ * "glark\n"
+ */
+
+/*
* Class <code>IO</code> is the basis for all input and output in Ruby.
* An I/O stream may be <em>duplexed</em> (that is, bidirectional), and
* so may use more than one native operating system stream.
@@ -8654,6 +10739,35 @@ rb_get_argv(void)
* command line (or STDIN if no files are mentioned). ARGF provides
* the methods <code>#path</code> and <code>#filename</code> to access
* the name of the file currently being read.
+ *
+ * == io/console
+ *
+ * The io/console extension provides methods for interacting with the
+ * console. The console can be accessed from <code>IO.console</code> or
+ * the standard input/output/error IO objects.
+ *
+ * Requiring io/console adds the following methods:
+ *
+ * * IO::console
+ * * IO#raw
+ * * IO#raw!
+ * * IO#cooked
+ * * IO#cooked!
+ * * IO#getch
+ * * IO#echo=
+ * * IO#echo?
+ * * IO#noecho
+ * * IO#winsize
+ * * IO#winsize=
+ * * IO#iflush
+ * * IO#ioflush
+ * * IO#oflush
+ *
+ * Example:
+ *
+ * require 'io/console'
+ * rows, columns = $stdin.winsize
+ * puts "You screen is #{columns} wide and #{rows} tall"
*/
void
@@ -8684,6 +10798,7 @@ Init_IO(void)
id_getc = rb_intern("getc");
id_flush = rb_intern("flush");
id_readpartial = rb_intern("readpartial");
+ id_set_encoding = rb_intern("set_encoding");
rb_define_global_function("syscall", rb_f_syscall, -1);
@@ -8724,6 +10839,8 @@ Init_IO(void)
rb_define_singleton_method(rb_cIO, "readlines", rb_io_s_readlines, -1);
rb_define_singleton_method(rb_cIO, "read", rb_io_s_read, -1);
rb_define_singleton_method(rb_cIO, "binread", rb_io_s_binread, -1);
+ rb_define_singleton_method(rb_cIO, "write", rb_io_s_write, -1);
+ rb_define_singleton_method(rb_cIO, "binwrite", rb_io_s_binwrite, -1);
rb_define_singleton_method(rb_cIO, "select", rb_f_select, -1);
rb_define_singleton_method(rb_cIO, "pipe", rb_io_s_pipe, -1);
rb_define_singleton_method(rb_cIO, "try_convert", rb_io_s_try_convert, 1);
@@ -8734,7 +10851,7 @@ Init_IO(void)
rb_output_fs = Qnil;
rb_define_hooked_variable("$,", &rb_output_fs, 0, rb_str_setter);
- rb_rs = rb_default_rs = rb_str_new2("\n");
+ rb_rs = rb_default_rs = rb_usascii_str_new2("\n");
rb_gc_register_mark_object(rb_default_rs);
rb_output_rs = Qnil;
OBJ_FREEZE(rb_default_rs); /* avoid modifying RS_default */
@@ -8756,9 +10873,11 @@ Init_IO(void)
rb_define_method(rb_cIO, "each_line", rb_io_each_line, -1);
rb_define_method(rb_cIO, "each_byte", rb_io_each_byte, 0);
rb_define_method(rb_cIO, "each_char", rb_io_each_char, 0);
- rb_define_method(rb_cIO, "lines", rb_io_lines, -1);
- rb_define_method(rb_cIO, "bytes", rb_io_bytes, 0);
- rb_define_method(rb_cIO, "chars", rb_io_chars, 0);
+ rb_define_method(rb_cIO, "each_codepoint", rb_io_each_codepoint, 0);
+ rb_define_method(rb_cIO, "lines", rb_io_each_line, -1);
+ rb_define_method(rb_cIO, "bytes", rb_io_each_byte, 0);
+ rb_define_method(rb_cIO, "chars", rb_io_each_char, 0);
+ rb_define_method(rb_cIO, "codepoints", rb_io_each_codepoint, 0);
rb_define_method(rb_cIO, "syswrite", rb_io_syswrite, 1);
rb_define_method(rb_cIO, "sysread", rb_io_sysread, -1);
@@ -8768,6 +10887,7 @@ Init_IO(void)
rb_define_method(rb_cIO, "to_io", rb_io_to_io, 0);
rb_define_method(rb_cIO, "fsync", rb_io_fsync, 0);
+ rb_define_method(rb_cIO, "fdatasync", rb_io_fdatasync, 0);
rb_define_method(rb_cIO, "sync", rb_io_sync, 0);
rb_define_method(rb_cIO, "sync=", rb_io_set_sync, 1);
@@ -8815,6 +10935,7 @@ Init_IO(void)
rb_define_method(rb_cIO, "binmode", rb_io_binmode_m, 0);
rb_define_method(rb_cIO, "binmode?", rb_io_binmode_p, 0);
rb_define_method(rb_cIO, "sysseek", rb_io_sysseek, -1);
+ rb_define_method(rb_cIO, "advise", rb_io_advise, -1);
rb_define_method(rb_cIO, "ioctl", rb_io_ioctl, -1);
rb_define_method(rb_cIO, "fcntl", rb_io_fcntl, -1);
@@ -8825,6 +10946,9 @@ Init_IO(void)
rb_define_method(rb_cIO, "internal_encoding", rb_io_internal_encoding, 0);
rb_define_method(rb_cIO, "set_encoding", rb_io_set_encoding, -1);
+ rb_define_method(rb_cIO, "autoclose?", rb_io_autoclose_p, 0);
+ rb_define_method(rb_cIO, "autoclose=", rb_io_set_autoclose, 1);
+
rb_define_variable("$stdin", &rb_stdin);
rb_stdin = prep_stdio(stdin, FMODE_READABLE, rb_cIO, "<STDIN>");
rb_define_hooked_variable("$stdout", &rb_stdout, 0, stdout_setter);
@@ -8835,11 +10959,18 @@ Init_IO(void)
orig_stdout = rb_stdout;
rb_deferr = orig_stderr = rb_stderr;
- /* constants to hold original stdin/stdout/stderr */
+ /* Holds the original stdin */
rb_define_global_const("STDIN", rb_stdin);
+ /* Holds the original stdout */
rb_define_global_const("STDOUT", rb_stdout);
+ /* Holds the original stderr */
rb_define_global_const("STDERR", rb_stderr);
+#if 0
+ /* Hack to get rdoc to regard ARGF as a class: */
+ rb_cARGF = rb_define_class("ARGF", rb_cObject);
+#endif
+
rb_cARGF = rb_class_new(rb_cObject);
rb_set_class_path(rb_cARGF, rb_cObject, "ARGF.class");
rb_define_alloc_func(rb_cARGF, argf_alloc);
@@ -8854,6 +10985,7 @@ Init_IO(void)
rb_define_method(rb_cARGF, "fileno", argf_fileno, 0);
rb_define_method(rb_cARGF, "to_i", argf_fileno, 0);
rb_define_method(rb_cARGF, "to_io", argf_to_io, 0);
+ rb_define_method(rb_cARGF, "to_write_io", argf_write_io, 0);
rb_define_method(rb_cARGF, "each", argf_each_line, -1);
rb_define_method(rb_cARGF, "each_line", argf_each_line, -1);
rb_define_method(rb_cARGF, "each_byte", argf_each_byte, 0);
@@ -8864,6 +10996,7 @@ Init_IO(void)
rb_define_method(rb_cARGF, "read", argf_read, -1);
rb_define_method(rb_cARGF, "readpartial", argf_readpartial, -1);
+ rb_define_method(rb_cARGF, "read_nonblock", argf_read_nonblock, -1);
rb_define_method(rb_cARGF, "readlines", argf_readlines, -1);
rb_define_method(rb_cARGF, "to_a", argf_readlines, -1);
rb_define_method(rb_cARGF, "gets", argf_gets, -1);
@@ -8882,6 +11015,12 @@ Init_IO(void)
rb_define_method(rb_cARGF, "binmode", argf_binmode_m, 0);
rb_define_method(rb_cARGF, "binmode?", argf_binmode_p, 0);
+ rb_define_method(rb_cARGF, "write", argf_write, 1);
+ rb_define_method(rb_cARGF, "print", rb_io_print, -1);
+ rb_define_method(rb_cARGF, "putc", rb_io_putc, 1);
+ rb_define_method(rb_cARGF, "puts", rb_io_puts, -1);
+ rb_define_method(rb_cARGF, "printf", rb_io_printf, -1);
+
rb_define_method(rb_cARGF, "filename", argf_filename, 0);
rb_define_method(rb_cARGF, "path", argf_filename, 0);
rb_define_method(rb_cARGF, "file", argf_file, 0);
@@ -8902,6 +11041,12 @@ Init_IO(void)
argf = rb_class_new_instance(0, 0, rb_cARGF);
rb_define_readonly_variable("$<", &argf);
+ /*
+ * ARGF is a stream designed for use in scripts that process files given
+ * as command-line arguments or passed in via STDIN.
+ *
+ * See ARGF (the class) for more details.
+ */
rb_define_global_const("ARGF", argf);
rb_define_hooked_variable("$.", &argf, argf_lineno_getter, argf_lineno_setter);
@@ -8919,28 +11064,36 @@ Init_IO(void)
rb_define_method(rb_cFile, "initialize", rb_file_initialize, -1);
+ /* open for reading only */
rb_file_const("RDONLY", INT2FIX(O_RDONLY));
+ /* open for writing only */
rb_file_const("WRONLY", INT2FIX(O_WRONLY));
+ /* open for reading and writing */
rb_file_const("RDWR", INT2FIX(O_RDWR));
+ /* append on each write */
rb_file_const("APPEND", INT2FIX(O_APPEND));
+ /* create file if it does not exist */
rb_file_const("CREAT", INT2FIX(O_CREAT));
+ /* error if CREAT and the file exists */
rb_file_const("EXCL", INT2FIX(O_EXCL));
#if defined(O_NDELAY) || defined(O_NONBLOCK)
-# ifdef O_NONBLOCK
+# ifndef O_NONBLOCK
+# define O_NONBLOCK O_NDELAY
+# endif
+ /* do not block on open or for data to become available */
rb_file_const("NONBLOCK", INT2FIX(O_NONBLOCK));
-# else
- rb_file_const("NONBLOCK", INT2FIX(O_NDELAY));
-# endif
#endif
+ /* truncate size to 0 */
rb_file_const("TRUNC", INT2FIX(O_TRUNC));
#ifdef O_NOCTTY
+ /* not to make opened IO the controlling terminal device */
rb_file_const("NOCTTY", INT2FIX(O_NOCTTY));
#endif
-#ifdef O_BINARY
- rb_file_const("BINARY", INT2FIX(O_BINARY));
-#else
- rb_file_const("BINARY", INT2FIX(0));
+#ifndef O_BINARY
+# define O_BINARY 0
#endif
+ /* disable line code conversion and make ASCII-8BIT */
+ rb_file_const("BINARY", INT2FIX(O_BINARY));
#ifdef O_SYNC
rb_file_const("SYNC", INT2FIX(O_SYNC));
#endif
@@ -8951,11 +11104,17 @@ Init_IO(void)
rb_file_const("RSYNC", INT2FIX(O_RSYNC));
#endif
#ifdef O_NOFOLLOW
+ /* do not follow symlinks */
rb_file_const("NOFOLLOW", INT2FIX(O_NOFOLLOW)); /* FreeBSD, Linux */
#endif
#ifdef O_NOATIME
+ /* do not change atime */
rb_file_const("NOATIME", INT2FIX(O_NOATIME)); /* Linux */
#endif
+#ifdef O_DIRECT
+ /* Try to minimize cache effects of the I/O to and from this file. */
+ rb_file_const("DIRECT", INT2FIX(O_DIRECT));
+#endif
sym_mode = ID2SYM(rb_intern("mode"));
sym_perm = ID2SYM(rb_intern("perm"));
@@ -8965,4 +11124,11 @@ Init_IO(void)
sym_open_args = ID2SYM(rb_intern("open_args"));
sym_textmode = ID2SYM(rb_intern("textmode"));
sym_binmode = ID2SYM(rb_intern("binmode"));
+ sym_autoclose = ID2SYM(rb_intern("autoclose"));
+ sym_normal = ID2SYM(rb_intern("normal"));
+ sym_sequential = ID2SYM(rb_intern("sequential"));
+ sym_random = ID2SYM(rb_intern("random"));
+ sym_willneed = ID2SYM(rb_intern("willneed"));
+ sym_dontneed = ID2SYM(rb_intern("dontneed"));
+ sym_noreuse = ID2SYM(rb_intern("noreuse"));
}
diff --git a/iseq.c b/iseq.c
index 6220aa8927..73806630b5 100644
--- a/iseq.c
+++ b/iseq.c
@@ -10,8 +10,9 @@
**********************************************************************/
#include "ruby/ruby.h"
+#include "internal.h"
-/* #define MARK_FREE_DEBUG 1 */
+/* #define RUBY_MARK_FREE_DEBUG 1 */
#include "gc.h"
#include "vm_core.h"
#include "iseq.h"
@@ -19,6 +20,9 @@
#include "insns.inc"
#include "insns_info.inc"
+#define ISEQ_MAJOR_VERSION 1
+#define ISEQ_MINOR_VERSION 2
+
VALUE rb_cISeq;
#define hidden_obj_p(obj) (!SPECIAL_CONST_P(obj) && !RBASIC(obj)->klass)
@@ -63,10 +67,12 @@ iseq_free(void *ptr)
if (ptr) {
iseq = ptr;
if (!iseq->orig) {
- /* It's possible that strings are freed
- * GC_INFO("%s @ %s\n", RSTRING_PTR(iseq->name),
- * RSTRING_PTR(iseq->filename));
- */
+ /* It's possible that strings are freed */
+ if (0) {
+ RUBY_GC_INFO("%s @ %s\n", RSTRING_PTR(iseq->name),
+ RSTRING_PTR(iseq->filename));
+ }
+
if (iseq->iseq != iseq->iseq_encoded) {
RUBY_FREE_UNLESS_NULL(iseq->iseq_encoded);
}
@@ -74,6 +80,7 @@ iseq_free(void *ptr)
RUBY_FREE_UNLESS_NULL(iseq->iseq);
RUBY_FREE_UNLESS_NULL(iseq->insn_info_table);
RUBY_FREE_UNLESS_NULL(iseq->local_table);
+ RUBY_FREE_UNLESS_NULL(iseq->ic_entries);
RUBY_FREE_UNLESS_NULL(iseq->catch_table);
RUBY_FREE_UNLESS_NULL(iseq->arg_opt_table);
compile_data_free(iseq->compile_data);
@@ -86,58 +93,107 @@ iseq_free(void *ptr)
static void
iseq_mark(void *ptr)
{
- rb_iseq_t *iseq;
RUBY_MARK_ENTER("iseq");
if (ptr) {
- iseq = ptr;
+ rb_iseq_t *iseq = ptr;
+
RUBY_GC_INFO("%s @ %s\n", RSTRING_PTR(iseq->name), RSTRING_PTR(iseq->filename));
RUBY_MARK_UNLESS_NULL(iseq->mark_ary);
RUBY_MARK_UNLESS_NULL(iseq->name);
RUBY_MARK_UNLESS_NULL(iseq->filename);
+ RUBY_MARK_UNLESS_NULL(iseq->filepath);
RUBY_MARK_UNLESS_NULL((VALUE)iseq->cref_stack);
RUBY_MARK_UNLESS_NULL(iseq->klass);
RUBY_MARK_UNLESS_NULL(iseq->coverage);
-/* RUBY_MARK_UNLESS_NULL((VALUE)iseq->node); */
-/* RUBY_MARK_UNLESS_NULL(iseq->cached_special_block); */
+#if 0
+ RUBY_MARK_UNLESS_NULL((VALUE)iseq->node);
+ RUBY_MARK_UNLESS_NULL(iseq->cached_special_block);
+#endif
RUBY_MARK_UNLESS_NULL(iseq->orig);
if (iseq->compile_data != 0) {
- RUBY_MARK_UNLESS_NULL(iseq->compile_data->mark_ary);
- RUBY_MARK_UNLESS_NULL(iseq->compile_data->err_info);
- RUBY_MARK_UNLESS_NULL(iseq->compile_data->catch_table_ary);
+ struct iseq_compile_data *const compile_data = iseq->compile_data;
+ RUBY_MARK_UNLESS_NULL(compile_data->mark_ary);
+ RUBY_MARK_UNLESS_NULL(compile_data->err_info);
+ RUBY_MARK_UNLESS_NULL(compile_data->catch_table_ary);
}
}
RUBY_MARK_LEAVE("iseq");
}
+static size_t
+iseq_memsize(const void *ptr)
+{
+ size_t size = sizeof(rb_iseq_t);
+ const rb_iseq_t *iseq;
+
+ if (ptr) {
+ iseq = ptr;
+ if (!iseq->orig) {
+ if (iseq->iseq != iseq->iseq_encoded) {
+ size += iseq->iseq_size * sizeof(VALUE);
+ }
+
+ size += iseq->iseq_size * sizeof(VALUE);
+ size += iseq->insn_info_size * sizeof(struct iseq_insn_info_entry);
+ size += iseq->local_table_size * sizeof(ID);
+ size += iseq->catch_table_size * sizeof(struct iseq_catch_table_entry);
+ size += iseq->arg_opts * sizeof(VALUE);
+ size += iseq->ic_size * sizeof(struct iseq_inline_cache_entry);
+
+ if (iseq->compile_data) {
+ struct iseq_compile_data_storage *cur;
+
+ cur = iseq->compile_data->storage_head;
+ while (cur) {
+ size += cur->size + sizeof(struct iseq_compile_data_storage);
+ cur = cur->next;
+ }
+ size += sizeof(struct iseq_compile_data);
+ }
+ }
+ }
+
+ return size;
+}
+
+static const rb_data_type_t iseq_data_type = {
+ "iseq",
+ {
+ iseq_mark,
+ iseq_free,
+ iseq_memsize,
+ },
+};
+
static VALUE
iseq_alloc(VALUE klass)
{
- VALUE volatile obj;
rb_iseq_t *iseq;
-
- obj = Data_Make_Struct(klass, rb_iseq_t, iseq_mark, iseq_free, iseq);
- MEMZERO(iseq, rb_iseq_t, 1);
- return obj;
+ return TypedData_Make_Struct(klass, rb_iseq_t, &iseq_data_type, iseq);
}
static void
set_relation(rb_iseq_t *iseq, const VALUE parent)
{
- const int type = iseq->type;
+ const VALUE type = iseq->type;
rb_thread_t *th = GET_THREAD();
/* set class nest stack */
if (type == ISEQ_TYPE_TOP) {
/* toplevel is private */
- iseq->cref_stack = NEW_NODE_LONGLIFE(NODE_BLOCK, th->top_wrapper ? th->top_wrapper : rb_cObject, 0, 0);
- iseq->cref_stack->nd_file = 0;
+ iseq->cref_stack = NEW_BLOCK(rb_cObject);
iseq->cref_stack->nd_visi = NOEX_PRIVATE;
+ if (th->top_wrapper) {
+ NODE *cref = NEW_BLOCK(th->top_wrapper);
+ cref->nd_visi = NOEX_PRIVATE;
+ cref->nd_next = iseq->cref_stack;
+ iseq->cref_stack = cref;
+ }
}
else if (type == ISEQ_TYPE_METHOD || type == ISEQ_TYPE_CLASS) {
- iseq->cref_stack = NEW_NODE_LONGLIFE(NODE_BLOCK,0,0,0); /* place holder */
- iseq->cref_stack->nd_file = 0;
+ iseq->cref_stack = NEW_BLOCK(0); /* place holder */
}
else if (RTEST(parent)) {
rb_iseq_t *piseq;
@@ -164,8 +220,8 @@ set_relation(rb_iseq_t *iseq, const VALUE parent)
static VALUE
prepare_iseq_build(rb_iseq_t *iseq,
- VALUE name, VALUE filename,
- VALUE parent, VALUE type, VALUE block_opt,
+ VALUE name, VALUE filename, VALUE filepath, VALUE line_no,
+ VALUE parent, enum iseq_type type, VALUE block_opt,
const rb_compile_option_t *option)
{
OBJ_FREEZE(name);
@@ -173,8 +229,11 @@ prepare_iseq_build(rb_iseq_t *iseq,
iseq->name = name;
iseq->filename = filename;
+ iseq->filepath = filepath;
+ iseq->line_no = (unsigned short)line_no; /* TODO: really enough? */
iseq->defined_method_id = 0;
- iseq->mark_ary = rb_ary_new();
+ iseq->mark_ary = rb_ary_tmp_new(3);
+ OBJ_UNTRUST(iseq->mark_ary);
RBASIC(iseq->mark_ary)->klass = 0;
iseq->type = type;
@@ -190,6 +249,7 @@ prepare_iseq_build(rb_iseq_t *iseq,
iseq->compile_data = ALLOC(struct iseq_compile_data);
MEMZERO(iseq->compile_data, struct iseq_compile_data, 1);
+ iseq->compile_data->err_info = Qnil;
iseq->compile_data->mark_ary = rb_ary_tmp_new(3);
iseq->compile_data->storage_head = iseq->compile_data->storage_current =
@@ -205,12 +265,12 @@ prepare_iseq_build(rb_iseq_t *iseq,
iseq->compile_data->storage_head->buff =
(char *)(&iseq->compile_data->storage_head->buff + 1);
iseq->compile_data->option = option;
+ iseq->compile_data->last_coverable_line = -1;
set_relation(iseq, parent);
iseq->coverage = Qfalse;
if (!GET_THREAD()->parse_in_eval) {
- extern VALUE rb_get_coverages(void);
VALUE coverages = rb_get_coverages();
if (RTEST(coverages)) {
iseq->coverage = rb_hash_lookup(coverages, filename);
@@ -264,13 +324,13 @@ make_compile_option(rb_compile_option_t *option, VALUE opt)
*option = COMPILE_OPTION_DEFAULT;
#define SET_COMPILE_OPTION(o, h, mem) \
- { VALUE flag = rb_hash_aref(h, ID2SYM(rb_intern(#mem))); \
- if (flag == Qtrue) { o->mem = 1; } \
- else if (flag == Qfalse) { o->mem = 0; } \
+ { VALUE flag = rb_hash_aref((h), ID2SYM(rb_intern(#mem))); \
+ if (flag == Qtrue) { (o)->mem = 1; } \
+ else if (flag == Qfalse) { (o)->mem = 0; } \
}
#define SET_COMPILE_OPTION_NUM(o, h, mem) \
{ VALUE num = rb_hash_aref(opt, ID2SYM(rb_intern(#mem))); \
- if (!NIL_P(num)) o->mem = NUM2INT(num); \
+ if (!NIL_P(num)) (o)->mem = NUM2INT(num); \
}
SET_COMPILE_OPTION(option, opt, inline_const_cache);
SET_COMPILE_OPTION(option, opt, peephole_optimization);
@@ -294,9 +354,9 @@ make_compile_option_value(rb_compile_option_t *option)
{
VALUE opt = rb_hash_new();
#define SET_COMPILE_OPTION(o, h, mem) \
- rb_hash_aset(h, ID2SYM(rb_intern(#mem)), o->mem ? Qtrue : Qfalse)
+ rb_hash_aset((h), ID2SYM(rb_intern(#mem)), (o)->mem ? Qtrue : Qfalse)
#define SET_COMPILE_OPTION_NUM(o, h, mem) \
- rb_hash_aset(h, ID2SYM(rb_intern(#mem)), INT2NUM(o->mem))
+ rb_hash_aset((h), ID2SYM(rb_intern(#mem)), INT2NUM((o)->mem))
{
SET_COMPILE_OPTION(option, opt, inline_const_cache);
SET_COMPILE_OPTION(option, opt, peephole_optimization);
@@ -313,32 +373,32 @@ make_compile_option_value(rb_compile_option_t *option)
}
VALUE
-rb_iseq_new(NODE *node, VALUE name, VALUE filename,
- VALUE parent, VALUE type)
+rb_iseq_new(NODE *node, VALUE name, VALUE filename, VALUE filepath,
+ VALUE parent, enum iseq_type type)
{
- return rb_iseq_new_with_opt(node, name, filename, parent, type,
+ return rb_iseq_new_with_opt(node, name, filename, filepath, INT2FIX(0), parent, type,
&COMPILE_OPTION_DEFAULT);
}
VALUE
-rb_iseq_new_top(NODE *node, VALUE name, VALUE filename, VALUE parent)
+rb_iseq_new_top(NODE *node, VALUE name, VALUE filename, VALUE filepath, VALUE parent)
{
- return rb_iseq_new_with_opt(node, name, filename, parent, ISEQ_TYPE_TOP,
+ return rb_iseq_new_with_opt(node, name, filename, filepath, INT2FIX(0), parent, ISEQ_TYPE_TOP,
&COMPILE_OPTION_DEFAULT);
}
VALUE
-rb_iseq_new_main(NODE *node, VALUE filename)
+rb_iseq_new_main(NODE *node, VALUE filename, VALUE filepath)
{
rb_thread_t *th = GET_THREAD();
VALUE parent = th->base_block->iseq->self;
- return rb_iseq_new_with_opt(node, rb_str_new2("<main>"), filename,
+ return rb_iseq_new_with_opt(node, rb_str_new2("<main>"), filename, filepath, INT2FIX(0),
parent, ISEQ_TYPE_MAIN, &COMPILE_OPTION_DEFAULT);
}
static VALUE
-rb_iseq_new_with_bopt_and_opt(NODE *node, VALUE name, VALUE filename,
- VALUE parent, VALUE type, VALUE bopt,
+rb_iseq_new_with_bopt_and_opt(NODE *node, VALUE name, VALUE filename, VALUE filepath, VALUE line_no,
+ VALUE parent, enum iseq_type type, VALUE bopt,
const rb_compile_option_t *option)
{
rb_iseq_t *iseq;
@@ -347,52 +407,52 @@ rb_iseq_new_with_bopt_and_opt(NODE *node, VALUE name, VALUE filename,
GetISeqPtr(self, iseq);
iseq->self = self;
- prepare_iseq_build(iseq, name, filename, parent, type, bopt, option);
+ prepare_iseq_build(iseq, name, filename, filepath, line_no, parent, type, bopt, option);
rb_iseq_compile_node(self, node);
cleanup_iseq_build(iseq);
return self;
}
VALUE
-rb_iseq_new_with_opt(NODE *node, VALUE name, VALUE filename,
- VALUE parent, VALUE type,
+rb_iseq_new_with_opt(NODE *node, VALUE name, VALUE filename, VALUE filepath, VALUE line_no,
+ VALUE parent, enum iseq_type type,
const rb_compile_option_t *option)
{
/* TODO: argument check */
- return rb_iseq_new_with_bopt_and_opt(node, name, filename, parent, type,
+ return rb_iseq_new_with_bopt_and_opt(node, name, filename, filepath, line_no, parent, type,
Qfalse, option);
}
VALUE
-rb_iseq_new_with_bopt(NODE *node, VALUE name, VALUE filename,
- VALUE parent, VALUE type, VALUE bopt)
+rb_iseq_new_with_bopt(NODE *node, VALUE name, VALUE filename, VALUE filepath, VALUE line_no,
+ VALUE parent, enum iseq_type type, VALUE bopt)
{
/* TODO: argument check */
- return rb_iseq_new_with_bopt_and_opt(node, name, filename, parent, type,
+ return rb_iseq_new_with_bopt_and_opt(node, name, filename, filepath, line_no, parent, type,
bopt, &COMPILE_OPTION_DEFAULT);
}
-#define CHECK_ARRAY(v) rb_convert_type(v, T_ARRAY, "Array", "to_ary")
-#define CHECK_STRING(v) rb_convert_type(v, T_STRING, "String", "to_str")
-#define CHECK_SYMBOL(v) rb_convert_type(v, T_SYMBOL, "Symbol", "to_sym")
-static inline VALUE CHECK_INTEGER(VALUE v) {NUM2LONG(v); return v;}
+#define CHECK_ARRAY(v) rb_convert_type((v), T_ARRAY, "Array", "to_ary")
+#define CHECK_STRING(v) rb_convert_type((v), T_STRING, "String", "to_str")
+#define CHECK_SYMBOL(v) rb_convert_type((v), T_SYMBOL, "Symbol", "to_sym")
+static inline VALUE CHECK_INTEGER(VALUE v) {(void)NUM2LONG(v); return v;}
static VALUE
iseq_load(VALUE self, VALUE data, VALUE parent, VALUE opt)
{
VALUE iseqval = iseq_alloc(self);
VALUE magic, version1, version2, format_type, misc;
- VALUE name, filename;
+ VALUE name, filename, filepath, line_no;
VALUE type, body, locals, args, exception;
- VALUE iseq_type;
+ st_data_t iseq_type;
struct st_table *type_map = 0;
rb_iseq_t *iseq;
rb_compile_option_t option;
int i = 0;
/* [magic, major_version, minor_version, format_type, misc,
- * name, filename,
+ * name, filename, line_no,
* type, locals, args, exception_table, body]
*/
@@ -406,6 +466,9 @@ iseq_load(VALUE self, VALUE data, VALUE parent, VALUE opt)
name = CHECK_STRING(rb_ary_entry(data, i++));
filename = CHECK_STRING(rb_ary_entry(data, i++));
+ filepath = rb_ary_entry(data, i++);
+ filepath = NIL_P(filepath) ? Qnil : CHECK_STRING(filepath);
+ line_no = CHECK_INTEGER(rb_ary_entry(data, i++));
type = CHECK_SYMBOL(rb_ary_entry(data, i++));
locals = CHECK_ARRAY(rb_ary_entry(data, i++));
@@ -447,8 +510,8 @@ iseq_load(VALUE self, VALUE data, VALUE parent, VALUE opt)
}
make_compile_option(&option, opt);
- prepare_iseq_build(iseq, name, filename,
- parent, iseq_type, 0, &option);
+ prepare_iseq_build(iseq, name, filename, filepath, line_no,
+ parent, (enum iseq_type)iseq_type, 0, &option);
rb_iseq_build_from_ary(iseq, locals, args, exception, body);
@@ -472,7 +535,7 @@ rb_iseq_load(VALUE data, VALUE parent, VALUE opt)
}
static NODE *
-compile_string(VALUE str, const char *file, int line)
+parse_string(VALUE str, const char *file, int line)
{
VALUE parser = rb_parser_new();
NODE *node = rb_parser_compile_string(parser, file, str, line);
@@ -484,22 +547,22 @@ compile_string(VALUE str, const char *file, int line)
}
VALUE
-rb_iseq_compile_with_option(VALUE src, VALUE file, VALUE line, VALUE opt)
+rb_iseq_compile_with_option(VALUE src, VALUE file, VALUE filepath, VALUE line, VALUE opt)
{
rb_compile_option_t option;
const char *fn = StringValueCStr(file);
int ln = NUM2INT(line);
- NODE *node = compile_string(StringValue(src), fn, ln);
+ NODE *node = parse_string(StringValue(src), fn, ln);
rb_thread_t *th = GET_THREAD();
make_compile_option(&option, opt);
if (th->base_block && th->base_block->iseq) {
return rb_iseq_new_with_opt(node, th->base_block->iseq->name,
- file, th->base_block->iseq->self,
+ file, filepath, line, th->base_block->iseq->self,
ISEQ_TYPE_EVAL, &option);
}
else {
- return rb_iseq_new_with_opt(node, rb_str_new2("<compiled>"), file, Qfalse,
+ return rb_iseq_new_with_opt(node, rb_str_new2("<compiled>"), file, filepath, line, Qfalse,
ISEQ_TYPE_TOP, &option);
}
}
@@ -507,21 +570,21 @@ rb_iseq_compile_with_option(VALUE src, VALUE file, VALUE line, VALUE opt)
VALUE
rb_iseq_compile(VALUE src, VALUE file, VALUE line)
{
- return rb_iseq_compile_with_option(src, file, line, Qnil);
+ return rb_iseq_compile_with_option(src, file, Qnil, line, Qnil);
}
static VALUE
iseq_s_compile(int argc, VALUE *argv, VALUE self)
{
- VALUE src, file = Qnil, line = INT2FIX(1), opt = Qnil;
+ VALUE src, file = Qnil, path = Qnil, line = INT2FIX(1), opt = Qnil;
rb_secure(1);
- rb_scan_args(argc, argv, "13", &src, &file, &line, &opt);
+ rb_scan_args(argc, argv, "14", &src, &file, &path, &line, &opt);
if (NIL_P(file)) file = rb_str_new2("<compiled>");
if (NIL_P(line)) line = INT2FIX(1);
- return rb_iseq_compile_with_option(src, file, line, opt);
+ return rb_iseq_compile_with_option(src, file, path, line, opt);
}
static VALUE
@@ -544,7 +607,8 @@ iseq_s_compile_file(int argc, VALUE *argv, VALUE self)
parser = rb_parser_new();
node = rb_parser_compile_file(parser, fname, f, NUM2INT(line));
make_compile_option(&option, opt);
- return rb_iseq_new_with_opt(node, rb_str_new2("<main>"), file, Qfalse,
+ return rb_iseq_new_with_opt(node, rb_str_new2("<main>"), file,
+ rb_realpath_internal(Qnil, file, 1), line, Qfalse,
ISEQ_TYPE_TOP, &option);
}
@@ -610,7 +674,7 @@ iseq_to_a(VALUE self)
int
rb_iseq_first_lineno(rb_iseq_t *iseq)
{
- return iseq->insn_info_table[0].line_no;
+ return FIX2INT(iseq->line_no);
}
/* TODO: search algorithm is brute force.
@@ -665,8 +729,8 @@ find_prev_line_no(rb_iseq_t *iseqdat, unsigned long pos)
static VALUE
insn_operand_intern(rb_iseq_t *iseq,
- int insn, int op_no, VALUE op,
- int len, int pos, VALUE *pnop, VALUE child)
+ VALUE insn, int op_no, VALUE op,
+ int len, size_t pos, VALUE *pnop, VALUE child)
{
const char *types = insn_op_types(insn);
char type = types[op_no];
@@ -674,18 +738,18 @@ insn_operand_intern(rb_iseq_t *iseq,
switch (type) {
case TS_OFFSET: /* LONG */
- ret = rb_sprintf("%ld", pos + len + op);
+ ret = rb_sprintf("%"PRIdVALUE, (VALUE)(pos + len + op));
break;
case TS_NUM: /* ULONG */
- ret = rb_sprintf("%lu", op);
+ ret = rb_sprintf("%"PRIuVALUE, op);
break;
case TS_LINDEX:
{
- rb_iseq_t *ip = iseq->local_iseq;
- int lidx = ip->local_size - op;
- const char *name = rb_id2name(ip->local_table[lidx]);
+ rb_iseq_t *liseq = iseq->local_iseq;
+ int lidx = liseq->local_size - (int)op;
+ const char *name = rb_id2name(liseq->local_table[lidx]);
if (name) {
ret = rb_str_new2(name);
@@ -697,13 +761,13 @@ insn_operand_intern(rb_iseq_t *iseq,
}
case TS_DINDEX:{
if (insn == BIN(getdynamic) || insn == BIN(setdynamic)) {
- rb_iseq_t *ip = iseq;
- int level = *pnop, i;
+ rb_iseq_t *diseq = iseq;
+ VALUE level = *pnop, i;
const char *name;
for (i = 0; i < level; i++) {
- ip = ip->parent_iseq;
+ diseq = diseq->parent_iseq;
}
- name = rb_id2name(ip->local_table[ip->local_size - op]);
+ name = rb_id2name(diseq->local_table[diseq->local_size - op]);
if (!name) {
name = "*";
@@ -742,13 +806,13 @@ insn_operand_intern(rb_iseq_t *iseq,
}
case TS_GENTRY:
{
- struct global_entry *entry = (struct global_entry *)op;
+ struct rb_global_entry *entry = (struct rb_global_entry *)op;
ret = rb_str_dup(rb_id2str(entry->id));
}
break;
case TS_IC:
- ret = rb_str_new2("<ic>");
+ ret = rb_sprintf("<ic:%"PRIdPTRDIFF">", (struct iseq_inline_cache_entry *)op - iseq->ic_entries);
break;
case TS_CDHASH:
@@ -769,11 +833,11 @@ insn_operand_intern(rb_iseq_t *iseq,
* Disassemble a instruction
* Iseq -> Iseq inspect object
*/
-VALUE
-rb_iseq_disasm_insn(VALUE ret, VALUE *iseq, int pos,
+int
+rb_iseq_disasm_insn(VALUE ret, VALUE *iseq, size_t pos,
rb_iseq_t *iseqdat, VALUE child)
{
- int insn = iseq[pos];
+ VALUE insn = iseq[pos];
int len = insn_len(insn);
int j;
const char *types = insn_op_types(insn);
@@ -782,10 +846,10 @@ rb_iseq_disasm_insn(VALUE ret, VALUE *iseq, int pos,
insn_name_buff = insn_name(insn);
if (1) {
- rb_str_catf(str, "%04d %-16s ", pos, insn_name_buff);
+ rb_str_catf(str, "%04"PRIdSIZE" %-16s ", pos, insn_name_buff);
}
else {
- rb_str_catf(str, "%04d %-16.*s ", pos,
+ rb_str_catf(str, "%04"PRIdSIZE" %-16.*s ", pos,
(int)strcspn(insn_name_buff, "_"), insn_name_buff);
}
@@ -862,6 +926,7 @@ rb_iseq_disasm(VALUE self)
int i;
long l;
ID *tbl;
+ size_t n;
enum {header_minlen = 72};
rb_secure(1);
@@ -919,7 +984,7 @@ rb_iseq_disasm(VALUE self)
int argc = iseqdat->argc;
int opts = iseqdat->arg_opts;
if (i >= argc && i < argc + opts - 1) {
- snprintf(opti, sizeof(opti), "Opt=%ld",
+ snprintf(opti, sizeof(opti), "Opt=%"PRIdVALUE,
iseqdat->arg_opt_table[i - argc]);
}
}
@@ -941,8 +1006,8 @@ rb_iseq_disasm(VALUE self)
}
/* show each line */
- for (i = 0; i < size;) {
- i += rb_iseq_disasm_insn(str, iseq, i, iseqdat, child);
+ for (n = 0; n < size;) {
+ n += rb_iseq_disasm_insn(str, iseq, n, iseqdat, child);
}
for (i = 0; i < RARRAY_LEN(child); i++) {
@@ -956,18 +1021,22 @@ rb_iseq_disasm(VALUE self)
static VALUE
iseq_s_disasm(VALUE klass, VALUE body)
{
- extern NODE *rb_method_body(VALUE body);
- NODE *node;
VALUE ret = Qnil;
+ rb_iseq_t *iseq;
rb_secure(1);
- if ((node = rb_method_body(body)) != 0) {
- if (nd_type(node) == RUBY_VM_METHOD_NODE) {
- VALUE iseqval = (VALUE)node->nd_body;
- ret = rb_iseq_disasm(iseqval);
+ if (rb_obj_is_proc(body)) {
+ rb_proc_t *proc;
+ GetProcPtr(body, proc);
+ iseq = proc->block.iseq;
+ if (RUBY_VM_NORMAL_ISEQ_P(iseq)) {
+ ret = rb_iseq_disasm(iseq->self);
}
}
+ else if ((iseq = rb_method_get_iseq(body)) != 0) {
+ ret = rb_iseq_disasm(iseq->self);
+ }
return ret;
}
@@ -990,12 +1059,12 @@ ruby_node_name(int node)
sym_##name = ID2SYM(rb_intern(#name))
static VALUE
-register_label(struct st_table *table, int idx)
+register_label(struct st_table *table, unsigned long idx)
{
VALUE sym;
char buff[8 + (sizeof(idx) * CHAR_BIT * 32 / 100)];
- snprintf(buff, sizeof(buff), "label_%u", idx);
+ snprintf(buff, sizeof(buff), "label_%lu", idx);
sym = ID2SYM(rb_intern(buff));
st_insert(table, idx, sym);
return sym;
@@ -1029,7 +1098,8 @@ cdhash_each(VALUE key, VALUE value, VALUE ary)
static VALUE
iseq_data_to_ary(rb_iseq_t *iseq)
{
- int i, pos, line = 0;
+ long i, pos;
+ int line = 0;
VALUE *seq;
VALUE val = rb_ary_new();
@@ -1141,7 +1211,7 @@ iseq_data_to_ary(rb_iseq_t *iseq)
for (j=0; j<len-1; j++, seq++) {
switch (insn_op_type(insn, j)) {
case TS_OFFSET: {
- unsigned int idx = nseq - iseq->iseq + *seq;
+ unsigned long idx = nseq - iseq->iseq + *seq;
rb_ary_push(ary, register_label(labels_table, idx));
break;
}
@@ -1167,12 +1237,14 @@ iseq_data_to_ary(rb_iseq_t *iseq)
break;
case TS_GENTRY:
{
- struct global_entry *entry = (struct global_entry *)*seq;
+ struct rb_global_entry *entry = (struct rb_global_entry *)*seq;
rb_ary_push(ary, ID2SYM(entry->id));
}
break;
- case TS_IC:
- rb_ary_push(ary, Qnil);
+ case TS_IC: {
+ struct iseq_inline_cache_entry *ic = (struct iseq_inline_cache_entry *)*seq;
+ rb_ary_push(ary, INT2FIX(ic - iseq->ic_entries));
+ }
break;
case TS_ID:
rb_ary_push(ary, ID2SYM(*seq));
@@ -1187,7 +1259,7 @@ iseq_data_to_ary(rb_iseq_t *iseq)
for (i=0; i<RARRAY_LEN(val); i+=2) {
VALUE pos = FIX2INT(rb_ary_entry(val, i+1));
- unsigned int idx = nseq - iseq->iseq + pos;
+ unsigned long idx = nseq - iseq->iseq + pos;
rb_ary_store(val, i+1,
register_label(labels_table, idx));
@@ -1229,10 +1301,10 @@ iseq_data_to_ary(rb_iseq_t *iseq)
for (i=0, pos=0; i<RARRAY_LEN(nbody); i++) {
VALUE ary = RARRAY_PTR(nbody)[i];
- VALUE label;
+ st_data_t label;
if (st_lookup(labels_table, pos, &label)) {
- rb_ary_push(body, label);
+ rb_ary_push(body, (VALUE)label);
}
if (iseq->insn_info_table[i].line_no != line) {
@@ -1241,7 +1313,7 @@ iseq_data_to_ary(rb_iseq_t *iseq)
}
rb_ary_push(body, ary);
- pos += RARRAY_LEN(ary);
+ pos += RARRAY_LENINT(ary); /* reject too huge data */
}
st_free_table(labels_table);
@@ -1252,16 +1324,18 @@ iseq_data_to_ary(rb_iseq_t *iseq)
/*
* [:magic, :major_version, :minor_version, :format_type, :misc,
- * :name, :filename, :type, :locals, :args,
+ * :name, :filename, :filepath, :line_no, :type, :locals, :args,
* :catch_table, :bytecode]
*/
rb_ary_push(val, rb_str_new2("YARVInstructionSequence/SimpleDataFormat"));
- rb_ary_push(val, INT2FIX(1));
- rb_ary_push(val, INT2FIX(1));
+ rb_ary_push(val, INT2FIX(ISEQ_MAJOR_VERSION)); /* major */
+ rb_ary_push(val, INT2FIX(ISEQ_MINOR_VERSION)); /* minor */
rb_ary_push(val, INT2FIX(1));
rb_ary_push(val, misc);
rb_ary_push(val, iseq->name);
rb_ary_push(val, iseq->filename);
+ rb_ary_push(val, iseq->filepath);
+ rb_ary_push(val, iseq->line_no);
rb_ary_push(val, type);
rb_ary_push(val, locals);
rb_ary_push(val, args);
@@ -1284,11 +1358,15 @@ rb_iseq_clone(VALUE iseqval, VALUE newcbase)
if (!iseq1->orig) {
iseq1->orig = iseqval;
}
+ if (iseq0->local_iseq == iseq0) {
+ iseq1->local_iseq = iseq1;
+ }
if (newcbase) {
- iseq1->cref_stack = NEW_NODE_LONGLIFE(NODE_BLOCK, newcbase, 0, 0);
+ iseq1->cref_stack = NEW_BLOCK(newcbase);
if (iseq0->cref_stack->nd_next) {
- iseq1->cref_stack->nd_next = (NODE *)rb_gc_write_barrier((VALUE)iseq0->cref_stack->nd_next);
+ iseq1->cref_stack->nd_next = iseq0->cref_stack->nd_next;
}
+ iseq1->klass = newcbase;
}
return newiseq;
@@ -1301,7 +1379,7 @@ rb_iseq_parameters(const rb_iseq_t *iseq, int is_proc)
VALUE a, args = rb_ary_new2(iseq->arg_size);
ID req, opt, rest, block;
#define PARAM_TYPE(type) rb_ary_push(a = rb_ary_new2(2), ID2SYM(type))
-#define PARAM_ID(i) iseq->local_table[i]
+#define PARAM_ID(i) iseq->local_table[(i)]
#define PARAM(i, type) ( \
PARAM_TYPE(type), \
rb_id2name(PARAM_ID(i)) ? \
@@ -1368,9 +1446,10 @@ rb_iseq_build_for_ruby2cext(
const VALUE *arg_opt_table,
const struct iseq_catch_table_entry *catch_table,
const char *name,
- const char *filename)
+ const char *filename,
+ const unsigned short line_no)
{
- int i;
+ unsigned long i;
VALUE iseqval = iseq_alloc(rb_cISeq);
rb_iseq_t *iseq;
GetISeqPtr(iseqval, iseq);
@@ -1379,7 +1458,9 @@ rb_iseq_build_for_ruby2cext(
*iseq = *iseq_template;
iseq->name = rb_str_new2(name);
iseq->filename = rb_str_new2(filename);
+ iseq->line_no = line_no;
iseq->mark_ary = rb_ary_tmp_new(3);
+ OBJ_UNTRUST(iseq->mark_ary);
iseq->self = iseqval;
iseq->iseq = ALLOC_N(VALUE, iseq->iseq_size);
@@ -1415,7 +1496,7 @@ rb_iseq_build_for_ruby2cext(
void
Init_ISeq(void)
{
- /* declare ::VM::InstructionSequence */
+ /* declare ::RubyVM::InstructionSequence */
rb_cISeq = rb_define_class_under(rb_cRubyVM, "InstructionSequence", rb_cObject);
rb_define_alloc_func(rb_cISeq, iseq_alloc);
rb_define_method(rb_cISeq, "inspect", iseq_inspect, 0);
@@ -1424,6 +1505,11 @@ Init_ISeq(void)
rb_define_method(rb_cISeq, "to_a", iseq_to_a, 0);
rb_define_method(rb_cISeq, "eval", iseq_eval, 0);
+#if 0 /* TBD */
+ rb_define_method(rb_cISeq, "marshal_dump", iseq_marshal_dump, 0);
+ rb_define_method(rb_cISeq, "marshal_load", iseq_marshal_load, 1);
+#endif
+
/* disable this feature because there is no verifier. */
/* rb_define_singleton_method(rb_cISeq, "load", iseq_s_load, -1); */
(void)iseq_s_load;
diff --git a/iseq.h b/iseq.h
index 981b1fca00..beeacbb236 100644
--- a/iseq.h
+++ b/iseq.h
@@ -12,6 +12,10 @@
#ifndef RUBY_COMPILE_H
#define RUBY_COMPILE_H
+#if defined __GNUC__ && __GNUC__ >= 4
+#pragma GCC visibility push(default)
+#endif
+
/* compile.c */
VALUE rb_iseq_compile_node(VALUE self, NODE *node);
int rb_iseq_translate_threaded_code(rb_iseq_t *iseq);
@@ -20,24 +24,24 @@ VALUE rb_iseq_build_from_ary(rb_iseq_t *iseq, VALUE locals, VALUE args,
/* iseq.c */
VALUE rb_iseq_load(VALUE data, VALUE parent, VALUE opt);
+VALUE rb_iseq_parameters(const rb_iseq_t *iseq, int is_proc);
struct st_table *ruby_insn_make_insn_table(void);
-#define ISEQ_TYPE_TOP INT2FIX(1)
-#define ISEQ_TYPE_METHOD INT2FIX(2)
-#define ISEQ_TYPE_BLOCK INT2FIX(3)
-#define ISEQ_TYPE_CLASS INT2FIX(4)
-#define ISEQ_TYPE_RESCUE INT2FIX(5)
-#define ISEQ_TYPE_ENSURE INT2FIX(6)
-#define ISEQ_TYPE_EVAL INT2FIX(7)
-#define ISEQ_TYPE_MAIN INT2FIX(8)
-#define ISEQ_TYPE_DEFINED_GUARD INT2FIX(9)
-
-#define CATCH_TYPE_RESCUE INT2FIX(1)
-#define CATCH_TYPE_ENSURE INT2FIX(2)
-#define CATCH_TYPE_RETRY INT2FIX(3)
-#define CATCH_TYPE_BREAK INT2FIX(4)
-#define CATCH_TYPE_REDO INT2FIX(5)
-#define CATCH_TYPE_NEXT INT2FIX(6)
+/* proc.c */
+rb_iseq_t *rb_method_get_iseq(VALUE body);
+rb_iseq_t *rb_proc_get_iseq(VALUE proc, int *is_proc);
+
+struct rb_compile_option_struct {
+ int inline_const_cache;
+ int peephole_optimization;
+ int tailcall_optimization;
+ int specialized_instruction;
+ int operands_unification;
+ int instructions_unification;
+ int stack_caching;
+ int trace_instruction;
+ int debug_level;
+};
struct iseq_insn_info_entry {
unsigned short position;
@@ -46,7 +50,14 @@ struct iseq_insn_info_entry {
};
struct iseq_catch_table_entry {
- VALUE type;
+ enum catch_type {
+ CATCH_TYPE_RESCUE,
+ CATCH_TYPE_ENSURE,
+ CATCH_TYPE_RETRY,
+ CATCH_TYPE_BREAK,
+ CATCH_TYPE_REDO,
+ CATCH_TYPE_NEXT
+ } type;
VALUE iseq;
unsigned long start;
unsigned long end;
@@ -74,30 +85,41 @@ struct iseq_compile_data {
struct iseq_label_data *end_label;
struct iseq_label_data *redo_label;
VALUE current_block;
- VALUE loopval_popped; /* used by NODE_BREAK */
VALUE ensure_node;
VALUE for_iseq;
struct iseq_compile_data_ensure_node_stack *ensure_node_stack;
+ int loopval_popped; /* used by NODE_BREAK */
int cached_const;
struct iseq_compile_data_storage *storage_head;
struct iseq_compile_data_storage *storage_current;
int last_line;
+ int last_coverable_line;
int flip_cnt;
int label_no;
int node_level;
const rb_compile_option_t *option;
+#if SUPPORT_JOKE
+ st_table *labels_table;
+#endif
};
/* defined? */
-#define DEFINED_IVAR INT2FIX(1)
-#define DEFINED_IVAR2 INT2FIX(2)
-#define DEFINED_GVAR INT2FIX(3)
-#define DEFINED_CVAR INT2FIX(4)
-#define DEFINED_CONST INT2FIX(5)
-#define DEFINED_METHOD INT2FIX(6)
-#define DEFINED_YIELD INT2FIX(7)
-#define DEFINED_REF INT2FIX(8)
-#define DEFINED_ZSUPER INT2FIX(9)
-#define DEFINED_FUNC INT2FIX(10)
+
+enum defined_type {
+ DEFINED_IVAR = 1,
+ DEFINED_IVAR2,
+ DEFINED_GVAR,
+ DEFINED_CVAR,
+ DEFINED_CONST,
+ DEFINED_METHOD,
+ DEFINED_YIELD,
+ DEFINED_REF,
+ DEFINED_ZSUPER,
+ DEFINED_FUNC
+};
+
+#if defined __GNUC__ && __GNUC__ >= 4
+#pragma GCC visibility pop
+#endif
#endif /* RUBY_COMPILE_H */
diff --git a/lib/.document b/lib/.document
deleted file mode 100644
index d3c4a1369b..0000000000
--- a/lib/.document
+++ /dev/null
@@ -1,107 +0,0 @@
-# We only run RDoc on the top-level files in here: we skip
-# all the helper stuff in sub-directories
-
-# Eventually, we hope to see...
-# *.rb
-
-# But for now
-
-English.rb
-Env.rb
-README
-abbrev.rb
-base64.rb
-benchmark.rb
-cgi
-cgi.rb
-complex.rb
-csv.rb
-date
-date.rb
-date2.rb
-debug.rb
-delegate.rb
-drb
-drb.rb
-erb.rb
-eregex.rb
-fileutils.rb
-finalize.rb
-find.rb
-forwardable.rb
-ftools.rb
-generator.rb
-getoptlong.rb
-getopts.rb
-gserver.rb
-importenv.rb
-ipaddr.rb
-irb
-irb.rb
-jcode.rb
-logger.rb
-mailread.rb
-mathn.rb
-matrix.rb
-mkmf.rb
-monitor.rb
-mutex_m.rb
-net
-observer.rb
-open-uri.rb
-open3.rb
-optparse
-optparse.rb
-ostruct.rb
-parsearg.rb
-parsedate.rb
-pathname.rb
-ping.rb
-pp.rb
-prettyprint.rb
-prime.rb
-profile.rb
-profiler.rb
-pstore.rb
-racc
-rational.rb
-rdoc.rb
-rdoc
-readbytes.rb
-resolv-replace.rb
-resolv.rb
-rexml
-rinda
-rss
-rss.rb
-rubyunit.rb
-runit
-scanf.rb
-set.rb
-shell
-shell.rb
-shellwords.rb
-# TODO: YARV cause error. why ...?
-# singleton.rb
-soap
-sync.rb
-tempfile.rb
-test
-thread.rb
-thwait.rb
-time.rb
-timeout.rb
-tmpdir.rb
-tracer.rb
-tsort.rb
-un.rb
-uri
-uri.rb
-weakref.rb
-webrick
-webrick.rb
-wsdl
-xmlrpc
-xsd
-yaml
-yaml.rb
diff --git a/lib/README b/lib/README
index 1132755cf5..cfe7145307 100644
--- a/lib/README
+++ b/lib/README
@@ -1,33 +1,36 @@
English.rb lets Perl'ish global variables have English names
README this file
+abbrev.rb abbreviation calculator
+base64.rb Base64 de- and encoder
benchmark.rb a benchmark utility
cgi.rb CGI support library
cgi/session.rb CGI session class
-complex.rb complex number support
+cmath.rb math support for complex numbers
+complex.rb includes cmath and set complex arithemtic as default (obsolete)
csv.rb CSV parser/generator
-date.rb date object
-date/format.rb date parsing and formatting
debug.rb ruby debugger
delegate.rb delegates messages to other object
drb.rb distributed Ruby
e2mmap.rb exception utilities
erb.rb tiny eRuby library
fileutils.rb file utilities
-finalize.rb adds finalizer to the object
find.rb traverses directory tree
forwardable.rb explicit delegation library
+gauntlet_rubygems.rb Gem package validator
getoptlong.rb GNU getoptlong compatible
gserver.rb general TCP server
ipaddr.rb defines the IPAddr class
irb.rb interactive ruby
logger.rb simple logging utility
-mathn.rb extended math operation
+mathn.rb extended math operation (obsolete)
matrix.rb matrix calculation library
+minitest/unit minimal drop-in replacement for test-unit
mkmf.rb Makefile maker
monitor.rb exclusive region monitor for thread
mutex_m.rb mutex mixin
net/ftp.rb ftp access
net/http.rb HTTP access
+net/https.rb HTTPS access
net/imap.rb IMAP4 access
net/pop.rb POP3 access
net/protocol.rb abstract class for net library (DO NOT USE)
@@ -38,7 +41,6 @@ open-uri.rb easy-to-use network interface using URI and Net
open3.rb opens subprocess connection stdin/stdout/stderr
optparse.rb command line option analysis
ostruct.rb python style object
-parsedate.rb parses date string (obsolete)
pathname.rb Object-Oriented Pathname Class
pp.rb pretty print objects
prettyprint.rb pretty printing algorithm
@@ -47,12 +49,19 @@ profile.rb runs ruby profiler
profiler.rb ruby profiler module
pstore.rb persistent object strage using marshal
racc/parser.rb racc (Ruby yACC) runtime
-rational.rb rational number support
-rdoc source-code documentation tool
+rake.rb Ruby Make
+rational.rb rational number support (obsolete)
+rdoc source-code documentation tool
resolv-replace.rb replace Socket DNS by resolve.rb
resolv.rb DNS resolver in Ruby
rexml an XML parser for Ruby, in Ruby
+rinda/rinda.rb Linda distributed computing paradigm for drb
+rinda/ring.rb RingServer for tuplespace
+rinda/tuplespace.rb tuplespace for drb
+rss.rb RSS parser/generator
+rubygems Ruby package management system
scanf.rb scanf for Ruby
+securerandom.rb Secure random number generator interface
set.rb defines the Set class
shell.rb runs commands and does pipeline operations like shell
shellwords.rb split into words like shell
@@ -67,12 +76,14 @@ timeout.rb provides timeout
tmpdir.rb retrieve temporary directory path
tracer.rb execution tracer
tsort.rb topological sorting
+ubygems.rb command line shortcut for RubyGems
un.rb Utilities to replace common UNIX commands in Makefiles etc
uri.rb URI support
uri/ftp.rb ftp scheme support
uri/http.rb http scheme support
uri/https.rb https scheme support
uri/ldap.rb ldap scheme support
+uri/ldaps.rb ldaps scheme support
uri/mailto.rb mailto scheme support
weakref.rb weak reference class
webrick.rb WEB server toolkit
diff --git a/lib/abbrev.rb b/lib/abbrev.rb
index 6530679681..aa7e33a65d 100644
--- a/lib/abbrev.rb
+++ b/lib/abbrev.rb
@@ -1,6 +1,5 @@
#!/usr/bin/env ruby
-=begin
-#
+#--
# Copyright (c) 2001,2003 Akinori MUSHA <knu@iDaemons.org>
#
# All rights reserved. You can redistribute and/or modify it under
@@ -9,7 +8,7 @@
# $Idaemons: /home/cvs/rb/abbrev.rb,v 1.2 2001/05/30 09:37:45 knu Exp $
# $RoughId: abbrev.rb,v 1.4 2003/10/14 19:45:42 knu Exp $
# $Id$
-=end
+#++
# Calculate the set of unique abbreviations for a given set of strings.
#
@@ -46,24 +45,24 @@ module Abbrev
seen = Hash.new(0)
if pattern.is_a?(String)
- pattern = /^#{Regexp.quote(pattern)}/ # regard as a prefix
+ pattern = /^#{Regexp.quote(pattern)}/ # regard as a prefix
end
words.each do |word|
next if (abbrev = word).empty?
while (len = abbrev.rindex(/[\w\W]\z/)) > 0
- abbrev = word[0,len]
+ abbrev = word[0,len]
- next if pattern && pattern !~ abbrev
+ next if pattern && pattern !~ abbrev
- case seen[abbrev] += 1
- when 1
- table[abbrev] = word
- when 2
- table.delete(abbrev)
- else
- break
- end
+ case seen[abbrev] += 1
+ when 1
+ table[abbrev] = word
+ when 2
+ table.delete(abbrev)
+ else
+ break
+ end
end
end
diff --git a/lib/base64.rb b/lib/base64.rb
index 383acacef9..a240b730b4 100644
--- a/lib/base64.rb
+++ b/lib/base64.rb
@@ -1,5 +1,5 @@
#
-# = base64.rb: methods for base64-encoding and -decoding stings
+# = base64.rb: methods for base64-encoding and -decoding strings
#
# The Base64 module provides for the encoding (#encode64, #strict_encode64,
diff --git a/lib/benchmark.rb b/lib/benchmark.rb
index 9a0bbef596..6a00da1359 100644
--- a/lib/benchmark.rb
+++ b/lib/benchmark.rb
@@ -1,5 +1,4 @@
-=begin
-#
+#--
# benchmark.rb - a performance benchmarking library
#
# $Id$
@@ -8,9 +7,8 @@
#
# Documentation by Gotoken (original RD), Lyle Johnson (RDoc conversion), and
# Gavin Sinclair (editing).
+#++
#
-=end
-
# == Overview
#
# The Benchmark module provides methods for benchmarking Ruby code, giving
@@ -103,10 +101,10 @@
# using the #benchmark method:
#
# require 'benchmark'
-# include Benchmark # we need the CAPTION and FMTSTR constants
+# include Benchmark # we need the CAPTION and FORMAT constants
#
# n = 50000
-# Benchmark.benchmark(" "*7 + CAPTION, 7, FMTSTR, ">total:", ">avg:") do |x|
+# Benchmark.benchmark(CAPTION, 7, FORMAT, ">total:", ">avg:") do |x|
# tf = x.report("for:") { for i in 1..n; a = "1"; end }
# tt = x.report("times:") { n.times do ; a = "1"; end }
# tu = x.report("upto:") { 1.upto(n) do ; a = "1"; end }
@@ -126,16 +124,13 @@ module Benchmark
BENCHMARK_VERSION = "2002-04-25" #:nodoc"
- def Benchmark::times() # :nodoc:
- Process::times()
- end
-
-
# Invokes the block with a <tt>Benchmark::Report</tt> object, which
# may be used to collect and report on the results of individual
# benchmark tests. Reserves <i>label_width</i> leading spaces for
# labels on each line. Prints _caption_ at the top of the
- # report, and uses _fmt_ to format each line.
+ # report, and uses _format_ to format each line.
+ # Returns an array of Benchmark::Tms objects.
+ #
# If the block returns an array of
# <tt>Benchmark::Tms</tt> objects, these will be used to format
# additional lines of output. If _label_ parameters are
@@ -148,10 +143,10 @@ module Benchmark
# Example:
#
# require 'benchmark'
- # include Benchmark # we need the CAPTION and FMTSTR constants
+ # include Benchmark # we need the CAPTION and FORMAT constants
#
# n = 50000
- # Benchmark.benchmark(" "*7 + CAPTION, 7, FMTSTR, ">total:", ">avg:") do |x|
+ # Benchmark.benchmark(CAPTION, 7, FORMAT, ">total:", ">avg:") do |x|
# tf = x.report("for:") { for i in 1..n; a = "1"; end }
# tt = x.report("times:") { n.times do ; a = "1"; end }
# tu = x.report("upto:") { 1.upto(n) do ; a = "1"; end }
@@ -168,19 +163,21 @@ module Benchmark
# >avg: 1.333333 0.011111 1.344444 ( 0.629761)
#
- def benchmark(caption = "", label_width = nil, fmtstr = nil, *labels) # :yield: report
+ def benchmark(caption = "", label_width = nil, format = nil, *labels) # :yield: report
sync = STDOUT.sync
STDOUT.sync = true
label_width ||= 0
- fmtstr ||= FMTSTR
- raise ArgumentError, "no block" unless iterator?
- print caption
- results = yield(Report.new(label_width, fmtstr))
+ label_width += 1
+ format ||= FORMAT
+ print ' '*label_width + caption
+ report = Report.new(label_width, format)
+ results = yield(report)
Array === results and results.grep(Tms).each {|t|
- print((labels.shift || t.label || "").ljust(label_width),
- t.format(fmtstr))
+ print((labels.shift || t.label || "").ljust(label_width), t.format(format))
}
- STDOUT.sync = sync
+ report.list
+ ensure
+ STDOUT.sync = sync unless sync.nil?
end
@@ -205,7 +202,7 @@ module Benchmark
#
def bm(label_width = 0, *labels, &blk) # :yield: report
- benchmark(" "*label_width + CAPTION, label_width, FMTSTR, *labels, &blk)
+ benchmark(CAPTION, label_width, FORMAT, *labels, &blk)
end
@@ -249,40 +246,29 @@ module Benchmark
def bmbm(width = 0, &blk) # :yield: job
job = Job.new(width)
yield(job)
- width = job.width
+ width = job.width + 1
sync = STDOUT.sync
STDOUT.sync = true
# rehearsal
- print "Rehearsal "
- puts '-'*(width+CAPTION.length - "Rehearsal ".length)
- list = []
- job.list.each{|label,item|
- print(label.ljust(width))
- res = Benchmark::measure(&item)
- print res.format()
- list.push res
- }
- sum = Tms.new; list.each{|i| sum += i}
- ets = sum.format("total: %tsec")
- printf("%s %s\n\n",
- "-"*(width+CAPTION.length-ets.length-1), ets)
+ puts 'Rehearsal '.ljust(width+CAPTION.length,'-')
+ ets = job.list.inject(Tms.new) { |sum,(label,item)|
+ print label.ljust(width)
+ res = Benchmark.measure(&item)
+ print res.format
+ sum + res
+ }.format("total: %tsec")
+ print " #{ets}\n\n".rjust(width+CAPTION.length+2,'-')
# take
- print ' '*width, CAPTION
- list = []
- ary = []
- job.list.each{|label,item|
- GC::start
+ print ' '*width + CAPTION
+ job.list.map { |label,item|
+ GC.start
print label.ljust(width)
- res = Benchmark::measure(&item)
- print res.format()
- ary.push res
- list.push [label, res]
+ Benchmark.measure(label, &item).tap { |res| print res }
}
-
- STDOUT.sync = sync
- ary
+ ensure
+ STDOUT.sync = sync unless sync.nil?
end
#
@@ -290,9 +276,9 @@ module Benchmark
# Benchmark::Tms object.
#
def measure(label = "") # :yield:
- t0, r0 = Benchmark.times, Time.now
+ t0, r0 = Process.times, Time.now
yield
- t1, r1 = Benchmark.times, Time.now
+ t1, r1 = Process.times, Time.now
Benchmark::Tms.new(t1.utime - t0.utime,
t1.stime - t0.stime,
t1.cutime - t0.cutime,
@@ -304,14 +290,13 @@ module Benchmark
#
# Returns the elapsed real time used to execute the given block.
#
- def realtime(&blk) # :yield:
+ def realtime # :yield:
r0 = Time.now
yield
- r1 = Time.now
- r1.to_f - r0.to_f
+ Time.now - r0
end
-
+ module_function :benchmark, :measure, :realtime, :bm, :bmbm
#
# A Job is a sequence of labelled blocks to be processed by the
@@ -335,10 +320,10 @@ module Benchmark
#
def item(label = "", &blk) # :yield:
raise ArgumentError, "no block" unless block_given?
- label += ' '
+ label = label.to_s
w = label.length
@width = w if @width < w
- @list.push [label, blk]
+ @list << [label, blk]
self
end
@@ -347,14 +332,10 @@ module Benchmark
# An array of 2-element arrays, consisting of label and block pairs.
attr_reader :list
- # Length of the widest label in the #list, plus one.
+ # Length of the widest label in the #list.
attr_reader :width
end
- module_function :benchmark, :measure, :realtime, :bm, :bmbm
-
-
-
#
# This class is used by the Benchmark.benchmark and Benchmark.bm methods.
# It is of little direct interest to the user.
@@ -364,26 +345,29 @@ module Benchmark
# Returns an initialized Report instance.
# Usually, one doesn't call this method directly, as new
# Report objects are created by the #benchmark and #bm methods.
- # _width_ and _fmtstr_ are the label offset and
+ # _width_ and _format_ are the label offset and
# format string used by Tms#format.
#
- def initialize(width = 0, fmtstr = nil)
- @width, @fmtstr = width, fmtstr
+ def initialize(width = 0, format = nil)
+ @width, @format, @list = width, format, []
end
#
# Prints the _label_ and measured time for the block,
- # formatted by _fmt_. See Tms#format for the
+ # formatted by _format_. See Tms#format for the
# formatting rules.
#
- def item(label = "", *fmt, &blk) # :yield:
- print label.ljust(@width)
- res = Benchmark::measure(&blk)
- print res.format(@fmtstr, *fmt)
+ def item(label = "", *format, &blk) # :yield:
+ print label.to_s.ljust(@width)
+ @list << res = Benchmark.measure(label, &blk)
+ print res.format(@format, *format)
res
end
alias report item
+
+ # An array of Benchmark::Tms objects representing each item.
+ attr_reader :list
end
@@ -393,8 +377,12 @@ module Benchmark
# measurement.
#
class Tms
+
+ # Default caption, see also Benchmark::CAPTION
CAPTION = " user system total real\n"
- FMTSTR = "%10.6u %10.6y %10.6t %10.6r\n"
+
+ # Default format string, see also Benchmark::FORMAT
+ FORMAT = "%10.6u %10.6y %10.6t %10.6r\n"
# User CPU time
attr_reader :utime
@@ -419,13 +407,12 @@ module Benchmark
#
# Returns an initialized Tms object which has
- # _u_ as the user CPU time, _s_ as the system CPU time,
- # _cu_ as the children's user CPU time, _cs_ as the children's
- # system CPU time, _real_ as the elapsed real time and _l_
- # as the label.
+ # _utime_ as the user CPU time, _stime_ as the system CPU time,
+ # _cutime_ as the children's user CPU time, _cstime_ as the children's
+ # system CPU time, _real_ as the elapsed real time and _label_ as the label.
#
- def initialize(u = 0.0, s = 0.0, cu = 0.0, cs = 0.0, real = 0.0, l = nil)
- @utime, @stime, @cutime, @cstime, @real, @label = u, s, cu, cs, real, l
+ def initialize(utime = 0.0, stime = 0.0, cutime = 0.0, cstime = 0.0, real = 0.0, label = nil)
+ @utime, @stime, @cutime, @cstime, @real, @label = utime, stime, cutime, cstime, real, label.to_s
@total = @utime + @stime + @cutime + @cstime
end
@@ -434,14 +421,14 @@ module Benchmark
# Tms object, plus the time required to execute the code block (_blk_).
#
def add(&blk) # :yield:
- self + Benchmark::measure(&blk)
+ self + Benchmark.measure(&blk)
end
#
# An in-place version of #add.
#
- def add!
- t = Benchmark::measure(&blk)
+ def add!(&blk)
+ t = Benchmark.measure(&blk)
@utime = utime + t.utime
@stime = stime + t.stime
@cutime = cutime + t.cutime
@@ -492,19 +479,19 @@ module Benchmark
# <tt>%r</tt>:: Replaced by the elapsed real time, as reported by Tms#real
# <tt>%n</tt>:: Replaced by the label string, as reported by Tms#label (Mnemonic: n of "*n*ame")
#
- # If _fmtstr_ is not given, FMTSTR is used as default value, detailing the
+ # If _format_ is not given, FORMAT is used as default value, detailing the
# user, system and real elapsed time.
#
- def format(arg0 = nil, *args)
- fmtstr = (arg0 || FMTSTR).dup
- fmtstr.gsub!(/(%[-+\.\d]*)n/){"#{$1}s" % label}
- fmtstr.gsub!(/(%[-+\.\d]*)u/){"#{$1}f" % utime}
- fmtstr.gsub!(/(%[-+\.\d]*)y/){"#{$1}f" % stime}
- fmtstr.gsub!(/(%[-+\.\d]*)U/){"#{$1}f" % cutime}
- fmtstr.gsub!(/(%[-+\.\d]*)Y/){"#{$1}f" % cstime}
- fmtstr.gsub!(/(%[-+\.\d]*)t/){"#{$1}f" % total}
- fmtstr.gsub!(/(%[-+\.\d]*)r/){"(#{$1}f)" % real}
- arg0 ? Kernel::format(fmtstr, *args) : fmtstr
+ def format(format = nil, *args)
+ str = (format || FORMAT).dup
+ str.gsub!(/(%[-+\.\d]*)n/) { "#{$1}s" % label }
+ str.gsub!(/(%[-+\.\d]*)u/) { "#{$1}f" % utime }
+ str.gsub!(/(%[-+\.\d]*)y/) { "#{$1}f" % stime }
+ str.gsub!(/(%[-+\.\d]*)U/) { "#{$1}f" % cutime }
+ str.gsub!(/(%[-+\.\d]*)Y/) { "#{$1}f" % cstime }
+ str.gsub!(/(%[-+\.\d]*)t/) { "#{$1}f" % total }
+ str.gsub!(/(%[-+\.\d]*)r/) { "(#{$1}f)" % real }
+ format ? str % args : str
end
#
@@ -525,6 +512,15 @@ module Benchmark
end
protected
+
+ #
+ # Returns a new Tms object obtained by memberwise operation +op+
+ # of the individual times for this Tms object with those of the other
+ # Tms object.
+ #
+ # +op+ can be a mathematical operation such as <tt>+</tt>, <tt>-</tt>,
+ # <tt>*</tt>, <tt>/</tt>
+ #
def memberwise(op, x)
case x
when Benchmark::Tms
@@ -549,7 +545,7 @@ module Benchmark
CAPTION = Benchmark::Tms::CAPTION
# The default format string used to display times. See also Benchmark::Tms#format.
- FMTSTR = Benchmark::Tms::FMTSTR
+ FORMAT = Benchmark::Tms::FORMAT
end
if __FILE__ == $0
@@ -557,17 +553,17 @@ if __FILE__ == $0
n = ARGV[0].to_i.nonzero? || 50000
puts %Q([#{n} times iterations of `a = "1"'])
- benchmark(" " + CAPTION, 7, FMTSTR) do |x|
- x.report("for:") {for i in 1..n; a = "1"; end} # Benchmark::measure
- x.report("times:") {n.times do ; a = "1"; end}
- x.report("upto:") {1.upto(n) do ; a = "1"; end}
+ benchmark(" " + CAPTION, 7, FORMAT) do |x|
+ x.report("for:") {for _ in 1..n; _ = "1"; end} # Benchmark.measure
+ x.report("times:") {n.times do ; _ = "1"; end}
+ x.report("upto:") {1.upto(n) do ; _ = "1"; end}
end
benchmark do
[
- measure{for i in 1..n; a = "1"; end}, # Benchmark::measure
- measure{n.times do ; a = "1"; end},
- measure{1.upto(n) do ; a = "1"; end}
+ measure{for _ in 1..n; _ = "1"; end}, # Benchmark.measure
+ measure{n.times do ; _ = "1"; end},
+ measure{1.upto(n) do ; _ = "1"; end}
]
end
end
diff --git a/lib/cgi.rb b/lib/cgi.rb
index 6355a92804..31730bd60c 100644
--- a/lib/cgi.rb
+++ b/lib/cgi.rb
@@ -9,31 +9,25 @@
#
# Documentation: Wakou Aoyama (RDoc'd and embellished by William Webber)
#
+
+raise "Please, use ruby 1.9.0 or later." if RUBY_VERSION < "1.9.0"
+
# == Overview
#
-# The Common Gateway Interface (CGI) is a simple protocol
-# for passing an HTTP request from a web server to a
-# standalone program, and returning the output to the web
-# browser. Basically, a CGI program is called with the
-# parameters of the request passed in either in the
-# environment (GET) or via $stdin (POST), and everything
-# it prints to $stdout is returned to the client.
+# The Common Gateway Interface (CGI) is a simple protocol for passing an HTTP
+# request from a web server to a standalone program, and returning the output
+# to the web browser. Basically, a CGI program is called with the parameters
+# of the request passed in either in the environment (GET) or via $stdin
+# (POST), and everything it prints to $stdout is returned to the client.
#
-# This file holds the +CGI+ class. This class provides
-# functionality for retrieving HTTP request parameters,
-# managing cookies, and generating HTML output. See the
-# class documentation for more details and examples of use.
+# This file holds the CGI class. This class provides functionality for
+# retrieving HTTP request parameters, managing cookies, and generating HTML
+# output.
#
-# The file cgi/session.rb provides session management
-# functionality; see that file for more details.
+# The file CGI::Session provides session management functionality; see that
+# class for more details.
#
-# See http://www.w3.org/CGI/ for more information on the CGI
-# protocol.
-
-raise "Please, use ruby 1.9.0 or later." if RUBY_VERSION < "1.9.0"
-
-# CGI class. See documentation for the file cgi.rb for an overview
-# of the CGI protocol.
+# See http://www.w3.org/CGI/ for more information on the CGI protocol.
#
# == Introduction
#
@@ -269,6 +263,11 @@ raise "Please, use ruby 1.9.0 or later." if RUBY_VERSION < "1.9.0"
# CGI.new("html4Tr") # html4.01 Transitional
# CGI.new("html4Fr") # html4.01 Frameset
#
+
+class CGI
+end
+
require 'cgi/core'
require 'cgi/cookie'
require 'cgi/util'
+CGI.autoload(:HtmlExtension, 'cgi/html')
diff --git a/lib/cgi/.document b/lib/cgi/.document
deleted file mode 100644
index 4153f97aa5..0000000000
--- a/lib/cgi/.document
+++ /dev/null
@@ -1 +0,0 @@
-session.rb \ No newline at end of file
diff --git a/lib/cgi/cookie.rb b/lib/cgi/cookie.rb
index 5c2cd62a27..c2526931d5 100644
--- a/lib/cgi/cookie.rb
+++ b/lib/cgi/cookie.rb
@@ -1,3 +1,5 @@
+class CGI
+ @@accept_charset="UTF-8" unless defined?(@@accept_charset)
# Class representing an HTTP cookie.
#
# In addition to its specific fields and methods, a Cookie instance
@@ -31,35 +33,43 @@
# cookie1.domain = 'domain'
# cookie1.expires = Time.now + 30
# cookie1.secure = true
-class CGI
class Cookie < Array
# Create a new CGI::Cookie object.
#
- # The contents of the cookie can be specified as a +name+ and one
- # or more +value+ arguments. Alternatively, the contents can
- # be specified as a single hash argument. The possible keywords of
- # this hash are as follows:
+ # :call-seq:
+ # Cookie.new(name_string,*value)
+ # Cookie.new(options_hash)
#
- # name:: the name of the cookie. Required.
- # value:: the cookie's value or list of values.
- # path:: the path for which this cookie applies. Defaults to the
- # base directory of the CGI script.
- # domain:: the domain for which this cookie applies.
- # expires:: the time at which this cookie expires, as a +Time+ object.
- # secure:: whether this cookie is a secure cookie or not (default to
- # false). Secure cookies are only transmitted to HTTPS
- # servers.
+ # +name_string+::
+ # The name of the cookie; in this form, there is no #domain or
+ # #expiration. The #path is gleaned from the +SCRIPT_NAME+ environment
+ # variable, and #secure is false.
+ # <tt>*value</tt>::
+ # value or list of values of the cookie
+ # +options_hash+::
+ # A Hash of options to initialize this Cookie. Possible options are:
#
- # These keywords correspond to attributes of the cookie object.
+ # name:: the name of the cookie. Required.
+ # value:: the cookie's value or list of values.
+ # path:: the path for which this cookie applies. Defaults to the
+ # the value of the +SCRIPT_NAME+ environment variable.
+ # domain:: the domain for which this cookie applies.
+ # expires:: the time at which this cookie expires, as a +Time+ object.
+ # secure:: whether this cookie is a secure cookie or not (default to
+ # false). Secure cookies are only transmitted to HTTPS
+ # servers.
+ #
+ # These keywords correspond to attributes of the cookie object.
def initialize(name = "", *value)
+ @domain = nil
+ @expires = nil
if name.kind_of?(String)
@name = name
- @value = value
%r|^(.*/)|.match(ENV["SCRIPT_NAME"])
@path = ($1 or "")
@secure = false
- return super(@value)
+ return super(value)
end
options = name
@@ -68,7 +78,7 @@ class CGI
end
@name = options["name"]
- @value = Array(options["value"])
+ value = Array(options["value"])
# simple support for IE
if options["path"]
@path = options["path"]
@@ -80,12 +90,30 @@ class CGI
@expires = options["expires"]
@secure = options["secure"] == true ? true : false
- super(@value)
+ super(value)
end
- attr_accessor("name", "value", "path", "domain", "expires")
+ # Name of this cookie, as a +String+
+ attr_accessor :name
+ # Path for which this cookie applies, as a +String+
+ attr_accessor :path
+ # Domain for which this cookie applies, as a +String+
+ attr_accessor :domain
+ # Time at which this cookie expires, as a +Time+
+ attr_accessor :expires
+ # True if this cookie is secure; false otherwise
attr_reader("secure")
+ # Returns the value or list of values for this cookie.
+ def value
+ self
+ end
+
+ # Replaces the value of this cookie with a new value or list of values.
+ def value=(val)
+ replace(Array(val))
+ end
+
# Set whether the Cookie is a secure cookie or not.
#
# +val+ must be a boolean.
@@ -96,7 +124,7 @@ class CGI
# Convert the Cookie to its string representation.
def to_s
- val = @value.kind_of?(String) ? CGI::escape(@value) : @value.collect{|v| CGI::escape(v) }.join("&")
+ val = collect{|v| CGI::escape(v) }.join("&")
buf = "#{@name}=#{val}"
buf << "; domain=#{@domain}" if @domain
buf << "; path=#{@path}" if @path
@@ -107,7 +135,6 @@ class CGI
end # class Cookie
-
# Parse a raw cookie string into a hash of cookie-name=>Cookie
# pairs.
#
@@ -123,7 +150,7 @@ class CGI
next unless name and values
name = CGI::unescape(name)
values ||= ""
- values = values.split('&').collect{|v| CGI::unescape(v) }
+ values = values.split('&').collect{|v| CGI::unescape(v,@@accept_charset) }
if cookies.has_key?(name)
values = cookies[name].value + values
end
diff --git a/lib/cgi/core.rb b/lib/cgi/core.rb
index 4ca0bcf050..e961b16474 100644
--- a/lib/cgi/core.rb
+++ b/lib/cgi/core.rb
@@ -1,3 +1,7 @@
+#--
+# Methods for generating HTML, parsing CGI-related parameters, and
+# generating HTTP responses.
+#++
class CGI
$CGI_ENV = ENV # for FCGI support
@@ -13,7 +17,8 @@ class CGI
REVISION = '$Id$' #:nodoc:
- NEEDS_BINMODE = true if /WIN/i.match(RUBY_PLATFORM)
+ # Whether processing will be required in binary vs text
+ NEEDS_BINMODE = File::BINARY != 0
# Path separators in different environments.
PATH_SEPARATOR = {'UNIX'=>'/', 'WINDOWS'=>'\\', 'MACINTOSH'=>':'}
@@ -33,68 +38,94 @@ class CGI
"METHOD_NOT_ALLOWED" => "405 Method Not Allowed",
"NOT_ACCEPTABLE" => "406 Not Acceptable",
"LENGTH_REQUIRED" => "411 Length Required",
- "PRECONDITION_FAILED" => "412 Rrecondition Failed",
+ "PRECONDITION_FAILED" => "412 Precondition Failed",
"SERVER_ERROR" => "500 Internal Server Error",
"NOT_IMPLEMENTED" => "501 Method Not Implemented",
"BAD_GATEWAY" => "502 Bad Gateway",
"VARIANT_ALSO_VARIES" => "506 Variant Also Negotiates"
}
- # Abbreviated day-of-week names specified by RFC 822
- RFC822_DAYS = %w[ Sun Mon Tue Wed Thu Fri Sat ]
-
- # Abbreviated month names specified by RFC 822
- RFC822_MONTHS = %w[ Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec ]
-
# :startdoc:
+ # Synonym for ENV.
def env_table
ENV
end
+ # Synonym for $stdin.
def stdinput
$stdin
end
+ # Synonym for $stdout.
def stdoutput
$stdout
end
private :env_table, :stdinput, :stdoutput
-
# Create an HTTP header block as a string.
#
+ # :call-seq:
+ # headers(content_type_string="text/html")
+ # headers(headers_hash)
+ #
# Includes the empty line that ends the header block.
#
- # +options+ can be a string specifying the Content-Type (defaults
- # to text/html), or a hash of header key/value pairs. The following
- # header keys are recognized:
- #
- # type:: the Content-Type header. Defaults to "text/html"
- # charset:: the charset of the body, appended to the Content-Type header.
- # nph:: a boolean value. If true, prepend protocol string and status code, and
- # date; and sets default values for "server" and "connection" if not
- # explicitly set.
- # status:: the HTTP status code, returned as the Status header. See the
- # list of available status codes below.
- # server:: the server software, returned as the Server header.
- # connection:: the connection type, returned as the Connection header (for
- # instance, "close".
- # length:: the length of the content that will be sent, returned as the
- # Content-Length header.
- # language:: the language of the content, returned as the Content-Language
- # header.
- # expires:: the time on which the current content expires, as a +Time+
- # object, returned as the Expires header.
- # cookie:: a cookie or cookies, returned as one or more Set-Cookie headers.
- # The value can be the literal string of the cookie; a CGI::Cookie
- # object; an Array of literal cookie strings or Cookie objects; or a
- # hash all of whose values are literal cookie strings or Cookie objects.
- # These cookies are in addition to the cookies held in the
- # @output_cookies field.
- #
- # Other header lines can also be set; they are appended as key: value.
+ # +content_type_string+::
+ # If this form is used, this string is the <tt>Content-Type</tt>
+ # +headers_hash+::
+ # A Hash of header values. The following header keys are recognized:
+ #
+ # type:: The Content-Type header. Defaults to "text/html"
+ # charset:: The charset of the body, appended to the Content-Type header.
+ # nph:: A boolean value. If true, prepend protocol string and status
+ # code, and date; and sets default values for "server" and
+ # "connection" if not explicitly set.
+ # status::
+ # The HTTP status code as a String, returned as the Status header. The
+ # values are:
+ #
+ # OK:: 200 OK
+ # PARTIAL_CONTENT:: 206 Partial Content
+ # MULTIPLE_CHOICES:: 300 Multiple Choices
+ # MOVED:: 301 Moved Permanently
+ # REDIRECT:: 302 Found
+ # NOT_MODIFIED:: 304 Not Modified
+ # BAD_REQUEST:: 400 Bad Request
+ # AUTH_REQUIRED:: 401 Authorization Required
+ # FORBIDDEN:: 403 Forbidden
+ # NOT_FOUND:: 404 Not Found
+ # METHOD_NOT_ALLOWED:: 405 Method Not Allowed
+ # NOT_ACCEPTABLE:: 406 Not Acceptable
+ # LENGTH_REQUIRED:: 411 Length Required
+ # PRECONDITION_FAILED:: 412 Precondition Failed
+ # SERVER_ERROR:: 500 Internal Server Error
+ # NOT_IMPLEMENTED:: 501 Method Not Implemented
+ # BAD_GATEWAY:: 502 Bad Gateway
+ # VARIANT_ALSO_VARIES:: 506 Variant Also Negotiates
+ #
+ # server:: The server software, returned as the Server header.
+ # connection:: The connection type, returned as the Connection header (for
+ # instance, "close".
+ # length:: The length of the content that will be sent, returned as the
+ # Content-Length header.
+ # language:: The language of the content, returned as the Content-Language
+ # header.
+ # expires:: The time on which the current content expires, as a +Time+
+ # object, returned as the Expires header.
+ # cookie::
+ # A cookie or cookies, returned as one or more Set-Cookie headers. The
+ # value can be the literal string of the cookie; a CGI::Cookie object;
+ # an Array of literal cookie strings or Cookie objects; or a hash all of
+ # whose values are literal cookie strings or Cookie objects.
+ #
+ # These cookies are in addition to the cookies held in the
+ # @output_cookies field.
+ #
+ # Other headers can also be set; they are appended as key: value.
+ #
+ # Examples:
#
# header
# # Content-Type: text/html
@@ -117,27 +148,6 @@ class CGI
# "my_header1" => "my_value"
# "my_header2" => "my_value")
#
- # The status codes are:
- #
- # "OK" --> "200 OK"
- # "PARTIAL_CONTENT" --> "206 Partial Content"
- # "MULTIPLE_CHOICES" --> "300 Multiple Choices"
- # "MOVED" --> "301 Moved Permanently"
- # "REDIRECT" --> "302 Found"
- # "NOT_MODIFIED" --> "304 Not Modified"
- # "BAD_REQUEST" --> "400 Bad Request"
- # "AUTH_REQUIRED" --> "401 Authorization Required"
- # "FORBIDDEN" --> "403 Forbidden"
- # "NOT_FOUND" --> "404 Not Found"
- # "METHOD_NOT_ALLOWED" --> "405 Method Not Allowed"
- # "NOT_ACCEPTABLE" --> "406 Not Acceptable"
- # "LENGTH_REQUIRED" --> "411 Length Required"
- # "PRECONDITION_FAILED" --> "412 Precondition Failed"
- # "SERVER_ERROR" --> "500 Internal Server Error"
- # "NOT_IMPLEMENTED" --> "501 Method Not Implemented"
- # "BAD_GATEWAY" --> "502 Bad Gateway"
- # "VARIANT_ALSO_VARIES" --> "506 Variant Also Negotiates"
- #
# This method does not perform charset conversion.
def header(options='text/html')
if options.is_a?(String)
@@ -263,13 +273,30 @@ class CGI
return ''
end
private :_header_for_modruby
- #
# Print an HTTP header and body to $DEFAULT_OUTPUT ($>)
#
- # The header is provided by +options+, as for #header().
- # The body of the document is that returned by the passed-
- # in block. This block takes no arguments. It is required.
+ # :call-seq:
+ # cgi.out(content_type_string='text/html')
+ # cgi.out(headers_hash)
+ #
+ # +content_type_string+::
+ # If a string is passed, it is assumed to be the content type.
+ # +headers_hash+::
+ # This is a Hash of headers, similar to that used by #header.
+ # +block+::
+ # A block is required and should evaluate to the body of the response.
+ #
+ # <tt>Content-Length</tt> is automatically calculated from the size of
+ # the String returned by the content block.
+ #
+ # If <tt>ENV['REQUEST_METHOD'] == "HEAD"</tt>, then only the header
+ # is output (the content block is still required, but it is ignored).
+ #
+ # If the charset is "iso-2022-jp" or "euc-jp" or "shift_jis" then the
+ # content is converted to this charset, and the language is set to "ja".
+ #
+ # Example:
#
# cgi = CGI.new
# cgi.out{ "string" }
@@ -296,17 +323,20 @@ class CGI
# "cookie" => [cookie1, cookie2],
# "my_header1" => "my_value",
# "my_header2" => "my_value") { "string" }
- #
- # Content-Length is automatically calculated from the size of
- # the String returned by the content block.
- #
- # If ENV['REQUEST_METHOD'] == "HEAD", then only the header
- # is outputted (the content block is still required, but it
- # is ignored).
- #
- # If the charset is "iso-2022-jp" or "euc-jp" or "shift_jis" then
- # the content is converted to this charset, and the language is set
- # to "ja".
+ # # HTTP/1.1 200 OK
+ # # Date: Sun, 15 May 2011 17:35:54 GMT
+ # # Server: Apache 2.2.0
+ # # Connection: close
+ # # Content-Type: text/html; charset=iso-2022-jp
+ # # Content-Length: 6
+ # # Content-Language: ja
+ # # Expires: Tue, 14 Jun 2011 17:35:54 GMT
+ # # Set-Cookie: foo
+ # # Set-Cookie: bar
+ # # my_header1: my_value
+ # # my_header2: my_value
+ # #
+ # # string
def out(options = "text/html") # :yield:
options = { "type" => options } if options.kind_of?(String)
@@ -356,17 +386,21 @@ class CGI
# Maximum number of request parameters when multipart
MAX_MULTIPART_COUNT = 128
- # Mixin module. It provides the follow functionality groups:
+ # Mixin module that provides the following:
#
- # 1. Access to CGI environment variables as methods. See
- # documentation to the CGI class for a list of these variables.
+ # 1. Access to the CGI environment variables as methods. See
+ # documentation to the CGI class for a list of these variables. The
+ # methods are exposed by removing the leading +HTTP_+ (if it exists) and
+ # downcasing the name. For example, +auth_type+ will return the
+ # environment variable +AUTH_TYPE+, and +accept+ will return the value
+ # for +HTTP_ACCEPT+.
#
# 2. Access to cookies, including the cookies attribute.
#
# 3. Access to parameters, including the params attribute, and overloading
- # [] to perform parameter value lookup by key.
+ # #[] to perform parameter value lookup by key.
#
- # 4. The initialize_query method, for initialising the above
+ # 4. The initialize_query method, for initializing the above
# mechanisms, handling multipart forms, and allowing the
# class to be used in "offline" mode.
#
@@ -408,7 +442,7 @@ class CGI
# values is an Array.
attr_reader :params
- # Get the uploaed files as a hash of name=>values pairs
+ # Get the uploaded files as a hash of name=>values pairs
attr_reader :files
# Set all the parameters.
@@ -417,9 +451,18 @@ class CGI
@params.update(hash)
end
+ ##
+ # Parses multipart form elements according to
+ # http://www.w3.org/TR/html401/interact/forms.html#h-17.13.4.2
+ #
+ # Returns a hash of multipart form parameters with bodies of type StringIO or
+ # Tempfile depending on whether the multipart form element exceeds 10 KB
+ #
+ # params[name => body]
+ #
def read_multipart(boundary, content_length)
## read first boundary
- stdin = $stdin
+ stdin = stdinput
first_line = "--#{boundary}#{EOL}"
content_length -= first_line.bytesize
status = stdin.read(first_line.bytesize)
@@ -514,7 +557,6 @@ class CGI
@files[name]=body
end
## break loop
- break if buf.size == 0
break if content_length == -1
end
raise EOFError, "bad boundary end of body part" unless boundary_end =~ /--/
@@ -555,12 +597,17 @@ class CGI
%|(offline mode: enter name=value pairs on standard input)\n|
)
end
- readlines.join(' ').gsub(/\n/, '')
- end.gsub(/\\=/, '%3D').gsub(/\\&/, '%26')
+ array = readlines rescue nil
+ if not array.nil?
+ array.join(' ').gsub(/\n/n, '')
+ else
+ ""
+ end
+ end.gsub(/\\=/n, '%3D').gsub(/\\&/n, '%26')
words = Shellwords.shellwords(string)
- if words.find{|x| /=/.match(x) }
+ if words.find{|x| /=/n.match(x) }
words.join('&')
else
words.join('+')
@@ -617,6 +664,7 @@ class CGI
end
private :initialize_query
+ # Returns whether the form contained multipart/form-data
def multipart?
@multipart
end
@@ -624,7 +672,7 @@ class CGI
# Get the value for the parameter with a given key.
#
# If the parameter has multiple values, only the first will be
- # retrieved; use #params() to get the array of values.
+ # retrieved; use #params to get the array of values.
def [](key)
params = @params[key]
return '' unless params
@@ -643,12 +691,12 @@ class CGI
end
end
- # Return all parameter keys as an array.
+ # Return all query parameter names as an array of String.
def keys(*args)
@params.keys(*args)
end
- # Returns true if a given parameter key exists in the query.
+ # Returns true if a given query string parameter exists.
def has_key?(*args)
@params.has_key?(*args)
end
@@ -657,7 +705,7 @@ class CGI
end # QueryExtension
- # InvalidEncoding Exception class
+ # Exception raised when there is an invalid encoding detected
class InvalidEncoding < Exception; end
# @@accept_charset is default accept character set.
@@ -667,80 +715,78 @@ class CGI
#
# CGI.accept_charset = "EUC-JP"
#
-
@@accept_charset="UTF-8"
+ # Return the accept character set for all new CGI instances.
def self.accept_charset
@@accept_charset
end
+ # Set the accept character set for all new CGI instances.
def self.accept_charset=(accept_charset)
@@accept_charset=accept_charset
end
+ # Return the accept character set for this CGI instance.
+ attr_reader :accept_charset
+
# Create a new CGI instance.
#
- # CGI accept constructor parameters either in a hash, string as a block.
- # But string is as same as using :tag_maker of hash.
+ # :call-seq:
+ # CGI.new(tag_maker) { block }
+ # CGI.new(options_hash = {}) { block }
#
- # CGI.new("html3") #=> CGI.new(:tag_maker=>"html3")
#
- # And, if you specify string, @accept_charset cannot be changed.
- # Instead, please use hash parameter.
+ # <tt>tag_maker</tt>::
+ # This is the same as using the +options_hash+ form with the value <tt>{
+ # :tag_maker => tag_maker }</tt> Note that it is recommended to use the
+ # +options_hash+ form, since it also allows you specify the charset you
+ # will accept.
+ # <tt>options_hash</tt>::
+ # A Hash that recognizes two options:
#
- # == accept_charset
+ # <tt>:accept_charset</tt>::
+ # specifies encoding of received query string. If omitted,
+ # <tt>@@accept_charset</tt> is used. If the encoding is not valid, a
+ # CGI::InvalidEncoding will be raised.
#
- # :accept_charset specifies encoding of received query string.
- # ( Default value is @@accept_charset. )
- # If not valid, raise CGI::InvalidEncoding
+ # Example. Suppose <tt>@@accept_charset</tt> is "UTF-8"
#
- # Example. Suppose @@accept_charset # => "UTF-8"
+ # when not specified:
#
- # when not specified:
+ # cgi=CGI.new # @accept_charset # => "UTF-8"
#
- # cgi=CGI.new # @accept_charset # => "UTF-8"
+ # when specified as "EUC-JP":
#
- # when specified "EUC-JP":
+ # cgi=CGI.new(:accept_charset => "EUC-JP") # => "EUC-JP"
#
- # cgi=CGI.new(:accept_charset => "EUC-JP") # => "EUC-JP"
+ # <tt>:tag_maker</tt>::
+ # String that specifies which version of the HTML generation methods to
+ # use. If not specified, no HTML generation methods will be loaded.
#
- # == block
+ # The following values are supported:
#
- # When you use a block, you can write a process
- # that query encoding is invalid. Example:
+ # "html3":: HTML 3.x
+ # "html4":: HTML 4.0
+ # "html4Tr":: HTML 4.0 Transitional
+ # "html4Fr":: HTML 4.0 with Framesets
#
- # encoding_error={}
- # cgi=CGI.new(:accept_charset=>"EUC-JP") do |name,value|
- # encoding_error[key] = value
- # end
+ # <tt>block</tt>::
+ # If provided, the block is called when an invalid encoding is
+ # encountered. For example:
#
- # == tag_maker
+ # encoding_errors={}
+ # cgi=CGI.new(:accept_charset=>"EUC-JP") do |name,value|
+ # encoding_errors[name] = value
+ # end
#
- # :tag_maker specifies which version of HTML to load the HTML generation
- # methods for. The following versions of HTML are supported:
- #
- # html3:: HTML 3.x
- # html4:: HTML 4.0
- # html4Tr:: HTML 4.0 Transitional
- # html4Fr:: HTML 4.0 with Framesets
- #
- # If not specified, no HTML generation methods will be loaded.
- #
- # If the CGI object is not created in a standard CGI call environment
- # (that is, it can't locate REQUEST_METHOD in its environment), then
- # it will run in "offline" mode. In this mode, it reads its parameters
+ # Finally, if the CGI object is not created in a standard CGI call
+ # environment (that is, it can't locate REQUEST_METHOD in its environment),
+ # then it will run in "offline" mode. In this mode, it reads its parameters
# from the command line or (failing that) from standard input. Otherwise,
# cookies and other parameters are parsed automatically from the standard
- # CGI locations, which varies according to the REQUEST_METHOD. It works this:
- #
- # CGI.new(:tag_maker=>"html3")
- #
- # This will be obsolete:
- #
- # CGI.new("html3")
- #
- attr_reader :accept_charset
- def initialize(options = {},&block)
+ # CGI locations, which varies according to the REQUEST_METHOD.
+ def initialize(options = {}, &block) # :yields: name, value
@accept_charset_error_block=block if block_given?
@options={:accept_charset=>@@accept_charset}
case options
diff --git a/lib/cgi/html.rb b/lib/cgi/html.rb
index 8ee38000c5..04e2431735 100644
--- a/lib/cgi/html.rb
+++ b/lib/cgi/html.rb
@@ -1,8 +1,8 @@
+class CGI
# Base module for HTML-generation mixins.
#
# Provides methods for code generation for tags following
# the various DTD element types.
-class CGI
module TagMaker # :nodoc:
# Generate code for an element with required start and end tags.
@@ -455,7 +455,7 @@ class CGI
# image_button("url", "name", "string")
# # <INPUT TYPE="image" SRC="url" NAME="name" ALT="string">
#
- # image_button("SRC" => "url", "ATL" => "strng")
+ # image_button("SRC" => "url", "ALT" => "string")
# # <INPUT TYPE="image" SRC="url" ALT="string">
def image_button(src = "", name = nil, alt = nil)
attributes = if src.kind_of?(String)
diff --git a/lib/cgi/session.rb b/lib/cgi/session.rb
index 65d6442b37..42b5ead81a 100644
--- a/lib/cgi/session.rb
+++ b/lib/cgi/session.rb
@@ -8,28 +8,22 @@
# Author: Yukihiro "Matz" Matsumoto
#
# Documentation: William Webber (william@williamwebber.com)
-#
-# == Overview
-#
-# This file provides the +CGI::Session+ class, which provides session
-# support for CGI scripts. A session is a sequence of HTTP requests
-# and responses linked together and associated with a single client.
-# Information associated with the session is stored
-# on the server between requests. A session id is passed between client
-# and server with every request and response, transparently
-# to the user. This adds state information to the otherwise stateless
-# HTTP request/response protocol.
-#
-# See the documentation to the +CGI::Session+ class for more details
-# and examples of usage. See cgi.rb for the +CGI+ class itself.
require 'cgi'
require 'tmpdir'
class CGI
- # Class representing an HTTP session. See documentation for the file
- # cgi/session.rb for an introduction to HTTP sessions.
+ # == Overview
+ #
+ # This file provides the CGI::Session class, which provides session
+ # support for CGI scripts. A session is a sequence of HTTP requests
+ # and responses linked together and associated with a single client.
+ # Information associated with the session is stored
+ # on the server between requests. A session id is passed between client
+ # and server with every request and response, transparently
+ # to the user. This adds state information to the otherwise stateless
+ # HTTP request/response protocol.
#
# == Lifecycle
#
diff --git a/lib/cgi/util.rb b/lib/cgi/util.rb
index b7b0233b4d..2bb3b0da78 100644
--- a/lib/cgi/util.rb
+++ b/lib/cgi/util.rb
@@ -1,4 +1,5 @@
class CGI
+ @@accept_charset="UTF-8" unless defined?(@@accept_charset)
# URL-encode a string.
# url_encoded_string = CGI::escape("'Stop!' said Fred")
# # => "%27Stop%21%27+said+Fred"
@@ -8,17 +9,17 @@ class CGI
end.tr(' ', '+')
end
-
- # URL-decode a string.
+ # URL-decode a string with encoding(optional).
# string = CGI::unescape("%27Stop%21%27+said+Fred")
# # => "'Stop!' said Fred"
- def CGI::unescape(string)
- enc = string.encoding
- string.tr('+', ' ').gsub(/((?:%[0-9a-fA-F]{2})+)/) do
- [$1.delete('%')].pack('H*').force_encoding(enc)
- end
+ def CGI::unescape(string,encoding=@@accept_charset)
+ str=string.tr('+', ' ').force_encoding(Encoding::ASCII_8BIT).gsub(/((?:%[0-9a-fA-F]{2})+)/) do
+ [$1.delete('%')].pack('H*')
+ end.force_encoding(encoding)
+ str.valid_encoding? ? str : str.force_encoding(string.encoding)
end
+ # The set of special characters and their escaped values
TABLE_FOR_ESCAPE_HTML__ = {
'&' => '&amp;',
'"' => '&quot;',
@@ -33,7 +34,6 @@ class CGI
string.gsub(/[&\"<>]/, TABLE_FOR_ESCAPE_HTML__)
end
-
# Unescape a string that has been HTML-escaped
# CGI::unescapeHTML("Usage: foo &quot;bar&quot; &lt;baz&gt;")
# # => "Usage: foo \"bar\" <baz>"
@@ -82,9 +82,13 @@ class CGI
end
end
end
+
+ # Synonym for CGI::escapeHTML(str)
def CGI::escape_html(str)
escapeHTML(str)
end
+
+ # Synonym for CGI::unescapeHTML(str)
def CGI::unescape_html(str)
unescapeHTML(str)
end
@@ -113,7 +117,6 @@ class CGI
end
end
-
# Undo escaping such as that done by CGI::escapeElement()
#
# print CGI::unescapeElement(
@@ -133,13 +136,23 @@ class CGI
string
end
end
+
+ # Synonym for CGI::escapeElement(str)
def CGI::escape_element(str)
escapeElement(str)
end
+
+ # Synonym for CGI::unescapeElement(str)
def CGI::unescape_element(str)
unescapeElement(str)
end
+ # Abbreviated day-of-week names specified by RFC 822
+ RFC822_DAYS = %w[ Sun Mon Tue Wed Thu Fri Sat ]
+
+ # Abbreviated month names specified by RFC 822
+ RFC822_MONTHS = %w[ Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec ]
+
# Format a +Time+ object as a String using the format specified by RFC 1123.
#
# CGI::rfc1123_date(Time.now)
@@ -169,7 +182,7 @@ class CGI
# # </HTML>
#
def CGI::pretty(string, shift = " ")
- lines = string.gsub(/(?!\A)<(?:.|\n)*?>/, "\n\\0").gsub(/<(?:.|\n)*?>(?!\n)/, "\\0\n")
+ lines = string.gsub(/(?!\A)<.*?>/m, "\n\\0").gsub(/<.*?>(?!\n)/m, "\\0\n")
end_pos = 0
while end_pos = lines.index(/^<\/(\w+)/, end_pos)
element = $1.dup
diff --git a/lib/cmath.rb b/lib/cmath.rb
index 95a30c336b..d613a3f6f9 100644
--- a/lib/cmath.rb
+++ b/lib/cmath.rb
@@ -1,11 +1,30 @@
+##
+# = CMath
+#
+# CMath is a library that provides trigonometric and transcendental
+# functions for complex numbers.
+#
+# == Usage
+#
+# To start using this library, simply:
+#
+# require "cmath"
+#
+# Square root of a negative number is a complex number.
+#
+# CMath.sqrt(-9) #=> 0+3.0i
+#
+
module CMath
include Math
alias exp! exp
alias log! log
+ alias log2! log2
alias log10! log10
alias sqrt! sqrt
+ alias cbrt! cbrt
alias sin! sin
alias cos! cos
@@ -24,160 +43,297 @@ module CMath
alias acosh! acosh
alias atanh! atanh
+ ##
+ # Math::E raised to the +z+ power
+ #
+ # exp(Complex(0,0)) #=> 1.0+0.0i
+ # exp(Complex(0,PI)) #=> -1.0+1.2246467991473532e-16i
+ # exp(Complex(0,PI/2.0)) #=> 6.123233995736766e-17+1.0i
def exp(z)
- if z.real?
- exp!(z)
- else
- Complex(exp!(z.real) * cos!(z.imag),
- exp!(z.real) * sin!(z.imag))
+ begin
+ if z.real?
+ exp!(z)
+ else
+ ere = exp!(z.real)
+ Complex(ere * cos!(z.imag),
+ ere * sin!(z.imag))
+ end
+ rescue NoMethodError
+ handle_no_method_error
end
end
+ ##
+ # Returns the natural logarithm of Complex. If a second argument is given,
+ # it will be the base of logarithm.
+ #
+ # log(Complex(0,0)) #=> -Infinity+0.0i
def log(*args)
- z, b = args
- if z.real? and z >= 0 and (b.nil? or b >= 0)
- log!(*args)
- else
- r, theta = z.polar
- a = Complex(log!(r.abs), theta)
- if b
- a /= log(b)
+ begin
+ z, b = args
+ unless b.nil? || b.kind_of?(Numeric)
+ raise TypeError, "Numeric Number required"
end
- a
+ if z.real? and z >= 0 and (b.nil? or b >= 0)
+ log!(*args)
+ else
+ a = Complex(log!(z.abs), z.arg)
+ if b
+ a /= log(b)
+ end
+ a
+ end
+ rescue NoMethodError
+ handle_no_method_error
end
end
- def log10(z)
- if z.real?
- log10!(z)
- else
- log(z) / log!(10)
+ ##
+ # returns the base 2 logarithm of +z+
+ def log2(z)
+ begin
+ if z.real? and z >= 0
+ log2!(z)
+ else
+ log(z) / log!(2)
+ end
+ rescue NoMethodError
+ handle_no_method_error
end
end
- def sqrt(z)
- if z.real?
- if z < 0
- Complex(0, sqrt!(-z))
+ ##
+ # returns the base 10 logarithm of +z+
+ def log10(z)
+ begin
+ if z.real? and z >= 0
+ log10!(z)
else
- sqrt!(z)
+ log(z) / log!(10)
end
- else
- if z.imag < 0
- sqrt(z.conjugate).conjugate
+ rescue NoMethodError
+ handle_no_method_error
+ end
+ end
+
+ ##
+ # Returns the non-negative square root of Complex.
+ # sqrt(-1) #=> 0+1.0i
+ # sqrt(Complex(-1,0)) #=> 0.0+1.0i
+ # sqrt(Complex(0,8)) #=> 2.0+2.0i
+ def sqrt(z)
+ begin
+ if z.real?
+ if z < 0
+ Complex(0, sqrt!(-z))
+ else
+ sqrt!(z)
+ end
else
- r = z.abs
- x = z.real
- Complex(sqrt!((r + x) / 2), sqrt!((r - x) / 2))
+ if z.imag < 0 ||
+ (z.imag == 0 && z.imag.to_s[0] == '-')
+ sqrt(z.conjugate).conjugate
+ else
+ r = z.abs
+ x = z.real
+ Complex(sqrt!((r + x) / 2.0), sqrt!((r - x) / 2.0))
+ end
end
+ rescue NoMethodError
+ handle_no_method_error
end
end
+ ##
+ # returns the principal value of the cube root of +z+
+ def cbrt(z)
+ z ** (1.0/3)
+ end
+
+ ##
+ # returns the sine of +z+, where +z+ is given in radians
def sin(z)
- if z.real?
- sin!(z)
- else
- Complex(sin!(z.real) * cosh!(z.imag),
- cos!(z.real) * sinh!(z.imag))
+ begin
+ if z.real?
+ sin!(z)
+ else
+ Complex(sin!(z.real) * cosh!(z.imag),
+ cos!(z.real) * sinh!(z.imag))
+ end
+ rescue NoMethodError
+ handle_no_method_error
end
end
+ ##
+ # returns the cosine of +z+, where +z+ is given in radians
def cos(z)
- if z.real?
- cos!(z)
- else
- Complex(cos!(z.real) * cosh!(z.imag),
- -sin!(z.real) * sinh!(z.imag))
+ begin
+ if z.real?
+ cos!(z)
+ else
+ Complex(cos!(z.real) * cosh!(z.imag),
+ -sin!(z.real) * sinh!(z.imag))
+ end
+ rescue NoMethodError
+ handle_no_method_error
end
end
+ ##
+ # returns the tangent of +z+, where +z+ is given in radians
def tan(z)
- if z.real?
- tan!(z)
- else
- sin(z)/cos(z)
+ begin
+ if z.real?
+ tan!(z)
+ else
+ sin(z) / cos(z)
+ end
+ rescue NoMethodError
+ handle_no_method_error
end
end
+ ##
+ # returns the hyperbolic sine of +z+, where +z+ is given in radians
def sinh(z)
- if z.real?
- sinh!(z)
- else
- Complex(sinh!(z.real) * cos!(z.imag),
- cosh!(z.real) * sin!(z.imag))
+ begin
+ if z.real?
+ sinh!(z)
+ else
+ Complex(sinh!(z.real) * cos!(z.imag),
+ cosh!(z.real) * sin!(z.imag))
+ end
+ rescue NoMethodError
+ handle_no_method_error
end
end
+ ##
+ # returns the hyperbolic cosine of +z+, where +z+ is given in radians
def cosh(z)
- if z.real?
- cosh!(z)
- else
- Complex(cosh!(z.real) * cos!(z.imag),
- sinh!(z.real) * sin!(z.imag))
+ begin
+ if z.real?
+ cosh!(z)
+ else
+ Complex(cosh!(z.real) * cos!(z.imag),
+ sinh!(z.real) * sin!(z.imag))
+ end
+ rescue NoMethodError
+ handle_no_method_error
end
end
+ ##
+ # returns the hyperbolic tangent of +z+, where +z+ is given in radians
def tanh(z)
- if z.real?
- tanh!(z)
- else
- sinh(z) / cosh(z)
+ begin
+ if z.real?
+ tanh!(z)
+ else
+ sinh(z) / cosh(z)
+ end
+ rescue NoMethodError
+ handle_no_method_error
end
end
+ ##
+ # returns the arc sine of +z+
def asin(z)
- if z.real? and z >= -1 and z <= 1
- asin!(z)
- else
- Complex(0, -1.0) * log(Complex(0, 1.0) * z + sqrt(1.0 - z * z))
+ begin
+ if z.real? and z >= -1 and z <= 1
+ asin!(z)
+ else
+ (-1.0).i * log(1.0.i * z + sqrt(1.0 - z * z))
+ end
+ rescue NoMethodError
+ handle_no_method_error
end
end
+ ##
+ # returns the arc cosine of +z+
def acos(z)
- if z.real? and z >= -1 and z <= 1
- acos!(z)
- else
- Complex(0, -1.0) * log(z + Complex(0, 1.0) * sqrt(1.0 - z * z))
+ begin
+ if z.real? and z >= -1 and z <= 1
+ acos!(z)
+ else
+ (-1.0).i * log(z + 1.0.i * sqrt(1.0 - z * z))
+ end
+ rescue NoMethodError
+ handle_no_method_error
end
end
+ ##
+ # returns the arc tangent of +z+
def atan(z)
- if z.real?
- atan!(z)
- else
- Complex(0, 1.0) * log((Complex(0, 1.0) + z) / (Complex(0, 1.0) - z)) / 2.0
+ begin
+ if z.real?
+ atan!(z)
+ else
+ 1.0.i * log((1.0.i + z) / (1.0.i - z)) / 2.0
+ end
+ rescue NoMethodError
+ handle_no_method_error
end
end
+ ##
+ # returns the arc tangent of +y+ divided by +x+ using the signs of +y+ and
+ # +x+ to determine the quadrant
def atan2(y,x)
- if y.real? and x.real?
- atan2!(y,x)
- else
- Complex(0, -1.0) * log((x + Complex(0, 1.0) * y) / sqrt(x * x + y * y))
+ begin
+ if y.real? and x.real?
+ atan2!(y,x)
+ else
+ (-1.0).i * log((x + 1.0.i * y) / sqrt(x * x + y * y))
+ end
+ rescue NoMethodError
+ handle_no_method_error
end
end
- def acosh(z)
- if z.real? and z >= 1
- acosh!(z)
- else
- log(z + sqrt(z * z - 1.0))
+ ##
+ # returns the inverse hyperbolic sine of +z+
+ def asinh(z)
+ begin
+ if z.real?
+ asinh!(z)
+ else
+ log(z + sqrt(1.0 + z * z))
+ end
+ rescue NoMethodError
+ handle_no_method_error
end
end
- def asinh(z)
- if z.real?
- asinh!(z)
- else
- log(z + sqrt(1.0 + z * z))
+ ##
+ # returns the inverse hyperbolic cosine of +z+
+ def acosh(z)
+ begin
+ if z.real? and z >= 1
+ acosh!(z)
+ else
+ log(z + sqrt(z * z - 1.0))
+ end
+ rescue NoMethodError
+ handle_no_method_error
end
end
+ ##
+ # returns the inverse hyperbolic tangent of +z+
def atanh(z)
- if z.real? and z >= -1 and z <= 1
- atanh!(z)
- else
- log((1.0 + z) / (1.0 - z)) / 2.0
+ begin
+ if z.real? and z >= -1 and z <= 1
+ atanh!(z)
+ else
+ log((1.0 + z) / (1.0 - z)) / 2.0
+ end
+ rescue NoMethodError
+ handle_no_method_error
end
end
@@ -185,10 +341,14 @@ module CMath
module_function :exp
module_function :log!
module_function :log
+ module_function :log2!
+ module_function :log2
module_function :log10!
module_function :log10
module_function :sqrt!
module_function :sqrt
+ module_function :cbrt!
+ module_function :cbrt
module_function :sin!
module_function :sin
@@ -220,8 +380,6 @@ module CMath
module_function :atanh!
module_function :atanh
- module_function :log2
- module_function :cbrt
module_function :frexp
module_function :ldexp
module_function :hypot
@@ -230,4 +388,15 @@ module CMath
module_function :gamma
module_function :lgamma
+ private
+ def handle_no_method_error # :nodoc:
+ if $!.name == :real?
+ raise TypeError, "Numeric Number required"
+ else
+ raise
+ end
+ end
+ module_function :handle_no_method_error
+
end
+
diff --git a/lib/complex.rb b/lib/complex.rb
index 301879143f..9c57ecdf7a 100644
--- a/lib/complex.rb
+++ b/lib/complex.rb
@@ -1,3 +1,7 @@
+# :enddoc:
+
+warn('lib/complex.rb is deprecated') if $VERBOSE
+
require 'cmath'
unless defined?(Math.exp!)
diff --git a/lib/csv.rb b/lib/csv.rb
index 862839a0e4..13f86ec318 100644
--- a/lib/csv.rb
+++ b/lib/csv.rb
@@ -1,4 +1,4 @@
-# encoding: UTF-8
+# encoding: US-ASCII
# = csv.rb -- CSV Reading and Writing
#
# Created by James Edward Gray II on 2005-10-31.
@@ -27,7 +27,8 @@
# hopefully this won't be too radically different.
#
# We must have met our goals because FasterCSV was renamed to CSV and replaced
-# the original library.
+# the original library as of Ruby 1.9. If you are migrating code from 1.8 or
+# earlier, you may have to change your code to comply with the new interface.
#
# == What's Different From the Old CSV?
#
@@ -153,6 +154,14 @@ require "stringio"
# CSV { |csv_out| csv_out << %w{my data here} } # to $stdout
# CSV(csv = "") { |csv_str| csv_str << %w{my data here} } # to a String
# CSV($stderr) { |csv_err| csv_err << %w{my data here} } # to $stderr
+# CSV($stdin) { |csv_in| csv_in.each { |row| p row } } # from $stdin
+#
+# == Advanced Usage
+#
+# === Wrap an IO Object
+#
+# csv = CSV.new(io, options)
+# # ... read (with gets() or each()) from and write (with <<) to csv here ...
#
# == CSV and Character Encodings (M17n or Multilingualization)
#
@@ -198,7 +207,7 @@ require "stringio"
#
class CSV
# The version of the installed library.
- VERSION = "2.4.5".freeze
+ VERSION = "2.4.8".freeze
#
# A CSV::Row is part Array and part Hash. It retains an order for the fields
@@ -364,10 +373,12 @@ class CSV
# or +nil+ if a pair could not be found.
#
def delete(header_or_index, minimum_index = 0)
- if header_or_index.is_a? Integer # by index
+ if header_or_index.is_a? Integer # by index
@row.delete_at(header_or_index)
- else # by header
- @row.delete_at(index(header_or_index, minimum_index))
+ elsif i = index(header_or_index, minimum_index) # by header
+ @row.delete_at(i)
+ else
+ [ ]
end
end
@@ -495,12 +506,12 @@ class CSV
end
str << ">"
begin
- str.join
+ str.join('')
rescue # any encoding error
str.map do |s|
e = Encoding::Converter.asciicompat_encoding(s.encoding)
e ? s.encode(e) : s.force_encoding("ASCII-8BIT")
- end.join
+ end.join('')
end
end
end
@@ -824,14 +835,18 @@ class CSV
# Returns the table as a complete CSV String. Headers will be listed first,
# then all of the field rows.
#
+ # This method assumes you want the Table.headers(), unless you explicitly
+ # pass <tt>:write_headers => false</tt>.
+ #
def to_csv(options = Hash.new)
- @table.inject([headers.to_csv(options)]) do |rows, row|
+ wh = options.fetch(:write_headers, true)
+ @table.inject(wh ? [headers.to_csv(options)] : [ ]) do |rows, row|
if row.header_row?
rows
else
rows + [row.fields.to_csv(options)]
end
- end.join
+ end.join('')
end
alias_method :to_s, :to_csv
@@ -1183,16 +1198,13 @@ class CSV
# also understands an additional <tt>:encoding</tt> parameter that you can use
# to specify the Encoding of the data in the file to be read. You must provide
# this unless your data is in Encoding::default_external(). CSV will use this
- # to deterime how to parse the data. You may provide a second Encoding to
+ # to determine how to parse the data. You may provide a second Encoding to
# have the data transcoded as it is read. For example,
# <tt>encoding: "UTF-32BE:UTF-8"</tt> would read UTF-32BE data from the file
# but transcode it to UTF-8 before CSV parses it.
#
def self.foreach(path, options = Hash.new, &block)
- encoding = options.delete(:encoding)
- mode = "rb"
- mode << ":#{encoding}" if encoding
- open(path, mode, options) do |csv|
+ open(path, options) do |csv|
csv.each(&block)
end
end
@@ -1210,7 +1222,7 @@ class CSV
# Note that a passed String *is* modfied by this method. Call dup() before
# passing if you need a new String.
#
- # The +options+ parameter can be anthing CSV::new() understands. This method
+ # The +options+ parameter can be anything CSV::new() understands. This method
# understands an additional <tt>:encoding</tt> parameter when not passed a
# String to set the base Encoding for the output. CSV needs this hint if you
# plan to output non-ASCII compatible data.
@@ -1222,7 +1234,7 @@ class CSV
io.seek(0, IO::SEEK_END)
args.unshift(io)
else
- encoding = args.last.is_a?(Hash) ? args.last.delete(:encoding) : nil
+ encoding = (args[-1] = args[-1].dup).delete(:encoding) if args.last.is_a?(Hash)
str = ""
str.encode!(encoding) if encoding
args.unshift(str)
@@ -1236,7 +1248,7 @@ class CSV
# This method is a shortcut for converting a single row (Array) into a CSV
# String.
#
- # The +options+ parameter can be anthing CSV::new() understands. This method
+ # The +options+ parameter can be anything CSV::new() understands. This method
# understands an additional <tt>:encoding</tt> parameter to set the base
# Encoding for the output. This method will try to guess your Encoding from
# the first non-+nil+ field in +row+, if possible, but you may need to use
@@ -1279,7 +1291,7 @@ class CSV
#
# You must provide a +mode+ with an embedded Encoding designator unless your
# data is in Encoding::default_external(). CSV will check the Encoding of the
- # underlying IO object (set by the +mode+ you pass) to deterime how to parse
+ # underlying IO object (set by the +mode+ you pass) to determine how to parse
# the data. You may provide a second Encoding to have the data transcoded as
# it is read just as you can with a normal call to IO::open(). For example,
# <tt>"rb:UTF-32BE:UTF-8"</tt> would read UTF-32BE data from the file but
@@ -1323,10 +1335,18 @@ class CSV
def self.open(*args)
# find the +options+ Hash
options = if args.last.is_a? Hash then args.pop else Hash.new end
- # default to a binary open mode
- args << "rb" if args.size == 1
- # wrap a File opened with the remaining +args+
- csv = new(File.open(*args), options)
+ # wrap a File opened with the remaining +args+ with no newline
+ # decorator
+ file_opts = {universal_newline: false}.merge(options)
+ begin
+ f = File.open(*args, file_opts)
+ rescue ArgumentError => e
+ raise unless /needs binmode/ =~ e.message and args.size == 1
+ args << "rb"
+ file_opts = {encoding: Encoding.default_external}.merge(file_opts)
+ retry
+ end
+ csv = new(f, options)
# handle blocks like Ruby's open(), not like the CSV library
if block_given?
@@ -1370,7 +1390,7 @@ class CSV
# a into an Array. Note that if +line+ contains multiple rows, anything
# beyond the first row is ignored.
#
- # The +options+ parameter can be anthing CSV::new() understands.
+ # The +options+ parameter can be anything CSV::new() understands.
#
def self.parse_line(line, options = Hash.new)
new(line, options).shift
@@ -1381,17 +1401,14 @@ class CSV
# file and any +options+ CSV::new() understands. This method also understands
# an additional <tt>:encoding</tt> parameter that you can use to specify the
# Encoding of the data in the file to be read. You must provide this unless
- # your data is in Encoding::default_external(). CSV will use this to deterime
+ # your data is in Encoding::default_external(). CSV will use this to determine
# how to parse the data. You may provide a second Encoding to have the data
# transcoded as it is read. For example,
# <tt>encoding: "UTF-32BE:UTF-8"</tt> would read UTF-32BE data from the file
# but transcode it to UTF-8 before CSV parses it.
#
- def self.read(path, options = Hash.new)
- encoding = options.delete(:encoding)
- mode = "rb"
- mode << ":#{encoding}" if encoding
- open(path, mode, options) { |csv| csv.read }
+ def self.read(path, *options)
+ open(path, *options) { |csv| csv.read }
end
# Alias for CSV::read().
@@ -1540,7 +1557,7 @@ class CSV
#
# See CSV::DEFAULT_OPTIONS for the default settings.
#
- # Options cannot be overriden in the instance methods for performance reasons,
+ # Options cannot be overridden in the instance methods for performance reasons,
# so be sure to set what you want here.
#
def initialize(data, options = Hash.new)
@@ -1548,29 +1565,36 @@ class CSV
options = DEFAULT_OPTIONS.merge(options)
# create the IO object we will read from
- @io = if data.is_a? String then StringIO.new(data) else data end
+ @io = data.is_a?(String) ? StringIO.new(data) : data
# honor the IO encoding if we can, otherwise default to ASCII-8BIT
- @encoding = if @io.respond_to? :internal_encoding
- @io.internal_encoding || @io.external_encoding
- elsif @io.is_a? StringIO
- @io.string.encoding
- end
- @encoding ||= Encoding.default_internal || Encoding.default_external
+ @encoding = raw_encoding(nil) ||
+ ( if encoding = options.delete(:internal_encoding)
+ case encoding
+ when Encoding; encoding
+ else Encoding.find(encoding)
+ end
+ end ) ||
+ ( case encoding = options.delete(:encoding)
+ when Encoding; encoding
+ when /\A[^:]+/; Encoding.find($&)
+ end ) ||
+ Encoding.default_internal || Encoding.default_external
#
# prepare for building safe regular expressions in the target encoding,
# if we can transcode the needed characters
#
@re_esc = "\\".encode(@encoding) rescue ""
- @re_chars = %w[ \\ . [ ] - ^ $ ?
- * + { } ( ) | #
- \ \r \n \t \f \v ].
- map { |s| s.encode(@encoding) rescue nil }.compact
+ @re_chars = /#{%"[-][\\.^$?*+{}()|# \r\n\t\f\v]".encode(@encoding)}/
+ # @re_chars = /#{%"[-][\\.^$?*+{}()|# \r\n\t\f\v]".encode(@encoding, fallback: proc{""})}/
init_separators(options)
init_parsers(options)
init_converters(options)
init_headers(options)
+ options.delete(:encoding)
+ options.delete(:internal_encoding)
+ options.delete(:external_encoding)
unless options.empty?
raise ArgumentError, "Unknown options: #{options.keys.join(', ')}."
end
@@ -1702,7 +1726,14 @@ class CSV
@headers = row if header_row?
@lineno += 1
- @io << row.map(&@quote).join(@col_sep) + @row_sep # quote and separate
+ output = row.map(&@quote).join(@col_sep) + @row_sep # quote and separate
+ if @io.is_a?(StringIO) and
+ output.encoding != raw_encoding and
+ (compatible_encoding = Encoding.compatible?(@io.string, output))
+ @io = StringIO.new(@io.string.force_encoding(compatible_encoding))
+ @io.seek(0, IO::SEEK_END)
+ end
+ @io << output
self # for chaining
end
@@ -1756,8 +1787,12 @@ class CSV
# The data source must be open for reading.
#
def each
- while row = shift
- yield row
+ if block_given?
+ while row = shift
+ yield row
+ end
+ else
+ to_enum
end
end
@@ -1804,73 +1839,111 @@ class CSV
end
end
- # begin with a blank line, so we can always add to it
- line = ""
-
#
# it can take multiple calls to <tt>@io.gets()</tt> to get a full line,
# because of \r and/or \n characters embedded in quoted fields
#
+ in_extended_col = false
+ csv = Array.new
+
loop do
# add another read to the line
- (line += @io.gets(@row_sep)) rescue return nil
- # copy the line so we can chop it up in parsing
- parse = line.dup
+ unless parse = @io.gets(@row_sep)
+ return nil
+ end
+
parse.sub!(@parsers[:line_end], "")
- #
- # I believe a blank line should be an <tt>Array.new</tt>, not Ruby 1.8
- # CSV's <tt>[nil]</tt>
- #
- if parse.empty?
- @lineno += 1
- if @skip_blanks
- line = ""
- next
- elsif @unconverted_fields
- return add_unconverted_fields(Array.new, Array.new)
- elsif @use_headers
- return self.class::Row.new(Array.new, Array.new)
- else
- return Array.new
+ if csv.empty?
+ #
+ # I believe a blank line should be an <tt>Array.new</tt>, not Ruby 1.8
+ # CSV's <tt>[nil]</tt>
+ #
+ if parse.empty?
+ @lineno += 1
+ if @skip_blanks
+ next
+ elsif @unconverted_fields
+ return add_unconverted_fields(Array.new, Array.new)
+ elsif @use_headers
+ return self.class::Row.new(Array.new, Array.new)
+ else
+ return Array.new
+ end
end
end
- #
- # shave leading empty fields if needed, because the main parser chokes
- # on these
- #
- csv = if parse.sub!(@parsers[:leading_fields], "")
- [nil] * ($&.length / @col_sep.length)
- else
- Array.new
+ parts = parse.split(@col_sep, -1)
+ if parts.empty?
+ if in_extended_col
+ csv[-1] << @col_sep # will be replaced with a @row_sep after the parts.each loop
+ else
+ csv << nil
+ end
end
- #
- # then parse the main fields with a hyper-tuned Regexp from
- # Mastering Regular Expressions, Second Edition
- #
- parse.gsub!(@parsers[:csv_row]) do
- csv << if $1.nil? # we found an unquoted field
- if $2.empty? # switch empty unquoted fields to +nil+...
- nil # for Ruby 1.8 CSV compatibility
+
+ # This loop is the hot path of csv parsing. Some things may be non-dry
+ # for a reason. Make sure to benchmark when refactoring.
+ parts.each do |part|
+ if in_extended_col
+ # If we are continuing a previous column
+ if part[-1] == @quote_char && part.count(@quote_char) % 2 != 0
+ # extended column ends
+ csv.last << part[0..-2]
+ if csv.last =~ @parsers[:stray_quote]
+ raise MalformedCSVError,
+ "Missing or stray quote in line #{lineno + 1}"
+ end
+ csv.last.gsub!(@quote_char * 2, @quote_char)
+ in_extended_col = false
else
- # I decided to take a strict approach to CSV parsing...
- if $2.count(@parsers[:return_newline]).zero? # verify correctness
- $2
- else
- # or throw an Exception
- raise MalformedCSVError, "Unquoted fields do not allow " +
- "\\r or \\n (line #{lineno + 1})."
+ csv.last << part
+ csv.last << @col_sep
+ end
+ elsif part[0] == @quote_char
+ # If we are staring a new quoted column
+ if part[-1] != @quote_char || part.count(@quote_char) % 2 != 0
+ # start an extended column
+ csv << part[1..-1]
+ csv.last << @col_sep
+ in_extended_col = true
+ else
+ # regular quoted column
+ csv << part[1..-2]
+ if csv.last =~ @parsers[:stray_quote]
+ raise MalformedCSVError,
+ "Missing or stray quote in line #{lineno + 1}"
end
+ csv.last.gsub!(@quote_char * 2, @quote_char)
+ end
+ elsif part =~ @parsers[:quote_or_nl]
+ # Unquoted field with bad characters.
+ if part =~ @parsers[:nl_or_lf]
+ raise MalformedCSVError, "Unquoted fields do not allow " +
+ "\\r or \\n (line #{lineno + 1})."
+ else
+ raise MalformedCSVError, "Illegal quoting in line #{lineno + 1}."
end
- else # we found a quoted field...
- $1.gsub(@quote_char * 2, @quote_char) # unescape contents
+ else
+ # Regular ole unquoted field.
+ csv << (part.empty? ? nil : part)
end
- "" # gsub!'s replacement, clear the field
end
- # if parse is empty?(), we found all the fields on the line...
- if parse.empty?
+ # Replace tacked on @col_sep with @row_sep if we are still in an extended
+ # column.
+ csv[-1][-1] = @row_sep if in_extended_col
+
+ if in_extended_col
+ # if we're at eof?(), a quoted field wasn't closed...
+ if @io.eof?
+ raise MalformedCSVError,
+ "Unclosed quoted field on line #{lineno + 1}."
+ elsif @field_size_limit and csv.last.size >= @field_size_limit
+ raise MalformedCSVError, "Field size exceeded on line #{lineno + 1}."
+ end
+ # otherwise, we need to loop and pull some more data to complete the row
+ else
@lineno += 1
# save fields unconverted fields, if needed...
@@ -1889,22 +1962,13 @@ class CSV
# return the results
break csv
end
- # if we're not empty?() but at eof?(), a quoted field wasn't closed...
- if @io.eof?
- raise MalformedCSVError, "Unclosed quoted field on line #{lineno + 1}."
- elsif parse =~ @parsers[:bad_field]
- raise MalformedCSVError, "Illegal quoting on line #{lineno + 1}."
- elsif @field_size_limit and parse.length >= @field_size_limit
- raise MalformedCSVError, "Field size exceeded on line #{lineno + 1}."
- end
- # otherwise, we need to loop and pull some more data to complete the row
end
end
alias_method :gets, :shift
alias_method :readline, :shift
#
- # Returns a simplified description of the key FasterCSV attributes in an
+ # Returns a simplified description of the key CSV attributes in an
# ASCII compatible String.
#
def inspect
@@ -1933,12 +1997,12 @@ class CSV
end
str << ">"
begin
- str.join
+ str.join('')
rescue # any encoding error
str.map do |s|
e = Encoding::Converter.asciicompat_encoding(s.encoding)
e ? s.encode(e) : s.force_encoding("ASCII-8BIT")
- end.join
+ end.join('')
end
end
@@ -1974,28 +2038,29 @@ class CSV
@row_sep = $INPUT_RECORD_SEPARATOR
else
begin
- saved_pos = @io.pos # remember where we were
+ #
+ # remember where we were (pos() will raise an axception if @io is pipe
+ # or not opened for reading)
+ #
+ saved_pos = @io.pos
while @row_sep == :auto
#
# if we run out of data, it's probably a single line
- # (use a sensible default)
+ # (ensure will set default value)
#
- if @io.eof?
- @row_sep = $INPUT_RECORD_SEPARATOR
- break
+ break unless sample = @io.gets(nil, 1024)
+ # extend sample if we're unsure of the line ending
+ if sample.end_with? encode_str("\r")
+ sample << (@io.gets(nil, 1) || "")
end
- # read ahead a bit
- sample = read_to_char(1024)
- sample += read_to_char(1) if sample[-1..-1] == encode_str("\r") and
- not @io.eof?
-
# try to find a standard separator
if sample =~ encode_re("\r\n?|\n")
@row_sep = $&
break
end
end
+
# tricky seek() clone to work around GzipReader's lack of seek()
@io.rewind
# reset back to the remembered position
@@ -2004,19 +2069,31 @@ class CSV
saved_pos -= 1024
end
@io.read(saved_pos) if saved_pos.nonzero?
- rescue IOError # stream not opened for reading
- @row_sep = $INPUT_RECORD_SEPARATOR
+ rescue IOError # not opened for reading
+ # do nothing: ensure will set default
+ rescue NoMethodError # Zlib::GzipWriter doesn't have some IO methods
+ # do nothing: ensure will set default
+ rescue SystemCallError # pipe
+ # do nothing: ensure will set default
+ ensure
+ #
+ # set default if we failed to detect
+ # (stream not opened for reading, a pipe, or a single line of data)
+ #
+ @row_sep = $INPUT_RECORD_SEPARATOR if @row_sep == :auto
end
end
end
@row_sep = @row_sep.to_s.encode(@encoding)
# establish quoting rules
- @force_quotes = options.delete(:force_quotes)
- do_quote = lambda do |field|
- @quote_char +
- String(field).gsub(@quote_char, @quote_char * 2) +
- @quote_char
+ @force_quotes = options.delete(:force_quotes)
+ do_quote = lambda do |field|
+ field = String(field)
+ encoded_quote = @quote_char.encode(field.encoding)
+ encoded_quote +
+ field.gsub(encoded_quote, encoded_quote * 2) +
+ encoded_quote
end
quotable_chars = encode_str("\r\n", @col_sep, @quote_char)
@quote = if @force_quotes
@@ -2046,37 +2123,14 @@ class CSV
@field_size_limit = options.delete(:field_size_limit)
# prebuild Regexps for faster parsing
- esc_col_sep = escape_re(@col_sep)
esc_row_sep = escape_re(@row_sep)
esc_quote = escape_re(@quote_char)
@parsers = {
- # for empty leading fields
- leading_fields: encode_re("\\A(?:", esc_col_sep, ")+"),
- # The Primary Parser
- csv_row: encode_re(
- "\\G(?:\\A|", esc_col_sep, ")", # anchor the match
- "(?:", esc_quote, # find quoted fields
- "((?>[^", esc_quote, "]*)", # "unrolling the loop"
- "(?>", esc_quote * 2, # double for escaping
- "[^", esc_quote, "]*)*)",
- esc_quote,
- "|", # ... or ...
- "([^", esc_quote, esc_col_sep, "]*))", # unquoted fields
- "(?=", esc_col_sep, "|\\z)" # ensure field is ended
- ),
- # a test for unescaped quotes
- bad_field: encode_re(
- "\\A", esc_col_sep, "?", # an optional comma
- "(?:", esc_quote, # a quoted field
- "(?>[^", esc_quote, "]*)", # "unrolling the loop"
- "(?>", esc_quote * 2, # double for escaping
- "[^", esc_quote, "]*)*",
- esc_quote, # the closing quote
- "[^", esc_quote, "]", # an extra character
- "|", # ... or ...
- "[^", esc_quote, esc_col_sep, "]+", # an unquoted field
- esc_quote, ")" # an extra quote
- ),
+ # for detecting parse errors
+ quote_or_nl: encode_re("[", esc_quote, "\r\n]"),
+ nl_or_lf: encode_re("[\r\n]"),
+ stray_quote: encode_re( "[^", esc_quote, "]", esc_quote,
+ "[^", esc_quote, "]" ),
# safer than chomp!()
line_end: encode_re(esc_row_sep, "\\z"),
# illegal unquoted characters
@@ -2185,7 +2239,7 @@ class CSV
end
#
- # This methods is used to turn a finished +row+ into a CSV::Row. Header rows
+ # This method is used to turn a finished +row+ into a CSV::Row. Header rows
# are also dealt with here, either by returning a CSV::Row with identical
# headers and fields (save that the fields do not go through the converters)
# or by reading past them to return a field row. Headers are also saved in
@@ -2224,8 +2278,8 @@ class CSV
end
#
- # Thiw methods injects an instance variable <tt>unconverted_fields</tt> into
- # +row+ and an accessor method for it called unconverted_fields(). The
+ # This method injects an instance variable <tt>unconverted_fields</tt> into
+ # +row+ and an accessor method for +row+ called unconverted_fields(). The
# variable is set to the contents of +fields+.
#
def add_unconverted_fields(row, fields)
@@ -2244,7 +2298,7 @@ class CSV
# a backslash cannot be transcoded.
#
def escape_re(str)
- str.chars.map { |c| @re_chars.include?(c) ? @re_esc + c : c }.join
+ str.gsub(@re_chars) {|c| @re_esc + c}
end
#
@@ -2260,30 +2314,24 @@ class CSV
# that encoding.
#
def encode_str(*chunks)
- chunks.map { |chunk| chunk.encode(@encoding.name) }.join
+ chunks.map { |chunk| chunk.encode(@encoding.name) }.join('')
end
- #
- # Reads at least +bytes+ from <tt>@io</tt>, but will read up 10 bytes ahead if
- # needed to ensure the data read is valid in the ecoding of that data. This
- # should ensure that it is safe to use regular expressions on the read data,
- # unless it is actually a broken encoding. The read data will be returned in
- # <tt>@encoding</tt>.
- #
- def read_to_char(bytes)
- return "" if @io.eof?
- data = @io.read(bytes)
- begin
- encoded = encode_str(data)
- raise unless encoded.valid_encoding?
- return encoded
- rescue # encoding error or my invalid data raise
- if @io.eof? or data.size >= bytes + 10
- return data
- else
- data += @io.read(1)
- retry
- end
+ private
+
+ #
+ # Returns the encoding of the internal IO object or the +default+ if the
+ # encoding cannot be determined.
+ #
+ def raw_encoding(default = Encoding::ASCII_8BIT)
+ if @io.respond_to? :internal_encoding
+ @io.internal_encoding || @io.external_encoding
+ elsif @io.is_a? StringIO
+ @io.string.encoding
+ elsif @io.respond_to? :encoding
+ @io.encoding
+ else
+ default
end
end
end
diff --git a/lib/date.rb b/lib/date.rb
deleted file mode 100644
index ce1d327127..0000000000
--- a/lib/date.rb
+++ /dev/null
@@ -1,1834 +0,0 @@
-#
-# date.rb - date and time library
-#
-# Author: Tadayoshi Funaba 1998-2008
-#
-# Documentation: William Webber <william@williamwebber.com>
-#
-#--
-# $Id: date.rb,v 2.37 2008-01-17 20:16:31+09 tadf Exp $
-#++
-#
-# == Overview
-#
-# This file provides two classes for working with
-# dates and times.
-#
-# The first class, Date, represents dates.
-# It works with years, months, weeks, and days.
-# See the Date class documentation for more details.
-#
-# The second, DateTime, extends Date to include hours,
-# minutes, seconds, and fractions of a second. It
-# provides basic support for time zones. See the
-# DateTime class documentation for more details.
-#
-# === Ways of calculating the date.
-#
-# In common usage, the date is reckoned in years since or
-# before the Common Era (CE/BCE, also known as AD/BC), then
-# as a month and day-of-the-month within the current year.
-# This is known as the *Civil* *Date*, and abbreviated
-# as +civil+ in the Date class.
-#
-# Instead of year, month-of-the-year, and day-of-the-month,
-# the date can also be reckoned in terms of year and
-# day-of-the-year. This is known as the *Ordinal* *Date*,
-# and is abbreviated as +ordinal+ in the Date class. (Note
-# that referring to this as the Julian date is incorrect.)
-#
-# The date can also be reckoned in terms of year, week-of-the-year,
-# and day-of-the-week. This is known as the *Commercial*
-# *Date*, and is abbreviated as +commercial+ in the
-# Date class. The commercial week runs Monday (day-of-the-week
-# 1) to Sunday (day-of-the-week 7), in contrast to the civil
-# week which runs Sunday (day-of-the-week 0) to Saturday
-# (day-of-the-week 6). The first week of the commercial year
-# starts on the Monday on or before January 1, and the commercial
-# year itself starts on this Monday, not January 1.
-#
-# For scientific purposes, it is convenient to refer to a date
-# simply as a day count, counting from an arbitrary initial
-# day. The date first chosen for this was January 1, 4713 BCE.
-# A count of days from this date is the *Julian* *Day* *Number*
-# or *Julian* *Date*, which is abbreviated as +jd+ in the
-# Date class. This is in local time, and counts from midnight
-# on the initial day. The stricter usage is in UTC, and counts
-# from midday on the initial day. This is referred to in the
-# Date class as the *Astronomical* *Julian* *Day* *Number*, and
-# abbreviated as +ajd+. In the Date class, the Astronomical
-# Julian Day Number includes fractional days.
-#
-# Another absolute day count is the *Modified* *Julian* *Day*
-# *Number*, which takes November 17, 1858 as its initial day.
-# This is abbreviated as +mjd+ in the Date class. There
-# is also an *Astronomical* *Modified* *Julian* *Day* *Number*,
-# which is in UTC and includes fractional days. This is
-# abbreviated as +amjd+ in the Date class. Like the Modified
-# Julian Day Number (and unlike the Astronomical Julian
-# Day Number), it counts from midnight.
-#
-# Alternative calendars such as the Chinese Lunar Calendar,
-# the Islamic Calendar, or the French Revolutionary Calendar
-# are not supported by the Date class; nor are calendars that
-# are based on an Era different from the Common Era, such as
-# the Japanese Imperial Calendar or the Republic of China
-# Calendar.
-#
-# === Calendar Reform
-#
-# The standard civil year is 365 days long. However, the
-# solar year is fractionally longer than this. To account
-# for this, a *leap* *year* is occasionally inserted. This
-# is a year with 366 days, the extra day falling on February 29.
-# In the early days of the civil calendar, every fourth
-# year without exception was a leap year. This way of
-# reckoning leap years is the *Julian* *Calendar*.
-#
-# However, the solar year is marginally shorter than 365 1/4
-# days, and so the *Julian* *Calendar* gradually ran slow
-# over the centuries. To correct this, every 100th year
-# (but not every 400th year) was excluded as a leap year.
-# This way of reckoning leap years, which we use today, is
-# the *Gregorian* *Calendar*.
-#
-# The Gregorian Calendar was introduced at different times
-# in different regions. The day on which it was introduced
-# for a particular region is the *Day* *of* *Calendar*
-# *Reform* for that region. This is abbreviated as +sg+
-# (for Start of Gregorian calendar) in the Date class.
-#
-# Two such days are of particular
-# significance. The first is October 15, 1582, which was
-# the Day of Calendar Reform for Italy and most Catholic
-# countries. The second is September 14, 1752, which was
-# the Day of Calendar Reform for England and its colonies
-# (including what is now the United States). These two
-# dates are available as the constants Date::ITALY and
-# Date::ENGLAND, respectively. (By comparison, Germany and
-# Holland, less Catholic than Italy but less stubborn than
-# England, changed over in 1698; Sweden in 1753; Russia not
-# till 1918, after the Revolution; and Greece in 1923. Many
-# Orthodox churches still use the Julian Calendar. A complete
-# list of Days of Calendar Reform can be found at
-# http://www.polysyllabic.com/GregConv.html.)
-#
-# Switching from the Julian to the Gregorian calendar
-# involved skipping a number of days to make up for the
-# accumulated lag, and the later the switch was (or is)
-# done, the more days need to be skipped. So in 1582 in Italy,
-# 4th October was followed by 15th October, skipping 10 days; in 1752
-# in England, 2nd September was followed by 14th September, skipping
-# 11 days; and if I decided to switch from Julian to Gregorian
-# Calendar this midnight, I would go from 27th July 2003 (Julian)
-# today to 10th August 2003 (Gregorian) tomorrow, skipping
-# 13 days. The Date class is aware of this gap, and a supposed
-# date that would fall in the middle of it is regarded as invalid.
-#
-# The Day of Calendar Reform is relevant to all date representations
-# involving years. It is not relevant to the Julian Day Numbers,
-# except for converting between them and year-based representations.
-#
-# In the Date and DateTime classes, the Day of Calendar Reform or
-# +sg+ can be specified a number of ways. First, it can be as
-# the Julian Day Number of the Day of Calendar Reform. Second,
-# it can be using the constants Date::ITALY or Date::ENGLAND; these
-# are in fact the Julian Day Numbers of the Day of Calendar Reform
-# of the respective regions. Third, it can be as the constant
-# Date::JULIAN, which means to always use the Julian Calendar.
-# Finally, it can be as the constant Date::GREGORIAN, which means
-# to always use the Gregorian Calendar.
-#
-# Note: in the Julian Calendar, New Years Day was March 25. The
-# Date class does not follow this convention.
-#
-# === Time Zones
-#
-# DateTime objects support a simple representation
-# of time zones. Time zones are represented as an offset
-# from UTC, as a fraction of a day. This offset is the
-# how much local time is later (or earlier) than UTC.
-# UTC offset 0 is centred on England (also known as GMT).
-# As you travel east, the offset increases until you
-# reach the dateline in the middle of the Pacific Ocean;
-# as you travel west, the offset decreases. This offset
-# is abbreviated as +of+ in the Date class.
-#
-# This simple representation of time zones does not take
-# into account the common practice of Daylight Savings
-# Time or Summer Time.
-#
-# Most DateTime methods return the date and the
-# time in local time. The two exceptions are
-# #ajd() and #amjd(), which return the date and time
-# in UTC time, including fractional days.
-#
-# The Date class does not support time zone offsets, in that
-# there is no way to create a Date object with a time zone.
-# However, methods of the Date class when used by a
-# DateTime instance will use the time zone offset of this
-# instance.
-#
-# == Examples of use
-#
-# === Print out the date of every Sunday between two dates.
-#
-# def print_sundays(d1, d2)
-# d1 +=1 while (d1.wday != 0)
-# d1.step(d2, 7) do |date|
-# puts "#{Date::MONTHNAMES[date.mon]} #{date.day}"
-# end
-# end
-#
-# print_sundays(Date::civil(2003, 4, 8), Date::civil(2003, 5, 23))
-#
-# === Calculate how many seconds to go till midnight on New Year's Day.
-#
-# def secs_to_new_year(now = DateTime::now())
-# new_year = DateTime.new(now.year + 1, 1, 1)
-# dif = new_year - now
-# hours, mins, secs, ignore_fractions = Date::day_fraction_to_time(dif)
-# return hours * 60 * 60 + mins * 60 + secs
-# end
-#
-# puts secs_to_new_year()
-
-require 'date/format'
-
-# Class representing a date.
-#
-# See the documentation to the file date.rb for an overview.
-#
-# Internally, the date is represented as an Astronomical
-# Julian Day Number, +ajd+. The Day of Calendar Reform, +sg+, is
-# also stored, for conversions to other date formats. (There
-# is also an +of+ field for a time zone offset, but this
-# is only for the use of the DateTime subclass.)
-#
-# A new Date object is created using one of the object creation
-# class methods named after the corresponding date format, and the
-# arguments appropriate to that date format; for instance,
-# Date::civil() (aliased to Date::new()) with year, month,
-# and day-of-month, or Date::ordinal() with year and day-of-year.
-# All of these object creation class methods also take the
-# Day of Calendar Reform as an optional argument.
-#
-# Date objects are immutable once created.
-#
-# Once a Date has been created, date values
-# can be retrieved for the different date formats supported
-# using instance methods. For instance, #mon() gives the
-# Civil month, #cwday() gives the Commercial day of the week,
-# and #yday() gives the Ordinal day of the year. Date values
-# can be retrieved in any format, regardless of what format
-# was used to create the Date instance.
-#
-# The Date class includes the Comparable module, allowing
-# date objects to be compared and sorted, ranges of dates
-# to be created, and so forth.
-class Date
-
- include Comparable
-
- # Full month names, in English. Months count from 1 to 12; a
- # month's numerical representation indexed into this array
- # gives the name of that month (hence the first element is nil).
- MONTHNAMES = [nil] + %w(January February March April May June July
- August September October November December)
-
- # Full names of days of the week, in English. Days of the week
- # count from 0 to 6 (except in the commercial week); a day's numerical
- # representation indexed into this array gives the name of that day.
- DAYNAMES = %w(Sunday Monday Tuesday Wednesday Thursday Friday Saturday)
-
- # Abbreviated month names, in English.
- ABBR_MONTHNAMES = [nil] + %w(Jan Feb Mar Apr May Jun
- Jul Aug Sep Oct Nov Dec)
-
- # Abbreviated day names, in English.
- ABBR_DAYNAMES = %w(Sun Mon Tue Wed Thu Fri Sat)
-
- [MONTHNAMES, DAYNAMES, ABBR_MONTHNAMES, ABBR_DAYNAMES].each do |xs|
- xs.each{|x| x.freeze unless x.nil?}.freeze
- end
-
- class Infinity < Numeric # :nodoc:
-
- include Comparable
-
- def initialize(d=1) @d = d <=> 0 end
-
- def d() @d end
-
- protected :d
-
- def zero? () false end
- def finite? () false end
- def infinite? () d.nonzero? end
- def nan? () d.zero? end
-
- def abs() self.class.new end
-
- def -@ () self.class.new(-d) end
- def +@ () self.class.new(+d) end
-
- def <=> (other)
- case other
- when Infinity; return d <=> other.d
- when Numeric; return d
- else
- begin
- l, r = other.coerce(self)
- return l <=> r
- rescue NoMethodError
- end
- end
- nil
- end
-
- def coerce(other)
- case other
- when Numeric; return -d, d
- else
- super
- end
- end
-
- end
-
- # The Julian Day Number of the Day of Calendar Reform for Italy
- # and the Catholic countries.
- ITALY = 2299161 # 1582-10-15
-
- # The Julian Day Number of the Day of Calendar Reform for England
- # and her Colonies.
- ENGLAND = 2361222 # 1752-09-14
-
- # A constant used to indicate that a Date should always use the
- # Julian calendar.
- JULIAN = Infinity.new
-
- # A constant used to indicate that a Date should always use the
- # Gregorian calendar.
- GREGORIAN = -Infinity.new
-
- HALF_DAYS_IN_DAY = Rational(1, 2) # :nodoc:
- HOURS_IN_DAY = Rational(1, 24) # :nodoc:
- MINUTES_IN_DAY = Rational(1, 1440) # :nodoc:
- SECONDS_IN_DAY = Rational(1, 86400) # :nodoc:
- MILLISECONDS_IN_DAY = Rational(1, 86400*10**3) # :nodoc:
- NANOSECONDS_IN_DAY = Rational(1, 86400*10**9) # :nodoc:
- MILLISECONDS_IN_SECOND = Rational(1, 10**3) # :nodoc:
- NANOSECONDS_IN_SECOND = Rational(1, 10**9) # :nodoc:
-
- MJD_EPOCH_IN_AJD = Rational(4800001, 2) # 1858-11-17 # :nodoc:
- UNIX_EPOCH_IN_AJD = Rational(4881175, 2) # 1970-01-01 # :nodoc:
- MJD_EPOCH_IN_CJD = 2400001 # :nodoc:
- UNIX_EPOCH_IN_CJD = 2440588 # :nodoc:
- LD_EPOCH_IN_CJD = 2299160 # :nodoc:
-
- t = Module.new do
-
- private
-
- def find_fdoy(y, sg) # :nodoc:
- j = nil
- 1.upto(31) do |d|
- break if j = _valid_civil?(y, 1, d, sg)
- end
- j
- end
-
- def find_ldoy(y, sg) # :nodoc:
- j = nil
- 31.downto(1) do |d|
- break if j = _valid_civil?(y, 12, d, sg)
- end
- j
- end
-
- def find_fdom(y, m, sg) # :nodoc:
- j = nil
- 1.upto(31) do |d|
- break if j = _valid_civil?(y, m, d, sg)
- end
- j
- end
-
- def find_ldom(y, m, sg) # :nodoc:
- j = nil
- 31.downto(1) do |d|
- break if j = _valid_civil?(y, m, d, sg)
- end
- j
- end
-
- # Convert an Ordinal Date to a Julian Day Number.
- #
- # +y+ and +d+ are the year and day-of-year to convert.
- # +sg+ specifies the Day of Calendar Reform.
- #
- # Returns the corresponding Julian Day Number.
- def ordinal_to_jd(y, d, sg=GREGORIAN) # :nodoc:
- find_fdoy(y, sg) + d - 1
- end
-
- # Convert a Julian Day Number to an Ordinal Date.
- #
- # +jd+ is the Julian Day Number to convert.
- # +sg+ specifies the Day of Calendar Reform.
- #
- # Returns the corresponding Ordinal Date as
- # [year, day_of_year]
- def jd_to_ordinal(jd, sg=GREGORIAN) # :nodoc:
- y = jd_to_civil(jd, sg)[0]
- j = find_fdoy(y, sg)
- doy = jd - j + 1
- return y, doy
- end
-
- # Convert a Civil Date to a Julian Day Number.
- # +y+, +m+, and +d+ are the year, month, and day of the
- # month. +sg+ specifies the Day of Calendar Reform.
- #
- # Returns the corresponding Julian Day Number.
- def civil_to_jd(y, m, d, sg=GREGORIAN) # :nodoc:
- if m <= 2
- y -= 1
- m += 12
- end
- a = (y / 100.0).floor
- b = 2 - a + (a / 4.0).floor
- jd = (365.25 * (y + 4716)).floor +
- (30.6001 * (m + 1)).floor +
- d + b - 1524
- if jd < sg
- jd -= b
- end
- jd
- end
-
- # Convert a Julian Day Number to a Civil Date. +jd+ is
- # the Julian Day Number. +sg+ specifies the Day of
- # Calendar Reform.
- #
- # Returns the corresponding [year, month, day_of_month]
- # as a three-element array.
- def jd_to_civil(jd, sg=GREGORIAN) # :nodoc:
- if jd < sg
- a = jd
- else
- x = ((jd - 1867216.25) / 36524.25).floor
- a = jd + 1 + x - (x / 4.0).floor
- end
- b = a + 1524
- c = ((b - 122.1) / 365.25).floor
- d = (365.25 * c).floor
- e = ((b - d) / 30.6001).floor
- dom = b - d - (30.6001 * e).floor
- if e <= 13
- m = e - 1
- y = c - 4716
- else
- m = e - 13
- y = c - 4715
- end
- return y, m, dom
- end
-
- # Convert a Commercial Date to a Julian Day Number.
- #
- # +y+, +w+, and +d+ are the (commercial) year, week of the year,
- # and day of the week of the Commercial Date to convert.
- # +sg+ specifies the Day of Calendar Reform.
- def commercial_to_jd(y, w, d, sg=GREGORIAN) # :nodoc:
- j = find_fdoy(y, sg) + 3
- (j - (((j - 1) + 1) % 7)) +
- 7 * (w - 1) +
- (d - 1)
- end
-
- # Convert a Julian Day Number to a Commercial Date
- #
- # +jd+ is the Julian Day Number to convert.
- # +sg+ specifies the Day of Calendar Reform.
- #
- # Returns the corresponding Commercial Date as
- # [commercial_year, week_of_year, day_of_week]
- def jd_to_commercial(jd, sg=GREGORIAN) # :nodoc:
- a = jd_to_civil(jd - 3, sg)[0]
- y = if jd >= commercial_to_jd(a + 1, 1, 1, sg) then a + 1 else a end
- w = 1 + ((jd - commercial_to_jd(y, 1, 1, sg)) / 7).floor
- d = (jd + 1) % 7
- d = 7 if d == 0
- return y, w, d
- end
-
- def weeknum_to_jd(y, w, d, f=0, sg=GREGORIAN) # :nodoc:
- a = find_fdoy(y, sg) + 6
- (a - ((a - f) + 1) % 7 - 7) + 7 * w + d
- end
-
- def jd_to_weeknum(jd, f=0, sg=GREGORIAN) # :nodoc:
- y, m, d = jd_to_civil(jd, sg)
- a = find_fdoy(y, sg) + 6
- w, d = (jd - (a - ((a - f) + 1) % 7) + 7).divmod(7)
- return y, w, d
- end
-
- def nth_kday_to_jd(y, m, n, k, sg=GREGORIAN) # :nodoc:
- j = if n > 0
- find_fdom(y, m, sg) - 1
- else
- find_ldom(y, m, sg) + 7
- end
- (j - (((j - k) + 1) % 7)) + 7 * n
- end
-
- def jd_to_nth_kday(jd, sg=GREGORIAN) # :nodoc:
- y, m, d = jd_to_civil(jd, sg)
- j = find_fdom(y, m, sg)
- return y, m, ((jd - j) / 7).floor + 1, jd_to_wday(jd)
- end
-
- # Convert an Astronomical Julian Day Number to a (civil) Julian
- # Day Number.
- #
- # +ajd+ is the Astronomical Julian Day Number to convert.
- # +of+ is the offset from UTC as a fraction of a day (defaults to 0).
- #
- # Returns the (civil) Julian Day Number as [day_number,
- # fraction] where +fraction+ is always 1/2.
- def ajd_to_jd(ajd, of=0) (ajd + of + HALF_DAYS_IN_DAY).divmod(1) end # :nodoc:
-
- # Convert a (civil) Julian Day Number to an Astronomical Julian
- # Day Number.
- #
- # +jd+ is the Julian Day Number to convert, and +fr+ is a
- # fractional day.
- # +of+ is the offset from UTC as a fraction of a day (defaults to 0).
- #
- # Returns the Astronomical Julian Day Number as a single
- # numeric value.
- def jd_to_ajd(jd, fr, of=0) jd + fr - of - HALF_DAYS_IN_DAY end # :nodoc:
-
- # Convert a fractional day +fr+ to [hours, minutes, seconds,
- # fraction_of_a_second]
- def day_fraction_to_time(fr) # :nodoc:
- ss, fr = fr.divmod(SECONDS_IN_DAY) # 4p
- h, ss = ss.divmod(3600)
- min, s = ss.divmod(60)
- return h, min, s, fr * 86400
- end
-
- # Convert an +h+ hour, +min+ minutes, +s+ seconds period
- # to a fractional day.
- begin
- Rational(Rational(1, 2), 2) # a challenge
-
- def time_to_day_fraction(h, min, s)
- Rational(h * 3600 + min * 60 + s, 86400) # 4p
- end
- rescue
- def time_to_day_fraction(h, min, s)
- if Integer === h && Integer === min && Integer === s
- Rational(h * 3600 + min * 60 + s, 86400) # 4p
- else
- (h * 3600 + min * 60 + s).to_r/86400 # 4p
- end
- end
- end
-
- # Convert an Astronomical Modified Julian Day Number to an
- # Astronomical Julian Day Number.
- def amjd_to_ajd(amjd) amjd + MJD_EPOCH_IN_AJD end # :nodoc:
-
- # Convert an Astronomical Julian Day Number to an
- # Astronomical Modified Julian Day Number.
- def ajd_to_amjd(ajd) ajd - MJD_EPOCH_IN_AJD end # :nodoc:
-
- # Convert a Modified Julian Day Number to a Julian
- # Day Number.
- def mjd_to_jd(mjd) mjd + MJD_EPOCH_IN_CJD end # :nodoc:
-
- # Convert a Julian Day Number to a Modified Julian Day
- # Number.
- def jd_to_mjd(jd) jd - MJD_EPOCH_IN_CJD end # :nodoc:
-
- # Convert a count of the number of days since the adoption
- # of the Gregorian Calendar (in Italy) to a Julian Day Number.
- def ld_to_jd(ld) ld + LD_EPOCH_IN_CJD end # :nodoc:
-
- # Convert a Julian Day Number to the number of days since
- # the adoption of the Gregorian Calendar (in Italy).
- def jd_to_ld(jd) jd - LD_EPOCH_IN_CJD end # :nodoc:
-
- # Convert a Julian Day Number to the day of the week.
- #
- # Sunday is day-of-week 0; Saturday is day-of-week 6.
- def jd_to_wday(jd) (jd + 1) % 7 end # :nodoc:
-
- # Is +jd+ a valid Julian Day Number?
- #
- # If it is, returns it. In fact, any value is treated as a valid
- # Julian Day Number.
- def _valid_jd? (jd, sg=GREGORIAN) jd end # :nodoc:
-
- # Do the year +y+ and day-of-year +d+ make a valid Ordinal Date?
- # Returns the corresponding Julian Day Number if they do, or
- # nil if they don't.
- #
- # +d+ can be a negative number, in which case it counts backwards
- # from the end of the year (-1 being the last day of the year).
- # No year wraparound is performed, however, so valid values of
- # +d+ are -365 .. -1, 1 .. 365 on a non-leap-year,
- # -366 .. -1, 1 .. 366 on a leap year.
- # A date falling in the period skipped in the Day of Calendar Reform
- # adjustment is not valid.
- #
- # +sg+ specifies the Day of Calendar Reform.
- def _valid_ordinal? (y, d, sg=GREGORIAN) # :nodoc:
- if d < 0
- j = find_ldoy(y, sg)
- ny, nd = jd_to_ordinal(j + d + 1, sg)
- return unless ny == y
- d = nd
- end
- jd = ordinal_to_jd(y, d, sg)
- return unless [y, d] == jd_to_ordinal(jd, sg)
- jd
- end
-
- # Do year +y+, month +m+, and day-of-month +d+ make a
- # valid Civil Date? Returns the corresponding Julian
- # Day Number if they do, nil if they don't.
- #
- # +m+ and +d+ can be negative, in which case they count
- # backwards from the end of the year and the end of the
- # month respectively. No wraparound is performed, however,
- # and invalid values cause an ArgumentError to be raised.
- # A date falling in the period skipped in the Day of Calendar
- # Reform adjustment is not valid.
- #
- # +sg+ specifies the Day of Calendar Reform.
- def _valid_civil? (y, m, d, sg=GREGORIAN) # :nodoc:
- if m < 0
- m += 13
- end
- if d < 0
- j = find_ldom(y, m, sg)
- ny, nm, nd = jd_to_civil(j + d + 1, sg)
- return unless [ny, nm] == [y, m]
- d = nd
- end
- jd = civil_to_jd(y, m, d, sg)
- return unless [y, m, d] == jd_to_civil(jd, sg)
- jd
- end
-
- # Do year +y+, week-of-year +w+, and day-of-week +d+ make a
- # valid Commercial Date? Returns the corresponding Julian
- # Day Number if they do, nil if they don't.
- #
- # Monday is day-of-week 1; Sunday is day-of-week 7.
- #
- # +w+ and +d+ can be negative, in which case they count
- # backwards from the end of the year and the end of the
- # week respectively. No wraparound is performed, however,
- # and invalid values cause an ArgumentError to be raised.
- # A date falling in the period skipped in the Day of Calendar
- # Reform adjustment is not valid.
- #
- # +sg+ specifies the Day of Calendar Reform.
- def _valid_commercial? (y, w, d, sg=GREGORIAN) # :nodoc:
- if d < 0
- d += 8
- end
- if w < 0
- ny, nw, nd =
- jd_to_commercial(commercial_to_jd(y + 1, 1, 1, sg) + w * 7, sg)
- return unless ny == y
- w = nw
- end
- jd = commercial_to_jd(y, w, d, sg)
- return unless [y, w, d] == jd_to_commercial(jd, sg)
- jd
- end
-
- def _valid_weeknum? (y, w, d, f, sg=GREGORIAN) # :nodoc:
- if d < 0
- d += 7
- end
- if w < 0
- ny, nw, nd, nf =
- jd_to_weeknum(weeknum_to_jd(y + 1, 1, f, f, sg) + w * 7, f, sg)
- return unless ny == y
- w = nw
- end
- jd = weeknum_to_jd(y, w, d, f, sg)
- return unless [y, w, d] == jd_to_weeknum(jd, f, sg)
- jd
- end
-
- def _valid_nth_kday? (y, m, n, k, sg=GREGORIAN) # :nodoc:
- if k < 0
- k += 7
- end
- if n < 0
- ny, nm = (y * 12 + m).divmod(12)
- nm, = (nm + 1) .divmod(1)
- ny, nm, nn, nk =
- jd_to_nth_kday(nth_kday_to_jd(ny, nm, 1, k, sg) + n * 7, sg)
- return unless [ny, nm] == [y, m]
- n = nn
- end
- jd = nth_kday_to_jd(y, m, n, k, sg)
- return unless [y, m, n, k] == jd_to_nth_kday(jd, sg)
- jd
- end
-
- # Do hour +h+, minute +min+, and second +s+ constitute a valid time?
- #
- # If they do, returns their value as a fraction of a day. If not,
- # returns nil.
- #
- # The 24-hour clock is used. Negative values of +h+, +min+, and
- # +sec+ are treating as counting backwards from the end of the
- # next larger unit (e.g. a +min+ of -2 is treated as 58). No
- # wraparound is performed.
- def _valid_time? (h, min, s) # :nodoc:
- h += 24 if h < 0
- min += 60 if min < 0
- s += 60 if s < 0
- return unless ((0...24) === h &&
- (0...60) === min &&
- (0...60) === s) ||
- (24 == h &&
- 0 == min &&
- 0 == s)
- time_to_day_fraction(h, min, s)
- end
-
- end
-
- extend t
- include t
-
- # Is a year a leap year in the Julian calendar?
- #
- # All years divisible by 4 are leap years in the Julian calendar.
- def self.julian_leap? (y) y % 4 == 0 end
-
- # Is a year a leap year in the Gregorian calendar?
- #
- # All years divisible by 4 are leap years in the Gregorian calendar,
- # except for years divisible by 100 and not by 400.
- def self.gregorian_leap? (y) y % 4 == 0 && y % 100 != 0 || y % 400 == 0 end
-
- class << self; alias_method :leap?, :gregorian_leap? end
- class << self; alias_method :new!, :new end
-
- def self.valid_jd? (jd, sg=ITALY)
- !!_valid_jd?(jd, sg)
- end
-
- def self.valid_ordinal? (y, d, sg=ITALY)
- !!_valid_ordinal?(y, d, sg)
- end
-
- def self.valid_civil? (y, m, d, sg=ITALY)
- !!_valid_civil?(y, m, d, sg)
- end
-
- class << self; alias_method :valid_date?, :valid_civil? end
-
- def self.valid_commercial? (y, w, d, sg=ITALY)
- !!_valid_commercial?(y, w, d, sg)
- end
-
- def self.valid_weeknum? (y, w, d, f, sg=ITALY) # :nodoc:
- !!_valid_weeknum?(y, w, d, f, sg)
- end
-
- private_class_method :valid_weeknum?
-
- def self.valid_nth_kday? (y, m, n, k, sg=ITALY) # :nodoc:
- !!_valid_nth_kday?(y, m, n, k, sg)
- end
-
- private_class_method :valid_nth_kday?
-
- def self.valid_time? (h, min, s) # :nodoc:
- !!_valid_time?(h, min, s)
- end
-
- private_class_method :valid_time?
-
- # Create a new Date object from a Julian Day Number.
- #
- # +jd+ is the Julian Day Number; if not specified, it defaults to
- # 0.
- # +sg+ specifies the Day of Calendar Reform.
- def self.jd(jd=0, sg=ITALY)
- jd = _valid_jd?(jd, sg)
- new!(jd_to_ajd(jd, 0, 0), 0, sg)
- end
-
- # Create a new Date object from an Ordinal Date, specified
- # by year +y+ and day-of-year +d+. +d+ can be negative,
- # in which it counts backwards from the end of the year.
- # No year wraparound is performed, however. An invalid
- # value for +d+ results in an ArgumentError being raised.
- #
- # +y+ defaults to -4712, and +d+ to 1; this is Julian Day
- # Number day 0.
- #
- # +sg+ specifies the Day of Calendar Reform.
- def self.ordinal(y=-4712, d=1, sg=ITALY)
- unless jd = _valid_ordinal?(y, d, sg)
- raise ArgumentError, 'invalid date'
- end
- new!(jd_to_ajd(jd, 0, 0), 0, sg)
- end
-
- # Create a new Date object for the Civil Date specified by
- # year +y+, month +m+, and day-of-month +d+.
- #
- # +m+ and +d+ can be negative, in which case they count
- # backwards from the end of the year and the end of the
- # month respectively. No wraparound is performed, however,
- # and invalid values cause an ArgumentError to be raised.
- # can be negative
- #
- # +y+ defaults to -4712, +m+ to 1, and +d+ to 1; this is
- # Julian Day Number day 0.
- #
- # +sg+ specifies the Day of Calendar Reform.
- def self.civil(y=-4712, m=1, d=1, sg=ITALY)
- unless jd = _valid_civil?(y, m, d, sg)
- raise ArgumentError, 'invalid date'
- end
- new!(jd_to_ajd(jd, 0, 0), 0, sg)
- end
-
- class << self; alias_method :new, :civil end
-
- # Create a new Date object for the Commercial Date specified by
- # year +y+, week-of-year +w+, and day-of-week +d+.
- #
- # Monday is day-of-week 1; Sunday is day-of-week 7.
- #
- # +w+ and +d+ can be negative, in which case they count
- # backwards from the end of the year and the end of the
- # week respectively. No wraparound is performed, however,
- # and invalid values cause an ArgumentError to be raised.
- #
- # +y+ defaults to -4712, +w+ to 1, and +d+ to 1; this is
- # Julian Day Number day 0.
- #
- # +sg+ specifies the Day of Calendar Reform.
- def self.commercial(y=-4712, w=1, d=1, sg=ITALY)
- unless jd = _valid_commercial?(y, w, d, sg)
- raise ArgumentError, 'invalid date'
- end
- new!(jd_to_ajd(jd, 0, 0), 0, sg)
- end
-
- def self.weeknum(y=-4712, w=0, d=1, f=0, sg=ITALY)
- unless jd = _valid_weeknum?(y, w, d, f, sg)
- raise ArgumentError, 'invalid date'
- end
- new!(jd_to_ajd(jd, 0, 0), 0, sg)
- end
-
- private_class_method :weeknum
-
- def self.nth_kday(y=-4712, m=1, n=1, k=1, sg=ITALY)
- unless jd = _valid_nth_kday?(y, m, n, k, sg)
- raise ArgumentError, 'invalid date'
- end
- new!(jd_to_ajd(jd, 0, 0), 0, sg)
- end
-
- private_class_method :nth_kday
-
- def self.rewrite_frags(elem) # :nodoc:
- elem ||= {}
- if seconds = elem[:seconds]
- d, fr = seconds.divmod(86400)
- h, fr = fr.divmod(3600)
- min, fr = fr.divmod(60)
- s, fr = fr.divmod(1)
- elem[:jd] = UNIX_EPOCH_IN_CJD + d
- elem[:hour] = h
- elem[:min] = min
- elem[:sec] = s
- elem[:sec_fraction] = fr
- elem.delete(:seconds)
- elem.delete(:offset)
- end
- elem
- end
-
- private_class_method :rewrite_frags
-
- def self.complete_frags(elem) # :nodoc:
- i = 0
- g = [[:time, [:hour, :min, :sec]],
- [nil, [:jd]],
- [:ordinal, [:year, :yday, :hour, :min, :sec]],
- [:civil, [:year, :mon, :mday, :hour, :min, :sec]],
- [:commercial, [:cwyear, :cweek, :cwday, :hour, :min, :sec]],
- [:wday, [:wday, :hour, :min, :sec]],
- [:wnum0, [:year, :wnum0, :wday, :hour, :min, :sec]],
- [:wnum1, [:year, :wnum1, :wday, :hour, :min, :sec]],
- [nil, [:cwyear, :cweek, :wday, :hour, :min, :sec]],
- [nil, [:year, :wnum0, :cwday, :hour, :min, :sec]],
- [nil, [:year, :wnum1, :cwday, :hour, :min, :sec]]].
- collect{|k, a| e = elem.values_at(*a).compact; [k, a, e]}.
- select{|k, a, e| e.size > 0}.
- sort_by{|k, a, e| [e.size, i -= 1]}.last
-
- d = nil
-
- if g && g[0] && (g[1].size - g[2].size) != 0
- d ||= Date.today
-
- case g[0]
- when :ordinal
- elem[:year] ||= d.year
- elem[:yday] ||= 1
- when :civil
- g[1].each do |e|
- break if elem[e]
- elem[e] = d.__send__(e)
- end
- elem[:mon] ||= 1
- elem[:mday] ||= 1
- when :commercial
- g[1].each do |e|
- break if elem[e]
- elem[e] = d.__send__(e)
- end
- elem[:cweek] ||= 1
- elem[:cwday] ||= 1
- when :wday
- elem[:jd] ||= (d - d.wday + elem[:wday]).jd
- when :wnum0
- g[1].each do |e|
- break if elem[e]
- elem[e] = d.__send__(e)
- end
- elem[:wnum0] ||= 0
- elem[:wday] ||= 0
- when :wnum1
- g[1].each do |e|
- break if elem[e]
- elem[e] = d.__send__(e)
- end
- elem[:wnum1] ||= 0
- elem[:wday] ||= 0
- end
- end
-
- if g && g[0] == :time
- if self <= DateTime
- d ||= Date.today
- elem[:jd] ||= d.jd
- end
- end
-
- elem[:hour] ||= 0
- elem[:min] ||= 0
- elem[:sec] ||= 0
- elem[:sec] = [elem[:sec], 59].min
-
- elem
- end
-
- private_class_method :complete_frags
-
- def self.valid_date_frags?(elem, sg) # :nodoc:
- catch :jd do
- a = elem.values_at(:jd)
- if a.all?
- if jd = _valid_jd?(*(a << sg))
- throw :jd, jd
- end
- end
-
- a = elem.values_at(:year, :yday)
- if a.all?
- if jd = _valid_ordinal?(*(a << sg))
- throw :jd, jd
- end
- end
-
- a = elem.values_at(:year, :mon, :mday)
- if a.all?
- if jd = _valid_civil?(*(a << sg))
- throw :jd, jd
- end
- end
-
- a = elem.values_at(:cwyear, :cweek, :cwday)
- if a[2].nil? && elem[:wday]
- a[2] = elem[:wday].nonzero? || 7
- end
- if a.all?
- if jd = _valid_commercial?(*(a << sg))
- throw :jd, jd
- end
- end
-
- a = elem.values_at(:year, :wnum0, :wday)
- if a[2].nil? && elem[:cwday]
- a[2] = elem[:cwday] % 7
- end
- if a.all?
- if jd = _valid_weeknum?(*(a << 0 << sg))
- throw :jd, jd
- end
- end
-
- a = elem.values_at(:year, :wnum1, :wday)
- if a[2]
- a[2] = (a[2] - 1) % 7
- end
- if a[2].nil? && elem[:cwday]
- a[2] = (elem[:cwday] - 1) % 7
- end
- if a.all?
- if jd = _valid_weeknum?(*(a << 1 << sg))
- throw :jd, jd
- end
- end
- end
- end
-
- private_class_method :valid_date_frags?
-
- def self.valid_time_frags? (elem) # :nodoc:
- h, min, s = elem.values_at(:hour, :min, :sec)
- _valid_time?(h, min, s)
- end
-
- private_class_method :valid_time_frags?
-
- def self.new_by_frags(elem, sg) # :nodoc:
- elem = rewrite_frags(elem)
- elem = complete_frags(elem)
- unless jd = valid_date_frags?(elem, sg)
- raise ArgumentError, 'invalid date'
- end
- new!(jd_to_ajd(jd, 0, 0), 0, sg)
- end
-
- private_class_method :new_by_frags
-
- # Create a new Date object by parsing from a String
- # according to a specified format.
- #
- # +str+ is a String holding a date representation.
- # +fmt+ is the format that the date is in. See
- # date/format.rb for details on supported formats.
- #
- # The default +str+ is '-4712-01-01', and the default
- # +fmt+ is '%F', which means Year-Month-Day_of_Month.
- # This gives Julian Day Number day 0.
- #
- # +sg+ specifies the Day of Calendar Reform.
- #
- # An ArgumentError will be raised if +str+ cannot be
- # parsed.
- def self.strptime(str='-4712-01-01', fmt='%F', sg=ITALY)
- elem = _strptime(str, fmt)
- new_by_frags(elem, sg)
- end
-
- # Create a new Date object by parsing from a String,
- # without specifying the format.
- #
- # +str+ is a String holding a date representation.
- # +comp+ specifies whether to interpret 2-digit years
- # as 19XX (>= 69) or 20XX (< 69); the default is not to.
- # The method will attempt to parse a date from the String
- # using various heuristics; see #_parse in date/format.rb
- # for more details. If parsing fails, an ArgumentError
- # will be raised.
- #
- # The default +str+ is '-4712-01-01'; this is Julian
- # Day Number day 0.
- #
- # +sg+ specifies the Day of Calendar Reform.
- def self.parse(str='-4712-01-01', comp=true, sg=ITALY)
- elem = _parse(str, comp)
- new_by_frags(elem, sg)
- end
-
- def self.iso8601(str='-4712-01-01', sg=ITALY) # :nodoc:
- elem = _iso8601(str)
- new_by_frags(elem, sg)
- end
-
- def self.rfc3339(str='-4712-01-01T00:00:00+00:00', sg=ITALY) # :nodoc:
- elem = _rfc3339(str)
- new_by_frags(elem, sg)
- end
-
- def self.xmlschema(str='-4712-01-01', sg=ITALY) # :nodoc:
- elem = _xmlschema(str)
- new_by_frags(elem, sg)
- end
-
- def self.rfc2822(str='Mon, 1 Jan -4712 00:00:00 +0000', sg=ITALY) # :nodoc:
- elem = _rfc2822(str)
- new_by_frags(elem, sg)
- end
-
- class << self; alias_method :rfc822, :rfc2822 end
-
- def self.httpdate(str='Mon, 01 Jan -4712 00:00:00 GMT', sg=ITALY) # :nodoc:
- elem = _httpdate(str)
- new_by_frags(elem, sg)
- end
-
- def self.jisx0301(str='-4712-01-01', sg=ITALY) # :nodoc:
- elem = _jisx0301(str)
- new_by_frags(elem, sg)
- end
-
- class << self
-
- def once(*ids) # :nodoc: -- restricted
- for id in ids
- module_eval <<-"end;"
- alias_method :__#{id.object_id}__, :#{id.to_s}
- private :__#{id.object_id}__
- def #{id.to_s}(*args)
- @__ca__[#{id.object_id}] ||= __#{id.object_id}__(*args)
- end
- end;
- end
- end
-
- private :once
-
- end
-
- # *NOTE* this is the documentation for the method new!(). If
- # you are reading this as the documentation for new(), that is
- # because rdoc doesn't fully support the aliasing of the
- # initialize() method.
- # new() is in
- # fact an alias for #civil(): read the documentation for that
- # method instead.
- #
- # Create a new Date object.
- #
- # +ajd+ is the Astronomical Julian Day Number.
- # +of+ is the offset from UTC as a fraction of a day.
- # Both default to 0.
- #
- # +sg+ specifies the Day of Calendar Reform to use for this
- # Date object.
- #
- # Using one of the factory methods such as Date::civil is
- # generally easier and safer.
- def initialize(ajd=0, of=0, sg=ITALY)
- @ajd, @of, @sg = ajd, of, sg
- @__ca__ = {}
- end
-
- # Get the date as an Astronomical Julian Day Number.
- def ajd() @ajd end
-
- # Get the date as an Astronomical Modified Julian Day Number.
- def amjd() ajd_to_amjd(@ajd) end
-
- once :amjd
-
- # Get the date as a Julian Day Number.
- def jd() ajd_to_jd(@ajd, @of)[0] end
-
- # Get any fractional day part of the date.
- def day_fraction() ajd_to_jd(@ajd, @of)[1] end
-
- # Get the date as a Modified Julian Day Number.
- def mjd() jd_to_mjd(jd) end
-
- # Get the date as the number of days since the Day of Calendar
- # Reform (in Italy and the Catholic countries).
- def ld() jd_to_ld(jd) end
-
- once :jd, :day_fraction, :mjd, :ld
-
- # Get the date as a Civil Date, [year, month, day_of_month]
- def civil() jd_to_civil(jd, @sg) end # :nodoc:
-
- # Get the date as an Ordinal Date, [year, day_of_year]
- def ordinal() jd_to_ordinal(jd, @sg) end # :nodoc:
-
- # Get the date as a Commercial Date, [year, week_of_year, day_of_week]
- def commercial() jd_to_commercial(jd, @sg) end # :nodoc:
-
- def weeknum0() jd_to_weeknum(jd, 0, @sg) end # :nodoc:
- def weeknum1() jd_to_weeknum(jd, 1, @sg) end # :nodoc:
-
- once :civil, :ordinal, :commercial, :weeknum0, :weeknum1
- private :civil, :ordinal, :commercial, :weeknum0, :weeknum1
-
- # Get the year of this date.
- def year() civil[0] end
-
- # Get the day-of-the-year of this date.
- #
- # January 1 is day-of-the-year 1
- def yday() ordinal[1] end
-
- # Get the month of this date.
- #
- # January is month 1.
- def mon() civil[1] end
-
- # Get the day-of-the-month of this date.
- def mday() civil[2] end
-
- alias_method :month, :mon
- alias_method :day, :mday
-
- def wnum0() weeknum0[1] end # :nodoc:
- def wnum1() weeknum1[1] end # :nodoc:
-
- private :wnum0, :wnum1
-
- # Get the time of this date as [hours, minutes, seconds,
- # fraction_of_a_second]
- def time() day_fraction_to_time(day_fraction) end # :nodoc:
-
- once :time
- private :time
-
- # Get the hour of this date.
- def hour() time[0] end
-
- # Get the minute of this date.
- def min() time[1] end
-
- # Get the second of this date.
- def sec() time[2] end
-
- # Get the fraction-of-a-second of this date.
- def sec_fraction() time[3] end
-
- alias_method :minute, :min
- alias_method :second, :sec
- alias_method :second_fraction, :sec_fraction
-
- private :hour, :min, :sec, :sec_fraction,
- :minute, :second, :second_fraction
-
- def zone() strftime('%:z') end
-
- private :zone
-
- # Get the commercial year of this date. See *Commercial* *Date*
- # in the introduction for how this differs from the normal year.
- def cwyear() commercial[0] end
-
- # Get the commercial week of the year of this date.
- def cweek() commercial[1] end
-
- # Get the commercial day of the week of this date. Monday is
- # commercial day-of-week 1; Sunday is commercial day-of-week 7.
- def cwday() commercial[2] end
-
- # Get the week day of this date. Sunday is day-of-week 0;
- # Saturday is day-of-week 6.
- def wday() jd_to_wday(jd) end
-
- once :wday
-
-=begin
- MONTHNAMES.each_with_index do |n, i|
- if n
- define_method(n.downcase + '?'){mon == i}
- end
- end
-=end
-
- DAYNAMES.each_with_index do |n, i|
- define_method(n.downcase + '?'){wday == i}
- end
-
- def nth_kday? (n, k)
- k == wday && jd === nth_kday_to_jd(year, mon, n, k, start)
- end
-
- private :nth_kday?
-
- # Is the current date old-style (Julian Calendar)?
- def julian? () jd < @sg end
-
- # Is the current date new-style (Gregorian Calendar)?
- def gregorian? () !julian? end
-
- once :julian?, :gregorian?
-
- def fix_style # :nodoc:
- if julian?
- then self.class::JULIAN
- else self.class::GREGORIAN end
- end
-
- private :fix_style
-
- # Is this a leap year?
- def leap?
- jd_to_civil(civil_to_jd(year, 3, 1, fix_style) - 1,
- fix_style)[-1] == 29
- end
-
- once :leap?
-
- # When is the Day of Calendar Reform for this Date object?
- def start() @sg end
-
- # Create a copy of this Date object using a new Day of Calendar Reform.
- def new_start(sg=self.class::ITALY) self.class.new!(@ajd, @of, sg) end
-
- # Create a copy of this Date object that uses the Italian/Catholic
- # Day of Calendar Reform.
- def italy() new_start(self.class::ITALY) end
-
- # Create a copy of this Date object that uses the English/Colonial
- # Day of Calendar Reform.
- def england() new_start(self.class::ENGLAND) end
-
- # Create a copy of this Date object that always uses the Julian
- # Calendar.
- def julian() new_start(self.class::JULIAN) end
-
- # Create a copy of this Date object that always uses the Gregorian
- # Calendar.
- def gregorian() new_start(self.class::GREGORIAN) end
-
- def offset() @of end
-
- def new_offset(of=0)
- if String === of
- of = Rational(zone_to_diff(of) || 0, 86400)
- end
- self.class.new!(@ajd, of, @sg)
- end
-
- private :offset, :new_offset
-
- # Return a new Date object that is +n+ days later than the
- # current one.
- #
- # +n+ may be a negative value, in which case the new Date
- # is earlier than the current one; however, #-() might be
- # more intuitive.
- #
- # If +n+ is not a Numeric, a TypeError will be thrown. In
- # particular, two Dates cannot be added to each other.
- def + (n)
- case n
- when Numeric; return self.class.new!(@ajd + n, @of, @sg)
- end
- raise TypeError, 'expected numeric'
- end
-
- # If +x+ is a Numeric value, create a new Date object that is
- # +x+ days earlier than the current one.
- #
- # If +x+ is a Date, return the number of days between the
- # two dates; or, more precisely, how many days later the current
- # date is than +x+.
- #
- # If +x+ is neither Numeric nor a Date, a TypeError is raised.
- def - (x)
- case x
- when Numeric; return self.class.new!(@ajd - x, @of, @sg)
- when Date; return @ajd - x.ajd
- end
- raise TypeError, 'expected numeric or date'
- end
-
- # Compare this date with another date.
- #
- # +other+ can also be a Numeric value, in which case it is
- # interpreted as an Astronomical Julian Day Number.
- #
- # Comparison is by Astronomical Julian Day Number, including
- # fractional days. This means that both the time and the
- # timezone offset are taken into account when comparing
- # two DateTime instances. When comparing a DateTime instance
- # with a Date instance, the time of the latter will be
- # considered as falling on midnight UTC.
- def <=> (other)
- case other
- when Numeric; return @ajd <=> other
- when Date; return @ajd <=> other.ajd
- end
- nil
- end
-
- # The relationship operator for Date.
- #
- # Compares dates by Julian Day Number. When comparing
- # two DateTime instances, or a DateTime with a Date,
- # the instances will be regarded as equivalent if they
- # fall on the same date in local time.
- def === (other)
- case other
- when Numeric; return jd == other
- when Date; return jd == other.jd
- end
- false
- end
-
- def next_day(n=1) self + n end
- def prev_day(n=1) self - n end
-
- # Return a new Date one day after this one.
- def next() next_day end
-
- alias_method :succ, :next
-
- # Return a new Date object that is +n+ months later than
- # the current one.
- #
- # If the day-of-the-month of the current Date is greater
- # than the last day of the target month, the day-of-the-month
- # of the returned Date will be the last day of the target month.
- def >> (n)
- y, m = (year * 12 + (mon - 1) + n).divmod(12)
- m, = (m + 1) .divmod(1)
- d = mday
- d -= 1 until jd2 = _valid_civil?(y, m, d, @sg)
- self + (jd2 - jd)
- end
-
- # Return a new Date object that is +n+ months earlier than
- # the current one.
- #
- # If the day-of-the-month of the current Date is greater
- # than the last day of the target month, the day-of-the-month
- # of the returned Date will be the last day of the target month.
- def << (n) self >> -n end
-
- def next_month(n=1) self >> n end
- def prev_month(n=1) self << n end
-
- def next_year(n=1) self >> n * 12 end
- def prev_year(n=1) self << n * 12 end
-
- require 'enumerator'
-
- # Step the current date forward +step+ days at a
- # time (or backward, if +step+ is negative) until
- # we reach +limit+ (inclusive), yielding the resultant
- # date at each step.
- def step(limit, step=1) # :yield: date
-=begin
- if step.zero?
- raise ArgumentError, "step can't be 0"
- end
-=end
- unless block_given?
- return to_enum(:step, limit, step)
- end
- da = self
- op = %w(- <= >=)[step <=> 0]
- while da.__send__(op, limit)
- yield da
- da += step
- end
- self
- end
-
- # Step forward one day at a time until we reach +max+
- # (inclusive), yielding each date as we go.
- def upto(max, &block) # :yield: date
- step(max, +1, &block)
- end
-
- # Step backward one day at a time until we reach +min+
- # (inclusive), yielding each date as we go.
- def downto(min, &block) # :yield: date
- step(min, -1, &block)
- end
-
- # Is this Date equal to +other+?
- #
- # +other+ must both be a Date object, and represent the same date.
- def eql? (other) Date === other && self == other end
-
- # Calculate a hash value for this date.
- def hash() @ajd.hash end
-
- # Return internal object state as a programmer-readable string.
- def inspect
- format('#<%s: %s (%s,%s,%s)>', self.class, to_s, @ajd, @of, @sg)
- end
-
- # Return the date as a human-readable string.
- #
- # The format used is YYYY-MM-DD.
- def to_s() format('%.4d-%02d-%02d', year, mon, mday) end # 4p
-
- # Dump to Marshal format.
- def marshal_dump() [@ajd, @of, @sg] end
-
- # Load from Marshal format.
- def marshal_load(a)
- @ajd, @of, @sg, = a
- @__ca__ = {}
- end
-
-end
-
-# Class representing a date and time.
-#
-# See the documentation to the file date.rb for an overview.
-#
-# DateTime objects are immutable once created.
-#
-# == Other methods.
-#
-# The following methods are defined in Date, but declared private
-# there. They are made public in DateTime. They are documented
-# here.
-#
-# === hour()
-#
-# Get the hour-of-the-day of the time. This is given
-# using the 24-hour clock, counting from midnight. The first
-# hour after midnight is hour 0; the last hour of the day is
-# hour 23.
-#
-# === min()
-#
-# Get the minute-of-the-hour of the time.
-#
-# === sec()
-#
-# Get the second-of-the-minute of the time.
-#
-# === sec_fraction()
-#
-# Get the fraction of a second of the time. This is returned as
-# a +Rational+.
-#
-# === zone()
-#
-# Get the time zone as a String. This is representation of the
-# time offset such as "+1000", not the true time-zone name.
-#
-# === offset()
-#
-# Get the time zone offset as a fraction of a day. This is returned
-# as a +Rational+.
-#
-# === new_offset(of=0)
-#
-# Create a new DateTime object, identical to the current one, except
-# with a new time zone offset of +of+. +of+ is the new offset from
-# UTC as a fraction of a day.
-#
-class DateTime < Date
-
- # Create a new DateTime object corresponding to the specified
- # Julian Day Number +jd+ and hour +h+, minute +min+, second +s+.
- #
- # The 24-hour clock is used. Negative values of +h+, +min+, and
- # +sec+ are treating as counting backwards from the end of the
- # next larger unit (e.g. a +min+ of -2 is treated as 58). No
- # wraparound is performed. If an invalid time portion is specified,
- # an ArgumentError is raised.
- #
- # +of+ is the offset from UTC as a fraction of a day (defaults to 0).
- # +sg+ specifies the Day of Calendar Reform.
- #
- # All day/time values default to 0.
- def self.jd(jd=0, h=0, min=0, s=0, of=0, sg=ITALY)
- unless (jd = _valid_jd?(jd, sg)) &&
- (fr = _valid_time?(h, min, s))
- raise ArgumentError, 'invalid date'
- end
- if String === of
- of = Rational(zone_to_diff(of) || 0, 86400)
- end
- new!(jd_to_ajd(jd, fr, of), of, sg)
- end
-
- # Create a new DateTime object corresponding to the specified
- # Ordinal Date and hour +h+, minute +min+, second +s+.
- #
- # The 24-hour clock is used. Negative values of +h+, +min+, and
- # +sec+ are treating as counting backwards from the end of the
- # next larger unit (e.g. a +min+ of -2 is treated as 58). No
- # wraparound is performed. If an invalid time portion is specified,
- # an ArgumentError is raised.
- #
- # +of+ is the offset from UTC as a fraction of a day (defaults to 0).
- # +sg+ specifies the Day of Calendar Reform.
- #
- # +y+ defaults to -4712, and +d+ to 1; this is Julian Day Number
- # day 0. The time values default to 0.
- def self.ordinal(y=-4712, d=1, h=0, min=0, s=0, of=0, sg=ITALY)
- unless (jd = _valid_ordinal?(y, d, sg)) &&
- (fr = _valid_time?(h, min, s))
- raise ArgumentError, 'invalid date'
- end
- if String === of
- of = Rational(zone_to_diff(of) || 0, 86400)
- end
- new!(jd_to_ajd(jd, fr, of), of, sg)
- end
-
- # Create a new DateTime object corresponding to the specified
- # Civil Date and hour +h+, minute +min+, second +s+.
- #
- # The 24-hour clock is used. Negative values of +h+, +min+, and
- # +sec+ are treating as counting backwards from the end of the
- # next larger unit (e.g. a +min+ of -2 is treated as 58). No
- # wraparound is performed. If an invalid time portion is specified,
- # an ArgumentError is raised.
- #
- # +of+ is the offset from UTC as a fraction of a day (defaults to 0).
- # +sg+ specifies the Day of Calendar Reform.
- #
- # +y+ defaults to -4712, +m+ to 1, and +d+ to 1; this is Julian Day
- # Number day 0. The time values default to 0.
- def self.civil(y=-4712, m=1, d=1, h=0, min=0, s=0, of=0, sg=ITALY)
- unless (jd = _valid_civil?(y, m, d, sg)) &&
- (fr = _valid_time?(h, min, s))
- raise ArgumentError, 'invalid date'
- end
- if String === of
- of = Rational(zone_to_diff(of) || 0, 86400)
- end
- new!(jd_to_ajd(jd, fr, of), of, sg)
- end
-
- class << self; alias_method :new, :civil end
-
- # Create a new DateTime object corresponding to the specified
- # Commercial Date and hour +h+, minute +min+, second +s+.
- #
- # The 24-hour clock is used. Negative values of +h+, +min+, and
- # +sec+ are treating as counting backwards from the end of the
- # next larger unit (e.g. a +min+ of -2 is treated as 58). No
- # wraparound is performed. If an invalid time portion is specified,
- # an ArgumentError is raised.
- #
- # +of+ is the offset from UTC as a fraction of a day (defaults to 0).
- # +sg+ specifies the Day of Calendar Reform.
- #
- # +y+ defaults to -4712, +w+ to 1, and +d+ to 1; this is
- # Julian Day Number day 0.
- # The time values default to 0.
- def self.commercial(y=-4712, w=1, d=1, h=0, min=0, s=0, of=0, sg=ITALY)
- unless (jd = _valid_commercial?(y, w, d, sg)) &&
- (fr = _valid_time?(h, min, s))
- raise ArgumentError, 'invalid date'
- end
- if String === of
- of = Rational(zone_to_diff(of) || 0, 86400)
- end
- new!(jd_to_ajd(jd, fr, of), of, sg)
- end
-
- def self.weeknum(y=-4712, w=0, d=1, f=0, h=0, min=0, s=0, of=0, sg=ITALY) # :nodoc:
- unless (jd = _valid_weeknum?(y, w, d, f, sg)) &&
- (fr = _valid_time?(h, min, s))
- raise ArgumentError, 'invalid date'
- end
- if String === of
- of = Rational(zone_to_diff(of) || 0, 86400)
- end
- new!(jd_to_ajd(jd, fr, of), of, sg)
- end
-
- private_class_method :weeknum
-
- def self.nth_kday(y=-4712, m=1, n=1, k=1, h=0, min=0, s=0, of=0, sg=ITALY) # :nodoc:
- unless (jd = _valid_nth_kday?(y, m, n, k, sg)) &&
- (fr = _valid_time?(h, min, s))
- raise ArgumentError, 'invalid date'
- end
- if String === of
- of = Rational(zone_to_diff(of) || 0, 86400)
- end
- new!(jd_to_ajd(jd, fr, of), of, sg)
- end
-
- private_class_method :nth_kday
-
- def self.new_by_frags(elem, sg) # :nodoc:
- elem = rewrite_frags(elem)
- elem = complete_frags(elem)
- unless (jd = valid_date_frags?(elem, sg)) &&
- (fr = valid_time_frags?(elem))
- raise ArgumentError, 'invalid date'
- end
- fr += (elem[:sec_fraction] || 0) / 86400
- of = Rational(elem[:offset] || 0, 86400)
- new!(jd_to_ajd(jd, fr, of), of, sg)
- end
-
- private_class_method :new_by_frags
-
- # Create a new DateTime object by parsing from a String
- # according to a specified format.
- #
- # +str+ is a String holding a date-time representation.
- # +fmt+ is the format that the date-time is in. See
- # date/format.rb for details on supported formats.
- #
- # The default +str+ is '-4712-01-01T00:00:00+00:00', and the default
- # +fmt+ is '%FT%T%z'. This gives midnight on Julian Day Number day 0.
- #
- # +sg+ specifies the Day of Calendar Reform.
- #
- # An ArgumentError will be raised if +str+ cannot be
- # parsed.
- def self.strptime(str='-4712-01-01T00:00:00+00:00', fmt='%FT%T%z', sg=ITALY)
- elem = _strptime(str, fmt)
- new_by_frags(elem, sg)
- end
-
- # Create a new DateTime object by parsing from a String,
- # without specifying the format.
- #
- # +str+ is a String holding a date-time representation.
- # +comp+ specifies whether to interpret 2-digit years
- # as 19XX (>= 69) or 20XX (< 69); the default is not to.
- # The method will attempt to parse a date-time from the String
- # using various heuristics; see #_parse in date/format.rb
- # for more details. If parsing fails, an ArgumentError
- # will be raised.
- #
- # The default +str+ is '-4712-01-01T00:00:00+00:00'; this is Julian
- # Day Number day 0.
- #
- # +sg+ specifies the Day of Calendar Reform.
- def self.parse(str='-4712-01-01T00:00:00+00:00', comp=true, sg=ITALY)
- elem = _parse(str, comp)
- new_by_frags(elem, sg)
- end
-
- def self.iso8601(str='-4712-01-01T00:00:00+00:00', sg=ITALY) # :nodoc:
- elem = _iso8601(str)
- new_by_frags(elem, sg)
- end
-
- def self.rfc3339(str='-4712-01-01T00:00:00+00:00', sg=ITALY) # :nodoc:
- elem = _rfc3339(str)
- new_by_frags(elem, sg)
- end
-
- def self.xmlschema(str='-4712-01-01T00:00:00+00:00', sg=ITALY) # :nodoc:
- elem = _xmlschema(str)
- new_by_frags(elem, sg)
- end
-
- def self.rfc2822(str='Mon, 1 Jan -4712 00:00:00 +0000', sg=ITALY) # :nodoc:
- elem = _rfc2822(str)
- new_by_frags(elem, sg)
- end
-
- class << self; alias_method :rfc822, :rfc2822 end
-
- def self.httpdate(str='Mon, 01 Jan -4712 00:00:00 GMT', sg=ITALY) # :nodoc:
- elem = _httpdate(str)
- new_by_frags(elem, sg)
- end
-
- def self.jisx0301(str='-4712-01-01T00:00:00+00:00', sg=ITALY) # :nodoc:
- elem = _jisx0301(str)
- new_by_frags(elem, sg)
- end
-
- public :hour, :min, :sec, :sec_fraction, :zone, :offset, :new_offset,
- :minute, :second, :second_fraction
-
- def to_s # 4p
- format('%.4d-%02d-%02dT%02d:%02d:%02d%s',
- year, mon, mday, hour, min, sec, zone)
- end
-
-end
-
-class Time
-
- def to_time() getlocal end
-
- def to_date
- jd = Date.__send__(:civil_to_jd, year, mon, mday, Date::ITALY)
- Date.new!(Date.__send__(:jd_to_ajd, jd, 0, 0), 0, Date::ITALY)
- end
-
- def to_datetime
- jd = DateTime.__send__(:civil_to_jd, year, mon, mday, DateTime::ITALY)
- fr = DateTime.__send__(:time_to_day_fraction, hour, min, [sec, 59].min) +
- Rational(subsec, 86400)
- of = Rational(utc_offset, 86400)
- DateTime.new!(DateTime.__send__(:jd_to_ajd, jd, fr, of),
- of, DateTime::ITALY)
- end
-
-end
-
-class Date
-
- def to_time() Time.local(year, mon, mday) end
- def to_date() self end
- def to_datetime() DateTime.new!(jd_to_ajd(jd, 0, 0), @of, @sg) end
-
- # Create a new Date object representing today.
- #
- # +sg+ specifies the Day of Calendar Reform.
- def self.today(sg=ITALY)
- t = Time.now
- jd = civil_to_jd(t.year, t.mon, t.mday, sg)
- new!(jd_to_ajd(jd, 0, 0), 0, sg)
- end
-
- # Create a new DateTime object representing the current time.
- #
- # +sg+ specifies the Day of Calendar Reform.
- def self.now(sg=ITALY)
- t = Time.now
- jd = civil_to_jd(t.year, t.mon, t.mday, sg)
- fr = time_to_day_fraction(t.hour, t.min, [t.sec, 59].min) +
- Rational(t.subsec, 86400)
- of = Rational(t.utc_offset, 86400)
- new!(jd_to_ajd(jd, fr, of), of, sg)
- end
-
- private_class_method :now
-
-end
-
-class DateTime < Date
-
- def to_time
- d = new_offset(0)
- d.instance_eval do
- Time.utc(year, mon, mday, hour, min, sec +
- sec_fraction)
- end.
- getlocal
- end
-
- def to_date() Date.new!(jd_to_ajd(jd, 0, 0), 0, @sg) end
- def to_datetime() self end
-
- private_class_method :today
- public_class_method :now
-
-end
diff --git a/lib/date/format.rb b/lib/date/format.rb
deleted file mode 100644
index a83b29802e..0000000000
--- a/lib/date/format.rb
+++ /dev/null
@@ -1,1313 +0,0 @@
-# format.rb: Written by Tadayoshi Funaba 1999-2008
-# $Id: format.rb,v 2.43 2008-01-17 20:16:31+09 tadf Exp $
-
-class Date
-
- module Format # :nodoc:
-
- MONTHS = {
- 'january' => 1, 'february' => 2, 'march' => 3, 'april' => 4,
- 'may' => 5, 'june' => 6, 'july' => 7, 'august' => 8,
- 'september'=> 9, 'october' =>10, 'november' =>11, 'december' =>12
- }
-
- DAYS = {
- 'sunday' => 0, 'monday' => 1, 'tuesday' => 2, 'wednesday'=> 3,
- 'thursday' => 4, 'friday' => 5, 'saturday' => 6
- }
-
- ABBR_MONTHS = {
- 'jan' => 1, 'feb' => 2, 'mar' => 3, 'apr' => 4,
- 'may' => 5, 'jun' => 6, 'jul' => 7, 'aug' => 8,
- 'sep' => 9, 'oct' =>10, 'nov' =>11, 'dec' =>12
- }
-
- ABBR_DAYS = {
- 'sun' => 0, 'mon' => 1, 'tue' => 2, 'wed' => 3,
- 'thu' => 4, 'fri' => 5, 'sat' => 6
- }
-
- ZONES = {
- 'ut' => 0*3600, 'gmt' => 0*3600, 'est' => -5*3600, 'edt' => -4*3600,
- 'cst' => -6*3600, 'cdt' => -5*3600, 'mst' => -7*3600, 'mdt' => -6*3600,
- 'pst' => -8*3600, 'pdt' => -7*3600,
- 'a' => 1*3600, 'b' => 2*3600, 'c' => 3*3600, 'd' => 4*3600,
- 'e' => 5*3600, 'f' => 6*3600, 'g' => 7*3600, 'h' => 8*3600,
- 'i' => 9*3600, 'k' => 10*3600, 'l' => 11*3600, 'm' => 12*3600,
- 'n' => -1*3600, 'o' => -2*3600, 'p' => -3*3600, 'q' => -4*3600,
- 'r' => -5*3600, 's' => -6*3600, 't' => -7*3600, 'u' => -8*3600,
- 'v' => -9*3600, 'w' =>-10*3600, 'x' =>-11*3600, 'y' =>-12*3600,
- 'z' => 0*3600,
-
- 'utc' => 0*3600, 'wet' => 0*3600,
- 'at' => -2*3600, 'brst'=> -2*3600, 'ndt' => -(2*3600+1800),
- 'art' => -3*3600, 'adt' => -3*3600, 'brt' => -3*3600, 'clst'=> -3*3600,
- 'nst' => -(3*3600+1800),
- 'ast' => -4*3600, 'clt' => -4*3600,
- 'akdt'=> -8*3600, 'ydt' => -8*3600,
- 'akst'=> -9*3600, 'hadt'=> -9*3600, 'hdt' => -9*3600, 'yst' => -9*3600,
- 'ahst'=>-10*3600, 'cat' =>-10*3600, 'hast'=>-10*3600, 'hst' =>-10*3600,
- 'nt' =>-11*3600,
- 'idlw'=>-12*3600,
- 'bst' => 1*3600, 'cet' => 1*3600, 'fwt' => 1*3600, 'met' => 1*3600,
- 'mewt'=> 1*3600, 'mez' => 1*3600, 'swt' => 1*3600, 'wat' => 1*3600,
- 'west'=> 1*3600,
- 'cest'=> 2*3600, 'eet' => 2*3600, 'fst' => 2*3600, 'mest'=> 2*3600,
- 'mesz'=> 2*3600, 'sast'=> 2*3600, 'sst' => 2*3600,
- 'bt' => 3*3600, 'eat' => 3*3600, 'eest'=> 3*3600, 'msk' => 3*3600,
- 'msd' => 4*3600, 'zp4' => 4*3600,
- 'zp5' => 5*3600, 'ist' => (5*3600+1800),
- 'zp6' => 6*3600,
- 'wast'=> 7*3600,
- 'cct' => 8*3600, 'sgt' => 8*3600, 'wadt'=> 8*3600,
- 'jst' => 9*3600, 'kst' => 9*3600,
- 'east'=> 10*3600, 'gst' => 10*3600,
- 'eadt'=> 11*3600,
- 'idle'=> 12*3600, 'nzst'=> 12*3600, 'nzt' => 12*3600,
- 'nzdt'=> 13*3600,
-
- 'afghanistan' => 16200, 'alaskan' => -32400,
- 'arab' => 10800, 'arabian' => 14400,
- 'arabic' => 10800, 'atlantic' => -14400,
- 'aus central' => 34200, 'aus eastern' => 36000,
- 'azores' => -3600, 'canada central' => -21600,
- 'cape verde' => -3600, 'caucasus' => 14400,
- 'cen. australia' => 34200, 'central america' => -21600,
- 'central asia' => 21600, 'central europe' => 3600,
- 'central european' => 3600, 'central pacific' => 39600,
- 'central' => -21600, 'china' => 28800,
- 'dateline' => -43200, 'e. africa' => 10800,
- 'e. australia' => 36000, 'e. europe' => 7200,
- 'e. south america' => -10800, 'eastern' => -18000,
- 'egypt' => 7200, 'ekaterinburg' => 18000,
- 'fiji' => 43200, 'fle' => 7200,
- 'greenland' => -10800, 'greenwich' => 0,
- 'gtb' => 7200, 'hawaiian' => -36000,
- 'india' => 19800, 'iran' => 12600,
- 'jerusalem' => 7200, 'korea' => 32400,
- 'mexico' => -21600, 'mid-atlantic' => -7200,
- 'mountain' => -25200, 'myanmar' => 23400,
- 'n. central asia' => 21600, 'nepal' => 20700,
- 'new zealand' => 43200, 'newfoundland' => -12600,
- 'north asia east' => 28800, 'north asia' => 25200,
- 'pacific sa' => -14400, 'pacific' => -28800,
- 'romance' => 3600, 'russian' => 10800,
- 'sa eastern' => -10800, 'sa pacific' => -18000,
- 'sa western' => -14400, 'samoa' => -39600,
- 'se asia' => 25200, 'malay peninsula' => 28800,
- 'south africa' => 7200, 'sri lanka' => 21600,
- 'taipei' => 28800, 'tasmania' => 36000,
- 'tokyo' => 32400, 'tonga' => 46800,
- 'us eastern' => -18000, 'us mountain' => -25200,
- 'vladivostok' => 36000, 'w. australia' => 28800,
- 'w. central africa' => 3600, 'w. europe' => 3600,
- 'west asia' => 18000, 'west pacific' => 36000,
- 'yakutsk' => 32400
- }
-
- [MONTHS, DAYS, ABBR_MONTHS, ABBR_DAYS, ZONES].each do |x|
- x.freeze
- end
-
- class Bag # :nodoc:
-
- def initialize
- @elem = {}
- end
-
- def method_missing(t, *args, &block)
- t = t.to_s
- set = t.chomp!('=')
- t = t.intern
- if set
- @elem[t] = args[0]
- else
- @elem[t]
- end
- end
-
- def to_hash
- @elem.reject{|k, v| /\A_/ =~ k.to_s || v.nil?}
- end
-
- end
-
- end
-
- def emit(e, f) # :nodoc:
- case e
- when Numeric
- sign = %w(+ + -)[e <=> 0]
- e = e.abs
- end
-
- s = e.to_s
-
- if f[:s] && f[:p] == '0'
- f[:w] -= 1
- end
-
- if f[:s] && f[:p] == "\s"
- s[0,0] = sign
- end
-
- if f[:p] != '-'
- s = s.rjust(f[:w], f[:p])
- end
-
- if f[:s] && f[:p] != "\s"
- s[0,0] = sign
- end
-
- s = s.upcase if f[:u]
- s = s.downcase if f[:d]
- s
- end
-
- def emit_w(e, w, f) # :nodoc:
- f[:w] = [f[:w], w].compact.max
- emit(e, f)
- end
-
- def emit_n(e, w, f) # :nodoc:
- f[:p] ||= '0'
- emit_w(e, w, f)
- end
-
- def emit_sn(e, w, f) # :nodoc:
- if e < 0
- w += 1
- f[:s] = true
- end
- emit_n(e, w, f)
- end
-
- def emit_z(e, w, f) # :nodoc:
- w += 1
- f[:s] = true
- emit_n(e, w, f)
- end
-
- def emit_a(e, w, f) # :nodoc:
- f[:p] ||= "\s"
- emit_w(e, w, f)
- end
-
- def emit_ad(e, w, f) # :nodoc:
- if f[:x]
- f[:u] = true
- f[:d] = false
- end
- emit_a(e, w, f)
- end
-
- def emit_au(e, w, f) # :nodoc:
- if f[:x]
- f[:u] = false
- f[:d] = true
- end
- emit_a(e, w, f)
- end
-
- private :emit, :emit_w, :emit_n, :emit_sn, :emit_z,
- :emit_a, :emit_ad, :emit_au
-
- def strftime(fmt='%F')
- fmt.gsub(/%([-_0^#]+)?(\d+)?([EO]?(?::{1,3}z|.))/m) do
- f = {}
- m = $&
- s, w, c = $1, $2, $3
- if s
- s.scan(/./) do |k|
- case k
- when '-'; f[:p] = '-'
- when '_'; f[:p] = "\s"
- when '0'; f[:p] = '0'
- when '^'; f[:u] = true
- when '#'; f[:x] = true
- end
- end
- end
- if w
- f[:w] = w.to_i
- end
- case c
- when 'A'; emit_ad(DAYNAMES[wday], 0, f)
- when 'a'; emit_ad(ABBR_DAYNAMES[wday], 0, f)
- when 'B'; emit_ad(MONTHNAMES[mon], 0, f)
- when 'b'; emit_ad(ABBR_MONTHNAMES[mon], 0, f)
- when 'C', 'EC'; emit_sn((year / 100).floor, 2, f)
- when 'c', 'Ec'; emit_a(strftime('%a %b %e %H:%M:%S %Y'), 0, f)
- when 'D'; emit_a(strftime('%m/%d/%y'), 0, f)
- when 'd', 'Od'; emit_n(mday, 2, f)
- when 'e', 'Oe'; emit_a(mday, 2, f)
- when 'F'
- if m == '%F'
- format('%.4d-%02d-%02d', year, mon, mday) # 4p
- else
- emit_a(strftime('%Y-%m-%d'), 0, f)
- end
- when 'G'; emit_sn(cwyear, 4, f)
- when 'g'; emit_n(cwyear % 100, 2, f)
- when 'H', 'OH'; emit_n(hour, 2, f)
- when 'h'; emit_ad(strftime('%b'), 0, f)
- when 'I', 'OI'; emit_n((hour % 12).nonzero? || 12, 2, f)
- when 'j'; emit_n(yday, 3, f)
- when 'k'; emit_a(hour, 2, f)
- when 'L'
- f[:p] = nil
- w = f[:w] || 3
- u = 10**w
- emit_n((sec_fraction * u).floor, w, f)
- when 'l'; emit_a((hour % 12).nonzero? || 12, 2, f)
- when 'M', 'OM'; emit_n(min, 2, f)
- when 'm', 'Om'; emit_n(mon, 2, f)
- when 'N'
- f[:p] = nil
- w = f[:w] || 9
- u = 10**w
- emit_n((sec_fraction * u).floor, w, f)
- when 'n'; emit_a("\n", 0, f)
- when 'P'; emit_ad(strftime('%p').downcase, 0, f)
- when 'p'; emit_au(if hour < 12 then 'AM' else 'PM' end, 0, f)
- when 'Q'
- s = ((ajd - UNIX_EPOCH_IN_AJD) / MILLISECONDS_IN_DAY).round
- emit_sn(s, 1, f)
- when 'R'; emit_a(strftime('%H:%M'), 0, f)
- when 'r'; emit_a(strftime('%I:%M:%S %p'), 0, f)
- when 'S', 'OS'; emit_n(sec, 2, f)
- when 's'
- s = ((ajd - UNIX_EPOCH_IN_AJD) / SECONDS_IN_DAY).round
- emit_sn(s, 1, f)
- when 'T'
- if m == '%T'
- format('%02d:%02d:%02d', hour, min, sec) # 4p
- else
- emit_a(strftime('%H:%M:%S'), 0, f)
- end
- when 't'; emit_a("\t", 0, f)
- when 'U', 'W', 'OU', 'OW'
- emit_n(if c[-1,1] == 'U' then wnum0 else wnum1 end, 2, f)
- when 'u', 'Ou'; emit_n(cwday, 1, f)
- when 'V', 'OV'; emit_n(cweek, 2, f)
- when 'v'; emit_a(strftime('%e-%b-%Y'), 0, f)
- when 'w', 'Ow'; emit_n(wday, 1, f)
- when 'X', 'EX'; emit_a(strftime('%H:%M:%S'), 0, f)
- when 'x', 'Ex'; emit_a(strftime('%m/%d/%y'), 0, f)
- when 'Y', 'EY'; emit_sn(year, 4, f)
- when 'y', 'Ey', 'Oy'; emit_n(year % 100, 2, f)
- when 'Z'; emit_au(strftime('%:z'), 0, f)
- when /\A(:{0,3})z/
- t = $1.size
- sign = if offset < 0 then -1 else +1 end
- fr = offset.abs
- ss = fr.div(SECONDS_IN_DAY) # 4p
- hh, ss = ss.divmod(3600)
- mm, ss = ss.divmod(60)
- if t == 3
- if ss.nonzero? then t = 2
- elsif mm.nonzero? then t = 1
- else t = -1
- end
- end
- case t
- when -1
- tail = []
- sep = ''
- when 0
- f[:w] -= 2 if f[:w]
- tail = ['%02d' % mm]
- sep = ''
- when 1
- f[:w] -= 3 if f[:w]
- tail = ['%02d' % mm]
- sep = ':'
- when 2
- f[:w] -= 6 if f[:w]
- tail = ['%02d' % mm, '%02d' % ss]
- sep = ':'
- end
- ([emit_z(sign * hh, 2, f)] + tail).join(sep)
- when '%'; emit_a('%', 0, f)
- when '+'; emit_a(strftime('%a %b %e %H:%M:%S %Z %Y'), 0, f)
- else
- m
- end
- end
- end
-
-# alias_method :format, :strftime
-
- def asctime() strftime('%c') end
-
- alias_method :ctime, :asctime
-
- def iso8601() strftime('%F') end
-
- def rfc3339() iso8601 end
-
- def xmlschema() iso8601 end # :nodoc:
-
- def rfc2822() strftime('%a, %-d %b %Y %T %z') end
-
- alias_method :rfc822, :rfc2822
-
- def httpdate() new_offset(0).strftime('%a, %d %b %Y %T GMT') end # :nodoc:
-
- def jisx0301
- if jd < 2405160
- iso8601
- else
- case jd
- when 2405160...2419614
- g = 'M%02d' % (year - 1867)
- when 2419614...2424875
- g = 'T%02d' % (year - 1911)
- when 2424875...2447535
- g = 'S%02d' % (year - 1925)
- else
- g = 'H%02d' % (year - 1988)
- end
- g + strftime('.%m.%d')
- end
- end
-
-=begin
- def beat(n=0)
- i, f = (new_offset(HOURS_IN_DAY).day_fraction * 1000).divmod(1)
- ('@%03d' % i) +
- if n < 1
- ''
- else
- '.%0*d' % [n, (f / Rational(1, 10**n)).round]
- end
- end
-=end
-
- def self.num_pattern? (s) # :nodoc:
- /\A%[EO]?[CDdeFGgHIjkLlMmNQRrSsTUuVvWwXxYy\d]/ =~ s || /\A\d/ =~ s
- end
-
- private_class_method :num_pattern?
-
- def self._strptime_i(str, fmt, e) # :nodoc:
- fmt.scan(/%([EO]?(?::{1,3}z|.))|(.)/m) do |s, c|
- a = $&
- if s
- case s
- when 'A', 'a'
- return unless str.sub!(/\A(#{Format::DAYS.keys.join('|')})/io, '') ||
- str.sub!(/\A(#{Format::ABBR_DAYS.keys.join('|')})/io, '')
- val = Format::DAYS[$1.downcase] || Format::ABBR_DAYS[$1.downcase]
- return unless val
- e.wday = val
- when 'B', 'b', 'h'
- return unless str.sub!(/\A(#{Format::MONTHS.keys.join('|')})/io, '') ||
- str.sub!(/\A(#{Format::ABBR_MONTHS.keys.join('|')})/io, '')
- val = Format::MONTHS[$1.downcase] || Format::ABBR_MONTHS[$1.downcase]
- return unless val
- e.mon = val
- when 'C', 'EC'
- return unless str.sub!(if num_pattern?($')
- then /\A([-+]?\d{1,2})/
- else /\A([-+]?\d{1,})/
- end, '')
- val = $1.to_i
- e._cent = val
- when 'c', 'Ec'
- return unless _strptime_i(str, '%a %b %e %H:%M:%S %Y', e)
- when 'D'
- return unless _strptime_i(str, '%m/%d/%y', e)
- when 'd', 'e', 'Od', 'Oe'
- return unless str.sub!(/\A( \d|\d{1,2})/, '')
- val = $1.to_i
- return unless (1..31) === val
- e.mday = val
- when 'F'
- return unless _strptime_i(str, '%Y-%m-%d', e)
- when 'G'
- return unless str.sub!(if num_pattern?($')
- then /\A([-+]?\d{1,4})/
- else /\A([-+]?\d{1,})/
- end, '')
- val = $1.to_i
- e.cwyear = val
- when 'g'
- return unless str.sub!(/\A(\d{1,2})/, '')
- val = $1.to_i
- return unless (0..99) === val
- e.cwyear = val
- e._cent ||= if val >= 69 then 19 else 20 end
- when 'H', 'k', 'OH'
- return unless str.sub!(/\A( \d|\d{1,2})/, '')
- val = $1.to_i
- return unless (0..24) === val
- e.hour = val
- when 'I', 'l', 'OI'
- return unless str.sub!(/\A( \d|\d{1,2})/, '')
- val = $1.to_i
- return unless (1..12) === val
- e.hour = val
- when 'j'
- return unless str.sub!(/\A(\d{1,3})/, '')
- val = $1.to_i
- return unless (1..366) === val
- e.yday = val
- when 'L'
- return unless str.sub!(if num_pattern?($')
- then /\A([-+]?\d{1,3})/
- else /\A([-+]?\d{1,})/
- end, '')
-# val = Rational($1.to_i, 10**3)
- val = Rational($1.to_i, 10**$1.size)
- e.sec_fraction = val
- when 'M', 'OM'
- return unless str.sub!(/\A(\d{1,2})/, '')
- val = $1.to_i
- return unless (0..59) === val
- e.min = val
- when 'm', 'Om'
- return unless str.sub!(/\A(\d{1,2})/, '')
- val = $1.to_i
- return unless (1..12) === val
- e.mon = val
- when 'N'
- return unless str.sub!(if num_pattern?($')
- then /\A([-+]?\d{1,9})/
- else /\A([-+]?\d{1,})/
- end, '')
-# val = Rational($1.to_i, 10**9)
- val = Rational($1.to_i, 10**$1.size)
- e.sec_fraction = val
- when 'n', 't'
- return unless _strptime_i(str, "\s", e)
- when 'P', 'p'
- return unless str.sub!(/\A([ap])(?:m\b|\.m\.)/i, '')
- e._merid = if $1.downcase == 'a' then 0 else 12 end
- when 'Q'
- return unless str.sub!(/\A(-?\d{1,})/, '')
- val = Rational($1.to_i, 10**3)
- e.seconds = val
- when 'R'
- return unless _strptime_i(str, '%H:%M', e)
- when 'r'
- return unless _strptime_i(str, '%I:%M:%S %p', e)
- when 'S', 'OS'
- return unless str.sub!(/\A(\d{1,2})/, '')
- val = $1.to_i
- return unless (0..60) === val
- e.sec = val
- when 's'
- return unless str.sub!(/\A(-?\d{1,})/, '')
- val = $1.to_i
- e.seconds = val
- when 'T'
- return unless _strptime_i(str, '%H:%M:%S', e)
- when 'U', 'W', 'OU', 'OW'
- return unless str.sub!(/\A(\d{1,2})/, '')
- val = $1.to_i
- return unless (0..53) === val
- e.__send__(if s[-1,1] == 'U' then :wnum0= else :wnum1= end, val)
- when 'u', 'Ou'
- return unless str.sub!(/\A(\d{1})/, '')
- val = $1.to_i
- return unless (1..7) === val
- e.cwday = val
- when 'V', 'OV'
- return unless str.sub!(/\A(\d{1,2})/, '')
- val = $1.to_i
- return unless (1..53) === val
- e.cweek = val
- when 'v'
- return unless _strptime_i(str, '%e-%b-%Y', e)
- when 'w'
- return unless str.sub!(/\A(\d{1})/, '')
- val = $1.to_i
- return unless (0..6) === val
- e.wday = val
- when 'X', 'EX'
- return unless _strptime_i(str, '%H:%M:%S', e)
- when 'x', 'Ex'
- return unless _strptime_i(str, '%m/%d/%y', e)
- when 'Y', 'EY'
- return unless str.sub!(if num_pattern?($')
- then /\A([-+]?\d{1,4})/
- else /\A([-+]?\d{1,})/
- end, '')
- val = $1.to_i
- e.year = val
- when 'y', 'Ey', 'Oy'
- return unless str.sub!(/\A(\d{1,2})/, '')
- val = $1.to_i
- return unless (0..99) === val
- e.year = val
- e._cent ||= if val >= 69 then 19 else 20 end
- when 'Z', /\A:{0,3}z/
- return unless str.sub!(/\A((?:gmt|utc?)?[-+]\d+(?:[,.:]\d+(?::\d+)?)?
- |[[:alpha:].\s]+(?:standard|daylight)\s+time\b
- |[[:alpha:]]+(?:\s+dst)?\b
- )/ix, '')
- val = $1
- e.zone = val
- offset = zone_to_diff(val)
- e.offset = offset
- when '%'
- return unless str.sub!(/\A%/, '')
- when '+'
- return unless _strptime_i(str, '%a %b %e %H:%M:%S %Z %Y', e)
- else
- return unless str.sub!(Regexp.new('\\A' + Regexp.quote(a)), '')
- end
- else
- case c
- when /\A[\s\v]/
- str.sub!(/\A[\s\v]+/, '')
- else
- return unless str.sub!(Regexp.new('\\A' + Regexp.quote(a)), '')
- end
- end
- end
- end
-
- private_class_method :_strptime_i
-
- def self._strptime(str, fmt='%F')
- str = str.dup
- e = Format::Bag.new
- return unless _strptime_i(str, fmt, e)
-
- if e._cent
- if e.cwyear
- e.cwyear += e._cent * 100
- end
- if e.year
- e. year += e._cent * 100
- end
- end
-
- if e._merid
- if e.hour
- e.hour %= 12
- e.hour += e._merid
- end
- end
-
- unless str.empty?
- e.leftover = str
- end
-
- e.to_hash
- end
-
- def self.s3e(e, y, m, d, bc=false)
- unless String === m
- m = m.to_s
- end
-
- if y && m && !d
- y, m, d = d, y, m
- end
-
- if y == nil
- if d && d.size > 2
- y = d
- d = nil
- end
- if d && d[0,1] == "'"
- y = d
- d = nil
- end
- end
-
- if y
- y.scan(/(\d+)(.+)?/)
- if $2
- y, d = d, $1
- end
- end
-
- if m
- if m[0,1] == "'" || m.size > 2
- y, m, d = m, d, y # us -> be
- end
- end
-
- if d
- if d[0,1] == "'" || d.size > 2
- y, d = d, y
- end
- end
-
- if y
- y =~ /([-+])?(\d+)/
- if $1 || $2.size > 2
- c = false
- end
- iy = $&.to_i
- if bc
- iy = -iy + 1
- end
- e.year = iy
- end
-
- if m
- m =~ /\d+/
- e.mon = $&.to_i
- end
-
- if d
- d =~ /\d+/
- e.mday = $&.to_i
- end
-
- if c != nil
- e._comp = c
- end
-
- end
-
- private_class_method :s3e
-
- def self._parse_day(str, e) # :nodoc:
- if str.sub!(/\b(#{Format::ABBR_DAYS.keys.join('|')})[^-\d\s]*/io, ' ')
- e.wday = Format::ABBR_DAYS[$1.downcase]
- true
-=begin
- elsif str.sub!(/\b(?!\dth)(su|mo|tu|we|th|fr|sa)\b/i, ' ')
- e.wday = %w(su mo tu we th fr sa).index($1.downcase)
- true
-=end
- end
- end
-
- def self._parse_time(str, e) # :nodoc:
- if str.sub!(
- /(
- (?:
- \d+\s*:\s*\d+
- (?:
- \s*:\s*\d+(?:[,.]\d*)?
- )?
- |
- \d+\s*h(?:\s*\d+m?(?:\s*\d+s?)?)?
- )
- (?:
- \s*
- [ap](?:m\b|\.m\.)
- )?
- |
- \d+\s*[ap](?:m\b|\.m\.)
- )
- (?:
- \s*
- (
- (?:gmt|utc?)?[-+]\d+(?:[,.:]\d+(?::\d+)?)?
- |
- [[:alpha:].\s]+(?:standard|daylight)\stime\b
- |
- [[:alpha:]]+(?:\sdst)?\b
- )
- )?
- /ix,
- ' ')
-
- t = $1
- e.zone = $2 if $2
-
- t =~ /\A(\d+)h?
- (?:\s*:?\s*(\d+)m?
- (?:
- \s*:?\s*(\d+)(?:[,.](\d+))?s?
- )?
- )?
- (?:\s*([ap])(?:m\b|\.m\.))?/ix
-
- e.hour = $1.to_i
- e.min = $2.to_i if $2
- e.sec = $3.to_i if $3
- e.sec_fraction = Rational($4.to_i, 10**$4.size) if $4
-
- if $5
- e.hour %= 12
- if $5.downcase == 'p'
- e.hour += 12
- end
- end
- true
- end
- end
-
-=begin
- def self._parse_beat(str, e) # :nodoc:
- if str.sub!(/@\s*(\d+)(?:[,.](\d*))?/, ' ')
- beat = Rational($1.to_i)
- beat += Rational($2.to_i, 10**$2.size) if $2
- secs = Rational(beat, 1000)
- h, min, s, fr = self.day_fraction_to_time(secs)
- e.hour = h
- e.min = min
- e.sec = s
- e.sec_fraction = fr * 86400
- e.zone = '+01:00'
- true
- end
- end
-=end
-
- def self._parse_eu(str, e) # :nodoc:
- if str.sub!(
- /'?(\d+)[^-\d\s]*
- \s*
- (#{Format::ABBR_MONTHS.keys.join('|')})[^-\d\s']*
- (?:
- \s*
- (c(?:e|\.e\.)|b(?:ce|\.c\.e\.)|a(?:d|\.d\.)|b(?:c|\.c\.))?
- \s*
- ('?-?\d+(?:(?:st|nd|rd|th)\b)?)
- )?
- /iox,
- ' ') # '
- s3e(e, $4, Format::ABBR_MONTHS[$2.downcase], $1,
- $3 && $3[0,1].downcase == 'b')
- true
- end
- end
-
- def self._parse_us(str, e) # :nodoc:
- if str.sub!(
- /\b(#{Format::ABBR_MONTHS.keys.join('|')})[^-\d\s']*
- \s*
- ('?\d+)[^-\d\s']*
- (?:
- \s*
- (c(?:e|\.e\.)|b(?:ce|\.c\.e\.)|a(?:d|\.d\.)|b(?:c|\.c\.))?
- \s*
- ('?-?\d+)
- )?
- /iox,
- ' ') # '
- s3e(e, $4, Format::ABBR_MONTHS[$1.downcase], $2,
- $3 && $3[0,1].downcase == 'b')
- true
- end
- end
-
- def self._parse_iso(str, e) # :nodoc:
- if str.sub!(/('?[-+]?\d+)-(\d+)-('?-?\d+)/, ' ')
- s3e(e, $1, $2, $3)
- true
- end
- end
-
- def self._parse_iso2(str, e) # :nodoc:
- if str.sub!(/\b(\d{2}|\d{4})?-?w(\d{2})(?:-?(\d))?\b/i, ' ')
- e.cwyear = $1.to_i if $1
- e.cweek = $2.to_i
- e.cwday = $3.to_i if $3
- true
- elsif str.sub!(/-w-(\d)\b/i, ' ')
- e.cwday = $1.to_i
- true
- elsif str.sub!(/--(\d{2})?-(\d{2})\b/, ' ')
- e.mon = $1.to_i if $1
- e.mday = $2.to_i
- true
- elsif str.sub!(/--(\d{2})(\d{2})?\b/, ' ')
- e.mon = $1.to_i
- e.mday = $2.to_i if $2
- true
- elsif /[,.](\d{2}|\d{4})-\d{3}\b/ !~ str &&
- str.sub!(/\b(\d{2}|\d{4})-(\d{3})\b/, ' ')
- e.year = $1.to_i
- e.yday = $2.to_i
- true
- elsif /\d-\d{3}\b/ !~ str &&
- str.sub!(/\b-(\d{3})\b/, ' ')
- e.yday = $1.to_i
- true
- end
- end
-
- def self._parse_jis(str, e) # :nodoc:
- if str.sub!(/\b([mtsh])(\d+)\.(\d+)\.(\d+)/i, ' ')
- era = { 'm'=>1867,
- 't'=>1911,
- 's'=>1925,
- 'h'=>1988
- }[$1.downcase]
- e.year = $2.to_i + era
- e.mon = $3.to_i
- e.mday = $4.to_i
- true
- end
- end
-
- def self._parse_vms(str, e) # :nodoc:
- if str.sub!(/('?-?\d+)-(#{Format::ABBR_MONTHS.keys.join('|')})[^-]*
- -('?-?\d+)/iox, ' ')
- s3e(e, $3, Format::ABBR_MONTHS[$2.downcase], $1)
- true
- elsif str.sub!(/\b(#{Format::ABBR_MONTHS.keys.join('|')})[^-]*
- -('?-?\d+)(?:-('?-?\d+))?/iox, ' ')
- s3e(e, $3, Format::ABBR_MONTHS[$1.downcase], $2)
- true
- end
- end
-
- def self._parse_sla(str, e) # :nodoc:
- if str.sub!(%r|('?-?\d+)/\s*('?\d+)(?:\D\s*('?-?\d+))?|, ' ') # '
- s3e(e, $1, $2, $3)
- true
- end
- end
-
- def self._parse_dot(str, e) # :nodoc:
- if str.sub!(%r|('?-?\d+)\.\s*('?\d+)\.\s*('?-?\d+)|, ' ') # '
- s3e(e, $1, $2, $3)
- true
- end
- end
-
- def self._parse_year(str, e) # :nodoc:
- if str.sub!(/'(\d+)\b/, ' ')
- e.year = $1.to_i
- true
- end
- end
-
- def self._parse_mon(str, e) # :nodoc:
- if str.sub!(/\b(#{Format::ABBR_MONTHS.keys.join('|')})\S*/io, ' ')
- e.mon = Format::ABBR_MONTHS[$1.downcase]
- true
- end
- end
-
- def self._parse_mday(str, e) # :nodoc:
- if str.sub!(/(\d+)(st|nd|rd|th)\b/i, ' ')
- e.mday = $1.to_i
- true
- end
- end
-
- def self._parse_ddd(str, e) # :nodoc:
- if str.sub!(
- /([-+]?)(\d{2,14})
- (?:
- \s*
- t?
- \s*
- (\d{2,6})?(?:[,.](\d*))?
- )?
- (?:
- \s*
- (
- z\b
- |
- [-+]\d{1,4}\b
- |
- \[[-+]?\d[^\]]*\]
- )
- )?
- /ix,
- ' ')
- case $2.size
- when 2
- if $3.nil? && $4
- e.sec = $2[-2, 2].to_i
- else
- e.mday = $2[ 0, 2].to_i
- end
- when 4
- if $3.nil? && $4
- e.sec = $2[-2, 2].to_i
- e.min = $2[-4, 2].to_i
- else
- e.mon = $2[ 0, 2].to_i
- e.mday = $2[ 2, 2].to_i
- end
- when 6
- if $3.nil? && $4
- e.sec = $2[-2, 2].to_i
- e.min = $2[-4, 2].to_i
- e.hour = $2[-6, 2].to_i
- else
- e.year = ($1 + $2[ 0, 2]).to_i
- e.mon = $2[ 2, 2].to_i
- e.mday = $2[ 4, 2].to_i
- end
- when 8, 10, 12, 14
- if $3.nil? && $4
- e.sec = $2[-2, 2].to_i
- e.min = $2[-4, 2].to_i
- e.hour = $2[-6, 2].to_i
- e.mday = $2[-8, 2].to_i
- if $2.size >= 10
- e.mon = $2[-10, 2].to_i
- end
- if $2.size == 12
- e.year = ($1 + $2[-12, 2]).to_i
- end
- if $2.size == 14
- e.year = ($1 + $2[-14, 4]).to_i
- e._comp = false
- end
- else
- e.year = ($1 + $2[ 0, 4]).to_i
- e.mon = $2[ 4, 2].to_i
- e.mday = $2[ 6, 2].to_i
- e.hour = $2[ 8, 2].to_i if $2.size >= 10
- e.min = $2[10, 2].to_i if $2.size >= 12
- e.sec = $2[12, 2].to_i if $2.size >= 14
- e._comp = false
- end
- when 3
- if $3.nil? && $4
- e.sec = $2[-2, 2].to_i
- e.min = $2[-3, 1].to_i
- else
- e.yday = $2[ 0, 3].to_i
- end
- when 5
- if $3.nil? && $4
- e.sec = $2[-2, 2].to_i
- e.min = $2[-4, 2].to_i
- e.hour = $2[-5, 1].to_i
- else
- e.year = ($1 + $2[ 0, 2]).to_i
- e.yday = $2[ 2, 3].to_i
- end
- when 7
- if $3.nil? && $4
- e.sec = $2[-2, 2].to_i
- e.min = $2[-4, 2].to_i
- e.hour = $2[-6, 2].to_i
- e.mday = $2[-7, 1].to_i
- else
- e.year = ($1 + $2[ 0, 4]).to_i
- e.yday = $2[ 4, 3].to_i
- end
- end
- if $3
- if $4
- case $3.size
- when 2, 4, 6
- e.sec = $3[-2, 2].to_i
- e.min = $3[-4, 2].to_i if $3.size >= 4
- e.hour = $3[-6, 2].to_i if $3.size >= 6
- end
- else
- case $3.size
- when 2, 4, 6
- e.hour = $3[ 0, 2].to_i
- e.min = $3[ 2, 2].to_i if $3.size >= 4
- e.sec = $3[ 4, 2].to_i if $3.size >= 6
- end
- end
- end
- if $4
- e.sec_fraction = Rational($4.to_i, 10**$4.size)
- end
- if $5
- e.zone = $5
- if e.zone[0,1] == '['
- o, n, = e.zone[1..-2].split(':')
- e.zone = n || o
- if /\A\d/ =~ o
- o = format('+%s', o)
- end
- e.offset = zone_to_diff(o)
- end
- end
- true
- end
- end
-
- private_class_method :_parse_day, :_parse_time, # :_parse_beat,
- :_parse_eu, :_parse_us, :_parse_iso, :_parse_iso2,
- :_parse_jis, :_parse_vms, :_parse_sla, :_parse_dot,
- :_parse_year, :_parse_mon, :_parse_mday, :_parse_ddd
-
- def self._parse(str, comp=true)
- str = str.dup
-
- e = Format::Bag.new
-
- e._comp = comp
-
- str.gsub!(/[^-+',.\/:@[:alnum:]\[\]]+/, ' ')
-
- _parse_time(str, e) # || _parse_beat(str, e)
- _parse_day(str, e)
-
- _parse_eu(str, e) ||
- _parse_us(str, e) ||
- _parse_iso(str, e) ||
- _parse_jis(str, e) ||
- _parse_vms(str, e) ||
- _parse_sla(str, e) ||
- _parse_dot(str, e) ||
- _parse_iso2(str, e) ||
- _parse_year(str, e) ||
- _parse_mon(str, e) ||
- _parse_mday(str, e) ||
- _parse_ddd(str, e)
-
- if str.sub!(/\b(bc\b|bce\b|b\.c\.|b\.c\.e\.)/i, ' ')
- if e.year
- e.year = -e.year + 1
- end
- end
-
- if str.sub!(/\A\s*(\d{1,2})\s*\z/, ' ')
- if e.hour && !e.mday
- v = $1.to_i
- if (1..31) === v
- e.mday = v
- end
- end
- if e.mday && !e.hour
- v = $1.to_i
- if (0..24) === v
- e.hour = v
- end
- end
- end
-
- if e._comp
- if e.cwyear
- if e.cwyear >= 0 && e.cwyear <= 99
- e.cwyear += if e.cwyear >= 69
- then 1900 else 2000 end
- end
- end
- if e.year
- if e.year >= 0 && e.year <= 99
- e.year += if e.year >= 69
- then 1900 else 2000 end
- end
- end
- end
-
- e.offset ||= zone_to_diff(e.zone) if e.zone
-
- e.to_hash
- end
-
- def self._iso8601(str) # :nodoc:
- if /\A\s*(([-+]?\d{2,}|-)-\d{2}-\d{2}|
- ([-+]?\d{2,})?-\d{3}|
- (\d{2}|\d{4})?-w\d{2}-\d|
- -w-\d)
- (t
- \d{2}:\d{2}(:\d{2}([,.]\d+)?)?
- (z|[-+]\d{2}(:?\d{2})?)?)?\s*\z/ix =~ str
- _parse(str)
- elsif /\A\s*(([-+]?(\d{2}|\d{4})|--)\d{2}\d{2}|
- ([-+]?(\d{2}|\d{4}))?\d{3}|-\d{3}|
- (\d{2}|\d{4})?w\d{2}\d)
- (t?
- \d{2}\d{2}(\d{2}([,.]\d+)?)?
- (z|[-+]\d{2}(\d{2})?)?)?\s*\z/ix =~ str
- _parse(str)
- elsif /\A\s*(\d{2}:\d{2}(:\d{2}([,.]\d+)?)?
- (z|[-+]\d{2}(:?\d{2})?)?)?\s*\z/ix =~ str
- _parse(str)
- elsif /\A\s*(\d{2}\d{2}(\d{2}([,.]\d+)?)?
- (z|[-+]\d{2}(\d{2})?)?)?\s*\z/ix =~ str
- _parse(str)
- end
- end
-
- def self._rfc3339(str) # :nodoc:
- if /\A\s*-?\d{4}-\d{2}-\d{2} # allow minus, anyway
- (t|\s)
- \d{2}:\d{2}:\d{2}(\.\d+)?
- (z|[-+]\d{2}:\d{2})\s*\z/ix =~ str
- _parse(str)
- end
- end
-
- def self._xmlschema(str) # :nodoc:
- if /\A\s*(-?\d{4,})(?:-(\d{2})(?:-(\d{2}))?)?
- (?:t
- (\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?)?
- (z|[-+]\d{2}:\d{2})?\s*\z/ix =~ str
- e = Format::Bag.new
- e.year = $1.to_i
- e.mon = $2.to_i if $2
- e.mday = $3.to_i if $3
- e.hour = $4.to_i if $4
- e.min = $5.to_i if $5
- e.sec = $6.to_i if $6
- e.sec_fraction = Rational($7.to_i, 10**$7.size) if $7
- if $8
- e.zone = $8
- e.offset = zone_to_diff($8)
- end
- e.to_hash
- elsif /\A\s*(\d{2}):(\d{2}):(\d{2})(?:\.(\d+))?
- (z|[-+]\d{2}:\d{2})?\s*\z/ix =~ str
- e = Format::Bag.new
- e.hour = $1.to_i if $1
- e.min = $2.to_i if $2
- e.sec = $3.to_i if $3
- e.sec_fraction = Rational($4.to_i, 10**$4.size) if $4
- if $5
- e.zone = $5
- e.offset = zone_to_diff($5)
- end
- e.to_hash
- elsif /\A\s*(?:--(\d{2})(?:-(\d{2}))?|---(\d{2}))
- (z|[-+]\d{2}:\d{2})?\s*\z/ix =~ str
- e = Format::Bag.new
- e.mon = $1.to_i if $1
- e.mday = $2.to_i if $2
- e.mday = $3.to_i if $3
- if $4
- e.zone = $4
- e.offset = zone_to_diff($4)
- end
- e.to_hash
- end
- end
-
- def self._rfc2822(str) # :nodoc:
- if /\A\s*(?:(?:#{Format::ABBR_DAYS.keys.join('|')})\s*,\s+)?
- \d{1,2}\s+
- (?:#{Format::ABBR_MONTHS.keys.join('|')})\s+
- -?(\d{2,})\s+ # allow minus, anyway
- \d{2}:\d{2}(:\d{2})?\s*
- (?:[-+]\d{4}|ut|gmt|e[sd]t|c[sd]t|m[sd]t|p[sd]t|[a-ik-z])\s*\z/iox =~ str
- e = _parse(str, false)
- if $1.size < 4
- if e[:year] < 50
- e[:year] += 2000
- elsif e[:year] < 1000
- e[:year] += 1900
- end
- end
- e
- end
- end
-
- class << self; alias_method :_rfc822, :_rfc2822 end
-
- def self._httpdate(str) # :nodoc:
- if /\A\s*(#{Format::ABBR_DAYS.keys.join('|')})\s*,\s+
- \d{2}\s+
- (#{Format::ABBR_MONTHS.keys.join('|')})\s+
- -?\d{4}\s+ # allow minus, anyway
- \d{2}:\d{2}:\d{2}\s+
- gmt\s*\z/iox =~ str
- _rfc2822(str)
- elsif /\A\s*(#{Format::DAYS.keys.join('|')})\s*,\s+
- \d{2}\s*-\s*
- (#{Format::ABBR_MONTHS.keys.join('|')})\s*-\s*
- \d{2}\s+
- \d{2}:\d{2}:\d{2}\s+
- gmt\s*\z/iox =~ str
- _parse(str)
- elsif /\A\s*(#{Format::ABBR_DAYS.keys.join('|')})\s+
- (#{Format::ABBR_MONTHS.keys.join('|')})\s+
- \d{1,2}\s+
- \d{2}:\d{2}:\d{2}\s+
- \d{4}\s*\z/iox =~ str
- _parse(str)
- end
- end
-
- def self._jisx0301(str) # :nodoc:
- if /\A\s*[mtsh]?\d{2}\.\d{2}\.\d{2}
- (t
- (\d{2}:\d{2}(:\d{2}([,.]\d*)?)?
- (z|[-+]\d{2}(:?\d{2})?)?)?)?\s*\z/ix =~ str
- if /\A\s*\d/ =~ str
- _parse(str.sub(/\A\s*(\d)/, 'h\1'))
- else
- _parse(str)
- end
- else
- _iso8601(str)
- end
- end
-
- t = Module.new do
-
- private
-
- def zone_to_diff(zone) # :nodoc:
- zone = zone.downcase
- if zone.sub!(/\s+(standard|daylight)\s+time\z/, '')
- dst = $1 == 'daylight'
- else
- dst = zone.sub!(/\s+dst\z/, '')
- end
- if Format::ZONES.include?(zone)
- offset = Format::ZONES[zone]
- offset += 3600 if dst
- elsif zone.sub!(/\A(?:gmt|utc?)?([-+])/, '')
- sign = $1
- if zone.include?(':')
- hour, min, sec, = zone.split(':')
- elsif zone.include?(',') || zone.include?('.')
- hour, fr, = zone.split(/[,.]/)
- min = Rational(fr.to_i, 10**fr.size) * 60
- else
- case zone.size
- when 3
- hour = zone[0,1]
- min = zone[1,2]
- else
- hour = zone[0,2]
- min = zone[2,2]
- sec = zone[4,2]
- end
- end
- offset = hour.to_i * 3600 + min.to_i * 60 + sec.to_i
- offset *= -1 if sign == '-'
- end
- offset
- end
-
- end
-
- extend t
- include t
-
-end
-
-class DateTime < Date
-
- def strftime(fmt='%FT%T%:z')
- super(fmt)
- end
-
- def self._strptime(str, fmt='%FT%T%z')
- super(str, fmt)
- end
-
- def iso8601_timediv(n) # :nodoc:
- strftime('T%T' +
- if n < 1
- ''
- else
- '.%0*d' % [n, (sec_fraction / Rational(1, 10**n)).round]
- end +
- '%:z')
- end
-
- private :iso8601_timediv
-
- def iso8601(n=0)
- super() + iso8601_timediv(n)
- end
-
- def rfc3339(n=0) iso8601(n) end
-
- def xmlschema(n=0) iso8601(n) end # :nodoc:
-
- def jisx0301(n=0)
- super() + iso8601_timediv(n)
- end
-
-end
diff --git a/lib/debug.rb b/lib/debug.rb
index 10236c352d..e99f69826a 100644
--- a/lib/debug.rb
+++ b/lib/debug.rb
@@ -21,494 +21,494 @@ end
SCRIPT_LINES__ = {} unless defined? SCRIPT_LINES__
class DEBUGGER__
-MUTEX = Mutex.new
-
-class Context
- DEBUG_LAST_CMD = []
-
- begin
- require 'readline'
- def readline(prompt, hist)
- Readline::readline(prompt, hist)
- end
- rescue LoadError
- def readline(prompt, hist)
- STDOUT.print prompt
- STDOUT.flush
- line = STDIN.gets
- exit unless line
- line.chomp!
- line
- end
- USE_READLINE = false
- end
+ MUTEX = Mutex.new
- def initialize
- if Thread.current == Thread.main
- @stop_next = 1
- else
- @stop_next = 0
- end
- @last_file = nil
- @file = nil
- @line = nil
- @no_step = nil
- @frames = []
- @finish_pos = 0
- @trace = false
- @catch = "StandardError"
- @suspend_next = false
- end
+ class Context
+ DEBUG_LAST_CMD = []
- def stop_next(n=1)
- @stop_next = n
- end
+ begin
+ require 'readline'
+ def readline(prompt, hist)
+ Readline::readline(prompt, hist)
+ end
+ rescue LoadError
+ def readline(prompt, hist)
+ STDOUT.print prompt
+ STDOUT.flush
+ line = STDIN.gets
+ exit unless line
+ line.chomp!
+ line
+ end
+ USE_READLINE = false
+ end
- def set_suspend
- @suspend_next = true
- end
+ def initialize
+ if Thread.current == Thread.main
+ @stop_next = 1
+ else
+ @stop_next = 0
+ end
+ @last_file = nil
+ @file = nil
+ @line = nil
+ @no_step = nil
+ @frames = []
+ @finish_pos = 0
+ @trace = false
+ @catch = "StandardError"
+ @suspend_next = false
+ end
- def clear_suspend
- @suspend_next = false
- end
+ def stop_next(n=1)
+ @stop_next = n
+ end
- def suspend_all
- DEBUGGER__.suspend
- end
+ def set_suspend
+ @suspend_next = true
+ end
- def resume_all
- DEBUGGER__.resume
- end
+ def clear_suspend
+ @suspend_next = false
+ end
- def check_suspend
- while MUTEX.synchronize {
- if @suspend_next
- DEBUGGER__.waiting.push Thread.current
- @suspend_next = false
- true
- end
- }
+ def suspend_all
+ DEBUGGER__.suspend
end
- end
- def trace?
- @trace
- end
+ def resume_all
+ DEBUGGER__.resume
+ end
- def set_trace(arg)
- @trace = arg
- end
+ def check_suspend
+ while MUTEX.synchronize {
+ if @suspend_next
+ DEBUGGER__.waiting.push Thread.current
+ @suspend_next = false
+ true
+ end
+ }
+ end
+ end
- def stdout
- DEBUGGER__.stdout
- end
+ def trace?
+ @trace
+ end
- def break_points
- DEBUGGER__.break_points
- end
+ def set_trace(arg)
+ @trace = arg
+ end
- def display
- DEBUGGER__.display
- end
+ def stdout
+ DEBUGGER__.stdout
+ end
- def context(th)
- DEBUGGER__.context(th)
- end
+ def break_points
+ DEBUGGER__.break_points
+ end
- def set_trace_all(arg)
- DEBUGGER__.set_trace(arg)
- end
+ def display
+ DEBUGGER__.display
+ end
- def set_last_thread(th)
- DEBUGGER__.set_last_thread(th)
- end
+ def context(th)
+ DEBUGGER__.context(th)
+ end
- def debug_eval(str, binding)
- begin
- val = eval(str, binding)
- rescue StandardError, ScriptError => e
- at = eval("caller(1)", binding)
- stdout.printf "%s:%s\n", at.shift, e.to_s.sub(/\(eval\):1:(in `.*?':)?/, '')
- for i in at
- stdout.printf "\tfrom %s\n", i
+ def set_trace_all(arg)
+ DEBUGGER__.set_trace(arg)
+ end
+
+ def set_last_thread(th)
+ DEBUGGER__.set_last_thread(th)
+ end
+
+ def debug_eval(str, binding)
+ begin
+ eval(str, binding)
+ rescue StandardError, ScriptError => e
+ at = eval("caller(1)", binding)
+ stdout.printf "%s:%s\n", at.shift, e.to_s.sub(/\(eval\):1:(in `.*?':)?/, '')
+ for i in at
+ stdout.printf "\tfrom %s\n", i
+ end
+ throw :debug_error
end
- throw :debug_error
end
- end
- def debug_silent_eval(str, binding)
- begin
- eval(str, binding)
- rescue StandardError, ScriptError
- nil
+ def debug_silent_eval(str, binding)
+ begin
+ eval(str, binding)
+ rescue StandardError, ScriptError
+ nil
+ end
end
- end
- def var_list(ary, binding)
- ary.sort!
- for v in ary
- stdout.printf " %s => %s\n", v, eval(v, binding).inspect
+ def var_list(ary, binding)
+ ary.sort!
+ for v in ary
+ stdout.printf " %s => %s\n", v, eval(v.to_s, binding).inspect
+ end
end
- end
- def debug_variable_info(input, binding)
- case input
- when /^\s*g(?:lobal)?\s*$/
- var_list(global_variables, binding)
+ def debug_variable_info(input, binding)
+ case input
+ when /^\s*g(?:lobal)?\s*$/
+ var_list(global_variables, binding)
- when /^\s*l(?:ocal)?\s*$/
- var_list(eval("local_variables", binding), binding)
+ when /^\s*l(?:ocal)?\s*$/
+ var_list(eval("local_variables", binding), binding)
- when /^\s*i(?:nstance)?\s+/
- obj = debug_eval($', binding)
- var_list(obj.instance_variables, obj.instance_eval{binding()})
+ when /^\s*i(?:nstance)?\s+/
+ obj = debug_eval($', binding)
+ var_list(obj.instance_variables, obj.instance_eval{binding()})
- when /^\s*c(?:onst(?:ant)?)?\s+/
- obj = debug_eval($', binding)
- unless obj.kind_of? Module
- stdout.print "Should be Class/Module: ", $', "\n"
- else
- var_list(obj.constants, obj.module_eval{binding()})
+ when /^\s*c(?:onst(?:ant)?)?\s+/
+ obj = debug_eval($', binding)
+ unless obj.kind_of? Module
+ stdout.print "Should be Class/Module: ", $', "\n"
+ else
+ var_list(obj.constants, obj.module_eval{binding()})
+ end
end
end
- end
- def debug_method_info(input, binding)
- case input
- when /^i(:?nstance)?\s+/
- obj = debug_eval($', binding)
-
- len = 0
- for v in obj.methods.sort
- len += v.size + 1
- if len > 70
- len = v.size + 1
- stdout.print "\n"
- end
- stdout.print v, " "
- end
- stdout.print "\n"
-
- else
- obj = debug_eval(input, binding)
- unless obj.kind_of? Module
- stdout.print "Should be Class/Module: ", input, "\n"
+ def debug_method_info(input, binding)
+ case input
+ when /^i(:?nstance)?\s+/
+ obj = debug_eval($', binding)
+
+ len = 0
+ for v in obj.methods.sort
+ len += v.size + 1
+ if len > 70
+ len = v.size + 1
+ stdout.print "\n"
+ end
+ stdout.print v, " "
+ end
+ stdout.print "\n"
+
else
- len = 0
- for v in obj.instance_methods(false).sort
- len += v.size + 1
- if len > 70
- len = v.size + 1
- stdout.print "\n"
- end
- stdout.print v, " "
- end
- stdout.print "\n"
+ obj = debug_eval(input, binding)
+ unless obj.kind_of? Module
+ stdout.print "Should be Class/Module: ", input, "\n"
+ else
+ len = 0
+ for v in obj.instance_methods(false).sort
+ len += v.size + 1
+ if len > 70
+ len = v.size + 1
+ stdout.print "\n"
+ end
+ stdout.print v, " "
+ end
+ stdout.print "\n"
+ end
end
end
- end
- def thnum
- num = DEBUGGER__.instance_eval{@thread_list[Thread.current]}
- unless num
- DEBUGGER__.make_thread_list
+ def thnum
num = DEBUGGER__.instance_eval{@thread_list[Thread.current]}
+ unless num
+ DEBUGGER__.make_thread_list
+ num = DEBUGGER__.instance_eval{@thread_list[Thread.current]}
+ end
+ num
end
- num
- end
- def debug_command(file, line, id, binding)
- MUTEX.lock
- unless defined?($debugger_restart) and $debugger_restart
- callcc{|c| $debugger_restart = c}
- end
- set_last_thread(Thread.current)
- frame_pos = 0
- binding_file = file
- binding_line = line
- previous_line = nil
- if ENV['EMACS']
- stdout.printf "\032\032%s:%d:\n", binding_file, binding_line
- else
- stdout.printf "%s:%d:%s", binding_file, binding_line,
- line_at(binding_file, binding_line)
- end
- @frames[0] = [binding, file, line, id]
- display_expressions(binding)
- prompt = true
- while prompt and input = readline("(rdb:%d) "%thnum(), true)
- catch(:debug_error) do
- if input == ""
- next unless DEBUG_LAST_CMD[0]
- input = DEBUG_LAST_CMD[0]
- stdout.print input, "\n"
- else
- DEBUG_LAST_CMD[0] = input
- end
-
- case input
- when /^\s*tr(?:ace)?(?:\s+(on|off))?(?:\s+(all))?$/
- if defined?( $2 )
- if $1 == 'on'
- set_trace_all true
+ def debug_command(file, line, id, binding)
+ MUTEX.lock
+ unless defined?($debugger_restart) and $debugger_restart
+ callcc{|c| $debugger_restart = c}
+ end
+ set_last_thread(Thread.current)
+ frame_pos = 0
+ binding_file = file
+ binding_line = line
+ previous_line = nil
+ if ENV['EMACS']
+ stdout.printf "\032\032%s:%d:\n", binding_file, binding_line
+ else
+ stdout.printf "%s:%d:%s", binding_file, binding_line,
+ line_at(binding_file, binding_line)
+ end
+ @frames[0] = [binding, file, line, id]
+ display_expressions(binding)
+ prompt = true
+ while prompt and input = readline("(rdb:%d) "%thnum(), true)
+ catch(:debug_error) do
+ if input == ""
+ next unless DEBUG_LAST_CMD[0]
+ input = DEBUG_LAST_CMD[0]
+ stdout.print input, "\n"
+ else
+ DEBUG_LAST_CMD[0] = input
+ end
+
+ case input
+ when /^\s*tr(?:ace)?(?:\s+(on|off))?(?:\s+(all))?$/
+ if defined?( $2 )
+ if $1 == 'on'
+ set_trace_all true
+ else
+ set_trace_all false
+ end
+ elsif defined?( $1 )
+ if $1 == 'on'
+ set_trace true
+ else
+ set_trace false
+ end
+ end
+ if trace?
+ stdout.print "Trace on.\n"
else
- set_trace_all false
+ stdout.print "Trace off.\n"
+ end
+
+ when /^\s*b(?:reak)?\s+(?:(.+):)?([^.:]+)$/
+ pos = $2
+ if $1
+ klass = debug_silent_eval($1, binding)
+ file = $1
end
- elsif defined?( $1 )
- if $1 == 'on'
- set_trace true
+ if pos =~ /^\d+$/
+ pname = pos
+ pos = pos.to_i
else
- set_trace false
+ pname = pos = pos.intern.id2name
end
- end
- if trace?
- stdout.print "Trace on.\n"
- else
- stdout.print "Trace off.\n"
- end
+ break_points.push [true, 0, klass || file, pos]
+ stdout.printf "Set breakpoint %d at %s:%s\n", break_points.size, klass || file, pname
+
+ when /^\s*b(?:reak)?\s+(.+)[#.]([^.:]+)$/
+ pos = $2.intern.id2name
+ klass = debug_eval($1, binding)
+ break_points.push [true, 0, klass, pos]
+ stdout.printf "Set breakpoint %d at %s.%s\n", break_points.size, klass, pos
+
+ when /^\s*wat(?:ch)?\s+(.+)$/
+ exp = $1
+ break_points.push [true, 1, exp]
+ stdout.printf "Set watchpoint %d:%s\n", break_points.size, exp
+
+ when /^\s*b(?:reak)?$/
+ if break_points.find{|b| b[1] == 0}
+ n = 1
+ stdout.print "Breakpoints:\n"
+ break_points.each do |b|
+ if b[0] and b[1] == 0
+ stdout.printf " %d %s:%s\n", n, b[2], b[3]
+ end
+ n += 1
+ end
+ end
+ if break_points.find{|b| b[1] == 1}
+ n = 1
+ stdout.print "\n"
+ stdout.print "Watchpoints:\n"
+ for b in break_points
+ if b[0] and b[1] == 1
+ stdout.printf " %d %s\n", n, b[2]
+ end
+ n += 1
+ end
+ end
+ if break_points.size == 0
+ stdout.print "No breakpoints\n"
+ else
+ stdout.print "\n"
+ end
+
+ when /^\s*del(?:ete)?(?:\s+(\d+))?$/
+ pos = $1
+ unless pos
+ input = readline("Clear all breakpoints? (y/n) ", false)
+ if input == "y"
+ for b in break_points
+ b[0] = false
+ end
+ end
+ else
+ pos = pos.to_i
+ if break_points[pos-1]
+ break_points[pos-1][0] = false
+ else
+ stdout.printf "Breakpoint %d is not defined\n", pos
+ end
+ end
+
+ when /^\s*disp(?:lay)?\s+(.+)$/
+ exp = $1
+ display.push [true, exp]
+ stdout.printf "%d: ", display.size
+ display_expression(exp, binding)
+
+ when /^\s*disp(?:lay)?$/
+ display_expressions(binding)
+
+ when /^\s*undisp(?:lay)?(?:\s+(\d+))?$/
+ pos = $1
+ unless pos
+ input = readline("Clear all expressions? (y/n) ", false)
+ if input == "y"
+ for d in display
+ d[0] = false
+ end
+ end
+ else
+ pos = pos.to_i
+ if display[pos-1]
+ display[pos-1][0] = false
+ else
+ stdout.printf "Display expression %d is not defined\n", pos
+ end
+ end
+
+ when /^\s*c(?:ont)?$/
+ prompt = false
+
+ when /^\s*s(?:tep)?(?:\s+(\d+))?$/
+ if $1
+ lev = $1.to_i
+ else
+ lev = 1
+ end
+ @stop_next = lev
+ prompt = false
+
+ when /^\s*n(?:ext)?(?:\s+(\d+))?$/
+ if $1
+ lev = $1.to_i
+ else
+ lev = 1
+ end
+ @stop_next = lev
+ @no_step = @frames.size - frame_pos
+ prompt = false
+
+ when /^\s*w(?:here)?$/, /^\s*f(?:rame)?$/
+ display_frames(frame_pos)
+
+ when /^\s*l(?:ist)?(?:\s+(.+))?$/
+ if not $1
+ b = previous_line ? previous_line + 10 : binding_line - 5
+ e = b + 9
+ elsif $1 == '-'
+ b = previous_line ? previous_line - 10 : binding_line - 5
+ e = b + 9
+ else
+ b, e = $1.split(/[-,]/)
+ if e
+ b = b.to_i
+ e = e.to_i
+ else
+ b = b.to_i - 5
+ e = b + 9
+ end
+ end
+ previous_line = b
+ display_list(b, e, binding_file, binding_line)
+
+ when /^\s*up(?:\s+(\d+))?$/
+ previous_line = nil
+ if $1
+ lev = $1.to_i
+ else
+ lev = 1
+ end
+ frame_pos += lev
+ if frame_pos >= @frames.size
+ frame_pos = @frames.size - 1
+ stdout.print "At toplevel\n"
+ end
+ binding, binding_file, binding_line = @frames[frame_pos]
+ stdout.print format_frame(frame_pos)
+
+ when /^\s*down(?:\s+(\d+))?$/
+ previous_line = nil
+ if $1
+ lev = $1.to_i
+ else
+ lev = 1
+ end
+ frame_pos -= lev
+ if frame_pos < 0
+ frame_pos = 0
+ stdout.print "At stack bottom\n"
+ end
+ binding, binding_file, binding_line = @frames[frame_pos]
+ stdout.print format_frame(frame_pos)
- when /^\s*b(?:reak)?\s+(?:(.+):)?([^.:]+)$/
- pos = $2
- if $1
- klass = debug_silent_eval($1, binding)
- file = $1
+ when /^\s*fin(?:ish)?$/
+ if frame_pos == @frames.size
+ stdout.print "\"finish\" not meaningful in the outermost frame.\n"
+ else
+ @finish_pos = @frames.size - frame_pos
+ frame_pos = 0
+ prompt = false
+ end
+
+ when /^\s*cat(?:ch)?(?:\s+(.+))?$/
+ if $1
+ excn = $1
+ if excn == 'off'
+ @catch = nil
+ stdout.print "Clear catchpoint.\n"
+ else
+ @catch = excn
+ stdout.printf "Set catchpoint %s.\n", @catch
+ end
+ else
+ if @catch
+ stdout.printf "Catchpoint %s.\n", @catch
+ else
+ stdout.print "No catchpoint.\n"
+ end
+ end
+
+ when /^\s*q(?:uit)?$/
+ input = readline("Really quit? (y/n) ", false)
+ if input == "y"
+ exit! # exit -> exit!: No graceful way to stop threads...
+ end
+
+ when /^\s*v(?:ar)?\s+/
+ debug_variable_info($', binding)
+
+ when /^\s*m(?:ethod)?\s+/
+ debug_method_info($', binding)
+
+ when /^\s*th(?:read)?\s+/
+ if DEBUGGER__.debug_thread_info($', binding) == :cont
+ prompt = false
+ end
+
+ when /^\s*pp\s+/
+ PP.pp(debug_eval($', binding), stdout)
+
+ when /^\s*p\s+/
+ stdout.printf "%s\n", debug_eval($', binding).inspect
+
+ when /^\s*r(?:estart)?$/
+ $debugger_restart.call
+
+ when /^\s*h(?:elp)?$/
+ debug_print_help()
+
+ else
+ v = debug_eval(input, binding)
+ stdout.printf "%s\n", v.inspect
end
- if pos =~ /^\d+$/
- pname = pos
- pos = pos.to_i
- else
- pname = pos = pos.intern.id2name
- end
- break_points.push [true, 0, klass || file, pos]
- stdout.printf "Set breakpoint %d at %s:%s\n", break_points.size, klass || file, pname
-
- when /^\s*b(?:reak)?\s+(.+)[#.]([^.:]+)$/
- pos = $2.intern.id2name
- klass = debug_eval($1, binding)
- break_points.push [true, 0, klass, pos]
- stdout.printf "Set breakpoint %d at %s.%s\n", break_points.size, klass, pos
-
- when /^\s*wat(?:ch)?\s+(.+)$/
- exp = $1
- break_points.push [true, 1, exp]
- stdout.printf "Set watchpoint %d:%s\n", break_points.size, exp
-
- when /^\s*b(?:reak)?$/
- if break_points.find{|b| b[1] == 0}
- n = 1
- stdout.print "Breakpoints:\n"
- break_points.each do |b|
- if b[0] and b[1] == 0
- stdout.printf " %d %s:%s\n", n, b[2], b[3]
- end
- n += 1
- end
- end
- if break_points.find{|b| b[1] == 1}
- n = 1
- stdout.print "\n"
- stdout.print "Watchpoints:\n"
- for b in break_points
- if b[0] and b[1] == 1
- stdout.printf " %d %s\n", n, b[2]
- end
- n += 1
- end
- end
- if break_points.size == 0
- stdout.print "No breakpoints\n"
- else
- stdout.print "\n"
- end
-
- when /^\s*del(?:ete)?(?:\s+(\d+))?$/
- pos = $1
- unless pos
- input = readline("Clear all breakpoints? (y/n) ", false)
- if input == "y"
- for b in break_points
- b[0] = false
- end
- end
- else
- pos = pos.to_i
- if break_points[pos-1]
- break_points[pos-1][0] = false
- else
- stdout.printf "Breakpoint %d is not defined\n", pos
- end
- end
-
- when /^\s*disp(?:lay)?\s+(.+)$/
- exp = $1
- display.push [true, exp]
- stdout.printf "%d: ", display.size
- display_expression(exp, binding)
-
- when /^\s*disp(?:lay)?$/
- display_expressions(binding)
-
- when /^\s*undisp(?:lay)?(?:\s+(\d+))?$/
- pos = $1
- unless pos
- input = readline("Clear all expressions? (y/n) ", false)
- if input == "y"
- for d in display
- d[0] = false
- end
- end
- else
- pos = pos.to_i
- if display[pos-1]
- display[pos-1][0] = false
- else
- stdout.printf "Display expression %d is not defined\n", pos
- end
- end
-
- when /^\s*c(?:ont)?$/
- prompt = false
-
- when /^\s*s(?:tep)?(?:\s+(\d+))?$/
- if $1
- lev = $1.to_i
- else
- lev = 1
- end
- @stop_next = lev
- prompt = false
-
- when /^\s*n(?:ext)?(?:\s+(\d+))?$/
- if $1
- lev = $1.to_i
- else
- lev = 1
- end
- @stop_next = lev
- @no_step = @frames.size - frame_pos
- prompt = false
-
- when /^\s*w(?:here)?$/, /^\s*f(?:rame)?$/
- display_frames(frame_pos)
-
- when /^\s*l(?:ist)?(?:\s+(.+))?$/
- if not $1
- b = previous_line ? previous_line + 10 : binding_line - 5
- e = b + 9
- elsif $1 == '-'
- b = previous_line ? previous_line - 10 : binding_line - 5
- e = b + 9
- else
- b, e = $1.split(/[-,]/)
- if e
- b = b.to_i
- e = e.to_i
- else
- b = b.to_i - 5
- e = b + 9
- end
- end
- previous_line = b
- display_list(b, e, binding_file, binding_line)
-
- when /^\s*up(?:\s+(\d+))?$/
- previous_line = nil
- if $1
- lev = $1.to_i
- else
- lev = 1
- end
- frame_pos += lev
- if frame_pos >= @frames.size
- frame_pos = @frames.size - 1
- stdout.print "At toplevel\n"
- end
- binding, binding_file, binding_line = @frames[frame_pos]
- stdout.print format_frame(frame_pos)
-
- when /^\s*down(?:\s+(\d+))?$/
- previous_line = nil
- if $1
- lev = $1.to_i
- else
- lev = 1
- end
- frame_pos -= lev
- if frame_pos < 0
- frame_pos = 0
- stdout.print "At stack bottom\n"
- end
- binding, binding_file, binding_line = @frames[frame_pos]
- stdout.print format_frame(frame_pos)
-
- when /^\s*fin(?:ish)?$/
- if frame_pos == @frames.size
- stdout.print "\"finish\" not meaningful in the outermost frame.\n"
- else
- @finish_pos = @frames.size - frame_pos
- frame_pos = 0
- prompt = false
- end
-
- when /^\s*cat(?:ch)?(?:\s+(.+))?$/
- if $1
- excn = $1
- if excn == 'off'
- @catch = nil
- stdout.print "Clear catchpoint.\n"
- else
- @catch = excn
- stdout.printf "Set catchpoint %s.\n", @catch
- end
- else
- if @catch
- stdout.printf "Catchpoint %s.\n", @catch
- else
- stdout.print "No catchpoint.\n"
- end
- end
-
- when /^\s*q(?:uit)?$/
- input = readline("Really quit? (y/n) ", false)
- if input == "y"
- exit! # exit -> exit!: No graceful way to stop threads...
- end
-
- when /^\s*v(?:ar)?\s+/
- debug_variable_info($', binding)
-
- when /^\s*m(?:ethod)?\s+/
- debug_method_info($', binding)
-
- when /^\s*th(?:read)?\s+/
- if DEBUGGER__.debug_thread_info($', binding) == :cont
- prompt = false
- end
-
- when /^\s*pp\s+/
- PP.pp(debug_eval($', binding), stdout)
-
- when /^\s*p\s+/
- stdout.printf "%s\n", debug_eval($', binding).inspect
-
- when /^\s*r(?:estart)?$/
- $debugger_restart.call
-
- when /^\s*h(?:elp)?$/
- debug_print_help()
-
- else
- v = debug_eval(input, binding)
- stdout.printf "%s\n", v.inspect
- end
- end
- end
- MUTEX.unlock
- resume_all
- end
+ end
+ end
+ MUTEX.unlock
+ resume_all
+ end
- def debug_print_help
- stdout.print <<EOHELP
+ def debug_print_help
+ stdout.print <<EOHELP
Debugger help v.-0.002b
Commands
b[reak] [file:|class:]<line|method>
@@ -549,359 +549,359 @@ Commands
h[elp] print this help
<everything else> evaluate
EOHELP
- end
+ end
- def display_expressions(binding)
- n = 1
- for d in display
- if d[0]
- stdout.printf "%d: ", n
- display_expression(d[1], binding)
+ def display_expressions(binding)
+ n = 1
+ for d in display
+ if d[0]
+ stdout.printf "%d: ", n
+ display_expression(d[1], binding)
+ end
+ n += 1
end
- n += 1
end
- end
-
- def display_expression(exp, binding)
- stdout.printf "%s = %s\n", exp, debug_silent_eval(exp, binding).to_s
- end
- def frame_set_pos(file, line)
- if @frames[0]
- @frames[0][1] = file
- @frames[0][2] = line
+ def display_expression(exp, binding)
+ stdout.printf "%s = %s\n", exp, debug_silent_eval(exp, binding).to_s
end
- end
- def display_frames(pos)
- 0.upto(@frames.size - 1) do |n|
- if n == pos
- stdout.print "--> "
- else
- stdout.print " "
+ def frame_set_pos(file, line)
+ if @frames[0]
+ @frames[0][1] = file
+ @frames[0][2] = line
end
- stdout.print format_frame(n)
- end
- end
-
- def format_frame(pos)
- bind, file, line, id = @frames[pos]
- sprintf "#%d %s:%s%s\n", pos + 1, file, line,
- (id ? ":in `#{id.id2name}'" : "")
- end
-
- def display_list(b, e, file, line)
- stdout.printf "[%d, %d] in %s\n", b, e, file
- if lines = SCRIPT_LINES__[file] and lines != true
- b.upto(e) do |n|
- if n > 0 && lines[n-1]
- if n == line
- stdout.printf "=> %d %s\n", n, lines[n-1].chomp
- else
- stdout.printf " %d %s\n", n, lines[n-1].chomp
- end
- end
- end
- else
- stdout.printf "No sourcefile available for %s\n", file
end
- end
- def line_at(file, line)
- lines = SCRIPT_LINES__[file]
- if lines
- return "\n" if lines == true
- line = lines[line-1]
- return "\n" unless line
- return line
+ def display_frames(pos)
+ 0.upto(@frames.size - 1) do |n|
+ if n == pos
+ stdout.print "--> "
+ else
+ stdout.print " "
+ end
+ stdout.print format_frame(n)
+ end
end
- return "\n"
- end
- def debug_funcname(id)
- if id.nil?
- "toplevel"
- else
- id.id2name
+ def format_frame(pos)
+ _, file, line, id = @frames[pos]
+ sprintf "#%d %s:%s%s\n", pos + 1, file, line,
+ (id ? ":in `#{id.id2name}'" : "")
end
- end
- def check_break_points(file, klass, pos, binding, id)
- return false if break_points.empty?
- n = 1
- for b in break_points
- if b[0] # valid
- if b[1] == 0 # breakpoint
- if (b[2] == file and b[3] == pos) or
- (klass and b[2] == klass and b[3] == pos)
- stdout.printf "Breakpoint %d, %s at %s:%s\n", n, debug_funcname(id), file, pos
- return true
- end
- elsif b[1] == 1 # watchpoint
- if debug_silent_eval(b[2], binding)
- stdout.printf "Watchpoint %d, %s at %s:%s\n", n, debug_funcname(id), file, pos
- return true
- end
- end
- end
- n += 1
- end
- return false
- end
-
- def excn_handle(file, line, id, binding)
- if $!.class <= SystemExit
- set_trace_func nil
- exit
+ def display_list(b, e, file, line)
+ stdout.printf "[%d, %d] in %s\n", b, e, file
+ if lines = SCRIPT_LINES__[file] and lines != true
+ b.upto(e) do |n|
+ if n > 0 && lines[n-1]
+ if n == line
+ stdout.printf "=> %d %s\n", n, lines[n-1].chomp
+ else
+ stdout.printf " %d %s\n", n, lines[n-1].chomp
+ end
+ end
+ end
+ else
+ stdout.printf "No sourcefile available for %s\n", file
+ end
end
- if @catch and ($!.class.ancestors.find { |e| e.to_s == @catch })
- stdout.printf "%s:%d: `%s' (%s)\n", file, line, $!, $!.class
- fs = @frames.size
- tb = caller(0)[-fs..-1]
- if tb
- for i in tb
- stdout.printf "\tfrom %s\n", i
- end
+ def line_at(file, line)
+ lines = SCRIPT_LINES__[file]
+ if lines
+ return "\n" if lines == true
+ line = lines[line-1]
+ return "\n" unless line
+ return line
end
- suspend_all
- debug_command(file, line, id, binding)
+ return "\n"
end
- end
- def trace_func(event, file, line, id, binding, klass)
- Tracer.trace_func(event, file, line, id, binding, klass) if trace?
- context(Thread.current).check_suspend
- @file = file
- @line = line
- case event
- when 'line'
- frame_set_pos(file, line)
- if !@no_step or @frames.size == @no_step
- @stop_next -= 1
- @stop_next = -1 if @stop_next < 0
- elsif @frames.size < @no_step
- @stop_next = 0 # break here before leaving...
+ def debug_funcname(id)
+ if id.nil?
+ "toplevel"
else
- # nothing to do. skipped.
- end
- if @stop_next == 0 or check_break_points(file, nil, line, binding, id)
- @no_step = nil
- suspend_all
- debug_command(file, line, id, binding)
+ id.id2name
end
+ end
- when 'call'
- @frames.unshift [binding, file, line, id]
- if check_break_points(file, klass, id.id2name, binding, id)
- suspend_all
- debug_command(file, line, id, binding)
+ def check_break_points(file, klass, pos, binding, id)
+ return false if break_points.empty?
+ n = 1
+ for b in break_points
+ if b[0] # valid
+ if b[1] == 0 # breakpoint
+ if (b[2] == file and b[3] == pos) or
+ (klass and b[2] == klass and b[3] == pos)
+ stdout.printf "Breakpoint %d, %s at %s:%s\n", n, debug_funcname(id), file, pos
+ return true
+ end
+ elsif b[1] == 1 # watchpoint
+ if debug_silent_eval(b[2], binding)
+ stdout.printf "Watchpoint %d, %s at %s:%s\n", n, debug_funcname(id), file, pos
+ return true
+ end
+ end
+ end
+ n += 1
end
+ return false
+ end
- when 'c-call'
- frame_set_pos(file, line)
-
- when 'class'
- @frames.unshift [binding, file, line, id]
-
- when 'return', 'end'
- if @frames.size == @finish_pos
- @stop_next = 1
- @finish_pos = 0
+ def excn_handle(file, line, id, binding)
+ if $!.class <= SystemExit
+ set_trace_func nil
+ exit
end
- @frames.shift
-
- when 'raise'
- excn_handle(file, line, id, binding)
+ if @catch and ($!.class.ancestors.find { |e| e.to_s == @catch })
+ stdout.printf "%s:%d: `%s' (%s)\n", file, line, $!, $!.class
+ fs = @frames.size
+ tb = caller(0)[-fs..-1]
+ if tb
+ for i in tb
+ stdout.printf "\tfrom %s\n", i
+ end
+ end
+ suspend_all
+ debug_command(file, line, id, binding)
+ end
end
- @last_file = file
- end
-end
-
-trap("INT") { DEBUGGER__.interrupt }
-@last_thread = Thread::main
-@max_thread = 1
-@thread_list = {Thread::main => 1}
-@break_points = []
-@display = []
-@waiting = []
-@stdout = STDOUT
-
-class << DEBUGGER__
- def stdout
- @stdout
- end
-
- def stdout=(s)
- @stdout = s
- end
-
- def display
- @display
- end
- def break_points
- @break_points
- end
-
- def waiting
- @waiting
- end
+ def trace_func(event, file, line, id, binding, klass)
+ Tracer.trace_func(event, file, line, id, binding, klass) if trace?
+ context(Thread.current).check_suspend
+ @file = file
+ @line = line
+ case event
+ when 'line'
+ frame_set_pos(file, line)
+ if !@no_step or @frames.size == @no_step
+ @stop_next -= 1
+ @stop_next = -1 if @stop_next < 0
+ elsif @frames.size < @no_step
+ @stop_next = 0 # break here before leaving...
+ else
+ # nothing to do. skipped.
+ end
+ if @stop_next == 0 or check_break_points(file, nil, line, binding, id)
+ @no_step = nil
+ suspend_all
+ debug_command(file, line, id, binding)
+ end
+
+ when 'call'
+ @frames.unshift [binding, file, line, id]
+ if check_break_points(file, klass, id.id2name, binding, id)
+ suspend_all
+ debug_command(file, line, id, binding)
+ end
+
+ when 'c-call'
+ frame_set_pos(file, line)
+
+ when 'class'
+ @frames.unshift [binding, file, line, id]
+
+ when 'return', 'end'
+ if @frames.size == @finish_pos
+ @stop_next = 1
+ @finish_pos = 0
+ end
+ @frames.shift
+
+ when 'raise'
+ excn_handle(file, line, id, binding)
- def set_trace( arg )
- MUTEX.synchronize do
- make_thread_list
- for th, in @thread_list
- context(th).set_trace arg
end
+ @last_file = file
end
- arg
end
- def set_last_thread(th)
- @last_thread = th
- end
+ trap("INT") { DEBUGGER__.interrupt }
+ @last_thread = Thread::main
+ @max_thread = 1
+ @thread_list = {Thread::main => 1}
+ @break_points = []
+ @display = []
+ @waiting = []
+ @stdout = STDOUT
- def suspend
- MUTEX.synchronize do
- make_thread_list
- for th, in @thread_list
- next if th == Thread.current
- context(th).set_suspend
- end
+ class << DEBUGGER__
+ def stdout
+ @stdout
end
- # Schedule other threads to suspend as soon as possible.
- Thread.pass
- end
- def resume
- MUTEX.synchronize do
- make_thread_list
- @thread_list.each do |th,|
- next if th == Thread.current
- context(th).clear_suspend
- end
- waiting.each do |th|
- th.run
- end
- waiting.clear
+ def stdout=(s)
+ @stdout = s
end
- # Schedule other threads to restart as soon as possible.
- Thread.pass
- end
- def context(thread=Thread.current)
- c = thread[:__debugger_data__]
- unless c
- thread[:__debugger_data__] = c = Context.new
+ def display
+ @display
end
- c
- end
- def interrupt
- context(@last_thread).stop_next
- end
+ def break_points
+ @break_points
+ end
- def get_thread(num)
- th = @thread_list.key(num)
- unless th
- @stdout.print "No thread ##{num}\n"
- throw :debug_error
+ def waiting
+ @waiting
end
- th
- end
- def thread_list(num)
- th = get_thread(num)
- if th == Thread.current
- @stdout.print "+"
- else
- @stdout.print " "
+ def set_trace( arg )
+ MUTEX.synchronize do
+ make_thread_list
+ for th, in @thread_list
+ context(th).set_trace arg
+ end
+ end
+ arg
end
- @stdout.printf "%d ", num
- @stdout.print th.inspect, "\t"
- file = context(th).instance_eval{@file}
- if file
- @stdout.print file,":",context(th).instance_eval{@line}
+
+ def set_last_thread(th)
+ @last_thread = th
end
- @stdout.print "\n"
- end
- def thread_list_all
- for th in @thread_list.values.sort
- thread_list(th)
+ def suspend
+ MUTEX.synchronize do
+ make_thread_list
+ for th, in @thread_list
+ next if th == Thread.current
+ context(th).set_suspend
+ end
+ end
+ # Schedule other threads to suspend as soon as possible.
+ Thread.pass
+ end
+
+ def resume
+ MUTEX.synchronize do
+ make_thread_list
+ @thread_list.each do |th,|
+ next if th == Thread.current
+ context(th).clear_suspend
+ end
+ waiting.each do |th|
+ th.run
+ end
+ waiting.clear
+ end
+ # Schedule other threads to restart as soon as possible.
+ Thread.pass
end
- end
- def make_thread_list
- hash = {}
- for th in Thread::list
- if @thread_list.key? th
- hash[th] = @thread_list[th]
- else
- @max_thread += 1
- hash[th] = @max_thread
+ def context(thread=Thread.current)
+ c = thread[:__debugger_data__]
+ unless c
+ thread[:__debugger_data__] = c = Context.new
end
+ c
end
- @thread_list = hash
- end
- def debug_thread_info(input, binding)
- case input
- when /^l(?:ist)?/
- make_thread_list
- thread_list_all
+ def interrupt
+ context(@last_thread).stop_next
+ end
- when /^c(?:ur(?:rent)?)?$/
- make_thread_list
- thread_list(@thread_list[Thread.current])
+ def get_thread(num)
+ th = @thread_list.key(num)
+ unless th
+ @stdout.print "No thread ##{num}\n"
+ throw :debug_error
+ end
+ th
+ end
- when /^(?:sw(?:itch)?\s+)?(\d+)/
- make_thread_list
- th = get_thread($1.to_i)
+ def thread_list(num)
+ th = get_thread(num)
if th == Thread.current
- @stdout.print "It's the current thread.\n"
+ @stdout.print "+"
else
- thread_list(@thread_list[th])
- context(th).stop_next
- th.run
- return :cont
+ @stdout.print " "
end
+ @stdout.printf "%d ", num
+ @stdout.print th.inspect, "\t"
+ file = context(th).instance_eval{@file}
+ if file
+ @stdout.print file,":",context(th).instance_eval{@line}
+ end
+ @stdout.print "\n"
+ end
- when /^stop\s+(\d+)/
- make_thread_list
- th = get_thread($1.to_i)
- if th == Thread.current
- @stdout.print "It's the current thread.\n"
- elsif th.stop?
- @stdout.print "Already stopped.\n"
- else
- thread_list(@thread_list[th])
- context(th).suspend
+ def thread_list_all
+ for th in @thread_list.values.sort
+ thread_list(th)
end
+ end
- when /^resume\s+(\d+)/
- make_thread_list
- th = get_thread($1.to_i)
- if th == Thread.current
- @stdout.print "It's the current thread.\n"
- elsif !th.stop?
- @stdout.print "Already running."
- else
- thread_list(@thread_list[th])
- th.run
+ def make_thread_list
+ hash = {}
+ for th in Thread::list
+ if @thread_list.key? th
+ hash[th] = @thread_list[th]
+ else
+ @max_thread += 1
+ hash[th] = @max_thread
+ end
+ end
+ @thread_list = hash
+ end
+
+ def debug_thread_info(input, binding)
+ case input
+ when /^l(?:ist)?/
+ make_thread_list
+ thread_list_all
+
+ when /^c(?:ur(?:rent)?)?$/
+ make_thread_list
+ thread_list(@thread_list[Thread.current])
+
+ when /^(?:sw(?:itch)?\s+)?(\d+)/
+ make_thread_list
+ th = get_thread($1.to_i)
+ if th == Thread.current
+ @stdout.print "It's the current thread.\n"
+ else
+ thread_list(@thread_list[th])
+ context(th).stop_next
+ th.run
+ return :cont
+ end
+
+ when /^stop\s+(\d+)/
+ make_thread_list
+ th = get_thread($1.to_i)
+ if th == Thread.current
+ @stdout.print "It's the current thread.\n"
+ elsif th.stop?
+ @stdout.print "Already stopped.\n"
+ else
+ thread_list(@thread_list[th])
+ context(th).suspend
+ end
+
+ when /^resume\s+(\d+)/
+ make_thread_list
+ th = get_thread($1.to_i)
+ if th == Thread.current
+ @stdout.print "It's the current thread.\n"
+ elsif !th.stop?
+ @stdout.print "Already running."
+ else
+ thread_list(@thread_list[th])
+ th.run
+ end
end
end
end
-end
-stdout.printf "Debug.rb\n"
-stdout.printf "Emacs support available.\n\n"
-RubyVM::InstructionSequence.compile_option = {
- trace_instruction: true
-}
-set_trace_func proc { |event, file, line, id, binding, klass, *rest|
- DEBUGGER__.context.trace_func event, file, line, id, binding, klass
-}
+ stdout.printf "Debug.rb\n"
+ stdout.printf "Emacs support available.\n\n"
+ RubyVM::InstructionSequence.compile_option = {
+ trace_instruction: true
+ }
+ set_trace_func proc { |event, file, line, id, binding, klass, *rest|
+ DEBUGGER__.context.trace_func event, file, line, id, binding, klass
+ }
end
diff --git a/lib/delegate.rb b/lib/delegate.rb
index 5fc0cafb4b..2086a721f9 100644
--- a/lib/delegate.rb
+++ b/lib/delegate.rb
@@ -1,9 +1,8 @@
# = delegate -- Support for the Delegation Pattern
#
# Documentation by James Edward Gray II and Gavin Sinclair
-#
-# == Introduction
-#
+
+##
# This library provides three different ways to delegate method calls to an
# object. The easiest to use is SimpleDelegator. Pass an object to the
# constructor and all methods supported by the object will be delegated. This
@@ -15,109 +14,46 @@
#
# Finally, if you need full control over the delegation scheme, you can inherit
# from the abstract class Delegator and customize as needed. (If you find
-# yourself needing this control, have a look at _forwardable_, also in the
-# standard library. It may suit your needs better.)
-#
-# == Notes
-#
-# Be advised, RDoc will not detect delegated methods.
-#
-# <b>delegate.rb provides full-class delegation via the
-# DelegateClass() method. For single-method delegation via
-# def_delegator(), see forwardable.rb.</b>
-#
-# == Examples
-#
-# === SimpleDelegator
+# yourself needing this control, have a look at Forwardable which is also in
+# the standard library. It may suit your needs better.)
#
-# Here's a simple example that takes advantage of the fact that
-# SimpleDelegator's delegation object can be changed at any time.
+# SimpleDelegator's implementation serves as a nice example if the use of
+# Delegator:
#
-# class Stats
-# def initialize
-# @source = SimpleDelegator.new([])
+# class SimpleDelegator < Delegator
+# def initialize(obj)
+# super # pass obj to Delegator constructor, required
+# @delegate_sd_obj = obj # store obj for future use
# end
#
-# def stats( records )
-# @source.__setobj__(records)
-#
-# "Elements: #{@source.size}\n" +
-# " Non-Nil: #{@source.compact.size}\n" +
-# " Unique: #{@source.uniq.size}\n"
+# def __getobj__
+# @delegate_sd_obj # return object we are delegating to, required
# end
-# end
-#
-# s = Stats.new
-# puts s.stats(%w{James Edward Gray II})
-# puts
-# puts s.stats([1, 2, 3, nil, 4, 5, 1, 2])
-#
-# <i>Prints:</i>
-#
-# Elements: 4
-# Non-Nil: 4
-# Unique: 4
-#
-# Elements: 8
-# Non-Nil: 7
-# Unique: 6
-#
-# === DelegateClass()
-#
-# Here's a sample of use from <i>tempfile.rb</i>.
-#
-# A _Tempfile_ object is really just a _File_ object with a few special rules
-# about storage location and/or when the File should be deleted. That makes for
-# an almost textbook perfect example of how to use delegation.
-#
-# class Tempfile < DelegateClass(File)
-# # constant and class member data initialization...
-#
-# def initialize(basename, tmpdir=Dir::tmpdir)
-# # build up file path/name in var tmpname...
-#
-# @tmpfile = File.open(tmpname, File::RDWR|File::CREAT|File::EXCL, 0600)
-#
-# # ...
-#
-# super(@tmpfile)
#
-# # below this point, all methods of File are supported...
+# def __setobj__(obj)
+# @delegate_sd_obj = obj # change delegation object,
+# # a feature we're providing
# end
-#
-# # ...
# end
#
-# === Delegator
-#
-# SimpleDelegator's implementation serves as a nice example here.
-#
-# class SimpleDelegator < Delegator
-# def initialize(obj)
-# super # pass obj to Delegator constructor, required
-# @delegate_sd_obj = obj # store obj for future use
-# end
-#
-# def __getobj__
-# @delegate_sd_obj # return object we are delegating to, required
-# end
+# == Notes
#
-# def __setobj__(obj)
-# @delegate_sd_obj = obj # change delegation object, a feature we're providing
-# end
+# Be advised, RDoc will not detect delegated methods.
#
-# # ...
-# end
+class Delegator < BasicObject
+ kernel = ::Kernel.dup
+ kernel.class_eval do
+ [:to_s,:inspect,:=~,:!~,:===,:<=>,:eql?,:hash].each do |m|
+ undef_method m
+ end
+ end
+ include kernel
-#
-# Delegator is an abstract class used to build delegator pattern objects from
-# subclasses. Subclasses should redefine \_\_getobj\_\_. For a concrete
-# implementation, see SimpleDelegator.
-#
-class Delegator
- [:to_s,:inspect,:=~,:!~,:===].each do |m|
- undef_method m
+ # :stopdoc:
+ def self.const_missing(n)
+ ::Object.const_get(n)
end
+ # :startdoc:
#
# Pass in the _obj_ to delegate method calls to. All methods supported by
@@ -127,32 +63,59 @@ class Delegator
__setobj__(obj)
end
+ #
# Handles the magic of delegation through \_\_getobj\_\_.
+ #
def method_missing(m, *args, &block)
+ target = self.__getobj__
begin
- target = self.__getobj__
- unless target.respond_to?(m)
- super(m, *args, &block)
- else
- target.__send__(m, *args, &block)
- end
- rescue Exception
- $@.delete_if{|s| %r"\A#{__FILE__}:\d+:in `method_missing'\z"o =~ s}
- ::Kernel::raise
+ target.respond_to?(m) ? target.__send__(m, *args, &block) : super(m, *args, &block)
+ ensure
+ $@.delete_if {|t| %r"\A#{Regexp.quote(__FILE__)}:#{__LINE__-2}:"o =~ t} if $@
end
end
#
- # Checks for a method provided by this the delegate object by fowarding the
+ # Checks for a method provided by this the delegate object by forwarding the
# call through \_\_getobj\_\_.
#
- def respond_to?(m, include_private = false)
- return true if super
- return self.__getobj__.respond_to?(m, include_private)
+ def respond_to_missing?(m, include_private)
+ r = self.__getobj__.respond_to?(m, include_private)
+ if r && include_private && !self.__getobj__.respond_to?(m, false)
+ warn "#{caller(3)[0]}: delegator does not forward private method \##{m}"
+ return false
+ end
+ r
+ end
+
+ #
+ # Returns the methods available to this delegate object as the union
+ # of this object's and \_\_getobj\_\_ methods.
+ #
+ def methods
+ __getobj__.methods | super
+ end
+
+ #
+ # Returns the methods available to this delegate object as the union
+ # of this object's and \_\_getobj\_\_ public methods.
+ #
+ def public_methods(all=true)
+ __getobj__.public_methods(all) | super
+ end
+
+ #
+ # Returns the methods available to this delegate object as the union
+ # of this object's and \_\_getobj\_\_ protected methods.
+ #
+ def protected_methods(all=true)
+ __getobj__.protected_methods(all) | super
end
+ # Note: no need to specialize private_methods, since they are not forwarded
+
#
- # Returns true if two objects are considered same.
+ # Returns true if two objects are considered of equal value.
#
def ==(obj)
return true if obj.equal?(self)
@@ -160,6 +123,18 @@ class Delegator
end
#
+ # Returns true if two objects are not considered of equal value.
+ #
+ def !=(obj)
+ return false if obj.equal?(self)
+ __getobj__ != obj
+ end
+
+ def !
+ !__getobj__
+ end
+
+ #
# This method must be overridden by subclasses and should return the object
# method calls are being delegated to.
#
@@ -175,34 +150,114 @@ class Delegator
raise NotImplementedError, "need to define `__setobj__'"
end
+ #
# Serialization support for the object returned by \_\_getobj\_\_.
+ #
def marshal_dump
- __getobj__
+ ivars = instance_variables.reject {|var| /\A@delegate_/ =~ var}
+ [
+ :__v2__,
+ ivars, ivars.map{|var| instance_variable_get(var)},
+ __getobj__
+ ]
end
+
+ #
# Reinitializes delegation from a serialized object.
- def marshal_load(obj)
- __setobj__(obj)
+ #
+ def marshal_load(data)
+ version, vars, values, obj = data
+ if version == :__v2__
+ vars.each_with_index{|var, i| instance_variable_set(var, values[i])}
+ __setobj__(obj)
+ else
+ __setobj__(data)
+ end
+ end
+
+ def initialize_clone(obj) # :nodoc:
+ self.__setobj__(obj.__getobj__.clone)
end
+ def initialize_dup(obj) # :nodoc:
+ self.__setobj__(obj.__getobj__.dup)
+ end
+ private :initialize_clone, :initialize_dup
+
+ ##
+ # :method: trust
+ # Trust both the object returned by \_\_getobj\_\_ and self.
+ #
+
+ ##
+ # :method: untrust
+ # Untrust both the object returned by \_\_getobj\_\_ and self.
+ #
+
+ ##
+ # :method: taint
+ # Taint both the object returned by \_\_getobj\_\_ and self.
+ #
- # Clone support for the object returned by \_\_getobj\_\_.
- def clone
- new = super
- new.__setobj__(__getobj__.clone)
- new
+ ##
+ # :method: untaint
+ # Untaint both the object returned by \_\_getobj\_\_ and self.
+ #
+
+ ##
+ # :method: freeze
+ # Freeze both the object returned by \_\_getobj\_\_ and self.
+ #
+
+ [:trust, :untrust, :taint, :untaint, :freeze].each do |method|
+ define_method method do
+ __getobj__.send(method)
+ super()
+ end
end
- # Duplication support for the object returned by \_\_getobj\_\_.
- def dup
- new = super
- new.__setobj__(__getobj__.dup)
- new
+
+ @delegator_api = self.public_instance_methods
+ def self.public_api # :nodoc:
+ @delegator_api
end
end
-#
+##
# A concrete implementation of Delegator, this class provides the means to
# delegate all supported method calls to the object passed into the constructor
# and even to change the object being delegated to at a later time with
-# \_\_setobj\_\_ .
+# #__setobj__.
+#
+# Here's a simple example that takes advantage of the fact that
+# SimpleDelegator's delegation object can be changed at any time.
+#
+# class Stats
+# def initialize
+# @source = SimpleDelegator.new([])
+# end
+#
+# def stats(records)
+# @source.__setobj__(records)
+#
+# "Elements: #{@source.size}\n" +
+# " Non-Nil: #{@source.compact.size}\n" +
+# " Unique: #{@source.uniq.size}\n"
+# end
+# end
+#
+# s = Stats.new
+# puts s.stats(%w{James Edward Gray II})
+# puts
+# puts s.stats([1, 2, 3, nil, 4, 5, 1, 2])
+#
+# Prints:
+#
+# Elements: 4
+# Non-Nil: 4
+# Unique: 4
+#
+# Elements: 8
+# Non-Nil: 7
+# Unique: 6
#
class SimpleDelegator<Delegator
# Returns the current object method calls are being delegated to.
@@ -233,12 +288,11 @@ end
# :stopdoc:
def Delegator.delegating_block(mid)
lambda do |*args, &block|
+ target = self.__getobj__
begin
- __getobj__.__send__(mid, *args, &block)
- rescue
- re = /\A#{Regexp.quote(__FILE__)}:#{__LINE__-2}:/o
- $!.backtrace.delete_if {|t| re =~ t}
- raise
+ target.__send__(mid, *args, &block)
+ ensure
+ $@.delete_if {|t| /\A#{Regexp.quote(__FILE__)}:#{__LINE__-2}:/o =~ t} if $@
end
end
end
@@ -248,18 +302,41 @@ end
# The primary interface to this library. Use to setup delegation when defining
# your class.
#
-# class MyClass < DelegateClass( ClassToDelegateTo ) # Step 1
+# class MyClass < DelegateClass(ClassToDelegateTo) # Step 1
# def initialize
-# super(obj_of_ClassToDelegateTo) # Step 2
+# super(obj_of_ClassToDelegateTo) # Step 2
+# end
+# end
+#
+# Here's a sample of use from Tempfile which is really a File object with a
+# few special rules about storage location and when the File should be
+# deleted. That makes for an almost textbook perfect example of how to use
+# delegation.
+#
+# class Tempfile < DelegateClass(File)
+# # constant and class member data initialization...
+#
+# def initialize(basename, tmpdir=Dir::tmpdir)
+# # build up file path/name in var tmpname...
+#
+# @tmpfile = File.open(tmpname, File::RDWR|File::CREAT|File::EXCL, 0600)
+#
+# # ...
+#
+# super(@tmpfile)
+#
+# # below this point, all methods of File are supported...
# end
+#
+# # ...
# end
#
def DelegateClass(superclass)
klass = Class.new(Delegator)
- methods = superclass.public_instance_methods(true)
- methods -= ::Delegator.public_instance_methods
+ methods = superclass.instance_methods
+ methods -= ::Delegator.public_api
methods -= [:to_s,:inspect,:=~,:!~,:===]
- klass.module_eval {
+ klass.module_eval do
def __getobj__ # :nodoc:
@delegate_dc_obj
end
@@ -267,12 +344,16 @@ def DelegateClass(superclass)
raise ArgumentError, "cannot delegate to self" if self.equal?(obj)
@delegate_dc_obj = obj
end
- }
- klass.module_eval do
methods.each do |method|
define_method(method, Delegator.delegating_block(method))
end
end
+ klass.define_singleton_method :public_instance_methods do |all=true|
+ super(all) - superclass.protected_instance_methods
+ end
+ klass.define_singleton_method :protected_instance_methods do |all=true|
+ super(all) | superclass.protected_instance_methods
+ end
return klass
end
@@ -305,7 +386,7 @@ if __FILE__ == $0
foo2 = SimpleDelegator.new(foo)
p foo2
foo2.instance_eval{print "foo\n"}
- p foo.test == foo2.test # => true
+ p foo.test == foo2.test # => true
p foo2.iter{[55,true]} # => true
- foo2.error # raise error!
+ foo2.error # raise error!
end
diff --git a/lib/drb/acl.rb b/lib/drb/acl.rb
index 861c8a514d..29a378199f 100644
--- a/lib/drb/acl.rb
+++ b/lib/drb/acl.rb
@@ -1,5 +1,3 @@
-# acl-2.0 - simple Access Control List
-#
# Copyright (c) 2000,2002,2003 Masatoshi SEKI
#
# acl.rb is copyrighted free software by Masatoshi SEKI.
@@ -7,80 +5,170 @@
require 'ipaddr'
+##
+# Simple Access Control Lists.
+#
+# Access control lists are composed of "allow" and "deny" halves to control
+# access. Use "all" or "*" to match any address. To match a specific address
+# use any address or address mask that IPAddr can understand.
+#
+# Example:
+#
+# list = %w[
+# deny all
+# allow 192.168.1.1
+# allow ::ffff:192.168.1.2
+# allow 192.168.1.3
+# ]
+#
+# # From Socket#peeraddr, see also ACL#allow_socket?
+# addr = ["AF_INET", 10, "lc630", "192.168.1.3"]
+#
+# acl = ACL.new
+# p acl.allow_addr?(addr) # => true
+#
+# acl = ACL.new(list, ACL::DENY_ALLOW)
+# p acl.allow_addr?(addr) # => true
+
class ACL
+
+ ##
+ # The current version of ACL
+
VERSION=["2.0.0"]
+
+ ##
+ # An entry in an ACL
+
class ACLEntry
+
+ ##
+ # Creates a new entry using +str+.
+ #
+ # +str+ may be "*" or "all" to match any address, an IP address string
+ # to match a specific address, an IP address mask per IPAddr, or one
+ # containing "*" to match part of an IPv4 address.
+
def initialize(str)
if str == '*' or str == 'all'
- @pat = [:all]
+ @pat = [:all]
elsif str.include?('*')
@pat = [:name, dot_pat(str)]
else
- begin
- @pat = [:ip, IPAddr.new(str)]
- rescue ArgumentError
- @pat = [:name, dot_pat(str)]
- end
+ begin
+ @pat = [:ip, IPAddr.new(str)]
+ rescue ArgumentError
+ @pat = [:name, dot_pat(str)]
+ end
end
end
private
+
+ ##
+ # Creates a regular expression to match IPv4 addresses
+
def dot_pat_str(str)
list = str.split('.').collect { |s|
- (s == '*') ? '.+' : s
+ (s == '*') ? '.+' : s
}
list.join("\\.")
end
private
+
+ ##
+ # Creates a Regexp to match an address.
+
def dot_pat(str)
exp = "^" + dot_pat_str(str) + "$"
Regexp.new(exp)
end
public
+
+ ##
+ # Matches +addr+ against this entry.
+
def match(addr)
case @pat[0]
when :all
- true
+ true
when :ip
- begin
- ipaddr = IPAddr.new(addr[3])
- ipaddr = ipaddr.ipv4_mapped if @pat[1].ipv6? && ipaddr.ipv4?
- rescue ArgumentError
- return false
- end
- (@pat[1].include?(ipaddr)) ? true : false
+ begin
+ ipaddr = IPAddr.new(addr[3])
+ ipaddr = ipaddr.ipv4_mapped if @pat[1].ipv6? && ipaddr.ipv4?
+ rescue ArgumentError
+ return false
+ end
+ (@pat[1].include?(ipaddr)) ? true : false
when :name
- (@pat[1] =~ addr[2]) ? true : false
+ (@pat[1] =~ addr[2]) ? true : false
else
- false
+ false
end
end
end
+ ##
+ # A list of ACLEntry objects. Used to implement the allow and deny halves
+ # of an ACL
+
class ACLList
+
+ ##
+ # Creates an empty ACLList
+
def initialize
@list = []
end
public
+
+ ##
+ # Matches +addr+ against each ACLEntry in this list.
+
def match(addr)
@list.each do |e|
- return true if e.match(addr)
+ return true if e.match(addr)
end
false
end
public
+
+ ##
+ # Adds +str+ as an ACLEntry in this list
+
def add(str)
@list.push(ACLEntry.new(str))
end
+
end
+ ##
+ # Default to deny
+
DENY_ALLOW = 0
+
+ ##
+ # Default to allow
+
ALLOW_DENY = 1
+ ##
+ # Creates a new ACL from +list+ with an evaluation +order+ of DENY_ALLOW or
+ # ALLOW_DENY.
+ #
+ # An ACL +list+ is an Array of "allow" or "deny" and an address or address
+ # mask or "all" or "*" to match any address:
+ #
+ # %w[
+ # deny all
+ # allow 192.0.2.2
+ # allow 192.0.2.128/26
+ # ]
+
def initialize(list=nil, order = DENY_ALLOW)
@order = order
@deny = ACLList.new
@@ -89,11 +177,22 @@ class ACL
end
public
+
+ ##
+ # Allow connections from Socket +soc+?
+
def allow_socket?(soc)
allow_addr?(soc.peeraddr)
end
public
+
+ ##
+ # Allow connections from addrinfo +addr+? It must be formatted like
+ # Socket#peeraddr:
+ #
+ # ["AF_INET", 10, "lc630", "192.0.2.1"]
+
def allow_addr?(addr)
case @order
when DENY_ALLOW
@@ -110,27 +209,32 @@ class ACL
end
public
+
+ ##
+ # Adds +list+ of ACL entries to this ACL.
+
def install_list(list)
i = 0
while i < list.size
permission, domain = list.slice(i,2)
case permission.downcase
when 'allow'
- @allow.add(domain)
+ @allow.add(domain)
when 'deny'
- @deny.add(domain)
+ @deny.add(domain)
else
- raise "Invalid ACL entry #{list.to_s}"
+ raise "Invalid ACL entry #{list.to_s}"
end
i += 2
end
end
+
end
if __FILE__ == $0
# example
list = %w(deny all
- allow 192.168.1.1
+ allow 192.168.1.1
allow ::ffff:192.168.1.2
allow 192.168.1.3
)
diff --git a/lib/drb/drb.rb b/lib/drb/drb.rb
index a2c11f980d..69456b1db2 100644
--- a/lib/drb/drb.rb
+++ b/lib/drb/drb.rb
@@ -466,11 +466,11 @@ module DRb
def initialize(err, buf)
case err.to_s
when /uninitialized constant (\S+)/
- @name = $1
+ @name = $1
when /undefined class\/module (\S+)/
- @name = $1
+ @name = $1
else
- @name = nil
+ @name = nil
end
@buf = buf
end
@@ -486,9 +486,9 @@ module DRb
def self._load(s) # :nodoc:
begin
- Marshal::load(s)
+ Marshal::load(s)
rescue NameError, ArgumentError
- DRbUnknown.new($!, s)
+ DRbUnknown.new($!, s)
end
end
@@ -514,16 +514,16 @@ module DRb
class DRbArray
def initialize(ary)
@ary = ary.collect { |obj|
- if obj.kind_of? DRbUndumped
- DRbObject.new(obj)
- else
- begin
- Marshal.dump(obj)
- obj
- rescue
- DRbObject.new(obj)
- end
- end
+ if obj.kind_of? DRbUndumped
+ DRbObject.new(obj)
+ else
+ begin
+ Marshal.dump(obj)
+ obj
+ rescue
+ DRbObject.new(obj)
+ end
+ end
}
end
@@ -554,16 +554,16 @@ module DRb
def dump(obj, error=false) # :nodoc:
obj = make_proxy(obj, error) if obj.kind_of? DRbUndumped
begin
- str = Marshal::dump(obj)
+ str = Marshal::dump(obj)
rescue
- str = Marshal::dump(make_proxy(obj, error))
+ str = Marshal::dump(make_proxy(obj, error))
end
[str.size].pack('N') + str
end
def load(soc) # :nodoc:
begin
- sz = soc.read(4) # sizeof (N)
+ sz = soc.read(4) # sizeof (N)
rescue
raise(DRbConnError, $!.message, $!.backtrace)
end
@@ -600,7 +600,7 @@ module DRb
ary.push(dump(msg_id.id2name))
ary.push(dump(arg.length))
arg.each do |e|
- ary.push(dump(e))
+ ary.push(dump(e))
end
ary.push(dump(b))
stream.write(ary.join(''))
@@ -613,10 +613,10 @@ module DRb
ro = DRb.to_obj(ref)
msg = load(stream)
argc = load(stream)
- raise ArgumentError, 'too many arguments' if @argc_limit < argc
+ raise(DRbConnError, "too many arguments") if @argc_limit < argc
argv = Array.new(argc, nil)
argc.times do |n|
- argv[n] = load(stream)
+ argv[n] = load(stream)
end
block = load(stream)
return ro, msg, argv, block
@@ -727,18 +727,18 @@ module DRb
# URI, but an error occurs in opening it, a DRbConnError is raised.
def open(uri, config, first=true)
@protocol.each do |prot|
- begin
- return prot.open(uri, config)
- rescue DRbBadScheme
- rescue DRbConnError
- raise($!)
- rescue
- raise(DRbConnError, "#{uri} - #{$!.inspect}")
- end
+ begin
+ return prot.open(uri, config)
+ rescue DRbBadScheme
+ rescue DRbConnError
+ raise($!)
+ rescue
+ raise(DRbConnError, "#{uri} - #{$!.inspect}")
+ end
end
if first && (config[:auto_load] != false)
- auto_load(uri, config)
- return open(uri, config, false)
+ auto_load(uri, config)
+ return open(uri, config, false)
end
raise DRbBadURI, 'can\'t parse uri:' + uri
end
@@ -755,14 +755,14 @@ module DRb
# error is passed on to the caller.
def open_server(uri, config, first=true)
@protocol.each do |prot|
- begin
- return prot.open_server(uri, config)
- rescue DRbBadScheme
- end
+ begin
+ return prot.open_server(uri, config)
+ rescue DRbBadScheme
+ end
end
if first && (config[:auto_load] != false)
- auto_load(uri, config)
- return open_server(uri, config, false)
+ auto_load(uri, config)
+ return open_server(uri, config, false)
end
raise DRbBadURI, 'can\'t parse uri:' + uri
end
@@ -776,15 +776,15 @@ module DRb
# URI, then a DRbBadURI error is raised.
def uri_option(uri, config, first=true)
@protocol.each do |prot|
- begin
- uri, opt = prot.uri_option(uri, config)
- # opt = nil if opt == ''
- return uri, opt
- rescue DRbBadScheme
- end
+ begin
+ uri, opt = prot.uri_option(uri, config)
+ # opt = nil if opt == ''
+ return uri, opt
+ rescue DRbBadScheme
+ end
end
if first && (config[:auto_load] != false)
- auto_load(uri, config)
+ auto_load(uri, config)
return uri_option(uri, config, false)
end
raise DRbBadURI, 'can\'t parse uri:' + uri
@@ -793,7 +793,7 @@ module DRb
def auto_load(uri, config) # :nodoc:
if uri =~ /^drb([a-z0-9]+):/
- require("drb/#{$1}") rescue nil
+ require("drb/#{$1}") rescue nil
end
end
module_function :auto_load
@@ -806,13 +806,13 @@ module DRb
private
def self.parse_uri(uri)
if uri =~ /^druby:\/\/(.*?):(\d+)(\?(.*))?$/
- host = $1
- port = $2.to_i
- option = $4
- [host, port, option]
+ host = $1
+ port = $2.to_i
+ option = $4
+ [host, port, option]
else
- raise(DRbBadScheme, uri) unless uri =~ /^druby:/
- raise(DRbBadURI, 'can\'t parse uri:' + uri)
+ raise(DRbBadScheme, uri) unless uri =~ /^druby:/
+ raise(DRbBadURI, 'can\'t parse uri:' + uri)
end
end
@@ -820,7 +820,7 @@ module DRb
# Open a client connection to +uri+ using configuration +config+.
def self.open(uri, config)
- host, port, option = parse_uri(uri)
+ host, port, = parse_uri(uri)
host.untaint
port.untaint
soc = TCPSocket.open(host, port)
@@ -852,13 +852,13 @@ module DRb
# configuration +config+.
def self.open_server(uri, config)
uri = 'druby://:0' unless uri
- host, port, opt = parse_uri(uri)
+ host, port, _ = parse_uri(uri)
config = {:tcp_original_host => host}.update(config)
if host.size == 0
host = getservername
soc = open_server_inaddr_any(host, port)
else
- soc = TCPServer.open(host, port)
+ soc = TCPServer.open(host, port)
end
port = soc.addr[1] if port == 0
config[:tcp_port] = port
@@ -928,8 +928,8 @@ module DRb
# client-server session.
def close
if @socket
- @socket.close
- @socket = nil
+ @socket.close
+ @socket = nil
end
end
@@ -938,9 +938,9 @@ module DRb
# the server's side of this client-server session.
def accept
while true
- s = @socket.accept
- break if (@acl ? @acl.allow_socket?(s) : true)
- s.close
+ s = @socket.accept
+ break if (@acl ? @acl.allow_socket?(s) : true)
+ s.close
end
if @config[:tcp_original_host].to_s.size == 0
uri = "druby://#{s.addr[3]}:#{@config[:tcp_port]}"
@@ -954,8 +954,8 @@ module DRb
def alive?
return false unless @socket
if IO.select([@socket], nil, nil, 0)
- close
- return false
+ close
+ return false
end
true
end
@@ -1004,7 +1004,7 @@ module DRb
uri, ref = Marshal.load(s)
if DRb.here?(uri)
- obj = DRb.to_obj(ref)
+ obj = DRb.to_obj(ref)
if ((! obj.tainted?) && Thread.current[:drb_untaint])
Thread.current[:drb_untaint].push(obj)
end
@@ -1042,12 +1042,12 @@ module DRb
@uri = nil
@ref = nil
if obj.nil?
- return if uri.nil?
- @uri, option = DRbProtocol.uri_option(uri, DRb.config)
- @ref = DRbURIOption.new(option) unless option.nil?
+ return if uri.nil?
+ @uri, option = DRbProtocol.uri_option(uri, DRb.config)
+ @ref = DRbURIOption.new(option) unless option.nil?
else
- @uri = uri ? uri : (DRb.uri rescue nil)
- @ref = obj ? DRb.to_id(obj) : nil
+ @uri = uri ? uri : (DRb.uri rescue nil)
+ @ref = obj ? DRb.to_id(obj) : nil
end
end
@@ -1078,9 +1078,9 @@ module DRb
# Routes method calls to the referenced object.
def method_missing(msg_id, *a, &b)
if DRb.here?(@uri)
- obj = DRb.to_obj(@ref)
- DRb.current_server.check_insecure_method(obj, msg_id)
- return obj.__send__(msg_id, *a, &b)
+ obj = DRb.to_obj(@ref)
+ DRb.current_server.check_insecure_method(obj, msg_id)
+ return obj.__send__(msg_id, *a, &b)
end
succ, result = self.class.with_friend(@uri) do
@@ -1095,7 +1095,7 @@ module DRb
raise result
else
bt = self.class.prepare_backtrace(@uri, result)
- result.set_backtrace(bt + caller)
+ result.set_backtrace(bt + caller)
raise result
end
end
@@ -1153,36 +1153,36 @@ module DRb
def self.open(remote_uri) # :nodoc:
begin
- conn = nil
-
- @mutex.synchronize do
- #FIXME
- new_pool = []
- @pool.each do |c|
- if conn.nil? and c.uri == remote_uri
- conn = c if c.alive?
- else
- new_pool.push c
- end
- end
- @pool = new_pool
- end
-
- conn = self.new(remote_uri) unless conn
- succ, result = yield(conn)
- return succ, result
+ conn = nil
+
+ @mutex.synchronize do
+ #FIXME
+ new_pool = []
+ @pool.each do |c|
+ if conn.nil? and c.uri == remote_uri
+ conn = c if c.alive?
+ else
+ new_pool.push c
+ end
+ end
+ @pool = new_pool
+ end
+
+ conn = self.new(remote_uri) unless conn
+ succ, result = yield(conn)
+ return succ, result
ensure
- if conn
- if succ
- @mutex.synchronize do
- @pool.unshift(conn)
- @pool.pop.close while @pool.size > POOL_SIZE
- end
- else
- conn.close
- end
- end
+ if conn
+ if succ
+ @mutex.synchronize do
+ @pool.unshift(conn)
+ @pool.pop.close while @pool.size > POOL_SIZE
+ end
+ else
+ conn.close
+ end
+ end
end
end
@@ -1274,11 +1274,11 @@ module DRb
def self.make_config(hash={}) # :nodoc:
default_config = {
- :idconv => @@idconv,
- :verbose => @@verbose,
- :tcp_acl => @@acl,
- :load_limit => @@load_limit,
- :argc_limit => @@argc_limit,
+ :idconv => @@idconv,
+ :verbose => @@verbose,
+ :tcp_acl => @@acl,
+ :load_limit => @@load_limit,
+ :argc_limit => @@argc_limit,
:safe_level => @@safe_level
}
default_config.update(hash)
@@ -1329,18 +1329,19 @@ module DRb
# The server will immediately start running in its own thread.
def initialize(uri=nil, front=nil, config_or_acl=nil)
if Hash === config_or_acl
- config = config_or_acl.dup
+ config = config_or_acl.dup
else
- acl = config_or_acl || @@acl
- config = {
- :tcp_acl => acl
- }
+ acl = config_or_acl || @@acl
+ config = {
+ :tcp_acl => acl
+ }
end
@config = self.class.make_config(config)
@protocol = DRbProtocol.open_server(uri, @config)
@uri = @protocol.uri
+ @exported_uri = [@uri]
@front = front
@idconv = @config[:idconv]
@@ -1387,6 +1388,10 @@ module DRb
def alive?
@thread.alive?
end
+
+ def here?(uri)
+ @exported_uri.include?(uri)
+ end
# Stop this server.
def stop_service
@@ -1394,7 +1399,7 @@ module DRb
if Thread.current['DRb'] && Thread.current['DRb']['server'] == self
Thread.current['DRb']['stop_service'] = true
else
- @thread.kill
+ @thread.kill.join
end
end
@@ -1412,30 +1417,15 @@ module DRb
end
private
- def kill_sub_thread
- Thread.new do
- grp = ThreadGroup.new
- grp.add(Thread.current)
- list = @grp.list
- while list.size > 0
- list.each do |th|
- th.kill if th.alive?
- end
- list = @grp.list
- end
- end
- end
-
def run
Thread.start do
- begin
- while true
- main_loop
- end
- ensure
- @protocol.close if @protocol
- kill_sub_thread
- end
+ begin
+ while true
+ main_loop
+ end
+ ensure
+ @protocol.close if @protocol
+ end
end
end
@@ -1473,10 +1463,10 @@ module DRb
raise(SecurityError, "insecure method `#{msg_id}'") if insecure_method?(msg_id)
if obj.private_methods.include?(msg_id)
- desc = any_to_s(obj)
+ desc = any_to_s(obj)
raise NoMethodError, "private method `#{msg_id}' called for #{desc}"
elsif obj.protected_methods.include?(msg_id)
- desc = any_to_s(obj)
+ desc = any_to_s(obj)
raise NoMethodError, "protected method `#{msg_id}' called for #{desc}"
else
true
@@ -1486,15 +1476,15 @@ module DRb
class InvokeMethod # :nodoc:
def initialize(drb_server, client)
- @drb_server = drb_server
+ @drb_server = drb_server
@safe_level = drb_server.safe_level
- @client = client
+ @client = client
end
def perform
- @result = nil
- @succ = false
- setup_message
+ @result = nil
+ @succ = false
+ setup_message
if $SAFE < @safe_level
info = Thread.current['DRb']
@@ -1518,19 +1508,19 @@ module DRb
@result = perform_without_block
end
end
- @succ = true
- if @msg_id == :to_ary && @result.class == Array
- @result = DRbArray.new(@result)
- end
- return @succ, @result
+ @succ = true
+ if @msg_id == :to_ary && @result.class == Array
+ @result = DRbArray.new(@result)
+ end
+ return @succ, @result
rescue StandardError, ScriptError, Interrupt
- @result = $!
- return @succ, @result
+ @result = $!
+ return @succ, @result
end
private
def init_with_client
- obj, msg, argv, block = @client.recv_request
+ obj, msg, argv, block = @client.recv_request
@obj = obj
@msg_id = msg.intern
@argv = argv
@@ -1542,21 +1532,21 @@ module DRb
end
def setup_message
- init_with_client
- check_insecure_method
+ init_with_client
+ check_insecure_method
end
def perform_without_block
- if Proc === @obj && @msg_id == :__drb_yield
+ if Proc === @obj && @msg_id == :__drb_yield
if @argv.size == 1
- ary = @argv
- else
- ary = [@argv]
- end
- ary.collect(&@obj)[0]
- else
- @obj.__send__(@msg_id, *@argv)
- end
+ ary = @argv
+ else
+ ary = [@argv]
+ end
+ ary.collect(&@obj)[0]
+ else
+ @obj.__send__(@msg_id, *@argv)
+ end
end
end
@@ -1582,29 +1572,33 @@ module DRb
# or a local method call fails.
def main_loop
Thread.start(@protocol.accept) do |client|
- @grp.add Thread.current
- Thread.current['DRb'] = { 'client' => client ,
- 'server' => self }
- loop do
- begin
- succ = false
- invoke_method = InvokeMethod.new(self, client)
- succ, result = invoke_method.perform
- if !succ && verbose
- p result
- result.backtrace.each do |x|
- puts x
- end
- end
- client.send_reply(succ, result) rescue nil
- ensure
+ @grp.add Thread.current
+ Thread.current['DRb'] = { 'client' => client ,
+ 'server' => self }
+ DRb.mutex.synchronize do
+ client_uri = client.uri
+ @exported_uri << client_uri unless @exported_uri.include?(client_uri)
+ end
+ loop do
+ begin
+ succ = false
+ invoke_method = InvokeMethod.new(self, client)
+ succ, result = invoke_method.perform
+ if !succ && verbose
+ p result
+ result.backtrace.each do |x|
+ puts x
+ end
+ end
+ client.send_reply(succ, result) rescue nil
+ ensure
client.close unless succ
if Thread.current['DRb']['stop_service']
Thread.new { stop_service }
end
break unless succ
- end
- end
+ end
+ end
end
end
end
@@ -1681,7 +1675,8 @@ module DRb
# Is +uri+ the URI for the current local server?
def here?(uri)
- (current_server.uri rescue nil) == uri
+ current_server.here?(uri) rescue false
+ # (current_server.uri rescue nil) == uri
end
module_function :here?
@@ -1773,6 +1768,7 @@ module DRb
module_function :fetch_server
end
+# :stopdoc:
DRbObject = DRb::DRbObject
DRbUndumped = DRb::DRbUndumped
DRbIdConv = DRb::DRbIdConv
diff --git a/lib/drb/eq.rb b/lib/drb/eq.rb
index e24512d6a7..6328c81202 100644
--- a/lib/drb/eq.rb
+++ b/lib/drb/eq.rb
@@ -1,5 +1,3 @@
-require 'drb/drb'
-
module DRb
class DRbObject
def ==(other)
diff --git a/lib/drb/extserv.rb b/lib/drb/extserv.rb
index 5996626492..bb11211cd1 100644
--- a/lib/drb/extserv.rb
+++ b/lib/drb/extserv.rb
@@ -1,6 +1,6 @@
=begin
external service
- Copyright (c) 2000,2002 Masatoshi SEKI
+ Copyright (c) 2000,2002 Masatoshi SEKI
=end
require 'drb/drb'
diff --git a/lib/drb/extservm.rb b/lib/drb/extservm.rb
index 5937cb0c50..216fe8dcee 100644
--- a/lib/drb/extservm.rb
+++ b/lib/drb/extservm.rb
@@ -1,6 +1,6 @@
=begin
external service manager
- Copyright (c) 2000 Masatoshi SEKI
+ Copyright (c) 2000 Masatoshi SEKI
=end
require 'drb/drb'
@@ -54,17 +54,17 @@ module DRb
def unregist(name)
synchronize do
- @servers.delete(name)
+ @servers.delete(name)
end
end
private
def invoke_thread
Thread.new do
- while true
- name = @queue.pop
- invoke_service_command(name, @@command[name])
- end
+ while true
+ name = @queue.pop
+ invoke_service_command(name, @@command[name])
+ end
end
end
@@ -75,8 +75,8 @@ module DRb
def invoke_service_command(name, command)
raise "invalid command. name: #{name}" unless command
synchronize do
- return if @servers.include?(name)
- @servers[name] = false
+ return if @servers.include?(name)
+ @servers[name] = false
end
uri = @uri || DRb.uri
Process.detach spawn("#{command} #{uri} #{name}")
diff --git a/lib/drb/invokemethod.rb b/lib/drb/invokemethod.rb
index 220d0ad68d..353dbd00d8 100644
--- a/lib/drb/invokemethod.rb
+++ b/lib/drb/invokemethod.rb
@@ -4,10 +4,10 @@ module DRb
class DRbServer
module InvokeMethod18Mixin
def block_yield(x)
- if x.size == 1 && x[0].class == Array
- x[0] = DRbArray.new(x[0])
- end
- block_value = @block.call(*x)
+ if x.size == 1 && x[0].class == Array
+ x[0] = DRbArray.new(x[0])
+ end
+ @block.call(*x)
end
def perform_with_block
diff --git a/lib/drb/ssl.rb b/lib/drb/ssl.rb
index 08f97f4bc6..17e2a73d85 100644
--- a/lib/drb/ssl.rb
+++ b/lib/drb/ssl.rb
@@ -10,43 +10,43 @@ module DRb
class SSLConfig
DEFAULT = {
- :SSLCertificate => nil,
- :SSLPrivateKey => nil,
- :SSLClientCA => nil,
- :SSLCACertificatePath => nil,
- :SSLCACertificateFile => nil,
- :SSLVerifyMode => ::OpenSSL::SSL::VERIFY_NONE,
- :SSLVerifyDepth => nil,
- :SSLVerifyCallback => nil, # custom verification
+ :SSLCertificate => nil,
+ :SSLPrivateKey => nil,
+ :SSLClientCA => nil,
+ :SSLCACertificatePath => nil,
+ :SSLCACertificateFile => nil,
+ :SSLVerifyMode => ::OpenSSL::SSL::VERIFY_NONE,
+ :SSLVerifyDepth => nil,
+ :SSLVerifyCallback => nil, # custom verification
:SSLCertificateStore => nil,
- # Must specify if you use auto generated certificate.
- :SSLCertName => nil, # e.g. [["CN","fqdn.example.com"]]
- :SSLCertComment => "Generated by Ruby/OpenSSL"
+ # Must specify if you use auto generated certificate.
+ :SSLCertName => nil, # e.g. [["CN","fqdn.example.com"]]
+ :SSLCertComment => "Generated by Ruby/OpenSSL"
}
def initialize(config)
- @config = config
+ @config = config
@cert = config[:SSLCertificate]
@pkey = config[:SSLPrivateKey]
@ssl_ctx = nil
end
def [](key);
- @config[key] || DEFAULT[key]
+ @config[key] || DEFAULT[key]
end
def connect(tcp)
- ssl = ::OpenSSL::SSL::SSLSocket.new(tcp, @ssl_ctx)
- ssl.sync = true
- ssl.connect
- ssl
+ ssl = ::OpenSSL::SSL::SSLSocket.new(tcp, @ssl_ctx)
+ ssl.sync = true
+ ssl.connect
+ ssl
end
def accept(tcp)
- ssl = OpenSSL::SSL::SSLSocket.new(tcp, @ssl_ctx)
- ssl.sync = true
- ssl.accept
- ssl
+ ssl = OpenSSL::SSL::SSLSocket.new(tcp, @ssl_ctx)
+ ssl.sync = true
+ ssl.accept
+ ssl
end
def setup_certificate
@@ -54,43 +54,43 @@ module DRb
return
end
- rsa = OpenSSL::PKey::RSA.new(512){|p, n|
- next unless self[:verbose]
- case p
- when 0; $stderr.putc "." # BN_generate_prime
- when 1; $stderr.putc "+" # BN_generate_prime
- when 2; $stderr.putc "*" # searching good prime,
- # n = #of try,
- # but also data from BN_generate_prime
- when 3; $stderr.putc "\n" # found good prime, n==0 - p, n==1 - q,
- # but also data from BN_generate_prime
- else; $stderr.putc "*" # BN_generate_prime
- end
- }
-
- cert = OpenSSL::X509::Certificate.new
- cert.version = 3
- cert.serial = 0
- name = OpenSSL::X509::Name.new(self[:SSLCertName])
- cert.subject = name
- cert.issuer = name
- cert.not_before = Time.now
- cert.not_after = Time.now + (365*24*60*60)
- cert.public_key = rsa.public_key
-
- ef = OpenSSL::X509::ExtensionFactory.new(nil,cert)
- cert.extensions = [
- ef.create_extension("basicConstraints","CA:FALSE"),
- ef.create_extension("subjectKeyIdentifier", "hash") ]
- ef.issuer_certificate = cert
- cert.add_extension(ef.create_extension("authorityKeyIdentifier",
- "keyid:always,issuer:always"))
- if comment = self[:SSLCertComment]
- cert.add_extension(ef.create_extension("nsComment", comment))
- end
- cert.sign(rsa, OpenSSL::Digest::SHA1.new)
-
- @cert = cert
+ rsa = OpenSSL::PKey::RSA.new(512){|p, n|
+ next unless self[:verbose]
+ case p
+ when 0; $stderr.putc "." # BN_generate_prime
+ when 1; $stderr.putc "+" # BN_generate_prime
+ when 2; $stderr.putc "*" # searching good prime,
+ # n = #of try,
+ # but also data from BN_generate_prime
+ when 3; $stderr.putc "\n" # found good prime, n==0 - p, n==1 - q,
+ # but also data from BN_generate_prime
+ else; $stderr.putc "*" # BN_generate_prime
+ end
+ }
+
+ cert = OpenSSL::X509::Certificate.new
+ cert.version = 3
+ cert.serial = 0
+ name = OpenSSL::X509::Name.new(self[:SSLCertName])
+ cert.subject = name
+ cert.issuer = name
+ cert.not_before = Time.now
+ cert.not_after = Time.now + (365*24*60*60)
+ cert.public_key = rsa.public_key
+
+ ef = OpenSSL::X509::ExtensionFactory.new(nil,cert)
+ cert.extensions = [
+ ef.create_extension("basicConstraints","CA:FALSE"),
+ ef.create_extension("subjectKeyIdentifier", "hash") ]
+ ef.issuer_certificate = cert
+ cert.add_extension(ef.create_extension("authorityKeyIdentifier",
+ "keyid:always,issuer:always"))
+ if comment = self[:SSLCertComment]
+ cert.add_extension(ef.create_extension("nsComment", comment))
+ end
+ cert.sign(rsa, OpenSSL::Digest::SHA1.new)
+
+ @cert = cert
@pkey = rsa
end
@@ -98,12 +98,12 @@ module DRb
ctx = ::OpenSSL::SSL::SSLContext.new
ctx.cert = @cert
ctx.key = @pkey
- ctx.client_ca = self[:SSLClientCA]
- ctx.ca_path = self[:SSLCACertificatePath]
- ctx.ca_file = self[:SSLCACertificateFile]
- ctx.verify_mode = self[:SSLVerifyMode]
- ctx.verify_depth = self[:SSLVerifyDepth]
- ctx.verify_callback = self[:SSLVerifyCallback]
+ ctx.client_ca = self[:SSLClientCA]
+ ctx.ca_path = self[:SSLCACertificatePath]
+ ctx.ca_file = self[:SSLCACertificateFile]
+ ctx.verify_mode = self[:SSLVerifyMode]
+ ctx.verify_depth = self[:SSLVerifyDepth]
+ ctx.verify_callback = self[:SSLVerifyCallback]
ctx.cert_store = self[:SSLCertificateStore]
@ssl_ctx = ctx
end
@@ -111,18 +111,18 @@ module DRb
def self.parse_uri(uri)
if uri =~ /^drbssl:\/\/(.*?):(\d+)(\?(.*))?$/
- host = $1
- port = $2.to_i
- option = $4
- [host, port, option]
+ host = $1
+ port = $2.to_i
+ option = $4
+ [host, port, option]
else
- raise(DRbBadScheme, uri) unless uri =~ /^drbssl:/
- raise(DRbBadURI, 'can\'t parse uri:' + uri)
+ raise(DRbBadScheme, uri) unless uri =~ /^drbssl:/
+ raise(DRbBadURI, 'can\'t parse uri:' + uri)
end
end
def self.open(uri, config)
- host, port, option = parse_uri(uri)
+ host, port, = parse_uri(uri)
host.untaint
port.untaint
soc = TCPSocket.open(host, port)
@@ -134,12 +134,12 @@ module DRb
def self.open_server(uri, config)
uri = 'drbssl://:0' unless uri
- host, port, opt = parse_uri(uri)
+ host, port, = parse_uri(uri)
if host.size == 0
host = getservername
soc = open_server_inaddr_any(host, port)
else
- soc = TCPServer.open(host, port)
+ soc = TCPServer.open(host, port)
end
port = soc.addr[1] if port == 0
@uri = "drbssl://#{host}:#{port}"
@@ -164,8 +164,8 @@ module DRb
def close
if @ssl
- @ssl.close
- @ssl = nil
+ @ssl.close
+ @ssl = nil
end
super
end
@@ -173,15 +173,15 @@ module DRb
def accept
begin
while true
- soc = @socket.accept
- break if (@acl ? @acl.allow_socket?(soc) : true)
- soc.close
+ soc = @socket.accept
+ break if (@acl ? @acl.allow_socket?(soc) : true)
+ soc.close
end
ssl = @config.accept(soc)
self.class.new(uri, ssl, @config, true)
rescue OpenSSL::SSL::SSLError
- warn("#{__FILE__}:#{__LINE__}: warning: #{$!.message} (#{$!.class})") if @config[:verbose]
- retry
+ warn("#{__FILE__}:#{__LINE__}: warning: #{$!.message} (#{$!.class})") if @config[:verbose]
+ retry
end
end
end
diff --git a/lib/drb/timeridconv.rb b/lib/drb/timeridconv.rb
index 6d8935b1ef..b460e2c987 100644
--- a/lib/drb/timeridconv.rb
+++ b/lib/drb/timeridconv.rb
@@ -9,65 +9,65 @@ module DRb
class InvalidIndexError < RuntimeError; end
def initialize(timeout=600)
- super()
- @sentinel = Object.new
- @gc = {}
- @curr = {}
- @renew = {}
- @timeout = timeout
- @keeper = keeper
+ super()
+ @sentinel = Object.new
+ @gc = {}
+ @curr = {}
+ @renew = {}
+ @timeout = timeout
+ @keeper = keeper
end
def add(obj)
- synchronize do
- key = obj.__id__
- @curr[key] = obj
- return key
- end
+ synchronize do
+ key = obj.__id__
+ @curr[key] = obj
+ return key
+ end
end
def fetch(key, dv=@sentinel)
- synchronize do
- obj = peek(key)
- if obj == @sentinel
- return dv unless dv == @sentinel
- raise InvalidIndexError
- end
- @renew[key] = obj # KeepIt
- return obj
- end
+ synchronize do
+ obj = peek(key)
+ if obj == @sentinel
+ return dv unless dv == @sentinel
+ raise InvalidIndexError
+ end
+ @renew[key] = obj # KeepIt
+ return obj
+ end
end
def include?(key)
- synchronize do
- obj = peek(key)
- return false if obj == @sentinel
- true
- end
+ synchronize do
+ obj = peek(key)
+ return false if obj == @sentinel
+ true
+ end
end
def peek(key)
- synchronize do
- return @curr.fetch(key, @renew.fetch(key, @gc.fetch(key, @sentinel)))
- end
+ synchronize do
+ return @curr.fetch(key, @renew.fetch(key, @gc.fetch(key, @sentinel)))
+ end
end
private
def alternate
- synchronize do
- @gc = @curr # GCed
- @curr = @renew
- @renew = {}
- end
+ synchronize do
+ @gc = @curr # GCed
+ @curr = @renew
+ @renew = {}
+ end
end
def keeper
- Thread.new do
- loop do
- size = alternate
- sleep(@timeout)
- end
- end
+ Thread.new do
+ loop do
+ alternate
+ sleep(@timeout)
+ end
+ end
end
end
diff --git a/lib/drb/unix.rb b/lib/drb/unix.rb
index ebecc22901..549ff8cf55 100644
--- a/lib/drb/unix.rb
+++ b/lib/drb/unix.rb
@@ -9,30 +9,30 @@ module DRb
class DRbUNIXSocket < DRbTCPSocket
def self.parse_uri(uri)
if /^drbunix:(.*?)(\?(.*))?$/ =~ uri
- filename = $1
- option = $3
- [filename, option]
+ filename = $1
+ option = $3
+ [filename, option]
else
- raise(DRbBadScheme, uri) unless uri =~ /^drbunix:/
- raise(DRbBadURI, 'can\'t parse uri:' + uri)
+ raise(DRbBadScheme, uri) unless uri =~ /^drbunix:/
+ raise(DRbBadURI, 'can\'t parse uri:' + uri)
end
end
def self.open(uri, config)
- filename, option = parse_uri(uri)
+ filename, = parse_uri(uri)
filename.untaint
soc = UNIXSocket.open(filename)
self.new(uri, soc, config)
end
def self.open_server(uri, config)
- filename, option = parse_uri(uri)
+ filename, = parse_uri(uri)
if filename.size == 0
- soc = temp_server
+ soc = temp_server
filename = soc.path
- uri = 'drbunix:' + soc.path
+ uri = 'drbunix:' + soc.path
else
- soc = UNIXServer.open(filename)
+ soc = UNIXServer.open(filename)
end
owner = config[:UNIXFileOwner]
group = config[:UNIXFileGroup]
@@ -67,18 +67,18 @@ module DRb
tmpdir = Dir::tmpdir
n = 0
while true
- begin
- tmpname = sprintf('%s/druby%d.%d', tmpdir, $$, n)
- lock = tmpname + '.lock'
- unless File.exist?(tmpname) or File.exist?(lock)
- Dir.mkdir(lock)
- break
- end
- rescue
- raise "cannot generate tempfile `%s'" % tmpname if n >= Max_try
- #sleep(1)
- end
- n += 1
+ begin
+ tmpname = sprintf('%s/druby%d.%d', tmpdir, $$, n)
+ lock = tmpname + '.lock'
+ unless File.exist?(tmpname) or File.exist?(lock)
+ Dir.mkdir(lock)
+ break
+ end
+ rescue
+ raise "cannot generate tempfile `%s'" % tmpname if n >= Max_try
+ #sleep(1)
+ end
+ n += 1
end
soc = UNIXServer.new(tmpname)
Dir.rmdir(lock)
diff --git a/lib/e2mmap.rb b/lib/e2mmap.rb
index ac2fb2dd49..18a7ca003d 100644
--- a/lib/e2mmap.rb
+++ b/lib/e2mmap.rb
@@ -1,8 +1,8 @@
#
# e2mmap.rb - for ruby 1.1
-# $Release Version: 2.0$
-# $Revision: 1.10 $
-# by Keiju ISHITSUKA
+# $Release Version: 2.0$
+# $Revision: 1.10 $
+# by Keiju ISHITSUKA
#
# --
# Usage:
@@ -60,19 +60,19 @@ module Exception2MessageMapper
def bind(cl)
self.module_eval %[
def Raise(err = nil, *rest)
- Exception2MessageMapper.Raise(self.class, err, *rest)
+ Exception2MessageMapper.Raise(self.class, err, *rest)
end
alias Fail Raise
def self.included(mod)
- mod.extend Exception2MessageMapper
+ mod.extend Exception2MessageMapper
end
]
end
# Fail(err, *rest)
- # err: exception
- # rest: message arguments
+ # err: exception
+ # rest: message arguments
#
def Raise(err = nil, *rest)
E2MM.Raise(self, err, *rest)
@@ -81,19 +81,19 @@ module Exception2MessageMapper
alias fail Raise
# def_e2message(c, m)
- # c: exception
- # m: message_form
- # define exception c with message m.
+ # c: exception
+ # m: message_form
+ # define exception c with message m.
#
def def_e2message(c, m)
E2MM.def_e2message(self, c, m)
end
# def_exception(n, m, s)
- # n: exception_name
- # m: message_form
- # s: superclass(default: StandardError)
- # define exception named ``c'' with message m.
+ # n: exception_name
+ # m: message_form
+ # s: superclass(default: StandardError)
+ # define exception named ``c'' with message m.
#
def def_exception(n, m, s = StandardError)
E2MM.def_exception(self, n, m, s)
@@ -106,10 +106,10 @@ module Exception2MessageMapper
@MessageMap = {}
# E2MM.def_e2message(k, e, m)
- # k: class to define exception under.
- # e: exception
- # m: message_form
- # define exception c with message m.
+ # k: class to define exception under.
+ # e: exception
+ # m: message_form
+ # define exception c with message m.
#
def E2MM.def_e2message(k, c, m)
E2MM.instance_eval{@MessageMap[[k, c]] = m}
@@ -117,11 +117,11 @@ module Exception2MessageMapper
end
# E2MM.def_exception(k, n, m, s)
- # k: class to define exception under.
- # n: exception_name
- # m: message_form
- # s: superclass(default: StandardError)
- # define exception named ``c'' with message m.
+ # k: class to define exception under.
+ # n: exception_name
+ # m: message_form
+ # s: superclass(default: StandardError)
+ # define exception named ``c'' with message m.
#
def E2MM.def_exception(k, n, m, s = StandardError)
n = n.id2name if n.kind_of?(Fixnum)
@@ -131,9 +131,9 @@ module Exception2MessageMapper
end
# Fail(klass, err, *rest)
- # klass: class to define exception under.
- # err: exception
- # rest: message arguments
+ # klass: class to define exception under.
+ # err: exception
+ # rest: message arguments
#
def E2MM.Raise(klass = E2MM, err = nil, *rest)
if form = e2mm_message(klass, err)
@@ -146,27 +146,27 @@ module Exception2MessageMapper
E2MM.Fail E2MM, ErrNotRegisteredException, err.inspect
end
end
- class <<E2MM
+ class << E2MM
alias Fail Raise
end
def E2MM.e2mm_message(klass, exp)
for c in klass.ancestors
if mes = @MessageMap[[c,exp]]
- #p mes
- m = klass.instance_eval('"' + mes + '"')
- return m
+ #p mes
+ m = klass.instance_eval('"' + mes + '"')
+ return m
end
end
nil
end
- class <<self
+ class << self
alias message e2mm_message
end
E2MM.def_exception(E2MM,
- :ErrNotRegisteredException,
- "not registerd exception(%s)")
+ :ErrNotRegisteredException,
+ "not registerd exception(%s)")
end
diff --git a/lib/erb.rb b/lib/erb.rb
index 5e9feb9ba5..bb47943a86 100644
--- a/lib/erb.rb
+++ b/lib/erb.rb
@@ -1,7 +1,7 @@
# = ERB -- Ruby Templating
#
# Author:: Masatoshi SEKI
-# Documentation:: James Edward Gray II and Gavin Sinclair
+# Documentation:: James Edward Gray II, Gavin Sinclair, and Simon Chiang
#
# See ERB for primary documentation and ERB::Util for a couple of utility
# routines.
@@ -254,7 +254,7 @@
# Rails, the web application framework, uses ERB to create views.
#
class ERB
- Revision = '$Date:: $' #'
+ Revision = '$Date:: $' #'
# Returns revision information for the erb.rb module.
def self.version
@@ -265,6 +265,76 @@ end
#--
# ERB::Compiler
class ERB
+ # = ERB::Compiler
+ #
+ # Compiles ERB templates into Ruby code; the compiled code produces the
+ # template result when evaluated. ERB::Compiler provides hooks to define how
+ # generated output is handled.
+ #
+ # Internally ERB does something like this to generate the code returned by
+ # ERB#src:
+ #
+ # compiler = ERB::Compiler.new('<>')
+ # compiler.pre_cmd = ["_erbout=''"]
+ # compiler.put_cmd = "_erbout.concat"
+ # compiler.insert_cmd = "_erbout.concat"
+ # compiler.post_cmd = ["_erbout"]
+ #
+ # code, enc = compiler.compile("Got <%= obj %>!\n")
+ # puts code
+ #
+ # <i>Generates</i>:
+ #
+ # #coding:UTF-8
+ # _erbout=''; _erbout.concat "Got "; _erbout.concat(( obj ).to_s); _erbout.concat "!\n"; _erbout
+ #
+ # By default the output is sent to the print method. For example:
+ #
+ # compiler = ERB::Compiler.new('<>')
+ # code, enc = compiler.compile("Got <%= obj %>!\n")
+ # puts code
+ #
+ # <i>Generates</i>:
+ #
+ # #coding:UTF-8
+ # print "Got "; print(( obj ).to_s); print "!\n"
+ #
+ # == Evaluation
+ #
+ # The compiled code can be used in any context where the names in the code
+ # correctly resolve. Using the last example, each of these print 'Got It!'
+ #
+ # Evaluate using a variable:
+ #
+ # obj = 'It'
+ # eval code
+ #
+ # Evaluate using an input:
+ #
+ # mod = Module.new
+ # mod.module_eval %{
+ # def get(obj)
+ # #{code}
+ # end
+ # }
+ # extend mod
+ # get('It')
+ #
+ # Evaluate using an accessor:
+ #
+ # klass = Class.new Object
+ # klass.class_eval %{
+ # attr_accessor :obj
+ # def initialize(obj)
+ # @obj = obj
+ # end
+ # def get_it
+ # #{code}
+ # end
+ # }
+ # klass.new('It').get_it
+ #
+ # Good! See also ERB#def_method, ERB#def_module, and ERB#def_class.
class Compiler # :nodoc:
class PercentLine # :nodoc:
def initialize(str)
@@ -281,21 +351,21 @@ class ERB
class Scanner # :nodoc:
@scanner_map = {}
def self.regist_scanner(klass, trim_mode, percent)
- @scanner_map[[trim_mode, percent]] = klass
+ @scanner_map[[trim_mode, percent]] = klass
end
def self.default_scanner=(klass)
- @default_scanner = klass
+ @default_scanner = klass
end
def self.make_scanner(src, trim_mode, percent)
- klass = @scanner_map.fetch([trim_mode, percent], @default_scanner)
- klass.new(src, trim_mode, percent)
+ klass = @scanner_map.fetch([trim_mode, percent], @default_scanner)
+ klass.new(src, trim_mode, percent)
end
def initialize(src, trim_mode, percent)
- @src = src
- @stag = nil
+ @src = src
+ @stag = nil
end
attr_accessor :stag
@@ -304,44 +374,44 @@ class ERB
class TrimScanner < Scanner # :nodoc:
def initialize(src, trim_mode, percent)
- super
- @trim_mode = trim_mode
- @percent = percent
- if @trim_mode == '>'
- @scan_line = self.method(:trim_line1)
- elsif @trim_mode == '<>'
- @scan_line = self.method(:trim_line2)
- elsif @trim_mode == '-'
- @scan_line = self.method(:explicit_trim_line)
- else
- @scan_line = self.method(:scan_line)
- end
+ super
+ @trim_mode = trim_mode
+ @percent = percent
+ if @trim_mode == '>'
+ @scan_line = self.method(:trim_line1)
+ elsif @trim_mode == '<>'
+ @scan_line = self.method(:trim_line2)
+ elsif @trim_mode == '-'
+ @scan_line = self.method(:explicit_trim_line)
+ else
+ @scan_line = self.method(:scan_line)
+ end
end
attr_accessor :stag
def scan(&block)
- @stag = nil
- if @percent
- @src.each_line do |line|
- percent_line(line, &block)
- end
- else
+ @stag = nil
+ if @percent
+ @src.each_line do |line|
+ percent_line(line, &block)
+ end
+ else
@scan_line.call(@src, &block)
- end
- nil
+ end
+ nil
end
def percent_line(line, &block)
- if @stag || line[0] != ?%
- return @scan_line.call(line, &block)
- end
-
- line[0] = ''
- if line[0] == ?%
- @scan_line.call(line, &block)
- else
+ if @stag || line[0] != ?%
+ return @scan_line.call(line, &block)
+ end
+
+ line[0] = ''
+ if line[0] == ?%
+ @scan_line.call(line, &block)
+ else
yield(PercentLine.new(line.chomp))
- end
+ end
end
def scan_line(line)
@@ -350,7 +420,7 @@ class ERB
next if token.empty?
yield(token)
end
- end
+ end
end
def trim_line1(line)
@@ -364,11 +434,11 @@ class ERB
yield(token)
end
end
- end
+ end
end
def trim_line2(line)
- head = nil
+ head = nil
line.scan(/(.*?)(<%%|%%>|<%=|<%#|<%|%>\n|%>|\n|\z)/m) do |tokens|
tokens.each do |token|
next if token.empty?
@@ -386,7 +456,7 @@ class ERB
head = nil if token == "\n"
end
end
- end
+ end
end
def explicit_trim_line(line)
@@ -409,7 +479,7 @@ class ERB
ERB_STAG = %w(<%= <%# <%)
def is_erb_stag?(s)
- ERB_STAG.member?(s)
+ ERB_STAG.member?(s)
end
end
@@ -422,7 +492,7 @@ class ERB
next if token.empty?
yield(token)
end
- end
+ end
end
end
@@ -445,23 +515,23 @@ class ERB
Scanner.regist_scanner(SimpleScanner2, nil, false)
class ExplicitScanner < Scanner # :nodoc:
- def scan
+ def scan
stag_reg = /(.*?)(^[ \t]*<%-|<%%|<%=|<%#|<%-|<%|\z)/m
etag_reg = /(.*?)(%%>|-%>|%>|\z)/m
scanner = StringScanner.new(@src)
while ! scanner.eos?
- scanner.scan(@stag ? etag_reg : stag_reg)
+ scanner.scan(@stag ? etag_reg : stag_reg)
yield(scanner[1])
elem = scanner[2]
if /[ \t]*<%-/ =~ elem
yield('<%')
elsif elem == '-%>'
- yield('%>')
- yield(:cr) if scanner.scan(/(\n|\z)/)
- else
- yield(elem)
- end
+ yield('%>')
+ yield(:cr) if scanner.scan(/(\n|\z)/)
+ else
+ yield(elem)
+ end
end
end
end
@@ -472,36 +542,36 @@ class ERB
class Buffer # :nodoc:
def initialize(compiler, enc=nil)
- @compiler = compiler
- @line = []
+ @compiler = compiler
+ @line = []
@script = enc ? "#coding:#{enc.to_s}\n" : ""
- @compiler.pre_cmd.each do |x|
- push(x)
- end
+ @compiler.pre_cmd.each do |x|
+ push(x)
+ end
end
attr_reader :script
def push(cmd)
- @line << cmd
+ @line << cmd
end
def cr
- @script << (@line.join('; '))
- @line = []
- @script << "\n"
+ @script << (@line.join('; '))
+ @line = []
+ @script << "\n"
end
def close
- return unless @line
- @compiler.post_cmd.each do |x|
- push(x)
- end
- @script << (@line.join('; '))
- @line = nil
+ return unless @line
+ @compiler.post_cmd.each do |x|
+ push(x)
+ end
+ @script << (@line.join('; '))
+ @line = nil
end
end
- def content_dump(s)
+ def content_dump(s) # :nodoc:
n = s.count("\n")
if n > 0
s.dump + "\n" * n
@@ -510,6 +580,8 @@ class ERB
end
end
+ # Compiles an ERB template into Ruby code. Returns an array of the code
+ # and encoding like ["code", Encoding].
def compile(s)
enc = s.encoding
raise ArgumentError, "#{enc} is not ASCII compatible" if enc.dummy?
@@ -522,87 +594,89 @@ class ERB
scanner.scan do |token|
next if token.nil?
next if token == ''
- if scanner.stag.nil?
- case token
+ if scanner.stag.nil?
+ case token
when PercentLine
- out.push("#{@put_cmd} #{content_dump(content)}") if content.size > 0
- content = ''
+ out.push("#{@put_cmd} #{content_dump(content)}") if content.size > 0
+ content = ''
out.push(token.to_s)
out.cr
- when :cr
- out.cr
- when '<%', '<%=', '<%#'
- scanner.stag = token
- out.push("#{@put_cmd} #{content_dump(content)}") if content.size > 0
- content = ''
- when "\n"
- content << "\n"
- out.push("#{@put_cmd} #{content_dump(content)}")
- content = ''
- when '<%%'
- content << '<%'
- else
- content << token
- end
- else
- case token
- when '%>'
- case scanner.stag
- when '<%'
- if content[-1] == ?\n
- content.chop!
- out.push(content)
- out.cr
- else
- out.push(content)
- end
- when '<%='
- out.push("#{@insert_cmd}((#{content}).to_s)")
- when '<%#'
- # out.push("# #{content_dump(content)}")
- end
- scanner.stag = nil
- content = ''
- when '%%>'
- content << '%>'
- else
- content << token
- end
- end
+ when :cr
+ out.cr
+ when '<%', '<%=', '<%#'
+ scanner.stag = token
+ out.push("#{@put_cmd} #{content_dump(content)}") if content.size > 0
+ content = ''
+ when "\n"
+ content << "\n"
+ out.push("#{@put_cmd} #{content_dump(content)}")
+ content = ''
+ when '<%%'
+ content << '<%'
+ else
+ content << token
+ end
+ else
+ case token
+ when '%>'
+ case scanner.stag
+ when '<%'
+ if content[-1] == ?\n
+ content.chop!
+ out.push(content)
+ out.cr
+ else
+ out.push(content)
+ end
+ when '<%='
+ out.push("#{@insert_cmd}((#{content}).to_s)")
+ when '<%#'
+ # out.push("# #{content_dump(content)}")
+ end
+ scanner.stag = nil
+ content = ''
+ when '%%>'
+ content << '%>'
+ else
+ content << token
+ end
+ end
end
out.push("#{@put_cmd} #{content_dump(content)}") if content.size > 0
out.close
return out.script, enc
end
- def prepare_trim_mode(mode)
+ def prepare_trim_mode(mode) # :nodoc:
case mode
when 1
- return [false, '>']
+ return [false, '>']
when 2
- return [false, '<>']
+ return [false, '<>']
when 0
- return [false, nil]
+ return [false, nil]
when String
- perc = mode.include?('%')
- if mode.include?('-')
- return [perc, '-']
- elsif mode.include?('<>')
- return [perc, '<>']
- elsif mode.include?('>')
- return [perc, '>']
- else
- [perc, nil]
- end
+ perc = mode.include?('%')
+ if mode.include?('-')
+ return [perc, '-']
+ elsif mode.include?('<>')
+ return [perc, '<>']
+ elsif mode.include?('>')
+ return [perc, '>']
+ else
+ [perc, nil]
+ end
else
- return [false, nil]
+ return [false, nil]
end
end
- def make_scanner(src)
+ def make_scanner(src) # :nodoc:
Scanner.make_scanner(src, @trim_mode, @percent)
end
+ # Construct a new compiler using the trim_mode. See ERB#new for available
+ # trim modes.
def initialize(trim_mode)
@percent, @trim_mode = prepare_trim_mode(trim_mode)
@put_cmd = 'print'
@@ -611,17 +685,28 @@ class ERB
@post_cmd = []
end
attr_reader :percent, :trim_mode
- attr_accessor :put_cmd, :insert_cmd, :pre_cmd, :post_cmd
+
+ # The command to handle text that ends with a newline
+ attr_accessor :put_cmd
+
+ # The command to handle text that is inserted prior to a newline
+ attr_accessor :insert_cmd
+
+ # An array of commands prepended to compiled code
+ attr_accessor :pre_cmd
+
+ # An array of commands appended to compiled code
+ attr_accessor :post_cmd
private
def detect_magic_comment(s)
if /\A<%#(.*)%>/ =~ s or (@percent and /\A%#(.*)/ =~ s)
- comment = $1
- comment = $1 if comment[/-\*-\s*(.*?)\s*-*-$/]
- if %r"coding\s*[=:]\s*([[:alnum:]\-_]+)" =~ comment
- enc = $1.sub(/-(?:mac|dos|unix)/i, '')
- enc = Encoding.find(enc)
- end
+ comment = $1
+ comment = $1 if comment[/-\*-\s*(.*?)\s*-*-$/]
+ if %r"coding\s*[=:]\s*([[:alnum:]\-_]+)" =~ comment
+ enc = $1.sub(/-(?:mac|dos|unix)/i, '')
+ enc = Encoding.find(enc)
+ end
end
end
end
@@ -641,9 +726,9 @@ class ERB
# If _trim_mode_ is passed a String containing one or more of the following
# modifiers, ERB will adjust its code generation as listed:
#
- # % enables Ruby code processing for lines beginning with %
- # <> omit newline for lines starting with <% and ending in %>
- # > omit newline for lines ending in %>
+ # % enables Ruby code processing for lines beginning with %
+ # <> omit newline for lines starting with <% and ending in %>
+ # > omit newline for lines ending in %>
#
# _eoutvar_ can be used to set the name of the variable ERB will build up
# its output in. This is useful when you need to run multiple ERB
@@ -746,8 +831,8 @@ class ERB
def result(b=TOPLEVEL_BINDING)
if @safe_level
proc {
- $SAFE = @safe_level
- eval(@src, b, (@filename || '(erb)'), 0)
+ $SAFE = @safe_level
+ eval(@src, b, (@filename || '(erb)'), 0)
}.call
else
eval(@src, b, (@filename || '(erb)'), 0)
@@ -814,14 +899,14 @@ class ERB
#
# A utility method for escaping HTML tag characters in _s_.
#
- # require "erb"
- # include ERB::Util
+ # require "erb"
+ # include ERB::Util
#
- # puts html_escape("is a > 0 & a < 10?")
+ # puts html_escape("is a > 0 & a < 10?")
#
# _Generates_
#
- # is a &gt; 0 &amp; a &lt; 10?
+ # is a &gt; 0 &amp; a &lt; 10?
#
def html_escape(s)
s.to_s.gsub(/&/, "&amp;").gsub(/\"/, "&quot;").gsub(/>/, "&gt;").gsub(/</, "&lt;")
@@ -833,14 +918,14 @@ class ERB
#
# A utility method for encoding the String _s_ as a URL.
#
- # require "erb"
- # include ERB::Util
+ # require "erb"
+ # include ERB::Util
#
- # puts url_encode("Programming Ruby: The Pragmatic Programmer's Guide")
+ # puts url_encode("Programming Ruby: The Pragmatic Programmer's Guide")
#
# _Generates_
#
- # Programming%20Ruby%3A%20%20The%20Pragmatic%20Programmer%27s%20Guide
+ # Programming%20Ruby%3A%20%20The%20Pragmatic%20Programmer%27s%20Guide
#
def url_encode(s)
s.to_s.dup.force_encoding("ASCII-8BIT").gsub(/[^a-zA-Z0-9_\-.]/n) {
@@ -886,7 +971,8 @@ class ERB
#
module DefMethod
public
- # define _methodname_ as instance method of current module, using ERB object or eRuby file
+ # define _methodname_ as instance method of current module, using ERB
+ # object or eRuby file
def def_erb_method(methodname, erb_or_fname)
if erb_or_fname.kind_of? String
fname = erb_or_fname
diff --git a/lib/fileutils.rb b/lib/fileutils.rb
index 6124f29894..ee396e35cb 100644
--- a/lib/fileutils.rb
+++ b/lib/fileutils.rb
@@ -115,6 +115,10 @@ module FileUtils
#
# FileUtils.cd('/', :verbose => true) # chdir and report it
#
+ # FileUtils.cd('/') do # chdir
+ # [...] # do something
+ # end # return to original directory
+ #
def cd(dir, options = {}, &block) # :yield: dir
fu_check_options options, OPT_TABLE['cd']
fu_output_message "cd #{dir}" if options[:verbose]
@@ -198,7 +202,7 @@ module FileUtils
fu_output_message "mkdir -p #{options[:mode] ? ('-m %03o ' % options[:mode]) : ''}#{list.join ' '}" if options[:verbose]
return *list if options[:noop]
- list.map {|path| path.sub(%r</\z>, '') }.each do |path|
+ list.map {|path| path.chomp(?/) }.each do |path|
# optimize for the most common case
begin
fu_mkdir path, options[:mode]
@@ -215,7 +219,7 @@ module FileUtils
stack.reverse_each do |dir|
begin
fu_mkdir dir, options[:mode]
- rescue SystemCallError => err
+ rescue SystemCallError
raise unless File.directory?(dir)
end
end
@@ -235,7 +239,7 @@ module FileUtils
OPT_TABLE['makedirs'] = [:mode, :noop, :verbose]
def fu_mkdir(path, mode) #:nodoc:
- path = path.sub(%r</\z>, '')
+ path = path.chomp(?/)
if mode
Dir.mkdir path, mode
File.chmod mode, path
@@ -263,7 +267,7 @@ module FileUtils
return if options[:noop]
list.each do |dir|
begin
- Dir.rmdir(dir = dir.sub(%r</\z>, ''))
+ Dir.rmdir(dir = dir.chomp(?/))
if parents
until (parent = File.dirname(dir)) == '.' or parent == dir
Dir.rmdir(dir)
@@ -427,6 +431,8 @@ module FileUtils
fu_check_options options, OPT_TABLE['cp_r']
fu_output_message "cp -r#{options[:preserve] ? 'p' : ''}#{options[:remove_destination] ? ' --remove-destination' : ''} #{[src,dest].flatten.join ' '}" if options[:verbose]
return if options[:noop]
+ options = options.dup
+ options[:dereference_root] = true unless options.key?(:dereference_root)
fu_each_src_dest(src, dest) do |s, d|
copy_entry s, d, options[:preserve], options[:dereference_root], options[:remove_destination]
end
@@ -665,10 +671,10 @@ module FileUtils
# removing directories. This requires the current process is the
# owner of the removing whole directory tree, or is the super user (root).
#
- # WARNING: You must ensure that *ALL* parent directories are not
- # world writable. Otherwise this method does not work.
- # Only exception is temporary directory like /tmp and /var/tmp,
- # whose permission is 1777.
+ # WARNING: You must ensure that *ALL* parent directories cannot be
+ # moved by other untrusted users. For example, parent directories
+ # should not be owned by untrusted users, and should not be world
+ # writable except when the sticky bit set.
#
# WARNING: Only the owner of the removing directory tree, or Unix super
# user (root) should invoke this method. Otherwise this method does not
@@ -711,6 +717,11 @@ module FileUtils
end
f.chown euid, -1
f.chmod 0700
+ unless fu_stat_identical_entry?(st, File.lstat(fullpath))
+ # TOC-to-TOU attack?
+ File.unlink fullpath
+ return
+ end
}
# ---- tree root is frozen ----
root = Entry_.new(path)
@@ -732,7 +743,7 @@ module FileUtils
end
module_function :remove_entry_secure
- def fu_have_symlink? #:nodoc
+ def fu_have_symlink? #:nodoc:
File.symlink nil, nil
rescue NotImplementedError
return false
@@ -840,10 +851,9 @@ module FileUtils
fu_check_options options, OPT_TABLE['install']
fu_output_message "install -c#{options[:preserve] && ' -p'}#{options[:mode] ? (' -m 0%o' % options[:mode]) : ''} #{[src,dest].flatten.join ' '}" if options[:verbose]
return if options[:noop]
- fu_each_src_dest(src, dest) do |s, d|
+ fu_each_src_dest(src, dest) do |s, d, st|
unless File.exist?(d) and compare_file(s, d)
remove_file d, true
- st = File.stat(s) if options[:preserve]
copy_file s, d
File.utime st.atime, st.mtime, d if options[:preserve]
File.chmod options[:mode], d if options[:mode]
@@ -854,23 +864,110 @@ module FileUtils
OPT_TABLE['install'] = [:mode, :preserve, :noop, :verbose]
+ def user_mask(target) #:nodoc:
+ mask = 0
+ target.each_byte do |byte_chr|
+ case byte_chr.chr
+ when "u"
+ mask |= 04700
+ when "g"
+ mask |= 02070
+ when "o"
+ mask |= 01007
+ when "a"
+ mask |= 07777
+ end
+ end
+ mask
+ end
+ private_module_function :user_mask
+
+ def mode_mask(mode, path) #:nodoc:
+ mask = 0
+ mode.each_byte do |byte_chr|
+ case byte_chr.chr
+ when "r"
+ mask |= 0444
+ when "w"
+ mask |= 0222
+ when "x"
+ mask |= 0111
+ when "X"
+ mask |= 0111 if FileTest::directory? path
+ when "s"
+ mask |= 06000
+ when "t"
+ mask |= 01000
+ end
+ end
+ mask
+ end
+ private_module_function :mode_mask
+
+ def symbolic_modes_to_i(modes, path) #:nodoc:
+ current_mode = (File.stat(path).mode & 07777)
+ modes.split(/,/).inject(0) do |mode, mode_sym|
+ mode_sym = "a#{mode_sym}" if mode_sym =~ %r!^[+-=]!
+ target, mode = mode_sym.split %r![+-=]!
+ user_mask = user_mask(target)
+ mode_mask = mode_mask(mode ? mode : "", path)
+
+ case mode_sym
+ when /=/
+ current_mode &= ~(user_mask)
+ current_mode |= user_mask & mode_mask
+ when /\+/
+ current_mode |= user_mask & mode_mask
+ when /-/
+ current_mode &= ~(user_mask & mode_mask)
+ end
+ end
+ end
+ private_module_function :symbolic_modes_to_i
+
+ def fu_mode(mode, path) #:nodoc:
+ mode.is_a?(String) ? symbolic_modes_to_i(mode, path) : mode
+ end
+ private_module_function :fu_mode
+
#
# Options: noop verbose
#
# Changes permission bits on the named files (in +list+) to the bit pattern
# represented by +mode+.
#
+ # +mode+ is the symbolic and absolute mode can be used.
+ #
+ # Absolute mode is
# FileUtils.chmod 0755, 'somecommand'
# FileUtils.chmod 0644, %w(my.rb your.rb his.rb her.rb)
# FileUtils.chmod 0755, '/usr/bin/ruby', :verbose => true
#
+ # Symbolic mode is
+ # FileUtils.chmod "u=wrx,go=rx", 'somecommand'
+ # FileUtils.chmod "u=wr,go=rr", %w(my.rb your.rb his.rb her.rb)
+ # FileUtils.chmod "u=wrx,go=rx", '/usr/bin/ruby', :verbose => true
+ #
+ # "a" is user, group, other mask.
+ # "u" is user's mask.
+ # "g" is group's mask.
+ # "o" is other's mask.
+ # "w" is write permission.
+ # "r" is read permission.
+ # "x" is execute permission.
+ # "s" is uid, gid.
+ # "t" is sticky bit.
+ # "+" is added to a class given the specified mode.
+ # "-" Is removed from a given class given mode.
+ # "=" Is the exact nature of the class will be given a specified mode.
+
def chmod(mode, list, options = {})
fu_check_options options, OPT_TABLE['chmod']
list = fu_list(list)
fu_output_message sprintf('chmod %o %s', mode, list.join(' ')) if options[:verbose]
return if options[:noop]
list.each do |path|
- Entry_.new(path).chmod mode
+ Entry_.new(path).chmod(fu_mode(mode, path))
end
end
module_function :chmod
@@ -884,6 +981,7 @@ module FileUtils
# to the bit pattern represented by +mode+.
#
# FileUtils.chmod_R 0700, "/tmp/app.#{$$}"
+ # FileUtils.chmod_R "u=wrx", "/tmp/app.#{$$}"
#
def chmod_R(mode, list, options = {})
fu_check_options options, OPT_TABLE['chmod_R']
@@ -895,7 +993,7 @@ module FileUtils
list.each do |root|
Entry_.new(root).traverse do |ent|
begin
- ent.chmod mode
+ ent.chmod(fu_mode(mode, ent.path))
rescue
raise unless options[:force]
end
@@ -977,20 +1075,26 @@ module FileUtils
def fu_get_uid(user) #:nodoc:
return nil unless user
- user = user.to_s
- if /\A\d+\z/ =~ user
- then user.to_i
- else Etc.getpwnam(user).uid
+ case user
+ when Integer
+ user
+ when /\A\d+\z/
+ user.to_i
+ else
+ Etc.getpwnam(user).uid
end
end
private_module_function :fu_get_uid
def fu_get_gid(group) #:nodoc:
return nil unless group
- group = group.to_s
- if /\A\d+\z/ =~ group
- then group.to_i
- else Etc.getgrnam(group).gid
+ case group
+ when Integer
+ group
+ when /\A\d+\z/
+ group.to_i
+ else
+ Etc.getgrnam(group).gid
end
end
private_module_function :fu_get_gid
@@ -1024,7 +1128,7 @@ module FileUtils
created = nocreate = options[:nocreate]
t = options[:mtime]
if options[:verbose]
- fu_output_message "touch #{nocreate ? ' -c' : ''}#{t ? t.strftime(' -t %Y%m%d%H%M.%S') : ''}#{list.join ' '}"
+ fu_output_message "touch #{nocreate ? '-c ' : ''}#{t ? t.strftime('-t %Y%m%d%H%M.%S ') : ''}#{list.join ' '}"
end
return if options[:noop]
list.each do |path|
@@ -1169,7 +1273,9 @@ module FileUtils
end
def entries
- Dir.entries(path())\
+ opts = {}
+ opts[:encoding] = ::Encoding::UTF_8 if fu_windows?
+ Dir.entries(path(), opts)\
.reject {|n| n == '.' or n == '..' }\
.map {|n| Entry_.new(prefix(), join(rel(), n.untaint)) }
end
@@ -1231,7 +1337,7 @@ module FileUtils
when file?
copy_file dest
when directory?
- if !File.exist?(dest) and /^#{Regexp.quote(path)}/ =~ File.dirname(dest)
+ if !File.exist?(dest) and descendant_diretory?(dest, path)
raise ArgumentError, "cannot copy directory %s to itself %s" % [path, dest]
end
begin
@@ -1261,7 +1367,11 @@ module FileUtils
end
def copy_file(dest)
- IO.copy_stream(path(), dest)
+ File.open(path()) do |s|
+ File.open(dest, 'wb', s.stat.mode) do |f|
+ IO.copy_stream(s, f)
+ end
+ end
end
def copy_metadata(path)
@@ -1287,7 +1397,7 @@ module FileUtils
def remove_dir1
platform_support {
- Dir.rmdir path().sub(%r</\z>, '')
+ Dir.rmdir path().chomp(?/)
}
end
@@ -1381,6 +1491,17 @@ module FileUtils
return File.path(base) if not dir or dir == '.'
File.join(dir, base)
end
+
+ if File::ALT_SEPARATOR
+ DIRECTORY_TERM = "(?=[/#{Regexp.quote(File::ALT_SEPARATOR)}]|\\z)".freeze
+ else
+ DIRECTORY_TERM = "(?=/|\\z)".freeze
+ end
+ SYSCASE = File::FNM_SYSCASE.nonzero? ? "-i" : ""
+
+ def descendant_diretory?(descendant, ascendant)
+ /\A(?#{SYSCASE}:#{Regexp.quote(ascendant)})#{DIRECTORY_TERM}/ =~ File.dirname(descendant)
+ end
end # class Entry_
def fu_list(arg) #:nodoc:
@@ -1391,7 +1512,7 @@ module FileUtils
def fu_each_src_dest(src, dest) #:nodoc:
fu_each_src_dest0(src, dest) do |s, d|
raise ArgumentError, "same file: #{s} and #{d}" if fu_same?(s, d)
- yield s, d
+ yield s, d, File.stat(s)
end
end
private_module_function :fu_each_src_dest
@@ -1414,23 +1535,10 @@ module FileUtils
private_module_function :fu_each_src_dest0
def fu_same?(a, b) #:nodoc:
- if fu_have_st_ino?
- st1 = File.stat(a)
- st2 = File.stat(b)
- st1.dev == st2.dev and st1.ino == st2.ino
- else
- File.expand_path(a) == File.expand_path(b)
- end
- rescue Errno::ENOENT
- return false
+ File.identical?(a, b)
end
private_module_function :fu_same?
- def fu_have_st_ino? #:nodoc:
- not fu_windows?
- end
- private_module_function :fu_have_st_ino?
-
def fu_check_options(options, optdecl) #:nodoc:
h = options.dup
optdecl.each do |opt|
@@ -1508,6 +1616,12 @@ module FileUtils
OPT_TABLE.keys.select {|m| OPT_TABLE[m].include?(opt) }
end
+ LOW_METHODS = singleton_methods(false) - collect_method(:noop).map(&:intern)
+ module LowMethods
+ module_eval("private\n" + ::FileUtils::LOW_METHODS.map {|name| "def #{name}(*)end"}.join("\n"),
+ __FILE__, __LINE__)
+ end
+
METHODS = singleton_methods() - [:private_module_function,
:commands, :options, :have_option?, :options_of, :collect_method]
@@ -1543,6 +1657,7 @@ module FileUtils
#
module NoWrite
include FileUtils
+ include LowMethods
@fileutils_output = $stderr
@fileutils_label = ''
::FileUtils.collect_method(:noop).each do |name|
@@ -1569,6 +1684,7 @@ module FileUtils
#
module DryRun
include FileUtils
+ include LowMethods
@fileutils_output = $stderr
@fileutils_label = ''
::FileUtils.collect_method(:noop).each do |name|
diff --git a/lib/find.rb b/lib/find.rb
index 79ff7c1378..cd2d1bf38b 100644
--- a/lib/find.rb
+++ b/lib/find.rb
@@ -38,29 +38,25 @@ module Find
paths.collect!{|d| raise Errno::ENOENT unless File.exist?(d); d.dup}
while file = paths.shift
catch(:prune) do
- yield file.dup.taint
- next unless File.exist? file
- begin
- if File.lstat(file).directory? then
- d = Dir.open(file)
- begin
- for f in d
- next if f == "." or f == ".."
- if File::ALT_SEPARATOR and file =~ /^(?:[\/\\]|[A-Za-z]:[\/\\]?)$/ then
- f = file + f
- elsif file == "/" then
- f = "/" + f
- else
- f = File.join(file, f)
- end
- paths.unshift f.untaint
- end
- ensure
- d.close
- end
- end
- rescue Errno::ENOENT, Errno::EACCES
- end
+ yield file.dup.taint
+ begin
+ s = File.lstat(file)
+ rescue Errno::ENOENT, Errno::EACCES, Errno::ENOTDIR, Errno::ELOOP, Errno::ENAMETOOLONG
+ next
+ end
+ if s.directory? then
+ begin
+ fs = Dir.entries(file)
+ rescue Errno::ENOENT, Errno::EACCES, Errno::ENOTDIR, Errno::ELOOP, Errno::ENAMETOOLONG
+ next
+ end
+ fs.sort!
+ fs.reverse_each {|f|
+ next if f == "." or f == ".."
+ f = File.join(file, f)
+ paths.unshift f.untaint
+ }
+ end
end
end
end
diff --git a/lib/forwardable.rb b/lib/forwardable.rb
index 39b35d9cee..2b71b904d0 100644
--- a/lib/forwardable.rb
+++ b/lib/forwardable.rb
@@ -1,9 +1,9 @@
#
# forwardable.rb -
-# $Release Version: 1.1$
-# $Revision$
-# by Keiju ISHITSUKA(keiju@ishitsuka.com)
-# original definition by delegator.rb
+# $Release Version: 1.1$
+# $Revision$
+# by Keiju ISHITSUKA(keiju@ishitsuka.com)
+# original definition by delegator.rb
# Revised by Daniel J. Berger with suggestions from Florian Gross.
#
# Documentation by James Edward Gray II and Gavin Sinclair
@@ -84,7 +84,7 @@
# def_delegator :Implementation, :service
#
# class Implementation
-# def service...
+# def service...
# end
# end
#
@@ -135,7 +135,7 @@ module Forwardable
FORWARDABLE_VERSION = "1.1.0"
@debug = nil
- class<<self
+ class << self
attr_accessor :debug
end
@@ -149,7 +149,7 @@ module Forwardable
#
def instance_delegate(hash)
hash.each{ |methods, accessor|
- methods = methods.to_s unless methods.respond_to?(:each)
+ methods = [methods] unless methods.respond_to?(:each)
methods.each{ |method|
def_instance_delegator(accessor, method)
}
@@ -175,15 +175,34 @@ module Forwardable
end
end
+ # Define +method+ as delegator instance method with an optional
+ # alias name +ali+. Method calls to +ali+ will be delegated to
+ # +accessor.method+.
+ #
+ # class MyQueue
+ # extend Forwardable
+ # attr_reader :queue
+ # def initialize
+ # @queue = []
+ # end
+ #
+ # def_delegator :@queue, :push, :mypush
+ # end
+ #
+ # q = MyQueue.new
+ # q.mypush 42
+ # q.queue #=> [42]
+ # q.push 23 #=> NoMethodError
+ #
def def_instance_delegator(accessor, method, ali = method)
line_no = __LINE__; str = %{
def #{ali}(*args, &block)
- begin
- #{accessor}.__send__(:#{method}, *args, &block)
- rescue Exception
- $@.delete_if{|s| %r"#{Regexp.quote(__FILE__)}"o =~ s} unless Forwardable::debug
- ::Kernel::raise
- end
+ begin
+ #{accessor}.__send__(:#{method}, *args, &block)
+ rescue Exception
+ $@.delete_if{|s| %r"#{Regexp.quote(__FILE__)}"o =~ s} unless Forwardable::debug
+ ::Kernel::raise
+ end
end
}
# If it's not a class or module, it's an instance
@@ -214,7 +233,7 @@ module SingleForwardable
#
def single_delegate(hash)
hash.each{ |methods, accessor|
- methods = methods.to_s unless methods.respond_to?(:each)
+ methods = [methods] unless methods.respond_to?(:each)
methods.each{ |method|
def_single_delegator(accessor, method)
}
@@ -246,14 +265,14 @@ module SingleForwardable
# provided, it is used as the name for the delegate method.
#
def def_single_delegator(accessor, method, ali = method)
- line_no = __LINE__; str = %{
+ str = %{
def #{ali}(*args, &block)
- begin
- #{accessor}.__send__(:#{method}, *args, &block)
- rescue Exception
- $@.delete_if{|s| %r"#{Regexp.quote(__FILE__)}"o =~ s} unless Forwardable::debug
- ::Kernel::raise
- end
+ begin
+ #{accessor}.__send__(:#{method}, *args, &block)
+ rescue Exception
+ $@.delete_if{|s| %r"#{Regexp.quote(__FILE__)}"o =~ s} unless Forwardable::debug
+ ::Kernel::raise
+ end
end
}
@@ -264,7 +283,3 @@ module SingleForwardable
alias def_delegators def_single_delegators
alias def_delegator def_single_delegator
end
-
-
-
-
diff --git a/lib/getoptlong.rb b/lib/getoptlong.rb
index 2d3b617d6b..259382e8ec 100644
--- a/lib/getoptlong.rb
+++ b/lib/getoptlong.rb
@@ -241,7 +241,7 @@ class GetoptLong
if @status != STATUS_YET
set_error(ArgumentError, "argument error")
raise RuntimeError,
- "invoke ordering=, but option processing has already started"
+ "invoke ordering=, but option processing has already started"
end
#
@@ -273,7 +273,7 @@ class GetoptLong
#
if @status != STATUS_YET
raise RuntimeError,
- "invoke set_options, but option processing has already started"
+ "invoke set_options, but option processing has already started"
end
#
@@ -282,51 +282,54 @@ class GetoptLong
@canonical_names.clear
@argument_flags.clear
- arguments.each do |*arg|
- arg = arg.first # TODO: YARV Hack
+ arguments.each do |arg|
+ if !arg.is_a?(Array)
+ raise ArgumentError, "the option list contains non-Array argument"
+ end
+
#
# Find an argument flag and it set to `argument_flag'.
#
argument_flag = nil
arg.each do |i|
- if ARGUMENT_FLAGS.include?(i)
- if argument_flag != nil
- raise ArgumentError, "too many argument-flags"
- end
- argument_flag = i
- end
+ if ARGUMENT_FLAGS.include?(i)
+ if argument_flag != nil
+ raise ArgumentError, "too many argument-flags"
+ end
+ argument_flag = i
+ end
end
raise ArgumentError, "no argument-flag" if argument_flag == nil
canonical_name = nil
arg.each do |i|
- #
- # Check an option name.
- #
- next if i == argument_flag
- begin
- if !i.is_a?(String) || i !~ /^-([^-]|-.+)$/
- raise ArgumentError, "an invalid option `#{i}'"
- end
- if (@canonical_names.include?(i))
- raise ArgumentError, "option redefined `#{i}'"
- end
- rescue
- @canonical_names.clear
- @argument_flags.clear
- raise
- end
-
- #
- # Register the option (`i') to the `@canonical_names' and
- # `@canonical_names' Hashes.
- #
- if canonical_name == nil
- canonical_name = i
- end
- @canonical_names[i] = canonical_name
- @argument_flags[i] = argument_flag
+ #
+ # Check an option name.
+ #
+ next if i == argument_flag
+ begin
+ if !i.is_a?(String) || i !~ /^-([^-]|-.+)$/
+ raise ArgumentError, "an invalid option `#{i}'"
+ end
+ if (@canonical_names.include?(i))
+ raise ArgumentError, "option redefined `#{i}'"
+ end
+ rescue
+ @canonical_names.clear
+ @argument_flags.clear
+ raise
+ end
+
+ #
+ # Register the option (`i') to the `@canonical_names' and
+ # `@canonical_names' Hashes.
+ #
+ if canonical_name == nil
+ canonical_name = i
+ end
+ @canonical_names[i] = canonical_name
+ @argument_flags[i] = argument_flag
end
raise ArgumentError, "no option name" if canonical_name == nil
end
@@ -444,17 +447,17 @@ class GetoptLong
return nil
elsif @ordering == PERMUTE
while 0 < ARGV.length && ARGV[0] !~ /^-./
- @non_option_arguments.push(ARGV.shift)
+ @non_option_arguments.push(ARGV.shift)
end
if ARGV.length == 0
- terminate
- return nil
+ terminate
+ return nil
end
argument = ARGV.shift
elsif @ordering == REQUIRE_ORDER
if (ARGV[0] !~ /^-./)
- terminate
- return nil
+ terminate
+ return nil
end
argument = ARGV.shift
else
@@ -479,49 +482,49 @@ class GetoptLong
#
pattern = $1
if @canonical_names.include?(pattern)
- option_name = pattern
+ option_name = pattern
else
- #
- # The option `option_name' is not registered in `@canonical_names'.
- # It may be an abbreviated.
- #
- matches = []
- @canonical_names.each_key do |key|
- if key.index(pattern) == 0
- option_name = key
- matches << key
- end
- end
- if 2 <= matches.length
- set_error(AmbiguousOption, "option `#{argument}' is ambiguous between #{matches.join(', ')}")
- elsif matches.length == 0
- set_error(InvalidOption, "unrecognized option `#{argument}'")
- end
+ #
+ # The option `option_name' is not registered in `@canonical_names'.
+ # It may be an abbreviated.
+ #
+ matches = []
+ @canonical_names.each_key do |key|
+ if key.index(pattern) == 0
+ option_name = key
+ matches << key
+ end
+ end
+ if 2 <= matches.length
+ set_error(AmbiguousOption, "option `#{argument}' is ambiguous between #{matches.join(', ')}")
+ elsif matches.length == 0
+ set_error(InvalidOption, "unrecognized option `#{argument}'")
+ end
end
#
# Check an argument to the option.
#
if @argument_flags[option_name] == REQUIRED_ARGUMENT
- if argument =~ /=(.*)$/
- option_argument = $1
- elsif 0 < ARGV.length
- option_argument = ARGV.shift
- else
- set_error(MissingArgument,
- "option `#{argument}' requires an argument")
- end
+ if argument =~ /=(.*)$/
+ option_argument = $1
+ elsif 0 < ARGV.length
+ option_argument = ARGV.shift
+ else
+ set_error(MissingArgument,
+ "option `#{argument}' requires an argument")
+ end
elsif @argument_flags[option_name] == OPTIONAL_ARGUMENT
- if argument =~ /=(.*)$/
- option_argument = $1
- elsif 0 < ARGV.length && ARGV[0] !~ /^-./
- option_argument = ARGV.shift
- else
- option_argument = ''
- end
+ if argument =~ /=(.*)$/
+ option_argument = $1
+ elsif 0 < ARGV.length && ARGV[0] !~ /^-./
+ option_argument = ARGV.shift
+ else
+ option_argument = ''
+ end
elsif argument =~ /=(.*)$/
- set_error(NeedlessArgument,
- "option `#{option_name}' doesn't allow an argument")
+ set_error(NeedlessArgument,
+ "option `#{option_name}' doesn't allow an argument")
end
elsif argument =~ /^(-(.))(.*)/
@@ -533,40 +536,40 @@ class GetoptLong
option_name, ch, @rest_singles = $1, $2, $3
if @canonical_names.include?(option_name)
- #
- # The option `option_name' is found in `@canonical_names'.
- # Check its argument.
- #
- if @argument_flags[option_name] == REQUIRED_ARGUMENT
- if 0 < @rest_singles.length
- option_argument = @rest_singles
- @rest_singles = ''
- elsif 0 < ARGV.length
- option_argument = ARGV.shift
- else
- # 1003.2 specifies the format of this message.
- set_error(MissingArgument, "option requires an argument -- #{ch}")
- end
- elsif @argument_flags[option_name] == OPTIONAL_ARGUMENT
- if 0 < @rest_singles.length
- option_argument = @rest_singles
- @rest_singles = ''
- elsif 0 < ARGV.length && ARGV[0] !~ /^-./
- option_argument = ARGV.shift
- else
- option_argument = ''
- end
- end
+ #
+ # The option `option_name' is found in `@canonical_names'.
+ # Check its argument.
+ #
+ if @argument_flags[option_name] == REQUIRED_ARGUMENT
+ if 0 < @rest_singles.length
+ option_argument = @rest_singles
+ @rest_singles = ''
+ elsif 0 < ARGV.length
+ option_argument = ARGV.shift
+ else
+ # 1003.2 specifies the format of this message.
+ set_error(MissingArgument, "option requires an argument -- #{ch}")
+ end
+ elsif @argument_flags[option_name] == OPTIONAL_ARGUMENT
+ if 0 < @rest_singles.length
+ option_argument = @rest_singles
+ @rest_singles = ''
+ elsif 0 < ARGV.length && ARGV[0] !~ /^-./
+ option_argument = ARGV.shift
+ else
+ option_argument = ''
+ end
+ end
else
- #
- # This is an invalid option.
- # 1003.2 specifies the format of this message.
- #
- if ENV.include?('POSIXLY_CORRECT')
- set_error(InvalidOption, "invalid option -- #{ch}")
- else
- set_error(InvalidOption, "invalid option -- #{ch}")
- end
+ #
+ # This is an invalid option.
+ # 1003.2 specifies the format of this message.
+ #
+ if ENV.include?('POSIXLY_CORRECT')
+ set_error(InvalidOption, "invalid option -- #{ch}")
+ else
+ set_error(InvalidOption, "invalid option -- #{ch}")
+ end
end
else
#
diff --git a/lib/gserver.rb b/lib/gserver.rb
index 2ab6e42bce..f6f37d3a89 100644
--- a/lib/gserver.rb
+++ b/lib/gserver.rb
@@ -4,9 +4,6 @@
# Author:: John W. Small
# Documentation:: Gavin Sinclair
# Licence:: Freeware.
-#
-# See the class GServer for documentation.
-#
require "socket"
require "thread"
@@ -25,7 +22,7 @@ require "thread"
# you the effort. All events are optionally logged, but you can provide your
# own event handlers if you wish.
#
-# === Example
+# == Example
#
# Using GServer is simple. Below we implement a simple time server, run it,
# query it, and shut it down. Try this code in +irb+:
@@ -73,14 +70,14 @@ require "thread"
# other methods as well if you wish, perhaps to collect statistics, or emit
# more detailed logging.
#
-# connecting
-# disconnecting
-# starting
-# stopping
+# * #connecting
+# * #disconnecting
+# * #starting
+# * #stopping
#
-# The above methods are only called if auditing is enabled.
+# The above methods are only called if auditing is enabled, via #audit=.
#
-# You can also override +log+ and +error+ if, for example, you wish to use a
+# You can also override #log and #error if, for example, you wish to use a
# more sophisticated logging system.
#
class GServer
@@ -93,17 +90,28 @@ class GServer
@@services = {} # Hash of opened ports, i.e. services
@@servicesMutex = Mutex.new
+ # Stop the server running on the given port, bound to the given host
+ #
+ # +port+:: port, as a FixNum, of the server to stop
+ # +host+:: host on which to find the server to stop
def GServer.stop(port, host = DEFAULT_HOST)
@@servicesMutex.synchronize {
@@services[host][port].stop
}
end
+ # Check if a server is running on the given port and host
+ #
+ # +port+:: port, as a FixNum, of the server to check
+ # +host+:: host on which to find the server to check
+ #
+ # Returns true if a server is running on that port and host.
def GServer.in_service?(port, host = DEFAULT_HOST)
@@services.has_key?(host) and
@@services[host].has_key?(port)
end
+ # Stop the server
def stop
@connectionsMutex.synchronize {
if @tcpServerThread
@@ -112,25 +120,45 @@ class GServer
}
end
+ # Returns true if the server has stopped.
def stopped?
@tcpServerThread == nil
end
+ # Schedule a shutdown for the server
def shutdown
@shutdown = true
end
+ # Return the current number of connected clients
def connections
@connections.size
end
+ # Join with the server thread
def join
@tcpServerThread.join if @tcpServerThread
end
- attr_reader :port, :host, :maxConnections
- attr_accessor :stdlog, :audit, :debug
+ # Port on which to listen, as a FixNum
+ attr_reader :port
+ # Host on which to bind, as a String
+ attr_reader :host
+ # Maximum number of connections to accept at at ime, as a FixNum
+ attr_reader :maxConnections
+ # IO Device on which log messages should be written
+ attr_accessor :stdlog
+ # Set to true to cause the callbacks #connecting, #disconnecting, #starting,
+ # and #stopping to be called during the server's lifecycle
+ attr_accessor :audit
+ # Set to true to show more detailed logging
+ attr_accessor :debug
+ # Called when a client connects, if auditing is enabled.
+ #
+ # +client+:: a TCPSocket instances representing the client that connected
+ #
+ # Return true to allow this client to connect, false to prevent it.
def connecting(client)
addr = client.peeraddr
log("#{self.class.to_s} #{@host}:#{@port} client:#{addr[1]} " +
@@ -138,6 +166,10 @@ class GServer
true
end
+
+ # Called when a client disconnects, if audition is enabled.
+ #
+ # +clientPort+:: the port of the client that is connecting
def disconnecting(clientPort)
log("#{self.class.to_s} #{@host}:#{@port} " +
"client:#{clientPort} disconnect")
@@ -145,20 +177,30 @@ class GServer
protected :connecting, :disconnecting
+ # Called when the server is starting up, if auditing is enabled.
def starting()
log("#{self.class.to_s} #{@host}:#{@port} start")
end
+ # Called when the server is shutting down, if auditing is enabled.
def stopping()
log("#{self.class.to_s} #{@host}:#{@port} stop")
end
protected :starting, :stopping
+ # Called if #debug is true whenever an unhandled exception is raised.
+ # This implementation simply logs the backtrace.
+ #
+ # +detail+:: The Exception that was caught
def error(detail)
log(detail.backtrace.join("\n"))
end
+ # Log a message to #stdlog, if it's defined. This implementation
+ # outputs the timestamp and message to the log.
+ #
+ # +msg+:: the message to log
def log(msg)
if @stdlog
@stdlog.puts("[#{Time.new.ctime}] %s" % msg)
@@ -168,6 +210,15 @@ class GServer
protected :error, :log
+ # Create a new server
+ #
+ # +port+:: the port, as a FixNum, on which to listen.
+ # +host+:: the host to bind to
+ # +maxConnections+:: The maximum number of simultaneous connections to
+ # accept
+ # +stdlog+:: IO device on which to log messages
+ # +audit+:: if true, lifecycle callbacks will be called. See #audit
+ # +debug+:: if true, error messages are logged. See #debug
def initialize(port, host = DEFAULT_HOST, maxConnections = 4,
stdlog = $stderr, audit = false, debug = false)
@tcpServerThread = nil
@@ -182,8 +233,13 @@ class GServer
@debug = debug
end
+ # Start the server if it isn't already running
+ #
+ # +maxConnections+::
+ # override +maxConnections+ given to the constructor. A negative
+ # value indicates that the value from the constructor should be used.
def start(maxConnections = -1)
- raise "running" if !stopped?
+ raise "server is already running" if !stopped?
@shutdown = false
@maxConnections = maxConnections if maxConnections > 0
@@servicesMutex.synchronize {
diff --git a/lib/ipaddr.rb b/lib/ipaddr.rb
index 21c8787f80..b6e7dad918 100644
--- a/lib/ipaddr.rb
+++ b/lib/ipaddr.rb
@@ -18,11 +18,13 @@
require 'socket'
unless Socket.const_defined? "AF_INET6"
- class Socket
+ class Socket < BasicSocket
+ # IPv6 protocol family
AF_INET6 = Object.new
end
class << IPSocket
+ # Returns +true+ if +addr+ is a valid IPv4 address.
def valid_v4?(addr)
if /\A(\d{1,3})\.(\d{1,3})\.(\d{1,3})\.(\d{1,3})\Z/ =~ addr
return $~.captures.all? {|i| i.to_i < 256}
@@ -30,6 +32,7 @@ unless Socket.const_defined? "AF_INET6"
return false
end
+ # Returns +true+ if +addr+ is a valid IPv6 address.
def valid_v6?(addr)
# IPv6 (normal)
return true if /\A[\dA-Fa-f]{1,4}(:[\dA-Fa-f]{1,4})*\Z/ =~ addr
@@ -43,11 +46,20 @@ unless Socket.const_defined? "AF_INET6"
false
end
+ # Returns +true+ if +addr+ is either a valid IPv4 or IPv6 address.
def valid?(addr)
valid_v4?(addr) || valid_v6?(addr)
end
alias getaddress_orig getaddress
+
+ # Returns a +String+ based representation of a valid DNS hostname,
+ # IPv4 or IPv6 address.
+ #
+ # IPSocket.getaddress 'localhost' #=> "::1"
+ # IPSocket.getaddress 'broadcasthost' #=> "255.255.255.255"
+ # IPSocket.getaddress 'www.ruby-lang.org' #=> "221.186.184.68"
+ # IPSocket.getaddress 'www.ccc.de' #=> "2a00:1328:e102:ccc0::122"
def getaddress(s)
if valid?(s)
s
@@ -69,22 +81,25 @@ end
#
# ipaddr1 = IPAddr.new "3ffe:505:2::1"
#
-# p ipaddr1 #=> #<IPAddr: IPv6:3ffe:0505:0002:0000:0000:0000:0000:0001/ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff>
+# p ipaddr1 #=> #<IPAddr: IPv6:3ffe:0505:0002:0000:0000:0000:0000:0001/ffff:ffff:ffff:ffff:ffff:ffff:ffff:ffff>
#
-# p ipaddr1.to_s #=> "3ffe:505:2::1"
+# p ipaddr1.to_s #=> "3ffe:505:2::1"
#
-# ipaddr2 = ipaddr1.mask(48) #=> #<IPAddr: IPv6:3ffe:0505:0002:0000:0000:0000:0000:0000/ffff:ffff:ffff:0000:0000:0000:0000:0000>
+# ipaddr2 = ipaddr1.mask(48) #=> #<IPAddr: IPv6:3ffe:0505:0002:0000:0000:0000:0000:0000/ffff:ffff:ffff:0000:0000:0000:0000:0000>
#
-# p ipaddr2.to_s #=> "3ffe:505:2::"
+# p ipaddr2.to_s #=> "3ffe:505:2::"
#
# ipaddr3 = IPAddr.new "192.168.2.0/24"
#
-# p ipaddr3 #=> #<IPAddr: IPv4:192.168.2.0/255.255.255.0>
+# p ipaddr3 #=> #<IPAddr: IPv4:192.168.2.0/255.255.255.0>
class IPAddr
+ # 32 bit mask for IPv4
IN4MASK = 0xffffffff
+ # 128 bit mask for IPv4
IN6MASK = 0xffffffffffffffffffffffffffffffff
+ # Formatstring for IPv6
IN6FORMAT = (["%.4x"] * 8).join(':')
# Returns the address family of this IP address.
@@ -154,13 +169,13 @@ class IPAddr
# net1 = IPAddr.new("192.168.2.0/24")
# net2 = IPAddr.new("192.168.2.100")
# net3 = IPAddr.new("192.168.3.0")
- # p net1.include?(net2) #=> true
- # p net1.include?(net3) #=> false
+ # p net1.include?(net2) #=> true
+ # p net1.include?(net3) #=> false
def include?(other)
other = coerce_other(other)
if ipv4_mapped?
if (@mask_addr >> 32) != 0xffffffffffffffffffffffff
- return false
+ return false
end
mask_addr = (@mask_addr & IN4MASK)
addr = (@addr & IN4MASK)
@@ -228,7 +243,7 @@ class IPAddr
return [@addr].pack('N')
when Socket::AF_INET6
return (0..7).map { |i|
- (@addr >> (112 - 16 * i)) & 0xffff
+ (@addr >> (112 - 16 * i)) & 0xffff
}.pack('n8')
else
raise "unsupported address family"
@@ -331,6 +346,16 @@ class IPAddr
end
include Comparable
+ # Checks equality used by Hash.
+ def eql?(other)
+ return self.class == other.class && self.hash == other.hash && self == other
+ end
+
+ # Returns a hash value used by Hash, Set, and Array classes
+ def hash
+ return ([@addr, @mask_addr].hash << 1) | (ipv4? ? 0 : 1)
+ end
+
# Creates a Range object for the network address.
def to_range
begin_addr = (@addr & @mask_addr)
@@ -359,20 +384,23 @@ class IPAddr
raise "unsupported address family"
end
return sprintf("#<%s: %s:%s/%s>", self.class.name,
- af, _to_string(@addr), _to_string(@mask_addr))
+ af, _to_string(@addr), _to_string(@mask_addr))
end
protected
+ # Set +@addr+, the internal stored ip address, to given +addr+. The
+ # parameter +addr+ is validated using the first +family+ member,
+ # which is +Socket::AF_INET+ or +Socket::AF_INET6+.
def set(addr, *family)
case family[0] ? family[0] : @family
when Socket::AF_INET
if addr < 0 || addr > IN4MASK
- raise ArgumentError, "invalid address"
+ raise ArgumentError, "invalid address"
end
when Socket::AF_INET6
if addr < 0 || addr > IN6MASK
- raise ArgumentError, "invalid address"
+ raise ArgumentError, "invalid address"
end
else
raise ArgumentError, "unsupported address family"
@@ -384,18 +412,19 @@ class IPAddr
return self
end
+ # Set current netmask to given mask.
def mask!(mask)
if mask.kind_of?(String)
if mask =~ /^\d+$/
- prefixlen = mask.to_i
+ prefixlen = mask.to_i
else
- m = IPAddr.new(mask)
- if m.family != @family
- raise ArgumentError, "address family is not same"
- end
- @mask_addr = m.to_i
- @addr &= @mask_addr
- return self
+ m = IPAddr.new(mask)
+ if m.family != @family
+ raise ArgumentError, "address family is not same"
+ end
+ @mask_addr = m.to_i
+ @addr &= @mask_addr
+ return self
end
else
prefixlen = mask
@@ -403,13 +432,13 @@ class IPAddr
case @family
when Socket::AF_INET
if prefixlen < 0 || prefixlen > 32
- raise ArgumentError, "invalid length"
+ raise ArgumentError, "invalid length"
end
masklen = 32 - prefixlen
@mask_addr = ((IN4MASK >> masklen) << masklen)
when Socket::AF_INET6
if prefixlen < 0 || prefixlen > 128
- raise ArgumentError, "invalid length"
+ raise ArgumentError, "invalid length"
end
masklen = 128 - prefixlen
@mask_addr = ((IN6MASK >> masklen) << masklen)
@@ -434,7 +463,7 @@ class IPAddr
# automatically from a specified string, you can specify one
# explicitly by the optional second argument.
#
- # Otherwise an IP addess is generated from a packed in_addr value
+ # Otherwise an IP address is generated from a packed in_addr value
# and an address family.
#
# The IPAddr class defines many methods and operators, and some of
@@ -448,9 +477,9 @@ class IPAddr
@mask_addr = (family == Socket::AF_INET) ? IN4MASK : IN6MASK
return
when Socket::AF_UNSPEC
- raise ArgumentError, "address family must be specified"
+ raise ArgumentError, "address family must be specified"
else
- raise ArgumentError, "unsupported address family: #{family}"
+ raise ArgumentError, "unsupported address family: #{family}"
end
end
prefix, prefixlen = addr.split('/')
@@ -460,9 +489,9 @@ class IPAddr
end
# It seems AI_NUMERICHOST doesn't do the job.
#Socket.getaddrinfo(left, nil, Socket::AF_INET6, Socket::SOCK_STREAM, nil,
- # Socket::AI_NUMERICHOST)
+ # Socket::AI_NUMERICHOST)
begin
- IPSocket.getaddress(prefix) # test if address is vaild
+ IPSocket.getaddress(prefix) # test if address is valid
rescue
raise ArgumentError, "invalid address"
end
@@ -470,7 +499,7 @@ class IPAddr
if family == Socket::AF_UNSPEC || family == Socket::AF_INET
@addr = in_addr(prefix)
if @addr
- @family = Socket::AF_INET
+ @family = Socket::AF_INET
end
end
if !@addr && (family == Socket::AF_UNSPEC || family == Socket::AF_INET6)
@@ -546,7 +575,7 @@ class IPAddr
case @family
when Socket::AF_INET
return (0..3).map { |i|
- (@addr >> (8 * i)) & 0xff
+ (@addr >> (8 * i)) & 0xff
}.join('.')
when Socket::AF_INET6
return ("%.32x" % @addr).reverse!.gsub!(/.(?!$)/, '\&.')
@@ -559,7 +588,7 @@ class IPAddr
case @family
when Socket::AF_INET
return (0..3).map { |i|
- (addr >> (24 - 8 * i)) & 0xff
+ (addr >> (24 - 8 * i)) & 0xff
}.join('.')
when Socket::AF_INET6
return (("%.32x" % addr).gsub!(/.{4}(?!$)/, '\&:'))
@@ -646,7 +675,7 @@ class TC_IPAddr < Test::Unit::TestCase
["[192.168.1.2]/120"],
].each { |args|
assert_raises(ArgumentError) {
- IPAddr.new(*args)
+ IPAddr.new(*args)
}
}
end
@@ -747,7 +776,7 @@ class TC_Operator < Test::Unit::TestCase
assert_equal("3ffe:505:2:1::", a.to_s)
assert_equal("3ffe:505:2::", @a.to_s)
assert_equal("3ffe:505:2:1::",
- (@a | 0x00000000000000010000000000000000).to_s)
+ (@a | 0x00000000000000010000000000000000).to_s)
end
def test_and
@@ -810,4 +839,31 @@ class TC_Operator < Test::Unit::TestCase
end
+ def test_hash
+ a1 = IPAddr.new('192.168.2.0')
+ a2 = IPAddr.new('192.168.2.0')
+ a3 = IPAddr.new('3ffe:505:2::1')
+ a4 = IPAddr.new('3ffe:505:2::1')
+ a5 = IPAddr.new('127.0.0.1')
+ a6 = IPAddr.new('::1')
+ a7 = IPAddr.new('192.168.2.0/25')
+ a8 = IPAddr.new('192.168.2.0/25')
+
+ h = { a1 => 'ipv4', a2 => 'ipv4', a3 => 'ipv6', a4 => 'ipv6', a5 => 'ipv4', a6 => 'ipv6', a7 => 'ipv4', a8 => 'ipv4'}
+ assert_equal(5, h.size)
+ assert_equal('ipv4', h[a1])
+ assert_equal('ipv4', h[a2])
+ assert_equal('ipv6', h[a3])
+ assert_equal('ipv6', h[a4])
+
+ require 'set'
+ s = Set[a1, a2, a3, a4, a5, a6, a7, a8]
+ assert_equal(5, s.size)
+ assert_equal(true, s.include?(a1))
+ assert_equal(true, s.include?(a2))
+ assert_equal(true, s.include?(a3))
+ assert_equal(true, s.include?(a4))
+ assert_equal(true, s.include?(a5))
+ assert_equal(true, s.include?(a6))
+ end
end
diff --git a/lib/irb.rb b/lib/irb.rb
index 119e1a45d8..c8fa04c4e5 100644
--- a/lib/irb.rb
+++ b/lib/irb.rb
@@ -1,8 +1,8 @@
#
# irb.rb - irb main module
-# $Release Version: 0.9.5 $
-# $Revision$
-# by Keiju ISHITSUKA(keiju@ruby-lang.org)
+# $Release Version: 0.9.6 $
+# $Revision$
+# by Keiju ISHITSUKA(keiju@ruby-lang.org)
#
# --
#
@@ -65,21 +65,29 @@ module IRB
irb.signal_handle
end
- catch(:IRB_EXIT) do
- irb.eval_input
+ begin
+ catch(:IRB_EXIT) do
+ irb.eval_input
+ end
+ ensure
+ irb_at_exit
end
# print "\n"
end
+ def IRB.irb_at_exit
+ @CONF[:AT_EXIT].each{|hook| hook.call}
+ end
+
def IRB.irb_exit(irb, ret)
throw :IRB_EXIT, ret
end
def IRB.irb_abort(irb, exception = Abort)
if defined? Thread
- irb.context.thread.raise exception, "abort then interrupt!!"
+ irb.context.thread.raise exception, "abort then interrupt!"
else
- raise exception, "abort then interrupt!!"
+ raise exception, "abort then interrupt!"
end
end
@@ -100,97 +108,99 @@ module IRB
def eval_input
@scanner.set_prompt do
- |ltype, indent, continue, line_no|
- if ltype
- f = @context.prompt_s
- elsif continue
- f = @context.prompt_c
- elsif indent > 0
- f = @context.prompt_n
- else
- f = @context.prompt_i
- end
- f = "" unless f
- if @context.prompting?
- @context.io.prompt = p = prompt(f, ltype, indent, line_no)
- else
- @context.io.prompt = p = ""
- end
- if @context.auto_indent_mode
- unless ltype
+ |ltype, indent, continue, line_no|
+ if ltype
+ f = @context.prompt_s
+ elsif continue
+ f = @context.prompt_c
+ elsif indent > 0
+ f = @context.prompt_n
+ else
+ f = @context.prompt_i
+ end
+ f = "" unless f
+ if @context.prompting?
+ @context.io.prompt = p = prompt(f, ltype, indent, line_no)
+ else
+ @context.io.prompt = p = ""
+ end
+ if @context.auto_indent_mode
+ unless ltype
ind = prompt(@context.prompt_i, ltype, indent, line_no)[/.*\z/].size +
- indent * 2 - p.size
- ind += 2 if continue
- @context.io.prompt = p + " " * ind if ind > 0
- end
- end
+ indent * 2 - p.size
+ ind += 2 if continue
+ @context.io.prompt = p + " " * ind if ind > 0
+ end
+ end
end
@scanner.set_input(@context.io) do
- signal_status(:IN_INPUT) do
- if l = @context.io.gets
- print l if @context.verbose?
- else
- if @context.ignore_eof? and @context.io.readable_atfer_eof?
- l = "\n"
- if @context.verbose?
- printf "Use \"exit\" to leave %s\n", @context.ap_name
- end
- end
- end
- l
- end
+ signal_status(:IN_INPUT) do
+ if l = @context.io.gets
+ print l if @context.verbose?
+ else
+ if @context.ignore_eof? and @context.io.readable_atfer_eof?
+ l = "\n"
+ if @context.verbose?
+ printf "Use \"exit\" to leave %s\n", @context.ap_name
+ end
+ else
+ print "\n"
+ end
+ end
+ l
+ end
end
@scanner.each_top_level_statement do |line, line_no|
- signal_status(:IN_EVAL) do
- begin
+ signal_status(:IN_EVAL) do
+ begin
line.untaint
- @context.evaluate(line, line_no)
- output_value if @context.echo?
- exc = nil
- rescue Interrupt => exc
- rescue SystemExit, SignalException
- raise
- rescue Exception => exc
- end
- if exc
- print exc.class, ": ", exc, "\n"
- if exc.backtrace[0] =~ /irb(2)?(\/.*|-.*|\.rb)?:/ && exc.class.to_s !~ /^IRB/ &&
+ @context.evaluate(line, line_no)
+ output_value if @context.echo?
+ exc = nil
+ rescue Interrupt => exc
+ rescue SystemExit, SignalException
+ raise
+ rescue Exception => exc
+ end
+ if exc
+ print exc.class, ": ", exc, "\n"
+ if exc.backtrace[0] =~ /irb(2)?(\/.*|-.*|\.rb)?:/ && exc.class.to_s !~ /^IRB/ &&
!(SyntaxError === exc)
- irb_bug = true
- else
- irb_bug = false
- end
-
- messages = []
- lasts = []
- levels = 0
- for m in exc.backtrace
- m = @context.workspace.filter_backtrace(m) unless irb_bug
- if m
- if messages.size < @context.back_trace_limit
- messages.push "\tfrom "+m
- else
- lasts.push "\tfrom "+m
- if lasts.size > @context.back_trace_limit
- lasts.shift
- levels += 1
- end
- end
- end
- end
- print messages.join("\n"), "\n"
- unless lasts.empty?
- printf "... %d levels...\n", levels if levels > 0
- print lasts.join("\n")
- end
- print "Maybe IRB bug!!\n" if irb_bug
- end
+ irb_bug = true
+ else
+ irb_bug = false
+ end
+
+ messages = []
+ lasts = []
+ levels = 0
+ for m in exc.backtrace
+ m = @context.workspace.filter_backtrace(m) unless irb_bug
+ if m
+ if messages.size < @context.back_trace_limit
+ messages.push "\tfrom "+m
+ else
+ lasts.push "\tfrom "+m
+ if lasts.size > @context.back_trace_limit
+ lasts.shift
+ levels += 1
+ end
+ end
+ end
+ end
+ print messages.join("\n"), "\n"
+ unless lasts.empty?
+ printf "... %d levels...\n", levels if levels > 0
+ print lasts.join("\n")
+ end
+ print "Maybe IRB bug!\n" if irb_bug
+ end
if $SAFE > 2
abort "Error: irb does not work for $SAFE level higher than 2"
end
- end
+ end
end
end
@@ -198,19 +208,19 @@ module IRB
@context.irb_path, back_path = path, @context.irb_path if path
@context.irb_name, back_name = name, @context.irb_name if name
begin
- yield back_path, back_name
+ yield back_path, back_name
ensure
- @context.irb_path = back_path if path
- @context.irb_name = back_name if name
+ @context.irb_path = back_path if path
+ @context.irb_name = back_name if name
end
end
def suspend_workspace(workspace)
@context.workspace, back_workspace = workspace, @context.workspace
begin
- yield back_workspace
+ yield back_workspace
ensure
- @context.workspace = back_workspace
+ @context.workspace = back_workspace
end
end
@@ -218,39 +228,39 @@ module IRB
back_io = @context.io
@context.instance_eval{@io = input_method}
begin
- yield back_io
+ yield back_io
ensure
- @context.instance_eval{@io = back_io}
+ @context.instance_eval{@io = back_io}
end
end
def suspend_context(context)
@context, back_context = context, @context
begin
- yield back_context
+ yield back_context
ensure
- @context = back_context
+ @context = back_context
end
end
def signal_handle
unless @context.ignore_sigint?
- print "\nabort!!\n" if @context.verbose?
- exit
+ print "\nabort!\n" if @context.verbose?
+ exit
end
case @signal_status
when :IN_INPUT
- print "^C\n"
- raise RubyLex::TerminateLineInput
+ print "^C\n"
+ raise RubyLex::TerminateLineInput
when :IN_EVAL
- IRB.irb_abort(self)
+ IRB.irb_abort(self)
when :IN_LOAD
- IRB.irb_abort(self, LoadAbort)
+ IRB.irb_abort(self, LoadAbort)
when :IN_IRB
- # ignore
+ # ignore
else
- # ignore other cases as well
+ # ignore other cases as well
end
end
@@ -260,62 +270,58 @@ module IRB
signal_status_back = @signal_status
@signal_status = status
begin
- yield
+ yield
ensure
- @signal_status = signal_status_back
+ @signal_status = signal_status_back
end
end
def prompt(prompt, ltype, indent, line_no)
p = prompt.dup
p.gsub!(/%([0-9]+)?([a-zA-Z])/) do
- case $2
- when "N"
- @context.irb_name
- when "m"
- @context.main.to_s
- when "M"
- @context.main.inspect
- when "l"
- ltype
- when "i"
- if $1
- format("%" + $1 + "d", indent)
- else
- indent.to_s
- end
- when "n"
- if $1
- format("%" + $1 + "d", line_no)
- else
- line_no.to_s
- end
- when "%"
- "%"
- end
+ case $2
+ when "N"
+ @context.irb_name
+ when "m"
+ @context.main.to_s
+ when "M"
+ @context.main.inspect
+ when "l"
+ ltype
+ when "i"
+ if $1
+ format("%" + $1 + "d", indent)
+ else
+ indent.to_s
+ end
+ when "n"
+ if $1
+ format("%" + $1 + "d", line_no)
+ else
+ line_no.to_s
+ end
+ when "%"
+ "%"
+ end
end
p
end
def output_value
- if @context.inspect?
- printf @context.return_format, @context.last_value.inspect
- else
- printf @context.return_format, @context.last_value
- end
+ printf @context.return_format, @context.inspect_last_value
end
def inspect
ary = []
for iv in instance_variables
- case (iv = iv.to_s)
- when "@signal_status"
- ary.push format("%s=:%s", iv, @signal_status.id2name)
- when "@context"
- ary.push format("%s=%s", iv, eval(iv).__to_s__)
- else
- ary.push format("%s=%s", iv, eval(iv))
- end
+ case (iv = iv.to_s)
+ when "@signal_status"
+ ary.push format("%s=:%s", iv, @signal_status.id2name)
+ when "@context"
+ ary.push format("%s=%s", iv, eval(iv).__to_s__)
+ else
+ ary.push format("%s=%s", iv, eval(iv))
+ end
end
format("#<%s: %s>", self.class, ary.join(", "))
end
@@ -329,16 +335,16 @@ module IRB
for k, v in sort{|a1, a2| a1[0].id2name <=> a2[0].id2name}
case k
when :MAIN_CONTEXT, :__TMP__EHV__
- array.push format("CONF[:%s]=...myself...", k.id2name)
+ array.push format("CONF[:%s]=...myself...", k.id2name)
when :PROMPT
- s = v.collect{
- |kk, vv|
- ss = vv.collect{|kkk, vvv| ":#{kkk.id2name}=>#{vvv.inspect}"}
- format(":%s=>{%s}", kk.id2name, ss.join(", "))
- }
- array.push format("CONF[:%s]={%s}", k.id2name, s.join(", "))
+ s = v.collect{
+ |kk, vv|
+ ss = vv.collect{|kkk, vvv| ":#{kkk.id2name}=>#{vvv.inspect}"}
+ format(":%s=>{%s}", kk.id2name, ss.join(", "))
+ }
+ array.push format("CONF[:%s]={%s}", k.id2name, s.join(", "))
else
- array.push format("CONF[:%s]=%s", k.id2name, v.inspect)
+ array.push format("CONF[:%s]=%s", k.id2name, v.inspect)
end
end
array.join("\n")
diff --git a/lib/irb/cmd/chws.rb b/lib/irb/cmd/chws.rb
index e225b52585..65c977016b 100644
--- a/lib/irb/cmd/chws.rb
+++ b/lib/irb/cmd/chws.rb
@@ -1,6 +1,6 @@
#
# change-ws.rb -
-# $Release Version: 0.9.5$
+# $Release Version: 0.9.6$
# $Revision$
# by Keiju ISHITSUKA(keiju@ruby-lang.org)
#
diff --git a/lib/irb/cmd/fork.rb b/lib/irb/cmd/fork.rb
index 534f13f56a..c2664626ae 100644
--- a/lib/irb/cmd/fork.rb
+++ b/lib/irb/cmd/fork.rb
@@ -1,6 +1,6 @@
#
# fork.rb -
-# $Release Version: 0.9.5 $
+# $Release Version: 0.9.6 $
# $Revision$
# by Keiju ISHITSUKA(keiju@ruby-lang.org)
#
@@ -18,7 +18,7 @@ module IRB
def execute(&block)
pid = send ExtendCommand.irb_original_method_name("fork")
unless pid
- class<<self
+ class << self
alias_method :exit, ExtendCommand.irb_original_method_name('exit')
end
if iterator?
diff --git a/lib/irb/cmd/help.rb b/lib/irb/cmd/help.rb
index 146acdfa81..67cf89990b 100644
--- a/lib/irb/cmd/help.rb
+++ b/lib/irb/cmd/help.rb
@@ -1,6 +1,6 @@
#
# help.rb - helper using ri
-# $Release Version: 0.9.5$
+# $Release Version: 0.9.6$
# $Revision$
#
# --
@@ -9,19 +9,24 @@
#
require 'rdoc/ri/driver'
-require 'rdoc/ri/util'
+
+require "irb/cmd/nop.rb"
module IRB
module ExtendCommand
- module Help
+ class Help<Nop
begin
- @ri = RDoc::RI::Driver.new
+ Ri = RDoc::RI::Driver.new
rescue SystemExit
else
- def self.execute(context, *names)
+ def execute(*names)
+ if names.empty?
+ Ri.interactive
+ return
+ end
names.each do |name|
begin
- @ri.get_info_for(name.to_s)
+ Ri.display_name(name.to_s)
rescue RDoc::RI::Error
puts $!.message
end
diff --git a/lib/irb/cmd/load.rb b/lib/irb/cmd/load.rb
index 5988b7bbd1..2a6de21ed7 100644
--- a/lib/irb/cmd/load.rb
+++ b/lib/irb/cmd/load.rb
@@ -1,6 +1,6 @@
#
# load.rb -
-# $Release Version: 0.9.5$
+# $Release Version: 0.9.6$
# $Revision$
# by Keiju ISHITSUKA(keiju@ruby-lang.org)
#
diff --git a/lib/irb/cmd/nop.rb b/lib/irb/cmd/nop.rb
index 873c0f43f4..2b028975c8 100644
--- a/lib/irb/cmd/nop.rb
+++ b/lib/irb/cmd/nop.rb
@@ -1,6 +1,6 @@
#
# nop.rb -
-# $Release Version: 0.9.5$
+# $Release Version: 0.9.6$
# $Revision$
# by Keiju ISHITSUKA(keiju@ruby-lang.org)
#
diff --git a/lib/irb/cmd/pushws.rb b/lib/irb/cmd/pushws.rb
index a82939f39d..5fd567731c 100644
--- a/lib/irb/cmd/pushws.rb
+++ b/lib/irb/cmd/pushws.rb
@@ -1,6 +1,6 @@
#
# change-ws.rb -
-# $Release Version: 0.9.5$
+# $Release Version: 0.9.6$
# $Revision$
# by Keiju ISHITSUKA(keiju@ruby-lang.org)
#
diff --git a/lib/irb/cmd/subirb.rb b/lib/irb/cmd/subirb.rb
index eea6330bf1..4d54a72b6f 100644
--- a/lib/irb/cmd/subirb.rb
+++ b/lib/irb/cmd/subirb.rb
@@ -1,5 +1,5 @@
# multi.rb -
-# $Release Version: 0.9.5$
+# $Release Version: 0.9.6$
# $Revision$
# by Keiju ISHITSUKA(keiju@ruby-lang.org)
#
diff --git a/lib/irb/completion.rb b/lib/irb/completion.rb
index 459f856dfe..7fd69a0a09 100644
--- a/lib/irb/completion.rb
+++ b/lib/irb/completion.rb
@@ -39,6 +39,14 @@ module IRB
# puts "input: #{input}"
case input
+ when /^((["'`]).*\2)\.([^.]*)$/
+ # String
+ receiver = $1
+ message = $3
+
+ candidates = String.instance_methods.collect{|m| m.to_s}
+ select_message(receiver, message, candidates)
+
when /^(\/[^\/]*\/)\.([^.]*)$/
# Regexp
receiver = $1
@@ -80,71 +88,84 @@ module IRB
candidates = Object.constants.collect{|m| m.to_s}
candidates.grep(/^#{receiver}/).collect{|e| "::" + e}
- when /^(((::)?[A-Z][^:.\(]*)+)::?([^:.]*)$/
+# when /^(((::)?[A-Z][^:.\(]*)+)::?([^:.]*)$/
+ when /^([A-Z].*)::([^:.]*)$/
# Constant or class methods
receiver = $1
- message = Regexp.quote($4)
+ message = Regexp.quote($2)
begin
candidates = eval("#{receiver}.constants.collect{|m| m.to_s}", bind)
candidates |= eval("#{receiver}.methods.collect{|m| m.to_s}", bind)
rescue Exception
candidates = []
end
- candidates.grep(/^#{message}/).collect{|e| receiver + "::" + e}
+ select_message(receiver, message, candidates, "::")
- when /^(:[^:.]+)\.([^.]*)$/
+ when /^(:[^:.]+)(\.|::)([^.]*)$/
# Symbol
receiver = $1
- message = Regexp.quote($2)
+ sep = $2
+ message = Regexp.quote($3)
candidates = Symbol.instance_methods.collect{|m| m.to_s}
- select_message(receiver, message, candidates)
+ select_message(receiver, message, candidates, sep)
- when /^(-?(0[dbo])?[0-9_]+(\.[0-9_]+)?([eE]-?[0-9]+)?)\.([^.]*)$/
+ when /^(-?(0[dbo])?[0-9_]+(\.[0-9_]+)?([eE]-?[0-9]+)?)(\.|::)([^.]*)$/
# Numeric
receiver = $1
- message = Regexp.quote($5)
+ sep = $5
+ message = Regexp.quote($6)
begin
candidates = eval(receiver, bind).methods.collect{|m| m.to_s}
rescue Exception
candidates = []
end
- select_message(receiver, message, candidates)
+ select_message(receiver, message, candidates, sep)
- when /^(-?0x[0-9a-fA-F_]+)\.([^.]*)$/
+ when /^(-?0x[0-9a-fA-F_]+)(\.|::)([^.]*)$/
# Numeric(0xFFFF)
receiver = $1
- message = Regexp.quote($2)
+ sep = $2
+ message = Regexp.quote($3)
begin
candidates = eval(receiver, bind).methods.collect{|m| m.to_s}
rescue Exception
candidates = []
end
- select_message(receiver, message, candidates)
+ select_message(receiver, message, candidates, sep)
when /^(\$[^.]*)$/
+ # global var
regmessage = Regexp.new(Regexp.quote($1))
candidates = global_variables.collect{|m| m.to_s}.grep(regmessage)
# when /^(\$?(\.?[^.]+)+)\.([^.]*)$/
- when /^((\.?[^.]+)+)\.([^.]*)$/
- # variable
+# when /^((\.?[^.]+)+)\.([^.]*)$/
+# when /^([^."].*)\.([^.]*)$/
+ when /^([^."].*)(\.|::)([^.]*)$/
+ # variable.func or func.func
receiver = $1
+ sep = $2
message = Regexp.quote($3)
gv = eval("global_variables", bind).collect{|m| m.to_s}
lv = eval("local_variables", bind).collect{|m| m.to_s}
cv = eval("self.class.constants", bind).collect{|m| m.to_s}
- if (gv | lv | cv).include?(receiver)
- # foo.func and foo is local var.
- candidates = eval("#{receiver}.methods", bind).collect{|m| m.to_s}
- elsif /^[A-Z]/ =~ receiver and /\./ !~ receiver
+ if (gv | lv | cv).include?(receiver) or /^[A-Z]/ =~ receiver && /\./ !~ receiver
+ # foo.func and foo is var. OR
+ # foo::func and foo is var. OR
+ # foo::Const and foo is var. OR
# Foo::Bar.func
begin
- candidates = eval("#{receiver}.methods", bind).collect{|m| m.to_s}
+ candidates = []
+ rec = eval(receiver, bind)
+ if sep == "::" and rec.kind_of?(Module)
+ candidates = rec.constants.collect{|m| m.to_s}
+ end
+ candidates |= rec.methods.collect{|m| m.to_s}
rescue Exception
candidates = []
end
@@ -157,14 +178,18 @@ module IRB
rescue Exception
name = ""
end
- next if name != "IRB::Context" and
- /^(IRB|SLex|RubyLex|RubyToken)/ =~ name
+ begin
+ next if name != "IRB::Context" and
+ /^(IRB|SLex|RubyLex|RubyToken)/ =~ name
+ rescue Exception
+ next
+ end
candidates.concat m.instance_methods(false).collect{|x| x.to_s}
}
candidates.sort!
candidates.uniq!
end
- select_message(receiver, message, candidates)
+ select_message(receiver, message, candidates, sep)
when /^\.([^.]*)$/
# unknown(maybe String)
@@ -186,11 +211,11 @@ module IRB
"<", "<<", "<=", "<=>", "==", "===", "=~", ">", ">=", ">>",
"[]", "[]=", "^", "!", "!=", "!~"]
- def self.select_message(receiver, message, candidates)
+ def self.select_message(receiver, message, candidates, sep = ".")
candidates.grep(/^#{message}/).collect do |e|
case e
when /^[a-zA-Z_]/
- receiver + "." + e
+ receiver + sep + e
when /^[0-9]/
when *Operators
#receiver + " " + e
@@ -201,7 +226,8 @@ module IRB
end
if Readline.respond_to?("basic_word_break_characters=")
- Readline.basic_word_break_characters= " \t\n\"\\'`><=;|&{("
+# Readline.basic_word_break_characters= " \t\n\"\\'`><=;|&{("
+ Readline.basic_word_break_characters= " \t\n`><=;|&{("
end
Readline.completion_append_character = nil
Readline.completion_proc = IRB::InputCompletor::CompletionProc
diff --git a/lib/irb/context.rb b/lib/irb/context.rb
index a3f5e5a79c..61b519170d 100644
--- a/lib/irb/context.rb
+++ b/lib/irb/context.rb
@@ -1,6 +1,6 @@
#
# irb/context.rb - irb context
-# $Release Version: 0.9.5$
+# $Release Version: 0.9.6$
# $Revision$
# by Keiju ISHITSUKA(keiju@ruby-lang.org)
#
@@ -9,6 +9,7 @@
#
#
require "irb/workspace"
+require "irb/inspector"
module IRB
class Context
@@ -34,8 +35,10 @@ module IRB
@load_modules = IRB.conf[:LOAD_MODULES]
@use_readline = IRB.conf[:USE_READLINE]
- @inspect_mode = IRB.conf[:INSPECT_MODE]
+ @verbose = IRB.conf[:VERBOSE]
+ @io = nil
+ self.inspect_mode = IRB.conf[:INSPECT_MODE]
self.math_mode = IRB.conf[:MATH_MODE] if IRB.conf[:MATH_MODE]
self.use_tracer = IRB.conf[:USE_TRACER] if IRB.conf[:USE_TRACER]
self.use_loader = IRB.conf[:USE_LOADER] if IRB.conf[:USE_LOADER]
@@ -90,7 +93,6 @@ module IRB
@output_method = StdioOutputMethod.new
end
- @verbose = IRB.conf[:VERBOSE]
@echo = IRB.conf[:ECHO]
if @echo.nil?
@echo = true
@@ -148,6 +150,8 @@ module IRB
else
false
end
+ else
+ @verbose
end
end
@@ -163,8 +167,6 @@ module IRB
@workspace.evaluate self, "_ = IRB.CurrentContext.last_value"
end
- attr_reader :irb_name
-
def prompt_mode=(mode)
@prompt_mode = mode
pconf = IRB.conf[:PROMPT][mode]
@@ -189,15 +191,49 @@ module IRB
end
def inspect_mode=(opt)
- if opt
+
+ if i = INSPECTORS[opt]
@inspect_mode = opt
+ @inspect_method = i
+ i.init
else
- @inspect_mode = !@inspect_mode
+ case opt
+ when nil
+ if INSPECTORS.keys_with_inspector(INSPECTORS[true]).include?(@inspect_mode)
+ self.inspect_mode = false
+ elsif INSPECTORS.keys_with_inspector(INSPECTORS[false]).include?(@inspect_mode)
+ self.inspect_mode = true
+ else
+ puts "Can't switch inspect mode."
+ return
+ end
+ when /^\s*\{.*\}\s*$/
+ begin
+ inspector = eval "proc#{opt}"
+ rescue Exception
+ puts "Can't switch inspect mode(#{opt})."
+ return
+ end
+ self.inspect_mode = inspector
+ when Proc
+ self.inspect_mode = IRB::Inspector(opt)
+ when Inspector
+ prefix = "usr%d"
+ i = 1
+ while INSPECTORS[format(prefix, i)]; i += 1; end
+ @inspect_mode = format(prefix, i)
+ @inspect_method = opt
+ INSPECTORS.def_inspector(format(prefix, i), @inspect_method)
+ else
+ puts "Can't switch inspect mode(#{opt})."
+ return
+ end
end
print "Switch to#{unless @inspect_mode; ' non';end} inspect mode.\n" if verbose?
@inspect_mode
end
+
def use_readline=(opt)
@use_readline = opt
print "use readline module\n" if @use_readline
@@ -220,6 +256,10 @@ module IRB
# @_ = @workspace.evaluate(line, irb_path, line_no)
end
+ def inspect_last_value
+ @inspect_method.inspect_value(@last_value)
+ end
+
alias __exit__ exit
def exit(ret = 0)
IRB.irb_exit(@irb, ret)
diff --git a/lib/irb/ext/change-ws.rb b/lib/irb/ext/change-ws.rb
index 3ae1eab7a4..dea969d384 100644
--- a/lib/irb/ext/change-ws.rb
+++ b/lib/irb/ext/change-ws.rb
@@ -1,6 +1,6 @@
#
# irb/ext/cb.rb -
-# $Release Version: 0.9.5$
+# $Release Version: 0.9.6$
# $Revision$
# by Keiju ISHITSUKA(keiju@ruby-lang.org)
#
diff --git a/lib/irb/ext/history.rb b/lib/irb/ext/history.rb
index 9142146c42..1495f9eb14 100644
--- a/lib/irb/ext/history.rb
+++ b/lib/irb/ext/history.rb
@@ -1,6 +1,6 @@
#
# history.rb -
-# $Release Version: 0.9.5$
+# $Release Version: 0.9.6$
# $Revision$
# by Keiju ISHITSUKA(keiju@ruby-lang.org)
#
diff --git a/lib/irb/ext/loader.rb b/lib/irb/ext/loader.rb
index cee8f51cc9..26a3203676 100644
--- a/lib/irb/ext/loader.rb
+++ b/lib/irb/ext/loader.rb
@@ -1,6 +1,6 @@
#
# loader.rb -
-# $Release Version: 0.9.5$
+# $Release Version: 0.9.6$
# $Revision$
# by Keiju ISHITSUKA(keiju@ruby-lang.org)
#
diff --git a/lib/irb/ext/math-mode.rb b/lib/irb/ext/math-mode.rb
index 370fab229d..41be79841c 100644
--- a/lib/irb/ext/math-mode.rb
+++ b/lib/irb/ext/math-mode.rb
@@ -1,6 +1,6 @@
#
# math-mode.rb -
-# $Release Version: 0.9.5$
+# $Release Version: 0.9.6$
# $Revision$
# by Keiju ISHITSUKA(keiju@ruby-lang.org)
#
diff --git a/lib/irb/ext/multi-irb.rb b/lib/irb/ext/multi-irb.rb
index 5085a3f272..a8475b75cd 100644
--- a/lib/irb/ext/multi-irb.rb
+++ b/lib/irb/ext/multi-irb.rb
@@ -1,6 +1,6 @@
#
# irb/multi-irb.rb - multiple irb module
-# $Release Version: 0.9.5$
+# $Release Version: 0.9.6$
# $Revision$
# by Keiju ISHITSUKA(keiju@ruby-lang.org)
#
@@ -29,12 +29,12 @@ module IRB
end
def thread(key)
- th, irb = search(key)
+ th, = search(key)
th
end
def irb(key)
- th, irb = search(key)
+ _, irb = search(key)
irb
end
@@ -62,7 +62,7 @@ module IRB
def kill(*keys)
for key in keys
- th, irb = search(key)
+ th, _ = search(key)
IRB.fail IrbAlreadyDead unless th.alive?
th.exit
end
@@ -172,12 +172,14 @@ module IRB
ensure
unless system_exit
@JobManager.delete(irb)
- if parent_thread.alive?
- @JobManager.current_job = @JobManager.irb(parent_thread)
- parent_thread.run
- else
- @JobManager.current_job = @JobManager.main_irb
- @JobManager.main_thread.run
+ if @JobManager.current_job == irb
+ if parent_thread.alive?
+ @JobManager.current_job = @JobManager.irb(parent_thread)
+ parent_thread.run
+ else
+ @JobManager.current_job = @JobManager.main_irb
+ @JobManager.main_thread.run
+ end
end
end
end
diff --git a/lib/irb/ext/save-history.rb b/lib/irb/ext/save-history.rb
index 72c6b578bf..f9c983ac11 100644
--- a/lib/irb/ext/save-history.rb
+++ b/lib/irb/ext/save-history.rb
@@ -1,5 +1,5 @@
# save-history.rb -
-# $Release Version: 0.9.5$
+# $Release Version: 0.9.6$
# $Revision$
# by Keiju ISHITSUKA(keiju@ruby-lang.org)
#
@@ -47,23 +47,24 @@ module IRB
module HistorySavingAbility
include Readline
- def HistorySavingAbility.create_finalizer
- proc do
- if num = IRB.conf[:SAVE_HISTORY] and (num = num.to_i) > 0
- if history_file = IRB.conf[:HISTORY_FILE]
- history_file = File.expand_path(history_file)
- end
- history_file = IRB.rc_file("_history") unless history_file
- open(history_file, 'w' ) do |f|
- hist = HISTORY.to_a
- f.puts(hist[-num..-1] || hist)
- end
- end
- end
- end
+# def HistorySavingAbility.create_finalizer
+# proc do
+# if num = IRB.conf[:SAVE_HISTORY] and (num = num.to_i) > 0
+# if hf = IRB.conf[:HISTORY_FILE]
+# file = File.expand_path(hf)
+# end
+# file = IRB.rc_file("_history") unless file
+# open(file, 'w' ) do |f|
+# hist = HISTORY.to_a
+# f.puts(hist[-num..-1] || hist)
+# end
+# end
+# end
+# end
def HistorySavingAbility.extended(obj)
- ObjectSpace.define_finalizer(obj, HistorySavingAbility.create_finalizer)
+# ObjectSpace.define_finalizer(obj, HistorySavingAbility.create_finalizer)
+ IRB.conf[:AT_EXIT].push proc{obj.save_history}
obj.load_history
obj
end
@@ -79,5 +80,18 @@ module IRB
end
end
end
+
+ def save_history
+ if num = IRB.conf[:SAVE_HISTORY] and (num = num.to_i) > 0
+ if history_file = IRB.conf[:HISTORY_FILE]
+ history_file = File.expand_path(history_file)
+ end
+ history_file = IRB.rc_file("_history") unless history_file
+ open(history_file, 'w' ) do |f|
+ hist = HISTORY.to_a
+ f.puts(hist[-num..-1] || hist)
+ end
+ end
+ end
end
end
diff --git a/lib/irb/ext/tracer.rb b/lib/irb/ext/tracer.rb
index 6728c46137..46a9d53a2e 100644
--- a/lib/irb/ext/tracer.rb
+++ b/lib/irb/ext/tracer.rb
@@ -1,6 +1,6 @@
#
# irb/lib/tracer.rb -
-# $Release Version: 0.9.5$
+# $Release Version: 0.9.6$
# $Revision$
# by Keiju ISHITSUKA(keiju@ruby-lang.org)
#
diff --git a/lib/irb/ext/use-loader.rb b/lib/irb/ext/use-loader.rb
index b643dd099e..64283b8989 100644
--- a/lib/irb/ext/use-loader.rb
+++ b/lib/irb/ext/use-loader.rb
@@ -1,6 +1,6 @@
#
# use-loader.rb -
-# $Release Version: 0.9.5$
+# $Release Version: 0.9.6$
# $Revision$
# by Keiju ISHITSUKA(keiju@ruby-lang.org)
#
diff --git a/lib/irb/ext/workspaces.rb b/lib/irb/ext/workspaces.rb
index 654b8118ea..118ea598c0 100644
--- a/lib/irb/ext/workspaces.rb
+++ b/lib/irb/ext/workspaces.rb
@@ -1,6 +1,6 @@
#
# push-ws.rb -
-# $Release Version: 0.9.5$
+# $Release Version: 0.9.6$
# $Revision$
# by Keiju ISHITSUKA(keiju@ruby-lang.org)
#
diff --git a/lib/irb/extend-command.rb b/lib/irb/extend-command.rb
index 61a43e4a78..190c49ae78 100644
--- a/lib/irb/extend-command.rb
+++ b/lib/irb/extend-command.rb
@@ -1,6 +1,6 @@
#
# irb/extend-command.rb - irb extend command
-# $Release Version: 0.9.5$
+# $Release Version: 0.9.6$
# $Revision$
# by Keiju ISHITSUKA(keiju@ruby-lang.org)
#
@@ -122,28 +122,28 @@ module IRB
end
if load_file
- eval %[
+ line = __LINE__; eval %[
def #{cmd_name}(*opts, &b)
require "#{load_file}"
arity = ExtendCommand::#{cmd_class}.instance_method(:execute).arity
- args = (1..arity.abs).map {|i| "arg" + i.to_s }
+ args = (1..(arity < 0 ? ~arity : arity)).map {|i| "arg" + i.to_s }
args << "*opts" if arity < 0
args << "&block"
args = args.join(", ")
- eval %[
+ line = __LINE__; eval %[
def #{cmd_name}(\#{args})
ExtendCommand::#{cmd_class}.execute(irb_context, \#{args})
end
- ]
+ ], nil, __FILE__, line
send :#{cmd_name}, *opts, &b
end
- ]
+ ], nil, __FILE__, line
else
- eval %[
+ line = __LINE__; eval %[
def #{cmd_name}(*opts, &b)
ExtendCommand::#{cmd_class}.execute(irb_context, *opts, &b)
end
- ]
+ ], nil, __FILE__, line
end
for ali, flag in aliases
@@ -160,7 +160,7 @@ module IRB
(override == OVERRIDE_PRIVATE_ONLY) && !respond_to?(to) or
(override == NO_OVERRIDE) && !respond_to?(to, true)
target = self
- (class<<self;self;end).instance_eval{
+ (class << self; self; end).instance_eval{
if target.respond_to?(to, true) &&
!target.respond_to?(EXCB.irb_original_method_name(to), true)
alias_method(EXCB.irb_original_method_name(to), to)
@@ -177,7 +177,7 @@ module IRB
end
def self.extend_object(obj)
- unless (class<<obj;ancestors;end).include?(EXCB)
+ unless (class << obj; ancestors; end).include?(EXCB)
super
for ali, com, flg in @ALIASES
obj.install_alias_method(ali, com, flg)
@@ -207,7 +207,7 @@ module IRB
end
def self.def_extend_command(cmd_name, load_file, *aliases)
- Context.module_eval %[
+ line = __LINE__; Context.module_eval %[
def #{cmd_name}(*opts, &b)
Context.module_eval {remove_method(:#{cmd_name})}
require "#{load_file}"
@@ -216,7 +216,7 @@ module IRB
for ali in aliases
alias_method ali, cmd_name
end
- ]
+ ], __FILE__, line
end
CE.install_extend_commands
diff --git a/lib/irb/help.rb b/lib/irb/help.rb
index cae9c8a832..4a308b6e46 100644
--- a/lib/irb/help.rb
+++ b/lib/irb/help.rb
@@ -1,6 +1,6 @@
#
# irb/help.rb - print usage module
-# $Release Version: 0.9.5$
+# $Release Version: 0.9.6$
# $Revision$
# by Keiju ISHITSUKA(keiju@ishitsuka.com)
#
diff --git a/lib/irb/init.rb b/lib/irb/init.rb
index 8f88802f5d..fce2df4f09 100644
--- a/lib/irb/init.rb
+++ b/lib/irb/init.rb
@@ -1,6 +1,6 @@
#
# irb/init.rb - irb initialize module
-# $Release Version: 0.9.5$
+# $Release Version: 0.9.6$
# $Revision$
# by Keiju ISHITSUKA(keiju@ruby-lang.org)
#
@@ -44,7 +44,7 @@ module IRB
@CONF[:MATH_MODE] = false
@CONF[:USE_READLINE] = false unless defined?(ReadlineInputMethod)
- @CONF[:INSPECT_MODE] = nil
+ @CONF[:INSPECT_MODE] = true
@CONF[:USE_TRACER] = false
@CONF[:USE_LOADER] = false
@CONF[:IGNORE_SIGINT] = true
@@ -113,6 +113,8 @@ module IRB
# @CONF[:LC_MESSAGES] = "en"
@CONF[:LC_MESSAGES] = Locale.new
+ @CONF[:AT_EXIT] = []
+
@CONF[:DEBUG_LEVEL] = 1
end
@@ -133,6 +135,19 @@ module IRB
@CONF[:MATH_MODE] = true
when "-d"
$DEBUG = true
+ $VERBOSE = true
+ when "-w"
+ $VERBOSE = true
+ when /^-W(.+)?/
+ opt = $1 || ARGV.shift
+ case opt
+ when "0"
+ $VERBOSE = nil
+ when "1"
+ $VERBOSE = false
+ else
+ $VERBOSE = true
+ end
when /^-r(.+)?/
opt = $1 || ARGV.shift
@CONF[:LOAD_MODULES].push opt if opt
@@ -145,7 +160,11 @@ module IRB
opt = $1 || ARGV.shift
set_encoding(*opt.split(':', 2))
when "--inspect"
- @CONF[:INSPECT_MODE] = true
+ if /^-/ !~ ARGV.first
+ @CONF[:INSPECT_MODE] = ARGV.shift
+ else
+ @CONF[:INSPECT_MODE] = true
+ end
when "--noinspect"
@CONF[:INSPECT_MODE] = false
when "--readline"
@@ -188,7 +207,7 @@ module IRB
IRB.print_usage
exit 0
when "--"
- if opt = ARGV.shfit
+ if opt = ARGV.shift
@CONF[:SCRIPT] = opt
$0 = opt
end
diff --git a/lib/irb/input-method.rb b/lib/irb/input-method.rb
index 9c3d682c66..7227df4ca0 100644
--- a/lib/irb/input-method.rb
+++ b/lib/irb/input-method.rb
@@ -1,6 +1,6 @@
#
# irb/input-method.rb - input methods used irb
-# $Release Version: 0.9.5$
+# $Release Version: 0.9.6$
# $Revision$
# by Keiju ISHITSUKA(keiju@ruby-lang.org)
#
diff --git a/lib/irb/inspector.rb b/lib/irb/inspector.rb
new file mode 100644
index 0000000000..aefe077f37
--- /dev/null
+++ b/lib/irb/inspector.rb
@@ -0,0 +1,109 @@
+#
+# irb/inspector.rb - inspect methods
+# $Release Version: 0.9.6$
+# $Revision: 1.19 $
+# $Date: 2002/06/11 07:51:31 $
+# by Keiju ISHITSUKA(keiju@ruby-lang.org)
+#
+# --
+#
+#
+#
+
+module IRB
+
+ def IRB::Inspector(inspect, init = nil)
+ Inspector.new(inspect, init)
+ end
+
+ class Inspector
+ def initialize(inspect_proc, init_proc = nil)
+ @init = init_proc
+ @inspect = inspect_proc
+ end
+
+ def init
+ @init.call if @init
+ end
+
+ def inspect_value(v)
+ @inspect.call(v)
+ end
+ end
+
+ INSPECTORS = {}
+
+ def INSPECTORS.keys_with_inspector(inspector)
+ select{|k,v| v == inspector}.collect{|k, v| k}
+ end
+
+ # ex)
+ # INSPECTORS.def_inspector(key, init_p=nil){|v| v.inspect}
+ # INSPECTORS.def_inspector([key1,..], init_p=nil){|v| v.inspect}
+ # INSPECTORS.def_inspector(key, inspector)
+ # INSPECTORS.def_inspector([key1,...], inspector)
+
+ def INSPECTORS.def_inspector(key, arg=nil, &block)
+# if !block_given?
+# case arg
+# when nil, Proc
+# inspector = IRB::Inspector(init_p)
+# when Inspector
+# inspector = init_p
+# else
+# IRB.Raise IllegalParameter, init_p
+# end
+# init_p = nil
+# else
+# inspector = IRB::Inspector(block, init_p)
+# end
+
+ if block_given?
+ inspector = IRB::Inspector(block, arg)
+ else
+ inspector = arg
+ end
+
+ case key
+ when Array
+ for k in key
+ def_inspector(k, inspector)
+ end
+ when Symbol
+ self[key] = inspector
+ self[key.to_s] = inspector
+ when String
+ self[key] = inspector
+ self[key.intern] = inspector
+ else
+ self[key] = inspector
+ end
+ end
+
+ INSPECTORS.def_inspector([false, :to_s, :raw]){|v| v.to_s}
+ INSPECTORS.def_inspector([true, :p, :inspect]){|v|
+ begin
+ v.inspect
+ rescue NoMethodError
+ puts "(Object doesn't support #inspect)"
+ end
+ }
+ INSPECTORS.def_inspector([:pp, :pretty_inspect], proc{require "pp"}){|v| v.pretty_inspect.chomp}
+ INSPECTORS.def_inspector([:yaml, :YAML], proc{require "yaml"}){|v|
+ begin
+ YAML.dump(v)
+ rescue
+ puts "(can't dump yaml. use inspect)"
+ v.inspect
+ end
+ }
+
+ INSPECTORS.def_inspector([:marshal, :Marshal, :MARSHAL, Marshal]){|v|
+ Marshal.dump(v)
+ }
+end
+
+
+
+
+
diff --git a/lib/irb/lc/error.rb b/lib/irb/lc/error.rb
index ed7d0361fe..742821e3af 100644
--- a/lib/irb/lc/error.rb
+++ b/lib/irb/lc/error.rb
@@ -1,6 +1,6 @@
#
# irb/lc/error.rb -
-# $Release Version: 0.9.5$
+# $Release Version: 0.9.6$
# $Revision$
# by Keiju ISHITSUKA(keiju@ruby-lang.org)
#
diff --git a/lib/irb/lc/help-message b/lib/irb/lc/help-message
index 9c08a5c29d..c01cdaab93 100644
--- a/lib/irb/lc/help-message
+++ b/lib/irb/lc/help-message
@@ -1,22 +1,24 @@
# -*- coding: US-ASCII -*-
#
-# irb/lc/help-message.rb -
-# $Release Version: 0.9.5$
+# irb/lc/help-message.rb -
+# $Release Version: 0.9.6$
# $Revision$
# by Keiju ISHITSUKA(keiju@ruby-lang.org)
#
# --
#
-#
+#
#
Usage: irb.rb [options] [programfile] [arguments]
- -f Suppress read of ~/.irbrc
+ -f Suppress read of ~/.irbrc
-m Bc mode (load mathn, fraction or matrix are available)
-d Set $DEBUG to true (same as `ruby -d')
-r load-module Same as `ruby -r'
-I path Specify $LOAD_PATH directory
-U Same as `ruby -U`
-E enc Same as `ruby -E`
+ -w Same as `ruby -w`
+ -W[level=2] Same as `ruby -W`
--inspect Use `inspect' for output (default except for bc mode)
--noinspect Don't use inspect for output
--readline Use Readline extension module
@@ -25,14 +27,14 @@ Usage: irb.rb [options] [programfile] [arguments]
--prompt-mode prompt-mode
Switch prompt mode. Pre-defined prompt modes are
`default', `simple', `xmp' and `inf-ruby'
- --inf-ruby-mode Use prompt appropriate for inf-ruby-mode on emacs.
- Suppresses --readline.
+ --inf-ruby-mode Use prompt appropriate for inf-ruby-mode on emacs.
+ Suppresses --readline.
--simple-prompt Simple prompt mode
--noprompt No prompt mode
--tracer Display trace for each execution of commands.
--back-trace-limit n
Display backtrace top n and tail n. The default
- value is 16.
+ value is 16.
--irb_debug n Set internal debug level to n (not for popular use)
-v, --version Print the version of irb
# vim:fileencoding=us-ascii
diff --git a/lib/irb/lc/ja/error.rb b/lib/irb/lc/ja/error.rb
index c73b640637..9a7670f459 100644
--- a/lib/irb/lc/ja/error.rb
+++ b/lib/irb/lc/ja/error.rb
@@ -1,6 +1,6 @@
# -*- coding: utf-8 -*-
# irb/lc/ja/error.rb -
-# $Release Version: 0.9.5$
+# $Release Version: 0.9.6$
# $Revision$
# by Keiju ISHITSUKA(keiju@ruby-lang.org)
#
diff --git a/lib/irb/lc/ja/help-message b/lib/irb/lc/ja/help-message
index d156039c9b..57e8f23edf 100644
--- a/lib/irb/lc/ja/help-message
+++ b/lib/irb/lc/ja/help-message
@@ -1,12 +1,12 @@
# -*- coding: utf-8 -*-
-# irb/lc/ja/help-message.rb -
-# $Release Version: 0.9.5$
+# irb/lc/ja/help-message.rb -
+# $Release Version: 0.9.6$
# $Revision$
# by Keiju ISHITSUKA(keiju@ruby-lang.org)
#
# --
#
-#
+#
#
Usage: irb.rb [options] [programfile] [arguments]
-f ~/.irbrc を読ã¿è¾¼ã¾ãªã„.
@@ -16,14 +16,16 @@ Usage: irb.rb [options] [programfile] [arguments]
-I path $LOAD_PATH ã« path を追加ã™ã‚‹.
-U ruby -U ã¨åŒã˜.
-E enc ruby -E ã¨åŒã˜.
- --inspect çµæžœå‡ºåŠ›ã«inspectを用ã„ã‚‹(bcモード以外ã¯ãƒ‡ãƒ•ォルト).
+ -w ruby -w ã¨åŒã˜.
+ -W[level=2] ruby -W ã¨åŒã˜.
+ --inspect çµæžœå‡ºåŠ›ã«inspectを用ã„ã‚‹(bcモード以外ã¯ãƒ‡ãƒ•ォルト).
--noinspect çµæžœå‡ºåŠ›ã«inspectを用ã„ãªã„.
--readline readlineライブラリを利用ã™ã‚‹.
- --noreadline readlineライブラリを利用ã—ãªã„.
+ --noreadline readlineライブラリを利用ã—ãªã„.
--prompt prompt-mode/--prompt-mode prompt-mode
プロンプトモードを切替ãˆã¾ã™. ç¾åœ¨å®šç¾©ã•れã¦ã„るプ
ロンプトモードã¯, default, simple, xmp, inf-rubyãŒ
- 用æ„ã•れã¦ã„ã¾ã™.
+ 用æ„ã•れã¦ã„ã¾ã™.
--inf-ruby-mode emacsã®inf-ruby-mode用ã®ãƒ—ロンプト表示を行ãªã†. 特
ã«æŒ‡å®šãŒãªã„é™ã‚Š, readlineライブラリã¯ä½¿ã‚ãªããªã‚‹.
--simple-prompt éžå¸¸ã«ã‚·ãƒ³ãƒ—ルãªãƒ—ロンプトを用ã„るモードã§ã™.
@@ -31,7 +33,7 @@ Usage: irb.rb [options] [programfile] [arguments]
--tracer コマンド実行時ã«ãƒˆãƒ¬ãƒ¼ã‚¹ã‚’行ãªã†.
--back-trace-limit n
ãƒãƒƒã‚¯ãƒˆãƒ¬ãƒ¼ã‚¹è¡¨ç¤ºã‚’ãƒãƒƒã‚¯ãƒˆãƒ¬ãƒ¼ã‚¹ã®é ­ã‹ã‚‰ n, 後ã‚
- ã‹ã‚‰nã ã‘行ãªã†. デフォルトã¯16
+ ã‹ã‚‰nã ã‘行ãªã†. デフォルトã¯16
--irb_debug n irbã®ãƒ‡ãƒãƒƒã‚°ãƒ‡ãƒãƒƒã‚°ãƒ¬ãƒ™ãƒ«ã‚’nã«è¨­å®šã™ã‚‹(利用ã—ãª
ã„æ–¹ãŒç„¡é›£ã§ã—ょã†).
-v, --version irbã®ãƒãƒ¼ã‚¸ãƒ§ãƒ³ã‚’表示ã™ã‚‹
diff --git a/lib/irb/locale.rb b/lib/irb/locale.rb
index 9c96d15525..7781006da4 100644
--- a/lib/irb/locale.rb
+++ b/lib/irb/locale.rb
@@ -1,6 +1,6 @@
#
# irb/locale.rb - internationalization module
-# $Release Version: 0.9.5$
+# $Release Version: 0.9.6$
# $Revision$
# by Keiju ISHITSUKA(keiju@ruby-lang.org)
#
@@ -13,16 +13,10 @@ module IRB
@RCS_ID='-$Id$-'
LOCALE_NAME_RE = %r[
- (?<language>[[:alpha:]]{2})
- (?:_
- (?<territory>[[:alpha:]]{2,3})
- (?:\.
- (?<codeset>[^@]+)
- )?
- )?
- (?:@
- (?<modifier>.*)
- )?
+ (?<language>[[:alpha:]]{2,3})
+ (?:_ (?<territory>[[:alpha:]]{2,3}) )?
+ (?:\. (?<codeset>[^@]+) )?
+ (?:@ (?<modifier>.*) )?
]x
LOCALE_DIR = "/lc/"
@@ -50,7 +44,7 @@ module IRB
def String(mes)
mes = super(mes)
if @encoding
- mes.encode(@encoding)
+ mes.encode(@encoding, undef: :replace)
else
mes
end
@@ -111,22 +105,27 @@ module IRB
alias toplevel_load load
def load(file, priv=nil)
+ found = find(file)
+ if found
+ return real_load(found, priv)
+ else
+ raise LoadError, "No such file to load -- #{file}"
+ end
+ end
+
+ def find(file , paths = $:)
dir = File.dirname(file)
dir = "" if dir == "."
base = File.basename(file)
- if dir[0] == ?/ #/
- lc_path = search_file(dir, base)
- return real_load(lc_path, priv) if lc_path
- end
-
- for path in $:
- lc_path = search_file(path + "/" + dir, base)
- return real_load(lc_path, priv) if lc_path
+ if dir.start_with?('/')
+ return each_localized_path(dir, base).find{|full_path| File.readable? full_path}
+ else
+ return search_file(paths, dir, base)
end
- raise LoadError, "No such file to load -- #{file}"
end
+ private
def real_load(path, priv)
src = MagicFile.open(path){|f| f.read}
if priv
@@ -135,41 +134,30 @@ module IRB
eval(src, TOPLEVEL_BINDING, path)
end
end
- private :real_load
- def find(file , paths = $:)
- dir = File.dirname(file)
- dir = "" if dir == "."
- base = File.basename(file)
- if dir[0] == ?/ #/
- return lc_path = search_file(dir, base)
- else
- for path in $:
- if lc_path = search_file(path + "/" + dir, base)
- return lc_path
- end
- end
+ # @param paths load paths in which IRB find a localized file.
+ # @param dir directory
+ # @param file basename to be localized
+ #
+ # typically, for the parameters and a <path> in paths, it searches
+ # <path>/<dir>/<locale>/<file>
+ def search_file(lib_paths, dir, file)
+ each_localized_path(dir, file) do |lc_path|
+ lib_paths.each do |libpath|
+ full_path = File.join(libpath, lc_path)
+ return full_path if File.readable?(full_path)
+ end
+ redo if defined?(Gem) and Gem.try_activate(lc_path)
end
nil
end
- def search_file(path, file)
+ def each_localized_path(dir, file)
+ return enum_for(:each_localized_path) unless block_given?
each_sublocale do |lc|
- full_path = path + lc_path(file, lc)
- return full_path if File.exist?(full_path)
- end
- nil
- end
- private :search_file
-
- def lc_path(file = "", lc = @locale)
- if lc.nil?
- LOCALE_DIR + file
- else
- LOCALE_DIR + @lang + "/" + file
+ yield lc.nil? ? File.join(dir, LOCALE_DIR, file) : File.join(dir, LOCALE_DIR, lc, file)
end
end
- private :lc_path
def each_sublocale
if @lang
@@ -181,15 +169,14 @@ module IRB
yield "#{@lang}_#{@territory}@#{@modifier}" if @modifier
yield "#{@lang}_#{@territory}"
end
+ if @encoding_name
+ yield "#{@lang}.#{@encoding_name}@#{@modifier}" if @modifier
+ yield "#{@lang}.#{@encoding_name}"
+ end
yield "#{@lang}@#{@modifier}" if @modifier
yield "#{@lang}"
end
yield nil
end
- private :each_sublocale
end
end
-
-
-
-
diff --git a/lib/irb/notifier.rb b/lib/irb/notifier.rb
index f76fc8040c..d20679da4a 100644
--- a/lib/irb/notifier.rb
+++ b/lib/irb/notifier.rb
@@ -1,6 +1,6 @@
#
# notifier.rb - output methods used by irb
-# $Release Version: 0.9.5$
+# $Release Version: 0.9.6$
# $Revision$
# by Keiju ISHITSUKA(keiju@ruby-lang.org)
#
@@ -25,7 +25,7 @@ module IRB
end
module_function :def_notifier
- class AbstructNotifier
+ class AbstractNotifier
def initialize(prefix, base_notifier)
@prefix = prefix
@base_notifier = base_notifier
@@ -72,7 +72,7 @@ module IRB
end
end
- class CompositeNotifier<AbstructNotifier
+ class CompositeNotifier<AbstractNotifier
def initialize(prefix, base_notifier)
super
@@ -93,7 +93,7 @@ module IRB
def level_notifier=(value)
case value
- when AbstructNotifier
+ when AbstractNotifier
@level_notifier = value
when Integer
l = @notifiers[value]
@@ -107,7 +107,7 @@ module IRB
alias level= level_notifier=
end
- class LeveledNotifier<AbstructNotifier
+ class LeveledNotifier<AbstractNotifier
include Comparable
def initialize(base, level, prefix)
diff --git a/lib/irb/output-method.rb b/lib/irb/output-method.rb
index bbfc072536..9cccda1c6a 100644
--- a/lib/irb/output-method.rb
+++ b/lib/irb/output-method.rb
@@ -1,6 +1,6 @@
#
-# output-method.rb - optput methods used by irb
-# $Release Version: 0.9.5$
+# output-method.rb - output methods used by irb
+# $Release Version: 0.9.6$
# $Revision$
# by Keiju ISHITSUKA(keiju@ruby-lang.org)
#
diff --git a/lib/irb/ruby-lex.rb b/lib/irb/ruby-lex.rb
index 1def148885..2a23534bf3 100644
--- a/lib/irb/ruby-lex.rb
+++ b/lib/irb/ruby-lex.rb
@@ -1,6 +1,6 @@
#
# irb/ruby-lex.rb - ruby lexcal analyzer
-# $Release Version: 0.9.5$
+# $Release Version: 0.9.6$
# $Revision$
# by Keiju ISHITSUKA(keiju@ruby-lang.org)
#
@@ -103,7 +103,6 @@ class RubyLex
@rests.push nil unless buf_input
end
c = @rests.shift
- return if c == nil
if @here_header
@here_readed.push c
else
@@ -149,7 +148,7 @@ class RubyLex
end
c = c2 unless c
@rests.unshift c #c =
- @seek -= 1
+ @seek -= 1
if c == "\n"
@line_no -= 1
if idx = @readed.reverse.index("\n")
@@ -240,7 +239,7 @@ class RubyLex
end
end
if @line != "\n"
- @line.force_encoding(@io.encoding)
+ @line.force_encoding(@io.encoding)
yield @line, @exp_line_no
end
break unless l
@@ -407,7 +406,7 @@ class RubyLex
if @lex_state != EXPR_END && @lex_state != EXPR_CLASS &&
(@lex_state != EXPR_ARG || @space_seen)
c = peek(0)
- if /\S/ =~ c && (/["'`]/ =~ c || /[\w_]/ =~ c || c == "-")
+ if /\S/ =~ c && (/["'`]/ =~ c || /\w/ =~ c || c == "-")
tk = identify_here_document
end
end
@@ -624,7 +623,7 @@ class RubyLex
tk_c = TkLPAREN
end
@indent_stack.push tk_c
- tk = Token(tk_c)
+ Token(tk_c)
end
@OP.def_rule("[]", proc{|op, io| @lex_state == EXPR_FNAME}) do
@@ -678,7 +677,7 @@ class RubyLex
@continue = true
Token(TkSPACE)
else
- ungetc
+ read_escape
Token("\\")
end
end
@@ -705,7 +704,7 @@ class RubyLex
@OP.def_rule('@') do
|op, io|
- if peek(0) =~ /[\w_@]/
+ if peek(0) =~ /[\w@]/
ungetc
identify_identifier
else
@@ -728,7 +727,7 @@ class RubyLex
printf "MATCH: start %s: %s\n", op, io.inspect if RubyLex.debug?
if peek(0) =~ /[0-9]/
t = identify_number
- elsif peek(0) =~ /[\w_]/
+ elsif peek(0) =~ /[^\x00-\/:-@\[-^`{-\x7F]/
t = identify_identifier
end
printf "MATCH: end %s: %s\n", op, io.inspect if RubyLex.debug?
@@ -771,7 +770,7 @@ class RubyLex
end
end
- while (ch = getc) =~ /\w|_/
+ while (ch = getc) =~ /[^\x00-\/:-@\[-^`{-\x7F]/
print ":", ch, ":" if RubyLex.debug?
token.concat ch
end
@@ -1047,6 +1046,8 @@ class RubyLex
while ch = getc
if @quoted == ch and nest == 0
break
+ elsif @ltype != "'" && ch == "#" && peek(0) == "{"
+ identify_string_dvar
elsif @ltype != "'" && @ltype != "]" && @ltype != ":" and ch == "#"
subtype = true
elsif ch == '\\' and @ltype == "'" #'
@@ -1067,7 +1068,7 @@ class RubyLex
end
end
if @ltype == "/"
- if peek(0) =~ /i|m|x|o|e|s|u|n/
+ while /[imxoesun]/ =~ peek(0)
getc
end
end
@@ -1083,6 +1084,42 @@ class RubyLex
end
end
+ def identify_string_dvar
+ begin
+ getc
+
+ reserve_continue = @continue
+ reserve_ltype = @ltype
+ reserve_indent = @indent
+ reserve_indent_stack = @indent_stack
+ reserve_state = @lex_state
+ reserve_quoted = @quoted
+
+ @ltype = nil
+ @quoted = nil
+ @indent = 0
+ @indent_stack = []
+ @lex_state = EXPR_BEG
+
+ loop do
+ @continue = false
+ prompt
+ tk = token
+ if @ltype or @continue or @indent > 0
+ next
+ end
+ break if tk.kind_of?(TkRBRACE)
+ end
+ ensure
+ @continue = reserve_continue
+ @ltype = reserve_ltype
+ @indent = reserve_indent
+ @indent_stack = reserve_indent_stack
+ @lex_state = reserve_state
+ @quoted = reserve_quoted
+ end
+ end
+
def identify_comment
@ltype = "#"
diff --git a/lib/irb/ruby-token.rb b/lib/irb/ruby-token.rb
index 9eb3bc1739..531fb859ff 100644
--- a/lib/irb/ruby-token.rb
+++ b/lib/irb/ruby-token.rb
@@ -1,6 +1,6 @@
#
# irb/ruby-token.rb - ruby tokens
-# $Release Version: 0.9.5$
+# $Release Version: 0.9.6$
# $Revision$
# by Keiju ISHITSUKA(keiju@ruby-lang.org)
#
@@ -17,11 +17,6 @@ module RubyToken
EXPR_DOT = :EXPR_DOT
EXPR_CLASS = :EXPR_CLASS
- # for ruby 1.4X
- if !defined?(Symbol)
- Symbol = Integer
- end
-
class Token
def initialize(seek, line_no, char_no)
@seek = seek
diff --git a/lib/irb/slex.rb b/lib/irb/slex.rb
index 6b3d1f37e3..b395eaa475 100644
--- a/lib/irb/slex.rb
+++ b/lib/irb/slex.rb
@@ -1,6 +1,6 @@
#
# irb/slex.rb - simple lex analyzer
-# $Release Version: 0.9.5$
+# $Release Version: 0.9.6$
# $Revision$
# by Keiju ISHITSUKA(keiju@ruby-lang.org)
#
@@ -35,7 +35,7 @@ module IRB
D_DETAIL.pp token
postproc = block if block_given?
- node = create(token, preproc, postproc)
+ create(token, preproc, postproc)
end
def def_rules(*tokens, &block)
diff --git a/lib/irb/version.rb b/lib/irb/version.rb
index a9ccc1ce95..621a127ebd 100644
--- a/lib/irb/version.rb
+++ b/lib/irb/version.rb
@@ -1,6 +1,6 @@
#
# irb/version.rb - irb version definition file
-# $Release Version: 0.9.5$
+# $Release Version: 0.9.6$
# $Revision$
# by Keiju ISHITSUKA(keiju@ishitsuka.com)
#
@@ -10,6 +10,6 @@
#
module IRB
- @RELEASE_VERSION = "0.9.5"
- @LAST_UPDATE_DATE = "05/04/13"
+ @RELEASE_VERSION = "0.9.6"
+ @LAST_UPDATE_DATE = "09/06/30"
end
diff --git a/lib/irb/workspace.rb b/lib/irb/workspace.rb
index 1b88914a84..edc0d3b147 100644
--- a/lib/irb/workspace.rb
+++ b/lib/irb/workspace.rb
@@ -1,6 +1,6 @@
#
# irb/workspace-binding.rb -
-# $Release Version: 0.9.5$
+# $Release Version: 0.9.6$
# $Revision$
# by Keiju ISHITSUKA(keiju@ruby-lang.org)
#
@@ -97,7 +97,7 @@ EOF
when 3
return nil if bt =~ /irb\/.*\.rb/
return nil if bt =~ /irb\.rb/
- bt.sub!(/:\s*in `irb_binding'/, '')
+ bt = bt.sub(/:\s*in `irb_binding'/, '')
end
bt
end
diff --git a/lib/irb/ws-for-case-2.rb b/lib/irb/ws-for-case-2.rb
index d7db90c96b..9f3af49f30 100644
--- a/lib/irb/ws-for-case-2.rb
+++ b/lib/irb/ws-for-case-2.rb
@@ -1,6 +1,6 @@
#
# irb/ws-for-case-2.rb -
-# $Release Version: 0.9.5$
+# $Release Version: 0.9.6$
# $Revision$
# by Keiju ISHITSUKA(keiju@ruby-lang.org)
#
@@ -10,5 +10,5 @@
#
while true
- IRB::BINDING_QUEUE.push b = binding
+ IRB::BINDING_QUEUE.push _ = binding
end
diff --git a/lib/irb/xmp.rb b/lib/irb/xmp.rb
index 1a58026f45..bcef964020 100644
--- a/lib/irb/xmp.rb
+++ b/lib/irb/xmp.rb
@@ -75,7 +75,7 @@ class XMP
if @encoding and exps.encoding != @encoding
enc = Encoding.compatible?(@exps.join("\n"), exps)
if enc.nil?
- raise Encoding::CompatibilityError, "Encoding in which the passed exression is encoded is not compatible to the preceding's one"
+ raise Encoding::CompatibilityError, "Encoding in which the passed expression is encoded is not compatible to the preceding's one"
else
@encoding = enc
end
diff --git a/lib/logger.rb b/lib/logger.rb
index 07699e7017..6092959399 100644
--- a/lib/logger.rb
+++ b/lib/logger.rb
@@ -1,34 +1,26 @@
# logger.rb - simple logging utility
-# Copyright (C) 2000-2003, 2005 NAKAMURA, Hiroshi <nakahiro@sarion.co.jp>.
-
-require 'monitor'
-
-# = logger.rb
+# Copyright (C) 2000-2003, 2005, 2008, 2011 NAKAMURA, Hiroshi <nahi@ruby-lang.org>.
#
-# Simple logging utility.
-#
-# Author:: NAKAMURA, Hiroshi <nakahiro@sarion.co.jp>
# Documentation:: NAKAMURA, Hiroshi and Gavin Sinclair
# License::
# You can redistribute it and/or modify it under the same terms of Ruby's
# license; either the dual license version in 2003, or any later version.
# Revision:: $Id$
#
-# See Logger for documentation.
-#
+# A simple system for logging messages. See Logger for more documentation.
+require 'monitor'
-#
# == Description
#
# The Logger class provides a simple but sophisticated logging utility that
-# anyone can use because it's included in the Ruby 1.8.x standard library.
+# you can use to output messages.
+#
+# The messages have associated levels, such as +INFO+ or +ERROR+ that indicate
+# their importance. You can then give the Logger a level, and only messages
+# at that level of higher will be printed.
#
-# The HOWTOs below give a code-based overview of Logger's usage, but the basic
-# concept is as follows. You create a Logger object (output to a file or
-# elsewhere), and use it to log messages. The messages will have varying
-# levels (+info+, +error+, etc), reflecting their varying importance. The
-# levels, and their meanings, are:
+# The levels are:
#
# +FATAL+:: an unhandleable error that results in a program crash
# +ERROR+:: a handleable error condition
@@ -36,19 +28,30 @@ require 'monitor'
# +INFO+:: generic (useful) information about system operation
# +DEBUG+:: low-level information for developers
#
-# So each message has a level, and the Logger itself has a level, which acts
-# as a filter, so you can control the amount of information emitted from the
-# logger without having to remove actual messages.
-#
-# For instance, in a production system, you may have your logger(s) set to
-# +INFO+ (or +WARN+ if you don't want the log files growing large with
-# repetitive information). When you are developing it, though, you probably
-# want to know about the program's internal state, and would set them to
+# For instance, in a production system, you may have your Logger set to
+# +INFO+ or even +WARN+
+# When you are developing the system, however, you probably
+# want to know about the program's internal state, and would set the Logger to
# +DEBUG+.
#
+# *Note*: Logger does not escape or sanitize any messages passed to it.
+# Developers should be aware of when potentially malicious data (user-input)
+# is passed to Logger, and manually escape the untrusted data:
+#
+# logger.info("User-input: #{input.dump}")
+# logger.info("User-input: %p" % input)
+#
+# You can use #formatter= for escaping all data.
+#
+# original_formatter = Logger::Formatter.new
+# logger.formatter = proc { |severity, datetime, progname, msg|
+# original_formatter.call(severity, datetime, progname, msg.dump)
+# }
+# logger.info(input)
+#
# === Example
#
-# A simple example demonstrates the above explanation:
+# This creates a logger to the standard output stream, with a level of +WARN+
#
# log = Logger.new(STDOUT)
# log.level = Logger::WARN
@@ -117,7 +120,7 @@ require 'monitor'
# === How to log a message
#
# Notice the different methods (+fatal+, +error+, +info+) being used to log
-# messages of various levels. Other methods in this family are +warn+ and
+# messages of various levels? Other methods in this family are +warn+ and
# +debug+. +add+ is used below to log a message of an arbitrary (perhaps
# dynamic) level.
#
@@ -137,6 +140,20 @@ require 'monitor'
#
# logger.add(Logger::FATAL) { 'Fatal error!' }
#
+# The block form allows you to create potentially complex log messages,
+# but to delay their evaluation until and unless the message is
+# logged. For example, if we have the following:
+#
+# logger.debug { "This is a " + potentially + " expensive operation" }
+#
+# If the logger's level is +INFO+ or higher, no debug messages will be logged,
+# and the entire block will not even be evaluated. Compare to this:
+#
+# logger.debug("This is a " + potentially + " expensive operation")
+#
+# Here, the string concatenation is done every time, even if the log
+# level is not set to show the debug message.
+#
# === How to close a logger
#
# logger.close
@@ -165,23 +182,21 @@ require 'monitor'
# Log sample:
# I, [Wed Mar 03 02:34:24 JST 1999 895701 #19074] INFO -- Main: info.
#
-# You may change the date and time format in this manner:
+# You may change the date and time format via #datetime_format=
#
# logger.datetime_format = "%Y-%m-%d %H:%M:%S"
# # e.g. "2004-01-03 00:54:26"
#
-# You may change the overall format with Logger#formatter= method.
+# Or, you may change the overall format with #formatter= method.
#
-# logger.formatter = proc { |severity, datetime, progname, msg|
+# logger.formatter = proc do |severity, datetime, progname, msg|
# "#{datetime}: #{msg}\n"
-# }
-# # e.g. "Thu Sep 22 08:51:08 GMT+9:00 2005: hello world"
+# end
+# # e.g. "Thu Sep 22 08:51:08 GMT+9:00 2005: hello world"
#
-
-
class Logger
- VERSION = "1.2.6"
- id, name, rev = %w$Id$
+ VERSION = "1.2.7"
+ _, name, rev = %w$Id$
if name
name = name.chomp(",v")
else
@@ -190,16 +205,25 @@ class Logger
rev ||= "v#{VERSION}"
ProgName = "#{name}/#{rev}"
- class Error < RuntimeError; end
- class ShiftingError < Error; end
+ class Error < RuntimeError # :nodoc:
+ end
+ # not used after 1.2.7. just for compat.
+ class ShiftingError < Error # :nodoc:
+ end
# Logging severity.
module Severity
+ # Low-level information, mostly for developers
DEBUG = 0
+ # generic, useful information about system operation
INFO = 1
+ # a warning
WARN = 2
+ # a handleable error condition
ERROR = 3
+ # an unhandleable error that results in a program crash
FATAL = 4
+ # an unknown message that should always be logged
UNKNOWN = 5
end
include Severity
@@ -207,23 +231,33 @@ class Logger
# Logging severity threshold (e.g. <tt>Logger::INFO</tt>).
attr_accessor :level
- # Logging program name.
+ # program name to include in log messages.
attr_accessor :progname
- # Logging date-time format (string passed to +strftime+).
+ # Set date-time format.
+ #
+ # +datetime_format+:: A string suitable for passing to +strftime+.
def datetime_format=(datetime_format)
@default_formatter.datetime_format = datetime_format
end
+ # Returns the date format being used. See #datetime_format=
def datetime_format
@default_formatter.datetime_format
end
- # Logging formatter. formatter#call is invoked with 4 arguments; severity,
- # time, progname and msg for each log. Bear in mind that time is a Time and
- # msg is an Object that user passed and it could not be a String. It is
- # expected to return a logdev#write-able Object. Default formatter is used
- # when no formatter is set.
+ # Logging formatter, as a +Proc+ that will take four arguments and
+ # return the formatted message. The arguments are:
+ #
+ # +severity+:: The Severity of the log message
+ # +time+:: A Time instance representing when the message was logged
+ # +progname+:: The #progname configured, or passed to the logger method
+ # +msg+:: The _Object_ the user passed to the log message; not necessarily a
+ # String.
+ #
+ # The block should return an Object that can be written to the logging
+ # device via +write+. The default formatter is used when no formatter is
+ # set.
attr_accessor :formatter
alias sev_threshold level
@@ -295,8 +329,8 @@ class Logger
# +message+::
# The log message. A String or Exception.
# +progname+::
- # Program name string. Can be omitted. Treated as a message if no +message+ and
- # +block+ are given.
+ # Program name string. Can be omitted. Treated as a message if no
+ # +message+ and +block+ are given.
# +block+::
# Can be omitted. Called to get a message string if +message+ is nil.
#
@@ -324,7 +358,7 @@ class Logger
#
# * Logfile is not locked.
# * Append open does not need to lock file.
- # * But on the OS which supports multi I/O, records possibly be mixed.
+ # * If the OS which supports multi I/O, records possibly be mixed.
#
def add(severity, message = nil, progname = nil, &block)
severity ||= UNKNOWN
@@ -334,10 +368,10 @@ class Logger
progname ||= @progname
if message.nil?
if block_given?
- message = yield
+ message = yield
else
- message = progname
- progname = @progname
+ message = progname
+ progname = @progname
end
end
@logdev.write(
@@ -366,11 +400,20 @@ class Logger
end
#
+ # :call-seq:
+ # info(message)
+ # info(progname,&block)
+ #
# Log an +INFO+ message.
#
- # The message can come either from the +progname+ argument or the +block+. If
- # both are provided, then the +block+ is used as the message, and +progname+
- # is used as the program name.
+ # +message+:: the message to log; does not need to be a String
+ # +progname+:: in the block form, this is the #progname to use in the
+ # the log message. The default can be set with #progname=
+ # <tt>&block</tt>:: evaluates to the message to log. This is not evaluated
+ # unless the logger's level is sufficient
+ # to log the message. This allows you to create
+ # potentially expensive logging messages that are
+ # only called when the logger is configured to show them.
#
# === Examples
#
@@ -381,7 +424,7 @@ class Logger
# logger.info { "User typed #{input}" }
#
# You'll probably stick to the second form above, unless you want to provide a
- # program name (which you can do with <tt>Logger#progname=</tt> as well).
+ # program name (which you can do with #progname= as well).
#
# === Return
#
@@ -419,7 +462,7 @@ class Logger
end
#
- # Log an +UNKNOWN+ message. This will be printed no matter what the logger
+ # Log an +UNKNOWN+ message. This will be printed no matter what the logger's
# level.
#
# See #info for more information.
@@ -449,6 +492,7 @@ private
end
+ # Default formatter for log messages
class Formatter
Format = "%s, [%s#%d] %5s -- %s: %s\n"
@@ -487,6 +531,7 @@ private
end
+ # Device used for logging messages.
class LogDevice
attr_reader :dev
attr_reader :filename
@@ -499,32 +544,44 @@ private
@dev = @filename = @shift_age = @shift_size = nil
@mutex = LogDeviceMutex.new
if log.respond_to?(:write) and log.respond_to?(:close)
- @dev = log
+ @dev = log
else
- @dev = open_logfile(log)
- @dev.sync = true
- @filename = log
- @shift_age = opt[:shift_age] || 7
- @shift_size = opt[:shift_size] || 1048576
+ @dev = open_logfile(log)
+ @dev.sync = true
+ @filename = log
+ @shift_age = opt[:shift_age] || 7
+ @shift_size = opt[:shift_size] || 1048576
end
end
def write(message)
- @mutex.synchronize do
- if @shift_age and @dev.respond_to?(:stat)
+ begin
+ @mutex.synchronize do
+ if @shift_age and @dev.respond_to?(:stat)
+ begin
+ check_shift_log
+ rescue
+ warn("log shifting failed. #{$!}")
+ end
+ end
begin
- check_shift_log
+ @dev.write(message)
rescue
- raise Logger::ShiftingError.new("Shifting failed. #{$!}")
+ warn("log writing failed. #{$!}")
end
end
- @dev.write(message)
+ rescue Exception => ignored
+ warn("log writing failed. #{ignored}")
end
end
def close
- @mutex.synchronize do
- @dev.close
+ begin
+ @mutex.synchronize do
+ @dev.close rescue nil
+ end
+ rescue Exception
+ @dev.close rescue nil
end
end
@@ -532,9 +589,9 @@ private
def open_logfile(filename)
if (FileTest.exist?(filename))
- open(filename, (File::WRONLY | File::APPEND))
+ open(filename, (File::WRONLY | File::APPEND))
else
- create_logfile(filename)
+ create_logfile(filename)
end
end
@@ -547,8 +604,8 @@ private
def add_log_header(file)
file.write(
- "# Logfile created on %s by %s\n" % [Time.now.to_s, Logger::ProgName]
- )
+ "# Logfile created on %s by %s\n" % [Time.now.to_s, Logger::ProgName]
+ )
end
SiD = 24 * 60 * 60
@@ -561,8 +618,9 @@ private
end
else
now = Time.now
- if @dev.stat.mtime <= previous_period_end(now)
- shift_log_period(now)
+ period_end = previous_period_end(now)
+ if @dev.stat.mtime <= period_end
+ shift_log_period(period_end)
end
end
end
@@ -573,19 +631,26 @@ private
File.rename("#{@filename}.#{i}", "#{@filename}.#{i+1}")
end
end
- @dev.close
+ @dev.close rescue nil
File.rename("#{@filename}", "#{@filename}.0")
@dev = create_logfile(@filename)
return true
end
- def shift_log_period(now)
- postfix = previous_period_end(now).strftime("%Y%m%d") # YYYYMMDD
+ def shift_log_period(period_end)
+ postfix = period_end.strftime("%Y%m%d") # YYYYMMDD
age_file = "#{@filename}.#{postfix}"
if FileTest.exist?(age_file)
- raise RuntimeError.new("'#{ age_file }' already exists.")
+ # try to avoid filename crash caused by Timestamp change.
+ idx = 0
+ # .99 can be overridden; avoid too much file search with 'loop do'
+ while idx < 100
+ idx += 1
+ age_file = "#{@filename}.#{postfix}.#{idx}"
+ break unless FileTest.exist?(age_file)
+ end
end
- @dev.close
+ @dev.close rescue nil
File.rename("#{@filename}", age_file)
@dev = create_logfile(@filename)
return true
@@ -672,12 +737,12 @@ private
def start
status = -1
begin
- log(INFO, "Start of #{ @appname }.")
- status = run
+ log(INFO, "Start of #{ @appname }.")
+ status = run
rescue
- log(FATAL, "Detected an exception. Stopping ... #{$!} (#{$!.class})\n" << $@.join("\n"))
+ log(FATAL, "Detected an exception. Stopping ... #{$!} (#{$!.class})\n" << $@.join("\n"))
ensure
- log(INFO, "End of #{ @appname }. (status: #{ status.to_s })")
+ log(INFO, "End of #{ @appname }. (status: #{ status.to_s })")
end
status
end
@@ -688,15 +753,18 @@ private
end
#
- # Sets the logger for this application. See the class Logger for an explanation.
+ # Sets the logger for this application. See the class Logger for an
+ # explanation.
#
def logger=(logger)
@log = logger
+ @log.progname = @appname
+ @log.level = @level
end
#
- # Sets the log device for this application. See <tt>Logger.new</tt> for an explanation
- # of the arguments.
+ # Sets the log device for this application. See <tt>Logger.new</tt> for
+ # an explanation of the arguments.
#
def set_log(logdev, shift_age = 0, shift_size = 1024000)
@log = Logger.new(logdev, shift_age, shift_size)
@@ -726,6 +794,7 @@ private
private
def run
+ # TODO: should be an NotImplementedError
raise RuntimeError.new('Method run must be defined in the derived class.')
end
end
diff --git a/lib/mathn.rb b/lib/mathn.rb
index 57eac113c7..aae4620c3f 100644
--- a/lib/mathn.rb
+++ b/lib/mathn.rb
@@ -1,13 +1,44 @@
+#--
+# $Release Version: 0.5 $
+# $Revision: 1.1.1.1.4.1 $
+
+##
+# = mathn
+#
+# mathn is a library for changing the way Ruby does math. If you need
+# more precise rounding with multiple division or exponentiation
+# operations, then mathn is the right tool.
+#
+# Without mathn:
+#
+# 3 / 2 => 1 # Integer
+#
+# With mathn:
+#
+# 3 / 2 => 3/2 # Rational
+#
+# mathn features late rounding and lacks truncation of intermediate results:
+#
+# Without mathn:
+#
+# 20 / 9 * 3 * 14 / 7 * 3 / 2 # => 18
+#
+# With mathn:
#
-# mathn.rb -
-# $Release Version: 0.5 $
-# $Revision: 1.1.1.1.4.1 $
-# by Keiju ISHITSUKA(SHL Japan Inc.)
+# 20 / 9 * 3 * 14 / 7 * 3 / 2 # => 20
#
-# --
#
+# When you require 'mathn', the libraries for Prime, CMath, Matrix and Vector
+# are also loaded.
#
+# == Copyright
#
+# Author: Keiju ISHITSUKA (SHL Japan Inc.)
+#--
+# class Numeric follows to make this documentation findable in a reasonable
+# location
+
+class Numeric; end
require "cmath.rb"
require "matrix.rb"
@@ -18,14 +49,31 @@ require "mathn/complex"
unless defined?(Math.exp!)
Object.instance_eval{remove_const :Math}
- Math = CMath
+ Math = CMath # :nodoc:
end
+##
+# When mathn is required, Fixnum's division and exponentiation are enhanced to
+# return more precise values from mathematical expressions.
+#
+# 2/3*3 # => 0
+# require 'mathn'
+# 2/3*3 # => 2
+
class Fixnum
remove_method :/
+
+ ##
+ # +/+ defines the Rational division for Fixnum.
+ #
+ # 1/3 # => (1/3)
+
alias / quo
- alias power! ** unless defined?(0.power!)
+ alias power! ** unless method_defined? :power!
+
+ ##
+ # Exponentiate by +other+
def ** (other)
if self < 0 && other.round != other
@@ -37,11 +85,24 @@ class Fixnum
end
+##
+# When mathn is required Bignum's division and exponentiation are enhanced to
+# return more precise values from mathematical expressions.
+
class Bignum
remove_method :/
+
+ ##
+ # +/+ defines the Rational division for Bignum.
+ #
+ # (2**72) / ((2**70) * 3) # => 4/3
+
alias / quo
- alias power! ** unless defined?(0.power!)
+ alias power! ** unless method_defined? :power!
+
+ ##
+ # Exponentiate by +other+
def ** (other)
if self < 0 && other.round != other
@@ -53,41 +114,61 @@ class Bignum
end
+##
+# When mathn is required Rational is changed to simplify the use of Rational
+# operations.
+#
+# Normal behaviour:
+#
+# Rational.new!(1,3) ** 2 # => Rational(1, 9)
+# (1 / 3) ** 2 # => 0
+#
+# require 'mathn' behaviour:
+#
+# (1 / 3) ** 2 # => 1/9
+
class Rational
+ remove_method :**
+
+ ##
+ # Exponentiate by +other+
+ #
+ # (1/3) ** 2 # => 1/9
+
def ** (other)
if other.kind_of?(Rational)
other2 = other
if self < 0
- return Complex(self, 0.0) ** other
+ return Complex(self, 0.0) ** other
elsif other == 0
- return Rational(1,1)
+ return Rational(1,1)
elsif self == 0
- return Rational(0,1)
+ return Rational(0,1)
elsif self == 1
- return Rational(1,1)
+ return Rational(1,1)
end
npd = numerator.prime_division
dpd = denominator.prime_division
if other < 0
- other = -other
- npd, dpd = dpd, npd
+ other = -other
+ npd, dpd = dpd, npd
end
for elm in npd
- elm[1] = elm[1] * other
- if !elm[1].kind_of?(Integer) and elm[1].denominator != 1
- return Float(self) ** other2
- end
- elm[1] = elm[1].to_i
+ elm[1] = elm[1] * other
+ if !elm[1].kind_of?(Integer) and elm[1].denominator != 1
+ return Float(self) ** other2
+ end
+ elm[1] = elm[1].to_i
end
for elm in dpd
- elm[1] = elm[1] * other
- if !elm[1].kind_of?(Integer) and elm[1].denominator != 1
- return Float(self) ** other2
- end
- elm[1] = elm[1].to_i
+ elm[1] = elm[1] * other
+ if !elm[1].kind_of?(Integer) and elm[1].denominator != 1
+ return Float(self) ** other2
+ end
+ elm[1] = elm[1].to_i
end
num = Integer.from_prime_division(npd)
@@ -97,14 +178,14 @@ class Rational
elsif other.kind_of?(Integer)
if other > 0
- num = numerator ** other
- den = denominator ** other
+ num = numerator ** other
+ den = denominator ** other
elsif other < 0
- num = denominator ** -other
- den = numerator ** -other
+ num = denominator ** -other
+ den = numerator ** -other
elsif other == 0
- num = 1
- den = 1
+ num = 1
+ den = 1
end
Rational(num, den)
elsif other.kind_of?(Float)
@@ -116,23 +197,47 @@ class Rational
end
end
+##
+# When mathn is required, the Math module changes as follows:
+#
+# Standard Math module behaviour:
+# Math.sqrt(4/9) # => 0.0
+# Math.sqrt(4.0/9.0) # => 0.666666666666667
+# Math.sqrt(- 4/9) # => Errno::EDOM: Numerical argument out of domain - sqrt
+#
+# After require 'mathn', this is changed to:
+#
+# require 'mathn'
+# Math.sqrt(4/9) # => 2/3
+# Math.sqrt(4.0/9.0) # => 0.666666666666667
+# Math.sqrt(- 4/9) # => Complex(0, 2/3)
+
module Math
remove_method(:sqrt)
+
+ ##
+ # Computes the square root of +a+. It makes use of Complex and
+ # Rational to have no rounding errors if possible.
+ #
+ # Math.sqrt(4/9) # => 2/3
+ # Math.sqrt(- 4/9) # => Complex(0, 2/3)
+ # Math.sqrt(4.0/9.0) # => 0.666666666666667
+
def sqrt(a)
if a.kind_of?(Complex)
abs = sqrt(a.real*a.real + a.imag*a.imag)
# if not abs.kind_of?(Rational)
-# return a**Rational(1,2)
+# return a**Rational(1,2)
# end
x = sqrt((a.real + abs)/Rational(2))
y = sqrt((-a.real + abs)/Rational(2))
# if !(x.kind_of?(Rational) and y.kind_of?(Rational))
-# return a**Rational(1,2)
+# return a**Rational(1,2)
# end
if a.imag >= 0
- Complex(x, y)
+ Complex(x, y)
else
- Complex(x, -y)
+ Complex(x, -y)
end
elsif a.respond_to?(:nan?) and a.nan?
a
@@ -143,6 +248,10 @@ module Math
end
end
+ ##
+ # Compute square root of a non negative number. This method is
+ # internally used by +Math.sqrt+.
+
def rsqrt(a)
if a.kind_of?(Float)
sqrt!(a)
@@ -154,47 +263,56 @@ module Math
byte_a = [src & 0xffffffff]
# ruby's bug
while (src >= max) and (src >>= 32)
- byte_a.unshift src & 0xffffffff
+ byte_a.unshift src & 0xffffffff
end
answer = 0
main = 0
side = 0
for elm in byte_a
- main = (main << 32) + elm
- side <<= 16
- if answer != 0
- if main * 4 < side * side
- applo = main.div(side)
- else
- applo = ((sqrt!(side * side + 4 * main) - side)/2.0).to_i + 1
- end
- else
- applo = sqrt!(main).to_i + 1
- end
-
- while (x = (side + applo) * applo) > main
- applo -= 1
- end
- main -= x
- answer = (answer << 16) + applo
- side += applo * 2
+ main = (main << 32) + elm
+ side <<= 16
+ if answer != 0
+ if main * 4 < side * side
+ applo = main.div(side)
+ else
+ applo = ((sqrt!(side * side + 4 * main) - side)/2.0).to_i + 1
+ end
+ else
+ applo = sqrt!(main).to_i + 1
+ end
+
+ while (x = (side + applo) * applo) > main
+ applo -= 1
+ end
+ main -= x
+ answer = (answer << 16) + applo
+ side += applo * 2
end
if main == 0
- answer
+ answer
else
- sqrt!(a)
+ sqrt!(a)
end
end
end
+ class << self
+ remove_method(:sqrt)
+ end
module_function :sqrt
module_function :rsqrt
end
+##
+# When mathn is required, Float is changed to handle Complex numbers.
+
class Float
alias power! **
+ ##
+ # Exponentiate by +other+
+
def ** (other)
if self < 0 && other.round != other
Complex(self, 0.0) ** other
diff --git a/lib/matrix.rb b/lib/matrix.rb
index 5d350bb8f8..3c078c0c06 100644
--- a/lib/matrix.rb
+++ b/lib/matrix.rb
@@ -1,21 +1,15 @@
-#--
-# matrix.rb -
-# $Release Version: 1.0$
-# $Revision: 1.13 $
-# Original Version from Smalltalk-80 version
-# on July 23, 1985 at 8:37:17 am
-# by Keiju ISHITSUKA
-#++
+# encoding: utf-8
#
# = matrix.rb
#
# An implementation of Matrix and Vector classes.
#
-# Author:: Keiju ISHITSUKA
-# Documentation:: Gavin Sinclair (sourced from <i>Ruby in a Nutshell</i> (Matsumoto, O'Reilly))
-#
# See classes Matrix and Vector for documentation.
#
+# Current Maintainer:: Marc-André Lafortune
+# Original Author:: Keiju ISHITSUKA
+# Original Documentation:: Gavin Sinclair (sourced from <i>Ruby in a Nutshell</i> (Matsumoto, O'Reilly))
+##
require "e2mmap.rb"
@@ -26,20 +20,14 @@ module ExceptionForMatrix # :nodoc:
def_exception("ErrDimensionMismatch", "\#{self.name} dimension mismatch")
def_exception("ErrNotRegular", "Not Regular Matrix")
- def_exception("ErrOperationNotDefined", "This operation(%s) can\\'t defined")
+ def_exception("ErrOperationNotDefined", "Operation(%s) can\\'t be defined: %s op %s")
+ def_exception("ErrOperationNotImplemented", "Sorry, Operation(%s) not implemented: %s op %s")
end
#
-# The +Matrix+ class represents a mathematical matrix, and provides methods for creating
-# special-case matrices (zero, identity, diagonal, singular, vector), operating on them
-# arithmetically and algebraically, and determining their mathematical properties (trace, rank,
-# inverse, determinant).
-#
-# Note that although matrices should theoretically be rectangular, this is not
-# enforced by the class.
-#
-# Also note that the determinant of integer matrices may be incorrectly calculated unless you
-# also <tt>require 'mathn'</tt>. This may be fixed in the future.
+# The +Matrix+ class represents a mathematical matrix. It provides methods for creating
+# matrices, operating on them arithmetically and algebraically,
+# and determining their mathematical properties (trace, rank, inverse, determinant).
#
# == Method Catalogue
#
@@ -48,9 +36,9 @@ end
# * <tt> Matrix.[](*rows) </tt>
# * <tt> Matrix.rows(rows, copy = true) </tt>
# * <tt> Matrix.columns(columns) </tt>
+# * <tt> Matrix.build(row_size, column_size, &block) </tt>
# * <tt> Matrix.diagonal(*values) </tt>
# * <tt> Matrix.scalar(n, value) </tt>
-# * <tt> Matrix.scalar(n, value) </tt>
# * <tt> Matrix.identity(n) </tt>
# * <tt> Matrix.unit(n) </tt>
# * <tt> Matrix.I(n) </tt>
@@ -66,12 +54,27 @@ end
# * <tt> #column(j) </tt>
# * <tt> #collect </tt>
# * <tt> #map </tt>
+# * <tt> #each </tt>
+# * <tt> #each_with_index </tt>
+# * <tt> #find_index </tt>
# * <tt> #minor(*param) </tt>
#
# Properties of a matrix:
+# * <tt> #diagonal? </tt>
+# * <tt> #empty? </tt>
+# * <tt> #hermitian? </tt>
+# * <tt> #lower_triangular? </tt>
+# * <tt> #normal? </tt>
+# * <tt> #orthogonal? </tt>
+# * <tt> #permutation? </tt>
+# * <tt> #real? </tt>
# * <tt> #regular? </tt>
# * <tt> #singular? </tt>
# * <tt> #square? </tt>
+# * <tt> #symmetric? </tt>
+# * <tt> #unitary? </tt>
+# * <tt> #upper_triangular? </tt>
+# * <tt> #zero? </tt>
#
# Matrix arithmetic:
# * <tt> *(m) </tt>
@@ -86,11 +89,27 @@ end
# * <tt> #determinant </tt>
# * <tt> #det </tt>
# * <tt> #rank </tt>
+# * <tt> #round </tt>
# * <tt> #trace </tt>
# * <tt> #tr </tt>
# * <tt> #transpose </tt>
# * <tt> #t </tt>
#
+# Matrix decompositions:
+# * <tt> #eigen </tt>
+# * <tt> #eigensystem </tt>
+# * <tt> #lup </tt>
+# * <tt> #lup_decomposition </tt>
+#
+# Complex arithmetic:
+# * <tt> conj </tt>
+# * <tt> conjugate </tt>
+# * <tt> imag </tt>
+# * <tt> imaginary </tt>
+# * <tt> real </tt>
+# * <tt> rect </tt>
+# * <tt> rectangular </tt>
+#
# Conversion to other data types:
# * <tt> #coerce(other) </tt>
# * <tt> #row_vectors </tt>
@@ -102,13 +121,15 @@ end
# * <tt> #inspect </tt>
#
class Matrix
- @RCS_ID='-$Id: matrix.rb,v 1.13 2001/12/09 14:22:23 keiju Exp keiju $-'
-
-# extend Exception2MessageMapper
+ include Enumerable
include ExceptionForMatrix
+ autoload :EigenvalueDecomposition, "matrix/eigenvalue_decomposition"
+ autoload :LUPDecomposition, "matrix/lup_decomposition"
# instance creations
private_class_method :new
+ attr_reader :rows
+ protected :rows
#
# Creates a matrix where each argument is a row.
@@ -117,18 +138,27 @@ class Matrix
# -1 66
#
def Matrix.[](*rows)
- new(:init_rows, rows, false)
+ Matrix.rows(rows, false)
end
#
# Creates a matrix where +rows+ is an array of arrays, each of which is a row
- # to the matrix. If the optional argument +copy+ is false, use the given
+ # of the matrix. If the optional argument +copy+ is false, use the given
# arrays as the internal structure of the matrix without copying.
# Matrix.rows([[25, 93], [-1, 66]])
# => 25 93
# -1 66
+ #
def Matrix.rows(rows, copy = true)
- new(:init_rows, rows, copy)
+ rows = convert_to_array(rows)
+ rows.map! do |row|
+ convert_to_array(row, copy)
+ end
+ size = (rows[0] || []).size
+ rows.each do |row|
+ Matrix.Raise ErrDimensionMismatch, "row size differs (#{row.size} should be #{size})" unless row.size == size
+ end
+ new rows, size
end
#
@@ -137,14 +167,32 @@ class Matrix
# => 25 -1
# 93 66
#
- #
def Matrix.columns(columns)
- rows = (0 .. columns[0].size - 1).collect {|i|
- (0 .. columns.size - 1).collect {|j|
- columns[j][i]
- }
- }
- Matrix.rows(rows, false)
+ Matrix.rows(columns, false).transpose
+ end
+
+ #
+ # Creates a matrix of size +row_size+ x +column_size+.
+ # It fills the values by calling the given block,
+ # passing the current row and column.
+ # Returns an enumerator if no block is given.
+ #
+ # m = Matrix.build(2, 4) {|row, col| col - row }
+ # => Matrix[[0, 1, 2, 3], [-1, 0, 1, 2]]
+ # m = Matrix.build(3) { rand }
+ # => a 3x3 matrix with random elements
+ #
+ def Matrix.build(row_size, column_size = row_size)
+ row_size = CoercionHelper.coerce_to_int(row_size)
+ column_size = CoercionHelper.coerce_to_int(column_size)
+ raise ArgumentError if row_size < 0 || column_size < 0
+ return to_enum :build, row_size, column_size unless block_given?
+ rows = Array.new(row_size) do |i|
+ Array.new(column_size) do |j|
+ yield i, j
+ end
+ end
+ new rows, column_size
end
#
@@ -156,12 +204,12 @@ class Matrix
#
def Matrix.diagonal(*values)
size = values.size
- rows = (0 .. size - 1).collect {|j|
- row = Array.new(size).fill(0, 0, size)
+ rows = Array.new(size) {|j|
+ row = Array.new(size, 0)
row[j] = values[j]
row
}
- rows(rows, false)
+ new rows
end
#
@@ -172,7 +220,7 @@ class Matrix
# 0 5
#
def Matrix.scalar(n, value)
- Matrix.diagonal(*Array.new(n).fill(value, 0, n))
+ Matrix.diagonal(*Array.new(n, value))
end
#
@@ -190,13 +238,14 @@ class Matrix
end
#
- # Creates an +n+ by +n+ zero matrix.
+ # Creates a zero matrix.
# Matrix.zero(2)
# => 0 0
# 0 0
#
- def Matrix.zero(n)
- Matrix.scalar(n, 0)
+ def Matrix.zero(row_size, column_size = row_size)
+ rows = Array.new(row_size){Array.new(column_size, 0)}
+ new rows, column_size
end
#
@@ -206,14 +255,8 @@ class Matrix
# => 4 5 6
#
def Matrix.row_vector(row)
- case row
- when Vector
- Matrix.rows([row.to_a], false)
- when Array
- Matrix.rows([row.dup], false)
- else
- Matrix.rows([[row]], false)
- end
+ row = convert_to_array(row)
+ new [row]
end
#
@@ -225,39 +268,51 @@ class Matrix
# 6
#
def Matrix.column_vector(column)
- case column
- when Vector
- Matrix.columns([column.to_a])
- when Array
- Matrix.columns([column])
- else
- Matrix.columns([[column]])
- end
+ column = convert_to_array(column)
+ new [column].transpose, 1
end
#
- # This method is used by the other methods that create matrices, and is of no
- # use to general users.
+ # Creates a empty matrix of +row_size+ x +column_size+.
+ # At least one of +row_size+ or +column_size+ must be 0.
+ #
+ # m = Matrix.empty(2, 0)
+ # m == Matrix[ [], [] ]
+ # => true
+ # n = Matrix.empty(0, 3)
+ # n == Matrix.columns([ [], [], [] ])
+ # => true
+ # m * n
+ # => Matrix[[0, 0, 0], [0, 0, 0]]
#
- def initialize(init_method, *argv)
- self.send(init_method, *argv)
+ def Matrix.empty(row_size = 0, column_size = 0)
+ Matrix.Raise ArgumentError, "One size must be 0" if column_size != 0 && row_size != 0
+ Matrix.Raise ArgumentError, "Negative size" if column_size < 0 || row_size < 0
+
+ new([[]]*row_size, column_size)
end
- def init_rows(rows, copy)
- if copy
- @rows = rows.collect{|row| row.dup}
- else
- @rows = rows
- end
- self
+ #
+ # Matrix.new is private; use Matrix.rows, columns, [], etc... to create.
+ #
+ def initialize(rows, column_size = rows[0].size)
+ # No checking is done at this point. rows must be an Array of Arrays.
+ # column_size must be the size of the first row, if there is one,
+ # otherwise it *must* be specified and can be any integer >= 0
+ @rows = rows
+ @column_size = column_size
+ end
+
+ def new_matrix(rows, column_size = rows[0].size) # :nodoc:
+ Matrix.send(:new, rows, column_size) # bypass privacy of Matrix.new
end
- private :init_rows
+ private :new_matrix
#
# Returns element (+i+,+j+) of the matrix. That is: row +i+, column +j+.
#
def [](i, j)
- @rows[i][j]
+ @rows.fetch(i){return nil}[j]
end
alias element []
alias component []
@@ -277,26 +332,20 @@ class Matrix
end
#
- # Returns the number of columns. Note that it is possible to construct a
- # matrix with uneven columns (e.g. Matrix[ [1,2,3], [4,5] ]), but this is
- # mathematically unsound. This method uses the first row to determine the
- # result.
+ # Returns the number of columns.
#
- def column_size
- @rows[0].size
- end
+ attr_reader :column_size
#
# Returns row vector number +i+ of the matrix as a Vector (starting at 0 like
# an array). When a block is given, the elements of that vector are iterated.
#
- def row(i) # :yield: e
+ def row(i, &block) # :yield: e
if block_given?
- for e in @rows[i]
- yield e
- end
+ @rows.fetch(i){return self}.each(&block)
+ self
else
- Vector.elements(@rows[i])
+ Vector.elements(@rows.fetch(i){return nil})
end
end
@@ -307,11 +356,14 @@ class Matrix
#
def column(j) # :yield: e
if block_given?
- 0.upto(row_size - 1) do |i|
+ return self if j >= column_size || j < -column_size
+ row_size.times do |i|
yield @rows[i][j]
end
+ self
else
- col = (0 .. row_size - 1).collect {|i|
+ return nil if j >= column_size || j < -column_size
+ col = Array.new(row_size) {|i|
@rows[i][j]
}
Vector.elements(col, false)
@@ -325,43 +377,214 @@ class Matrix
# => 1 4
# 9 16
#
- def collect # :yield: e
- rows = @rows.collect{|row| row.collect{|e| yield e}}
- Matrix.rows(rows, false)
+ def collect(&block) # :yield: e
+ return to_enum(:collect) unless block_given?
+ rows = @rows.collect{|row| row.collect(&block)}
+ new_matrix rows, column_size
end
alias map collect
#
+ # Yields all elements of the matrix, starting with those of the first row,
+ # or returns an Enumerator is no block given.
+ # Elements can be restricted by passing an argument:
+ # * :all (default): yields all elements
+ # * :diagonal: yields only elements on the diagonal
+ # * :off_diagonal: yields all elements except on the diagonal
+ # * :lower: yields only elements on or below the diagonal
+ # * :strict_lower: yields only elements below the diagonal
+ # * :strict_upper: yields only elements above the diagonal
+ # * :upper: yields only elements on or above the diagonal
+ #
+ # Matrix[ [1,2], [3,4] ].each { |e| puts e }
+ # # => prints the numbers 1 to 4
+ # Matrix[ [1,2], [3,4] ].each(:strict_lower).to_a # => [3]
+ #
+ def each(which = :all) # :yield: e
+ return to_enum :each, which unless block_given?
+ last = column_size - 1
+ case which
+ when :all
+ block = Proc.new
+ @rows.each do |row|
+ row.each(&block)
+ end
+ when :diagonal
+ @rows.each_with_index do |row, row_index|
+ yield row.fetch(row_index){return self}
+ end
+ when :off_diagonal
+ @rows.each_with_index do |row, row_index|
+ column_size.times do |col_index|
+ yield row[col_index] unless row_index == col_index
+ end
+ end
+ when :lower
+ @rows.each_with_index do |row, row_index|
+ 0.upto([row_index, last].min) do |col_index|
+ yield row[col_index]
+ end
+ end
+ when :strict_lower
+ @rows.each_with_index do |row, row_index|
+ [row_index, column_size].min.times do |col_index|
+ yield row[col_index]
+ end
+ end
+ when :strict_upper
+ @rows.each_with_index do |row, row_index|
+ (row_index+1).upto(last) do |col_index|
+ yield row[col_index]
+ end
+ end
+ when :upper
+ @rows.each_with_index do |row, row_index|
+ row_index.upto(last) do |col_index|
+ yield row[col_index]
+ end
+ end
+ else
+ Matrix.Raise ArgumentError, "expected #{which.inspect} to be one of :all, :diagonal, :off_diagonal, :lower, :strict_lower, :strict_upper or :upper"
+ end
+ self
+ end
+
+ #
+ # Same as #each, but the row index and column index in addition to the element
+ #
+ # Matrix[ [1,2], [3,4] ].each_with_index do |e, row, col|
+ # puts "#{e} at #{row}, #{col}"
+ # end
+ # # => Prints:
+ # # 1 at 0, 0
+ # # 2 at 0, 1
+ # # 3 at 1, 0
+ # # 4 at 1, 1
+ #
+ def each_with_index(which = :all) # :yield: e, row, column
+ return to_enum :each_with_index, which unless block_given?
+ last = column_size - 1
+ case which
+ when :all
+ @rows.each_with_index do |row, row_index|
+ row.each_with_index do |e, col_index|
+ yield e, row_index, col_index
+ end
+ end
+ when :diagonal
+ @rows.each_with_index do |row, row_index|
+ yield row.fetch(row_index){return self}, row_index, row_index
+ end
+ when :off_diagonal
+ @rows.each_with_index do |row, row_index|
+ column_size.times do |col_index|
+ yield row[col_index], row_index, col_index unless row_index == col_index
+ end
+ end
+ when :lower
+ @rows.each_with_index do |row, row_index|
+ 0.upto([row_index, last].min) do |col_index|
+ yield row[col_index], row_index, col_index
+ end
+ end
+ when :strict_lower
+ @rows.each_with_index do |row, row_index|
+ [row_index, column_size].min.times do |col_index|
+ yield row[col_index], row_index, col_index
+ end
+ end
+ when :strict_upper
+ @rows.each_with_index do |row, row_index|
+ (row_index+1).upto(last) do |col_index|
+ yield row[col_index], row_index, col_index
+ end
+ end
+ when :upper
+ @rows.each_with_index do |row, row_index|
+ row_index.upto(last) do |col_index|
+ yield row[col_index], row_index, col_index
+ end
+ end
+ else
+ Matrix.Raise ArgumentError, "expected #{which.inspect} to be one of :all, :diagonal, :off_diagonal, :lower, :strict_lower, :strict_upper or :upper"
+ end
+ self
+ end
+
+ SELECTORS = {all: true, diagonal: true, off_diagonal: true, lower: true, strict_lower: true, strict_upper: true, upper: true}.freeze
+ #
+ # :call-seq:
+ # index(value, selector = :all) -> [row, column]
+ # index(selector = :all){ block } -> [row, column]
+ # index(selector = :all) -> an_enumerator
+ #
+ # The index method is specialized to return the index as [row, column]
+ # It also accepts an optional +selector+ argument, see #each for details.
+ #
+ # Matrix[ [1,2], [3,4] ].index(&:even?) # => [0, 1]
+ # Matrix[ [1,1], [1,1] ].index(1, :strict_lower) # => [1, 0]
+ #
+ def index(*args)
+ raise ArgumentError, "wrong number of arguments(#{args.size} for 0-2)" if args.size > 2
+ which = (args.size == 2 || SELECTORS.include?(args.last)) ? args.pop : :all
+ return to_enum :find_index, which, *args unless block_given? || args.size == 1
+ if args.size == 1
+ value = args.first
+ each_with_index(which) do |e, row_index, col_index|
+ return row_index, col_index if e == value
+ end
+ else
+ each_with_index(which) do |e, row_index, col_index|
+ return row_index, col_index if yield e
+ end
+ end
+ nil
+ end
+ alias_method :find_index, :index
+ #
# Returns a section of the matrix. The parameters are either:
# * start_row, nrows, start_col, ncols; OR
- # * col_range, row_range
+ # * row_range, col_range
#
# Matrix.diagonal(9, 5, -3).minor(0..1, 0..2)
# => 9 0 0
# 0 5 0
#
+ # Like Array#[], negative indices count backward from the end of the
+ # row or column (-1 is the last element). Returns nil if the starting
+ # row or column is greater than row_size or column_size respectively.
+ #
def minor(*param)
case param.size
when 2
- from_row = param[0].first
- size_row = param[0].end - from_row
- size_row += 1 unless param[0].exclude_end?
- from_col = param[1].first
- size_col = param[1].end - from_col
- size_col += 1 unless param[1].exclude_end?
+ row_range, col_range = param
+ from_row = row_range.first
+ from_row += row_size if from_row < 0
+ to_row = row_range.end
+ to_row += row_size if to_row < 0
+ to_row += 1 unless row_range.exclude_end?
+ size_row = to_row - from_row
+
+ from_col = col_range.first
+ from_col += column_size if from_col < 0
+ to_col = col_range.end
+ to_col += column_size if to_col < 0
+ to_col += 1 unless col_range.exclude_end?
+ size_col = to_col - from_col
when 4
- from_row = param[0]
- size_row = param[1]
- from_col = param[2]
- size_col = param[3]
+ from_row, size_row, from_col, size_col = param
+ return nil if size_row < 0 || size_col < 0
+ from_row += row_size if from_row < 0
+ from_col += column_size if from_col < 0
else
Matrix.Raise ArgumentError, param.inspect
end
+ return nil if from_row > row_size || from_col > column_size || from_row < 0 || from_col < 0
rows = @rows[from_row, size_row].collect{|row|
row[from_col, size_col]
}
- Matrix.rows(rows, false)
+ new_matrix rows, [column_size - from_col, size_col].min
end
#--
@@ -369,76 +592,202 @@ class Matrix
#++
#
- # Returns +true+ if this is a regular matrix.
+ # Returns +true+ is this is a diagonal matrix.
+ # Raises an error if matrix is not square.
+ #
+ def diagonal?
+ Matrix.Raise ErrDimensionMismatch unless square?
+ each(:off_diagonal).all?(&:zero?)
+ end
+
+ #
+ # Returns +true+ if this is an empty matrix, i.e. if the number of rows
+ # or the number of columns is 0.
+ #
+ def empty?
+ column_size == 0 || row_size == 0
+ end
+
+ #
+ # Returns +true+ is this is an hermitian matrix.
+ # Raises an error if matrix is not square.
+ #
+ def hermitian?
+ Matrix.Raise ErrDimensionMismatch unless square?
+ each_with_index(:strict_upper).all? do |e, row, col|
+ e == rows[col][row].conj
+ end
+ end
+
+ #
+ # Returns +true+ is this is a lower triangular matrix.
+ #
+ def lower_triangular?
+ each(:strict_upper).all?(&:zero?)
+ end
+
+ #
+ # Returns +true+ is this is a normal matrix.
+ # Raises an error if matrix is not square.
+ #
+ def normal?
+ Matrix.Raise ErrDimensionMismatch unless square?
+ rows.each_with_index do |row_i, i|
+ rows.each_with_index do |row_j, j|
+ s = 0
+ rows.each_with_index do |row_k, k|
+ s += row_i[k] * row_j[k].conj - row_k[i].conj * row_k[j]
+ end
+ return false unless s == 0
+ end
+ end
+ true
+ end
+
+ #
+ # Returns +true+ is this is an orthogonal matrix
+ # Raises an error if matrix is not square.
+ #
+ def orthogonal?
+ Matrix.Raise ErrDimensionMismatch unless square?
+ rows.each_with_index do |row, i|
+ column_size.times do |j|
+ s = 0
+ row_size.times do |k|
+ s += row[k] * rows[k][j]
+ end
+ return false unless s == (i == j ? 1 : 0)
+ end
+ end
+ true
+ end
+
+ #
+ # Returns +true+ is this is a permutation matrix
+ # Raises an error if matrix is not square.
+ #
+ def permutation?
+ Matrix.Raise ErrDimensionMismatch unless square?
+ cols = Array.new(column_size)
+ rows.each_with_index do |row, i|
+ found = false
+ row.each_with_index do |e, j|
+ if e == 1
+ return false if found || cols[j]
+ found = cols[j] = true
+ elsif e != 0
+ return false
+ end
+ end
+ return false unless found
+ end
+ true
+ end
+
+ #
+ # Returns +true+ if all entries of the matrix are real.
+ #
+ def real?
+ all?(&:real?)
+ end
+
+ #
+ # Returns +true+ if this is a regular (i.e. non-singular) matrix.
#
def regular?
- square? and rank == column_size
+ not singular?
end
#
- # Returns +true+ is this is a singular (i.e. non-regular) matrix.
+ # Returns +true+ is this is a singular matrix.
#
def singular?
- not regular?
+ determinant == 0
end
#
- # Returns +true+ is this is a square matrix. See note in column_size about this
- # being unreliable, though.
+ # Returns +true+ is this is a square matrix.
#
def square?
column_size == row_size
end
- #--
- # OBJECT METHODS -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
- #++
+ #
+ # Returns +true+ is this is a symmetric matrix.
+ # Raises an error if matrix is not square.
+ #
+ def symmetric?
+ Matrix.Raise ErrDimensionMismatch unless square?
+ each_with_index(:strict_upper).all? do |e, row, col|
+ e == rows[col][row]
+ end
+ end
#
- # Returns +true+ if and only if the two matrices contain equal elements.
+ # Returns +true+ is this is a unitary matrix
+ # Raises an error if matrix is not square.
#
- def ==(other)
- return false unless Matrix === other
+ def unitary?
+ Matrix.Raise ErrDimensionMismatch unless square?
+ rows.each_with_index do |row, i|
+ column_size.times do |j|
+ s = 0
+ row_size.times do |k|
+ s += row[k].conj * rows[k][j]
+ end
+ return false unless s == (i == j ? 1 : 0)
+ end
+ end
+ true
+ end
- other.compare_by_row_vectors(@rows)
+ #
+ # Returns +true+ is this is an upper triangular matrix.
+ #
+ def upper_triangular?
+ each(:strict_lower).all?(&:zero?)
end
- def eql?(other)
- return false unless Matrix === other
- other.compare_by_row_vectors(@rows, :eql?)
+ #
+ # Returns +true+ is this is a matrix with only zero elements
+ #
+ def zero?
+ all?(&:zero?)
end
+ #--
+ # OBJECT METHODS -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
+ #++
+
#
- # Not really intended for general consumption.
+ # Returns +true+ if and only if the two matrices contain equal elements.
#
- def compare_by_row_vectors(rows, comparison = :==)
- return false unless @rows.size == rows.size
+ def ==(other)
+ return false unless Matrix === other &&
+ column_size == other.column_size # necessary for empty matrices
+ rows == other.rows
+ end
- 0.upto(@rows.size - 1) do |i|
- return false unless @rows[i].send(comparison, rows[i])
- end
- true
+ def eql?(other)
+ return false unless Matrix === other &&
+ column_size == other.column_size # necessary for empty matrices
+ rows.eql? other.rows
end
#
# Returns a clone of the matrix, so that the contents of each do not reference
# identical objects.
+ # There should be no good reason to do this since Matrices are immutable.
#
def clone
- Matrix.rows(@rows)
+ new_matrix @rows.map(&:dup), column_size
end
#
# Returns a hash-code for the matrix.
#
def hash
- value = 0
- for row in @rows
- for e in row
- value ^= e.hash
- end
- end
- return value
+ @rows.hash
end
#--
@@ -455,11 +804,9 @@ class Matrix
case(m)
when Numeric
rows = @rows.collect {|row|
- row.collect {|e|
- e * m
- }
+ row.collect {|e| e * m }
}
- return Matrix.rows(rows, false)
+ return new_matrix rows, column_size
when Vector
m = Matrix.column_vector(m)
r = self * m
@@ -467,19 +814,16 @@ class Matrix
when Matrix
Matrix.Raise ErrDimensionMismatch if column_size != m.row_size
- rows = (0 .. row_size - 1).collect {|i|
- (0 .. m.column_size - 1).collect {|j|
- vij = 0
- 0.upto(column_size - 1) do |k|
- vij += self[i, k] * m[k, j]
+ rows = Array.new(row_size) {|i|
+ Array.new(m.column_size) {|j|
+ (0 ... column_size).inject(0) do |vij, k|
+ vij + self[i, k] * m[k, j]
end
- vij
}
}
- return Matrix.rows(rows, false)
+ return new_matrix rows, m.column_size
else
- x, y = m.coerce(self)
- return x * y
+ return apply_through_coercion(m, __method__)
end
end
@@ -492,23 +836,22 @@ class Matrix
def +(m)
case m
when Numeric
- Matrix.Raise ErrOperationNotDefined, "+"
+ Matrix.Raise ErrOperationNotDefined, "+", self.class, m.class
when Vector
m = Matrix.column_vector(m)
when Matrix
else
- x, y = m.coerce(self)
- return x + y
+ return apply_through_coercion(m, __method__)
end
Matrix.Raise ErrDimensionMismatch unless row_size == m.row_size and column_size == m.column_size
- rows = (0 .. row_size - 1).collect {|i|
- (0 .. column_size - 1).collect {|j|
+ rows = Array.new(row_size) {|i|
+ Array.new(column_size) {|j|
self[i, j] + m[i, j]
}
}
- Matrix.rows(rows, false)
+ new_matrix rows, column_size
end
#
@@ -520,23 +863,22 @@ class Matrix
def -(m)
case m
when Numeric
- Matrix.Raise ErrOperationNotDefined, "-"
+ Matrix.Raise ErrOperationNotDefined, "-", self.class, m.class
when Vector
m = Matrix.column_vector(m)
when Matrix
else
- x, y = m.coerce(self)
- return x - y
+ return apply_through_coercion(m, __method__)
end
Matrix.Raise ErrDimensionMismatch unless row_size == m.row_size and column_size == m.column_size
- rows = (0 .. row_size - 1).collect {|i|
- (0 .. column_size - 1).collect {|j|
+ rows = Array.new(row_size) {|i|
+ Array.new(column_size) {|j|
self[i, j] - m[i, j]
}
}
- Matrix.rows(rows, false)
+ new_matrix rows, column_size
end
#
@@ -549,42 +891,36 @@ class Matrix
case other
when Numeric
rows = @rows.collect {|row|
- row.collect {|e|
- e / other
- }
+ row.collect {|e| e / other }
}
- return Matrix.rows(rows, false)
+ return new_matrix rows, column_size
when Matrix
return self * other.inverse
else
- x, y = other.coerce(self)
- rerurn x / y
+ return apply_through_coercion(other, __method__)
end
end
#
# Returns the inverse of the matrix.
- # Matrix[[1, 2], [2, 1]].inverse
+ # Matrix[[-1, -1], [0, -1]].inverse
# => -1 1
# 0 -1
#
def inverse
Matrix.Raise ErrDimensionMismatch unless square?
- Matrix.I(row_size).inverse_from(self)
+ Matrix.I(row_size).send(:inverse_from, self)
end
alias inv inverse
- #
- # Not for public consumption?
- #
- def inverse_from(src)
- size = row_size - 1
+ def inverse_from(src) # :nodoc:
+ last = row_size - 1
a = src.to_a
- for k in 0..size
+ 0.upto(last) do |k|
i = k
akk = a[k][k].abs
- ((k+1)..size).each do |j|
+ (k+1).upto(last) do |j|
v = a[j][k].abs
if v > akk
i = j
@@ -598,61 +934,59 @@ class Matrix
end
akk = a[k][k]
- for i in 0 .. size
- next if i == k
- q = a[i][k].quo(akk)
- a[i][k] = 0
+ 0.upto(last) do |ii|
+ next if ii == k
+ q = a[ii][k].quo(akk)
+ a[ii][k] = 0
- for j in (k + 1).. size
- a[i][j] -= a[k][j] * q
+ (k + 1).upto(last) do |j|
+ a[ii][j] -= a[k][j] * q
end
- for j in 0..size
- @rows[i][j] -= @rows[k][j] * q
+ 0.upto(last) do |j|
+ @rows[ii][j] -= @rows[k][j] * q
end
end
- for j in (k + 1).. size
+ (k+1).upto(last) do |j|
a[k][j] = a[k][j].quo(akk)
end
- for j in 0..size
+ 0.upto(last) do |j|
@rows[k][j] = @rows[k][j].quo(akk)
end
end
self
end
- #alias reciprocal inverse
+ private :inverse_from
#
- # Matrix exponentiation. Defined for integer powers only. Equivalent to
- # multiplying the matrix by itself N times.
+ # Matrix exponentiation.
+ # Equivalent to multiplying the matrix by itself N times.
+ # Non integer exponents will be handled by diagonalizing the matrix.
+ #
# Matrix[[7,6], [3,9]] ** 2
# => 67 96
# 48 99
#
def ** (other)
- if other.kind_of?(Integer)
+ case other
+ when Integer
x = self
if other <= 0
x = self.inverse
return Matrix.identity(self.column_size) if other == 0
other = -other
end
- z = x
- n = other - 1
- while n != 0
- while (div, mod = n.divmod(2)
- mod == 0)
- x = x * x
- n = div
- end
- z *= x
- n -= 1
+ z = nil
+ loop do
+ z = z ? z * x : x if other[0] == 1
+ return z if (other >>= 1).zero?
+ x *= x
end
- z
- elsif other.kind_of?(Float) || defined?(Rational) && other.kind_of?(Rational)
- Matrix.Raise ErrOperationNotDefined, "**"
+ when Numeric
+ v, d, v_inv = eigensystem
+ v * Matrix.diagonal(*d.each(:diagonal).map{|e| e ** other}) * v_inv
else
- Matrix.Raise ErrOperationNotDefined, "**"
+ Matrix.Raise ErrOperationNotDefined, "**", self.class, other.class
end
end
@@ -661,196 +995,154 @@ class Matrix
#++
#
- # Returns the determinant of the matrix. If the matrix is not square, the
- # result is 0. This method's algorism is Gaussian elimination method
- # and using Numeric#quo(). Beware that using Float values, with their
- # usual lack of precision, can affect the value returned by this method. Use
- # Rational values or Matrix#det_e instead if this is important to you.
+ # Returns the determinant of the matrix.
+ #
+ # Beware that using Float values can yield erroneous results
+ # because of their lack of precision.
+ # Consider using exact types like Rational or BigDecimal instead.
#
# Matrix[[7,6], [3,9]].determinant
- # => 63.0
+ # => 45
#
def determinant
- return 0 unless square?
-
- size = row_size - 1
- a = to_a
-
- det = 1
- k = 0
- loop do
- if (akk = a[k][k]) == 0
- i = k
- loop do
- return 0 if (ii += 1) > size
- break unless a[i][k] == 0
- end
- a[i], a[k] = a[k], a[i]
- akk = a[k][k]
- det *= -1
- end
-
- for i in k + 1 .. size
- q = a[i][k].quo(akk)
- (k + 1).upto(size) do |j|
- a[i][j] -= a[k][j] * q
- end
- end
- det *= akk
- break unless (k += 1) <= size
+ Matrix.Raise ErrDimensionMismatch unless square?
+ m = @rows
+ case row_size
+ # Up to 4x4, give result using Laplacian expansion by minors.
+ # This will typically be faster, as well as giving good results
+ # in case of Floats
+ when 0
+ +1
+ when 1
+ + m[0][0]
+ when 2
+ + m[0][0] * m[1][1] - m[0][1] * m[1][0]
+ when 3
+ m0, m1, m2 = m
+ + m0[0] * m1[1] * m2[2] - m0[0] * m1[2] * m2[1] \
+ - m0[1] * m1[0] * m2[2] + m0[1] * m1[2] * m2[0] \
+ + m0[2] * m1[0] * m2[1] - m0[2] * m1[1] * m2[0]
+ when 4
+ m0, m1, m2, m3 = m
+ + m0[0] * m1[1] * m2[2] * m3[3] - m0[0] * m1[1] * m2[3] * m3[2] \
+ - m0[0] * m1[2] * m2[1] * m3[3] + m0[0] * m1[2] * m2[3] * m3[1] \
+ + m0[0] * m1[3] * m2[1] * m3[2] - m0[0] * m1[3] * m2[2] * m3[1] \
+ - m0[1] * m1[0] * m2[2] * m3[3] + m0[1] * m1[0] * m2[3] * m3[2] \
+ + m0[1] * m1[2] * m2[0] * m3[3] - m0[1] * m1[2] * m2[3] * m3[0] \
+ - m0[1] * m1[3] * m2[0] * m3[2] + m0[1] * m1[3] * m2[2] * m3[0] \
+ + m0[2] * m1[0] * m2[1] * m3[3] - m0[2] * m1[0] * m2[3] * m3[1] \
+ - m0[2] * m1[1] * m2[0] * m3[3] + m0[2] * m1[1] * m2[3] * m3[0] \
+ + m0[2] * m1[3] * m2[0] * m3[1] - m0[2] * m1[3] * m2[1] * m3[0] \
+ - m0[3] * m1[0] * m2[1] * m3[2] + m0[3] * m1[0] * m2[2] * m3[1] \
+ + m0[3] * m1[1] * m2[0] * m3[2] - m0[3] * m1[1] * m2[2] * m3[0] \
+ - m0[3] * m1[2] * m2[0] * m3[1] + m0[3] * m1[2] * m2[1] * m3[0]
+ else
+ # For bigger matrices, use an efficient and general algorithm.
+ # Currently, we use the Gauss-Bareiss algorithm
+ determinant_bareiss
end
- det
end
- alias det determinant
+ alias_method :det, :determinant
#
- # Returns the determinant of the matrix. If the matrix is not square, the
- # result is 0. This method's algorism is Gaussian elimination method.
- # This method uses Euclidean algorism. If all elements are integer,
- # really exact value. But, if an element is a float, can't return
- # exact value.
+ # Private. Use Matrix#determinant
#
- # Matrix[[7,6], [3,9]].determinant
- # => 63
+ # Returns the determinant of the matrix, using
+ # Bareiss' multistep integer-preserving gaussian elimination.
+ # It has the same computational cost order O(n^3) as standard Gaussian elimination.
+ # Intermediate results are fraction free and of lower complexity.
+ # A matrix of Integers will have thus intermediate results that are also Integers,
+ # with smaller bignums (if any), while a matrix of Float will usually have
+ # intermediate results with better precision.
#
- def determinant_e
- return 0 unless square?
-
- size = row_size - 1
+ def determinant_bareiss
+ size = row_size
+ last = size - 1
a = to_a
-
- det = 1
- k = 0
- loop do
- if a[k][k].zero?
- i = k
- loop do
- return 0 if (i += 1) > size
- break unless a[i][k].zero?
- end
- a[i], a[k] = a[k], a[i]
- det *= -1
+ no_pivot = Proc.new{ return 0 }
+ sign = +1
+ pivot = 1
+ size.times do |k|
+ previous_pivot = pivot
+ if (pivot = a[k][k]) == 0
+ switch = (k+1 ... size).find(no_pivot) {|row|
+ a[row][k] != 0
+ }
+ a[switch], a[k] = a[k], a[switch]
+ pivot = a[k][k]
+ sign = -sign
end
-
- for i in (k + 1)..size
- q = a[i][k].quo(a[k][k])
- k.upto(size) do |j|
- a[i][j] -= a[k][j] * q
- end
- unless a[i][k].zero?
- a[i], a[k] = a[k], a[i]
- det *= -1
- redo
+ (k+1).upto(last) do |i|
+ ai = a[i]
+ (k+1).upto(last) do |j|
+ ai[j] = (pivot * ai[j] - ai[k] * a[k][j]) / previous_pivot
end
end
- det *= a[k][k]
- break unless (k += 1) <= size
end
- det
+ sign * pivot
+ end
+ private :determinant_bareiss
+
+ #
+ # deprecated; use Matrix#determinant
+ #
+ def determinant_e
+ warn "#{caller(1)[0]}: warning: Matrix#determinant_e is deprecated; use #determinant"
+ rank
end
alias det_e determinant_e
#
- # Returns the rank of the matrix. Beware that using Float values,
- # probably return faild value. Use Rational values or Matrix#rank_e
- # for getting exact result.
+ # Returns the rank of the matrix.
+ # Beware that using Float values can yield erroneous results
+ # because of their lack of precision.
+ # Consider using exact types like Rational or BigDecimal instead.
#
# Matrix[[7,6], [3,9]].rank
# => 2
#
def rank
- if column_size > row_size
- a = transpose.to_a
- a_column_size = row_size
- a_row_size = column_size
- else
- a = to_a
- a_column_size = column_size
- a_row_size = row_size
- end
- rank = 0
- k = 0
- loop do
- if (akk = a[k][k]) == 0
- i = k
- exists = true
- loop do
- if (i += 1) > a_column_size - 1
- exists = false
- break
- end
- break unless a[i][k] == 0
- end
- if exists
- a[i], a[k] = a[k], a[i]
- akk = a[k][k]
- else
- i = k
- exists = true
- loop do
- if (i += 1) > a_row_size - 1
- exists = false
- break
- end
- break unless a[k][i] == 0
- end
- if exists
- k.upto(a_column_size - 1) do |j|
- a[j][k], a[j][i] = a[j][i], a[j][k]
- end
- akk = a[k][k]
- else
- next
- end
- end
- end
-
- for i in (k + 1)..(a_row_size - 1)
- q = a[i][k].quo(akk)
- for j in (k + 1)..(a_column_size - 1)
- a[i][j] -= a[k][j] * q
- end
+ # We currently use Bareiss' multistep integer-preserving gaussian elimination
+ # (see comments on determinant)
+ a = to_a
+ last_column = column_size - 1
+ last_row = row_size - 1
+ pivot_row = 0
+ previous_pivot = 1
+ 0.upto(last_column) do |k|
+ switch_row = (pivot_row .. last_row).find {|row|
+ a[row][k] != 0
+ }
+ if switch_row
+ a[switch_row], a[pivot_row] = a[pivot_row], a[switch_row] unless pivot_row == switch_row
+ pivot = a[pivot_row][k]
+ (pivot_row+1).upto(last_row) do |i|
+ ai = a[i]
+ (k+1).upto(last_column) do |j|
+ ai[j] = (pivot * ai[j] - ai[k] * a[pivot_row][j]) / previous_pivot
+ end
+ end
+ pivot_row += 1
+ previous_pivot = pivot
end
- rank += 1
- break unless (k += 1) <= a_column_size - 1
end
- return rank
+ pivot_row
end
#
- # Returns the rank of the matrix. This method uses Euclidean
- # algorism. If all elements are integer, really exact value. But, if
- # an element is a float, can't return exact value.
- #
- # Matrix[[7,6], [3,9]].rank
- # => 2
+ # deprecated; use Matrix#rank
#
def rank_e
- a = to_a
- a_column_size = column_size
- a_row_size = row_size
- pi = 0
- (0 ... a_column_size).each do |j|
- if i = (pi ... a_row_size).find{|i0| !a[i0][j].zero?}
- if i != pi
- a[pi], a[i] = a[i], a[pi]
- end
- (pi + 1 ... a_row_size).each do |k|
- q = a[k][j].quo(a[pi][j])
- (pi ... a_column_size).each do |j0|
- a[k][j0] -= q * a[pi][j0]
- end
- if k > pi && !a[k][j].zero?
- a[k], a[pi] = a[pi], a[k]
- redo
- end
- end
- pi += 1
- end
- end
- pi
+ warn "#{caller(1)[0]}: warning: Matrix#rank_e is deprecated; use #rank"
+ rank
end
+ # Returns a matrix with entries rounded to the given precision
+ # (see Float#round)
+ #
+ def round(ndigits=0)
+ map{|e| e.round(ndigits)}
+ end
#
# Returns the trace (sum of diagonal elements) of the matrix.
@@ -858,11 +1150,10 @@ class Matrix
# => 16
#
def trace
- tr = 0
- 0.upto(column_size - 1) do |i|
- tr += @rows[i][i]
+ Matrix.Raise ErrDimensionMismatch unless square?
+ (0...column_size).inject(0) do |tr, i|
+ tr + @rows[i][i]
end
- tr
end
alias tr trace
@@ -877,16 +1168,109 @@ class Matrix
# 2 4 6
#
def transpose
- Matrix.columns(@rows)
+ return Matrix.empty(column_size, 0) if row_size.zero?
+ new_matrix @rows.transpose, row_size
end
alias t transpose
#--
+ # DECOMPOSITIONS -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
+ #++
+
+ #
+ # Returns the Eigensystem of the matrix; see +EigenvalueDecomposition+.
+ # m = Matrix[[1, 2], [3, 4]]
+ # v, d, v_inv = m.eigensystem
+ # d.diagonal? # => true
+ # v.inv == v_inv # => true
+ # (v * d * v_inv).round(5) == m # => true
+ #
+ def eigensystem
+ EigenvalueDecomposition.new(self)
+ end
+ alias eigen eigensystem
+
+ #
+ # Returns the LUP decomposition of the matrix; see +LUPDecomposition+.
+ # a = Matrix[[1, 2], [3, 4]]
+ # l, u, p = a.lup
+ # l.lower_triangular? # => true
+ # u.upper_triangular? # => true
+ # p.permutation? # => true
+ # l * u == a * p # => true
+ # a.lup.solve([2, 5]) # => Vector[(1/1), (1/2)]
+ #
+ def lup
+ LUPDecomposition.new(self)
+ end
+ alias lup_decomposition lup
+
+ #--
+ # COMPLEX ARITHMETIC -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
+ #++
+
+ #
+ # Returns the conjugate of the matrix.
+ # Matrix[[Complex(1,2), Complex(0,1), 0], [1, 2, 3]]
+ # => 1+2i i 0
+ # 1 2 3
+ # Matrix[[Complex(1,2), Complex(0,1), 0], [1, 2, 3]].conjugate
+ # => 1-2i -i 0
+ # 1 2 3
+ #
+ def conjugate
+ collect(&:conjugate)
+ end
+ alias conj conjugate
+
+ #
+ # Returns the imaginary part of the matrix.
+ # Matrix[[Complex(1,2), Complex(0,1), 0], [1, 2, 3]]
+ # => 1+2i i 0
+ # 1 2 3
+ # Matrix[[Complex(1,2), Complex(0,1), 0], [1, 2, 3]].imaginary
+ # => 2i i 0
+ # 0 0 0
+ #
+ def imaginary
+ collect(&:imaginary)
+ end
+ alias imag imaginary
+
+ #
+ # Returns the real part of the matrix.
+ # Matrix[[Complex(1,2), Complex(0,1), 0], [1, 2, 3]]
+ # => 1+2i i 0
+ # 1 2 3
+ # Matrix[[Complex(1,2), Complex(0,1), 0], [1, 2, 3]].real
+ # => 1 0 0
+ # 1 2 3
+ #
+ def real
+ collect(&:real)
+ end
+
+ #
+ # Returns an array containing matrices corresponding to the real and imaginary
+ # parts of the matrix
+ #
+ # m.rect == [m.real, m.imag] # ==> true for all matrices m
+ #
+ def rect
+ [real, imag]
+ end
+ alias rectangular rect
+
+ #--
# CONVERTING -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-
#++
#
- # FIXME: describe #coerce.
+ # The coerce method provides support for Ruby type coercion.
+ # This coercion mechanism is used by Ruby to handle mixed-type
+ # numeric operations: it is intended to find a compatible common
+ # type between the two operands of the operator.
+ # See also Numeric#coerce.
#
def coerce(other)
case other
@@ -901,39 +1285,40 @@ class Matrix
# Returns an array of the row vectors of the matrix. See Vector.
#
def row_vectors
- rows = (0 .. row_size - 1).collect {|i|
+ Array.new(row_size) {|i|
row(i)
}
- rows
end
#
# Returns an array of the column vectors of the matrix. See Vector.
#
def column_vectors
- columns = (0 .. column_size - 1).collect {|i|
+ Array.new(column_size) {|i|
column(i)
}
- columns
end
#
# Returns an array of arrays that describe the rows of the matrix.
#
def to_a
- @rows.collect{|row| row.collect{|e| e}}
+ @rows.collect(&:dup)
end
def elements_to_f
- collect{|e| e.to_f}
+ warn "#{caller(1)[0]}: warning: Matrix#elements_to_f is deprecated, use map(&:to_f)"
+ map(&:to_f)
end
def elements_to_i
- collect{|e| e.to_i}
+ warn "#{caller(1)[0]}: warning: Matrix#elements_to_i is deprecated, use map(&:to_i)"
+ map(&:to_i)
end
def elements_to_r
- collect{|e| e.to_r}
+ warn "#{caller(1)[0]}: warning: Matrix#elements_to_r is deprecated, use map(&:to_r)"
+ map(&:to_r)
end
#--
@@ -944,22 +1329,99 @@ class Matrix
# Overrides Object#to_s
#
def to_s
- "Matrix[" + @rows.collect{|row|
- "[" + row.collect{|e| e.to_s}.join(", ") + "]"
- }.join(", ")+"]"
+ if empty?
+ "Matrix.empty(#{row_size}, #{column_size})"
+ else
+ "Matrix[" + @rows.collect{|row|
+ "[" + row.collect{|e| e.to_s}.join(", ") + "]"
+ }.join(", ")+"]"
+ end
end
#
# Overrides Object#inspect
#
def inspect
- "Matrix"+@rows.inspect
+ if empty?
+ "Matrix.empty(#{row_size}, #{column_size})"
+ else
+ "Matrix#{@rows.inspect}"
+ end
+ end
+
+ # Private helper modules
+
+ module ConversionHelper # :nodoc:
+ #
+ # Converts the obj to an Array. If copy is set to true
+ # a copy of obj will be made if necessary.
+ #
+ def convert_to_array(obj, copy = false) # :nodoc:
+ case obj
+ when Array
+ copy ? obj.dup : obj
+ when Vector
+ obj.to_a
+ else
+ begin
+ converted = obj.to_ary
+ rescue Exception => e
+ raise TypeError, "can't convert #{obj.class} into an Array (#{e.message})"
+ end
+ raise TypeError, "#{obj.class}#to_ary should return an Array" unless converted.is_a? Array
+ converted
+ end
+ end
+ private :convert_to_array
+ end
+
+ extend ConversionHelper
+
+ module CoercionHelper # :nodoc:
+ #
+ # Applies the operator +oper+ with argument +obj+
+ # through coercion of +obj+
+ #
+ def apply_through_coercion(obj, oper)
+ coercion = obj.coerce(self)
+ raise TypeError unless coercion.is_a?(Array) && coercion.length == 2
+ coercion[0].public_send(oper, coercion[1])
+ rescue
+ raise TypeError, "#{obj.inspect} can't be coerced into #{self.class}"
+ end
+ private :apply_through_coercion
+
+ #
+ # Helper method to coerce a value into a specific class.
+ # Raises a TypeError if the coercion fails or the returned value
+ # is not of the right class.
+ # (from Rubinius)
+ #
+ def self.coerce_to(obj, cls, meth) # :nodoc:
+ return obj if obj.kind_of?(cls)
+
+ begin
+ ret = obj.__send__(meth)
+ rescue Exception => e
+ raise TypeError, "Coercion error: #{obj.inspect}.#{meth} => #{cls} failed:\n" \
+ "(#{e.message})"
+ end
+ raise TypeError, "Coercion error: obj.#{meth} did NOT return a #{cls} (was #{ret.class})" unless ret.kind_of? cls
+ ret
+ end
+
+ def self.coerce_to_int(obj)
+ coerce_to(obj, Integer, :to_int)
+ end
end
+ include CoercionHelper
+
# Private CLASS
class Scalar < Numeric # :nodoc:
include ExceptionForMatrix
+ include CoercionHelper
def initialize(value)
@value = value
@@ -971,12 +1433,9 @@ class Matrix
when Numeric
Scalar.new(@value + other)
when Vector, Matrix
- Scalar.Raise WrongArgType, other.class, "Numeric or Scalar"
- when Scalar
- Scalar.new(@value + other.value)
+ Scalar.Raise ErrOperationNotDefined, "+", @value.class, other.class
else
- x, y = other.coerce(self)
- x + y
+ apply_through_coercion(other, __method__)
end
end
@@ -985,12 +1444,9 @@ class Matrix
when Numeric
Scalar.new(@value - other)
when Vector, Matrix
- Scalar.Raise WrongArgType, other.class, "Numeric or Scalar"
- when Scalar
- Scalar.new(@value - other.value)
+ Scalar.Raise ErrOperationNotDefined, "-", @value.class, other.class
else
- x, y = other.coerce(self)
- x - y
+ apply_through_coercion(other, __method__)
end
end
@@ -1001,8 +1457,7 @@ class Matrix
when Vector, Matrix
other.collect{|e| @value * e}
else
- x, y = other.coerce(self)
- x * y
+ apply_through_coercion(other, __method__)
end
end
@@ -1011,12 +1466,11 @@ class Matrix
when Numeric
Scalar.new(@value / other)
when Vector
- Scalar.Raise WrongArgType, other.class, "Numeric or Scalar or Matrix"
+ Scalar.Raise ErrOperationNotDefined, "/", @value.class, other.class
when Matrix
- self * other.inverse
+ self * other.inverse
else
- x, y = other.coerce(self)
- x.quo(y)
+ apply_through_coercion(other, __method__)
end
end
@@ -1025,15 +1479,16 @@ class Matrix
when Numeric
Scalar.new(@value ** other)
when Vector
- Scalar.Raise WrongArgType, other.class, "Numeric or Scalar or Matrix"
+ Scalar.Raise ErrOperationNotDefined, "**", @value.class, other.class
when Matrix
- other.powered_by(self)
+ #other.powered_by(self)
+ Scalar.Raise ErrOperationNotImplemented, "**", @value.class, other.class
else
- x, y = other.coerce(self)
- x ** y
+ apply_through_coercion(other, __method__)
end
end
end
+
end
@@ -1062,8 +1517,11 @@ end
# Vector functions:
# * <tt> #inner_product(v) </tt>
# * <tt> #collect </tt>
+# * <tt> #magnitude </tt>
# * <tt> #map </tt>
# * <tt> #map2(v) </tt>
+# * <tt> #norm </tt>
+# * <tt> #normalize </tt>
# * <tt> #r </tt>
# * <tt> #size </tt>
#
@@ -1078,17 +1536,21 @@ end
#
class Vector
include ExceptionForMatrix
-
+ include Enumerable
+ include Matrix::CoercionHelper
+ extend Matrix::ConversionHelper
#INSTANCE CREATION
private_class_method :new
+ attr_reader :elements
+ protected :elements
#
# Creates a Vector from a list of elements.
# Vector[7, 4, ...]
#
def Vector.[](*array)
- new(:init_elements, array, copy = false)
+ new convert_to_array(array, false)
end
#
@@ -1096,25 +1558,15 @@ class Vector
# whether the array itself or a copy is used internally.
#
def Vector.elements(array, copy = true)
- new(:init_elements, array, copy)
- end
-
- #
- # For internal use.
- #
- def initialize(method, array, copy)
- self.send(method, array, copy)
+ new convert_to_array(array, copy)
end
#
- # For internal use.
+ # Vector.new is private; use Vector[] or Vector.elements to create.
#
- def init_elements(array, copy)
- if copy
- @elements = array.dup
- else
- @elements = array
- end
+ def initialize(array)
+ # No checking is done at this point.
+ @elements = array
end
# ACCESSING
@@ -1147,13 +1599,25 @@ class Vector
#++
#
+ # Iterate over the elements of this vector
+ #
+ def each(&block)
+ return to_enum(:each) unless block_given?
+ @elements.each(&block)
+ self
+ end
+
+ #
# Iterate over the elements of this vector and +v+ in conjunction.
#
def each2(v) # :yield: e1, e2
+ raise TypeError, "Integer is not like Vector" if v.kind_of?(Integer)
Vector.Raise ErrDimensionMismatch if size != v.size
- 0.upto(size - 1) do |i|
+ return to_enum(:each2, v) unless block_given?
+ size.times do |i|
yield @elements[i], v[i]
end
+ self
end
#
@@ -1161,8 +1625,10 @@ class Vector
# in conjunction.
#
def collect2(v) # :yield: e1, e2
+ raise TypeError, "Integer is not like Vector" if v.kind_of?(Integer)
Vector.Raise ErrDimensionMismatch if size != v.size
- (0 .. size - 1).collect do |i|
+ return to_enum(:collect2, v) unless block_given?
+ Array.new(size) do |i|
yield @elements[i], v[i]
end
end
@@ -1176,20 +1642,12 @@ class Vector
#
def ==(other)
return false unless Vector === other
-
- other.compare_by(@elements)
+ @elements == other.elements
end
+
def eql?(other)
return false unless Vector === other
-
- other.compare_by(@elements, :eql?)
- end
-
- #
- # For internal use.
- #
- def compare_by(elements, comparison = :==)
- @elements.send(comparison, elements)
+ @elements.eql? other.elements
end
#
@@ -1220,9 +1678,10 @@ class Vector
Vector.elements(els, false)
when Matrix
Matrix.column_vector(self) * x
+ when Vector
+ Vector.Raise ErrOperationNotDefined, "*", self.class, x.class
else
- s, x = x.coerce(self)
- s * x
+ apply_through_coercion(x, __method__)
end
end
@@ -1240,8 +1699,7 @@ class Vector
when Matrix
Matrix.column_vector(self) + v
else
- s, x = v.coerce(self)
- s + x
+ apply_through_coercion(v, __method__)
end
end
@@ -1259,8 +1717,22 @@ class Vector
when Matrix
Matrix.column_vector(self) - v
else
- s, x = v.coerce(self)
- s - x
+ apply_through_coercion(v, __method__)
+ end
+ end
+
+ #
+ # Vector division.
+ #
+ def /(x)
+ case x
+ when Numeric
+ els = @elements.collect{|e| e / x}
+ Vector.elements(els, false)
+ when Matrix, Vector
+ Vector.Raise ErrOperationNotDefined, "/", self.class, x.class
+ else
+ apply_through_coercion(x, __method__)
end
end
@@ -1285,34 +1757,44 @@ class Vector
#
# Like Array#collect.
#
- def collect # :yield: e
- els = @elements.collect {|v|
- yield v
- }
+ def collect(&block) # :yield: e
+ return to_enum(:collect) unless block_given?
+ els = @elements.collect(&block)
Vector.elements(els, false)
end
alias map collect
#
+ # Returns the modulus (Pythagorean distance) of the vector.
+ # Vector[5,8,2].r => 9.643650761
+ #
+ def magnitude
+ Math.sqrt(@elements.inject(0) {|v, e| v + e*e})
+ end
+ alias r magnitude
+ alias norm magnitude
+
+ #
# Like Vector#collect2, but returns a Vector instead of an Array.
#
- def map2(v) # :yield: e1, e2
- els = collect2(v) {|v1, v2|
- yield v1, v2
- }
+ def map2(v, &block) # :yield: e1, e2
+ return to_enum(:map2, v) unless block_given?
+ els = collect2(v, &block)
Vector.elements(els, false)
end
+ class ZeroVectorError < StandardError
+ end
#
- # Returns the modulus (Pythagorean distance) of the vector.
- # Vector[5,8,2].r => 9.643650761
+ # Returns a new vector with the same direction but with norm 1.
+ # v = Vector[5,8,2].normalize
+ # # => Vector[0.5184758473652127, 0.8295613557843402, 0.20739033894608505]
+ # v.norm => 1.0
#
- def r
- v = 0
- for e in @elements
- v += e*e
- end
- return Math.sqrt(v)
+ def normalize
+ n = magnitude
+ raise ZeroVectorError, "Zero vectors can not be normalized" if n == 0
+ self / n
end
#--
@@ -1334,19 +1816,26 @@ class Vector
end
def elements_to_f
- collect{|e| e.to_f}
+ warn "#{caller(1)[0]}: warning: Vector#elements_to_f is deprecated"
+ map(&:to_f)
end
def elements_to_i
- collect{|e| e.to_i}
+ warn "#{caller(1)[0]}: warning: Vector#elements_to_i is deprecated"
+ map(&:to_i)
end
def elements_to_r
- collect{|e| e.to_r}
+ warn "#{caller(1)[0]}: warning: Vector#elements_to_r is deprecated"
+ map(&:to_r)
end
#
- # FIXME: describe Vector#coerce.
+ # The coerce method provides support for Ruby type coercion.
+ # This coercion mechanism is used by Ruby to handle mixed-type
+ # numeric operations: it is intended to find a compatible common
+ # type between the two operands of the operator.
+ # See also Numeric#coerce.
#
def coerce(other)
case other
@@ -1372,10 +1861,6 @@ class Vector
# Overrides Object#inspect
#
def inspect
- str = "Vector"+@elements.inspect
+ "Vector" + @elements.inspect
end
end
-
-
-# Documentation comments:
-# - Matrix#coerce and Vector#coerce need to be documented
diff --git a/lib/matrix/eigenvalue_decomposition.rb b/lib/matrix/eigenvalue_decomposition.rb
new file mode 100644
index 0000000000..55e41aaf7c
--- /dev/null
+++ b/lib/matrix/eigenvalue_decomposition.rb
@@ -0,0 +1,886 @@
+class Matrix
+ # Adapted from JAMA: http://math.nist.gov/javanumerics/jama/
+
+ # Eigenvalues and eigenvectors of a real matrix.
+ #
+ # Computes the eigenvalues and eigenvectors of a matrix A.
+ #
+ # If A is diagonalizable, this provides matrices V and D
+ # such that A = V*D*V.inv, where D is the diagonal matrix with entries
+ # equal to the eigenvalues and V is formed by the eigenvectors.
+ #
+ # If A is symmetric, then V is orthogonal and thus A = V*D*V.t
+
+ class EigenvalueDecomposition
+
+ # Constructs the eigenvalue decomposition for a square matrix +A+
+ #
+ def initialize(a)
+ # @d, @e: Arrays for internal storage of eigenvalues.
+ # @v: Array for internal storage of eigenvectors.
+ # @h: Array for internal storage of nonsymmetric Hessenberg form.
+ raise TypeError, "Expected Matrix but got #{a.class}" unless a.is_a?(Matrix)
+ @size = a.row_size
+ @d = Array.new(@size, 0)
+ @e = Array.new(@size, 0)
+
+ if (@symmetric = a.symmetric?)
+ @v = a.to_a
+ tridiagonalize
+ diagonalize
+ else
+ @v = Array.new(@size) { Array.new(@size, 0) }
+ @h = a.to_a
+ @ort = Array.new(@size, 0)
+ reduce_to_hessenberg
+ hessenberg_to_real_schur
+ end
+ end
+
+ # Returns the eigenvector matrix +V+
+ #
+ def eigenvector_matrix
+ Matrix.send :new, build_eigenvectors.transpose
+ end
+ alias v eigenvector_matrix
+
+ # Returns the inverse of the eigenvector matrix +V+
+ #
+ def eigenvector_matrix_inv
+ r = Matrix.send :new, build_eigenvectors
+ r = r.transpose.inverse unless @symmetric
+ r
+ end
+ alias v_inv eigenvector_matrix_inv
+
+ # Returns the eigenvalues in an array
+ #
+ def eigenvalues
+ values = @d.dup
+ @e.each_with_index{|imag, i| values[i] = Complex(values[i], imag) unless imag == 0}
+ values
+ end
+
+ # Returns an array of the eigenvectors
+ #
+ def eigenvectors
+ build_eigenvectors.map{|ev| Vector.send :new, ev}
+ end
+
+ # Returns the block diagonal eigenvalue matrix +D+
+ #
+ def eigenvalue_matrix
+ Matrix.diagonal(*eigenvalues)
+ end
+ alias d eigenvalue_matrix
+
+ # Returns [eigenvector_matrix, eigenvalue_matrix, eigenvector_matrix_inv]
+ #
+ def to_ary
+ [v, d, v_inv]
+ end
+ alias_method :to_a, :to_ary
+
+ private
+ def build_eigenvectors
+ # JAMA stores complex eigenvectors in a strange way
+ # See http://cio.nist.gov/esd/emaildir/lists/jama/msg01021.html
+ @e.each_with_index.map do |imag, i|
+ if imag == 0
+ Array.new(@size){|j| @v[j][i]}
+ elsif imag > 0
+ Array.new(@size){|j| Complex(@v[j][i], @v[j][i+1])}
+ else
+ Array.new(@size){|j| Complex(@v[j][i], -@v[j][i-1])}
+ end
+ end
+ end
+ # Complex scalar division.
+
+ def cdiv(xr, xi, yr, yi)
+ if (yr.abs > yi.abs)
+ r = yi/yr
+ d = yr + r*yi
+ [(xr + r*xi)/d, (xi - r*xr)/d]
+ else
+ r = yr/yi
+ d = yi + r*yr
+ [(r*xr + xi)/d, (r*xi - xr)/d]
+ end
+ end
+
+
+ # Symmetric Householder reduction to tridiagonal form.
+
+ def tridiagonalize
+
+ # This is derived from the Algol procedures tred2 by
+ # Bowdler, Martin, Reinsch, and Wilkinson, Handbook for
+ # Auto. Comp., Vol.ii-Linear Algebra, and the corresponding
+ # Fortran subroutine in EISPACK.
+
+ @size.times do |j|
+ @d[j] = @v[@size-1][j]
+ end
+
+ # Householder reduction to tridiagonal form.
+
+ (@size-1).downto(0+1) do |i|
+
+ # Scale to avoid under/overflow.
+
+ scale = 0.0
+ h = 0.0
+ i.times do |k|
+ scale = scale + @d[k].abs
+ end
+ if (scale == 0.0)
+ @e[i] = @d[i-1]
+ i.times do |j|
+ @d[j] = @v[i-1][j]
+ @v[i][j] = 0.0
+ @v[j][i] = 0.0
+ end
+ else
+
+ # Generate Householder vector.
+
+ i.times do |k|
+ @d[k] /= scale
+ h += @d[k] * @d[k]
+ end
+ f = @d[i-1]
+ g = Math.sqrt(h)
+ if (f > 0)
+ g = -g
+ end
+ @e[i] = scale * g
+ h -= f * g
+ @d[i-1] = f - g
+ i.times do |j|
+ @e[j] = 0.0
+ end
+
+ # Apply similarity transformation to remaining columns.
+
+ i.times do |j|
+ f = @d[j]
+ @v[j][i] = f
+ g = @e[j] + @v[j][j] * f
+ (j+1).upto(i-1) do |k|
+ g += @v[k][j] * @d[k]
+ @e[k] += @v[k][j] * f
+ end
+ @e[j] = g
+ end
+ f = 0.0
+ i.times do |j|
+ @e[j] /= h
+ f += @e[j] * @d[j]
+ end
+ hh = f / (h + h)
+ i.times do |j|
+ @e[j] -= hh * @d[j]
+ end
+ i.times do |j|
+ f = @d[j]
+ g = @e[j]
+ j.upto(i-1) do |k|
+ @v[k][j] -= (f * @e[k] + g * @d[k])
+ end
+ @d[j] = @v[i-1][j]
+ @v[i][j] = 0.0
+ end
+ end
+ @d[i] = h
+ end
+
+ # Accumulate transformations.
+
+ 0.upto(@size-1-1) do |i|
+ @v[@size-1][i] = @v[i][i]
+ @v[i][i] = 1.0
+ h = @d[i+1]
+ if (h != 0.0)
+ 0.upto(i) do |k|
+ @d[k] = @v[k][i+1] / h
+ end
+ 0.upto(i) do |j|
+ g = 0.0
+ 0.upto(i) do |k|
+ g += @v[k][i+1] * @v[k][j]
+ end
+ 0.upto(i) do |k|
+ @v[k][j] -= g * @d[k]
+ end
+ end
+ end
+ 0.upto(i) do |k|
+ @v[k][i+1] = 0.0
+ end
+ end
+ @size.times do |j|
+ @d[j] = @v[@size-1][j]
+ @v[@size-1][j] = 0.0
+ end
+ @v[@size-1][@size-1] = 1.0
+ @e[0] = 0.0
+ end
+
+
+ # Symmetric tridiagonal QL algorithm.
+
+ def diagonalize
+ # This is derived from the Algol procedures tql2, by
+ # Bowdler, Martin, Reinsch, and Wilkinson, Handbook for
+ # Auto. Comp., Vol.ii-Linear Algebra, and the corresponding
+ # Fortran subroutine in EISPACK.
+
+ 1.upto(@size-1) do |i|
+ @e[i-1] = @e[i]
+ end
+ @e[@size-1] = 0.0
+
+ f = 0.0
+ tst1 = 0.0
+ eps = Float::EPSILON
+ @size.times do |l|
+
+ # Find small subdiagonal element
+
+ tst1 = [tst1, @d[l].abs + @e[l].abs].max
+ m = l
+ while (m < @size) do
+ if (@e[m].abs <= eps*tst1)
+ break
+ end
+ m+=1
+ end
+
+ # If m == l, @d[l] is an eigenvalue,
+ # otherwise, iterate.
+
+ if (m > l)
+ iter = 0
+ begin
+ iter = iter + 1 # (Could check iteration count here.)
+
+ # Compute implicit shift
+
+ g = @d[l]
+ p = (@d[l+1] - g) / (2.0 * @e[l])
+ r = Math.hypot(p, 1.0)
+ if (p < 0)
+ r = -r
+ end
+ @d[l] = @e[l] / (p + r)
+ @d[l+1] = @e[l] * (p + r)
+ dl1 = @d[l+1]
+ h = g - @d[l]
+ (l+2).upto(@size-1) do |i|
+ @d[i] -= h
+ end
+ f += h
+
+ # Implicit QL transformation.
+
+ p = @d[m]
+ c = 1.0
+ c2 = c
+ c3 = c
+ el1 = @e[l+1]
+ s = 0.0
+ s2 = 0.0
+ (m-1).downto(l) do |i|
+ c3 = c2
+ c2 = c
+ s2 = s
+ g = c * @e[i]
+ h = c * p
+ r = Math.hypot(p, @e[i])
+ @e[i+1] = s * r
+ s = @e[i] / r
+ c = p / r
+ p = c * @d[i] - s * g
+ @d[i+1] = h + s * (c * g + s * @d[i])
+
+ # Accumulate transformation.
+
+ @size.times do |k|
+ h = @v[k][i+1]
+ @v[k][i+1] = s * @v[k][i] + c * h
+ @v[k][i] = c * @v[k][i] - s * h
+ end
+ end
+ p = -s * s2 * c3 * el1 * @e[l] / dl1
+ @e[l] = s * p
+ @d[l] = c * p
+
+ # Check for convergence.
+
+ end while (@e[l].abs > eps*tst1)
+ end
+ @d[l] = @d[l] + f
+ @e[l] = 0.0
+ end
+
+ # Sort eigenvalues and corresponding vectors.
+
+ 0.upto(@size-2) do |i|
+ k = i
+ p = @d[i]
+ (i+1).upto(@size-1) do |j|
+ if (@d[j] < p)
+ k = j
+ p = @d[j]
+ end
+ end
+ if (k != i)
+ @d[k] = @d[i]
+ @d[i] = p
+ @size.times do |j|
+ p = @v[j][i]
+ @v[j][i] = @v[j][k]
+ @v[j][k] = p
+ end
+ end
+ end
+ end
+
+ # Nonsymmetric reduction to Hessenberg form.
+
+ def reduce_to_hessenberg
+ # This is derived from the Algol procedures orthes and ortran,
+ # by Martin and Wilkinson, Handbook for Auto. Comp.,
+ # Vol.ii-Linear Algebra, and the corresponding
+ # Fortran subroutines in EISPACK.
+
+ low = 0
+ high = @size-1
+
+ (low+1).upto(high-1) do |m|
+
+ # Scale column.
+
+ scale = 0.0
+ m.upto(high) do |i|
+ scale = scale + @h[i][m-1].abs
+ end
+ if (scale != 0.0)
+
+ # Compute Householder transformation.
+
+ h = 0.0
+ high.downto(m) do |i|
+ @ort[i] = @h[i][m-1]/scale
+ h += @ort[i] * @ort[i]
+ end
+ g = Math.sqrt(h)
+ if (@ort[m] > 0)
+ g = -g
+ end
+ h -= @ort[m] * g
+ @ort[m] = @ort[m] - g
+
+ # Apply Householder similarity transformation
+ # @h = (I-u*u'/h)*@h*(I-u*u')/h)
+
+ m.upto(@size-1) do |j|
+ f = 0.0
+ high.downto(m) do |i|
+ f += @ort[i]*@h[i][j]
+ end
+ f = f/h
+ m.upto(high) do |i|
+ @h[i][j] -= f*@ort[i]
+ end
+ end
+
+ 0.upto(high) do |i|
+ f = 0.0
+ high.downto(m) do |j|
+ f += @ort[j]*@h[i][j]
+ end
+ f = f/h
+ m.upto(high) do |j|
+ @h[i][j] -= f*@ort[j]
+ end
+ end
+ @ort[m] = scale*@ort[m]
+ @h[m][m-1] = scale*g
+ end
+ end
+
+ # Accumulate transformations (Algol's ortran).
+
+ @size.times do |i|
+ @size.times do |j|
+ @v[i][j] = (i == j ? 1.0 : 0.0)
+ end
+ end
+
+ (high-1).downto(low+1) do |m|
+ if (@h[m][m-1] != 0.0)
+ (m+1).upto(high) do |i|
+ @ort[i] = @h[i][m-1]
+ end
+ m.upto(high) do |j|
+ g = 0.0
+ m.upto(high) do |i|
+ g += @ort[i] * @v[i][j]
+ end
+ # Double division avoids possible underflow
+ g = (g / @ort[m]) / @h[m][m-1]
+ m.upto(high) do |i|
+ @v[i][j] += g * @ort[i]
+ end
+ end
+ end
+ end
+ end
+
+
+
+ # Nonsymmetric reduction from Hessenberg to real Schur form.
+
+ def hessenberg_to_real_schur
+
+ # This is derived from the Algol procedure hqr2,
+ # by Martin and Wilkinson, Handbook for Auto. Comp.,
+ # Vol.ii-Linear Algebra, and the corresponding
+ # Fortran subroutine in EISPACK.
+
+ # Initialize
+
+ nn = @size
+ n = nn-1
+ low = 0
+ high = nn-1
+ eps = Float::EPSILON
+ exshift = 0.0
+ p=q=r=s=z=0
+
+ # Store roots isolated by balanc and compute matrix norm
+
+ norm = 0.0
+ nn.times do |i|
+ if (i < low || i > high)
+ @d[i] = @h[i][i]
+ @e[i] = 0.0
+ end
+ ([i-1, 0].max).upto(nn-1) do |j|
+ norm = norm + @h[i][j].abs
+ end
+ end
+
+ # Outer loop over eigenvalue index
+
+ iter = 0
+ while (n >= low) do
+
+ # Look for single small sub-diagonal element
+
+ l = n
+ while (l > low) do
+ s = @h[l-1][l-1].abs + @h[l][l].abs
+ if (s == 0.0)
+ s = norm
+ end
+ if (@h[l][l-1].abs < eps * s)
+ break
+ end
+ l-=1
+ end
+
+ # Check for convergence
+ # One root found
+
+ if (l == n)
+ @h[n][n] = @h[n][n] + exshift
+ @d[n] = @h[n][n]
+ @e[n] = 0.0
+ n-=1
+ iter = 0
+
+ # Two roots found
+
+ elsif (l == n-1)
+ w = @h[n][n-1] * @h[n-1][n]
+ p = (@h[n-1][n-1] - @h[n][n]) / 2.0
+ q = p * p + w
+ z = Math.sqrt(q.abs)
+ @h[n][n] = @h[n][n] + exshift
+ @h[n-1][n-1] = @h[n-1][n-1] + exshift
+ x = @h[n][n]
+
+ # Real pair
+
+ if (q >= 0)
+ if (p >= 0)
+ z = p + z
+ else
+ z = p - z
+ end
+ @d[n-1] = x + z
+ @d[n] = @d[n-1]
+ if (z != 0.0)
+ @d[n] = x - w / z
+ end
+ @e[n-1] = 0.0
+ @e[n] = 0.0
+ x = @h[n][n-1]
+ s = x.abs + z.abs
+ p = x / s
+ q = z / s
+ r = Math.sqrt(p * p+q * q)
+ p /= r
+ q /= r
+
+ # Row modification
+
+ (n-1).upto(nn-1) do |j|
+ z = @h[n-1][j]
+ @h[n-1][j] = q * z + p * @h[n][j]
+ @h[n][j] = q * @h[n][j] - p * z
+ end
+
+ # Column modification
+
+ 0.upto(n) do |i|
+ z = @h[i][n-1]
+ @h[i][n-1] = q * z + p * @h[i][n]
+ @h[i][n] = q * @h[i][n] - p * z
+ end
+
+ # Accumulate transformations
+
+ low.upto(high) do |i|
+ z = @v[i][n-1]
+ @v[i][n-1] = q * z + p * @v[i][n]
+ @v[i][n] = q * @v[i][n] - p * z
+ end
+
+ # Complex pair
+
+ else
+ @d[n-1] = x + p
+ @d[n] = x + p
+ @e[n-1] = z
+ @e[n] = -z
+ end
+ n -= 2
+ iter = 0
+
+ # No convergence yet
+
+ else
+
+ # Form shift
+
+ x = @h[n][n]
+ y = 0.0
+ w = 0.0
+ if (l < n)
+ y = @h[n-1][n-1]
+ w = @h[n][n-1] * @h[n-1][n]
+ end
+
+ # Wilkinson's original ad hoc shift
+
+ if (iter == 10)
+ exshift += x
+ low.upto(n) do |i|
+ @h[i][i] -= x
+ end
+ s = @h[n][n-1].abs + @h[n-1][n-2].abs
+ x = y = 0.75 * s
+ w = -0.4375 * s * s
+ end
+
+ # MATLAB's new ad hoc shift
+
+ if (iter == 30)
+ s = (y - x) / 2.0
+ s *= s + w
+ if (s > 0)
+ s = Math.sqrt(s)
+ if (y < x)
+ s = -s
+ end
+ s = x - w / ((y - x) / 2.0 + s)
+ low.upto(n) do |i|
+ @h[i][i] -= s
+ end
+ exshift += s
+ x = y = w = 0.964
+ end
+ end
+
+ iter = iter + 1 # (Could check iteration count here.)
+
+ # Look for two consecutive small sub-diagonal elements
+
+ m = n-2
+ while (m >= l) do
+ z = @h[m][m]
+ r = x - z
+ s = y - z
+ p = (r * s - w) / @h[m+1][m] + @h[m][m+1]
+ q = @h[m+1][m+1] - z - r - s
+ r = @h[m+2][m+1]
+ s = p.abs + q.abs + r.abs
+ p /= s
+ q /= s
+ r /= s
+ if (m == l)
+ break
+ end
+ if (@h[m][m-1].abs * (q.abs + r.abs) <
+ eps * (p.abs * (@h[m-1][m-1].abs + z.abs +
+ @h[m+1][m+1].abs)))
+ break
+ end
+ m-=1
+ end
+
+ (m+2).upto(n) do |i|
+ @h[i][i-2] = 0.0
+ if (i > m+2)
+ @h[i][i-3] = 0.0
+ end
+ end
+
+ # Double QR step involving rows l:n and columns m:n
+
+ m.upto(n-1) do |k|
+ notlast = (k != n-1)
+ if (k != m)
+ p = @h[k][k-1]
+ q = @h[k+1][k-1]
+ r = (notlast ? @h[k+2][k-1] : 0.0)
+ x = p.abs + q.abs + r.abs
+ if (x != 0.0)
+ p /= x
+ q /= x
+ r /= x
+ end
+ end
+ if (x == 0.0)
+ break
+ end
+ s = Math.sqrt(p * p + q * q + r * r)
+ if (p < 0)
+ s = -s
+ end
+ if (s != 0)
+ if (k != m)
+ @h[k][k-1] = -s * x
+ elsif (l != m)
+ @h[k][k-1] = -@h[k][k-1]
+ end
+ p += s
+ x = p / s
+ y = q / s
+ z = r / s
+ q /= p
+ r /= p
+
+ # Row modification
+
+ k.upto(nn-1) do |j|
+ p = @h[k][j] + q * @h[k+1][j]
+ if (notlast)
+ p += r * @h[k+2][j]
+ @h[k+2][j] = @h[k+2][j] - p * z
+ end
+ @h[k][j] = @h[k][j] - p * x
+ @h[k+1][j] = @h[k+1][j] - p * y
+ end
+
+ # Column modification
+
+ 0.upto([n, k+3].min) do |i|
+ p = x * @h[i][k] + y * @h[i][k+1]
+ if (notlast)
+ p += z * @h[i][k+2]
+ @h[i][k+2] = @h[i][k+2] - p * r
+ end
+ @h[i][k] = @h[i][k] - p
+ @h[i][k+1] = @h[i][k+1] - p * q
+ end
+
+ # Accumulate transformations
+
+ low.upto(high) do |i|
+ p = x * @v[i][k] + y * @v[i][k+1]
+ if (notlast)
+ p += z * @v[i][k+2]
+ @v[i][k+2] = @v[i][k+2] - p * r
+ end
+ @v[i][k] = @v[i][k] - p
+ @v[i][k+1] = @v[i][k+1] - p * q
+ end
+ end # (s != 0)
+ end # k loop
+ end # check convergence
+ end # while (n >= low)
+
+ # Backsubstitute to find vectors of upper triangular form
+
+ if (norm == 0.0)
+ return
+ end
+
+ (nn-1).downto(0) do |n|
+ p = @d[n]
+ q = @e[n]
+
+ # Real vector
+
+ if (q == 0)
+ l = n
+ @h[n][n] = 1.0
+ (n-1).downto(0) do |i|
+ w = @h[i][i] - p
+ r = 0.0
+ l.upto(n) do |j|
+ r += @h[i][j] * @h[j][n]
+ end
+ if (@e[i] < 0.0)
+ z = w
+ s = r
+ else
+ l = i
+ if (@e[i] == 0.0)
+ if (w != 0.0)
+ @h[i][n] = -r / w
+ else
+ @h[i][n] = -r / (eps * norm)
+ end
+
+ # Solve real equations
+
+ else
+ x = @h[i][i+1]
+ y = @h[i+1][i]
+ q = (@d[i] - p) * (@d[i] - p) + @e[i] * @e[i]
+ t = (x * s - z * r) / q
+ @h[i][n] = t
+ if (x.abs > z.abs)
+ @h[i+1][n] = (-r - w * t) / x
+ else
+ @h[i+1][n] = (-s - y * t) / z
+ end
+ end
+
+ # Overflow control
+
+ t = @h[i][n].abs
+ if ((eps * t) * t > 1)
+ i.upto(n) do |j|
+ @h[j][n] = @h[j][n] / t
+ end
+ end
+ end
+ end
+
+ # Complex vector
+
+ elsif (q < 0)
+ l = n-1
+
+ # Last vector component imaginary so matrix is triangular
+
+ if (@h[n][n-1].abs > @h[n-1][n].abs)
+ @h[n-1][n-1] = q / @h[n][n-1]
+ @h[n-1][n] = -(@h[n][n] - p) / @h[n][n-1]
+ else
+ cdivr, cdivi = cdiv(0.0, -@h[n-1][n], @h[n-1][n-1]-p, q)
+ @h[n-1][n-1] = cdivr
+ @h[n-1][n] = cdivi
+ end
+ @h[n][n-1] = 0.0
+ @h[n][n] = 1.0
+ (n-2).downto(0) do |i|
+ ra = 0.0
+ sa = 0.0
+ l.upto(n) do |j|
+ ra = ra + @h[i][j] * @h[j][n-1]
+ sa = sa + @h[i][j] * @h[j][n]
+ end
+ w = @h[i][i] - p
+
+ if (@e[i] < 0.0)
+ z = w
+ r = ra
+ s = sa
+ else
+ l = i
+ if (@e[i] == 0)
+ cdivr, cdivi = cdiv(-ra, -sa, w, q)
+ @h[i][n-1] = cdivr
+ @h[i][n] = cdivi
+ else
+
+ # Solve complex equations
+
+ x = @h[i][i+1]
+ y = @h[i+1][i]
+ vr = (@d[i] - p) * (@d[i] - p) + @e[i] * @e[i] - q * q
+ vi = (@d[i] - p) * 2.0 * q
+ if (vr == 0.0 && vi == 0.0)
+ vr = eps * norm * (w.abs + q.abs +
+ x.abs + y.abs + z.abs)
+ end
+ cdivr, cdivi = cdiv(x*r-z*ra+q*sa, x*s-z*sa-q*ra, vr, vi)
+ @h[i][n-1] = cdivr
+ @h[i][n] = cdivi
+ if (x.abs > (z.abs + q.abs))
+ @h[i+1][n-1] = (-ra - w * @h[i][n-1] + q * @h[i][n]) / x
+ @h[i+1][n] = (-sa - w * @h[i][n] - q * @h[i][n-1]) / x
+ else
+ cdivr, cdivi = cdiv(-r-y*@h[i][n-1], -s-y*@h[i][n], z, q)
+ @h[i+1][n-1] = cdivr
+ @h[i+1][n] = cdivi
+ end
+ end
+
+ # Overflow control
+
+ t = [@h[i][n-1].abs, @h[i][n].abs].max
+ if ((eps * t) * t > 1)
+ i.upto(n) do |j|
+ @h[j][n-1] = @h[j][n-1] / t
+ @h[j][n] = @h[j][n] / t
+ end
+ end
+ end
+ end
+ end
+ end
+
+ # Vectors of isolated roots
+
+ nn.times do |i|
+ if (i < low || i > high)
+ i.upto(nn-1) do |j|
+ @v[i][j] = @h[i][j]
+ end
+ end
+ end
+
+ # Back transformation to get eigenvectors of original matrix
+
+ (nn-1).downto(low) do |j|
+ low.upto(high) do |i|
+ z = 0.0
+ low.upto([j, high].min) do |k|
+ z += @v[i][k] * @h[k][j]
+ end
+ @v[i][j] = z
+ end
+ end
+ end
+
+ end
+end
diff --git a/lib/matrix/lup_decomposition.rb b/lib/matrix/lup_decomposition.rb
new file mode 100644
index 0000000000..8f5aac2e5a
--- /dev/null
+++ b/lib/matrix/lup_decomposition.rb
@@ -0,0 +1,218 @@
+class Matrix
+ # Adapted from JAMA: http://math.nist.gov/javanumerics/jama/
+
+ #
+ # For an m-by-n matrix A with m >= n, the LU decomposition is an m-by-n
+ # unit lower triangular matrix L, an n-by-n upper triangular matrix U,
+ # and a m-by-m permutation matrix P so that L*U = P*A.
+ # If m < n, then L is m-by-m and U is m-by-n.
+ #
+ # The LUP decomposition with pivoting always exists, even if the matrix is
+ # singular, so the constructor will never fail. The primary use of the
+ # LU decomposition is in the solution of square systems of simultaneous
+ # linear equations. This will fail if singular? returns true.
+ #
+
+ class LUPDecomposition
+ # Returns the lower triangular factor +L+
+
+ include Matrix::ConversionHelper
+
+ def l
+ Matrix.build(@row_size, @col_size) do |i, j|
+ if (i > j)
+ @lu[i][j]
+ elsif (i == j)
+ 1
+ else
+ 0
+ end
+ end
+ end
+
+ # Returns the upper triangular factor +U+
+
+ def u
+ Matrix.build(@col_size, @col_size) do |i, j|
+ if (i <= j)
+ @lu[i][j]
+ else
+ 0
+ end
+ end
+ end
+
+ # Returns the permutation matrix +P+
+
+ def p
+ rows = Array.new(@row_size){Array.new(@col_size, 0)}
+ @pivots.each_with_index{|p, i| rows[i][p] = 1}
+ Matrix.send :new, rows, @col_size
+ end
+
+ # Returns +L+, +U+, +P+ in an array
+
+ def to_ary
+ [l, u, p]
+ end
+ alias_method :to_a, :to_ary
+
+ # Returns the pivoting indices
+
+ attr_reader :pivots
+
+ # Returns +true+ if +U+, and hence +A+, is singular.
+
+ def singular? ()
+ @col_size.times do |j|
+ if (@lu[j][j] == 0)
+ return true
+ end
+ end
+ false
+ end
+
+ # Returns the determinant of +A+, calculated efficiently
+ # from the factorization.
+
+ def det
+ if (@row_size != @col_size)
+ Matrix.Raise Matrix::ErrDimensionMismatch unless square?
+ end
+ d = @pivot_sign
+ @col_size.times do |j|
+ d *= @lu[j][j]
+ end
+ d
+ end
+ alias_method :determinant, :det
+
+ # Returns +m+ so that <tt>A*m = b</tt>,
+ # or equivalently so that <tt>L*U*m = P*b</tt>
+ # +b+ can be a Matrix or a Vector
+
+ def solve b
+ if (singular?)
+ Matrix.Raise Matrix::ErrNotRegular, "Matrix is singular."
+ end
+ if b.is_a? Matrix
+ if (b.row_size != @row_size)
+ Matrix.Raise Matrix::ErrDimensionMismatch
+ end
+
+ # Copy right hand side with pivoting
+ nx = b.column_size
+ m = @pivots.map{|row| b.row(row).to_a}
+
+ # Solve L*Y = P*b
+ @col_size.times do |k|
+ (k+1).upto(@col_size-1) do |i|
+ nx.times do |j|
+ m[i][j] -= m[k][j]*@lu[i][k]
+ end
+ end
+ end
+ # Solve U*m = Y
+ (@col_size-1).downto(0) do |k|
+ nx.times do |j|
+ m[k][j] = m[k][j].quo(@lu[k][k])
+ end
+ k.times do |i|
+ nx.times do |j|
+ m[i][j] -= m[k][j]*@lu[i][k]
+ end
+ end
+ end
+ Matrix.send :new, m, nx
+ else # same algorithm, specialized for simpler case of a vector
+ b = convert_to_array(b)
+ if (b.size != @row_size)
+ Matrix.Raise Matrix::ErrDimensionMismatch
+ end
+
+ # Copy right hand side with pivoting
+ m = b.values_at(*@pivots)
+
+ # Solve L*Y = P*b
+ @col_size.times do |k|
+ (k+1).upto(@col_size-1) do |i|
+ m[i] -= m[k]*@lu[i][k]
+ end
+ end
+ # Solve U*m = Y
+ (@col_size-1).downto(0) do |k|
+ m[k] = m[k].quo(@lu[k][k])
+ k.times do |i|
+ m[i] -= m[k]*@lu[i][k]
+ end
+ end
+ Vector.elements(m, false)
+ end
+ end
+
+ def initialize a
+ raise TypeError, "Expected Matrix but got #{a.class}" unless a.is_a?(Matrix)
+ # Use a "left-looking", dot-product, Crout/Doolittle algorithm.
+ @lu = a.to_a
+ @row_size = a.row_size
+ @col_size = a.column_size
+ @pivots = Array.new(@row_size)
+ @row_size.times do |i|
+ @pivots[i] = i
+ end
+ @pivot_sign = 1
+ lu_col_j = Array.new(@row_size)
+
+ # Outer loop.
+
+ @col_size.times do |j|
+
+ # Make a copy of the j-th column to localize references.
+
+ @row_size.times do |i|
+ lu_col_j[i] = @lu[i][j]
+ end
+
+ # Apply previous transformations.
+
+ @row_size.times do |i|
+ lu_row_i = @lu[i]
+
+ # Most of the time is spent in the following dot product.
+
+ kmax = [i, j].min
+ s = 0
+ kmax.times do |k|
+ s += lu_row_i[k]*lu_col_j[k]
+ end
+
+ lu_row_i[j] = lu_col_j[i] -= s
+ end
+
+ # Find pivot and exchange if necessary.
+
+ p = j
+ (j+1).upto(@row_size-1) do |i|
+ if (lu_col_j[i].abs > lu_col_j[p].abs)
+ p = i
+ end
+ end
+ if (p != j)
+ @col_size.times do |k|
+ t = @lu[p][k]; @lu[p][k] = @lu[j][k]; @lu[j][k] = t
+ end
+ k = @pivots[p]; @pivots[p] = @pivots[j]; @pivots[j] = k
+ @pivot_sign = -@pivot_sign
+ end
+
+ # Compute multipliers.
+
+ if (j < @row_size && @lu[j][j] != 0)
+ (j+1).upto(@row_size-1) do |i|
+ @lu[i][j] = @lu[i][j].quo(@lu[j][j])
+ end
+ end
+ end
+ end
+ end
+end
diff --git a/lib/minitest/README.txt b/lib/minitest/README.txt
new file mode 100644
index 0000000000..7b1e6e681f
--- /dev/null
+++ b/lib/minitest/README.txt
@@ -0,0 +1,269 @@
+= minitest/*
+
+* http://rubyforge.org/projects/bfts
+
+== DESCRIPTION:
+
+minitest provides a complete suite of testing facilities supporting
+TDD, BDD, mocking, and benchmarking.
+
+minitest/unit is a small and incredibly fast unit testing framework.
+It provides a rich set of assertions to make your tests clean and
+readable.
+
+minitest/spec is a functionally complete spec engine. It hooks onto
+minitest/unit and seamlessly bridges test assertions over to spec
+expectations.
+
+minitest/benchmark is an awesome way to assert the performance of your
+algorithms in a repeatable manner. Now you can assert that your newb
+co-worker doesn't replace your linear algorithm with an exponential
+one!
+
+minitest/mock by Steven Baker, is a beautifully tiny mock object
+framework.
+
+minitest/pride shows pride in testing and adds coloring to your test
+output.
+
+minitest/unit is meant to have a clean implementation for language
+implementors that need a minimal set of methods to bootstrap a working
+test suite. For example, there is no magic involved for test-case
+discovery.
+
+== FEATURES/PROBLEMS:
+
+* minitest/autorun - the easy and explicit way to run all your tests.
+* minitest/unit - a very fast, simple, and clean test system.
+* minitest/spec - a very fast, simple, and clean spec system.
+* minitest/mock - a simple and clean mock system.
+* minitest/benchmark - an awesome way to assert your algorithm's performance.
+* minitest/pride - show your pride in testing!
+* Incredibly small and fast runner, but no bells and whistles.
+
+== RATIONALE:
+
+See design_rationale.rb to see how specs and tests work in minitest.
+
+== SYNOPSIS:
+
+Given that you'd like to test the following class:
+
+ class Meme
+ def i_can_has_cheezburger?
+ "OHAI!"
+ end
+
+ def will_it_blend?
+ "YES!"
+ end
+ end
+
+=== Unit tests
+
+ require 'minitest/autorun'
+
+ class TestMeme < MiniTest::Unit::TestCase
+ def setup
+ @meme = Meme.new
+ end
+
+ def test_that_kitty_can_eat
+ assert_equal "OHAI!", @meme.i_can_has_cheezburger?
+ end
+
+ def test_that_it_will_not_blend
+ refute_match /^no/i, @meme.will_it_blend?
+ end
+ end
+
+=== Specs
+
+ require 'minitest/autorun'
+
+ describe Meme do
+ before do
+ @meme = Meme.new
+ end
+
+ describe "when asked about cheeseburgers" do
+ it "must respond positively" do
+ @meme.i_can_has_cheezburger?.must_equal "OHAI!"
+ end
+ end
+
+ describe "when asked about blending possibilities" do
+ it "won't say no" do
+ @meme.will_it_blend?.wont_match /^no/i
+ end
+ end
+ end
+
+=== Benchmarks
+
+Add benchmarks to your regular unit tests. If the unit tests fail, the
+benchmarks won't run.
+
+ # optionally run benchmarks, good for CI-only work!
+ require 'minitest/benchmark' if ENV["BENCH"]
+
+ class TestMeme < MiniTest::Unit::TestCase
+ # Override self.bench_range or default range is [1, 10, 100, 1_000, 10_000]
+ def bench_my_algorithm
+ assert_performance_linear 0.9999 do |n| # n is a range value
+ n.times do
+ @obj.my_algorithm
+ end
+ end
+ end
+ end
+
+Or add them to your specs. If you make benchmarks optional, you'll
+need to wrap your benchmarks in a conditional since the methods won't
+be defined.
+
+ describe Meme do
+ if ENV["BENCH"] then
+ bench_performance_linear "my_algorithm", 0.9999 do |n|
+ 100.times do
+ @obj.my_algorithm(n)
+ end
+ end
+ end
+ end
+
+outputs something like:
+
+ # Running benchmarks:
+
+ TestBlah 100 1000 10000
+ bench_my_algorithm 0.006167 0.079279 0.786993
+ bench_other_algorithm 0.061679 0.792797 7.869932
+
+Output is tab-delimited to make it easy to paste into a spreadsheet.
+
+=== Mocks
+
+ class MemeAsker
+ def initialize(meme)
+ @meme = meme
+ end
+
+ def ask(question)
+ method = question.tr(" ","_") + "?"
+ @meme.send(method)
+ end
+ end
+
+ require 'minitest/autorun'
+
+ describe MemeAsker do
+ before do
+ @meme = MiniTest::Mock.new
+ @meme_asker = MemeAsker.new @meme
+ end
+
+ describe "#ask" do
+ describe "when passed an unpunctuated question" do
+ it "should invoke the appropriate predicate method on the meme" do
+ @meme.expect :will_it_blend?, :return_value
+ @meme_asker.ask "will it blend"
+ @meme.verify
+ end
+ end
+ end
+ end
+
+=== Customizable Test Runner Types:
+
+MiniTest::Unit.runner=(runner) provides an easy way of creating custom
+test runners for specialized needs. Justin Weiss provides the
+following real-world example to create an alternative to regular
+fixture loading:
+
+ class MiniTestWithHooks::Unit < MiniTest::Unit
+ def before_suites
+ end
+
+ def after_suites
+ end
+
+ def _run_suites(suites, type)
+ begin
+ before_suites
+ super(suites, type)
+ ensure
+ after_suites
+ end
+ end
+
+ def _run_suite(suite, type)
+ begin
+ suite.before_suite
+ super(suite, type)
+ ensure
+ suite.after_suite
+ end
+ end
+ end
+
+ module MiniTestWithTransactions
+ class Unit < MiniTestWithHooks::Unit
+ include TestSetupHelper
+
+ def before_suites
+ super
+ setup_nested_transactions
+ # load any data we want available for all tests
+ end
+
+ def after_suites
+ teardown_nested_transactions
+ super
+ end
+ end
+ end
+
+ MiniTest::Unit.runner = MiniTestWithTransactions::Unit.new
+
+== REQUIREMENTS:
+
+* Ruby 1.8, maybe even 1.6 or lower. No magic is involved.
+
+== INSTALL:
+
+ sudo gem install minitest
+
+On 1.9, you already have it. To get newer candy you can still install
+the gem, but you'll need to activate the gem explicitly to use it:
+
+ require 'rubygems'
+ gem 'minitest' # ensures you're using the gem, and not the built in MT
+ require 'minitest/autorun'
+
+ # ... usual testing stuffs ...
+
+== LICENSE:
+
+(The MIT License)
+
+Copyright (c) Ryan Davis, Seattle.rb
+
+Permission is hereby granted, free of charge, to any person obtaining
+a copy of this software and associated documentation files (the
+'Software'), to deal in the Software without restriction, including
+without limitation the rights to use, copy, modify, merge, publish,
+distribute, sublicense, and/or sell copies of the Software, and to
+permit persons to whom the Software is furnished to do so, subject to
+the following conditions:
+
+The above copyright notice and this permission notice shall be
+included in all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
+EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
+IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
+CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
+TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
+SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
diff --git a/lib/minitest/autorun.rb b/lib/minitest/autorun.rb
index a9f9c67166..443f2f61d4 100644
--- a/lib/minitest/autorun.rb
+++ b/lib/minitest/autorun.rb
@@ -1,9 +1,18 @@
-############################################################
-# This file is imported from a different project.
-# DO NOT make modifications in this repo.
-# File a patch instead and assign it to Ryan Davis
-############################################################
+######################################################################
+# This file is imported from the minitest project.
+# DO NOT make modifications in this repo. They _will_ be reverted!
+# File a patch instead and assign it to Ryan Davis.
+######################################################################
+
+begin
+ require 'rubygems'
+ gem 'minitest'
+rescue Gem::LoadError
+ # do nothing
+end
require 'minitest/unit'
+require 'minitest/spec'
+require 'minitest/mock'
MiniTest::Unit.autorun
diff --git a/lib/minitest/benchmark.rb b/lib/minitest/benchmark.rb
new file mode 100644
index 0000000000..77c0afafb7
--- /dev/null
+++ b/lib/minitest/benchmark.rb
@@ -0,0 +1,372 @@
+######################################################################
+# This file is imported from the minitest project.
+# DO NOT make modifications in this repo. They _will_ be reverted!
+# File a patch instead and assign it to Ryan Davis.
+######################################################################
+
+require 'minitest/unit'
+require 'minitest/spec'
+
+class MiniTest::Unit
+ attr_accessor :runner
+
+ def run_benchmarks # :nodoc:
+ _run_anything :benchmark
+ end
+
+ def benchmark_suite_header suite # :nodoc:
+ "\n#{suite}\t#{suite.bench_range.join("\t")}"
+ end
+
+ class TestCase
+ ##
+ # Returns a set of ranges stepped exponentially from +min+ to
+ # +max+ by powers of +base+. Eg:
+ #
+ # bench_exp(2, 16, 2) # => [2, 4, 8, 16]
+
+ def self.bench_exp min, max, base = 10
+ min = (Math.log10(min) / Math.log10(base)).to_i
+ max = (Math.log10(max) / Math.log10(base)).to_i
+
+ (min..max).map { |m| base ** m }.to_a
+ end
+
+ ##
+ # Returns a set of ranges stepped linearly from +min+ to +max+ by
+ # +step+. Eg:
+ #
+ # bench_linear(20, 40, 10) # => [20, 30, 40]
+
+ def self.bench_linear min, max, step = 10
+ (min..max).step(step).to_a
+ rescue LocalJumpError # 1.8.6
+ r = []; (min..max).step(step) { |n| r << n }; r
+ end
+
+ ##
+ # Returns the benchmark methods (methods that start with bench_)
+ # for that class.
+
+ def self.benchmark_methods # :nodoc:
+ public_instance_methods(true).grep(/^bench_/).map { |m| m.to_s }.sort
+ end
+
+ ##
+ # Returns all test suites that have benchmark methods.
+
+ def self.benchmark_suites
+ TestCase.test_suites.reject { |s| s.benchmark_methods.empty? }
+ end
+
+ ##
+ # Specifies the ranges used for benchmarking for that class.
+ # Defaults to exponential growth from 1 to 10k by powers of 10.
+ # Override if you need different ranges for your benchmarks.
+ #
+ # See also: ::bench_exp and ::bench_linear.
+
+ def self.bench_range
+ bench_exp 1, 10_000
+ end
+
+ ##
+ # Runs the given +work+, gathering the times of each run. Range
+ # and times are then passed to a given +validation+ proc. Outputs
+ # the benchmark name and times in tab-separated format, making it
+ # easy to paste into a spreadsheet for graphing or further
+ # analysis.
+ #
+ # Ranges are specified by ::bench_range.
+ #
+ # Eg:
+ #
+ # def bench_algorithm
+ # validation = proc { |x, y| ... }
+ # assert_performance validation do |x|
+ # @obj.algorithm
+ # end
+ # end
+
+ def assert_performance validation, &work
+ range = self.class.bench_range
+
+ io.print "#{__name__}"
+
+ times = []
+
+ range.each do |x|
+ GC.start
+ t0 = Time.now
+ instance_exec(x, &work)
+ t = Time.now - t0
+
+ io.print "\t%9.6f" % t
+ times << t
+ end
+ io.puts
+
+ validation[range, times]
+ end
+
+ ##
+ # Runs the given +work+ and asserts that the times gathered fit to
+ # match a constant rate (eg, linear slope == 0) within a given
+ # +threshold+. Note: because we're testing for a slope of 0, R^2
+ # is not a good determining factor for the fit, so the threshold
+ # is applied against the slope itself. As such, you probably want
+ # to tighten it from the default.
+ #
+ # See http://www.graphpad.com/curvefit/goodness_of_fit.htm for
+ # more details.
+ #
+ # Fit is calculated by #fit_linear.
+ #
+ # Ranges are specified by ::bench_range.
+ #
+ # Eg:
+ #
+ # def bench_algorithm
+ # assert_performance_constant 0.9999 do |x|
+ # @obj.algorithm
+ # end
+ # end
+
+ def assert_performance_constant threshold = 0.99, &work
+ validation = proc do |range, times|
+ a, b, rr = fit_linear range, times
+ assert_in_delta 0, b, 1 - threshold
+ [a, b, rr]
+ end
+
+ assert_performance validation, &work
+ end
+
+ ##
+ # Runs the given +work+ and asserts that the times gathered fit to
+ # match a exponential curve within a given error +threshold+.
+ #
+ # Fit is calculated by #fit_exponential.
+ #
+ # Ranges are specified by ::bench_range.
+ #
+ # Eg:
+ #
+ # def bench_algorithm
+ # assert_performance_exponential 0.9999 do |x|
+ # @obj.algorithm
+ # end
+ # end
+
+ def assert_performance_exponential threshold = 0.99, &work
+ assert_performance validation_for_fit(:exponential, threshold), &work
+ end
+
+ ##
+ # Runs the given +work+ and asserts that the times gathered fit to
+ # match a straight line within a given error +threshold+.
+ #
+ # Fit is calculated by #fit_linear.
+ #
+ # Ranges are specified by ::bench_range.
+ #
+ # Eg:
+ #
+ # def bench_algorithm
+ # assert_performance_linear 0.9999 do |x|
+ # @obj.algorithm
+ # end
+ # end
+
+ def assert_performance_linear threshold = 0.99, &work
+ assert_performance validation_for_fit(:linear, threshold), &work
+ end
+
+ ##
+ # Runs the given +work+ and asserts that the times gathered curve
+ # fit to match a power curve within a given error +threshold+.
+ #
+ # Fit is calculated by #fit_power.
+ #
+ # Ranges are specified by ::bench_range.
+ #
+ # Eg:
+ #
+ # def bench_algorithm
+ # assert_performance_power 0.9999 do |x|
+ # @obj.algorithm
+ # end
+ # end
+
+ def assert_performance_power threshold = 0.99, &work
+ assert_performance validation_for_fit(:power, threshold), &work
+ end
+
+ ##
+ # Takes an array of x/y pairs and calculates the general R^2 value.
+ #
+ # See: http://en.wikipedia.org/wiki/Coefficient_of_determination
+
+ def fit_error xys
+ y_bar = sigma(xys) { |x, y| y } / xys.size.to_f
+ ss_tot = sigma(xys) { |x, y| (y - y_bar) ** 2 }
+ ss_err = sigma(xys) { |x, y| (yield(x) - y) ** 2 }
+
+ 1 - (ss_err / ss_tot)
+ end
+
+ ##
+ # To fit a functional form: y = ae^(bx).
+ #
+ # Takes x and y values and returns [a, b, r^2].
+ #
+ # See: http://mathworld.wolfram.com/LeastSquaresFittingExponential.html
+
+ def fit_exponential xs, ys
+ n = xs.size
+ xys = xs.zip(ys)
+ sxlny = sigma(xys) { |x,y| x * Math.log(y) }
+ slny = sigma(xys) { |x,y| Math.log(y) }
+ sx2 = sigma(xys) { |x,y| x * x }
+ sx = sigma xs
+
+ c = n * sx2 - sx ** 2
+ a = (slny * sx2 - sx * sxlny) / c
+ b = ( n * sxlny - sx * slny ) / c
+
+ return Math.exp(a), b, fit_error(xys) { |x| Math.exp(a + b * x) }
+ end
+
+ ##
+ # Fits the functional form: a + bx.
+ #
+ # Takes x and y values and returns [a, b, r^2].
+ #
+ # See: http://mathworld.wolfram.com/LeastSquaresFitting.html
+
+ def fit_linear xs, ys
+ n = xs.size
+ xys = xs.zip(ys)
+ sx = sigma xs
+ sy = sigma ys
+ sx2 = sigma(xs) { |x| x ** 2 }
+ sxy = sigma(xys) { |x,y| x * y }
+
+ c = n * sx2 - sx**2
+ a = (sy * sx2 - sx * sxy) / c
+ b = ( n * sxy - sx * sy ) / c
+
+ return a, b, fit_error(xys) { |x| a + b * x }
+ end
+
+ ##
+ # To fit a functional form: y = ax^b.
+ #
+ # Takes x and y values and returns [a, b, r^2].
+ #
+ # See: http://mathworld.wolfram.com/LeastSquaresFittingPowerLaw.html
+
+ def fit_power xs, ys
+ n = xs.size
+ xys = xs.zip(ys)
+ slnxlny = sigma(xys) { |x, y| Math.log(x) * Math.log(y) }
+ slnx = sigma(xs) { |x | Math.log(x) }
+ slny = sigma(ys) { | y| Math.log(y) }
+ slnx2 = sigma(xs) { |x | Math.log(x) ** 2 }
+
+ b = (n * slnxlny - slnx * slny) / (n * slnx2 - slnx ** 2);
+ a = (slny - b * slnx) / n
+
+ return Math.exp(a), b, fit_error(xys) { |x| (Math.exp(a) * (x ** b)) }
+ end
+
+ ##
+ # Enumerates over +enum+ mapping +block+ if given, returning the
+ # sum of the result. Eg:
+ #
+ # sigma([1, 2, 3]) # => 1 + 2 + 3 => 7
+ # sigma([1, 2, 3]) { |n| n ** 2 } # => 1 + 4 + 9 => 14
+
+ def sigma enum, &block
+ enum = enum.map(&block) if block
+ enum.inject { |sum, n| sum + n }
+ end
+
+ ##
+ # Returns a proc that calls the specified fit method and asserts
+ # that the error is within a tolerable threshold.
+
+ def validation_for_fit msg, threshold
+ proc do |range, times|
+ a, b, rr = send "fit_#{msg}", range, times
+ assert_operator rr, :>=, threshold
+ [a, b, rr]
+ end
+ end
+ end
+end
+
+class MiniTest::Spec
+ ##
+ # This is used to define a new benchmark method. You usually don't
+ # use this directly and is intended for those needing to write new
+ # performance curve fits (eg: you need a specific polynomial fit).
+ #
+ # See ::bench_performance_linear for an example of how to use this.
+
+ def self.bench name, &block
+ define_method "bench_#{name.gsub(/\W+/, '_')}", &block
+ end
+
+ def self.bench_range &block
+ return super unless block
+
+ meta = (class << self; self; end)
+ meta.send :define_method, "bench_range", &block
+ end
+
+ ##
+ # Create a benchmark that verifies that the performance is linear.
+ #
+ # describe "my class" do
+ # bench_performance_linear "fast_algorithm", 0.9999 do
+ # @obj.fast_algorithm
+ # end
+ # end
+
+ def self.bench_performance_linear name, threshold = 0.99, &work
+ bench name do
+ assert_performance_linear threshold, &work
+ end
+ end
+
+ ##
+ # Create a benchmark that verifies that the performance is constant.
+ #
+ # describe "my class" do
+ # bench_performance_constant "zoom_algorithm!" do
+ # @obj.zoom_algorithm!
+ # end
+ # end
+
+ def self.bench_performance_constant name, threshold = 0.99, &work
+ bench name do
+ assert_performance_constant threshold, &work
+ end
+ end
+
+ ##
+ # Create a benchmark that verifies that the performance is exponential.
+ #
+ # describe "my class" do
+ # bench_performance_exponential "algorithm" do
+ # @obj.algorithm
+ # end
+ # end
+
+ def self.bench_performance_exponential name, threshold = 0.99, &work
+ bench name do
+ assert_performance_exponential threshold, &work
+ end
+ end
+end
diff --git a/lib/minitest/mock.rb b/lib/minitest/mock.rb
index 54af28c453..c342c04995 100644
--- a/lib/minitest/mock.rb
+++ b/lib/minitest/mock.rb
@@ -1,37 +1,106 @@
-############################################################
-# This file is imported from a different project.
-# DO NOT make modifications in this repo.
-# File a patch instead and assign it to Ryan Davis
-############################################################
+######################################################################
+# This file is imported from the minitest project.
+# DO NOT make modifications in this repo. They _will_ be reverted!
+# File a patch instead and assign it to Ryan Davis.
+######################################################################
class MockExpectationError < StandardError; end
+##
+# A simple and clean mock object framework.
+
module MiniTest
+
+ ##
+ # All mock objects are an instance of Mock
+
class Mock
- def initialize
+ alias :__respond_to? :respond_to?
+
+ skip_methods = %w(object_id respond_to_missing? inspect === to_s)
+
+ instance_methods.each do |m|
+ undef_method m unless skip_methods.include?(m.to_s) || m =~ /^__/
+ end
+
+ def initialize # :nodoc:
@expected_calls = {}
@actual_calls = Hash.new {|h,k| h[k] = [] }
end
+ ##
+ # Expect that method +name+ is called, optionally with +args+, and returns
+ # +retval+.
+ #
+ # @mock.expect(:meaning_of_life, 42)
+ # @mock.meaning_of_life # => 42
+ #
+ # @mock.expect(:do_something_with, true, [some_obj, true])
+ # @mock.do_something_with(some_obj, true) # => true
+ #
+ # +args+ is compared to the expected args using case equality (ie, the
+ # '===' operator), allowing for less specific expectations.
+ #
+ # @mock.expect(:uses_any_string, true, [String])
+ # @mock.uses_any_string("foo") # => true
+ # @mock.verify # => true
+ #
+ # @mock.expect(:uses_one_string, true, ["foo"]
+ # @mock.uses_one_string("bar") # => true
+ # @mock.verify # => raises MockExpectationError
+
def expect(name, retval, args=[])
- n, r, a = name, retval, args # for the closure below
@expected_calls[name] = { :retval => retval, :args => args }
- self.class.__send__(:define_method, name) { |*x|
- raise ArgumentError unless @expected_calls[n][:args].size == x.size
- @actual_calls[n] << { :retval => r, :args => x }
- retval
- }
self
end
+ ##
+ # Verify that all methods were called as expected. Raises
+ # +MockExpectationError+ if the mock object was not called as
+ # expected.
+
def verify
@expected_calls.each_key do |name|
expected = @expected_calls[name]
- msg = "expected #{name}, #{expected.inspect}"
- raise MockExpectationError, msg unless
+ msg1 = "expected #{name}, #{expected.inspect}"
+ msg2 = "#{msg1}, got #{@actual_calls[name].inspect}"
+
+ raise MockExpectationError, msg2 if
+ @actual_calls.has_key? name and
+ not @actual_calls[name].include?(expected)
+
+ raise MockExpectationError, msg1 unless
@actual_calls.has_key? name and @actual_calls[name].include?(expected)
end
true
end
+
+ def method_missing(sym, *args) # :nodoc:
+ expected = @expected_calls[sym]
+
+ unless expected then
+ raise NoMethodError, "unmocked method %p, expected one of %p" %
+ [sym, @expected_calls.keys.sort_by(&:to_s)]
+ end
+
+ expected_args, retval = expected[:args], expected[:retval]
+
+ unless expected_args.size == args.size
+ raise ArgumentError, "mocked method %p expects %d arguments, got %d" %
+ [sym, expected[:args].size, args.size]
+ end
+
+ @actual_calls[sym] << {
+ :retval => retval,
+ :args => expected_args.zip(args).map { |mod, a| mod if mod === a }
+ }
+
+ retval
+ end
+
+ def respond_to?(sym) # :nodoc:
+ return true if @expected_calls.has_key?(sym)
+ return __respond_to?(sym)
+ end
end
end
diff --git a/lib/minitest/pride.rb b/lib/minitest/pride.rb
new file mode 100644
index 0000000000..ac7745695c
--- /dev/null
+++ b/lib/minitest/pride.rb
@@ -0,0 +1,99 @@
+######################################################################
+# This file is imported from the minitest project.
+# DO NOT make modifications in this repo. They _will_ be reverted!
+# File a patch instead and assign it to Ryan Davis.
+######################################################################
+
+require "minitest/unit"
+
+##
+# Show your testing pride!
+
+class PrideIO
+ ESC = "\e["
+ NND = "#{ESC}0m"
+
+ attr_reader :io
+
+ def initialize io
+ @io = io
+ # stolen from /System/Library/Perl/5.10.0/Term/ANSIColor.pm
+ # also reference http://en.wikipedia.org/wiki/ANSI_escape_code
+ @colors ||= (31..36).to_a
+ @size = @colors.size
+ @index = 0
+ # io.sync = true
+ end
+
+ def print o
+ case o
+ when "." then
+ io.print pride o
+ when "E", "F" then
+ io.print "#{ESC}41m#{ESC}37m#{o}#{NND}"
+ else
+ io.print o
+ end
+ end
+
+ def puts(*o)
+ o.map! { |s|
+ s.sub(/Finished tests/) {
+ @index = 0
+ 'Fabulous tests'.split(//).map { |c|
+ pride(c)
+ }.join
+ }
+ }
+
+ super
+ end
+
+ def pride string
+ string = "*" if string == "."
+ c = @colors[@index % @size]
+ @index += 1
+ "#{ESC}#{c}m#{string}#{NND}"
+ end
+
+ def method_missing msg, *args
+ io.send(msg, *args)
+ end
+end
+
+class PrideLOL < PrideIO # inspired by lolcat, but massively cleaned up
+ PI_3 = Math::PI / 3
+
+ def initialize io
+ # walk red, green, and blue around a circle separated by equal thirds.
+ #
+ # To visualize, type this into wolfram-alpha:
+ #
+ # plot (3*sin(x)+3), (3*sin(x+2*pi/3)+3), (3*sin(x+4*pi/3)+3)
+
+ # 6 has wide pretty gradients. 3 == lolcat, about half the width
+ @colors = (0...(6 * 7)).map { |n|
+ n *= 1.0 / 6
+ r = (3 * Math.sin(n ) + 3).to_i
+ g = (3 * Math.sin(n + 2 * PI_3) + 3).to_i
+ b = (3 * Math.sin(n + 4 * PI_3) + 3).to_i
+
+ # Then we take rgb and encode them in a single number using base 6.
+ # For some mysterious reason, we add 16... to clear the bottom 4 bits?
+ # Yes... they're ugly.
+
+ 36 * r + 6 * g + b + 16
+ }
+
+ super
+ end
+
+ def pride string
+ c = @colors[@index % @size]
+ @index += 1
+ "#{ESC}38;5;#{c}m#{string}#{NND}"
+ end
+end
+
+klass = ENV['TERM'] =~ /^xterm(-256color)?$/ ? PrideLOL : PrideIO
+MiniTest::Unit.output = klass.new(MiniTest::Unit.output)
diff --git a/lib/minitest/spec.rb b/lib/minitest/spec.rb
index 2158ec0d7b..a70bbdd405 100644
--- a/lib/minitest/spec.rb
+++ b/lib/minitest/spec.rb
@@ -1,89 +1,519 @@
-############################################################
-# This file is imported from a different project.
-# DO NOT make modifications in this repo.
-# File a patch instead and assign it to Ryan Davis
-############################################################
+######################################################################
+# This file is imported from the minitest project.
+# DO NOT make modifications in this repo. They _will_ be reverted!
+# File a patch instead and assign it to Ryan Davis.
+######################################################################
#!/usr/bin/ruby -w
require 'minitest/unit'
-class Module
- def infect_with_assertions pos_prefix, neg_prefix, skip_re, map = {}
- MiniTest::Assertions.public_instance_methods(false).each do |meth|
- meth = meth.to_s
-
- new_name = case meth
- when /^assert/ then
- meth.sub(/^assert/, pos_prefix.to_s)
- when /^refute/ then
- meth.sub(/^refute/, neg_prefix.to_s)
- end
- next unless new_name
- next if new_name =~ skip_re
-
- regexp, replacement = map.find { |re, _| new_name =~ re }
- new_name.sub! regexp, replacement if replacement
-
- # warn "%-22p -> %p %p" % [meth, new_name, regexp]
- self.class_eval <<-EOM
- def #{new_name} *args, &block
- return MiniTest::Spec.current.#{meth}(*args, &self) if Proc === self
- return MiniTest::Spec.current.#{meth}(args.first, self) if args.size == 1
- return MiniTest::Spec.current.#{meth}(self, *args)
- end
- EOM
- end
+class Module # :nodoc:
+ def infect_an_assertion meth, new_name, dont_flip = false # :nodoc:
+ # warn "%-22p -> %p %p" % [meth, new_name, dont_flip]
+ self.class_eval <<-EOM
+ def #{new_name} *args, &block
+ return MiniTest::Spec.current.#{meth}(*args, &self) if
+ Proc === self
+ return MiniTest::Spec.current.#{meth}(args.first, self) if
+ args.size == 1 unless #{!!dont_flip}
+ return MiniTest::Spec.current.#{meth}(self, *args)
+ end
+ EOM
end
-end
-Object.infect_with_assertions(:must, :wont,
- /^(must|wont)$|wont_(throw)|
- must_(block|not?_|nothing|raise$)/x,
- /(must_throw)s/ => '\1',
- /(?!not)_same/ => '_be_same_as',
- /_in_/ => '_be_within_',
- /_operator/ => '_be',
- /_includes/ => '_include',
- /(must|wont)_(.*_of|nil|empty)/ => '\1_be_\2',
- /must_raises/ => 'must_raise')
+ ##
+ # infect_with_assertions has been removed due to excessive clever.
+ # Use infect_an_assertion directly instead.
-class Object
- alias :must_be_close_to :must_be_within_delta
- alias :wont_be_close_to :wont_be_within_delta
+ def infect_with_assertions(pos_prefix, neg_prefix,
+ skip_re,
+ dont_flip_re = /\c0/,
+ map = {})
+ abort "infect_with_assertions is dead. Use infect_an_assertion directly"
+ end
end
-module Kernel
- def describe desc, &block
- cls = Class.new(MiniTest::Spec)
- Object.const_set desc.to_s.split(/\W+/).map { |s| s.capitalize }.join, cls
+module Kernel # :nodoc:
+ ##
+ # Describe a series of expectations for a given target +desc+.
+ #
+ # TODO: find good tutorial url.
+ #
+ # Defines a test class subclassing from either MiniTest::Spec or
+ # from the surrounding describe's class. The surrounding class may
+ # subclass MiniTest::Spec manually in order to easily share code:
+ #
+ # class MySpec < MiniTest::Spec
+ # # ... shared code ...
+ # end
+ #
+ # class TestStuff < MySpec
+ # it "does stuff" do
+ # # shared code available here
+ # end
+ # describe "inner stuff" do
+ # it "still does stuff" do
+ # # ...and here
+ # end
+ # end
+ # end
+
+ def describe desc, additional_desc = nil, &block # :doc:
+ stack = MiniTest::Spec.describe_stack
+ name = [stack.last, desc, additional_desc].compact.join("::")
+ sclas = stack.last || if Class === self && self < MiniTest::Spec then
+ self
+ else
+ MiniTest::Spec.spec_type desc
+ end
+ cls = sclas.create name, desc
+
+ stack.push cls
cls.class_eval(&block)
+ stack.pop
+ cls
end
private :describe
end
+##
+# MiniTest::Spec -- The faster, better, less-magical spec framework!
+#
+# For a list of expectations, see MiniTest::Expectations.
+
class MiniTest::Spec < MiniTest::Unit::TestCase
- def self.current
+ ##
+ # Contains pairs of matchers and Spec classes to be used to
+ # calculate the superclass of a top-level describe. This allows for
+ # automatically customizable spec types.
+ #
+ # See: register_spec_type and spec_type
+
+ TYPES = [[//, MiniTest::Spec]]
+
+ ##
+ # Register a new type of spec that matches the spec's description.
+ # This method can take either a Regexp and a spec class or a spec
+ # class and a block that takes the description and returns true if
+ # it matches.
+ #
+ # Eg:
+ #
+ # register_spec_type(/Controller$/, MiniTest::Spec::Rails)
+ #
+ # or:
+ #
+ # register_spec_type(MiniTest::Spec::RailsModel) do |desc|
+ # desc.superclass == ActiveRecord::Base
+ # end
+
+ def self.register_spec_type(*args, &block)
+ if block then
+ matcher, klass = block, args.first
+ else
+ matcher, klass = *args
+ end
+ TYPES.unshift [matcher, klass]
+ end
+
+ ##
+ # Figure out the spec class to use based on a spec's description. Eg:
+ #
+ # spec_type("BlahController") # => MiniTest::Spec::Rails
+
+ def self.spec_type desc
+ TYPES.find { |matcher, klass|
+ if matcher.respond_to? :call then
+ matcher.call desc
+ else
+ matcher === desc.to_s
+ end
+ }.last
+ end
+
+ @@describe_stack = []
+ def self.describe_stack # :nodoc:
+ @@describe_stack
+ end
+
+ def self.current # :nodoc:
@@current_spec
end
- def initialize name
+ ##
+ # Returns the children of this spec.
+
+ def self.children
+ @children ||= []
+ end
+
+ def initialize name # :nodoc:
super
@@current_spec = self
end
- def self.before(type = :each, &block)
+ def self.nuke_test_methods! # :nodoc:
+ self.public_instance_methods.grep(/^test_/).each do |name|
+ self.send :undef_method, name
+ end
+ end
+
+ ##
+ # Define a 'before' action. Inherits the way normal methods should.
+ #
+ # NOTE: +type+ is ignored and is only there to make porting easier.
+ #
+ # Equivalent to MiniTest::Unit::TestCase#setup.
+
+ def self.before type = :each, &block
raise "unsupported before type: #{type}" unless type == :each
- define_method :setup, &block
+
+ add_setup_hook {|tc| tc.instance_eval(&block) }
end
- def self.after(type = :each, &block)
+ ##
+ # Define an 'after' action. Inherits the way normal methods should.
+ #
+ # NOTE: +type+ is ignored and is only there to make porting easier.
+ #
+ # Equivalent to MiniTest::Unit::TestCase#teardown.
+
+ def self.after type = :each, &block
raise "unsupported after type: #{type}" unless type == :each
- define_method :teardown, &block
+
+ add_teardown_hook {|tc| tc.instance_eval(&block) }
end
+ ##
+ # Define an expectation with name +desc+. Name gets morphed to a
+ # proper test method name. For some freakish reason, people who
+ # write specs don't like class inheritence, so this goes way out of
+ # its way to make sure that expectations aren't inherited.
+ #
+ # Hint: If you _do_ want inheritence, use minitest/unit. You can mix
+ # and match between assertions and expectations as much as you want.
+
def self.it desc, &block
- define_method "test_#{desc.gsub(/\W+/, '_').downcase}", &block
+ block ||= proc { skip "(no tests defined)" }
+
+ @specs ||= 0
+ @specs += 1
+
+ name = "test_%04d_%s" % [ @specs, desc.gsub(/\W+/, '_').downcase ]
+
+ define_method name, &block
+
+ self.children.each do |mod|
+ mod.send :undef_method, name if mod.public_method_defined? name
+ end
end
+
+ def self.let name, &block
+ define_method name do
+ @_memoized ||= {}
+ @_memoized.fetch(name) { |k| @_memoized[k] = instance_eval(&block) }
+ end
+ end
+
+ def self.subject &block
+ let :subject, &block
+ end
+
+ def self.create name, desc # :nodoc:
+ cls = Class.new(self) do
+ @name = name
+ @desc = desc
+
+ nuke_test_methods!
+ end
+
+ children << cls
+
+ cls
+ end
+
+ def self.to_s # :nodoc:
+ defined?(@name) ? @name : super
+ end
+
+ # :stopdoc:
+ class << self
+ attr_reader :name, :desc
+ end
+ # :startdoc:
+end
+
+module MiniTest::Expectations
+ ##
+ # See MiniTest::Assertions#assert_empty.
+ #
+ # collection.must_be_empty
+ #
+ # :method: must_be_empty
+
+ infect_an_assertion :assert_empty, :must_be_empty
+
+ ##
+ # See MiniTest::Assertions#assert_equal
+ #
+ # a.must_equal b
+ #
+ # :method: must_equal
+
+ infect_an_assertion :assert_equal, :must_equal
+
+ ##
+ # See MiniTest::Assertions#assert_in_delta
+ #
+ # n.must_be_close_to m [, delta]
+ #
+ # :method: must_be_within_delta
+
+ infect_an_assertion :assert_in_delta, :must_be_close_to
+
+ alias :must_be_within_delta :must_be_close_to
+
+ ##
+ # See MiniTest::Assertions#assert_in_epsilon
+ #
+ # n.must_be_within_epsilon m [, epsilon]
+ #
+ # :method: must_be_within_epsilon
+
+ infect_an_assertion :assert_in_epsilon, :must_be_within_epsilon
+
+ ##
+ # See MiniTest::Assertions#assert_includes
+ #
+ # collection.must_include obj
+ #
+ # :method: must_include
+
+ infect_an_assertion :assert_includes, :must_include, :reverse
+
+ ##
+ # See MiniTest::Assertions#assert_instance_of
+ #
+ # obj.must_be_instance_of klass
+ #
+ # :method: must_be_instance_of
+
+ infect_an_assertion :assert_instance_of, :must_be_instance_of
+
+ ##
+ # See MiniTest::Assertions#assert_kind_of
+ #
+ # obj.must_be_kind_of mod
+ #
+ # :method: must_be_kind_of
+
+ infect_an_assertion :assert_kind_of, :must_be_kind_of
+
+ ##
+ # See MiniTest::Assertions#assert_match
+ #
+ # a.must_match b
+ #
+ # :method: must_match
+
+ infect_an_assertion :assert_match, :must_match
+
+ ##
+ # See MiniTest::Assertions#assert_nil
+ #
+ # obj.must_be_nil
+ #
+ # :method: must_be_nil
+
+ infect_an_assertion :assert_nil, :must_be_nil
+
+ ##
+ # See MiniTest::Assertions#assert_operator
+ #
+ # n.must_be :<=, 42
+ #
+ # :method: must_be
+
+ infect_an_assertion :assert_operator, :must_be
+
+ ##
+ # See MiniTest::Assertions#assert_output
+ #
+ # proc { ... }.must_output out_or_nil [, err]
+ #
+ # :method: must_output
+
+ infect_an_assertion :assert_output, :must_output
+
+ ##
+ # See MiniTest::Assertions#assert_raises
+ #
+ # proc { ... }.must_raise exception
+ #
+ # :method: must_raise
+
+ infect_an_assertion :assert_raises, :must_raise
+
+ ##
+ # See MiniTest::Assertions#assert_respond_to
+ #
+ # obj.must_respond_to msg
+ #
+ # :method: must_respond_to
+
+ infect_an_assertion :assert_respond_to, :must_respond_to, :reverse
+
+ ##
+ # See MiniTest::Assertions#assert_same
+ #
+ # a.must_be_same_as b
+ #
+ # :method: must_be_same_as
+
+ infect_an_assertion :assert_same, :must_be_same_as
+
+ ##
+ # See MiniTest::Assertions#assert_send
+ # TODO: remove me
+ #
+ # a.must_send
+ #
+ # :method: must_send
+
+ infect_an_assertion :assert_send, :must_send
+
+ ##
+ # See MiniTest::Assertions#assert_silent
+ #
+ # proc { ... }.must_be_silent
+ #
+ # :method: must_be_silent
+
+ infect_an_assertion :assert_silent, :must_be_silent
+
+ ##
+ # See MiniTest::Assertions#assert_throws
+ #
+ # proc { ... }.must_throw sym
+ #
+ # :method: must_throw
+
+ infect_an_assertion :assert_throws, :must_throw
+
+ ##
+ # See MiniTest::Assertions#refute_empty
+ #
+ # collection.wont_be_empty
+ #
+ # :method: wont_be_empty
+
+ infect_an_assertion :refute_empty, :wont_be_empty
+
+ ##
+ # See MiniTest::Assertions#refute_equal
+ #
+ # a.wont_equal b
+ #
+ # :method: wont_equal
+
+ infect_an_assertion :refute_equal, :wont_equal
+
+ ##
+ # See MiniTest::Assertions#refute_in_delta
+ #
+ # n.wont_be_close_to m [, delta]
+ #
+ # :method: wont_be_within_delta
+
+ infect_an_assertion :refute_in_delta, :wont_be_within_delta
+
+ alias :wont_be_close_to :wont_be_within_delta
+ # FIX: reverse aliases
+
+ ##
+ # See MiniTest::Assertions#refute_in_epsilon
+ #
+ # n.wont_be_within_epsilon m [, epsilon]
+ #
+ # :method: wont_be_within_epsilon
+
+ infect_an_assertion :refute_in_epsilon, :wont_be_within_epsilon
+
+ ##
+ # See MiniTest::Assertions#refute_includes
+ #
+ # collection.wont_include obj
+ #
+ # :method: wont_include
+
+ infect_an_assertion :refute_includes, :wont_include, :reverse
+
+ ##
+ # See MiniTest::Assertions#refute_instance_of
+ #
+ # obj.wont_be_instance_of klass
+ #
+ # :method: wont_be_instance_of
+
+ infect_an_assertion :refute_instance_of, :wont_be_instance_of
+
+ ##
+ # See MiniTest::Assertions#refute_kind_of
+ #
+ # obj.wont_be_kind_of mod
+ #
+ # :method: wont_be_kind_of
+
+ infect_an_assertion :refute_kind_of, :wont_be_kind_of
+
+ ##
+ # See MiniTest::Assertions#refute_match
+ #
+ # a.wont_match b
+ #
+ # :method: wont_match
+
+ infect_an_assertion :refute_match, :wont_match
+
+ ##
+ # See MiniTest::Assertions#refute_nil
+ #
+ # obj.wont_be_nil
+ #
+ # :method: wont_be_nil
+
+ infect_an_assertion :refute_nil, :wont_be_nil
+
+ ##
+ # See MiniTest::Assertions#refute_operator
+ #
+ # n.wont_be :<=, 42
+ #
+ # :method: wont_be
+
+ infect_an_assertion :refute_operator, :wont_be
+
+ ##
+ # See MiniTest::Assertions#refute_respond_to
+ #
+ # obj.wont_respond_to msg
+ #
+ # :method: wont_respond_to
+
+ infect_an_assertion :refute_respond_to, :wont_respond_to, :reverse
+
+ ##
+ # See MiniTest::Assertions#refute_same
+ #
+ # a.wont_be_same_as b
+ #
+ # :method: wont_be_same_as
+
+ infect_an_assertion :refute_same, :wont_be_same_as
+end
+
+class Object
+ include MiniTest::Expectations
end
diff --git a/lib/minitest/unit.rb b/lib/minitest/unit.rb
index df7d6f5d43..922ef70183 100644
--- a/lib/minitest/unit.rb
+++ b/lib/minitest/unit.rb
@@ -1,17 +1,27 @@
-############################################################
-# This file is imported from a different project.
-# DO NOT make modifications in this repo.
-# File a patch instead and assign it to Ryan Davis
-############################################################
+######################################################################
+# This file is imported from the minitest project.
+# DO NOT make modifications in this repo. They _will_ be reverted!
+# File a patch instead and assign it to Ryan Davis.
+######################################################################
+
+require 'optparse'
+require 'rbconfig'
##
+# Minimal (mostly drop-in) replacement for test-unit.
#
-# Totally minimal drop-in replacement for test-unit
-#
-# TODO: refute -> debunk, prove/rebut, show/deny... lots of possibilities
+# :include: README.txt
module MiniTest
+
+ ##
+ # Assertion base class
+
class Assertion < Exception; end
+
+ ##
+ # Assertion raised when skipping a test
+
class Skip < Assertion; end
file = if RUBY_VERSION =~ /^1\.9/ then # bt's expanded, but __FILE__ isn't :(
@@ -20,44 +30,153 @@ module MiniTest
require 'pathname'
pwd = Pathname.new Dir.pwd
pn = Pathname.new File.expand_path(__FILE__)
- pn = File.join(".", pn.relative_path_from(pwd)) unless pn.relative?
+ relpath = pn.relative_path_from(pwd) rescue pn
+ pn = File.join ".", relpath unless pn.relative?
pn.to_s
else # assume both are expanded
__FILE__
end
# './lib' in project dir, or '/usr/local/blahblah' if installed
- MINI_DIR = File.dirname(File.dirname(file))
+ MINI_DIR = File.dirname(File.dirname(file)) # :nodoc:
- def self.filter_backtrace bt
+ def self.filter_backtrace bt # :nodoc:
return ["No backtrace"] unless bt
new_bt = []
- bt.each do |line|
- break if line.rindex(MINI_DIR, 0)
- new_bt << line
+
+ unless $DEBUG then
+ bt.each do |line|
+ break if line.rindex MINI_DIR, 0
+ new_bt << line
+ end
+
+ new_bt = bt.reject { |line| line.rindex MINI_DIR, 0 } if new_bt.empty?
+ new_bt = bt.dup if new_bt.empty?
+ else
+ new_bt = bt.dup
end
- new_bt = bt.reject { |line| line.rindex(MINI_DIR, 0) } if new_bt.empty?
- new_bt = bt.dup if new_bt.empty?
new_bt
end
+ ##
+ # MiniTest Assertions. All assertion methods accept a +msg+ which is
+ # printed if the assertion fails.
+
module Assertions
- def mu_pp(obj)
+
+ WINDOZE = RbConfig::CONFIG['host_os'] =~ /mswin|mingw/
+
+ ##
+ # Returns the diff command to use in #diff. Tries to intelligently
+ # figure out what diff to use.
+
+ def self.diff
+ @diff = if WINDOZE
+ "diff.exe -u"
+ else
+ if system("gdiff", __FILE__, __FILE__)
+ "gdiff -u" # solaris and kin suck
+ elsif system("diff", __FILE__, __FILE__)
+ "diff -u"
+ else
+ nil
+ end
+ end unless defined? @diff
+
+ @diff
+ end
+
+ ##
+ # Set the diff command to use in #diff.
+
+ def self.diff= o
+ @diff = o
+ end
+
+ ##
+ # Returns a diff between +exp+ and +act+. If there is no known
+ # diff command or if it doesn't make sense to diff the output
+ # (single line, short output), then it simply returns a basic
+ # comparison between the two.
+
+ def diff exp, act
+ require "tempfile"
+
+ expect = mu_pp_for_diff exp
+ butwas = mu_pp_for_diff act
+ result = nil
+
+ need_to_diff =
+ MiniTest::Assertions.diff &&
+ (expect.include?("\n") ||
+ butwas.include?("\n") ||
+ expect.size > 30 ||
+ butwas.size > 30 ||
+ expect == butwas)
+
+ return "Expected: #{mu_pp exp}\n Actual: #{mu_pp act}" unless
+ need_to_diff
+
+ Tempfile.open("expect") do |a|
+ a.puts expect
+ a.flush
+
+ Tempfile.open("butwas") do |b|
+ b.puts butwas
+ b.flush
+
+ result = `#{MiniTest::Assertions.diff} #{a.path} #{b.path}`
+ result.sub!(/^\-\-\- .+/, "--- expected")
+ result.sub!(/^\+\+\+ .+/, "+++ actual")
+
+ if result.empty? then
+ klass = exp.class
+ result = [
+ "No visible difference.",
+ "You should look at your implementation of #{klass}#==.",
+ expect
+ ].join "\n"
+ end
+ end
+ end
+
+ result
+ end
+
+ ##
+ # This returns a human-readable version of +obj+. By default
+ # #inspect is called. You can override this to use #pretty_print
+ # if you want.
+
+ def mu_pp obj
s = obj.inspect
- s = s.force_encoding(Encoding.default_external) if defined? Encoding
+ s = s.encode Encoding.default_external if defined? Encoding
s
end
- def _assertions= n
+ ##
+ # This returns a diff-able human-readable version of +obj+. This
+ # differs from the regular mu_pp because it expands escaped
+ # newlines and makes hex-values generic (like object_ids). This
+ # uses mu_pp to do the first pass and then cleans it up.
+
+ def mu_pp_for_diff obj # TODO: possibly rename
+ mu_pp(obj).gsub(/\\n/, "\n").gsub(/0x[a-f0-9]+/m, '0xXXXXXX')
+ end
+
+ def _assertions= n # :nodoc:
@_assertions = n
end
- def _assertions
+ def _assertions # :nodoc:
@_assertions ||= 0
end
+ ##
+ # Fails unless +test+ is a true value.
+
def assert test, msg = nil
msg ||= "Failed assertion, no message given."
self._assertions += 1
@@ -68,107 +187,197 @@ module MiniTest
true
end
+ ##
+ # Fails unless the block returns a true value.
+
def assert_block msg = nil
msg = message(msg) { "Expected block to return true value" }
assert yield, msg
end
+ ##
+ # Fails unless +obj+ is empty.
+
def assert_empty obj, msg = nil
- msg = message(msg) { "Expected #{obj.inspect} to be empty" }
+ msg = message(msg) { "Expected #{mu_pp(obj)} to be empty" }
assert_respond_to obj, :empty?
assert obj.empty?, msg
end
+ ##
+ # Fails unless <tt>exp == act</tt> printing the difference between
+ # the two, if possible.
+ #
+ # If there is no visible difference but the assertion fails, you
+ # should suspect that your #== is buggy, or your inspect output is
+ # missing crucial details.
+ #
+ # For floats use assert_in_delta.
+ #
+ # See also: MiniTest::Assertions.diff
+
def assert_equal exp, act, msg = nil
- msg = message(msg) { "Expected #{mu_pp(exp)}, not #{mu_pp(act)}" }
+ msg = message(msg, "") { diff exp, act }
assert(exp == act, msg)
end
+ ##
+ # For comparing Floats. Fails unless +exp+ and +act+ are within +delta+
+ # of each other.
+ #
+ # assert_in_delta Math::PI, (22.0 / 7.0), 0.01
+
def assert_in_delta exp, act, delta = 0.001, msg = nil
n = (exp - act).abs
msg = message(msg) { "Expected #{exp} - #{act} (#{n}) to be < #{delta}" }
assert delta >= n, msg
end
+ ##
+ # For comparing Floats. Fails unless +exp+ and +act+ have a relative
+ # error less than +epsilon+.
+
def assert_in_epsilon a, b, epsilon = 0.001, msg = nil
assert_in_delta a, b, [a, b].min * epsilon, msg
end
+ ##
+ # Fails unless +collection+ includes +obj+.
+
def assert_includes collection, obj, msg = nil
- msg = message(msg) { "Expected #{mu_pp(collection)} to include #{mu_pp(obj)}" }
- flip = (obj.respond_to? :include?) && ! (collection.respond_to? :include?) # HACK for specs
- obj, collection = collection, obj if flip
+ msg = message(msg) {
+ "Expected #{mu_pp(collection)} to include #{mu_pp(obj)}"
+ }
assert_respond_to collection, :include?
assert collection.include?(obj), msg
end
+ ##
+ # Fails unless +obj+ is an instace of +cls+.
+
def assert_instance_of cls, obj, msg = nil
- msg = message(msg) { "Expected #{mu_pp(obj)} to be an instance of #{cls}, not #{obj.class}" }
- flip = (Module === obj) && ! (Module === cls) # HACK for specs
- obj, cls = cls, obj if flip
+ msg = message(msg) {
+ "Expected #{mu_pp(obj)} to be an instance of #{cls}, not #{obj.class}"
+ }
+
assert obj.instance_of?(cls), msg
end
+ ##
+ # Fails unless +obj+ is a kind of +cls+.
+
def assert_kind_of cls, obj, msg = nil # TODO: merge with instance_of
msg = message(msg) {
"Expected #{mu_pp(obj)} to be a kind of #{cls}, not #{obj.class}" }
- flip = (Module === obj) && ! (Module === cls) # HACK for specs
- obj, cls = cls, obj if flip
+
assert obj.kind_of?(cls), msg
end
+ ##
+ # Fails unless +exp+ is <tt>=~</tt> +act+.
+
def assert_match exp, act, msg = nil
msg = message(msg) { "Expected #{mu_pp(exp)} to match #{mu_pp(act)}" }
assert_respond_to act, :"=~"
- exp = /#{Regexp.escape(exp)}/ if String === exp && String === act
+ exp = Regexp.new Regexp.escape exp if String === exp and String === act
assert exp =~ act, msg
end
+ ##
+ # Fails unless +obj+ is nil
+
def assert_nil obj, msg = nil
msg = message(msg) { "Expected #{mu_pp(obj)} to be nil" }
assert obj.nil?, msg
end
+ ##
+ # For testing equality operators and so-forth.
+ #
+ # assert_operator 5, :<=, 4
+
def assert_operator o1, op, o2, msg = nil
msg = message(msg) { "Expected #{mu_pp(o1)} to be #{op} #{mu_pp(o2)}" }
assert o1.__send__(op, o2), msg
end
+ ##
+ # Fails if stdout or stderr do not output the expected results.
+ # Pass in nil if you don't care about that streams output. Pass in
+ # "" if you require it to be silent.
+ #
+ # See also: #assert_silent
+
+ def assert_output stdout = nil, stderr = nil
+ out, err = capture_io do
+ yield
+ end
+
+ x = assert_equal stdout, out, "In stdout" if stdout
+ y = assert_equal stderr, err, "In stderr" if stderr
+
+ (!stdout || x) && (!stderr || y)
+ end
+
+ ##
+ # Fails unless the block raises one of +exp+
+
def assert_raises *exp
- msg = String === exp.last ? exp.pop : nil
+ msg = "#{exp.pop}\n" if String === exp.last
+
should_raise = false
begin
yield
should_raise = true
+ rescue MiniTest::Skip => e
+ details = "#{msg}#{mu_pp(exp)} exception expected, not"
+
+ if exp.include? MiniTest::Skip then
+ return e
+ else
+ raise e
+ end
rescue Exception => e
+ details = "#{msg}#{mu_pp(exp)} exception expected, not"
assert(exp.any? { |ex|
ex.instance_of?(Module) ? e.kind_of?(ex) : ex == e.class
- }, exception_details(e, "#{mu_pp(exp)} exception expected, not"))
+ }, exception_details(e, details))
return e
end
exp = exp.first if exp.size == 1
- flunk "#{mu_pp(exp)} expected but nothing was raised." if should_raise
+ flunk "#{msg}#{mu_pp(exp)} expected but nothing was raised." if
+ should_raise
end
+ ##
+ # Fails unless +obj+ responds to +meth+.
+
def assert_respond_to obj, meth, msg = nil
msg = message(msg) {
- "Expected #{mu_pp(obj)} (#{obj.class}) to respond to ##{meth}"
- }
- flip = (Symbol === obj) && ! (Symbol === meth) # HACK for specs
- obj, meth = meth, obj if flip
+ "Expected #{mu_pp(obj)} (#{obj.class}) to respond to ##{meth}"
+ }
assert obj.respond_to?(meth), msg
end
+ ##
+ # Fails unless +exp+ and +act+ are #equal?
+
def assert_same exp, act, msg = nil
msg = message(msg) {
data = [mu_pp(act), act.object_id, mu_pp(exp), exp.object_id]
- "Expected %s (0x%x) to be the same as %s (0x%x)" % data
+ "Expected %s (oid=%d) to be the same as %s (oid=%d)" % data
}
assert exp.equal?(act), msg
end
+ ##
+ # +send_ary+ is a receiver, message and arguments.
+ #
+ # Fails unless the call returns a true value
+ # TODO: I should prolly remove this from specs
+
def assert_send send_ary, m = nil
recv, msg, *args = send_ary
m = message(m) {
@@ -176,6 +385,20 @@ module MiniTest
assert recv.__send__(msg, *args), m
end
+ ##
+ # Fails if the block outputs anything to stderr or stdout.
+ #
+ # See also: #assert_output
+
+ def assert_silent
+ assert_output "", "" do
+ yield
+ end
+ end
+
+ ##
+ # Fails unless the block throws +sym+
+
def assert_throws sym, msg = nil
default = "Expected #{mu_pp(sym)} to have been thrown"
caught = true
@@ -193,6 +416,15 @@ module MiniTest
assert caught, message(msg) { default }
end
+ ##
+ # Captures $stdout and $stderr into strings:
+ #
+ # out, err = capture_io do
+ # warn "You did a bad thing"
+ # end
+ #
+ # assert_match %r%bad%, err
+
def capture_io
require 'stringio'
@@ -208,110 +440,179 @@ module MiniTest
$stderr = orig_stderr
end
+ ##
+ # Returns details for exception +e+
+
def exception_details e, msg
- "#{msg}\nClass: <#{e.class}>\nMessage: <#{e.message.inspect}>\n---Backtrace---\n#{MiniTest::filter_backtrace(e.backtrace).join("\n")}\n---------------"
+ [
+ "#{msg}",
+ "Class: <#{e.class}>",
+ "Message: <#{e.message.inspect}>",
+ "---Backtrace---",
+ "#{MiniTest::filter_backtrace(e.backtrace).join("\n")}",
+ "---------------",
+ ].join "\n"
end
+ ##
+ # Fails with +msg+
+
def flunk msg = nil
msg ||= "Epic Fail!"
assert false, msg
end
- def message msg = nil, &default
+ ##
+ # Returns a proc that will output +msg+ along with the default message.
+
+ def message msg = nil, ending = ".", &default
proc {
- if msg then
- msg = msg.to_s unless String === msg
- msg += '.' unless msg.empty?
- msg += "\n#{default.call}."
- msg.strip
- else
- "#{default.call}."
- end
+ custom_message = "#{msg}.\n" unless msg.nil? or msg.to_s.empty?
+ "#{custom_message}#{default.call}#{ending}"
}
end
+ ##
# used for counting assertions
+
def pass msg = nil
assert true
end
+ ##
+ # Fails if +test+ is a true value
+
def refute test, msg = nil
msg ||= "Failed refutation, no message given"
not assert(! test, msg)
end
+ ##
+ # Fails if +obj+ is empty.
+
def refute_empty obj, msg = nil
- msg = message(msg) { "Expected #{obj.inspect} to not be empty" }
+ msg = message(msg) { "Expected #{mu_pp(obj)} to not be empty" }
assert_respond_to obj, :empty?
refute obj.empty?, msg
end
+ ##
+ # Fails if <tt>exp == act</tt>.
+ #
+ # For floats use refute_in_delta.
+
def refute_equal exp, act, msg = nil
- msg = message(msg) { "Expected #{mu_pp(act)} to not be equal to #{mu_pp(exp)}" }
+ msg = message(msg) {
+ "Expected #{mu_pp(act)} to not be equal to #{mu_pp(exp)}"
+ }
refute exp == act, msg
end
+ ##
+ # For comparing Floats. Fails if +exp+ is within +delta+ of +act+
+ #
+ # refute_in_delta Math::PI, (22.0 / 7.0)
+
def refute_in_delta exp, act, delta = 0.001, msg = nil
n = (exp - act).abs
- msg = message(msg) { "Expected #{exp} - #{act} (#{n}) to not be < #{delta}" }
+ msg = message(msg) {
+ "Expected #{exp} - #{act} (#{n}) to not be < #{delta}"
+ }
refute delta > n, msg
end
+ ##
+ # For comparing Floats. Fails if +exp+ and +act+ have a relative error
+ # less than +epsilon+.
+
def refute_in_epsilon a, b, epsilon = 0.001, msg = nil
refute_in_delta a, b, a * epsilon, msg
end
+ ##
+ # Fails if +collection+ includes +obj+
+
def refute_includes collection, obj, msg = nil
- msg = message(msg) { "Expected #{mu_pp(collection)} to not include #{mu_pp(obj)}" }
- flip = (obj.respond_to? :include?) && ! (collection.respond_to? :include?) # HACK for specs
- obj, collection = collection, obj if flip
+ msg = message(msg) {
+ "Expected #{mu_pp(collection)} to not include #{mu_pp(obj)}"
+ }
assert_respond_to collection, :include?
refute collection.include?(obj), msg
end
+ ##
+ # Fails if +obj+ is an instance of +cls+
+
def refute_instance_of cls, obj, msg = nil
- msg = message(msg) { "Expected #{mu_pp(obj)} to not be an instance of #{cls}" }
- flip = (Module === obj) && ! (Module === cls) # HACK for specs
- obj, cls = cls, obj if flip
+ msg = message(msg) {
+ "Expected #{mu_pp(obj)} to not be an instance of #{cls}"
+ }
refute obj.instance_of?(cls), msg
end
+ ##
+ # Fails if +obj+ is a kind of +cls+
+
def refute_kind_of cls, obj, msg = nil # TODO: merge with instance_of
msg = message(msg) { "Expected #{mu_pp(obj)} to not be a kind of #{cls}" }
- flip = (Module === obj) && ! (Module === cls) # HACK for specs
- obj, cls = cls, obj if flip
refute obj.kind_of?(cls), msg
end
+ ##
+ # Fails if +exp+ <tt>=~</tt> +act+
+
def refute_match exp, act, msg = nil
msg = message(msg) { "Expected #{mu_pp(exp)} to not match #{mu_pp(act)}" }
assert_respond_to act, :"=~"
- exp = /#{Regexp.escape(exp)}/ if String === exp && String === act
+ exp = (/#{Regexp.escape exp}/) if String === exp and String === act
refute exp =~ act, msg
end
+ ##
+ # Fails if +obj+ is nil.
+
def refute_nil obj, msg = nil
msg = message(msg) { "Expected #{mu_pp(obj)} to not be nil" }
refute obj.nil?, msg
end
+ ##
+ # Fails if +o1+ is not +op+ +o2+. Eg:
+ #
+ # refute_operator 1, :>, 2 #=> pass
+ # refute_operator 1, :<, 2 #=> fail
+
def refute_operator o1, op, o2, msg = nil
- msg = message(msg) { "Expected #{mu_pp(o1)} to not be #{op} #{mu_pp(o2)}" }
+ msg = message(msg) {
+ "Expected #{mu_pp(o1)} to not be #{op} #{mu_pp(o2)}"
+ }
refute o1.__send__(op, o2), msg
end
+ ##
+ # Fails if +obj+ responds to the message +meth+.
+
def refute_respond_to obj, meth, msg = nil
msg = message(msg) { "Expected #{mu_pp(obj)} to not respond to #{meth}" }
- flip = (Symbol === obj) && ! (Symbol === meth) # HACK for specs
- obj, meth = meth, obj if flip
+
refute obj.respond_to?(meth), msg
end
+ ##
+ # Fails if +exp+ is the same (by object identity) as +act+.
+
def refute_same exp, act, msg = nil
- msg = message(msg) { "Expected #{mu_pp(act)} to not be the same as #{mu_pp(exp)}" }
+ msg = message(msg) {
+ data = [mu_pp(act), act.object_id, mu_pp(exp), exp.object_id]
+ "Expected %s (oid=%d) to not be the same as %s (oid=%d)" % data
+ }
refute exp.equal?(act), msg
end
+ ##
+ # Skips the current test. Gets listed at the end of the run but
+ # doesn't cause a failure exit code.
+
def skip msg = nil, bt = caller
msg ||= "Skipped, no message given"
raise MiniTest::Skip, msg, bt
@@ -319,183 +620,550 @@ module MiniTest
end
class Unit
- VERSION = "1.3.1"
+ VERSION = "2.5.1" # :nodoc:
- attr_accessor :report, :failures, :errors, :skips
- attr_accessor :test_count, :assertion_count
+ attr_accessor :report, :failures, :errors, :skips # :nodoc:
+ attr_accessor :test_count, :assertion_count # :nodoc:
+ attr_accessor :start_time # :nodoc:
+ attr_accessor :help # :nodoc:
+ attr_accessor :verbose # :nodoc:
+ attr_writer :options # :nodoc:
+
+ def options
+ @options ||= {}
+ end
@@installed_at_exit ||= false
@@out = $stdout
+ ##
+ # A simple hook allowing you to run a block of code after the
+ # tests are done. Eg:
+ #
+ # MiniTest::Unit.after_tests { p $debugging_info }
+
+ def self.after_tests
+ at_exit { at_exit { yield } }
+ end
+
+ ##
+ # Registers MiniTest::Unit to run tests at process exit
+
def self.autorun
at_exit {
next if $! # don't run if there was an exception
- exit_code = MiniTest::Unit.new.run(ARGV)
- exit false if exit_code && exit_code != 0
+
+ # the order here is important. The at_exit handler must be
+ # installed before anyone else gets a chance to install their
+ # own, that way we can be assured that our exit will be last
+ # to run (at_exit stacks).
+ exit_code = nil
+
+ at_exit { exit false if exit_code && exit_code != 0 }
+
+ exit_code = MiniTest::Unit.new.run ARGV
} unless @@installed_at_exit
@@installed_at_exit = true
end
+ ##
+ # Returns the stream to use for output.
+
+ def self.output
+ @@out
+ end
+
+ ##
+ # Returns the stream to use for output.
+ #
+ # DEPRECATED: use ::output instead.
+
+ def self.out
+ warn "::out deprecated, use ::output instead." if $VERBOSE
+ output
+ end
+
+ ##
+ # Sets MiniTest::Unit to write output to +stream+. $stdout is the default
+ # output
+
def self.output= stream
@@out = stream
end
- def location e
+ ##
+ # Tells MiniTest::Unit to delegate to +runner+, an instance of a
+ # MiniTest::Unit subclass, when MiniTest::Unit#run is called.
+
+ def self.runner= runner
+ @@runner = runner
+ end
+
+ ##
+ # Returns the MiniTest::Unit subclass instance that will be used
+ # to run the tests. A MiniTest::Unit instance is the default
+ # runner.
+
+ def self.runner
+ @@runner ||= self.new
+ end
+
+ ##
+ # Return all plugins' run methods (methods that start with "run_").
+
+ def self.plugins
+ @@plugins ||= (["run_tests"] +
+ public_instance_methods(false).
+ grep(/^run_/).map { |s| s.to_s }).uniq
+ end
+
+ def output
+ self.class.output
+ end
+
+ def puts *a # :nodoc:
+ output.puts(*a)
+ end
+
+ def print *a # :nodoc:
+ output.print(*a)
+ end
+
+ def _run_anything type
+ suites = TestCase.send "#{type}_suites"
+ return if suites.empty?
+
+ start = Time.now
+
+ puts
+ puts "# Running #{type}s:"
+ puts
+
+ @test_count, @assertion_count = 0, 0
+ sync = output.respond_to? :"sync=" # stupid emacs
+ old_sync, output.sync = output.sync, true if sync
+
+ results = _run_suites suites, type
+
+ @test_count = results.inject(0) { |sum, (tc, _)| sum + tc }
+ @assertion_count = results.inject(0) { |sum, (_, ac)| sum + ac }
+
+ output.sync = old_sync if sync
+
+ t = Time.now - start
+
+ puts
+ puts
+ puts "Finished #{type}s in %.6fs, %.4f tests/s, %.4f assertions/s." %
+ [t, test_count / t, assertion_count / t]
+
+ report.each_with_index do |msg, i|
+ puts "\n%3d) %s" % [i + 1, msg]
+ end
+
+ puts
+
+ status
+ end
+
+ def _run_suites suites, type
+ suites.map { |suite| _run_suite suite, type }
+ end
+
+ def _run_suite suite, type
+ header = "#{type}_suite_header"
+ puts send(header, suite) if respond_to? header
+
+ filter = options[:filter] || '/./'
+ filter = Regexp.new $1 if filter =~ /\/(.*)\//
+
+ assertions = suite.send("#{type}_methods").grep(filter).map { |method|
+ inst = suite.new method
+ inst._assertions = 0
+
+ print "#{suite}##{method} = " if @verbose
+
+ @start_time = Time.now
+ result = inst.run self
+ time = Time.now - @start_time
+
+ print "%.2f s = " % time if @verbose
+ print result
+ puts if @verbose
+
+ inst._assertions
+ }
+
+ return assertions.size, assertions.inject(0) { |sum, n| sum + n }
+ end
+
+ def location e # :nodoc:
last_before_assertion = ""
e.backtrace.reverse_each do |s|
- break if s =~ /in .(assert|refute|flunk|pass|fail|raise)/
+ break if s =~ /in .(assert|refute|flunk|pass|fail|raise|must|wont)/
last_before_assertion = s
end
last_before_assertion.sub(/:in .*$/, '')
end
+ ##
+ # Writes status for failed test +meth+ in +klass+ which finished with
+ # exception +e+
+
def puke klass, meth, e
e = case e
when MiniTest::Skip then
@skips += 1
+ return "S" unless @verbose
"Skipped:\n#{meth}(#{klass}) [#{location e}]:\n#{e.message}\n"
when MiniTest::Assertion then
@failures += 1
"Failure:\n#{meth}(#{klass}) [#{location e}]:\n#{e.message}\n"
else
@errors += 1
- bt = MiniTest::filter_backtrace(e.backtrace).join("\n ")
+ bt = MiniTest::filter_backtrace(e.backtrace).join "\n "
"Error:\n#{meth}(#{klass}):\n#{e.class}: #{e.message}\n #{bt}\n"
end
@report << e
e[0, 1]
end
- def initialize
+ def initialize # :nodoc:
@report = []
@errors = @failures = @skips = 0
@verbose = false
end
- ##
- # Top level driver, controls all output and filtering.
+ def process_args args = []
+ options = {}
+ orig_args = args.dup
- def run args = []
- @verbose = args.delete('-v')
+ OptionParser.new do |opts|
+ opts.banner = 'minitest options:'
+ opts.version = MiniTest::Unit::VERSION
- filter = if args.first =~ /^(-n|--name)$/ then
- args.shift
- arg = args.shift
- arg =~ /\/(.*)\// ? Regexp.new($1) : arg
- else
- /./ # anything - ^test_ already filtered by #tests
- end
+ opts.on '-h', '--help', 'Display this help.' do
+ puts opts
+ exit
+ end
- @@out.puts "Loaded suite #{$0.sub(/\.rb$/, '')}\nStarted"
+ opts.on '-s', '--seed SEED', Integer, "Sets random seed" do |m|
+ options[:seed] = m.to_i
+ end
- start = Time.now
- run_test_suites filter
+ opts.on '-v', '--verbose', "Verbose. Show progress processing files." do
+ options[:verbose] = true
+ end
+
+ opts.on '-n', '--name PATTERN', "Filter test names on pattern." do |a|
+ options[:filter] = a
+ end
- @@out.puts
- @@out.puts "Finished in #{'%.6f' % (Time.now - start)} seconds."
+ opts.parse! args
+ orig_args -= args
+ end
- @report.each_with_index do |msg, i|
- @@out.puts "\n%3d) %s" % [i + 1, msg]
+ unless options[:seed] then
+ srand
+ options[:seed] = srand % 0xFFFF
+ orig_args << "--seed" << options[:seed].to_s
end
- @@out.puts
+ srand options[:seed]
- format = "%d tests, %d assertions, %d failures, %d errors, %d skips"
- @@out.puts format % [test_count, assertion_count, failures, errors, skips]
+ self.verbose = options[:verbose]
+ @help = orig_args.map { |s| s =~ /[\s|&<>$()]/ ? s.inspect : s }.join " "
- return failures + errors if @test_count > 0 # or return nil...
+ options
end
- def run_test_suites filter = /./
- @test_count, @assertion_count = 0, 0
- old_sync, @@out.sync = @@out.sync, true if @@out.respond_to? :sync=
- TestCase.test_suites.each do |suite|
- suite.test_methods.grep(filter).each do |test|
- inst = suite.new test
- inst._assertions = 0
- @@out.print "#{suite}##{test}: " if @verbose
-
- t = Time.now if @verbose
- result = inst.run(self)
-
- @@out.print "%.2f s: " % (Time.now - t) if @verbose
- @@out.print result
- @@out.puts if @verbose
- @test_count += 1
- @assertion_count += inst._assertions
- end
+ ##
+ # Begins the full test run. Delegates to +runner+'s #_run method.
+
+ def run args = []
+ self.class.runner._run(args)
+ end
+
+ ##
+ # Top level driver, controls all output and filtering.
+
+ def _run args = []
+ self.options = process_args args
+
+ puts "Run options: #{help}"
+
+ self.class.plugins.each do |plugin|
+ send plugin
+ break unless report.empty?
end
- @@out.sync = old_sync if @@out.respond_to? :sync=
- [@test_count, @assertion_count]
+
+ return failures + errors if @test_count > 0 # or return nil...
+ rescue Interrupt
+ abort 'Interrupted'
end
+ ##
+ # Runs test suites matching +filter+.
+
+ def run_tests
+ _run_anything :test
+ end
+
+ ##
+ # Writes status to +io+
+
+ def status io = self.output
+ format = "%d tests, %d assertions, %d failures, %d errors, %d skips"
+ io.puts format % [test_count, assertion_count, failures, errors, skips]
+ end
+
+ ##
+ # Subclass TestCase to create your own tests. Typically you'll want a
+ # TestCase subclass per implementation class.
+ #
+ # See MiniTest::Assertions
+
class TestCase
- attr_reader :name
+ attr_reader :__name__ # :nodoc:
+
+ PASSTHROUGH_EXCEPTIONS = [NoMemoryError, SignalException,
+ Interrupt, SystemExit] # :nodoc:
+
+ SUPPORTS_INFO_SIGNAL = Signal.list['INFO'] # :nodoc:
+
+ ##
+ # Runs the tests reporting the status to +runner+
def run runner
- result = '.'
+ trap "INFO" do
+ time = runner.start_time ? Time.now - runner.start_time : 0
+ warn "%s#%s %.2fs" % [self.class, self.__name__, time]
+ runner.status $stderr
+ end if SUPPORTS_INFO_SIGNAL
+
+ result = ""
begin
@passed = nil
self.setup
- self.__send__ self.name
+ self.run_setup_hooks
+ self.__send__ self.__name__
+ result = "." unless io?
@passed = true
+ rescue *PASSTHROUGH_EXCEPTIONS
+ raise
rescue Exception => e
@passed = false
- result = runner.puke(self.class, self.name, e)
+ result = runner.puke self.class, self.__name__, e
ensure
begin
+ self.run_teardown_hooks
self.teardown
+ rescue *PASSTHROUGH_EXCEPTIONS
+ raise
rescue Exception => e
- result = runner.puke(self.class, self.name, e)
+ result = runner.puke self.class, self.__name__, e
end
+ trap 'INFO', 'DEFAULT' if SUPPORTS_INFO_SIGNAL
end
result
end
- def initialize name
- @name = name
+ def initialize name # :nodoc:
+ @__name__ = name
+ @__io__ = nil
@passed = nil
end
- def self.reset
+ def io
+ @__io__ = true
+ MiniTest::Unit.output
+ end
+
+ def io?
+ @__io__
+ end
+
+ def self.reset # :nodoc:
@@test_suites = {}
end
reset
- def self.inherited klass
+ ##
+ # Call this at the top of your tests when you absolutely
+ # positively need to have ordered tests. In doing so, you're
+ # admitting that you suck and your tests are weak.
+
+ def self.i_suck_and_my_tests_are_order_dependent!
+ class << self
+ define_method :test_order do :alpha end
+ end
+ end
+
+ def self.inherited klass # :nodoc:
@@test_suites[klass] = true
+ klass.reset_setup_teardown_hooks
+ super
end
- def self.test_order
+ def self.test_order # :nodoc:
:random
end
- def self.test_suites
- @@test_suites.keys.sort_by { |ts| ts.name }
+ def self.test_suites # :nodoc:
+ @@test_suites.keys.sort_by { |ts| ts.name.to_s }
end
- def self.test_methods
- methods = public_instance_methods(true).grep(/^test/).map { |m|
- m.to_s
- }.sort
+ def self.test_methods # :nodoc:
+ methods = public_instance_methods(true).grep(/^test/).map { |m| m.to_s }
- if self.test_order == :random then
+ case self.test_order
+ when :random then
max = methods.size
- methods = methods.sort_by { rand(max) }
+ methods.sort.sort_by { rand max }
+ when :alpha, :sorted then
+ methods.sort
+ else
+ raise "Unknown test_order: #{self.test_order.inspect}"
end
+ end
- methods
+ ##
+ # Returns true if the test passed.
+
+ def passed?
+ @passed
end
+ ##
+ # Runs before every test. Use this to refactor test initialization.
+
def setup; end
+
+ ##
+ # Runs after every test. Use this to refactor test cleanup.
+
def teardown; end
- def passed?
- @passed
+ def self.reset_setup_teardown_hooks # :nodoc:
+ @setup_hooks = []
+ @teardown_hooks = []
+ end
+
+ reset_setup_teardown_hooks
+
+ ##
+ # Adds a block of code that will be executed before every TestCase is
+ # run. Equivalent to +setup+, but usable multiple times and without
+ # re-opening any classes.
+ #
+ # All of the setup hooks will run in order after the +setup+ method, if
+ # one is defined.
+ #
+ # The argument can be any object that responds to #call or a block.
+ # That means that this call,
+ #
+ # MiniTest::TestCase.add_setup_hook { puts "foo" }
+ #
+ # ... is equivalent to:
+ #
+ # module MyTestSetup
+ # def call
+ # puts "foo"
+ # end
+ # end
+ #
+ # MiniTest::TestCase.add_setup_hook MyTestSetup
+ #
+ # The blocks passed to +add_setup_hook+ take an optional parameter that
+ # will be the TestCase instance that is executing the block.
+
+ def self.add_setup_hook arg=nil, &block
+ hook = arg || block
+ @setup_hooks << hook
+ end
+
+ def self.setup_hooks # :nodoc:
+ if superclass.respond_to? :setup_hooks then
+ superclass.setup_hooks
+ else
+ []
+ end + @setup_hooks
+ end
+
+ def run_setup_hooks # :nodoc:
+ self.class.setup_hooks.each do |hook|
+ if hook.respond_to?(:arity) && hook.arity == 1
+ hook.call(self)
+ else
+ hook.call
+ end
+ end
+ end
+
+ ##
+ # Adds a block of code that will be executed after every TestCase is
+ # run. Equivalent to +teardown+, but usable multiple times and without
+ # re-opening any classes.
+ #
+ # All of the teardown hooks will run in reverse order after the
+ # +teardown+ method, if one is defined.
+ #
+ # The argument can be any object that responds to #call or a block.
+ # That means that this call,
+ #
+ # MiniTest::TestCase.add_teardown_hook { puts "foo" }
+ #
+ # ... is equivalent to:
+ #
+ # module MyTestTeardown
+ # def call
+ # puts "foo"
+ # end
+ # end
+ #
+ # MiniTest::TestCase.add_teardown_hook MyTestTeardown
+ #
+ # The blocks passed to +add_teardown_hook+ take an optional parameter
+ # that will be the TestCase instance that is executing the block.
+
+ def self.add_teardown_hook arg=nil, &block
+ hook = arg || block
+ @teardown_hooks << hook
+ end
+
+ def self.teardown_hooks # :nodoc:
+ if superclass.respond_to? :teardown_hooks then
+ superclass.teardown_hooks
+ else
+ []
+ end + @teardown_hooks
+ end
+
+ def run_teardown_hooks # :nodoc:
+ self.class.teardown_hooks.reverse.each do |hook|
+ if hook.respond_to?(:arity) && hook.arity == 1
+ hook.call(self)
+ else
+ hook.call
+ end
+ end
end
include MiniTest::Assertions
end # class TestCase
- end # class Test
-end # module Mini
+ end # class Unit
+end # module MiniTest
+
+if $DEBUG then
+ module Test # :nodoc:
+ module Unit # :nodoc:
+ class TestCase # :nodoc:
+ def self.inherited x # :nodoc:
+ # this helps me ferret out porting issues
+ raise "Using minitest and test/unit in the same process: #{x}"
+ end
+ end
+ end
+ end
+end
diff --git a/lib/mkmf.rb b/lib/mkmf.rb
index 1fb0e6ca54..8254cd31f7 100644
--- a/lib/mkmf.rb
+++ b/lib/mkmf.rb
@@ -1,3 +1,4 @@
+# -*- indent-tabs-mode: t -*-
# module to create Makefile for extension modules
# invoke like: ruby -r mkmf extconf.rb
@@ -8,11 +9,12 @@ require 'shellwords'
CONFIG = RbConfig::MAKEFILE_CONFIG
ORIG_LIBPATH = ENV['LIB']
-CXX_EXT = %w[cc cxx cpp]
+C_EXT = %w[c m]
+CXX_EXT = %w[cc mm cxx cpp]
if File::FNM_SYSCASE.zero?
CXX_EXT.concat(%w[C])
end
-SRC_EXT = %w[c m].concat(CXX_EXT)
+SRC_EXT = C_EXT + CXX_EXT
$static = nil
$config_h = '$(arch_hdrdir)/ruby/config.h'
$default_static = $static
@@ -152,10 +154,11 @@ def map_dir(dir, map = nil)
map.inject(dir) {|d, (orig, new)| d.gsub(orig, new)}
end
-topdir = File.dirname(libdir = File.dirname(__FILE__))
-extdir = File.expand_path("ext", topdir)
+topdir = File.dirname(File.dirname(__FILE__))
path = File.expand_path($0)
-$extmk = path[0, topdir.size+1] == topdir+"/" && %r"\A(ext|enc|tool)\z" =~ File.dirname(path[topdir.size+1..-1])
+$extmk = path[0, topdir.size+1] == topdir+"/"
+$extmk &&= %r"\A(?:ext|enc|tool|test(?:/.+)?)\z" =~ File.dirname(path[topdir.size+1..-1])
+$extmk &&= true
if not $extmk and File.exist?(($hdrdir = RbConfig::CONFIG["rubyhdrdir"]) + "/ruby/ruby.h")
$topdir = $hdrdir
$top_srcdir = $hdrdir
@@ -181,7 +184,7 @@ class String
# Generates a string used as cpp macro name.
def tr_cpp
- strip.upcase.tr_s("^A-Z0-9_", "_")
+ strip.upcase.tr_s("^A-Z0-9_*", "_").tr_s("*", "P")
end
end
class Array
@@ -192,11 +195,13 @@ class Array
end
def rm_f(*files)
- FileUtils.rm_f(Dir[*files])
+ opt = (Hash === files.last ? [files.pop] : [])
+ FileUtils.rm_f(Dir[*files.flatten], *opt)
end
def rm_rf(*files)
- FileUtils.rm_rf(Dir[*files])
+ opt = (Hash === files.last ? [files.pop] : [])
+ FileUtils.rm_rf(Dir[*files.flatten], *opt)
end
# Returns time stamp of the +target+ file if it exists and is newer
@@ -259,6 +264,10 @@ module Logging
def self::logfile file
@logfile = file
+ log_close
+ end
+
+ def self::log_close
if @log and not @log.closed?
@log.flush
@log.close
@@ -272,10 +281,10 @@ module Logging
log, *save = @log, @logfile, @orgout, @orgerr
@log, @logfile, @orgout, @orgerr = nil, tmplog, log, log
begin
- log.print(open {yield})
+ log.print(open {yield @log})
ensure
- @log.close
- File::open(tmplog) {|t| FileUtils.copy_stream(t, log)}
+ @log.close if @log and not @log.closed?
+ File::open(tmplog) {|t| FileUtils.copy_stream(t, log)} if File.exist?(tmplog)
@log, @logfile, @orgout, @orgerr = log, *save
@postpone -= 1
rm_f tmplog
@@ -288,7 +297,7 @@ module Logging
end
end
-def xsystem command
+def xsystem command, opts = nil
varpat = /\$\((\w+)\)|\$\{(\w+)\}/
if varpat =~ command
vars = Hash.new {|h, k| h[k] = ''; ENV[k]}
@@ -297,7 +306,16 @@ def xsystem command
end
Logging::open do
puts command.quote
- system(command)
+ if opts and opts[:werror]
+ result = nil
+ Logging.postpone do |log|
+ result = (system(command) and File.zero?(log.path))
+ ""
+ end
+ result
+ else
+ system(command)
+ end
end
end
@@ -313,11 +331,11 @@ def xpopen command, *mode, &block
end
end
-def log_src(src)
+def log_src(src, heading="checked program was")
src = src.split(/^/)
fmt = "%#{src.size.to_s.size}d: %s"
Logging::message <<"EOM"
-checked program was:
+#{heading}:
/* begin */
EOM
src.each_with_index {|line, no| Logging::message fmt, no+1, line}
@@ -355,50 +373,53 @@ def have_devel?
$have_devel
end
-def try_do(src, command, &b)
+def try_do(src, command, *opts, &b)
unless have_devel?
raise <<MSG
-The complier failed to generate an executable file.
+The compiler failed to generate an executable file.
You have to install development tools first.
MSG
end
- src = create_tmpsrc(src, &b)
- xsystem(command)
-ensure
- log_src(src)
- rm_rf 'conftest.dSYM'
+ begin
+ src = create_tmpsrc(src, &b)
+ xsystem(command, *opts)
+ ensure
+ log_src(src)
+ rm_rf 'conftest.dSYM'
+ end
end
def link_command(ldflags, opt="", libpath=$DEFLIBPATH|$LIBPATH)
+ librubyarg = $extmk ? $LIBRUBYARG_STATIC : "$(LIBRUBYARG)"
conf = RbConfig::CONFIG.merge('hdrdir' => $hdrdir.quote,
- 'src' => CONFTEST_C,
- 'arch_hdrdir' => "#$arch_hdrdir",
+ 'src' => "#{CONFTEST_C}",
+ 'arch_hdrdir' => $arch_hdrdir.quote,
'top_srcdir' => $top_srcdir.quote,
'INCFLAGS' => "#$INCFLAGS",
'CPPFLAGS' => "#$CPPFLAGS",
'CFLAGS' => "#$CFLAGS",
'ARCH_FLAG' => "#$ARCH_FLAG",
'LDFLAGS' => "#$LDFLAGS #{ldflags}",
- 'LIBPATH' => libpathflag(libpath),
'LOCAL_LIBS' => "#$LOCAL_LIBS #$libs",
- 'LIBS' => "#$LIBRUBYARG_STATIC #{opt} #$LIBS")
+ 'LIBS' => "#{librubyarg} #{opt} #$LIBS")
+ conf['LIBPATH'] = libpathflag(libpath.map {|s| RbConfig::expand(s.dup, conf)})
RbConfig::expand(TRY_LINK.dup, conf)
end
def cc_command(opt="")
conf = RbConfig::CONFIG.merge('hdrdir' => $hdrdir.quote, 'srcdir' => $srcdir.quote,
- 'arch_hdrdir' => "#$arch_hdrdir",
+ 'arch_hdrdir' => $arch_hdrdir.quote,
'top_srcdir' => $top_srcdir.quote)
RbConfig::expand("$(CC) #$INCFLAGS #$CPPFLAGS #$CFLAGS #$ARCH_FLAG #{opt} -c #{CONFTEST_C}",
- conf)
+ conf)
end
def cpp_command(outfile, opt="")
conf = RbConfig::CONFIG.merge('hdrdir' => $hdrdir.quote, 'srcdir' => $srcdir.quote,
- 'arch_hdrdir' => "#$arch_hdrdir",
+ 'arch_hdrdir' => $arch_hdrdir.quote,
'top_srcdir' => $top_srcdir.quote)
RbConfig::expand("$(CPP) #$INCFLAGS #$CPPFLAGS #$CFLAGS #{opt} #{CONFTEST_C} #{outfile}",
- conf)
+ conf)
end
def libpathflag(libpath=$DEFLIBPATH|$LIBPATH)
@@ -412,37 +433,77 @@ def libpathflag(libpath=$DEFLIBPATH|$LIBPATH)
}.join
end
-def try_link0(src, opt="", &b)
+def with_werror(opt, opts = nil)
+ if opts
+ if opts[:werror] and config_string("WERRORFLAG") {|flag| opt = opt ? "#{opt} #{flag}" : flag}
+ (opts = opts.dup).delete(:werror)
+ end
+ yield(opt, opts)
+ else
+ yield(opt)
+ end
+end
+
+# :nodoc:
+def try_link0(src, opt="", *opts, &b)
cmd = link_command("", opt)
if $universal
require 'tmpdir'
Dir.mktmpdir("mkmf_", oldtmpdir = ENV["TMPDIR"]) do |tmpdir|
begin
ENV["TMPDIR"] = tmpdir
- try_do(src, cmd, &b)
+ try_do(src, cmd, *opts, &b)
ensure
ENV["TMPDIR"] = oldtmpdir
end
end
else
- try_do(src, cmd, &b)
+ try_do(src, cmd, *opts, &b)
end
end
-def try_link(src, opt="", &b)
- try_link0(src, opt, &b)
+# Returns whether or not the +src+ can be compiled as a C source and
+# linked with its depending libraries successfully.
+# +opt+ is passed to the linker as options. Note that +$CFLAGS+ and +$LDFLAGS+
+# are also passed to the linker.
+#
+# If a block given, it is called with the source before compilation. You can
+# modify the source in the block.
+#
+# [+src+] a String which contains a C source
+# [+opt+] a String which contains linker options
+def try_link(src, opt="", *opts, &b)
+ try_link0(src, opt, *opts, &b)
ensure
rm_f "conftest*", "c0x32*"
end
-def try_compile(src, opt="", &b)
- try_do(src, cc_command(opt), &b)
+# Returns whether or not the +src+ can be compiled as a C source.
+# +opt+ is passed to the C compiler as options. Note that +$CFLAGS+ is
+# also passed to the compiler.
+#
+# If a block given, it is called with the source before compilation. You can
+# modify the source in the block.
+#
+# [+src+] a String which contains a C source
+# [+opt+] a String which contains compiler options
+def try_compile(src, opt="", *opts, &b)
+ with_werror(opt, *opts) {|_opt, *_opts| try_do(src, cc_command(_opt), *_opts, &b)}
ensure
rm_f "conftest*"
end
-def try_cpp(src, opt="", &b)
- try_do(src, cpp_command(CPPOUTFILE, opt), &b)
+# Returns whether or not the +src+ can be preprocessed with the C preprocessor.
+# +opt+ is passed to the preprocessor as options. Note that +$CFLAGS+ is
+# also passed to the preprocessor.
+#
+# If a block given, it is called with the source before preprocessing. You can
+# modify the source in the block.
+#
+# [+src+] a String which contains a C source
+# [+opt+] a String which contains preprocessor options
+def try_cpp(src, opt="", *opts, &b)
+ try_do(src, cpp_command(CPPOUTFILE, opt), *opts, &b)
ensure
rm_f "conftest*"
end
@@ -540,15 +601,28 @@ int main() {printf("%d\\n", conftest_const); return 0;}
nil
end
+# You should use +have_func+ rather than +try_func+.
+#
+# [+func+] a String which contains a symbol name
+# [+libs+] a String which contains library names.
+# [+headers+] a String or an Array of strings which contains
+# names of header files.
def try_func(func, libs, headers = nil, &b)
headers = cpp_include(headers)
+ case func
+ when /^&/
+ decltype = proc {|x|"const volatile void *#{x}"}
+ else
+ call = true
+ decltype = proc {|x| "void ((*#{x})())"}
+ end
try_link(<<"SRC", libs, &b) or
#{headers}
/*top*/
#{MAIN_DOES_NOTHING}
-int t() { void ((*volatile p)()); p = (void ((*)()))#{func}; return 0; }
+int t() { #{decltype["volatile p"]}; p = (#{decltype[]})#{func}; return 0; }
SRC
- try_link(<<"SRC", libs, &b)
+ call && try_link(<<"SRC", libs, &b)
#{headers}
/*top*/
#{MAIN_DOES_NOTHING}
@@ -556,6 +630,7 @@ int t() { #{func}(); return 0; }
SRC
end
+# You should use +have_var+ rather than +try_var+.
def try_var(var, headers = nil, &b)
headers = cpp_include(headers)
try_compile(<<"SRC", &b)
@@ -566,24 +641,37 @@ int t() { const volatile void *volatile p; p = &(&#{var})[0]; return 0; }
SRC
end
+# Returns whether or not the +src+ can be preprocessed with the C preprocessor and
+# matches with +pat+.
+#
+# If a block given, it is called with the source before compilation. You can
+# modify the source in the block.
+#
+# [+pat+] a Regexp or a String
+# [+src+] a String which contains a C source
+# [+opt+] a String which contains preprocessor options
+#
+# Note:
+# When pat is a Regexp the matching will be checked in process,
+# otherwise egrep(1) will be invoked to check it.
def egrep_cpp(pat, src, opt = "", &b)
src = create_tmpsrc(src, &b)
xpopen(cpp_command('', opt)) do |f|
if Regexp === pat
puts(" ruby -ne 'print if #{pat.inspect}'")
f.grep(pat) {|l|
- puts "#{f.lineno}: #{l}"
- return true
+ puts "#{f.lineno}: #{l}"
+ return true
}
false
else
puts(" egrep '#{pat}'")
begin
- stdin = $stdin.dup
- $stdin.reopen(f)
- system("egrep", pat)
+ stdin = $stdin.dup
+ $stdin.reopen(f)
+ system("egrep", pat)
ensure
- $stdin.reopen(stdin)
+ $stdin.reopen(stdin)
end
end
end
@@ -604,6 +692,22 @@ def macro_defined?(macro, src, opt = "", &b)
SRC
end
+# Returns whether or not
+# * the +src+ can be compiled as a C source,
+# * the result object can be linked with its depending libraries successfully,
+# * the linked file can be invoked as an executable
+# * and the executable exits successfully
+# +opt+ is passed to the linker as options. Note that +$CFLAGS+ and +$LDFLAGS+
+# are also passed to the linker.
+#
+# If a block given, it is called with the source before compilation. You can
+# modify the source in the block.
+#
+# [+src+] a String which contains a C source
+# [+opt+] a String which contains linker options
+#
+# @return true when the executable exits successfully, false when it fails, or
+# nil when preprocessing, compilation or link fails.
def try_run(src, opt = "", &b)
if try_link0(src, opt, &b)
xsystem("./conftest")
@@ -617,7 +721,7 @@ end
def install_files(mfile, ifiles, map = nil, srcprefix = nil)
ifiles or return
ifiles.empty? and return
- srcprefix ||= '$(srcdir)'
+ srcprefix ||= "$(srcdir)/#{srcprefix}".chomp('/')
RbConfig::expand(srcdir = srcprefix.dup)
dirs = []
path = Hash.new {|h, i| h[i] = dirs.push([i])[-1]}
@@ -678,7 +782,7 @@ end
# Internal use only.
#
def checking_for(m, fmt = nil)
- f = caller[0][/in `(.*)'$/, 1] and f << ": " #` for vim #'
+ f = caller[0][/in `([^<].*)'$/, 1] and f << ": " #` for vim #'
m = "checking #{/\Acheck/ =~ f ? '' : 'for '}#{m}... "
message "%s", m
a = r = nil
@@ -764,11 +868,11 @@ def find_library(lib, func, *paths, &b)
libs = append_library($libs, lib)
begin
until r = try_func(func, libs, &b) or paths.empty?
- $LIBPATH = libpath | [paths.shift]
+ $LIBPATH = libpath | [paths.shift]
end
if r
- $libs = libs
- libpath = nil
+ $libs = libs
+ libpath = nil
end
ensure
$LIBPATH = libpath if libpath
@@ -825,7 +929,27 @@ end
def have_header(header, preheaders = nil, &b)
checking_for header do
if try_header(cpp_include(preheaders)+cpp_include(header), &b)
- $defs.push(format("-DHAVE_%s", header.tr("a-z./\055", "A-Z___")))
+ $defs.push(format("-DHAVE_%s", header.tr_cpp))
+ true
+ else
+ false
+ end
+ end
+end
+
+# Returns whether or not the given +framework+ can be found on your system.
+# If found, a macro is passed as a preprocessor constant to the compiler using
+# the framework name, in uppercase, prepended with 'HAVE_FRAMEWORK_'.
+#
+# For example, if have_framework('Ruby') returned true, then the HAVE_FRAMEWORK_RUBY
+# preprocessor macro would be passed to the compiler.
+#
+def have_framework(fw, &b)
+ checking_for fw do
+ src = cpp_include("#{fw}/#{fw}.h") << "\n" "int main(void){return 0;}"
+ if try_link(src, opt = "-framework #{fw}", &b)
+ $defs.push(format("-DHAVE_FRAMEWORK_%s", fw.tr_cpp))
+ $LDFLAGS << " " << opt
true
else
false
@@ -890,6 +1014,10 @@ SRC
end
end
+# Returns whether or not the static type +type+ is defined.
+#
+# See also +have_type+
+#
def try_type(type, headers = nil, opt = "", &b)
if try_compile(<<"SRC", opt, &b)
#{cpp_include(headers)}
@@ -943,6 +1071,10 @@ def find_type(type, opt, *headers, &b)
end
end
+# Returns whether or not the Constant +const+ is defined.
+#
+# See also +have_const+
+#
def try_const(const, headers = nil, opt = "", &b)
const, type = *const
if try_compile(<<"SRC", opt, &b)
@@ -980,6 +1112,30 @@ def have_const(const, headers = nil, opt = "", &b)
end
end
+STRING_OR_FAILED_FORMAT = "%s"
+# :stopdoc:
+def STRING_OR_FAILED_FORMAT.%(x)
+ x ? super : "failed"
+end
+
+def typedef_expr(type, headers)
+ typename, member = type.split('.', 2)
+ prelude = cpp_include(headers).split(/$/)
+ prelude << "typedef #{typename} rbcv_typedef_;\n"
+ return "rbcv_typedef_", member, prelude
+end
+
+def try_signedness(type, member, headers = nil, opts = nil, &b)
+ raise ArgumentError, "don't know how to tell signedness of members" if member
+ if try_static_assert("(#{type})-1 < 0", headers, opts)
+ return -1
+ elsif try_static_assert("(#{type})-1 > 0", headers, opts)
+ return +1
+ end
+end
+
+# :startdoc:
+
# Returns the size of the given +type+. You may optionally specify additional
# +headers+ to search in for the +type+.
#
@@ -990,32 +1146,94 @@ end
# For example, if check_sizeof('mystruct') returned 12, then the
# SIZEOF_MYSTRUCT=12 preprocessor macro would be passed to the compiler.
#
-def check_sizeof(type, headers = nil, &b)
- typename, member = type.split('.', 2)
- prelude = cpp_include(headers).split(/$/)
- prelude << "typedef #{typename} rbcv_typedef_;\n"
- prelude << "static rbcv_typedef_ *rbcv_ptr_;\n"
+def check_sizeof(type, headers = nil, opts = "", &b)
+ typedef, member, prelude = typedef_expr(type, headers)
+ prelude << "static #{typedef} *rbcv_ptr_;\n"
prelude = [prelude]
expr = "sizeof((*rbcv_ptr_)#{"." << member if member})"
- fmt = "%s"
- def fmt.%(x)
- x ? super : "failed"
- end
+ fmt = STRING_OR_FAILED_FORMAT
checking_for checking_message("size of #{type}", headers), fmt do
- if UNIVERSAL_INTS.include?(type)
- type
- elsif size = UNIVERSAL_INTS.find {|t|
- try_static_assert("#{expr} == sizeof(#{t})", prelude, opts, &b)
- }
- $defs.push(format("-DSIZEOF_%s=SIZEOF_%s", type.tr_cpp, size.tr_cpp))
- size
- elsif size = try_constant(expr, prelude, opts, &b)
+ if size = try_constant(expr, prelude, opts, &b)
$defs.push(format("-DSIZEOF_%s=%s", type.tr_cpp, size))
size
end
end
end
+# Returns the signedness of the given +type+. You may optionally
+# specify additional +headers+ to search in for the +type+.
+#
+# If the +type+ is found and is a numeric type, a macro is passed as a
+# preprocessor constant to the compiler using the +type+ name, in
+# uppercase, prepended with 'SIGNEDNESS_OF_', followed by the +type+
+# name, followed by '=X' where 'X' is positive integer if the +type+ is
+# unsigned, or negative integer if the +type+ is signed.
+#
+# For example, if size_t is defined as unsigned, then
+# check_signedness('size_t') would returned +1 and the
+# SIGNEDNESS_OF_SIZE_T=+1 preprocessor macro would be passed to the
+# compiler, and SIGNEDNESS_OF_INT=-1 if check_signedness('int') is
+# done.
+#
+def check_signedness(type, headers = nil, opts = nil, &b)
+ typedef, member, prelude = typedef_expr(type, headers)
+ signed = nil
+ checking_for("signedness of #{type}", STRING_OR_FAILED_FORMAT) do
+ signed = try_signedness(typedef, member, [prelude], opts, &b) or next nil
+ $defs.push("-DSIGNEDNESS_OF_%s=%+d" % [type.tr_cpp, signed])
+ signed < 0 ? "signed" : "unsigned"
+ end
+ signed
+end
+
+# Returns the convertible integer type of the given +type+. You may
+# optionally specify additional +headers+ to search in for the +type+.
+# _Convertible_ means actually same type, or typedefed from same type.
+#
+# If the +type+ is a integer type and _convertible_ type is found,
+# following macros are passed as preprocessor constants to the
+# compiler using the +type+ name, in uppercase.
+#
+# * 'TYPEOF_', followed by the +type+ name, followed by '=X' where 'X'
+# is the found _convertible_ type name. * 'TYP2NUM' and 'NUM2TYP,
+# where 'TYP' is the +type+ name in uppercase with replacing '_t'
+# suffix with 'T', followed by '=X' where 'X' is the macro name to
+# convert +type+ to +Integer+ object, and vice versa.
+#
+# For example, if foobar_t is defined as unsigned long, then
+# convertible_int("foobar_t") would return "unsigned long", and define
+# macros:
+#
+# #define TYPEOF_FOOBAR_T unsigned long
+# #define FOOBART2NUM ULONG2NUM
+# #define NUM2FOOBART NUM2ULONG
+def convertible_int(type, headers = nil, opts = nil, &b)
+ type, macname = *type
+ checking_for("convertible type of #{type}", STRING_OR_FAILED_FORMAT) do
+ if UNIVERSAL_INTS.include?(type)
+ type
+ else
+ typedef, member, prelude = typedef_expr(type, headers, &b)
+ next unless signed = try_signedness(typedef, member, [prelude])
+ u = "unsigned " if signed > 0
+ prelude << "extern rbcv_typedef_ foo();"
+ compat = UNIVERSAL_INTS.find {|t|
+ try_compile([prelude, "extern #{u}#{t} foo();"].join("\n"), opts, :werror=>true, &b)
+ }
+ if compat
+ macname ||= type.sub(/_(?=t\z)/, '').tr_cpp
+ conv = (compat == "long long" ? "LL" : compat.upcase)
+ compat = "#{u}#{compat}"
+ $defs.push(format("-DTYPEOF_%s=%s", type.tr_cpp, compat.quote))
+ $defs.push(format("-DPRI_%s_PREFIX=PRI_%s_PREFIX", macname, conv))
+ conv = (u ? "U" : "") + conv
+ $defs.push(format("-D%s2NUM=%s2NUM", macname, conv))
+ $defs.push(format("-DNUM2%s=NUM2%s", macname, conv))
+ compat
+ end
+ end
+ end
+end
# :stopdoc:
# Used internally by the what_type? method to determine if +type+ is a scalar
@@ -1118,10 +1336,21 @@ end
# Internal use only.
#
def find_executable0(bin, path = nil)
- ext = config_string('EXEEXT')
+ executable_file = proc do |name|
+ begin
+ stat = File.stat(name)
+ rescue SystemCallError
+ else
+ next name if stat.file? and stat.executable?
+ end
+ end
+
+ exts = config_string('EXECUTABLE_EXTS') {|s| s.split} || config_string('EXEEXT') {|s| [s]}
if File.expand_path(bin) == bin
- return bin if File.executable?(bin)
- ext and File.executable?(file = bin + ext) and return file
+ return bin if executable_file.call(bin)
+ if exts
+ exts.each {|ext| executable_file.call(file = bin + ext) and return file}
+ end
return nil
end
if path ||= ENV['PATH']
@@ -1131,8 +1360,10 @@ def find_executable0(bin, path = nil)
end
file = nil
path.each do |dir|
- return file if File.executable?(file = File.join(dir, bin))
- return file if ext and File.executable?(file << ext)
+ return file if executable_file.call(file = File.join(dir, bin))
+ if exts
+ exts.each {|ext| executable_file.call(ext = file + ext) and return ext}
+ end
end
nil
end
@@ -1254,20 +1485,21 @@ end
#
def create_header(header = "extconf.h")
message "creating %s\n", header
- sym = header.tr("a-z./\055", "A-Z___")
+ sym = header.tr_cpp
hdr = ["#ifndef #{sym}\n#define #{sym}\n"]
for line in $defs
case line
when /^-D([^=]+)(?:=(.*))?/
- hdr << "#define #$1 #{$2 ? Shellwords.shellwords($2)[0] : 1}\n"
+ hdr << "#define #$1 #{$2 ? Shellwords.shellwords($2)[0].gsub(/(?=\t+)/, "\\\n") : 1}\n"
when /^-U(.*)/
hdr << "#undef #$1\n"
end
end
hdr << "#endif\n"
hdr = hdr.join
+ log_src(hdr, "#{header} is")
unless (IO.read(header) == hdr rescue false)
- open(header, "w") do |hfile|
+ open(header, "wb") do |hfile|
hfile.write(hdr)
end
end
@@ -1296,7 +1528,7 @@ def dir_config(target, idefault=nil, ldefault=nil)
ldir = with_config(target + "-lib", ldefault)
$arg_config.last[1] ||= "${#{target}-dir}/lib"
- idirs = idir ? Array === idir ? idir : idir.split(File::PATH_SEPARATOR) : []
+ idirs = idir ? Array === idir ? idir.dup : idir.split(File::PATH_SEPARATOR) : []
if defaults
idirs.concat(defaults.collect {|d| d + "/include"})
idir = ([idir] + idirs).compact.join(File::PATH_SEPARATOR)
@@ -1309,7 +1541,7 @@ def dir_config(target, idefault=nil, ldefault=nil)
end
end
- ldirs = ldir ? Array === ldir ? ldir : ldir.split(File::PATH_SEPARATOR) : []
+ ldirs = ldir ? Array === ldir ? ldir.dup : ldir.split(File::PATH_SEPARATOR) : []
if defaults
ldirs.concat(defaults.collect {|d| d + "/lib"})
ldir = ([ldir] + ldirs).compact.join(File::PATH_SEPARATOR)
@@ -1406,16 +1638,24 @@ def configuration(srcdir)
mk << %{
SHELL = /bin/sh
+# V=0 quiet, V=1 verbose. other values don't work.
+V = 0
+Q1 = $(V:1=)
+Q = $(Q1:0=@)
+n=$(NULLCMD)
+ECHO1 = $(V:1=@$n)
+ECHO = $(ECHO1:0=@echo)
+
#### Start of system configuration section. ####
#{"top_srcdir = " + $top_srcdir.sub(%r"\A#{Regexp.quote($topdir)}/", "$(topdir)/") if $extmk}
srcdir = #{srcdir.gsub(/\$\((srcdir)\)|\$\{(srcdir)\}/) {mkintpath(CONFIG[$1||$2])}.quote}
topdir = #{mkintpath($extmk ? CONFIG["topdir"] : $topdir).quote}
hdrdir = #{mkintpath(CONFIG["hdrdir"]).quote}
-arch_hdrdir = #{$arch_hdrdir}
+arch_hdrdir = #{$arch_hdrdir.quote}
VPATH = #{vpath.join(CONFIG['PATH_SEPARATOR'])}
}
if $extmk
- mk << "RUBYLIB = -\nRUBYOPT = -r$(top_srcdir)/ext/purelib.rb\n"
+ mk << "RUBYLIB =\n""RUBYOPT = -\n"
end
if destdir = CONFIG["prefix"][$dest_prefix_pattern, 1]
mk << "\nDESTDIR = #{destdir}\n"
@@ -1439,6 +1679,8 @@ VPATH = #{vpath.join(CONFIG['PATH_SEPARATOR'])}
possible_command = (proc {|s| s if /top_srcdir/ !~ s} unless $extmk)
extconf_h = $extconf_h ? "-DRUBY_EXTCONF_H=\\\"$(RUBY_EXTCONF_H)\\\" " : $defs.join(" ") << " "
mk << %{
+NULLCMD = #{CONFIG['NULLCMD']}
+
CC = #{CONFIG['CC']}
CXX = #{CONFIG['CXX']}
LIBRUBY = #{CONFIG['LIBRUBY']}
@@ -1452,16 +1694,16 @@ RUBY_EXTCONF_H = #{$extconf_h}
cflags = #{CONFIG['cflags']}
optflags = #{CONFIG['optflags']}
debugflags = #{CONFIG['debugflags']}
-warnflags = #{CONFIG['warnflags']}
-CFLAGS = #{$static ? '' : CONFIG['CCDLFLAGS']} #$CFLAGS #$ARCH_FLAG
+warnflags = #{$warnflags}
+CFLAGS = #{$static ? '' : CONFIG['CCDLFLAGS']} #$CFLAGS $(ARCH_FLAG)
INCFLAGS = -I. #$INCFLAGS
DEFS = #{CONFIG['DEFS']}
CPPFLAGS = #{extconf_h}#{$CPPFLAGS}
CXXFLAGS = $(CFLAGS) #{CONFIG['CXXFLAGS']}
ldflags = #{$LDFLAGS}
dldflags = #{$DLDFLAGS}
-archflag = #{$ARCH_FLAG}
-DLDFLAGS = $(ldflags) $(dldflags) $(archflag)
+ARCH_FLAG = #{$ARCH_FLAG}
+DLDFLAGS = $(ldflags) $(dldflags) $(ARCH_FLAG)
LDSHARED = #{CONFIG['LDSHARED']}
LDSHAREDXX = #{config_string('LDSHAREDXX') || '$(LDSHARED)'}
AR = #{CONFIG['AR']}
@@ -1493,7 +1735,7 @@ preload = #{defined?($preload) && $preload ? $preload.join(' ') : ''}
x.gsub!(/^(MAKEDIRS|INSTALL_(?:PROG|DATA))+\s*=.*\n/) do
"!ifndef " + $1 + "\n" +
$& +
- "!endif\n"
+ "!endif\n"
end
end
end
@@ -1501,6 +1743,8 @@ preload = #{defined?($preload) && $preload ? $preload.join(' ') : ''}
end
# :startdoc:
+# creates a stub Makefile.
+#
def dummy_makefile(srcdir)
configuration(srcdir) << <<RULES << CLEANINGS
CLEANFILES = #{$cleanfiles.join(' ')}
@@ -1513,6 +1757,11 @@ all install static install-so install-rb: Makefile
RULES
end
+# Processes the data contents of the "depend" file.
+# Each line of this file is expected to be a file name.
+#
+# Returns the output of findings, in Makefile format.
+#
def depend_rules(depend)
suffixes = []
depout = []
@@ -1640,23 +1889,25 @@ def create_makefile(target, srcprefix = nil)
target_prefix = ""
end
- srcprefix ||= '$(srcdir)'
- RbConfig::expand(srcdir = srcprefix.dup)
+ srcprefix ||= "$(srcdir)/#{srcprefix}".chomp('/')
+ RbConfig.expand(srcdir = srcprefix.dup)
+ ext = ".#{$OBJEXT}"
if not $objs
- $objs = []
- srcs = Dir[File.join(srcdir, "*.{#{SRC_EXT.join(%q{,})}}")]
- for f in srcs
- obj = File.basename(f, ".*") << ".o"
- $objs.push(obj) unless $objs.index(obj)
+ srcs = $srcs || Dir[File.join(srcdir, "*.{#{SRC_EXT.join(%q{,})}}")]
+ objs = srcs.inject(Hash.new {[]}) {|h, f| h[File.basename(f, ".*") << ext] <<= f; h}
+ $objs = objs.keys
+ unless objs.delete_if {|b, f| f.size == 1}.empty?
+ dups = objs.sort.map {|b, f|
+ "#{b[/.*\./]}{#{f.collect {|n| n[/([^.]+)\z/]}.join(',')}}"
+ }
+ abort "source files duplication - #{dups.join(", ")}"
end
- elsif !(srcs = $srcs)
- srcs = $objs.collect {|o| o.sub(/\.o\z/, '.c')}
+ else
+ $objs.collect! {|o| File.basename(o, ".*") << ext} unless $OBJEXT == "o"
+ srcs = $srcs || $objs.collect {|o| o.chomp(ext) << ".c"}
end
$srcs = srcs
- for i in $objs
- i.sub!(/\.o\z/, ".#{$OBJEXT}")
- end
target = nil if $objs.empty?
@@ -1667,7 +1918,7 @@ def create_makefile(target, srcprefix = nil)
makedef = %{-pe "$_.sub!(/^(?=\\w)/,'#{EXPORT_PREFIX}') unless 1../^EXPORTS$/i"}
end
else
- makedef = %{-e "puts 'EXPORTS', '#{EXPORT_PREFIX}Init_$(TARGET)'"}
+ makedef = %{-e "puts 'EXPORTS', '#{EXPORT_PREFIX}' + 'Init_$(TARGET)'.sub(/\\..*\\z/,'')"}
end
if makedef
$cleanfiles << '$(DEFFILE)'
@@ -1691,7 +1942,9 @@ def create_makefile(target, srcprefix = nil)
dllib = target ? "$(TARGET).#{CONFIG['DLEXT']}" : ""
staticlib = target ? "$(TARGET).#$LIBEXT" : ""
mfile = open("Makefile", "wb")
- mfile.print(*configuration(srcprefix))
+ conf = configuration(srcprefix)
+ conf = yield(conf) if block_given?
+ mfile.puts(conf)
mfile.print "
libpath = #{($DEFLIBPATH|$LIBPATH).join(" ")}
LIBPATH = #{libpath}
@@ -1736,9 +1989,11 @@ static: $(STATIC_LIB)#{$extout ? " install-rb" : ""}
s = s.gsub(/(\$\(\w+)(\))/) {$1+sep+$2}
s = s.gsub(/(\$\{\w+)(\})/) {$1+sep+$2}
}
+ rsep = ":#{fsep}=/"
else
fseprepl = proc {|s| s}
sep = ""
+ rsep = ""
end
dirs = []
mfile.print "install: install-so install-rb\n\n"
@@ -1751,12 +2006,12 @@ static: $(STATIC_LIB)#{$extout ? " install-rb" : ""}
if $extout
mfile.print "clean-so::\n"
mfile.print "\t@-$(RM) #{fseprepl[dest]}\n"
- mfile.print "\t@-$(RMDIRS) #{fseprepl[dir]}\n"
+ mfile.print "\t@-$(RMDIRS) #{fseprepl[dir]}#{$ignore_error}\n"
else
- mfile.print "#{dest}: #{dir} #{f}\n"
- mfile.print "\t$(INSTALL_PROG) #{fseprepl[f]} #{fseprepl[dir]}\n"
+ mfile.print "#{dest}: #{f}\n\t@-$(MAKEDIRS) $(@D#{sep})\n"
+ mfile.print "\t$(INSTALL_PROG) #{fseprepl[f]} $(@D#{sep})\n"
if defined?($installed_list)
- mfile.print "\t@echo #{dir}/#{File.basename(f)}>>$(INSTALLED_LIST)\n"
+ mfile.print "\t@echo #{dir}/#{File.basename(f)}>>$(INSTALLED_LIST)\n"
end
end
else
@@ -1770,35 +2025,37 @@ static: $(STATIC_LIB)#{$extout ? " install-rb" : ""}
files = install_files(mfile, i, nil, srcprefix) or next
for dir, *files in files
unless dirs.include?(dir)
- dirs << dir
- mfile.print "pre-install-rb#{sfx}: #{dir}\n"
+ dirs << dir
+ mfile.print "pre-install-rb#{sfx}: #{dir}\n"
end
for f in files
- dest = "#{dir}/#{File.basename(f)}"
- mfile.print("install-rb#{sfx}: #{dest}\n")
- mfile.print("#{dest}: #{f} #{dir}\n\t$(#{$extout ? 'COPY' : 'INSTALL_DATA'}) ")
- mfile.print("#{f} $(@D)\n")
- if defined?($installed_list) and !$extout
- mfile.print("\t@echo #{dest}>>$(INSTALLED_LIST)\n")
- end
+ dest = "#{dir}/#{File.basename(f)}"
+ mfile.print("install-rb#{sfx}: #{dest} #{dir}\n")
+ mfile.print("#{dest}: #{f}\n")
+ mfile.print("\t$(Q) $(#{$extout ? 'COPY' : 'INSTALL_DATA'}) #{f} $(@D#{sep})\n")
+ if defined?($installed_list) and !$extout
+ mfile.print("\t@echo #{dest}>>$(INSTALLED_LIST)\n")
+ end
if $extout
mfile.print("clean-rb#{sfx}::\n")
mfile.print("\t@-$(RM) #{fseprepl[dest]}\n")
end
end
end
+ mfile.print "pre-install-rb#{sfx}:\n"
+ mfile.print("\t$(ECHO) installing#{sfx.sub(/^-/, " ")} #{target} libraries\n")
if $extout
dirs.uniq!
unless dirs.empty?
mfile.print("clean-rb#{sfx}::\n")
for dir in dirs.sort_by {|d| -d.count('/')}
- mfile.print("\t@-$(RMDIRS) #{fseprepl[dir]}\n")
+ mfile.print("\t@-$(RMDIRS) #{fseprepl[dir]}#{$ignore_error}\n")
end
end
end
end
dirs.unshift(sodir) if target and !dirs.include?(sodir)
- dirs.each {|d| mfile.print "#{d}:\n\t$(MAKEDIRS) $@\n"}
+ dirs.each {|d| mfile.print "#{d}:\n\t$(Q) $(MAKEDIRS) $@\n"}
mfile.print <<-SITEINSTALL
@@ -1810,20 +2067,21 @@ site-install-rb: install-rb
return unless target
- mfile.puts SRC_EXT.collect {|ext| ".path.#{ext} = $(VPATH)"} if $nmake == ?b
+ mfile.puts SRC_EXT.collect {|e| ".path.#{e} = $(VPATH)"} if $nmake == ?b
mfile.print ".SUFFIXES: .#{SRC_EXT.join(' .')} .#{$OBJEXT}\n"
mfile.print "\n"
- CXX_EXT.each do |ext|
+ compile_command = "\n\t$(ECHO) compiling $(<#{rsep})\n\t$(Q) %s\n\n"
+ CXX_EXT.each do |e|
COMPILE_RULES.each do |rule|
- mfile.printf(rule, ext, $OBJEXT)
- mfile.printf("\n\t%s\n\n", COMPILE_CXX)
+ mfile.printf(rule, e, $OBJEXT)
+ mfile.printf(compile_command, COMPILE_CXX)
end
end
- %w[c].each do |ext|
+ C_EXT.each do |e|
COMPILE_RULES.each do |rule|
- mfile.printf(rule, ext, $OBJEXT)
- mfile.printf("\n\t%s\n\n", COMPILE_C)
+ mfile.printf(rule, e, $OBJEXT)
+ mfile.printf(compile_command, COMPILE_C)
end
end
@@ -1831,15 +2089,17 @@ site-install-rb: install-rb
mfile.print "$(DLLIB): "
mfile.print "$(DEFFILE) " if makedef
mfile.print "$(OBJS) Makefile\n"
+ mfile.print "\t$(ECHO) linking shared-object #{target_prefix.sub(/\A\/(.*)/, '\1/')}$(DLLIB)\n"
mfile.print "\t@-$(RM) $(@#{sep})\n"
mfile.print "\t@-$(MAKEDIRS) $(@D)\n" if $extout
- link_so = LINK_SO.gsub(/^/, "\t")
+ link_so = LINK_SO.gsub(/^/, "\t$(Q) ")
if srcs.any?(&%r"\.(?:#{CXX_EXT.join('|')})\z".method(:===))
link_so = link_so.sub(/\bLDSHARED\b/, '\&XX')
end
mfile.print link_so, "\n\n"
unless $static.nil?
mfile.print "$(STATIC_LIB): $(OBJS)\n\t@-$(RM) $(@#{sep})\n\t"
+ mfile.print "$(ECHO) linking static-library $(@#{rsep})\n\t$(Q) "
mfile.print "$(AR) #{config_string('ARFLAGS') || 'cru '}$@ $(OBJS)"
config_string('RANLIB') do |ranlib|
mfile.print "\n\t@-#{ranlib} $(DLLIB) 2> /dev/null || true"
@@ -1848,7 +2108,8 @@ site-install-rb: install-rb
mfile.print "\n\n"
if makedef
mfile.print "$(DEFFILE): #{origdef}\n"
- mfile.print "\t$(RUBY) #{makedef} #{origdef} > $@\n\n"
+ mfile.print "\t$(ECHO) generating $(@#{rsep})\n"
+ mfile.print "\t$(Q) $(RUBY) #{makedef} #{origdef} > $@\n\n"
end
depend = File.join(srcdir, "depend")
@@ -1871,12 +2132,21 @@ end
# :stopdoc:
-def init_mkmf(config = CONFIG)
+def init_mkmf(config = CONFIG, rbconfig = RbConfig::CONFIG)
$makefile_created = false
$arg_config = []
$enable_shared = config['ENABLE_SHARED'] == 'yes'
$defs = []
$extconf_h = nil
+ if $warnflags = CONFIG['warnflags'] and CONFIG['GCC'] == 'yes'
+ # turn warnings into errors only for bundled extensions.
+ config['warnflags'] = $warnflags.gsub(/(\A|\s)-Werror[-=]/, '\1-W')
+ RbConfig.expand(rbconfig['warnflags'] = config['warnflags'].dup)
+ config.each do |key, val|
+ RbConfig.expand(rbconfig[key] = val.dup) if /warnflags/ =~ val
+ end
+ $warnflags = config['warnflags'] unless $extmk
+ end
$CFLAGS = with_config("cflags", arg_config("CFLAGS", config["CFLAGS"])).dup
$ARCH_FLAG = with_config("arch_flag", arg_config("ARCH_FLAG", config["ARCH_FLAG"])).dup
$CPPFLAGS = with_config("cppflags", arg_config("CPPFLAGS", config["CPPFLAGS"])).dup
@@ -1952,6 +2222,7 @@ when $mswin
when $bccwin
$nmake = ?b if /Borland/i =~ `#{make} -h`
end
+$ignore_error = $nmake ? '' : ' 2> /dev/null || true'
RbConfig::CONFIG["srcdir"] = CONFIG["srcdir"] =
$srcdir = arg_config("--srcdir", File.dirname($0))
@@ -1975,7 +2246,10 @@ EXPORT_PREFIX = config_string('EXPORT_PREFIX') {|s| s.strip}
hdr = ['#include "ruby.h"' "\n"]
config_string('COMMON_MACROS') do |s|
Shellwords.shellwords(s).each do |w|
- hdr << "#define " + w.split(/=/, 2).join(" ")
+ w, v = w.split(/=/, 2)
+ hdr << "#ifndef #{w}"
+ hdr << "#define #{[w, v].compact.join(" ")}"
+ hdr << "#endif /* #{w} */"
end
end
config_string('COMMON_HEADERS') do |s|
@@ -2019,7 +2293,7 @@ distclean-so::
distclean: clean distclean-so distclean-rb-default distclean-rb
\t\t@-$(RM) Makefile $(RUBY_EXTCONF_H) conftest.* mkmf.log
\t\t@-$(RM) core ruby$(EXEEXT) *~ $(DISTCLEANFILES#{sep})
-\t\t@-$(RMDIRS) $(DISTCLEANDIRS#{sep})
+\t\t@-$(RMDIRS) $(DISTCLEANDIRS#{sep})#{$ignore_error}
realclean: distclean
"
diff --git a/lib/monitor.rb b/lib/monitor.rb
index 00d85fae52..9e26ec1de1 100644
--- a/lib/monitor.rb
+++ b/lib/monitor.rb
@@ -1,81 +1,91 @@
-=begin
-
-= monitor.rb
-
-Copyright (C) 2001 Shugo Maeda <shugo@ruby-lang.org>
-
-This library is distributed under the terms of the Ruby license.
-You can freely distribute/modify this library.
-
-== example
-
-This is a simple example.
-
- require 'monitor.rb'
-
- buf = []
- buf.extend(MonitorMixin)
- empty_cond = buf.new_cond
-
- # consumer
- Thread.start do
- loop do
- buf.synchronize do
- empty_cond.wait_while { buf.empty? }
- print buf.shift
- end
- end
- end
-
- # producer
- while line = ARGF.gets
- buf.synchronize do
- buf.push(line)
- empty_cond.signal
- end
- end
-
-The consumer thread waits for the producer thread to push a line
-to buf while buf.empty?, and the producer thread (main thread)
-reads a line from ARGF and push it to buf, then call
-empty_cond.signal.
-
-=end
+# = monitor.rb
+#
+# Copyright (C) 2001 Shugo Maeda <shugo@ruby-lang.org>
+#
+# This library is distributed under the terms of the Ruby license.
+# You can freely distribute/modify this library.
+#
require 'thread'
#
-# Adds monitor functionality to an arbitrary object by mixing the module with
-# +include+. For example:
+# In concurrent programming, a monitor is an object or module intended to be
+# used safely by more than one thread. The defining characteristic of a
+# monitor is that its methods are executed with mutual exclusion. That is, at
+# each point in time, at most one thread may be executing any of its methods.
+# This mutual exclusion greatly simplifies reasoning about the implementation
+# of monitors compared to reasoning about parallel code that updates a data
+# structure.
+#
+# You can read more about the general principles on the Wikipedia page for
+# Monitors[http://en.wikipedia.org/wiki/Monitor_%28synchronization%29]
#
-# require 'monitor'
+# == Examples
#
-# buf = []
-# buf.extend(MonitorMixin)
-# empty_cond = buf.new_cond
+# === Simple object.extend
#
-# # consumer
-# Thread.start do
-# loop do
-# buf.synchronize do
-# empty_cond.wait_while { buf.empty? }
-# print buf.shift
-# end
-# end
-# end
+# require 'monitor.rb'
#
-# # producer
-# while line = ARGF.gets
-# buf.synchronize do
-# buf.push(line)
-# empty_cond.signal
-# end
-# end
+# buf = []
+# buf.extend(MonitorMixin)
+# empty_cond = buf.new_cond
#
-# The consumer thread waits for the producer thread to push a line
-# to buf while buf.empty?, and the producer thread (main thread)
-# reads a line from ARGF and push it to buf, then call
-# empty_cond.signal.
+# # consumer
+# Thread.start do
+# loop do
+# buf.synchronize do
+# empty_cond.wait_while { buf.empty? }
+# print buf.shift
+# end
+# end
+# end
+#
+# # producer
+# while line = ARGF.gets
+# buf.synchronize do
+# buf.push(line)
+# empty_cond.signal
+# end
+# end
+#
+# The consumer thread waits for the producer thread to push a line to buf
+# while <tt>buf.empty?</tt>. The producer thread (main thread) reads a
+# line from ARGF and pushes it into buf then calls <tt>empty_cond.signal</tt>
+# to notify the consumer thread of new data.
+#
+# === Simple Class include
+#
+# require 'monitor'
+#
+# class SynchronizedArray < Array
+#
+# include MonitorMixin
+#
+# def initialize(*args)
+# super(*args)
+# end
+#
+# alias :old_shift :shift
+# alias :old_unshift :unshift
+#
+# def shift(n=1)
+# self.synchronize do
+# self.old_shift(n)
+# end
+# end
+#
+# def unshift(item)
+# self.synchronize do
+# self.old_unshift(item)
+# end
+# end
+#
+# # other methods ...
+# end
+#
+# +SynchronizedArray+ implements an Array with synchronized access to items.
+# This Class is implemented as subclass of Array which includes the
+# MonitorMixin module.
#
module MonitorMixin
#
@@ -87,46 +97,57 @@ module MonitorMixin
class ConditionVariable
class Timeout < Exception; end
+ #
+ # Releases the lock held in the associated monitor and waits; reacquires the lock on wakeup.
+ #
+ # If +timeout+ is given, this method returns after +timeout+ seconds passed,
+ # even if no other thread doesn't signal.
+ #
def wait(timeout = nil)
- if timeout
- raise NotImplementedError, "timeout is not implemented yet"
- end
- @monitor.send(:mon_check_owner)
- count = @monitor.send(:mon_exit_for_cond)
+ @monitor.__send__(:mon_check_owner)
+ count = @monitor.__send__(:mon_exit_for_cond)
begin
- @cond.wait(@monitor.instance_variable_get("@mon_mutex"))
+ @cond.wait(@monitor.instance_variable_get("@mon_mutex"), timeout)
return true
ensure
- @monitor.send(:mon_enter_for_cond, count)
+ @monitor.__send__(:mon_enter_for_cond, count)
end
end
+ #
+ # Calls wait repeatedly while the given block yields a truthy value.
+ #
def wait_while
while yield
- wait
+ wait
end
end
+ #
+ # Calls wait repeatedly until the given block yields a truthy value.
+ #
def wait_until
until yield
- wait
+ wait
end
end
+ #
+ # Wakes up the first thread in line waiting for this lock.
+ #
def signal
- @monitor.send(:mon_check_owner)
+ @monitor.__send__(:mon_check_owner)
@cond.signal
end
+ #
+ # Wakes up all threads waiting for this lock.
+ #
def broadcast
- @monitor.send(:mon_check_owner)
+ @monitor.__send__(:mon_check_owner)
@cond.broadcast
end
- def count_waiters
- raise NotImplementedError
- end
-
private
def initialize(monitor)
@@ -137,7 +158,7 @@ module MonitorMixin
def self.extend_object(obj)
super(obj)
- obj.send(:mon_initialize)
+ obj.__send__(:mon_initialize)
end
#
@@ -195,7 +216,8 @@ module MonitorMixin
alias synchronize mon_synchronize
#
- # FIXME: This isn't documented in Nutshell.
+ # Creates a new MonitorMixin::ConditionVariable associated with the
+ # receiver.
#
def new_cond
return ConditionVariable.new(self)
@@ -203,11 +225,16 @@ module MonitorMixin
private
+ # Use <tt>extend MonitorMixin</tt> or <tt>include MonitorMixin</tt> instead
+ # of this constructor. Have look at the examples above to understand how to
+ # use this module.
def initialize(*args)
super
mon_initialize
end
+ # Initializes the MonitorMixin after being included in a class or when an
+ # object has been extended with the MonitorMixin
def mon_initialize
@mon_owner = nil
@mon_count = 0
@@ -233,6 +260,16 @@ module MonitorMixin
end
end
+# Use the Monitor class when you want to have a lock object for blocks with
+# mutual exclusion.
+#
+# require 'monitor'
+#
+# lock = Monitor.new
+# lock.synchronize do
+# # exclusive access
+# end
+#
class Monitor
include MonitorMixin
alias try_enter try_mon_enter
@@ -248,8 +285,6 @@ end
# - All the internals (internal modules Accessible and Initializable, class
# ConditionVariable) appear in RDoc. It might be good to hide them, by
# making them private, or marking them :nodoc:, etc.
-# - The entire example from the RD section at the top is replicated in the RDoc
-# comment for MonitorMixin. Does the RD section need to remain?
# - RDoc doesn't recognise aliases, so we have mon_synchronize documented, but
# not synchronize.
# - mon_owner is in Nutshell, but appears as an accessor in a separate module
diff --git a/lib/mutex_m.rb b/lib/mutex_m.rb
index 21d828523e..722754b8d5 100644
--- a/lib/mutex_m.rb
+++ b/lib/mutex_m.rb
@@ -1,26 +1,26 @@
#
# mutex_m.rb -
-# $Release Version: 3.0$
-# $Revision: 1.7 $
+# $Release Version: 3.0$
+# $Revision: 1.7 $
# Original from mutex.rb
-# by Keiju ISHITSUKA(keiju@ishitsuka.com)
+# by Keiju ISHITSUKA(keiju@ishitsuka.com)
# modified by matz
# patched by akira yamada
#
# --
# Usage:
-# require "mutex_m.rb"
-# obj = Object.new
-# obj.extend Mutex_m
-# ...
-# extended object can be handled like Mutex
+# require "mutex_m.rb"
+# obj = Object.new
+# obj.extend Mutex_m
+# ...
+# extended object can be handled like Mutex
# or
-# class Foo
-# include Mutex_m
-# ...
-# end
-# obj = Foo.new
-# this obj can be handled like Mutex
+# class Foo
+# include Mutex_m
+# ...
+# end
+# obj = Foo.new
+# this obj can be handled like Mutex
#
require 'thread'
@@ -48,11 +48,11 @@ module Mutex_m
def mu_extended
unless (defined? locked? and
- defined? lock and
- defined? unlock and
- defined? try_lock and
- defined? synchronize)
- Mutex_m.define_aliases(class<<self;self;end)
+ defined? lock and
+ defined? unlock and
+ defined? try_lock and
+ defined? synchronize)
+ Mutex_m.define_aliases(singleton_class)
end
mu_initialize
end
@@ -78,6 +78,10 @@ module Mutex_m
@_mutex.unlock
end
+ def sleep(timeout = nil)
+ @_mutex.sleep(timeout)
+ end
+
private
def mu_initialize
diff --git a/lib/net/ftp.rb b/lib/net/ftp.rb
index 40227b69d8..149fc6adc1 100644
--- a/lib/net/ftp.rb
+++ b/lib/net/ftp.rb
@@ -25,6 +25,7 @@ module Net
class FTPTempError < FTPError; end
class FTPPermError < FTPError; end
class FTPProtoError < FTPError; end
+ class FTPConnectionError < FTPError; end
# :startdoc:
#
@@ -128,26 +129,49 @@ module Net
#
def initialize(host = nil, user = nil, passwd = nil, acct = nil)
super()
- @binary = false
+ @binary = true
@passive = false
@debug_mode = false
@resume = false
+ @sock = NullSocket.new
+ @logged_in = false
if host
- connect(host)
- if user
- login(user, passwd, acct)
- end
+ connect(host)
+ if user
+ login(user, passwd, acct)
+ end
end
end
+ # A setter to toggle transfers in binary mode.
+ # +newmode+ is either +true+ or +false+
def binary=(newmode)
if newmode != @binary
@binary = newmode
- @binary ? voidcmd("TYPE I") : voidcmd("TYPE A")
+ send_type_command if @logged_in
+ end
+ end
+
+ # Sends a command to destination host, with the current binary sendmode
+ # type.
+ #
+ # If binary mode is +true+, then "TYPE I" (image) is sent, otherwise "TYPE
+ # A" (ascii) is sent.
+ def send_type_command # :nodoc:
+ if @binary
+ voidcmd("TYPE I")
+ else
+ voidcmd("TYPE A")
end
end
+ private :send_type_command
- def with_binary(newmode)
+ # Toggles transfers in binary mode and yields to a block.
+ # This preserves your current binary send mode, but allows a temporary
+ # transaction with binary sendmode of +newmode+.
+ #
+ # +newmode+ is either +true+ or +false+
+ def with_binary(newmode) # :nodoc:
oldmode = binary
self.binary = newmode
begin
@@ -159,22 +183,27 @@ module Net
private :with_binary
# Obsolete
- def return_code
+ def return_code # :nodoc:
$stderr.puts("warning: Net::FTP#return_code is obsolete and do nothing")
return "\n"
end
# Obsolete
- def return_code=(s)
+ def return_code=(s) # :nodoc:
$stderr.puts("warning: Net::FTP#return_code= is obsolete and do nothing")
end
- def open_socket(host, port)
+ # Contructs a socket with +host+ and +port+.
+ #
+ # If SOCKSSocket is defined and the environment (ENV) defines
+ # SOCKS_SERVER, then a SOCKSSocket is returned, else a TCPSocket is
+ # returned.
+ def open_socket(host, port) # :nodoc:
if defined? SOCKSSocket and ENV["SOCKS_SERVER"]
- @passive = true
- return SOCKSSocket.open(host, port)
+ @passive = true
+ return SOCKSSocket.open(host, port)
else
- return TCPSocket.open(host, port)
+ return TCPSocket.open(host, port)
end
end
private :open_socket
@@ -187,11 +216,11 @@ module Net
#
def connect(host, port = FTP_PORT)
if @debug_mode
- print "connect: ", host, ", ", port, "\n"
+ print "connect: ", host, ", ", port, "\n"
end
synchronize do
- @sock = open_socket(host, port)
- voidresp
+ @sock = open_socket(host, port)
+ voidresp
end
end
@@ -200,75 +229,89 @@ module Net
#
def set_socket(sock, get_greeting = true)
synchronize do
- @sock = sock
- if get_greeting
- voidresp
- end
+ @sock = sock
+ if get_greeting
+ voidresp
+ end
end
end
- def sanitize(s)
+ # If string +s+ includes the PASS command (password), then the contents of
+ # the password are cleaned from the string using "*"
+ def sanitize(s) # :nodoc:
if s =~ /^PASS /i
- return s[0, 5] + "*" * (s.length - 5)
+ return s[0, 5] + "*" * (s.length - 5)
else
- return s
+ return s
end
end
private :sanitize
- def putline(line)
+ # Ensures that +line+ has a control return / line feed (CRLF) and writes
+ # it to the socket.
+ def putline(line) # :nodoc:
if @debug_mode
- print "put: ", sanitize(line), "\n"
+ print "put: ", sanitize(line), "\n"
end
line = line + CRLF
@sock.write(line)
end
private :putline
- def getline
+ # Reads a line from the sock. If EOF, then it will raise EOFError
+ def getline # :nodoc:
line = @sock.readline # if get EOF, raise EOFError
line.sub!(/(\r\n|\n|\r)\z/n, "")
if @debug_mode
- print "get: ", sanitize(line), "\n"
+ print "get: ", sanitize(line), "\n"
end
return line
end
private :getline
- def getmultiline
+ # Receive a section of lines until the response code's match.
+ def getmultiline # :nodoc:
line = getline
buff = line
if line[3] == ?-
- code = line[0, 3]
- begin
- line = getline
- buff << "\n" << line
- end until line[0, 3] == code and line[3] != ?-
+ code = line[0, 3]
+ begin
+ line = getline
+ buff << "\n" << line
+ end until line[0, 3] == code and line[3] != ?-
end
return buff << "\n"
end
private :getmultiline
- def getresp
+ # Recieves a response from the destination host.
+ #
+ # Returns the response code or raises FTPTempError, FTPPermError, or
+ # FTPProtoError
+ def getresp # :nodoc:
@last_response = getmultiline
@last_response_code = @last_response[0, 3]
case @last_response_code
when /\A[123]/
- return @last_response
+ return @last_response
when /\A4/
- raise FTPTempError, @last_response
+ raise FTPTempError, @last_response
when /\A5/
- raise FTPPermError, @last_response
+ raise FTPPermError, @last_response
else
- raise FTPProtoError, @last_response
+ raise FTPProtoError, @last_response
end
end
private :getresp
- def voidresp
+ # Recieves a response.
+ #
+ # Raises FTPReplyError if the first position of the response code is not
+ # equal 2.
+ def voidresp # :nodoc:
resp = getresp
if resp[0] != ?2
- raise FTPReplyError, resp
+ raise FTPReplyError, resp
end
end
private :voidresp
@@ -278,8 +321,8 @@ module Net
#
def sendcmd(cmd)
synchronize do
- putline(cmd)
- return getresp
+ putline(cmd)
+ return getresp
end
end
@@ -288,97 +331,87 @@ module Net
#
def voidcmd(cmd)
synchronize do
- putline(cmd)
- voidresp
+ putline(cmd)
+ voidresp
end
end
- def sendport(host, port)
+ # Constructs and send the appropriate PORT (or EPRT) command
+ def sendport(host, port) # :nodoc:
af = (@sock.peeraddr)[0]
if af == "AF_INET"
- cmd = "PORT " + (host.split(".") + port.divmod(256)).join(",")
+ cmd = "PORT " + (host.split(".") + port.divmod(256)).join(",")
elsif af == "AF_INET6"
- cmd = sprintf("EPRT |2|%s|%d|", host, port)
+ cmd = sprintf("EPRT |2|%s|%d|", host, port)
else
- raise FTPProtoError, host
+ raise FTPProtoError, host
end
voidcmd(cmd)
end
private :sendport
- def makeport
+ # Constructs a TCPServer socket, and sends it the PORT command
+ #
+ # Returns the constructed TCPServer socket
+ def makeport # :nodoc:
sock = TCPServer.open(@sock.addr[3], 0)
port = sock.addr[1]
host = sock.addr[3]
- resp = sendport(host, port)
+ sendport(host, port)
return sock
end
private :makeport
- def makepasv
+ # sends the appropriate command to enable a passive connection
+ def makepasv # :nodoc:
if @sock.peeraddr[0] == "AF_INET"
- host, port = parse227(sendcmd("PASV"))
+ host, port = parse227(sendcmd("PASV"))
else
- host, port = parse229(sendcmd("EPSV"))
- # host, port = parse228(sendcmd("LPSV"))
+ host, port = parse229(sendcmd("EPSV"))
+ # host, port = parse228(sendcmd("LPSV"))
end
return host, port
end
private :makepasv
- def transfercmd(cmd, rest_offset = nil)
+ # Constructs a connection for transferring data
+ def transfercmd(cmd, rest_offset = nil) # :nodoc:
if @passive
- host, port = makepasv
- conn = open_socket(host, port)
- if @resume and rest_offset
- resp = sendcmd("REST " + rest_offset.to_s)
- if resp[0] != ?3
- raise FTPReplyError, resp
- end
- end
- resp = sendcmd(cmd)
+ host, port = makepasv
+ conn = open_socket(host, port)
+ if @resume and rest_offset
+ resp = sendcmd("REST " + rest_offset.to_s)
+ if resp[0] != ?3
+ raise FTPReplyError, resp
+ end
+ end
+ resp = sendcmd(cmd)
# skip 2XX for some ftp servers
resp = getresp if resp[0] == ?2
- if resp[0] != ?1
- raise FTPReplyError, resp
- end
+ if resp[0] != ?1
+ raise FTPReplyError, resp
+ end
else
- sock = makeport
- if @resume and rest_offset
- resp = sendcmd("REST " + rest_offset.to_s)
- if resp[0] != ?3
- raise FTPReplyError, resp
- end
- end
- resp = sendcmd(cmd)
+ sock = makeport
+ if @resume and rest_offset
+ resp = sendcmd("REST " + rest_offset.to_s)
+ if resp[0] != ?3
+ raise FTPReplyError, resp
+ end
+ end
+ resp = sendcmd(cmd)
# skip 2XX for some ftp servers
resp = getresp if resp[0] == ?2
- if resp[0] != ?1
- raise FTPReplyError, resp
- end
- conn = sock.accept
- sock.close
+ if resp[0] != ?1
+ raise FTPReplyError, resp
+ end
+ conn = sock.accept
+ sock.close
end
return conn
end
private :transfercmd
- def getaddress
- thishost = Socket.gethostname
- if not thishost.index(".")
- thishost = Socket.gethostbyname(thishost)[0]
- end
- if ENV.has_key?("LOGNAME")
- realuser = ENV["LOGNAME"]
- elsif ENV.has_key?("USER")
- realuser = ENV["USER"]
- else
- realuser = "anonymous"
- end
- return realuser + "@" + thishost
- end
- private :getaddress
-
#
# Logs in to the remote host. The session must have been previously
# connected. If +user+ is the string "anonymous" and the +password+ is
@@ -389,26 +422,27 @@ module Net
#
def login(user = "anonymous", passwd = nil, acct = nil)
if user == "anonymous" and passwd == nil
- passwd = getaddress
+ passwd = "anonymous@"
end
resp = ""
synchronize do
- resp = sendcmd('USER ' + user)
- if resp[0] == ?3
+ resp = sendcmd('USER ' + user)
+ if resp[0] == ?3
raise FTPReplyError, resp if passwd.nil?
- resp = sendcmd('PASS ' + passwd)
- end
- if resp[0] == ?3
+ resp = sendcmd('PASS ' + passwd)
+ end
+ if resp[0] == ?3
raise FTPReplyError, resp if acct.nil?
- resp = sendcmd('ACCT ' + acct)
- end
+ resp = sendcmd('ACCT ' + acct)
+ end
end
if resp[0] != ?2
- raise FTPReplyError, resp
+ raise FTPReplyError, resp
end
@welcome = resp
- self.binary = true
+ send_type_command
+ @logged_in = true
end
#
@@ -419,7 +453,7 @@ module Net
#
def retrbinary(cmd, blocksize, rest_offset = nil) # :yield: data
synchronize do
- with_binary(true) do
+ with_binary(true) do
conn = transfercmd(cmd, rest_offset)
loop do
data = conn.read(blocksize)
@@ -440,17 +474,12 @@ module Net
#
def retrlines(cmd) # :yield: line
synchronize do
- with_binary(false) do
+ with_binary(false) do
conn = transfercmd(cmd)
loop do
line = conn.gets
break if line == nil
- if line[-2, 2] == CRLF
- line = line[0 .. -3]
- elsif line[-1] == ?\n
- line = line[0 .. -2]
- end
- yield(line)
+ yield(line.sub(/\r?\n\z/, ""), !line.match(/\n\z/).nil?)
end
conn.close
voidresp
@@ -469,8 +498,8 @@ module Net
file.seek(rest_offset, IO::SEEK_SET)
end
synchronize do
- with_binary(true) do
- conn = transfercmd(cmd, rest_offset)
+ with_binary(true) do
+ conn = transfercmd(cmd)
loop do
buf = file.read(blocksize)
break if buf == nil
@@ -498,7 +527,7 @@ module Net
#
def storlines(cmd, file, &block) # :yield: line
synchronize do
- with_binary(false) do
+ with_binary(false) do
conn = transfercmd(cmd)
loop do
buf = file.gets
@@ -529,7 +558,7 @@ module Net
# chunks.
#
def getbinaryfile(remotefile, localfile = File.basename(remotefile),
- blocksize = DEFAULT_BLOCKSIZE) # :yield: data
+ blocksize = DEFAULT_BLOCKSIZE) # :yield: data
result = nil
if localfile
if @resume
@@ -543,15 +572,15 @@ module Net
result = ""
end
begin
- f.binmode if localfile
- retrbinary("RETR " + remotefile, blocksize, rest_offset) do |data|
- f.write(data) if localfile
- yield(data) if block_given?
+ f.binmode if localfile
+ retrbinary("RETR " + remotefile.to_s, blocksize, rest_offset) do |data|
+ f.write(data) if localfile
+ yield(data) if block_given?
result.concat(data) if result
- end
+ end
return result
ensure
- f.close if localfile
+ f.close if localfile
end
end
@@ -570,14 +599,15 @@ module Net
result = ""
end
begin
- retrlines("RETR " + remotefile) do |line|
- f.puts(line) if localfile
- yield(line) if block_given?
- result.concat(line + "\n") if result
- end
+ retrlines("RETR " + remotefile) do |line, newline|
+ l = newline ? line + "\n" : line
+ f.print(l) if localfile
+ yield(line, newline) if block_given?
+ result.concat(l) if result
+ end
return result
ensure
- f.close if localfile
+ f.close if localfile
end
end
@@ -586,11 +616,11 @@ module Net
# binary). See #gettextfile and #getbinaryfile.
#
def get(remotefile, localfile = File.basename(remotefile),
- blocksize = DEFAULT_BLOCKSIZE, &block) # :yield: data
+ blocksize = DEFAULT_BLOCKSIZE, &block) # :yield: data
if @binary
- getbinaryfile(remotefile, localfile, blocksize, &block)
+ getbinaryfile(remotefile, localfile, blocksize, &block)
else
- gettextfile(remotefile, localfile, &block)
+ gettextfile(remotefile, localfile, &block)
end
end
@@ -600,7 +630,7 @@ module Net
# data in +blocksize+ chunks.
#
def putbinaryfile(localfile, remotefile = File.basename(localfile),
- blocksize = DEFAULT_BLOCKSIZE, &block) # :yield: data
+ blocksize = DEFAULT_BLOCKSIZE, &block) # :yield: data
if @resume
begin
rest_offset = size(remotefile)
@@ -608,14 +638,18 @@ module Net
rest_offset = nil
end
else
- rest_offset = nil
+ rest_offset = nil
end
f = open(localfile)
begin
- f.binmode
- storbinary("STOR " + remotefile, f, blocksize, rest_offset, &block)
+ f.binmode
+ if rest_offset
+ storbinary("APPE " + remotefile, f, blocksize, rest_offset, &block)
+ else
+ storbinary("STOR " + remotefile, f, blocksize, rest_offset, &block)
+ end
ensure
- f.close
+ f.close
end
end
@@ -627,9 +661,9 @@ module Net
def puttextfile(localfile, remotefile = File.basename(localfile), &block) # :yield: line
f = open(localfile)
begin
- storlines("STOR " + remotefile, f, &block)
+ storlines("STOR " + remotefile, f, &block)
ensure
- f.close
+ f.close
end
end
@@ -638,16 +672,19 @@ module Net
# (text or binary). See #puttextfile and #putbinaryfile.
#
def put(localfile, remotefile = File.basename(localfile),
- blocksize = DEFAULT_BLOCKSIZE, &block)
+ blocksize = DEFAULT_BLOCKSIZE, &block)
if @binary
- putbinaryfile(localfile, remotefile, blocksize, &block)
+ putbinaryfile(localfile, remotefile, blocksize, &block)
else
- puttextfile(localfile, remotefile, &block)
+ puttextfile(localfile, remotefile, &block)
end
end
#
- # Sends the ACCT command. TODO: more info.
+ # Sends the ACCT command.
+ #
+ # This is a less common FTP command, to send account
+ # information if the destination host requires it.
#
def acct(account)
cmd = "ACCT " + account
@@ -660,11 +697,11 @@ module Net
def nlst(dir = nil)
cmd = "NLST"
if dir
- cmd = cmd + " " + dir
+ cmd = cmd + " " + dir
end
files = []
retrlines(cmd) do |line|
- files.push(line)
+ files.push(line)
end
return files
end
@@ -676,16 +713,16 @@ module Net
def list(*args, &block) # :yield: line
cmd = "LIST"
args.each do |arg|
- cmd = cmd + " " + arg
+ cmd = cmd + " " + arg.to_s
end
if block
- retrlines(cmd, &block)
+ retrlines(cmd, &block)
else
- lines = []
- retrlines(cmd) do |line|
- lines << line
- end
- return lines
+ lines = []
+ retrlines(cmd) do |line|
+ lines << line
+ end
+ return lines
end
end
alias ls list
@@ -697,7 +734,7 @@ module Net
def rename(fromname, toname)
resp = sendcmd("RNFR " + fromname)
if resp[0] != ?3
- raise FTPReplyError, resp
+ raise FTPReplyError, resp
end
voidcmd("RNTO " + toname)
end
@@ -708,11 +745,11 @@ module Net
def delete(filename)
resp = sendcmd("DELE " + filename)
if resp[0, 3] == "250"
- return
+ return
elsif resp[0] == ?5
- raise FTPPermError, resp
+ raise FTPPermError, resp
else
- raise FTPReplyError, resp
+ raise FTPReplyError, resp
end
end
@@ -721,14 +758,14 @@ module Net
#
def chdir(dirname)
if dirname == ".."
- begin
- voidcmd("CDUP")
- return
- rescue FTPPermError => e
- if e.message[0, 3] != "500"
- raise e
- end
- end
+ begin
+ voidcmd("CDUP")
+ return
+ rescue FTPPermError => e
+ if e.message[0, 3] != "500"
+ raise e
+ end
+ end
end
cmd = "CWD " + dirname
voidcmd(cmd)
@@ -789,7 +826,7 @@ module Net
def system
resp = sendcmd("SYST")
if resp[0, 3] != "215"
- raise FTPReplyError, resp
+ raise FTPReplyError, resp
end
return resp[4 .. -1]
end
@@ -803,7 +840,7 @@ module Net
@sock.send(line, Socket::MSG_OOB)
resp = getmultiline
unless ["426", "226", "225"].include?(resp[0, 3])
- raise FTPProtoError, resp
+ raise FTPProtoError, resp
end
return resp
end
@@ -824,7 +861,7 @@ module Net
def mdtm(filename)
resp = sendcmd("MDTM " + filename)
if resp[0, 3] == "213"
- return resp[3 .. -1].strip
+ return resp[3 .. -1].strip
end
end
@@ -834,7 +871,7 @@ module Net
def help(arg = nil)
cmd = "HELP"
if arg
- cmd = cmd + " " + arg
+ cmd = cmd + " " + arg
end
sendcmd(cmd)
end
@@ -849,6 +886,8 @@ module Net
#
# Issues a NOOP command.
#
+ # Does nothing except return a response.
+ #
def noop
voidcmd("NOOP")
end
@@ -876,18 +915,22 @@ module Net
@sock == nil or @sock.closed?
end
- def parse227(resp)
+ # handler for response code 227
+ # (Entering Passive Mode (h1,h2,h3,h4,p1,p2))
+ #
+ # Returns host and port.
+ def parse227(resp) # :nodoc:
if resp[0, 3] != "227"
- raise FTPReplyError, resp
+ raise FTPReplyError, resp
end
left = resp.index("(")
right = resp.index(")")
if left == nil or right == nil
- raise FTPProtoError, resp
+ raise FTPProtoError, resp
end
numbers = resp[left + 1 .. right - 1].split(",")
if numbers.length != 6
- raise FTPProtoError, resp
+ raise FTPProtoError, resp
end
host = numbers[0, 4].join(".")
port = (numbers[4].to_i << 8) + numbers[5].to_i
@@ -895,50 +938,58 @@ module Net
end
private :parse227
- def parse228(resp)
+ # handler for response code 228
+ # (Entering Long Passive Mode)
+ #
+ # Returns host and port.
+ def parse228(resp) # :nodoc:
if resp[0, 3] != "228"
- raise FTPReplyError, resp
+ raise FTPReplyError, resp
end
left = resp.index("(")
right = resp.index(")")
if left == nil or right == nil
- raise FTPProtoError, resp
+ raise FTPProtoError, resp
end
numbers = resp[left + 1 .. right - 1].split(",")
if numbers[0] == "4"
- if numbers.length != 9 || numbers[1] != "4" || numbers[2 + 4] != "2"
- raise FTPProtoError, resp
- end
- host = numbers[2, 4].join(".")
- port = (numbers[7].to_i << 8) + numbers[8].to_i
+ if numbers.length != 9 || numbers[1] != "4" || numbers[2 + 4] != "2"
+ raise FTPProtoError, resp
+ end
+ host = numbers[2, 4].join(".")
+ port = (numbers[7].to_i << 8) + numbers[8].to_i
elsif numbers[0] == "6"
- if numbers.length != 21 || numbers[1] != "16" || numbers[2 + 16] != "2"
- raise FTPProtoError, resp
- end
- v6 = ["", "", "", "", "", "", "", ""]
- for i in 0 .. 7
- v6[i] = sprintf("%02x%02x", numbers[(i * 2) + 2].to_i,
- numbers[(i * 2) + 3].to_i)
- end
- host = v6[0, 8].join(":")
- port = (numbers[19].to_i << 8) + numbers[20].to_i
+ if numbers.length != 21 || numbers[1] != "16" || numbers[2 + 16] != "2"
+ raise FTPProtoError, resp
+ end
+ v6 = ["", "", "", "", "", "", "", ""]
+ for i in 0 .. 7
+ v6[i] = sprintf("%02x%02x", numbers[(i * 2) + 2].to_i,
+ numbers[(i * 2) + 3].to_i)
+ end
+ host = v6[0, 8].join(":")
+ port = (numbers[19].to_i << 8) + numbers[20].to_i
end
return host, port
end
private :parse228
- def parse229(resp)
+ # handler for response code 229
+ # (Extended Passive Mode Entered)
+ #
+ # Returns host and port.
+ def parse229(resp) # :nodoc:
if resp[0, 3] != "229"
- raise FTPReplyError, resp
+ raise FTPReplyError, resp
end
left = resp.index("(")
right = resp.index(")")
if left == nil or right == nil
- raise FTPProtoError, resp
+ raise FTPProtoError, resp
end
numbers = resp[left + 1 .. right - 1].split(resp[left + 1, 1])
if numbers.length != 4
- raise FTPProtoError, resp
+ raise FTPProtoError, resp
end
port = numbers[3].to_i
host = (@sock.peeraddr())[3]
@@ -946,32 +997,43 @@ module Net
end
private :parse229
- def parse257(resp)
+ # handler for response code 257
+ # ("PATHNAME" created)
+ #
+ # Returns host and port.
+ def parse257(resp) # :nodoc:
if resp[0, 3] != "257"
- raise FTPReplyError, resp
+ raise FTPReplyError, resp
end
if resp[3, 2] != ' "'
- return ""
+ return ""
end
dirname = ""
i = 5
n = resp.length
while i < n
- c = resp[i, 1]
- i = i + 1
- if c == '"'
- if i > n or resp[i, 1] != '"'
- break
- end
- i = i + 1
- end
- dirname = dirname + c
+ c = resp[i, 1]
+ i = i + 1
+ if c == '"'
+ if i > n or resp[i, 1] != '"'
+ break
+ end
+ i = i + 1
+ end
+ dirname = dirname + c
end
return dirname
end
private :parse257
- end
+ # :stopdoc:
+ class NullSocket
+ def method_missing(mid, *args)
+ raise FTPConnectionError, "not connected"
+ end
+ end
+ # :startdoc:
+ end
end
diff --git a/lib/net/http.rb b/lib/net/http.rb
index d4cbedbda1..fd8c802935 100644
--- a/lib/net/http.rb
+++ b/lib/net/http.rb
@@ -18,15 +18,10 @@
#
# See Net::HTTP for an overview and examples.
#
-# NOTE: You can find Japanese version of this document here:
-# http://www.ruby-lang.org/ja/man/html/net_http.html
-#
-#--
-# $Id$
-#++
require 'net/protocol'
require 'uri'
+autoload :OpenSSL, 'openssl'
module Net #:nodoc:
@@ -35,258 +30,339 @@ module Net #:nodoc:
class HTTPHeaderSyntaxError < StandardError; end
# :startdoc:
- # == What Is This Library?
+ # == An HTTP client API for Ruby.
#
- # This library provides your program functions to access WWW
- # documents via HTTP, Hyper Text Transfer Protocol version 1.1.
- # For details of HTTP, refer to [RFC2616]
- # (http://www.ietf.org/rfc/rfc2616.txt).
+ # Net::HTTP provides a rich library which can be used to build HTTP
+ # user-agents. For more details about HTTP see
+ # [RFC2616](http://www.ietf.org/rfc/rfc2616.txt)
#
- # == Examples
+ # Net::HTTP is designed to work closely with URI. URI::HTTP#host,
+ # URI::HTTP#port and URI::HTTP#request_uri are designed to work with
+ # Net::HTTP.
#
- # === Getting Document From WWW Server
+ # If you are only performing a few GET requests you should try OpenURI.
#
- # Example #1: Simple GET+print
+ # == Simple Examples
#
- # require 'net/http'
- # Net::HTTP.get_print 'www.example.com', '/index.html'
+ # All examples assume you have loaded Net::HTTP with:
#
- # Example #2: Simple GET+print by URL
+ # require 'net/http'
#
- # require 'net/http'
- # require 'uri'
- # Net::HTTP.get_print URI.parse('http://www.example.com/index.html')
+ # This will also require 'uri' so you don't need to require it separately.
#
- # Example #3: More generic GET+print
+ # The Net::HTTP methods in the following section do not persist
+ # connections. They are not recommended if you are performing many HTTP
+ # requests.
#
- # require 'net/http'
- # require 'uri'
+ # === GET
#
- # url = URI.parse('http://www.example.com/index.html')
- # res = Net::HTTP.start(url.host, url.port) {|http|
- # http.get('/index.html')
- # }
- # puts res.body
+ # Net::HTTP.get('example.com', '/index.html') # => String
#
- # Example #4: More generic GET+print
+ # === GET by URI
#
- # require 'net/http'
+ # uri = URI('http://example.com/index.html?count=10')
+ # Net::HTTP.get(uri) # => String
#
- # url = URI.parse('http://www.example.com/index.html')
- # req = Net::HTTP::Get.new(url.path)
- # res = Net::HTTP.start(url.host, url.port) {|http|
- # http.request(req)
- # }
- # puts res.body
+ # === GET with Dynamic Parameters
#
- # === Posting Form Data
+ # uri = URI('http://example.com/index.html')
+ # params = { :limit => 10, :page => 3 }
+ # uri.query = URI.encode_www_form(params)
#
- # require 'net/http'
- # require 'uri'
+ # res = Net::HTTP.get_response(uri)
+ # puts res.body if res.is_a?(Net::HTTPSuccess)
#
- # #1: Simple POST
- # res = Net::HTTP.post_form(URI.parse('http://www.example.com/search.cgi'),
- # {'q' => 'ruby', 'max' => '50'})
- # puts res.body
+ # === POST
#
- # #2: POST with basic authentication
- # res = Net::HTTP.post_form(URI.parse('http://jack:pass@www.example.com/todo.cgi'),
- # {'from' => '2005-01-01',
- # 'to' => '2005-03-31'})
- # puts res.body
+ # uri = URI('http://www.example.com/search.cgi')
+ # res = Net::HTTP.post_form(uri, 'q' => 'ruby', 'max' => '50')
+ # puts res.body
#
- # #3: Detailed control
- # url = URI.parse('http://www.example.com/todo.cgi')
- # req = Net::HTTP::Post.new(url.path)
- # req.basic_auth 'jack', 'pass'
- # req.set_form_data({'from' => '2005-01-01', 'to' => '2005-03-31'}, ';')
- # res = Net::HTTP.new(url.host, url.port).start {|http| http.request(req) }
- # case res
- # when Net::HTTPSuccess, Net::HTTPRedirection
- # # OK
- # else
- # res.error!
- # end
+ # === POST with Multiple Values
+ #
+ # uri = URI('http://www.example.com/search.cgi')
+ # res = Net::HTTP.post_form(uri, 'q' => ['ruby', 'perl'], 'max' => '50')
+ # puts res.body
#
- # #4: Multiple values
- # res = Net::HTTP.post_form(URI.parse('http://www.example.com/search.cgi'),
- # {'q' => ['ruby', 'perl'], 'max' => '50'})
- # puts res.body
+ # == How to use Net::HTTP
#
- # === Accessing via Proxy
+ # The following example code can be used as the basis of a HTTP user-agent
+ # which can perform a variety of request types using persistent
+ # connections.
#
- # Net::HTTP.Proxy creates http proxy class. It has same
- # methods of Net::HTTP but its instances always connect to
- # proxy, instead of given host.
+ # uri = URI('http://example.com/some_path?query=string')
#
- # require 'net/http'
+ # Net::HTTP.start(uri.host, uri.port) do |http|
+ # request = Net::HTTP::Get.new uri.request_uri
#
- # proxy_addr = 'your.proxy.host'
- # proxy_port = 8080
- # :
- # Net::HTTP::Proxy(proxy_addr, proxy_port).start('www.example.com') {|http|
- # # always connect to your.proxy.addr:8080
- # :
- # }
+ # response = http.request request # Net::HTTPResponse object
+ # end
#
- # Since Net::HTTP.Proxy returns Net::HTTP itself when proxy_addr is nil,
- # there's no need to change code if there's proxy or not.
+ # Net::HTTP::start immediately creates a connection to an HTTP server which
+ # is kept open for the duration of the block. The connection will remain
+ # open for multiple requests in the block if the server indicates it
+ # supports persistent connections.
#
- # There are two additional parameters in Net::HTTP.Proxy which allow to
- # specify proxy user name and password:
+ # The request types Net::HTTP supports are listed below in the section "HTTP
+ # Request Classes".
#
- # Net::HTTP::Proxy(proxy_addr, proxy_port, proxy_user = nil, proxy_pass = nil)
+ # If you wish to re-use a connection across multiple HTTP requests without
+ # automatically closing it you can use ::new instead of ::start. #request
+ # will automatically open a connection to the server if one is not currently
+ # open. You can manually close the connection with #finish.
#
- # You may use them to work with authorization-enabled proxies:
+ # === Response Data
#
- # require 'net/http'
- # require 'uri'
+ # uri = URI('http://example.com/index.html')
+ # res = Net::HTTP.get_response(uri)
#
- # proxy_host = 'your.proxy.host'
- # proxy_port = 8080
- # uri = URI.parse(ENV['http_proxy'])
- # proxy_user, proxy_pass = uri.userinfo.split(/:/) if uri.userinfo
- # Net::HTTP::Proxy(proxy_host, proxy_port,
- # proxy_user, proxy_pass).start('www.example.com') {|http|
- # # always connect to your.proxy.addr:8080 using specified username and password
- # :
- # }
+ # # Headers
+ # res['Set-Cookie'] # => String
+ # res.get_fields('set-cookie') # => Array
+ # res.to_hash['set-cookie'] # => Array
+ # puts "Headers: #{res.to_hash.inspect}"
#
- # Note that net/http never rely on HTTP_PROXY environment variable.
- # If you want to use proxy, set it explicitly.
+ # # Status
+ # puts res.code # => '200'
+ # puts res.message # => 'OK'
+ # puts res.class.name # => 'HTTPOK'
+ #
+ # # Body
+ # puts res.body if res.response_body_permitted?
#
# === Following Redirection
#
- # require 'net/http'
- # require 'uri'
+ # Each Net::HTTPResponse object belongs to a class for its response code.
#
- # def fetch(uri_str, limit = 10)
- # # You should choose better exception.
- # raise ArgumentError, 'HTTP redirect too deep' if limit == 0
+ # For example, all 2XX responses are instances of a Net::HTTPSuccess
+ # subclass, a 3XX response is an instance of a Net::HTTPRedirection
+ # subclass and a 200 response is an instance of the Net::HTTPOK class. For
+ # details of response classes, see the section "HTTP Response Classes"
+ # below.
#
- # response = Net::HTTP.get_response(URI.parse(uri_str))
- # case response
- # when Net::HTTPSuccess then response
- # when Net::HTTPRedirection then fetch(response['location'], limit - 1)
- # else
- # response.error!
- # end
+ # Using a case statement you can handle various types of responses properly:
+ #
+ # def fetch(uri_str, limit = 10)
+ # # You should choose a better exception.
+ # raise ArgumentError, 'too many HTTP redirects' if limit == 0
+ #
+ # response = Net::HTTP.get_response(URI(uri_str))
+ #
+ # case response
+ # when Net::HTTPSuccess then
+ # response
+ # when Net::HTTPRedirection then
+ # location = response['location']
+ # warn "redirected to #{location}"
+ # fetch(location, limit - 1)
+ # else
+ # response.value
# end
+ # end
+ #
+ # print fetch('http://www.ruby-lang.org')
+ #
+ # === POST
+ #
+ # A POST can be made using the Net::HTTP::Post request class. This example
+ # creates a urlencoded POST body:
#
- # print fetch('http://www.ruby-lang.org')
+ # uri = URI('http://www.example.com/todo.cgi')
+ # req = Net::HTTP::Post.new(uri.path)
+ # req.set_form_data('from' => '2005-01-01', 'to' => '2005-03-31')
#
- # Net::HTTPSuccess and Net::HTTPRedirection is a HTTPResponse class.
- # All HTTPResponse objects belong to its own response class which
- # indicate HTTP result status. For details of response classes,
- # see section "HTTP Response Classes".
+ # res = Net::HTTP.start(uri.hostname, uri.port) do |http|
+ # http.request(req)
+ # end
+ #
+ # case res
+ # when Net::HTTPSuccess, Net::HTTPRedirection
+ # # OK
+ # else
+ # res.value
+ # end
+ #
+ # At this time Net::HTTP does not support multipart/form-data. To send
+ # multipart/form-data use Net::HTTPRequest#body= and
+ # Net::HTTPRequest#content_type=:
+ #
+ # req = Net::HTTP::Post.new(uri.path)
+ # req.body = multipart_data
+ # req.content_type = 'multipart/form-data'
+ #
+ # Other requests that can contain a body such as PUT can be created in the
+ # same way using the corresponding request class (Net::HTTP::Put).
+ #
+ # === Setting Headers
+ #
+ # The following example performs a conditional GET using the
+ # If-Modified-Since header. If the files has not been modified since the
+ # time in the header a Not Modified response will be returned. See RFC 2616
+ # section 9.3 for further details.
+ #
+ # uri = URI('http://example.com/cached_response')
+ # file = File.stat 'cached_response'
+ #
+ # req = Net::HTTP::Get.new(uri.request_uri)
+ # req['If-Modified-Since'] = file.mtime.rfc2822
+ #
+ # res = Net::HTTP.start(uri.hostname, uri.port) {|http|
+ # http.request(req)
+ # }
+ #
+ # open 'cached_response', 'w' do |io|
+ # io.write res.body
+ # end if res.is_a?(Net::HTTPSuccess)
#
# === Basic Authentication
#
- # require 'net/http'
- #
- # Net::HTTP.start('www.example.com') {|http|
- # req = Net::HTTP::Get.new('/secret-page.html')
- # req.basic_auth 'account', 'password'
- # response = http.request(req)
- # print response.body
- # }
- #
- # === HTTP Request Classes
- #
- # Here is HTTP request class hierarchy.
- #
- # Net::HTTPRequest
- # Net::HTTP::Get
- # Net::HTTP::Head
- # Net::HTTP::Post
- # Net::HTTP::Put
- # Net::HTTP::Proppatch
- # Net::HTTP::Lock
- # Net::HTTP::Unlock
- # Net::HTTP::Options
- # Net::HTTP::Propfind
- # Net::HTTP::Delete
- # Net::HTTP::Move
- # Net::HTTP::Copy
- # Net::HTTP::Mkcol
- # Net::HTTP::Trace
- #
- # === HTTP Response Classes
- #
- # Here is HTTP response class hierarchy.
- # All classes are defined in Net module.
- #
- # HTTPResponse
- # HTTPUnknownResponse
- # HTTPInformation # 1xx
- # HTTPContinue # 100
- # HTTPSwitchProtocol # 101
- # HTTPSuccess # 2xx
- # HTTPOK # 200
- # HTTPCreated # 201
- # HTTPAccepted # 202
- # HTTPNonAuthoritativeInformation # 203
- # HTTPNoContent # 204
- # HTTPResetContent # 205
- # HTTPPartialContent # 206
- # HTTPRedirection # 3xx
- # HTTPMultipleChoice # 300
- # HTTPMovedPermanently # 301
- # HTTPFound # 302
- # HTTPSeeOther # 303
- # HTTPNotModified # 304
- # HTTPUseProxy # 305
- # HTTPTemporaryRedirect # 307
- # HTTPClientError # 4xx
- # HTTPBadRequest # 400
- # HTTPUnauthorized # 401
- # HTTPPaymentRequired # 402
- # HTTPForbidden # 403
- # HTTPNotFound # 404
- # HTTPMethodNotAllowed # 405
- # HTTPNotAcceptable # 406
- # HTTPProxyAuthenticationRequired # 407
- # HTTPRequestTimeOut # 408
- # HTTPConflict # 409
- # HTTPGone # 410
- # HTTPLengthRequired # 411
- # HTTPPreconditionFailed # 412
- # HTTPRequestEntityTooLarge # 413
- # HTTPRequestURITooLong # 414
- # HTTPUnsupportedMediaType # 415
- # HTTPRequestedRangeNotSatisfiable # 416
- # HTTPExpectationFailed # 417
- # HTTPServerError # 5xx
- # HTTPInternalServerError # 500
- # HTTPNotImplemented # 501
- # HTTPBadGateway # 502
- # HTTPServiceUnavailable # 503
- # HTTPGatewayTimeOut # 504
- # HTTPVersionNotSupported # 505
- #
- # == Switching Net::HTTP versions
- #
- # You can use net/http.rb 1.1 features (bundled with Ruby 1.6)
- # by calling HTTP.version_1_1. Calling Net::HTTP.version_1_2
- # allows you to use 1.2 features again.
- #
- # # example
- # Net::HTTP.start {|http1| ...(http1 has 1.2 features)... }
- #
- # Net::HTTP.version_1_1
- # Net::HTTP.start {|http2| ...(http2 has 1.1 features)... }
- #
- # Net::HTTP.version_1_2
- # Net::HTTP.start {|http3| ...(http3 has 1.2 features)... }
- #
- # This function is NOT thread-safe.
+ # Basic authentication is performed according to
+ # [RFC2617](http://www.ietf.org/rfc/rfc2617.txt)
+ #
+ # uri = URI('http://example.com/index.html?key=value')
+ #
+ # req = Net::HTTP::Get.new(uri.request_uri)
+ # req.basic_auth 'user', 'pass'
+ #
+ # res = Net::HTTP.start(uri.hostname, uri.port) {|http|
+ # http.request(req)
+ # }
+ # puts res.body
+ #
+ # === Streaming Response Bodies
+ #
+ # By default Net::HTTP reads an entire response into memory. If you are
+ # handling large files or wish to implement a progress bar you can instead
+ # stream the body directly to an IO.
+ #
+ # uri = URI('http://example.com/large_file')
+ #
+ # Net::HTTP.start(uri.host, uri.port) do |http|
+ # request = Net::HTTP::Get.new uri.request_uri
+ #
+ # http.request request do |response|
+ # open 'large_file', 'w' do |io|
+ # response.read_body do |chunk|
+ # io.write chunk
+ # end
+ # end
+ # end
+ # end
+ #
+ # === HTTPS
+ #
+ # HTTPS is enabled for an HTTP connection by Net::HTTP#use_ssl=.
+ #
+ # uri = URI('https://secure.example.com/some_path?query=string')
+ #
+ # Net::HTTP.start(uri.host, uri.port,
+ # :use_ssl => uri.scheme == 'https').start do |http|
+ # request = Net::HTTP::Get.new uri.request_uri
+ #
+ # response = http.request request # Net::HTTPResponse object
+ # end
+ #
+ # In previous versions of ruby you would need to require 'net/https' to use
+ # HTTPS. This is no longer true.
+ #
+ # === Proxies
+ #
+ # Net::HTTP::Proxy has the same methods as Net::HTTP but its instances always
+ # connect via the proxy instead of directly to the given host.
+ #
+ # proxy_addr = 'your.proxy.host'
+ # proxy_port = 8080
+ #
+ # Net::HTTP::Proxy(proxy_addr, proxy_port).start('www.example.com') {|http|
+ # # always connect to your.proxy.addr:8080
+ # }
+ #
+ # Net::HTTP::Proxy returns a Net::HTTP instance when proxy_addr is nil so
+ # there is no need for conditional code.
+ #
+ # See Net::HTTP::Proxy for further details and examples such as proxies that
+ # require a username and password.
+ #
+ # == HTTP Request Classes
+ #
+ # Here is the HTTP request class hierarchy.
+ #
+ # * Net::HTTPRequest
+ # * Net::HTTP::Get
+ # * Net::HTTP::Head
+ # * Net::HTTP::Post
+ # * Net::HTTP::Put
+ # * Net::HTTP::Proppatch
+ # * Net::HTTP::Lock
+ # * Net::HTTP::Unlock
+ # * Net::HTTP::Options
+ # * Net::HTTP::Propfind
+ # * Net::HTTP::Delete
+ # * Net::HTTP::Move
+ # * Net::HTTP::Copy
+ # * Net::HTTP::Mkcol
+ # * Net::HTTP::Trace
+ #
+ # == HTTP Response Classes
+ #
+ # Here is HTTP response class hierarchy. All classes are defined in Net
+ # module and are subclasses of Net::HTTPResponse.
+ #
+ # HTTPUnknownResponse:: For unhandled HTTP extensions
+ # HTTPInformation:: 1xx
+ # HTTPContinue:: 100
+ # HTTPSwitchProtocol:: 101
+ # HTTPSuccess:: 2xx
+ # HTTPOK:: 200
+ # HTTPCreated:: 201
+ # HTTPAccepted:: 202
+ # HTTPNonAuthoritativeInformation:: 203
+ # HTTPNoContent:: 204
+ # HTTPResetContent:: 205
+ # HTTPPartialContent:: 206
+ # HTTPRedirection:: 3xx
+ # HTTPMultipleChoice:: 300
+ # HTTPMovedPermanently:: 301
+ # HTTPFound:: 302
+ # HTTPSeeOther:: 303
+ # HTTPNotModified:: 304
+ # HTTPUseProxy:: 305
+ # HTTPTemporaryRedirect:: 307
+ # HTTPClientError:: 4xx
+ # HTTPBadRequest:: 400
+ # HTTPUnauthorized:: 401
+ # HTTPPaymentRequired:: 402
+ # HTTPForbidden:: 403
+ # HTTPNotFound:: 404
+ # HTTPMethodNotAllowed:: 405
+ # HTTPNotAcceptable:: 406
+ # HTTPProxyAuthenticationRequired:: 407
+ # HTTPRequestTimeOut:: 408
+ # HTTPConflict:: 409
+ # HTTPGone:: 410
+ # HTTPLengthRequired:: 411
+ # HTTPPreconditionFailed:: 412
+ # HTTPRequestEntityTooLarge:: 413
+ # HTTPRequestURITooLong:: 414
+ # HTTPUnsupportedMediaType:: 415
+ # HTTPRequestedRangeNotSatisfiable:: 416
+ # HTTPExpectationFailed:: 417
+ # HTTPServerError:: 5xx
+ # HTTPInternalServerError:: 500
+ # HTTPNotImplemented:: 501
+ # HTTPBadGateway:: 502
+ # HTTPServiceUnavailable:: 503
+ # HTTPGatewayTimeOut:: 504
+ # HTTPVersionNotSupported:: 505
+ #
+ # There is also the Net::HTTPBadResponse exception which is raised when
+ # there is a protocol error.
#
class HTTP < Protocol
# :stopdoc:
Revision = %q$Revision$.split[1]
HTTPVersion = '1.1'
- @newimpl = true
begin
require 'zlib'
require 'stringio' #for our purposes (unpacking gzip) lump these together
@@ -297,33 +373,19 @@ module Net #:nodoc:
# :startdoc:
# Turns on net/http 1.2 (ruby 1.8) features.
- # Defaults to ON in ruby 1.8.
- #
- # I strongly recommend to call this method always.
- #
- # require 'net/http'
- # Net::HTTP.version_1_2
- #
+ # Defaults to ON in ruby 1.8 or later.
def HTTP.version_1_2
- @newimpl = true
- end
-
- # Turns on net/http 1.1 (ruby 1.6) features.
- # Defaults to OFF in ruby 1.8.
- def HTTP.version_1_1
- @newimpl = false
+ true
end
- # true if net/http is in version 1.2 mode.
+ # Returns true if net/http is in version 1.2 mode.
# Defaults to true.
def HTTP.version_1_2?
- @newimpl
+ true
end
- # true if net/http is in version 1.1 compatible mode.
- # Defaults to true.
- def HTTP.version_1_1?
- not @newimpl
+ def HTTP.version_1_1? #:nodoc:
+ false
end
class << HTTP
@@ -336,11 +398,11 @@ module Net #:nodoc:
#
#
- # Get body from target and output it to +$stdout+. The
- # target can either be specified as (+uri+), or as
- # (+host+, +path+, +port+ = 80); so:
+ # Gets the body text from the target and outputs it to $stdout. The
+ # target can either be specified as
+ # (+uri+), or as (+host+, +path+, +port+ = 80); so:
#
- # Net::HTTP.get_print URI.parse('http://www.example.com/index.html')
+ # Net::HTTP.get_print URI('http://www.example.com/index.html')
#
# or:
#
@@ -355,11 +417,11 @@ module Net #:nodoc:
nil
end
- # Send a GET request to the target and return the response
+ # Sends a GET request to the target and returns the HTTP response
# as a string. The target can either be specified as
# (+uri+), or as (+host+, +path+, +port+ = 80); so:
#
- # print Net::HTTP.get(URI.parse('http://www.example.com/index.html'))
+ # print Net::HTTP.get(URI('http://www.example.com/index.html'))
#
# or:
#
@@ -369,11 +431,11 @@ module Net #:nodoc:
get_response(uri_or_host, path, port).body
end
- # Send a GET request to the target and return the response
+ # Sends a GET request to the target and returns the HTTP response
# as a Net::HTTPResponse object. The target can either be specified as
# (+uri+), or as (+host+, +path+, +port+ = 80); so:
#
- # res = Net::HTTP.get_response(URI.parse('http://www.example.com/index.html'))
+ # res = Net::HTTP.get_response(URI('http://www.example.com/index.html'))
# print res.body
#
# or:
@@ -389,32 +451,35 @@ module Net #:nodoc:
}
else
uri = uri_or_host
- new(uri.host, uri.port).start {|http|
+ new(uri.hostname, uri.port).start {|http|
return http.request_get(uri.request_uri, &block)
}
end
end
- # Posts HTML form data to the +URL+.
- # Form data must be represented as a Hash of String to String, e.g:
+ # Posts HTML form data to the specified URI object.
+ # The form data must be provided as a Hash mapping from String to String.
+ # Example:
#
# { "cmd" => "search", "q" => "ruby", "max" => "50" }
#
- # This method also does Basic Authentication iff +URL+.user exists.
+ # This method also does Basic Authentication iff +url+.user exists.
+ # But userinfo for authentication is deprecated (RFC3986).
+ # So this feature will be removed.
#
# Example:
#
# require 'net/http'
# require 'uri'
#
- # HTTP.post_form URI.parse('http://www.example.com/search.cgi'),
+ # HTTP.post_form URI('http://www.example.com/search.cgi'),
# { "q" => "ruby", "max" => "50" }
#
def HTTP.post_form(url, params)
- req = Post.new(url.path)
+ req = Post.new(url.request_uri)
req.form_data = params
req.basic_auth url.user, url.password if url.user
- new(url.host, url.port).start {|http|
+ new(url.hostname, url.port).start {|http|
http.request(req)
}
end
@@ -442,34 +507,71 @@ module Net #:nodoc:
BufferedIO
end
- # creates a new Net::HTTP object and opens its TCP connection and
- # HTTP session. If the optional block is given, the newly
+ # call-seq:
+ # HTTP.start(address, port, p_addr, p_port, p_user, p_pass, &block)
+ # HTTP.start(address, port=nil, p_addr=nil, p_port=nil, p_user=nil, p_pass=nil, opt, &block)
+ #
+ # Creates a new Net::HTTP object, then additionally opens the TCP
+ # connection and HTTP session.
+ #
+ # Arguments are the following:
+ # _address_ :: hostname or IP address of the server
+ # _port_ :: port of the server
+ # _p_addr_ :: address of proxy
+ # _p_port_ :: port of proxy
+ # _p_user_ :: user of proxy
+ # _p_pass_ :: pass of proxy
+ # _opt_ :: optional hash
+ #
+ # _opt_ sets following values by its accessor.
+ # The keys are ca_file, ca_path, cert, cert_store, ciphers,
+ # close_on_empty_response, key, open_timeout, read_timeout, ssl_timeout,
+ # ssl_version, use_ssl, verify_callback, verify_depth and verify_mode.
+ # If you set :use_ssl as true, you can use https and default value of
+ # verify_mode is set as OpenSSL::SSL::VERIFY_PEER.
+ #
+ # If the optional block is given, the newly
# created Net::HTTP object is passed to it and closed when the
# block finishes. In this case, the return value of this method
# is the return value of the block. If no block is given, the
# return value of this method is the newly created Net::HTTP object
- # itself, and the caller is responsible for closing it upon completion.
- def HTTP.start(address, port = nil, p_addr = nil, p_port = nil, p_user = nil, p_pass = nil, &block) # :yield: +http+
- new(address, port, p_addr, p_port, p_user, p_pass).start(&block)
+ # itself, and the caller is responsible for closing it upon completion
+ # using the finish() method.
+ def HTTP.start(address, *arg, &block) # :yield: +http+
+ arg.pop if opt = Hash.try_convert(arg[-1])
+ port, p_addr, p_port, p_user, p_pass = *arg
+ port = https_default_port if !port && opt && opt[:use_ssl]
+ http = new(address, port, p_addr, p_port, p_user, p_pass)
+
+ if opt
+ if opt[:use_ssl]
+ opt = {verify_mode: OpenSSL::SSL::VERIFY_PEER}.update(opt)
+ end
+ http.methods.grep(/\A(\w+)=\z/) do |meth|
+ key = $1.to_sym
+ opt.key?(key) or next
+ http.__send__(meth, opt[key])
+ end
+ end
+
+ http.start(&block)
end
class << HTTP
alias newobj new
end
- # Creates a new Net::HTTP object.
- # If +proxy_addr+ is given, creates an Net::HTTP object with proxy support.
- # This method does not open the TCP connection.
+ # Creates a new Net::HTTP object without opening a TCP connection or
+ # HTTP session.
+ # The +address+ should be a DNS hostname or IP address.
+ # If +p_addr+ is given, creates a Net::HTTP object with proxy support.
def HTTP.new(address, port = nil, p_addr = nil, p_port = nil, p_user = nil, p_pass = nil)
- h = Proxy(p_addr, p_port, p_user, p_pass).newobj(address, port)
- h.instance_eval {
- @newimpl = ::Net::HTTP.version_1_2?
- }
- h
+ Proxy(p_addr, p_port, p_user, p_pass).newobj(address, port)
end
- # Creates a new Net::HTTP object for the specified +address+.
- # This method does not open the TCP connection.
+ # Creates a new Net::HTTP object for the specified server address,
+ # without opening the TCP connection or initializing the HTTP session.
+ # The +address+ should be a DNS hostname or IP address.
def initialize(address, port = nil)
@address = address
@port = (port || HTTP.default_port)
@@ -480,6 +582,7 @@ module Net #:nodoc:
@started = false
@open_timeout = nil
@read_timeout = 60
+ @continue_timeout = nil
@debug_output = nil
@use_ssl = false
@ssl_context = nil
@@ -497,10 +600,10 @@ module Net #:nodoc:
"#<#{self.class} #{@address}:#{@port} open=#{started?}>"
end
- # *WARNING* This method causes serious security hole.
+ # *WARNING* This method opens a serious security hole.
# Never use this method in production code.
#
- # Set an output stream for debugging.
+ # Sets an output stream for debugging.
#
# http = Net::HTTP.new
# http.set_debug_output $stderr
@@ -511,19 +614,21 @@ module Net #:nodoc:
@debug_output = output
end
- # The host name to connect to.
+ # The DNS host name or IP address to connect to.
attr_reader :address
# The port number to connect to.
attr_reader :port
- # Seconds to wait until connection is opened.
- # If the HTTP object cannot open a connection in this many seconds,
- # it raises a TimeoutError exception.
+ # Number of seconds to wait for the connection to open. Any number
+ # may be used, including Floats for fractional seconds. If the HTTP
+ # object cannot open a connection in this many seconds, it raises a
+ # TimeoutError exception.
attr_accessor :open_timeout
- # Seconds to wait until reading one block (by one read(2) call).
- # If the HTTP object cannot open a connection in this many seconds,
+ # Number of seconds to wait for one block to be read (via one read(2)
+ # call). Any number may be used, including Floats for fractional
+ # seconds. If the HTTP object cannot read data in this many seconds,
# it raises a TimeoutError exception.
attr_reader :read_timeout
@@ -533,7 +638,17 @@ module Net #:nodoc:
@read_timeout = sec
end
- # returns true if the HTTP session is started.
+ # Seconds to wait for 100 Continue response. If the HTTP object does not
+ # receive a response in this many seconds it sends the request body.
+ attr_reader :continue_timeout
+
+ # Setter for the continue_timeout attribute.
+ def continue_timeout=(sec)
+ @socket.continue_timeout = sec if @socket
+ @continue_timeout = sec
+ end
+
+ # Returns true if the HTTP session has been started.
def started?
@started
end
@@ -542,19 +657,85 @@ module Net #:nodoc:
attr_accessor :close_on_empty_response
- # returns true if use SSL/TLS with HTTP.
+ # Returns true if SSL/TLS is being used with HTTP.
def use_ssl?
- false # redefined in net/https
+ @use_ssl
+ end
+
+ # Turn on/off SSL.
+ # This flag must be set before starting session.
+ # If you change use_ssl value after session started,
+ # a Net::HTTP object raises IOError.
+ def use_ssl=(flag)
+ flag = flag ? true : false
+ if started? and @use_ssl != flag
+ raise IOError, "use_ssl value changed, but session already started"
+ end
+ @use_ssl = flag
+ end
+
+ SSL_ATTRIBUTES = %w(
+ ssl_version key cert ca_file ca_path cert_store ciphers
+ verify_mode verify_callback verify_depth ssl_timeout
+ )
+
+ # Sets path of a CA certification file in PEM format.
+ #
+ # The file can contain several CA certificates.
+ attr_accessor :ca_file
+
+ # Sets path of a CA certification directory containing certifications in
+ # PEM format.
+ attr_accessor :ca_path
+
+ # Sets an OpenSSL::X509::Certificate object as client certificate.
+ # (This method is appeared in Michal Rokos's OpenSSL extension).
+ attr_accessor :cert
+
+ # Sets the X509::Store to verify peer certificate.
+ attr_accessor :cert_store
+
+ # Sets the available ciphers. See OpenSSL::SSL::SSLContext#ciphers=
+ attr_accessor :ciphers
+
+ # Sets an OpenSSL::PKey::RSA or OpenSSL::PKey::DSA object.
+ # (This method is appeared in Michal Rokos's OpenSSL extension.)
+ attr_accessor :key
+
+ # Sets the SSL timeout seconds.
+ attr_accessor :ssl_timeout
+
+ # Sets the SSL version. See OpenSSL::SSL::SSLContext#ssl_version=
+ attr_accessor :ssl_version
+
+ # Sets the verify callback for the server certification verification.
+ attr_accessor :verify_callback
+
+ # Sets the maximum depth for the certificate chain verification.
+ attr_accessor :verify_depth
+
+ # Sets the flags for server the certification verification at beginning of
+ # SSL/TLS session.
+ #
+ # OpenSSL::SSL::VERIFY_NONE or OpenSSL::SSL::VERIFY_PEER are acceptable.
+ attr_accessor :verify_mode
+
+ # Returns the X.509 certificates the server presented.
+ def peer_cert
+ if not use_ssl? or not @socket
+ return nil
+ end
+ @socket.io.peer_cert
end
- # Opens TCP connection and HTTP session.
+ # Opens a TCP connection and HTTP session.
#
- # When this method is called with block, gives a HTTP object
- # to the block and closes the TCP connection / HTTP session
- # after the block executed.
+ # When this method is called with a block, it passes the Net::HTTP
+ # object to the block, and closes the TCP connection and HTTP session
+ # after the block has been executed.
#
- # When called with a block, returns the return value of the
- # block; otherwise, returns self.
+ # When called with a block, it returns the return value of the
+ # block; otherwise, it returns self.
#
def start # :yield: http
raise IOError, 'HTTP session already opened' if @started
@@ -597,23 +778,32 @@ module Net #:nodoc:
end
@socket = BufferedIO.new(s)
@socket.read_timeout = @read_timeout
+ @socket.continue_timeout = @continue_timeout
@socket.debug_output = @debug_output
if use_ssl?
- if proxy?
- @socket.writeline sprintf('CONNECT %s:%s HTTP/%s',
- @address, @port, HTTPVersion)
- @socket.writeline "Host: #{@address}:#{@port}"
- if proxy_user
- credential = ["#{proxy_user}:#{proxy_pass}"].pack('m')
- credential.delete!("\r\n")
- @socket.writeline "Proxy-Authorization: Basic #{credential}"
+ begin
+ if proxy?
+ @socket.writeline sprintf('CONNECT %s:%s HTTP/%s',
+ @address, @port, HTTPVersion)
+ @socket.writeline "Host: #{@address}:#{@port}"
+ if proxy_user
+ credential = ["#{proxy_user}:#{proxy_pass}"].pack('m')
+ credential.delete!("\r\n")
+ @socket.writeline "Proxy-Authorization: Basic #{credential}"
+ end
+ @socket.writeline ''
+ HTTPResponse.read_new(@socket).value
end
- @socket.writeline ''
- HTTPResponse.read_new(@socket).value
- end
- s.connect
- if @ssl_context.verify_mode != OpenSSL::SSL::VERIFY_NONE
- s.post_connection_check(@address)
+ # Server Name Indication (SNI) RFC 3546
+ s.hostname = @address if s.respond_to? :hostname=
+ timeout(@open_timeout) { s.connect }
+ if @ssl_context.verify_mode != OpenSSL::SSL::VERIFY_NONE
+ s.post_connection_check(@address)
+ end
+ rescue => exception
+ D "Conn close because of connect error #{exception}"
+ @socket.close if @socket and not @socket.closed?
+ raise exception
end
end
on_connect
@@ -624,8 +814,8 @@ module Net #:nodoc:
end
private :on_connect
- # Finishes HTTP session and closes TCP connection.
- # Raises IOError if not started.
+ # Finishes the HTTP session and closes the TCP connection.
+ # Raises IOError if the session has not been started.
def finish
raise IOError, 'HTTP session not yet started' unless started?
do_finish
@@ -651,20 +841,40 @@ module Net #:nodoc:
@proxy_user = nil
@proxy_pass = nil
- # Creates an HTTP proxy class.
- # Arguments are address/port of proxy host and username/password
- # if authorization on proxy server is required.
- # You can replace the HTTP class with created proxy class.
+ # Creates an HTTP proxy class which behaves like Net::HTTP, but
+ # performs all access via the specified proxy.
#
- # If ADDRESS is nil, this method returns self (Net::HTTP).
+ # The arguments are the DNS name or IP address of the proxy host,
+ # the port to use to access the proxy, and a username and password
+ # if authorization is required to use the proxy.
#
- # # Example
- # proxy_class = Net::HTTP::Proxy('proxy.example.com', 8080)
- # :
- # proxy_class.start('www.ruby-lang.org') {|http|
- # # connecting proxy.foo.org:8080
- # :
- # }
+ # You can replace any use of the Net::HTTP class with use of the
+ # proxy class created.
+ #
+ # If +p_addr+ is nil, this method returns self (a Net::HTTP object).
+ #
+ # # Example
+ # proxy_class = Net::HTTP::Proxy('proxy.example.com', 8080)
+ #
+ # proxy_class.start('www.ruby-lang.org') {|http|
+ # # connecting proxy.foo.org:8080
+ # }
+ #
+ # You may use them to work with authorization-enabled proxies:
+ #
+ # proxy_host = 'your.proxy.example'
+ # proxy_port = 8080
+ # proxy_user = 'user'
+ # proxy_pass = 'pass'
+ #
+ # proxy = Net::HTTP::Proxy(proxy_host, proxy_port, proxy_user, proxy_pass)
+ # proxy.start('www.example.com') { |http|
+ # # always connect to your.proxy.example:8080 using specified username
+ # # and password
+ # }
+ #
+ # Note that net/http does not use the HTTP_PROXY environment variable.
+ # If you want to use a proxy, you must set it explicitly.
#
def HTTP.Proxy(p_addr, p_port = nil, p_user = nil, p_pass = nil)
return self unless p_addr
@@ -688,9 +898,17 @@ module Net #:nodoc:
@is_proxy_class
end
+ # Address of proxy host. If Net::HTTP does not use a proxy, nil.
attr_reader :proxy_address
+
+ # Port number of proxy host. If Net::HTTP does not use a proxy, nil.
attr_reader :proxy_port
+
+ # User name for accessing proxy. If Net::HTTP does not use a proxy, nil.
attr_reader :proxy_user
+
+ # User password for accessing proxy. If Net::HTTP does not use a proxy,
+ # nil.
attr_reader :proxy_pass
end
@@ -699,22 +917,22 @@ module Net #:nodoc:
self.class.proxy_class?
end
- # Address of proxy host. If self does not use a proxy, nil.
+ # A convenience method for accessing value of proxy_address from Net::HTTP.
def proxy_address
self.class.proxy_address
end
- # Port number of proxy host. If self does not use a proxy, nil.
+ # A convenience method for accessing value of proxy_port from Net::HTTP.
def proxy_port
self.class.proxy_port
end
- # User name for accessing proxy. If self does not use a proxy, nil.
+ # A convenience method for accessing value of proxy_user from Net::HTTP.
def proxy_user
self.class.proxy_user
end
- # User password for accessing proxy. If self does not use a proxy, nil.
+ # A convenience method for accessing value of proxy_pass from Net::HTTP.
def proxy_pass
self.class.proxy_pass
end
@@ -774,10 +992,7 @@ module Net #:nodoc:
# the header as well to prevent confusion. Otherwise
# it leaves the body as it found it.
#
- # In version 1.1 (ruby 1.6), this method returns a pair of objects,
- # a Net::HTTPResponse object and the entity body string.
- # In version 1.2 (ruby 1.8), this method returns a Net::HTTPResponse
- # object.
+ # This method returns a Net::HTTPResponse object.
#
# If called with a block, yields each fragment of the
# entity body in turn as a string as it is read from
@@ -787,16 +1002,8 @@ module Net #:nodoc:
# +dest+ argument is obsolete.
# It still works but you must not use it.
#
- # In version 1.1, this method might raise an exception for
- # 3xx (redirect). In this case you can get a HTTPResponse object
- # by "anException.response".
- #
- # In version 1.2, this method never raises exception.
+ # This method never raises an exception.
#
- # # version 1.1 (bundled with Ruby 1.6)
- # response, body = http.get('/index.html')
- #
- # # version 1.2 (bundled with Ruby 1.8 or later)
# response = http.get('/index.html')
#
# # using block
@@ -810,7 +1017,9 @@ module Net #:nodoc:
res = nil
if HAVE_ZLIB
unless initheader.keys.any?{|k| k.downcase == "accept-encoding"}
- initheader["accept-encoding"] = "gzip;q=1.0,deflate;q=0.6,identity;q=0.3"
+ initheader = initheader.merge({
+ "accept-encoding" => "gzip;q=1.0,deflate;q=0.6,identity;q=0.3"
+ })
@compression = true
end
end
@@ -820,7 +1029,7 @@ module Net #:nodoc:
the_body = r.read_body dest, &block
case r["content-encoding"]
when "gzip"
- r.body= Zlib::GzipReader.new(StringIO.new(the_body)).read
+ r.body= Zlib::GzipReader.new(StringIO.new(the_body), encoding: "ASCII-8BIT").read
r.delete("content-encoding")
when "deflate"
r.body= Zlib::Inflate.inflate(the_body);
@@ -835,11 +1044,6 @@ module Net #:nodoc:
end
res = r
}
- unless @newimpl
- res.value
- return res, res.body
- end
-
res
end
@@ -848,10 +1052,7 @@ module Net #:nodoc:
#
# This method returns a Net::HTTPResponse object.
#
- # In version 1.1, this method might raise an exception for
- # 3xx (redirect). On the case you can get a HTTPResponse object
- # by "anException.response".
- # In version 1.2, this method never raises an exception.
+ # This method never raises an exception.
#
# response = nil
# Net::HTTP.start('some.www.server', 80) {|http|
@@ -860,35 +1061,24 @@ module Net #:nodoc:
# p response['content-type']
#
def head(path, initheader = nil)
- res = request(Head.new(path, initheader))
- res.value unless @newimpl
- res
+ request(Head.new(path, initheader))
end
# Posts +data+ (must be a String) to +path+. +header+ must be a Hash
# like { 'Accept' => '*/*', ... }.
#
- # In version 1.1 (ruby 1.6), this method returns a pair of objects, a
- # Net::HTTPResponse object and an entity body string.
- # In version 1.2 (ruby 1.8), this method returns a Net::HTTPResponse object.
+ # This method returns a Net::HTTPResponse object.
#
# If called with a block, yields each fragment of the
- # entity body in turn as a string as it are read from
+ # entity body in turn as a string as it is read from
# the socket. Note that in this case, the returned response
# object will *not* contain a (meaningful) body.
#
# +dest+ argument is obsolete.
# It still works but you must not use it.
#
- # In version 1.1, this method might raise an exception for
- # 3xx (redirect). In this case you can get an HTTPResponse object
- # by "anException.response".
- # In version 1.2, this method never raises exception.
+ # This method never raises exception.
#
- # # version 1.1
- # response, body = http.post('/cgi-bin/search.rb', 'query=foo')
- #
- # # version 1.2
# response = http.post('/cgi-bin/search.rb', 'query=foo')
#
# # using block
@@ -903,22 +1093,17 @@ module Net #:nodoc:
# "application/x-www-form-urlencoded" by default.
#
def post(path, data, initheader = nil, dest = nil, &block) # :yield: +body_segment+
- res = nil
- request(Post.new(path, initheader), data) {|r|
- r.read_body dest, &block
- res = r
- }
- unless @newimpl
- res.value
- return res, res.body
- end
- res
+ send_entity(path, data, initheader, dest, Post, &block)
+ end
+
+ # Sends a PATCH request to the +path+ and gets a response,
+ # as an HTTPResponse object.
+ def patch(path, data, initheader = nil, dest = nil, &block) # :yield: +body_segment+
+ send_entity(path, data, initheader, dest, Patch, &block)
end
def put(path, data, initheader = nil) #:nodoc:
- res = request(Put.new(path, initheader), data)
- res.value unless @newimpl
- res
+ request(Put.new(path, initheader), data)
end
# Sends a PROPPATCH request to the +path+ and gets a response,
@@ -981,12 +1166,12 @@ module Net #:nodoc:
request(Trace.new(path, initheader))
end
- # Sends a GET request to the +path+ and gets a response,
- # as an HTTPResponse object.
+ # Sends a GET request to the +path+.
+ # Returns the response as a Net::HTTPResponse object.
#
- # When called with a block, yields an HTTPResponse object.
- # The body of this response will not have been read yet;
- # the caller can process it using HTTPResponse#read_body,
+ # When called with a block, passes an HTTPResponse object to the block.
+ # The body of the response will not have been read yet;
+ # the block can process it using HTTPResponse#read_body,
# if desired.
#
# Returns the response.
@@ -994,11 +1179,11 @@ module Net #:nodoc:
# This method never raises Net::* exceptions.
#
# response = http.request_get('/index.html')
- # # The entity body is already read here.
+ # # The entity body is already read in this case.
# p response['content-type']
# puts response.body
#
- # # using block
+ # # Using a block
# http.request_get('/index.html') {|response|
# p response['content-type']
# response.read_body do |str| # read body now
@@ -1010,8 +1195,8 @@ module Net #:nodoc:
request(Get.new(path, initheader), &block)
end
- # Sends a HEAD request to the +path+ and gets a response,
- # as an HTTPResponse object.
+ # Sends a HEAD request to the +path+ and returns the response
+ # as a Net::HTTPResponse object.
#
# Returns the response.
#
@@ -1024,13 +1209,13 @@ module Net #:nodoc:
request(Head.new(path, initheader), &block)
end
- # Sends a POST request to the +path+ and gets a response,
- # as an HTTPResponse object.
+ # Sends a POST request to the +path+.
#
- # When called with a block, yields an HTTPResponse object.
- # The body of this response will not have been read yet;
- # the caller can process it using HTTPResponse#read_body,
- # if desired.
+ # Returns the response as a Net::HTTPResponse object.
+ #
+ # When called with a block, the block is passed an HTTPResponse
+ # object. The body of that response will not have been read yet;
+ # the block can process it using HTTPResponse#read_body, if desired.
#
# Returns the response.
#
@@ -1039,7 +1224,7 @@ module Net #:nodoc:
# # example
# response = http.request_post('/cgi-bin/nice.rb', 'datadatadata...')
# p response.status
- # puts response.body # body is already read
+ # puts response.body # body is already read in this case
#
# # using block
# http.request_post('/cgi-bin/nice.rb', 'datadatadata...') {|response|
@@ -1065,9 +1250,9 @@ module Net #:nodoc:
# Sends an HTTP request to the HTTP server.
- # This method also sends DATA string if DATA is given.
+ # Also sends a DATA string if +data+ is given.
#
- # Returns a HTTPResponse object.
+ # Returns a Net::HTTPResponse object.
#
# This method never raises Net::* exceptions.
#
@@ -1079,16 +1264,18 @@ module Net #:nodoc:
request r, data
end
- # Sends an HTTPRequest object REQUEST to the HTTP server.
- # This method also sends DATA string if REQUEST is a post/put request.
- # Giving DATA for get/head request causes ArgumentError.
+ # Sends an HTTPRequest object +req+ to the HTTP server.
#
- # When called with a block, yields an HTTPResponse object.
- # The body of this response will not have been read yet;
- # the caller can process it using HTTPResponse#read_body,
- # if desired.
+ # If +req+ is a Net::HTTP::Post or Net::HTTP::Put request containing
+ # data, the data is also sent. Providing data for a Net::HTTP::Head or
+ # Net::HTTP::Get request results in an ArgumentError.
#
- # Returns a HTTPResponse object.
+ # Returns an HTTPResponse object.
+ #
+ # When called with a block, passes an HTTPResponse object to the block.
+ # The body of the response will not have been read yet;
+ # the block can process it using HTTPResponse#read_body,
+ # if desired.
#
# This method never raises Net::* exceptions.
#
@@ -1113,17 +1300,35 @@ module Net #:nodoc:
private
+ # Executes a request which uses a representation
+ # and returns its body.
+ def send_entity(path, data, initheader, dest, type, &block)
+ res = nil
+ request(type.new(path, initheader), data) {|r|
+ r.read_body dest, &block
+ res = r
+ }
+ res
+ end
+
def transport_request(req)
begin_transport req
- req.exec @socket, @curr_http_version, edit_path(req.path)
- begin
- res = HTTPResponse.read_new(@socket)
- end while res.kind_of?(HTTPContinue)
- res.reading_body(@socket, req.response_body_permitted?) {
- yield res if block_given?
+ res = catch(:response) {
+ req.exec @socket, @curr_http_version, edit_path(req.path)
+ begin
+ res = HTTPResponse.read_new(@socket)
+ end while res.kind_of?(HTTPContinue)
+ res.reading_body(@socket, req.response_body_permitted?) {
+ yield res if block_given?
+ }
+ res
}
end_transport req, res
res
+ rescue => exception
+ D "Conn close because of error #{exception}"
+ @socket.close if @socket and not @socket.closed?
+ raise exception
end
def begin_transport(req)
@@ -1211,13 +1416,14 @@ module Net #:nodoc:
HTTPSession = HTTP
+ # The HTTPHeader module defines methods for reading and writing
+ # HTTP headers.
#
- # Header module.
- #
- # Provides access to @header in the mixed-into class as a hash-like
- # object, except with case-insensitive keys. Also provides
- # methods for accessing commonly-used header values in a more
- # convenient format.
+ # It is used as a mixin by other classes, to provide hash-like
+ # access to HTTP header values. Unlike raw hash access, HTTPHeader
+ # provides access via case-insensitive keys. It also provides
+ # methods for accessing commonly-used HTTP header values in more
+ # convenient formats.
#
module HTTPHeader
@@ -1253,7 +1459,7 @@ module Net #:nodoc:
end
# [Ruby 1.8.3]
- # Adds header field instead of replace.
+ # Adds a value to a named header field, instead of replacing its value.
# Second argument +val+ must be a String.
# See also #[]=, #[] and #get_fields.
#
@@ -1292,15 +1498,23 @@ module Net #:nodoc:
end
# Returns the header field corresponding to the case-insensitive key.
- # Returns the default value +args+, or the result of the block, or nil,
- # if there's no header field named key. See Hash#fetch
+ # Returns the default value +args+, or the result of the block, or
+ # raises an IndexError if there's no header field named +key+
+ # See Hash#fetch
def fetch(key, *args, &block) #:yield: +key+
a = @header.fetch(key.downcase, *args, &block)
- a.join(', ')
+ a.kind_of?(Array) ? a.join(', ') : a
end
- # Iterates for each header names and values.
+ # Iterates through the header names and values, passing in the name
+ # and value to the code block supplied.
+ #
+ # Example:
+ #
+ # response.header.each_header {|key,value| puts "#{key} = #{value}" }
+ #
def each_header #:yield: +key+, +value+
+ block_given? or return enum_for(__method__)
@header.each do |k,va|
yield k, va.join(', ')
end
@@ -1308,28 +1522,38 @@ module Net #:nodoc:
alias each each_header
- # Iterates for each header names.
+ # Iterates through the header names in the header, passing
+ # each header name to the code block.
def each_name(&block) #:yield: +key+
+ block_given? or return enum_for(__method__)
@header.each_key(&block)
end
alias each_key each_name
- # Iterates for each capitalized header names.
- def each_capitalized_name(&block) #:yield: +key+
+ # Iterates through the header names in the header, passing
+ # capitalized header names to the code block.
+ #
+ # Note that header names are capitalized systematically;
+ # capitalization may not match that used by the remote HTTP
+ # server in its response.
+ def each_capitalized_name #:yield: +key+
+ block_given? or return enum_for(__method__)
@header.each_key do |k|
yield capitalize(k)
end
end
- # Iterates for each header values.
+ # Iterates through header values, passing each value to the
+ # code block.
def each_value #:yield: +value+
+ block_given? or return enum_for(__method__)
@header.each_value do |va|
yield va.join(', ')
end
end
- # Removes a header field.
+ # Removes a header field, specified by case-insensitive key.
def delete(key)
@header.delete(key.downcase)
end
@@ -1339,13 +1563,22 @@ module Net #:nodoc:
@header.key?(key.downcase)
end
- # Returns a Hash consist of header names and values.
+ # Returns a Hash consisting of header names and values.
+ # e.g.
+ # {"cache-control" => "private",
+ # "content-type" => "text/html",
+ # "date" => "Wed, 22 Jun 2005 22:11:50 GMT"}
def to_hash
@header.dup
end
# As for #each_header, except the keys are provided in capitalized form.
+ #
+ # Note that header names are capitalized systematically;
+ # capitalization may not match that used by the remote HTTP
+ # server in its response.
def each_capitalized
+ block_given? or return enum_for(__method__)
@header.each do |k,v|
yield capitalize(k), v.join(', ')
end
@@ -1358,8 +1591,8 @@ module Net #:nodoc:
end
private :capitalize
- # Returns an Array of Range objects which represents Range: header field,
- # or +nil+ if there is no such header.
+ # Returns an Array of Range objects which represent the Range:
+ # HTTP header field, or +nil+ if there is no such header.
def range
return nil unless @header['range']
self['Range'].split(/,/).map {|spec|
@@ -1376,8 +1609,10 @@ module Net #:nodoc:
}
end
- # Set Range: header from Range (arg r) or beginning index and
- # length from it (arg idx&len).
+ # Sets the HTTP Range: header.
+ # Accepts either a Range object as a single argument,
+ # or a beginning index and a length from that index.
+ # Example:
#
# req.range = (0..1023)
# req.set_range 0, 1023
@@ -1413,8 +1648,8 @@ module Net #:nodoc:
alias range= set_range
- # Returns an Integer object which represents the Content-Length: header field
- # or +nil+ if that field is not provided.
+ # Returns an Integer object which represents the HTTP Content-Length:
+ # header field, or +nil+ if that field was not provided.
def content_length
return nil unless key?('Content-Length')
len = self['Content-Length'].slice(/\d+/) or
@@ -1440,20 +1675,21 @@ module Net #:nodoc:
(/(?:\A|[^\-\w])chunked(?![\-\w])/i =~ field) ? true : false
end
- # Returns a Range object which represents Content-Range: header field.
- # This indicates, for a partial entity body, where this fragment
+ # Returns a Range object which represents the value of the Content-Range:
+ # header field.
+ # For a partial entity body, this indicates where this fragment
# fits inside the full entity body, as range of byte offsets.
def content_range
return nil unless @header['content-range']
m = %r<bytes\s+(\d+)-(\d+)/(\d+|\*)>i.match(self['Content-Range']) or
raise HTTPHeaderSyntaxError, 'wrong Content-Range format'
- m[1].to_i .. m[2].to_i + 1
+ m[1].to_i .. m[2].to_i
end
# The length of the range represented in Content-Range: header.
def range_length
r = content_range() or return nil
- r.end - r.begin
+ r.end - r.begin + 1
end
# Returns a content type string such as "text/html".
@@ -1478,13 +1714,14 @@ module Net #:nodoc:
# or sub-type is not given (e.g. "Content-Type: text").
def sub_type
return nil unless @header['content-type']
- main, sub = *self['Content-Type'].split(';').first.to_s.split('/')
+ _, sub = *self['Content-Type'].split(';').first.to_s.split('/')
return nil unless sub
sub.strip
end
- # Returns content type parameters as a Hash as like
- # {"charset" => "iso-2022-jp"}.
+ # Any parameters specified for the content type, returned as a Hash.
+ # For example, a header of Content-Type: text/html; charset=EUC-JP
+ # would result in type_params returning {'charset' => 'EUC-JP'}
def type_params
result = {}
list = self['Content-Type'].to_s.split(';')
@@ -1496,8 +1733,10 @@ module Net #:nodoc:
result
end
- # Set Content-Type: header field by +type+ and +params+.
- # +type+ must be a String, +params+ must be a Hash.
+ # Sets the content type in an HTTP header.
+ # The +type+ should be a full HTTP content type, e.g. "text/html".
+ # The +params+ are an optional Hash of parameters to add after the
+ # content type, e.g. {'charset' => 'iso-8859-1'}
def set_content_type(type, params = {})
@header['content-type'] = [type + params.map{|k,v|"; #{k}=#{v}"}.join('')]
end
@@ -1505,11 +1744,12 @@ module Net #:nodoc:
alias content_type= set_content_type
# Set header fields and a body from HTML form data.
- # +params+ should be a Hash containing HTML form data.
+ # +params+ should be an Array of Arrays or
+ # a Hash containing HTML form data.
# Optional argument +sep+ means data record separator.
#
- # This method also set Content-Type: header field to
- # application/x-www-form-urlencoded.
+ # Values are URL encoded as necessary and the content-type is set to
+ # application/x-www-form-urlencoded
#
# Example:
# http.form_data = {"q" => "ruby", "lang" => "en"}
@@ -1517,21 +1757,55 @@ module Net #:nodoc:
# http.set_form_data({"q" => "ruby", "lang" => "en"}, ';')
#
def set_form_data(params, sep = '&')
- self.body = params.map {|k, v| encode_kvpair(k, v) }.flatten.join(sep)
+ query = URI.encode_www_form(params)
+ query.gsub!(/&/, sep) if sep != '&'
+ self.body = query
self.content_type = 'application/x-www-form-urlencoded'
end
alias form_data= set_form_data
- def encode_kvpair(k, vs)
- Array(vs).map {|v| "#{urlencode(k)}=#{urlencode(v.to_s)}" }
- end
- private :encode_kvpair
-
- def urlencode(str)
- str.dup.force_encoding('ASCII-8BIT').gsub(/[^a-zA-Z0-9_\.\-]/){'%%%02x' % $&.ord}
+ # Set a HTML form data set.
+ # +params+ is the form data set; it is an Array of Arrays or a Hash
+ # +enctype is the type to encode the form data set.
+ # It is application/x-www-form-urlencoded or multipart/form-data.
+ # +formpot+ is an optional hash to specify the detail.
+ #
+ # boundary:: the boundary of the multipart message
+ # charset:: the charset of the message. All names and the values of
+ # non-file fields are encoded as the charset.
+ #
+ # Each item of params is an array and contains following items:
+ # +name+:: the name of the field
+ # +value+:: the value of the field, it should be a String or a File
+ # +opt+:: an optional hash to specify additional information
+ #
+ # Each item is a file field or a normal field.
+ # If +value+ is a File object or the +opt+ have a filename key,
+ # the item is treated as a file field.
+ #
+ # If Transfer-Encoding is set as chunked, this send the request in
+ # chunked encoding. Because chunked encoding is HTTP/1.1 feature,
+ # you must confirm the server to support HTTP/1.1 before sending it.
+ #
+ # Example:
+ # http.set_form([["q", "ruby"], ["lang", "en"]])
+ #
+ # See also RFC 2388, RFC 2616, HTML 4.01, and HTML5
+ #
+ def set_form(params, enctype='application/x-www-form-urlencoded', formopt={})
+ @body_data = params
+ @body = nil
+ @body_stream = nil
+ @form_option = formopt
+ case enctype
+ when /\Aapplication\/x-www-form-urlencoded\z/i,
+ /\Amultipart\/form-data\z/i
+ self.content_type = enctype
+ else
+ raise ArgumentError, "invalid enctype: #{enctype}"
+ end
end
- private :urlencode
# Set the Authorization: header for "Basic" authorization.
def basic_auth(account, password)
@@ -1569,11 +1843,10 @@ module Net #:nodoc:
end
+ # HTTPGenericRequest is the parent of the HTTPRequest class.
+ # Do not use this directly; use a subclass of HTTPRequest.
#
- # Parent of HTTPRequest class. Do not use this directly; use
- # a subclass of HTTPRequest.
- #
- # Mixes in the HTTPHeader module.
+ # Mixes in the HTTPHeader module to provide easier access to HTTP headers.
#
class HTTPGenericRequest
@@ -1591,6 +1864,7 @@ module Net #:nodoc:
self['User-Agent'] ||= 'Ruby'
@body = nil
@body_stream = nil
+ @body_data = nil
end
attr_reader :method
@@ -1618,6 +1892,7 @@ module Net #:nodoc:
def body=(str)
@body = str
@body_stream = nil
+ @body_data = nil
str
end
@@ -1626,6 +1901,7 @@ module Net #:nodoc:
def body_stream=(input)
@body = nil
@body_stream = input
+ @body_data = nil
input
end
@@ -1643,6 +1919,8 @@ module Net #:nodoc:
send_request_with_body sock, ver, path, @body
elsif @body_stream
send_request_with_body_stream sock, ver, path, @body_stream
+ elsif @body_data
+ send_request_with_body_data sock, ver, path, @body_data
else
write_header sock, ver, path
end
@@ -1655,6 +1933,7 @@ module Net #:nodoc:
delete 'Transfer-Encoding'
supply_default_content_type
write_header sock, ver, path
+ wait_for_continue sock, ver if sock.continue_timeout
sock.write body
end
@@ -1665,6 +1944,7 @@ module Net #:nodoc:
end
supply_default_content_type
write_header sock, ver, path
+ wait_for_continue sock, ver if sock.continue_timeout
if chunked?
while s = f.read(1024)
sock.write(sprintf("%x\r\n", s.length) << s << "\r\n")
@@ -1677,12 +1957,117 @@ module Net #:nodoc:
end
end
+ def send_request_with_body_data(sock, ver, path, params)
+ if /\Amultipart\/form-data\z/i !~ self.content_type
+ self.content_type = 'application/x-www-form-urlencoded'
+ return send_request_with_body(sock, ver, path, URI.encode_www_form(params))
+ end
+
+ opt = @form_option.dup
+ require 'securerandom' unless defined?(SecureRandom)
+ opt[:boundary] ||= SecureRandom.urlsafe_base64(40)
+ self.set_content_type(self.content_type, boundary: opt[:boundary])
+ if chunked?
+ write_header sock, ver, path
+ encode_multipart_form_data(sock, params, opt)
+ else
+ require 'tempfile'
+ file = Tempfile.new('multipart')
+ file.binmode
+ encode_multipart_form_data(file, params, opt)
+ file.rewind
+ self.content_length = file.size
+ write_header sock, ver, path
+ IO.copy_stream(file, sock)
+ end
+ end
+
+ def encode_multipart_form_data(out, params, opt)
+ charset = opt[:charset]
+ boundary = opt[:boundary]
+ require 'securerandom' unless defined?(SecureRandom)
+ boundary ||= SecureRandom.urlsafe_base64(40)
+ chunked_p = chunked?
+
+ buf = ''
+ params.each do |key, value, h={}|
+ key = quote_string(key, charset)
+ filename =
+ h.key?(:filename) ? h[:filename] :
+ value.respond_to?(:to_path) ? File.basename(value.to_path) :
+ nil
+
+ buf << "--#{boundary}\r\n"
+ if filename
+ filename = quote_string(filename, charset)
+ type = h[:content_type] || 'application/octet-stream'
+ buf << "Content-Disposition: form-data; " \
+ "name=\"#{key}\"; filename=\"#{filename}\"\r\n" \
+ "Content-Type: #{type}\r\n\r\n"
+ if !out.respond_to?(:write) || !value.respond_to?(:read)
+ # if +out+ is not an IO or +value+ is not an IO
+ buf << (value.respond_to?(:read) ? value.read : value)
+ elsif value.respond_to?(:size) && chunked_p
+ # if +out+ is an IO and +value+ is a File, use IO.copy_stream
+ flush_buffer(out, buf, chunked_p)
+ out << "%x\r\n" % value.size if chunked_p
+ IO.copy_stream(value, out)
+ out << "\r\n" if chunked_p
+ else
+ # +out+ is an IO, and +value+ is not a File but an IO
+ flush_buffer(out, buf, chunked_p)
+ 1 while flush_buffer(out, value.read(4096), chunked_p)
+ end
+ else
+ # non-file field:
+ # HTML5 says, "The parts of the generated multipart/form-data
+ # resource that correspond to non-file fields must not have a
+ # Content-Type header specified."
+ buf << "Content-Disposition: form-data; name=\"#{key}\"\r\n\r\n"
+ buf << (value.respond_to?(:read) ? value.read : value)
+ end
+ buf << "\r\n"
+ end
+ buf << "--#{boundary}--\r\n"
+ flush_buffer(out, buf, chunked_p)
+ out << "0\r\n\r\n" if chunked_p
+ end
+
+ def quote_string(str, charset)
+ str = str.encode(charset, fallback:->(c){'&#%d;'%c.encode("UTF-8").ord}) if charset
+ str = str.gsub(/[\\"]/, '\\\\\&')
+ end
+
+ def flush_buffer(out, buf, chunked_p)
+ return unless buf
+ out << "%x\r\n"%buf.bytesize if chunked_p
+ out << buf
+ out << "\r\n" if chunked_p
+ buf.clear
+ end
+
def supply_default_content_type
return if content_type()
warn 'net/http: warning: Content-Type did not set; using application/x-www-form-urlencoded' if $VERBOSE
set_content_type 'application/x-www-form-urlencoded'
end
+ ##
+ # Waits up to the continue timeout for a response from the server provided
+ # we're speaking HTTP 1.1 and are expecting a 100-continue response.
+
+ def wait_for_continue(sock, ver)
+ if ver >= '1.1' and @header['expect'] and
+ @header['expect'].include?('100-continue')
+ if IO.select([sock.io], nil, nil, sock.continue_timeout)
+ res = HTTPResponse.read_new(sock)
+ unless res.kind_of?(Net::HTTPContinue)
+ throw :response, res
+ end
+ end
+ end
+ end
+
def write_header(sock, ver, path)
buf = "#{@method} #{path} HTTP/#{ver}\r\n"
each_capitalized do |k,v|
@@ -1696,8 +2081,10 @@ module Net #:nodoc:
#
- # HTTP request class. This class wraps request header and entity path.
- # You *must* use its subclass, Net::HTTP::Get, Post, Head.
+ # HTTP request class.
+ # This class wraps together the request header and the request path.
+ # You cannot use this class directly. Instead, you should use one of its
+ # subclasses: Net::HTTP::Get, Net::HTTP::Post, Net::HTTP::Head.
#
class HTTPRequest < HTTPGenericRequest
@@ -1713,45 +2100,57 @@ module Net #:nodoc:
class HTTP # reopen
#
- # HTTP 1.1 methods --- RFC2616
+ # HTTP/1.1 methods --- RFC2616
#
+ # See Net::HTTPGenericRequest for attributes and methods.
+ # See Net::HTTP for usage examples.
class Get < HTTPRequest
METHOD = 'GET'
REQUEST_HAS_BODY = false
RESPONSE_HAS_BODY = true
end
+ # See Net::HTTPGenericRequest for attributes and methods.
+ # See Net::HTTP for usage examples.
class Head < HTTPRequest
METHOD = 'HEAD'
REQUEST_HAS_BODY = false
RESPONSE_HAS_BODY = false
end
+ # See Net::HTTPGenericRequest for attributes and methods.
+ # See Net::HTTP for usage examples.
class Post < HTTPRequest
METHOD = 'POST'
REQUEST_HAS_BODY = true
RESPONSE_HAS_BODY = true
end
+ # See Net::HTTPGenericRequest for attributes and methods.
+ # See Net::HTTP for usage examples.
class Put < HTTPRequest
METHOD = 'PUT'
REQUEST_HAS_BODY = true
RESPONSE_HAS_BODY = true
end
+ # See Net::HTTPGenericRequest for attributes and methods.
+ # See Net::HTTP for usage examples.
class Delete < HTTPRequest
METHOD = 'DELETE'
REQUEST_HAS_BODY = false
RESPONSE_HAS_BODY = true
end
+ # See Net::HTTPGenericRequest for attributes and methods.
class Options < HTTPRequest
METHOD = 'OPTIONS'
REQUEST_HAS_BODY = false
RESPONSE_HAS_BODY = false
end
+ # See Net::HTTPGenericRequest for attributes and methods.
class Trace < HTTPRequest
METHOD = 'TRACE'
REQUEST_HAS_BODY = false
@@ -1759,45 +2158,63 @@ module Net #:nodoc:
end
#
+ # PATCH method --- RFC5789
+ #
+
+ # See Net::HTTPGenericRequest for attributes and methods.
+ class Patch < HTTPRequest
+ METHOD = 'PATCH'
+ REQUEST_HAS_BODY = true
+ RESPONSE_HAS_BODY = true
+ end
+
+ #
# WebDAV methods --- RFC2518
#
+ # See Net::HTTPGenericRequest for attributes and methods.
class Propfind < HTTPRequest
METHOD = 'PROPFIND'
REQUEST_HAS_BODY = true
RESPONSE_HAS_BODY = true
end
+ # See Net::HTTPGenericRequest for attributes and methods.
class Proppatch < HTTPRequest
METHOD = 'PROPPATCH'
REQUEST_HAS_BODY = true
RESPONSE_HAS_BODY = true
end
+ # See Net::HTTPGenericRequest for attributes and methods.
class Mkcol < HTTPRequest
METHOD = 'MKCOL'
REQUEST_HAS_BODY = true
RESPONSE_HAS_BODY = true
end
+ # See Net::HTTPGenericRequest for attributes and methods.
class Copy < HTTPRequest
METHOD = 'COPY'
REQUEST_HAS_BODY = false
RESPONSE_HAS_BODY = true
end
+ # See Net::HTTPGenericRequest for attributes and methods.
class Move < HTTPRequest
METHOD = 'MOVE'
REQUEST_HAS_BODY = false
RESPONSE_HAS_BODY = true
end
+ # See Net::HTTPGenericRequest for attributes and methods.
class Lock < HTTPRequest
METHOD = 'LOCK'
REQUEST_HAS_BODY = true
RESPONSE_HAS_BODY = true
end
+ # See Net::HTTPGenericRequest for attributes and methods.
class Unlock < HTTPRequest
METHOD = 'UNLOCK'
REQUEST_HAS_BODY = true
@@ -1811,7 +2228,8 @@ module Net #:nodoc:
###
# HTTP exception class.
- # You must use its subclasses.
+ # You cannot use HTTPExceptions directly; instead, you must use
+ # its subclasses.
module HTTPExceptions
def initialize(msg, res) #:nodoc:
super msg
@@ -1835,11 +2253,17 @@ module Net #:nodoc:
end
- # HTTP response class. This class wraps response header and entity.
- # Mixes in the HTTPHeader module, which provides access to response
- # header values both via hash-like methods and individual readers.
+ # HTTP response class.
+ #
+ # This class wraps together the response header and the response body (the
+ # entity requested).
+ #
+ # It mixes in the HTTPHeader module, which provides access to response
+ # header values both via hash-like methods and via individual readers.
+ #
# Note that each possible HTTP response code defines its own
# HTTPResponse subclass. These are listed below.
+ #
# All classes are
# defined under the Net module. Indentation indicates inheritance.
#
@@ -1898,7 +2322,7 @@ module Net #:nodoc:
# xxx HTTPUnknownResponse
#
class HTTPResponse
- # true if the response has body.
+ # true if the response has a body.
def HTTPResponse.body_permitted?
self::HAS_BODY
end
@@ -2148,13 +2572,20 @@ module Net #:nodoc:
end
def each_response_header(sock)
+ key = value = nil
while true
line = sock.readuntil("\n", true).sub(/\s+\z/, '')
break if line.empty?
- m = /\A([^:]+):\s*/.match(line) or
- raise HTTPBadResponse, 'wrong header line format'
- yield m[1], m.post_match
+ if line[0] == ?\s or line[0] == ?\t and value
+ value << ' ' unless value.empty?
+ value << line.strip
+ else
+ yield key, value if key
+ key, value = line.strip.split(/\s*:\s*/, 2)
+ raise HTTPBadResponse, 'wrong header line format' if value.nil?
+ end
end
+ yield key, value if key
end
end
@@ -2176,12 +2607,12 @@ module Net #:nodoc:
# The HTTP version supported by the server.
attr_reader :http_version
- # HTTP result code string. For example, '302'. You can also
- # determine the response type by which response subclass the
- # response object is an instance of.
+ # The HTTP result code string. For example, '302'. You can also
+ # determine the response type by examining which response subclass
+ # the response object is an instance of.
attr_reader :code
- # HTTP result message. For example, 'Not Found'.
+ # The HTTP result message sent by the server. For example, 'Not Found'.
attr_reader :message
alias msg message # :nodoc: obsolete
@@ -2189,20 +2620,6 @@ module Net #:nodoc:
"#<#{self.class} #{@code} #{@message} readbody=#{@read}>"
end
- # For backward compatibility.
- # To allow Net::HTTP 1.1 style assignment
- # e.g.
- # response, body = Net::HTTP.get(....)
- #
- def to_ary
- warn "net/http.rb: warning: Net::HTTP v1.1 style assignment found at #{caller(1)[0]}; use `response = http.get(...)' instead." if $VERBOSE
- res = self.dup
- class << res
- undef to_ary
- end
- [res, res.body]
- end
-
#
# response <-> exception relationship
#
@@ -2219,7 +2636,7 @@ module Net #:nodoc:
self.class::EXCEPTION_TYPE
end
- # Raises HTTP error if the response is not 2xx.
+ # Raises an HTTP error if the response is not 2xx (success).
def value
error! unless self.kind_of?(HTTPSuccess)
end
@@ -2258,11 +2675,13 @@ module Net #:nodoc:
end
end
- # Gets entity body. If the block given, yields it to +block+.
- # The body is provided in fragments, as it is read in from the socket.
+ # Gets the entity body returned by the remote HTTP server.
#
- # Calling this method a second or subsequent time will return the
- # already read string.
+ # If a block is given, the body is passed to the block, and
+ # the body is provided in fragments, as it is read in from the socket.
+ #
+ # Calling this method a second or subsequent time for the same
+ # HTTPResponse object will return the value already read.
#
# http.request_get('/index.html') {|res|
# puts res.read_body
@@ -2298,10 +2717,10 @@ module Net #:nodoc:
@body
end
- # Returns the entity body.
+ # Returns the full entity body.
#
# Calling this method a second or subsequent time will return the
- # already read string.
+ # string already read.
#
# http.request_get('/index.html') {|res|
# puts res.body
@@ -2353,8 +2772,12 @@ module Net #:nodoc:
raise HTTPBadResponse, "wrong chunk size line: #{line}"
len = hexlen.hex
break if len == 0
- @socket.read len, dest; total += len
- @socket.read 2 # \r\n
+ begin
+ @socket.read len, dest
+ ensure
+ total += len
+ @socket.read 2 # \r\n
+ end
end
until @socket.readline.empty?
# none
diff --git a/lib/net/https.rb b/lib/net/https.rb
index 636ae1be4d..d36f82002d 100644
--- a/lib/net/https.rb
+++ b/lib/net/https.rb
@@ -1,6 +1,11 @@
=begin
-= $RCSfile$ -- SSL/TLS enhancement for Net::HTTP.
+= net/https -- SSL/TLS enhancement for Net::HTTP.
+
+ This file has been merged with net/http. There is no longer any need to
+ require 'net/https' to use HTTPS.
+
+ See Net::HTTP for details on how to make HTTPS connections.
== Info
'OpenSSL for Ruby 2' project
@@ -11,126 +16,7 @@
This program is licenced under the same licence as Ruby.
(See the file 'LICENCE'.)
-== Requirements
- This program requires Net 1.2.0 or higher version.
- You can get it from RAA or Ruby's CVS repository.
-
-== Version
- $Id$
-
- 2001-11-06: Contiributed to Ruby/OpenSSL project.
- 2004-03-06: Some code is merged in to net/http.
-
-== Example
-
-Here is a simple HTTP client:
-
- require 'net/http'
- require 'uri'
-
- uri = URI.parse(ARGV[0] || 'http://localhost/')
- http = Net::HTTP.new(uri.host, uri.port)
- http.start {
- http.request_get(uri.path) {|res|
- print res.body
- }
- }
-
-It can be replaced by the following code:
-
- require 'net/https'
- require 'uri'
-
- uri = URI.parse(ARGV[0] || 'https://localhost/')
- http = Net::HTTP.new(uri.host, uri.port)
- http.use_ssl = true if uri.scheme == "https" # enable SSL/TLS
- http.start {
- http.request_get(uri.path) {|res|
- print res.body
- }
- }
-
-== class Net::HTTP
-
-=== Instance Methods
-
-: use_ssl?
- returns true if use SSL/TLS with HTTP.
-
-: use_ssl=((|true_or_false|))
- sets use_ssl.
-
-: peer_cert
- return the X.509 certificates the server presented.
-
-: key, key=((|key|))
- Sets an OpenSSL::PKey::RSA or OpenSSL::PKey::DSA object.
- (This method is appeared in Michal Rokos's OpenSSL extension.)
-
-: cert, cert=((|cert|))
- Sets an OpenSSL::X509::Certificate object as client certificate
- (This method is appeared in Michal Rokos's OpenSSL extension).
-
-: ca_file, ca_file=((|path|))
- Sets path of a CA certification file in PEM format.
- The file can contrain several CA certificates.
-
-: ca_path, ca_path=((|path|))
- Sets path of a CA certification directory containing certifications
- in PEM format.
-
-: verify_mode, verify_mode=((|mode|))
- Sets the flags for server the certification verification at
- begining of SSL/TLS session.
- OpenSSL::SSL::VERIFY_NONE or OpenSSL::SSL::VERIFY_PEER is acceptable.
-
-: verify_callback, verify_callback=((|proc|))
- Sets the verify callback for the server certification verification.
-
-: verify_depth, verify_depth=((|num|))
- Sets the maximum depth for the certificate chain verification.
-
-: cert_store, cert_store=((|store|))
- Sets the X509::Store to verify peer certificate.
-
-: ssl_timeout, ssl_timeout=((|sec|))
- Sets the SSL timeout seconds.
-
=end
require 'net/http'
require 'openssl'
-
-module Net
- class HTTP
- remove_method :use_ssl?
- def use_ssl?
- @use_ssl
- end
-
- # Turn on/off SSL.
- # This flag must be set before starting session.
- # If you change use_ssl value after session started,
- # a Net::HTTP object raises IOError.
- def use_ssl=(flag)
- flag = (flag ? true : false)
- if started? and @use_ssl != flag
- raise IOError, "use_ssl value changed, but session already started"
- end
- @use_ssl = flag
- end
-
- SSL_ATTRIBUTES = %w(
- ssl_version key cert ca_file ca_path cert_store ciphers
- verify_mode verify_callback verify_depth ssl_timeout
- )
- attr_accessor(*SSL_ATTRIBUTES)
-
- def peer_cert
- if not use_ssl? or not @socket
- return nil
- end
- @socket.io.peer_cert
- end
- end
-end
diff --git a/lib/net/imap.rb b/lib/net/imap.rb
index 161e7ac32a..e0815a1892 100644
--- a/lib/net/imap.rb
+++ b/lib/net/imap.rb
@@ -270,6 +270,16 @@ module Net
return @@debug = val
end
+ # Returns the max number of flags interned to symbols.
+ def self.max_flag_count
+ return @@max_flag_count
+ end
+
+ # Sets the max number of flags interned to symbols.
+ def self.max_flag_count=(count)
+ @@max_flag_count = count
+ end
+
# Adds an authenticator for Net::IMAP#authenticate. +auth_type+
# is the type of authentication this authenticator supports
# (for instance, "LOGIN"). The +authenticator+ is an object
@@ -297,9 +307,16 @@ module Net
end
rescue Errno::ENOTCONN
# ignore `Errno::ENOTCONN: Socket is not connected' on some platforms.
+ rescue Exception => e
+ @receiver_thread.raise(e)
end
@receiver_thread.join
- @sock.close
+ synchronize do
+ unless @sock.closed?
+ @sock.close
+ end
+ end
+ raise e if e
end
# Returns true if disconnected from the server.
@@ -511,6 +528,38 @@ module Net
end
end
+ # Sends a XLIST command, and returns a subset of names from
+ # the complete set of all names available to the client.
+ # +refname+ provides a context (for instance, a base directory
+ # in a directory-based mailbox hierarchy). +mailbox+ specifies
+ # a mailbox or (via wildcards) mailboxes under that context.
+ # Two wildcards may be used in +mailbox+: '*', which matches
+ # all characters *including* the hierarchy delimiter (for instance,
+ # '/' on a UNIX-hosted directory-based mailbox hierarchy); and '%',
+ # which matches all characters *except* the hierarchy delimiter.
+ #
+ # If +refname+ is empty, +mailbox+ is used directly to determine
+ # which mailboxes to match. If +mailbox+ is empty, the root
+ # name of +refname+ and the hierarchy delimiter are returned.
+ #
+ # The XLIST command is like the LIST command except that the flags
+ # returned refer to the function of the folder/mailbox, e.g. :Sent
+ #
+ # The return value is an array of +Net::IMAP::MailboxList+. For example:
+ #
+ # imap.create("foo/bar")
+ # imap.create("foo/baz")
+ # p imap.xlist("", "foo/%")
+ # #=> [#<Net::IMAP::MailboxList attr=[:Noselect], delim="/", name="foo/">, \\
+ # #<Net::IMAP::MailboxList attr=[:Noinferiors, :Marked], delim="/", name="foo/bar">, \\
+ # #<Net::IMAP::MailboxList attr=[:Noinferiors], delim="/", name="foo/baz">]
+ def xlist(refname, mailbox)
+ synchronize do
+ send_command("XLIST", refname, mailbox)
+ return @responses.delete("XLIST")
+ end
+ end
+
# Sends the GETQUOTAROOT command along with specified +mailbox+.
# This command is generally available to both admin and user.
# If mailbox exists, returns an array containing objects of
@@ -838,6 +887,49 @@ module Net
return thread_internal("UID THREAD", algorithm, search_keys, charset)
end
+ # Sends an IDLE command that waits for notifications of new or expunged
+ # messages. Yields responses from the server during the IDLE.
+ #
+ # Use #idle_done() to leave IDLE.
+ def idle(&response_handler)
+ raise LocalJumpError, "no block given" unless response_handler
+
+ response = nil
+
+ synchronize do
+ tag = Thread.current[:net_imap_tag] = generate_tag
+ put_string("#{tag} IDLE#{CRLF}")
+
+ begin
+ add_response_handler(response_handler)
+ @idle_done_cond = new_cond
+ @idle_done_cond.wait
+ @idle_done_cond = nil
+ if @receiver_thread_terminating
+ raise Net::IMAP::Error, "connection closed"
+ end
+ ensure
+ unless @receiver_thread_terminating
+ remove_response_handler(response_handler)
+ put_string("DONE#{CRLF}")
+ response = get_tagged_response(tag, "IDLE")
+ end
+ end
+ end
+
+ return response
+ end
+
+ # Leaves IDLE.
+ def idle_done
+ synchronize do
+ if @idle_done_cond.nil?
+ raise Net::IMAP::Error, "not during IDLE"
+ end
+ @idle_done_cond.signal
+ end
+ end
+
# Decode a string from modified UTF-7 format to UTF-8.
#
# UTF-7 is a 7-bit encoding of Unicode [UTF7]. IMAP uses a
@@ -863,7 +955,7 @@ module Net
# Encode a string from UTF-8 format to modified UTF-7.
def self.encode_utf7(s)
- return s.gsub(/(&)|([^\x20-\x25\x27-\x7e]+)/u) {
+ return s.gsub(/(&)|([^\x20-\x7e]+)/u) {
if $1
"&-"
else
@@ -873,6 +965,16 @@ module Net
}.force_encoding("ASCII-8BIT")
end
+ # Formats +time+ as an IMAP-style date.
+ def self.format_date(time)
+ return time.strftime('%d-%b-%Y')
+ end
+
+ # Formats +time+ as an IMAP-style date-time.
+ def self.format_datetime(time)
+ return time.strftime('%d-%b-%Y %H:%M %z')
+ end
+
private
CRLF = "\r\n" # :nodoc:
@@ -881,6 +983,7 @@ module Net
@@debug = false
@@authenticators = {}
+ @@max_flag_count = 10000
# call-seq:
# Net::IMAP.new(host, options = {})
@@ -940,6 +1043,7 @@ module Net
@response_handlers = []
@tagged_response_arrival = new_cond
@continuation_request_arrival = new_cond
+ @idle_done_cond = nil
@logout_command_tag = nil
@debug_output_bol = true
@exception = nil
@@ -947,17 +1051,22 @@ module Net
@greeting = get_response
if @greeting.name == "BYE"
@sock.close
- raise ByeResponseError, @greeting.raw_data
+ raise ByeResponseError, @greeting
end
@client_thread = Thread.current
@receiver_thread = Thread.start {
- receive_responses
+ begin
+ receive_responses
+ rescue Exception
+ end
}
+ @receiver_thread_terminating = false
end
def receive_responses
- while true
+ connection_closed = false
+ until connection_closed
synchronize do
@exception = nil
end
@@ -993,8 +1102,8 @@ module Net
end
if resp.name == "BYE" && @logout_command_tag.nil?
@sock.close
- @exception = ByeResponseError.new(resp.raw_data)
- break
+ @exception = ByeResponseError.new(resp)
+ connection_closed = true
end
when ContinuationRequest
@continuation_request_arrival.signal
@@ -1012,8 +1121,12 @@ module Net
end
end
synchronize do
+ @receiver_thread_terminating = true
@tagged_response_arrival.broadcast
@continuation_request_arrival.broadcast
+ if @idle_done_cond
+ @idle_done_cond.signal
+ end
end
end
@@ -1025,9 +1138,9 @@ module Net
resp = @tagged_responses.delete(tag)
case resp.name
when /\A(?:NO)\z/ni
- raise NoResponseError, resp.data.text
+ raise NoResponseError, resp
when /\A(?:BAD)\z/ni
- raise BadResponseError, resp.data.text
+ raise BadResponseError, resp
else
return resp
end
@@ -1166,7 +1279,7 @@ module Net
end
def send_literal(str)
- put_string("{" + str.length.to_s + "}" + CRLF)
+ put_string("{" + str.bytesize.to_s + "}" + CRLF)
@continuation_request_arrival.wait
raise @exception if @exception
put_string(str)
@@ -1221,9 +1334,15 @@ module Net
end
def fetch_internal(cmd, set, attr)
- if attr.instance_of?(String)
+ case attr
+ when String then
attr = RawData.new(attr)
+ when Array then
+ attr = attr.map { |arg|
+ arg.is_a?(String) ? RawData.new(arg) : arg
+ }
end
+
synchronize do
@responses.delete("FETCH")
send_command(cmd, MessageSet.new(set), attr)
@@ -1880,6 +1999,14 @@ module Net
end
class ResponseParser # :nodoc:
+ def initialize
+ @str = nil
+ @pos = nil
+ @lex_state = nil
+ @token = nil
+ @flag_symbols = {}
+ end
+
def parse(str)
@str = str
@pos = 0
@@ -1916,9 +2043,9 @@ module Net
BEG_REGEXP = /\G(?:\
(?# 1: SPACE )( +)|\
-(?# 2: NIL )(NIL)(?=[\x80-\xff(){ \x00-\x1f\x7f%*"\\\[\]+])|\
-(?# 3: NUMBER )(\d+)(?=[\x80-\xff(){ \x00-\x1f\x7f%*"\\\[\]+])|\
-(?# 4: ATOM )([^\x80-\xff(){ \x00-\x1f\x7f%*"\\\[\]+]+)|\
+(?# 2: NIL )(NIL)(?=[\x80-\xff(){ \x00-\x1f\x7f%*#{'"'}\\\[\]+])|\
+(?# 3: NUMBER )(\d+)(?=[\x80-\xff(){ \x00-\x1f\x7f%*#{'"'}\\\[\]+])|\
+(?# 4: ATOM )([^\x80-\xff(){ \x00-\x1f\x7f%*#{'"'}\\\[\]+]+)|\
(?# 5: QUOTED )"((?:[^\x00\r\n"\\]|\\["\\])*)"|\
(?# 6: LPAR )(\()|\
(?# 7: RPAR )(\))|\
@@ -1986,7 +2113,7 @@ module Net
return response_cond
when /\A(?:FLAGS)\z/ni
return flags_response
- when /\A(?:LIST|LSUB)\z/ni
+ when /\A(?:LIST|LSUB|XLIST)\z/ni
return list_response
when /\A(?:QUOTA)\z/ni
return getquota_response
@@ -2053,7 +2180,7 @@ module Net
break
when T_SPACE
shift_token
- token = lookahead
+ next
end
case token.value
when /\A(?:ENVELOPE)\z/ni
@@ -2486,7 +2613,7 @@ module Net
return '""'
when /[\x80-\xff\r\n]/n
# literal
- return "{" + str.length.to_s + "}" + CRLF + str
+ return "{" + str.bytesize.to_s + "}" + CRLF + str
when /[(){ \x00-\x1f\x7f%*"\\]/n
# quoted string
return '"' + str.gsub(/["\\]/n, "\\\\\\&") + '"'
@@ -2595,7 +2722,6 @@ module Net
token = match(T_ATOM)
name = token.value.upcase
match(T_SPACE)
- mailbox = astring
data = []
token = lookahead
if token.symbol == T_SPACE
@@ -2632,8 +2758,9 @@ module Net
break
when T_SPACE
shift_token
+ else
+ data.push(number)
end
- data.push(number)
end
else
data = []
@@ -2776,11 +2903,16 @@ module Net
match(T_SPACE)
result = ResponseCode.new(name, number)
else
- match(T_SPACE)
- @lex_state = EXPR_CTEXT
- token = match(T_TEXT)
- @lex_state = EXPR_BEG
- result = ResponseCode.new(name, token.value)
+ token = lookahead
+ if token.symbol == T_SPACE
+ shift_token
+ @lex_state = EXPR_CTEXT
+ token = match(T_TEXT)
+ @lex_state = EXPR_BEG
+ result = ResponseCode.new(name, token.value)
+ else
+ result = ResponseCode.new(name, nil)
+ end
end
match(T_RBRA)
@lex_state = EXPR_RTEXT
@@ -2885,7 +3017,16 @@ module Net
if @str.index(/\(([^)]*)\)/ni, @pos)
@pos = $~.end(0)
return $1.scan(FLAG_REGEXP).collect { |flag, atom|
- atom || flag.capitalize.intern
+ if atom
+ atom
+ else
+ symbol = flag.capitalize.untaint.intern
+ @flag_symbols[symbol] = true
+ if @flag_symbols.length > IMAP.max_flag_count
+ raise FlagCountError, "number of flag symbols exceeded"
+ end
+ symbol
+ end
}
else
parse_error("invalid flag list")
@@ -3217,73 +3358,73 @@ module Net
# #authenticate().
class DigestMD5Authenticator
def process(challenge)
- case @stage
- when STAGE_ONE
- @stage = STAGE_TWO
- sparams = {}
- c = StringScanner.new(challenge)
- while c.scan(/(?:\s*,)?\s*(\w+)=("(?:[^\\"]+|\\.)*"|[^,]+)\s*/)
- k, v = c[1], c[2]
- if v =~ /^"(.*)"$/
- v = $1
- if v =~ /,/
- v = v.split(',')
- end
- end
- sparams[k] = v
- end
-
- raise DataFormatError, "Bad Challenge: '#{challenge}'" unless c.rest.size == 0
- raise Error, "Server does not support auth (qop = #{sparams['qop'].join(',')})" unless sparams['qop'].include?("auth")
-
- response = {
- :nonce => sparams['nonce'],
- :username => @user,
- :realm => sparams['realm'],
- :cnonce => Digest::MD5.hexdigest("%.15f:%.15f:%d" % [Time.now.to_f, rand, Process.pid.to_s]),
- :'digest-uri' => 'imap/' + sparams['realm'],
- :qop => 'auth',
- :maxbuf => 65535,
- :nc => "%08d" % nc(sparams['nonce']),
- :charset => sparams['charset'],
- }
-
- response[:authzid] = @authname unless @authname.nil?
-
- # now, the real thing
- a0 = Digest::MD5.digest( [ response.values_at(:username, :realm), @password ].join(':') )
-
- a1 = [ a0, response.values_at(:nonce,:cnonce) ].join(':')
- a1 << ':' + response[:authzid] unless response[:authzid].nil?
-
- a2 = "AUTHENTICATE:" + response[:'digest-uri']
- a2 << ":00000000000000000000000000000000" if response[:qop] and response[:qop] =~ /^auth-(?:conf|int)$/
-
- response[:response] = Digest::MD5.hexdigest(
- [
- Digest::MD5.hexdigest(a1),
- response.values_at(:nonce, :nc, :cnonce, :qop),
- Digest::MD5.hexdigest(a2)
- ].join(':')
- )
-
- return response.keys.map {|key| qdval(key.to_s, response[key]) }.join(',')
- when STAGE_TWO
- @stage = nil
- # if at the second stage, return an empty string
- if challenge =~ /rspauth=/
- return ''
- else
- raise ResponseParseError, challenge
- end
- else
- raise ResponseParseError, challenge
- end
+ case @stage
+ when STAGE_ONE
+ @stage = STAGE_TWO
+ sparams = {}
+ c = StringScanner.new(challenge)
+ while c.scan(/(?:\s*,)?\s*(\w+)=("(?:[^\\"]+|\\.)*"|[^,]+)\s*/)
+ k, v = c[1], c[2]
+ if v =~ /^"(.*)"$/
+ v = $1
+ if v =~ /,/
+ v = v.split(',')
+ end
+ end
+ sparams[k] = v
+ end
+
+ raise DataFormatError, "Bad Challenge: '#{challenge}'" unless c.rest.size == 0
+ raise Error, "Server does not support auth (qop = #{sparams['qop'].join(',')})" unless sparams['qop'].include?("auth")
+
+ response = {
+ :nonce => sparams['nonce'],
+ :username => @user,
+ :realm => sparams['realm'],
+ :cnonce => Digest::MD5.hexdigest("%.15f:%.15f:%d" % [Time.now.to_f, rand, Process.pid.to_s]),
+ :'digest-uri' => 'imap/' + sparams['realm'],
+ :qop => 'auth',
+ :maxbuf => 65535,
+ :nc => "%08d" % nc(sparams['nonce']),
+ :charset => sparams['charset'],
+ }
+
+ response[:authzid] = @authname unless @authname.nil?
+
+ # now, the real thing
+ a0 = Digest::MD5.digest( [ response.values_at(:username, :realm), @password ].join(':') )
+
+ a1 = [ a0, response.values_at(:nonce,:cnonce) ].join(':')
+ a1 << ':' + response[:authzid] unless response[:authzid].nil?
+
+ a2 = "AUTHENTICATE:" + response[:'digest-uri']
+ a2 << ":00000000000000000000000000000000" if response[:qop] and response[:qop] =~ /^auth-(?:conf|int)$/
+
+ response[:response] = Digest::MD5.hexdigest(
+ [
+ Digest::MD5.hexdigest(a1),
+ response.values_at(:nonce, :nc, :cnonce, :qop),
+ Digest::MD5.hexdigest(a2)
+ ].join(':')
+ )
+
+ return response.keys.map {|key| qdval(key.to_s, response[key]) }.join(',')
+ when STAGE_TWO
+ @stage = nil
+ # if at the second stage, return an empty string
+ if challenge =~ /rspauth=/
+ return ''
+ else
+ raise ResponseParseError, challenge
+ end
+ else
+ raise ResponseParseError, challenge
+ end
end
def initialize(user, password, authname = nil)
- @user, @password, @authname = user, password, authname
- @nc, @stage = {}, STAGE_ONE
+ @user, @password, @authname = user, password, authname
+ @nc, @stage = {}, STAGE_ONE
end
private
@@ -3292,23 +3433,23 @@ module Net
STAGE_TWO = :stage_two
def nc(nonce)
- if @nc.has_key? nonce
- @nc[nonce] = @nc[nonce] + 1
- else
- @nc[nonce] = 1
- end
- return @nc[nonce]
+ if @nc.has_key? nonce
+ @nc[nonce] = @nc[nonce] + 1
+ else
+ @nc[nonce] = 1
+ end
+ return @nc[nonce]
end
# some responses need quoting
def qdval(k, v)
- return if k.nil? or v.nil?
- if %w"username authzid realm nonce cnonce digest-uri qop".include? k
- v.gsub!(/([\\"])/, "\\\1")
- return '%s="%s"' % [k, v]
- else
- return '%s=%s' % [k, v]
- end
+ return if k.nil? or v.nil?
+ if %w"username authzid realm nonce cnonce digest-uri qop".include? k
+ v.gsub!(/([\\"])/, "\\\1")
+ return '%s="%s"' % [k, v]
+ else
+ return '%s=%s' % [k, v]
+ end
end
end
add_authenticator "DIGEST-MD5", DigestMD5Authenticator
@@ -3328,6 +3469,16 @@ module Net
# Superclass of all errors used to encapsulate "fail" responses
# from the server.
class ResponseError < Error
+
+ # The response that caused this error
+ attr_accessor :response
+
+ def initialize(response)
+ @response = response
+
+ super @response.data.text
+ end
+
end
# Error raised upon a "NO" response from the server, indicating
@@ -3346,6 +3497,10 @@ module Net
# out due to inactivity.
class ByeResponseError < ResponseError
end
+
+ # Error raised when too many flags are interned to symbols.
+ class FlagCountError < Error
+ end
end
end
@@ -3358,27 +3513,44 @@ if __FILE__ == $0
$user = ENV["USER"] || ENV["LOGNAME"]
$auth = "login"
$ssl = false
+ $starttls = false
def usage
- $stderr.print <<EOF
+ <<EOF
usage: #{$0} [options] <host>
--help print this message
--port=PORT specifies port
--user=USER specifies user
--auth=AUTH specifies auth type
+ --starttls use starttls
--ssl use ssl
EOF
end
+ begin
+ require 'io/console'
+ rescue LoadError
+ def _noecho(&block)
+ system("stty", "-echo")
+ begin
+ yield STDIN
+ ensure
+ system("stty", "echo")
+ end
+ end
+ else
+ def _noecho(&block)
+ STDIN.noecho(&block)
+ end
+ end
+
def get_password
print "password: "
- system("stty", "-echo")
begin
- return gets.chop
+ return _noecho(&:gets).chomp
ensure
- system("stty", "echo")
- print "\n"
+ puts
end
end
@@ -3397,6 +3569,7 @@ EOF
['--port', GetoptLong::REQUIRED_ARGUMENT],
['--user', GetoptLong::REQUIRED_ARGUMENT],
['--auth', GetoptLong::REQUIRED_ARGUMENT],
+ ['--starttls', GetoptLong::NO_ARGUMENT],
['--ssl', GetoptLong::NO_ARGUMENT])
begin
parser.each_option do |name, arg|
@@ -3409,27 +3582,30 @@ EOF
$auth = arg
when "--ssl"
$ssl = true
+ when "--starttls"
+ $starttls = true
when "--debug"
Net::IMAP.debug = true
when "--help"
usage
- exit(1)
+ exit
end
end
rescue
- usage
- exit(1)
+ abort usage
end
$host = ARGV.shift
unless $host
- usage
- exit(1)
+ abort usage
end
imap = Net::IMAP.new($host, :port => $port, :ssl => $ssl)
begin
- password = get_password
+ imap.starttls if $starttls
+ class << password = method(:get_password)
+ alias to_str call
+ end
imap.authenticate($auth, $user, password)
while true
cmd, *args = get_command
diff --git a/lib/net/pop.rb b/lib/net/pop.rb
index 6a45e3b5f0..7e14246d16 100644
--- a/lib/net/pop.rb
+++ b/lib/net/pop.rb
@@ -196,12 +196,14 @@ module Net
#
class POP3 < Protocol
+ # svn revision of this library
Revision = %q$Revision$.split[1]
#
# Class Parameters
#
+ # returns the port for POP3
def POP3.default_port
default_pop3_port()
end
@@ -333,6 +335,7 @@ module Net
@ssl_params = create_ssl_params(*args)
end
+ # Constructs proper parameters from arguments
def POP3.create_ssl_params(verify_or_params = {}, certs = nil)
begin
params = verify_or_params.to_hash
@@ -355,18 +358,24 @@ module Net
@ssl_params = nil
end
+ # returns the SSL Parameters
+ #
+ # see also POP3.enable_ssl
def POP3.ssl_params
return @ssl_params
end
+ # returns +true+ if POP3.ssl_params is set
def POP3.use_ssl?
return !@ssl_params.nil?
end
+ # returns whether verify_mode is enable from POP3.ssl_params
def POP3.verify
return @ssl_params[:verify_mode]
end
+ # returns the :ca_file or :ca_path from POP3.ssh_params
def POP3.certs
return @ssl_params[:ca_file] || @ssl_params[:ca_path]
end
@@ -452,6 +461,7 @@ module Net
end
end
+ # Disable SSL for all new instances.
def disable_ssl
@ssl_params = nil
end
@@ -530,7 +540,8 @@ module Net
end
end
- def do_start(account, password)
+ # internal method for Net::POP3.start
+ def do_start(account, password) # :nodoc:
s = timeout(@open_timeout) { TCPSocket.open(@address, port) }
if use_ssl?
raise 'openssl library not installed' unless defined?(OpenSSL)
@@ -565,7 +576,8 @@ module Net
end
private :do_start
- def on_connect
+ # Does nothing
+ def on_connect # :nodoc:
end
private :on_connect
@@ -575,7 +587,12 @@ module Net
do_finish
end
- def do_finish
+ # nil's out the:
+ # - mails
+ # - number counter for mails
+ # - number counter for bytes
+ # - quits the current command, if any
+ def do_finish # :nodoc:
@mails = nil
@n_mails = nil
@n_bytes = nil
@@ -588,7 +605,10 @@ module Net
end
private :do_finish
- def command
+ # Returns the current command.
+ #
+ # Raises IOError if there is no active socket
+ def command # :nodoc:
raise IOError, 'POP session not opened yet' \
if not @socket or @socket.closed?
@command
@@ -687,6 +707,7 @@ module Net
@mails.each {|m| m.uid = uidl[m.number] }
end
+ # deguging output for +msg+
def logging(msg)
@debug_output << msg + "\n" if @debug_output
end
diff --git a/lib/net/protocol.rb b/lib/net/protocol.rb
index d927c52f34..ab0e70e609 100644
--- a/lib/net/protocol.rb
+++ b/lib/net/protocol.rb
@@ -50,18 +50,24 @@ module Net # :nodoc:
def initialize(io)
@io = io
@read_timeout = 60
+ @continue_timeout = nil
@debug_output = nil
@rbuf = ''
end
attr_reader :io
attr_accessor :read_timeout
+ attr_accessor :continue_timeout
attr_accessor :debug_output
def inspect
"#<#{self.class} io=#{@io}>"
end
+ def eof?
+ @io.eof?
+ end
+
def closed?
@io.closed?
end
@@ -137,7 +143,7 @@ module Net # :nodoc:
if IO.select([@io], nil, nil, @read_timeout)
retry
else
- raise Timeout::TimeoutError
+ raise Timeout::Error
end
rescue IO::WaitWritable
# OpenSSL::Buffering#read_nonblock may fail with IO::WaitWritable.
@@ -145,7 +151,7 @@ module Net # :nodoc:
if IO.select(nil, [@io], nil, @read_timeout)
retry
else
- raise Timeout::TimeoutError
+ raise Timeout::Error
end
end
end
@@ -168,6 +174,8 @@ module Net # :nodoc:
}
end
+ alias << write
+
def writeline(str)
writing {
write0 str + "\r\n"
diff --git a/lib/net/smtp.rb b/lib/net/smtp.rb
index 8c50e28dd0..33b88f5c21 100644
--- a/lib/net/smtp.rb
+++ b/lib/net/smtp.rb
@@ -118,7 +118,7 @@ module Net
# Net::SMTP.start('your.smtp.server', 25) do |smtp|
# smtp.send_message msgstr,
# 'your@mail.address',
- # 'his_addess@example.com'
+ # 'his_address@example.com'
# end
#
# === Closing the Session
@@ -229,11 +229,6 @@ module Net
"#<#{self.class} #{@address}:#{@port} started=#{@started}>"
end
- # +true+ if the SMTP object uses ESMTP (which it does by default).
- def esmtp?
- @esmtp
- end
-
#
# Set whether to use ESMTP or not. This should be done before
# calling #start. Note that if #start is called in ESMTP mode,
@@ -241,11 +236,10 @@ module Net
# object will automatically switch to plain SMTP mode and
# retry (but not vice versa).
#
- def esmtp=(bool)
- @esmtp = bool
- end
+ attr_accessor :esmtp
- alias esmtp esmtp?
+ # +true+ if the SMTP object uses ESMTP (which it does by default).
+ alias :esmtp? :esmtp
# true if server advertises STARTTLS.
# You cannot get valid value before opening SMTP session.
@@ -542,13 +536,17 @@ module Net
private
+ def tcp_socket(address, port)
+ TCPSocket.open address, port
+ end
+
def do_start(helo_domain, user, secret, authtype)
raise IOError, 'SMTP session already started' if @started
if user or secret
check_auth_method(authtype || DEFAULT_AUTH_TYPE)
check_auth_args user, secret
end
- s = timeout(@open_timeout) { TCPSocket.open(@address, @port) }
+ s = timeout(@open_timeout) { tcp_socket(@address, @port) }
logging "Connection opened: #{@address}:#{@port}"
@socket = new_internet_message_io(tls? ? tlsconnect(s) : s)
check_response critical { recv_response() }
@@ -573,15 +571,23 @@ module Net
end
end
+ def ssl_socket(socket, context)
+ OpenSSL::SSL::SSLSocket.new socket, context
+ end
+
def tlsconnect(s)
- s = OpenSSL::SSL::SSLSocket.new(s, @ssl_context)
+ verified = false
+ s = ssl_socket(s, @ssl_context)
logging "TLS connection started"
s.sync_close = true
s.connect
if @ssl_context.verify_mode != OpenSSL::SSL::VERIFY_NONE
s.post_connection_check(@address)
end
+ verified = true
s
+ ensure
+ s.close unless verified
end
def new_internet_message_io(s)
@@ -651,8 +657,7 @@ module Net
def send_message(msgstr, from_addr, *to_addrs)
raise IOError, 'closed session' unless @socket
mailfrom from_addr
- rcptto_list to_addrs
- data msgstr
+ rcptto_list(to_addrs) {data msgstr}
end
alias send_mail send_message
@@ -705,8 +710,7 @@ module Net
def open_message_stream(from_addr, *to_addrs, &block) # :yield: stream
raise IOError, 'closed session' unless @socket
mailfrom from_addr
- rcptto_list to_addrs
- data(&block)
+ rcptto_list(to_addrs) {data(&block)}
end
alias ready open_message_stream # obsolete
@@ -830,9 +834,23 @@ module Net
def rcptto_list(to_addrs)
raise ArgumentError, 'mail destination not given' if to_addrs.empty?
+ ok_users = []
+ unknown_users = []
to_addrs.flatten.each do |addr|
- rcptto addr
+ begin
+ rcptto addr
+ rescue SMTPAuthenticationError
+ unknown_users << addr.dump
+ else
+ ok_users << addr
+ end
+ end
+ raise ArgumentError, 'mail destination not given' if ok_users.empty?
+ ret = yield
+ unless unknown_users.empty?
+ raise SMTPAuthenticationError, "failed to deliver for #{unknown_users.join(', ')}"
end
+ ret
end
def rcptto(to_addr)
@@ -949,49 +967,74 @@ module Net
end
end
+ # This class represents a response received by the SMTP server. Instances
+ # of this class are created by the SMTP class; they should not be directly
+ # created by the user. For more information on SMTP responses, view
+ # {Section 4.2 of RFC 5321}[http://tools.ietf.org/html/rfc5321#section-4.2]
class Response
- def Response.parse(str)
+ # Parses the received response and separates the reply code and the human
+ # readable reply text
+ def self.parse(str)
new(str[0,3], str)
end
+ # Creates a new instance of the Response class and sets the status and
+ # string attributes
def initialize(status, string)
@status = status
@string = string
end
+ # The three digit reply code of the SMTP response
attr_reader :status
+
+ # The human readable reply text of the SMTP response
attr_reader :string
+ # Takes the first digit of the reply code to determine the status type
def status_type_char
@status[0, 1]
end
+ # Determines whether the response received was a Positive Completion
+ # reply (2xx reply code)
def success?
status_type_char() == '2'
end
+ # Determines whether the response received was a Positive Intermediate
+ # reply (3xx reply code)
def continue?
status_type_char() == '3'
end
+ # The first line of the human readable reply text
def message
@string.lines.first
end
+ # Creates a CRAM-MD5 challenge. You can view more information on CRAM-MD5
+ # on Wikipedia: http://en.wikipedia.org/wiki/CRAM-MD5
def cram_md5_challenge
@string.split(/ /)[1].unpack('m')[0]
end
+ # Returns a hash of the human readable reply text in the response if it
+ # is multiple lines. It does not return the first line. The key of the
+ # hash is the first word the value of the hash is an array with each word
+ # thereafter being a value in the array
def capabilities
return {} unless @string[3, 1] == '-'
h = {}
@string.lines.drop(1).each do |line|
- k, *v = line[4..-1].chomp.split(nil)
+ k, *v = line[4..-1].chomp.split
h[k] = v
end
h
end
+ # Determines whether there was an error and raies the appropriate error
+ # based on the reply code of the response
def exception_class
case @status
when /\A4/ then SMTPServerBusy
diff --git a/lib/net/telnet.rb b/lib/net/telnet.rb
index 98285a944b..fe463c63dc 100644
--- a/lib/net/telnet.rb
+++ b/lib/net/telnet.rb
@@ -10,7 +10,6 @@
#
require "socket"
-require "delegate"
require "timeout"
require "English"
@@ -93,7 +92,7 @@ module Net
# of relevant RFCs, see
# http://www.omnifarious.org/~hopper/technical/telnet-rfc.html
#
- class Telnet < SimpleDelegator
+ class Telnet
# :stopdoc:
IAC = 255.chr # "\377" # "\xff" # interpret as command
@@ -368,7 +367,6 @@ module Net
@dumplog.log_dump('#', message) if @options.has_key?("Dump_log")
end
- super(@sock)
end # initialize
# The socket the Telnet object is using. Note that this object becomes
@@ -681,20 +679,22 @@ module Net
def cmd(options) # :yield: recvdata
match = @options["Prompt"]
time_out = @options["Timeout"]
+ fail_eof = @options["FailEOF"]
if options.kind_of?(Hash)
string = options["String"]
match = options["Match"] if options.has_key?("Match")
time_out = options["Timeout"] if options.has_key?("Timeout")
+ fail_eof = options["FailEOF"] if options.has_key?("FailEOF")
else
string = options
end
self.puts(string)
if block_given?
- waitfor({"Prompt" => match, "Timeout" => time_out}){|c| yield c }
+ waitfor({"Prompt" => match, "Timeout" => time_out, "FailEOF" => fail_eof}){|c| yield c }
else
- waitfor({"Prompt" => match, "Timeout" => time_out})
+ waitfor({"Prompt" => match, "Timeout" => time_out, "FailEOF" => fail_eof})
end
end
@@ -726,8 +726,8 @@ module Net
if options.kind_of?(Hash)
username = options["Name"]
password = options["Password"]
- login_prompt = options["LoginPrompt"] if options["LoginPrompt"]
- password_prompt = options["PasswordPrompt"] if options["PasswordPrompt"]
+ login_prompt = options["LoginPrompt"] if options["LoginPrompt"]
+ password_prompt = options["PasswordPrompt"] if options["PasswordPrompt"]
else
username = options
end
@@ -754,6 +754,11 @@ module Net
line
end
+ # Closes the connection
+ def close
+ @sock.close
+ end
+
end # class Telnet
end # module Net
diff --git a/lib/observer.rb b/lib/observer.rb
index ee3f01b793..a5d0dc0f4e 100644
--- a/lib/observer.rb
+++ b/lib/observer.rb
@@ -1,33 +1,34 @@
#
-# observer.rb implements the _Observer_ object-oriented design pattern. The
+# Implementation of the _Observer_ object-oriented design pattern. The
# following documentation is copied, with modifications, from "Programming
# Ruby", by Hunt and Thomas; http://www.rubycentral.com/book/lib_patterns.html.
#
-# == About
-#
-# The Observer pattern, also known as Publish/Subscribe, provides a simple
+# See Observable for more info.
+
+# The Observer pattern (also known as publish/subscribe) provides a simple
# mechanism for one object to inform a set of interested third-party objects
# when its state changes.
#
# == Mechanism
#
-# In the Ruby implementation, the notifying class mixes in the +Observable+
+# The notifying class mixes in the +Observable+
# module, which provides the methods for managing the associated observer
# objects.
#
-# The observers must implement the +update+ method to receive notifications.
+# The observers must implement a method called +update+ to receive
+# notifications.
#
# The observable object must:
-# * assert that it has +changed+
-# * call +notify_observers+
+# * assert that it has +#changed+
+# * call +#notify_observers+
#
-# == Example
+# === Example
#
# The following example demonstrates this nicely. A +Ticker+, when run,
-# continually receives the stock +Price+ for its +@symbol+. A +Warner+ is a
-# general observer of the price, and two warners are demonstrated, a +WarnLow+
-# and a +WarnHigh+, which print a warning if the price is below or above their
-# set limits, respectively.
+# continually receives the stock +Price+ for its <tt>@symbol</tt>. A +Warner+
+# is a general observer of the price, and two warners are demonstrated, a
+# +WarnLow+ and a +WarnHigh+, which print a warning if the price is below or
+# above their set limits, respectively.
#
# The +update+ callback allows the warners to run without being explicitly
# called. The system is set up with the +Ticker+ and several observers, and the
@@ -108,19 +109,20 @@
# Current price: 112
# Current price: 79
# --- Sun Jun 09 00:10:25 CDT 2002: Price below 80: 79
-
-
-#
-# Implements the Observable design pattern as a mixin so that other objects can
-# be notified of changes in state. See observer.rb for details and an example.
-#
module Observable
#
- # Add +observer+ as an observer on this object. +observer+ will now receive
- # notifications. The second optional argument specifies a method to notify
- # updates, of which default value is +update+.
+ # Add +observer+ as an observer on this object. so that it will receive
+ # notifications.
+ #
+ # +observer+:: the object that will be notified of changes.
+ # +func+:: Symbol naming the method that will be called when this Observable
+ # has changes.
#
+ # This method must return true for +observer.respond_to?+ and will
+ # receive <tt>*arg</tt> when #notify_observers is called, where
+ # <tt>*arg</tt> is the value passed to #notify_observers by this
+ # Observable
def add_observer(observer, func=:update)
@observer_peers = {} unless defined? @observer_peers
unless observer.respond_to? func
@@ -130,15 +132,16 @@ module Observable
end
#
- # Delete +observer+ as an observer on this object. It will no longer receive
- # notifications.
+ # Remove +observer+ as an observer on this object so that it will no longer
+ # receive notifications.
#
+ # +observer+:: An observer of this Observable
def delete_observer(observer)
@observer_peers.delete observer if defined? @observer_peers
end
#
- # Delete all observers associated with this object.
+ # Remove all observers associated with this object.
#
def delete_observers
@observer_peers.clear if defined? @observer_peers
@@ -159,12 +162,15 @@ module Observable
# Set the changed state of this object. Notifications will be sent only if
# the changed +state+ is +true+.
#
+ # +state+:: Boolean indicating the changed state of this Observable.
+ #
def changed(state=true)
@observer_state = state
end
#
- # Query the changed state of this object.
+ # Returns true if this object's state has been changed since the last
+ # #notify_observers call.
#
def changed?
if defined? @observer_state and @observer_state
@@ -175,16 +181,19 @@ module Observable
end
#
- # If this object's changed state is +true+, invoke the update method in each
- # currently associated observer in turn, passing it the given arguments. The
- # changed state is then set to +false+.
+ # Notify observers of a change in state *if* this object's changed state is
+ # +true+.
+ #
+ # This will invoke the method named in #add_observer, pasing <tt>*arg</tt>.
+ # The changed state is then set to +false+.
#
+ # <tt>*arg</tt>:: Any arguments to pass to the observers.
def notify_observers(*arg)
if defined? @observer_state and @observer_state
if defined? @observer_peers
- @observer_peers.each { |k, v|
- k.send v, *arg
- }
+ @observer_peers.each do |k, v|
+ k.send v, *arg
+ end
end
@observer_state = false
end
diff --git a/lib/open-uri.rb b/lib/open-uri.rb
index 2a6c544fe6..6e24b40ba5 100644
--- a/lib/open-uri.rb
+++ b/lib/open-uri.rb
@@ -9,21 +9,21 @@ module Kernel
alias open_uri_original_open open # :nodoc:
end
- # makes possible to open various resources including URIs.
- # If the first argument respond to `open' method,
- # the method is called with the rest arguments.
+ # Allows the opening of various resources including URIs.
#
- # If the first argument is a string which begins with xxx://,
- # it is parsed by URI.parse. If the parsed object respond to `open' method,
- # the method is called with the rest arguments.
+ # If the first argument responds to the 'open' method, 'open' is called on
+ # it with the rest of the arguments.
#
- # Otherwise original open is called.
+ # If the first argument is a string that begins with xxx://, it is parsed by
+ # URI.parse. If the parsed object responds to the 'open' method,
+ # 'open' is called on it with the rest of the arguments.
+ #
+ # Otherwise, the original Kernel#open is called.
#
# Since open-uri.rb provides URI::HTTP#open, URI::HTTPS#open and
- # URI::FTP#open,
- # Kernel[#.]open can accepts such URIs and strings which begins with
- # http://, https:// and ftp://.
- # In these case, the opened file object is extended by OpenURI::Meta.
+ # URI::FTP#open, Kernel[#.]open can accept URIs and strings that begin with
+ # http://, https:// and ftp://. In these cases, the opened file object is
+ # extended by OpenURI::Meta.
def open(name, *rest, &block) # :doc:
if name.respond_to?(:open)
name.open(*rest, &block)
@@ -42,14 +42,14 @@ end
#
#== Example
#
-# It is possible to open http/https/ftp URL as usual like opening a file:
+# It is possible to open an http, https or ftp URL as though it were a file:
#
# open("http://www.ruby-lang.org/") {|f|
# f.each_line {|line| p line}
# }
#
-# The opened file has several methods for meta information as follows since
-# it is extended by OpenURI::Meta.
+# The opened file has several getter methods for its meta-information, as
+# follows, since it is extended by OpenURI::Meta.
#
# open("http://www.ruby-lang.org/en") {|f|
# f.each_line {|line| p line}
@@ -126,7 +126,7 @@ module OpenURI
def OpenURI.open_uri(name, *rest) # :nodoc:
uri = URI::Generic === name ? name : URI.parse(name)
- mode, perm, rest = OpenURI.scan_open_optional_arguments(*rest)
+ mode, _, rest = OpenURI.scan_open_optional_arguments(*rest)
options = rest.shift if !rest.empty? && Hash === rest.first
raise ArgumentError.new("extra arguments") if !rest.empty?
options ||= {}
@@ -234,7 +234,7 @@ module OpenURI
def OpenURI.redirectable?(uri1, uri2) # :nodoc:
# This test is intended to forbid a redirection from http://... to
- # file:///etc/passwd.
+ # file:///etc/passwd, file:///dev/zero, etc. CVE-2011-1521
# https to http redirect is also forbidden intentionally.
# It avoids sending secure cookie or referer by non-secure HTTP protocol.
# (RFC 2109 4.3.1, RFC 2965 3.3, RFC 2616 15.1.3)
@@ -263,17 +263,17 @@ module OpenURI
# HTTP or HTTPS
if proxy
if proxy_user && proxy_pass
- klass = Net::HTTP::Proxy(proxy_uri.host, proxy_uri.port, proxy_user, proxy_pass)
+ klass = Net::HTTP::Proxy(proxy_uri.hostname, proxy_uri.port, proxy_user, proxy_pass)
else
- klass = Net::HTTP::Proxy(proxy_uri.host, proxy_uri.port)
+ klass = Net::HTTP::Proxy(proxy_uri.hostname, proxy_uri.port)
end
end
- target_host = target.host
+ target_host = target.hostname
target_port = target.port
request_uri = target.request_uri
else
# FTP over HTTP proxy
- target_host = proxy_uri.host
+ target_host = proxy_uri.hostname
target_port = proxy_uri.port
request_uri = target.to_s
if proxy_user && proxy_pass
@@ -407,14 +407,14 @@ module OpenURI
end
end
- # returns an Array which consists status code and message.
+ # returns an Array that consists of status code and message.
attr_accessor :status
- # returns a URI which is base of relative URIs in the data.
- # It may differ from the URI supplied by a user because redirection.
+ # returns a URI that is the base of relative URIs in the data.
+ # It may differ from the URI supplied by a user due to redirection.
attr_accessor :base_uri
- # returns a Hash which represents header fields.
+ # returns a Hash that represents header fields.
# The Hash keys are downcased for canonicalization.
attr_reader :meta
@@ -443,7 +443,7 @@ module OpenURI
meta_setup_encoding if name == 'content-type'
end
- # returns a Time which represents Last-Modified field.
+ # returns a Time that represents the Last-Modified field.
def last_modified
if v = @meta['last-modified']
Time.httpdate(v)
@@ -465,7 +465,9 @@ module OpenURI
subtype = $2.downcase
parameters = []
$3.scan(/;#{RE_LWS}?(#{RE_TOKEN})#{RE_LWS}?=#{RE_LWS}?(?:(#{RE_TOKEN})|(#{RE_QUOTED_STRING}))/no) {|att, val, qval|
- val = qval.gsub(/[\r\n\t !#-\[\]-~\x80-\xff]+|(\\[\x00-\x7f])/n) { $1 ? $1[1,1] : $& } if qval
+ if qval
+ val = qval[1...-1].gsub(/[\r\n\t !#-\[\]-~\x80-\xff]+|(\\[\x00-\x7f])/n) { $1 ? $1[1,1] : $& }
+ end
parameters << [att.downcase, val]
}
["#{type}/#{subtype}", *parameters]
@@ -478,7 +480,7 @@ module OpenURI
# It is downcased for canonicalization.
# Content-Type parameters are stripped.
def content_type
- type, *parameters = content_type_parse
+ type, *_ = content_type_parse
type || 'application/octet-stream'
end
@@ -524,22 +526,25 @@ module OpenURI
# OpenURI::OpenRead#open provides `open' for URI::HTTP and URI::FTP.
#
# OpenURI::OpenRead#open takes optional 3 arguments as:
- # OpenURI::OpenRead#open([mode [, perm]] [, options]) [{|io| ... }]
#
- # `mode', `perm' is same as Kernel#open.
+ # OpenURI::OpenRead#open([mode [, perm]] [, options]) [{|io| ... }]
+ #
+ # OpenURI::OpenRead#open returns an IO-like object if block is not given.
+ # Otherwise it yields the IO object and return the value of the block.
+ # The IO object is extended with OpenURI::Meta.
+ #
+ # +mode+ and +perm+ are the same as Kernel#open.
#
- # However, `mode' must be read mode because OpenURI::OpenRead#open doesn't
+ # However, +mode+ must be read mode because OpenURI::OpenRead#open doesn't
# support write mode (yet).
- # Also `perm' is just ignored because it is meaningful only for file
- # creation.
+ # Also +perm+ is ignored because it is meaningful only for file creation.
#
- # `options' must be a hash.
+ # +options+ must be a hash.
#
- # Each pairs which key is a string in the hash specify a extra header
- # field for HTTP.
- # I.e. it is ignored for FTP without HTTP proxy.
+ # Each option with a string key specifies an extra header field for HTTP.
+ # I.e., it is ignored for FTP without HTTP proxy.
#
- # The hash may include other options which key is a symbol:
+ # The hash may include other options, where keys are symbols:
#
# [:proxy]
# Synopsis:
@@ -551,22 +556,28 @@ module OpenURI
#
# If :proxy option is specified, the value should be String, URI,
# boolean or nil.
+ #
# When String or URI is given, it is treated as proxy URI.
+ #
# When true is given or the option itself is not specified,
# environment variable `scheme_proxy' is examined.
# `scheme' is replaced by `http', `https' or `ftp'.
+ #
# When false or nil is given, the environment variables are ignored and
# connection will be made to a server directly.
#
# [:proxy_http_basic_authentication]
# Synopsis:
- # :proxy_http_basic_authentication => ["http://proxy.foo.com:8000/", "proxy-user", "proxy-password"]
- # :proxy_http_basic_authentication => [URI.parse("http://proxy.foo.com:8000/"), "proxy-user", "proxy-password"]
+ # :proxy_http_basic_authentication =>
+ # ["http://proxy.foo.com:8000/", "proxy-user", "proxy-password"]
+ # :proxy_http_basic_authentication =>
+ # [URI.parse("http://proxy.foo.com:8000/"),
+ # "proxy-user", "proxy-password"]
#
- # If :proxy option is specified, the value should be an Array with 3 elements.
- # It should contain a proxy URI, a proxy user name and a proxy password.
- # The proxy URI should be a String, an URI or nil.
- # The proxy user name and password should be a String.
+ # If :proxy option is specified, the value should be an Array with 3
+ # elements. It should contain a proxy URI, a proxy user name and a proxy
+ # password. The proxy URI should be a String, an URI or nil. The proxy
+ # user name and password should be a String.
#
# If nil is given for the proxy URI, this option is just ignored.
#
@@ -588,14 +599,13 @@ module OpenURI
#
# If :content_length_proc option is specified, the option value procedure
# is called before actual transfer is started.
- # It takes one argument which is expected content length in bytes.
+ # It takes one argument, which is expected content length in bytes.
#
# If two or more transfer is done by HTTP redirection, the procedure
# is called only one for a last transfer.
#
# When expected content length is unknown, the procedure is called with
- # nil.
- # It is happen when HTTP response has no Content-Length header.
+ # nil. This happens when the HTTP response has no Content-Length header.
#
# [:progress_proc]
# Synopsis:
@@ -603,7 +613,7 @@ module OpenURI
#
# If :progress_proc option is specified, the proc is called with one
# argument each time when `open' gets content fragment from network.
- # The argument `size' `size' is a accumulated transfered size in bytes.
+ # The argument +size+ is the accumulated transferred size in bytes.
#
# If two or more transfer is done by HTTP redirection, the procedure
# is called only one for a last transfer.
@@ -644,26 +654,24 @@ module OpenURI
#
# :ssl_verify_mode is used to specify openssl verify mode.
#
- # OpenURI::OpenRead#open returns an IO like object if block is not given.
- # Otherwise it yields the IO object and return the value of the block.
- # The IO object is extended with OpenURI::Meta.
- #
# [:ftp_active_mode]
# Synopsis:
# :ftp_active_mode=>bool
#
- # :ftp_active_mode=>true is used to make ftp active mode.
- # Note that the active mode is default in Ruby 1.8 or prior.
- # Ruby 1.9 uses passive mode by default.
+ # <tt>:ftp_active_mode => true</tt> is used to make ftp active mode.
+ # Ruby 1.9 uses passive mode by default.
+ # Note that the active mode is default in Ruby 1.8 or prior.
#
# [:redirect]
# Synopsis:
# :redirect=>bool
#
- # :redirect=>false is used to disable HTTP redirects at all.
- # OpenURI::HTTPRedirect exception raised on redirection.
- # It is true by default.
- # The true means redirections between http and ftp is permitted.
+ # +:redirect+ is true by default. <tt>:redirect => false</tt> is used to
+ # disable all HTTP redirects.
+ #
+ # OpenURI::HTTPRedirect exception raised on redirection.
+ # Using +true+ also means that redirections between http and ftp are
+ # permitted.
#
def open(*rest, &block)
OpenURI.open_uri(self, *rest, &block)
@@ -672,7 +680,7 @@ module OpenURI
# OpenURI::OpenRead#read([options]) reads a content referenced by self and
# returns the content as string.
# The string is extended with OpenURI::Meta.
- # The argument `options' is same as OpenURI::OpenRead#open.
+ # The argument +options+ is same as OpenURI::OpenRead#open.
def read(options={})
self.open(options) {|f|
str = f.read
@@ -710,7 +718,7 @@ module URI
when 0 # no proxy setting anyway.
proxy_uri = nil
when 1
- k, v = pairs.shift
+ k, _ = pairs.shift
if k == 'http_proxy' && ENV[k.upcase] == nil
# http_proxy is safe to use because ENV is case sensitive.
proxy_uri = ENV[name]
@@ -734,10 +742,10 @@ module URI
proxy_uri = ENV[name] || ENV[name.upcase]
end
- if proxy_uri && self.host
+ if proxy_uri && self.hostname
require 'socket'
begin
- addr = IPSocket.getaddress(self.host)
+ addr = IPSocket.getaddress(self.hostname)
proxy_uri = nil if /\A127\.|\A::1\z/ =~ addr
rescue SocketError
end
@@ -778,8 +786,9 @@ module URI
end
require 'net/ftp'
- directories = self.path.split(%r{/}, -1)
- directories.shift if directories[0] == '' # strip a field before leading slash
+ path = self.path
+ path = path.sub(%r{\A/}, '%2F') # re-encode the beginning slash because uri library decodes it.
+ directories = path.split(%r{/}, -1)
directories.each {|d|
d.gsub!(/%([0-9A-Fa-f][0-9A-Fa-f])/) { [$1].pack("H2") }
}
@@ -800,7 +809,8 @@ module URI
end
# The access sequence is defined by RFC 1738
- ftp = Net::FTP.open(self.host)
+ ftp = Net::FTP.new
+ ftp.connect(self.hostname, self.port)
ftp.passive = true if !options[:ftp_active_mode]
# todo: extract user/passwd from .netrc.
user = 'anonymous'
diff --git a/lib/open3.rb b/lib/open3.rb
index 86bd2c6c22..03a7937c09 100644
--- a/lib/open3.rb
+++ b/lib/open3.rb
@@ -205,9 +205,9 @@ module Open3
result = [*parent_io, wait_thr]
if defined? yield
begin
- return yield(*result)
+ return yield(*result)
ensure
- parent_io.each{|io| io.close unless io.closed?}
+ parent_io.each{|io| io.close unless io.closed?}
wait_thr.join
end
end
@@ -223,7 +223,7 @@ module Open3
# stdout_str, stderr_str, status = Open3.capture3([env,] cmd... [, opts])
#
# The arguments env, cmd and opts are passed to Open3.popen3 except
- # opts[:stdin_data] and opts[:stdin_data]. See Process.spawn.
+ # opts[:stdin_data] and opts[:binmode]. See Process.spawn.
#
# If opts[:stdin_data] is specified, it is sent to the command's standard input.
#
@@ -287,7 +287,7 @@ module Open3
# stdout_str, status = Open3.capture2([env,] cmd... [, opts])
#
# The arguments env, cmd and opts are passed to Open3.popen3 except
- # opts[:stdin_data] and opts[:stdin_data]. See Process.spawn.
+ # opts[:stdin_data] and opts[:binmode]. See Process.spawn.
#
# If opts[:stdin_data] is specified, it is sent to the command's standard input.
#
@@ -339,7 +339,7 @@ module Open3
# stdout_and_stderr_str, status = Open3.capture2e([env,] cmd... [, opts])
#
# The arguments env, cmd and opts are passed to Open3.popen3 except
- # opts[:stdin_data] and opts[:stdin_data]. See Process.spawn.
+ # opts[:stdin_data] and opts[:binmode]. See Process.spawn.
#
# If opts[:stdin_data] is specified, it is sent to the command's standard input.
#
@@ -459,14 +459,14 @@ module Open3
#
# Open3.pipeline_r("zcat /var/log/apache2/access.log.*.gz",
# [{"LANG"=>"C"}, "grep", "GET /favicon.ico"],
- # "logresolve") {|r, ts|
- # r.each_line {|line|
+ # "logresolve") {|o, ts|
+ # o.each_line {|line|
# ...
# }
# }
#
- # Open3.pipeline_r("yes", "head -10") {|r, ts|
- # p r.read #=> "y\ny\ny\ny\ny\ny\ny\ny\ny\ny\n"
+ # Open3.pipeline_r("yes", "head -10") {|o, ts|
+ # p o.read #=> "y\ny\ny\ny\ny\ny\ny\ny\ny\ny\n"
# p ts[0].value #=> #<Process::Status: pid 24910 SIGPIPE (signal 13)>
# p ts[1].value #=> #<Process::Status: pid 24913 exit 0>
# }
@@ -509,8 +509,8 @@ module Open3
#
# Example:
#
- # Open3.pipeline_w("bzip2 -c", :out=>"/tmp/hello.bz2") {|w, ts|
- # w.puts "hello"
+ # Open3.pipeline_w("bzip2 -c", :out=>"/tmp/hello.bz2") {|i, ts|
+ # i.puts "hello"
# }
#
def pipeline_w(*cmds, &block)
@@ -700,9 +700,9 @@ module Open3
child_io.each {|io| io.close }
if defined? yield
begin
- return yield(*result)
+ return yield(*result)
ensure
- parent_io.each{|io| io.close unless io.closed?}
+ parent_io.each{|io| io.close unless io.closed?}
wait_thrs.each {|t| t.join }
end
end
diff --git a/lib/optparse.rb b/lib/optparse.rb
index e701363e8b..a448459d46 100644
--- a/lib/optparse.rb
+++ b/lib/optparse.rb
@@ -60,7 +60,8 @@
# 4. Arguments can be automatically converted to a specified class.
# 5. Arguments can be restricted to a certain set.
#
-# All of these features are demonstrated in the examples below.
+# All of these features are demonstrated in the examples below. See
+# #make_switch for full documentation.
#
# === Minimal example
#
@@ -195,6 +196,11 @@
# options = OptparseExample.parse(ARGV)
# pp options
#
+# === Shell Completion
+#
+# For modern shells (e.g. bash, zsh, etc.), you can use shell
+# completion for command line options.
+#
# === Further documentation
#
# The above examples should be enough to learn how to use this class. If you
@@ -218,12 +224,14 @@ class OptionParser
# and resolved against a list of acceptable values.
#
module Completion
- def complete(key, icase = false, pat = nil)
- pat ||= Regexp.new('\A' + Regexp.quote(key).gsub(/\w+\b/, '\&\w*'),
- icase)
- canon, sw, cn = nil
+ def self.regexp(key, icase)
+ Regexp.new('\A' + Regexp.quote(key).gsub(/\w+\b/, '\&\w*'), icase)
+ end
+
+ def self.candidate(key, icase = false, pat = nil, &block)
+ pat ||= Completion.regexp(key, icase)
candidates = []
- each do |k, *v|
+ block.call do |k, *v|
(if Regexp === k
kn = nil
k === key
@@ -234,7 +242,16 @@ class OptionParser
v << k if v.empty?
candidates << [k, v, kn]
end
- candidates = candidates.sort_by {|k, v, kn| kn.size}
+ candidates
+ end
+
+ def candidate(key, icase = false, pat = nil)
+ Completion.candidate(key, icase, pat, &method(:each))
+ end
+
+ public
+ def complete(key, icase = false, pat = nil)
+ candidates = candidate(key, icase, pat, &method(:each)).sort_by {|k, v, kn| kn.size}
if candidates.size == 1
canon, sw, * = candidates[0]
elsif candidates.size > 1
@@ -424,6 +441,24 @@ class OptionParser
(long.first || short.first).sub(/\A-+(?:\[no-\])?/, '')
end
+ def compsys(sdone, ldone) # :nodoc:
+ sopts, lopts = [], []
+ @short.each {|s| sdone.fetch(s) {sopts << s}; sdone[s] = true} if @short
+ @long.each {|s| ldone.fetch(s) {lopts << s}; ldone[s] = true} if @long
+ return if sopts.empty? and lopts.empty? # completely hidden
+
+ (sopts+lopts).each do |opt|
+ # "(-x -c -r)-l[left justify]" \
+ if opt =~ /^--\[no-\](.+)$/
+ o = $1
+ yield("--#{o}", desc.join(""))
+ yield("--no-#{o}", desc.join(""))
+ else
+ yield("#{opt}", desc.join(""))
+ end
+ end
+ end
+
#
# Switch that takes no arguments.
#
@@ -662,6 +697,14 @@ class OptionParser
end
to
end
+
+ def compsys(*args, &block) # :nodoc:
+ list.each do |opt|
+ if opt.respond_to?(:compsys)
+ opt.compsys(*args, &block)
+ end
+ end
+ end
end
#
@@ -708,6 +751,24 @@ class OptionParser
DefaultList.short['-'] = Switch::NoArgument.new {}
DefaultList.long[''] = Switch::NoArgument.new {throw :terminate}
+
+ COMPSYS_HEADER = <<'XXX' # :nodoc:
+
+typeset -A opt_args
+local context state line
+
+_arguments -s -S \
+XXX
+
+ def compsys(to, name = File.basename($0)) # :nodoc:
+ to << "#compdef #{name}\n"
+ to << COMPSYS_HEADER
+ visit(:compsys, {}, {}) {|o, d|
+ to << %Q[ "#{o}[#{d.gsub(/[\"\[\]]/, '\\\\\&')}]" \\\n]
+ }
+ to << " '*:file:_files' && return 0\n"
+ end
+
#
# Default options for ARGV, which never appear in option summary.
#
@@ -718,13 +779,35 @@ class OptionParser
# Shows option summary.
#
Officious['help'] = proc do |parser|
- Switch::NoArgument.new do
+ Switch::NoArgument.new do |arg|
puts parser.help
exit
end
end
#
+ # --*-completion-bash=WORD
+ # Shows candidates for command line completion.
+ #
+ Officious['*-completion-bash'] = proc do |parser|
+ Switch::RequiredArgument.new do |arg|
+ puts parser.candidate(arg)
+ exit
+ end
+ end
+
+ #
+ # --*-completion-zsh[=NAME:FILE]
+ # Creates zsh completion file.
+ #
+ Officious['*-completion-zsh'] = proc do |parser|
+ Switch::OptionalArgument.new do |arg|
+ parser.compsys(STDOUT, arg)
+ exit
+ end
+ end
+
+ #
# --version
# Shows version string if Version is defined.
#
@@ -1072,7 +1155,7 @@ class OptionParser
default_style = Switch::NoArgument
default_pattern = nil
klass = nil
- n, q, a = nil
+ q, a = nil
opts.each do |o|
# argument class
@@ -1461,6 +1544,36 @@ class OptionParser
end
private :complete
+ def candidate(word)
+ list = []
+ case word
+ when /\A--/
+ word, arg = word.split(/=/, 2)
+ argpat = Completion.regexp(arg, false) if arg and !arg.empty?
+ long = true
+ when /\A-(!-)/
+ short = true
+ when /\A-/
+ long = short = true
+ end
+ pat = Completion.regexp(word, true)
+ visit(:each_option) do |opt|
+ next unless Switch === opt
+ opts = (long ? opt.long : []) + (short ? opt.short : [])
+ opts = Completion.candidate(word, true, pat, &opts.method(:each)).map(&:first) if pat
+ if /\A=/ =~ opt.arg
+ opts.map! {|sw| sw + "="}
+ if arg and CompletingHash === opt.pattern
+ if opts = opt.pattern.candidate(arg, false, argpat)
+ opts.map!(&:last)
+ end
+ end
+ end
+ list.concat(opts)
+ end
+ list
+ end
+
#
# Loads options from file names as +filename+. Does nothing when the file
# is not present. Returns whether successfully loaded.
@@ -1531,9 +1644,16 @@ class OptionParser
#
# Generic numeric format, converts to Integer for integer format, Float
- # for float format.
- #
- accept(Numeric, %r"\A[-+]?(?:#{octal}|#{float})"io) {|s,| eval(s) if s}
+ # for float format, and Rational for rational format.
+ #
+ real = "[-+]?(?:#{octal}|#{float})"
+ accept(Numeric, /\A(#{real})(?:\/(#{real}))?/io) {|s, d, n|
+ if n
+ Rational(d, n)
+ elsif s
+ eval(s)
+ end
+ }
#
# Decimal integer format, to be converted to Integer.
@@ -1563,7 +1683,7 @@ class OptionParser
yesno = CompletingHash.new
%w[- no false].each {|el| yesno[el] = false}
%w[+ yes true].each {|el| yesno[el] = true}
- yesno['nil'] = false # shoud be nil?
+ yesno['nil'] = false # should be nil?
accept(TrueClass, yesno) {|arg, val| val == nil or val}
#
# Similar to TrueClass, but defaults to false.
@@ -1589,7 +1709,8 @@ class OptionParser
f |= Regexp::IGNORECASE if /i/ =~ o
f |= Regexp::MULTILINE if /m/ =~ o
f |= Regexp::EXTENDED if /x/ =~ o
- k = o.delete("^imx")
+ k = o.delete("imx")
+ k = nil if k.empty?
end
Regexp.new(s || all, f, k)
end
@@ -1811,6 +1932,6 @@ ARGV.extend(OptionParser::Arguable)
if $0 == __FILE__
Version = OptionParser::Version
ARGV.options {|q|
- q.parse!.empty? or puts "what's #{ARGV.join(' ')}?"
+ q.parse!.empty? or print "what's #{ARGV.join(' ')}?\n"
} or abort(ARGV.options.to_s)
end
diff --git a/lib/ostruct.rb b/lib/ostruct.rb
index aea0c8e124..a4c0d55d09 100644
--- a/lib/ostruct.rb
+++ b/lib/ostruct.rb
@@ -9,31 +9,73 @@
#
#
-# OpenStruct allows you to create data objects and set arbitrary attributes.
-# For example:
+# An OpenStruct is a data structure, similar to a Hash, that allows the
+# definition of arbitrary attributes with their accompanying values. This is
+# accomplished by using Ruby's metaprogramming to define methods on the class
+# itself.
+#
+# == Examples:
#
# require 'ostruct'
#
-# record = OpenStruct.new
-# record.name = "John Smith"
-# record.age = 70
-# record.pension = 300
+# person = OpenStruct.new
+# person.name = "John Smith"
+# person.age = 70
+# person.pension = 300
+#
+# puts person.name # -> "John Smith"
+# puts person.age # -> 70
+# puts person.address # -> nil
+#
+# An OpenStruct employs a Hash internally to store the methods and values and
+# can even be initialized with one:
+#
+# australia = OpenStruct.new(:country => "Australia", :population => 20_000_000)
+# p australia # -> <OpenStruct country="Australia" population=20000000>
+#
+# Hash keys with spaces or characters that would normally not be able to use for
+# method calls (e.g. ()[]*) will not be immediately available on the
+# OpenStruct object as a method for retrieval or assignment, but can be still be
+# reached through the Object#send method.
+#
+# measurements = OpenStruct.new("length (in inches)" => 24)
+# measurements.send("length (in inches)") # -> 24
+#
+# data_point = OpenStruct.new(:queued? => true)
+# data_point.queued? # -> true
+# data_point.send("queued?=",false)
+# data_point.queued? # -> false
+#
+# Removing the presence of a method requires the execution the delete_field
+# method as setting the property value to +nil+ will not remove the method.
#
-# puts record.name # -> "John Smith"
-# puts record.address # -> nil
+# first_pet = OpenStruct.new(:name => 'Rowdy', :owner => 'John Smith')
+# first_pet.owner = nil
+# second_pet = OpenStruct.new(:name => 'Rowdy')
#
-# It is like a hash with a different way to access the data. In fact, it is
-# implemented with a hash, and you can initialize it with one.
+# first_pet == second_pet # -> false
#
-# hash = { "country" => "Australia", :population => 20_000_000 }
-# data = OpenStruct.new(hash)
+# first_pet.delete_field(:owner)
+# first_pet == second_pet # -> true
#
-# p data # -> <OpenStruct country="Australia" population=20000000>
+#
+# == Implementation:
+#
+# An OpenStruct utilizes Ruby's method lookup structure to and find and define
+# the necessary methods for properties. This is accomplished through the method
+# method_missing and define_method.
+#
+# This should be a consideration if there is a concern about the performance of
+# the objects that are created, as there is much more overhead in the setting
+# of these properties compared to using a Hash or a Struct.
#
class OpenStruct
#
- # Create a new OpenStruct object. The optional +hash+, if given, will
- # generate attributes and values. For example.
+ # Creates a new OpenStruct object. By default, the resulting OpenStruct
+ # object will have no attributes.
+ #
+ # The optional +hash+, if given, will generate attributes and values.
+ # For example:
#
# require 'ostruct'
# hash = { "country" => "Australia", :population => 20_000_000 }
@@ -41,8 +83,6 @@ class OpenStruct
#
# p data # -> <OpenStruct country="Australia" population=20000000>
#
- # By default, the resulting OpenStruct object will have no attributes.
- #
def initialize(hash=nil)
@table = {}
if hash
@@ -59,14 +99,43 @@ class OpenStruct
@table = @table.dup
end
+ #
+ # Provides marshalling support for use by the Marshal library. Returning the
+ # underlying Hash table that contains the functions defined as the keys and
+ # the values assigned to them.
+ #
+ # require 'ostruct'
+ #
+ # person = OpenStruct.new
+ # person.name = 'John Smith'
+ # person.age = 70
+ #
+ # person.marshal_dump # => { :name => 'John Smith', :age => 70 }
+ #
def marshal_dump
@table
end
+
+ #
+ # Provides marshalling support for use by the Marshal library. Accepting
+ # a Hash of keys and values which will be used to populate the internal table
+ #
+ # require 'ostruct'
+ #
+ # event = OpenStruct.new
+ # hash = { 'time' => Time.now, 'title' => 'Birthday Party' }
+ # event.marshal_load(hash)
+ # event.title # => 'Birthday Party'
+ #
def marshal_load(x)
@table = x
@table.each_key{|key| new_ostruct_member(key)}
end
+ #
+ # #modifiable is used internally to check if the OpenStruct is able to be
+ # modified before granting access to the internal Hash table to be modified.
+ #
def modifiable
begin
@modifiable = true
@@ -77,6 +146,11 @@ class OpenStruct
end
protected :modifiable
+ #
+ # new_ostruct_member is used internally to defined properties on the
+ # OpenStruct. It does this by using the metaprogramming function
+ # define_method for both the getter method and the setter method.
+ #
def new_ostruct_member(name)
name = name.to_sym
unless self.respond_to?(name)
@@ -91,23 +165,32 @@ class OpenStruct
def method_missing(mid, *args) # :nodoc:
mname = mid.id2name
len = args.length
- if mname.chomp!('=')
+ if mname.chomp!('=') && mid != :[]=
if len != 1
raise ArgumentError, "wrong number of arguments (#{len} for 1)", caller(1)
end
modifiable[new_ostruct_member(mname)] = args[0]
- elsif len == 0
+ elsif len == 0 && mid != :[]
@table[mid]
else
- raise NoMethodError, "undefined method `#{mname}' for #{self}", caller(1)
+ raise NoMethodError, "undefined method `#{mid}' for #{self}", caller(1)
end
end
#
- # Remove the named field from the object.
+ # Remove the named field from the object. Returns the value that the field
+ # contained if it was defined.
+ #
+ # require 'ostruct'
+ #
+ # person = OpenStruct.new('name' => 'John Smith', 'age' => 70)
+ #
+ # person.delete_field('name') # => 'John Smith'
#
def delete_field(name)
- @table.delete name.to_sym
+ sym = name.to_sym
+ singleton_class.__send__(:remove_method, sym, "#{name}=")
+ @table.delete sym
end
InspectKey = :__inspect_key__ # :nodoc:
@@ -142,7 +225,9 @@ class OpenStruct
protected :table
#
- # Compare this object and +other+ for equality.
+ # Compares this object and +other+ for equality. An OpenStruct is equal to
+ # +other+ when +other+ is an OpenStruct and the two object's Hash tables are
+ # equal.
#
def ==(other)
return false unless(other.kind_of?(OpenStruct))
diff --git a/lib/pathname.rb b/lib/pathname.rb
deleted file mode 100644
index 8af8957c7b..0000000000
--- a/lib/pathname.rb
+++ /dev/null
@@ -1,1108 +0,0 @@
-#
-# = pathname.rb
-#
-# Object-Oriented Pathname Class
-#
-# Author:: Tanaka Akira <akr@m17n.org>
-# Documentation:: Author and Gavin Sinclair
-#
-# For documentation, see class Pathname.
-#
-# <tt>pathname.rb</tt> is distributed with Ruby since 1.8.0.
-#
-
-#
-# == Pathname
-#
-# Pathname represents a pathname which locates a file in a filesystem.
-# The pathname depends on OS: Unix, Windows, etc.
-# Pathname library works with pathnames of local OS.
-# However non-Unix pathnames are supported experimentally.
-#
-# It does not represent the file itself.
-# A Pathname can be relative or absolute. It's not until you try to
-# reference the file that it even matters whether the file exists or not.
-#
-# Pathname is immutable. It has no method for destructive update.
-#
-# The value of this class is to manipulate file path information in a neater
-# way than standard Ruby provides. The examples below demonstrate the
-# difference. *All* functionality from File, FileTest, and some from Dir and
-# FileUtils is included, in an unsurprising way. It is essentially a facade for
-# all of these, and more.
-#
-# == Examples
-#
-# === Example 1: Using Pathname
-#
-# require 'pathname'
-# pn = Pathname.new("/usr/bin/ruby")
-# size = pn.size # 27662
-# isdir = pn.directory? # false
-# dir = pn.dirname # Pathname:/usr/bin
-# base = pn.basename # Pathname:ruby
-# dir, base = pn.split # [Pathname:/usr/bin, Pathname:ruby]
-# data = pn.read
-# pn.open { |f| _ }
-# pn.each_line { |line| _ }
-#
-# === Example 2: Using standard Ruby
-#
-# pn = "/usr/bin/ruby"
-# size = File.size(pn) # 27662
-# isdir = File.directory?(pn) # false
-# dir = File.dirname(pn) # "/usr/bin"
-# base = File.basename(pn) # "ruby"
-# dir, base = File.split(pn) # ["/usr/bin", "ruby"]
-# data = File.read(pn)
-# File.open(pn) { |f| _ }
-# File.foreach(pn) { |line| _ }
-#
-# === Example 3: Special features
-#
-# p1 = Pathname.new("/usr/lib") # Pathname:/usr/lib
-# p2 = p1 + "ruby/1.8" # Pathname:/usr/lib/ruby/1.8
-# p3 = p1.parent # Pathname:/usr
-# p4 = p2.relative_path_from(p3) # Pathname:lib/ruby/1.8
-# pwd = Pathname.pwd # Pathname:/home/gavin
-# pwd.absolute? # true
-# p5 = Pathname.new "." # Pathname:.
-# p5 = p5 + "music/../articles" # Pathname:music/../articles
-# p5.cleanpath # Pathname:articles
-# p5.realpath # Pathname:/home/gavin/articles
-# p5.children # [Pathname:/home/gavin/articles/linux, ...]
-#
-# == Breakdown of functionality
-#
-# === Core methods
-#
-# These methods are effectively manipulating a String, because that's
-# all a path is. Except for #mountpoint?, #children, #each_child,
-# #realdirpath and #realpath, they don't access the filesystem.
-#
-# - +
-# - #join
-# - #parent
-# - #root?
-# - #absolute?
-# - #relative?
-# - #relative_path_from
-# - #each_filename
-# - #cleanpath
-# - #realpath
-# - #realdirpath
-# - #children
-# - #each_child
-# - #mountpoint?
-#
-# === File status predicate methods
-#
-# These methods are a facade for FileTest:
-# - #blockdev?
-# - #chardev?
-# - #directory?
-# - #executable?
-# - #executable_real?
-# - #exist?
-# - #file?
-# - #grpowned?
-# - #owned?
-# - #pipe?
-# - #readable?
-# - #world_readable?
-# - #readable_real?
-# - #setgid?
-# - #setuid?
-# - #size
-# - #size?
-# - #socket?
-# - #sticky?
-# - #symlink?
-# - #writable?
-# - #world_writable?
-# - #writable_real?
-# - #zero?
-#
-# === File property and manipulation methods
-#
-# These methods are a facade for File:
-# - #atime
-# - #ctime
-# - #mtime
-# - #chmod(mode)
-# - #lchmod(mode)
-# - #chown(owner, group)
-# - #lchown(owner, group)
-# - #fnmatch(pattern, *args)
-# - #fnmatch?(pattern, *args)
-# - #ftype
-# - #make_link(old)
-# - #open(*args, &block)
-# - #readlink
-# - #rename(to)
-# - #stat
-# - #lstat
-# - #make_symlink(old)
-# - #truncate(length)
-# - #utime(atime, mtime)
-# - #basename(*args)
-# - #dirname
-# - #extname
-# - #expand_path(*args)
-# - #split
-#
-# === Directory methods
-#
-# These methods are a facade for Dir:
-# - Pathname.glob(*args)
-# - Pathname.getwd / Pathname.pwd
-# - #rmdir
-# - #entries
-# - #each_entry(&block)
-# - #mkdir(*args)
-# - #opendir(*args)
-#
-# === IO
-#
-# These methods are a facade for IO:
-# - #each_line(*args, &block)
-# - #read(*args)
-# - #binread(*args)
-# - #readlines(*args)
-# - #sysopen(*args)
-#
-# === Utilities
-#
-# These methods are a mixture of Find, FileUtils, and others:
-# - #find(&block)
-# - #mkpath
-# - #rmtree
-# - #unlink / #delete
-#
-#
-# == Method documentation
-#
-# As the above section shows, most of the methods in Pathname are facades. The
-# documentation for these methods generally just says, for instance, "See
-# FileTest.writable?", as you should be familiar with the original method
-# anyway, and its documentation (e.g. through +ri+) will contain more
-# information. In some cases, a brief description will follow.
-#
-class Pathname
-
- # :stopdoc:
- if RUBY_VERSION < "1.9"
- TO_PATH = :to_str
- else
- # to_path is implemented so Pathname objects are usable with File.open, etc.
- TO_PATH = :to_path
- end
-
- SAME_PATHS = if File::FNM_SYSCASE
- proc {|a, b| a.casecmp(b).zero?}
- else
- proc {|a, b| a == b}
- end
-
- # :startdoc:
-
- #
- # Create a Pathname object from the given String (or String-like object).
- # If +path+ contains a NUL character (<tt>\0</tt>), an ArgumentError is raised.
- #
- def initialize(path)
- path = path.__send__(TO_PATH) if path.respond_to? TO_PATH
- @path = path.dup
-
- if /\0/ =~ @path
- raise ArgumentError, "pathname contains \\0: #{@path.inspect}"
- end
-
- self.taint if @path.tainted?
- end
-
- def freeze() super; @path.freeze; self end
- def taint() super; @path.taint; self end
- def untaint() super; @path.untaint; self end
-
- #
- # Compare this pathname with +other+. The comparison is string-based.
- # Be aware that two different paths (<tt>foo.txt</tt> and <tt>./foo.txt</tt>)
- # can refer to the same file.
- #
- def ==(other)
- return false unless Pathname === other
- other.to_s == @path
- end
- alias === ==
- alias eql? ==
-
- # Provides for comparing pathnames, case-sensitively.
- def <=>(other)
- return nil unless Pathname === other
- @path.tr('/', "\0") <=> other.to_s.tr('/', "\0")
- end
-
- def hash # :nodoc:
- @path.hash
- end
-
- # Return the path as a String.
- def to_s
- @path.dup
- end
-
- # to_path is implemented so Pathname objects are usable with File.open, etc.
- alias_method TO_PATH, :to_s
-
- def inspect # :nodoc:
- "#<#{self.class}:#{@path}>"
- end
-
- # Return a pathname which is substituted by String#sub.
- def sub(pattern, *rest, &block)
- if block
- path = @path.sub(pattern, *rest) {|*args|
- begin
- old = Thread.current[:pathname_sub_matchdata]
- Thread.current[:pathname_sub_matchdata] = $~
- eval("$~ = Thread.current[:pathname_sub_matchdata]", block.binding)
- ensure
- Thread.current[:pathname_sub_matchdata] = old
- end
- yield(*args)
- }
- else
- path = @path.sub(pattern, *rest)
- end
- self.class.new(path)
- end
-
- if File::ALT_SEPARATOR
- SEPARATOR_LIST = "#{Regexp.quote File::ALT_SEPARATOR}#{Regexp.quote File::SEPARATOR}"
- SEPARATOR_PAT = /[#{SEPARATOR_LIST}]/
- else
- SEPARATOR_LIST = "#{Regexp.quote File::SEPARATOR}"
- SEPARATOR_PAT = /#{Regexp.quote File::SEPARATOR}/
- end
-
- # Return a pathname which the extension of the basename is substituted by
- # <i>repl</i>.
- #
- # If self has no extension part, <i>repl</i> is appended.
- def sub_ext(repl)
- ext = File.extname(@path)
- self.class.new(@path.chomp(ext) + repl)
- end
-
- # chop_basename(path) -> [pre-basename, basename] or nil
- def chop_basename(path)
- base = File.basename(path)
- if /\A#{SEPARATOR_PAT}?\z/o =~ base
- return nil
- else
- return path[0, path.rindex(base)], base
- end
- end
- private :chop_basename
-
- # split_names(path) -> prefix, [name, ...]
- def split_names(path)
- names = []
- while r = chop_basename(path)
- path, basename = r
- names.unshift basename
- end
- return path, names
- end
- private :split_names
-
- def prepend_prefix(prefix, relpath)
- if relpath.empty?
- File.dirname(prefix)
- elsif /#{SEPARATOR_PAT}/o =~ prefix
- prefix = File.dirname(prefix)
- prefix = File.join(prefix, "") if File.basename(prefix + 'a') != 'a'
- prefix + relpath
- else
- prefix + relpath
- end
- end
- private :prepend_prefix
-
- # Returns clean pathname of +self+ with consecutive slashes and useless dots
- # removed. The filesystem is not accessed.
- #
- # If +consider_symlink+ is +true+, then a more conservative algorithm is used
- # to avoid breaking symbolic linkages. This may retain more <tt>..</tt>
- # entries than absolutely necessary, but without accessing the filesystem,
- # this can't be avoided. See #realpath.
- #
- def cleanpath(consider_symlink=false)
- if consider_symlink
- cleanpath_conservative
- else
- cleanpath_aggressive
- end
- end
-
- #
- # Clean the path simply by resolving and removing excess "." and ".." entries.
- # Nothing more, nothing less.
- #
- def cleanpath_aggressive
- path = @path
- names = []
- pre = path
- while r = chop_basename(pre)
- pre, base = r
- case base
- when '.'
- when '..'
- names.unshift base
- else
- if names[0] == '..'
- names.shift
- else
- names.unshift base
- end
- end
- end
- if /#{SEPARATOR_PAT}/o =~ File.basename(pre)
- names.shift while names[0] == '..'
- end
- self.class.new(prepend_prefix(pre, File.join(*names)))
- end
- private :cleanpath_aggressive
-
- # has_trailing_separator?(path) -> bool
- def has_trailing_separator?(path)
- if r = chop_basename(path)
- pre, basename = r
- pre.length + basename.length < path.length
- else
- false
- end
- end
- private :has_trailing_separator?
-
- # add_trailing_separator(path) -> path
- def add_trailing_separator(path)
- if File.basename(path + 'a') == 'a'
- path
- else
- File.join(path, "") # xxx: Is File.join is appropriate to add separator?
- end
- end
- private :add_trailing_separator
-
- def del_trailing_separator(path)
- if r = chop_basename(path)
- pre, basename = r
- pre + basename
- elsif /#{SEPARATOR_PAT}+\z/o =~ path
- $` + File.dirname(path)[/#{SEPARATOR_PAT}*\z/o]
- else
- path
- end
- end
- private :del_trailing_separator
-
- def cleanpath_conservative
- path = @path
- names = []
- pre = path
- while r = chop_basename(pre)
- pre, base = r
- names.unshift base if base != '.'
- end
- if /#{SEPARATOR_PAT}/o =~ File.basename(pre)
- names.shift while names[0] == '..'
- end
- if names.empty?
- self.class.new(File.dirname(pre))
- else
- if names.last != '..' && File.basename(path) == '.'
- names << '.'
- end
- result = prepend_prefix(pre, File.join(*names))
- if /\A(?:\.|\.\.)\z/ !~ names.last && has_trailing_separator?(path)
- self.class.new(add_trailing_separator(result))
- else
- self.class.new(result)
- end
- end
- end
- private :cleanpath_conservative
-
- def realpath_rec(prefix, unresolved, h, strict, last = true)
- resolved = []
- until unresolved.empty?
- n = unresolved.shift
- if n == '.'
- next
- elsif n == '..'
- resolved.pop
- else
- path = prepend_prefix(prefix, File.join(*(resolved + [n])))
- if h.include? path
- if h[path] == :resolving
- raise Errno::ELOOP.new(path)
- else
- prefix, *resolved = h[path]
- end
- else
- begin
- s = File.lstat(path)
- rescue Errno::ENOENT => e
- raise e if strict || !last || !unresolved.empty?
- resolved << n
- break
- end
- if s.symlink?
- h[path] = :resolving
- link_prefix, link_names = split_names(File.readlink(path))
- if link_prefix == ''
- prefix, *resolved = h[path] = realpath_rec(prefix, resolved + link_names, h, strict, unresolved.empty?)
- else
- prefix, *resolved = h[path] = realpath_rec(link_prefix, link_names, h, strict, unresolved.empty?)
- end
- else
- resolved << n
- h[path] = [prefix, *resolved]
- end
- end
- end
- end
- return prefix, *resolved
- end
- private :realpath_rec
-
- def real_path_internal(strict = false)
- path = @path
- prefix, names = split_names(path)
- if prefix == ''
- prefix, names2 = split_names(Dir.pwd)
- names = names2 + names
- end
- prefix, *names = realpath_rec(prefix, names, {}, strict)
- self.class.new(prepend_prefix(prefix, File.join(*names)))
- end
- private :real_path_internal
-
- #
- # Returns the real (absolute) pathname of +self+ in the actual
- # filesystem not containing symlinks or useless dots.
- #
- # All components of the pathname must exist when this method is
- # called.
- #
- def realpath
- real_path_internal(true)
- end
-
- #
- # Returns the real (absolute) pathname of +self+ in the actual filesystem.
- # The real pathname doesn't contain symlinks or useless dots.
- #
- # The last component of the real pathname can be nonexistent.
- #
- def realdirpath
- real_path_internal(false)
- end
-
- # #parent returns the parent directory.
- #
- # This is same as <tt>self + '..'</tt>.
- def parent
- self + '..'
- end
-
- # #mountpoint? returns +true+ if <tt>self</tt> points to a mountpoint.
- def mountpoint?
- begin
- stat1 = self.lstat
- stat2 = self.parent.lstat
- stat1.dev == stat2.dev && stat1.ino == stat2.ino ||
- stat1.dev != stat2.dev
- rescue Errno::ENOENT
- false
- end
- end
-
- #
- # #root? is a predicate for root directories. I.e. it returns +true+ if the
- # pathname consists of consecutive slashes.
- #
- # It doesn't access actual filesystem. So it may return +false+ for some
- # pathnames which points to roots such as <tt>/usr/..</tt>.
- #
- def root?
- !!(chop_basename(@path) == nil && /#{SEPARATOR_PAT}/o =~ @path)
- end
-
- # Predicate method for testing whether a path is absolute.
- # It returns +true+ if the pathname begins with a slash.
- def absolute?
- !relative?
- end
-
- # The opposite of #absolute?
- def relative?
- path = @path
- while r = chop_basename(path)
- path, basename = r
- end
- path == ''
- end
-
- #
- # Iterates over each component of the path.
- #
- # Pathname.new("/usr/bin/ruby").each_filename {|filename| ... }
- # # yields "usr", "bin", and "ruby".
- #
- def each_filename # :yield: filename
- return to_enum(__method__) unless block_given?
- prefix, names = split_names(@path)
- names.each {|filename| yield filename }
- nil
- end
-
- # Iterates over and yields a new Pathname object
- # for each element in the given path in descending order.
- #
- # Pathname.new('/path/to/some/file.rb').descend {|v| p v}
- # #<Pathname:/>
- # #<Pathname:/path>
- # #<Pathname:/path/to>
- # #<Pathname:/path/to/some>
- # #<Pathname:/path/to/some/file.rb>
- #
- # Pathname.new('path/to/some/file.rb').descend {|v| p v}
- # #<Pathname:path>
- # #<Pathname:path/to>
- # #<Pathname:path/to/some>
- # #<Pathname:path/to/some/file.rb>
- #
- # It doesn't access actual filesystem.
- #
- # This method is available since 1.8.5.
- #
- def descend
- vs = []
- ascend {|v| vs << v }
- vs.reverse_each {|v| yield v }
- nil
- end
-
- # Iterates over and yields a new Pathname object
- # for each element in the given path in ascending order.
- #
- # Pathname.new('/path/to/some/file.rb').ascend {|v| p v}
- # #<Pathname:/path/to/some/file.rb>
- # #<Pathname:/path/to/some>
- # #<Pathname:/path/to>
- # #<Pathname:/path>
- # #<Pathname:/>
- #
- # Pathname.new('path/to/some/file.rb').ascend {|v| p v}
- # #<Pathname:path/to/some/file.rb>
- # #<Pathname:path/to/some>
- # #<Pathname:path/to>
- # #<Pathname:path>
- #
- # It doesn't access actual filesystem.
- #
- # This method is available since 1.8.5.
- #
- def ascend
- path = @path
- yield self
- while r = chop_basename(path)
- path, name = r
- break if path.empty?
- yield self.class.new(del_trailing_separator(path))
- end
- end
-
- #
- # Pathname#+ appends a pathname fragment to this one to produce a new Pathname
- # object.
- #
- # p1 = Pathname.new("/usr") # Pathname:/usr
- # p2 = p1 + "bin/ruby" # Pathname:/usr/bin/ruby
- # p3 = p1 + "/etc/passwd" # Pathname:/etc/passwd
- #
- # This method doesn't access the file system; it is pure string manipulation.
- #
- def +(other)
- other = Pathname.new(other) unless Pathname === other
- Pathname.new(plus(@path, other.to_s))
- end
-
- def plus(path1, path2) # -> path
- prefix2 = path2
- index_list2 = []
- basename_list2 = []
- while r2 = chop_basename(prefix2)
- prefix2, basename2 = r2
- index_list2.unshift prefix2.length
- basename_list2.unshift basename2
- end
- return path2 if prefix2 != ''
- prefix1 = path1
- while true
- while !basename_list2.empty? && basename_list2.first == '.'
- index_list2.shift
- basename_list2.shift
- end
- break unless r1 = chop_basename(prefix1)
- prefix1, basename1 = r1
- next if basename1 == '.'
- if basename1 == '..' || basename_list2.empty? || basename_list2.first != '..'
- prefix1 = prefix1 + basename1
- break
- end
- index_list2.shift
- basename_list2.shift
- end
- r1 = chop_basename(prefix1)
- if !r1 && /#{SEPARATOR_PAT}/o =~ File.basename(prefix1)
- while !basename_list2.empty? && basename_list2.first == '..'
- index_list2.shift
- basename_list2.shift
- end
- end
- if !basename_list2.empty?
- suffix2 = path2[index_list2.first..-1]
- r1 ? File.join(prefix1, suffix2) : prefix1 + suffix2
- else
- r1 ? prefix1 : File.dirname(prefix1)
- end
- end
- private :plus
-
- #
- # Pathname#join joins pathnames.
- #
- # <tt>path0.join(path1, ..., pathN)</tt> is the same as
- # <tt>path0 + path1 + ... + pathN</tt>.
- #
- def join(*args)
- args.unshift self
- result = args.pop
- result = Pathname.new(result) unless Pathname === result
- return result if result.absolute?
- args.reverse_each {|arg|
- arg = Pathname.new(arg) unless Pathname === arg
- result = arg + result
- return result if result.absolute?
- }
- result
- end
-
- #
- # Returns the children of the directory (files and subdirectories, not
- # recursive) as an array of Pathname objects. By default, the returned
- # pathnames will have enough information to access the files. If you set
- # +with_directory+ to +false+, then the returned pathnames will contain the
- # filename only.
- #
- # For example:
- # pn = Pathname("/usr/lib/ruby/1.8")
- # pn.children
- # # -> [ Pathname:/usr/lib/ruby/1.8/English.rb,
- # Pathname:/usr/lib/ruby/1.8/Env.rb,
- # Pathname:/usr/lib/ruby/1.8/abbrev.rb, ... ]
- # pn.children(false)
- # # -> [ Pathname:English.rb, Pathname:Env.rb, Pathname:abbrev.rb, ... ]
- #
- # Note that the result never contain the entries <tt>.</tt> and <tt>..</tt> in
- # the directory because they are not children.
- #
- # This method has existed since 1.8.1.
- #
- def children(with_directory=true)
- with_directory = false if @path == '.'
- result = []
- Dir.foreach(@path) {|e|
- next if e == '.' || e == '..'
- if with_directory
- result << self.class.new(File.join(@path, e))
- else
- result << self.class.new(e)
- end
- }
- result
- end
-
- # Iterates over the children of the directory
- # (files and subdirectories, not recursive).
- # It yields Pathname object for each child.
- # By default, the yielded pathnames will have enough information to access the files.
- # If you set +with_directory+ to +false+, then the returned pathnames will contain the filename only.
- #
- # Pathname("/usr/local").each_child {|f| p f }
- # #=> #<Pathname:/usr/local/share>
- # # #<Pathname:/usr/local/bin>
- # # #<Pathname:/usr/local/games>
- # # #<Pathname:/usr/local/lib>
- # # #<Pathname:/usr/local/include>
- # # #<Pathname:/usr/local/sbin>
- # # #<Pathname:/usr/local/src>
- # # #<Pathname:/usr/local/man>
- #
- # Pathname("/usr/local").each_child(false) {|f| p f }
- # #=> #<Pathname:share>
- # # #<Pathname:bin>
- # # #<Pathname:games>
- # # #<Pathname:lib>
- # # #<Pathname:include>
- # # #<Pathname:sbin>
- # # #<Pathname:src>
- # # #<Pathname:man>
- #
- def each_child(with_directory=true, &b)
- children(with_directory).each(&b)
- end
-
- #
- # #relative_path_from returns a relative path from the argument to the
- # receiver. If +self+ is absolute, the argument must be absolute too. If
- # +self+ is relative, the argument must be relative too.
- #
- # #relative_path_from doesn't access the filesystem. It assumes no symlinks.
- #
- # ArgumentError is raised when it cannot find a relative path.
- #
- # This method has existed since 1.8.1.
- #
- def relative_path_from(base_directory)
- dest_directory = self.cleanpath.to_s
- base_directory = base_directory.cleanpath.to_s
- dest_prefix = dest_directory
- dest_names = []
- while r = chop_basename(dest_prefix)
- dest_prefix, basename = r
- dest_names.unshift basename if basename != '.'
- end
- base_prefix = base_directory
- base_names = []
- while r = chop_basename(base_prefix)
- base_prefix, basename = r
- base_names.unshift basename if basename != '.'
- end
- unless SAME_PATHS[dest_prefix, base_prefix]
- raise ArgumentError, "different prefix: #{dest_prefix.inspect} and #{base_directory.inspect}"
- end
- while !dest_names.empty? &&
- !base_names.empty? &&
- SAME_PATHS[dest_names.first, base_names.first]
- dest_names.shift
- base_names.shift
- end
- if base_names.include? '..'
- raise ArgumentError, "base_directory has ..: #{base_directory.inspect}"
- end
- base_names.fill('..')
- relpath_names = base_names + dest_names
- if relpath_names.empty?
- Pathname.new('.')
- else
- Pathname.new(File.join(*relpath_names))
- end
- end
-end
-
-class Pathname # * IO *
- #
- # #each_line iterates over the line in the file. It yields a String object
- # for each line.
- #
- # This method has existed since 1.8.1.
- #
- def each_line(*args, &block) # :yield: line
- IO.foreach(@path, *args, &block)
- end
-
- # See <tt>IO.read</tt>. Returns all data from the file, or the first +N+ bytes
- # if specified.
- def read(*args) IO.read(@path, *args) end
-
- # See <tt>IO.binread</tt>. Returns all the bytes from the file, or the first +N+
- # if specified.
- def binread(*args) IO.binread(@path, *args) end
-
- # See <tt>IO.readlines</tt>. Returns all the lines from the file.
- def readlines(*args) IO.readlines(@path, *args) end
-
- # See <tt>IO.sysopen</tt>.
- def sysopen(*args) IO.sysopen(@path, *args) end
-end
-
-
-class Pathname # * File *
-
- # See <tt>File.atime</tt>. Returns last access time.
- def atime() File.atime(@path) end
-
- # See <tt>File.ctime</tt>. Returns last (directory entry, not file) change time.
- def ctime() File.ctime(@path) end
-
- # See <tt>File.mtime</tt>. Returns last modification time.
- def mtime() File.mtime(@path) end
-
- # See <tt>File.chmod</tt>. Changes permissions.
- def chmod(mode) File.chmod(mode, @path) end
-
- # See <tt>File.lchmod</tt>.
- def lchmod(mode) File.lchmod(mode, @path) end
-
- # See <tt>File.chown</tt>. Change owner and group of file.
- def chown(owner, group) File.chown(owner, group, @path) end
-
- # See <tt>File.lchown</tt>.
- def lchown(owner, group) File.lchown(owner, group, @path) end
-
- # See <tt>File.fnmatch</tt>. Return +true+ if the receiver matches the given
- # pattern.
- def fnmatch(pattern, *args) File.fnmatch(pattern, @path, *args) end
-
- # See <tt>File.fnmatch?</tt> (same as #fnmatch).
- def fnmatch?(pattern, *args) File.fnmatch?(pattern, @path, *args) end
-
- # See <tt>File.ftype</tt>. Returns "type" of file ("file", "directory",
- # etc).
- def ftype() File.ftype(@path) end
-
- # See <tt>File.link</tt>. Creates a hard link.
- def make_link(old) File.link(old, @path) end
-
- # See <tt>File.open</tt>. Opens the file for reading or writing.
- def open(*args, &block) # :yield: file
- File.open(@path, *args, &block)
- end
-
- # See <tt>File.readlink</tt>. Read symbolic link.
- def readlink() self.class.new(File.readlink(@path)) end
-
- # See <tt>File.rename</tt>. Rename the file.
- def rename(to) File.rename(@path, to) end
-
- # See <tt>File.stat</tt>. Returns a <tt>File::Stat</tt> object.
- def stat() File.stat(@path) end
-
- # See <tt>File.lstat</tt>.
- def lstat() File.lstat(@path) end
-
- # See <tt>File.symlink</tt>. Creates a symbolic link.
- def make_symlink(old) File.symlink(old, @path) end
-
- # See <tt>File.truncate</tt>. Truncate the file to +length+ bytes.
- def truncate(length) File.truncate(@path, length) end
-
- # See <tt>File.utime</tt>. Update the access and modification times.
- def utime(atime, mtime) File.utime(atime, mtime, @path) end
-
- # See <tt>File.basename</tt>. Returns the last component of the path.
- def basename(*args) self.class.new(File.basename(@path, *args)) end
-
- # See <tt>File.dirname</tt>. Returns all but the last component of the path.
- def dirname() self.class.new(File.dirname(@path)) end
-
- # See <tt>File.extname</tt>. Returns the file's extension.
- def extname() File.extname(@path) end
-
- # See <tt>File.expand_path</tt>.
- def expand_path(*args) self.class.new(File.expand_path(@path, *args)) end
-
- # See <tt>File.split</tt>. Returns the #dirname and the #basename in an
- # Array.
- def split() File.split(@path).map {|f| self.class.new(f) } end
-end
-
-
-class Pathname # * FileTest *
-
- # See <tt>FileTest.blockdev?</tt>.
- def blockdev?() FileTest.blockdev?(@path) end
-
- # See <tt>FileTest.chardev?</tt>.
- def chardev?() FileTest.chardev?(@path) end
-
- # See <tt>FileTest.executable?</tt>.
- def executable?() FileTest.executable?(@path) end
-
- # See <tt>FileTest.executable_real?</tt>.
- def executable_real?() FileTest.executable_real?(@path) end
-
- # See <tt>FileTest.exist?</tt>.
- def exist?() FileTest.exist?(@path) end
-
- # See <tt>FileTest.grpowned?</tt>.
- def grpowned?() FileTest.grpowned?(@path) end
-
- # See <tt>FileTest.directory?</tt>.
- def directory?() FileTest.directory?(@path) end
-
- # See <tt>FileTest.file?</tt>.
- def file?() FileTest.file?(@path) end
-
- # See <tt>FileTest.pipe?</tt>.
- def pipe?() FileTest.pipe?(@path) end
-
- # See <tt>FileTest.socket?</tt>.
- def socket?() FileTest.socket?(@path) end
-
- # See <tt>FileTest.owned?</tt>.
- def owned?() FileTest.owned?(@path) end
-
- # See <tt>FileTest.readable?</tt>.
- def readable?() FileTest.readable?(@path) end
-
- # See <tt>FileTest.world_readable?</tt>.
- def world_readable?() FileTest.world_readable?(@path) end
-
- # See <tt>FileTest.readable_real?</tt>.
- def readable_real?() FileTest.readable_real?(@path) end
-
- # See <tt>FileTest.setuid?</tt>.
- def setuid?() FileTest.setuid?(@path) end
-
- # See <tt>FileTest.setgid?</tt>.
- def setgid?() FileTest.setgid?(@path) end
-
- # See <tt>FileTest.size</tt>.
- def size() FileTest.size(@path) end
-
- # See <tt>FileTest.size?</tt>.
- def size?() FileTest.size?(@path) end
-
- # See <tt>FileTest.sticky?</tt>.
- def sticky?() FileTest.sticky?(@path) end
-
- # See <tt>FileTest.symlink?</tt>.
- def symlink?() FileTest.symlink?(@path) end
-
- # See <tt>FileTest.writable?</tt>.
- def writable?() FileTest.writable?(@path) end
-
- # See <tt>FileTest.world_writable?</tt>.
- def world_writable?() FileTest.world_writable?(@path) end
-
- # See <tt>FileTest.writable_real?</tt>.
- def writable_real?() FileTest.writable_real?(@path) end
-
- # See <tt>FileTest.zero?</tt>.
- def zero?() FileTest.zero?(@path) end
-end
-
-
-class Pathname # * Dir *
- # See <tt>Dir.glob</tt>. Returns or yields Pathname objects.
- def Pathname.glob(*args) # :yield: pathname
- if block_given?
- Dir.glob(*args) {|f| yield self.new(f) }
- else
- Dir.glob(*args).map {|f| self.new(f) }
- end
- end
-
- # See <tt>Dir.getwd</tt>. Returns the current working directory as a Pathname.
- def Pathname.getwd() self.new(Dir.getwd) end
- class << self; alias pwd getwd end
-
- # Return the entries (files and subdirectories) in the directory, each as a
- # Pathname object.
- def entries() Dir.entries(@path).map {|f| self.class.new(f) } end
-
- # Iterates over the entries (files and subdirectories) in the directory. It
- # yields a Pathname object for each entry.
- #
- # This method has existed since 1.8.1.
- def each_entry(&block) # :yield: pathname
- Dir.foreach(@path) {|f| yield self.class.new(f) }
- end
-
- # See <tt>Dir.mkdir</tt>. Create the referenced directory.
- def mkdir(*args) Dir.mkdir(@path, *args) end
-
- # See <tt>Dir.rmdir</tt>. Remove the referenced directory.
- def rmdir() Dir.rmdir(@path) end
-
- # See <tt>Dir.open</tt>.
- def opendir(&block) # :yield: dir
- Dir.open(@path, &block)
- end
-end
-
-
-class Pathname # * Find *
- #
- # Pathname#find is an iterator to traverse a directory tree in a depth first
- # manner. It yields a Pathname for each file under "this" directory.
- #
- # Since it is implemented by <tt>find.rb</tt>, <tt>Find.prune</tt> can be used
- # to control the traverse.
- #
- # If +self+ is <tt>.</tt>, yielded pathnames begin with a filename in the
- # current directory, not <tt>./</tt>.
- #
- def find(&block) # :yield: pathname
- require 'find'
- if @path == '.'
- Find.find(@path) {|f| yield self.class.new(f.sub(%r{\A\./}, '')) }
- else
- Find.find(@path) {|f| yield self.class.new(f) }
- end
- end
-end
-
-
-class Pathname # * FileUtils *
- # See <tt>FileUtils.mkpath</tt>. Creates a full path, including any
- # intermediate directories that don't yet exist.
- def mkpath
- require 'fileutils'
- FileUtils.mkpath(@path)
- nil
- end
-
- # See <tt>FileUtils.rm_r</tt>. Deletes a directory and all beneath it.
- def rmtree
- # The name "rmtree" is borrowed from File::Path of Perl.
- # File::Path provides "mkpath" and "rmtree".
- require 'fileutils'
- FileUtils.rm_r(@path)
- nil
- end
-end
-
-
-class Pathname # * mixed *
- # Removes a file or directory, using <tt>File.unlink</tt> or
- # <tt>Dir.unlink</tt> as necessary.
- def unlink()
- begin
- Dir.unlink @path
- rescue Errno::ENOTDIR
- File.unlink @path
- end
- end
- alias delete unlink
-end
-
-class Pathname
- undef =~
-end
-
-module Kernel
- # create a pathname object.
- #
- # This method is available since 1.8.5.
- def Pathname(path) # :doc:
- Pathname.new(path)
- end
- private :Pathname
-end
diff --git a/lib/pp.rb b/lib/pp.rb
index e28875c8e2..56d726dc7d 100644
--- a/lib/pp.rb
+++ b/lib/pp.rb
@@ -54,12 +54,12 @@ module Kernel
private
# prints arguments in pretty form.
#
- # pp returns nil.
+ # pp returns argument(s).
def pp(*objs) # :doc:
objs.each {|obj|
PP.pp(obj)
}
- nil
+ objs.size <= 1 ? objs.first : objs
end
module_function :pp
end
@@ -107,17 +107,17 @@ class PP < PrettyPrint
module PPMethods
def guard_inspect_key
if Thread.current[:__recursive_key__] == nil
- Thread.current[:__recursive_key__] = {}
+ Thread.current[:__recursive_key__] = {}.untrust
end
if Thread.current[:__recursive_key__][:inspect] == nil
- Thread.current[:__recursive_key__][:inspect] = {}
+ Thread.current[:__recursive_key__][:inspect] = {}.untrust
end
save = Thread.current[:__recursive_key__][:inspect]
begin
- Thread.current[:__recursive_key__][:inspect] = {}
+ Thread.current[:__recursive_key__][:inspect] = {}.untrust
yield
ensure
Thread.current[:__recursive_key__][:inspect] = save
@@ -164,13 +164,7 @@ class PP < PrettyPrint
group(1, '#<' + obj.class.name, '>', &block)
end
- if 0x100000000.class == Bignum
- # 32bit
- PointerMask = 0xffffffff
- else
- # 64bit
- PointerMask = 0xffffffffffffffff
- end
+ PointerMask = (1 << ([""].pack("p").size * 8)) - 1
case Object.new.inspect
when /\A\#<Object:0x([0-9a-f]+)>\z/
@@ -270,7 +264,7 @@ class PP < PrettyPrint
module ObjectMixin
# 1. specific pretty_print
# 2. specific inspect
- # 3. specific to_s if instance variable is empty
+ # 3. specific to_s
# 4. generic pretty_print
# A default pretty printing method for general objects.
@@ -283,9 +277,22 @@ class PP < PrettyPrint
# This module provides predefined #pretty_print methods for some of
# the most commonly used built-in classes for convenience.
def pretty_print(q)
- if /\(Kernel\)#/ !~ Object.instance_method(:method).bind(self).call(:inspect).inspect
+ method_method = Object.instance_method(:method).bind(self)
+ begin
+ inspect_method = method_method.call(:inspect)
+ rescue NameError
+ end
+ begin
+ to_s_method = method_method.call(:to_s)
+ rescue NameError
+ end
+ if inspect_method && /\(Kernel\)#/ !~ inspect_method.inspect
q.text self.inspect
- elsif /\(Kernel\)#/ !~ Object.instance_method(:method).bind(self).call(:to_s).inspect && instance_variables.empty?
+ elsif !inspect_method && self.respond_to?(:inspect)
+ q.text self.inspect
+ elsif to_s_method && /\(Kernel\)#/ !~ to_s_method.inspect
+ q.text self.to_s
+ elsif !to_s_method && self.respond_to?(:to_s)
q.text self.to_s
else
q.pp_object(self)
@@ -389,7 +396,7 @@ class Range
end
end
-class File
+class File < IO
class Stat
def pretty_print(q)
require 'etc.so'
@@ -496,7 +503,7 @@ class MatchData
end
end
-class Object
+class Object < BasicObject
include PP::ObjectMixin
end
diff --git a/lib/prettyprint.rb b/lib/prettyprint.rb
index 2c1fff3258..9a90713a4d 100644
--- a/lib/prettyprint.rb
+++ b/lib/prettyprint.rb
@@ -93,6 +93,7 @@ class PrettyPrint
attr_reader :output, :maxwidth, :newline, :genspace
attr_reader :indent, :group_queue
+ # Returns the group most recently added to the stack.
def current_group
@group_stack.last
end
@@ -119,6 +120,7 @@ class PrettyPrint
current_group.first?
end
+ # Breaks the buffer into lines that are shorter than #maxwidth
def break_outmost_groups
while @maxwidth < @output_width + @buffer_width
return unless group = @group_queue.deq
@@ -155,11 +157,27 @@ class PrettyPrint
end
end
+ # This is similar to #breakable except
+ # the decision to break or not is determined individually.
+ #
+ # Two #fill_breakable under a group may cause 4 results:
+ # (break,break), (break,non-break), (non-break,break), (non-break,non-break).
+ # This is different to #breakable because two #breakable under a group
+ # may cause 2 results:
+ # (break,break), (non-break,non-break).
+ #
+ # The text sep+ is inserted if a line is not broken at this point.
+ #
+ # If +sep+ is not specified, " " is used.
+ #
+ # If +width+ is not specified, +sep.length+ is used. You will have to
+ # specify this when +sep+ is a multibyte character, for example.
+ #
def fill_breakable(sep=' ', width=sep.length)
group { breakable sep, width }
end
- # This tells "you can break a line here if necessary", and a +width+\-column
+ # This says "you can break a line here if necessary", and a +width+\-column
# text +sep+ is inserted if a line is not broken at the point.
#
# If +sep+ is not specified, " " is used.
diff --git a/lib/prime.rb b/lib/prime.rb
index ec3f8fa8cb..4a20d93fb7 100644
--- a/lib/prime.rb
+++ b/lib/prime.rb
@@ -46,11 +46,17 @@ end
# The set of all prime numbers.
#
# == Example
-# Prime.each(100) do |prime|
-# p prime #=> 2, 3, 5, 7, 11, ...., 97
-# end
+#
+# Prime.each(100) do |prime|
+# p prime #=> 2, 3, 5, 7, 11, ...., 97
+# end
+#
+# Prime is Enumerable:
+#
+# Prime.first 5 # => [2, 3, 5, 7, 11]
#
# == Retrieving the instance
+#
# +Prime+.new is obsolete. Now +Prime+ has the default instance and you can
# access it as +Prime+.instance.
#
@@ -58,10 +64,11 @@ end
# as a class method of +Prime+.
#
# e.g.
-# Prime.instance.prime?(2) #=> true
-# Prime.prime?(2) #=> true
+# Prime.instance.prime?(2) #=> true
+# Prime.prime?(2) #=> true
#
# == Generators
+#
# A "generator" provides an implementation of enumerating pseudo-prime
# numbers and it remembers the position of enumeration and upper bound.
# Futhermore, it is a external iterator of prime enumeration which is
@@ -80,6 +87,7 @@ end
# is faster and uses much less memory than other generators. So,
# it is suitable for factorizing an integer which is not large but
# has many prime factors. e.g. for Prime#prime? .
+
class Prime
include Enumerable
@the_instance = Prime.new
@@ -91,20 +99,21 @@ class Prime
warn "Prime::new is obsolete. use Prime::instance or class methods of Prime."
end
- class<<self
+ class << self
extend Forwardable
include Enumerable
# Returns the default instance of Prime.
def instance; @the_instance end
def method_added(method) # :nodoc:
- (class<<self;self;end).def_delegator :instance, method
+ (class<< self;self;end).def_delegator :instance, method
end
end
# Iterates the given block over all prime numbers.
#
# == Parameters
+ #
# +ubound+::
# Optional. An arbitrary positive number.
# The upper bound of enumeration. The method enumerates
@@ -113,12 +122,14 @@ class Prime
# Optional. An implementation of pseudo-prime generator.
#
# == Return value
+ #
# An evaluated value of the given block at the last time.
# Or an enumerator which is compatible to an +Enumerator+
# if no block given.
#
# == Description
- # Calls +block+ once for each prime numer, passing the prime as
+ #
+ # Calls +block+ once for each prime number, passing the prime as
# a parameter.
#
# +ubound+::
@@ -126,8 +137,9 @@ class Prime
# yields all prime numbers p <= +ubound+.
#
# == Note
+ #
# +Prime+.+new+ returns a object extended by +Prime+::+OldCompatibility+
- # in order to compatibility to Ruby 1.9, and +Prime+#each is overwritten
+ # in order to compatibility to Ruby 1.8, and +Prime+#each is overwritten
# by +Prime+::+OldCompatibility+#+each+.
#
# +Prime+.+new+ is now obsolete. Use +Prime+.+instance+.+each+ or simply
@@ -141,6 +153,7 @@ class Prime
# Returns true if +value+ is prime, false for a composite.
#
# == Parameters
+ #
# +value+:: an arbitrary integer to be checked.
# +generator+:: optional. A pseudo-prime generator.
def prime?(value, generator = Prime::Generator23.new)
@@ -161,10 +174,11 @@ class Prime
# and a natural number -- an exponent.
#
# == Example
- # For [[p_1, e_1], [p_2, e_2], ...., [p_n, e_n]], it returns
- # p_1**e_1 * p_2**e_2 * .... * p_n**e_n.
+ # For <tt>[[p_1, e_1], [p_2, e_2], ...., [p_n, e_n]]</tt>, it returns:
#
- # Prime.int_from_prime_division([[2,2], [3,1]]) #=> 12
+ # p_1**e_1 * p_2**e_2 * .... * p_n**e_n.
+ #
+ # Prime.int_from_prime_division([[2,2], [3,1]]) #=> 12
def int_from_prime_division(pd)
pd.inject(1){|value, (prime, index)|
value *= prime**index
@@ -185,25 +199,33 @@ class Prime
# +ZeroDivisionError+:: when +value+ is zero.
#
# == Example
- # For an arbitrary integer
- # n = p_1**e_1 * p_2**e_2 * .... * p_n**e_n,
- # prime_division(n) returns
- # [[p_1, e_1], [p_2, e_2], ...., [p_n, e_n]].
+ # For an arbitrary integer:
+ #
+ # n = p_1**e_1 * p_2**e_2 * .... * p_n**e_n,
+ #
+ # prime_division(n) returns:
#
- # Prime.prime_division(12) #=> [[2,2], [3,1]]
+ # [[p_1, e_1], [p_2, e_2], ...., [p_n, e_n]].
+ #
+ # Prime.prime_division(12) #=> [[2,2], [3,1]]
#
def prime_division(value, generator= Prime::Generator23.new)
raise ZeroDivisionError if value == 0
- pv = []
+ if value < 0
+ value = -value
+ pv = [[-1, 1]]
+ else
+ pv = []
+ end
for prime in generator
count = 0
while (value1, mod = value.divmod(prime)
- mod) == 0
- value = value1
- count += 1
+ mod) == 0
+ value = value1
+ count += 1
end
if count != 0
- pv.push [prime, count]
+ pv.push [prime, count]
end
break if value1 <= prime
end
@@ -254,16 +276,16 @@ class Prime
def each(&block)
return self.dup unless block
if @ubound
- last_value = nil
- loop do
- prime = succ
- break last_value if prime > @ubound
- last_value = block.call(prime)
- end
+ last_value = nil
+ loop do
+ prime = succ
+ break last_value if prime > @ubound
+ last_value = block.call(prime)
+ end
else
- loop do
- block.call(succ)
- end
+ loop do
+ block.call(succ)
+ end
end
end
@@ -274,7 +296,7 @@ class Prime
def with_object(obj)
return enum_for(:with_object) unless block_given?
each do |prime|
- yield prime, obj
+ yield prime, obj
end
end
end
@@ -285,6 +307,7 @@ class Prime
class EratosthenesGenerator < PseudoPrimeGenerator
def initialize
@last_prime = nil
+ super
end
def succ
@@ -301,6 +324,7 @@ class Prime
class TrialDivisionGenerator<PseudoPrimeGenerator
def initialize
@index = -1
+ super
end
def succ
@@ -322,21 +346,22 @@ class Prime
def initialize
@prime = 1
@step = nil
+ super
end
def succ
loop do
- if (@step)
- @prime += @step
- @step = 6 - @step
- else
- case @prime
- when 1; @prime = 2
- when 2; @prime = 3
- when 3; @prime = 5; @step = 2
- end
- end
- return @prime
+ if (@step)
+ @prime += @step
+ @step = 6 - @step
+ else
+ case @prime
+ when 1; @prime = 2
+ when 2; @prime = 3
+ when 3; @prime = 5; @step = 2
+ end
+ end
+ return @prime
end
end
alias next succ
@@ -345,9 +370,6 @@ class Prime
end
end
-
-
-
# Internal use. An implementation of prime table by trial division method.
class TrialDivision
include Singleton
@@ -377,20 +399,20 @@ class Prime
# +index+ is a 0-based index.
def [](index)
while index >= @primes.length
- # Only check for prime factors up to the square root of the potential primes,
- # but without the performance hit of an actual square root calculation.
- if @next_to_check + 4 > @ulticheck_next_squared
- @ulticheck_index += 1
- @ulticheck_next_squared = @primes.at(@ulticheck_index + 1) ** 2
- end
- # Only check numbers congruent to one and five, modulo six. All others
-
- # are divisible by two or three. This also allows us to skip checking against
- # two and three.
- @primes.push @next_to_check if @primes[2..@ulticheck_index].find {|prime| @next_to_check % prime == 0 }.nil?
- @next_to_check += 4
- @primes.push @next_to_check if @primes[2..@ulticheck_index].find {|prime| @next_to_check % prime == 0 }.nil?
- @next_to_check += 2
+ # Only check for prime factors up to the square root of the potential primes,
+ # but without the performance hit of an actual square root calculation.
+ if @next_to_check + 4 > @ulticheck_next_squared
+ @ulticheck_index += 1
+ @ulticheck_next_squared = @primes.at(@ulticheck_index + 1) ** 2
+ end
+ # Only check numbers congruent to one and five, modulo six. All others
+
+ # are divisible by two or three. This also allows us to skip checking against
+ # two and three.
+ @primes.push @next_to_check if @primes[2..@ulticheck_index].find {|prime| @next_to_check % prime == 0 }.nil?
+ @next_to_check += 4
+ @primes.push @next_to_check if @primes[2..@ulticheck_index].find {|prime| @next_to_check % prime == 0 }.nil?
+ @next_to_check += 2
end
return @primes[index]
end
@@ -400,48 +422,72 @@ class Prime
class EratosthenesSieve
include Singleton
+ BITS_PER_ENTRY = 16 # each entry is a set of 16-bits in a Fixnum
+ NUMS_PER_ENTRY = BITS_PER_ENTRY * 2 # twiced because even numbers are omitted
+ ENTRIES_PER_TABLE = 8
+ NUMS_PER_TABLE = NUMS_PER_ENTRY * ENTRIES_PER_TABLE
+ FILLED_ENTRY = (1 << NUMS_PER_ENTRY) - 1
+
def initialize # :nodoc:
# bitmap for odd prime numbers less than 256.
- # For an arbitrary odd number n, @table[i][j] is 1 when n is prime where i,j = n.divmod(32) .
- @table = [0xcb6e, 0x64b4, 0x129a, 0x816d, 0x4c32, 0x864a, 0x820d, 0x2196]
+ # For an arbitrary odd number n, @tables[i][j][k] is
+ # * 1 if n is prime,
+ # * 0 if n is composite,
+ # where i,j,k = indices(n)
+ @tables = [[0xcb6e, 0x64b4, 0x129a, 0x816d, 0x4c32, 0x864a, 0x820d, 0x2196].freeze]
end
# returns the least odd prime number which is greater than +n+.
def next_to(n)
- n = (n-1).div(2)*2+3 # the next odd number of given n
- i,j = n.divmod(32)
+ n = (n-1).div(2)*2+3 # the next odd number to given n
+ table_index, integer_index, bit_index = indices(n)
loop do
- extend_table until @table.length > i
- if !@table[i].zero?
- (j...32).step(2) do |k|
- return 32*i+k if !@table[i][k.div(2)].zero?
- end
- end
- i += 1; j = 1
+ extend_table until @tables.length > table_index
+ for j in integer_index...ENTRIES_PER_TABLE
+ if !@tables[table_index][j].zero?
+ for k in bit_index...BITS_PER_ENTRY
+ return NUMS_PER_TABLE*table_index + NUMS_PER_ENTRY*j + 2*k+1 if !@tables[table_index][j][k].zero?
+ end
+ end
+ bit_index = 0
+ end
+ table_index += 1; integer_index = 0
end
end
private
+ # for an odd number +n+, returns (i, j, k) such that @tables[i][j][k] represents primarity of the number
+ def indices(n)
+ # binary digits of n: |0|1|2|3|4|5|6|7|8|9|10|11|....
+ # indices: |-| k | j | i
+ # because of NUMS_PER_ENTRY, NUMS_PER_TABLE
+
+ k = (n & 0b00011111) >> 1
+ j = (n & 0b11100000) >> 5
+ i = n >> 8
+ return i, j, k
+ end
+
def extend_table
- orig_len = @table.length
- new_len = [orig_len**2, orig_len+256].min
- lbound = orig_len*32
- ubound = new_len*32
- @table.fill(0xFFFF, orig_len...new_len)
+ lbound = NUMS_PER_TABLE * @tables.length
+ ubound = lbound + NUMS_PER_TABLE
+ new_table = [FILLED_ENTRY] * ENTRIES_PER_TABLE # which represents primarity in lbound...ubound
(3..Integer(Math.sqrt(ubound))).step(2) do |p|
- i, j = p.divmod(32)
- next if @table[i][j.div(2)].zero?
-
- start = (lbound.div(2*p)*2+1)*p # odd multiple of p which is greater than or equal to lbound
- (start...ubound).step(2*p) do |n|
- i, j = n.divmod(32)
- @table[i] &= 0xFFFF ^ (1<<(j.div(2)))
- end
+ i, j, k = indices(p)
+ next if @tables[i][j][k].zero?
+
+ start = (lbound.div(p)+1)*p # least multiple of p which is >= lbound
+ start += p if start.even?
+ (start...ubound).step(2*p) do |n|
+ _, j, k = indices(n)
+ new_table[j] &= FILLED_ENTRY^(1<<k)
+ end
end
+ @tables << new_table.freeze
end
end
- # Provides a +Prime+ object with compatibility to Ruby 1.8 when instanciated via +Prime+.+new+.
+ # Provides a +Prime+ object with compatibility to Ruby 1.8 when instantiated via +Prime+.+new+.
module OldCompatibility
# Returns the next prime number and forwards internal pointer.
def succ
@@ -451,12 +497,12 @@ class Prime
# Overwrites Prime#each.
#
- # Iterates the given block over all prime numbers. Note that enumeration starts from
- # the current position of internal pointer, not rewound.
+ # Iterates the given block over all prime numbers. Note that enumeration
+ # starts from the current position of internal pointer, not rewound.
def each(&block)
return @generator.dup unless block_given?
loop do
- yield succ
+ yield succ
end
end
end
diff --git a/lib/pstore.rb b/lib/pstore.rb
index 7b7080338e..429d7e5c7d 100644
--- a/lib/pstore.rb
+++ b/lib/pstore.rb
@@ -94,10 +94,9 @@ require "thread"
# Needless to say, if you're storing valuable data with PStore, then you should
# backup the PStore files from time to time.
class PStore
- binmode = defined?(File::BINARY) ? File::BINARY : 0
- RDWR_ACCESS = File::RDWR | File::CREAT | binmode
- RD_ACCESS = File::RDONLY | binmode
- WR_ACCESS = File::WRONLY | File::CREAT | File::TRUNC | binmode
+ RDWR_ACCESS = {mode: IO::RDWR | IO::CREAT | IO::BINARY, encoding: Encoding::ASCII_8BIT}.freeze
+ RD_ACCESS = {mode: IO::RDONLY | IO::BINARY, encoding: Encoding::ASCII_8BIT}.freeze
+ WR_ACCESS = {mode: IO::WRONLY | IO::CREAT | IO::TRUNC | IO::BINARY, encoding: Encoding::ASCII_8BIT}.freeze
# The error type thrown by all PStore methods.
class Error < StandardError
@@ -127,20 +126,16 @@ class PStore
if File::exist? file and not File::readable? file
raise PStore::Error, format("file %s not readable", file)
end
- @transaction = false
@filename = file
@abort = false
@ultra_safe = false
- if @thread_safe
- @lock = Mutex.new
- else
- @lock = DummyMutex.new
- end
+ @thread_safe = thread_safe
+ @lock = Mutex.new
end
# Raises PStore::Error if the calling code is not in a PStore#transaction.
def in_transaction
- raise PStore::Error, "not in transaction" unless @transaction
+ raise PStore::Error, "not in transaction" unless @lock.locked?
end
#
# Raises PStore::Error if the calling code is not in a PStore#transaction or
@@ -317,10 +312,9 @@ class PStore
#
def transaction(read_only = false, &block) # :yields: pstore
value = nil
- raise PStore::Error, "nested transaction" if @transaction
+ raise PStore::Error, "nested transaction" if !@thread_safe && @lock.locked?
@lock.synchronize do
@rdonly = read_only
- @transaction = true
@abort = false
file = open_and_lock_file(@filename, read_only)
if file
@@ -346,8 +340,8 @@ class PStore
end
end
value
- ensure
- @transaction = false
+ rescue ThreadError
+ raise PStore::Error, "nested transaction"
end
private
@@ -356,12 +350,6 @@ class PStore
EMPTY_MARSHAL_DATA = Marshal.dump({})
EMPTY_MARSHAL_CHECKSUM = Digest::MD5.digest(EMPTY_MARSHAL_DATA)
- class DummyMutex
- def synchronize
- yield
- end
- end
-
#
# Open the specified filename (either in read-only mode or in
# read-write mode) and lock it for reading or writing.
@@ -431,7 +419,7 @@ class PStore
def on_windows?
is_windows = RUBY_PLATFORM =~ /mswin/ ||
RUBY_PLATFORM =~ /mingw/ ||
- RUBY_PLATFORM =~ /bbcwin/ ||
+ RUBY_PLATFORM =~ /bccwin/ ||
RUBY_PLATFORM =~ /wince/
self.class.__send__(:define_method, :on_windows?) do
is_windows
@@ -449,6 +437,7 @@ class PStore
rescue
result = false
end
+ self.class.instance_method(:marshal_dump_supports_canonical_option?)
self.class.__send__(:define_method, :marshal_dump_supports_canonical_option?) do
result
end
diff --git a/lib/racc/parser.rb b/lib/racc/parser.rb
index fc9b390d59..737b0fda5d 100644
--- a/lib/racc/parser.rb
+++ b/lib/racc/parser.rb
@@ -30,11 +30,11 @@ module Racc
class Parser
- Racc_Runtime_Version = '1.4.5'
- Racc_Runtime_Revision = '$originalRevision: 1.8 $'.split[1]
+ Racc_Runtime_Version = '1.4.6'
+ Racc_Runtime_Revision = %w$originalRevision: 1.8 $[1]
- Racc_Runtime_Core_Version_R = '1.4.5'
- Racc_Runtime_Core_Revision_R = '$originalRevision: 1.8 $'.split[1]
+ Racc_Runtime_Core_Version_R = '1.4.6'
+ Racc_Runtime_Core_Revision_R = %w$originalRevision: 1.8 $[1]
begin
require 'racc/cparse'
# Racc_Runtime_Core_Version_C = (defined in extention)
@@ -95,9 +95,11 @@ module Racc
### do_parse
###
+ class_eval %{
def do_parse
- __send__(Racc_Main_Parsing_Routine, _racc_setup(), false)
+ #{Racc_Main_Parsing_Routine}(_racc_setup(), false)
end
+ }
def next_token
raise NotImplementedError, "#{self.class}\#next_token is not defined"
@@ -105,13 +107,12 @@ module Racc
def _racc_do_parse_rb(arg, in_debug)
action_table, action_check, action_default, action_pointer,
- goto_table, goto_check, goto_default, goto_pointer,
- nt_base, reduce_table, token_table, shift_n,
- reduce_n, use_result, * = arg
+ _, _, _, _,
+ _, _, token_table, _,
+ _, _, * = arg
_racc_init_sysvars
tok = act = i = nil
- nerr = 0
catch(:racc_end_parse) {
while true
@@ -148,20 +149,21 @@ module Racc
### yyparse
###
+ class_eval %{
def yyparse(recv, mid)
- __send__(Racc_YY_Parse_Method, recv, mid, _racc_setup(), true)
+ #{Racc_YY_Parse_Method}(recv, mid, _racc_setup(), true)
end
+ }
def _racc_yyparse_rb(recv, mid, arg, c_debug)
action_table, action_check, action_default, action_pointer,
- goto_table, goto_check, goto_default, goto_pointer,
- nt_base, reduce_table, token_table, shift_n,
- reduce_n, use_result, * = arg
+ _, _, _, _,
+ _, _, token_table, _,
+ _, _, * = arg
_racc_init_sysvars
act = nil
i = nil
- nerr = 0
catch(:racc_end_parse) {
until i = action_pointer[@racc_state[-1]]
@@ -210,10 +212,10 @@ module Racc
###
def _racc_evalact(act, arg)
- action_table, action_check, action_default, action_pointer,
- goto_table, goto_check, goto_default, goto_pointer,
- nt_base, reduce_table, token_table, shift_n,
- reduce_n, use_result, * = arg
+ action_table, action_check, _, action_pointer,
+ _, _, _, _,
+ _, _, _, shift_n, reduce_n,
+ _, _, * = arg
nerr = 0 # tmp
if act > 0 and act < shift_n
@@ -305,10 +307,10 @@ module Racc
end
def _racc_do_reduce(arg, act)
- action_table, action_check, action_default, action_pointer,
+ _, _, _, _,
goto_table, goto_check, goto_default, goto_pointer,
- nt_base, reduce_table, token_table, shift_n,
- reduce_n, use_result, * = arg
+ nt_base, reduce_table, _, _,
+ _, use_result, * = arg
state = @racc_state
vstack = @racc_vstack
tstack = @racc_tstack
diff --git a/lib/rake.rb b/lib/rake.rb
index c288e80b00..fc1a6a5165 100755..100644
--- a/lib/rake.rb
+++ b/lib/rake.rb
@@ -1,6 +1,6 @@
#--
-# Copyright 2003, 2004, 2005, 2006, 2007, 2008 by Jim Weirich (jim@weirichhouse.org)
+# Copyright 2003-2010 by Jim Weirich (jim.weirich@gmail.com)
#
# Permission is hereby granted, free of charge, to any person obtaining a copy
# of this software and associated documentation files (the "Software"), to
@@ -20,14 +20,12 @@
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS
# IN THE SOFTWARE.
#++
-#
-# = Rake -- Ruby Make
-#
-# This is the main file for the Rake application. Normally it is referenced
-# as a library via a require statement, but it can be distributed
-# independently as an application.
-RAKEVERSION = '0.8.4'
+require 'rake/version'
+
+# :stopdoc:
+RAKEVERSION = Rake::VERSION
+# :startdoc:
require 'rbconfig'
require 'fileutils'
@@ -36,2436 +34,36 @@ require 'monitor'
require 'optparse'
require 'ostruct'
-require 'rake/win32'
-
-######################################################################
-# Rake extensions to Module.
-#
-class Module
- # Check for an existing method in the current class before extending. IF
- # the method already exists, then a warning is printed and the extension is
- # not added. Otherwise the block is yielded and any definitions in the
- # block will take effect.
- #
- # Usage:
- #
- # class String
- # rake_extension("xyz") do
- # def xyz
- # ...
- # end
- # end
- # end
- #
- def rake_extension(method)
- if method_defined?(method)
- $stderr.puts "WARNING: Possible conflict with Rake extension: #{self}##{method} already exists"
- else
- yield
- end
- end
-end # module Module
-
-
-######################################################################
-# User defined methods to be added to String.
-#
-class String
- rake_extension("ext") do
- # Replace the file extension with +newext+. If there is no extension on
- # the string, append the new extension to the end. If the new extension
- # is not given, or is the empty string, remove any existing extension.
- #
- # +ext+ is a user added method for the String class.
- def ext(newext='')
- return self.dup if ['.', '..'].include? self
- if newext != ''
- newext = (newext =~ /^\./) ? newext : ("." + newext)
- end
- self.chomp(File.extname(self)) << newext
- end
- end
-
- rake_extension("pathmap") do
- # Explode a path into individual components. Used by +pathmap+.
- def pathmap_explode
- head, tail = File.split(self)
- return [self] if head == self
- return [tail] if head == '.' || tail == '/'
- return [head, tail] if head == '/'
- return head.pathmap_explode + [tail]
- end
- protected :pathmap_explode
-
- # Extract a partial path from the path. Include +n+ directories from the
- # front end (left hand side) if +n+ is positive. Include |+n+|
- # directories from the back end (right hand side) if +n+ is negative.
- def pathmap_partial(n)
- dirs = File.dirname(self).pathmap_explode
- partial_dirs =
- if n > 0
- dirs[0...n]
- elsif n < 0
- dirs.reverse[0...-n].reverse
- else
- "."
- end
- File.join(partial_dirs)
- end
- protected :pathmap_partial
-
- # Preform the pathmap replacement operations on the given path. The
- # patterns take the form 'pat1,rep1;pat2,rep2...'.
- def pathmap_replace(patterns, &block)
- result = self
- patterns.split(';').each do |pair|
- pattern, replacement = pair.split(',')
- pattern = Regexp.new(pattern)
- if replacement == '*' && block_given?
- result = result.sub(pattern, &block)
- elsif replacement
- result = result.sub(pattern, replacement)
- else
- result = result.sub(pattern, '')
- end
- end
- result
- end
- protected :pathmap_replace
-
- # Map the path according to the given specification. The specification
- # controls the details of the mapping. The following special patterns are
- # recognized:
- #
- # * <b>%p</b> -- The complete path.
- # * <b>%f</b> -- The base file name of the path, with its file extension,
- # but without any directories.
- # * <b>%n</b> -- The file name of the path without its file extension.
- # * <b>%d</b> -- The directory list of the path.
- # * <b>%x</b> -- The file extension of the path. An empty string if there
- # is no extension.
- # * <b>%X</b> -- Everything *but* the file extension.
- # * <b>%s</b> -- The alternate file separater if defined, otherwise use
- # the standard file separator.
- # * <b>%%</b> -- A percent sign.
- #
- # The %d specifier can also have a numeric prefix (e.g. '%2d'). If the
- # number is positive, only return (up to) +n+ directories in the path,
- # starting from the left hand side. If +n+ is negative, return (up to)
- # |+n+| directories from the right hand side of the path.
- #
- # Examples:
- #
- # 'a/b/c/d/file.txt'.pathmap("%2d") => 'a/b'
- # 'a/b/c/d/file.txt'.pathmap("%-2d") => 'c/d'
- #
- # Also the %d, %p, %f, %n, %x, and %X operators can take a
- # pattern/replacement argument to perform simple string substititions on a
- # particular part of the path. The pattern and replacement are speparated
- # by a comma and are enclosed by curly braces. The replacement spec comes
- # after the % character but before the operator letter. (e.g.
- # "%{old,new}d"). Muliple replacement specs should be separated by
- # semi-colons (e.g. "%{old,new;src,bin}d").
- #
- # Regular expressions may be used for the pattern, and back refs may be
- # used in the replacement text. Curly braces, commas and semi-colons are
- # excluded from both the pattern and replacement text (let's keep parsing
- # reasonable).
- #
- # For example:
- #
- # "src/org/onestepback/proj/A.java".pathmap("%{^src,bin}X.class")
- #
- # returns:
- #
- # "bin/org/onestepback/proj/A.class"
- #
- # If the replacement text is '*', then a block may be provided to perform
- # some arbitrary calculation for the replacement.
- #
- # For example:
- #
- # "/path/to/file.TXT".pathmap("%X%{.*,*}x") { |ext|
- # ext.downcase
- # }
- #
- # Returns:
- #
- # "/path/to/file.txt"
- #
- def pathmap(spec=nil, &block)
- return self if spec.nil?
- result = ''
- spec.scan(/%\{[^}]*\}-?\d*[sdpfnxX%]|%-?\d+d|%.|[^%]+/) do |frag|
- case frag
- when '%f'
- result << File.basename(self)
- when '%n'
- result << File.basename(self, '.*')
- when '%d'
- result << File.dirname(self)
- when '%x'
- result << File.extname(self)
- when '%X'
- result << self.ext
- when '%p'
- result << self
- when '%s'
- result << (File::ALT_SEPARATOR || File::SEPARATOR)
- when '%-'
- # do nothing
- when '%%'
- result << "%"
- when /%(-?\d+)d/
- result << pathmap_partial($1.to_i)
- when /^%\{([^}]*)\}(\d*[dpfnxX])/
- patterns, operator = $1, $2
- result << pathmap('%' + operator).pathmap_replace(patterns, &block)
- when /^%/
- fail ArgumentError, "Unknown pathmap specifier #{frag} in '#{spec}'"
- else
- result << frag
- end
- end
- result
- end
- end
-end # class String
-
-##############################################################################
-module Rake
-
- # Errors -----------------------------------------------------------
-
- # Error indicating an ill-formed task declaration.
- class TaskArgumentError < ArgumentError
- end
-
- # Error indicating a recursion overflow error in task selection.
- class RuleRecursionOverflowError < StandardError
- def initialize(*args)
- super
- @targets = []
- end
-
- def add_target(target)
- @targets << target
- end
-
- def message
- super + ": [" + @targets.reverse.join(' => ') + "]"
- end
- end
-
- # --------------------------------------------------------------------------
- # Rake module singleton methods.
- #
- class << self
- # Current Rake Application
- def application
- @application ||= Rake::Application.new
- end
-
- # Set the current Rake application object.
- def application=(app)
- @application = app
- end
-
- # Return the original directory where the Rake application was started.
- def original_dir
- application.original_dir
- end
-
- end
-
- # ##########################################################################
- # Mixin for creating easily cloned objects.
- #
- module Cloneable
- # Clone an object by making a new object and setting all the instance
- # variables to the same values.
- def dup
- sibling = self.class.new
- instance_variables.each do |ivar|
- value = self.instance_variable_get(ivar)
- new_value = value.clone rescue value
- sibling.instance_variable_set(ivar, new_value)
- end
- sibling.taint if tainted?
- sibling
- end
-
- def clone
- sibling = dup
- sibling.freeze if frozen?
- sibling
- end
- end
-
- ####################################################################
- # TaskAguments manage the arguments passed to a task.
- #
- class TaskArguments
- include Enumerable
-
- attr_reader :names
-
- # Create a TaskArgument object with a list of named arguments
- # (given by :names) and a set of associated values (given by
- # :values). :parent is the parent argument object.
- def initialize(names, values, parent=nil)
- @names = names
- @parent = parent
- @hash = {}
- names.each_with_index { |name, i|
- @hash[name.to_sym] = values[i] unless values[i].nil?
- }
- end
-
- # Create a new argument scope using the prerequisite argument
- # names.
- def new_scope(names)
- values = names.collect { |n| self[n] }
- self.class.new(names, values, self)
- end
-
- # Find an argument value by name or index.
- def [](index)
- lookup(index.to_sym)
- end
-
- # Specify a hash of default values for task arguments. Use the
- # defaults only if there is no specific value for the given
- # argument.
- def with_defaults(defaults)
- @hash = defaults.merge(@hash)
- end
-
- def each(&block)
- @hash.each(&block)
- end
-
- def method_missing(sym, *args, &block)
- lookup(sym.to_sym)
- end
-
- def to_hash
- @hash
- end
-
- def to_s
- @hash.inspect
- end
-
- def inspect
- to_s
- end
-
- protected
-
- def lookup(name)
- if @hash.has_key?(name)
- @hash[name]
- elsif ENV.has_key?(name.to_s)
- ENV[name.to_s]
- elsif ENV.has_key?(name.to_s.upcase)
- ENV[name.to_s.upcase]
- elsif @parent
- @parent.lookup(name)
- end
- end
- end
-
- EMPTY_TASK_ARGS = TaskArguments.new([], [])
-
- ####################################################################
- # InvocationChain tracks the chain of task invocations to detect
- # circular dependencies.
- class InvocationChain
- def initialize(value, tail)
- @value = value
- @tail = tail
- end
-
- def member?(obj)
- @value == obj || @tail.member?(obj)
- end
-
- def append(value)
- if member?(value)
- fail RuntimeError, "Circular dependency detected: #{to_s} => #{value}"
- end
- self.class.new(value, self)
- end
-
- def to_s
- "#{prefix}#{@value}"
- end
-
- def self.append(value, chain)
- chain.append(value)
- end
-
- private
-
- def prefix
- "#{@tail.to_s} => "
- end
-
- class EmptyInvocationChain
- def member?(obj)
- false
- end
- def append(value)
- InvocationChain.new(value, self)
- end
- def to_s
- "TOP"
- end
- end
-
- EMPTY = EmptyInvocationChain.new
-
- end # class InvocationChain
-
-end # module Rake
-
-module Rake
-
- # #########################################################################
- # A Task is the basic unit of work in a Rakefile. Tasks have associated
- # actions (possibly more than one) and a list of prerequisites. When
- # invoked, a task will first ensure that all of its prerequisites have an
- # opportunity to run and then it will execute its own actions.
- #
- # Tasks are not usually created directly using the new method, but rather
- # use the +file+ and +task+ convenience methods.
- #
- class Task
- # List of prerequisites for a task.
- attr_reader :prerequisites
-
- # List of actions attached to a task.
- attr_reader :actions
-
- # Application owning this task.
- attr_accessor :application
-
- # Comment for this task. Restricted to a single line of no more than 50
- # characters.
- attr_reader :comment
-
- # Full text of the (possibly multi-line) comment.
- attr_reader :full_comment
-
- # Array of nested namespaces names used for task lookup by this task.
- attr_reader :scope
-
- # Return task name
- def to_s
- name
- end
-
- def inspect
- "<#{self.class} #{name} => [#{prerequisites.join(', ')}]>"
- end
-
- # List of sources for task.
- attr_writer :sources
- def sources
- @sources ||= []
- end
-
- # First source from a rule (nil if no sources)
- def source
- @sources.first if defined?(@sources)
- end
-
- # Create a task named +task_name+ with no actions or prerequisites. Use
- # +enhance+ to add actions and prerequisites.
- def initialize(task_name, app)
- @name = task_name.to_s
- @prerequisites = []
- @actions = []
- @already_invoked = false
- @full_comment = nil
- @comment = nil
- @lock = Monitor.new
- @application = app
- @scope = app.current_scope
- @arg_names = nil
- end
-
- # Enhance a task with prerequisites or actions. Returns self.
- def enhance(deps=nil, &block)
- @prerequisites |= deps if deps
- @actions << block if block_given?
- self
- end
-
- # Name of the task, including any namespace qualifiers.
- def name
- @name.to_s
- end
-
- # Name of task with argument list description.
- def name_with_args # :nodoc:
- if arg_description
- "#{name}#{arg_description}"
- else
- name
- end
- end
-
- # Argument description (nil if none).
- def arg_description # :nodoc:
- @arg_names ? "[#{(arg_names || []).join(',')}]" : nil
- end
-
- # Name of arguments for this task.
- def arg_names
- @arg_names || []
- end
-
- # Reenable the task, allowing its tasks to be executed if the task
- # is invoked again.
- def reenable
- @already_invoked = false
- end
-
- # Clear the existing prerequisites and actions of a rake task.
- def clear
- clear_prerequisites
- clear_actions
- self
- end
-
- # Clear the existing prerequisites of a rake task.
- def clear_prerequisites
- prerequisites.clear
- self
- end
-
- # Clear the existing actions on a rake task.
- def clear_actions
- actions.clear
- self
- end
-
- # Invoke the task if it is needed. Prerequites are invoked first.
- def invoke(*args)
- task_args = TaskArguments.new(arg_names, args)
- invoke_with_call_chain(task_args, InvocationChain::EMPTY)
- end
-
- # Same as invoke, but explicitly pass a call chain to detect
- # circular dependencies.
- def invoke_with_call_chain(task_args, invocation_chain) # :nodoc:
- new_chain = InvocationChain.append(self, invocation_chain)
- @lock.synchronize do
- if application.options.trace
- puts "** Invoke #{name} #{format_trace_flags}"
- end
- return if @already_invoked
- @already_invoked = true
- invoke_prerequisites(task_args, new_chain)
- execute(task_args) if needed?
- end
- end
- protected :invoke_with_call_chain
-
- # Invoke all the prerequisites of a task.
- def invoke_prerequisites(task_args, invocation_chain) # :nodoc:
- @prerequisites.each { |n|
- prereq = application[n, @scope]
- prereq_args = task_args.new_scope(prereq.arg_names)
- prereq.invoke_with_call_chain(prereq_args, invocation_chain)
- }
- end
-
- # Format the trace flags for display.
- def format_trace_flags
- flags = []
- flags << "first_time" unless @already_invoked
- flags << "not_needed" unless needed?
- flags.empty? ? "" : "(" + flags.join(", ") + ")"
- end
- private :format_trace_flags
-
- # Execute the actions associated with this task.
- def execute(args=nil)
- args ||= EMPTY_TASK_ARGS
- if application.options.dryrun
- puts "** Execute (dry run) #{name}"
- return
- end
- if application.options.trace
- puts "** Execute #{name}"
- end
- application.enhance_with_matching_rule(name) if @actions.empty?
- @actions.each do |act|
- case act.arity
- when 1
- act.call(self)
- else
- act.call(self, args)
- end
- end
- end
-
- # Is this task needed?
- def needed?
- true
- end
-
- # Timestamp for this task. Basic tasks return the current time for their
- # time stamp. Other tasks can be more sophisticated.
- def timestamp
- @prerequisites.collect { |p| application[p].timestamp }.max || Time.now
- end
-
- # Add a description to the task. The description can consist of an option
- # argument list (enclosed brackets) and an optional comment.
- def add_description(description)
- return if ! description
- comment = description.strip
- add_comment(comment) if comment && ! comment.empty?
- end
-
- # Writing to the comment attribute is the same as adding a description.
- def comment=(description)
- add_description(description)
- end
-
- # Add a comment to the task. If a comment alread exists, separate
- # the new comment with " / ".
- def add_comment(comment)
- if @full_comment
- @full_comment << " / "
- else
- @full_comment = ''
- end
- @full_comment << comment
- if @full_comment =~ /\A([^.]+?\.)( |$)/
- @comment = $1
- else
- @comment = @full_comment
- end
- end
- private :add_comment
-
- # Set the names of the arguments for this task. +args+ should be
- # an array of symbols, one for each argument name.
- def set_arg_names(args)
- @arg_names = args.map { |a| a.to_sym }
- end
-
- # Return a string describing the internal state of a task. Useful for
- # debugging.
- def investigation
- result = "------------------------------\n"
- result << "Investigating #{name}\n"
- result << "class: #{self.class}\n"
- result << "task needed: #{needed?}\n"
- result << "timestamp: #{timestamp}\n"
- result << "pre-requisites: \n"
- prereqs = @prerequisites.collect {|name| application[name]}
- prereqs.sort! {|a,b| a.timestamp <=> b.timestamp}
- prereqs.each do |p|
- result << "--#{p.name} (#{p.timestamp})\n"
- end
- latest_prereq = @prerequisites.collect{|n| application[n].timestamp}.max
- result << "latest-prerequisite time: #{latest_prereq}\n"
- result << "................................\n\n"
- return result
- end
-
- # ----------------------------------------------------------------
- # Rake Module Methods
- #
- class << self
-
- # Clear the task list. This cause rake to immediately forget all the
- # tasks that have been assigned. (Normally used in the unit tests.)
- def clear
- Rake.application.clear
- end
-
- # List of all defined tasks.
- def tasks
- Rake.application.tasks
- end
-
- # Return a task with the given name. If the task is not currently
- # known, try to synthesize one from the defined rules. If no rules are
- # found, but an existing file matches the task name, assume it is a file
- # task with no dependencies or actions.
- def [](task_name)
- Rake.application[task_name]
- end
-
- # TRUE if the task name is already defined.
- def task_defined?(task_name)
- Rake.application.lookup(task_name) != nil
- end
-
- # Define a task given +args+ and an option block. If a rule with the
- # given name already exists, the prerequisites and actions are added to
- # the existing task. Returns the defined task.
- def define_task(*args, &block)
- Rake.application.define_task(self, *args, &block)
- end
-
- # Define a rule for synthesizing tasks.
- def create_rule(*args, &block)
- Rake.application.create_rule(*args, &block)
- end
-
- # Apply the scope to the task name according to the rules for
- # this kind of task. Generic tasks will accept the scope as
- # part of the name.
- def scope_name(scope, task_name)
- (scope + [task_name]).join(':')
- end
-
- end # class << Rake::Task
- end # class Rake::Task
-
-
- # #########################################################################
- # A FileTask is a task that includes time based dependencies. If any of a
- # FileTask's prerequisites have a timestamp that is later than the file
- # represented by this task, then the file must be rebuilt (using the
- # supplied actions).
- #
- class FileTask < Task
-
- # Is this file task needed? Yes if it doesn't exist, or if its time stamp
- # is out of date.
- def needed?
- ! File.exist?(name) || out_of_date?(timestamp)
- end
-
- # Time stamp for file task.
- def timestamp
- if File.exist?(name)
- File.mtime(name.to_s)
- else
- Rake::EARLY
- end
- end
-
- private
-
- # Are there any prerequisites with a later time than the given time stamp?
- def out_of_date?(stamp)
- @prerequisites.any? { |n| application[n].timestamp > stamp}
- end
-
- # ----------------------------------------------------------------
- # Task class methods.
- #
- class << self
- # Apply the scope to the task name according to the rules for this kind
- # of task. File based tasks ignore the scope when creating the name.
- def scope_name(scope, task_name)
- task_name
- end
- end
- end # class Rake::FileTask
-
- # #########################################################################
- # A FileCreationTask is a file task that when used as a dependency will be
- # needed if and only if the file has not been created. Once created, it is
- # not re-triggered if any of its dependencies are newer, nor does trigger
- # any rebuilds of tasks that depend on it whenever it is updated.
- #
- class FileCreationTask < FileTask
- # Is this file task needed? Yes if it doesn't exist.
- def needed?
- ! File.exist?(name)
- end
-
- # Time stamp for file creation task. This time stamp is earlier
- # than any other time stamp.
- def timestamp
- Rake::EARLY
- end
- end
-
- # #########################################################################
- # Same as a regular task, but the immediate prerequisites are done in
- # parallel using Ruby threads.
- #
- class MultiTask < Task
- private
- def invoke_prerequisites(args, invocation_chain)
- threads = @prerequisites.collect { |p|
- Thread.new(p) { |r| application[r].invoke_with_call_chain(args, invocation_chain) }
- }
- threads.each { |t| t.join }
- end
- end
-end # module Rake
-
-# ###########################################################################
-# Task Definition Functions ...
-
-# Declare a basic task.
-#
-# Example:
-# task :clobber => [:clean] do
-# rm_rf "html"
-# end
-#
-def task(*args, &block)
- Rake::Task.define_task(*args, &block)
-end
-
-
-# Declare a file task.
-#
-# Example:
-# file "config.cfg" => ["config.template"] do
-# open("config.cfg", "w") do |outfile|
-# open("config.template") do |infile|
-# while line = infile.gets
-# outfile.puts line
-# end
-# end
-# end
-# end
-#
-def file(*args, &block)
- Rake::FileTask.define_task(*args, &block)
-end
-
-# Declare a file creation task.
-# (Mainly used for the directory command).
-def file_create(args, &block)
- Rake::FileCreationTask.define_task(args, &block)
-end
-
-# Declare a set of files tasks to create the given directories on demand.
-#
-# Example:
-# directory "testdata/doc"
-#
-def directory(dir)
- Rake.each_dir_parent(dir) do |d|
- file_create d do |t|
- mkdir_p t.name if ! File.exist?(t.name)
- end
- end
-end
-
-# Declare a task that performs its prerequisites in parallel. Multitasks does
-# *not* guarantee that its prerequisites will execute in any given order
-# (which is obvious when you think about it)
-#
-# Example:
-# multitask :deploy => [:deploy_gem, :deploy_rdoc]
-#
-def multitask(args, &block)
- Rake::MultiTask.define_task(args, &block)
-end
-
-# Create a new rake namespace and use it for evaluating the given block.
-# Returns a NameSpace object that can be used to lookup tasks defined in the
-# namespace.
-#
-# E.g.
-#
-# ns = namespace "nested" do
-# task :run
-# end
-# task_run = ns[:run] # find :run in the given namespace.
-#
-def namespace(name=nil, &block)
- Rake.application.in_namespace(name, &block)
-end
-
-# Declare a rule for auto-tasks.
-#
-# Example:
-# rule '.o' => '.c' do |t|
-# sh %{cc -o #{t.name} #{t.source}}
-# end
-#
-def rule(*args, &block)
- Rake::Task.create_rule(*args, &block)
-end
-
-# Describe the next rake task.
-#
-# Example:
-# desc "Run the Unit Tests"
-# task :test => [:build]
-# runtests
-# end
-#
-def desc(description)
- Rake.application.last_description = description
-end
-
-# Import the partial Rakefiles +fn+. Imported files are loaded _after_ the
-# current file is completely loaded. This allows the import statement to
-# appear anywhere in the importing file, and yet allowing the imported files
-# to depend on objects defined in the importing file.
-#
-# A common use of the import statement is to include files containing
-# dependency declarations.
-#
-# See also the --rakelibdir command line option.
-#
-# Example:
-# import ".depend", "my_rules"
-#
-def import(*fns)
- fns.each do |fn|
- Rake.application.add_import(fn)
- end
-end
-
-# ###########################################################################
-# This a FileUtils extension that defines several additional commands to be
-# added to the FileUtils utility functions.
-#
-module FileUtils
- RUBY = File.join(RbConfig::CONFIG['bindir'], RbConfig::CONFIG['ruby_install_name']).
- sub(/.*\s.*/m, '"\&"')
-
- OPT_TABLE['sh'] = %w(noop verbose)
- OPT_TABLE['ruby'] = %w(noop verbose)
-
- # Run the system command +cmd+. If multiple arguments are given the command
- # is not run with the shell (same semantics as Kernel::exec and
- # Kernel::system).
- #
- # Example:
- # sh %{ls -ltr}
- #
- # sh 'ls', 'file with spaces'
- #
- # # check exit status after command runs
- # sh %{grep pattern file} do |ok, res|
- # if ! ok
- # puts "pattern not found (status = #{res.exitstatus})"
- # end
- # end
- #
- def sh(*cmd, &block)
- options = (Hash === cmd.last) ? cmd.pop : {}
- unless block_given?
- show_command = cmd.join(" ")
- show_command = show_command[0,42] + "..."
- # TODO code application logic heref show_command.length > 45
- block = lambda { |ok, status|
- ok or fail "Command failed with status (#{status.exitstatus}): [#{show_command}]"
- }
- end
- if RakeFileUtils.verbose_flag == :default
- options[:verbose] = true
- else
- options[:verbose] ||= RakeFileUtils.verbose_flag
- end
- options[:noop] ||= RakeFileUtils.nowrite_flag
- rake_check_options options, :noop, :verbose
- rake_output_message cmd.join(" ") if options[:verbose]
- unless options[:noop]
- res = rake_system(*cmd)
- block.call(res, $?)
- end
- end
-
- def rake_system(*cmd)
- system(*cmd)
- end
- private :rake_system
-
- # Run a Ruby interpreter with the given arguments.
- #
- # Example:
- # ruby %{-pe '$_.upcase!' <README}
- #
- def ruby(*args,&block)
- options = (Hash === args.last) ? args.pop : {}
- if args.length > 1 then
- sh(*([RUBY] + args + [options]), &block)
- else
- sh("#{RUBY} #{args.first}", options, &block)
- end
- end
-
- LN_SUPPORTED = [true]
-
- # Attempt to do a normal file link, but fall back to a copy if the link
- # fails.
- def safe_ln(*args)
- unless LN_SUPPORTED[0]
- cp(*args)
- else
- begin
- ln(*args)
- rescue StandardError, NotImplementedError => ex
- LN_SUPPORTED[0] = false
- cp(*args)
- end
- end
- end
-
- # Split a file path into individual directory names.
- #
- # Example:
- # split_all("a/b/c") => ['a', 'b', 'c']
- #
- def split_all(path)
- head, tail = File.split(path)
- return [tail] if head == '.' || tail == '/'
- return [head, tail] if head == '/'
- return split_all(head) + [tail]
- end
-end
-
-# ###########################################################################
-# RakeFileUtils provides a custom version of the FileUtils methods that
-# respond to the <tt>verbose</tt> and <tt>nowrite</tt> commands.
-#
-module RakeFileUtils
- include FileUtils
-
- class << self
- attr_accessor :verbose_flag, :nowrite_flag
- end
- RakeFileUtils.verbose_flag = :default
- RakeFileUtils.nowrite_flag = false
-
- $fileutils_verbose = true
- $fileutils_nowrite = false
-
- FileUtils::OPT_TABLE.each do |name, opts|
- default_options = []
- if opts.include?(:verbose) || opts.include?("verbose")
- default_options << ':verbose => RakeFileUtils.verbose_flag'
- end
- if opts.include?(:noop) || opts.include?("noop")
- default_options << ':noop => RakeFileUtils.nowrite_flag'
- end
-
- next if default_options.empty?
- module_eval(<<-EOS, __FILE__, __LINE__ + 1)
- def #{name}( *args, &block )
- super(
- *rake_merge_option(args,
- #{default_options.join(', ')}
- ), &block)
- end
- EOS
- end
-
- # Get/set the verbose flag controlling output from the FileUtils utilities.
- # If verbose is true, then the utility method is echoed to standard output.
- #
- # Examples:
- # verbose # return the current value of the verbose flag
- # verbose(v) # set the verbose flag to _v_.
- # verbose(v) { code } # Execute code with the verbose flag set temporarily to _v_.
- # # Return to the original value when code is done.
- def verbose(value=nil)
- oldvalue = RakeFileUtils.verbose_flag
- RakeFileUtils.verbose_flag = value unless value.nil?
- if block_given?
- begin
- yield
- ensure
- RakeFileUtils.verbose_flag = oldvalue
- end
- end
- RakeFileUtils.verbose_flag
- end
-
- # Get/set the nowrite flag controlling output from the FileUtils utilities.
- # If verbose is true, then the utility method is echoed to standard output.
- #
- # Examples:
- # nowrite # return the current value of the nowrite flag
- # nowrite(v) # set the nowrite flag to _v_.
- # nowrite(v) { code } # Execute code with the nowrite flag set temporarily to _v_.
- # # Return to the original value when code is done.
- def nowrite(value=nil)
- oldvalue = RakeFileUtils.nowrite_flag
- RakeFileUtils.nowrite_flag = value unless value.nil?
- if block_given?
- begin
- yield
- ensure
- RakeFileUtils.nowrite_flag = oldvalue
- end
- end
- oldvalue
- end
-
- # Use this function to prevent protentially destructive ruby code from
- # running when the :nowrite flag is set.
- #
- # Example:
- #
- # when_writing("Building Project") do
- # project.build
- # end
- #
- # The following code will build the project under normal conditions. If the
- # nowrite(true) flag is set, then the example will print:
- # DRYRUN: Building Project
- # instead of actually building the project.
- #
- def when_writing(msg=nil)
- if RakeFileUtils.nowrite_flag
- puts "DRYRUN: #{msg}" if msg
- else
- yield
- end
- end
-
- # Merge the given options with the default values.
- def rake_merge_option(args, defaults)
- if Hash === args.last
- defaults.update(args.last)
- args.pop
- end
- args.push defaults
- args
- end
- private :rake_merge_option
-
- # Send the message to the default rake output (which is $stderr).
- def rake_output_message(message)
- $stderr.puts(message)
- end
- private :rake_output_message
-
- # Check that the options do not contain options not listed in +optdecl+. An
- # ArgumentError exception is thrown if non-declared options are found.
- def rake_check_options(options, *optdecl)
- h = options.dup
- optdecl.each do |name|
- h.delete name
- end
- raise ArgumentError, "no such option: #{h.keys.join(' ')}" unless h.empty?
- end
- private :rake_check_options
-
- extend self
-end
-
-# ###########################################################################
-# Include the FileUtils file manipulation functions in the top level module,
-# but mark them private so that they don't unintentionally define methods on
-# other objects.
-
-include RakeFileUtils
-private(*FileUtils.instance_methods(false))
-private(*RakeFileUtils.instance_methods(false))
-
-######################################################################
-module Rake
-
- # #########################################################################
- # A FileList is essentially an array with a few helper methods defined to
- # make file manipulation a bit easier.
- #
- # FileLists are lazy. When given a list of glob patterns for possible files
- # to be included in the file list, instead of searching the file structures
- # to find the files, a FileList holds the pattern for latter use.
- #
- # This allows us to define a number of FileList to match any number of
- # files, but only search out the actual files when then FileList itself is
- # actually used. The key is that the first time an element of the
- # FileList/Array is requested, the pending patterns are resolved into a real
- # list of file names.
- #
- class FileList
-
- include Cloneable
-
- # == Method Delegation
- #
- # The lazy evaluation magic of FileLists happens by implementing all the
- # array specific methods to call +resolve+ before delegating the heavy
- # lifting to an embedded array object (@items).
- #
- # In addition, there are two kinds of delegation calls. The regular kind
- # delegates to the @items array and returns the result directly. Well,
- # almost directly. It checks if the returned value is the @items object
- # itself, and if so will return the FileList object instead.
- #
- # The second kind of delegation call is used in methods that normally
- # return a new Array object. We want to capture the return value of these
- # methods and wrap them in a new FileList object. We enumerate these
- # methods in the +SPECIAL_RETURN+ list below.
-
- # List of array methods (that are not in +Object+) that need to be
- # delegated.
- ARRAY_METHODS = (Array.instance_methods - Object.instance_methods).map { |n| n.to_s }
-
- # List of additional methods that must be delegated.
- MUST_DEFINE = %w[to_a inspect]
-
- # List of methods that should not be delegated here (we define special
- # versions of them explicitly below).
- MUST_NOT_DEFINE = %w[to_a to_ary partition *]
-
- # List of delegated methods that return new array values which need
- # wrapping.
- SPECIAL_RETURN = %w[
- map collect sort sort_by select find_all reject grep
- compact flatten uniq values_at
- + - & |
- ]
-
- DELEGATING_METHODS = (ARRAY_METHODS + MUST_DEFINE - MUST_NOT_DEFINE).collect{ |s| s.to_s }.sort.uniq
-
- # Now do the delegation.
- DELEGATING_METHODS.each_with_index do |sym, i|
- if SPECIAL_RETURN.include?(sym)
- class_eval <<-END, __FILE__, __LINE__+1
- def #{sym}(*args, &block)
- resolve
- result = @items.send(:#{sym}, *args, &block)
- FileList.new.import(result)
- end
- END
- else
- class_eval <<-END, __FILE__, __LINE__+1
- def #{sym}(*args, &block)
- resolve
- result = @items.send(:#{sym}, *args, &block)
- result.object_id == @items.object_id ? self : result
- end
- END
- end
- end
-
- # Create a file list from the globbable patterns given. If you wish to
- # perform multiple includes or excludes at object build time, use the
- # "yield self" pattern.
- #
- # Example:
- # file_list = FileList.new('lib/**/*.rb', 'test/test*.rb')
- #
- # pkg_files = FileList.new('lib/**/*') do |fl|
- # fl.exclude(/\bCVS\b/)
- # end
- #
- def initialize(*patterns)
- @pending_add = []
- @pending = false
- @exclude_patterns = DEFAULT_IGNORE_PATTERNS.dup
- @exclude_procs = DEFAULT_IGNORE_PROCS.dup
- @exclude_re = nil
- @items = []
- patterns.each { |pattern| include(pattern) }
- yield self if block_given?
- end
-
- # Add file names defined by glob patterns to the file list. If an array
- # is given, add each element of the array.
- #
- # Example:
- # file_list.include("*.java", "*.cfg")
- # file_list.include %w( math.c lib.h *.o )
- #
- def include(*filenames)
- # TODO: check for pending
- filenames.each do |fn|
- if fn.respond_to? :to_ary
- include(*fn.to_ary)
- else
- @pending_add << fn
- end
- end
- @pending = true
- self
- end
- alias :add :include
-
- # Register a list of file name patterns that should be excluded from the
- # list. Patterns may be regular expressions, glob patterns or regular
- # strings. In addition, a block given to exclude will remove entries that
- # return true when given to the block.
- #
- # Note that glob patterns are expanded against the file system. If a file
- # is explicitly added to a file list, but does not exist in the file
- # system, then an glob pattern in the exclude list will not exclude the
- # file.
- #
- # Examples:
- # FileList['a.c', 'b.c'].exclude("a.c") => ['b.c']
- # FileList['a.c', 'b.c'].exclude(/^a/) => ['b.c']
- #
- # If "a.c" is a file, then ...
- # FileList['a.c', 'b.c'].exclude("a.*") => ['b.c']
- #
- # If "a.c" is not a file, then ...
- # FileList['a.c', 'b.c'].exclude("a.*") => ['a.c', 'b.c']
- #
- def exclude(*patterns, &block)
- patterns.each do |pat|
- @exclude_patterns << pat
- end
- if block_given?
- @exclude_procs << block
- end
- resolve_exclude if ! @pending
- self
- end
-
-
- # Clear all the exclude patterns so that we exclude nothing.
- def clear_exclude
- @exclude_patterns = []
- @exclude_procs = []
- calculate_exclude_regexp if ! @pending
- self
- end
-
- # Define equality.
- def ==(array)
- to_ary == array
- end
-
- # Return the internal array object.
- def to_a
- resolve
- @items
- end
-
- # Return the internal array object.
- def to_ary
- to_a
- end
-
- # Lie about our class.
- def is_a?(klass)
- klass == Array || super(klass)
- end
- alias kind_of? is_a?
-
- # Redefine * to return either a string or a new file list.
- def *(other)
- result = @items * other
- case result
- when Array
- FileList.new.import(result)
- else
- result
- end
- end
-
- # Resolve all the pending adds now.
- def resolve
- if @pending
- @pending = false
- @pending_add.each do |fn| resolve_add(fn) end
- @pending_add = []
- resolve_exclude
- end
- self
- end
-
- def calculate_exclude_regexp
- ignores = []
- @exclude_patterns.each do |pat|
- case pat
- when Regexp
- ignores << pat
- when /[*?]/
- Dir[pat].each do |p| ignores << p end
- else
- ignores << Regexp.quote(pat)
- end
- end
- if ignores.empty?
- @exclude_re = /^$/
- else
- re_str = ignores.collect { |p| "(" + p.to_s + ")" }.join("|")
- @exclude_re = Regexp.new(re_str)
- end
- end
-
- def resolve_add(fn)
- case fn
- when %r{[*?\[\{]}
- add_matching(fn)
- else
- self << fn
- end
- end
- private :resolve_add
+require 'rake/ext/module'
+require 'rake/ext/string'
+require 'rake/ext/time'
- def resolve_exclude
- calculate_exclude_regexp
- reject! { |fn| exclude?(fn) }
- self
- end
- private :resolve_exclude
-
- # Return a new FileList with the results of running +sub+ against each
- # element of the oringal list.
- #
- # Example:
- # FileList['a.c', 'b.c'].sub(/\.c$/, '.o') => ['a.o', 'b.o']
- #
- def sub(pat, rep)
- inject(FileList.new) { |res, fn| res << fn.sub(pat,rep) }
- end
-
- # Return a new FileList with the results of running +gsub+ against each
- # element of the original list.
- #
- # Example:
- # FileList['lib/test/file', 'x/y'].gsub(/\//, "\\")
- # => ['lib\\test\\file', 'x\\y']
- #
- def gsub(pat, rep)
- inject(FileList.new) { |res, fn| res << fn.gsub(pat,rep) }
- end
-
- # Same as +sub+ except that the oringal file list is modified.
- def sub!(pat, rep)
- each_with_index { |fn, i| self[i] = fn.sub(pat,rep) }
- self
- end
-
- # Same as +gsub+ except that the original file list is modified.
- def gsub!(pat, rep)
- each_with_index { |fn, i| self[i] = fn.gsub(pat,rep) }
- self
- end
-
- # Apply the pathmap spec to each of the included file names, returning a
- # new file list with the modified paths. (See String#pathmap for
- # details.)
- def pathmap(spec=nil)
- collect { |fn| fn.pathmap(spec) }
- end
-
- # Return a new file list with <tt>String#ext</tt> method applied
- # to each member of the array.
- #
- # This method is a shortcut for:
- #
- # array.collect { |item| item.ext(newext) }
- #
- # +ext+ is a user added method for the Array class.
- def ext(newext='')
- collect { |fn| fn.ext(newext) }
- end
-
-
- # Grep each of the files in the filelist using the given pattern. If a
- # block is given, call the block on each matching line, passing the file
- # name, line number, and the matching line of text. If no block is given,
- # a standard emac style file:linenumber:line message will be printed to
- # standard out.
- def egrep(pattern, *opt)
- each do |fn|
- open(fn, "rb", *opt) do |inf|
- count = 0
- inf.each do |line|
- count += 1
- if pattern.match(line)
- if block_given?
- yield fn, count, line
- else
- puts "#{fn}:#{count}:#{line}"
- end
- end
- end
- end
- end
- end
-
- # Return a new file list that only contains file names from the current
- # file list that exist on the file system.
- def existing
- select { |fn| File.exist?(fn) }
- end
-
- # Modify the current file list so that it contains only file name that
- # exist on the file system.
- def existing!
- resolve
- @items = @items.select { |fn| File.exist?(fn) }
- self
- end
-
- # FileList version of partition. Needed because the nested arrays should
- # be FileLists in this version.
- def partition(&block) # :nodoc:
- resolve
- result = @items.partition(&block)
- [
- FileList.new.import(result[0]),
- FileList.new.import(result[1]),
- ]
- end
-
- # Convert a FileList to a string by joining all elements with a space.
- def to_s
- resolve
- self.join(' ')
- end
-
- # Add matching glob patterns.
- def add_matching(pattern)
- Dir[pattern].each do |fn|
- self << fn unless exclude?(fn)
- end
- end
- private :add_matching
-
- # Should the given file name be excluded?
- def exclude?(fn)
- calculate_exclude_regexp unless @exclude_re
- fn =~ @exclude_re || @exclude_procs.any? { |p| p.call(fn) }
- end
-
- DEFAULT_IGNORE_PATTERNS = [
- /(^|[\/\\])CVS([\/\\]|$)/,
- /(^|[\/\\])\.svn([\/\\]|$)/,
- /\.bak$/,
- /~$/
- ]
- DEFAULT_IGNORE_PROCS = [
- proc { |fn| fn =~ /(^|[\/\\])core$/ && ! File.directory?(fn) }
- ]
-# @exclude_patterns = DEFAULT_IGNORE_PATTERNS.dup
-
- def import(array)
- @items = array
- self
- end
-
- class << self
- # Create a new file list including the files listed. Similar to:
- #
- # FileList.new(*args)
- def [](*args)
- new(*args)
- end
- end
- end # FileList
-end
-
-module Rake
- class << self
+require 'rake/win32'
- # Yield each file or directory component.
- def each_dir_parent(dir) # :nodoc:
- old_length = nil
- while dir != '.' && dir.length != old_length
- yield(dir)
- old_length = dir.length
- dir = File.dirname(dir)
- end
- end
- end
-end # module Rake
+require 'rake/task_argument_error'
+require 'rake/rule_recursion_overflow_error'
+require 'rake/rake_module'
+require 'rake/pseudo_status'
+require 'rake/task_arguments'
+require 'rake/invocation_chain'
+require 'rake/task'
+require 'rake/file_task'
+require 'rake/file_creation_task'
+require 'rake/multi_task'
+require 'rake/dsl_definition'
+require 'rake/file_utils_ext'
+require 'rake/file_list'
+require 'rake/default_loader'
+require 'rake/early_time'
+require 'rake/name_space'
+require 'rake/task_manager'
+require 'rake/application'
+
+$trace = false
+
+# :stopdoc:
+#
+# Some top level Constants.
-# Alias FileList to be available at the top level.
FileList = Rake::FileList
-
-# ###########################################################################
-module Rake
-
- # Default Rakefile loader used by +import+.
- class DefaultLoader
- def load(fn)
- Kernel.load(File.expand_path(fn))
- end
- end
-
- # EarlyTime is a fake timestamp that occurs _before_ any other time value.
- class EarlyTime
- include Comparable
- include Singleton
-
- def <=>(other)
- -1
- end
-
- def to_s
- "<EARLY TIME>"
- end
- end
-
- EARLY = EarlyTime.instance
-end # module Rake
-
-# ###########################################################################
-# Extensions to time to allow comparisons with an early time class.
-#
-class Time
- alias rake_original_time_compare :<=>
- def <=>(other)
- if Rake::EarlyTime === other
- - other.<=>(self)
- else
- rake_original_time_compare(other)
- end
- end
-end # class Time
-
-module Rake
-
- ####################################################################
- # The NameSpace class will lookup task names in the the scope
- # defined by a +namespace+ command.
- #
- class NameSpace
-
- # Create a namespace lookup object using the given task manager
- # and the list of scopes.
- def initialize(task_manager, scope_list)
- @task_manager = task_manager
- @scope = scope_list.dup
- end
-
- # Lookup a task named +name+ in the namespace.
- def [](name)
- @task_manager.lookup(name, @scope)
- end
-
- # Return the list of tasks defined in this and nested namespaces.
- def tasks
- @task_manager.tasks_in_scope(@scope)
- end
- end # NameSpace
-
-
- ####################################################################
- # The TaskManager module is a mixin for managing tasks.
- module TaskManager
- # Track the last comment made in the Rakefile.
- attr_accessor :last_description
- alias :last_comment :last_description # Backwards compatibility
-
- def initialize
- super
- @tasks = Hash.new
- @rules = Array.new
- @scope = Array.new
- @last_description = nil
- end
-
- def create_rule(*args, &block)
- pattern, arg_names, deps = resolve_args(args)
- pattern = Regexp.new(Regexp.quote(pattern) + '$') if String === pattern
- @rules << [pattern, deps, block]
- end
-
- def define_task(task_class, *args, &block)
- task_name, arg_names, deps = resolve_args(args)
- task_name = task_class.scope_name(@scope, task_name)
- deps = [deps] unless deps.respond_to?(:to_ary)
- deps = deps.collect {|d| d.to_s }
- task = intern(task_class, task_name)
- task.set_arg_names(arg_names) unless arg_names.empty?
- task.add_description(@last_description)
- @last_description = nil
- task.enhance(deps, &block)
- task
- end
-
- # Lookup a task. Return an existing task if found, otherwise
- # create a task of the current type.
- def intern(task_class, task_name)
- @tasks[task_name.to_s] ||= task_class.new(task_name, self)
- end
-
- # Find a matching task for +task_name+.
- def [](task_name, scopes=nil)
- task_name = task_name.to_s
- self.lookup(task_name, scopes) or
- enhance_with_matching_rule(task_name) or
- synthesize_file_task(task_name) or
- fail "Don't know how to build task '#{task_name}'"
- end
-
- def synthesize_file_task(task_name)
- return nil unless File.exist?(task_name)
- define_task(Rake::FileTask, task_name)
- end
-
- # Resolve the arguments for a task/rule. Returns a triplet of
- # [task_name, arg_name_list, prerequisites].
- def resolve_args(args)
- if args.last.is_a?(Hash)
- deps = args.pop
- resolve_args_with_dependencies(args, deps)
- else
- resolve_args_without_dependencies(args)
- end
- end
-
- # Resolve task arguments for a task or rule when there are no
- # dependencies declared.
- #
- # The patterns recognized by this argument resolving function are:
- #
- # task :t
- # task :t, [:a]
- # task :t, :a (deprecated)
- #
- def resolve_args_without_dependencies(args)
- task_name = args.shift
- if args.size == 1 && args.first.respond_to?(:to_ary)
- arg_names = args.first.to_ary
- else
- arg_names = args
- end
- [task_name, arg_names, []]
- end
- private :resolve_args_without_dependencies
-
- # Resolve task arguments for a task or rule when there are
- # dependencies declared.
- #
- # The patterns recognized by this argument resolving function are:
- #
- # task :t => [:d]
- # task :t, [a] => [:d]
- # task :t, :needs => [:d] (deprecated)
- # task :t, :a, :needs => [:d] (deprecated)
- #
- def resolve_args_with_dependencies(args, hash) # :nodoc:
- fail "Task Argument Error" if hash.size != 1
- key, value = hash.map { |k, v| [k,v] }.first
- if args.empty?
- task_name = key
- arg_names = []
- deps = value
- elsif key == :needs
- task_name = args.shift
- arg_names = args
- deps = value
- else
- task_name = args.shift
- arg_names = key
- deps = value
- end
- deps = [deps] unless deps.respond_to?(:to_ary)
- [task_name, arg_names, deps]
- end
- private :resolve_args_with_dependencies
-
- # If a rule can be found that matches the task name, enhance the
- # task with the prerequisites and actions from the rule. Set the
- # source attribute of the task appropriately for the rule. Return
- # the enhanced task or nil of no rule was found.
- def enhance_with_matching_rule(task_name, level=0)
- fail Rake::RuleRecursionOverflowError,
- "Rule Recursion Too Deep" if level >= 16
- @rules.each do |pattern, extensions, block|
- if md = pattern.match(task_name)
- task = attempt_rule(task_name, extensions, block, level)
- return task if task
- end
- end
- nil
- rescue Rake::RuleRecursionOverflowError => ex
- ex.add_target(task_name)
- fail ex
- end
-
- # List of all defined tasks in this application.
- def tasks
- @tasks.values.sort_by { |t| t.name }
- end
-
- # List of all the tasks defined in the given scope (and its
- # sub-scopes).
- def tasks_in_scope(scope)
- prefix = scope.join(":")
- tasks.select { |t|
- /^#{prefix}:/ =~ t.name
- }
- end
-
- # Clear all tasks in this application.
- def clear
- @tasks.clear
- @rules.clear
- end
-
- # Lookup a task, using scope and the scope hints in the task name.
- # This method performs straight lookups without trying to
- # synthesize file tasks or rules. Special scope names (e.g. '^')
- # are recognized. If no scope argument is supplied, use the
- # current scope. Return nil if the task cannot be found.
- def lookup(task_name, initial_scope=nil)
- initial_scope ||= @scope
- task_name = task_name.to_s
- if task_name =~ /^rake:/
- scopes = []
- task_name = task_name.sub(/^rake:/, '')
- elsif task_name =~ /^(\^+)/
- scopes = initial_scope[0, initial_scope.size - $1.size]
- task_name = task_name.sub(/^(\^+)/, '')
- else
- scopes = initial_scope
- end
- lookup_in_scope(task_name, scopes)
- end
-
- # Lookup the task name
- def lookup_in_scope(name, scope)
- n = scope.size
- while n >= 0
- tn = (scope[0,n] + [name]).join(':')
- task = @tasks[tn]
- return task if task
- n -= 1
- end
- nil
- end
- private :lookup_in_scope
-
- # Return the list of scope names currently active in the task
- # manager.
- def current_scope
- @scope.dup
- end
-
- # Evaluate the block in a nested namespace named +name+. Create
- # an anonymous namespace if +name+ is nil.
- def in_namespace(name)
- name ||= generate_name
- @scope.push(name)
- ns = NameSpace.new(self, @scope)
- yield(ns)
- ns
- ensure
- @scope.pop
- end
-
- private
-
- # Generate an anonymous namespace name.
- def generate_name
- @seed ||= 0
- @seed += 1
- "_anon_#{@seed}"
- end
-
- def trace_rule(level, message)
- puts "#{" "*level}#{message}" if Rake.application.options.trace_rules
- end
-
- # Attempt to create a rule given the list of prerequisites.
- def attempt_rule(task_name, extensions, block, level)
- sources = make_sources(task_name, extensions)
- prereqs = sources.collect { |source|
- trace_rule level, "Attempting Rule #{task_name} => #{source}"
- if File.exist?(source) || Rake::Task.task_defined?(source)
- trace_rule level, "(#{task_name} => #{source} ... EXIST)"
- source
- elsif parent = enhance_with_matching_rule(source, level+1)
- trace_rule level, "(#{task_name} => #{source} ... ENHANCE)"
- parent.name
- else
- trace_rule level, "(#{task_name} => #{source} ... FAIL)"
- return nil
- end
- }
- task = FileTask.define_task({task_name => prereqs}, &block)
- task.sources = prereqs
- task
- end
-
- # Make a list of sources from the list of file name extensions /
- # translation procs.
- def make_sources(task_name, extensions)
- extensions.collect { |ext|
- case ext
- when /%/
- task_name.pathmap(ext)
- when %r{/}
- ext
- when /^\./
- task_name.ext(ext)
- when String
- ext
- when Proc
- if ext.arity == 1
- ext.call(task_name)
- else
- ext.call
- end
- else
- fail "Don't know how to handle rule dependent: #{ext.inspect}"
- end
- }.flatten
- end
-
- end # TaskManager
-
- ######################################################################
- # Rake main application object. When invoking +rake+ from the
- # command line, a Rake::Application object is created and run.
- #
- class Application
- include TaskManager
-
- # The name of the application (typically 'rake')
- attr_reader :name
-
- # The original directory where rake was invoked.
- attr_reader :original_dir
-
- # Name of the actual rakefile used.
- attr_reader :rakefile
-
- # List of the top level task names (task names from the command line).
- attr_reader :top_level_tasks
-
- DEFAULT_RAKEFILES = ['rakefile', 'Rakefile', 'rakefile.rb', 'Rakefile.rb'].freeze
-
- # Initialize a Rake::Application object.
- def initialize
- super
- @name = 'rake'
- @rakefiles = DEFAULT_RAKEFILES.dup
- @rakefile = nil
- @pending_imports = []
- @imported = []
- @loaders = {}
- @default_loader = Rake::DefaultLoader.new
- @original_dir = Dir.pwd
- @top_level_tasks = []
- add_loader('rb', DefaultLoader.new)
- add_loader('rf', DefaultLoader.new)
- add_loader('rake', DefaultLoader.new)
- @tty_output = STDOUT.tty?
- end
-
- # Run the Rake application. The run method performs the following three steps:
- #
- # * Initialize the command line options (+init+).
- # * Define the tasks (+load_rakefile+).
- # * Run the top level tasks (+run_tasks+).
- #
- # If you wish to build a custom rake command, you should call +init+ on your
- # application. The define any tasks. Finally, call +top_level+ to run your top
- # level tasks.
- def run
- standard_exception_handling do
- init
- load_rakefile
- top_level
- end
- end
-
- # Initialize the command line parameters and app name.
- def init(app_name='rake')
- standard_exception_handling do
- @name = app_name
- handle_options
- collect_tasks
- end
- end
-
- # Find the rakefile and then load it and any pending imports.
- def load_rakefile
- standard_exception_handling do
- raw_load_rakefile
- end
- end
-
- # Run the top level tasks of a Rake application.
- def top_level
- standard_exception_handling do
- if options.show_tasks
- display_tasks_and_comments
- elsif options.show_prereqs
- display_prerequisites
- else
- top_level_tasks.each { |task_name| invoke_task(task_name) }
- end
- end
- end
-
- # Add a loader to handle imported files ending in the extension
- # +ext+.
- def add_loader(ext, loader)
- ext = ".#{ext}" unless ext =~ /^\./
- @loaders[ext] = loader
- end
-
- # Application options from the command line
- def options
- @options ||= OpenStruct.new
- end
-
- # private ----------------------------------------------------------------
-
- def invoke_task(task_string)
- name, args = parse_task_string(task_string)
- t = self[name]
- t.invoke(*args)
- end
-
- def parse_task_string(string)
- if string =~ /^([^\[]+)(\[(.*)\])$/
- name = $1
- args = $3.split(/\s*,\s*/)
- else
- name = string
- args = []
- end
- [name, args]
- end
-
- # Provide standard execption handling for the given block.
- def standard_exception_handling
- begin
- yield
- rescue SystemExit => ex
- # Exit silently with current status
- raise
- rescue OptionParser::InvalidOption => ex
- # Exit silently
- exit(false)
- rescue Exception => ex
- # Exit with error message
- $stderr.puts "#{name} aborted!"
- $stderr.puts ex.message
- if options.trace
- $stderr.puts ex.backtrace.join("\n")
- else
- $stderr.puts ex.backtrace.find {|str| str =~ /#{@rakefile}/ } || ""
- $stderr.puts "(See full trace by running task with --trace)"
- end
- exit(false)
- end
- end
-
- # True if one of the files in RAKEFILES is in the current directory.
- # If a match is found, it is copied into @rakefile.
- def have_rakefile
- @rakefiles.each do |fn|
- if File.exist?(fn)
- others = Dir.glob(fn, File::FNM_CASEFOLD)
- return others.size == 1 ? others.first : fn
- elsif fn == ''
- return fn
- end
- end
- return nil
- end
-
- # True if we are outputting to TTY, false otherwise
- def tty_output?
- @tty_output
- end
-
- # Override the detected TTY output state (mostly for testing)
- def tty_output=( tty_output_state )
- @tty_output = tty_output_state
- end
-
- # We will truncate output if we are outputting to a TTY or if we've been
- # given an explicit column width to honor
- def truncate_output?
- tty_output? || ENV['RAKE_COLUMNS']
- end
-
- # Display the tasks and comments.
- def display_tasks_and_comments
- displayable_tasks = tasks.select { |t|
- t.comment && t.name =~ options.show_task_pattern
- }
- if options.full_description
- displayable_tasks.each do |t|
- puts "#{name} #{t.name_with_args}"
- t.full_comment.split("\n").each do |line|
- puts " #{line}"
- end
- puts
- end
- else
- width = displayable_tasks.collect { |t| t.name_with_args.length }.max || 10
- max_column = truncate_output? ? terminal_width - name.size - width - 7 : nil
- displayable_tasks.each do |t|
- printf "#{name} %-#{width}s # %s\n",
- t.name_with_args, max_column ? truncate(t.comment, max_column) : t.comment
- end
- end
- end
-
- def terminal_width
- if ENV['RAKE_COLUMNS']
- result = ENV['RAKE_COLUMNS'].to_i
- else
- result = unix? ? dynamic_width : 80
- end
- (result < 10) ? 80 : result
- rescue
- 80
- end
-
- # Calculate the dynamic width of the
- def dynamic_width
- @dynamic_width ||= (dynamic_width_stty.nonzero? || dynamic_width_tput)
- end
-
- def dynamic_width_stty
- %x{stty size 2>/dev/null}.split[1].to_i
- end
-
- def dynamic_width_tput
- %x{tput cols 2>/dev/null}.to_i
- end
-
- def unix?
- RUBY_PLATFORM =~ /(aix|darwin|linux|(net|free|open)bsd|cygwin|solaris|irix|hpux)/i
- end
-
- def windows?
- Win32.windows?
- end
-
- def truncate(string, width)
- if string.length <= width
- string
- else
- ( string[0, width-3] || "" ) + "..."
- end
- end
-
- # Display the tasks and prerequisites
- def display_prerequisites
- tasks.each do |t|
- puts "#{name} #{t.name}"
- t.prerequisites.each { |pre| puts " #{pre}" }
- end
- end
-
- # A list of all the standard options used in rake, suitable for
- # passing to OptionParser.
- def standard_rake_options
- [
- ['--classic-namespace', '-C', "Put Task and FileTask in the top level namespace",
- lambda { |value|
- require 'rake/classic_namespace'
- options.classic_namespace = true
- }
- ],
- ['--describe', '-D [PATTERN]', "Describe the tasks (matching optional PATTERN), then exit.",
- lambda { |value|
- options.show_tasks = true
- options.full_description = true
- options.show_task_pattern = Regexp.new(value || '')
- }
- ],
- ['--dry-run', '-n', "Do a dry run without executing actions.",
- lambda { |value|
- verbose(true)
- nowrite(true)
- options.dryrun = true
- options.trace = true
- }
- ],
- ['--execute', '-e CODE', "Execute some Ruby code and exit.",
- lambda { |value|
- eval(value)
- exit
- }
- ],
- ['--execute-print', '-p CODE', "Execute some Ruby code, print the result, then exit.",
- lambda { |value|
- puts eval(value)
- exit
- }
- ],
- ['--execute-continue', '-E CODE',
- "Execute some Ruby code, then continue with normal task processing.",
- lambda { |value| eval(value) }
- ],
- ['--libdir', '-I LIBDIR', "Include LIBDIR in the search path for required modules.",
- lambda { |value| $:.push(value) }
- ],
- ['--prereqs', '-P', "Display the tasks and dependencies, then exit.",
- lambda { |value| options.show_prereqs = true }
- ],
- ['--quiet', '-q', "Do not log messages to standard output.",
- lambda { |value| verbose(false) }
- ],
- ['--rakefile', '-f [FILE]', "Use FILE as the rakefile.",
- lambda { |value|
- value ||= ''
- @rakefiles.clear
- @rakefiles << value
- }
- ],
- ['--rakelibdir', '--rakelib', '-R RAKELIBDIR',
- "Auto-import any .rake files in RAKELIBDIR. (default is 'rakelib')",
- lambda { |value| options.rakelib = value.split(':') }
- ],
- ['--require', '-r MODULE', "Require MODULE before executing rakefile.",
- lambda { |value|
- begin
- require value
- rescue LoadError => ex
- begin
- rake_require value
- rescue LoadError => ex2
- raise ex
- end
- end
- }
- ],
- ['--rules', "Trace the rules resolution.",
- lambda { |value| options.trace_rules = true }
- ],
- ['--no-search', '--nosearch', '-N', "Do not search parent directories for the Rakefile.",
- lambda { |value| options.nosearch = true }
- ],
- ['--silent', '-s', "Like --quiet, but also suppresses the 'in directory' announcement.",
- lambda { |value|
- verbose(false)
- options.silent = true
- }
- ],
- ['--system', '-g',
- "Using system wide (global) rakefiles (usually '~/.rake/*.rake').",
- lambda { |value| options.load_system = true }
- ],
- ['--no-system', '--nosystem', '-G',
- "Use standard project Rakefile search paths, ignore system wide rakefiles.",
- lambda { |value| options.ignore_system = true }
- ],
- ['--tasks', '-T [PATTERN]', "Display the tasks (matching optional PATTERN) with descriptions, then exit.",
- lambda { |value|
- options.show_tasks = true
- options.show_task_pattern = Regexp.new(value || '')
- options.full_description = false
- }
- ],
- ['--trace', '-t', "Turn on invoke/execute tracing, enable full backtrace.",
- lambda { |value|
- options.trace = true
- verbose(true)
- }
- ],
- ['--verbose', '-v', "Log message to standard output.",
- lambda { |value| verbose(true) }
- ],
- ['--version', '-V', "Display the program version.",
- lambda { |value|
- puts "rake, version #{RAKEVERSION}"
- exit
- }
- ]
- ]
- end
-
- # Read and handle the command line options.
- def handle_options
- options.rakelib = ['rakelib']
-
- OptionParser.new do |opts|
- opts.banner = "rake [-f rakefile] {options} targets..."
- opts.separator ""
- opts.separator "Options are ..."
-
- opts.on_tail("-h", "--help", "-H", "Display this help message.") do
- puts opts
- exit
- end
-
- standard_rake_options.each { |args| opts.on(*args) }
- end.parse!
-
- # If class namespaces are requested, set the global options
- # according to the values in the options structure.
- if options.classic_namespace
- $show_tasks = options.show_tasks
- $show_prereqs = options.show_prereqs
- $trace = options.trace
- $dryrun = options.dryrun
- $silent = options.silent
- end
- end
-
- # Similar to the regular Ruby +require+ command, but will check
- # for *.rake files in addition to *.rb files.
- def rake_require(file_name, paths=$LOAD_PATH, loaded=$")
- return false if loaded.include?(file_name)
- paths.each do |path|
- fn = file_name + ".rake"
- full_path = File.join(path, fn)
- if File.exist?(full_path)
- load full_path
- loaded << fn
- return true
- end
- end
- fail LoadError, "Can't find #{file_name}"
- end
-
- def find_rakefile_location
- here = Dir.pwd
- while ! (fn = have_rakefile)
- Dir.chdir("..")
- if Dir.pwd == here || options.nosearch
- return nil
- end
- here = Dir.pwd
- end
- [fn, here]
- ensure
- Dir.chdir(Rake.original_dir)
- end
-
- def raw_load_rakefile # :nodoc:
- rakefile, location = find_rakefile_location
- if (! options.ignore_system) &&
- (options.load_system || rakefile.nil?) &&
- system_dir && File.directory?(system_dir)
- puts "(in #{Dir.pwd})" unless options.silent
- glob("#{system_dir}/*.rake") do |name|
- add_import name
- end
- else
- fail "No Rakefile found (looking for: #{@rakefiles.join(', ')})" if
- rakefile.nil?
- @rakefile = rakefile
- Dir.chdir(location)
- puts "(in #{Dir.pwd})" unless options.silent
- $rakefile = @rakefile if options.classic_namespace
- load File.expand_path(@rakefile) if @rakefile && @rakefile != ''
- options.rakelib.each do |rlib|
- glob("#{rlib}/*.rake") do |name|
- add_import name
- end
- end
- end
- load_imports
- end
-
- def glob(path, &block)
- Dir[path.gsub("\\", '/')].each(&block)
- end
- private :glob
-
- # The directory path containing the system wide rakefiles.
- def system_dir
- @system_dir ||=
- begin
- if ENV['RAKE_SYSTEM']
- ENV['RAKE_SYSTEM']
- else
- standard_system_dir
- end
- end
- end
-
- # The standard directory containing system wide rake files.
- if Win32.windows?
- def standard_system_dir #:nodoc:
- Win32.win32_system_dir
- end
- else
- def standard_system_dir #:nodoc:
- File.expand_path('.rake', '~')
- end
- end
- private :standard_system_dir
-
- # Collect the list of tasks on the command line. If no tasks are
- # given, return a list containing only the default task.
- # Environmental assignments are processed at this time as well.
- def collect_tasks
- @top_level_tasks = []
- ARGV.each do |arg|
- if arg =~ /^(\w+)=(.*)$/
- ENV[$1] = $2
- else
- @top_level_tasks << arg unless arg =~ /^-/
- end
- end
- @top_level_tasks.push("default") if @top_level_tasks.size == 0
- end
-
- # Add a file to the list of files to be imported.
- def add_import(fn)
- @pending_imports << fn
- end
-
- # Load the pending list of imported files.
- def load_imports
- while fn = @pending_imports.shift
- next if @imported.member?(fn)
- if fn_task = lookup(fn)
- fn_task.invoke
- end
- ext = File.extname(fn)
- loader = @loaders[ext] || @default_loader
- loader.load(fn)
- @imported << fn
- end
- end
-
- # Warn about deprecated use of top level constant names.
- def const_warning(const_name)
- @const_warning ||= false
- if ! @const_warning
- $stderr.puts %{WARNING: Deprecated reference to top-level constant '#{const_name}' } +
- %{found at: #{rakefile_location}} # '
- $stderr.puts %{ Use --classic-namespace on rake command}
- $stderr.puts %{ or 'require "rake/classic_namespace"' in Rakefile}
- end
- @const_warning = true
- end
-
- def rakefile_location
- begin
- fail
- rescue RuntimeError => ex
- ex.backtrace.find {|str| str =~ /#{@rakefile}/ } || ""
- end
- end
- end
-end
-
-
-class Module
- # Rename the original handler to make it available.
- alias :rake_original_const_missing :const_missing
-
- # Check for deprecated uses of top level (i.e. in Object) uses of
- # Rake class names. If someone tries to reference the constant
- # name, display a warning and return the proper object. Using the
- # --classic-namespace command line option will define these
- # constants in Object and avoid this handler.
- def const_missing(const_name)
- case const_name
- when :Task
- Rake.application.const_warning(const_name)
- Rake::Task
- when :FileTask
- Rake.application.const_warning(const_name)
- Rake::FileTask
- when :FileCreationTask
- Rake.application.const_warning(const_name)
- Rake::FileCreationTask
- when :RakeApp
- Rake.application.const_warning(const_name)
- Rake::Application
- else
- rake_original_const_missing(const_name)
- end
- end
-end
+RakeFileUtils = Rake::FileUtilsExt
diff --git a/lib/rake/alt_system.rb b/lib/rake/alt_system.rb
new file mode 100644
index 0000000000..05af19863a
--- /dev/null
+++ b/lib/rake/alt_system.rb
@@ -0,0 +1,109 @@
+#
+# Copyright (c) 2008 James M. Lawrence
+#
+# Permission is hereby granted, free of charge, to any person
+# obtaining a copy of this software and associated documentation files
+# (the "Software"), to deal in the Software without restriction,
+# including without limitation the rights to use, copy, modify, merge,
+# publish, distribute, sublicense, and/or sell copies of the Software,
+# and to permit persons to whom the Software is furnished to do so,
+# subject to the following conditions:
+#
+# The above copyright notice and this permission notice shall be
+# included in all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS
+# BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN
+# ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
+# CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+# SOFTWARE.
+#
+
+require 'rbconfig'
+
+#
+# Alternate implementations of system() and backticks `` on Windows
+# for ruby-1.8 and earlier.
+#
+module Rake::AltSystem
+ WINDOWS = RbConfig::CONFIG["host_os"] =~
+ %r!(msdos|mswin|djgpp|mingw|[Ww]indows)!
+
+ class << self
+ def define_module_function(name, &block)
+ define_method(name, &block)
+ module_function(name)
+ end
+ end
+
+ if WINDOWS and RUBY_VERSION < "1.9.0"
+ RUNNABLE_EXTS = %w[com exe bat cmd]
+ RUNNABLE_PATTERN = %r!\.(#{RUNNABLE_EXTS.join('|')})\Z!i
+
+ define_module_function :kernel_system, &Kernel.method(:system)
+ define_module_function :kernel_backticks, &Kernel.method(:'`')
+
+ module_function
+
+ def repair_command(cmd)
+ "call " + (
+ if cmd =~ %r!\A\s*\".*?\"!
+ # already quoted
+ cmd
+ elsif match = cmd.match(%r!\A\s*(\S+)!)
+ if match[1] =~ %r!/!
+ # avoid x/y.bat interpretation as x with option /y
+ %Q!"#{match[1]}"! + match.post_match
+ else
+ # a shell command will fail if quoted
+ cmd
+ end
+ else
+ # empty or whitespace
+ cmd
+ end
+ )
+ end
+
+ def find_runnable(file)
+ if file =~ RUNNABLE_PATTERN
+ file
+ else
+ RUNNABLE_EXTS.each { |ext|
+ if File.exist?(test = "#{file}.#{ext}")
+ return test
+ end
+ }
+ nil
+ end
+ end
+
+ def system(cmd, *args)
+ repaired = (
+ if args.empty?
+ [repair_command(cmd)]
+ elsif runnable = find_runnable(cmd)
+ [File.expand_path(runnable), *args]
+ else
+ # non-existent file
+ [cmd, *args]
+ end
+ )
+ kernel_system(*repaired)
+ end
+
+ def backticks(cmd)
+ kernel_backticks(repair_command(cmd))
+ end
+
+ define_module_function :'`', &method(:backticks)
+ else
+ # Non-Windows or ruby-1.9+: same as Kernel versions
+ define_module_function :system, &Kernel.method(:system)
+ define_module_function :backticks, &Kernel.method(:'`')
+ define_module_function :'`', &Kernel.method(:'`')
+ end
+end
diff --git a/lib/rake/application.rb b/lib/rake/application.rb
new file mode 100644
index 0000000000..2079fb9be6
--- /dev/null
+++ b/lib/rake/application.rb
@@ -0,0 +1,595 @@
+require 'shellwords'
+require 'optparse'
+
+require 'rake/task_manager'
+require 'rake/win32'
+
+module Rake
+
+ ######################################################################
+ # Rake main application object. When invoking +rake+ from the
+ # command line, a Rake::Application object is created and run.
+ #
+ class Application
+ include TaskManager
+
+ # The name of the application (typically 'rake')
+ attr_reader :name
+
+ # The original directory where rake was invoked.
+ attr_reader :original_dir
+
+ # Name of the actual rakefile used.
+ attr_reader :rakefile
+
+ # Number of columns on the terminal
+ attr_accessor :terminal_columns
+
+ # List of the top level task names (task names from the command line).
+ attr_reader :top_level_tasks
+
+ DEFAULT_RAKEFILES = ['rakefile', 'Rakefile', 'rakefile.rb', 'Rakefile.rb'].freeze
+
+ # Initialize a Rake::Application object.
+ def initialize
+ super
+ @name = 'rake'
+ @rakefiles = DEFAULT_RAKEFILES.dup
+ @rakefile = nil
+ @pending_imports = []
+ @imported = []
+ @loaders = {}
+ @default_loader = Rake::DefaultLoader.new
+ @original_dir = Dir.pwd
+ @top_level_tasks = []
+ add_loader('rb', DefaultLoader.new)
+ add_loader('rf', DefaultLoader.new)
+ add_loader('rake', DefaultLoader.new)
+ @tty_output = STDOUT.tty?
+ @terminal_columns = ENV['RAKE_COLUMNS'].to_i
+ end
+
+ # Run the Rake application. The run method performs the following
+ # three steps:
+ #
+ # * Initialize the command line options (+init+).
+ # * Define the tasks (+load_rakefile+).
+ # * Run the top level tasks (+run_tasks+).
+ #
+ # If you wish to build a custom rake command, you should call
+ # +init+ on your application. Then define any tasks. Finally,
+ # call +top_level+ to run your top level tasks.
+ def run
+ standard_exception_handling do
+ init
+ load_rakefile
+ top_level
+ end
+ end
+
+ # Initialize the command line parameters and app name.
+ def init(app_name='rake')
+ standard_exception_handling do
+ @name = app_name
+ handle_options
+ collect_tasks
+ end
+ end
+
+ # Find the rakefile and then load it and any pending imports.
+ def load_rakefile
+ standard_exception_handling do
+ raw_load_rakefile
+ end
+ end
+
+ # Run the top level tasks of a Rake application.
+ def top_level
+ standard_exception_handling do
+ if options.show_tasks
+ display_tasks_and_comments
+ elsif options.show_prereqs
+ display_prerequisites
+ else
+ top_level_tasks.each { |task_name| invoke_task(task_name) }
+ end
+ end
+ end
+
+ # Add a loader to handle imported files ending in the extension
+ # +ext+.
+ def add_loader(ext, loader)
+ ext = ".#{ext}" unless ext =~ /^\./
+ @loaders[ext] = loader
+ end
+
+ # Application options from the command line
+ def options
+ @options ||= OpenStruct.new
+ end
+
+ # private ----------------------------------------------------------------
+
+ def invoke_task(task_string)
+ name, args = parse_task_string(task_string)
+ t = self[name]
+ t.invoke(*args)
+ end
+
+ def parse_task_string(string)
+ if string =~ /^([^\[]+)(\[(.*)\])$/
+ name = $1
+ args = $3.split(/\s*,\s*/)
+ else
+ name = string
+ args = []
+ end
+ [name, args]
+ end
+
+ # Provide standard exception handling for the given block.
+ def standard_exception_handling
+ begin
+ yield
+ rescue SystemExit => ex
+ # Exit silently with current status
+ raise
+ rescue OptionParser::InvalidOption => ex
+ $stderr.puts ex.message
+ exit(false)
+ rescue Exception => ex
+ # Exit with error message
+ display_error_message(ex)
+ exit(false)
+ end
+ end
+
+ # Display the error message that caused the exception.
+ def display_error_message(ex)
+ $stderr.puts "#{name} aborted!"
+ $stderr.puts ex.message
+ if options.trace
+ $stderr.puts ex.backtrace.join("\n")
+ else
+ $stderr.puts rakefile_location(ex.backtrace)
+ end
+ $stderr.puts "Tasks: #{ex.chain}" if has_chain?(ex)
+ $stderr.puts "(See full trace by running task with --trace)" unless options.trace
+ end
+
+ # Warn about deprecated usage.
+ #
+ # Example:
+ # Rake.application.deprecate("import", "Rake.import", caller.first)
+ #
+ def deprecate(old_usage, new_usage, call_site)
+ return if options.ignore_deprecate
+ $stderr.puts "WARNING: '#{old_usage}' is deprecated. " +
+ "Please use '#{new_usage}' instead.\n" +
+ " at #{call_site}"
+ end
+
+ # Does the exception have a task invocation chain?
+ def has_chain?(exception)
+ exception.respond_to?(:chain) && exception.chain
+ end
+ private :has_chain?
+
+ # True if one of the files in RAKEFILES is in the current directory.
+ # If a match is found, it is copied into @rakefile.
+ def have_rakefile
+ @rakefiles.each do |fn|
+ if File.exist?(fn)
+ others = Dir.glob(fn, File::FNM_CASEFOLD)
+ return others.size == 1 ? others.first : fn
+ elsif fn == ''
+ return fn
+ end
+ end
+ return nil
+ end
+
+ # True if we are outputting to TTY, false otherwise
+ def tty_output?
+ @tty_output
+ end
+
+ # Override the detected TTY output state (mostly for testing)
+ def tty_output=( tty_output_state )
+ @tty_output = tty_output_state
+ end
+
+ # We will truncate output if we are outputting to a TTY or if we've been
+ # given an explicit column width to honor
+ def truncate_output?
+ tty_output? || @terminal_columns.nonzero?
+ end
+
+ # Display the tasks and comments.
+ def display_tasks_and_comments
+ displayable_tasks = tasks.select { |t|
+ t.comment && t.name =~ options.show_task_pattern
+ }
+ case options.show_tasks
+ when :tasks
+ width = displayable_tasks.collect { |t| t.name_with_args.length }.max || 10
+ max_column = truncate_output? ? terminal_width - name.size - width - 7 : nil
+
+ displayable_tasks.each do |t|
+ printf "#{name} %-#{width}s # %s\n",
+ t.name_with_args, max_column ? truncate(t.comment, max_column) : t.comment
+ end
+ when :describe
+ displayable_tasks.each do |t|
+ puts "#{name} #{t.name_with_args}"
+ t.full_comment.split("\n").each do |line|
+ puts " #{line}"
+ end
+ puts
+ end
+ when :lines
+ displayable_tasks.each do |t|
+ t.locations.each do |loc|
+ printf "#{name} %-30s %s\n",t.name_with_args, loc
+ end
+ end
+ else
+ fail "Unknown show task mode: '#{options.show_tasks}'"
+ end
+ end
+
+ def terminal_width
+ if @terminal_columns.nonzero?
+ result = @terminal_columns
+ else
+ result = unix? ? dynamic_width : 80
+ end
+ (result < 10) ? 80 : result
+ rescue
+ 80
+ end
+
+ # Calculate the dynamic width of the
+ def dynamic_width
+ @dynamic_width ||= (dynamic_width_stty.nonzero? || dynamic_width_tput)
+ end
+
+ def dynamic_width_stty
+ %x{stty size 2>/dev/null}.split[1].to_i
+ end
+
+ def dynamic_width_tput
+ %x{tput cols 2>/dev/null}.to_i
+ end
+
+ def unix?
+ RbConfig::CONFIG['host_os'] =~ /(aix|darwin|linux|(net|free|open)bsd|cygwin|solaris|irix|hpux)/i
+ end
+
+ def windows?
+ Win32.windows?
+ end
+
+ def truncate(string, width)
+ if string.length <= width
+ string
+ else
+ ( string[0, width-3] || "" ) + "..."
+ end
+ end
+
+ # Display the tasks and prerequisites
+ def display_prerequisites
+ tasks.each do |t|
+ puts "#{name} #{t.name}"
+ t.prerequisites.each { |pre| puts " #{pre}" }
+ end
+ end
+
+ # A list of all the standard options used in rake, suitable for
+ # passing to OptionParser.
+ def standard_rake_options
+ [
+ ['--classic-namespace', '-C', "Put Task and FileTask in the top level namespace",
+ lambda { |value|
+ require 'rake/classic_namespace'
+ options.classic_namespace = true
+ }
+ ],
+ ['--describe', '-D [PATTERN]', "Describe the tasks (matching optional PATTERN), then exit.",
+ lambda { |value|
+ options.show_tasks = :describe
+ options.show_task_pattern = Regexp.new(value || '')
+ TaskManager.record_task_metadata = true
+ }
+ ],
+ ['--dry-run', '-n', "Do a dry run without executing actions.",
+ lambda { |value|
+ Rake.verbose(true)
+ Rake.nowrite(true)
+ options.dryrun = true
+ options.trace = true
+ }
+ ],
+ ['--execute', '-e CODE', "Execute some Ruby code and exit.",
+ lambda { |value|
+ eval(value)
+ exit
+ }
+ ],
+ ['--execute-print', '-p CODE', "Execute some Ruby code, print the result, then exit.",
+ lambda { |value|
+ puts eval(value)
+ exit
+ }
+ ],
+ ['--execute-continue', '-E CODE',
+ "Execute some Ruby code, then continue with normal task processing.",
+ lambda { |value| eval(value) }
+ ],
+ ['--libdir', '-I LIBDIR', "Include LIBDIR in the search path for required modules.",
+ lambda { |value| $:.push(value) }
+ ],
+ ['--no-search', '--nosearch', '-N', "Do not search parent directories for the Rakefile.",
+ lambda { |value| options.nosearch = true }
+ ],
+ ['--prereqs', '-P', "Display the tasks and dependencies, then exit.",
+ lambda { |value| options.show_prereqs = true }
+ ],
+ ['--quiet', '-q', "Do not log messages to standard output.",
+ lambda { |value| Rake.verbose(false) }
+ ],
+ ['--rakefile', '-f [FILE]', "Use FILE as the rakefile.",
+ lambda { |value|
+ value ||= ''
+ @rakefiles.clear
+ @rakefiles << value
+ }
+ ],
+ ['--rakelibdir', '--rakelib', '-R RAKELIBDIR',
+ "Auto-import any .rake files in RAKELIBDIR. (default is 'rakelib')",
+ # HACK Use File::PATH_SEPARATOR
+ lambda { |value| options.rakelib = value.split(':') }
+ ],
+ ['--require', '-r MODULE', "Require MODULE before executing rakefile.",
+ lambda { |value|
+ begin
+ require value
+ rescue LoadError => ex
+ begin
+ rake_require value
+ rescue LoadError
+ raise ex
+ end
+ end
+ }
+ ],
+ ['--rules', "Trace the rules resolution.",
+ lambda { |value| options.trace_rules = true }
+ ],
+ ['--silent', '-s', "Like --quiet, but also suppresses the 'in directory' announcement.",
+ lambda { |value|
+ Rake.verbose(false)
+ options.silent = true
+ }
+ ],
+ ['--system', '-g',
+ "Using system wide (global) rakefiles (usually '~/.rake/*.rake').",
+ lambda { |value| options.load_system = true }
+ ],
+ ['--no-system', '--nosystem', '-G',
+ "Use standard project Rakefile search paths, ignore system wide rakefiles.",
+ lambda { |value| options.ignore_system = true }
+ ],
+ ['--tasks', '-T [PATTERN]', "Display the tasks (matching optional PATTERN) with descriptions, then exit.",
+ lambda { |value|
+ options.show_tasks = :tasks
+ options.show_task_pattern = Regexp.new(value || '')
+ Rake::TaskManager.record_task_metadata = true
+ }
+ ],
+ ['--trace', '-t', "Turn on invoke/execute tracing, enable full backtrace.",
+ lambda { |value|
+ options.trace = true
+ Rake.verbose(true)
+ }
+ ],
+ ['--verbose', '-v', "Log message to standard output.",
+ lambda { |value| Rake.verbose(true) }
+ ],
+ ['--version', '-V', "Display the program version.",
+ lambda { |value|
+ puts "rake, version #{RAKEVERSION}"
+ exit
+ }
+ ],
+ ['--where', '-W [PATTERN]', "Describe the tasks (matching optional PATTERN), then exit.",
+ lambda { |value|
+ options.show_tasks = :lines
+ options.show_task_pattern = Regexp.new(value || '')
+ Rake::TaskManager.record_task_metadata = true
+ }
+ ],
+ ['--no-deprecation-warnings', '-X', "Disable the deprecation warnings.",
+ lambda { |value|
+ options.ignore_deprecate = true
+ }
+ ],
+ ]
+ end
+
+ # Read and handle the command line options.
+ def handle_options
+ options.rakelib = ['rakelib']
+
+ OptionParser.new do |opts|
+ opts.banner = "rake [-f rakefile] {options} targets..."
+ opts.separator ""
+ opts.separator "Options are ..."
+
+ opts.on_tail("-h", "--help", "-H", "Display this help message.") do
+ puts opts
+ exit
+ end
+
+ standard_rake_options.each { |args| opts.on(*args) }
+ opts.environment('RAKEOPT')
+ end.parse!
+
+ # If class namespaces are requested, set the global options
+ # according to the values in the options structure.
+ if options.classic_namespace
+ $show_tasks = options.show_tasks
+ $show_prereqs = options.show_prereqs
+ $trace = options.trace
+ $dryrun = options.dryrun
+ $silent = options.silent
+ end
+ end
+
+ # Similar to the regular Ruby +require+ command, but will check
+ # for *.rake files in addition to *.rb files.
+ def rake_require(file_name, paths=$LOAD_PATH, loaded=$")
+ fn = file_name + ".rake"
+ return false if loaded.include?(fn)
+ paths.each do |path|
+ full_path = File.join(path, fn)
+ if File.exist?(full_path)
+ Rake.load_rakefile(full_path)
+ loaded << fn
+ return true
+ end
+ end
+ fail LoadError, "Can't find #{file_name}"
+ end
+
+ def find_rakefile_location
+ here = Dir.pwd
+ while ! (fn = have_rakefile)
+ Dir.chdir("..")
+ if Dir.pwd == here || options.nosearch
+ return nil
+ end
+ here = Dir.pwd
+ end
+ [fn, here]
+ ensure
+ Dir.chdir(Rake.original_dir)
+ end
+
+ def print_rakefile_directory(location)
+ $stderr.puts "(in #{Dir.pwd})" unless
+ options.silent or original_dir == location
+ end
+
+ def raw_load_rakefile # :nodoc:
+ rakefile, location = find_rakefile_location
+ if (! options.ignore_system) &&
+ (options.load_system || rakefile.nil?) &&
+ system_dir && File.directory?(system_dir)
+ print_rakefile_directory(location)
+ glob("#{system_dir}/*.rake") do |name|
+ add_import name
+ end
+ else
+ fail "No Rakefile found (looking for: #{@rakefiles.join(', ')})" if
+ rakefile.nil?
+ @rakefile = rakefile
+ Dir.chdir(location)
+ print_rakefile_directory(location)
+ $rakefile = @rakefile if options.classic_namespace
+ Rake.load_rakefile(File.expand_path(@rakefile)) if @rakefile && @rakefile != ''
+ options.rakelib.each do |rlib|
+ glob("#{rlib}/*.rake") do |name|
+ add_import name
+ end
+ end
+ end
+ load_imports
+ end
+
+ def glob(path, &block)
+ Dir[path.gsub("\\", '/')].each(&block)
+ end
+ private :glob
+
+ # The directory path containing the system wide rakefiles.
+ def system_dir
+ @system_dir ||=
+ begin
+ if ENV['RAKE_SYSTEM']
+ ENV['RAKE_SYSTEM']
+ else
+ standard_system_dir
+ end
+ end
+ end
+
+ # The standard directory containing system wide rake files.
+ if Win32.windows?
+ def standard_system_dir #:nodoc:
+ Win32.win32_system_dir
+ end
+ else
+ def standard_system_dir #:nodoc:
+ File.join(File.expand_path('~'), '.rake')
+ end
+ end
+ private :standard_system_dir
+
+ # Collect the list of tasks on the command line. If no tasks are
+ # given, return a list containing only the default task.
+ # Environmental assignments are processed at this time as well.
+ def collect_tasks
+ @top_level_tasks = []
+ ARGV.each do |arg|
+ if arg =~ /^(\w+)=(.*)$/
+ ENV[$1] = $2
+ else
+ @top_level_tasks << arg unless arg =~ /^-/
+ end
+ end
+ @top_level_tasks.push("default") if @top_level_tasks.size == 0
+ end
+
+ # Add a file to the list of files to be imported.
+ def add_import(fn)
+ @pending_imports << fn
+ end
+
+ # Load the pending list of imported files.
+ def load_imports
+ while fn = @pending_imports.shift
+ next if @imported.member?(fn)
+ if fn_task = lookup(fn)
+ fn_task.invoke
+ end
+ ext = File.extname(fn)
+ loader = @loaders[ext] || @default_loader
+ loader.load(fn)
+ @imported << fn
+ end
+ end
+
+ # Warn about deprecated use of top level constant names.
+ def const_warning(const_name)
+ @const_warning ||= false
+ if ! @const_warning
+ $stderr.puts %{WARNING: Deprecated reference to top-level constant '#{const_name}' } +
+ %{found at: #{rakefile_location}} # '
+ $stderr.puts %{ Use --classic-namespace on rake command}
+ $stderr.puts %{ or 'require "rake/classic_namespace"' in Rakefile}
+ end
+ @const_warning = true
+ end
+
+ def rakefile_location backtrace = caller
+ backtrace.map { |t| t[/([^:]+):/,1] }
+
+ re = /^#{@rakefile}$/
+ re = /#{re.source}/i if windows?
+
+ backtrace.find { |str| str =~ re } || ''
+ end
+ end
+end
diff --git a/lib/rake/classic_namespace.rb b/lib/rake/classic_namespace.rb
index feb7569966..6e71012da4 100644
--- a/lib/rake/classic_namespace.rb
+++ b/lib/rake/classic_namespace.rb
@@ -2,7 +2,10 @@
# Loading this file enables compatibility with older Rakefile that
# referenced Task from the top level.
+warn "WARNING: Classic namespaces are deprecated and will be removed from future versions of Rake."
+# :stopdoc:
Task = Rake::Task
FileTask = Rake::FileTask
FileCreationTask = Rake::FileCreationTask
RakeApp = Rake::Application
+# :startdoc:
diff --git a/lib/rake/clean.rb b/lib/rake/clean.rb
index 62f27d5751..5c9cbcdb24 100644
--- a/lib/rake/clean.rb
+++ b/lib/rake/clean.rb
@@ -13,6 +13,7 @@
require 'rake'
+# :stopdoc:
CLEAN = Rake::FileList["**/*~", "**/*.bak", "**/core"]
CLEAN.clear_exclude.exclude { |fn|
fn.pathmap("%f") == 'core' && File.directory?(fn)
diff --git a/lib/rake/cloneable.rb b/lib/rake/cloneable.rb
new file mode 100644
index 0000000000..19c780bff6
--- /dev/null
+++ b/lib/rake/cloneable.rb
@@ -0,0 +1,25 @@
+module Rake
+ # ##########################################################################
+ # Mixin for creating easily cloned objects.
+ #
+ module Cloneable
+ # Clone an object by making a new object and setting all the instance
+ # variables to the same values.
+ def dup
+ sibling = self.class.new
+ instance_variables.each do |ivar|
+ value = self.instance_variable_get(ivar)
+ new_value = value.clone rescue value
+ sibling.instance_variable_set(ivar, new_value)
+ end
+ sibling.taint if tainted?
+ sibling
+ end
+
+ def clone
+ sibling = dup
+ sibling.freeze if frozen?
+ sibling
+ end
+ end
+end
diff --git a/lib/rake/contrib/compositepublisher.rb b/lib/rake/contrib/compositepublisher.rb
new file mode 100644
index 0000000000..69952a0808
--- /dev/null
+++ b/lib/rake/contrib/compositepublisher.rb
@@ -0,0 +1,21 @@
+module Rake
+
+ # Manage several publishers as a single entity.
+ class CompositePublisher
+ def initialize
+ @publishers = []
+ end
+
+ # Add a publisher to the composite.
+ def add(pub)
+ @publishers << pub
+ end
+
+ # Upload all the individual publishers.
+ def upload
+ @publishers.each { |p| p.upload }
+ end
+ end
+
+end
+
diff --git a/lib/rake/contrib/ftptools.rb b/lib/rake/contrib/ftptools.rb
new file mode 100644
index 0000000000..78420c7412
--- /dev/null
+++ b/lib/rake/contrib/ftptools.rb
@@ -0,0 +1,150 @@
+# = Tools for FTP uploading.
+#
+# This file is still under development and is not released for general
+# use.
+
+require 'date'
+require 'net/ftp'
+
+module Rake # :nodoc:
+
+ ####################################################################
+ # <b>Note:</b> <em> Not released for general use.</em>
+ class FtpFile
+ attr_reader :name, :size, :owner, :group, :time
+
+ def self.date
+ @date_class ||= Date
+ end
+
+ def self.time
+ @time_class ||= Time
+ end
+
+ def initialize(path, entry)
+ @path = path
+ @mode, _, @owner, @group, size, d1, d2, d3, @name = entry.split(' ')
+ @size = size.to_i
+ @time = determine_time(d1, d2, d3)
+ end
+
+ def path
+ File.join(@path, @name)
+ end
+
+ def directory?
+ @mode[0] == ?d
+ end
+
+ def mode
+ parse_mode(@mode)
+ end
+
+ def symlink?
+ @mode[0] == ?l
+ end
+
+ private # --------------------------------------------------------
+
+ def parse_mode(m)
+ result = 0
+ (1..9).each do |i|
+ result = 2*result + ((m[i]==?-) ? 0 : 1)
+ end
+ result
+ end
+
+ def determine_time(d1, d2, d3)
+ now = self.class.time.now
+ if /:/ =~ d3
+ result = Time.parse("#{d1} #{d2} #{now.year} #{d3}")
+ if result > now
+ result = Time.parse("#{d1} #{d2} #{now.year-1} #{d3}")
+ end
+ else
+ result = Time.parse("#{d1} #{d2} #{d3}")
+ end
+ result
+# elements = ParseDate.parsedate("#{d1} #{d2} #{d3}")
+# if elements[0].nil?
+# today = self.class.date.today
+# if elements[1] > today.month
+# elements[0] = today.year - 1
+# else
+# elements[0] = today.year
+# end
+# end
+# elements = elements.collect { |el| el.nil? ? 0 : el }
+# Time.mktime(*elements[0,7])
+ end
+ end
+
+ ####################################################################
+ # Manage the uploading of files to an FTP account.
+ class FtpUploader
+
+ # Log uploads to standard output when true.
+ attr_accessor :verbose
+
+ class << FtpUploader
+ # Create an uploader and pass it to the given block as +up+.
+ # When the block is complete, close the uploader.
+ def connect(path, host, account, password)
+ up = self.new(path, host, account, password)
+ begin
+ yield(up)
+ ensure
+ up.close
+ end
+ end
+ end
+
+ # Create an FTP uploader targeting the directory +path+ on +host+
+ # using the given account and password. +path+ will be the root
+ # path of the uploader.
+ def initialize(path, host, account, password)
+ @created = Hash.new
+ @path = path
+ @ftp = Net::FTP.new(host, account, password)
+ makedirs(@path)
+ @ftp.chdir(@path)
+ end
+
+ # Create the directory +path+ in the uploader root path.
+ def makedirs(path)
+ route = []
+ File.split(path).each do |dir|
+ route << dir
+ current_dir = File.join(route)
+ if @created[current_dir].nil?
+ @created[current_dir] = true
+ $stderr.puts "Creating Directory #{current_dir}" if @verbose
+ @ftp.mkdir(current_dir) rescue nil
+ end
+ end
+ end
+
+ # Upload all files matching +wildcard+ to the uploader's root
+ # path.
+ def upload_files(wildcard)
+ Dir[wildcard].each do |fn|
+ upload(fn)
+ end
+ end
+
+ # Close the uploader.
+ def close
+ @ftp.close
+ end
+
+ private # --------------------------------------------------------
+
+ # Upload a single file to the uploader's root path.
+ def upload(file)
+ $stderr.puts "Uploading #{file}" if @verbose
+ dir = File.dirname(file)
+ makedirs(dir)
+ @ftp.putbinaryfile(file, file) unless File.directory?(file)
+ end
+ end
+end
diff --git a/lib/rake/contrib/publisher.rb b/lib/rake/contrib/publisher.rb
new file mode 100644
index 0000000000..8b11edb59c
--- /dev/null
+++ b/lib/rake/contrib/publisher.rb
@@ -0,0 +1,73 @@
+# Copyright 2003-2010 by Jim Weirich (jim.weirich@gmail.com)
+# All rights reserved.
+
+# :stopdoc:
+
+# Configuration information about an upload host system.
+# name :: Name of host system.
+# webdir :: Base directory for the web information for the
+# application. The application name (APP) is appended to
+# this directory before using.
+# pkgdir :: Directory on the host system where packages can be
+# placed.
+HostInfo = Struct.new(:name, :webdir, :pkgdir)
+
+# :startdoc:
+
+# Manage several publishers as a single entity.
+class CompositePublisher
+ def initialize
+ @publishers = []
+ end
+
+ # Add a publisher to the composite.
+ def add(pub)
+ @publishers << pub
+ end
+
+ # Upload all the individual publishers.
+ def upload
+ @publishers.each { |p| p.upload }
+ end
+end
+
+# Publish an entire directory to an existing remote directory using
+# SSH.
+class SshDirPublisher
+ def initialize(host, remote_dir, local_dir)
+ @host = host
+ @remote_dir = remote_dir
+ @local_dir = local_dir
+ end
+
+ def upload
+ run %{scp -rq #{@local_dir}/* #{@host}:#{@remote_dir}}
+ end
+end
+
+# Publish an entire directory to a fresh remote directory using SSH.
+class SshFreshDirPublisher < SshDirPublisher
+ def upload
+ run %{ssh #{@host} rm -rf #{@remote_dir}} rescue nil
+ run %{ssh #{@host} mkdir #{@remote_dir}}
+ super
+ end
+end
+
+# Publish a list of files to an existing remote directory.
+class SshFilePublisher
+ # Create a publisher using the give host information.
+ def initialize(host, remote_dir, local_dir, *files)
+ @host = host
+ @remote_dir = remote_dir
+ @local_dir = local_dir
+ @files = files
+ end
+
+ # Upload the local directory to the remote directory.
+ def upload
+ @files.each do |fn|
+ run %{scp -q #{@local_dir}/#{fn} #{@host}:#{@remote_dir}}
+ end
+ end
+end
diff --git a/lib/rake/contrib/rubyforgepublisher.rb b/lib/rake/contrib/rubyforgepublisher.rb
new file mode 100644
index 0000000000..a4b96936c8
--- /dev/null
+++ b/lib/rake/contrib/rubyforgepublisher.rb
@@ -0,0 +1,16 @@
+require 'rake/contrib/sshpublisher'
+
+module Rake
+
+ class RubyForgePublisher < SshDirPublisher
+ attr_reader :project, :proj_id, :user
+
+ def initialize(projname, user)
+ super(
+ "#{user}@rubyforge.org",
+ "/var/www/gforge-projects/#{projname}",
+ "html")
+ end
+ end
+
+end
diff --git a/lib/rake/contrib/sshpublisher.rb b/lib/rake/contrib/sshpublisher.rb
new file mode 100644
index 0000000000..bd6adc127e
--- /dev/null
+++ b/lib/rake/contrib/sshpublisher.rb
@@ -0,0 +1,50 @@
+require 'rake/dsl_definition'
+require 'rake/contrib/compositepublisher'
+
+module Rake
+
+ # Publish an entire directory to an existing remote directory using
+ # SSH.
+ class SshDirPublisher
+ include Rake::DSL
+
+ def initialize(host, remote_dir, local_dir)
+ @host = host
+ @remote_dir = remote_dir
+ @local_dir = local_dir
+ end
+
+ def upload
+ sh %{scp -rq #{@local_dir}/* #{@host}:#{@remote_dir}}
+ end
+ end
+
+ # Publish an entire directory to a fresh remote directory using SSH.
+ class SshFreshDirPublisher < SshDirPublisher
+ def upload
+ sh %{ssh #{@host} rm -rf #{@remote_dir}} rescue nil
+ sh %{ssh #{@host} mkdir #{@remote_dir}}
+ super
+ end
+ end
+
+ # Publish a list of files to an existing remote directory.
+ class SshFilePublisher
+ include Rake::DSL
+
+ # Create a publisher using the give host information.
+ def initialize(host, remote_dir, local_dir, *files)
+ @host = host
+ @remote_dir = remote_dir
+ @local_dir = local_dir
+ @files = files
+ end
+
+ # Upload the local directory to the remote directory.
+ def upload
+ @files.each do |fn|
+ sh %{scp -q #{@local_dir}/#{fn} #{@host}:#{@remote_dir}}
+ end
+ end
+ end
+end
diff --git a/lib/rake/contrib/sys.rb b/lib/rake/contrib/sys.rb
new file mode 100644
index 0000000000..41963f1fef
--- /dev/null
+++ b/lib/rake/contrib/sys.rb
@@ -0,0 +1,191 @@
+warn 'Sys has been deprecated in favor of FileUtils'
+
+#--
+# Copyright 2003-2010 by Jim Weirich (jim.weirich@gmail.com)
+# All rights reserved.
+#++
+#
+begin
+ require 'ftools'
+rescue LoadError
+end
+require 'rbconfig'
+
+######################################################################
+# Sys provides a number of file manipulation tools for the convenience
+# of writing Rakefiles. All commands in this module will announce
+# their activity on standard output if the $verbose flag is set
+# ($verbose = true is the default). You can control this by globally
+# setting $verbose or by using the +verbose+ and +quiet+ methods.
+#
+# Sys has been deprecated in favor of the FileUtils module available
+# in Ruby 1.8.
+#
+module Sys
+ RUBY = RbConfig::CONFIG['ruby_install_name']
+
+ # Install all the files matching +wildcard+ into the +dest_dir+
+ # directory. The permission mode is set to +mode+.
+ def install(wildcard, dest_dir, mode)
+ Dir[wildcard].each do |fn|
+ File.install(fn, dest_dir, mode, $verbose)
+ end
+ end
+
+ # Run the system command +cmd+.
+ def run(cmd)
+ log cmd
+ system(cmd) or fail "Command Failed: [#{cmd}]"
+ end
+
+ # Run a Ruby interpreter with the given arguments.
+ def ruby(*args)
+ run "#{RUBY} #{args.join(' ')}"
+ end
+
+ # Copy a single file from +file_name+ to +dest_file+.
+ def copy(file_name, dest_file)
+ log "Copying file #{file_name} to #{dest_file}"
+ File.copy(file_name, dest_file)
+ end
+
+ # Copy all files matching +wildcard+ into the directory +dest_dir+.
+ def copy_files(wildcard, dest_dir)
+ for_matching_files(wildcard, dest_dir) { |from, to| copy(from, to) }
+ end
+
+ # Link +file_name+ to +dest_file+.
+ def link(file_name, dest_file)
+ log "Linking file #{file_name} to #{dest_file}"
+ File.link(file_name, dest_file)
+ end
+
+ # Link all files matching +wildcard+ into the directory +dest_dir+.
+ def link_files(wildcard, dest_dir)
+ for_matching_files(wildcard, dest_dir) { |from, to| link(from, to) }
+ end
+
+ # Symlink +file_name+ to +dest_file+.
+ def symlink(file_name, dest_file)
+ log "Symlinking file #{file_name} to #{dest_file}"
+ File.symlink(file_name, dest_file)
+ end
+
+ # Symlink all files matching +wildcard+ into the directory +dest_dir+.
+ def symlink_files(wildcard, dest_dir)
+ for_matching_files(wildcard, dest_dir) { |from, to| link(from, to) }
+ end
+
+ # Remove all files matching +wildcard+. If a matching file is a
+ # directory, it must be empty to be removed. used +delete_all+ to
+ # recursively delete directories.
+ def delete(*wildcards)
+ wildcards.each do |wildcard|
+ Dir[wildcard].each do |fn|
+ if File.directory?(fn)
+ log "Deleting directory #{fn}"
+ Dir.delete(fn)
+ else
+ log "Deleting file #{fn}"
+ File.delete(fn)
+ end
+ end
+ end
+ end
+
+ # Recursively delete all files and directories matching +wildcard+.
+ def delete_all(*wildcards)
+ wildcards.each do |wildcard|
+ Dir[wildcard].each do |fn|
+ next if ! File.exist?(fn)
+ if File.directory?(fn)
+ Dir["#{fn}/*"].each do |subfn|
+ next if subfn=='.' || subfn=='..'
+ delete_all(subfn)
+ end
+ log "Deleting directory #{fn}"
+ Dir.delete(fn)
+ else
+ log "Deleting file #{fn}"
+ File.delete(fn)
+ end
+ end
+ end
+ end
+
+ # Make the directories given in +dirs+.
+ def makedirs(*dirs)
+ dirs.each do |fn|
+ log "Making directory #{fn}"
+ File.makedirs(fn)
+ end
+ end
+
+ # Make +dir+ the current working directory for the duration of
+ # executing the given block.
+ def indir(dir)
+ olddir = Dir.pwd
+ Dir.chdir(dir)
+ yield
+ ensure
+ Dir.chdir(olddir)
+ end
+
+ # Split a file path into individual directory names.
+ #
+ # For example:
+ # split_all("a/b/c") => ['a', 'b', 'c']
+ def split_all(path)
+ head, tail = File.split(path)
+ return [tail] if head == '.' || tail == '/'
+ return [head, tail] if head == '/'
+ return split_all(head) + [tail]
+ end
+
+ # Write a message to standard error if $verbose is enabled.
+ def log(msg)
+ print " " if $trace && $verbose
+ $stderr.puts msg if $verbose
+ end
+
+ # Perform a block with $verbose disabled.
+ def quiet(&block)
+ with_verbose(false, &block)
+ end
+
+ # Perform a block with $verbose enabled.
+ def verbose(&block)
+ with_verbose(true, &block)
+ end
+
+ # Perform a block with each file matching a set of wildcards.
+ def for_files(*wildcards)
+ wildcards.each do |wildcard|
+ Dir[wildcard].each do |fn|
+ yield(fn)
+ end
+ end
+ end
+
+ extend(self)
+
+ private # ----------------------------------------------------------
+
+ def for_matching_files(wildcard, dest_dir)
+ Dir[wildcard].each do |fn|
+ dest_file = File.join(dest_dir, fn)
+ parent = File.dirname(dest_file)
+ makedirs(parent) if ! File.directory?(parent)
+ yield(fn, dest_file)
+ end
+ end
+
+ def with_verbose(v)
+ oldverbose = $verbose
+ $verbose = v
+ yield
+ ensure
+ $verbose = oldverbose
+ end
+
+end
diff --git a/lib/rake/default_loader.rb b/lib/rake/default_loader.rb
new file mode 100644
index 0000000000..5dd3c05617
--- /dev/null
+++ b/lib/rake/default_loader.rb
@@ -0,0 +1,10 @@
+module Rake
+
+ # Default Rakefile loader used by +import+.
+ class DefaultLoader
+ def load(fn)
+ Rake.load_rakefile(File.expand_path(fn))
+ end
+ end
+
+end
diff --git a/lib/rake/dsl_definition.rb b/lib/rake/dsl_definition.rb
new file mode 100644
index 0000000000..6d9a6b88f3
--- /dev/null
+++ b/lib/rake/dsl_definition.rb
@@ -0,0 +1,176 @@
+# Rake DSL functions.
+require 'rake/file_utils_ext'
+
+module Rake
+
+ ##
+ # DSL is a module that provides #task, #desc, #namespace, etc. Use this
+ # when you'd like to use rake outside the top level scope.
+
+ module DSL
+
+ #--
+ # Include the FileUtils file manipulation functions in the top
+ # level module, but mark them private so that they don't
+ # unintentionally define methods on other objects.
+ #++
+
+ include FileUtilsExt
+ private(*FileUtils.instance_methods(false))
+ private(*FileUtilsExt.instance_methods(false))
+
+ private
+
+ # Declare a basic task.
+ #
+ # Example:
+ # task :clobber => [:clean] do
+ # rm_rf "html"
+ # end
+ #
+ def task(*args, &block)
+ Rake::Task.define_task(*args, &block)
+ end
+
+
+ # Declare a file task.
+ #
+ # Example:
+ # file "config.cfg" => ["config.template"] do
+ # open("config.cfg", "w") do |outfile|
+ # open("config.template") do |infile|
+ # while line = infile.gets
+ # outfile.puts line
+ # end
+ # end
+ # end
+ # end
+ #
+ def file(*args, &block)
+ Rake::FileTask.define_task(*args, &block)
+ end
+
+ # Declare a file creation task.
+ # (Mainly used for the directory command).
+ def file_create(args, &block)
+ Rake::FileCreationTask.define_task(args, &block)
+ end
+
+ # Declare a set of files tasks to create the given directories on
+ # demand.
+ #
+ # Example:
+ # directory "testdata/doc"
+ #
+ def directory(dir)
+ Rake.each_dir_parent(dir) do |d|
+ file_create d do |t|
+ mkdir_p t.name if ! File.exist?(t.name)
+ end
+ end
+ end
+
+ # Declare a task that performs its prerequisites in
+ # parallel. Multitasks does *not* guarantee that its prerequisites
+ # will execute in any given order (which is obvious when you think
+ # about it)
+ #
+ # Example:
+ # multitask :deploy => [:deploy_gem, :deploy_rdoc]
+ #
+ def multitask(args, &block)
+ Rake::MultiTask.define_task(args, &block)
+ end
+
+ # Create a new rake namespace and use it for evaluating the given
+ # block. Returns a NameSpace object that can be used to lookup
+ # tasks defined in the namespace.
+ #
+ # E.g.
+ #
+ # ns = namespace "nested" do
+ # task :run
+ # end
+ # task_run = ns[:run] # find :run in the given namespace.
+ #
+ def namespace(name=nil, &block)
+ name = name.to_s if name.kind_of?(Symbol)
+ name = name.to_str if name.respond_to?(:to_str)
+ unless name.kind_of?(String) || name.nil?
+ raise ArgumentError, "Expected a String or Symbol for a namespace name"
+ end
+ Rake.application.in_namespace(name, &block)
+ end
+
+ # Declare a rule for auto-tasks.
+ #
+ # Example:
+ # rule '.o' => '.c' do |t|
+ # sh %{cc -o #{t.name} #{t.source}}
+ # end
+ #
+ def rule(*args, &block)
+ Rake::Task.create_rule(*args, &block)
+ end
+
+ # Describe the next rake task.
+ #
+ # Example:
+ # desc "Run the Unit Tests"
+ # task :test => [:build]
+ # runtests
+ # end
+ #
+ def desc(description)
+ Rake.application.last_description = description
+ end
+
+ # Import the partial Rakefiles +fn+. Imported files are loaded
+ # _after_ the current file is completely loaded. This allows the
+ # import statement to appear anywhere in the importing file, and yet
+ # allowing the imported files to depend on objects defined in the
+ # importing file.
+ #
+ # A common use of the import statement is to include files
+ # containing dependency declarations.
+ #
+ # See also the --rakelibdir command line option.
+ #
+ # Example:
+ # import ".depend", "my_rules"
+ #
+ def import(*fns)
+ fns.each do |fn|
+ Rake.application.add_import(fn)
+ end
+ end
+
+ end
+
+ DeprecatedCommands = Object.new.extend(DSL)
+
+ module DeprecatedObjectDSL # :nodoc:
+ DSL.private_instance_methods(false).each do |name|
+ line = __LINE__+1
+ class_eval %{
+ def #{name}(*args, &block)
+ unless Rake.application.options.ignore_deprecate
+ unless @rake_dsl_warning
+ $stderr.puts "WARNING: Global access to Rake DSL methods is deprecated. Please include"
+ $stderr.puts " ... Rake::DSL into classes and modules which use the Rake DSL methods."
+ @rake_dsl_warning = true
+ end
+ $stderr.puts "WARNING: DSL method \#{self.class}##{name} called at \#{caller.first}"
+ end
+ Rake::DeprecatedCommands.send(:#{name}, *args, &block)
+ end
+ private :#{name}
+ }, __FILE__, line
+ end
+ end
+
+ extend FileUtilsExt
+end
+
+self.extend Rake::DSL
+include Rake::DeprecatedObjectDSL
diff --git a/lib/rake/early_time.rb b/lib/rake/early_time.rb
new file mode 100644
index 0000000000..8c0e7d3339
--- /dev/null
+++ b/lib/rake/early_time.rb
@@ -0,0 +1,18 @@
+module Rake
+
+ # EarlyTime is a fake timestamp that occurs _before_ any other time value.
+ class EarlyTime
+ include Comparable
+ include Singleton
+
+ def <=>(other)
+ -1
+ end
+
+ def to_s
+ "<EARLY TIME>"
+ end
+ end
+
+ EARLY = EarlyTime.instance
+end
diff --git a/lib/rake/ext/core.rb b/lib/rake/ext/core.rb
new file mode 100644
index 0000000000..1f3a738906
--- /dev/null
+++ b/lib/rake/ext/core.rb
@@ -0,0 +1,27 @@
+######################################################################
+# Core extension library
+#
+class Module
+ # Check for an existing method in the current class before extending. IF
+ # the method already exists, then a warning is printed and the extension is
+ # not added. Otherwise the block is yielded and any definitions in the
+ # block will take effect.
+ #
+ # Usage:
+ #
+ # class String
+ # rake_extension("xyz") do
+ # def xyz
+ # ...
+ # end
+ # end
+ # end
+ #
+ def rake_extension(method)
+ if method_defined?(method)
+ $stderr.puts "WARNING: Possible conflict with Rake extension: #{self}##{method} already exists"
+ else
+ yield
+ end
+ end
+end
diff --git a/lib/rake/ext/module.rb b/lib/rake/ext/module.rb
new file mode 100644
index 0000000000..3f64aef6c8
--- /dev/null
+++ b/lib/rake/ext/module.rb
@@ -0,0 +1,39 @@
+require 'rake/ext/core'
+require 'rake/task'
+require 'rake/file_task'
+require 'rake/file_creation_task'
+require 'rake/application'
+require 'rake/task_manager'
+
+######################################################################
+# Rake extensions to Module.
+#
+class Module
+
+ # Rename the original handler to make it available.
+ alias :rake_original_const_missing :const_missing
+
+ # Check for deprecated uses of top level (i.e. in Object) uses of
+ # Rake class names. If someone tries to reference the constant
+ # name, display a warning and return the proper object. Using the
+ # --classic-namespace command line option will define these
+ # constants in Object and avoid this handler.
+ def const_missing(const_name)
+ case const_name
+ when :Task
+ Rake.application.const_warning(const_name)
+ Rake::Task
+ when :FileTask
+ Rake.application.const_warning(const_name)
+ Rake::FileTask
+ when :FileCreationTask
+ Rake.application.const_warning(const_name)
+ Rake::FileCreationTask
+ when :RakeApp
+ Rake.application.const_warning(const_name)
+ Rake::Application
+ else
+ rake_original_const_missing(const_name)
+ end
+ end
+end
diff --git a/lib/rake/ext/string.rb b/lib/rake/ext/string.rb
new file mode 100644
index 0000000000..fb22a9deb1
--- /dev/null
+++ b/lib/rake/ext/string.rb
@@ -0,0 +1,167 @@
+require 'rake/ext/core'
+
+######################################################################
+# Rake extension methods for String.
+#
+class String
+ rake_extension("ext") do
+ # Replace the file extension with +newext+. If there is no extension on
+ # the string, append the new extension to the end. If the new extension
+ # is not given, or is the empty string, remove any existing extension.
+ #
+ # +ext+ is a user added method for the String class.
+ def ext(newext='')
+ return self.dup if ['.', '..'].include? self
+ if newext != ''
+ newext = (newext =~ /^\./) ? newext : ("." + newext)
+ end
+ self.chomp(File.extname(self)) << newext
+ end
+ end
+
+ rake_extension("pathmap") do
+ # Explode a path into individual components. Used by +pathmap+.
+ def pathmap_explode
+ head, tail = File.split(self)
+ return [self] if head == self
+ return [tail] if head == '.' || tail == '/'
+ return [head, tail] if head == '/'
+ return head.pathmap_explode + [tail]
+ end
+ protected :pathmap_explode
+
+ # Extract a partial path from the path. Include +n+ directories from the
+ # front end (left hand side) if +n+ is positive. Include |+n+|
+ # directories from the back end (right hand side) if +n+ is negative.
+ def pathmap_partial(n)
+ dirs = File.dirname(self).pathmap_explode
+ partial_dirs =
+ if n > 0
+ dirs[0...n]
+ elsif n < 0
+ dirs.reverse[0...-n].reverse
+ else
+ "."
+ end
+ File.join(partial_dirs)
+ end
+ protected :pathmap_partial
+
+ # Preform the pathmap replacement operations on the given path. The
+ # patterns take the form 'pat1,rep1;pat2,rep2...'.
+ def pathmap_replace(patterns, &block)
+ result = self
+ patterns.split(';').each do |pair|
+ pattern, replacement = pair.split(',')
+ pattern = Regexp.new(pattern)
+ if replacement == '*' && block_given?
+ result = result.sub(pattern, &block)
+ elsif replacement
+ result = result.sub(pattern, replacement)
+ else
+ result = result.sub(pattern, '')
+ end
+ end
+ result
+ end
+ protected :pathmap_replace
+
+ # Map the path according to the given specification. The specification
+ # controls the details of the mapping. The following special patterns are
+ # recognized:
+ #
+ # * <b>%p</b> -- The complete path.
+ # * <b>%f</b> -- The base file name of the path, with its file extension,
+ # but without any directories.
+ # * <b>%n</b> -- The file name of the path without its file extension.
+ # * <b>%d</b> -- The directory list of the path.
+ # * <b>%x</b> -- The file extension of the path. An empty string if there
+ # is no extension.
+ # * <b>%X</b> -- Everything *but* the file extension.
+ # * <b>%s</b> -- The alternate file separator if defined, otherwise use
+ # the standard file separator.
+ # * <b>%%</b> -- A percent sign.
+ #
+ # The %d specifier can also have a numeric prefix (e.g. '%2d'). If the
+ # number is positive, only return (up to) +n+ directories in the path,
+ # starting from the left hand side. If +n+ is negative, return (up to)
+ # |+n+| directories from the right hand side of the path.
+ #
+ # Examples:
+ #
+ # 'a/b/c/d/file.txt'.pathmap("%2d") => 'a/b'
+ # 'a/b/c/d/file.txt'.pathmap("%-2d") => 'c/d'
+ #
+ # Also the %d, %p, %f, %n, %x, and %X operators can take a
+ # pattern/replacement argument to perform simple string substitutions on a
+ # particular part of the path. The pattern and replacement are separated
+ # by a comma and are enclosed by curly braces. The replacement spec comes
+ # after the % character but before the operator letter. (e.g.
+ # "%{old,new}d"). Multiple replacement specs should be separated by
+ # semi-colons (e.g. "%{old,new;src,bin}d").
+ #
+ # Regular expressions may be used for the pattern, and back refs may be
+ # used in the replacement text. Curly braces, commas and semi-colons are
+ # excluded from both the pattern and replacement text (let's keep parsing
+ # reasonable).
+ #
+ # For example:
+ #
+ # "src/org/onestepback/proj/A.java".pathmap("%{^src,bin}X.class")
+ #
+ # returns:
+ #
+ # "bin/org/onestepback/proj/A.class"
+ #
+ # If the replacement text is '*', then a block may be provided to perform
+ # some arbitrary calculation for the replacement.
+ #
+ # For example:
+ #
+ # "/path/to/file.TXT".pathmap("%X%{.*,*}x") { |ext|
+ # ext.downcase
+ # }
+ #
+ # Returns:
+ #
+ # "/path/to/file.txt"
+ #
+ def pathmap(spec=nil, &block)
+ return self if spec.nil?
+ result = ''
+ spec.scan(/%\{[^}]*\}-?\d*[sdpfnxX%]|%-?\d+d|%.|[^%]+/) do |frag|
+ case frag
+ when '%f'
+ result << File.basename(self)
+ when '%n'
+ result << File.basename(self).ext
+ when '%d'
+ result << File.dirname(self)
+ when '%x'
+ result << File.extname(self)
+ when '%X'
+ result << self.ext
+ when '%p'
+ result << self
+ when '%s'
+ result << (File::ALT_SEPARATOR || File::SEPARATOR)
+ when '%-'
+ # do nothing
+ when '%%'
+ result << "%"
+ when /%(-?\d+)d/
+ result << pathmap_partial($1.to_i)
+ when /^%\{([^}]*)\}(\d*[dpfnxX])/
+ patterns, operator = $1, $2
+ result << pathmap('%' + operator).pathmap_replace(patterns, &block)
+ when /^%/
+ fail ArgumentError, "Unknown pathmap specifier #{frag} in '#{spec}'"
+ else
+ result << frag
+ end
+ end
+ result
+ end
+ end
+end # class String
+
diff --git a/lib/rake/ext/time.rb b/lib/rake/ext/time.rb
new file mode 100644
index 0000000000..7877abf0ce
--- /dev/null
+++ b/lib/rake/ext/time.rb
@@ -0,0 +1,14 @@
+#--
+# Extensions to time to allow comparisons with an early time class.
+
+class Time
+ alias rake_original_time_compare :<=>
+ def <=>(other)
+ if Rake::EarlyTime === other
+ - other.<=>(self)
+ else
+ rake_original_time_compare(other)
+ end
+ end
+end
+
diff --git a/lib/rake/file_creation_task.rb b/lib/rake/file_creation_task.rb
new file mode 100644
index 0000000000..c87e2192bb
--- /dev/null
+++ b/lib/rake/file_creation_task.rb
@@ -0,0 +1,24 @@
+require 'rake/file_task'
+require 'rake/early_time'
+
+module Rake
+
+ # A FileCreationTask is a file task that when used as a dependency will be
+ # needed if and only if the file has not been created. Once created, it is
+ # not re-triggered if any of its dependencies are newer, nor does trigger
+ # any rebuilds of tasks that depend on it whenever it is updated.
+ #
+ class FileCreationTask < FileTask
+ # Is this file task needed? Yes if it doesn't exist.
+ def needed?
+ ! File.exist?(name)
+ end
+
+ # Time stamp for file creation task. This time stamp is earlier
+ # than any other time stamp.
+ def timestamp
+ Rake::EARLY
+ end
+ end
+
+end
diff --git a/lib/rake/file_list.rb b/lib/rake/file_list.rb
new file mode 100644
index 0000000000..e49ccd0147
--- /dev/null
+++ b/lib/rake/file_list.rb
@@ -0,0 +1,403 @@
+require 'rake/cloneable'
+require 'rake/file_utils_ext'
+require 'rake/pathmap'
+
+######################################################################
+module Rake
+
+ # #########################################################################
+ # A FileList is essentially an array with a few helper methods defined to
+ # make file manipulation a bit easier.
+ #
+ # FileLists are lazy. When given a list of glob patterns for possible files
+ # to be included in the file list, instead of searching the file structures
+ # to find the files, a FileList holds the pattern for latter use.
+ #
+ # This allows us to define a number of FileList to match any number of
+ # files, but only search out the actual files when then FileList itself is
+ # actually used. The key is that the first time an element of the
+ # FileList/Array is requested, the pending patterns are resolved into a real
+ # list of file names.
+ #
+ class FileList
+
+ include Cloneable
+
+ # == Method Delegation
+ #
+ # The lazy evaluation magic of FileLists happens by implementing all the
+ # array specific methods to call +resolve+ before delegating the heavy
+ # lifting to an embedded array object (@items).
+ #
+ # In addition, there are two kinds of delegation calls. The regular kind
+ # delegates to the @items array and returns the result directly. Well,
+ # almost directly. It checks if the returned value is the @items object
+ # itself, and if so will return the FileList object instead.
+ #
+ # The second kind of delegation call is used in methods that normally
+ # return a new Array object. We want to capture the return value of these
+ # methods and wrap them in a new FileList object. We enumerate these
+ # methods in the +SPECIAL_RETURN+ list below.
+
+ # List of array methods (that are not in +Object+) that need to be
+ # delegated.
+ ARRAY_METHODS = (Array.instance_methods - Object.instance_methods).map { |n| n.to_s }
+
+ # List of additional methods that must be delegated.
+ MUST_DEFINE = %w[to_a inspect <=>]
+
+ # List of methods that should not be delegated here (we define special
+ # versions of them explicitly below).
+ MUST_NOT_DEFINE = %w[to_a to_ary partition *]
+
+ # List of delegated methods that return new array values which need
+ # wrapping.
+ SPECIAL_RETURN = %w[
+ map collect sort sort_by select find_all reject grep
+ compact flatten uniq values_at
+ + - & |
+ ]
+
+ DELEGATING_METHODS = (ARRAY_METHODS + MUST_DEFINE - MUST_NOT_DEFINE).collect{ |s| s.to_s }.sort.uniq
+
+ # Now do the delegation.
+ DELEGATING_METHODS.each_with_index do |sym, i|
+ if SPECIAL_RETURN.include?(sym)
+ ln = __LINE__+1
+ class_eval %{
+ def #{sym}(*args, &block)
+ resolve
+ result = @items.send(:#{sym}, *args, &block)
+ FileList.new.import(result)
+ end
+ }, __FILE__, ln
+ else
+ ln = __LINE__+1
+ class_eval %{
+ def #{sym}(*args, &block)
+ resolve
+ result = @items.send(:#{sym}, *args, &block)
+ result.object_id == @items.object_id ? self : result
+ end
+ }, __FILE__, ln
+ end
+ end
+
+ # Create a file list from the globbable patterns given. If you wish to
+ # perform multiple includes or excludes at object build time, use the
+ # "yield self" pattern.
+ #
+ # Example:
+ # file_list = FileList.new('lib/**/*.rb', 'test/test*.rb')
+ #
+ # pkg_files = FileList.new('lib/**/*') do |fl|
+ # fl.exclude(/\bCVS\b/)
+ # end
+ #
+ def initialize(*patterns)
+ @pending_add = []
+ @pending = false
+ @exclude_patterns = DEFAULT_IGNORE_PATTERNS.dup
+ @exclude_procs = DEFAULT_IGNORE_PROCS.dup
+ @items = []
+ patterns.each { |pattern| include(pattern) }
+ yield self if block_given?
+ end
+
+ # Add file names defined by glob patterns to the file list. If an array
+ # is given, add each element of the array.
+ #
+ # Example:
+ # file_list.include("*.java", "*.cfg")
+ # file_list.include %w( math.c lib.h *.o )
+ #
+ def include(*filenames)
+ # TODO: check for pending
+ filenames.each do |fn|
+ if fn.respond_to? :to_ary
+ include(*fn.to_ary)
+ else
+ @pending_add << fn
+ end
+ end
+ @pending = true
+ self
+ end
+ alias :add :include
+
+ # Register a list of file name patterns that should be excluded from the
+ # list. Patterns may be regular expressions, glob patterns or regular
+ # strings. In addition, a block given to exclude will remove entries that
+ # return true when given to the block.
+ #
+ # Note that glob patterns are expanded against the file system. If a file
+ # is explicitly added to a file list, but does not exist in the file
+ # system, then an glob pattern in the exclude list will not exclude the
+ # file.
+ #
+ # Examples:
+ # FileList['a.c', 'b.c'].exclude("a.c") => ['b.c']
+ # FileList['a.c', 'b.c'].exclude(/^a/) => ['b.c']
+ #
+ # If "a.c" is a file, then ...
+ # FileList['a.c', 'b.c'].exclude("a.*") => ['b.c']
+ #
+ # If "a.c" is not a file, then ...
+ # FileList['a.c', 'b.c'].exclude("a.*") => ['a.c', 'b.c']
+ #
+ def exclude(*patterns, &block)
+ patterns.each do |pat|
+ @exclude_patterns << pat
+ end
+ if block_given?
+ @exclude_procs << block
+ end
+ resolve_exclude if ! @pending
+ self
+ end
+
+
+ # Clear all the exclude patterns so that we exclude nothing.
+ def clear_exclude
+ @exclude_patterns = []
+ @exclude_procs = []
+ self
+ end
+
+ # Define equality.
+ def ==(array)
+ to_ary == array
+ end
+
+ # Return the internal array object.
+ def to_a
+ resolve
+ @items
+ end
+
+ # Return the internal array object.
+ def to_ary
+ to_a
+ end
+
+ # Lie about our class.
+ def is_a?(klass)
+ klass == Array || super(klass)
+ end
+ alias kind_of? is_a?
+
+ # Redefine * to return either a string or a new file list.
+ def *(other)
+ result = @items * other
+ case result
+ when Array
+ FileList.new.import(result)
+ else
+ result
+ end
+ end
+
+ # Resolve all the pending adds now.
+ def resolve
+ if @pending
+ @pending = false
+ @pending_add.each do |fn| resolve_add(fn) end
+ @pending_add = []
+ resolve_exclude
+ end
+ self
+ end
+
+ def resolve_add(fn)
+ case fn
+ when %r{[*?\[\{]}
+ add_matching(fn)
+ else
+ self << fn
+ end
+ end
+ private :resolve_add
+
+ def resolve_exclude
+ reject! { |fn| exclude?(fn) }
+ self
+ end
+ private :resolve_exclude
+
+ # Return a new FileList with the results of running +sub+ against each
+ # element of the original list.
+ #
+ # Example:
+ # FileList['a.c', 'b.c'].sub(/\.c$/, '.o') => ['a.o', 'b.o']
+ #
+ def sub(pat, rep)
+ inject(FileList.new) { |res, fn| res << fn.sub(pat,rep) }
+ end
+
+ # Return a new FileList with the results of running +gsub+ against each
+ # element of the original list.
+ #
+ # Example:
+ # FileList['lib/test/file', 'x/y'].gsub(/\//, "\\")
+ # => ['lib\\test\\file', 'x\\y']
+ #
+ def gsub(pat, rep)
+ inject(FileList.new) { |res, fn| res << fn.gsub(pat,rep) }
+ end
+
+ # Same as +sub+ except that the original file list is modified.
+ def sub!(pat, rep)
+ each_with_index { |fn, i| self[i] = fn.sub(pat,rep) }
+ self
+ end
+
+ # Same as +gsub+ except that the original file list is modified.
+ def gsub!(pat, rep)
+ each_with_index { |fn, i| self[i] = fn.gsub(pat,rep) }
+ self
+ end
+
+ # Apply the pathmap spec to each of the included file names, returning a
+ # new file list with the modified paths. (See String#pathmap for
+ # details.)
+ def pathmap(spec=nil)
+ collect { |fn| fn.pathmap(spec) }
+ end
+
+ # Return a new FileList with <tt>String#ext</tt> method applied to
+ # each member of the array.
+ #
+ # This method is a shortcut for:
+ #
+ # array.collect { |item| item.ext(newext) }
+ #
+ # +ext+ is a user added method for the Array class.
+ def ext(newext='')
+ collect { |fn| fn.ext(newext) }
+ end
+
+
+ # Grep each of the files in the filelist using the given pattern. If a
+ # block is given, call the block on each matching line, passing the file
+ # name, line number, and the matching line of text. If no block is given,
+ # a standard emacs style file:linenumber:line message will be printed to
+ # standard out. Returns the number of matched items.
+ def egrep(pattern, *options)
+ matched = 0
+ each do |fn|
+ begin
+ open(fn, "r:ascii-8bit", *options) do |inf|
+ count = 0
+ inf.each do |line|
+ count += 1
+ if pattern.match(line)
+ matched += 1
+ if block_given?
+ yield fn, count, line
+ else
+ puts "#{fn}:#{count}:#{line}"
+ end
+ end
+ end
+ end
+ rescue StandardError => ex
+ $stderr.puts "Error while processing '#{fn}': #{ex}"
+ end
+ end
+ matched
+ end
+
+ # Return a new file list that only contains file names from the current
+ # file list that exist on the file system.
+ def existing
+ select { |fn| File.exist?(fn) }
+ end
+
+ # Modify the current file list so that it contains only file name that
+ # exist on the file system.
+ def existing!
+ resolve
+ @items = @items.select { |fn| File.exist?(fn) }
+ self
+ end
+
+ # FileList version of partition. Needed because the nested arrays should
+ # be FileLists in this version.
+ def partition(&block) # :nodoc:
+ resolve
+ result = @items.partition(&block)
+ [
+ FileList.new.import(result[0]),
+ FileList.new.import(result[1]),
+ ]
+ end
+
+ # Convert a FileList to a string by joining all elements with a space.
+ def to_s
+ resolve
+ self.join(' ')
+ end
+
+ # Add matching glob patterns.
+ def add_matching(pattern)
+ Dir[pattern].each do |fn|
+ self << fn unless exclude?(fn)
+ end
+ end
+ private :add_matching
+
+ # Should the given file name be excluded?
+ def exclude?(fn)
+ return true if @exclude_patterns.any? do |pat|
+ case pat
+ when Regexp
+ fn =~ pat
+ when /[*?]/
+ File.fnmatch?(pat, fn, File::FNM_PATHNAME)
+ else
+ fn == pat
+ end
+ end
+ @exclude_procs.any? { |p| p.call(fn) }
+ end
+
+ DEFAULT_IGNORE_PATTERNS = [
+ /(^|[\/\\])CVS([\/\\]|$)/,
+ /(^|[\/\\])\.svn([\/\\]|$)/,
+ /\.bak$/,
+ /~$/
+ ]
+ DEFAULT_IGNORE_PROCS = [
+ proc { |fn| fn =~ /(^|[\/\\])core$/ && ! File.directory?(fn) }
+ ]
+
+ def import(array)
+ @items = array
+ self
+ end
+
+ class << self
+ # Create a new file list including the files listed. Similar to:
+ #
+ # FileList.new(*args)
+ def [](*args)
+ new(*args)
+ end
+ end
+ end
+end
+
+module Rake
+ class << self
+
+ # Yield each file or directory component.
+ def each_dir_parent(dir) # :nodoc:
+ old_length = nil
+ while dir != '.' && dir.length != old_length
+ yield(dir)
+ old_length = dir.length
+ dir = File.dirname(dir)
+ end
+ end
+ end
+end # module Rake
diff --git a/lib/rake/file_task.rb b/lib/rake/file_task.rb
new file mode 100644
index 0000000000..78902a86fd
--- /dev/null
+++ b/lib/rake/file_task.rb
@@ -0,0 +1,47 @@
+require 'rake/task.rb'
+require 'rake/early_time'
+
+module Rake
+ # #########################################################################
+ # A FileTask is a task that includes time based dependencies. If any of a
+ # FileTask's prerequisites have a timestamp that is later than the file
+ # represented by this task, then the file must be rebuilt (using the
+ # supplied actions).
+ #
+ class FileTask < Task
+
+ # Is this file task needed? Yes if it doesn't exist, or if its time stamp
+ # is out of date.
+ def needed?
+ ! File.exist?(name) || out_of_date?(timestamp)
+ end
+
+ # Time stamp for file task.
+ def timestamp
+ if File.exist?(name)
+ File.mtime(name.to_s)
+ else
+ Rake::EARLY
+ end
+ end
+
+ private
+
+ # Are there any prerequisites with a later time than the given time stamp?
+ def out_of_date?(stamp)
+ @prerequisites.any? { |n| application[n, @scope].timestamp > stamp}
+ end
+
+ # ----------------------------------------------------------------
+ # Task class methods.
+ #
+ class << self
+ # Apply the scope to the task name according to the rules for this kind
+ # of task. File based tasks ignore the scope when creating the name.
+ def scope_name(scope, task_name)
+ task_name
+ end
+ end
+ end
+end
+
diff --git a/lib/rake/file_utils.rb b/lib/rake/file_utils.rb
new file mode 100644
index 0000000000..e02d541ab8
--- /dev/null
+++ b/lib/rake/file_utils.rb
@@ -0,0 +1,114 @@
+require 'rbconfig'
+require 'fileutils'
+
+#--
+# This a FileUtils extension that defines several additional commands to be
+# added to the FileUtils utility functions.
+module FileUtils
+ # Path to the currently running Ruby program
+ RUBY = File.join(
+ RbConfig::CONFIG['bindir'],
+ RbConfig::CONFIG['ruby_install_name'] + RbConfig::CONFIG['EXEEXT']).
+ sub(/.*\s.*/m, '"\&"')
+
+ OPT_TABLE['sh'] = %w(noop verbose)
+ OPT_TABLE['ruby'] = %w(noop verbose)
+
+ # Run the system command +cmd+. If multiple arguments are given the command
+ # is not run with the shell (same semantics as Kernel::exec and
+ # Kernel::system).
+ #
+ # Example:
+ # sh %{ls -ltr}
+ #
+ # sh 'ls', 'file with spaces'
+ #
+ # # check exit status after command runs
+ # sh %{grep pattern file} do |ok, res|
+ # if ! ok
+ # puts "pattern not found (status = #{res.exitstatus})"
+ # end
+ # end
+ #
+ def sh(*cmd, &block)
+ options = (Hash === cmd.last) ? cmd.pop : {}
+ shell_runner = block_given? ? block : create_shell_runner(cmd)
+ set_verbose_option(options)
+ options[:noop] ||= Rake::FileUtilsExt.nowrite_flag
+ Rake.rake_check_options options, :noop, :verbose
+ Rake.rake_output_message cmd.join(" ") if options[:verbose]
+
+ unless options[:noop]
+ res = rake_system(*cmd)
+ status = $?
+ status = PseudoStatus.new(1) if !res && status.nil?
+ shell_runner.call(res, status)
+ end
+ end
+
+ def create_shell_runner(cmd) # :nodoc:
+ show_command = cmd.join(" ")
+ show_command = show_command[0,42] + "..." unless $trace
+ lambda { |ok, status|
+ ok or fail "Command failed with status (#{status.exitstatus}): [#{show_command}]"
+ }
+ end
+ private :create_shell_runner
+
+ def set_verbose_option(options) # :nodoc:
+ unless options.key? :verbose
+ options[:verbose] =
+ Rake::FileUtilsExt.verbose_flag == Rake::FileUtilsExt::DEFAULT ||
+ Rake::FileUtilsExt.verbose_flag
+ end
+ end
+ private :set_verbose_option
+
+ def rake_system(*cmd) # :nodoc:
+ Rake::AltSystem.system(*cmd)
+ end
+ private :rake_system
+
+ # Run a Ruby interpreter with the given arguments.
+ #
+ # Example:
+ # ruby %{-pe '$_.upcase!' <README}
+ #
+ def ruby(*args,&block)
+ options = (Hash === args.last) ? args.pop : {}
+ if args.length > 1 then
+ sh(*([RUBY] + args + [options]), &block)
+ else
+ sh("#{RUBY} #{args.first}", options, &block)
+ end
+ end
+
+ LN_SUPPORTED = [true]
+
+ # Attempt to do a normal file link, but fall back to a copy if the link
+ # fails.
+ def safe_ln(*args)
+ unless LN_SUPPORTED[0]
+ cp(*args)
+ else
+ begin
+ ln(*args)
+ rescue StandardError, NotImplementedError
+ LN_SUPPORTED[0] = false
+ cp(*args)
+ end
+ end
+ end
+
+ # Split a file path into individual directory names.
+ #
+ # Example:
+ # split_all("a/b/c") => ['a', 'b', 'c']
+ #
+ def split_all(path)
+ head, tail = File.split(path)
+ return [tail] if head == '.' || tail == '/'
+ return [head, tail] if head == '/'
+ return split_all(head) + [tail]
+ end
+end
diff --git a/lib/rake/file_utils_ext.rb b/lib/rake/file_utils_ext.rb
new file mode 100644
index 0000000000..557420df80
--- /dev/null
+++ b/lib/rake/file_utils_ext.rb
@@ -0,0 +1,145 @@
+require 'rake/file_utils'
+
+module Rake
+ #
+ # FileUtilsExt provides a custom version of the FileUtils methods
+ # that respond to the <tt>verbose</tt> and <tt>nowrite</tt>
+ # commands.
+ #
+ module FileUtilsExt
+ include FileUtils
+
+ class << self
+ attr_accessor :verbose_flag, :nowrite_flag
+ end
+
+ DEFAULT = Object.new
+
+ FileUtilsExt.verbose_flag = DEFAULT
+ FileUtilsExt.nowrite_flag = false
+
+ $fileutils_verbose = true
+ $fileutils_nowrite = false
+
+ FileUtils::OPT_TABLE.each do |name, opts|
+ default_options = []
+ if opts.include?(:verbose) || opts.include?("verbose")
+ default_options << ':verbose => FileUtilsExt.verbose_flag'
+ end
+ if opts.include?(:noop) || opts.include?("noop")
+ default_options << ':noop => FileUtilsExt.nowrite_flag'
+ end
+
+ next if default_options.empty?
+ module_eval(<<-EOS, __FILE__, __LINE__ + 1)
+ def #{name}( *args, &block )
+ super(
+ *rake_merge_option(args,
+ #{default_options.join(', ')}
+ ), &block)
+ end
+ EOS
+ end
+
+ # Get/set the verbose flag controlling output from the FileUtils
+ # utilities. If verbose is true, then the utility method is
+ # echoed to standard output.
+ #
+ # Examples:
+ # verbose # return the current value of the
+ # # verbose flag
+ # verbose(v) # set the verbose flag to _v_.
+ # verbose(v) { code } # Execute code with the verbose flag set
+ # # temporarily to _v_. Return to the
+ # # original value when code is done.
+ def verbose(value=nil)
+ oldvalue = FileUtilsExt.verbose_flag
+ FileUtilsExt.verbose_flag = value unless value.nil?
+ if block_given?
+ begin
+ yield
+ ensure
+ FileUtilsExt.verbose_flag = oldvalue
+ end
+ end
+ FileUtilsExt.verbose_flag
+ end
+
+ # Get/set the nowrite flag controlling output from the FileUtils
+ # utilities. If verbose is true, then the utility method is
+ # echoed to standard output.
+ #
+ # Examples:
+ # nowrite # return the current value of the
+ # # nowrite flag
+ # nowrite(v) # set the nowrite flag to _v_.
+ # nowrite(v) { code } # Execute code with the nowrite flag set
+ # # temporarily to _v_. Return to the
+ # # original value when code is done.
+ def nowrite(value=nil)
+ oldvalue = FileUtilsExt.nowrite_flag
+ FileUtilsExt.nowrite_flag = value unless value.nil?
+ if block_given?
+ begin
+ yield
+ ensure
+ FileUtilsExt.nowrite_flag = oldvalue
+ end
+ end
+ oldvalue
+ end
+
+ # Use this function to prevent potentially destructive ruby code
+ # from running when the :nowrite flag is set.
+ #
+ # Example:
+ #
+ # when_writing("Building Project") do
+ # project.build
+ # end
+ #
+ # The following code will build the project under normal
+ # conditions. If the nowrite(true) flag is set, then the example
+ # will print:
+ #
+ # DRYRUN: Building Project
+ #
+ # instead of actually building the project.
+ #
+ def when_writing(msg=nil)
+ if FileUtilsExt.nowrite_flag
+ $stderr.puts "DRYRUN: #{msg}" if msg
+ else
+ yield
+ end
+ end
+
+ # Merge the given options with the default values.
+ def rake_merge_option(args, defaults)
+ if Hash === args.last
+ defaults.update(args.last)
+ args.pop
+ end
+ args.push defaults
+ args
+ end
+
+ # Send the message to the default rake output (which is $stderr).
+ def rake_output_message(message)
+ $stderr.puts(message)
+ end
+
+ # Check that the options do not contain options not listed in
+ # +optdecl+. An ArgumentError exception is thrown if non-declared
+ # options are found.
+ def rake_check_options(options, *optdecl)
+ h = options.dup
+ optdecl.each do |name|
+ h.delete name
+ end
+ raise ArgumentError, "no such option: #{h.keys.join(' ')}" unless h.empty?
+ end
+
+ extend self
+ end
+end
diff --git a/lib/rake/gempackagetask.rb b/lib/rake/gempackagetask.rb
index 3a99ff2b87..5f1fc4def8 100644
--- a/lib/rake/gempackagetask.rb
+++ b/lib/rake/gempackagetask.rb
@@ -1,95 +1,15 @@
-# Define a package task library to aid in the definition of GEM
-# packages.
+# rake/gempackagetask is deprecated in favor of rubygems/package_task
-require 'rubygems'
-require 'rake'
-require 'rake/packagetask'
-require 'rubygems/user_interaction'
-require 'rubygems/builder'
-
-module Rake
-
- # Create a package based upon a Gem spec. Gem packages, as well as
- # zip files and tar/gzipped packages can be produced by this task.
- #
- # In addition to the Rake targets generated by PackageTask, a
- # GemPackageTask will also generate the following tasks:
- #
- # [<b>"<em>package_dir</em>/<em>name</em>-<em>version</em>.gem"</b>]
- # Create a Ruby GEM package with the given name and version.
- #
- # Example using a Ruby GEM spec:
- #
- # require 'rubygems'
- #
- # spec = Gem::Specification.new do |s|
- # s.platform = Gem::Platform::RUBY
- # s.summary = "Ruby based make-like utility."
- # s.name = 'rake'
- # s.version = PKG_VERSION
- # s.requirements << 'none'
- # s.require_path = 'lib'
- # s.autorequire = 'rake'
- # s.files = PKG_FILES
- # s.description = <<EOF
- # Rake is a Make-like program implemented in Ruby. Tasks
- # and dependencies are specified in standard Ruby syntax.
- # EOF
- # end
- #
- # Rake::GemPackageTask.new(spec) do |pkg|
- # pkg.need_zip = true
- # pkg.need_tar = true
- # end
- #
- class GemPackageTask < PackageTask
- # Ruby GEM spec containing the metadata for this package. The
- # name, version and package_files are automatically determined
- # from the GEM spec and don't need to be explicitly provided.
- attr_accessor :gem_spec
+warn 'rake/gempackagetask is deprecated. Use rubygems/package_task instead'
- # Create a GEM Package task library. Automatically define the gem
- # if a block is given. If no block is supplied, then +define+
- # needs to be called to define the task.
- def initialize(gem_spec)
- init(gem_spec)
- yield self if block_given?
- define if block_given?
- end
-
- # Initialization tasks without the "yield self" or define
- # operations.
- def init(gem)
- super(gem.name, gem.version)
- @gem_spec = gem
- @package_files += gem_spec.files if gem_spec.files
- end
+require 'rubygems'
+require 'rubygems/package_task'
- # Create the Rake tasks and actions specified by this
- # GemPackageTask. (+define+ is automatically called if a block is
- # given to +new+).
- def define
- super
- task :package => [:gem]
- desc "Build the gem file #{gem_file}"
- task :gem => ["#{package_dir}/#{gem_file}"]
- file "#{package_dir}/#{gem_file}" => [package_dir] + @gem_spec.files do
- when_writing("Creating GEM") {
- Gem::Builder.new(gem_spec).build
- verbose(true) {
- mv gem_file, "#{package_dir}/#{gem_file}"
- }
- }
- end
- end
+require 'rake'
- def gem_file
- if @gem_spec.platform == Gem::Platform::RUBY
- "#{package_name}.gem"
- else
- "#{package_name}-#{@gem_spec.platform}.gem"
- end
- end
+# :stopdoc:
- end
+module Rake
+ GemPackageTask = Gem::PackageTask
end
+
diff --git a/lib/rake/invocation_chain.rb b/lib/rake/invocation_chain.rb
new file mode 100644
index 0000000000..8a01ab4c29
--- /dev/null
+++ b/lib/rake/invocation_chain.rb
@@ -0,0 +1,51 @@
+module Rake
+
+ ####################################################################
+ # InvocationChain tracks the chain of task invocations to detect
+ # circular dependencies.
+ class InvocationChain
+ def initialize(value, tail)
+ @value = value
+ @tail = tail
+ end
+
+ def member?(obj)
+ @value == obj || @tail.member?(obj)
+ end
+
+ def append(value)
+ if member?(value)
+ fail RuntimeError, "Circular dependency detected: #{to_s} => #{value}"
+ end
+ self.class.new(value, self)
+ end
+
+ def to_s
+ "#{prefix}#{@value}"
+ end
+
+ def self.append(value, chain)
+ chain.append(value)
+ end
+
+ private
+
+ def prefix
+ "#{@tail.to_s} => "
+ end
+
+ class EmptyInvocationChain
+ def member?(obj)
+ false
+ end
+ def append(value)
+ InvocationChain.new(value, self)
+ end
+ def to_s
+ "TOP"
+ end
+ end
+
+ EMPTY = EmptyInvocationChain.new
+ end
+end
diff --git a/lib/rake/invocation_exception_mixin.rb b/lib/rake/invocation_exception_mixin.rb
new file mode 100644
index 0000000000..84ff3353ba
--- /dev/null
+++ b/lib/rake/invocation_exception_mixin.rb
@@ -0,0 +1,16 @@
+module Rake
+ module InvocationExceptionMixin
+ # Return the invocation chain (list of Rake tasks) that were in
+ # effect when this exception was detected by rake. May be null if
+ # no tasks were active.
+ def chain
+ @rake_invocation_chain ||= nil
+ end
+
+ # Set the invocation chain in effect when this exception was
+ # detected.
+ def chain=(value)
+ @rake_invocation_chain = value
+ end
+ end
+end
diff --git a/lib/rake/lib/project.rake b/lib/rake/lib/project.rake
new file mode 100644
index 0000000000..a5497328a7
--- /dev/null
+++ b/lib/rake/lib/project.rake
@@ -0,0 +1,21 @@
+task "create:project" => ["lib", "test", "Rakefile"]
+
+directory "lib"
+directory "test"
+
+file "Rakefile" do
+ File.open("Rakefile", "w") do |out|
+ out.puts %{# -*- ruby -*-
+
+require 'rake/clean'
+require 'rake/testtask'
+
+task :default => :test
+
+Rake::TestTask.new do |t|
+ t.verbose = false
+ t.test_files = FileList['test/test_*.rb']
+end
+}
+ end
+end
diff --git a/lib/rake/loaders/makefile.rb b/lib/rake/loaders/makefile.rb
index c77d428596..4ece4323af 100644
--- a/lib/rake/loaders/makefile.rb
+++ b/lib/rake/loaders/makefile.rb
@@ -2,11 +2,13 @@ module Rake
# Makefile loader to be used with the import file loader.
class MakefileLoader
+ include Rake::DSL
+
SPACE_MARK = "\0"
# Load the makefile dependencies in +fn+.
def load(fn)
- lines = open(fn) {|mf| mf.read}
+ lines = File.read fn
lines.gsub!(/\\ /, SPACE_MARK)
lines.gsub!(/#[^\n]*\n/m, "")
lines.gsub!(/\\\n/, ' ')
@@ -21,7 +23,7 @@ module Rake
def process_line(line)
file_tasks, args = line.split(':', 2)
return if args.nil?
- dependents = args.split
+ dependents = args.split.map { |d| respace(d) }
file_tasks.scan(/\S+/) do |file_task|
file_task = respace(file_task)
file file_task => dependents
@@ -29,7 +31,7 @@ module Rake
end
def respace(str)
- str.tr(SPACE_MARK, ' ')
+ str.tr SPACE_MARK, ' '
end
end
diff --git a/lib/rake/multi_task.rb b/lib/rake/multi_task.rb
new file mode 100644
index 0000000000..21c8de732f
--- /dev/null
+++ b/lib/rake/multi_task.rb
@@ -0,0 +1,16 @@
+module Rake
+
+ # Same as a regular task, but the immediate prerequisites are done in
+ # parallel using Ruby threads.
+ #
+ class MultiTask < Task
+ private
+ def invoke_prerequisites(args, invocation_chain)
+ threads = @prerequisites.collect { |p|
+ Thread.new(p) { |r| application[r, @scope].invoke_with_call_chain(args, invocation_chain) }
+ }
+ threads.each { |t| t.join }
+ end
+ end
+
+end
diff --git a/lib/rake/name_space.rb b/lib/rake/name_space.rb
new file mode 100644
index 0000000000..e1cc0940b8
--- /dev/null
+++ b/lib/rake/name_space.rb
@@ -0,0 +1,25 @@
+module Rake
+
+ # The NameSpace class will lookup task names in the the scope
+ # defined by a +namespace+ command.
+ #
+ class NameSpace
+
+ # Create a namespace lookup object using the given task manager
+ # and the list of scopes.
+ def initialize(task_manager, scope_list)
+ @task_manager = task_manager
+ @scope = scope_list.dup
+ end
+
+ # Lookup a task named +name+ in the namespace.
+ def [](name)
+ @task_manager.lookup(name, @scope)
+ end
+
+ # Return the list of tasks defined in this and nested namespaces.
+ def tasks
+ @task_manager.tasks_in_scope(@scope)
+ end
+ end
+end
diff --git a/lib/rake/packagetask.rb b/lib/rake/packagetask.rb
index de14fc77d8..08c1a8c025 100644
--- a/lib/rake/packagetask.rb
+++ b/lib/rake/packagetask.rb
@@ -1,4 +1,4 @@
-# Define a package task libarary to aid in the definition of
+# Define a package task library to aid in the definition of
# redistributable package files.
require 'rake'
@@ -72,7 +72,10 @@ module Rake
# Zip command for zipped archives. The default is 'zip'.
attr_accessor :zip_command
- # Create a Package Task with the given name and version.
+ # Create a Package Task with the given name and version. Use +:noversion+
+ # as the version to build a package without a version or to provide a
+ # fully-versioned package name.
+
def initialize(name=nil, version=nil)
init(name, version)
yield self if block_given?
diff --git a/lib/rake/pathmap.rb b/lib/rake/pathmap.rb
new file mode 100644
index 0000000000..2275724341
--- /dev/null
+++ b/lib/rake/pathmap.rb
@@ -0,0 +1 @@
+require 'rake/ext/string'
diff --git a/lib/rake/pseudo_status.rb b/lib/rake/pseudo_status.rb
new file mode 100644
index 0000000000..b58df3da18
--- /dev/null
+++ b/lib/rake/pseudo_status.rb
@@ -0,0 +1,24 @@
+module Rake
+
+ ####################################################################
+ # Exit status class for times the system just gives us a nil.
+ class PseudoStatus
+ attr_reader :exitstatus
+ def initialize(code=0)
+ @exitstatus = code
+ end
+ def to_i
+ @exitstatus << 8
+ end
+ def >>(n)
+ to_i >> n
+ end
+ def stopped?
+ false
+ end
+ def exited?
+ true
+ end
+ end
+
+end
diff --git a/lib/rake/rake_module.rb b/lib/rake/rake_module.rb
new file mode 100644
index 0000000000..a9d210c637
--- /dev/null
+++ b/lib/rake/rake_module.rb
@@ -0,0 +1,29 @@
+require 'rake/application'
+
+module Rake
+
+ # Rake module singleton methods.
+ #
+ class << self
+ # Current Rake Application
+ def application
+ @application ||= Rake::Application.new
+ end
+
+ # Set the current Rake application object.
+ def application=(app)
+ @application = app
+ end
+
+ # Return the original directory where the Rake application was started.
+ def original_dir
+ application.original_dir
+ end
+
+ # Load a rakefile.
+ def load_rakefile(path)
+ load(path)
+ end
+ end
+
+end
diff --git a/lib/rake/rake_test_loader.rb b/lib/rake/rake_test_loader.rb
index 8d7dad3c94..7e3a6b3f35 100644
--- a/lib/rake/rake_test_loader.rb
+++ b/lib/rake/rake_test_loader.rb
@@ -1,5 +1,22 @@
-#!/usr/bin/env ruby
+require 'rake'
# Load the test files from the command line.
+argv = ARGV.select do |argument|
+ case argument
+ when /^-/ then
+ argument
+ when /\*/ then
+ FileList[argument].to_a.each do |file|
+ require File.expand_path file
+ end
+
+ false
+ else
+ require File.expand_path argument
+
+ false
+ end
+end
+
+ARGV.replace argv
-ARGV.each { |f| load f unless f =~ /^-/ }
diff --git a/lib/rake/rdoctask.rb b/lib/rake/rdoctask.rb
index de020f4d87..b6ae224a9e 100644
--- a/lib/rake/rdoctask.rb
+++ b/lib/rake/rdoctask.rb
@@ -1,207 +1,234 @@
-require 'rake'
-require 'rake/tasklib'
-
-module Rake
-
- # Create a documentation task that will generate the RDoc files for
- # a project.
- #
- # The RDocTask will create the following targets:
- #
- # [<b>:<em>rdoc</em></b>]
- # Main task for this RDOC task.
- #
- # [<b>:clobber_<em>rdoc</em></b>]
- # Delete all the rdoc files. This target is automatically
- # added to the main clobber target.
- #
- # [<b>:re<em>rdoc</em></b>]
- # Rebuild the rdoc files from scratch, even if they are not out
- # of date.
- #
- # Simple example:
- #
- # Rake::RDocTask.new do |rd|
- # rd.main = "README.rdoc"
- # rd.rdoc_files.include("README.rdoc", "lib/**/*.rb")
- # end
- #
- # The +rd+ object passed to the block is an RDocTask object. See the
- # attributes list for the RDocTask class for available customization options.
- #
- # == Specifying different task names
- #
- # You may wish to give the task a different name, such as if you are
- # generating two sets of documentation. For instance, if you want to have a
- # development set of documentation including private methods:
- #
- # Rake::RDocTask.new(:rdoc_dev) do |rd|
- # rd.main = "README.doc"
- # rd.rdoc_files.include("README.rdoc", "lib/**/*.rb")
- # rd.options << "--all"
- # end
- #
- # The tasks would then be named :<em>rdoc_dev</em>, :clobber_<em>rdoc_dev</em>, and
- # :re<em>rdoc_dev</em>.
- #
- # If you wish to have completely different task names, then pass a Hash as
- # first argument. With the <tt>:rdoc</tt>, <tt>:clobber_rdoc</tt> and
- # <tt>:rerdoc</tt> options, you can customize the task names to your liking.
- # For example:
- #
- # Rake::RDocTask.new(:rdoc => "rdoc", :clobber_rdoc => "rdoc:clean", :rerdoc => "rdoc:force")
- #
- # This will create the tasks <tt>:rdoc</tt>, <tt>:rdoc_clean</tt> and
- # <tt>:rdoc:force</tt>.
- #
- class RDocTask < TaskLib
- # Name of the main, top level task. (default is :rdoc)
- attr_accessor :name
-
- # Name of directory to receive the html output files. (default is "html")
- attr_accessor :rdoc_dir
-
- # Title of RDoc documentation. (defaults to rdoc's default)
- attr_accessor :title
-
- # Name of file to be used as the main, top level file of the
- # RDoc. (default is none)
- attr_accessor :main
-
- # Name of template to be used by rdoc. (defaults to rdoc's default)
- attr_accessor :template
-
- # List of files to be included in the rdoc generation. (default is [])
- attr_accessor :rdoc_files
-
- # Additional list of options to be passed rdoc. (default is [])
- attr_accessor :options
-
- # Whether to run the rdoc process as an external shell (default is false)
- attr_accessor :external
-
- attr_accessor :inline_source
-
- # Create an RDoc task with the given name. See the RDocTask class overview
- # for documentation.
- def initialize(name = :rdoc) # :yield: self
- if name.is_a?(Hash)
- invalid_options = name.keys.map { |k| k.to_sym } - [:rdoc, :clobber_rdoc, :rerdoc]
- if !invalid_options.empty?
- raise ArgumentError, "Invalid option(s) passed to RDocTask.new: #{invalid_options.join(", ")}"
+# rake/rdoctask is deprecated in favor of rdoc/task
+
+if Rake.application
+ Rake.application.deprecate('require \'rake/rdoctask\'', 'require \'rdoc/task\' (in RDoc 2.4.2+)', __FILE__)
+end
+
+require 'rubygems'
+
+begin
+ gem 'rdoc'
+ require 'rdoc'
+ require 'rdoc/task'
+rescue LoadError, Gem::LoadError
+end
+
+# :stopdoc:
+
+if defined?(RDoc::Task) then
+ module Rake
+ RDocTask = RDoc::Task unless const_defined? :RDocTask
+ end
+else
+ require 'rake'
+ require 'rake/tasklib'
+
+ module Rake
+
+ # NOTE: Rake::RDocTask is deprecated in favor of RDoc:Task which is included
+ # in RDoc 2.4.2+. Use require 'rdoc/task' to require it.
+ #
+ # Create a documentation task that will generate the RDoc files for
+ # a project.
+ #
+ # The RDocTask will create the following targets:
+ #
+ # [<b><em>rdoc</em></b>]
+ # Main task for this RDOC task.
+ #
+ # [<b>:clobber_<em>rdoc</em></b>]
+ # Delete all the rdoc files. This target is automatically
+ # added to the main clobber target.
+ #
+ # [<b>:re<em>rdoc</em></b>]
+ # Rebuild the rdoc files from scratch, even if they are not out
+ # of date.
+ #
+ # Simple Example:
+ #
+ # Rake::RDocTask.new do |rd|
+ # rd.main = "README.rdoc"
+ # rd.rdoc_files.include("README.rdoc", "lib/**/*.rb")
+ # end
+ #
+ # The +rd+ object passed to the block is an RDocTask object. See the
+ # attributes list for the RDocTask class for available customization options.
+ #
+ # == Specifying different task names
+ #
+ # You may wish to give the task a different name, such as if you are
+ # generating two sets of documentation. For instance, if you want to have a
+ # development set of documentation including private methods:
+ #
+ # Rake::RDocTask.new(:rdoc_dev) do |rd|
+ # rd.main = "README.doc"
+ # rd.rdoc_files.include("README.rdoc", "lib/**/*.rb")
+ # rd.options << "--all"
+ # end
+ #
+ # The tasks would then be named :<em>rdoc_dev</em>, :clobber_<em>rdoc_dev</em>, and
+ # :re<em>rdoc_dev</em>.
+ #
+ # If you wish to have completely different task names, then pass a Hash as
+ # first argument. With the <tt>:rdoc</tt>, <tt>:clobber_rdoc</tt> and
+ # <tt>:rerdoc</tt> options, you can customize the task names to your liking.
+ # For example:
+ #
+ # Rake::RDocTask.new(:rdoc => "rdoc", :clobber_rdoc => "rdoc:clean", :rerdoc => "rdoc:force")
+ #
+ # This will create the tasks <tt>:rdoc</tt>, <tt>:rdoc_clean</tt> and
+ # <tt>:rdoc:force</tt>.
+ #
+ class RDocTask < TaskLib
+ # Name of the main, top level task. (default is :rdoc)
+ attr_accessor :name
+
+ # Name of directory to receive the html output files. (default is "html")
+ attr_accessor :rdoc_dir
+
+ # Title of RDoc documentation. (defaults to rdoc's default)
+ attr_accessor :title
+
+ # Name of file to be used as the main, top level file of the
+ # RDoc. (default is none)
+ attr_accessor :main
+
+ # Name of template to be used by rdoc. (defaults to rdoc's default)
+ attr_accessor :template
+
+ # List of files to be included in the rdoc generation. (default is [])
+ attr_accessor :rdoc_files
+
+ # Additional list of options to be passed rdoc. (default is [])
+ attr_accessor :options
+
+ # Whether to run the rdoc process as an external shell (default is false)
+ attr_accessor :external
+
+ attr_accessor :inline_source
+
+ # Create an RDoc task with the given name. See the RDocTask class overview
+ # for documentation.
+ def initialize(name = :rdoc) # :yield: self
+ if name.is_a?(Hash)
+ invalid_options = name.keys.map { |k| k.to_sym } - [:rdoc, :clobber_rdoc, :rerdoc]
+ if !invalid_options.empty?
+ raise ArgumentError, "Invalid option(s) passed to RDocTask.new: #{invalid_options.join(", ")}"
+ end
end
+
+ @name = name
+ @rdoc_files = Rake::FileList.new
+ @rdoc_dir = 'html'
+ @main = nil
+ @title = nil
+ @template = nil
+ @external = false
+ @inline_source = true
+ @options = []
+ yield self if block_given?
+ define
end
- @name = name
- @rdoc_files = Rake::FileList.new
- @rdoc_dir = 'html'
- @main = nil
- @title = nil
- @template = nil
- @external = false
- @inline_source = true
- @options = []
- yield self if block_given?
- define
- end
+ # Create the tasks defined by this task lib.
+ def define
+ if rdoc_task_name != "rdoc"
+ desc "Build the RDOC HTML Files"
+ else
+ desc "Build the #{rdoc_task_name} HTML Files"
+ end
+ task rdoc_task_name
- # Create the tasks defined by this task lib.
- def define
- if rdoc_task_name != "rdoc"
- desc "Build the RDOC HTML Files"
- else
- desc "Build the #{rdoc_task_name} HTML Files"
- end
- task rdoc_task_name
+ desc "Force a rebuild of the RDOC files"
+ task rerdoc_task_name => [clobber_task_name, rdoc_task_name]
- desc "Force a rebuild of the RDOC files"
- task rerdoc_task_name => [clobber_task_name, rdoc_task_name]
+ desc "Remove rdoc products"
+ task clobber_task_name do
+ rm_r rdoc_dir rescue nil
+ end
- desc "Remove rdoc products"
- task clobber_task_name do
- rm_r rdoc_dir rescue nil
+ task :clobber => [clobber_task_name]
+
+ directory @rdoc_dir
+ task rdoc_task_name => [rdoc_target]
+ file rdoc_target => @rdoc_files + [Rake.application.rakefile] do
+ rm_r @rdoc_dir rescue nil
+ @before_running_rdoc.call if @before_running_rdoc
+ args = option_list + @rdoc_files
+ if @external
+ argstring = args.join(' ')
+ sh %{ruby -Ivendor vendor/rd #{argstring}}
+ else
+ require 'rdoc/rdoc'
+ RDoc::RDoc.new.document(args)
+ end
+ end
+ self
end
- task :clobber => [clobber_task_name]
+ def option_list
+ result = @options.dup
+ result << "-o" << @rdoc_dir
+ result << "--main" << quote(main) if main
+ result << "--title" << quote(title) if title
+ result << "-T" << quote(template) if template
+ result << "--inline-source" if inline_source && !@options.include?("--inline-source") && !@options.include?("-S")
+ result
+ end
- directory @rdoc_dir
- task rdoc_task_name => [rdoc_target]
- file rdoc_target => @rdoc_files + [Rake.application.rakefile] do
- rm_r @rdoc_dir rescue nil
- @before_running_rdoc.call if @before_running_rdoc
- args = option_list + @rdoc_files
+ def quote(str)
if @external
- argstring = args.join(' ')
- sh %{ruby -Ivendor vender/rd #{argstring}}
+ "'#{str}'"
else
- require 'rdoc/rdoc'
- RDoc::RDoc.new.document(args)
+ str
end
end
- self
- end
-
- def option_list
- result = @options.dup
- result << "-o" << @rdoc_dir
- result << "--main" << quote(main) if main
- result << "--title" << quote(title) if title
- result << "-T" << quote(template) if template
- result << "--inline-source" if inline_source && !@options.include?("--inline-source") && !@options.include?("-S")
- result
- end
- def quote(str)
- if @external
- "'#{str}'"
- else
- str
+ def option_string
+ option_list.join(' ')
end
- end
-
- def option_string
- option_list.join(' ')
- end
- # The block passed to this method will be called just before running the
- # RDoc generator. It is allowed to modify RDocTask attributes inside the
- # block.
- def before_running_rdoc(&block)
- @before_running_rdoc = block
- end
+ # The block passed to this method will be called just before running the
+ # RDoc generator. It is allowed to modify RDocTask attributes inside the
+ # block.
+ def before_running_rdoc(&block)
+ @before_running_rdoc = block
+ end
- private
+ private
- def rdoc_target
- "#{rdoc_dir}/index.html"
- end
+ def rdoc_target
+ "#{rdoc_dir}/index.html"
+ end
- def rdoc_task_name
- case name
- when Hash
- (name[:rdoc] || "rdoc").to_s
- else
- name.to_s
+ def rdoc_task_name
+ case name
+ when Hash
+ (name[:rdoc] || "rdoc").to_s
+ else
+ name.to_s
+ end
end
- end
- def clobber_task_name
- case name
- when Hash
- (name[:clobber_rdoc] || "clobber_rdoc").to_s
- else
- "clobber_#{name}"
+ def clobber_task_name
+ case name
+ when Hash
+ (name[:clobber_rdoc] || "clobber_rdoc").to_s
+ else
+ "clobber_#{name}"
+ end
end
- end
- def rerdoc_task_name
- case name
- when Hash
- (name[:rerdoc] || "rerdoc").to_s
- else
- "re#{name}"
+ def rerdoc_task_name
+ case name
+ when Hash
+ (name[:rerdoc] || "rerdoc").to_s
+ else
+ "re#{name}"
+ end
end
- end
+ end
end
end
+
diff --git a/lib/rake/ruby182_test_unit_fix.rb b/lib/rake/ruby182_test_unit_fix.rb
new file mode 100755
index 0000000000..9e411ed51a
--- /dev/null
+++ b/lib/rake/ruby182_test_unit_fix.rb
@@ -0,0 +1,25 @@
+# Local Rake override to fix bug in Ruby 0.8.2
+module Test # :nodoc:
+ # Local Rake override to fix bug in Ruby 0.8.2
+ module Unit # :nodoc:
+ # Local Rake override to fix bug in Ruby 0.8.2
+ module Collector # :nodoc:
+ # Local Rake override to fix bug in Ruby 0.8.2
+ class Dir # :nodoc:
+ undef collect_file
+ def collect_file(name, suites, already_gathered) # :nodoc:
+ dir = File.dirname(File.expand_path(name))
+ $:.unshift(dir) unless $:.first == dir
+ if(@req)
+ @req.require(name)
+ else
+ require(name)
+ end
+ find_test_cases(already_gathered).each{|t| add_suite(suites, t.suite)}
+ ensure
+ $:.delete_at $:.rindex(dir)
+ end
+ end
+ end
+ end
+end
diff --git a/lib/rake/rule_recursion_overflow_error.rb b/lib/rake/rule_recursion_overflow_error.rb
new file mode 100644
index 0000000000..da4318da9d
--- /dev/null
+++ b/lib/rake/rule_recursion_overflow_error.rb
@@ -0,0 +1,20 @@
+
+module Rake
+
+ # Error indicating a recursion overflow error in task selection.
+ class RuleRecursionOverflowError < StandardError
+ def initialize(*args)
+ super
+ @targets = []
+ end
+
+ def add_target(target)
+ @targets << target
+ end
+
+ def message
+ super + ": [" + @targets.reverse.join(' => ') + "]"
+ end
+ end
+
+end
diff --git a/lib/rake/runtest.rb b/lib/rake/runtest.rb
index f6928d57b8..2b98a60cae 100644
--- a/lib/rake/runtest.rb
+++ b/lib/rake/runtest.rb
@@ -6,12 +6,12 @@ module Rake
def run_tests(pattern='test/test*.rb', log_enabled=false)
Dir["#{pattern}"].each { |fn|
- puts fn if log_enabled
+ $stderr.puts fn if log_enabled
begin
- load fn
+ require fn
rescue Exception => ex
- puts "Error in #{fn}: #{ex.message}"
- puts ex.backtrace
+ $stderr.puts "Error in #{fn}: #{ex.message}"
+ $stderr.puts ex.backtrace
assert false
end
}
diff --git a/lib/rake/task.rb b/lib/rake/task.rb
new file mode 100644
index 0000000000..f977d18711
--- /dev/null
+++ b/lib/rake/task.rb
@@ -0,0 +1,327 @@
+require 'rake/invocation_exception_mixin'
+
+module Rake
+
+ # #########################################################################
+ # A Task is the basic unit of work in a Rakefile. Tasks have associated
+ # actions (possibly more than one) and a list of prerequisites. When
+ # invoked, a task will first ensure that all of its prerequisites have an
+ # opportunity to run and then it will execute its own actions.
+ #
+ # Tasks are not usually created directly using the new method, but rather
+ # use the +file+ and +task+ convenience methods.
+ #
+ class Task
+ # List of prerequisites for a task.
+ attr_reader :prerequisites
+
+ # List of actions attached to a task.
+ attr_reader :actions
+
+ # Application owning this task.
+ attr_accessor :application
+
+ # Comment for this task. Restricted to a single line of no more than 50
+ # characters.
+ attr_reader :comment
+
+ # Full text of the (possibly multi-line) comment.
+ attr_reader :full_comment
+
+ # Array of nested namespaces names used for task lookup by this task.
+ attr_reader :scope
+
+ # File/Line locations of each of the task definitions for this
+ # task (only valid if the task was defined with the detect
+ # location option set).
+ attr_reader :locations
+
+ # Return task name
+ def to_s
+ name
+ end
+
+ def inspect
+ "<#{self.class} #{name} => [#{prerequisites.join(', ')}]>"
+ end
+
+ # List of sources for task.
+ attr_writer :sources
+ def sources
+ @sources ||= []
+ end
+
+ # List of prerequisite tasks
+ def prerequisite_tasks
+ prerequisites.collect { |pre| lookup_prerequisite(pre) }
+ end
+
+ def lookup_prerequisite(prerequisite_name)
+ application[prerequisite_name, @scope]
+ end
+ private :lookup_prerequisite
+
+ # First source from a rule (nil if no sources)
+ def source
+ @sources.first if defined?(@sources)
+ end
+
+ # Create a task named +task_name+ with no actions or prerequisites. Use
+ # +enhance+ to add actions and prerequisites.
+ def initialize(task_name, app)
+ @name = task_name.to_s
+ @prerequisites = []
+ @actions = []
+ @already_invoked = false
+ @full_comment = nil
+ @comment = nil
+ @lock = Monitor.new
+ @application = app
+ @scope = app.current_scope
+ @arg_names = nil
+ @locations = []
+ end
+
+ # Enhance a task with prerequisites or actions. Returns self.
+ def enhance(deps=nil, &block)
+ @prerequisites |= deps if deps
+ @actions << block if block_given?
+ self
+ end
+
+ # Name of the task, including any namespace qualifiers.
+ def name
+ @name.to_s
+ end
+
+ # Name of task with argument list description.
+ def name_with_args # :nodoc:
+ if arg_description
+ "#{name}#{arg_description}"
+ else
+ name
+ end
+ end
+
+ # Argument description (nil if none).
+ def arg_description # :nodoc:
+ @arg_names ? "[#{(arg_names || []).join(',')}]" : nil
+ end
+
+ # Name of arguments for this task.
+ def arg_names
+ @arg_names || []
+ end
+
+ # Reenable the task, allowing its tasks to be executed if the task
+ # is invoked again.
+ def reenable
+ @already_invoked = false
+ end
+
+ # Clear the existing prerequisites and actions of a rake task.
+ def clear
+ clear_prerequisites
+ clear_actions
+ self
+ end
+
+ # Clear the existing prerequisites of a rake task.
+ def clear_prerequisites
+ prerequisites.clear
+ self
+ end
+
+ # Clear the existing actions on a rake task.
+ def clear_actions
+ actions.clear
+ self
+ end
+
+ # Invoke the task if it is needed. Prerequisites are invoked first.
+ def invoke(*args)
+ task_args = TaskArguments.new(arg_names, args)
+ invoke_with_call_chain(task_args, InvocationChain::EMPTY)
+ end
+
+ # Same as invoke, but explicitly pass a call chain to detect
+ # circular dependencies.
+ def invoke_with_call_chain(task_args, invocation_chain) # :nodoc:
+ new_chain = InvocationChain.append(self, invocation_chain)
+ @lock.synchronize do
+ if application.options.trace
+ $stderr.puts "** Invoke #{name} #{format_trace_flags}"
+ end
+ return if @already_invoked
+ @already_invoked = true
+ invoke_prerequisites(task_args, new_chain)
+ execute(task_args) if needed?
+ end
+ rescue Exception => ex
+ add_chain_to(ex, new_chain)
+ raise ex
+ end
+ protected :invoke_with_call_chain
+
+ def add_chain_to(exception, new_chain)
+ exception.extend(InvocationExceptionMixin) unless exception.respond_to?(:chain)
+ exception.chain = new_chain if exception.chain.nil?
+ end
+ private :add_chain_to
+
+ # Invoke all the prerequisites of a task.
+ def invoke_prerequisites(task_args, invocation_chain) # :nodoc:
+ prerequisite_tasks.each { |prereq|
+ prereq_args = task_args.new_scope(prereq.arg_names)
+ prereq.invoke_with_call_chain(prereq_args, invocation_chain)
+ }
+ end
+
+ # Format the trace flags for display.
+ def format_trace_flags
+ flags = []
+ flags << "first_time" unless @already_invoked
+ flags << "not_needed" unless needed?
+ flags.empty? ? "" : "(" + flags.join(", ") + ")"
+ end
+ private :format_trace_flags
+
+ # Execute the actions associated with this task.
+ def execute(args=nil)
+ args ||= EMPTY_TASK_ARGS
+ if application.options.dryrun
+ $stderr.puts "** Execute (dry run) #{name}"
+ return
+ end
+ if application.options.trace
+ $stderr.puts "** Execute #{name}"
+ end
+ application.enhance_with_matching_rule(name) if @actions.empty?
+ @actions.each do |act|
+ case act.arity
+ when 1
+ act.call(self)
+ else
+ act.call(self, args)
+ end
+ end
+ end
+
+ # Is this task needed?
+ def needed?
+ true
+ end
+
+ # Timestamp for this task. Basic tasks return the current time for their
+ # time stamp. Other tasks can be more sophisticated.
+ def timestamp
+ prerequisite_tasks.collect { |pre| pre.timestamp }.max || Time.now
+ end
+
+ # Add a description to the task. The description can consist of an option
+ # argument list (enclosed brackets) and an optional comment.
+ def add_description(description)
+ return if ! description
+ comment = description.strip
+ add_comment(comment) if comment && ! comment.empty?
+ end
+
+ # Writing to the comment attribute is the same as adding a description.
+ def comment=(description)
+ add_description(description)
+ end
+
+ # Add a comment to the task. If a comment already exists, separate
+ # the new comment with " / ".
+ def add_comment(comment)
+ if @full_comment
+ @full_comment << " / "
+ else
+ @full_comment = ''
+ end
+ @full_comment << comment
+ if @full_comment =~ /\A([^.]+?\.)( |$)/
+ @comment = $1
+ else
+ @comment = @full_comment
+ end
+ end
+ private :add_comment
+
+ # Set the names of the arguments for this task. +args+ should be
+ # an array of symbols, one for each argument name.
+ def set_arg_names(args)
+ @arg_names = args.map { |a| a.to_sym }
+ end
+
+ # Return a string describing the internal state of a task. Useful for
+ # debugging.
+ def investigation
+ result = "------------------------------\n"
+ result << "Investigating #{name}\n"
+ result << "class: #{self.class}\n"
+ result << "task needed: #{needed?}\n"
+ result << "timestamp: #{timestamp}\n"
+ result << "pre-requisites: \n"
+ prereqs = prerequisite_tasks
+ prereqs.sort! {|a,b| a.timestamp <=> b.timestamp}
+ prereqs.each do |p|
+ result << "--#{p.name} (#{p.timestamp})\n"
+ end
+ latest_prereq = prerequisite_tasks.collect { |pre| pre.timestamp }.max
+ result << "latest-prerequisite time: #{latest_prereq}\n"
+ result << "................................\n\n"
+ return result
+ end
+
+ # ----------------------------------------------------------------
+ # Rake Module Methods
+ #
+ class << self
+
+ # Clear the task list. This cause rake to immediately forget all the
+ # tasks that have been assigned. (Normally used in the unit tests.)
+ def clear
+ Rake.application.clear
+ end
+
+ # List of all defined tasks.
+ def tasks
+ Rake.application.tasks
+ end
+
+ # Return a task with the given name. If the task is not currently
+ # known, try to synthesize one from the defined rules. If no rules are
+ # found, but an existing file matches the task name, assume it is a file
+ # task with no dependencies or actions.
+ def [](task_name)
+ Rake.application[task_name]
+ end
+
+ # TRUE if the task name is already defined.
+ def task_defined?(task_name)
+ Rake.application.lookup(task_name) != nil
+ end
+
+ # Define a task given +args+ and an option block. If a rule with the
+ # given name already exists, the prerequisites and actions are added to
+ # the existing task. Returns the defined task.
+ def define_task(*args, &block)
+ Rake.application.define_task(self, *args, &block)
+ end
+
+ # Define a rule for synthesizing tasks.
+ def create_rule(*args, &block)
+ Rake.application.create_rule(*args, &block)
+ end
+
+ # Apply the scope to the task name according to the rules for
+ # this kind of task. Generic tasks will accept the scope as
+ # part of the name.
+ def scope_name(scope, task_name)
+ (scope + [task_name]).join(':')
+ end
+
+ end # class << Rake::Task
+ end # class Rake::Task
+end
diff --git a/lib/rake/task_argument_error.rb b/lib/rake/task_argument_error.rb
new file mode 100644
index 0000000000..3e1dda64db
--- /dev/null
+++ b/lib/rake/task_argument_error.rb
@@ -0,0 +1,7 @@
+module Rake
+
+ # Error indicating an ill-formed task declaration.
+ class TaskArgumentError < ArgumentError
+ end
+
+end
diff --git a/lib/rake/task_arguments.rb b/lib/rake/task_arguments.rb
new file mode 100644
index 0000000000..02d01b99f9
--- /dev/null
+++ b/lib/rake/task_arguments.rb
@@ -0,0 +1,78 @@
+module Rake
+
+ ####################################################################
+ # TaskArguments manage the arguments passed to a task.
+ #
+ class TaskArguments
+ include Enumerable
+
+ attr_reader :names
+
+ # Create a TaskArgument object with a list of named arguments
+ # (given by :names) and a set of associated values (given by
+ # :values). :parent is the parent argument object.
+ def initialize(names, values, parent=nil)
+ @names = names
+ @parent = parent
+ @hash = {}
+ names.each_with_index { |name, i|
+ @hash[name.to_sym] = values[i] unless values[i].nil?
+ }
+ end
+
+ # Create a new argument scope using the prerequisite argument
+ # names.
+ def new_scope(names)
+ values = names.collect { |n| self[n] }
+ self.class.new(names, values, self)
+ end
+
+ # Find an argument value by name or index.
+ def [](index)
+ lookup(index.to_sym)
+ end
+
+ # Specify a hash of default values for task arguments. Use the
+ # defaults only if there is no specific value for the given
+ # argument.
+ def with_defaults(defaults)
+ @hash = defaults.merge(@hash)
+ end
+
+ def each(&block)
+ @hash.each(&block)
+ end
+
+ def values_at(*keys)
+ keys.map { |k| lookup(k) }
+ end
+
+ def method_missing(sym, *args, &block)
+ lookup(sym.to_sym)
+ end
+
+ def to_hash
+ @hash
+ end
+
+ def to_s
+ @hash.inspect
+ end
+
+ def inspect
+ to_s
+ end
+
+ protected
+
+ def lookup(name)
+ if @hash.has_key?(name)
+ @hash[name]
+ elsif @parent
+ @parent.lookup(name)
+ end
+ end
+ end
+
+ EMPTY_TASK_ARGS = TaskArguments.new([], [])
+end
diff --git a/lib/rake/task_manager.rb b/lib/rake/task_manager.rb
new file mode 100644
index 0000000000..4c3c26aa3a
--- /dev/null
+++ b/lib/rake/task_manager.rb
@@ -0,0 +1,307 @@
+module Rake
+
+ # The TaskManager module is a mixin for managing tasks.
+ module TaskManager
+ # Track the last comment made in the Rakefile.
+ attr_accessor :last_description
+ alias :last_comment :last_description # Backwards compatibility
+
+ def initialize
+ super
+ @tasks = Hash.new
+ @rules = Array.new
+ @scope = Array.new
+ @last_description = nil
+ end
+
+ def create_rule(*args, &block)
+ pattern, _, deps = resolve_args(args)
+ pattern = Regexp.new(Regexp.quote(pattern) + '$') if String === pattern
+ @rules << [pattern, deps, block]
+ end
+
+ def define_task(task_class, *args, &block)
+ task_name, arg_names, deps = resolve_args(args)
+ task_name = task_class.scope_name(@scope, task_name)
+ deps = [deps] unless deps.respond_to?(:to_ary)
+ deps = deps.collect {|d| d.to_s }
+ task = intern(task_class, task_name)
+ task.set_arg_names(arg_names) unless arg_names.empty?
+ if Rake::TaskManager.record_task_metadata
+ add_location(task)
+ task.add_description(get_description(task))
+ end
+ task.enhance(deps, &block)
+ end
+
+ # Lookup a task. Return an existing task if found, otherwise
+ # create a task of the current type.
+ def intern(task_class, task_name)
+ @tasks[task_name.to_s] ||= task_class.new(task_name, self)
+ end
+
+ # Find a matching task for +task_name+.
+ def [](task_name, scopes=nil)
+ task_name = task_name.to_s
+ self.lookup(task_name, scopes) or
+ enhance_with_matching_rule(task_name) or
+ synthesize_file_task(task_name) or
+ fail "Don't know how to build task '#{task_name}'"
+ end
+
+ def synthesize_file_task(task_name)
+ return nil unless File.exist?(task_name)
+ define_task(Rake::FileTask, task_name)
+ end
+
+ # Resolve the arguments for a task/rule. Returns a triplet of
+ # [task_name, arg_name_list, prerequisites].
+ def resolve_args(args)
+ if args.last.is_a?(Hash)
+ deps = args.pop
+ resolve_args_with_dependencies(args, deps)
+ else
+ resolve_args_without_dependencies(args)
+ end
+ end
+
+ # Resolve task arguments for a task or rule when there are no
+ # dependencies declared.
+ #
+ # The patterns recognized by this argument resolving function are:
+ #
+ # task :t
+ # task :t, [:a]
+ # task :t, :a (deprecated)
+ #
+ def resolve_args_without_dependencies(args)
+ task_name = args.shift
+ if args.size == 1 && args.first.respond_to?(:to_ary)
+ arg_names = args.first.to_ary
+ else
+ arg_names = args
+ end
+ [task_name, arg_names, []]
+ end
+ private :resolve_args_without_dependencies
+
+ # Resolve task arguments for a task or rule when there are
+ # dependencies declared.
+ #
+ # The patterns recognized by this argument resolving function are:
+ #
+ # task :t => [:d]
+ # task :t, [a] => [:d]
+ # task :t, :needs => [:d] (deprecated)
+ # task :t, :a, :needs => [:d] (deprecated)
+ #
+ def resolve_args_with_dependencies(args, hash) # :nodoc:
+ fail "Task Argument Error" if hash.size != 1
+ key, value = hash.map { |k, v| [k,v] }.first
+ if args.empty?
+ task_name = key
+ arg_names = []
+ deps = value
+ elsif key == :needs
+ Rake.application.deprecate(
+ "task :t, arg, :needs => [deps]",
+ "task :t, [args] => [deps]",
+ caller.detect { |c| c !~ /\blib\/rake\b/ })
+ task_name = args.shift
+ arg_names = args
+ deps = value
+ else
+ task_name = args.shift
+ arg_names = key
+ deps = value
+ end
+ deps = [deps] unless deps.respond_to?(:to_ary)
+ [task_name, arg_names, deps]
+ end
+ private :resolve_args_with_dependencies
+
+ # If a rule can be found that matches the task name, enhance the
+ # task with the prerequisites and actions from the rule. Set the
+ # source attribute of the task appropriately for the rule. Return
+ # the enhanced task or nil of no rule was found.
+ def enhance_with_matching_rule(task_name, level=0)
+ fail Rake::RuleRecursionOverflowError,
+ "Rule Recursion Too Deep" if level >= 16
+ @rules.each do |pattern, extensions, block|
+ if pattern.match(task_name)
+ task = attempt_rule(task_name, extensions, block, level)
+ return task if task
+ end
+ end
+ nil
+ rescue Rake::RuleRecursionOverflowError => ex
+ ex.add_target(task_name)
+ fail ex
+ end
+
+ # List of all defined tasks in this application.
+ def tasks
+ @tasks.values.sort_by { |t| t.name }
+ end
+
+ # List of all the tasks defined in the given scope (and its
+ # sub-scopes).
+ def tasks_in_scope(scope)
+ prefix = scope.join(":")
+ tasks.select { |t|
+ /^#{prefix}:/ =~ t.name
+ }
+ end
+
+ # Clear all tasks in this application.
+ def clear
+ @tasks.clear
+ @rules.clear
+ end
+
+ # Lookup a task, using scope and the scope hints in the task name.
+ # This method performs straight lookups without trying to
+ # synthesize file tasks or rules. Special scope names (e.g. '^')
+ # are recognized. If no scope argument is supplied, use the
+ # current scope. Return nil if the task cannot be found.
+ def lookup(task_name, initial_scope=nil)
+ initial_scope ||= @scope
+ task_name = task_name.to_s
+ if task_name =~ /^rake:/
+ scopes = []
+ task_name = task_name.sub(/^rake:/, '')
+ elsif task_name =~ /^(\^+)/
+ scopes = initial_scope[0, initial_scope.size - $1.size]
+ task_name = task_name.sub(/^(\^+)/, '')
+ else
+ scopes = initial_scope
+ end
+ lookup_in_scope(task_name, scopes)
+ end
+
+ # Lookup the task name
+ def lookup_in_scope(name, scope)
+ n = scope.size
+ while n >= 0
+ tn = (scope[0,n] + [name]).join(':')
+ task = @tasks[tn]
+ return task if task
+ n -= 1
+ end
+ nil
+ end
+ private :lookup_in_scope
+
+ # Return the list of scope names currently active in the task
+ # manager.
+ def current_scope
+ @scope.dup
+ end
+
+ # Evaluate the block in a nested namespace named +name+. Create
+ # an anonymous namespace if +name+ is nil.
+ def in_namespace(name)
+ name ||= generate_name
+ @scope.push(name)
+ ns = NameSpace.new(self, @scope)
+ yield(ns)
+ ns
+ ensure
+ @scope.pop
+ end
+
+ private
+
+ # Add a location to the locations field of the given task.
+ def add_location(task)
+ loc = find_location
+ task.locations << loc if loc
+ task
+ end
+
+ # Find the location that called into the dsl layer.
+ def find_location
+ locations = caller
+ i = 0
+ while locations[i]
+ return locations[i+1] if locations[i] =~ /rake\/dsl_definition.rb/
+ i += 1
+ end
+ nil
+ end
+
+ # Generate an anonymous namespace name.
+ def generate_name
+ @seed ||= 0
+ @seed += 1
+ "_anon_#{@seed}"
+ end
+
+ def trace_rule(level, message)
+ $stderr.puts "#{" "*level}#{message}" if Rake.application.options.trace_rules
+ end
+
+ # Attempt to create a rule given the list of prerequisites.
+ def attempt_rule(task_name, extensions, block, level)
+ sources = make_sources(task_name, extensions)
+ prereqs = sources.collect { |source|
+ trace_rule level, "Attempting Rule #{task_name} => #{source}"
+ if File.exist?(source) || Rake::Task.task_defined?(source)
+ trace_rule level, "(#{task_name} => #{source} ... EXIST)"
+ source
+ elsif parent = enhance_with_matching_rule(source, level+1)
+ trace_rule level, "(#{task_name} => #{source} ... ENHANCE)"
+ parent.name
+ else
+ trace_rule level, "(#{task_name} => #{source} ... FAIL)"
+ return nil
+ end
+ }
+ task = FileTask.define_task({task_name => prereqs}, &block)
+ task.sources = prereqs
+ task
+ end
+
+ # Make a list of sources from the list of file name extensions /
+ # translation procs.
+ def make_sources(task_name, extensions)
+ result = extensions.collect { |ext|
+ case ext
+ when /%/
+ task_name.pathmap(ext)
+ when %r{/}
+ ext
+ when /^\./
+ task_name.ext(ext)
+ when String
+ ext
+ when Proc
+ if ext.arity == 1
+ ext.call(task_name)
+ else
+ ext.call
+ end
+ else
+ fail "Don't know how to handle rule dependent: #{ext.inspect}"
+ end
+ }
+ result.flatten
+ end
+
+
+ private
+
+ # Return the current description, clearing it in the process.
+ def get_description(task)
+ desc = @last_description
+ @last_description = nil
+ desc
+ end
+
+ class << self
+ attr_accessor :record_task_metadata
+ TaskManager.record_task_metadata = false
+ end
+ end
+
+end
diff --git a/lib/rake/tasklib.rb b/lib/rake/tasklib.rb
index a5a4494369..f1e17dad31 100644
--- a/lib/rake/tasklib.rb
+++ b/lib/rake/tasklib.rb
@@ -5,6 +5,7 @@ module Rake
# Base class for Task Libraries.
class TaskLib
include Cloneable
+ include Rake::DSL
# Make a symbol by pasting two strings together.
#
diff --git a/lib/rake/testtask.rb b/lib/rake/testtask.rb
index 3444012500..04d3ae473a 100644
--- a/lib/rake/testtask.rb
+++ b/lib/rake/testtask.rb
@@ -93,33 +93,37 @@ module Rake
# Create the tasks defined by this task lib.
def define
- lib_path = @libs.collect {|path| "-I#{File.expand_path(path)}"}
desc "Run tests" + (@name==:test ? "" : " for #{@name}")
task @name do
- run_code = ''
- RakeFileUtils.verbose(@verbose) do
- run_code =
- case @loader
- when :direct
- "-e 'ARGV.each{|f| load f}'"
- when :testrb
- "-S testrb #{fix}"
- when :rake
- rake_loader
- end
- @ruby_opts.unshift( *lib_path )
- @ruby_opts.unshift( "-w" ) if @warning
- ruby @ruby_opts.join(" ") +
- " \"#{run_code}\" " +
- file_list.collect { |fn| "\"#{fn}\"" }.join(' ') +
- " #{option_list}"
+ FileUtilsExt.verbose(@verbose) do
+ ruby "#{ruby_opts_string} #{run_code} #{file_list_string} #{option_list}"
end
end
self
end
def option_list # :nodoc:
- ENV['TESTOPTS'] || @options || ""
+ (ENV['TESTOPTS'] ||
+ ENV['TESTOPT'] ||
+ ENV['TEST_OPTS'] ||
+ ENV['TEST_OPT'] ||
+ @options ||
+ "")
+ end
+
+ def ruby_opts_string
+ opts = @ruby_opts.dup
+ opts.unshift( "-I\"#{lib_path}\"" ) unless @libs.empty?
+ opts.unshift( "-w" ) if @warning
+ opts.join(" ")
+ end
+
+ def lib_path
+ @libs.join(File::PATH_SEPARATOR)
+ end
+
+ def file_list_string
+ file_list.collect { |fn| "\"#{fn}\"" }.join(' ')
end
def file_list # :nodoc:
@@ -128,20 +132,35 @@ module Rake
else
result = []
result += @test_files.to_a if @test_files
- result += FileList[ @pattern ].to_a if @pattern
- FileList[result]
+ result << @pattern if @pattern
+ result
end
end
def fix # :nodoc:
- case RUBY_VERSION
+ case ruby_version
when '1.8.2'
- find_file 'rake/ruby182_test_unit_fix'
+ "\"#{find_file 'rake/ruby182_test_unit_fix'}\""
else
nil
end || ''
end
+ def ruby_version
+ RUBY_VERSION
+ end
+
+ def run_code
+ case @loader
+ when :direct
+ "-e \"ARGV.each{|f| require f}\""
+ when :testrb
+ "-S testrb #{fix}"
+ when :rake
+ "-I\"#{rake_lib_dir}\" \"#{rake_loader}\""
+ end
+ end
+
def rake_loader # :nodoc:
find_file('rake/rake_test_loader') or
fail "unable to find rake test loader"
@@ -155,5 +174,18 @@ module Rake
nil
end
+ def rake_lib_dir # :nodoc:
+ find_dir('rake') or
+ fail "unable to find rake lib"
+ end
+
+ def find_dir(fn) # :nodoc:
+ $LOAD_PATH.each do |path|
+ file_path = File.join(path, "#{fn}.rb")
+ return path if File.exist? file_path
+ end
+ nil
+ end
+
end
end
diff --git a/lib/rake/version.rb b/lib/rake/version.rb
new file mode 100644
index 0000000000..6c43493df9
--- /dev/null
+++ b/lib/rake/version.rb
@@ -0,0 +1,8 @@
+module Rake
+ VERSION = '0.9.2.2'
+
+ module Version # :nodoc: all
+ MAJOR, MINOR, BUILD = VERSION.split '.'
+ NUMBERS = [ MAJOR, MINOR, BUILD ]
+ end
+end
diff --git a/lib/rake/win32.rb b/lib/rake/win32.rb
index 96f66d6957..98289a10b4 100644
--- a/lib/rake/win32.rb
+++ b/lib/rake/win32.rb
@@ -1,34 +1,55 @@
+
module Rake
+ require 'rake/alt_system'
# Win 32 interface methods for Rake. Windows specific functionality
# will be placed here to collect that knowledge in one spot.
module Win32
+
+ # Error indicating a problem in locating the home directory on a
+ # Win32 system.
+ class Win32HomeError < RuntimeError
+ end
+
class << self
# True if running on a windows system.
def windows?
- # assume other DOSish systems are extinct.
- File::ALT_SEPARATOR == '\\'
+ AltSystem::WINDOWS
+ end
+
+ # Run a command line on windows.
+ def rake_system(*cmd)
+ AltSystem.system(*cmd)
end
- end
- class << self
# The standard directory containing system wide rake files on
# Win 32 systems. Try the following environment variables (in
# order):
#
- # * APPDATA
# * HOME
# * HOMEDRIVE + HOMEPATH
+ # * APPDATA
# * USERPROFILE
#
- # If the above are not defined, retruns the personal folder.
+ # If the above are not defined, the return nil.
def win32_system_dir #:nodoc:
- win32_shared_path = ENV['APPDATA']
- if !win32_shared_path or win32_shared_path.empty?
- win32_shared_path = '~'
+ win32_shared_path = ENV['HOME']
+ if win32_shared_path.nil? && ENV['HOMEDRIVE'] && ENV['HOMEPATH']
+ win32_shared_path = ENV['HOMEDRIVE'] + ENV['HOMEPATH']
end
- File.expand_path('Rake', win32_shared_path)
+
+ win32_shared_path ||= ENV['APPDATA']
+ win32_shared_path ||= ENV['USERPROFILE']
+ raise Win32HomeError, "Unable to determine home path environment variable." if
+ win32_shared_path.nil? or win32_shared_path.empty?
+ normalize(File.join(win32_shared_path, 'Rake'))
end
- end if windows?
+
+ # Normalize a win32 path so that the slashes are all forward slashes.
+ def normalize(path)
+ path.gsub(/\\/, '/')
+ end
+
+ end
end
end
diff --git a/lib/rational.rb b/lib/rational.rb
index 5acfa5433d..a1aeca1e40 100644
--- a/lib/rational.rb
+++ b/lib/rational.rb
@@ -1,9 +1,13 @@
+# :enddoc:
+
+warn('lib/rational.rb is deprecated') if $VERBOSE
+
class Fixnum
alias quof fdiv
alias rdiv quo
- alias power! ** unless defined?(0.power!)
+ alias power! ** unless method_defined? :power!
alias rpower **
end
@@ -13,7 +17,7 @@ class Bignum
alias quof fdiv
alias rdiv quo
- alias power! ** unless defined?(0.power!)
+ alias power! ** unless method_defined? :power!
alias rpower **
end
diff --git a/lib/rbconfig/.document b/lib/rbconfig/.document
new file mode 100644
index 0000000000..4cea83cd0e
--- /dev/null
+++ b/lib/rbconfig/.document
@@ -0,0 +1 @@
+# these files are obsolete
diff --git a/lib/rbconfig/datadir.rb b/lib/rbconfig/datadir.rb
index 74c014e0aa..9b7eabb473 100644
--- a/lib/rbconfig/datadir.rb
+++ b/lib/rbconfig/datadir.rb
@@ -4,20 +4,10 @@
# See LICENSE.txt for permissions.
#++
+# N.B. This file is used by Config.datadir in rubygems.rb, and must not be
+# removed before that require is removed. I require to avoid warning more than
+# once.
-module RbConfig
-
- # Only define datadir if it doesn't already exist.
- unless RbConfig.respond_to?(:datadir)
-
- # Return the path to the data directory associated with the given
- # package name. Normally this is just
- # "#{RbConfig::CONFIG['datadir']}/#{package_name}", but may be
- # modified by packages like RubyGems to handle versioned data
- # directories.
- def RbConfig.datadir(package_name)
- File.join(CONFIG['datadir'], package_name)
- end
-
- end
-end
+warn 'rbconfig/datadir.rb and {Rb}Config.datadir is being deprecated from '\
+ 'RubyGems. It will be removed completely on or after June 2011. If you '\
+ 'wish to rely on a datadir, please use Gem.datadir.'
diff --git a/lib/rbconfig/obsolete.rb b/lib/rbconfig/obsolete.rb
new file mode 100644
index 0000000000..eae9155af6
--- /dev/null
+++ b/lib/rbconfig/obsolete.rb
@@ -0,0 +1,5 @@
+loc = caller[0]
+loc = loc[/\A.*:\d+:/] if loc
+loc = "#{loc} " if loc
+warn "#{loc}Use RbConfig instead of obsolete and deprecated Config."
+Config = RbConfig # compatibility for ruby-1.8.4 and older.
diff --git a/lib/rdoc.rb b/lib/rdoc.rb
index 043d3420be..aaa1aaa092 100644
--- a/lib/rdoc.rb
+++ b/lib/rdoc.rb
@@ -1,28 +1,42 @@
$DEBUG_RDOC = nil
+# :main: README.txt
+
##
-# = \RDoc - Ruby Documentation System
+# RDoc is a Ruby documentation system which contains RDoc::RDoc for generating
+# documentation, RDoc::RI for interactive documentation and RDoc::Markup for
+# text markup.
+#
+# RDoc::RDoc produces documentation for Ruby source files. It works similarly
+# to JavaDoc, parsing the source and extracting the definition for classes,
+# modules, methods, includes and requires. It associates these with optional
+# documentation contained in an immediately preceding comment block then
+# renders the result using an output formatter.
#
-# This package contains RDoc and RDoc::Markup. RDoc is an application that
-# produces documentation for one or more Ruby source files. It works similarly
-# to JavaDoc, parsing the source, and extracting the definition for classes,
-# modules, and methods (along with includes and requires). It associates with
-# these optional documentation contained in the immediately preceding comment
-# block, and then renders the result using a pluggable output formatter.
-# RDoc::Markup is a library that converts plain text into various output
-# formats. The markup library is used to interpret the comment blocks that
-# RDoc uses to document methods, classes, and so on.
+# RDoc::Markup that converts plain text into various output formats. The
+# markup library is used to interpret the comment blocks that RDoc uses to
+# document methods, classes, and so on.
+#
+# RDoc::RI implements the +ri+ command-line tool which displays on-line
+# documentation for ruby classes, methods, etc. +ri+ features several output
+# formats and an interactive mode (<tt>ri -i</tt>). See <tt>ri --help</tt>
+# for further details.
#
# == Roadmap
#
# * If you want to use RDoc to create documentation for your Ruby source files,
-# read on.
-# * If you want to include extensions written in C, see RDoc::Parser::C
+# see RDoc::Markup and refer to <tt>rdoc --help</tt> for command line
+# usage.
+# * If you want to write documentation for Ruby files see RDoc::Parser::Ruby
+# * If you want to write documentation for extensions written in C see
+# RDoc::Parser::C
+# * If you want to generate documentation using <tt>rake</tt> see RDoc::Task.
# * If you want to drive RDoc programmatically, see RDoc::RDoc.
-# * If you want to use the library to format text blocks into HTML, have a look
-# at RDoc::Markup.
-# * If you want to try writing your own HTML output template, see
-# RDoc::Generator::HTML
+# * If you want to use the library to format text blocks into HTML, look at
+# RDoc::Markup.
+# * If you want to make an RDoc plugin such as a generator or directive
+# handler see RDoc::RDoc.
+# * If you want to write your own output generator see RDoc::Generator.
#
# == Summary
#
@@ -31,6 +45,7 @@ $DEBUG_RDOC = nil
# % rdoc [options] [names...]
#
# For an up-to-date option summary, type
+#
# % rdoc --help
#
# A typical use might be to generate documentation for a package of Ruby
@@ -46,7 +61,7 @@ $DEBUG_RDOC = nil
# index page contain the documentation for the primary file. In our
# case, we could type
#
-# % rdoc --main rdoc.rb
+# % rdoc --main README.txt
#
# You'll find information on the various formatting tricks you can use
# in comment blocks in the documentation this generates.
@@ -58,278 +73,9 @@ $DEBUG_RDOC = nil
# markers). If directory names are passed to RDoc, they are scanned
# recursively for C and Ruby source files only.
#
-# == \Options
-# rdoc can be passed a variety of command-line options. In addition,
-# options can be specified via the +RDOCOPT+ environment variable, which
-# functions similarly to the +RUBYOPT+ environment variable.
-#
-# % export RDOCOPT="-S"
-#
-# will make rdoc default to inline method source code. Command-line options
-# always will override those in +RDOCOPT+.
-#
-# Run
-#
-# % rdoc --help
-#
-# for full details on rdoc's options.
-#
-# Here are some of the most commonly used options.
-# [-d, --diagram]
-# Generate diagrams showing modules and
-# classes. You need dot V1.8.6 or later to
-# use the --diagram option correctly. Dot is
-# available from http://graphviz.org
-#
-# [-S, --inline-source]
-# Show method source code inline, rather than via a popup link.
-#
-# [-T, --template=NAME]
-# Set the template used when generating output.
-#
-# == Documenting Source Code
-#
-# Comment blocks can be written fairly naturally, either using +#+ on
-# successive lines of the comment, or by including the comment in
-# a =begin/=end block. If you use the latter form, the =begin line must be
-# flagged with an RDoc tag:
-#
-# =begin rdoc
-# Documentation to be processed by RDoc.
-#
-# ...
-# =end
-#
-# RDoc stops processing comments if it finds a comment line containing
-# a <tt>--</tt>. This can be used to separate external from internal
-# comments, or to stop a comment being associated with a method, class, or
-# module. Commenting can be turned back on with a line that starts with a
-# <tt>++</tt>.
-#
-# ##
-# # Extract the age and calculate the date-of-birth.
-# #--
-# # FIXME: fails if the birthday falls on February 29th
-# #++
-# # The DOB is returned as a Time object.
-#
-# def get_dob(person)
-# # ...
-# end
-#
-# Names of classes, files, and any method names containing an
-# underscore or preceded by a hash character are automatically hyperlinked
-# from comment text to their description.
-#
-# Method parameter lists are extracted and displayed with the method
-# description. If a method calls +yield+, then the parameters passed to yield
-# will also be displayed:
-#
-# def fred
-# ...
-# yield line, address
-#
-# This will get documented as:
-#
-# fred() { |line, address| ... }
-#
-# You can override this using a comment containing ':yields: ...' immediately
-# after the method definition
-#
-# def fred # :yields: index, position
-# # ...
-#
-# yield line, address
-#
-# which will get documented as
-#
-# fred() { |index, position| ... }
-#
-# +:yields:+ is an example of a documentation directive. These appear
-# immediately after the start of the document element they are modifying.
-#
-# == \Markup
-#
-# * The markup engine looks for a document's natural left margin. This is
-# used as the initial margin for the document.
-#
-# * Consecutive lines starting at this margin are considered to be a
-# paragraph.
-#
-# * If a paragraph starts with a "*", "-", or with "<digit>.", then it is
-# taken to be the start of a list. The margin in increased to be the first
-# non-space following the list start flag. Subsequent lines should be
-# indented to this new margin until the list ends. For example:
-#
-# * this is a list with three paragraphs in
-# the first item. This is the first paragraph.
-#
-# And this is the second paragraph.
-#
-# 1. This is an indented, numbered list.
-# 2. This is the second item in that list
-#
-# This is the third conventional paragraph in the
-# first list item.
-#
-# * This is the second item in the original list
-#
-# * You can also construct labeled lists, sometimes called description
-# or definition lists. Do this by putting the label in square brackets
-# and indenting the list body:
-#
-# [cat] a small furry mammal
-# that seems to sleep a lot
-#
-# [ant] a little insect that is known
-# to enjoy picnics
-#
-# A minor variation on labeled lists uses two colons to separate the
-# label from the list body:
-#
-# cat:: a small furry mammal
-# that seems to sleep a lot
-#
-# ant:: a little insect that is known
-# to enjoy picnics
-#
-# This latter style guarantees that the list bodies' left margins are
-# aligned: think of them as a two column table.
-#
-# * Any line that starts to the right of the current margin is treated
-# as verbatim text. This is useful for code listings. The example of a
-# list above is also verbatim text.
-#
-# * A line starting with an equals sign (=) is treated as a
-# heading. Level one headings have one equals sign, level two headings
-# have two,and so on.
-#
-# * A line starting with three or more hyphens (at the current indent)
-# generates a horizontal rule. The more hyphens, the thicker the rule
-# (within reason, and if supported by the output device)
-#
-# * You can use markup within text (except verbatim) to change the
-# appearance of parts of that text. Out of the box, RDoc::Markup
-# supports word-based and general markup.
-#
-# Word-based markup uses flag characters around individual words:
-#
-# [\*word*] displays word in a *bold* font
-# [\_word_] displays word in an _emphasized_ font
-# [\+word+] displays word in a +code+ font
-#
-# General markup affects text between a start delimiter and and end
-# delimiter. Not surprisingly, these delimiters look like HTML markup.
-#
-# [\<b>text...</b>] displays word in a *bold* font
-# [\<em>text...</em>] displays word in an _emphasized_ font
-# [\\<i>text...</i>] displays word in an <i>italicized</i> font
-# [\<tt>text...</tt>] displays word in a +code+ font
-#
-# Unlike conventional Wiki markup, general markup can cross line
-# boundaries. You can turn off the interpretation of markup by
-# preceding the first character with a backslash. This only works for
-# simple markup, not HTML-style markup.
-#
-# * Hyperlinks to the web starting http:, mailto:, ftp:, or www. are
-# recognized. An HTTP url that references an external image file is
-# converted into an inline <IMG..>. Hyperlinks starting 'link:' are
-# assumed to refer to local files whose path is relative to the --op
-# directory.
-#
-# Hyperlinks can also be of the form <tt>label</tt>[url], in which
-# case the label is used in the displayed text, and +url+ is
-# used as the target. If +label+ contains multiple words,
-# put it in braces: <em>{multi word label}[</em>url<em>]</em>.
-#
-# == Directives
-#
-# [+:nodoc:+ / +:nodoc:+ all]
-# This directive prevents documentation for the element from
-# being generated. For classes and modules, the methods, aliases,
-# constants, and attributes directly within the affected class or
-# module also will be omitted. By default, though, modules and
-# classes within that class of module _will_ be documented. This is
-# turned off by adding the +all+ modifier.
-#
-# module MyModule # :nodoc:
-# class Input
-# end
-# end
-#
-# module OtherModule # :nodoc: all
-# class Output
-# end
-# end
-#
-# In the above code, only class <tt>MyModule::Input</tt> will be documented.
-# The +:nodoc:+ directive is global across all files for the class or module
-# to which it applies, so use +:stopdoc:+/+:startdoc:+ to suppress
-# documentation only for a particular set of methods, etc.
-#
-# [+:doc:+]
-# Forces a method or attribute to be documented even if it wouldn't be
-# otherwise. Useful if, for example, you want to include documentation of a
-# particular private method.
-#
-# [+:notnew:+]
-# Only applicable to the +initialize+ instance method. Normally RDoc
-# assumes that the documentation and parameters for +initialize+ are
-# actually for the +new+ method, and so fakes out a +new+ for the class.
-# The +:notnew:+ modifier stops this. Remember that +initialize+ is private,
-# so you won't see the documentation unless you use the +-a+ command line
-# option.
-#
-# Comment blocks can contain other directives:
-#
-# [<tt>:section: title</tt>]
-# Starts a new section in the output. The title following +:section:+ is
-# used as the section heading, and the remainder of the comment containing
-# the section is used as introductory text. Subsequent methods, aliases,
-# attributes, and classes will be documented in this section. A :section:
-# comment block may have one or more lines before the :section: directive.
-# These will be removed, and any identical lines at the end of the block are
-# also removed. This allows you to add visual cues such as:
-#
-# # ----------------------------------------
-# # :section: My Section
-# # This is the section that I wrote.
-# # See it glisten in the noon-day sun.
-# # ----------------------------------------
-#
-# [+:call-seq:+]
-# Lines up to the next blank line in the comment are treated as the method's
-# calling sequence, overriding the default parsing of method parameters and
-# yield arguments.
-#
-# [+:include:+ _filename_]
-# \Include the contents of the named file at this point. The file will be
-# searched for in the directories listed by the +--include+ option, or in
-# the current directory by default. The contents of the file will be
-# shifted to have the same indentation as the ':' at the start of
-# the :include: directive.
-#
-# [+:title:+ _text_]
-# Sets the title for the document. Equivalent to the <tt>--title</tt>
-# command line parameter. (The command line parameter overrides any :title:
-# directive in the source).
-#
-# [+:enddoc:+]
-# Document nothing further at the current level.
-#
-# [+:main:+ _name_]
-# Equivalent to the <tt>--main</tt> command line parameter.
-#
-# [+:stopdoc:+ / +:startdoc:+]
-# Stop and start adding new documentation elements to the current container.
-# For example, if a class has a number of constants that you don't want to
-# document, put a +:stopdoc:+ before the first, and a +:startdoc:+ after the
-# last. If you don't specify a +:startdoc:+ by the end of the container,
-# disables documentation for the entire class or module.
-#
# == Other stuff
#
-# RDoc is currently being maintained by Eric Hodel <drbrain@segment7.net>
+# RDoc is currently being maintained by Eric Hodel <drbrain@segment7.net>.
#
# Dave Thomas <dave@pragmaticprogrammer.com> is the original author of RDoc.
#
@@ -338,27 +84,6 @@ $DEBUG_RDOC = nil
# * The Ruby parser in rdoc/parse.rb is based heavily on the outstanding
# work of Keiju ISHITSUKA of Nippon Rational Inc, who produced the Ruby
# parser for irb and the rtags package.
-#
-# * Code to diagram classes and modules was written by Sergey A Yanovitsky
-# (Jah) of Enticla.
-#
-# * Charset patch from MoonWolf.
-#
-# * Rich Kilmer wrote the kilmer.rb output template.
-#
-# * Dan Brickley led the design of the RDF format.
-#
-# == License
-#
-# RDoc is Copyright (c) 2001-2003 Dave Thomas, The Pragmatic Programmers. It
-# is free software, and may be redistributed under the terms specified
-# in the README file of the Ruby distribution.
-#
-# == Warranty
-#
-# This software is provided "as is" and without any express or implied
-# warranties, including, without limitation, the implied warranties of
-# merchantibility and fitness for a particular purpose.
module RDoc
@@ -367,12 +92,24 @@ module RDoc
class Error < RuntimeError; end
- RDocError = Error # :nodoc:
+ def self.const_missing const_name # :nodoc:
+ if const_name.to_s == 'RDocError' then
+ warn "RDoc::RDocError is deprecated"
+ return Error
+ end
+
+ super
+ end
##
# RDoc version you are using
- VERSION = "2.2.2"
+ VERSION = '3.9.4'
+
+ ##
+ # Method visibilities
+
+ VISIBILITIES = [:public, :protected, :private]
##
# Name of the dotfile that contains the description of files to be processed
@@ -380,14 +117,29 @@ module RDoc
DOT_DOC_FILENAME = ".document"
+ ##
+ # General RDoc modifiers
+
GENERAL_MODIFIERS = %w[nodoc].freeze
+ ##
+ # RDoc modifiers for classes
+
CLASS_MODIFIERS = GENERAL_MODIFIERS
- ATTR_MODIFIERS = GENERAL_MODIFIERS
+ ##
+ # RDoc modifiers for attributes
+
+ ATTR_MODIFIERS = GENERAL_MODIFIERS
+
+ ##
+ # RDoc modifiers for constants
CONSTANT_MODIFIERS = GENERAL_MODIFIERS
+ ##
+ # RDoc modifiers for methods
+
METHOD_MODIFIERS = GENERAL_MODIFIERS +
%w[arg args yield yields notnew not-new not_new doc]
diff --git a/lib/rdoc/README b/lib/rdoc/README
deleted file mode 100644
index f183c61f8d..0000000000
--- a/lib/rdoc/README
+++ /dev/null
@@ -1,232 +0,0 @@
-= RDOC - Ruby Documentation System
-
-This package contains RDoc and RDoc::Markup. RDoc is an application that
-produces documentation for one or more Ruby source files. We work similarly to
-JavaDoc, parsing the source, and extracting the definition for classes,
-modules, and methods (along with includes and requires). We associate with
-these optional documentation contained in the immediately preceding comment
-block, and then render the result using a pluggable output formatter.
-RDoc::Markup is a library that converts plain text into various output formats.
-The markup library is used to interpret the comment blocks that RDoc uses to
-document methods, classes, and so on.
-
-== Roadmap
-
-* If you want to use RDoc to create documentation for your Ruby source files,
- read on.
-* If you want to include extensions written in C, see RDoc::C_Parser
-* For information on the various markups available in comment blocks, see
- RDoc::Markup.
-* If you want to drive RDoc programmatically, see RDoc::RDoc.
-* If you want to use the library to format text blocks into HTML, have a look
- at RDoc::Markup.
-* If you want to try writing your own HTML output template, see
- RDoc::Generator::HTML
-
-== Summary
-
-Once installed, you can create documentation using the 'rdoc' command
-(the command is 'rdoc.bat' under Windows)
-
- % rdoc [options] [names...]
-
-Type "rdoc --help" for an up-to-date option summary.
-
-A typical use might be to generate documentation for a package of Ruby
-source (such as rdoc itself).
-
- % rdoc
-
-This command generates documentation for all the Ruby and C source
-files in and below the current directory. These will be stored in a
-documentation tree starting in the subdirectory 'doc'.
-
-You can make this slightly more useful for your readers by having the
-index page contain the documentation for the primary file. In our
-case, we could type
-
- % rdoc --main rdoc.rb
-
-You'll find information on the various formatting tricks you can use
-in comment blocks in the documentation this generates.
-
-RDoc uses file extensions to determine how to process each file. File names
-ending +.rb+ and <tt>.rbw</tt> are assumed to be Ruby source. Files
-ending +.c+ are parsed as C files. All other files are assumed to
-contain just Markup-style markup (with or without leading '#' comment markers).
-If directory names are passed to RDoc, they are scanned recursively for C and
-Ruby source files only.
-
-= Markup
-
-For information on how to make lists, hyperlinks, & etc. with RDoc, see
-RDoc::Markup.
-
-Comment blocks can be written fairly naturally, either using '#' on successive
-lines of the comment, or by including the comment in an =begin/=end block. If
-you use the latter form, the =begin line must be flagged with an RDoc tag:
-
- =begin rdoc
- Documentation to be processed by RDoc.
-
- ...
- =end
-
-RDoc stops processing comments if it finds a comment line containing '+#--+'.
-This can be used to separate external from internal comments, or to stop a
-comment being associated with a method, class, or module. Commenting can be
-turned back on with a line that starts '+#+++'.
-
- ##
- # Extract the age and calculate the date-of-birth.
- #--
- # FIXME: fails if the birthday falls on February 29th
- #++
- # The DOB is returned as a Time object.
-
- def get_dob(person)
- # ...
- end
-
-Names of classes, source files, and any method names containing an underscore
-or preceded by a hash character are automatically hyperlinked from comment text
-to their description.
-
-Method parameter lists are extracted and displayed with the method description.
-If a method calls +yield+, then the parameters passed to yield will also be
-displayed:
-
- def fred
- ...
- yield line, address
-
-This will get documented as:
-
- fred() { |line, address| ... }
-
-You can override this using a comment containing ':yields: ...' immediately
-after the method definition
-
- def fred # :yields: index, position
- # ...
-
- yield line, address
-
-which will get documented as
-
- fred() { |index, position| ... }
-
-+:yields:+ is an example of a documentation directive. These appear immediately
-after the start of the document element they are modifying.
-
-== Directives
-
-[+:nodoc:+ / +:nodoc:+ all]
- Don't include this element in the documentation. For classes
- and modules, the methods, aliases, constants, and attributes
- directly within the affected class or module will also be
- omitted. By default, though, modules and classes within that
- class of module _will_ be documented. This is turned off by
- adding the +all+ modifier.
-
- module MyModule # :nodoc:
- class Input
- end
- end
-
- module OtherModule # :nodoc: all
- class Output
- end
- end
-
- In the above code, only class +MyModule::Input+ will be documented.
-
-[+:doc:+]
- Force a method or attribute to be documented even if it wouldn't otherwise
- be. Useful if, for example, you want to include documentation of a
- particular private method.
-
-[+:notnew:+]
- Only applicable to the +initialize+ instance method. Normally RDoc assumes
- that the documentation and parameters for #initialize are actually for the
- ::new method, and so fakes out a ::new for the class. The :notnew: modifier
- stops this. Remember that #initialize is protected, so you won't see the
- documentation unless you use the -a command line option.
-
-Comment blocks can contain other directives:
-
-[+:section: title+]
- Starts a new section in the output. The title following +:section:+ is used
- as the section heading, and the remainder of the comment containing the
- section is used as introductory text. Subsequent methods, aliases,
- attributes, and classes will be documented in this section. A :section:
- comment block may have one or more lines before the :section: directive.
- These will be removed, and any identical lines at the end of the block are
- also removed. This allows you to add visual cues such as:
-
- # ----------------------------------------
- # :section: My Section
- # This is the section that I wrote.
- # See it glisten in the noon-day sun.
- # ----------------------------------------
-
-[+:call-seq:+]
- Lines up to the next blank line in the comment are treated as the method's
- calling sequence, overriding the default parsing of method parameters and
- yield arguments.
-
-[+:include:+ _filename_]
- Include the contents of the named file at this point. The file will be
- searched for in the directories listed by the +--include+ option, or in the
- current directory by default. The contents of the file will be shifted to
- have the same indentation as the ':' at the start of the :include: directive.
-
-[+:title:+ _text_]
- Sets the title for the document. Equivalent to the --title command line
- parameter. (The command line parameter overrides any :title: directive in
- the source).
-
-[+:enddoc:+]
- Document nothing further at the current level.
-
-[+:main:+ _name_]
- Equivalent to the --main command line parameter.
-
-[+:stopdoc:+ / +:startdoc:+]
- Stop and start adding new documentation elements to the current container.
- For example, if a class has a number of constants that you don't want to
- document, put a +:stopdoc:+ before the first, and a +:startdoc:+ after the
- last. If you don't specify a +:startdoc:+ by the end of the container,
- disables documentation for the entire class or module.
-
-= Other stuff
-
-Author:: Dave Thomas <dave@pragmaticprogrammer.com>
-
-== Credits
-
-* The Ruby parser in rdoc/parse.rb is based heavily on the outstanding
- work of Keiju ISHITSUKA of Nippon Rational Inc, who produced the Ruby
- parser for irb and the rtags package.
-
-* Code to diagram classes and modules was written by Sergey A Yanovitsky
- (Jah) of Enticla.
-
-* Charset patch from MoonWolf.
-
-* Rich Kilmer wrote the kilmer.rb output template.
-
-* Dan Brickley led the design of the RDF format.
-
-== License
-
-RDoc is Copyright (c) 2001-2003 Dave Thomas, The Pragmatic Programmers. It
-is free software, and may be redistributed under the terms specified
-in the README file of the Ruby distribution.
-
-== Warranty
-
-This software is provided "as is" and without any express or implied
-warranties, including, without limitation, the implied warranties of
-merchantibility and fitness for a particular purpose.
-
diff --git a/lib/rdoc/alias.rb b/lib/rdoc/alias.rb
new file mode 100644
index 0000000000..fa433dc0a9
--- /dev/null
+++ b/lib/rdoc/alias.rb
@@ -0,0 +1,113 @@
+require 'rdoc/code_object'
+
+##
+# Represent an alias, which is an old_name/new_name pair associated with a
+# particular context
+#--
+# TODO implement Alias as a proxy to a method/attribute, inheriting from
+# MethodAttr
+
+class RDoc::Alias < RDoc::CodeObject
+
+ ##
+ # Aliased method's name
+
+ attr_reader :new_name
+
+ alias name new_name
+
+ ##
+ # Aliasee method's name
+
+ attr_reader :old_name
+
+ ##
+ # Is this an alias declared in a singleton context?
+
+ attr_accessor :singleton
+
+ ##
+ # Source file token stream
+
+ attr_reader :text
+
+ ##
+ # Creates a new Alias with a token stream of +text+ that aliases +old_name+
+ # to +new_name+, has +comment+ and is a +singleton+ context.
+
+ def initialize(text, old_name, new_name, comment, singleton = false)
+ super()
+
+ @text = text
+ @singleton = singleton
+ @old_name = old_name
+ @new_name = new_name
+ self.comment = comment
+ end
+
+ ##
+ # Order by #singleton then #new_name
+
+ def <=>(other)
+ [@singleton ? 0 : 1, new_name] <=> [other.singleton ? 0 : 1, other.new_name]
+ end
+
+ ##
+ # HTML fragment reference for this alias
+
+ def aref
+ type = singleton ? 'c' : 'i'
+ "#alias-#{type}-#{html_name}"
+ end
+
+ ##
+ # Full old name including namespace
+
+ def full_old_name
+ @full_name || "#{parent.name}#{pretty_old_name}"
+ end
+
+ ##
+ # HTML id-friendly version of +#new_name+.
+
+ def html_name
+ CGI.escape(@new_name.gsub('-', '-2D')).gsub('%','-').sub(/^-/, '')
+ end
+
+ def inspect # :nodoc:
+ parent_name = parent ? parent.name : '(unknown)'
+ "#<%s:0x%x %s.alias_method %s, %s>" % [
+ self.class, object_id,
+ parent_name, @old_name, @new_name,
+ ]
+ end
+
+ ##
+ # '::' for the alias of a singleton method/attribute, '#' for instance-level.
+
+ def name_prefix
+ singleton ? '::' : '#'
+ end
+
+ ##
+ # Old name with prefix '::' or '#'.
+
+ def pretty_old_name
+ "#{singleton ? '::' : '#'}#{@old_name}"
+ end
+
+ ##
+ # New name with prefix '::' or '#'.
+
+ def pretty_new_name
+ "#{singleton ? '::' : '#'}#{@new_name}"
+ end
+
+ alias pretty_name pretty_new_name
+
+ def to_s # :nodoc:
+ "alias: #{self.new_name} -> #{self.pretty_old_name} in: #{parent}"
+ end
+
+end
+
diff --git a/lib/rdoc/anon_class.rb b/lib/rdoc/anon_class.rb
new file mode 100644
index 0000000000..63c09e11f1
--- /dev/null
+++ b/lib/rdoc/anon_class.rb
@@ -0,0 +1,12 @@
+require 'rdoc/class_module'
+
+##
+# An anonymous class like:
+#
+# c = Class.new do end
+#
+# AnonClass is currently not used.
+
+class RDoc::AnonClass < RDoc::ClassModule
+end
+
diff --git a/lib/rdoc/any_method.rb b/lib/rdoc/any_method.rb
new file mode 100644
index 0000000000..c008edfe95
--- /dev/null
+++ b/lib/rdoc/any_method.rb
@@ -0,0 +1,207 @@
+require 'rdoc/method_attr'
+require 'rdoc/token_stream'
+
+##
+# AnyMethod is the base class for objects representing methods
+
+class RDoc::AnyMethod < RDoc::MethodAttr
+
+ MARSHAL_VERSION = 1 # :nodoc:
+
+ ##
+ # Don't rename \#initialize to \::new
+
+ attr_accessor :dont_rename_initialize
+
+ ##
+ # The C function that implements this method (if it was defined in a C file)
+
+ attr_accessor :c_function
+
+ ##
+ # Different ways to call this method
+
+ attr_accessor :call_seq
+
+ ##
+ # Parameters for this method
+
+ attr_accessor :params
+
+ include RDoc::TokenStream
+
+ ##
+ # Creates a new AnyMethod with a token stream +text+ and +name+
+
+ def initialize text, name
+ super
+
+ @c_function = nil
+ @dont_rename_initialize = false
+ @token_stream = nil
+ end
+
+ ##
+ # Adds +an_alias+ as an alias for this method in +context+.
+
+ def add_alias an_alias, context = nil
+ method = self.class.new an_alias.text, an_alias.new_name
+
+ method.record_location an_alias.file
+ method.singleton = self.singleton
+ method.params = self.params
+ method.visibility = self.visibility
+ method.comment = an_alias.comment
+ method.is_alias_for = self
+ @aliases << method
+ context.add_method method if context
+ method
+ end
+
+ ##
+ # Prefix for +aref+ is 'method'.
+
+ def aref_prefix
+ 'method'
+ end
+
+ ##
+ # The call_seq or the param_seq with method name, if there is no call_seq.
+ #
+ # Use this for displaying a method's argument lists.
+
+ def arglists
+ if @call_seq then
+ @call_seq
+ elsif @params then
+ "#{name}#{param_seq}"
+ end
+ end
+
+ ##
+ # Dumps this AnyMethod for use by ri. See also #marshal_load
+
+ def marshal_dump
+ aliases = @aliases.map do |a|
+ [a.name, parse(a.comment)]
+ end
+
+ [ MARSHAL_VERSION,
+ @name,
+ full_name,
+ @singleton,
+ @visibility,
+ parse(@comment),
+ @call_seq,
+ @block_params,
+ aliases,
+ @params,
+ @file.absolute_name,
+ ]
+ end
+
+ ##
+ # Loads this AnyMethod from +array+. For a loaded AnyMethod the following
+ # methods will return cached values:
+ #
+ # * #full_name
+ # * #parent_name
+
+ def marshal_load(array)
+ @dont_rename_initialize = nil
+ @is_alias_for = nil
+ @token_stream = nil
+ @aliases = []
+
+ version = array[0]
+ @name = array[1]
+ @full_name = array[2]
+ @singleton = array[3]
+ @visibility = array[4]
+ @comment = array[5]
+ @call_seq = array[6]
+ @block_params = array[7]
+
+ array[8].each do |new_name, comment|
+ add_alias RDoc::Alias.new(nil, @name, new_name, comment, @singleton)
+ end
+
+ @params = array[9]
+
+ @parent_name = if @full_name =~ /#/ then
+ $`
+ else
+ name = @full_name.split('::')
+ name.pop
+ name.join '::'
+ end
+
+ @file = RDoc::TopLevel.new array[10] if version > 0
+ end
+
+ ##
+ # Method name
+ #
+ # If the method has no assigned name, it extracts it from #call_seq.
+
+ def name
+ return @name if @name
+
+ @name = @call_seq[/^.*?\.(\w+)/, 1] || @call_seq if @call_seq
+ end
+
+ ##
+ # A list of this method's method and yield parameters. +call-seq+ params
+ # are preferred over parsed method and block params.
+
+ def param_list
+ if @call_seq then
+ params = @call_seq.split("\n").last
+ params = params.sub(/.*?\((.*)\)/, '\1')
+ params = params.sub(/(\{|do)\s*\|([^|]*)\|.*/, ',\2')
+ elsif @params then
+ params = @params.sub(/\((.*)\)/, '\1')
+
+ params << ",#{@block_params}" if @block_params
+ elsif @block_params then
+ params = @block_params
+ else
+ return []
+ end
+
+ params.gsub(/\s+/, '').split ','
+ end
+
+ ##
+ # Pretty parameter list for this method. If the method's parameters were
+ # given by +call-seq+ it is preferred over the parsed values.
+
+ def param_seq
+ if @call_seq then
+ params = @call_seq.split("\n").last
+ params = params.sub(/[^( ]+/, '')
+ params = params.sub(/(\|[^|]+\|)\s*\.\.\.\s*(end|\})/, '\1 \2')
+ else
+ params = @params.gsub(/\s*\#.*/, '')
+ params = params.tr("\n", " ").squeeze(" ")
+ params = "(#{params})" unless params[0] == ?(
+ end
+
+ if @block_params then
+ # If this method has explicit block parameters, remove any explicit
+ # &block
+ params.sub!(/,?\s*&\w+/, '')
+
+ block = @block_params.gsub(/\s*\#.*/, '')
+ block = block.tr("\n", " ").squeeze(" ")
+ if block[0] == ?(
+ block.sub!(/^\(/, '').sub!(/\)/, '')
+ end
+ params << " { |#{block}| ... }"
+ end
+
+ params
+ end
+
+end
+
diff --git a/lib/rdoc/attr.rb b/lib/rdoc/attr.rb
new file mode 100644
index 0000000000..5d9bc17831
--- /dev/null
+++ b/lib/rdoc/attr.rb
@@ -0,0 +1,136 @@
+require 'rdoc/method_attr'
+
+##
+# An attribute created by \#attr, \#attr_reader, \#attr_writer or
+# \#attr_accessor
+
+class RDoc::Attr < RDoc::MethodAttr
+
+ MARSHAL_VERSION = 2 # :nodoc:
+
+ ##
+ # Is the attribute readable ('R'), writable ('W') or both ('RW')?
+
+ attr_accessor :rw
+
+ ##
+ # Creates a new Attr with body +text+, +name+, read/write status +rw+ and
+ # +comment+. +singleton+ marks this as a class attribute.
+
+ def initialize(text, name, rw, comment, singleton = false)
+ super text, name
+
+ @rw = rw
+ @singleton = singleton
+ self.comment = comment
+ end
+
+ ##
+ # Attributes are equal when their names, singleton and rw are identical
+
+ def == other
+ self.class == other.class and
+ self.name == other.name and
+ self.rw == other.rw and
+ self.singleton == other.singleton
+ end
+
+ ##
+ # Add +an_alias+ as an attribute in +context+.
+
+ def add_alias(an_alias, context)
+ new_attr = self.class.new(self.text, an_alias.new_name, self.rw,
+ self.comment, self.singleton)
+
+ new_attr.record_location an_alias.file
+ new_attr.visibility = self.visibility
+ new_attr.is_alias_for = self
+ @aliases << new_attr
+ context.add_attribute new_attr
+ new_attr
+ end
+
+ ##
+ # The #aref prefix for attributes
+
+ def aref_prefix
+ 'attribute'
+ end
+
+ ##
+ # Returns attr_reader, attr_writer or attr_accessor as appropriate.
+
+ def definition
+ case @rw
+ when 'RW' then 'attr_accessor'
+ when 'R' then 'attr_reader'
+ when 'W' then 'attr_writer'
+ end
+ end
+
+ def inspect # :nodoc:
+ alias_for = @is_alias_for ? " (alias for #{@is_alias_for.name})" : nil
+ visibility = self.visibility
+ visibility = "forced #{visibility}" if force_documentation
+ "#<%s:0x%x %s %s (%s)%s>" % [
+ self.class, object_id,
+ full_name,
+ rw,
+ visibility,
+ alias_for,
+ ]
+ end
+
+ ##
+ # Dumps this Attr for use by ri. See also #marshal_load
+
+ def marshal_dump
+ [ MARSHAL_VERSION,
+ @name,
+ full_name,
+ @rw,
+ @visibility,
+ parse(@comment),
+ singleton,
+ @file.absolute_name,
+ ]
+ end
+
+ ##
+ # Loads this Attr from +array+. For a loaded Attr the following
+ # methods will return cached values:
+ #
+ # * #full_name
+ # * #parent_name
+
+ def marshal_load array
+ version = array[0]
+ @name = array[1]
+ @full_name = array[2]
+ @rw = array[3]
+ @visibility = array[4]
+ @comment = array[5]
+ @singleton = array[6] || false # MARSHAL_VERSION == 0
+
+ @file = RDoc::TopLevel.new array[7] if version > 1
+
+ @parent_name = @full_name
+ end
+
+ def pretty_print q # :nodoc:
+ q.group 2, "[#{self.class.name} #{full_name} #{rw} #{visibility}", "]" do
+ unless comment.empty? then
+ q.breakable
+ q.text "comment:"
+ q.breakable
+ q.pp @comment
+ end
+ end
+ end
+
+ def to_s # :nodoc:
+ "#{definition} #{name} in: #{parent}"
+ end
+
+end
+
diff --git a/lib/rdoc/class_module.rb b/lib/rdoc/class_module.rb
new file mode 100644
index 0000000000..27066d8bd7
--- /dev/null
+++ b/lib/rdoc/class_module.rb
@@ -0,0 +1,582 @@
+require 'rdoc/context'
+
+##
+# ClassModule is the base class for objects representing either a class or a
+# module.
+
+class RDoc::ClassModule < RDoc::Context
+
+ ##
+ # 1::
+ # RDoc 3.7
+ # * Added visibility, singleton and file to attributes
+ # * Added file to constants
+ # * Added file to includes
+ # * Added file to methods
+
+ MARSHAL_VERSION = 1 # :nodoc:
+
+ ##
+ # Constants that are aliases for this class or module
+
+ attr_accessor :constant_aliases
+
+ ##
+ # Comment and the location it came from. Use #add_comment to add comments
+
+ attr_reader :comment_location
+
+ attr_accessor :diagram # :nodoc:
+
+ ##
+ # Class or module this constant is an alias for
+
+ attr_accessor :is_alias_for
+
+ ##
+ # Return a RDoc::ClassModule of class +class_type+ that is a copy
+ # of module +module+. Used to promote modules to classes.
+ #--
+ # TODO move to RDoc::NormalClass (I think)
+
+ def self.from_module class_type, mod
+ klass = class_type.new mod.name
+
+ mod.comment_location.each do |comment, location|
+ klass.add_comment comment, location
+ end
+
+ klass.parent = mod.parent
+ klass.section = mod.section
+ klass.viewer = mod.viewer
+
+ klass.attributes.concat mod.attributes
+ klass.method_list.concat mod.method_list
+ klass.aliases.concat mod.aliases
+ klass.external_aliases.concat mod.external_aliases
+ klass.constants.concat mod.constants
+ klass.includes.concat mod.includes
+
+ klass.methods_hash.update mod.methods_hash
+ klass.constants_hash.update mod.constants_hash
+
+ klass.current_section = mod.current_section
+ klass.in_files.concat mod.in_files
+ klass.sections.concat mod.sections
+ klass.unmatched_alias_lists = mod.unmatched_alias_lists
+ klass.current_section = mod.current_section
+ klass.visibility = mod.visibility
+
+ klass.classes_hash.update mod.classes_hash
+ klass.modules_hash.update mod.modules_hash
+ klass.metadata.update mod.metadata
+
+ klass.document_self = mod.received_nodoc ? nil : mod.document_self
+ klass.document_children = mod.document_children
+ klass.force_documentation = mod.force_documentation
+ klass.done_documenting = mod.done_documenting
+
+ # update the parent of all children
+
+ (klass.attributes +
+ klass.method_list +
+ klass.aliases +
+ klass.external_aliases +
+ klass.constants +
+ klass.includes +
+ klass.classes +
+ klass.modules).each do |obj|
+ obj.parent = klass
+ obj.full_name = nil
+ end
+
+ klass
+ end
+
+ ##
+ # Creates a new ClassModule with +name+ with optional +superclass+
+ #
+ # This is a constructor for subclasses, and must never be called directly.
+
+ def initialize(name, superclass = nil)
+ @constant_aliases = []
+ @diagram = nil
+ @is_alias_for = nil
+ @name = name
+ @superclass = superclass
+ @comment_location = [] # [[comment, location]]
+
+ super()
+ end
+
+ ##
+ # Adds +comment+ to this ClassModule's list of comments at +location+. This
+ # method is preferred over #comment= since it allows ri data to be updated
+ # across multiple runs.
+
+ def add_comment comment, location
+ return if comment.empty? or not document_self
+
+ original = comment
+
+ comment = normalize_comment comment
+ @comment_location << [comment, location]
+
+ self.comment = original
+ end
+
+ ##
+ # Ancestors list for this ClassModule: the list of included modules
+ # (classes will add their superclass if any).
+ #
+ # Returns the included classes or modules, not the includes
+ # themselves. The returned values are either String or
+ # RDoc::NormalModule instances (see RDoc::Include#module).
+ #
+ # The values are returned in reverse order of their inclusion,
+ # which is the order suitable for searching methods/attributes
+ # in the ancestors. The superclass, if any, comes last.
+
+ def ancestors
+ includes.map { |i| i.module }.reverse
+ end
+
+ ##
+ # Clears the comment. Used by the ruby parser.
+
+ def clear_comment
+ @comment = ''
+ end
+
+ ##
+ # This method is deprecated, use #add_comment instead.
+ #
+ # Appends +comment+ to the current comment, but separated by a rule. Works
+ # more like <tt>+=</tt>.
+
+ def comment= comment
+ return if comment.empty?
+
+ comment = normalize_comment comment
+ comment = "#{@comment}\n---\n#{comment}" unless @comment.empty?
+
+ super comment
+ end
+
+ ##
+ # Prepares this ClassModule for use by a generator.
+ #
+ # See RDoc::TopLevel::complete
+
+ def complete min_visibility
+ update_aliases
+ remove_nodoc_children
+ update_includes
+ remove_invisible min_visibility
+ end
+
+ ##
+ # Iterates the ancestors of this class or module for which an
+ # RDoc::ClassModule exists.
+
+ def each_ancestor # :yields: module
+ ancestors.each do |mod|
+ next if String === mod
+ yield mod
+ end
+ end
+
+ ##
+ # Looks for a symbol in the #ancestors. See Context#find_local_symbol.
+
+ def find_ancestor_local_symbol symbol
+ each_ancestor do |m|
+ res = m.find_local_symbol(symbol)
+ return res if res
+ end
+
+ nil
+ end
+
+ ##
+ # Finds a class or module with +name+ in this namespace or its descendants
+
+ def find_class_named name
+ return self if full_name == name
+ return self if @name == name
+
+ @classes.values.find do |klass|
+ next if klass == self
+ klass.find_class_named name
+ end
+ end
+
+ ##
+ # Return the fully qualified name of this class or module
+
+ def full_name
+ @full_name ||= if RDoc::ClassModule === @parent then
+ "#{@parent.full_name}::#{@name}"
+ else
+ @name
+ end
+ end
+
+ ##
+ # TODO: filter included items by #display?
+
+ def marshal_dump # :nodoc:
+ attrs = attributes.sort.map do |attr|
+ [ attr.name, attr.rw,
+ attr.visibility, attr.singleton, attr.file_name,
+ ]
+ end
+
+ method_types = methods_by_type.map do |type, visibilities|
+ visibilities = visibilities.map do |visibility, methods|
+ method_names = methods.map do |method|
+ [method.name, method.file_name]
+ end
+
+ [visibility, method_names.uniq]
+ end
+
+ [type, visibilities]
+ end
+
+ [ MARSHAL_VERSION,
+ @name,
+ full_name,
+ @superclass,
+ parse(@comment_location),
+ attrs,
+ constants.map do |const|
+ [const.name, parse(const.comment), const.file_name]
+ end,
+ includes.map do |incl|
+ [incl.name, parse(incl.comment), incl.file_name]
+ end,
+ method_types,
+ ]
+ end
+
+ def marshal_load array # :nodoc:
+ initialize_methods_etc
+ @current_section = nil
+ @document_self = true
+ @done_documenting = false
+ @parent = nil
+ @temporary_section = nil
+ @visibility = nil
+
+ @name = array[1]
+ @full_name = array[2]
+ @superclass = array[3]
+ @comment = array[4]
+
+ @comment_location = if RDoc::Markup::Document === @comment.parts.first then
+ @comment
+ else
+ RDoc::Markup::Document.new @comment
+ end
+
+ array[5].each do |name, rw, visibility, singleton, file|
+ singleton ||= false
+ visibility ||= :public
+
+ attr = RDoc::Attr.new nil, name, rw, nil, singleton
+
+ add_attribute attr
+ attr.visibility = visibility
+ attr.record_location RDoc::TopLevel.new file
+ end
+
+ array[6].each do |name, comment, file|
+ const = add_constant RDoc::Constant.new(name, nil, comment)
+ const.record_location RDoc::TopLevel.new file
+ end
+
+ array[7].each do |name, comment, file|
+ incl = add_include RDoc::Include.new(name, comment)
+ incl.record_location RDoc::TopLevel.new file
+ end
+
+ array[8].each do |type, visibilities|
+ visibilities.each do |visibility, methods|
+ @visibility = visibility
+
+ methods.each do |name, file|
+ method = RDoc::AnyMethod.new nil, name
+ method.singleton = true if type == 'class'
+ method.record_location RDoc::TopLevel.new file
+ add_method method
+ end
+ end
+ end
+ end
+
+ ##
+ # Merges +class_module+ into this ClassModule.
+ #
+ # The data in +class_module+ is preferred over the receiver.
+
+ def merge class_module
+ other_document = parse class_module.comment_location
+
+ if other_document then
+ document = parse @comment_location
+
+ document = document.merge other_document
+
+ @comment = @comment_location = document
+ end
+
+ cm = class_module
+ other_files = cm.in_files
+
+ merge_collections attributes, cm.attributes, other_files do |add, attr|
+ if add then
+ add_attribute attr
+ else
+ @attributes.delete attr
+ @methods_hash.delete attr.pretty_name
+ end
+ end
+
+ merge_collections constants, cm.constants, other_files do |add, const|
+ if add then
+ add_constant const
+ else
+ @constants.delete const
+ @constants_hash.delete const.name
+ end
+ end
+
+ merge_collections includes, cm.includes, other_files do |add, incl|
+ if add then
+ add_include incl
+ else
+ @includes.delete incl
+ end
+ end
+
+ merge_collections method_list, cm.method_list, other_files do |add, meth|
+ if add then
+ add_method meth
+ else
+ @method_list.delete meth
+ @methods_hash.delete meth.pretty_name
+ end
+ end
+
+ self
+ end
+
+ ##
+ # Merges collection +mine+ with +other+ preferring other. +other_files+ is
+ # used to help determine which items should be deleted.
+ #
+ # Yields whether the item should be added or removed (true or false) and the
+ # item to be added or removed.
+ #
+ # merge_collections things, other.things, other.in_files do |add, thing|
+ # if add then
+ # # add the thing
+ # else
+ # # remove the thing
+ # end
+ # end
+
+ def merge_collections mine, other, other_files, &block # :nodoc:
+ my_things = mine. group_by { |thing| thing.file }
+ other_things = other.group_by { |thing| thing.file }
+
+ my_things.delete_if do |file, things|
+ next false unless other_files.include? file
+
+ things.each do |thing|
+ yield false, thing
+ end
+
+ true
+ end
+
+ other_things.each do |file, things|
+ my_things[file].each { |thing| yield false, thing } if
+ my_things.include?(file)
+
+ things.each do |thing|
+ yield true, thing
+ end
+ end
+ end
+
+ ##
+ # Does this object represent a module?
+
+ def module?
+ false
+ end
+
+ ##
+ # Allows overriding the initial name.
+ #
+ # Used for modules and classes that are constant aliases.
+
+ def name= new_name
+ @name = new_name
+ end
+
+ ##
+ # Parses +comment_location+ into an RDoc::Markup::Document composed of
+ # multiple RDoc::Markup::Documents with their file set.
+
+ def parse comment_location
+ case comment_location
+ when String then
+ super
+ when Array then
+ docs = comment_location.map do |comment, location|
+ doc = super comment
+ doc.file = location.absolute_name
+ doc
+ end
+
+ RDoc::Markup::Document.new(*docs)
+ when RDoc::Markup::Document then
+ return comment_location
+ else
+ raise ArgumentError, "unknown comment class #{comment_location.class}"
+ end
+ end
+
+ ##
+ # Path to this class or module
+
+ def path
+ http_url RDoc::RDoc.current.generator.class_dir
+ end
+
+ ##
+ # Name to use to generate the url:
+ # modules and classes that are aliases for another
+ # module or class return the name of the latter.
+
+ def name_for_path
+ is_alias_for ? is_alias_for.full_name : full_name
+ end
+
+ ##
+ # Returns the classes and modules that are not constants
+ # aliasing another class or module. For use by formatters
+ # only (caches its result).
+
+ def non_aliases
+ @non_aliases ||= classes_and_modules.reject { |cm| cm.is_alias_for }
+ end
+
+ ##
+ # Updates the child modules or classes of class/module +parent+ by
+ # deleting the ones that have been removed from the documentation.
+ #
+ # +parent_hash+ is either <tt>parent.modules_hash</tt> or
+ # <tt>parent.classes_hash</tt> and +all_hash+ is ::all_modules_hash or
+ # ::all_classes_hash.
+
+ def remove_nodoc_children
+ prefix = self.full_name + '::'
+
+ modules_hash.each_key do |name|
+ full_name = prefix + name
+ modules_hash.delete name unless RDoc::TopLevel.all_modules_hash[full_name]
+ end
+
+ classes_hash.each_key do |name|
+ full_name = prefix + name
+ classes_hash.delete name unless RDoc::TopLevel.all_classes_hash[full_name]
+ end
+ end
+
+ ##
+ # Get the superclass of this class. Attempts to retrieve the superclass
+ # object, returns the name if it is not known.
+
+ def superclass
+ RDoc::TopLevel.find_class_named(@superclass) || @superclass
+ end
+
+ ##
+ # Set the superclass of this class to +superclass+
+
+ def superclass=(superclass)
+ raise NoMethodError, "#{full_name} is a module" if module?
+ @superclass = superclass
+ end
+
+ def to_s # :nodoc:
+ if is_alias_for then
+ "#{self.class.name} #{self.full_name} -> #{is_alias_for}"
+ else
+ super
+ end
+ end
+
+ ##
+ # 'module' or 'class'
+
+ def type
+ module? ? 'module' : 'class'
+ end
+
+ ##
+ # Updates the child modules & classes by replacing the ones that are
+ # aliases through a constant.
+ #
+ # The aliased module/class is replaced in the children and in
+ # RDoc::TopLevel::all_modules_hash or RDoc::TopLevel::all_classes_hash
+ # by a copy that has <tt>RDoc::ClassModule#is_alias_for</tt> set to
+ # the aliased module/class, and this copy is added to <tt>#aliases</tt>
+ # of the aliased module/class.
+ #
+ # Formatters can use the #non_aliases method to retrieve children that
+ # are not aliases, for instance to list the namespace content, since
+ # the aliased modules are included in the constants of the class/module,
+ # that are listed separately.
+
+ def update_aliases
+ constants.each do |const|
+ next unless cm = const.is_alias_for
+ cm_alias = cm.dup
+ cm_alias.name = const.name
+ cm_alias.parent = self
+ cm_alias.full_name = nil # force update for new parent
+ cm_alias.aliases.clear
+ cm_alias.is_alias_for = cm
+
+ if cm.module? then
+ RDoc::TopLevel.all_modules_hash[cm_alias.full_name] = cm_alias
+ modules_hash[const.name] = cm_alias
+ else
+ RDoc::TopLevel.all_classes_hash[cm_alias.full_name] = cm_alias
+ classes_hash[const.name] = cm_alias
+ end
+
+ cm.aliases << cm_alias
+ end
+ end
+
+ ##
+ # Deletes from #includes those whose module has been removed from the
+ # documentation.
+ #--
+ # FIXME: includes are not reliably removed, see _possible_bug test case
+
+ def update_includes
+ includes.reject! do |include|
+ mod = include.module
+ !(String === mod) && RDoc::TopLevel.all_modules_hash[mod.full_name].nil?
+ end
+ end
+
+end
+
diff --git a/lib/rdoc/code_object.rb b/lib/rdoc/code_object.rb
new file mode 100644
index 0000000000..54826fffbd
--- /dev/null
+++ b/lib/rdoc/code_object.rb
@@ -0,0 +1,307 @@
+require 'rdoc'
+require 'rdoc/text'
+
+##
+# Base class for the RDoc code tree.
+#
+# We contain the common stuff for contexts (which are containers) and other
+# elements (methods, attributes and so on)
+#
+# Here's the tree of the CodeObject subclasses:
+#
+# * RDoc::Context
+# * RDoc::TopLevel
+# * RDoc::ClassModule
+# * RDoc::AnonClass (never used so far)
+# * RDoc::NormalClass
+# * RDoc::NormalModule
+# * RDoc::SingleClass
+# * RDoc::MethodAttr
+# * RDoc::Attr
+# * RDoc::AnyMethod
+# * RDoc::GhostMethod
+# * RDoc::MetaMethod
+# * RDoc::Alias
+# * RDoc::Constant
+# * RDoc::Require
+# * RDoc::Include
+
+class RDoc::CodeObject
+
+ include RDoc::Text
+
+ ##
+ # Our comment
+
+ attr_reader :comment
+
+ ##
+ # Do we document our children?
+
+ attr_reader :document_children
+
+ ##
+ # Do we document ourselves?
+
+ attr_reader :document_self
+
+ ##
+ # Are we done documenting (ie, did we come across a :enddoc:)?
+
+ attr_reader :done_documenting
+
+ ##
+ # Which file this code object was defined in
+
+ attr_reader :file
+
+ ##
+ # Force documentation of this CodeObject
+
+ attr_reader :force_documentation
+
+ ##
+ # Line in #file where this CodeObject was defined
+
+ attr_accessor :line
+
+ ##
+ # Hash of arbitrary metadata for this CodeObject
+
+ attr_reader :metadata
+
+ ##
+ # Offset in #file where this CodeObject was defined
+ #--
+ # TODO character or byte?
+
+ attr_accessor :offset
+
+ ##
+ # Our parent CodeObject
+
+ attr_accessor :parent
+
+ ##
+ # Did we ever receive a +:nodoc:+ directive?
+
+ attr_reader :received_nodoc
+
+ ##
+ # Which section are we in
+
+ attr_accessor :section
+
+ ##
+ # We are the model of the code, but we know that at some point we will be
+ # worked on by viewers. By implementing the Viewable protocol, viewers can
+ # associated themselves with these objects.
+
+ attr_accessor :viewer
+
+ ##
+ # Creates a new CodeObject that will document itself and its children
+
+ def initialize
+ @metadata = {}
+ @comment = ''
+ @parent = nil
+ @file = nil
+ @full_name = nil
+
+ @document_children = true
+ @document_self = true
+ @done_documenting = false
+ @force_documentation = false
+ @received_nodoc = false
+ @ignored = false
+ end
+
+ ##
+ # Replaces our comment with +comment+, unless it is empty.
+
+ def comment=(comment)
+ @comment = case comment
+ when NilClass then ''
+ when RDoc::Markup::Document then comment
+ else
+ if comment and not comment.empty? then
+ normalize_comment comment
+ else
+ # TODO is this sufficient?
+ # HACK correct fix is to have #initialize create @comment
+ # with the correct encoding
+ if String === @comment and
+ Object.const_defined? :Encoding and @comment.empty? then
+ @comment.force_encoding comment.encoding
+ end
+ @comment
+ end
+ end
+ end
+
+ ##
+ # Should this CodeObject be shown in documentation?
+
+ def display?
+ @document_self and not @ignored
+ end
+
+ ##
+ # Enables or disables documentation of this CodeObject's children unless it
+ # has been turned off by :enddoc:
+
+ def document_children=(document_children)
+ @document_children = document_children unless @done_documenting
+ end
+
+ ##
+ # Enables or disables documentation of this CodeObject unless it has been
+ # turned off by :enddoc:. If the argument is +nil+ it means the
+ # documentation is turned off by +:nodoc:+.
+
+ def document_self=(document_self)
+ return if @done_documenting
+
+ @document_self = document_self
+ @received_nodoc = true if document_self.nil?
+ end
+
+ ##
+ # Does this object have a comment with content or is #received_nodoc true?
+
+ def documented?
+ @received_nodoc or !@comment.empty?
+ end
+
+ ##
+ # Turns documentation on/off, and turns on/off #document_self
+ # and #document_children.
+ #
+ # Once documentation has been turned off (by +:enddoc:+),
+ # the object will refuse to turn #document_self or
+ # #document_children on, so +:doc:+ and +:start_doc:+ directives
+ # will have no effect in the current file.
+
+ def done_documenting=(value)
+ @done_documenting = value
+ @document_self = !value
+ @document_children = @document_self
+ end
+
+ ##
+ # Yields each parent of this CodeObject. See also
+ # RDoc::ClassModule#each_ancestor
+
+ def each_parent
+ code_object = self
+
+ while code_object = code_object.parent do
+ yield code_object
+ end
+
+ self
+ end
+
+ ##
+ # File name where this CodeObject was found.
+ #
+ # See also RDoc::Context#in_files
+
+ def file_name
+ return unless @file
+
+ @file.absolute_name
+ end
+
+ ##
+ # Force the documentation of this object unless documentation
+ # has been turned off by :endoc:
+ #--
+ # HACK untested, was assigning to an ivar
+
+ def force_documentation=(value)
+ @force_documentation = value unless @done_documenting
+ end
+
+ ##
+ # Sets the full_name overriding any computed full name.
+ #
+ # Set to +nil+ to clear RDoc's cached value
+
+ def full_name= full_name
+ @full_name = full_name
+ end
+
+ ##
+ # Use this to ignore a CodeObject and all its children until found again
+ # (#record_location is called). An ignored item will not be shown in
+ # documentation.
+ #
+ # See github issue #55
+ #
+ # The ignored status is temporary in order to allow implementation details
+ # to be hidden. At the end of processing a file RDoc allows all classes
+ # and modules to add new documentation to previously created classes.
+ #
+ # If a class was ignored (via stopdoc) then reopened later with additional
+ # documentation it should be shown. If a class was ignored and never
+ # reopened it should not be shown. The ignore flag allows this to occur.
+
+ def ignore
+ @ignored = true
+
+ stop_doc
+ end
+
+ ##
+ # Has this class been ignored?
+
+ def ignored?
+ @ignored
+ end
+
+ ##
+ # File name of our parent
+
+ def parent_file_name
+ @parent ? @parent.base_name : '(unknown)'
+ end
+
+ ##
+ # Name of our parent
+
+ def parent_name
+ @parent ? @parent.full_name : '(unknown)'
+ end
+
+ ##
+ # Records the RDoc::TopLevel (file) where this code object was defined
+
+ def record_location top_level
+ @ignored = false
+ @file = top_level
+ end
+
+ ##
+ # Enable capture of documentation unless documentation has been
+ # turned off by :endoc:
+
+ def start_doc
+ return if @done_documenting
+
+ @document_self = true
+ @document_children = true
+ @ignored = false
+ end
+
+ ##
+ # Disable capture of documentation
+
+ def stop_doc
+ @document_self = false
+ @document_children = false
+ end
+
+end
+
diff --git a/lib/rdoc/code_objects.rb b/lib/rdoc/code_objects.rb
index 3fdd86314d..c60dad92df 100644
--- a/lib/rdoc/code_objects.rb
+++ b/lib/rdoc/code_objects.rb
@@ -1,1061 +1,23 @@
-# We represent the various high-level code constructs that appear
-# in Ruby programs: classes, modules, methods, and so on.
+# We represent the various high-level code constructs that appear in Ruby
+# programs: classes, modules, methods, and so on.
-require 'rdoc/tokenstream'
+require 'rdoc/code_object'
+require 'rdoc/context'
+require 'rdoc/top_level'
-module RDoc
+require 'rdoc/class_module'
+require 'rdoc/normal_class'
+require 'rdoc/normal_module'
+require 'rdoc/anon_class'
+require 'rdoc/single_class'
- ##
- # We contain the common stuff for contexts (which are containers) and other
- # elements (methods, attributes and so on)
+require 'rdoc/any_method'
+require 'rdoc/alias'
+require 'rdoc/ghost_method'
+require 'rdoc/meta_method'
- class CodeObject
+require 'rdoc/attr'
+require 'rdoc/constant'
+require 'rdoc/require'
+require 'rdoc/include'
- attr_accessor :parent
-
- # We are the model of the code, but we know that at some point
- # we will be worked on by viewers. By implementing the Viewable
- # protocol, viewers can associated themselves with these objects.
-
- attr_accessor :viewer
-
- # are we done documenting (ie, did we come across a :enddoc:)?
-
- attr_accessor :done_documenting
-
- # Which section are we in
-
- attr_accessor :section
-
- # do we document ourselves?
-
- attr_reader :document_self
-
- def initialize
- @document_self = true
- @document_children = true
- @force_documentation = false
- @done_documenting = false
- end
-
- def document_self=(val)
- @document_self = val
- if !val
- remove_methods_etc
- end
- end
-
- # set and cleared by :startdoc: and :enddoc:, this is used to toggle
- # the capturing of documentation
- def start_doc
- @document_self = true
- @document_children = true
- end
-
- def stop_doc
- @document_self = false
- @document_children = false
- end
-
- # do we document ourselves and our children
-
- attr_reader :document_children
-
- def document_children=(val)
- @document_children = val
- if !val
- remove_classes_and_modules
- end
- end
-
- # Do we _force_ documentation, even is we wouldn't normally show the entity
- attr_accessor :force_documentation
-
- def parent_file_name
- @parent ? @parent.file_base_name : '(unknown)'
- end
-
- def parent_name
- @parent ? @parent.name : '(unknown)'
- end
-
- # Default callbacks to nothing, but this is overridden for classes
- # and modules
- def remove_classes_and_modules
- end
-
- def remove_methods_etc
- end
-
- # Access the code object's comment
- attr_reader :comment
-
- # Update the comment, but don't overwrite a real comment with an empty one
- def comment=(comment)
- @comment = comment unless comment.empty?
- end
-
- # There's a wee trick we pull. Comment blocks can have directives that
- # override the stuff we extract during the parse. So, we have a special
- # class method, attr_overridable, that lets code objects list
- # those directives. Wehn a comment is assigned, we then extract
- # out any matching directives and update our object
-
- def self.attr_overridable(name, *aliases)
- @overridables ||= {}
-
- attr_accessor name
-
- aliases.unshift name
- aliases.each do |directive_name|
- @overridables[directive_name.to_s] = name
- end
- end
-
- end
-
- ##
- # A Context is something that can hold modules, classes, methods,
- # attributes, aliases, requires, and includes. Classes, modules, and files
- # are all Contexts.
-
- class Context < CodeObject
-
- attr_reader :aliases
- attr_reader :attributes
- attr_reader :constants
- attr_reader :current_section
- attr_reader :in_files
- attr_reader :includes
- attr_reader :method_list
- attr_reader :name
- attr_reader :requires
- attr_reader :sections
- attr_reader :visibility
-
- class Section
- attr_reader :title, :comment, :sequence
-
- @@sequence = "SEC00000"
-
- def initialize(title, comment)
- @title = title
- @@sequence.succ!
- @sequence = @@sequence.dup
- @comment = nil
- set_comment(comment)
- end
-
- def ==(other)
- self.class === other and @sequence == other.sequence
- end
-
- def inspect
- "#<%s:0x%x %s %p>" % [
- self.class, object_id,
- @sequence, title
- ]
- end
-
- ##
- # Set the comment for this section from the original comment block If
- # the first line contains :section:, strip it and use the rest.
- # Otherwise remove lines up to the line containing :section:, and look
- # for those lines again at the end and remove them. This lets us write
- #
- # # ---------------------
- # # :SECTION: The title
- # # The body
- # # ---------------------
-
- def set_comment(comment)
- return unless comment
-
- if comment =~ /^#[ \t]*:section:.*\n/
- start = $`
- rest = $'
-
- if start.empty?
- @comment = rest
- else
- @comment = rest.sub(/#{start.chomp}\Z/, '')
- end
- else
- @comment = comment
- end
- @comment = nil if @comment.empty?
- end
-
- end
-
- def initialize
- super
-
- @in_files = []
-
- @name ||= "unknown"
- @comment ||= ""
- @parent = nil
- @visibility = :public
-
- @current_section = Section.new(nil, nil)
- @sections = [ @current_section ]
-
- initialize_methods_etc
- initialize_classes_and_modules
- end
-
- ##
- # map the class hash to an array externally
-
- def classes
- @classes.values
- end
-
- ##
- # map the module hash to an array externally
-
- def modules
- @modules.values
- end
-
- ##
- # return the classes Hash (only to be used internally)
-
- def classes_hash
- @classes
- end
- protected :classes_hash
-
- ##
- # return the modules Hash (only to be used internally)
-
- def modules_hash
- @modules
- end
- protected :modules_hash
-
- ##
- # Change the default visibility for new methods
-
- def ongoing_visibility=(vis)
- @visibility = vis
- end
-
- ##
- # Yields Method and Attr entries matching the list of names in +methods+.
- # Attributes are only returned when +singleton+ is false.
-
- def methods_matching(methods, singleton = false)
- count = 0
-
- @method_list.each do |m|
- if methods.include? m.name and m.singleton == singleton then
- yield m
- count += 1
- end
- end
-
- return if count == methods.size || singleton
-
- # perhaps we need to look at attributes
-
- @attributes.each do |a|
- yield a if methods.include? a.name
- end
- end
-
- ##
- # Given an array +methods+ of method names, set the visibility of the
- # corresponding AnyMethod object
-
- def set_visibility_for(methods, vis, singleton = false)
- methods_matching methods, singleton do |m|
- m.visibility = vis
- end
- end
-
- ##
- # Record the file that we happen to find it in
-
- def record_location(toplevel)
- @in_files << toplevel unless @in_files.include?(toplevel)
- end
-
- # Return true if at least part of this thing was defined in +file+
- def defined_in?(file)
- @in_files.include?(file)
- end
-
- def add_class(class_type, name, superclass)
- klass = add_class_or_module @classes, class_type, name, superclass
-
- #
- # If the parser encounters Container::Item before encountering
- # Container, then it assumes that Container is a module. This
- # may not be the case, so remove Container from the module list
- # if present and transfer any contained classes and modules to
- # the new class.
- #
- mod = @modules.delete(name)
-
- if mod then
- klass.classes_hash.update(mod.classes_hash)
- klass.modules_hash.update(mod.modules_hash)
- klass.method_list.concat(mod.method_list)
- end
-
- return klass
- end
-
- def add_module(class_type, name)
- add_class_or_module(@modules, class_type, name, nil)
- end
-
- def add_method(a_method)
- a_method.visibility = @visibility
- add_to(@method_list, a_method)
-
- unmatched_alias_list = @unmatched_alias_lists[a_method.name]
- if unmatched_alias_list then
- unmatched_alias_list.each do |unmatched_alias|
- add_alias_impl unmatched_alias, a_method
- @aliases.delete unmatched_alias
- end
-
- @unmatched_alias_lists.delete a_method.name
- end
- end
-
- def add_attribute(an_attribute)
- add_to(@attributes, an_attribute)
- end
-
- def add_alias_impl(an_alias, meth)
- new_meth = AnyMethod.new(an_alias.text, an_alias.new_name)
- new_meth.is_alias_for = meth
- new_meth.singleton = meth.singleton
- new_meth.params = meth.params
- new_meth.comment = "Alias for \##{meth.name}"
- meth.add_alias(new_meth)
- add_method(new_meth)
- end
-
- def add_alias(an_alias)
- meth = find_instance_method_named(an_alias.old_name)
-
- if meth then
- add_alias_impl(an_alias, meth)
- else
- add_to(@aliases, an_alias)
- unmatched_alias_list = @unmatched_alias_lists[an_alias.old_name] ||= []
- unmatched_alias_list.push(an_alias)
- end
-
- an_alias
- end
-
- def add_include(an_include)
- add_to(@includes, an_include)
- end
-
- def add_constant(const)
- add_to(@constants, const)
- end
-
- # Requires always get added to the top-level (file) context
- def add_require(a_require)
- if TopLevel === self then
- add_to @requires, a_require
- else
- parent.add_require a_require
- end
- end
-
- def add_class_or_module(collection, class_type, name, superclass=nil)
- cls = collection[name]
-
- if cls then
- cls.superclass = superclass unless cls.module?
- puts "Reusing class/module #{name}" if $DEBUG_RDOC
- else
- cls = class_type.new(name, superclass)
-# collection[name] = cls if @document_self && !@done_documenting
- collection[name] = cls if !@done_documenting
- cls.parent = self
- cls.section = @current_section
- end
- cls
- end
-
- def add_to(array, thing)
- array << thing if @document_self and not @done_documenting
- thing.parent = self
- thing.section = @current_section
- end
-
- # If a class's documentation is turned off after we've started
- # collecting methods etc., we need to remove the ones
- # we have
-
- def remove_methods_etc
- initialize_methods_etc
- end
-
- def initialize_methods_etc
- @method_list = []
- @attributes = []
- @aliases = []
- @requires = []
- @includes = []
- @constants = []
-
- # This Hash maps a method name to a list of unmatched
- # aliases (aliases of a method not yet encountered).
- @unmatched_alias_lists = {}
- end
-
- # and remove classes and modules when we see a :nodoc: all
- def remove_classes_and_modules
- initialize_classes_and_modules
- end
-
- def initialize_classes_and_modules
- @classes = {}
- @modules = {}
- end
-
- # Find a named module
- def find_module_named(name)
- # First check the enclosed modules, then check the module itself,
- # then check the enclosing modules (this mirrors the check done by
- # the Ruby parser)
- res = @modules[name] || @classes[name]
- return res if res
- return self if self.name == name
- find_enclosing_module_named(name)
- end
-
- # find a module at a higher scope
- def find_enclosing_module_named(name)
- parent && parent.find_module_named(name)
- end
-
- # Iterate over all the classes and modules in
- # this object
-
- def each_classmodule
- @modules.each_value {|m| yield m}
- @classes.each_value {|c| yield c}
- end
-
- def each_method
- @method_list.each {|m| yield m}
- end
-
- def each_attribute
- @attributes.each {|a| yield a}
- end
-
- def each_constant
- @constants.each {|c| yield c}
- end
-
- # Return the toplevel that owns us
-
- def toplevel
- return @toplevel if defined? @toplevel
- @toplevel = self
- @toplevel = @toplevel.parent until TopLevel === @toplevel
- @toplevel
- end
-
- # allow us to sort modules by name
- def <=>(other)
- name <=> other.name
- end
-
- ##
- # Look up +symbol+. If +method+ is non-nil, then we assume the symbol
- # references a module that contains that method.
-
- def find_symbol(symbol, method = nil)
- result = nil
-
- case symbol
- when /^::(.*)/ then
- result = toplevel.find_symbol($1)
- when /::/ then
- modules = symbol.split(/::/)
-
- unless modules.empty? then
- module_name = modules.shift
- result = find_module_named(module_name)
-
- if result then
- modules.each do |name|
- result = result.find_module_named(name)
- break unless result
- end
- end
- end
-
- else
- # if a method is specified, then we're definitely looking for
- # a module, otherwise it could be any symbol
- if method
- result = find_module_named(symbol)
- else
- result = find_local_symbol(symbol)
- if result.nil?
- if symbol =~ /^[A-Z]/
- result = parent
- while result && result.name != symbol
- result = result.parent
- end
- end
- end
- end
- end
-
- if result and method then
- fail unless result.respond_to? :find_local_symbol
- result = result.find_local_symbol(method)
- end
-
- result
- end
-
- def find_local_symbol(symbol)
- res = find_method_named(symbol) ||
- find_constant_named(symbol) ||
- find_attribute_named(symbol) ||
- find_module_named(symbol) ||
- find_file_named(symbol)
- end
-
- # Handle sections
-
- def set_current_section(title, comment)
- @current_section = Section.new(title, comment)
- @sections << @current_section
- end
-
- private
-
- # Find a named method, or return nil
- def find_method_named(name)
- @method_list.find {|meth| meth.name == name}
- end
-
- # Find a named instance method, or return nil
- def find_instance_method_named(name)
- @method_list.find {|meth| meth.name == name && !meth.singleton}
- end
-
- # Find a named constant, or return nil
- def find_constant_named(name)
- @constants.find {|m| m.name == name}
- end
-
- # Find a named attribute, or return nil
- def find_attribute_named(name)
- @attributes.find {|m| m.name == name}
- end
-
- ##
- # Find a named file, or return nil
-
- def find_file_named(name)
- toplevel.class.find_file_named(name)
- end
-
- end
-
- ##
- # A TopLevel context is a source file
-
- class TopLevel < Context
- attr_accessor :file_stat
- attr_accessor :file_relative_name
- attr_accessor :file_absolute_name
- attr_accessor :diagram
-
- @@all_classes = {}
- @@all_modules = {}
- @@all_files = {}
-
- def self.reset
- @@all_classes = {}
- @@all_modules = {}
- @@all_files = {}
- end
-
- def initialize(file_name)
- super()
- @name = "TopLevel"
- @file_relative_name = file_name
- @file_absolute_name = file_name
- @file_stat = File.stat(file_name)
- @diagram = nil
- @@all_files[file_name] = self
- end
-
- def file_base_name
- File.basename @file_absolute_name
- end
-
- def full_name
- nil
- end
-
- ##
- # Adding a class or module to a TopLevel is special, as we only want one
- # copy of a particular top-level class. For example, if both file A and
- # file B implement class C, we only want one ClassModule object for C.
- # This code arranges to share classes and modules between files.
-
- def add_class_or_module(collection, class_type, name, superclass)
- cls = collection[name]
-
- if cls then
- cls.superclass = superclass unless cls.module?
- puts "Reusing class/module #{cls.full_name}" if $DEBUG_RDOC
- else
- if class_type == NormalModule then
- all = @@all_modules
- else
- all = @@all_classes
- end
-
- cls = all[name]
-
- if !cls then
- cls = class_type.new name, superclass
- all[name] = cls unless @done_documenting
- else
- # If the class has been encountered already, check that its
- # superclass has been set (it may not have been, depending on
- # the context in which it was encountered).
- if class_type == NormalClass
- if !cls.superclass then
- cls.superclass = superclass
- end
- end
- end
-
- collection[name] = cls unless @done_documenting
-
- cls.parent = self
- end
-
- cls
- end
-
- def self.all_classes_and_modules
- @@all_classes.values + @@all_modules.values
- end
-
- def self.find_class_named(name)
- @@all_classes.each_value do |c|
- res = c.find_class_named(name)
- return res if res
- end
- nil
- end
-
- def self.find_file_named(name)
- @@all_files[name]
- end
-
- def find_local_symbol(symbol)
- find_class_or_module_named(symbol) || super
- end
-
- def find_class_or_module_named(symbol)
- @@all_classes.each_value {|c| return c if c.name == symbol}
- @@all_modules.each_value {|m| return m if m.name == symbol}
- nil
- end
-
- ##
- # Find a named module
-
- def find_module_named(name)
- find_class_or_module_named(name) || find_enclosing_module_named(name)
- end
-
- def inspect
- "#<%s:0x%x %p modules: %p classes: %p>" % [
- self.class, object_id,
- file_base_name,
- @modules.map { |n,m| m },
- @classes.map { |n,c| c }
- ]
- end
-
- end
-
- ##
- # ClassModule is the base class for objects representing either a class or a
- # module.
-
- class ClassModule < Context
-
- attr_accessor :diagram
-
- def initialize(name, superclass = nil)
- @name = name
- @diagram = nil
- @superclass = superclass
- @comment = ""
- super()
- end
-
- def find_class_named(name)
- return self if full_name == name
- @classes.each_value {|c| return c if c.find_class_named(name) }
- nil
- end
-
- ##
- # Return the fully qualified name of this class or module
-
- def full_name
- if @parent && @parent.full_name
- @parent.full_name + "::" + @name
- else
- @name
- end
- end
-
- def http_url(prefix)
- path = full_name.split("::")
- File.join(prefix, *path) + ".html"
- end
-
- ##
- # Does this object represent a module?
-
- def module?
- false
- end
-
- ##
- # Get the superclass of this class. Attempts to retrieve the superclass'
- # real name by following module nesting.
-
- def superclass
- raise NoMethodError, "#{full_name} is a module" if module?
-
- scope = self
-
- begin
- superclass = scope.classes.find { |c| c.name == @superclass }
-
- return superclass.full_name if superclass
- scope = scope.parent
- end until scope.nil? or TopLevel === scope
-
- @superclass
- end
-
- ##
- # Set the superclass of this class
-
- def superclass=(superclass)
- raise NoMethodError, "#{full_name} is a module" if module?
-
- if @superclass.nil? or @superclass == 'Object' then
- @superclass = superclass
- end
- end
-
- def to_s
- "#{self.class}: #{@name} #{@comment} #{super}"
- end
-
- end
-
- ##
- # Anonymous classes
-
- class AnonClass < ClassModule
- end
-
- ##
- # Normal classes
-
- class NormalClass < ClassModule
-
- def inspect
- superclass = @superclass ? " < #{@superclass}" : nil
- "<%s:0x%x class %s%s includes: %p attributes: %p methods: %p aliases: %p>" % [
- self.class, object_id,
- @name, superclass, @includes, @attributes, @method_list, @aliases
- ]
- end
-
- end
-
- ##
- # Singleton classes
-
- class SingleClass < ClassModule
- end
-
- ##
- # Module
-
- class NormalModule < ClassModule
-
- def comment=(comment)
- return if comment.empty?
- comment = @comment << "# ---\n" << comment unless @comment.empty?
-
- super
- end
-
- def inspect
- "#<%s:0x%x module %s includes: %p attributes: %p methods: %p aliases: %p>" % [
- self.class, object_id,
- @name, @includes, @attributes, @method_list, @aliases
- ]
- end
-
- def module?
- true
- end
-
- end
-
- ##
- # AnyMethod is the base class for objects representing methods
-
- class AnyMethod < CodeObject
-
- attr_accessor :name
- attr_accessor :visibility
- attr_accessor :block_params
- attr_accessor :dont_rename_initialize
- attr_accessor :singleton
- attr_reader :text
-
- # list of other names for this method
- attr_reader :aliases
-
- # method we're aliasing
- attr_accessor :is_alias_for
-
- attr_overridable :params, :param, :parameters, :parameter
-
- attr_accessor :call_seq
-
- include TokenStream
-
- def initialize(text, name)
- super()
- @text = text
- @name = name
- @token_stream = nil
- @visibility = :public
- @dont_rename_initialize = false
- @block_params = nil
- @aliases = []
- @is_alias_for = nil
- @comment = ""
- @call_seq = nil
- end
-
- def <=>(other)
- @name <=> other.name
- end
-
- def add_alias(method)
- @aliases << method
- end
-
- def inspect
- alias_for = @is_alias_for ? " (alias for #{@is_alias_for.name})" : nil
- "#<%s:0x%x %s%s%s (%s)%s>" % [
- self.class, object_id,
- parent_name,
- singleton ? '::' : '#',
- name,
- visibility,
- alias_for,
- ]
- end
-
- def param_seq
- params = params.gsub(/\s*\#.*/, '')
- params = params.tr("\n", " ").squeeze(" ")
- params = "(#{params})" unless p[0] == ?(
-
- if block = block_params then # yes, =
- # If this method has explicit block parameters, remove any explicit
- # &block
- params.sub!(/,?\s*&\w+/)
-
- block.gsub!(/\s*\#.*/, '')
- block = block.tr("\n", " ").squeeze(" ")
- if block[0] == ?(
- block.sub!(/^\(/, '').sub!(/\)/, '')
- end
- params << " { |#{block}| ... }"
- end
-
- params
- end
-
- def to_s
- res = self.class.name + ": " + @name + " (" + @text + ")\n"
- res << @comment.to_s
- res
- end
-
- end
-
- ##
- # GhostMethod represents a method referenced only by a comment
-
- class GhostMethod < AnyMethod
- end
-
- ##
- # MetaMethod represents a meta-programmed method
-
- class MetaMethod < AnyMethod
- end
-
- ##
- # Represent an alias, which is an old_name/ new_name pair associated with a
- # particular context
-
- class Alias < CodeObject
-
- attr_accessor :text, :old_name, :new_name, :comment
-
- def initialize(text, old_name, new_name, comment)
- super()
- @text = text
- @old_name = old_name
- @new_name = new_name
- self.comment = comment
- end
-
- def inspect
- "#<%s:0x%x %s.alias_method %s, %s>" % [
- self.class, object_id,
- parent.name, @old_name, @new_name,
- ]
- end
-
- def to_s
- "alias: #{self.old_name} -> #{self.new_name}\n#{self.comment}"
- end
-
- end
-
- ##
- # Represent a constant
-
- class Constant < CodeObject
- attr_accessor :name, :value
-
- def initialize(name, value, comment)
- super()
- @name = name
- @value = value
- self.comment = comment
- end
- end
-
- ##
- # Represent attributes
-
- class Attr < CodeObject
- attr_accessor :text, :name, :rw, :visibility
-
- def initialize(text, name, rw, comment)
- super()
- @text = text
- @name = name
- @rw = rw
- @visibility = :public
- self.comment = comment
- end
-
- def <=>(other)
- self.name <=> other.name
- end
-
- def inspect
- attr = case rw
- when 'RW' then :attr_accessor
- when 'R' then :attr_reader
- when 'W' then :attr_writer
- else
- " (#{rw})"
- end
-
- "#<%s:0x%x %s.%s :%s>" % [
- self.class, object_id,
- parent_name, attr, @name,
- ]
- end
-
- def to_s
- "attr: #{self.name} #{self.rw}\n#{self.comment}"
- end
-
- end
-
- ##
- # A required file
-
- class Require < CodeObject
- attr_accessor :name
-
- def initialize(name, comment)
- super()
- @name = name.gsub(/'|"/, "") #'
- self.comment = comment
- end
-
- def inspect
- "#<%s:0x%x require '%s' in %s>" % [
- self.class,
- object_id,
- @name,
- parent_file_name,
- ]
- end
-
- end
-
- ##
- # An included module
-
- class Include < CodeObject
-
- attr_accessor :name
-
- def initialize(name, comment)
- super()
- @name = name
- self.comment = comment
-
- end
-
- def inspect
- "#<%s:0x%x %s.include %s>" % [
- self.class,
- object_id,
- parent_name, @name,
- ]
- end
-
- end
-
-end
diff --git a/lib/rdoc/constant.rb b/lib/rdoc/constant.rb
new file mode 100644
index 0000000000..056ce130be
--- /dev/null
+++ b/lib/rdoc/constant.rb
@@ -0,0 +1,86 @@
+require 'rdoc/code_object'
+
+##
+# A constant
+
+class RDoc::Constant < RDoc::CodeObject
+
+ ##
+ # If this constant is an alias for a module or class,
+ # this is the RDoc::ClassModule it is an alias for.
+ # +nil+ otherwise.
+
+ attr_accessor :is_alias_for
+
+ ##
+ # The constant's name
+
+ attr_accessor :name
+
+ ##
+ # The constant's value
+
+ attr_accessor :value
+
+ ##
+ # Creates a new constant with +name+, +value+ and +comment+
+
+ def initialize(name, value, comment)
+ super()
+ @name = name
+ @value = value
+ @is_alias_for = nil
+ self.comment = comment
+ end
+
+ ##
+ # Constants are ordered by name
+
+ def <=> other
+ return unless self.class === other
+
+ [parent_name, name] <=> [other.parent_name, other.name]
+ end
+
+ ##
+ # Constants are equal when their #parent and #name is the same
+
+ def == other
+ self.class == other.class and
+ @parent == other.parent and
+ @name == other.name
+ end
+
+ ##
+ # A constant is documented if it has a comment, or is an alias
+ # for a documented class or module.
+
+ def documented?
+ super or is_alias_for && is_alias_for.documented?
+ end
+
+ def inspect # :nodoc:
+ "#<%s:0x%x %s::%s>" % [
+ self.class, object_id,
+ parent_name, @name,
+ ]
+ end
+
+ ##
+ # Path to this constant
+
+ def path
+ "#{@parent.path}##{@name}"
+ end
+
+ def to_s # :nodoc:
+ parent_name = parent ? parent.full_name : '(unknown)'
+ if is_alias_for
+ "constant #{parent_name}::#@name -> #{is_alias_for}"
+ else
+ "constant #{parent_name}::#@name"
+ end
+ end
+
+end
+
diff --git a/lib/rdoc/context.rb b/lib/rdoc/context.rb
new file mode 100644
index 0000000000..abdab2026d
--- /dev/null
+++ b/lib/rdoc/context.rb
@@ -0,0 +1,1191 @@
+require 'rdoc/code_object'
+
+##
+# A Context is something that can hold modules, classes, methods, attributes,
+# aliases, requires, and includes. Classes, modules, and files are all
+# Contexts.
+
+class RDoc::Context < RDoc::CodeObject
+
+ include Comparable
+
+ ##
+ # Types of methods
+
+ TYPES = %w[class instance]
+
+ ##
+ # Class/module aliases
+
+ attr_reader :aliases
+
+ ##
+ # All attr* methods
+
+ attr_reader :attributes
+
+ ##
+ # Constants defined
+
+ attr_reader :constants
+
+ ##
+ # Sets the current documentation section of documentation
+
+ attr_writer :current_section
+
+ ##
+ # Files this context is found in
+
+ attr_reader :in_files
+
+ ##
+ # Modules this context includes
+
+ attr_reader :includes
+
+ ##
+ # Methods defined in this context
+
+ attr_reader :method_list
+
+ ##
+ # Name of this class excluding namespace. See also full_name
+
+ attr_reader :name
+
+ ##
+ # Files this context requires
+
+ attr_reader :requires
+
+ ##
+ # Use this section for the next method, attribute or constant added.
+
+ attr_accessor :temporary_section
+
+ ##
+ # Hash <tt>old_name => [aliases]</tt>, for aliases
+ # that haven't (yet) been resolved to a method/attribute.
+ # (Not to be confused with the aliases of the context.)
+
+ attr_accessor :unmatched_alias_lists
+
+ ##
+ # Aliases that could not eventually be resolved.
+
+ attr_reader :external_aliases
+
+ ##
+ # Current visibility of this context
+
+ attr_accessor :visibility
+
+ ##
+ # Hash of registered methods. Attributes are also registered here,
+ # twice if they are RW.
+
+ attr_reader :methods_hash
+
+ ##
+ # Hash of registered constants.
+
+ attr_reader :constants_hash
+
+ ##
+ # A section of documentation like:
+ #
+ # # :section: The title
+ # # The body
+ #
+ # Sections can be referenced multiple times and will be collapsed into a
+ # single section.
+
+ class Section
+
+ include RDoc::Text
+
+ ##
+ # Section comment
+
+ attr_reader :comment
+
+ ##
+ # Context this Section lives in
+
+ attr_reader :parent
+
+ ##
+ # Section title
+
+ attr_reader :title
+
+ @@sequence = "SEC00000"
+
+ ##
+ # Creates a new section with +title+ and +comment+
+
+ def initialize parent, title, comment
+ @parent = parent
+ @title = title ? title.strip : title
+
+ @@sequence.succ!
+ @sequence = @@sequence.dup
+
+ @comment = extract_comment comment
+ end
+
+ ##
+ # Sections are equal when they have the same #title
+
+ def == other
+ self.class === other and @title == other.title
+ end
+
+ ##
+ # Anchor reference for linking to this section
+
+ def aref
+ title = @title || '[untitled]'
+
+ CGI.escape(title).gsub('%', '-').sub(/^-/, '')
+ end
+
+ ##
+ # Appends +comment+ to the current comment separated by a rule.
+
+ def comment= comment
+ comment = extract_comment comment
+
+ return if comment.empty?
+
+ if @comment then
+ @comment += "\n# ---\n#{comment}"
+ else
+ @comment = comment
+ end
+ end
+
+ ##
+ # Extracts the comment for this section from the original comment block.
+ # If the first line contains :section:, strip it and use the rest.
+ # Otherwise remove lines up to the line containing :section:, and look
+ # for those lines again at the end and remove them. This lets us write
+ #
+ # # :section: The title
+ # # The body
+
+ def extract_comment comment
+ if comment =~ /^#[ \t]*:section:.*\n/ then
+ start = $`
+ rest = $'
+
+ if start.empty? then
+ rest
+ else
+ rest.sub(/#{start.chomp}\Z/, '')
+ end
+ else
+ comment
+ end
+ end
+
+ def inspect # :nodoc:
+ "#<%s:0x%x %p>" % [self.class, object_id, title]
+ end
+
+ ##
+ # Section sequence number (deprecated)
+
+ def sequence
+ warn "RDoc::Context::Section#sequence is deprecated, use #aref"
+ @sequence
+ end
+
+ end
+
+ ##
+ # Creates an unnamed empty context with public current visibility
+
+ def initialize
+ super
+
+ @in_files = []
+
+ @name ||= "unknown"
+ @parent = nil
+ @visibility = :public
+
+ @current_section = Section.new self, nil, nil
+ @sections = { nil => @current_section }
+ @temporary_section = nil
+
+ @classes = {}
+ @modules = {}
+
+ initialize_methods_etc
+ end
+
+ ##
+ # Sets the defaults for methods and so-forth
+
+ def initialize_methods_etc
+ @method_list = []
+ @attributes = []
+ @aliases = []
+ @requires = []
+ @includes = []
+ @constants = []
+ @external_aliases = []
+
+ # This Hash maps a method name to a list of unmatched aliases (aliases of
+ # a method not yet encountered).
+ @unmatched_alias_lists = {}
+
+ @methods_hash = {}
+ @constants_hash = {}
+ end
+
+ ##
+ # Contexts are sorted by full_name
+
+ def <=>(other)
+ full_name <=> other.full_name
+ end
+
+ ##
+ # Adds +an_alias+ that is automatically resolved
+
+ def add_alias an_alias
+ return an_alias unless @document_self
+
+ method_attr = find_method(an_alias.old_name, an_alias.singleton) ||
+ find_attribute(an_alias.old_name, an_alias.singleton)
+
+ if method_attr then
+ method_attr.add_alias an_alias, self
+ else
+ add_to @external_aliases, an_alias
+ unmatched_alias_list =
+ @unmatched_alias_lists[an_alias.pretty_old_name] ||= []
+ unmatched_alias_list.push an_alias
+ end
+
+ an_alias
+ end
+
+ ##
+ # Adds +attribute+ if not already there. If it is (as method(s) or attribute),
+ # updates the comment if it was empty.
+ #
+ # The attribute is registered only if it defines a new method.
+ # For instance, <tt>attr_reader :foo</tt> will not be registered
+ # if method +foo+ exists, but <tt>attr_accessor :foo</tt> will be registered
+ # if method +foo+ exists, but <tt>foo=</tt> does not.
+
+ def add_attribute attribute
+ return attribute unless @document_self
+
+ # mainly to check for redefinition of an attribute as a method
+ # TODO find a policy for 'attr_reader :foo' + 'def foo=()'
+ register = false
+
+ key = nil
+
+ if attribute.rw.index 'R' then
+ key = attribute.pretty_name
+ known = @methods_hash[key]
+
+ if known then
+ known.comment = attribute.comment if known.comment.empty?
+ elsif registered = @methods_hash[attribute.pretty_name << '='] and
+ RDoc::Attr === registered then
+ registered.rw = 'RW'
+ else
+ @methods_hash[key] = attribute
+ register = true
+ end
+ end
+
+ if attribute.rw.index 'W' then
+ key = attribute.pretty_name << '='
+ known = @methods_hash[key]
+
+ if known then
+ known.comment = attribute.comment if known.comment.empty?
+ elsif registered = @methods_hash[attribute.pretty_name] and
+ RDoc::Attr === registered then
+ registered.rw = 'RW'
+ else
+ @methods_hash[key] = attribute
+ register = true
+ end
+ end
+
+ if register then
+ attribute.visibility = @visibility
+ add_to @attributes, attribute
+ resolve_aliases attribute
+ end
+
+ attribute
+ end
+
+ ##
+ # Adds a class named +given_name+ with +superclass+.
+ #
+ # Both +given_name+ and +superclass+ may contain '::', and are
+ # interpreted relative to the +self+ context. This allows handling correctly
+ # examples like these:
+ # class RDoc::Gauntlet < Gauntlet
+ # module Mod
+ # class Object # implies < ::Object
+ # class SubObject < Object # this is _not_ ::Object
+ #
+ # Given <tt>class Container::Item</tt> RDoc assumes +Container+ is a module
+ # unless it later sees <tt>class Container</tt>. +add_class+ automatically
+ # upgrades +given_name+ to a class in this case.
+
+ def add_class class_type, given_name, superclass = '::Object'
+ # superclass +nil+ is passed by the C parser in the following cases:
+ # - registering Object in 1.8 (correct)
+ # - registering BasicObject in 1.9 (correct)
+ # - registering RubyVM in 1.9 in iseq.c (incorrect: < Object in vm.c)
+ #
+ # If we later find a superclass for a registered class with a nil
+ # superclass, we must honor it.
+
+ # find the name & enclosing context
+ if given_name =~ /^:+(\w+)$/ then
+ full_name = $1
+ enclosing = top_level
+ name = full_name.split(/:+/).last
+ else
+ full_name = child_name given_name
+
+ if full_name =~ /^(.+)::(\w+)$/ then
+ name = $2
+ ename = $1
+ enclosing = RDoc::TopLevel.classes_hash[ename] ||
+ RDoc::TopLevel.modules_hash[ename]
+ # HACK: crashes in actionpack/lib/action_view/helpers/form_helper.rb (metaprogramming)
+ unless enclosing then
+ # try the given name at top level (will work for the above example)
+ enclosing = RDoc::TopLevel.classes_hash[given_name] || RDoc::TopLevel.modules_hash[given_name]
+ return enclosing if enclosing
+ # not found: create the parent(s)
+ names = ename.split('::')
+ enclosing = self
+ names.each do |n|
+ enclosing = enclosing.classes_hash[n] ||
+ enclosing.modules_hash[n] ||
+ enclosing.add_module(RDoc::NormalModule, n)
+ end
+ end
+ else
+ name = full_name
+ enclosing = self
+ end
+ end
+
+ # fix up superclass
+ superclass = nil if full_name == 'BasicObject'
+ superclass = nil if full_name == 'Object' and defined?(::BasicObject)
+ superclass = '::BasicObject' if
+ defined?(::BasicObject) and full_name == 'Object'
+
+ # find the superclass full name
+ if superclass then
+ if superclass =~ /^:+/ then
+ superclass = $' #'
+ else
+ if superclass =~ /^(\w+):+(.+)$/ then
+ suffix = $2
+ mod = find_module_named($1)
+ superclass = mod.full_name + '::' + suffix if mod
+ else
+ mod = find_module_named(superclass)
+ superclass = mod.full_name if mod
+ end
+ end
+
+ # did we believe it was a module?
+ mod = RDoc::TopLevel.modules_hash.delete superclass
+
+ upgrade_to_class mod, RDoc::NormalClass, mod.parent if mod
+
+ # e.g., Object < Object
+ superclass = nil if superclass == full_name
+ end
+
+ klass = RDoc::TopLevel.classes_hash[full_name]
+
+ if klass then
+ # if TopLevel, it may not be registered in the classes:
+ enclosing.classes_hash[name] = klass
+
+ # update the superclass if needed
+ if superclass then
+ existing = klass.superclass
+ existing = existing.full_name unless existing.is_a?(String) if existing
+ if existing.nil? ||
+ (existing == 'Object' && superclass != 'Object') then
+ klass.superclass = superclass
+ end
+ end
+ else
+ # this is a new class
+ mod = RDoc::TopLevel.modules_hash.delete full_name
+
+ if mod then
+ klass = upgrade_to_class mod, RDoc::NormalClass, enclosing
+
+ klass.superclass = superclass unless superclass.nil?
+ else
+ klass = class_type.new name, superclass
+
+ enclosing.add_class_or_module(klass, enclosing.classes_hash,
+ RDoc::TopLevel.classes_hash)
+ end
+ end
+
+ klass
+ end
+
+ ##
+ # Adds the class or module +mod+ to the modules or
+ # classes Hash +self_hash+, and to +all_hash+ (either
+ # <tt>TopLevel::modules_hash</tt> or <tt>TopLevel::classes_hash</tt>),
+ # unless #done_documenting is +true+. Sets the #parent of +mod+
+ # to +self+, and its #section to #current_section. Returns +mod+.
+
+ def add_class_or_module mod, self_hash, all_hash
+ mod.section = current_section # TODO declaring context? something is
+ # wrong here...
+ mod.parent = self
+
+ unless @done_documenting then
+ self_hash[mod.name] = mod
+ # this must be done AFTER adding mod to its parent, so that the full
+ # name is correct:
+ all_hash[mod.full_name] = mod
+ end
+
+ mod
+ end
+
+ ##
+ # Adds +constant+ if not already there. If it is, updates the comment,
+ # value and/or is_alias_for of the known constant if they were empty/nil.
+
+ def add_constant constant
+ return constant unless @document_self
+
+ # HACK: avoid duplicate 'PI' & 'E' in math.c (1.8.7 source code)
+ # (this is a #ifdef: should be handled by the C parser)
+ known = @constants_hash[constant.name]
+
+ if known then
+ known.comment = constant.comment if known.comment.empty?
+
+ known.value = constant.value if
+ known.value.nil? or known.value.strip.empty?
+
+ known.is_alias_for ||= constant.is_alias_for
+ else
+ @constants_hash[constant.name] = constant
+ add_to @constants, constant
+ end
+
+ constant
+ end
+
+ ##
+ # Adds included module +include+ which should be an RDoc::Include
+
+ def add_include include
+ add_to @includes, include unless
+ @includes.map { |i| i.full_name }.include? include.full_name
+
+ include
+ end
+
+ ##
+ # Adds +method+ if not already there. If it is (as method or attribute),
+ # updates the comment if it was empty.
+
+ def add_method method
+ return method unless @document_self
+
+ # HACK: avoid duplicate 'new' in io.c & struct.c (1.8.7 source code)
+ key = method.pretty_name
+ known = @methods_hash[key]
+
+ if known then
+ known.comment = method.comment if known.comment.empty?
+ else
+ @methods_hash[key] = method
+ method.visibility = @visibility
+ add_to @method_list, method
+ resolve_aliases method
+ end
+
+ method
+ end
+
+ ##
+ # Adds a module named +name+. If RDoc already knows +name+ is a class then
+ # that class is returned instead. See also #add_class.
+
+ def add_module(class_type, name)
+ mod = @classes[name] || @modules[name]
+ return mod if mod
+
+ full_name = child_name name
+ mod = RDoc::TopLevel.modules_hash[full_name] || class_type.new(name)
+
+ add_class_or_module(mod, @modules, RDoc::TopLevel.modules_hash)
+ end
+
+ ##
+ # Adds an alias from +from+ (a class or module) to +name+ which was defined
+ # in +file+.
+
+ def add_module_alias from, name, file
+ return from if @done_documenting
+
+ to_name = child_name(name)
+
+ # if we already know this name, don't register an alias:
+ # see the metaprogramming in lib/active_support/basic_object.rb,
+ # where we already know BasicObject as a class when we find
+ # BasicObject = BlankSlate
+ return from if RDoc::TopLevel.find_class_or_module(to_name)
+
+ if from.module? then
+ RDoc::TopLevel.modules_hash[to_name] = from
+ @modules[name] = from
+ else
+ RDoc::TopLevel.classes_hash[to_name] = from
+ @classes[name] = from
+ end
+
+ # HACK: register a constant for this alias:
+ # constant value and comment will be updated after,
+ # when the Ruby parser adds the constant
+ const = RDoc::Constant.new name, nil, ''
+ const.record_location file
+ const.is_alias_for = from
+ add_constant const
+
+ from
+ end
+
+ ##
+ # Adds +require+ to this context's top level
+
+ def add_require(require)
+ return require unless @document_self
+
+ if RDoc::TopLevel === self then
+ add_to @requires, require
+ else
+ parent.add_require require
+ end
+ end
+
+ ##
+ # Returns a section with +title+, creating it if it doesn't already exist.
+ # +comment+ will be appended to the section's comment.
+ #
+ # A section with a +title+ of +nil+ will return the default section.
+ #
+ # See also RDoc::Context::Section
+
+ def add_section title, comment
+ if section = @sections[title] then
+ section.comment = comment
+ else
+ section = Section.new self, title, comment
+ @sections[title] = section
+ end
+
+ section
+ end
+
+ ##
+ # Adds +thing+ to the collection +array+
+
+ def add_to(array, thing)
+ array << thing if @document_self
+ thing.parent = self
+ thing.section = current_section
+ end
+
+ ##
+ # Is there any content?
+ #
+ # This means any of: comment, aliases, methods, attributes, external
+ # aliases, require, constant.
+ #
+ # Includes are also checked unless <tt>includes == false</tt>.
+
+ def any_content(includes = true)
+ @any_content ||= !(
+ @comment.empty? &&
+ @method_list.empty? &&
+ @attributes.empty? &&
+ @aliases.empty? &&
+ @external_aliases.empty? &&
+ @requires.empty? &&
+ @constants.empty?
+ )
+ @any_content || (includes && !@includes.empty?)
+ end
+
+ ##
+ # Creates the full name for a child with +name+
+
+ def child_name name
+ if name =~ /^:+/
+ $' #'
+ elsif RDoc::TopLevel === self then
+ name
+ else
+ "#{self.full_name}::#{name}"
+ end
+ end
+
+ ##
+ # Class attributes
+
+ def class_attributes
+ @class_attributes ||= attributes.select { |a| a.singleton }
+ end
+
+ ##
+ # Class methods
+
+ def class_method_list
+ @class_method_list ||= method_list.select { |a| a.singleton }
+ end
+
+ ##
+ # Array of classes in this context
+
+ def classes
+ @classes.values
+ end
+
+ ##
+ # All classes and modules in this namespace
+
+ def classes_and_modules
+ classes + modules
+ end
+
+ ##
+ # Hash of classes keyed by class name
+
+ def classes_hash
+ @classes
+ end
+
+ ##
+ # The current documentation section that new items will be added to. If
+ # temporary_section is available it will be used.
+
+ def current_section
+ if section = @temporary_section then
+ @temporary_section = nil
+ else
+ section = @current_section
+ end
+
+ section
+ end
+
+ ##
+ # Is part of this thing was defined in +file+?
+
+ def defined_in?(file)
+ @in_files.include?(file)
+ end
+
+ def display(method_attr) # :nodoc:
+ if method_attr.is_a? RDoc::Attr
+ "#{method_attr.definition} #{method_attr.pretty_name}"
+ else
+ "method #{method_attr.pretty_name}"
+ end
+ end
+
+ ##
+ # Iterator for ancestors for duck-typing. Does nothing. See
+ # RDoc::ClassModule#each_ancestor.
+
+ def each_ancestor # :nodoc:
+ end
+
+ ##
+ # Iterator for attributes
+
+ def each_attribute # :yields: attribute
+ @attributes.each { |a| yield a }
+ end
+
+ ##
+ # Iterator for classes and modules
+
+ def each_classmodule(&block) # :yields: module
+ classes_and_modules.sort.each(&block)
+ end
+
+ ##
+ # Iterator for constants
+
+ def each_constant # :yields: constant
+ @constants.each {|c| yield c}
+ end
+
+ ##
+ # Iterator for included modules
+
+ def each_include # :yields: include
+ @includes.each do |i| yield i end
+ end
+
+ ##
+ # Iterator for methods
+
+ def each_method # :yields: method
+ @method_list.sort.each {|m| yield m}
+ end
+
+ ##
+ # Iterator for each section's contents sorted by title. The +section+, the
+ # section's +constants+ and the sections +attributes+ are yielded. The
+ # +constants+ and +attributes+ collections are sorted.
+ #
+ # To retrieve methods in a section use #methods_by_type with the optional
+ # +section+ parameter.
+ #
+ # NOTE: Do not edit collections yielded by this method
+
+ def each_section # :yields: section, constants, attributes
+ constants = @constants.group_by do |constant| constant.section end
+ constants.default = []
+
+ attributes = @attributes.group_by do |attribute| attribute.section end
+ attributes.default = []
+
+ @sections.sort_by { |title, _| title.to_s }.each do |_, section|
+ yield section, constants[section].sort, attributes[section].sort
+ end
+ end
+
+ ##
+ # Finds an attribute +name+ with singleton value +singleton+.
+
+ def find_attribute(name, singleton)
+ name = $1 if name =~ /^(.*)=$/
+ @attributes.find { |a| a.name == name && a.singleton == singleton }
+ end
+
+ ##
+ # Finds an attribute with +name+ in this context
+
+ def find_attribute_named(name)
+ case name
+ when /\A#/ then
+ find_attribute name[1..-1], false
+ when /\A::/ then
+ find_attribute name[2..-1], true
+ else
+ @attributes.find { |a| a.name == name }
+ end
+ end
+
+ ##
+ # Finds a class method with +name+ in this context
+
+ def find_class_method_named(name)
+ @method_list.find { |meth| meth.singleton && meth.name == name }
+ end
+
+ ##
+ # Finds a constant with +name+ in this context
+
+ def find_constant_named(name)
+ @constants.find {|m| m.name == name}
+ end
+
+ ##
+ # Find a module at a higher scope
+
+ def find_enclosing_module_named(name)
+ parent && parent.find_module_named(name)
+ end
+
+ ##
+ # Finds an external alias +name+ with singleton value +singleton+.
+
+ def find_external_alias(name, singleton)
+ @external_aliases.find { |m| m.name == name && m.singleton == singleton }
+ end
+
+ ##
+ # Finds an external alias with +name+ in this context
+
+ def find_external_alias_named(name)
+ case name
+ when /\A#/ then
+ find_external_alias name[1..-1], false
+ when /\A::/ then
+ find_external_alias name[2..-1], true
+ else
+ @external_aliases.find { |a| a.name == name }
+ end
+ end
+
+ ##
+ # Finds a file with +name+ in this context
+
+ def find_file_named(name)
+ top_level.class.find_file_named(name)
+ end
+
+ ##
+ # Finds an instance method with +name+ in this context
+
+ def find_instance_method_named(name)
+ @method_list.find { |meth| !meth.singleton && meth.name == name }
+ end
+
+ ##
+ # Finds a method, constant, attribute, external alias, module or file
+ # named +symbol+ in this context.
+
+ def find_local_symbol(symbol)
+ find_method_named(symbol) or
+ find_constant_named(symbol) or
+ find_attribute_named(symbol) or
+ find_external_alias_named(symbol) or
+ find_module_named(symbol) or
+ find_file_named(symbol)
+ end
+
+ ##
+ # Finds a method named +name+ with singleton value +singleton+.
+
+ def find_method(name, singleton)
+ @method_list.find { |m| m.name == name && m.singleton == singleton }
+ end
+
+ ##
+ # Finds a instance or module method with +name+ in this context
+
+ def find_method_named(name)
+ case name
+ when /\A#/ then
+ find_method name[1..-1], false
+ when /\A::/ then
+ find_method name[2..-1], true
+ else
+ @method_list.find { |meth| meth.name == name }
+ end
+ end
+
+ ##
+ # Find a module with +name+ using ruby's scoping rules
+
+ def find_module_named(name)
+ res = @modules[name] || @classes[name]
+ return res if res
+ return self if self.name == name
+ find_enclosing_module_named name
+ end
+
+ ##
+ # Look up +symbol+, first as a module, then as a local symbol.
+
+ def find_symbol(symbol)
+ find_symbol_module(symbol) || find_local_symbol(symbol)
+ end
+
+ ##
+ # Look up a module named +symbol+.
+
+ def find_symbol_module(symbol)
+ result = nil
+
+ # look for a class or module 'symbol'
+ case symbol
+ when /^::/ then
+ result = RDoc::TopLevel.find_class_or_module(symbol)
+ when /^(\w+):+(.+)$/
+ suffix = $2
+ top = $1
+ searched = self
+ loop do
+ mod = searched.find_module_named(top)
+ break unless mod
+ result = RDoc::TopLevel.find_class_or_module(mod.full_name + '::' + suffix)
+ break if result || searched.is_a?(RDoc::TopLevel)
+ searched = searched.parent
+ end
+ else
+ searched = self
+ loop do
+ result = searched.find_module_named(symbol)
+ break if result || searched.is_a?(RDoc::TopLevel)
+ searched = searched.parent
+ end
+ end
+
+ result
+ end
+
+ ##
+ # The full name for this context. This method is overridden by subclasses.
+
+ def full_name
+ '(unknown)'
+ end
+
+ ##
+ # Does this context and its methods and constants all have documentation?
+ #
+ # (Yes, fully documented doesn't mean everything.)
+
+ def fully_documented?
+ documented? and
+ attributes.all? { |a| a.documented? } and
+ method_list.all? { |m| m.documented? } and
+ constants.all? { |c| c.documented? }
+ end
+
+ ##
+ # URL for this with a +prefix+
+
+ def http_url(prefix)
+ path = name_for_path
+ path = path.gsub(/<<\s*(\w*)/, 'from-\1') if path =~ /<</
+ path = [prefix] + path.split('::')
+
+ File.join(*path.compact) + '.html'
+ end
+
+ ##
+ # Instance attributes
+
+ def instance_attributes
+ @instance_attributes ||= attributes.reject { |a| a.singleton }
+ end
+
+ ##
+ # Instance methods
+
+ def instance_method_list
+ @instance_method_list ||= method_list.reject { |a| a.singleton }
+ end
+
+ ##
+ # Breaks method_list into a nested hash by type (<tt>'class'</tt> or
+ # <tt>'instance'</tt>) and visibility (+:public+, +:protected+, +:private+).
+ #
+ # If +section+ is provided only methods in that RDoc::Context::Section will
+ # be returned.
+
+ def methods_by_type section = nil
+ methods = {}
+
+ TYPES.each do |type|
+ visibilities = {}
+ RDoc::VISIBILITIES.each do |vis|
+ visibilities[vis] = []
+ end
+
+ methods[type] = visibilities
+ end
+
+ each_method do |method|
+ next if section and not method.section == section
+ methods[method.type][method.visibility] << method
+ end
+
+ methods
+ end
+
+ ##
+ # Yields AnyMethod and Attr entries matching the list of names in +methods+.
+
+ def methods_matching(methods, singleton = false, &block)
+ (@method_list + @attributes).each do |m|
+ yield m if methods.include?(m.name) and m.singleton == singleton
+ end
+
+ each_ancestor do |parent|
+ parent.methods_matching(methods, singleton, &block)
+ end
+ end
+
+ ##
+ # Array of modules in this context
+
+ def modules
+ @modules.values
+ end
+
+ ##
+ # Hash of modules keyed by module name
+
+ def modules_hash
+ @modules
+ end
+
+ ##
+ # Name to use to generate the url.
+ # <tt>#full_name</tt> by default.
+
+ def name_for_path
+ full_name
+ end
+
+ ##
+ # Changes the visibility for new methods to +visibility+
+
+ def ongoing_visibility=(visibility)
+ @visibility = visibility
+ end
+
+ ##
+ # Record +top_level+ as a file +self+ is in.
+
+ def record_location(top_level)
+ @in_files << top_level unless @in_files.include?(top_level)
+ end
+
+ ##
+ # Should we remove this context from the documentation?
+ #
+ # The answer is yes if:
+ # * #received_nodoc is +true+
+ # * #any_content is +false+ (not counting includes)
+ # * All #includes are modules (not a string), and their module has
+ # <tt>#remove_from_documentation? == true</tt>
+ # * All classes and modules have <tt>#remove_from_documentation? == true</tt>
+
+ def remove_from_documentation?
+ @remove_from_documentation ||=
+ @received_nodoc &&
+ !any_content(false) &&
+ @includes.all? { |i| !i.module.is_a?(String) && i.module.remove_from_documentation? } &&
+ classes_and_modules.all? { |cm| cm.remove_from_documentation? }
+ end
+
+ ##
+ # Removes methods and attributes with a visibility less than +min_visibility+.
+ #--
+ # TODO mark the visibility of attributes in the template (if not public?)
+
+ def remove_invisible(min_visibility)
+ return if min_visibility == :private
+ remove_invisible_in @method_list, min_visibility
+ remove_invisible_in @attributes, min_visibility
+ end
+
+ ##
+ # Only called when min_visibility == :public or :private
+
+ def remove_invisible_in(array, min_visibility) # :nodoc:
+ if min_visibility == :public
+ array.reject! { |e|
+ e.visibility != :public and not e.force_documentation
+ }
+ else
+ array.reject! { |e|
+ e.visibility == :private and
+ not e.force_documentation
+ }
+ end
+ end
+
+ ##
+ # Tries to resolve unmatched aliases when a method
+ # or attribute has just been added.
+
+ def resolve_aliases(added)
+ # resolve any pending unmatched aliases
+ key = added.pretty_name
+ unmatched_alias_list = @unmatched_alias_lists[key]
+ return unless unmatched_alias_list
+ unmatched_alias_list.each do |unmatched_alias|
+ added.add_alias unmatched_alias, self
+ @external_aliases.delete unmatched_alias
+ end
+ @unmatched_alias_lists.delete key
+ end
+
+ ##
+ # Sections in this context
+
+ def sections
+ @sections.values
+ end
+
+ def sections_hash # :nodoc:
+ @sections
+ end
+
+ ##
+ # Sets the current section to a section with +title+. See also #add_section
+
+ def set_current_section title, comment
+ @current_section = add_section title, comment
+ end
+
+ ##
+ # Given an array +methods+ of method names, set the visibility of each to
+ # +visibility+
+
+ def set_visibility_for(methods, visibility, singleton = false)
+ methods_matching methods, singleton do |m|
+ m.visibility = visibility
+ end
+ end
+
+ def to_s # :nodoc:
+ "#{self.class.name} #{self.full_name}"
+ end
+
+ ##
+ # Return the TopLevel that owns us
+ #--
+ # FIXME we can be 'owned' by several TopLevel (see #record_location &
+ # #in_files)
+
+ def top_level
+ return @top_level if defined? @top_level
+ @top_level = self
+ @top_level = @top_level.parent until RDoc::TopLevel === @top_level
+ @top_level
+ end
+
+ ##
+ # Upgrades NormalModule +mod+ in +enclosing+ to a +class_type+
+
+ def upgrade_to_class mod, class_type, enclosing
+ enclosing.modules_hash.delete mod.name
+
+ klass = RDoc::ClassModule.from_module class_type, mod
+
+ # if it was there, then we keep it even if done_documenting
+ RDoc::TopLevel.classes_hash[mod.full_name] = klass
+ enclosing.classes_hash[mod.name] = klass
+
+ klass
+ end
+
+end
+
diff --git a/lib/rdoc/cross_reference.rb b/lib/rdoc/cross_reference.rb
new file mode 100644
index 0000000000..adeef2661a
--- /dev/null
+++ b/lib/rdoc/cross_reference.rb
@@ -0,0 +1,173 @@
+##
+# RDoc::CrossReference is a reusable way to create cross references for names.
+
+class RDoc::CrossReference
+
+ ##
+ # Regular expression to match class references
+ #
+ # 1. There can be a '\\' in front of text to suppress the cross-reference
+ # 2. There can be a '::' in front of class names to reference from the
+ # top-level namespace.
+ # 3. The method can be followed by parenthesis (not recommended)
+
+ CLASS_REGEXP_STR = '\\\\?((?:\:{2})?[A-Z]\w*(?:\:\:\w+)*)'
+
+ ##
+ # Regular expression to match method references.
+ #
+ # See CLASS_REGEXP_STR
+
+ METHOD_REGEXP_STR = '([a-z]\w*[!?=]?)(?:\([\w.+*/=<>-]*\))?'
+
+ ##
+ # Regular expressions matching text that should potentially have
+ # cross-reference links generated are passed to add_special. Note that
+ # these expressions are meant to pick up text for which cross-references
+ # have been suppressed, since the suppression characters are removed by the
+ # code that is triggered.
+
+ CROSSREF_REGEXP = /(
+ # A::B::C.meth
+ #{CLASS_REGEXP_STR}(?:[.#]|::)#{METHOD_REGEXP_STR}
+
+ # Stand-alone method (preceded by a #)
+ | \\?\##{METHOD_REGEXP_STR}
+
+ # Stand-alone method (preceded by ::)
+ | ::#{METHOD_REGEXP_STR}
+
+ # A::B::C
+ # The stuff after CLASS_REGEXP_STR is a
+ # nasty hack. CLASS_REGEXP_STR unfortunately matches
+ # words like dog and cat (these are legal "class"
+ # names in Fortran 95). When a word is flagged as a
+ # potential cross-reference, limitations in the markup
+ # engine suppress other processing, such as typesetting.
+ # This is particularly noticeable for contractions.
+ # In order that words like "can't" not
+ # be flagged as potential cross-references, only
+ # flag potential class cross-references if the character
+ # after the cross-reference is a space, sentence
+ # punctuation, tag start character, or attribute
+ # marker.
+ | #{CLASS_REGEXP_STR}(?=[\s\)\.\?\!\,\;<\000]|\z)
+
+ # Things that look like filenames
+ # The key thing is that there must be at least
+ # one special character (period, slash, or
+ # underscore).
+ | (?:\.\.\/)*[-\/\w]+[_\/\.][-\w\/\.]+
+
+ # Things that have markup suppressed
+ # Don't process things like '\<' in \<tt>, though.
+ # TODO: including < is a hack, not very satisfying.
+ | \\[^\s<]
+ )/x
+
+ ##
+ # Version of CROSSREF_REGEXP used when <tt>--hyperlink-all</tt> is specified.
+
+ ALL_CROSSREF_REGEXP = /(
+ # A::B::C.meth
+ #{CLASS_REGEXP_STR}(?:[.#]|::)#{METHOD_REGEXP_STR}
+
+ # Stand-alone method
+ | \\?#{METHOD_REGEXP_STR}
+
+ # A::B::C
+ | #{CLASS_REGEXP_STR}(?=[\s\)\.\?\!\,\;<\000]|\z)
+
+ # Things that look like filenames
+ | (?:\.\.\/)*[-\/\w]+[_\/\.][-\w\/\.]+
+
+ # Things that have markup suppressed
+ | \\[^\s<]
+ )/x
+
+ attr_accessor :seen
+
+ ##
+ # Allows cross-references to be created based on the given +context+
+ # (RDoc::Context).
+
+ def initialize context
+ @context = context
+
+ @seen = {}
+ end
+
+ ##
+ # Returns a reference to +name+.
+ #
+ # If the reference is found and +name+ is not documented +text+ will be
+ # returned. If +name+ is escaped +name+ is returned. If +name+ is not
+ # found +text+ is returned.
+
+ def resolve name, text
+ return @seen[name] if @seen.include? name
+
+ # Find class, module, or method in class or module.
+ #
+ # Do not, however, use an if/elsif/else chain to do so. Instead, test
+ # each possible pattern until one matches. The reason for this is that a
+ # string like "YAML.txt" could be the txt() class method of class YAML (in
+ # which case it would match the first pattern, which splits the string
+ # into container and method components and looks up both) or a filename
+ # (in which case it would match the last pattern, which just checks
+ # whether the string as a whole is a known symbol).
+
+ if /#{CLASS_REGEXP_STR}([.#]|::)#{METHOD_REGEXP_STR}/o =~ name then
+ type = $2
+ type = '' if type == '.' # will find either #method or ::method
+ method = "#{type}#{$3}"
+ container = @context.find_symbol_module($1)
+ elsif /^([.#]|::)#{METHOD_REGEXP_STR}/o =~ name then
+ type = $1
+ type = '' if type == '.'
+ method = "#{type}#{$2}"
+ container = @context
+ else
+ container = nil
+ end
+
+ if container then
+ ref = container.find_local_symbol method
+
+ unless ref || RDoc::TopLevel === container then
+ ref = container.find_ancestor_local_symbol method
+ end
+ end
+
+ ref = case name
+ when /^\\(#{CLASS_REGEXP_STR})$/o then
+ ref = @context.find_symbol $1
+ else
+ ref = @context.find_symbol name
+ end unless ref
+
+ ref = nil if RDoc::Alias === ref # external alias: can't link to it
+
+ out = if name == '\\' then
+ name
+ elsif name =~ /^\\/ then
+ # we remove the \ only in front of what we know:
+ # other backslashes are treated later, only outside of <tt>
+ ref ? $' : name
+ elsif ref then
+ if ref.display? then
+ ref
+ else
+ text
+ end
+ else
+ text
+ end
+
+ @seen[name] = out
+
+ out
+ end
+
+end
+
diff --git a/lib/rdoc/diagram.rb b/lib/rdoc/diagram.rb
deleted file mode 100644
index d308d36dee..0000000000
--- a/lib/rdoc/diagram.rb
+++ /dev/null
@@ -1,340 +0,0 @@
-# A wonderful hack by to draw package diagrams using the dot package.
-# Originally written by Jah, team Enticla.
-#
-# You must have the V1.7 or later in your path
-# http://www.research.att.com/sw/tools/graphviz/
-
-require 'rdoc/dot'
-
-module RDoc
-
- ##
- # Draw a set of diagrams representing the modules and classes in the
- # system. We draw one diagram for each file, and one for each toplevel
- # class or module. This means there will be overlap. However, it also
- # means that you'll get better context for objects.
- #
- # To use, simply
- #
- # d = Diagram.new(info) # pass in collection of top level infos
- # d.draw
- #
- # The results will be written to the +dot+ subdirectory. The process
- # also sets the +diagram+ attribute in each object it graphs to
- # the name of the file containing the image. This can be used
- # by output generators to insert images.
-
- class Diagram
-
- FONT = "Arial"
-
- DOT_PATH = "dot"
-
- ##
- # Pass in the set of top level objects. The method also creates the
- # subdirectory to hold the images
-
- def initialize(info, options)
- @info = info
- @options = options
- @counter = 0
- FileUtils.mkdir_p(DOT_PATH)
- @diagram_cache = {}
- end
-
- ##
- # Draw the diagrams. We traverse the files, drawing a diagram for each. We
- # also traverse each top-level class and module in that file drawing a
- # diagram for these too.
-
- def draw
- unless @options.quiet
- $stderr.print "Diagrams: "
- $stderr.flush
- end
-
- @info.each_with_index do |i, file_count|
- @done_modules = {}
- @local_names = find_names(i)
- @global_names = []
- @global_graph = graph = DOT::Digraph.new('name' => 'TopLevel',
- 'fontname' => FONT,
- 'fontsize' => '8',
- 'bgcolor' => 'lightcyan1',
- 'compound' => 'true')
-
- # it's a little hack %) i'm too lazy to create a separate class
- # for default node
- graph << DOT::Node.new('name' => 'node',
- 'fontname' => FONT,
- 'color' => 'black',
- 'fontsize' => 8)
-
- i.modules.each do |mod|
- draw_module(mod, graph, true, i.file_relative_name)
- end
- add_classes(i, graph, i.file_relative_name)
-
- i.diagram = convert_to_png("f_#{file_count}", graph)
-
- # now go through and document each top level class and
- # module independently
- i.modules.each_with_index do |mod, count|
- @done_modules = {}
- @local_names = find_names(mod)
- @global_names = []
-
- @global_graph = graph = DOT::Digraph.new('name' => 'TopLevel',
- 'fontname' => FONT,
- 'fontsize' => '8',
- 'bgcolor' => 'lightcyan1',
- 'compound' => 'true')
-
- graph << DOT::Node.new('name' => 'node',
- 'fontname' => FONT,
- 'color' => 'black',
- 'fontsize' => 8)
- draw_module(mod, graph, true)
- mod.diagram = convert_to_png("m_#{file_count}_#{count}",
- graph)
- end
- end
- $stderr.puts unless @options.quiet
- end
-
- private
-
- def find_names(mod)
- return [mod.full_name] + mod.classes.collect{|cl| cl.full_name} +
- mod.modules.collect{|m| find_names(m)}.flatten
- end
-
- def find_full_name(name, mod)
- full_name = name.dup
- return full_name if @local_names.include?(full_name)
- mod_path = mod.full_name.split('::')[0..-2]
- unless mod_path.nil?
- until mod_path.empty?
- full_name = mod_path.pop + '::' + full_name
- return full_name if @local_names.include?(full_name)
- end
- end
- return name
- end
-
- def draw_module(mod, graph, toplevel = false, file = nil)
- return if @done_modules[mod.full_name] and not toplevel
-
- @counter += 1
- url = mod.http_url("classes")
- m = DOT::Subgraph.new('name' => "cluster_#{mod.full_name.gsub( /:/,'_' )}",
- 'label' => mod.name,
- 'fontname' => FONT,
- 'color' => 'blue',
- 'style' => 'filled',
- 'URL' => %{"#{url}"},
- 'fillcolor' => toplevel ? 'palegreen1' : 'palegreen3')
-
- @done_modules[mod.full_name] = m
- add_classes(mod, m, file)
- graph << m
-
- unless mod.includes.empty?
- mod.includes.each do |inc|
- m_full_name = find_full_name(inc.name, mod)
- if @local_names.include?(m_full_name)
- @global_graph << DOT::Edge.new('from' => "#{m_full_name.gsub( /:/,'_' )}",
- 'to' => "#{mod.full_name.gsub( /:/,'_' )}",
- 'ltail' => "cluster_#{m_full_name.gsub( /:/,'_' )}",
- 'lhead' => "cluster_#{mod.full_name.gsub( /:/,'_' )}")
- else
- unless @global_names.include?(m_full_name)
- path = m_full_name.split("::")
- url = File.join('classes', *path) + ".html"
- @global_graph << DOT::Node.new('name' => "#{m_full_name.gsub( /:/,'_' )}",
- 'shape' => 'box',
- 'label' => "#{m_full_name}",
- 'URL' => %{"#{url}"})
- @global_names << m_full_name
- end
- @global_graph << DOT::Edge.new('from' => "#{m_full_name.gsub( /:/,'_' )}",
- 'to' => "#{mod.full_name.gsub( /:/,'_' )}",
- 'lhead' => "cluster_#{mod.full_name.gsub( /:/,'_' )}")
- end
- end
- end
- end
-
- def add_classes(container, graph, file = nil )
-
- use_fileboxes = @options.fileboxes
-
- files = {}
-
- # create dummy node (needed if empty and for module includes)
- if container.full_name
- graph << DOT::Node.new('name' => "#{container.full_name.gsub( /:/,'_' )}",
- 'label' => "",
- 'width' => (container.classes.empty? and
- container.modules.empty?) ?
- '0.75' : '0.01',
- 'height' => '0.01',
- 'shape' => 'plaintext')
- end
-
- container.classes.each_with_index do |cl, cl_index|
- last_file = cl.in_files[-1].file_relative_name
-
- if use_fileboxes && !files.include?(last_file)
- @counter += 1
- files[last_file] =
- DOT::Subgraph.new('name' => "cluster_#{@counter}",
- 'label' => "#{last_file}",
- 'fontname' => FONT,
- 'color'=>
- last_file == file ? 'red' : 'black')
- end
-
- next if cl.name == 'Object' || cl.name[0,2] == "<<"
-
- url = cl.http_url("classes")
-
- label = cl.name.dup
- if use_fileboxes && cl.in_files.length > 1
- label << '\n[' +
- cl.in_files.collect {|i|
- i.file_relative_name
- }.sort.join( '\n' ) +
- ']'
- end
-
- attrs = {
- 'name' => "#{cl.full_name.gsub( /:/, '_' )}",
- 'fontcolor' => 'black',
- 'style'=>'filled',
- 'color'=>'palegoldenrod',
- 'label' => label,
- 'shape' => 'ellipse',
- 'URL' => %{"#{url}"}
- }
-
- c = DOT::Node.new(attrs)
-
- if use_fileboxes
- files[last_file].push c
- else
- graph << c
- end
- end
-
- if use_fileboxes
- files.each_value do |val|
- graph << val
- end
- end
-
- unless container.classes.empty?
- container.classes.each_with_index do |cl, cl_index|
- cl.includes.each do |m|
- m_full_name = find_full_name(m.name, cl)
- if @local_names.include?(m_full_name)
- @global_graph << DOT::Edge.new('from' => "#{m_full_name.gsub( /:/,'_' )}",
- 'to' => "#{cl.full_name.gsub( /:/,'_' )}",
- 'ltail' => "cluster_#{m_full_name.gsub( /:/,'_' )}")
- else
- unless @global_names.include?(m_full_name)
- path = m_full_name.split("::")
- url = File.join('classes', *path) + ".html"
- @global_graph << DOT::Node.new('name' => "#{m_full_name.gsub( /:/,'_' )}",
- 'shape' => 'box',
- 'label' => "#{m_full_name}",
- 'URL' => %{"#{url}"})
- @global_names << m_full_name
- end
- @global_graph << DOT::Edge.new('from' => "#{m_full_name.gsub( /:/,'_' )}",
- 'to' => "#{cl.full_name.gsub( /:/, '_')}")
- end
- end
-
- sclass = cl.superclass
- next if sclass.nil? || sclass == 'Object'
- sclass_full_name = find_full_name(sclass,cl)
- unless @local_names.include?(sclass_full_name) or @global_names.include?(sclass_full_name)
- path = sclass_full_name.split("::")
- url = File.join('classes', *path) + ".html"
- @global_graph << DOT::Node.new('name' => "#{sclass_full_name.gsub( /:/, '_' )}",
- 'label' => sclass_full_name,
- 'URL' => %{"#{url}"})
- @global_names << sclass_full_name
- end
- @global_graph << DOT::Edge.new('from' => "#{sclass_full_name.gsub( /:/,'_' )}",
- 'to' => "#{cl.full_name.gsub( /:/, '_')}")
- end
- end
-
- container.modules.each do |submod|
- draw_module(submod, graph)
- end
-
- end
-
- def convert_to_png(file_base, graph)
- str = graph.to_s
- return @diagram_cache[str] if @diagram_cache[str]
- op_type = @options.image_format
- dotfile = File.join(DOT_PATH, file_base)
- src = dotfile + ".dot"
- dot = dotfile + "." + op_type
-
- unless @options.quiet
- $stderr.print "."
- $stderr.flush
- end
-
- File.open(src, 'w+' ) do |f|
- f << str << "\n"
- end
-
- system "dot", "-T#{op_type}", src, "-o", dot
-
- # Now construct the imagemap wrapper around
- # that png
-
- ret = wrap_in_image_map(src, dot)
- @diagram_cache[str] = ret
- return ret
- end
-
- ##
- # Extract the client-side image map from dot, and use it to generate the
- # imagemap proper. Return the whole <map>..<img> combination, suitable for
- # inclusion on the page
-
- def wrap_in_image_map(src, dot)
- res = ""
- dot_map = `dot -Tismap #{src}`
-
- if(!dot_map.empty?)
- res << %{<map id="map" name="map">\n}
- dot_map.split($/).each do |area|
- unless area =~ /^rectangle \((\d+),(\d+)\) \((\d+),(\d+)\) ([\/\w.]+)\s*(.*)/
- $stderr.puts "Unexpected output from dot:\n#{area}"
- return nil
- end
-
- xs, ys = [$1.to_i, $3.to_i], [$2.to_i, $4.to_i]
- url, area_name = $5, $6
-
- res << %{ <area shape="rect" coords="#{xs.min},#{ys.min},#{xs.max},#{ys.max}" }
- res << %{ href="#{url}" alt="#{area_name}" />\n}
- end
- res << "</map>\n"
- end
-
- res << %{<img src="#{dot}" usemap="#map" alt="#{dot}" />}
- return res
- end
-
- end
-
-end
diff --git a/lib/rdoc/dot.rb b/lib/rdoc/dot.rb
deleted file mode 100644
index fbd2cfba02..0000000000
--- a/lib/rdoc/dot.rb
+++ /dev/null
@@ -1,249 +0,0 @@
-module RDoc; end
-
-module RDoc::DOT
-
- TAB = ' '
- TAB2 = TAB * 2
-
- # options for node declaration
- NODE_OPTS = [
- 'bgcolor',
- 'color',
- 'fontcolor',
- 'fontname',
- 'fontsize',
- 'height',
- 'width',
- 'label',
- 'layer',
- 'rank',
- 'shape',
- 'shapefile',
- 'style',
- 'URL',
- ]
-
- # options for edge declaration
- EDGE_OPTS = [
- 'color',
- 'decorate',
- 'dir',
- 'fontcolor',
- 'fontname',
- 'fontsize',
- 'id',
- 'label',
- 'layer',
- 'lhead',
- 'ltail',
- 'minlen',
- 'style',
- 'weight'
- ]
-
- # options for graph declaration
- GRAPH_OPTS = [
- 'bgcolor',
- 'center',
- 'clusterrank',
- 'color',
- 'compound',
- 'concentrate',
- 'fillcolor',
- 'fontcolor',
- 'fontname',
- 'fontsize',
- 'label',
- 'layerseq',
- 'margin',
- 'mclimit',
- 'nodesep',
- 'nslimit',
- 'ordering',
- 'orientation',
- 'page',
- 'rank',
- 'rankdir',
- 'ranksep',
- 'ratio',
- 'size',
- 'style',
- 'URL'
- ]
-
- # a root class for any element in dot notation
- class SimpleElement
- attr_accessor :name
-
- def initialize( params = {} )
- @label = params['name'] ? params['name'] : ''
- end
-
- def to_s
- @name
- end
- end
-
- # an element that has options ( node, edge or graph )
- class Element < SimpleElement
- #attr_reader :parent
- attr_accessor :name, :options
-
- def initialize( params = {}, option_list = [] )
- super( params )
- @name = params['name'] ? params['name'] : nil
- @parent = params['parent'] ? params['parent'] : nil
- @options = {}
- option_list.each{ |i|
- @options[i] = params[i] if params[i]
- }
- @options['label'] ||= @name if @name != 'node'
- end
-
- def each_option
- @options.each{ |i| yield i }
- end
-
- def each_option_pair
- @options.each_pair{ |key, val| yield key, val }
- end
-
- #def parent=( thing )
- # @parent.delete( self ) if defined?( @parent ) and @parent
- # @parent = thing
- #end
- end
-
-
- # this is used when we build nodes that have shape=record
- # ports don't have options :)
- class Port < SimpleElement
- attr_accessor :label
-
- def initialize( params = {} )
- super( params )
- @name = params['label'] ? params['label'] : ''
- end
- def to_s
- ( @name && @name != "" ? "<#{@name}>" : "" ) + "#{@label}"
- end
- end
-
- # node element
- class Node < Element
-
- def initialize( params = {}, option_list = NODE_OPTS )
- super( params, option_list )
- @ports = params['ports'] ? params['ports'] : []
- end
-
- def each_port
- @ports.each{ |i| yield i }
- end
-
- def << ( thing )
- @ports << thing
- end
-
- def push ( thing )
- @ports.push( thing )
- end
-
- def pop
- @ports.pop
- end
-
- def to_s( t = '' )
-
- label = @options['shape'] != 'record' && @ports.length == 0 ?
- @options['label'] ?
- t + TAB + "label = \"#{@options['label']}\"\n" :
- '' :
- t + TAB + 'label = "' + " \\\n" +
- t + TAB2 + "#{@options['label']}| \\\n" +
- @ports.collect{ |i|
- t + TAB2 + i.to_s
- }.join( "| \\\n" ) + " \\\n" +
- t + TAB + '"' + "\n"
-
- t + "#{@name} [\n" +
- @options.to_a.collect{ |i|
- i[1] && i[0] != 'label' ?
- t + TAB + "#{i[0]} = #{i[1]}" : nil
- }.compact.join( ",\n" ) + ( label != '' ? ",\n" : "\n" ) +
- label +
- t + "]\n"
- end
- end
-
- # subgraph element is the same to graph, but has another header in dot
- # notation
- class Subgraph < Element
-
- def initialize( params = {}, option_list = GRAPH_OPTS )
- super( params, option_list )
- @nodes = params['nodes'] ? params['nodes'] : []
- @dot_string = 'subgraph'
- end
-
- def each_node
- @nodes.each{ |i| yield i }
- end
-
- def << ( thing )
- @nodes << thing
- end
-
- def push( thing )
- @nodes.push( thing )
- end
-
- def pop
- @nodes.pop
- end
-
- def to_s( t = '' )
- hdr = t + "#{@dot_string} #{@name} {\n"
-
- options = @options.to_a.collect{ |name, val|
- val && name != 'label' ?
- t + TAB + "#{name} = #{val}" :
- name ? t + TAB + "#{name} = \"#{val}\"" : nil
- }.compact.join( "\n" ) + "\n"
-
- nodes = @nodes.collect{ |i|
- i.to_s( t + TAB )
- }.join( "\n" ) + "\n"
- hdr + options + nodes + t + "}\n"
- end
- end
-
- # this is graph
- class Digraph < Subgraph
- def initialize( params = {}, option_list = GRAPH_OPTS )
- super( params, option_list )
- @dot_string = 'digraph'
- end
- end
-
- # this is edge
- class Edge < Element
- attr_accessor :from, :to
- def initialize( params = {}, option_list = EDGE_OPTS )
- super( params, option_list )
- @from = params['from'] ? params['from'] : nil
- @to = params['to'] ? params['to'] : nil
- end
-
- def to_s( t = '' )
- t + "#{@from} -> #{to} [\n" +
- @options.to_a.collect{ |i|
- i[1] && i[0] != 'label' ?
- t + TAB + "#{i[0]} = #{i[1]}" :
- i[1] ? t + TAB + "#{i[0]} = \"#{i[1]}\"" : nil
- }.compact.join( "\n" ) + "\n" + t + "]\n"
- end
- end
-
-end
-
diff --git a/lib/rdoc/encoding.rb b/lib/rdoc/encoding.rb
new file mode 100644
index 0000000000..ab752ee665
--- /dev/null
+++ b/lib/rdoc/encoding.rb
@@ -0,0 +1,92 @@
+# coding: US-ASCII
+
+require 'rdoc'
+
+##
+# This class is a wrapper around File IO and Encoding that helps RDoc load
+# files and convert them to the correct encoding.
+
+module RDoc::Encoding
+
+ ##
+ # Reads the contents of +filename+ and handles any encoding directives in
+ # the file.
+ #
+ # The content will be converted to the +encoding+. If the file cannot be
+ # converted a warning will be printed and nil will be returned.
+ #
+ # If +force_transcode+ is true the document will be transcoded and any
+ # unknown character in the target encoding will be replaced with '?'
+
+ def self.read_file filename, encoding, force_transcode = false
+ content = open filename, "rb" do |f| f.read end
+ content.gsub!("\r\n", "\n") if RUBY_PLATFORM =~ /mswin|mingw/
+
+ utf8 = content.sub!(/\A\xef\xbb\xbf/, '')
+
+ RDoc::Encoding.set_encoding content
+
+ if Object.const_defined? :Encoding then
+ encoding ||= Encoding.default_external
+ orig_encoding = content.encoding
+
+ if utf8 then
+ content.force_encoding Encoding::UTF_8
+ content.encode! encoding
+ else
+ # assume the content is in our output encoding
+ content.force_encoding encoding
+ end
+
+ unless content.valid_encoding? then
+ # revert and try to transcode
+ content.force_encoding orig_encoding
+ content.encode! encoding
+ end
+
+ unless content.valid_encoding? then
+ warn "unable to convert #{filename} to #{encoding}, skipping"
+ content = nil
+ end
+ end
+
+ content
+ rescue ArgumentError => e
+ raise unless e.message =~ /unknown encoding name - (.*)/
+ warn "unknown encoding name \"#{$1}\" for #{filename}, skipping"
+ nil
+ rescue Encoding::UndefinedConversionError => e
+ if force_transcode then
+ content.force_encoding orig_encoding
+ content.encode! encoding, :undef => :replace, :replace => '?'
+ content
+ else
+ warn "unable to convert #{e.message} for #{filename}, skipping"
+ nil
+ end
+ rescue Errno::EISDIR, Errno::ENOENT
+ nil
+ end
+
+ ##
+ # Sets the encoding of +string+ based on the magic comment
+
+ def self.set_encoding string
+ first_line = string[/\A(?:#!.*\n)?.*\n/]
+
+ name = case first_line
+ when /^<\?xml[^?]*encoding=(["'])(.*?)\1/ then $2
+ when /\b(?:en)?coding[=:]\s*([^\s;]+)/i then $1
+ else return
+ end
+
+ string.sub! first_line, ''
+
+ return unless Object.const_defined? :Encoding
+
+ enc = Encoding.find name
+ string.force_encoding enc if enc
+ end
+
+end
+
diff --git a/lib/rdoc/erbio.rb b/lib/rdoc/erbio.rb
new file mode 100644
index 0000000000..04a89fbd34
--- /dev/null
+++ b/lib/rdoc/erbio.rb
@@ -0,0 +1,37 @@
+require 'erb'
+
+##
+# A subclass of ERB that writes directly to an IO. Credit to Aaron Patterson
+# and Masatoshi SEKI.
+#
+# To use:
+#
+# erbio = RDoc::ERBIO.new '<%= "hello world" %>', nil, nil
+#
+# open 'hello.txt', 'w' do |io|
+# erbio.result binding
+# end
+#
+# Note that binding must enclose the io you wish to output on.
+
+class RDoc::ERBIO < ERB
+
+ ##
+ # Defaults +eoutvar+ to 'io', otherwise is identical to ERB's initialize
+
+ def initialize str, safe_level = nil, trim_mode = nil, eoutvar = 'io'
+ super
+ end
+
+ ##
+ # Instructs +compiler+ how to write to +io_variable+
+
+ def set_eoutvar compiler, io_variable
+ compiler.put_cmd = "#{io_variable}.write"
+ compiler.insert_cmd = "#{io_variable}.write"
+ compiler.pre_cmd = []
+ compiler.post_cmd = []
+ end
+
+end
+
diff --git a/lib/rdoc/generator.rb b/lib/rdoc/generator.rb
index 86196b4cf6..2fa891f533 100644
--- a/lib/rdoc/generator.rb
+++ b/lib/rdoc/generator.rb
@@ -1,1082 +1,40 @@
-require 'cgi'
require 'rdoc'
-require 'rdoc/options'
-require 'rdoc/markup/to_html_crossref'
-require 'rdoc/template'
-module RDoc::Generator
-
- ##
- # Name of sub-directory that holds file descriptions
-
- FILE_DIR = "files"
-
- ##
- # Name of sub-directory that holds class descriptions
-
- CLASS_DIR = "classes"
-
- ##
- # Name of the RDoc CSS file
-
- CSS_NAME = "rdoc-style.css"
-
- ##
- # Build a hash of all items that can be cross-referenced. This is used when
- # we output required and included names: if the names appear in this hash,
- # we can generate an html cross reference to the appropriate description.
- # We also use this when parsing comment blocks: any decorated words matching
- # an entry in this list are hyperlinked.
-
- class AllReferences
- @@refs = {}
-
- def AllReferences::reset
- @@refs = {}
- end
-
- def AllReferences.add(name, html_class)
- @@refs[name] = html_class
- end
-
- def AllReferences.[](name)
- @@refs[name]
- end
-
- def AllReferences.keys
- @@refs.keys
- end
- end
-
- ##
- # Handle common markup tasks for the various Context subclasses
-
- module MarkUp
-
- ##
- # Convert a string in markup format into HTML.
-
- def markup(str, remove_para = false)
- return '' unless str
-
- # Convert leading comment markers to spaces, but only if all non-blank
- # lines have them
- if str =~ /^(?>\s*)[^\#]/ then
- content = str
- else
- content = str.gsub(/^\s*(#+)/) { $1.tr '#', ' ' }
- end
-
- res = formatter.convert content
-
- if remove_para then
- res.sub!(/^<p>/, '')
- res.sub!(/<\/p>$/, '')
- end
-
- res
- end
-
- ##
- # Qualify a stylesheet URL; if if +css_name+ does not begin with '/' or
- # 'http[s]://', prepend a prefix relative to +path+. Otherwise, return it
- # unmodified.
-
- def style_url(path, css_name=nil)
-# $stderr.puts "style_url( #{path.inspect}, #{css_name.inspect} )"
- css_name ||= CSS_NAME
- if %r{^(https?:/)?/} =~ css_name
- css_name
- else
- RDoc::Markup::ToHtml.gen_relative_url path, css_name
- end
- end
-
- ##
- # Build a webcvs URL with the given 'url' argument. URLs with a '%s' in them
- # get the file's path sprintfed into them; otherwise they're just catenated
- # together.
-
- def cvs_url(url, full_path)
- if /%s/ =~ url
- return sprintf( url, full_path )
- else
- return url + full_path
- end
- end
-
- end
-
- ##
- # A Context is built by the parser to represent a container: contexts hold
- # classes, modules, methods, require lists and include lists. ClassModule
- # and TopLevel are the context objects we process here
-
- class Context
-
- include MarkUp
-
- attr_reader :context
-
- ##
- # Generate:
- #
- # * a list of RDoc::Generator::File objects for each TopLevel object
- # * a list of RDoc::Generator::Class objects for each first level class or
- # module in the TopLevel objects
- # * a complete list of all hyperlinkable terms (file, class, module, and
- # method names)
-
- def self.build_indices(toplevels, options)
- files = []
- classes = []
-
- toplevels.each do |toplevel|
- files << RDoc::Generator::File.new(toplevel, options,
- RDoc::Generator::FILE_DIR)
- end
-
- RDoc::TopLevel.all_classes_and_modules.each do |cls|
- build_class_list(classes, options, cls, files[0],
- RDoc::Generator::CLASS_DIR)
- end
-
- return files, classes
- end
-
- def self.build_class_list(classes, options, from, html_file, class_dir)
- classes << RDoc::Generator::Class.new(from, html_file, class_dir, options)
-
- from.each_classmodule do |mod|
- build_class_list(classes, options, mod, html_file, class_dir)
- end
- end
-
- def initialize(context, options)
- @context = context
- @options = options
-
- # HACK ugly
- @template = options.template_class
- end
-
- def formatter
- @formatter ||= @options.formatter ||
- RDoc::Markup::ToHtmlCrossref.new(path, self, @options.show_hash)
- end
-
- ##
- # convenience method to build a hyperlink
-
- def href(link, cls, name)
- %{<a href="#{link}" class="#{cls}">#{name}</a>} #"
- end
-
- ##
- # Returns a reference to outselves to be used as an href= the form depends
- # on whether we're all in one file or in multiple files
-
- def as_href(from_path)
- if @options.all_one_file
- "#" + path
- else
- RDoc::Markup::ToHtml.gen_relative_url from_path, path
- end
- end
-
- ##
- # Create a list of Method objects for each method in the corresponding
- # context object. If the @options.show_all variable is set (corresponding
- # to the <tt>--all</tt> option, we include all methods, otherwise just the
- # public ones.
-
- def collect_methods
- list = @context.method_list
-
- unless @options.show_all then
- list = list.select do |m|
- m.visibility == :public or
- m.visibility == :protected or
- m.force_documentation
- end
- end
-
- @methods = list.collect do |m|
- RDoc::Generator::Method.new m, self, @options
- end
- end
-
- ##
- # Build a summary list of all the methods in this context
-
- def build_method_summary_list(path_prefix = "")
- collect_methods unless @methods
-
- @methods.sort.map do |meth|
- {
- "name" => CGI.escapeHTML(meth.name),
- "aref" => "##{meth.aref}"
- }
- end
- end
-
- ##
- # Build a list of aliases for which we couldn't find a
- # corresponding method
-
- def build_alias_summary_list(section)
- @context.aliases.map do |al|
- next unless al.section == section
-
- res = {
- 'old_name' => al.old_name,
- 'new_name' => al.new_name,
- }
-
- if al.comment and not al.comment.empty? then
- res['desc'] = markup al.comment, true
- end
-
- res
- end.compact
- end
-
- ##
- # Build a list of constants
-
- def build_constants_summary_list(section)
- @context.constants.map do |co|
- next unless co.section == section
-
- res = {
- 'name' => co.name,
- 'value' => CGI.escapeHTML(co.value)
- }
-
- if co.comment and not co.comment.empty? then
- res['desc'] = markup co.comment, true
- end
-
- res
- end.compact
- end
-
- def build_requires_list(context)
- potentially_referenced_list(context.requires) {|fn| [fn + ".rb"] }
- end
-
- def build_include_list(context)
- potentially_referenced_list(context.includes)
- end
-
- ##
- # Build a list from an array of Context items. Look up each in the
- # AllReferences hash: if we find a corresponding entry, we generate a
- # hyperlink to it, otherwise just output the name. However, some names
- # potentially need massaging. For example, you may require a Ruby file
- # without the .rb extension, but the file names we know about may have it.
- # To deal with this, we pass in a block which performs the massaging,
- # returning an array of alternative names to match
-
- def potentially_referenced_list(array)
- res = []
- array.each do |i|
- ref = AllReferences[i.name]
-# if !ref
-# container = @context.parent
-# while !ref && container
-# name = container.name + "::" + i.name
-# ref = AllReferences[name]
-# container = container.parent
-# end
-# end
-
- ref = @context.find_symbol(i.name)
- ref = ref.viewer if ref
-
- if !ref && block_given?
- possibles = yield(i.name)
- while !ref and !possibles.empty?
- ref = AllReferences[possibles.shift]
- end
- end
- h_name = CGI.escapeHTML(i.name)
- if ref and ref.document_self
- path = url(ref.path)
- res << { "name" => h_name, "aref" => path }
- else
- res << { "name" => h_name }
- end
- end
- res
- end
-
- ##
- # Build an array of arrays of method details. The outer array has up
- # to six entries, public, private, and protected for both class
- # methods, the other for instance methods. The inner arrays contain
- # a hash for each method
-
- def build_method_detail_list(section)
- outer = []
-
- methods = @methods.sort.select do |m|
- m.document_self and m.section == section
- end
-
- for singleton in [true, false]
- for vis in [ :public, :protected, :private ]
- res = []
- methods.each do |m|
- next unless m.visibility == vis and m.singleton == singleton
-
- row = {}
-
- if m.call_seq then
- row["callseq"] = m.call_seq.gsub(/->/, '&rarr;')
- else
- row["name"] = CGI.escapeHTML(m.name)
- row["params"] = m.params
- end
-
- desc = m.description.strip
- row["m_desc"] = desc unless desc.empty?
- row["aref"] = m.aref
- row["visibility"] = m.visibility.to_s
-
- alias_names = []
-
- m.aliases.each do |other|
- if other.viewer then # won't be if the alias is private
- alias_names << {
- 'name' => other.name,
- 'aref' => other.viewer.as_href(path)
- }
- end
- end
-
- row["aka"] = alias_names unless alias_names.empty?
-
- if @options.inline_source then
- code = m.source_code
- row["sourcecode"] = code if code
- else
- code = m.src_url
- if code then
- row["codeurl"] = code
- row["imgurl"] = m.img_url
- end
- end
-
- res << row
- end
-
- if res.size > 0 then
- outer << {
- "type" => vis.to_s.capitalize,
- "category" => singleton ? "Class" : "Instance",
- "methods" => res
- }
- end
- end
- end
-
- outer
- end
-
- ##
- # Build the structured list of classes and modules contained
- # in this context.
-
- def build_class_list(level, from, section, infile=nil)
- prefix = '&nbsp;&nbsp;::' * level;
- res = ''
-
- from.modules.sort.each do |mod|
- next unless mod.section == section
- next if infile && !mod.defined_in?(infile)
- if mod.document_self
- res <<
- prefix <<
- 'Module ' <<
- href(url(mod.viewer.path), 'link', mod.full_name) <<
- "<br />\n" <<
- build_class_list(level + 1, mod, section, infile)
- end
- end
-
- from.classes.sort.each do |cls|
- next unless cls.section == section
- next if infile and not cls.defined_in?(infile)
-
- if cls.document_self
- res <<
- prefix <<
- 'Class ' <<
- href(url(cls.viewer.path), 'link', cls.full_name) <<
- "<br />\n" <<
- build_class_list(level + 1, cls, section, infile)
- end
- end
-
- res
- end
-
- def url(target)
- RDoc::Markup::ToHtml.gen_relative_url path, target
- end
-
- def aref_to(target)
- if @options.all_one_file
- "#" + target
- else
- url(target)
- end
- end
-
- def document_self
- @context.document_self
- end
-
- def diagram_reference(diagram)
- res = diagram.gsub(/((?:src|href)=")(.*?)"/) {
- $1 + url($2) + '"'
- }
- res
- end
-
- ##
- # Find a symbol in ourselves or our parent
-
- def find_symbol(symbol, method=nil)
- res = @context.find_symbol(symbol, method)
- if res
- res = res.viewer
- end
- res
- end
-
- ##
- # create table of contents if we contain sections
-
- def add_table_of_sections
- toc = []
- @context.sections.each do |section|
- if section.title then
- toc << {
- 'secname' => section.title,
- 'href' => section.sequence
- }
- end
- end
-
- @values['toc'] = toc unless toc.empty?
- end
-
- end
-
- ##
- # Wrap a ClassModule context
-
- class Class < Context
-
- attr_reader :methods
- attr_reader :path
- attr_reader :values
-
- def initialize(context, html_file, prefix, options)
- super context, options
-
- @html_file = html_file
- @html_class = self
- @is_module = context.module?
- @values = {}
-
- context.viewer = self
-
- if options.all_one_file
- @path = context.full_name
- else
- @path = http_url(context.full_name, prefix)
- end
-
- collect_methods
-
- AllReferences.add(name, self)
- end
-
- ##
- # Returns the relative file name to store this class in, which is also its
- # url
-
- def http_url(full_name, prefix)
- path = full_name.dup
-
- path.gsub!(/<<\s*(\w*)/, 'from-\1') if path['<<']
-
- ::File.join(prefix, path.split("::")) + ".html"
- end
-
- def name
- @context.full_name
- end
-
- def parent_name
- @context.parent.full_name
- end
-
- def index_name
- name
- end
-
- def write_on(f, file_list, class_list, method_list, overrides = {})
- value_hash
-
- @values['file_list'] = file_list
- @values['class_list'] = class_list
- @values['method_list'] = method_list
-
- @values.update overrides
-
- template = RDoc::TemplatePage.new(@template::BODY,
- @template::CLASS_PAGE,
- @template::METHOD_LIST)
-
- template.write_html_on(f, @values)
- end
-
- def value_hash
- class_attribute_values
- add_table_of_sections
-
- @values["charset"] = @options.charset
- @values["style_url"] = style_url(path, @options.css)
-
- d = markup(@context.comment)
- @values["description"] = d unless d.empty?
-
- ml = build_method_summary_list @path
- @values["methods"] = ml unless ml.empty?
-
- il = build_include_list @context
- @values["includes"] = il unless il.empty?
-
- @values["sections"] = @context.sections.map do |section|
- secdata = {
- "sectitle" => section.title,
- "secsequence" => section.sequence,
- "seccomment" => markup(section.comment),
- }
-
- al = build_alias_summary_list section
- secdata["aliases"] = al unless al.empty?
-
- co = build_constants_summary_list section
- secdata["constants"] = co unless co.empty?
-
- al = build_attribute_list section
- secdata["attributes"] = al unless al.empty?
-
- cl = build_class_list 0, @context, section
- secdata["classlist"] = cl unless cl.empty?
-
- mdl = build_method_detail_list section
- secdata["method_list"] = mdl unless mdl.empty?
-
- secdata
- end
-
- @values
- end
-
- def build_attribute_list(section)
- @context.attributes.sort.map do |att|
- next unless att.section == section
-
- if att.visibility == :public or att.visibility == :protected or
- @options.show_all then
-
- entry = {
- "name" => CGI.escapeHTML(att.name),
- "rw" => att.rw,
- "a_desc" => markup(att.comment, true)
- }
-
- unless att.visibility == :public or att.visibility == :protected then
- entry["rw"] << "-"
- end
-
- entry
- end
- end.compact
- end
-
- def class_attribute_values
- h_name = CGI.escapeHTML(name)
-
- @values["href"] = @path
- @values["classmod"] = @is_module ? "Module" : "Class"
- @values["title"] = "#{@values['classmod']}: #{h_name} [#{@options.title}]"
-
- c = @context
- c = c.parent while c and not c.diagram
-
- if c and c.diagram then
- @values["diagram"] = diagram_reference(c.diagram)
- end
-
- @values["full_name"] = h_name
-
- if not @context.module? and @context.superclass then
- parent_class = @context.superclass
- @values["parent"] = CGI.escapeHTML(parent_class)
-
- if parent_name
- lookup = parent_name + "::" + parent_class
- else
- lookup = parent_class
- end
-
- parent_url = AllReferences[lookup] || AllReferences[parent_class]
-
- if parent_url and parent_url.document_self
- @values["par_url"] = aref_to(parent_url.path)
- end
- end
-
- files = []
- @context.in_files.each do |f|
- res = {}
- full_path = CGI.escapeHTML(f.file_absolute_name)
-
- res["full_path"] = full_path
- res["full_path_url"] = aref_to(f.viewer.path) if f.document_self
-
- if @options.webcvs
- res["cvsurl"] = cvs_url( @options.webcvs, full_path )
- end
-
- files << res
- end
-
- @values['infiles'] = files
- end
-
- def <=>(other)
- self.name <=> other.name
- end
-
- end
-
- ##
- # Handles the mapping of a file's information to HTML. In reality, a file
- # corresponds to a +TopLevel+ object, containing modules, classes, and
- # top-level methods. In theory it _could_ contain attributes and aliases,
- # but we ignore these for now.
-
- class File < Context
-
- attr_reader :path
- attr_reader :name
- attr_reader :values
-
- def initialize(context, options, file_dir)
- super context, options
-
- @values = {}
-
- if options.all_one_file
- @path = filename_to_label
- else
- @path = http_url(file_dir)
- end
-
- @name = @context.file_relative_name
-
- collect_methods
- AllReferences.add(name, self)
- context.viewer = self
- end
-
- def http_url(file_dir)
- ::File.join file_dir, "#{@context.file_relative_name.tr '.', '_'}.html"
- end
-
- def filename_to_label
- @context.file_relative_name.gsub(/%|\/|\?|\#/) do
- ('%%%x' % $&[0]).unpack('C')
- end
- end
-
- def index_name
- name
- end
-
- def parent_name
- nil
- end
-
- def value_hash
- file_attribute_values
- add_table_of_sections
-
- @values["charset"] = @options.charset
- @values["href"] = path
- @values["style_url"] = style_url(path, @options.css)
-
- if @context.comment
- d = markup(@context.comment)
- @values["description"] = d if d.size > 0
- end
-
- ml = build_method_summary_list
- @values["methods"] = ml unless ml.empty?
-
- il = build_include_list(@context)
- @values["includes"] = il unless il.empty?
-
- rl = build_requires_list(@context)
- @values["requires"] = rl unless rl.empty?
-
- if @options.promiscuous
- file_context = nil
- else
- file_context = @context
- end
-
-
- @values["sections"] = @context.sections.map do |section|
-
- secdata = {
- "sectitle" => section.title,
- "secsequence" => section.sequence,
- "seccomment" => markup(section.comment)
- }
-
- cl = build_class_list(0, @context, section, file_context)
- secdata["classlist"] = cl unless cl.empty?
-
- mdl = build_method_detail_list(section)
- secdata["method_list"] = mdl unless mdl.empty?
-
- al = build_alias_summary_list(section)
- secdata["aliases"] = al unless al.empty?
-
- co = build_constants_summary_list(section)
- secdata["constants"] = co unless co.empty?
-
- secdata
- end
-
- @values
- end
-
- def write_on(f, file_list, class_list, method_list, overrides = {})
- value_hash
-
- @values['file_list'] = file_list
- @values['class_list'] = class_list
- @values['method_list'] = method_list
-
- @values.update overrides
-
- template = RDoc::TemplatePage.new(@template::BODY,
- @template::FILE_PAGE,
- @template::METHOD_LIST)
-
- template.write_html_on(f, @values)
- end
-
- def file_attribute_values
- full_path = @context.file_absolute_name
- short_name = ::File.basename full_path
-
- @values["title"] = CGI.escapeHTML("File: #{short_name} [#{@options.title}]")
-
- if @context.diagram then
- @values["diagram"] = diagram_reference(@context.diagram)
- end
-
- @values["short_name"] = CGI.escapeHTML(short_name)
- @values["full_path"] = CGI.escapeHTML(full_path)
- @values["dtm_modified"] = @context.file_stat.mtime.to_s
-
- if @options.webcvs then
- @values["cvsurl"] = cvs_url @options.webcvs, @values["full_path"]
- end
- end
-
- def <=>(other)
- self.name <=> other.name
- end
-
- end
-
- class Method
-
- include MarkUp
-
- attr_reader :context
- attr_reader :src_url
- attr_reader :img_url
- attr_reader :source_code
-
- def self.all_methods
- @@all_methods
- end
-
- def self.reset
- @@all_methods = []
- @@seq = "M000000"
- end
-
- # Initialize the class variables.
- self.reset
-
- def initialize(context, html_class, options)
- # TODO: rethink the class hierarchy here...
- @context = context
- @html_class = html_class
- @options = options
-
- @@seq = @@seq.succ
- @seq = @@seq
-
- # HACK ugly
- @template = options.template_class
-
- @@all_methods << self
-
- context.viewer = self
-
- if (ts = @context.token_stream)
- @source_code = markup_code(ts)
- unless @options.inline_source
- @src_url = create_source_code_file(@source_code)
- @img_url = RDoc::Markup::ToHtml.gen_relative_url path, 'source.png'
- end
- end
-
- AllReferences.add(name, self)
- end
-
- ##
- # Returns a reference to outselves to be used as an href= the form depends
- # on whether we're all in one file or in multiple files
-
- def as_href(from_path)
- if @options.all_one_file
- "#" + path
- else
- RDoc::Markup::ToHtml.gen_relative_url from_path, path
- end
- end
-
- def formatter
- @formatter ||= @options.formatter ||
- RDoc::Markup::ToHtmlCrossref.new(path, self, @options.show_hash)
- end
-
- def inspect
- alias_for = if @context.is_alias_for then
- " (alias_for #{@context.is_alias_for})"
- else
- nil
- end
-
- "#<%s:0x%x %s%s%s (%s)%s>" % [
- self.class, object_id,
- @context.parent.name,
- @context.singleton ? '::' : '#',
- name,
- @context.visibility,
- alias_for
- ]
- end
-
- def name
- @context.name
- end
-
- def section
- @context.section
- end
-
- def index_name
- "#{@context.name} (#{@html_class.name})"
- end
-
- def parent_name
- if @context.parent.parent
- @context.parent.parent.full_name
- else
- nil
- end
- end
-
- def aref
- @seq
- end
-
- def path
- if @options.all_one_file
- aref
- else
- @html_class.path + "#" + aref
- end
- end
-
- def description
- markup(@context.comment)
- end
-
- def visibility
- @context.visibility
- end
-
- def singleton
- @context.singleton
- end
-
- def call_seq
- cs = @context.call_seq
- if cs
- cs.gsub(/\n/, "<br />\n")
- else
- nil
- end
- end
-
- def params
- # params coming from a call-seq in 'C' will start with the
- # method name
- params = @context.params
- if params !~ /^\w/
- params = @context.params.gsub(/\s*\#.*/, '')
- params = params.tr("\n", " ").squeeze(" ")
- params = "(" + params + ")" unless params[0] == ?(
-
- if (block = @context.block_params)
- # If this method has explicit block parameters, remove any
- # explicit &block
-
- params.sub!(/,?\s*&\w+/, '')
-
- block.gsub!(/\s*\#.*/, '')
- block = block.tr("\n", " ").squeeze(" ")
- if block[0] == ?(
- block.sub!(/^\(/, '').sub!(/\)/, '')
- end
- params << " {|#{block.strip}| ...}"
- end
- end
- CGI.escapeHTML(params)
- end
-
- def create_source_code_file(code_body)
- meth_path = @html_class.path.sub(/\.html$/, '.src')
- FileUtils.mkdir_p(meth_path)
- file_path = ::File.join meth_path, "#{@seq}.html"
-
- template = RDoc::TemplatePage.new(@template::SRC_PAGE)
-
- open file_path, 'w' do |f|
- values = {
- 'title' => CGI.escapeHTML(index_name),
- 'code' => code_body,
- 'style_url' => style_url(file_path, @options.css),
- 'charset' => @options.charset
- }
- template.write_html_on(f, values)
- end
-
- RDoc::Markup::ToHtml.gen_relative_url path, file_path
- end
-
- def <=>(other)
- @context <=> other.context
- end
-
- ##
- # Given a sequence of source tokens, mark up the source code
- # to make it look purty.
-
- def markup_code(tokens)
- src = ""
- tokens.each do |t|
- next unless t
-# style = STYLE_MAP[t.class]
- style = case t
- when RDoc::RubyToken::TkCONSTANT then "ruby-constant"
- when RDoc::RubyToken::TkKW then "ruby-keyword kw"
- when RDoc::RubyToken::TkIVAR then "ruby-ivar"
- when RDoc::RubyToken::TkOp then "ruby-operator"
- when RDoc::RubyToken::TkId then "ruby-identifier"
- when RDoc::RubyToken::TkNode then "ruby-node"
- when RDoc::RubyToken::TkCOMMENT then "ruby-comment cmt"
- when RDoc::RubyToken::TkREGEXP then "ruby-regexp re"
- when RDoc::RubyToken::TkSTRING then "ruby-value str"
- when RDoc::RubyToken::TkVal then "ruby-value"
- else
- nil
- end
-
- text = CGI.escapeHTML(t.text)
-
- if style
- src << "<span class=\"#{style}\">#{text}</span>"
- else
- src << text
- end
- end
-
- add_line_numbers(src) if @options.include_line_numbers
- src
- end
-
- ##
- # We rely on the fact that the first line of a source code listing has
- # # File xxxxx, line dddd
-
- def add_line_numbers(src)
- if src =~ /\A.*, line (\d+)/
- first = $1.to_i - 1
- last = first + src.count("\n")
- size = last.to_s.length
- fmt = "%#{size}d: "
- is_first_line = true
- line_num = first
- src.gsub!(/^/) do
- if is_first_line then
- is_first_line = false
- res = " " * (size+2)
- else
- res = sprintf(fmt, line_num)
- end
-
- line_num += 1
- res
- end
- end
- end
-
- def document_self
- @context.document_self
- end
-
- def aliases
- @context.aliases
- end
-
- def find_symbol(symbol, method=nil)
- res = @context.parent.find_symbol(symbol, method)
- if res
- res = res.viewer
- end
- res
- end
-
- end
+##
+# RDoc uses generators to turn parsed source code in the form of an
+# RDoc::CodeObject tree into some form of output. RDoc comes with the HTML
+# generator RDoc::Generator::Darkfish and an ri data generator
+# RDoc::Generator::RI.
+#
+# = Registering a Generator
+#
+# Generators are registered by calling RDoc::RDoc.add_generator with the class
+# of the generator:
+#
+# class My::Awesome::Generator
+# RDoc::RDoc.add_generator self
+# end
+#
+# = Adding Options to +rdoc+
+#
+# Before option processing in +rdoc+, RDoc::Options will call ::setup_options
+# on the generator class with an RDoc::Options instance. The generator can
+# use RDoc::Options#option_parser to add command-line options to the +rdoc+
+# tool. See OptionParser for details on how to add options.
+#
+# You can extend the RDoc::Options instance with additional accessors for your
+# generator.
+#
+# = Generator Instantiation
+#
+# After parsing, RDoc::RDoc will instantiate a generator by calling
+# #initialize with an RDoc::Options instance.
+#
+# RDoc will then call #generate on the generator instance and pass in an Array
+# of RDoc::TopLevel instances, each representing a parsed file. You can use
+# the various class methods on RDoc::TopLevel and in the RDoc::CodeObject tree
+# to create your desired output format.
+module RDoc::Generator
end
diff --git a/lib/rdoc/generator/chm.rb b/lib/rdoc/generator/chm.rb
deleted file mode 100644
index 7537365842..0000000000
--- a/lib/rdoc/generator/chm.rb
+++ /dev/null
@@ -1,113 +0,0 @@
-require 'rdoc/generator/html'
-
-class RDoc::Generator::CHM < RDoc::Generator::HTML
-
- HHC_PATH = "c:/Program Files/HTML Help Workshop/hhc.exe"
-
- ##
- # Standard generator factory
-
- def self.for(options)
- new(options)
- end
-
- def initialize(*args)
- super
- @op_name = @options.op_name || "rdoc"
- check_for_html_help_workshop
- end
-
- def check_for_html_help_workshop
- stat = File.stat(HHC_PATH)
- rescue
- $stderr <<
- "\n.chm output generation requires that Microsoft's Html Help\n" <<
- "Workshop is installed. RDoc looks for it in:\n\n " <<
- HHC_PATH <<
- "\n\nYou can download a copy for free from:\n\n" <<
- " http://msdn.microsoft.com/library/default.asp?" <<
- "url=/library/en-us/htmlhelp/html/hwMicrosoftHTMLHelpDownloads.asp\n\n"
- end
-
- ##
- # Generate the html as normal, then wrap it in a help project
-
- def generate(info)
- super
- @project_name = @op_name + ".hhp"
- create_help_project
- end
-
- ##
- # The project contains the project file, a table of contents and an index
-
- def create_help_project
- create_project_file
- create_contents_and_index
- compile_project
- end
-
- ##
- # The project file links together all the various
- # files that go to make up the help.
-
- def create_project_file
- template = RDoc::TemplatePage.new @template::HPP_FILE
- values = { "title" => @options.title, "opname" => @op_name }
- files = []
- @files.each do |f|
- files << { "html_file_name" => f.path }
- end
-
- values['all_html_files'] = files
-
- File.open(@project_name, "w") do |f|
- template.write_html_on(f, values)
- end
- end
-
- ##
- # The contents is a list of all files and modules.
- # For each we include as sub-entries the list
- # of methods they contain. As we build the contents
- # we also build an index file
-
- def create_contents_and_index
- contents = []
- index = []
-
- (@files+@classes).sort.each do |entry|
- content_entry = { "c_name" => entry.name, "ref" => entry.path }
- index << { "name" => entry.name, "aref" => entry.path }
-
- internals = []
-
- methods = entry.build_method_summary_list(entry.path)
-
- content_entry["methods"] = methods unless methods.empty?
- contents << content_entry
- index.concat methods
- end
-
- values = { "contents" => contents }
- template = RDoc::TemplatePage.new @template::CONTENTS
- File.open("contents.hhc", "w") do |f|
- template.write_html_on(f, values)
- end
-
- values = { "index" => index }
- template = RDoc::TemplatePage.new @template::CHM_INDEX
- File.open("index.hhk", "w") do |f|
- template.write_html_on(f, values)
- end
- end
-
- ##
- # Invoke the windows help compiler to compiler the project
-
- def compile_project
- system(HHC_PATH, @project_name)
- end
-
-end
-
diff --git a/lib/rdoc/generator/chm/chm.rb b/lib/rdoc/generator/chm/chm.rb
deleted file mode 100644
index c362318d91..0000000000
--- a/lib/rdoc/generator/chm/chm.rb
+++ /dev/null
@@ -1,100 +0,0 @@
-require 'rdoc/generator/chm'
-require 'rdoc/generator/html/html'
-
-module RDoc::Generator::CHM::CHM
-
- HTML = RDoc::Generator::HTML::HTML
-
- INDEX = HTML::INDEX
-
- STYLE = HTML::STYLE
-
- CLASS_INDEX = HTML::CLASS_INDEX
- CLASS_PAGE = HTML::CLASS_PAGE
- FILE_INDEX = HTML::FILE_INDEX
- FILE_PAGE = HTML::FILE_PAGE
- METHOD_INDEX = HTML::METHOD_INDEX
- METHOD_LIST = HTML::METHOD_LIST
-
- FR_INDEX_BODY = HTML::FR_INDEX_BODY
-
- # This is a nasty little hack, but hhc doesn't support the <?xml tag, so...
- BODY = HTML::BODY.sub!(/<\?xml.*\?>/, '')
- SRC_PAGE = HTML::SRC_PAGE.sub!(/<\?xml.*\?>/, '')
-
- HPP_FILE = <<-EOF
-[OPTIONS]
-Auto Index = Yes
-Compatibility=1.1 or later
-Compiled file=<%= values["opname"] %>.chm
-Contents file=contents.hhc
-Full-text search=Yes
-Index file=index.hhk
-Language=0x409 English(United States)
-Title=<%= values["title"] %>
-
-[FILES]
-<% values["all_html_files"].each do |all_html_files| %>
-<%= all_html_files["html_file_name"] %>
-<% end # values["all_html_files"] %>
- EOF
-
- CONTENTS = <<-EOF
-<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
-<HTML>
-<HEAD>
-<meta name="GENERATOR" content="Microsoft&reg; HTML Help Workshop 4.1">
-<!-- Sitemap 1.0 -->
-</HEAD><BODY>
-<OBJECT type="text/site properties">
- <param name="Foreground" value="0x80">
- <param name="Window Styles" value="0x800025">
- <param name="ImageType" value="Folder">
-</OBJECT>
-<UL>
-<% values["contents"].each do |contents| %>
- <LI> <OBJECT type="text/sitemap">
- <param name="Name" value="<%= contents["c_name"] %>">
- <param name="Local" value="<%= contents["ref"] %>">
- </OBJECT>
-<% if contents["methods"] then %>
-<ul>
-<% contents["methods"].each do |methods| %>
- <LI> <OBJECT type="text/sitemap">
- <param name="Name" value="<%= methods["name"] %>">
- <param name="Local" value="<%= methods["aref"] %>">
- </OBJECT>
-<% end # contents["methods"] %>
-</ul>
-<% end %>
- </LI>
-<% end # values["contents"] %>
-</UL>
-</BODY></HTML>
- EOF
-
- CHM_INDEX = <<-EOF
-<!DOCTYPE HTML PUBLIC "-//IETF//DTD HTML//EN">
-<HTML>
-<HEAD>
-<meta name="GENERATOR" content="Microsoft&reg; HTML Help Workshop 4.1">
-<!-- Sitemap 1.0 -->
-</HEAD><BODY>
-<OBJECT type="text/site properties">
- <param name="Foreground" value="0x80">
- <param name="Window Styles" value="0x800025">
- <param name="ImageType" value="Folder">
-</OBJECT>
-<UL>
-<% values["index"].each do |index| %>
- <LI> <OBJECT type="text/sitemap">
- <param name="Name" value="<%= index["name"] %>">
- <param name="Local" value="<%= index["aref"] %>">
- </OBJECT>
-<% end # values["index"] %>
-</UL>
-</BODY></HTML>
- EOF
-
-end
-
diff --git a/lib/rdoc/generator/darkfish.rb b/lib/rdoc/generator/darkfish.rb
new file mode 100644
index 0000000000..a3ffea0ce8
--- /dev/null
+++ b/lib/rdoc/generator/darkfish.rb
@@ -0,0 +1,390 @@
+# -*- mode: ruby; ruby-indent-level: 2; tab-width: 2 -*-
+
+require 'pathname'
+require 'fileutils'
+require 'rdoc/erbio'
+
+require 'rdoc/generator/markup'
+
+##
+# Darkfish RDoc HTML Generator
+#
+# $Id: darkfish.rb 52 2009-01-07 02:08:11Z deveiant $
+#
+# == Author/s
+# * Michael Granger (ged@FaerieMUD.org)
+#
+# == Contributors
+# * Mahlon E. Smith (mahlon@martini.nu)
+# * Eric Hodel (drbrain@segment7.net)
+#
+# == License
+#
+# Copyright (c) 2007, 2008, Michael Granger. All rights reserved.
+#
+# Redistribution and use in source and binary forms, with or without
+# modification, are permitted provided that the following conditions are met:
+#
+# * Redistributions of source code must retain the above copyright notice,
+# this list of conditions and the following disclaimer.
+#
+# * Redistributions in binary form must reproduce the above copyright notice,
+# this list of conditions and the following disclaimer in the documentation
+# and/or other materials provided with the distribution.
+#
+# * Neither the name of the author/s, nor the names of the project's
+# contributors may be used to endorse or promote products derived from this
+# software without specific prior written permission.
+#
+# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
+# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
+# DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE
+# FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+# DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
+# SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
+# CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
+# OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
+# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+
+class RDoc::Generator::Darkfish
+
+ RDoc::RDoc.add_generator self
+
+ include ERB::Util
+
+ # Path to this file's parent directory. Used to find templates and other
+ # resources.
+
+ GENERATOR_DIR = File.join 'rdoc', 'generator'
+
+ ##
+ # Release Version
+
+ VERSION = '2'
+
+ ##
+ # Description of this generator
+
+ DESCRIPTION = 'HTML generator, written by Michael Granger'
+
+ ##
+ # Initialize a few instance variables before we start
+
+ def initialize options
+ @options = options
+
+ @template_dir = Pathname.new options.template_dir
+ @template_cache = {}
+
+ @files = nil
+ @classes = nil
+
+ @basedir = Pathname.pwd.expand_path
+ end
+
+ ##
+ # The output directory
+
+ attr_reader :outputdir
+
+ ##
+ # Output progress information if debugging is enabled
+
+ def debug_msg *msg
+ return unless $DEBUG_RDOC
+ $stderr.puts(*msg)
+ end
+
+ ##
+ # Directory where generated class HTML files live relative to the output
+ # dir.
+
+ def class_dir
+ nil
+ end
+
+ ##
+ # Directory where generated class HTML files live relative to the output
+ # dir.
+
+ def file_dir
+ nil
+ end
+
+ ##
+ # Create the directories the generated docs will live in if they don't
+ # already exist.
+
+ def gen_sub_directories
+ @outputdir.mkpath
+ end
+
+ ##
+ # Copy over the stylesheet into the appropriate place in the output
+ # directory.
+
+ def write_style_sheet
+ debug_msg "Copying static files"
+ options = { :verbose => $DEBUG_RDOC, :noop => @options.dry_run }
+
+ FileUtils.cp @template_dir + 'rdoc.css', '.', options
+
+ Dir[(@template_dir + "{js,images}/**/*").to_s].each do |path|
+ next if File.directory? path
+ next if File.basename(path) =~ /^\./
+
+ dst = Pathname.new(path).relative_path_from @template_dir
+
+ # I suck at glob
+ dst_dir = dst.dirname
+ FileUtils.mkdir_p dst_dir, options unless File.exist? dst_dir
+
+ FileUtils.cp @template_dir + path, dst, options
+ end
+ end
+
+ ##
+ # Build the initial indices and output objects based on an array of TopLevel
+ # objects containing the extracted information.
+
+ def generate top_levels
+ @outputdir = Pathname.new(@options.op_dir).expand_path(@basedir)
+
+ @files = top_levels.sort
+ @classes = RDoc::TopLevel.all_classes_and_modules.sort
+ @methods = @classes.map { |m| m.method_list }.flatten.sort
+ @modsort = get_sorted_module_list(@classes)
+
+ # Now actually write the output
+ write_style_sheet
+ generate_index
+ generate_class_files
+ generate_file_files
+
+ rescue => e
+ debug_msg "%s: %s\n %s" % [
+ e.class.name, e.message, e.backtrace.join("\n ")
+ ]
+
+ raise
+ end
+
+ protected
+
+ ##
+ # Return a list of the documented modules sorted by salience first, then
+ # by name.
+
+ def get_sorted_module_list(classes)
+ nscounts = classes.inject({}) do |counthash, klass|
+ top_level = klass.full_name.gsub(/::.*/, '')
+ counthash[top_level] ||= 0
+ counthash[top_level] += 1
+
+ counthash
+ end
+
+ # Sort based on how often the top level namespace occurs, and then on the
+ # name of the module -- this works for projects that put their stuff into
+ # a namespace, of course, but doesn't hurt if they don't.
+ classes.sort_by do |klass|
+ top_level = klass.full_name.gsub( /::.*/, '' )
+ [nscounts[top_level] * -1, klass.full_name]
+ end.select do |klass|
+ klass.display?
+ end
+ end
+
+ ##
+ # Generate an index page which lists all the classes which are documented.
+
+ def generate_index
+ template_file = @template_dir + 'index.rhtml'
+ return unless template_file.exist?
+
+ debug_msg "Rendering the index page..."
+
+ out_file = @basedir + @options.op_dir + 'index.html'
+
+ render_template template_file, out_file do |io| binding end
+ rescue => e
+ error = RDoc::Error.new \
+ "error generating index.html: #{e.message} (#{e.class})"
+ error.set_backtrace e.backtrace
+
+ raise error
+ end
+
+ ##
+ # Generate a documentation file for each class
+
+ def generate_class_files
+ template_file = @template_dir + 'classpage.rhtml'
+ return unless template_file.exist?
+ debug_msg "Generating class documentation in #{@outputdir}"
+
+ current = nil
+
+ @classes.each do |klass|
+ current = klass
+ debug_msg " working on %s (%s)" % [klass.full_name, klass.path]
+ out_file = @outputdir + klass.path
+ # suppress 1.9.3 warning
+ rel_prefix = rel_prefix = @outputdir.relative_path_from(out_file.dirname)
+ svninfo = svninfo = self.get_svninfo(klass)
+
+ debug_msg " rendering #{out_file}"
+ render_template template_file, out_file do |io| binding end
+ end
+ rescue => e
+ error = RDoc::Error.new \
+ "error generating #{current.path}: #{e.message} (#{e.class})"
+ error.set_backtrace e.backtrace
+
+ raise error
+ end
+
+ ##
+ # Generate a documentation file for each file
+
+ def generate_file_files
+ template_file = @template_dir + 'filepage.rhtml'
+ return unless template_file.exist?
+ debug_msg "Generating file documentation in #{@outputdir}"
+
+ out_file = nil
+
+ @files.each do |file|
+ out_file = @outputdir + file.path
+ debug_msg " working on %s (%s)" % [file.full_name, out_file]
+ # suppress 1.9.3 warning
+ rel_prefix = rel_prefix = @outputdir.relative_path_from(out_file.dirname)
+
+ debug_msg " rendering #{out_file}"
+ render_template template_file, out_file do |io| binding end
+ end
+ rescue => e
+ error =
+ RDoc::Error.new "error generating #{out_file}: #{e.message} (#{e.class})"
+ error.set_backtrace e.backtrace
+
+ raise error
+ end
+
+ ##
+ # Return a string describing the amount of time in the given number of
+ # seconds in terms a human can understand easily.
+
+ def time_delta_string seconds
+ return 'less than a minute' if seconds < 60
+ return "#{seconds / 60} minute#{seconds / 60 == 1 ? '' : 's'}" if
+ seconds < 3000 # 50 minutes
+ return 'about one hour' if seconds < 5400 # 90 minutes
+ return "#{seconds / 3600} hours" if seconds < 64800 # 18 hours
+ return 'one day' if seconds < 86400 # 1 day
+ return 'about one day' if seconds < 172800 # 2 days
+ return "#{seconds / 86400} days" if seconds < 604800 # 1 week
+ return 'about one week' if seconds < 1209600 # 2 week
+ return "#{seconds / 604800} weeks" if seconds < 7257600 # 3 months
+ return "#{seconds / 2419200} months" if seconds < 31536000 # 1 year
+ return "#{seconds / 31536000} years"
+ end
+
+ # %q$Id: darkfish.rb 52 2009-01-07 02:08:11Z deveiant $"
+ SVNID_PATTERN = /
+ \$Id:\s
+ (\S+)\s # filename
+ (\d+)\s # rev
+ (\d{4}-\d{2}-\d{2})\s # Date (YYYY-MM-DD)
+ (\d{2}:\d{2}:\d{2}Z)\s # Time (HH:MM:SSZ)
+ (\w+)\s # committer
+ \$$
+ /x
+
+ ##
+ # Try to extract Subversion information out of the first constant whose
+ # value looks like a subversion Id tag. If no matching constant is found,
+ # and empty hash is returned.
+
+ def get_svninfo klass
+ constants = klass.constants or return {}
+
+ constants.find { |c| c.value =~ SVNID_PATTERN } or return {}
+
+ filename, rev, date, time, committer = $~.captures
+ commitdate = Time.parse "#{date} #{time}"
+
+ return {
+ :filename => filename,
+ :rev => Integer(rev),
+ :commitdate => commitdate,
+ :commitdelta => time_delta_string(Time.now - commitdate),
+ :committer => committer,
+ }
+ end
+
+ ##
+ # Load and render the erb template in the given +template_file+ and write
+ # it out to +out_file+.
+ #
+ # Both +template_file+ and +out_file+ should be Pathname-like objects.
+ #
+ # An io will be yielded which must be captured by binding in the caller.
+
+ def render_template template_file, out_file # :yield: io
+ template = template_for template_file
+
+ unless @options.dry_run then
+ debug_msg "Outputting to %s" % [out_file.expand_path]
+
+ out_file.dirname.mkpath
+ out_file.open 'w', 0644 do |io|
+ io.set_encoding @options.encoding if Object.const_defined? :Encoding
+
+ context = yield io
+
+ template_result template, context, template_file
+ end
+ else
+ context = yield nil
+
+ output = template_result template, context, template_file
+
+ debug_msg " would have written %d characters to %s" % [
+ output.length, out_file.expand_path
+ ]
+ end
+ end
+
+ ##
+ # Creates the result for +template+ with +context+. If an error is raised a
+ # Pathname +template_file+ will indicate the file where the error occurred.
+
+ def template_result template, context, template_file
+ template.filename = template_file.to_s
+ template.result context
+ rescue NoMethodError => e
+ raise RDoc::Error, "Error while evaluating %s: %s" % [
+ template_file.expand_path,
+ e.message,
+ ], e.backtrace
+ end
+
+ ##
+ # Retrieves a cache template for +file+, if present, or fills the cache.
+
+ def template_for file
+ template = @template_cache[file]
+
+ return template if template
+
+ klass = @options.dry_run ? ERB : RDoc::ERBIO
+
+ template = klass.new file.read, nil, '<>'
+ @template_cache[file] = template
+ template
+ end
+
+end
+
diff --git a/lib/rdoc/generator/html.rb b/lib/rdoc/generator/html.rb
deleted file mode 100644
index 60e0c175fe..0000000000
--- a/lib/rdoc/generator/html.rb
+++ /dev/null
@@ -1,445 +0,0 @@
-require 'fileutils'
-
-require 'rdoc/generator'
-require 'rdoc/markup/to_html'
-
-##
-# We're responsible for generating all the HTML files from the object tree
-# defined in code_objects.rb. We generate:
-#
-# [files] an html file for each input file given. These
-# input files appear as objects of class
-# TopLevel
-#
-# [classes] an html file for each class or module encountered.
-# These classes are not grouped by file: if a file
-# contains four classes, we'll generate an html
-# file for the file itself, and four html files
-# for the individual classes.
-#
-# [indices] we generate three indices for files, classes,
-# and methods. These are displayed in a browser
-# like window with three index panes across the
-# top and the selected description below
-#
-# Method descriptions appear in whatever entity (file, class, or module) that
-# contains them.
-#
-# We generate files in a structure below a specified subdirectory, normally
-# +doc+.
-#
-# opdir
-# |
-# |___ files
-# | |__ per file summaries
-# |
-# |___ classes
-# |__ per class/module descriptions
-#
-# HTML is generated using the Template class.
-
-class RDoc::Generator::HTML
-
- include RDoc::Generator::MarkUp
-
- ##
- # Generator may need to return specific subclasses depending on the
- # options they are passed. Because of this we create them using a factory
-
- def self.for(options)
- RDoc::Generator::AllReferences.reset
- RDoc::Generator::Method.reset
-
- if options.all_one_file
- RDoc::Generator::HTMLInOne.new options
- else
- new options
- end
- end
-
- class << self
- protected :new
- end
-
- ##
- # Set up a new HTML generator. Basically all we do here is load up the
- # correct output temlate
-
- def initialize(options) #:not-new:
- @options = options
- load_html_template
- end
-
- ##
- # Build the initial indices and output objects
- # based on an array of TopLevel objects containing
- # the extracted information.
-
- def generate(toplevels)
- @toplevels = toplevels
- @files = []
- @classes = []
-
- write_style_sheet
- gen_sub_directories
- build_indices
- generate_html
- end
-
- private
-
- ##
- # Load up the HTML template specified in the options.
- # If the template name contains a slash, use it literally
-
- def load_html_template
- #
- # If the template is not a path, first look for it
- # in rdoc's HTML template directory. Perhaps this behavior should
- # be reversed (first try to include the template and, only if that
- # fails, try to include it in the default template directory).
- # One danger with reversing the behavior, however, is that
- # if something like require 'html' could load up an
- # unrelated file in the standard library or in a gem.
- #
- template = @options.template
-
- unless template =~ %r{/|\\} then
- template = File.join('rdoc', 'generator', @options.generator.key,
- template)
- end
-
- begin
- require template
-
- @template = self.class.const_get @options.template.upcase
- @options.template_class = @template
- rescue LoadError => e
- #
- # The template did not exist in the default template directory, so
- # see if require can find the template elsewhere (in a gem, for
- # instance).
- #
- if(e.message[template] && template != @options.template)
- template = @options.template
- retry
- end
-
- $stderr.puts "Could not find HTML template '#{template}': #{e.message}"
- exit 99
- end
- end
-
- ##
- # Write out the style sheet used by the main frames
-
- def write_style_sheet
- return unless @template.constants.include? :STYLE or
- @template.constants.include? 'STYLE'
-
- template = RDoc::TemplatePage.new @template::STYLE
-
- unless @options.css then
- open RDoc::Generator::CSS_NAME, 'w' do |f|
- values = {}
-
- if @template.constants.include? :FONTS or
- @template.constants.include? 'FONTS' then
- values["fonts"] = @template::FONTS
- end
-
- template.write_html_on(f, values)
- end
- end
- end
-
- ##
- # See the comments at the top for a description of the directory structure
-
- def gen_sub_directories
- FileUtils.mkdir_p RDoc::Generator::FILE_DIR
- FileUtils.mkdir_p RDoc::Generator::CLASS_DIR
- rescue
- $stderr.puts $!.message
- exit 1
- end
-
- def build_indices
- @files, @classes = RDoc::Generator::Context.build_indices(@toplevels,
- @options)
- end
-
- ##
- # Generate all the HTML
-
- def generate_html
- @main_url = main_url
-
- # the individual descriptions for files and classes
- gen_into(@files)
- gen_into(@classes)
-
- # and the index files
- gen_file_index
- gen_class_index
- gen_method_index
- gen_main_index
-
- # this method is defined in the template file
- values = {
- 'title_suffix' => CGI.escapeHTML("[#{@options.title}]"),
- 'charset' => @options.charset,
- 'style_url' => style_url('', @options.css),
- }
-
- @template.write_extra_pages(values) if @template.respond_to?(:write_extra_pages)
- end
-
- def gen_into(list)
- #
- # The file, class, and method lists technically should be regenerated
- # for every output file, in order that the relative links be correct
- # (we are worried here about frameless templates, which need this
- # information for every generated page). Doing this is a bit slow,
- # however. For a medium-sized gem, this increased rdoc's runtime by
- # about 5% (using the 'time' command-line utility). While this is not
- # necessarily a problem, I do not want to pessimize rdoc for large
- # projects, however, and so we only regenerate the lists when the
- # directory of the output file changes, which seems like a reasonable
- # optimization.
- #
- file_list = {}
- class_list = {}
- method_list = {}
- prev_op_dir = nil
-
- list.each do |item|
- next unless item.document_self
-
- op_file = item.path
- op_dir = File.dirname(op_file)
-
- if(op_dir != prev_op_dir)
- file_list = index_to_links op_file, @files
- class_list = index_to_links op_file, @classes
- method_list = index_to_links op_file, RDoc::Generator::Method.all_methods
- end
- prev_op_dir = op_dir
-
- FileUtils.mkdir_p op_dir
-
- open op_file, 'w' do |io|
- item.write_on io, file_list, class_list, method_list
- end
- end
- end
-
- def gen_file_index
- gen_an_index @files, 'Files', @template::FILE_INDEX, "fr_file_index.html"
- end
-
- def gen_class_index
- gen_an_index(@classes, 'Classes', @template::CLASS_INDEX,
- "fr_class_index.html")
- end
-
- def gen_method_index
- gen_an_index(RDoc::Generator::Method.all_methods, 'Methods',
- @template::METHOD_INDEX, "fr_method_index.html")
- end
-
- def gen_an_index(collection, title, template, filename)
- template = RDoc::TemplatePage.new @template::FR_INDEX_BODY, template
- res = []
- collection.sort.each do |f|
- if f.document_self
- res << { "href" => f.path, "name" => f.index_name }
- end
- end
-
- values = {
- "entries" => res,
- 'title' => CGI.escapeHTML("#{title} [#{@options.title}]"),
- 'list_title' => CGI.escapeHTML(title),
- 'index_url' => @main_url,
- 'charset' => @options.charset,
- 'style_url' => style_url('', @options.css),
- }
-
- open filename, 'w' do |f|
- template.write_html_on(f, values)
- end
- end
-
- ##
- # The main index page is mostly a template frameset, but includes the
- # initial page. If the <tt>--main</tt> option was given, we use this as
- # our main page, otherwise we use the first file specified on the command
- # line.
-
- def gen_main_index
- if @template.const_defined? :FRAMELESS then
- #
- # If we're using a template without frames, then just redirect
- # to it from index.html.
- #
- # One alternative to this, expanding the main page's template into
- # index.html, is tricky because the relative URLs will be different
- # (since index.html is located in at the site's root,
- # rather than within a files or a classes subdirectory).
- #
- open 'index.html', 'w' do |f|
- f.puts(%{<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">})
- f.puts(%{<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en"
- lang="en">})
- f.puts(%{<head>})
- f.puts(%{<title>#{CGI.escapeHTML(@options.title)}</title>})
- f.puts(%{<meta http-equiv="refresh" content="0; url=#{@main_url}" />})
- f.puts(%{</head>})
- f.puts(%{<body></body>})
- f.puts(%{</html>})
- end
- else
- main = RDoc::TemplatePage.new @template::INDEX
-
- open 'index.html', 'w' do |f|
- style_url = style_url '', @options.css
-
- classes = @classes.sort.map { |klass| klass.value_hash }
-
- values = {
- 'initial_page' => @main_url,
- 'style_url' => style_url('', @options.css),
- 'title' => CGI.escapeHTML(@options.title),
- 'charset' => @options.charset,
- 'classes' => classes,
- }
-
- values['inline_source'] = @options.inline_source
-
- main.write_html_on f, values
- end
- end
- end
-
- def index_to_links(output_path, collection)
- collection.sort.map do |f|
- next unless f.document_self
- { "href" => RDoc::Markup::ToHtml.gen_relative_url(output_path, f.path),
- "name" => f.index_name }
- end.compact
- end
-
- ##
- # Returns the url of the main page
-
- def main_url
- main_page = @options.main_page
-
- #
- # If a main page has been specified (--main), then search for it
- # in the AllReferences array. This allows either files or classes
- # to be used for the main page.
- #
- if main_page then
- main_page_ref = RDoc::Generator::AllReferences[main_page]
-
- if main_page_ref then
- return main_page_ref.path
- else
- $stderr.puts "Could not find main page #{main_page}"
- end
- end
-
- #
- # No main page has been specified, so just use the README.
- #
- @files.each do |file|
- if file.name =~ /^README/ then
- return file.path
- end
- end
-
- #
- # There's no README (shame! shame!). Just use the first file
- # that will be documented.
- #
- @files.each do |file|
- if file.document_self then
- return file.path
- end
- end
-
- #
- # There are no files to be documented... Something seems very wrong.
- #
- raise RDoc::Error, "Couldn't find anything to document (perhaps :stopdoc: has been used in all classes)!"
- end
- private :main_url
-
-end
-
-class RDoc::Generator::HTMLInOne < RDoc::Generator::HTML
-
- def initialize(*args)
- super
- end
-
- ##
- # Build the initial indices and output objects
- # based on an array of TopLevel objects containing
- # the extracted information.
-
- def generate(info)
- @toplevels = info
- @hyperlinks = {}
-
- build_indices
- generate_xml
- end
-
- ##
- # Generate:
- #
- # * a list of RDoc::Generator::File objects for each TopLevel object.
- # * a list of RDoc::Generator::Class objects for each first level
- # class or module in the TopLevel objects
- # * a complete list of all hyperlinkable terms (file,
- # class, module, and method names)
-
- def build_indices
- @files, @classes = RDoc::Generator::Context.build_indices(@toplevels,
- @options)
- end
-
- ##
- # Generate all the HTML. For the one-file case, we generate
- # all the information in to one big hash
-
- def generate_xml
- values = {
- 'charset' => @options.charset,
- 'files' => gen_into(@files),
- 'classes' => gen_into(@classes),
- 'title' => CGI.escapeHTML(@options.title),
- }
-
- template = RDoc::TemplatePage.new @template::ONE_PAGE
-
- if @options.op_name
- opfile = open @options.op_name, 'w'
- else
- opfile = $stdout
- end
- template.write_html_on(opfile, values)
- end
-
- def gen_into(list)
- res = []
- list.each do |item|
- res << item.value_hash
- end
- res
- end
-end
diff --git a/lib/rdoc/generator/html/common.rb b/lib/rdoc/generator/html/common.rb
deleted file mode 100644
index b25f009a72..0000000000
--- a/lib/rdoc/generator/html/common.rb
+++ /dev/null
@@ -1,24 +0,0 @@
-#
-# The templates require further refactoring. In particular,
-# * Some kind of HTML generation library should be used.
-#
-# Also, all of the templates require some TLC from a designer.
-#
-# Right now, this file contains some constants that are used by all
-# of the templates.
-#
-module RDoc::Generator::HTML::Common
- XHTML_STRICT_PREAMBLE = <<-EOF
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
-"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
-EOF
-
- XHTML_FRAME_PREAMBLE = <<-EOF
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Frameset//EN"
-"http://www.w3.org/TR/xhtml1/DTD/xhtml1-frameset.dtd">
-EOF
-
- HTML_ELEMENT = <<-EOF
-<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
-EOF
-end
diff --git a/lib/rdoc/generator/html/frameless.rb b/lib/rdoc/generator/html/frameless.rb
deleted file mode 100644
index 0375fee313..0000000000
--- a/lib/rdoc/generator/html/frameless.rb
+++ /dev/null
@@ -1,92 +0,0 @@
-require 'rdoc/generator/html/html'
-
-##
-# = CSS2 RDoc HTML template
-#
-# This is a template for RDoc that uses XHTML 1.0 Strict and dictates a
-# bit more of the appearance of the output to cascading stylesheets than the
-# default. It was designed for clean inline code display, and uses DHTMl to
-# toggle the visbility of each method's source with each click on the '[source]'
-# link.
-#
-# Frameless basically is the html template without frames.
-#
-# == Authors
-#
-# * Michael Granger <ged@FaerieMUD.org>
-#
-# Copyright (c) 2002, 2003 The FaerieMUD Consortium. Some rights reserved.
-#
-# This work is licensed under the Creative Commons Attribution License. To view
-# a copy of this license, visit http://creativecommons.org/licenses/by/1.0/ or
-# send a letter to Creative Commons, 559 Nathan Abbott Way, Stanford, California
-# 94305, USA.
-
-module RDoc::Generator::HTML::FRAMELESS
-
- FRAMELESS = true
-
- FONTS = RDoc::Generator::HTML::HTML::FONTS
-
- STYLE = RDoc::Generator::HTML::HTML::STYLE
-
- HEADER = RDoc::Generator::HTML::HTML::HEADER
-
- FOOTER = <<-EOF
- <div id="popupmenu" class="index">
- <br />
- <h1 class="index-entries section-bar">Files</h1>
- <ul>
-<% values["file_list"].each do |file| %>
- <li><a href="<%= file["href"] %>"><%= file["name"] %></a></li>
-<% end %>
- </ul>
-
- <br />
- <h1 class="index-entries section-bar">Classes</h1>
- <ul>
-<% values["class_list"].each do |klass| %>
- <li><a href="<%= klass["href"] %>"><%= klass["name"] %></a></li>
-<% end %>
- </ul>
-
- <br />
- <h1 class="index-entries section-bar">Methods</h1>
- <ul>
-<% values["method_list"].each do |method| %>
- <li><a href="<%= method["href"] %>"><%= method["name"] %></a></li>
-<% end %>
- </ul>
- </div>
-</body>
-</html>
- EOF
-
- FILE_PAGE = RDoc::Generator::HTML::HTML::FILE_PAGE
-
- CLASS_PAGE = RDoc::Generator::HTML::HTML::CLASS_PAGE
-
- METHOD_LIST = RDoc::Generator::HTML::HTML::METHOD_LIST
-
- BODY = HEADER + %{
-
-<%= template_include %> <!-- banner header -->
-
- <div id="bodyContent">
-
-} + METHOD_LIST + %{
-
- </div>
-
-} + FOOTER
-
- SRC_PAGE = RDoc::Generator::HTML::HTML::SRC_PAGE
-
- FR_INDEX_BODY = RDoc::Generator::HTML::HTML::FR_INDEX_BODY
-
- FILE_INDEX = RDoc::Generator::HTML::HTML::FILE_INDEX
-
- CLASS_INDEX = RDoc::Generator::HTML::HTML::CLASS_INDEX
-
- METHOD_INDEX = RDoc::Generator::HTML::HTML::METHOD_INDEX
-end
diff --git a/lib/rdoc/generator/html/hefss.rb b/lib/rdoc/generator/html/hefss.rb
deleted file mode 100644
index 01425a4556..0000000000
--- a/lib/rdoc/generator/html/hefss.rb
+++ /dev/null
@@ -1,150 +0,0 @@
-require 'rdoc/generator/html'
-require 'rdoc/generator/html/kilmerfactory'
-
-module RDoc::Generator::HTML::HEFSS
-
- FONTS = "Verdana, Arial, Helvetica, sans-serif"
-
- CENTRAL_STYLE = <<-EOF
-body,p { font-family: <%= values["fonts"] %>;
- color: #000040; background: #BBBBBB;
-}
-
-td { font-family: <%= values["fonts"] %>;
- color: #000040;
-}
-
-.attr-rw { font-size: small; color: #444488 }
-
-.title-row {color: #eeeeff;
- background: #BBBBDD;
-}
-
-.big-title-font { color: white;
- font-family: <%= values["fonts"] %>;
- font-size: large;
- height: 50px}
-
-.small-title-font { color: purple;
- font-family: <%= values["fonts"] %>;
- font-size: small; }
-
-.aqua { color: purple }
-
-#diagram img {
- border: 0;
-}
-
-.method-name, attr-name {
- font-family: monospace; font-weight: bold;
-}
-
-.tablesubtitle {
- width: 100%;
- margin-top: 1ex;
- margin-bottom: .5ex;
- padding: 5px 0px 5px 20px;
- font-size: large;
- color: purple;
- background: #BBBBCC;
-}
-
-.tablesubsubtitle {
- width: 100%;
- margin-top: 1ex;
- margin-bottom: .5ex;
- padding: 5px 0px 5px 20px;
- font-size: medium;
- color: white;
- background: #BBBBCC;
-}
-
-.name-list {
- font-family: monospace;
- margin-left: 40px;
- margin-bottom: 2ex;
- line-height: 140%;
-}
-
-.description {
- margin-left: 40px;
- margin-bottom: 2ex;
- line-height: 140%;
-}
-
-.methodtitle {
- font-size: medium;
- text_decoration: none;
- padding: 3px 3px 3px 20px;
- color: #0000AA;
-}
-
-.ruby-comment { color: green; font-style: italic }
-.ruby-constant { color: #4433aa; font-weight: bold; }
-.ruby-identifier { color: #222222; }
-.ruby-ivar { color: #2233dd; }
-.ruby-keyword { color: #3333FF; font-weight: bold }
-.ruby-node { color: #777777; }
-.ruby-operator { color: #111111; }
-.ruby-regexp { color: #662222; }
-.ruby-value { color: #662222; font-style: italic }
-
-.srcbut { float: right }
- EOF
-
- INDEX_STYLE = <<-EOF
-body {
- background-color: #bbbbbb;
- font-family: #{FONTS};
- font-size: 11px;
- font-style: normal;
- line-height: 14px;
- color: #000040;
-}
-
-div.banner {
- background: #bbbbcc;
- color: white;
- padding: 1;
- margin: 0;
- font-size: 90%;
- font-weight: bold;
- line-height: 1.1;
- text-align: center;
- width: 100%;
-}
-EOF
-
- FACTORY = RDoc::Generator::HTML::
- KilmerFactory.new(:central_css => CENTRAL_STYLE,
- :index_css => INDEX_STYLE,
- :method_list_heading => "Subroutines and Functions",
- :class_and_module_list_heading => "Classes and Modules",
- :attribute_list_heading => "Arguments")
-
- STYLE = FACTORY.get_STYLE()
-
- METHOD_LIST = FACTORY.get_METHOD_LIST()
-
- BODY = FACTORY.get_BODY()
-
- FILE_PAGE = FACTORY.get_FILE_PAGE()
-
- CLASS_PAGE = FACTORY.get_CLASS_PAGE()
-
- SRC_PAGE = FACTORY.get_SRC_PAGE()
-
- FR_INDEX_BODY = FACTORY.get_FR_INDEX_BODY()
-
- FILE_INDEX = FACTORY.get_FILE_INDEX()
-
- CLASS_INDEX = FACTORY.get_CLASS_INDEX()
-
- METHOD_INDEX = FACTORY.get_METHOD_INDEX()
-
- INDEX = FACTORY.get_INDEX()
-
- def self.write_extra_pages(values)
- FACTORY.write_extra_pages(values)
- end
-end
diff --git a/lib/rdoc/generator/html/html.rb b/lib/rdoc/generator/html/html.rb
deleted file mode 100644
index 5e5b4d5531..0000000000
--- a/lib/rdoc/generator/html/html.rb
+++ /dev/null
@@ -1,769 +0,0 @@
-require 'rdoc/generator/html'
-require 'rdoc/generator/html/common'
-
-##
-# = CSS2 RDoc HTML template
-#
-# This is a template for RDoc that uses XHTML 1.0 Strict and dictates a
-# bit more of the appearance of the output to cascading stylesheets than the
-# default. It was designed for clean inline code display, and uses DHTMl to
-# toggle the visibility of each method's source with each click on the
-# '[source]' link.
-#
-# This template *also* forms the basis of the frameless template.
-#
-# == Authors
-#
-# * Michael Granger <ged@FaerieMUD.org>
-#
-# Copyright (c) 2002, 2003 The FaerieMUD Consortium. Some rights reserved.
-#
-# This work is licensed under the Creative Commons Attribution License. To
-# view a copy of this license, visit
-# http://creativecommons.org/licenses/by/1.0/ or send a letter to Creative
-# Commons, 559 Nathan Abbott Way, Stanford, California 94305, USA.
-
-module RDoc::Generator::HTML::HTML
-
- include RDoc::Generator::HTML::Common
-
- FONTS = "Verdana,Arial,Helvetica,sans-serif"
-
- STYLE = <<-EOF
-body {
- font-family: #{FONTS};
- font-size: 90%;
- margin: 0;
- margin-left: 40px;
- padding: 0;
- background: white;
- color: black;
-}
-
-h1, h2, h3, h4 {
- margin: 0;
- background: transparent;
-}
-
-h1 {
- font-size: 150%;
-}
-
-h2,h3,h4 {
- margin-top: 1em;
-}
-
-:link, :visited {
- background: #eef;
- color: #039;
- text-decoration: none;
-}
-
-:link:hover, :visited:hover {
- background: #039;
- color: #eef;
-}
-
-/* Override the base stylesheet's Anchor inside a table cell */
-td > :link, td > :visited {
- background: transparent;
- color: #039;
- text-decoration: none;
-}
-
-/* and inside a section title */
-.section-title > :link, .section-title > :visited {
- background: transparent;
- color: #eee;
- text-decoration: none;
-}
-
-/* === Structural elements =================================== */
-
-.index {
- margin: 0;
- margin-left: -40px;
- padding: 0;
- font-size: 90%;
-}
-
-.index :link, .index :visited {
- margin-left: 0.7em;
-}
-
-.index .section-bar {
- margin-left: 0px;
- padding-left: 0.7em;
- background: #ccc;
- font-size: small;
-}
-
-#classHeader, #fileHeader {
- width: auto;
- color: white;
- padding: 0.5em 1.5em 0.5em 1.5em;
- margin: 0;
- margin-left: -40px;
- border-bottom: 3px solid #006;
-}
-
-#classHeader :link, #fileHeader :link,
-#classHeader :visited, #fileHeader :visited {
- background: inherit;
- color: white;
-}
-
-#classHeader td, #fileHeader td {
- background: inherit;
- color: white;
-}
-
-#fileHeader {
- background: #057;
-}
-
-#classHeader {
- background: #048;
-}
-
-.class-name-in-header {
- font-size: 180%;
- font-weight: bold;
-}
-
-#bodyContent {
- padding: 0 1.5em 0 1.5em;
-}
-
-#description {
- padding: 0.5em 1.5em;
- background: #efefef;
- border: 1px dotted #999;
-}
-
-#description h1, #description h2, #description h3,
-#description h4, #description h5, #description h6 {
- color: #125;
- background: transparent;
-}
-
-#validator-badges {
- text-align: center;
-}
-
-#validator-badges img {
- border: 0;
-}
-
-#copyright {
- color: #333;
- background: #efefef;
- font: 0.75em sans-serif;
- margin-top: 5em;
- margin-bottom: 0;
- padding: 0.5em 2em;
-}
-
-/* === Classes =================================== */
-
-table.header-table {
- color: white;
- font-size: small;
-}
-
-.type-note {
- font-size: small;
- color: #dedede;
-}
-
-.section-bar {
- color: #333;
- border-bottom: 1px solid #999;
- margin-left: -20px;
-}
-
-.section-title {
- background: #79a;
- color: #eee;
- padding: 3px;
- margin-top: 2em;
- margin-left: -30px;
- border: 1px solid #999;
-}
-
-.top-aligned-row {
- vertical-align: top
-}
-
-.bottom-aligned-row {
- vertical-align: bottom
-}
-
-#diagram img {
- border: 0;
-}
-
-/* --- Context section classes ----------------------- */
-
-.context-row { }
-
-.context-item-name {
- font-family: monospace;
- font-weight: bold;
- color: black;
-}
-
-.context-item-value {
- font-size: small;
- color: #448;
-}
-
-.context-item-desc {
- color: #333;
- padding-left: 2em;
-}
-
-/* --- Method classes -------------------------- */
-
-.method-detail {
- background: #efefef;
- padding: 0;
- margin-top: 0.5em;
- margin-bottom: 1em;
- border: 1px dotted #ccc;
-}
-
-.method-heading {
- color: black;
- background: #ccc;
- border-bottom: 1px solid #666;
- padding: 0.2em 0.5em 0 0.5em;
-}
-
-.method-signature {
- color: black;
- background: inherit;
-}
-
-.method-name {
- font-weight: bold;
-}
-
-.method-args {
- font-style: italic;
-}
-
-.method-description {
- padding: 0 0.5em 0 0.5em;
-}
-
-/* --- Source code sections -------------------- */
-
-:link.source-toggle, :visited.source-toggle {
- font-size: 90%;
-}
-
-div.method-source-code {
- background: #262626;
- color: #ffdead;
- margin: 1em;
- padding: 0.5em;
- border: 1px dashed #999;
- overflow: auto;
-}
-
-div.method-source-code pre {
- color: #ffdead;
-}
-
-/* --- Ruby keyword styles --------------------- */
-
-.standalone-code {
- background: #221111;
- color: #ffdead;
- overflow: auto;
-}
-
-.ruby-constant {
- color: #7fffd4;
- background: transparent;
-}
-
-.ruby-keyword {
- color: #00ffff;
- background: transparent;
-}
-
-.ruby-ivar {
- color: #eedd82;
- background: transparent;
-}
-
-.ruby-operator {
- color: #00ffee;
- background: transparent;
-}
-
-.ruby-identifier {
- color: #ffdead;
- background: transparent;
-}
-
-.ruby-node {
- color: #ffa07a;
- background: transparent;
-}
-
-.ruby-comment {
- color: #b22222;
- font-weight: bold;
- background: transparent;
-}
-
-.ruby-regexp {
- color: #ffa07a;
- background: transparent;
-}
-
-.ruby-value {
- color: #7fffd4;
- background: transparent;
-}
-EOF
-
-
-#####################################################################
-### H E A D E R T E M P L A T E
-#####################################################################
-
- HEADER = XHTML_STRICT_PREAMBLE + HTML_ELEMENT + <<-EOF
-<head>
- <title><%= values["title"] %></title>
- <meta http-equiv="Content-Type" content="text/html; charset=<%= values["charset"] %>" />
- <meta http-equiv="Content-Script-Type" content="text/javascript" />
- <link rel="stylesheet" href="<%= values["style_url"] %>" type="text/css" media="screen" />
- <script type="text/javascript">
- // <![CDATA[
-
- function popupCode( url ) {
- window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
- }
-
- function toggleCode( id ) {
- if ( document.getElementById )
- elem = document.getElementById( id );
- else if ( document.all )
- elem = eval( "document.all." + id );
- else
- return false;
-
- elemStyle = elem.style;
-
- if ( elemStyle.display != "block" ) {
- elemStyle.display = "block"
- } else {
- elemStyle.display = "none"
- }
-
- return true;
- }
-
- // Make codeblocks hidden by default
- document.writeln( "<style type=\\"text/css\\">div.method-source-code { display: none }<\\/style>" )
-
- // ]]>
- </script>
-
-</head>
-<body>
-EOF
-
-#####################################################################
-### F O O T E R T E M P L A T E
-#####################################################################
-
- FOOTER = <<-EOF
-<div id="validator-badges">
- <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
-</div>
-
-</body>
-</html>
- EOF
-
-
-#####################################################################
-### F I L E P A G E H E A D E R T E M P L A T E
-#####################################################################
-
- FILE_PAGE = <<-EOF
- <div id="fileHeader">
- <h1><%= values["short_name"] %></h1>
- <table class="header-table">
- <tr class="top-aligned-row">
- <td><strong>Path:</strong></td>
- <td><%= values["full_path"] %>
-<% if values["cvsurl"] then %>
- &nbsp;(<a href="<%= values["cvsurl"] %>"><acronym title="Concurrent Versioning System">CVS</acronym></a>)
-<% end %>
- </td>
- </tr>
- <tr class="top-aligned-row">
- <td><strong>Last Update:</strong></td>
- <td><%= values["dtm_modified"] %></td>
- </tr>
- </table>
- </div>
- EOF
-
-#####################################################################
-### C L A S S P A G E H E A D E R T E M P L A T E
-#####################################################################
-
- CLASS_PAGE = <<-EOF
- <div id="classHeader">
- <table class="header-table">
- <tr class="top-aligned-row">
- <td><strong><%= values["classmod"] %></strong></td>
- <td class="class-name-in-header"><%= values["full_name"] %></td>
- </tr>
- <tr class="top-aligned-row">
- <td><strong>In:</strong></td>
- <td>
-<% values["infiles"].each do |infiles| %>
-<% if infiles["full_path_url"] then %>
- <a href="<%= infiles["full_path_url"] %>">
-<% end %>
- <%= infiles["full_path"] %>
-<% if infiles["full_path_url"] then %>
- </a>
-<% end %>
-<% if infiles["cvsurl"] then %>
- &nbsp;(<a href="<%= infiles["cvsurl"] %>"><acronym title="Concurrent Versioning System">CVS</acronym></a>)
-<% end %>
- <br />
-<% end %><%# values["infiles"] %>
- </td>
- </tr>
-
-<% if values["parent"] then %>
- <tr class="top-aligned-row">
- <td><strong>Parent:</strong></td>
- <td>
-<% if values["par_url"] then %>
- <a href="<%= values["par_url"] %>">
-<% end %>
- <%= values["parent"] %>
-<% if values["par_url"] then %>
- </a>
-<% end %>
- </td>
- </tr>
-<% end %>
- </table>
- </div>
- EOF
-
-#####################################################################
-### M E T H O D L I S T T E M P L A T E
-#####################################################################
-
- METHOD_LIST = <<-EOF
- <div id="contextContent">
-<% if values["diagram"] then %>
- <div id="diagram">
- <%= values["diagram"] %>
- </div>
-<% end
-
- if values["description"] then %>
- <div id="description">
- <%= values["description"] %>
- </div>
-<% end
-
- if values["requires"] then %>
- <div id="requires-list">
- <h3 class="section-bar">Required files</h3>
-
- <div class="name-list">
-<% values["requires"].each do |requires| %>
- <%= href requires["aref"], requires["name"] %>&nbsp;&nbsp;
-<% end %><%# values["requires"] %>
- </div>
- </div>
-<% end
-
- if values["toc"] then %>
- <div id="contents-list">
- <h3 class="section-bar">Contents</h3>
- <ul>
-<% values["toc"].each do |toc| %>
- <li><a href="#<%= toc["href"] %>"><%= toc["secname"] %></a></li>
-<% end %><%# values["toc"] %>
- </ul>
-<% end %>
- </div>
-
-<% if values["methods"] then %>
- <div id="method-list">
- <h3 class="section-bar">Methods</h3>
-
- <div class="name-list">
-<% values["methods"].each do |methods| %>
- <%= href methods["aref"], methods["name"] %>&nbsp;&nbsp;
-<% end %><%# values["methods"] %>
- </div>
- </div>
-<% end %>
- </div>
-
- <!-- if includes -->
-<% if values["includes"] then %>
- <div id="includes">
- <h3 class="section-bar">Included Modules</h3>
-
- <div id="includes-list">
-<% values["includes"].each do |includes| %>
- <span class="include-name"><%= href includes["aref"], includes["name"] %></span>
-<% end %><%# values["includes"] %>
- </div>
- </div>
-<% end
-
- values["sections"].each do |sections| %>
- <div id="section">
-<% if sections["sectitle"] then %>
- <h2 class="section-title"><a name="<%= sections["secsequence"] %>"><%= sections["sectitle"] %></a></h2>
-<% if sections["seccomment"] then %>
- <div class="section-comment">
- <%= sections["seccomment"] %>
- </div>
-<% end
- end
-
- if sections["classlist"] then %>
- <div id="class-list">
- <h3 class="section-bar">Classes and Modules</h3>
-
- <%= sections["classlist"] %>
- </div>
-<% end
-
- if sections["constants"] then %>
- <div id="constants-list">
- <h3 class="section-bar">Constants</h3>
-
- <div class="name-list">
- <table summary="Constants">
-<% sections["constants"].each do |constants| %>
- <tr class="top-aligned-row context-row">
- <td class="context-item-name"><%= constants["name"] %></td>
- <td>=</td>
- <td class="context-item-value"><%= constants["value"] %></td>
-<% if constants["desc"] then %>
- <td>&nbsp;</td>
- <td class="context-item-desc"><%= constants["desc"] %></td>
-<% end %>
- </tr>
-<% end %><%# sections["constants"] %>
- </table>
- </div>
- </div>
-<% end
-
- if sections["aliases"] then %>
- <div id="aliases-list">
- <h3 class="section-bar">External Aliases</h3>
-
- <div class="name-list">
- <table summary="aliases">
-<% sections["aliases"].each do |aliases| %>
- <tr class="top-aligned-row context-row">
- <td class="context-item-name"><%= aliases["old_name"] %></td>
- <td>-&gt;</td>
- <td class="context-item-value"><%= aliases["new_name"] %></td>
- </tr>
-<% if aliases["desc"] then %>
- <tr class="top-aligned-row context-row">
- <td>&nbsp;</td>
- <td colspan="2" class="context-item-desc"><%= aliases["desc"] %></td>
- </tr>
-<% end
- end %><%# sections["aliases"] %>
- </table>
- </div>
- </div>
-<% end %>
-
-<% if sections["attributes"] then %>
- <div id="attribute-list">
- <h3 class="section-bar">Attributes</h3>
-
- <div class="name-list">
- <table>
-<% sections["attributes"].each do |attribute| %>
- <tr class="top-aligned-row context-row">
- <td class="context-item-name"><%= attribute["name"] %></td>
-<% if attribute["rw"] then %>
- <td class="context-item-value">&nbsp;[<%= attribute["rw"] %>]&nbsp;</td>
-<% end
- unless attribute["rw"] then %>
- <td class="context-item-value">&nbsp;&nbsp;</td>
-<% end %>
- <td class="context-item-desc"><%= attribute["a_desc"] %></td>
- </tr>
-<% end %><%# sections["attributes"] %>
- </table>
- </div>
- </div>
-<% end %>
-
- <!-- if method_list -->
-<% if sections["method_list"] then %>
- <div id="methods">
-<% sections["method_list"].each do |method_list|
- if method_list["methods"] then %>
- <h3 class="section-bar"><%= method_list["type"] %> <%= method_list["category"] %> methods</h3>
-
-<% method_list["methods"].each do |methods| %>
- <div id="method-<%= methods["aref"] %>" class="method-detail">
- <a name="<%= methods["aref"] %>"></a>
-
- <div class="method-heading">
-<% if methods["codeurl"] then %>
- <a href="<%= methods["codeurl"] %>" target="Code" class="method-signature"
- onclick="popupCode('<%= methods["codeurl"] %>');return false;">
-<% end
- if methods["sourcecode"] then %>
- <a href="#<%= methods["aref"] %>" class="method-signature">
-<% end
- if methods["callseq"] then %>
- <span class="method-name"><%= methods["callseq"] %></span>
-<% end
- unless methods["callseq"] then %>
- <span class="method-name"><%= methods["name"] %></span><span class="method-args"><%= methods["params"] %></span>
-<% end
- if methods["codeurl"] then %>
- </a>
-<% end
- if methods["sourcecode"] then %>
- </a>
-<% end %>
- </div>
-
- <div class="method-description">
-<% if methods["m_desc"] then %>
- <%= methods["m_desc"] %>
-<% end
- if methods["sourcecode"] then %>
- <p><a class="source-toggle" href="#"
- onclick="toggleCode('<%= methods["aref"] %>-source');return false;">[Source]</a></p>
- <div class="method-source-code" id="<%= methods["aref"] %>-source">
-<pre>
-<%= methods["sourcecode"] %>
-</pre>
- </div>
-<% end %>
- </div>
- </div>
-
-<% end %><%# method_list["methods"] %><%
- end
- end %><%# sections["method_list"] %>
-
- </div>
-<% end %>
-<% end %><%# values["sections"] %>
- EOF
-
-#####################################################################
-### B O D Y T E M P L A T E
-#####################################################################
-
- BODY = HEADER + %{
-
-<%= template_include %> <!-- banner header -->
-
- <div id="bodyContent">
-
-} + METHOD_LIST + %{
-
- </div>
-
-} + FOOTER
-
-#####################################################################
-### S O U R C E C O D E T E M P L A T E
-#####################################################################
-
- SRC_PAGE = XHTML_STRICT_PREAMBLE + HTML_ELEMENT + <<-EOF
-<head>
- <title><%= values["title"] %></title>
- <meta http-equiv="Content-Type" content="text/html; charset=<%= values["charset"] %>" />
- <link rel="stylesheet" href="<%= values["style_url"] %>" type="text/css" media="screen" />
-</head>
-<body class="standalone-code">
- <pre><%= values["code"] %></pre>
-</body>
-</html>
- EOF
-
-
-#####################################################################
-### I N D E X F I L E T E M P L A T E S
-#####################################################################
-
- FR_INDEX_BODY = %{<%= template_include %>}
-
- FILE_INDEX = XHTML_STRICT_PREAMBLE + HTML_ELEMENT + <<-EOF
-<!--
-
- <%= values["title"] %>
-
- -->
-<head>
- <title><%= values["title"] %></title>
- <meta http-equiv="Content-Type" content="text/html; charset=<%= values["charset"] %>" />
- <link rel="stylesheet" href="<%= values["style_url"] %>" type="text/css" />
- <base target="docwin" />
-</head>
-<body>
-<div class="index">
- <h1 class="section-bar"><%= values["list_title"] %></h1>
- <div id="index-entries">
-<% values["entries"].each do |entries| %>
- <a href="<%= entries["href"] %>"><%= entries["name"] %></a><br />
-<% end %><%# values["entries"] %>
- </div>
-</div>
-</body>
-</html>
- EOF
-
- CLASS_INDEX = FILE_INDEX
- METHOD_INDEX = FILE_INDEX
-
- INDEX = XHTML_FRAME_PREAMBLE + HTML_ELEMENT + <<-EOF
-<!--
-
- <%= values["title"] %>
-
- -->
-<head>
- <title><%= values["title"] %></title>
- <meta http-equiv="Content-Type" content="text/html; charset=<%= values["charset"] %>" />
-</head>
-<frameset rows="20%, 80%">
- <frameset cols="25%,35%,45%">
- <frame src="fr_file_index.html" title="Files" name="Files" />
- <frame src="fr_class_index.html" name="Classes" />
- <frame src="fr_method_index.html" name="Methods" />
- </frameset>
- <frame src="<%= values["initial_page"] %>" name="docwin" />
-</frameset>
-</html>
- EOF
-
-end
-
diff --git a/lib/rdoc/generator/html/kilmer.rb b/lib/rdoc/generator/html/kilmer.rb
deleted file mode 100644
index 233a9259a2..0000000000
--- a/lib/rdoc/generator/html/kilmer.rb
+++ /dev/null
@@ -1,151 +0,0 @@
-require 'rdoc/generator/html'
-require 'rdoc/generator/html/kilmerfactory'
-
-module RDoc::Generator::HTML::KILMER
-
- FONTS = "Verdana, Arial, Helvetica, sans-serif"
-
- CENTRAL_STYLE = <<-EOF
-body,td,p { font-family: <%= values["fonts"] %>;
- color: #000040;
-}
-
-.attr-rw { font-size: xx-small; color: #444488 }
-
-.title-row { background-color: #CCCCFF;
- color: #000010;
-}
-
-.big-title-font {
- color: black;
- font-weight: bold;
- font-family: <%= values["fonts"] %>;
- font-size: large;
- height: 60px;
- padding: 10px 3px 10px 3px;
-}
-
-.small-title-font { color: black;
- font-family: <%= values["fonts"] %>;
- font-size:10; }
-
-.aqua { color: black }
-
-#diagram img {
- border: 0;
-}
-
-.method-name, .attr-name {
- font-family: font-family: <%= values["fonts"] %>;
- font-weight: bold;
- font-size: small;
- margin-left: 20px;
- color: #000033;
-}
-
-.tablesubtitle, .tablesubsubtitle {
- width: 100%;
- margin-top: 1ex;
- margin-bottom: .5ex;
- padding: 5px 0px 5px 3px;
- font-size: large;
- color: black;
- background-color: #CCCCFF;
- border: thin;
-}
-
-.name-list {
- margin-left: 5px;
- margin-bottom: 2ex;
- line-height: 105%;
-}
-
-.description {
- margin-left: 5px;
- margin-bottom: 2ex;
- line-height: 105%;
- font-size: small;
-}
-
-.methodtitle {
- font-size: small;
- font-weight: bold;
- text-decoration: none;
- color: #000033;
- background: #ccc;
-}
-
-.srclink {
- font-size: small;
- font-weight: bold;
- text-decoration: none;
- color: #0000DD;
- background-color: white;
-}
-
-.srcbut { float: right }
-
-.ruby-comment { color: green; font-style: italic }
-.ruby-constant { color: #4433aa; font-weight: bold; }
-.ruby-identifier { color: #222222; }
-.ruby-ivar { color: #2233dd; }
-.ruby-keyword { color: #3333FF; font-weight: bold }
-.ruby-node { color: #777777; }
-.ruby-operator { color: #111111; }
-.ruby-regexp { color: #662222; }
-.ruby-value { color: #662222; font-style: italic }
- EOF
-
- INDEX_STYLE = <<-EOF
-body {
- background-color: #ddddff;
- font-family: #{FONTS};
- font-size: 11px;
- font-style: normal;
- line-height: 14px;
- color: #000040;
-}
-
-div.banner {
- background: #0000aa;
- color: white;
- padding: 1;
- margin: 0;
- font-size: 90%;
- font-weight: bold;
- line-height: 1.1;
- text-align: center;
- width: 100%;
-}
-EOF
-
- FACTORY = RDoc::Generator::HTML::
- KilmerFactory.new(:central_css => CENTRAL_STYLE,
- :index_css => INDEX_STYLE)
-
- STYLE = FACTORY.get_STYLE()
-
- METHOD_LIST = FACTORY.get_METHOD_LIST()
-
- BODY = FACTORY.get_BODY()
-
- FILE_PAGE = FACTORY.get_FILE_PAGE()
-
- CLASS_PAGE = FACTORY.get_CLASS_PAGE()
-
- SRC_PAGE = FACTORY.get_SRC_PAGE()
-
- FR_INDEX_BODY = FACTORY.get_FR_INDEX_BODY()
-
- FILE_INDEX = FACTORY.get_FILE_INDEX()
-
- CLASS_INDEX = FACTORY.get_CLASS_INDEX()
-
- METHOD_INDEX = FACTORY.get_METHOD_INDEX()
-
- INDEX = FACTORY.get_INDEX()
-
- def self.write_extra_pages(values)
- FACTORY.write_extra_pages(values)
- end
-end
diff --git a/lib/rdoc/generator/html/kilmerfactory.rb b/lib/rdoc/generator/html/kilmerfactory.rb
deleted file mode 100644
index 1407840839..0000000000
--- a/lib/rdoc/generator/html/kilmerfactory.rb
+++ /dev/null
@@ -1,427 +0,0 @@
-require 'rdoc/generator/html'
-require 'rdoc/generator/html/common'
-
-#
-# This class generates Kilmer-style templates. Right now,
-# rdoc is shipped with two such templates:
-# * kilmer
-# * hefss
-#
-# Kilmer-style templates use frames. The left side of the page has
-# three frames stacked on top of each other: one lists
-# files, one lists classes, and one lists methods. If source code
-# is not inlined, an additional frame runs across the bottom of
-# the page and will be used to display method source code.
-# The central (and largest frame) display class and file
-# pages.
-#
-# The constructor of this class accepts a Hash containing stylistic
-# attributes. Then, a get_BLAH instance method of this class returns a
-# value for the template's BLAH constant. get_BODY, for instance, returns
-# the value of the template's BODY constant.
-#
-class RDoc::Generator::HTML::KilmerFactory
-
- include RDoc::Generator::HTML::Common
-
- #
- # The contents of the stylesheet that should be used for the
- # central frame (for the class and file pages).
- #
- # This must be specified in the Hash passed to the constructor.
- #
- attr_reader :central_css
-
- #
- # The contents of the stylesheet that should be used for the
- # index pages.
- #
- # This must be specified in the Hash passed to the constructor.
- #
- attr_reader :index_css
-
- #
- # The heading that should be displayed before listing methods.
- #
- # If not supplied, this defaults to "Methods".
- #
- attr_reader :method_list_heading
-
- #
- # The heading that should be displayed before listing classes and
- # modules.
- #
- # If not supplied, this defaults to "Classes and Modules".
- #
- attr_reader :class_and_module_list_heading
-
- #
- # The heading that should be displayed before listing attributes.
- #
- # If not supplied, this defaults to "Attributes".
- #
- attr_reader :attribute_list_heading
-
- #
- # ====Description:
- # This method constructs a KilmerFactory instance, which
- # can be used to build Kilmer-style template classes.
- # The +style_attributes+ argument is a Hash that contains the
- # values of the classes attributes (Symbols mapped to Strings).
- #
- # ====Parameters:
- # [style_attributes]
- # A Hash describing the appearance of the Kilmer-style.
- #
- def initialize(style_attributes)
- @central_css = style_attributes[:central_css]
- if(!@central_css)
- raise ArgumentError, "did not specify a value for :central_css"
- end
-
- @index_css = style_attributes[:index_css]
- if(!@index_css)
- raise ArgumentError, "did not specify a value for :index_css"
- end
-
- @method_list_heading = style_attributes[:method_list_heading]
- if(!@method_list_heading)
- @method_list_heading = "Methods"
- end
-
- @class_and_module_list_heading = style_attributes[:class_and_module_list_heading]
- if(!@class_and_module_list_heading)
- @class_and_module_list_heading = "Classes and Modules"
- end
-
- @attribute_list_heading = style_attributes[:attribute_list_heading]
- if(!@attribute_list_heading)
- @attribute_list_heading = "Attributes"
- end
- end
-
- def get_STYLE
- return @central_css
- end
-
- def get_METHOD_LIST
- return %{
-<% if values["diagram"] then %>
-<div id="diagram">
-<table width="100%"><tr><td align="center">
-<%= values["diagram"] %>
-</td></tr></table>
-</div>
-<% end %>
-
-<% if values["description"] then %>
-<div class="description"><%= values["description"] %></div>
-<% end %>
-
-<% if values["requires"] then %>
-<table cellpadding="5" width="100%">
-<tr><td class="tablesubtitle">Required files</td></tr>
-</table><br />
-<div class="name-list">
-<% values["requires"].each do |requires| %>
-<%= href requires["aref"], requires["name"] %>
-<% end %><%# values["requires"] %>
-</div>
-<% end %>
-
-<% if values["methods"] then %>
-<table cellpadding="5" width="100%">
-<tr><td class="tablesubtitle">#{@method_list_heading}</td></tr>
-</table><br />
-<div class="name-list">
-<% values["methods"].each do |methods| %>
-<%= href methods["aref"], methods["name"] %>,
-<% end %><%# values["methods"] %>
-</div>
-<% end %>
-
-<% if values["includes"] then %>
-<div class="tablesubsubtitle">Included modules</div><br />
-<div class="name-list">
-<% values["includes"].each do |includes| %>
- <span class="method-name"><%= href includes["aref"], includes["name"] %></span>
-<% end %><%# values["includes"] %>
-</div>
-<% end %>
-
-<% values["sections"].each do |sections| %>
- <div id="section">
-<% if sections["sectitle"] then %>
- <h2 class="section-title"><a name="<%= sections["secsequence"] %>"><%= sections["sectitle"] %></a></h2>
-<% if sections["seccomment"] then %>
- <div class="section-comment">
- <%= sections["seccomment"] %>
- </div>
-<% end %>
-<% end %>
-<% if sections["attributes"] then %>
-<table cellpadding="5" width="100%">
-<tr><td class="tablesubtitle">#{@attribute_list_heading}</td></tr>
-</table><br />
-<table cellspacing="5">
-<% sections["attributes"].each do |attributes| %>
- <tr valign="top">
-<% if attributes["rw"] then %>
- <td align="center" class="attr-rw">&nbsp;[<%= attributes["rw"] %>]&nbsp;</td>
-<% end %>
-<% unless attributes["rw"] then %>
- <td></td>
-<% end %>
- <td class="attr-name"><%= attributes["name"] %></td>
- <td><%= attributes["a_desc"] %></td>
- </tr>
-<% end %><%# sections["attributes"] %>
-</table>
-<% end %>
-
-<% if sections["classlist"] then %>
-<table cellpadding="5" width="100%">
-<tr><td class="tablesubtitle">#{@class_and_module_list_heading}</td></tr>
-</table><br />
-<%= sections["classlist"] %><br />
-<% end %>
-
-<% if sections["method_list"] then %>
-<% sections["method_list"].each do |method_list| %>
-<% if method_list["methods"] then %>
-<table cellpadding="5" width="100%">
-<tr><td class="tablesubtitle"><%= method_list["type"] %> <%= method_list["category"] %> methods</td></tr>
-</table>
-<% method_list["methods"].each do |methods| %>
-<table width="100%" cellspacing="0" cellpadding="5" border="0">
-<tr><td class="methodtitle">
-<a name="<%= methods["aref"] %>">
-<% if methods["callseq"] then %>
-<b><%= methods["callseq"] %></b>
-<% end %>
-<% unless methods["callseq"] then %>
- <b><%= methods["name"] %></b><%= methods["params"] %>
-<% end %>
-</a>
-<% if methods["codeurl"] then %>
-<a href="<%= methods["codeurl"] %>" target="source" class="srclink">src</a>
-<% end %>
-</td></tr>
-</table>
-<% if methods["m_desc"] then %>
-<div class="description">
-<%= methods["m_desc"] %>
-</div>
-<% end %>
-<% if methods["aka"] then %>
-<div class="aka">
-This method is also aliased as
-<% methods["aka"].each do |aka| %>
-<a href="<%= methods["aref"] %>"><%= methods["name"] %></a>
-<% end %><%# methods["aka"] %>
-</div>
-<% end %>
-<% if methods["sourcecode"] then %>
-<pre class="source">
-<%= methods["sourcecode"] %>
-</pre>
-<% end %>
-<% end %><%# method_list["methods"] %>
-<% end %>
-<% end %><%# sections["method_list"] %>
-<% end %>
-
-<% end %><%# values["sections"] %>
-</div>
-}
- end
-
- def get_BODY
- return XHTML_STRICT_PREAMBLE + HTML_ELEMENT + %{
-<head>
- <title><%= values["title"] %></title>
- <meta http-equiv="Content-Type" content="text/html; charset=<%= values["charset"] %>" />
- <link rel="stylesheet" href="<%= values["style_url"] %>" type="text/css" media="screen" />
- <script type="text/javascript">
- <!--
- function popCode(url) {
- parent.frames.source.location = url
- }
- //-->
- </script>
-</head>
-<body>
-<div class="bodyContent">
-<%= template_include %> <!-- banner header -->
-
-#{get_METHOD_LIST()}
-</div>
-</body>
-</html>
-}
- end
-
-def get_FILE_PAGE
- return %{
-<table width="100%">
- <tr class="title-row">
- <td><table width="100%"><tr>
- <td class="big-title-font" colspan="2">File<br /><%= values["short_name"] %></td>
- <td align="right"><table cellspacing="0" cellpadding="2">
- <tr>
- <td class="small-title-font">Path:</td>
- <td class="small-title-font"><%= values["full_path"] %>
-<% if values["cvsurl"] then %>
- &nbsp;(<a href="<%= values["cvsurl"] %>"><acronym title="Concurrent Versioning System">CVS</acronym></a>)
-<% end %>
- </td>
- </tr>
- <tr>
- <td class="small-title-font">Modified:</td>
- <td class="small-title-font"><%= values["dtm_modified"] %></td>
- </tr>
- </table>
- </td></tr></table></td>
- </tr>
-</table><br />
-}
-end
-
-def get_CLASS_PAGE
- return %{
-<table width="100%" border="0" cellspacing="0">
- <tr class="title-row">
- <td class="big-title-font">
- <%= values["classmod"] %><br /><%= values["full_name"] %>
- </td>
- <td align="right">
- <table cellspacing="0" cellpadding="2">
- <tr valign="top">
- <td class="small-title-font">In:</td>
- <td class="small-title-font">
-<% values["infiles"].each do |infiles| %>
-<%= href infiles["full_path_url"], infiles["full_path"] %>
-<% if infiles["cvsurl"] then %>
-&nbsp;(<a href="<%= infiles["cvsurl"] %>"><acronym title="Concurrent Versioning System">CVS</acronym></a>)
-<% end %>
-<% end %><%# values["infiles"] %>
- </td>
- </tr>
-<% if values["parent"] then %>
- <tr>
- <td class="small-title-font">Parent:</td>
- <td class="small-title-font">
-<% if values["par_url"] then %>
- <a href="<%= values["par_url"] %>" class="cyan">
-<% end %>
-<%= values["parent"] %>
-<% if values["par_url"] then %>
- </a>
-<% end %>
- </td>
- </tr>
-<% end %>
- </table>
- </td>
- </tr>
-</table><br />
-}
-end
-
-def get_SRC_PAGE
- return XHTML_STRICT_PREAMBLE + HTML_ELEMENT + %{
-<head><title><%= values["title"] %></title>
-<meta http-equiv="Content-Type" content="text/html; charset=<%= values["charset"] %>" />
-<link rel="stylesheet" href="<%= values["style_url"] %>" type="text/css" media="screen" />
-</head>
-<body>
-<pre><%= values["code"] %></pre>
-</body>
-</html>
-}
-end
-
-def get_FR_INDEX_BODY
- return %{<%= template_include %>}
-end
-
-def get_FILE_INDEX
- return XHTML_STRICT_PREAMBLE + HTML_ELEMENT + %{
-<head>
-<title><%= values["title"] %></title>
-<meta http-equiv="Content-Type" content="text/html; charset=<%= values["charset"] %>" />
-<style type="text/css">
-<!--
-#{@index_css}
--->
-</style>
-<base target="docwin" />
-</head>
-<body>
-<div class="index">
-<div class="banner"><%= values["list_title"] %></div>
-<% values["entries"].each do |entries| %>
-<a href="<%= entries["href"] %>"><%= entries["name"] %></a><br />
-<% end %><%# values["entries"] %>
-</div>
-</body></html>
-}
-end
-
-def get_CLASS_INDEX
- return get_FILE_INDEX
-end
-
-def get_METHOD_INDEX
- return get_FILE_INDEX
-end
-
-def get_INDEX
- return XHTML_FRAME_PREAMBLE + HTML_ELEMENT + %{
-<head>
- <title><%= values["title"] %></title>
- <meta http-equiv="Content-Type" content="text/html; charset=<%= values["charset"] %>" />
-</head>
-
-<frameset cols="20%,*">
- <frameset rows="15%,35%,50%">
- <frame src="fr_file_index.html" title="Files" name="Files" />
- <frame src="fr_class_index.html" name="Classes" />
- <frame src="fr_method_index.html" name="Methods" />
- </frameset>
-<% if values["inline_source"] then %>
- <frame src="<%= values["initial_page"] %>" name="docwin" />
-<% end %>
-<% unless values["inline_source"] then %>
- <frameset rows="80%,20%">
- <frame src="<%= values["initial_page"] %>" name="docwin" />
- <frame src="blank.html" name="source" />
- </frameset>
-<% end %>
-</frameset>
-
-</html>
-}
-end
-
-def get_BLANK
- # This will be displayed in the source code frame before
- # any source code has been selected.
- return XHTML_STRICT_PREAMBLE + HTML_ELEMENT + %{
-<head>
- <title>Source Code Frame <%= values["title_suffix"] %></title>
- <meta http-equiv="Content-Type" content="text/html; charset=<%= values["charset"] %>" />
- <link rel="stylesheet" href="<%= values["style_url"] %>" type="text/css" media="screen" />
-</head>
-<body>
-</body>
-</html>
-}
-end
-
-def write_extra_pages(values)
- template = RDoc::TemplatePage.new(get_BLANK())
- File.open("blank.html", "w") { |f| template.write_html_on(f, values) }
-end
-
-end
diff --git a/lib/rdoc/generator/html/one_page_html.rb b/lib/rdoc/generator/html/one_page_html.rb
deleted file mode 100644
index 5bae2f34f7..0000000000
--- a/lib/rdoc/generator/html/one_page_html.rb
+++ /dev/null
@@ -1,122 +0,0 @@
-require 'rdoc/generator/html'
-require 'rdoc/generator/html/common'
-
-module RDoc::Generator::HTML::ONE_PAGE_HTML
-
- include RDoc::Generator::HTML::Common
-
- CONTENTS_XML = <<-EOF
-<% if defined? classes and classes["description"] then %>
-<%= classes["description"] %>
-<% end %>
-
-<% if defined? files and files["requires"] then %>
-<h4>Requires:</h4>
-<ul>
-<% files["requires"].each do |requires| %>
-<% if requires["aref"] then %>
-<li><a href="<%= requires["aref"] %>"><%= requires["name"] %></a></li>
-<% end %>
-<% unless requires["aref"] then %>
-<li><%= requires["name"] %></li>
-<% end %>
-<% end %><%# files["requires"] %>
-</ul>
-<% end %>
-
-<% if defined? classes and classes["includes"] then %>
-<h4>Includes</h4>
-<ul>
-<% classes["includes"].each do |includes| %>
-<% if includes["aref"] then %>
-<li><a href="<%= includes["aref"] %>"><%= includes["name"] %></a></li>
-<% end %>
-<% unless includes["aref"] then %>
-<li><%= includes["name"] %></li>
-<% end %>
-<% end %><%# classes["includes"] %>
-</ul>
-<% end %>
-
-<% if defined? classes and classes["sections"] then %>
-<% classes["sections"].each do |sections| %>
-<% if sections["attributes"] then %>
-<h4>Attributes</h4>
-<table>
-<% sections["attributes"].each do |attributes| %>
-<tr><td><%= attributes["name"] %></td><td><%= attributes["rw"] %></td><td><%= attributes["a_desc"] %></td></tr>
-<% end %><%# sections["attributes"] %>
-</table>
-<% end %>
-
-<% if sections["method_list"] then %>
-<h3>Methods</h3>
-<% sections["method_list"].each do |method_list| %>
-<% if method_list["methods"] then %>
-<% method_list["methods"].each do |methods| %>
-<h4><%= methods["type"] %> <%= methods["category"] %> method:
-<% if methods["callseq"] then %>
-<a name="<%= methods["aref"] %>"><%= methods["callseq"] %></a>
-<% end %>
-<% unless methods["callseq"] then %>
-<a name="<%= methods["aref"] %>"><%= methods["name"] %><%= methods["params"] %></a></h4>
-<% end %>
-
-<% if methods["m_desc"] then %>
-<%= methods["m_desc"] %>
-<% end %>
-
-<% if methods["sourcecode"] then %>
-<blockquote><pre>
-<%= methods["sourcecode"] %>
-</pre></blockquote>
-<% end %>
-<% end %><%# method_list["methods"] %>
-<% end %>
-<% end %><%# sections["method_list"] %>
-<% end %>
-<% end %><%# classes["sections"] %>
-<% end %>
- EOF
-
- ONE_PAGE = XHTML_STRICT_PREAMBLE + HTML_ELEMENT + %{
-<head>
- <title><%= values["title"] %></title>
- <meta http-equiv="Content-Type" content="text/html; charset=<%= values["charset"] %>" />
-</head>
-<body>
-<% values["files"].each do |files| %>
-<h2>File: <a name="<%= files["href"] %>"><%= files["short_name"] %></a></h2>
-<table>
- <tr><td>Path:</td><td><%= files["full_path"] %></td></tr>
- <tr><td>Modified:</td><td><%= files["dtm_modified"] %></td></tr>
-</table>
-} + CONTENTS_XML + %{
-<% end %><%# values["files"] %>
-
-<% if values["classes"] then %>
-<h2>Classes</h2>
-<% values["classes"].each do |classes| %>
-<% if classes["parent"] then %>
-<h3><%= classes["classmod"] %> <a name="<%= classes["href"] %>"><%= classes["full_name"] %></a> &lt; <%= href classes["par_url"], classes["parent"] %></h3>
-<% end %>
-<% unless classes["parent"] then %>
-<h3><%= classes["classmod"] %> <%= classes["full_name"] %></h3>
-<% end %>
-
-<% if classes["infiles"] then %>
-(in files
-<% classes["infiles"].each do |infiles| %>
-<%= href infiles["full_path_url"], infiles["full_path"] %>
-<% end %><%# classes["infiles"] %>
-)
-<% end %>
-} + CONTENTS_XML + %{
-<% end %><%# values["classes"] %>
-<% end %>
-</body>
-</html>
-}
-
-end
-
diff --git a/lib/rdoc/generator/markup.rb b/lib/rdoc/generator/markup.rb
new file mode 100644
index 0000000000..c267bb1c13
--- /dev/null
+++ b/lib/rdoc/generator/markup.rb
@@ -0,0 +1,208 @@
+# This file is loaded by generators. It allows RDoc's CodeObject tree to
+# avoid loading generator code to increase startup time (for ri).
+
+require 'rdoc/text'
+require 'rdoc/code_objects'
+require 'rdoc/generator'
+require 'rdoc/markup/to_html_crossref'
+require 'rdoc/ruby_token'
+
+##
+# Handle common RDoc::Markup tasks for various CodeObjects
+
+module RDoc::Generator::Markup
+
+ ##
+ # Generates a relative URL from this object's path to +target_path+
+
+ def aref_to(target_path)
+ RDoc::Markup::ToHtml.gen_relative_url path, target_path
+ end
+
+ ##
+ # Generates a relative URL from +from_path+ to this object's path
+
+ def as_href(from_path)
+ RDoc::Markup::ToHtml.gen_relative_url from_path, path
+ end
+
+ ##
+ # Handy wrapper for marking up this object's comment
+
+ def description
+ markup @comment
+ end
+
+ ##
+ # Creates an RDoc::Markup::ToHtmlCrossref formatter
+
+ def formatter
+ return @formatter if defined? @formatter
+
+ show_hash = RDoc::RDoc.current.options.show_hash
+ hyperlink_all = RDoc::RDoc.current.options.hyperlink_all
+ this = RDoc::Context === self ? self : @parent
+
+ @formatter = RDoc::Markup::ToHtmlCrossref.new(this.path, this, show_hash,
+ hyperlink_all)
+ end
+
+ ##
+ # Build a webcvs URL starting for the given +url+ with +full_path+ appended
+ # as the destination path. If +url+ contains '%s' +full_path+ will be
+ # sprintf'd into +url+ instead.
+
+ def cvs_url(url, full_path)
+ if /%s/ =~ url then
+ sprintf url, full_path
+ else
+ url + full_path
+ end
+ end
+
+end
+
+class RDoc::AnyMethod
+
+ include RDoc::Generator::Markup
+
+ @add_line_numbers = false
+
+ class << self
+ ##
+ # Allows controlling whether <tt>#markup_code</tt> adds line numbers to
+ # the source code.
+
+ attr_accessor :add_line_numbers
+ end
+
+ ##
+ # Prepend +src+ with line numbers. Relies on the first line of a source
+ # code listing having:
+ #
+ # # File xxxxx, line dddd
+ #
+ # If it has, line numbers are added an ', line dddd' is removed.
+
+ def add_line_numbers(src)
+ return unless src.sub!(/\A(.*)(, line (\d+))/, '\1')
+ first = $3.to_i - 1
+ last = first + src.count("\n")
+ size = last.to_s.length
+
+ line = first
+ src.gsub!(/^/) do
+ res = if line == first then
+ " " * (size + 1)
+ else
+ "<span class=\"line-num\">%2$*1$d</span> " % [size, line]
+ end
+
+ line += 1
+ res
+ end
+ end
+
+ ##
+ # Turns the method's token stream into HTML.
+ #
+ # Prepends line numbers if +add_line_numbers+ is true.
+
+ def markup_code
+ return '' unless @token_stream
+
+ src = ""
+
+ @token_stream.each do |t|
+ next unless t
+
+ style = case t
+ when RDoc::RubyToken::TkCONSTANT then 'ruby-constant'
+ when RDoc::RubyToken::TkKW then 'ruby-keyword'
+ when RDoc::RubyToken::TkIVAR then 'ruby-ivar'
+ when RDoc::RubyToken::TkOp then 'ruby-operator'
+ when RDoc::RubyToken::TkId then 'ruby-identifier'
+ when RDoc::RubyToken::TkNode then 'ruby-node'
+ when RDoc::RubyToken::TkCOMMENT then 'ruby-comment'
+ when RDoc::RubyToken::TkREGEXP then 'ruby-regexp'
+ when RDoc::RubyToken::TkSTRING then 'ruby-string'
+ when RDoc::RubyToken::TkVal then 'ruby-value'
+ end
+
+ text = CGI.escapeHTML t.text
+
+ if style then
+ src << "<span class=\"#{style}\">#{text}</span>"
+ else
+ src << text
+ end
+ end
+
+ # dedent the source
+ indent = src.length
+ lines = src.lines.to_a
+ lines.shift if src =~ /\A.*#\ *File/i # remove '# File' comment
+ lines.each do |line|
+ if line =~ /^ *(?=\S)/
+ n = $&.length
+ indent = n if n < indent
+ break if n == 0
+ end
+ end
+ src.gsub!(/^#{' ' * indent}/, '') if indent > 0
+
+ add_line_numbers(src) if self.class.add_line_numbers
+
+ src
+ end
+
+end
+
+class RDoc::Attr
+
+ include RDoc::Generator::Markup
+
+end
+
+class RDoc::Alias
+
+ include RDoc::Generator::Markup
+
+end
+
+class RDoc::Constant
+
+ include RDoc::Generator::Markup
+
+end
+
+class RDoc::Context
+
+ include RDoc::Generator::Markup
+
+end
+
+class RDoc::Context::Section
+
+ include RDoc::Generator::Markup
+
+end
+
+class RDoc::TopLevel
+
+ ##
+ # Returns a URL for this source file on some web repository. Use the -W
+ # command line option to set.
+
+ def cvs_url
+ url = RDoc::RDoc.current.options.webcvs
+
+ if /%s/ =~ url then
+ url % @absolute_name
+ else
+ url + @absolute_name
+ end
+ end
+
+end
+
diff --git a/lib/rdoc/generator/ri.rb b/lib/rdoc/generator/ri.rb
index 6b7a5932f8..939a165cfb 100644
--- a/lib/rdoc/generator/ri.rb
+++ b/lib/rdoc/generator/ri.rb
@@ -1,225 +1,85 @@
require 'rdoc/generator'
-require 'rdoc/markup/to_flow'
+require 'rdoc/ri'
-require 'rdoc/ri/cache'
-require 'rdoc/ri/reader'
-require 'rdoc/ri/writer'
-require 'rdoc/ri/descriptions'
+##
+# Generates ri data files
class RDoc::Generator::RI
+ RDoc::RDoc.add_generator self
+
##
- # Generator may need to return specific subclasses depending on the
- # options they are passed. Because of this we create them using a factory
+ # Description of this generator
- def self.for(options)
- new(options)
- end
+ DESCRIPTION = 'creates ri data files'
##
# Set up a new ri generator
- def initialize(options) #:not-new:
- @options = options
- @ri_writer = RDoc::RI::Writer.new "."
- @markup = RDoc::Markup.new
- @to_flow = RDoc::Markup::ToFlow.new
+ def initialize options #:not-new:
+ @options = options
+ @old_siginfo = nil
+ @current = nil
- @generated = {}
+ @store = RDoc::RI::Store.new '.'
+ @store.dry_run = @options.dry_run
+ @store.encoding = @options.encoding if @options.respond_to? :encoding
end
##
- # Build the initial indices and output objects based on an array of
- # TopLevel objects containing the extracted information.
-
- def generate(toplevels)
- RDoc::TopLevel.all_classes_and_modules.each do |cls|
- process_class cls
- end
- end
-
- def process_class(from_class)
- generate_class_info(from_class)
+ # Build the initial indices and output objects based on an array of TopLevel
+ # objects containing the extracted information.
- # now recurse into this class' constituent classes
- from_class.each_classmodule do |mod|
- process_class(mod)
- end
- end
-
- def generate_class_info(cls)
- case cls
- when RDoc::NormalModule then
- cls_desc = RDoc::RI::ModuleDescription.new
- else
- cls_desc = RDoc::RI::ClassDescription.new
- cls_desc.superclass = cls.superclass
- end
+ def generate top_levels
+ install_siginfo_handler
- cls_desc.name = cls.name
- cls_desc.full_name = cls.full_name
- cls_desc.comment = markup(cls.comment)
+ @store.load_cache
- cls_desc.attributes = cls.attributes.sort.map do |a|
- RDoc::RI::Attribute.new(a.name, a.rw, markup(a.comment))
- end
+ RDoc::TopLevel.all_classes_and_modules.each do |klass|
+ @current = "#{klass.class}: #{klass.full_name}"
- cls_desc.constants = cls.constants.map do |c|
- RDoc::RI::Constant.new(c.name, c.value, markup(c.comment))
- end
+ @store.save_class klass
- cls_desc.includes = cls.includes.map do |i|
- RDoc::RI::IncludedModule.new(i.name)
- end
-
- class_methods, instance_methods = method_list(cls)
+ klass.each_method do |method|
+ @current = "#{method.class}: #{method.full_name}"
+ @store.save_method klass, method
+ end
- cls_desc.class_methods = class_methods.map do |m|
- RDoc::RI::MethodSummary.new(m.name)
+ klass.each_attribute do |attribute|
+ @store.save_method klass, attribute
+ end
end
- cls_desc.instance_methods = instance_methods.map do |m|
- RDoc::RI::MethodSummary.new(m.name)
- end
+ @current = 'saving cache'
- update_or_replace(cls_desc)
+ @store.save_cache
- class_methods.each do |m|
- generate_method_info(cls_desc, m)
- end
+ ensure
+ @current = nil
- instance_methods.each do |m|
- generate_method_info(cls_desc, m)
- end
+ remove_siginfo_handler
end
- def generate_method_info(cls_desc, method)
- meth_desc = RDoc::RI::MethodDescription.new
- meth_desc.name = method.name
- meth_desc.full_name = cls_desc.full_name
- if method.singleton
- meth_desc.full_name += "::"
- else
- meth_desc.full_name += "#"
- end
- meth_desc.full_name << method.name
-
- meth_desc.comment = markup(method.comment)
- meth_desc.params = params_of(method)
- meth_desc.visibility = method.visibility.to_s
- meth_desc.is_singleton = method.singleton
- meth_desc.block_params = method.block_params
-
- meth_desc.aliases = method.aliases.map do |a|
- RDoc::RI::AliasName.new(a.name)
- end
-
- @ri_writer.add_method(cls_desc, meth_desc)
- end
-
- private
-
##
- # Returns a list of class and instance methods that we'll be documenting
-
- def method_list(cls)
- list = cls.method_list
- unless @options.show_all
- list = list.find_all do |m|
- m.visibility == :public || m.visibility == :protected || m.force_documentation
- end
- end
-
- c = []
- i = []
- list.sort.each do |m|
- if m.singleton
- c << m
- else
- i << m
- end
- end
- return c,i
- end
+ # Installs a siginfo handler that prints the current filename.
- def params_of(method)
- if method.call_seq
- method.call_seq
- else
- params = method.params || ""
-
- p = params.gsub(/\s*\#.*/, '')
- p = p.tr("\n", " ").squeeze(" ")
- p = "(" + p + ")" unless p[0] == ?(
-
- if (block = method.block_params)
- block.gsub!(/\s*\#.*/, '')
- block = block.tr("\n", " ").squeeze(" ")
- if block[0] == ?(
- block.sub!(/^\(/, '').sub!(/\)/, '')
- end
- p << " {|#{block.strip}| ...}"
- end
- p
- end
- end
+ def install_siginfo_handler
+ return unless Signal.list.key? 'INFO'
- def markup(comment)
- return nil if !comment || comment.empty?
-
- # Convert leading comment markers to spaces, but only
- # if all non-blank lines have them
-
- if comment =~ /^(?>\s*)[^\#]/
- content = comment
- else
- content = comment.gsub(/^\s*(#+)/) { $1.tr('#',' ') }
+ @old_siginfo = trap 'INFO' do
+ puts @current if @current
end
- @markup.convert(content, @to_flow)
end
##
- # By default we replace existing classes with the same name. If the
- # --merge option was given, we instead merge this definition into an
- # existing class. We add our methods, aliases, etc to that class, but do
- # not change the class's description.
-
- def update_or_replace(cls_desc)
- old_cls = nil
-
- if @options.merge
- rdr = RDoc::RI::Reader.new RDoc::RI::Cache.new(@options.op_dir)
-
- namespace = rdr.top_level_namespace
- namespace = rdr.lookup_namespace_in(cls_desc.name, namespace)
- if namespace.empty?
- $stderr.puts "You asked me to merge this source into existing "
- $stderr.puts "documentation. This file references a class or "
- $stderr.puts "module called #{cls_desc.name} which I don't"
- $stderr.puts "have existing documentation for."
- $stderr.puts
- $stderr.puts "Perhaps you need to generate its documentation first"
- exit 1
- else
- old_cls = namespace[0]
- end
- end
-
- prev_cls = @generated[cls_desc.full_name]
+ # Removes a siginfo handler and replaces the previous
- if old_cls and not prev_cls then
- old_desc = rdr.get_class old_cls
- cls_desc.merge_in old_desc
- end
-
- if prev_cls then
- cls_desc.merge_in prev_cls
- end
+ def remove_siginfo_handler
+ return unless Signal.list.key? 'INFO'
- @generated[cls_desc.full_name] = cls_desc
+ handler = @old_siginfo || 'DEFAULT'
- @ri_writer.remove_class cls_desc
- @ri_writer.add_class cls_desc
+ trap 'INFO', handler
end
end
diff --git a/install-sh b/lib/rdoc/generator/template/darkfish/.document
index e69de29bb2..e69de29bb2 100644
--- a/install-sh
+++ b/lib/rdoc/generator/template/darkfish/.document
diff --git a/lib/rdoc/generator/template/darkfish/classpage.rhtml b/lib/rdoc/generator/template/darkfish/classpage.rhtml
new file mode 100644
index 0000000000..9c74cacf0f
--- /dev/null
+++ b/lib/rdoc/generator/template/darkfish/classpage.rhtml
@@ -0,0 +1,321 @@
+<?xml version="1.0" encoding="<%= @options.charset %>"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+ <meta content="text/html; charset=<%= @options.charset %>" http-equiv="Content-Type" />
+
+ <title><%= klass.type.capitalize %>: <%= klass.full_name %></title>
+
+ <link rel="stylesheet" href="<%= rel_prefix %>/rdoc.css" type="text/css" media="screen" />
+
+ <script src="<%= rel_prefix %>/js/jquery.js" type="text/javascript" charset="utf-8"></script>
+ <script src="<%= rel_prefix %>/js/thickbox-compressed.js" type="text/javascript" charset="utf-8"></script>
+ <script src="<%= rel_prefix %>/js/quicksearch.js" type="text/javascript" charset="utf-8"></script>
+ <script src="<%= rel_prefix %>/js/darkfish.js" type="text/javascript" charset="utf-8"></script>
+
+</head>
+<body id="top" class="<%= klass.type %>">
+
+ <div id="metadata">
+ <div id="home-metadata">
+ <div id="home-section" class="section">
+ <h3 class="section-header">
+ <a href="<%= rel_prefix %>/index.html">Home</a>
+ <a href="<%= rel_prefix %>/index.html#classes">Classes</a>
+ <a href="<%= rel_prefix %>/index.html#methods">Methods</a>
+ </h3>
+ </div>
+ </div>
+
+ <div id="file-metadata">
+ <div id="file-list-section" class="section">
+ <h3 class="section-header">In Files</h3>
+ <div class="section-body">
+ <ul>
+ <% klass.in_files.each do |tl| %>
+ <li><a href="<%= rel_prefix %>/<%= h tl.path %>?TB_iframe=true&amp;height=550&amp;width=785"
+ class="thickbox" title="<%= h tl.absolute_name %>"><%= h tl.absolute_name %></a></li>
+ <% end %>
+ </ul>
+ </div>
+ </div>
+
+ <% if !svninfo.empty? then %>
+ <div id="file-svninfo-section" class="section">
+ <h3 class="section-header">Subversion Info</h3>
+ <div class="section-body">
+ <dl class="svninfo">
+ <dt>Rev</dt>
+ <dd><%= svninfo[:rev] %></dd>
+
+ <dt>Last Checked In</dt>
+ <dd><%= svninfo[:commitdate].strftime('%Y-%m-%d %H:%M:%S') %>
+ (<%= svninfo[:commitdelta] %> ago)</dd>
+
+ <dt>Checked in by</dt>
+ <dd><%= svninfo[:committer] %></dd>
+ </dl>
+ </div>
+ </div>
+ <% end %>
+ </div>
+
+ <div id="class-metadata">
+ <% if klass.type == 'class' then %>
+ <!-- Parent Class -->
+ <div id="parent-class-section" class="section">
+ <h3 class="section-header">Parent</h3>
+ <% if klass.superclass and not String === klass.superclass then %>
+ <p class="link"><a href="<%= klass.aref_to klass.superclass.path %>"><%= klass.superclass.full_name %></a></p>
+ <% else %>
+ <p class="link"><%= klass.superclass %></p>
+ <% end %>
+ </div>
+ <% end %>
+
+ <% unless klass.sections.length == 1 then %>
+ <!-- Sections -->
+ <div id="sections-section" class="section">
+ <h3 class="section-header">Sections</h3>
+ <ul class="link-list">
+ <% klass.sections.sort_by { |s| s.title.to_s }.each do |section| %>
+ <li><a href="#<%= section.aref %>"><%= h section.title %></a></li>
+ <% end %>
+ </ul>
+ </div>
+ <% end %>
+
+ <% unless klass.classes_and_modules.empty? then %>
+ <!-- Namespace Contents -->
+ <div id="namespace-list-section" class="section">
+ <h3 class="section-header">Namespace</h3>
+ <ul class="link-list">
+ <% (klass.modules.sort + klass.classes.sort).each do |mod| %>
+ <li><span class="type"><%= mod.type.upcase %></span> <a href="<%= klass.aref_to mod.path %>"><%= mod.full_name %></a></li>
+ <% end %>
+ </ul>
+ </div>
+ <% end %>
+
+ <% unless klass.method_list.empty? then %>
+ <!-- Method Quickref -->
+ <div id="method-list-section" class="section">
+ <h3 class="section-header">Methods</h3>
+ <ul class="link-list">
+ <% klass.each_method do |meth| %>
+ <li><a href="#<%= meth.aref %>"><%= meth.singleton ? '::' : '#' %><%= meth.name %></a></li>
+ <% end %>
+ </ul>
+ </div>
+ <% end %>
+
+ <% unless klass.includes.empty? then %>
+ <!-- Included Modules -->
+ <div id="includes-section" class="section">
+ <h3 class="section-header">Included Modules</h3>
+ <ul class="link-list">
+ <% klass.each_include do |inc| %>
+ <% unless String === inc.module then %>
+ <li><a class="include" href="<%= klass.aref_to inc.module.path %>"><%= inc.module.full_name %></a></li>
+ <% else %>
+ <li><span class="include"><%= inc.name %></span></li>
+ <% end %>
+ <% end %>
+ </ul>
+ </div>
+ <% end %>
+ </div>
+
+ <div id="project-metadata">
+ <% simple_files = @files.select {|tl| tl.parser == RDoc::Parser::Simple } %>
+ <% unless simple_files.empty? then %>
+ <div id="fileindex-section" class="section project-section">
+ <h3 class="section-header">Files</h3>
+ <ul>
+ <% simple_files.each do |file| %>
+ <li class="file"><a href="<%= rel_prefix %>/<%= file.path %>"><%= h file.base_name %></a></li>
+ <% end %>
+ </ul>
+ </div>
+ <% end %>
+
+ <div id="classindex-section" class="section project-section">
+ <h3 class="section-header">Class/Module Index
+ <span class="search-toggle"><img src="<%= rel_prefix %>/images/find.png"
+ height="16" width="16" alt="[+]"
+ title="show/hide quicksearch" /></span></h3>
+ <form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
+ <fieldset>
+ <legend>Quicksearch</legend>
+ <input type="text" name="quicksearch" value=""
+ class="quicksearch-field" />
+ </fieldset>
+ </form>
+
+ <ul class="link-list">
+ <% @modsort.each do |index_klass| %>
+ <li><a href="<%= rel_prefix %>/<%= index_klass.path %>"><%= index_klass.full_name %></a></li>
+ <% end %>
+ </ul>
+ <div id="no-class-search-results" style="display: none;">No matching classes.</div>
+ </div>
+
+ <% if $DEBUG_RDOC then %>
+ <div id="debugging-toggle"><img src="<%= rel_prefix %>/images/bug.png"
+ alt="toggle debugging" height="16" width="16" /></div>
+ <% end %>
+ </div>
+ </div>
+
+ <div id="documentation">
+ <h1 class="<%= klass.type %>"><%= klass.full_name %></h1>
+
+ <div id="description" class="description">
+ <%= klass.description %>
+ </div><!-- description -->
+
+ <% klass.each_section do |section, constants, attributes| %>
+ <% constants = constants.select { |const| const.display? } %>
+ <% attributes = attributes.select { |attr| attr.display? } %>
+ <div id="<%= section.aref %>" class="documentation-section">
+ <% if section.title then %>
+ <h2 class="section-header">
+ <%= section.title %>
+ <a href="#top">&uarr; top</a>
+ </h2>
+ <% end %>
+
+ <% if section.comment then %>
+ <div class="description">
+ <%= section.description %>
+ </div>
+ <% end %>
+
+ <% unless constants.empty? then %>
+ <!-- Constants -->
+ <div id="constants-list" class="section">
+ <h3 class="section-header">Constants</h3>
+ <dl>
+ <% constants.each do |const| %>
+ <dt><a name="<%= const.name %>"><%= const.name %></a></dt>
+ <% if const.comment then %>
+ <dd class="description"><%= const.description.strip %></dd>
+ <% else %>
+ <dd class="description missing-docs">(Not documented)</dd>
+ <% end %>
+ <% end %>
+ </dl>
+ </div>
+ <% end %>
+
+ <% unless attributes.empty? then %>
+ <!-- Attributes -->
+ <div id="attribute-method-details" class="method-section section">
+ <h3 class="section-header">Attributes</h3>
+
+ <% attributes.each do |attrib| %>
+ <div id="<%= attrib.html_name %>-attribute-method" class="method-detail">
+ <a name="<%= h attrib.name %>"></a>
+ <% if attrib.rw =~ /w/i then %>
+ <a name="<%= h attrib.name %>="></a>
+ <% end %>
+ <div class="method-heading attribute-method-heading">
+ <span class="method-name"><%= h attrib.name %></span><span
+ class="attribute-access-type">[<%= attrib.rw %>]</span>
+ </div>
+
+ <div class="method-description">
+ <% if attrib.comment then %>
+ <%= attrib.description.strip %>
+ <% else %>
+ <p class="missing-docs">(Not documented)</p>
+ <% end %>
+ </div>
+ </div>
+ <% end %>
+ </div><!-- attribute-method-details -->
+ <% end %>
+
+ <!-- Methods -->
+ <% klass.methods_by_type(section).each do |type, visibilities|
+ next if visibilities.empty?
+ visibilities.each do |visibility, methods|
+ next if methods.empty? %>
+ <div id="<%= visibility %>-<%= type %>-method-details" class="method-section section">
+ <h3 class="section-header"><%= visibility.to_s.capitalize %> <%= type.capitalize %> Methods</h3>
+
+ <% methods.each do |method| %>
+ <div id="<%= method.html_name %>-method" class="method-detail <%= method.is_alias_for ? "method-alias" : '' %>">
+ <a name="<%= h method.aref %>"></a>
+
+ <% if method.call_seq then %>
+ <% method.call_seq.strip.split("\n").each_with_index do |call_seq, i| %>
+ <div class="method-heading">
+ <span class="method-callseq"><%= call_seq.strip.gsub(/->/, '&rarr;').gsub( /^\w+\./m, '') %></span>
+ <% if i == 0 then %>
+ <span class="method-click-advice">click to toggle source</span>
+ <% end %>
+ </div>
+ <% end %>
+ <% else %>
+ <div class="method-heading">
+ <span class="method-name"><%= h method.name %></span><span
+ class="method-args"><%= method.params %></span>
+ <span class="method-click-advice">click to toggle source</span>
+ </div>
+ <% end %>
+
+ <div class="method-description">
+ <% if method.comment then %>
+ <%= method.description.strip %>
+ <% else %>
+ <p class="missing-docs">(Not documented)</p>
+ <% end %>
+
+ <% if method.token_stream then %>
+ <div class="method-source-code" id="<%= method.html_name %>-source">
+<pre>
+<%= method.markup_code %>
+</pre>
+ </div><!-- <%= method.html_name %>-source -->
+ <% end %>
+ </div>
+
+ <% unless method.aliases.empty? then %>
+ <div class="aliases">
+ Also aliased as: <%= method.aliases.map do |aka|
+ if aka.parent then # HACK lib/rexml/encodings
+ %{<a href="#{klass.aref_to aka.path}">#{h aka.name}</a>}
+ else
+ h aka.name
+ end
+ end.join ", " %>
+ </div>
+ <% end %>
+
+ <% if method.is_alias_for then %>
+ <div class="aliases">
+ Alias for: <a href="<%= klass.aref_to method.is_alias_for.path %>"><%= h method.is_alias_for.name %></a>
+ </div>
+ <% end %>
+ </div><!-- <%= method.html_name %>-method -->
+
+ <% end %>
+ </div><!-- <%= visibility %>-<%= type %>-method-details -->
+ <% end
+ end %>
+ </div><!-- <%= section.aref %> -->
+ <% end %>
+
+ </div><!-- documentation -->
+
+ <div id="validator-badges">
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
+ <p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
+ Rdoc Generator</a> <%= RDoc::Generator::Darkfish::VERSION %></small>.</p>
+ </div>
+
+</body>
+</html>
+
diff --git a/lib/rdoc/generator/template/darkfish/filepage.rhtml b/lib/rdoc/generator/template/darkfish/filepage.rhtml
new file mode 100644
index 0000000000..b230a456a3
--- /dev/null
+++ b/lib/rdoc/generator/template/darkfish/filepage.rhtml
@@ -0,0 +1,124 @@
+<?xml version="1.0" encoding="utf-8"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
+
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+ <meta content="text/html; charset=<%= @options.charset %>" http-equiv="Content-Type" />
+
+ <title>File: <%= file.base_name %> [<%= @options.title %>]</title>
+
+ <link type="text/css" media="screen" href="<%= rel_prefix %>/rdoc.css" rel="stylesheet" />
+
+ <script src="<%= rel_prefix %>/js/jquery.js" type="text/javascript"
+ charset="utf-8"></script>
+ <script src="<%= rel_prefix %>/js/thickbox-compressed.js" type="text/javascript"
+ charset="utf-8"></script>
+ <script src="<%= rel_prefix %>/js/quicksearch.js" type="text/javascript"
+ charset="utf-8"></script>
+ <script src="<%= rel_prefix %>/js/darkfish.js" type="text/javascript"
+ charset="utf-8"></script>
+</head>
+
+<% if file.parser == RDoc::Parser::Simple %>
+<body class="file">
+ <div id="metadata">
+ <div id="home-metadata">
+ <div id="home-section" class="section">
+ <h3 class="section-header">
+ <a href="<%= rel_prefix %>/index.html">Home</a>
+ <a href="<%= rel_prefix %>/index.html#classes">Classes</a>
+ <a href="<%= rel_prefix %>/index.html#methods">Methods</a>
+ </h3>
+ </div>
+ </div>
+
+ <div id="project-metadata">
+ <% simple_files = @files.select { |f| f.parser == RDoc::Parser::Simple } %>
+ <% unless simple_files.empty? then %>
+ <div id="fileindex-section" class="section project-section">
+ <h3 class="section-header">Files</h3>
+ <ul>
+ <% simple_files.each do |f| %>
+ <li class="file"><a href="<%= rel_prefix %>/<%= f.path %>"><%= h f.base_name %></a></li>
+ <% end %>
+ </ul>
+ </div>
+ <% end %>
+
+ <div id="classindex-section" class="section project-section">
+ <h3 class="section-header">Class Index
+ <span class="search-toggle"><img src="<%= rel_prefix %>/images/find.png"
+ height="16" width="16" alt="[+]"
+ title="show/hide quicksearch" /></span></h3>
+ <form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
+ <fieldset>
+ <legend>Quicksearch</legend>
+ <input type="text" name="quicksearch" value=""
+ class="quicksearch-field" />
+ </fieldset>
+ </form>
+
+ <ul class="link-list">
+ <% @modsort.each do |index_klass| %>
+ <li><a href="<%= rel_prefix %>/<%= index_klass.path %>"><%= index_klass.full_name %></a></li>
+ <% end %>
+ </ul>
+ <div id="no-class-search-results" style="display: none;">No matching classes.</div>
+ </div>
+
+ <% if $DEBUG_RDOC %>
+ <div id="debugging-toggle"><img src="<%= rel_prefix %>/images/bug.png"
+ alt="toggle debugging" height="16" width="16" /></div>
+ <% end %>
+ </div>
+ </div>
+
+ <div id="documentation">
+ <%= file.description %>
+ </div>
+
+ <div id="validator-badges">
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
+ <p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
+ Rdoc Generator</a> <%= RDoc::Generator::Darkfish::VERSION %></small>.</p>
+ </div>
+</body>
+<% else %>
+<body class="file file-popup">
+ <div id="metadata">
+ <dl>
+ <dt class="modified-date">Last Modified</dt>
+ <dd class="modified-date"><%= file.last_modified %></dd>
+
+ <% if file.requires %>
+ <dt class="requires">Requires</dt>
+ <dd class="requires">
+ <ul>
+ <% file.requires.each do |require| %>
+ <li><%= require.name %></li>
+ <% end %>
+ </ul>
+ </dd>
+ <% end %>
+
+ <% if @options.webcvs %>
+ <dt class="scs-url">Trac URL</dt>
+ <dd class="scs-url"><a target="_top"
+ href="<%= file.cvs_url %>"><%= file.cvs_url %></a></dd>
+ <% end %>
+ </dl>
+ </div>
+
+ <div id="documentation">
+ <% if file.comment %>
+ <div class="description">
+ <h2>Description</h2>
+ <%= file.description %>
+ </div>
+ <% end %>
+ </div>
+</body>
+<% end %>
+</html>
+
diff --git a/lib/rdoc/generator/template/darkfish/images/brick.png b/lib/rdoc/generator/template/darkfish/images/brick.png
new file mode 100644
index 0000000000..7851cf34c9
--- /dev/null
+++ b/lib/rdoc/generator/template/darkfish/images/brick.png
Binary files differ
diff --git a/lib/rdoc/generator/template/darkfish/images/brick_link.png b/lib/rdoc/generator/template/darkfish/images/brick_link.png
new file mode 100644
index 0000000000..9ebf013a23
--- /dev/null
+++ b/lib/rdoc/generator/template/darkfish/images/brick_link.png
Binary files differ
diff --git a/lib/rdoc/generator/template/darkfish/images/bug.png b/lib/rdoc/generator/template/darkfish/images/bug.png
new file mode 100644
index 0000000000..2d5fb90ec6
--- /dev/null
+++ b/lib/rdoc/generator/template/darkfish/images/bug.png
Binary files differ
diff --git a/lib/rdoc/generator/template/darkfish/images/bullet_black.png b/lib/rdoc/generator/template/darkfish/images/bullet_black.png
new file mode 100644
index 0000000000..57619706d1
--- /dev/null
+++ b/lib/rdoc/generator/template/darkfish/images/bullet_black.png
Binary files differ
diff --git a/lib/rdoc/generator/template/darkfish/images/bullet_toggle_minus.png b/lib/rdoc/generator/template/darkfish/images/bullet_toggle_minus.png
new file mode 100644
index 0000000000..b47ce55f68
--- /dev/null
+++ b/lib/rdoc/generator/template/darkfish/images/bullet_toggle_minus.png
Binary files differ
diff --git a/lib/rdoc/generator/template/darkfish/images/bullet_toggle_plus.png b/lib/rdoc/generator/template/darkfish/images/bullet_toggle_plus.png
new file mode 100644
index 0000000000..9ab4a89664
--- /dev/null
+++ b/lib/rdoc/generator/template/darkfish/images/bullet_toggle_plus.png
Binary files differ
diff --git a/lib/rdoc/generator/template/darkfish/images/date.png b/lib/rdoc/generator/template/darkfish/images/date.png
new file mode 100644
index 0000000000..783c83357f
--- /dev/null
+++ b/lib/rdoc/generator/template/darkfish/images/date.png
Binary files differ
diff --git a/lib/rdoc/generator/template/darkfish/images/find.png b/lib/rdoc/generator/template/darkfish/images/find.png
new file mode 100644
index 0000000000..1547479646
--- /dev/null
+++ b/lib/rdoc/generator/template/darkfish/images/find.png
Binary files differ
diff --git a/lib/rdoc/generator/template/darkfish/images/loadingAnimation.gif b/lib/rdoc/generator/template/darkfish/images/loadingAnimation.gif
new file mode 100644
index 0000000000..82290f4833
--- /dev/null
+++ b/lib/rdoc/generator/template/darkfish/images/loadingAnimation.gif
Binary files differ
diff --git a/lib/rdoc/generator/template/darkfish/images/macFFBgHack.png b/lib/rdoc/generator/template/darkfish/images/macFFBgHack.png
new file mode 100644
index 0000000000..c6473b324e
--- /dev/null
+++ b/lib/rdoc/generator/template/darkfish/images/macFFBgHack.png
Binary files differ
diff --git a/lib/rdoc/generator/template/darkfish/images/package.png b/lib/rdoc/generator/template/darkfish/images/package.png
new file mode 100644
index 0000000000..da3c2a2d74
--- /dev/null
+++ b/lib/rdoc/generator/template/darkfish/images/package.png
Binary files differ
diff --git a/lib/rdoc/generator/template/darkfish/images/page_green.png b/lib/rdoc/generator/template/darkfish/images/page_green.png
new file mode 100644
index 0000000000..de8e003f9f
--- /dev/null
+++ b/lib/rdoc/generator/template/darkfish/images/page_green.png
Binary files differ
diff --git a/lib/rdoc/generator/template/darkfish/images/page_white_text.png b/lib/rdoc/generator/template/darkfish/images/page_white_text.png
new file mode 100644
index 0000000000..813f712f72
--- /dev/null
+++ b/lib/rdoc/generator/template/darkfish/images/page_white_text.png
Binary files differ
diff --git a/lib/rdoc/generator/template/darkfish/images/page_white_width.png b/lib/rdoc/generator/template/darkfish/images/page_white_width.png
new file mode 100644
index 0000000000..1eb880947d
--- /dev/null
+++ b/lib/rdoc/generator/template/darkfish/images/page_white_width.png
Binary files differ
diff --git a/lib/rdoc/generator/template/darkfish/images/plugin.png b/lib/rdoc/generator/template/darkfish/images/plugin.png
new file mode 100644
index 0000000000..6187b15aec
--- /dev/null
+++ b/lib/rdoc/generator/template/darkfish/images/plugin.png
Binary files differ
diff --git a/lib/rdoc/generator/template/darkfish/images/ruby.png b/lib/rdoc/generator/template/darkfish/images/ruby.png
new file mode 100644
index 0000000000..f763a16880
--- /dev/null
+++ b/lib/rdoc/generator/template/darkfish/images/ruby.png
Binary files differ
diff --git a/lib/rdoc/generator/template/darkfish/images/tag_green.png b/lib/rdoc/generator/template/darkfish/images/tag_green.png
new file mode 100644
index 0000000000..83ec984bd7
--- /dev/null
+++ b/lib/rdoc/generator/template/darkfish/images/tag_green.png
Binary files differ
diff --git a/lib/rdoc/generator/template/darkfish/images/wrench.png b/lib/rdoc/generator/template/darkfish/images/wrench.png
new file mode 100644
index 0000000000..5c8213fef5
--- /dev/null
+++ b/lib/rdoc/generator/template/darkfish/images/wrench.png
Binary files differ
diff --git a/lib/rdoc/generator/template/darkfish/images/wrench_orange.png b/lib/rdoc/generator/template/darkfish/images/wrench_orange.png
new file mode 100644
index 0000000000..565a9330e0
--- /dev/null
+++ b/lib/rdoc/generator/template/darkfish/images/wrench_orange.png
Binary files differ
diff --git a/lib/rdoc/generator/template/darkfish/images/zoom.png b/lib/rdoc/generator/template/darkfish/images/zoom.png
new file mode 100644
index 0000000000..908612e394
--- /dev/null
+++ b/lib/rdoc/generator/template/darkfish/images/zoom.png
Binary files differ
diff --git a/lib/rdoc/generator/template/darkfish/index.rhtml b/lib/rdoc/generator/template/darkfish/index.rhtml
new file mode 100644
index 0000000000..3198246f8a
--- /dev/null
+++ b/lib/rdoc/generator/template/darkfish/index.rhtml
@@ -0,0 +1,64 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.1//EN"
+ "http://www.w3.org/TR/xhtml11/DTD/xhtml11.dtd">
+
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en">
+<head>
+ <meta content="text/html; charset=<%= @options.charset %>" http-equiv="Content-Type" />
+
+ <title><%= h @options.title %></title>
+
+ <link type="text/css" media="screen" href="rdoc.css" rel="stylesheet" />
+
+ <script src="js/jquery.js" type="text/javascript" charset="utf-8"></script>
+ <script src="js/thickbox-compressed.js" type="text/javascript" charset="utf-8"></script>
+ <script src="js/quicksearch.js" type="text/javascript" charset="utf-8"></script>
+ <script src="js/darkfish.js" type="text/javascript" charset="utf-8"></script>
+
+</head>
+<body class="indexpage">
+
+ <% $stderr.sync = true %>
+ <h1><%= h @options.title %></h1>
+
+ <% if @options.main_page && main_page = @files.find { |f| f.full_name == @options.main_page } then %>
+ <div id="main">
+ <%= main_page.description.sub(%r{^\s*<h1.*?/h1>}i, '') %>
+ </div>
+ <% else %>
+ <p>This is the API documentation for '<%= @options.title %>'.</p>
+ <% end %>
+
+ <% simple_files = @files.select {|tl| tl.parser == RDoc::Parser::Simple } %>
+ <% unless simple_files.empty? then %>
+ <h2>Files</h2>
+ <ul>
+ <% simple_files.sort.each do |file| %>
+ <li class="file"><a href="<%= file.path %>"><%= h file.base_name %></a></li>
+ <% end %>
+ </ul>
+ <% end %>
+
+ <h2 id="classes">Classes/Modules</h2>
+ <ul>
+ <% @modsort.each do |klass| %>
+ <li class="<%= klass.type %>"><a href="<%= klass.path %>"><%= klass.full_name %></a></li>
+ <% end %>
+ </ul>
+
+ <h2 id="methods">Methods</h2>
+ <ul>
+ <% RDoc::TopLevel.all_classes_and_modules.map do |mod|
+ mod.method_list
+ end.flatten.sort.each do |method| %>
+ <li><a href="<%= method.path %>"><%= method.pretty_name %> &mdash; <%= method.parent.full_name %></a></li>
+ <% end %>
+ </ul>
+
+ <div id="validator-badges">
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
+ <p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
+ Rdoc Generator</a> <%= RDoc::Generator::Darkfish::VERSION %></small>.</p>
+ </div>
+</body>
+</html>
diff --git a/lib/rdoc/generator/template/darkfish/js/darkfish.js b/lib/rdoc/generator/template/darkfish/js/darkfish.js
new file mode 100644
index 0000000000..84565c1e2d
--- /dev/null
+++ b/lib/rdoc/generator/template/darkfish/js/darkfish.js
@@ -0,0 +1,116 @@
+/**
+ *
+ * Darkfish Page Functions
+ * $Id: darkfish.js 53 2009-01-07 02:52:03Z deveiant $
+ *
+ * Author: Michael Granger <mgranger@laika.com>
+ *
+ */
+
+/* Provide console simulation for firebug-less environments */
+if (!("console" in window) || !("firebug" in console)) {
+ var names = ["log", "debug", "info", "warn", "error", "assert", "dir", "dirxml",
+ "group", "groupEnd", "time", "timeEnd", "count", "trace", "profile", "profileEnd"];
+
+ window.console = {};
+ for (var i = 0; i < names.length; ++i)
+ window.console[names[i]] = function() {};
+};
+
+
+/**
+ * Unwrap the first element that matches the given @expr@ from the targets and return them.
+ */
+$.fn.unwrap = function( expr ) {
+ return this.each( function() {
+ $(this).parents( expr ).eq( 0 ).after( this ).remove();
+ });
+};
+
+
+function showSource( e ) {
+ var target = e.target;
+ var codeSections = $(target).
+ parents('.method-detail').
+ find('.method-source-code');
+
+ $(target).
+ parents('.method-detail').
+ find('.method-source-code').
+ slideToggle();
+};
+
+function hookSourceViews() {
+ $('.method-description,.method-heading').click( showSource );
+};
+
+function toggleDebuggingSection() {
+ $('.debugging-section').slideToggle();
+};
+
+function hookDebuggingToggle() {
+ $('#debugging-toggle img').click( toggleDebuggingSection );
+};
+
+function hookQuickSearch() {
+ $('.quicksearch-field').each( function() {
+ var searchElems = $(this).parents('.section').find( 'li' );
+ var toggle = $(this).parents('.section').find('h3 .search-toggle');
+ // console.debug( "Toggle is: %o", toggle );
+ var qsbox = $(this).parents('form').get( 0 );
+
+ $(this).quicksearch( this, searchElems, {
+ noSearchResultsIndicator: 'no-class-search-results',
+ focusOnLoad: false
+ });
+ $(toggle).click( function() {
+ // console.debug( "Toggling qsbox: %o", qsbox );
+ $(qsbox).toggle();
+ });
+ });
+};
+
+function highlightTarget( anchor ) {
+ console.debug( "Highlighting target '%s'.", anchor );
+
+ $("a[name=" + anchor + "]").each( function() {
+ if ( !$(this).parent().parent().hasClass('target-section') ) {
+ console.debug( "Wrapping the target-section" );
+ $('div.method-detail').unwrap( 'div.target-section' );
+ $(this).parent().wrap( '<div class="target-section"></div>' );
+ } else {
+ console.debug( "Already wrapped." );
+ }
+ });
+};
+
+function highlightLocationTarget() {
+ console.debug( "Location hash: %s", window.location.hash );
+ if ( ! window.location.hash || window.location.hash.length == 0 ) return;
+
+ var anchor = window.location.hash.substring(1);
+ console.debug( "Found anchor: %s; matching %s", anchor, "a[name=" + anchor + "]" );
+
+ highlightTarget( anchor );
+};
+
+function highlightClickTarget( event ) {
+ console.debug( "Highlighting click target for event %o", event.target );
+ try {
+ var anchor = $(event.target).attr( 'href' ).substring(1);
+ console.debug( "Found target anchor: %s", anchor );
+ highlightTarget( anchor );
+ } catch ( err ) {
+ console.error( "Exception while highlighting: %o", err );
+ };
+};
+
+
+$(document).ready( function() {
+ hookSourceViews();
+ hookDebuggingToggle();
+ hookQuickSearch();
+ highlightLocationTarget();
+
+ $('ul.link-list a').bind( "click", highlightClickTarget );
+});
diff --git a/lib/rdoc/generator/template/darkfish/js/jquery.js b/lib/rdoc/generator/template/darkfish/js/jquery.js
new file mode 100644
index 0000000000..afe9e74c90
--- /dev/null
+++ b/lib/rdoc/generator/template/darkfish/js/jquery.js
@@ -0,0 +1,32 @@
+/*
+ * jQuery 1.2.6 - New Wave Javascript
+ *
+ * Copyright (c) 2008 John Resig (jquery.com)
+ * Dual licensed under the MIT (MIT-LICENSE.txt)
+ * and GPL (GPL-LICENSE.txt) licenses.
+ *
+ * $Date: 2008-09-25 09:50:52 -0700 (Thu, 25 Sep 2008) $
+ * $Rev: 38 $
+ */
+(function(){var _jQuery=window.jQuery,_$=window.$;var jQuery=window.jQuery=window.$=function(selector,context){return new jQuery.fn.init(selector,context);};var quickExpr=/^[^<]*(<(.|\s)+>)[^>]*$|^#(\w+)$/,isSimple=/^.[^:#\[\.]*$/,undefined;jQuery.fn=jQuery.prototype={init:function(selector,context){selector=selector||document;if(selector.nodeType){this[0]=selector;this.length=1;return this;}if(typeof selector=="string"){var match=quickExpr.exec(selector);if(match&&(match[1]||!context)){if(match[1])selector=jQuery.clean([match[1]],context);else{var elem=document.getElementById(match[3]);if(elem){if(elem.id!=match[3])return jQuery().find(selector);return jQuery(elem);}selector=[];}}else
+return jQuery(context).find(selector);}else if(jQuery.isFunction(selector))return jQuery(document)[jQuery.fn.ready?"ready":"load"](selector);return this.setArray(jQuery.makeArray(selector));},jquery:"1.2.6",size:function(){return this.length;},length:0,get:function(num){return num==undefined?jQuery.makeArray(this):this[num];},pushStack:function(elems){var ret=jQuery(elems);ret.prevObject=this;return ret;},setArray:function(elems){this.length=0;Array.prototype.push.apply(this,elems);return this;},each:function(callback,args){return jQuery.each(this,callback,args);},index:function(elem){var ret=-1;return jQuery.inArray(elem&&elem.jquery?elem[0]:elem,this);},attr:function(name,value,type){var options=name;if(name.constructor==String)if(value===undefined)return this[0]&&jQuery[type||"attr"](this[0],name);else{options={};options[name]=value;}return this.each(function(i){for(name in options)jQuery.attr(type?this.style:this,name,jQuery.prop(this,options[name],type,i,name));});},css:function(key,value){if((key=='width'||key=='height')&&parseFloat(value)<0)value=undefined;return this.attr(key,value,"curCSS");},text:function(text){if(typeof text!="object"&&text!=null)return this.empty().append((this[0]&&this[0].ownerDocument||document).createTextNode(text));var ret="";jQuery.each(text||this,function(){jQuery.each(this.childNodes,function(){if(this.nodeType!=8)ret+=this.nodeType!=1?this.nodeValue:jQuery.fn.text([this]);});});return ret;},wrapAll:function(html){if(this[0])jQuery(html,this[0].ownerDocument).clone().insertBefore(this[0]).map(function(){var elem=this;while(elem.firstChild)elem=elem.firstChild;return elem;}).append(this);return this;},wrapInner:function(html){return this.each(function(){jQuery(this).contents().wrapAll(html);});},wrap:function(html){return this.each(function(){jQuery(this).wrapAll(html);});},append:function(){return this.domManip(arguments,true,false,function(elem){if(this.nodeType==1)this.appendChild(elem);});},prepend:function(){return this.domManip(arguments,true,true,function(elem){if(this.nodeType==1)this.insertBefore(elem,this.firstChild);});},before:function(){return this.domManip(arguments,false,false,function(elem){this.parentNode.insertBefore(elem,this);});},after:function(){return this.domManip(arguments,false,true,function(elem){this.parentNode.insertBefore(elem,this.nextSibling);});},end:function(){return this.prevObject||jQuery([]);},find:function(selector){var elems=jQuery.map(this,function(elem){return jQuery.find(selector,elem);});return this.pushStack(/[^+>] [^+>]/.test(selector)||selector.indexOf("..")>-1?jQuery.unique(elems):elems);},clone:function(events){var ret=this.map(function(){if(jQuery.browser.msie&&!jQuery.isXMLDoc(this)){var clone=this.cloneNode(true),container=document.createElement("div");container.appendChild(clone);return jQuery.clean([container.innerHTML])[0];}else
+return this.cloneNode(true);});var clone=ret.find("*").andSelf().each(function(){if(this[expando]!=undefined)this[expando]=null;});if(events===true)this.find("*").andSelf().each(function(i){if(this.nodeType==3)return;var events=jQuery.data(this,"events");for(var type in events)for(var handler in events[type])jQuery.event.add(clone[i],type,events[type][handler],events[type][handler].data);});return ret;},filter:function(selector){return this.pushStack(jQuery.isFunction(selector)&&jQuery.grep(this,function(elem,i){return selector.call(elem,i);})||jQuery.multiFilter(selector,this));},not:function(selector){if(selector.constructor==String)if(isSimple.test(selector))return this.pushStack(jQuery.multiFilter(selector,this,true));else
+selector=jQuery.multiFilter(selector,this);var isArrayLike=selector.length&&selector[selector.length-1]!==undefined&&!selector.nodeType;return this.filter(function(){return isArrayLike?jQuery.inArray(this,selector)<0:this!=selector;});},add:function(selector){return this.pushStack(jQuery.unique(jQuery.merge(this.get(),typeof selector=='string'?jQuery(selector):jQuery.makeArray(selector))));},is:function(selector){return!!selector&&jQuery.multiFilter(selector,this).length>0;},hasClass:function(selector){return this.is("."+selector);},val:function(value){if(value==undefined){if(this.length){var elem=this[0];if(jQuery.nodeName(elem,"select")){var index=elem.selectedIndex,values=[],options=elem.options,one=elem.type=="select-one";if(index<0)return null;for(var i=one?index:0,max=one?index+1:options.length;i<max;i++){var option=options[i];if(option.selected){value=jQuery.browser.msie&&!option.attributes.value.specified?option.text:option.value;if(one)return value;values.push(value);}}return values;}else
+return(this[0].value||"").replace(/\r/g,"");}return undefined;}if(value.constructor==Number)value+='';return this.each(function(){if(this.nodeType!=1)return;if(value.constructor==Array&&/radio|checkbox/.test(this.type))this.checked=(jQuery.inArray(this.value,value)>=0||jQuery.inArray(this.name,value)>=0);else if(jQuery.nodeName(this,"select")){var values=jQuery.makeArray(value);jQuery("option",this).each(function(){this.selected=(jQuery.inArray(this.value,values)>=0||jQuery.inArray(this.text,values)>=0);});if(!values.length)this.selectedIndex=-1;}else
+this.value=value;});},html:function(value){return value==undefined?(this[0]?this[0].innerHTML:null):this.empty().append(value);},replaceWith:function(value){return this.after(value).remove();},eq:function(i){return this.slice(i,i+1);},slice:function(){return this.pushStack(Array.prototype.slice.apply(this,arguments));},map:function(callback){return this.pushStack(jQuery.map(this,function(elem,i){return callback.call(elem,i,elem);}));},andSelf:function(){return this.add(this.prevObject);},data:function(key,value){var parts=key.split(".");parts[1]=parts[1]?"."+parts[1]:"";if(value===undefined){var data=this.triggerHandler("getData"+parts[1]+"!",[parts[0]]);if(data===undefined&&this.length)data=jQuery.data(this[0],key);return data===undefined&&parts[1]?this.data(parts[0]):data;}else
+return this.trigger("setData"+parts[1]+"!",[parts[0],value]).each(function(){jQuery.data(this,key,value);});},removeData:function(key){return this.each(function(){jQuery.removeData(this,key);});},domManip:function(args,table,reverse,callback){var clone=this.length>1,elems;return this.each(function(){if(!elems){elems=jQuery.clean(args,this.ownerDocument);if(reverse)elems.reverse();}var obj=this;if(table&&jQuery.nodeName(this,"table")&&jQuery.nodeName(elems[0],"tr"))obj=this.getElementsByTagName("tbody")[0]||this.appendChild(this.ownerDocument.createElement("tbody"));var scripts=jQuery([]);jQuery.each(elems,function(){var elem=clone?jQuery(this).clone(true)[0]:this;if(jQuery.nodeName(elem,"script"))scripts=scripts.add(elem);else{if(elem.nodeType==1)scripts=scripts.add(jQuery("script",elem).remove());callback.call(obj,elem);}});scripts.each(evalScript);});}};jQuery.fn.init.prototype=jQuery.fn;function evalScript(i,elem){if(elem.src)jQuery.ajax({url:elem.src,async:false,dataType:"script"});else
+jQuery.globalEval(elem.text||elem.textContent||elem.innerHTML||"");if(elem.parentNode)elem.parentNode.removeChild(elem);}function now(){return+new Date;}jQuery.extend=jQuery.fn.extend=function(){var target=arguments[0]||{},i=1,length=arguments.length,deep=false,options;if(target.constructor==Boolean){deep=target;target=arguments[1]||{};i=2;}if(typeof target!="object"&&typeof target!="function")target={};if(length==i){target=this;--i;}for(;i<length;i++)if((options=arguments[i])!=null)for(var name in options){var src=target[name],copy=options[name];if(target===copy)continue;if(deep&&copy&&typeof copy=="object"&&!copy.nodeType)target[name]=jQuery.extend(deep,src||(copy.length!=null?[]:{}),copy);else if(copy!==undefined)target[name]=copy;}return target;};var expando="jQuery"+now(),uuid=0,windowData={},exclude=/z-?index|font-?weight|opacity|zoom|line-?height/i,defaultView=document.defaultView||{};jQuery.extend({noConflict:function(deep){window.$=_$;if(deep)window.jQuery=_jQuery;return jQuery;},isFunction:function(fn){return!!fn&&typeof fn!="string"&&!fn.nodeName&&fn.constructor!=Array&&/^[\s[]?function/.test(fn+"");},isXMLDoc:function(elem){return elem.documentElement&&!elem.body||elem.tagName&&elem.ownerDocument&&!elem.ownerDocument.body;},globalEval:function(data){data=jQuery.trim(data);if(data){var head=document.getElementsByTagName("head")[0]||document.documentElement,script=document.createElement("script");script.type="text/javascript";if(jQuery.browser.msie)script.text=data;else
+script.appendChild(document.createTextNode(data));head.insertBefore(script,head.firstChild);head.removeChild(script);}},nodeName:function(elem,name){return elem.nodeName&&elem.nodeName.toUpperCase()==name.toUpperCase();},cache:{},data:function(elem,name,data){elem=elem==window?windowData:elem;var id=elem[expando];if(!id)id=elem[expando]=++uuid;if(name&&!jQuery.cache[id])jQuery.cache[id]={};if(data!==undefined)jQuery.cache[id][name]=data;return name?jQuery.cache[id][name]:id;},removeData:function(elem,name){elem=elem==window?windowData:elem;var id=elem[expando];if(name){if(jQuery.cache[id]){delete jQuery.cache[id][name];name="";for(name in jQuery.cache[id])break;if(!name)jQuery.removeData(elem);}}else{try{delete elem[expando];}catch(e){if(elem.removeAttribute)elem.removeAttribute(expando);}delete jQuery.cache[id];}},each:function(object,callback,args){var name,i=0,length=object.length;if(args){if(length==undefined){for(name in object)if(callback.apply(object[name],args)===false)break;}else
+for(;i<length;)if(callback.apply(object[i++],args)===false)break;}else{if(length==undefined){for(name in object)if(callback.call(object[name],name,object[name])===false)break;}else
+for(var value=object[0];i<length&&callback.call(value,i,value)!==false;value=object[++i]){}}return object;},prop:function(elem,value,type,i,name){if(jQuery.isFunction(value))value=value.call(elem,i);return value&&value.constructor==Number&&type=="curCSS"&&!exclude.test(name)?value+"px":value;},className:{add:function(elem,classNames){jQuery.each((classNames||"").split(/\s+/),function(i,className){if(elem.nodeType==1&&!jQuery.className.has(elem.className,className))elem.className+=(elem.className?" ":"")+className;});},remove:function(elem,classNames){if(elem.nodeType==1)elem.className=classNames!=undefined?jQuery.grep(elem.className.split(/\s+/),function(className){return!jQuery.className.has(classNames,className);}).join(" "):"";},has:function(elem,className){return jQuery.inArray(className,(elem.className||elem).toString().split(/\s+/))>-1;}},swap:function(elem,options,callback){var old={};for(var name in options){old[name]=elem.style[name];elem.style[name]=options[name];}callback.call(elem);for(var name in options)elem.style[name]=old[name];},css:function(elem,name,force){if(name=="width"||name=="height"){var val,props={position:"absolute",visibility:"hidden",display:"block"},which=name=="width"?["Left","Right"]:["Top","Bottom"];function getWH(){val=name=="width"?elem.offsetWidth:elem.offsetHeight;var padding=0,border=0;jQuery.each(which,function(){padding+=parseFloat(jQuery.curCSS(elem,"padding"+this,true))||0;border+=parseFloat(jQuery.curCSS(elem,"border"+this+"Width",true))||0;});val-=Math.round(padding+border);}if(jQuery(elem).is(":visible"))getWH();else
+jQuery.swap(elem,props,getWH);return Math.max(0,val);}return jQuery.curCSS(elem,name,force);},curCSS:function(elem,name,force){var ret,style=elem.style;function color(elem){if(!jQuery.browser.safari)return false;var ret=defaultView.getComputedStyle(elem,null);return!ret||ret.getPropertyValue("color")=="";}if(name=="opacity"&&jQuery.browser.msie){ret=jQuery.attr(style,"opacity");return ret==""?"1":ret;}if(jQuery.browser.opera&&name=="display"){var save=style.outline;style.outline="0 solid black";style.outline=save;}if(name.match(/float/i))name=styleFloat;if(!force&&style&&style[name])ret=style[name];else if(defaultView.getComputedStyle){if(name.match(/float/i))name="float";name=name.replace(/([A-Z])/g,"-$1").toLowerCase();var computedStyle=defaultView.getComputedStyle(elem,null);if(computedStyle&&!color(elem))ret=computedStyle.getPropertyValue(name);else{var swap=[],stack=[],a=elem,i=0;for(;a&&color(a);a=a.parentNode)stack.unshift(a);for(;i<stack.length;i++)if(color(stack[i])){swap[i]=stack[i].style.display;stack[i].style.display="block";}ret=name=="display"&&swap[stack.length-1]!=null?"none":(computedStyle&&computedStyle.getPropertyValue(name))||"";for(i=0;i<swap.length;i++)if(swap[i]!=null)stack[i].style.display=swap[i];}if(name=="opacity"&&ret=="")ret="1";}else if(elem.currentStyle){var camelCase=name.replace(/\-(\w)/g,function(all,letter){return letter.toUpperCase();});ret=elem.currentStyle[name]||elem.currentStyle[camelCase];if(!/^\d+(px)?$/i.test(ret)&&/^\d/.test(ret)){var left=style.left,rsLeft=elem.runtimeStyle.left;elem.runtimeStyle.left=elem.currentStyle.left;style.left=ret||0;ret=style.pixelLeft+"px";style.left=left;elem.runtimeStyle.left=rsLeft;}}return ret;},clean:function(elems,context){var ret=[];context=context||document;if(typeof context.createElement=='undefined')context=context.ownerDocument||context[0]&&context[0].ownerDocument||document;jQuery.each(elems,function(i,elem){if(!elem)return;if(elem.constructor==Number)elem+='';if(typeof elem=="string"){elem=elem.replace(/(<(\w+)[^>]*?)\/>/g,function(all,front,tag){return tag.match(/^(abbr|br|col|img|input|link|meta|param|hr|area|embed)$/i)?all:front+"></"+tag+">";});var tags=jQuery.trim(elem).toLowerCase(),div=context.createElement("div");var wrap=!tags.indexOf("<opt")&&[1,"<select multiple='multiple'>","</select>"]||!tags.indexOf("<leg")&&[1,"<fieldset>","</fieldset>"]||tags.match(/^<(thead|tbody|tfoot|colg|cap)/)&&[1,"<table>","</table>"]||!tags.indexOf("<tr")&&[2,"<table><tbody>","</tbody></table>"]||(!tags.indexOf("<td")||!tags.indexOf("<th"))&&[3,"<table><tbody><tr>","</tr></tbody></table>"]||!tags.indexOf("<col")&&[2,"<table><tbody></tbody><colgroup>","</colgroup></table>"]||jQuery.browser.msie&&[1,"div<div>","</div>"]||[0,"",""];div.innerHTML=wrap[1]+elem+wrap[2];while(wrap[0]--)div=div.lastChild;if(jQuery.browser.msie){var tbody=!tags.indexOf("<table")&&tags.indexOf("<tbody")<0?div.firstChild&&div.firstChild.childNodes:wrap[1]=="<table>"&&tags.indexOf("<tbody")<0?div.childNodes:[];for(var j=tbody.length-1;j>=0;--j)if(jQuery.nodeName(tbody[j],"tbody")&&!tbody[j].childNodes.length)tbody[j].parentNode.removeChild(tbody[j]);if(/^\s/.test(elem))div.insertBefore(context.createTextNode(elem.match(/^\s*/)[0]),div.firstChild);}elem=jQuery.makeArray(div.childNodes);}if(elem.length===0&&(!jQuery.nodeName(elem,"form")&&!jQuery.nodeName(elem,"select")))return;if(elem[0]==undefined||jQuery.nodeName(elem,"form")||elem.options)ret.push(elem);else
+ret=jQuery.merge(ret,elem);});return ret;},attr:function(elem,name,value){if(!elem||elem.nodeType==3||elem.nodeType==8)return undefined;var notxml=!jQuery.isXMLDoc(elem),set=value!==undefined,msie=jQuery.browser.msie;name=notxml&&jQuery.props[name]||name;if(elem.tagName){var special=/href|src|style/.test(name);if(name=="selected"&&jQuery.browser.safari)elem.parentNode.selectedIndex;if(name in elem&&notxml&&!special){if(set){if(name=="type"&&jQuery.nodeName(elem,"input")&&elem.parentNode)throw"type property can't be changed";elem[name]=value;}if(jQuery.nodeName(elem,"form")&&elem.getAttributeNode(name))return elem.getAttributeNode(name).nodeValue;return elem[name];}if(msie&&notxml&&name=="style")return jQuery.attr(elem.style,"cssText",value);if(set)elem.setAttribute(name,""+value);var attr=msie&&notxml&&special?elem.getAttribute(name,2):elem.getAttribute(name);return attr===null?undefined:attr;}if(msie&&name=="opacity"){if(set){elem.zoom=1;elem.filter=(elem.filter||"").replace(/alpha\([^)]*\)/,"")+(parseInt(value)+''=="NaN"?"":"alpha(opacity="+value*100+")");}return elem.filter&&elem.filter.indexOf("opacity=")>=0?(parseFloat(elem.filter.match(/opacity=([^)]*)/)[1])/100)+'':"";}name=name.replace(/-([a-z])/ig,function(all,letter){return letter.toUpperCase();});if(set)elem[name]=value;return elem[name];},trim:function(text){return(text||"").replace(/^\s+|\s+$/g,"");},makeArray:function(array){var ret=[];if(array!=null){var i=array.length;if(i==null||array.split||array.setInterval||array.call)ret[0]=array;else
+while(i)ret[--i]=array[i];}return ret;},inArray:function(elem,array){for(var i=0,length=array.length;i<length;i++)if(array[i]===elem)return i;return-1;},merge:function(first,second){var i=0,elem,pos=first.length;if(jQuery.browser.msie){while(elem=second[i++])if(elem.nodeType!=8)first[pos++]=elem;}else
+while(elem=second[i++])first[pos++]=elem;return first;},unique:function(array){var ret=[],done={};try{for(var i=0,length=array.length;i<length;i++){var id=jQuery.data(array[i]);if(!done[id]){done[id]=true;ret.push(array[i]);}}}catch(e){ret=array;}return ret;},grep:function(elems,callback,inv){var ret=[];for(var i=0,length=elems.length;i<length;i++)if(!inv!=!callback(elems[i],i))ret.push(elems[i]);return ret;},map:function(elems,callback){var ret=[];for(var i=0,length=elems.length;i<length;i++){var value=callback(elems[i],i);if(value!=null)ret[ret.length]=value;}return ret.concat.apply([],ret);}});var userAgent=navigator.userAgent.toLowerCase();jQuery.browser={version:(userAgent.match(/.+(?:rv|it|ra|ie)[\/: ]([\d.]+)/)||[])[1],safari:/webkit/.test(userAgent),opera:/opera/.test(userAgent),msie:/msie/.test(userAgent)&&!/opera/.test(userAgent),mozilla:/mozilla/.test(userAgent)&&!/(compatible|webkit)/.test(userAgent)};var styleFloat=jQuery.browser.msie?"styleFloat":"cssFloat";jQuery.extend({boxModel:!jQuery.browser.msie||document.compatMode=="CSS1Compat",props:{"for":"htmlFor","class":"className","float":styleFloat,cssFloat:styleFloat,styleFloat:styleFloat,readonly:"readOnly",maxlength:"maxLength",cellspacing:"cellSpacing"}});jQuery.each({parent:function(elem){return elem.parentNode;},parents:function(elem){return jQuery.dir(elem,"parentNode");},next:function(elem){return jQuery.nth(elem,2,"nextSibling");},prev:function(elem){return jQuery.nth(elem,2,"previousSibling");},nextAll:function(elem){return jQuery.dir(elem,"nextSibling");},prevAll:function(elem){return jQuery.dir(elem,"previousSibling");},siblings:function(elem){return jQuery.sibling(elem.parentNode.firstChild,elem);},children:function(elem){return jQuery.sibling(elem.firstChild);},contents:function(elem){return jQuery.nodeName(elem,"iframe")?elem.contentDocument||elem.contentWindow.document:jQuery.makeArray(elem.childNodes);}},function(name,fn){jQuery.fn[name]=function(selector){var ret=jQuery.map(this,fn);if(selector&&typeof selector=="string")ret=jQuery.multiFilter(selector,ret);return this.pushStack(jQuery.unique(ret));};});jQuery.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},function(name,original){jQuery.fn[name]=function(){var args=arguments;return this.each(function(){for(var i=0,length=args.length;i<length;i++)jQuery(args[i])[original](this);});};});jQuery.each({removeAttr:function(name){jQuery.attr(this,name,"");if(this.nodeType==1)this.removeAttribute(name);},addClass:function(classNames){jQuery.className.add(this,classNames);},removeClass:function(classNames){jQuery.className.remove(this,classNames);},toggleClass:function(classNames){jQuery.className[jQuery.className.has(this,classNames)?"remove":"add"](this,classNames);},remove:function(selector){if(!selector||jQuery.filter(selector,[this]).r.length){jQuery("*",this).add(this).each(function(){jQuery.event.remove(this);jQuery.removeData(this);});if(this.parentNode)this.parentNode.removeChild(this);}},empty:function(){jQuery(">*",this).remove();while(this.firstChild)this.removeChild(this.firstChild);}},function(name,fn){jQuery.fn[name]=function(){return this.each(fn,arguments);};});jQuery.each(["Height","Width"],function(i,name){var type=name.toLowerCase();jQuery.fn[type]=function(size){return this[0]==window?jQuery.browser.opera&&document.body["client"+name]||jQuery.browser.safari&&window["inner"+name]||document.compatMode=="CSS1Compat"&&document.documentElement["client"+name]||document.body["client"+name]:this[0]==document?Math.max(Math.max(document.body["scroll"+name],document.documentElement["scroll"+name]),Math.max(document.body["offset"+name],document.documentElement["offset"+name])):size==undefined?(this.length?jQuery.css(this[0],type):null):this.css(type,size.constructor==String?size:size+"px");};});function num(elem,prop){return elem[0]&&parseInt(jQuery.curCSS(elem[0],prop,true),10)||0;}var chars=jQuery.browser.safari&&parseInt(jQuery.browser.version)<417?"(?:[\\w*_-]|\\\\.)":"(?:[\\w\u0128-\uFFFF*_-]|\\\\.)",quickChild=new RegExp("^>\\s*("+chars+"+)"),quickID=new RegExp("^("+chars+"+)(#)("+chars+"+)"),quickClass=new RegExp("^([#.]?)("+chars+"*)");jQuery.extend({expr:{"":function(a,i,m){return m[2]=="*"||jQuery.nodeName(a,m[2]);},"#":function(a,i,m){return a.getAttribute("id")==m[2];},":":{lt:function(a,i,m){return i<m[3]-0;},gt:function(a,i,m){return i>m[3]-0;},nth:function(a,i,m){return m[3]-0==i;},eq:function(a,i,m){return m[3]-0==i;},first:function(a,i){return i==0;},last:function(a,i,m,r){return i==r.length-1;},even:function(a,i){return i%2==0;},odd:function(a,i){return i%2;},"first-child":function(a){return a.parentNode.getElementsByTagName("*")[0]==a;},"last-child":function(a){return jQuery.nth(a.parentNode.lastChild,1,"previousSibling")==a;},"only-child":function(a){return!jQuery.nth(a.parentNode.lastChild,2,"previousSibling");},parent:function(a){return a.firstChild;},empty:function(a){return!a.firstChild;},contains:function(a,i,m){return(a.textContent||a.innerText||jQuery(a).text()||"").indexOf(m[3])>=0;},visible:function(a){return"hidden"!=a.type&&jQuery.css(a,"display")!="none"&&jQuery.css(a,"visibility")!="hidden";},hidden:function(a){return"hidden"==a.type||jQuery.css(a,"display")=="none"||jQuery.css(a,"visibility")=="hidden";},enabled:function(a){return!a.disabled;},disabled:function(a){return a.disabled;},checked:function(a){return a.checked;},selected:function(a){return a.selected||jQuery.attr(a,"selected");},text:function(a){return"text"==a.type;},radio:function(a){return"radio"==a.type;},checkbox:function(a){return"checkbox"==a.type;},file:function(a){return"file"==a.type;},password:function(a){return"password"==a.type;},submit:function(a){return"submit"==a.type;},image:function(a){return"image"==a.type;},reset:function(a){return"reset"==a.type;},button:function(a){return"button"==a.type||jQuery.nodeName(a,"button");},input:function(a){return/input|select|textarea|button/i.test(a.nodeName);},has:function(a,i,m){return jQuery.find(m[3],a).length;},header:function(a){return/h\d/i.test(a.nodeName);},animated:function(a){return jQuery.grep(jQuery.timers,function(fn){return a==fn.elem;}).length;}}},parse:[/^(\[) *@?([\w-]+) *([!*$^~=]*) *('?"?)(.*?)\4 *\]/,/^(:)([\w-]+)\("?'?(.*?(\(.*?\))?[^(]*?)"?'?\)/,new RegExp("^([:.#]*)("+chars+"+)")],multiFilter:function(expr,elems,not){var old,cur=[];while(expr&&expr!=old){old=expr;var f=jQuery.filter(expr,elems,not);expr=f.t.replace(/^\s*,\s*/,"");cur=not?elems=f.r:jQuery.merge(cur,f.r);}return cur;},find:function(t,context){if(typeof t!="string")return[t];if(context&&context.nodeType!=1&&context.nodeType!=9)return[];context=context||document;var ret=[context],done=[],last,nodeName;while(t&&last!=t){var r=[];last=t;t=jQuery.trim(t);var foundToken=false,re=quickChild,m=re.exec(t);if(m){nodeName=m[1].toUpperCase();for(var i=0;ret[i];i++)for(var c=ret[i].firstChild;c;c=c.nextSibling)if(c.nodeType==1&&(nodeName=="*"||c.nodeName.toUpperCase()==nodeName))r.push(c);ret=r;t=t.replace(re,"");if(t.indexOf(" ")==0)continue;foundToken=true;}else{re=/^([>+~])\s*(\w*)/i;if((m=re.exec(t))!=null){r=[];var merge={};nodeName=m[2].toUpperCase();m=m[1];for(var j=0,rl=ret.length;j<rl;j++){var n=m=="~"||m=="+"?ret[j].nextSibling:ret[j].firstChild;for(;n;n=n.nextSibling)if(n.nodeType==1){var id=jQuery.data(n);if(m=="~"&&merge[id])break;if(!nodeName||n.nodeName.toUpperCase()==nodeName){if(m=="~")merge[id]=true;r.push(n);}if(m=="+")break;}}ret=r;t=jQuery.trim(t.replace(re,""));foundToken=true;}}if(t&&!foundToken){if(!t.indexOf(",")){if(context==ret[0])ret.shift();done=jQuery.merge(done,ret);r=ret=[context];t=" "+t.substr(1,t.length);}else{var re2=quickID;var m=re2.exec(t);if(m){m=[0,m[2],m[3],m[1]];}else{re2=quickClass;m=re2.exec(t);}m[2]=m[2].replace(/\\/g,"");var elem=ret[ret.length-1];if(m[1]=="#"&&elem&&elem.getElementById&&!jQuery.isXMLDoc(elem)){var oid=elem.getElementById(m[2]);if((jQuery.browser.msie||jQuery.browser.opera)&&oid&&typeof oid.id=="string"&&oid.id!=m[2])oid=jQuery('[@id="'+m[2]+'"]',elem)[0];ret=r=oid&&(!m[3]||jQuery.nodeName(oid,m[3]))?[oid]:[];}else{for(var i=0;ret[i];i++){var tag=m[1]=="#"&&m[3]?m[3]:m[1]!=""||m[0]==""?"*":m[2];if(tag=="*"&&ret[i].nodeName.toLowerCase()=="object")tag="param";r=jQuery.merge(r,ret[i].getElementsByTagName(tag));}if(m[1]==".")r=jQuery.classFilter(r,m[2]);if(m[1]=="#"){var tmp=[];for(var i=0;r[i];i++)if(r[i].getAttribute("id")==m[2]){tmp=[r[i]];break;}r=tmp;}ret=r;}t=t.replace(re2,"");}}if(t){var val=jQuery.filter(t,r);ret=r=val.r;t=jQuery.trim(val.t);}}if(t)ret=[];if(ret&&context==ret[0])ret.shift();done=jQuery.merge(done,ret);return done;},classFilter:function(r,m,not){m=" "+m+" ";var tmp=[];for(var i=0;r[i];i++){var pass=(" "+r[i].className+" ").indexOf(m)>=0;if(!not&&pass||not&&!pass)tmp.push(r[i]);}return tmp;},filter:function(t,r,not){var last;while(t&&t!=last){last=t;var p=jQuery.parse,m;for(var i=0;p[i];i++){m=p[i].exec(t);if(m){t=t.substring(m[0].length);m[2]=m[2].replace(/\\/g,"");break;}}if(!m)break;if(m[1]==":"&&m[2]=="not")r=isSimple.test(m[3])?jQuery.filter(m[3],r,true).r:jQuery(r).not(m[3]);else if(m[1]==".")r=jQuery.classFilter(r,m[2],not);else if(m[1]=="["){var tmp=[],type=m[3];for(var i=0,rl=r.length;i<rl;i++){var a=r[i],z=a[jQuery.props[m[2]]||m[2]];if(z==null||/href|src|selected/.test(m[2]))z=jQuery.attr(a,m[2])||'';if((type==""&&!!z||type=="="&&z==m[5]||type=="!="&&z!=m[5]||type=="^="&&z&&!z.indexOf(m[5])||type=="$="&&z.substr(z.length-m[5].length)==m[5]||(type=="*="||type=="~=")&&z.indexOf(m[5])>=0)^not)tmp.push(a);}r=tmp;}else if(m[1]==":"&&m[2]=="nth-child"){var merge={},tmp=[],test=/(-?)(\d*)n((?:\+|-)?\d*)/.exec(m[3]=="even"&&"2n"||m[3]=="odd"&&"2n+1"||!/\D/.test(m[3])&&"0n+"+m[3]||m[3]),first=(test[1]+(test[2]||1))-0,last=test[3]-0;for(var i=0,rl=r.length;i<rl;i++){var node=r[i],parentNode=node.parentNode,id=jQuery.data(parentNode);if(!merge[id]){var c=1;for(var n=parentNode.firstChild;n;n=n.nextSibling)if(n.nodeType==1)n.nodeIndex=c++;merge[id]=true;}var add=false;if(first==0){if(node.nodeIndex==last)add=true;}else if((node.nodeIndex-last)%first==0&&(node.nodeIndex-last)/first>=0)add=true;if(add^not)tmp.push(node);}r=tmp;}else{var fn=jQuery.expr[m[1]];if(typeof fn=="object")fn=fn[m[2]];if(typeof fn=="string")fn=eval("false||function(a,i){return "+fn+";}");r=jQuery.grep(r,function(elem,i){return fn(elem,i,m,r);},not);}}return{r:r,t:t};},dir:function(elem,dir){var matched=[],cur=elem[dir];while(cur&&cur!=document){if(cur.nodeType==1)matched.push(cur);cur=cur[dir];}return matched;},nth:function(cur,result,dir,elem){result=result||1;var num=0;for(;cur;cur=cur[dir])if(cur.nodeType==1&&++num==result)break;return cur;},sibling:function(n,elem){var r=[];for(;n;n=n.nextSibling){if(n.nodeType==1&&n!=elem)r.push(n);}return r;}});jQuery.event={add:function(elem,types,handler,data){if(elem.nodeType==3||elem.nodeType==8)return;if(jQuery.browser.msie&&elem.setInterval)elem=window;if(!handler.guid)handler.guid=this.guid++;if(data!=undefined){var fn=handler;handler=this.proxy(fn,function(){return fn.apply(this,arguments);});handler.data=data;}var events=jQuery.data(elem,"events")||jQuery.data(elem,"events",{}),handle=jQuery.data(elem,"handle")||jQuery.data(elem,"handle",function(){if(typeof jQuery!="undefined"&&!jQuery.event.triggered)return jQuery.event.handle.apply(arguments.callee.elem,arguments);});handle.elem=elem;jQuery.each(types.split(/\s+/),function(index,type){var parts=type.split(".");type=parts[0];handler.type=parts[1];var handlers=events[type];if(!handlers){handlers=events[type]={};if(!jQuery.event.special[type]||jQuery.event.special[type].setup.call(elem)===false){if(elem.addEventListener)elem.addEventListener(type,handle,false);else if(elem.attachEvent)elem.attachEvent("on"+type,handle);}}handlers[handler.guid]=handler;jQuery.event.global[type]=true;});elem=null;},guid:1,global:{},remove:function(elem,types,handler){if(elem.nodeType==3||elem.nodeType==8)return;var events=jQuery.data(elem,"events"),ret,index;if(events){if(types==undefined||(typeof types=="string"&&types.charAt(0)=="."))for(var type in events)this.remove(elem,type+(types||""));else{if(types.type){handler=types.handler;types=types.type;}jQuery.each(types.split(/\s+/),function(index,type){var parts=type.split(".");type=parts[0];if(events[type]){if(handler)delete events[type][handler.guid];else
+for(handler in events[type])if(!parts[1]||events[type][handler].type==parts[1])delete events[type][handler];for(ret in events[type])break;if(!ret){if(!jQuery.event.special[type]||jQuery.event.special[type].teardown.call(elem)===false){if(elem.removeEventListener)elem.removeEventListener(type,jQuery.data(elem,"handle"),false);else if(elem.detachEvent)elem.detachEvent("on"+type,jQuery.data(elem,"handle"));}ret=null;delete events[type];}}});}for(ret in events)break;if(!ret){var handle=jQuery.data(elem,"handle");if(handle)handle.elem=null;jQuery.removeData(elem,"events");jQuery.removeData(elem,"handle");}}},trigger:function(type,data,elem,donative,extra){data=jQuery.makeArray(data);if(type.indexOf("!")>=0){type=type.slice(0,-1);var exclusive=true;}if(!elem){if(this.global[type])jQuery("*").add([window,document]).trigger(type,data);}else{if(elem.nodeType==3||elem.nodeType==8)return undefined;var val,ret,fn=jQuery.isFunction(elem[type]||null),event=!data[0]||!data[0].preventDefault;if(event){data.unshift({type:type,target:elem,preventDefault:function(){},stopPropagation:function(){},timeStamp:now()});data[0][expando]=true;}data[0].type=type;if(exclusive)data[0].exclusive=true;var handle=jQuery.data(elem,"handle");if(handle)val=handle.apply(elem,data);if((!fn||(jQuery.nodeName(elem,'a')&&type=="click"))&&elem["on"+type]&&elem["on"+type].apply(elem,data)===false)val=false;if(event)data.shift();if(extra&&jQuery.isFunction(extra)){ret=extra.apply(elem,val==null?data:data.concat(val));if(ret!==undefined)val=ret;}if(fn&&donative!==false&&val!==false&&!(jQuery.nodeName(elem,'a')&&type=="click")){this.triggered=true;try{elem[type]();}catch(e){}}this.triggered=false;}return val;},handle:function(event){var val,ret,namespace,all,handlers;event=arguments[0]=jQuery.event.fix(event||window.event);namespace=event.type.split(".");event.type=namespace[0];namespace=namespace[1];all=!namespace&&!event.exclusive;handlers=(jQuery.data(this,"events")||{})[event.type];for(var j in handlers){var handler=handlers[j];if(all||handler.type==namespace){event.handler=handler;event.data=handler.data;ret=handler.apply(this,arguments);if(val!==false)val=ret;if(ret===false){event.preventDefault();event.stopPropagation();}}}return val;},fix:function(event){if(event[expando]==true)return event;var originalEvent=event;event={originalEvent:originalEvent};var props="altKey attrChange attrName bubbles button cancelable charCode clientX clientY ctrlKey currentTarget data detail eventPhase fromElement handler keyCode metaKey newValue originalTarget pageX pageY prevValue relatedNode relatedTarget screenX screenY shiftKey srcElement target timeStamp toElement type view wheelDelta which".split(" ");for(var i=props.length;i;i--)event[props[i]]=originalEvent[props[i]];event[expando]=true;event.preventDefault=function(){if(originalEvent.preventDefault)originalEvent.preventDefault();originalEvent.returnValue=false;};event.stopPropagation=function(){if(originalEvent.stopPropagation)originalEvent.stopPropagation();originalEvent.cancelBubble=true;};event.timeStamp=event.timeStamp||now();if(!event.target)event.target=event.srcElement||document;if(event.target.nodeType==3)event.target=event.target.parentNode;if(!event.relatedTarget&&event.fromElement)event.relatedTarget=event.fromElement==event.target?event.toElement:event.fromElement;if(event.pageX==null&&event.clientX!=null){var doc=document.documentElement,body=document.body;event.pageX=event.clientX+(doc&&doc.scrollLeft||body&&body.scrollLeft||0)-(doc.clientLeft||0);event.pageY=event.clientY+(doc&&doc.scrollTop||body&&body.scrollTop||0)-(doc.clientTop||0);}if(!event.which&&((event.charCode||event.charCode===0)?event.charCode:event.keyCode))event.which=event.charCode||event.keyCode;if(!event.metaKey&&event.ctrlKey)event.metaKey=event.ctrlKey;if(!event.which&&event.button)event.which=(event.button&1?1:(event.button&2?3:(event.button&4?2:0)));return event;},proxy:function(fn,proxy){proxy.guid=fn.guid=fn.guid||proxy.guid||this.guid++;return proxy;},special:{ready:{setup:function(){bindReady();return;},teardown:function(){return;}},mouseenter:{setup:function(){if(jQuery.browser.msie)return false;jQuery(this).bind("mouseover",jQuery.event.special.mouseenter.handler);return true;},teardown:function(){if(jQuery.browser.msie)return false;jQuery(this).unbind("mouseover",jQuery.event.special.mouseenter.handler);return true;},handler:function(event){if(withinElement(event,this))return true;event.type="mouseenter";return jQuery.event.handle.apply(this,arguments);}},mouseleave:{setup:function(){if(jQuery.browser.msie)return false;jQuery(this).bind("mouseout",jQuery.event.special.mouseleave.handler);return true;},teardown:function(){if(jQuery.browser.msie)return false;jQuery(this).unbind("mouseout",jQuery.event.special.mouseleave.handler);return true;},handler:function(event){if(withinElement(event,this))return true;event.type="mouseleave";return jQuery.event.handle.apply(this,arguments);}}}};jQuery.fn.extend({bind:function(type,data,fn){return type=="unload"?this.one(type,data,fn):this.each(function(){jQuery.event.add(this,type,fn||data,fn&&data);});},one:function(type,data,fn){var one=jQuery.event.proxy(fn||data,function(event){jQuery(this).unbind(event,one);return(fn||data).apply(this,arguments);});return this.each(function(){jQuery.event.add(this,type,one,fn&&data);});},unbind:function(type,fn){return this.each(function(){jQuery.event.remove(this,type,fn);});},trigger:function(type,data,fn){return this.each(function(){jQuery.event.trigger(type,data,this,true,fn);});},triggerHandler:function(type,data,fn){return this[0]&&jQuery.event.trigger(type,data,this[0],false,fn);},toggle:function(fn){var args=arguments,i=1;while(i<args.length)jQuery.event.proxy(fn,args[i++]);return this.click(jQuery.event.proxy(fn,function(event){this.lastToggle=(this.lastToggle||0)%i;event.preventDefault();return args[this.lastToggle++].apply(this,arguments)||false;}));},hover:function(fnOver,fnOut){return this.bind('mouseenter',fnOver).bind('mouseleave',fnOut);},ready:function(fn){bindReady();if(jQuery.isReady)fn.call(document,jQuery);else
+jQuery.readyList.push(function(){return fn.call(this,jQuery);});return this;}});jQuery.extend({isReady:false,readyList:[],ready:function(){if(!jQuery.isReady){jQuery.isReady=true;if(jQuery.readyList){jQuery.each(jQuery.readyList,function(){this.call(document);});jQuery.readyList=null;}jQuery(document).triggerHandler("ready");}}});var readyBound=false;function bindReady(){if(readyBound)return;readyBound=true;if(document.addEventListener&&!jQuery.browser.opera)document.addEventListener("DOMContentLoaded",jQuery.ready,false);if(jQuery.browser.msie&&window==top)(function(){if(jQuery.isReady)return;try{document.documentElement.doScroll("left");}catch(error){setTimeout(arguments.callee,0);return;}jQuery.ready();})();if(jQuery.browser.opera)document.addEventListener("DOMContentLoaded",function(){if(jQuery.isReady)return;for(var i=0;i<document.styleSheets.length;i++)if(document.styleSheets[i].disabled){setTimeout(arguments.callee,0);return;}jQuery.ready();},false);if(jQuery.browser.safari){var numStyles;(function(){if(jQuery.isReady)return;if(document.readyState!="loaded"&&document.readyState!="complete"){setTimeout(arguments.callee,0);return;}if(numStyles===undefined)numStyles=jQuery("style, link[rel=stylesheet]").length;if(document.styleSheets.length!=numStyles){setTimeout(arguments.callee,0);return;}jQuery.ready();})();}jQuery.event.add(window,"load",jQuery.ready);}jQuery.each(("blur,focus,load,resize,scroll,unload,click,dblclick,"+"mousedown,mouseup,mousemove,mouseover,mouseout,change,select,"+"submit,keydown,keypress,keyup,error").split(","),function(i,name){jQuery.fn[name]=function(fn){return fn?this.bind(name,fn):this.trigger(name);};});var withinElement=function(event,elem){var parent=event.relatedTarget;while(parent&&parent!=elem)try{parent=parent.parentNode;}catch(error){parent=elem;}return parent==elem;};jQuery(window).bind("unload",function(){jQuery("*").add(document).unbind();});jQuery.fn.extend({_load:jQuery.fn.load,load:function(url,params,callback){if(typeof url!='string')return this._load(url);var off=url.indexOf(" ");if(off>=0){var selector=url.slice(off,url.length);url=url.slice(0,off);}callback=callback||function(){};var type="GET";if(params)if(jQuery.isFunction(params)){callback=params;params=null;}else{params=jQuery.param(params);type="POST";}var self=this;jQuery.ajax({url:url,type:type,dataType:"html",data:params,complete:function(res,status){if(status=="success"||status=="notmodified")self.html(selector?jQuery("<div/>").append(res.responseText.replace(/<script(.|\s)*?\/script>/g,"")).find(selector):res.responseText);self.each(callback,[res.responseText,status,res]);}});return this;},serialize:function(){return jQuery.param(this.serializeArray());},serializeArray:function(){return this.map(function(){return jQuery.nodeName(this,"form")?jQuery.makeArray(this.elements):this;}).filter(function(){return this.name&&!this.disabled&&(this.checked||/select|textarea/i.test(this.nodeName)||/text|hidden|password/i.test(this.type));}).map(function(i,elem){var val=jQuery(this).val();return val==null?null:val.constructor==Array?jQuery.map(val,function(val,i){return{name:elem.name,value:val};}):{name:elem.name,value:val};}).get();}});jQuery.each("ajaxStart,ajaxStop,ajaxComplete,ajaxError,ajaxSuccess,ajaxSend".split(","),function(i,o){jQuery.fn[o]=function(f){return this.bind(o,f);};});var jsc=now();jQuery.extend({get:function(url,data,callback,type){if(jQuery.isFunction(data)){callback=data;data=null;}return jQuery.ajax({type:"GET",url:url,data:data,success:callback,dataType:type});},getScript:function(url,callback){return jQuery.get(url,null,callback,"script");},getJSON:function(url,data,callback){return jQuery.get(url,data,callback,"json");},post:function(url,data,callback,type){if(jQuery.isFunction(data)){callback=data;data={};}return jQuery.ajax({type:"POST",url:url,data:data,success:callback,dataType:type});},ajaxSetup:function(settings){jQuery.extend(jQuery.ajaxSettings,settings);},ajaxSettings:{url:location.href,global:true,type:"GET",timeout:0,contentType:"application/x-www-form-urlencoded",processData:true,async:true,data:null,username:null,password:null,accepts:{xml:"application/xml, text/xml",html:"text/html",script:"text/javascript, application/javascript",json:"application/json, text/javascript",text:"text/plain",_default:"*/*"}},lastModified:{},ajax:function(s){s=jQuery.extend(true,s,jQuery.extend(true,{},jQuery.ajaxSettings,s));var jsonp,jsre=/=\?(&|$)/g,status,data,type=s.type.toUpperCase();if(s.data&&s.processData&&typeof s.data!="string")s.data=jQuery.param(s.data);if(s.dataType=="jsonp"){if(type=="GET"){if(!s.url.match(jsre))s.url+=(s.url.match(/\?/)?"&":"?")+(s.jsonp||"callback")+"=?";}else if(!s.data||!s.data.match(jsre))s.data=(s.data?s.data+"&":"")+(s.jsonp||"callback")+"=?";s.dataType="json";}if(s.dataType=="json"&&(s.data&&s.data.match(jsre)||s.url.match(jsre))){jsonp="jsonp"+jsc++;if(s.data)s.data=(s.data+"").replace(jsre,"="+jsonp+"$1");s.url=s.url.replace(jsre,"="+jsonp+"$1");s.dataType="script";window[jsonp]=function(tmp){data=tmp;success();complete();window[jsonp]=undefined;try{delete window[jsonp];}catch(e){}if(head)head.removeChild(script);};}if(s.dataType=="script"&&s.cache==null)s.cache=false;if(s.cache===false&&type=="GET"){var ts=now();var ret=s.url.replace(/(\?|&)_=.*?(&|$)/,"$1_="+ts+"$2");s.url=ret+((ret==s.url)?(s.url.match(/\?/)?"&":"?")+"_="+ts:"");}if(s.data&&type=="GET"){s.url+=(s.url.match(/\?/)?"&":"?")+s.data;s.data=null;}if(s.global&&!jQuery.active++)jQuery.event.trigger("ajaxStart");var remote=/^(?:\w+:)?\/\/([^\/?#]+)/;if(s.dataType=="script"&&type=="GET"&&remote.test(s.url)&&remote.exec(s.url)[1]!=location.host){var head=document.getElementsByTagName("head")[0];var script=document.createElement("script");script.src=s.url;if(s.scriptCharset)script.charset=s.scriptCharset;if(!jsonp){var done=false;script.onload=script.onreadystatechange=function(){if(!done&&(!this.readyState||this.readyState=="loaded"||this.readyState=="complete")){done=true;success();complete();head.removeChild(script);}};}head.appendChild(script);return undefined;}var requestDone=false;var xhr=window.ActiveXObject?new ActiveXObject("Microsoft.XMLHTTP"):new XMLHttpRequest();if(s.username)xhr.open(type,s.url,s.async,s.username,s.password);else
+xhr.open(type,s.url,s.async);try{if(s.data)xhr.setRequestHeader("Content-Type",s.contentType);if(s.ifModified)xhr.setRequestHeader("If-Modified-Since",jQuery.lastModified[s.url]||"Thu, 01 Jan 1970 00:00:00 GMT");xhr.setRequestHeader("X-Requested-With","XMLHttpRequest");xhr.setRequestHeader("Accept",s.dataType&&s.accepts[s.dataType]?s.accepts[s.dataType]+", */*":s.accepts._default);}catch(e){}if(s.beforeSend&&s.beforeSend(xhr,s)===false){s.global&&jQuery.active--;xhr.abort();return false;}if(s.global)jQuery.event.trigger("ajaxSend",[xhr,s]);var onreadystatechange=function(isTimeout){if(!requestDone&&xhr&&(xhr.readyState==4||isTimeout=="timeout")){requestDone=true;if(ival){clearInterval(ival);ival=null;}status=isTimeout=="timeout"&&"timeout"||!jQuery.httpSuccess(xhr)&&"error"||s.ifModified&&jQuery.httpNotModified(xhr,s.url)&&"notmodified"||"success";if(status=="success"){try{data=jQuery.httpData(xhr,s.dataType,s.dataFilter);}catch(e){status="parsererror";}}if(status=="success"){var modRes;try{modRes=xhr.getResponseHeader("Last-Modified");}catch(e){}if(s.ifModified&&modRes)jQuery.lastModified[s.url]=modRes;if(!jsonp)success();}else
+jQuery.handleError(s,xhr,status);complete();if(s.async)xhr=null;}};if(s.async){var ival=setInterval(onreadystatechange,13);if(s.timeout>0)setTimeout(function(){if(xhr){xhr.abort();if(!requestDone)onreadystatechange("timeout");}},s.timeout);}try{xhr.send(s.data);}catch(e){jQuery.handleError(s,xhr,null,e);}if(!s.async)onreadystatechange();function success(){if(s.success)s.success(data,status);if(s.global)jQuery.event.trigger("ajaxSuccess",[xhr,s]);}function complete(){if(s.complete)s.complete(xhr,status);if(s.global)jQuery.event.trigger("ajaxComplete",[xhr,s]);if(s.global&&!--jQuery.active)jQuery.event.trigger("ajaxStop");}return xhr;},handleError:function(s,xhr,status,e){if(s.error)s.error(xhr,status,e);if(s.global)jQuery.event.trigger("ajaxError",[xhr,s,e]);},active:0,httpSuccess:function(xhr){try{return!xhr.status&&location.protocol=="file:"||(xhr.status>=200&&xhr.status<300)||xhr.status==304||xhr.status==1223||jQuery.browser.safari&&xhr.status==undefined;}catch(e){}return false;},httpNotModified:function(xhr,url){try{var xhrRes=xhr.getResponseHeader("Last-Modified");return xhr.status==304||xhrRes==jQuery.lastModified[url]||jQuery.browser.safari&&xhr.status==undefined;}catch(e){}return false;},httpData:function(xhr,type,filter){var ct=xhr.getResponseHeader("content-type"),xml=type=="xml"||!type&&ct&&ct.indexOf("xml")>=0,data=xml?xhr.responseXML:xhr.responseText;if(xml&&data.documentElement.tagName=="parsererror")throw"parsererror";if(filter)data=filter(data,type);if(type=="script")jQuery.globalEval(data);if(type=="json")data=eval("("+data+")");return data;},param:function(a){var s=[];if(a.constructor==Array||a.jquery)jQuery.each(a,function(){s.push(encodeURIComponent(this.name)+"="+encodeURIComponent(this.value));});else
+for(var j in a)if(a[j]&&a[j].constructor==Array)jQuery.each(a[j],function(){s.push(encodeURIComponent(j)+"="+encodeURIComponent(this));});else
+s.push(encodeURIComponent(j)+"="+encodeURIComponent(jQuery.isFunction(a[j])?a[j]():a[j]));return s.join("&").replace(/%20/g,"+");}});jQuery.fn.extend({show:function(speed,callback){return speed?this.animate({height:"show",width:"show",opacity:"show"},speed,callback):this.filter(":hidden").each(function(){this.style.display=this.oldblock||"";if(jQuery.css(this,"display")=="none"){var elem=jQuery("<"+this.tagName+" />").appendTo("body");this.style.display=elem.css("display");if(this.style.display=="none")this.style.display="block";elem.remove();}}).end();},hide:function(speed,callback){return speed?this.animate({height:"hide",width:"hide",opacity:"hide"},speed,callback):this.filter(":visible").each(function(){this.oldblock=this.oldblock||jQuery.css(this,"display");this.style.display="none";}).end();},_toggle:jQuery.fn.toggle,toggle:function(fn,fn2){return jQuery.isFunction(fn)&&jQuery.isFunction(fn2)?this._toggle.apply(this,arguments):fn?this.animate({height:"toggle",width:"toggle",opacity:"toggle"},fn,fn2):this.each(function(){jQuery(this)[jQuery(this).is(":hidden")?"show":"hide"]();});},slideDown:function(speed,callback){return this.animate({height:"show"},speed,callback);},slideUp:function(speed,callback){return this.animate({height:"hide"},speed,callback);},slideToggle:function(speed,callback){return this.animate({height:"toggle"},speed,callback);},fadeIn:function(speed,callback){return this.animate({opacity:"show"},speed,callback);},fadeOut:function(speed,callback){return this.animate({opacity:"hide"},speed,callback);},fadeTo:function(speed,to,callback){return this.animate({opacity:to},speed,callback);},animate:function(prop,speed,easing,callback){var optall=jQuery.speed(speed,easing,callback);return this[optall.queue===false?"each":"queue"](function(){if(this.nodeType!=1)return false;var opt=jQuery.extend({},optall),p,hidden=jQuery(this).is(":hidden"),self=this;for(p in prop){if(prop[p]=="hide"&&hidden||prop[p]=="show"&&!hidden)return opt.complete.call(this);if(p=="height"||p=="width"){opt.display=jQuery.css(this,"display");opt.overflow=this.style.overflow;}}if(opt.overflow!=null)this.style.overflow="hidden";opt.curAnim=jQuery.extend({},prop);jQuery.each(prop,function(name,val){var e=new jQuery.fx(self,opt,name);if(/toggle|show|hide/.test(val))e[val=="toggle"?hidden?"show":"hide":val](prop);else{var parts=val.toString().match(/^([+-]=)?([\d+-.]+)(.*)$/),start=e.cur(true)||0;if(parts){var end=parseFloat(parts[2]),unit=parts[3]||"px";if(unit!="px"){self.style[name]=(end||1)+unit;start=((end||1)/e.cur(true))*start;self.style[name]=start+unit;}if(parts[1])end=((parts[1]=="-="?-1:1)*end)+start;e.custom(start,end,unit);}else
+e.custom(start,val,"");}});return true;});},queue:function(type,fn){if(jQuery.isFunction(type)||(type&&type.constructor==Array)){fn=type;type="fx";}if(!type||(typeof type=="string"&&!fn))return queue(this[0],type);return this.each(function(){if(fn.constructor==Array)queue(this,type,fn);else{queue(this,type).push(fn);if(queue(this,type).length==1)fn.call(this);}});},stop:function(clearQueue,gotoEnd){var timers=jQuery.timers;if(clearQueue)this.queue([]);this.each(function(){for(var i=timers.length-1;i>=0;i--)if(timers[i].elem==this){if(gotoEnd)timers[i](true);timers.splice(i,1);}});if(!gotoEnd)this.dequeue();return this;}});var queue=function(elem,type,array){if(elem){type=type||"fx";var q=jQuery.data(elem,type+"queue");if(!q||array)q=jQuery.data(elem,type+"queue",jQuery.makeArray(array));}return q;};jQuery.fn.dequeue=function(type){type=type||"fx";return this.each(function(){var q=queue(this,type);q.shift();if(q.length)q[0].call(this);});};jQuery.extend({speed:function(speed,easing,fn){var opt=speed&&speed.constructor==Object?speed:{complete:fn||!fn&&easing||jQuery.isFunction(speed)&&speed,duration:speed,easing:fn&&easing||easing&&easing.constructor!=Function&&easing};opt.duration=(opt.duration&&opt.duration.constructor==Number?opt.duration:jQuery.fx.speeds[opt.duration])||jQuery.fx.speeds.def;opt.old=opt.complete;opt.complete=function(){if(opt.queue!==false)jQuery(this).dequeue();if(jQuery.isFunction(opt.old))opt.old.call(this);};return opt;},easing:{linear:function(p,n,firstNum,diff){return firstNum+diff*p;},swing:function(p,n,firstNum,diff){return((-Math.cos(p*Math.PI)/2)+0.5)*diff+firstNum;}},timers:[],timerId:null,fx:function(elem,options,prop){this.options=options;this.elem=elem;this.prop=prop;if(!options.orig)options.orig={};}});jQuery.fx.prototype={update:function(){if(this.options.step)this.options.step.call(this.elem,this.now,this);(jQuery.fx.step[this.prop]||jQuery.fx.step._default)(this);if(this.prop=="height"||this.prop=="width")this.elem.style.display="block";},cur:function(force){if(this.elem[this.prop]!=null&&this.elem.style[this.prop]==null)return this.elem[this.prop];var r=parseFloat(jQuery.css(this.elem,this.prop,force));return r&&r>-10000?r:parseFloat(jQuery.curCSS(this.elem,this.prop))||0;},custom:function(from,to,unit){this.startTime=now();this.start=from;this.end=to;this.unit=unit||this.unit||"px";this.now=this.start;this.pos=this.state=0;this.update();var self=this;function t(gotoEnd){return self.step(gotoEnd);}t.elem=this.elem;jQuery.timers.push(t);if(jQuery.timerId==null){jQuery.timerId=setInterval(function(){var timers=jQuery.timers;for(var i=0;i<timers.length;i++)if(!timers[i]())timers.splice(i--,1);if(!timers.length){clearInterval(jQuery.timerId);jQuery.timerId=null;}},13);}},show:function(){this.options.orig[this.prop]=jQuery.attr(this.elem.style,this.prop);this.options.show=true;this.custom(0,this.cur());if(this.prop=="width"||this.prop=="height")this.elem.style[this.prop]="1px";jQuery(this.elem).show();},hide:function(){this.options.orig[this.prop]=jQuery.attr(this.elem.style,this.prop);this.options.hide=true;this.custom(this.cur(),0);},step:function(gotoEnd){var t=now();if(gotoEnd||t>this.options.duration+this.startTime){this.now=this.end;this.pos=this.state=1;this.update();this.options.curAnim[this.prop]=true;var done=true;for(var i in this.options.curAnim)if(this.options.curAnim[i]!==true)done=false;if(done){if(this.options.display!=null){this.elem.style.overflow=this.options.overflow;this.elem.style.display=this.options.display;if(jQuery.css(this.elem,"display")=="none")this.elem.style.display="block";}if(this.options.hide)this.elem.style.display="none";if(this.options.hide||this.options.show)for(var p in this.options.curAnim)jQuery.attr(this.elem.style,p,this.options.orig[p]);}if(done)this.options.complete.call(this.elem);return false;}else{var n=t-this.startTime;this.state=n/this.options.duration;this.pos=jQuery.easing[this.options.easing||(jQuery.easing.swing?"swing":"linear")](this.state,n,0,1,this.options.duration);this.now=this.start+((this.end-this.start)*this.pos);this.update();}return true;}};jQuery.extend(jQuery.fx,{speeds:{slow:600,fast:200,def:400},step:{scrollLeft:function(fx){fx.elem.scrollLeft=fx.now;},scrollTop:function(fx){fx.elem.scrollTop=fx.now;},opacity:function(fx){jQuery.attr(fx.elem.style,"opacity",fx.now);},_default:function(fx){fx.elem.style[fx.prop]=fx.now+fx.unit;}}});jQuery.fn.offset=function(){var left=0,top=0,elem=this[0],results;if(elem)with(jQuery.browser){var parent=elem.parentNode,offsetChild=elem,offsetParent=elem.offsetParent,doc=elem.ownerDocument,safari2=safari&&parseInt(version)<522&&!/adobeair/i.test(userAgent),css=jQuery.curCSS,fixed=css(elem,"position")=="fixed";if(elem.getBoundingClientRect){var box=elem.getBoundingClientRect();add(box.left+Math.max(doc.documentElement.scrollLeft,doc.body.scrollLeft),box.top+Math.max(doc.documentElement.scrollTop,doc.body.scrollTop));add(-doc.documentElement.clientLeft,-doc.documentElement.clientTop);}else{add(elem.offsetLeft,elem.offsetTop);while(offsetParent){add(offsetParent.offsetLeft,offsetParent.offsetTop);if(mozilla&&!/^t(able|d|h)$/i.test(offsetParent.tagName)||safari&&!safari2)border(offsetParent);if(!fixed&&css(offsetParent,"position")=="fixed")fixed=true;offsetChild=/^body$/i.test(offsetParent.tagName)?offsetChild:offsetParent;offsetParent=offsetParent.offsetParent;}while(parent&&parent.tagName&&!/^body|html$/i.test(parent.tagName)){if(!/^inline|table.*$/i.test(css(parent,"display")))add(-parent.scrollLeft,-parent.scrollTop);if(mozilla&&css(parent,"overflow")!="visible")border(parent);parent=parent.parentNode;}if((safari2&&(fixed||css(offsetChild,"position")=="absolute"))||(mozilla&&css(offsetChild,"position")!="absolute"))add(-doc.body.offsetLeft,-doc.body.offsetTop);if(fixed)add(Math.max(doc.documentElement.scrollLeft,doc.body.scrollLeft),Math.max(doc.documentElement.scrollTop,doc.body.scrollTop));}results={top:top,left:left};}function border(elem){add(jQuery.curCSS(elem,"borderLeftWidth",true),jQuery.curCSS(elem,"borderTopWidth",true));}function add(l,t){left+=parseInt(l,10)||0;top+=parseInt(t,10)||0;}return results;};jQuery.fn.extend({position:function(){var left=0,top=0,results;if(this[0]){var offsetParent=this.offsetParent(),offset=this.offset(),parentOffset=/^body|html$/i.test(offsetParent[0].tagName)?{top:0,left:0}:offsetParent.offset();offset.top-=num(this,'marginTop');offset.left-=num(this,'marginLeft');parentOffset.top+=num(offsetParent,'borderTopWidth');parentOffset.left+=num(offsetParent,'borderLeftWidth');results={top:offset.top-parentOffset.top,left:offset.left-parentOffset.left};}return results;},offsetParent:function(){var offsetParent=this[0].offsetParent;while(offsetParent&&(!/^body|html$/i.test(offsetParent.tagName)&&jQuery.css(offsetParent,'position')=='static'))offsetParent=offsetParent.offsetParent;return jQuery(offsetParent);}});jQuery.each(['Left','Top'],function(i,name){var method='scroll'+name;jQuery.fn[method]=function(val){if(!this[0])return;return val!=undefined?this.each(function(){this==window||this==document?window.scrollTo(!i?val:jQuery(window).scrollLeft(),i?val:jQuery(window).scrollTop()):this[method]=val;}):this[0]==window||this[0]==document?self[i?'pageYOffset':'pageXOffset']||jQuery.boxModel&&document.documentElement[method]||document.body[method]:this[0][method];};});jQuery.each(["Height","Width"],function(i,name){var tl=i?"Left":"Top",br=i?"Right":"Bottom";jQuery.fn["inner"+name]=function(){return this[name.toLowerCase()]()+num(this,"padding"+tl)+num(this,"padding"+br);};jQuery.fn["outer"+name]=function(margin){return this["inner"+name]()+num(this,"border"+tl+"Width")+num(this,"border"+br+"Width")+(margin?num(this,"margin"+tl)+num(this,"margin"+br):0);};});})(); \ No newline at end of file
diff --git a/lib/rdoc/generator/template/darkfish/js/quicksearch.js b/lib/rdoc/generator/template/darkfish/js/quicksearch.js
new file mode 100644
index 0000000000..70dbd33cd9
--- /dev/null
+++ b/lib/rdoc/generator/template/darkfish/js/quicksearch.js
@@ -0,0 +1,114 @@
+/**
+ *
+ * JQuery QuickSearch - Hook up a form field to hide non-matching elements.
+ * $Id: quicksearch.js 53 2009-01-07 02:52:03Z deveiant $
+ *
+ * Author: Michael Granger <mgranger@laika.com>
+ *
+ */
+jQuery.fn.quicksearch = function( target, searchElems, options ) {
+ // console.debug( "Quicksearch fn" );
+
+ var settings = {
+ delay: 250,
+ clearButton: false,
+ highlightMatches: false,
+ focusOnLoad: false,
+ noSearchResultsIndicator: null
+ };
+ if ( options ) $.extend( settings, options );
+
+ return jQuery(this).each( function() {
+ // console.debug( "Creating a new quicksearch on %o for %o", this, searchElems );
+ new jQuery.quicksearch( this, searchElems, settings );
+ });
+};
+
+
+jQuery.quicksearch = function( searchBox, searchElems, settings ) {
+ var timeout;
+ var boxdiv = $(searchBox).parents('div').eq(0);
+
+ function init() {
+ setupKeyEventHandlers();
+ focusOnLoad();
+ };
+
+ function setupKeyEventHandlers() {
+ // console.debug( "Hooking up the 'keypress' event to %o", searchBox );
+ $(searchBox).
+ unbind( 'keyup' ).
+ keyup( function(e) { return onSearchKey( e.keyCode ); });
+ $(searchBox).
+ unbind( 'keypress' ).
+ keypress( function(e) {
+ switch( e.which ) {
+ // Execute the search on Enter, Tab, or Newline
+ case 9:
+ case 13:
+ case 10:
+ clearTimeout( timeout );
+ e.preventDefault();
+ doQuickSearch();
+ break;
+
+ // Allow backspace
+ case 8:
+ return true;
+ break;
+
+ // Only allow valid search characters
+ default:
+ return validQSChar( e.charCode );
+ }
+ });
+ };
+
+ function focusOnLoad() {
+ if ( !settings.focusOnLoad ) return false;
+ $(searchBox).focus();
+ };
+
+ function onSearchKey ( code ) {
+ clearTimeout( timeout );
+ // console.debug( "...scheduling search." );
+ timeout = setTimeout( doQuickSearch, settings.delay );
+ };
+
+ function validQSChar( code ) {
+ var c = String.fromCharCode( code );
+ return (
+ (c == ':') ||
+ (c >= 'a' && c <= 'z') ||
+ (c >= 'A' && c <= 'Z')
+ );
+ };
+
+ function doQuickSearch() {
+ var searchText = searchBox.value;
+ var pat = new RegExp( searchText, "im" );
+ var shownCount = 0;
+
+ if ( settings.noSearchResultsIndicator ) {
+ $('#' + settings.noSearchResultsIndicator).hide();
+ }
+
+ // All elements start out hidden
+ $(searchElems).each( function(index) {
+ var str = $(this).text();
+
+ if ( pat.test(str) ) {
+ shownCount += 1;
+ $(this).fadeIn();
+ } else {
+ $(this).hide();
+ }
+ });
+
+ if ( shownCount == 0 && settings.noSearchResultsIndicator ) {
+ $('#' + settings.noSearchResultsIndicator).slideDown();
+ }
+ };
+
+ init();
+};
diff --git a/lib/rdoc/generator/template/darkfish/js/thickbox-compressed.js b/lib/rdoc/generator/template/darkfish/js/thickbox-compressed.js
new file mode 100644
index 0000000000..3a3fdae1fb
--- /dev/null
+++ b/lib/rdoc/generator/template/darkfish/js/thickbox-compressed.js
@@ -0,0 +1,10 @@
+/*
+ * Thickbox 3 - One Box To Rule Them All.
+ * By Cody Lindley (http://www.codylindley.com)
+ * Copyright (c) 2007 cody lindley
+ * Licensed under the MIT License: http://www.opensource.org/licenses/mit-license.php
+*/
+
+var tb_pathToImage = "../images/loadingAnimation.gif";
+
+eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('$(o).2S(9(){1u(\'a.18, 3n.18, 3i.18\');1w=1p 1t();1w.L=2H});9 1u(b){$(b).s(9(){6 t=X.Q||X.1v||M;6 a=X.u||X.23;6 g=X.1N||P;19(t,a,g);X.2E();H P})}9 19(d,f,g){3m{3(2t o.v.J.2i==="2g"){$("v","11").r({A:"28%",z:"28%"});$("11").r("22","2Z");3(o.1Y("1F")===M){$("v").q("<U 5=\'1F\'></U><4 5=\'B\'></4><4 5=\'8\'></4>");$("#B").s(G)}}n{3(o.1Y("B")===M){$("v").q("<4 5=\'B\'></4><4 5=\'8\'></4>");$("#B").s(G)}}3(1K()){$("#B").1J("2B")}n{$("#B").1J("2z")}3(d===M){d=""}$("v").q("<4 5=\'K\'><1I L=\'"+1w.L+"\' /></4>");$(\'#K\').2y();6 h;3(f.O("?")!==-1){h=f.3l(0,f.O("?"))}n{h=f}6 i=/\\.2s$|\\.2q$|\\.2m$|\\.2l$|\\.2k$/;6 j=h.1C().2h(i);3(j==\'.2s\'||j==\'.2q\'||j==\'.2m\'||j==\'.2l\'||j==\'.2k\'){1D="";1G="";14="";1z="";1x="";R="";1n="";1r=P;3(g){E=$("a[@1N="+g+"]").36();25(D=0;((D<E.1c)&&(R===""));D++){6 k=E[D].u.1C().2h(i);3(!(E[D].u==f)){3(1r){1z=E[D].Q;1x=E[D].u;R="<1e 5=\'1X\'>&1d;&1d;<a u=\'#\'>2T &2R;</a></1e>"}n{1D=E[D].Q;1G=E[D].u;14="<1e 5=\'1U\'>&1d;&1d;<a u=\'#\'>&2O; 2N</a></1e>"}}n{1r=1b;1n="1t "+(D+1)+" 2L "+(E.1c)}}}S=1p 1t();S.1g=9(){S.1g=M;6 a=2x();6 x=a[0]-1M;6 y=a[1]-1M;6 b=S.z;6 c=S.A;3(b>x){c=c*(x/b);b=x;3(c>y){b=b*(y/c);c=y}}n 3(c>y){b=b*(y/c);c=y;3(b>x){c=c*(x/b);b=x}}13=b+30;1a=c+2G;$("#8").q("<a u=\'\' 5=\'1L\' Q=\'1o\'><1I 5=\'2F\' L=\'"+f+"\' z=\'"+b+"\' A=\'"+c+"\' 23=\'"+d+"\'/></a>"+"<4 5=\'2D\'>"+d+"<4 5=\'2C\'>"+1n+14+R+"</4></4><4 5=\'2A\'><a u=\'#\' 5=\'Z\' Q=\'1o\'>1l</a> 1k 1j 1s</4>");$("#Z").s(G);3(!(14==="")){9 12(){3($(o).N("s",12)){$(o).N("s",12)}$("#8").C();$("v").q("<4 5=\'8\'></4>");19(1D,1G,g);H P}$("#1U").s(12)}3(!(R==="")){9 1i(){$("#8").C();$("v").q("<4 5=\'8\'></4>");19(1z,1x,g);H P}$("#1X").s(1i)}o.1h=9(e){3(e==M){I=2w.2v}n{I=e.2u}3(I==27){G()}n 3(I==3k){3(!(R=="")){o.1h="";1i()}}n 3(I==3j){3(!(14=="")){o.1h="";12()}}};16();$("#K").C();$("#1L").s(G);$("#8").r({Y:"T"})};S.L=f}n{6 l=f.2r(/^[^\\?]+\\??/,\'\');6 m=2p(l);13=(m[\'z\']*1)+30||3h;1a=(m[\'A\']*1)+3g||3f;W=13-30;V=1a-3e;3(f.O(\'2j\')!=-1){1E=f.1B(\'3d\');$("#15").C();3(m[\'1A\']!="1b"){$("#8").q("<4 5=\'2f\'><4 5=\'1H\'>"+d+"</4><4 5=\'2e\'><a u=\'#\' 5=\'Z\' Q=\'1o\'>1l</a> 1k 1j 1s</4></4><U 1W=\'0\' 2d=\'0\' L=\'"+1E[0]+"\' 5=\'15\' 1v=\'15"+1f.2c(1f.1y()*2b)+"\' 1g=\'1m()\' J=\'z:"+(W+29)+"p;A:"+(V+17)+"p;\' > </U>")}n{$("#B").N();$("#8").q("<U 1W=\'0\' 2d=\'0\' L=\'"+1E[0]+"\' 5=\'15\' 1v=\'15"+1f.2c(1f.1y()*2b)+"\' 1g=\'1m()\' J=\'z:"+(W+29)+"p;A:"+(V+17)+"p;\'> </U>")}}n{3($("#8").r("Y")!="T"){3(m[\'1A\']!="1b"){$("#8").q("<4 5=\'2f\'><4 5=\'1H\'>"+d+"</4><4 5=\'2e\'><a u=\'#\' 5=\'Z\'>1l</a> 1k 1j 1s</4></4><4 5=\'F\' J=\'z:"+W+"p;A:"+V+"p\'></4>")}n{$("#B").N();$("#8").q("<4 5=\'F\' 3c=\'3b\' J=\'z:"+W+"p;A:"+V+"p;\'></4>")}}n{$("#F")[0].J.z=W+"p";$("#F")[0].J.A=V+"p";$("#F")[0].3a=0;$("#1H").11(d)}}$("#Z").s(G);3(f.O(\'37\')!=-1){$("#F").q($(\'#\'+m[\'26\']).1T());$("#8").24(9(){$(\'#\'+m[\'26\']).q($("#F").1T())});16();$("#K").C();$("#8").r({Y:"T"})}n 3(f.O(\'2j\')!=-1){16();3($.1q.35){$("#K").C();$("#8").r({Y:"T"})}}n{$("#F").34(f+="&1y="+(1p 33().32()),9(){16();$("#K").C();1u("#F a.18");$("#8").r({Y:"T"})})}}3(!m[\'1A\']){o.21=9(e){3(e==M){I=2w.2v}n{I=e.2u}3(I==27){G()}}}}31(e){}}9 1m(){$("#K").C();$("#8").r({Y:"T"})}9 G(){$("#2Y").N("s");$("#Z").N("s");$("#8").2X("2W",9(){$(\'#8,#B,#1F\').2V("24").N().C()});$("#K").C();3(2t o.v.J.2i=="2g"){$("v","11").r({A:"1Z",z:"1Z"});$("11").r("22","")}o.1h="";o.21="";H P}9 16(){$("#8").r({2U:\'-\'+20((13/2),10)+\'p\',z:13+\'p\'});3(!(1V.1q.2Q&&1V.1q.2P<7)){$("#8").r({38:\'-\'+20((1a/2),10)+\'p\'})}}9 2p(a){6 b={};3(!a){H b}6 c=a.1B(/[;&]/);25(6 i=0;i<c.1c;i++){6 d=c[i].1B(\'=\');3(!d||d.1c!=2){39}6 e=2a(d[0]);6 f=2a(d[1]);f=f.2r(/\\+/g,\' \');b[e]=f}H b}9 2x(){6 a=o.2M;6 w=1S.2o||1R.2o||(a&&a.1Q)||o.v.1Q;6 h=1S.1P||1R.1P||(a&&a.2n)||o.v.2n;1O=[w,h];H 1O}9 1K(){6 a=2K.2J.1C();3(a.O(\'2I\')!=-1&&a.O(\'3o\')!=-1){H 1b}}',62,211,'|||if|div|id|var||TB_window|function||||||||||||||else|document|px|append|css|click||href|body||||width|height|TB_overlay|remove|TB_Counter|TB_TempArray|TB_ajaxContent|tb_remove|return|keycode|style|TB_load|src|null|unbind|indexOf|false|title|TB_NextHTML|imgPreloader|block|iframe|ajaxContentH|ajaxContentW|this|display|TB_closeWindowButton||html|goPrev|TB_WIDTH|TB_PrevHTML|TB_iframeContent|tb_position||thickbox|tb_show|TB_HEIGHT|true|length|nbsp|span|Math|onload|onkeydown|goNext|Esc|or|close|tb_showIframe|TB_imageCount|Close|new|browser|TB_FoundURL|Key|Image|tb_init|name|imgLoader|TB_NextURL|random|TB_NextCaption|modal|split|toLowerCase|TB_PrevCaption|urlNoQuery|TB_HideSelect|TB_PrevURL|TB_ajaxWindowTitle|img|addClass|tb_detectMacXFF|TB_ImageOff|150|rel|arrayPageSize|innerHeight|clientWidth|self|window|children|TB_prev|jQuery|frameborder|TB_next|getElementById|auto|parseInt|onkeyup|overflow|alt|unload|for|inlineId||100||unescape|1000|round|hspace|TB_closeAjaxWindow|TB_title|undefined|match|maxHeight|TB_iframe|bmp|gif|png|clientHeight|innerWidth|tb_parseQuery|jpeg|replace|jpg|typeof|which|keyCode|event|tb_getPageSize|show|TB_overlayBG|TB_closeWindow|TB_overlayMacFFBGHack|TB_secondLine|TB_caption|blur|TB_Image|60|tb_pathToImage|mac|userAgent|navigator|of|documentElement|Prev|lt|version|msie|gt|ready|Next|marginLeft|trigger|fast|fadeOut|TB_imageOff|hidden||catch|getTime|Date|load|safari|get|TB_inline|marginTop|continue|scrollTop|TB_modal|class|TB_|45|440|40|630|input|188|190|substr|try|area|firefox'.split('|'),0,{})) \ No newline at end of file
diff --git a/lib/rdoc/generator/template/darkfish/rdoc.css b/lib/rdoc/generator/template/darkfish/rdoc.css
new file mode 100644
index 0000000000..ea91421837
--- /dev/null
+++ b/lib/rdoc/generator/template/darkfish/rdoc.css
@@ -0,0 +1,763 @@
+/*
+ * "Darkfish" Rdoc CSS
+ * $Id: rdoc.css 54 2009-01-27 01:09:48Z deveiant $
+ *
+ * Author: Michael Granger <ged@FaerieMUD.org>
+ *
+ */
+
+/* Base Green is: #6C8C22 */
+
+*{ padding: 0; margin: 0; }
+
+body {
+ background: #efefef;
+ font: 14px "Helvetica Neue", Helvetica, Tahoma, sans-serif;
+}
+body.class, body.module, body.file {
+ margin-left: 40px;
+}
+body.file-popup {
+ font-size: 90%;
+ margin-left: 0;
+}
+
+h1 {
+ font-size: 300%;
+ text-shadow: rgba(135,145,135,0.65) 2px 2px 3px;
+ color: #6C8C22;
+}
+h2,h3,h4 { margin-top: 1.5em; }
+
+:link,
+:visited {
+ color: #6C8C22;
+ text-decoration: none;
+}
+:link:hover,
+:visited:hover {
+ border-bottom: 1px dotted #6C8C22;
+}
+
+pre {
+ background: #ddd;
+ padding: 0.5em 0;
+}
+
+
+/* @group Generic Classes */
+
+.initially-hidden {
+ display: none;
+}
+
+.quicksearch-field {
+ width: 98%;
+ background: #ddd;
+ border: 1px solid #aaa;
+ height: 1.5em;
+ -webkit-border-radius: 4px;
+}
+.quicksearch-field:focus {
+ background: #f1edba;
+}
+
+.missing-docs {
+ font-size: 120%;
+ background: white url(images/wrench_orange.png) no-repeat 4px center;
+ color: #ccc;
+ line-height: 2em;
+ border: 1px solid #d00;
+ opacity: 1;
+ padding-left: 20px;
+ text-indent: 24px;
+ letter-spacing: 3px;
+ font-weight: bold;
+ -webkit-border-radius: 5px;
+ -moz-border-radius: 5px;
+}
+
+.target-section {
+ border: 2px solid #dcce90;
+ border-left-width: 8px;
+ padding: 0 1em;
+ background: #fff3c2;
+}
+
+/* @end */
+
+
+/* @group Index Page, Standalone file pages */
+body.indexpage {
+ margin: 1em 3em;
+}
+body.indexpage p,
+body.indexpage div,
+body.file p {
+ margin: 1em 0;
+}
+
+.indexpage .rdoc-list p, .file .rdoc-list p {
+ margin: 0em 0;
+}
+
+.indexpage ol,
+.file #documentation ol {
+ line-height: 160%;
+}
+
+.indexpage ul,
+.file #documentation ul {
+ line-height: 160%;
+ list-style: none;
+}
+.indexpage ul :link,
+.indexpage ul :visited {
+ font-size: 16px;
+}
+
+.indexpage li,
+.file #documentation li {
+ padding-left: 20px;
+}
+
+.indexpage ol,
+.file #documentation ol {
+ margin-left: 20px;
+}
+
+.indexpage ol > li,
+.file #documentation ol > li {
+ padding-left: 0;
+}
+
+.indexpage ul > li,
+.file #documentation ul > li {
+ background: url(images/bullet_black.png) no-repeat left 4px;
+}
+.indexpage li.module {
+ background: url(images/package.png) no-repeat left 4px;
+}
+.indexpage li.class {
+ background: url(images/ruby.png) no-repeat left 4px;
+}
+.indexpage li.file {
+ background: url(images/page_white_text.png) no-repeat left 4px;
+}
+.file li p,
+.indexpage li p {
+ margin: 0 0;
+}
+
+/* @end */
+
+/* @group Top-Level Structure */
+
+.class #metadata,
+.file #metadata,
+.module #metadata {
+ float: left;
+ width: 260px;
+}
+
+.class #documentation,
+.file #documentation,
+.module #documentation {
+ margin: 2em 1em 5em 300px;
+ min-width: 340px;
+}
+
+.file #metadata {
+ margin: 0.8em;
+}
+
+#validator-badges {
+ clear: both;
+ margin: 1em 1em 2em;
+}
+
+/* @end */
+
+/* @group Metadata Section */
+#metadata .section {
+ background-color: #dedede;
+ -moz-border-radius: 5px;
+ -webkit-border-radius: 5px;
+ border: 1px solid #aaa;
+ margin: 0 8px 16px;
+ font-size: 90%;
+ overflow: hidden;
+}
+#metadata h3.section-header {
+ margin: 0;
+ padding: 2px 8px;
+ background: #ccc;
+ color: #666;
+ -moz-border-radius-topleft: 4px;
+ -moz-border-radius-topright: 4px;
+ -webkit-border-top-left-radius: 4px;
+ -webkit-border-top-right-radius: 4px;
+ border-bottom: 1px solid #aaa;
+}
+#metadata #home-section h3.section-header {
+ border-bottom: 0;
+}
+
+#metadata ul,
+#metadata dl,
+#metadata p {
+ padding: 8px;
+ list-style: none;
+}
+
+#file-metadata ul {
+ padding-left: 28px;
+ list-style-image: url(images/page_green.png);
+}
+
+dl.svninfo {
+ color: #666;
+ margin: 0;
+}
+dl.svninfo dt {
+ font-weight: bold;
+}
+
+ul.link-list li {
+ white-space: nowrap;
+}
+ul.link-list .type {
+ font-size: 8px;
+ text-transform: uppercase;
+ color: white;
+ background: #969696;
+ padding: 2px 4px;
+ -webkit-border-radius: 5px;
+}
+
+/* @end */
+
+
+/* @group Project Metadata Section */
+#project-metadata {
+ margin-top: 3em;
+}
+
+.file #project-metadata {
+ margin-top: 0em;
+}
+
+#project-metadata .section {
+ border: 1px solid #aaa;
+}
+#project-metadata h3.section-header {
+ border-bottom: 1px solid #aaa;
+ position: relative;
+}
+#project-metadata h3.section-header .search-toggle {
+ position: absolute;
+ right: 5px;
+}
+
+
+#project-metadata form {
+ color: #777;
+ background: #ccc;
+ padding: 8px 8px 16px;
+ border-bottom: 1px solid #bbb;
+}
+#project-metadata fieldset {
+ border: 0;
+}
+
+#no-class-search-results {
+ margin: 0 auto 1em;
+ text-align: center;
+ font-size: 14px;
+ font-weight: bold;
+ color: #aaa;
+}
+
+/* @end */
+
+
+/* @group Documentation Section */
+.description {
+ font-size: 100%;
+ color: #333;
+}
+
+.description p {
+ margin: 1em 0.4em;
+}
+
+.description li p {
+ margin: 0;
+}
+
+.description ul {
+ margin-left: 1.5em;
+}
+.description ul li {
+ line-height: 1.4em;
+}
+
+.description dl,
+#documentation dl {
+ margin: 8px 1.5em;
+ border: 1px solid #ccc;
+}
+.description dl {
+ font-size: 14px;
+}
+
+.description dt,
+#documentation dt {
+ padding: 2px 4px;
+ font-weight: bold;
+ background: #ddd;
+}
+.description dd,
+#documentation dd {
+ padding: 2px 12px;
+}
+.description dd + dt,
+#documentation dd + dt {
+ margin-top: 0.7em;
+}
+
+#documentation .section {
+ font-size: 90%;
+}
+
+#documentation h2.section-header {
+ margin-top: 2em;
+ padding: 0.75em 0.5em;
+ background: #ccc;
+ color: #333;
+ font-size: 175%;
+ border: 1px solid #bbb;
+ -moz-border-radius: 3px;
+ -webkit-border-radius: 3px;
+}
+
+#documentation h3.section-header {
+ margin-top: 2em;
+ padding: 0.25em 0.5em;
+ background-color: #dedede;
+ color: #333;
+ font-size: 150%;
+ border: 1px solid #bbb;
+ -moz-border-radius: 3px;
+ -webkit-border-radius: 3px;
+}
+
+#constants-list > dl,
+#attributes-list > dl {
+ margin: 1em 0 2em;
+ border: 0;
+}
+#constants-list > dl dt,
+#attributes-list > dl dt {
+ padding-left: 0;
+ font-weight: bold;
+ font-family: Monaco, "Andale Mono";
+ background: inherit;
+}
+#constants-list > dl dt a,
+#attributes-list > dl dt a {
+ color: inherit;
+}
+#constants-list > dl dd,
+#attributes-list > dl dd {
+ margin: 0 0 1em 0;
+ padding: 0;
+ color: #666;
+}
+
+.documentation-section h2 {
+ position: relative;
+}
+
+.documentation-section h2 a {
+ position: absolute;
+ top: 8px;
+ right: 10px;
+ font-size: 12px;
+ color: #9b9877;
+ visibility: hidden;
+}
+
+.documentation-section h2:hover a {
+ visibility: visible;
+}
+
+/* @group Method Details */
+
+#documentation .method-source-code {
+ display: none;
+}
+
+#documentation .method-detail {
+ margin: 0.5em 0;
+ padding: 0.5em 0;
+ cursor: pointer;
+}
+#documentation .method-detail:hover {
+ background-color: #f1edba;
+}
+#documentation .method-heading {
+ position: relative;
+ padding: 2px 4px 0 20px;
+ font-size: 125%;
+ font-weight: bold;
+ color: #333;
+ background: url(images/brick.png) no-repeat left bottom;
+}
+#documentation .method-heading :link,
+#documentation .method-heading :visited {
+ color: inherit;
+}
+#documentation .method-click-advice {
+ position: absolute;
+ top: 2px;
+ right: 5px;
+ font-size: 10px;
+ color: #9b9877;
+ visibility: hidden;
+ padding-right: 20px;
+ line-height: 20px;
+ background: url(images/zoom.png) no-repeat right top;
+}
+#documentation .method-detail:hover .method-click-advice {
+ visibility: visible;
+}
+
+#documentation .method-alias .method-heading {
+ color: #666;
+ background: url(images/brick_link.png) no-repeat left bottom;
+}
+
+#documentation .method-description,
+#documentation .aliases {
+ margin: 0 20px;
+ color: #666;
+}
+
+#documentation .method-description p,
+#documentation .aliases p {
+ line-height: 1.2em;
+}
+
+#documentation .aliases {
+ padding-top: 4px;
+ font-style: italic;
+ cursor: default;
+}
+#documentation .method-description p {
+ padding: 0;
+}
+#documentation .method-description p + p {
+ margin-bottom: 0.5em;
+}
+#documentation .method-description ul {
+ margin-left: 1.5em;
+}
+
+#documentation .attribute-method-heading {
+ background: url(images/tag_green.png) no-repeat left bottom;
+}
+#documentation #attribute-method-details .method-detail:hover {
+ background-color: transparent;
+ cursor: default;
+}
+#documentation .attribute-access-type {
+ font-size: 60%;
+ text-transform: uppercase;
+ vertical-align: super;
+ padding: 0 2px;
+}
+/* @end */
+
+/* @end */
+
+
+
+/* @group Source Code */
+
+div.method-source-code {
+ background: #262626;
+ color: #efefef;
+ margin: 1em;
+ padding: 0.5em;
+ border: 1px dashed #999;
+ overflow: hidden;
+}
+
+div.method-source-code pre {
+ background: inherit;
+ padding: 0;
+ color: white;
+ overflow: auto;
+}
+
+/* @group Ruby keyword styles */
+
+.ruby-constant { color: #7fffd4; background: transparent; }
+.ruby-keyword { color: #00ffff; background: transparent; }
+.ruby-ivar { color: #eedd82; background: transparent; }
+.ruby-operator { color: #00ffee; background: transparent; }
+.ruby-identifier { color: #ffdead; background: transparent; }
+.ruby-node { color: #ffa07a; background: transparent; }
+.ruby-comment { color: #b22222; font-weight: bold; background: transparent; }
+.ruby-regexp { color: #ffa07a; background: transparent; }
+.ruby-value { color: #7fffd4; background: transparent; }
+
+/* @end */
+/* @end */
+
+
+/* @group File Popup Contents */
+
+.file #metadata,
+.file-popup #metadata {
+}
+
+.file-popup dl {
+ font-size: 80%;
+ padding: 0.75em;
+ background-color: #dedede;
+ color: #333;
+ border: 1px solid #bbb;
+ -moz-border-radius: 3px;
+ -webkit-border-radius: 3px;
+}
+.file dt {
+ font-weight: bold;
+ padding-left: 22px;
+ line-height: 20px;
+ background: url(images/page_white_width.png) no-repeat left top;
+}
+.file dt.modified-date {
+ background: url(images/date.png) no-repeat left top;
+}
+.file dt.requires {
+ background: url(images/plugin.png) no-repeat left top;
+}
+.file dt.scs-url {
+ background: url(images/wrench.png) no-repeat left top;
+}
+
+.file dl dd {
+ margin: 0 0 1em 0;
+}
+.file #metadata dl dd ul {
+ list-style: circle;
+ margin-left: 20px;
+ padding-top: 0;
+}
+.file #metadata dl dd ul li {
+}
+
+
+.file h2 {
+ margin-top: 2em;
+ padding: 0.75em 0.5em;
+ background-color: #dedede;
+ color: #333;
+ font-size: 120%;
+ border: 1px solid #bbb;
+ -moz-border-radius: 3px;
+ -webkit-border-radius: 3px;
+}
+
+/* @end */
+
+
+
+
+/* @group ThickBox Styles */
+#TB_window {
+ font: 12px Arial, Helvetica, sans-serif;
+ color: #333333;
+}
+
+#TB_secondLine {
+ font: 10px Arial, Helvetica, sans-serif;
+ color:#666666;
+}
+
+#TB_window :link,
+#TB_window :visited { color: #666666; }
+#TB_window :link:hover,
+#TB_window :visited:hover { color: #000; }
+#TB_window :link:active,
+#TB_window :visited:active { color: #666666; }
+#TB_window :link:focus,
+#TB_window :visited:focus { color: #666666; }
+
+#TB_overlay {
+ position: fixed;
+ z-index:100;
+ top: 0px;
+ left: 0px;
+ height:100%;
+ width:100%;
+}
+
+.TB_overlayMacFFBGHack {background: url(images/macFFBgHack.png) repeat;}
+.TB_overlayBG {
+ background-color:#000;
+ filter:alpha(opacity=75);
+ -moz-opacity: 0.75;
+ opacity: 0.75;
+}
+
+* html #TB_overlay { /* ie6 hack */
+ position: absolute;
+ height: expression(document.body.scrollHeight > document.body.offsetHeight ? document.body.scrollHeight : document.body.offsetHeight + 'px');
+}
+
+#TB_window {
+ position: fixed;
+ background: #ffffff;
+ z-index: 102;
+ color:#000000;
+ display:none;
+ border: 4px solid #525252;
+ text-align:left;
+ top:50%;
+ left:50%;
+}
+
+* html #TB_window { /* ie6 hack */
+ position: absolute;
+ margin-top: expression(0 - parseInt(this.offsetHeight / 2) + (TBWindowMargin = document.documentElement && document.documentElement.scrollTop || document.body.scrollTop) + 'px');
+}
+
+#TB_window img#TB_Image {
+ display:block;
+ margin: 15px 0 0 15px;
+ border-right: 1px solid #ccc;
+ border-bottom: 1px solid #ccc;
+ border-top: 1px solid #666;
+ border-left: 1px solid #666;
+}
+
+#TB_caption{
+ height:25px;
+ padding:7px 30px 10px 25px;
+ float:left;
+}
+
+#TB_closeWindow{
+ height:25px;
+ padding:11px 25px 10px 0;
+ float:right;
+}
+
+#TB_closeAjaxWindow{
+ padding:7px 10px 5px 0;
+ margin-bottom:1px;
+ text-align:right;
+ float:right;
+}
+
+#TB_ajaxWindowTitle{
+ float:left;
+ padding:7px 0 5px 10px;
+ margin-bottom:1px;
+ font-size: 22px;
+}
+
+#TB_title{
+ background-color: #6C8C22;
+ color: #dedede;
+ height:40px;
+}
+#TB_title :link,
+#TB_title :visited {
+ color: white !important;
+ border-bottom: 1px dotted #dedede;
+}
+
+#TB_ajaxContent{
+ clear:both;
+ padding:2px 15px 15px 15px;
+ overflow:auto;
+ text-align:left;
+ line-height:1.4em;
+}
+
+#TB_ajaxContent.TB_modal{
+ padding:15px;
+}
+
+#TB_ajaxContent p{
+ padding:5px 0px 5px 0px;
+}
+
+#TB_load{
+ position: fixed;
+ display:none;
+ height:13px;
+ width:208px;
+ z-index:103;
+ top: 50%;
+ left: 50%;
+ margin: -6px 0 0 -104px; /* -height/2 0 0 -width/2 */
+}
+
+* html #TB_load { /* ie6 hack */
+ position: absolute;
+ margin-top: expression(0 - parseInt(this.offsetHeight / 2) + (TBWindowMargin = document.documentElement && document.documentElement.scrollTop || document.body.scrollTop) + 'px');
+}
+
+#TB_HideSelect{
+ z-index:99;
+ position:fixed;
+ top: 0;
+ left: 0;
+ background-color:#fff;
+ border:none;
+ filter:alpha(opacity=0);
+ -moz-opacity: 0;
+ opacity: 0;
+ height:100%;
+ width:100%;
+}
+
+* html #TB_HideSelect { /* ie6 hack */
+ position: absolute;
+ height: expression(document.body.scrollHeight > document.body.offsetHeight ? document.body.scrollHeight : document.body.offsetHeight + 'px');
+}
+
+#TB_iframeContent{
+ clear:both;
+ border:none;
+ margin-bottom:-1px;
+ margin-top:1px;
+ _margin-bottom:1px;
+}
+
+/* @end */
+
+/* @group Debugging Section */
+
+#debugging-toggle {
+ text-align: center;
+}
+#debugging-toggle img {
+ cursor: pointer;
+}
+
+#rdoc-debugging-section-dump {
+ display: none;
+ margin: 0 2em 2em;
+ background: #ccc;
+ border: 1px solid #999;
+}
+
+
+
+/* @end */
diff --git a/lib/rdoc/generator/texinfo.rb b/lib/rdoc/generator/texinfo.rb
deleted file mode 100644
index 99a1452f21..0000000000
--- a/lib/rdoc/generator/texinfo.rb
+++ /dev/null
@@ -1,81 +0,0 @@
-require 'rdoc/rdoc'
-require 'rdoc/generator'
-require 'rdoc/markup/to_texinfo'
-
-module RDoc
- module Generator
- # This generates Texinfo files for viewing with GNU Info or Emacs
- # from RDoc extracted from Ruby source files.
- class TEXINFO
- # What should the .info file be named by default?
- DEFAULT_INFO_FILENAME = 'rdoc.info'
-
- include Generator::MarkUp
-
- # Accept some options
- def initialize(options)
- @options = options
- @options.inline_source = true
- @options.op_name ||= 'rdoc.texinfo'
- @options.formatter = ::RDoc::Markup::ToTexInfo.new
- end
-
- # Generate the +texinfo+ files
- def generate(toplevels)
- @toplevels = toplevels
- @files, @classes = ::RDoc::Generator::Context.build_indices(@toplevels,
- @options)
-
- (@files + @classes).each { |x| x.value_hash }
-
- open(@options.op_name, 'w') do |f|
- f.puts TexinfoTemplate.new('files' => @files,
- 'classes' => @classes,
- 'filename' => @options.op_name.gsub(/texinfo/, 'info'),
- 'title' => @options.title).render
- end
- # TODO: create info files and install?
- end
-
- class << self
- # Factory? We don't need no stinkin' factory!
- alias_method :for, :new
- end
- end
-
- # Basically just a wrapper around ERB.
- # Should probably use RDoc::TemplatePage instead
- class TexinfoTemplate
- BASE_DIR = ::File.expand_path(::File.dirname(__FILE__)) # have to calculate this when the file's loaded.
-
- def initialize(values, file = 'texinfo.erb')
- @v, @file = [values, file]
- end
-
- def template
- ::File.read(::File.join(BASE_DIR, 'texinfo', @file))
- end
-
- # Go!
- def render
- ERB.new(template).result binding
- end
-
- def href(location, text)
- text # TODO: how does texinfo do hyperlinks?
- end
-
- def target(name, text)
- text # TODO: how do hyperlink targets work?
- end
-
- # TODO: this is probably implemented elsewhere?
- def method_prefix(section)
- { 'Class' => '.',
- 'Module' => '::',
- 'Instance' => '#',
- }[section['category']]
- end
- end
- end
-end
diff --git a/lib/rdoc/generator/texinfo/class.texinfo.erb b/lib/rdoc/generator/texinfo/class.texinfo.erb
deleted file mode 100644
index 74ecc59f7d..0000000000
--- a/lib/rdoc/generator/texinfo/class.texinfo.erb
+++ /dev/null
@@ -1,44 +0,0 @@
-@node <%= @v['class']['full_name'].gsub(/::/, '-') %>
-@chapter <%= @v['class']["classmod"] %> <%= @v['class']['full_name'] %>
-
-<% if @v['class']["parent"] and @v['class']['par_url'] %>
-Inherits <%= href @v['class']["par_url"], @v['class']["parent"] %><% end %>
-
-<%= @v['class']["description"] %>
-
-<% if @v['class']["includes"] %>
-Includes
-<% @v['class']["includes"].each do |include| %>
-* <%= href include["aref"], include["name"] %>
-<% end # @v['class']["includes"] %>
-<% end %>
-
-<% if @v['class']["sections"] %>
-<% @v['class']["sections"].each do |section| %>
-<% if section["attributes"] %>
-Attributes
-<% section["attributes"].each do |attributes| %>
-* <%= attributes["name"] %> <%= attributes["rw"] %> <%= attributes["a_desc"] %>
-<% end # section["attributes"] %>
-<% end %>
-<% end %>
-
-<% @v['class']["sections"].each do |section| %>
-<% if section["method_list"] %>
-Methods
-@menu
-<% section["method_list"].each_with_index do |method_list, i| %>
-<%= i %>
-<% (method_list["methods"] || []).each do |method| %>
-* <%= @v['class']['full_name'].gsub(/::/, '-') %><%= method_prefix method_list %><%= method['name'] %>::<% end %>
-<% end %>
-@end menu
-
-<% section["method_list"].each do |method_list| %>
-<% (method_list["methods"] || []).uniq.each do |method| %>
-<%= TexinfoTemplate.new(@v.merge({'method' => method, 'list' => method_list}),
- 'method.texinfo.erb').render %><% end %>
-<% end %>
-<% end # if section["method_list"] %>
-<% end # @v['class']["sections"] %>
-<% end %>
diff --git a/lib/rdoc/generator/texinfo/file.texinfo.erb b/lib/rdoc/generator/texinfo/file.texinfo.erb
deleted file mode 100644
index b619b94bd2..0000000000
--- a/lib/rdoc/generator/texinfo/file.texinfo.erb
+++ /dev/null
@@ -1,6 +0,0 @@
-<% if false %>
-<h2>File: <%= @v['file']["short_name"] %></h2>
-Path: <%= @v['file']["full_path"] %>
-
-<%= TexinfoTemplate.new(@v, 'content.texinfo.erb').render %>
-<% end %>
diff --git a/lib/rdoc/generator/texinfo/method.texinfo.erb b/lib/rdoc/generator/texinfo/method.texinfo.erb
deleted file mode 100644
index f5c2b73a4b..0000000000
--- a/lib/rdoc/generator/texinfo/method.texinfo.erb
+++ /dev/null
@@ -1,6 +0,0 @@
-@node <%= @v['class']['full_name'].gsub(/::/, '-') %><%= method_prefix @v['list'] %><%= @v['method']['name'] %>
-@section <%= @v['class']["classmod"] %> <%= @v['class']['full_name'] %><%= method_prefix @v['list'] %><%= @v['method']['name'] %>
-<%= @v['method']["type"] %> <%= @v['method']["category"] %> method:
-<%= target @v['method']["aref"], @v['method']['callseq'] ||
- @v['method']["name"] + @v['method']["params"] %>
-<%= @v['method']["m_desc"] %>
diff --git a/lib/rdoc/generator/texinfo/texinfo.erb b/lib/rdoc/generator/texinfo/texinfo.erb
deleted file mode 100644
index 235f63d73c..0000000000
--- a/lib/rdoc/generator/texinfo/texinfo.erb
+++ /dev/null
@@ -1,28 +0,0 @@
-\input texinfo @c -*-texinfo-*-
-@c %**start of header
-@setfilename <%= @v['filename'] %>
-@settitle <%= @v['title'] %>
-@c %**end of header
-
-@contents @c TODO: whitespace is a mess... =\
-
-@ifnottex
-@node Top
-
-@top <%= @v['title'] %>
-@end ifnottex
-
-<% if @f = @v['files'].detect { |f| f.name =~ /Readme/i } %>
-<%= @f.values['description'] %><% end %>
-
-@menu
-<% @v['classes'].each do |klass| %>
-* <%= klass.name.gsub(/::/, '-') %>::<% end %>
-@c TODO: add files
-@end menu
-
-<% (@v['classes'] || []).each_with_index do |klass, i| %>
-<%= TexinfoTemplate.new(@v.merge('class' => klass.values),
- 'class.texinfo.erb').render %><% end %>
-
-@bye
diff --git a/lib/rdoc/generator/xml.rb b/lib/rdoc/generator/xml.rb
deleted file mode 100644
index 0d4c5a7ea1..0000000000
--- a/lib/rdoc/generator/xml.rb
+++ /dev/null
@@ -1,117 +0,0 @@
-require 'rdoc/generator/html'
-
-##
-# Generate XML output as one big file
-
-class RDoc::Generator::XML < RDoc::Generator::HTML
-
- ##
- # Standard generator factory
-
- def self.for(options)
- new(options)
- end
-
- def initialize(*args)
- super
- end
-
- ##
- # Build the initial indices and output objects
- # based on an array of TopLevel objects containing
- # the extracted information.
-
- def generate(info)
- @info = info
- @files = []
- @classes = []
- @hyperlinks = {}
-
- build_indices
- generate_xml
- end
-
- ##
- # Generate:
- #
- # * a list of File objects for each TopLevel object.
- # * a list of Class objects for each first level
- # class or module in the TopLevel objects
- # * a complete list of all hyperlinkable terms (file,
- # class, module, and method names)
-
- def build_indices
- @info.each do |toplevel|
- @files << RDoc::Generator::File.new(toplevel, @options, RDoc::Generator::FILE_DIR)
- end
-
- RDoc::TopLevel.all_classes_and_modules.each do |cls|
- build_class_list(cls, @files[0], RDoc::Generator::CLASS_DIR)
- end
- end
-
- def build_class_list(from, html_file, class_dir)
- @classes << RDoc::Generator::Class.new(from, html_file, class_dir, @options)
- from.each_classmodule do |mod|
- build_class_list(mod, html_file, class_dir)
- end
- end
-
- ##
- # Generate all the HTML. For the one-file case, we generate
- # all the information in to one big hash
-
- def generate_xml
- values = {
- 'charset' => @options.charset,
- 'files' => gen_into(@files),
- 'classes' => gen_into(@classes)
- }
-
- template = RDoc::TemplatePage.new @template::ONE_PAGE
-
- if @options.op_name
- opfile = File.open(@options.op_name, "w")
- else
- opfile = $stdout
- end
- template.write_html_on(opfile, values)
- end
-
- def gen_into(list)
- res = []
- list.each do |item|
- res << item.value_hash
- end
- res
- end
-
- def gen_file_index
- gen_an_index(@files, 'Files')
- end
-
- def gen_class_index
- gen_an_index(@classes, 'Classes')
- end
-
- def gen_method_index
- gen_an_index(RDoc::Generator::HtmlMethod.all_methods, 'Methods')
- end
-
- def gen_an_index(collection, title)
- res = []
- collection.sort.each do |f|
- if f.document_self
- res << { "href" => f.path, "name" => f.index_name }
- end
- end
-
- return {
- "entries" => res,
- 'list_title' => title,
- 'index_url' => main_url,
- }
- end
-
-end
-
diff --git a/lib/rdoc/generator/xml/rdf.rb b/lib/rdoc/generator/xml/rdf.rb
deleted file mode 100644
index 7b15c69a18..0000000000
--- a/lib/rdoc/generator/xml/rdf.rb
+++ /dev/null
@@ -1,113 +0,0 @@
-require 'rdoc/generator/xml'
-
-module RDoc::Generator::XML::RDF
-
- CONTENTS_RDF = <<-EOF
-<% if defined? classes and classes["description"] then %>
- <description rd:parseType="Literal">
-<%= classes["description"] %>
- </description>
-<% end %>
-
-<% if defined? files and files["requires"] then %>
-<% files["requires"].each do |requires| %>
- <rd:required-file rd:name="<%= requires["name"] %>" />
-<% end # files["requires"] %>
-<% end %>
-
-<% if defined? classes and classes["includes"] then %>
- <IncludedModuleList>
-<% classes["includes"].each do |includes| %>
- <included-module rd:name="<%= includes["name"] %>" />
-<% end # includes["includes"] %>
- </IncludedModuleList>
-<% end %>
-
-<% if defined? classes and classes["sections"] then %>
-<% classes["sections"].each do |sections| %>
-<% if sections["attributes"] then %>
-<% sections["attributes"].each do |attributes| %>
- <contents>
- <Attribute rd:name="<%= attributes["name"] %>">
-<% if attributes["rw"] then %>
- <attribute-rw><%= attributes["rw"] %></attribute-rw>
-<% end %>
- <description rdf:parseType="Literal"><%= attributes["a_desc"] %></description>
- </Attribute>
- </contents>
-<% end # sections["attributes"] %>
-<% end %>
-
-<% if sections["method_list"] then %>
-<% sections["method_list"].each do |method_list| %>
-<% if method_list["methods"] then %>
-<% method_list["methods"].each do |methods| %>
- <contents>
- <Method rd:name="<%= methods["name"] %>" rd:visibility="<%= methods["type"] %>"
- rd:category="<%= methods["category"] %>" rd:id="<%= methods["aref"] %>">
- <parameters><%= methods["params"] %></parameters>
-<% if methods["m_desc"] then %>
- <description rdf:parseType="Literal">
-<%= methods["m_desc"] %>
- </description>
-<% end %>
-<% if methods["sourcecode"] then %>
- <source-code-listing rdf:parseType="Literal">
-<%= methods["sourcecode"] %>
- </source-code-listing>
-<% end %>
- </Method>
- </contents>
-<% end # method_list["methods"] %>
-<% end %>
-<% end # sections["method_list"] %>
-<% end %>
- <!-- end method list -->
-<% end # classes["sections"] %>
-<% end %>
- EOF
-
-########################################################################
-
- ONE_PAGE = %{<?xml version="1.0" encoding="utf-8"?>
-<rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
- xmlns="http://pragprog.com/rdoc/rdoc.rdf#"
- xmlns:rd="http://pragprog.com/rdoc/rdoc.rdf#">
-
-<!-- RDoc -->
-<% values["files"].each do |files| %>
- <rd:File rd:name="<%= files["short_name"] %>" rd:id="<%= files["href"] %>">
- <path><%= files["full_path"] %></path>
- <dtm-modified><%= files["dtm_modified"] %></dtm-modified>
-} + CONTENTS_RDF + %{
- </rd:File>
-<% end # values["files"] %>
-<% values["classes"].each do |classes| %>
- <<%= values["classmod"] %> rd:name="<%= classes["full_name"] %>" rd:id="<%= classes["full_name"] %>">
- <classmod-info>
-<% if classes["infiles"] then %>
- <InFiles>
-<% classes["infiles"].each do |infiles| %>
- <infile>
- <File rd:name="<%= infiles["full_path"] %>"
-<% if infiles["full_path_url"] then %>
- rdf:about="<%= infiles["full_path_url"] %>"
-<% end %>
- />
- </infile>
-<% end # classes["infiles"] %>
- </InFiles>
-<% end %>
-<% if classes["parent"] then %>
- <superclass><%= href classes["par_url"], classes["parent"] %></superclass>
-<% end %>
- </classmod-info>
-} + CONTENTS_RDF + %{
- </<%= classes["classmod"] %>>
-<% end # values["classes"] %>
-<!-- /RDoc -->
-</rdf:RDF>
-}
-
-end
-
diff --git a/lib/rdoc/generator/xml/xml.rb b/lib/rdoc/generator/xml/xml.rb
deleted file mode 100644
index 4b54e7350f..0000000000
--- a/lib/rdoc/generator/xml/xml.rb
+++ /dev/null
@@ -1,123 +0,0 @@
-require 'rdoc/generator/xml'
-
-module RDoc::Generator::XML::XML
-
- CONTENTS_XML = <<-EOF
-<% if defined? classes and classes["description"] then %>
- <description>
-<%= classes["description"] %>
- </description>
-<% end %>
- <contents>
-<% if defined? files and files["requires"] then %>
- <required-file-list>
-<% files["requires"].each do |requires| %>
- <required-file name="<%= requires["name"] %>"
-<% if requires["aref"] then %>
- href="<%= requires["aref"] %>"
-<% end %>
- />
-<% end %><%# files["requires"] %>
- </required-file-list>
-<% end %>
-<% if defined? classes and classes["sections"] then %>
-<% classes["sections"].each do |sections| %>
-<% if sections["constants"] then %>
- <constant-list>
-<% sections["constants"].each do |constant| %>
- <constant name="<%= constant["name"] %>">
-<% if constant["value"] then %>
- <value><%= constant["value"] %></value>
-<% end %>
- <description><%= constant["a_desc"] %></description>
- </constant>
-<% end %><%# sections["constants"] %>
- </constant-list>
-<% end %>
-<% if sections["attributes"] then %>
- <attribute-list>
-<% sections["attributes"].each do |attributes| %>
- <attribute name="<%= attributes["name"] %>">
-<% if attributes["rw"] then %>
- <attribute-rw><%= attributes["rw"] %></attribute-rw>
-<% end %>
- <description><%= attributes["a_desc"] %></description>
- </attribute>
-<% end %><%# sections["attributes"] %>
- </attribute-list>
-<% end %>
-<% if sections["method_list"] then %>
- <method-list>
-<% sections["method_list"].each do |method_list| %>
-<% if method_list["methods"] then %>
-<% method_list["methods"].each do |methods| %>
- <method name="<%= methods["name"] %>" type="<%= methods["type"] %>" category="<%= methods["category"] %>" id="<%= methods["aref"] %>">
- <parameters><%= methods["params"] %></parameters>
-<% if methods["m_desc"] then %>
- <description>
-<%= methods["m_desc"] %>
- </description>
-<% end %>
-<% if methods["sourcecode"] then %>
- <source-code-listing>
-<%= methods["sourcecode"] %>
- </source-code-listing>
-<% end %>
- </method>
-<% end %><%# method_list["methods"] %>
-<% end %>
-<% end %><%# sections["method_list"] %>
- </method-list>
-<% end %>
-<% end %><%# classes["sections"] %>
-<% end %>
-<% if defined? classes and classes["includes"] then %>
- <included-module-list>
-<% classes["includes"].each do |includes| %>
- <included-module name="<%= includes["name"] %>"
-<% if includes["aref"] then %>
- href="<%= includes["aref"] %>"
-<% end %>
- />
-<% end %><%# classes["includes"] %>
- </included-module-list>
-<% end %>
- </contents>
- EOF
-
- ONE_PAGE = %{<?xml version="1.0" encoding="utf-8"?>
-<rdoc>
-<file-list>
-<% values["files"].each do |files| %>
- <file name="<%= files["short_name"] %>" id="<%= files["href"] %>">
- <file-info>
- <path><%= files["full_path"] %></path>
- <dtm-modified><%= files["dtm_modified"] %></dtm-modified>
- </file-info>
-} + CONTENTS_XML + %{
- </file>
-<% end %><%# values["files"] %>
-</file-list>
-<class-module-list>
-<% values["classes"].each do |classes| %>
- <<%= classes["classmod"] %> name="<%= classes["full_name"] %>" id="<%= classes["full_name"] %>">
- <classmod-info>
-<% if classes["infiles"] then %>
- <infiles>
-<% classes["infiles"].each do |infiles| %>
- <infile><%= href infiles["full_path_url"], infiles["full_path"] %></infile>
-<% end %><%# classes["infiles"] %>
- </infiles>
-<% end %>
-<% if classes["parent"] then %>
- <superclass><%= href classes["par_url"], classes["parent"] %></superclass>
-<% end %>
- </classmod-info>
-} + CONTENTS_XML + %{
- </<%= classes["classmod"] %>>
-<% end %><%# values["classes"] %>
-</class-module-list>
-</rdoc>
-}
-
-end
diff --git a/lib/rdoc/ghost_method.rb b/lib/rdoc/ghost_method.rb
new file mode 100644
index 0000000000..192b46f51f
--- /dev/null
+++ b/lib/rdoc/ghost_method.rb
@@ -0,0 +1,8 @@
+require 'rdoc/any_method'
+
+##
+# GhostMethod represents a method referenced only by a comment
+
+class RDoc::GhostMethod < RDoc::AnyMethod
+end
+
diff --git a/lib/rdoc/include.rb b/lib/rdoc/include.rb
new file mode 100644
index 0000000000..9cebd3d8ef
--- /dev/null
+++ b/lib/rdoc/include.rb
@@ -0,0 +1,100 @@
+require 'rdoc/code_object'
+
+##
+# A Module include in a class with \#include
+
+class RDoc::Include < RDoc::CodeObject
+
+ ##
+ # Name of included module
+
+ attr_accessor :name
+
+ ##
+ # Creates a new Include for +name+ with +comment+
+
+ def initialize(name, comment)
+ super()
+ @name = name
+ self.comment = comment
+ @module = nil # cache for module if found
+ end
+
+ ##
+ # Includes are sorted by name
+
+ def <=> other
+ return unless self.class === other
+
+ name <=> other.name
+ end
+
+ def == other # :nodoc:
+ self.class == other.class and
+ self.name == other.name
+ end
+
+ ##
+ # Full name based on #module
+
+ def full_name
+ m = self.module
+ RDoc::ClassModule === m ? m.full_name : @name
+ end
+
+ def inspect # :nodoc:
+ "#<%s:0x%x %s.include %s>" % [
+ self.class,
+ object_id,
+ parent_name, @name,
+ ]
+ end
+
+ ##
+ # Attempts to locate the included module object. Returns the name if not
+ # known.
+ #
+ # The scoping rules of Ruby to resolve the name of an included module are:
+ # - first look into the children of the current context;
+ # - if not found, look into the children of included modules,
+ # in reverse inclusion order;
+ # - if still not found, go up the hierarchy of names.
+
+ def module
+ return @module if @module
+
+ # search the current context
+ return @name unless parent
+ full_name = parent.child_name(@name)
+ @module = RDoc::TopLevel.modules_hash[full_name]
+ return @module if @module
+ return @name if @name =~ /^::/
+
+ # search the includes before this one, in reverse order
+ searched = parent.includes.take_while { |i| i != self }.reverse
+ searched.each do |i|
+ inc = i.module
+ next if String === inc
+ full_name = inc.child_name(@name)
+ @module = RDoc::TopLevel.modules_hash[full_name]
+ return @module if @module
+ end
+
+ # go up the hierarchy of names
+ p = parent.parent
+ while p
+ full_name = p.child_name(@name)
+ @module = RDoc::TopLevel.modules_hash[full_name]
+ return @module if @module
+ p = p.parent
+ end
+
+ @name
+ end
+
+ def to_s # :nodoc:
+ "include #@name in: #{parent}"
+ end
+
+end
+
diff --git a/lib/rdoc/known_classes.rb b/lib/rdoc/known_classes.rb
index dbb1802f5a..863be4bd5c 100644
--- a/lib/rdoc/known_classes.rb
+++ b/lib/rdoc/known_classes.rb
@@ -5,10 +5,12 @@ module RDoc
KNOWN_CLASSES = {
"rb_cArray" => "Array",
+ "rb_cBasicObject" => "BasicObject",
"rb_cBignum" => "Bignum",
"rb_cClass" => "Class",
"rb_cData" => "Data",
"rb_cDir" => "Dir",
+ "rb_cEncoding" => "Encoding",
"rb_cFalseClass" => "FalseClass",
"rb_cFile" => "File",
"rb_cFixnum" => "Fixnum",
@@ -24,6 +26,7 @@ module RDoc
"rb_cRange" => "Range",
"rb_cRegexp" => "Regexp",
"rb_cRubyVM" => "RubyVM",
+ "rb_cSocket" => "Socket",
"rb_cString" => "String",
"rb_cStruct" => "Struct",
"rb_cSymbol" => "Symbol",
@@ -34,7 +37,7 @@ module RDoc
"rb_eArgError" => "ArgError",
"rb_eEOFError" => "EOFError",
"rb_eException" => "Exception",
- "rb_eFatal" => "Fatal",
+ "rb_eFatal" => "fatal",
"rb_eFloatDomainError" => "FloatDomainError",
"rb_eIOError" => "IOError",
"rb_eIndexError" => "IndexError",
@@ -47,7 +50,7 @@ module RDoc
"rb_eRuntimeError" => "RuntimeError",
"rb_eScriptError" => "ScriptError",
"rb_eSecurityError" => "SecurityError",
- "rb_eSignal" => "Signal",
+ "rb_eSignal" => "SignalException",
"rb_eStandardError" => "StandardError",
"rb_eSyntaxError" => "SyntaxError",
"rb_eSystemCallError" => "SystemCallError",
@@ -56,6 +59,7 @@ module RDoc
"rb_eZeroDivError" => "ZeroDivError",
"rb_mComparable" => "Comparable",
+ "rb_mDL" => "DL",
"rb_mEnumerable" => "Enumerable",
"rb_mErrno" => "Errno",
"rb_mFileTest" => "FileTest",
diff --git a/lib/rdoc/markup.rb b/lib/rdoc/markup.rb
index a584a79b75..07fd5493c8 100644
--- a/lib/rdoc/markup.rb
+++ b/lib/rdoc/markup.rb
@@ -36,7 +36,7 @@ require 'rdoc'
# sequences, and to add special processing for text that matches a
# regular expression. Here we make WikiWords significant to the parser,
# and also make the sequences {word} and \<no>text...</no> signify
-# strike-through text. When then subclass the HTML output class to deal
+# strike-through text. We then subclass the HTML output class to deal
# with these:
#
# require 'rdoc/markup'
@@ -48,55 +48,555 @@ require 'rdoc'
# end
# end
#
-# m = RDoc::Markup.new
-# m.add_word_pair("{", "}", :STRIKE)
-# m.add_html("no", :STRIKE)
+# markup = RDoc::Markup.new
+# markup.add_word_pair("{", "}", :STRIKE)
+# markup.add_html("no", :STRIKE)
#
-# m.add_special(/\b([A-Z][a-z]+[A-Z]\w+)/, :WIKIWORD)
+# markup.add_special(/\b([A-Z][a-z]+[A-Z]\w+)/, :WIKIWORD)
#
-# wh = WikiHtml.new
+# wh = WikiHtml.new markup
# wh.add_tag(:STRIKE, "<strike>", "</strike>")
#
# puts "<body>#{wh.convert ARGF.read}</body>"
#
+# == Encoding
+#
+# Where Encoding support is available, RDoc will automatically convert all
+# documents to the same output encoding. The output encoding can be set via
+# RDoc::Options#encoding and defaults to Encoding.default_external.
+#
+# = \RDoc Markup Reference
+#
+# == Block Markup
+#
+# === Paragraphs and Verbatim
+#
+# The markup engine looks for a document's natural left margin. This is
+# used as the initial margin for the document.
+#
+# Consecutive lines starting at this margin are considered to be a
+# paragraph. Empty lines separate paragraphs.
+#
+# Any line that starts to the right of the current margin is treated
+# as verbatim text. This is useful for code listings:
+#
+# 3.times { puts "Ruby" }
+#
+# In verbatim text, two or more blank lines are collapsed into one,
+# and trailing blank lines are removed:
+#
+# This is the first line
+#
+#
+# This is the second non-blank line,
+# after 2 blank lines in the source markup.
+#
+#
+# There were two trailing blank lines right above this paragraph, that
+# have been removed. In addition, the verbatim text has been shifted
+# left, so the amount of indentation of verbatim text is unimportant.
+#
+# === Headers and Rules
+#
+# A line starting with an equal sign (=) is treated as a
+# heading. Level one headings have one equals sign, level two headings
+# have two, and so on until level six, which is the maximum
+# (seven hyphens or more result in a level six heading).
+#
+# For example, the above header was obtained with:
+# == Headers and Rules
+#
+# A line starting with three or more hyphens (at the current indent)
+# generates a horizontal rule. The more hyphens, the thicker the rule
+# (within reason, and if supported by the output device).
+#
+# In the case of HTML output, three dashes generate a 1-pixel high rule,
+# four dashes result in 2 pixels, and so on. The actual height is limited
+# to 10 pixels:
+#
+# ---
+# -----
+# -----------------------------------------------------
+#
+# produces:
+#
+# ---
+# -----
+# -----------------------------------------------------
+#
+# === Simple Lists
+#
+# If a paragraph starts with a "*", "-", "<digit>." or "<letter>.",
+# then it is taken to be the start of a list. The margin is increased to be
+# the first non-space following the list start flag. Subsequent lines
+# should be indented to this new margin until the list ends. For example:
+#
+# * this is a list with three paragraphs in
+# the first item. This is the first paragraph.
+#
+# And this is the second paragraph.
+#
+# 1. This is an indented, numbered list.
+# 2. This is the second item in that list
+#
+# This is the third conventional paragraph in the
+# first list item.
+#
+# * This is the second item in the original list
+#
+# produces:
+#
+# * this is a list with three paragraphs in
+# the first item. This is the first paragraph.
+#
+# And this is the second paragraph.
+#
+# 1. This is an indented, numbered list.
+# 2. This is the second item in that list
+#
+# This is the third conventional paragraph in the
+# first list item.
+#
+# * This is the second item in the original list
+#
+# === Labeled Lists
+#
+# You can also construct labeled lists, sometimes called description
+# or definition lists. Do this by putting the label in square brackets
+# and indenting the list body:
+#
+# [cat] a small furry mammal
+# that seems to sleep a lot
+#
+# [ant] a little insect that is known
+# to enjoy picnics
+#
+# produces:
+#
+# [cat] a small furry mammal
+# that seems to sleep a lot
+#
+# [ant] a little insect that is known
+# to enjoy picnics
+#
+# If you want the list bodies to line up to the left of the labels,
+# use two colons:
+#
+# cat:: a small furry mammal
+# that seems to sleep a lot
+#
+# ant:: a little insect that is known
+# to enjoy picnics
+#
+# produces:
+#
+# cat:: a small furry mammal
+# that seems to sleep a lot
+#
+# ant:: a little insect that is known
+# to enjoy picnics
+#
+# Notice that blank lines right after the label are ignored in labeled lists:
+#
+# [one]
+#
+# definition 1
+#
+# [two]
+#
+# definition 2
+#
+# produces the same output as
+#
+# [one] definition 1
+# [two] definition 2
+#
+#
+# === Lists and Verbatim
+#
+# If you want to introduce a verbatim section right after a list, it has to be
+# less indented than the list item bodies, but more indented than the list
+# label, letter, digit or bullet. For instance:
+#
+# * point 1
+#
+# * point 2, first paragraph
+#
+# point 2, second paragraph
+# verbatim text inside point 2
+# point 2, third paragraph
+# verbatim text outside of the list (the list is therefore closed)
+# regular paragraph after the list
+#
+# produces:
+#
+# * point 1
+#
+# * point 2, first paragraph
+#
+# point 2, second paragraph
+# verbatim text inside point 2
+# point 2, third paragraph
+# verbatim text outside of the list (the list is therefore closed)
+# regular paragraph after the list
+#
+#
+# == Text Markup
+#
+# === Bold, Italic, Typewriter Text
+#
+# You can use markup within text (except verbatim) to change the
+# appearance of parts of that text. Out of the box, RDoc::Markup
+# supports word-based and general markup.
+#
+# Word-based markup uses flag characters around individual words:
+#
+# <tt>\*_word_\*</tt>:: displays _word_ in a *bold* font
+# <tt>\__word_\_</tt>:: displays _word_ in an _emphasized_ font
+# <tt>\+_word_\+</tt>:: displays _word_ in a +code+ font
+#
+# General markup affects text between a start delimiter and an end
+# delimiter. Not surprisingly, these delimiters look like HTML markup.
+#
+# <tt>\<b>_text_</b></tt>:: displays _text_ in a *bold* font
+# <tt>\<em>_text_</em></tt>:: displays _text_ in an _emphasized_ font
+# (alternate tag: <tt>\<i></tt>)
+# <tt>\<tt>_text_\</tt></tt>:: displays _text_ in a +code+ font
+# (alternate tag: <tt>\<code></tt>)
+#
+# Unlike conventional Wiki markup, general markup can cross line
+# boundaries. You can turn off the interpretation of markup by
+# preceding the first character with a backslash (see <i>Escaping
+# Text Markup</i>, below).
+#
+# === Links
+#
+# Links to starting with +http:+, +https:+, +mailto:+, +ftp:+ or +www.+
+# are recognized. An HTTP url that references an external image file is
+# converted into an inline image element.
+#
+# Links starting with <tt>rdoc-ref:</tt> will link to the referenced class,
+# module, method, file, etc. If the referenced item is not documented the
+# text will be and no link will be generated.
+#
+# Links starting with +link:+ refer to local files whose path is relative to
+# the <tt>--op</tt> directory.
+#
+# Links can also be of the form <tt>label[url]</tt>, in which case +label+ is
+# used in the displayed text, and +url+ is used as the target. If +label+
+# contains multiple words, put it in braces: <tt>{multi word label}[url]</tt>.
+# The +url+ may be an +http:+-type link or a cross-reference to a class,
+# module or method with a label.
+#
+# Links with the <tt>rdoc-ref:</tt> scheme will link to the referenced class,
+# module, method, file, etc. If the referenced item is does not exist
+# no link will be generated and <tt>rdoc-ref:</tt> will be removed from the
+# resulting text.
+#
+# Links starting with +link:+ refer to local files whose path is relative to
+# the <tt>--op</tt> directory. Use <tt>rdoc-ref:</tt> instead of
+# <tt>link:</tt> to link to files generated by RDoc as the link target may
+# be different across RDoc generators.
+#
+# Example links:
+#
+# https://github.com/rdoc/rdoc
+# mailto:user@example.com
+# {RDoc Documentation}[http://rdoc.rubyforge.org]
+# {RDoc Markup}[rdoc-ref:RDoc::Markup]
+#
+# === Escaping Text Markup
+#
+# Text markup can be escaped with a backslash, as in \<tt>, which was obtained
+# with <tt>\\<tt></tt>. Except in verbatim sections and between \<tt> tags,
+# to produce a backslash you have to double it unless it is followed by a
+# space, tab or newline. Otherwise, the HTML formatter will discard it, as it
+# is used to escape potential links:
+#
+# * The \ must be doubled if not followed by white space: \\.
+# * But not in \<tt> tags: in a Regexp, <tt>\S</tt> matches non-space.
+# * This is a link to {ruby-lang}[www.ruby-lang.org].
+# * This is not a link, however: \{ruby-lang.org}[www.ruby-lang.org].
+# * This will not be linked to \RDoc::RDoc#document
+#
+# generates:
+#
+# * The \ must be doubled if not followed by white space: \\.
+# * But not in \<tt> tags: in a Regexp, <tt>\S</tt> matches non-space.
+# * This is a link to {ruby-lang}[www.ruby-lang.org]
+# * This is not a link, however: \{ruby-lang.org}[www.ruby-lang.org]
+# * This will not be linked to \RDoc::RDoc#document
+#
+# Inside \<tt> tags, more precisely, leading backslashes are removed only if
+# followed by a markup character (<tt><*_+</tt>), a backslash, or a known link
+# reference (a known class or method). So in the example above, the backslash
+# of <tt>\S</tt> would be removed if there was a class or module named +S+ in
+# the current context.
+#
+# This behavior is inherited from RDoc version 1, and has been kept for
+# compatibility with existing RDoc documentation.
+#
+# === Conversion of characters
+#
+# HTML will convert two/three dashes to an em-dash. Other common characters are
+# converted as well:
+#
+# em-dash:: -- or ---
+# ellipsis:: ...
+#
+# single quotes:: 'text' or `text'
+# double quotes:: "text" or ``text''
+#
+# copyright:: (c)
+# registered trademark:: (r)
+#
+# produces:
+#
+# em-dash:: -- or ---
+# ellipsis:: ...
+#
+# single quotes:: 'text' or `text'
+# double quotes:: "text" or ``text''
+#
+# copyright:: (c)
+# registered trademark:: (r)
+#
+#
+# == Documenting Source Code
+#
+# Comment blocks can be written fairly naturally, either using <tt>#</tt> on
+# successive lines of the comment, or by including the comment in
+# a <tt>=begin</tt>/<tt>=end</tt> block. If you use the latter form,
+# the <tt>=begin</tt> line _must_ be flagged with an +rdoc+ tag:
+#
+# =begin rdoc
+# Documentation to be processed by RDoc.
+#
+# ...
+# =end
+#
+# RDoc stops processing comments if it finds a comment line starting
+# with <tt>--</tt> right after the <tt>#</tt> character (otherwise,
+# it will be treated as a rule if it has three dashes or more).
+# This can be used to separate external from internal comments,
+# or to stop a comment being associated with a method, class, or module.
+# Commenting can be turned back on with a line that starts with <tt>++</tt>.
+#
+# ##
+# # Extract the age and calculate the date-of-birth.
+# #--
+# # FIXME: fails if the birthday falls on February 29th
+# #++
+# # The DOB is returned as a Time object.
+#
+# def get_dob(person)
+# # ...
+# end
+#
+# Names of classes, files, and any method names containing an underscore or
+# preceded by a hash character are automatically linked from comment text to
+# their description. This linking works inside the current class or module,
+# and with ancestor methods (in included modules or in the superclass).
+#
+# Method parameter lists are extracted and displayed with the method
+# description. If a method calls +yield+, then the parameters passed to yield
+# will also be displayed:
+#
+# def fred
+# ...
+# yield line, address
+#
+# This will get documented as:
+#
+# fred() { |line, address| ... }
+#
+# You can override this using a comment containing ':yields: ...' immediately
+# after the method definition
+#
+# def fred # :yields: index, position
+# # ...
+#
+# yield line, address
+#
+# which will get documented as
+#
+# fred() { |index, position| ... }
+#
+# +:yields:+ is an example of a documentation directive. These appear
+# immediately after the start of the document element they are modifying.
+#
+# RDoc automatically cross-references words with underscores or camel-case.
+# To suppress cross-references, prefix the word with a \ character. To
+# include special characters like "<tt>\n</tt>", you'll need to use
+# two \ characters in normal text, but only one in \<tt> text:
+#
+# "\\n" or "<tt>\n</tt>"
+#
+# produces:
+#
+# "\\n" or "<tt>\n</tt>"
+#
+# == Directives
+#
+# Directives are keywords surrounded by ":" characters.
+#
+# === Controlling what is documented
+#
+# [+:nodoc:+ / <tt>:nodoc: all</tt>]
+# This directive prevents documentation for the element from
+# being generated. For classes and modules, methods, aliases,
+# constants, and attributes directly within the affected class or
+# module also will be omitted. By default, though, modules and
+# classes within that class or module _will_ be documented. This is
+# turned off by adding the +all+ modifier.
+#
+# module MyModule # :nodoc:
+# class Input
+# end
+# end
+#
+# module OtherModule # :nodoc: all
+# class Output
+# end
+# end
+#
+# In the above code, only class <tt>MyModule::Input</tt> will be documented.
+#
+# The +:nodoc:+ directive, like +:enddoc:+, +:stopdoc:+ and +:startdoc:+
+# presented below, is local to the current file: if you do not want to
+# document a module that appears in several files, specify +:nodoc:+ on each
+# appearance, at least once per file.
+#
+# [+:stopdoc:+ / +:startdoc:+]
+# Stop and start adding new documentation elements to the current container.
+# For example, if a class has a number of constants that you don't want to
+# document, put a +:stopdoc:+ before the first, and a +:startdoc:+ after the
+# last. If you don't specify a +:startdoc:+ by the end of the container,
+# disables documentation for the rest of the current file.
+#
+# [+:doc:+]
+# Forces a method or attribute to be documented even if it wouldn't be
+# otherwise. Useful if, for example, you want to include documentation of a
+# particular private method.
+#
+# [+:enddoc:+]
+# Document nothing further at the current level: directives +:startdoc:+ and
+# +:doc:+ that appear after this will not be honored for the current container
+# (file, class or module), in the current file.
+#
+# [+:notnew:+ / +:not_new:+ / +:not-new:+ ]
+# Only applicable to the +initialize+ instance method. Normally RDoc
+# assumes that the documentation and parameters for +initialize+ are
+# actually for the +new+ method, and so fakes out a +new+ for the class.
+# The +:notnew:+ directive stops this. Remember that +initialize+ is private,
+# so you won't see the documentation unless you use the +-a+ command line
+# option.
+#
+# === Other directives
+#
+# [+:include:+ _filename_]
+# Include the contents of the named file at this point. This directive
+# must appear alone on one line, possibly preceded by spaces. In this
+# position, it can be escaped with a \ in front of the first colon.
+#
+# The file will be searched for in the directories listed by the +--include+
+# option, or in the current directory by default. The contents of the file
+# will be shifted to have the same indentation as the ':' at the start of
+# the +:include:+ directive.
+#
+# [+:title:+ _text_]
+# Sets the title for the document. Equivalent to the <tt>--title</tt>
+# command line parameter. (The command line parameter overrides any :title:
+# directive in the source).
+#
+# [+:main:+ _name_]
+# Equivalent to the <tt>--main</tt> command line parameter.
+#
+# [<tt>:category: section</tt>]
+# Adds this item to the named +section+ overriding the current section. Use
+# this to group methods by section in RDoc output while maintaining a
+# sensible ordering (like alphabetical).
+#
+# # :category: Utility Methods
+# #
+# # CGI escapes +text+
+#
+# def convert_string text
+# CGI.escapeHTML text
+# end
+#
+# An empty category will place the item in the default category:
+#
+# # :category:
+# #
+# # This method is in the default category
+#
+# def some_method
+# # ...
+# end
+#
+# Unlike the :section: directive, :category: is not sticky. The category
+# only applies to the item immediately following the comment.
+#
+# Use the :section: directive to provide introductory text for a section of
+# documentation.
+#
+# [<tt>:section: title</tt>]
+# Provides section introductory text in RDoc output. The title following
+# +:section:+ is used as the section name and the remainder of the comment
+# containing the section is used as introductory text. A section's comment
+# block must be separated from following comment blocks. Use an empty title
+# to switch to the default section.
+#
+# The :section: directive is sticky, so subsequent methods, aliases,
+# attributes, and classes will be contained in this section until the
+# section is changed. The :category: directive will override the :section:
+# directive.
+#
+# A :section: comment block may have one or more lines before the :section:
+# directive. These will be removed, and any identical lines at the end of
+# the block are also removed. This allows you to add visual cues to the
+# section.
+#
+# Example:
+#
+# # ----------------------------------------
+# # :section: My Section
+# # This is the section that I wrote.
+# # See it glisten in the noon-day sun.
+# # ----------------------------------------
+#
+# ##
+# # Comment for some_method
+#
+# def some_method
+# # ...
+# end
+#
+# [+:call-seq:+]
+# Lines up to the next blank line in the comment are treated as the method's
+# calling sequence, overriding the default parsing of method parameters and
+# yield arguments.
+#
+# Further directives can be found in RDoc::Parser::Ruby and RDoc::Parser::C.
#--
-# Author:: Dave Thomas, dave@pragmaticprogrammer.com
-# License:: Ruby license
+# Original Author:: Dave Thomas, dave@pragmaticprogrammer.com
+# License:: Ruby license
class RDoc::Markup
- SPACE = ?\s
-
- # List entries look like:
- # * text
- # 1. text
- # [label] text
- # label:: text
- #
- # Flag it as a list entry, and work out the indent for subsequent lines
-
- SIMPLE_LIST_RE = /^(
- ( \* (?# bullet)
- |- (?# bullet)
- |\d+\. (?# numbered )
- |[A-Za-z]\. (?# alphabetically numbered )
- )
- \s+
- )\S/x
+ ##
+ # An AttributeManager which handles inline markup.
- LABEL_LIST_RE = /^(
- ( \[.*?\] (?# labeled )
- |\S.*:: (?# note )
- )(?:\s+|$)
- )/x
+ attr_reader :attribute_manager
##
- # Take a block of text and use various heuristics to determine it's
+ # Take a block of text and use various heuristics to determine its
# structure (paragraphs, lists, and so on). Invoke an event handler as we
# identify significant chunks.
- def initialize
- @am = RDoc::Markup::AttributeManager.new
+ def initialize attribute_manager = nil
+ @attribute_manager = attribute_manager || RDoc::Markup::AttributeManager.new
@output = nil
end
@@ -106,14 +606,14 @@ class RDoc::Markup
# formatters can recognize by their +name+.
def add_word_pair(start, stop, name)
- @am.add_word_pair(start, stop, name)
+ @attribute_manager.add_word_pair(start, stop, name)
end
##
# Add to the sequences recognized as general markup.
def add_html(tag, name)
- @am.add_html(tag, name)
+ @attribute_manager.add_html(tag, name)
end
##
@@ -126,253 +626,27 @@ class RDoc::Markup
# accept_special method.
def add_special(pattern, name)
- @am.add_special(pattern, name)
+ @attribute_manager.add_special(pattern, name)
end
##
- # We take a string, split it into lines, work out the type of each line,
- # and from there deduce groups of lines (for example all lines in a
- # paragraph). We then invoke the output formatter using a Visitor to
- # display the result.
-
- def convert(str, op)
- lines = str.split(/\r?\n/).map { |line| Line.new line }
- @lines = Lines.new lines
-
- return "" if @lines.empty?
- @lines.normalize
- assign_types_to_lines
- group = group_lines
- # call the output formatter to handle the result
- #group.each { |line| p line }
- group.accept @am, op
- end
-
- private
-
- ##
- # Look through the text at line indentation. We flag each line as being
- # Blank, a paragraph, a list element, or verbatim text.
-
- def assign_types_to_lines(margin = 0, level = 0)
- while line = @lines.next
- if line.blank? then
- line.stamp :BLANK, level
- next
- end
-
- # if a line contains non-blanks before the margin, then it must belong
- # to an outer level
-
- text = line.text
-
- for i in 0...margin
- if text[i] != SPACE
- @lines.unget
- return
- end
- end
-
- active_line = text[margin..-1]
-
- # Rules (horizontal lines) look like
- #
- # --- (three or more hyphens)
- #
- # The more hyphens, the thicker the rule
- #
-
- if /^(---+)\s*$/ =~ active_line
- line.stamp :RULE, level, $1.length-2
- next
- end
-
- # Then look for list entries. First the ones that have to have
- # text following them (* xxx, - xxx, and dd. xxx)
-
- if SIMPLE_LIST_RE =~ active_line
- offset = margin + $1.length
- prefix = $2
- prefix_length = prefix.length
-
- flag = case prefix
- when "*","-" then :BULLET
- when /^\d/ then :NUMBER
- when /^[A-Z]/ then :UPPERALPHA
- when /^[a-z]/ then :LOWERALPHA
- else raise "Invalid List Type: #{self.inspect}"
+ # We take +input+, parse it if necessary, then invoke the output +formatter+
+ # using a Visitor to render the result.
+
+ def convert input, formatter
+ document = case input
+ when RDoc::Markup::Document then
+ input
+ else
+ RDoc::Markup::Parser.parse input
end
- line.stamp :LIST, level+1, prefix, flag
- text[margin, prefix_length] = " " * prefix_length
- assign_types_to_lines(offset, level + 1)
- next
- end
-
- if LABEL_LIST_RE =~ active_line
- offset = margin + $1.length
- prefix = $2
- prefix_length = prefix.length
-
- next if handled_labeled_list(line, level, margin, offset, prefix)
- end
-
- # Headings look like
- # = Main heading
- # == Second level
- # === Third
- #
- # Headings reset the level to 0
-
- if active_line[0] == ?= and active_line =~ /^(=+)\s*(.*)/
- prefix_length = $1.length
- prefix_length = 6 if prefix_length > 6
- line.stamp :HEADING, 0, prefix_length
- line.strip_leading(margin + prefix_length)
- next
- end
-
- # If the character's a space, then we have verbatim text,
- # otherwise
-
- if active_line[0] == SPACE
- line.strip_leading(margin) if margin > 0
- line.stamp :VERBATIM, level
- else
- line.stamp :PARAGRAPH, level
- end
- end
+ document.accept formatter
end
- ##
- # Handle labeled list entries, We have a special case to deal with.
- # Because the labels can be long, they force the remaining block of text
- # over the to right:
- #
- # this is a long label that I wrote:: and here is the
- # block of text with
- # a silly margin
- #
- # So we allow the special case. If the label is followed by nothing, and
- # if the following line is indented, then we take the indent of that line
- # as the new margin.
- #
- # this is a long label that I wrote::
- # here is a more reasonably indented block which
- # will be attached to the label.
- #
-
- def handled_labeled_list(line, level, margin, offset, prefix)
- prefix_length = prefix.length
- text = line.text
- flag = nil
-
- case prefix
- when /^\[/ then
- flag = :LABELED
- prefix = prefix[1, prefix.length-2]
- when /:$/ then
- flag = :NOTE
- prefix.chop!
- else
- raise "Invalid List Type: #{self.inspect}"
- end
-
- # body is on the next line
- if text.length <= offset then
- original_line = line
- line = @lines.next
- return false unless line
- text = line.text
-
- for i in 0..margin
- if text[i] != SPACE
- @lines.unget
- return false
- end
- end
-
- i = margin
- i += 1 while text[i] == SPACE
-
- if i >= text.length then
- @lines.unget
- return false
- else
- offset = i
- prefix_length = 0
-
- if text[offset..-1] =~ SIMPLE_LIST_RE then
- @lines.unget
- line = original_line
- line.text = ''
- else
- @lines.delete original_line
- end
- end
- end
-
- line.stamp :LIST, level+1, prefix, flag
- text[margin, prefix_length] = " " * prefix_length
- assign_types_to_lines(offset, level + 1)
- return true
- end
-
- ##
- # Return a block consisting of fragments which are paragraphs, list
- # entries or verbatim text. We merge consecutive lines of the same type
- # and level together. We are also slightly tricky with lists: the lines
- # following a list introduction look like paragraph lines at the next
- # level, and we remap them into list entries instead.
-
- def group_lines
- @lines.rewind
-
- in_list = false
- wanted_type = wanted_level = nil
-
- block = LineCollection.new
- group = nil
-
- while line = @lines.next
- if line.level == wanted_level and line.type == wanted_type
- group.add_text(line.text)
- else
- group = block.fragment_for(line)
- block.add(group)
-
- if line.type == :LIST
- wanted_type = :PARAGRAPH
- else
- wanted_type = line.type
- end
-
- wanted_level = line.type == :HEADING ? line.param : line.level
- end
- end
-
- block.normalize
- block
- end
-
- ##
- # For debugging, we allow access to our line contents as text.
-
- def content
- @lines.as_text
- end
- public :content
-
- ##
- # For debugging, return the list of line types.
-
- def get_line_types
- @lines.line_types
- end
- public :get_line_types
-
end
-require 'rdoc/markup/fragments'
+require 'rdoc/markup/parser'
+require 'rdoc/markup/attribute_manager'
require 'rdoc/markup/inline'
-require 'rdoc/markup/lines'
+
diff --git a/lib/rdoc/markup/attribute_manager.rb b/lib/rdoc/markup/attribute_manager.rb
index d13b79376c..d2402f1b1d 100644
--- a/lib/rdoc/markup/attribute_manager.rb
+++ b/lib/rdoc/markup/attribute_manager.rb
@@ -1,41 +1,78 @@
-require 'rdoc/markup/inline'
+##
+# Manages changes of attributes in a block of text
class RDoc::Markup::AttributeManager
+ ##
+ # The NUL character
+
NULL = "\000".freeze
- ##
+ #--
# We work by substituting non-printing characters in to the text. For now
# I'm assuming that I can substitute a character in the range 0..8 for a 7
# bit character without damaging the encoded string, but this might be
# optimistic
+ #++
+
+ A_PROTECT = 004 # :nodoc:
+
+ ##
+ # Special mask character to prevent inline markup handling
- A_PROTECT = 004
- PROTECT_ATTR = A_PROTECT.chr
+ PROTECT_ATTR = A_PROTECT.chr # :nodoc:
##
# This maps delimiters that occur around words (such as *bold* or +tt+)
# where the start and end delimiters and the same. This lets us optimize
# the regexp
- MATCHING_WORD_PAIRS = {}
+ attr_reader :matching_word_pairs
##
# And this is used when the delimiters aren't the same. In this case the
# hash maps a pattern to the attribute character
- WORD_PAIR_MAP = {}
+ attr_reader :word_pair_map
##
# This maps HTML tags to the corresponding attribute char
- HTML_TAGS = {}
+ attr_reader :html_tags
+
+ ##
+ # A \ in front of a character that would normally be processed turns off
+ # processing. We do this by turning \< into <#{PROTECT}
+
+ attr_reader :protectable
##
# And this maps _special_ sequences to a name. A special sequence is
# something like a WikiWord
- SPECIAL = {}
+ attr_reader :special
+
+ ##
+ # Creates a new attribute manager that understands bold, emphasized and
+ # teletype text.
+
+ def initialize
+ @html_tags = {}
+ @matching_word_pairs = {}
+ @protectable = %w[<]
+ @special = {}
+ @word_pair_map = {}
+
+ add_word_pair "*", "*", :BOLD
+ add_word_pair "_", "_", :EM
+ add_word_pair "+", "+", :TT
+
+ add_html "em", :EM
+ add_html "i", :EM
+ add_html "b", :BOLD
+ add_html "tt", :TT
+ add_html "code", :TT
+ end
##
# Return an attribute object with the given turn_on and turn_off bits set
@@ -44,12 +81,19 @@ class RDoc::Markup::AttributeManager
RDoc::Markup::AttrChanger.new turn_on, turn_off
end
- def change_attribute(current, new)
+ ##
+ # Changes the current attribute from +current+ to +new+
+
+ def change_attribute current, new
diff = current ^ new
attribute(new & diff, current & diff)
end
- def changed_attribute_by_name(current_set, new_set)
+ ##
+ # Used by the tests to change attributes by name from +current_set+ to
+ # +new_set+
+
+ def changed_attribute_by_name current_set, new_set
current = new = 0
current_set.each do |name|
current |= RDoc::Markup::Attribute.bitmap_for(name)
@@ -62,6 +106,9 @@ class RDoc::Markup::AttributeManager
change_attribute(current, new)
end
+ ##
+ # Copies +start_pos+ to +end_pos+ from the current string
+
def copy_string(start_pos, end_pos)
res = @str[start_pos...end_pos]
res.gsub!(/\000/, '')
@@ -75,19 +122,19 @@ class RDoc::Markup::AttributeManager
def convert_attrs(str, attrs)
# first do matching ones
- tags = MATCHING_WORD_PAIRS.keys.join("")
+ tags = @matching_word_pairs.keys.join("")
re = /(^|\W)([#{tags}])([#:\\]?[\w.\/-]+?\S?)\2(\W|$)/
1 while str.gsub!(re) do
- attr = MATCHING_WORD_PAIRS[$2]
+ attr = @matching_word_pairs[$2]
attrs.set_attrs($`.length + $1.length + $2.length, $3.length, attr)
$1 + NULL * $2.length + $3 + NULL * $2.length + $4
end
# then non-matching
- unless WORD_PAIR_MAP.empty? then
- WORD_PAIR_MAP.each do |regexp, attr|
+ unless @word_pair_map.empty? then
+ @word_pair_map.each do |regexp, attr|
str.gsub!(regexp) {
attrs.set_attrs($`.length + $1.length, $2.length, attr)
NULL * $1.length + $2 + NULL * $3.length
@@ -96,11 +143,14 @@ class RDoc::Markup::AttributeManager
end
end
+ ##
+ # Converts HTML tags to RDoc attributes
+
def convert_html(str, attrs)
- tags = HTML_TAGS.keys.join '|'
+ tags = @html_tags.keys.join '|'
1 while str.gsub!(/<(#{tags})>(.*?)<\/\1>/i) {
- attr = HTML_TAGS[$1.downcase]
+ attr = @html_tags[$1.downcase]
html_length = $1.length + 2
seq = NULL * html_length
attrs.set_attrs($`.length + html_length, $2.length, attr)
@@ -108,9 +158,12 @@ class RDoc::Markup::AttributeManager
}
end
+ ##
+ # Converts special sequences to RDoc attributes
+
def convert_specials(str, attrs)
- unless SPECIAL.empty?
- SPECIAL.each do |regexp, attr|
+ unless @special.empty?
+ @special.each do |regexp, attr|
str.scan(regexp) do
attrs.set_attrs($`.length, $&.length,
attr | RDoc::Markup::Attribute::SPECIAL)
@@ -120,31 +173,28 @@ class RDoc::Markup::AttributeManager
end
##
- # A \ in front of a character that would normally be processed turns off
- # processing. We do this by turning \< into <#{PROTECT}
-
- PROTECTABLE = %w[<\\]
+ # Escapes special sequences of text to prevent conversion to RDoc
def mask_protected_sequences
- protect_pattern = Regexp.new("\\\\([#{Regexp.escape(PROTECTABLE.join(''))}])")
- @str.gsub!(protect_pattern, "\\1#{PROTECT_ATTR}")
+ # protect __send__, __FILE__, etc.
+ @str.gsub!(/__([a-z]+)__/i,
+ "_#{PROTECT_ATTR}_#{PROTECT_ATTR}\\1_#{PROTECT_ATTR}_#{PROTECT_ATTR}")
+ @str.gsub!(/\\([#{Regexp.escape @protectable.join('')}])/,
+ "\\1#{PROTECT_ATTR}")
end
+ ##
+ # Unescapes special sequences of text
+
def unmask_protected_sequences
@str.gsub!(/(.)#{PROTECT_ATTR}/, "\\1\000")
end
- def initialize
- add_word_pair("*", "*", :BOLD)
- add_word_pair("_", "_", :EM)
- add_word_pair("+", "+", :TT)
-
- add_html("em", :EM)
- add_html("i", :EM)
- add_html("b", :BOLD)
- add_html("tt", :TT)
- add_html("code", :TT)
- end
+ ##
+ # Adds a markup class with +name+ for words wrapped in the +start+ and
+ # +stop+ character. To make words wrapped with "*" bold:
+ #
+ # am.add_word_pair '*', '*', :BOLD
def add_word_pair(start, stop, name)
raise ArgumentError, "Word flags may not start with '<'" if
@@ -153,24 +203,39 @@ class RDoc::Markup::AttributeManager
bitmap = RDoc::Markup::Attribute.bitmap_for name
if start == stop then
- MATCHING_WORD_PAIRS[start] = bitmap
+ @matching_word_pairs[start] = bitmap
else
pattern = /(#{Regexp.escape start})(\S+)(#{Regexp.escape stop})/
- WORD_PAIR_MAP[pattern] = bitmap
+ @word_pair_map[pattern] = bitmap
end
- PROTECTABLE << start[0,1]
- PROTECTABLE.uniq!
+ @protectable << start[0,1]
+ @protectable.uniq!
end
+ ##
+ # Adds a markup class with +name+ for words surrounded by HTML tag +tag+.
+ # To process emphasis tags:
+ #
+ # am.add_html 'em', :EM
+
def add_html(tag, name)
- HTML_TAGS[tag.downcase] = RDoc::Markup::Attribute.bitmap_for name
+ @html_tags[tag.downcase] = RDoc::Markup::Attribute.bitmap_for name
end
+ ##
+ # Adds a special handler for +pattern+ with +name+. A simple URL handler
+ # would be:
+ #
+ # @am.add_special(/((https?:)\S+\w)/, :HYPERLINK)
+
def add_special(pattern, name)
- SPECIAL[pattern] = RDoc::Markup::Attribute.bitmap_for name
+ @special[pattern] = RDoc::Markup::Attribute.bitmap_for name
end
+ ##
+ # Processes +str+ converting attributes, HTML and specials
+
def flow(str)
@str = str
@@ -178,15 +243,18 @@ class RDoc::Markup::AttributeManager
@attrs = RDoc::Markup::AttrSpan.new @str.length
- convert_attrs(@str, @attrs)
- convert_html(@str, @attrs)
- convert_specials(str, @attrs)
+ convert_attrs @str, @attrs
+ convert_html @str, @attrs
+ convert_specials @str, @attrs
unmask_protected_sequences
- return split_into_flow
+ split_into_flow
end
+ ##
+ # Debug method that prints a string along with its attributes
+
def display_attributes
puts
puts @str.tr(NULL, "!")
@@ -209,10 +277,12 @@ class RDoc::Markup::AttributeManager
end
end
+ ##
+ # Splits the string into chunks by attribute change
+
def split_into_flow
res = []
current_attr = 0
- str = ""
str_len = @str.length
@@ -258,7 +328,7 @@ class RDoc::Markup::AttributeManager
# and reset to all attributes off
res << change_attribute(current_attr, 0) if current_attr != 0
- return res
+ res
end
end
diff --git a/lib/rdoc/markup/blank_line.rb b/lib/rdoc/markup/blank_line.rb
new file mode 100644
index 0000000000..5da0ac8d81
--- /dev/null
+++ b/lib/rdoc/markup/blank_line.rb
@@ -0,0 +1,27 @@
+##
+# An empty line. This class is a singleton.
+
+class RDoc::Markup::BlankLine
+
+ @instance = new
+
+ ##
+ # RDoc::Markup::BlankLine is a singleton
+
+ def self.new
+ @instance
+ end
+
+ ##
+ # Calls #accept_blank_line on +visitor+
+
+ def accept visitor
+ visitor.accept_blank_line self
+ end
+
+ def pretty_print q # :nodoc:
+ q.text 'blankline'
+ end
+
+end
+
diff --git a/lib/rdoc/markup/document.rb b/lib/rdoc/markup/document.rb
new file mode 100644
index 0000000000..7077f357d3
--- /dev/null
+++ b/lib/rdoc/markup/document.rb
@@ -0,0 +1,127 @@
+##
+# A Document containing lists, headings, paragraphs, etc.
+
+class RDoc::Markup::Document
+
+ ##
+ # The file this document was created from. See also
+ # RDoc::ClassModule#add_comment
+
+ attr_accessor :file
+
+ ##
+ # The parts of the Document
+
+ attr_reader :parts
+
+ ##
+ # Creates a new Document with +parts+
+
+ def initialize *parts
+ @parts = []
+ @parts.push(*parts)
+
+ @file = nil
+ end
+
+ ##
+ # Appends +part+ to the document
+
+ def << part
+ case part
+ when RDoc::Markup::Document then
+ unless part.empty? then
+ parts.push(*part.parts)
+ parts << RDoc::Markup::BlankLine.new
+ end
+ when String then
+ raise ArgumentError,
+ "expected RDoc::Markup::Document and friends, got String" unless
+ part.empty?
+ else
+ parts << part
+ end
+ end
+
+ def == other # :nodoc:
+ self.class == other.class and
+ @file == other.file and
+ @parts == other.parts
+ end
+
+ ##
+ # Runs this document and all its #items through +visitor+
+
+ def accept visitor
+ visitor.start_accepting
+
+ @parts.each do |item|
+ case item
+ when RDoc::Markup::Document then # HACK
+ visitor.accept_document item
+ else
+ item.accept visitor
+ end
+ end
+
+ visitor.end_accepting
+ end
+
+ ##
+ # Does this document have no parts?
+
+ def empty?
+ @parts.empty? or (@parts.length == 1 and merged? and @parts.first.empty?)
+ end
+
+ ##
+ # When this is a collection of documents (#file is not set and this document
+ # contains only other documents as its direct children) #merge replaces
+ # documents in this class with documents from +other+ when the file matches
+ # and adds documents from +other+ when the files do not.
+ #
+ # The information in +other+ is preferred over the receiver
+
+ def merge other
+ if empty? then
+ @parts = other.parts
+ return self
+ end
+
+ other.parts.each do |other_part|
+ self.parts.delete_if do |self_part|
+ self_part.file and self_part.file == other_part.file
+ end
+
+ self.parts << other_part
+ end
+
+ self
+ end
+
+ ##
+ # Does this Document contain other Documents?
+
+ def merged?
+ RDoc::Markup::Document === @parts.first
+ end
+
+ def pretty_print q # :nodoc:
+ start = @file ? "[doc (#{@file}): " : '[doc: '
+
+ q.group 2, start, ']' do
+ q.seplist @parts do |part|
+ q.pp part
+ end
+ end
+ end
+
+ ##
+ # Appends +parts+ to the document
+
+ def push *parts
+ self.parts.push(*parts)
+ end
+
+end
+
diff --git a/lib/rdoc/markup/formatter.rb b/lib/rdoc/markup/formatter.rb
index 14cbae59f9..f42b3fc6ea 100644
--- a/lib/rdoc/markup/formatter.rb
+++ b/lib/rdoc/markup/formatter.rb
@@ -1,14 +1,169 @@
require 'rdoc/markup'
+##
+# Base class for RDoc markup formatters
+#
+# Formatters use a visitor pattern to convert content into output.
+#
+# If you'd like to write your own Formatter use
+# RDoc::Markup::FormatterTestCase. If you're writing a text-output formatter
+# use RDoc::Markup::TextFormatterTestCase which provides extra test cases.
+
class RDoc::Markup::Formatter
- def initialize
- @markup = RDoc::Markup.new
+ ##
+ # Tag for inline markup containing a +bit+ for the bitmask and the +on+ and
+ # +off+ triggers.
+
+ InlineTag = Struct.new(:bit, :on, :off)
+
+ ##
+ # Creates a new Formatter
+
+ def initialize markup = nil
+ @markup = markup || RDoc::Markup.new
+ @am = @markup.attribute_manager
+
+ @attr_tags = []
+
+ @in_tt = 0
+ @tt_bit = RDoc::Markup::Attribute.bitmap_for :TT
+ end
+
+ ##
+ # Adds +document+ to the output
+
+ def accept_document document
+ document.parts.each do |item|
+ item.accept self
+ end
+ end
+
+ ##
+ # Add a new set of tags for an attribute. We allow separate start and end
+ # tags for flexibility
+
+ def add_tag(name, start, stop)
+ attr = RDoc::Markup::Attribute.bitmap_for name
+ @attr_tags << InlineTag.new(attr, start, stop)
end
+ ##
+ # Allows +tag+ to be decorated with additional information.
+
+ def annotate(tag)
+ tag
+ end
+
+ ##
+ # Marks up +content+
+
def convert(content)
@markup.convert content, self
end
+ ##
+ # Converts flow items +flow+
+
+ def convert_flow(flow)
+ res = []
+
+ flow.each do |item|
+ case item
+ when String then
+ res << convert_string(item)
+ when RDoc::Markup::AttrChanger then
+ off_tags res, item
+ on_tags res, item
+ when RDoc::Markup::Special then
+ res << convert_special(item)
+ else
+ raise "Unknown flow element: #{item.inspect}"
+ end
+ end
+
+ res.join
+ end
+
+ ##
+ # Converts added specials. See RDoc::Markup#add_special
+
+ def convert_special special
+ return special.text if in_tt?
+
+ handled = false
+
+ RDoc::Markup::Attribute.each_name_of special.type do |name|
+ method_name = "handle_special_#{name}"
+
+ if respond_to? method_name then
+ special.text = send method_name, special
+ handled = true
+ end
+ end
+
+ raise "Unhandled special: #{special}" unless handled
+
+ special.text
+ end
+
+ ##
+ # Converts a string to be fancier if desired
+
+ def convert_string string
+ string
+ end
+
+ ##
+ # Are we currently inside tt tags?
+
+ def in_tt?
+ @in_tt > 0
+ end
+
+ ##
+ # Turns on tags for +item+ on +res+
+
+ def on_tags res, item
+ attr_mask = item.turn_on
+ return if attr_mask.zero?
+
+ @attr_tags.each do |tag|
+ if attr_mask & tag.bit != 0 then
+ res << annotate(tag.on)
+ @in_tt += 1 if tt? tag
+ end
+ end
+ end
+
+ ##
+ # Turns off tags for +item+ on +res+
+
+ def off_tags res, item
+ attr_mask = item.turn_off
+ return if attr_mask.zero?
+
+ @attr_tags.reverse_each do |tag|
+ if attr_mask & tag.bit != 0 then
+ @in_tt -= 1 if tt? tag
+ res << annotate(tag.off)
+ end
+ end
+ end
+
+ ##
+ # Is +tag+ a tt tag?
+
+ def tt? tag
+ tag.bit == @tt_bit
+ end
+
end
+class RDoc::Markup
+ autoload :ToAnsi, 'rdoc/markup/to_ansi'
+ autoload :ToBs, 'rdoc/markup/to_bs'
+ autoload :ToHtml, 'rdoc/markup/to_html'
+ autoload :ToHtmlCrossref, 'rdoc/markup/to_html_crossref'
+ autoload :ToRdoc, 'rdoc/markup/to_rdoc'
+end
diff --git a/lib/rdoc/markup/formatter_test_case.rb b/lib/rdoc/markup/formatter_test_case.rb
new file mode 100644
index 0000000000..c739f990b3
--- /dev/null
+++ b/lib/rdoc/markup/formatter_test_case.rb
@@ -0,0 +1,699 @@
+require 'minitest/unit'
+require 'rdoc/markup/formatter'
+
+##
+# Test case for creating new RDoc::Markup formatters. See
+# test/test_rdoc_markup_to_*.rb for examples.
+#
+# This test case adds a variety of tests to your subclass when
+# #add_visitor_tests is called. Most tests set up a scenario then call a
+# method you will provide to perform the assertion on the output.
+#
+# Your subclass must instantiate a visitor and assign it to <tt>@to</tt>.
+#
+# For example, test_accept_blank_line sets up a RDoc::Markup::BlockLine then
+# calls accept_blank_line on your visitor. You are responsible for asserting
+# that the output is correct.
+#
+# Example:
+#
+# class TestRDocMarkupToNewFormat < RDoc::Markup::FormatterTestCase
+#
+# add_visitor_tests
+#
+# def setup
+# super
+#
+# @to = RDoc::Markup::ToNewFormat.new
+# end
+#
+# def accept_blank_line
+# assert_equal :junk, @to.res.join
+# end
+#
+# # ...
+#
+# end
+
+class RDoc::Markup::FormatterTestCase < MiniTest::Unit::TestCase
+
+ ##
+ # Call #setup when inheriting from this test case.
+ #
+ # Provides the following instance variables:
+ #
+ # +@m+:: RDoc::Markup.new
+ # +@RM+:: RDoc::Markup # to reduce typing
+ # +@bullet_list+:: @RM::List.new :BULLET, # ...
+ # +@label_list+:: @RM::List.new :LABEL, # ...
+ # +@lalpha_list+:: @RM::List.new :LALPHA, # ...
+ # +@note_list+:: @RM::List.new :NOTE, # ...
+ # +@number_list+:: @RM::List.new :NUMBER, # ...
+ # +@ualpha_list+:: @RM::List.new :UALPHA, # ...
+
+ def setup
+ super
+
+ @m = RDoc::Markup.new
+ @RM = RDoc::Markup
+
+ @bullet_list = @RM::List.new(:BULLET,
+ @RM::ListItem.new(nil, @RM::Paragraph.new('l1')),
+ @RM::ListItem.new(nil, @RM::Paragraph.new('l2')))
+
+ @label_list = @RM::List.new(:LABEL,
+ @RM::ListItem.new('cat', @RM::Paragraph.new('cats are cool')),
+ @RM::ListItem.new('dog', @RM::Paragraph.new('dogs are cool too')))
+
+ @lalpha_list = @RM::List.new(:LALPHA,
+ @RM::ListItem.new(nil, @RM::Paragraph.new('l1')),
+ @RM::ListItem.new(nil, @RM::Paragraph.new('l2')))
+
+ @note_list = @RM::List.new(:NOTE,
+ @RM::ListItem.new('cat', @RM::Paragraph.new('cats are cool')),
+ @RM::ListItem.new('dog', @RM::Paragraph.new('dogs are cool too')))
+
+ @number_list = @RM::List.new(:NUMBER,
+ @RM::ListItem.new(nil, @RM::Paragraph.new('l1')),
+ @RM::ListItem.new(nil, @RM::Paragraph.new('l2')))
+
+ @ualpha_list = @RM::List.new(:UALPHA,
+ @RM::ListItem.new(nil, @RM::Paragraph.new('l1')),
+ @RM::ListItem.new(nil, @RM::Paragraph.new('l2')))
+ end
+
+ ##
+ # Call to add the visitor tests to your test case
+
+ def self.add_visitor_tests
+ self.class_eval do
+
+ ##
+ # Calls start_accepting which needs to verify startup state
+
+ def test_start_accepting
+ @to.start_accepting
+
+ start_accepting
+ end
+
+ ##
+ # Calls end_accepting on your test case which needs to call
+ # <tt>@to.end_accepting</tt> and verify document generation
+
+ def test_end_accepting
+ @to.start_accepting
+ @to.res << 'hi'
+
+ end_accepting
+ end
+
+ ##
+ # Calls accept_blank_line
+
+ def test_accept_blank_line
+ @to.start_accepting
+
+ @to.accept_blank_line @RM::BlankLine.new
+
+ accept_blank_line
+ end
+
+ ##
+ # Test case that calls <tt>@to.accept_document</tt>
+
+ def test_accept_document
+ @to.start_accepting
+ @to.accept_document @RM::Document.new @RM::Paragraph.new 'hello'
+
+ accept_document
+ end
+
+ ##
+ # Calls accept_heading with a level 5 RDoc::Markup::Heading
+
+ def test_accept_heading
+ @to.start_accepting
+
+ @to.accept_heading @RM::Heading.new(5, 'Hello')
+
+ accept_heading
+ end
+
+ ##
+ # Calls accept_heading_1 with a level 1 RDoc::Markup::Heading
+
+ def test_accept_heading_1
+ @to.start_accepting
+
+ @to.accept_heading @RM::Heading.new(1, 'Hello')
+
+ accept_heading_1
+ end
+
+ ##
+ # Calls accept_heading_2 with a level 2 RDoc::Markup::Heading
+
+ def test_accept_heading_2
+ @to.start_accepting
+
+ @to.accept_heading @RM::Heading.new(2, 'Hello')
+
+ accept_heading_2
+ end
+
+ ##
+ # Calls accept_heading_3 with a level 3 RDoc::Markup::Heading
+
+ def test_accept_heading_3
+ # HACK this doesn't belong here
+ skip "No String#chars, upgrade your ruby" unless ''.respond_to? :chars
+
+ @to.start_accepting
+
+ @to.accept_heading @RM::Heading.new(3, 'Hello')
+
+ accept_heading_3
+ end
+
+ ##
+ # Calls accept_heading_4 with a level 4 RDoc::Markup::Heading
+
+ def test_accept_heading_4
+ @to.start_accepting
+
+ @to.accept_heading @RM::Heading.new(4, 'Hello')
+
+ accept_heading_4
+ end
+
+ ##
+ # Calls accept_heading_b with a bold level 1 RDoc::Markup::Heading
+
+ def test_accept_heading_b
+ @to.start_accepting
+
+ @to.accept_heading @RM::Heading.new(1, '*Hello*')
+
+ accept_heading_b
+ end
+
+ ##
+ # Calls accept_heading_suppressed_crossref with a level 1
+ # RDoc::Markup::Heading containing a suppressed crossref
+
+ def test_accept_heading_suppressed_crossref # HACK to_html_crossref test
+ @to.start_accepting
+
+ @to.accept_heading @RM::Heading.new(1, '\\Hello')
+
+ accept_heading_suppressed_crossref
+ end
+
+ ##
+ # Calls accept_paragraph
+
+ def test_accept_paragraph
+ @to.start_accepting
+
+ @to.accept_paragraph @RM::Paragraph.new('hi')
+
+ accept_paragraph
+ end
+
+ ##
+ # Calls accept_paragraph_b with a RDoc::Markup::Paragraph containing
+ # bold words
+
+ def test_accept_paragraph_b
+ @to.start_accepting
+
+ @to.accept_paragraph @RM::Paragraph.new('reg <b>bold words</b> reg')
+
+ accept_paragraph_b
+ end
+
+ ##
+ # Calls accept_paragraph_i with a RDoc::Markup::Paragraph containing
+ # emphasized words
+
+ def test_accept_paragraph_i
+ @to.start_accepting
+
+ @to.accept_paragraph @RM::Paragraph.new('reg <em>italic words</em> reg')
+
+ accept_paragraph_i
+ end
+
+ ##
+ # Calls accept_paragraph_plus with a RDoc::Markup::Paragraph containing
+ # teletype words
+
+ def test_accept_paragraph_plus
+ @to.start_accepting
+
+ @to.accept_paragraph @RM::Paragraph.new('reg +teletype+ reg')
+
+ accept_paragraph_plus
+ end
+
+ ##
+ # Calls accept_paragraph_star with a RDoc::Markup::Paragraph containing
+ # bold words
+
+ def test_accept_paragraph_star
+ @to.start_accepting
+
+ @to.accept_paragraph @RM::Paragraph.new('reg *bold* reg')
+
+ accept_paragraph_star
+ end
+
+ ##
+ # Calls accept_paragraph_underscore with a RDoc::Markup::Paragraph
+ # containing emphasized words
+
+ def test_accept_paragraph_underscore
+ @to.start_accepting
+
+ @to.accept_paragraph @RM::Paragraph.new('reg _italic_ reg')
+
+ accept_paragraph_underscore
+ end
+
+ ##
+ # Calls accept_verbatim with a RDoc::Markup::Verbatim
+
+ def test_accept_verbatim
+ @to.start_accepting
+
+ @to.accept_verbatim @RM::Verbatim.new("hi\n", " world\n")
+
+ accept_verbatim
+ end
+
+ ##
+ # Calls accept_raw with a RDoc::Markup::Raw
+
+ def test_accept_raw
+ @to.start_accepting
+
+ @to.accept_raw @RM::Raw.new("<table>",
+ "<tr><th>Name<th>Count",
+ "<tr><td>a<td>1",
+ "<tr><td>b<td>2",
+ "</table>")
+
+ accept_raw
+ end
+
+ ##
+ # Calls accept_rule with a RDoc::Markup::Rule
+
+ def test_accept_rule
+ @to.start_accepting
+
+ @to.accept_rule @RM::Rule.new(4)
+
+ accept_rule
+ end
+
+ ##
+ # Calls accept_list_item_start_bullet
+
+ def test_accept_list_item_start_bullet
+ @to.start_accepting
+
+ @to.accept_list_start @bullet_list
+
+ @to.accept_list_item_start @bullet_list.items.first
+
+ accept_list_item_start_bullet
+ end
+
+ ##
+ # Calls accept_list_item_start_label
+
+ def test_accept_list_item_start_label
+ @to.start_accepting
+
+ @to.accept_list_start @label_list
+
+ @to.accept_list_item_start @label_list.items.first
+
+ accept_list_item_start_label
+ end
+
+ ##
+ # Calls accept_list_item_start_lalpha
+
+ def test_accept_list_item_start_lalpha
+ @to.start_accepting
+
+ @to.accept_list_start @lalpha_list
+
+ @to.accept_list_item_start @lalpha_list.items.first
+
+ accept_list_item_start_lalpha
+ end
+
+ ##
+ # Calls accept_list_item_start_note
+
+ def test_accept_list_item_start_note
+ @to.start_accepting
+
+ @to.accept_list_start @note_list
+
+ @to.accept_list_item_start @note_list.items.first
+
+ accept_list_item_start_note
+ end
+
+ ##
+ # Calls accept_list_item_start_note_2
+
+ def test_accept_list_item_start_note_2
+ list = @RM::List.new(:NOTE,
+ @RM::ListItem.new('<tt>teletype</tt>',
+ @RM::Paragraph.new('teletype description')))
+
+ @to.start_accepting
+
+ list.accept @to
+
+ @to.end_accepting
+
+ accept_list_item_start_note_2
+ end
+
+ ##
+ # Calls accept_list_item_start_number
+
+ def test_accept_list_item_start_number
+ @to.start_accepting
+
+ @to.accept_list_start @number_list
+
+ @to.accept_list_item_start @number_list.items.first
+
+ accept_list_item_start_number
+ end
+
+ ##
+ # Calls accept_list_item_start_ualpha
+
+ def test_accept_list_item_start_ualpha
+ @to.start_accepting
+
+ @to.accept_list_start @ualpha_list
+
+ @to.accept_list_item_start @ualpha_list.items.first
+
+ accept_list_item_start_ualpha
+ end
+
+ ##
+ # Calls accept_list_item_end_bullet
+
+ def test_accept_list_item_end_bullet
+ @to.start_accepting
+
+ @to.accept_list_start @bullet_list
+
+ @to.accept_list_item_start @bullet_list.items.first
+
+ @to.accept_list_item_end @bullet_list.items.first
+
+ accept_list_item_end_bullet
+ end
+
+ ##
+ # Calls accept_list_item_end_label
+
+ def test_accept_list_item_end_label
+ @to.start_accepting
+
+ @to.accept_list_start @label_list
+
+ @to.accept_list_item_start @label_list.items.first
+
+ @to.accept_list_item_end @label_list.items.first
+
+ accept_list_item_end_label
+ end
+
+ ##
+ # Calls accept_list_item_end_lalpha
+
+ def test_accept_list_item_end_lalpha
+ @to.start_accepting
+
+ @to.accept_list_start @lalpha_list
+
+ @to.accept_list_item_start @lalpha_list.items.first
+
+ @to.accept_list_item_end @lalpha_list.items.first
+
+ accept_list_item_end_lalpha
+ end
+
+ ##
+ # Calls accept_list_item_end_note
+
+ def test_accept_list_item_end_note
+ @to.start_accepting
+
+ @to.accept_list_start @note_list
+
+ @to.accept_list_item_start @note_list.items.first
+
+ @to.accept_list_item_end @note_list.items.first
+
+ accept_list_item_end_note
+ end
+
+ ##
+ # Calls accept_list_item_end_number
+
+ def test_accept_list_item_end_number
+ @to.start_accepting
+
+ @to.accept_list_start @number_list
+
+ @to.accept_list_item_start @number_list.items.first
+
+ @to.accept_list_item_end @number_list.items.first
+
+ accept_list_item_end_number
+ end
+
+ ##
+ # Calls accept_list_item_end_ualpha
+
+ def test_accept_list_item_end_ualpha
+ @to.start_accepting
+
+ @to.accept_list_start @ualpha_list
+
+ @to.accept_list_item_start @ualpha_list.items.first
+
+ @to.accept_list_item_end @ualpha_list.items.first
+
+ accept_list_item_end_ualpha
+ end
+
+ ##
+ # Calls accept_list_start_bullet
+
+ def test_accept_list_start_bullet
+ @to.start_accepting
+
+ @to.accept_list_start @bullet_list
+
+ accept_list_start_bullet
+ end
+
+ ##
+ # Calls accept_list_start_label
+
+ def test_accept_list_start_label
+ @to.start_accepting
+
+ @to.accept_list_start @label_list
+
+ accept_list_start_label
+ end
+
+ ##
+ # Calls accept_list_start_lalpha
+
+ def test_accept_list_start_lalpha
+ @to.start_accepting
+
+ @to.accept_list_start @lalpha_list
+
+ accept_list_start_lalpha
+ end
+
+ ##
+ # Calls accept_list_start_note
+
+ def test_accept_list_start_note
+ @to.start_accepting
+
+ @to.accept_list_start @note_list
+
+ accept_list_start_note
+ end
+
+ ##
+ # Calls accept_list_start_number
+
+ def test_accept_list_start_number
+ @to.start_accepting
+
+ @to.accept_list_start @number_list
+
+ accept_list_start_number
+ end
+
+ ##
+ # Calls accept_list_start_ualpha
+
+ def test_accept_list_start_ualpha
+ @to.start_accepting
+
+ @to.accept_list_start @ualpha_list
+
+ accept_list_start_ualpha
+ end
+
+ ##
+ # Calls accept_list_end_bullet
+
+ def test_accept_list_end_bullet
+ @to.start_accepting
+
+ @to.accept_list_start @bullet_list
+
+ @to.accept_list_end @bullet_list
+
+ accept_list_end_bullet
+ end
+
+ ##
+ # Calls accept_list_end_label
+
+ def test_accept_list_end_label
+ @to.start_accepting
+
+ @to.accept_list_start @label_list
+
+ @to.accept_list_end @label_list
+
+ accept_list_end_label
+ end
+
+ ##
+ # Calls accept_list_end_lalpha
+
+ def test_accept_list_end_lalpha
+ @to.start_accepting
+
+ @to.accept_list_start @lalpha_list
+
+ @to.accept_list_end @lalpha_list
+
+ accept_list_end_lalpha
+ end
+
+ ##
+ # Calls accept_list_end_number
+
+ def test_accept_list_end_number
+ @to.start_accepting
+
+ @to.accept_list_start @number_list
+
+ @to.accept_list_end @number_list
+
+ accept_list_end_number
+ end
+
+ ##
+ # Calls accept_list_end_note
+
+ def test_accept_list_end_note
+ @to.start_accepting
+
+ @to.accept_list_start @note_list
+
+ @to.accept_list_end @note_list
+
+ accept_list_end_note
+ end
+
+ ##
+ # Calls accept_list_end_ulpha
+
+ def test_accept_list_end_ualpha
+ @to.start_accepting
+
+ @to.accept_list_start @ualpha_list
+
+ @to.accept_list_end @ualpha_list
+
+ accept_list_end_ualpha
+ end
+
+ ##
+ # Calls list_nested with a two-level list
+
+ def test_list_nested
+ doc = @RM::Document.new(
+ @RM::List.new(:BULLET,
+ @RM::ListItem.new(nil,
+ @RM::Paragraph.new('l1'),
+ @RM::List.new(:BULLET,
+ @RM::ListItem.new(nil,
+ @RM::Paragraph.new('l1.1')))),
+ @RM::ListItem.new(nil,
+ @RM::Paragraph.new('l2'))))
+
+ doc.accept @to
+
+ list_nested
+ end
+
+ ##
+ # Calls list_verbatim with a list containing a verbatim block
+
+ def test_list_verbatim # HACK overblown
+ doc = @RM::Document.new(
+ @RM::List.new(:BULLET,
+ @RM::ListItem.new(nil,
+ @RM::Paragraph.new('list', 'stuff'),
+ @RM::BlankLine.new,
+ @RM::Verbatim.new("* list\n",
+ " with\n",
+ "\n",
+ " second\n",
+ "\n",
+ " 1. indented\n",
+ " 2. numbered\n",
+ "\n",
+ " third\n",
+ "\n",
+ "* second\n"))))
+
+ doc.accept @to
+
+ list_verbatim
+ end
+
+ end
+ end
+
+end
+
diff --git a/lib/rdoc/markup/fragments.rb b/lib/rdoc/markup/fragments.rb
deleted file mode 100644
index 0031b809b4..0000000000
--- a/lib/rdoc/markup/fragments.rb
+++ /dev/null
@@ -1,337 +0,0 @@
-require 'rdoc/markup'
-require 'rdoc/markup/lines'
-
-class RDoc::Markup
-
- ##
- # A Fragment is a chunk of text, subclassed as a paragraph, a list
- # entry, or verbatim text.
-
- class Fragment
- attr_reader :level, :param, :txt
- attr_accessor :type
-
- ##
- # This is a simple factory system that lets us associate fragement
- # types (a string) with a subclass of fragment
-
- TYPE_MAP = {}
-
- def self.type_name(name)
- TYPE_MAP[name] = self
- end
-
- def self.for(line)
- klass = TYPE_MAP[line.type] ||
- raise("Unknown line type: '#{line.type.inspect}:' '#{line.text}'")
- return klass.new(line.level, line.param, line.flag, line.text)
- end
-
- def initialize(level, param, type, txt)
- @level = level
- @param = param
- @type = type
- @txt = ""
- add_text(txt) if txt
- end
-
- def add_text(txt)
- @txt << " " if @txt.length > 0
- @txt << txt.tr_s("\n ", " ").strip
- end
-
- def to_s
- "L#@level: #{self.class.name.split('::')[-1]}\n#@txt"
- end
-
- end
-
- ##
- # A paragraph is a fragment which gets wrapped to fit. We remove all
- # newlines when we're created, and have them put back on output.
-
- class Paragraph < Fragment
- type_name :PARAGRAPH
- end
-
- class BlankLine < Paragraph
- type_name :BLANK
- end
-
- class Heading < Paragraph
- type_name :HEADING
-
- def head_level
- @param.to_i
- end
- end
-
- ##
- # A List is a fragment with some kind of label
-
- class ListBase < Paragraph
- LIST_TYPES = [
- :BULLET,
- :NUMBER,
- :UPPERALPHA,
- :LOWERALPHA,
- :LABELED,
- :NOTE,
- ]
- end
-
- class ListItem < ListBase
- type_name :LIST
-
- def to_s
- text = if [:NOTE, :LABELED].include? type then
- "#{@param}: #{@txt}"
- else
- @txt
- end
-
- "L#@level: #{type} #{self.class.name.split('::')[-1]}\n#{text}"
- end
-
- end
-
- class ListStart < ListBase
- def initialize(level, param, type)
- super(level, param, type, nil)
- end
- end
-
- class ListEnd < ListBase
- def initialize(level, type)
- super(level, "", type, nil)
- end
- end
-
- ##
- # Verbatim code contains lines that don't get wrapped.
-
- class Verbatim < Fragment
- type_name :VERBATIM
-
- def add_text(txt)
- @txt << txt.chomp << "\n"
- end
-
- end
-
- ##
- # A horizontal rule
-
- class Rule < Fragment
- type_name :RULE
- end
-
- ##
- # Collect groups of lines together. Each group will end up containing a flow
- # of text.
-
- class LineCollection
-
- def initialize
- @fragments = []
- end
-
- def add(fragment)
- @fragments << fragment
- end
-
- def each(&b)
- @fragments.each(&b)
- end
-
- def to_a # :nodoc:
- @fragments.map {|fragment| fragment.to_s}
- end
-
- ##
- # Factory for different fragment types
-
- def fragment_for(*args)
- Fragment.for(*args)
- end
-
- ##
- # Tidy up at the end
-
- def normalize
- change_verbatim_blank_lines
- add_list_start_and_ends
- add_list_breaks
- tidy_blank_lines
- end
-
- def to_s
- @fragments.join("\n----\n")
- end
-
- def accept(am, visitor)
- visitor.start_accepting
-
- @fragments.each do |fragment|
- case fragment
- when Verbatim
- visitor.accept_verbatim(am, fragment)
- when Rule
- visitor.accept_rule(am, fragment)
- when ListStart
- visitor.accept_list_start(am, fragment)
- when ListEnd
- visitor.accept_list_end(am, fragment)
- when ListItem
- visitor.accept_list_item(am, fragment)
- when BlankLine
- visitor.accept_blank_line(am, fragment)
- when Heading
- visitor.accept_heading(am, fragment)
- when Paragraph
- visitor.accept_paragraph(am, fragment)
- end
- end
-
- visitor.end_accepting
- end
-
- private
-
- # If you have:
- #
- # normal paragraph text.
- #
- # this is code
- #
- # and more code
- #
- # You'll end up with the fragments Paragraph, BlankLine, Verbatim,
- # BlankLine, Verbatim, BlankLine, etc.
- #
- # The BlankLine in the middle of the verbatim chunk needs to be changed to
- # a real verbatim newline, and the two verbatim blocks merged
-
- def change_verbatim_blank_lines
- frag_block = nil
- blank_count = 0
- @fragments.each_with_index do |frag, i|
- if frag_block.nil?
- frag_block = frag if Verbatim === frag
- else
- case frag
- when Verbatim
- blank_count.times { frag_block.add_text("\n") }
- blank_count = 0
- frag_block.add_text(frag.txt)
- @fragments[i] = nil # remove out current fragment
- when BlankLine
- if frag_block
- blank_count += 1
- @fragments[i] = nil
- end
- else
- frag_block = nil
- blank_count = 0
- end
- end
- end
- @fragments.compact!
- end
-
- ##
- # List nesting is implicit given the level of indentation. Make it
- # explicit, just to make life a tad easier for the output processors
-
- def add_list_start_and_ends
- level = 0
- res = []
- type_stack = []
-
- @fragments.each do |fragment|
- # $stderr.puts "#{level} : #{fragment.class.name} : #{fragment.level}"
- new_level = fragment.level
- while (level < new_level)
- level += 1
- type = fragment.type
- res << ListStart.new(level, fragment.param, type) if type
- type_stack.push type
- # $stderr.puts "Start: #{level}"
- end
-
- while level > new_level
- type = type_stack.pop
- res << ListEnd.new(level, type) if type
- level -= 1
- # $stderr.puts "End: #{level}, #{type}"
- end
-
- res << fragment
- level = fragment.level
- end
- level.downto(1) do |i|
- type = type_stack.pop
- res << ListEnd.new(i, type) if type
- end
-
- @fragments = res
- end
-
- ##
- # Inserts start/ends between list entries at the same level that have
- # different element types
-
- def add_list_breaks
- res = @fragments
-
- @fragments = []
- list_stack = []
-
- res.each do |fragment|
- case fragment
- when ListStart
- list_stack.push fragment
- when ListEnd
- start = list_stack.pop
- fragment.type = start.type
- when ListItem
- l = list_stack.last
- if fragment.type != l.type
- @fragments << ListEnd.new(l.level, l.type)
- start = ListStart.new(l.level, fragment.param, fragment.type)
- @fragments << start
- list_stack.pop
- list_stack.push start
- end
- else
- ;
- end
- @fragments << fragment
- end
- end
-
- ##
- # Tidy up the blank lines:
- # * change Blank/ListEnd into ListEnd/Blank
- # * remove blank lines at the front
-
- def tidy_blank_lines
- (@fragments.size - 1).times do |i|
- if BlankLine === @fragments[i] and ListEnd === @fragments[i+1] then
- @fragments[i], @fragments[i+1] = @fragments[i+1], @fragments[i]
- end
- end
-
- # remove leading blanks
- @fragments.each_with_index do |f, i|
- break unless f.kind_of? BlankLine
- @fragments[i] = nil
- end
-
- @fragments.compact!
- end
-
- end
-
-end
-
diff --git a/lib/rdoc/markup/heading.rb b/lib/rdoc/markup/heading.rb
new file mode 100644
index 0000000000..3bda77a1e1
--- /dev/null
+++ b/lib/rdoc/markup/heading.rb
@@ -0,0 +1,20 @@
+##
+# A heading with a level (1-6) and text
+
+class RDoc::Markup::Heading < Struct.new :level, :text
+
+ ##
+ # Calls #accept_heading on +visitor+
+
+ def accept visitor
+ visitor.accept_heading self
+ end
+
+ def pretty_print q # :nodoc:
+ q.group 2, "[head: #{level} ", ']' do
+ q.pp text
+ end
+ end
+
+end
+
diff --git a/lib/rdoc/markup/indented_paragraph.rb b/lib/rdoc/markup/indented_paragraph.rb
new file mode 100644
index 0000000000..d995c7d8ed
--- /dev/null
+++ b/lib/rdoc/markup/indented_paragraph.rb
@@ -0,0 +1,33 @@
+##
+# An Indented Paragraph of text
+
+class RDoc::Markup::IndentedParagraph < RDoc::Markup::Raw
+
+ ##
+ # The indent in number of spaces
+
+ attr_reader :indent
+
+ ##
+ # Creates a new IndentedParagraph containing +parts+ indented with +indent+
+ # spaces
+
+ def initialize indent, *parts
+ @indent = indent
+
+ super(*parts)
+ end
+
+ def == other # :nodoc:
+ super and indent == other.indent
+ end
+
+ ##
+ # Calls #accept_indented_paragraph on +visitor+
+
+ def accept visitor
+ visitor.accept_indented_paragraph self
+ end
+
+end
+
diff --git a/lib/rdoc/markup/inline.rb b/lib/rdoc/markup/inline.rb
index 46c9b5822c..cf598d1583 100644
--- a/lib/rdoc/markup/inline.rb
+++ b/lib/rdoc/markup/inline.rb
@@ -1,5 +1,4 @@
-require 'rdoc/markup'
-
+require 'rdoc'
class RDoc::Markup
##
@@ -7,11 +6,18 @@ class RDoc::Markup
# value.
class Attribute
+
+ ##
+ # Special attribute type. See RDoc::Markup#add_special
+
SPECIAL = 1
@@name_to_bitmap = { :_SPECIAL_ => SPECIAL }
@@next_bitmap = 2
+ ##
+ # Returns a unique bit for +name+
+
def self.bitmap_for(name)
bitmap = @@name_to_bitmap[name]
unless bitmap then
@@ -22,6 +28,9 @@ class RDoc::Markup
bitmap
end
+ ##
+ # Returns a string representation of +bitmap+
+
def self.as_string(bitmap)
return "none" if bitmap.zero?
res = []
@@ -31,23 +40,34 @@ class RDoc::Markup
res.join(",")
end
+ ##
+ # yields each attribute name in +bitmap+
+
def self.each_name_of(bitmap)
@@name_to_bitmap.each do |name, bit|
next if bit == SPECIAL
yield name.to_s if (bitmap & bit) != 0
end
end
+
end
- AttrChanger = Struct.new(:turn_on, :turn_off)
+ AttrChanger = Struct.new :turn_on, :turn_off # :nodoc:
##
# An AttrChanger records a change in attributes. It contains a bitmap of the
# attributes to turn on, and a bitmap of those to turn off.
class AttrChanger
- def to_s
- "Attr: +#{Attribute.as_string(turn_on)}/-#{Attribute.as_string(turn_on)}"
+ def to_s # :nodoc:
+ "Attr: +#{Attribute.as_string turn_on}/-#{Attribute.as_string turn_off}"
+ end
+
+ def inspect # :nodoc:
+ "+%s/-%s" % [
+ Attribute.as_string(turn_on),
+ Attribute.as_string(turn_off),
+ ]
end
end
@@ -55,42 +75,66 @@ class RDoc::Markup
# An array of attributes which parallels the characters in a string.
class AttrSpan
+
+ ##
+ # Creates a new AttrSpan for +length+ characters
+
def initialize(length)
@attrs = Array.new(length, 0)
end
+ ##
+ # Toggles +bits+ from +start+ to +length+
def set_attrs(start, length, bits)
for i in start ... (start+length)
@attrs[i] |= bits
end
end
+ ##
+ # Accesses flags for character +n+
+
def [](n)
@attrs[n]
end
+
end
##
# Hold details of a special sequence
class Special
+
+ ##
+ # Special type
+
attr_reader :type
+
+ ##
+ # Special text
+
attr_accessor :text
+ ##
+ # Creates a new special sequence of +type+ with +text+
+
def initialize(type, text)
@type, @text = type, text
end
+ ##
+ # Specials are equal when the have the same text and type
+
def ==(o)
self.text == o.text && self.type == o.type
end
- def inspect
+ def inspect # :nodoc:
"#<RDoc::Markup::Special:0x%x @type=%p, name=%p @text=%p>" % [
object_id, @type, RDoc::Markup::Attribute.as_string(type), text.dump]
end
- def to_s
+ def to_s # :nodoc:
"Special: type=#{type}, name=#{RDoc::Markup::Attribute.as_string type}, text=#{text.dump}"
end
@@ -98,4 +142,3 @@ class RDoc::Markup
end
-require 'rdoc/markup/attribute_manager'
diff --git a/lib/rdoc/markup/lines.rb b/lib/rdoc/markup/lines.rb
deleted file mode 100644
index 069492122f..0000000000
--- a/lib/rdoc/markup/lines.rb
+++ /dev/null
@@ -1,152 +0,0 @@
-class RDoc::Markup
-
- ##
- # We store the lines we're working on as objects of class Line. These
- # contain the text of the line, along with a flag indicating the line type,
- # and an indentation level.
-
- class Line
- INFINITY = 9999
-
- LINE_TYPES = [
- :BLANK,
- :HEADING,
- :LIST,
- :PARAGRAPH,
- :RULE,
- :VERBATIM,
- ]
-
- # line type
- attr_accessor :type
-
- # The indentation nesting level
- attr_accessor :level
-
- # The contents
- attr_accessor :text
-
- # A prefix or parameter. For LIST lines, this is
- # the text that introduced the list item (the label)
- attr_accessor :param
-
- # A flag. For list lines, this is the type of the list
- attr_accessor :flag
-
- # the number of leading spaces
- attr_accessor :leading_spaces
-
- # true if this line has been deleted from the list of lines
- attr_accessor :deleted
-
- def initialize(text)
- @text = text.dup
- @deleted = false
-
- # expand tabs
- 1 while @text.gsub!(/\t+/) { ' ' * (8*$&.length - $`.length % 8)} && $~ #`
-
- # Strip trailing whitespace
- @text.sub!(/\s+$/, '')
-
- # and look for leading whitespace
- if @text.length > 0
- @text =~ /^(\s*)/
- @leading_spaces = $1.length
- else
- @leading_spaces = INFINITY
- end
- end
-
- # Return true if this line is blank
- def blank?
- @text.empty?
- end
-
- # stamp a line with a type, a level, a prefix, and a flag
- def stamp(type, level, param="", flag=nil)
- @type, @level, @param, @flag = type, level, param, flag
- end
-
- ##
- # Strip off the leading margin
-
- def strip_leading(size)
- if @text.size > size
- @text[0,size] = ""
- else
- @text = ""
- end
- end
-
- def to_s
- "#@type#@level: #@text"
- end
- end
-
- ##
- # A container for all the lines.
-
- class Lines
-
- include Enumerable
-
- attr_reader :lines # :nodoc:
-
- def initialize(lines)
- @lines = lines
- rewind
- end
-
- def empty?
- @lines.size.zero?
- end
-
- def each
- @lines.each do |line|
- yield line unless line.deleted
- end
- end
-
-# def [](index)
-# @lines[index]
-# end
-
- def rewind
- @nextline = 0
- end
-
- def next
- begin
- res = @lines[@nextline]
- @nextline += 1 if @nextline < @lines.size
- end while res and res.deleted and @nextline < @lines.size
- res
- end
-
- def unget
- @nextline -= 1
- end
-
- def delete(a_line)
- a_line.deleted = true
- end
-
- def normalize
- margin = @lines.collect{|l| l.leading_spaces}.min
- margin = 0 if margin == :INFINITY
- @lines.each {|line| line.strip_leading(margin) } if margin > 0
- end
-
- def as_text
- @lines.map {|l| l.text}.join("\n")
- end
-
- def line_types
- @lines.map {|l| l.type }
- end
-
- end
-
-end
-
diff --git a/lib/rdoc/markup/list.rb b/lib/rdoc/markup/list.rb
new file mode 100644
index 0000000000..820b4c9645
--- /dev/null
+++ b/lib/rdoc/markup/list.rb
@@ -0,0 +1,81 @@
+##
+# A List of ListItems
+
+class RDoc::Markup::List
+
+ ##
+ # The list's type
+
+ attr_accessor :type
+
+ ##
+ # Items in the list
+
+ attr_reader :items
+
+ ##
+ # Creates a new list of +type+ with +items+
+
+ def initialize type = nil, *items
+ @type = type
+ @items = []
+ @items.push(*items)
+ end
+
+ ##
+ # Appends +item+ to the list
+
+ def << item
+ @items << item
+ end
+
+ def == other # :nodoc:
+ self.class == other.class and
+ @type == other.type and
+ @items == other.items
+ end
+
+ ##
+ # Runs this list and all its #items through +visitor+
+
+ def accept visitor
+ visitor.accept_list_start self
+
+ @items.each do |item|
+ item.accept visitor
+ end
+
+ visitor.accept_list_end self
+ end
+
+ ##
+ # Is the list empty?
+
+ def empty?
+ @items.empty?
+ end
+
+ ##
+ # Returns the last item in the list
+
+ def last
+ @items.last
+ end
+
+ def pretty_print q # :nodoc:
+ q.group 2, "[list: #{@type} ", ']' do
+ q.seplist @items do |item|
+ q.pp item
+ end
+ end
+ end
+
+ ##
+ # Appends +items+ to the list
+
+ def push *items
+ @items.push(*items)
+ end
+
+end
+
diff --git a/lib/rdoc/markup/list_item.rb b/lib/rdoc/markup/list_item.rb
new file mode 100644
index 0000000000..d719c352ec
--- /dev/null
+++ b/lib/rdoc/markup/list_item.rb
@@ -0,0 +1,86 @@
+##
+# An item within a List that contains paragraphs, headings, etc.
+
+class RDoc::Markup::ListItem
+
+ ##
+ # The label for the ListItem
+
+ attr_accessor :label
+
+ ##
+ # Parts of the ListItem
+
+ attr_reader :parts
+
+ ##
+ # Creates a new ListItem with an optional +label+ containing +parts+
+
+ def initialize label = nil, *parts
+ @label = label
+ @parts = []
+ @parts.push(*parts)
+ end
+
+ ##
+ # Appends +part+ to the ListItem
+
+ def << part
+ @parts << part
+ end
+
+ def == other # :nodoc:
+ self.class == other.class and
+ @label == other.label and
+ @parts == other.parts
+ end
+
+ ##
+ # Runs this list item and all its #parts through +visitor+
+
+ def accept visitor
+ visitor.accept_list_item_start self
+
+ @parts.each do |part|
+ part.accept visitor
+ end
+
+ visitor.accept_list_item_end self
+ end
+
+ ##
+ # Is the ListItem empty?
+
+ def empty?
+ @parts.empty?
+ end
+
+ ##
+ # Length of parts in the ListItem
+
+ def length
+ @parts.length
+ end
+
+ def pretty_print q # :nodoc:
+ q.group 2, '[item: ', ']' do
+ if @label then
+ q.text @label
+ q.breakable
+ end
+
+ q.seplist @parts do |part|
+ q.pp part
+ end
+ end
+ end
+
+ ##
+ # Adds +parts+ to the ListItem
+
+ def push *parts
+ @parts.push(*parts)
+ end
+
+end
+
diff --git a/lib/rdoc/markup/paragraph.rb b/lib/rdoc/markup/paragraph.rb
new file mode 100644
index 0000000000..808430d576
--- /dev/null
+++ b/lib/rdoc/markup/paragraph.rb
@@ -0,0 +1,14 @@
+##
+# A Paragraph of text
+
+class RDoc::Markup::Paragraph < RDoc::Markup::Raw
+
+ ##
+ # Calls #accept_paragraph on +visitor+
+
+ def accept visitor
+ visitor.accept_paragraph self
+ end
+
+end
+
diff --git a/lib/rdoc/markup/parser.rb b/lib/rdoc/markup/parser.rb
new file mode 100644
index 0000000000..c18ce821fb
--- /dev/null
+++ b/lib/rdoc/markup/parser.rb
@@ -0,0 +1,497 @@
+require 'strscan'
+require 'rdoc/text'
+
+##
+# A recursive-descent parser for RDoc markup.
+#
+# The parser tokenizes an input string then parses the tokens into a Document.
+# Documents can be converted into output formats by writing a visitor like
+# RDoc::Markup::ToHTML.
+#
+# The parser only handles the block-level constructs Paragraph, List,
+# ListItem, Heading, Verbatim, BlankLine and Rule. Inline markup such as
+# <tt>\+blah\+</tt> is handled separately by RDoc::Markup::AttributeManager.
+#
+# To see what markup the Parser implements read RDoc. To see how to use
+# RDoc markup to format text in your program read RDoc::Markup.
+
+class RDoc::Markup::Parser
+
+ include RDoc::Text
+
+ ##
+ # List token types
+
+ LIST_TOKENS = [
+ :BULLET,
+ :LABEL,
+ :LALPHA,
+ :NOTE,
+ :NUMBER,
+ :UALPHA,
+ ]
+
+ ##
+ # Parser error subclass
+
+ class Error < RuntimeError; end
+
+ ##
+ # Raised when the parser is unable to handle the given markup
+
+ class ParseError < Error; end
+
+ ##
+ # Enables display of debugging information
+
+ attr_accessor :debug
+
+ ##
+ # Token accessor
+
+ attr_reader :tokens
+
+ ##
+ # Parses +str+ into a Document
+
+ def self.parse str
+ parser = new
+ parser.tokenize str
+ doc = RDoc::Markup::Document.new
+ parser.parse doc
+ end
+
+ ##
+ # Returns a token stream for +str+, for testing
+
+ def self.tokenize str
+ parser = new
+ parser.tokenize str
+ parser.tokens
+ end
+
+ ##
+ # Creates a new Parser. See also ::parse
+
+ def initialize
+ @tokens = []
+ @current_token = nil
+ @debug = false
+
+ @line = 0
+ @line_pos = 0
+ end
+
+ ##
+ # Builds a Heading of +level+
+
+ def build_heading level
+ type, text, = get
+
+ text = case type
+ when :TEXT then
+ skip :NEWLINE
+ text
+ else
+ unget
+ ''
+ end
+
+ RDoc::Markup::Heading.new level, text
+ end
+
+ ##
+ # Builds a List flush to +margin+
+
+ def build_list margin
+ p :list_start => margin if @debug
+
+ list = RDoc::Markup::List.new
+
+ until @tokens.empty? do
+ type, data, column, = get
+
+ case type
+ when :BULLET, :LABEL, :LALPHA, :NOTE, :NUMBER, :UALPHA then
+
+ if column < margin || (list.type && list.type != type) then
+ unget
+ break
+ end
+
+ list.type = type
+ peek_type, _, column, = peek_token
+
+ case type
+ when :NOTE, :LABEL then
+ if peek_type == :NEWLINE then
+ # description not on the same line as LABEL/NOTE
+ # skip the trailing newline & any blank lines below
+ while peek_type == :NEWLINE
+ get
+ peek_type, _, column, = peek_token
+ end
+
+ # we may be:
+ # - at end of stream
+ # - at a column < margin:
+ # [text]
+ # blah blah blah
+ # - at the same column, but with a different type of list item
+ # [text]
+ # * blah blah
+ # - at the same column, with the same type of list item
+ # [one]
+ # [two]
+ # In all cases, we have an empty description.
+ # In the last case only, we continue.
+ if peek_type.nil? || column < margin then
+ empty = 1
+ elsif column == margin then
+ case peek_type
+ when type
+ empty = 2 # continue
+ when *LIST_TOKENS
+ empty = 1
+ else
+ empty = 0
+ end
+ else
+ empty = 0
+ end
+
+ if empty > 0 then
+ item = RDoc::Markup::ListItem.new(data)
+ item << RDoc::Markup::BlankLine.new
+ list << item
+ break if empty == 1
+ next
+ end
+ end
+ else
+ data = nil
+ end
+
+ list_item = RDoc::Markup::ListItem.new data
+ parse list_item, column
+ list << list_item
+
+ else
+ unget
+ break
+ end
+ end
+
+ p :list_end => margin if @debug
+
+ return nil if list.empty?
+
+ list
+ end
+
+ ##
+ # Builds a Paragraph that is flush to +margin+
+
+ def build_paragraph margin
+ p :paragraph_start => margin if @debug
+
+ paragraph = RDoc::Markup::Paragraph.new
+
+ until @tokens.empty? do
+ type, data, column, = get
+
+ if type == :TEXT && column == margin then
+ paragraph << data
+ skip :NEWLINE
+ else
+ unget
+ break
+ end
+ end
+
+ p :paragraph_end => margin if @debug
+
+ paragraph
+ end
+
+ ##
+ # Builds a Verbatim that is indented from +margin+.
+ #
+ # The verbatim block is shifted left (the least indented lines start in
+ # column 0). Each part of the verbatim is one line of text, always
+ # terminated by a newline. Blank lines always consist of a single newline
+ # character, and there is never a single newline at the end of the verbatim.
+
+ def build_verbatim margin
+ p :verbatim_begin => margin if @debug
+ verbatim = RDoc::Markup::Verbatim.new
+
+ min_indent = nil
+ generate_leading_spaces = true
+ line = ''
+
+ until @tokens.empty? do
+ type, data, column, = get
+
+ if type == :NEWLINE then
+ line << data
+ verbatim << line
+ line = ''
+ generate_leading_spaces = true
+ next
+ end
+
+ if column <= margin
+ unget
+ break
+ end
+
+ if generate_leading_spaces then
+ indent = column - margin
+ line << ' ' * indent
+ min_indent = indent if min_indent.nil? || indent < min_indent
+ generate_leading_spaces = false
+ end
+
+ case type
+ when :HEADER then
+ line << '=' * data
+ _, _, peek_column, = peek_token
+ peek_column ||= column + data
+ indent = peek_column - column - data
+ line << ' ' * indent
+ when :RULE then
+ width = 2 + data
+ line << '-' * width
+ _, _, peek_column, = peek_token
+ peek_column ||= column + width
+ indent = peek_column - column - width
+ line << ' ' * indent
+ when :TEXT then
+ line << data
+ else # *LIST_TOKENS
+ list_marker = case type
+ when :BULLET then data
+ when :LABEL then "[#{data}]"
+ when :NOTE then "#{data}::"
+ else # :LALPHA, :NUMBER, :UALPHA
+ "#{data}."
+ end
+ line << list_marker
+ peek_type, _, peek_column = peek_token
+ unless peek_type == :NEWLINE then
+ peek_column ||= column + list_marker.length
+ indent = peek_column - column - list_marker.length
+ line << ' ' * indent
+ end
+ end
+
+ end
+
+ verbatim << line << "\n" unless line.empty?
+ verbatim.parts.each { |p| p.slice!(0, min_indent) unless p == "\n" } if min_indent > 0
+ verbatim.normalize
+
+ p :verbatim_end => margin if @debug
+
+ verbatim
+ end
+
+ ##
+ # Pulls the next token from the stream.
+
+ def get
+ @current_token = @tokens.shift
+ p :get => @current_token if @debug
+ @current_token
+ end
+
+ ##
+ # Parses the tokens into an array of RDoc::Markup::XXX objects,
+ # and appends them to the passed +parent+ RDoc::Markup::YYY object.
+ #
+ # Exits at the end of the token stream, or when it encounters a token
+ # in a column less than +indent+ (unless it is a NEWLINE).
+ #
+ # Returns +parent+.
+
+ def parse parent, indent = 0
+ p :parse_start => indent if @debug
+
+ until @tokens.empty? do
+ type, data, column, = get
+
+ if type == :NEWLINE then
+ # trailing newlines are skipped below, so this is a blank line
+ parent << RDoc::Markup::BlankLine.new
+ skip :NEWLINE, false
+ next
+ end
+
+ # indentation change: break or verbatim
+ if column < indent then
+ unget
+ break
+ elsif column > indent then
+ unget
+ parent << build_verbatim(indent)
+ next
+ end
+
+ # indentation is the same
+ case type
+ when :HEADER then
+ parent << build_heading(data)
+ when :RULE then
+ parent << RDoc::Markup::Rule.new(data)
+ skip :NEWLINE
+ when :TEXT then
+ unget
+ parent << build_paragraph(indent)
+ when *LIST_TOKENS then
+ unget
+ parent << build_list(indent)
+ else
+ type, data, column, line = @current_token
+ raise ParseError, "Unhandled token #{type} (#{data.inspect}) at #{line}:#{column}"
+ end
+ end
+
+ p :parse_end => indent if @debug
+
+ parent
+
+ end
+
+ ##
+ # Returns the next token on the stream without modifying the stream
+
+ def peek_token
+ token = @tokens.first || []
+ p :peek => token if @debug
+ token
+ end
+
+ ##
+ # Skips the next token if its type is +token_type+.
+ #
+ # Optionally raises an error if the next token is not of the expected type.
+
+ def skip token_type, error = true
+ type, = get
+ return unless type # end of stream
+ return @current_token if token_type == type
+ unget
+ raise ParseError, "expected #{token_type} got #{@current_token.inspect}" if error
+ end
+
+ ##
+ # Turns text +input+ into a stream of tokens
+
+ def tokenize input
+ s = StringScanner.new input
+
+ @line = 0
+ @line_pos = 0
+
+ until s.eos? do
+ pos = s.pos
+
+ # leading spaces will be reflected by the column of the next token
+ # the only thing we loose are trailing spaces at the end of the file
+ next if s.scan(/ +/)
+
+ # note: after BULLET, LABEL, etc.,
+ # indent will be the column of the next non-newline token
+
+ @tokens << case
+ # [CR]LF => :NEWLINE
+ when s.scan(/\r?\n/) then
+ token = [:NEWLINE, s.matched, *token_pos(pos)]
+ @line_pos = s.pos
+ @line += 1
+ token
+ # === text => :HEADER then :TEXT
+ when s.scan(/(=+)(\s*)/) then
+ level = s[1].length
+ header = [:HEADER, level, *token_pos(pos)]
+
+ if s[2] =~ /^\r?\n/ then
+ s.pos -= s[2].length
+ header
+ else
+ pos = s.pos
+ s.scan(/.*/)
+ @tokens << header
+ [:TEXT, s.matched.sub(/\r$/, ''), *token_pos(pos)]
+ end
+ # --- (at least 3) and nothing else on the line => :RULE
+ when s.scan(/(-{3,}) *$/) then
+ [:RULE, s[1].length - 2, *token_pos(pos)]
+ # * or - followed by white space and text => :BULLET
+ when s.scan(/([*-]) +(\S)/) then
+ s.pos -= s[2].bytesize # unget \S
+ [:BULLET, s[1], *token_pos(pos)]
+ # A. text, a. text, 12. text => :UALPHA, :LALPHA, :NUMBER
+ when s.scan(/([a-z]|\d+)\. +(\S)/i) then
+ # FIXME if tab(s), the column will be wrong
+ # either support tabs everywhere by first expanding them to
+ # spaces, or assume that they will have been replaced
+ # before (and provide a check for that at least in debug
+ # mode)
+ list_label = s[1]
+ s.pos -= s[2].bytesize # unget \S
+ list_type =
+ case list_label
+ when /[a-z]/ then :LALPHA
+ when /[A-Z]/ then :UALPHA
+ when /\d/ then :NUMBER
+ else
+ raise ParseError, "BUG token #{list_label}"
+ end
+ [list_type, list_label, *token_pos(pos)]
+ # [text] followed by spaces or end of line => :LABEL
+ when s.scan(/\[(.*?)\]( +|$)/) then
+ [:LABEL, s[1], *token_pos(pos)]
+ # text:: followed by spaces or end of line => :NOTE
+ when s.scan(/(.*?)::( +|$)/) then
+ [:NOTE, s[1], *token_pos(pos)]
+ # anything else: :TEXT
+ else s.scan(/.*/)
+ [:TEXT, s.matched.sub(/\r$/, ''), *token_pos(pos)]
+ end
+ end
+
+ self
+ end
+
+ ##
+ # Calculates the column and line of the current token based on +offset+.
+
+ def token_pos offset
+ [offset - @line_pos, @line]
+ end
+
+ ##
+ # Returns the current token to the token stream
+
+ def unget
+ token = @current_token
+ p :unget => token if @debug
+ raise Error, 'too many #ungets' if token == @tokens.first
+ @tokens.unshift token if token
+ end
+
+end
+
+require 'rdoc/markup/blank_line'
+require 'rdoc/markup/document'
+require 'rdoc/markup/heading'
+require 'rdoc/markup/list'
+require 'rdoc/markup/list_item'
+require 'rdoc/markup/raw'
+require 'rdoc/markup/paragraph'
+require 'rdoc/markup/indented_paragraph'
+require 'rdoc/markup/rule'
+require 'rdoc/markup/verbatim'
+
diff --git a/lib/rdoc/markup/pre_process.rb b/lib/rdoc/markup/pre_process.rb
new file mode 100644
index 0000000000..53e8e38ec1
--- /dev/null
+++ b/lib/rdoc/markup/pre_process.rb
@@ -0,0 +1,227 @@
+require 'rdoc/markup'
+require 'rdoc/encoding'
+
+##
+# Handle common directives that can occur in a block of text:
+#
+# \:include: filename
+#
+# Directives can be escaped by preceding them with a backslash.
+#
+# RDoc plugin authors can register additional directives to be handled by
+# using RDoc::Markup::PreProcess::register
+
+class RDoc::Markup::PreProcess
+
+ attr_accessor :options
+
+ @registered = {}
+
+ ##
+ # Registers +directive+ as one handled by RDoc. If a block is given the
+ # directive will be replaced by the result of the block, otherwise the
+ # directive will be removed from the processed text.
+
+ def self.register directive, &block
+ @registered[directive] = block
+ end
+
+ ##
+ # Registered directives
+
+ def self.registered
+ @registered
+ end
+
+ ##
+ # Creates a new pre-processor for +input_file_name+ that will look for
+ # included files in +include_path+
+
+ def initialize(input_file_name, include_path)
+ @input_file_name = input_file_name
+ @include_path = include_path
+ @options = nil
+ end
+
+ ##
+ # Look for directives in a chunk of +text+.
+ #
+ # Options that we don't handle are yielded. If the block returns false the
+ # directive is restored to the text. If the block returns nil or no block
+ # was given the directive is handled according to the registered directives.
+ # If a String was returned the directive is replaced with the string.
+ #
+ # If no matching directive was registered the directive is restored to the
+ # text.
+ #
+ # If +code_object+ is given and the param is set as metadata on the
+ # +code_object+. See RDoc::CodeObject#metadata
+
+ def handle text, code_object = nil, &block
+ encoding = if defined?(Encoding) then text.encoding else nil end
+ # regexp helper (square brackets for optional)
+ # $1 $2 $3 $4 $5
+ # [prefix][\]:directive:[spaces][param]newline
+ text.gsub!(/^([ \t]*(?:#|\/?\*)?[ \t]*)(\\?):(\w+):([ \t]*)(.+)?\n/) do
+ # skip something like ':toto::'
+ next $& if $4.empty? and $5 and $5[0, 1] == ':'
+
+ # skip if escaped
+ next "#$1:#$3:#$4#$5\n" unless $2.empty?
+
+ handle_directive $1, $3, $5, code_object, encoding, &block
+ end
+
+ text
+ end
+
+ #--
+ # When 1.8.7 support is ditched prefix can be defaulted to ''
+
+ def handle_directive prefix, directive, param, code_object = nil,
+ encoding = nil
+ blankline = "#{prefix.strip}\n"
+ directive = directive.downcase
+
+ case directive
+ when 'arg', 'args' then
+ return blankline unless code_object
+
+ code_object.params = param
+
+ blankline
+ when 'category' then
+ if RDoc::Context === code_object then
+ section = code_object.add_section param, ''
+ code_object.temporary_section = section
+ end
+
+ blankline # ignore category if we're not on an RDoc::Context
+ when 'doc' then
+ return blankline unless code_object
+ code_object.document_self = true
+ code_object.force_documentation = true
+
+ blankline
+ when 'enddoc' then
+ return blankline unless code_object
+ code_object.done_documenting = true
+
+ blankline
+ when 'include' then
+ filename = param.split.first
+ include_file filename, prefix, encoding
+ when 'main' then
+ @options.main_page = param if @options.respond_to? :main_page
+
+ blankline
+ when 'nodoc' then
+ return blankline unless code_object
+ code_object.document_self = nil # notify nodoc
+ code_object.document_children = param !~ /all/i
+
+ blankline
+ when 'notnew', 'not_new', 'not-new' then
+ return blankline unless RDoc::AnyMethod === code_object
+
+ code_object.dont_rename_initialize = true
+
+ blankline
+ when 'startdoc' then
+ return blankline unless code_object
+
+ code_object.start_doc
+ code_object.force_documentation = true
+
+ blankline
+ when 'stopdoc' then
+ return blankline unless code_object
+
+ code_object.stop_doc
+
+ blankline
+ when 'title' then
+ @options.default_title = param if @options.respond_to? :default_title=
+
+ blankline
+ when 'yield', 'yields' then
+ return blankline unless code_object
+ # remove parameter &block
+ code_object.params.sub!(/,?\s*&\w+/, '') if code_object.params
+
+ code_object.block_params = param
+
+ blankline
+ else
+ result = yield directive, param if block_given?
+
+ case result
+ when nil then
+ code_object.metadata[directive] = param if code_object
+
+ if RDoc::Markup::PreProcess.registered.include? directive then
+ handler = RDoc::Markup::PreProcess.registered[directive]
+ result = handler.call directive, param if handler
+ else
+ result = "#{prefix}:#{directive}: #{param}\n"
+ end
+ when false then
+ result = "#{prefix}:#{directive}: #{param}\n"
+ end
+
+ result
+ end
+ end
+
+ ##
+ # Handles the <tt>:include: _filename_</tt> directive.
+ #
+ # If the first line of the included file starts with '#', and contains
+ # an encoding information in the form 'coding:' or 'coding=', it is
+ # removed.
+ #
+ # If all lines in the included file start with a '#', this leading '#'
+ # is removed before inclusion. The included content is indented like
+ # the <tt>:include:</tt> directive.
+ #--
+ # so all content will be verbatim because of the likely space after '#'?
+ # TODO shift left the whole file content in that case
+ # TODO comment stop/start #-- and #++ in included file must be processed here
+
+ def include_file name, indent, encoding
+ full_name = find_include_file name
+
+ unless full_name then
+ warn "Couldn't find file to include '#{name}' from #{@input_file_name}"
+ return ''
+ end
+
+ content = RDoc::Encoding.read_file full_name, encoding, true
+
+ # strip magic comment
+ content = content.sub(/\A# .*coding[=:].*$/, '').lstrip
+
+ # strip leading '#'s, but only if all lines start with them
+ if content =~ /^[^#]/ then
+ content.gsub(/^/, indent)
+ else
+ content.gsub(/^#?/, indent)
+ end
+ end
+
+ ##
+ # Look for the given file in the directory containing the current file,
+ # and then in each of the directories specified in the RDOC_INCLUDE path
+
+ def find_include_file(name)
+ to_search = [File.dirname(@input_file_name)].concat @include_path
+ to_search.each do |dir|
+ full_name = File.join(dir, name)
+ stat = File.stat(full_name) rescue next
+ return full_name if stat.readable?
+ end
+ nil
+ end
+
+end
+
diff --git a/lib/rdoc/markup/preprocess.rb b/lib/rdoc/markup/preprocess.rb
deleted file mode 100644
index 00dd4be4ad..0000000000
--- a/lib/rdoc/markup/preprocess.rb
+++ /dev/null
@@ -1,75 +0,0 @@
-require 'rdoc/markup'
-
-##
-# Handle common directives that can occur in a block of text:
-#
-# : include : filename
-
-class RDoc::Markup::PreProcess
-
- def initialize(input_file_name, include_path)
- @input_file_name = input_file_name
- @include_path = include_path
- end
-
- ##
- # Look for common options in a chunk of text. Options that we don't handle
- # are yielded to the caller.
-
- def handle(text)
- text.gsub!(/^([ \t]*#?[ \t]*):(\w+):([ \t]*)(.+)?\n/) do
- next $& if $3.empty? and $4 and $4[0, 1] == ':'
-
- prefix = $1
- directive = $2.downcase
- param = $4
-
- case directive
- when 'include' then
- filename = param.split[0]
- include_file filename, prefix
-
- else
- result = yield directive, param
- result = "#{prefix}:#{directive}: #{param}\n" unless result
- result
- end
- end
- end
-
- private
-
- ##
- # Include a file, indenting it correctly.
-
- def include_file(name, indent)
- if full_name = find_include_file(name) then
- content = File.open(full_name) {|f| f.read}
- # strip leading '#'s, but only if all lines start with them
- if content =~ /^[^#]/
- content.gsub(/^/, indent)
- else
- content.gsub(/^#?/, indent)
- end
- else
- $stderr.puts "Couldn't find file to include: '#{name}'"
- ''
- end
- end
-
- ##
- # Look for the given file in the directory containing the current file,
- # and then in each of the directories specified in the RDOC_INCLUDE path
-
- def find_include_file(name)
- to_search = [ File.dirname(@input_file_name) ].concat @include_path
- to_search.each do |dir|
- full_name = File.join(dir, name)
- stat = File.stat(full_name) rescue next
- return full_name if stat.readable?
- end
- nil
- end
-
-end
-
diff --git a/lib/rdoc/markup/raw.rb b/lib/rdoc/markup/raw.rb
new file mode 100644
index 0000000000..ca877c79af
--- /dev/null
+++ b/lib/rdoc/markup/raw.rb
@@ -0,0 +1,69 @@
+##
+# A section of text that is added to the output document as-is
+
+class RDoc::Markup::Raw
+
+ ##
+ # The component parts of the list
+
+ attr_reader :parts
+
+ ##
+ # Creates a new Raw containing +parts+
+
+ def initialize *parts
+ @parts = []
+ @parts.push(*parts)
+ end
+
+ ##
+ # Appends +text+
+
+ def << text
+ @parts << text
+ end
+
+ def == other # :nodoc:
+ self.class == other.class and text == other.text
+ end
+
+ ##
+ # Calls #accept_raw+ on +visitor+
+
+ def accept visitor
+ visitor.accept_raw self
+ end
+
+ ##
+ # Appends +other+'s parts
+
+ def merge other
+ @parts.push(*other.parts)
+ end
+
+ def pretty_print q # :nodoc:
+ self.class.name =~ /.*::(\w{4})/i
+
+ q.group 2, "[#{$1.downcase}: ", ']' do
+ q.seplist @parts do |part|
+ q.pp part
+ end
+ end
+ end
+
+ ##
+ # Appends +texts+ onto this Paragraph
+
+ def push *texts
+ self.parts.push(*texts)
+ end
+
+ ##
+ # The raw text
+
+ def text
+ @parts.join ' '
+ end
+
+end
+
diff --git a/lib/rdoc/markup/rule.rb b/lib/rdoc/markup/rule.rb
new file mode 100644
index 0000000000..b778f2bc09
--- /dev/null
+++ b/lib/rdoc/markup/rule.rb
@@ -0,0 +1,20 @@
+##
+# A horizontal rule with a weight
+
+class RDoc::Markup::Rule < Struct.new :weight
+
+ ##
+ # Calls #accept_rule on +visitor+
+
+ def accept visitor
+ visitor.accept_rule self
+ end
+
+ def pretty_print q # :nodoc:
+ q.group 2, '[rule:', ']' do
+ q.pp weight
+ end
+ end
+
+end
+
diff --git a/lib/rdoc/markup/text_formatter_test_case.rb b/lib/rdoc/markup/text_formatter_test_case.rb
new file mode 100644
index 0000000000..ba9e7c6187
--- /dev/null
+++ b/lib/rdoc/markup/text_formatter_test_case.rb
@@ -0,0 +1,116 @@
+require 'rdoc/markup/formatter_test_case'
+
+##
+# Test case for creating new plain-text RDoc::Markup formatters. See also
+# RDoc::Markup::FormatterTestCase
+#
+# See test_rdoc_markup_to_rdoc.rb for a complete example.
+#
+# Example:
+#
+# class TestRDocMarkupToNewTextFormat < RDoc::Markup::TextFormatterTestCase
+#
+# add_visitor_tests
+# add_text_tests
+#
+# def setup
+# super
+#
+# @to = RDoc::Markup::ToNewTextFormat.new
+# end
+#
+# def accept_blank_line
+# assert_equal :junk, @to.res.join
+# end
+#
+# # ...
+#
+# end
+
+class RDoc::Markup::TextFormatterTestCase < RDoc::Markup::FormatterTestCase
+
+ ##
+ # Adds test cases to the calling TestCase.
+
+ def self.add_text_tests
+ self.class_eval do
+
+ ##
+ # Test case that calls <tt>@to.accept_heading</tt>
+
+ def test_accept_heading_indent
+ @to.start_accepting
+ @to.indent = 3
+ @to.accept_heading @RM::Heading.new(1, 'Hello')
+
+ accept_heading_indent
+ end
+
+ ##
+ # Test case that calls <tt>@to.accept_rule</tt>
+
+ def test_accept_rule_indent
+ @to.start_accepting
+ @to.indent = 3
+ @to.accept_rule @RM::Rule.new(1)
+
+ accept_rule_indent
+ end
+
+ ##
+ # Test case that calls <tt>@to.accept_verbatim</tt>
+
+ def test_accept_verbatim_indent
+ @to.start_accepting
+ @to.indent = 2
+ @to.accept_verbatim @RM::Verbatim.new("hi\n", " world\n")
+
+ accept_verbatim_indent
+ end
+
+ ##
+ # Test case that calls <tt>@to.accept_verbatim</tt> with a big indent
+
+ def test_accept_verbatim_big_indent
+ @to.start_accepting
+ @to.indent = 2
+ @to.accept_verbatim @RM::Verbatim.new("hi\n", "world\n")
+
+ accept_verbatim_big_indent
+ end
+
+ ##
+ # Test case that calls <tt>@to.accept_paragraph</tt> with an indent
+
+ def test_accept_paragraph_indent
+ @to.start_accepting
+ @to.indent = 3
+ @to.accept_paragraph @RM::Paragraph.new(('words ' * 30).strip)
+
+ accept_paragraph_indent
+ end
+
+ ##
+ # Test case that calls <tt>@to.accept_paragraph</tt> with a long line
+
+ def test_accept_paragraph_wrap
+ @to.start_accepting
+ @to.accept_paragraph @RM::Paragraph.new(('words ' * 30).strip)
+
+ accept_paragraph_wrap
+ end
+
+ ##
+ # Test case that calls <tt>@to.attributes</tt> with an escaped
+ # cross-reference. If this test doesn't pass something may be very
+ # wrong.
+
+ def test_attributes
+ assert_equal 'Dog', @to.attributes("\\Dog")
+ end
+
+ end
+ end
+
+end
+
diff --git a/lib/rdoc/markup/to_ansi.rb b/lib/rdoc/markup/to_ansi.rb
new file mode 100644
index 0000000000..1e8a0289d9
--- /dev/null
+++ b/lib/rdoc/markup/to_ansi.rb
@@ -0,0 +1,84 @@
+require 'rdoc/markup/to_rdoc'
+
+##
+# Outputs RDoc markup with vibrant ANSI color!
+
+class RDoc::Markup::ToAnsi < RDoc::Markup::ToRdoc
+
+ ##
+ # Creates a new ToAnsi visitor that is ready to output vibrant ANSI color!
+
+ def initialize markup = nil
+ super
+
+ @headings.clear
+ @headings[1] = ["\e[1;32m", "\e[m"] # bold
+ @headings[2] = ["\e[4;32m", "\e[m"] # underline
+ @headings[3] = ["\e[32m", "\e[m"] # just green
+ end
+
+ ##
+ # Maps attributes to ANSI sequences
+
+ def init_tags
+ add_tag :BOLD, "\e[1m", "\e[m"
+ add_tag :TT, "\e[7m", "\e[m"
+ add_tag :EM, "\e[4m", "\e[m"
+ end
+
+ ##
+ # Overrides indent width to ensure output lines up correctly.
+
+ def accept_list_item_end list_item
+ width = case @list_type.last
+ when :BULLET then
+ 2
+ when :NOTE, :LABEL then
+ @res << "\n" unless res.length == 1
+ 2
+ else
+ bullet = @list_index.last.to_s
+ @list_index[-1] = @list_index.last.succ
+ bullet.length + 2
+ end
+
+ @indent -= width
+ end
+
+ ##
+ # Adds coloring to note and label list items
+
+ def accept_list_item_start list_item
+ bullet = case @list_type.last
+ when :BULLET then
+ '*'
+ when :NOTE, :LABEL then
+ attributes(list_item.label) + ":\n"
+ else
+ @list_index.last.to_s + '.'
+ end
+
+ case @list_type.last
+ when :NOTE, :LABEL then
+ @indent += 2
+ @prefix = bullet + (' ' * @indent)
+ else
+ @prefix = (' ' * @indent) + bullet.ljust(bullet.length + 1)
+
+ width = bullet.gsub(/\e\[[\d;]*m/, '').length + 1
+
+ @indent += width
+ end
+ end
+
+ ##
+ # Starts accepting with a reset screen
+
+ def start_accepting
+ super
+
+ @res = ["\e[0m"]
+ end
+
+end
+
diff --git a/lib/rdoc/markup/to_bs.rb b/lib/rdoc/markup/to_bs.rb
new file mode 100644
index 0000000000..32b1bbb9eb
--- /dev/null
+++ b/lib/rdoc/markup/to_bs.rb
@@ -0,0 +1,80 @@
+require 'rdoc/markup/to_rdoc'
+
+##
+# Outputs RDoc markup with hot backspace action! You will probably need a
+# pager to use this output format.
+#
+# This formatter won't work on 1.8.6 because it lacks String#chars.
+
+class RDoc::Markup::ToBs < RDoc::Markup::ToRdoc
+
+ ##
+ # Returns a new ToBs that is ready for hot backspace action!
+
+ def initialize markup = nil
+ super
+
+ @in_b = false
+ @in_em = false
+ end
+
+ ##
+ # Sets a flag that is picked up by #annotate to do the right thing in
+ # #convert_string
+
+ def init_tags
+ add_tag :BOLD, '+b', '-b'
+ add_tag :EM, '+_', '-_'
+ add_tag :TT, '' , '' # we need in_tt information maintained
+ end
+
+ ##
+ # Makes heading text bold.
+
+ def accept_heading heading
+ use_prefix or @res << ' ' * @indent
+ @res << @headings[heading.level][0]
+ @in_b = true
+ @res << attributes(heading.text)
+ @in_b = false
+ @res << @headings[heading.level][1]
+ @res << "\n"
+ end
+
+ ##
+ # Turns on or off special handling for +convert_string+
+
+ def annotate tag
+ case tag
+ when '+b' then @in_b = true
+ when '-b' then @in_b = false
+ when '+_' then @in_em = true
+ when '-_' then @in_em = false
+ end
+ ''
+ end
+
+ ##
+ # Calls convert_string on the result of convert_special
+
+ def convert_special special
+ convert_string super
+ end
+
+ ##
+ # Adds bold or underline mixed with backspaces
+
+ def convert_string string
+ return string unless string.respond_to? :chars # your ruby is lame
+ return string unless @in_b or @in_em
+ chars = if @in_b then
+ string.chars.map do |char| "#{char}\b#{char}" end
+ elsif @in_em then
+ string.chars.map do |char| "_\b#{char}" end
+ end
+
+ chars.join
+ end
+
+end
+
diff --git a/lib/rdoc/markup/to_flow.rb b/lib/rdoc/markup/to_flow.rb
deleted file mode 100644
index 3d87b3e9c3..0000000000
--- a/lib/rdoc/markup/to_flow.rb
+++ /dev/null
@@ -1,185 +0,0 @@
-require 'rdoc/markup/formatter'
-require 'rdoc/markup/fragments'
-require 'rdoc/markup/inline'
-require 'cgi'
-
-class RDoc::Markup
-
- module Flow
- P = Struct.new(:body)
- VERB = Struct.new(:body)
- RULE = Struct.new(:width)
- class LIST
- attr_reader :type, :contents
- def initialize(type)
- @type = type
- @contents = []
- end
- def <<(stuff)
- @contents << stuff
- end
- end
- LI = Struct.new(:label, :body)
- H = Struct.new(:level, :text)
- end
-
- class ToFlow < RDoc::Markup::Formatter
- LIST_TYPE_TO_HTML = {
- :BULLET => [ "<ul>", "</ul>" ],
- :NUMBER => [ "<ol>", "</ol>" ],
- :UPPERALPHA => [ "<ol>", "</ol>" ],
- :LOWERALPHA => [ "<ol>", "</ol>" ],
- :LABELED => [ "<dl>", "</dl>" ],
- :NOTE => [ "<table>", "</table>" ],
- }
-
- InlineTag = Struct.new(:bit, :on, :off)
-
- def initialize
- super
-
- init_tags
- end
-
- ##
- # Set up the standard mapping of attributes to HTML tags
-
- def init_tags
- @attr_tags = [
- InlineTag.new(RDoc::Markup::Attribute.bitmap_for(:BOLD), "<b>", "</b>"),
- InlineTag.new(RDoc::Markup::Attribute.bitmap_for(:TT), "<tt>", "</tt>"),
- InlineTag.new(RDoc::Markup::Attribute.bitmap_for(:EM), "<em>", "</em>"),
- ]
- end
-
- ##
- # Add a new set of HTML tags for an attribute. We allow separate start and
- # end tags for flexibility
-
- def add_tag(name, start, stop)
- @attr_tags << InlineTag.new(RDoc::Markup::Attribute.bitmap_for(name), start, stop)
- end
-
- ##
- # Given an HTML tag, decorate it with class information and the like if
- # required. This is a no-op in the base class, but is overridden in HTML
- # output classes that implement style sheets
-
- def annotate(tag)
- tag
- end
-
- ##
- # Here's the client side of the visitor pattern
-
- def start_accepting
- @res = []
- @list_stack = []
- end
-
- def end_accepting
- @res
- end
-
- def accept_paragraph(am, fragment)
- @res << Flow::P.new((convert_flow(am.flow(fragment.txt))))
- end
-
- def accept_verbatim(am, fragment)
- @res << Flow::VERB.new((convert_flow(am.flow(fragment.txt))))
- end
-
- def accept_rule(am, fragment)
- size = fragment.param
- size = 10 if size > 10
- @res << Flow::RULE.new(size)
- end
-
- def accept_list_start(am, fragment)
- @list_stack.push(@res)
- list = Flow::LIST.new(fragment.type)
- @res << list
- @res = list
- end
-
- def accept_list_end(am, fragment)
- @res = @list_stack.pop
- end
-
- def accept_list_item(am, fragment)
- @res << Flow::LI.new(fragment.param, convert_flow(am.flow(fragment.txt)))
- end
-
- def accept_blank_line(am, fragment)
- # @res << annotate("<p />") << "\n"
- end
-
- def accept_heading(am, fragment)
- @res << Flow::H.new(fragment.head_level, convert_flow(am.flow(fragment.txt)))
- end
-
- private
-
- def on_tags(res, item)
- attr_mask = item.turn_on
- return if attr_mask.zero?
-
- @attr_tags.each do |tag|
- if attr_mask & tag.bit != 0
- res << annotate(tag.on)
- end
- end
- end
-
- def off_tags(res, item)
- attr_mask = item.turn_off
- return if attr_mask.zero?
-
- @attr_tags.reverse_each do |tag|
- if attr_mask & tag.bit != 0
- res << annotate(tag.off)
- end
- end
- end
-
- def convert_flow(flow)
- res = ""
- flow.each do |item|
- case item
- when String
- res << convert_string(item)
- when AttrChanger
- off_tags(res, item)
- on_tags(res, item)
- when Special
- res << convert_special(item)
- else
- raise "Unknown flow element: #{item.inspect}"
- end
- end
- res
- end
-
- def convert_string(item)
- CGI.escapeHTML(item)
- end
-
- def convert_special(special)
- handled = false
- Attribute.each_name_of(special.type) do |name|
- method_name = "handle_special_#{name}"
- if self.respond_to? method_name
- special.text = send(method_name, special)
- handled = true
- end
- end
-
- raise "Unhandled special: #{special}" unless handled
-
- special.text
- end
-
- end
-
-end
-
diff --git a/lib/rdoc/markup/to_html.rb b/lib/rdoc/markup/to_html.rb
index 0165042d84..bd5fdb493e 100644
--- a/lib/rdoc/markup/to_html.rb
+++ b/lib/rdoc/markup/to_html.rb
@@ -1,38 +1,37 @@
require 'rdoc/markup/formatter'
-require 'rdoc/markup/fragments'
require 'rdoc/markup/inline'
require 'cgi'
+##
+# Outputs RDoc markup as HTML
+
class RDoc::Markup::ToHtml < RDoc::Markup::Formatter
- LIST_TYPE_TO_HTML = {
- :BULLET => %w[<ul> </ul>],
- :NUMBER => %w[<ol> </ol>],
- :UPPERALPHA => %w[<ol> </ol>],
- :LOWERALPHA => %w[<ol> </ol>],
- :LABELED => %w[<dl> </dl>],
- :NOTE => %w[<table> </table>],
- }
+ include RDoc::Text
- InlineTag = Struct.new(:bit, :on, :off)
+ # :section: Utilities
- def initialize
- super
+ ##
+ # Maps RDoc::Markup::Parser::LIST_TOKENS types to HTML tags
- # @in_tt - tt nested levels count
- # @tt_bit - cache
- @in_tt = 0
- @tt_bit = RDoc::Markup::Attribute.bitmap_for :TT
+ LIST_TYPE_TO_HTML = {
+ :BULLET => ['<ul>', '</ul>'],
+ :LABEL => ['<dl class="rdoc-list">', '</dl>'],
+ :LALPHA => ['<ol style="display: lower-alpha">', '</ol>'],
+ :NOTE => ['<table class="rdoc-list">', '</table>'],
+ :NUMBER => ['<ol>', '</ol>'],
+ :UALPHA => ['<ol style="display: upper-alpha">', '</ol>'],
+ }
- # external hyperlinks
- @markup.add_special(/((link:|https?:|mailto:|ftp:|www\.)\S+\w)/, :HYPERLINK)
+ attr_reader :res # :nodoc:
+ attr_reader :in_list_entry # :nodoc:
+ attr_reader :list # :nodoc:
- # and links of the form <text>[<url>]
- @markup.add_special(/(((\{.*?\})|\b\S+?)\[\S+?\.\S+?\])/, :TIDYLINK)
+ ##
+ # Path to this document for relative links
- init_tags
- end
+ attr_accessor :from_path
##
# Converts a target url to one that is relative to a given path
@@ -44,6 +43,9 @@ class RDoc::Markup::ToHtml < RDoc::Markup::Formatter
from = from.split "/"
to = to.split "/"
+ from.delete '.'
+ to.delete '.'
+
while from.size > 0 and to.size > 0 and from[0] == to[0] do
from.shift
to.shift
@@ -55,52 +57,53 @@ class RDoc::Markup::ToHtml < RDoc::Markup::Formatter
File.join(*from)
end
+ # :section:
+
##
- # Generate a hyperlink for url, labeled with text. Handle the
- # special cases for img: and link: described under handle_special_HYPERLINK
+ # Creates a new formatter that will output HTML
- def gen_url(url, text)
- if url =~ /([A-Za-z]+):(.*)/ then
- type = $1
- path = $2
- else
- type = "http"
- path = url
- url = "http://#{url}"
- end
+ def initialize markup = nil
+ super
- if type == "link" then
- url = if path[0, 1] == '#' then # is this meaningful?
- path
- else
- self.class.gen_relative_url @from_path, path
- end
- end
+ @th = nil
+ @in_list_entry = nil
+ @list = nil
+ @from_path = ''
- if (type == "http" or type == "link") and
- url =~ /\.(gif|png|jpg|jpeg|bmp)$/ then
- "<img src=\"#{url}\" />"
- else
- "<a href=\"#{url}\">#{text.sub(%r{^#{type}:/*}, '')}</a>"
- end
+ # external links
+ @markup.add_special(/((link:|https?:|mailto:|ftp:|www\.)\S+\w)/, :HYPERLINK)
+
+ # and links of the form <text>[<url>]
+ @markup.add_special(/(((\{.*?\})|\b\S+?)\[\S+?\])/, :TIDYLINK)
+
+ init_tags
end
+ # :section: Special Handling
+ #
+ # These methods handle special markup added by RDoc::Markup#add_special.
+
##
- # And we're invoked with a potential external hyperlink mailto:
- # just gets inserted. http: links are checked to see if they
- # reference an image. If so, that image gets inserted using an
- # <img> tag. Otherwise a conventional <a href> is used. We also
- # support a special type of hyperlink, link:, which is a reference
- # to a local file whose path is relative to the --op directory.
+ # +special+ is a potential link. The following schemes are handled:
+ #
+ # <tt>mailto:</tt>::
+ # Inserted as-is.
+ # <tt>http:</tt>::
+ # Links are checked to see if they reference an image. If so, that image
+ # gets inserted using an <tt><img></tt> tag. Otherwise a conventional
+ # <tt><a href></tt> is used.
+ # <tt>link:</tt>::
+ # Reference to a local file relative to the output directory.
def handle_special_HYPERLINK(special)
url = special.text
+
gen_url url, url
end
##
- # Here's a hypedlink where the label is different to the URL
- # <label>[url] or {long label}[url]
+ # This +special+ is a link where the label is different from the URL
+ # <tt>label[url]</tt> or <tt>{long label}[url]</tt>
def handle_special_TIDYLINK(special)
text = special.text
@@ -112,292 +115,210 @@ class RDoc::Markup::ToHtml < RDoc::Markup::Formatter
gen_url url, label
end
- ##
- # are we currently inside <tt> tags?
-
- def in_tt?
- @in_tt > 0
- end
+ # :section: Visitor
+ #
+ # These methods implement the HTML visitor.
##
- # is +tag+ a <tt> tag?
+ # Prepares the visitor for HTML generation
- def tt?(tag)
- tag.bit == @tt_bit
+ def start_accepting
+ @res = []
+ @in_list_entry = []
+ @list = []
end
##
- # Set up the standard mapping of attributes to HTML tags
+ # Returns the generated output
- def init_tags
- @attr_tags = [
- InlineTag.new(RDoc::Markup::Attribute.bitmap_for(:BOLD), "<b>", "</b>"),
- InlineTag.new(RDoc::Markup::Attribute.bitmap_for(:TT), "<tt>", "</tt>"),
- InlineTag.new(RDoc::Markup::Attribute.bitmap_for(:EM), "<em>", "</em>"),
- ]
+ def end_accepting
+ @res.join
end
##
- # Add a new set of HTML tags for an attribute. We allow separate start and
- # end tags for flexibility.
+ # Adds +paragraph+ to the output
- def add_tag(name, start, stop)
- @attr_tags << InlineTag.new(RDoc::Markup::Attribute.bitmap_for(name), start, stop)
+ def accept_paragraph(paragraph)
+ @res << "\n<p>"
+ @res << wrap(to_html(paragraph.text))
+ @res << "</p>\n"
end
##
- # Given an HTML tag, decorate it with class information and the like if
- # required. This is a no-op in the base class, but is overridden in HTML
- # output classes that implement style sheets.
+ # Adds +verbatim+ to the output
- def annotate(tag)
- tag
+ def accept_verbatim(verbatim)
+ @res << "\n<pre>"
+ @res << CGI.escapeHTML(verbatim.text.rstrip)
+ @res << "</pre>\n"
end
##
- # Here's the client side of the visitor pattern
-
- def start_accepting
- @res = ""
- @in_list_entry = []
- end
-
- def end_accepting
- @res
- end
-
- def accept_paragraph(am, fragment)
- @res << annotate("<p>") + "\n"
- @res << wrap(convert_flow(am.flow(fragment.txt)))
- @res << annotate("</p>") + "\n"
- end
-
- def accept_verbatim(am, fragment)
- @res << annotate("<pre>") + "\n"
- @res << CGI.escapeHTML(fragment.txt)
- @res << annotate("</pre>") << "\n"
- end
+ # Adds +rule+ to the output
- def accept_rule(am, fragment)
- size = fragment.param
+ def accept_rule(rule)
+ size = rule.weight
size = 10 if size > 10
- @res << "<hr size=\"#{size}\"></hr>"
+ @res << "<hr style=\"height: #{size}px\">\n"
end
- def accept_list_start(am, fragment)
- @res << html_list_name(fragment.type, true) << "\n"
+ ##
+ # Prepares the visitor for consuming +list+
+
+ def accept_list_start(list)
+ @list << list.type
+ @res << html_list_name(list.type, true)
@in_list_entry.push false
end
- def accept_list_end(am, fragment)
+ ##
+ # Finishes consumption of +list+
+
+ def accept_list_end(list)
+ @list.pop
if tag = @in_list_entry.pop
- @res << annotate(tag) << "\n"
+ @res << tag
end
- @res << html_list_name(fragment.type, false) << "\n"
+ @res << html_list_name(list.type, false) << "\n"
end
- def accept_list_item(am, fragment)
+ ##
+ # Prepares the visitor for consuming +list_item+
+
+ def accept_list_item_start(list_item)
if tag = @in_list_entry.last
- @res << annotate(tag) << "\n"
+ @res << tag
end
- @res << list_item_start(am, fragment)
-
- @res << wrap(convert_flow(am.flow(fragment.txt))) << "\n"
-
- @in_list_entry[-1] = list_end_for(fragment.type)
+ @res << list_item_start(list_item, @list.last)
end
- def accept_blank_line(am, fragment)
- # @res << annotate("<p />") << "\n"
- end
+ ##
+ # Finishes consumption of +list_item+
- def accept_heading(am, fragment)
- @res << convert_heading(fragment.head_level, am.flow(fragment.txt))
+ def accept_list_item_end(list_item)
+ @in_list_entry[-1] = list_end_for(@list.last)
end
##
- # This is a higher speed (if messier) version of wrap
-
- def wrap(txt, line_len = 76)
- res = ""
- sp = 0
- ep = txt.length
- while sp < ep
- # scan back for a space
- p = sp + line_len - 1
- if p >= ep
- p = ep
- else
- while p > sp and txt[p] != ?\s
- p -= 1
- end
- if p <= sp
- p = sp + line_len
- while p < ep and txt[p] != ?\s
- p += 1
- end
- end
- end
- res << txt[sp...p] << "\n"
- sp = p
- sp += 1 while sp < ep and txt[sp] == ?\s
- end
- res
- end
-
- private
-
- def on_tags(res, item)
- attr_mask = item.turn_on
- return if attr_mask.zero?
+ # Adds +blank_line+ to the output
- @attr_tags.each do |tag|
- if attr_mask & tag.bit != 0
- res << annotate(tag.on)
- @in_tt += 1 if tt?(tag)
- end
- end
+ def accept_blank_line(blank_line)
+ # @res << annotate("<p />") << "\n"
end
- def off_tags(res, item)
- attr_mask = item.turn_off
- return if attr_mask.zero?
+ ##
+ # Adds +heading+ to the output
- @attr_tags.reverse_each do |tag|
- if attr_mask & tag.bit != 0
- @in_tt -= 1 if tt?(tag)
- res << annotate(tag.off)
- end
- end
+ def accept_heading(heading)
+ @res << "\n<h#{heading.level}>"
+ @res << to_html(heading.text)
+ @res << "</h#{heading.level}>\n"
end
- def convert_flow(flow)
- res = ""
-
- flow.each do |item|
- case item
- when String
- res << convert_string(item)
- when RDoc::Markup::AttrChanger
- off_tags(res, item)
- on_tags(res, item)
- when RDoc::Markup::Special
- res << convert_special(item)
- else
- raise "Unknown flow element: #{item.inspect}"
- end
- end
-
- res
- end
+ ##
+ # Adds +raw+ to the output
- def convert_string(item)
- in_tt? ? convert_string_simple(item) : convert_string_fancy(item)
+ def accept_raw raw
+ @res << raw.parts.join("\n")
end
- def convert_string_simple(item)
- CGI.escapeHTML item
- end
+ # :section: Utilities
##
- # some of these patterns are taken from SmartyPants...
-
- def convert_string_fancy(item)
- # convert ampersand before doing anything else
- item.gsub(/&/, '&amp;').
-
- # convert -- to em-dash, (-- to en-dash)
- gsub(/---?/, '&#8212;'). #gsub(/--/, '&#8211;').
-
- # convert ... to elipsis (and make sure .... becomes .<elipsis>)
- gsub(/\.\.\.\./, '.&#8230;').gsub(/\.\.\./, '&#8230;').
+ # CGI escapes +text+
- # convert single closing quote
- gsub(%r{([^ \t\r\n\[\{\(])\'}, '\1&#8217;'). # }
- gsub(%r{\'(?=\W|s\b)}, '&#8217;').
-
- # convert single opening quote
- gsub(/'/, '&#8216;').
-
- # convert double closing quote
- gsub(%r{([^ \t\r\n\[\{\(])\"(?=\W)}, '\1&#8221;'). # }
+ def convert_string(text)
+ CGI.escapeHTML text
+ end
- # convert double opening quote
- gsub(/"/, '&#8220;').
+ ##
+ # Generate a link for +url+, labeled with +text+. Handles the special cases
+ # for img: and link: described under handle_special_HYPERLINK
- # convert copyright
- gsub(/\(c\)/, '&#169;').
+ def gen_url(url, text)
+ if url =~ /([A-Za-z]+):(.*)/ then
+ type = $1
+ path = $2
+ else
+ type = "http"
+ path = url
+ url = "http://#{url}"
+ end
- # convert registered trademark
- gsub(/\(r\)/, '&#174;')
- end
+ if type == "link" then
+ url = if path[0, 1] == '#' then # is this meaningful?
+ path
+ else
+ self.class.gen_relative_url @from_path, path
+ end
+ end
- def convert_special(special)
- handled = false
- RDoc::Markup::Attribute.each_name_of(special.type) do |name|
- method_name = "handle_special_#{name}"
- if self.respond_to? method_name
- special.text = send(method_name, special)
- handled = true
- end
+ if (type == "http" or type == "https" or type == "link") and
+ url =~ /\.(gif|png|jpg|jpeg|bmp)$/ then
+ "<img src=\"#{url}\" />"
+ else
+ "<a href=\"#{url}\">#{text.sub(%r{^#{type}:/*}, '')}</a>"
end
- raise "Unhandled special: #{special}" unless handled
- special.text
end
- def convert_heading(level, flow)
- res =
- annotate("<h#{level}>") +
- convert_flow(flow) +
- annotate("</h#{level}>\n")
- end
+ ##
+ # Determines the HTML list element for +list_type+ and +open_tag+
- def html_list_name(list_type, is_open_tag)
- tags = LIST_TYPE_TO_HTML[list_type] || raise("Invalid list type: #{list_type.inspect}")
- annotate(tags[ is_open_tag ? 0 : 1])
+ def html_list_name(list_type, open_tag)
+ tags = LIST_TYPE_TO_HTML[list_type]
+ raise RDoc::Error, "Invalid list type: #{list_type.inspect}" unless tags
+ tags[open_tag ? 0 : 1]
end
- def list_item_start(am, fragment)
- case fragment.type
- when :BULLET, :NUMBER then
- annotate("<li>")
-
- when :UPPERALPHA then
- annotate("<li type=\"A\">")
-
- when :LOWERALPHA then
- annotate("<li type=\"a\">")
+ ##
+ # Maps attributes to HTML tags
- when :LABELED then
- annotate("<dt>") +
- convert_flow(am.flow(fragment.param)) +
- annotate("</dt>") +
- annotate("<dd>")
+ def init_tags
+ add_tag :BOLD, "<b>", "</b>"
+ add_tag :TT, "<tt>", "</tt>"
+ add_tag :EM, "<em>", "</em>"
+ end
+ ##
+ # Returns the HTML tag for +list_type+, possible using a label from
+ # +list_item+
+
+ def list_item_start(list_item, list_type)
+ case list_type
+ when :BULLET, :LALPHA, :NUMBER, :UALPHA then
+ "<li>"
+ when :LABEL then
+ "<dt>#{to_html list_item.label}</dt>\n<dd>"
when :NOTE then
- annotate("<tr>") +
- annotate("<td valign=\"top\">") +
- convert_flow(am.flow(fragment.param)) +
- annotate("</td>") +
- annotate("<td>")
+ "<tr><td class=\"rdoc-term\"><p>#{to_html list_item.label}</p></td>\n<td>"
else
- raise "Invalid list type"
+ raise RDoc::Error, "Invalid list type: #{list_type.inspect}"
end
end
- def list_end_for(fragment_type)
- case fragment_type
- when :BULLET, :NUMBER, :UPPERALPHA, :LOWERALPHA then
+ ##
+ # Returns the HTML end-tag for +list_type+
+
+ def list_end_for(list_type)
+ case list_type
+ when :BULLET, :LALPHA, :NUMBER, :UALPHA then
"</li>"
- when :LABELED then
+ when :LABEL then
"</dd>"
when :NOTE then
"</td></tr>"
else
- raise "Invalid list type"
+ raise RDoc::Error, "Invalid list type: #{list_type.inspect}"
end
end
+ ##
+ # Converts +item+ to HTML using RDoc::Text#to_html
+
+ def to_html item
+ super convert_flow @am.flow item
+ end
+
end
diff --git a/lib/rdoc/markup/to_html_crossref.rb b/lib/rdoc/markup/to_html_crossref.rb
index e73fbf5c8f..450ea960b5 100644
--- a/lib/rdoc/markup/to_html_crossref.rb
+++ b/lib/rdoc/markup/to_html_crossref.rb
@@ -1,148 +1,120 @@
require 'rdoc/markup/to_html'
+require 'rdoc/cross_reference'
##
-# Subclass of the RDoc::Markup::ToHtml class that supports looking up words in
-# the AllReferences list. Those that are found (like AllReferences in this
-# comment) will be hyperlinked
+# Subclass of the RDoc::Markup::ToHtml class that supports looking up method
+# names, classes, etc to create links. RDoc::CrossReference is used to
+# generate those links based on the current context.
class RDoc::Markup::ToHtmlCrossref < RDoc::Markup::ToHtml
+ # :stopdoc:
+ ALL_CROSSREF_REGEXP = RDoc::CrossReference::ALL_CROSSREF_REGEXP
+ CLASS_REGEXP_STR = RDoc::CrossReference::CLASS_REGEXP_STR
+ CROSSREF_REGEXP = RDoc::CrossReference::CROSSREF_REGEXP
+ METHOD_REGEXP_STR = RDoc::CrossReference::METHOD_REGEXP_STR
+ # :startdoc:
+
+ ##
+ # RDoc::CodeObject for generating references
+
attr_accessor :context
- # Regular expressions to match class and method references.
- #
- # 1.) There can be a '\' in front of text to suppress
- # any cross-references (note, however, that the single '\'
- # is written as '\\\\' in order to escape it twice, once
- # in the Ruby String literal and once in the regexp).
- # 2.) There can be a '::' in front of class names to reference
- # from the top-level namespace.
- # 3.) The method can be followed by parenthesis,
- # which may or may not have things inside (this
- # apparently is allowed for Fortran 95, but I also think that this
- # is a good idea for Ruby, as it is very reasonable to want to
- # reference a call with arguments).
- #
- # NOTE: In order to support Fortran 95 properly, the [A-Z] below
- # should be changed to [A-Za-z]. This slows down rdoc significantly,
- # however, and the Fortran 95 support is broken in any case due to
- # the return in handle_special_CROSSREF if the token consists
- # entirely of lowercase letters.
- #
- # The markup/cross-referencing engine needs a rewrite for
- # Fortran 95 to be supported properly.
- CLASS_REGEXP_STR = '\\\\?((?:\:{2})?[A-Z]\w*(?:\:\:\w+)*)'
- METHOD_REGEXP_STR = '(\w+[!?=]?)(?:\([\.\w+\*\/\+\-\=\<\>]*\))?'
-
- # Regular expressions matching text that should potentially have
- # cross-reference links generated are passed to add_special.
- # Note that these expressions are meant to pick up text for which
- # cross-references have been suppressed, since the suppression
- # characters are removed by the code that is triggered.
- CROSSREF_REGEXP = /(
- # A::B::C.meth
- #{CLASS_REGEXP_STR}[\.\#]#{METHOD_REGEXP_STR}
-
- # Stand-alone method (proceeded by a #)
- | \\?\##{METHOD_REGEXP_STR}
-
- # A::B::C
- # The stuff after CLASS_REGEXP_STR is a
- # nasty hack. CLASS_REGEXP_STR unfortunately matches
- # words like dog and cat (these are legal "class"
- # names in Fortran 95). When a word is flagged as a
- # potential cross-reference, limitations in the markup
- # engine suppress other processing, such as typesetting.
- # This is particularly noticeable for contractions.
- # In order that words like "can't" not
- # be flagged as potential cross-references, only
- # flag potential class cross-references if the character
- # after the cross-referece is a space or sentence
- # punctuation.
- | #{CLASS_REGEXP_STR}(?=[\s\)\.\?\!\,\;]|\z)
-
- # Things that look like filenames
- # The key thing is that there must be at least
- # one special character (period, slash, or
- # underscore).
- | [\/\w]+[_\/\.][\w\/\.]+
-
- # Things that have markup suppressed
- | \\[^\s]
- )/x
+ ##
+ # Should we show '#' characters on method references?
+
+ attr_accessor :show_hash
##
- # We need to record the html path of our caller so we can generate
- # correct relative paths for any hyperlinks that we find
+ # Creates a new crossref resolver that generates links relative to +context+
+ # which lives at +from_path+ in the generated files. '#' characters on
+ # references are removed unless +show_hash+ is true. Only method names
+ # preceded by '#' or '::' are linked, unless +hyperlink_all+ is true.
- def initialize(from_path, context, show_hash)
+ def initialize(from_path, context, show_hash, hyperlink_all = false,
+ markup = nil)
raise ArgumentError, 'from_path cannot be nil' if from_path.nil?
- super()
+ super markup
+
+ crossref_re = hyperlink_all ? ALL_CROSSREF_REGEXP : CROSSREF_REGEXP
+
+ @cross_reference = RDoc::CrossReference.new context
- @markup.add_special(CROSSREF_REGEXP, :CROSSREF)
+ @markup.add_special crossref_re, :CROSSREF
+ @markup.add_special(/rdoc-ref:\S+\w/, :HYPERLINK)
- @from_path = from_path
- @context = context
- @show_hash = show_hash
+ @from_path = from_path
+ @hyperlink_all = hyperlink_all
+ @show_hash = show_hash
+ end
+
+ ##
+ # Creates a link to the reference +name+ if the name exists. If +text+ is
+ # given it is used as the link text, otherwise +name+ is used.
+
+ def cross_reference name, text = nil
+ lookup = name
- @seen = {}
+ name = name[1..-1] unless @show_hash if name[0, 1] == '#'
+
+ text = name unless text
+
+ link lookup, text
end
##
- # We're invoked when any text matches the CROSSREF pattern
- # (defined in MarkUp). If we fine the corresponding reference,
- # generate a hyperlink. If the name we're looking for contains
- # no punctuation, we look for it up the module/class chain. For
- # example, HyperlinkHtml is found, even without the Generator::
- # prefix, because we look for it in module Generator first.
+ # We're invoked when any text matches the CROSSREF pattern. If we find the
+ # corresponding reference, generate a link. If the name we're looking for
+ # contains no punctuation, we look for it up the module/class chain. For
+ # example, ToHtml is found, even without the <tt>RDoc::Markup::</tt> prefix,
+ # because we look for it in module Markup first.
def handle_special_CROSSREF(special)
name = special.text
- # This ensures that words entirely consisting of lowercase letters will
- # not have cross-references generated (to suppress lots of
- # erroneous cross-references to "new" in text, for instance)
- return name if name =~ /\A[a-z]*\z/
+ unless @hyperlink_all then
+ # This ensures that words entirely consisting of lowercase letters will
+ # not have cross-references generated (to suppress lots of erroneous
+ # cross-references to "new" in text, for instance)
+ return name if name =~ /\A[a-z]*\z/
+ end
+
+ cross_reference name
+ end
- return @seen[name] if @seen.include? name
+ ##
+ # Handles <tt>rdoc-ref:</tt> scheme links and allows RDoc::Markup::ToHtml to
+ # handle other schemes.
- if name[0, 1] == '#' then
- lookup = name[1..-1]
- name = lookup unless @show_hash
- else
- lookup = name
- end
+ def handle_special_HYPERLINK special
+ return cross_reference $' if special.text =~ /\Ardoc-ref:/
+ super
+ end
- # Find class, module, or method in class or module.
- #
- # Do not, however, use an if/elsif/else chain to do so. Instead, test
- # each possible pattern until one matches. The reason for this is that a
- # string like "YAML.txt" could be the txt() class method of class YAML (in
- # which case it would match the first pattern, which splits the string
- # into container and method components and looks up both) or a filename
- # (in which case it would match the last pattern, which just checks
- # whether the string as a whole is a known symbol).
-
- if /#{CLASS_REGEXP_STR}[\.\#]#{METHOD_REGEXP_STR}/ =~ lookup then
- container = $1
- method = $2
- ref = @context.find_symbol container, method
- end
+ ##
+ # Generates links for <tt>rdoc-ref:</tt> scheme URLs and allows
+ # RDoc::Markup::ToHtml to handle other schemes.
+
+ def gen_url url, text
+ return super unless url =~ /\Ardoc-ref:/
- ref = @context.find_symbol lookup unless ref
+ cross_reference $', text
+ end
- out = if lookup =~ /^\\/ then
- $'
- elsif ref and ref.document_self then
- "<a href=\"#{ref.as_href(@from_path)}\">#{name}</a>"
- else
- name
- end
+ ##
+ # Creates an HTML link to +name+ with the given +text+.
- @seen[name] = out
+ def link name, text
+ ref = @cross_reference.resolve name, text
- out
+ case ref
+ when String then
+ ref
+ else
+ "<a href=\"#{ref.as_href @from_path}\">#{text}</a>"
+ end
end
end
+
diff --git a/lib/rdoc/markup/to_latex.rb b/lib/rdoc/markup/to_latex.rb
deleted file mode 100644
index bbf958f2ed..0000000000
--- a/lib/rdoc/markup/to_latex.rb
+++ /dev/null
@@ -1,328 +0,0 @@
-require 'rdoc/markup/formatter'
-require 'rdoc/markup/fragments'
-require 'rdoc/markup/inline'
-
-require 'cgi'
-
-##
-# Convert SimpleMarkup to basic LaTeX report format.
-
-class RDoc::Markup::ToLaTeX < RDoc::Markup::Formatter
-
- BS = "\020" # \
- OB = "\021" # {
- CB = "\022" # }
- DL = "\023" # Dollar
-
- BACKSLASH = "#{BS}symbol#{OB}92#{CB}"
- HAT = "#{BS}symbol#{OB}94#{CB}"
- BACKQUOTE = "#{BS}symbol#{OB}0#{CB}"
- TILDE = "#{DL}#{BS}sim#{DL}"
- LESSTHAN = "#{DL}<#{DL}"
- GREATERTHAN = "#{DL}>#{DL}"
-
- def self.l(str)
- str.tr('\\', BS).tr('{', OB).tr('}', CB).tr('$', DL)
- end
-
- def l(arg)
- RDoc::Markup::ToLaTeX.l(arg)
- end
-
- LIST_TYPE_TO_LATEX = {
- :BULLET => [ l("\\begin{itemize}"), l("\\end{itemize}") ],
- :NUMBER => [ l("\\begin{enumerate}"), l("\\end{enumerate}"), "\\arabic" ],
- :UPPERALPHA => [ l("\\begin{enumerate}"), l("\\end{enumerate}"), "\\Alph" ],
- :LOWERALPHA => [ l("\\begin{enumerate}"), l("\\end{enumerate}"), "\\alph" ],
- :LABELED => [ l("\\begin{description}"), l("\\end{description}") ],
- :NOTE => [
- l("\\begin{tabularx}{\\linewidth}{@{} l X @{}}"),
- l("\\end{tabularx}") ],
- }
-
- InlineTag = Struct.new(:bit, :on, :off)
-
- def initialize
- init_tags
- @list_depth = 0
- @prev_list_types = []
- end
-
- ##
- # Set up the standard mapping of attributes to LaTeX
-
- def init_tags
- @attr_tags = [
- InlineTag.new(RDoc::Markup::Attribute.bitmap_for(:BOLD), l("\\textbf{"), l("}")),
- InlineTag.new(RDoc::Markup::Attribute.bitmap_for(:TT), l("\\texttt{"), l("}")),
- InlineTag.new(RDoc::Markup::Attribute.bitmap_for(:EM), l("\\emph{"), l("}")),
- ]
- end
-
- ##
- # Escape a LaTeX string
-
- def escape(str)
- $stderr.print "FE: ", str if $DEBUG_RDOC
- s = str.
- sub(/\s+$/, '').
- gsub(/([_\${}&%#])/, "#{BS}\\1").
- gsub(/\\/, BACKSLASH).
- gsub(/\^/, HAT).
- gsub(/~/, TILDE).
- gsub(/</, LESSTHAN).
- gsub(/>/, GREATERTHAN).
- gsub(/,,/, ",{},").
- gsub(/\`/, BACKQUOTE)
- $stderr.print "-> ", s, "\n" if $DEBUG_RDOC
- s
- end
-
- ##
- # Add a new set of LaTeX tags for an attribute. We allow
- # separate start and end tags for flexibility
-
- def add_tag(name, start, stop)
- @attr_tags << InlineTag.new(RDoc::Markup::Attribute.bitmap_for(name), start, stop)
- end
-
- ##
- # Here's the client side of the visitor pattern
-
- def start_accepting
- @res = ""
- @in_list_entry = []
- end
-
- def end_accepting
- @res.tr(BS, '\\').tr(OB, '{').tr(CB, '}').tr(DL, '$')
- end
-
- def accept_paragraph(am, fragment)
- @res << wrap(convert_flow(am.flow(fragment.txt)))
- @res << "\n"
- end
-
- def accept_verbatim(am, fragment)
- @res << "\n\\begin{code}\n"
- @res << fragment.txt.sub(/[\n\s]+\Z/, '')
- @res << "\n\\end{code}\n\n"
- end
-
- def accept_rule(am, fragment)
- size = fragment.param
- size = 10 if size > 10
- @res << "\n\n\\rule{\\linewidth}{#{size}pt}\n\n"
- end
-
- def accept_list_start(am, fragment)
- @res << list_name(fragment.type, true) << "\n"
- @in_list_entry.push false
- end
-
- def accept_list_end(am, fragment)
- if tag = @in_list_entry.pop
- @res << tag << "\n"
- end
- @res << list_name(fragment.type, false) << "\n"
- end
-
- def accept_list_item(am, fragment)
- if tag = @in_list_entry.last
- @res << tag << "\n"
- end
- @res << list_item_start(am, fragment)
- @res << wrap(convert_flow(am.flow(fragment.txt))) << "\n"
- @in_list_entry[-1] = list_end_for(fragment.type)
- end
-
- def accept_blank_line(am, fragment)
- # @res << "\n"
- end
-
- def accept_heading(am, fragment)
- @res << convert_heading(fragment.head_level, am.flow(fragment.txt))
- end
-
- ##
- # This is a higher speed (if messier) version of wrap
-
- def wrap(txt, line_len = 76)
- res = ""
- sp = 0
- ep = txt.length
- while sp < ep
- # scan back for a space
- p = sp + line_len - 1
- if p >= ep
- p = ep
- else
- while p > sp and txt[p] != ?\s
- p -= 1
- end
- if p <= sp
- p = sp + line_len
- while p < ep and txt[p] != ?\s
- p += 1
- end
- end
- end
- res << txt[sp...p] << "\n"
- sp = p
- sp += 1 while sp < ep and txt[sp] == ?\s
- end
- res
- end
-
- private
-
- def on_tags(res, item)
- attr_mask = item.turn_on
- return if attr_mask.zero?
-
- @attr_tags.each do |tag|
- if attr_mask & tag.bit != 0
- res << tag.on
- end
- end
- end
-
- def off_tags(res, item)
- attr_mask = item.turn_off
- return if attr_mask.zero?
-
- @attr_tags.reverse_each do |tag|
- if attr_mask & tag.bit != 0
- res << tag.off
- end
- end
- end
-
- def convert_flow(flow)
- res = ""
- flow.each do |item|
- case item
- when String
- $stderr.puts "Converting '#{item}'" if $DEBUG_RDOC
- res << convert_string(item)
- when AttrChanger
- off_tags(res, item)
- on_tags(res, item)
- when Special
- res << convert_special(item)
- else
- raise "Unknown flow element: #{item.inspect}"
- end
- end
- res
- end
-
- ##
- # some of these patterns are taken from SmartyPants...
-
- def convert_string(item)
- escape(item).
-
- # convert ... to elipsis (and make sure .... becomes .<elipsis>)
- gsub(/\.\.\.\./, '.\ldots{}').gsub(/\.\.\./, '\ldots{}').
-
- # convert single closing quote
- gsub(%r{([^ \t\r\n\[\{\(])\'}, '\1\'').
- gsub(%r{\'(?=\W|s\b)}, "'" ).
-
- # convert single opening quote
- gsub(/'/, '`').
-
- # convert double closing quote
- gsub(%r{([^ \t\r\n\[\{\(])\"(?=\W)}, "\\1''").
-
- # convert double opening quote
- gsub(/"/, "``").
-
- # convert copyright
- gsub(/\(c\)/, '\copyright{}')
-
- end
-
- def convert_special(special)
- handled = false
- Attribute.each_name_of(special.type) do |name|
- method_name = "handle_special_#{name}"
- if self.respond_to? method_name
- special.text = send(method_name, special)
- handled = true
- end
- end
- raise "Unhandled special: #{special}" unless handled
- special.text
- end
-
- def convert_heading(level, flow)
- res =
- case level
- when 1 then "\\chapter{"
- when 2 then "\\section{"
- when 3 then "\\subsection{"
- when 4 then "\\subsubsection{"
- else "\\paragraph{"
- end +
- convert_flow(flow) +
- "}\n"
- end
-
- def list_name(list_type, is_open_tag)
- tags = LIST_TYPE_TO_LATEX[list_type] || raise("Invalid list type: #{list_type.inspect}")
- if tags[2] # enumerate
- if is_open_tag
- @list_depth += 1
- if @prev_list_types[@list_depth] != tags[2]
- case @list_depth
- when 1
- roman = "i"
- when 2
- roman = "ii"
- when 3
- roman = "iii"
- when 4
- roman = "iv"
- else
- raise("Too deep list: level #{@list_depth}")
- end
- @prev_list_types[@list_depth] = tags[2]
- return l("\\renewcommand{\\labelenum#{roman}}{#{tags[2]}{enum#{roman}}}") + "\n" + tags[0]
- end
- else
- @list_depth -= 1
- end
- end
- tags[ is_open_tag ? 0 : 1]
- end
-
- def list_item_start(am, fragment)
- case fragment.type
- when :BULLET, :NUMBER, :UPPERALPHA, :LOWERALPHA then
- "\\item "
-
- when :LABELED then
- "\\item[" + convert_flow(am.flow(fragment.param)) + "] "
-
- when :NOTE then
- convert_flow(am.flow(fragment.param)) + " & "
- else
- raise "Invalid list type"
- end
- end
-
- def list_end_for(fragment_type)
- case fragment_type
- when :BULLET, :NUMBER, :UPPERALPHA, :LOWERALPHA, :LABELED then
- ""
- when :NOTE
- "\\\\\n"
- else
- raise "Invalid list type"
- end
- end
-
-end
-
diff --git a/lib/rdoc/markup/to_rdoc.rb b/lib/rdoc/markup/to_rdoc.rb
new file mode 100644
index 0000000000..6f2faac2f6
--- /dev/null
+++ b/lib/rdoc/markup/to_rdoc.rb
@@ -0,0 +1,301 @@
+require 'rdoc/markup/formatter'
+require 'rdoc/markup/inline'
+
+##
+# Outputs RDoc markup as RDoc markup! (mostly)
+
+class RDoc::Markup::ToRdoc < RDoc::Markup::Formatter
+
+ ##
+ # Current indent amount for output in characters
+
+ attr_accessor :indent
+
+ ##
+ # Output width in characters
+
+ attr_accessor :width
+
+ ##
+ # Stack of current list indexes for alphabetic and numeric lists
+
+ attr_reader :list_index
+
+ ##
+ # Stack of list types
+
+ attr_reader :list_type
+
+ ##
+ # Stack of list widths for indentation
+
+ attr_reader :list_width
+
+ ##
+ # Prefix for the next list item. See #use_prefix
+
+ attr_reader :prefix
+
+ ##
+ # Output accumulator
+
+ attr_reader :res
+
+ ##
+ # Creates a new formatter that will output (mostly) \RDoc markup
+
+ def initialize markup = nil
+ super
+
+ @markup.add_special(/\\\S/, :SUPPRESSED_CROSSREF)
+ @width = 78
+ init_tags
+
+ @headings = {}
+ @headings.default = []
+
+ @headings[1] = ['= ', '']
+ @headings[2] = ['== ', '']
+ @headings[3] = ['=== ', '']
+ @headings[4] = ['==== ', '']
+ @headings[5] = ['===== ', '']
+ @headings[6] = ['====== ', '']
+ end
+
+ ##
+ # Maps attributes to HTML sequences
+
+ def init_tags
+ add_tag :BOLD, "<b>", "</b>"
+ add_tag :TT, "<tt>", "</tt>"
+ add_tag :EM, "<em>", "</em>"
+ end
+
+ ##
+ # Adds +blank_line+ to the output
+
+ def accept_blank_line blank_line
+ @res << "\n"
+ end
+
+ ##
+ # Adds +heading+ to the output
+
+ def accept_heading heading
+ use_prefix or @res << ' ' * @indent
+ @res << @headings[heading.level][0]
+ @res << attributes(heading.text)
+ @res << @headings[heading.level][1]
+ @res << "\n"
+ end
+
+ ##
+ # Finishes consumption of +list+
+
+ def accept_list_end list
+ @list_index.pop
+ @list_type.pop
+ @list_width.pop
+ end
+
+ ##
+ # Finishes consumption of +list_item+
+
+ def accept_list_item_end list_item
+ width = case @list_type.last
+ when :BULLET then
+ 2
+ when :NOTE, :LABEL then
+ @res << "\n"
+ 2
+ else
+ bullet = @list_index.last.to_s
+ @list_index[-1] = @list_index.last.succ
+ bullet.length + 2
+ end
+
+ @indent -= width
+ end
+
+ ##
+ # Prepares the visitor for consuming +list_item+
+
+ def accept_list_item_start list_item
+ type = @list_type.last
+
+ case type
+ when :NOTE, :LABEL then
+ bullet = attributes(list_item.label) + ":\n"
+ @prefix = ' ' * @indent
+ @indent += 2
+ @prefix << bullet + (' ' * @indent)
+ else
+ bullet = type == :BULLET ? '*' : @list_index.last.to_s + '.'
+ @prefix = (' ' * @indent) + bullet.ljust(bullet.length + 1)
+ width = bullet.length + 1
+ @indent += width
+ end
+ end
+
+ ##
+ # Prepares the visitor for consuming +list+
+
+ def accept_list_start list
+ case list.type
+ when :BULLET then
+ @list_index << nil
+ @list_width << 1
+ when :LABEL, :NOTE then
+ @list_index << nil
+ @list_width << 2
+ when :LALPHA then
+ @list_index << 'a'
+ @list_width << list.items.length.to_s.length
+ when :NUMBER then
+ @list_index << 1
+ @list_width << list.items.length.to_s.length
+ when :UALPHA then
+ @list_index << 'A'
+ @list_width << list.items.length.to_s.length
+ else
+ raise RDoc::Error, "invalid list type #{list.type}"
+ end
+
+ @list_type << list.type
+ end
+
+ ##
+ # Adds +paragraph+ to the output
+
+ def accept_paragraph paragraph
+ wrap attributes(paragraph.text)
+ end
+
+ ##
+ # Adds +paragraph+ to the output
+
+ def accept_indented_paragraph paragraph
+ @indent += paragraph.indent
+ wrap attributes(paragraph.text)
+ @indent -= paragraph.indent
+ end
+
+ ##
+ # Adds +raw+ to the output
+
+ def accept_raw raw
+ @res << raw.parts.join("\n")
+ end
+
+ ##
+ # Adds +rule+ to the output
+
+ def accept_rule rule
+ use_prefix or @res << ' ' * @indent
+ @res << '-' * (@width - @indent)
+ @res << "\n"
+ end
+
+ ##
+ # Outputs +verbatim+ indented 2 columns
+
+ def accept_verbatim verbatim
+ indent = ' ' * (@indent + 2)
+
+ verbatim.parts.each do |part|
+ @res << indent unless part == "\n"
+ @res << part
+ end
+
+ @res << "\n" unless @res =~ /\n\z/
+ end
+
+ ##
+ # Applies attribute-specific markup to +text+ using RDoc::AttributeManager
+
+ def attributes text
+ flow = @am.flow text.dup
+ convert_flow flow
+ end
+
+ ##
+ # Returns the generated output
+
+ def end_accepting
+ @res.join
+ end
+
+ ##
+ # Removes preceding \\ from the suppressed crossref +special+
+
+ def handle_special_SUPPRESSED_CROSSREF special
+ text = special.text
+ text = text.sub('\\', '') unless in_tt?
+ text
+ end
+
+ ##
+ # Prepares the visitor for text generation
+
+ def start_accepting
+ @res = [""]
+ @indent = 0
+ @prefix = nil
+
+ @list_index = []
+ @list_type = []
+ @list_width = []
+ end
+
+ ##
+ # Adds the stored #prefix to the output and clears it. Lists generate a
+ # prefix for later consumption.
+
+ def use_prefix
+ prefix = @prefix
+ @prefix = nil
+ @res << prefix if prefix
+
+ prefix
+ end
+
+ ##
+ # Wraps +text+ to #width
+
+ def wrap text
+ return unless text && !text.empty?
+
+ text_len = @width - @indent
+
+ text_len = 20 if text_len < 20
+
+ re = /^(.{0,#{text_len}})[ \n]/
+ next_prefix = ' ' * @indent
+
+ prefix = @prefix || next_prefix
+ @prefix = nil
+
+ @res << prefix
+
+ while text.length > text_len
+ if text =~ re then
+ @res << $1
+ text.slice!(0, $&.length)
+ else
+ @res << text.slice!(0, text_len)
+ end
+
+ @res << "\n" << next_prefix
+ end
+
+ if text.empty? then
+ @res.pop
+ @res.pop
+ else
+ @res << text
+ @res << "\n"
+ end
+ end
+
+end
+
diff --git a/lib/rdoc/markup/to_test.rb b/lib/rdoc/markup/to_test.rb
index ce6aff6e9a..4847fd29f7 100644
--- a/lib/rdoc/markup/to_test.rb
+++ b/lib/rdoc/markup/to_test.rb
@@ -6,45 +6,67 @@ require 'rdoc/markup/formatter'
class RDoc::Markup::ToTest < RDoc::Markup::Formatter
+ # :stopdoc:
+
+ ##
+ # :section: Visitor
+
def start_accepting
@res = []
+ @list = []
end
def end_accepting
@res
end
- def accept_paragraph(am, fragment)
- @res << fragment.to_s
+ def accept_paragraph(paragraph)
+ @res << convert_flow(@am.flow(paragraph.text))
+ end
+
+ def accept_raw raw
+ @res << raw.parts.join
end
- def accept_verbatim(am, fragment)
- @res << fragment.to_s
+ def accept_verbatim(verbatim)
+ @res << verbatim.text.gsub(/^(\S)/, ' \1')
end
- def accept_list_start(am, fragment)
- @res << fragment.to_s
+ def accept_list_start(list)
+ @list << case list.type
+ when :BULLET then
+ '*'
+ when :NUMBER then
+ '1'
+ else
+ list.type
+ end
end
- def accept_list_end(am, fragment)
- @res << fragment.to_s
+ def accept_list_end(list)
+ @list.pop
end
- def accept_list_item(am, fragment)
- @res << fragment.to_s
+ def accept_list_item_start(list_item)
+ @res << "#{' ' * (@list.size - 1)}#{@list.last}: "
end
- def accept_blank_line(am, fragment)
- @res << fragment.to_s
+ def accept_list_item_end(list_item)
end
- def accept_heading(am, fragment)
- @res << fragment.to_s
+ def accept_blank_line(blank_line)
+ @res << "\n"
end
- def accept_rule(am, fragment)
- @res << fragment.to_s
+ def accept_heading(heading)
+ @res << "#{'=' * heading.level} #{heading.text}"
end
+ def accept_rule(rule)
+ @res << '-' * rule.weight
+ end
+
+ # :startdoc:
+
end
diff --git a/lib/rdoc/markup/to_texinfo.rb b/lib/rdoc/markup/to_texinfo.rb
deleted file mode 100644
index 65a1608c4d..0000000000
--- a/lib/rdoc/markup/to_texinfo.rb
+++ /dev/null
@@ -1,69 +0,0 @@
-require 'rdoc/markup/formatter'
-require 'rdoc/markup/fragments'
-require 'rdoc/markup/inline'
-
-require 'rdoc/markup'
-require 'rdoc/markup/formatter'
-
-##
-# Convert SimpleMarkup to basic TexInfo format
-#
-# TODO: WTF is AttributeManager for?
-#
-class RDoc::Markup::ToTexInfo < RDoc::Markup::Formatter
-
- def start_accepting
- @text = []
- end
-
- def end_accepting
- @text.join("\n")
- end
-
- def accept_paragraph(attributes, text)
- @text << format(text)
- end
-
- def accept_verbatim(attributes, text)
- @text << "@verb{|#{format(text)}|}"
- end
-
- def accept_heading(attributes, text)
- heading = ['@majorheading', '@chapheading'][text.head_level - 1] || '@heading'
- @text << "#{heading} #{format(text)}"
- end
-
- def accept_list_start(attributes, text)
- @text << '@itemize @bullet'
- end
-
- def accept_list_end(attributes, text)
- @text << '@end itemize'
- end
-
- def accept_list_item(attributes, text)
- @text << "@item\n#{format(text)}"
- end
-
- def accept_blank_line(attributes, text)
- @text << "\n"
- end
-
- def accept_rule(attributes, text)
- @text << '-----'
- end
-
- def format(text)
- text.txt.
- gsub(/@/, "@@").
- gsub(/\{/, "@{").
- gsub(/\}/, "@}").
- # gsub(/,/, "@,"). # technically only required in cross-refs
- gsub(/\+([\w]+)\+/, "@code{\\1}").
- gsub(/\<tt\>([^<]+)\<\/tt\>/, "@code{\\1}").
- gsub(/\*([\w]+)\*/, "@strong{\\1}").
- gsub(/\<b\>([^<]+)\<\/b\>/, "@strong{\\1}").
- gsub(/_([\w]+)_/, "@emph{\\1}").
- gsub(/\<em\>([^<]+)\<\/em\>/, "@emph{\\1}")
- end
-end
diff --git a/lib/rdoc/markup/to_tt_only.rb b/lib/rdoc/markup/to_tt_only.rb
new file mode 100644
index 0000000000..078e87db98
--- /dev/null
+++ b/lib/rdoc/markup/to_tt_only.rb
@@ -0,0 +1,114 @@
+require 'rdoc/markup/formatter'
+require 'rdoc/markup/inline'
+
+##
+# Extracts sections of text enclosed in plus, tt or code. Used to discover
+# undocumented parameters.
+
+class RDoc::Markup::ToTtOnly < RDoc::Markup::Formatter
+
+ ##
+ # Stack of list types
+
+ attr_reader :list_type
+
+ ##
+ # Output accumulator
+
+ attr_reader :res
+
+ ##
+ # Creates a new tt-only formatter.
+
+ def initialize markup = nil
+ super
+
+ add_tag :TT, nil, nil
+ end
+
+ ##
+ # Pops the list type for +list+ from #list_type
+
+ def accept_list_end list
+ @list_type.pop
+ end
+
+ ##
+ # Pushes the list type for +list+ onto #list_type
+
+ def accept_list_start list
+ @list_type << list.type
+ end
+
+ ##
+ # Prepares the visitor for consuming +list_item+
+
+ def accept_list_item_start list_item
+ case @list_type.last
+ when :NOTE, :LABEL then
+ tt_sections(list_item.label)
+ end
+ end
+
+ ##
+ # Adds +paragraph+ to the output
+
+ def accept_paragraph paragraph
+ tt_sections(paragraph.text)
+ end
+
+ ##
+ # Does nothing to +markup_item+ because it doesn't have any user-built
+ # content
+
+ def do_nothing markup_item
+ end
+
+ alias accept_blank_line do_nothing # :nodoc:
+ alias accept_heading do_nothing # :nodoc:
+ alias accept_list_item_end do_nothing # :nodoc:
+ alias accept_raw do_nothing # :nodoc:
+ alias accept_rule do_nothing # :nodoc:
+ alias accept_verbatim do_nothing # :nodoc:
+
+ ##
+ # Extracts tt sections from +text+
+
+ def tt_sections text
+ flow = @am.flow text.dup
+
+ flow.each do |item|
+ case item
+ when String then
+ @res << item if in_tt?
+ when RDoc::Markup::AttrChanger then
+ off_tags res, item
+ on_tags res, item
+ when RDoc::Markup::Special then
+ @res << convert_special(item) if in_tt? # TODO can this happen?
+ else
+ raise "Unknown flow element: #{item.inspect}"
+ end
+ end
+
+ res
+ end
+
+ ##
+ # Returns an Array of items that were wrapped in plus, tt or code.
+
+ def end_accepting
+ @res.compact
+ end
+
+ ##
+ # Prepares the visitor for gathering tt sections
+
+ def start_accepting
+ @res = []
+
+ @list_type = []
+ end
+
+end
+
diff --git a/lib/rdoc/markup/verbatim.rb b/lib/rdoc/markup/verbatim.rb
new file mode 100644
index 0000000000..8fe2184699
--- /dev/null
+++ b/lib/rdoc/markup/verbatim.rb
@@ -0,0 +1,45 @@
+##
+# A section of verbatim text
+
+class RDoc::Markup::Verbatim < RDoc::Markup::Raw
+
+ ##
+ # Calls #accept_verbatim on +visitor+
+
+ def accept visitor
+ visitor.accept_verbatim self
+ end
+
+ ##
+ # Collapses 3+ newlines into two newlines
+
+ def normalize
+ parts = []
+
+ newlines = 0
+
+ @parts.each do |part|
+ case part
+ when /^\s*\n/ then
+ newlines += 1
+ parts << part if newlines == 1
+ else
+ newlines = 0
+ parts << part
+ end
+ end
+
+ parts.pop if parts.last =~ /\A\r?\n\z/
+
+ @parts = parts
+ end
+
+ ##
+ # The text of the section
+
+ def text
+ @parts.join
+ end
+
+end
+
diff --git a/lib/rdoc/meta_method.rb b/lib/rdoc/meta_method.rb
new file mode 100644
index 0000000000..e0c065c2ba
--- /dev/null
+++ b/lib/rdoc/meta_method.rb
@@ -0,0 +1,8 @@
+require 'rdoc/any_method'
+
+##
+# MetaMethod represents a meta-programmed method
+
+class RDoc::MetaMethod < RDoc::AnyMethod
+end
+
diff --git a/lib/rdoc/method_attr.rb b/lib/rdoc/method_attr.rb
new file mode 100644
index 0000000000..a4cd3c5fff
--- /dev/null
+++ b/lib/rdoc/method_attr.rb
@@ -0,0 +1,355 @@
+require 'rdoc/code_object'
+
+##
+# Abstract class representing either a method or an attribute.
+
+class RDoc::MethodAttr < RDoc::CodeObject
+
+ include Comparable
+
+ ##
+ # Name of this method/attribute.
+
+ attr_accessor :name
+
+ ##
+ # public, protected, private
+
+ attr_accessor :visibility
+
+ ##
+ # Is this a singleton method/attribute?
+
+ attr_accessor :singleton
+
+ ##
+ # Source file token stream
+
+ attr_reader :text
+
+ ##
+ # Array of other names for this method/attribute
+
+ attr_reader :aliases
+
+ ##
+ # The method/attribute we're aliasing
+
+ attr_accessor :is_alias_for
+
+ #--
+ # The attributes below are for AnyMethod only.
+ # They are left here for the time being to
+ # allow ri to operate.
+ # TODO modify ri to avoid calling these on attributes.
+ #++
+
+ ##
+ # Parameters yielded by the called block
+
+ attr_reader :block_params
+
+ ##
+ # Parameters for this method
+
+ attr_accessor :params
+
+ ##
+ # Different ways to call this method
+
+ attr_accessor :call_seq
+
+ ##
+ # The call_seq or the param_seq with method name, if there is no call_seq.
+
+ attr_reader :arglists
+
+ ##
+ # Pretty parameter list for this method
+
+ attr_reader :param_seq
+
+
+ ##
+ # Creates a new MethodAttr from token stream +text+ and method or attribute
+ # name +name+.
+ #
+ # Usually this is called by super from a subclass.
+
+ def initialize text, name
+ super()
+
+ @text = text
+ @name = name
+
+ @aliases = []
+ @is_alias_for = nil
+ @parent_name = nil
+ @singleton = nil
+ @visibility = :public
+ @see = false
+
+ @arglists = nil
+ @block_params = nil
+ @call_seq = nil
+ @param_seq = nil
+ @params = nil
+ end
+
+ ##
+ # Order by #singleton then #name
+
+ def <=>(other)
+ [@singleton ? 0 : 1, name] <=> [other.singleton ? 0 : 1, other.name]
+ end
+
+ ##
+ # A method/attribute is documented if any of the following is true:
+ # - it was marked with :nodoc:;
+ # - it has a comment;
+ # - it is an alias for a documented method;
+ # - it has a +#see+ method that is documented.
+
+ def documented?
+ super or
+ (is_alias_for and is_alias_for.documented?) or
+ (see and see.documented?)
+ end
+
+ ##
+ # A method/attribute to look at,
+ # in particular if this method/attribute has no documentation.
+ #
+ # It can be a method/attribute of the superclass or of an included module,
+ # including the Kernel module, which is always appended to the included
+ # modules.
+ #
+ # Returns +nil+ if there is no such method/attribute.
+ # The +#is_alias_for+ method/attribute, if any, is not included.
+ #
+ # Templates may generate a "see also ..." if this method/attribute
+ # has documentation, and "see ..." if it does not.
+
+ def see
+ @see = find_see if @see == false
+ @see
+ end
+
+ def find_see # :nodoc:
+ return nil if singleton || is_alias_for
+
+ # look for the method
+ other = find_method_or_attribute name
+ return other if other
+
+ # if it is a setter, look for a getter
+ return nil unless name =~ /[a-z_]=$/i # avoid == or ===
+ return find_method_or_attribute name[0..-2]
+ end
+
+ def find_method_or_attribute name # :nodoc:
+ return nil unless parent.respond_to? :ancestors
+
+ searched = parent.ancestors
+ kernel = RDoc::TopLevel.all_modules_hash['Kernel']
+
+ searched << kernel if kernel &&
+ parent != kernel && !searched.include?(kernel)
+
+ searched.each do |ancestor|
+ next if parent == ancestor
+ next if String === ancestor
+
+ other = ancestor.find_method_named('#' << name) ||
+ ancestor.find_attribute_named(name)
+
+ return other if other
+ end
+
+ nil
+ end
+
+ ##
+ # Abstract method. Contexts in their building phase call this
+ # to register a new alias for this known method/attribute.
+ #
+ # - creates a new AnyMethod/Attribute +newa+ named an_alias.new_name;
+ # - adds +self+ as +newa.is_alias_for+;
+ # - adds +newa+ to #aliases
+ # - adds +newa+ to the methods/attributes of +context+.
+
+ def add_alias(an_alias, context)
+ raise NotImplementedError
+ end
+
+ ##
+ # HTML fragment reference for this method
+
+ def aref
+ type = singleton ? 'c' : 'i'
+ # % characters are not allowed in html names => dash instead
+ "#{aref_prefix}-#{type}-#{html_name}"
+ end
+
+ ##
+ # Prefix for +aref+, defined by subclasses.
+
+ def aref_prefix
+ raise NotImplementedError
+ end
+
+ ##
+ # Attempts to sanitize the content passed by the ruby parser:
+ # remove outer parentheses, etc.
+
+ def block_params=(value)
+ # 'yield.to_s' or 'assert yield, msg'
+ return @block_params = '' if value =~ /^[\.,]/
+
+ # remove trailing 'if/unless ...'
+ return @block_params = '' if value =~ /^(if|unless)\s/
+
+ value = $1.strip if value =~ /^(.+)\s(if|unless)\s/
+
+ # outer parentheses
+ value = $1 if value =~ /^\s*\((.*)\)\s*$/
+ value = value.strip
+
+ # proc/lambda
+ return @block_params = $1 if value =~ /^(proc|lambda)(\s*\{|\sdo)/
+
+ # surrounding +...+ or [...]
+ value = $1.strip if value =~ /^\+(.*)\+$/
+ value = $1.strip if value =~ /^\[(.*)\]$/
+
+ return @block_params = '' if value.empty?
+
+ # global variable
+ return @block_params = 'str' if value =~ /^\$[&0-9]$/
+
+ # wipe out array/hash indices
+ value.gsub!(/(\w)\[[^\[]+\]/, '\1')
+
+ # remove @ from class/instance variables
+ value.gsub!(/@@?([a-z0-9_]+)/, '\1')
+
+ # method calls => method name
+ value.gsub!(/([A-Z:a-z0-9_]+)\.([a-z0-9_]+)(\s*\(\s*[a-z0-9_.,\s]*\s*\)\s*)?/) do
+ case $2
+ when 'to_s' then $1
+ when 'const_get' then 'const'
+ when 'new' then
+ $1.split('::').last. # ClassName => class_name
+ gsub(/([A-Z]+)([A-Z][a-z])/,'\1_\2').
+ gsub(/([a-z\d])([A-Z])/,'\1_\2').
+ downcase
+ else
+ $2
+ end
+ end
+
+ # class prefixes
+ value.gsub!(/[A-Za-z0-9_:]+::/, '')
+
+ # simple expressions
+ value = $1 if value =~ /^([a-z0-9_]+)\s*[-*+\/]/
+
+ @block_params = value.strip
+ end
+
+ ##
+ # HTML id-friendly method/attribute name
+
+ def html_name
+ CGI.escape(@name.gsub('-', '-2D')).gsub('%','-').sub(/^-/, '')
+ end
+
+ ##
+ # Full method/attribute name including namespace
+
+ def full_name
+ @full_name || "#{parent_name}#{pretty_name}"
+ end
+
+ ##
+ # '::' for a class method/attribute, '#' for an instance method.
+
+ def name_prefix
+ singleton ? '::' : '#'
+ end
+
+ ##
+ # Method/attribute name with class/instance indicator
+
+ def pretty_name
+ "#{name_prefix}#{@name}"
+ end
+
+ ##
+ # Type of method/attribute (class or instance)
+
+ def type
+ singleton ? 'class' : 'instance'
+ end
+
+ ##
+ # Path to this method
+
+ def path
+ "#{@parent.path}##{aref}"
+ end
+
+ ##
+ # Name of our parent with special handling for un-marshaled methods
+
+ def parent_name
+ @parent_name || super
+ end
+
+ def pretty_print q # :nodoc:
+ alias_for = @is_alias_for ? "alias for #{@is_alias_for.name}" : nil
+
+ q.group 2, "[#{self.class.name} #{full_name} #{visibility}", "]" do
+ if alias_for then
+ q.breakable
+ q.text alias_for
+ end
+
+ if text then
+ q.breakable
+ q.text "text:"
+ q.breakable
+ q.pp @text
+ end
+
+ unless comment.empty? then
+ q.breakable
+ q.text "comment:"
+ q.breakable
+ q.pp @comment
+ end
+ end
+ end
+
+ def inspect # :nodoc:
+ alias_for = @is_alias_for ? " (alias for #{@is_alias_for.name})" : nil
+ visibility = self.visibility
+ visibility = "forced #{visibility}" if force_documentation
+ "#<%s:0x%x %s (%s)%s>" % [
+ self.class, object_id,
+ full_name,
+ visibility,
+ alias_for,
+ ]
+ end
+
+ def to_s # :nodoc:
+ if @is_alias_for
+ "#{self.class.name}: #{full_name} -> #{is_alias_for}"
+ else
+ "#{self.class.name}: #{full_name}"
+ end
+ end
+
+end
+
diff --git a/lib/rdoc/normal_class.rb b/lib/rdoc/normal_class.rb
new file mode 100644
index 0000000000..f67380e783
--- /dev/null
+++ b/lib/rdoc/normal_class.rb
@@ -0,0 +1,71 @@
+require 'rdoc/class_module'
+
+##
+# A normal class, neither singleton nor anonymous
+
+class RDoc::NormalClass < RDoc::ClassModule
+
+ ##
+ # Appends the superclass, if any, to the included modules.
+
+ def ancestors
+ superclass ? super + [superclass] : super
+ end
+
+ ##
+ # The definition of this class, <tt>class MyClassName</tt>
+
+ def definition
+ "class #{full_name}"
+ end
+
+ def inspect # :nodoc:
+ superclass = @superclass ? " < #{@superclass}" : nil
+ "<%s:0x%x class %s%s includes: %p attributes: %p methods: %p aliases: %p>" % [
+ self.class, object_id,
+ full_name, superclass, @includes, @attributes, @method_list, @aliases
+ ]
+ end
+
+ def to_s # :nodoc:
+ display = "#{self.class.name} #{self.full_name}"
+ if superclass
+ display << ' < ' << (superclass.is_a?(String) ? superclass : superclass.full_name)
+ end
+ display << ' -> ' << is_alias_for.to_s if is_alias_for
+ display
+ end
+
+ def pretty_print q # :nodoc:
+ superclass = @superclass ? " < #{@superclass}" : nil
+
+ q.group 2, "[class #{full_name}#{superclass} ", "]" do
+ q.breakable
+ q.text "includes:"
+ q.breakable
+ q.seplist @includes do |inc| q.pp inc end
+
+ q.breakable
+ q.text "attributes:"
+ q.breakable
+ q.seplist @attributes do |inc| q.pp inc end
+
+ q.breakable
+ q.text "methods:"
+ q.breakable
+ q.seplist @method_list do |inc| q.pp inc end
+
+ q.breakable
+ q.text "aliases:"
+ q.breakable
+ q.seplist @aliases do |inc| q.pp inc end
+
+ q.breakable
+ q.text "comment:"
+ q.breakable
+ q.pp comment
+ end
+ end
+
+end
+
diff --git a/lib/rdoc/normal_module.rb b/lib/rdoc/normal_module.rb
new file mode 100644
index 0000000000..0fa7223547
--- /dev/null
+++ b/lib/rdoc/normal_module.rb
@@ -0,0 +1,66 @@
+require 'rdoc/class_module'
+
+##
+# A normal module, like NormalClass
+
+class RDoc::NormalModule < RDoc::ClassModule
+
+ def inspect # :nodoc:
+ "#<%s:0x%x module %s includes: %p attributes: %p methods: %p aliases: %p>" % [
+ self.class, object_id,
+ full_name, @includes, @attributes, @method_list, @aliases
+ ]
+ end
+
+ ##
+ # The definition of this module, <tt>module MyModuleName</tt>
+
+ def definition
+ "module #{full_name}"
+ end
+
+ ##
+ # This is a module, returns true
+
+ def module?
+ true
+ end
+
+ def pretty_print q # :nodoc:
+ q.group 2, "[module #{full_name}: ", "]" do
+ q.breakable
+ q.text "includes:"
+ q.breakable
+ q.seplist @includes do |inc| q.pp inc end
+ q.breakable
+
+ q.text "attributes:"
+ q.breakable
+ q.seplist @attributes do |inc| q.pp inc end
+ q.breakable
+
+ q.text "methods:"
+ q.breakable
+ q.seplist @method_list do |inc| q.pp inc end
+ q.breakable
+
+ q.text "aliases:"
+ q.breakable
+ q.seplist @aliases do |inc| q.pp inc end
+ q.breakable
+
+ q.text "comment:"
+ q.breakable
+ q.pp comment
+ end
+ end
+
+ ##
+ # Modules don't have one, raises NoMethodError
+
+ def superclass
+ raise NoMethodError, "#{full_name} is a module"
+ end
+
+end
+
diff --git a/lib/rdoc/options.rb b/lib/rdoc/options.rb
index 2b069f4265..bab5463897 100644
--- a/lib/rdoc/options.rb
+++ b/lib/rdoc/options.rb
@@ -1,50 +1,53 @@
-# We handle the parsing of options, and subsequently as a singleton
-# object to be queried for option values
-
-require "rdoc/ri/paths"
require 'optparse'
-class RDoc::Options
+require 'rdoc/ri/paths'
- ##
- # Should the output be placed into a single file
+##
+# RDoc::Options handles the parsing and storage of options
- attr_reader :all_one_file
-
- ##
- # Character-set
-
- attr_reader :charset
+class RDoc::Options
##
- # URL of stylesheet
+ # The deprecated options.
- attr_reader :css
+ DEPRECATED = {
+ '--accessor' => 'support discontinued',
+ '--diagram' => 'support discontinued',
+ '--help-output' => 'support discontinued',
+ '--image-format' => 'was an option for --diagram',
+ '--inline-source' => 'source code is now always inlined',
+ '--merge' => 'ri now always merges class information',
+ '--one-file' => 'support discontinued',
+ '--op-name' => 'support discontinued',
+ '--opname' => 'support discontinued',
+ '--promiscuous' => 'files always only document their content',
+ '--ri-system' => 'Ruby installers use other techniques',
+ }
##
- # Should diagrams be drawn
+ # Template option validator for OptionParser
- attr_reader :diagram
+ Template = nil
##
- # Files matching this pattern will be excluded
+ # Character-set for HTML output. #encoding is preferred over #charset
- attr_accessor :exclude
+ attr_accessor :charset
##
- # Additional attr_... style method flags
+ # If true, RDoc will not write any files.
- attr_reader :extra_accessor_flags
+ attr_accessor :dry_run
##
- # Pattern for additional attr_... style methods
+ # Encoding of output where. This is set via --encoding.
- attr_accessor :extra_accessors
+ attr_accessor :encoding if Object.const_defined? :Encoding
##
- # Should we draw fileboxes in diagrams
+ # Files matching this pattern will be excluded
- attr_reader :fileboxes
+ attr_accessor :exclude
##
# The list of files to be processed
@@ -52,14 +55,15 @@ class RDoc::Options
attr_accessor :files
##
- # Scan newer sources than the flag file if true.
+ # Create the output even if the output directory does not look
+ # like an rdoc output directory
- attr_reader :force_update
+ attr_accessor :force_output
##
- # Description of the output generator (set with the <tt>-fmt</tt> option)
+ # Scan newer sources than the flag file if true.
- attr_accessor :generator
+ attr_accessor :force_update
##
# Formatter to mark up text with
@@ -67,19 +71,26 @@ class RDoc::Options
attr_accessor :formatter
##
- # image format for diagrams
+ # Description of the output generator (set with the <tt>--fmt</tt> option)
+
+ attr_accessor :generator
+
+ ##
+ # Loaded generator options. Used to prevent --help from loading the same
+ # options multiple times.
- attr_reader :image_format
+ attr_accessor :generator_options
##
- # Include line numbers in the source listings
+ # Old rdoc behavior: hyperlink all words that match a method name,
+ # even if not preceded by '#' or '::'
- attr_reader :include_line_numbers
+ attr_accessor :hyperlink_all
##
- # Should source code be included inline, or displayed in a popup
+ # Include line numbers in the source code
- attr_accessor :inline_source
+ attr_accessor :line_numbers
##
# Name of the file, class or module to display in the initial index page (if
@@ -88,9 +99,9 @@ class RDoc::Options
attr_accessor :main_page
##
- # Merge into classes of the same name when generating ri
+ # If true, only report on undocumented files
- attr_reader :merge
+ attr_accessor :coverage_report
##
# The name of the output directory
@@ -98,51 +109,49 @@ class RDoc::Options
attr_accessor :op_dir
##
- # The name to use for the output
+ # The OptionParser for this instance
- attr_accessor :op_name
+ attr_accessor :option_parser
##
- # Are we promiscuous about showing module contents across multiple files
+ # Is RDoc in pipe mode?
- attr_reader :promiscuous
+ attr_accessor :pipe
##
# Array of directories to search for files to satisfy an :include:
- attr_reader :rdoc_include
-
- ##
- # Include private and protected methods in the output
-
- attr_accessor :show_all
+ attr_accessor :rdoc_include
##
# Include the '#' at the front of hyperlinked instance method names
- attr_reader :show_hash
+ attr_accessor :show_hash
##
# The number of columns in a tab
- attr_reader :tab_width
+ attr_accessor :tab_width
##
- # template to be used when generating output
+ # Template to be used when generating output
- attr_reader :template
+ attr_accessor :template
##
- # Template class for file generation
- #--
- # HACK around dependencies in lib/rdoc/generator/html.rb
+ # Directory the template lives in
- attr_accessor :template_class # :nodoc:
+ attr_accessor :template_dir
##
# Documentation title
- attr_reader :title
+ attr_accessor :title
+
+ ##
+ # Should RDoc update the timestamps in the output dir?
+
+ attr_accessor :update_output_dir
##
# Verbosity, zero means quiet
@@ -152,48 +161,158 @@ class RDoc::Options
##
# URL of web cvs frontend
- attr_reader :webcvs
+ attr_accessor :webcvs
- def initialize(generators = {}) # :nodoc:
- @op_dir = "doc"
- @op_name = nil
- @show_all = false
- @main_page = nil
- @merge = false
+ ##
+ # Minimum visibility of a documented method. One of +:public+,
+ # +:protected+, +:private+. May be overridden on a per-method
+ # basis with the :doc: directive.
+
+ attr_accessor :visibility
+
+ def initialize # :nodoc:
+ require 'rdoc/rdoc'
+ @dry_run = false
@exclude = []
- @generators = generators
- @generator_name = 'html'
- @generator = @generators[@generator_name]
+ @force_output = false
+ @force_update = true
+ @generator = nil
+ @generator_name = nil
+ @generator_options = []
+ @generators = RDoc::RDoc::GENERATORS
+ @hyperlink_all = false
+ @line_numbers = false
+ @main_page = nil
+ @coverage_report = false
+ @op_dir = nil
+ @pipe = false
@rdoc_include = []
- @title = nil
- @template = nil
- @template_class = nil
- @diagram = false
- @fileboxes = false
@show_hash = false
- @image_format = 'png'
- @inline_source = false
- @all_one_file = false
+ @stylesheet_url = nil
@tab_width = 8
- @include_line_numbers = false
- @extra_accessor_flags = {}
- @promiscuous = false
- @force_update = false
+ @template = nil
+ @template_dir = nil
+ @title = nil
+ @update_output_dir = true
@verbosity = 1
-
- @css = nil
+ @visibility = :protected
@webcvs = nil
- @charset = 'utf-8'
+ if Object.const_defined? :Encoding then
+ @encoding = Encoding.default_external
+ @charset = @encoding.to_s
+ else
+ @charset = 'UTF-8'
+ end
end
##
- # Parse command line options.
+ # Check that the files on the command line exist
+
+ def check_files
+ @files.delete_if do |file|
+ if File.exist? file then
+ if File.readable? file then
+ false
+ else
+ warn "file '#{file}' not readable"
+
+ true
+ end
+ else
+ warn "file '#{file}' not found"
+
+ true
+ end
+ end
+ end
+
+ ##
+ # Ensure only one generator is loaded
+
+ def check_generator
+ if @generator then
+ raise OptionParser::InvalidOption,
+ "generator already set to #{@generator_name}"
+ end
+ end
+
+ ##
+ # Set the title, but only if not already set. Used to set the title
+ # from a source file, so that a title set from the command line
+ # will have the priority.
+
+ def default_title=(string)
+ @title ||= string
+ end
+
+ ##
+ # Completes any unfinished option setup business such as filtering for
+ # existent files, creating a regexp for #exclude and setting a default
+ # #template.
+
+ def finish
+ @op_dir ||= 'doc'
+
+ @rdoc_include << "." if @rdoc_include.empty?
+
+ if @exclude.nil? or Regexp === @exclude then
+ # done, #finish is being re-run
+ elsif @exclude.empty? then
+ @exclude = nil
+ else
+ @exclude = Regexp.new(@exclude.join("|"))
+ end
+
+ check_files
+
+ # If no template was specified, use the default template for the output
+ # formatter
+
+ unless @template then
+ @template = @generator_name
+ @template_dir = template_dir_for @template
+ end
+
+ self
+ end
+
+ ##
+ # Returns a properly-space list of generators and their descriptions.
+
+ def generator_descriptions
+ lengths = []
+
+ generators = RDoc::RDoc::GENERATORS.map do |name, generator|
+ lengths << name.length
+
+ description = generator::DESCRIPTION if
+ generator.const_defined? :DESCRIPTION
+
+ [name, description]
+ end
+
+ longest = lengths.max
+
+ generators.sort.map do |name, description|
+ if description then
+ " %-*s - %s" % [longest, name, description]
+ else
+ " #{name}"
+ end
+ end.join "\n"
+ end
+
+ ##
+ # Parses command line options.
def parse(argv)
- accessors = []
+ ignore_invalid = true
+
+ argv.insert(0, *ENV['RDOCOPT'].split) if ENV['RDOCOPT']
opts = OptionParser.new do |opt|
+ @option_parser = opt
opt.program_name = File.basename $0
opt.version = RDoc::VERSION
opt.release = nil
@@ -210,74 +329,70 @@ Usage: #{opt.program_name} [options] [names...]
How RDoc generates output depends on the output formatter being used, and on
the options you give.
- - HTML output is normally produced into a number of separate files
- (one per class, module, and file, along with various indices).
- These files will appear in the directory given by the --op
- option (doc/ by default).
+ Options can be specified via the RDOCOPT environment variable, which
+ functions similar to the RUBYOPT environment variable for ruby.
+
+ $ export RDOCOPT="--show-hash"
+
+ will make rdoc show hashes in method links by default. Command-line options
+ always will override those in RDOCOPT.
- - XML output by default is written to standard output. If a
- --opname option is given, the output will instead be written
- to a file with that name in the output directory.
+ Available formatters:
+
+#{generator_descriptions}
+
+ RDoc understands the following file formats:
- - .chm files (Windows help files) are written in the --op directory.
- If an --opname parameter is present, that name is used, otherwise
- the file will be called rdoc.chm.
EOF
- opt.separator nil
- opt.separator "Options:"
- opt.separator nil
+ parsers = Hash.new { |h,parser| h[parser] = [] }
- opt.on("--accessor=ACCESSORS", "-A", Array,
- "A comma separated list of additional class",
- "methods that should be treated like",
- "'attr_reader' and friends.",
- " ",
- "Option may be repeated.",
- " ",
- "Each accessorname may have '=text'",
- "appended, in which case that text appears",
- "where the r/w/rw appears for normal.",
- "accessors") do |value|
- value.each do |accessor|
- if accessor =~ /^(\w+)(=(.*))?$/
- accessors << $1
- @extra_accessor_flags[$1] = $3
- end
- end
+ RDoc::Parser.parsers.each do |regexp, parser|
+ parsers[parser.name.sub('RDoc::Parser::', '')] << regexp.source
end
- opt.separator nil
-
- opt.on("--all", "-a",
- "Include all methods (not just public) in",
- "the output.") do |value|
- @show_all = value
+ parsers.sort.each do |parser, regexp|
+ opt.banner << " - #{parser}: #{regexp.join ', '}\n"
end
- opt.separator nil
+ opt.banner << "\n The following options are deprecated:\n\n"
- opt.on("--charset=CHARSET", "-c",
- "Specifies the output HTML character-set.") do |value|
- @charset = value
+ name_length = DEPRECATED.keys.sort_by { |k| k.length }.last.length
+
+ DEPRECATED.sort_by { |k,| k }.each do |name, reason|
+ opt.banner << " %*1$2$s %3$s\n" % [-name_length, name, reason]
end
- opt.separator nil
+ opt.accept Template do |template|
+ template_dir = template_dir_for template
- opt.on("--debug", "-D",
- "Displays lots on internal stuff.") do |value|
- $DEBUG_RDOC = value
+ unless template_dir then
+ warn "could not find template #{template}"
+ nil
+ else
+ [template, template_dir]
+ end
end
opt.separator nil
+ opt.separator "Parsing options:"
+ opt.separator nil
- opt.on("--diagram", "-d",
- "Generate diagrams showing modules and",
- "classes. You need dot V1.8.6 or later to",
- "use the --diagram option correctly. Dot is",
- "available from http://graphviz.org") do |value|
- check_diagram
- @diagram = true
+ if Object.const_defined? :Encoding then
+ opt.on("--encoding=ENCODING", "-e", Encoding.list.map { |e| e.name },
+ "Specifies the output encoding. All files",
+ "read will be converted to this encoding.",
+ "Preferred over --charset") do |value|
+ @encoding = Encoding.find value
+ @charset = @encoding.to_s # may not be valid value
+ end
+
+ opt.separator nil
+ end
+
+ opt.on("--all", "-a",
+ "Synonym for --visibility=private.") do |value|
+ @visibility = :private
end
opt.separator nil
@@ -300,54 +415,70 @@ Usage: #{opt.program_name} [options] [names...]
raise OptionParser::InvalidArgument, "Invalid parameter to '-E'"
end
- unless RDoc::ParserFactory.alias_extension old, new then
+ unless RDoc::Parser.alias_extension old, new then
raise OptionParser::InvalidArgument, "Unknown extension .#{old} to -E"
end
end
opt.separator nil
- opt.on("--fileboxes", "-F",
- "Classes are put in boxes which represents",
- "files, where these classes reside. Classes",
- "shared between more than one file are",
- "shown with list of files that are sharing",
- "them. Silently discarded if --diagram is",
- "not given.") do |value|
- @fileboxes = value
+ opt.on("--[no-]force-update", "-U",
+ "Forces rdoc to scan all sources even if",
+ "newer than the flag file.") do |value|
+ @force_update = value
end
opt.separator nil
- opt.on("--force-update", "-U",
- "Forces rdoc to scan all sources even if",
- "newer than the flag file.") do |value|
- @force_update = value
+ opt.on("--pipe",
+ "Convert RDoc on stdin to HTML") do
+ @pipe = true
end
opt.separator nil
- opt.on("--fmt=FORMAT", "--format=FORMAT", "-f", @generators.keys,
- "Set the output formatter.") do |value|
- @generator_name = value.downcase
- setup_generator
+ opt.on("--tab-width=WIDTH", "-w", OptionParser::DecimalInteger,
+ "Set the width of tab characters.") do |value|
+ @tab_width = value
+ end
+
+ opt.separator nil
+
+ opt.on("--visibility=VISIBILITY", "-V", RDoc::VISIBILITIES,
+ "Minimum visibility to document a method.",
+ "One of 'public', 'protected' (the default)",
+ "or 'private'. Can be abbreviated.") do |value|
+ @visibility = value
end
opt.separator nil
+ opt.separator "Common generator options:"
+ opt.separator nil
- image_formats = %w[gif png jpg jpeg]
- opt.on("--image-format=FORMAT", "-I", image_formats,
- "Sets output image format for diagrams. Can",
- "be #{image_formats.join ', '}. If this option",
- "is omitted, png is used. Requires",
- "diagrams.") do |value|
- @image_format = value
+ opt.on("--force-output", "-O",
+ "Forces rdoc to write the output files,",
+ "even if the output directory exists",
+ "and does not seem to have been created",
+ "by rdoc.") do |value|
+ @force_output = value
+ end
+
+ opt.separator nil
+
+ generator_text = @generators.keys.map { |name| " #{name}" }.sort
+
+ opt.on("-f", "--fmt=FORMAT", "--format=FORMAT", @generators.keys,
+ "Set the output formatter. One of:", *generator_text) do |value|
+ check_generator
+
+ @generator_name = value.downcase
+ setup_generator
end
opt.separator nil
opt.on("--include=DIRECTORIES", "-i", Array,
- "set (or add to) the list of directories to",
+ "Set (or add to) the list of directories to",
"be searched when satisfying :include:",
"requests. Can be used more than once.") do |value|
@rdoc_include.concat value.map { |dir| dir.strip }
@@ -355,83 +486,107 @@ Usage: #{opt.program_name} [options] [names...]
opt.separator nil
- opt.on("--inline-source", "-S",
- "Show method source code inline, rather than",
- "via a popup link.") do |value|
- @inline_source = value
+ opt.on("--[no-]coverage-report=[LEVEL]", "--[no-]dcov", "-C", Integer,
+ "Prints a report on undocumented items.",
+ "Does not generate files.") do |value|
+ value = 0 if value.nil? # Integer converts -C to nil
+
+ @coverage_report = value
+ @force_update = true if value
end
opt.separator nil
- opt.on("--line-numbers", "-N",
- "Include line numbers in the source code.") do |value|
- @include_line_numbers = value
+ opt.on("--output=DIR", "--op", "-o",
+ "Set the output directory.") do |value|
+ @op_dir = value
end
opt.separator nil
- opt.on("--main=NAME", "-m",
- "NAME will be the initial page displayed.") do |value|
- @main_page = value
+ opt.on("-d",
+ "Deprecated --diagram option.",
+ "Prevents firing debug mode",
+ "with legacy invocation.") do |value|
end
opt.separator nil
+ opt.separator 'HTML generator options:'
+ opt.separator nil
- opt.on("--merge", "-M",
- "When creating ri output, merge previously",
- "processed classes into previously",
- "documented classes of the same name.") do |value|
- @merge = value
+ opt.on("--charset=CHARSET", "-c",
+ "Specifies the output HTML character-set.",
+ "Use --encoding instead of --charset if",
+ "available.") do |value|
+ @charset = value
end
opt.separator nil
- opt.on("--one-file", "-1",
- "Put all the output into a single file.") do |value|
- @all_one_file = value
- @inline_source = value if value
- @template = 'one_page_html'
+ opt.on("--hyperlink-all", "-A",
+ "Generate hyperlinks for all words that",
+ "correspond to known methods, even if they",
+ "do not start with '#' or '::' (legacy",
+ "behavior).") do |value|
+ @hyperlink_all = value
end
opt.separator nil
- opt.on("--op=DIR", "-o",
- "Set the output directory.") do |value|
- @op_dir = value
+ opt.on("--main=NAME", "-m",
+ "NAME will be the initial page displayed.") do |value|
+ @main_page = value
end
opt.separator nil
- opt.on("--opname=NAME", "-n",
- "Set the NAME of the output. Has no effect",
- "for HTML.") do |value|
- @op_name = value
+ opt.on("--[no-]line-numbers", "-N",
+ "Include line numbers in the source code.",
+ "By default, only the number of the first",
+ "line is displayed, in a leading comment.") do |value|
+ @line_numbers = value
end
opt.separator nil
- opt.on("--promiscuous", "-p",
- "When documenting a file that contains a",
- "module or class also defined in other",
- "files, show all stuff for that module or",
- "class in each files page. By default, only",
- "show stuff defined in that particular file.") do |value|
- @promiscuous = value
+ opt.on("--show-hash", "-H",
+ "A name of the form #name in a comment is a",
+ "possible hyperlink to an instance method",
+ "name. When displayed, the '#' is removed",
+ "unless this option is specified.") do |value|
+ @show_hash = value
end
opt.separator nil
- opt.on("--quiet", "-q",
- "Don't show progress as we parse.") do |value|
- @verbosity = 0
+ opt.on("--template=NAME", "-T", Template,
+ "Set the template used when generating",
+ "output. The default depends on the",
+ "formatter used.") do |(template, template_dir)|
+ @template = template
+ @template_dir = template_dir
end
- opt.on("--verbose", "-v",
- "Display extra progress as we parse.") do |value|
- @verbosity = 2
+ opt.separator nil
+
+ opt.on("--title=TITLE", "-t",
+ "Set TITLE as the title for HTML output.") do |value|
+ @title = value
end
+ opt.separator nil
+ opt.on("--webcvs=URL", "-W",
+ "Specify a URL for linking to a web frontend",
+ "to CVS. If the URL contains a '\%s', the",
+ "name of the current file will be",
+ "substituted; if the URL doesn't contain a",
+ "'\%s', the filename will be appended to it.") do |value|
+ @webcvs = value
+ end
+
+ opt.separator nil
+ opt.separator "ri generator options:"
opt.separator nil
opt.on("--ri", "-r",
@@ -440,8 +595,10 @@ Usage: #{opt.program_name} [options] [names...]
"your home directory unless overridden by a",
"subsequent --op parameter, so no special",
"privileges are needed.") do |value|
+ check_generator
+
@generator_name = "ri"
- @op_dir = RDoc::RI::Paths::HOMEDIR
+ @op_dir ||= RDoc::RI::Paths::HOMEDIR
setup_generator
end
@@ -452,116 +609,108 @@ Usage: #{opt.program_name} [options] [names...]
"are stored in a site-wide directory,",
"making them accessible to others, so",
"special privileges are needed.") do |value|
+ check_generator
+
@generator_name = "ri"
@op_dir = RDoc::RI::Paths::SITEDIR
setup_generator
end
opt.separator nil
-
- opt.on("--ri-system", "-Y",
- "Generate output for use by `ri`. The files",
- "are stored in a site-wide directory,",
- "making them accessible to others, so",
- "special privileges are needed. This",
- "option is intended to be used during Ruby",
- "installation.") do |value|
- @generator_name = "ri"
- @op_dir = RDoc::RI::Paths::SYSDIR
- setup_generator
- end
-
+ opt.separator "Generic options:"
opt.separator nil
- opt.on("--show-hash", "-H",
- "A name of the form #name in a comment is a",
- "possible hyperlink to an instance method",
- "name. When displayed, the '#' is removed",
- "unless this option is specified.") do |value|
- @show_hash = value
+ opt.on("--[no-]dry-run",
+ "Don't write any files") do |value|
+ @dry_run = value
end
- opt.separator nil
-
- opt.on("--style=URL", "-s",
- "Specifies the URL of a separate stylesheet.") do |value|
- @css = value
+ opt.on("-D", "--[no-]debug",
+ "Displays lots on internal stuff.") do |value|
+ $DEBUG_RDOC = value
end
- opt.separator nil
-
- opt.on("--tab-width=WIDTH", "-w", OptionParser::DecimalInteger,
- "Set the width of tab characters.") do |value|
- @tab_width = value
+ opt.on("--[no-]ignore-invalid",
+ "Ignore invalid options and continue",
+ "(default true).") do |value|
+ ignore_invalid = value
end
- opt.separator nil
+ opt.on("--quiet", "-q",
+ "Don't show progress as we parse.") do |value|
+ @verbosity = 0
+ end
- opt.on("--template=NAME", "-T",
- "Set the template used when generating",
- "output.") do |value|
- @template = value
+ opt.on("--verbose", "-v",
+ "Display extra progress as RDoc parses") do |value|
+ @verbosity = 2
end
- opt.separator nil
+ opt.on("--help",
+ "Display this help") do
+ RDoc::RDoc::GENERATORS.each_key do |generator|
+ setup_generator generator
+ end
- opt.on("--title=TITLE", "-t",
- "Set TITLE as the title for HTML output.") do |value|
- @title = value
+ puts opt.help
+ exit
end
opt.separator nil
-
- opt.on("--webcvs=URL", "-W",
- "Specify a URL for linking to a web frontend",
- "to CVS. If the URL contains a '\%s', the",
- "name of the current file will be",
- "substituted; if the URL doesn't contain a",
- "'\%s', the filename will be appended to it.") do |value|
- @webcvs = value
- end
end
- argv.insert(0, *ENV['RDOCOPT'].split) if ENV['RDOCOPT']
+ setup_generator 'darkfish' if
+ argv.grep(/\A(-f|--fmt|--format|-r|-R|--ri|--ri-site)\b/).empty?
- opts.parse! argv
+ deprecated = []
+ invalid = []
- @files = argv.dup
+ begin
+ opts.parse! argv
+ rescue OptionParser::InvalidArgument, OptionParser::InvalidOption => e
+ if DEPRECATED[e.args.first] then
+ deprecated << e.args.first
+ elsif %w[--format --ri -r --ri-site -R].include? e.args.first then
+ raise
+ else
+ invalid << e.args.join(' ')
+ end
- @rdoc_include << "." if @rdoc_include.empty?
+ retry
+ end
- if @exclude.empty? then
- @exclude = nil
- else
- @exclude = Regexp.new(@exclude.join("|"))
+ unless @generator then
+ @generator = RDoc::Generator::Darkfish
+ @generator_name = 'darkfish'
end
- check_files
+ if @pipe and not argv.empty? then
+ @pipe = false
+ invalid << '-p (with files)'
+ end
- # If no template was specified, use the default template for the output
- # formatter
+ unless quiet then
+ deprecated.each do |opt|
+ $stderr.puts 'option ' << opt << ' is deprecated: ' << DEPRECATED[opt]
+ end
- @template ||= @generator_name
+ unless invalid.empty? then
+ invalid = "invalid options: #{invalid.join ', '}"
- # Generate a regexp from the accessors
- unless accessors.empty? then
- re = '^(' + accessors.map { |a| Regexp.quote a }.join('|') + ')$'
- @extra_accessors = Regexp.new re
+ if ignore_invalid then
+ $stderr.puts invalid
+ $stderr.puts '(invalid options are ignored)'
+ else
+ $stderr.puts opts
+ $stderr.puts invalid
+ exit 1
+ end
+ end
end
- rescue OptionParser::InvalidArgument, OptionParser::InvalidOption => e
- puts opts
- puts
- puts e
- exit 1
- end
-
- ##
- # Set the title, but only if not already set. This means that a title set
- # from the command line trumps one set in a source file
+ @files = argv.dup
- def title=(string)
- @title ||= string
+ finish
end
##
@@ -571,66 +720,49 @@ Usage: #{opt.program_name} [options] [names...]
@verbosity.zero?
end
- def quiet=(bool)
+ ##
+ # Set quietness to +bool+
+
+ def quiet= bool
@verbosity = bool ? 0 : 1
end
- private
-
##
- # Set up an output generator for the format in @generator_name
+ # Set up an output generator for the named +generator_name+.
+ #
+ # If the found generator responds to :setup_options it will be called with
+ # the options instance. This allows generators to add custom options or set
+ # default options.
- def setup_generator
- @generator = @generators[@generator_name]
+ def setup_generator generator_name = @generator_name
+ @generator = @generators[generator_name]
unless @generator then
- raise OptionParser::InvalidArgument, "Invalid output formatter"
- end
-
- if @generator_name == "xml" then
- @all_one_file = true
- @inline_source = true
+ raise OptionParser::InvalidArgument,
+ "Invalid output formatter #{generator_name}"
end
- end
-
- # Check that the right version of 'dot' is available. Unfortunately this
- # doesn't work correctly under Windows NT, so we'll bypass the test under
- # Windows.
-
- def check_diagram
- return if RUBY_PLATFORM =~ /mswin|cygwin|mingw|bccwin/
- ok = false
- ver = nil
+ return if @generator_options.include? @generator
- IO.popen "dot -V 2>&1" do |io|
- ver = io.read
- if ver =~ /dot.+version(?:\s+gviz)?\s+(\d+)\.(\d+)/ then
- ok = ($1.to_i > 1) || ($1.to_i == 1 && $2.to_i >= 8)
- end
- end
+ @generator_name = generator_name
+ @generator_options << @generator
- unless ok then
- if ver =~ /^dot.+version/ then
- $stderr.puts "Warning: You may need dot V1.8.6 or later to use\n",
- "the --diagram option correctly. You have:\n\n ",
- ver,
- "\nDiagrams might have strange background colors.\n\n"
- else
- $stderr.puts "You need the 'dot' program to produce diagrams.",
- "(see http://www.research.att.com/sw/tools/graphviz/)\n\n"
- exit
- end
+ if @generator.respond_to? :setup_options then
+ @option_parser ||= OptionParser.new
+ @generator.setup_options self
end
end
##
- # Check that the files on the command line exist
+ # Finds the template dir for +template+
- def check_files
- @files.each do |f|
- stat = File.stat f
- raise RDoc::Error, "file '#{f}' not readable" unless stat.readable?
+ def template_dir_for template
+ template_path = File.join 'rdoc', 'generator', 'template', template
+
+ $LOAD_PATH.map do |path|
+ File.join File.expand_path(path), template_path
+ end.find do |dir|
+ File.directory? dir
end
end
diff --git a/lib/rdoc/parser.rb b/lib/rdoc/parser.rb
index bb7e0c7d81..27267f3d81 100644
--- a/lib/rdoc/parser.rb
+++ b/lib/rdoc/parser.rb
@@ -1,12 +1,12 @@
require 'rdoc'
require 'rdoc/code_objects'
-require 'rdoc/markup/preprocess'
+require 'rdoc/markup/pre_process'
require 'rdoc/stats'
##
-# A parser is simple a class that implements
+# A parser is a class that subclasses RDoc::Parser and implements
#
-# #initialize(file_name, body, options)
+# #initialize top_level, file_name, body, options, stats
#
# and
#
@@ -16,17 +16,16 @@ require 'rdoc/stats'
# and an RDoc::Options object. The scan method is then called to return an
# appropriately parsed TopLevel code object.
#
-# The ParseFactory is used to redirect to the correct parser given a
-# filename extension. This magic works because individual parsers have to
-# register themselves with us as they are loaded in. The do this using the
-# following incantation
+# RDoc::Parser::for is a factory that creates the correct parser for a
+# given filename extension. Parsers have to register themselves RDoc::Parser
+# using parse_files_matching as when they are loaded:
#
# require "rdoc/parser"
#
# class RDoc::Parser::Xyz < RDoc::Parser
# parse_files_matching /\.xyz$/ # <<<<
#
-# def initialize(file_name, body, options)
+# def initialize top_level, file_name, body, options, stats
# ...
# end
#
@@ -35,15 +34,23 @@ require 'rdoc/stats'
# end
# end
#
-# Just to make life interesting, if we suspect a plain text file, we also
-# look for a shebang line just in case it's a potential shell script
+# If a plain text file is detected, RDoc also looks for a shebang line in case
+# the file is a shell script.
class RDoc::Parser
@parsers = []
class << self
+
+ ##
+ # An Array of arrays that maps file extension (or name) regular
+ # expressions to parser classes that will parse matching filenames.
+ #
+ # Use parse_files_matching to register a parser's file extensions.
+
attr_reader :parsers
+
end
##
@@ -63,13 +70,71 @@ class RDoc::Parser
end
##
- # Return _true_ if the +file+ seems like binary.
+ # Determines if the file is a "binary" file which basically means it has
+ # content that an RDoc parser shouldn't try to consume.
def self.binary?(file)
- s = File.read(file, 1024)
- s.count("^ -~\t\r\n").fdiv(s.size) > 0.3 || s.index("\x00") unless s.empty?
+ return false if file =~ /\.(rdoc|txt)$/
+
+ s = File.read(file, 1024) or return false
+
+ have_encoding = s.respond_to? :encoding
+
+ if have_encoding then
+ return false if s.encoding != Encoding::ASCII_8BIT and s.valid_encoding?
+ end
+
+ return true if s[0, 2] == Marshal.dump('')[0, 2] or s.index("\x00")
+
+ if have_encoding then
+ s.force_encoding Encoding.default_external
+
+ not s.valid_encoding?
+ else
+ if 0.respond_to? :fdiv then
+ s.count("\x00-\x7F", "^ -~\t\r\n").fdiv(s.size) > 0.3
+ else # HACK 1.8.6
+ (s.count("\x00-\x7F", "^ -~\t\r\n").to_f / s.size) > 0.3
+ end
+ end
+ end
+
+ ##
+ # Processes common directives for CodeObjects for the C and Ruby parsers.
+ #
+ # Applies +directive+'s +value+ to +code_object+, if appropriate
+
+ def self.process_directive code_object, directive, value
+ warn "RDoc::Parser::process_directive is deprecated and wil be removed in RDoc 4. Use RDoc::Markup::PreProcess#handle_directive instead" if $-w
+
+ case directive
+ when 'nodoc' then
+ code_object.document_self = nil # notify nodoc
+ code_object.document_children = value.downcase != 'all'
+ when 'doc' then
+ code_object.document_self = true
+ code_object.force_documentation = true
+ when 'yield', 'yields' then
+ # remove parameter &block
+ code_object.params.sub!(/,?\s*&\w+/, '') if code_object.params
+
+ code_object.block_params = value
+ when 'arg', 'args' then
+ code_object.params = value
+ end
+ end
+
+ ##
+ # Checks if +file+ is a zip file in disguise. Signatures from
+ # http://www.garykessler.net/library/file_sigs.html
+
+ def self.zip? file
+ zip_signature = File.read file, 4
+
+ zip_signature == "PK\x03\x04" or
+ zip_signature == "PK\x05\x06" or
+ zip_signature == "PK\x07\x08"
end
- private_class_method :binary?
##
# Return a parser that can handle a particular extension
@@ -77,16 +142,15 @@ class RDoc::Parser
def self.can_parse(file_name)
parser = RDoc::Parser.parsers.find { |regexp,| regexp =~ file_name }.last
- #
- # The default parser should *NOT* parse binary files.
- #
- if parser == RDoc::Parser::Simple then
- if binary? file_name then
- return nil
- end
- end
+ # HACK Selenium hides a jar file using a .txt extension
+ return if parser == RDoc::Parser::Simple and zip? file_name
- return parser
+ # The default parser must not parse binary files
+ ext_name = File.extname file_name
+ return parser if ext_name.empty?
+ return if parser == RDoc::Parser::Simple and ext_name !~ /txt|rdoc/
+
+ parser
end
##
@@ -94,6 +158,8 @@ class RDoc::Parser
# for ones that we don't know
def self.for(top_level, file_name, body, options, stats)
+ return if binary? file_name
+
# If no extension, look for shebang
if file_name !~ /\.\w+$/ && body =~ %r{\A#!(.+)} then
shebang = $1
@@ -105,29 +171,35 @@ class RDoc::Parser
parser = can_parse file_name
- #
- # This method must return a parser.
- #
- if !parser then
- parser = RDoc::Parser::Simple
- end
+ return unless parser
parser.new top_level, file_name, body, options, stats
end
##
# Record which file types this parser can understand.
+ #
+ # It is ok to call this multiple times.
def self.parse_files_matching(regexp)
RDoc::Parser.parsers.unshift [regexp, self]
end
+ ##
+ # Creates a new Parser storing +top_level+, +file_name+, +content+,
+ # +options+ and +stats+ in instance variables.
+ #
+ # Usually invoked by +super+
+
def initialize(top_level, file_name, content, options, stats)
@top_level = top_level
@file_name = file_name
@content = content
@options = options
@stats = stats
+
+ @preprocess = RDoc::Markup::PreProcess.new @file_name, @options.rdoc_include
+ @preprocess.options = @options
end
end
diff --git a/lib/rdoc/parser/c.rb b/lib/rdoc/parser/c.rb
index c3fb5e5b19..3da1820c50 100644
--- a/lib/rdoc/parser/c.rb
+++ b/lib/rdoc/parser/c.rb
@@ -1,11 +1,11 @@
-require 'rdoc/parser'
+
require 'rdoc/parser/ruby'
require 'rdoc/known_classes'
##
-# We attempt to parse C extension files. Basically we look for
+# RDoc::Parser::C attempts to parse C extension files. It looks for
# the standard patterns that you find in extensions: <tt>rb_define_class,
-# rb_define_method</tt> and so on. We also try to find the corresponding
+# rb_define_method</tt> and so on. It tries to find the corresponding
# C source for the methods and extract comments, but if we fail
# we don't worry too much.
#
@@ -14,32 +14,32 @@ require 'rdoc/known_classes'
# method, that is to say the method whose name is given in the
# <tt>rb_define_method</tt> call. For example, you might write:
#
-# /*
-# * Returns a new array that is a one-dimensional flattening of this
-# * array (recursively). That is, for every element that is an array,
-# * extract its elements into the new array.
-# *
-# * s = [ 1, 2, 3 ] #=> [1, 2, 3]
-# * t = [ 4, 5, 6, [7, 8] ] #=> [4, 5, 6, [7, 8]]
-# * a = [ s, t, 9, 10 ] #=> [[1, 2, 3], [4, 5, 6, [7, 8]], 9, 10]
-# * a.flatten #=> [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
-# */
-# static VALUE
-# rb_ary_flatten(ary)
-# VALUE ary;
-# {
-# ary = rb_obj_dup(ary);
-# rb_ary_flatten_bang(ary);
-# return ary;
-# }
+# /*
+# * Returns a new array that is a one-dimensional flattening of this
+# * array (recursively). That is, for every element that is an array,
+# * extract its elements into the new array.
+# *
+# * s = [ 1, 2, 3 ] #=> [1, 2, 3]
+# * t = [ 4, 5, 6, [7, 8] ] #=> [4, 5, 6, [7, 8]]
+# * a = [ s, t, 9, 10 ] #=> [[1, 2, 3], [4, 5, 6, [7, 8]], 9, 10]
+# * a.flatten #=> [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
+# */
+# static VALUE
+# rb_ary_flatten(ary)
+# VALUE ary;
+# {
+# ary = rb_obj_dup(ary);
+# rb_ary_flatten_bang(ary);
+# return ary;
+# }
#
-# ...
+# ...
#
-# void
-# Init_Array()
-# {
-# ...
-# rb_define_method(rb_cArray, "flatten", rb_ary_flatten, 0);
+# void
+# Init_Array()
+# {
+# ...
+# rb_define_method(rb_cArray, "flatten", rb_ary_flatten, 0);
#
# Here RDoc will determine from the rb_define_method line that there's a
# method called "flatten" in class Array, and will look for the implementation
@@ -47,28 +47,47 @@ require 'rdoc/known_classes'
# method in the HTML output. This method must be in the same source file
# as the rb_define_method.
#
-# C classes can be diagrammed (see /tc/dl/ruby/ruby/error.c), and RDoc
-# integrates C and Ruby source into one tree
-#
# The comment blocks may include special directives:
#
-# [Document-class: <i>name</i>]
-# This comment block is documentation for the given class. Use this
-# when the <tt>Init_xxx</tt> method is not named after the class.
+# [Document-class: +name+]
+# Documentation for the named class.
+#
+# [Document-module: +name+]
+# Documentation for the named module.
+#
+# [Document-const: +name+]
+# Documentation for the named +rb_define_const+.
#
-# [Document-method: <i>name</i>]
-# This comment documents the named method. Use when RDoc cannot
-# automatically find the method from it's declaration
+# [Document-global: +name+]
+# Documentation for the named +rb_define_global_const+
+#
+# [Document-variable: +name+]
+# Documentation for the named +rb_define_variable+
+#
+# [Document-method: +method_name+]
+# Documentation for the named method. Use this when the method name is
+# unambiguous.
+#
+# [Document-method: <tt>ClassName::method_name<tt>]
+# Documentation for a singleton method in the given class. Use this when
+# the method name alone is ambiguous.
+#
+# [Document-method: <tt>ClassName#method_name<tt>]
+# Documentation for a instance method in the given class. Use this when the
+# method name alone is ambiguous.
+#
+# [Document-attr: +name+]
+# Documentation for the named attribute.
#
# [call-seq: <i>text up to an empty line</i>]
-# Because C source doesn't give descripive names to Ruby-level parameters,
+# Because C source doesn't give descriptive names to Ruby-level parameters,
# you need to document the calling sequence explicitly
#
# In addition, RDoc assumes by default that the C method implementing a
# Ruby function is in the same source file as the rb_define_method call.
# If this isn't the case, add the comment:
#
-# rb_define_method(....); // in: filename
+# rb_define_method(....); // in filename
#
# As an example, we might have an extension that defines multiple classes
# in its Init_xxx method. We could document them using
@@ -96,8 +115,34 @@ class RDoc::Parser::C < RDoc::Parser
parse_files_matching(/\.(?:([CcHh])\1?|c([+xp])\2|y)\z/)
- @@enclosure_classes = {}
- @@known_bodies = {}
+ include RDoc::Text
+
+ ##
+ # C file the parser is parsing
+
+ attr_accessor :content
+
+
+ ##
+ # Maps C variable names to names of ruby classes (andsingleton classes)
+
+ attr_reader :known_classes
+
+ ##
+ # Maps C variable names to names of ruby singleton classes
+
+ attr_reader :singleton_classes
+
+ ##
+ # Resets cross-file state. Call when parsing different projects that need
+ # separate documentation.
+
+ def self.reset
+ @@enclosure_classes = {}
+ @@known_bodies = {}
+ end
+
+ reset
##
# Prepare to parse a C file
@@ -107,22 +152,71 @@ class RDoc::Parser::C < RDoc::Parser
@known_classes = RDoc::KNOWN_CLASSES.dup
@content = handle_tab_width handle_ifdefs_in(@content)
- @classes = Hash.new
+ @classes = {}
+ @singleton_classes = {}
@file_dir = File.dirname(@file_name)
end
+ ##
+ # Scans #content for rb_define_alias
+
def do_aliases
- @content.scan(%r{rb_define_alias\s*\(\s*(\w+),\s*"([^"]+)",\s*"([^"]+)"\s*\)}m) do
- |var_name, new_name, old_name|
- class_name = @known_classes[var_name] || var_name
- class_obj = find_class(var_name, class_name)
+ @content.scan(/rb_define_alias\s*\(
+ \s*(\w+),
+ \s*"(.+?)",
+ \s*"(.+?)"
+ \s*\)/xm) do |var_name, new_name, old_name|
+ class_name = @known_classes[var_name]
+
+ unless class_name then
+ warn "Enclosing class/module %p for alias %s %s not known" % [
+ var_name, new_name, old_name]
+ next
+ end
+
+ class_obj = find_class var_name, class_name
+
+ al = RDoc::Alias.new '', old_name, new_name, ''
+ al.singleton = @singleton_classes.key? var_name
+
+ comment = find_alias_comment var_name, new_name, old_name
+ comment = strip_stars comment
+ al.comment = comment
- as = class_obj.add_alias RDoc::Alias.new("", old_name, new_name, "")
+ al.record_location @top_level
- @stats.add_alias as
+ class_obj.add_alias al
+ @stats.add_alias al
end
end
+ ##
+ # Scans #content for rb_attr and rb_define_attr
+
+ def do_attrs
+ @content.scan(/rb_attr\s*\(
+ \s*(\w+),
+ \s*([\w"()]+),
+ \s*([01]),
+ \s*([01]),
+ \s*\w+\);/xm) do |var_name, attr_name, read, write|
+ handle_attr var_name, attr_name, read, write
+ end
+
+ @content.scan(%r%rb_define_attr\(
+ \s*([\w\.]+),
+ \s*"([^"]+)",
+ \s*(\d+),
+ \s*(\d+)\s*\);
+ %xm) do |var_name, attr_name, read, write|
+ handle_attr var_name, attr_name, read, write
+ end
+ end
+
+ ##
+ # Scans #content for rb_define_module, rb_define_class, boot_defclass,
+ # rb_define_module_under, rb_define_class_under and rb_singleton_class
+
def do_classes
@content.scan(/(\w+)\s* = \s*rb_define_module\s*\(\s*"(\w+)"\s*\)/mx) do
|var_name, class_name|
@@ -152,50 +246,84 @@ class RDoc::Parser::C < RDoc::Parser
handle_class_module(var_name, "module", class_name, nil, in_module)
end
- @content.scan(/([\w\.]+)\s* = \s*rb_define_class_under\s*
- \(
- \s*(\w+),
- \s*"(\w+)",
- \s*([\w\*\s\(\)\.\->]+)\s* # for SWIG
- \s*\)/mx) do |var_name, in_module, class_name, parent|
- handle_class_module(var_name, "class", class_name, parent, in_module)
+ @content.scan(/([\w\.]+)\s* = # var_name
+ \s*rb_define_class_under\s*
+ \(
+ \s* (\w+), # under
+ \s* "(\w+)", # class_name
+ \s*
+ (?:
+ ([\w\*\s\(\)\.\->]+) | # parent_name
+ rb_path2class\("([\w:]+)"\) # path
+ )
+ \s*
+ \)
+ /mx) do |var_name, under, class_name, parent_name, path|
+ parent = path || parent_name
+
+ handle_class_module var_name, 'class', class_name, parent, under
+ end
+
+ @content.scan(/([\w\.]+)\s* = \s*rb_singleton_class\s*
+ \(
+ \s*(\w+)
+ \s*\)/mx) do |sclass_var, class_var|
+ handle_singleton sclass_var, class_var
end
end
+ ##
+ # Scans #content for rb_define_variable, rb_define_readonly_variable,
+ # rb_define_const and rb_define_global_const
+
def do_constants
- @content.scan(%r{\Wrb_define_
- (
- variable |
- readonly_variable |
- const |
- global_const |
- )
+ @content.scan(%r%\Wrb_define_
+ ( variable |
+ readonly_variable |
+ const |
+ global_const )
\s*\(
(?:\s*(\w+),)?
\s*"(\w+)",
\s*(.*?)\s*\)\s*;
- }xm) do |type, var_name, const_name, definition|
+ %xm) do |type, var_name, const_name, definition|
var_name = "rb_cObject" if !var_name or var_name == "rb_mKernel"
- handle_constants(type, var_name, const_name, definition)
+ handle_constants type, var_name, const_name, definition
+ end
+
+ @content.scan(%r%
+ \Wrb_curses_define_const
+ \s*\(
+ \s*
+ (\w+)
+ \s*
+ \)
+ \s*;%xm) do |consts|
+ const = consts.first
+ handle_constants 'const', 'mCurses', const, "UINT2NUM(#{const})"
end
end
##
- # Look for includes of the form:
- #
- # rb_include_module(rb_cArray, rb_mEnumerable);
+ # Scans #content for rb_include_module
def do_includes
@content.scan(/rb_include_module\s*\(\s*(\w+?),\s*(\w+?)\s*\)/) do |c,m|
if cls = @classes[c]
m = @known_classes[m] || m
- cls.add_include RDoc::Include.new(m, "")
+ incl = cls.add_include RDoc::Include.new(m, "")
+ incl.record_location @top_level
end
end
end
+ ##
+ # Scans #content for rb_define_method, rb_define_singleton_method,
+ # rb_define_module_function, rb_define_private_method,
+ # rb_define_global_function and define_filetest_function
+
def do_methods
- @content.scan(%r{rb_define_
+ @content.scan(%r%rb_define_
(
singleton_method |
method |
@@ -206,59 +334,82 @@ class RDoc::Parser::C < RDoc::Parser
\s*"([^"]+)",
\s*(?:RUBY_METHOD_FUNC\(|VALUEFUNC\()?(\w+)\)?,
\s*(-?\w+)\s*\)
- (?:;\s*/[*/]\s+in\s+(\w+?\.[cy]))?
- }xm) do
- |type, var_name, meth_name, meth_body, param_count, source_file|
+ (?:;\s*/[*/]\s+in\s+(\w+?\.(?:cpp|c|y)))?
+ %xm) do |type, var_name, meth_name, function, param_count, source_file|
# Ignore top-object and weird struct.c dynamic stuff
next if var_name == "ruby_top_self"
next if var_name == "nstr"
- next if var_name == "envtbl"
- next if var_name == "argf" # it'd be nice to handle this one
var_name = "rb_cObject" if var_name == "rb_mKernel"
- handle_method(type, var_name, meth_name,
- meth_body, param_count, source_file)
- end
-
- @content.scan(%r{rb_define_attr\(
- \s*([\w\.]+),
- \s*"([^"]+)",
- \s*(\d+),
- \s*(\d+)\s*\);
- }xm) do |var_name, attr_name, attr_reader, attr_writer|
- #var_name = "rb_cObject" if var_name == "rb_mKernel"
- handle_attr(var_name, attr_name,
- attr_reader.to_i != 0,
- attr_writer.to_i != 0)
+ handle_method(type, var_name, meth_name, function, param_count,
+ source_file)
end
- @content.scan(%r{rb_define_global_function\s*\(
+ @content.scan(%r%rb_define_global_function\s*\(
\s*"([^"]+)",
\s*(?:RUBY_METHOD_FUNC\(|VALUEFUNC\()?(\w+)\)?,
\s*(-?\w+)\s*\)
(?:;\s*/[*/]\s+in\s+(\w+?\.[cy]))?
- }xm) do |meth_name, meth_body, param_count, source_file|
- handle_method("method", "rb_mKernel", meth_name,
- meth_body, param_count, source_file)
+ %xm) do |meth_name, function, param_count, source_file|
+ handle_method("method", "rb_mKernel", meth_name, function, param_count,
+ source_file)
end
@content.scan(/define_filetest_function\s*\(
- \s*"([^"]+)",
- \s*(?:RUBY_METHOD_FUNC\(|VALUEFUNC\()?(\w+)\)?,
- \s*(-?\w+)\s*\)/xm) do
- |meth_name, meth_body, param_count|
+ \s*"([^"]+)",
+ \s*(?:RUBY_METHOD_FUNC\(|VALUEFUNC\()?(\w+)\)?,
+ \s*(-?\w+)\s*\)/xm) do |meth_name, function, param_count|
- handle_method("method", "rb_mFileTest", meth_name, meth_body, param_count)
- handle_method("singleton_method", "rb_cFile", meth_name, meth_body, param_count)
+ handle_method("method", "rb_mFileTest", meth_name, function, param_count)
+ handle_method("singleton_method", "rb_cFile", meth_name, function,
+ param_count)
end
end
- def find_attr_comment(attr_name)
- if @content =~ %r{((?>/\*.*?\*/\s+))
- rb_define_attr\((?:\s*(\w+),)?\s*"#{attr_name}"\s*,.*?\)\s*;}xmi
+ ##
+ # Finds the comment for an alias on +class_name+ from +new_name+ to
+ # +old_name+
+
+ def find_alias_comment class_name, new_name, old_name
+ content =~ %r%((?>/\*.*?\*/\s+))
+ rb_define_alias\(\s*#{Regexp.escape class_name}\s*,
+ \s*"#{Regexp.escape new_name}"\s*,
+ \s*"#{Regexp.escape old_name}"\s*\);%xm
+
+ $1 || ''
+ end
+
+ ##
+ # Finds a comment for rb_define_attr, rb_attr or Document-attr.
+ #
+ # +var_name+ is the C class variable the attribute is defined on.
+ # +attr_name+ is the attribute's name.
+ #
+ # +read+ and +write+ are the read/write flags ('1' or '0'). Either both or
+ # neither must be provided.
+
+ def find_attr_comment var_name, attr_name, read = nil, write = nil
+ attr_name = Regexp.escape attr_name
+
+ rw = if read and write then
+ /\s*#{read}\s*,\s*#{write}\s*/xm
+ else
+ /.*?/m
+ end
+
+ if @content =~ %r%((?>/\*.*?\*/\s+))
+ rb_define_attr\((?:\s*#{var_name},)?\s*
+ "#{attr_name}"\s*,
+ #{rw}\)\s*;%xm then
+ $1
+ elsif @content =~ %r%((?>/\*.*?\*/\s+))
+ rb_attr\(\s*#{var_name}\s*,
+ \s*#{attr_name}\s*,
+ #{rw},.*?\)\s*;%xm then
$1
- elsif @content =~ %r{Document-attr:\s#{attr_name}\s*?\n((?>.*?\*/))}m
+ elsif @content =~ %r%Document-attr:\s#{attr_name}\s*?\n
+ ((?>.*?\*/))%xm then
$1
else
''
@@ -268,19 +419,20 @@ class RDoc::Parser::C < RDoc::Parser
##
# Find the C code corresponding to a Ruby method
- def find_body(class_name, meth_name, meth_obj, body, quiet = false)
- case body
- when %r"((?>/\*.*?\*/\s*))(?:(?:static|SWIGINTERN)\s+)?(?:intern\s+)?VALUE\s+#{meth_name}
- \s*(\([^)]*\))([^;]|$)"xm
- comment, params = $1, $2
- body_text = $&
-
- remove_private_comments(comment) if comment
+ def find_body class_name, meth_name, meth_obj, file_content, quiet = false
+ case file_content
+ when %r%((?>/\*.*?\*/\s*)?)
+ ((?:(?:static|SWIGINTERN)\s+)?
+ (?:intern\s+)?VALUE\s+#{meth_name}
+ \s*(\([^)]*\))([^;]|$))%xm then
+ comment = $1
+ body = $2
+ offset = $~.offset(2).first
- # see if we can find the whole body
+ remove_private_comments comment if comment
- re = Regexp.escape(body_text) + '[^(]*^\{.*?^\}'
- body_text = $& if /#{re}/m =~ body
+ # try to find the whole body
+ body = $& if /#{Regexp.escape body}[^(]*?\{.*?^\}/m =~ file_content
# The comment block may have been overridden with a 'Document-method'
# block. This happens in the interpreter when multiple methods are
@@ -288,47 +440,72 @@ class RDoc::Parser::C < RDoc::Parser
# distinct (for example Kernel.hash and Kernel.object_id share the same
# implementation
- override_comment = find_override_comment(class_name, meth_obj.name)
+ override_comment = find_override_comment class_name, meth_obj
comment = override_comment if override_comment
- find_modifiers(comment, meth_obj) if comment
+ find_modifiers comment, meth_obj if comment
-# meth_obj.params = params
+ #meth_obj.params = params
meth_obj.start_collecting_tokens
- meth_obj.add_token(RDoc::RubyToken::Token.new(1,1).set_text(body_text))
- meth_obj.comment = mangle_comment(comment)
- when %r{((?>/\*.*?\*/\s*))^\s*\#\s*define\s+#{meth_name}\s+(\w+)}m
+ tk = RDoc::RubyToken::Token.new nil, 1, 1
+ tk.set_text body
+ meth_obj.add_token tk
+ meth_obj.comment = strip_stars comment
+ meth_obj.offset = offset
+ meth_obj.line = file_content[0, offset].count("\n") + 1
+
+ body
+ when %r%((?>/\*.*?\*/\s*))^\s*(\#\s*define\s+#{meth_name}\s+(\w+))%m then
comment = $1
- find_body(class_name, $2, meth_obj, body, true)
- find_modifiers(comment, meth_obj)
- meth_obj.comment = mangle_comment(comment) + meth_obj.comment
- when %r{^\s*\#\s*define\s+#{meth_name}\s+(\w+)}m
- unless find_body(class_name, $1, meth_obj, body, true)
- warn "No definition for #{meth_name}" unless @options.quiet
- return false
- end
- else
+ body = $2
+ offset = $~.offset(2).first
+
+ find_body class_name, $3, meth_obj, file_content, true
+ find_modifiers comment, meth_obj
+
+ meth_obj.start_collecting_tokens
+ tk = RDoc::RubyToken::Token.new nil, 1, 1
+ tk.set_text body
+ meth_obj.add_token tk
+ meth_obj.comment = strip_stars(comment) + meth_obj.comment.to_s
+ meth_obj.offset = offset
+ meth_obj.line = file_content[0, offset].count("\n") + 1
+
+ body
+ when %r%^\s*\#\s*define\s+#{meth_name}\s+(\w+)%m then
+ # with no comment we hope the aliased definition has it and use it's
+ # definition
+
+ body = find_body(class_name, $1, meth_obj, file_content, true)
+
+ return body if body
- # No body, but might still have an override comment
- comment = find_override_comment(class_name, meth_obj.name)
+ warn "No definition for #{meth_name}" if @options.verbosity > 1
+ false
+ else # No body, but might still have an override comment
+ comment = find_override_comment class_name, meth_obj
- if comment
- find_modifiers(comment, meth_obj)
- meth_obj.comment = mangle_comment(comment)
+ if comment then
+ find_modifiers comment, meth_obj
+ meth_obj.comment = strip_stars comment
+
+ ''
else
- warn "No definition for #{meth_name}" unless @options.quiet
- return false
+ warn "No definition for #{meth_name}" if @options.verbosity > 1
+ false
end
end
- true
end
+ ##
+ # Finds a RDoc::NormalClass or RDoc::NormalModule for +raw_name+
+
def find_class(raw_name, name)
unless @classes[raw_name]
if raw_name =~ /^rb_m/
container = @top_level.add_module RDoc::NormalModule, name
else
- container = @top_level.add_class RDoc::NormalClass, name, nil
+ container = @top_level.add_class RDoc::NormalClass, name
end
container.record_location @top_level
@@ -363,38 +540,49 @@ class RDoc::Parser::C < RDoc::Parser
# */
# VALUE cFoo = rb_define_class("Foo", rb_cObject);
- def find_class_comment(class_name, class_meth)
+ def find_class_comment(class_name, class_mod)
comment = nil
- if @content =~ %r{((?>/\*.*?\*/\s+))
- (static\s+)?void\s+Init_#{class_name}\s*(?:_\(\s*)?\(\s*(?:void\s*)\)}xmi then
+
+ if @content =~ %r%
+ ((?>/\*.*?\*/\s+))
+ (static\s+)?
+ void\s+
+ Init_#{class_name}\s*(?:_\(\s*)?\(\s*(?:void\s*)?\)%xmi then
+ comment = $1.sub(%r%Document-(?:class|module):\s+#{class_name}%, '')
+ elsif @content =~ %r%Document-(?:class|module):\s+#{class_name}\s*?
+ (?:<\s+[:,\w]+)?\n((?>.*?\*/))%xm then
comment = $1
- elsif @content =~ %r{Document-(?:class|module):\s#{class_name}\s*?(?:<\s+[:,\w]+)?\n((?>.*?\*/))}m
+ elsif @content =~ %r%((?>/\*.*?\*/\s+))
+ ([\w\.\s]+\s* = \s+)?rb_define_(class|module).*?"(#{class_name})"%xm then
comment = $1
- else
- if @content =~ /rb_define_(class|module)/m then
- class_name = class_name.split("::").last
- comments = []
- @content.split(/(\/\*.*?\*\/)\s*?\n/m).each_with_index do |chunk, index|
- comments[index] = chunk
- if chunk =~ /rb_define_(class|module).*?"(#{class_name})"/m then
- comment = comments[index-1]
- break
- end
- end
- end
end
- class_meth.comment = mangle_comment(comment) if comment
+
+ return unless comment
+
+ comment = strip_stars comment
+
+ comment = look_for_directives_in class_mod, comment
+
+ class_mod.add_comment comment, @top_level
end
##
# Finds a comment matching +type+ and +const_name+ either above the
# comment or in the matching Document- section.
- def find_const_comment(type, const_name)
- if @content =~ %r{((?>^\s*/\*.*?\*/\s+))
- rb_define_#{type}\((?:\s*(\w+),)?\s*"#{const_name}"\s*,.*?\)\s*;}xmi
+ def find_const_comment(type, const_name, class_name = nil)
+ if @content =~ %r%((?>^\s*/\*.*?\*/\s+))
+ rb_define_#{type}\((?:\s*(\w+),)?\s*
+ "#{const_name}"\s*,
+ .*?\)\s*;%xmi then
+ $1
+ elsif class_name and
+ @content =~ %r%Document-(?:const|global|variable):\s
+ #{class_name}::#{const_name}
+ \s*?\n((?>.*?\*/))%xm then
$1
- elsif @content =~ %r{Document-(?:const|global|variable):\s#{const_name}\s*?\n((?>.*?\*/))}m
+ elsif @content =~ %r%Document-(?:const|global|variable):\s#{const_name}
+ \s*?\n((?>.*?\*/))%xm then
$1
else
''
@@ -402,156 +590,224 @@ class RDoc::Parser::C < RDoc::Parser
end
##
- # If the comment block contains a section that looks like:
+ # Handles modifiers in +comment+ and updates +meth_obj+ as appropriate.
#
- # call-seq:
- # Array.new
- # Array.new(10)
+ # If <tt>:nodoc:</tt> is found, documentation on +meth_obj+ is suppressed.
#
- # use it for the parameters.
+ # If <tt>:yields:</tt> is followed by an argument list it is used for the
+ # #block_params of +meth_obj+.
+ #
+ # If the comment block contains a <tt>call-seq:</tt> section like:
+ #
+ # call-seq:
+ # ARGF.readlines(sep=$/) -> array
+ # ARGF.readlines(limit) -> array
+ # ARGF.readlines(sep, limit) -> array
+ #
+ # ARGF.to_a(sep=$/) -> array
+ # ARGF.to_a(limit) -> array
+ # ARGF.to_a(sep, limit) -> array
+ #
+ # it is used for the parameters of +meth_obj+.
+
+ def find_modifiers comment, meth_obj
+ # we must handle situations like the above followed by an unindented first
+ # comment. The difficulty is to make sure not to match lines starting
+ # with ARGF at the same indent, but that are after the first description
+ # paragraph.
+
+ if comment =~ /call-seq:(.*?(?:\S|\*\/?).*?)^\s*(?:\*\/?)?\s*$/m then
+ all_start, all_stop = $~.offset(0)
+ seq_start, seq_stop = $~.offset(1)
+
+ # we get the following lines that start with the leading word at the
+ # same indent, even if they have blank lines before
+ if $1 =~ /(^\s*\*?\s*\n)+^(\s*\*?\s*\w+)/m then
+ leading = $2 # ' * ARGF' in the example above
+ re = %r%
+ \A(
+ (^\s*\*?\s*\n)+
+ (^#{Regexp.escape leading}.*?\n)+
+ )+
+ ^\s*\*?\s*$
+ %xm
+ if comment[seq_stop..-1] =~ re then
+ all_stop = seq_stop + $~.offset(0).last
+ seq_stop = seq_stop + $~.offset(1).last
+ end
+ end
- def find_modifiers(comment, meth_obj)
- if comment.sub!(/:nodoc:\s*^\s*\*?\s*$/m, '') or
- comment.sub!(/\A\/\*\s*:nodoc:\s*\*\/\Z/, '')
- meth_obj.document_self = false
- end
- if comment.sub!(/call-seq:(.*?)^\s*\*?\s*$/m, '') or
- comment.sub!(/\A\/\*\s*call-seq:(.*?)\*\/\Z/, '')
- seq = $1
- seq.gsub!(/^\s*\*\s*/, '')
+ seq = comment[seq_start..seq_stop]
+ seq.gsub!(/^(\s*\*?\s*?)(\S|\n)/m, '\2')
+ comment.slice! all_start...all_stop
meth_obj.call_seq = seq
+ elsif comment.sub!(/\A\/\*\s*call-seq:(.*?)\*\/\Z/, '') then
+ meth_obj.call_seq = $1.strip
end
+
+ look_for_directives_in meth_obj, comment
end
- def find_override_comment(class_name, meth_name)
- name = Regexp.escape(meth_name)
- if @content =~ %r{Document-method:\s+#{class_name}(?:\.|::|#)#{name}\s*?\n((?>.*?\*/))}m then
+ ##
+ # Finds a <tt>Document-method</tt> override for +meth_obj+ on +class_name+
+
+ def find_override_comment class_name, meth_obj
+ name = Regexp.escape meth_obj.name
+ prefix = Regexp.escape meth_obj.name_prefix
+
+ if @content =~ %r%Document-method:\s+#{class_name}#{prefix}#{name}\s*?\n((?>.*?\*/))%m then
$1
- elsif @content =~ %r{Document-method:\s#{name}\s*?\n((?>.*?\*/))}m then
+ elsif @content =~ %r%Document-method:\s#{name}\s*?\n((?>.*?\*/))%m then
$1
end
end
- def handle_attr(var_name, attr_name, reader, writer)
+ ##
+ # Creates a new RDoc::Attr +attr_name+ on class +var_name+ that is either
+ # +read+, +write+ or both
+
+ def handle_attr(var_name, attr_name, read, write)
rw = ''
- if reader
- #@stats.num_methods += 1
- rw << 'R'
- end
- if writer
- #@stats.num_methods += 1
- rw << 'W'
- end
+ rw << 'R' if '1' == read
+ rw << 'W' if '1' == write
class_name = @known_classes[var_name]
return unless class_name
- class_obj = find_class(var_name, class_name)
+ class_obj = find_class var_name, class_name
- if class_obj
- comment = find_attr_comment(attr_name)
- unless comment.empty?
- comment = mangle_comment(comment)
- end
- att = RDoc::Attr.new '', attr_name, rw, comment
- class_obj.add_attribute(att)
- end
+ return unless class_obj
+
+ comment = find_attr_comment var_name, attr_name
+ comment = strip_stars comment
+
+ name = attr_name.gsub(/rb_intern\("([^"]+)"\)/, '\1')
+
+ attr = RDoc::Attr.new '', name, rw, comment
+
+ attr.record_location @top_level
+ class_obj.add_attribute attr
+ @stats.add_attribute attr
end
- def handle_class_module(var_name, class_mod, class_name, parent, in_module)
+ ##
+ # Creates a new RDoc::NormalClass or RDoc::NormalModule based on +type+
+ # named +class_name+ in +parent+ which was assigned to the C +var_name+.
+
+ def handle_class_module(var_name, type, class_name, parent, in_module)
parent_name = @known_classes[parent] || parent
- if in_module
+ if in_module then
enclosure = @classes[in_module] || @@enclosure_classes[in_module]
- unless enclosure
- if enclosure = @known_classes[in_module]
- handle_class_module(in_module, (/^rb_m/ =~ in_module ? "module" : "class"),
- enclosure, nil, nil)
- enclosure = @classes[in_module]
- end
+
+ if enclosure.nil? and enclosure = @known_classes[in_module] then
+ enc_type = /^rb_m/ =~ in_module ? "module" : "class"
+ handle_class_module in_module, enc_type, enclosure, nil, nil
+ enclosure = @classes[in_module]
end
- unless enclosure
- warn("Enclosing class/module '#{in_module}' for " +
- "#{class_mod} #{class_name} not known")
+
+ unless enclosure then
+ warn "Enclosing class/module '#{in_module}' for #{type} #{class_name} not known"
return
end
else
enclosure = @top_level
end
- if class_mod == "class" then
- full_name = enclosure.full_name.to_s + "::#{class_name}"
- if @content =~ %r{Document-class:\s+#{full_name}\s*<\s+([:,\w]+)} then
+ if type == "class" then
+ full_name = if RDoc::ClassModule === enclosure then
+ enclosure.full_name + "::#{class_name}"
+ else
+ class_name
+ end
+
+ if @content =~ %r%Document-class:\s+#{full_name}\s*<\s+([:,\w]+)% then
parent_name = $1
end
+
cm = enclosure.add_class RDoc::NormalClass, class_name, parent_name
- @stats.add_class cm
else
cm = enclosure.add_module RDoc::NormalModule, class_name
- @stats.add_module cm
end
- cm.record_location(enclosure.toplevel)
+ cm.record_location enclosure.top_level
+
+ find_class_comment cm.full_name, cm
+
+ case cm
+ when RDoc::NormalClass
+ @stats.add_class cm
+ when RDoc::NormalModule
+ @stats.add_module cm
+ end
- find_class_comment(cm.full_name, cm)
@classes[var_name] = cm
@@enclosure_classes[var_name] = cm
@known_classes[var_name] = cm.full_name
end
##
- # Adds constant comments. By providing some_value: at the start ofthe
- # comment you can override the C value of the comment to give a friendly
- # definition.
+ # Adds constants. By providing some_value: at the start of the comment you
+ # can override the C value of the comment to give a friendly definition.
#
# /* 300: The perfect score in bowling */
# rb_define_const(cFoo, "PERFECT", INT2FIX(300);
#
- # Will override +INT2FIX(300)+ with the value +300+ in the output RDoc.
- # Values may include quotes and escaped colons (\:).
+ # Will override <tt>INT2FIX(300)</tt> with the value +300+ in the output
+ # RDoc. Values may include quotes and escaped colons (\:).
def handle_constants(type, var_name, const_name, definition)
- #@stats.num_constants += 1
class_name = @known_classes[var_name]
return unless class_name
- class_obj = find_class(var_name, class_name)
+ class_obj = find_class var_name, class_name
- unless class_obj
- warn("Enclosing class/module '#{const_name}' for not known")
+ unless class_obj then
+ warn "Enclosing class/module #{const_name.inspect} not known"
return
end
- comment = find_const_comment(type, const_name)
+ comment = find_const_comment type, const_name, class_name
+ comment = strip_stars comment
+ comment = normalize_comment comment
# In the case of rb_define_const, the definition and comment are in
# "/* definition: comment */" form. The literal ':' and '\' characters
# can be escaped with a backslash.
if type.downcase == 'const' then
- elements = mangle_comment(comment).split(':')
- if elements.nil? or elements.empty? then
- con = RDoc::Constant.new(const_name, definition,
- mangle_comment(comment))
- else
- new_definition = elements[0..-2].join(':')
- if new_definition.empty? then # Default to literal C definition
- new_definition = definition
- else
- new_definition.gsub!("\:", ":")
- new_definition.gsub!("\\", '\\')
- end
- new_definition.sub!(/\A(\s+)/, '')
- new_comment = $1.nil? ? elements.last : "#{$1}#{elements.last.lstrip}"
- con = RDoc::Constant.new(const_name, new_definition,
- mangle_comment(new_comment))
- end
+ elements = comment.split ':'
+
+ if elements.nil? or elements.empty? then
+ con = RDoc::Constant.new const_name, definition, comment
+ else
+ new_definition = elements[0..-2].join(':')
+
+ if new_definition.empty? then # Default to literal C definition
+ new_definition = definition
+ else
+ new_definition.gsub!("\:", ":")
+ new_definition.gsub!("\\", '\\')
+ end
+
+ new_definition.sub!(/\A(\s+)/, '')
+
+ new_comment = if $1.nil? then
+ elements.last.lstrip
+ else
+ "#{$1}#{elements.last.lstrip}"
+ end
+
+ con = RDoc::Constant.new const_name, new_definition, new_comment
+ end
else
- con = RDoc::Constant.new const_name, definition, mangle_comment(comment)
+ con = RDoc::Constant.new const_name, definition, comment
end
- class_obj.add_constant(con)
+ con.record_location @top_level
+ @stats.add_constant con
+ class_obj.add_constant con
end
##
@@ -561,85 +817,220 @@ class RDoc::Parser::C < RDoc::Parser
body.gsub(/^#ifdef HAVE_PROTOTYPES.*?#else.*?\n(.*?)#endif.*?\n/m, '\1')
end
- def handle_method(type, var_name, meth_name, meth_body, param_count,
+ ##
+ # Adds an RDoc::AnyMethod +meth_name+ defined on a class or module assigned
+ # to +var_name+. +type+ is the type of method definition function used.
+ # +singleton_method+ and +module_function+ create a singleton method.
+
+ def handle_method(type, var_name, meth_name, function, param_count,
source_file = nil)
class_name = @known_classes[var_name]
+ singleton = @singleton_classes.key? var_name
return unless class_name
class_obj = find_class var_name, class_name
if class_obj then
- if meth_name == "initialize" then
- meth_name = "new"
- type = "singleton_method"
+ if meth_name == 'initialize' then
+ meth_name = 'new'
+ singleton = true
+ type = 'method' # force public
end
meth_obj = RDoc::AnyMethod.new '', meth_name
- meth_obj.singleton = %w[singleton_method module_function].include? type
-
- p_count = (Integer(param_count) rescue -1)
+ meth_obj.c_function = function
+ meth_obj.singleton =
+ singleton || %w[singleton_method module_function].include?(type)
- if p_count < 0
- meth_obj.params = "(...)"
- elsif p_count == 0
- meth_obj.params = "()"
- else
- meth_obj.params = "(" + (1..p_count).map{|i| "p#{i}"}.join(", ") + ")"
- end
+ p_count = Integer(param_count) rescue -1
if source_file then
- file_name = File.join(@file_dir, source_file)
- body = (@@known_bodies[source_file] ||= File.read(file_name))
+ file_name = File.join @file_dir, source_file
+
+ if File.exist? file_name then
+ file_content = (@@known_bodies[file_name] ||= File.read(file_name))
+ else
+ warn "unknown source #{source_file} for #{meth_name} in #{@file_name}"
+ end
else
- body = @content
+ file_content = @content
end
- if find_body(class_name, meth_body, meth_obj, body) and meth_obj.document_self then
+ body = find_body class_name, function, meth_obj, file_content
+
+ if body and meth_obj.document_self then
+ meth_obj.params = if p_count < -1 then # -2 is Array
+ '(*args)'
+ elsif p_count == -1 then # argc, argv
+ rb_scan_args body
+ else
+ "(#{(1..p_count).map { |i| "p#{i}" }.join ', '})"
+ end
+
+
+ meth_obj.record_location @top_level
class_obj.add_method meth_obj
@stats.add_method meth_obj
+ meth_obj.visibility = :private if 'private_method' == type
end
end
end
+ ##
+ # Registers a singleton class +sclass_var+ as a singleton of +class_var+
+
+ def handle_singleton sclass_var, class_var
+ class_name = @known_classes[class_var]
+
+ @known_classes[sclass_var] = class_name
+ @singleton_classes[sclass_var] = class_name
+ end
+
+ ##
+ # Normalizes tabs in +body+
+
def handle_tab_width(body)
if /\t/ =~ body
tab_width = @options.tab_width
body.split(/\n/).map do |line|
- 1 while line.gsub!(/\t+/) { ' ' * (tab_width*$&.length - $`.length % tab_width)} && $~ #`
+ 1 while line.gsub!(/\t+/) do
+ ' ' * (tab_width * $&.length - $`.length % tab_width)
+ end && $~
line
- end .join("\n")
+ end.join "\n"
else
body
end
end
##
- # Remove the /*'s and leading asterisks from C comments
+ # Look for directives in a normal comment block:
+ #
+ # /*
+ # * :title: My Awesome Project
+ # */
+ #
+ # This method modifies the +comment+
+
+ def look_for_directives_in context, comment
+ @preprocess.handle comment, context do |directive, param|
+ case directive
+ when 'main' then
+ @options.main_page = param
+ ''
+ when 'title' then
+ @options.default_title = param if @options.respond_to? :default_title=
+ ''
+ end
+ end
- def mangle_comment(comment)
- comment.sub!(%r{/\*+}) { " " * $&.length }
- comment.sub!(%r{\*+/}) { " " * $&.length }
- comment.gsub!(/^[ \t]*\*/m) { " " * $&.length }
comment
end
##
+ # Extracts parameters from the +method_body+ and returns a method
+ # parameter string. Follows 1.9.3dev's scan-arg-spec, see README.EXT
+
+ def rb_scan_args method_body
+ method_body =~ /rb_scan_args\((.*?)\)/m
+ return '(*args)' unless $1
+
+ $1.split(/,/)[2] =~ /"(.*?)"/ # format argument
+ format = $1.split(//)
+
+ lead = opt = trail = 0
+
+ if format.first =~ /\d/ then
+ lead = $&.to_i
+ format.shift
+ if format.first =~ /\d/ then
+ opt = $&.to_i
+ format.shift
+ if format.first =~ /\d/ then
+ trail = $&.to_i
+ format.shift
+ block_arg = true
+ end
+ end
+ end
+
+ if format.first == '*' and not block_arg then
+ var = true
+ format.shift
+ if format.first =~ /\d/ then
+ trail = $&.to_i
+ format.shift
+ end
+ end
+
+ if format.first == ':' then
+ hash = true
+ format.shift
+ end
+
+ if format.first == '&' then
+ block = true
+ format.shift
+ end
+
+ # if the format string is not empty there's a bug in the C code, ignore it
+
+ args = []
+ position = 1
+
+ (1...(position + lead)).each do |index|
+ args << "p#{index}"
+ end
+
+ position += lead
+
+ (position...(position + opt)).each do |index|
+ args << "p#{index} = v#{index}"
+ end
+
+ position += opt
+
+ if var then
+ args << '*args'
+ position += 1
+ end
+
+ (position...(position + trail)).each do |index|
+ args << "p#{index}"
+ end
+
+ position += trail
+
+ if hash then
+ args << "p#{position} = {}"
+ position += 1
+ end
+
+ args << '&block' if block
+
+ "(#{args.join ', '})"
+ end
+
+ ##
# Removes lines that are commented out that might otherwise get picked up
# when scanning for classes and methods
def remove_commented_out_lines
- @content.gsub!(%r{//.*rb_define_}, '//')
+ @content.gsub!(%r%//.*rb_define_%, '//')
end
+ ##
+ # Removes private comments from +comment+
+
def remove_private_comments(comment)
- comment.gsub!(/\/?\*--\n(.*?)\/?\*\+\+/m, '')
- comment.sub!(/\/?\*--\n.*/m, '')
+ comment.gsub!(/\/?\*--\n(.*?)\/?\*\+\+/m, '')
+ comment.sub!(/\/?\*--\n.*/m, '')
end
##
- # Extract the classes/modules and methods from a C file and return the
- # corresponding top-level object
+ # Extracts the classes, modules, methods, attributes, constants and aliases
+ # from a C file and returns an RDoc::TopLevel for this file
def scan
remove_commented_out_lines
@@ -648,14 +1039,9 @@ class RDoc::Parser::C < RDoc::Parser
do_methods
do_includes
do_aliases
+ do_attrs
@top_level
end
- def warn(msg)
- $stderr.puts
- $stderr.puts msg
- $stderr.flush
- end
-
end
diff --git a/lib/rdoc/parser/f95.rb b/lib/rdoc/parser/f95.rb
deleted file mode 100644
index 0959db4936..0000000000
--- a/lib/rdoc/parser/f95.rb
+++ /dev/null
@@ -1,1835 +0,0 @@
-require 'rdoc/parser'
-
-##
-# = Fortran95 RDoc Parser
-#
-# == Overview
-#
-# This parser parses Fortran95 files with suffixes "f90", "F90", "f95" and
-# "F95". Fortran95 files are expected to be conformed to Fortran95 standards.
-#
-# == Rules
-#
-# Fundamental rules are same as that of the Ruby parser. But comment markers
-# are '!' not '#'.
-#
-# === Correspondence between RDoc documentation and Fortran95 programs
-#
-# F95 parses main programs, modules, subroutines, functions, derived-types,
-# public variables, public constants, defined operators and defined
-# assignments. These components are described in items of RDoc documentation,
-# as follows.
-#
-# Files :: Files (same as Ruby)
-# Classes:: Modules
-# Methods:: Subroutines, functions, variables, constants, derived-types,
-# defined operators, defined assignments
-# Required files:: Files in which imported modules, external subroutines and
-# external functions are defined.
-# Included Modules:: List of imported modules
-# Attributes:: List of derived-types, List of imported modules all of whose
-# components are published again
-#
-# Components listed in 'Methods' (subroutines, functions, ...) defined in
-# modules are described in the item of 'Classes'. On the other hand,
-# components defined in main programs or as external procedures are described
-# in the item of 'Files'.
-#
-# === Components parsed by default
-#
-# By default, documentation on public components (subroutines, functions,
-# variables, constants, derived-types, defined operators, defined assignments)
-# are generated.
-#
-# With "--all" option, documentation on all components are generated (almost
-# same as the Ruby parser).
-#
-# === Information parsed automatically
-#
-# The following information is automatically parsed.
-#
-# * Types of arguments
-# * Types of variables and constants
-# * Types of variables in the derived types, and initial values
-# * NAMELISTs and types of variables in them, and initial values
-#
-# Aliases by interface statement are described in the item of 'Methods'.
-#
-# Components which are imported from other modules and published again are
-# described in the item of 'Methods'.
-#
-# === Format of comment blocks
-#
-# Comment blocks should be written as follows.
-#
-# Comment blocks are considered to be ended when the line without '!' appears.
-#
-# The indentation is not necessary.
-#
-# ! (Top of file)
-# !
-# ! Comment blocks for the files.
-# !
-# !--
-# ! The comment described in the part enclosed by
-# ! "!--" and "!++" is ignored.
-# !++
-# !
-# module hogehoge
-# !
-# ! Comment blocks for the modules (or the programs).
-# !
-#
-# private
-#
-# logical :: a ! a private variable
-# real, public :: b ! a public variable
-# integer, parameter :: c = 0 ! a public constant
-#
-# public :: c
-# public :: MULTI_ARRAY
-# public :: hoge, foo
-#
-# type MULTI_ARRAY
-# !
-# ! Comment blocks for the derived-types.
-# !
-# real, pointer :: var(:) =>null() ! Comments block for the variables.
-# integer :: num = 0
-# end type MULTI_ARRAY
-#
-# contains
-#
-# subroutine hoge( in, & ! Comment blocks between continuation lines are ignored.
-# & out )
-# !
-# ! Comment blocks for the subroutines or functions
-# !
-# character(*),intent(in):: in ! Comment blocks for the arguments.
-# character(*),intent(out),allocatable,target :: in
-# ! Comment blocks can be
-# ! written under Fortran statements.
-#
-# character(32) :: file ! This comment parsed as a variable in below NAMELIST.
-# integer :: id
-#
-# namelist /varinfo_nml/ file, id
-# !
-# ! Comment blocks for the NAMELISTs.
-# ! Information about variables are described above.
-# !
-#
-# ....
-#
-# end subroutine hoge
-#
-# integer function foo( in )
-# !
-# ! This part is considered as comment block.
-#
-# ! Comment blocks under blank lines are ignored.
-# !
-# integer, intent(in):: inA ! This part is considered as comment block.
-#
-# ! This part is ignored.
-#
-# end function foo
-#
-# subroutine hide( in, &
-# & out ) !:nodoc:
-# !
-# ! If "!:nodoc:" is described at end-of-line in subroutine
-# ! statement as above, the subroutine is ignored.
-# ! This assignment can be used to modules, subroutines,
-# ! functions, variables, constants, derived-types,
-# ! defined operators, defined assignments,
-# ! list of imported modules ("use" statement).
-# !
-#
-# ....
-#
-# end subroutine hide
-#
-# end module hogehoge
-
-class RDoc::Parser::F95 < RDoc::Parser
-
- parse_files_matching(/\.((f|F)9(0|5)|F)$/)
-
- class Token
-
- NO_TEXT = "??".freeze
-
- def initialize(line_no, char_no)
- @line_no = line_no
- @char_no = char_no
- @text = NO_TEXT
- end
- # Because we're used in contexts that expect to return a token,
- # we set the text string and then return ourselves
- def set_text(text)
- @text = text
- self
- end
-
- attr_reader :line_no, :char_no, :text
-
- end
-
- @@external_aliases = []
- @@public_methods = []
-
- ##
- # "false":: Comments are below source code
- # "true" :: Comments are upper source code
-
- COMMENTS_ARE_UPPER = false
-
- ##
- # Internal alias message
-
- INTERNAL_ALIAS_MES = "Alias for"
-
- ##
- # External alias message
-
- EXTERNAL_ALIAS_MES = "The entity is"
-
- ##
- # Define code constructs
-
- def scan
- # remove private comment
- remaining_code = remove_private_comments(@content)
-
- # continuation lines are united to one line
- remaining_code = united_to_one_line(remaining_code)
-
- # semicolons are replaced to line feed
- remaining_code = semicolon_to_linefeed(remaining_code)
-
- # collect comment for file entity
- whole_comment, remaining_code = collect_first_comment(remaining_code)
- @top_level.comment = whole_comment
-
- # String "remaining_code" is converted to Array "remaining_lines"
- remaining_lines = remaining_code.split("\n")
-
- # "module" or "program" parts are parsed (new)
- #
- level_depth = 0
- block_searching_flag = nil
- block_searching_lines = []
- pre_comment = []
- module_program_trailing = ""
- module_program_name = ""
- other_block_level_depth = 0
- other_block_searching_flag = nil
- remaining_lines.collect!{|line|
- if !block_searching_flag && !other_block_searching_flag
- if line =~ /^\s*?module\s+(\w+)\s*?(!.*?)?$/i
- block_searching_flag = :module
- block_searching_lines << line
- module_program_name = $1
- module_program_trailing = find_comments($2)
- next false
- elsif line =~ /^\s*?program\s+(\w+)\s*?(!.*?)?$/i ||
- line =~ /^\s*?\w/ && !block_start?(line)
- block_searching_flag = :program
- block_searching_lines << line
- module_program_name = $1 || ""
- module_program_trailing = find_comments($2)
- next false
-
- elsif block_start?(line)
- other_block_searching_flag = true
- next line
-
- elsif line =~ /^\s*?!\s?(.*)/
- pre_comment << line
- next line
- else
- pre_comment = []
- next line
- end
- elsif other_block_searching_flag
- other_block_level_depth += 1 if block_start?(line)
- other_block_level_depth -= 1 if block_end?(line)
- if other_block_level_depth < 0
- other_block_level_depth = 0
- other_block_searching_flag = nil
- end
- next line
- end
-
- block_searching_lines << line
- level_depth += 1 if block_start?(line)
- level_depth -= 1 if block_end?(line)
- if level_depth >= 0
- next false
- end
-
- # "module_program_code" is formatted.
- # ":nodoc:" flag is checked.
- #
- module_program_code = block_searching_lines.join("\n")
- module_program_code = remove_empty_head_lines(module_program_code)
- if module_program_trailing =~ /^:nodoc:/
- # next loop to search next block
- level_depth = 0
- block_searching_flag = false
- block_searching_lines = []
- pre_comment = []
- next false
- end
-
- # NormalClass is created, and added to @top_level
- #
- if block_searching_flag == :module
- module_name = module_program_name
- module_code = module_program_code
- module_trailing = module_program_trailing
-
- f9x_module = @top_level.add_module NormalClass, module_name
- f9x_module.record_location @top_level
-
- @stats.add_module f9x_module
-
- f9x_comment = COMMENTS_ARE_UPPER ?
- find_comments(pre_comment.join("\n")) + "\n" + module_trailing :
- module_trailing + "\n" + find_comments(module_code.sub(/^.*$\n/i, ''))
- f9x_module.comment = f9x_comment
- parse_program_or_module(f9x_module, module_code)
-
- TopLevel.all_files.each do |name, toplevel|
- if toplevel.include_includes?(module_name, @options.ignore_case)
- if !toplevel.include_requires?(@file_name, @options.ignore_case)
- toplevel.add_require(Require.new(@file_name, ""))
- end
- end
- toplevel.each_classmodule{|m|
- if m.include_includes?(module_name, @options.ignore_case)
- if !m.include_requires?(@file_name, @options.ignore_case)
- m.add_require(Require.new(@file_name, ""))
- end
- end
- }
- end
- elsif block_searching_flag == :program
- program_name = module_program_name
- program_code = module_program_code
- program_trailing = module_program_trailing
- # progress "p" # HACK what stats thingy does this correspond to?
- program_comment = COMMENTS_ARE_UPPER ?
- find_comments(pre_comment.join("\n")) + "\n" + program_trailing :
- program_trailing + "\n" + find_comments(program_code.sub(/^.*$\n/i, ''))
- program_comment = "\n\n= <i>Program</i> <tt>#{program_name}</tt>\n\n" \
- + program_comment
- @top_level.comment << program_comment
- parse_program_or_module(@top_level, program_code, :private)
- end
-
- # next loop to search next block
- level_depth = 0
- block_searching_flag = false
- block_searching_lines = []
- pre_comment = []
- next false
- }
-
- remaining_lines.delete_if{ |line|
- line == false
- }
-
- # External subprograms and functions are parsed
- #
- parse_program_or_module(@top_level, remaining_lines.join("\n"),
- :public, true)
-
- @top_level
- end # End of scan
-
- private
-
- def parse_program_or_module(container, code,
- visibility=:public, external=nil)
- return unless container
- return unless code
- remaining_lines = code.split("\n")
- remaining_code = "#{code}"
-
- #
- # Parse variables before "contains" in module
- #
- level_depth = 0
- before_contains_lines = []
- before_contains_code = nil
- before_contains_flag = nil
- remaining_lines.each{ |line|
- if !before_contains_flag
- if line =~ /^\s*?module\s+\w+\s*?(!.*?)?$/i
- before_contains_flag = true
- end
- else
- break if line =~ /^\s*?contains\s*?(!.*?)?$/i
- level_depth += 1 if block_start?(line)
- level_depth -= 1 if block_end?(line)
- break if level_depth < 0
- before_contains_lines << line
- end
- }
- before_contains_code = before_contains_lines.join("\n")
- if before_contains_code
- before_contains_code.gsub!(/^\s*?interface\s+.*?\s+end\s+interface.*?$/im, "")
- before_contains_code.gsub!(/^\s*?type[\s\,]+.*?\s+end\s+type.*?$/im, "")
- end
-
- #
- # Parse global "use"
- #
- use_check_code = "#{before_contains_code}"
- cascaded_modules_list = []
- while use_check_code =~ /^\s*?use\s+(\w+)(.*?)(!.*?)?$/i
- use_check_code = $~.pre_match
- use_check_code << $~.post_match
- used_mod_name = $1.strip.chomp
- used_list = $2 || ""
- used_trailing = $3 || ""
- next if used_trailing =~ /!:nodoc:/
- if !container.include_includes?(used_mod_name, @options.ignore_case)
- # progress "." # HACK what stats thingy does this correspond to?
- container.add_include Include.new(used_mod_name, "")
- end
- if ! (used_list =~ /\,\s*?only\s*?:/i )
- cascaded_modules_list << "\#" + used_mod_name
- end
- end
-
- #
- # Parse public and private, and store information.
- # This information is used when "add_method" and
- # "set_visibility_for" are called.
- #
- visibility_default, visibility_info =
- parse_visibility(remaining_lines.join("\n"), visibility, container)
- @@public_methods.concat visibility_info
- if visibility_default == :public
- if !cascaded_modules_list.empty?
- cascaded_modules =
- Attr.new("Cascaded Modules",
- "Imported modules all of whose components are published again",
- "",
- cascaded_modules_list.join(", "))
- container.add_attribute(cascaded_modules)
- end
- end
-
- #
- # Check rename elements
- #
- use_check_code = "#{before_contains_code}"
- while use_check_code =~ /^\s*?use\s+(\w+)\s*?\,(.+)$/i
- use_check_code = $~.pre_match
- use_check_code << $~.post_match
- used_mod_name = $1.strip.chomp
- used_elements = $2.sub(/\s*?only\s*?:\s*?/i, '')
- used_elements.split(",").each{ |used|
- if /\s*?(\w+)\s*?=>\s*?(\w+)\s*?/ =~ used
- local = $1
- org = $2
- @@public_methods.collect!{ |pub_meth|
- if local == pub_meth["name"] ||
- local.upcase == pub_meth["name"].upcase &&
- @options.ignore_case
- pub_meth["name"] = org
- pub_meth["local_name"] = local
- end
- pub_meth
- }
- end
- }
- end
-
- #
- # Parse private "use"
- #
- use_check_code = remaining_lines.join("\n")
- while use_check_code =~ /^\s*?use\s+(\w+)(.*?)(!.*?)?$/i
- use_check_code = $~.pre_match
- use_check_code << $~.post_match
- used_mod_name = $1.strip.chomp
- used_trailing = $3 || ""
- next if used_trailing =~ /!:nodoc:/
- if !container.include_includes?(used_mod_name, @options.ignore_case)
- # progress "." # HACK what stats thingy does this correspond to?
- container.add_include Include.new(used_mod_name, "")
- end
- end
-
- container.each_includes{ |inc|
- TopLevel.all_files.each do |name, toplevel|
- indicated_mod = toplevel.find_symbol(inc.name,
- nil, @options.ignore_case)
- if indicated_mod
- indicated_name = indicated_mod.parent.file_relative_name
- if !container.include_requires?(indicated_name, @options.ignore_case)
- container.add_require(Require.new(indicated_name, ""))
- end
- break
- end
- end
- }
-
- #
- # Parse derived-types definitions
- #
- derived_types_comment = ""
- remaining_code = remaining_lines.join("\n")
- while remaining_code =~ /^\s*?
- type[\s\,]+(public|private)?\s*?(::)?\s*?
- (\w+)\s*?(!.*?)?$
- (.*?)
- ^\s*?end\s+type.*?$
- /imx
- remaining_code = $~.pre_match
- remaining_code << $~.post_match
- typename = $3.chomp.strip
- type_elements = $5 || ""
- type_code = remove_empty_head_lines($&)
- type_trailing = find_comments($4)
- next if type_trailing =~ /^:nodoc:/
- type_visibility = $1
- type_comment = COMMENTS_ARE_UPPER ?
- find_comments($~.pre_match) + "\n" + type_trailing :
- type_trailing + "\n" + find_comments(type_code.sub(/^.*$\n/i, ''))
- type_element_visibility_public = true
- type_code.split("\n").each{ |line|
- if /^\s*?private\s*?$/ =~ line
- type_element_visibility_public = nil
- break
- end
- } if type_code
-
- args_comment = ""
- type_args_info = nil
-
- if @options.show_all
- args_comment = find_arguments(nil, type_code, true)
- else
- type_public_args_list = []
- type_args_info = definition_info(type_code)
- type_args_info.each{ |arg|
- arg_is_public = type_element_visibility_public
- arg_is_public = true if arg.include_attr?("public")
- arg_is_public = nil if arg.include_attr?("private")
- type_public_args_list << arg.varname if arg_is_public
- }
- args_comment = find_arguments(type_public_args_list, type_code)
- end
-
- type = AnyMethod.new("type #{typename}", typename)
- type.singleton = false
- type.params = ""
- type.comment = "<b><em> Derived Type </em></b> :: <tt></tt>\n"
- type.comment << args_comment if args_comment
- type.comment << type_comment if type_comment
-
- @stats.add_method type
-
- container.add_method type
-
- set_visibility(container, typename, visibility_default, @@public_methods)
-
- if type_visibility
- type_visibility.gsub!(/\s/,'')
- type_visibility.gsub!(/\,/,'')
- type_visibility.gsub!(/:/,'')
- type_visibility.downcase!
- if type_visibility == "public"
- container.set_visibility_for([typename], :public)
- elsif type_visibility == "private"
- container.set_visibility_for([typename], :private)
- end
- end
-
- check_public_methods(type, container.name)
-
- if @options.show_all
- derived_types_comment << ", " unless derived_types_comment.empty?
- derived_types_comment << typename
- else
- if type.visibility == :public
- derived_types_comment << ", " unless derived_types_comment.empty?
- derived_types_comment << typename
- end
- end
-
- end
-
- if !derived_types_comment.empty?
- derived_types_table =
- Attr.new("Derived Types", "Derived_Types", "",
- derived_types_comment)
- container.add_attribute(derived_types_table)
- end
-
- #
- # move interface scope
- #
- interface_code = ""
- while remaining_code =~ /^\s*?
- interface(
- \s+\w+ |
- \s+operator\s*?\(.*?\) |
- \s+assignment\s*?\(\s*?=\s*?\)
- )?\s*?$
- (.*?)
- ^\s*?end\s+interface.*?$
- /imx
- interface_code << remove_empty_head_lines($&) + "\n"
- remaining_code = $~.pre_match
- remaining_code << $~.post_match
- end
-
- #
- # Parse global constants or variables in modules
- #
- const_var_defs = definition_info(before_contains_code)
- const_var_defs.each{|defitem|
- next if defitem.nodoc
- const_or_var_type = "Variable"
- const_or_var_progress = "v"
- if defitem.include_attr?("parameter")
- const_or_var_type = "Constant"
- const_or_var_progress = "c"
- end
- const_or_var = AnyMethod.new(const_or_var_type, defitem.varname)
- const_or_var.singleton = false
- const_or_var.params = ""
- self_comment = find_arguments([defitem.varname], before_contains_code)
- const_or_var.comment = "<b><em>" + const_or_var_type + "</em></b> :: <tt></tt>\n"
- const_or_var.comment << self_comment if self_comment
-
- @stats.add_method const_or_var_progress
-
- container.add_method const_or_var
-
- set_visibility(container, defitem.varname, visibility_default, @@public_methods)
-
- if defitem.include_attr?("public")
- container.set_visibility_for([defitem.varname], :public)
- elsif defitem.include_attr?("private")
- container.set_visibility_for([defitem.varname], :private)
- end
-
- check_public_methods(const_or_var, container.name)
-
- } if const_var_defs
-
- remaining_lines = remaining_code.split("\n")
-
- # "subroutine" or "function" parts are parsed (new)
- #
- level_depth = 0
- block_searching_flag = nil
- block_searching_lines = []
- pre_comment = []
- procedure_trailing = ""
- procedure_name = ""
- procedure_params = ""
- procedure_prefix = ""
- procedure_result_arg = ""
- procedure_type = ""
- contains_lines = []
- contains_flag = nil
- remaining_lines.collect!{|line|
- if !block_searching_flag
- # subroutine
- if line =~ /^\s*?
- (recursive|pure|elemental)?\s*?
- subroutine\s+(\w+)\s*?(\(.*?\))?\s*?(!.*?)?$
- /ix
- block_searching_flag = :subroutine
- block_searching_lines << line
-
- procedure_name = $2.chomp.strip
- procedure_params = $3 || ""
- procedure_prefix = $1 || ""
- procedure_trailing = $4 || "!"
- next false
-
- # function
- elsif line =~ /^\s*?
- (recursive|pure|elemental)?\s*?
- (
- character\s*?(\([\w\s\=\(\)\*]+?\))?\s+
- | type\s*?\([\w\s]+?\)\s+
- | integer\s*?(\([\w\s\=\(\)\*]+?\))?\s+
- | real\s*?(\([\w\s\=\(\)\*]+?\))?\s+
- | double\s+precision\s+
- | logical\s*?(\([\w\s\=\(\)\*]+?\))?\s+
- | complex\s*?(\([\w\s\=\(\)\*]+?\))?\s+
- )?
- function\s+(\w+)\s*?
- (\(.*?\))?(\s+result\((.*?)\))?\s*?(!.*?)?$
- /ix
- block_searching_flag = :function
- block_searching_lines << line
-
- procedure_prefix = $1 || ""
- procedure_type = $2 ? $2.chomp.strip : nil
- procedure_name = $8.chomp.strip
- procedure_params = $9 || ""
- procedure_result_arg = $11 ? $11.chomp.strip : procedure_name
- procedure_trailing = $12 || "!"
- next false
- elsif line =~ /^\s*?!\s?(.*)/
- pre_comment << line
- next line
- else
- pre_comment = []
- next line
- end
- end
- contains_flag = true if line =~ /^\s*?contains\s*?(!.*?)?$/
- block_searching_lines << line
- contains_lines << line if contains_flag
-
- level_depth += 1 if block_start?(line)
- level_depth -= 1 if block_end?(line)
- if level_depth >= 0
- next false
- end
-
- # "procedure_code" is formatted.
- # ":nodoc:" flag is checked.
- #
- procedure_code = block_searching_lines.join("\n")
- procedure_code = remove_empty_head_lines(procedure_code)
- if procedure_trailing =~ /^!:nodoc:/
- # next loop to search next block
- level_depth = 0
- block_searching_flag = nil
- block_searching_lines = []
- pre_comment = []
- procedure_trailing = ""
- procedure_name = ""
- procedure_params = ""
- procedure_prefix = ""
- procedure_result_arg = ""
- procedure_type = ""
- contains_lines = []
- contains_flag = nil
- next false
- end
-
- # AnyMethod is created, and added to container
- #
- subroutine_function = nil
- if block_searching_flag == :subroutine
- subroutine_prefix = procedure_prefix
- subroutine_name = procedure_name
- subroutine_params = procedure_params
- subroutine_trailing = procedure_trailing
- subroutine_code = procedure_code
-
- subroutine_comment = COMMENTS_ARE_UPPER ?
- pre_comment.join("\n") + "\n" + subroutine_trailing :
- subroutine_trailing + "\n" + subroutine_code.sub(/^.*$\n/i, '')
- subroutine = AnyMethod.new("subroutine", subroutine_name)
- parse_subprogram(subroutine, subroutine_params,
- subroutine_comment, subroutine_code,
- before_contains_code, nil, subroutine_prefix)
-
- @stats.add_method subroutine
-
- container.add_method subroutine
- subroutine_function = subroutine
-
- elsif block_searching_flag == :function
- function_prefix = procedure_prefix
- function_type = procedure_type
- function_name = procedure_name
- function_params_org = procedure_params
- function_result_arg = procedure_result_arg
- function_trailing = procedure_trailing
- function_code_org = procedure_code
-
- function_comment = COMMENTS_ARE_UPPER ?
- pre_comment.join("\n") + "\n" + function_trailing :
- function_trailing + "\n " + function_code_org.sub(/^.*$\n/i, '')
-
- function_code = "#{function_code_org}"
- if function_type
- function_code << "\n" + function_type + " :: " + function_result_arg
- end
-
- function_params =
- function_params_org.sub(/^\(/, "\(#{function_result_arg}, ")
-
- function = AnyMethod.new("function", function_name)
- parse_subprogram(function, function_params,
- function_comment, function_code,
- before_contains_code, true, function_prefix)
-
- # Specific modification due to function
- function.params.sub!(/\(\s*?#{function_result_arg}\s*?,\s*?/, "\( ")
- function.params << " result(" + function_result_arg + ")"
- function.start_collecting_tokens
- function.add_token Token.new(1,1).set_text(function_code_org)
-
- @stats.add_method function
-
- container.add_method function
- subroutine_function = function
-
- end
-
- # The visibility of procedure is specified
- #
- set_visibility(container, procedure_name,
- visibility_default, @@public_methods)
-
- # The alias for this procedure from external modules
- #
- check_external_aliases(procedure_name,
- subroutine_function.params,
- subroutine_function.comment, subroutine_function) if external
- check_public_methods(subroutine_function, container.name)
-
-
- # contains_lines are parsed as private procedures
- if contains_flag
- parse_program_or_module(container,
- contains_lines.join("\n"), :private)
- end
-
- # next loop to search next block
- level_depth = 0
- block_searching_flag = nil
- block_searching_lines = []
- pre_comment = []
- procedure_trailing = ""
- procedure_name = ""
- procedure_params = ""
- procedure_prefix = ""
- procedure_result_arg = ""
- contains_lines = []
- contains_flag = nil
- next false
- } # End of remaining_lines.collect!{|line|
-
- # Array remains_lines is converted to String remains_code again
- #
- remaining_code = remaining_lines.join("\n")
-
- #
- # Parse interface
- #
- interface_scope = false
- generic_name = ""
- interface_code.split("\n").each{ |line|
- if /^\s*?
- interface(
- \s+\w+|
- \s+operator\s*?\(.*?\)|
- \s+assignment\s*?\(\s*?=\s*?\)
- )?
- \s*?(!.*?)?$
- /ix =~ line
- generic_name = $1 ? $1.strip.chomp : nil
- interface_trailing = $2 || "!"
- interface_scope = true
- interface_scope = false if interface_trailing =~ /!:nodoc:/
-# if generic_name =~ /operator\s*?\((.*?)\)/i
-# operator_name = $1
-# if operator_name && !operator_name.empty?
-# generic_name = "#{operator_name}"
-# end
-# end
-# if generic_name =~ /assignment\s*?\((.*?)\)/i
-# assignment_name = $1
-# if assignment_name && !assignment_name.empty?
-# generic_name = "#{assignment_name}"
-# end
-# end
- end
- if /^\s*?end\s+interface/i =~ line
- interface_scope = false
- generic_name = nil
- end
- # internal alias
- if interface_scope && /^\s*?module\s+procedure\s+(.*?)(!.*?)?$/i =~ line
- procedures = $1.strip.chomp
- procedures_trailing = $2 || "!"
- next if procedures_trailing =~ /!:nodoc:/
- procedures.split(",").each{ |proc|
- proc.strip!
- proc.chomp!
- next if generic_name == proc || !generic_name
- old_meth = container.find_symbol(proc, nil, @options.ignore_case)
- next if !old_meth
- nolink = old_meth.visibility == :private ? true : nil
- nolink = nil if @options.show_all
- new_meth =
- initialize_external_method(generic_name, proc,
- old_meth.params, nil,
- old_meth.comment,
- old_meth.clone.token_stream[0].text,
- true, nolink)
- new_meth.singleton = old_meth.singleton
-
- @stats.add_method new_meth
-
- container.add_method new_meth
-
- set_visibility(container, generic_name, visibility_default, @@public_methods)
-
- check_public_methods(new_meth, container.name)
-
- }
- end
-
- # external aliases
- if interface_scope
- # subroutine
- proc = nil
- params = nil
- procedures_trailing = nil
- if line =~ /^\s*?
- (recursive|pure|elemental)?\s*?
- subroutine\s+(\w+)\s*?(\(.*?\))?\s*?(!.*?)?$
- /ix
- proc = $2.chomp.strip
- generic_name = proc unless generic_name
- params = $3 || ""
- procedures_trailing = $4 || "!"
-
- # function
- elsif line =~ /^\s*?
- (recursive|pure|elemental)?\s*?
- (
- character\s*?(\([\w\s\=\(\)\*]+?\))?\s+
- | type\s*?\([\w\s]+?\)\s+
- | integer\s*?(\([\w\s\=\(\)\*]+?\))?\s+
- | real\s*?(\([\w\s\=\(\)\*]+?\))?\s+
- | double\s+precision\s+
- | logical\s*?(\([\w\s\=\(\)\*]+?\))?\s+
- | complex\s*?(\([\w\s\=\(\)\*]+?\))?\s+
- )?
- function\s+(\w+)\s*?
- (\(.*?\))?(\s+result\((.*?)\))?\s*?(!.*?)?$
- /ix
- proc = $8.chomp.strip
- generic_name = proc unless generic_name
- params = $9 || ""
- procedures_trailing = $12 || "!"
- else
- next
- end
- next if procedures_trailing =~ /!:nodoc:/
- indicated_method = nil
- indicated_file = nil
- TopLevel.all_files.each do |name, toplevel|
- indicated_method = toplevel.find_local_symbol(proc, @options.ignore_case)
- indicated_file = name
- break if indicated_method
- end
-
- if indicated_method
- external_method =
- initialize_external_method(generic_name, proc,
- indicated_method.params,
- indicated_file,
- indicated_method.comment)
-
- @stats.add_method external_method
-
- container.add_method external_method
- set_visibility(container, generic_name, visibility_default, @@public_methods)
- if !container.include_requires?(indicated_file, @options.ignore_case)
- container.add_require(Require.new(indicated_file, ""))
- end
- check_public_methods(external_method, container.name)
-
- else
- @@external_aliases << {
- "new_name" => generic_name,
- "old_name" => proc,
- "file_or_module" => container,
- "visibility" => find_visibility(container, generic_name, @@public_methods) || visibility_default
- }
- end
- end
-
- } if interface_code # End of interface_code.split("\n").each ...
-
- #
- # Already imported methods are removed from @@public_methods.
- # Remainders are assumed to be imported from other modules.
- #
- @@public_methods.delete_if{ |method| method["entity_is_discovered"]}
-
- @@public_methods.each{ |pub_meth|
- next unless pub_meth["file_or_module"].name == container.name
- pub_meth["used_modules"].each{ |used_mod|
- TopLevel.all_classes_and_modules.each{ |modules|
- if modules.name == used_mod ||
- modules.name.upcase == used_mod.upcase &&
- @options.ignore_case
- modules.method_list.each{ |meth|
- if meth.name == pub_meth["name"] ||
- meth.name.upcase == pub_meth["name"].upcase &&
- @options.ignore_case
- new_meth = initialize_public_method(meth,
- modules.name)
- if pub_meth["local_name"]
- new_meth.name = pub_meth["local_name"]
- end
-
- @stats.add_method new_meth
-
- container.add_method new_meth
- end
- }
- end
- }
- }
- }
-
- container
- end # End of parse_program_or_module
-
- ##
- # Parse arguments, comment, code of subroutine and function. Return
- # AnyMethod object.
-
- def parse_subprogram(subprogram, params, comment, code,
- before_contains=nil, function=nil, prefix=nil)
- subprogram.singleton = false
- prefix = "" if !prefix
- arguments = params.sub(/\(/, "").sub(/\)/, "").split(",") if params
- args_comment, params_opt =
- find_arguments(arguments, code.sub(/^s*?contains\s*?(!.*?)?$.*/im, ""),
- nil, nil, true)
- params_opt = "( " + params_opt + " ) " if params_opt
- subprogram.params = params_opt || ""
- namelist_comment = find_namelists(code, before_contains)
-
- block_comment = find_comments comment
- if function
- subprogram.comment = "<b><em> Function </em></b> :: <em>#{prefix}</em>\n"
- else
- subprogram.comment = "<b><em> Subroutine </em></b> :: <em>#{prefix}</em>\n"
- end
- subprogram.comment << args_comment if args_comment
- subprogram.comment << block_comment if block_comment
- subprogram.comment << namelist_comment if namelist_comment
-
- # For output source code
- subprogram.start_collecting_tokens
- subprogram.add_token Token.new(1,1).set_text(code)
-
- subprogram
- end
-
- ##
- # Collect comment for file entity
-
- def collect_first_comment(body)
- comment = ""
- not_comment = ""
- comment_start = false
- comment_end = false
- body.split("\n").each{ |line|
- if comment_end
- not_comment << line
- not_comment << "\n"
- elsif /^\s*?!\s?(.*)$/i =~ line
- comment_start = true
- comment << $1
- comment << "\n"
- elsif /^\s*?$/i =~ line
- comment_end = true if comment_start && COMMENTS_ARE_UPPER
- else
- comment_end = true
- not_comment << line
- not_comment << "\n"
- end
- }
- return comment, not_comment
- end
-
-
- ##
- # Return comments of definitions of arguments
- #
- # If "all" argument is true, information of all arguments are returned.
- #
- # If "modified_params" is true, list of arguments are decorated, for
- # example, optional arguments are parenthetic as "[arg]".
-
- def find_arguments(args, text, all=nil, indent=nil, modified_params=nil)
- return unless args || all
- indent = "" unless indent
- args = ["all"] if all
- params = "" if modified_params
- comma = ""
- return unless text
- args_rdocforms = "\n"
- remaining_lines = "#{text}"
- definitions = definition_info(remaining_lines)
- args.each{ |arg|
- arg.strip!
- arg.chomp!
- definitions.each { |defitem|
- if arg == defitem.varname.strip.chomp || all
- args_rdocforms << <<-"EOF"
-
-#{indent}<tt><b>#{defitem.varname.chomp.strip}#{defitem.arraysuffix}</b> #{defitem.inivalue}</tt> ::
-#{indent} <tt>#{defitem.types.chomp.strip}</tt>
-EOF
- if !defitem.comment.chomp.strip.empty?
- comment = ""
- defitem.comment.split("\n").each{ |line|
- comment << " " + line + "\n"
- }
- args_rdocforms << <<-"EOF"
-
-#{indent} <tt></tt> ::
-#{indent} <tt></tt>
-#{indent} #{comment.chomp.strip}
-EOF
- end
-
- if modified_params
- if defitem.include_attr?("optional")
- params << "#{comma}[#{arg}]"
- else
- params << "#{comma}#{arg}"
- end
- comma = ", "
- end
- end
- }
- }
- if modified_params
- return args_rdocforms, params
- else
- return args_rdocforms
- end
- end
-
- ##
- # Return comments of definitions of namelists
-
- def find_namelists(text, before_contains=nil)
- return nil if !text
- result = ""
- lines = "#{text}"
- before_contains = "" if !before_contains
- while lines =~ /^\s*?namelist\s+\/\s*?(\w+)\s*?\/([\s\w\,]+)$/i
- lines = $~.post_match
- nml_comment = COMMENTS_ARE_UPPER ?
- find_comments($~.pre_match) : find_comments($~.post_match)
- nml_name = $1
- nml_args = $2.split(",")
- result << "\n\n=== NAMELIST <tt><b>" + nml_name + "</tt></b>\n\n"
- result << nml_comment + "\n" if nml_comment
- if lines.split("\n")[0] =~ /^\//i
- lines = "namelist " + lines
- end
- result << find_arguments(nml_args, "#{text}" + "\n" + before_contains)
- end
- return result
- end
-
- ##
- # Comments just after module or subprogram, or arguments are returned. If
- # "COMMENTS_ARE_UPPER" is true, comments just before modules or subprograms
- # are returnd
-
- def find_comments text
- return "" unless text
- lines = text.split("\n")
- lines.reverse! if COMMENTS_ARE_UPPER
- comment_block = Array.new
- lines.each do |line|
- break if line =~ /^\s*?\w/ || line =~ /^\s*?$/
- if COMMENTS_ARE_UPPER
- comment_block.unshift line.sub(/^\s*?!\s?/,"")
- else
- comment_block.push line.sub(/^\s*?!\s?/,"")
- end
- end
- nice_lines = comment_block.join("\n").split "\n\s*?\n"
- nice_lines[0] ||= ""
- nice_lines.shift
- end
-
- ##
- # Create method for internal alias
-
- def initialize_public_method(method, parent)
- return if !method || !parent
-
- new_meth = AnyMethod.new("External Alias for module", method.name)
- new_meth.singleton = method.singleton
- new_meth.params = method.params.clone
- new_meth.comment = remove_trailing_alias(method.comment.clone)
- new_meth.comment << "\n\n#{EXTERNAL_ALIAS_MES} #{parent.strip.chomp}\##{method.name}"
-
- return new_meth
- end
-
- ##
- # Create method for external alias
- #
- # If argument "internal" is true, file is ignored.
-
- def initialize_external_method(new, old, params, file, comment, token=nil,
- internal=nil, nolink=nil)
- return nil unless new || old
-
- if internal
- external_alias_header = "#{INTERNAL_ALIAS_MES} "
- external_alias_text = external_alias_header + old
- elsif file
- external_alias_header = "#{EXTERNAL_ALIAS_MES} "
- external_alias_text = external_alias_header + file + "#" + old
- else
- return nil
- end
- external_meth = AnyMethod.new(external_alias_text, new)
- external_meth.singleton = false
- external_meth.params = params
- external_comment = remove_trailing_alias(comment) + "\n\n" if comment
- external_meth.comment = external_comment || ""
- if nolink && token
- external_meth.start_collecting_tokens
- external_meth.add_token Token.new(1,1).set_text(token)
- else
- external_meth.comment << external_alias_text
- end
-
- return external_meth
- end
-
- ##
- # Parse visibility
-
- def parse_visibility(code, default, container)
- result = []
- visibility_default = default || :public
-
- used_modules = []
- container.includes.each{|i| used_modules << i.name} if container
-
- remaining_code = code.gsub(/^\s*?type[\s\,]+.*?\s+end\s+type.*?$/im, "")
- remaining_code.split("\n").each{ |line|
- if /^\s*?private\s*?$/ =~ line
- visibility_default = :private
- break
- end
- } if remaining_code
-
- remaining_code.split("\n").each{ |line|
- if /^\s*?private\s*?(::)?\s+(.*)\s*?(!.*?)?/i =~ line
- methods = $2.sub(/!.*$/, '')
- methods.split(",").each{ |meth|
- meth.sub!(/!.*$/, '')
- meth.gsub!(/:/, '')
- result << {
- "name" => meth.chomp.strip,
- "visibility" => :private,
- "used_modules" => used_modules.clone,
- "file_or_module" => container,
- "entity_is_discovered" => nil,
- "local_name" => nil
- }
- }
- elsif /^\s*?public\s*?(::)?\s+(.*)\s*?(!.*?)?/i =~ line
- methods = $2.sub(/!.*$/, '')
- methods.split(",").each{ |meth|
- meth.sub!(/!.*$/, '')
- meth.gsub!(/:/, '')
- result << {
- "name" => meth.chomp.strip,
- "visibility" => :public,
- "used_modules" => used_modules.clone,
- "file_or_module" => container,
- "entity_is_discovered" => nil,
- "local_name" => nil
- }
- }
- end
- } if remaining_code
-
- if container
- result.each{ |vis_info|
- vis_info["parent"] = container.name
- }
- end
-
- return visibility_default, result
- end
-
- ##
- # Set visibility
- #
- # "subname" element of "visibility_info" is deleted.
-
- def set_visibility(container, subname, visibility_default, visibility_info)
- return unless container || subname || visibility_default || visibility_info
- not_found = true
- visibility_info.collect!{ |info|
- if info["name"] == subname ||
- @options.ignore_case && info["name"].upcase == subname.upcase
- if info["file_or_module"].name == container.name
- container.set_visibility_for([subname], info["visibility"])
- info["entity_is_discovered"] = true
- not_found = false
- end
- end
- info
- }
- if not_found
- return container.set_visibility_for([subname], visibility_default)
- else
- return container
- end
- end
-
- ##
- # Find visibility
-
- def find_visibility(container, subname, visibility_info)
- return nil if !subname || !visibility_info
- visibility_info.each{ |info|
- if info["name"] == subname ||
- @options.ignore_case && info["name"].upcase == subname.upcase
- if info["parent"] == container.name
- return info["visibility"]
- end
- end
- }
- return nil
- end
-
- ##
- # Check external aliases
-
- def check_external_aliases(subname, params, comment, test=nil)
- @@external_aliases.each{ |alias_item|
- if subname == alias_item["old_name"] ||
- subname.upcase == alias_item["old_name"].upcase &&
- @options.ignore_case
-
- new_meth = initialize_external_method(alias_item["new_name"],
- subname, params, @file_name,
- comment)
- new_meth.visibility = alias_item["visibility"]
-
- @stats.add_method new_meth
-
- alias_item["file_or_module"].add_method(new_meth)
-
- if !alias_item["file_or_module"].include_requires?(@file_name, @options.ignore_case)
- alias_item["file_or_module"].add_require(Require.new(@file_name, ""))
- end
- end
- }
- end
-
- ##
- # Check public_methods
-
- def check_public_methods(method, parent)
- return if !method || !parent
- @@public_methods.each{ |alias_item|
- parent_is_used_module = nil
- alias_item["used_modules"].each{ |used_module|
- if used_module == parent ||
- used_module.upcase == parent.upcase &&
- @options.ignore_case
- parent_is_used_module = true
- end
- }
- next if !parent_is_used_module
-
- if method.name == alias_item["name"] ||
- method.name.upcase == alias_item["name"].upcase &&
- @options.ignore_case
-
- new_meth = initialize_public_method(method, parent)
- if alias_item["local_name"]
- new_meth.name = alias_item["local_name"]
- end
-
- @stats.add_method new_meth
-
- alias_item["file_or_module"].add_method new_meth
- end
- }
- end
-
- ##
- # Continuous lines are united.
- #
- # Comments in continuous lines are removed.
-
- def united_to_one_line(f90src)
- return "" unless f90src
- lines = f90src.split("\n")
- previous_continuing = false
- now_continuing = false
- body = ""
- lines.each{ |line|
- words = line.split("")
- next if words.empty? && previous_continuing
- commentout = false
- brank_flag = true ; brank_char = ""
- squote = false ; dquote = false
- ignore = false
- words.collect! { |char|
- if previous_continuing && brank_flag
- now_continuing = true
- ignore = true
- case char
- when "!" ; break
- when " " ; brank_char << char ; next ""
- when "&"
- brank_flag = false
- now_continuing = false
- next ""
- else
- brank_flag = false
- now_continuing = false
- ignore = false
- next brank_char + char
- end
- end
- ignore = false
-
- if now_continuing
- next ""
- elsif !(squote) && !(dquote) && !(commentout)
- case char
- when "!" ; commentout = true ; next char
- when "\""; dquote = true ; next char
- when "\'"; squote = true ; next char
- when "&" ; now_continuing = true ; next ""
- else next char
- end
- elsif commentout
- next char
- elsif squote
- case char
- when "\'"; squote = false ; next char
- else next char
- end
- elsif dquote
- case char
- when "\""; dquote = false ; next char
- else next char
- end
- end
- }
- if !ignore && !previous_continuing || !brank_flag
- if previous_continuing
- body << words.join("")
- else
- body << "\n" + words.join("")
- end
- end
- previous_continuing = now_continuing ? true : nil
- now_continuing = nil
- }
- return body
- end
-
-
- ##
- # Continuous line checker
-
- def continuous_line?(line)
- continuous = false
- if /&\s*?(!.*)?$/ =~ line
- continuous = true
- if comment_out?($~.pre_match)
- continuous = false
- end
- end
- return continuous
- end
-
- ##
- # Comment out checker
-
- def comment_out?(line)
- return nil unless line
- commentout = false
- squote = false ; dquote = false
- line.split("").each { |char|
- if !(squote) && !(dquote)
- case char
- when "!" ; commentout = true ; break
- when "\""; dquote = true
- when "\'"; squote = true
- else next
- end
- elsif squote
- case char
- when "\'"; squote = false
- else next
- end
- elsif dquote
- case char
- when "\""; dquote = false
- else next
- end
- end
- }
- return commentout
- end
-
- ##
- # Semicolons are replaced to line feed.
-
- def semicolon_to_linefeed(text)
- return "" unless text
- lines = text.split("\n")
- lines.collect!{ |line|
- words = line.split("")
- commentout = false
- squote = false ; dquote = false
- words.collect! { |char|
- if !(squote) && !(dquote) && !(commentout)
- case char
- when "!" ; commentout = true ; next char
- when "\""; dquote = true ; next char
- when "\'"; squote = true ; next char
- when ";" ; "\n"
- else next char
- end
- elsif commentout
- next char
- elsif squote
- case char
- when "\'"; squote = false ; next char
- else next char
- end
- elsif dquote
- case char
- when "\""; dquote = false ; next char
- else next char
- end
- end
- }
- words.join("")
- }
- return lines.join("\n")
- end
-
- ##
- # Which "line" is start of block (module, program, block data, subroutine,
- # function) statement ?
-
- def block_start?(line)
- return nil if !line
-
- if line =~ /^\s*?module\s+(\w+)\s*?(!.*?)?$/i ||
- line =~ /^\s*?program\s+(\w+)\s*?(!.*?)?$/i ||
- line =~ /^\s*?block\s+data(\s+\w+)?\s*?(!.*?)?$/i ||
- line =~ \
- /^\s*?
- (recursive|pure|elemental)?\s*?
- subroutine\s+(\w+)\s*?(\(.*?\))?\s*?(!.*?)?$
- /ix ||
- line =~ \
- /^\s*?
- (recursive|pure|elemental)?\s*?
- (
- character\s*?(\([\w\s\=\(\)\*]+?\))?\s+
- | type\s*?\([\w\s]+?\)\s+
- | integer\s*?(\([\w\s\=\(\)\*]+?\))?\s+
- | real\s*?(\([\w\s\=\(\)\*]+?\))?\s+
- | double\s+precision\s+
- | logical\s*?(\([\w\s\=\(\)\*]+?\))?\s+
- | complex\s*?(\([\w\s\=\(\)\*]+?\))?\s+
- )?
- function\s+(\w+)\s*?
- (\(.*?\))?(\s+result\((.*?)\))?\s*?(!.*?)?$
- /ix
- return true
- end
-
- return nil
- end
-
- ##
- # Which "line" is end of block (module, program, block data, subroutine,
- # function) statement ?
-
- def block_end?(line)
- return nil if !line
-
- if line =~ /^\s*?end\s*?(!.*?)?$/i ||
- line =~ /^\s*?end\s+module(\s+\w+)?\s*?(!.*?)?$/i ||
- line =~ /^\s*?end\s+program(\s+\w+)?\s*?(!.*?)?$/i ||
- line =~ /^\s*?end\s+block\s+data(\s+\w+)?\s*?(!.*?)?$/i ||
- line =~ /^\s*?end\s+subroutine(\s+\w+)?\s*?(!.*?)?$/i ||
- line =~ /^\s*?end\s+function(\s+\w+)?\s*?(!.*?)?$/i
- return true
- end
-
- return nil
- end
-
- ##
- # Remove "Alias for" in end of comments
-
- def remove_trailing_alias(text)
- return "" if !text
- lines = text.split("\n").reverse
- comment_block = Array.new
- checked = false
- lines.each do |line|
- if !checked
- if /^\s?#{INTERNAL_ALIAS_MES}/ =~ line ||
- /^\s?#{EXTERNAL_ALIAS_MES}/ =~ line
- checked = true
- next
- end
- end
- comment_block.unshift line
- end
- nice_lines = comment_block.join("\n")
- nice_lines ||= ""
- return nice_lines
- end
-
- ##
- # Empty lines in header are removed
-
- def remove_empty_head_lines(text)
- return "" unless text
- lines = text.split("\n")
- header = true
- lines.delete_if{ |line|
- header = false if /\S/ =~ line
- header && /^\s*?$/ =~ line
- }
- lines.join("\n")
- end
-
- ##
- # header marker "=", "==", ... are removed
-
- def remove_header_marker(text)
- return text.gsub(/^\s?(=+)/, '<tt></tt>\1')
- end
-
- def remove_private_comments(body)
- body.gsub!(/^\s*!--\s*?$.*?^\s*!\+\+\s*?$/m, '')
- return body
- end
-
- ##
- # Information of arguments of subroutines and functions in Fortran95
-
- class Fortran95Definition
-
- # Name of variable
- #
- attr_reader :varname
-
- # Types of variable
- #
- attr_reader :types
-
- # Initial Value
- #
- attr_reader :inivalue
-
- # Suffix of array
- #
- attr_reader :arraysuffix
-
- # Comments
- #
- attr_accessor :comment
-
- # Flag of non documentation
- #
- attr_accessor :nodoc
-
- def initialize(varname, types, inivalue, arraysuffix, comment,
- nodoc=false)
- @varname = varname
- @types = types
- @inivalue = inivalue
- @arraysuffix = arraysuffix
- @comment = comment
- @nodoc = nodoc
- end
-
- def to_s
- return <<-EOF
-<Fortran95Definition:
-varname=#{@varname}, types=#{types},
-inivalue=#{@inivalue}, arraysuffix=#{@arraysuffix}, nodoc=#{@nodoc},
-comment=
-#{@comment}
->
-EOF
- end
-
- #
- # If attr is included, true is returned
- #
- def include_attr?(attr)
- return if !attr
- @types.split(",").each{ |type|
- return true if type.strip.chomp.upcase == attr.strip.chomp.upcase
- }
- return nil
- end
-
- end # End of Fortran95Definition
-
- ##
- # Parse string argument "text", and Return Array of Fortran95Definition
- # object
-
- def definition_info(text)
- return nil unless text
- lines = "#{text}"
- defs = Array.new
- comment = ""
- trailing_comment = ""
- under_comment_valid = false
- lines.split("\n").each{ |line|
- if /^\s*?!\s?(.*)/ =~ line
- if COMMENTS_ARE_UPPER
- comment << remove_header_marker($1)
- comment << "\n"
- elsif defs[-1] && under_comment_valid
- defs[-1].comment << "\n"
- defs[-1].comment << remove_header_marker($1)
- end
- next
- elsif /^\s*?$/ =~ line
- comment = ""
- under_comment_valid = false
- next
- end
- type = ""
- characters = ""
- if line =~ /^\s*?
- (
- character\s*?(\([\w\s\=\(\)\*]+?\))?[\s\,]*
- | type\s*?\([\w\s]+?\)[\s\,]*
- | integer\s*?(\([\w\s\=\(\)\*]+?\))?[\s\,]*
- | real\s*?(\([\w\s\=\(\)\*]+?\))?[\s\,]*
- | double\s+precision[\s\,]*
- | logical\s*?(\([\w\s\=\(\)\*]+?\))?[\s\,]*
- | complex\s*?(\([\w\s\=\(\)\*]+?\))?[\s\,]*
- )
- (.*?::)?
- (.+)$
- /ix
- characters = $8
- type = $1
- type << $7.gsub(/::/, '').gsub(/^\s*?\,/, '') if $7
- else
- under_comment_valid = false
- next
- end
- squote = false ; dquote = false ; bracket = 0
- iniflag = false; commentflag = false
- varname = "" ; arraysuffix = "" ; inivalue = ""
- start_pos = defs.size
- characters.split("").each { |char|
- if !(squote) && !(dquote) && bracket <= 0 && !(iniflag) && !(commentflag)
- case char
- when "!" ; commentflag = true
- when "(" ; bracket += 1 ; arraysuffix = char
- when "\""; dquote = true
- when "\'"; squote = true
- when "=" ; iniflag = true ; inivalue << char
- when ","
- defs << Fortran95Definition.new(varname, type, inivalue, arraysuffix, comment)
- varname = "" ; arraysuffix = "" ; inivalue = ""
- under_comment_valid = true
- when " " ; next
- else ; varname << char
- end
- elsif commentflag
- comment << remove_header_marker(char)
- trailing_comment << remove_header_marker(char)
- elsif iniflag
- if dquote
- case char
- when "\"" ; dquote = false ; inivalue << char
- else ; inivalue << char
- end
- elsif squote
- case char
- when "\'" ; squote = false ; inivalue << char
- else ; inivalue << char
- end
- elsif bracket > 0
- case char
- when "(" ; bracket += 1 ; inivalue << char
- when ")" ; bracket -= 1 ; inivalue << char
- else ; inivalue << char
- end
- else
- case char
- when ","
- defs << Fortran95Definition.new(varname, type, inivalue, arraysuffix, comment)
- varname = "" ; arraysuffix = "" ; inivalue = ""
- iniflag = false
- under_comment_valid = true
- when "(" ; bracket += 1 ; inivalue << char
- when "\""; dquote = true ; inivalue << char
- when "\'"; squote = true ; inivalue << char
- when "!" ; commentflag = true
- else ; inivalue << char
- end
- end
- elsif !(squote) && !(dquote) && bracket > 0
- case char
- when "(" ; bracket += 1 ; arraysuffix << char
- when ")" ; bracket -= 1 ; arraysuffix << char
- else ; arraysuffix << char
- end
- elsif squote
- case char
- when "\'"; squote = false ; inivalue << char
- else ; inivalue << char
- end
- elsif dquote
- case char
- when "\""; dquote = false ; inivalue << char
- else ; inivalue << char
- end
- end
- }
- defs << Fortran95Definition.new(varname, type, inivalue, arraysuffix, comment)
- if trailing_comment =~ /^:nodoc:/
- defs[start_pos..-1].collect!{ |defitem|
- defitem.nodoc = true
- }
- end
- varname = "" ; arraysuffix = "" ; inivalue = ""
- comment = ""
- under_comment_valid = true
- trailing_comment = ""
- }
- return defs
- end
-
-end
-
diff --git a/lib/rdoc/parser/perl.rb b/lib/rdoc/parser/perl.rb
deleted file mode 100644
index 0023a013a6..0000000000
--- a/lib/rdoc/parser/perl.rb
+++ /dev/null
@@ -1,165 +0,0 @@
-require 'rdoc/parser'
-
-##
-#
-# This is an attamept to write a basic parser for Perl's
-# POD (Plain old Documentation) format. Ruby code must
-# co-exist with Perl, and some tasks are easier in Perl
-# than Ruby because of existing libraries.
-#
-# One difficult is that Perl POD has no means of identifying
-# the classes (packages) and methods (subs) with which it
-# is associated, it is more like literate programming in so
-# far as it just happens to be in the same place as the code,
-# but need not be.
-#
-# We would like to support all the markup the POD provides
-# so that it will convert happily to HTML. At the moment
-# I don't think I can do that: time constraints.
-#
-
-class RDoc::Parser::PerlPOD < RDoc::Parser
-
- parse_files_matching(/.p[lm]$/)
-
- ##
- # Prepare to parse a perl file
-
- def initialize(top_level, file_name, content, options, stats)
- super
-
- preprocess = RDoc::Markup::PreProcess.new @file_name, @options.rdoc_include
-
- preprocess.handle @content do |directive, param|
- warn "Unrecognized directive '#{directive}' in #{@file_name}"
- end
- end
-
- ##
- # Extract the Pod(-like) comments from the code.
- # At its most basic there will ne no need to distinguish
- # between the different types of header, etc.
- #
- # This uses a simple finite state machine, in a very
- # procedural pattern. I could "replace case with polymorphism"
- # but I think it would obscure the intent, scatter the
- # code all over tha place. This machine is necessary
- # because POD requires that directives be preceded by
- # blank lines, so reading line by line is necessary,
- # and preserving state about what is seen is necesary.
-
- def scan
-
- @top_level.comment ||= ""
- state=:code_blank
- line_number = 0
- line = nil
-
- # This started out as a really long nested case statement,
- # which also led to repetitive code. I'd like to avoid that
- # so I'm using a "table" instead.
-
- # Firstly we need some procs to do the transition and processing
- # work. Because these are procs they are closures, and they can
- # use variables in the local scope.
- #
- # First, the "nothing to see here" stuff.
- code_noop = lambda do
- if line =~ /^\s+$/
- state = :code_blank
- end
- end
-
- pod_noop = lambda do
- if line =~ /^\s+$/
- state = :pod_blank
- end
- @top_level.comment += filter(line)
- end
-
- begin_noop = lambda do
- if line =~ /^\s+$/
- state = :begin_blank
- end
- @top_level.comment += filter(line)
- end
-
- # Now for the blocks that process code and comments...
-
- transit_to_pod = lambda do
- case line
- when /^=(?:pod|head\d+)/
- state = :pod_no_blank
- @top_level.comment += filter(line)
- when /^=over/
- state = :over_no_blank
- @top_level.comment += filter(line)
- when /^=(?:begin|for)/
- state = :begin_no_blank
- end
- end
-
- process_pod = lambda do
- case line
- when /^\s*$/
- state = :pod_blank
- @top_level.comment += filter(line)
- when /^=cut/
- state = :code_no_blank
- when /^=end/
- $stderr.puts "'=end' unexpected at #{line_number} in #{@file_name}"
- else
- @top_level.comment += filter(line)
- end
- end
-
-
- process_begin = lambda do
- case line
- when /^\s*$/
- state = :begin_blank
- @top_level.comment += filter(line)
- when /^=end/
- state = :code_no_blank
- when /^=cut/
- $stderr.puts "'=cut' unexpected at #{line_number} in #{@file_name}"
- else
- @top_level.comment += filter(line)
- end
-
- end
-
-
- transitions = { :code_no_blank => code_noop,
- :code_blank => transit_to_pod,
- :pod_no_blank => pod_noop,
- :pod_blank => process_pod,
- :begin_no_blank => begin_noop,
- :begin_blank => process_begin}
- @content.each_line do |l|
- line = l
- line_number += 1
- transitions[state].call
- end # each line
-
- @top_level
- end
-
- # Filter the perl markup that does the same as the rdoc
- # filtering. Only basic for now. Will probably need a
- # proper parser to cope with C<<...>> etc
- def filter(comment)
- return '' if comment =~ /^=pod\s*$/
- comment.gsub!(/^=pod/, '==')
- comment.gsub!(/^=head(\d+)/) do
- "=" * $1.to_i
- end
- comment.gsub!(/=item/, '');
- comment.gsub!(/C<(.*?)>/, '<tt>\1</tt>');
- comment.gsub!(/I<(.*?)>/, '<i>\1</i>');
- comment.gsub!(/B<(.*?)>/, '<b>\1</b>');
- comment
- end
-
-end
-
diff --git a/lib/rdoc/parser/ruby.rb b/lib/rdoc/parser/ruby.rb
index cf6c1ad221..c9a12a8fe8 100644
--- a/lib/rdoc/parser/ruby.rb
+++ b/lib/rdoc/parser/ruby.rb
@@ -7,1339 +7,16 @@
# by Keiju ISHITSUKA (Nippon Rational Inc.)
#
-require 'e2mmap'
-require 'irb/slex'
+require 'rdoc/ruby_token'
+require 'rdoc/ruby_lex'
require 'rdoc/code_objects'
-require 'rdoc/tokenstream'
-require 'rdoc/markup/preprocess'
+require 'rdoc/token_stream'
+require 'rdoc/markup/pre_process'
require 'rdoc/parser'
+require 'rdoc/parser/ruby_tools'
$TOKEN_DEBUG ||= nil
-#$TOKEN_DEBUG = $DEBUG_RDOC
-
-##
-# Definitions of all tokens involved in the lexical analysis
-
-module RDoc::RubyToken
-
- EXPR_BEG = :EXPR_BEG
- EXPR_MID = :EXPR_MID
- EXPR_END = :EXPR_END
- EXPR_ARG = :EXPR_ARG
- EXPR_FNAME = :EXPR_FNAME
- EXPR_DOT = :EXPR_DOT
- EXPR_CLASS = :EXPR_CLASS
-
- class Token
- NO_TEXT = "??".freeze
-
- attr_accessor :text
- attr_reader :line_no
- attr_reader :char_no
-
- def initialize(line_no, char_no)
- @line_no = line_no
- @char_no = char_no
- @text = NO_TEXT
- end
-
- def ==(other)
- self.class == other.class and
- other.line_no == @line_no and
- other.char_no == @char_no and
- other.text == @text
- end
-
- ##
- # Because we're used in contexts that expect to return a token, we set the
- # text string and then return ourselves
-
- def set_text(text)
- @text = text
- self
- end
-
- end
-
- class TkNode < Token
- attr :node
- end
-
- class TkId < Token
- def initialize(line_no, char_no, name)
- super(line_no, char_no)
- @name = name
- end
- attr :name
- end
-
- class TkKW < TkId
- end
-
- class TkVal < Token
- def initialize(line_no, char_no, value = nil)
- super(line_no, char_no)
- set_text(value)
- end
- end
-
- class TkOp < Token
- def name
- self.class.op_name
- end
- end
-
- class TkOPASGN < TkOp
- def initialize(line_no, char_no, op)
- super(line_no, char_no)
- op = TkReading2Token[op] unless Symbol === op
- @op = op
- end
- attr :op
- end
-
- class TkUnknownChar < Token
- def initialize(line_no, char_no, id)
- super(line_no, char_no)
- @name = char_no.chr
- end
- attr :name
- end
-
- class TkError < Token
- end
-
- def set_token_position(line, char)
- @prev_line_no = line
- @prev_char_no = char
- end
-
- def Token(token, value = nil)
- tk = nil
- case token
- when String, Symbol
- source = String === token ? TkReading2Token : TkSymbol2Token
- raise TkReading2TokenNoKey, token if (tk = source[token]).nil?
- tk = Token(tk[0], value)
- else
- tk = if (token.ancestors & [TkId, TkVal, TkOPASGN, TkUnknownChar]).empty?
- token.new(@prev_line_no, @prev_char_no)
- else
- token.new(@prev_line_no, @prev_char_no, value)
- end
- end
- tk
- end
-
- TokenDefinitions = [
- [:TkCLASS, TkKW, "class", EXPR_CLASS],
- [:TkMODULE, TkKW, "module", EXPR_CLASS],
- [:TkDEF, TkKW, "def", EXPR_FNAME],
- [:TkUNDEF, TkKW, "undef", EXPR_FNAME],
- [:TkBEGIN, TkKW, "begin", EXPR_BEG],
- [:TkRESCUE, TkKW, "rescue", EXPR_MID],
- [:TkENSURE, TkKW, "ensure", EXPR_BEG],
- [:TkEND, TkKW, "end", EXPR_END],
- [:TkIF, TkKW, "if", EXPR_BEG, :TkIF_MOD],
- [:TkUNLESS, TkKW, "unless", EXPR_BEG, :TkUNLESS_MOD],
- [:TkTHEN, TkKW, "then", EXPR_BEG],
- [:TkELSIF, TkKW, "elsif", EXPR_BEG],
- [:TkELSE, TkKW, "else", EXPR_BEG],
- [:TkCASE, TkKW, "case", EXPR_BEG],
- [:TkWHEN, TkKW, "when", EXPR_BEG],
- [:TkWHILE, TkKW, "while", EXPR_BEG, :TkWHILE_MOD],
- [:TkUNTIL, TkKW, "until", EXPR_BEG, :TkUNTIL_MOD],
- [:TkFOR, TkKW, "for", EXPR_BEG],
- [:TkBREAK, TkKW, "break", EXPR_END],
- [:TkNEXT, TkKW, "next", EXPR_END],
- [:TkREDO, TkKW, "redo", EXPR_END],
- [:TkRETRY, TkKW, "retry", EXPR_END],
- [:TkIN, TkKW, "in", EXPR_BEG],
- [:TkDO, TkKW, "do", EXPR_BEG],
- [:TkRETURN, TkKW, "return", EXPR_MID],
- [:TkYIELD, TkKW, "yield", EXPR_END],
- [:TkSUPER, TkKW, "super", EXPR_END],
- [:TkSELF, TkKW, "self", EXPR_END],
- [:TkNIL, TkKW, "nil", EXPR_END],
- [:TkTRUE, TkKW, "true", EXPR_END],
- [:TkFALSE, TkKW, "false", EXPR_END],
- [:TkAND, TkKW, "and", EXPR_BEG],
- [:TkOR, TkKW, "or", EXPR_BEG],
- [:TkNOT, TkKW, "not", EXPR_BEG],
- [:TkIF_MOD, TkKW],
- [:TkUNLESS_MOD, TkKW],
- [:TkWHILE_MOD, TkKW],
- [:TkUNTIL_MOD, TkKW],
- [:TkALIAS, TkKW, "alias", EXPR_FNAME],
- [:TkDEFINED, TkKW, "defined?", EXPR_END],
- [:TklBEGIN, TkKW, "BEGIN", EXPR_END],
- [:TklEND, TkKW, "END", EXPR_END],
- [:Tk__LINE__, TkKW, "__LINE__", EXPR_END],
- [:Tk__FILE__, TkKW, "__FILE__", EXPR_END],
-
- [:TkIDENTIFIER, TkId],
- [:TkFID, TkId],
- [:TkGVAR, TkId],
- [:TkIVAR, TkId],
- [:TkCONSTANT, TkId],
-
- [:TkINTEGER, TkVal],
- [:TkFLOAT, TkVal],
- [:TkSTRING, TkVal],
- [:TkXSTRING, TkVal],
- [:TkREGEXP, TkVal],
- [:TkCOMMENT, TkVal],
-
- [:TkDSTRING, TkNode],
- [:TkDXSTRING, TkNode],
- [:TkDREGEXP, TkNode],
- [:TkNTH_REF, TkId],
- [:TkBACK_REF, TkId],
-
- [:TkUPLUS, TkOp, "+@"],
- [:TkUMINUS, TkOp, "-@"],
- [:TkPOW, TkOp, "**"],
- [:TkCMP, TkOp, "<=>"],
- [:TkEQ, TkOp, "=="],
- [:TkEQQ, TkOp, "==="],
- [:TkNEQ, TkOp, "!="],
- [:TkGEQ, TkOp, ">="],
- [:TkLEQ, TkOp, "<="],
- [:TkANDOP, TkOp, "&&"],
- [:TkOROP, TkOp, "||"],
- [:TkMATCH, TkOp, "=~"],
- [:TkNMATCH, TkOp, "!~"],
- [:TkDOT2, TkOp, ".."],
- [:TkDOT3, TkOp, "..."],
- [:TkAREF, TkOp, "[]"],
- [:TkASET, TkOp, "[]="],
- [:TkLSHFT, TkOp, "<<"],
- [:TkRSHFT, TkOp, ">>"],
- [:TkCOLON2, TkOp],
- [:TkCOLON3, TkOp],
-# [:OPASGN, TkOp], # +=, -= etc. #
- [:TkASSOC, TkOp, "=>"],
- [:TkQUESTION, TkOp, "?"], #?
- [:TkCOLON, TkOp, ":"], #:
-
- [:TkfLPAREN], # func( #
- [:TkfLBRACK], # func[ #
- [:TkfLBRACE], # func{ #
- [:TkSTAR], # *arg
- [:TkAMPER], # &arg #
- [:TkSYMBOL, TkId], # :SYMBOL
- [:TkSYMBEG, TkId],
- [:TkGT, TkOp, ">"],
- [:TkLT, TkOp, "<"],
- [:TkPLUS, TkOp, "+"],
- [:TkMINUS, TkOp, "-"],
- [:TkMULT, TkOp, "*"],
- [:TkDIV, TkOp, "/"],
- [:TkMOD, TkOp, "%"],
- [:TkBITOR, TkOp, "|"],
- [:TkBITXOR, TkOp, "^"],
- [:TkBITAND, TkOp, "&"],
- [:TkBITNOT, TkOp, "~"],
- [:TkNOTOP, TkOp, "!"],
-
- [:TkBACKQUOTE, TkOp, "`"],
-
- [:TkASSIGN, Token, "="],
- [:TkDOT, Token, "."],
- [:TkLPAREN, Token, "("], #(exp)
- [:TkLBRACK, Token, "["], #[arry]
- [:TkLBRACE, Token, "{"], #{hash}
- [:TkRPAREN, Token, ")"],
- [:TkRBRACK, Token, "]"],
- [:TkRBRACE, Token, "}"],
- [:TkCOMMA, Token, ","],
- [:TkSEMICOLON, Token, ";"],
-
- [:TkRD_COMMENT],
- [:TkSPACE],
- [:TkNL],
- [:TkEND_OF_SCRIPT],
-
- [:TkBACKSLASH, TkUnknownChar, "\\"],
- [:TkAT, TkUnknownChar, "@"],
- [:TkDOLLAR, TkUnknownChar, "\$"], #"
- ]
-
- # {reading => token_class}
- # {reading => [token_class, *opt]}
- TkReading2Token = {}
- TkSymbol2Token = {}
-
- def self.def_token(token_n, super_token = Token, reading = nil, *opts)
- token_n = token_n.id2name unless String === token_n
-
- fail AlreadyDefinedToken, token_n if const_defined?(token_n)
-
- token_c = Class.new super_token
- const_set token_n, token_c
-# token_c.inspect
-
- if reading
- if TkReading2Token[reading]
- fail TkReading2TokenDuplicateError, token_n, reading
- end
- if opts.empty?
- TkReading2Token[reading] = [token_c]
- else
- TkReading2Token[reading] = [token_c].concat(opts)
- end
- end
- TkSymbol2Token[token_n.intern] = token_c
-
- if token_c <= TkOp
- token_c.class_eval %{
- def self.op_name; "#{reading}"; end
- }
- end
- end
-
- for defs in TokenDefinitions
- def_token(*defs)
- end
-
- NEWLINE_TOKEN = TkNL.new(0,0)
- NEWLINE_TOKEN.set_text("\n")
-
-end
-
-##
-# Lexical analyzer for Ruby source
-
-class RDoc::RubyLex
-
- ##
- # Read an input stream character by character. We allow for unlimited
- # ungetting of characters just read.
- #
- # We simplify the implementation greatly by reading the entire input
- # into a buffer initially, and then simply traversing it using
- # pointers.
- #
- # We also have to allow for the <i>here document diversion</i>. This
- # little gem comes about when the lexer encounters a here
- # document. At this point we effectively need to split the input
- # stream into two parts: one to read the body of the here document,
- # the other to read the rest of the input line where the here
- # document was initially encountered. For example, we might have
- #
- # do_something(<<-A, <<-B)
- # stuff
- # for
- # A
- # stuff
- # for
- # B
- #
- # When the lexer encounters the <<A, it reads until the end of the
- # line, and keeps it around for later. It then reads the body of the
- # here document. Once complete, it needs to read the rest of the
- # original line, but then skip the here document body.
- #
-
- class BufferedReader
-
- attr_reader :line_num
-
- def initialize(content, options)
- @options = options
-
- if /\t/ =~ content
- tab_width = @options.tab_width
- content = content.split(/\n/).map do |line|
- 1 while line.gsub!(/\t+/) { ' ' * (tab_width*$&.length - $`.length % tab_width)} && $~ #`
- line
- end .join("\n")
- end
- @content = content
- @content << "\n" unless @content[-1,1] == "\n"
- @size = @content.size
- @offset = 0
- @hwm = 0
- @line_num = 1
- @read_back_offset = 0
- @last_newline = 0
- @newline_pending = false
- end
-
- def column
- @offset - @last_newline
- end
-
- def getc
- return nil if @offset >= @size
- ch = @content[@offset, 1]
-
- @offset += 1
- @hwm = @offset if @hwm < @offset
-
- if @newline_pending
- @line_num += 1
- @last_newline = @offset - 1
- @newline_pending = false
- end
-
- if ch == "\n"
- @newline_pending = true
- end
- ch
- end
-
- def getc_already_read
- getc
- end
-
- def ungetc(ch)
- raise "unget past beginning of file" if @offset <= 0
- @offset -= 1
- if @content[@offset] == ?\n
- @newline_pending = false
- end
- end
-
- def get_read
- res = @content[@read_back_offset...@offset]
- @read_back_offset = @offset
- res
- end
-
- def peek(at)
- pos = @offset + at
- if pos >= @size
- nil
- else
- @content[pos, 1]
- end
- end
-
- def peek_equal(str)
- @content[@offset, str.length] == str
- end
-
- def divert_read_from(reserve)
- @content[@offset, 0] = reserve
- @size = @content.size
- end
- end
-
- # end of nested class BufferedReader
-
- extend Exception2MessageMapper
- def_exception(:AlreadyDefinedToken, "Already defined token(%s)")
- def_exception(:TkReading2TokenNoKey, "key nothing(key='%s')")
- def_exception(:TkSymbol2TokenNoKey, "key nothing(key='%s')")
- def_exception(:TkReading2TokenDuplicateError,
- "key duplicate(token_n='%s', key='%s')")
- def_exception(:SyntaxError, "%s")
-
- include RDoc::RubyToken
- include IRB
-
- attr_reader :continue
- attr_reader :lex_state
-
- def self.debug?
- false
- end
-
- def initialize(content, options)
- lex_init
-
- @options = options
-
- @reader = BufferedReader.new content, @options
-
- @exp_line_no = @line_no = 1
- @base_char_no = 0
- @indent = 0
-
- @ltype = nil
- @quoted = nil
- @lex_state = EXPR_BEG
- @space_seen = false
-
- @continue = false
- @line = ""
-
- @skip_space = false
- @read_auto_clean_up = false
- @exception_on_syntax_error = true
- end
-
- attr_accessor :skip_space
- attr_accessor :read_auto_clean_up
- attr_accessor :exception_on_syntax_error
- attr_reader :indent
-
- # io functions
- def line_no
- @reader.line_num
- end
-
- def char_no
- @reader.column
- end
-
- def get_read
- @reader.get_read
- end
-
- def getc
- @reader.getc
- end
-
- def getc_of_rests
- @reader.getc_already_read
- end
-
- def gets
- c = getc or return
- l = ""
- begin
- l.concat c unless c == "\r"
- break if c == "\n"
- end while c = getc
- l
- end
-
-
- def ungetc(c = nil)
- @reader.ungetc(c)
- end
-
- def peek_equal?(str)
- @reader.peek_equal(str)
- end
-
- def peek(i = 0)
- @reader.peek(i)
- end
-
- def lex
- until (TkNL === (tk = token) or TkEND_OF_SCRIPT === tk) and
- not @continue or tk.nil?
- end
-
- line = get_read
-
- if line == "" and TkEND_OF_SCRIPT === tk or tk.nil? then
- nil
- else
- line
- end
- end
-
- def token
- set_token_position(line_no, char_no)
- begin
- begin
- tk = @OP.match(self)
- @space_seen = TkSPACE === tk
- rescue SyntaxError => e
- raise RDoc::Error, "syntax error: #{e.message}" if
- @exception_on_syntax_error
-
- tk = TkError.new(line_no, char_no)
- end
- end while @skip_space and TkSPACE === tk
- if @read_auto_clean_up
- get_read
- end
-# throw :eof unless tk
- tk
- end
-
- ENINDENT_CLAUSE = [
- "case", "class", "def", "do", "for", "if",
- "module", "unless", "until", "while", "begin" #, "when"
- ]
- DEINDENT_CLAUSE = ["end" #, "when"
- ]
-
- PERCENT_LTYPE = {
- "q" => "\'",
- "Q" => "\"",
- "x" => "\`",
- "r" => "/",
- "w" => "]"
- }
-
- PERCENT_PAREN = {
- "{" => "}",
- "[" => "]",
- "<" => ">",
- "(" => ")"
- }
-
- Ltype2Token = {
- "\'" => TkSTRING,
- "\"" => TkSTRING,
- "\`" => TkXSTRING,
- "/" => TkREGEXP,
- "]" => TkDSTRING
- }
- Ltype2Token.default = TkSTRING
-
- DLtype2Token = {
- "\"" => TkDSTRING,
- "\`" => TkDXSTRING,
- "/" => TkDREGEXP,
- }
-
- def lex_init()
- @OP = IRB::SLex.new
- @OP.def_rules("\0", "\004", "\032") do |chars, io|
- Token(TkEND_OF_SCRIPT).set_text(chars)
- end
-
- @OP.def_rules(" ", "\t", "\f", "\r", "\13") do |chars, io|
- @space_seen = TRUE
- while (ch = getc) =~ /[ \t\f\r\13]/
- chars << ch
- end
- ungetc
- Token(TkSPACE).set_text(chars)
- end
-
- @OP.def_rule("#") do
- |op, io|
- identify_comment
- end
-
- @OP.def_rule("=begin", proc{@prev_char_no == 0 && peek(0) =~ /\s/}) do
- |op, io|
- str = op
- @ltype = "="
-
-
- begin
- line = ""
- begin
- ch = getc
- line << ch
- end until ch == "\n"
- str << line
- end until line =~ /^=end/
-
- ungetc
-
- @ltype = nil
-
- if str =~ /\A=begin\s+rdoc/i
- str.sub!(/\A=begin.*\n/, '')
- str.sub!(/^=end.*/m, '')
- Token(TkCOMMENT).set_text(str)
- else
- Token(TkRD_COMMENT)#.set_text(str)
- end
- end
-
- @OP.def_rule("\n") do
- print "\\n\n" if RDoc::RubyLex.debug?
- case @lex_state
- when EXPR_BEG, EXPR_FNAME, EXPR_DOT
- @continue = TRUE
- else
- @continue = FALSE
- @lex_state = EXPR_BEG
- end
- Token(TkNL).set_text("\n")
- end
-
- @OP.def_rules("*", "**",
- "!", "!=", "!~",
- "=", "==", "===",
- "=~", "<=>",
- "<", "<=",
- ">", ">=", ">>") do
- |op, io|
- @lex_state = EXPR_BEG
- Token(op).set_text(op)
- end
-
- @OP.def_rules("<<") do
- |op, io|
- tk = nil
- if @lex_state != EXPR_END && @lex_state != EXPR_CLASS &&
- (@lex_state != EXPR_ARG || @space_seen)
- c = peek(0)
- if /[-\w_\"\'\`]/ =~ c
- tk = identify_here_document
- end
- end
- if !tk
- @lex_state = EXPR_BEG
- tk = Token(op).set_text(op)
- end
- tk
- end
-
- @OP.def_rules("'", '"') do
- |op, io|
- identify_string(op)
- end
-
- @OP.def_rules("`") do
- |op, io|
- if @lex_state == EXPR_FNAME
- Token(op).set_text(op)
- else
- identify_string(op)
- end
- end
-
- @OP.def_rules('?') do
- |op, io|
- if @lex_state == EXPR_END
- @lex_state = EXPR_BEG
- Token(TkQUESTION).set_text(op)
- else
- ch = getc
- if @lex_state == EXPR_ARG && ch !~ /\s/
- ungetc
- @lex_state = EXPR_BEG
- Token(TkQUESTION).set_text(op)
- else
- str = op
- str << ch
- if (ch == '\\') #'
- str << read_escape
- end
- @lex_state = EXPR_END
- Token(TkINTEGER).set_text(str)
- end
- end
- end
-
- @OP.def_rules("&", "&&", "|", "||") do
- |op, io|
- @lex_state = EXPR_BEG
- Token(op).set_text(op)
- end
-
- @OP.def_rules("+=", "-=", "*=", "**=",
- "&=", "|=", "^=", "<<=", ">>=", "||=", "&&=") do
- |op, io|
- @lex_state = EXPR_BEG
- op =~ /^(.*)=$/
- Token(TkOPASGN, $1).set_text(op)
- end
-
- @OP.def_rule("+@", proc{@lex_state == EXPR_FNAME}) do |op, io|
- Token(TkUPLUS).set_text(op)
- end
-
- @OP.def_rule("-@", proc{@lex_state == EXPR_FNAME}) do |op, io|
- Token(TkUMINUS).set_text(op)
- end
-
- @OP.def_rules("+", "-") do
- |op, io|
- catch(:RET) do
- if @lex_state == EXPR_ARG
- if @space_seen and peek(0) =~ /[0-9]/
- throw :RET, identify_number(op)
- else
- @lex_state = EXPR_BEG
- end
- elsif @lex_state != EXPR_END and peek(0) =~ /[0-9]/
- throw :RET, identify_number(op)
- else
- @lex_state = EXPR_BEG
- end
- Token(op).set_text(op)
- end
- end
-
- @OP.def_rule(".") do
- @lex_state = EXPR_BEG
- if peek(0) =~ /[0-9]/
- ungetc
- identify_number("")
- else
- # for obj.if
- @lex_state = EXPR_DOT
- Token(TkDOT).set_text(".")
- end
- end
-
- @OP.def_rules("..", "...") do
- |op, io|
- @lex_state = EXPR_BEG
- Token(op).set_text(op)
- end
-
- lex_int2
- end
-
- def lex_int2
- @OP.def_rules("]", "}", ")") do
- |op, io|
- @lex_state = EXPR_END
- @indent -= 1
- Token(op).set_text(op)
- end
-
- @OP.def_rule(":") do
- if @lex_state == EXPR_END || peek(0) =~ /\s/
- @lex_state = EXPR_BEG
- tk = Token(TkCOLON)
- else
- @lex_state = EXPR_FNAME
- tk = Token(TkSYMBEG)
- end
- tk.set_text(":")
- end
-
- @OP.def_rule("::") do
- if @lex_state == EXPR_BEG or @lex_state == EXPR_ARG && @space_seen
- @lex_state = EXPR_BEG
- tk = Token(TkCOLON3)
- else
- @lex_state = EXPR_DOT
- tk = Token(TkCOLON2)
- end
- tk.set_text("::")
- end
-
- @OP.def_rule("/") do
- |op, io|
- if @lex_state == EXPR_BEG || @lex_state == EXPR_MID
- identify_string(op)
- elsif peek(0) == '='
- getc
- @lex_state = EXPR_BEG
- Token(TkOPASGN, :/).set_text("/=") #")
- elsif @lex_state == EXPR_ARG and @space_seen and peek(0) !~ /\s/
- identify_string(op)
- else
- @lex_state = EXPR_BEG
- Token("/").set_text(op)
- end
- end
-
- @OP.def_rules("^") do
- @lex_state = EXPR_BEG
- Token("^").set_text("^")
- end
-
- @OP.def_rules(",", ";") do
- |op, io|
- @lex_state = EXPR_BEG
- Token(op).set_text(op)
- end
-
- @OP.def_rule("~") do
- @lex_state = EXPR_BEG
- Token("~").set_text("~")
- end
-
- @OP.def_rule("~@", proc{@lex_state = EXPR_FNAME}) do
- @lex_state = EXPR_BEG
- Token("~").set_text("~@")
- end
-
- @OP.def_rule("(") do
- @indent += 1
- if @lex_state == EXPR_BEG || @lex_state == EXPR_MID
- @lex_state = EXPR_BEG
- tk = Token(TkfLPAREN)
- else
- @lex_state = EXPR_BEG
- tk = Token(TkLPAREN)
- end
- tk.set_text("(")
- end
-
- @OP.def_rule("[]", proc{@lex_state == EXPR_FNAME}) do
- Token("[]").set_text("[]")
- end
-
- @OP.def_rule("[]=", proc{@lex_state == EXPR_FNAME}) do
- Token("[]=").set_text("[]=")
- end
-
- @OP.def_rule("[") do
- @indent += 1
- if @lex_state == EXPR_FNAME
- t = Token(TkfLBRACK)
- else
- if @lex_state == EXPR_BEG || @lex_state == EXPR_MID
- t = Token(TkLBRACK)
- elsif @lex_state == EXPR_ARG && @space_seen
- t = Token(TkLBRACK)
- else
- t = Token(TkfLBRACK)
- end
- @lex_state = EXPR_BEG
- end
- t.set_text("[")
- end
-
- @OP.def_rule("{") do
- @indent += 1
- if @lex_state != EXPR_END && @lex_state != EXPR_ARG
- t = Token(TkLBRACE)
- else
- t = Token(TkfLBRACE)
- end
- @lex_state = EXPR_BEG
- t.set_text("{")
- end
-
- @OP.def_rule('\\') do #'
- if getc == "\n"
- @space_seen = true
- @continue = true
- Token(TkSPACE).set_text("\\\n")
- else
- ungetc
- Token("\\").set_text("\\") #"
- end
- end
-
- @OP.def_rule('%') do
- |op, io|
- if @lex_state == EXPR_BEG || @lex_state == EXPR_MID
- identify_quotation('%')
- elsif peek(0) == '='
- getc
- Token(TkOPASGN, "%").set_text("%=")
- elsif @lex_state == EXPR_ARG and @space_seen and peek(0) !~ /\s/
- identify_quotation('%')
- else
- @lex_state = EXPR_BEG
- Token("%").set_text("%")
- end
- end
-
- @OP.def_rule('$') do #'
- identify_gvar
- end
-
- @OP.def_rule('@') do
- if peek(0) =~ /[@\w_]/
- ungetc
- identify_identifier
- else
- Token("@").set_text("@")
- end
- end
-
- @OP.def_rule("__END__", proc{@prev_char_no == 0 && peek(0) =~ /[\r\n]/}) do
- throw :eof
- end
-
- @OP.def_rule("") do
- |op, io|
- printf "MATCH: start %s: %s\n", op, io.inspect if RDoc::RubyLex.debug?
- if peek(0) =~ /[0-9]/
- t = identify_number("")
- elsif peek(0) =~ /[\w_]/
- t = identify_identifier
- end
- printf "MATCH: end %s: %s\n", op, io.inspect if RDoc::RubyLex.debug?
- t
- end
- end
-
- def identify_gvar
- @lex_state = EXPR_END
- str = "$"
-
- tk = case ch = getc
- when /[~_*$?!@\/\\;,=:<>".]/ #"
- str << ch
- Token(TkGVAR, str)
-
- when "-"
- str << "-" << getc
- Token(TkGVAR, str)
-
- when "&", "`", "'", "+"
- str << ch
- Token(TkBACK_REF, str)
-
- when /[1-9]/
- str << ch
- while (ch = getc) =~ /[0-9]/
- str << ch
- end
- ungetc
- Token(TkNTH_REF)
- when /\w/
- ungetc
- ungetc
- return identify_identifier
- else
- ungetc
- Token("$")
- end
- tk.set_text(str)
- end
-
- def identify_identifier
- token = ""
- token.concat getc if peek(0) =~ /[$@]/
- token.concat getc if peek(0) == "@"
-
- while (ch = getc) =~ /\w|_/
- print ":", ch, ":" if RDoc::RubyLex.debug?
- token.concat ch
- end
- ungetc
-
- if ch == "!" or ch == "?"
- token.concat getc
- end
- # fix token
-
- # $stderr.puts "identifier - #{token}, state = #@lex_state"
-
- case token
- when /^\$/
- return Token(TkGVAR, token).set_text(token)
- when /^\@/
- @lex_state = EXPR_END
- return Token(TkIVAR, token).set_text(token)
- end
-
- if @lex_state != EXPR_DOT
- print token, "\n" if RDoc::RubyLex.debug?
-
- token_c, *trans = TkReading2Token[token]
- if token_c
- # reserved word?
-
- if (@lex_state != EXPR_BEG &&
- @lex_state != EXPR_FNAME &&
- trans[1])
- # modifiers
- token_c = TkSymbol2Token[trans[1]]
- @lex_state = trans[0]
- else
- if @lex_state != EXPR_FNAME
- if ENINDENT_CLAUSE.include?(token)
- @indent += 1
- elsif DEINDENT_CLAUSE.include?(token)
- @indent -= 1
- end
- @lex_state = trans[0]
- else
- @lex_state = EXPR_END
- end
- end
- return Token(token_c, token).set_text(token)
- end
- end
-
- if @lex_state == EXPR_FNAME
- @lex_state = EXPR_END
- if peek(0) == '='
- token.concat getc
- end
- elsif @lex_state == EXPR_BEG || @lex_state == EXPR_DOT
- @lex_state = EXPR_ARG
- else
- @lex_state = EXPR_END
- end
-
- if token[0, 1] =~ /[A-Z]/
- return Token(TkCONSTANT, token).set_text(token)
- elsif token[token.size - 1, 1] =~ /[!?]/
- return Token(TkFID, token).set_text(token)
- else
- return Token(TkIDENTIFIER, token).set_text(token)
- end
- end
-
- def identify_here_document
- ch = getc
- if ch == "-"
- ch = getc
- indent = true
- end
- if /['"`]/ =~ ch # '
- lt = ch
- quoted = ""
- while (c = getc) && c != lt
- quoted.concat c
- end
- else
- lt = '"'
- quoted = ch.dup
- while (c = getc) && c =~ /\w/
- quoted.concat c
- end
- ungetc
- end
-
- ltback, @ltype = @ltype, lt
- reserve = ""
-
- while ch = getc
- reserve << ch
- if ch == "\\" #"
- ch = getc
- reserve << ch
- elsif ch == "\n"
- break
- end
- end
-
- str = ""
- while (l = gets)
- l.chomp!
- l.strip! if indent
- break if l == quoted
- str << l.chomp << "\n"
- end
-
- @reader.divert_read_from(reserve)
-
- @ltype = ltback
- @lex_state = EXPR_END
- Token(Ltype2Token[lt], str).set_text(str.dump)
- end
-
- def identify_quotation(initial_char)
- ch = getc
- if lt = PERCENT_LTYPE[ch]
- initial_char += ch
- ch = getc
- elsif ch =~ /\W/
- lt = "\""
- else
- fail SyntaxError, "unknown type of %string ('#{ch}')"
- end
-# if ch !~ /\W/
-# ungetc
-# next
-# end
- #@ltype = lt
- @quoted = ch unless @quoted = PERCENT_PAREN[ch]
- identify_string(lt, @quoted, ch, initial_char)
- end
-
- def identify_number(start)
- str = start.dup
-
- if start == "+" or start == "-" or start == ""
- start = getc
- str << start
- end
-
- @lex_state = EXPR_END
-
- if start == "0"
- if peek(0) == "x"
- ch = getc
- str << ch
- match = /[0-9a-f_]/
- else
- match = /[0-7_]/
- end
- while ch = getc
- if ch !~ match
- ungetc
- break
- else
- str << ch
- end
- end
- return Token(TkINTEGER).set_text(str)
- end
-
- type = TkINTEGER
- allow_point = TRUE
- allow_e = TRUE
- while ch = getc
- case ch
- when /[0-9_]/
- str << ch
-
- when allow_point && "."
- type = TkFLOAT
- if peek(0) !~ /[0-9]/
- ungetc
- break
- end
- str << ch
- allow_point = false
-
- when allow_e && "e", allow_e && "E"
- str << ch
- type = TkFLOAT
- if peek(0) =~ /[+-]/
- str << getc
- end
- allow_e = false
- allow_point = false
- else
- ungetc
- break
- end
- end
- Token(type).set_text(str)
- end
-
- def identify_string(ltype, quoted = ltype, opener=nil, initial_char = nil)
- @ltype = ltype
- @quoted = quoted
- subtype = nil
-
- str = ""
- str << initial_char if initial_char
- str << (opener||quoted)
-
- nest = 0
- begin
- while ch = getc
- str << ch
- if @quoted == ch
- if nest == 0
- break
- else
- nest -= 1
- end
- elsif opener == ch
- nest += 1
- elsif @ltype != "'" && @ltype != "]" and ch == "#"
- ch = getc
- if ch == "{"
- subtype = true
- str << ch << skip_inner_expression
- else
- ungetc(ch)
- end
- elsif ch == '\\' #'
- str << read_escape
- end
- end
- if @ltype == "/"
- if peek(0) =~ /i|o|n|e|s/
- str << getc
- end
- end
- if subtype
- Token(DLtype2Token[ltype], str)
- else
- Token(Ltype2Token[ltype], str)
- end.set_text(str)
- ensure
- @ltype = nil
- @quoted = nil
- @lex_state = EXPR_END
- end
- end
-
- def skip_inner_expression
- res = ""
- nest = 0
- while (ch = getc)
- res << ch
- if ch == '}'
- break if nest.zero?
- nest -= 1
- elsif ch == '{'
- nest += 1
- end
- end
- res
- end
-
- def identify_comment
- @ltype = "#"
- comment = "#"
- while ch = getc
- if ch == "\\"
- ch = getc
- if ch == "\n"
- ch = " "
- else
- comment << "\\"
- end
- else
- if ch == "\n"
- @ltype = nil
- ungetc
- break
- end
- end
- comment << ch
- end
- return Token(TkCOMMENT).set_text(comment)
- end
-
- def read_escape
- res = ""
- case ch = getc
- when /[0-7]/
- ungetc ch
- 3.times do
- case ch = getc
- when /[0-7]/
- when nil
- break
- else
- ungetc
- break
- end
- res << ch
- end
-
- when "x"
- res << ch
- 2.times do
- case ch = getc
- when /[0-9a-fA-F]/
- when nil
- break
- else
- ungetc
- break
- end
- res << ch
- end
-
- when "M"
- res << ch
- if (ch = getc) != '-'
- ungetc
- else
- res << ch
- if (ch = getc) == "\\" #"
- res << ch
- res << read_escape
- else
- res << ch
- end
- end
-
- when "C", "c" #, "^"
- res << ch
- if ch == "C" and (ch = getc) != "-"
- ungetc
- else
- res << ch
- if (ch = getc) == "\\" #"
- res << ch
- res << read_escape
- else
- res << ch
- end
- end
- else
- res << ch
- end
- res
- end
-end
##
# Extracts code elements from a source file returning a TopLevel object
@@ -1439,10 +116,21 @@ end
# ##
# # :singleton-method: woo_hoo!
#
-# == Hidden methods
+# Additionally you can mark a method as an attribute by
+# using :attr:, :attr_reader:, :attr_writer: or :attr_accessor:. Just like
+# for :method:, the name is optional.
+#
+# ##
+# # :attr_reader: my_attr_name
+#
+# == Hidden methods and attributes
#
# You can provide documentation for methods that don't appear using
-# the :method: and :singleton-method: directives:
+# the :method:, :singleton-method: and :attr: directives:
+#
+# ##
+# # :attr_writer: ghost_writer
+# # There is an attribute here, but you can't see it!
#
# ##
# # :method: ghost_method
@@ -1462,10 +150,21 @@ class RDoc::Parser::Ruby < RDoc::Parser
include RDoc::RubyToken
include RDoc::TokenStream
+ include RDoc::Parser::RubyTools
+
+ ##
+ # RDoc::NormalClass type
NORMAL = "::"
+
+ ##
+ # RDoc::SingleClass type
+
SINGLE = "<<"
+ ##
+ # Creates a new Ruby parser.
+
def initialize(top_level, file_name, content, options, stats)
super
@@ -1473,13 +172,12 @@ class RDoc::Parser::Ruby < RDoc::Parser
@token_listeners = nil
@scanner = RDoc::RubyLex.new content, @options
@scanner.exception_on_syntax_error = false
+ @prev_seek = nil
- reset
- end
+ @encoding = nil
+ @encoding = @options.encoding if Object.const_defined? :Encoding
- def add_token_listener(obj)
- @token_listeners ||= []
- @token_listeners << obj
+ reset
end
##
@@ -1487,7 +185,8 @@ class RDoc::Parser::Ruby < RDoc::Parser
def collect_first_comment
skip_tkspace
- res = ''
+ comment = ''
+ comment.force_encoding @encoding if @encoding
first_line = true
tk = get_tk
@@ -1502,7 +201,7 @@ class RDoc::Parser::Ruby < RDoc::Parser
tk = get_tk
else
first_line = false
- res << tk.text << "\n"
+ comment << tk.text << "\n"
tk = get_tk
if TkNL === tk then
@@ -1514,21 +213,26 @@ class RDoc::Parser::Ruby < RDoc::Parser
unget_tk tk
- res
+ comment
end
+ ##
+ # Aborts with +msg+
+
def error(msg)
msg = make_message msg
- $stderr.puts msg
- exit(1)
+
+ abort msg
end
##
# Look for a 'call-seq' in the comment, and override the normal parameter
# stuff
+ #--
+ # TODO handle undent
def extract_call_seq(comment, meth)
- if comment.sub!(/:?call-seq:(.*?)^\s*\#?\s*$/m, '') then
+ if comment.sub!(/:?call-seq:(.*?)(^\s*#?\s*$|\z)/m, '') then
seq = $1
seq.gsub!(/^\s*\#\s*/, '')
meth.call_seq = seq
@@ -1537,6 +241,10 @@ class RDoc::Parser::Ruby < RDoc::Parser
meth
end
+ ##
+ # Looks for a true or false token. Returns false if TkFALSE or TkNIL are
+ # found.
+
def get_bool
skip_tkspace
tk = get_tk
@@ -1553,32 +261,37 @@ class RDoc::Parser::Ruby < RDoc::Parser
##
# Look for the name of a class of module (optionally with a leading :: or
- # with :: separated named) and return the ultimate name and container
+ # with :: separated named) and return the ultimate name, the associated
+ # container, and the given name (with the ::).
def get_class_or_module(container)
skip_tkspace
name_t = get_tk
+ given_name = ''
# class ::A -> A is in the top level
- if TkCOLON2 === name_t then
+ case name_t
+ when TkCOLON2, TkCOLON3 then # bug
name_t = get_tk
container = @top_level
+ given_name << '::'
end
- skip_tkspace(false)
+ skip_tkspace false
+ given_name << name_t.name
while TkCOLON2 === peek_tk do
prev_container = container
- container = container.find_module_named(name_t.name)
- if !container
-# warn("Couldn't find module #{name_t.name}")
+ container = container.find_module_named name_t.name
+ unless container then
container = prev_container.add_module RDoc::NormalModule, name_t.name
end
get_tk
name_t = get_tk
+ given_name << '::' << name_t.name
end
- skip_tkspace(false)
- return [container, name_t]
+ skip_tkspace false
+ return [container, name_t, given_name]
end
##
@@ -1590,12 +303,12 @@ class RDoc::Parser::Ruby < RDoc::Parser
res = ""
while TkCOLON2 === tk or TkCOLON3 === tk or TkCONSTANT === tk do
- res += tk.text
+ res += tk.name
tk = get_tk
end
unget_tk(tk)
- skip_tkspace(false)
+ skip_tkspace false
get_tkread # empty out read buffer
@@ -1617,11 +330,11 @@ class RDoc::Parser::Ruby < RDoc::Parser
def get_constant
res = ""
- skip_tkspace(false)
+ skip_tkspace false
tk = get_tk
while TkCOLON2 === tk or TkCOLON3 === tk or TkCONSTANT === tk do
- res += tk.text
+ res += tk.name
tk = get_tk
end
@@ -1636,166 +349,140 @@ class RDoc::Parser::Ruby < RDoc::Parser
# Get a constant that may be surrounded by parens
def get_constant_with_optional_parens
- skip_tkspace(false)
+ skip_tkspace false
+
nest = 0
+
while TkLPAREN === (tk = peek_tk) or TkfLPAREN === tk do
get_tk
- skip_tkspace(true)
+ skip_tkspace
nest += 1
end
name = get_constant
while nest > 0
- skip_tkspace(true)
+ skip_tkspace
tk = get_tk
nest -= 1 if TkRPAREN === tk
end
+
name
end
+ ##
+ # Extracts a name or symbol from the token stream.
+
def get_symbol_or_name
tk = get_tk
case tk
- when TkSYMBOL
- tk.text.sub(/^:/, '')
- when TkId, TkOp
+ when TkSYMBOL then
+ text = tk.text.sub(/^:/, '')
+
+ if TkASSIGN === peek_tk then
+ get_tk
+ text << '='
+ end
+
+ text
+ when TkId, TkOp then
tk.name
- when TkSTRING
+ when TkAMPER,
+ TkDSTRING,
+ TkSTAR,
+ TkSTRING then
tk.text
else
- raise "Name or symbol expected (got #{tk})"
- end
- end
-
- def get_tk
- tk = nil
- if @tokens.empty?
- tk = @scanner.token
- @read.push @scanner.get_read
- puts "get_tk1 => #{tk.inspect}" if $TOKEN_DEBUG
- else
- @read.push @unget_read.shift
- tk = @tokens.shift
- puts "get_tk2 => #{tk.inspect}" if $TOKEN_DEBUG
+ raise RDoc::Error, "Name or symbol expected (got #{tk})"
end
-
- if TkSYMBEG === tk then
- set_token_position(tk.line_no, tk.char_no)
- tk1 = get_tk
- if TkId === tk1 or TkOp === tk1 or TkSTRING === tk1 then
- if tk1.respond_to?(:name)
- tk = Token(TkSYMBOL).set_text(":" + tk1.name)
- else
- tk = Token(TkSYMBOL).set_text(":" + tk1.text)
- end
- # remove the identifier we just read (we're about to
- # replace it with a symbol)
- @token_listeners.each do |obj|
- obj.pop_token
- end if @token_listeners
- else
- warn("':' not followed by identifier or operator")
- tk = tk1
- end
- end
-
- # inform any listeners of our shiny new token
- @token_listeners.each do |obj|
- obj.add_token(tk)
- end if @token_listeners
-
- tk
- end
-
- def get_tkread
- read = @read.join("")
- @read = []
- read
end
##
# Look for directives in a normal comment block:
#
- # #-- - don't display comment from this point forward
+ # # :stopdoc:
+ # # Don't display comment from this point forward
#
- # This routine modifies it's parameter
-
- def look_for_directives_in(context, comment)
- preprocess = RDoc::Markup::PreProcess.new(@file_name,
- @options.rdoc_include)
+ # This routine modifies its +comment+ parameter.
- preprocess.handle(comment) do |directive, param|
+ def look_for_directives_in context, comment
+ @preprocess.handle comment, context do |directive, param|
case directive
- when 'enddoc' then
- throw :enddoc
- when 'main' then
- @options.main_page = param
- ''
- when 'method', 'singleton-method' then
- false # ignore
+ when 'method', 'singleton-method',
+ 'attr', 'attr_accessor', 'attr_reader', 'attr_writer' then
+ false # handled elsewhere
when 'section' then
- context.set_current_section(param, comment)
+ context.set_current_section param, comment
comment.replace ''
break
- when 'startdoc' then
- context.start_doc
- context.force_documentation = true
- ''
- when 'stopdoc' then
- context.stop_doc
- ''
- when 'title' then
- @options.title = param
- ''
- else
- warn "Unrecognized directive '#{directive}'"
- false
end
end
- remove_private_comments(comment)
+ remove_private_comments comment
end
- def make_message(msg)
- prefix = "\n" + @file_name + ":"
- if @scanner
- prefix << "#{@scanner.line_no}:#{@scanner.char_no}: "
- end
- return prefix + msg
+ ##
+ # Adds useful info about the parser to +message+
+
+ def make_message message
+ prefix = "#{@file_name}:"
+
+ prefix << "#{@scanner.line_no}:#{@scanner.char_no}:" if @scanner
+
+ "#{prefix} #{message}"
end
+ ##
+ # Creates an RDoc::Attr for the name following +tk+, setting the comment to
+ # +comment+.
+
def parse_attr(context, single, tk, comment)
- args = parse_symbol_arg(1)
- if args.size > 0
+ offset = tk.seek
+ line_no = tk.line_no
+
+ args = parse_symbol_arg 1
+ if args.size > 0 then
name = args[0]
rw = "R"
- skip_tkspace(false)
+ skip_tkspace false
tk = get_tk
+
if TkCOMMA === tk then
rw = "RW" if get_bool
else
unget_tk tk
end
- att = RDoc::Attr.new get_tkread, name, rw, comment
+
+ att = RDoc::Attr.new get_tkread, name, rw, comment, single == SINGLE
+ att.record_location @top_level
+ att.offset = offset
+ att.line = line_no
+
read_documentation_modifiers att, RDoc::ATTR_MODIFIERS
- if att.document_self
- context.add_attribute(att)
- end
+
+ context.add_attribute att
+
+ @stats.add_attribute att
else
- warn("'attr' ignored - looks like a variable")
+ warn "'attr' ignored - looks like a variable"
end
end
+ ##
+ # Creates an RDoc::Attr for each attribute listed after +tk+, setting the
+ # comment for each to +comment+.
+
def parse_attr_accessor(context, single, tk, comment)
+ offset = tk.seek
+ line_no = tk.line_no
+
args = parse_symbol_arg
- read = get_tkread
rw = "?"
- # If nodoc is given, don't document any of them
-
tmp = RDoc::CodeObject.new
read_documentation_modifiers tmp, RDoc::ATTR_MODIFIERS
+ # TODO In most other places we let the context keep track of document_self
+ # and add found items appropriately but here we do not. I'm not sure why.
return unless tmp.document_self
case tk.name
@@ -1803,38 +490,66 @@ class RDoc::Parser::Ruby < RDoc::Parser
when "attr_writer" then rw = "W"
when "attr_accessor" then rw = "RW"
else
- rw = @options.extra_accessor_flags[tk.name]
- rw = '?' if rw.nil?
+ rw = '?'
end
for name in args
- att = RDoc::Attr.new get_tkread, name, rw, comment
+ att = RDoc::Attr.new get_tkread, name, rw, comment, single == SINGLE
+ att.record_location @top_level
+ att.offset = offset
+ att.line = line_no
+
context.add_attribute att
+ @stats.add_attribute att
end
end
+ ##
+ # Parses an +alias+ in +context+ with +comment+
+
def parse_alias(context, single, tk, comment)
+ offset = tk.seek
+ line_no = tk.line_no
+
skip_tkspace
+
if TkLPAREN === peek_tk then
get_tk
skip_tkspace
end
+
new_name = get_symbol_or_name
- @scanner.instance_eval{@lex_state = EXPR_FNAME}
+
+ @scanner.instance_eval { @lex_state = EXPR_FNAME }
+
skip_tkspace
if TkCOMMA === peek_tk then
get_tk
skip_tkspace
end
- old_name = get_symbol_or_name
- al = RDoc::Alias.new get_tkread, old_name, new_name, comment
- read_documentation_modifiers al, RDoc::ATTR_MODIFIERS
- if al.document_self
- context.add_alias(al)
+ begin
+ old_name = get_symbol_or_name
+ rescue RDoc::Error
+ return
end
+
+ al = RDoc::Alias.new(get_tkread, old_name, new_name, comment,
+ single == SINGLE)
+ al.record_location @top_level
+ al.offset = offset
+ al.line = line_no
+
+ read_documentation_modifiers al, RDoc::ATTR_MODIFIERS
+ context.add_alias al
+ @stats.add_alias al
+
+ al
end
+ ##
+ # Extracts call parameters from the token stream.
+
def parse_call_parameters(tk)
end_token = case tk
when TkLPAREN, TkfLPAREN
@@ -1847,184 +562,345 @@ class RDoc::Parser::Ruby < RDoc::Parser
nest = 0
loop do
- case tk
- when TkSEMICOLON
- break
- when TkLPAREN, TkfLPAREN
- nest += 1
- when end_token
- if end_token == TkRPAREN
- nest -= 1
- break if @scanner.lex_state == EXPR_END and nest <= 0
- else
- break unless @scanner.continue
- end
- when TkCOMMENT
- unget_tk(tk)
- break
+ case tk
+ when TkSEMICOLON
+ break
+ when TkLPAREN, TkfLPAREN
+ nest += 1
+ when end_token
+ if end_token == TkRPAREN
+ nest -= 1
+ break if @scanner.lex_state == EXPR_END and nest <= 0
+ else
+ break unless @scanner.continue
end
- tk = get_tk
+ when TkCOMMENT, TkASSIGN, TkOPASGN
+ unget_tk(tk)
+ break
+ when nil then
+ break
+ end
+ tk = get_tk
end
res = get_tkread.tr("\n", " ").strip
res = "" if res == ";"
res
end
+ ##
+ # Parses a class in +context+ with +comment+
+
def parse_class(container, single, tk, comment)
- container, name_t = get_class_or_module(container)
+ offset = tk.seek
+ line_no = tk.line_no
+
+ declaration_context = container
+ container, name_t, given_name = get_class_or_module container
case name_t
when TkCONSTANT
name = name_t.name
- superclass = "Object"
+ superclass = '::Object'
if TkLT === peek_tk then
get_tk
- skip_tkspace(true)
+ skip_tkspace
superclass = get_class_specification
- superclass = "<unknown>" if superclass.empty?
+ superclass = '(unknown)' if superclass.empty?
end
cls_type = single == SINGLE ? RDoc::SingleClass : RDoc::NormalClass
- cls = container.add_class cls_type, name, superclass
-
- @stats.add_class cls
+ cls = declaration_context.add_class cls_type, given_name, superclass
+ cls.ignore unless container.document_children
read_documentation_modifiers cls, RDoc::CLASS_MODIFIERS
cls.record_location @top_level
+ cls.offset = offset
+ cls.line = line_no
- parse_statements cls
- cls.comment = comment
+ cls.add_comment comment, @top_level
+ @top_level.add_to_classes_or_modules cls
+ @stats.add_class cls
+
+ parse_statements cls
when TkLSHFT
case name = get_class_specification
when "self", container.name
- parse_statements(container, SINGLE)
+ parse_statements container, SINGLE
else
- other = RDoc::TopLevel.find_class_named(name)
- unless other
- # other = @top_level.add_class(NormalClass, name, nil)
- # other.record_location(@top_level)
- # other.comment = comment
- other = RDoc::NormalClass.new "Dummy", nil
+ other = RDoc::TopLevel.find_class_named name
+
+ unless other then
+ other = container.add_module RDoc::NormalModule, name
+ other.record_location @top_level
+ other.offset = offset
+ other.line = line_no
+
+ other.add_comment comment, @top_level
+ end
+
+ # notify :nodoc: all if not a constant-named class/module
+ # (and remove any comment)
+ unless name =~ /\A(::)?[A-Z]/ then
+ other.document_self = nil
+ other.document_children = false
+ other.clear_comment
end
+ @top_level.add_to_classes_or_modules other
@stats.add_class other
read_documentation_modifiers other, RDoc::CLASS_MODIFIERS
parse_statements(other, SINGLE)
end
-
else
warn("Expected class name or '<<'. Got #{name_t.class}: #{name_t.text.inspect}")
end
end
- def parse_constant(container, single, tk, comment)
+ ##
+ # Parses a constant in +context+ with +comment+
+
+ def parse_constant container, tk, comment
+ offset = tk.seek
+ line_no = tk.line_no
+
name = tk.name
- skip_tkspace(false)
+ skip_tkspace false
+
+ return unless name =~ /^\w+$/
+
eq_tk = get_tk
unless TkASSIGN === eq_tk then
- unget_tk(eq_tk)
- return
+ unget_tk eq_tk
+ return false
end
-
nest = 0
get_tkread
tk = get_tk
+
if TkGT === tk then
- unget_tk(tk)
- unget_tk(eq_tk)
- return
+ unget_tk tk
+ unget_tk eq_tk
+ return false
end
+ rhs_name = ''
+
loop do
- case tk
- when TkSEMICOLON
+ case tk
+ when TkSEMICOLON then
+ break if nest <= 0
+ when TkLPAREN, TkfLPAREN, TkLBRACE, TkfLBRACE, TkLBRACK, TkfLBRACK,
+ TkDO, TkIF, TkUNLESS, TkCASE, TkDEF, TkBEGIN then
+ nest += 1
+ when TkRPAREN, TkRBRACE, TkRBRACK, TkEND then
+ nest -= 1
+ when TkCOMMENT then
+ if nest <= 0 &&
+ (@scanner.lex_state == EXPR_END || !@scanner.continue) then
+ unget_tk tk
break
- when TkLPAREN, TkfLPAREN, TkLBRACE, TkLBRACK, TkDO
- nest += 1
- when TkRPAREN, TkRBRACE, TkRBRACK, TkEND
- nest -= 1
- when TkCOMMENT
- if nest <= 0 && @scanner.lex_state == EXPR_END
- unget_tk(tk)
- break
- end
- when TkNL
- if (nest <= 0) && ((@scanner.lex_state == EXPR_END) || (!@scanner.continue))
- unget_tk(tk)
- break
- end
end
- tk = get_tk
+ when TkCONSTANT then
+ rhs_name << tk.name
+
+ if nest <= 0 and TkNL === peek_tk then
+ mod = if rhs_name =~ /^::/ then
+ RDoc::TopLevel.find_class_or_module rhs_name
+ else
+ container.find_module_named rhs_name
+ end
+
+ container.add_module_alias mod, name, @top_level if mod
+ break
+ end
+ when TkNL then
+ if nest <= 0 &&
+ (@scanner.lex_state == EXPR_END || !@scanner.continue) then
+ unget_tk tk
+ break
+ end
+ when TkCOLON2, TkCOLON3 then
+ rhs_name << '::'
+ when nil then
+ break
+ end
+ tk = get_tk
end
- res = get_tkread.tr("\n", " ").strip
+ res = get_tkread.gsub(/^[ \t]+/, '').strip
res = "" if res == ";"
con = RDoc::Constant.new name, res, comment
+ con.record_location @top_level
+ con.offset = offset
+ con.line = line_no
read_documentation_modifiers con, RDoc::CONSTANT_MODIFIERS
- if con.document_self
- container.add_constant(con)
- end
+ @stats.add_constant con
+ container.add_constant con
+ true
end
+ ##
+ # Generates an RDoc::Method or RDoc::Attr from +comment+ by looking for
+ # :method: or :attr: directives in +comment+.
+
def parse_comment(container, tk, comment)
- line_no = tk.line_no
column = tk.char_no
+ offset = tk.seek
+ line_no = tk.line_no
singleton = !!comment.sub!(/(^# +:?)(singleton-)(method:)/, '\1\3')
+ # REFACTOR
if comment.sub!(/^# +:?method: *(\S*).*?\n/i, '') then
name = $1 unless $1.empty?
- else
- return nil
- end
- meth = RDoc::GhostMethod.new get_tkread, name
- meth.singleton = singleton
+ meth = RDoc::GhostMethod.new get_tkread, name
+ meth.record_location @top_level
+ meth.singleton = singleton
+ meth.offset = offset
+ meth.line = line_no
- @stats.add_method meth
+ meth.start_collecting_tokens
+ indent = TkSPACE.new nil, 1, 1
+ indent.set_text " " * column
- meth.start_collecting_tokens
- indent = TkSPACE.new 1, 1
- indent.set_text " " * column
+ position_comment = TkCOMMENT.new nil, line_no, 1
+ position_comment.set_text "# File #{@top_level.absolute_name}, line #{line_no}"
+ meth.add_tokens [position_comment, NEWLINE_TOKEN, indent]
- position_comment = TkCOMMENT.new(line_no, 1, "# File #{@top_level.file_absolute_name}, line #{line_no}")
- meth.add_tokens [position_comment, NEWLINE_TOKEN, indent]
+ meth.params = ''
- meth.params = ''
+ extract_call_seq comment, meth
- extract_call_seq comment, meth
+ return unless meth.name
- container.add_method meth if meth.document_self
+ container.add_method meth
- meth.comment = comment
+ meth.comment = comment
+
+ @stats.add_method meth
+ elsif comment.sub!(/# +:?(attr(_reader|_writer|_accessor)?): *(\S*).*?\n/i, '') then
+ rw = case $1
+ when 'attr_reader' then 'R'
+ when 'attr_writer' then 'W'
+ else 'RW'
+ end
+
+ name = $3 unless $3.empty?
+
+ # TODO authorize 'singleton-attr...'?
+ att = RDoc::Attr.new get_tkread, name, rw, comment
+ att.record_location @top_level
+ att.offset = offset
+ att.line = line_no
+
+ container.add_attribute att
+ @stats.add_attribute att
+ end
+
+ true
end
- def parse_include(context, comment)
+ ##
+ # Parses an +include+ in +context+ with +comment+
+
+ def parse_include context, comment
loop do
skip_tkspace_comment
name = get_constant_with_optional_parens
- context.add_include RDoc::Include.new(name, comment) unless name.empty?
+
+ unless name.empty? then
+ incl = context.add_include RDoc::Include.new(name, comment)
+ incl.record_location @top_level
+ end
return unless TkCOMMA === peek_tk
+
get_tk
end
end
##
+ # Parses a meta-programmed attribute and creates an RDoc::Attr.
+ #
+ # To create foo and bar attributes on class C with comment "My attributes":
+ #
+ # class C
+ #
+ # ##
+ # # :attr:
+ # #
+ # # My attributes
+ #
+ # my_attr :foo, :bar
+ #
+ # end
+ #
+ # To create a foo attribute on class C with comment "My attribute":
+ #
+ # class C
+ #
+ # ##
+ # # :attr: foo
+ # #
+ # # My attribute
+ #
+ # my_attr :foo, :bar
+ #
+ # end
+
+ def parse_meta_attr(context, single, tk, comment)
+ args = parse_symbol_arg
+ rw = "?"
+
+ # If nodoc is given, don't document any of them
+
+ tmp = RDoc::CodeObject.new
+ read_documentation_modifiers tmp, RDoc::ATTR_MODIFIERS
+
+ if comment.sub!(/^# +:?(attr(_reader|_writer|_accessor)?): *(\S*).*?\n/i, '') then
+ rw = case $1
+ when 'attr_reader' then 'R'
+ when 'attr_writer' then 'W'
+ else 'RW'
+ end
+ name = $3 unless $3.empty?
+ end
+
+ if name then
+ att = RDoc::Attr.new get_tkread, name, rw, comment, single == SINGLE
+ att.record_location @top_level
+
+ context.add_attribute att
+ @stats.add_attribute att
+ else
+ args.each do |attr_name|
+ att = RDoc::Attr.new(get_tkread, attr_name, rw, comment,
+ single == SINGLE)
+ att.record_location @top_level
+
+ context.add_attribute att
+ @stats.add_attribute att
+ end
+ end
+ end
+
+ ##
# Parses a meta-programmed method
def parse_meta_method(container, single, tk, comment)
- line_no = tk.line_no
column = tk.char_no
+ offset = tk.seek
+ line_no = tk.line_no
start_collecting_tokens
add_token tk
@@ -2044,176 +920,217 @@ class RDoc::Parser::Ruby < RDoc::Parser
when TkSYMBOL then
name = name_t.text[1..-1]
when TkSTRING then
- name = name_t.text[1..-2]
+ name = name_t.value[1..-2]
+ when TkASSIGN then # ignore
+ remove_token_listener self
+ return
else
- warn "#{container.top_level.file_relative_name}:#{name_t.line_no} unknown name token #{name_t.inspect} for meta-method"
+ warn "unknown name token #{name_t.inspect} for meta-method '#{tk.name}'"
name = 'unknown'
end
end
meth = RDoc::MetaMethod.new get_tkread, name
+ meth.record_location @top_level
+ meth.offset = offset
+ meth.line = line_no
meth.singleton = singleton
- @stats.add_method meth
-
remove_token_listener self
meth.start_collecting_tokens
- indent = TkSPACE.new 1, 1
+ indent = TkSPACE.new nil, 1, 1
indent.set_text " " * column
- position_comment = TkCOMMENT.new(line_no, 1, "# File #{@top_level.file_absolute_name}, line #{line_no}")
+ position_comment = TkCOMMENT.new nil, line_no, 1
+ position_comment.value = "# File #{@top_level.absolute_name}, line #{line_no}"
meth.add_tokens [position_comment, NEWLINE_TOKEN, indent]
meth.add_tokens @token_stream
- add_token_listener meth
+ token_listener meth do
+ meth.params = ''
- meth.params = ''
+ extract_call_seq comment, meth
- extract_call_seq comment, meth
-
- container.add_method meth if meth.document_self
+ container.add_method meth
- last_tk = tk
+ last_tk = tk
- while tk = get_tk do
- case tk
- when TkSEMICOLON then
- break
- when TkNL then
- break unless last_tk and TkCOMMA === last_tk
- when TkSPACE then
- # expression continues
- else
- last_tk = tk
+ while tk = get_tk do
+ case tk
+ when TkSEMICOLON then
+ break
+ when TkNL then
+ break unless last_tk and TkCOMMA === last_tk
+ when TkSPACE then
+ # expression continues
+ when TkDO then
+ unget_tk tk
+ parse_statements container, single, meth
+ break
+ else
+ last_tk = tk
+ end
end
end
- remove_token_listener meth
-
meth.comment = comment
+
+ @stats.add_method meth
end
##
- # Parses a method
+ # Parses a normal method defined by +def+
def parse_method(container, single, tk, comment)
- line_no = tk.line_no
+ added_container = nil
+ meth = nil
+ name = nil
column = tk.char_no
+ offset = tk.seek
+ line_no = tk.line_no
start_collecting_tokens
- add_token(tk)
- add_token_listener(self)
-
- @scanner.instance_eval do @lex_state = EXPR_FNAME end
-
- skip_tkspace(false)
- name_t = get_tk
- back_tk = skip_tkspace
- meth = nil
- added_container = false
+ add_token tk
- dot = get_tk
- if TkDOT === dot or TkCOLON2 === dot then
+ token_listener self do
@scanner.instance_eval do @lex_state = EXPR_FNAME end
+
skip_tkspace
- name_t2 = get_tk
+ name_t = get_tk
+ back_tk = skip_tkspace
+ meth = nil
+ added_container = false
- case name_t
- when TkSELF then
- name = name_t2.name
- when TkCONSTANT then
- name = name_t2.name
- prev_container = container
- container = container.find_module_named(name_t.name)
- unless container then
- added_container = true
- obj = name_t.name.split("::").inject(Object) do |state, item|
- state.const_get(item)
- end rescue nil
-
- type = obj.class == Class ? RDoc::NormalClass : RDoc::NormalModule
-
- unless [Class, Module].include?(obj.class) then
- warn("Couldn't find #{name_t.name}. Assuming it's a module")
- end
+ dot = get_tk
+ if TkDOT === dot or TkCOLON2 === dot then
+ @scanner.instance_eval do @lex_state = EXPR_FNAME end
+ skip_tkspace
+ name_t2 = get_tk
+
+ case name_t
+ when TkSELF, TkMOD then
+ name = name_t2.name
+ when TkCONSTANT then
+ name = name_t2.name
+ prev_container = container
+ container = container.find_module_named(name_t.name)
+ unless container then
+ added_container = true
+ obj = name_t.name.split("::").inject(Object) do |state, item|
+ state.const_get(item)
+ end rescue nil
+
+ type = obj.class == Class ? RDoc::NormalClass : RDoc::NormalModule
+
+ unless [Class, Module].include?(obj.class) then
+ warn("Couldn't find #{name_t.name}. Assuming it's a module")
+ end
- if type == RDoc::NormalClass then
- container = prev_container.add_class(type, name_t.name, obj.superclass.name)
- else
- container = prev_container.add_module(type, name_t.name)
+ if type == RDoc::NormalClass then
+ sclass = obj.superclass ? obj.superclass.name : nil
+ container = prev_container.add_class type, name_t.name, sclass
+ else
+ container = prev_container.add_module type, name_t.name
+ end
+
+ container.record_location @top_level
end
+ when TkIDENTIFIER, TkIVAR, TkGVAR then
+ dummy = RDoc::Context.new
+ dummy.parent = container
+ skip_method dummy
+ return
+ when TkTRUE, TkFALSE, TkNIL then
+ klass_name = "#{name_t.name.capitalize}Class"
+ container = RDoc::TopLevel.find_class_named klass_name
+ container ||= @top_level.add_class RDoc::NormalClass, klass_name
- container.record_location @top_level
+ name = name_t2.name
+ else
+ warn "unexpected method name token #{name_t.inspect}"
+ # break
+ skip_method container
+ return
end
+
+ meth = RDoc::AnyMethod.new(get_tkread, name)
+ meth.singleton = true
else
- # warn("Unexpected token '#{name_t2.inspect}'")
- # break
- skip_method(container)
- return
- end
+ unget_tk dot
+ back_tk.reverse_each do |token|
+ unget_tk token
+ end
- meth = RDoc::AnyMethod.new(get_tkread, name)
- meth.singleton = true
- else
- unget_tk dot
- back_tk.reverse_each do |token|
- unget_tk token
- end
- name = name_t.name
+ name = case name_t
+ when TkSTAR, TkAMPER then
+ name_t.text
+ else
+ unless name_t.respond_to? :name then
+ warn "expected method name token, . or ::, got #{name_t.inspect}"
+ skip_method container
+ return
+ end
+ name_t.name
+ end
- meth = RDoc::AnyMethod.new get_tkread, name
- meth.singleton = (single == SINGLE)
+ meth = RDoc::AnyMethod.new get_tkread, name
+ meth.singleton = (single == SINGLE)
+ end
end
- @stats.add_method meth
-
- remove_token_listener self
+ meth.record_location @top_level
+ meth.offset = offset
+ meth.line = line_no
meth.start_collecting_tokens
- indent = TkSPACE.new 1, 1
+ indent = TkSPACE.new nil, 1, 1
indent.set_text " " * column
- token = TkCOMMENT.new(line_no, 1, "# File #{@top_level.file_absolute_name}, line #{line_no}")
+ token = TkCOMMENT.new nil, line_no, 1
+ token.set_text "# File #{@top_level.absolute_name}, line #{line_no}"
meth.add_tokens [token, NEWLINE_TOKEN, indent]
meth.add_tokens @token_stream
- add_token_listener meth
-
- @scanner.instance_eval do @continue = false end
- parse_method_parameters meth
+ token_listener meth do
+ @scanner.instance_eval do @continue = false end
+ parse_method_parameters meth
- if meth.document_self then
- container.add_method meth
- elsif added_container then
- container.document_self = false
- end
+ if meth.document_self then
+ container.add_method meth
+ elsif added_container then
+ container.document_self = false
+ end
- # Having now read the method parameters and documentation modifiers, we
- # now know whether we have to rename #initialize to ::new
+ # Having now read the method parameters and documentation modifiers, we
+ # now know whether we have to rename #initialize to ::new
- if name == "initialize" && !meth.singleton then
- if meth.dont_rename_initialize then
- meth.visibility = :protected
- else
- meth.singleton = true
- meth.name = "new"
- meth.visibility = :public
+ if name == "initialize" && !meth.singleton then
+ if meth.dont_rename_initialize then
+ meth.visibility = :protected
+ else
+ meth.singleton = true
+ meth.name = "new"
+ meth.visibility = :public
+ end
end
- end
-
- parse_statements(container, single, meth)
- remove_token_listener(meth)
+ parse_statements container, single, meth
+ end
extract_call_seq comment, meth
meth.comment = comment
+
+ @stats.add_method meth
end
+ ##
+ # Extracts +yield+ parameters from +method+
+
def parse_method_or_yield_parameters(method = nil,
modifiers = RDoc::METHOD_MODIFIERS)
- skip_tkspace(false)
+ skip_tkspace false
tk = get_tk
# Little hack going on here. In the statement
@@ -2232,33 +1149,43 @@ class RDoc::Parser::Ruby < RDoc::Parser
nest = 0
loop do
- case tk
- when TkSEMICOLON
+ case tk
+ when TkSEMICOLON then
+ break if nest == 0
+ when TkLBRACE, TkfLBRACE then
+ nest += 1
+ when TkRBRACE then
+ nest -= 1
+ if nest <= 0
+ # we might have a.each { |i| yield i }
+ unget_tk(tk) if nest < 0
break
- when TkLBRACE
- nest += 1
- when TkRBRACE
- # we might have a.each {|i| yield i }
- unget_tk(tk) if nest.zero?
+ end
+ when TkLPAREN, TkfLPAREN then
+ nest += 1
+ when end_token then
+ if end_token == TkRPAREN
nest -= 1
- break if nest <= 0
- when TkLPAREN, TkfLPAREN
- nest += 1
- when end_token
- if end_token == TkRPAREN
- nest -= 1
- break if @scanner.lex_state == EXPR_END and nest <= 0
- else
- break unless @scanner.continue
- end
- when method && method.block_params.nil? && TkCOMMENT
- unget_tk(tk)
- read_documentation_modifiers(method, modifiers)
+ break if @scanner.lex_state == EXPR_END and nest <= 0
+ else
+ break unless @scanner.continue
end
+ when TkRPAREN then
+ nest -= 1
+ when method && method.block_params.nil? && TkCOMMENT then
+ unget_tk tk
+ read_documentation_modifiers method, modifiers
+ @read.pop
+ when TkCOMMENT then
+ @read.pop
+ when nil then
+ break
+ end
tk = get_tk
end
- res = get_tkread.tr("\n", " ").strip
- res = "" if res == ";"
+
+ res = get_tkread.gsub(/\s+/, ' ').strip
+ res = '' if res == ';'
res
end
@@ -2271,58 +1198,64 @@ class RDoc::Parser::Ruby < RDoc::Parser
# and add this as the block_params for the method
def parse_method_parameters(method)
- res = parse_method_or_yield_parameters(method)
- res = "(" + res + ")" unless res[0] == ?(
+ res = parse_method_or_yield_parameters method
+
+ res = "(#{res})" unless res =~ /\A\(/
method.params = res unless method.params
- if method.block_params.nil?
- skip_tkspace(false)
+
+ if method.block_params.nil? then
+ skip_tkspace false
read_documentation_modifiers method, RDoc::METHOD_MODIFIERS
end
end
+ ##
+ # Parses an RDoc::NormalModule in +container+ with +comment+
+
def parse_module(container, single, tk, comment)
- container, name_t = get_class_or_module(container)
+ container, name_t, = get_class_or_module container
name = name_t.name
mod = container.add_module RDoc::NormalModule, name
mod.record_location @top_level
- @stats.add_module mod
-
read_documentation_modifiers mod, RDoc::CLASS_MODIFIERS
+ mod.add_comment comment, @top_level
parse_statements(mod)
- mod.comment = comment
+
+ @top_level.add_to_classes_or_modules mod
+ @stats.add_module mod
end
+ ##
+ # Parses an RDoc::Require in +context+ containing +comment+
+
def parse_require(context, comment)
skip_tkspace_comment
tk = get_tk
+
if TkLPAREN === tk then
skip_tkspace_comment
tk = get_tk
end
- name = nil
- case tk
- when TkSTRING
- name = tk.text
- # when TkCONSTANT, TkIDENTIFIER, TkIVAR, TkGVAR
- # name = tk.name
- when TkDSTRING
- warn "Skipping require of dynamic string: #{tk.text}"
- # else
- # warn "'require' used as variable"
- end
- if name
- context.add_require RDoc::Require.new(name, comment)
+ name = tk.text if TkSTRING === tk
+
+ if name then
+ @top_level.add_require RDoc::Require.new(name, comment)
else
- unget_tk(tk)
+ unget_tk tk
end
end
+ ##
+ # The core of the ruby parser.
+
def parse_statements(container, single = NORMAL, current_method = nil,
comment = '')
+ comment.force_encoding @encoding if @encoding
+
nest = 1
save_visibility = container.visibility
@@ -2330,28 +1263,34 @@ class RDoc::Parser::Ruby < RDoc::Parser
while tk = get_tk do
keep_comment = false
+ try_parse_comment = false
non_comment_seen = true unless TkCOMMENT === tk
case tk
when TkNL then
- skip_tkspace true # Skip blanks and newlines
+ skip_tkspace
tk = get_tk
if TkCOMMENT === tk then
if non_comment_seen then
# Look for RDoc in a comment about to be thrown away
- parse_comment container, tk, comment unless comment.empty?
+ non_comment_seen = parse_comment container, tk, comment unless
+ comment.empty?
comment = ''
- non_comment_seen = false
+ comment.force_encoding @encoding if @encoding
end
while TkCOMMENT === tk do
comment << tk.text << "\n"
- tk = get_tk # this is the newline
- skip_tkspace(false) # leading spaces
+
tk = get_tk
+
+ if TkNL === tk then
+ skip_tkspace false # leading spaces
+ tk = get_tk
+ end
end
unless comment.empty? then
@@ -2367,15 +1306,11 @@ class RDoc::Parser::Ruby < RDoc::Parser
non_comment_seen = true
end
- unget_tk tk
+ unget_tk tk # TODO peek instead of get then unget
keep_comment = true
when TkCLASS then
- if container.document_children then
- parse_class container, single, tk, comment
- else
- nest += 1
- end
+ parse_class container, single, tk, comment
when TkMODULE then
if container.document_children then
@@ -2385,21 +1320,15 @@ class RDoc::Parser::Ruby < RDoc::Parser
end
when TkDEF then
- if container.document_self then
- parse_method container, single, tk, comment
- else
- nest += 1
- end
+ parse_method container, single, tk, comment
when TkCONSTANT then
- if container.document_self then
- parse_constant container, single, tk, comment
+ unless parse_constant container, tk, comment then
+ try_parse_comment = true
end
when TkALIAS then
- if container.document_self then
- parse_alias container, single, tk, comment
- end
+ parse_alias container, single, tk, comment unless current_method
when TkYIELD then
if current_method.nil? then
@@ -2412,7 +1341,7 @@ class RDoc::Parser::Ruby < RDoc::Parser
# We can't solve the general case, but we can handle most occurrences by
# ignoring a do at the end of a line.
- when TkUNTIL, TkWHILE then
+ when TkUNTIL, TkWHILE then
nest += 1
skip_optional_do_after_expression
@@ -2434,15 +1363,20 @@ class RDoc::Parser::Ruby < RDoc::Parser
keep_comment = true
when 'attr' then
parse_attr container, single, tk, comment
- when /^attr_(reader|writer|accessor)$/, @options.extra_accessors then
+ when /^attr_(reader|writer|accessor)$/ then
parse_attr_accessor container, single, tk, comment
when 'alias_method' then
- if container.document_self then
- parse_alias container, single, tk, comment
- end
+ parse_alias container, single, tk, comment
+ when 'require', 'include' then
+ # ignore
else
- if container.document_self and comment =~ /\A#\#$/ then
- parse_meta_method container, single, tk, comment
+ if comment =~ /\A#\#$/ then
+ case comment
+ when /^# +:?attr(_reader|_writer|_accessor)?:/ then
+ parse_meta_attr container, single, tk, comment
+ else
+ parse_meta_method container, single, tk, comment
+ end
end
end
end
@@ -2459,23 +1393,42 @@ class RDoc::Parser::Ruby < RDoc::Parser
if nest == 0 then
read_documentation_modifiers container, RDoc::CLASS_MODIFIERS
container.ongoing_visibility = save_visibility
+
+ parse_comment container, tk, comment unless comment.empty?
+
return
end
+ else
+ try_parse_comment = nest == 1
+ end
+ if try_parse_comment then
+ non_comment_seen = parse_comment container, tk, comment unless
+ comment.empty?
+
+ keep_comment = false
end
- comment = '' unless keep_comment
+ unless keep_comment then
+ comment = ''
+ comment.force_encoding @encoding if @encoding
+ end
begin
get_tkread
- skip_tkspace(false)
+ skip_tkspace false
end while peek_tk == TkNL
end
end
+ ##
+ # Parse up to +no+ symbol arguments
+
def parse_symbol_arg(no = nil)
args = []
+
skip_tkspace_comment
+
case tk = get_tk
when TkLPAREN
loop do
@@ -2503,7 +1456,7 @@ class RDoc::Parser::Ruby < RDoc::Parser
end
loop do
- skip_tkspace(false)
+ skip_tkspace false
tk1 = get_tk
unless TkCOMMA === tk1 then
@@ -2518,28 +1471,43 @@ class RDoc::Parser::Ruby < RDoc::Parser
end
end
end
+
args
end
+ ##
+ # Returns symbol text from the next token
+
def parse_symbol_in_arg
case tk = get_tk
when TkSYMBOL
tk.text.sub(/^:/, '')
when TkSTRING
eval @read[-1]
+ when TkDSTRING, TkIDENTIFIER then
+ nil # ignore
else
warn("Expected symbol or string, got #{tk.inspect}") if $DEBUG_RDOC
nil
end
end
- def parse_toplevel_statements(container)
+ ##
+ # Parses statements in the top-level +container+
+
+ def parse_top_level_statements container
comment = collect_first_comment
- look_for_directives_in(container, comment)
- container.comment = comment unless comment.empty?
+ look_for_directives_in container, comment
+
+ # HACK move if to RDoc::Context#comment=
+ container.comment = comment if container.document_self unless comment.empty?
+
parse_statements container, NORMAL, nil, comment
end
+ ##
+ # Determines the visibility in +container+ from +tk+
+
def parse_visibility(container, single, tk)
singleton = (single == SINGLE)
@@ -2559,7 +1527,7 @@ class RDoc::Parser::Ruby < RDoc::Parser
singleton = true
:public
else
- raise "Invalid visibility: #{tk.name}"
+ raise RDoc::Error, "Invalid visibility: #{tk.name}"
end
skip_tkspace_comment false
@@ -2573,56 +1541,57 @@ class RDoc::Parser::Ruby < RDoc::Parser
when TkNL, TkUNLESS_MOD, TkIF_MOD, TkSEMICOLON then
container.ongoing_visibility = vis
else
- if vis_type == 'module_function' then
+ new_methods = []
+
+ case vis_type
+ when 'module_function' then
args = parse_symbol_arg
container.set_visibility_for args, :private, false
- module_functions = []
-
container.methods_matching args do |m|
s_m = m.dup
- s_m.singleton = true if RDoc::AnyMethod === s_m
- s_m.visibility = :public
- module_functions << s_m
+ s_m.record_location @top_level
+ s_m.singleton = true
+ new_methods << s_m
end
+ when 'public_class_method', 'private_class_method' then
+ args = parse_symbol_arg
- module_functions.each do |s_m|
- case s_m
- when RDoc::AnyMethod then
- container.add_method s_m
- when RDoc::Attr then
- container.add_attribute s_m
+ container.methods_matching args, true do |m|
+ if m.parent != container then
+ m = m.dup
+ m.record_location @top_level
+ new_methods << m
end
+
+ m.visibility = vis
end
else
args = parse_symbol_arg
container.set_visibility_for args, vis, singleton
end
- end
- end
- def parse_yield_parameters
- parse_method_or_yield_parameters
- end
-
- def parse_yield(context, single, tk, method)
- if method.block_params.nil?
- get_tkread
- @scanner.instance_eval{@continue = false}
- method.block_params = parse_yield_parameters
+ new_methods.each do |method|
+ case method
+ when RDoc::AnyMethod then
+ container.add_method method
+ when RDoc::Attr then
+ container.add_attribute method
+ end
+ method.visibility = vis
+ end
end
end
- def peek_read
- @read.join('')
- end
-
##
- # Peek at the next token, but don't remove it from the stream
+ # Determines the block parameter for +context+
- def peek_tk
- unget_tk(tk = get_tk)
- tk
+ def parse_yield(context, single, tk, method)
+ return if method.block_params
+
+ get_tkread
+ @scanner.instance_eval { @continue = false }
+ method.block_params = parse_method_or_yield_parameters
end
##
@@ -2637,91 +1606,85 @@ class RDoc::Parser::Ruby < RDoc::Parser
#
# We return the directive name and any parameters as a two element array
- def read_directive(allowed)
+ def read_directive allowed
tk = get_tk
- result = nil
- if TkCOMMENT === tk
- if tk.text =~ /\s*:?(\w+):\s*(.*)/
- directive = $1.downcase
- if allowed.include?(directive)
- result = [directive, $2]
- end
- end
+
+ if TkCOMMENT === tk then
+ return unless tk.text =~ /\s*:?(\w+):\s*(.*)/
+
+ directive = $1.downcase
+
+ return [directive, $2] if allowed.include? directive
else
- unget_tk(tk)
+ unget_tk tk
end
- result
end
- def read_documentation_modifiers(context, allow)
- dir = read_directive(allow)
+ ##
+ # Handles the directive for +context+ if the directive is listed in +allow+.
+ # This method is called for directives following a definition.
- case dir[0]
- when "notnew", "not_new", "not-new" then
- context.dont_rename_initialize = true
+ def read_documentation_modifiers context, allow
+ directive, value = read_directive allow
- when "nodoc" then
- context.document_self = false
- if dir[1].downcase == "all"
- context.document_children = false
- end
+ return unless directive
- when "doc" then
- context.document_self = true
- context.force_documentation = true
+ @preprocess.handle_directive '', directive, value, context do |dir, param|
+ if %w[notnew not_new not-new].include? dir then
+ context.dont_rename_initialize = true
- when "yield", "yields" then
- unless context.params.nil?
- context.params.sub!(/(,|)\s*&\w+/,'') # remove parameter &proc
+ true
end
-
- context.block_params = dir[1]
-
- when "arg", "args" then
- context.params = dir[1]
- end if dir
+ end
end
+ ##
+ # Removes private comments from +comment+
+
def remove_private_comments(comment)
- comment.gsub!(/^#--\n.*?^#\+\+/m, '')
- comment.sub!(/^#--\n.*/m, '')
- end
+ empty = ''
+ empty.force_encoding comment.encoding if Object.const_defined? :Encoding
- def remove_token_listener(obj)
- @token_listeners.delete(obj)
+ comment.gsub!(/^#--.*?^#\+\+\n?/m, empty)
+ comment.sub!(/^#--.*/m, '')
end
- def reset
- @tokens = []
- @unget_read = []
- @read = []
- end
+ ##
+ # Scans this ruby file for ruby constructs
def scan
reset
- catch(:eof) do
- catch(:enddoc) do
- begin
- parse_toplevel_statements(@top_level)
- rescue Exception => e
- $stderr.puts <<-EOF
-
-
-RDoc failure in #{@file_name} at or around line #{@scanner.line_no} column
-#{@scanner.char_no}
+ catch :eof do
+ begin
+ parse_top_level_statements @top_level
+ rescue StandardError => e
+ bytes = ''
+
+ 20.times do @scanner.ungetc end
+ count = 0
+ 60.times do |i|
+ count = i
+ byte = @scanner.getc
+ break unless byte
+ bytes << byte
+ end
+ count -= 20
+ count.times do @scanner.ungetc end
-Before reporting this, could you check that the file you're documenting
-compiles cleanly--RDoc is not a full Ruby parser, and gets confused easily if
-fed invalid programs.
+ $stderr.puts <<-EOF
-The internal error was:
+#{self.class} failure around line #{@scanner.line_no} of
+#{@file_name}
- EOF
+ EOF
- e.set_backtrace(e.backtrace[0,4])
- raise
+ unless bytes.empty? then
+ $stderr.puts
+ $stderr.puts bytes.inspect
end
+
+ raise e
end
end
@@ -2732,37 +1695,45 @@ The internal error was:
# while, until, and for have an optional do
def skip_optional_do_after_expression
- skip_tkspace(false)
+ skip_tkspace false
tk = get_tk
case tk
- when TkLPAREN, TkfLPAREN
+ when TkLPAREN, TkfLPAREN then
end_token = TkRPAREN
else
end_token = TkNL
end
+ b_nest = 0
nest = 0
- @scanner.instance_eval{@continue = false}
+ @scanner.instance_eval { @continue = false }
loop do
case tk
- when TkSEMICOLON
- break
- when TkLPAREN, TkfLPAREN
+ when TkSEMICOLON then
+ break if b_nest.zero?
+ when TkLPAREN, TkfLPAREN then
nest += 1
+ when TkBEGIN then
+ b_nest += 1
+ when TkEND then
+ b_nest -= 1
when TkDO
break if nest.zero?
- when end_token
+ when end_token then
if end_token == TkRPAREN
nest -= 1
break if @scanner.lex_state == EXPR_END and nest.zero?
else
break unless @scanner.continue
end
+ when nil then
+ break
end
tk = get_tk
end
- skip_tkspace(false)
+
+ skip_tkspace false
get_tk if TkDO === peek_tk
end
@@ -2771,31 +1742,20 @@ The internal error was:
# skip the var [in] part of a 'for' statement
def skip_for_variable
- skip_tkspace(false)
+ skip_tkspace false
tk = get_tk
- skip_tkspace(false)
+ skip_tkspace false
tk = get_tk
unget_tk(tk) unless TkIN === tk
end
- def skip_method(container)
- meth = RDoc::AnyMethod.new "", "anon"
- parse_method_parameters(meth)
- parse_statements(container, false, meth)
- end
-
##
- # Skip spaces
-
- def skip_tkspace(skip_nl = true)
- tokens = []
-
- while TkSPACE === (tk = get_tk) or (skip_nl and TkNL === tk) do
- tokens.push tk
- end
+ # Skips the next method in +container+
- unget_tk(tk)
- tokens
+ def skip_method container
+ meth = RDoc::AnyMethod.new "", "anon"
+ parse_method_parameters meth
+ parse_statements container, false, meth
end
##
@@ -2803,21 +1763,14 @@ The internal error was:
def skip_tkspace_comment(skip_nl = true)
loop do
- skip_tkspace(skip_nl)
+ skip_tkspace skip_nl
return unless TkCOMMENT === peek_tk
get_tk
end
end
- def unget_tk(tk)
- @tokens.unshift tk
- @unget_read.unshift @read.pop
-
- # Remove this token from any listeners
- @token_listeners.each do |obj|
- obj.pop_token
- end if @token_listeners
- end
+ ##
+ # Prints +msg+ to +$stderr+ unless we're being quiet
def warn(msg)
return if @options.quiet
diff --git a/lib/rdoc/parser/ruby_tools.rb b/lib/rdoc/parser/ruby_tools.rb
new file mode 100644
index 0000000000..678f721624
--- /dev/null
+++ b/lib/rdoc/parser/ruby_tools.rb
@@ -0,0 +1,162 @@
+##
+# Collection of methods for writing parsers against RDoc::RubyLex and
+# RDoc::RubyToken
+
+module RDoc::Parser::RubyTools
+
+ include RDoc::RubyToken
+
+ ##
+ # Adds a token listener +obj+, but you should probably use token_listener
+
+ def add_token_listener(obj)
+ @token_listeners ||= []
+ @token_listeners << obj
+ end
+
+ ##
+ # Fetches the next token from the scanner
+
+ def get_tk
+ tk = nil
+
+ if @tokens.empty? then
+ tk = @scanner.token
+ @read.push @scanner.get_readed
+ puts "get_tk1 => #{tk.inspect}" if $TOKEN_DEBUG
+ else
+ @read.push @unget_read.shift
+ tk = @tokens.shift
+ puts "get_tk2 => #{tk.inspect}" if $TOKEN_DEBUG
+ end
+
+ tk = nil if TkEND_OF_SCRIPT === tk
+
+ if TkSYMBEG === tk then
+ set_token_position tk.line_no, tk.char_no
+
+ case tk1 = get_tk
+ when TkId, TkOp, TkSTRING, TkDSTRING, TkSTAR, TkAMPER then
+ if tk1.respond_to?(:name) then
+ tk = Token(TkSYMBOL).set_text(":" + tk1.name)
+ else
+ tk = Token(TkSYMBOL).set_text(":" + tk1.text)
+ end
+
+ # remove the identifier we just read (we're about to replace it with a
+ # symbol)
+ @token_listeners.each do |obj|
+ obj.pop_token
+ end if @token_listeners
+ else
+ tk = tk1
+ end
+ end
+
+ # inform any listeners of our shiny new token
+ @token_listeners.each do |obj|
+ obj.add_token(tk)
+ end if @token_listeners
+
+ tk
+ end
+
+ ##
+ # Reads and returns all tokens up to one of +tokens+. Leaves the matched
+ # token in the token list.
+
+ def get_tk_until(*tokens)
+ read = []
+
+ loop do
+ tk = get_tk
+ case tk when *tokens then unget_tk tk; break end
+ read << tk
+ end
+
+ read
+ end
+
+ ##
+ # Retrieves a String representation of the read tokens
+
+ def get_tkread
+ read = @read.join("")
+ @read = []
+ read
+ end
+
+ ##
+ # Peek equivalent for get_tkread
+
+ def peek_read
+ @read.join('')
+ end
+
+ ##
+ # Peek at the next token, but don't remove it from the stream
+
+ def peek_tk
+ unget_tk(tk = get_tk)
+ tk
+ end
+
+ ##
+ # Removes the token listener +obj+
+
+ def remove_token_listener(obj)
+ @token_listeners.delete(obj)
+ end
+
+ ##
+ # Resets the tools
+
+ def reset
+ @read = []
+ @tokens = []
+ @unget_read = []
+ @nest = 0
+ end
+
+ ##
+ # Skips whitespace tokens including newlines if +skip_nl+ is true
+
+ def skip_tkspace(skip_nl = true) # HACK dup
+ tokens = []
+
+ while TkSPACE === (tk = get_tk) or (skip_nl and TkNL === tk) do
+ tokens.push tk
+ end
+
+ unget_tk tk
+ tokens
+ end
+
+ ##
+ # Has +obj+ listen to tokens
+
+ def token_listener(obj)
+ add_token_listener obj
+ yield
+ ensure
+ remove_token_listener obj
+ end
+
+ ##
+ # Returns +tk+ to the scanner
+
+ def unget_tk(tk)
+ @tokens.unshift tk
+ @unget_read.unshift @read.pop
+
+ # Remove this token from any listeners
+ @token_listeners.each do |obj|
+ obj.pop_token
+ end if @token_listeners
+
+ nil
+ end
+
+end
+
+
diff --git a/lib/rdoc/parser/simple.rb b/lib/rdoc/parser/simple.rb
index cdfe686718..1e82eb5097 100644
--- a/lib/rdoc/parser/simple.rb
+++ b/lib/rdoc/parser/simple.rb
@@ -1,14 +1,13 @@
-require 'rdoc/parser'
-
##
# Parse a non-source file. We basically take the whole thing as one big
-# comment. If the first character in the file is '#', we strip leading pound
-# signs.
+# comment.
class RDoc::Parser::Simple < RDoc::Parser
parse_files_matching(//)
+ attr_reader :content # :nodoc:
+
##
# Prepare to parse a plain file
@@ -17,21 +16,33 @@ class RDoc::Parser::Simple < RDoc::Parser
preprocess = RDoc::Markup::PreProcess.new @file_name, @options.rdoc_include
- preprocess.handle @content do |directive, param|
- warn "Unrecognized directive '#{directive}' in #{@file_name}"
- end
+ preprocess.handle @content, @top_level
end
##
- # Extract the file contents and attach them to the toplevel as a comment
+ # Extract the file contents and attach them to the TopLevel as a comment
def scan
- @top_level.comment = remove_private_comments(@content)
+ comment = remove_coding_comment @content
+ comment = remove_private_comments comment
+
+ @top_level.comment = comment
+ @top_level.parser = self.class
@top_level
end
- def remove_private_comments(comment)
- comment.gsub(/^--\n.*?^\+\+/m, '').sub(/^--\n.*/m, '')
+ ##
+ # Removes comments wrapped in <tt>--/++</tt>
+
+ def remove_private_comments text
+ text.gsub(/^--\n.*?^\+\+/m, '').sub(/^--\n.*/m, '')
+ end
+
+ ##
+ # Removes the encoding magic comment from +text+
+
+ def remove_coding_comment text
+ text.sub(/\A# .*coding[=:].*$/, '')
end
end
diff --git a/lib/rdoc/rdoc.rb b/lib/rdoc/rdoc.rb
index ce1cb1a93f..95ba9ae8ab 100644
--- a/lib/rdoc/rdoc.rb
+++ b/lib/rdoc/rdoc.rb
@@ -1,293 +1,520 @@
require 'rdoc'
+require 'rdoc/encoding'
require 'rdoc/parser'
# Simple must come first
require 'rdoc/parser/simple'
require 'rdoc/parser/ruby'
require 'rdoc/parser/c'
-require 'rdoc/parser/f95'
-require 'rdoc/parser/perl'
require 'rdoc/stats'
require 'rdoc/options'
-require 'rdoc/diagram'
-
require 'find'
require 'fileutils'
require 'time'
-module RDoc
+##
+# Encapsulate the production of rdoc documentation. Basically you can use this
+# as you would invoke rdoc from the command line:
+#
+# rdoc = RDoc::RDoc.new
+# rdoc.document(args)
+#
+# Where +args+ is an array of strings, each corresponding to an argument you'd
+# give rdoc on the command line. See <tt>rdoc --help<tt> for details.
+#
+# = Plugins
+#
+# When you <tt>require 'rdoc/rdoc'</tt> RDoc looks for 'rdoc/discover' files
+# in your installed gems. This can be used to load alternate generators or
+# add additional preprocessor directives.
+#
+# You will want to wrap your plugin loading in an RDoc version check.
+# Something like:
+#
+# begin
+# gem 'rdoc', '~> 3'
+# require 'path/to/my/awesome/rdoc/plugin'
+# rescue Gem::LoadError
+# end
+#
+# The most obvious plugin type is a new output generator. See RDoc::Generator
+# for details.
+#
+# You can also hook into RDoc::Markup to add new directives (:nodoc: is a
+# directive). See RDoc::Markup::PreProcess::register for details.
+
+class RDoc::RDoc
##
- # Encapsulate the production of rdoc documentation. Basically you can use
- # this as you would invoke rdoc from the command line:
- #
- # rdoc = RDoc::RDoc.new
- # rdoc.document(args)
- #
- # Where +args+ is an array of strings, each corresponding to an argument
- # you'd give rdoc on the command line. See rdoc/rdoc.rb for details.
+ # File pattern to exclude
+
+ attr_accessor :exclude
+
+ ##
+ # Generator instance used for creating output
+
+ attr_accessor :generator
+
+ ##
+ # Hash of files and their last modified times.
+
+ attr_reader :last_modified
+
+ ##
+ # RDoc options
+
+ attr_accessor :options
+
+ ##
+ # Accessor for statistics. Available after each call to parse_files
+
+ attr_reader :stats
+
+ ##
+ # This is the list of supported output generators
+
+ GENERATORS = {}
- class RDoc
+ ##
+ # Add +klass+ that can generate output after parsing
+
+ def self.add_generator(klass)
+ name = klass.name.sub(/^RDoc::Generator::/, '').downcase
+ GENERATORS[name] = klass
+ end
+
+ ##
+ # Active RDoc::RDoc instance
- Generator = Struct.new(:file_name, :class_name, :key)
+ def self.current
+ @current
+ end
- ##
- # Accessor for statistics. Available after each call to parse_files
+ ##
+ # Sets the active RDoc::RDoc instance
- attr_reader :stats
+ def self.current=(rdoc)
+ @current = rdoc
+ end
- ##
- # This is the list of output generator that we support
+ ##
+ # Resets all internal state
- GENERATORS = {}
+ def self.reset
+ RDoc::TopLevel.reset
+ RDoc::Parser::C.reset
+ end
+
+ ##
+ # Creates a new RDoc::RDoc instance. Call #document to parse files and
+ # generate documentation.
+
+ def initialize
+ @current = nil
+ @exclude = nil
+ @generator = nil
+ @last_modified = {}
+ @old_siginfo = nil
+ @options = nil
+ @stats = nil
+ end
+
+ ##
+ # Report an error message and exit
+
+ def error(msg)
+ raise RDoc::Error, msg
+ end
+
+ ##
+ # Gathers a set of parseable files from the files and directories listed in
+ # +files+.
- $LOAD_PATH.collect do |d|
- File.expand_path d
- end.find_all do |d|
- File.directory? "#{d}/rdoc/generator"
- end.each do |dir|
- Dir.entries("#{dir}/rdoc/generator").each do |gen|
- next unless /(\w+)\.rb$/ =~ gen
- type = $1
- unless GENERATORS.has_key? type
- GENERATORS[type] = Generator.new("rdoc/generator/#{gen}",
- "#{type.upcase}".intern,
- type)
+ def gather_files files
+ files = ["."] if files.empty?
+
+ file_list = normalized_file_list files, true, @exclude
+
+ file_list = file_list.uniq
+
+ file_list = remove_unparseable file_list
+ end
+
+ ##
+ # Turns RDoc from stdin into HTML
+
+ def handle_pipe
+ @html = RDoc::Markup::ToHtml.new
+
+ out = @html.convert $stdin.read
+
+ $stdout.write out
+ end
+
+ ##
+ # Installs a siginfo handler that prints the current filename.
+
+ def install_siginfo_handler
+ return unless Signal.list.include? 'INFO'
+
+ @old_siginfo = trap 'INFO' do
+ puts @current if @current
+ end
+ end
+
+ ##
+ # Create an output dir if it doesn't exist. If it does exist, but doesn't
+ # contain the flag file <tt>created.rid</tt> then we refuse to use it, as
+ # we may clobber some manually generated documentation
+
+ def setup_output_dir(dir, force)
+ flag_file = output_flag_file dir
+
+ last = {}
+
+ if @options.dry_run then
+ # do nothing
+ elsif File.exist? dir then
+ error "#{dir} exists and is not a directory" unless File.directory? dir
+
+ begin
+ open flag_file do |io|
+ unless force then
+ Time.parse io.gets
+
+ io.each do |line|
+ file, time = line.split "\t", 2
+ time = Time.parse(time) rescue next
+ last[file] = time
+ end
+ end
end
- end
+ rescue SystemCallError, TypeError
+ error <<-ERROR
+
+Directory #{dir} already exists, but it looks like it isn't an RDoc directory.
+
+Because RDoc doesn't want to risk destroying any of your existing files,
+you'll need to specify a different output directory name (using the --op <dir>
+option)
+
+ ERROR
+ end unless @options.force_output
+ else
+ FileUtils.mkdir_p dir
+ FileUtils.touch output_flag_file dir
end
- def initialize
- @stats = nil
+ last
+ end
+
+ ##
+ # Update the flag file in an output directory.
+
+ def update_output_dir(op_dir, time, last = {})
+ return if @options.dry_run or not @options.update_output_dir
+
+ open output_flag_file(op_dir), "w" do |f|
+ f.puts time.rfc2822
+ last.each do |n, t|
+ f.puts "#{n}\t#{t.rfc2822}"
+ end
end
+ end
+
+ ##
+ # Return the path name of the flag file in an output directory.
+
+ def output_flag_file(op_dir)
+ File.join op_dir, "created.rid"
+ end
+
+ ##
+ # The .document file contains a list of file and directory name patterns,
+ # representing candidates for documentation. It may also contain comments
+ # (starting with '#')
- ##
- # Report an error message and exit
+ def parse_dot_doc_file in_dir, filename
+ # read and strip comments
+ patterns = File.read(filename).gsub(/#.*/, '')
- def error(msg)
- raise ::RDoc::Error, msg
+ result = []
+
+ patterns.split.each do |patt|
+ candidates = Dir.glob(File.join(in_dir, patt))
+ result.concat normalized_file_list(candidates)
end
- ##
- # Create an output dir if it doesn't exist. If it does exist, but doesn't
- # contain the flag file <tt>created.rid</tt> then we refuse to use it, as
- # we may clobber some manually generated documentation
+ result
+ end
- def setup_output_dir(op_dir, force)
- flag_file = output_flag_file(op_dir)
- if File.exist?(op_dir)
- unless File.directory?(op_dir)
- error "'#{op_dir}' exists, and is not a directory"
+ ##
+ # Given a list of files and directories, create a list of all the Ruby
+ # files they contain.
+ #
+ # If +force_doc+ is true we always add the given files, if false, only
+ # add files that we guarantee we can parse. It is true when looking at
+ # files given on the command line, false when recursing through
+ # subdirectories.
+ #
+ # The effect of this is that if you want a file with a non-standard
+ # extension parsed, you must name it explicitly.
+
+ def normalized_file_list(relative_files, force_doc = false,
+ exclude_pattern = nil)
+ file_list = []
+
+ relative_files.each do |rel_file_name|
+ next if exclude_pattern && exclude_pattern =~ rel_file_name
+ stat = File.stat rel_file_name rescue next
+
+ case type = stat.ftype
+ when "file" then
+ next if last_modified = @last_modified[rel_file_name] and
+ stat.mtime.to_i <= last_modified.to_i
+
+ if force_doc or RDoc::Parser.can_parse(rel_file_name) then
+ file_list << rel_file_name.sub(/^\.\//, '')
+ @last_modified[rel_file_name] = stat.mtime
end
- begin
- created = File.read(flag_file)
- rescue SystemCallError
- error "\nDirectory #{op_dir} already exists, but it looks like it\n" +
- "isn't an RDoc directory. Because RDoc doesn't want to risk\n" +
- "destroying any of your existing files, you'll need to\n" +
- "specify a different output directory name (using the\n" +
- "--op <dir> option).\n\n"
+ when "directory" then
+ next if rel_file_name == "CVS" || rel_file_name == ".svn"
+
+ dot_doc = File.join rel_file_name, RDoc::DOT_DOC_FILENAME
+
+ if File.file? dot_doc then
+ file_list << parse_dot_doc_file(rel_file_name, dot_doc)
else
- last = (Time.parse(created) unless force rescue nil)
+ file_list << list_files_in_directory(rel_file_name)
end
else
- FileUtils.mkdir_p(op_dir)
+ raise RDoc::Error, "I can't deal with a #{type} #{rel_file_name}"
end
- last
end
- ##
- # Update the flag file in an output directory.
+ file_list.flatten
+ end
- def update_output_dir(op_dir, time)
- File.open(output_flag_file(op_dir), "w") {|f| f.puts time.rfc2822 }
- end
+ ##
+ # Return a list of the files to be processed in a directory. We know that
+ # this directory doesn't have a .document file, so we're looking for real
+ # files. However we may well contain subdirectories which must be tested
+ # for .document files.
- ##
- # Return the path name of the flag file in an output directory.
+ def list_files_in_directory dir
+ files = Dir.glob File.join(dir, "*")
- def output_flag_file(op_dir)
- File.join(op_dir, "created.rid")
+ normalized_file_list files, false, @options.exclude
+ end
+
+ ##
+ # Parses +filename+ and returns an RDoc::TopLevel
+
+ def parse_file filename
+ if defined?(Encoding) then
+ encoding = @options.encoding
+ filename = filename.encode encoding
end
- ##
- # The .document file contains a list of file and directory name patterns,
- # representing candidates for documentation. It may also contain comments
- # (starting with '#')
+ @stats.add_file filename
- def parse_dot_doc_file(in_dir, filename, options)
- # read and strip comments
- patterns = File.read(filename).gsub(/#.*/, '')
+ content = RDoc::Encoding.read_file filename, encoding
- result = []
+ return unless content
- patterns.split.each do |patt|
- candidates = Dir.glob(File.join(in_dir, patt))
- result.concat(normalized_file_list(options, candidates))
- end
- result
- end
+ top_level = RDoc::TopLevel.new filename
- ##
- # Given a list of files and directories, create a list of all the Ruby
- # files they contain.
- #
- # If +force_doc+ is true we always add the given files, if false, only
- # add files that we guarantee we can parse. It is true when looking at
- # files given on the command line, false when recursing through
- # subdirectories.
- #
- # The effect of this is that if you want a file with a non-standard
- # extension parsed, you must name it explicitly.
-
- def normalized_file_list(options, relative_files, force_doc = false,
- exclude_pattern = nil)
- file_list = []
-
- relative_files.each do |rel_file_name|
- next if exclude_pattern && exclude_pattern =~ rel_file_name
- stat = File.stat(rel_file_name)
- case type = stat.ftype
- when "file"
- next if @last_created and stat.mtime < @last_created
-
- if force_doc or ::RDoc::Parser.can_parse(rel_file_name) then
- file_list << rel_file_name.sub(/^\.\//, '')
- end
- when "directory"
- next if rel_file_name == "CVS" || rel_file_name == ".svn"
- dot_doc = File.join(rel_file_name, DOT_DOC_FILENAME)
- if File.file?(dot_doc)
- file_list.concat(parse_dot_doc_file(rel_file_name, dot_doc, options))
- else
- file_list.concat(list_files_in_directory(rel_file_name, options))
- end
- else
- raise RDoc::Error, "I can't deal with a #{type} #{rel_file_name}"
- end
- end
+ parser = RDoc::Parser.for top_level, filename, content, @options, @stats
+
+ return unless parser
+
+ parser.scan
- file_list
+ # restart documentation for the classes & modules found
+ top_level.classes_or_modules.each do |cm|
+ cm.done_documenting = false
end
- ##
- # Return a list of the files to be processed in a directory. We know that
- # this directory doesn't have a .document file, so we're looking for real
- # files. However we may well contain subdirectories which must be tested
- # for .document files.
+ top_level
- def list_files_in_directory(dir, options)
- files = Dir.glob File.join(dir, "*")
+ rescue => e
+ $stderr.puts <<-EOF
+Before reporting this, could you check that the file you're documenting
+has proper syntax:
- normalized_file_list options, files, false, options.exclude
- end
+ #{Gem.ruby} -c #{filename}
- ##
- # Parse each file on the command line, recursively entering directories.
+RDoc is not a full Ruby parser and will fail when fed invalid ruby programs.
- def parse_files(options)
- @stats = Stats.new options.verbosity
+The internal error was:
- files = options.files
- files = ["."] if files.empty?
+\t(#{e.class}) #{e.message}
- file_list = normalized_file_list(options, files, true, options.exclude)
+ EOF
- return [] if file_list.empty?
+ $stderr.puts e.backtrace.join("\n\t") if $DEBUG_RDOC
- file_info = []
+ raise e
+ nil
+ end
- file_list.each do |filename|
- @stats.add_file filename
+ ##
+ # Parse each file on the command line, recursively entering directories.
- content = if RUBY_VERSION >= '1.9' then
- File.open(filename, "r:ascii-8bit") { |f| f.read }
- else
- File.read filename
- end
+ def parse_files files
+ file_list = gather_files files
+ @stats = RDoc::Stats.new file_list.size, @options.verbosity
- if defined? Encoding then
- if /coding:\s*(\S+)/ =~ content[/\A(?:.*\n){0,2}/]
- if enc = ::Encoding.find($1)
- content.force_encoding(enc)
- end
- end
- end
+ return [] if file_list.empty?
- top_level = ::RDoc::TopLevel.new filename
+ file_info = []
- parser = ::RDoc::Parser.for top_level, filename, content, options,
- @stats
+ @stats.begin_adding
- file_info << parser.scan
- end
+ file_info = file_list.map do |filename|
+ @current = filename
+ parse_file filename
+ end.compact
+
+ @stats.done_adding
+
+ file_info
+ end
+
+ ##
+ # Removes file extensions known to be unparseable from +files+
- file_info
+ def remove_unparseable files
+ files.reject do |file|
+ file =~ /\.(?:class|eps|erb|scpt\.txt|ttf|yml)$/i
end
+ end
- ##
- # Format up one or more files according to the given arguments.
- #
- # For simplicity, _argv_ is an array of strings, equivalent to the strings
- # that would be passed on the command line. (This isn't a coincidence, as
- # we _do_ pass in ARGV when running interactively). For a list of options,
- # see rdoc/rdoc.rb. By default, output will be stored in a directory
- # called +doc+ below the current directory, so make sure you're somewhere
- # writable before invoking.
- #
- # Throws: RDoc::Error on error
+ ##
+ # Generates documentation or a coverage report depending upon the settings
+ # in +options+.
+ #
+ # +options+ can be either an RDoc::Options instance or an array of strings
+ # equivalent to the strings that would be passed on the command line like
+ # <tt>%w[-q -o doc -t My\ Doc\ Title]</tt>. #document will automatically
+ # call RDoc::Options#finish if an options instance was given.
+ #
+ # For a list of options, see either RDoc::Options or <tt>rdoc --help</tt>.
+ #
+ # By default, output will be stored in a directory called "doc" below the
+ # current directory, so make sure you're somewhere writable before invoking.
+
+ def document options
+ RDoc::RDoc.reset
+
+ if RDoc::Options === options then
+ @options = options
+ @options.finish
+ else
+ @options = RDoc::Options.new
+ @options.parse options
+ end
- def document(argv)
- TopLevel::reset
+ if @options.pipe then
+ handle_pipe
+ exit
+ end
- @options = Options.new GENERATORS
- @options.parse argv
+ @exclude = @options.exclude
- @last_created = nil
+ unless @options.coverage_report then
+ @last_modified = setup_output_dir @options.op_dir, @options.force_update
+ end
- unless @options.all_one_file then
- @last_created = setup_output_dir @options.op_dir, @options.force_update
- end
+ @start_time = Time.now
- start_time = Time.now
+ file_info = parse_files @options.files
- file_info = parse_files @options
+ @options.default_title = "RDoc Documentation"
- @options.title = "RDoc Documentation"
+ RDoc::TopLevel.complete @options.visibility
- if file_info.empty?
- $stderr.puts "\nNo newer files." unless @options.quiet
- else
- @gen = @options.generator
+ @stats.coverage_level = @options.coverage_report
- $stderr.puts "\nGenerating #{@gen.key.upcase}..." unless @options.quiet
+ if @options.coverage_report then
+ puts
- require @gen.file_name
+ puts @stats.report
+ elsif file_info.empty? then
+ $stderr.puts "\nNo newer files." unless @options.quiet
+ else
+ gen_klass = @options.generator
- gen_class = ::RDoc::Generator.const_get @gen.class_name
- @gen = gen_class.for @options
+ @generator = gen_klass.new @options
- pwd = Dir.pwd
+ generate file_info
+ end
- Dir.chdir @options.op_dir unless @options.all_one_file
+ if @stats and (@options.coverage_report or not @options.quiet) then
+ puts
+ puts @stats.summary
+ end
- begin
- Diagram.new(file_info, @options).draw if @options.diagram
- @gen.generate(file_info)
- update_output_dir(".", start_time)
- ensure
- Dir.chdir(pwd)
+ exit @stats.fully_documented? if @options.coverage_report
+ end
+
+ ##
+ # Generates documentation for +file_info+ (from #parse_files) into the
+ # output dir using the generator selected
+ # by the RDoc options
+
+ def generate file_info
+ Dir.chdir @options.op_dir do
+ begin
+ self.class.current = self
+
+ unless @options.quiet then
+ $stderr.puts "\nGenerating #{@generator.class.name.sub(/^.*::/, '')} format into #{Dir.pwd}..."
end
+
+ @generator.generate file_info
+ update_output_dir '.', @start_time, @last_modified
+ ensure
+ self.class.current = nil
end
+ end
+ end
+
+ ##
+ # Removes a siginfo handler and replaces the previous
- unless @options.quiet
- puts
- @stats.print
+ def remove_siginfo_handler
+ return unless Signal.list.key? 'INFO'
+
+ handler = @old_siginfo || 'DEFAULT'
+
+ trap 'INFO', handler
+ end
+
+end
+
+begin
+ require 'rubygems'
+
+ if Gem.respond_to? :find_files then
+ rdoc_extensions = Gem.find_files 'rdoc/discover'
+
+ rdoc_extensions.each do |extension|
+ begin
+ load extension
+ rescue => e
+ warn "error loading #{extension.inspect}: #{e.message} (#{e.class})"
+ warn "\t#{e.backtrace.join "\n\t"}" if $DEBUG
end
end
end
+rescue LoadError
end
+# require built-in generators after discovery in case they've been replaced
+require 'rdoc/generator/darkfish'
+require 'rdoc/generator/ri'
+
diff --git a/lib/rdoc/require.rb b/lib/rdoc/require.rb
new file mode 100644
index 0000000000..65d3d464da
--- /dev/null
+++ b/lib/rdoc/require.rb
@@ -0,0 +1,53 @@
+require 'rdoc/code_object'
+
+##
+# A file loaded by \#require
+
+class RDoc::Require < RDoc::CodeObject
+
+ ##
+ # Name of the required file
+
+ attr_accessor :name
+
+ ##
+ # Creates a new Require that loads +name+ with +comment+
+
+ def initialize(name, comment)
+ super()
+ @name = name.gsub(/'|"/, "") #'
+ @top_level = nil
+ self.comment = comment
+ end
+
+ def inspect # :nodoc:
+ "#<%s:0x%x require '%s' in %s>" % [
+ self.class,
+ object_id,
+ @name,
+ parent_file_name,
+ ]
+ end
+
+ def to_s # :nodoc:
+ "require #{name} in: #{parent}"
+ end
+
+ ##
+ # The RDoc::TopLevel corresponding to this require, or +nil+ if not found.
+
+ def top_level
+ @top_level ||= begin
+ tl = RDoc::TopLevel.all_files_hash[name + '.rb']
+
+ if tl.nil? and RDoc::TopLevel.all_files.first.full_name =~ %r(^lib/) then
+ # second chance
+ tl = RDoc::TopLevel.all_files_hash['lib/' + name + '.rb']
+ end
+
+ tl
+ end
+ end
+
+end
+
diff --git a/lib/rdoc/ri.rb b/lib/rdoc/ri.rb
index a3a858e673..17da3fbe83 100644
--- a/lib/rdoc/ri.rb
+++ b/lib/rdoc/ri.rb
@@ -1,8 +1,18 @@
require 'rdoc'
+##
+# Namespace for the ri command line tool's implementation.
+#
+# See <tt>ri --help</tt> for details.
+
module RDoc::RI
+ ##
+ # Base RI error class
+
class Error < RDoc::Error; end
end
+require 'rdoc/ri/store'
+
diff --git a/lib/rdoc/ri/cache.rb b/lib/rdoc/ri/cache.rb
deleted file mode 100644
index 06177a00de..0000000000
--- a/lib/rdoc/ri/cache.rb
+++ /dev/null
@@ -1,187 +0,0 @@
-require 'rdoc/ri'
-
-class RDoc::RI::ClassEntry
-
- attr_reader :name
- attr_reader :path_names
-
- def initialize(path_name, name, in_class)
- @path_names = [ path_name ]
- @name = name
- @in_class = in_class
- @class_methods = []
- @instance_methods = []
- @inferior_classes = []
- end
-
- # We found this class in more than one place, so add
- # in the name from there.
- def add_path(path)
- @path_names << path
- end
-
- # read in our methods and any classes
- # and modules in our namespace. Methods are
- # stored in files called name-c|i.yaml,
- # where the 'name' portion is the external
- # form of the method name and the c|i is a class|instance
- # flag
-
- def load_from(dir)
- Dir.foreach(dir) do |name|
- next if name =~ /^\./
-
- # convert from external to internal form, and
- # extract the instance/class flag
-
- if name =~ /^(.*?)-(c|i).yaml$/
- external_name = $1
- is_class_method = $2 == "c"
- internal_name = RDoc::RI::Writer.external_to_internal(external_name)
- list = is_class_method ? @class_methods : @instance_methods
- path = File.join(dir, name)
- list << RDoc::RI::MethodEntry.new(path, internal_name, is_class_method, self)
- else
- full_name = File.join(dir, name)
- if File.directory?(full_name)
- inf_class = @inferior_classes.find {|c| c.name == name }
- if inf_class
- inf_class.add_path(full_name)
- else
- inf_class = RDoc::RI::ClassEntry.new(full_name, name, self)
- @inferior_classes << inf_class
- end
- inf_class.load_from(full_name)
- end
- end
- end
- end
-
- # Return a list of any classes or modules that we contain
- # that match a given string
-
- def contained_modules_matching(name)
- @inferior_classes.find_all {|c| c.name[name]}
- end
-
- def classes_and_modules
- @inferior_classes
- end
-
- # Return an exact match to a particular name
- def contained_class_named(name)
- @inferior_classes.find {|c| c.name == name}
- end
-
- # return the list of local methods matching name
- # We're split into two because we need distinct behavior
- # when called from the _toplevel_
- def methods_matching(name, is_class_method)
- local_methods_matching(name, is_class_method)
- end
-
- # Find methods matching 'name' in ourselves and in
- # any classes we contain
- def recursively_find_methods_matching(name, is_class_method)
- res = local_methods_matching(name, is_class_method)
- @inferior_classes.each do |c|
- res.concat(c.recursively_find_methods_matching(name, is_class_method))
- end
- res
- end
-
-
- # Return our full name
- def full_name
- res = @in_class.full_name
- res << "::" unless res.empty?
- res << @name
- end
-
- # Return a list of all out method names
- def all_method_names
- res = @class_methods.map {|m| m.full_name }
- @instance_methods.each {|m| res << m.full_name}
- res
- end
-
- private
-
- # Return a list of all our methods matching a given string.
- # Is +is_class_methods+ if 'nil', we don't care if the method
- # is a class method or not, otherwise we only return
- # those methods that match
- def local_methods_matching(name, is_class_method)
-
- list = case is_class_method
- when nil then @class_methods + @instance_methods
- when true then @class_methods
- when false then @instance_methods
- else fail "Unknown is_class_method: #{is_class_method.inspect}"
- end
-
- list.find_all {|m| m.name; m.name[name]}
- end
-end
-
-##
-# A TopLevelEntry is like a class entry, but when asked to search for methods
-# searches all classes, not just itself
-
-class RDoc::RI::TopLevelEntry < RDoc::RI::ClassEntry
- def methods_matching(name, is_class_method)
- res = recursively_find_methods_matching(name, is_class_method)
- end
-
- def full_name
- ""
- end
-
- def module_named(name)
-
- end
-
-end
-
-class RDoc::RI::MethodEntry
- attr_reader :name
- attr_reader :path_name
-
- def initialize(path_name, name, is_class_method, in_class)
- @path_name = path_name
- @name = name
- @is_class_method = is_class_method
- @in_class = in_class
- end
-
- def full_name
- res = @in_class.full_name
- unless res.empty?
- if @is_class_method
- res << "::"
- else
- res << "#"
- end
- end
- res << @name
- end
-end
-
-##
-# We represent everything known about all 'ri' files accessible to this program
-
-class RDoc::RI::Cache
-
- attr_reader :toplevel
-
- def initialize(dirs)
- # At the top level we have a dummy module holding the
- # overall namespace
- @toplevel = RDoc::RI::TopLevelEntry.new('', '::', nil)
-
- dirs.each do |dir|
- @toplevel.load_from(dir)
- end
- end
-
-end
diff --git a/lib/rdoc/ri/descriptions.rb b/lib/rdoc/ri/descriptions.rb
deleted file mode 100644
index 467b7de2a9..0000000000
--- a/lib/rdoc/ri/descriptions.rb
+++ /dev/null
@@ -1,156 +0,0 @@
-require 'yaml'
-require 'rdoc/markup/fragments'
-require 'rdoc/ri'
-
-##
-# Descriptions are created by RDoc (in ri_generator) and written out in
-# serialized form into the documentation tree. ri then reads these to generate
-# the documentation
-
-class RDoc::RI::NamedThing
- attr_reader :name
- def initialize(name)
- @name = name
- end
-
- def <=>(other)
- @name <=> other.name
- end
-
- def hash
- @name.hash
- end
-
- def eql?(other)
- @name.eql?(other)
- end
-end
-
-class RDoc::RI::AliasName < RDoc::RI::NamedThing; end
-
-class RDoc::RI::Attribute < RDoc::RI::NamedThing
- attr_reader :rw, :comment
-
- def initialize(name, rw, comment)
- super(name)
- @rw = rw
- @comment = comment
- end
-end
-
-class RDoc::RI::Constant < RDoc::RI::NamedThing
- attr_reader :value, :comment
-
- def initialize(name, value, comment)
- super(name)
- @value = value
- @comment = comment
- end
-end
-
-class RDoc::RI::IncludedModule < RDoc::RI::NamedThing; end
-
-class RDoc::RI::MethodSummary < RDoc::RI::NamedThing
- def initialize(name="")
- super
- end
-end
-
-class RDoc::RI::Description
- attr_accessor :name
- attr_accessor :full_name
- attr_accessor :comment
-
- def serialize
- self.to_yaml
- end
-
- def self.deserialize(from)
- YAML.load(from)
- end
-
- def <=>(other)
- @name <=> other.name
- end
-end
-
-class RDoc::RI::ModuleDescription < RDoc::RI::Description
-
- attr_accessor :class_methods
- attr_accessor :class_method_extensions
- attr_accessor :instance_methods
- attr_accessor :instance_method_extensions
- attr_accessor :attributes
- attr_accessor :constants
- attr_accessor :includes
-
- # merge in another class description into this one
- def merge_in(old)
- merge(@class_methods, old.class_methods)
- merge(@instance_methods, old.instance_methods)
- merge(@attributes, old.attributes)
- merge(@constants, old.constants)
- merge(@includes, old.includes)
- if @comment.nil? || @comment.empty?
- @comment = old.comment
- else
- unless old.comment.nil? or old.comment.empty? then
- if @comment.nil? or @comment.empty? then
- @comment = old.comment
- else
- @comment << RDoc::Markup::Flow::RULE.new
- @comment.concat old.comment
- end
- end
- end
- end
-
- def display_name
- "Module"
- end
-
- # the 'ClassDescription' subclass overrides this
- # to format up the name of a parent
- def superclass_string
- nil
- end
-
- private
-
- def merge(into, from)
- names = {}
- into.each {|i| names[i.name] = i }
- from.each {|i| names[i.name] = i }
- into.replace(names.keys.sort.map {|n| names[n]})
- end
-end
-
-class RDoc::RI::ClassDescription < RDoc::RI::ModuleDescription
- attr_accessor :superclass
-
- def display_name
- "Class"
- end
-
- def superclass_string
- if @superclass && @superclass != "Object"
- @superclass
- else
- nil
- end
- end
-end
-
-class RDoc::RI::MethodDescription < RDoc::RI::Description
-
- attr_accessor :is_class_method
- attr_accessor :visibility
- attr_accessor :block_params
- attr_accessor :is_singleton
- attr_accessor :aliases
- attr_accessor :is_alias_for
- attr_accessor :params
- attr_accessor :source_path
-
-end
-
diff --git a/lib/rdoc/ri/display.rb b/lib/rdoc/ri/display.rb
deleted file mode 100644
index f6b647fbc1..0000000000
--- a/lib/rdoc/ri/display.rb
+++ /dev/null
@@ -1,392 +0,0 @@
-require 'rdoc/ri'
-
-# readline support might not be present, so be careful
-# when requiring it.
-begin
- require('readline')
- require('abbrev')
- CAN_USE_READLINE = true # HACK use an RDoc namespace constant
-rescue LoadError
- CAN_USE_READLINE = false
-end
-
-##
-# This is a kind of 'flag' module. If you want to write your own 'ri' display
-# module (perhaps because you're writing an IDE), you write a class which
-# implements the various 'display' methods in RDoc::RI::DefaultDisplay, and
-# include the RDoc::RI::Display module in that class.
-#
-# To access your class from the command line, you can do
-#
-# ruby -r <your source file> ../ri ....
-
-module RDoc::RI::Display
-
- @@display_class = nil
-
- def self.append_features(display_class)
- @@display_class = display_class
- end
-
- def self.new(*args)
- @@display_class.new(*args)
- end
-
-end
-
-##
-# A paging display module. Uses the RDoc::RI::Formatter class to do the actual
-# presentation.
-
-class RDoc::RI::DefaultDisplay
-
- include RDoc::RI::Display
-
- def initialize(formatter, width, use_stdout, output = $stdout)
- @use_stdout = use_stdout
- @formatter = formatter.new output, width, " "
- end
-
- ##
- # Display information about +klass+. Fetches additional information from
- # +ri_reader+ as necessary.
-
- def display_class_info(klass)
- page do
- superclass = klass.superclass
-
- if superclass
- superclass = " < " + superclass
- else
- superclass = ""
- end
-
- @formatter.draw_line(klass.display_name + ": " +
- klass.full_name + superclass)
-
- display_flow(klass.comment)
- @formatter.draw_line
-
- unless klass.includes.empty?
- @formatter.blankline
- @formatter.display_heading("Includes:", 2, "")
- incs = []
-
- klass.includes.each do |inc|
- incs << inc.name
- end
-
- @formatter.wrap(incs.sort.join(', '))
- end
-
- unless klass.constants.empty?
- @formatter.blankline
- @formatter.display_heading("Constants:", 2, "")
-
- constants = klass.constants.sort_by { |constant| constant.name }
-
- constants.each do |constant|
- @formatter.wrap "#{constant.name} = #{constant.value}"
- if constant.comment then
- @formatter.indent do
- @formatter.display_flow constant.comment
- end
- else
- @formatter.break_to_newline
- end
- end
- end
-
- unless klass.attributes.empty? then
- @formatter.blankline
- @formatter.display_heading 'Attributes:', 2, ''
-
- attributes = klass.attributes.sort_by { |attribute| attribute.name }
-
- attributes.each do |attribute|
- if attribute.comment then
- @formatter.wrap "#{attribute.name} (#{attribute.rw}):"
- @formatter.indent do
- @formatter.display_flow attribute.comment
- end
- else
- @formatter.wrap "#{attribute.name} (#{attribute.rw})"
- @formatter.break_to_newline
- end
- end
- end
-
- return display_class_method_list(klass)
- end
- end
-
- ##
- # Given a Hash mapping a class' methods to method types (returned by
- # display_class_method_list), this method allows the user to
- # choose one of the methods.
-
- def get_class_method_choice(method_map)
- if CAN_USE_READLINE
- # prepare abbreviations for tab completion
- abbreviations = method_map.keys.abbrev
- Readline.completion_proc = proc do |string|
- abbreviations.values.uniq.grep(/^#{string}/)
- end
- end
-
- @formatter.raw_print_line "\nEnter the method name you want.\n"
- @formatter.raw_print_line "Class methods can be preceeded by '::' and instance methods by '#'.\n"
-
- if CAN_USE_READLINE
- @formatter.raw_print_line "You can use tab to autocomplete.\n"
- @formatter.raw_print_line "Enter a blank line to exit.\n"
-
- choice_string = Readline.readline(">> ").strip
- else
- @formatter.raw_print_line "Enter a blank line to exit.\n"
- @formatter.raw_print_line ">> "
- choice_string = $stdin.gets.strip
- end
-
- if choice_string == ''
- return nil
- else
- class_or_instance = method_map[choice_string]
-
- if class_or_instance
- # If the user's choice is not preceeded by a '::' or a '#', figure
- # out whether they want a class or an instance method and decorate
- # the choice appropriately.
- if(choice_string =~ /^[a-zA-Z]/)
- if(class_or_instance == :class)
- choice_string = "::#{choice_string}"
- else
- choice_string = "##{choice_string}"
- end
- end
-
- return choice_string
- else
- @formatter.raw_print_line "No method matched '#{choice_string}'.\n"
- return nil
- end
- end
- end
-
-
- ##
- # Display methods on +klass+
- # Returns a hash mapping method name to method contents (HACK?)
-
- def display_class_method_list(klass)
- method_map = {}
-
- class_data = [
- :class_methods,
- :class_method_extensions,
- :instance_methods,
- :instance_method_extensions,
- ]
-
- class_data.each do |data_type|
- data = klass.send data_type
-
- unless data.nil? or data.empty? then
- @formatter.blankline
-
- heading = data_type.to_s.split('_').join(' ').capitalize << ':'
- @formatter.display_heading heading, 2, ''
-
- method_names = []
- data.each do |item|
- method_names << item.name
-
- if(data_type == :class_methods ||
- data_type == :class_method_extensions) then
- method_map["::#{item.name}"] = :class
- method_map[item.name] = :class
- else
- #
- # Since we iterate over instance methods after class methods,
- # an instance method always will overwrite the unqualified
- # class method entry for a class method of the same name.
- #
- method_map["##{item.name}"] = :instance
- method_map[item.name] = :instance
- end
- end
- method_names.sort!
-
- @formatter.wrap method_names.join(', ')
- end
- end
-
- method_map
- end
- private :display_class_method_list
-
- ##
- # Display an Array of RDoc::Markup::Flow objects, +flow+.
-
- def display_flow(flow)
- if flow and not flow.empty? then
- @formatter.display_flow flow
- else
- @formatter.wrap '[no description]'
- end
- end
-
- ##
- # Display information about +method+.
-
- def display_method_info(method)
- page do
- @formatter.draw_line(method.full_name)
- display_params(method)
-
- @formatter.draw_line
- display_flow(method.comment)
-
- if method.aliases and not method.aliases.empty? then
- @formatter.blankline
- aka = "(also known as #{method.aliases.map { |a| a.name }.join(', ')})"
- @formatter.wrap aka
- end
- end
- end
-
- ##
- # Display the list of +methods+.
-
- def display_method_list(methods)
- page do
- @formatter.wrap "More than one method matched your request. You can refine your search by asking for information on one of:"
- @formatter.blankline
-
- methods.each do |method|
- @formatter.raw_print_line "#{method.full_name} [#{method.source_path}]\n"
- end
- end
- end
-
- ##
- # Display a list of +methods+ and allow the user to select one of them.
-
- def display_method_list_choice(methods)
- page do
- @formatter.wrap "More than one method matched your request. Please choose one of the possible matches."
- @formatter.blankline
-
- methods.each_with_index do |method, index|
- @formatter.raw_print_line "%3d %s [%s]\n" % [index + 1, method.full_name, method.source_path]
- end
-
- @formatter.raw_print_line ">> "
-
- choice = $stdin.gets.strip!
-
- if(choice == '')
- return
- end
-
- choice = choice.to_i
-
- if ((choice == 0) || (choice > methods.size)) then
- @formatter.raw_print_line "Invalid choice!\n"
- else
- method = methods[choice - 1]
- display_method_info(method)
- end
- end
- end
-
- ##
- # Display the params for +method+.
-
- def display_params(method)
- params = method.params
-
- if params[0,1] == "(" then
- if method.is_singleton
- params = method.full_name + params
- else
- params = method.name + params
- end
- end
-
- params.split(/\n/).each do |param|
- @formatter.wrap param
- @formatter.break_to_newline
- end
-
- @formatter.blankline
- @formatter.wrap("From #{method.source_path}")
- end
-
- ##
- # List the classes in +classes+.
-
- def list_known_classes(classes)
- if classes.empty?
- warn_no_database
- else
- page do
- @formatter.draw_line "Known classes and modules"
- @formatter.blankline
-
- @formatter.wrap classes.sort.join(', ')
- end
- end
- end
-
- ##
- # Paginates output through a pager program.
-
- def page
- if pager = setup_pager then
- begin
- orig_output = @formatter.output
- @formatter.output = pager
- yield
- ensure
- @formatter.output = orig_output
- pager.close
- end
- else
- yield
- end
- rescue Errno::EPIPE
- end
-
- ##
- # Sets up a pager program to pass output through.
-
- def setup_pager
- unless @use_stdout then
- for pager in [ ENV['PAGER'], "less", "more", 'pager' ].compact.uniq
- return IO.popen(pager, "w") rescue nil
- end
- @use_stdout = true
- nil
- end
- end
-
- ##
- # Displays a message that describes how to build RI data.
-
- def warn_no_database
- output = @formatter.output
-
- output.puts "No ri data found"
- output.puts
- output.puts "If you've installed Ruby yourself, you need to generate documentation using:"
- output.puts
- output.puts " make install-doc"
- output.puts
- output.puts "from the same place you ran `make` to build ruby."
- output.puts
- output.puts "If you installed Ruby from a packaging system, then you may need to"
- output.puts "install an additional package, or ask the packager to enable ri generation."
- end
-
-end
diff --git a/lib/rdoc/ri/driver.rb b/lib/rdoc/ri/driver.rb
index 89534a5972..26304dca96 100644
--- a/lib/rdoc/ri/driver.rb
+++ b/lib/rdoc/ri/driver.rb
@@ -1,89 +1,85 @@
+require 'abbrev'
require 'optparse'
-require 'yaml'
+
+begin
+ require 'readline'
+rescue LoadError
+end
+
+begin
+ require 'win32console'
+rescue LoadError
+end
require 'rdoc/ri'
require 'rdoc/ri/paths'
-require 'rdoc/ri/formatter'
-require 'rdoc/ri/display'
-require 'fileutils'
require 'rdoc/markup'
-require 'rdoc/markup/to_flow'
+require 'rdoc/markup/formatter'
+require 'rdoc/text'
-class RDoc::RI::Driver
+##
+# For RubyGems backwards compatibility
- #
- # This class offers both Hash and OpenStruct functionality.
- # We convert from the Core Hash to this before calling any of
- # the display methods, in order to give the display methods
- # a cleaner API for accessing the data.
- #
- class OpenStructHash < Hash
- #
- # This method converts from a Hash to an OpenStructHash.
- #
- def self.convert(object)
- case object
- when Hash then
- new_hash = new # Convert Hash -> OpenStructHash
-
- object.each do |key, value|
- new_hash[key] = convert(value)
- end
+require 'rdoc/ri/formatter'
- new_hash
- when Array then
- object.map do |element|
- convert(element)
- end
- else
- object
- end
- end
-
- def merge_enums(other)
- other.each do |k, v|
- if self[k] then
- case v
- when Array then
- # HACK dunno
- if String === self[k] and self[k].empty? then
- self[k] = v
- else
- self[k] += v
- end
- when Hash then
- self[k].update v
- else
- # do nothing
- end
- else
- self[k] = v
- end
- end
- end
+##
+# The RI driver implements the command-line ri tool.
+#
+# The driver supports:
+# * loading RI data from:
+# * Ruby's standard library
+# * RubyGems
+# * ~/.rdoc
+# * A user-supplied directory
+# * Paging output (uses RI_PAGER environment variable, PAGER environment
+# variable or the less, more and pager programs)
+# * Interactive mode with tab-completion
+# * Abbreviated names (ri Zl shows Zlib documentation)
+# * Colorized output
+# * Merging output from multiple RI data sources
- def method_missing method, *args
- self[method.to_s]
- end
- end
+class RDoc::RI::Driver
+
+ ##
+ # Base Driver error class
class Error < RDoc::RI::Error; end
+ ##
+ # Raised when a name isn't found in the ri data stores
+
class NotFoundError < Error
- def message
+
+ ##
+ # Name that wasn't found
+
+ alias name message
+
+ def message # :nodoc:
"Nothing known about #{super}"
end
end
- attr_accessor :homepath # :nodoc:
+ ##
+ # An RDoc::RI::Store for each entry in the RI path
+
+ attr_accessor :stores
+
+ ##
+ # Controls the user of the pager vs $stdout
+
+ attr_accessor :use_stdout
+
+ ##
+ # Default options for ri
def self.default_options
options = {}
options[:use_stdout] = !$stdout.tty?
options[:width] = 72
- options[:formatter] = RDoc::RI::Formatter.for 'plain'
options[:interactive] = false
options[:use_cache] = true
+ options[:profile] = false
# By default all standard paths are used.
options[:use_system] = true
@@ -95,27 +91,33 @@ class RDoc::RI::Driver
return options
end
- def self.process_args(argv)
+ ##
+ # Dump +data_path+ using pp
+
+ def self.dump data_path
+ require 'pp'
+
+ open data_path, 'rb' do |io|
+ pp Marshal.load(io.read)
+ end
+ end
+
+ ##
+ # Parses +argv+ and returns a Hash of options
+
+ def self.process_args argv
options = default_options
opts = OptionParser.new do |opt|
+ opt.accept File do |file,|
+ File.readable?(file) and not File.directory?(file) and file
+ end
+
opt.program_name = File.basename $0
opt.version = RDoc::VERSION
opt.release = nil
opt.summary_indent = ' ' * 4
- directories = [
- RDoc::RI::Paths::SYSDIR,
- RDoc::RI::Paths::SITEDIR,
- RDoc::RI::Paths::HOMEDIR
- ]
-
- if RDoc::RI::Paths::GEMDIRS then
- Gem.path.each do |dir|
- directories << "#{dir}/doc/*/ri"
- end
- end
-
opt.banner = <<-EOT
Usage: #{opt.program_name} [options] [names...]
@@ -126,7 +128,7 @@ Where name can be:
All class names may be abbreviated to their minimum unambiguous form. If a name
is ambiguous, all valid options will be listed.
-The form '.' method matches either class or instance methods, while #method
+A '.' matches either class or instance methods, while #method
matches only instance and ::method matches only class methods.
For example:
@@ -136,15 +138,15 @@ For example:
#{opt.program_name} File.new
#{opt.program_name} zip
-Note that shell quoting may be required for method names containing
+Note that shell quoting or escaping may be required for method names containing
punctuation:
#{opt.program_name} 'Array.[]'
#{opt.program_name} compact\\!
-By default ri searches for documentation in the following directories:
+To see the default directories ri will search, run:
- #{directories.join "\n "}
+ #{opt.program_name} --list-doc-dirs
Specifying the --system, --site, --home, --gems or --doc-dir options will
limit ri to searching only the specified directories.
@@ -154,17 +156,67 @@ Options may also be set in the 'RI' environment variable.
opt.separator nil
opt.separator "Options:"
+
+ opt.separator nil
+
+ formatters = RDoc::Markup.constants.grep(/^To[A-Z][a-z]+$/).sort
+ formatters = formatters.sort.map do |formatter|
+ formatter.to_s.sub('To', '').downcase
+ end
+
+ opt.on("--format=NAME", "-f",
+ "Uses the selected formatter. The default",
+ "formatter is bs for paged output and ansi",
+ "otherwise. Valid formatters are:",
+ formatters.join(' '), formatters) do |value|
+ options[:formatter] = RDoc::Markup.const_get "To#{value.capitalize}"
+ end
+
+ opt.separator nil
+
+ opt.on("--no-pager", "-T",
+ "Send output directly to stdout,",
+ "rather than to a pager.") do
+ options[:use_stdout] = true
+ end
+
+ opt.separator nil
+
+ opt.on("--width=WIDTH", "-w", OptionParser::DecimalInteger,
+ "Set the width of the output.") do |value|
+ options[:width] = value
+ end
+
opt.separator nil
- opt.on("--fmt=FORMAT", "--format=FORMAT", "-f",
- RDoc::RI::Formatter::FORMATTERS.keys,
- "Format to use when displaying output:",
- " #{RDoc::RI::Formatter.list}",
- "Use 'bs' (backspace) with most pager",
- "programs. To use ANSI, either disable the",
- "pager or tell the pager to allow control",
- "characters.") do |value|
- options[:formatter] = RDoc::RI::Formatter.for value
+ opt.on("--interactive", "-i",
+ "In interactive mode you can repeatedly",
+ "look up methods with autocomplete.") do
+ options[:interactive] = true
+ end
+
+ opt.separator nil
+
+ opt.on("--list", "-l",
+ "List classes ri knows about.") do
+ options[:list] = true
+ end
+
+ opt.separator nil
+
+ opt.on("--[no-]profile",
+ "Run with the ruby profiler") do |value|
+ options[:profile] = value
+ end
+
+ opt.separator nil
+ opt.separator "Data source options:"
+ opt.separator nil
+
+ opt.on("--list-doc-dirs",
+ "List the directories from which ri will",
+ "source documentation on stdout and exit.") do
+ options[:list_doc_dirs] = true
end
opt.separator nil
@@ -184,21 +236,11 @@ Options may also be set in the 'RI' environment variable.
opt.separator nil
- opt.on("--[no-]use-cache",
- "Whether or not to use ri's cache.",
- "True by default.") do |value|
- options[:use_cache] = value
- end
-
- opt.separator nil
-
opt.on("--no-standard-docs",
"Do not include documentation from",
"the Ruby standard library, site_lib,",
"installed gems, or ~/.rdoc.",
- "Equivalent to specifying",
- "the options --no-system, --no-site, --no-gems,",
- "and --no-home") do
+ "Use with --doc-dir") do
options[:use_system] = false
options[:use_site] = false
options[:use_gems] = false
@@ -239,38 +281,12 @@ Options may also be set in the 'RI' environment variable.
end
opt.separator nil
-
- opt.on("--list-doc-dirs",
- "List the directories from which ri will",
- "source documentation on stdout and exit.") do
- options[:list_doc_dirs] = true
- end
-
- opt.separator nil
-
- opt.on("--no-pager", "-T",
- "Send output directly to stdout,",
- "rather than to a pager.") do
- options[:use_stdout] = true
- end
-
- opt.on("--interactive", "-i",
- "This makes ri go into interactive mode.",
- "When ri is in interactive mode it will",
- "allow the user to disambiguate lists of",
- "methods in case multiple methods match",
- "against a method search string. It also",
- "will allow the user to enter in a method",
- "name (with auto-completion, if readline",
- "is supported) when viewing a class.") do
- options[:interactive] = true
- end
-
+ opt.separator "Debug options:"
opt.separator nil
- opt.on("--width=WIDTH", "-w", OptionParser::DecimalInteger,
- "Set the width of the output.") do |value|
- options[:width] = value
+ opt.on("--dump=CACHE", File,
+ "Dumps data from an ri cache or data file") do |value|
+ options[:dump_path] = value
end
end
@@ -280,7 +296,6 @@ Options may also be set in the 'RI' environment variable.
options[:names] = argv
- options[:formatter] ||= RDoc::RI::Formatter.for('plain')
options[:use_stdout] ||= !$stdout.tty?
options[:use_stdout] ||= options[:interactive]
options[:width] ||= 72
@@ -294,376 +309,870 @@ Options may also be set in the 'RI' environment variable.
exit 1
end
- def self.run(argv = ARGV)
+ ##
+ # Runs the ri command line executable using +argv+
+
+ def self.run argv = ARGV
options = process_args argv
+
+ if options[:dump_path] then
+ dump options[:dump_path]
+ return
+ end
+
ri = new options
ri.run
end
- def initialize(initial_options={})
+ ##
+ # Creates a new driver using +initial_options+ from ::process_args
+
+ def initialize initial_options = {}
+ @paging = false
+ @classes = nil
+
options = self.class.default_options.update(initial_options)
+ @formatter_klass = options[:formatter]
+
+ require 'profile' if options[:profile]
+
@names = options[:names]
- @class_cache_name = 'classes'
+ @list = options[:list]
- @doc_dirs = RDoc::RI::Paths.path(options[:use_system],
- options[:use_site],
- options[:use_home],
- options[:use_gems],
- options[:extra_doc_dirs])
+ @doc_dirs = []
+ @stores = []
- @homepath = RDoc::RI::Paths.raw_path(false, false, true, false).first
- @homepath = @homepath.sub(/\.rdoc/, '.ri')
- @sys_dir = RDoc::RI::Paths.raw_path(true, false, false, false).first
- @list_doc_dirs = options[:list_doc_dirs]
+ RDoc::RI::Paths.each(options[:use_system], options[:use_site],
+ options[:use_home], options[:use_gems],
+ *options[:extra_doc_dirs]) do |path, type|
+ @doc_dirs << path
- FileUtils.mkdir_p cache_file_path unless File.directory? cache_file_path
- @cache_doc_dirs_path = File.join cache_file_path, ".doc_dirs"
+ store = RDoc::RI::Store.new path, type
+ store.load_cache
+ @stores << store
+ end
- @use_cache = options[:use_cache]
- @class_cache = nil
+ @list_doc_dirs = options[:list_doc_dirs]
@interactive = options[:interactive]
- @display = RDoc::RI::DefaultDisplay.new(options[:formatter],
- options[:width],
- options[:use_stdout])
+ @use_stdout = options[:use_stdout]
end
- def class_cache
- return @class_cache if @class_cache
+ ##
+ # Adds paths for undocumented classes +also_in+ to +out+
- # Get the documentation directories used to make the cache in order to see
- # whether the cache is valid for the current ri instantiation.
- if(File.readable?(@cache_doc_dirs_path))
- cache_doc_dirs = IO.read(@cache_doc_dirs_path).split("\n")
- else
- cache_doc_dirs = []
- end
-
- newest = map_dirs('created.rid') do |f|
- File.mtime f if test ?f, f
- end.max
-
- # An up to date cache file must have been created more recently than
- # the last modification of any of the documentation directories. It also
- # must have been created with the same documentation directories
- # as those from which ri currently is sourcing documentation.
- up_to_date = (File.exist?(class_cache_file_path) and
- newest and newest < File.mtime(class_cache_file_path) and
- (cache_doc_dirs == @doc_dirs))
-
- if up_to_date and @use_cache then
- open class_cache_file_path, 'rb' do |fp|
- begin
- @class_cache = Marshal.load fp.read
- rescue
- #
- # This shouldn't be necessary, since the up_to_date logic above
- # should force the cache to be recreated when a new version of
- # rdoc is installed. This seems like a worthwhile enhancement
- # to ri's robustness, however.
- #
- $stderr.puts "Error reading the class cache; recreating the class cache!"
- @class_cache = create_class_cache
+ def add_also_in out, also_in
+ return if also_in.empty?
+
+ out << RDoc::Markup::Rule.new(1)
+ out << RDoc::Markup::Paragraph.new("Also found in:")
+
+ paths = RDoc::Markup::Verbatim.new
+ also_in.each do |store|
+ paths.parts.push store.friendly_path, "\n"
+ end
+ out << paths
+ end
+
+ ##
+ # Adds a class header to +out+ for class +name+ which is described in
+ # +classes+.
+
+ def add_class out, name, classes
+ heading = if classes.all? { |klass| klass.module? } then
+ name
+ else
+ superclass = classes.map do |klass|
+ klass.superclass unless klass.module?
+ end.compact.shift || 'Object'
+
+ superclass = superclass.full_name unless String === superclass
+
+ "#{name} < #{superclass}"
+ end
+
+ out << RDoc::Markup::Heading.new(1, heading)
+ out << RDoc::Markup::BlankLine.new
+ end
+
+ ##
+ # Adds "(from ...)" to +out+ for +store+
+
+ def add_from out, store
+ out << RDoc::Markup::Paragraph.new("(from #{store.friendly_path})")
+ end
+
+ ##
+ # Adds +includes+ to +out+
+
+ def add_includes out, includes
+ return if includes.empty?
+
+ out << RDoc::Markup::Rule.new(1)
+ out << RDoc::Markup::Heading.new(1, "Includes:")
+
+ includes.each do |modules, store|
+ if modules.length == 1 then
+ include = modules.first
+ name = include.name
+ path = store.friendly_path
+ out << RDoc::Markup::Paragraph.new("#{name} (from #{path})")
+
+ if include.comment then
+ out << RDoc::Markup::BlankLine.new
+ out << include.comment
+ end
+ else
+ out << RDoc::Markup::Paragraph.new("(from #{store.friendly_path})")
+
+ wout, with = modules.partition { |incl| incl.comment.empty? }
+
+ out << RDoc::Markup::BlankLine.new unless with.empty?
+
+ with.each do |incl|
+ out << RDoc::Markup::Paragraph.new(incl.name)
+ out << RDoc::Markup::BlankLine.new
+ out << incl.comment
+ end
+
+ unless wout.empty? then
+ verb = RDoc::Markup::Verbatim.new
+
+ wout.each do |incl|
+ verb.push incl.name, "\n"
+ end
+
+ out << verb
end
end
+ end
+ end
+
+ ##
+ # Adds a list of +methods+ to +out+ with a heading of +name+
+
+ def add_method_list out, methods, name
+ return if methods.empty?
+
+ out << RDoc::Markup::Heading.new(1, "#{name}:")
+ out << RDoc::Markup::BlankLine.new
+
+ if @use_stdout and !@interactive
+ out.push(*methods.map do |method|
+ RDoc::Markup::Verbatim.new method
+ end)
else
- @class_cache = create_class_cache
+ out << RDoc::Markup::IndentedParagraph.new(2, methods.join(', '))
end
- @class_cache
+ out << RDoc::Markup::BlankLine.new
end
- def create_class_cache
- class_cache = OpenStructHash.new
+ ##
+ # Returns ancestor classes of +klass+
- if(@use_cache)
- # Dump the documentation directories to a file in the cache, so that
- # we only will use the cache for future instantiations with identical
- # documentation directories.
- File.open @cache_doc_dirs_path, "wb" do |fp|
- fp << @doc_dirs.join("\n")
- end
+ def ancestors_of klass
+ ancestors = []
+
+ unexamined = [klass]
+ seen = []
+
+ loop do
+ break if unexamined.empty?
+ current = unexamined.shift
+ seen << current
+
+ stores = classes[current]
+
+ break unless stores and not stores.empty?
+
+ klasses = stores.map do |store|
+ store.ancestors[current]
+ end.flatten.uniq
+
+ klasses = klasses - seen
+
+ ancestors.push(*klasses)
+ unexamined.push(*klasses)
end
- classes = map_dirs('**/cdesc*.yaml') { |f| Dir[f] }
- warn "Updating class cache with #{classes.size} classes..."
- populate_class_cache class_cache, classes
+ ancestors.reverse
+ end
- write_cache class_cache, class_cache_file_path
+ ##
+ # For RubyGems backwards compatibility
- class_cache
+ def class_cache # :nodoc:
end
- def populate_class_cache(class_cache, classes, extension = false)
- classes.each do |cdesc|
- desc = read_yaml cdesc
- klassname = desc["full_name"]
+ ##
+ # Builds a RDoc::Markup::Document from +found+, +klasess+ and +includes+
- unless class_cache.has_key? klassname then
- desc["display_name"] = "Class"
- desc["sources"] = [cdesc]
- desc["instance_method_extensions"] = []
- desc["class_method_extensions"] = []
- class_cache[klassname] = desc
- else
- klass = class_cache[klassname]
+ def class_document name, found, klasses, includes
+ also_in = []
+
+ out = RDoc::Markup::Document.new
+
+ add_class out, name, klasses
- if extension then
- desc["instance_method_extensions"] = desc.delete "instance_methods"
- desc["class_method_extensions"] = desc.delete "class_methods"
+ add_includes out, includes
+
+ found.each do |store, klass|
+ comment = klass.comment
+ # TODO the store's cache should always return an empty Array
+ class_methods = store.class_methods[klass.full_name] || []
+ instance_methods = store.instance_methods[klass.full_name] || []
+ attributes = store.attributes[klass.full_name] || []
+
+ if comment.empty? and
+ instance_methods.empty? and class_methods.empty? then
+ also_in << store
+ next
+ end
+
+ add_from out, store
+
+ unless comment.empty? then
+ out << RDoc::Markup::Rule.new(1)
+
+ if comment.merged? then
+ parts = comment.parts
+ parts = parts.zip [RDoc::Markup::BlankLine.new] * parts.length
+ parts.flatten!
+ parts.pop
+
+ out.push(*parts)
+ else
+ out << comment
end
+ end
- klass.merge_enums desc
- klass["sources"] << cdesc
+ if class_methods or instance_methods or not klass.constants.empty? then
+ out << RDoc::Markup::Rule.new(1)
end
+
+ unless klass.constants.empty? then
+ out << RDoc::Markup::Heading.new(1, "Constants:")
+ out << RDoc::Markup::BlankLine.new
+ list = RDoc::Markup::List.new :NOTE
+
+ constants = klass.constants.sort_by { |constant| constant.name }
+
+ list.push(*constants.map do |constant|
+ parts = constant.comment.parts if constant.comment
+ parts << RDoc::Markup::Paragraph.new('[not documented]') if
+ parts.empty?
+
+ RDoc::Markup::ListItem.new(constant.name, *parts)
+ end)
+
+ out << list
+ out << RDoc::Markup::BlankLine.new
+ end
+
+ add_method_list out, class_methods, 'Class methods'
+ add_method_list out, instance_methods, 'Instance methods'
+ add_method_list out, attributes, 'Attributes'
end
+
+ add_also_in out, also_in
+
+ out
end
- def class_cache_file_path
- File.join cache_file_path, @class_cache_name
+ ##
+ # Hash mapping a known class or module to the stores it can be loaded from
+
+ def classes
+ return @classes if @classes
+
+ @classes = {}
+
+ @stores.each do |store|
+ store.cache[:modules].each do |mod|
+ # using default block causes searched-for modules to be added
+ @classes[mod] ||= []
+ @classes[mod] << store
+ end
+ end
+
+ @classes
end
- def cache_file_for(klassname)
- File.join cache_file_path, klassname.gsub(/:+/, "-")
+ ##
+ # Returns the stores wherin +name+ is found along with the classes and
+ # includes that match it
+
+ def classes_and_includes_for name
+ klasses = []
+ includes = []
+
+ found = @stores.map do |store|
+ begin
+ klass = store.load_class name
+ klasses << klass
+ includes << [klass.includes, store] if klass.includes
+ [store, klass]
+ rescue Errno::ENOENT
+ end
+ end.compact
+
+ includes.reject! do |modules,| modules.empty? end
+
+ [found, klasses, includes]
end
- def cache_file_path
- File.join @homepath, 'cache'
+ ##
+ # Completes +name+ based on the caches. For Readline
+
+ def complete name
+ klasses = classes.keys
+ completions = []
+
+ klass, selector, method = parse_name name
+
+ # may need to include Foo when given Foo::
+ klass_name = method ? name : klass
+
+ if name !~ /#|\./ then
+ completions = klasses.grep(/^#{Regexp.escape klass_name}[^:]*$/)
+ completions.concat klasses.grep(/^#{Regexp.escape name}[^:]*$/) if
+ name =~ /::$/
+
+ completions << klass if classes.key? klass # to complete a method name
+ elsif selector then
+ completions << klass if classes.key? klass
+ elsif classes.key? klass_name then
+ completions << klass_name
+ end
+
+ if completions.include? klass and name =~ /#|\.|::/ then
+ methods = list_methods_matching name
+
+ if not methods.empty? then
+ # remove Foo if given Foo:: and a method was found
+ completions.delete klass
+ elsif selector then
+ # replace Foo with Foo:: as given
+ completions.delete klass
+ completions << "#{klass}#{selector}"
+ end
+
+ completions.push(*methods)
+ end
+
+ completions.sort.uniq
end
- def display_class(name)
- klass = class_cache[name]
- @display.display_class_info klass
+ ##
+ # Converts +document+ to text and writes it to the pager
+
+ def display document
+ page do |io|
+ text = document.accept formatter(io)
+
+ io.write text
+ end
end
- def display_method(method)
- @display.display_method_info method
+ ##
+ # Outputs formatted RI data for class +name+. Groups undocumented classes
+
+ def display_class name
+ return if name =~ /#|\./
+
+ found, klasses, includes = classes_and_includes_for name
+
+ return if found.empty?
+
+ out = class_document name, found, klasses, includes
+
+ display out
end
- def get_info_for(arg)
- @names = [arg]
- run
+ ##
+ # Outputs formatted RI data for method +name+
+
+ def display_method name
+ found = load_methods_matching name
+
+ raise NotFoundError, name if found.empty?
+
+ filtered = filter_methods found, name
+
+ out = method_document name, filtered
+
+ display out
end
- def load_cache_for(klassname)
- path = cache_file_for klassname
+ ##
+ # Outputs formatted RI data for the class or method +name+.
+ #
+ # Returns true if +name+ was found, false if it was not an alternative could
+ # be guessed, raises an error if +name+ couldn't be guessed.
- cache = nil
+ def display_name name
+ return true if display_class name
- if File.exist? path and
- File.mtime(path) >= File.mtime(class_cache_file_path) and
- @use_cache then
- open path, 'rb' do |fp|
- begin
- cache = Marshal.load fp.read
- rescue
- #
- # The cache somehow is bad. Recreate the cache.
- #
- $stderr.puts "Error reading the cache for #{klassname}; recreating the cache!"
- cache = create_cache_for klassname, path
- end
+ display_method name if name =~ /::|#|\./
+
+ true
+ rescue NotFoundError
+ matches = list_methods_matching name if name =~ /::|#|\./
+ matches = classes.keys.grep(/^#{name}/) if matches.empty?
+
+ raise if matches.empty?
+
+ page do |io|
+ io.puts "#{name} not found, maybe you meant:"
+ io.puts
+ io.puts matches.join("\n")
+ end
+
+ false
+ end
+
+ ##
+ # Displays each name in +name+
+
+ def display_names names
+ names.each do |name|
+ name = expand_name name
+
+ display_name name
+ end
+ end
+
+ ##
+ # Expands abbreviated klass +klass+ into a fully-qualified class. "Zl::Da"
+ # will be expanded to Zlib::DataError.
+
+ def expand_class klass
+ klass.split('::').inject '' do |expanded, klass_part|
+ expanded << '::' unless expanded.empty?
+ short = expanded << klass_part
+
+ subset = classes.keys.select do |klass_name|
+ klass_name =~ /^#{expanded}[^:]*$/
end
- else
- cache = create_cache_for klassname, path
+
+ abbrevs = Abbrev.abbrev subset
+
+ expanded = abbrevs[short]
+
+ raise NotFoundError, short unless expanded
+
+ expanded.dup
end
+ end
+
+ ##
+ # Expands the class portion of +name+ into a fully-qualified class. See
+ # #expand_class.
- cache
+ def expand_name name
+ klass, selector, method = parse_name name
+
+ return [selector, method].join if klass.empty?
+
+ "#{expand_class klass}#{selector}#{method}"
end
- def create_cache_for(klassname, path)
- klass = class_cache[klassname]
- return nil unless klass
+ ##
+ # Filters the methods in +found+ trying to find a match for +name+.
- method_files = klass["sources"]
- cache = OpenStructHash.new
+ def filter_methods found, name
+ regexp = name_regexp name
- method_files.each do |f|
- system_file = f.index(@sys_dir) == 0
- Dir[File.join(File.dirname(f), "*")].each do |yaml|
- next unless yaml =~ /yaml$/
- next if yaml =~ /cdesc-[^\/]+yaml$/
+ filtered = found.find_all do |store, methods|
+ methods.any? { |method| method.full_name =~ regexp }
+ end
- method = read_yaml yaml
+ return filtered unless filtered.empty?
- if system_file then
- method["source_path"] = "Ruby #{RDoc::RI::Paths::VERSION}"
- else
- if(f =~ %r%gems/[\d.]+/doc/([^/]+)%) then
- ext_path = "gem #{$1}"
- else
- ext_path = f
- end
+ found
+ end
- method["source_path"] = ext_path
- end
+ ##
+ # Yields items matching +name+ including the store they were found in, the
+ # class being searched for, the class they were found in (an ancestor) the
+ # types of methods to look up (from #method_type), and the method name being
+ # searched for
+
+ def find_methods name
+ klass, selector, method = parse_name name
- name = method["full_name"]
- cache[name] = method
+ types = method_type selector
+
+ klasses = nil
+ ambiguous = klass.empty?
+
+ if ambiguous then
+ klasses = classes.keys
+ else
+ klasses = ancestors_of klass
+ klasses.unshift klass
+ end
+
+ methods = []
+
+ klasses.each do |ancestor|
+ ancestors = classes[ancestor]
+
+ next unless ancestors
+
+ klass = ancestor if ambiguous
+
+ ancestors.each do |store|
+ methods << [store, klass, ancestor, types, method]
end
end
- write_cache cache, path
+ methods = methods.sort_by do |_, k, a, _, m|
+ [k, a, m].compact
+ end
+
+ methods.each do |item|
+ yield(*item) # :yields: store, klass, ancestor, types, method
+ end
+
+ self
end
##
- # Finds the next ancestor of +orig_klass+ after +klass+.
+ # Creates a new RDoc::Markup::Formatter. If a formatter is given with -f,
+ # use it. If we're outputting to a pager, use bs, otherwise ansi.
+
+ def formatter(io)
+ if @formatter_klass then
+ @formatter_klass.new
+ elsif paging? or !io.tty? then
+ RDoc::Markup::ToBs.new
+ else
+ RDoc::Markup::ToAnsi.new
+ end
+ end
+
+ ##
+ # Runs ri interactively using Readline if it is available.
- def lookup_ancestor(klass, orig_klass)
- # This is a bit hacky, but ri will go into an infinite
- # loop otherwise, since Object has an Object ancestor
- # for some reason. Depending on the documentation state, I've seen
- # Kernel as an ancestor of Object and not as an ancestor of Object.
- if ((orig_klass == "Object") &&
- ((klass == "Kernel") || (klass == "Object")))
- return nil
+ def interactive
+ puts "\nEnter the method name you want to look up."
+
+ if defined? Readline then
+ Readline.completion_proc = method :complete
+ puts "You can use tab to autocomplete."
end
- cache = class_cache[orig_klass]
+ puts "Enter a blank line to exit.\n\n"
- return nil unless cache
+ loop do
+ name = if defined? Readline then
+ Readline.readline ">> "
+ else
+ print ">> "
+ $stdin.gets
+ end
- ancestors = [orig_klass]
- ancestors.push(*cache.includes.map { |inc| inc['name'] })
- ancestors << cache.superclass
+ return if name.nil? or name.empty?
- ancestor_index = ancestors.index(klass)
+ name = expand_name name.strip
- if ancestor_index
- ancestor = ancestors[ancestors.index(klass) + 1]
- return ancestor if ancestor
+ begin
+ display_name name
+ rescue NotFoundError => e
+ puts e.message
+ end
end
- lookup_ancestor klass, cache.superclass
+ rescue Interrupt
+ exit
end
##
- # Finds the method
+ # Is +file+ in ENV['PATH']?
- def lookup_method(name, klass)
- cache = load_cache_for klass
- return nil unless cache
+ def in_path? file
+ return true if file =~ %r%\A/% and File.exist? file
- method = cache[name.gsub('.', '#')]
- method = cache[name.gsub('.', '::')] unless method
- method
+ ENV['PATH'].split(File::PATH_SEPARATOR).any? do |path|
+ File.exist? File.join(path, file)
+ end
end
- def map_dirs(file_name)
- @doc_dirs.map { |dir| yield File.join(dir, file_name) }.flatten.compact
+ ##
+ # Lists classes known to ri starting with +names+. If +names+ is empty all
+ # known classes are shown.
+
+ def list_known_classes names = []
+ classes = []
+
+ stores.each do |store|
+ classes << store.modules
+ end
+
+ classes = classes.flatten.uniq.sort
+
+ unless names.empty? then
+ filter = Regexp.union names.map { |name| /^#{name}/ }
+
+ classes = classes.grep filter
+ end
+
+ page do |io|
+ if paging? or io.tty? then
+ if names.empty? then
+ io.puts "Classes and Modules known to ri:"
+ else
+ io.puts "Classes and Modules starting with #{names.join ', '}:"
+ end
+ io.puts
+ end
+
+ io.puts classes.join("\n")
+ end
end
##
- # Extract the class and method name parts from +name+ like Foo::Bar#baz
+ # Returns an Array of methods matching +name+
- def parse_name(name)
- parts = name.split(/(::|\#|\.)/)
+ def list_methods_matching name
+ found = []
- if parts[-2] != '::' or parts.last !~ /^[A-Z]/ then
- meth = parts.pop
- parts.pop
- end
+ find_methods name do |store, klass, ancestor, types, method|
+ if types == :instance or types == :both then
+ methods = store.instance_methods[ancestor]
- klass = parts.join
+ if methods then
+ matches = methods.grep(/^#{Regexp.escape method.to_s}/)
+
+ matches = matches.map do |match|
+ "#{klass}##{match}"
+ end
- [klass, meth]
+ found.push(*matches)
+ end
+ end
+
+ if types == :class or types == :both then
+ methods = store.class_methods[ancestor]
+
+ next unless methods
+ matches = methods.grep(/^#{Regexp.escape method.to_s}/)
+
+ matches = matches.map do |match|
+ "#{klass}::#{match}"
+ end
+
+ found.push(*matches)
+ end
+ end
+
+ found.uniq
end
- def read_yaml(path)
- data = File.read path
+ ##
+ # Loads RI data for method +name+ on +klass+ from +store+. +type+ and
+ # +cache+ indicate if it is a class or instance method.
+
+ def load_method store, cache, klass, type, name
+ methods = store.send(cache)[klass]
+
+ return unless methods
- # Necessary to be backward-compatible with documentation generated
- # by earliar RDoc versions.
- data = data.gsub(/ \!ruby\/(object|struct):(RDoc::RI|RI).*/, '')
- data = data.gsub(/ \!ruby\/(object|struct):SM::(\S+)/,
- ' !ruby/\1:RDoc::Markup::\2')
- OpenStructHash.convert(YAML.load(data))
+ method = methods.find do |method_name|
+ method_name == name
+ end
+
+ return unless method
+
+ store.load_method klass, "#{type}#{method}"
end
- def run
- if(@list_doc_dirs)
- puts @doc_dirs.join("\n")
- elsif @names.empty? then
- @display.list_known_classes class_cache.keys.sort
- else
- @names.each do |name|
- if class_cache.key? name then
- method_map = display_class name
- if(@interactive)
- method_name = @display.get_class_method_choice(method_map)
-
- if(method_name != nil)
- method = lookup_method "#{name}#{method_name}", name
- display_method method
- end
- end
- elsif name =~ /::|\#|\./ then
- klass, = parse_name name
+ ##
+ # Returns an Array of RI data for methods matching +name+
- orig_klass = klass
- orig_name = name
+ def load_methods_matching name
+ found = []
- loop do
- method = lookup_method name, klass
+ find_methods name do |store, klass, ancestor, types, method|
+ methods = []
- break method if method
+ methods << load_method(store, :class_methods, ancestor, '::', method) if
+ [:class, :both].include? types
- ancestor = lookup_ancestor klass, orig_klass
+ methods << load_method(store, :instance_methods, ancestor, '#', method) if
+ [:instance, :both].include? types
- break unless ancestor
+ found << [store, methods.compact]
+ end
- name = name.sub klass, ancestor
- klass = ancestor
- end
+ found.reject do |path, methods| methods.empty? end
+ end
- raise NotFoundError, orig_name unless method
+ ##
+ # Builds a RDoc::Markup::Document from +found+, +klasess+ and +includes+
- display_method method
- else
- methods = select_methods(/#{name}/)
-
- if methods.size == 0
- raise NotFoundError, name
- elsif methods.size == 1
- display_method methods[0]
- else
- if(@interactive)
- @display.display_method_list_choice methods
- else
- @display.display_method_list methods
- end
- end
+ def method_document name, filtered
+ out = RDoc::Markup::Document.new
+
+ out << RDoc::Markup::Heading.new(1, name)
+ out << RDoc::Markup::BlankLine.new
+
+ filtered.each do |store, methods|
+ methods.each do |method|
+ out << RDoc::Markup::Paragraph.new("(from #{store.friendly_path})")
+
+ unless name =~ /^#{Regexp.escape method.parent_name}/ then
+ out << RDoc::Markup::Heading.new(3, "Implementation from #{method.parent_name}")
end
+ out << RDoc::Markup::Rule.new(1)
+
+ if method.arglists then
+ arglists = method.arglists.chomp.split "\n"
+ arglists = arglists.map { |line| line + "\n" }
+ out << RDoc::Markup::Verbatim.new(*arglists)
+ out << RDoc::Markup::Rule.new(1)
+ end
+
+ out << RDoc::Markup::BlankLine.new
+ out << method.comment
+ out << RDoc::Markup::BlankLine.new
end
end
- rescue NotFoundError => e
- abort e.message
+
+ out
end
- def select_methods(pattern)
- methods = []
- class_cache.keys.sort.each do |klass|
- class_cache[klass]["instance_methods"].map{|h|h["name"]}.grep(pattern) do |name|
- method = load_cache_for(klass)[klass+'#'+name]
- methods << method if method
- end
- class_cache[klass]["class_methods"].map{|h|h["name"]}.grep(pattern) do |name|
- method = load_cache_for(klass)[klass+'::'+name]
- methods << method if method
+ ##
+ # Returns the type of method (:both, :instance, :class) for +selector+
+
+ def method_type selector
+ case selector
+ when '.', nil then :both
+ when '#' then :instance
+ else :class
+ end
+ end
+
+ ##
+ # Returns a regular expression for +name+ that will match an
+ # RDoc::AnyMethod's name.
+
+ def name_regexp name
+ klass, type, name = parse_name name
+
+ case type
+ when '#', '::' then
+ /^#{klass}#{type}#{Regexp.escape name}$/
+ else
+ /^#{klass}(#|::)#{Regexp.escape name}$/
+ end
+ end
+
+ ##
+ # Paginates output through a pager program.
+
+ def page
+ if pager = setup_pager then
+ begin
+ yield pager
+ ensure
+ pager.close
end
+ else
+ yield $stdout
end
- methods
+ rescue Errno::EPIPE
+ ensure
+ @paging = false
end
- def write_cache(cache, path)
- if(@use_cache)
- File.open path, "wb" do |cache_file|
- Marshal.dump cache, cache_file
+ ##
+ # Are we using a pager?
+
+ def paging?
+ @paging
+ end
+
+ ##
+ # Extracts the class, selector and method name parts from +name+ like
+ # Foo::Bar#baz.
+ #
+ # NOTE: Given Foo::Bar, Bar is considered a class even though it may be a
+ # method
+
+ def parse_name name
+ parts = name.split(/(::|#|\.)/)
+
+ if parts.length == 1 then
+ if parts.first =~ /^[a-z]|^([%&*+\/<>^`|~-]|\+@|-@|<<|<=>?|===?|=>|=~|>>|\[\]=?|~@)$/ then
+ type = '.'
+ meth = parts.pop
+ else
+ type = nil
+ meth = nil
end
+ elsif parts.length == 2 or parts.last =~ /::|#|\./ then
+ type = parts.pop
+ meth = nil
+ elsif parts[-2] != '::' or parts.last !~ /^[A-Z]/ then
+ meth = parts.pop
+ type = parts.pop
+ end
+
+ klass = parts.join
+
+ [klass, type, meth]
+ end
+
+ ##
+ # Looks up and displays ri data according to the options given.
+
+ def run
+ if @list_doc_dirs then
+ puts @doc_dirs
+ elsif @list then
+ list_known_classes @names
+ elsif @interactive or @names.empty? then
+ interactive
+ else
+ display_names @names
end
+ rescue NotFoundError => e
+ abort e.message
+ end
+
+ ##
+ # Sets up a pager program to pass output through. Tries the RI_PAGER and
+ # PAGER environment variables followed by pager, less then more.
- cache
+ def setup_pager
+ return if @use_stdout
+
+ pagers = [ENV['RI_PAGER'], ENV['PAGER'], 'pager', 'less', 'more']
+
+ pagers.compact.uniq.each do |pager|
+ next unless pager
+
+ pager_cmd = pager.split.first
+
+ next unless in_path? pager_cmd
+
+ io = IO.popen(pager, 'w') rescue next
+
+ next if $? and $?.exited? # pager didn't work
+
+ @paging = true
+
+ return io
+ end
+
+ @use_stdout = true
+
+ nil
end
end
+
diff --git a/lib/rdoc/ri/formatter.rb b/lib/rdoc/ri/formatter.rb
index 258907d141..84d37a9d31 100644
--- a/lib/rdoc/ri/formatter.rb
+++ b/lib/rdoc/ri/formatter.rb
@@ -1,616 +1,5 @@
-require 'rdoc/ri'
-require 'rdoc/markup'
-
-class RDoc::RI::Formatter
-
- attr_writer :indent
- attr_accessor :output
-
- FORMATTERS = { }
-
- def self.for(name)
- FORMATTERS[name.downcase]
- end
-
- def self.list
- FORMATTERS.keys.sort.join ", "
- end
-
- def initialize(output, width, indent)
- @output = output
- @width = width
- @indent = indent
- @original_indent = indent.dup
- end
-
- def draw_line(label=nil)
- len = @width
- len -= (label.size + 1) if label
-
- if len > 0 then
- @output.print '-' * len
- if label
- @output.print ' '
- bold_print label
- end
-
- @output.puts
- else
- @output.print '-' * @width
- @output.puts
-
- @output.puts label
- end
- end
-
- def indent
- return @indent unless block_given?
-
- begin
- indent = @indent.dup
- @indent += @original_indent
- yield
- ensure
- @indent = indent
- end
- end
-
- def wrap(txt, prefix=@indent, linelen=@width)
- return unless txt && !txt.empty?
-
- work = conv_markup(txt)
- textLen = linelen - prefix.length
- patt = Regexp.new("^(.{0,#{textLen}})[ \n]")
- next_prefix = prefix.tr("^ ", " ")
-
- res = []
-
- while work.length > textLen
- if work =~ patt
- res << $1
- work.slice!(0, $&.length)
- else
- res << work.slice!(0, textLen)
- end
- end
- res << work if work.length.nonzero?
- @output.puts(prefix + res.join("\n" + next_prefix))
- end
-
- def blankline
- @output.puts
- end
-
- ##
- # Called when we want to ensure a new 'wrap' starts on a newline. Only
- # needed for HtmlFormatter, because the rest do their own line breaking.
-
- def break_to_newline
- end
-
- def bold_print(txt)
- @output.print txt
- end
-
- def raw_print_line(txt)
- @output.print txt
- end
-
- ##
- # Convert HTML entities back to ASCII
-
- def conv_html(txt)
- txt = txt.gsub(/&gt;/, '>')
- txt.gsub!(/&lt;/, '<')
- txt.gsub!(/&quot;/, '"')
- txt.gsub!(/&amp;/, '&')
- txt
- end
-
- ##
- # Convert markup into display form
-
- def conv_markup(txt)
- txt = txt.gsub(%r{<tt>(.*?)</tt>}, '+\1+')
- txt.gsub!(%r{<code>(.*?)</code>}, '+\1+')
- txt.gsub!(%r{<b>(.*?)</b>}, '*\1*')
- txt.gsub!(%r{<em>(.*?)</em>}, '_\1_')
- txt
- end
-
- def display_list(list)
- case list.type
- when :BULLET
- prefixer = proc { |ignored| @indent + "* " }
-
- when :NUMBER, :UPPERALPHA, :LOWERALPHA then
- start = case list.type
- when :NUMBER then 1
- when :UPPERALPHA then 'A'
- when :LOWERALPHA then 'a'
- end
-
- prefixer = proc do |ignored|
- res = @indent + "#{start}.".ljust(4)
- start = start.succ
- res
- end
-
- when :LABELED, :NOTE then
- longest = 0
-
- list.contents.each do |item|
- if RDoc::Markup::Flow::LI === item and item.label.length > longest then
- longest = item.label.length
- end
- end
-
- longest += 1
-
- prefixer = proc { |li| @indent + li.label.ljust(longest) }
-
- else
- raise ArgumentError, "unknown list type #{list.type}"
- end
-
- list.contents.each do |item|
- if RDoc::Markup::Flow::LI === item then
- prefix = prefixer.call item
- display_flow_item item, prefix
- else
- display_flow_item item
- end
- end
- end
-
- def display_flow_item(item, prefix = @indent)
- case item
- when RDoc::Markup::Flow::P, RDoc::Markup::Flow::LI
- wrap(conv_html(item.body), prefix)
- blankline
-
- when RDoc::Markup::Flow::LIST
- display_list(item)
-
- when RDoc::Markup::Flow::VERB
- display_verbatim_flow_item(item, @indent)
-
- when RDoc::Markup::Flow::H
- display_heading(conv_html(item.text), item.level, @indent)
-
- when RDoc::Markup::Flow::RULE
- draw_line
-
- else
- raise RDoc::Error, "Unknown flow element: #{item.class}"
- end
- end
-
- def display_verbatim_flow_item(item, prefix=@indent)
- item.body.split(/\n/).each do |line|
- @output.print @indent, conv_html(line), "\n"
- end
- blankline
- end
-
- def display_heading(text, level, indent)
- text = strip_attributes text
-
- case level
- when 1 then
- ul = "=" * text.length
- @output.puts
- @output.puts text.upcase
- @output.puts ul
-
- when 2 then
- ul = "-" * text.length
- @output.puts
- @output.puts text
- @output.puts ul
- else
- @output.print indent, text, "\n"
- end
-
- @output.puts
- end
-
- def display_flow(flow)
- flow.each do |f|
- display_flow_item(f)
- end
- end
-
- def strip_attributes(text)
- text.gsub(/(<\/?(?:b|code|em|i|tt)>)/, '')
- end
-
-end
-
-##
-# Handle text with attributes. We're a base class: there are different
-# presentation classes (one, for example, uses overstrikes to handle bold and
-# underlining, while another using ANSI escape sequences.
-
-class RDoc::RI::AttributeFormatter < RDoc::RI::Formatter
-
- BOLD = 1
- ITALIC = 2
- CODE = 4
-
- ATTR_MAP = {
- "b" => BOLD,
- "code" => CODE,
- "em" => ITALIC,
- "i" => ITALIC,
- "tt" => CODE
- }
-
- AttrChar = Struct.new :char, :attr
-
- class AttributeString
- attr_reader :txt
-
- def initialize
- @txt = []
- @optr = 0
- end
-
- def <<(char)
- @txt << char
- end
-
- def empty?
- @optr >= @txt.length
- end
-
- # accept non space, then all following spaces
- def next_word
- start = @optr
- len = @txt.length
-
- while @optr < len && @txt[@optr].char != " "
- @optr += 1
- end
-
- while @optr < len && @txt[@optr].char == " "
- @optr += 1
- end
-
- @txt[start...@optr]
- end
- end
-
- ##
- # Overrides base class. Looks for <tt>...</tt> etc sequences and generates
- # an array of AttrChars. This array is then used as the basis for the
- # split.
-
- def wrap(txt, prefix=@indent, linelen=@width)
- return unless txt && !txt.empty?
-
- txt = add_attributes_to(txt)
- next_prefix = prefix.tr("^ ", " ")
- linelen -= prefix.size
-
- line = []
-
- until txt.empty?
- word = txt.next_word
- if word.size + line.size > linelen
- write_attribute_text(prefix, line)
- prefix = next_prefix
- line = []
- end
- line.concat(word)
- end
-
- write_attribute_text(prefix, line) if line.length > 0
- end
-
- protected
-
- def write_attribute_text(prefix, line)
- @output.print prefix
- line.each do |achar|
- @output.print achar.char
- end
- @output.puts
- end
-
- def bold_print(txt)
- @output.print txt
- end
-
- private
-
- def add_attributes_to(txt)
- tokens = txt.split(%r{(</?(?:b|code|em|i|tt)>)})
- text = AttributeString.new
- attributes = 0
- tokens.each do |tok|
- case tok
- when %r{^</(\w+)>$} then attributes &= ~(ATTR_MAP[$1]||0)
- when %r{^<(\w+)>$} then attributes |= (ATTR_MAP[$1]||0)
- else
- tok.split(//).each {|ch| text << AttrChar.new(ch, attributes)}
- end
- end
- text
- end
-
-end
-
-##
-# This formatter generates overstrike-style formatting, which works with
-# pagers such as man and less.
-
-class RDoc::RI::OverstrikeFormatter < RDoc::RI::AttributeFormatter
-
- BS = "\C-h"
-
- def write_attribute_text(prefix, line)
- @output.print prefix
-
- line.each do |achar|
- attr = achar.attr
- @output.print "_", BS if (attr & (ITALIC + CODE)) != 0
- @output.print achar.char, BS if (attr & BOLD) != 0
- @output.print achar.char
- end
-
- @output.puts
- end
-
- ##
- # Draw a string in bold
-
- def bold_print(text)
- text.split(//).each do |ch|
- @output.print ch, BS, ch
- end
- end
-
-end
-
-##
-# This formatter uses ANSI escape sequences to colorize stuff works with
-# pagers such as man and less.
-
-class RDoc::RI::AnsiFormatter < RDoc::RI::AttributeFormatter
-
- def initialize(*args)
- super
- @output.print "\033[0m"
- end
-
- def write_attribute_text(prefix, line)
- @output.print prefix
- curr_attr = 0
- line.each do |achar|
- attr = achar.attr
- if achar.attr != curr_attr
- update_attributes(achar.attr)
- curr_attr = achar.attr
- end
- @output.print achar.char
- end
- update_attributes(0) unless curr_attr.zero?
- @output.puts
- end
-
- def bold_print(txt)
- @output.print "\033[1m#{txt}\033[m"
- end
-
- HEADINGS = {
- 1 => ["\033[1;32m", "\033[m"],
- 2 => ["\033[4;32m", "\033[m"],
- 3 => ["\033[32m", "\033[m"],
- }
-
- def display_heading(text, level, indent)
- level = 3 if level > 3
- heading = HEADINGS[level]
- @output.print indent
- @output.print heading[0]
- @output.print strip_attributes(text)
- @output.puts heading[1]
- end
-
- private
-
- ATTR_MAP = {
- BOLD => "1",
- ITALIC => "33",
- CODE => "36"
- }
-
- def update_attributes(attr)
- str = "\033["
- for quality in [ BOLD, ITALIC, CODE]
- unless (attr & quality).zero?
- str << ATTR_MAP[quality]
- end
- end
- @output.print str, "m"
- end
-
-end
-
##
-# This formatter uses HTML.
-
-class RDoc::RI::HtmlFormatter < RDoc::RI::AttributeFormatter
-
- def write_attribute_text(prefix, line)
- curr_attr = 0
- line.each do |achar|
- attr = achar.attr
- if achar.attr != curr_attr
- update_attributes(curr_attr, achar.attr)
- curr_attr = achar.attr
- end
- @output.print(escape(achar.char))
- end
- update_attributes(curr_attr, 0) unless curr_attr.zero?
- end
-
- def draw_line(label=nil)
- if label != nil
- bold_print(label)
- end
- @output.puts("<hr>")
- end
-
- def bold_print(txt)
- tag("b") { txt }
- end
-
- def blankline()
- @output.puts("<p>")
- end
-
- def break_to_newline
- @output.puts("<br>")
- end
-
- def display_heading(text, level, indent)
- level = 4 if level > 4
- tag("h#{level}") { text }
- @output.puts
- end
-
- def display_list(list)
- case list.type
- when :BULLET then
- list_type = "ul"
- prefixer = proc { |ignored| "<li>" }
-
- when :NUMBER, :UPPERALPHA, :LOWERALPHA then
- list_type = "ol"
- prefixer = proc { |ignored| "<li>" }
-
- when :LABELED then
- list_type = "dl"
- prefixer = proc do |li|
- "<dt><b>" + escape(li.label) + "</b><dd>"
- end
-
- when :NOTE then
- list_type = "table"
- prefixer = proc do |li|
- %{<tr valign="top"><td>#{li.label.gsub(/ /, '&nbsp;')}</td><td>}
- end
- else
- fail "unknown list type"
- end
-
- @output.print "<#{list_type}>"
- list.contents.each do |item|
- if item.kind_of? RDoc::Markup::Flow::LI
- prefix = prefixer.call(item)
- @output.print prefix
- display_flow_item(item, prefix)
- else
- display_flow_item(item)
- end
- end
- @output.print "</#{list_type}>"
- end
-
- def display_verbatim_flow_item(item, prefix=@indent)
- @output.print("<pre>")
- item.body.split(/\n/).each do |line|
- @output.puts conv_html(line)
- end
- @output.puts("</pre>")
- end
-
- private
-
- ATTR_MAP = {
- BOLD => "b>",
- ITALIC => "i>",
- CODE => "tt>"
- }
-
- def update_attributes(current, wanted)
- str = ""
- # first turn off unwanted ones
- off = current & ~wanted
- for quality in [ BOLD, ITALIC, CODE]
- if (off & quality) > 0
- str << "</" + ATTR_MAP[quality]
- end
- end
-
- # now turn on wanted
- for quality in [ BOLD, ITALIC, CODE]
- unless (wanted & quality).zero?
- str << "<" << ATTR_MAP[quality]
- end
- end
- @output.print str
- end
-
- def tag(code)
- @output.print("<#{code}>")
- @output.print(yield)
- @output.print("</#{code}>")
- end
-
- def escape(str)
- str = str.gsub(/&/n, '&amp;')
- str.gsub!(/\"/n, '&quot;')
- str.gsub!(/>/n, '&gt;')
- str.gsub!(/</n, '&lt;')
- str
- end
-
-end
-
-##
-# This formatter reduces extra lines for a simpler output. It improves way
-# output looks for tools like IRC bots.
-
-class RDoc::RI::SimpleFormatter < RDoc::RI::Formatter
-
- ##
- # No extra blank lines
-
- def blankline
- end
-
- ##
- # Display labels only, no lines
-
- def draw_line(label=nil)
- unless label.nil? then
- bold_print(label)
- @output.puts
- end
- end
-
- ##
- # Place heading level indicators inline with heading.
-
- def display_heading(text, level, indent)
- text = strip_attributes(text)
- case level
- when 1
- @output.puts "= " + text.upcase
- when 2
- @output.puts "-- " + text
- else
- @output.print indent, text, "\n"
- end
- end
+# For RubyGems backwards compatibility
+module RDoc::RI::Formatter # :nodoc:
end
-
-RDoc::RI::Formatter::FORMATTERS['plain'] = RDoc::RI::Formatter
-RDoc::RI::Formatter::FORMATTERS['simple'] = RDoc::RI::SimpleFormatter
-RDoc::RI::Formatter::FORMATTERS['bs'] = RDoc::RI::OverstrikeFormatter
-RDoc::RI::Formatter::FORMATTERS['ansi'] = RDoc::RI::AnsiFormatter
-RDoc::RI::Formatter::FORMATTERS['html'] = RDoc::RI::HtmlFormatter
diff --git a/lib/rdoc/ri/paths.rb b/lib/rdoc/ri/paths.rb
index 11bbf4573f..a3c65bf928 100644
--- a/lib/rdoc/ri/paths.rb
+++ b/lib/rdoc/ri/paths.rb
@@ -1,48 +1,75 @@
require 'rdoc/ri'
##
-# Encapsulate all the strangeness to do with finding out where to find RDoc
-# files
-#
-# We basically deal with three directories:
-#
-# 1. The 'system' documentation directory, which holds the documentation
-# distributed with Ruby, and which is managed by the Ruby install process
-# 2. The 'site' directory, which contains site-wide documentation added
-# locally.
-# 3. The 'user' documentation directory, stored under the user's own home
-# directory.
-#
-# There's contention about all this, but for now:
-#
-# system:: $datadir/ri/<ver>/system/...
-# site:: $datadir/ri/<ver>/site/...
-# user:: ~/.rdoc
+# The directories where ri data lives.
module RDoc::RI::Paths
#:stopdoc:
require 'rbconfig'
- DOC_DIR = "doc/rdoc"
+ version = RbConfig::CONFIG['ruby_version']
+
+ base = if RbConfig::CONFIG.key? 'ridir' then
+ File.join RbConfig::CONFIG['ridir'], version
+ else
+ File.join RbConfig::CONFIG['datadir'], 'ri', version
+ end
+
+ SYSDIR = File.join base, "system"
+ SITEDIR = File.join base, "site"
+
+ homedir = begin
+ File.expand_path('~')
+ rescue ArgumentError
+ end
+
+ homedir ||= ENV['HOME'] ||
+ ENV['USERPROFILE'] || ENV['HOMEPATH'] # for 1.8 compatibility
+
+ HOMEDIR = if homedir then
+ File.join homedir, ".rdoc"
+ end
+ #:startdoc:
+
+ @gemdirs = nil
+
+ ##
+ # Iterates over each selected path yielding the directory and type.
+ #
+ # Yielded types:
+ # :system:: Where Ruby's ri data is stored. Yielded when +system+ is
+ # true
+ # :site:: Where ri for installed libraries are stored. Yielded when
+ # +site+ is true. Normally no ri data is stored here.
+ # :home:: ~/.rdoc. Yielded when +home+ is true.
+ # :gem:: ri data for an installed gem. Yielded when +gems+ is true.
+ # :extra:: ri data directory from the command line. Yielded for each
+ # entry in +extra_dirs+
+
+ def self.each system, site, home, gems, *extra_dirs # :yields: directory, type
+ extra_dirs.each do |dir|
+ yield dir, :extra
+ end
+
+ yield SYSDIR, :system if system
+ yield SITEDIR, :site if site
+ yield HOMEDIR, :home if home and HOMEDIR
- VERSION = RbConfig::CONFIG['ruby_version']
+ gemdirs.each do |dir|
+ yield dir, :gem
+ end if gems
- if m = /ruby/.match(RbConfig::CONFIG['RUBY_INSTALL_NAME'])
- m = [m.pre_match, m.post_match]
- else
- m = [""] * 2
+ nil
end
- ri = "#{m[0]}ri#{m[1]}"
- rdoc = "#{m[0]}rdoc#{m[1]}"
- base = File.join(RbConfig::CONFIG['datadir'], ri, VERSION)
- SYSDIR = File.join(base, "system")
- SITEDIR = File.join(base, "site")
- HOMEDIR = (File.expand_path("~/.#{rdoc}") rescue nil)
- begin
- require 'rubygems' unless defined?(Gem) and defined?(Gem::Enable) and
- Gem::Enable
+ ##
+ # The latest installed gems' ri directories
+
+ def self.gemdirs
+ return @gemdirs if @gemdirs
+
+ require 'rubygems' unless defined?(Gem)
# HACK dup'd from Gem.latest_partials and friends
all_paths = []
@@ -64,31 +91,38 @@ module RDoc::RI::Paths
end
end
- GEMDIRS = ri_paths.map { |k,v| v.last }.sort
+ @gemdirs = ri_paths.map { |k,v| v.last }.sort
rescue LoadError
- GEMDIRS = []
+ @gemdirs = []
end
- # Returns the selected documentation directories as an Array, or PATH if no
- # overriding directories were given.
+ ##
+ # Returns existing directories from the selected documentation directories
+ # as an Array.
+ #
+ # See also ::each
+
+ def self.path(system, site, home, gems, *extra_dirs)
+ path = raw_path system, site, home, gems, *extra_dirs
- def self.path(use_system, use_site, use_home, use_gems, *extra_dirs)
- path = raw_path(use_system, use_site, use_home, use_gems, *extra_dirs)
- return path.select { |directory| File.directory? directory }
+ path.select { |directory| File.directory? directory }
end
- # Returns the selected documentation directories including nonexistent
- # directories. Used to print out what paths were searched if no ri was
- # found.
+ ##
+ # Returns selected documentation directories including nonexistent
+ # directories.
+ #
+ # See also ::each
- def self.raw_path(use_system, use_site, use_home, use_gems, *extra_dirs)
+ def self.raw_path(system, site, home, gems, *extra_dirs)
path = []
- path << extra_dirs unless extra_dirs.empty?
- path << SYSDIR if use_system
- path << SITEDIR if use_site
- path << HOMEDIR if use_home
- path << GEMDIRS if use_gems
- return path.flatten.compact
+ each(system, site, home, gems, *extra_dirs) do |dir, type|
+ path << dir
+ end
+
+ path.compact
end
+
end
+
diff --git a/lib/rdoc/ri/reader.rb b/lib/rdoc/ri/reader.rb
deleted file mode 100644
index de3c8d9afa..0000000000
--- a/lib/rdoc/ri/reader.rb
+++ /dev/null
@@ -1,106 +0,0 @@
-require 'rdoc/ri'
-require 'rdoc/ri/descriptions'
-require 'rdoc/ri/writer'
-require 'rdoc/markup/to_flow'
-
-class RDoc::RI::Reader
-
- def initialize(ri_cache)
- @cache = ri_cache
- end
-
- def top_level_namespace
- [ @cache.toplevel ]
- end
-
- def lookup_namespace_in(target, namespaces)
- result = []
- for n in namespaces
- result.concat(n.contained_modules_matching(target))
- end
- result
- end
-
- def find_class_by_name(full_name)
- names = full_name.split(/::/)
- ns = @cache.toplevel
- for name in names
- ns = ns.contained_class_named(name)
- return nil if ns.nil?
- end
- get_class(ns)
- end
-
- def find_methods(name, is_class_method, namespaces)
- result = []
- namespaces.each do |ns|
- result.concat ns.methods_matching(name, is_class_method)
- end
- result
- end
-
- ##
- # Return the MethodDescription for a given MethodEntry by deserializing the
- # YAML
-
- def get_method(method_entry)
- path = method_entry.path_name
- File.open(path) { |f| RDoc::RI::Description.deserialize(f) }
- end
-
- ##
- # Return a class description
-
- def get_class(class_entry)
- result = nil
- for path in class_entry.path_names
- path = RDoc::RI::Writer.class_desc_path(path, class_entry)
- desc = File.open(path) {|f| RDoc::RI::Description.deserialize(f) }
- if result
- result.merge_in(desc)
- else
- result = desc
- end
- end
- result
- end
-
- ##
- # Return the names of all classes and modules
-
- def full_class_names
- res = []
- find_classes_in(res, @cache.toplevel)
- end
-
- ##
- # Return a list of all classes, modules, and methods
-
- def all_names
- res = []
- find_names_in(res, @cache.toplevel)
- end
-
- private
-
- def find_classes_in(res, klass)
- classes = klass.classes_and_modules
- for c in classes
- res << c.full_name
- find_classes_in(res, c)
- end
- res
- end
-
- def find_names_in(res, klass)
- classes = klass.classes_and_modules
- for c in classes
- res << c.full_name
- res.concat c.all_method_names
- find_names_in(res, c)
- end
- res
- end
-
-end
-
diff --git a/lib/rdoc/ri/store.rb b/lib/rdoc/ri/store.rb
new file mode 100644
index 0000000000..fe4ccc244d
--- /dev/null
+++ b/lib/rdoc/ri/store.rb
@@ -0,0 +1,358 @@
+require 'rdoc/code_objects'
+require 'fileutils'
+
+##
+# A set of ri data.
+#
+# The store manages reading and writing ri data for a project (gem, path,
+# etc.) and maintains a cache of methods, classes and ancestors in the
+# store.
+#
+# The store maintains a #cache of its contents for faster lookup. After
+# adding items to the store it must be flushed using #save_cache. The cache
+# contains the following structures:
+#
+# @cache = {
+# :class_methods => {}, # class name => class methods
+# :instance_methods => {}, # class name => instance methods
+# :attributes => {}, # class name => attributes
+# :modules => [], # classes and modules in this store
+# :ancestors => {}, # class name => ancestor names
+# }
+#--
+# TODO need to store the list of files and prune classes
+
+class RDoc::RI::Store
+
+ ##
+ # If true this Store will not write any files
+
+ attr_accessor :dry_run
+
+ ##
+ # Path this store reads or writes
+
+ attr_accessor :path
+
+ ##
+ # Type of ri datastore this was loaded from. See RDoc::RI::Driver,
+ # RDoc::RI::Paths.
+
+ attr_accessor :type
+
+ ##
+ # The contents of the Store
+
+ attr_reader :cache
+
+ ##
+ # The encoding of the contents in the Store
+
+ attr_accessor :encoding
+
+ ##
+ # Creates a new Store of +type+ that will load or save to +path+
+
+ def initialize path, type = nil
+ @dry_run = false
+ @type = type
+ @path = path
+ @encoding = nil
+
+ @cache = {
+ :ancestors => {},
+ :attributes => {},
+ :class_methods => {},
+ :encoding => @encoding,
+ :instance_methods => {},
+ :modules => [],
+ }
+ end
+
+ ##
+ # Ancestors cache accessor. Maps a klass name to an Array of its ancestors
+ # in this store. If Foo in this store inherits from Object, Kernel won't be
+ # listed (it will be included from ruby's ri store).
+
+ def ancestors
+ @cache[:ancestors]
+ end
+
+ ##
+ # Attributes cache accessor. Maps a class to an Array of its attributes.
+
+ def attributes
+ @cache[:attributes]
+ end
+
+ ##
+ # Path to the cache file
+
+ def cache_path
+ File.join @path, 'cache.ri'
+ end
+
+ ##
+ # Path to the ri data for +klass_name+
+
+ def class_file klass_name
+ name = klass_name.split('::').last
+ File.join class_path(klass_name), "cdesc-#{name}.ri"
+ end
+
+ ##
+ # Class methods cache accessor. Maps a class to an Array of its class
+ # methods (not full name).
+
+ def class_methods
+ @cache[:class_methods]
+ end
+
+ ##
+ # Path where data for +klass_name+ will be stored (methods or class data)
+
+ def class_path klass_name
+ File.join @path, *klass_name.split('::')
+ end
+
+ ##
+ # Removes empty items and ensures item in each collection are unique and
+ # sorted
+
+ def clean_cache_collection collection # :nodoc:
+ collection.each do |name, item|
+ if item.empty? then
+ collection.delete name
+ else
+ # HACK mongrel-1.1.5 documents its files twice
+ item.uniq!
+ item.sort!
+ end
+ end
+ end
+
+ ##
+ # Friendly rendition of #path
+
+ def friendly_path
+ case type
+ when :gem then
+ sep = Regexp.union(*['/', File::ALT_SEPARATOR].compact)
+ @path =~ /#{sep}doc#{sep}(.*?)#{sep}ri$/
+ "gem #{$1}"
+ when :home then '~/.ri'
+ when :site then 'ruby site'
+ when :system then 'ruby core'
+ else @path
+ end
+ end
+
+ def inspect # :nodoc:
+ "#<%s:0x%x %s %p>" % [self.class, object_id, @path, modules.sort]
+ end
+
+ ##
+ # Instance methods cache accessor. Maps a class to an Array of its
+ # instance methods (not full name).
+
+ def instance_methods
+ @cache[:instance_methods]
+ end
+
+ ##
+ # Loads cache file for this store
+
+ def load_cache
+ #orig_enc = @encoding
+
+ open cache_path, 'rb' do |io|
+ @cache = Marshal.load io.read
+ end
+
+ load_enc = @cache[:encoding]
+
+ # TODO this feature will be time-consuming to add:
+ # a) Encodings may be incompatible but transcodeable
+ # b) Need to warn in the appropriate spots, wherever they may be
+ # c) Need to handle cross-cache differences in encodings
+ # d) Need to warn when generating into a cache with diffent encodings
+ #
+ #if orig_enc and load_enc != orig_enc then
+ # warn "Cached encoding #{load_enc} is incompatible with #{orig_enc}\n" \
+ # "from #{path}/cache.ri" unless
+ # Encoding.compatible? orig_enc, load_enc
+ #end
+
+ @encoding = load_enc unless @encoding
+
+ @cache
+ rescue Errno::ENOENT
+ end
+
+ ##
+ # Loads ri data for +klass_name+
+
+ def load_class klass_name
+ open class_file(klass_name), 'rb' do |io|
+ Marshal.load io.read
+ end
+ end
+
+ ##
+ # Loads ri data for +method_name+ in +klass_name+
+
+ def load_method klass_name, method_name
+ open method_file(klass_name, method_name), 'rb' do |io|
+ Marshal.load io.read
+ end
+ end
+
+ ##
+ # Path to the ri data for +method_name+ in +klass_name+
+
+ def method_file klass_name, method_name
+ method_name = method_name.split('::').last
+ method_name =~ /#(.*)/
+ method_type = $1 ? 'i' : 'c'
+ method_name = $1 if $1
+
+ method_name = if ''.respond_to? :ord then
+ method_name.gsub(/\W/) { "%%%02x" % $&[0].ord }
+ else
+ method_name.gsub(/\W/) { "%%%02x" % $&[0] }
+ end
+
+ File.join class_path(klass_name), "#{method_name}-#{method_type}.ri"
+ end
+
+ ##
+ # Modules cache accessor. An Array of all the modules (and classes) in the
+ # store.
+
+ def modules
+ @cache[:modules]
+ end
+
+ ##
+ # Writes the cache file for this store
+
+ def save_cache
+ clean_cache_collection @cache[:ancestors]
+ clean_cache_collection @cache[:attributes]
+ clean_cache_collection @cache[:class_methods]
+ clean_cache_collection @cache[:instance_methods]
+
+ @cache[:modules].uniq!
+ @cache[:modules].sort!
+ @cache[:encoding] = @encoding # this gets set twice due to assert_cache
+
+ return if @dry_run
+
+ marshal = Marshal.dump @cache
+
+ open cache_path, 'wb' do |io|
+ io.write marshal
+ end
+ end
+
+ ##
+ # Writes the ri data for +klass+
+
+ def save_class klass
+ full_name = klass.full_name
+
+ FileUtils.mkdir_p class_path(full_name) unless @dry_run
+
+ @cache[:modules] << full_name
+
+ path = class_file full_name
+
+ begin
+ disk_klass = load_class full_name
+
+ klass = disk_klass.merge klass
+ rescue Errno::ENOENT
+ end
+
+ # BasicObject has no ancestors
+ ancestors = klass.ancestors.compact.map do |ancestor|
+ # HACK for classes we don't know about (class X < RuntimeError)
+ String === ancestor ? ancestor : ancestor.full_name
+ end
+
+ @cache[:ancestors][full_name] ||= []
+ @cache[:ancestors][full_name].push(*ancestors)
+
+ attributes = klass.attributes.map do |attribute|
+ "#{attribute.definition} #{attribute.name}"
+ end
+
+ unless attributes.empty? then
+ @cache[:attributes][full_name] ||= []
+ @cache[:attributes][full_name].push(*attributes)
+ end
+
+ to_delete = []
+
+ unless klass.method_list.empty? then
+ @cache[:class_methods][full_name] ||= []
+ @cache[:instance_methods][full_name] ||= []
+
+ class_methods, instance_methods =
+ klass.method_list.partition { |meth| meth.singleton }
+
+ class_methods = class_methods. map { |method| method.name }
+ instance_methods = instance_methods.map { |method| method.name }
+
+ old = @cache[:class_methods][full_name] - class_methods
+ to_delete.concat old.map { |method|
+ method_file full_name, "#{full_name}::#{method}"
+ }
+
+ old = @cache[:instance_methods][full_name] - instance_methods
+ to_delete.concat old.map { |method|
+ method_file full_name, "#{full_name}##{method}"
+ }
+
+ @cache[:class_methods][full_name] = class_methods
+ @cache[:instance_methods][full_name] = instance_methods
+ end
+
+ return if @dry_run
+
+ FileUtils.rm_f to_delete
+
+ marshal = Marshal.dump klass
+
+ open path, 'wb' do |io|
+ io.write marshal
+ end
+ end
+
+ ##
+ # Writes the ri data for +method+ on +klass+
+
+ def save_method klass, method
+ full_name = klass.full_name
+
+ FileUtils.mkdir_p class_path(full_name) unless @dry_run
+
+ cache = if method.singleton then
+ @cache[:class_methods]
+ else
+ @cache[:instance_methods]
+ end
+ cache[full_name] ||= []
+ cache[full_name] << method.name
+
+ return if @dry_run
+
+ marshal = Marshal.dump method
+
+ open method_file(full_name, method.full_name), 'wb' do |io|
+ io.write marshal
+ end
+ end
+
+end
+
diff --git a/lib/rdoc/ri/util.rb b/lib/rdoc/ri/util.rb
deleted file mode 100644
index 51cf881bdd..0000000000
--- a/lib/rdoc/ri/util.rb
+++ /dev/null
@@ -1,79 +0,0 @@
-require 'rdoc/ri'
-
-##
-# Break argument into its constituent class or module names, an
-# optional method type, and a method name
-
-class RDoc::RI::NameDescriptor
-
- attr_reader :class_names
- attr_reader :method_name
-
- ##
- # true and false have the obvious meaning. nil means we don't care
-
- attr_reader :is_class_method
-
- ##
- # +arg+ may be
- #
- # 1. A class or module name (optionally qualified with other class or module
- # names (Kernel, File::Stat etc)
- # 2. A method name
- # 3. A method name qualified by a optionally fully qualified class or module
- # name
- #
- # We're fairly casual about delimiters: folks can say Kernel::puts,
- # Kernel.puts, or Kernel\#puts for example. There's one exception: if you
- # say IO::read, we look for a class method, but if you say IO.read, we look
- # for an instance method
-
- def initialize(arg)
- @class_names = []
- separator = nil
-
- tokens = arg.split(/(\.|::|#)/)
-
- # Skip leading '::', '#' or '.', but remember it might
- # be a method name qualifier
- separator = tokens.shift if tokens[0] =~ /^(\.|::|#)/
-
- # Skip leading '::', but remember we potentially have an inst
-
- # leading stuff must be class names
-
- while tokens[0] =~ /^[A-Z]/
- @class_names << tokens.shift
- unless tokens.empty?
- separator = tokens.shift
- break unless separator == "::"
- end
- end
-
- # Now must have a single token, the method name, or an empty array
- unless tokens.empty?
- @method_name = tokens.shift
- # We may now have a trailing !, ?, or = to roll into
- # the method name
- if !tokens.empty? && tokens[0] =~ /^[!?=]$/
- @method_name << tokens.shift
- end
-
- if @method_name =~ /::|\.|#/ or !tokens.empty?
- raise RDoc::RI::Error.new("Bad argument: #{arg}")
- end
- if separator && separator != '.'
- @is_class_method = separator == "::"
- end
- end
- end
-
- # Return the full class name (with '::' between the components) or "" if
- # there's no class name
-
- def full_class_name
- @class_names.join("::")
- end
-
-end
-
diff --git a/lib/rdoc/ri/writer.rb b/lib/rdoc/ri/writer.rb
deleted file mode 100644
index 92aaa1c2da..0000000000
--- a/lib/rdoc/ri/writer.rb
+++ /dev/null
@@ -1,68 +0,0 @@
-require 'fileutils'
-require 'rdoc/ri'
-
-class RDoc::RI::Writer
-
- def self.class_desc_path(dir, class_desc)
- File.join(dir, "cdesc-" + class_desc.name + ".yaml")
- end
-
- ##
- # Convert a name from internal form (containing punctuation) to an external
- # form (where punctuation is replaced by %xx)
-
- def self.internal_to_external(name)
- if ''.respond_to? :ord then
- name.gsub(/\W/) { "%%%02x" % $&[0].ord }
- else
- name.gsub(/\W/) { "%%%02x" % $&[0] }
- end
- end
-
- ##
- # And the reverse operation
-
- def self.external_to_internal(name)
- name.gsub(/%([0-9a-f]{2,2})/) { $1.to_i(16).chr }
- end
-
- def initialize(base_dir)
- @base_dir = base_dir
- end
-
- def remove_class(class_desc)
- FileUtils.rm_rf(path_to_dir(class_desc.full_name))
- end
-
- def add_class(class_desc)
- dir = path_to_dir(class_desc.full_name)
- FileUtils.mkdir_p(dir)
- class_file_name = self.class.class_desc_path(dir, class_desc)
- File.open(class_file_name, "w") do |f|
- f.write(class_desc.serialize)
- end
- end
-
- def add_method(class_desc, method_desc)
- dir = path_to_dir(class_desc.full_name)
- file_name = self.class.internal_to_external(method_desc.name)
- meth_file_name = File.join(dir, file_name)
- if method_desc.is_singleton
- meth_file_name += "-c.yaml"
- else
- meth_file_name += "-i.yaml"
- end
-
- File.open(meth_file_name, "w") do |f|
- f.write(method_desc.serialize)
- end
- end
-
- private
-
- def path_to_dir(class_name)
- File.join(@base_dir, *class_name.split('::'))
- end
-
-end
-
diff --git a/lib/rdoc/ruby_lex.rb b/lib/rdoc/ruby_lex.rb
new file mode 100644
index 0000000000..4392cea9cf
--- /dev/null
+++ b/lib/rdoc/ruby_lex.rb
@@ -0,0 +1,1297 @@
+# coding: US-ASCII
+
+#--
+# irb/ruby-lex.rb - ruby lexcal analyzer
+# $Release Version: 0.9.5$
+# $Revision: 17979 $
+# $Date: 2008-07-09 10:17:05 -0700 (Wed, 09 Jul 2008) $
+# by Keiju ISHITSUKA(keiju@ruby-lang.org)
+#
+#++
+
+require "e2mmap"
+require "irb/slex"
+require "rdoc/ruby_token"
+require "stringio"
+
+##
+# Ruby lexer adapted from irb.
+#
+# The internals are not documented because they are scary.
+
+class RDoc::RubyLex
+
+ # :stopdoc:
+
+ extend Exception2MessageMapper
+
+ def_exception(:AlreadyDefinedToken, "Already defined token(%s)")
+ def_exception(:TkReading2TokenNoKey, "key nothing(key='%s')")
+ def_exception(:TkSymbol2TokenNoKey, "key nothing(key='%s')")
+ def_exception(:TkReading2TokenDuplicateError,
+ "key duplicate(token_n='%s', key='%s')")
+ def_exception(:SyntaxError, "%s")
+
+ def_exception(:TerminateLineInput, "Terminate Line Input")
+
+ include RDoc::RubyToken
+ include IRB
+
+ attr_reader :continue
+ attr_reader :lex_state
+ attr_reader :reader
+
+ class << self
+ attr_accessor :debug_level
+ end
+
+ def self.debug?
+ @debug_level > 0
+ end
+
+ self.debug_level = 0
+
+ def initialize(content, options)
+ lex_init
+
+ if /\t/ =~ content then
+ tab_width = options.tab_width
+ content = content.split(/\n/).map do |line|
+ 1 while line.gsub!(/\t+/) {
+ ' ' * (tab_width*$&.length - $`.length % tab_width)
+ } && $~
+ line
+ end.join("\n")
+ end
+
+ content << "\n" unless content[-1, 1] == "\n"
+
+ set_input StringIO.new content
+
+ @base_char_no = 0
+ @char_no = 0
+ @exp_line_no = @line_no = 1
+ @here_readed = []
+ @readed = []
+ @rests = []
+ @seek = 0
+
+ @here_header = false
+ @indent = 0
+ @indent_stack = []
+ @lex_state = EXPR_BEG
+ @space_seen = false
+
+ @continue = false
+ @line = ""
+
+ @skip_space = false
+ @readed_auto_clean_up = false
+ @exception_on_syntax_error = true
+
+ @prompt = nil
+ @prev_seek = nil
+ end
+
+ def inspect # :nodoc:
+ "#<%s:0x%x pos %d lex_state %p space_seen %p>" % [
+ self.class, object_id,
+ @io.pos, @lex_state, @space_seen,
+ ]
+ end
+
+ attr_accessor :skip_space
+ attr_accessor :readed_auto_clean_up
+ attr_accessor :exception_on_syntax_error
+
+ attr_reader :seek
+ attr_reader :char_no
+ attr_reader :line_no
+ attr_reader :indent
+
+ # io functions
+ def set_input(io, p = nil, &block)
+ @io = io
+ if p.respond_to?(:call)
+ @input = p
+ elsif block_given?
+ @input = block
+ else
+ @input = Proc.new{@io.gets}
+ end
+ end
+
+ def get_readed
+ if idx = @readed.reverse.index("\n")
+ @base_char_no = idx
+ else
+ @base_char_no += @readed.size
+ end
+
+ readed = @readed.join("")
+ @readed = []
+ readed
+ end
+
+ def getc
+ while @rests.empty?
+ # return nil unless buf_input
+ @rests.push nil unless buf_input
+ end
+ c = @rests.shift
+ if @here_header
+ @here_readed.push c
+ else
+ @readed.push c
+ end
+ @seek += 1
+ if c == "\n"
+ @line_no += 1
+ @char_no = 0
+ else
+ @char_no += 1
+ end
+
+ c
+ end
+
+ def gets
+ l = ""
+ while c = getc
+ l.concat(c)
+ break if c == "\n"
+ end
+ return nil if l == "" and c.nil?
+ l
+ end
+
+ def eof?
+ @io.eof?
+ end
+
+ def getc_of_rests
+ if @rests.empty?
+ nil
+ else
+ getc
+ end
+ end
+
+ def ungetc(c = nil)
+ if @here_readed.empty?
+ c2 = @readed.pop
+ else
+ c2 = @here_readed.pop
+ end
+ c = c2 unless c
+ @rests.unshift c #c =
+ @seek -= 1
+ if c == "\n"
+ @line_no -= 1
+ if idx = @readed.reverse.index("\n")
+ @char_no = @readed.size - idx
+ else
+ @char_no = @base_char_no + @readed.size
+ end
+ else
+ @char_no -= 1
+ end
+ end
+
+ def peek_equal?(str)
+ chrs = str.split(//)
+ until @rests.size >= chrs.size
+ return false unless buf_input
+ end
+ @rests[0, chrs.size] == chrs
+ end
+
+ def peek_match?(regexp)
+ while @rests.empty?
+ return false unless buf_input
+ end
+ regexp =~ @rests.join("")
+ end
+
+ def peek(i = 0)
+ while @rests.size <= i
+ return nil unless buf_input
+ end
+ @rests[i]
+ end
+
+ def buf_input
+ prompt
+ line = @input.call
+ return nil unless line
+ @rests.concat line.split(//)
+ true
+ end
+ private :buf_input
+
+ def set_prompt(p = nil, &block)
+ p = block if block_given?
+ if p.respond_to?(:call)
+ @prompt = p
+ else
+ @prompt = Proc.new{print p}
+ end
+ end
+
+ def prompt
+ if @prompt
+ @prompt.call(@ltype, @indent, @continue, @line_no)
+ end
+ end
+
+ def initialize_input
+ @ltype = nil
+ @quoted = nil
+ @indent = 0
+ @indent_stack = []
+ @lex_state = EXPR_BEG
+ @space_seen = false
+ @here_header = false
+
+ @continue = false
+ prompt
+
+ @line = ""
+ @exp_line_no = @line_no
+ end
+
+ def each_top_level_statement
+ initialize_input
+ catch(:TERM_INPUT) do
+ loop do
+ begin
+ @continue = false
+ prompt
+ unless l = lex
+ throw :TERM_INPUT if @line == ''
+ else
+ #p l
+ @line.concat l
+ if @ltype or @continue or @indent > 0
+ next
+ end
+ end
+ if @line != "\n"
+ yield @line, @exp_line_no
+ end
+ break unless l
+ @line = ''
+ @exp_line_no = @line_no
+
+ @indent = 0
+ @indent_stack = []
+ prompt
+ rescue TerminateLineInput
+ initialize_input
+ prompt
+ get_readed
+ end
+ end
+ end
+ end
+
+ def lex
+ until (((tk = token).kind_of?(TkNL) || tk.kind_of?(TkEND_OF_SCRIPT)) &&
+ !@continue or
+ tk.nil?)
+ #p tk
+ #p @lex_state
+ #p self
+ end
+ line = get_readed
+ # print self.inspect
+ if line == "" and tk.kind_of?(TkEND_OF_SCRIPT) || tk.nil?
+ nil
+ else
+ line
+ end
+ end
+
+ def token
+ # require "tracer"
+ # Tracer.on
+ @prev_seek = @seek
+ @prev_line_no = @line_no
+ @prev_char_no = @char_no
+ begin
+ begin
+ tk = @OP.match(self)
+ @space_seen = tk.kind_of?(TkSPACE)
+ rescue SyntaxError => e
+ raise RDoc::Error, "syntax error: #{e.message}" if
+ @exception_on_syntax_error
+
+ tk = TkError.new(@seek, @line_no, @char_no)
+ end
+ end while @skip_space and tk.kind_of?(TkSPACE)
+
+ if @readed_auto_clean_up
+ get_readed
+ end
+ # Tracer.off
+ tk
+ end
+
+ ENINDENT_CLAUSE = [
+ "case", "class", "def", "do", "for", "if",
+ "module", "unless", "until", "while", "begin" #, "when"
+ ]
+
+ DEINDENT_CLAUSE = ["end" #, "when"
+ ]
+
+ PERCENT_LTYPE = {
+ "q" => "\'",
+ "Q" => "\"",
+ "x" => "\`",
+ "r" => "/",
+ "w" => "]",
+ "W" => "]",
+ "s" => ":"
+ }
+
+ PERCENT_PAREN = {
+ "{" => "}",
+ "[" => "]",
+ "<" => ">",
+ "(" => ")"
+ }
+
+ PERCENT_PAREN_REV = PERCENT_PAREN.invert
+
+ Ltype2Token = {
+ "\'" => TkSTRING,
+ "\"" => TkSTRING,
+ "\`" => TkXSTRING,
+ "/" => TkREGEXP,
+ "]" => TkDSTRING,
+ ":" => TkSYMBOL
+ }
+ DLtype2Token = {
+ "\"" => TkDSTRING,
+ "\`" => TkDXSTRING,
+ "/" => TkDREGEXP,
+ }
+
+ def lex_init()
+ @OP = IRB::SLex.new
+ @OP.def_rules("\0", "\004", "\032") do |op, io|
+ Token(TkEND_OF_SCRIPT)
+ end
+
+ @OP.def_rules(" ", "\t", "\f", "\r", "\13") do |op, io|
+ @space_seen = true
+ str = op
+ while (ch = getc) =~ /[ \t\f\r\13]/ do
+ str << ch
+ end
+ ungetc
+ Token TkSPACE, str
+ end
+
+ @OP.def_rule("#") do |op, io|
+ identify_comment
+ end
+
+ @OP.def_rule("=begin",
+ proc{|op, io| @prev_char_no == 0 && peek(0) =~ /\s/}) do
+ |op, io|
+ @ltype = "="
+ res = ''
+ nil until (ch = getc) == "\n"
+
+ until ( peek_equal?("=end") && peek(4) =~ /\s/ ) do
+ (ch = getc)
+ res << ch
+ end
+
+ gets # consume =end
+
+ @ltype = nil
+ Token(TkCOMMENT, res)
+ end
+
+ @OP.def_rule("\n") do |op, io|
+ print "\\n\n" if RDoc::RubyLex.debug?
+ case @lex_state
+ when EXPR_BEG, EXPR_FNAME, EXPR_DOT
+ @continue = true
+ else
+ @continue = false
+ @lex_state = EXPR_BEG
+ until (@indent_stack.empty? ||
+ [TkLPAREN, TkLBRACK, TkLBRACE,
+ TkfLPAREN, TkfLBRACK, TkfLBRACE].include?(@indent_stack.last))
+ @indent_stack.pop
+ end
+ end
+ @here_header = false
+ @here_readed = []
+ Token(TkNL)
+ end
+
+ @OP.def_rules("*", "**",
+ "=", "==", "===",
+ "=~", "<=>",
+ "<", "<=",
+ ">", ">=", ">>") do
+ |op, io|
+ case @lex_state
+ when EXPR_FNAME, EXPR_DOT
+ @lex_state = EXPR_ARG
+ else
+ @lex_state = EXPR_BEG
+ end
+ Token(op)
+ end
+
+ @OP.def_rules("!", "!=", "!~") do
+ |op, io|
+ @lex_state = EXPR_BEG
+ Token(op)
+ end
+
+ @OP.def_rules("<<") do
+ |op, io|
+ tk = nil
+ if @lex_state != EXPR_END && @lex_state != EXPR_CLASS &&
+ (@lex_state != EXPR_ARG || @space_seen)
+ c = peek(0)
+ if /\S/ =~ c && (/["'`]/ =~ c || /\w/ =~ c || c == "-")
+ tk = identify_here_document
+ end
+ end
+ unless tk
+ tk = Token(op)
+ case @lex_state
+ when EXPR_FNAME, EXPR_DOT
+ @lex_state = EXPR_ARG
+ else
+ @lex_state = EXPR_BEG
+ end
+ end
+ tk
+ end
+
+ @OP.def_rules("'", '"') do
+ |op, io|
+ identify_string(op)
+ end
+
+ @OP.def_rules("`") do
+ |op, io|
+ if @lex_state == EXPR_FNAME
+ @lex_state = EXPR_END
+ Token(op)
+ else
+ identify_string(op)
+ end
+ end
+
+ @OP.def_rules('?') do
+ |op, io|
+ if @lex_state == EXPR_END
+ @lex_state = EXPR_BEG
+ Token(TkQUESTION)
+ else
+ ch = getc
+ if @lex_state == EXPR_ARG && ch =~ /\s/
+ ungetc
+ @lex_state = EXPR_BEG;
+ Token(TkQUESTION)
+ else
+ str = ch
+ if ch == '\\'
+ str << read_escape
+ end
+ @lex_state = EXPR_END
+ str << (ch.respond_to?(:ord) ? ch.ord : ch[0])
+ Token(TkINTEGER, str)
+ end
+ end
+ end
+
+ @OP.def_rules("&", "&&", "|", "||") do
+ |op, io|
+ @lex_state = EXPR_BEG
+ Token(op)
+ end
+
+ @OP.def_rules("+=", "-=", "*=", "**=",
+ "&=", "|=", "^=", "<<=", ">>=", "||=", "&&=") do
+ |op, io|
+ @lex_state = EXPR_BEG
+ op =~ /^(.*)=$/
+ Token(TkOPASGN, $1)
+ end
+
+ @OP.def_rule("+@", proc{|op, io| @lex_state == EXPR_FNAME}) do
+ |op, io|
+ @lex_state = EXPR_ARG
+ Token(op)
+ end
+
+ @OP.def_rule("-@", proc{|op, io| @lex_state == EXPR_FNAME}) do
+ |op, io|
+ @lex_state = EXPR_ARG
+ Token(op)
+ end
+
+ @OP.def_rules("+", "-") do
+ |op, io|
+ catch(:RET) do
+ if @lex_state == EXPR_ARG
+ if @space_seen and peek(0) =~ /[0-9]/
+ throw :RET, identify_number(op)
+ else
+ @lex_state = EXPR_BEG
+ end
+ elsif @lex_state != EXPR_END and peek(0) =~ /[0-9]/
+ throw :RET, identify_number(op)
+ else
+ @lex_state = EXPR_BEG
+ end
+ Token(op)
+ end
+ end
+
+ @OP.def_rule(".") do
+ |op, io|
+ @lex_state = EXPR_BEG
+ if peek(0) =~ /[0-9]/
+ ungetc
+ identify_number
+ else
+ # for "obj.if" etc.
+ @lex_state = EXPR_DOT
+ Token(TkDOT)
+ end
+ end
+
+ @OP.def_rules("..", "...") do
+ |op, io|
+ @lex_state = EXPR_BEG
+ Token(op)
+ end
+
+ lex_int2
+ end
+
+ def lex_int2
+ @OP.def_rules("]", "}", ")") do
+ |op, io|
+ @lex_state = EXPR_END
+ @indent -= 1
+ @indent_stack.pop
+ Token(op)
+ end
+
+ @OP.def_rule(":") do
+ |op, io|
+ if @lex_state == EXPR_END || peek(0) =~ /\s/
+ @lex_state = EXPR_BEG
+ Token(TkCOLON)
+ else
+ @lex_state = EXPR_FNAME;
+ Token(TkSYMBEG)
+ end
+ end
+
+ @OP.def_rule("::") do
+ |op, io|
+ # p @lex_state.id2name, @space_seen
+ if @lex_state == EXPR_BEG or @lex_state == EXPR_ARG && @space_seen
+ @lex_state = EXPR_BEG
+ Token(TkCOLON3)
+ else
+ @lex_state = EXPR_DOT
+ Token(TkCOLON2)
+ end
+ end
+
+ @OP.def_rule("/") do
+ |op, io|
+ if @lex_state == EXPR_BEG || @lex_state == EXPR_MID
+ identify_string(op)
+ elsif peek(0) == '='
+ getc
+ @lex_state = EXPR_BEG
+ Token(TkOPASGN, "/") #/)
+ elsif @lex_state == EXPR_ARG and @space_seen and peek(0) !~ /\s/
+ identify_string(op)
+ else
+ @lex_state = EXPR_BEG
+ Token("/") #/)
+ end
+ end
+
+ @OP.def_rules("^") do
+ |op, io|
+ @lex_state = EXPR_BEG
+ Token("^")
+ end
+
+ # @OP.def_rules("^=") do
+ # @lex_state = EXPR_BEG
+ # Token(OP_ASGN, :^)
+ # end
+
+ @OP.def_rules(",") do
+ |op, io|
+ @lex_state = EXPR_BEG
+ Token(op)
+ end
+
+ @OP.def_rules(";") do
+ |op, io|
+ @lex_state = EXPR_BEG
+ until (@indent_stack.empty? ||
+ [TkLPAREN, TkLBRACK, TkLBRACE,
+ TkfLPAREN, TkfLBRACK, TkfLBRACE].include?(@indent_stack.last))
+ @indent_stack.pop
+ end
+ Token(op)
+ end
+
+ @OP.def_rule("~") do
+ |op, io|
+ @lex_state = EXPR_BEG
+ Token("~")
+ end
+
+ @OP.def_rule("~@", proc{|op, io| @lex_state == EXPR_FNAME}) do
+ |op, io|
+ @lex_state = EXPR_BEG
+ Token("~")
+ end
+
+ @OP.def_rule("(") do
+ |op, io|
+ @indent += 1
+ if @lex_state == EXPR_BEG || @lex_state == EXPR_MID
+ @lex_state = EXPR_BEG
+ tk_c = TkfLPAREN
+ else
+ @lex_state = EXPR_BEG
+ tk_c = TkLPAREN
+ end
+ @indent_stack.push tk_c
+ Token tk_c
+ end
+
+ @OP.def_rule("[]", proc{|op, io| @lex_state == EXPR_FNAME}) do
+ |op, io|
+ @lex_state = EXPR_ARG
+ Token("[]")
+ end
+
+ @OP.def_rule("[]=", proc{|op, io| @lex_state == EXPR_FNAME}) do
+ |op, io|
+ @lex_state = EXPR_ARG
+ Token("[]=")
+ end
+
+ @OP.def_rule("[") do
+ |op, io|
+ @indent += 1
+ if @lex_state == EXPR_FNAME
+ tk_c = TkfLBRACK
+ else
+ if @lex_state == EXPR_BEG || @lex_state == EXPR_MID
+ tk_c = TkLBRACK
+ elsif @lex_state == EXPR_ARG && @space_seen
+ tk_c = TkLBRACK
+ else
+ tk_c = TkfLBRACK
+ end
+ @lex_state = EXPR_BEG
+ end
+ @indent_stack.push tk_c
+ Token(tk_c)
+ end
+
+ @OP.def_rule("{") do
+ |op, io|
+ @indent += 1
+ if @lex_state != EXPR_END && @lex_state != EXPR_ARG
+ tk_c = TkLBRACE
+ else
+ tk_c = TkfLBRACE
+ end
+ @lex_state = EXPR_BEG
+ @indent_stack.push tk_c
+ Token(tk_c)
+ end
+
+ @OP.def_rule('\\') do
+ |op, io|
+ if getc == "\n"
+ @space_seen = true
+ @continue = true
+ Token(TkSPACE)
+ else
+ ungetc
+ Token("\\")
+ end
+ end
+
+ @OP.def_rule('%') do
+ |op, io|
+ if @lex_state == EXPR_BEG || @lex_state == EXPR_MID
+ identify_quotation
+ elsif peek(0) == '='
+ getc
+ Token(TkOPASGN, :%)
+ elsif @lex_state == EXPR_ARG and @space_seen and peek(0) !~ /\s/
+ identify_quotation
+ else
+ @lex_state = EXPR_BEG
+ Token("%") #))
+ end
+ end
+
+ @OP.def_rule('$') do
+ |op, io|
+ identify_gvar
+ end
+
+ @OP.def_rule('@') do
+ |op, io|
+ if peek(0) =~ /[\w@]/
+ ungetc
+ identify_identifier
+ else
+ Token("@")
+ end
+ end
+
+ # @OP.def_rule("def", proc{|op, io| /\s/ =~ io.peek(0)}) do
+ # |op, io|
+ # @indent += 1
+ # @lex_state = EXPR_FNAME
+ # # @lex_state = EXPR_END
+ # # until @rests[0] == "\n" or @rests[0] == ";"
+ # # rests.shift
+ # # end
+ # end
+
+ @OP.def_rule("_") do
+ if peek_match?(/_END__/) and @lex_state == EXPR_BEG then
+ Token(TkEND_OF_SCRIPT)
+ else
+ ungetc
+ identify_identifier
+ end
+ end
+
+ @OP.def_rule("") do
+ |op, io|
+ printf "MATCH: start %s: %s\n", op, io.inspect if RDoc::RubyLex.debug?
+ if peek(0) =~ /[0-9]/
+ t = identify_number
+ else
+ t = identify_identifier
+ end
+ printf "MATCH: end %s: %s\n", op, io.inspect if RDoc::RubyLex.debug?
+ t
+ end
+
+ p @OP if RDoc::RubyLex.debug?
+ end
+
+ def identify_gvar
+ @lex_state = EXPR_END
+
+ case ch = getc
+ when /[~_*$?!@\/\\;,=:<>".]/ #"
+ Token(TkGVAR, "$" + ch)
+ when "-"
+ Token(TkGVAR, "$-" + getc)
+ when "&", "`", "'", "+"
+ Token(TkBACK_REF, "$"+ch)
+ when /[1-9]/
+ ref = ch
+ while (ch = getc) =~ /[0-9]/ do ref << ch end
+ ungetc
+ Token(TkNTH_REF, "$#{ref}")
+ when /\w/
+ ungetc
+ ungetc
+ identify_identifier
+ else
+ ungetc
+ Token("$")
+ end
+ end
+
+ IDENT_RE = if defined? Encoding then
+ /[\w\u0080-\uFFFF]/u
+ else
+ /[\w\x80-\xFF]/
+ end
+
+ def identify_identifier
+ token = ""
+ if peek(0) =~ /[$@]/
+ token.concat(c = getc)
+ if c == "@" and peek(0) == "@"
+ token.concat getc
+ end
+ end
+
+ while (ch = getc) =~ IDENT_RE do
+ print " :#{ch}: " if RDoc::RubyLex.debug?
+ token.concat ch
+ end
+
+ ungetc
+
+ if (ch == "!" || ch == "?") && token[0,1] =~ /\w/ && peek(0) != "="
+ token.concat getc
+ end
+
+ # almost fix token
+
+ case token
+ when /^\$/
+ return Token(TkGVAR, token)
+ when /^\@\@/
+ @lex_state = EXPR_END
+ # p Token(TkCVAR, token)
+ return Token(TkCVAR, token)
+ when /^\@/
+ @lex_state = EXPR_END
+ return Token(TkIVAR, token)
+ end
+
+ if @lex_state != EXPR_DOT
+ print token, "\n" if RDoc::RubyLex.debug?
+
+ token_c, *trans = TkReading2Token[token]
+ if token_c
+ # reserved word?
+
+ if (@lex_state != EXPR_BEG &&
+ @lex_state != EXPR_FNAME &&
+ trans[1])
+ # modifiers
+ token_c = TkSymbol2Token[trans[1]]
+ @lex_state = trans[0]
+ else
+ if @lex_state != EXPR_FNAME
+ if ENINDENT_CLAUSE.include?(token)
+ # check for ``class = val'' etc.
+ valid = true
+ case token
+ when "class"
+ valid = false unless peek_match?(/^\s*(<<|\w|::)/)
+ when "def"
+ valid = false if peek_match?(/^\s*(([+-\/*&\|^]|<<|>>|\|\||\&\&)=|\&\&|\|\|)/)
+ when "do"
+ valid = false if peek_match?(/^\s*([+-\/*]?=|\*|<|>|\&)/)
+ when *ENINDENT_CLAUSE
+ valid = false if peek_match?(/^\s*([+-\/*]?=|\*|<|>|\&|\|)/)
+ else
+ # no nothing
+ end
+ if valid
+ if token == "do"
+ if ![TkFOR, TkWHILE, TkUNTIL].include?(@indent_stack.last)
+ @indent += 1
+ @indent_stack.push token_c
+ end
+ else
+ @indent += 1
+ @indent_stack.push token_c
+ end
+ end
+
+ elsif DEINDENT_CLAUSE.include?(token)
+ @indent -= 1
+ @indent_stack.pop
+ end
+ @lex_state = trans[0]
+ else
+ @lex_state = EXPR_END
+ end
+ end
+ return Token(token_c, token)
+ end
+ end
+
+ if @lex_state == EXPR_FNAME
+ @lex_state = EXPR_END
+ if peek(0) == '='
+ token.concat getc
+ end
+ elsif @lex_state == EXPR_BEG || @lex_state == EXPR_DOT
+ @lex_state = EXPR_ARG
+ else
+ @lex_state = EXPR_END
+ end
+
+ if token[0, 1] =~ /[A-Z]/
+ return Token(TkCONSTANT, token)
+ elsif token[token.size - 1, 1] =~ /[!?]/
+ return Token(TkFID, token)
+ else
+ return Token(TkIDENTIFIER, token)
+ end
+ end
+
+ def identify_here_document
+ ch = getc
+ # if lt = PERCENT_LTYPE[ch]
+ if ch == "-"
+ ch = getc
+ indent = true
+ end
+ if /['"`]/ =~ ch
+ lt = ch
+ quoted = ""
+ while (c = getc) && c != lt
+ quoted.concat c
+ end
+ else
+ lt = '"'
+ quoted = ch.dup
+ while (c = getc) && c =~ /\w/
+ quoted.concat c
+ end
+ ungetc
+ end
+
+ ltback, @ltype = @ltype, lt
+ reserve = []
+ while ch = getc
+ reserve.push ch
+ if ch == "\\"
+ reserve.push ch = getc
+ elsif ch == "\n"
+ break
+ end
+ end
+
+ @here_header = false
+ doc = ''
+ while l = gets
+ l = l.sub(/(:?\r)?\n\z/, '')
+ if (indent ? l.strip : l) == quoted
+ break
+ end
+ doc << l
+ end
+
+ @here_header = true
+ @here_readed.concat reserve
+ while ch = reserve.pop
+ ungetc ch
+ end
+
+ @ltype = ltback
+ @lex_state = EXPR_END
+ Token(Ltype2Token[lt], doc)
+ end
+
+ def identify_quotation
+ ch = getc
+ if lt = PERCENT_LTYPE[ch]
+ ch = getc
+ elsif ch =~ /\W/
+ lt = "\""
+ else
+ raise RDoc::Error, "unknown type of %string #{ch.inspect}"
+ end
+ # if ch !~ /\W/
+ # ungetc
+ # next
+ # end
+ #@ltype = lt
+ @quoted = ch unless @quoted = PERCENT_PAREN[ch]
+ identify_string(lt, @quoted)
+ end
+
+ def identify_number(op = "")
+ @lex_state = EXPR_END
+
+ num = op
+
+ if peek(0) == "0" && peek(1) !~ /[.eE]/
+ num << getc
+
+ case peek(0)
+ when /[xX]/
+ ch = getc
+ match = /[0-9a-fA-F_]/
+ when /[bB]/
+ ch = getc
+ match = /[01_]/
+ when /[oO]/
+ ch = getc
+ match = /[0-7_]/
+ when /[dD]/
+ ch = getc
+ match = /[0-9_]/
+ when /[0-7]/
+ match = /[0-7_]/
+ when /[89]/
+ raise RDoc::Error, "Illegal octal digit"
+ else
+ return Token(TkINTEGER, num)
+ end
+
+ num << ch if ch
+
+ len0 = true
+ non_digit = false
+ while ch = getc
+ num << ch
+ if match =~ ch
+ if ch == "_"
+ if non_digit
+ raise RDoc::Error, "trailing `#{ch}' in number"
+ else
+ non_digit = ch
+ end
+ else
+ non_digit = false
+ len0 = false
+ end
+ else
+ ungetc
+ num[-1, 1] = ''
+ if len0
+ raise RDoc::Error, "numeric literal without digits"
+ end
+ if non_digit
+ raise RDoc::Error, "trailing `#{non_digit}' in number"
+ end
+ break
+ end
+ end
+ return Token(TkINTEGER, num)
+ end
+
+ type = TkINTEGER
+ allow_point = true
+ allow_e = true
+ non_digit = false
+ while ch = getc
+ num << ch
+ case ch
+ when /[0-9]/
+ non_digit = false
+ when "_"
+ non_digit = ch
+ when allow_point && "."
+ if non_digit
+ raise RDoc::Error, "trailing `#{non_digit}' in number"
+ end
+ type = TkFLOAT
+ if peek(0) !~ /[0-9]/
+ type = TkINTEGER
+ ungetc
+ num[-1, 1] = ''
+ break
+ end
+ allow_point = false
+ when allow_e && "e", allow_e && "E"
+ if non_digit
+ raise RDoc::Error, "trailing `#{non_digit}' in number"
+ end
+ type = TkFLOAT
+ if peek(0) =~ /[+-]/
+ num << getc
+ end
+ allow_e = false
+ allow_point = false
+ non_digit = ch
+ else
+ if non_digit
+ raise RDoc::Error, "trailing `#{non_digit}' in number"
+ end
+ ungetc
+ num[-1, 1] = ''
+ break
+ end
+ end
+
+ Token(type, num)
+ end
+
+ def identify_string(ltype, quoted = ltype)
+ @ltype = ltype
+ @quoted = quoted
+
+ str = if ltype == quoted then
+ ltype.dup
+ else
+ "%#{PERCENT_PAREN_REV[quoted]}"
+ end
+
+ subtype = nil
+ begin
+ nest = 0
+
+ while ch = getc
+ str << ch
+
+ if @quoted == ch and nest == 0
+ break
+ elsif @ltype != "'" && @ltype != "]" && @ltype != ":" and ch == "#"
+ ch = getc
+ subtype = true
+ if ch == "{" then
+ str << ch << skip_inner_expression
+ next
+ else
+ ungetc
+ end
+ elsif ch == '\\' and @ltype == "'" #'
+ case ch = getc
+ when "\\", "\n", "'"
+ else
+ ungetc
+ end
+ elsif ch == '\\' #'
+ str << read_escape
+ end
+
+ if PERCENT_PAREN.values.include?(@quoted)
+ if PERCENT_PAREN[ch] == @quoted
+ nest += 1
+ elsif ch == @quoted
+ nest -= 1
+ end
+ end
+ end
+
+ if @ltype == "/"
+ if peek(0) =~ /i|m|x|o|e|s|u|n/
+ getc
+ end
+ end
+
+ if subtype
+ Token(DLtype2Token[ltype], str)
+ else
+ Token(Ltype2Token[ltype], str)
+ end
+ ensure
+ @ltype = nil
+ @quoted = nil
+ @lex_state = EXPR_END
+ end
+ end
+
+ def skip_inner_expression
+ res = ""
+ nest = 0
+ while ch = getc
+ res << ch
+ if ch == '}'
+ break if nest.zero?
+ nest -= 1
+ elsif ch == '{'
+ nest += 1
+ end
+ end
+ res
+ end
+
+ def identify_comment
+ @ltype = "#"
+
+ comment = '#'
+
+ while ch = getc
+ # if ch == "\\" #"
+ # read_escape
+ # end
+ if ch == "\n"
+ @ltype = nil
+ ungetc
+ break
+ end
+
+ comment << ch
+ end
+
+ return Token(TkCOMMENT, comment)
+ end
+
+ def read_escape
+ escape = ''
+ ch = getc
+ escape << ch
+
+ case ch
+ when "\n", "\r", "\f"
+ when "\\", "n", "t", "r", "f", "v", "a", "e", "b", "s" #"
+ when /[0-7]/
+ ungetc ch
+ 3.times do
+ ch = getc
+ escape << ch
+ case ch
+ when /[0-7]/
+ when nil
+ break
+ else
+ ungetc
+ break
+ end
+ end
+
+ when "x"
+ 2.times do
+ ch = getc
+ escape << ch
+ case ch
+ when /[0-9a-fA-F]/
+ when nil
+ break
+ else
+ ungetc
+ break
+ end
+ end
+
+ when "M"
+ ch = getc
+ escape << ch
+ if ch != '-'
+ ungetc
+ else
+ ch = getc
+ escape << ch
+ if ch == "\\" #"
+ escape << read_escape
+ end
+ end
+
+ when "C", "c" #, "^"
+ if ch == "C" and (ch = getc) != "-"
+ escape << ch
+ ungetc
+ elsif (ch = getc) == "\\" #"
+ escape << ch << read_escape
+ end
+ else
+ # other characters
+ end
+
+ escape
+ end
+
+ # :startdoc:
+
+end
+
+#RDoc::RubyLex.debug_level = 1
+
diff --git a/lib/rdoc/ruby_token.rb b/lib/rdoc/ruby_token.rb
new file mode 100644
index 0000000000..93b7a5cbc8
--- /dev/null
+++ b/lib/rdoc/ruby_token.rb
@@ -0,0 +1,416 @@
+#--
+# irb/ruby-token.rb - ruby tokens
+# $Release Version: 0.9.5$
+# $Revision: 11708 $
+# $Date: 2007-02-12 15:01:19 -0800 (Mon, 12 Feb 2007) $
+# by Keiju ISHITSUKA(keiju@ruby-lang.org)
+#++
+# Definitions of all tokens involved in the lexical analysis.
+#
+# This class is not documented because it is so deep in the internals.
+
+module RDoc::RubyToken
+ # :stopdoc:
+
+ EXPR_BEG = :EXPR_BEG
+ EXPR_MID = :EXPR_MID
+ EXPR_END = :EXPR_END
+ EXPR_ARG = :EXPR_ARG
+ EXPR_FNAME = :EXPR_FNAME
+ EXPR_DOT = :EXPR_DOT
+ EXPR_CLASS = :EXPR_CLASS
+
+ # for ruby 1.4X
+ if !defined?(Symbol)
+ Symbol = Integer
+ end
+
+ def set_token_position(line, char)
+ @prev_line_no = line
+ @prev_char_no = char
+ end
+
+ class Token
+ def initialize(seek, line_no, char_no, text = nil)
+ @seek = seek
+ @line_no = line_no
+ @char_no = char_no
+ @text = text
+ end
+
+ attr :seek
+ attr :line_no
+ attr :char_no
+
+ attr_accessor :text
+
+ def ==(other)
+ self.class == other.class and
+ other.line_no == @line_no and
+ other.char_no == @char_no and
+ other.text == @text
+ end
+
+ ##
+ # Because we're used in contexts that expect to return a token, we set the
+ # text string and then return ourselves
+
+ def set_text(text)
+ @text = text
+ self
+ end
+
+ end
+
+ class TkNode < Token
+ def initialize(seek, line_no, char_no, node = nil)
+ super seek, line_no, char_no
+ @node = node
+ end
+
+ attr :node
+
+ def ==(other)
+ self.class == other.class and
+ other.line_no == @line_no and
+ other.char_no == @char_no and
+ other.node == @node
+ end
+
+ def set_text text
+ @node = text
+ self
+ end
+
+ alias text node
+ end
+
+ class TkId < Token
+ def initialize(seek, line_no, char_no, name)
+ super(seek, line_no, char_no)
+ @name = name
+ end
+ attr :name
+
+ def ==(other)
+ self.class == other.class and
+ other.line_no == @line_no and
+ other.char_no == @char_no and
+ other.name == @name
+ end
+
+ def set_text text
+ @name = text
+ self
+ end
+
+ alias text name
+ end
+
+ class TkKW < TkId
+ end
+
+ class TkVal < Token
+ def initialize(seek, line_no, char_no, value = nil)
+ super(seek, line_no, char_no)
+ @value = value
+ end
+ attr_accessor :value
+
+ def ==(other)
+ self.class == other.class and
+ other.line_no == @line_no and
+ other.char_no == @char_no and
+ other.value == @value
+ end
+
+ def set_text text
+ @value = text
+ self
+ end
+
+ alias text value
+ end
+
+ class TkOp < Token
+ def initialize(seek, line_no, char_no, name = nil)
+ super seek, line_no, char_no
+ @name = name
+ end
+
+ attr_accessor :name
+
+ def ==(other)
+ self.class == other.class and
+ other.line_no == @line_no and
+ other.char_no == @char_no and
+ other.name == @name
+ end
+
+ def set_text text
+ @name = text
+ self
+ end
+
+ alias text name
+ end
+
+ class TkOPASGN < TkOp
+ def initialize(seek, line_no, char_no, op)
+ super(seek, line_no, char_no)
+ op = TkReading2Token[op][0] unless op.kind_of?(Symbol)
+ @op = op
+ @text = nil
+ end
+
+ attr :op
+
+ def ==(other)
+ self.class == other.class and
+ other.line_no == @line_no and
+ other.char_no == @char_no and
+ other.op == @op
+ end
+
+ def text
+ @text ||= "#{TkToken2Reading[op]}="
+ end
+ end
+
+ class TkUnknownChar < Token
+ def initialize(seek, line_no, char_no, name)
+ super(seek, line_no, char_no)
+ @name = name
+ end
+ attr :name
+
+ def ==(other)
+ self.class == other.class and
+ other.line_no == @line_no and
+ other.char_no == @char_no and
+ other.name == @name
+ end
+
+ def set_text text
+ @name = text
+ self
+ end
+
+ alias text name
+ end
+
+ class TkError < Token
+ end
+
+ def Token(token, value = nil)
+ value ||= TkToken2Reading[token]
+
+ case token
+ when String
+ if (tk = TkReading2Token[token]).nil?
+ IRB.fail TkReading2TokenNoKey, token
+ end
+
+ tk = Token(tk[0], value)
+
+ if tk.kind_of?(TkOp) then
+ tk.name = token
+ end
+ when Symbol
+ if (tk = TkSymbol2Token[token]).nil?
+ IRB.fail TkSymbol2TokenNoKey, token
+ end
+
+ tk = Token(tk[0], value)
+ else
+ if token.instance_method(:initialize).arity == 3 then
+ tk = token.new(@prev_seek, @prev_line_no, @prev_char_no)
+ tk.set_text value
+ else
+ tk = token.new(@prev_seek, @prev_line_no, @prev_char_no, value)
+ end
+ end
+
+ tk
+ end
+
+ TokenDefinitions = [
+ [:TkCLASS, TkKW, "class", EXPR_CLASS],
+ [:TkMODULE, TkKW, "module", EXPR_BEG],
+ [:TkDEF, TkKW, "def", EXPR_FNAME],
+ [:TkUNDEF, TkKW, "undef", EXPR_FNAME],
+ [:TkBEGIN, TkKW, "begin", EXPR_BEG],
+ [:TkRESCUE, TkKW, "rescue", EXPR_MID],
+ [:TkENSURE, TkKW, "ensure", EXPR_BEG],
+ [:TkEND, TkKW, "end", EXPR_END],
+ [:TkIF, TkKW, "if", EXPR_BEG, :TkIF_MOD],
+ [:TkUNLESS, TkKW, "unless", EXPR_BEG, :TkUNLESS_MOD],
+ [:TkTHEN, TkKW, "then", EXPR_BEG],
+ [:TkELSIF, TkKW, "elsif", EXPR_BEG],
+ [:TkELSE, TkKW, "else", EXPR_BEG],
+ [:TkCASE, TkKW, "case", EXPR_BEG],
+ [:TkWHEN, TkKW, "when", EXPR_BEG],
+ [:TkWHILE, TkKW, "while", EXPR_BEG, :TkWHILE_MOD],
+ [:TkUNTIL, TkKW, "until", EXPR_BEG, :TkUNTIL_MOD],
+ [:TkFOR, TkKW, "for", EXPR_BEG],
+ [:TkBREAK, TkKW, "break", EXPR_MID],
+ [:TkNEXT, TkKW, "next", EXPR_END],
+ [:TkREDO, TkKW, "redo", EXPR_END],
+ [:TkRETRY, TkKW, "retry", EXPR_END],
+ [:TkIN, TkKW, "in", EXPR_BEG],
+ [:TkDO, TkKW, "do", EXPR_BEG],
+ [:TkRETURN, TkKW, "return", EXPR_MID],
+ [:TkYIELD, TkKW, "yield", EXPR_END],
+ [:TkSUPER, TkKW, "super", EXPR_END],
+ [:TkSELF, TkKW, "self", EXPR_END],
+ [:TkNIL, TkKW, "nil", EXPR_END],
+ [:TkTRUE, TkKW, "true", EXPR_END],
+ [:TkFALSE, TkKW, "false", EXPR_END],
+ [:TkAND, TkKW, "and", EXPR_BEG],
+ [:TkOR, TkKW, "or", EXPR_BEG],
+ [:TkNOT, TkKW, "not", EXPR_BEG],
+ [:TkIF_MOD, TkKW],
+ [:TkUNLESS_MOD, TkKW],
+ [:TkWHILE_MOD, TkKW],
+ [:TkUNTIL_MOD, TkKW],
+ [:TkALIAS, TkKW, "alias", EXPR_FNAME],
+ [:TkDEFINED, TkKW, "defined?", EXPR_END],
+ [:TklBEGIN, TkKW, "BEGIN", EXPR_END],
+ [:TklEND, TkKW, "END", EXPR_END],
+ [:Tk__LINE__, TkKW, "__LINE__", EXPR_END],
+ [:Tk__FILE__, TkKW, "__FILE__", EXPR_END],
+
+ [:TkIDENTIFIER, TkId],
+ [:TkFID, TkId],
+ [:TkGVAR, TkId],
+ [:TkCVAR, TkId],
+ [:TkIVAR, TkId],
+ [:TkCONSTANT, TkId],
+
+ [:TkINTEGER, TkVal],
+ [:TkFLOAT, TkVal],
+ [:TkSTRING, TkVal],
+ [:TkXSTRING, TkVal],
+ [:TkREGEXP, TkVal],
+ [:TkSYMBOL, TkVal],
+
+ [:TkDSTRING, TkNode],
+ [:TkDXSTRING, TkNode],
+ [:TkDREGEXP, TkNode],
+ [:TkNTH_REF, TkNode],
+ [:TkBACK_REF, TkNode],
+
+ [:TkUPLUS, TkOp, "+@"],
+ [:TkUMINUS, TkOp, "-@"],
+ [:TkPOW, TkOp, "**"],
+ [:TkCMP, TkOp, "<=>"],
+ [:TkEQ, TkOp, "=="],
+ [:TkEQQ, TkOp, "==="],
+ [:TkNEQ, TkOp, "!="],
+ [:TkGEQ, TkOp, ">="],
+ [:TkLEQ, TkOp, "<="],
+ [:TkANDOP, TkOp, "&&"],
+ [:TkOROP, TkOp, "||"],
+ [:TkMATCH, TkOp, "=~"],
+ [:TkNMATCH, TkOp, "!~"],
+ [:TkDOT2, TkOp, ".."],
+ [:TkDOT3, TkOp, "..."],
+ [:TkAREF, TkOp, "[]"],
+ [:TkASET, TkOp, "[]="],
+ [:TkLSHFT, TkOp, "<<"],
+ [:TkRSHFT, TkOp, ">>"],
+ [:TkCOLON2, TkOp, '::'],
+ [:TkCOLON3, TkOp, '::'],
+ #[:OPASGN, TkOp], # +=, -= etc. #
+ [:TkASSOC, TkOp, "=>"],
+ [:TkQUESTION, TkOp, "?"], #?
+ [:TkCOLON, TkOp, ":"], #:
+
+ [:TkfLPAREN, Token, "("], # func( #
+ [:TkfLBRACK, Token, "["], # func[ #
+ [:TkfLBRACE, Token, "{"], # func{ #
+ [:TkSTAR, Token, "*"], # *arg
+ [:TkAMPER, Token, "&"], # &arg #
+ [:TkSYMBEG, Token, ":"], # :SYMBOL
+
+ [:TkGT, TkOp, ">"],
+ [:TkLT, TkOp, "<"],
+ [:TkPLUS, TkOp, "+"],
+ [:TkMINUS, TkOp, "-"],
+ [:TkMULT, TkOp, "*"],
+ [:TkDIV, TkOp, "/"],
+ [:TkMOD, TkOp, "%"],
+ [:TkBITOR, TkOp, "|"],
+ [:TkBITXOR, TkOp, "^"],
+ [:TkBITAND, TkOp, "&"],
+ [:TkBITNOT, TkOp, "~"],
+ [:TkNOTOP, TkOp, "!"],
+
+ [:TkBACKQUOTE, TkOp, "`"],
+
+ [:TkASSIGN, Token, "="],
+ [:TkDOT, Token, "."],
+ [:TkLPAREN, Token, "("], #(exp)
+ [:TkLBRACK, Token, "["], #[arry]
+ [:TkLBRACE, Token, "{"], #{hash}
+ [:TkRPAREN, Token, ")"],
+ [:TkRBRACK, Token, "]"],
+ [:TkRBRACE, Token, "}"],
+ [:TkCOMMA, Token, ","],
+ [:TkSEMICOLON, Token, ";"],
+
+ [:TkCOMMENT, TkVal],
+ [:TkRD_COMMENT],
+ [:TkSPACE, Token, " "],
+ [:TkNL, Token, "\n"],
+ [:TkEND_OF_SCRIPT],
+
+ [:TkBACKSLASH, TkUnknownChar, "\\"],
+ [:TkAT, TkUnknownChar, "@"],
+ [:TkDOLLAR, TkUnknownChar, "$"],
+ ]
+
+ # {reading => token_class}
+ # {reading => [token_class, *opt]}
+ TkReading2Token = {}
+ TkToken2Reading = {}
+ TkSymbol2Token = {}
+
+ def self.def_token(token_n, super_token = Token, reading = nil, *opts)
+ token_n = token_n.id2name if token_n.kind_of?(Symbol)
+ if const_defined?(token_n)
+ IRB.fail AlreadyDefinedToken, token_n
+ end
+ token_c = eval("class #{token_n} < #{super_token}; end; #{token_n}")
+
+ if reading
+ TkToken2Reading[token_c] = reading
+
+ return if TkReading2Token[reading]
+
+ if opts.empty?
+ TkReading2Token[reading] = [token_c]
+ else
+ TkReading2Token[reading] = [token_c].concat(opts)
+ end
+ end
+ TkSymbol2Token[token_n.intern] = token_c
+ end
+
+ for defs in TokenDefinitions
+ def_token(*defs)
+ end
+
+ NEWLINE_TOKEN = TkNL.new nil, 0, 0, "\n"
+
+ class TkSYMBOL
+
+ def to_sym
+ @sym ||= text[1..-1].intern
+ end
+
+ end
+
+ # :startdoc:
+end
+
diff --git a/lib/rdoc/rubygems_hook.rb b/lib/rdoc/rubygems_hook.rb
new file mode 100644
index 0000000000..178ca1d2ae
--- /dev/null
+++ b/lib/rdoc/rubygems_hook.rb
@@ -0,0 +1,220 @@
+require 'rubygems'
+require 'rubygems/user_interaction'
+require 'fileutils'
+require 'rdoc'
+
+##
+# Gem::RDoc provides methods to generate RDoc and ri data for installed gems
+# upon gem installation.
+#
+# This file is automatically required by RubyGems 1.9 and newer.
+
+class RDoc::RubygemsHook
+
+ include Gem::UserInteraction
+
+ @rdoc_version = nil
+ @specs = []
+
+ ##
+ # Force installation of documentation?
+
+ attr_accessor :force
+
+ ##
+ # Generate rdoc?
+
+ attr_accessor :generate_rdoc
+
+ ##
+ # Generate ri data?
+
+ attr_accessor :generate_ri
+
+ class << self
+
+ ##
+ # Loaded version of RDoc. Set by ::load_rdoc
+
+ attr_reader :rdoc_version
+
+ end
+
+ ##
+ # Post installs hook that generates documentation for each specification in
+ # +specs+
+
+ def self.generation_hook installer, specs
+ types = installer.document
+
+ generate_rdoc = types.include? 'rdoc'
+ generate_ri = types.include? 'ri'
+
+ specs.each do |spec|
+ new(spec, generate_rdoc, generate_ri).generate
+ end
+ end
+
+ ##
+ # Loads the RDoc generator
+
+ def self.load_rdoc
+ return if @rdoc_version
+
+ require 'rdoc/rdoc'
+
+ @rdoc_version = Gem::Version.new ::RDoc::VERSION
+ end
+
+ ##
+ # Creates a new documentation generator for +spec+. RDoc and ri data
+ # generation can be disabled through +generate_rdoc+ and +generate_ri+
+ # respectively.
+
+ def initialize spec, generate_rdoc = true, generate_ri = true
+ @doc_dir = spec.doc_dir
+ @file_info = nil
+ @force = false
+ @rdoc = nil
+ @spec = spec
+
+ @generate_rdoc = generate_rdoc
+ @generate_ri = generate_ri
+
+ @rdoc_dir = spec.doc_dir 'rdoc'
+ @ri_dir = spec.doc_dir 'ri'
+ end
+
+ ##
+ # Removes legacy rdoc arguments from +args+
+ #--
+ # TODO move to RDoc::Options
+
+ def delete_legacy_args args
+ args.delete '--inline-source'
+ args.delete '--promiscuous'
+ args.delete '-p'
+ args.delete '--one-file'
+ end
+
+ ##
+ # Generates documentation using the named +generator+ ("darkfish" or "ri")
+ # and following the given +options+.
+ #
+ # Documentation will be generated into +destination+
+
+ def document generator, options, destination
+ options = options.dup
+ options.exclude ||= [] # TODO maybe move to RDoc::Options#finish
+ options.setup_generator generator
+ options.op_dir = destination
+ options.finish
+
+ @rdoc.options = options
+ @rdoc.generator = options.generator.new options
+
+ say "Installing #{generator} documentation for #{@spec.full_name}"
+
+ FileUtils.mkdir_p options.op_dir
+
+ Dir.chdir options.op_dir do
+ begin
+ @rdoc.class.current = @rdoc
+ @rdoc.generator.generate @file_info
+ ensure
+ @rdoc.class.current = nil
+ end
+ end
+ end
+
+ ##
+ # Generates RDoc and ri data
+
+ def generate
+ return unless @generate_ri or @generate_rdoc
+
+ setup
+
+ ::RDoc::RDoc.reset
+
+ options = ::RDoc::Options.new
+ options.default_title = "#{@spec.full_name} Documentation"
+ options.files = []
+ options.files.push(*@spec.require_paths)
+ options.files.push(*@spec.extra_rdoc_files)
+
+ args = @spec.rdoc_options
+
+ case config_args = Gem.configuration[:rdoc]
+ when String then
+ args = args.concat config_args.split
+ when Array then
+ args = args.concat config_args
+ end
+
+ delete_legacy_args args
+ options.parse args
+ options.quiet = !Gem.configuration.really_verbose
+
+ @rdoc = new_rdoc
+ @rdoc.options = options
+
+ Dir.chdir @spec.full_gem_path do
+ @file_info = @rdoc.parse_files options.files
+ end
+
+ document 'ri', options, @ri_dir if
+ @generate_ri and (@force or not File.exist? @ri_dir)
+
+ document 'darkfish', options, @rdoc_dir if
+ @generate_rdoc and (@force or not File.exist? @rdoc_dir)
+ end
+
+ ##
+ # #new_rdoc creates a new RDoc instance. This method is provided only to
+ # make testing easier.
+
+ def new_rdoc # :nodoc:
+ ::RDoc::RDoc.new
+ end
+
+ ##
+ # Is rdoc documentation installed?
+
+ def rdoc_installed?
+ File.exist? @rdoc_dir
+ end
+
+ ##
+ # Removes generated RDoc and ri data
+
+ def remove
+ base_dir = @spec.base_dir
+
+ raise Gem::FilePermissionError, base_dir unless File.writable? base_dir
+
+ FileUtils.rm_rf @rdoc_dir
+ FileUtils.rm_rf @ri_dir
+ end
+
+ ##
+ # Is ri data installed?
+
+ def ri_installed?
+ File.exist? @ri_dir
+ end
+
+ ##
+ # Prepares the spec for documentation generation
+
+ def setup
+ self.class.load_rdoc
+
+ raise Gem::FilePermissionError, @doc_dir if
+ File.exist?(@doc_dir) and not File.writable?(@doc_dir)
+
+ FileUtils.mkdir_p @doc_dir unless File.exist? @doc_dir
+ end
+
+end
+
diff --git a/lib/rdoc/single_class.rb b/lib/rdoc/single_class.rb
new file mode 100644
index 0000000000..e48758d9c8
--- /dev/null
+++ b/lib/rdoc/single_class.rb
@@ -0,0 +1,23 @@
+require 'rdoc/class_module'
+
+##
+# A singleton class
+
+class RDoc::SingleClass < RDoc::ClassModule
+
+ ##
+ # Adds the superclass to the included modules.
+
+ def ancestors
+ superclass ? super + [superclass] : super
+ end
+
+ ##
+ # The definition of this singleton class, <tt>class << MyClassName</tt>
+
+ def definition
+ "class << #{full_name}"
+ end
+
+end
+
diff --git a/lib/rdoc/stats.rb b/lib/rdoc/stats.rb
index e18e3c23d7..e6101bb457 100644
--- a/lib/rdoc/stats.rb
+++ b/lib/rdoc/stats.rb
@@ -1,115 +1,438 @@
require 'rdoc'
##
-# Simple stats collector
+# RDoc statistics collector which prints a summary and report of a project's
+# documentation totals.
class RDoc::Stats
- attr_reader :num_classes
+ ##
+ # Output level for the coverage report
+
+ attr_reader :coverage_level
+
+ ##
+ # Count of files parsed during parsing
+
+ attr_reader :files_so_far
+
+ ##
+ # Total number of files found
+
attr_reader :num_files
- attr_reader :num_methods
- attr_reader :num_modules
- def initialize(verbosity = 1)
- @num_classes = 0
- @num_files = 0
- @num_methods = 0
- @num_modules = 0
+ ##
+ # Creates a new Stats that will have +num_files+. +verbosity+ defaults to 1
+ # which will create an RDoc::Stats::Normal outputter.
+
+ def initialize num_files, verbosity = 1
+ @files_so_far = 0
+ @num_files = num_files
+ @coverage_level = 0
+ @doc_items = nil
+ @fully_documented = false
+ @num_params = 0
+ @percent_doc = nil
@start = Time.now
+ @undoc_params = 0
@display = case verbosity
- when 0 then Quiet.new
- when 1 then Normal.new
- else Verbose.new
+ when 0 then Quiet.new num_files
+ when 1 then Normal.new num_files
+ else Verbose.new num_files
end
end
- def add_alias(as)
+ ##
+ # Records the parsing of an alias +as+.
+
+ def add_alias as
@display.print_alias as
- @num_methods += 1
end
- def add_class(klass)
+ ##
+ # Records the parsing of an attribute +attribute+
+
+ def add_attribute attribute
+ @display.print_attribute attribute
+ end
+
+ ##
+ # Records the parsing of a class +klass+
+
+ def add_class klass
@display.print_class klass
- @num_classes += 1
end
+ ##
+ # Records the parsing of +constant+
+
+ def add_constant constant
+ @display.print_constant constant
+ end
+
+ ##
+ # Records the parsing of +file+
+
def add_file(file)
- @display.print_file file
- @num_files += 1
+ @files_so_far += 1
+ @display.print_file @files_so_far, file
end
+ ##
+ # Records the parsing of +method+
+
def add_method(method)
@display.print_method method
- @num_methods += 1
end
+ ##
+ # Records the parsing of a module +mod+
+
def add_module(mod)
@display.print_module mod
- @num_modules += 1
end
- def print
- puts "Files: #@num_files"
- puts "Classes: #@num_classes"
- puts "Modules: #@num_modules"
- puts "Methods: #@num_methods"
- puts "Elapsed: " + sprintf("%0.1fs", Time.now - @start)
+ ##
+ # Call this to mark the beginning of parsing for display purposes
+
+ def begin_adding
+ @display.begin_adding
end
- class Quiet
- def print_alias(*) end
- def print_class(*) end
- def print_file(*) end
- def print_method(*) end
- def print_module(*) end
+ ##
+ # Calculates documentation totals and percentages for classes, modules,
+ # constants, attributes and methods.
+
+ def calculate
+ return if @doc_items
+
+ ucm = RDoc::TopLevel.unique_classes_and_modules
+ constants = []
+ ucm.each { |cm| constants.concat cm.constants }
+
+ methods = []
+ ucm.each { |cm| methods.concat cm.method_list }
+
+ attributes = []
+ ucm.each { |cm| attributes.concat cm.attributes }
+
+ @num_attributes, @undoc_attributes = doc_stats attributes
+ @num_classes, @undoc_classes = doc_stats RDoc::TopLevel.unique_classes
+ @num_constants, @undoc_constants = doc_stats constants
+ @num_methods, @undoc_methods = doc_stats methods
+ @num_modules, @undoc_modules = doc_stats RDoc::TopLevel.unique_modules
+
+ @num_items =
+ @num_attributes +
+ @num_classes +
+ @num_constants +
+ @num_methods +
+ @num_modules +
+ @num_params
+
+ @undoc_items =
+ @undoc_attributes +
+ @undoc_classes +
+ @undoc_constants +
+ @undoc_methods +
+ @undoc_modules +
+ @undoc_params
+
+ @doc_items = @num_items - @undoc_items
end
- class Normal
- def print_alias(as)
- print 'a'
- end
+ ##
+ # Sets coverage report level. Accepted values are:
+ #
+ # false or nil:: No report
+ # 0:: Classes, modules, constants, attributes, methods
+ # 1:: Level 0 + method parameters
+
+ def coverage_level= level
+ level = -1 unless level
- def print_class(klass)
- print 'C'
+ @coverage_level = level
+ end
+
+ ##
+ # Returns the length and number of undocumented items in +collection+.
+
+ def doc_stats collection
+ [collection.length, collection.count { |item| not item.documented? }]
+ end
+
+ ##
+ # Call this to mark the end of parsing for display purposes
+
+ def done_adding
+ @display.done_adding
+ end
+
+ ##
+ # The documentation status of this project. +true+ when 100%, +false+ when
+ # less than 100% and +nil+ when unknown.
+ #
+ # Set by calling #calculate
+
+ def fully_documented?
+ @fully_documented
+ end
+
+ ##
+ # A report that says you did a great job!
+
+ def great_job
+ report = []
+ report << '100% documentation!'
+ report << nil
+ report << 'Great Job!'
+
+ report.join "\n"
+ end
+
+ ##
+ # Calculates the percentage of items documented.
+
+ def percent_doc
+ return @percent_doc if @percent_doc
+
+ @fully_documented = (@num_items - @doc_items) == 0
+
+ @percent_doc = @doc_items.to_f / @num_items * 100 if @num_items.nonzero?
+ @percent_doc ||= 0
+
+ @percent_doc
+ end
+
+ ##
+ # Returns a report on which items are not documented
+
+ def report
+ if @coverage_level > 0 then
+ require 'rdoc/markup/to_tt_only'
+ require 'rdoc/generator/markup'
+ require 'rdoc/text'
+ extend RDoc::Text
end
- def print_file(file)
- print "\n#{file}: "
+ report = []
+
+ if @coverage_level.zero? then
+ calculate
+
+ return great_job if @num_items == @doc_items
end
- def print_method(method)
- print 'm'
+ ucm = RDoc::TopLevel.unique_classes_and_modules
+
+ ucm.sort.each do |cm|
+ report << report_class_module(cm) {
+ [
+ report_constants(cm),
+ report_attributes(cm),
+ report_methods(cm),
+ ].compact
+ }
end
- def print_module(mod)
- print 'M'
+ if @coverage_level > 0 then
+ calculate
+
+ return great_job if @num_items == @doc_items
end
+
+ report.unshift nil
+ report.unshift 'The following items are not documented:'
+
+ report.join "\n"
end
- class Verbose
- def print_alias(as)
- puts "\t\talias #{as.new_name} #{as.old_name}"
- end
+ ##
+ # Returns a report on undocumented attributes in ClassModule +cm+
+
+ def report_attributes cm
+ return if cm.attributes.empty?
+
+ report = []
- def print_class(klass)
- puts "\tclass #{klass.full_name}"
+ cm.each_attribute do |attr|
+ next if attr.documented?
+ report << " #{attr.definition} :#{attr.name} " \
+ "# in file #{attr.file.full_name}"
end
- def print_file(file)
- puts file
+ report
+ end
+
+ ##
+ # Returns a report on undocumented items in ClassModule +cm+
+
+ def report_class_module cm
+ return if cm.fully_documented? and @coverage_level.zero?
+
+ report = []
+
+ if cm.in_files.empty? then
+ report << "# #{cm.definition} is referenced but empty."
+ report << '#'
+ report << '# It probably came from another project. ' \
+ "I'm sorry I'm holding it against you."
+ report << nil
+
+ return report
+ elsif cm.documented? then
+ documented = true
+ report << "#{cm.definition} # is documented"
+ else
+ report << '# in files:'
+
+ cm.in_files.each do |file|
+ report << "# #{file.full_name}"
+ end
+
+ report << nil
+
+ report << "#{cm.definition}"
end
- def print_method(method)
- puts "\t\t#{method.singleton ? '::' : '#'}#{method.name}"
+ body = yield.flatten # HACK remove #flatten
+
+ return if body.empty? and documented
+
+ report << nil << body unless body.empty?
+
+ report << 'end'
+ report << nil
+
+ report
+ end
+
+ ##
+ # Returns a report on undocumented constants in ClassModule +cm+
+
+ def report_constants cm
+ return if cm.constants.empty?
+
+ report = []
+
+ cm.each_constant do |constant|
+ # TODO constant aliases are listed in the summary but not reported
+ # figure out what to do here
+ next if constant.documented? || constant.is_alias_for
+ report << " # in file #{constant.file.full_name}"
+ report << " #{constant.name} = nil"
end
- def print_module(mod)
- puts "\tmodule #{mod.full_name}"
+ report
+ end
+
+ ##
+ # Returns a report on undocumented methods in ClassModule +cm+
+
+ def report_methods cm
+ return if cm.method_list.empty?
+
+ report = []
+
+ cm.each_method do |method|
+ next if method.documented? and @coverage_level.zero?
+
+ if @coverage_level > 0 then
+ params, undoc = undoc_params method
+
+ @num_params += params
+
+ unless undoc.empty? then
+ @undoc_params += undoc.length
+
+ undoc = undoc.map do |param| "+#{param}+" end
+ param_report = " # #{undoc.join ', '} is not documented"
+ end
+ end
+
+ next if method.documented? and not param_report
+ report << " # in file #{method.file.full_name}"
+ report << param_report if param_report
+ report << " def #{method.name}#{method.params}; end"
+ report << nil
end
+
+ report
end
-end
+ ##
+ # Returns a summary of the collected statistics.
+
+ def summary
+ calculate
+
+ num_width = [@num_files, @num_items].max.to_s.length
+ undoc_width = [
+ @undoc_attributes,
+ @undoc_classes,
+ @undoc_constants,
+ @undoc_items,
+ @undoc_methods,
+ @undoc_modules,
+ @undoc_params,
+ ].max.to_s.length
+
+ report = []
+ report << 'Files: %*d' % [num_width, @num_files]
+
+ report << nil
+
+ report << 'Classes: %*d (%*d undocumented)' % [
+ num_width, @num_classes, undoc_width, @undoc_classes]
+ report << 'Modules: %*d (%*d undocumented)' % [
+ num_width, @num_modules, undoc_width, @undoc_modules]
+ report << 'Constants: %*d (%*d undocumented)' % [
+ num_width, @num_constants, undoc_width, @undoc_constants]
+ report << 'Attributes: %*d (%*d undocumented)' % [
+ num_width, @num_attributes, undoc_width, @undoc_attributes]
+ report << 'Methods: %*d (%*d undocumented)' % [
+ num_width, @num_methods, undoc_width, @undoc_methods]
+ report << 'Parameters: %*d (%*d undocumented)' % [
+ num_width, @num_params, undoc_width, @undoc_params] if
+ @coverage_level > 0
+
+ report << nil
+
+ report << 'Total: %*d (%*d undocumented)' % [
+ num_width, @num_items, undoc_width, @undoc_items]
+
+ report << '%6.2f%% documented' % percent_doc
+ report << nil
+ report << 'Elapsed: %0.1fs' % (Time.now - @start)
+ report.join "\n"
+ end
+
+ ##
+ # Determines which parameters in +method+ were not documented. Returns a
+ # total parameter count and an Array of undocumented methods.
+
+ def undoc_params method
+ @formatter ||= RDoc::Markup::ToTtOnly.new
+
+ params = method.param_list
+
+ return 0, [] if params.empty?
+
+ document = parse method.comment
+
+ tts = document.accept @formatter
+
+ undoc = params - tts
+
+ [params.length, undoc]
+ end
+
+ autoload :Quiet, 'rdoc/stats/quiet'
+ autoload :Normal, 'rdoc/stats/normal'
+ autoload :Verbose, 'rdoc/stats/verbose'
+
+end
diff --git a/lib/rdoc/stats/normal.rb b/lib/rdoc/stats/normal.rb
new file mode 100644
index 0000000000..c971973bf1
--- /dev/null
+++ b/lib/rdoc/stats/normal.rb
@@ -0,0 +1,48 @@
+##
+# Stats printer that prints just the files being documented with a progress
+# bar
+
+class RDoc::Stats::Normal < RDoc::Stats::Quiet
+
+ def begin_adding # :nodoc:
+ puts "Parsing sources..." if $stdout.tty?
+ end
+
+ ##
+ # Prints a file with a progress bar
+
+ def print_file files_so_far, filename
+ return unless $stdout.tty?
+
+ progress_bar = sprintf("%3d%% [%2d/%2d] ",
+ 100 * files_so_far / @num_files,
+ files_so_far,
+ @num_files)
+
+ # Print a progress bar, but make sure it fits on a single line. Filename
+ # will be truncated if necessary.
+ terminal_width = (ENV['COLUMNS'] || 80).to_i
+ max_filename_size = terminal_width - progress_bar.size
+
+ if filename.size > max_filename_size then
+ # Turn "some_long_filename.rb" to "...ong_filename.rb"
+ filename = filename[(filename.size - max_filename_size) .. -1]
+ filename[0..2] = "..."
+ end
+
+ # Pad the line with whitespaces so that leftover output from the
+ # previous line doesn't show up.
+ line = "#{progress_bar}#{filename}"
+ padding = terminal_width - line.size
+ line << (" " * padding) if padding > 0
+
+ $stdout.print("#{line}\r")
+ $stdout.flush
+ end
+
+ def done_adding # :nodoc:
+ puts if $stdout.tty?
+ end
+
+end
+
diff --git a/lib/rdoc/stats/quiet.rb b/lib/rdoc/stats/quiet.rb
new file mode 100644
index 0000000000..eed27b2a88
--- /dev/null
+++ b/lib/rdoc/stats/quiet.rb
@@ -0,0 +1,59 @@
+##
+# Stats printer that prints nothing
+
+class RDoc::Stats::Quiet
+
+ ##
+ # Creates a new Quiet that will print nothing
+
+ def initialize num_files
+ @num_files = num_files
+ end
+
+ ##
+ # Prints a message at the beginning of parsing
+
+ def begin_adding(*) end
+
+ ##
+ # Prints when an alias is added
+
+ def print_alias(*) end
+
+ ##
+ # Prints when an attribute is added
+
+ def print_attribute(*) end
+
+ ##
+ # Prints when a class is added
+
+ def print_class(*) end
+
+ ##
+ # Prints when a constant is added
+
+ def print_constant(*) end
+
+ ##
+ # Prints when a file is added
+
+ def print_file(*) end
+
+ ##
+ # Prints when a method is added
+
+ def print_method(*) end
+
+ ##
+ # Prints when a module is added
+
+ def print_module(*) end
+
+ ##
+ # Prints when RDoc is done
+
+ def done_adding(*) end
+
+end
+
diff --git a/lib/rdoc/stats/verbose.rb b/lib/rdoc/stats/verbose.rb
new file mode 100644
index 0000000000..430809ae07
--- /dev/null
+++ b/lib/rdoc/stats/verbose.rb
@@ -0,0 +1,45 @@
+##
+# Stats printer that prints everything documented, including the documented
+# status
+
+class RDoc::Stats::Verbose < RDoc::Stats::Normal
+
+ ##
+ # Returns a marker for RDoc::CodeObject +co+ being undocumented
+
+ def nodoc co
+ " (undocumented)" unless co.documented?
+ end
+
+ def print_alias as # :nodoc:
+ puts " alias #{as.new_name} #{as.old_name}#{nodoc as}"
+ end
+
+ def print_attribute attribute # :nodoc:
+ puts " #{attribute.definition} #{attribute.name}#{nodoc attribute}"
+ end
+
+ def print_class(klass) # :nodoc:
+ puts " class #{klass.full_name}#{nodoc klass}"
+ end
+
+ def print_constant(constant) # :nodoc:
+ puts " #{constant.name}#{nodoc constant}"
+ end
+
+ def print_file(files_so_far, file) # :nodoc:
+ super
+ puts
+ end
+
+ def print_method(method) # :nodoc:
+ puts " #{method.singleton ? '::' : '#'}#{method.name}#{nodoc method}"
+ end
+
+ def print_module(mod) # :nodoc:
+ puts " module #{mod.full_name}#{nodoc mod}"
+ end
+
+end
+
+
diff --git a/lib/rdoc/task.rb b/lib/rdoc/task.rb
new file mode 100644
index 0000000000..ec7459729a
--- /dev/null
+++ b/lib/rdoc/task.rb
@@ -0,0 +1,326 @@
+#--
+# Copyright (c) 2003, 2004 Jim Weirich, 2009 Eric Hodel
+#
+# Permission is hereby granted, free of charge, to any person obtaining
+# a copy of this software and associated documentation files (the
+# "Software"), to deal in the Software without restriction, including
+# without limitation the rights to use, copy, modify, merge, publish,
+# distribute, sublicense, and/or sell copies of the Software, and to
+# permit persons to whom the Software is furnished to do so, subject to
+# the following conditions:
+#
+# The above copyright notice and this permission notice shall be
+# included in all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+#++
+
+require 'rubygems'
+begin
+ gem 'rdoc'
+rescue Gem::LoadError
+end
+
+begin
+ gem 'rake'
+rescue Gem::LoadError
+end
+
+require 'rdoc'
+require 'rake'
+require 'rake/tasklib'
+
+##
+# RDoc::Task creates the following rake tasks to generate and clean up RDoc
+# output:
+#
+# [rdoc]
+# Main task for this RDoc task.
+#
+# [clobber_rdoc]
+# Delete all the rdoc files. This target is automatically added to the main
+# clobber target.
+#
+# [rerdoc]
+# Rebuild the rdoc files from scratch, even if they are not out of date.
+#
+# Simple Example:
+#
+# gem 'rdoc'
+# require 'rdoc/task'
+#
+# RDoc::Task.new do |rdoc|
+# rdoc.main = "README.rdoc"
+# rdoc.rdoc_files.include("README.rdoc", "lib/**/*.rb")
+# end
+#
+# The +rdoc+ object passed to the block is an RDoc::Task object. See the
+# attributes list for the RDoc::Task class for available customization options.
+#
+# == Specifying different task names
+#
+# You may wish to give the task a different name, such as if you are
+# generating two sets of documentation. For instance, if you want to have a
+# development set of documentation including private methods:
+#
+# gem 'rdoc'
+# require 'rdoc/task'
+#
+# RDoc::Task.new :rdoc_dev do |rdoc|
+# rdoc.main = "README.doc"
+# rdoc.rdoc_files.include("README.rdoc", "lib/**/*.rb")
+# rdoc.options << "--all"
+# end
+#
+# The tasks would then be named :<em>rdoc_dev</em>,
+# :clobber_<em>rdoc_dev</em>, and :re<em>rdoc_dev</em>.
+#
+# If you wish to have completely different task names, then pass a Hash as
+# first argument. With the <tt>:rdoc</tt>, <tt>:clobber_rdoc</tt> and
+# <tt>:rerdoc</tt> options, you can customize the task names to your liking.
+#
+# For example:
+#
+# gem 'rdoc'
+# require 'rdoc/task'
+#
+# RDoc::Task.new(:rdoc => "rdoc", :clobber_rdoc => "rdoc:clean",
+# :rerdoc => "rdoc:force")
+#
+# This will create the tasks <tt>:rdoc</tt>, <tt>:rdoc:clean</tt> and
+# <tt>:rdoc:force</tt>.
+
+class RDoc::Task < Rake::TaskLib
+
+ ##
+ # Name of the main, top level task. (default is :rdoc)
+
+ attr_accessor :name
+
+ ##
+ # Name of directory to receive the html output files. (default is "html")
+
+ attr_accessor :rdoc_dir
+
+ ##
+ # Title of RDoc documentation. (defaults to rdoc's default)
+
+ attr_accessor :title
+
+ ##
+ # Name of file to be used as the main, top level file of the RDoc. (default
+ # is none)
+
+ attr_accessor :main
+
+ ##
+ # Name of template to be used by rdoc. (defaults to rdoc's default)
+
+ attr_accessor :template
+
+ ##
+ # Name of format generator (--fmt) used by rdoc. (defaults to rdoc's default)
+
+ attr_accessor :generator
+
+ ##
+ # List of files to be included in the rdoc generation. (default is [])
+
+ attr_accessor :rdoc_files
+
+ ##
+ # Additional list of options to be passed rdoc. (default is [])
+
+ attr_accessor :options
+
+ ##
+ # Whether to run the rdoc process as an external shell (default is false)
+
+ attr_accessor :external
+
+ ##
+ # Create an RDoc task with the given name. See the RDoc::Task class overview
+ # for documentation.
+
+ def initialize name = :rdoc # :yield: self
+ defaults
+
+ check_names name
+
+ @name = name
+
+ yield self if block_given?
+
+ define
+ end
+
+ ##
+ # Ensures that +names+ only includes names for the :rdoc, :clobber_rdoc and
+ # :rerdoc. If other names are given an ArgumentError is raised.
+
+ def check_names names
+ return unless Hash === names
+
+ invalid_options =
+ names.keys.map { |k| k.to_sym } - [:rdoc, :clobber_rdoc, :rerdoc]
+
+ unless invalid_options.empty? then
+ raise ArgumentError, "invalid options: #{invalid_options.join ', '}"
+ end
+ end
+
+ ##
+ # Task description for the clobber rdoc task or its renamed equivalent
+
+ def clobber_task_description
+ "Remove RDoc HTML files"
+ end
+
+ ##
+ # Sets default task values
+
+ def defaults
+ @name = :rdoc
+ @rdoc_files = Rake::FileList.new
+ @rdoc_dir = 'html'
+ @main = nil
+ @title = nil
+ @template = nil
+ @generator = nil
+ @options = []
+ end
+
+ ##
+ # All source is inline now. This method is deprecated
+
+ def inline_source # :nodoc:
+ warn "RDoc::Task#inline_source is deprecated"
+ true
+ end
+
+ ##
+ # All source is inline now. This method is deprecated
+
+ def inline_source=(value) # :nodoc:
+ warn "RDoc::Task#inline_source is deprecated"
+ end
+
+ ##
+ # Create the tasks defined by this task lib.
+
+ def define
+ desc rdoc_task_description
+ task rdoc_task_name
+
+ desc rerdoc_task_description
+ task rerdoc_task_name => [clobber_task_name, rdoc_task_name]
+
+ desc clobber_task_description
+ task clobber_task_name do
+ rm_r @rdoc_dir rescue nil
+ end
+
+ task :clobber => [clobber_task_name]
+
+ directory @rdoc_dir
+
+ rdoc_target_deps = [
+ @rdoc_files,
+ Rake.application.rakefile
+ ].flatten.compact
+
+ task rdoc_task_name => [rdoc_target]
+ file rdoc_target => rdoc_target_deps do
+ @before_running_rdoc.call if @before_running_rdoc
+ args = option_list + @rdoc_files
+
+ $stderr.puts "rdoc #{args.join ' '}" if Rake.application.options.trace
+ require 'rdoc/rdoc'
+ RDoc::RDoc.new.document args
+ end
+
+ self
+ end
+
+ ##
+ # List of options that will be supplied to RDoc
+
+ def option_list
+ result = @options.dup
+ result << "-o" << @rdoc_dir
+ result << "--main" << main if main
+ result << "--title" << title if title
+ result << "-T" << template if template
+ result << '-f' << generator if generator
+ result
+ end
+
+ ##
+ # The block passed to this method will be called just before running the
+ # RDoc generator. It is allowed to modify RDoc::Task attributes inside the
+ # block.
+
+ def before_running_rdoc(&block)
+ @before_running_rdoc = block
+ end
+
+ ##
+ # Task description for the rdoc task or its renamed equivalent
+
+ def rdoc_task_description
+ 'Build RDoc HTML files'
+ end
+
+ ##
+ # Task description for the rerdoc task or its renamed description
+
+ def rerdoc_task_description
+ "Rebuild RDoc HTML files"
+ end
+
+ private
+
+ def rdoc_target
+ "#{rdoc_dir}/index.html"
+ end
+
+ def rdoc_task_name
+ case name
+ when Hash then (name[:rdoc] || "rdoc").to_s
+ else name.to_s
+ end
+ end
+
+ def clobber_task_name
+ case name
+ when Hash then (name[:clobber_rdoc] || "clobber_rdoc").to_s
+ else "clobber_#{name}"
+ end
+ end
+
+ def rerdoc_task_name
+ case name
+ when Hash then (name[:rerdoc] || "rerdoc").to_s
+ else "re#{name}"
+ end
+ end
+
+end
+
+# :stopdoc:
+module Rake
+
+ ##
+ # For backwards compatibility
+
+ RDocTask = RDoc::Task
+
+end
+# :startdoc:
+
diff --git a/lib/rdoc/template.rb b/lib/rdoc/template.rb
deleted file mode 100644
index 53d0e3ce68..0000000000
--- a/lib/rdoc/template.rb
+++ /dev/null
@@ -1,64 +0,0 @@
-require 'erb'
-
-module RDoc; end
-
-##
-# An ERb wrapper that allows nesting of one ERb template inside another.
-#
-# This TemplatePage operates similarly to RDoc 1.x's TemplatePage, but uses
-# ERb instead of a custom template language.
-#
-# Converting from a RDoc 1.x template to an RDoc 2.x template is fairly easy.
-#
-# * %blah% becomes <%= values["blah"] %>
-# * !INCLUDE! becomes <%= template_include %>
-# * HREF:aref:name becomes <%= href values["aref"], values["name"] %>
-# * IF:blah becomes <% if values["blah"] then %>
-# * IFNOT:blah becomes <% unless values["blah"] then %>
-# * ENDIF:blah becomes <% end %>
-# * START:blah becomes <% values["blah"].each do |blah| %>
-# * END:blah becomes <% end %>
-#
-# To make nested loops easier to convert, start by converting START statements
-# to:
-#
-# <% values["blah"].each do |blah| $stderr.puts blah.keys %>
-#
-# So you can see what is being used inside which loop.
-
-class RDoc::TemplatePage
-
- ##
- # Create a new TemplatePage that will use +templates+.
-
- def initialize(*templates)
- @templates = templates
- end
-
- ##
- # Returns "<a href=\"#{ref}\">#{name}</a>"
-
- def href(ref, name)
- if ref then
- "<a href=\"#{ref}\">#{name}</a>"
- else
- name
- end
- end
-
- ##
- # Process the template using +values+, writing the result to +io+.
-
- def write_html_on(io, values)
- b = binding
- template_include = ""
-
- @templates.reverse_each do |template|
- template_include = ERB.new(template).result b
- end
-
- io.write template_include
- end
-
-end
-
diff --git a/lib/rdoc/text.rb b/lib/rdoc/text.rb
new file mode 100644
index 0000000000..3ac55ed560
--- /dev/null
+++ b/lib/rdoc/text.rb
@@ -0,0 +1,302 @@
+# coding: utf-8
+
+##
+# For RDoc::Text#to_html
+
+require 'strscan'
+
+##
+# Methods for manipulating comment text
+
+module RDoc::Text
+
+ ##
+ # Maps an encoding to a Hash of characters properly transcoded for that
+ # encoding.
+ #
+ # See also encode_fallback.
+
+ TO_HTML_CHARACTERS = Hash.new do |h, encoding|
+ h[encoding] = {
+ :close_dquote => encode_fallback('â€', encoding, '"'),
+ :close_squote => encode_fallback('’', encoding, '\''),
+ :copyright => encode_fallback('©', encoding, '(c)'),
+ :ellipsis => encode_fallback('…', encoding, '...'),
+ :em_dash => encode_fallback('—', encoding, '---'),
+ :en_dash => encode_fallback('–', encoding, '--'),
+ :open_dquote => encode_fallback('“', encoding, '"'),
+ :open_squote => encode_fallback('‘', encoding, '\''),
+ :trademark => encode_fallback('®', encoding, '(r)'),
+ }
+ end if Object.const_defined? :Encoding
+
+ ##
+ # Transcodes +character+ to +encoding+ with a +fallback+ character.
+
+ def self.encode_fallback character, encoding, fallback
+ character.encode(encoding, :fallback => { character => fallback },
+ :undef => :replace, :replace => fallback)
+ end
+
+ ##
+ # Expands tab characters in +text+ to eight spaces
+
+ def expand_tabs text
+ expanded = []
+
+ text.each_line do |line|
+ line.gsub!(/^(.{8}*?)([^\t\r\n]{0,7})\t/) do
+ r = "#{$1}#{$2}#{' ' * (8 - $2.size)}"
+ r.force_encoding text.encoding if Object.const_defined? :Encoding
+ r
+ end until line !~ /\t/
+
+ expanded << line
+ end
+
+ expanded.join
+ end
+
+ ##
+ # Flush +text+ left based on the shortest line
+
+ def flush_left text
+ indent = 9999
+
+ text.each_line do |line|
+ line_indent = line =~ /\S/ || 9999
+ indent = line_indent if indent > line_indent
+ end
+
+ empty = ''
+ empty.force_encoding text.encoding if Object.const_defined? :Encoding
+
+ text.gsub(/^ {0,#{indent}}/, empty)
+ end
+
+ ##
+ # Convert a string in markup format into HTML.
+ #
+ # Requires the including class to implement #formatter
+
+ def markup text
+ document = parse text
+
+ document.accept formatter
+ end
+
+ ##
+ # Strips hashes, expands tabs then flushes +text+ to the left
+
+ def normalize_comment text
+ return text if text.empty?
+
+ text = strip_hashes text
+ text = expand_tabs text
+ text = flush_left text
+ text = strip_newlines text
+ text
+ end
+
+ ##
+ # Normalizes +text+ then builds a RDoc::Markup::Document from it
+
+ def parse text
+ return text if RDoc::Markup::Document === text
+
+ text = normalize_comment text
+
+ return RDoc::Markup::Document.new if text =~ /\A\n*\z/
+
+ RDoc::Markup::Parser.parse text
+ rescue RDoc::Markup::Parser::Error => e
+ $stderr.puts <<-EOF
+While parsing markup, RDoc encountered a #{e.class}:
+
+#{e}
+\tfrom #{e.backtrace.join "\n\tfrom "}
+
+---8<---
+#{text}
+---8<---
+
+RDoc #{RDoc::VERSION}
+
+Ruby #{RUBY_VERSION}-p#{RUBY_PATCHLEVEL} #{RUBY_RELEASE_DATE}
+
+Please file a bug report with the above information at:
+
+https://github.com/rdoc/rdoc/issues
+
+ EOF
+ raise
+ end
+
+ ##
+ # Strips leading # characters from +text+
+
+ def strip_hashes text
+ return text if text =~ /^(?>\s*)[^\#]/
+
+ empty = ''
+ empty.force_encoding text.encoding if Object.const_defined? :Encoding
+
+ text.gsub(/^\s*(#+)/) { $1.tr '#', ' ' }.gsub(/^\s+$/, empty)
+ end
+
+ ##
+ # Strips leading and trailing \n characters from +text+
+
+ def strip_newlines text
+ text.gsub(/\A\n*(.*?)\n*\z/m) do $1 end # block preserves String encoding
+ end
+
+ ##
+ # Strips /* */ style comments
+
+ def strip_stars text
+ encoding = text.encoding if Object.const_defined? :Encoding
+
+ text = text.gsub %r%Document-method:\s+[\w:.#=!?]+%, ''
+
+ space = ' '
+ space.force_encoding encoding if encoding
+
+ text.sub! %r%/\*+% do space * $&.length end
+ text.sub! %r%\*+/% do space * $&.length end
+ text.gsub! %r%^[ \t]*\*%m do space * $&.length end
+
+ empty = ''
+ empty.force_encoding encoding if encoding
+ text.gsub(/^\s+$/, empty)
+ end
+
+ ##
+ # Converts ampersand, dashes, ellipsis, quotes, copyright and registered
+ # trademark symbols in +text+ to properly encoded characters.
+
+ def to_html text
+ if Object.const_defined? :Encoding then
+ html = ''.encode text.encoding
+
+ encoded = RDoc::Text::TO_HTML_CHARACTERS[text.encoding]
+ else
+ html = ''
+ encoded = {
+ :close_dquote => 'â€',
+ :close_squote => '’',
+ :copyright => '©',
+ :ellipsis => '…',
+ :em_dash => '—',
+ :en_dash => '–',
+ :open_dquote => '“',
+ :open_squote => '‘',
+ :trademark => '®',
+ }
+ end
+
+ s = StringScanner.new text
+ insquotes = false
+ indquotes = false
+ after_word = nil
+
+ until s.eos? do
+ case
+ when s.scan(/<tt>.*?<\/tt>/) then # skip contents of tt
+ html << s.matched.gsub('\\\\', '\\')
+ when s.scan(/<tt>.*?/) then
+ warn 'mismatched <tt> tag' # TODO signal file/line
+ html << s.matched
+ when s.scan(/<[^>]+\/?s*>/) then # skip HTML tags
+ html << s.matched
+ when s.scan(/\\(\S)/) then # unhandled suppressed crossref
+ html << s[1]
+ after_word = nil
+ when s.scan(/\.\.\.(\.?)/) then
+ html << s[1] << encoded[:ellipsis]
+ after_word = nil
+ when s.scan(/\(c\)/) then
+ html << encoded[:copyright]
+ after_word = nil
+ when s.scan(/\(r\)/) then
+ html << encoded[:trademark]
+ after_word = nil
+ when s.scan(/---/) then
+ html << encoded[:em_dash]
+ after_word = nil
+ when s.scan(/--/) then
+ html << encoded[:en_dash]
+ after_word = nil
+ when s.scan(/&quot;|"/) then
+ html << encoded[indquotes ? :close_dquote : :open_dquote]
+ indquotes = !indquotes
+ after_word = nil
+ when s.scan(/``/) then # backtick double quote
+ html << encoded[:open_dquote]
+ after_word = nil
+ when s.scan(/''/) then # tick double quote
+ html << encoded[:close_dquote]
+ after_word = nil
+ when s.scan(/'/) then # single quote
+ if insquotes
+ html << encoded[:close_squote]
+ insquotes = false
+ elsif after_word
+ # Mary's dog, my parents' house: do not start paired quotes
+ html << encoded[:close_squote]
+ else
+ html << encoded[:open_squote]
+ insquotes = true
+ end
+
+ after_word = nil
+ else # advance to the next potentially significant character
+ match = s.scan(/.+?(?=[<\\.("'`&-])/) #"
+
+ if match then
+ html << match
+ after_word = match =~ /\w$/
+ else
+ html << s.rest
+ break
+ end
+ end
+ end
+
+ html
+ end
+
+ ##
+ # Wraps +txt+ to +line_len+
+
+ def wrap(txt, line_len = 76)
+ res = []
+ sp = 0
+ ep = txt.length
+
+ while sp < ep
+ # scan back for a space
+ p = sp + line_len - 1
+ if p >= ep
+ p = ep
+ else
+ while p > sp and txt[p] != ?\s
+ p -= 1
+ end
+ if p <= sp
+ p = sp + line_len
+ while p < ep and txt[p] != ?\s
+ p += 1
+ end
+ end
+ end
+ res << txt[sp...p] << "\n"
+ sp = p
+ sp += 1 while sp < ep and txt[sp] == ?\s
+ end
+
+ res.join.strip
+ end
+
+end
+
diff --git a/lib/rdoc/tokenstream.rb b/lib/rdoc/token_stream.rb
index 0a1eb9130b..fb887f2fa4 100644
--- a/lib/rdoc/tokenstream.rb
+++ b/lib/rdoc/token_stream.rb
@@ -1,5 +1,3 @@
-module RDoc; end
-
##
# A TokenStream is a list of tokens, gathered during the parse of some entity
# (say a method). Entities populate these streams by being registered with the
@@ -9,25 +7,44 @@ module RDoc; end
module RDoc::TokenStream
- def token_stream
- @token_stream
+ ##
+ # Adds +tokens+ to the collected tokens
+
+ def add_tokens(*tokens)
+ tokens.flatten.each { |token| @token_stream << token }
end
- def start_collecting_tokens
+ alias add_token add_tokens
+
+ ##
+ # Starts collecting tokens
+
+ def collect_tokens
@token_stream = []
end
- def add_token(tk)
- @token_stream << tk
- end
+ alias start_collecting_tokens collect_tokens
- def add_tokens(tks)
- tks.each {|tk| add_token(tk)}
- end
+ ##
+ # Remove the last token from the collected tokens
def pop_token
@token_stream.pop
end
+ ##
+ # Current token stream
+
+ def token_stream
+ @token_stream
+ end
+
+ ##
+ # Returns a string representation of the token stream
+
+ def tokens_to_s
+ token_stream.map { |token| token.text }.join ''
+ end
+
end
diff --git a/lib/rdoc/top_level.rb b/lib/rdoc/top_level.rb
new file mode 100644
index 0000000000..3825a091fe
--- /dev/null
+++ b/lib/rdoc/top_level.rb
@@ -0,0 +1,474 @@
+require 'rdoc/context'
+
+##
+# A TopLevel context is a representation of the contents of a single file
+
+class RDoc::TopLevel < RDoc::Context
+
+ ##
+ # This TopLevel's File::Stat struct
+
+ attr_accessor :file_stat
+
+ ##
+ # Relative name of this file
+
+ attr_accessor :relative_name
+
+ ##
+ # Absolute name of this file
+
+ attr_accessor :absolute_name
+
+ ##
+ # All the classes or modules that were declared in
+ # this file. These are assigned to either +#classes_hash+
+ # or +#modules_hash+ once we know what they really are.
+
+ attr_reader :classes_or_modules
+
+ attr_accessor :diagram # :nodoc:
+
+ ##
+ # The parser that processed this file
+
+ attr_accessor :parser
+
+ ##
+ # Returns all classes discovered by RDoc
+
+ def self.all_classes
+ @all_classes_hash.values
+ end
+
+ ##
+ # Returns all classes and modules discovered by RDoc
+
+ def self.all_classes_and_modules
+ @all_classes_hash.values + @all_modules_hash.values
+ end
+
+ ##
+ # Hash of all classes known to RDoc
+
+ def self.all_classes_hash
+ @all_classes_hash
+ end
+
+ ##
+ # All TopLevels known to RDoc
+
+ def self.all_files
+ @all_files_hash.values
+ end
+
+ ##
+ # Hash of all files known to RDoc
+
+ def self.all_files_hash
+ @all_files_hash
+ end
+
+ ##
+ # Returns all modules discovered by RDoc
+
+ def self.all_modules
+ all_modules_hash.values
+ end
+
+ ##
+ # Hash of all modules known to RDoc
+
+ def self.all_modules_hash
+ @all_modules_hash
+ end
+
+ ##
+ # Prepares the RDoc code object tree for use by a generator.
+ #
+ # It finds unique classes/modules defined, and replaces classes/modules that
+ # are aliases for another one by a copy with RDoc::ClassModule#is_alias_for
+ # set.
+ #
+ # It updates the RDoc::ClassModule#constant_aliases attribute of "real"
+ # classes or modules.
+ #
+ # It also completely removes the classes and modules that should be removed
+ # from the documentation and the methods that have a visibility below
+ # +min_visibility+, which is the <tt>--visibility</tt> option.
+ #
+ # See also RDoc::Context#remove_from_documentation?
+
+ def self.complete min_visibility
+ fix_basic_object_inheritance
+
+ # cache included modules before they are removed from the documentation
+ all_classes_and_modules.each { |cm| cm.ancestors }
+
+ remove_nodoc @all_classes_hash
+ remove_nodoc @all_modules_hash
+
+ @unique_classes = find_unique @all_classes_hash
+ @unique_modules = find_unique @all_modules_hash
+
+ unique_classes_and_modules.each do |cm|
+ cm.complete min_visibility
+ end
+
+ @all_files_hash.each_key do |file_name|
+ tl = @all_files_hash[file_name]
+
+ unless RDoc::Parser::Simple === tl.parser then
+ tl.modules_hash.clear
+ tl.classes_hash.clear
+
+ tl.classes_or_modules.each do |cm|
+ name = cm.full_name
+ if cm.type == 'class' then
+ tl.classes_hash[name] = cm if @all_classes_hash[name]
+ else
+ tl.modules_hash[name] = cm if @all_modules_hash[name]
+ end
+ end
+ end
+ end
+ end
+
+ ##
+ # Finds the class with +name+ in all discovered classes
+
+ def self.find_class_named(name)
+ @all_classes_hash[name]
+ end
+
+ ##
+ # Finds the class with +name+ starting in namespace +from+
+
+ def self.find_class_named_from name, from
+ from = find_class_named from unless RDoc::Context === from
+
+ until RDoc::TopLevel === from do
+ return nil unless from
+
+ klass = from.find_class_named name
+ return klass if klass
+
+ from = from.parent
+ end
+
+ find_class_named name
+ end
+
+ ##
+ # Finds the class or module with +name+
+
+ def self.find_class_or_module(name)
+ name = $' if name =~ /^::/
+ RDoc::TopLevel.classes_hash[name] || RDoc::TopLevel.modules_hash[name]
+ end
+
+ ##
+ # Finds the file with +name+ in all discovered files
+
+ def self.find_file_named(name)
+ @all_files_hash[name]
+ end
+
+ ##
+ # Finds the module with +name+ in all discovered modules
+
+ def self.find_module_named(name)
+ modules_hash[name]
+ end
+
+ ##
+ # Finds unique classes/modules defined in +all_hash+,
+ # and returns them as an array. Performs the alias
+ # updates in +all_hash+: see ::complete.
+ #--
+ # TODO aliases should be registered by Context#add_module_alias
+
+ def self.find_unique(all_hash)
+ unique = []
+
+ all_hash.each_pair do |full_name, cm|
+ unique << cm if full_name == cm.full_name
+ end
+
+ unique
+ end
+
+ ##
+ # Fixes the erroneous <tt>BasicObject < Object</tt> in 1.9.
+ #
+ # Because we assumed all classes without a stated superclass
+ # inherit from Object, we have the above wrong inheritance.
+ #
+ # We fix BasicObject right away if we are running in a Ruby
+ # version >= 1.9. If not, we may be documenting 1.9 source
+ # while running under 1.8: we search the files of BasicObject
+ # for "object.c", and fix the inheritance if we find it.
+
+ def self.fix_basic_object_inheritance
+ basic = all_classes_hash['BasicObject']
+ return unless basic
+ if RUBY_VERSION >= '1.9'
+ basic.superclass = nil
+ elsif basic.in_files.any? { |f| File.basename(f.full_name) == 'object.c' }
+ basic.superclass = nil
+ end
+ end
+
+ ##
+ # Creates a new RDoc::TopLevel with +file_name+ only if one with the same
+ # name does not exist in all_files.
+
+ def self.new file_name
+ if top_level = @all_files_hash[file_name] then
+ top_level
+ else
+ top_level = super
+ @all_files_hash[file_name] = top_level
+ top_level
+ end
+ end
+
+ ##
+ # Removes from +all_hash+ the contexts that are nodoc or have no content.
+ #
+ # See RDoc::Context#remove_from_documentation?
+
+ def self.remove_nodoc(all_hash)
+ all_hash.keys.each do |name|
+ context = all_hash[name]
+ all_hash.delete(name) if context.remove_from_documentation?
+ end
+ end
+
+ ##
+ # Empties RDoc of stored class, module and file information
+
+ def self.reset
+ @all_classes_hash = {}
+ @all_modules_hash = {}
+ @all_files_hash = {}
+ end
+
+ ##
+ # Returns the unique classes discovered by RDoc.
+ #
+ # ::complete must have been called prior to using this method.
+
+ def self.unique_classes
+ @unique_classes
+ end
+
+ ##
+ # Returns the unique classes and modules discovered by RDoc.
+ # ::complete must have been called prior to using this method.
+
+ def self.unique_classes_and_modules
+ @unique_classes + @unique_modules
+ end
+
+ ##
+ # Returns the unique modules discovered by RDoc.
+ # ::complete must have been called prior to using this method.
+
+ def self.unique_modules
+ @unique_modules
+ end
+
+ class << self
+ alias classes all_classes
+ alias classes_hash all_classes_hash
+
+ alias files all_files
+ alias files_hash all_files_hash
+
+ alias modules all_modules
+ alias modules_hash all_modules_hash
+ end
+
+ reset
+
+ ##
+ # Creates a new TopLevel for +file_name+
+
+ def initialize(file_name)
+ super()
+ @name = nil
+ @relative_name = file_name
+ @absolute_name = file_name
+ @file_stat = File.stat(file_name) rescue nil # HACK for testing
+ @diagram = nil
+ @parser = nil
+
+ @classes_or_modules = []
+
+ RDoc::TopLevel.files_hash[file_name] = self
+ end
+
+ ##
+ # An RDoc::TopLevel is equal to another with the same absolute_name
+
+ def == other
+ other.class === self and @absolute_name == other.absolute_name
+ end
+
+ alias eql? ==
+
+ ##
+ # Adds +an_alias+ to +Object+ instead of +self+.
+
+ def add_alias(an_alias)
+ object_class.record_location self
+ return an_alias unless @document_self
+ object_class.add_alias an_alias
+ end
+
+ ##
+ # Adds +constant+ to +Object+ instead of +self+.
+
+ def add_constant(constant)
+ object_class.record_location self
+ return constant unless @document_self
+ object_class.add_constant constant
+ end
+
+ ##
+ # Adds +include+ to +Object+ instead of +self+.
+
+ def add_include(include)
+ object_class.record_location self
+ return include unless @document_self
+ object_class.add_include include
+ end
+
+ ##
+ # Adds +method+ to +Object+ instead of +self+.
+
+ def add_method(method)
+ object_class.record_location self
+ return method unless @document_self
+ object_class.add_method method
+ end
+
+ ##
+ # Adds class or module +mod+. Used in the building phase
+ # by the ruby parser.
+
+ def add_to_classes_or_modules mod
+ @classes_or_modules << mod
+ end
+
+ ##
+ # Base name of this file
+
+ def base_name
+ File.basename @absolute_name
+ end
+
+ alias name base_name
+
+ ##
+ # See RDoc::TopLevel::find_class_or_module
+ #--
+ # TODO Why do we search through all classes/modules found, not just the
+ # ones of this instance?
+
+ def find_class_or_module name
+ RDoc::TopLevel.find_class_or_module name
+ end
+
+ ##
+ # Finds a class or module named +symbol+
+
+ def find_local_symbol(symbol)
+ find_class_or_module(symbol) || super
+ end
+
+ ##
+ # Finds a module or class with +name+
+
+ def find_module_named(name)
+ find_class_or_module(name)
+ end
+
+ ##
+ # Returns the relative name of this file
+
+ def full_name
+ @relative_name
+ end
+
+ ##
+ # An RDoc::TopLevel has the same hash as another with the same
+ # absolute_name
+
+ def hash
+ @absolute_name.hash
+ end
+
+ ##
+ # URL for this with a +prefix+
+
+ def http_url(prefix)
+ path = [prefix, @relative_name.tr('.', '_')]
+
+ File.join(*path.compact) + '.html'
+ end
+
+ def inspect # :nodoc:
+ "#<%s:0x%x %p modules: %p classes: %p>" % [
+ self.class, object_id,
+ base_name,
+ @modules.map { |n,m| m },
+ @classes.map { |n,c| c }
+ ]
+ end
+
+ ##
+ # Time this file was last modified, if known
+
+ def last_modified
+ @file_stat ? file_stat.mtime : nil
+ end
+
+ ##
+ # Returns the NormalClass "Object", creating it if not found.
+ #
+ # Records +self+ as a location in "Object".
+
+ def object_class
+ @object_class ||= begin
+ oc = self.class.find_class_named('Object') || add_class(RDoc::NormalClass, 'Object')
+ oc.record_location self
+ oc
+ end
+ end
+
+ ##
+ # Path to this file
+
+ def path
+ http_url RDoc::RDoc.current.generator.file_dir
+ end
+
+ def pretty_print q # :nodoc:
+ q.group 2, "[#{self.class}: ", "]" do
+ q.text "base name: #{base_name.inspect}"
+ q.breakable
+
+ items = @modules.map { |n,m| m }
+ items.push(*@modules.map { |n,c| c })
+ q.seplist items do |mod| q.pp mod end
+ end
+ end
+
+ def to_s # :nodoc:
+ "file #{full_name}"
+ end
+
+end
+
diff --git a/lib/resolv-replace.rb b/lib/resolv-replace.rb
index 63d58cea27..ff34f90db4 100644
--- a/lib/resolv-replace.rb
+++ b/lib/resolv-replace.rb
@@ -2,7 +2,9 @@ require 'socket'
require 'resolv'
class << IPSocket
+ # :stopdoc:
alias original_resolv_getaddress getaddress
+ # :startdoc:
def getaddress(host)
begin
return Resolv.getaddress(host).to_s
@@ -12,27 +14,35 @@ class << IPSocket
end
end
-class TCPSocket
+class TCPSocket < IPSocket
+ # :stopdoc:
alias original_resolv_initialize initialize
+ # :startdoc:
def initialize(host, serv, *rest)
rest[0] = IPSocket.getaddress(rest[0]) unless rest.empty?
original_resolv_initialize(IPSocket.getaddress(host), serv, *rest)
end
end
-class UDPSocket
+class UDPSocket < IPSocket
+ # :stopdoc:
alias original_resolv_bind bind
+ # :startdoc:
def bind(host, port)
host = IPSocket.getaddress(host) if host != ""
original_resolv_bind(host, port)
end
+ # :stopdoc:
alias original_resolv_connect connect
+ # :startdoc:
def connect(host, port)
original_resolv_connect(IPSocket.getaddress(host), port)
end
+ # :stopdoc:
alias original_resolv_send send
+ # :startdoc:
def send(mesg, flags, *rest)
if rest.length == 2
host, port = rest
@@ -41,7 +51,6 @@ class UDPSocket
rescue Resolv::ResolvError
raise SocketError, "Hostname not known: #{host}"
end
- err = nil
addrs[0...-1].each {|addr|
begin
return original_resolv_send(mesg, flags, addr, port)
@@ -55,8 +64,10 @@ class UDPSocket
end
end
-class SOCKSSocket
+class SOCKSSocket < TCPSocket
+ # :stopdoc:
alias original_resolv_initialize initialize
+ # :startdoc:
def initialize(host, serv)
original_resolv_initialize(IPSocket.getaddress(host), port)
end
diff --git a/lib/resolv.rb b/lib/resolv.rb
index ed8859d3c4..1e1889370a 100644
--- a/lib/resolv.rb
+++ b/lib/resolv.rb
@@ -9,10 +9,10 @@ rescue LoadError
end
# Resolv is a thread-aware DNS resolver library written in Ruby. Resolv can
-# handle multiple DNS requests concurrently without blocking. The ruby
+# handle multiple DNS requests concurrently without blocking the entire ruby
# interpreter.
#
-# See also resolv-replace.rb to replace the libc resolver with # Resolv.
+# See also resolv-replace.rb to replace the libc resolver with Resolv.
#
# Resolv can look up various DNS resources using the DNS module directly.
#
@@ -313,6 +313,16 @@ class Resolv
# nil:: Uses /etc/resolv.conf.
# String:: Path to a file using /etc/resolv.conf's format.
# Hash:: Must contain :nameserver, :search and :ndots keys.
+ # :nameserver_port can be used to specify port number of nameserver address.
+ #
+ # The value of :nameserver should be an address string or
+ # an array of address strings.
+ # - :nameserver => '8.8.8.8'
+ # - :nameserver => ['8.8.8.8', '8.8.4.4']
+ #
+ # The value of :nameserver_port should be an array of
+ # pair of nameserver address and port number.
+ # - :nameserver_port => [['8.8.8.8', 53], ['8.8.4.4', 53]]
#
# Example:
#
@@ -384,7 +394,7 @@ class Resolv
end
end
- def use_ipv6?
+ def use_ipv6? # :nodoc:
begin
list = Socket.ip_address_list
rescue NotImplementedError
@@ -482,21 +492,33 @@ class Resolv
def each_resource(name, typeclass, &proc)
lazy_initialize
- requester = make_requester
+ requester = make_udp_requester
senders = {}
begin
- @config.resolv(name) {|candidate, tout, nameserver|
+ @config.resolv(name) {|candidate, tout, nameserver, port|
msg = Message.new
msg.rd = 1
msg.add_question(candidate, typeclass)
- unless sender = senders[[candidate, nameserver]]
- sender = senders[[candidate, nameserver]] =
- requester.sender(msg, candidate, nameserver)
+ unless sender = senders[[candidate, nameserver, port]]
+ sender = senders[[candidate, nameserver, port]] =
+ requester.sender(msg, candidate, nameserver, port)
end
reply, reply_name = requester.request(sender, tout)
case reply.rcode
when RCode::NoError
- extract_resources(reply, reply_name, typeclass, &proc)
+ if reply.tc == 1 and not Requester::TCP === requester
+ requester.close
+ # Retry via TCP:
+ requester = make_tcp_requester(nameserver, port)
+ senders = {}
+ # This will use TCP for all remaining candidates (assuming the
+ # current candidate does not already respond successfully via
+ # TCP). This makes sense because we already know the full
+ # response will not fit in an untruncated UDP packet.
+ redo
+ else
+ extract_resources(reply, reply_name, typeclass, &proc)
+ end
return
when RCode::NXDomain
raise Config::NXDomain.new(reply_name.to_s)
@@ -509,14 +531,19 @@ class Resolv
end
end
- def make_requester # :nodoc:
- if nameserver = @config.single?
- Requester::ConnectedUDP.new(nameserver)
+ def make_udp_requester # :nodoc:
+ nameserver_port = @config.nameserver_port
+ if nameserver_port.length == 1
+ Requester::ConnectedUDP.new(*nameserver_port[0])
else
- Requester::UnconnectedUDP.new
+ Requester::UnconnectedUDP.new(*nameserver_port)
end
end
+ def make_tcp_requester(host, port) # :nodoc:
+ return Requester::TCP.new(host, port)
+ end
+
def extract_resources(msg, name, typeclass) # :nodoc:
if typeclass < Resource::ANY
n0 = Name.create(name)
@@ -572,8 +599,8 @@ class Resolv
base + random(len)
end
- RequestID = {}
- RequestIDMutex = Mutex.new
+ RequestID = {} # :nodoc:
+ RequestIDMutex = Mutex.new # :nodoc:
def self.allocate_request_id(host, port) # :nodoc:
id = nil
@@ -599,10 +626,10 @@ class Resolv
}
end
- def self.bind_random_port(udpsock) # :nodoc:
+ def self.bind_random_port(udpsock, bind_host="0.0.0.0") # :nodoc:
begin
port = rangerand(1024..65535)
- udpsock.bind("", port)
+ udpsock.bind(bind_host, port)
rescue Errno::EADDRINUSE
retry
end
@@ -611,18 +638,30 @@ class Resolv
class Requester # :nodoc:
def initialize
@senders = {}
- @sock = nil
+ @socks = nil
end
def request(sender, tout)
timelimit = Time.now + tout
sender.send
- while (now = Time.now) < timelimit
+ while true
+ now = Time.now
timeout = timelimit - now
- if !IO.select([@sock], nil, nil, timeout)
+ if timeout <= 0
+ raise ResolvTimeout
+ end
+ select_result = IO.select(@socks, nil, nil, timeout)
+ if !select_result
+ raise ResolvTimeout
+ end
+ begin
+ reply, from = recv_reply(select_result[0])
+ rescue Errno::ECONNREFUSED, # GNU/Linux, FreeBSD
+ Errno::ECONNRESET # Windows
+ # No name server running on the server?
+ # Don't wait anymore.
raise ResolvTimeout
end
- reply, from = recv_reply
begin
msg = Message.decode(reply)
rescue DecodeError
@@ -638,9 +677,11 @@ class Resolv
end
def close
- sock = @sock
- @sock = nil
- sock.close if sock
+ socks = @socks
+ @socks = nil
+ if socks
+ socks.each {|sock| sock.close }
+ end
end
class Sender # :nodoc:
@@ -652,15 +693,31 @@ class Resolv
end
class UnconnectedUDP < Requester # :nodoc:
- def initialize
+ def initialize(*nameserver_port)
super()
- @sock = UDPSocket.new
- @sock.fcntl(Fcntl::F_SETFD, Fcntl::FD_CLOEXEC) if defined? Fcntl::F_SETFD
- DNS.bind_random_port(@sock)
+ @nameserver_port = nameserver_port
+ @socks_hash = {}
+ @socks = []
+ nameserver_port.each {|host, port|
+ if host.index(':')
+ bind_host = "::"
+ af = Socket::AF_INET6
+ else
+ bind_host = "0.0.0.0"
+ af = Socket::AF_INET
+ end
+ next if @socks_hash[bind_host]
+ sock = UDPSocket.new(af)
+ sock.do_not_reverse_lookup = true
+ sock.fcntl(Fcntl::F_SETFD, Fcntl::FD_CLOEXEC) if defined? Fcntl::F_SETFD
+ DNS.bind_random_port(sock, bind_host)
+ @socks << sock
+ @socks_hash[bind_host] = sock
+ }
end
- def recv_reply
- reply, from = @sock.recvfrom(UDPSize)
+ def recv_reply(readable_socks)
+ reply, from = readable_socks[0].recvfrom(UDPSize)
return reply, [from[3],from[1]]
end
@@ -669,8 +726,9 @@ class Resolv
id = DNS.allocate_request_id(host, port)
request = msg.encode
request[0,2] = [id].pack('n')
+ sock = @socks_hash[host.index(':') ? "::" : "0.0.0.0"]
return @senders[[service, id]] =
- Sender.new(request, data, @sock, host, port)
+ Sender.new(request, data, sock, host, port)
end
def close
@@ -699,14 +757,17 @@ class Resolv
super()
@host = host
@port = port
- @sock = UDPSocket.new(host.index(':') ? Socket::AF_INET6 : Socket::AF_INET)
- DNS.bind_random_port(@sock)
- @sock.connect(host, port)
- @sock.fcntl(Fcntl::F_SETFD, Fcntl::FD_CLOEXEC) if defined? Fcntl::F_SETFD
+ is_ipv6 = host.index(':')
+ sock = UDPSocket.new(is_ipv6 ? Socket::AF_INET6 : Socket::AF_INET)
+ @socks = [sock]
+ sock.do_not_reverse_lookup = true
+ sock.fcntl(Fcntl::F_SETFD, Fcntl::FD_CLOEXEC) if defined? Fcntl::F_SETFD
+ DNS.bind_random_port(sock, is_ipv6 ? "::" : "0.0.0.0")
+ sock.connect(host, port)
end
- def recv_reply
- reply = @sock.recv(UDPSize)
+ def recv_reply(readable_socks)
+ reply = readable_socks[0].recv(UDPSize)
return reply, nil
end
@@ -717,7 +778,7 @@ class Resolv
id = DNS.allocate_request_id(@host, @port)
request = msg.encode
request[0,2] = [id].pack('n')
- return @senders[[nil,id]] = Sender.new(request, data, @sock)
+ return @senders[[nil,id]] = Sender.new(request, data, @socks[0])
end
def close
@@ -740,14 +801,15 @@ class Resolv
super()
@host = host
@port = port
- @sock = TCPSocket.new(@host, @port)
- @sock.fcntl(Fcntl::F_SETFD, Fcntl::FD_CLOEXEC) if defined? Fcntl::F_SETFD
+ sock = TCPSocket.new(@host, @port)
+ @socks = [sock]
+ sock.fcntl(Fcntl::F_SETFD, Fcntl::FD_CLOEXEC) if defined? Fcntl::F_SETFD
@senders = {}
end
- def recv_reply
- len = @sock.read(2).unpack('n')[0]
- reply = @sock.read(len)
+ def recv_reply(readable_socks)
+ len = readable_socks[0].read(2).unpack('n')[0]
+ reply = @socks[0].read(len)
return reply, nil
end
@@ -758,7 +820,7 @@ class Resolv
id = DNS.allocate_request_id(@host, @port)
request = msg.encode
request[0,2] = [request.length, id].pack('nn')
- return @senders[[nil,id]] = Sender.new(request, data, @sock)
+ return @senders[[nil,id]] = Sender.new(request, data, @socks[0])
end
class Sender < Requester::Sender # :nodoc:
@@ -837,13 +899,13 @@ class Resolv
config_hash[:search] = [search].flatten if search
end
end
- config_hash
+ config_hash || {}
end
def lazy_initialize
@mutex.synchronize {
unless @initialized
- @nameserver = []
+ @nameserver_port = []
@search = nil
@ndots = 1
case @config_info
@@ -862,11 +924,18 @@ class Resolv
else
raise ArgumentError.new("invalid resolv configuration: #{@config_info.inspect}")
end
- @nameserver = config_hash[:nameserver] if config_hash.include? :nameserver
+ if config_hash.include? :nameserver
+ @nameserver_port = config_hash[:nameserver].map {|ns| [ns, Port] }
+ end
+ if config_hash.include? :nameserver_port
+ @nameserver_port = config_hash[:nameserver_port].map {|ns, port| [ns, (port || Port)] }
+ end
@search = config_hash[:search] if config_hash.include? :search
@ndots = config_hash[:ndots] if config_hash.include? :ndots
- @nameserver = ['0.0.0.0'] if @nameserver.empty?
+ if @nameserver_port.empty?
+ @nameserver_port << ['0.0.0.0', Port]
+ end
if @search
@search = @search.map {|arg| Label.split(arg) }
else
@@ -878,9 +947,14 @@ class Resolv
end
end
- if !@nameserver.kind_of?(Array) ||
- !@nameserver.all? {|ns| String === ns }
- raise ArgumentError.new("invalid nameserver config: #{@nameserver.inspect}")
+ if !@nameserver_port.kind_of?(Array) ||
+ @nameserver_port.any? {|ns_port|
+ !(Array === ns_port) ||
+ ns_port.length != 2
+ !(String === ns_port[0]) ||
+ !(Integer === ns_port[1])
+ }
+ raise ArgumentError.new("invalid nameserver config: #{@nameserver_port.inspect}")
end
if !@search.kind_of?(Array) ||
@@ -900,13 +974,17 @@ class Resolv
def single?
lazy_initialize
- if @nameserver.length == 1
- return @nameserver[0]
+ if @nameserver_port.length == 1
+ return @nameserver_port[0]
else
return nil
end
end
+ def nameserver_port
+ @nameserver_port
+ end
+
def generate_candidates(name)
candidates = nil
name = Name.create(name)
@@ -927,7 +1005,7 @@ class Resolv
def generate_timeouts
ts = [InitialTimeout]
- ts << ts[-1] * 2 / @nameserver.length
+ ts << ts[-1] * 2 / @nameserver_port.length
ts << ts[-1] * 2
ts << ts[-1] * 2
return ts
@@ -940,9 +1018,9 @@ class Resolv
candidates.each {|candidate|
begin
timeouts.each {|tout|
- @nameserver.each {|nameserver|
+ @nameserver_port.each {|nameserver, port|
begin
- yield candidate, tout, nameserver
+ yield candidate, tout, nameserver, port
rescue ResolvTimeout
end
}
@@ -1360,6 +1438,10 @@ class Resolv
yield self
end
+ def inspect
+ "\#<#{self.class}: #{@data[0, @index].inspect} #{@data[@index..-1].inspect}>"
+ end
+
def get_length16
len, = self.get_unpack('n')
save_limit = @limit
@@ -2051,7 +2133,11 @@ class Resolv
##
# Regular expression IPv4 addresses must match.
- Regex = /\A(\d+)\.(\d+)\.(\d+)\.(\d+)\z/
+ Regex256 = /0
+ |1(?:[0-9][0-9]?)?
+ |2(?:[0-4][0-9]?|5[0-5]?|[6-9])?
+ |[3-9][0-9]?/x
+ Regex = /\A(#{Regex256})\.(#{Regex256})\.(#{Regex256})\.(#{Regex256})\z/
def self.create(arg)
case arg
@@ -2072,8 +2158,11 @@ class Resolv
end
def initialize(address) # :nodoc:
- unless address.kind_of?(String) && address.length == 4
- raise ArgumentError.new('IPv4 address must be 4 bytes')
+ unless address.kind_of?(String)
+ raise ArgumentError, 'IPv4 address must be a string'
+ end
+ unless address.length == 4
+ raise ArgumentError, "IPv4 address expects 4 bytes but #{address.length} bytes"
end
@address = address
end
diff --git a/lib/rexml/attribute.rb b/lib/rexml/attribute.rb
index 28a5923608..e99927943f 100644
--- a/lib/rexml/attribute.rb
+++ b/lib/rexml/attribute.rb
@@ -115,7 +115,7 @@ module REXML
def doctype
if @element
doc = @element.document
- doctype = doc.doctype if doc
+ doc.doctype if doc
end
end
diff --git a/lib/rexml/cdata.rb b/lib/rexml/cdata.rb
index e1235d60f8..73358edc28 100644
--- a/lib/rexml/cdata.rb
+++ b/lib/rexml/cdata.rb
@@ -6,7 +6,7 @@ module REXML
STOP = ']]>'
ILLEGAL = /(\]\]>)/
- # Constructor. CData is data between <![CDATA[ ... ]]>
+ # Constructor. CData is data between <![CDATA[ ... ]]>
#
# _Examples_
# CData.new( source )
diff --git a/lib/rexml/child.rb b/lib/rexml/child.rb
index fd59d7283a..bf97d5f903 100644
--- a/lib/rexml/child.rb
+++ b/lib/rexml/child.rb
@@ -7,7 +7,7 @@ module REXML
# class directly.
class Child
include Node
- attr_reader :parent # The Parent of this object
+ attr_reader :parent # The Parent of this object
# Constructor. Any inheritors of this class should call super to make
# sure this method is called.
@@ -88,7 +88,7 @@ module REXML
# This doesn't yet handle encodings
def bytes
- encoding = document.encoding
+ document.encoding
to_s
end
diff --git a/lib/rexml/comment.rb b/lib/rexml/comment.rb
index e401090376..42a040c456 100644
--- a/lib/rexml/comment.rb
+++ b/lib/rexml/comment.rb
@@ -38,15 +38,15 @@ module REXML
# See REXML::Formatters
#
# output::
- # Where to write the string
+ # Where to write the string
# indent::
- # An integer. If -1, no indenting will be used; otherwise, the
- # indentation will be this number of spaces, and children will be
- # indented an additional amount.
+ # An integer. If -1, no indenting will be used; otherwise, the
+ # indentation will be this number of spaces, and children will be
+ # indented an additional amount.
# transitive::
- # Ignored by this class. The contents of comments are never modified.
+ # Ignored by this class. The contents of comments are never modified.
# ie_hack::
- # Needed for conformity to the child API, but not used by this class.
+ # Needed for conformity to the child API, but not used by this class.
def write( output, indent=-1, transitive=false, ie_hack=false )
Kernel.warn("Comment.write is deprecated. See REXML::Formatters")
indent( output, indent )
diff --git a/lib/rexml/doctype.rb b/lib/rexml/doctype.rb
index 1a946a1587..0b3c533bb4 100644
--- a/lib/rexml/doctype.rb
+++ b/lib/rexml/doctype.rb
@@ -115,7 +115,6 @@ module REXML
output << " #{@long_name.inspect}" if @long_name
output << " #{@uri.inspect}" if @uri
unless @children.empty?
- next_indent = indent + 1
output << ' ['
@children.each { |child|
output << "\n"
@@ -249,11 +248,11 @@ module REXML
end
def to_s
- "<!NOTATION #@name #@middle#{
- @public ? ' ' + public.inspect : ''
- }#{
- @system ? ' ' +@system.inspect : ''
- }>"
+ notation = "<!NOTATION #{@name} #{@middle}"
+ notation << " #{@public.inspect}" if @public
+ notation << " #{@system.inspect}" if @system
+ notation << ">"
+ notation
end
def write( output, indent=-1 )
diff --git a/lib/rexml/document.rb b/lib/rexml/document.rb
index 0fde6df1a1..96db53bdb0 100644
--- a/lib/rexml/document.rb
+++ b/lib/rexml/document.rb
@@ -66,25 +66,27 @@ module REXML
# of the document
def add( child )
if child.kind_of? XMLDecl
- @children.unshift child
+ if @children[0].kind_of? XMLDecl
+ @children[0] = child
+ else
+ @children.unshift child
+ end
child.parent = self
elsif child.kind_of? DocType
# Find first Element or DocType node and insert the decl right
# before it. If there is no such node, just insert the child at the
# end. If there is a child and it is an DocType, then replace it.
- insert_before_index = 0
- @children.find { |x|
- insert_before_index += 1
+ insert_before_index = @children.find_index { |x|
x.kind_of?(Element) || x.kind_of?(DocType)
}
- if @children[ insert_before_index ] # Not null = not end of list
- if @children[ insert_before_index ].kind_of DocType
+ if insert_before_index # Not null = not end of list
+ if @children[ insert_before_index ].kind_of? DocType
@children[ insert_before_index ] = child
else
- @children[ index_before_index-1, 0 ] = child
+ @children[ insert_before_index-1, 0 ] = child
end
else # Insert at end of list
- @children[insert_before_index] = child
+ @children << child
end
child.parent = self
else
@@ -129,7 +131,8 @@ module REXML
xml_decl().version
end
- # @return the XMLDecl encoding of this document as a String.
+ # @return the XMLDecl encoding of this document as an
+ # Encoding object.
# If no XMLDecl has been set, returns the default encoding.
def encoding
xml_decl().encoding
@@ -162,7 +165,7 @@ module REXML
# Document.new("<a><b/></a>").serialize( tr )
#
# output::
- # output an object which supports '<< string'; this is where the
+ # output an object which supports '<< string'; this is where the
# document will be written.
# indent::
# An integer. If -1, no indenting will be used; otherwise, the
@@ -181,7 +184,7 @@ module REXML
# that IE's limited abilities can handle. This hack inserts a space
# before the /> on empty tags. Defaults to false
def write( output=$stdout, indent=-1, transitive=false, ie_hack=false )
- if xml_decl.encoding != "UTF-8" && !output.kind_of?(Output)
+ if xml_decl.encoding != 'UTF-8' && !output.kind_of?(Output)
output = Output.new( output, xml_decl.encoding )
end
formatter = if indent > -1
diff --git a/lib/rexml/element.rb b/lib/rexml/element.rb
index 7a3abc65e5..5991859a78 100644
--- a/lib/rexml/element.rb
+++ b/lib/rexml/element.rb
@@ -20,7 +20,7 @@ module REXML
class Element < Parent
include Namespace
- UNDEFINED = "UNDEFINED"; # The default name
+ UNDEFINED = "UNDEFINED"; # The default name
# Mechanisms for accessing attributes and child elements of this
# element.
@@ -31,17 +31,17 @@ module REXML
# Constructor
# arg::
- # if not supplied, will be set to the default value.
- # If a String, the name of this object will be set to the argument.
- # If an Element, the object will be shallowly cloned; name,
- # attributes, and namespaces will be copied. Children will +not+ be
- # copied.
+ # if not supplied, will be set to the default value.
+ # If a String, the name of this object will be set to the argument.
+ # If an Element, the object will be shallowly cloned; name,
+ # attributes, and namespaces will be copied. Children will +not+ be
+ # copied.
# parent::
- # if supplied, must be a Parent, and will be used as
- # the parent of this object.
+ # if supplied, must be a Parent, and will be used as
+ # the parent of this object.
# context::
- # If supplied, must be a hash containing context items. Context items
- # include:
+ # If supplied, must be a hash containing context items. Context items
+ # include:
# * <tt>:respect_whitespace</tt> the value of this is :+all+ or an array of
# strings being the names of the elements to respect
# whitespace for. Defaults to :+all+.
@@ -297,7 +297,7 @@ module REXML
el = @elements.add(element)
attrs.each do |key, value|
el.attributes[key]=value
- end if attrs.kind_of? Hash
+ end if attrs.kind_of? Hash
el
end
@@ -492,7 +492,7 @@ module REXML
def text=( text )
if text.kind_of? String
text = Text.new( text, whitespace(), nil, raw() )
- elsif text and !text.kind_of? Text
+ elsif !text.nil? and !text.kind_of? Text
text = Text.new( text.to_s, whitespace(), nil, raw() )
end
old_text = get_text
@@ -667,7 +667,7 @@ module REXML
#
# Writes out this element, and recursively, all children.
# output::
- # output an object which supports '<< string'; this is where the
+ # output an object which supports '<< string'; this is where the
# document will be written.
# indent::
# An integer. If -1, no indenting will be used; otherwise, the
@@ -778,7 +778,7 @@ module REXML
else
return XPath::first( @element, index )
#{ |element|
- # return element if element.kind_of? Element
+ # return element if element.kind_of? Element
#}
#return nil
end
@@ -874,7 +874,6 @@ module REXML
# a.elements.add(Element.new('b')) #-> <a><b/></a>
# a.elements.add('c') #-> <a><b/><c/></a>
def add element=nil
- rv = nil
if element.nil?
Element.new("", self, @element.context)
elsif not element.kind_of?(Element)
@@ -1087,12 +1086,12 @@ module REXML
# doc.root.attributes['foo'] = '4'
# doc.root.attributes['x:foo'] = nil
def []=( name, value )
- if value.nil? # Delete the named attribute
+ if value.nil? # Delete the named attribute
attr = get_attribute(name)
delete attr
return
end
- element_document = @element.document
+
unless value.kind_of? Attribute
if @element.document and @element.document.doctype
value = Text::normalize( value, @element.document.doctype )
@@ -1117,8 +1116,8 @@ module REXML
value.prefix != "xmlns" and old_attr.prefix != "xmlns" and
@element.namespace( old_attr.prefix ) ==
@element.namespace( value.prefix )
- store value.name, { old_attr.prefix => old_attr,
- value.prefix => value }
+ store value.name, { old_attr.prefix => old_attr,
+ value.prefix => value }
else
store value.name, value
end
@@ -1197,7 +1196,7 @@ module REXML
return @element
else # the supplied attribute is a top-level one
attr = old
- res = super(name)
+ super(name)
end
@element
end
diff --git a/lib/rexml/encoding.rb b/lib/rexml/encoding.rb
index 3feffb80f4..d1d5172841 100644
--- a/lib/rexml/encoding.rb
+++ b/lib/rexml/encoding.rb
@@ -1,71 +1,62 @@
-# -*- mode: ruby; ruby-indent-level: 2; indent-tabs-mode: t; tab-width: 2 -*- vim: sw=2 ts=2
module REXML
module Encoding
- @encoding_methods = {}
- def self.register(enc, &block)
- @encoding_methods[enc] = block
- end
- def self.apply(obj, enc)
- @encoding_methods[enc][obj]
- end
- def self.encoding_method(enc)
- @encoding_methods[enc]
- end
-
- # Native, default format is UTF-8, so it is declared here rather than in
- # an encodings/ definition.
- UTF_8 = 'UTF-8'
- UTF_16 = 'UTF-16'
- UNILE = 'UNILE'
-
# ID ---> Encoding name
attr_reader :encoding
- def encoding=( enc )
- old_verbosity = $VERBOSE
- begin
- $VERBOSE = false
- enc = enc.nil? ? nil : enc.upcase
- return false if defined? @encoding and enc == @encoding
- if enc and enc != UTF_8
- @encoding = enc
- raise ArgumentError, "Bad encoding name #@encoding" unless @encoding =~ /^[\w-]+$/
- @encoding.untaint
- begin
- require 'rexml/encodings/ICONV.rb'
- Encoding.apply(self, "ICONV")
- rescue LoadError, Exception
- begin
- enc_file = File.join( "rexml", "encodings", "#@encoding.rb" )
- require enc_file
- Encoding.apply(self, @encoding)
- rescue LoadError => err
- puts err.message
- raise ArgumentError, "No decoder found for encoding #@encoding. Please install iconv."
- end
- end
- else
- @encoding = UTF_8
- require 'rexml/encodings/UTF-8.rb'
- Encoding.apply(self, @encoding)
+ def encoding=(encoding)
+ encoding = encoding.name if encoding.is_a?(Encoding)
+ if encoding.is_a?(String)
+ original_encoding = encoding
+ encoding = find_encoding(encoding)
+ unless encoding
+ raise ArgumentError, "Bad encoding name #{original_encoding}"
end
- ensure
- $VERBOSE = old_verbosity
+ end
+ return false if defined?(@encoding) and encoding == @encoding
+ if encoding
+ @encoding = encoding.upcase
+ else
+ @encoding = 'UTF-8'
end
true
end
- def check_encoding str
- # We have to recognize UTF-16, LSB UTF-16, and UTF-8
- if str[0,2] == "\xfe\xff"
- str[0,2] = ""
- return UTF_16
- elsif str[0,2] == "\xff\xfe"
- str[0,2] = ""
- return UNILE
+ def check_encoding(xml)
+ # We have to recognize UTF-16BE, UTF-16LE, and UTF-8
+ if xml[0, 2] == "\xfe\xff"
+ xml[0, 2] = ""
+ return 'UTF-16BE'
+ elsif xml[0, 2] == "\xff\xfe"
+ xml[0, 2] = ""
+ return 'UTF-16LE'
+ end
+ xml =~ /^\s*<\?xml\s+version\s*=\s*(['"]).*?\1\s+encoding\s*=\s*(["'])(.*?)\2/m
+ return $3 ? $3.upcase : 'UTF-8'
+ end
+
+ def encode(string)
+ string.encode(@encoding)
+ end
+
+ def decode(string)
+ string.encode(::Encoding::UTF_8, @encoding)
+ end
+
+ private
+ def find_encoding(name)
+ case name
+ when /\Ashift-jis\z/i
+ return "SHIFT_JIS"
+ when /\ACP-(\d+)\z/
+ name = "CP#{$1}"
+ when /\AUTF-8\z/i
+ return name
+ end
+ begin
+ ::Encoding::Converter.search_convpath(name, 'UTF-8')
+ rescue ::Encoding::ConverterNotFoundError
+ return nil
end
- str =~ /^\s*<\?xml\s+version\s*=\s*(['"]).*?\1\s+encoding\s*=\s*(["'])(.*?)\2/m
- return $3.upcase if $3
- return UTF_8
+ name
end
end
end
diff --git a/lib/rexml/encodings/CP-1252.rb b/lib/rexml/encodings/CP-1252.rb
deleted file mode 100644
index 587c5bdd68..0000000000
--- a/lib/rexml/encodings/CP-1252.rb
+++ /dev/null
@@ -1,103 +0,0 @@
-#
-# This class was contributed by Mikko Tiihonen mikko DOT tiihonen AT hut DOT fi
-#
-module REXML
- module Encoding
- register( "CP-1252" ) do |o|
- class << o
- alias encode encode_cp1252
- alias decode decode_cp1252
- end
- end
-
- # Convert from UTF-8
- def encode_cp1252(content)
- array_utf8 = content.unpack('U*')
- array_enc = []
- array_utf8.each do |num|
- case num
- # shortcut first bunch basic characters
- when 0..0xFF; array_enc << num
- # characters added compared to iso-8859-1
- when 0x20AC; array_enc << 0x80 # 0xe2 0x82 0xac
- when 0x201A; array_enc << 0x82 # 0xe2 0x82 0x9a
- when 0x0192; array_enc << 0x83 # 0xc6 0x92
- when 0x201E; array_enc << 0x84 # 0xe2 0x82 0x9e
- when 0x2026; array_enc << 0x85 # 0xe2 0x80 0xa6
- when 0x2020; array_enc << 0x86 # 0xe2 0x80 0xa0
- when 0x2021; array_enc << 0x87 # 0xe2 0x80 0xa1
- when 0x02C6; array_enc << 0x88 # 0xcb 0x86
- when 0x2030; array_enc << 0x89 # 0xe2 0x80 0xb0
- when 0x0160; array_enc << 0x8A # 0xc5 0xa0
- when 0x2039; array_enc << 0x8B # 0xe2 0x80 0xb9
- when 0x0152; array_enc << 0x8C # 0xc5 0x92
- when 0x017D; array_enc << 0x8E # 0xc5 0xbd
- when 0x2018; array_enc << 0x91 # 0xe2 0x80 0x98
- when 0x2019; array_enc << 0x92 # 0xe2 0x80 0x99
- when 0x201C; array_enc << 0x93 # 0xe2 0x80 0x9c
- when 0x201D; array_enc << 0x94 # 0xe2 0x80 0x9d
- when 0x2022; array_enc << 0x95 # 0xe2 0x80 0xa2
- when 0x2013; array_enc << 0x96 # 0xe2 0x80 0x93
- when 0x2014; array_enc << 0x97 # 0xe2 0x80 0x94
- when 0x02DC; array_enc << 0x98 # 0xcb 0x9c
- when 0x2122; array_enc << 0x99 # 0xe2 0x84 0xa2
- when 0x0161; array_enc << 0x9A # 0xc5 0xa1
- when 0x203A; array_enc << 0x9B # 0xe2 0x80 0xba
- when 0x0152; array_enc << 0x9C # 0xc5 0x93
- when 0x017E; array_enc << 0x9E # 0xc5 0xbe
- when 0x0178; array_enc << 0x9F # 0xc5 0xb8
- else
- # all remaining basic characters can be used directly
- if num <= 0xFF
- array_enc << num
- else
- # Numeric entity (&#nnnn;); shard by Stefan Scholl
- array_enc.concat "&\##{num};".unpack('C*')
- end
- end
- end
- array_enc.pack('C*')
- end
-
- # Convert to UTF-8
- def decode_cp1252(str)
- array_latin9 = str.unpack('C*')
- array_enc = []
- array_latin9.each do |num|
- case num
- # characters that added compared to iso-8859-1
- when 0x80; array_enc << 0x20AC # 0xe2 0x82 0xac
- when 0x82; array_enc << 0x201A # 0xe2 0x82 0x9a
- when 0x83; array_enc << 0x0192 # 0xc6 0x92
- when 0x84; array_enc << 0x201E # 0xe2 0x82 0x9e
- when 0x85; array_enc << 0x2026 # 0xe2 0x80 0xa6
- when 0x86; array_enc << 0x2020 # 0xe2 0x80 0xa0
- when 0x87; array_enc << 0x2021 # 0xe2 0x80 0xa1
- when 0x88; array_enc << 0x02C6 # 0xcb 0x86
- when 0x89; array_enc << 0x2030 # 0xe2 0x80 0xb0
- when 0x8A; array_enc << 0x0160 # 0xc5 0xa0
- when 0x8B; array_enc << 0x2039 # 0xe2 0x80 0xb9
- when 0x8C; array_enc << 0x0152 # 0xc5 0x92
- when 0x8E; array_enc << 0x017D # 0xc5 0xbd
- when 0x91; array_enc << 0x2018 # 0xe2 0x80 0x98
- when 0x92; array_enc << 0x2019 # 0xe2 0x80 0x99
- when 0x93; array_enc << 0x201C # 0xe2 0x80 0x9c
- when 0x94; array_enc << 0x201D # 0xe2 0x80 0x9d
- when 0x95; array_enc << 0x2022 # 0xe2 0x80 0xa2
- when 0x96; array_enc << 0x2013 # 0xe2 0x80 0x93
- when 0x97; array_enc << 0x2014 # 0xe2 0x80 0x94
- when 0x98; array_enc << 0x02DC # 0xcb 0x9c
- when 0x99; array_enc << 0x2122 # 0xe2 0x84 0xa2
- when 0x9A; array_enc << 0x0161 # 0xc5 0xa1
- when 0x9B; array_enc << 0x203A # 0xe2 0x80 0xba
- when 0x9C; array_enc << 0x0152 # 0xc5 0x93
- when 0x9E; array_enc << 0x017E # 0xc5 0xbe
- when 0x9F; array_enc << 0x0178 # 0xc5 0xb8
- else
- array_enc << num
- end
- end
- array_enc.pack('U*')
- end
- end
-end
diff --git a/lib/rexml/encodings/EUC-JP.rb b/lib/rexml/encodings/EUC-JP.rb
deleted file mode 100644
index db37b6bf0d..0000000000
--- a/lib/rexml/encodings/EUC-JP.rb
+++ /dev/null
@@ -1,35 +0,0 @@
-module REXML
- module Encoding
- begin
- require 'uconv'
-
- def decode_eucjp(str)
- Uconv::euctou8(str)
- end
-
- def encode_eucjp content
- Uconv::u8toeuc(content)
- end
- rescue LoadError
- require 'nkf'
-
- EUCTOU8 = '-Ewm0'
- U8TOEUC = '-Wem0'
-
- def decode_eucjp(str)
- NKF.nkf(EUCTOU8, str)
- end
-
- def encode_eucjp content
- NKF.nkf(U8TOEUC, content)
- end
- end
-
- register("EUC-JP") do |obj|
- class << obj
- alias decode decode_eucjp
- alias encode encode_eucjp
- end
- end
- end
-end
diff --git a/lib/rexml/encodings/ICONV.rb b/lib/rexml/encodings/ICONV.rb
deleted file mode 100644
index 172fba7cd1..0000000000
--- a/lib/rexml/encodings/ICONV.rb
+++ /dev/null
@@ -1,22 +0,0 @@
-require "iconv"
-raise LoadError unless defined? Iconv
-
-module REXML
- module Encoding
- def decode_iconv(str)
- Iconv.conv(UTF_8, @encoding, str)
- end
-
- def encode_iconv(content)
- Iconv.conv(@encoding, UTF_8, content)
- end
-
- register("ICONV") do |obj|
- Iconv.conv(UTF_8, obj.encoding, nil)
- class << obj
- alias decode decode_iconv
- alias encode encode_iconv
- end
- end
- end
-end
diff --git a/lib/rexml/encodings/ISO-8859-1.rb b/lib/rexml/encodings/ISO-8859-1.rb
deleted file mode 100644
index 2873d13bf0..0000000000
--- a/lib/rexml/encodings/ISO-8859-1.rb
+++ /dev/null
@@ -1,7 +0,0 @@
-require 'rexml/encodings/US-ASCII'
-
-module REXML
- module Encoding
- register("ISO-8859-1", &encoding_method("US-ASCII"))
- end
-end
diff --git a/lib/rexml/encodings/ISO-8859-15.rb b/lib/rexml/encodings/ISO-8859-15.rb
deleted file mode 100644
index 08a19cb755..0000000000
--- a/lib/rexml/encodings/ISO-8859-15.rb
+++ /dev/null
@@ -1,72 +0,0 @@
-#
-# This class was contributed by Mikko Tiihonen mikko DOT tiihonen AT hut DOT fi
-#
-module REXML
- module Encoding
- register("ISO-8859-15") do |o|
- alias encode to_iso_8859_15
- alias decode from_iso_8859_15
- end
-
- # Convert from UTF-8
- def to_iso_8859_15(content)
- array_utf8 = content.unpack('U*')
- array_enc = []
- array_utf8.each do |num|
- case num
- # shortcut first bunch basic characters
- when 0..0xA3; array_enc << num
- # characters removed compared to iso-8859-1
- when 0xA4; array_enc << '&#164;'
- when 0xA6; array_enc << '&#166;'
- when 0xA8; array_enc << '&#168;'
- when 0xB4; array_enc << '&#180;'
- when 0xB8; array_enc << '&#184;'
- when 0xBC; array_enc << '&#188;'
- when 0xBD; array_enc << '&#189;'
- when 0xBE; array_enc << '&#190;'
- # characters added compared to iso-8859-1
- when 0x20AC; array_enc << 0xA4 # 0xe2 0x82 0xac
- when 0x0160; array_enc << 0xA6 # 0xc5 0xa0
- when 0x0161; array_enc << 0xA8 # 0xc5 0xa1
- when 0x017D; array_enc << 0xB4 # 0xc5 0xbd
- when 0x017E; array_enc << 0xB8 # 0xc5 0xbe
- when 0x0152; array_enc << 0xBC # 0xc5 0x92
- when 0x0153; array_enc << 0xBD # 0xc5 0x93
- when 0x0178; array_enc << 0xBE # 0xc5 0xb8
- else
- # all remaining basic characters can be used directly
- if num <= 0xFF
- array_enc << num
- else
- # Numeric entity (&#nnnn;); shard by Stefan Scholl
- array_enc.concat "&\##{num};".unpack('C*')
- end
- end
- end
- array_enc.pack('C*')
- end
-
- # Convert to UTF-8
- def from_iso_8859_15(str)
- array_latin9 = str.unpack('C*')
- array_enc = []
- array_latin9.each do |num|
- case num
- # characters that differ compared to iso-8859-1
- when 0xA4; array_enc << 0x20AC
- when 0xA6; array_enc << 0x0160
- when 0xA8; array_enc << 0x0161
- when 0xB4; array_enc << 0x017D
- when 0xB8; array_enc << 0x017E
- when 0xBC; array_enc << 0x0152
- when 0xBD; array_enc << 0x0153
- when 0xBE; array_enc << 0x0178
- else
- array_enc << num
- end
- end
- array_enc.pack('U*')
- end
- end
-end
diff --git a/lib/rexml/encodings/SHIFT-JIS.rb b/lib/rexml/encodings/SHIFT-JIS.rb
deleted file mode 100644
index 9e0f4af20e..0000000000
--- a/lib/rexml/encodings/SHIFT-JIS.rb
+++ /dev/null
@@ -1,37 +0,0 @@
-module REXML
- module Encoding
- begin
- require 'uconv'
-
- def decode_sjis content
- Uconv::sjistou8(content)
- end
-
- def encode_sjis(str)
- Uconv::u8tosjis(str)
- end
- rescue LoadError
- require 'nkf'
-
- SJISTOU8 = '-Swm0x'
- U8TOSJIS = '-Wsm0x'
-
- def decode_sjis(str)
- NKF.nkf(SJISTOU8, str)
- end
-
- def encode_sjis content
- NKF.nkf(U8TOSJIS, content)
- end
- end
-
- b = proc do |obj|
- class << obj
- alias decode decode_sjis
- alias encode encode_sjis
- end
- end
- register("SHIFT-JIS", &b)
- register("SHIFT_JIS", &b)
- end
-end
diff --git a/lib/rexml/encodings/SHIFT_JIS.rb b/lib/rexml/encodings/SHIFT_JIS.rb
deleted file mode 100644
index e355704a7c..0000000000
--- a/lib/rexml/encodings/SHIFT_JIS.rb
+++ /dev/null
@@ -1 +0,0 @@
-require 'rexml/encodings/SHIFT-JIS'
diff --git a/lib/rexml/encodings/UNILE.rb b/lib/rexml/encodings/UNILE.rb
deleted file mode 100644
index 1a18f0c932..0000000000
--- a/lib/rexml/encodings/UNILE.rb
+++ /dev/null
@@ -1,34 +0,0 @@
-module REXML
- module Encoding
- def encode_unile content
- array_utf8 = content.unpack("U*")
- array_enc = []
- array_utf8.each do |num|
- if ((num>>16) > 0)
- array_enc << ??
- array_enc << 0
- else
- array_enc << (num & 0xFF)
- array_enc << (num >> 8)
- end
- end
- array_enc.pack('C*')
- end
-
- def decode_unile(str)
- array_enc=str.unpack('C*')
- array_utf8 = []
- 0.step(array_enc.size-1, 2){|i|
- array_utf8 << (array_enc.at(i) + array_enc.at(i+1)*0x100)
- }
- array_utf8.pack('U*')
- end
-
- register(UNILE) do |obj|
- class << obj
- alias decode decode_unile
- alias encode encode_unile
- end
- end
- end
-end
diff --git a/lib/rexml/encodings/US-ASCII.rb b/lib/rexml/encodings/US-ASCII.rb
deleted file mode 100644
index fb4c217074..0000000000
--- a/lib/rexml/encodings/US-ASCII.rb
+++ /dev/null
@@ -1,30 +0,0 @@
-module REXML
- module Encoding
- # Convert from UTF-8
- def encode_ascii content
- array_utf8 = content.unpack('U*')
- array_enc = []
- array_utf8.each do |num|
- if num <= 0x7F
- array_enc << num
- else
- # Numeric entity (&#nnnn;); shard by Stefan Scholl
- array_enc.concat "&\##{num};".unpack('C*')
- end
- end
- array_enc.pack('C*')
- end
-
- # Convert to UTF-8
- def decode_ascii(str)
- str.unpack('C*').pack('U*')
- end
-
- register("US-ASCII") do |obj|
- class << obj
- alias decode decode_ascii
- alias encode encode_ascii
- end
- end
- end
-end
diff --git a/lib/rexml/encodings/UTF-16.rb b/lib/rexml/encodings/UTF-16.rb
deleted file mode 100644
index 2ec058eed5..0000000000
--- a/lib/rexml/encodings/UTF-16.rb
+++ /dev/null
@@ -1,35 +0,0 @@
-module REXML
- module Encoding
- def encode_utf16 content
- array_utf8 = content.unpack("U*")
- array_enc = []
- array_utf8.each do |num|
- if ((num>>16) > 0)
- array_enc << 0
- array_enc << ??
- else
- array_enc << (num >> 8)
- array_enc << (num & 0xFF)
- end
- end
- array_enc.pack('C*')
- end
-
- def decode_utf16(str)
- str = str[2..-1] if /^\376\377/n =~ str
- array_enc=str.unpack('C*')
- array_utf8 = []
- 0.step(array_enc.size-1, 2){|i|
- array_utf8 << (array_enc.at(i+1) + array_enc.at(i)*0x100)
- }
- array_utf8.pack('U*')
- end
-
- register(UTF_16) do |obj|
- class << obj
- alias decode decode_utf16
- alias encode encode_utf16
- end
- end
- end
-end
diff --git a/lib/rexml/encodings/UTF-8.rb b/lib/rexml/encodings/UTF-8.rb
deleted file mode 100644
index bb08f44100..0000000000
--- a/lib/rexml/encodings/UTF-8.rb
+++ /dev/null
@@ -1,18 +0,0 @@
-module REXML
- module Encoding
- def encode_utf8 content
- content
- end
-
- def decode_utf8(str)
- str
- end
-
- register(UTF_8) do |obj|
- class << obj
- alias decode decode_utf8
- alias encode encode_utf8
- end
- end
- end
-end
diff --git a/lib/rexml/entity.rb b/lib/rexml/entity.rb
index 5e3edf4eeb..3d81fbc738 100644
--- a/lib/rexml/entity.rb
+++ b/lib/rexml/entity.rb
@@ -25,7 +25,7 @@ module REXML
# Create a new entity. Simple entities can be constructed by passing a
# name, value to the constructor; this creates a generic, plain entity
# reference. For anything more complicated, you have to pass a Source to
- # the constructor with the entity definiton, or use the accessor methods.
+ # the constructor with the entity definition, or use the accessor methods.
# +WARNING+: There is no validation of entity state except when the entity
# is read from a stream. If you start poking around with the accessors,
# you can easily create a non-conformant Entity. The best thing to do is
diff --git a/lib/rexml/formatters/default.rb b/lib/rexml/formatters/default.rb
index 56a1d93783..574c821f96 100644
--- a/lib/rexml/formatters/default.rb
+++ b/lib/rexml/formatters/default.rb
@@ -22,7 +22,7 @@ module REXML
case node
when Document
- if node.xml_decl.encoding != "UTF-8" && !output.kind_of?(Output)
+ if node.xml_decl.encoding != 'UTF-8' && !output.kind_of?(Output)
output = Output.new( output, node.xml_decl.encoding )
end
write_document( node, output )
@@ -63,7 +63,9 @@ module REXML
def write_element( node, output )
output << "<#{node.expanded_name}"
- node.attributes.to_a.sort_by {|attr| attr.name}.each do |attr|
+ node.attributes.to_a.map { |a|
+ Hash === a ? a.values : a
+ }.flatten.sort_by {|attr| attr.name}.each do |attr|
output << " "
attr.write( output )
end unless node.attributes.empty?
diff --git a/lib/rexml/formatters/pretty.rb b/lib/rexml/formatters/pretty.rb
index 17d217d1dc..63f726e8c3 100644
--- a/lib/rexml/formatters/pretty.rb
+++ b/lib/rexml/formatters/pretty.rb
@@ -88,7 +88,7 @@ module REXML
s = node.to_s()
s.gsub!(/\s/,' ')
s.squeeze!(" ")
- s = wrap(s, 80-@level)
+ s = wrap(s, @width - @level)
s = indent_text(s, @level, " ", true)
output << (' '*@level + s)
end
@@ -126,11 +126,13 @@ module REXML
end
def wrap(string, width)
- # Recursively wrap string at width.
- return string if string.length <= width
- place = string.rindex(' ', width) # Position in string with last ' ' before cutoff
- return string if place.nil?
- return string[0,place] + "\n" + wrap(string[place+1..-1], width)
+ parts = []
+ while string.length > width and place = string.rindex(' ', width)
+ parts << string[0...place]
+ string = string[place+1..-1]
+ end
+ parts << string
+ parts.join("\n")
end
end
diff --git a/lib/rexml/formatters/transitive.rb b/lib/rexml/formatters/transitive.rb
index 3a52e03f01..6cc690d922 100644
--- a/lib/rexml/formatters/transitive.rb
+++ b/lib/rexml/formatters/transitive.rb
@@ -37,7 +37,6 @@ module REXML
# If compact and all children are text, and if the formatted output
# is less than the specified width, then try to print everything on
# one line
- skip = false
@level += @indentation
node.children.each { |child|
write( child, output )
diff --git a/lib/rexml/functions.rb b/lib/rexml/functions.rb
index 2d30e5fe92..20c8961aee 100644
--- a/lib/rexml/functions.rb
+++ b/lib/rexml/functions.rb
@@ -28,6 +28,7 @@ module REXML
end
end
+ # Returns the last node of the given list of nodes.
def Functions::last( )
@@context[:size]
end
@@ -36,6 +37,7 @@ module REXML
@@context[:index]
end
+ # Returns the size of the given list of nodes.
def Functions::count( node_set )
node_set.size
end
@@ -129,6 +131,11 @@ module REXML
end
end
+ # A node-set is converted to a string by
+ # returning the concatenation of the string-value
+ # of each of the children of the node in the
+ # node-set that is first in document order.
+ # If the node-set is empty, an empty string is returned.
def Functions::string_value( o )
rv = ""
o.children.each { |e|
@@ -170,7 +177,6 @@ module REXML
# Kouhei fixed this too
def Functions::substring_after( string, test )
ruby_string = string(string)
- test_string = string(test)
return $1 if ruby_string =~ /#{test}(.*)/
""
end
diff --git a/lib/rexml/light/node.rb b/lib/rexml/light/node.rb
index 9c90148c05..0a896c83dc 100644
--- a/lib/rexml/light/node.rb
+++ b/lib/rexml/light/node.rb
@@ -1,14 +1,13 @@
require 'rexml/xmltokens'
-require 'rexml/light/node'
# [ :element, parent, name, attributes, children* ]
# a = Node.new
- # a << "B" # => <a>B</a>
- # a.b # => <a>B<b/></a>
- # a.b[1] # => <a>B<b/><b/><a>
- # a.b[1]["x"] = "y" # => <a>B<b/><b x="y"/></a>
- # a.b[0].c # => <a>B<b><c/></b><b x="y"/></a>
- # a.b.c << "D" # => <a>B<b><c>D</c></b><b x="y"/></a>
+ # a << "B" # => <a>B</a>
+ # a.b # => <a>B<b/></a>
+ # a.b[1] # => <a>B<b/><b/><a>
+ # a.b[1]["x"] = "y" # => <a>B<b/><b x="y"/></a>
+ # a.b[0].c # => <a>B<b><c/></b><b x="y"/></a>
+ # a.b.c << "D" # => <a>B<b><c>D</c></b><b x="y"/></a>
module REXML
module Light
# Represents a tagged XML element. Elements are characterized by
diff --git a/lib/rexml/node.rb b/lib/rexml/node.rb
index 85457f1ad0..cab6e9fddb 100644
--- a/lib/rexml/node.rb
+++ b/lib/rexml/node.rb
@@ -36,12 +36,12 @@ module REXML
end
def indent to, ind
- if @parent and @parent.context and not @parent.context[:indentstyle].nil? then
- indentstyle = @parent.context[:indentstyle]
- else
- indentstyle = ' '
- end
- to << indentstyle*ind unless ind<1
+ if @parent and @parent.context and not @parent.context[:indentstyle].nil? then
+ indentstyle = @parent.context[:indentstyle]
+ else
+ indentstyle = ' '
+ end
+ to << indentstyle*ind unless ind<1
end
def parent?
diff --git a/lib/rexml/output.rb b/lib/rexml/output.rb
index b7f17b9dff..50333ba177 100644
--- a/lib/rexml/output.rb
+++ b/lib/rexml/output.rb
@@ -10,7 +10,7 @@ module REXML
@output = real_IO
self.encoding = encd
- @to_utf = encd == UTF_8 ? false : true
+ @to_utf = encd != 'UTF-8'
end
def <<( content )
diff --git a/lib/rexml/parent.rb b/lib/rexml/parent.rb
index 7ed1761654..0a9f805109 100644
--- a/lib/rexml/parent.rb
+++ b/lib/rexml/parent.rb
@@ -34,6 +34,7 @@ module REXML
found = false
@children.delete_if {|c| c.equal?(object) and found = true }
object.parent = nil if found
+ found ? object : nil
end
def each(&block)
diff --git a/lib/rexml/parseexception.rb b/lib/rexml/parseexception.rb
index 0481f72818..0c4d55abda 100644
--- a/lib/rexml/parseexception.rb
+++ b/lib/rexml/parseexception.rb
@@ -28,7 +28,7 @@ module REXML
err << "\nLine: #{line}\n"
err << "Position: #{position}\n"
err << "Last 80 unconsumed characters:\n"
- err << @source.buffer[0..80].gsub(/\n/, ' ')
+ err << @source.buffer[0..80].force_encoding("ASCII-8BIT").gsub(/\n/, ' ')
end
err
diff --git a/lib/rexml/parsers/baseparser.rb b/lib/rexml/parsers/baseparser.rb
index 2f758265bb..95afd7add5 100644
--- a/lib/rexml/parsers/baseparser.rb
+++ b/lib/rexml/parsers/baseparser.rb
@@ -25,24 +25,17 @@ module REXML
#
# Nat Price gave me some good ideas for the API.
class BaseParser
- if String.method_defined? :encode
- # Oniguruma / POSIX [understands unicode]
- LETTER = '[[:alpha:]]'
- DIGIT = '[[:digit:]]'
- else
- # Ruby < 1.9 [doesn't understand unicode]
- LETTER = 'a-zA-Z'
- DIGIT = '\d'
- end
+ LETTER = '[:alpha:]'
+ DIGIT = '[:digit:]'
COMBININGCHAR = '' # TODO
EXTENDER = '' # TODO
- NCNAME_STR= "[#{LETTER}_:][-#{LETTER}#{DIGIT}._:#{COMBININGCHAR}#{EXTENDER}]*"
+ NCNAME_STR= "[#{LETTER}_:][-[:alnum:]._:#{COMBININGCHAR}#{EXTENDER}]*"
NAME_STR= "(?:(#{NCNAME_STR}):)?(#{NCNAME_STR})"
UNAME_STR= "(?:#{NCNAME_STR}:)?#{NCNAME_STR}"
- NAMECHAR = '[\-\w\d\.:]'
+ NAMECHAR = '[\-\w\.:]'
NAME = "([\\w:]#{NAMECHAR}*)"
NMTOKEN = "(?:#{NAMECHAR})+"
NMTOKENS = "#{NMTOKEN}(\\s+#{NMTOKEN})*"
@@ -66,7 +59,7 @@ module REXML
VERSION = /\bversion\s*=\s*["'](.*?)['"]/um
ENCODING = /\bencoding\s*=\s*["'](.*?)['"]/um
- STANDALONE = /\bstandalone\s*=\s["'](.*?)['"]/um
+ STANDALONE = /\bstandalone\s*=\s*["'](.*?)['"]/um
ENTITY_START = /^\s*<!ENTITY/
IDENTITY = /^([!\*\w\-]+)(\s+#{NCNAME_STR})?(\s+["'](.*?)['"])?(\s+['"](.*?)["'])?/u
@@ -121,22 +114,10 @@ module REXML
def initialize( source )
self.stream = source
+ @listeners = []
end
def add_listener( listener )
- if !defined?(@listeners) or !@listeners
- @listeners = []
- instance_eval <<-EOL
- alias :_old_pull :pull
- def pull
- event = _old_pull
- @listeners.each do |listener|
- listener.receive event
- end
- event
- end
- EOL
- end
@listeners << listener
end
@@ -199,6 +180,14 @@ module REXML
# Returns the next event. This is a +PullEvent+ object.
def pull
+ pull_event.tap do |event|
+ @listeners.each do |listener|
+ listener.receive event
+ end
+ end
+ end
+
+ def pull_event
if @closed
x, @closed = @closed, nil
return [ :end_element, x ]
@@ -256,9 +245,7 @@ module REXML
@source.read if @source.buffer.size<2
md = @source.match(/\s*/um, true)
if @source.encoding == "UTF-8"
- if @source.buffer.respond_to? :force_encoding
- @source.buffer.force_encoding(Encoding::UTF_8)
- end
+ @source.buffer.force_encoding(::Encoding::UTF_8)
end
end
end
@@ -389,7 +376,7 @@ module REXML
attrs.each { |a,b,c,d,e|
if b == "xmlns"
if c == "xml"
- if d != "http://www.w3.org/XML/1998/namespace"
+ if e != "http://www.w3.org/XML/1998/namespace"
msg = "The 'xml' prefix must not be bound to any other namespace "+
"(http://www.w3.org/TR/REC-xml-names/#ns-decl)"
raise REXML::ParseException.new( msg, @source, self )
@@ -449,6 +436,7 @@ module REXML
end
return [ :dummy ]
end
+ private :pull_event
def entity( reference, entities )
value = nil
diff --git a/lib/rexml/parsers/lightparser.rb b/lib/rexml/parsers/lightparser.rb
index ca9692c449..81041681c2 100644
--- a/lib/rexml/parsers/lightparser.rb
+++ b/lib/rexml/parsers/lightparser.rb
@@ -44,10 +44,10 @@ module REXML
end
# An element is an array. The array contains:
- # 0 The parent element
- # 1 The tag name
- # 2 A hash of attributes
- # 3..-1 The child elements
+ # 0 The parent element
+ # 1 The tag name
+ # 2 A hash of attributes
+ # 3..-1 The child elements
# An element is an array of size > 3
# Text is a String
# PIs are [ :processing_instruction, target, data ]
diff --git a/lib/rexml/parsers/sax2parser.rb b/lib/rexml/parsers/sax2parser.rb
index d0f0c5155e..0661af37aa 100644
--- a/lib/rexml/parsers/sax2parser.rb
+++ b/lib/rexml/parsers/sax2parser.rb
@@ -28,15 +28,15 @@ module REXML
# Listen arguments:
#
# Symbol, Array, Block
- # Listen to Symbol events on Array elements
+ # Listen to Symbol events on Array elements
# Symbol, Block
# Listen to Symbol events
# Array, Listener
- # Listen to all events on Array elements
+ # Listen to all events on Array elements
# Array, Block
- # Listen to :start_element events on Array elements
+ # Listen to :start_element events on Array elements
# Listener
- # Listen to All events
+ # Listen to All events
#
# Symbol can be one of: :start_element, :end_element,
# :start_prefix_mapping, :end_prefix_mapping, :characters,
@@ -87,7 +87,7 @@ module REXML
@listeners.each { |sym,match,block|
block.start_document if sym == :start_document or sym.nil?
}
- root = context = []
+ context = []
while true
event = @parser.pull
case event[0]
diff --git a/lib/rexml/parsers/ultralightparser.rb b/lib/rexml/parsers/ultralightparser.rb
index 96c55d837e..7dd8172802 100644
--- a/lib/rexml/parsers/ultralightparser.rb
+++ b/lib/rexml/parsers/ultralightparser.rb
@@ -42,10 +42,10 @@ module REXML
end
# An element is an array. The array contains:
- # 0 The parent element
- # 1 The tag name
- # 2 A hash of attributes
- # 3..-1 The child elements
+ # 0 The parent element
+ # 1 The tag name
+ # 2 A hash of attributes
+ # 3..-1 The child elements
# An element is an array of size > 3
# Text is a String
# PIs are [ :processing_instruction, target, data ]
diff --git a/lib/rexml/parsers/xpathparser.rb b/lib/rexml/parsers/xpathparser.rb
index aafa72ab9e..e643d11511 100644
--- a/lib/rexml/parsers/xpathparser.rb
+++ b/lib/rexml/parsers/xpathparser.rb
@@ -17,8 +17,9 @@ module REXML
end
def parse path
+ path = path.dup
path.gsub!(/([\(\[])\s+/, '\1') # Strip ignorable spaces
- path.gsub!( /\s+([\]\)])/, '\1' )
+ path.gsub!( /\s+([\]\)])/, '\1')
parsed = []
path = OrExpr(path, parsed)
parsed
@@ -282,7 +283,6 @@ module REXML
PI = /^processing-instruction\(/
def NodeTest path, parsed
#puts "NodeTest with #{path}"
- res = nil
case path
when /^\*/
path = $'
@@ -551,7 +551,7 @@ module REXML
end
end
#puts "BEFORE WITH '#{rest}'"
- rest = LocationPath(rest, n) if rest =~ /\A[\/\.\@\[\w_*]/
+ rest = LocationPath(rest, n) if rest =~ /\A[\/\.\@\[\w*]/
parsed.concat(n)
return rest
end
@@ -578,7 +578,6 @@ module REXML
NUMBER = /^(\d*\.?\d+)/
NT = /^comment|text|processing-instruction|node$/
def PrimaryExpr path, parsed
- arry = []
case path
when VARIABLE_REFERENCE
varname = $1
diff --git a/lib/rexml/quickpath.rb b/lib/rexml/quickpath.rb
index 95fc72b7c2..9bec2158dd 100644
--- a/lib/rexml/quickpath.rb
+++ b/lib/rexml/quickpath.rb
@@ -6,6 +6,8 @@ module REXML
include Functions
include XMLTokens
+ # A base Hash object to be used when initializing a
+ # default empty namespaces set.
EMPTY_HASH = {}
def QuickPath::first element, path, namespaces=EMPTY_HASH
@@ -33,7 +35,6 @@ module REXML
results = filter(element.to_a, path)
when /^[\[!\w:]/u
# match on child
- matches = []
children = element.to_a
results = filter(children, path)
else
@@ -48,22 +49,20 @@ module REXML
def QuickPath::filter elements, path
return elements if path.nil? or path == '' or elements.size == 0
case path
- when /^\/\//u # Descendant
+ when /^\/\//u # Descendant
return axe( elements, "descendant-or-self", $' )
- when /^\/?\b(\w[-\w]*)\b::/u # Axe
- axe_name = $1
- rest = $'
+ when /^\/?\b(\w[-\w]*)\b::/u # Axe
return axe( elements, $1, $' )
- when /^\/(?=\b([:!\w][-\.\w]*:)?[-!\*\.\w]*\b([^:(]|$)|\*)/u # Child
+ when /^\/(?=\b([:!\w][-\.\w]*:)?[-!\*\.\w]*\b([^:(]|$)|\*)/u # Child
rest = $'
results = []
elements.each do |element|
results |= filter( element.to_a, rest )
end
return results
- when /^\/?(\w[-\w]*)\(/u # / Function
+ when /^\/?(\w[-\w]*)\(/u # / Function
return function( elements, $1, $' )
- when Namespace::NAMESPLIT # Element name
+ when Namespace::NAMESPLIT # Element name
name = $2
ns = $1
rest = $'
@@ -80,22 +79,22 @@ module REXML
matches |= predicate( element.to_a, path[1..-1] ) if element.kind_of? Element
end
return matches
- when /^\[/u # Predicate
+ when /^\[/u # Predicate
return predicate( elements, path )
- when /^\/?\.\.\./u # Ancestor
+ when /^\/?\.\.\./u # Ancestor
return axe( elements, "ancestor", $' )
- when /^\/?\.\./u # Parent
+ when /^\/?\.\./u # Parent
return filter( elements.collect{|e|e.parent}, $' )
- when /^\/?\./u # Self
+ when /^\/?\./u # Self
return filter( elements, $' )
- when /^\*/u # Any
+ when /^\*/u # Any
results = []
elements.each do |element|
results |= filter( [element], $' ) if element.kind_of? Element
#if element.kind_of? Element
- # children = element.to_a
- # children.delete_if { |child| !child.kind_of?(Element) }
- # results |= filter( children, $' )
+ # children = element.to_a
+ # children.delete_if { |child| !child.kind_of?(Element) }
+ # results |= filter( children, $' )
#end
end
return results
@@ -141,6 +140,7 @@ module REXML
return matches.uniq
end
+ OPERAND_ = '((?=(?:(?!and|or).)*[^\s<>=])[^\s<>=]+)'
# A predicate filters a node-set with respect to an axis to produce a
# new node-set. For each node in the node-set to be filtered, the
# PredicateExpr is evaluated with that node as the context node, with
@@ -170,7 +170,9 @@ module REXML
rest = path[ind+1..-1]
# have to change 'a [=<>] b [=<>] c' into 'a [=<>] b and b [=<>] c'
- predicate.gsub!( /([^\s(and)(or)<>=]+)\s*([<>=])\s*([^\s(and)(or)<>=]+)\s*([<>=])\s*([^\s(and)(or)<>=]+)/u,
+ #
+ predicate.gsub!(
+ /#{OPERAND_}\s*([<>=])\s*#{OPERAND_}\s*([<>=])\s*#{OPERAND_}/u,
'\1 \2 \3 and \3 \4 \5' )
# Let's do some Ruby trickery to avoid some work:
predicate.gsub!( /&/u, "&&" )
diff --git a/lib/rexml/rexml.rb b/lib/rexml/rexml.rb
index ab2f44561b..f89951171a 100644
--- a/lib/rexml/rexml.rb
+++ b/lib/rexml/rexml.rb
@@ -24,7 +24,7 @@ module REXML
COPYRIGHT = "Copyright © 2001-2008 Sean Russell <ser@germane-software.com>"
DATE = "2008/019"
VERSION = "3.1.7.3"
- REVISION = "$Revision$".gsub(/\$Revision:|\$/,'').strip
+ REVISION = %w$Revision$[1] || ''
Copyright = COPYRIGHT
Version = VERSION
diff --git a/lib/rexml/source.rb b/lib/rexml/source.rb
index 3f6d4ffa26..112393cfd4 100644
--- a/lib/rexml/source.rb
+++ b/lib/rexml/source.rb
@@ -54,14 +54,12 @@ module REXML
def encoding=(enc)
return unless super
@line_break = encode( '>' )
- if enc != UTF_8
+ if @encoding != 'UTF-8'
@buffer = decode(@buffer)
@to_utf = true
else
@to_utf = false
- if @buffer.respond_to? :force_encoding
- @buffer.force_encoding Encoding::UTF_8
- end
+ @buffer.force_encoding ::Encoding::UTF_8
end
end
@@ -162,6 +160,15 @@ module REXML
@line_break = ">"
end
super( @source.eof? ? str : str+@source.readline( @line_break ) )
+
+ if !@to_utf and
+ @buffer.respond_to?(:force_encoding) and
+ @source.respond_to?(:external_encoding) and
+ @source.external_encoding != ::Encoding::UTF_8
+ @force_utf8 = true
+ else
+ @force_utf8 = false
+ end
end
def scan(pattern, cons=false)
@@ -174,11 +181,7 @@ module REXML
if rv.size == 0
until @buffer =~ pattern or @source.nil?
begin
- # READLINE OPT
- #str = @source.read(@block_size)
- str = @source.readline(@line_break)
- str = decode(str) if @to_utf and str
- @buffer << str
+ @buffer << readline
rescue Iconv::IllegalSequence
raise
rescue
@@ -193,12 +196,7 @@ module REXML
def read
begin
- str = @source.readline(@line_break)
- str = decode(str) if @to_utf and str
- @buffer << str
- if not @to_utf and @buffer.respond_to? :force_encoding
- @buffer.force_encoding Encoding::UTF_8
- end
+ @buffer << readline
rescue Exception, NameError
@source = nil
end
@@ -213,9 +211,7 @@ module REXML
@buffer = $' if cons and rv
while !rv and @source
begin
- str = @source.readline(@line_break)
- str = decode(str) if @to_utf and str
- @buffer << str
+ @buffer << readline
rv = pattern.match(@buffer)
@buffer = $' if cons and rv
rescue
@@ -254,5 +250,18 @@ module REXML
end
[pos, lineno, line]
end
+
+ private
+ def readline
+ str = @source.readline(@line_break)
+ return nil if str.nil?
+
+ if @to_utf
+ decode(str)
+ else
+ str.force_encoding(::Encoding::UTF_8) if @force_utf8
+ str
+ end
+ end
end
end
diff --git a/lib/rexml/text.rb b/lib/rexml/text.rb
index d09dc3ac54..6623c0c03b 100644
--- a/lib/rexml/text.rb
+++ b/lib/rexml/text.rb
@@ -88,17 +88,16 @@ module REXML
# Text.new( "sean russell", false, nil, true, ["s"] ) #-> "sean russell"
# In the last example, the +entity_filter+ argument is ignored.
#
- # +pattern+ INTERNAL USE ONLY
+ # +illegal+ INTERNAL USE ONLY
def initialize(arg, respect_whitespace=false, parent=nil, raw=nil,
entity_filter=nil, illegal=NEEDS_A_SECOND_CHECK )
@raw = false
+ @parent = nil
if parent
super( parent )
@raw = parent.raw
- else
- @parent = nil
end
@raw = raw unless raw.nil?
@@ -106,7 +105,7 @@ module REXML
@normalized = @unnormalized = nil
if arg.kind_of? String
- @string = arg.clone
+ @string = arg.dup
@string.squeeze!(" \n\t") unless respect_whitespace
elsif arg.kind_of? Text
@string = arg.to_s
@@ -117,7 +116,7 @@ module REXML
@string.gsub!( /\r\n?/, "\n" )
- Text.check(@string, NEEDS_A_SECOND_CHECK, doctype) if @raw and @parent
+ Text.check(@string, illegal, doctype) if @raw
end
def parent= parent
@@ -160,10 +159,11 @@ module REXML
else
raise "Illegal character '#{$1}' in raw string \"#{string}\""
end
- elsif $3 and !SUBSTITUTES.include?($1)
- if !doctype or !doctype.entities.has_key?($3)
- raise "Undeclared entity '#{$1}' in raw string \"#{string}\""
- end
+ # FIXME: below can't work but this needs API change.
+ # elsif @parent and $3 and !SUBSTITUTES.include?($1)
+ # if !doctype or !doctype.entities.has_key?($3)
+ # raise "Undeclared entity '#{$1}' in raw string \"#{string}\""
+ # end
end
end
end
@@ -274,7 +274,7 @@ module REXML
def indent_text(string, level=1, style="\t", indentfirstline=true)
return string if level < 0
new_string = ''
- string.each { |line|
+ string.each_line { |line|
indent_string = style * level
new_line = (indent_string + line).sub(/[\s]+$/,'')
new_string << new_line
diff --git a/lib/rexml/validation/validation.rb b/lib/rexml/validation/validation.rb
index f0ffa78912..8042e5d062 100644
--- a/lib/rexml/validation/validation.rb
+++ b/lib/rexml/validation/validation.rb
@@ -33,7 +33,7 @@ module REXML
sattr = [:start_attribute, nil]
eattr = [:end_attribute]
text = [:text, nil]
- k,v = event[2].find { |key,value|
+ k, = event[2].find { |key,value|
sattr[1] = key
#puts "Looking for #{sattr.inspect}"
m = @current.next( sattr )
diff --git a/lib/rexml/xmltokens.rb b/lib/rexml/xmltokens.rb
index 83efeb0e44..7dc4e8b2ba 100644
--- a/lib/rexml/xmltokens.rb
+++ b/lib/rexml/xmltokens.rb
@@ -2,10 +2,10 @@ module REXML
# Defines a number of tokens used for parsing XML. Not for general
# consumption.
module XMLTokens
- NCNAME_STR= '[\w:][\-\w\d.]*'
+ NCNAME_STR= '[\w:][\-\w.]*'
NAME_STR= "(?:#{NCNAME_STR}:)?#{NCNAME_STR}"
- NAMECHAR = '[\-\w\d\.:]'
+ NAMECHAR = '[\-\w\.:]'
NAME = "([\\w:]#{NAMECHAR}*)"
NMTOKEN = "(?:#{NAMECHAR})+"
NMTOKENS = "#{NMTOKEN}(\\s+#{NMTOKEN})*"
diff --git a/lib/rexml/xpath.rb b/lib/rexml/xpath.rb
index 5f7ecefe29..0f99808def 100644
--- a/lib/rexml/xpath.rb
+++ b/lib/rexml/xpath.rb
@@ -5,16 +5,19 @@ module REXML
# Wrapper class. Use this class to access the XPath functions.
class XPath
include Functions
+ # A base Hash object, supposing to be used when initializing a
+ # default empty namespaces set, but is currently unused.
+ # TODO: either set the namespaces=EMPTY_HASH, or deprecate this.
EMPTY_HASH = {}
# Finds and returns the first node that matches the supplied xpath.
# element::
- # The context element
+ # The context element
# path::
- # The xpath to search for. If not supplied or nil, returns the first
- # node matching '*'.
+ # The xpath to search for. If not supplied or nil, returns the first
+ # node matching '*'.
# namespaces::
- # If supplied, a Hash which defines a namespace mapping.
+ # If supplied, a Hash which defines a namespace mapping.
# variables::
# If supplied, a Hash which maps $variables in the query
# to values. This can be used to avoid XPath injection attacks
@@ -42,7 +45,7 @@ module REXML
# path::
# The xpath to search for. If not supplied or nil, defaults to '*'
# namespaces::
- # If supplied, a Hash which defines a namespace mapping
+ # If supplied, a Hash which defines a namespace mapping
# variables::
# If supplied, a Hash which maps $variables in the query
# to values. This can be used to avoid XPath injection attacks
diff --git a/lib/rexml/xpath_parser.rb b/lib/rexml/xpath_parser.rb
index 11950ecd93..0fc9da2e08 100644
--- a/lib/rexml/xpath_parser.rb
+++ b/lib/rexml/xpath_parser.rb
@@ -5,20 +5,30 @@ require 'rexml/syncenumerator'
require 'rexml/parsers/xpathparser'
class Object
+ # provides a unified +clone+ operation, for REXML::XPathParser
+ # to use across multiple Object types
def dclone
clone
end
end
class Symbol
+ # provides a unified +clone+ operation, for REXML::XPathParser
+ # to use across multiple Object types
def dclone ; self ; end
end
class Fixnum
+ # provides a unified +clone+ operation, for REXML::XPathParser
+ # to use across multiple Object types
def dclone ; self ; end
end
class Float
+ # provides a unified +clone+ operation, for REXML::XPathParser
+ # to use across multiple Object types
def dclone ; self ; end
end
class Array
+ # provides a unified +clone+ operation, for REXML::XPathParser
+ # to use across multiple Object+ types
def dclone
klone = self.clone
klone.clear
@@ -434,7 +444,8 @@ module REXML
when :and
left = expr( path_stack.shift, nodeset.dup, context )
#puts "LEFT => #{left.inspect} (#{left.class.name})"
- if left == false || left.nil? || !left.inject(false) {|a,b| a | b}
+ return [] unless left
+ if left.respond_to?(:inject) and !left.inject(false) {|a,b| a | b}
return []
end
right = expr( path_stack.shift, nodeset.dup, context )
@@ -686,7 +697,7 @@ module REXML
return rv
else
res = []
- enum = SyncEnumerator.new( set1, set2 ).each { |i1, i2|
+ SyncEnumerator.new( set1, set2 ).each { |i1, i2|
#puts "i1 = #{i1.inspect} (#{i1.class.name})"
#puts "i2 = #{i2.inspect} (#{i2.class.name})"
i1 = norm( i1 )
diff --git a/lib/rinda/.document b/lib/rinda/.document
deleted file mode 100644
index 598977af68..0000000000
--- a/lib/rinda/.document
+++ /dev/null
@@ -1,3 +0,0 @@
-rinda.rb
-ring.rb
-tuplespace.rb
diff --git a/lib/rinda/ring.rb b/lib/rinda/ring.rb
index b25fd99856..3ff4606e2a 100644
--- a/lib/rinda/ring.rb
+++ b/lib/rinda/ring.rb
@@ -43,10 +43,10 @@ module Rinda
def write_service
Thread.new do
- loop do
- msg = @soc.recv(1024)
- do_write(msg)
- end
+ loop do
+ msg = @soc.recv(1024)
+ do_write(msg)
+ end
end
end
@@ -56,11 +56,11 @@ module Rinda
def do_write(msg)
Thread.new do
- begin
- tuple, sec = Marshal.load(msg)
- @ts.write(tuple, sec)
- rescue
- end
+ begin
+ tuple, sec = Marshal.load(msg)
+ @ts.write(tuple, sec)
+ rescue
+ end
end
end
@@ -69,9 +69,9 @@ module Rinda
def reply_service
Thread.new do
- loop do
- do_reply
- end
+ loop do
+ do_reply
+ end
end
end
@@ -105,8 +105,8 @@ module Rinda
def self.finger
unless @@finger
- @@finger = self.new
- @@finger.lookup_ring_any
+ @@finger = self.new
+ @@finger.lookup_ring_any
end
@@finger
end
@@ -178,15 +178,15 @@ module Rinda
msg = Marshal.dump([[:lookup_ring, DRbObject.new(block)], timeout])
@broadcast_list.each do |it|
- soc = UDPSocket.open
- begin
- soc.setsockopt(Socket::SOL_SOCKET, Socket::SO_BROADCAST, true)
- soc.send(msg, 0, it, @port)
- rescue
- nil
- ensure
- soc.close
- end
+ soc = UDPSocket.open
+ begin
+ soc.setsockopt(Socket::SOL_SOCKET, Socket::SO_BROADCAST, true)
+ soc.send(msg, 0, it, @port)
+ rescue
+ nil
+ ensure
+ soc.close
+ end
end
sleep(timeout)
end
@@ -198,14 +198,14 @@ module Rinda
def lookup_ring_any(timeout=5)
queue = Queue.new
- th = Thread.new do
- self.lookup_ring(timeout) do |ts|
- queue.push(ts)
- end
- queue.push(nil)
- while it = queue.pop
- @rings.push(it)
- end
+ Thread.new do
+ self.lookup_ring(timeout) do |ts|
+ queue.push(ts)
+ end
+ queue.push(nil)
+ while it = queue.pop
+ @rings.push(it)
+ end
end
@primary = queue.pop
@@ -252,7 +252,7 @@ if __FILE__ == $0
when 's'
require 'rinda/tuplespace'
ts = Rinda::TupleSpace.new
- place = Rinda::RingServer.new(ts)
+ Rinda::RingServer.new(ts)
$stdin.gets
when 'w'
finger = Rinda::RingFinger.new(nil)
diff --git a/lib/rss.rb b/lib/rss.rb
index a1d0f76ba1..fd7364645b 100644
--- a/lib/rss.rb
+++ b/lib/rss.rb
@@ -1,8 +1,80 @@
-# Copyright (c) 2003-2007 Kouhei Sutou. You can redistribute it and/or
-# modify it under the same terms as Ruby.
+##
+# = RSS reading and writing
#
-# Author:: Kouhei Sutou <kou@cozmixng.org>
-# Tutorial:: http://www.cozmixng.org/~rwiki/?cmd=view;name=RSS+Parser%3A%3ATutorial.en
+# Really Simple Syndication (RSS) is a family of formats that describe 'feeds,'
+# specially constructed XML documents that allow an interested person to
+# subscribe and receive updates from a particular web service. This portion of
+# the standard library provides tooling to read and create these feeds.
+#
+# The standard library supports RSS 0.91, 1.0, 2.0, and Atom, a related format.
+# Here are some links to the standards documents for these formats:
+#
+# * RSS
+# * 0.9.1[http://www.rssboard.org/rss-0-9-1-netscape]
+# * 1.0[http://web.resource.org/rss/1.0/]
+# * 2.0[http://www.rssboard.org/rss-specification]
+# * Atom[http://tools.ietf.org/html/rfc4287]
+#
+# == Consuming RSS
+#
+# If you'd like to read someone's RSS feed with your Ruby code, you've come to
+# the right place. It's really easy to do this, but we'll need the help of
+# open-uri:
+#
+# require 'rss'
+# require 'open-uri'
+#
+# url = 'http://www.ruby-lang.org/en/feeds/news.rss'
+# open(url) do |rss|
+# feed = RSS::Parser.parse(rss)
+# puts "Title: #{feed.channel.title}"
+# feed.items.each do |item|
+# puts "Item: #{item.title}"
+# end
+# end
+#
+# As you can see, the workhorse is RSS::Parser#parse, which takes the source of
+# the feed and a parameter that performs validation on the feed. We get back an
+# object that has all of the data from our feed, accessible through methods.
+# This example shows getting the title out of the channel element, and looping
+# through the list of items.
+#
+# == Producing RSS
+#
+# Producing our own RSS feeds is easy as well. Let's make a very basic feed:
+#
+# require "rss"
+#
+# rss = RSS::Maker.make("atom") do |maker|
+# maker.channel.author = "matz"
+# maker.channel.updated = Time.now.to_s
+# maker.channel.about = "http://www.ruby-lang.org/en/feeds/news.rss"
+# maker.channel.title = "Example Feed"
+#
+# maker.items.new_item do |item|
+# item.link = "http://www.ruby-lang.org/en/news/2010/12/25/ruby-1-9-2-p136-is-released/"
+# item.title = "Ruby 1.9.2-p136 is released"
+# item.updated = Time.now.to_s
+# end
+# end
+#
+# puts rss
+#
+# As you can see, this is a very Builder-like DSL. This code will spit out an
+# Atom feed with one item. If we needed a second item, we'd make another block
+# with maker.items.new_item and build a second one.
+#
+# == Copyright
+#
+# Copyright (c) 2003-2007 Kouhei Sutou <kou@cozmixng.org>
+#
+# You can redistribute it and/or modify it under the same terms as Ruby.
+#
+# There is an additional tutorial by the author of RSS at:
+# http://www.cozmixng.org/~rwiki/?cmd=view;name=RSS+Parser%3A%3ATutorial.en
+
+module RSS
+end
require 'rss/1.0'
require 'rss/2.0'
diff --git a/lib/rss/atom.rb b/lib/rss/atom.rb
index ff8ff2249a..f6fea386ba 100644
--- a/lib/rss/atom.rb
+++ b/lib/rss/atom.rb
@@ -2,7 +2,15 @@ require 'rss/parser'
module RSS
module Atom
+
+ ##
+ # The Atom URI W3C Namespace
+
URI = "http://www.w3.org/2005/Atom"
+
+ ##
+ # The XHTML URI W3C Namespace
+
XHTML_URI = "http://www.w3.org/1999/xhtml"
module CommonModel
@@ -527,7 +535,7 @@ module RSS
return false unless inline_other?
return false if inline_other_xml?
- media_type, subtype = mime_split
+ media_type, = mime_split
return true if "text" == media_type.downcase
false
end
diff --git a/lib/rss/maker/0.9.rb b/lib/rss/maker/0.9.rb
index aede4d7c20..c398343ec4 100644
--- a/lib/rss/maker/0.9.rb
+++ b/lib/rss/maker/0.9.rb
@@ -24,7 +24,7 @@ module RSS
class Channel < ChannelBase
def to_feed(rss)
channel = Rss::Channel.new
- set = setup_values(channel)
+ setup_values(channel)
_not_set_required_variables = not_set_required_variables
if _not_set_required_variables.empty?
rss.channel = channel
@@ -257,7 +257,7 @@ module RSS
class Item < ItemBase
def to_feed(rss)
item = Rss::Channel::Item.new
- set = setup_values(item)
+ setup_values(item)
_not_set_required_variables = not_set_required_variables
if _not_set_required_variables.empty?
rss.items << item
diff --git a/lib/rss/maker/1.0.rb b/lib/rss/maker/1.0.rb
index 0d8075f836..1b9f7c3b79 100644
--- a/lib/rss/maker/1.0.rb
+++ b/lib/rss/maker/1.0.rb
@@ -32,7 +32,7 @@ module RSS
_not_set_required_variables = not_set_required_variables
if _not_set_required_variables.empty?
channel = RDF::Channel.new(@about)
- set = setup_values(channel)
+ setup_values(channel)
channel.dc_dates.clear
rss.channel = channel
set_parent(channel, rss)
diff --git a/lib/rss/maker/base.rb b/lib/rss/maker/base.rb
index 6b42f11fcb..fa2b02d101 100644
--- a/lib/rss/maker/base.rb
+++ b/lib/rss/maker/base.rb
@@ -238,7 +238,7 @@ module RSS
setter = "#{var}="
if target.respond_to?(setter)
value = __send__(var)
- if value
+ unless value.nil?
target.__send__(setter, value)
set = true
end
@@ -358,7 +358,7 @@ module RSS
:date => date,
:dc_dates => dc_dates.to_a.dup,
}
- _date = date
+ _date = _parse_date_if_needed(date)
if _date and !dc_dates.any? {|dc_date| dc_date.value == _date}
dc_date = self.class::DublinCoreDates::DublinCoreDate.new(self)
dc_date.value = _date.dup
@@ -370,6 +370,11 @@ module RSS
date = keep[:date]
dc_dates.replace(keep[:dc_dates])
end
+
+ def _parse_date_if_needed(date_value)
+ date_value = Time.parse(date_value) if date_value.is_a?(String)
+ date_value
+ end
end
module SetupDefaultLanguage
@@ -503,12 +508,24 @@ module RSS
end
%w(id about language
- managingEditor webMaster rating docs date
- lastBuildDate ttl).each do |element|
+ managingEditor webMaster rating docs ttl).each do |element|
attr_accessor element
add_need_initialize_variable(element)
end
+ %w(date lastBuildDate).each do |date_element|
+ attr_reader date_element
+ add_need_initialize_variable(date_element)
+ end
+
+ def date=(_date)
+ @date = _parse_date_if_needed(_date)
+ end
+
+ def lastBuildDate=(_date)
+ @lastBuildDate = _parse_date_if_needed(_date)
+ end
+
def pubDate
date
end
@@ -701,13 +718,22 @@ module RSS
["contributor", "name"],
].each do |name, attribute|
def_classed_elements(name, attribute)
- end
+ end
- %w(date comments id published).each do |element|
+ %w(comments id published).each do |element|
attr_accessor element
add_need_initialize_variable(element)
end
+ %w(date).each do |date_element|
+ attr_reader date_element
+ add_need_initialize_variable(date_element)
+ end
+
+ def date=(_date)
+ @date = _parse_date_if_needed(_date)
+ end
+
def pubDate
date
end
@@ -746,6 +772,14 @@ module RSS
attr_accessor element
add_need_initialize_variable(element)
end
+
+ def permanent_link?
+ isPermaLink
+ end
+
+ def permanent_link=(bool)
+ self.isPermaLink = bool
+ end
end
class EnclosureBase < Base
@@ -756,6 +790,8 @@ module RSS
end
class SourceBase < Base
+ include SetupDefaultDate
+
%w(authors categories contributors generator icon
logo rights subtitle title).each do |name|
def_classed_element(name)
@@ -767,7 +803,7 @@ module RSS
def_classed_elements(name, attribute)
end
- %w(id content date).each do |element|
+ %w(id content).each do |element|
attr_accessor element
add_need_initialize_variable(element)
end
@@ -775,6 +811,15 @@ module RSS
alias_method(:url, :link)
alias_method(:url=, :link=)
+ %w(date).each do |date_element|
+ attr_reader date_element
+ add_need_initialize_variable(date_element)
+ end
+
+ def date=(_date)
+ @date = _parse_date_if_needed(_date)
+ end
+
def updated
date
end
diff --git a/lib/rss/maker/dublincore.rb b/lib/rss/maker/dublincore.rb
index 9069c27d06..717b074fae 100644
--- a/lib/rss/maker/dublincore.rb
+++ b/lib/rss/maker/dublincore.rb
@@ -11,10 +11,7 @@ module RSS
plural_name ||= "#{name}s"
full_name = "#{RSS::DC_PREFIX}_#{name}"
full_plural_name = "#{RSS::DC_PREFIX}_#{plural_name}"
- klass_name = Utils.to_class_name(name)
plural_klass_name = "DublinCore#{Utils.to_class_name(plural_name)}"
- full_plural_klass_name = "self.class::#{plural_klass_name}"
- full_klass_name = "#{full_plural_klass_name}::#{klass_name}"
klass.def_classed_elements(full_name, "value", plural_klass_name,
full_plural_name, name)
klass.module_eval(<<-EOC, __FILE__, __LINE__ + 1)
diff --git a/lib/rss/maker/image.rb b/lib/rss/maker/image.rb
index e2b36e0a08..06084b4af4 100644
--- a/lib/rss/maker/image.rb
+++ b/lib/rss/maker/image.rb
@@ -13,7 +13,7 @@ module RSS
end
def self.install_image_item(klass)
- klass.module_eval(<<-EOC, __FILE__, __LINE__ + 1)
+ klass.module_eval(<<-EOC, __FILE__, __LINE__ + 1)
class ImageItem < ImageItemBase
DublinCoreModel.install_dublin_core(self)
end
@@ -57,7 +57,7 @@ EOC
end
def self.install_image_favicon(klass)
- klass.module_eval(<<-EOC, __FILE__, __LINE__ + 1)
+ klass.module_eval(<<-EOC, __FILE__, __LINE__ + 1)
class ImageFavicon < ImageFaviconBase
DublinCoreModel.install_dublin_core(self)
end
diff --git a/lib/rss/parser.rb b/lib/rss/parser.rb
index 1a9e71ea57..c426a187b8 100644
--- a/lib/rss/parser.rb
+++ b/lib/rss/parser.rb
@@ -417,7 +417,7 @@ module RSS
end
end
- NAMESPLIT = /^(?:([\w:][-\w\d.]*):)?([\w:][-\w\d.]*)/
+ NAMESPLIT = /^(?:([\w:][-\w.]*):)?([\w:][-\w.]*)/
def split_name(name)
name =~ NAMESPLIT
[$1 || '', $2]
diff --git a/lib/rss/rss.rb b/lib/rss/rss.rb
index 9fedb10830..3d90d54912 100644
--- a/lib/rss/rss.rb
+++ b/lib/rss/rss.rb
@@ -53,7 +53,7 @@ require "rss/xml-stylesheet"
module RSS
- VERSION = "0.2.6"
+ VERSION = "0.2.7"
URI = "http://purl.org/rss/1.0/"
@@ -70,6 +70,9 @@ module RSS
class InvalidRSSError < Error; end
+ ##
+ # Raised if no matching tag is found.
+
class MissingTagError < InvalidRSSError
attr_reader :tag, :parent
def initialize(tag, parent)
@@ -78,6 +81,9 @@ module RSS
end
end
+ ##
+ # Raised if there are more occurrences of the tag than expected.
+
class TooMuchTagError < InvalidRSSError
attr_reader :tag, :parent
def initialize(tag, parent)
@@ -86,6 +92,9 @@ module RSS
end
end
+ ##
+ # Raised if a required attribute is missing.
+
class MissingAttributeError < InvalidRSSError
attr_reader :tag, :attribute
def initialize(tag, attribute)
@@ -94,6 +103,9 @@ module RSS
end
end
+ ##
+ # Raised when an unknown tag is found.
+
class UnknownTagError < InvalidRSSError
attr_reader :tag, :uri
def initialize(tag, uri)
@@ -102,6 +114,9 @@ module RSS
end
end
+ ##
+ # Raised when an unexpected tag is encountered.
+
class NotExpectedTagError < InvalidRSSError
attr_reader :tag, :uri, :parent
def initialize(tag, uri, parent)
@@ -112,6 +127,9 @@ module RSS
# For backward compatibility :X
NotExceptedTagError = NotExpectedTagError
+ ##
+ # Raised when an incorrect value is used.
+
class NotAvailableValueError < InvalidRSSError
attr_reader :tag, :value, :attribute
def initialize(tag, value, attribute=nil)
@@ -123,6 +141,9 @@ module RSS
end
end
+ ##
+ # Raised when an unknown conversion error occurs.
+
class UnknownConversionMethodError < Error
attr_reader :to, :from
def initialize(to, from)
@@ -134,6 +155,9 @@ module RSS
# for backward compatibility
UnknownConvertMethod = UnknownConversionMethodError
+ ##
+ # Raised when a conversion failure occurs.
+
class ConversionError < Error
attr_reader :string, :to, :from
def initialize(string, to, from)
@@ -144,6 +168,9 @@ module RSS
end
end
+ ##
+ # Raised when a required variable is not set.
+
class NotSetError < Error
attr_reader :name, :variables
def initialize(name, variables)
@@ -153,6 +180,9 @@ module RSS
end
end
+ ##
+ # Raised when a RSS::Maker attempts to use an unknown maker.
+
class UnsupportedMakerVersionError < Error
attr_reader :version
def initialize(version)
@@ -229,7 +259,7 @@ EOC
else
rv << value
end
- rv << "</#{elem_name}>"
+ rv << "</#{elem_name}>"
rv
else
''
@@ -260,7 +290,7 @@ EOC
else
rv << value
end
- rv << "</#{elem_name}>"
+ rv << "</#{elem_name}>"
rv
else
''
@@ -1093,9 +1123,8 @@ EOC
tags = tags.sort_by {|x| element_names.index(x) || tags_size}
end
- _tags = tags.dup if tags
models.each_with_index do |model, i|
- name, model_uri, occurs, getter = model
+ name, _, occurs, = model
if DEBUG
p "before"
diff --git a/lib/rubygems.rb b/lib/rubygems.rb
index 3be98d3c56..7ed27461bb 100644
--- a/lib/rubygems.rb
+++ b/lib/rubygems.rb
@@ -5,85 +5,163 @@
# See LICENSE.txt for permissions.
#++
-require 'rubygems/rubygems_version'
-require 'rubygems/defaults'
-require 'thread'
-
module Gem
- class LoadError < ::LoadError
- attr_accessor :name, :version_requirement
- end
+ QUICKLOADER_SUCKAGE = RUBY_VERSION =~ /^1\.9\.1/
+
+ # Only MRI 1.9.2 has the custom prelude.
+ GEM_PRELUDE_SUCKAGE = RUBY_VERSION =~ /^1\.9\.2/ && RUBY_ENGINE == "ruby"
end
-module Kernel
+if Gem::GEM_PRELUDE_SUCKAGE and defined?(Gem::QuickLoader) then
+ Gem::QuickLoader.remove
- ##
- # Use Kernel#gem to activate a specific version of +gem_name+.
- #
- # +version_requirements+ is a list of version requirements that the
- # specified gem must match, most commonly "= example.version.number". See
- # Gem::Requirement for how to specify a version requirement.
- #
- # If you will be activating the latest version of a gem, there is no need to
- # call Kernel#gem, Kernel#require will do the right thing for you.
- #
- # Kernel#gem returns true if the gem was activated, otherwise false. If the
- # gem could not be found, didn't match the version requirements, or a
- # different version was already activated, an exception will be raised.
- #
- # Kernel#gem should be called *before* any require statements (otherwise
- # RubyGems may load a conflicting library version).
- #
- # In older RubyGems versions, the environment variable GEM_SKIP could be
- # used to skip activation of specified gems, for example to test out changes
- # that haven't been installed yet. Now RubyGems defers to -I and the
- # RUBYLIB environment variable to skip activation of a gem.
- #
- # Example:
- #
- # GEM_SKIP=libA:libB ruby -I../libA -I../libB ./mycode.rb
+ $LOADED_FEATURES.delete Gem::QuickLoader.path_to_full_rubygems_library
- def gem(gem_name, *version_requirements) # :doc:
- skip_list = (ENV['GEM_SKIP'] || "").split(/:/)
- raise Gem::LoadError, "skipping #{gem_name}" if skip_list.include? gem_name
- Gem.activate(gem_name, *version_requirements)
+ if $LOADED_FEATURES.any? do |path| path.end_with? '/rubygems.rb' end then
+ # TODO path does not exist here
+ raise LoadError, "another rubygems is already loaded from #{path}"
end
- private :gem
-
+ class << Gem
+ remove_method :try_activate if Gem.respond_to?(:try_activate, true)
+ end
end
+require 'rubygems/defaults'
+require 'rbconfig'
+require "rubygems/deprecate"
+
##
-# Main module to hold all RubyGem classes/modules.
+# RubyGems is the Ruby standard for publishing and managing third party
+# libraries.
+#
+# For user documentation, see:
+#
+# * <tt>gem help</tt> and <tt>gem help [command]</tt>
+# * {RubyGems User Guide}[http://docs.rubygems.org/read/book/1]
+# * {Frequently Asked Questions}[http://docs.rubygems.org/read/book/3]
+#
+# For gem developer documentation see:
+#
+# * {Creating Gems}[http://docs.rubygems.org/read/chapter/5]
+# * Gem::Specification
+# * Gem::Version for version dependency notes
+#
+# Further RubyGems documentation can be found at:
+#
+# * {RubyGems API}[http://rubygems.rubyforge.org/rdoc] (also available from
+# <tt>gem server</tt>)
+# * {RubyGems Bookshelf}[http://rubygem.org]
+#
+# == RubyGems Plugins
+#
+# As of RubyGems 1.3.2, RubyGems will load plugins installed in gems or
+# $LOAD_PATH. Plugins must be named 'rubygems_plugin' (.rb, .so, etc) and
+# placed at the root of your gem's #require_path. Plugins are discovered via
+# Gem::find_files then loaded. Take care when implementing a plugin as your
+# plugin file may be loaded multiple times if multiple versions of your gem
+# are installed.
+#
+# For an example plugin, see the graph gem which adds a `gem graph` command.
+#
+# == RubyGems Defaults, Packaging
+#
+# RubyGems defaults are stored in rubygems/defaults.rb. If you're packaging
+# RubyGems or implementing Ruby you can change RubyGems' defaults.
+#
+# For RubyGems packagers, provide lib/rubygems/operating_system.rb and
+# override any defaults from lib/rubygems/defaults.rb.
+#
+# For Ruby implementers, provide lib/rubygems/#{RUBY_ENGINE}.rb and override
+# any defaults from lib/rubygems/defaults.rb.
+#
+# If you need RubyGems to perform extra work on install or uninstall, your
+# defaults override file can set pre and post install and uninstall hooks.
+# See Gem::pre_install, Gem::pre_uninstall, Gem::post_install,
+# Gem::post_uninstall.
+#
+# == Bugs
+#
+# You can submit bugs to the
+# {RubyGems bug tracker}[http://rubyforge.org/tracker/?atid=575&group_id=126]
+# on RubyForge
+#
+# == Credits
+#
+# RubyGems is currently maintained by Eric Hodel.
+#
+# RubyGems was originally developed at RubyConf 2003 by:
+#
+# * Rich Kilmer -- rich(at)infoether.com
+# * Chad Fowler -- chad(at)chadfowler.com
+# * David Black -- dblack(at)wobblini.net
+# * Paul Brannan -- paul(at)atdesk.com
+# * Jim Weirch -- jim(at)weirichhouse.org
+#
+# Contributors:
+#
+# * Gavin Sinclair -- gsinclair(at)soyabean.com.au
+# * George Marrows -- george.marrows(at)ntlworld.com
+# * Dick Davies -- rasputnik(at)hellooperator.net
+# * Mauricio Fernandez -- batsman.geo(at)yahoo.com
+# * Simon Strandgaard -- neoneye(at)adslhome.dk
+# * Dave Glasser -- glasser(at)mit.edu
+# * Paul Duncan -- pabs(at)pablotron.org
+# * Ville Aine -- vaine(at)cs.helsinki.fi
+# * Eric Hodel -- drbrain(at)segment7.net
+# * Daniel Berger -- djberg96(at)gmail.com
+# * Phil Hagelberg -- technomancy(at)gmail.com
+# * Ryan Davis -- ryand-ruby(at)zenspider.com
+# * Evan Phoenix -- evan@phx.io
+#
+# (If your name is missing, PLEASE let us know!)
+#
+# Thanks!
+#
+# -The RubyGems Team
module Gem
+ VERSION = '1.8.23'
- ConfigMap = {} unless defined?(ConfigMap)
- require 'rbconfig'
- RbConfig = Config unless defined? ::RbConfig
+ ##
+ # Raised when RubyGems is unable to load or activate a gem. Contains the
+ # name and version requirements of the gem that either conflicts with
+ # already activated gems or that RubyGems is otherwise unable to activate.
- ConfigMap.merge!(
- :BASERUBY => RbConfig::CONFIG["BASERUBY"],
- :EXEEXT => RbConfig::CONFIG["EXEEXT"],
- :RUBY_INSTALL_NAME => RbConfig::CONFIG["RUBY_INSTALL_NAME"],
- :RUBY_SO_NAME => RbConfig::CONFIG["RUBY_SO_NAME"],
- :arch => RbConfig::CONFIG["arch"],
- :bindir => RbConfig::CONFIG["bindir"],
- :datadir => RbConfig::CONFIG["datadir"],
- :libdir => RbConfig::CONFIG["libdir"],
- :ruby_install_name => RbConfig::CONFIG["ruby_install_name"],
- :ruby_version => RbConfig::CONFIG["ruby_version"],
- :sitedir => RbConfig::CONFIG["sitedir"],
- :sitelibdir => RbConfig::CONFIG["sitelibdir"],
- :vendordir => RbConfig::CONFIG["vendordir"] ,
- :vendorlibdir => RbConfig::CONFIG["vendorlibdir"]
- )
+ class LoadError < ::LoadError
+ # Name of gem
+ attr_accessor :name
- DIRECTORIES = %w[cache doc gems specifications] unless defined?(DIRECTORIES)
+ # Version requirement of gem
+ attr_accessor :requirement
+ end
- MUTEX = Mutex.new
+ # :stopdoc:
- RubyGemsPackageVersion = RubyGemsVersion
+ RubyGemsVersion = VERSION
+
+ RbConfigPriorities = %w[
+ EXEEXT RUBY_SO_NAME arch bindir datadir libdir ruby_install_name
+ ruby_version rubylibprefix sitedir sitelibdir vendordir vendorlibdir
+ ]
+
+ unless defined?(ConfigMap)
+ ##
+ # Configuration settings from ::RbConfig
+ ConfigMap = Hash.new do |cm, key|
+ cm[key] = RbConfig::CONFIG[key.to_s]
+ end
+ else
+ RbConfigPriorities.each do |key|
+ ConfigMap[key.to_sym] = RbConfig::CONFIG[key]
+ end
+ end
+
+ RubyGemsPackageVersion = VERSION
+
+ RUBYGEMS_DIR = File.dirname File.expand_path(__FILE__)
+
+ # :startdoc:
##
# An Array of Regexps that match windows ruby platforms.
@@ -104,21 +182,47 @@ module Gem
@loaded_specs = {}
@platforms = []
@ruby = nil
- @sources = []
+ @sources = nil
+ @post_build_hooks ||= []
@post_install_hooks ||= []
@post_uninstall_hooks ||= []
@pre_uninstall_hooks ||= []
@pre_install_hooks ||= []
+ @pre_reset_hooks ||= []
+ @post_reset_hooks ||= []
+
+ ##
+ # Try to activate a gem containing +path+. Returns true if
+ # activation succeeded or wasn't needed because it was already
+ # activated. Returns false if it can't find the path in a gem.
+
+ def self.try_activate path
+ # TODO: deprecate when 1.9.3 comes out.
+ # finds the _latest_ version... regardless of loaded specs and their deps
+
+ # TODO: use find_all and bork if ambiguous
+
+ spec = Gem::Specification.find_by_path path
+ return false unless spec
+
+ begin
+ spec.activate
+ rescue Gem::LoadError # this could fail due to gem dep collisions, go lax
+ Gem::Specification.find_by_name(spec.name).activate
+ end
+
+ return true
+ end
##
- # Activates an installed gem matching +gem+. The gem must satisfy
- # +version_requirements+.
+ # Activates an installed gem matching +dep+. The gem must satisfy
+ # +requirements+.
#
# Returns true if the gem is activated, false if it is already
# loaded, or an exception otherwise.
#
- # Gem#activate adds the library paths in +gem+ to $LOAD_PATH. Before a Gem
+ # Gem#activate adds the library paths in +dep+ to $LOAD_PATH. Before a Gem
# is activated its required Gems are activated. If the version information
# is omitted, the highest version Gem of the supplied name is loaded. If a
# Gem is not found that meets the version requirements or a required Gem is
@@ -127,65 +231,23 @@ module Gem
# More information on version requirements can be found in the
# Gem::Requirement and Gem::Version documentation.
- def self.activate(gem, *version_requirements)
- if version_requirements.empty? then
- version_requirements = Gem::Requirement.default
- end
-
- unless gem.respond_to?(:name) and
- gem.respond_to?(:version_requirements) then
- gem = Gem::Dependency.new(gem, version_requirements)
- end
-
- matches = Gem.source_index.find_name(gem.name, gem.version_requirements)
- report_activate_error(gem) if matches.empty?
+ def self.activate(dep, *requirements)
+ raise ArgumentError, "Deprecated use of Gem.activate(dep)" if
+ Gem::Dependency === dep
- if @loaded_specs[gem.name] then
- # This gem is already loaded. If the currently loaded gem is not in the
- # list of candidate gems, then we have a version conflict.
- existing_spec = @loaded_specs[gem.name]
-
- unless matches.any? { |spec| spec.version == existing_spec.version } then
- raise Gem::Exception,
- "can't activate #{gem}, already activated #{existing_spec.full_name}"
- end
-
- return false
- end
-
- # new load
- spec = matches.last
- return false if spec.loaded?
-
- spec.loaded = true
- @loaded_specs[spec.name] = spec
-
- # Load dependent gems first
- spec.runtime_dependencies.each do |dep_gem|
- activate dep_gem
- end
-
- # bin directory must come before library directories
- spec.require_paths.unshift spec.bindir if spec.bindir
-
- require_paths = spec.require_paths.map do |path|
- File.join spec.full_gem_path, path
- end
-
- sitelibdir = ConfigMap[:sitelibdir]
+ Gem::Specification.find_by_name(dep, *requirements).activate
+ end
- # gem directories must come after -I and ENV['RUBYLIB']
- insert_index = load_path_insert_index
+ def self.activate_dep dep, *requirements # :nodoc:
+ dep.to_spec.activate
+ end
- if insert_index then
- # gem directories must come after -I and ENV['RUBYLIB']
- $LOAD_PATH.insert(insert_index, *require_paths)
- else
- # we are probably testing in core, -I and RUBYLIB don't apply
- $LOAD_PATH.unshift(*require_paths)
- end
+ def self.activate_spec spec # :nodoc:
+ spec.activate
+ end
- return true
+ def self.unresolved_deps
+ @unresolved_deps ||= Hash.new { |h, n| h[n] = Gem::Dependency.new n }
end
##
@@ -208,7 +270,7 @@ module Gem
# Return all the partial paths in +gemdir+.
def self.all_partials(gemdir)
- Dir[File.join(gemdir, 'gems/*')]
+ Dir[File.join(gemdir, "gems/*")]
end
private_class_method :all_partials
@@ -216,30 +278,62 @@ module Gem
##
# See if a given gem is available.
- def self.available?(gem, *requirements)
+ def self.available?(dep, *requirements)
requirements = Gem::Requirement.default if requirements.empty?
- unless gem.respond_to?(:name) and
- gem.respond_to?(:version_requirements) then
- gem = Gem::Dependency.new gem, requirements
+ unless dep.respond_to?(:name) and dep.respond_to?(:requirement) then
+ dep = Gem::Dependency.new dep, requirements
+ end
+
+ not dep.matching_specs(true).empty?
+ end
+
+ ##
+ # Find the full path to the executable for gem +name+. If the +exec_name+
+ # is not given, the gem's default_executable is chosen, otherwise the
+ # specified executable's path is returned. +requirements+ allows
+ # you to specify specific gem versions.
+
+ def self.bin_path(name, exec_name = nil, *requirements)
+ # TODO: fails test_self_bin_path_bin_file_gone_in_latest
+ # Gem::Specification.find_by_name(name, *requirements).bin_file exec_name
+
+ raise ArgumentError, "you must supply exec_name" unless exec_name
+
+ requirements = Gem::Requirement.default if
+ requirements.empty?
+
+ specs = Gem::Dependency.new(name, requirements).matching_specs(true)
+
+ raise Gem::GemNotFoundException,
+ "can't find gem #{name} (#{requirements})" if specs.empty?
+
+ specs = specs.find_all { |spec|
+ spec.executables.include? exec_name
+ } if exec_name
+
+ unless spec = specs.last
+ msg = "can't find gem #{name} (#{requirements}) with executable #{exec_name}"
+ raise Gem::GemNotFoundException, msg
end
- !Gem.source_index.search(gem).empty?
+ spec.bin_file exec_name
end
##
# The mode needed to read a file as straight binary.
def self.binary_mode
- @binary_mode ||= RUBY_VERSION > '1.9' ? 'rb:ascii-8bit' : 'rb'
+ 'rb'
end
##
# The path where gem executables are to be installed.
def self.bindir(install_dir=Gem.dir)
- return File.join(install_dir, 'bin') unless
- install_dir.to_s == Gem.default_dir
+ # TODO: move to Gem::Dirs
+ return File.join install_dir, 'bin' unless
+ install_dir.to_s == Gem.default_dir.to_s
Gem.default_bindir
end
@@ -249,22 +343,18 @@ module Gem
# mainly used by the unit tests to provide test isolation.
def self.clear_paths
- @gem_home = nil
- @gem_path = nil
- @user_home = nil
-
@@source_index = nil
-
- MUTEX.synchronize do
- @searcher = nil
- end
+ @paths = nil
+ @user_home = nil
+ @searcher = nil
+ Gem::Specification.reset
end
##
# The path to standard location of the user's .gemrc file.
def self.config_file
- File.join Gem.user_home, '.gemrc'
+ @config_file ||= File.join Gem.user_home, '.gemrc'
end
##
@@ -287,9 +377,10 @@ module Gem
# package is not available as a gem, return nil.
def self.datadir(gem_name)
+# TODO: deprecate
spec = @loaded_specs[gem_name]
return nil if spec.nil?
- File.join(spec.full_gem_path, 'data', gem_name)
+ File.join spec.full_gem_path, "data", gem_name
end
##
@@ -300,13 +391,29 @@ module Gem
Zlib::Deflate.deflate data
end
+ def self.paths
+ @paths ||= Gem::PathSupport.new
+ end
+
+ def self.paths=(env)
+ clear_paths
+ @paths = Gem::PathSupport.new env
+ Gem::Specification.dirs = @paths.path # FIX: home is at end
+ end
+
##
# The path where gems are to be installed.
+ #--
+ # FIXME deprecate these once everything else has been done -ebh
def self.dir
- @gem_home ||= nil
- set_home(ENV['GEM_HOME'] || Gem.configuration.home || default_dir) unless @gem_home
- @gem_home
+ # TODO: raise "no"
+ paths.home
+ end
+
+ def self.path
+ # TODO: raise "no"
+ paths.path
end
##
@@ -315,50 +422,73 @@ module Gem
def self.each_load_path(partials)
partials.each do |gp|
- base = File.basename(gp)
- specfn = File.join(dir, "specifications", base + ".gemspec")
- if File.exist?(specfn)
+ base = File.basename gp
+ specfn = File.join(dir, "specifications", "#{base}.gemspec")
+ if File.exists? specfn
spec = eval(File.read(specfn))
spec.require_paths.each do |rp|
- yield(File.join(gp, rp))
+ yield File.join(gp,rp)
end
else
filename = File.join(gp, 'lib')
- yield(filename) if File.exist?(filename)
+ yield(filename) if File.exists? filename
end
end
end
private_class_method :each_load_path
+
##
# Quietly ensure the named Gem directory contains all the proper
# subdirectories. If we can't create a directory due to a permission
# problem, then we will silently continue.
- def self.ensure_gem_subdirectories(gemdir)
+ def self.ensure_gem_subdirectories dir = Gem.dir
+ old_umask = File.umask
+ File.umask old_umask | 002
+
require 'fileutils'
- Gem::DIRECTORIES.each do |filename|
- fn = File.join gemdir, filename
- FileUtils.mkdir_p fn rescue nil unless File.exist? fn
+ %w[cache doc gems specifications].each do |name|
+ subdir = File.join dir, name
+ next if File.exist? subdir
+ FileUtils.mkdir_p subdir rescue nil # in case of perms issues -- lame
end
+ ensure
+ File.umask old_umask
end
##
- # Returns a list of paths matching +file+ that can be used by a gem to pick
+ # Returns a list of paths matching +glob+ that can be used by a gem to pick
# up features from other gems. For example:
#
# Gem.find_files('rdoc/discover').each do |path| load path end
#
- # find_files does not search $LOAD_PATH for files, only gems.
+ # if +check_load_path+ is true (the default), then find_files also searches
+ # $LOAD_PATH for files as well as gems.
+ #
+ # Note that find_files will return all files even if they are from different
+ # versions of the same gem.
+
+ def self.find_files(glob, check_load_path=true)
+ files = []
+
+ if check_load_path
+ files = $LOAD_PATH.map { |load_path|
+ Dir["#{File.expand_path glob, load_path}#{Gem.suffix_pattern}"]
+ }.flatten.select { |file| File.file? file.untaint }
+ end
- def self.find_files(path)
- specs = searcher.find_all path
+ files.concat Gem::Specification.map { |spec|
+ spec.matches_for_glob("#{glob}#{Gem.suffix_pattern}")
+ }.flatten
- specs.map do |spec|
- searcher.matching_files spec, path
- end.flatten
+ # $LOAD_PATH might contain duplicate entries or reference
+ # the spec dirs directly, so we prune.
+ files.uniq! if check_load_path
+
+ return files
end
##
@@ -371,14 +501,31 @@ module Gem
# to be depending on HOME in those code samples. I propose that
# it should fallback to USERPROFILE and HOMEDRIVE + HOMEPATH (at
# least on Win32).
+ #++
+ #--
+ #
+ # FIXME move to pathsupport
+ #
+ #++
def self.find_home
- File.expand_path("~")
+ windows = File::ALT_SEPARATOR
+ if not windows or RUBY_VERSION >= '1.9' then
+ File.expand_path "~"
+ else
+ ['HOME', 'USERPROFILE'].each do |key|
+ return File.expand_path ENV[key] if ENV[key]
+ end
+
+ if ENV['HOMEDRIVE'] && ENV['HOMEPATH'] then
+ File.expand_path "#{ENV['HOMEDRIVE']}#{ENV['HOMEPATH']}"
+ end
+ end
rescue
- if File::ALT_SEPARATOR then
- "C:/"
+ if windows then
+ File.expand_path File.join(ENV['HOMEDRIVE'] || ENV['SystemDrive'], '/')
else
- "/"
+ File.expand_path "/"
end
end
@@ -388,6 +535,7 @@ module Gem
# Zlib::GzipReader wrapper that unzips +data+.
def self.gunzip(data)
+ # TODO: move to utils
require 'stringio'
require 'zlib'
data = StringIO.new data
@@ -399,6 +547,7 @@ module Gem
# Zlib::GzipWriter wrapper that zips +data+.
def self.gzip(data)
+ # TODO: move to utils
require 'stringio'
require 'zlib'
zipped = StringIO.new
@@ -412,11 +561,28 @@ module Gem
# A Zlib::Inflate#inflate wrapper
def self.inflate(data)
+ # TODO: move to utils
require 'zlib'
Zlib::Inflate.inflate data
end
##
+ # Get the default RubyGems API host. This is normally
+ # <tt>https://rubygems.org</tt>.
+
+ def self.host
+ # TODO: move to utils
+ @host ||= "https://rubygems.org"
+ end
+
+ ## Set the default RubyGems API host.
+
+ def self.host= host
+ # TODO: move to utils
+ @host = host
+ end
+
+ ##
# Return a list of all possible load paths for the latest version for all
# gems in the Gem installation.
@@ -438,8 +604,9 @@ module Gem
def self.latest_partials(gemdir)
latest = {}
all_partials(gemdir).each do |gp|
- base = File.basename(gp)
- if base =~ /(.*)-((\d+\.)*\d+)/ then
+ base = File.basename gp
+
+ if base.to_s =~ /(.*)-((\d+\.)*\d+)/ then
name, version = $1, $2
ver = Gem::Version.new(version)
if latest[name].nil? || ver > latest[name][0]
@@ -462,35 +629,79 @@ module Gem
def self.load_path_insert_index
index = $LOAD_PATH.index ConfigMap[:sitelibdir]
- $LOAD_PATH.each_with_index do |path, i|
- if path.instance_variables.include?(:@gem_prelude_index) or
- path.instance_variables.include?('@gem_prelude_index') then
- index = i
- break
+ if QUICKLOADER_SUCKAGE then
+ $LOAD_PATH.each_with_index do |path, i|
+ if path.instance_variables.include?(:@gem_prelude_index) or
+ path.instance_variables.include?('@gem_prelude_index') then
+ index = i
+ break
+ end
end
end
index
end
+ @yaml_loaded = false
+
##
- # The file name and line number of the caller of the caller of this method.
+ # Loads YAML, preferring Psych
- def self.location_of_caller
- caller[1] =~ /(.*?):(\d+)$/i
- file = $1
- lineno = $2.to_i
+ def self.load_yaml
+ return if @yaml_loaded
- [file, lineno]
+ test_syck = ENV['TEST_SYCK']
+
+ unless test_syck
+ begin
+ gem 'psych', '~> 1.2', '>= 1.2.1'
+ rescue Gem::LoadError
+ # It's OK if the user does not have the psych gem installed. We will
+ # attempt to require the stdlib version
+ end
+
+ begin
+ # Try requiring the gem version *or* stdlib version of psych.
+ require 'psych'
+ rescue ::LoadError
+ # If we can't load psych, thats fine, go on.
+ else
+ # If 'yaml' has already been required, then we have to
+ # be sure to switch it over to the newly loaded psych.
+ if defined?(YAML::ENGINE) && YAML::ENGINE.yamler != "psych"
+ YAML::ENGINE.yamler = "psych"
+ end
+
+ require 'rubygems/psych_additions'
+ require 'rubygems/psych_tree'
+ end
+ end
+
+ require 'yaml'
+
+ # If we're supposed to be using syck, then we may have to force
+ # activate it via the YAML::ENGINE API.
+ if test_syck and defined?(YAML::ENGINE)
+ YAML::ENGINE.yamler = "syck" unless YAML::ENGINE.syck?
+ end
+
+ # Now that we're sure some kind of yaml library is loaded, pull
+ # in our hack to deal with Syck's DefaultKey ugliness.
+ require 'rubygems/syck_hack'
+
+ @yaml_loaded = true
end
##
- # manage_gems is useless and deprecated. Don't call it anymore.
+ # The file name and line number of the caller of the caller of this method.
- def self.manage_gems # :nodoc:
- file, lineno = location_of_caller
+ def self.location_of_caller
+ caller[1] =~ /(.*?):(\d+).*?$/i
+ file = $1
+ lineno = $2.to_i
- warn "#{file}:#{lineno}:Warning: Gem::manage_gems is deprecated and will be removed on or after March 2009."
+ # TODO: it is ALWAYS joined! STUPID!
+ [file, lineno]
end
##
@@ -501,22 +712,24 @@ module Gem
end
##
- # Array of paths to search for Gems.
-
- def self.path
- @gem_path ||= nil
-
- unless @gem_path then
- paths = [ENV['GEM_PATH'] || Gem.configuration.path || default_path]
+ # Get the appropriate cache path.
+ #
+ # Pass a string to use a different base path, or nil/false (default) for
+ # Gem.dir.
+ #
- if defined?(APPLE_GEM_HOME) and not ENV['GEM_PATH'] then
- paths << APPLE_GEM_HOME
- end
+ def self.cache_dir(custom_dir=false)
+ File.join(custom_dir || Gem.dir, "cache")
+ end
- set_paths paths.compact.join(File::PATH_SEPARATOR)
- end
+ ##
+ # Given a gem path, find the gem in cache.
+ #
+ # Pass a string as the second argument to use a different base path, or
+ # nil/false (default) for Gem.dir.
- @gem_path
+ def self.cache_gem(filename, user_dir=false)
+ cache_dir(user_dir).add(filename)
end
##
@@ -538,6 +751,17 @@ module Gem
end
##
+ # Adds a post-build hook that will be passed an Gem::Installer instance
+ # when Gem::Installer#install is called. The hook is called after the gem
+ # has been extracted and extensions have been built but before the
+ # executables or gemspec has been written. If the hook returns +false+ then
+ # the gem's files will be removed and the install will be aborted.
+
+ def self.post_build(&hook)
+ @post_build_hooks << hook
+ end
+
+ ##
# Adds a post-install hook that will be passed an Gem::Installer instance
# when Gem::Installer#install is called
@@ -546,6 +770,14 @@ module Gem
end
##
+ # Adds a hook that will get run after Gem::Specification.reset is
+ # run.
+
+ def self.post_reset(&hook)
+ @post_reset_hooks << hook
+ end
+
+ ##
# Adds a post-uninstall hook that will be passed a Gem::Uninstaller instance
# and the spec that was uninstalled when Gem::Uninstaller#uninstall is
# called
@@ -556,13 +788,22 @@ module Gem
##
# Adds a pre-install hook that will be passed an Gem::Installer instance
- # when Gem::Installer#install is called
+ # when Gem::Installer#install is called. If the hook returns +false+ then
+ # the install will be aborted.
def self.pre_install(&hook)
@pre_install_hooks << hook
end
##
+ # Adds a hook that will get run before Gem::Specification.reset is
+ # run.
+
+ def self.pre_reset(&hook)
+ @pre_reset_hooks << hook
+ end
+
+ ##
# Adds a pre-uninstall hook that will be passed an Gem::Uninstaller instance
# and the spec that will be uninstalled when Gem::Uninstaller#uninstall is
# called
@@ -572,29 +813,54 @@ module Gem
end
##
- # The directory prefix this RubyGems was installed at.
+ # The directory prefix this RubyGems was installed at. If your
+ # prefix is in a standard location (ie, rubygems is installed where
+ # you'd expect it to be), then prefix returns nil.
def self.prefix
- prefix = File.dirname File.expand_path(__FILE__)
+ prefix = File.dirname RUBYGEMS_DIR
- if File.dirname(prefix) == File.expand_path(ConfigMap[:sitelibdir]) or
- File.dirname(prefix) == File.expand_path(ConfigMap[:libdir]) or
- 'lib' != File.basename(prefix) then
- nil
- else
- File.dirname prefix
+ if prefix != File.expand_path(ConfigMap[:sitelibdir]) and
+ prefix != File.expand_path(ConfigMap[:libdir]) and
+ 'lib' == File.basename(RUBYGEMS_DIR) then
+ prefix
end
end
##
- # Refresh source_index from disk and clear searcher.
+ # Promotes the load paths of the +gem_name+ over the load paths of
+ # +over_name+. Useful for allowing one gem to override features in another
+ # using #find_files.
- def self.refresh
- source_index.refresh!
+ def self.promote_load_path(gem_name, over_name)
+ gem = Gem.loaded_specs[gem_name]
+ over = Gem.loaded_specs[over_name]
+
+ raise ArgumentError, "gem #{gem_name} is not activated" if gem.nil?
+ raise ArgumentError, "gem #{over_name} is not activated" if over.nil?
- MUTEX.synchronize do
- @searcher = nil
+ last_gem_path = Gem::Path.path(gem.full_gem_path).add(gem.require_paths.last)
+
+ over_paths = over.require_paths.map do |path|
+ Gem::Path.path(over.full_gem_path).add(path).to_s
+ end
+
+ over_paths.each do |path|
+ $LOAD_PATH.delete path
end
+
+ gem = $LOAD_PATH.index(last_gem_path) + 1
+
+ $LOAD_PATH.insert(gem, *over_paths)
+ end
+
+ ##
+ # Refresh source_index from disk and clear searcher.
+
+ def self.refresh
+ Gem::Specification.reset
+ @source_index = nil
+ @searcher = nil
end
##
@@ -610,33 +876,41 @@ module Gem
# any version by the requested name.
def self.report_activate_error(gem)
- matches = Gem.source_index.find_name(gem.name)
+ matches = Gem::Specification.find_by_name(gem.name)
if matches.empty? then
error = Gem::LoadError.new(
- "Could not find RubyGem #{gem.name} (#{gem.version_requirements})\n")
+ "Could not find RubyGem #{gem.name} (#{gem.requirement})\n")
else
error = Gem::LoadError.new(
"RubyGem version error: " +
- "#{gem.name}(#{matches.first.version} not #{gem.version_requirements})\n")
+ "#{gem.name}(#{matches.first.version} not #{gem.requirement})\n")
end
error.name = gem.name
- error.version_requirement = gem.version_requirements
+ error.requirement = gem.requirement
raise error
end
private_class_method :report_activate_error
- def self.required_location(gemname, libfile, *version_constraints)
- version_constraints = Gem::Requirement.default if version_constraints.empty?
- matches = Gem.source_index.find_name(gemname, version_constraints)
+ ##
+ # Full path to +libfile+ in +gemname+. Searches for the latest gem unless
+ # +requirements+ is given.
+
+ def self.required_location(gemname, libfile, *requirements)
+ requirements = Gem::Requirement.default if requirements.empty?
+
+ matches = Gem::Specification.find_all_by_name gemname, *requirements
+
return nil if matches.empty?
+
spec = matches.last
spec.require_paths.each do |path|
- result = File.join(spec.full_gem_path, path, libfile)
- return result if File.exist?(result)
+ result = Gem::Path.path(spec.full_gem_path).add(path, libfile)
+ return result if result.exist?
end
+
nil
end
@@ -646,74 +920,67 @@ module Gem
def self.ruby
if @ruby.nil? then
@ruby = File.join(ConfigMap[:bindir],
- ConfigMap[:ruby_install_name])
- @ruby << ConfigMap[:EXEEXT]
+ "#{ConfigMap[:ruby_install_name]}#{ConfigMap[:EXEEXT]}")
- # escape string in case path to ruby executable contain spaces.
- @ruby.sub!(/.*\s.*/m, '"\&"')
+ @ruby = "\"#{@ruby}\"" if @ruby =~ /\s/
end
@ruby
end
- ##
- # A Gem::Version for the currently running ruby.
-
- def self.ruby_version
- return @ruby_version if defined? @ruby_version
- version = RUBY_VERSION.dup
- version << ".#{RUBY_PATCHLEVEL}" if defined? RUBY_PATCHLEVEL
- @ruby_version = Gem::Version.new version
- end
+ def self.latest_spec_for name
+ dependency = Gem::Dependency.new name
+ fetcher = Gem::SpecFetcher.fetcher
+ spec_tuples = fetcher.find_matching dependency
- ##
- # The GemPathSearcher object used to search for matching installed gems.
+ match = spec_tuples.select { |(n, _, p), _|
+ n == name and Gem::Platform.match p
+ }.sort_by { |(_, version, _), _|
+ version
+ }.last
- def self.searcher
- MUTEX.synchronize do
- @searcher ||= Gem::GemPathSearcher.new
- end
+ match and fetcher.fetch_spec(*match)
end
- ##
- # Set the Gem home directory (as reported by Gem.dir).
-
- def self.set_home(home)
- home = home.gsub(File::ALT_SEPARATOR, File::SEPARATOR) if File::ALT_SEPARATOR
- @gem_home = home
+ def self.latest_version_for name
+ spec = latest_spec_for name
+ spec and spec.version
end
- private_class_method :set_home
+ def self.latest_rubygems_version
+ latest_version_for "rubygems-update"
+ end
##
- # Set the Gem search path (as reported by Gem.path).
-
- def self.set_paths(gpaths)
- if gpaths
- @gem_path = gpaths.split(File::PATH_SEPARATOR)
+ # A Gem::Version for the currently running ruby.
- if File::ALT_SEPARATOR then
- @gem_path.map! do |path|
- path.gsub File::ALT_SEPARATOR, File::SEPARATOR
- end
- end
+ def self.ruby_version
+ return @ruby_version if defined? @ruby_version
+ version = RUBY_VERSION.dup
- @gem_path << Gem.dir
- else
- # TODO: should this be Gem.default_path instead?
- @gem_path = [Gem.dir]
+ if defined?(RUBY_PATCHLEVEL) && RUBY_PATCHLEVEL != -1 then
+ version << ".#{RUBY_PATCHLEVEL}"
+ elsif defined?(RUBY_REVISION) then
+ version << ".dev.#{RUBY_REVISION}"
end
- @gem_path.uniq!
+ @ruby_version = Gem::Version.new version
end
- private_class_method :set_paths
+ ##
+ # The GemPathSearcher object used to search for matching installed gems.
+
+ def self.searcher
+ @searcher ||= Gem::GemPathSearcher.new
+ end
##
# Returns the Gem::SourceIndex of specifications that are in the Gem.path
def self.source_index
- @@source_index ||= SourceIndex.from_installed_gems
+ @@source_index ||= Gem::Deprecate.skip_during do
+ SourceIndex.new Gem::Specification.dirs
+ end
end
##
@@ -722,23 +989,14 @@ module Gem
# default_sources if it is not installed.
def self.sources
- if @sources.empty? then
- begin
- gem 'sources', '> 0.0.1'
- require 'sources'
- rescue LoadError
- @sources = default_sources
- end
- end
-
- @sources
+ @sources ||= default_sources
end
##
# Need to be able to set the sources without calling
# Gem.sources.replace since that would cause an infinite loop.
- def self.sources=(new_sources)
+ def self.sources= new_sources
@sources = new_sources
end
@@ -749,21 +1007,60 @@ module Gem
@suffix_pattern ||= "{#{suffixes.join(',')}}"
end
+ def self.loaded_path? path
+ # TODO: ruby needs a feature to let us query what's loaded in 1.8 and 1.9
+ re = /(^|\/)#{Regexp.escape path}#{Regexp.union(*Gem.suffixes)}$/
+ $LOADED_FEATURES.any? { |s| s =~ re }
+ end
+
##
# Suffixes for require-able paths.
def self.suffixes
- ['', '.rb', '.rbw', '.so', '.bundle', '.dll', '.sl', '.jar']
+ @suffixes ||= ['',
+ '.rb',
+ *%w(DLEXT DLEXT2).map { |key|
+ val = RbConfig::CONFIG[key]
+ next unless val and not val.empty?
+ ".#{val}"
+ }
+ ].compact.uniq
+ end
+
+ ##
+ # Prints the amount of time the supplied block takes to run using the debug
+ # UI output.
+
+ def self.time(msg, width = 0, display = Gem.configuration.verbose)
+ now = Time.now
+
+ value = yield
+
+ elapsed = Time.now - now
+
+ ui.say "%2$*1$s: %3$3.3fs" % [-width, msg, elapsed] if display
+
+ value
+ end
+
+ ##
+ # Lazily loads DefaultUserInteraction and returns the default UI.
+
+ def self.ui
+ require 'rubygems/user_interaction'
+
+ Gem::DefaultUserInteraction.ui
end
##
# Use the +home+ and +paths+ values for Gem.dir and Gem.path. Used mainly
# by the unit tests to provide environment isolation.
- def self.use_paths(home, paths=[])
- clear_paths
- set_home(home) if home
- set_paths(paths.join(File::PATH_SEPARATOR)) if paths
+ def self.use_paths(home, *paths)
+ paths = nil if paths == [nil]
+ paths = paths.first if Array === Array(paths).first
+ self.paths = { "GEM_HOME" => home, "GEM_PATH" => paths }
+ # TODO: self.paths = home, paths
end
##
@@ -784,16 +1081,75 @@ module Gem
@@win_platform
end
+ ##
+ # Load +plugins+ as ruby files
+
+ def self.load_plugin_files(plugins)
+ plugins.each do |plugin|
+
+ # Skip older versions of the GemCutter plugin: Its commands are in
+ # RubyGems proper now.
+
+ next if plugin =~ /gemcutter-0\.[0-3]/
+
+ begin
+ load plugin
+ rescue ::Exception => e
+ details = "#{plugin.inspect}: #{e.message} (#{e.class})"
+ warn "Error loading RubyGems plugin #{details}"
+ end
+ end
+ end
+
+ ##
+ # Find all 'rubygems_plugin' files in installed gems and load them
+
+ def self.load_plugins
+ load_plugin_files find_files('rubygems_plugin', false)
+ end
+
+ ##
+ # Find all 'rubygems_plugin' files in $LOAD_PATH and load them
+
+ def self.load_env_plugins
+ path = "rubygems_plugin"
+
+ files = []
+ $LOAD_PATH.each do |load_path|
+ globbed = Dir["#{File.expand_path path, load_path}#{Gem.suffix_pattern}"]
+
+ globbed.each do |load_path_file|
+ files << load_path_file if File.file?(load_path_file.untaint)
+ end
+ end
+
+ load_plugin_files files
+ end
+
class << self
+ ##
+ # Hash of loaded Gem::Specification keyed by name
+
attr_reader :loaded_specs
##
+ # The list of hooks to be run before Gem::Install#install finishes
+ # installation
+
+ attr_reader :post_build_hooks
+
+ ##
# The list of hooks to be run before Gem::Install#install does any work
attr_reader :post_install_hooks
##
+ # The list of hooks to be run after Gem::Specification.reset is run.
+
+ attr_reader :post_reset_hooks
+
+ ##
# The list of hooks to be run before Gem::Uninstall#uninstall does any
# work
@@ -805,64 +1161,145 @@ module Gem
attr_reader :pre_install_hooks
##
+ # The list of hooks to be run before Gem::Specification.reset is run.
+
+ attr_reader :pre_reset_hooks
+
+ ##
# The list of hooks to be run after Gem::Uninstall#uninstall is finished
attr_reader :pre_uninstall_hooks
+ end
- # :stopdoc:
+ def self.cache # :nodoc:
+ source_index
+ end
- alias cache source_index # an alias for the old name
+ ##
+ # Location of Marshal quick gemspecs on remote repositories
- # :startdoc:
+ MARSHAL_SPEC_DIR = "quick/Marshal.#{Gem.marshal_version}/"
- end
+ autoload :Version, 'rubygems/version'
+ autoload :Requirement, 'rubygems/requirement'
+ autoload :Dependency, 'rubygems/dependency'
+ autoload :DependencyList, 'rubygems/dependency_list'
+ autoload :GemPathSearcher, 'rubygems/gem_path_searcher'
+ autoload :SpecFetcher, 'rubygems/spec_fetcher'
+ autoload :Specification, 'rubygems/specification'
+ autoload :Cache, 'rubygems/source_index'
+ autoload :SourceIndex, 'rubygems/source_index'
+ autoload :PathSupport, 'rubygems/path_support'
+ autoload :Platform, 'rubygems/platform'
+ autoload :Builder, 'rubygems/builder'
+ autoload :ConfigFile, 'rubygems/config_file'
+end
- MARSHAL_SPEC_DIR = "quick/Marshal.#{Gem.marshal_version}/"
+module Kernel
- YAML_SPEC_DIR = 'quick/'
+ remove_method :gem if 'method' == defined? gem # from gem_prelude.rb on 1.9
-end
+ ##
+ # Use Kernel#gem to activate a specific version of +gem_name+.
+ #
+ # +requirements+ is a list of version requirements that the
+ # specified gem must match, most commonly "= example.version.number". See
+ # Gem::Requirement for how to specify a version requirement.
+ #
+ # If you will be activating the latest version of a gem, there is no need to
+ # call Kernel#gem, Kernel#require will do the right thing for you.
+ #
+ # Kernel#gem returns true if the gem was activated, otherwise false. If the
+ # gem could not be found, didn't match the version requirements, or a
+ # different version was already activated, an exception will be raised.
+ #
+ # Kernel#gem should be called *before* any require statements (otherwise
+ # RubyGems may load a conflicting library version).
+ #
+ # In older RubyGems versions, the environment variable GEM_SKIP could be
+ # used to skip activation of specified gems, for example to test out changes
+ # that haven't been installed yet. Now RubyGems defers to -I and the
+ # RUBYLIB environment variable to skip activation of a gem.
+ #
+ # Example:
+ #
+ # GEM_SKIP=libA:libB ruby -I../libA -I../libB ./mycode.rb
-module RbConfig
- # :stopdoc:
- class << self
- # Return the path to the data directory associated with the named
- # package. If the package is loaded as a gem, return the gem
- # specific data directory. Otherwise return a path to the share
- # area as define by "#{ConfigMap[:datadir]}/#{package_name}".
- def datadir(package_name)
- Gem.datadir(package_name) ||
- File.join(Gem::ConfigMap[:datadir], package_name)
- end
+ def gem(gem_name, *requirements) # :doc:
+ skip_list = (ENV['GEM_SKIP'] || "").split(/:/)
+ raise Gem::LoadError, "skipping #{gem_name}" if skip_list.include? gem_name
+ spec = Gem::Dependency.new(gem_name, *requirements).to_spec
+ spec.activate if spec
end
- # :startdoc:
+
+ private :gem
+
end
-require 'rubygems/exceptions'
-require 'rubygems/version'
-require 'rubygems/requirement'
-require 'rubygems/dependency'
-require 'rubygems/gem_path_searcher' # Needed for Kernel#gem
-require 'rubygems/source_index' # Needed for Kernel#gem
-require 'rubygems/platform'
-require 'rubygems/builder' # HACK: Needed for rake's package task.
-
-begin
- require 'rubygems/defaults/operating_system'
-rescue LoadError
+##
+# Return the path to the data directory associated with the named package. If
+# the package is loaded as a gem, return the gem specific data directory.
+# Otherwise return a path to the share area as define by
+# "#{ConfigMap[:datadir]}/#{package_name}".
+
+def RbConfig.datadir(package_name) # :nodoc:
+ warn "#{Gem.location_of_caller.join ':'}:Warning: " \
+ "RbConfig.datadir is deprecated and will be removed on or after " \
+ "August 2011. " \
+ "Use Gem::datadir."
+
+ require 'rbconfig/datadir'
+
+ Gem.datadir(package_name) || File.join(Gem::ConfigMap[:datadir], package_name)
end
-if defined?(RUBY_ENGINE) then
+require 'rubygems/exceptions'
+
+gem_preluded = Gem::GEM_PRELUDE_SUCKAGE and defined? Gem
+unless gem_preluded then # TODO: remove guard after 1.9.2 dropped
begin
- require "rubygems/defaults/#{RUBY_ENGINE}"
+ ##
+ # Defaults the operating system (or packager) wants to provide for RubyGems.
+
+ require 'rubygems/defaults/operating_system'
rescue LoadError
end
-end
-require 'rubygems/config_file'
+ if defined?(RUBY_ENGINE) then
+ begin
+ ##
+ # Defaults the ruby implementation wants to provide for RubyGems
-if RUBY_VERSION < '1.9' then
- require 'rubygems/custom_require'
+ require "rubygems/defaults/#{RUBY_ENGINE}"
+ rescue LoadError
+ end
+ end
end
-Gem.clear_paths
+##
+# Enables the require hook for RubyGems.
+
+require 'rubygems/custom_require'
+
+module Gem
+ class << self
+ extend Gem::Deprecate
+ deprecate :activate_dep, "Specification#activate", 2011, 6
+ deprecate :activate_spec, "Specification#activate", 2011, 6
+ deprecate :cache, "Gem::source_index", 2011, 8
+ deprecate :activate, "Specification#activate", 2011, 10
+ deprecate :all_load_paths, :none, 2011, 10
+ deprecate :all_partials, :none, 2011, 10
+ deprecate :latest_load_paths, :none, 2011, 10
+ deprecate :promote_load_path, :none, 2011, 10
+ deprecate :available?, "Specification::find_by_name", 2011, 11
+ deprecate :cache_dir, "Specification#cache_dir", 2011, 11
+ deprecate :cache_gem, "Specification#cache_file", 2011, 11
+ deprecate :default_system_source_cache_dir, :none, 2011, 11
+ deprecate :default_user_source_cache_dir, :none, 2011, 11
+ deprecate :report_activate_error, :none, 2011, 11
+ deprecate :required_location, :none, 2011, 11
+ deprecate :searcher, "Specification", 2011, 11
+ deprecate :source_index, "Specification", 2011, 11
+ end
+end
diff --git a/lib/rubygems/builder.rb b/lib/rubygems/builder.rb
index 1c18c38d48..25e8fc8321 100644
--- a/lib/rubygems/builder.rb
+++ b/lib/rubygems/builder.rb
@@ -4,85 +4,96 @@
# See LICENSE.txt for permissions.
#++
-module Gem
+require 'rubygems'
+require 'rubygems/user_interaction'
+
+Gem.load_yaml
+
+require 'rubygems/package'
+
+##
+# The Builder class processes RubyGem specification files
+# to produce a .gem file.
+
+class Gem::Builder
+
+ include Gem::UserInteraction
##
- # The Builder class processes RubyGem specification files
- # to produce a .gem file.
+ # Constructs a builder instance for the provided specification
#
- class Builder
-
- include UserInteraction
- ##
- # Constructs a builder instance for the provided specification
- #
- # spec:: [Gem::Specification] The specification instance
- #
- def initialize(spec)
- require "yaml"
- require "rubygems/package"
- require "rubygems/security"
-
- @spec = spec
- end
+ # spec:: [Gem::Specification] The specification instance
- ##
- # Builds the gem from the specification. Returns the name of the file
- # written.
- #
- def build
- @spec.mark_version
- @spec.validate
- @signer = sign
- write_package
- say success
- @spec.file_name
- end
+ def initialize(spec)
+ @spec = spec
+ end
+
+ ##
+ # Builds the gem from the specification. Returns the name of the file
+ # written.
+
+ def build(skip_validation=false)
+ @spec.mark_version
+ @spec.validate unless skip_validation
+ @signer = sign
+ write_package
+ say success if Gem.configuration.verbose
+ File.basename @spec.cache_file
+ end
- def success
- <<-EOM
+ def success
+ <<-EOM
Successfully built RubyGem
Name: #{@spec.name}
Version: #{@spec.version}
- File: #{@spec.full_name+'.gem'}
+ File: #{File.basename @spec.cache_file}
EOM
- end
+ end
- private
-
- def sign
- # if the signing key was specified, then load the file, and swap
- # to the public key (TODO: we should probably just omit the
- # signing key in favor of the signing certificate, but that's for
- # the future, also the signature algorithm should be configurable)
- signer = nil
- if @spec.respond_to?(:signing_key) && @spec.signing_key
- signer = Gem::Security::Signer.new(@spec.signing_key, @spec.cert_chain)
- @spec.signing_key = nil
- @spec.cert_chain = signer.cert_chain.map { |cert| cert.to_s }
- end
- signer
+ private
+
+ ##
+ # If the signing key was specified, then load the file, and swap to the
+ # public key (TODO: we should probably just omit the signing key in favor of
+ # the signing certificate, but that's for the future, also the signature
+ # algorithm should be configurable)
+
+ def sign
+ signer = nil
+
+ if @spec.respond_to?(:signing_key) and @spec.signing_key then
+ require 'rubygems/security'
+
+ signer = Gem::Security::Signer.new @spec.signing_key, @spec.cert_chain
+ @spec.signing_key = nil
+ @spec.cert_chain = signer.cert_chain.map { |cert| cert.to_s }
end
- def write_package
- open @spec.file_name, 'wb' do |gem_io|
- Gem::Package.open gem_io, 'w', @signer do |pkg|
- pkg.metadata = @spec.to_yaml
+ signer
+ end
- @spec.files.each do |file|
- next if File.directory? file
+ def write_package
+ file_name = File.basename @spec.cache_file
+ open file_name, 'wb' do |gem_io|
+ Gem::Package.open gem_io, 'w', @signer do |pkg|
+ yaml = @spec.to_yaml
+ pkg.metadata = yaml
- stat = File.stat file
- mode = stat.mode & 0777
- size = stat.size
+ @spec.files.each do |file|
+ next if File.directory?(file)
+ next if file == file_name # Don't add gem onto itself
- pkg.add_file_simple file, mode, size do |tar_io|
- tar_io.write open(file, "rb") { |f| f.read }
- end
+ stat = File.stat(file)
+ mode = stat.mode & 0777
+ size = stat.size
+
+ pkg.add_file_simple file, mode, size do |tar_io|
+ tar_io.write open(file, "rb") { |f| f.read }
end
end
end
end
end
+
end
diff --git a/lib/rubygems/command.rb b/lib/rubygems/command.rb
index 860764e6d5..49253ef56b 100644
--- a/lib/rubygems/command.rb
+++ b/lib/rubygems/command.rb
@@ -5,402 +5,532 @@
#++
require 'optparse'
-
require 'rubygems/user_interaction'
-module Gem
+##
+# Base class for all Gem commands. When creating a new gem command, define
+# #new, #execute, #arguments, #defaults_str, #description and #usage
+# (as appropriate). See the above mentioned methods for details.
+#
+# A very good example to look at is Gem::Commands::ContentsCommand
- # Base class for all Gem commands. When creating a new gem command, define
- # #arguments, #defaults_str, #description and #usage (as appropriate).
- class Command
+class Gem::Command
- include UserInteraction
+ include Gem::UserInteraction
- # The name of the command.
- attr_reader :command
+ ##
+ # The name of the command.
- # The options for the command.
- attr_reader :options
+ attr_reader :command
- # The default options for the command.
- attr_accessor :defaults
+ ##
+ # The options for the command.
- # The name of the command for command-line invocation.
- attr_accessor :program_name
+ attr_reader :options
- # A short description of the command.
- attr_accessor :summary
+ ##
+ # The default options for the command.
- # Initializes a generic gem command named +command+. +summary+ is a short
- # description displayed in `gem help commands`. +defaults+ are the
- # default options. Defaults should be mirrored in #defaults_str, unless
- # there are none.
- #
- # Use add_option to add command-line switches.
- def initialize(command, summary=nil, defaults={})
- @command = command
- @summary = summary
- @program_name = "gem #{command}"
- @defaults = defaults
- @options = defaults.dup
- @option_groups = Hash.new { |h,k| h[k] = [] }
- @parser = nil
- @when_invoked = nil
- end
+ attr_accessor :defaults
- # True if +long+ begins with the characters from +short+.
- def begins?(long, short)
- return false if short.nil?
- long[0, short.length] == short
- end
+ ##
+ # The name of the command for command-line invocation.
- # Override to provide command handling.
- def execute
- fail "Generic command has no actions"
- end
+ attr_accessor :program_name
- # Get all gem names from the command line.
- def get_all_gem_names
- args = options[:args]
+ ##
+ # A short description of the command.
- if args.nil? or args.empty? then
- raise Gem::CommandLineError,
- "Please specify at least one gem name (e.g. gem build GEMNAME)"
- end
+ attr_accessor :summary
- gem_names = args.select { |arg| arg !~ /^-/ }
- end
+ ##
+ # Arguments used when building gems
- # Get the single gem name from the command line. Fail if there is no gem
- # name or if there is more than one gem name given.
- def get_one_gem_name
- args = options[:args]
+ def self.build_args
+ @build_args ||= []
+ end
- if args.nil? or args.empty? then
- raise Gem::CommandLineError,
- "Please specify a gem name on the command line (e.g. gem build GEMNAME)"
- end
+ def self.build_args=(value)
+ @build_args = value
+ end
- if args.size > 1 then
- raise Gem::CommandLineError,
- "Too many gem names (#{args.join(', ')}); please specify only one"
- end
+ def self.common_options
+ @common_options ||= []
+ end
- args.first
- end
+ def self.add_common_option(*args, &handler)
+ Gem::Command.common_options << [args, handler]
+ end
- # Get a single optional argument from the command line. If more than one
- # argument is given, return only the first. Return nil if none are given.
- def get_one_optional_argument
- args = options[:args] || []
- args.first
- end
+ def self.extra_args
+ @extra_args ||= []
+ end
- # Override to provide details of the arguments a command takes.
- # It should return a left-justified string, one argument per line.
- def arguments
- ""
+ def self.extra_args=(value)
+ case value
+ when Array
+ @extra_args = value
+ when String
+ @extra_args = value.split
end
+ end
- # Override to display the default values of the command
- # options. (similar to +arguments+, but displays the default
- # values).
- def defaults_str
- ""
- end
+ ##
+ # Return an array of extra arguments for the command. The extra arguments
+ # come from the gem configuration file read at program startup.
- # Override to display a longer description of what this command does.
- def description
- nil
- end
+ def self.specific_extra_args(cmd)
+ specific_extra_args_hash[cmd]
+ end
- # Override to display the usage for an individual gem command.
- def usage
- program_name
- end
+ ##
+ # Add a list of extra arguments for the given command. +args+ may be an
+ # array or a string to be split on white space.
- # Display the help message for the command.
- def show_help
- parser.program_name = usage
- say parser
- end
+ def self.add_specific_extra_args(cmd,args)
+ args = args.split(/\s+/) if args.kind_of? String
+ specific_extra_args_hash[cmd] = args
+ end
- # Invoke the command with the given list of arguments.
- def invoke(*args)
- handle_options(args)
- if options[:help]
- show_help
- elsif @when_invoked
- @when_invoked.call(options)
- else
- execute
- end
- end
+ ##
+ # Accessor for the specific extra args hash (self initializing).
- # Call the given block when invoked.
- #
- # Normal command invocations just executes the +execute+ method of
- # the command. Specifying an invocation block allows the test
- # methods to override the normal action of a command to determine
- # that it has been invoked correctly.
- def when_invoked(&block)
- @when_invoked = block
+ def self.specific_extra_args_hash
+ @specific_extra_args_hash ||= Hash.new do |h,k|
+ h[k] = Array.new
end
-
- # Add a command-line option and handler to the command.
- #
- # See OptionParser#make_switch for an explanation of +opts+.
- #
- # +handler+ will be called with two values, the value of the argument and
- # the options hash.
- def add_option(*opts, &handler) # :yields: value, options
- group_name = Symbol === opts.first ? opts.shift : :options
-
- @option_groups[group_name] << [opts, handler]
+ end
+
+ ##
+ # Initializes a generic gem command named +command+. +summary+ is a short
+ # description displayed in `gem help commands`. +defaults+ are the default
+ # options. Defaults should be mirrored in #defaults_str, unless there are
+ # none.
+ #
+ # When defining a new command subclass, use add_option to add command-line
+ # switches.
+ #
+ # Unhandled arguments (gem names, files, etc.) are left in
+ # <tt>options[:args]</tt>.
+
+ def initialize(command, summary=nil, defaults={})
+ @command = command
+ @summary = summary
+ @program_name = "gem #{command}"
+ @defaults = defaults
+ @options = defaults.dup
+ @option_groups = Hash.new { |h,k| h[k] = [] }
+ @parser = nil
+ @when_invoked = nil
+ end
+
+ ##
+ # True if +long+ begins with the characters from +short+.
+
+ def begins?(long, short)
+ return false if short.nil?
+ long[0, short.length] == short
+ end
+
+ ##
+ # Override to provide command handling.
+ #
+ # #options will be filled in with your parsed options, unparsed options will
+ # be left in <tt>options[:args]</tt>.
+ #
+ # See also: #get_all_gem_names, #get_one_gem_name,
+ # #get_one_optional_argument
+
+ def execute
+ raise Gem::Exception, "generic command has no actions"
+ end
+
+ ##
+ # Display to the user that a gem couldn't be found and reasons why
+
+ def show_lookup_failure(gem_name, version, errors, domain)
+ if errors and !errors.empty?
+ alert_error "Could not find a valid gem '#{gem_name}' (#{version}), here is why:"
+ errors.each { |x| say " #{x.wordy}" }
+ else
+ alert_error "Could not find a valid gem '#{gem_name}' (#{version}) in any repository"
end
- # Remove previously defined command-line argument +name+.
- def remove_option(name)
- @option_groups.each do |_, option_list|
- option_list.reject! { |args, _| args.any? { |x| x =~ /^#{name}/ } }
- end
- end
-
- # Merge a set of command options with the set of default options
- # (without modifying the default option hash).
- def merge_options(new_options)
- @options = @defaults.clone
- new_options.each do |k,v| @options[k] = v end
- end
+ unless domain == :local then # HACK
+ suggestions = Gem::SpecFetcher.fetcher.suggest_gems_from_name gem_name
- # True if the command handles the given argument list.
- def handles?(args)
- begin
- parser.parse!(args.dup)
- return true
- rescue
- return false
+ unless suggestions.empty?
+ alert_error "Possible alternatives: #{suggestions.join(", ")}"
end
end
+ end
- # Handle the given list of arguments by parsing them and recording
- # the results.
- def handle_options(args)
- args = add_extra_args(args)
- @options = @defaults.clone
- parser.parse!(args)
- @options[:args] = args
- end
+ ##
+ # Get all gem names from the command line.
- def add_extra_args(args)
- result = []
- s_extra = Command.specific_extra_args(@command)
- extra = Command.extra_args + s_extra
- while ! extra.empty?
- ex = []
- ex << extra.shift
- ex << extra.shift if extra.first.to_s =~ /^[^-]/
- result << ex if handles?(ex)
- end
- result.flatten!
- result.concat(args)
- result
+ def get_all_gem_names
+ args = options[:args]
+
+ if args.nil? or args.empty? then
+ raise Gem::CommandLineError,
+ "Please specify at least one gem name (e.g. gem build GEMNAME)"
end
- private
+ args.select { |arg| arg !~ /^-/ }
+ end
- # Create on demand parser.
- def parser
- create_option_parser if @parser.nil?
- @parser
- end
+ ##
+ # Get a single gem name from the command line. Fail if there is no gem name
+ # or if there is more than one gem name given.
- def create_option_parser
- @parser = OptionParser.new
+ def get_one_gem_name
+ args = options[:args]
- @parser.separator("")
- regular_options = @option_groups.delete :options
+ if args.nil? or args.empty? then
+ raise Gem::CommandLineError,
+ "Please specify a gem name on the command line (e.g. gem build GEMNAME)"
+ end
- configure_options "", regular_options
+ if args.size > 1 then
+ raise Gem::CommandLineError,
+ "Too many gem names (#{args.join(', ')}); please specify only one"
+ end
- @option_groups.sort_by { |n,_| n.to_s }.each do |group_name, option_list|
- configure_options group_name, option_list
- end
+ args.first
+ end
+
+ ##
+ # Get a single optional argument from the command line. If more than one
+ # argument is given, return only the first. Return nil if none are given.
+
+ def get_one_optional_argument
+ args = options[:args] || []
+ args.first
+ end
+
+ ##
+ # Override to provide details of the arguments a command takes. It should
+ # return a left-justified string, one argument per line.
+ #
+ # For example:
+ #
+ # def usage
+ # "#{program_name} FILE [FILE ...]"
+ # end
+ #
+ # def arguments
+ # "FILE name of file to find"
+ # end
+
+ def arguments
+ ""
+ end
+
+ ##
+ # Override to display the default values of the command options. (similar to
+ # +arguments+, but displays the default values).
+ #
+ # For example:
+ #
+ # def defaults_str
+ # --no-gems-first --no-all
+ # end
+
+ def defaults_str
+ ""
+ end
+
+ ##
+ # Override to display a longer description of what this command does.
+
+ def description
+ nil
+ end
+
+ ##
+ # Override to display the usage for an individual gem command.
+ #
+ # The text "[options]" is automatically appended to the usage text.
+
+ def usage
+ program_name
+ end
+
+ ##
+ # Display the help message for the command.
+
+ def show_help
+ parser.program_name = usage
+ say parser
+ end
+
+ ##
+ # Invoke the command with the given list of arguments.
+
+ def invoke(*args)
+ handle_options args
+
+ if options[:help] then
+ show_help
+ elsif @when_invoked then
+ @when_invoked.call options
+ else
+ execute
+ end
+ end
+
+ ##
+ # Call the given block when invoked.
+ #
+ # Normal command invocations just executes the +execute+ method of the
+ # command. Specifying an invocation block allows the test methods to
+ # override the normal action of a command to determine that it has been
+ # invoked correctly.
+
+ def when_invoked(&block)
+ @when_invoked = block
+ end
+
+ ##
+ # Add a command-line option and handler to the command.
+ #
+ # See OptionParser#make_switch for an explanation of +opts+.
+ #
+ # +handler+ will be called with two values, the value of the argument and
+ # the options hash.
+ #
+ # If the first argument of add_option is a Symbol, it's used to group
+ # options in output. See `gem help list` for an example.
+
+ def add_option(*opts, &handler) # :yields: value, options
+ group_name = Symbol === opts.first ? opts.shift : :options
+
+ @option_groups[group_name] << [opts, handler]
+ end
+
+ ##
+ # Remove previously defined command-line argument +name+.
+
+ def remove_option(name)
+ @option_groups.each do |_, option_list|
+ option_list.reject! { |args, _| args.any? { |x| x =~ /^#{name}/ } }
+ end
+ end
+
+ ##
+ # Merge a set of command options with the set of default options (without
+ # modifying the default option hash).
+
+ def merge_options(new_options)
+ @options = @defaults.clone
+ new_options.each do |k,v| @options[k] = v end
+ end
+
+ ##
+ # True if the command handles the given argument list.
+
+ def handles?(args)
+ begin
+ parser.parse!(args.dup)
+ return true
+ rescue
+ return false
+ end
+ end
- configure_options "Common", Command.common_options
+ ##
+ # Handle the given list of arguments by parsing them and recording the
+ # results.
- @parser.separator("")
- unless arguments.empty?
- @parser.separator(" Arguments:")
- arguments.split(/\n/).each do |arg_desc|
- @parser.separator(" #{arg_desc}")
- end
- @parser.separator("")
- end
+ def handle_options(args)
+ args = add_extra_args(args)
+ @options = @defaults.clone
+ parser.parse!(args)
+ @options[:args] = args
+ end
- @parser.separator(" Summary:")
- wrap(@summary, 80 - 4).split("\n").each do |line|
- @parser.separator(" #{line.strip}")
- end
+ ##
+ # Adds extra args from ~/.gemrc
- if description then
- formatted = description.split("\n\n").map do |chunk|
- wrap(chunk, 80 - 4)
- end.join("\n")
+ def add_extra_args(args)
+ result = []
- @parser.separator ""
- @parser.separator " Description:"
- formatted.split("\n").each do |line|
- @parser.separator " #{line.rstrip}"
- end
- end
+ s_extra = Gem::Command.specific_extra_args(@command)
+ extra = Gem::Command.extra_args + s_extra
- unless defaults_str.empty?
- @parser.separator("")
- @parser.separator(" Defaults:")
- defaults_str.split(/\n/).each do |line|
- @parser.separator(" #{line}")
- end
- end
+ until extra.empty? do
+ ex = []
+ ex << extra.shift
+ ex << extra.shift if extra.first.to_s =~ /^[^-]/
+ result << ex if handles?(ex)
end
- def configure_options(header, option_list)
- return if option_list.nil? or option_list.empty?
+ result.flatten!
+ result.concat(args)
+ result
+ end
- header = header.to_s.empty? ? '' : "#{header} "
- @parser.separator " #{header}Options:"
+ private
- option_list.each do |args, handler|
- dashes = args.select { |arg| arg =~ /^-/ }
- @parser.on(*args) do |value|
- handler.call(value, @options)
- end
- end
+ ##
+ # Create on demand parser.
- @parser.separator ''
- end
+ def parser
+ create_option_parser if @parser.nil?
+ @parser
+ end
- # Wraps +text+ to +width+
- def wrap(text, width)
- text.gsub(/(.{1,#{width}})( +|$\n?)|(.{1,#{width}})/, "\\1\\3\n")
- end
+ def create_option_parser
+ @parser = OptionParser.new
- ##################################################################
- # Class methods for Command.
- class << self
- def common_options
- @common_options ||= []
- end
+ @parser.separator nil
+ regular_options = @option_groups.delete :options
- def add_common_option(*args, &handler)
- Gem::Command.common_options << [args, handler]
- end
-
- def extra_args
- @extra_args ||= []
- end
+ configure_options "", regular_options
- def extra_args=(value)
- case value
- when Array
- @extra_args = value
- when String
- @extra_args = value.split
- end
- end
+ @option_groups.sort_by { |n,_| n.to_s }.each do |group_name, option_list|
+ @parser.separator nil
+ configure_options group_name, option_list
+ end
- # Return an array of extra arguments for the command. The extra
- # arguments come from the gem configuration file read at program
- # startup.
- def specific_extra_args(cmd)
- specific_extra_args_hash[cmd]
- end
+ @parser.separator nil
+ configure_options "Common", Gem::Command.common_options
- # Add a list of extra arguments for the given command. +args+
- # may be an array or a string to be split on white space.
- def add_specific_extra_args(cmd,args)
- args = args.split(/\s+/) if args.kind_of? String
- specific_extra_args_hash[cmd] = args
+ unless arguments.empty?
+ @parser.separator nil
+ @parser.separator " Arguments:"
+ arguments.split(/\n/).each do |arg_desc|
+ @parser.separator " #{arg_desc}"
end
+ end
- # Accessor for the specific extra args hash (self initializing).
- def specific_extra_args_hash
- @specific_extra_args_hash ||= Hash.new do |h,k|
- h[k] = Array.new
- end
+ if @summary then
+ @parser.separator nil
+ @parser.separator " Summary:"
+ wrap(@summary, 80 - 4).split("\n").each do |line|
+ @parser.separator " #{line.strip}"
end
end
- # ----------------------------------------------------------------
- # Add the options common to all commands.
-
- add_common_option('-h', '--help',
- 'Get help on this command') do
- |value, options|
- options[:help] = true
- end
+ if description then
+ formatted = description.split("\n\n").map do |chunk|
+ wrap chunk, 80 - 4
+ end.join "\n"
- add_common_option('-V', '--[no-]verbose',
- 'Set the verbose level of output') do |value, options|
- # Set us to "really verbose" so the progress meter works
- if Gem.configuration.verbose and value then
- Gem.configuration.verbose = 1
- else
- Gem.configuration.verbose = value
+ @parser.separator nil
+ @parser.separator " Description:"
+ formatted.split("\n").each do |line|
+ @parser.separator " #{line.rstrip}"
end
end
- add_common_option('-q', '--quiet', 'Silence commands') do |value, options|
- Gem.configuration.verbose = false
+ unless defaults_str.empty?
+ @parser.separator nil
+ @parser.separator " Defaults:"
+ defaults_str.split(/\n/).each do |line|
+ @parser.separator " #{line}"
+ end
end
+ end
- # Backtrace and config-file are added so they show up in the help
- # commands. Both options are actually handled before the other
- # options get parsed.
+ def configure_options(header, option_list)
+ return if option_list.nil? or option_list.empty?
- add_common_option('--config-file FILE',
- "Use this config file instead of default") do
- end
+ header = header.to_s.empty? ? '' : "#{header} "
+ @parser.separator " #{header}Options:"
- add_common_option('--backtrace',
- 'Show stack backtrace on errors') do
+ option_list.each do |args, handler|
+ args.select { |arg| arg =~ /^-/ }
+ @parser.on(*args) do |value|
+ handler.call(value, @options)
+ end
end
- add_common_option('--debug',
- 'Turn on Ruby debugging') do
- end
+ @parser.separator ''
+ end
- # :stopdoc:
- HELP = %{
- RubyGems is a sophisticated package manager for Ruby. This is a
- basic help message containing pointers to more information.
+ ##
+ # Wraps +text+ to +width+
- Usage:
- gem -h/--help
- gem -v/--version
- gem command [arguments...] [options...]
+ def wrap(text, width) # :doc:
+ text.gsub(/(.{1,#{width}})( +|$\n?)|(.{1,#{width}})/, "\\1\\3\n")
+ end
- Examples:
- gem install rake
- gem list --local
- gem build package.gemspec
- gem help install
+ # ----------------------------------------------------------------
+ # Add the options common to all commands.
- Further help:
- gem help commands list all 'gem' commands
- gem help examples show some examples of usage
- gem help platforms show information about platforms
- gem help <COMMAND> show help on COMMAND
- (e.g. 'gem help install')
- Further information:
- http://rubygems.rubyforge.org
- }.gsub(/^ /, "")
+ add_common_option('-h', '--help',
+ 'Get help on this command') do |value, options|
+ options[:help] = true
+ end
- # :startdoc:
+ add_common_option('-V', '--[no-]verbose',
+ 'Set the verbose level of output') do |value, options|
+ # Set us to "really verbose" so the progress meter works
+ if Gem.configuration.verbose and value then
+ Gem.configuration.verbose = 1
+ else
+ Gem.configuration.verbose = value
+ end
+ end
+
+ add_common_option('-q', '--quiet', 'Silence commands') do |value, options|
+ Gem.configuration.verbose = false
+ end
+
+ # Backtrace and config-file are added so they show up in the help
+ # commands. Both options are actually handled before the other
+ # options get parsed.
+
+ add_common_option('--config-file FILE',
+ 'Use this config file instead of default') do
+ end
+
+ add_common_option('--backtrace',
+ 'Show stack backtrace on errors') do
+ end
+
+ add_common_option('--debug',
+ 'Turn on Ruby debugging') do
+ end
+
+ # :stopdoc:
+
+ HELP = <<-HELP
+RubyGems is a sophisticated package manager for Ruby. This is a
+basic help message containing pointers to more information.
+
+ Usage:
+ gem -h/--help
+ gem -v/--version
+ gem command [arguments...] [options...]
+
+ Examples:
+ gem install rake
+ gem list --local
+ gem build package.gemspec
+ gem help install
+
+ Further help:
+ gem help commands list all 'gem' commands
+ gem help examples show some examples of usage
+ gem help platforms show information about platforms
+ gem help <COMMAND> show help on COMMAND
+ (e.g. 'gem help install')
+ gem server present a web page at
+ http://localhost:8808/
+ with info about installed gems
+ Further information:
+ http://rubygems.rubyforge.org
+ HELP
+
+ # :startdoc:
- end # class
+end
- # This is where Commands will be placed in the namespace
- module Commands; end
+##
+# This is where Commands will be placed in the namespace
+module Gem::Commands
end
+
diff --git a/lib/rubygems/command_manager.rb b/lib/rubygems/command_manager.rb
index 5a8dec451e..9edd550136 100644
--- a/lib/rubygems/command_manager.rb
+++ b/lib/rubygems/command_manager.rb
@@ -4,143 +4,191 @@
# See LICENSE.txt for permissions.
#++
-require 'timeout'
require 'rubygems/command'
require 'rubygems/user_interaction'
-module Gem
+##
+# The command manager registers and installs all the individual sub-commands
+# supported by the gem command.
+#
+# Extra commands can be provided by writing a rubygems_plugin.rb
+# file in an installed gem. You should register your command against the
+# Gem::CommandManager instance, like this:
+#
+# # file rubygems_plugin.rb
+# require 'rubygems/command_manager'
+#
+# class Gem::Commands::EditCommand < Gem::Command
+# # ...
+# end
+#
+# Gem::CommandManager.instance.register_command :edit
+#
+# See Gem::Command for instructions on writing gem commands.
+
+class Gem::CommandManager
+
+ include Gem::UserInteraction
+
+ ##
+ # Return the authoritative instance of the command manager.
+
+ def self.instance
+ @command_manager ||= new
+ end
- ####################################################################
- # The command manager registers and installs all the individual
- # sub-commands supported by the gem command.
- class CommandManager
- include UserInteraction
+ ##
+ # Reset the authoritative instance of the command manager.
- # Return the authoritative instance of the command manager.
- def self.instance
- @command_manager ||= CommandManager.new
- end
+ def self.reset
+ @command_manager = nil
+ end
- # Register all the subcommands supported by the gem command.
- def initialize
- @commands = {}
- register_command :build
- register_command :cert
- register_command :check
- register_command :cleanup
- register_command :contents
- register_command :dependency
- register_command :environment
- register_command :fetch
- register_command :generate_index
- register_command :help
- register_command :install
- register_command :list
- register_command :lock
- register_command :mirror
- register_command :outdated
- register_command :pristine
- register_command :query
- register_command :rdoc
- register_command :search
- register_command :server
- register_command :sources
- register_command :specification
- register_command :stale
- register_command :uninstall
- register_command :unpack
- register_command :update
- register_command :which
- end
+ ##
+ # Register all the subcommands supported by the gem command.
+
+ def initialize
+ require 'timeout'
+ @commands = {}
+ register_command :build
+ register_command :cert
+ register_command :check
+ register_command :cleanup
+ register_command :contents
+ register_command :dependency
+ register_command :environment
+ register_command :fetch
+ register_command :generate_index
+ register_command :help
+ register_command :install
+ register_command :list
+ register_command :lock
+ register_command :outdated
+ register_command :owner
+ register_command :pristine
+ register_command :push
+ register_command :query
+ register_command :rdoc
+ register_command :search
+ register_command :server
+ register_command :sources
+ register_command :specification
+ register_command :stale
+ register_command :uninstall
+ register_command :unpack
+ register_command :update
+ register_command :which
+ end
- # Register the command object.
- def register_command(command_obj)
- @commands[command_obj] = false
- end
+ ##
+ # Register the Symbol +command+ as a gem command.
- # Return the registered command from the command name.
- def [](command_name)
- command_name = command_name.intern
- return nil if @commands[command_name].nil?
- @commands[command_name] ||= load_and_instantiate(command_name)
- end
+ def register_command(command)
+ @commands[command] = false
+ end
- # Return a list of all command names (as strings).
- def command_names
- @commands.keys.collect {|key| key.to_s}.sort
- end
+ ##
+ # Unregister the Symbol +command+ as a gem command.
+
+ def unregister_command(command)
+ @commands.delete command
+ end
+
+ ##
+ # Return the registered command from the command name.
+
+ def [](command_name)
+ command_name = command_name.intern
+ return nil if @commands[command_name].nil?
+ @commands[command_name] ||= load_and_instantiate(command_name)
+ end
+
+ ##
+ # Return a sorted list of all command names (as strings).
+
+ def command_names
+ @commands.keys.collect {|key| key.to_s}.sort
+ end
+
+ ##
+ # Run the config specified by +args+.
+
+ def run(args)
+ process_args(args)
+ rescue StandardError, Timeout::Error => ex
+ alert_error "While executing gem ... (#{ex.class})\n #{ex.to_s}"
+ ui.errs.puts "\t#{ex.backtrace.join "\n\t"}" if
+ Gem.configuration.backtrace
+ terminate_interaction(1)
+ rescue Interrupt
+ alert_error "Interrupted"
+ terminate_interaction(1)
+ end
- # Run the config specified by +args+.
- def run(args)
- process_args(args)
- rescue StandardError, Timeout::Error => ex
- alert_error "While executing gem ... (#{ex.class})\n #{ex.to_s}"
- ui.errs.puts "\t#{ex.backtrace.join "\n\t"}" if
- Gem.configuration.backtrace
+ def process_args(args)
+ args = args.to_str.split(/\s+/) if args.respond_to?(:to_str)
+ if args.size == 0
+ say Gem::Command::HELP
terminate_interaction(1)
- rescue Interrupt
- alert_error "Interrupted"
+ end
+ case args[0]
+ when '-h', '--help'
+ say Gem::Command::HELP
+ terminate_interaction(0)
+ when '-v', '--version'
+ say Gem::VERSION
+ terminate_interaction(0)
+ when /^-/
+ alert_error "Invalid option: #{args[0]}. See 'gem --help'."
terminate_interaction(1)
+ else
+ cmd_name = args.shift.downcase
+ cmd = find_command(cmd_name)
+ cmd.invoke(*args)
end
+ end
- def process_args(args)
- args = args.to_str.split(/\s+/) if args.respond_to?(:to_str)
- if args.size == 0
- say Gem::Command::HELP
- terminate_interaction(1)
- end
- case args[0]
- when '-h', '--help'
- say Gem::Command::HELP
- terminate_interaction(0)
- when '-v', '--version'
- say Gem::RubyGemsVersion
- terminate_interaction(0)
- when /^-/
- alert_error "Invalid option: #{args[0]}. See 'gem --help'."
- terminate_interaction(1)
- else
- cmd_name = args.shift.downcase
- cmd = find_command(cmd_name)
- cmd.invoke(*args)
- end
+ def find_command(cmd_name)
+ possibilities = find_command_possibilities cmd_name
+ if possibilities.size > 1 then
+ raise "Ambiguous command #{cmd_name} matches [#{possibilities.join(', ')}]"
+ elsif possibilities.size < 1 then
+ raise "Unknown command #{cmd_name}"
end
- def find_command(cmd_name)
- possibilities = find_command_possibilities(cmd_name)
- if possibilities.size > 1
- raise "Ambiguous command #{cmd_name} matches [#{possibilities.join(', ')}]"
- end
- if possibilities.size < 1
- raise "Unknown command #{cmd_name}"
- end
+ self[possibilities.first]
+ end
- self[possibilities.first]
- end
+ def find_command_possibilities(cmd_name)
+ len = cmd_name.length
- def find_command_possibilities(cmd_name)
- len = cmd_name.length
- self.command_names.select { |n| cmd_name == n[0,len] }
- end
+ command_names.select { |n| cmd_name == n[0, len] }
+ end
+
+ private
- private
+ def load_and_instantiate(command_name)
+ command_name = command_name.to_s
+ const_name = command_name.capitalize.gsub(/_(.)/) { $1.upcase } << "Command"
+ commands = Gem::Commands
+ retried = false
- def load_and_instantiate(command_name)
- command_name = command_name.to_s
- retried = false
+ begin
+ commands.const_get(const_name).new
+ rescue NameError
+ raise if retried
+ retried = true
begin
- const_name = command_name.capitalize.gsub(/_(.)/) { $1.upcase }
- Gem::Commands.const_get("#{const_name}Command").new
- rescue NameError
- if retried then
- raise
- else
- retried = true
- require "rubygems/commands/#{command_name}_command"
- retry
- end
+ require "rubygems/commands/#{command_name}_command"
+ rescue Exception => e
+ alert_error "Loading command: #{command_name} (#{e.class})\n #{e}"
+ ui.errs.puts "\t#{e.backtrace.join "\n\t"}" if
+ Gem.configuration.backtrace
end
+ retry
end
end
+
end
+
diff --git a/lib/rubygems/commands/build_command.rb b/lib/rubygems/commands/build_command.rb
index e1f0122c6c..36a6fe48f2 100644
--- a/lib/rubygems/commands/build_command.rb
+++ b/lib/rubygems/commands/build_command.rb
@@ -4,7 +4,11 @@ require 'rubygems/builder'
class Gem::Commands::BuildCommand < Gem::Command
def initialize
- super('build', 'Build a gem from a gemspec')
+ super 'build', 'Build a gem from a gemspec'
+
+ add_option '--force', 'skip validation of the spec' do |value, options|
+ options[:force] = true
+ end
end
def arguments # :nodoc:
@@ -17,32 +21,34 @@ class Gem::Commands::BuildCommand < Gem::Command
def execute
gemspec = get_one_gem_name
- if File.exist?(gemspec)
- specs = load_gemspecs(gemspec)
- specs.each do |spec|
- Gem::Builder.new(spec).build
+
+ if File.exist? gemspec
+ spec = load_gemspec gemspec
+
+ if spec then
+ Gem::Builder.new(spec).build options[:force]
+ else
+ alert_error "Error loading gemspec. Aborting."
+ terminate_interaction 1
end
else
alert_error "Gemspec file not found: #{gemspec}"
+ terminate_interaction 1
end
end
- def load_gemspecs(filename)
+ def load_gemspec filename
if yaml?(filename)
- result = []
open(filename) do |f|
begin
- while not f.eof? and spec = Gem::Specification.from_yaml(f)
- result << spec
- end
- rescue Gem::EndOfYAMLException => e
- # OK
+ Gem::Specification.from_yaml(f)
+ rescue Gem::EndOfYAMLException
+ nil
end
end
else
- result = [Gem::Specification.load(filename)]
+ Gem::Specification.load(filename) # can return nil
end
- result
end
def yaml?(filename)
diff --git a/lib/rubygems/commands/cert_command.rb b/lib/rubygems/commands/cert_command.rb
index f5b698855b..b416b3863d 100644
--- a/lib/rubygems/commands/cert_command.rb
+++ b/lib/rubygems/commands/cert_command.rb
@@ -50,7 +50,7 @@ class Gem::Commands::CertCommand < Gem::Command
'Build private key and self-signed',
'certificate for EMAIL_ADDR.') do |value, options|
vals = Gem::Security.build_self_signed_cert(value)
- File.chmod 0600, vals[:key_path]
+ FileUtils.chmod 0600, vals[:key_path]
say "Public Cert: #{vals[:cert_path]}"
say "Private Key: #{vals[:key_path]}"
say "Don't forget to move the key file to somewhere private..."
@@ -59,21 +59,21 @@ class Gem::Commands::CertCommand < Gem::Command
add_option('-C', '--certificate CERT',
'Certificate for --sign command.') do |value, options|
cert = OpenSSL::X509::Certificate.new(File.read(value))
- Gem::Security::OPT[:issuer_cert] = cert
+ options[:issuer_cert] = cert
end
add_option('-K', '--private-key KEY',
'Private key for --sign command.') do |value, options|
key = OpenSSL::PKey::RSA.new(File.read(value))
- Gem::Security::OPT[:issuer_key] = key
+ options[:issuer_key] = key
end
add_option('-s', '--sign NEWCERT',
'Sign a certificate with my key and',
'certificate.') do |value, options|
cert = OpenSSL::X509::Certificate.new(File.read(value))
- my_cert = Gem::Security::OPT[:issuer_cert]
- my_key = Gem::Security::OPT[:issuer_key]
+ my_cert = options[:issuer_cert]
+ my_key = options[:issuer_key]
cert = Gem::Security.sign_cert(cert, my_key, my_cert)
File.open(value, 'wb') { |file| file.write(cert.to_pem) }
end
diff --git a/lib/rubygems/commands/check_command.rb b/lib/rubygems/commands/check_command.rb
index 4eefca4232..5a1bfd4f12 100644
--- a/lib/rubygems/commands/check_command.rb
+++ b/lib/rubygems/commands/check_command.rb
@@ -21,33 +21,23 @@ class Gem::Commands::CheckCommand < Gem::Command
options[:alien] = true
end
- add_option('-t', '--test', "Run unit tests for gem") do |value, options|
- options[:test] = true
- end
-
- add_version_option 'run tests for'
+ add_version_option 'check'
end
def execute
- if options[:test]
- version = options[:version] || Gem::Requirement.default
- dep = Gem::Dependency.new get_one_gem_name, version
- gem_spec = Gem::SourceIndex.from_installed_gems.search(dep).first
- Gem::Validator.new.unit_test(gem_spec)
- end
-
if options[:alien]
say "Performing the 'alien' operation"
- Gem::Validator.new.alien.each do |key, val|
- if(val.size > 0)
+ say
+ gems = get_all_gem_names rescue []
+ Gem::Validator.new.alien(gems).sort.each do |key, val|
+ unless val.empty? then
say "#{key} has #{val.size} problems"
val.each do |error_entry|
- say "\t#{error_entry.path}:"
- say "\t#{error_entry.problem}"
- say
+ say " #{error_entry.path}:"
+ say " #{error_entry.problem}"
end
else
- say "#{key} is error-free"
+ say "#{key} is error-free" if Gem.configuration.verbose
end
say
end
@@ -66,7 +56,7 @@ class Gem::Commands::CheckCommand < Gem::Command
say "Verifying gem: '#{gem_name}'"
begin
Gem::Validator.new.verify_gem_file(gem_name)
- rescue Exception => e
+ rescue Exception
alert_error "#{gem_name} is invalid."
end
end
diff --git a/lib/rubygems/commands/cleanup_command.rb b/lib/rubygems/commands/cleanup_command.rb
index 40dcb9db34..124c4c203a 100644
--- a/lib/rubygems/commands/cleanup_command.rb
+++ b/lib/rubygems/commands/cleanup_command.rb
@@ -1,13 +1,13 @@
require 'rubygems/command'
-require 'rubygems/source_index'
require 'rubygems/dependency_list'
+require 'rubygems/uninstaller'
class Gem::Commands::CleanupCommand < Gem::Command
def initialize
super 'cleanup',
'Clean up old versions of installed gems in the local repository',
- :force => false, :test => false, :install_dir => Gem.dir
+ :force => false, :install_dir => Gem.dir
add_option('-d', '--dryrun', "") do |value, options|
options[:dryrun] = true
@@ -22,6 +22,13 @@ class Gem::Commands::CleanupCommand < Gem::Command
"--no-dryrun"
end
+ def description # :nodoc:
+ <<-EOF
+The cleanup command removes old gems from GEM_HOME. If an older version is
+installed elsewhere in GEM_PATH the cleanup command won't touch it.
+ EOF
+ end
+
def usage # :nodoc:
"#{program_name} [GEMNAME ...]"
end
@@ -30,38 +37,32 @@ class Gem::Commands::CleanupCommand < Gem::Command
say "Cleaning up installed gems..."
primary_gems = {}
- Gem.source_index.each do |name, spec|
+ Gem::Specification.each do |spec|
if primary_gems[spec.name].nil? or
primary_gems[spec.name].version < spec.version then
primary_gems[spec.name] = spec
end
end
- gems_to_cleanup = []
-
- unless options[:args].empty? then
- options[:args].each do |gem_name|
- specs = Gem.cache.search(/^#{gem_name}$/i)
- specs.each do |spec|
- gems_to_cleanup << spec
- end
- end
- else
- Gem.source_index.each do |name, spec|
- gems_to_cleanup << spec
- end
- end
+ gems_to_cleanup = unless options[:args].empty? then
+ options[:args].map do |gem_name|
+ Gem::Specification.find_all_by_name gem_name
+ end.flatten
+ else
+ Gem::Specification.to_a
+ end
gems_to_cleanup = gems_to_cleanup.select { |spec|
primary_gems[spec.name].version != spec.version
}
- uninstall_command = Gem::CommandManager.instance['uninstall']
deplist = Gem::DependencyList.new
gems_to_cleanup.uniq.each do |spec| deplist.add spec end
deps = deplist.strongly_connected_components.flatten.reverse
+ original_path = Gem.path
+
deps.each do |spec|
if options[:dryrun] then
say "Dry Run Mode: Would uninstall #{spec.full_name}"
@@ -69,19 +70,27 @@ class Gem::Commands::CleanupCommand < Gem::Command
say "Attempting to uninstall #{spec.full_name}"
options[:args] = [spec.name]
- options[:version] = "= #{spec.version}"
- options[:executables] = false
- uninstaller = Gem::Uninstaller.new spec.name, options
+ uninstall_options = {
+ :executables => false,
+ :version => "= #{spec.version}",
+ }
+
+ uninstall_options[:user_install] = Gem.user_dir == spec.base_dir
+
+ uninstaller = Gem::Uninstaller.new spec.name, uninstall_options
begin
uninstaller.uninstall
- rescue Gem::DependencyRemovalException,
- Gem::GemNotInHomeException => e
+ rescue Gem::DependencyRemovalException, Gem::InstallError,
+ Gem::GemNotInHomeException, Gem::FilePermissionError => e
say "Unable to uninstall #{spec.full_name}:"
say "\t#{e.class}: #{e.message}"
end
end
+
+ # Restore path Gem::Uninstaller may have change
+ Gem.use_paths(*original_path)
end
say "Clean Up Complete"
diff --git a/lib/rubygems/commands/contents_command.rb b/lib/rubygems/commands/contents_command.rb
index bc75fb5c03..e483484615 100644
--- a/lib/rubygems/commands/contents_command.rb
+++ b/lib/rubygems/commands/contents_command.rb
@@ -7,10 +7,15 @@ class Gem::Commands::ContentsCommand < Gem::Command
def initialize
super 'contents', 'Display the contents of the installed gems',
- :specdirs => [], :lib_only => false
+ :specdirs => [], :lib_only => false, :prefix => true
add_version_option
+ add_option( '--all',
+ "Contents for all gems") do |all, options|
+ options[:all] = all
+ end
+
add_option('-s', '--spec-dir a,b,c', Array,
"Search for gems under specific paths") do |spec_dirs, options|
options[:specdirs] = spec_dirs
@@ -20,6 +25,11 @@ class Gem::Commands::ContentsCommand < Gem::Command
"Only return files in the Gem's lib_dirs") do |lib_only, options|
options[:lib_only] = lib_only
end
+
+ add_option( '--[no-]prefix',
+ "Don't include installed path prefix") do |prefix, options|
+ options[:prefix] = prefix
+ end
end
def arguments # :nodoc:
@@ -27,46 +37,63 @@ class Gem::Commands::ContentsCommand < Gem::Command
end
def defaults_str # :nodoc:
- "--no-lib-only"
+ "--no-lib-only --prefix"
end
def usage # :nodoc:
- "#{program_name} GEMNAME"
+ "#{program_name} GEMNAME [GEMNAME ...]"
end
def execute
version = options[:version] || Gem::Requirement.default
- gem = get_one_gem_name
- s = options[:specdirs].map do |i|
+ spec_dirs = options[:specdirs].map do |i|
[i, File.join(i, "specifications")]
end.flatten
- path_kind = if s.empty? then
- s = Gem::SourceIndex.installed_spec_directories
+ path_kind = if spec_dirs.empty? then
+ spec_dirs = Gem::Specification.dirs
"default gem paths"
else
"specified path"
end
- si = Gem::SourceIndex.from_gems_in(*s)
+ gem_names = if options[:all] then
+ Gem::Specification.map(&:name)
+ else
+ get_all_gem_names
+ end
+
+ gem_names.each do |name|
+ # HACK: find_by_name fails for some reason... ARGH
+ # How many places must we embed our resolve logic?
+ spec = Gem::Specification.find_all_by_name(name, version).last
- gem_spec = si.find_name(gem, version).last
+ unless spec then
+ say "Unable to find gem '#{name}' in #{path_kind}"
- unless gem_spec then
- say "Unable to find gem '#{gem}' in #{path_kind}"
+ if Gem.configuration.verbose then
+ say "\nDirectories searched:"
+ spec_dirs.each { |dir| say dir }
+ end
- if Gem.configuration.verbose then
- say "\nDirectories searched:"
- s.each { |dir| say dir }
+ terminate_interaction 1 if gem_names.length == 1
end
- terminate_interaction
- end
+ gem_path = spec.full_gem_path
+ extra = "/{#{spec.require_paths.join ','}}" if options[:lib_only]
+ glob = "#{gem_path}#{extra}/**/*"
+ files = Dir[glob]
+
+ gem_path = File.join gem_path, '' # add trailing / if missing
- files = options[:lib_only] ? gem_spec.lib_files : gem_spec.files
- files.each do |f|
- say File.join(gem_spec.full_gem_path, f)
+ files.sort.each do |file|
+ next if File.directory? file
+
+ file = file.sub gem_path, '' unless options[:prefix]
+
+ say file
+ end
end
end
diff --git a/lib/rubygems/commands/dependency_command.rb b/lib/rubygems/commands/dependency_command.rb
index 44b269bb11..67cbbc1d5e 100644
--- a/lib/rubygems/commands/dependency_command.rb
+++ b/lib/rubygems/commands/dependency_command.rb
@@ -1,7 +1,6 @@
require 'rubygems/command'
require 'rubygems/local_remote_options'
require 'rubygems/version_option'
-require 'rubygems/source_info_cache'
class Gem::Commands::DependencyCommand < Gem::Command
@@ -15,6 +14,7 @@ class Gem::Commands::DependencyCommand < Gem::Command
add_version_option
add_platform_option
+ add_prerelease_option
add_option('-R', '--[no-]reverse-dependencies',
'Include reverse dependencies in the output') do
@@ -43,13 +43,13 @@ class Gem::Commands::DependencyCommand < Gem::Command
end
def execute
- options[:args] << '' if options[:args].empty?
- specs = {}
-
- source_indexes = Hash.new do |h, source_uri|
- h[source_uri] = Gem::SourceIndex.new
+ if options[:reverse_dependencies] and remote? and not local? then
+ alert_error 'Only reverse dependencies for local gems are supported.'
+ terminate_interaction 1
end
+ options[:args] << '' if options[:args].empty?
+
pattern = if options[:args].length == 1 and
options[:args].first =~ /\A\/(.*)\/(i)?\z/m then
flags = $2 ? Regexp::IGNORECASE : nil
@@ -58,42 +58,30 @@ class Gem::Commands::DependencyCommand < Gem::Command
/\A#{Regexp.union(*options[:args])}/
end
- dependency = Gem::Dependency.new pattern, options[:version]
+ # TODO: deprecate for real damnit
+ dependency = Gem::Deprecate.skip_during {
+ Gem::Dependency.new pattern, options[:version]
+ }
+ dependency.prerelease = options[:prerelease]
- if options[:reverse_dependencies] and remote? and not local? then
- alert_error 'Only reverse dependencies for local gems are supported.'
- terminate_interaction 1
- end
+ specs = []
- if local? then
- Gem.source_index.search(dependency).each do |spec|
- source_indexes[:local].add_spec spec
- end
- end
+ specs.concat dependency.matching_specs if local?
if remote? and not options[:reverse_dependencies] then
fetcher = Gem::SpecFetcher.fetcher
- begin
- fetcher.find_matching(dependency).each do |spec_tuple, source_uri|
- spec = fetcher.fetch_spec spec_tuple, URI.parse(source_uri)
-
- source_indexes[source_uri].add_spec spec
- end
- rescue Gem::RemoteFetcher::FetchError => e
- raise unless fetcher.warn_legacy e do
- require 'rubygems/source_info_cache'
+ # REFACTOR: fetcher.find_specs_matching => specs
+ specs_and_sources = fetcher.find_matching(dependency,
+ dependency.specific?, true,
+ dependency.prerelease?)
- specs = Gem::SourceInfoCache.search_with_source dependency, false
-
- specs.each do |spec, source_uri|
- source_indexes[source_uri].add_spec spec
- end
- end
- end
+ specs.concat specs_and_sources.map { |spec_tuple, source_uri|
+ fetcher.fetch_spec spec_tuple, URI.parse(source_uri)
+ }
end
- if source_indexes.empty? then
+ if specs.empty? then
patterns = options[:args].join ','
say "No gems found matching #{patterns} (#{options[:version]})" if
Gem.configuration.verbose
@@ -101,34 +89,28 @@ class Gem::Commands::DependencyCommand < Gem::Command
terminate_interaction 1
end
- specs = {}
-
- source_indexes.values.each do |source_index|
- source_index.gems.each do |name, spec|
- specs[spec.full_name] = [source_index, spec]
- end
- end
+ specs = specs.uniq.sort
reverse = Hash.new { |h, k| h[k] = [] }
if options[:reverse_dependencies] then
- specs.values.each do |_, spec|
+ specs.each do |spec|
reverse[spec.full_name] = find_reverse_dependencies spec
end
end
if options[:pipe_format] then
- specs.values.sort_by { |_, spec| spec }.each do |_, spec|
+ specs.each do |spec|
unless spec.dependencies.empty?
- spec.dependencies.each do |dep|
- say "#{dep.name} --version '#{dep.version_requirements}'"
+ spec.dependencies.sort_by { |dep| dep.name }.each do |dep|
+ say "#{dep.name} --version '#{dep.requirement}'"
end
end
end
else
response = ''
- specs.values.sort_by { |_, spec| spec }.each do |_, spec|
+ specs.each do |spec|
response << print_dependencies(spec)
unless reverse[spec.full_name].empty? then
response << " Used by\n"
@@ -147,23 +129,25 @@ class Gem::Commands::DependencyCommand < Gem::Command
response = ''
response << ' ' * level + "Gem #{spec.full_name}\n"
unless spec.dependencies.empty? then
- spec.dependencies.each do |dep|
+ spec.dependencies.sort_by { |dep| dep.name }.each do |dep|
response << ' ' * level + " #{dep}\n"
end
end
response
end
- # Retuns list of [specification, dep] that are satisfied by spec.
+ ##
+ # Returns an Array of [specification, dep] that are satisfied by +spec+.
+
def find_reverse_dependencies(spec)
result = []
- Gem.source_index.each do |name, sp|
+ Gem::Specification.each do |sp|
sp.dependencies.each do |dep|
dep = Gem::Dependency.new(*dep) unless Gem::Dependency === dep
if spec.name == dep.name and
- dep.version_requirements.satisfied_by?(spec.version) then
+ dep.requirement.satisfied_by?(spec.version) then
result << [sp.full_name, dep]
end
end
@@ -172,17 +156,5 @@ class Gem::Commands::DependencyCommand < Gem::Command
result
end
- def find_gems(name, source_index)
- specs = {}
-
- spec_list = source_index.search name, options[:version]
-
- spec_list.each do |spec|
- specs[spec.full_name] = [source_index, spec]
- end
-
- specs
- end
-
end
diff --git a/lib/rubygems/commands/environment_command.rb b/lib/rubygems/commands/environment_command.rb
index e672da54f0..9585c71250 100644
--- a/lib/rubygems/commands/environment_command.rb
+++ b/lib/rubygems/commands/environment_command.rb
@@ -13,6 +13,7 @@ class Gem::Commands::EnvironmentCommand < Gem::Command
gempath display path used to search for gems
version display the gem format version
remotesources display the remote gem servers
+ platform display the supported gem platforms
<omitted> display everything
EOF
return args.gsub(/^\s+/, '')
@@ -32,8 +33,6 @@ is a YAML file with the following YAML keys:
levels
:update_sources: Enable/disable automatic updating of repository metadata
:backtrace: Print backtrace when RubyGems encounters an error
- :bulk_threshold: Switch to a bulk update when this many sources are out of
- date (legacy setting)
:gempath: The paths in which to look for gems
gem_command: A string containing arguments for the specified gem command
@@ -43,7 +42,7 @@ Example:
install: --no-wrappers
update: --no-wrappers
-RubyGems' default local repository can be overriden with the GEM_PATH and
+RubyGems' default local repository can be overridden with the GEM_PATH and
GEM_HOME environment variables. GEM_HOME sets the default repository to
install into. GEM_PATH allows multiple local repositories to be searched for
gems.
@@ -69,17 +68,19 @@ lib/rubygems/defaults/operating_system.rb
when /^packageversion/ then
out << Gem::RubyGemsPackageVersion
when /^version/ then
- out << Gem::RubyGemsVersion
+ out << Gem::VERSION
when /^gemdir/, /^gemhome/, /^home/, /^GEM_HOME/ then
out << Gem.dir
when /^gempath/, /^path/, /^GEM_PATH/ then
out << Gem.path.join(File::PATH_SEPARATOR)
when /^remotesources/ then
out << Gem.sources.join("\n")
+ when /^platform/ then
+ out << Gem.platforms.join(File::PATH_SEPARATOR)
when nil then
out = "RubyGems Environment:\n"
- out << " - RUBYGEMS VERSION: #{Gem::RubyGemsVersion}\n"
+ out << " - RUBYGEMS VERSION: #{Gem::VERSION}\n"
out << " - RUBY VERSION: #{RUBY_VERSION} (#{RUBY_RELEASE_DATE}"
out << " patchlevel #{RUBY_PATCHLEVEL}" if defined? RUBY_PATCHLEVEL
@@ -109,6 +110,7 @@ lib/rubygems/defaults/operating_system.rb
out << " - GEM CONFIGURATION:\n"
Gem.configuration.each do |name, value|
+ value = value.gsub(/./, '*') if name == 'gemcutter_key'
out << " - #{name.inspect} => #{value.inspect}\n"
end
@@ -118,7 +120,7 @@ lib/rubygems/defaults/operating_system.rb
end
else
- fail Gem::CommandLineError, "Unknown enviroment option [#{arg}]"
+ raise Gem::CommandLineError, "Unknown environment option [#{arg}]"
end
say out
true
diff --git a/lib/rubygems/commands/fetch_command.rb b/lib/rubygems/commands/fetch_command.rb
index 76c9924e6b..e7c9cc9525 100644
--- a/lib/rubygems/commands/fetch_command.rb
+++ b/lib/rubygems/commands/fetch_command.rb
@@ -1,7 +1,6 @@
require 'rubygems/command'
require 'rubygems/local_remote_options'
require 'rubygems/version_option'
-require 'rubygems/source_info_cache'
class Gem::Commands::FetchCommand < Gem::Command
@@ -14,9 +13,11 @@ class Gem::Commands::FetchCommand < Gem::Command
add_bulk_threshold_option
add_proxy_option
add_source_option
+ add_clear_sources_option
add_version_option
add_platform_option
+ add_prerelease_option
end
def arguments # :nodoc:
@@ -33,26 +34,41 @@ class Gem::Commands::FetchCommand < Gem::Command
def execute
version = options[:version] || Gem::Requirement.default
- all = Gem::Requirement.default
+ all = Gem::Requirement.default != version
+ platform = Gem.platforms.last
gem_names = get_all_gem_names
gem_names.each do |gem_name|
dep = Gem::Dependency.new gem_name, version
+ dep.prerelease = options[:prerelease]
- specs_and_sources = Gem::SpecFetcher.fetcher.fetch dep, all
+ specs_and_sources, errors =
+ Gem::SpecFetcher.fetcher.fetch_with_errors(dep, all, true,
+ dep.prerelease?)
- specs_and_sources.sort_by { |spec,| spec.version }
+ if platform then
+ filtered = specs_and_sources.select { |s,| s.platform == platform }
+ specs_and_sources = filtered unless filtered.empty?
+ end
- spec, source_uri = specs_and_sources.last
+ spec, source_uri = specs_and_sources.sort_by { |s,| s.version }.last
if spec.nil? then
- alert_error "Could not find #{gem_name} in any repository"
+ show_lookup_failure gem_name, version, errors, options[:domain]
next
end
- path = Gem::RemoteFetcher.fetcher.download spec, source_uri
- FileUtils.mv path, "#{spec.full_name}.gem"
+ file = "#{spec.full_name}.gem"
+ remote_path = URI.parse(source_uri) + "gems/#{file}"
+
+ fetch = Gem::RemoteFetcher.fetcher
+
+ gem = fetch.fetch_path remote_path.to_s
+
+ File.open file, "wb" do |f|
+ f.write gem
+ end
say "Downloaded #{spec.full_name}"
end
diff --git a/lib/rubygems/commands/generate_index_command.rb b/lib/rubygems/commands/generate_index_command.rb
index 1bd87569ed..d4b4790649 100644
--- a/lib/rubygems/commands/generate_index_command.rb
+++ b/lib/rubygems/commands/generate_index_command.rb
@@ -1,55 +1,122 @@
require 'rubygems/command'
require 'rubygems/indexer'
+##
+# Generates a index files for use as a gem server.
+#
+# See `gem help generate_index`
+
class Gem::Commands::GenerateIndexCommand < Gem::Command
def initialize
super 'generate_index',
'Generates the index files for a gem server directory',
- :directory => '.'
+ :directory => '.', :build_legacy => true, :build_modern => true
add_option '-d', '--directory=DIRNAME',
'repository base dir containing gems subdir' do |dir, options|
options[:directory] = File.expand_path dir
end
+
+ add_option '--[no-]legacy',
+ 'Generate Marshal.4.8' do |value, options|
+ unless options[:build_modern] or value then
+ raise OptionParser::InvalidOption, 'no indicies will be built'
+ end
+
+ options[:build_legacy] = value
+ end
+
+ add_option '--[no-]modern',
+ 'Generate indexes for RubyGems newer',
+ 'than 1.2.0' do |value, options|
+ unless options[:build_legacy] or value then
+ raise OptionParser::InvalidOption, 'no indicies will be built'
+ end
+
+ options[:build_modern] = value
+ end
+
+ add_option '--update',
+ 'Update modern indexes with gems added',
+ 'since the last update' do |value, options|
+ options[:update] = value
+ end
+
+ add_option :RSS, '--rss-gems-host=GEM_HOST',
+ 'Host name where gems are served from,',
+ 'used for GUID and enclosure values' do |value, options|
+ options[:rss_gems_host] = value
+ end
+
+ add_option :RSS, '--rss-host=HOST',
+ 'Host name for more gems information,',
+ 'used for RSS feed link' do |value, options|
+ options[:rss_host] = value
+ end
+
+ add_option :RSS, '--rss-title=TITLE',
+ 'Set title for RSS feed' do |value, options|
+ options[:rss_title] = value
+ end
end
def defaults_str # :nodoc:
- "--directory ."
+ "--directory . --legacy --modern"
end
def description # :nodoc:
<<-EOF
The generate_index command creates a set of indexes for serving gems
statically. The command expects a 'gems' directory under the path given to
-the --directory option. When done, it will generate a set of files like this:
+the --directory option. The given directory will be the directory you serve
+as the gem repository.
+
+For `gem generate_index --directory /path/to/repo`, expose /path/to/repo via
+your HTTP server configuration (not /path/to/repo/gems).
- gems/ # .gem files you want to index
- quick/index
- quick/index.rz # quick index manifest
- quick/<gemname>.gemspec.rz # legacy YAML quick index file
+When done, it will generate a set of files like this:
+
+ gems/*.gem # .gem files you want to
+ # index
+
+ specs.<version>.gz # specs index
+ latest_specs.<version>.gz # latest specs index
+ prerelease_specs.<version>.gz # prerelease specs index
quick/Marshal.<version>/<gemname>.gemspec.rz # Marshal quick index file
+
+ # these files support legacy RubyGems
Marshal.<version>
- Marshal.<version>.Z # Marshal full index
- yaml
- yaml.Z # legacy YAML full index
-
-The .Z and .rz extension files are compressed with the inflate algorithm. The
-Marshal version number comes from ruby's Marshal::MAJOR_VERSION and
-Marshal::MINOR_VERSION constants. It is used to ensure compatibility. The
-yaml indexes exist for legacy RubyGems clients and fallback in case of Marshal
-version changes.
+ Marshal.<version>.Z # Marshal full index
+
+The .Z and .rz extension files are compressed with the inflate algorithm.
+The Marshal version number comes from ruby's Marshal::MAJOR_VERSION and
+Marshal::MINOR_VERSION constants. It is used to ensure compatibility.
+
+If --rss-host and --rss-gem-host are given an RSS feed will be generated at
+index.rss containing gems released in the last two days.
EOF
end
def execute
+ if options[:update] and
+ (options[:rss_host] or options[:rss_gems_host]) then
+ alert_error '--update not compatible with RSS generation'
+ terminate_interaction 1
+ end
+
if not File.exist?(options[:directory]) or
not File.directory?(options[:directory]) then
alert_error "unknown directory name #{directory}."
terminate_interaction 1
else
- indexer = Gem::Indexer.new options[:directory]
- indexer.generate_index
+ indexer = Gem::Indexer.new options.delete(:directory), options
+
+ if options[:update] then
+ indexer.update_index
+ else
+ indexer.generate_index
+ end
end
end
diff --git a/lib/rubygems/commands/help_command.rb b/lib/rubygems/commands/help_command.rb
index 0c4a4ec16f..20b52429b2 100644
--- a/lib/rubygems/commands/help_command.rb
+++ b/lib/rubygems/commands/help_command.rb
@@ -14,11 +14,6 @@ Some examples of 'gem' usage.
gem install rake --remote
-* Install 'rake' from remote server, and run unit tests,
- and generate RDocs:
-
- gem install --remote rake --test --rdoc --ri
-
* Install 'rake', but only version 0.3.1, even if dependencies
are not met, and into a user-specific directory:
diff --git a/lib/rubygems/commands/install_command.rb b/lib/rubygems/commands/install_command.rb
index 1a6eb68a8b..003ba8601c 100644
--- a/lib/rubygems/commands/install_command.rb
+++ b/lib/rubygems/commands/install_command.rb
@@ -6,6 +6,11 @@ require 'rubygems/local_remote_options'
require 'rubygems/validator'
require 'rubygems/version_option'
+##
+# Gem installer command line tool
+#
+# See `gem help install`
+
class Gem::Commands::InstallCommand < Gem::Command
include Gem::VersionOption
@@ -14,11 +19,10 @@ class Gem::Commands::InstallCommand < Gem::Command
def initialize
defaults = Gem::DependencyInstaller::DEFAULT_OPTIONS.merge({
- :generate_rdoc => true,
- :generate_ri => true,
+ :generate_rdoc => true,
+ :generate_ri => true,
:format_executable => false,
- :test => false,
- :version => Gem::Requirement.default,
+ :version => Gem::Requirement.default,
})
super 'install', 'Install a gem into the local repository', defaults
@@ -27,6 +31,7 @@ class Gem::Commands::InstallCommand < Gem::Command
add_local_remote_options
add_platform_option
add_version_option
+ add_prerelease_option "to be installed. (Only for listed gems)"
end
def arguments # :nodoc:
@@ -35,7 +40,7 @@ class Gem::Commands::InstallCommand < Gem::Command
def defaults_str # :nodoc:
"--both --version '#{Gem::Requirement.default}' --rdoc --ri --no-force\n" \
- "--no-test --install-dir #{Gem.dir}"
+ "--install-dir #{Gem.dir}"
end
def description # :nodoc:
@@ -43,11 +48,51 @@ class Gem::Commands::InstallCommand < Gem::Command
The install command installs local or remote gem into a gem repository.
For gems with executables ruby installs a wrapper file into the executable
-directory by deault. This can be overridden with the --no-wrappers option.
+directory by default. This can be overridden with the --no-wrappers option.
The wrapper allows you to choose among alternate gem versions using _version_.
For example `rake _0.7.3_ --version` will run rake version 0.7.3 if a newer
version is also installed.
+
+If an extension fails to compile during gem installation the gem
+specification is not written out, but the gem remains unpacked in the
+repository. You may need to specify the path to the library's headers and
+libraries to continue. You can do this by adding a -- between RubyGems'
+options and the extension's build options:
+
+ $ gem install some_extension_gem
+ [build fails]
+ Gem files will remain installed in \\
+ /path/to/gems/some_extension_gem-1.0 for inspection.
+ Results logged to /path/to/gems/some_extension_gem-1.0/gem_make.out
+ $ gem install some_extension_gem -- --with-extension-lib=/path/to/lib
+ [build succeeds]
+ $ gem list some_extension_gem
+
+ *** LOCAL GEMS ***
+
+ some_extension_gem (1.0)
+ $
+
+If you correct the compilation errors by editing the gem files you will need
+to write the specification by hand. For example:
+
+ $ gem install some_extension_gem
+ [build fails]
+ Gem files will remain installed in \\
+ /path/to/gems/some_extension_gem-1.0 for inspection.
+ Results logged to /path/to/gems/some_extension_gem-1.0/gem_make.out
+ $ [cd /path/to/gems/some_extension_gem-1.0]
+ $ [edit files or what-have-you and run make]
+ $ gem spec ../../cache/some_extension_gem-1.0.gem --ruby > \\
+ ../../specifications/some_extension_gem-1.0.gemspec
+ $ gem list some_extension_gem
+
+ *** LOCAL GEMS ***
+
+ some_extension_gem (1.0)
+ $
+
EOF
end
@@ -65,24 +110,14 @@ version is also installed.
ENV.delete 'GEM_PATH' if options[:install_dir].nil? and RUBY_VERSION > '1.9'
- install_options = {
- :env_shebang => options[:env_shebang],
- :domain => options[:domain],
- :force => options[:force],
- :format_executable => options[:format_executable],
- :ignore_dependencies => options[:ignore_dependencies],
- :install_dir => options[:install_dir],
- :security_policy => options[:security_policy],
- :wrappers => options[:wrappers],
- :bin_dir => options[:bin_dir],
- :development => options[:development],
- }
-
exit_code = 0
get_all_gem_names.each do |gem_name|
begin
- inst = Gem::DependencyInstaller.new install_options
+ next if options[:conservative] and
+ not Gem::Dependency.new(gem_name, options[:version]).matching_specs.empty?
+
+ inst = Gem::DependencyInstaller.new options
inst.install gem_name, options[:version]
inst.installed_gems.each do |spec|
@@ -94,49 +129,31 @@ version is also installed.
alert_error "Error installing #{gem_name}:\n\t#{e.message}"
exit_code |= 1
rescue Gem::GemNotFoundException => e
- alert_error e.message
+ show_lookup_failure e.name, e.version, e.errors, options[:domain]
+
exit_code |= 2
-# rescue => e
-# # TODO: Fix this handle to allow the error to propagate to
-# # the top level handler. Examine the other errors as
-# # well. This implementation here looks suspicious to me --
-# # JimWeirich (4/Jan/05)
-# alert_error "Error installing gem #{gem_name}: #{e.message}"
-# return
end
end
unless installed_gems.empty? then
gems = installed_gems.length == 1 ? 'gem' : 'gems'
say "#{installed_gems.length} #{gems} installed"
- end
-
- # NOTE: *All* of the RI documents must be generated first.
- # For some reason, RI docs cannot be generated after any RDoc
- # documents are generated.
- if options[:generate_ri] then
- installed_gems.each do |gem|
- Gem::DocManager.new(gem, options[:rdoc_args]).generate_ri
- end
+ # NOTE: *All* of the RI documents must be generated first. For some
+ # reason, RI docs cannot be generated after any RDoc documents are
+ # generated.
- Gem::DocManager.update_ri_cache
- end
+ if options[:generate_ri] then
+ installed_gems.each do |gem|
+ Gem::DocManager.new(gem, options[:rdoc_args]).generate_ri
+ end
- if options[:generate_rdoc] then
- installed_gems.each do |gem|
- Gem::DocManager.new(gem, options[:rdoc_args]).generate_rdoc
+ Gem::DocManager.update_ri_cache
end
- end
- if options[:test] then
- installed_gems.each do |spec|
- gem_spec = Gem::SourceIndex.from_installed_gems.search(spec.name, spec.version.version).first
- result = Gem::Validator.new.unit_test(gem_spec)
- if result and not result.passed?
- unless ask_yes_no("...keep Gem?", true) then
- Gem::Uninstaller.new(spec.name, :version => spec.version.version).uninstall
- end
+ if options[:generate_rdoc] then
+ installed_gems.each do |gem|
+ Gem::DocManager.new(gem, options[:rdoc_args]).generate_rdoc
end
end
end
diff --git a/lib/rubygems/commands/lock_command.rb b/lib/rubygems/commands/lock_command.rb
index 5a43978dd9..a6dca320ef 100644
--- a/lib/rubygems/commands/lock_command.rb
+++ b/lib/rubygems/commands/lock_command.rb
@@ -75,7 +75,7 @@ lock it down to the exact version.
until pending.empty? do
full_name = pending.shift
- spec = Gem::SourceIndex.load_specification spec_path(full_name)
+ spec = Gem::Specification.load spec_path(full_name)
if spec.nil? then
complain "Could not find gem #{full_name}, try using the full name"
@@ -87,7 +87,7 @@ lock it down to the exact version.
spec.runtime_dependencies.each do |dep|
next if locked[dep.name]
- candidates = Gem.source_index.search dep
+ candidates = dep.matching_specs
if candidates.empty? then
complain "Unable to satisfy '#{dep}' from currently installed gems"
@@ -99,11 +99,11 @@ lock it down to the exact version.
end
def spec_path(gem_full_name)
- gemspecs = Gem.path.map do |path|
+ gemspecs = Gem.path.map { |path|
File.join path, "specifications", "#{gem_full_name}.gemspec"
- end
+ }
- gemspecs.find { |gemspec| File.exist? gemspec }
+ gemspecs.find { |path| File.exist? path }
end
end
diff --git a/lib/rubygems/commands/mirror_command.rb b/lib/rubygems/commands/mirror_command.rb
deleted file mode 100644
index 959b8eaec3..0000000000
--- a/lib/rubygems/commands/mirror_command.rb
+++ /dev/null
@@ -1,111 +0,0 @@
-require 'yaml'
-require 'zlib'
-
-require 'rubygems/command'
-require 'open-uri'
-
-class Gem::Commands::MirrorCommand < Gem::Command
-
- def initialize
- super 'mirror', 'Mirror a gem repository'
- end
-
- def description # :nodoc:
- <<-EOF
-The mirror command uses the ~/.gemmirrorrc config file to mirror remote gem
-repositories to a local path. The config file is a YAML document that looks
-like this:
-
- ---
- - from: http://gems.example.com # source repository URI
- to: /path/to/mirror # destination directory
-
-Multiple sources and destinations may be specified.
- EOF
- end
-
- def execute
- config_file = File.join Gem.user_home, '.gemmirrorrc'
-
- raise "Config file #{config_file} not found" unless File.exist? config_file
-
- mirrors = YAML.load_file config_file
-
- raise "Invalid config file #{config_file}" unless mirrors.respond_to? :each
-
- mirrors.each do |mir|
- raise "mirror missing 'from' field" unless mir.has_key? 'from'
- raise "mirror missing 'to' field" unless mir.has_key? 'to'
-
- get_from = mir['from']
- save_to = File.expand_path mir['to']
-
- raise "Directory not found: #{save_to}" unless File.exist? save_to
- raise "Not a directory: #{save_to}" unless File.directory? save_to
-
- gems_dir = File.join save_to, "gems"
-
- if File.exist? gems_dir then
- raise "Not a directory: #{gems_dir}" unless File.directory? gems_dir
- else
- Dir.mkdir gems_dir
- end
-
- sourceindex_data = ''
-
- say "fetching: #{get_from}/Marshal.#{Gem.marshal_version}.Z"
-
- get_from = URI.parse get_from
-
- if get_from.scheme.nil? then
- get_from = get_from.to_s
- elsif get_from.scheme == 'file' then
- # check if specified URI contains a drive letter (file:/D:/Temp)
- get_from = get_from.to_s
- get_from = if get_from =~ /^file:.*[a-z]:/i then
- get_from[6..-1]
- else
- get_from[5..-1]
- end
- end
-
- open File.join(get_from.to_s, "Marshal.#{Gem.marshal_version}.Z"), "rb" do |y|
- sourceindex_data = Zlib::Inflate.inflate y.read
- open File.join(save_to, "Marshal.#{Gem.marshal_version}"), "wb" do |out|
- out.write sourceindex_data
- end
- end
-
- sourceindex = Marshal.load(sourceindex_data)
-
- progress = ui.progress_reporter sourceindex.size,
- "Fetching #{sourceindex.size} gems"
- sourceindex.each do |fullname, gem|
- gem_file = "#{fullname}.gem"
- gem_dest = File.join gems_dir, gem_file
-
- unless File.exist? gem_dest then
- begin
- open "#{get_from}/gems/#{gem_file}", "rb" do |g|
- contents = g.read
- open gem_dest, "wb" do |out|
- out.write contents
- end
- end
- rescue
- old_gf = gem_file
- gem_file = gem_file.downcase
- retry if old_gf != gem_file
- alert_error $!
- end
- end
-
- progress.updated gem_file
- end
-
- progress.done
- end
- end
-
-end
-
diff --git a/lib/rubygems/commands/outdated_command.rb b/lib/rubygems/commands/outdated_command.rb
index 9e054f988c..ea6b9f0abf 100644
--- a/lib/rubygems/commands/outdated_command.rb
+++ b/lib/rubygems/commands/outdated_command.rb
@@ -16,18 +16,15 @@ class Gem::Commands::OutdatedCommand < Gem::Command
end
def execute
- locals = Gem::SourceIndex.from_installed_gems
+ Gem::Specification.outdated.sort.each do |name|
+ local = Gem::Specification.find_all_by_name(name).max
+ dep = Gem::Dependency.new local.name, ">= #{local.version}"
+ remotes = Gem::SpecFetcher.fetcher.fetch dep
- locals.outdated.sort.each do |name|
- local = locals.find_name(name).last
+ next if remotes.empty?
- dep = Gem::Dependency.new local.name, ">= #{local.version}"
- remotes = Gem::SpecFetcher.fetcher.fetch dep
remote = remotes.last.first
-
say "#{local.name} (#{local.version} < #{remote.version})"
end
end
-
end
-
diff --git a/lib/rubygems/commands/owner_command.rb b/lib/rubygems/commands/owner_command.rb
new file mode 100644
index 0000000000..6ebf9aa1aa
--- /dev/null
+++ b/lib/rubygems/commands/owner_command.rb
@@ -0,0 +1,76 @@
+require 'rubygems/command'
+require 'rubygems/local_remote_options'
+require 'rubygems/gemcutter_utilities'
+
+class Gem::Commands::OwnerCommand < Gem::Command
+ include Gem::LocalRemoteOptions
+ include Gem::GemcutterUtilities
+
+ def description # :nodoc:
+ 'Manage gem owners on RubyGems.org.'
+ end
+
+ def arguments # :nodoc:
+ "GEM gem to manage owners for"
+ end
+
+ def initialize
+ super 'owner', description
+ add_proxy_option
+ add_key_option
+ defaults.merge! :add => [], :remove => []
+
+ add_option '-a', '--add EMAIL', 'Add an owner' do |value, options|
+ options[:add] << value
+ end
+
+ add_option '-r', '--remove EMAIL', 'Remove an owner' do |value, options|
+ options[:remove] << value
+ end
+ end
+
+ def execute
+ sign_in
+ name = get_one_gem_name
+
+ add_owners name, options[:add]
+ remove_owners name, options[:remove]
+ show_owners name
+ end
+
+ def show_owners name
+ response = rubygems_api_request :get, "api/v1/gems/#{name}/owners.yaml" do |request|
+ request.add_field "Authorization", api_key
+ end
+
+ with_response response do |resp|
+ owners = YAML.load resp.body
+
+ say "Owners for gem: #{name}"
+ owners.each do |owner|
+ say "- #{owner['email']}"
+ end
+ end
+ end
+
+ def add_owners name, owners
+ manage_owners :post, name, owners
+ end
+
+ def remove_owners name, owners
+ manage_owners :delete, name, owners
+ end
+
+ def manage_owners method, name, owners
+ owners.each do |owner|
+ response = rubygems_api_request method, "api/v1/gems/#{name}/owners" do |request|
+ request.set_form_data 'email' => owner
+ request.add_field "Authorization", api_key
+ end
+
+ with_response response
+ end
+ end
+
+end
+
diff --git a/lib/rubygems/commands/pristine_command.rb b/lib/rubygems/commands/pristine_command.rb
index d47fe54edd..83e6cc7a67 100644
--- a/lib/rubygems/commands/pristine_command.rb
+++ b/lib/rubygems/commands/pristine_command.rb
@@ -1,4 +1,3 @@
-require 'fileutils'
require 'rubygems/command'
require 'rubygems/format'
require 'rubygems/installer'
@@ -11,7 +10,8 @@ class Gem::Commands::PristineCommand < Gem::Command
def initialize
super 'pristine',
'Restores installed gems to pristine condition from files located in the gem cache',
- :version => Gem::Requirement.default
+ :version => Gem::Requirement.default, :extensions => true,
+ :all => false
add_option('--all',
'Restore all installed gems to pristine',
@@ -19,6 +19,11 @@ class Gem::Commands::PristineCommand < Gem::Command
options[:all] = value
end
+ add_option('--[no-]extensions',
+ 'Restore gems with extensions') do |value, options|
+ options[:extensions] = value
+ end
+
add_version_option('restore to', 'pristine condition')
end
@@ -27,7 +32,7 @@ class Gem::Commands::PristineCommand < Gem::Command
end
def defaults_str # :nodoc:
- "--all"
+ "--all --extensions"
end
def description # :nodoc:
@@ -41,6 +46,9 @@ for the gem are regenerated.
If the cached gem cannot be found, you will need to use `gem install` to
revert the gem.
+
+If --no-extensions is provided pristine will not attempt to restore gems with
+extensions.
EOF
end
@@ -49,21 +57,17 @@ revert the gem.
end
def execute
- gem_name = nil
-
specs = if options[:all] then
- Gem::SourceIndex.from_installed_gems.map do |name, spec|
- spec
- end
+ Gem::Specification.map
else
- gem_name = get_one_gem_name
- Gem::SourceIndex.from_installed_gems.find_name(gem_name,
- options[:version])
+ get_all_gem_names.map do |gem_name|
+ Gem::Specification.find_all_by_name gem_name, options[:version]
+ end.flatten
end
- if specs.empty? then
+ if specs.to_a.empty? then
raise Gem::Exception,
- "Failed to find gem #{gem_name} #{options[:version]}"
+ "Failed to find gems #{options[:args]} #{options[:version]}"
end
install_dir = Gem.dir # TODO use installer option
@@ -71,23 +75,36 @@ revert the gem.
raise Gem::FilePermissionError.new(install_dir) unless
File.writable?(install_dir)
- say "Restoring gem(s) to pristine condition..."
+ say "Restoring gems to pristine condition..."
specs.each do |spec|
- gem = Dir[File.join(Gem.dir, 'cache', "#{spec.full_name}.gem")].first
-
- if gem.nil? then
- alert_error "Cached gem for #{spec.full_name} not found, use `gem install` to restore"
+ unless spec.extensions.empty? or options[:extensions] then
+ say "Skipped #{spec.full_name}, it needs to compile an extension"
next
end
+ gem = spec.cache_file
+
+ unless File.exist? gem then
+ require 'rubygems/remote_fetcher'
+
+ say "Cached gem for #{spec.full_name} not found, attempting to fetch..."
+ dep = Gem::Dependency.new spec.name, spec.version
+ Gem::RemoteFetcher.fetcher.download_to_cache dep
+ end
+
# TODO use installer options
- installer = Gem::Installer.new gem, :wrappers => true, :force => true
+ install_defaults = Gem::ConfigFile::PLATFORM_DEFAULTS['install']
+ installer_env_shebang = install_defaults.to_s['--env-shebang']
+
+ installer = Gem::Installer.new(gem,
+ :wrappers => true,
+ :force => true,
+ :install_dir => spec.base_dir,
+ :env_shebang => installer_env_shebang)
installer.install
say "Restored #{spec.full_name}"
end
end
-
end
-
diff --git a/lib/rubygems/commands/push_command.rb b/lib/rubygems/commands/push_command.rb
new file mode 100644
index 0000000000..a7663edf4a
--- /dev/null
+++ b/lib/rubygems/commands/push_command.rb
@@ -0,0 +1,60 @@
+require 'rubygems/command'
+require 'rubygems/local_remote_options'
+require 'rubygems/gemcutter_utilities'
+
+class Gem::Commands::PushCommand < Gem::Command
+ include Gem::LocalRemoteOptions
+ include Gem::GemcutterUtilities
+
+ def description # :nodoc:
+ 'Push a gem up to RubyGems.org'
+ end
+
+ def arguments # :nodoc:
+ "GEM built gem to push up"
+ end
+
+ def usage # :nodoc:
+ "#{program_name} GEM"
+ end
+
+ def initialize
+ super 'push', description
+ add_proxy_option
+ add_key_option
+
+ add_option(
+ '--host HOST',
+ 'Push to another gemcutter-compatible host'
+ ) do |value, options|
+ options[:host] = value
+ end
+ end
+
+ def execute
+ sign_in
+ send_gem get_one_gem_name
+ end
+
+ def send_gem name
+ args = [:post, "api/v1/gems"]
+
+ args << options[:host] if options[:host]
+
+ if Gem.latest_rubygems_version < Gem::Version.new(Gem::VERSION) then
+ alert_error "Using beta/unreleased version of rubygems. Not pushing."
+ terminate_interaction 1
+ end
+
+ response = rubygems_api_request(*args) do |request|
+ request.body = Gem.read_binary name
+ request.add_field "Content-Length", request.body.size
+ request.add_field "Content-Type", "application/octet-stream"
+ request.add_field "Authorization", api_key
+ end
+
+ with_response response
+ end
+
+end
+
diff --git a/lib/rubygems/commands/query_command.rb b/lib/rubygems/commands/query_command.rb
index 29fe8acb79..725da8787b 100644
--- a/lib/rubygems/commands/query_command.rb
+++ b/lib/rubygems/commands/query_command.rb
@@ -2,9 +2,11 @@ require 'rubygems/command'
require 'rubygems/local_remote_options'
require 'rubygems/spec_fetcher'
require 'rubygems/version_option'
+require 'rubygems/text'
class Gem::Commands::QueryCommand < Gem::Command
+ include Gem::Text
include Gem::LocalRemoteOptions
include Gem::VersionOption
@@ -19,7 +21,7 @@ class Gem::Commands::QueryCommand < Gem::Command
options[:installed] = value
end
- add_version_option
+ add_version_option command, "for use with --installed"
add_option('-n', '--name-matches REGEXP',
'Name of gem(s) to query on matches the',
@@ -43,6 +45,11 @@ class Gem::Commands::QueryCommand < Gem::Command
options[:all] = value
end
+ add_option( '--[no-]prerelease',
+ 'Display prerelease versions') do |value, options|
+ options[:prerelease] = value
+ end
+
add_local_remote_options
end
@@ -54,6 +61,7 @@ class Gem::Commands::QueryCommand < Gem::Command
exit_code = 0
name = options[:name]
+ prerelease = options[:prerelease]
if options[:installed] then
if name.source.empty? then
@@ -66,19 +74,27 @@ class Gem::Commands::QueryCommand < Gem::Command
exit_code |= 1
end
- raise Gem::SystemExitException, exit_code
+ terminate_interaction exit_code
end
- dep = Gem::Dependency.new name, Gem::Requirement.default
+ req = Gem::Requirement.default
+ # TODO: deprecate for real
+ dep = Gem::Deprecate.skip_during { Gem::Dependency.new name, req }
if local? then
+ if prerelease and not both? then
+ alert_warning "prereleases are always shown locally"
+ end
+
if ui.outs.tty? or both? then
say
say "*** LOCAL GEMS ***"
say
end
- specs = Gem.source_index.search dep
+ specs = Gem::Specification.find_all { |s|
+ s.name =~ name and req =~ s.version
+ }
spec_tuples = specs.map do |spec|
[[spec.name, spec.version, spec.original_platform, spec], :local]
@@ -96,23 +112,11 @@ class Gem::Commands::QueryCommand < Gem::Command
all = options[:all]
- begin
- fetcher = Gem::SpecFetcher.fetcher
- spec_tuples = fetcher.find_matching dep, all, false
- rescue Gem::RemoteFetcher::FetchError => e
- raise unless fetcher.warn_legacy e do
- require 'rubygems/source_info_cache'
+ fetcher = Gem::SpecFetcher.fetcher
+ spec_tuples = fetcher.find_matching dep, all, false, prerelease
- dep.name = '' if dep.name == //
-
- specs = Gem::SourceInfoCache.search_with_source dep, false, all
-
- spec_tuples = specs.map do |spec, source_uri|
- [[spec.name, spec.version, spec.original_platform, spec],
- source_uri]
- end
- end
- end
+ spec_tuples += fetcher.find_matching dep, false, false, true if
+ prerelease and all
output_query_results spec_tuples
end
@@ -123,9 +127,8 @@ class Gem::Commands::QueryCommand < Gem::Command
##
# Check if gem +name+ version +version+ is installed.
- def installed?(name, version = Gem::Requirement.default)
- dep = Gem::Dependency.new name, version
- !Gem.source_index.search(dep).empty?
+ def installed?(name, req = Gem::Requirement.default)
+ Gem::Specification.any? { |s| s.name =~ name and req =~ s.version }
end
def output_query_results(spec_tuples)
@@ -141,13 +144,19 @@ class Gem::Commands::QueryCommand < Gem::Command
end
versions.each do |gem_name, matching_tuples|
- matching_tuples = matching_tuples.sort_by do |(name, version,_),_|
+ matching_tuples = matching_tuples.sort_by do |(_, version,_),_|
version
end.reverse
+ platforms = Hash.new { |h,version| h[version] = [] }
+
+ matching_tuples.map do |(_, version, platform,_),_|
+ platforms[version] << platform if platform
+ end
+
seen = {}
- matching_tuples.delete_if do |(name, version,_),_|
+ matching_tuples.delete_if do |(_, version,_),_|
if seen[version] then
true
else
@@ -159,8 +168,21 @@ class Gem::Commands::QueryCommand < Gem::Command
entry = gem_name.dup
if options[:versions] then
- versions = matching_tuples.map { |(name, version,_),_| version }.uniq
- entry << " (#{versions.join ', '})"
+ list = if platforms.empty? or options[:details] then
+ matching_tuples.map { |(_, version,_),_| version }.uniq
+ else
+ platforms.sort.reverse.map do |version, pls|
+ if pls == [Gem::Platform::RUBY] then
+ version
+ else
+ ruby = pls.delete Gem::Platform::RUBY
+ platform_list = [ruby, *pls.sort].compact
+ "#{version} #{platform_list.join ' '}"
+ end
+ end
+ end.join ', '
+
+ entry << " (#{list})"
end
if options[:details] then
@@ -174,6 +196,28 @@ class Gem::Commands::QueryCommand < Gem::Command
end
entry << "\n"
+
+ non_ruby = platforms.any? do |_, pls|
+ pls.any? { |pl| pl != Gem::Platform::RUBY }
+ end
+
+ if non_ruby then
+ if platforms.length == 1 then
+ title = platforms.values.length == 1 ? 'Platform' : 'Platforms'
+ entry << " #{title}: #{platforms.values.sort.join ', '}\n"
+ else
+ entry << " Platforms:\n"
+ platforms.sort_by do |version,|
+ version
+ end.each do |version, pls|
+ label = " #{version}: "
+ data = format_text pls.sort.join(', '), 68, label.length
+ data[0, label.length] = label
+ entry << data << "\n"
+ end
+ end
+ end
+
authors = "Author#{spec.authors.length > 1 ? 's' : ''}: "
authors << spec.authors.join(', ')
entry << format_text(authors, 68, 4)
@@ -187,6 +231,12 @@ class Gem::Commands::QueryCommand < Gem::Command
entry << "\n" << format_text("Homepage: #{spec.homepage}", 68, 4)
end
+ if spec.license and not spec.license.empty? then
+ licenses = "License#{spec.licenses.length > 1 ? 's' : ''}: "
+ licenses << spec.licenses.join(', ')
+ entry << "\n" << format_text(licenses, 68, 4)
+ end
+
if spec.loaded_from then
if matching_tuples.length == 1 then
loaded_from = File.dirname File.dirname(spec.loaded_from)
@@ -209,25 +259,5 @@ class Gem::Commands::QueryCommand < Gem::Command
say output.join(options[:details] ? "\n\n" : "\n")
end
- ##
- # Used for wrapping and indenting text
-
- def format_text(text, wrap, indent=0)
- result = []
- work = text.dup
-
- while work.length > wrap
- if work =~ /^(.{0,#{wrap}})[ \n]/o then
- result << $1
- work.slice!(0, $&.length)
- else
- result << work.slice!(0, wrap)
- end
- end
-
- result << work if work.length.nonzero?
- result.join("\n").gsub(/^/, " " * indent)
- end
-
end
diff --git a/lib/rubygems/commands/rdoc_command.rb b/lib/rubygems/commands/rdoc_command.rb
index 2790ae7e3e..ea0f3ad592 100644
--- a/lib/rubygems/commands/rdoc_command.rb
+++ b/lib/rubygems/commands/rdoc_command.rb
@@ -2,81 +2,90 @@ require 'rubygems/command'
require 'rubygems/version_option'
require 'rubygems/doc_manager'
-module Gem
- module Commands
- class RdocCommand < Command
- include VersionOption
-
- def initialize
- super('rdoc',
- 'Generates RDoc for pre-installed gems',
- {
- :version => Gem::Requirement.default,
- :include_rdoc => true,
- :include_ri => true,
- })
- add_option('--all',
- 'Generate RDoc/RI documentation for all',
- 'installed gems') do |value, options|
- options[:all] = value
- end
- add_option('--[no-]rdoc',
- 'Include RDoc generated documents') do
- |value, options|
- options[:include_rdoc] = value
- end
- add_option('--[no-]ri',
- 'Include RI generated documents'
- ) do |value, options|
- options[:include_ri] = value
- end
- add_version_option
- end
+class Gem::Commands::RdocCommand < Gem::Command
+ include Gem::VersionOption
- def arguments # :nodoc:
- "GEMNAME gem to generate documentation for (unless --all)"
- end
+ def initialize
+ super 'rdoc', 'Generates RDoc for pre-installed gems',
+ :version => Gem::Requirement.default,
+ :include_rdoc => true, :include_ri => true, :overwrite => false
- def defaults_str # :nodoc:
- "--version '#{Gem::Requirement.default}' --rdoc --ri"
- end
+ add_option('--all',
+ 'Generate RDoc/RI documentation for all',
+ 'installed gems') do |value, options|
+ options[:all] = value
+ end
+
+ add_option('--[no-]rdoc',
+ 'Generate RDoc HTML') do |value, options|
+ options[:include_rdoc] = value
+ end
+
+ add_option('--[no-]ri',
+ 'Generate RI data') do |value, options|
+ options[:include_ri] = value
+ end
+
+ add_option('--[no-]overwrite',
+ 'Overwrite installed documents') do |value, options|
+ options[:overwrite] = value
+ end
+
+ add_version_option
+ end
+
+ def arguments # :nodoc:
+ "GEMNAME gem to generate documentation for (unless --all)"
+ end
- def usage # :nodoc:
- "#{program_name} [args]"
+ def defaults_str # :nodoc:
+ "--version '#{Gem::Requirement.default}' --rdoc --ri --no-overwrite"
+ end
+
+ def description # :nodoc:
+ <<-DESC
+The rdoc command builds RDoc and RI documentation for installed gems. Use
+--overwrite to force rebuilding of documentation.
+ DESC
+ end
+
+ def usage # :nodoc:
+ "#{program_name} [args]"
+ end
+
+ def execute
+ if options[:all] then
+ specs = Gem::SourceIndex.from_installed_gems.collect { |name, spec|
+ spec
+ }
+ else
+ gem_name = get_one_gem_name
+ dep = Gem::Dependency.new gem_name, options[:version]
+ specs = Gem::SourceIndex.from_installed_gems.search dep
+ end
+
+ if specs.empty?
+ raise "Failed to find gem #{gem_name} to generate RDoc for #{options[:version]}"
+ end
+
+ if options[:include_ri]
+ specs.sort.each do |spec|
+ doc = Gem::DocManager.new(spec)
+ doc.generate_ri if options[:overwrite] || !doc.ri_installed?
end
- def execute
- if options[:all]
- specs = Gem::SourceIndex.from_installed_gems.collect { |name, spec|
- spec
- }
- else
- gem_name = get_one_gem_name
- specs = Gem::SourceIndex.from_installed_gems.search(
- gem_name, options[:version])
- end
-
- if specs.empty?
- fail "Failed to find gem #{gem_name} to generate RDoc for #{options[:version]}"
- end
-
- if options[:include_ri]
- specs.each do |spec|
- Gem::DocManager.new(spec).generate_ri
- end
-
- Gem::DocManager.update_ri_cache
- end
-
- if options[:include_rdoc]
- specs.each do |spec|
- Gem::DocManager.new(spec).generate_rdoc
- end
- end
-
- true
+ Gem::DocManager.update_ri_cache
+ end
+
+ if options[:include_rdoc]
+ specs.sort.each do |spec|
+ doc = Gem::DocManager.new(spec)
+ doc.generate_rdoc if options[:overwrite] || !doc.rdoc_installed?
end
end
+ true
end
+
end
+
diff --git a/lib/rubygems/commands/search_command.rb b/lib/rubygems/commands/search_command.rb
index 96f2e2c94d..52e96fd1ef 100644
--- a/lib/rubygems/commands/search_command.rb
+++ b/lib/rubygems/commands/search_command.rb
@@ -1,37 +1,31 @@
require 'rubygems/command'
require 'rubygems/commands/query_command'
-module Gem
- module Commands
-
- class SearchCommand < QueryCommand
-
- def initialize
- super(
- 'search',
- 'Display all gems whose name contains STRING'
- )
- remove_option('--name-matches')
- end
-
- def arguments # :nodoc:
- "STRING fragment of gem name to search for"
- end
-
- def defaults_str # :nodoc:
- "--local --no-details"
- end
-
- def usage # :nodoc:
- "#{program_name} [STRING]"
- end
-
- def execute
- string = get_one_optional_argument
- options[:name] = /#{string}/i
- super
- end
- end
+class Gem::Commands::SearchCommand < Gem::Commands::QueryCommand
+ def initialize
+ super 'search', 'Display all gems whose name contains STRING'
+
+ remove_option '--name-matches'
+ end
+
+ def arguments # :nodoc:
+ "STRING fragment of gem name to search for"
end
+
+ def defaults_str # :nodoc:
+ "--local --no-details"
+ end
+
+ def usage # :nodoc:
+ "#{program_name} [STRING]"
+ end
+
+ def execute
+ string = get_one_optional_argument
+ options[:name] = /#{string}/i
+ super
+ end
+
end
+
diff --git a/lib/rubygems/commands/server_command.rb b/lib/rubygems/commands/server_command.rb
index 992ae1c8f8..b65d48c4fc 100644
--- a/lib/rubygems/commands/server_command.rb
+++ b/lib/rubygems/commands/server_command.rb
@@ -5,21 +5,52 @@ class Gem::Commands::ServerCommand < Gem::Command
def initialize
super 'server', 'Documentation and gem repository HTTP server',
- :port => 8808, :gemdir => Gem.dir, :daemon => false
+ :port => 8808, :gemdir => [], :daemon => false
- add_option '-p', '--port=PORT', Integer,
+ OptionParser.accept :Port do |port|
+ if port =~ /\A\d+\z/ then
+ port = Integer port
+ raise OptionParser::InvalidArgument, "#{port}: not a port number" if
+ port > 65535
+
+ port
+ else
+ begin
+ Socket.getservbyname port
+ rescue SocketError
+ raise OptionParser::InvalidArgument, "#{port}: no such named service"
+ end
+ end
+ end
+
+ add_option '-p', '--port=PORT', :Port,
'port to listen on' do |port, options|
options[:port] = port
end
add_option '-d', '--dir=GEMDIR',
- 'directory from which to serve gems' do |gemdir, options|
- options[:gemdir] = File.expand_path gemdir
+ 'directories from which to serve gems',
+ 'multiple directories may be provided' do |gemdir, options|
+ options[:gemdir] << File.expand_path(gemdir)
end
add_option '--[no-]daemon', 'run as a daemon' do |daemon, options|
options[:daemon] = daemon
end
+
+ add_option '-b', '--bind=HOST,HOST',
+ 'addresses to bind', Array do |address, options|
+ options[:addresses] ||= []
+ options[:addresses].push(*address)
+ end
+
+ add_option '-l', '--launch[=COMMAND]',
+ 'launches a browser window',
+ "COMMAND defaults to 'start' on Windows",
+ "and 'open' on all other platforms" do |launch, options|
+ launch ||= Gem.win_platform? ? 'start' : 'open'
+ options[:launch] = launch
+ end
end
def defaults_str # :nodoc:
@@ -37,10 +68,17 @@ for gem installation.
To install gems from a running server, use `gem install GEMNAME --source
http://gem_server_host:8808`
+
+You can set up a shortcut to gem server documentation using the URL:
+
+ http://localhost:8808/rdoc?q=%s - Firefox
+ http://localhost:8808/rdoc?q=* - LaunchBar
+
EOF
end
def execute
+ options[:gemdir] << Gem.dir if options[:gemdir].empty?
Gem::Server.run options
end
diff --git a/lib/rubygems/commands/setup_command.rb b/lib/rubygems/commands/setup_command.rb
new file mode 100644
index 0000000000..0c957393d9
--- /dev/null
+++ b/lib/rubygems/commands/setup_command.rb
@@ -0,0 +1,358 @@
+require 'rubygems/command'
+
+##
+# Installs RubyGems itself. This command is ordinarily only available from a
+# RubyGems checkout or tarball.
+
+class Gem::Commands::SetupCommand < Gem::Command
+
+ def initialize
+ require 'tmpdir'
+
+ super 'setup', 'Install RubyGems',
+ :format_executable => true, :rdoc => true, :ri => true,
+ :site_or_vendor => :sitelibdir,
+ :destdir => '', :prefix => ''
+
+ add_option '--prefix=PREFIX',
+ 'Prefix path for installing RubyGems',
+ 'Will not affect gem repository location' do |prefix, options|
+ options[:prefix] = File.expand_path prefix
+ end
+
+ add_option '--destdir=DESTDIR',
+ 'Root directory to install RubyGems into',
+ 'Mainly used for packaging RubyGems' do |destdir, options|
+ options[:destdir] = File.expand_path destdir
+ end
+
+ add_option '--[no-]vendor',
+ 'Install into vendorlibdir not sitelibdir' do |vendor, options|
+ options[:site_or_vendor] = vendor ? :vendorlibdir : :sitelibdir
+ end
+
+ add_option '--[no-]format-executable',
+ 'Makes `gem` match ruby',
+ 'If ruby is ruby18, gem will be gem18' do |value, options|
+ options[:format_executable] = value
+ end
+
+ add_option '--[no-]rdoc',
+ 'Generate RDoc documentation for RubyGems' do |value, options|
+ options[:rdoc] = value
+ end
+
+ add_option '--[no-]ri',
+ 'Generate RI documentation for RubyGems' do |value, options|
+ options[:ri] = value
+ end
+ end
+
+ def check_ruby_version
+ required_version = Gem::Requirement.new '>= 1.8.7'
+
+ unless required_version.satisfied_by? Gem.ruby_version then
+ alert_error "Expected Ruby version #{required_version}, is #{Gem.ruby_version}"
+ terminate_interaction 1
+ end
+ end
+
+ def defaults_str # :nodoc:
+ "--format-executable --rdoc --ri"
+ end
+
+ def description # :nodoc:
+ <<-EOF
+Installs RubyGems itself.
+
+RubyGems installs RDoc for itself in GEM_HOME. By default this is:
+ #{Gem.dir}
+
+If you prefer a different directory, set the GEM_HOME environment variable.
+
+RubyGems will install the gem command with a name matching ruby's
+prefix and suffix. If ruby was installed as `ruby18`, gem will be
+installed as `gem18`.
+
+By default, this RubyGems will install gem as:
+ #{Gem.default_exec_format % 'gem'}
+ EOF
+ end
+
+ def execute
+ @verbose = Gem.configuration.really_verbose
+
+ install_destdir = options[:destdir]
+
+ unless install_destdir.empty? then
+ ENV['GEM_HOME'] ||= File.join(install_destdir,
+ Gem.default_dir.gsub(/^[a-zA-Z]:/, ''))
+ end
+
+ check_ruby_version
+
+ require 'fileutils'
+ if Gem.configuration.really_verbose then
+ extend FileUtils::Verbose
+ else
+ extend FileUtils
+ end
+
+ lib_dir, bin_dir = make_destination_dirs install_destdir
+
+ install_lib lib_dir
+
+ install_executables bin_dir
+
+ remove_old_bin_files bin_dir
+
+ say "RubyGems #{Gem::VERSION} installed"
+
+ uninstall_old_gemcutter
+
+ install_rdoc
+
+ say
+ if @verbose then
+ say "-" * 78
+ say
+ end
+
+ release_notes = File.join Dir.pwd, 'History.txt'
+
+ release_notes = if File.exist? release_notes then
+ open release_notes do |io|
+ text = io.gets '==='
+ text << io.gets('===')
+ text[0...-3].sub(/^# coding:.*?^=/m, '')
+ end
+ else
+ "Oh-no! Unable to find release notes!"
+ end
+
+ say release_notes
+
+ say
+ say "-" * 78
+ say
+
+ say "RubyGems installed the following executables:"
+ say @bin_file_names.map { |name| "\t#{name}\n" }
+ say
+
+ unless @bin_file_names.grep(/#{File::SEPARATOR}gem$/) then
+ say "If `gem` was installed by a previous RubyGems installation, you may need"
+ say "to remove it by hand."
+ say
+ end
+ end
+
+ def install_executables(bin_dir)
+ say "Installing gem executable" if @verbose
+
+ @bin_file_names = []
+
+ Dir.chdir 'bin' do
+ bin_files = Dir['*']
+
+ bin_files.delete 'update_rubygems'
+
+ bin_files.each do |bin_file|
+ bin_file_formatted = if options[:format_executable] then
+ Gem.default_exec_format % bin_file
+ else
+ bin_file
+ end
+
+ dest_file = File.join bin_dir, bin_file_formatted
+ bin_tmp_file = File.join Dir.tmpdir, bin_file
+
+ begin
+ bin = File.readlines bin_file
+ bin[0] = "#!#{Gem.ruby}\n"
+
+ File.open bin_tmp_file, 'w' do |fp|
+ fp.puts bin.join
+ end
+
+ install bin_tmp_file, dest_file, :mode => 0755
+ @bin_file_names << dest_file
+ ensure
+ rm bin_tmp_file
+ end
+
+ next unless Gem.win_platform?
+
+ begin
+ bin_cmd_file = File.join Dir.tmpdir, "#{bin_file}.bat"
+
+ File.open bin_cmd_file, 'w' do |file|
+ file.puts <<-TEXT
+@ECHO OFF
+IF NOT "%~f0" == "~f0" GOTO :WinNT
+@"#{File.basename(Gem.ruby).chomp('"')}" "#{dest_file}" %1 %2 %3 %4 %5 %6 %7 %8 %9
+GOTO :EOF
+:WinNT
+@"#{File.basename(Gem.ruby).chomp('"')}" "%~dpn0" %*
+TEXT
+ end
+
+ install bin_cmd_file, "#{dest_file}.bat", :mode => 0755
+ ensure
+ rm bin_cmd_file
+ end
+ end
+ end
+ end
+
+ def install_lib(lib_dir)
+ say "Installing RubyGems" if @verbose
+
+ Dir.chdir 'lib' do
+ lib_files = Dir[File.join('**', '*rb')]
+
+ lib_files.each do |lib_file|
+ dest_file = File.join lib_dir, lib_file
+ dest_dir = File.dirname dest_file
+ mkdir_p dest_dir unless File.directory? dest_dir
+
+ install lib_file, dest_file, :mode => 0644
+ end
+ end
+ end
+
+ def install_rdoc
+ gem_doc_dir = File.join Gem.dir, 'doc'
+ rubygems_name = "rubygems-#{Gem::VERSION}"
+ rubygems_doc_dir = File.join gem_doc_dir, rubygems_name
+
+ if File.writable? gem_doc_dir and
+ (not File.exist? rubygems_doc_dir or
+ File.writable? rubygems_doc_dir) then
+ say "Removing old RubyGems RDoc and ri" if @verbose
+ Dir[File.join(Gem.dir, 'doc', 'rubygems-[0-9]*')].each do |dir|
+ rm_rf dir
+ end
+
+ if options[:ri] then
+ ri_dir = File.join rubygems_doc_dir, 'ri'
+ say "Installing #{rubygems_name} ri into #{ri_dir}" if @verbose
+ run_rdoc '--ri', '--op', ri_dir
+ end
+
+ if options[:rdoc] then
+ rdoc_dir = File.join rubygems_doc_dir, 'rdoc'
+ say "Installing #{rubygems_name} rdoc into #{rdoc_dir}" if @verbose
+ run_rdoc '--op', rdoc_dir
+ end
+ elsif @verbose then
+ say "Skipping RDoc generation, #{gem_doc_dir} not writable"
+ say "Set the GEM_HOME environment variable if you want RDoc generated"
+ end
+ end
+
+ def make_destination_dirs(install_destdir)
+ lib_dir, bin_dir = Gem.default_rubygems_dirs
+
+ unless lib_dir
+ lib_dir, bin_dir = generate_default_dirs(install_destdir)
+ end
+
+ mkdir_p lib_dir
+ mkdir_p bin_dir
+
+ return lib_dir, bin_dir
+ end
+
+ def generate_default_dirs(install_destdir)
+ prefix = options[:prefix]
+ site_or_vendor = options[:site_or_vendor]
+
+ if prefix.empty? then
+ lib_dir = Gem::ConfigMap[site_or_vendor]
+ bin_dir = Gem::ConfigMap[:bindir]
+ else
+ # Apple installed RubyGems into libdir, and RubyGems <= 1.1.0 gets
+ # confused about installation location, so switch back to
+ # sitelibdir/vendorlibdir.
+ if defined?(APPLE_GEM_HOME) and
+ # just in case Apple and RubyGems don't get this patched up proper.
+ (prefix == Gem::ConfigMap[:libdir] or
+ # this one is important
+ prefix == File.join(Gem::ConfigMap[:libdir], 'ruby')) then
+ lib_dir = Gem::ConfigMap[site_or_vendor]
+ bin_dir = Gem::ConfigMap[:bindir]
+ else
+ lib_dir = File.join prefix, 'lib'
+ bin_dir = File.join prefix, 'bin'
+ end
+ end
+
+ unless install_destdir.empty? then
+ lib_dir = File.join install_destdir, lib_dir.gsub(/^[a-zA-Z]:/, '')
+ bin_dir = File.join install_destdir, bin_dir.gsub(/^[a-zA-Z]:/, '')
+ end
+
+ [lib_dir, bin_dir]
+ end
+
+ def remove_old_bin_files(bin_dir)
+ old_bin_files = {
+ 'gem_mirror' => 'gem mirror',
+ 'gem_server' => 'gem server',
+ 'gemlock' => 'gem lock',
+ 'gemri' => 'ri',
+ 'gemwhich' => 'gem which',
+ 'index_gem_repository.rb' => 'gem generate_index',
+ }
+
+ old_bin_files.each do |old_bin_file, new_name|
+ old_bin_path = File.join bin_dir, old_bin_file
+ next unless File.exist? old_bin_path
+
+ deprecation_message = "`#{old_bin_file}` has been deprecated. Use `#{new_name}` instead."
+
+ File.open old_bin_path, 'w' do |fp|
+ fp.write <<-EOF
+#!#{Gem.ruby}
+
+abort "#{deprecation_message}"
+ EOF
+ end
+
+ next unless Gem.win_platform?
+
+ File.open "#{old_bin_path}.bat", 'w' do |fp|
+ fp.puts %{@ECHO.#{deprecation_message}}
+ end
+ end
+ end
+
+ def run_rdoc(*args)
+ begin
+ gem 'rdoc'
+ rescue Gem::LoadError
+ end
+
+ require 'rdoc/rdoc'
+
+ args << '--main' << 'README.rdoc' << '--quiet'
+ args << '.'
+ args << 'README.rdoc' << 'UPGRADING.rdoc'
+ args << 'LICENSE.txt' << 'MIT.txt' << 'History.txt'
+
+ r = RDoc::RDoc.new
+ r.document args
+ end
+
+ def uninstall_old_gemcutter
+ require 'rubygems/uninstaller'
+
+ ui = Gem::Uninstaller.new('gemcutter', :all => true, :ignore => true,
+ :version => '< 0.4')
+ ui.uninstall
+ rescue Gem::InstallError
+ end
+
+end
+
diff --git a/lib/rubygems/commands/sources_command.rb b/lib/rubygems/commands/sources_command.rb
index 9aabb77cb1..ac14313e9d 100644
--- a/lib/rubygems/commands/sources_command.rb
+++ b/lib/rubygems/commands/sources_command.rb
@@ -1,12 +1,15 @@
-require 'fileutils'
require 'rubygems/command'
require 'rubygems/remote_fetcher'
-require 'rubygems/source_info_cache'
require 'rubygems/spec_fetcher'
+require 'rubygems/local_remote_options'
class Gem::Commands::SourcesCommand < Gem::Command
+ include Gem::LocalRemoteOptions
+
def initialize
+ require 'fileutils'
+
super 'sources',
'Manage the sources and cache file RubyGems uses to search for gems'
@@ -30,6 +33,8 @@ class Gem::Commands::SourcesCommand < Gem::Command
add_option '-u', '--update', 'Update source cache' do |value, options|
options[:update] = value
end
+
+ add_proxy_option
end
def defaults_str
@@ -46,19 +51,17 @@ class Gem::Commands::SourcesCommand < Gem::Command
path = Gem::SpecFetcher.fetcher.dir
FileUtils.rm_rf path
- if not File.exist?(path) then
+ unless File.exist? path then
say "*** Removed specs cache ***"
- elsif not File.writable?(path) then
- say "*** Unable to remove source cache (write protected) ***"
else
- say "*** Unable to remove source cache ***"
- end
+ unless File.writable? path then
+ say "*** Unable to remove source cache (write protected) ***"
+ else
+ say "*** Unable to remove source cache ***"
+ end
- sic = Gem::SourceInfoCache
- remove_cache_file 'user', sic.user_cache_file
- remove_cache_file 'latest user', sic.latest_user_cache_file
- remove_cache_file 'system', sic.system_cache_file
- remove_cache_file 'latest system', sic.latest_system_cache_file
+ terminate_interaction 1
+ end
end
if options[:add] then
@@ -73,24 +76,10 @@ class Gem::Commands::SourcesCommand < Gem::Command
say "#{source_uri} added to sources"
rescue URI::Error, ArgumentError
say "#{source_uri} is not a URI"
+ terminate_interaction 1
rescue Gem::RemoteFetcher::FetchError => e
- yaml_uri = uri + 'yaml'
- gem_repo = Gem::RemoteFetcher.fetcher.fetch_size yaml_uri rescue false
-
- if e.uri =~ /specs\.#{Regexp.escape Gem.marshal_version}\.gz$/ and
- gem_repo then
-
- alert_warning <<-EOF
-RubyGems 1.2+ index not found for:
-\t#{source_uri}
-
-Will cause RubyGems to revert to legacy indexes, degrading performance.
- EOF
-
- say "#{source_uri} added to sources"
- else
- say "Error fetching #{source_uri}:\n\t#{e.message}"
- end
+ say "Error fetching #{source_uri}:\n\t#{e.message}"
+ terminate_interaction 1
end
end
@@ -110,15 +99,10 @@ Will cause RubyGems to revert to legacy indexes, degrading performance.
if options[:update] then
fetcher = Gem::SpecFetcher.fetcher
- if fetcher.legacy_repos.empty? then
- Gem.sources.each do |update_uri|
- update_uri = URI.parse update_uri
- fetcher.load_specs update_uri, 'specs'
- fetcher.load_specs update_uri, 'latest_specs'
- end
- else
- Gem::SourceInfoCache.cache true
- Gem::SourceInfoCache.cache.flush
+ Gem.sources.each do |update_uri|
+ update_uri = URI.parse update_uri
+ fetcher.load_specs update_uri, 'specs'
+ fetcher.load_specs update_uri, 'latest_specs'
end
say "source cache successfully updated"
diff --git a/lib/rubygems/commands/specification_command.rb b/lib/rubygems/commands/specification_command.rb
index 5aaf6d1797..566a9cc66e 100644
--- a/lib/rubygems/commands/specification_command.rb
+++ b/lib/rubygems/commands/specification_command.rb
@@ -1,8 +1,6 @@
-require 'yaml'
require 'rubygems/command'
require 'rubygems/local_remote_options'
require 'rubygems/version_option'
-require 'rubygems/source_info_cache'
require 'rubygems/format'
class Gem::Commands::SpecificationCommand < Gem::Command
@@ -11,8 +9,11 @@ class Gem::Commands::SpecificationCommand < Gem::Command
include Gem::VersionOption
def initialize
+ Gem.load_yaml
+
super 'specification', 'Display gem specification (in yaml)',
- :domain => :local, :version => Gem::Requirement.default
+ :domain => :local, :version => Gem::Requirement.default,
+ :format => :yaml
add_version_option('examine')
add_platform_option
@@ -22,25 +23,69 @@ class Gem::Commands::SpecificationCommand < Gem::Command
options[:all] = true
end
+ add_option('--ruby', 'Output ruby format') do |value, options|
+ options[:format] = :ruby
+ end
+
+ add_option('--yaml', 'Output RUBY format') do |value, options|
+ options[:format] = :yaml
+ end
+
+ add_option('--marshal', 'Output Marshal format') do |value, options|
+ options[:format] = :marshal
+ end
+
add_local_remote_options
end
def arguments # :nodoc:
- "GEMFILE name of gem to show the gemspec for"
+ <<-ARGS
+GEMFILE name of gem to show the gemspec for
+FIELD name of gemspec field to show
+ ARGS
end
def defaults_str # :nodoc:
- "--local --version '#{Gem::Requirement.default}'"
+ "--local --version '#{Gem::Requirement.default}' --yaml"
end
def usage # :nodoc:
- "#{program_name} [GEMFILE]"
+ "#{program_name} [GEMFILE] [FIELD]"
end
def execute
specs = []
- gem = get_one_gem_name
- dep = Gem::Dependency.new gem, options[:version]
+ gem = options[:args].shift
+
+ unless gem then
+ raise Gem::CommandLineError,
+ "Please specify a gem name or file on the command line"
+ end
+
+ case options[:version]
+ when String
+ req = Gem::Requirement.parse options[:version]
+ when Gem::Requirement
+ req = options[:version]
+ else
+ raise Gem::CommandLineError, "Unsupported version type: #{options[:version]}"
+ end
+
+ if !req.none? and options[:all]
+ alert_error "Specify --all or -v, not both"
+ terminate_interaction 1
+ end
+
+ if options[:all]
+ dep = Gem::Dependency.new gem
+ else
+ dep = Gem::Dependency.new gem, options[:version]
+ end
+
+ field = get_one_optional_argument
+
+ raise Gem::CommandLineError, "--ruby and FIELD are mutually exclusive" if
+ field and options[:format] == :ruby
if local? then
if File.exist? gem then
@@ -48,12 +93,16 @@ class Gem::Commands::SpecificationCommand < Gem::Command
end
if specs.empty? then
- specs.push(*Gem.source_index.search(dep))
+ specs.push(*dep.matching_specs)
end
end
if remote? then
- found = Gem::SpecFetcher.fetcher.fetch dep
+ found = Gem::SpecFetcher.fetcher.fetch dep, true
+
+ if dep.prerelease? or options[:prerelease]
+ found += Gem::SpecFetcher.fetcher.fetch dep, false, true, true
+ end
specs.push(*found.map { |spec,| spec })
end
@@ -63,15 +112,20 @@ class Gem::Commands::SpecificationCommand < Gem::Command
terminate_interaction 1
end
- output = lambda { |s| say s.to_yaml; say "\n" }
+ unless options[:all] then
+ specs = [specs.sort_by { |s| s.version }.last]
+ end
+
+ specs.each do |s|
+ s = s.send field if field
- if options[:all] then
- specs.each(&output)
- else
- spec = specs.sort_by { |s| s.version }.last
- output[spec]
+ say case options[:format]
+ when :ruby then s.to_ruby
+ when :marshal then Marshal.dump s
+ else s.to_yaml
+ end
+
+ say "\n"
end
end
-
end
-
diff --git a/lib/rubygems/commands/stale_command.rb b/lib/rubygems/commands/stale_command.rb
index 78cbdcc00a..36c517e27c 100644
--- a/lib/rubygems/commands/stale_command.rb
+++ b/lib/rubygems/commands/stale_command.rb
@@ -11,7 +11,8 @@ class Gem::Commands::StaleCommand < Gem::Command
def execute
gem_to_atime = {}
- Gem.source_index.each do |name, spec|
+ Gem::Specification.each do |spec|
+ name = spec.full_name
Dir["#{spec.full_gem_path}/**/*.*"].each do |file|
next if File.directory?(file)
stat = File.stat(file)
diff --git a/lib/rubygems/commands/uninstall_command.rb b/lib/rubygems/commands/uninstall_command.rb
index 3d6e2383bc..aaadb762b5 100644
--- a/lib/rubygems/commands/uninstall_command.rb
+++ b/lib/rubygems/commands/uninstall_command.rb
@@ -2,72 +2,93 @@ require 'rubygems/command'
require 'rubygems/version_option'
require 'rubygems/uninstaller'
-module Gem
- module Commands
- class UninstallCommand < Command
-
- include VersionOption
-
- def initialize
- super 'uninstall', 'Uninstall gems from the local repository',
- :version => Gem::Requirement.default
-
- add_option('-a', '--[no-]all',
- 'Uninstall all matching versions'
- ) do |value, options|
- options[:all] = value
- end
-
- add_option('-I', '--[no-]ignore-dependencies',
- 'Ignore dependency requirements while',
- 'uninstalling') do |value, options|
- options[:ignore] = value
- end
-
- add_option('-x', '--[no-]executables',
- 'Uninstall applicable executables without',
- 'confirmation') do |value, options|
- options[:executables] = value
- end
-
- add_option('-i', '--install-dir DIR',
- 'Directory to uninstall gem from') do |value, options|
- options[:install_dir] = File.expand_path(value)
- end
-
- add_option('-n', '--bindir DIR',
- 'Directory to remove binaries from') do |value, options|
- options[:bin_dir] = File.expand_path(value)
- end
-
- add_version_option
- add_platform_option
- end
+##
+# Gem uninstaller command line tool
+#
+# See `gem help uninstall`
- def arguments # :nodoc:
- "GEMNAME name of gem to uninstall"
- end
+class Gem::Commands::UninstallCommand < Gem::Command
- def defaults_str # :nodoc:
- "--version '#{Gem::Requirement.default}' --no-force " \
- "--install-dir #{Gem.dir}"
- end
+ include Gem::VersionOption
- def usage # :nodoc:
- "#{program_name} GEMNAME [GEMNAME ...]"
- end
+ def initialize
+ super 'uninstall', 'Uninstall gems from the local repository',
+ :version => Gem::Requirement.default, :user_install => true
+
+ add_option('-a', '--[no-]all',
+ 'Uninstall all matching versions'
+ ) do |value, options|
+ options[:all] = value
+ end
+
+ add_option('-I', '--[no-]ignore-dependencies',
+ 'Ignore dependency requirements while',
+ 'uninstalling') do |value, options|
+ options[:ignore] = value
+ end
- def execute
- get_all_gem_names.each do |gem_name|
- begin
- Gem::Uninstaller.new(gem_name, options).uninstall
- rescue Gem::GemNotInHomeException => e
- spec = e.spec
- alert("In order to remove #{spec.name}, please execute:\n" \
- "\tgem uninstall #{spec.name} --install-dir=#{spec.installation_path}")
- end
- end
+ add_option('-x', '--[no-]executables',
+ 'Uninstall applicable executables without',
+ 'confirmation') do |value, options|
+ options[:executables] = value
+ end
+
+ add_option('-i', '--install-dir DIR',
+ 'Directory to uninstall gem from') do |value, options|
+ options[:install_dir] = File.expand_path(value)
+ end
+
+ add_option('-n', '--bindir DIR',
+ 'Directory to remove binaries from') do |value, options|
+ options[:bin_dir] = File.expand_path(value)
+ end
+
+ add_option('--[no-]user-install',
+ 'Uninstall from user\'s home directory',
+ 'in addition to GEM_HOME.') do |value, options|
+ options[:user_install] = value
+ end
+
+ add_option('--[no-]format-executable',
+ 'Assume executable names match Ruby\'s prefix and suffix.') do |value, options|
+ options[:format_executable] = value
+ end
+
+ add_version_option
+ add_platform_option
+ end
+
+ def arguments # :nodoc:
+ "GEMNAME name of gem to uninstall"
+ end
+
+ def defaults_str # :nodoc:
+ "--version '#{Gem::Requirement.default}' --no-force " \
+ "--install-dir #{Gem.dir}\n" \
+ "--user-install"
+ end
+
+ def usage # :nodoc:
+ "#{program_name} GEMNAME [GEMNAME ...]"
+ end
+
+ def execute
+ original_path = Gem.path
+
+ get_all_gem_names.each do |gem_name|
+ begin
+ Gem::Uninstaller.new(gem_name, options).uninstall
+ rescue Gem::InstallError => e
+ alert e.message
+ rescue Gem::GemNotInHomeException => e
+ spec = e.spec
+ alert("In order to remove #{spec.name}, please execute:\n" \
+ "\tgem uninstall #{spec.name} --install-dir=#{spec.installation_path}")
+ ensure
+ Gem.use_paths(*original_path)
end
end
end
+
end
+
diff --git a/lib/rubygems/commands/unpack_command.rb b/lib/rubygems/commands/unpack_command.rb
index ab2494b0da..64b8ad64f8 100644
--- a/lib/rubygems/commands/unpack_command.rb
+++ b/lib/rubygems/commands/unpack_command.rb
@@ -1,21 +1,28 @@
-require 'fileutils'
require 'rubygems/command'
require 'rubygems/installer'
require 'rubygems/version_option'
+require 'rubygems/remote_fetcher'
class Gem::Commands::UnpackCommand < Gem::Command
include Gem::VersionOption
def initialize
+ require 'fileutils'
+
super 'unpack', 'Unpack an installed gem to the current directory',
:version => Gem::Requirement.default,
:target => Dir.pwd
- add_option('--target', 'target directory for unpacking') do |value, options|
+ add_option('--target=DIR',
+ 'target directory for unpacking') do |value, options|
options[:target] = value
end
+ add_option('--spec', 'unpack the gem specification') do |value, options|
+ options[:spec] = true
+ end
+
add_version_option
end
@@ -35,29 +42,65 @@ class Gem::Commands::UnpackCommand < Gem::Command
# TODO: allow, e.g., 'gem unpack rake-0.3.1'. Find a general solution for
# this, so that it works for uninstall as well. (And check other commands
# at the same time.)
+
def execute
- gemname = get_one_gem_name
- path = get_path(gemname, options[:version])
-
- if path then
- basename = File.basename(path).sub(/\.gem$/, '')
- target_dir = File.expand_path File.join(options[:target], basename)
- FileUtils.mkdir_p target_dir
- Gem::Installer.new(path, :unpack => true).unpack target_dir
- say "Unpacked gem: '#{target_dir}'"
- else
- alert_error "Gem '#{gemname}' not installed."
+ get_all_gem_names.each do |name|
+ dependency = Gem::Dependency.new name, options[:version]
+ path = get_path dependency
+
+ unless path then
+ alert_error "Gem '#{name}' not installed nor fetchable."
+ next
+ end
+
+ if @options[:spec] then
+ spec, metadata = get_metadata path
+
+ if metadata.nil? then
+ alert_error "--spec is unsupported on '#{name}' (old format gem)"
+ next
+ end
+
+ spec_file = File.basename spec.spec_file
+
+ open spec_file, 'w' do |io|
+ io.write metadata
+ end
+ else
+ basename = File.basename path, '.gem'
+ target_dir = File.expand_path basename, options[:target]
+ FileUtils.mkdir_p target_dir
+ Gem::Installer.new(path, :unpack => true).unpack target_dir
+ say "Unpacked gem: '#{target_dir}'"
+ end
+ end
+ end
+
+ ##
+ #
+ # Find cached filename in Gem.path. Returns nil if the file cannot be found.
+ #
+ #--
+ # TODO: see comments in get_path() about general service.
+
+ def find_in_cache(filename)
+ Gem.path.each do |path|
+ this_path = File.join(path, "cache", filename)
+ return this_path if File.exist? this_path
end
+
+ return nil
end
+ ##
# Return the full path to the cached gem file matching the given
# name and version requirement. Returns 'nil' if no match.
#
# Example:
#
- # get_path('rake', '> 0.4') # -> '/usr/lib/ruby/gems/1.8/cache/rake-0.4.2.gem'
- # get_path('rake', '< 0.1') # -> nil
- # get_path('rak') # -> nil (exact name required)
+ # get_path 'rake', '> 0.4' # "/usr/lib/ruby/gems/1.8/cache/rake-0.4.2.gem"
+ # get_path 'rake', '< 0.1' # nil
+ # get_path 'rak' # nil (exact name required)
#--
# TODO: This should be refactored so that it's a general service. I don't
# think any of our existing classes are the right place though. Just maybe
@@ -65,30 +108,52 @@ class Gem::Commands::UnpackCommand < Gem::Command
#
# TODO: It just uses Gem.dir for now. What's an easy way to get the list of
# source directories?
- def get_path(gemname, version_req)
- return gemname if gemname =~ /\.gem$/i
- specs = Gem::source_index.find_name gemname, version_req
+ def get_path dependency
+ return dependency.name if dependency.name =~ /\.gem$/i
- selected = specs.sort_by { |s| s.version }.last
+ specs = dependency.matching_specs
- return nil if selected.nil?
+ selected = specs.sort_by { |s| s.version }.last # HACK: hunt last down
- # We expect to find (basename).gem in the 'cache' directory.
- # Furthermore, the name match must be exact (ignoring case).
- if gemname =~ /^#{selected.name}$/i
- filename = selected.full_name + '.gem'
- path = nil
+ return Gem::RemoteFetcher.fetcher.download_to_cache(dependency) unless
+ selected
- Gem.path.find do |gem_dir|
- path = File.join gem_dir, 'cache', filename
- File.exist? path
- end
+ return unless dependency.name =~ /^#{selected.name}$/i
+
+ # We expect to find (basename).gem in the 'cache' directory. Furthermore,
+ # the name match must be exact (ignoring case).
- path
- else
- nil
+ path = find_in_cache File.basename selected.cache_file
+
+ return Gem::RemoteFetcher.fetcher.download_to_cache(dependency) unless path
+
+ path
+ end
+
+ ##
+ # Extracts the Gem::Specification and raw metadata from the .gem file at
+ # +path+.
+
+ def get_metadata path
+ format = Gem::Format.from_file_by_path path
+ spec = format.spec
+
+ metadata = nil
+
+ open path, Gem.binary_mode do |io|
+ tar = Gem::Package::TarReader.new io
+ tar.each_entry do |entry|
+ case entry.full_name
+ when 'metadata' then
+ metadata = entry.read
+ when 'metadata.gz' then
+ metadata = Gem.gunzip entry.read
+ end
+ end
end
+
+ return spec, metadata
end
end
diff --git a/lib/rubygems/commands/update_command.rb b/lib/rubygems/commands/update_command.rb
index 28d3a5d382..d63b943c56 100644
--- a/lib/rubygems/commands/update_command.rb
+++ b/lib/rubygems/commands/update_command.rb
@@ -16,20 +16,27 @@ class Gem::Commands::UpdateCommand < Gem::Command
super 'update',
'Update the named gems (or all installed gems) in the local repository',
:generate_rdoc => true,
- :generate_ri => true,
- :force => false,
- :test => false
+ :generate_ri => true,
+ :force => false
add_install_update_options
- add_option('--system',
+ OptionParser.accept Gem::Version do |value|
+ Gem::Version.new value
+
+ value
+ end
+
+ add_option('--system [VERSION]', Gem::Version,
'Update the RubyGems system software') do |value, options|
+ value = true unless value
+
options[:system] = value
end
add_local_remote_options
-
add_platform_option
+ add_prerelease_option "as update targets"
end
def arguments # :nodoc:
@@ -37,7 +44,7 @@ class Gem::Commands::UpdateCommand < Gem::Command
end
def defaults_str # :nodoc:
- "--rdoc --ri --no-force --no-test --install-dir #{Gem.dir}"
+ "--rdoc --ri --no-force --install-dir #{Gem.dir}"
end
def usage # :nodoc:
@@ -45,77 +52,132 @@ class Gem::Commands::UpdateCommand < Gem::Command
end
def execute
+ @installer = Gem::DependencyInstaller.new options
+ @updated = []
+
hig = {}
if options[:system] then
- say "Updating RubyGems"
-
- unless options[:args].empty? then
- fail "No gem names are allowed with the --system option"
- end
-
- rubygems_update = Gem::Specification.new
- rubygems_update.name = 'rubygems-update'
- rubygems_update.version = Gem::Version.new Gem::RubyGemsVersion
- hig['rubygems-update'] = rubygems_update
-
- options[:user_install] = false
+ update_rubygems
+ return
else
say "Updating installed gems"
hig = {} # highest installed gems
- Gem.source_index.each do |name, spec|
+ Gem::Specification.each do |spec|
if hig[spec.name].nil? or hig[spec.name].version < spec.version then
hig[spec.name] = spec
end
end
end
- gems_to_update = which_to_update hig, options[:args]
+ gems_to_update = which_to_update hig, options[:args].uniq
- updated = []
+ updated = update_gems gems_to_update
- installer = Gem::DependencyInstaller.new options
+ if updated.empty? then
+ say "Nothing to update"
+ else
+ say "Gems updated: #{updated.map { |spec| spec.name }.join ', '}"
- gems_to_update.uniq.sort.each do |name|
- next if updated.any? { |spec| spec.name == name }
+ if options[:generate_ri] then
+ updated.each do |gem|
+ Gem::DocManager.new(gem, options[:rdoc_args]).generate_ri
+ end
- say "Updating #{name}"
- installer.install name
+ Gem::DocManager.update_ri_cache
+ end
- installer.installed_gems.each do |spec|
- updated << spec
- say "Successfully installed #{spec.full_name}"
+ if options[:generate_rdoc] then
+ updated.each do |gem|
+ Gem::DocManager.new(gem, options[:rdoc_args]).generate_rdoc
+ end
end
end
+ end
- if gems_to_update.include? "rubygems-update" then
- Gem.source_index.refresh!
+ def update_gem name, version = Gem::Requirement.default
+ return if @updated.any? { |spec| spec.name == name }
+ success = false
+
+ say "Updating #{name}"
+ begin
+ @installer.install name, version
+ success = true
+ rescue Gem::InstallError => e
+ alert_error "Error installing #{name}:\n\t#{e.message}"
+ success = false
+ end
- update_gems = Gem.source_index.search 'rubygems-update'
+ @installer.installed_gems.each do |spec|
+ @updated << spec
+ say "Successfully installed #{spec.full_name}" if success
+ end
+ end
- latest_update_gem = update_gems.sort_by { |s| s.version }.last
+ def update_gems gems_to_update
+ gems_to_update.uniq.sort.each do |(name, version)|
+ update_gem name, version
+ end
- say "Updating RubyGems to #{latest_update_gem.version}"
- installed = do_rubygems_update latest_update_gem.version
+ @updated
+ end
- say "RubyGems system software updated" if installed
+ ##
+ # Update RubyGems software to the latest version.
+
+ def update_rubygems
+ unless options[:args].empty? then
+ alert_error "Gem names are not allowed with the --system option"
+ terminate_interaction 1
+ end
+
+ options[:user_install] = false
+
+ # TODO: rename version and other variable name conflicts
+ # TODO: get rid of all this indirection on name and other BS
+
+ version = options[:system]
+ if version == true then
+ version = Gem::Version.new Gem::VERSION
+ requirement = Gem::Requirement.new ">= #{Gem::VERSION}"
else
- if updated.empty? then
- say "Nothing to update"
- else
- say "Gems updated: #{updated.map { |spec| spec.name }.join ', '}"
- end
+ version = Gem::Version.new version
+ requirement = Gem::Requirement.new version
end
- end
- ##
- # Update the RubyGems software to +version+.
+ rubygems_update = Gem::Specification.new
+ rubygems_update.name = 'rubygems-update'
+ rubygems_update.version = version
+
+ hig = {
+ 'rubygems-update' => rubygems_update
+ }
+
+ gems_to_update = which_to_update hig, options[:args], :system
+ name, up_ver = gems_to_update.first
+ current_ver = Gem::Version.new Gem::VERSION
+
+ target = if options[:system] == true then
+ up_ver
+ else
+ version
+ end
+
+ if current_ver == target then
+ # if options[:system] != true and version == current_ver then
+ say "Latest version currently installed. Aborting."
+ terminate_interaction
+ end
+
+ update_gem name, target
+
+ installed_gems = Gem::Specification.find_all_by_name 'rubygems-update', requirement
+ version = installed_gems.last.version
- def do_rubygems_update(version)
args = []
- args.push '--prefix', Gem.prefix unless Gem.prefix.nil?
+ args << '--prefix' << Gem.prefix if Gem.prefix
args << '--no-rdoc' unless options[:generate_rdoc]
args << '--no-ri' unless options[:generate_ri]
args << '--no-format-executable' if options[:no_format_executable]
@@ -128,13 +190,14 @@ class Gem::Commands::UpdateCommand < Gem::Command
# Make sure old rubygems isn't loaded
old = ENV["RUBYOPT"]
- ENV.delete("RUBYOPT")
- system setup_cmd
+ ENV.delete("RUBYOPT") if old
+ installed = system setup_cmd
+ say "RubyGems system software updated" if installed
ENV["RUBYOPT"] = old if old
end
end
- def which_to_update(highest_installed_gems, gem_names)
+ def which_to_update highest_installed_gems, gem_names, system = false
result = []
highest_installed_gems.each do |l_name, l_spec|
@@ -143,34 +206,22 @@ class Gem::Commands::UpdateCommand < Gem::Command
dependency = Gem::Dependency.new l_spec.name, "> #{l_spec.version}"
- begin
- fetcher = Gem::SpecFetcher.fetcher
- spec_tuples = fetcher.find_matching dependency
- rescue Gem::RemoteFetcher::FetchError => e
- raise unless fetcher.warn_legacy e do
- require 'rubygems/source_info_cache'
-
- dependency.name = '' if dependency.name == //
+ fetcher = Gem::SpecFetcher.fetcher
+ spec_tuples = fetcher.find_matching dependency
- specs = Gem::SourceInfoCache.search_with_source dependency
-
- spec_tuples = specs.map do |spec, source_uri|
- [[spec.name, spec.version, spec.original_platform], source_uri]
- end
- end
- end
-
- matching_gems = spec_tuples.select do |(name, version, platform),|
+ matching_gems = spec_tuples.select do |(name, _, platform),|
name == l_name and Gem::Platform.match platform
end
- highest_remote_gem = matching_gems.sort_by do |(name, version),|
+ highest_remote_gem = matching_gems.sort_by do |(_, version),|
version
end.last
- if highest_remote_gem and
- l_spec.version < highest_remote_gem.first[1] then
- result << l_name
+ highest_remote_gem ||= [[nil, Gem::Version.new(0), nil]] # "null" object
+ highest_remote_ver = highest_remote_gem.first[1]
+
+ if system or (l_spec.version < highest_remote_ver) then
+ result << [l_spec.name, [l_spec.version, highest_remote_ver].max]
end
end
diff --git a/lib/rubygems/commands/which_command.rb b/lib/rubygems/commands/which_command.rb
index 2267e44b11..6495278a87 100644
--- a/lib/rubygems/commands/which_command.rb
+++ b/lib/rubygems/commands/which_command.rb
@@ -1,10 +1,6 @@
require 'rubygems/command'
-require 'rubygems/gem_path_searcher'
class Gem::Commands::WhichCommand < Gem::Command
-
- EXT = %w[.rb .rbw .so .dll .bundle] # HACK
-
def initialize
super 'which', 'Find the location of a library file you can require',
:search_gems_first => false, :show_all => false
@@ -27,16 +23,14 @@ class Gem::Commands::WhichCommand < Gem::Command
"--no-gems-first --no-all"
end
- def usage # :nodoc:
- "#{program_name} FILE [FILE ...]"
- end
-
def execute
- searcher = Gem::GemPathSearcher.new
+ found = false
options[:args].each do |arg|
+ arg = arg.sub(/#{Regexp.union(*Gem.suffixes)}$/, '')
dirs = $LOAD_PATH
- spec = searcher.find arg
+
+ spec = Gem::Specification.find_by_path arg
if spec then
if options[:search_gems_first] then
@@ -44,28 +38,29 @@ class Gem::Commands::WhichCommand < Gem::Command
else
dirs = $LOAD_PATH + gem_paths(spec)
end
-
- say "(checking gem #{spec.full_name} for #{arg})" if
- Gem.configuration.verbose
end
+ # TODO: this is totally redundant and stupid
paths = find_paths arg, dirs
if paths.empty? then
- say "Can't find ruby library file or shared library #{arg}"
+ alert_error "Can't find ruby library file or shared library #{arg}"
else
say paths
+ found = true
end
end
+
+ terminate_interaction 1 unless found
end
def find_paths(package_name, dirs)
result = []
dirs.each do |dir|
- EXT.each do |ext|
+ Gem.suffixes.each do |ext|
full_path = File.join dir, "#{package_name}#{ext}"
- if File.exist? full_path then
+ if File.exist? full_path and not File.directory? full_path then
result << full_path
return result unless options[:show_all]
end
@@ -80,7 +75,7 @@ class Gem::Commands::WhichCommand < Gem::Command
end
def usage # :nodoc:
- "#{program_name} FILE [...]"
+ "#{program_name} FILE [FILE ...]"
end
end
diff --git a/lib/rubygems/config_file.rb b/lib/rubygems/config_file.rb
index 545ef1a55a..136e8b4610 100644
--- a/lib/rubygems/config_file.rb
+++ b/lib/rubygems/config_file.rb
@@ -4,11 +4,28 @@
# See LICENSE.txt for permissions.
#++
-require 'yaml'
-require 'rubygems'
-
-# Store the gem command options specified in the configuration file. The
-# config file object acts much like a hash.
+##
+# Gem::ConfigFile RubyGems options and gem command options from ~/.gemrc.
+#
+# ~/.gemrc is a YAML file that uses strings to match gem command arguments and
+# symbols to match RubyGems options.
+#
+# Gem command arguments use a String key that matches the command name and
+# allow you to specify default arguments:
+#
+# install: --no-rdoc --no-ri
+# update: --no-rdoc --no-ri
+#
+# You can use <tt>gem:</tt> to set default arguments for all commands.
+#
+# RubyGems options use symbol keys. Valid options are:
+#
+# +:backtrace+:: See #backtrace
+# +:benchmark+:: See #benchmark
+# +:sources+:: Sets Gem::sources
+# +:verbose+:: See #verbose
+
+require 'rbconfig'
class Gem::ConfigFile
@@ -32,63 +49,116 @@ class Gem::ConfigFile
system_config_path =
begin
- require 'Win32API'
-
- CSIDL_COMMON_APPDATA = 0x0023
- path = 0.chr * 260
- SHGetFolderPath = Win32API.new 'shell32', 'SHGetFolderPath', 'PLPLP', 'L', :stdcall
- SHGetFolderPath.call nil, CSIDL_COMMON_APPDATA, nil, 1, path
-
- path.strip
- rescue LoadError
- '/etc'
+ require "etc"
+ Etc.sysconfdir
+ rescue LoadError, NoMethodError
+ begin
+ # TODO: remove after we drop 1.8.7 and 1.9.1
+ require 'Win32API'
+
+ CSIDL_COMMON_APPDATA = 0x0023
+ path = 0.chr * 260
+ if RUBY_VERSION > '1.9' then
+ SHGetFolderPath = Win32API.new 'shell32', 'SHGetFolderPath', 'PLPLP',
+ 'L', :stdcall
+ SHGetFolderPath.call nil, CSIDL_COMMON_APPDATA, nil, 1, path
+ else
+ SHGetFolderPath = Win32API.new 'shell32', 'SHGetFolderPath', 'LLLLP',
+ 'L'
+ SHGetFolderPath.call 0, CSIDL_COMMON_APPDATA, 0, 1, path
+ end
+
+ path.strip
+ rescue LoadError
+ RbConfig::CONFIG["sysconfdir"] || "/etc"
+ end
end
SYSTEM_WIDE_CONFIG_FILE = File.join system_config_path, 'gemrc'
+ ##
# List of arguments supplied to the config file object.
+
attr_reader :args
- # Where to look for gems
+ ##
+ # Where to look for gems (deprecated)
+
attr_accessor :path
+ ##
+ # Where to install gems (deprecated)
+
attr_accessor :home
+ ##
# True if we print backtraces on errors.
+
attr_writer :backtrace
+ ##
# True if we are benchmarking this run.
+
attr_accessor :benchmark
- # Bulk threshold value. If the number of missing gems are above
- # this threshold value, then a bulk download technique is used.
+ ##
+ # Bulk threshold value. If the number of missing gems are above this
+ # threshold value, then a bulk download technique is used. (deprecated)
+
attr_accessor :bulk_threshold
+ ##
# Verbose level of output:
# * false -- No output
# * true -- Normal output
# * :loud -- Extra output
+
attr_accessor :verbose
+ ##
# True if we want to update the SourceInfoCache every time, false otherwise
+
attr_accessor :update_sources
+ ##
+ # API key for RubyGems.org
+
+ attr_reader :rubygems_api_key
+
+ ##
+ # Hash of RubyGems.org and alternate API keys
+
+ attr_reader :api_keys
+
+ ##
+ # openssl verify mode value, used for remote https connection
+
+ attr_reader :ssl_verify_mode
+
+ ##
+ # Path name of directory or file of openssl CA certificate, used for remote https connection
+
+ attr_reader :ssl_ca_cert
+
+ ##
# Create the config file object. +args+ is the list of arguments
# from the command line.
#
# The following command line options are handled early here rather
# than later at the time most command options are processed.
#
- # * --config-file and --config-file==NAME -- Obviously these need
- # to be handled by the ConfigFile object to ensure we get the
- # right config file.
- #
- # * --backtrace -- Backtrace needs to be turned on early so that
- # errors before normal option parsing can be properly handled.
+ # <tt>--config-file</tt>, <tt>--config-file==NAME</tt>::
+ # Obviously these need to be handled by the ConfigFile object to ensure we
+ # get the right config file.
#
- # * --debug -- Enable Ruby level debug messages. Handled early
- # for the same reason as --backtrace.
+ # <tt>--backtrace</tt>::
+ # Backtrace needs to be turned on early so that errors before normal
+ # option parsing can be properly handled.
#
+ # <tt>--debug</tt>::
+ # Enable Ruby level debug messages. Handled early for the same reason as
+ # --backtrace.
+
def initialize(arg_list)
@config_file_name = nil
need_config_file_name = false
@@ -125,21 +195,62 @@ class Gem::ConfigFile
@hash = @hash.merge user_config
# HACK these override command-line args, which is bad
- @backtrace = @hash[:backtrace] if @hash.key? :backtrace
- @benchmark = @hash[:benchmark] if @hash.key? :benchmark
- @bulk_threshold = @hash[:bulk_threshold] if @hash.key? :bulk_threshold
- Gem.sources = @hash[:sources] if @hash.key? :sources
- @verbose = @hash[:verbose] if @hash.key? :verbose
- @update_sources = @hash[:update_sources] if @hash.key? :update_sources
- @path = @hash[:gempath] if @hash.key? :gempath
- @home = @hash[:gemhome] if @hash.key? :gemhome
+ @backtrace = @hash[:backtrace] if @hash.key? :backtrace
+ @benchmark = @hash[:benchmark] if @hash.key? :benchmark
+ @bulk_threshold = @hash[:bulk_threshold] if @hash.key? :bulk_threshold
+ @home = @hash[:gemhome] if @hash.key? :gemhome
+ @path = @hash[:gempath] if @hash.key? :gempath
+ @update_sources = @hash[:update_sources] if @hash.key? :update_sources
+ @verbose = @hash[:verbose] if @hash.key? :verbose
+ @ssl_verify_mode = @hash[:ssl_verify_mode] if @hash.key? :ssl_verify_mode
+ @ssl_ca_cert = @hash[:ssl_ca_cert] if @hash.key? :ssl_ca_cert
+
+ load_api_keys
+ Gem.sources = @hash[:sources] if @hash.key? :sources
handle_arguments arg_list
end
+ ##
+ # Location of RubyGems.org credentials
+
+ def credentials_path
+ File.join Gem.user_home, '.gem', 'credentials'
+ end
+
+ def load_api_keys
+ @api_keys = if File.exist? credentials_path then
+ load_file(credentials_path)
+ else
+ @hash
+ end
+ if @api_keys.key? :rubygems_api_key then
+ @rubygems_api_key = @api_keys[:rubygems_api_key]
+ @api_keys[:rubygems] = @api_keys.delete :rubygems_api_key unless @api_keys.key? :rubygems
+ end
+ end
+
+ def rubygems_api_key=(api_key)
+ config = load_file(credentials_path).merge(:rubygems_api_key => api_key)
+
+ dirname = File.dirname credentials_path
+ Dir.mkdir(dirname) unless File.exist? dirname
+
+ Gem.load_yaml
+
+ File.open(credentials_path, 'w') do |f|
+ f.write config.to_yaml
+ end
+
+ @rubygems_api_key = api_key
+ end
+
def load_file(filename)
+ Gem.load_yaml
+
+ return {} unless filename and File.exist? filename
begin
- YAML.load(File.read(filename)) if filename and File.exist?(filename)
+ YAML.load(File.read(filename))
rescue ArgumentError
warn "Failed to load #{config_file_name}"
rescue Errno::EACCES
@@ -233,8 +344,8 @@ class Gem::ConfigFile
# Writes out this config file, replacing its source.
def write
- File.open config_file_name, 'w' do |fp|
- fp.write self.to_yaml
+ open config_file_name, 'w' do |io|
+ io.write to_yaml
end
end
@@ -261,6 +372,4 @@ class Gem::ConfigFile
protected
attr_reader :hash
-
end
-
diff --git a/lib/rubygems/custom_require.rb b/lib/rubygems/custom_require.rb
index 78c7872b6f..c813e3aaa2 100755..100644
--- a/lib/rubygems/custom_require.rb
+++ b/lib/rubygems/custom_require.rb
@@ -4,14 +4,18 @@
# See LICENSE.txt for permissions.
#++
-require 'rubygems'
-
module Kernel
- ##
- # The Kernel#require from before RubyGems was loaded.
+ if defined?(gem_original_require) then
+ # Ruby ships with a custom_require, override its require
+ remove_method :require
+ else
+ ##
+ # The Kernel#require from before RubyGems was loaded.
- alias gem_original_require require
+ alias gem_original_require require
+ private :gem_original_require
+ end
##
# When RubyGems is required, Kernel#require is replaced with our own which
@@ -27,20 +31,39 @@ module Kernel
# The normal <tt>require</tt> functionality of returning false if
# that file has already been loaded is preserved.
- def require(path) # :doc:
- gem_original_require path
- rescue LoadError => load_error
- if load_error.message =~ /#{Regexp.escape path}\z/ and
- spec = Gem.searcher.find(path) then
- Gem.activate(spec.name, "= #{spec.version}")
+ def require path
+ if Gem.unresolved_deps.empty? then
gem_original_require path
else
- raise load_error
+ spec = Gem::Specification.find { |s|
+ s.activated? and s.contains_requirable_file? path
+ }
+
+ unless spec then
+ found_specs = Gem::Specification.find_in_unresolved path
+ unless found_specs.empty? then
+ found_specs = [found_specs.last]
+ else
+ found_specs = Gem::Specification.find_in_unresolved_tree path
+ end
+
+ found_specs.each do |found_spec|
+ found_spec.activate
+ end
+ end
+
+ return gem_original_require path
end
+ rescue LoadError => load_error
+ if load_error.message.start_with?("Could not find") or
+ (load_error.message.end_with?(path) and Gem.try_activate(path)) then
+ return gem_original_require(path)
+ end
+
+ raise load_error
end
private :require
- private :gem_original_require
end
diff --git a/lib/rubygems/defaults.rb b/lib/rubygems/defaults.rb
index 995b81e1b2..d6732adbfa 100644
--- a/lib/rubygems/defaults.rb
+++ b/lib/rubygems/defaults.rb
@@ -1,5 +1,7 @@
module Gem
+ # TODO: move this whole file back into rubygems.rb
+
@post_install_hooks ||= []
@post_uninstall_hooks ||= []
@pre_uninstall_hooks ||= []
@@ -9,7 +11,7 @@ module Gem
# An Array of the default sources that come with RubyGems
def self.default_sources
- %w[http://gems.rubyforge.org/]
+ %w[http://rubygems.org/]
end
##
@@ -17,35 +19,67 @@ module Gem
# specified in the environment
def self.default_dir
- if defined? RUBY_FRAMEWORK_VERSION then
- File.join File.dirname(ConfigMap[:sitedir]), 'Gems',
- ConfigMap[:ruby_version]
- else
- ConfigMap[:sitelibdir].sub(%r'/site_ruby/(?=[^/]+)', '/gems/')
- end
+ path = if defined? RUBY_FRAMEWORK_VERSION then
+ [
+ File.dirname(ConfigMap[:sitedir]),
+ 'Gems',
+ ConfigMap[:ruby_version]
+ ]
+ elsif ConfigMap[:rubylibprefix] then
+ [
+ ConfigMap[:rubylibprefix],
+ 'gems',
+ ConfigMap[:ruby_version]
+ ]
+ else
+ [
+ ConfigMap[:libdir],
+ ruby_engine,
+ 'gems',
+ ConfigMap[:ruby_version]
+ ]
+ end
+
+ @default_dir ||= File.join(*path)
+ end
+
+ ##
+ # Paths where RubyGems' .rb files and bin files are installed
+
+ def self.default_rubygems_dirs
+ nil # default to standard layout
end
##
# Path for gems in the user's home directory
def self.user_dir
- File.join(Gem.user_home, '.gem', ruby_engine,
- ConfigMap[:ruby_version])
+ File.join Gem.user_home, '.gem', ruby_engine, ConfigMap[:ruby_version]
end
##
# Default gem load path
def self.default_path
- [user_dir, default_dir]
+ if File.exist? Gem.user_home then
+ [user_dir, default_dir]
+ else
+ [default_dir]
+ end
end
##
# Deduce Ruby's --program-prefix and --program-suffix from its install name
def self.default_exec_format
- baseruby = ConfigMap[:BASERUBY] || 'ruby'
- ConfigMap[:RUBY_INSTALL_NAME].sub(baseruby, '%s') rescue '%s'
+ exec_format = ConfigMap[:ruby_install_name].sub('ruby', '%s') rescue '%s'
+
+ unless exec_format =~ /%s/ then
+ raise Gem::Exception,
+ "[BUG] invalid exec_format #{exec_format.inspect}, no %s"
+ end
+
+ exec_format
end
##
@@ -63,14 +97,18 @@ module Gem
# The default system-wide source info cache directory
def self.default_system_source_cache_dir
- File.join Gem.dir, 'source_cache'
+ File.join(Gem.dir, 'source_cache')
end
##
# The default user-specific source info cache directory
def self.default_user_source_cache_dir
- File.join Gem.user_home, '.gem', 'source_cache'
+ #
+ # NOTE Probably an argument for moving this to per-ruby supported dirs like
+ # user_dir
+ #
+ File.join(Gem.user_home, '.gem', 'source_cache')
end
##
@@ -83,6 +121,4 @@ module Gem
'ruby'
end
end
-
end
-
diff --git a/lib/rubygems/dependency.rb b/lib/rubygems/dependency.rb
index 7b9904df55..0caf65c6c4 100644
--- a/lib/rubygems/dependency.rb
+++ b/lib/rubygems/dependency.rb
@@ -1,13 +1,7 @@
-#--
-# Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others.
-# All rights reserved.
-# See LICENSE.txt for permissions.
-#++
-
-require 'rubygems'
+require "rubygems/requirement"
##
-# The Dependency class holds a Gem name and a Gem::Requirement
+# The Dependency class holds a Gem name and a Gem::Requirement.
class Gem::Dependency
@@ -18,9 +12,9 @@ class Gem::Dependency
# Gem::Specification::CURRENT_SPECIFICATION_VERSION as well.
TYPES = [
- :development,
- :runtime,
- ]
+ :development,
+ :runtime,
+ ]
##
# Dependency name or regular expression.
@@ -28,92 +22,239 @@ class Gem::Dependency
attr_accessor :name
##
- # Dependency type.
+ # Allows you to force this dependency to be a prerelease.
- attr_reader :type
+ attr_writer :prerelease
##
- # Dependent versions.
+ # Constructs a dependency with +name+ and +requirements+. The last
+ # argument can optionally be the dependency type, which defaults to
+ # <tt>:runtime</tt>.
+
+ def initialize name, *requirements
+ if Regexp === name then
+ msg = ["NOTE: Dependency.new w/ a regexp is deprecated.",
+ "Dependency.new called from #{Gem.location_of_caller.join(":")}"]
+ warn msg.join("\n") unless Gem::Deprecate.skip
+ end
- attr_writer :version_requirements
+ type = Symbol === requirements.last ? requirements.pop : :runtime
+ requirements = requirements.first if 1 == requirements.length # unpack
- ##
- # Orders dependencies by name only.
+ unless TYPES.include? type
+ raise ArgumentError, "Valid types are #{TYPES.inspect}, "
+ + "not #{type.inspect}"
+ end
+
+ @name = name
+ @requirement = Gem::Requirement.create requirements
+ @type = type
+ @prerelease = false
+
+ # This is for Marshal backwards compatibility. See the comments in
+ # +requirement+ for the dirty details.
- def <=>(other)
- [@name] <=> [other.name]
+ @version_requirements = @requirement
end
##
- # Constructs a dependency with +name+ and +requirements+.
+ # A dependency's hash is the XOR of the hashes of +name+, +type+,
+ # and +requirement+.
- def initialize(name, version_requirements, type=:runtime)
- @name = name
+ def hash # :nodoc:
+ name.hash ^ type.hash ^ requirement.hash
+ end
- unless TYPES.include? type
- raise ArgumentError, "Valid types are #{TYPES.inspect}, not #{@type.inspect}"
- end
+ def inspect # :nodoc:
+ "<%s type=%p name=%p requirements=%p>" %
+ [self.class, self.type, self.name, requirement.to_s]
+ end
- @type = type
+ ##
+ # Does this dependency require a prerelease?
- @version_requirements = Gem::Requirement.create version_requirements
- @version_requirement = nil # Avoid warnings.
+ def prerelease?
+ @prerelease || requirement.prerelease?
end
- def version_requirements
- normalize if defined? @version_requirement and @version_requirement
- @version_requirements
- end
+ def pretty_print q # :nodoc:
+ q.group 1, 'Gem::Dependency.new(', ')' do
+ q.pp name
+ q.text ','
+ q.breakable
+
+ q.pp requirement
- def requirement_list
- version_requirements.as_list
+ q.text ','
+ q.breakable
+
+ q.pp type
+ end
end
- alias requirements_list requirement_list
+ ##
+ # What does this dependency require?
+
+ def requirement
+ return @requirement if defined?(@requirement) and @requirement
+
+ # @version_requirements and @version_requirement are legacy ivar
+ # names, and supported here because older gems need to keep
+ # working and Dependency doesn't implement marshal_dump and
+ # marshal_load. In a happier world, this would be an
+ # attr_accessor. The horrifying instance_variable_get you see
+ # below is also the legacy of some old restructurings.
+ #
+ # Note also that because of backwards compatibility (loading new
+ # gems in an old RubyGems installation), we can't add explicit
+ # marshaling to this class until we want to make a big
+ # break. Maybe 2.0.
+ #
+ # Children, define explicit marshal and unmarshal behavior for
+ # public classes. Marshal formats are part of your public API.
+
+ if defined?(@version_requirement) && @version_requirement
+ version = @version_requirement.instance_variable_get :@version
+ @version_requirement = nil
+ @version_requirements = Gem::Requirement.new version
+ end
+
+ @requirement = @version_requirements if defined?(@version_requirements)
+ end
- def normalize
- ver = @version_requirement.instance_eval { @version }
- @version_requirements = Gem::Requirement.new([ver])
- @version_requirement = nil
+ def requirements_list
+ requirement.as_list
end
def to_s # :nodoc:
- "#{name} (#{version_requirements}, #{@type || :runtime})"
+ if type != :runtime then
+ "#{name} (#{requirement}, #{type})"
+ else
+ "#{name} (#{requirement})"
+ end
+ end
+
+ ##
+ # Dependency type.
+
+ def type
+ @type ||= :runtime
end
- def ==(other) # :nodoc:
- self.class === other &&
- self.name == other.name &&
- self.type == other.type &&
- self.version_requirements == other.version_requirements
+ def == other # :nodoc:
+ Gem::Dependency === other &&
+ self.name == other.name &&
+ self.type == other.type &&
+ self.requirement == other.requirement
end
##
- # Uses this dependency as a pattern to compare to the dependency +other+.
- # This dependency will match if the name matches the other's name, and other
- # has only an equal version requirement that satisfies this dependency.
+ # Dependencies are ordered by name.
- def =~(other)
- return false unless self.class === other
+ def <=> other
+ self.name <=> other.name
+ end
- pattern = @name
- pattern = /\A#{@name}\Z/ unless Regexp === pattern
+ ##
+ # Uses this dependency as a pattern to compare to +other+. This
+ # dependency will match if the name matches the other's name, and
+ # other has only an equal version requirement that satisfies this
+ # dependency.
+
+ def =~ other
+ unless Gem::Dependency === other
+ return unless other.respond_to?(:name) && other.respond_to?(:version)
+ other = Gem::Dependency.new other.name, other.version
+ end
- return false unless pattern =~ other.name
+ return false unless name === other.name
- reqs = other.version_requirements.requirements
+ reqs = other.requirement.requirements
return false unless reqs.length == 1
return false unless reqs.first.first == '='
version = reqs.first.last
- version_requirements.satisfied_by? version
+ requirement.satisfied_by? version
end
- def hash # :nodoc:
- name.hash + type.hash + version_requirements.hash
+ def match? name, version
+ return false unless self.name === name
+ return true if requirement.none?
+
+ requirement.satisfied_by? Gem::Version.new(version)
end
-end
+ def matches_spec? spec
+ return false unless name === spec.name
+ return true if requirement.none?
+
+ requirement.satisfied_by?(spec.version)
+ end
+
+ ##
+ # Merges the requirements of +other+ into this dependency
+
+ def merge other
+ unless name == other.name then
+ raise ArgumentError,
+ "#{self} and #{other} have different names"
+ end
+ default = Gem::Requirement.default
+ self_req = self.requirement
+ other_req = other.requirement
+
+ return self.class.new name, self_req if other_req == default
+ return self.class.new name, other_req if self_req == default
+
+ self.class.new name, self_req.as_list.concat(other_req.as_list)
+ end
+
+ def matching_specs platform_only = false
+ matches = Gem::Specification.find_all { |spec|
+ self.name === spec.name and # TODO: == instead of ===
+ requirement.satisfied_by? spec.version
+ }
+
+ if platform_only
+ matches.reject! { |spec|
+ not Gem::Platform.match spec.platform
+ }
+ end
+
+ matches = matches.sort_by { |s| s.sort_obj } # HACK: shouldn't be needed
+ end
+
+ ##
+ # True if the dependency will not always match the latest version.
+
+ def specific?
+ @requirement.specific?
+ end
+
+ def to_specs
+ matches = matching_specs true
+
+ # TODO: check Gem.activated_spec[self.name] in case matches falls outside
+
+ if matches.empty? then
+ specs = Gem::Specification.all_names.join ", "
+ error = Gem::LoadError.new "Could not find #{name} (#{requirement}) amongst [#{specs}]"
+ error.name = self.name
+ error.requirement = self.requirement
+ raise error
+ end
+
+ # TODO: any other resolver validations should go here
+
+ matches
+ end
+
+ def to_spec
+ matches = self.to_specs
+
+ matches.find { |spec| spec.activated? } or matches.last
+ end
+end
diff --git a/lib/rubygems/dependency_installer.rb b/lib/rubygems/dependency_installer.rb
index 9ae2659536..6303e8e9ac 100644
--- a/lib/rubygems/dependency_installer.rb
+++ b/lib/rubygems/dependency_installer.rb
@@ -15,13 +15,14 @@ class Gem::DependencyInstaller
attr_reader :installed_gems
DEFAULT_OPTIONS = {
- :env_shebang => false,
- :domain => :both, # HACK dup
- :force => false,
- :format_executable => false, # HACK dup
+ :env_shebang => false,
+ :domain => :both, # HACK dup
+ :force => false,
+ :format_executable => false, # HACK dup
:ignore_dependencies => false,
- :security_policy => nil, # HACK NoSecurity requires OpenSSL. AlmostNo? Low?
- :wrappers => true
+ :prerelease => false,
+ :security_policy => nil, # HACK NoSecurity requires OpenSSL. AlmostNo? Low?
+ :wrappers => true,
}
##
@@ -37,44 +38,53 @@ class Gem::DependencyInstaller
# :format_executable:: See Gem::Installer#initialize.
# :ignore_dependencies:: Don't install any dependencies.
# :install_dir:: See Gem::Installer#install.
+ # :prerelease:: Allow prerelease versions. See #install.
# :security_policy:: See Gem::Installer::new and Gem::Security.
# :user_install:: See Gem::Installer.new
# :wrappers:: See Gem::Installer::new
def initialize(options = {})
if options[:install_dir] then
- spec_dir = options[:install_dir], 'specifications'
- @source_index = Gem::SourceIndex.from_gems_in spec_dir
- else
- @source_index = Gem.source_index
+ @gem_home = options[:install_dir]
+
+ Gem::Specification.dirs = @gem_home
+ Gem.ensure_gem_subdirectories @gem_home
+ options[:install_dir] = @gem_home # FIX: because we suck and reuse below
end
options = DEFAULT_OPTIONS.merge options
- @bin_dir = options[:bin_dir]
- @development = options[:development]
- @domain = options[:domain]
- @env_shebang = options[:env_shebang]
- @force = options[:force]
- @format_executable = options[:format_executable]
+ @bin_dir = options[:bin_dir]
+ @development = options[:development]
+ @domain = options[:domain]
+ @env_shebang = options[:env_shebang]
+ @force = options[:force]
+ @format_executable = options[:format_executable]
@ignore_dependencies = options[:ignore_dependencies]
- @security_policy = options[:security_policy]
- @user_install = options[:user_install]
- @wrappers = options[:wrappers]
+ @prerelease = options[:prerelease]
+ @security_policy = options[:security_policy]
+ @user_install = options[:user_install]
+ @wrappers = options[:wrappers]
@installed_gems = []
@install_dir = options[:install_dir] || Gem.dir
@cache_dir = options[:cache_dir] || @install_dir
+
+ # Set with any errors that SpecFetcher finds while search through
+ # gemspecs for a dep
+ @errors = nil
end
##
# Returns a list of pairs of gemspecs and source_uris that match
# Gem::Dependency +dep+ from both local (Dir.pwd) and remote (Gem.sources)
- # sources. Gems are sorted with newer gems prefered over older gems, and
+ # sources. Gems are sorted with newer gems preferred over older gems, and
# local gems preferred over remote gems.
def find_gems_with_sources(dep)
+ # Reset the errors
+ @errors = nil
gems_and_sources = []
if @domain == :both or @domain == :local then
@@ -86,14 +96,19 @@ class Gem::DependencyInstaller
if @domain == :both or @domain == :remote then
begin
- requirements = dep.version_requirements.requirements.map do |req, ver|
+ # REFACTOR: all = dep.requirement.needs_all?
+ requirements = dep.requirement.requirements.map do |req, ver|
req
end
- all = requirements.length > 1 ||
- (requirements.first != ">=" and requirements.first != ">")
+ all = !dep.prerelease? &&
+ # we only need latest if there's one requirement and it is
+ # guaranteed to match the newest specs
+ (requirements.length > 1 or
+ (requirements.first != ">=" and requirements.first != ">"))
+
+ found, @errors = Gem::SpecFetcher.fetcher.fetch_with_errors dep, all, true, dep.prerelease?
- found = Gem::SpecFetcher.fetcher.fetch dep, all
gems_and_sources.push(*found)
rescue Gem::RemoteFetcher::FetchError => e
@@ -117,43 +132,66 @@ class Gem::DependencyInstaller
def gather_dependencies
specs = @specs_and_sources.map { |spec,_| spec }
- dependency_list = Gem::DependencyList.new
+ # these gems were listed by the user, always install them
+ keep_names = specs.map { |spec| spec.full_name }
+
+ dependency_list = Gem::DependencyList.new @development
dependency_list.add(*specs)
+ to_do = specs.dup
+
+ add_found_dependencies to_do, dependency_list unless @ignore_dependencies
+
+ dependency_list.specs.reject! { |spec|
+ not keep_names.include?(spec.full_name) and
+ Gem::Specification.include?(spec)
+ }
- unless @ignore_dependencies then
- to_do = specs.dup
- seen = {}
+ unless dependency_list.ok? or @ignore_dependencies or @force then
+ reason = dependency_list.why_not_ok?.map { |k,v|
+ "#{k} requires #{v.join(", ")}"
+ }.join("; ")
+ raise Gem::DependencyError, "Unable to resolve dependencies: #{reason}"
+ end
- until to_do.empty? do
- spec = to_do.shift
- next if spec.nil? or seen[spec.name]
- seen[spec.name] = true
+ @gems_to_install = dependency_list.dependency_order.reverse
+ end
- deps = spec.runtime_dependencies
- deps |= spec.development_dependencies if @development
+ def add_found_dependencies to_do, dependency_list
+ seen = {}
+ dependencies = Hash.new { |h, name| h[name] = Gem::Dependency.new name }
- deps.each do |dep|
- results = find_gems_with_sources(dep).reverse
+ until to_do.empty? do
+ spec = to_do.shift
+ next if spec.nil? or seen[spec.name]
+ seen[spec.name] = true
- results.reject! do |dep_spec,|
- to_do.push dep_spec
+ deps = spec.runtime_dependencies
+ deps |= spec.development_dependencies if @development
- @source_index.any? do |_, installed_spec|
- dep.name == installed_spec.name and
- dep.version_requirements.satisfied_by? installed_spec.version
- end
- end
+ deps.each do |dep|
+ dependencies[dep.name] = dependencies[dep.name].merge dep
- results.each do |dep_spec, source_uri|
- next if seen[dep_spec.name]
- @specs_and_sources << [dep_spec, source_uri]
- dependency_list.add dep_spec
+ results = find_gems_with_sources(dep).reverse
+
+ results.reject! do |dep_spec,|
+ to_do.push dep_spec
+
+ # already locally installed
+ Gem::Specification.any? do |installed_spec|
+ dep.name == installed_spec.name and
+ dep.requirement.satisfied_by? installed_spec.version
end
end
+
+ results.each do |dep_spec, source_uri|
+ @specs_and_sources << [dep_spec, source_uri]
+
+ dependency_list.add dep_spec
+ end
end
end
- @gems_to_install = dependency_list.dependency_order.reverse
+ dependency_list.remove_specs_unsatisfied_by dependencies
end
##
@@ -161,7 +199,9 @@ class Gem::DependencyInstaller
# +version+. Returns an Array of specs and sources required for
# installation of the gem.
- def find_spec_by_name_and_version gem_name, version = Gem::Requirement.default
+ def find_spec_by_name_and_version(gem_name,
+ version = Gem::Requirement.default,
+ prerelease = false)
spec_and_source = nil
glob = if File::ALT_SEPARATOR then
@@ -172,43 +212,53 @@ class Gem::DependencyInstaller
local_gems = Dir["#{glob}*"].sort.reverse
- unless local_gems.empty? then
- local_gems.each do |gem_file|
- next unless gem_file =~ /gem$/
- begin
- spec = Gem::Format.from_file_by_path(gem_file).spec
- spec_and_source = [spec, gem_file]
- break
- rescue SystemCallError, Gem::Package::FormatError
- end
+ local_gems.each do |gem_file|
+ next unless gem_file =~ /gem$/
+ begin
+ spec = Gem::Format.from_file_by_path(gem_file).spec
+ spec_and_source = [spec, gem_file]
+ break
+ rescue SystemCallError, Gem::Package::FormatError
end
end
- if spec_and_source.nil? then
+ unless spec_and_source then
dep = Gem::Dependency.new gem_name, version
+ dep.prerelease = true if prerelease
spec_and_sources = find_gems_with_sources(dep).reverse
-
spec_and_source = spec_and_sources.find { |spec, source|
Gem::Platform.match spec.platform
}
end
if spec_and_source.nil? then
- raise Gem::GemNotFoundException,
- "could not find gem #{gem_name} locally or in a repository"
+ raise Gem::GemNotFoundException.new(
+ "Could not find a valid gem '#{gem_name}' (#{version}) locally or in a repository",
+ gem_name, version, @errors)
end
@specs_and_sources = [spec_and_source]
end
##
- # Installs the gem and all its dependencies. Returns an Array of installed
- # gems specifications.
+ # Installs the gem +dep_or_name+ and all its dependencies. Returns an Array
+ # of installed gem specifications.
+ #
+ # If the +:prerelease+ option is set and there is a prerelease for
+ # +dep_or_name+ the prerelease version will be installed.
+ #
+ # Unless explicitly specified as a prerelease dependency, prerelease gems
+ # that +dep_or_name+ depend on will not be installed.
+ #
+ # If c-1.a depends on b-1 and a-1.a and there is a gem b-1.a available then
+ # c-1.a, b-1 and a-1.a will be installed. b-1.a will need to be installed
+ # separately.
def install dep_or_name, version = Gem::Requirement.default
if String === dep_or_name then
- find_spec_by_name_and_version dep_or_name, version
+ find_spec_by_name_and_version dep_or_name, version, @prerelease
else
+ dep_or_name.prerelease = @prerelease
@specs_and_sources = [find_gems_with_sources(dep_or_name).last]
end
@@ -216,10 +266,9 @@ class Gem::DependencyInstaller
gather_dependencies
- @gems_to_install.each do |spec|
- last = spec == @gems_to_install.last
- # HACK is this test for full_name acceptable?
- next if @source_index.any? { |n,_| n == spec.full_name } and not last
+ last = @gems_to_install.size - 1
+ @gems_to_install.each_with_index do |spec, index|
+ next if Gem::Specification.include?(spec) and index != last
# TODO: make this sorta_verbose so other users can benefit from it
say "Installing gem #{spec.full_name}" if Gem.configuration.really_verbose
@@ -242,7 +291,6 @@ class Gem::DependencyInstaller
:ignore_dependencies => @ignore_dependencies,
:install_dir => @install_dir,
:security_policy => @security_policy,
- :source_index => @source_index,
:user_install => @user_install,
:wrappers => @wrappers
@@ -253,6 +301,4 @@ class Gem::DependencyInstaller
@installed_gems
end
-
end
-
diff --git a/lib/rubygems/dependency_list.rb b/lib/rubygems/dependency_list.rb
index a129743914..9f1da9166c 100644
--- a/lib/rubygems/dependency_list.rb
+++ b/lib/rubygems/dependency_list.rb
@@ -5,43 +5,77 @@
#++
require 'tsort'
+require 'rubygems/deprecate'
+
+##
+# Gem::DependencyList is used for installing and uninstalling gems in the
+# correct order to avoid conflicts.
class Gem::DependencyList
+ attr_reader :specs
+ include Enumerable
include TSort
- def self.from_source_index(src_index)
- deps = new
+ ##
+ # Allows enabling/disabling use of development dependencies
- src_index.each do |full_name, spec|
- deps.add spec
- end
+ attr_accessor :development
+
+ ##
+ # Creates a DependencyList from the current specs.
+
+ def self.from_specs
+ list = new
+ list.add(*Gem::Specification.map)
+ list
+ end
- deps
+ ##
+ # Creates a DependencyList from a Gem::SourceIndex +source_index+
+
+ def self.from_source_index(ignored=nil)
+ warn "NOTE: DependencyList.from_source_index ignores it's arg" if ignored
+
+ from_specs
end
- def initialize
+ ##
+ # Creates a new DependencyList. If +development+ is true, development
+ # dependencies will be included.
+
+ def initialize development = false
@specs = []
+
+ @development = development
end
+ ##
# Adds +gemspecs+ to the dependency list.
+
def add(*gemspecs)
@specs.push(*gemspecs)
end
- # Return a list of the specifications in the dependency list,
- # sorted in order so that no spec in the list depends on a gem
- # earlier in the list.
+ def clear
+ @specs.clear
+ end
+
+ ##
+ # Return a list of the gem specifications in the dependency list, sorted in
+ # order so that no gemspec in the list depends on a gemspec earlier in the
+ # list.
#
- # This is useful when removing gems from a set of installed gems.
- # By removing them in the returned order, you don't get into as
- # many dependency issues.
+ # This is useful when removing gems from a set of installed gems. By
+ # removing them in the returned order, you don't get into as many dependency
+ # issues.
#
- # If there are circular dependencies (yuck!), then gems will be
- # returned in order until only the circular dependents and anything
- # they reference are left. Then arbitrary gemspecs will be returned
- # until the circular dependency is broken, after which gems will be
- # returned in dependency order again.
+ # If there are circular dependencies (yuck!), then gems will be returned in
+ # order until only the circular dependents and anything they reference are
+ # left. Then arbitrary gemspecs will be returned until the circular
+ # dependency is broken, after which gems will be returned in dependency
+ # order again.
+
def dependency_order
sorted = strongly_connected_components.flatten
@@ -62,23 +96,53 @@ class Gem::DependencyList
result.reverse
end
+ ##
+ # Iterator over dependency_order
+
+ def each(&block)
+ dependency_order.each(&block)
+ end
+
def find_name(full_name)
@specs.find { |spec| spec.full_name == full_name }
end
+ def inspect # :nodoc:
+ "#<%s:0x%x %p>" % [self.class, object_id, map { |s| s.full_name }]
+ end
+
+ ##
# Are all the dependencies in the list satisfied?
+
def ok?
- @specs.all? do |spec|
- spec.runtime_dependencies.all? do |dep|
- @specs.find { |s| s.satisfies_requirement? dep }
+ why_not_ok?(:quick).empty?
+ end
+
+ def why_not_ok? quick = false
+ unsatisfied = Hash.new { |h,k| h[k] = [] }
+ each do |spec|
+ spec.runtime_dependencies.each do |dep|
+ inst = Gem::Specification.any? { |installed_spec|
+ dep.name == installed_spec.name and
+ dep.requirement.satisfied_by? installed_spec.version
+ }
+
+ unless inst or @specs.find { |s| s.satisfies_requirement? dep } then
+ unsatisfied[spec.name] << dep
+ return unsatisfied if quick
+ end
end
end
+
+ unsatisfied
end
- # Is is ok to remove a gem from the dependency list?
+ ##
+ # Is is ok to remove a gemspec from the dependency list?
#
- # If removing the gemspec creates breaks a currently ok dependency,
- # then it is NOT ok to remove the gem.
+ # If removing the gemspec creates breaks a currently ok dependency, then it
+ # is NOT ok to remove the gemspec.
+
def ok_to_remove?(full_name)
gem_to_remove = find_name full_name
@@ -102,13 +166,29 @@ class Gem::DependencyList
}
end
+ ##
+ # Remove everything in the DependencyList that matches but doesn't
+ # satisfy items in +dependencies+ (a hash of gem names to arrays of
+ # dependencies).
+
+ def remove_specs_unsatisfied_by dependencies
+ specs.reject! { |spec|
+ dep = dependencies[spec.name]
+ dep and not dep.requirement.satisfied_by? spec.version
+ }
+ end
+
+ ##
+ # Removes the gemspec matching +full_name+ from the dependency list
+
def remove_by_name(full_name)
@specs.delete_if { |spec| spec.full_name == full_name }
end
- # Return a hash of predecessors. <tt>result[spec]</tt> is an
- # Array of gemspecs that have a dependency satisfied by the named
- # spec.
+ ##
+ # Return a hash of predecessors. <tt>result[spec]</tt> is an Array of
+ # gemspecs that have a dependency satisfied by the named gemspec.
+
def spec_predecessors
result = Hash.new { |h,k| h[k] = [] }
@@ -136,12 +216,16 @@ class Gem::DependencyList
def tsort_each_child(node, &block)
specs = @specs.sort.reverse
- node.dependencies.each do |dep|
+ dependencies = node.runtime_dependencies
+ dependencies.push(*node.development_dependencies) if @development
+
+ dependencies.each do |dep|
specs.each do |spec|
if spec.satisfies_requirement? dep then
begin
yield spec
rescue TSort::Cyclic
+ # do nothing
end
break
end
@@ -151,15 +235,18 @@ class Gem::DependencyList
private
+ ##
# Count the number of gemspecs in the list +specs+ that are not in
# +ignored+.
+
def active_count(specs, ignored)
- result = 0
- specs.each do |spec|
- result += 1 unless ignored[spec.full_name]
- end
- result
+ specs.count { |spec| ignored[spec.full_name].nil? }
end
-
end
+class Gem::DependencyList
+ class << self
+ extend Gem::Deprecate
+ deprecate :from_source_index, "from_specs", 2011, 11
+ end
+end
diff --git a/lib/rubygems/deprecate.rb b/lib/rubygems/deprecate.rb
new file mode 100644
index 0000000000..a78208ec24
--- /dev/null
+++ b/lib/rubygems/deprecate.rb
@@ -0,0 +1,70 @@
+##
+# Provides a single method +deprecate+ to be used to declare when
+# something is going away.
+#
+# class Legacy
+# def self.klass_method
+# # ...
+# end
+#
+# def instance_method
+# # ...
+# end
+#
+# extend Gem::Deprecate
+# deprecate :instance_method, "X.z", 2011, 4
+#
+# class << self
+# extend Gem::Deprecate
+# deprecate :klass_method, :none, 2011, 4
+# end
+# end
+
+module Gem
+ module Deprecate
+
+ def self.skip # :nodoc:
+ @skip ||= false
+ end
+
+ def self.skip= v # :nodoc:
+ @skip = v
+ end
+
+ ##
+ # Temporarily turn off warnings. Intended for tests only.
+
+ def skip_during
+ Gem::Deprecate.skip, original = true, Gem::Deprecate.skip
+ yield
+ ensure
+ Gem::Deprecate.skip = original
+ end
+
+ ##
+ # Simple deprecation method that deprecates +name+ by wrapping it up
+ # in a dummy method. It warns on each call to the dummy method
+ # telling the user of +repl+ (unless +repl+ is :none) and the
+ # year/month that it is planned to go away.
+
+ def deprecate name, repl, year, month
+ class_eval {
+ old = "_deprecated_#{name}"
+ alias_method old, name
+ define_method name do |*args, &block| # TODO: really works on 1.8.7?
+ klass = self.kind_of? Module
+ target = klass ? "#{self}." : "#{self.class}#"
+ msg = [ "NOTE: #{target}#{name} is deprecated",
+ repl == :none ? " with no replacement" : ", use #{repl}",
+ ". It will be removed on or after %4d-%02d-01." % [year, month],
+ "\n#{target}#{name} called from #{Gem.location_of_caller.join(":")}",
+ ]
+ warn "#{msg.join}." unless Gem::Deprecate.skip
+ send old, *args, &block
+ end
+ }
+ end
+
+ module_function :deprecate, :skip_during
+ end
+end
diff --git a/lib/rubygems/digest/md5.rb b/lib/rubygems/digest/md5.rb
deleted file mode 100755
index 2bc8f9c138..0000000000
--- a/lib/rubygems/digest/md5.rb
+++ /dev/null
@@ -1,13 +0,0 @@
-#--
-# Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others.
-# All rights reserved.
-# See LICENSE.txt for permissions.
-#++
-
-require 'digest/md5'
-
-# :stopdoc:
-module Gem
- MD5 = Digest::MD5
-end
-# :startdoc:
diff --git a/lib/rubygems/digest/sha1.rb b/lib/rubygems/digest/sha1.rb
deleted file mode 100755
index 2d91c0f45a..0000000000
--- a/lib/rubygems/digest/sha1.rb
+++ /dev/null
@@ -1,11 +0,0 @@
-#--
-# Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others.
-# All rights reserved.
-# See LICENSE.txt for permissions.
-#++
-
-require 'digest/sha1'
-
-module Gem
- SHA1 = Digest::SHA1
-end
diff --git a/lib/rubygems/digest/sha2.rb b/lib/rubygems/digest/sha2.rb
deleted file mode 100755
index 91cb236165..0000000000
--- a/lib/rubygems/digest/sha2.rb
+++ /dev/null
@@ -1,11 +0,0 @@
-#--
-# Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others.
-# All rights reserved.
-# See LICENSE.txt for permissions.
-#++
-
-require 'digest/sha2'
-
-module Gem
- SHA256 = Digest::SHA256
-end
diff --git a/lib/rubygems/doc_manager.rb b/lib/rubygems/doc_manager.rb
index 00ef4c51e3..826f57d9dd 100644
--- a/lib/rubygems/doc_manager.rb
+++ b/lib/rubygems/doc_manager.rb
@@ -4,7 +4,6 @@
# See LICENSE.txt for permissions.
#++
-require 'fileutils'
require 'rubygems'
##
@@ -41,12 +40,23 @@ class Gem::DocManager
begin
require 'rdoc/rdoc'
+
+ @rdoc_version = if defined? RDoc::VERSION then
+ Gem::Version.new RDoc::VERSION
+ else
+ Gem::Version.new '1.0.1' # HACK parsing is hard
+ end
+
rescue LoadError => e
raise Gem::DocumentError,
- "ERROR: RDoc documentation generator not installed!"
+ "ERROR: RDoc documentation generator not installed: #{e}"
end
end
+ def self.rdoc_version
+ @rdoc_version
+ end
+
##
# Updates the RI cache for RDoc 2 if it is installed
@@ -66,7 +76,7 @@ class Gem::DocManager
:formatter => RDoc::RI::Formatter,
}
- driver = RDoc::RI::Driver.new(options).class_cache
+ RDoc::RI::Driver.new(options).class_cache
end
##
@@ -74,8 +84,9 @@ class Gem::DocManager
# RDoc (template etc.) as a String.
def initialize(spec, rdoc_args="")
+ require 'fileutils'
@spec = spec
- @doc_dir = File.join(spec.installation_path, "doc", spec.full_name)
+ @doc_dir = spec.doc_dir
@rdoc_args = rdoc_args.nil? ? [] : rdoc_args.split
end
@@ -87,6 +98,13 @@ class Gem::DocManager
end
##
+ # Is the RI documentation installed?
+
+ def ri_installed?
+ File.exist?(File.join(@doc_dir, "ri"))
+ end
+
+ ##
# Generate the RI documents for this gem spec.
#
# Note that if both RI and RDoc documents are generated from the same
@@ -94,10 +112,8 @@ class Gem::DocManager
# RI docs generation to fail if run after RDoc).
def generate_ri
- if @spec.has_rdoc then
- setup_rdoc
- install_ri # RDoc bug, ri goes first
- end
+ setup_rdoc
+ install_ri # RDoc bug, ri goes first
FileUtils.mkdir_p @doc_dir unless File.exist?(@doc_dir)
end
@@ -110,10 +126,8 @@ class Gem::DocManager
# RI docs generation to fail if run after RDoc).
def generate_rdoc
- if @spec.has_rdoc then
- setup_rdoc
- install_rdoc
- end
+ setup_rdoc
+ install_rdoc
FileUtils.mkdir_p @doc_dir unless File.exist?(@doc_dir)
end
@@ -148,29 +162,45 @@ class Gem::DocManager
def run_rdoc(*args)
args << @spec.rdoc_options
args << self.class.configured_args
- args << '--quiet'
args << @spec.require_paths.clone
args << @spec.extra_rdoc_files
+ args << '--title' << "#{@spec.full_name} Documentation"
+ args << '--quiet'
args = args.flatten.map do |arg| arg.to_s end
+ if self.class.rdoc_version >= Gem::Version.new('2.4.0') then
+ args.delete '--inline-source'
+ args.delete '--promiscuous'
+ args.delete '-p'
+ args.delete '--one-file'
+ # HACK more
+ end
+
+ debug_args = args.dup
+
r = RDoc::RDoc.new
old_pwd = Dir.pwd
- Dir.chdir(@spec.full_gem_path)
+ Dir.chdir @spec.full_gem_path
+
+ say "rdoc #{args.join ' '}" if Gem.configuration.really_verbose
+
begin
r.document args
rescue Errno::EACCES => e
dirname = File.dirname e.message.split("-")[1].strip
raise Gem::FilePermissionError.new(dirname)
- rescue RuntimeError => ex
+ rescue Interrupt => e
+ raise e
+ rescue Exception => ex
alert_error "While generating documentation for #{@spec.full_name}"
ui.errs.puts "... MESSAGE: #{ex}"
- ui.errs.puts "... RDOC args: #{args.join(' ')}"
+ ui.errs.puts "... RDOC args: #{debug_args.join(' ')}"
ui.errs.puts "\t#{ex.backtrace.join "\n\t"}" if
- Gem.configuration.backtrace
- ui.errs.puts "(continuing with the rest of the installation)"
+ Gem.configuration.backtrace
+ terminate_interaction 1
ensure
- Dir.chdir(old_pwd)
+ Dir.chdir old_pwd
end
end
@@ -188,26 +218,25 @@ class Gem::DocManager
# Remove RDoc and RI documentation
def uninstall_doc
- raise Gem::FilePermissionError.new(@spec.installation_path) unless
- File.writable? @spec.installation_path
+ base_dir = @spec.base_dir
+ raise Gem::FilePermissionError.new base_dir unless File.writable? base_dir
- original_name = [
+ # TODO: ok... that's twice... ugh
+ old_name = [
@spec.name, @spec.version, @spec.original_platform].join '-'
- doc_dir = File.join @spec.installation_path, 'doc', @spec.full_name
- unless File.directory? doc_dir then
- doc_dir = File.join @spec.installation_path, 'doc', original_name
- end
-
- FileUtils.rm_rf doc_dir
-
- ri_dir = File.join @spec.installation_path, 'ri', @spec.full_name
+ doc_dir = @spec.doc_dir
+ unless File.directory? doc_dir then
+ doc_dir = File.join File.dirname(doc_dir), old_name
+ end
- unless File.directory? ri_dir then
- ri_dir = File.join @spec.installation_path, 'ri', original_name
- end
+ ri_dir = @spec.ri_dir
+ unless File.directory? ri_dir then
+ ri_dir = File.join File.dirname(ri_dir), old_name
+ end
- FileUtils.rm_rf ri_dir
+ FileUtils.rm_rf doc_dir
+ FileUtils.rm_rf ri_dir
end
end
diff --git a/lib/rubygems/errors.rb b/lib/rubygems/errors.rb
new file mode 100644
index 0000000000..950b34d744
--- /dev/null
+++ b/lib/rubygems/errors.rb
@@ -0,0 +1,35 @@
+class Gem::ErrorReason; end
+
+# Generated when trying to lookup a gem to indicate that the gem
+# was found, but that it isn't usable on the current platform.
+#
+# fetch and install read these and report them to the user to aid
+# in figuring out why a gem couldn't be installed.
+#
+class Gem::PlatformMismatch < Gem::ErrorReason
+
+ attr_reader :name
+ attr_reader :version
+ attr_reader :platforms
+
+ def initialize(name, version)
+ @name = name
+ @version = version
+ @platforms = []
+ end
+
+ def add_platform(platform)
+ @platforms << platform
+ end
+
+ def wordy
+ prefix = "Found #{@name} (#{@version})"
+
+ if @platforms.size == 1
+ "#{prefix}, but was for platform #{@platforms[0]}"
+ else
+ "#{prefix}, but was for platforms #{@platforms.join(' ,')}"
+ end
+ end
+
+end
diff --git a/lib/rubygems/exceptions.rb b/lib/rubygems/exceptions.rb
index c37507c62a..55d67f9125 100644
--- a/lib/rubygems/exceptions.rb
+++ b/lib/rubygems/exceptions.rb
@@ -1,5 +1,3 @@
-require 'rubygems'
-
##
# Base exception class for RubyGems. All exception raised by RubyGems are a
# subclass of this one.
@@ -39,7 +37,16 @@ class Gem::FormatException < Gem::Exception
attr_accessor :file_path
end
-class Gem::GemNotFoundException < Gem::Exception; end
+class Gem::GemNotFoundException < Gem::Exception
+ def initialize(msg, name=nil, version=nil, errors=nil)
+ super msg
+ @name = name
+ @version = version
+ @errors = errors
+ end
+
+ attr_reader :name, :version, :errors
+end
class Gem::InstallError < Gem::Exception; end
diff --git a/lib/rubygems/ext/builder.rb b/lib/rubygems/ext/builder.rb
index a521c7b572..5e518962ce 100644
--- a/lib/rubygems/ext/builder.rb
+++ b/lib/rubygems/ext/builder.rb
@@ -4,8 +4,6 @@
# See LICENSE.txt for permissions.
#++
-require 'rubygems/ext'
-
class Gem::Ext::Builder
def self.class_name
@@ -24,7 +22,9 @@ class Gem::Ext::Builder
File.open('Makefile', 'wb') {|f| f.print mf}
- make_program = ENV['make']
+ # try to find make program from Ruby configure arguments first
+ RbConfig::CONFIG['configure_args'] =~ /with-make-prog\=(\w+)/
+ make_program = $1 || ENV['make']
unless make_program then
make_program = (/mswin/ =~ RUBY_PLATFORM) ? 'nmake' : 'make'
end
diff --git a/lib/rubygems/ext/configure_builder.rb b/lib/rubygems/ext/configure_builder.rb
index 1cde6915a7..c2087eb5ad 100644
--- a/lib/rubygems/ext/configure_builder.rb
+++ b/lib/rubygems/ext/configure_builder.rb
@@ -11,6 +11,7 @@ class Gem::Ext::ConfigureBuilder < Gem::Ext::Builder
def self.build(extension, directory, dest_path, results)
unless File.exist?('Makefile') then
cmd = "sh ./configure --prefix=#{dest_path}"
+ cmd << " #{Gem::Command.build_args.join ' '}" unless Gem::Command.build_args.empty?
run cmd, results
end
diff --git a/lib/rubygems/ext/ext_conf_builder.rb b/lib/rubygems/ext/ext_conf_builder.rb
index cbe0e80821..b3d588dc9c 100644
--- a/lib/rubygems/ext/ext_conf_builder.rb
+++ b/lib/rubygems/ext/ext_conf_builder.rb
@@ -5,12 +5,13 @@
#++
require 'rubygems/ext/builder'
+require 'rubygems/command'
class Gem::Ext::ExtConfBuilder < Gem::Ext::Builder
def self.build(extension, directory, dest_path, results)
cmd = "#{Gem.ruby} #{File.basename extension}"
- cmd << " #{ARGV.join ' '}" unless ARGV.empty?
+ cmd << " #{Gem::Command.build_args.join ' '}" unless Gem::Command.build_args.empty?
run cmd, results
diff --git a/lib/rubygems/ext/rake_builder.rb b/lib/rubygems/ext/rake_builder.rb
index 0c64e611a0..a1df694366 100644
--- a/lib/rubygems/ext/rake_builder.rb
+++ b/lib/rubygems/ext/rake_builder.rb
@@ -5,18 +5,30 @@
#++
require 'rubygems/ext/builder'
+require 'rubygems/command'
class Gem::Ext::RakeBuilder < Gem::Ext::Builder
def self.build(extension, directory, dest_path, results)
if File.basename(extension) =~ /mkrf_conf/i then
cmd = "#{Gem.ruby} #{File.basename extension}"
- cmd << " #{ARGV.join " "}" unless ARGV.empty?
+ cmd << " #{Gem::Command.build_args.join " "}" unless Gem::Command.build_args.empty?
run cmd, results
end
- cmd = ENV['rake'] || 'rake'
- cmd += " RUBYARCHDIR=#{dest_path} RUBYLIBDIR=#{dest_path}" # ENV is frozen
+ # Deal with possible spaces in the path, e.g. C:/Program Files
+ dest_path = '"' + dest_path.to_s + '"' if dest_path.to_s.include?(' ')
+
+ rake = ENV['rake']
+
+ rake ||= begin
+ "\"#{Gem.ruby}\" -rubygems #{Gem.bin_path('rake', 'rake')}"
+ rescue Gem::Exception
+ end
+
+ rake ||= Gem.default_exec_format % 'rake'
+
+ cmd = "#{rake} RUBYARCHDIR=#{dest_path} RUBYLIBDIR=#{dest_path}" # ENV is frozen
run cmd, results
diff --git a/lib/rubygems/format.rb b/lib/rubygems/format.rb
index 49a3951e26..9644f6ab8e 100644
--- a/lib/rubygems/format.rb
+++ b/lib/rubygems/format.rb
@@ -4,84 +4,79 @@
# See LICENSE.txt for permissions.
#++
-require 'fileutils'
-
require 'rubygems/package'
-module Gem
+##
+# Gem::Format knows the guts of the RubyGem .gem file format and provides the
+# capability to read gem files
+
+class Gem::Format
+
+ attr_accessor :spec
+ attr_accessor :file_entries
+ attr_accessor :gem_path
+
+ ##
+ # Constructs a Format representing the gem's data which came from +gem_path+
+
+ def initialize(gem_path)
+ @gem_path = gem_path
+ end
##
- # The format class knows the guts of the RubyGem .gem file format
- # and provides the capability to read gem files
- #
- class Format
- attr_accessor :spec, :file_entries, :gem_path
- extend Gem::UserInteraction
-
- ##
- # Constructs an instance of a Format object, representing the gem's
- # data structure.
- #
- # gem:: [String] The file name of the gem
- #
- def initialize(gem_path)
- @gem_path = gem_path
+ # Reads the gem +file_path+ using +security_policy+ and returns a Format
+ # representing the data in the gem
+
+ def self.from_file_by_path(file_path, security_policy = nil)
+ unless File.file?(file_path)
+ raise Gem::Exception, "Cannot load gem at [#{file_path}] in #{Dir.pwd}"
end
- ##
- # Reads the named gem file and returns a Format object, representing
- # the data from the gem file
- #
- # file_path:: [String] Path to the gem file
- #
- def self.from_file_by_path(file_path, security_policy = nil)
- format = nil
-
- unless File.exist?(file_path)
- raise Gem::Exception, "Cannot load gem at [#{file_path}] in #{Dir.pwd}"
- end
+ start = File.read file_path, 20
- # check for old version gem
- if File.read(file_path, 20).include?("MD5SUM =")
- require 'rubygems/old_format'
+ if start.nil? or start.length < 20 then
+ nil
+ elsif start.include?("MD5SUM =") # old version gems
+ require 'rubygems/old_format'
- format = OldFormat.from_file_by_path(file_path)
- else
+ Gem::OldFormat.from_file_by_path file_path
+ else
+ begin
open file_path, Gem.binary_mode do |io|
- format = from_io io, file_path, security_policy
+ from_io io, file_path, security_policy
end
+ rescue Gem::Package::TarInvalidError => e
+ message = "corrupt gem (#{e.class}: #{e.message})"
+ raise Gem::Package::FormatError.new(message, file_path)
end
-
- return format
end
+ end
- ##
- # Reads a gem from an io stream and returns a Format object, representing
- # the data from the gem file
- #
- # io:: [IO] Stream from which to read the gem
- #
- def self.from_io(io, gem_path="(io)", security_policy = nil)
- format = new gem_path
-
- Package.open io, 'r', security_policy do |pkg|
- format.spec = pkg.metadata
- format.file_entries = []
-
- pkg.each do |entry|
- size = entry.header.size
- mode = entry.header.mode
-
- format.file_entries << [{
- "size" => size, "mode" => mode, "path" => entry.full_name,
- },
- entry.read
- ]
- end
- end
+ ##
+ # Reads a gem from +io+ at +gem_path+ using +security_policy+ and returns a
+ # Format representing the data from the gem
+
+ def self.from_io(io, gem_path="(io)", security_policy = nil)
+ format = new gem_path
- format
+ Gem::Package.open io, 'r', security_policy do |pkg|
+ format.spec = pkg.metadata
+ format.file_entries = []
+
+ pkg.each do |entry|
+ size = entry.header.size
+ mode = entry.header.mode
+
+ format.file_entries << [{
+ "size" => size, "mode" => mode, "path" => entry.full_name,
+ },
+ entry.read
+ ]
+ end
end
+ format
end
+
end
+
diff --git a/lib/rubygems/gem_openssl.rb b/lib/rubygems/gem_openssl.rb
index 1456f2d7ce..682058f2c1 100644
--- a/lib/rubygems/gem_openssl.rb
+++ b/lib/rubygems/gem_openssl.rb
@@ -4,42 +4,49 @@
# See LICENSE.txt for permissions.
#++
+#--
# Some system might not have OpenSSL installed, therefore the core
# library file openssl might not be available. We localize testing
# for the presence of OpenSSL in this file.
+#++
module Gem
class << self
+ ##
# Is SSL (used by the signing commands) available on this
# platform?
+
def ssl_available?
- require 'rubygems/gem_openssl'
@ssl_available
end
- # Set the value of the ssl_available flag.
+ ##
+ # Is SSL available?
+
attr_writer :ssl_available
+ ##
# Ensure that SSL is available. Throw an exception if it is not.
+
def ensure_ssl_available
unless ssl_available?
- fail Gem::Exception, "SSL is not installed on this system"
+ raise Gem::Exception, "SSL is not installed on this system"
end
end
end
end
+# :stopdoc:
+
begin
require 'openssl'
# Reference a constant defined in the .rb portion of ssl (just to
# make sure that part is loaded too).
- dummy = OpenSSL::Digest::SHA1
-
- Gem.ssl_available = true
+ Gem.ssl_available = !!OpenSSL::Digest::SHA1
- class OpenSSL::X509::Certificate # :nodoc:
+ class OpenSSL::X509::Certificate
# Check the validity of this certificate.
def check_validity(issuer_cert = nil, time = Time.now)
ret = if @not_before && @not_before > time
@@ -70,7 +77,7 @@ module Gem::SSL
# These constants are only used during load time. At runtime, any
# method that makes a direct reference to SSL software must be
# protected with a Gem.ensure_ssl_available call.
- #
+
if Gem.ssl_available? then
PKEY_RSA = OpenSSL::PKey::RSA
DIGEST_SHA1 = OpenSSL::Digest::SHA1
diff --git a/lib/rubygems/gem_path_searcher.rb b/lib/rubygems/gem_path_searcher.rb
index e2b8543bb0..814b5fb0e5 100644
--- a/lib/rubygems/gem_path_searcher.rb
+++ b/lib/rubygems/gem_path_searcher.rb
@@ -1,10 +1,5 @@
-#--
-# Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others.
-# All rights reserved.
-# See LICENSE.txt for permissions.
-#++
-
-require 'rubygems'
+require "rubygems"
+require "rubygems/deprecate"
##
# GemPathSearcher has the capability to find loadable files inside
@@ -16,19 +11,22 @@ class Gem::GemPathSearcher
# Initialise the data we need to make searches later.
def initialize
- # We want a record of all the installed gemspecs, in the order
- # we wish to examine them.
+ # We want a record of all the installed gemspecs, in the order we wish to
+ # examine them.
+ # TODO: remove this stupid method
@gemspecs = init_gemspecs
- # Map gem spec to glob of full require_path directories.
- # Preparing this information may speed up searches later.
+
+ # Map gem spec to glob of full require_path directories. Preparing this
+ # information may speed up searches later.
@lib_dirs = {}
+
@gemspecs.each do |spec|
- @lib_dirs[spec.object_id] = lib_dirs_for(spec)
+ @lib_dirs[spec.object_id] = lib_dirs_for spec
end
end
##
- # Look in all the installed gems until a matching _path_ is found.
+ # Look in all the installed gems until a matching +glob+ is found.
# Return the _gemspec_ of the gem where it was found. If no match
# is found, return nil.
#
@@ -47,17 +45,68 @@ class Gem::GemPathSearcher
# This method doesn't care about the full filename that matches;
# only that there is a match.
- def find(path)
- @gemspecs.find do |spec| matching_file? spec, path end
+ def find(glob)
+ # HACK violation of encapsulation
+ @gemspecs.find do |spec|
+ # TODO: inverted responsibility
+ matching_file? spec, glob
+ end
+ end
+
+ # Looks through the available gemspecs and finds the first
+ # one that contains +file+ as a requirable file.
+
+ def find_spec_for_file(file)
+ @gemspecs.find do |spec|
+ return spec if spec.contains_requirable_file?(file)
+ end
+ end
+
+ def find_active(glob)
+ # HACK violation of encapsulation
+ @gemspecs.find do |spec|
+ # TODO: inverted responsibility
+ spec.loaded? and matching_file? spec, glob
+ end
end
##
- # Works like #find, but finds all gemspecs matching +path+.
+ # Works like #find, but finds all gemspecs matching +glob+.
- def find_all(path)
+ def find_all(glob)
+ # HACK violation of encapsulation
@gemspecs.select do |spec|
- matching_file? spec, path
+ # TODO: inverted responsibility
+ matching_file? spec, glob
+ end || []
+ end
+
+ def find_in_unresolved(glob)
+ # HACK violation
+ specs = Gem.unresolved_deps.values.map { |dep|
+ Gem.source_index.search dep, true
+ }.flatten
+
+ specs.select do |spec|
+ # TODO: inverted responsibility
+ matching_file? spec, glob
+ end || []
+ end
+
+ def find_in_unresolved_tree glob
+ # HACK violation
+ # TODO: inverted responsibility
+ specs = Gem.unresolved_deps.values.map { |dep|
+ Gem.source_index.search dep, true
+ }.flatten
+
+ specs.reverse_each do |spec|
+ trails = matching_paths(spec, glob)
+ next if trails.empty?
+ return trails.map(&:reverse).sort.first.reverse
end
+
+ []
end
##
@@ -65,7 +114,18 @@ class Gem::GemPathSearcher
# +spec+.
def matching_file?(spec, path)
- !matching_files(spec, path).empty?
+ not matching_files(spec, path).empty?
+ end
+
+ def matching_paths(spec, path)
+ trails = []
+
+ spec.traverse do |from_spec, dep, to_spec, trail|
+ next unless to_spec.conflicts.empty?
+ trails << trail unless matching_files(to_spec, path).empty?
+ end
+
+ trails
end
##
@@ -74,17 +134,20 @@ class Gem::GemPathSearcher
# Some of the intermediate results are cached in @lib_dirs for speed.
def matching_files(spec, path)
+ return [] unless @lib_dirs[spec.object_id] # case no paths
glob = File.join @lib_dirs[spec.object_id], "#{path}#{Gem.suffix_pattern}"
Dir[glob].select { |f| File.file? f.untaint }
end
##
# Return a list of all installed gemspecs, sorted by alphabetical order and
- # in reverse version order.
+ # in reverse version order. (bar-2, bar-1, foo-2)
def init_gemspecs
- Gem.source_index.map { |_, spec| spec }.sort { |a,b|
- (a.name <=> b.name).nonzero? || (b.version <=> a.version)
+ Gem::Specification.sort { |a, b|
+ names = a.name <=> b.name
+ next names if names.nonzero?
+ b.version <=> a.version
}
end
@@ -93,8 +156,17 @@ class Gem::GemPathSearcher
# '/usr/local/lib/ruby/gems/1.8/gems/foobar-1.0/{lib,ext}'
def lib_dirs_for(spec)
- "#{spec.full_gem_path}/{#{spec.require_paths.join(',')}}"
+ "#{spec.full_gem_path}/{#{spec.require_paths.join(',')}}" if
+ spec.require_paths
end
-end
+ extend Gem::Deprecate
+ deprecate :initialize, :none, 2011, 10
+ deprecate :find, :none, 2011, 10
+ deprecate :find_active, :none, 2011, 10
+ deprecate :find_all, :none, 2011, 10
+ deprecate :find_in_unresolved, :none, 2011, 10
+ deprecate :find_in_unresolved_tree, :none, 2011, 10
+ deprecate :find_spec_for_file, :none, 2011, 10
+end
diff --git a/lib/rubygems/gem_runner.rb b/lib/rubygems/gem_runner.rb
index 7edc93d68f..6197036f81 100644
--- a/lib/rubygems/gem_runner.rb
+++ b/lib/rubygems/gem_runner.rb
@@ -4,55 +4,83 @@
# See LICENSE.txt for permissions.
#++
+require "rubygems"
require 'rubygems/command_manager'
require 'rubygems/config_file'
require 'rubygems/doc_manager'
-module Gem
+##
+# Load additional plugins from $LOAD_PATH
- ####################################################################
- # Run an instance of the gem program.
- #
- class GemRunner
+Gem.load_env_plugins rescue nil
- def initialize(options={})
- @command_manager_class = options[:command_manager] || Gem::CommandManager
- @config_file_class = options[:config_file] || Gem::ConfigFile
- @doc_manager_class = options[:doc_manager] || Gem::DocManager
+##
+# Run an instance of the gem program.
+#
+# Gem::GemRunner is only intended for internal use by RubyGems itself. It
+# does not form any public API and may change at any time for any reason.
+#
+# If you would like to duplicate functionality of `gem` commands, use the
+# classes they call directly.
+
+class Gem::GemRunner
+
+ def initialize(options={})
+ # TODO: nuke these options
+ @command_manager_class = options[:command_manager] || Gem::CommandManager
+ @config_file_class = options[:config_file] || Gem::ConfigFile
+ @doc_manager_class = options[:doc_manager] || Gem::DocManager
+ end
+
+ ##
+ # Run the gem command with the following arguments.
+
+ def run(args)
+ start_time = Time.now
+
+ if args.include?('--')
+ # We need to preserve the original ARGV to use for passing gem options
+ # to source gems. If there is a -- in the line, strip all options after
+ # it...its for the source building process.
+ build_args = args[args.index("--") + 1...args.length]
+ args = args[0...args.index("--")]
end
- # Run the gem command with the following arguments.
- def run(args)
- start_time = Time.now
- do_configuration(args)
- cmd = @command_manager_class.instance
- cmd.command_names.each do |command_name|
- config_args = Gem.configuration[command_name]
- config_args = case config_args
- when String
- config_args.split ' '
- else
- Array(config_args)
- end
- Command.add_specific_extra_args command_name, config_args
- end
- cmd.run(Gem.configuration.args)
- end_time = Time.now
- if Gem.configuration.benchmark
- printf "\nExecution time: %0.2f seconds.\n", end_time-start_time
- puts "Press Enter to finish"
- STDIN.gets
- end
+ Gem::Command.build_args = build_args if build_args
+
+ do_configuration args
+ cmd = @command_manager_class.instance
+
+ cmd.command_names.each do |command_name|
+ config_args = Gem.configuration[command_name]
+ config_args = case config_args
+ when String
+ config_args.split ' '
+ else
+ Array(config_args)
+ end
+ Gem::Command.add_specific_extra_args command_name, config_args
end
- private
+ cmd.run Gem.configuration.args
+ end_time = Time.now
- def do_configuration(args)
- Gem.configuration = @config_file_class.new(args)
- Gem.use_paths(Gem.configuration[:gemhome], Gem.configuration[:gempath])
- Gem::Command.extra_args = Gem.configuration[:gem]
- @doc_manager_class.configured_args = Gem.configuration[:rdoc]
+ if Gem.configuration.benchmark then
+ printf "\nExecution time: %0.2f seconds.\n", end_time - start_time
+ puts "Press Enter to finish"
+ STDIN.gets
end
+ end
+
+ private
+
+ def do_configuration(args)
+ Gem.configuration = @config_file_class.new(args)
+ Gem.use_paths Gem.configuration[:gemhome], Gem.configuration[:gempath]
+ Gem::Command.extra_args = Gem.configuration[:gem]
+ @doc_manager_class.configured_args = Gem.configuration[:rdoc]
+ end
+
+end
- end # class
-end # module
+Gem.load_plugins
diff --git a/lib/rubygems/gemcutter_utilities.rb b/lib/rubygems/gemcutter_utilities.rb
new file mode 100644
index 0000000000..c0e7ee99e9
--- /dev/null
+++ b/lib/rubygems/gemcutter_utilities.rb
@@ -0,0 +1,82 @@
+require 'rubygems/remote_fetcher'
+
+module Gem::GemcutterUtilities
+ OptionParser.accept Symbol do |value|
+ value.to_sym
+ end
+
+ ##
+ # Add the --key option
+
+ def add_key_option
+ add_option('-k', '--key KEYNAME', Symbol,
+ 'Use the given API key',
+ 'from ~/.gem/credentials') do |value,options|
+ options[:key] = value
+ end
+ end
+
+ def api_key
+ if options[:key] then
+ verify_api_key options[:key]
+ else
+ Gem.configuration.rubygems_api_key
+ end
+ end
+
+ def sign_in
+ return if Gem.configuration.rubygems_api_key
+
+ say "Enter your RubyGems.org credentials."
+ say "Don't have an account yet? Create one at http://rubygems.org/sign_up"
+
+ email = ask " Email: "
+ password = ask_for_password "Password: "
+ say "\n"
+
+ response = rubygems_api_request :get, "api/v1/api_key" do |request|
+ request.basic_auth email, password
+ end
+
+ with_response response do |resp|
+ say "Signed in."
+ Gem.configuration.rubygems_api_key = resp.body
+ end
+ end
+
+ def rubygems_api_request(method, path, host = Gem.host, &block)
+ require 'net/http'
+ host = ENV['RUBYGEMS_HOST'] if ENV['RUBYGEMS_HOST']
+ uri = URI.parse "#{host}/#{path}"
+
+ say "Pushing gem to #{host}..."
+
+ request_method = Net::HTTP.const_get method.to_s.capitalize
+
+ Gem::RemoteFetcher.fetcher.request(uri, request_method, &block)
+ end
+
+ def with_response(resp)
+ case resp
+ when Net::HTTPSuccess then
+ if block_given? then
+ yield resp
+ else
+ say resp.body
+ end
+ else
+ say resp.body
+ terminate_interaction 1
+ end
+ end
+
+ def verify_api_key(key)
+ if Gem.configuration.api_keys.key? key then
+ Gem.configuration.api_keys[key]
+ else
+ alert_error "No such API key. You can add it with gem keys --add #{key}"
+ terminate_interaction 1
+ end
+ end
+
+end
diff --git a/lib/rubygems/indexer.rb b/lib/rubygems/indexer.rb
index e2dd57d3fe..e87e5a3632 100644
--- a/lib/rubygems/indexer.rb
+++ b/lib/rubygems/indexer.rb
@@ -1,11 +1,9 @@
-require 'fileutils'
-require 'tmpdir'
-require 'zlib'
-
require 'rubygems'
require 'rubygems/format'
+require 'time'
begin
+ gem 'builder'
require 'builder/xchar'
rescue LoadError
end
@@ -18,11 +16,36 @@ class Gem::Indexer
include Gem::UserInteraction
##
+ # Build indexes for RubyGems older than 1.2.0 when true
+
+ attr_accessor :build_legacy
+
+ ##
+ # Build indexes for RubyGems 1.2.0 and newer when true
+
+ attr_accessor :build_modern
+
+ ##
# Index install location
attr_reader :dest_directory
##
+ # Specs index install location
+
+ attr_reader :dest_specs_index
+
+ ##
+ # Latest specs index install location
+
+ attr_reader :dest_latest_specs_index
+
+ ##
+ # Prerelease specs index install location
+
+ attr_reader :dest_prerelease_specs_index
+
+ ##
# Index build directory
attr_reader :directory
@@ -30,14 +53,27 @@ class Gem::Indexer
##
# Create an indexer that will index the gems in +directory+.
- def initialize(directory)
- unless ''.respond_to? :to_xs then
- fail "Gem::Indexer requires that the XML Builder library be installed:" \
+ def initialize(directory, options = {})
+ require 'fileutils'
+ require 'tmpdir'
+ require 'zlib'
+
+ unless defined?(Builder::XChar) then
+ raise "Gem::Indexer requires that the XML Builder library be installed:" \
"\n\tgem install builder"
end
+ options = { :build_legacy => true, :build_modern => true }.merge options
+
+ @build_legacy = options[:build_legacy]
+ @build_modern = options[:build_modern]
+
+ @rss_title = options[:rss_title]
+ @rss_host = options[:rss_host]
+ @rss_gems_host = options[:rss_gems_host]
+
@dest_directory = directory
- @directory = File.join Dir.tmpdir, "gem_generate_index_#{$$}"
+ @directory = File.join(Dir.tmpdir, "gem_generate_index_#{$$}")
marshal_name = "Marshal.#{Gem.marshal_version}"
@@ -45,31 +81,27 @@ class Gem::Indexer
@marshal_index = File.join @directory, marshal_name
@quick_dir = File.join @directory, 'quick'
-
@quick_marshal_dir = File.join @quick_dir, marshal_name
+ @quick_marshal_dir_base = File.join "quick", marshal_name # FIX: UGH
@quick_index = File.join @quick_dir, 'index'
@latest_index = File.join @quick_dir, 'latest_index'
@specs_index = File.join @directory, "specs.#{Gem.marshal_version}"
- @latest_specs_index = File.join @directory,
- "latest_specs.#{Gem.marshal_version}"
-
- files = [
- @specs_index,
- "#{@specs_index}.gz",
- @latest_specs_index,
- "#{@latest_specs_index}.gz",
- @quick_dir,
- @master_index,
- "#{@master_index}.Z",
- @marshal_index,
- "#{@marshal_index}.Z",
- ]
-
- @files = files.map do |path|
- path.sub @directory, ''
- end
+ @latest_specs_index =
+ File.join(@directory, "latest_specs.#{Gem.marshal_version}")
+ @prerelease_specs_index =
+ File.join(@directory, "prerelease_specs.#{Gem.marshal_version}")
+ @dest_specs_index =
+ File.join(@dest_directory, "specs.#{Gem.marshal_version}")
+ @dest_latest_specs_index =
+ File.join(@dest_directory, "latest_specs.#{Gem.marshal_version}")
+ @dest_prerelease_specs_index =
+ File.join(@dest_directory, "prerelease_specs.#{Gem.marshal_version}")
+
+ @rss_index = File.join @directory, 'index.rss'
+
+ @files = []
end
##
@@ -90,157 +122,292 @@ class Gem::Indexer
##
# Build various indicies
- def build_indicies(index)
- progress = ui.progress_reporter index.size,
- "Generating quick index gemspecs for #{index.size} gems",
- "Complete"
+ def build_indicies
+ # Marshal gemspecs are used by both modern and legacy RubyGems
- index.each do |original_name, spec|
- spec_file_name = "#{original_name}.gemspec.rz"
- yaml_name = File.join @quick_dir, spec_file_name
- marshal_name = File.join @quick_marshal_dir, spec_file_name
+ Gem::Specification.dirs = []
+ Gem::Specification.add_specs(*map_gems_to_specs(gem_file_list))
- yaml_zipped = Gem.deflate spec.to_yaml
- open yaml_name, 'wb' do |io| io.write yaml_zipped end
+ build_marshal_gemspecs
+ build_legacy_indicies if @build_legacy
+ build_modern_indicies if @build_modern
+ build_rss
- marshal_zipped = Gem.deflate Marshal.dump(spec)
- open marshal_name, 'wb' do |io| io.write marshal_zipped end
+ compress_indicies
+ end
- progress.updated original_name
- end
+ ##
+ # Builds indicies for RubyGems older than 1.2.x
- progress.done
+ def build_legacy_indicies
+ index = collect_specs
- say "Generating specs index"
+ say "Generating Marshal master index"
- open @specs_index, 'wb' do |io|
- specs = index.sort.map do |_, spec|
- platform = spec.original_platform
- platform = Gem::Platform::RUBY if platform.nil? or platform.empty?
- [spec.name, spec.version, platform]
+ Gem.time 'Generated Marshal master index' do
+ open @marshal_index, 'wb' do |io|
+ io.write index.dump
end
+ end
- specs = compact_specs specs
+ @files << @marshal_index
+ @files << "#{@marshal_index}.Z"
+ end
- Marshal.dump specs, io
- end
+ ##
+ # Builds Marshal quick index gemspecs.
+
+ def build_marshal_gemspecs
+ count = Gem::Specification.count
+ progress = ui.progress_reporter count,
+ "Generating Marshal quick index gemspecs for #{count} gems",
+ "Complete"
- say "Generating latest specs index"
+ files = []
- open @latest_specs_index, 'wb' do |io|
- specs = index.latest_specs.sort.map do |spec|
- platform = spec.original_platform
- platform = Gem::Platform::RUBY if platform.nil? or platform.empty?
- [spec.name, spec.version, platform]
- end
+ Gem.time 'Generated Marshal quick index gemspecs' do
+ Gem::Specification.each do |spec|
+ spec_file_name = "#{spec.original_name}.gemspec.rz"
+ marshal_name = File.join @quick_marshal_dir, spec_file_name
- specs = compact_specs specs
+ marshal_zipped = Gem.deflate Marshal.dump(spec)
+ open marshal_name, 'wb' do |io| io.write marshal_zipped end
- Marshal.dump specs, io
- end
+ files << marshal_name
- say "Generating quick index"
+ progress.updated spec.original_name
+ end
- quick_index = File.join @quick_dir, 'index'
- open quick_index, 'wb' do |io|
- io.puts index.sort.map { |_, spec| spec.original_name }
+ progress.done
end
- say "Generating latest index"
+ @files << @quick_marshal_dir
- latest_index = File.join @quick_dir, 'latest_index'
- open latest_index, 'wb' do |io|
- io.puts index.latest_specs.sort.map { |spec| spec.original_name }
- end
+ files
+ end
- say "Generating Marshal master index"
+ ##
+ # Build a single index for RubyGems 1.2 and newer
+
+ def build_modern_index(index, file, name)
+ say "Generating #{name} index"
+
+ Gem.time "Generated #{name} index" do
+ open(file, 'wb') do |io|
+ specs = index.map do |*spec|
+ # We have to splat here because latest_specs is an array, while the
+ # others are hashes.
+ spec = spec.flatten.last
+ platform = spec.original_platform
+
+ # win32-api-1.0.4-x86-mswin32-60
+ unless String === platform then
+ alert_warning "Skipping invalid platform in gem: #{spec.full_name}"
+ next
+ end
+
+ platform = Gem::Platform::RUBY if platform.nil? or platform.empty?
+ [spec.name, spec.version, platform]
+ end
- open @marshal_index, 'wb' do |io|
- io.write index.dump
+ specs = compact_specs(specs)
+ Marshal.dump(specs, io)
+ end
end
+ end
- progress = ui.progress_reporter index.size,
- "Generating YAML master index for #{index.size} gems (this may take a while)",
- "Complete"
-
- open @master_index, 'wb' do |io|
- io.puts "--- !ruby/object:#{index.class}"
- io.puts "gems:"
+ ##
+ # Builds indicies for RubyGems 1.2 and newer. Handles full, latest, prerelease
+
+ def build_modern_indicies
+ prerelease, released = Gem::Specification.partition { |s|
+ s.version.prerelease?
+ }
+ latest_specs = Gem::Specification.latest_specs
+
+ build_modern_index(released.sort, @specs_index, 'specs')
+ build_modern_index(latest_specs.sort, @latest_specs_index, 'latest specs')
+ build_modern_index(prerelease.sort, @prerelease_specs_index,
+ 'prerelease specs')
+
+ @files += [@specs_index,
+ "#{@specs_index}.gz",
+ @latest_specs_index,
+ "#{@latest_specs_index}.gz",
+ @prerelease_specs_index,
+ "#{@prerelease_specs_index}.gz"]
+ end
- gems = index.sort_by { |name, gemspec| gemspec.sort_obj }
- gems.each do |original_name, gemspec|
- yaml = gemspec.to_yaml.gsub(/^/, ' ')
- yaml = yaml.sub(/\A ---/, '') # there's a needed extra ' ' here
- io.print " #{original_name}:"
- io.puts yaml
+ ##
+ # Builds an RSS feed for past two days gem releases according to the gem's
+ # date.
- progress.updated original_name
+ def build_rss
+ if @rss_host.nil? or @rss_gems_host.nil? then
+ if Gem.configuration.really_verbose then
+ alert_warning "no --rss-host or --rss-gems-host, RSS generation disabled"
end
+ return
end
- progress.done
+ require 'cgi'
+ require 'rubygems/text'
- say "Compressing indicies"
- # use gzip for future files.
+ extend Gem::Text
- compress quick_index, 'rz'
- paranoid quick_index, 'rz'
+ Gem.time 'Generated rss' do
+ open @rss_index, 'wb' do |io|
+ rss_host = CGI.escapeHTML @rss_host
+ rss_title = CGI.escapeHTML(@rss_title || 'gems')
- compress latest_index, 'rz'
- paranoid latest_index, 'rz'
+ io.puts <<-HEADER
+<?xml version="1.0"?>
+<rss version="2.0">
+ <channel>
+ <title>#{rss_title}</title>
+ <link>http://#{rss_host}</link>
+ <description>Recently released gems from http://#{rss_host}</description>
+ <generator>RubyGems v#{Gem::VERSION}</generator>
+ <docs>http://cyber.law.harvard.edu/rss/rss.html</docs>
+ HEADER
- compress @marshal_index, 'Z'
- paranoid @marshal_index, 'Z'
+ today = Gem::Specification::TODAY
+ yesterday = today - 86400
- compress @master_index, 'Z'
- paranoid @master_index, 'Z'
+ index = Gem::Specification.select do |spec|
+ spec_date = spec.date
+ # TODO: remove this and make YAML based specs properly normalized
+ spec_date = Time.parse(spec_date.to_s) if Date === spec_date
- gzip @specs_index
- gzip @latest_specs_index
- end
+ spec_date >= yesterday && spec_date <= today
+ end
- ##
- # Collect specifications from .gem files from the gem directory.
+ index.sort_by { |spec| [-spec.date.to_i, spec] }.each do |spec|
+ file_name = File.basename spec.cache_file
+ gem_path = CGI.escapeHTML "http://#{@rss_gems_host}/gems/#{file_name}"
+ size = File.stat(spec.loaded_from).size # rescue next
+
+ description = spec.description || spec.summary || ''
+ authors = Array spec.authors
+ emails = Array spec.email
+ authors = emails.zip(authors).map do |email, author|
+ email += " (#{author})" if author and not author.empty?
+ end.join ', '
+
+ description = description.split(/\n\n+/).map do |chunk|
+ format_text chunk, 78
+ end
+
+ description = description.join "\n\n"
+
+ item = ''
+
+ item << <<-ITEM
+ <item>
+ <title>#{CGI.escapeHTML spec.full_name}</title>
+ <description>
+&lt;pre&gt;#{CGI.escapeHTML description.chomp}&lt;/pre&gt;
+ </description>
+ <author>#{CGI.escapeHTML authors}</author>
+ <guid>#{CGI.escapeHTML spec.full_name}</guid>
+ <enclosure url=\"#{gem_path}\"
+ length=\"#{size}\" type=\"application/octet-stream\" />
+ <pubDate>#{spec.date.rfc2822}</pubDate>
+ ITEM
+
+ item << <<-ITEM if spec.homepage
+ <link>#{CGI.escapeHTML spec.homepage}</link>
+ ITEM
+
+ item << <<-ITEM
+ </item>
+ ITEM
+
+ io.puts item
+ end
- def collect_specs
- index = Gem::SourceIndex.new
+ io.puts <<-FOOTER
+ </channel>
+</rss>
+ FOOTER
+ end
+ end
- progress = ui.progress_reporter gem_file_list.size,
- "Loading #{gem_file_list.size} gems from #{@dest_directory}",
- "Loaded all gems"
+ @files << @rss_index
+ end
- gem_file_list.each do |gemfile|
- if File.size(gemfile.to_s) == 0 then
+ def map_gems_to_specs gems
+ gems.map { |gemfile|
+ if File.size(gemfile) == 0 then
alert_warning "Skipping zero-length gem: #{gemfile}"
next
end
begin
spec = Gem::Format.from_file_by_path(gemfile).spec
-
- unless gemfile =~ /\/#{Regexp.escape spec.original_name}.*\.gem\z/i then
- alert_warning "Skipping misnamed gem: #{gemfile} => #{spec.full_name} (#{spec.original_name})"
- next
- end
+ spec.loaded_from = gemfile
+
+ # HACK: fuck this shit - borks all tests that use pl1
+ # if File.basename(gemfile, ".gem") != spec.original_name then
+ # exp = spec.full_name
+ # exp << " (#{spec.original_name})" if
+ # spec.original_name != spec.full_name
+ # msg = "Skipping misnamed gem: #{gemfile} should be named #{exp}"
+ # alert_warning msg
+ # next
+ # end
abbreviate spec
sanitize spec
- index.gems[spec.original_name] = spec
-
- progress.updated spec.original_name
-
+ spec
rescue SignalException => e
alert_error "Received signal, exiting"
raise
rescue Exception => e
- alert_error "Unable to process #{gemfile}\n#{e.message} (#{e.class})\n\t#{e.backtrace.join "\n\t"}"
+ msg = ["Unable to process #{gemfile}",
+ "#{e.message} (#{e.class})",
+ "\t#{e.backtrace.join "\n\t"}"].join("\n")
+ alert_error msg
end
+ }.compact
+ end
+
+ ##
+ # Collect specifications from .gem files from the gem directory.
+
+ def collect_specs(gems = gem_file_list)
+ Gem::Deprecate.skip_during do
+ index = Gem::SourceIndex.new
+
+ map_gems_to_specs(gems).each do |spec|
+ index.add_spec spec, spec.original_name
+ end
+
+ index
end
+ end
- progress.done
+ ##
+ # Compresses indicies on disk
+ #--
+ # All future files should be compressed using gzip, not deflate
- index
+ def compress_indicies
+ say "Compressing indicies"
+
+ Gem.time 'Compressed indicies' do
+ if @build_legacy then
+ compress @marshal_index, 'Z'
+ paranoid @marshal_index, 'Z'
+ end
+
+ if @build_modern then
+ gzip @specs_index
+ gzip @latest_specs_index
+ gzip @prerelease_specs_index
+ end
+ end
end
##
@@ -278,23 +445,22 @@ class Gem::Indexer
# List of gem file names to index.
def gem_file_list
- Dir.glob(File.join(@dest_directory, "gems", "*.gem"))
+ Dir[File.join(@dest_directory, "gems", '*.gem')]
end
##
- # Builds and installs indexicies.
+ # Builds and installs indicies.
def generate_index
make_temp_directories
- index = collect_specs
- build_indicies index
+ build_indicies
install_indicies
rescue SignalException
ensure
FileUtils.rm_rf @directory
end
- ##
+ ##
# Zlib::GzipWriter wrapper that gzips +filename+ on disk.
def gzip(filename)
@@ -311,13 +477,31 @@ class Gem::Indexer
say "Moving index into production dir #{@dest_directory}" if verbose
- @files.each do |file|
+ files = @files
+ files.delete @quick_marshal_dir if files.include? @quick_dir
+
+ if files.include? @quick_marshal_dir and not files.include? @quick_dir then
+ files.delete @quick_marshal_dir
+
+ dst_name = File.join(@dest_directory, @quick_marshal_dir_base)
+
+ FileUtils.mkdir_p File.dirname(dst_name), :verbose => verbose
+ FileUtils.rm_rf dst_name, :verbose => verbose
+ FileUtils.mv(@quick_marshal_dir, dst_name,
+ :verbose => verbose, :force => true)
+ end
+
+ files = files.map do |path|
+ path.sub(/^#{Regexp.escape @directory}\/?/, '') # HACK?
+ end
+
+ files.each do |file|
src_name = File.join @directory, file
dst_name = File.join @dest_directory, file
FileUtils.rm_rf dst_name, :verbose => verbose
- FileUtils.mv src_name, @dest_directory, :verbose => verbose,
- :force => true
+ FileUtils.mv(src_name, @dest_directory,
+ :verbose => verbose, :force => true)
end
end
@@ -348,10 +532,10 @@ class Gem::Indexer
# be replaced by their XML entity equivalent.
def sanitize(spec)
- spec.summary = sanitize_string(spec.summary)
- spec.description = sanitize_string(spec.description)
+ spec.summary = sanitize_string(spec.summary)
+ spec.description = sanitize_string(spec.description)
spec.post_install_message = sanitize_string(spec.post_install_message)
- spec.authors = spec.authors.collect { |a| sanitize_string(a) }
+ spec.authors = spec.authors.collect { |a| sanitize_string(a) }
spec
end
@@ -360,11 +544,101 @@ class Gem::Indexer
# Sanitize a single string.
def sanitize_string(string)
+ return string unless string
+
# HACK the #to_s is in here because RSpec has an Array of Arrays of
- # Strings for authors. Need a way to disallow bad values on gempsec
+ # Strings for authors. Need a way to disallow bad values on gemspec
# generation. (Probably won't happen.)
- string ? string.to_s.to_xs : string
+ string = string.to_s
+
+ begin
+ Builder::XChar.encode string
+ rescue NameError, NoMethodError
+ string.to_xs
+ end
end
-end
+ ##
+ # Perform an in-place update of the repository from newly added gems. Only
+ # works for modern indicies, and sets #build_legacy to false when run.
+
+ def update_index
+ @build_legacy = false
+
+ make_temp_directories
+ specs_mtime = File.stat(@dest_specs_index).mtime
+ newest_mtime = Time.at 0
+
+ updated_gems = gem_file_list.select do |gem|
+ gem_mtime = File.stat(gem).mtime
+ newest_mtime = gem_mtime if gem_mtime > newest_mtime
+ gem_mtime >= specs_mtime
+ end
+
+ if updated_gems.empty? then
+ say 'No new gems'
+ terminate_interaction 0
+ end
+
+ specs = map_gems_to_specs updated_gems
+ prerelease, released = specs.partition { |s| s.version.prerelease? }
+
+ files = build_marshal_gemspecs
+
+ Gem.time 'Updated indexes' do
+ update_specs_index released, @dest_specs_index, @specs_index
+ update_specs_index released, @dest_latest_specs_index, @latest_specs_index
+ update_specs_index(prerelease,
+ @dest_prerelease_specs_index,
+ @prerelease_specs_index)
+ end
+
+ compress_indicies
+
+ verbose = Gem.configuration.really_verbose
+
+ say "Updating production dir #{@dest_directory}" if verbose
+
+ files << @specs_index
+ files << "#{@specs_index}.gz"
+ files << @latest_specs_index
+ files << "#{@latest_specs_index}.gz"
+ files << @prerelease_specs_index
+ files << "#{@prerelease_specs_index}.gz"
+
+ files = files.map do |path|
+ path.sub(/^#{Regexp.escape @directory}\/?/, '') # HACK?
+ end
+
+ files.each do |file|
+ src_name = File.join @directory, file
+ dst_name = File.join @dest_directory, file # REFACTOR: duped above
+
+ FileUtils.mv src_name, dst_name, :verbose => verbose,
+ :force => true
+
+ File.utime newest_mtime, newest_mtime, dst_name
+ end
+ end
+
+ ##
+ # Combines specs in +index+ and +source+ then writes out a new copy to
+ # +dest+. For a latest index, does not ensure the new file is minimal.
+
+ def update_specs_index(index, source, dest)
+ specs_index = Marshal.load Gem.read_binary(source)
+
+ index.each do |spec|
+ platform = spec.original_platform
+ platform = Gem::Platform::RUBY if platform.nil? or platform.empty?
+ specs_index << [spec.name, spec.version, platform]
+ end
+
+ specs_index = compact_specs specs_index.uniq.sort
+
+ open dest, 'wb' do |io|
+ Marshal.dump specs_index, io
+ end
+ end
+end
diff --git a/lib/rubygems/indexer/abstract_index_builder.rb b/lib/rubygems/indexer/abstract_index_builder.rb
deleted file mode 100644
index 5815dcda87..0000000000
--- a/lib/rubygems/indexer/abstract_index_builder.rb
+++ /dev/null
@@ -1,88 +0,0 @@
-require 'zlib'
-
-require 'rubygems/indexer'
-
-# Abstract base class for building gem indicies. Uses the template pattern
-# with subclass specialization in the +begin_index+, +end_index+ and +cleanup+
-# methods.
-class Gem::Indexer::AbstractIndexBuilder
-
- # Directory to put index files in
- attr_reader :directory
-
- # File name of the generated index
- attr_reader :filename
-
- # List of written files/directories to move into production
- attr_reader :files
-
- def initialize(filename, directory)
- @filename = filename
- @directory = directory
- @files = []
- end
-
- ##
- # Build a Gem index. Yields to block to handle the details of the
- # actual building. Calls +begin_index+, +end_index+ and +cleanup+ at
- # appropriate times to customize basic operations.
-
- def build
- FileUtils.mkdir_p @directory unless File.exist? @directory
- raise "not a directory: #{@directory}" unless File.directory? @directory
-
- file_path = File.join @directory, @filename
-
- @files << @filename
-
- File.open file_path, "wb" do |file|
- @file = file
- start_index
- yield
- end_index
- end
-
- cleanup
- ensure
- @file = nil
- end
-
- ##
- # Compress the given file.
-
- def compress(filename, ext="rz")
- data = open filename, 'rb' do |fp| fp.read end
-
- zipped = zip data
-
- File.open "#{filename}.#{ext}", "wb" do |file|
- file.write zipped
- end
- end
-
- # Called immediately before the yield in build. The index file is open and
- # available as @file.
- def start_index
- end
-
- # Called immediately after the yield in build. The index file is still open
- # and available as @file.
- def end_index
- end
-
- # Called from within builder after the index file has been closed.
- def cleanup
- end
-
- # Return an uncompressed version of a compressed string.
- def unzip(string)
- Zlib::Inflate.inflate(string)
- end
-
- # Return a compressed version of the given string.
- def zip(string)
- Zlib::Deflate.deflate(string)
- end
-
-end
-
diff --git a/lib/rubygems/indexer/latest_index_builder.rb b/lib/rubygems/indexer/latest_index_builder.rb
deleted file mode 100644
index a5798580a6..0000000000
--- a/lib/rubygems/indexer/latest_index_builder.rb
+++ /dev/null
@@ -1,35 +0,0 @@
-require 'rubygems/indexer'
-
-##
-# Construct the latest Gem index file.
-
-class Gem::Indexer::LatestIndexBuilder < Gem::Indexer::AbstractIndexBuilder
-
- def start_index
- super
-
- @index = Gem::SourceIndex.new
- end
-
- def end_index
- super
-
- latest = @index.latest_specs.sort.map { |spec| spec.original_name }
-
- @file.write latest.join("\n")
- end
-
- def cleanup
- super
-
- compress @file.path
-
- @files.delete 'latest_index' # HACK installed via QuickIndexBuilder :/
- end
-
- def add(spec)
- @index.add_spec(spec)
- end
-
-end
-
diff --git a/lib/rubygems/indexer/marshal_index_builder.rb b/lib/rubygems/indexer/marshal_index_builder.rb
deleted file mode 100644
index e1a4d9f9b8..0000000000
--- a/lib/rubygems/indexer/marshal_index_builder.rb
+++ /dev/null
@@ -1,17 +0,0 @@
-require 'rubygems/indexer'
-
-# Construct the master Gem index file.
-class Gem::Indexer::MarshalIndexBuilder < Gem::Indexer::MasterIndexBuilder
- def end_index
- gems = {}
- index = Gem::SourceIndex.new
-
- @index.each do |name, gemspec|
- gems[gemspec.original_name] = gemspec
- end
-
- index.instance_variable_get(:@gems).replace gems
-
- @file.write index.dump
- end
-end
diff --git a/lib/rubygems/indexer/master_index_builder.rb b/lib/rubygems/indexer/master_index_builder.rb
deleted file mode 100644
index 669ea5a1df..0000000000
--- a/lib/rubygems/indexer/master_index_builder.rb
+++ /dev/null
@@ -1,54 +0,0 @@
-require 'rubygems/indexer'
-
-##
-# Construct the master Gem index file.
-
-class Gem::Indexer::MasterIndexBuilder < Gem::Indexer::AbstractIndexBuilder
-
- def start_index
- super
- @index = Gem::SourceIndex.new
- end
-
- def end_index
- super
-
- @file.puts "--- !ruby/object:#{@index.class}"
- @file.puts "gems:"
-
- gems = @index.sort_by { |name, gemspec| gemspec.sort_obj }
- gems.each do |name, gemspec|
- yaml = gemspec.to_yaml.gsub(/^/, ' ')
- yaml = yaml.sub(/\A ---/, '') # there's a needed extra ' ' here
- @file.print " #{gemspec.original_name}:"
- @file.puts yaml
- end
- end
-
- def cleanup
- super
-
- index_file_name = File.join @directory, @filename
-
- compress index_file_name, "Z"
- paranoid index_file_name, "#{index_file_name}.Z"
-
- @files << "#{@filename}.Z"
- end
-
- def add(spec)
- @index.add_spec(spec)
- end
-
- private
-
- def paranoid(path, compressed_path)
- data = Gem.read_binary path
- compressed_data = Gem.read_binary compressed_path
-
- if data != unzip(compressed_data) then
- raise "Compressed file #{compressed_path} does not match uncompressed file #{path}"
- end
- end
-
-end
diff --git a/lib/rubygems/indexer/quick_index_builder.rb b/lib/rubygems/indexer/quick_index_builder.rb
deleted file mode 100644
index dc36179dc5..0000000000
--- a/lib/rubygems/indexer/quick_index_builder.rb
+++ /dev/null
@@ -1,50 +0,0 @@
-require 'rubygems/indexer'
-
-##
-# Construct a quick index file and all of the individual specs to support
-# incremental loading.
-
-class Gem::Indexer::QuickIndexBuilder < Gem::Indexer::AbstractIndexBuilder
-
- def initialize(filename, directory)
- directory = File.join directory, 'quick'
-
- super filename, directory
- end
-
- def cleanup
- super
-
- quick_index_file = File.join @directory, @filename
- compress quick_index_file
-
- # the complete quick index is in a directory, so move it as a whole
- @files.delete 'index'
- @files << 'quick'
- end
-
- def add(spec)
- @file.puts spec.original_name
- add_yaml(spec)
- add_marshal(spec)
- end
-
- def add_yaml(spec)
- fn = File.join @directory, "#{spec.original_name}.gemspec.rz"
- zipped = zip spec.to_yaml
- File.open fn, "wb" do |gsfile| gsfile.write zipped end
- end
-
- def add_marshal(spec)
- # HACK why does this not work in #initialize?
- FileUtils.mkdir_p File.join(@directory, "Marshal.#{Gem.marshal_version}")
-
- fn = File.join @directory, "Marshal.#{Gem.marshal_version}",
- "#{spec.original_name}.gemspec.rz"
-
- zipped = zip Marshal.dump(spec)
- File.open fn, "wb" do |gsfile| gsfile.write zipped end
- end
-
-end
-
diff --git a/lib/rubygems/install_update_options.rb b/lib/rubygems/install_update_options.rb
index dd35acb176..3ee6432b4c 100644
--- a/lib/rubygems/install_update_options.rb
+++ b/lib/rubygems/install_update_options.rb
@@ -5,17 +5,30 @@
#++
require 'rubygems'
-require 'rubygems/security'
+
+# forward-declare
+
+module Gem::Security # :nodoc:
+ class Policy # :nodoc:
+ end
+end
##
# Mixin methods for install and update options for Gem::Commands
+
module Gem::InstallUpdateOptions
+ ##
# Add the install/update options to the option parser.
+
def add_install_update_options
OptionParser.accept Gem::Security::Policy do |value|
+ require 'rubygems/security'
+
value = Gem::Security::Policies[value]
- raise OptionParser::InvalidArgument, value if value.nil?
+ valid = Gem::Security::Policies.keys.sort
+ message = "#{value} (#{valid.join ', '} are valid)"
+ raise OptionParser::InvalidArgument, message if value.nil?
value
end
@@ -55,11 +68,6 @@ module Gem::InstallUpdateOptions
options[:force] = value
end
- add_option(:"Install/Update", '-t', '--[no-]test',
- 'Run unit tests prior to installation') do |value, options|
- options[:test] = value
- end
-
add_option(:"Install/Update", '-w', '--[no-]wrappers',
'Use bin wrappers for executables',
'Not available on dosish platforms') do |value, options|
@@ -92,8 +100,7 @@ module Gem::InstallUpdateOptions
add_option(:"Install/Update", '--[no-]user-install',
'Install in user\'s home directory instead',
- 'of GEM_HOME. Defaults to using home directory',
- 'only if GEM_HOME is not writable.') do |value, options|
+ 'of GEM_HOME.') do |value, options|
options[:user_install] = value
end
@@ -102,11 +109,19 @@ module Gem::InstallUpdateOptions
"dependencies") do |value, options|
options[:development] = true
end
+
+ add_option(:"Install/Update", "--conservative",
+ "Don't attempt to upgrade gems already",
+ "meeting version requirement") do |value, options|
+ options[:conservative] = true
+ end
end
+ ##
# Default options for the gem install command.
+
def install_update_defaults_str
- '--rdoc --no-force --no-test --wrappers'
+ '--rdoc --no-force --wrappers'
end
end
diff --git a/lib/rubygems/installer.rb b/lib/rubygems/installer.rb
index 44bf2f8903..31fb1209c9 100644
--- a/lib/rubygems/installer.rb
+++ b/lib/rubygems/installer.rb
@@ -4,33 +4,44 @@
# See LICENSE.txt for permissions.
#++
-require 'fileutils'
-require 'pathname'
-require 'rbconfig'
-
require 'rubygems/format'
+require 'rubygems/exceptions'
require 'rubygems/ext'
require 'rubygems/require_paths_builder'
+require 'rubygems/user_interaction'
##
-# The installer class processes RubyGem .gem files and installs the
-# files contained in the .gem into the Gem.path.
+# The installer class processes RubyGem .gem files and installs the files
+# contained in the .gem into the Gem.path.
#
# Gem::Installer does the work of putting files in all the right places on the
# filesystem including unpacking the gem into its gem dir, installing the
# gemspec in the specifications dir, storing the cached gem in the cache dir,
# and installing either wrappers or symlinks for executables.
+#
+# The installer invokes pre and post install hooks. Hooks can be added either
+# through a rubygems_plugin.rb file in an installed gem or via a
+# rubygems/defaults/#{RUBY_ENGINE}.rb or rubygems/defaults/operating_system.rb
+# file. See Gem.pre_install and Gem.post_install for details.
class Gem::Installer
##
+ # Paths where env(1) might live. Some systems are broken and have it in
+ # /bin
+
+ ENV_PATHS = %w[/usr/bin/env /bin/env]
+
+ ##
# Raised when there is an error while building extensions.
#
class ExtensionBuildError < Gem::InstallError; end
include Gem::UserInteraction
- include Gem::RequirePathsBuilder
+ include Gem::RequirePathsBuilder if Gem::QUICKLOADER_SUCKAGE
+
+ attr_reader :gem
##
# The directory a gem's executables will be installed into
@@ -43,21 +54,15 @@ class Gem::Installer
attr_reader :gem_home
##
- # The Gem::Specification for the gem being installed
+ # The options passed when the Gem::Installer was instantiated.
- attr_reader :spec
+ attr_reader :options
- @home_install_warning = false
@path_warning = false
class << self
##
- # True if we've warned about ~/.gems install
-
- attr_accessor :home_install_warning
-
- ##
# True if we've warned about PATH not including Gem.bindir
attr_accessor :path_warning
@@ -71,8 +76,6 @@ class Gem::Installer
end
- ENV_PATHS = %w[/usr/bin/env /bin/env]
-
##
# Constructs an Installer instance that will install the gem located at
# +gem+. +options+ is a Hash with the following keys:
@@ -89,75 +92,41 @@ class Gem::Installer
# :wrappers:: Install wrappers if true, symlinks if false.
def initialize(gem, options={})
- @gem = gem
-
- options = {
- :bin_dir => nil,
- :env_shebang => false,
- :exec_format => false,
- :force => false,
- :install_dir => Gem.dir,
- :source_index => Gem.source_index,
- }.merge options
+ require 'fileutils'
- @env_shebang = options[:env_shebang]
- @force = options[:force]
- gem_home = options[:install_dir]
- @gem_home = Pathname.new(gem_home).expand_path
- @ignore_dependencies = options[:ignore_dependencies]
- @format_executable = options[:format_executable]
- @security_policy = options[:security_policy]
- @wrappers = options[:wrappers]
- @bin_dir = options[:bin_dir]
- @development = options[:development]
- @source_index = options[:source_index]
-
- begin
- @format = Gem::Format.from_file_by_path @gem, @security_policy
- rescue Gem::Package::FormatError
- raise Gem::InstallError, "invalid gem format for #{@gem}"
- end
+ @gem = gem
+ @options = options
+ process_options
- begin
- FileUtils.mkdir_p @gem_home
- rescue Errno::EACCES, Errno::ENOTDIR
- # We'll divert to ~/.gem below
+ if options[:user_install] and not options[:unpack] then
+ @gem_home = Gem.user_dir
+ check_that_user_bin_dir_is_in_path
end
+ end
- if not File.writable? @gem_home or
- # TODO: Shouldn't have to test for existence of bindir; tests need it.
- (@gem_home.to_s == Gem.dir and File.exist? Gem.bindir and
- not File.writable? Gem.bindir) then
- if options[:user_install] == false then # You don't want to use ~
- raise Gem::FilePermissionError, @gem_home
- elsif options[:user_install].nil? then
- unless self.class.home_install_warning then
- alert_warning "Installing to ~/.gem since #{@gem_home} and\n\t #{Gem.bindir} aren't both writable."
- self.class.home_install_warning = true
- end
- end
- options[:user_install] = true
- end
+ ##
+ # Lazy accessor for the spec's gem directory.
- if options[:user_install] and not options[:unpack] then
- @gem_home = Gem.user_dir
+ def gem_dir
+ @gem_dir ||= spec.gem_dir.dup.untaint
+ end
- user_bin_dir = File.join(@gem_home, 'bin')
- unless ENV['PATH'].split(File::PATH_SEPARATOR).include? user_bin_dir then
- unless self.class.path_warning then
- alert_warning "You don't have #{user_bin_dir} in your PATH,\n\t gem executables will not run."
- self.class.path_warning = true
- end
- end
+ ##
+ # Lazy accessor for the installer's Gem::Format instance.
- FileUtils.mkdir_p @gem_home unless File.directory? @gem_home
- # If it's still not writable, you've got issues.
- raise Gem::FilePermissionError, @gem_home unless File.writable? @gem_home
+ def format
+ begin
+ @format ||= Gem::Format.from_file_by_path gem, @security_policy
+ rescue Gem::Package::FormatError
+ raise Gem::InstallError, "invalid gem format for #{gem}"
end
+ end
- @spec = @format.spec
+ ##
+ # Lazy accessor for the installer's spec.
- @gem_dir = File.join(@gem_home, "gems", @spec.full_name).untaint
+ def spec
+ @spec ||= format.spec
end
##
@@ -172,72 +141,83 @@ class Gem::Installer
# specifications/<gem-version>.gemspec #=> the Gem::Specification
def install
+ current_home = Gem.dir
+ current_path = Gem.paths.path
+
+ verify_gem_home(options[:unpack])
+ Gem.use_paths gem_home, current_path # HACK: shouldn't need Gem.paths.path
+
# If we're forcing the install then disable security unless the security
- # policy says that we only install singed gems.
+ # policy says that we only install signed gems.
@security_policy = nil if @force and @security_policy and
not @security_policy.only_signed
- unless @force then
- if rrv = @spec.required_ruby_version then
- unless rrv.satisfied_by? Gem.ruby_version then
- raise Gem::InstallError, "#{@spec.name} requires Ruby version #{rrv}"
- end
- end
+ unless @force
+ ensure_required_ruby_version_met
+ ensure_required_rubygems_version_met
+ ensure_dependencies_met unless @ignore_dependencies
+ end
- if rrgv = @spec.required_rubygems_version then
- unless rrgv.satisfied_by? Gem::Version.new(Gem::RubyGemsVersion) then
- raise Gem::InstallError,
- "#{@spec.name} requires RubyGems version #{rrgv}"
- end
- end
+ Gem.pre_install_hooks.each do |hook|
+ result = hook.call self
- unless @ignore_dependencies then
- deps = @spec.runtime_dependencies
- deps |= @spec.development_dependencies if @development
+ if result == false then
+ location = " at #{$1}" if hook.inspect =~ /@(.*:\d+)/
- deps.each do |dep_gem|
- ensure_dependency @spec, dep_gem
- end
+ message = "pre-install hook#{location} failed for #{spec.full_name}"
+ raise Gem::InstallError, message
end
end
- Gem.pre_install_hooks.each do |hook|
- hook.call self
- end
-
- FileUtils.mkdir_p @gem_home unless File.directory? @gem_home
+ Gem.ensure_gem_subdirectories gem_home
- Gem.ensure_gem_subdirectories @gem_home
+ # Completely remove any previous gem files
+ FileUtils.rm_rf(gem_dir) if File.exist? gem_dir
- FileUtils.mkdir_p @gem_dir
+ FileUtils.mkdir_p gem_dir
extract_files
- generate_bin
build_extensions
- write_spec
- write_require_paths_file_if_needed
+ Gem.post_build_hooks.each do |hook|
+ result = hook.call self
+
+ if result == false then
+ FileUtils.rm_rf gem_dir
- # HACK remove? Isn't this done in multiple places?
- cached_gem = File.join @gem_home, "cache", @gem.split(/\//).pop
- unless File.exist? cached_gem then
- FileUtils.cp @gem, File.join(@gem_home, "cache")
+ location = " at #{$1}" if hook.inspect =~ /@(.*:\d+)/
+
+ message = "post-build hook#{location} failed for #{spec.full_name}"
+ raise Gem::InstallError, message
+ end
end
- say @spec.post_install_message unless @spec.post_install_message.nil?
+ generate_bin
+ write_spec
+
+ write_require_paths_file_if_needed if Gem::QUICKLOADER_SUCKAGE
+
+ cache_file = spec.cache_file
+ FileUtils.cp gem, cache_file unless File.exist? cache_file
- @spec.loaded_from = File.join(@gem_home, 'specifications',
- "#{@spec.full_name}.gemspec")
+ say spec.post_install_message unless spec.post_install_message.nil?
- @source_index.add_spec @spec
+ spec.loaded_from = spec.spec_file
+
+ Gem::Specification.add_spec spec unless Gem::Specification.include? spec
Gem.post_install_hooks.each do |hook|
hook.call self
end
- return @spec
+ return spec
rescue Zlib::GzipFile::Error
- raise Gem::InstallError, "gzip error installing #{@gem}"
+ raise Gem::InstallError, "gzip error installing #{gem}"
+ ensure
+ # conditional since we might be here because we're erroring out early.
+ if current_path
+ Gem.use_paths current_home, current_path
+ end
end
##
@@ -251,7 +231,6 @@ class Gem::Installer
unless installation_satisfies_dependency? dependency then
raise Gem::InstallError, "#{spec.name} requires #{dependency}"
end
-
true
end
@@ -259,7 +238,7 @@ class Gem::Installer
# True if the gems in the source_index satisfy +dependency+.
def installation_satisfies_dependency?(dependency)
- @source_index.find_name(dependency.name, dependency.version_requirements).size > 0
+ not dependency.matching_specs.empty?
end
##
@@ -267,7 +246,7 @@ class Gem::Installer
def unpack(directory)
@gem_dir = directory
- @format = Gem::Format.from_file_by_path @gem, @security_policy
+ @format = Gem::Format.from_file_by_path gem, @security_policy
extract_files
end
@@ -276,22 +255,17 @@ class Gem::Installer
# specifications directory.
def write_spec
- rubycode = @spec.to_ruby
-
- file_name = File.join @gem_home, 'specifications',
- "#{@spec.full_name}.gemspec"
-
- file_name.untaint
+ file_name = spec.spec_file.untaint
File.open(file_name, "w") do |file|
- file.puts rubycode
+ file.puts spec.to_ruby_for_cache
end
end
##
# Creates windows .bat files for easy running of commands
- def generate_windows_script(bindir, filename)
+ def generate_windows_script(filename, bindir)
if Gem.win_platform? then
script_name = filename + ".bat"
script_path = File.join bindir, File.basename(script_name)
@@ -304,21 +278,27 @@ class Gem::Installer
end
def generate_bin
- return if @spec.executables.nil? or @spec.executables.empty?
+ return if spec.executables.nil? or spec.executables.empty?
# If the user has asked for the gem to be installed in a directory that is
# the system gem directory, then use the system bin directory, else create
# (or use) a new bin dir under the gem_home.
- bindir = @bin_dir ? @bin_dir : Gem.bindir(@gem_home)
+ bindir = @bin_dir || Gem.bindir(gem_home)
Dir.mkdir bindir unless File.exist? bindir
raise Gem::FilePermissionError.new(bindir) unless File.writable? bindir
- @spec.executables.each do |filename|
+ spec.executables.each do |filename|
filename.untaint
- bin_path = File.expand_path File.join(@gem_dir, @spec.bindir, filename)
+ bin_path = File.expand_path File.join(gem_dir, spec.bindir, filename)
+
+ unless File.exist? bin_path
+ warn "Hey?!?! Where did #{bin_path} go??"
+ next
+ end
+
mode = File.stat(bin_path).mode | 0111
- File.chmod mode, bin_path
+ FileUtils.chmod mode, bin_path
if @wrappers then
generate_bin_script filename, bindir
@@ -338,24 +318,15 @@ class Gem::Installer
def generate_bin_script(filename, bindir)
bin_script_path = File.join bindir, formatted_program_filename(filename)
- exec_path = File.join @gem_dir, @spec.bindir, filename
+ FileUtils.rm_f bin_script_path # prior install may have been --no-wrappers
- # HACK some gems don't have #! in their executables, restore 2008/06
- #if File.read(exec_path, 2) == '#!' then
- FileUtils.rm_f bin_script_path # prior install may have been --no-wrappers
-
- File.open bin_script_path, 'w', 0755 do |file|
- file.print app_script_text(filename)
- end
+ File.open bin_script_path, 'wb', 0755 do |file|
+ file.print app_script_text(filename)
+ end
- say bin_script_path if Gem.configuration.really_verbose
+ say bin_script_path if Gem.configuration.really_verbose
- generate_windows_script bindir, filename
- #else
- # FileUtils.rm_f bin_script_path
- # FileUtils.cp exec_path, bin_script_path,
- # :verbose => Gem.configuration.really_verbose
- #end
+ generate_windows_script filename, bindir
end
##
@@ -369,14 +340,14 @@ class Gem::Installer
return
end
- src = File.join @gem_dir, 'bin', filename
+ src = File.join gem_dir, spec.bindir, filename
dst = File.join bindir, formatted_program_filename(filename)
if File.exist? dst then
if File.symlink? dst then
link = File.readlink(dst).split File::SEPARATOR
cur_version = Gem::Version.create(link[-3].sub(/^.*-/, ''))
- return if @spec.version < cur_version
+ return if spec.version < cur_version
end
File.unlink dst
end
@@ -390,35 +361,104 @@ class Gem::Installer
def shebang(bin_file_name)
ruby_name = Gem::ConfigMap[:ruby_install_name] if @env_shebang
- path = File.join @gem_dir, @spec.bindir, bin_file_name
+ path = spec.bin_file bin_file_name
first_line = File.open(path, "rb") {|file| file.gets}
+
if /\A#!/ =~ first_line then
# Preserve extra words on shebang line, like "-w". Thanks RPA.
- shebang = first_line.sub(/\A\#!.*?ruby\S*(?=(\s+\S+))/, "#!#{Gem.ruby}")
+ shebang = first_line.sub(/\A\#!.*?ruby\S*((\s+\S+)+)/, "#!#{Gem.ruby}")
opts = $1
shebang.strip! # Avoid nasty ^M issues.
end
- if !ruby_name
+
+ if not ruby_name then
"#!#{Gem.ruby}#{opts}"
- elsif opts
- %{#!/bin/sh\n'exec' #{ruby_name.dump} '-x' "$0" "$@"\n#{shebang}}
+ elsif opts then
+ "#!/bin/sh\n'exec' #{ruby_name.dump} '-x' \"$0\" \"$@\"\n#{shebang}"
else
# Create a plain shebang line.
- @env_path ||= ENV_PATHS.find {|path| File.executable?(path)}
+ @env_path ||= ENV_PATHS.find {|env_path| File.executable? env_path }
"#!#{@env_path} #{ruby_name}"
end
end
+ def ensure_required_ruby_version_met
+ if rrv = spec.required_ruby_version then
+ unless rrv.satisfied_by? Gem.ruby_version then
+ raise Gem::InstallError, "#{spec.name} requires Ruby version #{rrv}."
+ end
+ end
+ end
+
+ def ensure_required_rubygems_version_met
+ if rrgv = spec.required_rubygems_version then
+ unless rrgv.satisfied_by? Gem::Version.new(Gem::VERSION) then
+ raise Gem::InstallError,
+ "#{spec.name} requires RubyGems version #{rrgv}. " +
+ "Try 'gem update --system' to update RubyGems itself."
+ end
+ end
+ end
+
+ def ensure_dependencies_met
+ deps = spec.runtime_dependencies
+ deps |= spec.development_dependencies if @development
+
+ deps.each do |dep_gem|
+ ensure_dependency spec, dep_gem
+ end
+ end
+
+ def process_options
+ @options = {
+ :bin_dir => nil,
+ :env_shebang => false,
+ :exec_format => false,
+ :force => false,
+ :install_dir => Gem.dir,
+ }.merge options
+
+ @env_shebang = options[:env_shebang]
+ @force = options[:force]
+ @gem_home = options[:install_dir]
+ @ignore_dependencies = options[:ignore_dependencies]
+ @format_executable = options[:format_executable]
+ @security_policy = options[:security_policy]
+ @wrappers = options[:wrappers]
+ @bin_dir = options[:bin_dir]
+ @development = options[:development]
+
+ raise "NOTE: Installer option :source_index is dead" if
+ options[:source_index]
+ end
+
+ def check_that_user_bin_dir_is_in_path
+ user_bin_dir = @bin_dir || Gem.bindir(gem_home)
+ user_bin_dir.gsub!(File::SEPARATOR, File::ALT_SEPARATOR) if File::ALT_SEPARATOR
+ unless ENV['PATH'].split(File::PATH_SEPARATOR).include? user_bin_dir then
+ unless self.class.path_warning then
+ alert_warning "You don't have #{user_bin_dir} in your PATH,\n\t gem executables will not run."
+ self.class.path_warning = true
+ end
+ end
+ end
+
+ def verify_gem_home(unpack = false)
+ FileUtils.mkdir_p gem_home
+ raise Gem::FilePermissionError, gem_home unless
+ unpack or File.writable?(gem_home)
+ end
+
##
# Return the text for an application file.
def app_script_text(bin_file_name)
- <<-TEXT
+ return <<-TEXT
#{shebang bin_file_name}
#
# This file was generated by RubyGems.
#
-# The application '#{@spec.name}' is installed as part of a gem, and
+# The application '#{spec.name}' is installed as part of a gem, and
# this file is here to facilitate running it.
#
@@ -426,13 +466,17 @@ require 'rubygems'
version = "#{Gem::Requirement.default}"
-if ARGV.first =~ /^_(.*)_$/ and Gem::Version.correct? $1 then
- version = $1
- ARGV.shift
+if ARGV.first
+ str = ARGV.first
+ str = str.dup.force_encoding("BINARY") if str.respond_to? :force_encoding
+ if str =~ /\\A_(.*)_\\z/
+ version = $1
+ ARGV.shift
+ end
end
-gem '#{@spec.name}', version
-load '#{bin_file_name}'
+gem '#{spec.name}', version
+load Gem.bin_path('#{spec.name}', '#{bin_file_name}', version)
TEXT
end
@@ -440,14 +484,16 @@ TEXT
# return the stub script text used to launch the true ruby script
def windows_stub_script(bindir, bin_file_name)
- <<-TEXT
+ ruby = File.basename(Gem.ruby).chomp('"')
+ return <<-TEXT
@ECHO OFF
IF NOT "%~f0" == "~f0" GOTO :WinNT
-@"#{File.basename(Gem.ruby)}" "#{File.join(bindir, bin_file_name)}" %1 %2 %3 %4 %5 %6 %7 %8 %9
+@"#{ruby}" "#{File.join(bindir, bin_file_name)}" %1 %2 %3 %4 %5 %6 %7 %8 %9
GOTO :EOF
:WinNT
-@"#{File.basename(Gem.ruby)}" "%~dpn0" %*
+@"#{ruby}" "%~dpn0" %*
TEXT
+
end
##
@@ -455,13 +501,12 @@ TEXT
# configure scripts and rakefiles or mkrf_conf files.
def build_extensions
- return if @spec.extensions.empty?
+ return if spec.extensions.empty?
say "Building native extensions. This could take a while..."
- start_dir = Dir.pwd
- dest_path = File.join @gem_dir, @spec.require_paths.first
+ dest_path = File.join gem_dir, spec.require_paths.first
ran_rake = false # only run rake once
- @spec.extensions.each do |extension|
+ spec.extensions.each do |extension|
break if ran_rake
results = []
@@ -478,29 +523,37 @@ TEXT
nil
end
- begin
- Dir.chdir File.join(@gem_dir, File.dirname(extension))
- results = builder.build(extension, @gem_dir, dest_path, results)
- say results.join("\n") if Gem.configuration.really_verbose
+ extension_dir = begin
+ File.join gem_dir, File.dirname(extension)
+ rescue TypeError # extension == nil
+ gem_dir
+ end
+
- rescue => ex
+ begin
+ Dir.chdir extension_dir do
+ results = builder.build(extension, gem_dir, dest_path, results)
+
+ say results.join("\n") if Gem.configuration.really_verbose
+ end
+ rescue
results = results.join "\n"
- File.open('gem_make.out', 'wb') { |f| f.puts results }
+ gem_make_out = File.join extension_dir, 'gem_make.out'
+
+ open gem_make_out, 'wb' do |io| io.puts results end
message = <<-EOF
ERROR: Failed to build gem native extension.
-#{results}
+ #{results}
-Gem files will remain installed in #{@gem_dir} for inspection.
-Results logged to #{File.join(Dir.pwd, 'gem_make.out')}
- EOF
+Gem files will remain installed in #{gem_dir} for inspection.
+Results logged to #{gem_make_out}
+EOF
raise ExtensionBuildError, message
- ensure
- Dir.chdir start_dir
end
end
end
@@ -511,27 +564,27 @@ Results logged to #{File.join(Dir.pwd, 'gem_make.out')}
# Ensures that files can't be installed outside the gem directory.
def extract_files
- expand_and_validate_gem_dir
-
raise ArgumentError, "format required to extract from" if @format.nil?
@format.file_entries.each do |entry, file_data|
path = entry['path'].untaint
- if path =~ /\A\// then # for extra sanity
- raise Gem::InstallError,
- "attempt to install file into #{entry['path'].inspect}"
+ if path.start_with? "/" then # for extra sanity
+ raise Gem::InstallError, "attempt to install file into #{entry['path']}"
end
- path = File.expand_path File.join(@gem_dir, path)
+ path = File.expand_path File.join(gem_dir, path)
- if path !~ /\A#{Regexp.escape @gem_dir}/ then
- msg = "attempt to install file into %p under %p" %
- [entry['path'], @gem_dir]
+ unless path.start_with? gem_dir then
+ msg = "attempt to install file into %p under %s" %
+ [entry['path'], gem_dir]
raise Gem::InstallError, msg
end
- FileUtils.mkdir_p File.dirname(path)
+ FileUtils.rm_rf(path) if File.exist? path
+
+ dir = File.dirname path
+ FileUtils.mkdir_p dir unless File.exist? dir
File.open(path, "wb") do |out|
out.write file_data
@@ -554,24 +607,14 @@ Results logged to #{File.join(Dir.pwd, 'gem_make.out')}
end
end
- private
-
##
- # HACK Pathname is broken on windows.
-
- def absolute_path? pathname
- pathname.absolute? or (Gem.win_platform? and pathname.to_s =~ /\A[a-z]:/i)
- end
-
- def expand_and_validate_gem_dir
- @gem_dir = Pathname.new(@gem_dir).expand_path
-
- unless absolute_path?(@gem_dir) then # HACK is this possible after #expand_path?
- raise ArgumentError, "install directory %p not absolute" % @gem_dir
- end
+ #
+ # Return the target directory where the gem is to be installed. This
+ # directory is not guaranteed to be populated.
+ #
- @gem_dir = @gem_dir.to_s
+ def dir
+ gem_dir.to_s
end
-
end
diff --git a/lib/rubygems/installer_test_case.rb b/lib/rubygems/installer_test_case.rb
new file mode 100644
index 0000000000..96a5156995
--- /dev/null
+++ b/lib/rubygems/installer_test_case.rb
@@ -0,0 +1,144 @@
+require 'rubygems/test_case'
+require 'rubygems/installer'
+
+class Gem::Installer
+
+ ##
+ # Available through requiring rubygems/installer_test_case
+
+ attr_writer :gem_dir
+
+ ##
+ # Available through requiring rubygems/installer_test_case
+
+ attr_writer :format
+
+ ##
+ # Available through requiring rubygems/installer_test_case
+
+ attr_writer :gem_home
+
+ ##
+ # Available through requiring rubygems/installer_test_case
+
+ attr_writer :env_shebang
+
+ ##
+ # Available through requiring rubygems/installer_test_case
+
+ attr_writer :ignore_dependencies
+
+ ##
+ # Available through requiring rubygems/installer_test_case
+
+ attr_writer :format_executable
+
+ ##
+ # Available through requiring rubygems/installer_test_case
+
+ attr_writer :security_policy
+
+ ##
+ # Available through requiring rubygems/installer_test_case
+
+ attr_writer :spec
+
+ ##
+ # Available through requiring rubygems/installer_test_case
+
+ attr_writer :wrappers
+end
+
+##
+# A test case for Gem::Installer.
+
+class Gem::InstallerTestCase < Gem::TestCase
+
+ def setup
+ super
+
+ @installer_tmp = File.join @tempdir, 'installer'
+ FileUtils.mkdir_p @installer_tmp
+
+ Gem.use_paths @installer_tmp
+ Gem.ensure_gem_subdirectories @installer_tmp
+
+ @spec = quick_gem 'a'
+ util_make_exec @spec
+ util_build_gem @spec
+ @gem = @spec.cache_file
+
+ @user_spec = quick_gem 'b'
+ util_make_exec @user_spec
+ util_build_gem @user_spec
+ @user_gem = @user_spec.cache_file
+
+ Gem.use_paths @gemhome
+
+ @installer = util_installer @spec, @gemhome
+ @user_installer = util_installer @user_spec, Gem.user_dir, :user
+
+ Gem.use_paths @gemhome
+ end
+
+ def util_gem_bindir spec = @spec
+ # TODO: deprecate
+ spec.bin_dir
+ end
+
+ def util_gem_dir spec = @spec
+ # TODO: deprecate
+ spec.gem_dir
+ end
+
+ def util_inst_bindir
+ File.join @gemhome, "bin"
+ end
+
+ def util_make_exec(spec = @spec, shebang = "#!/usr/bin/ruby")
+ spec.executables = %w[executable]
+ spec.files << 'bin/executable'
+
+ exec_path = spec.bin_file "executable"
+ write_file exec_path do |io|
+ io.puts shebang
+ end
+
+ bin_path = File.join @tempdir, "bin", "executable"
+ write_file bin_path do |io|
+ io.puts shebang
+ end
+ end
+
+ def util_setup_gem(ui = @ui) # HACK fix use_ui to make this automatic
+ @spec.files << File.join('lib', 'code.rb')
+ @spec.extensions << File.join('ext', 'a', 'mkrf_conf.rb')
+
+ Dir.chdir @tempdir do
+ FileUtils.mkdir_p 'bin'
+ FileUtils.mkdir_p 'lib'
+ FileUtils.mkdir_p File.join('ext', 'a')
+ File.open File.join('bin', 'executable'), 'w' do |f|
+ f.puts "raise 'ran executable'"
+ end
+ File.open File.join('lib', 'code.rb'), 'w' do |f| f.puts '1' end
+ File.open File.join('ext', 'a', 'mkrf_conf.rb'), 'w' do |f|
+ f << <<-EOF
+ File.open 'Rakefile', 'w' do |rf| rf.puts "task :default" end
+ EOF
+ end
+
+ use_ui ui do
+ FileUtils.rm @gem
+
+ @gem = Gem::Builder.new(@spec).build
+ end
+ end
+
+ @installer = Gem::Installer.new @gem
+ end
+
+ def util_installer(spec, gem_home, user=false)
+ Gem::Installer.new spec.cache_file, :user_install => user
+ end
+end
diff --git a/lib/rubygems/local_remote_options.rb b/lib/rubygems/local_remote_options.rb
index 730cb69b83..a1e106d9be 100644
--- a/lib/rubygems/local_remote_options.rb
+++ b/lib/rubygems/local_remote_options.rb
@@ -23,7 +23,9 @@ module Gem::LocalRemoteOptions
raise OptionParser::InvalidArgument, value
end
- raise OptionParser::InvalidArgument, value unless uri.scheme == 'http'
+ unless ['http', 'https', 'file'].include?(uri.scheme)
+ raise OptionParser::InvalidArgument, value
+ end
value
end
@@ -49,6 +51,7 @@ module Gem::LocalRemoteOptions
end
add_bulk_threshold_option
+ add_clear_sources_option
add_source_option
add_proxy_option
add_update_sources_option
@@ -67,6 +70,18 @@ module Gem::LocalRemoteOptions
end
##
+ # Add the --clear-sources option
+
+ def add_clear_sources_option
+ add_option(:"Local/Remote", '--clear-sources',
+ 'Clear the gem sources') do |value, options|
+
+ Gem.sources = nil
+ options[:sources_cleared] = true
+ end
+ end
+
+ ##
# Add the --http-proxy option
def add_proxy_option
@@ -86,24 +101,23 @@ module Gem::LocalRemoteOptions
accept_uri_http
add_option(:"Local/Remote", '--source URL', URI::HTTP,
- 'Use URL as the remote source for gems') do |source, options|
+ 'Add URL as a remote source for gems') do |source, options|
+
source << '/' if source !~ /\/\z/
- if options[:added_source] then
- Gem.sources << source
+ if options.delete :sources_cleared then
+ Gem.sources = [source]
else
- options[:added_source] = true
- Gem.sources.replace [source]
+ Gem.sources << source unless Gem.sources.include?(source)
end
end
end
##
- # Add the --update-source option
+ # Add the --update-sources option
def add_update_sources_option
-
- add_option(:"Local/Remote", '-u', '--[no-]update-sources',
+ add_option(:Deprecated, '-u', '--[no-]update-sources',
'Update local source cache') do |value, options|
Gem.configuration.update_sources = value
end
diff --git a/test/rubygems/mockgemui.rb b/lib/rubygems/mock_gem_ui.rb
index 57582ef57d..13f0bf564b 100644
--- a/test/rubygems/mockgemui.rb
+++ b/lib/rubygems/mock_gem_ui.rb
@@ -1,16 +1,20 @@
-#!/usr/bin/env ruby
-#--
-# Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others.
-# All rights reserved.
-# See LICENSE.txt for permissions.
-#++
-
-
require 'stringio'
require 'rubygems/user_interaction'
-class MockGemUi < Gem::StreamUI
- class TermError < RuntimeError; end
+##
+# This Gem::StreamUI subclass records input and output to StringIO for
+# retrieval during tests.
+
+class Gem::MockGemUi < Gem::StreamUI
+ class TermError < RuntimeError
+ attr_reader :exit_code
+
+ def initialize exit_code
+ super
+ @exit_code = exit_code
+ end
+ end
+ class SystemExitException < RuntimeError; end
module TTY
@@ -21,6 +25,9 @@ class MockGemUi < Gem::StreamUI
@tty
end
+ def noecho
+ yield self
+ end
end
def initialize(input = "")
@@ -32,7 +39,7 @@ class MockGemUi < Gem::StreamUI
outs.extend TTY
errs.extend TTY
- super ins, outs, errs
+ super ins, outs, errs, true
@terminated = false
end
@@ -56,7 +63,8 @@ class MockGemUi < Gem::StreamUI
def terminate_interaction(status=0)
@terminated = true
- raise TermError
+ raise TermError, status if status != 0
+ raise SystemExitException
end
end
diff --git a/lib/rubygems/old_format.rb b/lib/rubygems/old_format.rb
index 4b8db70bc6..a44fd533a5 100644
--- a/lib/rubygems/old_format.rb
+++ b/lib/rubygems/old_format.rb
@@ -4,145 +4,150 @@
# See LICENSE.txt for permissions.
#++
-require 'fileutils'
-require 'yaml'
-require 'zlib'
+require 'rubygems'
-module Gem
+##
+# The format class knows the guts of the RubyGem .gem file format and provides
+# the capability to read gem files
+
+class Gem::OldFormat
+
+ attr_accessor :spec, :file_entries, :gem_path
##
- # The format class knows the guts of the RubyGem .gem file format
- # and provides the capability to read gem files
+ # Constructs an instance of a Format object, representing the gem's data
+ # structure.
#
- class OldFormat
- attr_accessor :spec, :file_entries, :gem_path
-
- ##
- # Constructs an instance of a Format object, representing the gem's
- # data structure.
- #
- # gem:: [String] The file name of the gem
- #
- def initialize(gem_path)
- @gem_path = gem_path
- end
+ # gem:: [String] The file name of the gem
- ##
- # Reads the named gem file and returns a Format object, representing
- # the data from the gem file
- #
- # file_path:: [String] Path to the gem file
- #
- def self.from_file_by_path(file_path)
- unless File.exist?(file_path)
- raise Gem::Exception, "Cannot load gem file [#{file_path}]"
- end
- File.open(file_path, 'rb') do |file|
- from_io(file, file_path)
- end
+ def initialize(gem_path)
+ require 'fileutils'
+ require 'zlib'
+ Gem.load_yaml
+
+ @gem_path = gem_path
+ end
+
+ ##
+ # Reads the named gem file and returns a Format object, representing the
+ # data from the gem file
+ #
+ # file_path:: [String] Path to the gem file
+
+ def self.from_file_by_path(file_path)
+ unless File.exist?(file_path)
+ raise Gem::Exception, "Cannot load gem file [#{file_path}]"
end
- ##
- # Reads a gem from an io stream and returns a Format object, representing
- # the data from the gem file
- #
- # io:: [IO] Stream from which to read the gem
- #
- def self.from_io(io, gem_path="(io)")
- format = self.new(gem_path)
- skip_ruby(io)
- format.spec = read_spec(io)
- format.file_entries = []
- read_files_from_gem(io) do |entry, file_data|
- format.file_entries << [entry, file_data]
- end
- format
+ File.open(file_path, 'rb') do |file|
+ from_io(file, file_path)
end
+ end
- private
- ##
- # Skips the Ruby self-install header. After calling this method, the
- # IO index will be set after the Ruby code.
- #
- # file:: [IO] The IO to process (skip the Ruby code)
- #
- def self.skip_ruby(file)
- end_seen = false
- loop {
- line = file.gets
- if(line == nil || line.chomp == "__END__") then
- end_seen = true
- break
- end
- }
- if(end_seen == false) then
- raise Gem::Exception.new("Failed to find end of ruby script while reading gem")
- end
+ ##
+ # Reads a gem from an io stream and returns a Format object, representing
+ # the data from the gem file
+ #
+ # io:: [IO] Stream from which to read the gem
+
+ def self.from_io(io, gem_path="(io)")
+ format = self.new(gem_path)
+ skip_ruby(io)
+ format.spec = read_spec(io)
+ format.file_entries = []
+ read_files_from_gem(io) do |entry, file_data|
+ format.file_entries << [entry, file_data]
end
+ format
+ end
- ##
- # Reads the specification YAML from the supplied IO and constructs
- # a Gem::Specification from it. After calling this method, the
- # IO index will be set after the specification header.
- #
- # file:: [IO] The IO to process
- #
- def self.read_spec(file)
- yaml = ''
- begin
- read_until_dashes(file) do |line|
- yaml << line
- end
- Specification.from_yaml(yaml)
- rescue YAML::Error => e
- raise Gem::Exception.new("Failed to parse gem specification out of gem file")
- rescue ArgumentError => e
- raise Gem::Exception.new("Failed to parse gem specification out of gem file")
+ private
+
+ ##
+ # Skips the Ruby self-install header. After calling this method, the
+ # IO index will be set after the Ruby code.
+ #
+ # file:: [IO] The IO to process (skip the Ruby code)
+
+ def self.skip_ruby(file)
+ end_seen = false
+ loop {
+ line = file.gets
+ if(line == nil || line.chomp == "__END__") then
+ end_seen = true
+ break
end
+ }
+
+ if end_seen == false then
+ raise Gem::Exception.new("Failed to find end of ruby script while reading gem")
end
+ end
- ##
- # Reads lines from the supplied IO until a end-of-yaml (---) is
- # reached
- #
- # file:: [IO] The IO to process
- # block:: [String] The read line
- #
- def self.read_until_dashes(file)
- while((line = file.gets) && line.chomp.strip != "---") do
- yield line
- end
+ ##
+ # Reads the specification YAML from the supplied IO and constructs
+ # a Gem::Specification from it. After calling this method, the
+ # IO index will be set after the specification header.
+ #
+ # file:: [IO] The IO to process
+
+ def self.read_spec(file)
+ yaml = ''
+
+ read_until_dashes file do |line|
+ yaml << line
+ end
+
+ Gem::Specification.from_yaml yaml
+ rescue YAML::Error => e
+ raise Gem::Exception, "Failed to parse gem specification out of gem file"
+ rescue ArgumentError => e
+ raise Gem::Exception, "Failed to parse gem specification out of gem file"
+ end
+
+ ##
+ # Reads lines from the supplied IO until a end-of-yaml (---) is
+ # reached
+ #
+ # file:: [IO] The IO to process
+ # block:: [String] The read line
+
+ def self.read_until_dashes(file)
+ while((line = file.gets) && line.chomp.strip != "---") do
+ yield line
end
+ end
+ ##
+ # Reads the embedded file data from a gem file, yielding an entry
+ # containing metadata about the file and the file contents themselves
+ # for each file that's archived in the gem.
+ # NOTE: Many of these methods should be extracted into some kind of
+ # Gem file read/writer
+ #
+ # gem_file:: [IO] The IO to process
- ##
- # Reads the embedded file data from a gem file, yielding an entry
- # containing metadata about the file and the file contents themselves
- # for each file that's archived in the gem.
- # NOTE: Many of these methods should be extracted into some kind of
- # Gem file read/writer
- #
- # gem_file:: [IO] The IO to process
- #
- def self.read_files_from_gem(gem_file)
- errstr = "Error reading files from gem"
- header_yaml = ''
- begin
+ def self.read_files_from_gem(gem_file)
+ errstr = "Error reading files from gem"
+ header_yaml = ''
+ begin
+ self.read_until_dashes(gem_file) do |line|
+ header_yaml << line
+ end
+ header = YAML.load(header_yaml)
+ raise Gem::Exception, errstr unless header
+
+ header.each do |entry|
+ file_data = ''
self.read_until_dashes(gem_file) do |line|
- header_yaml << line
- end
- header = YAML.load(header_yaml)
- raise Gem::Exception.new(errstr) unless header
- header.each do |entry|
- file_data = ''
- self.read_until_dashes(gem_file) do |line|
- file_data << line
- end
- yield [entry, Zlib::Inflate.inflate(file_data.strip.unpack("m")[0])]
+ file_data << line
end
- rescue Exception,Zlib::DataError => e
- raise Gem::Exception.new(errstr)
+ yield [entry, Zlib::Inflate.inflate(file_data.strip.unpack("m")[0])]
end
+ rescue Zlib::DataError
+ raise Gem::Exception, errstr
end
end
+
end
+
diff --git a/lib/rubygems/package.rb b/lib/rubygems/package.rb
index 9cb393b0c7..2b50c588ee 100644
--- a/lib/rubygems/package.rb
+++ b/lib/rubygems/package.rb
@@ -1,41 +1,11 @@
-#++
-# Copyright (C) 2004 Mauricio Julio Fernández Pradier
-# See LICENSE.txt for additional licensing information.
+# -*- coding: utf-8 -*-
#--
+# Copyright (C) 2004 Mauricio Julio Fernández Pradier
+# See LICENSE.txt for additional licensing information.
+#++
-require 'fileutils'
-require 'find'
-require 'stringio'
-require 'yaml'
-require 'zlib'
-
-require 'rubygems/digest/md5'
-require 'rubygems/security'
require 'rubygems/specification'
-# Wrapper for FileUtils meant to provide logging and additional operations if
-# needed.
-class Gem::FileOperations
-
- def initialize(logger = nil)
- @logger = logger
- end
-
- def method_missing(meth, *args, &block)
- case
- when FileUtils.respond_to?(meth)
- @logger.log "#{meth}: #{args}" if @logger
- FileUtils.send meth, *args, &block
- when Gem::FileOperations.respond_to?(meth)
- @logger.log "#{meth}: #{args}" if @logger
- Gem::FileOperations.send meth, *args, &block
- else
- super
- end
- end
-
-end
-
module Gem::Package
class Error < StandardError; end
@@ -43,8 +13,26 @@ module Gem::Package
class ClosedIO < Error; end
class BadCheckSum < Error; end
class TooLongFileName < Error; end
- class FormatError < Error; end
+ class FormatError < Error
+ attr_reader :path
+
+ def initialize message, path = nil
+ @path = path
+
+ message << " in #{path}" if path
+
+ super message
+ end
+
+ end
+
+ ##
+ # Raised when a tar file is corrupt
+
+ class TarInvalidError < Error; end
+ # FIX: zenspider said: does it really take an IO?
+ # passed to a method called open?!? that seems stupid.
def self.open(io, mode = "r", signer = nil, &block)
tar_type = case mode
when 'r' then TarInput
diff --git a/lib/rubygems/package/f_sync_dir.rb b/lib/rubygems/package/f_sync_dir.rb
index 3e2e4a59a8..f7eb7f3ce3 100644
--- a/lib/rubygems/package/f_sync_dir.rb
+++ b/lib/rubygems/package/f_sync_dir.rb
@@ -1,9 +1,8 @@
-#++
-# Copyright (C) 2004 Mauricio Julio Fernández Pradier
-# See LICENSE.txt for additional licensing information.
+# -*- coding: utf-8 -*-
#--
-
-require 'rubygems/package'
+# Copyright (C) 2004 Mauricio Julio Fernández Pradier
+# See LICENSE.txt for additional licensing information.
+#++
module Gem::Package::FSyncDir
diff --git a/lib/rubygems/package/tar_header.rb b/lib/rubygems/package/tar_header.rb
index fa78126a0d..4f923b9b5e 100644
--- a/lib/rubygems/package/tar_header.rb
+++ b/lib/rubygems/package/tar_header.rb
@@ -1,9 +1,8 @@
-#++
-# Copyright (C) 2004 Mauricio Julio Fernández Pradier
-# See LICENSE.txt for additional licensing information.
+# -*- coding: utf-8 -*-
#--
-
-require 'rubygems/package'
+# Copyright (C) 2004 Mauricio Julio Fernández Pradier
+# See LICENSE.txt for additional licensing information.
+#++
##
#--
@@ -26,9 +25,13 @@ require 'rubygems/package'
# char prefix[155]; # ASCII + (Z unless filled)
# };
#++
+# A header for a tar file
class Gem::Package::TarHeader
+ ##
+ # Fields in the tar header
+
FIELDS = [
:checksum,
:devmajor,
@@ -48,6 +51,9 @@ class Gem::Package::TarHeader
:version,
]
+ ##
+ # Pack format for a tar header
+
PACK_FORMAT = 'a100' + # name
'a8' + # mode
'a8' + # uid
@@ -65,6 +71,9 @@ class Gem::Package::TarHeader
'a8' + # devminor
'a155' # prefix
+ ##
+ # Unpack format for a tar header
+
UNPACK_FORMAT = 'A100' + # name
'A8' + # mode
'A8' + # uid
@@ -84,6 +93,9 @@ class Gem::Package::TarHeader
attr_reader(*FIELDS)
+ ##
+ # Creates a tar header from IO +stream+
+
def self.from(stream)
header = stream.read 512
empty = (header == "\0" * 512)
@@ -147,6 +159,9 @@ class Gem::Package::TarHeader
# :empty => empty
end
+ ##
+ # Creates a new TarHeader using +vals+
+
def initialize(vals)
unless vals[:name] && vals[:size] && vals[:prefix] && vals[:mode] then
raise ArgumentError, ":name, :size, :prefix and :mode required"
@@ -171,11 +186,14 @@ class Gem::Package::TarHeader
@empty = vals[:empty]
end
+ ##
+ # Is the tar entry empty?
+
def empty?
@empty
end
- def ==(other)
+ def ==(other) # :nodoc:
self.class === other and
@checksum == other.checksum and
@devmajor == other.devmajor and
@@ -195,11 +213,14 @@ class Gem::Package::TarHeader
@version == other.version
end
- def to_s
+ def to_s # :nodoc:
update_checksum
header
end
+ ##
+ # Updates the TarHeader's checksum
+
def update_checksum
header = header " " * 8
@checksum = oct calculate_checksum(header), 6
diff --git a/lib/rubygems/package/tar_input.rb b/lib/rubygems/package/tar_input.rb
index 2ed3d6b772..77b4d698da 100644
--- a/lib/rubygems/package/tar_input.rb
+++ b/lib/rubygems/package/tar_input.rb
@@ -1,9 +1,11 @@
+# -*- coding: iso-8859-1 -*-
#++
# Copyright (C) 2004 Mauricio Julio Fernández Pradier
# See LICENSE.txt for additional licensing information.
#--
-require 'rubygems/package'
+require 'zlib'
+Gem.load_yaml
class Gem::Package::TarInput
@@ -47,7 +49,13 @@ class Gem::Package::TarInput
sio.rewind
end
- gzis = Zlib::GzipReader.new(sio || entry)
+ # Ruby 1.8 doesn't have encoding and YAML is UTF-8
+ args = [sio || entry]
+ args << { :external_encoding => Encoding::UTF_8 } if
+ Object.const_defined?(:Encoding)
+
+ gzis = Zlib::GzipReader.new(*args)
+
# YAML wants an instance of IO
@metadata = load_gemspec(gzis)
has_meta = true
@@ -72,9 +80,9 @@ class Gem::Package::TarInput
# map trust policy from string to actual class (or a serialized YAML
# file, if that exists)
if String === security_policy then
- if Gem::Security::Policy.key? security_policy then
+ if Gem::Security::Policies.key? security_policy then
# load one of the pre-defined security policies
- security_policy = Gem::Security::Policy[security_policy]
+ security_policy = Gem::Security::Policies[security_policy]
elsif File.exist? security_policy then
# FIXME: this doesn't work yet
security_policy = YAML.load File.read(security_policy)
@@ -107,9 +115,12 @@ class Gem::Package::TarInput
end
@tarreader.rewind
- @fileops = Gem::FileOperations.new
- raise Gem::Package::FormatError, "No metadata found!" unless has_meta
+ unless has_meta then
+ path = io.path if io.respond_to? :path
+ error = Gem::Package::FormatError.new 'no metadata found', path
+ raise error
+ end
end
def close
@@ -136,12 +147,12 @@ class Gem::Package::TarInput
def extract_entry(destdir, entry, expected_md5sum = nil)
if entry.directory? then
- dest = File.join(destdir, entry.full_name)
+ dest = File.join destdir, entry.full_name
- if File.dir? dest then
- @fileops.chmod entry.header.mode, dest, :verbose=>false
+ if File.directory? dest then
+ FileUtils.chmod entry.header.mode, dest, :verbose => false
else
- @fileops.mkdir_p dest, :mode => entry.header.mode, :verbose => false
+ FileUtils.mkdir_p dest, :mode => entry.header.mode, :verbose => false
end
fsync_dir dest
@@ -153,9 +164,9 @@ class Gem::Package::TarInput
# it's a file
md5 = Digest::MD5.new if expected_md5sum
destdir = File.join destdir, File.dirname(entry.full_name)
- @fileops.mkdir_p destdir, :mode => 0755, :verbose => false
+ FileUtils.mkdir_p destdir, :mode => 0755, :verbose => false
destfile = File.join destdir, File.basename(entry.full_name)
- @fileops.chmod 0600, destfile, :verbose => false rescue nil # Errno::ENOENT
+ FileUtils.chmod 0600, destfile, :verbose => false rescue nil # Errno::ENOENT
open destfile, "wb", entry.header.mode do |os|
loop do
@@ -169,7 +180,7 @@ class Gem::Package::TarInput
os.fsync
end
- @fileops.chmod entry.header.mode, destfile, :verbose => false
+ FileUtils.chmod entry.header.mode, destfile, :verbose => false
fsync_dir File.dirname(destfile)
fsync_dir File.join(File.dirname(destfile), "..")
@@ -199,20 +210,25 @@ class Gem::Package::TarInput
# the unpacking speed) we threw our hands in the air and declared that
# this method would use the String IO approach on all platforms at all
# times. And that's the way it is.
-
+ #
+ # Revisited. Here's the beginning of the long story.
+ # http://osdir.com/ml/lang.ruby.gems.devel/2007-06/msg00045.html
+ #
+ # StringIO wraping has never worked as a workaround by definition. Skipping
+ # initial 10 bytes and passing -MAX_WBITS to Zlib::Inflate luckily works as
+ # gzip reader, but it only works if the GZip header is 10 bytes long (see
+ # below) and it does not check inflated stream consistency (CRC value in the
+ # Gzip trailer.)
+ #
+ # RubyGems generated Gzip Header: 10 bytes
+ # magic(2) + method(1) + flag(1) + mtime(4) + exflag(1) + os(1) +
+ # orig_name(0) + comment(0)
+ #
+ # Ideally, it must return a GZipReader without meaningless buffering. We
+ # have lots of CRuby committers around so let's fix windows build when we
+ # received an error.
def zipped_stream(entry)
- if defined? Rubinius then
- zis = Zlib::GzipReader.new entry
- dis = zis.read
- is = StringIO.new(dis)
- else
- # This is Jamis Buck's Zlib workaround for some unknown issue
- entry.read(10) # skip the gzip header
- zis = Zlib::Inflate.new(-Zlib::MAX_WBITS)
- is = StringIO.new(zis.inflate(entry.read))
- end
- ensure
- zis.finish if zis
+ Zlib::GzipReader.new entry
end
end
diff --git a/lib/rubygems/package/tar_output.rb b/lib/rubygems/package/tar_output.rb
index b22f7dd86b..fdc8f4fb7c 100644
--- a/lib/rubygems/package/tar_output.rb
+++ b/lib/rubygems/package/tar_output.rb
@@ -1,9 +1,8 @@
-#++
-# Copyright (C) 2004 Mauricio Julio Fernández Pradier
-# See LICENSE.txt for additional licensing information.
+# -*- coding: utf-8 -*-
#--
-
-require 'rubygems/package'
+# Copyright (C) 2004 Mauricio Julio Fernández Pradier
+# See LICENSE.txt for additional licensing information.
+#++
##
# TarOutput is a wrapper to TarWriter that builds gem-format tar file.
@@ -66,8 +65,10 @@ class Gem::Package::TarOutput
Zlib::GzipWriter.wrap(sio || inner) do |os|
Gem::Package::TarWriter.new os do |data_tar_writer|
+ # :stopdoc:
def data_tar_writer.metadata() @metadata end
def data_tar_writer.metadata=(metadata) @metadata = metadata end
+ # :startdoc:
yield data_tar_writer
@@ -78,6 +79,7 @@ class Gem::Package::TarOutput
# if we have a signing key, then sign the data
# digest and return the signature
if @signer then
+ require 'rubygems/security'
digest = Gem::Security::OPT[:dgst_algo].digest sio.string
@data_signature = @signer.sign digest
inner.write sio.string
@@ -106,6 +108,7 @@ class Gem::Package::TarOutput
# if we have a signing key, then sign the metadata digest and return
# the signature
if @signer then
+ require 'rubygems/security'
digest = Gem::Security::OPT[:dgst_algo].digest sio.string
@meta_signature = @signer.sign digest
io.write sio.string
diff --git a/lib/rubygems/package/tar_reader.rb b/lib/rubygems/package/tar_reader.rb
index 4aa9c26cc9..e6a71d386c 100644
--- a/lib/rubygems/package/tar_reader.rb
+++ b/lib/rubygems/package/tar_reader.rb
@@ -1,16 +1,24 @@
-#++
-# Copyright (C) 2004 Mauricio Julio Fernández Pradier
-# See LICENSE.txt for additional licensing information.
+# -*- coding: utf-8 -*-
#--
+# Copyright (C) 2004 Mauricio Julio Fernández Pradier
+# See LICENSE.txt for additional licensing information.
+#++
-require 'rubygems/package'
+##
+# TarReader reads tar files and allows iteration over their items
class Gem::Package::TarReader
include Gem::Package
+ ##
+ # Raised if the tar IO is not seekable
+
class UnexpectedEOF < StandardError; end
+ ##
+ # Creates a new TarReader on +io+ and yields it to the block, if given.
+
def self.new(io)
reader = super
@@ -25,14 +33,24 @@ class Gem::Package::TarReader
nil
end
+ ##
+ # Creates a new tar file reader on +io+ which needs to respond to #pos,
+ # #eof?, #read, #getc and #pos=
+
def initialize(io)
@io = io
@init_pos = io.pos
end
+ ##
+ # Close the tar file
+
def close
end
+ ##
+ # Iterates over files in the tarball yielding each entry
+
def each
loop do
return if @io.eof?
@@ -84,3 +102,5 @@ class Gem::Package::TarReader
end
+require 'rubygems/package/tar_reader/entry'
+
diff --git a/lib/rubygems/package/tar_reader/entry.rb b/lib/rubygems/package/tar_reader/entry.rb
index dcc66153d8..7034e59210 100644
--- a/lib/rubygems/package/tar_reader/entry.rb
+++ b/lib/rubygems/package/tar_reader/entry.rb
@@ -1,14 +1,22 @@
+# -*- coding: utf-8 -*-
#++
-# Copyright (C) 2004 Mauricio Julio Fernández Pradier
+# Copyright (C) 2004 Mauricio Julio Fernández Pradier
# See LICENSE.txt for additional licensing information.
#--
-require 'rubygems/package'
+##
+# Class for reading entries out of a tar file
class Gem::Package::TarReader::Entry
+ ##
+ # Header for this tar entry
+
attr_reader :header
+ ##
+ # Creates a new tar entry for +header+ that will be read from +io+
+
def initialize(header, io)
@closed = false
@header = header
@@ -21,32 +29,54 @@ class Gem::Package::TarReader::Entry
raise IOError, "closed #{self.class}" if closed?
end
+ ##
+ # Number of bytes read out of the tar entry
+
def bytes_read
@read
end
+ ##
+ # Closes the tar entry
+
def close
@closed = true
end
+ ##
+ # Is the tar entry closed?
+
def closed?
@closed
end
+ ##
+ # Are we at the end of the tar entry?
+
def eof?
check_closed
@read >= @header.size
end
+ ##
+ # Full name of the tar entry
+
def full_name
if @header.prefix != "" then
File.join @header.prefix, @header.name
else
@header.name
end
+ rescue ArgumentError => e
+ raise unless e.message == 'string contains null byte'
+ raise Gem::Package::TarInvalidError,
+ 'tar is corrupt, name contains null byte'
end
+ ##
+ # Read one byte from the tar entry
+
def getc
check_closed
@@ -58,20 +88,33 @@ class Gem::Package::TarReader::Entry
ret
end
+ ##
+ # Is this tar entry a directory?
+
def directory?
@header.typeflag == "5"
end
+ ##
+ # Is this tar entry a file?
+
def file?
@header.typeflag == "0"
end
+ ##
+ # The position in the tar entry
+
def pos
check_closed
bytes_read
end
+ ##
+ # Reads +len+ bytes from the tar file entry, or the rest of the entry if
+ # nil
+
def read(len = nil)
check_closed
@@ -86,6 +129,9 @@ class Gem::Package::TarReader::Entry
ret
end
+ ##
+ # Rewinds to the beginning of the tar file entry
+
def rewind
check_closed
diff --git a/test/rubygems/gem_package_tar_test_case.rb b/lib/rubygems/package/tar_test_case.rb
index 08ee57d66b..4601f1328f 100644
--- a/test/rubygems/gem_package_tar_test_case.rb
+++ b/lib/rubygems/package/tar_test_case.rb
@@ -1,21 +1,10 @@
-require File.join(File.expand_path(File.dirname(__FILE__)), 'gemutilities')
+require 'rubygems/test_case'
require 'rubygems/package'
-class File
+##
+# A test case for Gem::Package::Tar* classes
- # straight from setup.rb
- def self.dir?(path)
- # for corrupted windows stat()
- File.directory?((path[-1,1] == '/') ? path : path + '/')
- end
-
- def self.read_b(name)
- File.open(name, "rb") { |f| f.read }
- end
-
-end
-
-class TarTestCase < RubyGemTestCase
+class Gem::Package::TarTestCase < Gem::TestCase
def ASCIIZ(str, length)
str + "\0" * (length - str.length)
@@ -134,8 +123,10 @@ class TarTestCase < RubyGemTestCase
def util_entry(tar)
io = TempIO.new tar
+
header = Gem::Package::TarHeader.from io
- entry = Gem::Package::TarReader::Entry.new header, io
+
+ Gem::Package::TarReader::Entry.new header, io
end
def util_dir_entry
diff --git a/lib/rubygems/package/tar_writer.rb b/lib/rubygems/package/tar_writer.rb
index 04a15c7779..a73b5e5cab 100644
--- a/lib/rubygems/package/tar_writer.rb
+++ b/lib/rubygems/package/tar_writer.rb
@@ -1,17 +1,33 @@
-#++
-# Copyright (C) 2004 Mauricio Julio Fernández Pradier
-# See LICENSE.txt for additional licensing information.
+# -*- coding: utf-8 -*-
#--
+# Copyright (C) 2004 Mauricio Julio Fernández Pradier
+# See LICENSE.txt for additional licensing information.
+#++
-require 'rubygems/package'
+##
+# Allows writing of tar files
class Gem::Package::TarWriter
class FileOverflow < StandardError; end
+ ##
+ # IO wrapper that allows writing a limited amount of data
+
class BoundedStream
- attr_reader :limit, :written
+ ##
+ # Maximum number of bytes that can be written
+
+ attr_reader :limit
+
+ ##
+ # Number of bytes written
+
+ attr_reader :written
+
+ ##
+ # Wraps +io+ and allows up to +limit+ bytes to be written
def initialize(io, limit)
@io = io
@@ -19,6 +35,10 @@ class Gem::Package::TarWriter
@written = 0
end
+ ##
+ # Writes +data+ onto the IO, raising a FileOverflow exception if the
+ # number of bytes will be more than #limit
+
def write(data)
if data.size + @written > @limit
raise FileOverflow, "You tried to feed more data than fits in the file."
@@ -30,18 +50,30 @@ class Gem::Package::TarWriter
end
+ ##
+ # IO wrapper that provides only #write
+
class RestrictedStream
+ ##
+ # Creates a new RestrictedStream wrapping +io+
+
def initialize(io)
@io = io
end
+ ##
+ # Writes +data+ onto the IO
+
def write(data)
@io.write data
end
end
+ ##
+ # Creates a new TarWriter, yielding it if a block is given
+
def self.new(io)
writer = super
@@ -56,12 +88,19 @@ class Gem::Package::TarWriter
nil
end
+ ##
+ # Creates a new TarWriter that will write to +io+
+
def initialize(io)
@io = io
@closed = false
end
- def add_file(name, mode)
+ ##
+ # Adds file +name+ with permissions +mode+, and yields an IO for writing the
+ # file to
+
+ def add_file(name, mode) # :yields: io
check_closed
raise Gem::Package::NonSeekableIO unless @io.respond_to? :pos=
@@ -90,7 +129,11 @@ class Gem::Package::TarWriter
self
end
- def add_file_simple(name, mode, size)
+ ##
+ # Add file +name+ with permissions +mode+ +size+ bytes long. Yields an IO
+ # to write the file to.
+
+ def add_file_simple(name, mode, size) # :yields: io
check_closed
name, prefix = split_name name
@@ -112,10 +155,16 @@ class Gem::Package::TarWriter
self
end
+ ##
+ # Raises IOError if the TarWriter is closed
+
def check_closed
raise IOError, "closed #{self.class}" if closed?
end
+ ##
+ # Closes the TarWriter
+
def close
check_closed
@@ -125,16 +174,25 @@ class Gem::Package::TarWriter
@closed = true
end
+ ##
+ # Is the TarWriter closed?
+
def closed?
@closed
end
+ ##
+ # Flushes the TarWriter's IO
+
def flush
check_closed
@io.flush if @io.respond_to? :flush
end
+ ##
+ # Creates a new directory in the tar file +name+ with +mode+
+
def mkdir(name, mode)
check_closed
@@ -149,6 +207,9 @@ class Gem::Package::TarWriter
self
end
+ ##
+ # Splits +name+ into a name and prefix that can fit in the TarHeader
+
def split_name(name) # :nodoc:
raise Gem::Package::TooLongFileName if name.size > 256
diff --git a/lib/rubygems/package_task.rb b/lib/rubygems/package_task.rb
new file mode 100644
index 0000000000..fe32a03b27
--- /dev/null
+++ b/lib/rubygems/package_task.rb
@@ -0,0 +1,126 @@
+# Copyright (c) 2003, 2004 Jim Weirich, 2009 Eric Hodel
+#
+# Permission is hereby granted, free of charge, to any person obtaining
+# a copy of this software and associated documentation files (the
+# "Software"), to deal in the Software without restriction, including
+# without limitation the rights to use, copy, modify, merge, publish,
+# distribute, sublicense, and/or sell copies of the Software, and to
+# permit persons to whom the Software is furnished to do so, subject to
+# the following conditions:
+#
+# The above copyright notice and this permission notice shall be
+# included in all copies or substantial portions of the Software.
+#
+# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
+# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
+# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
+# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
+# LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
+# OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
+# WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+
+require 'rubygems'
+begin
+ gem 'rake'
+rescue Gem::LoadError
+end
+
+require 'rake/packagetask'
+
+##
+# Create a package based upon a Gem::Specification. Gem packages, as well as
+# zip files and tar/gzipped packages can be produced by this task.
+#
+# In addition to the Rake targets generated by Rake::PackageTask, a
+# Gem::PackageTask will also generate the following tasks:
+#
+# [<b>"<em>package_dir</em>/<em>name</em>-<em>version</em>.gem"</b>]
+# Create a RubyGems package with the given name and version.
+#
+# Example using a Gem::Specification:
+#
+# require 'rubygems'
+# require 'rubygems/package_task'
+#
+# spec = Gem::Specification.new do |s|
+# s.platform = Gem::Platform::RUBY
+# s.summary = "Ruby based make-like utility."
+# s.name = 'rake'
+# s.version = PKG_VERSION
+# s.requirements << 'none'
+# s.require_path = 'lib'
+# s.autorequire = 'rake'
+# s.files = PKG_FILES
+# s.description = <<-EOF
+# Rake is a Make-like program implemented in Ruby. Tasks
+# and dependencies are specified in standard Ruby syntax.
+# EOF
+# end
+#
+# Gem::PackageTask.new(spec) do |pkg|
+# pkg.need_zip = true
+# pkg.need_tar = true
+# end
+
+class Gem::PackageTask < Rake::PackageTask
+
+ ##
+ # Ruby Gem::Specification containing the metadata for this package. The
+ # name, version and package_files are automatically determined from the
+ # gemspec and don't need to be explicitly provided.
+
+ attr_accessor :gem_spec
+
+ ##
+ # Create a Gem Package task library. Automatically define the gem if a
+ # block is given. If no block is supplied, then #define needs to be called
+ # to define the task.
+
+ def initialize(gem_spec)
+ init gem_spec
+ yield self if block_given?
+ define if block_given?
+ end
+
+ ##
+ # Initialization tasks without the "yield self" or define operations.
+
+ def init(gem)
+ super gem.full_name, :noversion
+ @gem_spec = gem
+ @package_files += gem_spec.files if gem_spec.files
+ end
+
+ ##
+ # Create the Rake tasks and actions specified by this Gem::PackageTask.
+ # (+define+ is automatically called if a block is given to +new+).
+
+ def define
+ super
+
+ task :package => [:gem]
+
+ gem_file = File.basename gem_spec.cache_file
+ gem_path = File.join package_dir, gem_file
+ gem_dir = File.join package_dir, gem_spec.full_name
+
+ desc "Build the gem file #{gem_file}"
+ task :gem => [gem_path]
+
+ trace = Rake.application.options.trace
+ Gem.configuration.verbose = trace
+
+ file gem_path => [package_dir, gem_dir] + @gem_spec.files do
+ chdir(gem_dir) do
+ when_writing "Creating #{gem_spec.file_name}" do
+ Gem::Builder.new(gem_spec).build
+ verbose trace do
+ mv gem_file, '..'
+ end
+ end
+ end
+ end
+ end
+
+end
+
diff --git a/lib/rubygems/path_support.rb b/lib/rubygems/path_support.rb
new file mode 100644
index 0000000000..0aaf2c1bed
--- /dev/null
+++ b/lib/rubygems/path_support.rb
@@ -0,0 +1,70 @@
+##
+# Gem::PathSupport facilitates the GEM_HOME and GEM_PATH environment settings
+# to the rest of RubyGems.
+#
+class Gem::PathSupport
+ ##
+ # The default system path for managing Gems.
+ attr_reader :home
+
+ ##
+ # Array of paths to search for Gems.
+ attr_reader :path
+
+ ##
+ #
+ # Constructor. Takes a single argument which is to be treated like a
+ # hashtable, or defaults to ENV, the system environment.
+ #
+ def initialize(env=ENV)
+ @env = env
+
+ # note 'env' vs 'ENV'...
+ @home = env["GEM_HOME"] || ENV["GEM_HOME"] || Gem.default_dir
+
+ if File::ALT_SEPARATOR then
+ @home = @home.gsub(File::ALT_SEPARATOR, File::SEPARATOR)
+ end
+
+ self.path = env["GEM_PATH"] || ENV["GEM_PATH"]
+ end
+
+ private
+
+ ##
+ # Set the Gem home directory (as reported by Gem.dir).
+
+ def home=(home)
+ @home = home.to_s
+ end
+
+ ##
+ # Set the Gem search path (as reported by Gem.path).
+
+ def path=(gpaths)
+ gem_path = [@home]
+
+ # FIX: I can't tell wtf this is doing.
+ gpaths ||= (ENV['GEM_PATH'] || "").empty? ? nil : ENV["GEM_PATH"]
+
+ if gpaths then
+ if gpaths.kind_of?(Array) then
+ gem_path.push(*gpaths)
+ else
+ gem_path.push(*gpaths.split(File::PATH_SEPARATOR))
+ end
+
+ if File::ALT_SEPARATOR then
+ gem_path.map! do |this_path|
+ this_path.gsub File::ALT_SEPARATOR, File::SEPARATOR
+ end
+ end
+ else
+ gem_path.push(*Gem.default_path)
+
+ gem_path << APPLE_GEM_HOME if defined?(APPLE_GEM_HOME)
+ end
+
+ @path = gem_path.uniq
+ end
+end
diff --git a/lib/rubygems/platform.rb b/lib/rubygems/platform.rb
index 3e5b5cde66..682714a5de 100644
--- a/lib/rubygems/platform.rb
+++ b/lib/rubygems/platform.rb
@@ -1,4 +1,4 @@
-require 'rubygems'
+require "rubygems/deprecate"
##
# Available list of platforms for targeting Gem installations.
@@ -68,10 +68,13 @@ class Gem::Platform
when /aix(\d+)/ then [ 'aix', $1 ]
when /cygwin/ then [ 'cygwin', nil ]
when /darwin(\d+)?/ then [ 'darwin', $1 ]
+ when /^macruby$/ then [ 'macruby', nil ]
when /freebsd(\d+)/ then [ 'freebsd', $1 ]
when /hpux(\d+)/ then [ 'hpux', $1 ]
when /^java$/, /^jruby$/ then [ 'java', nil ]
when /^java([\d.]*)/ then [ 'java', $1 ]
+ when /^dotnet$/ then [ 'dotnet', nil ]
+ when /^dotnet([\d.]*)/ then [ 'dotnet', $1 ]
when /linux/ then [ 'linux', $1 ]
when /mingw32/ then [ 'mingw32', nil ]
when /(mswin\d+)(\_(\d+))?/ then
@@ -106,13 +109,22 @@ class Gem::Platform
to_a.compact.join '-'
end
+ def empty?
+ to_s.empty?
+ end
+
##
# Is +other+ equal to this platform? Two platforms are equal if they have
# the same CPU, OS and version.
def ==(other)
- self.class === other and
- @cpu == other.cpu and @os == other.os and @version == other.version
+ self.class === other and to_a == other.to_a
+ end
+
+ alias :eql? :==
+
+ def hash # :nodoc:
+ to_a.hash
end
##
@@ -143,14 +155,15 @@ class Gem::Platform
when String then
# This data is from http://gems.rubyforge.org/gems/yaml on 19 Aug 2007
other = case other
- when /^i686-darwin(\d)/ then ['x86', 'darwin', $1]
- when /^i\d86-linux/ then ['x86', 'linux', nil]
- when 'java', 'jruby' then [nil, 'java', nil]
- when /mswin32(\_(\d+))?/ then ['x86', 'mswin32', $2]
- when 'powerpc-darwin' then ['powerpc', 'darwin', nil]
- when /powerpc-darwin(\d)/ then ['powerpc', 'darwin', $1]
- when /sparc-solaris2.8/ then ['sparc', 'solaris', '2.8']
- when /universal-darwin(\d)/ then ['universal', 'darwin', $1]
+ when /^i686-darwin(\d)/ then ['x86', 'darwin', $1 ]
+ when /^i\d86-linux/ then ['x86', 'linux', nil ]
+ when 'java', 'jruby' then [nil, 'java', nil ]
+ when /dotnet(\-(\d+\.\d+))?/ then ['universal','dotnet', $2 ]
+ when /mswin32(\_(\d+))?/ then ['x86', 'mswin32', $2 ]
+ when 'powerpc-darwin' then ['powerpc', 'darwin', nil ]
+ when /powerpc-darwin(\d)/ then ['powerpc', 'darwin', $1 ]
+ when /sparc-solaris2.8/ then ['sparc', 'solaris', '2.8' ]
+ when /universal-darwin(\d)/ then ['universal', 'darwin', $1 ]
else other
end
@@ -174,5 +187,8 @@ class Gem::Platform
CURRENT = 'current'
+ extend Gem::Deprecate
+
+ deprecate :empty?, :none, 2011, 11
end
diff --git a/lib/rubygems/psych_additions.rb b/lib/rubygems/psych_additions.rb
new file mode 100644
index 0000000000..6a46bdaf3c
--- /dev/null
+++ b/lib/rubygems/psych_additions.rb
@@ -0,0 +1,18 @@
+# This exists just to satify bugs in marshal'd gemspecs that
+# contain a reference to YAML::PrivateType. We prune these out
+# in Specification._load, but if we don't have the constant, Marshal
+# blows up.
+
+module Psych
+ class PrivateType
+ end
+end
+# This exists just to satify bugs in marshal'd gemspecs that
+# contain a reference to YAML::PrivateType. We prune these out
+# in Specification._load, but if we don't have the constant, Marshal
+# blows up.
+
+module Psych
+ class PrivateType
+ end
+end
diff --git a/lib/rubygems/psych_tree.rb b/lib/rubygems/psych_tree.rb
new file mode 100644
index 0000000000..d73541e4f2
--- /dev/null
+++ b/lib/rubygems/psych_tree.rb
@@ -0,0 +1,54 @@
+module Gem
+ if defined? ::Psych::Visitors
+ class NoAliasYAMLTree < Psych::Visitors::YAMLTree
+ def visit_String(str)
+ return super unless str == '=' # or whatever you want
+
+ quote = Psych::Nodes::Scalar::SINGLE_QUOTED
+ @emitter.scalar str, nil, nil, false, true, quote
+ end
+
+ # Noop this out so there are no anchors
+ def register(target, obj)
+ end
+
+ # This is ported over from the yaml_tree in 1.9.3
+ def format_time time
+ if time.utc?
+ time.strftime("%Y-%m-%d %H:%M:%S.%9N Z")
+ else
+ time.strftime("%Y-%m-%d %H:%M:%S.%9N %:z")
+ end
+ end
+
+ private :format_time
+ end
+ end
+end
+module Gem
+ if defined? ::Psych::Visitors
+ class NoAliasYAMLTree < Psych::Visitors::YAMLTree
+ def visit_String(str)
+ return super unless str == '=' # or whatever you want
+
+ quote = Psych::Nodes::Scalar::SINGLE_QUOTED
+ @emitter.scalar str, nil, nil, false, true, quote
+ end
+
+ # Noop this out so there are no anchors
+ def register(target, obj)
+ end
+
+ # This is ported over from the yaml_tree in 1.9.3
+ def format_time time
+ if time.utc?
+ time.strftime("%Y-%m-%d %H:%M:%S.%9N Z")
+ else
+ time.strftime("%Y-%m-%d %H:%M:%S.%9N %:z")
+ end
+ end
+
+ private :format_time
+ end
+ end
+end
diff --git a/lib/rubygems/remote_fetcher.rb b/lib/rubygems/remote_fetcher.rb
index 1570740163..9827e66f34 100644
--- a/lib/rubygems/remote_fetcher.rb
+++ b/lib/rubygems/remote_fetcher.rb
@@ -1,9 +1,6 @@
-require 'net/http'
-require 'stringio'
-require 'time'
-require 'uri'
-
require 'rubygems'
+require 'rubygems/user_interaction'
+require 'uri'
##
# RemoteFetcher handles the details of fetching gems and gem information from
@@ -11,6 +8,8 @@ require 'rubygems'
class Gem::RemoteFetcher
+ BuiltinSSLCerts = File.expand_path("./ssl_certs/*.pem", File.dirname(__FILE__))
+
include Gem::UserInteraction
##
@@ -55,7 +54,12 @@ class Gem::RemoteFetcher
# HTTP_PROXY_PASS)
# * <tt>:no_proxy</tt>: ignore environment variables and _don't_ use a proxy
- def initialize(proxy)
+ def initialize(proxy = nil)
+ require 'net/http'
+ require 'stringio'
+ require 'time'
+ require 'uri'
+
Socket.do_not_reverse_lookup = true
@connections = {}
@@ -67,6 +71,25 @@ class Gem::RemoteFetcher
when URI::HTTP then proxy
else URI.parse(proxy)
end
+ @user_agent = user_agent
+ end
+
+ ##
+ # Given a name and requirement, downloads this gem into cache and returns the
+ # filename. Returns nil if the gem cannot be located.
+ #--
+ # Should probably be integrated with #download below, but that will be a
+ # larger, more emcompassing effort. -erikh
+
+ def download_to_cache dependency
+ found = Gem::SpecFetcher.fetcher.fetch dependency, true, true,
+ dependency.prerelease?
+
+ return if found.empty?
+
+ spec, source_uri = found.sort_by { |(s,_)| s.version }.last
+
+ download spec, source_uri
end
##
@@ -75,18 +98,26 @@ class Gem::RemoteFetcher
# always replaced.
def download(spec, source_uri, install_dir = Gem.dir)
+ Gem.ensure_gem_subdirectories(install_dir) rescue nil
+
if File.writable?(install_dir)
- cache_dir = File.join install_dir, 'cache'
+ cache_dir = File.join install_dir, "cache"
else
- cache_dir = File.join(Gem.user_dir, 'cache')
+ cache_dir = File.join Gem.user_dir, "cache"
end
- gem_file_name = "#{spec.full_name}.gem"
+ gem_file_name = File.basename spec.cache_file
local_gem_path = File.join cache_dir, gem_file_name
FileUtils.mkdir_p cache_dir rescue nil unless File.exist? cache_dir
- source_uri = URI.parse source_uri unless URI::Generic === source_uri
+ # Always escape URI's to deal with potential spaces and such
+ unless URI::Generic === source_uri
+ source_uri = URI.parse(URI.const_defined?(:DEFAULT_PARSER) ?
+ URI::DEFAULT_PARSER.escape(source_uri.to_s) :
+ URI.escape(source_uri.to_s))
+ end
+
scheme = source_uri.scheme
# URI.parse gets confused by MS Windows paths with forward slashes.
@@ -101,7 +132,7 @@ class Gem::RemoteFetcher
remote_gem_path = source_uri + "gems/#{gem_file_name}"
- gem = Gem::RemoteFetcher.fetcher.fetch_path remote_gem_path
+ gem = self.fetch_path remote_gem_path
rescue Gem::RemoteFetcher::FetchError
raise if spec.original_platform == spec.platform
@@ -112,16 +143,40 @@ class Gem::RemoteFetcher
remote_gem_path = source_uri + "gems/#{alternate_name}"
- gem = Gem::RemoteFetcher.fetcher.fetch_path remote_gem_path
+ gem = self.fetch_path remote_gem_path
end
File.open local_gem_path, 'wb' do |fp|
fp.write gem
end
end
- when nil, 'file' then # TODO test for local overriding cache
+ when 'file' then
+ begin
+ path = source_uri.path
+ path = File.dirname(path) if File.extname(path) == '.gem'
+
+ remote_gem_path = correct_for_windows_path(File.join(path, 'gems', gem_file_name))
+
+ FileUtils.cp(remote_gem_path, local_gem_path)
+ rescue Errno::EACCES
+ local_gem_path = source_uri.to_s
+ end
+
+ say "Using local gem #{local_gem_path}" if
+ Gem.configuration.really_verbose
+ when nil then # TODO test for local overriding cache
+ source_path = if Gem.win_platform? && source_uri.scheme &&
+ !source_uri.path.include?(':') then
+ "#{source_uri.scheme}:#{source_uri.path}"
+ else
+ source_uri.path
+ end
+
+ source_path = unescape source_path
+
begin
- FileUtils.cp source_uri.to_s, local_gem_path
+ FileUtils.cp source_path, local_gem_path unless
+ File.expand_path(source_path) == File.expand_path(local_gem_path)
rescue Errno::EACCES
local_gem_path = source_uri.to_s
end
@@ -136,18 +191,59 @@ class Gem::RemoteFetcher
end
##
+ # File Fetcher. Dispatched by +fetch_path+. Use it instead.
+
+ def fetch_file uri, *_
+ Gem.read_binary correct_for_windows_path uri.path
+ end
+
+ ##
+ # HTTP Fetcher. Dispatched by +fetch_path+. Use it instead.
+
+ def fetch_http uri, last_modified = nil, head = false, depth = 0
+ fetch_type = head ? Net::HTTP::Head : Net::HTTP::Get
+ response = request uri, fetch_type, last_modified
+
+ case response
+ when Net::HTTPOK, Net::HTTPNotModified then
+ head ? response : response.body
+ when Net::HTTPMovedPermanently, Net::HTTPFound, Net::HTTPSeeOther,
+ Net::HTTPTemporaryRedirect then
+ raise FetchError.new('too many redirects', uri) if depth > 10
+
+ location = URI.parse response['Location']
+
+ if https?(uri) && !https?(location)
+ raise FetchError.new("redirecting to non-https resource: #{location}", uri)
+ end
+
+ fetch_http(location, last_modified, head, depth + 1)
+ else
+ raise FetchError.new("bad response #{response.message} #{response.code}", uri)
+ end
+ end
+
+ alias :fetch_https :fetch_http
+
+ ##
# Downloads +uri+ and returns it as a String.
def fetch_path(uri, mtime = nil, head = false)
- data = open_uri_or_path uri, mtime, head
+ uri = URI.parse uri unless URI::Generic === uri
+
+ raise ArgumentError, "bad uri: #{uri}" unless uri
+ raise ArgumentError, "uri scheme is invalid: #{uri.scheme.inspect}" unless
+ uri.scheme
+
+ data = send "fetch_#{uri.scheme}", uri, mtime, head
data = Gem.gunzip data if data and not head and uri.to_s =~ /gz$/
data
rescue FetchError
raise
rescue Timeout::Error
- raise FetchError.new('timed out', uri)
+ raise FetchError.new('timed out', uri.to_s)
rescue IOError, SocketError, SystemCallError => e
- raise FetchError.new("#{e.class}: #{e}", uri)
+ raise FetchError.new("#{e.class}: #{e}", uri.to_s)
end
##
@@ -161,12 +257,20 @@ class Gem::RemoteFetcher
def escape(str)
return unless str
- URI.escape(str)
+ @uri_parser ||= uri_escaper
+ @uri_parser.escape str
end
def unescape(str)
return unless str
- URI.unescape(str)
+ @uri_parser ||= uri_escaper
+ @uri_parser.unescape str
+ end
+
+ def uri_escaper
+ URI::Parser.new
+ rescue NameError
+ URI
end
##
@@ -177,7 +281,7 @@ class Gem::RemoteFetcher
return nil if env_proxy.nil? or env_proxy.empty?
- uri = URI.parse env_proxy
+ uri = URI.parse(normalize_uri(env_proxy))
if uri and uri.user.nil? and uri.password.nil? then
# Probably we have http_proxy_* variables?
@@ -211,50 +315,68 @@ class Gem::RemoteFetcher
]
end
- connection_id = net_http_args.join ':'
+ connection_id = [Thread.current.object_id, *net_http_args].join ':'
@connections[connection_id] ||= Net::HTTP.new(*net_http_args)
connection = @connections[connection_id]
- if uri.scheme == 'https' and not connection.started? then
- require 'net/https'
- connection.use_ssl = true
- connection.verify_mode = OpenSSL::SSL::VERIFY_NONE
+ if https?(uri) and !connection.started? then
+ configure_connection_for_https(connection)
end
connection.start unless connection.started?
connection
+ rescue OpenSSL::SSL::SSLError, Errno::EHOSTDOWN => e
+ raise FetchError.new(e.message, uri)
end
- ##
- # Read the data from the (source based) URI, but if it is a file:// URI,
- # read from the filesystem instead.
+ def configure_connection_for_https(connection)
+ require 'net/https'
- def open_uri_or_path(uri, last_modified = nil, head = false, depth = 0)
- raise "block is dead" if block_given?
+ connection.use_ssl = true
+ connection.verify_mode =
+ Gem.configuration.ssl_verify_mode || OpenSSL::SSL::VERIFY_PEER
- return open(get_file_uri_path(uri)) if file_uri? uri
+ store = OpenSSL::X509::Store.new
- uri = URI.parse uri unless URI::Generic === uri
- raise ArgumentError, 'uri is not an HTTP URI' unless URI::HTTP === uri
+ if Gem.configuration.ssl_ca_cert
+ if File.directory? Gem.configuration.ssl_ca_cert
+ store.add_path Gem.configuration.ssl_ca_cert
+ else
+ store.add_file Gem.configuration.ssl_ca_cert
+ end
+ else
+ store.set_default_paths
+ add_rubygems_trusted_certs(store)
+ end
- fetch_type = head ? Net::HTTP::Head : Net::HTTP::Get
- response = request uri, fetch_type, last_modified
+ connection.cert_store = store
+ end
- case response
- when Net::HTTPOK, Net::HTTPNotModified then
- head ? response : response.body
- when Net::HTTPMovedPermanently, Net::HTTPFound, Net::HTTPSeeOther,
- Net::HTTPTemporaryRedirect then
- raise FetchError.new('too many redirects', uri) if depth > 10
+ def add_rubygems_trusted_certs(store)
+ Dir.glob(BuiltinSSLCerts).each do |ssl_cert_file|
+ store.add_file ssl_cert_file
+ end
+ end
- open_uri_or_path(response['Location'], last_modified, head, depth + 1)
+ def correct_for_windows_path(path)
+ if path[0].chr == '/' && path[1].chr =~ /[a-z]/i && path[2].chr == ':'
+ path = path[1..-1]
else
- raise FetchError.new("bad response #{response.message} #{response.code}", uri)
+ path
end
end
##
+ # Read the data from the (source based) URI, but if it is a file:// URI,
+ # read from the filesystem instead.
+
+ def open_uri_or_path(uri, last_modified = nil, head = false, depth = 0)
+ raise "NO: Use fetch_path instead"
+ # TODO: deprecate for fetch_path
+ end
+
+ ##
# Performs a Net::HTTP request of type +request_class+ on +uri+ returning
# a Net::HTTP response object. request maintains a table of persistent
# connections to reduce connect overhead.
@@ -266,12 +388,7 @@ class Gem::RemoteFetcher
request.basic_auth uri.user, uri.password
end
- ua = "RubyGems/#{Gem::RubyGemsVersion} #{Gem::Platform.local}"
- ua << " Ruby/#{RUBY_VERSION} (#{RUBY_RELEASE_DATE}"
- ua << " patchlevel #{RUBY_PATCHLEVEL}" if defined? RUBY_PATCHLEVEL
- ua << ")"
-
- request.add_field 'User-Agent', ua
+ request.add_field 'User-Agent', @user_agent
request.add_field 'Connection', 'keep-alive'
request.add_field 'Keep-Alive', '30'
@@ -280,6 +397,8 @@ class Gem::RemoteFetcher
request.add_field 'If-Modified-Since', last_modified.rfc2822
end
+ yield request if block_given?
+
connection = connection_for uri
retried = false
@@ -287,10 +406,43 @@ class Gem::RemoteFetcher
begin
@requests[connection.object_id] += 1
- response = connection.request request
- say "#{request.method} #{response.code} #{response.message}: #{uri}" if
+
+ say "#{request.method} #{uri}" if
Gem.configuration.really_verbose
+
+ file_name = File.basename(uri.path)
+ # perform download progress reporter only for gems
+ if request.response_body_permitted? && file_name =~ /\.gem$/
+ reporter = ui.download_reporter
+ response = connection.request(request) do |incomplete_response|
+ if Net::HTTPOK === incomplete_response
+ reporter.fetch(file_name, incomplete_response.content_length)
+ downloaded = 0
+ data = ''
+
+ incomplete_response.read_body do |segment|
+ data << segment
+ downloaded += segment.length
+ reporter.update(downloaded)
+ end
+ reporter.done
+ if incomplete_response.respond_to? :body=
+ incomplete_response.body = data
+ else
+ incomplete_response.instance_variable_set(:@body, data)
+ end
+ end
+ end
+ else
+ response = connection.request request
+ end
+
+ say "#{response.code} #{response.message}" if
+ Gem.configuration.really_verbose
+
rescue Net::HTTPBadResponse
+ say "bad response" if Gem.configuration.really_verbose
+
reset connection
raise FetchError.new('too many bad responses', uri) if bad_response
@@ -300,7 +452,9 @@ class Gem::RemoteFetcher
# HACK work around EOFError bug in Net::HTTP
# NOTE Errno::ECONNABORTED raised a lot on Windows, and make impossible
# to install gems.
- rescue EOFError, Errno::ECONNABORTED, Errno::ECONNRESET
+ rescue EOFError, Timeout::Error,
+ Errno::ECONNABORTED, Errno::ECONNRESET, Errno::EPIPE
+
requests = @requests[connection.object_id]
say "connection reset after #{requests} requests, retrying" if
Gem.configuration.really_verbose
@@ -326,18 +480,27 @@ class Gem::RemoteFetcher
connection.start
end
- ##
- # Checks if the provided string is a file:// URI.
+ def user_agent
+ ua = "RubyGems/#{Gem::VERSION} #{Gem::Platform.local}"
- def file_uri?(uri)
- uri =~ %r{\Afile://}
- end
+ ruby_version = RUBY_VERSION
+ ruby_version += 'dev' if RUBY_PATCHLEVEL == -1
- ##
- # Given a file:// URI, returns its local path.
+ ua << " Ruby/#{ruby_version} (#{RUBY_RELEASE_DATE}"
+ if RUBY_PATCHLEVEL >= 0 then
+ ua << " patchlevel #{RUBY_PATCHLEVEL}"
+ elsif defined?(RUBY_REVISION) then
+ ua << " revision #{RUBY_REVISION}"
+ end
+ ua << ")"
+
+ ua << " #{RUBY_ENGINE}" if defined?(RUBY_ENGINE) and RUBY_ENGINE != 'ruby'
+
+ ua
+ end
- def get_file_uri_path(uri)
- uri.sub(%r{\Afile://}, '')
+ def https?(uri)
+ uri.scheme.downcase == 'https'
end
end
diff --git a/lib/rubygems/require_paths_builder.rb b/lib/rubygems/require_paths_builder.rb
index fe4f593bf4..23e974639f 100644
--- a/lib/rubygems/require_paths_builder.rb
+++ b/lib/rubygems/require_paths_builder.rb
@@ -1,15 +1,18 @@
-module Gem
- module RequirePathsBuilder
- def write_require_paths_file_if_needed(spec = @spec, gem_home = @gem_home)
- return if spec.require_paths == ["lib"] && (spec.bindir.nil? || spec.bindir == "bin")
- file_name = File.join(gem_home, 'gems', "#{@spec.full_name}", ".require_paths")
- file_name.untaint
- File.open(file_name, "w") do |file|
- spec.require_paths.each do |path|
- file.puts path
- end
- file.puts spec.bindir if spec.bindir
+require 'rubygems'
+
+# TODO: remove after 1.9.1 dropped
+module Gem::RequirePathsBuilder
+ def write_require_paths_file_if_needed(spec = @spec, gem_home = @gem_home)
+ return if spec.require_paths == ["lib"] &&
+ (spec.bindir.nil? || spec.bindir == "bin")
+ file_name = File.join(gem_home, 'gems', "#{@spec.full_name}", ".require_paths")
+ file_name.untaint
+ File.open(file_name, "w") do |file|
+ spec.require_paths.each do |path|
+ file.puts path
end
+ file.puts spec.bindir if spec.bindir
end
end
-end \ No newline at end of file
+end if Gem::QUICKLOADER_SUCKAGE
+
diff --git a/lib/rubygems/requirement.rb b/lib/rubygems/requirement.rb
index c9128b5ebc..7abff01c39 100644
--- a/lib/rubygems/requirement.rb
+++ b/lib/rubygems/requirement.rb
@@ -1,43 +1,42 @@
-#--
-# Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others.
-# All rights reserved.
-# See LICENSE.txt for permissions.
-#++
-
-require 'rubygems/version'
+require "rubygems/version"
##
-# Requirement version includes a prefaced comparator in addition
-# to a version number.
-#
-# A Requirement object can actually contain multiple, er,
-# requirements, as in (> 1.2, < 2.0).
+# A Requirement is a set of one or more version restrictions. It supports a
+# few (<tt>=, !=, >, <, >=, <=, ~></tt>) different restriction operators.
-class Gem::Requirement
+# REFACTOR: The fact that a requirement is singular or plural is kind of
+# awkward. Is Requirement the right name for this? Or should it be one
+# [op, number] pair, and we call the list of requirements something else?
+# Since a Requirement is held by a Dependency, maybe this should be made
+# singular and the list aspect should be pulled up into Dependency?
- include Comparable
+require "rubygems/version"
+require "rubygems/deprecate"
- attr_reader :requirements
+class Gem::Requirement
+ include Comparable
- OPS = {
+ OPS = { #:nodoc:
"=" => lambda { |v, r| v == r },
"!=" => lambda { |v, r| v != r },
- ">" => lambda { |v, r| v > r },
- "<" => lambda { |v, r| v < r },
+ ">" => lambda { |v, r| v > r },
+ "<" => lambda { |v, r| v < r },
">=" => lambda { |v, r| v >= r },
"<=" => lambda { |v, r| v <= r },
- "~>" => lambda { |v, r| v >= r && v < r.bump }
+ "~>" => lambda { |v, r| v >= r && v.release < r.bump }
}
- OP_RE = /#{OPS.keys.map{ |k| Regexp.quote k }.join '|'}/o
+ quoted = OPS.keys.map { |k| Regexp.quote k }.join "|"
+ PATTERN = /\A\s*(#{quoted})?\s*(#{Gem::Version::VERSION_PATTERN})\s*\z/
##
- # Factory method to create a Gem::Requirement object. Input may be a
- # Version, a String, or nil. Intended to simplify client code.
+ # Factory method to create a Gem::Requirement object. Input may be
+ # a Version, a String, or nil. Intended to simplify client code.
#
- # If the input is "weird", the default version requirement is returned.
+ # If the input is "weird", the default version requirement is
+ # returned.
- def self.create(input)
+ def self.create input
case input
when Gem::Requirement then
input
@@ -45,9 +44,9 @@ class Gem::Requirement
new input
else
if input.respond_to? :to_str then
- self.new [input.to_str]
+ new [input.to_str]
else
- self.default
+ default
end
end
end
@@ -60,104 +59,146 @@ class Gem::Requirement
# "A default "version requirement" can surely _only_ be '> 0'."
def self.default
- self.new ['>= 0']
+ new '>= 0'
end
##
- # Constructs a Requirement from +requirements+ which can be a String, a
- # Gem::Version, or an Array of those. See parse for details on the
- # formatting of requirement strings.
-
- def initialize(requirements)
- @requirements = case requirements
- when Array then
- requirements.map do |requirement|
- parse(requirement)
- end
- else
- [parse(requirements)]
- end
- @version = nil # Avoid warnings.
+ # Parse +obj+, returning an <tt>[op, version]</tt> pair. +obj+ can
+ # be a String or a Gem::Version.
+ #
+ # If +obj+ is a String, it can be either a full requirement
+ # specification, like <tt>">= 1.2"</tt>, or a simple version number,
+ # like <tt>"1.2"</tt>.
+ #
+ # parse("> 1.0") # => [">", "1.0"]
+ # parse("1.0") # => ["=", "1.0"]
+ # parse(Gem::Version.new("1.0")) # => ["=, "1.0"]
+
+ def self.parse obj
+ return ["=", obj] if Gem::Version === obj
+
+ unless PATTERN =~ obj.to_s
+ raise ArgumentError, "Illformed requirement [#{obj.inspect}]"
+ end
+
+ [$1 || "=", Gem::Version.new($2)]
end
##
- # Marshal raw requirements, rather than the full object
+ # An array of requirement pairs. The first element of the pair is
+ # the op, and the second is the Gem::Version.
+
+ attr_reader :requirements #:nodoc:
+
+ ##
+ # Constructs a requirement from +requirements+. Requirements can be
+ # Strings, Gem::Versions, or Arrays of those. +nil+ and duplicate
+ # requirements are ignored. An empty set of +requirements+ is the
+ # same as <tt>">= 0"</tt>.
+
+ def initialize *requirements
+ requirements = requirements.flatten
+ requirements.compact!
+ requirements.uniq!
+
+ requirements << ">= 0" if requirements.empty?
+ @none = (requirements == ">= 0")
+ @requirements = requirements.map! { |r| self.class.parse r }
+ end
+
+ def none?
+ @none ||= (to_s == ">= 0")
+ end
+
+ def as_list # :nodoc:
+ requirements.map { |op, version| "#{op} #{version}" }.sort
+ end
+
+ def hash # :nodoc:
+ requirements.hash
+ end
def marshal_dump # :nodoc:
+ fix_syck_default_key_in_requirements
+
[@requirements]
end
- ##
- # Load custom marshal format
-
- def marshal_load(array) # :nodoc:
+ def marshal_load array # :nodoc:
@requirements = array[0]
- @version = nil
+
+ fix_syck_default_key_in_requirements
end
- def to_s # :nodoc:
- as_list.join(", ")
+ def yaml_initialize(tag, vals) # :nodoc:
+ vals.each do |ivar, val|
+ instance_variable_set "@#{ivar}", val
+ end
+
+ fix_syck_default_key_in_requirements
+ end
+
+ def init_with coder # :nodoc:
+ yaml_initialize coder.tag, coder.map
end
- def as_list
- normalize
- @requirements.collect { |req|
- "#{req[0]} #{req[1]}"
- }
+ def prerelease?
+ requirements.any? { |r| r.last.prerelease? }
end
- def normalize
- return if not defined? @version or @version.nil?
- @requirements = [parse(@version)]
- @nums = nil
- @version = nil
- @op = nil
+ def pretty_print q # :nodoc:
+ q.group 1, 'Gem::Requirement.new(', ')' do
+ q.pp as_list
+ end
end
##
- # True if this requirement satisfied by the Gem::Version +version+.
+ # True if +version+ satisfies this Requirement.
- def satisfied_by?(version)
- normalize
- @requirements.all? { |op, rv| satisfy?(op, version, rv) }
+ def satisfied_by? version
+ # #28965: syck has a bug with unquoted '=' YAML.loading as YAML::DefaultKey
+ requirements.all? { |op, rv| (OPS[op] || OPS["="]).call version, rv }
end
+ alias :=== :satisfied_by?
+ alias :=~ :satisfied_by?
+
##
- # Is "+version+ +op+ +required_version+" satisfied?
+ # True if the requirement will not always match the latest version.
- def satisfy?(op, version, required_version)
- OPS[op].call(version, required_version)
+ def specific?
+ return true if @requirements.length > 1 # GIGO, > 1, > 2 is silly
+
+ not %w[> >=].include? @requirements.first.first # grab the operator
end
- ##
- # Parse the version requirement obj returning the operator and version.
- #
- # The requirement can be a String or a Gem::Version. A String can be an
- # operator (<, <=, =, =>, >, !=, ~>), a version number, or both, operator
- # first.
-
- def parse(obj)
- case obj
- when /^\s*(#{OP_RE})\s*([0-9.]+)\s*$/o then
- [$1, Gem::Version.new($2)]
- when /^\s*([0-9.]+)\s*$/ then
- ['=', Gem::Version.new($1)]
- when /^\s*(#{OP_RE})\s*$/o then
- [$1, Gem::Version.new('0')]
- when Gem::Version then
- ['=', obj]
- else
- fail ArgumentError, "Illformed requirement [#{obj.inspect}]"
- end
+ def to_s # :nodoc:
+ as_list.join ", "
end
- def <=>(other) # :nodoc:
+ def <=> other # :nodoc:
to_s <=> other.to_s
end
- def hash # :nodoc:
- to_s.hash
- end
+ private
+
+ def fix_syck_default_key_in_requirements
+ Gem.load_yaml
+ # Fixup the Syck DefaultKey bug
+ @requirements.each do |r|
+ if r[0].kind_of? Gem::SyckDefaultKey
+ r[0] = "="
+ end
+ end
+ end
end
+# :stopdoc:
+# Gem::Version::Requirement is used in a lot of old YAML specs. It's aliased
+# here for backwards compatibility. I'd like to remove this, maybe in RubyGems
+# 2.0.
+
+::Gem::Version::Requirement = ::Gem::Requirement
+# :startdoc:
+
diff --git a/lib/rubygems/rubygems_version.rb b/lib/rubygems/rubygems_version.rb
deleted file mode 100644
index d7b5622d97..0000000000
--- a/lib/rubygems/rubygems_version.rb
+++ /dev/null
@@ -1,6 +0,0 @@
-# DO NOT EDIT
-# This file is auto-generated by build scripts.
-# See: rake update_version
-module Gem
- RubyGemsVersion = '1.3.1'
-end
diff --git a/lib/rubygems/security.rb b/lib/rubygems/security.rb
index 5cd3fb756f..f51da65b4b 100644
--- a/lib/rubygems/security.rb
+++ b/lib/rubygems/security.rb
@@ -4,9 +4,11 @@
# See LICENSE.txt for permissions.
#++
-require 'rubygems'
+require 'rubygems/exceptions'
require 'rubygems/gem_openssl'
+require 'fileutils'
+#
# = Signed Gems README
#
# == Table of Contents
@@ -265,6 +267,34 @@ require 'rubygems/gem_openssl'
# A more detailed description of each options is available in the walkthrough
# above.
#
+# == Manually verifying signatures
+#
+# In case you don't trust RubyGems you can verify gem signatures manually:
+#
+# 1. Fetch and unpack the gem
+#
+# gem fetch some_signed_gem
+# tar -xf some_signed_gem-1.0.gem
+#
+# 2. Grab the public key from the gemspec
+#
+# gem spec some_signed_gem-1.0.gem cert_chain | \
+# ruby -pe 'sub(/^ +/, "")' > public_key.crt
+#
+# 3. Generate a SHA1 hash of the data.tar.gz
+#
+# openssl dgst -sha1 < data.tar.gz > my.hash
+#
+# 4. Verify the signature
+#
+# openssl rsautl -verify -inkey public_key.crt -certin \
+# -in data.tar.gz.sig > verified.hash
+#
+# 5. Compare your hash to the verified hash
+#
+# diff -s verified.hash my.hash
+#
+# 6. Repeat 5 and 6 with metadata.gz
#
# == OpenSSL Reference
#
@@ -319,11 +349,14 @@ require 'rubygems/gem_openssl'
module Gem::Security
+ ##
+ # Gem::Security default exception type
+
class Exception < Gem::Exception; end
- #
- # default options for most of the methods below
- #
+ ##
+ # Default options for most of the methods below
+
OPT = {
# private key options
:key_algo => Gem::SSL::PKEY_RSA,
@@ -338,38 +371,38 @@ module Gem::Security
'basicConstraints' => 'CA:FALSE',
'subjectKeyIdentifier' => 'hash',
'keyUsage' => 'keyEncipherment,dataEncipherment,digitalSignature',
- },
-
- # save the key and cert to a file in build_self_signed_cert()?
- :save_key => true,
- :save_cert => true,
-
- # if you define either of these, then they'll be used instead of
- # the output_fmt macro below
- :save_key_path => nil,
- :save_cert_path => nil,
-
- # output name format for self-signed certs
- :output_fmt => 'gem-%s.pem',
- :munge_re => Regexp.new(/[^a-z0-9_.-]+/),
-
- # output directory for trusted certificate checksums
- :trust_dir => File::join(Gem.user_home, '.gem', 'trust'),
-
- # default permissions for trust directory and certs
- :perms => {
- :trust_dir => 0700,
- :trusted_cert => 0600,
- :signing_cert => 0600,
- :signing_key => 0600,
- },
+ },
+
+ # save the key and cert to a file in build_self_signed_cert()?
+ :save_key => true,
+ :save_cert => true,
+
+ # if you define either of these, then they'll be used instead of
+ # the output_fmt macro below
+ :save_key_path => nil,
+ :save_cert_path => nil,
+
+ # output name format for self-signed certs
+ :output_fmt => 'gem-%s.pem',
+ :munge_re => Regexp.new(/[^a-z0-9_.-]+/),
+
+ # output directory for trusted certificate checksums
+ :trust_dir => File.join(Gem.user_home, '.gem', 'trust'),
+
+ # default permissions for trust directory and certs
+ :perms => {
+ :trust_dir => 0700,
+ :trusted_cert => 0600,
+ :signing_cert => 0600,
+ :signing_key => 0600,
+ },
}
- #
+ ##
# A Gem::Security::Policy object encapsulates the settings for verifying
# signed gem files. This is the base class. You can either declare an
# instance of this or use one of the preset security policies below.
- #
+
class Policy
attr_accessor :verify_data, :verify_signer, :verify_chain,
:verify_root, :only_trusted, :only_signed
@@ -509,9 +542,9 @@ module Gem::Security
end
end
- #
+ ##
# No security policy: all package signature checks are disabled.
- #
+
NoSecurity = Policy.new(
:verify_data => false,
:verify_signer => false,
@@ -521,14 +554,14 @@ module Gem::Security
:only_signed => false
)
- #
+ ##
# AlmostNo security policy: only verify that the signing certificate is the
# one that actually signed the data. Make no attempt to verify the signing
# certificate chain.
#
# This policy is basically useless. better than nothing, but can still be
# easily spoofed, and is not recommended.
- #
+
AlmostNoSecurity = Policy.new(
:verify_data => true,
:verify_signer => false,
@@ -538,13 +571,13 @@ module Gem::Security
:only_signed => false
)
- #
+ ##
# Low security policy: only verify that the signing certificate is actually
# the gem signer, and that the signing certificate is valid.
#
# This policy is better than nothing, but can still be easily spoofed, and
# is not recommended.
- #
+
LowSecurity = Policy.new(
:verify_data => true,
:verify_signer => true,
@@ -554,7 +587,7 @@ module Gem::Security
:only_signed => false
)
- #
+ ##
# Medium security policy: verify the signing certificate, verify the signing
# certificate chain all the way to the root certificate, and only trust root
# certificates that we have explicitly allowed trust for.
@@ -562,7 +595,7 @@ module Gem::Security
# This security policy is reasonable, but it allows unsigned packages, so a
# malicious person could simply delete the package signature and pass the
# gem off as unsigned.
- #
+
MediumSecurity = Policy.new(
:verify_data => true,
:verify_signer => true,
@@ -572,7 +605,7 @@ module Gem::Security
:only_signed => false
)
- #
+ ##
# High security policy: only allow signed gems to be installed, verify the
# signing certificate, verify the signing certificate chain all the way to
# the root certificate, and only trust root certificates that we have
@@ -580,7 +613,7 @@ module Gem::Security
#
# This security policy is significantly more difficult to bypass, and offers
# a reasonable guarantee that the contents of the gem have not been altered.
- #
+
HighSecurity = Policy.new(
:verify_data => true,
:verify_signer => true,
@@ -590,9 +623,9 @@ module Gem::Security
:only_signed => true
)
- #
+ ##
# Hash of configured security policies
- #
+
Policies = {
'NoSecurity' => NoSecurity,
'AlmostNoSecurity' => AlmostNoSecurity,
@@ -601,25 +634,24 @@ module Gem::Security
'HighSecurity' => HighSecurity,
}
- #
+ ##
# Sign the cert cert with @signing_key and @signing_cert, using the digest
# algorithm opt[:dgst_algo]. Returns the newly signed certificate.
- #
+
def self.sign_cert(cert, signing_key, signing_cert, opt = {})
opt = OPT.merge(opt)
- # set up issuer information
cert.issuer = signing_cert.subject
- cert.sign(signing_key, opt[:dgst_algo].new)
+ cert.sign signing_key, opt[:dgst_algo].new
cert
end
- #
+ ##
# Make sure the trust directory exists. If it does exist, make sure it's
# actually a directory. If not, then create it with the appropriate
# permissions.
- #
+
def self.verify_trust_dir(path, perms)
# if the directory exists, then make sure it is in fact a directory. if
# it doesn't exist, then create it with the appropriate permissions
@@ -636,94 +668,99 @@ module Gem::Security
end
end
- #
+ ##
# Build a certificate from the given DN and private key.
- #
+
def self.build_cert(name, key, opt = {})
Gem.ensure_ssl_available
- opt = OPT.merge(opt)
+ opt = OPT.merge opt
+
+ cert = OpenSSL::X509::Certificate.new
- # create new cert
- ret = OpenSSL::X509::Certificate.new
+ cert.not_after = Time.now + opt[:cert_age]
+ cert.not_before = Time.now
+ cert.public_key = key.public_key
+ cert.serial = 0
+ cert.subject = name
+ cert.version = 2
- # populate cert attributes
- ret.version = 2
- ret.serial = 0
- ret.public_key = key.public_key
- ret.not_before = Time.now
- ret.not_after = Time.now + opt[:cert_age]
- ret.subject = name
+ ef = OpenSSL::X509::ExtensionFactory.new nil, cert
- # add certificate extensions
- ef = OpenSSL::X509::ExtensionFactory.new(nil, ret)
- ret.extensions = opt[:cert_exts].map { |k, v| ef.create_extension(k, v) }
+ cert.extensions = opt[:cert_exts].map do |ext_name, value|
+ ef.create_extension ext_name, value
+ end
- # sign cert
- i_key, i_cert = opt[:issuer_key] || key, opt[:issuer_cert] || ret
- ret = sign_cert(ret, i_key, i_cert, opt)
+ i_key = opt[:issuer_key] || key
+ i_cert = opt[:issuer_cert] || cert
- # return cert
- ret
+ cert = sign_cert cert, i_key, i_cert, opt
+
+ cert
end
- #
+ ##
# Build a self-signed certificate for the given email address.
- #
+
def self.build_self_signed_cert(email_addr, opt = {})
Gem.ensure_ssl_available
opt = OPT.merge(opt)
path = { :key => nil, :cert => nil }
- # split email address up
- cn, dcs = email_addr.split('@')
- dcs = dcs.split('.')
-
- # munge email CN and DCs
- cn = cn.gsub(opt[:munge_re], '_')
- dcs = dcs.map { |dc| dc.gsub(opt[:munge_re], '_') }
-
- # create DN
- name = "CN=#{cn}/" << dcs.map { |dc| "DC=#{dc}" }.join('/')
- name = OpenSSL::X509::Name::parse(name)
+ name = email_to_name email_addr, opt[:munge_re]
- # build private key
- key = opt[:key_algo].new(opt[:key_size])
+ key = opt[:key_algo].new opt[:key_size]
- # method name pretty much says it all :)
- verify_trust_dir(opt[:trust_dir], opt[:perms][:trust_dir])
+ verify_trust_dir opt[:trust_dir], opt[:perms][:trust_dir]
- # if we're saving the key, then write it out
- if opt[:save_key]
+ if opt[:save_key] then
path[:key] = opt[:save_key_path] || (opt[:output_fmt] % 'private_key')
- File.open(path[:key], 'wb') do |file|
- file.chmod(opt[:perms][:signing_key])
- file.write(key.to_pem)
+
+ open path[:key], 'wb' do |io|
+ io.chmod opt[:perms][:signing_key]
+ io.write key.to_pem
end
end
- # build self-signed public cert from key
- cert = build_cert(name, key, opt)
+ cert = build_cert name, key, opt
- # if we're saving the cert, then write it out
- if opt[:save_cert]
+ if opt[:save_cert] then
path[:cert] = opt[:save_cert_path] || (opt[:output_fmt] % 'public_cert')
- File.open(path[:cert], 'wb') do |file|
- file.chmod(opt[:perms][:signing_cert])
- file.write(cert.to_pem)
+
+ open path[:cert], 'wb' do |file|
+ file.chmod opt[:perms][:signing_cert]
+ file.write cert.to_pem
end
end
- # return key, cert, and paths (if applicable)
{ :key => key, :cert => cert,
:key_path => path[:key], :cert_path => path[:cert] }
end
- #
+ ##
+ # Turns +email_address+ into an OpenSSL::X509::Name
+
+ def self.email_to_name email_address, munge_re
+ cn, dcs = email_address.split '@'
+
+ dcs = dcs.split '.'
+
+ cn = cn.gsub munge_re, '_'
+
+ dcs = dcs.map do |dc|
+ dc.gsub munge_re, '_'
+ end
+
+ name = "CN=#{cn}/" << dcs.map { |dc| "DC=#{dc}" }.join('/')
+
+ OpenSSL::X509::Name.parse name
+ end
+
+ ##
# Add certificate to trusted cert list.
#
# Note: At the moment these are stored in OPT[:trust_dir], although that
# directory may change in the future.
- #
+
def self.add_trusted_cert(cert, opt = {})
opt = OPT.merge(opt)
@@ -743,11 +780,13 @@ module Gem::Security
nil
end
- #
+ ##
# Basic OpenSSL-based package signing class.
- #
+
class Signer
- attr_accessor :key, :cert_chain
+
+ attr_accessor :cert_chain
+ attr_accessor :key
def initialize(key, cert_chain)
Gem.ensure_ssl_available
@@ -774,13 +813,14 @@ module Gem::Security
end
end
- #
+ ##
# Sign data with given digest algorithm
- #
+
def sign(data)
@key.sign(@algo.new, data)
end
end
+
end
diff --git a/lib/rubygems/server.rb b/lib/rubygems/server.rb
index 2c617ff144..47fa7c562d 100644
--- a/lib/rubygems/server.rb
+++ b/lib/rubygems/server.rb
@@ -1,5 +1,4 @@
require 'webrick'
-require 'yaml'
require 'zlib'
require 'erb'
@@ -17,10 +16,10 @@ require 'rubygems/doc_manager'
# name/version/platform index
# * "/quick/" - Individual gemspecs
# * "/gems" - Direct access to download the installable gems
+# * "/rdoc?q=" - Search for installed rdoc documentation
# * legacy indexes:
# * "/Marshal.#{Gem.marshal_version}" - Full SourceIndex dump of metadata
# for installed gems
-# * "/yaml" - YAML dump of metadata for installed gems - deprecated
#
# == Usage
#
@@ -32,9 +31,22 @@ require 'rubygems/doc_manager'
class Gem::Server
+ attr_reader :spec_dirs
+
+ include ERB::Util
include Gem::UserInteraction
- DOC_TEMPLATE = <<-'WEBPAGE'
+ SEARCH = <<-SEARCH
+ <form class="headerSearch" name="headerSearchForm" method="get" action="/rdoc">
+ <div id="search" style="float:right">
+ <label for="q">Filter/Search</label>
+ <input id="q" type="text" style="width:10em" name="q">
+ <button type="submit" style="display:none"></button>
+ </div>
+ </form>
+ SEARCH
+
+ DOC_TEMPLATE = <<-'DOC_TEMPLATE'
<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html
PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
@@ -47,6 +59,7 @@ class Gem::Server
</head>
<body>
<div id="fileHeader">
+<%= SEARCH %>
<h1>RubyGems Documentation Index</h1>
</div>
<!-- banner header -->
@@ -62,47 +75,47 @@ class Gem::Server
<dl>
<% values["specs"].each do |spec| %>
- <dt>
- <% if spec["first_name_entry"] then %>
- <a name="<%=spec["name"]%>"></a>
- <% end %>
-
- <b><%=spec["name"]%> <%=spec["version"]%></b>
-
- <% if spec["rdoc_installed"] then %>
- <a href="<%=spec["doc_path"]%>">[rdoc]</a>
- <% else %>
- <span title="rdoc not installed">[rdoc]</span>
- <% end %>
-
- <% if spec["homepage"] then %>
- <a href="<%=spec["homepage"]%>" title="<%=spec["homepage"]%>">[www]</a>
- <% else %>
- <span title="no homepage available">[www]</span>
- <% end %>
-
- <% if spec["has_deps"] then %>
- - depends on
- <%= spec["dependencies"].map { |v| "<a href=\"##{v["name"]}\">#{v["name"]}</a>" }.join ', ' %>.
- <% end %>
- </dt>
- <dd>
- <%=spec["summary"]%>
- <% if spec["executables"] then %>
- <br/>
-
- <% if spec["only_one_executable"] then %>
- Executable is
- <% else %>
- Executables are
- <%end%>
-
- <%= spec["executables"].map { |v| "<span class=\"context-item-name\">#{v["executable"]}</span>"}.join ', ' %>.
-
- <%end%>
- <br/>
- <br/>
- </dd>
+ <dt>
+ <% if spec["first_name_entry"] then %>
+ <a name="<%=spec["name"]%>"></a>
+ <% end %>
+
+ <b><%=spec["name"]%> <%=spec["version"]%></b>
+
+ <% if spec["rdoc_installed"] then %>
+ <a href="<%=spec["doc_path"]%>">[rdoc]</a>
+ <% else %>
+ <span title="rdoc not installed">[rdoc]</span>
+ <% end %>
+
+ <% if spec["homepage"] then %>
+ <a href="<%=spec["homepage"]%>" title="<%=spec["homepage"]%>">[www]</a>
+ <% else %>
+ <span title="no homepage available">[www]</span>
+ <% end %>
+
+ <% if spec["has_deps"] then %>
+ - depends on
+ <%= spec["dependencies"].map { |v| "<a href=\"##{v["name"]}\">#{v["name"]}</a>" }.join ', ' %>.
+ <% end %>
+ </dt>
+ <dd>
+ <%=spec["summary"]%>
+ <% if spec["executables"] then %>
+ <br/>
+
+ <% if spec["only_one_executable"] then %>
+ Executable is
+ <% else %>
+ Executables are
+ <%end%>
+
+ <%= spec["executables"].map { |v| "<span class=\"context-item-name\">#{v["executable"]}</span>"}.join ', ' %>.
+
+ <%end%>
+ <br/>
+ <br/>
+ </dd>
<% end %>
</dl>
@@ -114,10 +127,10 @@ class Gem::Server
</div>
</body>
</html>
- WEBPAGE
+ DOC_TEMPLATE
# CSS is copy & paste from rdoc-style.css, RDoc V1.0.1 - 20041108
- RDOC_CSS = <<-RDOCCSS
+ RDOC_CSS = <<-RDOC_CSS
body {
font-family: Verdana,Arial,Helvetica,sans-serif;
font-size: 90%;
@@ -325,36 +338,131 @@ div.method-source-code pre { color: #ffdead; overflow: hidden; }
.ruby-comment { color: #b22222; font-weight: bold; background: transparent; }
.ruby-regexp { color: #ffa07a; background: transparent; }
.ruby-value { color: #7fffd4; background: transparent; }
- RDOCCSS
+ RDOC_CSS
+
+ RDOC_NO_DOCUMENTATION = <<-'NO_DOC'
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+ <head>
+ <title>Found documentation</title>
+ <link rel="stylesheet" href="gem-server-rdoc-style.css" type="text/css" media="screen" />
+ </head>
+ <body>
+ <div id="fileHeader">
+<%= SEARCH %>
+ <h1>No documentation found</h1>
+ </div>
+
+ <div id="bodyContent">
+ <div id="contextContent">
+ <div id="description">
+ <p>No gems matched <%= h query.inspect %></p>
+
+ <p>
+ Back to <a href="/">complete gem index</a>
+ </p>
+
+ </div>
+ </div>
+ </div>
+ <div id="validator-badges">
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
+ </div>
+ </body>
+</html>
+ NO_DOC
+
+ RDOC_SEARCH_TEMPLATE = <<-'RDOC_SEARCH'
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+ <head>
+ <title>Found documentation</title>
+ <link rel="stylesheet" href="gem-server-rdoc-style.css" type="text/css" media="screen" />
+ </head>
+ <body>
+ <div id="fileHeader">
+<%= SEARCH %>
+ <h1>Found documentation</h1>
+ </div>
+ <!-- banner header -->
+
+ <div id="bodyContent">
+ <div id="contextContent">
+ <div id="description">
+ <h1>Summary</h1>
+ <p><%=doc_items.length%> documentation topics found.</p>
+ <h1>Topics</h1>
+
+ <dl>
+ <% doc_items.each do |doc_item| %>
+ <dt>
+ <b><%=doc_item[:name]%></b>
+ <a href="<%=doc_item[:url]%>">[rdoc]</a>
+ </dt>
+ <dd>
+ <%=doc_item[:summary]%>
+ <br/>
+ <br/>
+ </dd>
+ <% end %>
+ </dl>
+
+ <p>
+ Back to <a href="/">complete gem index</a>
+ </p>
+
+ </div>
+ </div>
+ </div>
+ <div id="validator-badges">
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
+ </div>
+ </body>
+</html>
+ RDOC_SEARCH
def self.run(options)
- new(options[:gemdir], options[:port], options[:daemon]).run
+ new(options[:gemdir], options[:port], options[:daemon],
+ options[:launch], options[:addresses]).run
end
- def initialize(gem_dir, port, daemon)
+ ##
+ # Only the first directory in gem_dirs is used for serving gems
+
+ def initialize(gem_dirs, port, daemon, launch = nil, addresses = nil)
Socket.do_not_reverse_lookup = true
- @gem_dir = gem_dir
+ @gem_dirs = Array gem_dirs
@port = port
@daemon = daemon
+ @launch = launch
+ @addresses = addresses
logger = WEBrick::Log.new nil, WEBrick::BasicLog::FATAL
@server = WEBrick::HTTPServer.new :DoNotListen => true, :Logger => logger
- @spec_dir = File.join @gem_dir, 'specifications'
+ @spec_dirs = @gem_dirs.map do |gem_dir|
+ spec_dir = File.join gem_dir, 'specifications'
+
+ unless File.directory? spec_dir then
+ raise ArgumentError, "#{gem_dir} does not appear to be a gem repository"
+ end
- unless File.directory? @spec_dir then
- raise ArgumentError, "#{@gem_dir} does not appear to be a gem repository"
+ spec_dir
end
- @source_index = Gem::SourceIndex.from_gems_in @spec_dir
+ Gem::Specification.dirs = @gem_dirs
end
def Marshal(req, res)
- @source_index.refresh!
+ Gem::Specification.reset
- res['date'] = File.stat(@spec_dir).mtime
+ add_date res
- index = Marshal.dump @source_index
+ index = Gem::Deprecate.skip_during { Marshal.dump Gem.source_index }
if req.request_method == 'HEAD' then
res['content-length'] = index.length
@@ -371,16 +479,23 @@ div.method-source-code pre { color: #ffdead; overflow: hidden; }
res.body << index
end
+ def add_date res
+ res['date'] = @spec_dirs.map do |spec_dir|
+ File.stat(spec_dir).mtime
+ end.max
+ end
+
def latest_specs(req, res)
- @source_index.refresh!
+ Gem::Specification.reset
res['content-type'] = 'application/x-gzip'
- res['date'] = File.stat(@spec_dir).mtime
+ add_date res
+
+ latest_specs = Gem::Specification.latest_specs
- specs = @source_index.latest_specs.sort.map do |spec|
- platform = spec.original_platform
- platform = Gem::Platform::RUBY if platform.nil?
+ specs = latest_specs.sort.map do |spec|
+ platform = spec.original_platform || Gem::Platform::RUBY
[spec.name, spec.version, platform]
end
@@ -400,35 +515,52 @@ div.method-source-code pre { color: #ffdead; overflow: hidden; }
end
end
+ ##
+ # Creates server sockets based on the addresses option. If no addresses
+ # were given a server socket for all interfaces is created.
+
+ def listen addresses = @addresses
+ addresses = [nil] unless addresses
+
+ listeners = 0
+
+ addresses.each do |address|
+ begin
+ @server.listen address, @port
+ @server.listeners[listeners..-1].each do |listener|
+ host, port = listener.addr.values_at 2, 1
+ host = "[#{host}]" if host =~ /:/ # we don't reverse lookup
+ say "Server started at http://#{host}:#{port}"
+ end
+
+ listeners = @server.listeners.length
+ rescue SystemCallError
+ next
+ end
+ end
+
+ if @server.listeners.empty? then
+ say "Unable to start a server."
+ say "Check for running servers or your --bind and --port arguments"
+ terminate_interaction 1
+ end
+ end
+
def quick(req, res)
- @source_index.refresh!
+ Gem::Specification.reset
res['content-type'] = 'text/plain'
- res['date'] = File.stat(@spec_dir).mtime
+ add_date res
case req.request_uri.path
- when '/quick/index' then
- res.body << @source_index.map { |name,| name }.sort.join("\n")
- when '/quick/index.rz' then
- index = @source_index.map { |name,| name }.sort.join("\n")
- res['content-type'] = 'application/x-deflate'
- res.body << Gem.deflate(index)
- when '/quick/latest_index' then
- index = @source_index.latest_specs.map { |spec| spec.full_name }
- res.body << index.sort.join("\n")
- when '/quick/latest_index.rz' then
- index = @source_index.latest_specs.map { |spec| spec.full_name }
- res['content-type'] = 'application/x-deflate'
- res.body << Gem.deflate(index.sort.join("\n"))
when %r|^/quick/(Marshal.#{Regexp.escape Gem.marshal_version}/)?(.*?)-([0-9.]+)(-.*?)?\.gemspec\.rz$| then
- dep = Gem::Dependency.new $2, $3
- specs = @source_index.search dep
- marshal_format = $1
+ marshal_format, name, version, platform = $1, $2, $3, $4
+ specs = Gem::Specification.find_all_by_name name, version
- selector = [$2, $3, $4].map { |s| s.inspect }.join ' '
+ selector = [name, version, platform].map(&:inspect).join ' '
- platform = if $4 then
- Gem::Platform.new $4.sub(/^-/, '')
+ platform = if platform then
+ Gem::Platform.new platform.sub(/^-/, '')
else
Gem::Platform::RUBY
end
@@ -444,9 +576,6 @@ div.method-source-code pre { color: #ffdead; overflow: hidden; }
elsif marshal_format then
res['content-type'] = 'application/x-deflate'
res.body << Gem.deflate(Marshal.dump(specs.first))
- else # deprecated YAML format
- res['content-type'] = 'application/x-deflate'
- res.body << Gem.deflate(specs.first.to_yaml)
end
else
raise WEBrick::HTTPStatus::NotFound, "`#{req.path}' not found."
@@ -454,8 +583,8 @@ div.method-source-code pre { color: #ffdead; overflow: hidden; }
end
def root(req, res)
- @source_index.refresh!
- res['date'] = File.stat(@spec_dir).mtime
+ Gem::Specification.reset
+ add_date res
raise WEBrick::HTTPStatus::NotFound, "`#{req.path}' not found." unless
req.path == '/'
@@ -463,13 +592,15 @@ div.method-source-code pre { color: #ffdead; overflow: hidden; }
specs = []
total_file_count = 0
- @source_index.each do |path, spec|
+ Gem::Specification.each do |spec|
total_file_count += spec.files.size
- deps = spec.dependencies.map do |dep|
- { "name" => dep.name,
+ deps = spec.dependencies.map { |dep|
+ {
+ "name" => dep.name,
"type" => dep.type,
- "version" => dep.version_requirements.to_s, }
- end
+ "version" => dep.requirement.to_s,
+ }
+ }
deps = deps.sort_by { |dep| [dep["name"].downcase, dep["version"]] }
deps.last["is_last"] = true unless deps.empty?
@@ -499,16 +630,16 @@ div.method-source-code pre { color: #ffdead; overflow: hidden; }
specs << {
"authors" => "Chad Fowler, Rich Kilmer, Jim Weirich, Eric Hodel and others",
"dependencies" => [],
- "doc_path" => "/doc_root/rubygems-#{Gem::RubyGemsVersion}/rdoc/index.html",
+ "doc_path" => "/doc_root/rubygems-#{Gem::VERSION}/rdoc/index.html",
"executables" => [{"executable" => 'gem', "is_last" => true}],
"only_one_executable" => true,
- "full_name" => "rubygems-#{Gem::RubyGemsVersion}",
+ "full_name" => "rubygems-#{Gem::VERSION}",
"has_deps" => false,
- "homepage" => "http://rubygems.org/",
+ "homepage" => "http://docs.rubygems.org/",
"name" => 'rubygems',
"rdoc_installed" => true,
"summary" => "RubyGems itself",
- "version" => Gem::RubyGemsVersion,
+ "version" => Gem::VERSION,
}
specs = specs.sort_by { |spec| [spec["name"].downcase, spec["version"]] }
@@ -529,19 +660,101 @@ div.method-source-code pre { color: #ffdead; overflow: hidden; }
values = { "gem_count" => specs.size.to_s, "specs" => specs,
"total_file_count" => total_file_count.to_s }
+ # suppress 1.9.3dev warning about unused variable
+ values = values
+
result = template.result binding
res.body = result
end
- def run
- @server.listen nil, @port
+ ##
+ # Can be used for quick navigation to the rdoc documentation. You can then
+ # define a search shortcut for your browser. E.g. in Firefox connect
+ # 'shortcut:rdoc' to http://localhost:8808/rdoc?q=%s template. Then you can
+ # directly open the ActionPack documentation by typing 'rdoc actionp'. If
+ # there are multiple hits for the search term, they are presented as a list
+ # with links.
+ #
+ # Search algorithm aims for an intuitive search:
+ # 1. first try to find the gems and documentation folders which name
+ # starts with the search term
+ # 2. search for entries, that *contain* the search term
+ # 3. show all the gems
+ #
+ # If there is only one search hit, user is immediately redirected to the
+ # documentation for the particular gem, otherwise a list with results is
+ # shown.
+ #
+ # === Additional trick - install documentation for ruby core
+ #
+ # Note: please adjust paths accordingly use for example 'locate yaml.rb' and
+ # 'gem environment' to identify directories, that are specific for your
+ # local installation
+ #
+ # 1. install ruby sources
+ # cd /usr/src
+ # sudo apt-get source ruby
+ #
+ # 2. generate documentation
+ # rdoc -o /usr/lib/ruby/gems/1.8/doc/core/rdoc \
+ # /usr/lib/ruby/1.8 ruby1.8-1.8.7.72
+ #
+ # By typing 'rdoc core' you can now access the core documentation
+
+ def rdoc(req, res)
+ query = req.query['q']
+ show_rdoc_for_pattern("#{query}*", res) && return
+ show_rdoc_for_pattern("*#{query}*", res) && return
+
+ template = ERB.new RDOC_NO_DOCUMENTATION
- say "Starting gem server on http://localhost:#{@port}/"
+ res['content-type'] = 'text/html'
+ res.body = template.result binding
+ end
- WEBrick::Daemon.start if @daemon
+ ##
+ # Returns true and prepares http response, if rdoc for the requested gem
+ # name pattern was found.
+ #
+ # The search is based on the file system content, not on the gems metadata.
+ # This allows additional documentation folders like 'core' for the ruby core
+ # documentation - just put it underneath the main doc folder.
+
+ def show_rdoc_for_pattern(pattern, res)
+ found_gems = Dir.glob("{#{@gem_dirs.join ','}}/doc/#{pattern}").select {|path|
+ File.exist? File.join(path, 'rdoc/index.html')
+ }
+ case found_gems.length
+ when 0
+ return false
+ when 1
+ new_path = File.basename(found_gems[0])
+ res.status = 302
+ res['Location'] = "/doc_root/#{new_path}/rdoc/index.html"
+ return true
+ else
+ doc_items = []
+ found_gems.each do |file_name|
+ base_name = File.basename(file_name)
+ doc_items << {
+ :name => base_name,
+ :url => "/doc_root/#{base_name}/rdoc/index.html",
+ :summary => ''
+ }
+ end
- @server.mount_proc "/yaml", method(:yaml)
- @server.mount_proc "/yaml.Z", method(:yaml)
+ template = ERB.new(RDOC_SEARCH_TEMPLATE)
+ res['content-type'] = 'text/html'
+ result = template.result binding
+ res.body = result
+ return true
+ end
+ end
+
+ def run
+ listen
+
+ WEBrick::Daemon.start if @daemon
@server.mount_proc "/Marshal.#{Gem.marshal_version}", method(:Marshal)
@server.mount_proc "/Marshal.#{Gem.marshal_version}.Z", method(:Marshal)
@@ -558,32 +771,35 @@ div.method-source-code pre { color: #ffdead; overflow: hidden; }
@server.mount_proc("/gem-server-rdoc-style.css") do |req, res|
res['content-type'] = 'text/css'
- res['date'] = File.stat(@spec_dir).mtime
+ add_date res
res.body << RDOC_CSS
end
@server.mount_proc "/", method(:root)
+ @server.mount_proc "/rdoc", method(:rdoc)
+
paths = { "/gems" => "/cache/", "/doc_root" => "/doc/" }
paths.each do |mount_point, mount_dir|
@server.mount(mount_point, WEBrick::HTTPServlet::FileHandler,
- File.join(@gem_dir, mount_dir), true)
+ File.join(@gem_dirs.first, mount_dir), true)
end
trap("INT") { @server.shutdown; exit! }
trap("TERM") { @server.shutdown; exit! }
+ launch if @launch
+
@server.start
end
def specs(req, res)
- @source_index.refresh!
+ Gem::Specification.reset
- res['date'] = File.stat(@spec_dir).mtime
+ add_date res
- specs = @source_index.sort.map do |_, spec|
- platform = spec.original_platform
- platform = Gem::Platform::RUBY if platform.nil?
+ specs = Gem::Specification.sort_by(&:sort_obj).map do |spec|
+ platform = spec.original_platform || Gem::Platform::RUBY
[spec.name, spec.version, platform]
end
@@ -603,27 +819,14 @@ div.method-source-code pre { color: #ffdead; overflow: hidden; }
end
end
- def yaml(req, res)
- @source_index.refresh!
+ def launch
+ listeners = @server.listeners.map{|l| l.addr[2] }
- res['date'] = File.stat(@spec_dir).mtime
+ # TODO: 0.0.0.0 == any, not localhost.
+ host = listeners.any?{|l| l == '0.0.0.0'} ? 'localhost' : listeners.first
- index = @source_index.to_yaml
+ say "Launching browser to http://#{host}:#{@port}"
- if req.path =~ /Z$/ then
- res['content-type'] = 'application/x-deflate'
- index = Gem.deflate index
- else
- res['content-type'] = 'text/plain'
- end
-
- if req.request_method == 'HEAD' then
- res['content-length'] = index.length
- return
- end
-
- res.body << index
+ system("#{@launch} http://#{host}:#{@port}")
end
-
end
-
diff --git a/lib/rubygems/source_index.rb b/lib/rubygems/source_index.rb
index 57f6c30ae6..1fe92c0a80 100644
--- a/lib/rubygems/source_index.rb
+++ b/lib/rubygems/source_index.rb
@@ -4,12 +4,8 @@
# See LICENSE.txt for permissions.
#++
-require 'rubygems'
-require 'rubygems/user_interaction'
require 'rubygems/specification'
-module Gem
- autoload(:SpecFetcher, 'rubygems/spec_fetcher')
-end
+require 'rubygems/deprecate'
##
# The SourceIndex object indexes all the gems available from a
@@ -26,8 +22,6 @@ class Gem::SourceIndex
include Enumerable
- include Gem::UserInteraction
-
attr_reader :gems # :nodoc:
##
@@ -35,90 +29,86 @@ class Gem::SourceIndex
attr_accessor :spec_dirs
- class << self
- include Gem::UserInteraction
-
- ##
- # Factory method to construct a source index instance for a given
- # path.
- #
- # deprecated::
- # If supplied, from_installed_gems will act just like
- # +from_gems_in+. This argument is deprecated and is provided
- # just for backwards compatibility, and should not generally
- # be used.
- #
- # return::
- # SourceIndex instance
-
- def from_installed_gems(*deprecated)
- if deprecated.empty?
- from_gems_in(*installed_spec_directories)
- else
- from_gems_in(*deprecated) # HACK warn
- end
+ ##
+ # Factory method to construct a source index instance for a given
+ # path.
+ #
+ # deprecated::
+ # If supplied, from_installed_gems will act just like
+ # +from_gems_in+. This argument is deprecated and is provided
+ # just for backwards compatibility, and should not generally
+ # be used.
+ #
+ # return::
+ # SourceIndex instance
+
+ def self.from_installed_gems(*deprecated)
+ if deprecated.empty?
+ from_gems_in(*installed_spec_directories)
+ else
+ warn "NOTE: from_installed_gems(arg) is deprecated. From #{caller.first}"
+ from_gems_in(*deprecated) # HACK warn
end
+ end
- ##
- # Returns a list of directories from Gem.path that contain specifications.
+ ##
+ # Returns a list of directories from Gem.path that contain specifications.
- def installed_spec_directories
- Gem.path.collect { |dir| File.join(dir, "specifications") }
- end
+ def self.installed_spec_directories
+ # TODO: move to Gem::Utils
+ Gem.path.collect { |dir| File.join(dir, "specifications") }
+ end
- ##
- # Creates a new SourceIndex from the ruby format gem specifications in
- # +spec_dirs+.
+ ##
+ # Creates a new SourceIndex from the ruby format gem specifications in
+ # +spec_dirs+.
- def from_gems_in(*spec_dirs)
- source_index = new
- source_index.spec_dirs = spec_dirs
- source_index.refresh!
- end
+ def self.from_gems_in(*spec_dirs)
+ new spec_dirs
+ end
- ##
- # Loads a ruby-format specification from +file_name+ and returns the
- # loaded spec.
+ ##
+ # Loads a ruby-format specification from +file_name+ and returns the
+ # loaded spec.
- def load_specification(file_name)
- begin
- spec_code = if RUBY_VERSION < '1.9' then
- File.read file_name
- else
- File.read file_name, :encoding => 'UTF-8'
- end.untaint
+ def self.load_specification(file_name)
+ Gem::Deprecate.skip_during do
+ Gem::Specification.load Gem::Path.new(file_name)
+ end
+ end
- gemspec = eval spec_code, binding, file_name
+ ##
+ # Constructs a source index instance from the provided specifications, which
+ # is a Hash of gem full names and Gem::Specifications.
- if gemspec.is_a?(Gem::Specification)
- gemspec.loaded_from = file_name
- return gemspec
- end
- alert_warning "File '#{file_name}' does not evaluate to a gem specification"
- rescue SignalException, SystemExit
- raise
- rescue SyntaxError => e
- alert_warning e
- alert_warning spec_code
- rescue Exception => e
- alert_warning "#{e.inspect}\n#{spec_code}"
- alert_warning "Invalid .gemspec format in '#{file_name}'"
+ def initialize specs_or_dirs = []
+ @gems = {}
+ @spec_dirs = nil
+
+ case specs_or_dirs
+ when Hash then
+ specs_or_dirs.each do |full_name, spec|
+ add_spec spec
end
- return nil
+ when Array, String then
+ self.spec_dirs = Array(specs_or_dirs)
+ refresh!
+ else
+ arg = specs_or_dirs.inspect
+ warn "NOTE: SourceIndex.new(#{arg}) is deprecated; From #{caller.first}."
end
+ end
+ def all_gems
+ gems
end
- ##
- # Constructs a source index instance from the provided
- # specifications
- #
- # specifications::
- # [Hash] hash of [Gem name, Gem::Specification] pairs
+ def prerelease_gems
+ @gems.reject { |name, gem| !gem.version.prerelease? }
+ end
- def initialize(specifications={})
- @gems = specifications
- @spec_dirs = nil
+ def released_gems
+ @gems.reject { |name, gem| gem.version.prerelease? }
end
##
@@ -128,10 +118,12 @@ class Gem::SourceIndex
@gems.clear
spec_dirs.reverse_each do |spec_dir|
- spec_files = Dir.glob File.join(spec_dir, '*.gemspec')
+ spec_files = Dir[File.join(spec_dir, "*.gemspec")]
spec_files.each do |spec_file|
- gemspec = self.class.load_specification spec_file.untaint
+ gemspec = Gem::Deprecate.skip_during do
+ Gem::Specification.load spec_file
+ end
add_spec gemspec if gemspec
end
end
@@ -140,10 +132,10 @@ class Gem::SourceIndex
end
##
- # Returns an Array specifications for the latest versions of each gem in
- # this index.
+ # Returns an Array specifications for the latest released versions
+ # of each gem in this index.
- def latest_specs
+ def latest_specs(include_prerelease=false)
result = Hash.new { |h,k| h[k] = [] }
latest = {}
@@ -152,6 +144,7 @@ class Gem::SourceIndex
curr_ver = spec.version
prev_ver = latest.key?(name) ? latest[name].version : nil
+ next if !include_prerelease && curr_ver.prerelease?
next unless prev_ver.nil? or curr_ver >= prev_ver or
latest[name].platform != Gem::Platform::RUBY
@@ -174,18 +167,36 @@ class Gem::SourceIndex
end
##
+ # An array including only the prerelease gemspecs
+
+ def prerelease_specs
+ prerelease_gems.values
+ end
+
+ ##
+ # An array including only the released gemspecs
+
+ def released_specs
+ released_gems.values
+ end
+
+ ##
# Add a gem specification to the source index.
- def add_spec(gem_spec)
- @gems[gem_spec.full_name] = gem_spec
+ def add_spec(gem_spec, name = gem_spec.full_name)
+ # No idea why, but the Indexer wants to insert them using original_name
+ # instead of full_name. So we make it an optional arg.
+ @gems[name] = gem_spec
end
##
# Add gem specifications to the source index.
def add_specs(*gem_specs)
- gem_specs.each do |spec|
- add_spec spec
+ Gem::Deprecate.skip_during do
+ gem_specs.each do |spec|
+ add_spec spec
+ end
end
end
@@ -193,7 +204,7 @@ class Gem::SourceIndex
# Remove a gem specification named +full_name+.
def remove_spec(full_name)
- @gems.delete(full_name)
+ @gems.delete full_name
end
##
@@ -215,18 +226,18 @@ class Gem::SourceIndex
# change in the index.
def index_signature
- require 'rubygems/digest/sha2'
+ require 'digest'
- Gem::SHA256.new.hexdigest(@gems.keys.sort.join(',')).to_s
+ Digest::SHA256.new.hexdigest(@gems.keys.sort.join(',')).to_s
end
##
# The signature for the given gem specification.
def gem_signature(gem_full_name)
- require 'rubygems/digest/sha2'
+ require 'digest'
- Gem::SHA256.new.hexdigest(@gems[gem_full_name].to_yaml).to_s
+ Digest::SHA256.new.hexdigest(@gems[gem_full_name].to_yaml).to_s
end
def size
@@ -237,9 +248,12 @@ class Gem::SourceIndex
##
# Find a gem by an exact match on the short name.
- def find_name(gem_name, version_requirement = Gem::Requirement.default)
- dep = Gem::Dependency.new(/^#{gem_name}$/, version_requirement)
- search dep
+ def find_name(gem_name, requirement = Gem::Requirement.default)
+ dep = Gem::Dependency.new gem_name, requirement
+
+ Gem::Deprecate.skip_during do
+ search dep
+ end
end
##
@@ -251,21 +265,22 @@ class Gem::SourceIndex
# +gem_pattern+, and a Gem::Requirement for +platform_only+. This
# behavior is deprecated and will be removed.
- def search(gem_pattern, platform_only = false)
- version_requirement = nil
- only_platform = false
+ def search(gem_pattern, platform_or_requirement = false)
+ requirement = nil
+ only_platform = false # FIX: WTF is this?!?
# TODO - Remove support and warning for legacy arguments after 2008/11
unless Gem::Dependency === gem_pattern
- warn "#{Gem.location_of_caller.join ':'}:Warning: Gem::SourceIndex#search support for #{gem_pattern.class} patterns is deprecated"
+ warn "#{Gem.location_of_caller.join ':'}:Warning: Gem::SourceIndex#search support for #{gem_pattern.class} patterns is deprecated, use #find_name"
end
case gem_pattern
when Regexp then
- version_requirement = platform_only || Gem::Requirement.default
+ requirement = platform_or_requirement || Gem::Requirement.default
when Gem::Dependency then
- only_platform = platform_only
- version_requirement = gem_pattern.version_requirements
+ only_platform = platform_or_requirement
+ requirement = gem_pattern.requirement
+
gem_pattern = if Regexp === gem_pattern.name then
gem_pattern.name
elsif gem_pattern.name.empty? then
@@ -274,17 +289,17 @@ class Gem::SourceIndex
/^#{Regexp.escape gem_pattern.name}$/
end
else
- version_requirement = platform_only || Gem::Requirement.default
+ requirement = platform_or_requirement || Gem::Requirement.default
gem_pattern = /#{gem_pattern}/i
end
- unless Gem::Requirement === version_requirement then
- version_requirement = Gem::Requirement.create version_requirement
+ unless Gem::Requirement === requirement then
+ requirement = Gem::Requirement.create requirement
end
specs = @gems.values.select do |spec|
spec.name =~ gem_pattern and
- version_requirement.satisfied_by? spec.version
+ requirement.satisfied_by? spec.version
end
if only_platform then
@@ -316,19 +331,9 @@ class Gem::SourceIndex
latest_specs.each do |local|
dependency = Gem::Dependency.new local.name, ">= #{local.version}"
- begin
- fetcher = Gem::SpecFetcher.fetcher
- remotes = fetcher.find_matching dependency
- remotes = remotes.map { |(name, version,_),_| version }
- rescue Gem::RemoteFetcher::FetchError => e
- raise unless fetcher.warn_legacy e do
- require 'rubygems/source_info_cache'
-
- specs = Gem::SourceInfoCache.search_with_source dependency, true
-
- remotes = specs.map { |spec,| spec.version }
- end
- end
+ fetcher = Gem::SpecFetcher.fetcher
+ remotes = fetcher.find_matching dependency
+ remotes = remotes.map { |(_, version, _), _| version }
latest = remotes.sort.last
@@ -338,43 +343,6 @@ class Gem::SourceIndex
outdateds
end
- ##
- # Updates this SourceIndex from +source_uri+. If +all+ is false, only the
- # latest gems are fetched.
-
- def update(source_uri, all)
- source_uri = URI.parse source_uri unless URI::Generic === source_uri
- source_uri.path += '/' unless source_uri.path =~ /\/$/
-
- use_incremental = false
-
- begin
- gem_names = fetch_quick_index source_uri, all
- remove_extra gem_names
- missing_gems = find_missing gem_names
-
- return false if missing_gems.size.zero?
-
- say "Missing metadata for #{missing_gems.size} gems" if
- missing_gems.size > 0 and Gem.configuration.really_verbose
-
- use_incremental = missing_gems.size <= Gem.configuration.bulk_threshold
- rescue Gem::OperationNotSupportedError => ex
- alert_error "Falling back to bulk fetch: #{ex.message}" if
- Gem.configuration.really_verbose
- use_incremental = false
- end
-
- if use_incremental then
- update_with_missing(source_uri, missing_gems)
- else
- new_index = fetch_bulk_index(source_uri)
- @gems.replace(new_index.gems)
- end
-
- true
- end
-
def ==(other) # :nodoc:
self.class === other and @gems == other.gems
end
@@ -382,178 +350,57 @@ class Gem::SourceIndex
def dump
Marshal.dump(self)
end
-
- private
-
- def fetcher
- require 'rubygems/remote_fetcher'
-
- Gem::RemoteFetcher.fetcher
- end
-
- def fetch_index_from(source_uri)
- @fetch_error = nil
-
- indexes = %W[
- Marshal.#{Gem.marshal_version}.Z
- Marshal.#{Gem.marshal_version}
- yaml.Z
- yaml
- ]
-
- indexes.each do |name|
- spec_data = nil
- index = source_uri + name
- begin
- spec_data = fetcher.fetch_path index
- spec_data = unzip(spec_data) if name =~ /\.Z$/
-
- if name =~ /Marshal/ then
- return Marshal.load(spec_data)
- else
- return YAML.load(spec_data)
- end
- rescue => e
- if Gem.configuration.really_verbose then
- alert_error "Unable to fetch #{name}: #{e.message}"
- end
-
- @fetch_error = e
- end
- end
-
- nil
- end
-
- def fetch_bulk_index(source_uri)
- say "Bulk updating Gem source index for: #{source_uri}" if
- Gem.configuration.verbose
-
- index = fetch_index_from(source_uri)
- if index.nil? then
- raise Gem::RemoteSourceException,
- "Error fetching remote gem cache: #{@fetch_error}"
- end
- @fetch_error = nil
- index
- end
-
- ##
- # Get the quick index needed for incremental updates.
-
- def fetch_quick_index(source_uri, all)
- index = all ? 'index' : 'latest_index'
-
- zipped_index = fetcher.fetch_path source_uri + "quick/#{index}.rz"
-
- unzip(zipped_index).split("\n")
- rescue ::Exception => e
- unless all then
- say "Latest index not found, using quick index" if
- Gem.configuration.really_verbose
-
- fetch_quick_index source_uri, true
- else
- raise Gem::OperationNotSupportedError,
- "No quick index found: #{e.message}"
- end
- end
-
- ##
- # Make a list of full names for all the missing gemspecs.
-
- def find_missing(spec_names)
- unless defined? @originals then
- @originals = {}
- each do |full_name, spec|
- @originals[spec.original_name] = spec
- end
- end
-
- spec_names.find_all { |full_name|
- @originals[full_name].nil?
- }
- end
-
- def remove_extra(spec_names)
- dictionary = spec_names.inject({}) { |h, k| h[k] = true; h }
- each do |name, spec|
- remove_spec name unless dictionary.include? spec.original_name
- end
- end
-
- ##
- # Unzip the given string.
-
- def unzip(string)
- require 'zlib'
- Gem.inflate string
- end
-
- ##
- # Tries to fetch Marshal representation first, then YAML
-
- def fetch_single_spec(source_uri, spec_name)
- @fetch_error = nil
-
- begin
- marshal_uri = source_uri + "quick/Marshal.#{Gem.marshal_version}/#{spec_name}.gemspec.rz"
- zipped = fetcher.fetch_path marshal_uri
- return Marshal.load(unzip(zipped))
- rescue => ex
- @fetch_error = ex
-
- if Gem.configuration.really_verbose then
- say "unable to fetch marshal gemspec #{marshal_uri}: #{ex.class} - #{ex}"
- end
- end
-
- begin
- yaml_uri = source_uri + "quick/#{spec_name}.gemspec.rz"
- zipped = fetcher.fetch_path yaml_uri
- return YAML.load(unzip(zipped))
- rescue => ex
- @fetch_error = ex
- if Gem.configuration.really_verbose then
- say "unable to fetch YAML gemspec #{yaml_uri}: #{ex.class} - #{ex}"
- end
- end
-
- nil
- end
-
- ##
- # Update the cached source index with the missing names.
-
- def update_with_missing(source_uri, missing_names)
- progress = ui.progress_reporter(missing_names.size,
- "Updating metadata for #{missing_names.size} gems from #{source_uri}")
- missing_names.each do |spec_name|
- gemspec = fetch_single_spec(source_uri, spec_name)
- if gemspec.nil? then
- ui.say "Failed to download spec #{spec_name} from #{source_uri}:\n" \
- "\t#{@fetch_error.message}"
- else
- add_spec gemspec
- progress.updated spec_name
- end
- @fetch_error = nil
- end
- progress.done
- progress.count
- end
-
end
+# :stopdoc:
module Gem
- # :stopdoc:
-
+ ##
# Cache is an alias for SourceIndex to allow older YAMLized source index
# objects to load properly.
+
Cache = SourceIndex
- # :startdoc:
+end
+
+class Gem::SourceIndex
+ extend Gem::Deprecate
+
+ deprecate :all_gems, :none, 2011, 10
+
+ deprecate :==, :none, 2011, 11 # noisy
+ deprecate :add_specs, :none, 2011, 11 # noisy
+ deprecate :each, :none, 2011, 11
+ deprecate :gems, :none, 2011, 11
+ deprecate :load_gems_in, :none, 2011, 11
+ deprecate :refresh!, :none, 2011, 11
+ deprecate :spec_dirs=, "Specification.dirs=", 2011, 11 # noisy
+ deprecate :add_spec, "Specification.add_spec", 2011, 11
+ deprecate :find_name, "Specification.find_by_name", 2011, 11
+ deprecate :gem_signature, :none, 2011, 11
+ deprecate :index_signature, :none, 2011, 11
+ deprecate :initialize, :none, 2011, 11
+ deprecate :latest_specs, "Specification.latest_specs", 2011, 11
+ deprecate :length, "Specification.all.length", 2011, 11
+ deprecate :outdated, :none, 2011, 11
+ deprecate :prerelease_gems, :none, 2011, 11
+ deprecate :prerelease_specs, :none, 2011, 11
+ deprecate :released_gems, :none, 2011, 11
+ deprecate :released_specs, :none, 2011, 11
+ deprecate :remove_spec, "Specification.remove_spec", 2011, 11
+ deprecate :search, :none, 2011, 11
+ deprecate :size, "Specification.all.size", 2011, 11
+ deprecate :spec_dirs, "Specification.dirs", 2011, 11
+ deprecate :specification, "Specification.find", 2011, 11
+
+ class << self
+ extend Gem::Deprecate
+ deprecate :from_gems_in, :none, 2011, 10
+ deprecate :from_installed_gems, :none, 2011, 10
+ deprecate :installed_spec_directories, "Specification.dirs", 2011, 11
+ deprecate :load_specification, :none, 2011, 10
+ end
end
+# :startdoc:
diff --git a/lib/rubygems/source_info_cache.rb b/lib/rubygems/source_info_cache.rb
deleted file mode 100644
index 4289cdb52a..0000000000
--- a/lib/rubygems/source_info_cache.rb
+++ /dev/null
@@ -1,393 +0,0 @@
-require 'fileutils'
-
-require 'rubygems'
-require 'rubygems/source_info_cache_entry'
-require 'rubygems/user_interaction'
-
-##
-# SourceInfoCache stores a copy of the gem index for each gem source.
-#
-# There are two possible cache locations, the system cache and the user cache:
-# * The system cache is preferred if it is writable or can be created.
-# * The user cache is used otherwise
-#
-# Once a cache is selected, it will be used for all operations.
-# SourceInfoCache will not switch between cache files dynamically.
-#
-# Cache data is a Hash mapping a source URI to a SourceInfoCacheEntry.
-#
-#--
-# To keep things straight, this is how the cache objects all fit together:
-#
-# Gem::SourceInfoCache
-# @cache_data = {
-# source_uri => Gem::SourceInfoCacheEntry
-# @size = source index size
-# @source_index = Gem::SourceIndex
-# ...
-# }
-
-class Gem::SourceInfoCache
-
- include Gem::UserInteraction
-
- ##
- # The singleton Gem::SourceInfoCache. If +all+ is true, a full refresh will
- # be performed if the singleton instance is being initialized.
-
- def self.cache(all = false)
- return @cache if @cache
- @cache = new
- @cache.refresh all if Gem.configuration.update_sources
- @cache
- end
-
- def self.cache_data
- cache.cache_data
- end
-
- ##
- # The name of the system cache file.
-
- def self.latest_system_cache_file
- File.join File.dirname(system_cache_file),
- "latest_#{File.basename system_cache_file}"
- end
-
- ##
- # The name of the latest user cache file.
-
- def self.latest_user_cache_file
- File.join File.dirname(user_cache_file),
- "latest_#{File.basename user_cache_file}"
- end
-
- ##
- # Reset all singletons, discarding any changes.
-
- def self.reset
- @cache = nil
- @system_cache_file = nil
- @user_cache_file = nil
- end
-
- ##
- # Search all source indexes. See Gem::SourceInfoCache#search.
-
- def self.search(*args)
- cache.search(*args)
- end
-
- ##
- # Search all source indexes returning the source_uri. See
- # Gem::SourceInfoCache#search_with_source.
-
- def self.search_with_source(*args)
- cache.search_with_source(*args)
- end
-
- ##
- # The name of the system cache file. (class method)
-
- def self.system_cache_file
- @system_cache_file ||= Gem.default_system_source_cache_dir
- end
-
- ##
- # The name of the user cache file.
-
- def self.user_cache_file
- @user_cache_file ||=
- ENV['GEMCACHE'] || Gem.default_user_source_cache_dir
- end
-
- def initialize # :nodoc:
- @cache_data = nil
- @cache_file = nil
- @dirty = false
- @only_latest = true
- end
-
- ##
- # The most recent cache data.
-
- def cache_data
- return @cache_data if @cache_data
- cache_file # HACK writable check
-
- @only_latest = true
-
- @cache_data = read_cache_data latest_cache_file
-
- @cache_data
- end
-
- ##
- # The name of the cache file.
-
- def cache_file
- return @cache_file if @cache_file
- @cache_file = (try_file(system_cache_file) or
- try_file(user_cache_file) or
- raise "unable to locate a writable cache file")
- end
-
- ##
- # Write the cache to a local file (if it is dirty).
-
- def flush
- write_cache if @dirty
- @dirty = false
- end
-
- def latest_cache_data
- latest_cache_data = {}
-
- cache_data.each do |repo, sice|
- latest = sice.source_index.latest_specs
-
- new_si = Gem::SourceIndex.new
- new_si.add_specs(*latest)
-
- latest_sice = Gem::SourceInfoCacheEntry.new new_si, sice.size
- latest_cache_data[repo] = latest_sice
- end
-
- latest_cache_data
- end
-
- ##
- # The name of the latest cache file.
-
- def latest_cache_file
- File.join File.dirname(cache_file), "latest_#{File.basename cache_file}"
- end
-
- ##
- # The name of the latest system cache file.
-
- def latest_system_cache_file
- self.class.latest_system_cache_file
- end
-
- ##
- # The name of the latest user cache file.
-
- def latest_user_cache_file
- self.class.latest_user_cache_file
- end
-
- ##
- # Merges the complete cache file into this Gem::SourceInfoCache.
-
- def read_all_cache_data
- if @only_latest then
- @only_latest = false
- all_data = read_cache_data cache_file
-
- cache_data.update all_data do |source_uri, latest_sice, all_sice|
- all_sice.source_index.gems.update latest_sice.source_index.gems
-
- Gem::SourceInfoCacheEntry.new all_sice.source_index, latest_sice.size
- end
-
- begin
- refresh true
- rescue Gem::RemoteFetcher::FetchError
- end
- end
- end
-
- ##
- # Reads cached data from +file+.
-
- def read_cache_data(file)
- # Marshal loads 30-40% faster from a String, and 2MB on 20061116 is small
- data = open file, 'rb' do |fp| fp.read end
- cache_data = Marshal.load data
-
- cache_data.each do |url, sice|
- next unless sice.is_a?(Hash)
- update
-
- cache = sice['cache']
- size = sice['size']
-
- if cache.is_a?(Gem::SourceIndex) and size.is_a?(Numeric) then
- new_sice = Gem::SourceInfoCacheEntry.new cache, size
- cache_data[url] = new_sice
- else # irreperable, force refetch.
- reset_cache_for url, cache_data
- end
- end
-
- cache_data
- rescue Errno::ENOENT
- {}
- rescue => e
- if Gem.configuration.really_verbose then
- say "Exception during cache_data handling: #{e.class} - #{e}"
- say "Cache file was: #{file}"
- say "\t#{e.backtrace.join "\n\t"}"
- end
-
- {}
- end
-
- ##
- # Refreshes each source in the cache from its repository. If +all+ is
- # false, only latest gems are updated.
-
- def refresh(all)
- Gem.sources.each do |source_uri|
- cache_entry = cache_data[source_uri]
- if cache_entry.nil? then
- cache_entry = Gem::SourceInfoCacheEntry.new nil, 0
- cache_data[source_uri] = cache_entry
- end
-
- update if cache_entry.refresh source_uri, all
- end
-
- flush
- end
-
- def reset_cache_for(url, cache_data)
- say "Reseting cache for #{url}" if Gem.configuration.really_verbose
-
- sice = Gem::SourceInfoCacheEntry.new Gem::SourceIndex.new, 0
- sice.refresh url, false # HACK may be unnecessary, see ::cache and #refresh
-
- cache_data[url] = sice
- cache_data
- end
-
- def reset_cache_data
- @cache_data = nil
- @only_latest = true
- end
-
- ##
- # Force cache file to be reset, useful for integration testing of rubygems
-
- def reset_cache_file
- @cache_file = nil
- end
-
- ##
- # Searches all source indexes. See Gem::SourceIndex#search for details on
- # +pattern+ and +platform_only+. If +all+ is set to true, the full index
- # will be loaded before searching.
-
- def search(pattern, platform_only = false, all = false)
- read_all_cache_data if all
-
- cache_data.map do |source_uri, sic_entry|
- next unless Gem.sources.include? source_uri
- # TODO - Remove this gunk after 2008/11
- unless pattern.kind_of?(Gem::Dependency)
- pattern = Gem::Dependency.new(pattern, Gem::Requirement.default)
- end
- sic_entry.source_index.search pattern, platform_only
- end.flatten.compact
- end
-
- # Searches all source indexes for +pattern+. If +only_platform+ is true,
- # only gems matching Gem.platforms will be selected. Returns an Array of
- # pairs containing the Gem::Specification found and the source_uri it was
- # found at.
- def search_with_source(pattern, only_platform = false, all = false)
- read_all_cache_data if all
-
- results = []
-
- cache_data.map do |source_uri, sic_entry|
- next unless Gem.sources.include? source_uri
-
- # TODO - Remove this gunk after 2008/11
- unless pattern.kind_of?(Gem::Dependency)
- pattern = Gem::Dependency.new(pattern, Gem::Requirement.default)
- end
-
- sic_entry.source_index.search(pattern, only_platform).each do |spec|
- results << [spec, source_uri]
- end
- end
-
- results
- end
-
- ##
- # Set the source info cache data directly. This is mainly used for unit
- # testing when we don't want to read a file system to grab the cached source
- # index information. The +hash+ should map a source URL into a
- # SourceInfoCacheEntry.
-
- def set_cache_data(hash)
- @cache_data = hash
- update
- end
-
- ##
- # The name of the system cache file.
-
- def system_cache_file
- self.class.system_cache_file
- end
-
- ##
- # Determine if +path+ is a candidate for a cache file. Returns +path+ if
- # it is, nil if not.
-
- def try_file(path)
- return path if File.writable? path
- return nil if File.exist? path
-
- dir = File.dirname path
-
- unless File.exist? dir then
- begin
- FileUtils.mkdir_p dir
- rescue RuntimeError, SystemCallError
- return nil
- end
- end
-
- return path if File.writable? dir
-
- nil
- end
-
- ##
- # Mark the cache as updated (i.e. dirty).
-
- def update
- @dirty = true
- end
-
- ##
- # The name of the user cache file.
-
- def user_cache_file
- self.class.user_cache_file
- end
-
- ##
- # Write data to the proper cache files.
-
- def write_cache
- if not File.exist?(cache_file) or not @only_latest then
- open cache_file, 'wb' do |io|
- io.write Marshal.dump(cache_data)
- end
- end
-
- open latest_cache_file, 'wb' do |io|
- io.write Marshal.dump(latest_cache_data)
- end
- end
-
- reset
-
-end
-
diff --git a/lib/rubygems/source_info_cache_entry.rb b/lib/rubygems/source_info_cache_entry.rb
deleted file mode 100644
index c3f75e5b99..0000000000
--- a/lib/rubygems/source_info_cache_entry.rb
+++ /dev/null
@@ -1,56 +0,0 @@
-require 'rubygems'
-require 'rubygems/source_index'
-require 'rubygems/remote_fetcher'
-
-##
-# Entries held by a SourceInfoCache.
-
-class Gem::SourceInfoCacheEntry
-
- ##
- # The source index for this cache entry.
-
- attr_reader :source_index
-
- ##
- # The size of the of the source entry. Used to determine if the
- # source index has changed.
-
- attr_reader :size
-
- ##
- # Create a cache entry.
-
- def initialize(si, size)
- @source_index = si || Gem::SourceIndex.new({})
- @size = size
- @all = false
- end
-
- def refresh(source_uri, all)
- begin
- marshal_uri = URI.join source_uri.to_s, "Marshal.#{Gem.marshal_version}"
- remote_size = Gem::RemoteFetcher.fetcher.fetch_size marshal_uri
- rescue Gem::RemoteSourceException
- yaml_uri = URI.join source_uri.to_s, 'yaml'
- remote_size = Gem::RemoteFetcher.fetcher.fetch_size yaml_uri
- end
-
- # TODO Use index_signature instead of size?
- return false if @size == remote_size and @all
-
- updated = @source_index.update source_uri, all
- @size = remote_size
- @all = all
-
- updated
- end
-
- def ==(other) # :nodoc:
- self.class === other and
- @size == other.size and
- @source_index == other.source_index
- end
-
-end
-
diff --git a/lib/rubygems/spec_fetcher.rb b/lib/rubygems/spec_fetcher.rb
index a1fc82ed4f..7302ad9ffa 100644
--- a/lib/rubygems/spec_fetcher.rb
+++ b/lib/rubygems/spec_fetcher.rb
@@ -1,8 +1,7 @@
-require 'zlib'
-
-require 'rubygems'
require 'rubygems/remote_fetcher'
require 'rubygems/user_interaction'
+require 'rubygems/errors'
+require 'rubygems/text'
##
# SpecFetcher handles metadata updates from remote gem repositories.
@@ -10,6 +9,13 @@ require 'rubygems/user_interaction'
class Gem::SpecFetcher
include Gem::UserInteraction
+ include Gem::Text
+
+ FILES = {
+ :all => 'specs',
+ :latest => 'latest_specs',
+ :prerelease => 'prerelease_specs',
+ }
##
# The SpecFetcher cache dir.
@@ -22,10 +28,15 @@ class Gem::SpecFetcher
attr_reader :latest_specs # :nodoc:
##
- # Cache of all spces
+ # Cache of all released specs
attr_reader :specs # :nodoc:
+ ##
+ # Cache of prerelease specs
+
+ attr_reader :prerelease_specs # :nodoc:
+
@fetcher = nil
def self.fetcher
@@ -37,44 +48,62 @@ class Gem::SpecFetcher
end
def initialize
+ require 'fileutils'
+
@dir = File.join Gem.user_home, '.gem', 'specs'
@update_cache = File.stat(Gem.user_home).uid == Process.uid
@specs = {}
@latest_specs = {}
+ @prerelease_specs = {}
+
+ @caches = {
+ :latest => @latest_specs,
+ :prerelease => @prerelease_specs,
+ :all => @specs
+ }
@fetcher = Gem::RemoteFetcher.fetcher
end
##
- # Retuns the local directory to write +uri+ to.
+ # Returns the local directory to write +uri+ to.
def cache_dir(uri)
- File.join @dir, "#{uri.host}%#{uri.port}", File.dirname(uri.path)
+ # Correct for windows paths
+ escaped_path = uri.path.sub(/^\/([a-z]):\//i, '/\\1-/')
+ File.join @dir, "#{uri.host}%#{uri.port}", File.dirname(escaped_path)
end
##
# Fetch specs matching +dependency+. If +all+ is true, all matching
- # versions are returned. If +matching_platform+ is false, all platforms are
- # returned.
+ # (released) versions are returned. If +matching_platform+ is
+ # false, all platforms are returned. If +prerelease+ is true,
+ # prerelease versions are included.
+
+ def fetch_with_errors(dependency,
+ all = false,
+ matching_platform = true,
+ prerelease = false)
- def fetch(dependency, all = false, matching_platform = true)
- specs_and_sources = find_matching dependency, all, matching_platform
+ specs_and_sources, errors = find_matching_with_errors(dependency,
+ all,
+ matching_platform,
+ prerelease)
- specs_and_sources.map do |spec_tuple, source_uri|
+ ss = specs_and_sources.map do |spec_tuple, source_uri|
[fetch_spec(spec_tuple, URI.parse(source_uri)), source_uri]
end
- rescue Gem::RemoteFetcher::FetchError => e
- raise unless warn_legacy e do
- require 'rubygems/source_info_cache'
+ return [ss, errors]
+ end
- return Gem::SourceInfoCache.search_with_source(dependency,
- matching_platform, all)
- end
+ def fetch(*args)
+ fetch_with_errors(*args).first
end
def fetch_spec(spec, source_uri)
+ source_uri = URI.parse source_uri if String === source_uri
spec = spec - [nil, 'ruby', '']
spec_file_name = "#{spec.join '-'}.gemspec"
@@ -106,76 +135,108 @@ class Gem::SpecFetcher
end
##
- # Find spec names that match +dependency+. If +all+ is true, all matching
- # versions are returned. If +matching_platform+ is false, gems for all
- # platforms are returned.
-
- def find_matching(dependency, all = false, matching_platform = true)
+ # Find spec names that match +dependency+. If +all+ is true, all
+ # matching released versions are returned. If +matching_platform+
+ # is false, gems for all platforms are returned.
+
+ def find_matching_with_errors(dependency,
+ all = false,
+ matching_platform = true,
+ prerelease = false)
found = {}
- list(all).each do |source_uri, specs|
+ rejected_specs = {}
+
+ list(all, prerelease).each do |source_uri, specs|
found[source_uri] = specs.select do |spec_name, version, spec_platform|
- dependency =~ Gem::Dependency.new(spec_name, version) and
- (not matching_platform or Gem::Platform.match(spec_platform))
+ if dependency.match?(spec_name, version)
+ if matching_platform and !Gem::Platform.match(spec_platform)
+ pm = (rejected_specs[dependency] ||= Gem::PlatformMismatch.new(spec_name, version))
+ pm.add_platform spec_platform
+ false
+ else
+ true
+ end
+ end
end
end
+ errors = rejected_specs.values
+
specs_and_sources = []
found.each do |source_uri, specs|
uri_str = source_uri.to_s
- specs_and_sources.push(*specs.map { |spec| [spec, uri_str] })
+ specs_and_sources.concat(specs.map { |spec| [spec, uri_str] })
end
- specs_and_sources
+ [specs_and_sources, errors]
+ end
+
+ def find_matching(*args)
+ find_matching_with_errors(*args).first
end
##
- # Returns Array of gem repositories that were generated with RubyGems less
- # than 1.2.
+ # Suggests a gem based on the supplied +gem_name+. Returns a string
+ # of the gem name if an approximate match can be found or nil
+ # otherwise. NOTE: for performance reasons only gems which exactly
+ # match the first character of +gem_name+ are considered.
- def legacy_repos
- Gem.sources.reject do |source_uri|
- source_uri = URI.parse source_uri
- spec_path = source_uri + "specs.#{Gem.marshal_version}.gz"
+ def suggest_gems_from_name gem_name
+ gem_name = gem_name.downcase
+ max = gem_name.size / 2
+ specs = list.values.flatten 1
- begin
- @fetcher.fetch_size spec_path
- rescue Gem::RemoteFetcher::FetchError
- begin
- @fetcher.fetch_size(source_uri + 'yaml') # re-raise if non-repo
- rescue Gem::RemoteFetcher::FetchError
- alert_error "#{source_uri} does not appear to be a repository"
- raise
- end
- false
- end
- end
+ matches = specs.map { |name, version, platform|
+ next unless Gem::Platform.match platform
+
+ distance = levenshtein_distance gem_name, name.downcase
+
+ next if distance >= max
+
+ return [name] if distance == 0
+
+ [name, distance]
+ }.compact
+
+ matches = matches.uniq.sort_by { |name, dist| dist }
+
+ matches.first(5).map { |name, dist| name }
end
##
# Returns a list of gems available for each source in Gem::sources. If
- # +all+ is true, all versions are returned instead of only latest versions.
-
- def list(all = false)
- list = {}
-
- file = all ? 'specs' : 'latest_specs'
+ # +all+ is true, all released versions are returned instead of only latest
+ # versions. If +prerelease+ is true, include prerelease versions.
+
+ def list(all = false, prerelease = false)
+ # TODO: make type the only argument
+ type = if all
+ :all
+ elsif prerelease
+ :prerelease
+ else
+ :latest
+ end
+
+ list = {}
+ file = FILES[type]
+ cache = @caches[type]
Gem.sources.each do |source_uri|
source_uri = URI.parse source_uri
- if all and @specs.include? source_uri then
- list[source_uri] = @specs[source_uri]
- elsif not all and @latest_specs.include? source_uri then
- list[source_uri] = @latest_specs[source_uri]
- else
- specs = load_specs source_uri, file
+ unless cache.include? source_uri
+ cache[source_uri] = load_specs source_uri, file
+ end
- cache = all ? @specs : @latest_specs
+ list[source_uri] = cache[source_uri]
+ end
- cache[source_uri] = specs
- list[source_uri] = specs
+ if type == :all
+ list.values.map do |gems|
+ gems.reject! { |g| !g[1] || g[1].prerelease? }
end
end
@@ -194,26 +255,36 @@ class Gem::SpecFetcher
loaded = false
if File.exist? local_file then
- spec_dump = @fetcher.fetch_path spec_path, File.mtime(local_file)
-
- if spec_dump.nil? then
- spec_dump = Gem.read_binary local_file
- else
- loaded = true
+ begin
+ spec_dump =
+ @fetcher.fetch_path(spec_path, File.mtime(local_file))
+ rescue Gem::RemoteFetcher::FetchError => e
+ alert_warning "Error fetching data: #{e.message}"
end
+
+ loaded = true if spec_dump
+
+ spec_dump ||= Gem.read_binary local_file
else
spec_dump = @fetcher.fetch_path spec_path
loaded = true
end
- specs = Marshal.load spec_dump
+ specs = begin
+ Marshal.load spec_dump
+ rescue ArgumentError
+ spec_dump = @fetcher.fetch_path spec_path
+ loaded = true
+
+ Marshal.load spec_dump
+ end
if loaded and @update_cache then
begin
FileUtils.mkdir_p cache_dir
open local_file, 'wb' do |io|
- Marshal.dump specs, io
+ io << spec_dump
end
rescue
end
@@ -222,28 +293,5 @@ class Gem::SpecFetcher
specs
end
- ##
- # Warn about legacy repositories if +exception+ indicates only legacy
- # repositories are available, and yield to the block. Returns false if the
- # exception indicates some other FetchError.
-
- def warn_legacy(exception)
- uri = exception.uri.to_s
- if uri =~ /specs\.#{Regexp.escape Gem.marshal_version}\.gz$/ then
- alert_warning <<-EOF
-RubyGems 1.2+ index not found for:
-\t#{legacy_repos.join "\n\t"}
-
-RubyGems will revert to legacy indexes degrading performance.
- EOF
-
- yield
-
- return true
- end
-
- false
- end
-
end
diff --git a/lib/rubygems/specification.rb b/lib/rubygems/specification.rb
index 634b88f1f0..70a3fd09b4 100644
--- a/lib/rubygems/specification.rb
+++ b/lib/rubygems/specification.rb
@@ -4,1261 +4,2168 @@
# See LICENSE.txt for permissions.
#++
-require 'rubygems'
require 'rubygems/version'
require 'rubygems/requirement'
require 'rubygems/platform'
+require "rubygems/deprecate"
# :stopdoc:
-# Time::today has been deprecated in 0.9.5 and will be removed.
-if RUBY_VERSION < '1.9' then
- def Time.today
- t = Time.now
- t - ((t.to_f + t.gmt_offset) % 86400)
- end unless defined? Time.today
-end
-
class Date; end # for ruby_code if date.rb wasn't required
-
# :startdoc:
-module Gem
+##
+# The Specification class contains the metadata for a Gem. Typically
+# defined in a .gemspec file or a Rakefile, and looks like this:
+#
+# spec = Gem::Specification.new do |s|
+# s.name = 'example'
+# s.version = '1.0'
+# s.summary = 'Example gem specification'
+# ...
+# end
+#
+# For a great way to package gems, use Hoe.
+
+class Gem::Specification
+
+ ##
+ # The the version number of a specification that does not specify one
+ # (i.e. RubyGems 0.7 or earlier).
+
+ NONEXISTENT_SPECIFICATION_VERSION = -1
##
- # == Gem::Specification
+ # The specification version applied to any new Specification instances
+ # created. This should be bumped whenever something in the spec format
+ # changes.
#
- # The Specification class contains the metadata for a Gem. Typically
- # defined in a .gemspec file or a Rakefile, and looks like this:
+ # Specification Version History:
#
- # spec = Gem::Specification.new do |s|
- # s.name = 'rfoo'
- # s.version = '1.0'
- # s.summary = 'Example gem specification'
- # ...
- # end
+ # spec ruby
+ # ver ver yyyy-mm-dd description
+ # -1 <0.8.0 pre-spec-version-history
+ # 1 0.8.0 2004-08-01 Deprecated "test_suite_file" for "test_files"
+ # "test_file=x" is a shortcut for "test_files=[x]"
+ # 2 0.9.5 2007-10-01 Added "required_rubygems_version"
+ # Now forward-compatible with future versions
+ # 3 1.3.2 2009-01-03 Added Fixnum validation to specification_version
+ #--
+ # When updating this number, be sure to also update #to_ruby.
#
- # There are many <em>gemspec attributes</em>, and the best place to learn
- # about them in the "Gemspec Reference" linked from the RubyGems wiki.
-
- class Specification
-
- ##
- # Allows deinstallation of gems with legacy platforms.
-
- attr_accessor :original_platform # :nodoc:
-
- ##
- # The the version number of a specification that does not specify one
- # (i.e. RubyGems 0.7 or earlier).
-
- NONEXISTENT_SPECIFICATION_VERSION = -1
-
- ##
- # The specification version applied to any new Specification instances
- # created. This should be bumped whenever something in the spec format
- # changes.
- #--
- # When updating this number, be sure to also update #to_ruby.
- #
- # NOTE RubyGems < 1.2 cannot load specification versions > 2.
-
- CURRENT_SPECIFICATION_VERSION = 2
-
- ##
- # An informal list of changes to the specification. The highest-valued
- # key should be equal to the CURRENT_SPECIFICATION_VERSION.
-
- SPECIFICATION_VERSION_HISTORY = {
- -1 => ['(RubyGems versions up to and including 0.7 did not have versioned specifications)'],
- 1 => [
- 'Deprecated "test_suite_file" in favor of the new, but equivalent, "test_files"',
- '"test_file=x" is a shortcut for "test_files=[x]"'
- ],
- 2 => [
- 'Added "required_rubygems_version"',
- 'Now forward-compatible with future versions',
- ],
- }
+ # NOTE RubyGems < 1.2 cannot load specification versions > 2.
- # :stopdoc:
- MARSHAL_FIELDS = { -1 => 16, 1 => 16, 2 => 16 }
+ CURRENT_SPECIFICATION_VERSION = 3
- now = Time.at(Time.now.to_i)
- TODAY = now - ((now.to_i + now.gmt_offset) % 86400)
- # :startdoc:
+ # :stopdoc:
- ##
- # List of Specification instances.
+ # version => # of fields
+ MARSHAL_FIELDS = { -1 => 16, 1 => 16, 2 => 16, 3 => 17 }
- @@list = []
+ today = Time.now.utc
+ TODAY = Time.utc(today.year, today.month, today.day)
- ##
- # Optional block used to gather newly defined instances.
+ # :startdoc:
- @@gather = nil
+ ##
+ # List of attribute names: [:name, :version, ...]
- ##
- # List of attribute names: [:name, :version, ...]
- @@required_attributes = []
+ @@required_attributes = [:rubygems_version,
+ :specification_version,
+ :name,
+ :version,
+ :date,
+ :summary,
+ :require_paths]
- ##
- # List of _all_ attributes and default values:
- #
- # [[:name, nil],
- # [:bindir, 'bin'],
- # ...]
+ ##
+ # Map of attribute names to default values.
+
+ @@default_value = {
+ :authors => [],
+ :autorequire => nil,
+ :bindir => 'bin',
+ :cert_chain => [],
+ :date => TODAY,
+ :dependencies => [],
+ :description => nil,
+ :email => nil,
+ :executables => [],
+ :extensions => [],
+ :extra_rdoc_files => [],
+ :files => [],
+ :homepage => nil,
+ :licenses => [],
+ :name => nil,
+ :platform => Gem::Platform::RUBY,
+ :post_install_message => nil,
+ :rdoc_options => [],
+ :require_paths => ['lib'],
+ :required_ruby_version => Gem::Requirement.default,
+ :required_rubygems_version => Gem::Requirement.default,
+ :requirements => [],
+ :rubyforge_project => nil,
+ :rubygems_version => Gem::VERSION,
+ :signing_key => nil,
+ :specification_version => CURRENT_SPECIFICATION_VERSION,
+ :summary => nil,
+ :test_files => [],
+ :version => nil,
+ }
+
+ @@attributes = @@default_value.keys.sort_by { |s| s.to_s }
+ @@array_attributes = @@default_value.reject { |k,v| v != [] }.keys
+ @@nil_attributes, @@non_nil_attributes = @@default_value.keys.partition { |k|
+ @@default_value[k].nil?
+ }
+
+ ######################################################################
+ # :section: Required gemspec attributes
- @@attributes = []
+ ##
+ # This gem's name
- @@nil_attributes = []
- @@non_nil_attributes = [:@original_platform]
+ attr_accessor :name
- ##
- # List of array attributes
+ ##
+ # This gem's version
- @@array_attributes = []
+ attr_reader :version
- ##
- # Map of attribute names to default values.
+ ##
+ # Paths in the gem to add to $LOAD_PATH when this gem is activated.
+ #
+ # The default ['lib'] is typically sufficient.
- @@default_value = {}
+ attr_accessor :require_paths
- ##
- # Names of all specification attributes
+ ##
+ # The version of RubyGems used to create this gem.
+ #
+ # Do not set this, it is set automatically when the gem is packaged.
- def self.attribute_names
- @@attributes.map { |name, default| name }
- end
+ attr_accessor :rubygems_version
- ##
- # Default values for specification attributes
+ ##
+ # The Gem::Specification version of this gemspec.
+ #
+ # Do not set this, it is set automatically when the gem is packaged.
- def self.attribute_defaults
- @@attributes.dup
- end
+ attr_accessor :specification_version
- ##
- # The default value for specification attribute +name+
+ ##
+ # A short summary of this gem's description. Displayed in `gem list -d`.
+ #
+ # The description should be more detailed than the summary. For example,
+ # you might wish to copy the entire README into the description.
- def self.default_value(name)
- @@default_value[name]
- end
+ attr_reader :summary
- ##
- # Required specification attributes
+ ######################################################################
+ # :section: Optional gemspec attributes
- def self.required_attributes
- @@required_attributes.dup
- end
+ ##
+ # Autorequire was used by old RubyGems to automatically require a file.
+ #
+ # Deprecated: It is neither supported nor functional.
- ##
- # Is +name+ a required attribute?
+ attr_accessor :autorequire
- def self.required_attribute?(name)
- @@required_attributes.include? name.to_sym
- end
+ ##
+ # The path in the gem for executable scripts. Usually 'bin'
- ##
- # Specification attributes that are arrays (appendable and so-forth)
+ attr_accessor :bindir
- def self.array_attributes
- @@array_attributes.dup
- end
+ ##
+ # The certificate chain used to sign this gem. See Gem::Security for
+ # details.
- ##
- # A list of Specification instances that have been defined in this Ruby
- # instance.
+ attr_accessor :cert_chain
- def self.list
- @@list
- end
+ ##
+ # A long description of this gem
- ##
- # Specifies the +name+ and +default+ for a specification attribute, and
- # creates a reader and writer method like Module#attr_accessor.
- #
- # The reader method returns the default if the value hasn't been set.
+ attr_reader :description
- def self.attribute(name, default=nil)
- ivar_name = "@#{name}".intern
- if default.nil? then
- @@nil_attributes << ivar_name
- else
- @@non_nil_attributes << [ivar_name, default]
- end
+ ##
+ # Sets the default executable for this gem.
+ #
+ # Deprecated: You must now specify the executable name to Gem.bin_path.
- @@attributes << [name, default]
- @@default_value[name] = default
- attr_accessor(name)
- end
+ attr_writer :default_executable
- ##
- # Same as :attribute, but ensures that values assigned to the attribute
- # are array values by applying :to_a to the value.
+ ##
+ # A contact email for this gem
+ #
+ # If you are providing multiple authors and multiple emails they should be
+ # in the same order such that:
+ #
+ # Hash[*spec.authors.zip(spec.emails).flatten]
+ #
+ # Gives a hash of author name to email address.
- def self.array_attribute(name)
- @@non_nil_attributes << ["@#{name}".intern, []]
+ attr_accessor :email
- @@array_attributes << name
- @@attributes << [name, []]
- @@default_value[name] = []
- code = %{
- def #{name}
- @#{name} ||= []
- end
- def #{name}=(value)
- @#{name} = Array(value)
- end
- }
+ ##
+ # The URL of this gem's home page
- module_eval code, __FILE__, __LINE__ - 9
- end
+ attr_accessor :homepage
- ##
- # Same as attribute above, but also records this attribute as mandatory.
+ ##
+ # True when this gemspec has been activated. This attribute is not persisted.
- def self.required_attribute(*args)
- @@required_attributes << args.first
- attribute(*args)
- end
+ attr_accessor :loaded # :nodoc:
- ##
- # Sometimes we don't want the world to use a setter method for a
- # particular attribute.
- #
- # +read_only+ makes it private so we can still use it internally.
+ alias :loaded? :loaded # :nodoc:
- def self.read_only(*names)
- names.each do |name|
- private "#{name}="
- end
- end
+ ##
+ # True when this gemspec has been activated. This attribute is not persisted.
- # Shortcut for creating several attributes at once (each with a default
- # value of +nil+).
+ attr_accessor :activated
- def self.attributes(*args)
- args.each do |arg|
- attribute(arg, nil)
- end
- end
+ alias :activated? :activated
- ##
- # Some attributes require special behaviour when they are accessed. This
- # allows for that.
-
- def self.overwrite_accessor(name, &block)
- remove_method name
- define_method(name, &block)
- end
-
- ##
- # Defines a _singular_ version of an existing _plural_ attribute (i.e. one
- # whose value is expected to be an array). This means just creating a
- # helper method that takes a single value and appends it to the array.
- # These are created for convenience, so that in a spec, one can write
- #
- # s.require_path = 'mylib'
- #
- # instead of:
- #
- # s.require_paths = ['mylib']
- #
- # That above convenience is available courtesy of:
- #
- # attribute_alias_singular :require_path, :require_paths
-
- def self.attribute_alias_singular(singular, plural)
- define_method("#{singular}=") { |val|
- send("#{plural}=", [val])
- }
- define_method("#{singular}") {
- val = send("#{plural}")
- val.nil? ? nil : val.first
+ ##
+ # Path this gemspec was loaded from. This attribute is not persisted.
+
+ attr_reader :loaded_from
+
+ ##
+ # Allows deinstallation of gems with legacy platforms.
+
+ attr_writer :original_platform # :nodoc:
+
+ ##
+ # A message that gets displayed after the gem is installed
+
+ attr_accessor :post_install_message
+
+ ##
+ # The version of ruby required by this gem
+
+ attr_reader :required_ruby_version
+
+ ##
+ # The RubyGems version required by this gem
+
+ attr_reader :required_rubygems_version
+
+ ##
+ # The rubyforge project this gem lives under. i.e. RubyGems'
+ # rubyforge_project is "rubygems".
+
+ attr_accessor :rubyforge_project
+
+ ##
+ # The key used to sign this gem. See Gem::Security for details.
+
+ attr_accessor :signing_key
+
+ def self._all # :nodoc:
+ unless defined?(@@all) && @@all then
+ specs = {}
+
+ self.dirs.each { |dir|
+ Dir[File.join(dir, "*.gemspec")].each { |path|
+ spec = Gem::Specification.load path.untaint
+ # #load returns nil if the spec is bad, so we just ignore
+ # it at this stage
+ specs[spec.full_name] ||= spec if spec
+ }
}
+
+ @@all = specs.values
+
+ _resort!
end
+ @@all
+ end
- ##
- # Dump only crucial instance variables.
- #--
- # MAINTAIN ORDER!
-
- def _dump(limit)
- Marshal.dump [
- @rubygems_version,
- @specification_version,
- @name,
- @version,
- (Time === @date ? @date : (require 'time'; Time.parse(@date.to_s))),
- @summary,
- @required_ruby_version,
- @required_rubygems_version,
- @original_platform,
- @dependencies,
- @rubyforge_project,
- @email,
- @authors,
- @description,
- @homepage,
- @has_rdoc,
- @new_platform,
- ]
- end
-
- ##
- # Load custom marshal format, re-initializing defaults as needed
-
- def self._load(str)
- array = Marshal.load str
-
- spec = Gem::Specification.new
- spec.instance_variable_set :@specification_version, array[1]
-
- current_version = CURRENT_SPECIFICATION_VERSION
-
- field_count = if spec.specification_version > current_version then
- spec.instance_variable_set :@specification_version,
- current_version
- MARSHAL_FIELDS[current_version]
- else
- MARSHAL_FIELDS[spec.specification_version]
- end
-
- if array.size < field_count then
- raise TypeError, "invalid Gem::Specification format #{array.inspect}"
- end
+ def self._resort! # :nodoc:
+ @@all.sort! { |a, b|
+ names = a.name <=> b.name
+ next names if names.nonzero?
+ b.version <=> a.version
+ }
+ end
- spec.instance_variable_set :@rubygems_version, array[0]
- # spec version
- spec.instance_variable_set :@name, array[2]
- spec.instance_variable_set :@version, array[3]
- spec.instance_variable_set :@date, array[4]
- spec.instance_variable_set :@summary, array[5]
- spec.instance_variable_set :@required_ruby_version, array[6]
- spec.instance_variable_set :@required_rubygems_version, array[7]
- spec.instance_variable_set :@original_platform, array[8]
- spec.instance_variable_set :@dependencies, array[9]
- spec.instance_variable_set :@rubyforge_project, array[10]
- spec.instance_variable_set :@email, array[11]
- spec.instance_variable_set :@authors, array[12]
- spec.instance_variable_set :@description, array[13]
- spec.instance_variable_set :@homepage, array[14]
- spec.instance_variable_set :@has_rdoc, array[15]
- spec.instance_variable_set :@new_platform, array[16]
- spec.instance_variable_set :@platform, array[16].to_s
- spec.instance_variable_set :@loaded, false
+ ##
+ # Adds +spec+ to the known specifications, keeping the collection
+ # properly sorted.
- spec
- end
+ def self.add_spec spec
+ # TODO: find all extraneous adds
+ # puts
+ # p :add_spec => [spec.full_name, caller.reject { |s| s =~ /minitest/ }]
- ##
- # List of depedencies that will automatically be activated at runtime.
+ # TODO: flush the rest of the crap from the tests
+ # raise "no dupes #{spec.full_name} in #{all_names.inspect}" if
+ # _all.include? spec
- def runtime_dependencies
- dependencies.select { |d| d.type == :runtime || d.type == nil }
- end
+ raise "nil spec!" unless spec # TODO: remove once we're happy with tests
- ##
- # List of dependencies that are used for development
+ return if _all.include? spec
- def development_dependencies
- dependencies.select { |d| d.type == :development }
- end
+ _all << spec
+ _resort!
+ end
- def test_suite_file # :nodoc:
- warn 'test_suite_file deprecated, use test_files'
- test_files.first
- end
+ ##
+ # Adds multiple specs to the known specifications.
+
+ def self.add_specs *specs
+ raise "nil spec!" if specs.any?(&:nil?) # TODO: remove once we're happy
- def test_suite_file=(val) # :nodoc:
- warn 'test_suite_file= deprecated, use test_files='
- @test_files = [] unless defined? @test_files
- @test_files << val
+ # TODO: this is much more efficient, but we need the extra checks for now
+ # _all.concat specs
+ # _resort!
+
+ specs.each do |spec| # TODO: slow
+ add_spec spec
end
+ end
- ##
- # true when this gemspec has been loaded from a specifications directory.
- # This attribute is not persisted.
+ ##
+ # Returns all specifications. This method is discouraged from use.
+ # You probably want to use one of the Enumerable methods instead.
- attr_accessor :loaded
+ def self.all
+ warn "NOTE: Specification.all called from #{caller.first}" unless
+ Gem::Deprecate.skip
+ _all
+ end
- ##
- # Path this gemspec was loaded from. This attribute is not persisted.
+ ##
+ # Sets the known specs to +specs+. Not guaranteed to work for you in
+ # the future. Use at your own risk. Caveat emptor. Doomy doom doom.
+ # Etc etc.
+ #
+ #--
+ # Makes +specs+ the known specs
+ # Listen, time is a river
+ # Winter comes, code breaks
+ #
+ # -- wilsonb
- attr_accessor :loaded_from
+ def self.all= specs
+ @@all = specs
+ end
- ##
- # Returns an array with bindir attached to each executable in the
- # executables list
+ ##
+ # Return full names of all specs in sorted order.
- def add_bindir(executables)
- return nil if executables.nil?
+ def self.all_names
+ self._all.map(&:full_name)
+ end
- if @bindir then
- Array(executables).map { |e| File.join(@bindir, e) }
- else
- executables
- end
- rescue
- return nil
- end
+ ##
+ # Return the list of all array-oriented instance variables.
+ #--
+ # Not sure why we need to use so much stupid reflection in here...
- ##
- # Files in the Gem under one of the require_paths
+ def self.array_attributes
+ @@array_attributes.dup
+ end
- def lib_files
- @files.select do |file|
- require_paths.any? do |path|
- file.index(path) == 0
- end
- end
- end
+ ##
+ # Return the list of all instance variables.
+ #--
+ # Not sure why we need to use so much stupid reflection in here...
+
+ def self.attribute_names
+ @@attributes.dup
+ end
+
+ ##
+ # Return the directories that Specification uses to find specs.
- ##
- # True if this gem was loaded from disk
+ def self.dirs
+ @@dirs ||= Gem.path.collect { |dir|
+ File.join dir, "specifications"
+ }
+ end
- alias :loaded? :loaded
+ ##
+ # Set the directories that Specification uses to find specs. Setting
+ # this resets the list of known specs.
- ##
- # True if this gem has files in test_files
+ def self.dirs= dirs
+ # TODO: find extra calls to dir=
+ # warn "NOTE: dirs= called from #{caller.first} for #{dirs.inspect}"
- def has_unit_tests?
- not test_files.empty?
- end
+ self.reset
- alias has_test_suite? has_unit_tests? # :nodoc: deprecated
+ # ugh
+ @@dirs = Array(dirs).map { |dir| File.join dir, "specifications" }
+ end
- ##
- # Specification constructor. Assigns the default values to the
- # attributes, adds this spec to the list of loaded specs (see
- # Specification.list), and yields itself for further initialization.
+ extend Enumerable
- def initialize
- @new_platform = nil
- assign_defaults
- @loaded = false
- @loaded_from = nil
- @@list << self
+ ##
+ # Enumerate every known spec. See ::dirs= and ::add_spec to set the list of
+ # specs.
- yield self if block_given?
+ def self.each
+ return enum_for(:each) unless block_given?
- @@gather.call(self) if @@gather
+ self._all.each do |x|
+ yield x
end
+ end
- ##
- # Each attribute has a default value (possibly nil). Here, we initialize
- # all attributes to their default value. This is done through the
- # accessor methods, so special behaviours will be honored. Furthermore,
- # we take a _copy_ of the default so each specification instance has its
- # own empty arrays, etc.
+ ##
+ # Returns every spec that matches +name+ and optional +requirements+.
- def assign_defaults
- @@nil_attributes.each do |name|
- instance_variable_set name, nil
- end
+ def self.find_all_by_name name, *requirements
+ requirements = Gem::Requirement.default if requirements.empty?
- @@non_nil_attributes.each do |name, default|
- value = case default
- when Time, Numeric, Symbol, true, false, nil then default
- else default.dup
- end
+ # TODO: maybe try: find_all { |s| spec === dep }
- instance_variable_set name, value
- end
+ Gem::Dependency.new(name, *requirements).matching_specs
+ end
- # HACK
- instance_variable_set :@new_platform, Gem::Platform::RUBY
- end
+ ##
+ # Find the best specification matching a +name+ and +requirements+. Raises
+ # if the dependency doesn't resolve to a valid specification.
- ##
- # Special loader for YAML files. When a Specification object is loaded
- # from a YAML file, it bypasses the normal Ruby object initialization
- # routine (#initialize). This method makes up for that and deals with
- # gems of different ages.
- #
- # 'input' can be anything that YAML.load() accepts: String or IO.
+ def self.find_by_name name, *requirements
+ requirements = Gem::Requirement.default if requirements.empty?
- def self.from_yaml(input)
- input = normalize_yaml_input input
- spec = YAML.load input
+ # TODO: maybe try: find { |s| spec === dep }
- if spec && spec.class == FalseClass then
- raise Gem::EndOfYAMLException
- end
+ Gem::Dependency.new(name, *requirements).to_spec
+ end
- unless Gem::Specification === spec then
- raise Gem::Exception, "YAML data doesn't evaluate to gem specification"
- end
+ ##
+ # Return the best specification that contains the file matching +path+.
+
+ def self.find_by_path path
+ self.find { |spec|
+ spec.contains_requirable_file? path
+ }
+ end
+
+ ##
+ # Return currently unresolved specs that contain the file matching +path+.
+
+ def self.find_in_unresolved path
+ # TODO: do we need these?? Kill it
+ specs = Gem.unresolved_deps.values.map { |dep| dep.to_specs }.flatten
+
+ specs.find_all { |spec| spec.contains_requirable_file? path }
+ end
+
+ ##
+ # Search through all unresolved deps and sub-dependencies and return
+ # specs that contain the file matching +path+.
- unless (spec.instance_variables.include? '@specification_version' or
- spec.instance_variables.include? :@specification_version) and
- spec.instance_variable_get :@specification_version
- spec.instance_variable_set :@specification_version,
- NONEXISTENT_SPECIFICATION_VERSION
+ def self.find_in_unresolved_tree path
+ specs = Gem.unresolved_deps.values.map { |dep| dep.to_specs }.flatten
+
+ specs.reverse_each do |spec|
+ trails = []
+ spec.traverse do |from_spec, dep, to_spec, trail|
+ next unless to_spec.conflicts.empty?
+ trails << trail if to_spec.contains_requirable_file? path
end
- spec
+ next if trails.empty?
+
+ return trails.map(&:reverse).sort.first.reverse
end
- ##
- # Loads ruby format gemspec from +filename+
+ []
+ end
+
+ ##
+ # Special loader for YAML files. When a Specification object is loaded
+ # from a YAML file, it bypasses the normal Ruby object initialization
+ # routine (#initialize). This method makes up for that and deals with
+ # gems of different ages.
+ #
+ # +input+ can be anything that YAML.load() accepts: String or IO.
+
+ def self.from_yaml(input)
+ Gem.load_yaml
- def self.load(filename)
- gemspec = nil
- fail "NESTED Specification.load calls not allowed!" if @@gather
- @@gather = proc { |gs| gemspec = gs }
- data = File.read(filename)
- eval(data)
- gemspec
- ensure
- @@gather = nil
+ input = normalize_yaml_input input
+ spec = YAML.load input
+
+ if spec && spec.class == FalseClass then
+ raise Gem::EndOfYAMLException
end
- ##
- # Make sure the YAML specification is properly formatted with dashes
+ unless Gem::Specification === spec then
+ raise Gem::Exception, "YAML data doesn't evaluate to gem specification"
+ end
- def self.normalize_yaml_input(input)
- result = input.respond_to?(:read) ? input.read : input
- result = "--- " + result unless result =~ /^--- /
- result
+ unless (spec.instance_variables.include? '@specification_version' or
+ spec.instance_variables.include? :@specification_version) and
+ spec.instance_variable_get :@specification_version
+ spec.instance_variable_set :@specification_version,
+ NONEXISTENT_SPECIFICATION_VERSION
end
- ##
- # Sets the rubygems_version to the current RubyGems version
+ spec
+ end
+
+ ##
+ # Return the latest specs, optionally including prerelease specs if
+ # +prerelease+ is true.
+
+ def self.latest_specs prerelease = false
+ result = Hash.new { |h,k| h[k] = {} }
+ native = {}
+
+ Gem::Specification._all.reverse_each do |spec|
+ next if spec.version.prerelease? unless prerelease
- def mark_version
- @rubygems_version = RubyGemsVersion
+ native[spec.name] = spec.version if spec.platform == Gem::Platform::RUBY
+ result[spec.name][spec.platform] = spec
end
- ##
- # Ignore unknown attributes while loading
+ result.map(&:last).map(&:values).flatten.reject { |spec|
+ minimum = native[spec.name]
+ minimum && spec.version < minimum
+ }
+ end
- def method_missing(sym, *a, &b) # :nodoc:
- if @specification_version > CURRENT_SPECIFICATION_VERSION and
- sym.to_s =~ /=$/ then
- warn "ignoring #{sym} loading #{full_name}" if $DEBUG
- else
- super
+ ##
+ # Loads Ruby format gemspec from +file+.
+
+ def self.load file
+ return unless file && File.file?(file)
+
+ file = file.dup.untaint
+
+ code = if defined? Encoding
+ File.read file, :mode => 'r:UTF-8:-'
+ else
+ File.read file
+ end
+
+ code.untaint
+
+ begin
+ spec = eval code, binding, file
+
+ if Gem::Specification === spec
+ spec.loaded_from = file.to_s
+ return spec
end
+
+ warn "[#{file}] isn't a Gem::Specification (#{spec.class} instead)."
+ rescue SignalException, SystemExit
+ raise
+ rescue SyntaxError, Exception => e
+ warn "Invalid gemspec in [#{file}]: #{e}"
end
- ##
- # Adds a development dependency named +gem+ with +requirements+ to this
- # Gem. For example:
- #
- # spec.add_development_dependency 'jabber4r', '> 0.1', '<= 0.5'
- #
- # Development dependencies aren't installed by default and aren't
- # activated when a gem is required.
+ nil
+ end
- def add_development_dependency(gem, *requirements)
- add_dependency_with_type(gem, :development, *requirements)
- end
+ ##
+ # Specification attributes that must be non-nil
+
+ def self.non_nil_attributes
+ @@non_nil_attributes.dup
+ end
+
+ ##
+ # Make sure the YAML specification is properly formatted with dashes
+
+ def self.normalize_yaml_input(input)
+ result = input.respond_to?(:read) ? input.read : input
+ result = "--- " + result unless result =~ /\A--- /
+ result.gsub!(/ !!null \n/, " \n")
+ # date: 2011-04-26 00:00:00.000000000Z
+ # date: 2011-04-26 00:00:00.000000000 Z
+ result.gsub!(/^(date: \d{4}-\d{2}-\d{2} \d{2}:\d{2}:\d{2}\.\d+?)Z/, '\1 Z')
+ result
+ end
+
+ ##
+ # Return a list of all outdated specifications. This method is HEAVY
+ # as it must go fetch specifications from the server.
+
+ def self.outdated
+ outdateds = []
+
+ # TODO: maybe we should switch to rubygems' version service?
+ fetcher = Gem::SpecFetcher.fetcher
- ##
- # Adds a runtime dependency named +gem+ with +requirements+ to this Gem.
- # For example:
- #
- # spec.add_runtime_dependency 'jabber4r', '> 0.1', '<= 0.5'
+ latest_specs.each do |local|
+ dependency = Gem::Dependency.new local.name, ">= #{local.version}"
+ remotes = fetcher.find_matching dependency
+ remotes = remotes.map { |(_, version, _), _| version }
+ latest = remotes.sort.last
- def add_runtime_dependency(gem, *requirements)
- add_dependency_with_type(gem, :runtime, *requirements)
+ outdateds << local.name if latest and local.version < latest
end
- ##
- # Adds a runtime dependency
+ outdateds
+ end
- alias add_dependency add_runtime_dependency
+ ##
+ # Removes +spec+ from the known specs.
- ##
- # Returns the full name (name-version) of this Gem. Platform information
- # is included (name-version-platform) if it is specified and not the
- # default Ruby platform.
+ def self.remove_spec spec
+ # TODO: beat on the tests
+ raise "wtf: #{spec.full_name} not in #{all_names.inspect}" unless
+ _all.include? spec
+ _all.delete spec
+ end
- def full_name
- if platform == Gem::Platform::RUBY or platform.nil? then
- "#{@name}-#{@version}"
- else
- "#{@name}-#{@version}-#{platform}"
+ ##
+ # Is +name+ a required attribute?
+
+ def self.required_attribute?(name)
+ @@required_attributes.include? name.to_sym
+ end
+
+ ##
+ # Required specification attributes
+
+ def self.required_attributes
+ @@required_attributes.dup
+ end
+
+ ##
+ # Reset the list of known specs, running pre and post reset hooks
+ # registered in Gem.
+
+ def self.reset
+ @@dirs = nil
+ # from = caller.first(10).reject { |s| s =~ /minitest/ }
+ # warn ""
+ # warn "NOTE: Specification.reset from #{from.inspect}"
+ Gem.pre_reset_hooks.each { |hook| hook.call }
+ @@all = nil
+ Gem.post_reset_hooks.each { |hook| hook.call }
+ end
+
+ ##
+ # Load custom marshal format, re-initializing defaults as needed
+
+ def self._load(str)
+ array = Marshal.load str
+
+ spec = Gem::Specification.new
+ spec.instance_variable_set :@specification_version, array[1]
+
+ current_version = CURRENT_SPECIFICATION_VERSION
+
+ field_count = if spec.specification_version > current_version then
+ spec.instance_variable_set :@specification_version,
+ current_version
+ MARSHAL_FIELDS[current_version]
+ else
+ MARSHAL_FIELDS[spec.specification_version]
+ end
+
+ if array.size < field_count then
+ raise TypeError, "invalid Gem::Specification format #{array.inspect}"
+ end
+
+ # Cleanup any YAML::PrivateType. They only show up for an old bug
+ # where nil => null, so just convert them to nil based on the type.
+
+ array.map! { |e| e.kind_of?(YAML::PrivateType) ? nil : e }
+
+ spec.instance_variable_set :@rubygems_version, array[0]
+ # spec version
+ spec.instance_variable_set :@name, array[2]
+ spec.instance_variable_set :@version, array[3]
+ spec.date = array[4]
+ spec.instance_variable_set :@summary, array[5]
+ spec.instance_variable_set :@required_ruby_version, array[6]
+ spec.instance_variable_set :@required_rubygems_version, array[7]
+ spec.instance_variable_set :@original_platform, array[8]
+ spec.instance_variable_set :@dependencies, array[9]
+ spec.instance_variable_set :@rubyforge_project, array[10]
+ spec.instance_variable_set :@email, array[11]
+ spec.instance_variable_set :@authors, array[12]
+ spec.instance_variable_set :@description, array[13]
+ spec.instance_variable_set :@homepage, array[14]
+ spec.instance_variable_set :@has_rdoc, array[15]
+ spec.instance_variable_set :@new_platform, array[16]
+ spec.instance_variable_set :@platform, array[16].to_s
+ spec.instance_variable_set :@license, array[17]
+ spec.instance_variable_set :@loaded, false
+ spec.instance_variable_set :@activated, false
+
+ spec
+ end
+
+ def <=>(other) # :nodoc:
+ sort_obj <=> other.sort_obj
+ end
+
+ def == other # :nodoc:
+ self.class === other &&
+ name == other.name &&
+ version == other.version &&
+ platform == other.platform
+ end
+
+ ##
+ # Dump only crucial instance variables.
+ #--
+ # MAINTAIN ORDER!
+ # (down with the man)
+
+ def _dump(limit)
+ Marshal.dump [
+ @rubygems_version,
+ @specification_version,
+ @name,
+ @version,
+ date,
+ @summary,
+ @required_ruby_version,
+ @required_rubygems_version,
+ @original_platform,
+ @dependencies,
+ @rubyforge_project,
+ @email,
+ @authors,
+ @description,
+ @homepage,
+ true, # has_rdoc
+ @new_platform,
+ @licenses
+ ]
+ end
+
+ ##
+ # Activate this spec, registering it as a loaded spec and adding
+ # it's lib paths to $LOAD_PATH. Returns true if the spec was
+ # activated, false if it was previously activated. Freaks out if
+ # there are conflicts upon activation.
+
+ def activate
+ raise_if_conflicts
+
+ return false if Gem.loaded_specs[self.name]
+
+ activate_dependencies
+ add_self_to_load_path
+
+ Gem.loaded_specs[self.name] = self
+ @activated = true
+ @loaded = true
+
+ return true
+ end
+
+ ##
+ # Activate all unambiguously resolved runtime dependencies of this
+ # spec. Add any ambigous dependencies to the unresolved list to be
+ # resolved later, as needed.
+
+ def activate_dependencies
+ self.runtime_dependencies.each do |spec_dep|
+ if loaded = Gem.loaded_specs[spec_dep.name]
+ next if spec_dep.matches_spec? loaded
+
+ msg = "can't satisfy '#{spec_dep}', already activated '#{loaded.full_name}'"
+ e = Gem::LoadError.new msg
+ e.name = spec_dep.name
+
+ raise e
end
- end
- ##
- # Returns the full name (name-version) of this gemspec using the original
- # platform. For use with legacy gems.
+ specs = spec_dep.to_specs
- def original_name # :nodoc:
- if platform == Gem::Platform::RUBY or platform.nil? then
- "#{@name}-#{@version}"
+ if specs.size == 1 then
+ specs.first.activate
else
- "#{@name}-#{@version}-#{@original_platform}"
+ name = spec_dep.name
+ Gem.unresolved_deps[name] = Gem.unresolved_deps[name].merge spec_dep
end
end
- ##
- # The full path to the gem (install path + full name).
+ Gem.unresolved_deps.delete self.name
+ end
- def full_gem_path
- path = File.join installation_path, 'gems', full_name
- return path if File.directory? path
- File.join installation_path, 'gems', original_name
- end
+ ##
+ # Returns an array with bindir attached to each executable in the
+ # +executables+ list
- ##
- # The default (generated) file name of the gem.
+ def add_bindir(executables)
+ return nil if executables.nil?
- def file_name
- full_name + ".gem"
+ if @bindir then
+ Array(executables).map { |e| File.join(@bindir, e) }
+ else
+ executables
end
+ rescue
+ return nil
+ end
- ##
- # The directory that this gem was installed into.
+ ##
+ # Adds a dependency on gem +dependency+ with type +type+ that requires
+ # +requirements+. Valid types are currently <tt>:runtime</tt> and
+ # <tt>:development</tt>.
- def installation_path
- path = File.dirname(@loaded_from).split(File::SEPARATOR)[0..-2]
- path = path.join File::SEPARATOR
- File.expand_path path
- end
+ def add_dependency_with_type(dependency, type, *requirements)
+ requirements = if requirements.empty? then
+ Gem::Requirement.default
+ else
+ requirements.flatten
+ end
- ##
- # Checks if this specification meets the requirement of +dependency+.
+ unless dependency.respond_to?(:name) &&
+ dependency.respond_to?(:version_requirements)
- def satisfies_requirement?(dependency)
- return @name == dependency.name &&
- dependency.version_requirements.satisfied_by?(@version)
+ dependency = Gem::Dependency.new(dependency, requirements, type)
end
- ##
- # Returns an object you can use to sort specifications in #sort_by.
+ dependencies << dependency
+ end
+
+ private :add_dependency_with_type
+
+ ##
+ # Adds a development dependency named +gem+ with +requirements+ to this
+ # Gem. For example:
+ #
+ # spec.add_development_dependency 'example', '~> 1.1', '>= 1.1.4'
+ #
+ # Development dependencies aren't installed by default and aren't
+ # activated when a gem is required.
+
+ def add_development_dependency(gem, *requirements)
+ add_dependency_with_type(gem, :development, *requirements)
+ end
+
+ ##
+ # Adds a runtime dependency named +gem+ with +requirements+ to this Gem.
+ # For example:
+ #
+ # spec.add_runtime_dependency 'example', '~> 1.1', '>= 1.1.4'
+
+ def add_runtime_dependency(gem, *requirements)
+ add_dependency_with_type(gem, :runtime, *requirements)
+ end
+
+ alias add_dependency add_runtime_dependency
+
+ ##
+ # Adds this spec's require paths to LOAD_PATH, in the proper location.
- def sort_obj
- [@name, @version.to_ints, @new_platform == Gem::Platform::RUBY ? -1 : 1]
+ def add_self_to_load_path
+ paths = require_paths.map do |path|
+ File.join full_gem_path, path
end
- def <=>(other) # :nodoc:
- sort_obj <=> other.sort_obj
+ # gem directories must come after -I and ENV['RUBYLIB']
+ insert_index = Gem.load_path_insert_index
+
+ if insert_index then
+ # gem directories must come after -I and ENV['RUBYLIB']
+ $LOAD_PATH.insert(insert_index, *paths)
+ else
+ # we are probably testing in core, -I and RUBYLIB don't apply
+ $LOAD_PATH.unshift(*paths)
end
+ end
+
+ ##
+ # Singular reader for #authors
+
+ def author
+ val = authors and val.first
+ end
+
+ ##
+ # Singular writer for #authors
+
+ def author= o
+ self.authors = [o]
+ end
+
+ ##
+ # The list of author names who wrote this gem.
+ #
+ # If you are providing multiple authors and multiple emails they should be
+ # in the same order such that:
+ #
+ # Hash[*spec.authors.zip(spec.emails).flatten]
+ #
+ # Gives a hash of author name to email address.
+
+ def authors
+ @authors ||= []
+ end
+
+ ##
+ # Sets the list of authors, ensuring it is an array.
+
+ def authors= value
+ @authors = Array(value).flatten.grep(String)
+ end
+
+ ##
+ # Returns the full path to the base gem directory.
+ #
+ # eg: /usr/local/lib/ruby/gems/1.8
+
+ def base_dir
+ return Gem.dir unless loaded_from
+ @base_dir ||= File.dirname File.dirname loaded_from
+ end
+
+ ##
+ # Returns the full path to installed gem's bin directory.
+ #
+ # NOTE: do not confuse this with +bindir+, which is just 'bin', not
+ # a full path.
+
+ def bin_dir
+ @bin_dir ||= File.join gem_dir, bindir # TODO: this is unfortunate
+ end
+
+ ##
+ # Returns the full path to an executable named +name+ in this gem.
+
+ def bin_file name
+ File.join bin_dir, name
+ end
+
+ ##
+ # Returns the full path to the cache directory containing this
+ # spec's cached gem.
+
+ def cache_dir
+ @cache_dir ||= File.join base_dir, "cache"
+ end
+
+ ##
+ # Returns the full path to the cached gem for this spec.
+
+ def cache_file
+ @cache_file ||= File.join cache_dir, "#{full_name}.gem"
+ end
+
+ alias :cache_gem :cache_file
+
+ ##
+ # Return any possible conflicts against the currently loaded specs.
- ##
- # Tests specs for equality (across all attributes).
+ def conflicts
+ conflicts = {}
+ Gem.loaded_specs.values.each do |spec|
+ bad = self.runtime_dependencies.find_all { |dep|
+ spec.name == dep.name and not spec.satisfies_requirement? dep
+ }
- def ==(other) # :nodoc:
- self.class === other && same_attributes?(other)
+ conflicts[spec] = bad unless bad.empty?
end
+ conflicts
+ end
- alias eql? == # :nodoc:
+ ##
+ # Return true if this spec can require +file+.
- ##
- # True if this gem has the same attributes as +other+.
+ def contains_requirable_file? file
+ root = full_gem_path
- def same_attributes?(other)
- @@attributes.each do |name, default|
- return false unless self.send(name) == other.send(name)
+ require_paths.each do |lib|
+ base = "#{root}/#{lib}/#{file}"
+ Gem.suffixes.each do |suf|
+ path = "#{base}#{suf}"
+ return true if File.file? path
end
- true
end
- private :same_attributes?
+ return false
+ end
+
+ ##
+ # The date this gem was created. Lazily defaults to TODAY.
- def hash # :nodoc:
- @@attributes.inject(0) { |hash_code, (name, default_value)|
- n = self.send(name).hash
- hash_code + n
- }
- end
+ def date
+ @date ||= TODAY
+ end
- def to_yaml(opts = {}) # :nodoc:
- mark_version
+ ##
+ # The date this gem was created
+ #
+ # Do not set this, it is set automatically when the gem is packaged.
+
+ def date= date
+ # We want to end up with a Time object with one-day resolution.
+ # This is the cleanest, most-readable, faster-than-using-Date
+ # way to do it.
+ @date = case date
+ when String then
+ if /\A(\d{4})-(\d{2})-(\d{2})\Z/ =~ date then
+ Time.utc($1.to_i, $2.to_i, $3.to_i)
+
+ # Workaround for where the date format output from psych isn't
+ # parsed as a Time object by syck and thus comes through as a
+ # string.
+ elsif /\A(\d{4})-(\d{2})-(\d{2}) \d{2}:\d{2}:\d{2}\.\d+?Z\z/ =~ date then
+ Time.utc($1.to_i, $2.to_i, $3.to_i)
+ else
+ raise(Gem::InvalidSpecificationException,
+ "invalid date format in specification: #{date.inspect}")
+ end
+ when Time, Date then
+ Time.utc(date.year, date.month, date.day)
+ else
+ TODAY
+ end
+ end
+
+ ##
+ # The default executable for this gem.
+ #
+ # Deprecated: The name of the gem is assumed to be the name of the
+ # executable now. See Gem.bin_path.
+
+ def default_executable
+ if defined?(@default_executable) and @default_executable
+ result = @default_executable
+ elsif @executables and @executables.size == 1
+ result = Array(@executables).first
+ else
+ result = nil
+ end
+ result
+ end
- attributes = @@attributes.map { |name,| name.to_s }.sort
- attributes = attributes - %w[name version platform]
+ ##
+ # The default value for specification attribute +name+
- yaml = YAML.quick_emit object_id, opts do |out|
- out.map taguri, to_yaml_style do |map|
- map.add 'name', @name
- map.add 'version', @version
- platform = case @original_platform
- when nil, '' then
- 'ruby'
- when String then
- @original_platform
- else
- @original_platform.to_s
- end
- map.add 'platform', platform
-
- attributes.each do |name|
- map.add name, instance_variable_get("@#{name}")
+ def default_value name
+ @@default_value[name]
+ end
+
+ ##
+ # A list of Gem::Dependency objects this gem depends on.
+ #
+ # Use #add_dependency or #add_development_dependency to add dependencies to
+ # a gem.
+
+ def dependencies
+ @dependencies ||= []
+ end
+
+ ##
+ # Return a list of all gems that have a dependency on this gemspec. The
+ # list is structured with entries that conform to:
+ #
+ # [depending_gem, dependency, [list_of_gems_that_satisfy_dependency]]
+
+ def dependent_gems
+ out = []
+ Gem::Specification.each do |spec|
+ spec.dependencies.each do |dep|
+ if self.satisfies_requirement?(dep) then
+ sats = []
+ find_all_satisfiers(dep) do |sat|
+ sats << sat
end
+ out << [spec, dep, sats]
end
end
end
+ out
+ end
- def yaml_initialize(tag, vals) # :nodoc:
- vals.each do |ivar, val|
- instance_variable_set "@#{ivar}", val
- end
+ ##
+ # Returns all specs that matches this spec's runtime dependencies.
+
+ def dependent_specs
+ runtime_dependencies.map { |dep| dep.to_specs }.flatten
+ end
+
+ ##
+ # A long description of this gem
+
+ def description= str
+ @description = str.to_s
+ end
+
+ ##
+ # List of dependencies that are used for development
- @original_platform = @platform # for backwards compatibility
- self.platform = Gem::Platform.new @platform
+ def development_dependencies
+ dependencies.select { |d| d.type == :development }
+ end
+
+ ##
+ # Returns the full path to this spec's documentation directory.
+
+ def doc_dir
+ @doc_dir ||= File.join base_dir, 'doc', full_name
+ end
+
+ def encode_with coder # :nodoc:
+ mark_version
+
+ coder.add 'name', @name
+ coder.add 'version', @version
+ platform = case @original_platform
+ when nil, '' then
+ 'ruby'
+ when String then
+ @original_platform
+ else
+ @original_platform.to_s
+ end
+ coder.add 'platform', platform
+
+ attributes = @@attributes.map(&:to_s) - %w[name version platform]
+ attributes.each do |name|
+ coder.add name, instance_variable_get("@#{name}")
end
+ end
- ##
- # Returns a Ruby code representation of this specification, such that it
- # can be eval'ed and reconstruct the same specification later. Attributes
- # that still have their default values are omitted.
+ def eql? other # :nodoc:
+ self.class === other && same_attributes?(other)
+ end
- def to_ruby
- mark_version
- result = []
- result << "# -*- encoding: utf-8 -*-"
- result << nil
- result << "Gem::Specification.new do |s|"
+ ##
+ # Singular accessor for #executables
- result << " s.name = #{ruby_code name}"
- result << " s.version = #{ruby_code version}"
- unless platform.nil? or platform == Gem::Platform::RUBY then
- result << " s.platform = #{ruby_code original_platform}"
- end
- result << ""
- result << " s.required_rubygems_version = #{ruby_code required_rubygems_version} if s.respond_to? :required_rubygems_version="
-
- handled = [
- :dependencies,
- :name,
- :platform,
- :required_rubygems_version,
- :specification_version,
- :version,
- ]
-
- attributes = @@attributes.sort_by { |attr_name,| attr_name.to_s }
-
- attributes.each do |attr_name, default|
- next if handled.include? attr_name
- current_value = self.send(attr_name)
- if current_value != default or
- self.class.required_attribute? attr_name then
- result << " s.#{attr_name} = #{ruby_code current_value}"
- end
- end
+ def executable
+ val = executables and val.first
+ end
- result << nil
- result << " if s.respond_to? :specification_version then"
- result << " current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION"
- result << " s.specification_version = #{specification_version}"
- result << nil
+ ##
+ # Singular accessor for #executables
- result << " if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then"
+ def executable=o
+ self.executables = [o]
+ end
- unless dependencies.empty? then
- dependencies.each do |dep|
- version_reqs_param = dep.requirements_list.inspect
- dep.instance_variable_set :@type, :runtime if dep.type.nil? # HACK
- result << " s.add_#{dep.type}_dependency(%q<#{dep.name}>, #{version_reqs_param})"
- end
- end
+ ##
+ # Executables included in the gem.
- result << " else"
+ def executables
+ @executables ||= []
+ end
- unless dependencies.empty? then
- dependencies.each do |dep|
- version_reqs_param = dep.requirements_list.inspect
- result << " s.add_dependency(%q<#{dep.name}>, #{version_reqs_param})"
- end
- end
+ ##
+ # Sets executables to +value+, ensuring it is an array. Don't
+ # use this, push onto the array instead.
- result << ' end'
+ def executables= value
+ # TODO: warn about setting instead of pushing
+ @executables = Array(value)
+ end
- result << " else"
- dependencies.each do |dep|
- version_reqs_param = dep.requirements_list.inspect
- result << " s.add_dependency(%q<#{dep.name}>, #{version_reqs_param})"
- end
- result << " end"
+ ##
+ # Extensions to build when installing the gem. See
+ # Gem::Installer#build_extensions for valid values.
- result << "end"
- result << nil
+ def extensions
+ @extensions ||= []
+ end
- result.join "\n"
- end
+ ##
+ # Sets extensions to +extensions+, ensuring it is an array. Don't
+ # use this, push onto the array instead.
- ##
- # Checks that the specification contains all required fields, and does a
- # very basic sanity check.
- #
- # Raises InvalidSpecificationException if the spec does not pass the
- # checks..
+ def extensions= extensions
+ # TODO: warn about setting instead of pushing
+ @extensions = Array extensions
+ end
- def validate
- extend Gem::UserInteraction
- normalize
+ ##
+ # Extra files to add to RDoc such as README or doc/examples.txt
- if rubygems_version != RubyGemsVersion then
- raise Gem::InvalidSpecificationException,
- "expected RubyGems version #{RubyGemsVersion}, was #{rubygems_version}"
- end
+ def extra_rdoc_files
+ @extra_rdoc_files ||= []
+ end
- @@required_attributes.each do |symbol|
- unless self.send symbol then
- raise Gem::InvalidSpecificationException,
- "missing value for attribute #{symbol}"
- end
- end
+ ##
+ # Sets extra_rdoc_files to +files+, ensuring it is an array. Don't
+ # use this, push onto the array instead.
- if require_paths.empty? then
- raise Gem::InvalidSpecificationException,
- "specification must have at least one require_path"
- end
+ def extra_rdoc_files= files
+ # TODO: warn about setting instead of pushing
+ @extra_rdoc_files = Array files
+ end
- case platform
- when Gem::Platform, Platform::RUBY then # ok
- else
- raise Gem::InvalidSpecificationException,
- "invalid platform #{platform.inspect}, see Gem::Platform"
- end
+ ##
+ # The default (generated) file name of the gem. See also #spec_name.
+ #
+ # spec.file_name # => "example-1.0.gem"
- unless Array === authors and
- authors.all? { |author| String === author } then
- raise Gem::InvalidSpecificationException,
- 'authors must be Array of Strings'
- end
+ def file_name
+ "#{full_name}.gem"
+ end
+
+ ##
+ # Files included in this gem. You cannot append to this accessor, you must
+ # assign to it.
+ #
+ # Only add files you can require to this list, not directories, etc.
+ #
+ # Directories are automatically stripped from this list when building a gem,
+ # other non-files cause an error.
+
+ def files
+ # DO NOT CHANGE TO ||= ! This is not a normal accessor. (yes, it sucks)
+ @files = [@files,
+ @test_files,
+ add_bindir(@executables),
+ @extra_rdoc_files,
+ @extensions,
+ ].flatten.uniq.compact
+ end
- # Warnings
+ ##
+ # Sets files to +files+, ensuring it is an array.
- %w[author email homepage rubyforge_project summary].each do |attribute|
- value = self.send attribute
- alert_warning "no #{attribute} specified" if value.nil? or value.empty?
- end
+ def files= files
+ @files = Array files
+ end
- alert_warning "RDoc will not be generated (has_rdoc == false)" unless
- has_rdoc
+ ##
+ # Finds all gems that satisfy +dep+
- alert_warning "deprecated autorequire specified" if autorequire
+ def find_all_satisfiers dep
+ Gem::Specification.each do |spec|
+ yield spec if spec.satisfies_requirement? dep
+ end
+ end
- executables.each do |executable|
- executable_path = File.join bindir, executable
- shebang = File.read(executable_path, 2) == '#!'
+ private :find_all_satisfiers
- alert_warning "#{executable_path} is missing #! line" unless shebang
- end
+ ##
+ # Creates a duplicate spec without large blobs that aren't used at runtime.
- true
+ def for_cache
+ spec = dup
+
+ spec.files = nil
+ spec.test_files = nil
+
+ spec
+ end
+
+ ##
+ # The full path to the gem (install path + full name).
+
+ def full_gem_path
+ # TODO: try to get rid of this... or the awkward
+ # TODO: also, shouldn't it default to full_name if it hasn't been written?
+ return @full_gem_path if defined?(@full_gem_path) && @full_gem_path
+
+ @full_gem_path = File.expand_path File.join(gems_dir, full_name)
+
+ return @full_gem_path if File.directory? @full_gem_path
+
+ @full_gem_path = File.expand_path File.join(gems_dir, original_name)
+ end
+
+ ##
+ # Returns the full name (name-version) of this Gem. Platform information
+ # is included (name-version-platform) if it is specified and not the
+ # default Ruby platform.
+
+ def full_name
+ if platform == Gem::Platform::RUBY or platform.nil? then
+ "#{@name}-#{@version}"
+ else
+ "#{@name}-#{@version}-#{platform}"
end
+ end
- ##
- # Normalize the list of files so that:
- # * All file lists have redundancies removed.
- # * Files referenced in the extra_rdoc_files are included in the package
- # file list.
- #
- # Also, the summary and description are converted to a normal format.
+ ##
+ # Returns the full path to this spec's gem directory.
+ # eg: /usr/local/lib/ruby/1.8/gems/mygem-1.0
- def normalize
- if defined?(@extra_rdoc_files) and @extra_rdoc_files then
- @extra_rdoc_files.uniq!
- @files ||= []
- @files.concat(@extra_rdoc_files)
- end
- @files.uniq! if @files
- end
-
- ##
- # Return a list of all gems that have a dependency on this gemspec. The
- # list is structured with entries that conform to:
- #
- # [depending_gem, dependency, [list_of_gems_that_satisfy_dependency]]
-
- def dependent_gems
- out = []
- Gem.source_index.each do |name,gem|
- gem.dependencies.each do |dep|
- if self.satisfies_requirement?(dep) then
- sats = []
- find_all_satisfiers(dep) do |sat|
- sats << sat
- end
- out << [gem, dep, sats]
- end
- end
- end
- out
+ def gem_dir
+ @gem_dir ||= File.expand_path File.join(gems_dir, full_name)
+ end
+
+ ##
+ # Returns the full path to the gems directory containing this spec's
+ # gem directory. eg: /usr/local/lib/ruby/1.8/gems
+
+ def gems_dir
+ # TODO: this logic seems terribly broken, but tests fail if just base_dir
+ @gems_dir ||= File.join(loaded_from && base_dir || Gem.dir, "gems")
+ end
+
+ ##
+ # Deprecated and ignored, defaults to true.
+ #
+ # Formerly used to indicate this gem was RDoc-capable.
+
+ def has_rdoc
+ true
+ end
+
+ ##
+ # Deprecated and ignored.
+ #
+ # Formerly used to indicate this gem was RDoc-capable.
+
+ def has_rdoc= ignored
+ @has_rdoc = true
+ end
+
+ alias :has_rdoc? :has_rdoc
+
+ ##
+ # True if this gem has files in test_files
+
+ def has_unit_tests?
+ not test_files.empty?
+ end
+
+ # :stopdoc:
+ alias has_test_suite? has_unit_tests?
+ # :startdoc:
+
+ def hash # :nodoc:
+ @@attributes.inject(0) { |hash_code, (name, _)|
+ hash_code ^ self.send(name).hash
+ }
+ end
+
+ def init_with coder # :nodoc:
+ yaml_initialize coder.tag, coder.map
+ end
+
+ ##
+ # Specification constructor. Assigns the default values to the attributes
+ # and yields itself for further initialization. Optionally takes +name+ and
+ # +version+.
+
+ def initialize name = nil, version = nil
+ @loaded = false
+ @activated = false
+ @loaded_from = nil
+ @original_platform = nil
+
+ @@nil_attributes.each do |key|
+ instance_variable_set "@#{key}", nil
end
- def to_s
- "#<Gem::Specification name=#{@name} version=#{@version}>"
+ @@non_nil_attributes.each do |key|
+ default = default_value(key)
+ value = case default
+ when Time, Numeric, Symbol, true, false, nil then default
+ else default.dup
+ end
+
+ instance_variable_set "@#{key}", value
end
- def add_dependency_with_type(dependency, type, *requirements)
- requirements = if requirements.empty? then
- Gem::Requirement.default
- else
- requirements.flatten
- end
+ @new_platform = Gem::Platform::RUBY
- unless dependency.respond_to?(:name) &&
- dependency.respond_to?(:version_requirements)
+ self.name = name if name
+ self.version = version if version
- dependency = Dependency.new(dependency, requirements, type)
- end
+ yield self if block_given?
+ end
- dependencies << dependency
- end
+ ##
+ # Duplicates array_attributes from +other_spec+ so state isn't shared.
- private :add_dependency_with_type
+ def initialize_copy other_spec
+ other_ivars = other_spec.instance_variables
+ other_ivars = other_ivars.map { |ivar| ivar.intern } if # for 1.9
+ String === other_ivars.first
- def find_all_satisfiers(dep)
- Gem.source_index.each do |name,gem|
- if(gem.satisfies_requirement?(dep)) then
- yield gem
+ self.class.array_attributes.each do |name|
+ name = :"@#{name}"
+ next unless other_ivars.include? name
+
+ begin
+ val = other_spec.instance_variable_get(name)
+ if val then
+ instance_variable_set name, val.dup
+ elsif Gem.configuration.really_verbose
+ warn "WARNING: #{full_name} has an invalid nil value for #{name}"
end
+ rescue TypeError
+ e = Gem::FormatException.new \
+ "#{full_name} has an invalid value for #{name}"
+
+ e.file_path = loaded_from
+ raise e
end
end
+ end
+
+ ##
+ # The directory that this gem was installed into.
+ # TODO: rename - horrible. this is the base_dir for a gem path
+
+ def installation_path
+ loaded_from && base_dir
+ end
+
+ ##
+ # Returns a string usable in Dir.glob to match all requirable paths
+ # for this spec.
+
+ def lib_dirs_glob
+ dirs = if self.require_paths.size > 1 then
+ "{#{self.require_paths.join(',')}}"
+ else
+ self.require_paths.first
+ end
+
+ "#{self.full_gem_path}/#{dirs}"
+ end
+
+ ##
+ # Files in the Gem under one of the require_paths
- private :find_all_satisfiers
-
- ##
- # Return a string containing a Ruby code representation of the given
- # object.
-
- def ruby_code(obj)
- case obj
- when String then '%q{' + obj + '}'
- when Array then obj.inspect
- when Gem::Version then obj.to_s.inspect
- when Date then '%q{' + obj.strftime('%Y-%m-%d') + '}'
- when Time then '%q{' + obj.strftime('%Y-%m-%d') + '}'
- when Numeric then obj.inspect
- when true, false, nil then obj.inspect
- when Gem::Platform then "Gem::Platform.new(#{obj.to_a.inspect})"
- when Gem::Requirement then "Gem::Requirement.new(#{obj.to_s.inspect})"
- else raise Exception, "ruby_code case not handled: #{obj.class}"
+ def lib_files
+ @files.select do |file|
+ require_paths.any? do |path|
+ file.index(path) == 0
end
end
+ end
- private :ruby_code
+ ##
+ # Singular accessor for #licenses
- # :section: Required gemspec attributes
+ def license
+ val = licenses and val.first
+ end
- ##
- # The version of RubyGems used to create this gem
+ ##
+ # Singular accessor for #licenses
- required_attribute :rubygems_version, Gem::RubyGemsVersion
+ def license=o
+ self.licenses = [o]
+ end
- ##
- # The Gem::Specification version of this gemspec
+ ##
+ # The license(s) for the library. Each license must be a short name, no
+ # more than 64 characters.
- required_attribute :specification_version, CURRENT_SPECIFICATION_VERSION
+ def licenses
+ @licenses ||= []
+ end
- ##
- # This gem's name
+ ##
+ # Set licenses to +licenses+, ensuring it is an array.
- required_attribute :name
+ def licenses= licenses
+ @licenses = Array licenses
+ end
- ##
- # This gem's version
+ ##
+ # Set the location a Specification was loaded from. +obj+ is converted
+ # to a String.
- required_attribute :version
+ def loaded_from= path
+ @loaded_from = path.to_s
+ end
- ##
- # The date this gem was created
+ ##
+ # Sets the rubygems_version to the current RubyGems version.
- required_attribute :date, TODAY
+ def mark_version
+ @rubygems_version = Gem::VERSION
+ end
- ##
- # A short summary of this gem's description. Displayed in `gem list -d`.
+ ##
+ # Return all files in this gem that match for +glob+.
- required_attribute :summary
+ def matches_for_glob glob # TODO: rename?
+ # TODO: do we need these?? Kill it
+ glob = File.join(self.lib_dirs_glob, glob)
- ##
- # Paths in the gem to add to $LOAD_PATH when this gem is activated
+ Dir[glob].map { |f| f.untaint } # FIX our tests are broken, run w/ SAFE=1
+ end
- required_attribute :require_paths, ['lib']
+ ##
+ # Warn about unknown attributes while loading a spec.
- # :section: Optional gemspec attributes
+ def method_missing(sym, *a, &b) # :nodoc:
+ if @specification_version > CURRENT_SPECIFICATION_VERSION and
+ sym.to_s =~ /=$/ then
+ warn "ignoring #{sym} loading #{full_name}" if $DEBUG
+ else
+ super
+ end
+ end
- ##
- # A contact email for this gem
+ ##
+ # Normalize the list of files so that:
+ # * All file lists have redundancies removed.
+ # * Files referenced in the extra_rdoc_files are included in the package
+ # file list.
+
+ def normalize
+ if defined?(@extra_rdoc_files) and @extra_rdoc_files then
+ @extra_rdoc_files.uniq!
+ @files ||= []
+ @files.concat(@extra_rdoc_files)
+ end
+
+ @files = @files.uniq if @files
+ @extensions = @extensions.uniq if @extensions
+ @test_files = @test_files.uniq if @test_files
+ @executables = @executables.uniq if @executables
+ @extra_rdoc_files = @extra_rdoc_files.uniq if @extra_rdoc_files
+ end
- attribute :email
+ ##
+ # Returns the full name (name-version) of this gemspec using the original
+ # platform. For use with legacy gems.
- ##
- # The URL of this gem's home page
+ def original_name # :nodoc:
+ if platform == Gem::Platform::RUBY or platform.nil? then
+ "#{@name}-#{@version}"
+ else
+ "#{@name}-#{@version}-#{@original_platform}"
+ end
+ end
- attribute :homepage
+ ##
+ # Cruft. Use +platform+.
- ##
- # The rubyforge project this gem lives under. i.e. RubyGems'
- # rubyforge_project is "rubygems".
+ def original_platform # :nodoc:
+ @original_platform ||= platform
+ end
- attribute :rubyforge_project
+ ##
+ # The platform this gem runs on. See Gem::Platform for details.
- ##
- # A long description of this gem
+ def platform
+ @new_platform ||= Gem::Platform::RUBY
+ end
- attribute :description
+ ##
+ # The platform this gem runs on. See Gem::Platform for details.
+ #
+ # Setting this to any value other than Gem::Platform::RUBY or
+ # Gem::Platform::CURRENT is probably wrong.
- ##
- # Autorequire was used by old RubyGems to automatically require a file.
- # It no longer is supported.
+ def platform= platform
+ if @original_platform.nil? or
+ @original_platform == Gem::Platform::RUBY then
+ @original_platform = platform
+ end
- attribute :autorequire
+ case platform
+ when Gem::Platform::CURRENT then
+ @new_platform = Gem::Platform.local
+ @original_platform = @new_platform.to_s
- ##
- # The default executable for this gem.
+ when Gem::Platform then
+ @new_platform = platform
- attribute :default_executable
+ # legacy constants
+ when nil, Gem::Platform::RUBY then
+ @new_platform = Gem::Platform::RUBY
+ when 'mswin32' then # was Gem::Platform::WIN32
+ @new_platform = Gem::Platform.new 'x86-mswin32'
+ when 'i586-linux' then # was Gem::Platform::LINUX_586
+ @new_platform = Gem::Platform.new 'x86-linux'
+ when 'powerpc-darwin' then # was Gem::Platform::DARWIN
+ @new_platform = Gem::Platform.new 'ppc-darwin'
+ else
+ @new_platform = Gem::Platform.new platform
+ end
+
+ @platform = @new_platform.to_s
+
+ @new_platform
+ end
+
+ def pretty_print(q) # :nodoc:
+ q.group 2, 'Gem::Specification.new do |s|', 'end' do
+ q.breakable
+
+ # REFACTOR: each_attr - use in to_yaml as well
+ @@attributes.each do |attr_name|
+ current_value = self.send attr_name
+ if current_value != default_value(attr_name) or
+ self.class.required_attribute? attr_name then
+
+ q.text "s.#{attr_name} = "
+
+ if attr_name == :date then
+ current_value = current_value.utc
+
+ q.text "Time.utc(#{current_value.year}, #{current_value.month}, #{current_value.day})"
+ else
+ q.pp current_value
+ end
+
+ q.breakable
+ end
+ end
+ end
+ end
+
+ ##
+ # Check the spec for possible conflicts and freak out if there are any.
+
+ def raise_if_conflicts
+ other = Gem.loaded_specs[self.name]
+
+ if other and self.version != other.version then
+ # This gem is already loaded. If the currently loaded gem is not in the
+ # list of candidate gems, then we have a version conflict.
- ##
- # The path in the gem for executable scripts
+ msg = "can't activate #{full_name}, already activated #{other.full_name}"
- attribute :bindir, 'bin'
+ e = Gem::LoadError.new msg
+ e.name = self.name
+ # TODO: e.requirement = dep.requirement
- ##
- # True if this gem is RDoc-compliant
+ raise e
+ end
+
+ conf = self.conflicts
+
+ unless conf.empty? then
+ y = conf.map { |act,con|
+ "#{act.full_name} conflicts with #{con.join(", ")}"
+ }.join ", "
+
+ # TODO: improve message by saying who activated `con`
+
+ raise Gem::LoadError, "Unable to activate #{self.full_name}, because #{y}"
+ end
+ end
+
+ ##
+ # An ARGV style array of options to RDoc
+
+ def rdoc_options
+ @rdoc_options ||= []
+ end
+
+ ##
+ # Sets rdoc_options to +value+, ensuring it is an array. Don't
+ # use this, push onto the array instead.
+
+ def rdoc_options= options
+ # TODO: warn about setting instead of pushing
+ @rdoc_options = Array options
+ end
- attribute :has_rdoc, false
+ ##
+ # Singular accessor for #require_paths
+
+ def require_path
+ val = require_paths and val.first
+ end
+
+ ##
+ # Singular accessor for #require_paths
- ##
- # True if this gem supports RDoc
+ def require_path= path
+ self.require_paths = [path]
+ end
- alias :has_rdoc? :has_rdoc
+ ##
+ # The version of ruby required by this gem
- ##
- # The ruby of version required by this gem
+ def required_ruby_version= req
+ @required_ruby_version = Gem::Requirement.create req
+ end
- attribute :required_ruby_version, Gem::Requirement.default
+ ##
+ # The RubyGems version required by this gem
- ##
- # The RubyGems version required by this gem
+ def required_rubygems_version= req
+ @required_rubygems_version = Gem::Requirement.create req
+ end
- attribute :required_rubygems_version, Gem::Requirement.default
+ ##
+ # An array or things required by this gem. Not used by anything
+ # presently.
- ##
- # The platform this gem runs on. See Gem::Platform for details.
+ def requirements
+ @requirements ||= []
+ end
- attribute :platform, Gem::Platform::RUBY
+ ##
+ # Set requirements to +req+, ensuring it is an array. Don't
+ # use this, push onto the array instead.
- ##
- # The key used to sign this gem. See Gem::Security for details.
+ def requirements= req
+ # TODO: warn about setting instead of pushing
+ @requirements = Array req
+ end
- attribute :signing_key, nil
+ ##
+ # Returns the full path to this spec's ri directory.
- ##
- # The certificate chain used to sign this gem. See Gem::Security for
- # details.
+ def ri_dir
+ @ri_dir ||= File.join base_dir, 'ri', full_name
+ end
- attribute :cert_chain, []
+ ##
+ # Return a string containing a Ruby code representation of the given
+ # object.
+
+ def ruby_code(obj)
+ case obj
+ when String then obj.dump
+ when Array then '[' + obj.map { |x| ruby_code x }.join(", ") + ']'
+ when Gem::Version then obj.to_s.dump
+ when Date then obj.strftime('%Y-%m-%d').dump
+ when Time then obj.strftime('%Y-%m-%d').dump
+ when Numeric then obj.inspect
+ when true, false, nil then obj.inspect
+ when Gem::Platform then "Gem::Platform.new(#{obj.to_a.inspect})"
+ when Gem::Requirement then "Gem::Requirement.new(#{obj.to_s.inspect})"
+ else raise Gem::Exception, "ruby_code case not handled: #{obj.class}"
+ end
+ end
- ##
- # A message that gets displayed after the gem is installed
+ private :ruby_code
- attribute :post_install_message, nil
+ ##
+ # List of dependencies that will automatically be activated at runtime.
- ##
- # The list of authors who wrote this gem
+ def runtime_dependencies
+ dependencies.select { |d| d.type == :runtime }
+ end
- array_attribute :authors
+ ##
+ # True if this gem has the same attributes as +other+.
- ##
- # Files included in this gem
+ def same_attributes? spec
+ @@attributes.all? { |name, default| self.send(name) == spec.send(name) }
+ end
- array_attribute :files
+ private :same_attributes?
- ##
- # Test files included in this gem
+ ##
+ # Checks if this specification meets the requirement of +dependency+.
- array_attribute :test_files
+ def satisfies_requirement? dependency
+ return @name == dependency.name &&
+ dependency.requirement.satisfied_by?(@version)
+ end
- ##
- # An ARGV-style array of options to RDoc
+ ##
+ # Returns an object you can use to sort specifications in #sort_by.
- array_attribute :rdoc_options
+ def sort_obj
+ # TODO: this is horrible. Deprecate it.
+ [@name, @version, @new_platform == Gem::Platform::RUBY ? -1 : 1]
+ end
- ##
- # Extra files to add to RDoc
+ ##
+ # Returns the full path to the directory containing this spec's
+ # gemspec file. eg: /usr/local/lib/ruby/gems/1.8/specifications
- array_attribute :extra_rdoc_files
+ def spec_dir
+ @spec_dir ||= File.join base_dir, "specifications"
+ end
- ##
- # Executables included in the gem
+ ##
+ # Returns the full path to this spec's gemspec file.
+ # eg: /usr/local/lib/ruby/gems/1.8/specifications/mygem-1.0.gemspec
- array_attribute :executables
+ def spec_file
+ @spec_file ||= File.join spec_dir, "#{full_name}.gemspec"
+ end
- ##
- # Extensions to build when installing the gem. See
- # Gem::Installer#build_extensions for valid values.
+ ##
+ # The default name of the gemspec. See also #file_name
+ #
+ # spec.spec_name # => "example-1.0.gemspec"
- array_attribute :extensions
+ def spec_name
+ "#{full_name}.gemspec"
+ end
- ##
- # An array or things required by this gem. Not used by anything
- # presently.
+ ##
+ # A short summary of this gem's description.
- array_attribute :requirements
+ def summary= str
+ @summary = str.to_s.strip.
+ gsub(/(\w-)\n[ \t]*(\w)/, '\1\2').gsub(/\n[ \t]*/, " ") # so. weird.
+ end
- ##
- # A list of Gem::Dependency objects this gem depends on. Only appendable.
+ ##
+ # Singular accessor for #test_files
- array_attribute :dependencies
+ def test_file
+ val = test_files and val.first
+ end
- read_only :dependencies
+ ##
+ # Singular accessor for #test_files
- # :section: Aliased gemspec attributes
+ def test_file= file
+ self.test_files = [file]
+ end
- ##
- # Singular accessor for executables
+ ##
+ # Test files included in this gem. You cannot append to this accessor, you
+ # must assign to it.
+
+ def test_files
+ # Handle the possibility that we have @test_suite_file but not
+ # @test_files. This will happen when an old gem is loaded via
+ # YAML.
+ if defined? @test_suite_file then
+ @test_files = [@test_suite_file].flatten
+ @test_suite_file = nil
+ end
+ if defined?(@test_files) and @test_files then
+ @test_files
+ else
+ @test_files = []
+ end
+ end
- attribute_alias_singular :executable, :executables
+ ##
+ # Set test_files to +files+, ensuring it is an array.
- ##
- # Singular accessor for authors
+ def test_files= files
+ @test_files = Array files
+ end
- attribute_alias_singular :author, :authors
+ def test_suite_file # :nodoc:
+ # TODO: deprecate
+ test_files.first
+ end
- ##
- # Singular accessor for require_paths
+ def test_suite_file= file # :nodoc:
+ # TODO: deprecate
+ @test_files = [] unless defined? @test_files
+ @test_files << file
+ end
- attribute_alias_singular :require_path, :require_paths
+ ##
+ # Returns a Ruby code representation of this specification, such that it can
+ # be eval'ed and reconstruct the same specification later. Attributes that
+ # still have their default values are omitted.
+
+ def to_ruby
+ mark_version
+ result = []
+ result << "# -*- encoding: utf-8 -*-"
+ result << nil
+ result << "Gem::Specification.new do |s|"
+
+ result << " s.name = #{ruby_code name}"
+ result << " s.version = #{ruby_code version}"
+ unless platform.nil? or platform == Gem::Platform::RUBY then
+ result << " s.platform = #{ruby_code original_platform}"
+ end
+ result << ""
+ result << " s.required_rubygems_version = #{ruby_code required_rubygems_version} if s.respond_to? :required_rubygems_version="
+
+ handled = [
+ :dependencies,
+ :name,
+ :platform,
+ :required_rubygems_version,
+ :specification_version,
+ :version,
+ :has_rdoc,
+ :default_executable,
+ ]
+
+ @@attributes.each do |attr_name|
+ next if handled.include? attr_name
+ current_value = self.send(attr_name)
+ if current_value != default_value(attr_name) or
+ self.class.required_attribute? attr_name then
+ result << " s.#{attr_name} = #{ruby_code current_value}"
+ end
+ end
- ##
- # Singular accessor for test_files
+ result << nil
+ result << " if s.respond_to? :specification_version then"
+ result << " s.specification_version = #{specification_version}"
+ result << nil
- attribute_alias_singular :test_file, :test_files
+ result << " if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then"
- overwrite_accessor :version= do |version|
- @version = Version.create(version)
+ dependencies.each do |dep|
+ req = dep.requirements_list.inspect
+ dep.instance_variable_set :@type, :runtime if dep.type.nil? # HACK
+ result << " s.add_#{dep.type}_dependency(%q<#{dep.name}>, #{req})"
end
- overwrite_accessor :platform do
- @new_platform
+ result << " else"
+
+ dependencies.each do |dep|
+ version_reqs_param = dep.requirements_list.inspect
+ result << " s.add_dependency(%q<#{dep.name}>, #{version_reqs_param})"
end
- overwrite_accessor :platform= do |platform|
- if @original_platform.nil? or
- @original_platform == Gem::Platform::RUBY then
- @original_platform = platform
+ result << ' end'
+
+ result << " else"
+ dependencies.each do |dep|
+ version_reqs_param = dep.requirements_list.inspect
+ result << " s.add_dependency(%q<#{dep.name}>, #{version_reqs_param})"
end
+ result << " end"
- case platform
- when Gem::Platform::CURRENT then
- @new_platform = Gem::Platform.local
- @original_platform = @new_platform.to_s
-
- when Gem::Platform then
- @new_platform = platform
-
- # legacy constants
- when nil, Gem::Platform::RUBY then
- @new_platform = Gem::Platform::RUBY
- when 'mswin32' then # was Gem::Platform::WIN32
- @new_platform = Gem::Platform.new 'x86-mswin32'
- when 'mswin64' then
- @new_platform = Gem::Platform.new 'x86-mswin64'
- when 'i586-linux' then # was Gem::Platform::LINUX_586
- @new_platform = Gem::Platform.new 'x86-linux'
- when 'powerpc-darwin' then # was Gem::Platform::DARWIN
- @new_platform = Gem::Platform.new 'ppc-darwin'
- else
- @new_platform = Gem::Platform.new platform
+ result << "end"
+ result << nil
+
+ result.join "\n"
+ end
+
+ ##
+ # Returns a Ruby lighter-weight code representation of this specification,
+ # used for indexing only.
+ #
+ # See #to_ruby.
+
+ def to_ruby_for_cache
+ for_cache.to_ruby
+ end
+
+ def to_s # :nodoc:
+ "#<Gem::Specification name=#{@name} version=#{@version}>"
+ end
+
+ def to_yaml(opts = {}) # :nodoc:
+ if YAML.const_defined?(:ENGINE) && !YAML::ENGINE.syck? then
+ # Because the user can switch the YAML engine behind our
+ # back, we have to check again here to make sure that our
+ # psych code was properly loaded, and load it if not.
+ unless Gem.const_defined?(:NoAliasYAMLTree)
+ require 'rubygems/psych_tree'
+ end
+
+ builder = Gem::NoAliasYAMLTree.new({})
+ builder << self
+ ast = builder.tree
+
+ io = StringIO.new
+
+ Psych::Visitors::Emitter.new(io).accept(ast)
+
+ io.string.gsub(/ !!null \n/, " \n")
+ else
+ YAML.quick_emit object_id, opts do |out|
+ out.map taguri, to_yaml_style do |map|
+ encode_with map
+ end
+ end
+ end
+ end
+
+ ##
+ # Recursively walk dependencies of this spec, executing the +block+ for each
+ # hop.
+
+ def traverse trail = [], &block
+ trail = trail + [self]
+ runtime_dependencies.each do |dep|
+ dep.to_specs.each do |dep_spec|
+ block[self, dep, dep_spec, trail + [dep_spec]]
+ dep_spec.traverse(trail, &block) unless
+ trail.map(&:name).include? dep_spec.name
end
+ end
+ end
+
+ ##
+ # Checks that the specification contains all required fields, and does a
+ # very basic sanity check.
+ #
+ # Raises InvalidSpecificationException if the spec does not pass the
+ # checks..
- @platform = @new_platform.to_s
+ def validate packaging = true
+ require 'rubygems/user_interaction'
+ extend Gem::UserInteraction
+ normalize
- @new_platform
+ nil_attributes = self.class.non_nil_attributes.find_all do |name|
+ instance_variable_get("@#{name}").nil?
end
- overwrite_accessor :required_ruby_version= do |value|
- @required_ruby_version = Gem::Requirement.create(value)
+ unless nil_attributes.empty? then
+ raise Gem::InvalidSpecificationException,
+ "#{nil_attributes.join ', '} must not be nil"
end
- overwrite_accessor :required_rubygems_version= do |value|
- @required_rubygems_version = Gem::Requirement.create(value)
+ if packaging and rubygems_version != Gem::VERSION then
+ raise Gem::InvalidSpecificationException,
+ "expected RubyGems version #{Gem::VERSION}, was #{rubygems_version}"
end
- overwrite_accessor :date= do |date|
- # We want to end up with a Time object with one-day resolution.
- # This is the cleanest, most-readable, faster-than-using-Date
- # way to do it.
- case date
- when String then
- @date = if /\A(\d{4})-(\d{2})-(\d{2})\Z/ =~ date then
- Time.local($1.to_i, $2.to_i, $3.to_i)
- else
- require 'time'
- Time.parse date
- end
- when Time then
- @date = Time.local(date.year, date.month, date.day)
- when Date then
- @date = Time.local(date.year, date.month, date.day)
- else
- @date = TODAY
+ @@required_attributes.each do |symbol|
+ unless self.send symbol then
+ raise Gem::InvalidSpecificationException,
+ "missing value for attribute #{symbol}"
end
end
- overwrite_accessor :date do
- self.date = nil if @date.nil? # HACK Sets the default value for date
- @date
+ unless String === name then
+ raise Gem::InvalidSpecificationException,
+ "invalid value for attribute name: \"#{name.inspect}\""
end
- overwrite_accessor :summary= do |str|
- @summary = if str then
- str.strip.
- gsub(/(\w-)\n[ \t]*(\w)/, '\1\2').
- gsub(/\n[ \t]*/, " ")
- end
+ if require_paths.empty? then
+ raise Gem::InvalidSpecificationException,
+ 'specification must have at least one require_path'
end
- overwrite_accessor :description= do |str|
- @description = if str then
- str.strip.
- gsub(/(\w-)\n[ \t]*(\w)/, '\1\2').
- gsub(/\n[ \t]*/, " ")
- end
+ @files.delete_if { |x| File.directory?(x) }
+ @test_files.delete_if { |x| File.directory?(x) }
+ @executables.delete_if { |x| File.directory?(File.join(@bindir, x)) }
+ @extra_rdoc_files.delete_if { |x| File.directory?(x) }
+ @extensions.delete_if { |x| File.directory?(x) }
+
+ non_files = files.reject { |x| File.file?(x) }
+
+ unless not packaging or non_files.empty? then
+ raise Gem::InvalidSpecificationException,
+ "[\"#{non_files.join "\", \""}\"] are not files"
end
- overwrite_accessor :default_executable do
- begin
- if defined?(@default_executable) and @default_executable
- result = @default_executable
- elsif @executables and @executables.size == 1
- result = Array(@executables).first
- else
- result = nil
- end
- result
- rescue
- nil
- end
+ unless specification_version.is_a?(Fixnum)
+ raise Gem::InvalidSpecificationException,
+ 'specification_version must be a Fixnum (did you mean version?)'
end
- overwrite_accessor :test_files do
- # Handle the possibility that we have @test_suite_file but not
- # @test_files. This will happen when an old gem is loaded via
- # YAML.
- if defined? @test_suite_file then
- @test_files = [@test_suite_file].flatten
- @test_suite_file = nil
+ case platform
+ when Gem::Platform, Gem::Platform::RUBY then # ok
+ else
+ raise Gem::InvalidSpecificationException,
+ "invalid platform #{platform.inspect}, see Gem::Platform"
+ end
+
+ self.class.array_attributes.each do |field|
+ val = self.send field
+ klass = case field
+ when :dependencies
+ Gem::Dependency
+ else
+ String
+ end
+
+ unless Array === val and val.all? { |x| x.kind_of?(klass) } then
+ raise(Gem::InvalidSpecificationException,
+ "#{field} must be an Array of #{klass}")
end
- if defined?(@test_files) and @test_files then
- @test_files
- else
- @test_files = []
+ end
+
+ [:authors].each do |field|
+ val = self.send field
+ raise Gem::InvalidSpecificationException, "#{field} may not be empty" if
+ val.empty?
+ end
+
+ licenses.each { |license|
+ if license.length > 64
+ raise Gem::InvalidSpecificationException,
+ "each license must be 64 characters or less"
end
+ }
+
+ # reject lazy developers:
+
+ lazy = '"FIxxxXME" or "TOxxxDO"'.gsub(/xxx/, '')
+
+ unless authors.grep(/FI XME|TO DO/x).empty? then
+ raise Gem::InvalidSpecificationException, "#{lazy} is not an author"
+ end
+
+ unless Array(email).grep(/FI XME|TO DO/x).empty? then
+ raise Gem::InvalidSpecificationException, "#{lazy} is not an email"
+ end
+
+ if description =~ /FI XME|TO DO/x then
+ raise Gem::InvalidSpecificationException, "#{lazy} is not a description"
+ end
+
+ if summary =~ /FI XME|TO DO/x then
+ raise Gem::InvalidSpecificationException, "#{lazy} is not a summary"
+ end
+
+ if homepage and not homepage.empty? and
+ homepage !~ /\A[a-z][a-z\d+.-]*:/i then
+ raise Gem::InvalidSpecificationException,
+ "\"#{homepage}\" is not a URI"
+ end
+
+ # Warnings
+
+ %w[author description email homepage summary].each do |attribute|
+ value = self.send attribute
+ alert_warning "no #{attribute} specified" if value.nil? or value.empty?
+ end
+
+ if description == summary then
+ alert_warning 'description and summary are identical'
+ end
+
+ # TODO: raise at some given date
+ alert_warning "deprecated autorequire specified" if autorequire
+
+ executables.each do |executable|
+ executable_path = File.join(bindir, executable)
+ shebang = File.read(executable_path, 2) == '#!'
+
+ alert_warning "#{executable_path} is missing #! line" unless shebang
end
- overwrite_accessor :files do
- result = []
- result.push(*@files) if defined?(@files)
- result.push(*@test_files) if defined?(@test_files)
- result.push(*(add_bindir(@executables)))
- result.push(*@extra_rdoc_files) if defined?(@extra_rdoc_files)
- result.push(*@extensions) if defined?(@extensions)
- result.uniq.compact
+ true
+ end
+
+ ##
+ # Set the version to +version+, potentially also setting
+ # required_rubygems_version if +version+ indicates it is a
+ # prerelease.
+
+ def version= version
+ @version = Gem::Version.create(version)
+ self.required_rubygems_version = '> 1.3.1' if @version.prerelease?
+ return @version
+ end
+
+ # FIX: have this handle the platform/new_platform/original_platform bullshit
+ def yaml_initialize(tag, vals) # :nodoc:
+ vals.each do |ivar, val|
+ case ivar
+ when "date"
+ # Force Date to go through the extra coerce logic in date=
+ self.date = val.untaint
+ else
+ instance_variable_set "@#{ivar}", val.untaint
+ end
end
+ @original_platform = @platform # for backwards compatibility
+ self.platform = Gem::Platform.new @platform
end
+ extend Gem::Deprecate
+
+ deprecate :test_suite_file, :test_file, 2011, 10
+ deprecate :test_suite_file=, :test_file=, 2011, 10
+ deprecate :loaded, :activated, 2011, 10
+ deprecate :loaded?, :activated?, 2011, 10
+ deprecate :loaded=, :activated=, 2011, 10
+ deprecate :installation_path, :base_dir, 2011, 10
+ deprecate :cache_gem, :cache_file, 2011, 10
+ # TODO:
+ # deprecate :has_rdoc, :none, 2011, 10
+ # deprecate :has_rdoc?, :none, 2011, 10
+ # deprecate :has_rdoc=, :none, 2011, 10
+ # deprecate :default_executable, :none, 2011, 10
+ # deprecate :default_executable=, :none, 2011, 10
+ # deprecate :spec_name, :spec_file, 2011, 10
+ # deprecate :file_name, :cache_file, 2011, 10
+ # deprecate :full_gem_path, :cache_file, 2011, 10
end
+Gem.clear_paths
+
diff --git a/lib/rubygems/ssl_certs/ca-bundle.pem b/lib/rubygems/ssl_certs/ca-bundle.pem
new file mode 100644
index 0000000000..b4dac9112f
--- /dev/null
+++ b/lib/rubygems/ssl_certs/ca-bundle.pem
@@ -0,0 +1,3366 @@
+##
+## ca-bundle.crt -- Bundle of CA Root Certificates
+##
+## Certificate data from Mozilla as of: Sun Feb 19 04:03:37 2012
+##
+## This is a bundle of X.509 certificates of public Certificate Authorities
+## (CA). These were automatically extracted from Mozilla's root certificates
+## file (certdata.txt). This file can be found in the mozilla source tree:
+## https://mxr.mozilla.org/mozilla/source/security/nss/lib/ckfw/builtins/certdata.txt?raw=1
+##
+## It contains the certificates in PEM format and therefore
+## can be directly used with curl / libcurl / php_curl, or with
+## an Apache+mod_ssl webserver for SSL client authentication.
+## Just configure this file as the SSLCACertificateFile.
+##
+
+# ***** BEGIN LICENSE BLOCK *****
+# Version: MPL 1.1/GPL 2.0/LGPL 2.1
+#
+# The contents of this file are subject to the Mozilla Public License Version
+# 1.1 (the "License"); you may not use this file except in compliance with
+# the License. You may obtain a copy of the License at
+# http://www.mozilla.org/MPL/
+#
+# Software distributed under the License is distributed on an "AS IS" basis,
+# WITHOUT WARRANTY OF ANY KIND, either express or implied. See the License
+# for the specific language governing rights and limitations under the
+# License.
+#
+# The Original Code is the Netscape security libraries.
+#
+# The Initial Developer of the Original Code is
+# Netscape Communications Corporation.
+# Portions created by the Initial Developer are Copyright (C) 1994-2000
+# the Initial Developer. All Rights Reserved.
+#
+# Contributor(s):
+#
+# Alternatively, the contents of this file may be used under the terms of
+# either the GNU General Public License Version 2 or later (the "GPL"), or
+# the GNU Lesser General Public License Version 2.1 or later (the "LGPL"),
+# in which case the provisions of the GPL or the LGPL are applicable instead
+# of those above. If you wish to allow use of your version of this file only
+# under the terms of either the GPL or the LGPL, and not to allow others to
+# use your version of this file under the terms of the MPL, indicate your
+# decision by deleting the provisions above and replace them with the notice
+# and other provisions required by the GPL or the LGPL. If you do not delete
+# the provisions above, a recipient may use your version of this file under
+# the terms of any one of the MPL, the GPL or the LGPL.
+#
+# ***** END LICENSE BLOCK *****
+# @(#) $RCSfile: certdata.txt,v $ $Revision: 1.82 $ $Date: 2012/02/18 21:41:46 $
+
+GTE CyberTrust Global Root
+==========================
+-----BEGIN CERTIFICATE-----
+MIICWjCCAcMCAgGlMA0GCSqGSIb3DQEBBAUAMHUxCzAJBgNVBAYTAlVTMRgwFgYDVQQKEw9HVEUg
+Q29ycG9yYXRpb24xJzAlBgNVBAsTHkdURSBDeWJlclRydXN0IFNvbHV0aW9ucywgSW5jLjEjMCEG
+A1UEAxMaR1RFIEN5YmVyVHJ1c3QgR2xvYmFsIFJvb3QwHhcNOTgwODEzMDAyOTAwWhcNMTgwODEz
+MjM1OTAwWjB1MQswCQYDVQQGEwJVUzEYMBYGA1UEChMPR1RFIENvcnBvcmF0aW9uMScwJQYDVQQL
+Ex5HVEUgQ3liZXJUcnVzdCBTb2x1dGlvbnMsIEluYy4xIzAhBgNVBAMTGkdURSBDeWJlclRydXN0
+IEdsb2JhbCBSb290MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQCVD6C28FCc6HrHiM3dFw4u
+sJTQGz0O9pTAipTHBsiQl8i4ZBp6fmw8U+E3KHNgf7KXUwefU/ltWJTSr41tiGeA5u2ylc9yMcql
+HHK6XALnZELn+aks1joNrI1CqiQBOeacPwGFVw1Yh0X404Wqk2kmhXBIgD8SFcd5tB8FLztimQID
+AQABMA0GCSqGSIb3DQEBBAUAA4GBAG3rGwnpXtlR22ciYaQqPEh346B8pt5zohQDhT37qw4wxYMW
+M4ETCJ57NE7fQMh017l93PR2VX2bY1QY6fDq81yx2YtCHrnAlU66+tXifPVoYb+O7AWXX1uw16OF
+NMQkpw0PlZPvy5TYnh+dXIVtx6quTx8itc2VrbqnzPmrC3p/
+-----END CERTIFICATE-----
+
+Thawte Server CA
+================
+-----BEGIN CERTIFICATE-----
+MIIDEzCCAnygAwIBAgIBATANBgkqhkiG9w0BAQQFADCBxDELMAkGA1UEBhMCWkExFTATBgNVBAgT
+DFdlc3Rlcm4gQ2FwZTESMBAGA1UEBxMJQ2FwZSBUb3duMR0wGwYDVQQKExRUaGF3dGUgQ29uc3Vs
+dGluZyBjYzEoMCYGA1UECxMfQ2VydGlmaWNhdGlvbiBTZXJ2aWNlcyBEaXZpc2lvbjEZMBcGA1UE
+AxMQVGhhd3RlIFNlcnZlciBDQTEmMCQGCSqGSIb3DQEJARYXc2VydmVyLWNlcnRzQHRoYXd0ZS5j
+b20wHhcNOTYwODAxMDAwMDAwWhcNMjAxMjMxMjM1OTU5WjCBxDELMAkGA1UEBhMCWkExFTATBgNV
+BAgTDFdlc3Rlcm4gQ2FwZTESMBAGA1UEBxMJQ2FwZSBUb3duMR0wGwYDVQQKExRUaGF3dGUgQ29u
+c3VsdGluZyBjYzEoMCYGA1UECxMfQ2VydGlmaWNhdGlvbiBTZXJ2aWNlcyBEaXZpc2lvbjEZMBcG
+A1UEAxMQVGhhd3RlIFNlcnZlciBDQTEmMCQGCSqGSIb3DQEJARYXc2VydmVyLWNlcnRzQHRoYXd0
+ZS5jb20wgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBANOkUG7I/1Zr5s9dtuoMaHVHoqrC2oQl
+/Kj0R1HahbUgdJSGHg91yekIYfUGbTBuFRkC6VLAYttNmZ7iagxEOM3+vuNkCXDF/rFrKbYvScg7
+1CcEJRCXL+eQbcAoQpnXTEPew/UhbVSfXcNY4cDk2VuwuNy0e982OsK1ZiIS1ocNAgMBAAGjEzAR
+MA8GA1UdEwEB/wQFMAMBAf8wDQYJKoZIhvcNAQEEBQADgYEAB/pMaVz7lcxG7oWDTSEwjsrZqG9J
+GubaUeNgcGyEYRGhGshIPllDfU+VPaGLtwtimHp1it2ITk6eQNuozDJ0uW8NxuOzRAvZim+aKZuZ
+GCg70eNAKJpaPNW15yAbi8qkq43pUdniTCxZqdq5snUb9kLy78fyGPmJvKP/iiMucEc=
+-----END CERTIFICATE-----
+
+Thawte Premium Server CA
+========================
+-----BEGIN CERTIFICATE-----
+MIIDJzCCApCgAwIBAgIBATANBgkqhkiG9w0BAQQFADCBzjELMAkGA1UEBhMCWkExFTATBgNVBAgT
+DFdlc3Rlcm4gQ2FwZTESMBAGA1UEBxMJQ2FwZSBUb3duMR0wGwYDVQQKExRUaGF3dGUgQ29uc3Vs
+dGluZyBjYzEoMCYGA1UECxMfQ2VydGlmaWNhdGlvbiBTZXJ2aWNlcyBEaXZpc2lvbjEhMB8GA1UE
+AxMYVGhhd3RlIFByZW1pdW0gU2VydmVyIENBMSgwJgYJKoZIhvcNAQkBFhlwcmVtaXVtLXNlcnZl
+ckB0aGF3dGUuY29tMB4XDTk2MDgwMTAwMDAwMFoXDTIwMTIzMTIzNTk1OVowgc4xCzAJBgNVBAYT
+AlpBMRUwEwYDVQQIEwxXZXN0ZXJuIENhcGUxEjAQBgNVBAcTCUNhcGUgVG93bjEdMBsGA1UEChMU
+VGhhd3RlIENvbnN1bHRpbmcgY2MxKDAmBgNVBAsTH0NlcnRpZmljYXRpb24gU2VydmljZXMgRGl2
+aXNpb24xITAfBgNVBAMTGFRoYXd0ZSBQcmVtaXVtIFNlcnZlciBDQTEoMCYGCSqGSIb3DQEJARYZ
+cHJlbWl1bS1zZXJ2ZXJAdGhhd3RlLmNvbTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA0jY2
+aovXwlue2oFBYo847kkEVdbQ7xwblRZH7xhINTpS9CtqBo87L+pW46+GjZ4X9560ZXUCTe/LCaIh
+Udib0GfQug2SBhRz1JPLlyoAnFxODLz6FVL88kRu2hFKbgifLy3j+ao6hnO2RlNYyIkFvYMRuHM/
+qgeN9EJN50CdHDcCAwEAAaMTMBEwDwYDVR0TAQH/BAUwAwEB/zANBgkqhkiG9w0BAQQFAAOBgQAm
+SCwWwlj66BZ0DKqqX1Q/8tfJeGBeXm43YyJ3Nn6yF8Q0ufUIhfzJATj/Tb7yFkJD57taRvvBxhEf
+8UqwKEbJw8RCfbz6q1lu1bdRiBHjpIUZa4JMpAwSremkrj/xw0llmozFyD4lt5SZu5IycQfwhl7t
+UCemDaYj+bvLpgcUQg==
+-----END CERTIFICATE-----
+
+Equifax Secure CA
+=================
+-----BEGIN CERTIFICATE-----
+MIIDIDCCAomgAwIBAgIENd70zzANBgkqhkiG9w0BAQUFADBOMQswCQYDVQQGEwJVUzEQMA4GA1UE
+ChMHRXF1aWZheDEtMCsGA1UECxMkRXF1aWZheCBTZWN1cmUgQ2VydGlmaWNhdGUgQXV0aG9yaXR5
+MB4XDTk4MDgyMjE2NDE1MVoXDTE4MDgyMjE2NDE1MVowTjELMAkGA1UEBhMCVVMxEDAOBgNVBAoT
+B0VxdWlmYXgxLTArBgNVBAsTJEVxdWlmYXggU2VjdXJlIENlcnRpZmljYXRlIEF1dGhvcml0eTCB
+nzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAwV2xWGcIYu6gmi0fCG2RFGiYCh7+2gRvE4RiIcPR
+fM6fBeC4AfBONOziipUEZKzxa1NfBbPLZ4C/QgKO/t0BCezhABRP/PvwDN1Dulsr4R+AcJkVV5MW
+8Q+XarfCaCMczE1ZMKxRHjuvK9buY0V7xdlfUNLjUA86iOe/FP3gx7kCAwEAAaOCAQkwggEFMHAG
+A1UdHwRpMGcwZaBjoGGkXzBdMQswCQYDVQQGEwJVUzEQMA4GA1UEChMHRXF1aWZheDEtMCsGA1UE
+CxMkRXF1aWZheCBTZWN1cmUgQ2VydGlmaWNhdGUgQXV0aG9yaXR5MQ0wCwYDVQQDEwRDUkwxMBoG
+A1UdEAQTMBGBDzIwMTgwODIyMTY0MTUxWjALBgNVHQ8EBAMCAQYwHwYDVR0jBBgwFoAUSOZo+SvS
+spXXR9gjIBBPM5iQn9QwHQYDVR0OBBYEFEjmaPkr0rKV10fYIyAQTzOYkJ/UMAwGA1UdEwQFMAMB
+Af8wGgYJKoZIhvZ9B0EABA0wCxsFVjMuMGMDAgbAMA0GCSqGSIb3DQEBBQUAA4GBAFjOKer89961
+zgK5F7WF0bnj4JXMJTENAKaSbn+2kmOeUJXRmm/kEd5jhW6Y7qj/WsjTVbJmcVfewCHrPSqnI0kB
+BIZCe/zuf6IWUrVnZ9NA2zsmWLIodz2uFHdh1voqZiegDfqnc1zqcPGUIWVEX/r87yloqaKHee95
+70+sB3c4
+-----END CERTIFICATE-----
+
+Digital Signature Trust Co. Global CA 1
+=======================================
+-----BEGIN CERTIFICATE-----
+MIIDKTCCApKgAwIBAgIENnAVljANBgkqhkiG9w0BAQUFADBGMQswCQYDVQQGEwJVUzEkMCIGA1UE
+ChMbRGlnaXRhbCBTaWduYXR1cmUgVHJ1c3QgQ28uMREwDwYDVQQLEwhEU1RDQSBFMTAeFw05ODEy
+MTAxODEwMjNaFw0xODEyMTAxODQwMjNaMEYxCzAJBgNVBAYTAlVTMSQwIgYDVQQKExtEaWdpdGFs
+IFNpZ25hdHVyZSBUcnVzdCBDby4xETAPBgNVBAsTCERTVENBIEUxMIGdMA0GCSqGSIb3DQEBAQUA
+A4GLADCBhwKBgQCgbIGpzzQeJN3+hijM3oMv+V7UQtLodGBmE5gGHKlREmlvMVW5SXIACH7TpWJE
+NySZj9mDSI+ZbZUTu0M7LklOiDfBu1h//uG9+LthzfNHwJmm8fOR6Hh8AMthyUQncWlVSn5JTe2i
+o74CTADKAqjuAQIxZA9SLRN0dja1erQtcQIBA6OCASQwggEgMBEGCWCGSAGG+EIBAQQEAwIABzBo
+BgNVHR8EYTBfMF2gW6BZpFcwVTELMAkGA1UEBhMCVVMxJDAiBgNVBAoTG0RpZ2l0YWwgU2lnbmF0
+dXJlIFRydXN0IENvLjERMA8GA1UECxMIRFNUQ0EgRTExDTALBgNVBAMTBENSTDEwKwYDVR0QBCQw
+IoAPMTk5ODEyMTAxODEwMjNagQ8yMDE4MTIxMDE4MTAyM1owCwYDVR0PBAQDAgEGMB8GA1UdIwQY
+MBaAFGp5fpFpRhgTCgJ3pVlbYJglDqL4MB0GA1UdDgQWBBRqeX6RaUYYEwoCd6VZW2CYJQ6i+DAM
+BgNVHRMEBTADAQH/MBkGCSqGSIb2fQdBAAQMMAobBFY0LjADAgSQMA0GCSqGSIb3DQEBBQUAA4GB
+ACIS2Hod3IEGtgllsofIH160L+nEHvI8wbsEkBFKg05+k7lNQseSJqBcNJo4cvj9axY+IO6CizEq
+kzaFI4iKPANo08kJD038bKTaKHKTDomAsH3+gG9lbRgzl4vCa4nuYD3Im+9/KzJic5PLPON74nZ4
+RbyhkwS7hp86W0N6w4pl
+-----END CERTIFICATE-----
+
+Digital Signature Trust Co. Global CA 3
+=======================================
+-----BEGIN CERTIFICATE-----
+MIIDKTCCApKgAwIBAgIENm7TzjANBgkqhkiG9w0BAQUFADBGMQswCQYDVQQGEwJVUzEkMCIGA1UE
+ChMbRGlnaXRhbCBTaWduYXR1cmUgVHJ1c3QgQ28uMREwDwYDVQQLEwhEU1RDQSBFMjAeFw05ODEy
+MDkxOTE3MjZaFw0xODEyMDkxOTQ3MjZaMEYxCzAJBgNVBAYTAlVTMSQwIgYDVQQKExtEaWdpdGFs
+IFNpZ25hdHVyZSBUcnVzdCBDby4xETAPBgNVBAsTCERTVENBIEUyMIGdMA0GCSqGSIb3DQEBAQUA
+A4GLADCBhwKBgQC/k48Xku8zExjrEH9OFr//Bo8qhbxe+SSmJIi2A7fBw18DW9Fvrn5C6mYjuGOD
+VvsoLeE4i7TuqAHhzhy2iCoiRoX7n6dwqUcUP87eZfCocfdPJmyMvMa1795JJ/9IKn3oTQPMx7JS
+xhcxEzu1TdvIxPbDDyQq2gyd55FbgM2UnQIBA6OCASQwggEgMBEGCWCGSAGG+EIBAQQEAwIABzBo
+BgNVHR8EYTBfMF2gW6BZpFcwVTELMAkGA1UEBhMCVVMxJDAiBgNVBAoTG0RpZ2l0YWwgU2lnbmF0
+dXJlIFRydXN0IENvLjERMA8GA1UECxMIRFNUQ0EgRTIxDTALBgNVBAMTBENSTDEwKwYDVR0QBCQw
+IoAPMTk5ODEyMDkxOTE3MjZagQ8yMDE4MTIwOTE5MTcyNlowCwYDVR0PBAQDAgEGMB8GA1UdIwQY
+MBaAFB6CTShlgDzJQW6sNS5ay97u+DlbMB0GA1UdDgQWBBQegk0oZYA8yUFurDUuWsve7vg5WzAM
+BgNVHRMEBTADAQH/MBkGCSqGSIb2fQdBAAQMMAobBFY0LjADAgSQMA0GCSqGSIb3DQEBBQUAA4GB
+AEeNg61i8tuwnkUiBbmi1gMOOHLnnvx75pO2mqWilMg0HZHRxdf0CiUPPXiBng+xZ8SQTGPdXqfi
+up/1902lMXucKS1M/mQ+7LZT/uqb7YLbdHVLB3luHtgZg3Pe9T7Qtd7nS2h9Qy4qIOF+oHhEngj1
+mPnHfxsb1gYgAlihw6ID
+-----END CERTIFICATE-----
+
+Verisign Class 3 Public Primary Certification Authority
+=======================================================
+-----BEGIN CERTIFICATE-----
+MIICPDCCAaUCEHC65B0Q2Sk0tjjKewPMur8wDQYJKoZIhvcNAQECBQAwXzELMAkGA1UEBhMCVVMx
+FzAVBgNVBAoTDlZlcmlTaWduLCBJbmMuMTcwNQYDVQQLEy5DbGFzcyAzIFB1YmxpYyBQcmltYXJ5
+IENlcnRpZmljYXRpb24gQXV0aG9yaXR5MB4XDTk2MDEyOTAwMDAwMFoXDTI4MDgwMTIzNTk1OVow
+XzELMAkGA1UEBhMCVVMxFzAVBgNVBAoTDlZlcmlTaWduLCBJbmMuMTcwNQYDVQQLEy5DbGFzcyAz
+IFB1YmxpYyBQcmltYXJ5IENlcnRpZmljYXRpb24gQXV0aG9yaXR5MIGfMA0GCSqGSIb3DQEBAQUA
+A4GNADCBiQKBgQDJXFme8huKARS0EN8EQNvjV69qRUCPhAwL0TPZ2RHP7gJYHyX3KqhEBarsAx94
+f56TuZoAqiN91qyFomNFx3InzPRMxnVx0jnvT0Lwdd8KkMaOIG+YD/isI19wKTakyYbnsZogy1Ol
+hec9vn2a/iRFM9x2Fe0PonFkTGUugWhFpwIDAQABMA0GCSqGSIb3DQEBAgUAA4GBALtMEivPLCYA
+TxQT3ab7/AoRhIzzKBxnki98tsX63/Dolbwdj2wsqFHMc9ikwFPwTtYmwHYBV4GSXiHx0bH/59Ah
+WM1pF+NEHJwZRDmJXNycAA9WjQKZ7aKQRUzkuxCkPfAyAw7xzvjoyVGM5mKf5p/AfbdynMk2Omuf
+Tqj/ZA1k
+-----END CERTIFICATE-----
+
+Verisign Class 3 Public Primary Certification Authority - G2
+============================================================
+-----BEGIN CERTIFICATE-----
+MIIDAjCCAmsCEH3Z/gfPqB63EHln+6eJNMYwDQYJKoZIhvcNAQEFBQAwgcExCzAJBgNVBAYTAlVT
+MRcwFQYDVQQKEw5WZXJpU2lnbiwgSW5jLjE8MDoGA1UECxMzQ2xhc3MgMyBQdWJsaWMgUHJpbWFy
+eSBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eSAtIEcyMTowOAYDVQQLEzEoYykgMTk5OCBWZXJpU2ln
+biwgSW5jLiAtIEZvciBhdXRob3JpemVkIHVzZSBvbmx5MR8wHQYDVQQLExZWZXJpU2lnbiBUcnVz
+dCBOZXR3b3JrMB4XDTk4MDUxODAwMDAwMFoXDTI4MDgwMTIzNTk1OVowgcExCzAJBgNVBAYTAlVT
+MRcwFQYDVQQKEw5WZXJpU2lnbiwgSW5jLjE8MDoGA1UECxMzQ2xhc3MgMyBQdWJsaWMgUHJpbWFy
+eSBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eSAtIEcyMTowOAYDVQQLEzEoYykgMTk5OCBWZXJpU2ln
+biwgSW5jLiAtIEZvciBhdXRob3JpemVkIHVzZSBvbmx5MR8wHQYDVQQLExZWZXJpU2lnbiBUcnVz
+dCBOZXR3b3JrMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQDMXtERXVxp0KvTuWpMmR9ZmDCO
+FoUgRm1HP9SFIIThbbP4pO0M8RcPO/mn+SXXwc+EY/J8Y8+iR/LGWzOOZEAEaMGAuWQcRXfH2G71
+lSk8UOg013gfqLptQ5GVj0VXXn7F+8qkBOvqlzdUMG+7AUcyM83cV5tkaWH4mx0ciU9cZwIDAQAB
+MA0GCSqGSIb3DQEBBQUAA4GBAFFNzb5cy5gZnBWyATl4Lk0PZ3BwmcYQWpSkU01UbSuvDV1Ai2TT
+1+7eVmGSX6bEHRBhNtMsJzzoKQm5EWR0zLVznxxIqbxhAe7iF6YM40AIOw7n60RzKprxaZLvcRTD
+Oaxxp5EJb+RxBrO6WVcmeQD2+A2iMzAo1KpYoJ2daZH9
+-----END CERTIFICATE-----
+
+GlobalSign Root CA
+==================
+-----BEGIN CERTIFICATE-----
+MIIDdTCCAl2gAwIBAgILBAAAAAABFUtaw5QwDQYJKoZIhvcNAQEFBQAwVzELMAkGA1UEBhMCQkUx
+GTAXBgNVBAoTEEdsb2JhbFNpZ24gbnYtc2ExEDAOBgNVBAsTB1Jvb3QgQ0ExGzAZBgNVBAMTEkds
+b2JhbFNpZ24gUm9vdCBDQTAeFw05ODA5MDExMjAwMDBaFw0yODAxMjgxMjAwMDBaMFcxCzAJBgNV
+BAYTAkJFMRkwFwYDVQQKExBHbG9iYWxTaWduIG52LXNhMRAwDgYDVQQLEwdSb290IENBMRswGQYD
+VQQDExJHbG9iYWxTaWduIFJvb3QgQ0EwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDa
+DuaZjc6j40+Kfvvxi4Mla+pIH/EqsLmVEQS98GPR4mdmzxzdzxtIK+6NiY6arymAZavpxy0Sy6sc
+THAHoT0KMM0VjU/43dSMUBUc71DuxC73/OlS8pF94G3VNTCOXkNz8kHp1Wrjsok6Vjk4bwY8iGlb
+Kk3Fp1S4bInMm/k8yuX9ifUSPJJ4ltbcdG6TRGHRjcdGsnUOhugZitVtbNV4FpWi6cgKOOvyJBNP
+c1STE4U6G7weNLWLBYy5d4ux2x8gkasJU26Qzns3dLlwR5EiUWMWea6xrkEmCMgZK9FGqkjWZCrX
+gzT/LCrBbBlDSgeF59N89iFo7+ryUp9/k5DPAgMBAAGjQjBAMA4GA1UdDwEB/wQEAwIBBjAPBgNV
+HRMBAf8EBTADAQH/MB0GA1UdDgQWBBRge2YaRQ2XyolQL30EzTSo//z9SzANBgkqhkiG9w0BAQUF
+AAOCAQEA1nPnfE920I2/7LqivjTFKDK1fPxsnCwrvQmeU79rXqoRSLblCKOzyj1hTdNGCbM+w6Dj
+Y1Ub8rrvrTnhQ7k4o+YviiY776BQVvnGCv04zcQLcFGUl5gE38NflNUVyRRBnMRddWQVDf9VMOyG
+j/8N7yy5Y0b2qvzfvGn9LhJIZJrglfCm7ymPAbEVtQwdpf5pLGkkeB6zpxxxYu7KyJesF12KwvhH
+hm4qxFYxldBniYUr+WymXUadDKqC5JlR3XC321Y9YeRq4VzW9v493kHMB65jUr9TU/Qr6cf9tveC
+X4XSQRjbgbMEHMUfpIBvFSDJ3gyICh3WZlXi/EjJKSZp4A==
+-----END CERTIFICATE-----
+
+GlobalSign Root CA - R2
+=======================
+-----BEGIN CERTIFICATE-----
+MIIDujCCAqKgAwIBAgILBAAAAAABD4Ym5g0wDQYJKoZIhvcNAQEFBQAwTDEgMB4GA1UECxMXR2xv
+YmFsU2lnbiBSb290IENBIC0gUjIxEzARBgNVBAoTCkdsb2JhbFNpZ24xEzARBgNVBAMTCkdsb2Jh
+bFNpZ24wHhcNMDYxMjE1MDgwMDAwWhcNMjExMjE1MDgwMDAwWjBMMSAwHgYDVQQLExdHbG9iYWxT
+aWduIFJvb3QgQ0EgLSBSMjETMBEGA1UEChMKR2xvYmFsU2lnbjETMBEGA1UEAxMKR2xvYmFsU2ln
+bjCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKbPJA6+Lm8omUVCxKs+IVSbC9N/hHD6
+ErPLv4dfxn+G07IwXNb9rfF73OX4YJYJkhD10FPe+3t+c4isUoh7SqbKSaZeqKeMWhG8eoLrvozp
+s6yWJQeXSpkqBy+0Hne/ig+1AnwblrjFuTosvNYSuetZfeLQBoZfXklqtTleiDTsvHgMCJiEbKjN
+S7SgfQx5TfC4LcshytVsW33hoCmEofnTlEnLJGKRILzdC9XZzPnqJworc5HGnRusyMvo4KD0L5CL
+TfuwNhv2GXqF4G3yYROIXJ/gkwpRl4pazq+r1feqCapgvdzZX99yqWATXgAByUr6P6TqBwMhAo6C
+ygPCm48CAwEAAaOBnDCBmTAOBgNVHQ8BAf8EBAMCAQYwDwYDVR0TAQH/BAUwAwEB/zAdBgNVHQ4E
+FgQUm+IHV2ccHsBqBt5ZtJot39wZhi4wNgYDVR0fBC8wLTAroCmgJ4YlaHR0cDovL2NybC5nbG9i
+YWxzaWduLm5ldC9yb290LXIyLmNybDAfBgNVHSMEGDAWgBSb4gdXZxwewGoG3lm0mi3f3BmGLjAN
+BgkqhkiG9w0BAQUFAAOCAQEAmYFThxxol4aR7OBKuEQLq4GsJ0/WwbgcQ3izDJr86iw8bmEbTUsp
+9Z8FHSbBuOmDAGJFtqkIk7mpM0sYmsL4h4hO291xNBrBVNpGP+DTKqttVCL1OmLNIG+6KYnX3ZHu
+01yiPqFbQfXf5WRDLenVOavSot+3i9DAgBkcRcAtjOj4LaR0VknFBbVPFd5uRHg5h6h+u/N5GJG7
+9G+dwfCMNYxdAfvDbbnvRG15RjF+Cv6pgsH/76tuIMRQyV+dTZsXjAzlAcmgQWpzU/qlULRuJQ/7
+TBj0/VLZjmmx6BEP3ojY+x1J96relc8geMJgEtslQIxq/H5COEBkEveegeGTLg==
+-----END CERTIFICATE-----
+
+ValiCert Class 1 VA
+===================
+-----BEGIN CERTIFICATE-----
+MIIC5zCCAlACAQEwDQYJKoZIhvcNAQEFBQAwgbsxJDAiBgNVBAcTG1ZhbGlDZXJ0IFZhbGlkYXRp
+b24gTmV0d29yazEXMBUGA1UEChMOVmFsaUNlcnQsIEluYy4xNTAzBgNVBAsTLFZhbGlDZXJ0IENs
+YXNzIDEgUG9saWN5IFZhbGlkYXRpb24gQXV0aG9yaXR5MSEwHwYDVQQDExhodHRwOi8vd3d3LnZh
+bGljZXJ0LmNvbS8xIDAeBgkqhkiG9w0BCQEWEWluZm9AdmFsaWNlcnQuY29tMB4XDTk5MDYyNTIy
+MjM0OFoXDTE5MDYyNTIyMjM0OFowgbsxJDAiBgNVBAcTG1ZhbGlDZXJ0IFZhbGlkYXRpb24gTmV0
+d29yazEXMBUGA1UEChMOVmFsaUNlcnQsIEluYy4xNTAzBgNVBAsTLFZhbGlDZXJ0IENsYXNzIDEg
+UG9saWN5IFZhbGlkYXRpb24gQXV0aG9yaXR5MSEwHwYDVQQDExhodHRwOi8vd3d3LnZhbGljZXJ0
+LmNvbS8xIDAeBgkqhkiG9w0BCQEWEWluZm9AdmFsaWNlcnQuY29tMIGfMA0GCSqGSIb3DQEBAQUA
+A4GNADCBiQKBgQDYWYJ6ibiWuqYvaG9YLqdUHAZu9OqNSLwxlBfw8068srg1knaw0KWlAdcAAxIi
+GQj4/xEjm84H9b9pGib+TunRf50sQB1ZaG6m+FiwnRqP0z/x3BkGgagO4DrdyFNFCQbmD3DD+kCm
+DuJWBQ8YTfwggtFzVXSNdnKgHZ0dwN0/cQIDAQABMA0GCSqGSIb3DQEBBQUAA4GBAFBoPUn0LBwG
+lN+VYH+Wexf+T3GtZMjdd9LvWVXoP+iOBSoh8gfStadS/pyxtuJbdxdA6nLWI8sogTLDAHkY7FkX
+icnGah5xyf23dKUlRWnFSKsZ4UWKJWsZ7uW7EvV/96aNUcPwnXS3qT6gpf+2SQMT2iLM7XGCK5nP
+Orf1LXLI
+-----END CERTIFICATE-----
+
+ValiCert Class 2 VA
+===================
+-----BEGIN CERTIFICATE-----
+MIIC5zCCAlACAQEwDQYJKoZIhvcNAQEFBQAwgbsxJDAiBgNVBAcTG1ZhbGlDZXJ0IFZhbGlkYXRp
+b24gTmV0d29yazEXMBUGA1UEChMOVmFsaUNlcnQsIEluYy4xNTAzBgNVBAsTLFZhbGlDZXJ0IENs
+YXNzIDIgUG9saWN5IFZhbGlkYXRpb24gQXV0aG9yaXR5MSEwHwYDVQQDExhodHRwOi8vd3d3LnZh
+bGljZXJ0LmNvbS8xIDAeBgkqhkiG9w0BCQEWEWluZm9AdmFsaWNlcnQuY29tMB4XDTk5MDYyNjAw
+MTk1NFoXDTE5MDYyNjAwMTk1NFowgbsxJDAiBgNVBAcTG1ZhbGlDZXJ0IFZhbGlkYXRpb24gTmV0
+d29yazEXMBUGA1UEChMOVmFsaUNlcnQsIEluYy4xNTAzBgNVBAsTLFZhbGlDZXJ0IENsYXNzIDIg
+UG9saWN5IFZhbGlkYXRpb24gQXV0aG9yaXR5MSEwHwYDVQQDExhodHRwOi8vd3d3LnZhbGljZXJ0
+LmNvbS8xIDAeBgkqhkiG9w0BCQEWEWluZm9AdmFsaWNlcnQuY29tMIGfMA0GCSqGSIb3DQEBAQUA
+A4GNADCBiQKBgQDOOnHK5avIWZJV16vYdA757tn2VUdZZUcOBVXc65g2PFxTXdMwzzjsvUGJ7SVC
+CSRrCl6zfN1SLUzm1NZ9WlmpZdRJEy0kTRxQb7XBhVQ7/nHk01xC+YDgkRoKWzk2Z/M/VXwbP7Rf
+ZHM047QSv4dk+NoS/zcnwbNDu+97bi5p9wIDAQABMA0GCSqGSIb3DQEBBQUAA4GBADt/UG9vUJSZ
+SWI4OB9L+KXIPqeCgfYrx+jFzug6EILLGACOTb2oWH+heQC1u+mNr0HZDzTuIYEZoDJJKPTEjlbV
+UjP9UNV+mWwD5MlM/Mtsq2azSiGM5bUMMj4QssxsodyamEwCW/POuZ6lcg5Ktz885hZo+L7tdEy8
+W9ViH0Pd
+-----END CERTIFICATE-----
+
+RSA Root Certificate 1
+======================
+-----BEGIN CERTIFICATE-----
+MIIC5zCCAlACAQEwDQYJKoZIhvcNAQEFBQAwgbsxJDAiBgNVBAcTG1ZhbGlDZXJ0IFZhbGlkYXRp
+b24gTmV0d29yazEXMBUGA1UEChMOVmFsaUNlcnQsIEluYy4xNTAzBgNVBAsTLFZhbGlDZXJ0IENs
+YXNzIDMgUG9saWN5IFZhbGlkYXRpb24gQXV0aG9yaXR5MSEwHwYDVQQDExhodHRwOi8vd3d3LnZh
+bGljZXJ0LmNvbS8xIDAeBgkqhkiG9w0BCQEWEWluZm9AdmFsaWNlcnQuY29tMB4XDTk5MDYyNjAw
+MjIzM1oXDTE5MDYyNjAwMjIzM1owgbsxJDAiBgNVBAcTG1ZhbGlDZXJ0IFZhbGlkYXRpb24gTmV0
+d29yazEXMBUGA1UEChMOVmFsaUNlcnQsIEluYy4xNTAzBgNVBAsTLFZhbGlDZXJ0IENsYXNzIDMg
+UG9saWN5IFZhbGlkYXRpb24gQXV0aG9yaXR5MSEwHwYDVQQDExhodHRwOi8vd3d3LnZhbGljZXJ0
+LmNvbS8xIDAeBgkqhkiG9w0BCQEWEWluZm9AdmFsaWNlcnQuY29tMIGfMA0GCSqGSIb3DQEBAQUA
+A4GNADCBiQKBgQDjmFGWHOjVsQaBalfDcnWTq8+epvzzFlLWLU2fNUSoLgRNB0mKOCn1dzfnt6td
+3zZxFJmP3MKS8edgkpfs2Ejcv8ECIMYkpChMMFp2bbFc893enhBxoYjHW5tBbcqwuI4V7q0zK89H
+BFx1cQqYJJgpp0lZpd34t0NiYfPT4tBVPwIDAQABMA0GCSqGSIb3DQEBBQUAA4GBAFa7AliEZwgs
+3x/be0kz9dNnnfS0ChCzycUs4pJqcXgn8nCDQtM+z6lU9PHYkhaM0QTLS6vJn0WuPIqpsHEzXcjF
+V9+vqDWzf4mH6eglkrh/hXqu1rweN1gqZ8mRzyqBPu3GOd/APhmcGcwTTYJBtYze4D1gCCAPRX5r
+on+jjBXu
+-----END CERTIFICATE-----
+
+Verisign Class 3 Public Primary Certification Authority - G3
+============================================================
+-----BEGIN CERTIFICATE-----
+MIIEGjCCAwICEQCbfgZJoz5iudXukEhxKe9XMA0GCSqGSIb3DQEBBQUAMIHKMQswCQYDVQQGEwJV
+UzEXMBUGA1UEChMOVmVyaVNpZ24sIEluYy4xHzAdBgNVBAsTFlZlcmlTaWduIFRydXN0IE5ldHdv
+cmsxOjA4BgNVBAsTMShjKSAxOTk5IFZlcmlTaWduLCBJbmMuIC0gRm9yIGF1dGhvcml6ZWQgdXNl
+IG9ubHkxRTBDBgNVBAMTPFZlcmlTaWduIENsYXNzIDMgUHVibGljIFByaW1hcnkgQ2VydGlmaWNh
+dGlvbiBBdXRob3JpdHkgLSBHMzAeFw05OTEwMDEwMDAwMDBaFw0zNjA3MTYyMzU5NTlaMIHKMQsw
+CQYDVQQGEwJVUzEXMBUGA1UEChMOVmVyaVNpZ24sIEluYy4xHzAdBgNVBAsTFlZlcmlTaWduIFRy
+dXN0IE5ldHdvcmsxOjA4BgNVBAsTMShjKSAxOTk5IFZlcmlTaWduLCBJbmMuIC0gRm9yIGF1dGhv
+cml6ZWQgdXNlIG9ubHkxRTBDBgNVBAMTPFZlcmlTaWduIENsYXNzIDMgUHVibGljIFByaW1hcnkg
+Q2VydGlmaWNhdGlvbiBBdXRob3JpdHkgLSBHMzCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoC
+ggEBAMu6nFL8eB8aHm8bN3O9+MlrlBIwT/A2R/XQkQr1F8ilYcEWQE37imGQ5XYgwREGfassbqb1
+EUGO+i2tKmFZpGcmTNDovFJbcCAEWNF6yaRpvIMXZK0Fi7zQWM6NjPXr8EJJC52XJ2cybuGukxUc
+cLwgTS8Y3pKI6GyFVxEa6X7jJhFUokWWVYPKMIno3Nij7SqAP395ZVc+FSBmCC+Vk7+qRy+oRpfw
+EuL+wgorUeZ25rdGt+INpsyow0xZVYnm6FNcHOqd8GIWC6fJXwzw3sJ2zq/3avL6QaaiMxTJ5Xpj
+055iN9WFZZ4O5lMkdBteHRJTW8cs54NJOxWuimi5V5cCAwEAATANBgkqhkiG9w0BAQUFAAOCAQEA
+ERSWwauSCPc/L8my/uRan2Te2yFPhpk0djZX3dAVL8WtfxUfN2JzPtTnX84XA9s1+ivbrmAJXx5f
+j267Cz3qWhMeDGBvtcC1IyIuBwvLqXTLR7sdwdela8wv0kL9Sd2nic9TutoAWii/gt/4uhMdUIaC
+/Y4wjylGsB49Ndo4YhYYSq3mtlFs3q9i6wHQHiT+eo8SGhJouPtmmRQURVyu565pF4ErWjfJXir0
+xuKhXFSbplQAz/DxwceYMBo7Nhbbo27q/a2ywtrvAkcTisDxszGtTxzhT5yvDwyd93gN2PQ1VoDa
+t20Xj50egWTh/sVFuq1ruQp6Tk9LhO5L8X3dEQ==
+-----END CERTIFICATE-----
+
+Verisign Class 4 Public Primary Certification Authority - G3
+============================================================
+-----BEGIN CERTIFICATE-----
+MIIEGjCCAwICEQDsoKeLbnVqAc/EfMwvlF7XMA0GCSqGSIb3DQEBBQUAMIHKMQswCQYDVQQGEwJV
+UzEXMBUGA1UEChMOVmVyaVNpZ24sIEluYy4xHzAdBgNVBAsTFlZlcmlTaWduIFRydXN0IE5ldHdv
+cmsxOjA4BgNVBAsTMShjKSAxOTk5IFZlcmlTaWduLCBJbmMuIC0gRm9yIGF1dGhvcml6ZWQgdXNl
+IG9ubHkxRTBDBgNVBAMTPFZlcmlTaWduIENsYXNzIDQgUHVibGljIFByaW1hcnkgQ2VydGlmaWNh
+dGlvbiBBdXRob3JpdHkgLSBHMzAeFw05OTEwMDEwMDAwMDBaFw0zNjA3MTYyMzU5NTlaMIHKMQsw
+CQYDVQQGEwJVUzEXMBUGA1UEChMOVmVyaVNpZ24sIEluYy4xHzAdBgNVBAsTFlZlcmlTaWduIFRy
+dXN0IE5ldHdvcmsxOjA4BgNVBAsTMShjKSAxOTk5IFZlcmlTaWduLCBJbmMuIC0gRm9yIGF1dGhv
+cml6ZWQgdXNlIG9ubHkxRTBDBgNVBAMTPFZlcmlTaWduIENsYXNzIDQgUHVibGljIFByaW1hcnkg
+Q2VydGlmaWNhdGlvbiBBdXRob3JpdHkgLSBHMzCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoC
+ggEBAK3LpRFpxlmr8Y+1GQ9Wzsy1HyDkniYlS+BzZYlZ3tCD5PUPtbut8XzoIfzk6AzufEUiGXaS
+tBO3IFsJ+mGuqPKljYXCKtbeZjbSmwL0qJJgfJxptI8kHtCGUvYynEFYHiK9zUVilQhu0GbdU6LM
+8BDcVHOLBKFGMzNcF0C5nk3T875Vg+ixiY5afJqWIpA7iCXy0lOIAgwLePLmNxdLMEYH5IBtptiW
+Lugs+BGzOA1mppvqySNb247i8xOOGlktqgLw7KSHZtzBP/XYufTsgsbSPZUd5cBPhMnZo0QoBmrX
+Razwa2rvTl/4EYIeOGM0ZlDUPpNz+jDDZq3/ky2X7wMCAwEAATANBgkqhkiG9w0BAQUFAAOCAQEA
+j/ola09b5KROJ1WrIhVZPMq1CtRK26vdoV9TxaBXOcLORyu+OshWv8LZJxA6sQU8wHcxuzrTBXtt
+mhwwjIDLk5Mqg6sFUYICABFna/OIYUdfA5PVWw3g8dShMjWFsjrbsIKr0csKvE+MW8VLADsfKoKm
+fjaF3H48ZwC15DtS4KjrXRX5xm3wrR0OhbepmnMUWluPQSjA1egtTaRezarZ7c7c2NU8Qh0XwRJd
+RTjDOPP8hS6DRkiy1yBfkjaP53kPmF6Z6PDQpLv1U70qzlmwr25/bLvSHgCwIe34QWKCudiyxLtG
+UPMxxY8BqHTr9Xgn2uf3ZkPznoM+IKrDNWCRzg==
+-----END CERTIFICATE-----
+
+Entrust.net Secure Server CA
+============================
+-----BEGIN CERTIFICATE-----
+MIIE2DCCBEGgAwIBAgIEN0rSQzANBgkqhkiG9w0BAQUFADCBwzELMAkGA1UEBhMCVVMxFDASBgNV
+BAoTC0VudHJ1c3QubmV0MTswOQYDVQQLEzJ3d3cuZW50cnVzdC5uZXQvQ1BTIGluY29ycC4gYnkg
+cmVmLiAobGltaXRzIGxpYWIuKTElMCMGA1UECxMcKGMpIDE5OTkgRW50cnVzdC5uZXQgTGltaXRl
+ZDE6MDgGA1UEAxMxRW50cnVzdC5uZXQgU2VjdXJlIFNlcnZlciBDZXJ0aWZpY2F0aW9uIEF1dGhv
+cml0eTAeFw05OTA1MjUxNjA5NDBaFw0xOTA1MjUxNjM5NDBaMIHDMQswCQYDVQQGEwJVUzEUMBIG
+A1UEChMLRW50cnVzdC5uZXQxOzA5BgNVBAsTMnd3dy5lbnRydXN0Lm5ldC9DUFMgaW5jb3JwLiBi
+eSByZWYuIChsaW1pdHMgbGlhYi4pMSUwIwYDVQQLExwoYykgMTk5OSBFbnRydXN0Lm5ldCBMaW1p
+dGVkMTowOAYDVQQDEzFFbnRydXN0Lm5ldCBTZWN1cmUgU2VydmVyIENlcnRpZmljYXRpb24gQXV0
+aG9yaXR5MIGdMA0GCSqGSIb3DQEBAQUAA4GLADCBhwKBgQDNKIM0VBuJ8w+vN5Ex/68xYMmo6LIQ
+aO2f55M28Qpku0f1BBc/I0dNxScZgSYMVHINiC3ZH5oSn7yzcdOAGT9HZnuMNSjSuQrfJNqc1lB5
+gXpa0zf3wkrYKZImZNHkmGw6AIr1NJtl+O3jEP/9uElY3KDegjlrgbEWGWG5VLbmQwIBA6OCAdcw
+ggHTMBEGCWCGSAGG+EIBAQQEAwIABzCCARkGA1UdHwSCARAwggEMMIHeoIHboIHYpIHVMIHSMQsw
+CQYDVQQGEwJVUzEUMBIGA1UEChMLRW50cnVzdC5uZXQxOzA5BgNVBAsTMnd3dy5lbnRydXN0Lm5l
+dC9DUFMgaW5jb3JwLiBieSByZWYuIChsaW1pdHMgbGlhYi4pMSUwIwYDVQQLExwoYykgMTk5OSBF
+bnRydXN0Lm5ldCBMaW1pdGVkMTowOAYDVQQDEzFFbnRydXN0Lm5ldCBTZWN1cmUgU2VydmVyIENl
+cnRpZmljYXRpb24gQXV0aG9yaXR5MQ0wCwYDVQQDEwRDUkwxMCmgJ6AlhiNodHRwOi8vd3d3LmVu
+dHJ1c3QubmV0L0NSTC9uZXQxLmNybDArBgNVHRAEJDAigA8xOTk5MDUyNTE2MDk0MFqBDzIwMTkw
+NTI1MTYwOTQwWjALBgNVHQ8EBAMCAQYwHwYDVR0jBBgwFoAU8BdiE1U9s/8KAGv7UISX8+1i0Bow
+HQYDVR0OBBYEFPAXYhNVPbP/CgBr+1CEl/PtYtAaMAwGA1UdEwQFMAMBAf8wGQYJKoZIhvZ9B0EA
+BAwwChsEVjQuMAMCBJAwDQYJKoZIhvcNAQEFBQADgYEAkNwwAvpkdMKnCqV8IY00F6j7Rw7/JXyN
+Ewr75Ji174z4xRAN95K+8cPV1ZVqBLssziY2ZcgxxufuP+NXdYR6Ee9GTxj005i7qIcyunL2POI9
+n9cd2cNgQ4xYDiKWL2KjLB+6rQXvqzJ4h6BUcxm1XAX5Uj5tLUUL9wqT6u0G+bI=
+-----END CERTIFICATE-----
+
+Entrust.net Premium 2048 Secure Server CA
+=========================================
+-----BEGIN CERTIFICATE-----
+MIIEXDCCA0SgAwIBAgIEOGO5ZjANBgkqhkiG9w0BAQUFADCBtDEUMBIGA1UEChMLRW50cnVzdC5u
+ZXQxQDA+BgNVBAsUN3d3dy5lbnRydXN0Lm5ldC9DUFNfMjA0OCBpbmNvcnAuIGJ5IHJlZi4gKGxp
+bWl0cyBsaWFiLikxJTAjBgNVBAsTHChjKSAxOTk5IEVudHJ1c3QubmV0IExpbWl0ZWQxMzAxBgNV
+BAMTKkVudHJ1c3QubmV0IENlcnRpZmljYXRpb24gQXV0aG9yaXR5ICgyMDQ4KTAeFw05OTEyMjQx
+NzUwNTFaFw0xOTEyMjQxODIwNTFaMIG0MRQwEgYDVQQKEwtFbnRydXN0Lm5ldDFAMD4GA1UECxQ3
+d3d3LmVudHJ1c3QubmV0L0NQU18yMDQ4IGluY29ycC4gYnkgcmVmLiAobGltaXRzIGxpYWIuKTEl
+MCMGA1UECxMcKGMpIDE5OTkgRW50cnVzdC5uZXQgTGltaXRlZDEzMDEGA1UEAxMqRW50cnVzdC5u
+ZXQgQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkgKDIwNDgpMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8A
+MIIBCgKCAQEArU1LqRKGsuqjIAcVFmQqK0vRvwtKTY7tgHalZ7d4QMBzQshowNtTK91euHaYNZOL
+Gp18EzoOH1u3Hs/lJBQesYGpjX24zGtLA/ECDNyrpUAkAH90lKGdCCmziAv1h3edVc3kw37XamSr
+hRSGlVuXMlBvPci6Zgzj/L24ScF2iUkZ/cCovYmjZy/Gn7xxGWC4LeksyZB2ZnuU4q941mVTXTzW
+nLLPKQP5L6RQstRIzgUyVYr9smRMDuSYB3Xbf9+5CFVghTAp+XtIpGmG4zU/HoZdenoVve8AjhUi
+VBcAkCaTvA5JaJG/+EfTnZVCwQ5N328mz8MYIWJmQ3DW1cAH4QIDAQABo3QwcjARBglghkgBhvhC
+AQEEBAMCAAcwHwYDVR0jBBgwFoAUVeSB0RGAvtiJuQijMfmhJAkWuXAwHQYDVR0OBBYEFFXkgdER
+gL7YibkIozH5oSQJFrlwMB0GCSqGSIb2fQdBAAQQMA4bCFY1LjA6NC4wAwIEkDANBgkqhkiG9w0B
+AQUFAAOCAQEAWUesIYSKF8mciVMeuoCFGsY8Tj6xnLZ8xpJdGGQC49MGCBFhfGPjK50xA3B20qMo
+oPS7mmNz7W3lKtvtFKkrxjYR0CvrB4ul2p5cGZ1WEvVUKcgF7bISKo30Axv/55IQh7A6tcOdBTcS
+o8f0FbnVpDkWm1M6I5HxqIKiaohowXkCIryqptau37AUX7iH0N18f3v/rxzP5tsHrV7bhZ3QKw0z
+2wTR5klAEyt2+z7pnIkPFc4YsIV4IU9rTw76NmfNB/L/CNDi3tm/Kq+4h4YhPATKt5Rof8886ZjX
+OP/swNlQ8C5LWK5Gb9Auw2DaclVyvUxFnmG6v4SBkgPR0ml8xQ==
+-----END CERTIFICATE-----
+
+Baltimore CyberTrust Root
+=========================
+-----BEGIN CERTIFICATE-----
+MIIDdzCCAl+gAwIBAgIEAgAAuTANBgkqhkiG9w0BAQUFADBaMQswCQYDVQQGEwJJRTESMBAGA1UE
+ChMJQmFsdGltb3JlMRMwEQYDVQQLEwpDeWJlclRydXN0MSIwIAYDVQQDExlCYWx0aW1vcmUgQ3li
+ZXJUcnVzdCBSb290MB4XDTAwMDUxMjE4NDYwMFoXDTI1MDUxMjIzNTkwMFowWjELMAkGA1UEBhMC
+SUUxEjAQBgNVBAoTCUJhbHRpbW9yZTETMBEGA1UECxMKQ3liZXJUcnVzdDEiMCAGA1UEAxMZQmFs
+dGltb3JlIEN5YmVyVHJ1c3QgUm9vdDCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKME
+uyKrmD1X6CZymrV51Cni4eiVgLGw41uOKymaZN+hXe2wCQVt2yguzmKiYv60iNoS6zjrIZ3AQSsB
+UnuId9Mcj8e6uYi1agnnc+gRQKfRzMpijS3ljwumUNKoUMMo6vWrJYeKmpYcqWe4PwzV9/lSEy/C
+G9VwcPCPwBLKBsua4dnKM3p31vjsufFoREJIE9LAwqSuXmD+tqYF/LTdB1kC1FkYmGP1pWPgkAx9
+XbIGevOF6uvUA65ehD5f/xXtabz5OTZydc93Uk3zyZAsuT3lySNTPx8kmCFcB5kpvcY67Oduhjpr
+l3RjM71oGDHweI12v/yejl0qhqdNkNwnGjkCAwEAAaNFMEMwHQYDVR0OBBYEFOWdWTCCR1jMrPoI
+VDaGezq1BE3wMBIGA1UdEwEB/wQIMAYBAf8CAQMwDgYDVR0PAQH/BAQDAgEGMA0GCSqGSIb3DQEB
+BQUAA4IBAQCFDF2O5G9RaEIFoN27TyclhAO992T9Ldcw46QQF+vaKSm2eT929hkTI7gQCvlYpNRh
+cL0EYWoSihfVCr3FvDB81ukMJY2GQE/szKN+OMY3EU/t3WgxjkzSswF07r51XgdIGn9w/xZchMB5
+hbgF/X++ZRGjD8ACtPhSNzkE1akxehi/oCr0Epn3o0WC4zxe9Z2etciefC7IpJ5OCBRLbf1wbWsa
+Y71k5h+3zvDyny67G7fyUIhzksLi4xaNmjICq44Y3ekQEe5+NauQrz4wlHrQMz2nZQ/1/I6eYs9H
+RCwBXbsdtTLSR9I4LtD+gdwyah617jzV/OeBHRnDJELqYzmp
+-----END CERTIFICATE-----
+
+Equifax Secure Global eBusiness CA
+==================================
+-----BEGIN CERTIFICATE-----
+MIICkDCCAfmgAwIBAgIBATANBgkqhkiG9w0BAQQFADBaMQswCQYDVQQGEwJVUzEcMBoGA1UEChMT
+RXF1aWZheCBTZWN1cmUgSW5jLjEtMCsGA1UEAxMkRXF1aWZheCBTZWN1cmUgR2xvYmFsIGVCdXNp
+bmVzcyBDQS0xMB4XDTk5MDYyMTA0MDAwMFoXDTIwMDYyMTA0MDAwMFowWjELMAkGA1UEBhMCVVMx
+HDAaBgNVBAoTE0VxdWlmYXggU2VjdXJlIEluYy4xLTArBgNVBAMTJEVxdWlmYXggU2VjdXJlIEds
+b2JhbCBlQnVzaW5lc3MgQ0EtMTCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEAuucXkAJlsTRV
+PEnCUdXfp9E3j9HngXNBUmCbnaEXJnitx7HoJpQytd4zjTov2/KaelpzmKNc6fuKcxtc58O/gGzN
+qfTWK8D3+ZmqY6KxRwIP1ORROhI8bIpaVIRw28HFkM9yRcuoWcDNM50/o5brhTMhHD4ePmBudpxn
+hcXIw2ECAwEAAaNmMGQwEQYJYIZIAYb4QgEBBAQDAgAHMA8GA1UdEwEB/wQFMAMBAf8wHwYDVR0j
+BBgwFoAUvqigdHJQa0S3ySPY+6j/s1draGwwHQYDVR0OBBYEFL6ooHRyUGtEt8kj2Puo/7NXa2hs
+MA0GCSqGSIb3DQEBBAUAA4GBADDiAVGqx+pf2rnQZQ8w1j7aDRRJbpGTJxQx78T3LUX47Me/okEN
+I7SS+RkAZ70Br83gcfxaz2TE4JaY0KNA4gGK7ycH8WUBikQtBmV1UsCGECAhX2xrD2yuCRyv8qIY
+NMR1pHMc8Y3c7635s3a0kr/clRAevsvIO1qEYBlWlKlV
+-----END CERTIFICATE-----
+
+Equifax Secure eBusiness CA 1
+=============================
+-----BEGIN CERTIFICATE-----
+MIICgjCCAeugAwIBAgIBBDANBgkqhkiG9w0BAQQFADBTMQswCQYDVQQGEwJVUzEcMBoGA1UEChMT
+RXF1aWZheCBTZWN1cmUgSW5jLjEmMCQGA1UEAxMdRXF1aWZheCBTZWN1cmUgZUJ1c2luZXNzIENB
+LTEwHhcNOTkwNjIxMDQwMDAwWhcNMjAwNjIxMDQwMDAwWjBTMQswCQYDVQQGEwJVUzEcMBoGA1UE
+ChMTRXF1aWZheCBTZWN1cmUgSW5jLjEmMCQGA1UEAxMdRXF1aWZheCBTZWN1cmUgZUJ1c2luZXNz
+IENBLTEwgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBAM4vGbwXt3fek6lfWg0XTzQaDJj0ItlZ
+1MRoRvC0NcWFAyDGr0WlIVFFQesWWDYyb+JQYmT5/VGcqiTZ9J2DKocKIdMSODRsjQBuWqDZQu4a
+IZX5UkxVWsUPOE9G+m34LjXWHXzr4vCwdYDIqROsvojvOm6rXyo4YgKwEnv+j6YDAgMBAAGjZjBk
+MBEGCWCGSAGG+EIBAQQEAwIABzAPBgNVHRMBAf8EBTADAQH/MB8GA1UdIwQYMBaAFEp4MlIR21kW
+Nl7fwRQ2QGpHfEyhMB0GA1UdDgQWBBRKeDJSEdtZFjZe38EUNkBqR3xMoTANBgkqhkiG9w0BAQQF
+AAOBgQB1W6ibAxHm6VZMzfmpTMANmvPMZWnmJXbMWbfWVMMdzZmsGd20hdXgPfxiIKeES1hl8eL5
+lSE/9dR+WB5Hh1Q+WKG1tfgq73HnvMP2sUlG4tega+VWeponmHxGYhTnyfxuAxJ5gDgdSIKN/Bf+
+KpYrtWKmpj29f5JZzVoqgrI3eQ==
+-----END CERTIFICATE-----
+
+Equifax Secure eBusiness CA 2
+=============================
+-----BEGIN CERTIFICATE-----
+MIIDIDCCAomgAwIBAgIEN3DPtTANBgkqhkiG9w0BAQUFADBOMQswCQYDVQQGEwJVUzEXMBUGA1UE
+ChMORXF1aWZheCBTZWN1cmUxJjAkBgNVBAsTHUVxdWlmYXggU2VjdXJlIGVCdXNpbmVzcyBDQS0y
+MB4XDTk5MDYyMzEyMTQ0NVoXDTE5MDYyMzEyMTQ0NVowTjELMAkGA1UEBhMCVVMxFzAVBgNVBAoT
+DkVxdWlmYXggU2VjdXJlMSYwJAYDVQQLEx1FcXVpZmF4IFNlY3VyZSBlQnVzaW5lc3MgQ0EtMjCB
+nzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA5Dk5kx5SBhsoNviyoynF7Y6yEb3+6+e0dMKP/wXn
+2Z0GvxLIPw7y1tEkshHe0XMJitSxLJgJDR5QRrKDpkWNYmi7hRsgcDKqQM2mll/EcTc/BPO3QSQ5
+BxoeLmFYoBIL5aXfxavqN3HMHMg3OrmXUqesxWoklE6ce8/AatbfIb0CAwEAAaOCAQkwggEFMHAG
+A1UdHwRpMGcwZaBjoGGkXzBdMQswCQYDVQQGEwJVUzEXMBUGA1UEChMORXF1aWZheCBTZWN1cmUx
+JjAkBgNVBAsTHUVxdWlmYXggU2VjdXJlIGVCdXNpbmVzcyBDQS0yMQ0wCwYDVQQDEwRDUkwxMBoG
+A1UdEAQTMBGBDzIwMTkwNjIzMTIxNDQ1WjALBgNVHQ8EBAMCAQYwHwYDVR0jBBgwFoAUUJ4L6q9e
+uSBIplBqy/3YIHqngnYwHQYDVR0OBBYEFFCeC+qvXrkgSKZQasv92CB6p4J2MAwGA1UdEwQFMAMB
+Af8wGgYJKoZIhvZ9B0EABA0wCxsFVjMuMGMDAgbAMA0GCSqGSIb3DQEBBQUAA4GBAAyGgq3oThr1
+jokn4jVYPSm0B482UJW/bsGe68SQsoWou7dC4A8HOd/7npCy0cE+U58DRLB+S/Rv5Hwf5+Kx5Lia
+78O9zt4LMjTZ3ijtM2vE1Nc9ElirfQkty3D1E4qUoSek1nDFbZS1yX2doNLGCEnZZpum0/QL3MUm
+V+GRMOrN
+-----END CERTIFICATE-----
+
+AddTrust Low-Value Services Root
+================================
+-----BEGIN CERTIFICATE-----
+MIIEGDCCAwCgAwIBAgIBATANBgkqhkiG9w0BAQUFADBlMQswCQYDVQQGEwJTRTEUMBIGA1UEChML
+QWRkVHJ1c3QgQUIxHTAbBgNVBAsTFEFkZFRydXN0IFRUUCBOZXR3b3JrMSEwHwYDVQQDExhBZGRU
+cnVzdCBDbGFzcyAxIENBIFJvb3QwHhcNMDAwNTMwMTAzODMxWhcNMjAwNTMwMTAzODMxWjBlMQsw
+CQYDVQQGEwJTRTEUMBIGA1UEChMLQWRkVHJ1c3QgQUIxHTAbBgNVBAsTFEFkZFRydXN0IFRUUCBO
+ZXR3b3JrMSEwHwYDVQQDExhBZGRUcnVzdCBDbGFzcyAxIENBIFJvb3QwggEiMA0GCSqGSIb3DQEB
+AQUAA4IBDwAwggEKAoIBAQCWltQhSWDia+hBBwzexODcEyPNwTXH+9ZOEQpnXvUGW2ulCDtbKRY6
+54eyNAbFvAWlA3yCyykQruGIgb3WntP+LVbBFc7jJp0VLhD7Bo8wBN6ntGO0/7Gcrjyvd7ZWxbWr
+oulpOj0OM3kyP3CCkplhbY0wCI9xP6ZIVxn4JdxLZlyldI+Yrsj5wAYi56xz36Uu+1LcsRVlIPo1
+Zmne3yzxbrww2ywkEtvrNTVokMsAsJchPXQhI2U0K7t4WaPW4XY5mqRJjox0r26kmqPZm9I4XJui
+GMx1I4S+6+JNM3GOGvDC+Mcdoq0Dlyz4zyXG9rgkMbFjXZJ/Y/AlyVMuH79NAgMBAAGjgdIwgc8w
+HQYDVR0OBBYEFJWxtPCUtr3H2tERCSG+wa9J/RB7MAsGA1UdDwQEAwIBBjAPBgNVHRMBAf8EBTAD
+AQH/MIGPBgNVHSMEgYcwgYSAFJWxtPCUtr3H2tERCSG+wa9J/RB7oWmkZzBlMQswCQYDVQQGEwJT
+RTEUMBIGA1UEChMLQWRkVHJ1c3QgQUIxHTAbBgNVBAsTFEFkZFRydXN0IFRUUCBOZXR3b3JrMSEw
+HwYDVQQDExhBZGRUcnVzdCBDbGFzcyAxIENBIFJvb3SCAQEwDQYJKoZIhvcNAQEFBQADggEBACxt
+ZBsfzQ3duQH6lmM0MkhHma6X7f1yFqZzR1r0693p9db7RcwpiURdv0Y5PejuvE1Uhh4dbOMXJ0Ph
+iVYrqW9yTkkz43J8KiOavD7/KCrto/8cI7pDVwlnTUtiBi34/2ydYB7YHEt9tTEv2dB8Xfjea4MY
+eDdXL+gzB2ffHsdrKpV2ro9Xo/D0UrSpUwjP4E/TelOL/bscVjby/rK25Xa71SJlpz/+0WatC7xr
+mYbvP33zGDLKe8bjq2RGlfgmadlVg3sslgf/WSxEo8bl6ancoWOAWiFeIc9TVPC6b4nbqKqVz4vj
+ccweGyBECMB6tkD9xOQ14R0WHNC8K47Wcdk=
+-----END CERTIFICATE-----
+
+AddTrust External Root
+======================
+-----BEGIN CERTIFICATE-----
+MIIENjCCAx6gAwIBAgIBATANBgkqhkiG9w0BAQUFADBvMQswCQYDVQQGEwJTRTEUMBIGA1UEChML
+QWRkVHJ1c3QgQUIxJjAkBgNVBAsTHUFkZFRydXN0IEV4dGVybmFsIFRUUCBOZXR3b3JrMSIwIAYD
+VQQDExlBZGRUcnVzdCBFeHRlcm5hbCBDQSBSb290MB4XDTAwMDUzMDEwNDgzOFoXDTIwMDUzMDEw
+NDgzOFowbzELMAkGA1UEBhMCU0UxFDASBgNVBAoTC0FkZFRydXN0IEFCMSYwJAYDVQQLEx1BZGRU
+cnVzdCBFeHRlcm5hbCBUVFAgTmV0d29yazEiMCAGA1UEAxMZQWRkVHJ1c3QgRXh0ZXJuYWwgQ0Eg
+Um9vdDCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALf3GjPm8gAELTngTlvtH7xsD821
++iO2zt6bETOXpClMfZOfvUq8k+0DGuOPz+VtUFrWlymUWoCwSXrbLpX9uMq/NzgtHj6RQa1wVsfw
+Tz/oMp50ysiQVOnGXw94nZpAPA6sYapeFI+eh6FqUNzXmk6vBbOmcZSccbNQYArHE504B4YCqOmo
+aSYYkKtMsE8jqzpPhNjfzp/haW+710LXa0Tkx63ubUFfclpxCDezeWWkWaCUN/cALw3CknLa0Dhy
+2xSoRcRdKn23tNbE7qzNE0S3ySvdQwAl+mG5aWpYIxG3pzOPVnVZ9c0p10a3CitlttNCbxWyuHv7
+7+ldU9U0WicCAwEAAaOB3DCB2TAdBgNVHQ4EFgQUrb2YejS0Jvf6xCZU7wO94CTLVBowCwYDVR0P
+BAQDAgEGMA8GA1UdEwEB/wQFMAMBAf8wgZkGA1UdIwSBkTCBjoAUrb2YejS0Jvf6xCZU7wO94CTL
+VBqhc6RxMG8xCzAJBgNVBAYTAlNFMRQwEgYDVQQKEwtBZGRUcnVzdCBBQjEmMCQGA1UECxMdQWRk
+VHJ1c3QgRXh0ZXJuYWwgVFRQIE5ldHdvcmsxIjAgBgNVBAMTGUFkZFRydXN0IEV4dGVybmFsIENB
+IFJvb3SCAQEwDQYJKoZIhvcNAQEFBQADggEBALCb4IUlwtYj4g+WBpKdQZic2YR5gdkeWxQHIzZl
+j7DYd7usQWxHYINRsPkyPef89iYTx4AWpb9a/IfPeHmJIZriTAcKhjW88t5RxNKWt9x+Tu5w/Rw5
+6wwCURQtjr0W4MHfRnXnJK3s9EK0hZNwEGe6nQY1ShjTK3rMUUKhemPR5ruhxSvCNr4TDea9Y355
+e6cJDUCrat2PisP29owaQgVR1EX1n6diIWgVIEM8med8vSTYqZEXc4g/VhsxOBi0cQ+azcgOno4u
+G+GMmIPLHzHxREzGBHNJdmAPx/i9F4BrLunMTA5amnkPIAou1Z5jJh5VkpTYghdae9C8x49OhgQ=
+-----END CERTIFICATE-----
+
+AddTrust Public Services Root
+=============================
+-----BEGIN CERTIFICATE-----
+MIIEFTCCAv2gAwIBAgIBATANBgkqhkiG9w0BAQUFADBkMQswCQYDVQQGEwJTRTEUMBIGA1UEChML
+QWRkVHJ1c3QgQUIxHTAbBgNVBAsTFEFkZFRydXN0IFRUUCBOZXR3b3JrMSAwHgYDVQQDExdBZGRU
+cnVzdCBQdWJsaWMgQ0EgUm9vdDAeFw0wMDA1MzAxMDQxNTBaFw0yMDA1MzAxMDQxNTBaMGQxCzAJ
+BgNVBAYTAlNFMRQwEgYDVQQKEwtBZGRUcnVzdCBBQjEdMBsGA1UECxMUQWRkVHJ1c3QgVFRQIE5l
+dHdvcmsxIDAeBgNVBAMTF0FkZFRydXN0IFB1YmxpYyBDQSBSb290MIIBIjANBgkqhkiG9w0BAQEF
+AAOCAQ8AMIIBCgKCAQEA6Rowj4OIFMEg2Dybjxt+A3S72mnTRqX4jsIMEZBRpS9mVEBV6tsfSlbu
+nyNu9DnLoblv8n75XYcmYZ4c+OLspoH4IcUkzBEMP9smcnrHAZcHF/nXGCwwfQ56HmIexkvA/X1i
+d9NEHif2P0tEs7c42TkfYNVRknMDtABp4/MUTu7R3AnPdzRGULD4EfL+OHn3Bzn+UZKXC1sIXzSG
+Aa2Il+tmzV7R/9x98oTaunet3IAIx6eH1lWfl2royBFkuucZKT8Rs3iQhCBSWxHveNCD9tVIkNAw
+HM+A+WD+eeSI8t0A65RF62WUaUC6wNW0uLp9BBGo6zEFlpROWCGOn9Bg/QIDAQABo4HRMIHOMB0G
+A1UdDgQWBBSBPjfYkrAfd59ctKtzquf2NGAv+jALBgNVHQ8EBAMCAQYwDwYDVR0TAQH/BAUwAwEB
+/zCBjgYDVR0jBIGGMIGDgBSBPjfYkrAfd59ctKtzquf2NGAv+qFopGYwZDELMAkGA1UEBhMCU0Ux
+FDASBgNVBAoTC0FkZFRydXN0IEFCMR0wGwYDVQQLExRBZGRUcnVzdCBUVFAgTmV0d29yazEgMB4G
+A1UEAxMXQWRkVHJ1c3QgUHVibGljIENBIFJvb3SCAQEwDQYJKoZIhvcNAQEFBQADggEBAAP3FUr4
+JNojVhaTdt02KLmuG7jD8WS6IBh4lSknVwW8fCr0uVFV2ocC3g8WFzH4qnkuCRO7r7IgGRLlk/lL
++YPoRNWyQSW/iHVv/xD8SlTQX/D67zZzfRs2RcYhbbQVuE7PnFylPVoAjgbjPGsye/Kf8Lb93/Ao
+GEjwxrzQvzSAlsJKsW2Ox5BF3i9nrEUEo3rcVZLJR2bYGozH7ZxOmuASu7VqTITh4SINhwBk/ox9
+Yjllpu9CtoAlEmEBqCQTcAARJl/6NVDFSMwGR+gn2HCNX2TmoUQmXiLsks3/QppEIW1cxeMiHV9H
+EufOX1362KqxMy3ZdvJOOjMMK7MtkAY=
+-----END CERTIFICATE-----
+
+AddTrust Qualified Certificates Root
+====================================
+-----BEGIN CERTIFICATE-----
+MIIEHjCCAwagAwIBAgIBATANBgkqhkiG9w0BAQUFADBnMQswCQYDVQQGEwJTRTEUMBIGA1UEChML
+QWRkVHJ1c3QgQUIxHTAbBgNVBAsTFEFkZFRydXN0IFRUUCBOZXR3b3JrMSMwIQYDVQQDExpBZGRU
+cnVzdCBRdWFsaWZpZWQgQ0EgUm9vdDAeFw0wMDA1MzAxMDQ0NTBaFw0yMDA1MzAxMDQ0NTBaMGcx
+CzAJBgNVBAYTAlNFMRQwEgYDVQQKEwtBZGRUcnVzdCBBQjEdMBsGA1UECxMUQWRkVHJ1c3QgVFRQ
+IE5ldHdvcmsxIzAhBgNVBAMTGkFkZFRydXN0IFF1YWxpZmllZCBDQSBSb290MIIBIjANBgkqhkiG
+9w0BAQEFAAOCAQ8AMIIBCgKCAQEA5B6a/twJWoekn0e+EV+vhDTbYjx5eLfpMLXsDBwqxBb/4Oxx
+64r1EW7tTw2R0hIYLUkVAcKkIhPHEWT/IhKauY5cLwjPcWqzZwFZ8V1G87B4pfYOQnrjfxvM0PC3
+KP0q6p6zsLkEqv32x7SxuCqg+1jxGaBvcCV+PmlKfw8i2O+tCBGaKZnhqkRFmhJePp1tUvznoD1o
+L/BLcHwTOK28FSXx1s6rosAx1i+f4P8UWfyEk9mHfExUE+uf0S0R+Bg6Ot4l2ffTQO2kBhLEO+GR
+wVY18BTcZTYJbqukB8c10cIDMzZbdSZtQvESa0NvS3GU+jQd7RNuyoB/mC9suWXY6QIDAQABo4HU
+MIHRMB0GA1UdDgQWBBQ5lYtii1zJ1IC6WA+XPxUIQ8yYpzALBgNVHQ8EBAMCAQYwDwYDVR0TAQH/
+BAUwAwEB/zCBkQYDVR0jBIGJMIGGgBQ5lYtii1zJ1IC6WA+XPxUIQ8yYp6FrpGkwZzELMAkGA1UE
+BhMCU0UxFDASBgNVBAoTC0FkZFRydXN0IEFCMR0wGwYDVQQLExRBZGRUcnVzdCBUVFAgTmV0d29y
+azEjMCEGA1UEAxMaQWRkVHJ1c3QgUXVhbGlmaWVkIENBIFJvb3SCAQEwDQYJKoZIhvcNAQEFBQAD
+ggEBABmrder4i2VhlRO6aQTvhsoToMeqT2QbPxj2qC0sVY8FtzDqQmodwCVRLae/DLPt7wh/bDxG
+GuoYQ992zPlmhpwsaPXpF/gxsxjE1kh9I0xowX67ARRvxdlu3rsEQmr49lx95dr6h+sNNVJn0J6X
+dgWTP5XHAeZpVTh/EGGZyeNfpso+gmNIquIISD6q8rKFYqa0p9m9N5xotS1WfbC3P6CxB9bpT9ze
+RXEwMn8bLgn5v1Kh7sKAPgZcLlVAwRv1cEWw3F369nJad9Jjzc9YiQBCYz95OdBEsIJuQRno3eDB
+iFrRHnGTHyQwdOUeqN48Jzd/g66ed8/wMLH/S5noxqE=
+-----END CERTIFICATE-----
+
+Entrust Root Certification Authority
+====================================
+-----BEGIN CERTIFICATE-----
+MIIEkTCCA3mgAwIBAgIERWtQVDANBgkqhkiG9w0BAQUFADCBsDELMAkGA1UEBhMCVVMxFjAUBgNV
+BAoTDUVudHJ1c3QsIEluYy4xOTA3BgNVBAsTMHd3dy5lbnRydXN0Lm5ldC9DUFMgaXMgaW5jb3Jw
+b3JhdGVkIGJ5IHJlZmVyZW5jZTEfMB0GA1UECxMWKGMpIDIwMDYgRW50cnVzdCwgSW5jLjEtMCsG
+A1UEAxMkRW50cnVzdCBSb290IENlcnRpZmljYXRpb24gQXV0aG9yaXR5MB4XDTA2MTEyNzIwMjM0
+MloXDTI2MTEyNzIwNTM0MlowgbAxCzAJBgNVBAYTAlVTMRYwFAYDVQQKEw1FbnRydXN0LCBJbmMu
+MTkwNwYDVQQLEzB3d3cuZW50cnVzdC5uZXQvQ1BTIGlzIGluY29ycG9yYXRlZCBieSByZWZlcmVu
+Y2UxHzAdBgNVBAsTFihjKSAyMDA2IEVudHJ1c3QsIEluYy4xLTArBgNVBAMTJEVudHJ1c3QgUm9v
+dCBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEB
+ALaVtkNC+sZtKm9I35RMOVcF7sN5EUFoNu3s/poBj6E4KPz3EEZmLk0eGrEaTsbRwJWIsMn/MYsz
+A9u3g3s+IIRe7bJWKKf44LlAcTfFy0cOlypowCKVYhXbR9n10Cv/gkvJrT7eTNuQgFA/CYqEAOww
+Cj0Yzfv9KlmaI5UXLEWeH25DeW0MXJj+SKfFI0dcXv1u5x609mhF0YaDW6KKjbHjKYD+JXGIrb68
+j6xSlkuqUY3kEzEZ6E5Nn9uss2rVvDlUccp6en+Q3X0dgNmBu1kmwhH+5pPi94DkZfs0Nw4pgHBN
+rziGLp5/V6+eF67rHMsoIV+2HNjnogQi+dPa2MsCAwEAAaOBsDCBrTAOBgNVHQ8BAf8EBAMCAQYw
+DwYDVR0TAQH/BAUwAwEB/zArBgNVHRAEJDAigA8yMDA2MTEyNzIwMjM0MlqBDzIwMjYxMTI3MjA1
+MzQyWjAfBgNVHSMEGDAWgBRokORnpKZTgMeGZqTx90tD+4S9bTAdBgNVHQ4EFgQUaJDkZ6SmU4DH
+hmak8fdLQ/uEvW0wHQYJKoZIhvZ9B0EABBAwDhsIVjcuMTo0LjADAgSQMA0GCSqGSIb3DQEBBQUA
+A4IBAQCT1DCw1wMgKtD5Y+iRDAUgqV8ZyntyTtSx29CW+1RaGSwMCPeyvIWonX9tO1KzKtvn1ISM
+Y/YPyyYBkVBs9F8U4pN0wBOeMDpQ47RgxRzwIkSNcUesyBrJ6ZuaAGAT/3B+XxFNSRuzFVJ7yVTa
+v52Vr2ua2J7p8eRDjeIRRDq/r72DQnNSi6q7pynP9WQcCk3RvKqsnyrQ/39/2n3qse0wJcGE2jTS
+W3iDVuycNsMm4hH2Z0kdkquM++v/eu6FSqdQgPCnXEqULl8FmTxSQeDNtGPPAUO6nIPcj2A781q0
+tHuu2guQOHXvgR1m0vdXcDazv/wor3ElhVsT/h5/WrQ8
+-----END CERTIFICATE-----
+
+RSA Security 2048 v3
+====================
+-----BEGIN CERTIFICATE-----
+MIIDYTCCAkmgAwIBAgIQCgEBAQAAAnwAAAAKAAAAAjANBgkqhkiG9w0BAQUFADA6MRkwFwYDVQQK
+ExBSU0EgU2VjdXJpdHkgSW5jMR0wGwYDVQQLExRSU0EgU2VjdXJpdHkgMjA0OCBWMzAeFw0wMTAy
+MjIyMDM5MjNaFw0yNjAyMjIyMDM5MjNaMDoxGTAXBgNVBAoTEFJTQSBTZWN1cml0eSBJbmMxHTAb
+BgNVBAsTFFJTQSBTZWN1cml0eSAyMDQ4IFYzMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKC
+AQEAt49VcdKA3XtpeafwGFAyPGJn9gqVB93mG/Oe2dJBVGutn3y+Gc37RqtBaB4Y6lXIL5F4iSj7
+Jylg/9+PjDvJSZu1pJTOAeo+tWN7fyb9Gd3AIb2E0S1PRsNO3Ng3OTsor8udGuorryGlwSMiuLgb
+WhOHV4PR8CDn6E8jQrAApX2J6elhc5SYcSa8LWrg903w8bYqODGBDSnhAMFRD0xS+ARaqn1y07iH
+KrtjEAMqs6FPDVpeRrc9DvV07Jmf+T0kgYim3WBU6JU2PcYJk5qjEoAAVZkZR73QpXzDuvsf9/UP
++Ky5tfQ3mBMY3oVbtwyCO4dvlTlYMNpuAWgXIszACwIDAQABo2MwYTAPBgNVHRMBAf8EBTADAQH/
+MA4GA1UdDwEB/wQEAwIBBjAfBgNVHSMEGDAWgBQHw1EwpKrpRa41JPr/JCwz0LGdjDAdBgNVHQ4E
+FgQUB8NRMKSq6UWuNST6/yQsM9CxnYwwDQYJKoZIhvcNAQEFBQADggEBAF8+hnZuuDU8TjYcHnmY
+v/3VEhF5Ug7uMYm83X/50cYVIeiKAVQNOvtUudZj1LGqlk2iQk3UUx+LEN5/Zb5gEydxiKRz44Rj
+0aRV4VCT5hsOedBnvEbIvz8XDZXmxpBp3ue0L96VfdASPz0+f00/FGj1EVDVwfSQpQgdMWD/YIwj
+VAqv/qFuxdF6Kmh4zx6CCiC0H63lhbJqaHVOrSU3lIW+vaHU6rcMSzyd6BIA8F+sDeGscGNz9395
+nzIlQnQFgCi/vcEkllgVsRch6YlL2weIZ/QVrXA+L02FO8K32/6YaCOJ4XQP3vTFhGMpG8zLB8kA
+pKnXwiJPZ9d37CAFYd4=
+-----END CERTIFICATE-----
+
+GeoTrust Global CA
+==================
+-----BEGIN CERTIFICATE-----
+MIIDVDCCAjygAwIBAgIDAjRWMA0GCSqGSIb3DQEBBQUAMEIxCzAJBgNVBAYTAlVTMRYwFAYDVQQK
+Ew1HZW9UcnVzdCBJbmMuMRswGQYDVQQDExJHZW9UcnVzdCBHbG9iYWwgQ0EwHhcNMDIwNTIxMDQw
+MDAwWhcNMjIwNTIxMDQwMDAwWjBCMQswCQYDVQQGEwJVUzEWMBQGA1UEChMNR2VvVHJ1c3QgSW5j
+LjEbMBkGA1UEAxMSR2VvVHJ1c3QgR2xvYmFsIENBMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIB
+CgKCAQEA2swYYzD99BcjGlZ+W988bDjkcbd4kdS8odhM+KhDtgPpTSEHCIjaWC9mOSm9BXiLnTjo
+BbdqfnGk5sRgprDvgOSJKA+eJdbtg/OtppHHmMlCGDUUna2YRpIuT8rxh0PBFpVXLVDviS2Aelet
+8u5fa9IAjbkU+BQVNdnARqN7csiRv8lVK83Qlz6cJmTM386DGXHKTubU1XupGc1V3sjs0l44U+Vc
+T4wt/lAjNvxm5suOpDkZALeVAjmRCw7+OC7RHQWa9k0+bw8HHa8sHo9gOeL6NlMTOdReJivbPagU
+vTLrGAMoUgRx5aszPeE4uwc2hGKceeoWMPRfwCvocWvk+QIDAQABo1MwUTAPBgNVHRMBAf8EBTAD
+AQH/MB0GA1UdDgQWBBTAephojYn7qwVkDBF9qn1luMrMTjAfBgNVHSMEGDAWgBTAephojYn7qwVk
+DBF9qn1luMrMTjANBgkqhkiG9w0BAQUFAAOCAQEANeMpauUvXVSOKVCUn5kaFOSPeCpilKInZ57Q
+zxpeR+nBsqTP3UEaBU6bS+5Kb1VSsyShNwrrZHYqLizz/Tt1kL/6cdjHPTfStQWVYrmm3ok9Nns4
+d0iXrKYgjy6myQzCsplFAMfOEVEiIuCl6rYVSAlk6l5PdPcFPseKUgzbFbS9bZvlxrFUaKnjaZC2
+mqUPuLk/IH2uSrW4nOQdtqvmlKXBx4Ot2/Unhw4EbNX/3aBd7YdStysVAq45pmp06drE57xNNB6p
+XE0zX5IJL4hmXXeXxx12E6nV5fEWCRE11azbJHFwLJhWC9kXtNHjUStedejV0NxPNO3CBWaAocvm
+Mw==
+-----END CERTIFICATE-----
+
+GeoTrust Global CA 2
+====================
+-----BEGIN CERTIFICATE-----
+MIIDZjCCAk6gAwIBAgIBATANBgkqhkiG9w0BAQUFADBEMQswCQYDVQQGEwJVUzEWMBQGA1UEChMN
+R2VvVHJ1c3QgSW5jLjEdMBsGA1UEAxMUR2VvVHJ1c3QgR2xvYmFsIENBIDIwHhcNMDQwMzA0MDUw
+MDAwWhcNMTkwMzA0MDUwMDAwWjBEMQswCQYDVQQGEwJVUzEWMBQGA1UEChMNR2VvVHJ1c3QgSW5j
+LjEdMBsGA1UEAxMUR2VvVHJ1c3QgR2xvYmFsIENBIDIwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAw
+ggEKAoIBAQDvPE1APRDfO1MA4Wf+lGAVPoWI8YkNkMgoI5kF6CsgncbzYEbYwbLVjDHZ3CB5JIG/
+NTL8Y2nbsSpr7iFY8gjpeMtvy/wWUsiRxP89c96xPqfCfWbB9X5SJBri1WeR0IIQ13hLTytCOb1k
+LUCgsBDTOEhGiKEMuzozKmKY+wCdE1l/bztyqu6mD4b5BWHqZ38MN5aL5mkWRxHCJ1kDs6ZgwiFA
+Vvqgx306E+PsV8ez1q6diYD3Aecs9pYrEw15LNnA5IZ7S4wMcoKK+xfNAGw6EzywhIdLFnopsk/b
+HdQL82Y3vdj2V7teJHq4PIu5+pIaGoSe2HSPqht/XvT+RSIhAgMBAAGjYzBhMA8GA1UdEwEB/wQF
+MAMBAf8wHQYDVR0OBBYEFHE4NvICMVNHK266ZUapEBVYIAUJMB8GA1UdIwQYMBaAFHE4NvICMVNH
+K266ZUapEBVYIAUJMA4GA1UdDwEB/wQEAwIBhjANBgkqhkiG9w0BAQUFAAOCAQEAA/e1K6tdEPx7
+srJerJsOflN4WT5CBP51o62sgU7XAotexC3IUnbHLB/8gTKY0UvGkpMzNTEv/NgdRN3ggX+d6Yvh
+ZJFiCzkIjKx0nVnZellSlxG5FntvRdOW2TF9AjYPnDtuzywNA0ZF66D0f0hExghAzN4bcLUprbqL
+OzRldRtxIR0sFAqwlpW41uryZfspuk/qkZN0abby/+Ea0AzRdoXLiiW9l14sbxWZJue2Kf8i7MkC
+x1YAzUm5s2x7UwQa4qjJqhIFI8LO57sEAszAR6LkxCkvW0VXiVHuPOtSCP8HNR6fNWpHSlaY0VqF
+H4z1Ir+rzoPz4iIprn2DQKi6bA==
+-----END CERTIFICATE-----
+
+GeoTrust Universal CA
+=====================
+-----BEGIN CERTIFICATE-----
+MIIFaDCCA1CgAwIBAgIBATANBgkqhkiG9w0BAQUFADBFMQswCQYDVQQGEwJVUzEWMBQGA1UEChMN
+R2VvVHJ1c3QgSW5jLjEeMBwGA1UEAxMVR2VvVHJ1c3QgVW5pdmVyc2FsIENBMB4XDTA0MDMwNDA1
+MDAwMFoXDTI5MDMwNDA1MDAwMFowRTELMAkGA1UEBhMCVVMxFjAUBgNVBAoTDUdlb1RydXN0IElu
+Yy4xHjAcBgNVBAMTFUdlb1RydXN0IFVuaXZlcnNhbCBDQTCCAiIwDQYJKoZIhvcNAQEBBQADggIP
+ADCCAgoCggIBAKYVVaCjxuAfjJ0hUNfBvitbtaSeodlyWL0AG0y/YckUHUWCq8YdgNY96xCcOq9t
+JPi8cQGeBvV8Xx7BDlXKg5pZMK4ZyzBIle0iN430SppyZj6tlcDgFgDgEB8rMQ7XlFTTQjOgNB0e
+RXbdT8oYN+yFFXoZCPzVx5zw8qkuEKmS5j1YPakWaDwvdSEYfyh3peFhF7em6fgemdtzbvQKoiFs
+7tqqhZJmr/Z6a4LauiIINQ/PQvE1+mrufislzDoR5G2vc7J2Ha3QsnhnGqQ5HFELZ1aD/ThdDc7d
+8Lsrlh/eezJS/R27tQahsiFepdaVaH/wmZ7cRQg+59IJDTWU3YBOU5fXtQlEIGQWFwMCTFMNaN7V
+qnJNk22CDtucvc+081xdVHppCZbW2xHBjXWotM85yM48vCR85mLK4b19p71XZQvk/iXttmkQ3Cga
+Rr0BHdCXteGYO8A3ZNY9lO4L4fUorgtWv3GLIylBjobFS1J72HGrH4oVpjuDWtdYAVHGTEHZf9hB
+Z3KiKN9gg6meyHv8U3NyWfWTehd2Ds735VzZC1U0oqpbtWpU5xPKV+yXbfReBi9Fi1jUIxaS5BZu
+KGNZMN9QAZxjiRqf2xeUgnA3wySemkfWWspOqGmJch+RbNt+nhutxx9z3SxPGWX9f5NAEC7S8O08
+ni4oPmkmM8V7AgMBAAGjYzBhMA8GA1UdEwEB/wQFMAMBAf8wHQYDVR0OBBYEFNq7LqqwDLiIJlF0
+XG0D08DYj3rWMB8GA1UdIwQYMBaAFNq7LqqwDLiIJlF0XG0D08DYj3rWMA4GA1UdDwEB/wQEAwIB
+hjANBgkqhkiG9w0BAQUFAAOCAgEAMXjmx7XfuJRAyXHEqDXsRh3ChfMoWIawC/yOsjmPRFWrZIRc
+aanQmjg8+uUfNeVE44B5lGiku8SfPeE0zTBGi1QrlaXv9z+ZhP015s8xxtxqv6fXIwjhmF7DWgh2
+qaavdy+3YL1ERmrvl/9zlcGO6JP7/TG37FcREUWbMPEaiDnBTzynANXH/KttgCJwpQzgXQQpAvvL
+oJHRfNbDflDVnVi+QTjruXU8FdmbyUqDWcDaU/0zuzYYm4UPFd3uLax2k7nZAY1IEKj79TiG8dsK
+xr2EoyNB3tZ3b4XUhRxQ4K5RirqNPnbiucon8l+f725ZDQbYKxek0nxru18UGkiPGkzns0ccjkxF
+KyDuSN/n3QmOGKjaQI2SJhFTYXNd673nxE0pN2HrrDktZy4W1vUAg4WhzH92xH3kt0tm7wNFYGm2
+DFKWkoRepqO1pD4r2czYG0eq8kTaT/kD6PAUyz/zg97QwVTjt+gKN02LIFkDMBmhLMi9ER/frslK
+xfMnZmaGrGiR/9nmUxwPi1xpZQomyB40w11Re9epnAahNt3ViZS82eQtDF4JbAiXfKM9fJP/P6EU
+p8+1Xevb2xzEdt+Iub1FBZUbrvxGakyvSOPOrg/SfuvmbJxPgWp6ZKy7PtXny3YuxadIwVyQD8vI
+P/rmMuGNG2+k5o7Y+SlIis5z/iw=
+-----END CERTIFICATE-----
+
+GeoTrust Universal CA 2
+=======================
+-----BEGIN CERTIFICATE-----
+MIIFbDCCA1SgAwIBAgIBATANBgkqhkiG9w0BAQUFADBHMQswCQYDVQQGEwJVUzEWMBQGA1UEChMN
+R2VvVHJ1c3QgSW5jLjEgMB4GA1UEAxMXR2VvVHJ1c3QgVW5pdmVyc2FsIENBIDIwHhcNMDQwMzA0
+MDUwMDAwWhcNMjkwMzA0MDUwMDAwWjBHMQswCQYDVQQGEwJVUzEWMBQGA1UEChMNR2VvVHJ1c3Qg
+SW5jLjEgMB4GA1UEAxMXR2VvVHJ1c3QgVW5pdmVyc2FsIENBIDIwggIiMA0GCSqGSIb3DQEBAQUA
+A4ICDwAwggIKAoICAQCzVFLByT7y2dyxUxpZKeexw0Uo5dfR7cXFS6GqdHtXr0om/Nj1XqduGdt0
+DE81WzILAePb63p3NeqqWuDW6KFXlPCQo3RWlEQwAx5cTiuFJnSCegx2oG9NzkEtoBUGFF+3Qs17
+j1hhNNwqCPkuwwGmIkQcTAeC5lvO0Ep8BNMZcyfwqph/Lq9O64ceJHdqXbboW0W63MOhBW9Wjo8Q
+JqVJwy7XQYci4E+GymC16qFjwAGXEHm9ADwSbSsVsaxLse4YuU6W3Nx2/zu+z18DwPw76L5GG//a
+QMJS9/7jOvdqdzXQ2o3rXhhqMcceujwbKNZrVMaqW9eiLBsZzKIC9ptZvTdrhrVtgrrY6slWvKk2
+WP0+GfPtDCapkzj4T8FdIgbQl+rhrcZV4IErKIM6+vR7IVEAvlI4zs1meaj0gVbi0IMJR1FbUGrP
+20gaXT73y/Zl92zxlfgCOzJWgjl6W70viRu/obTo/3+NjN8D8WBOWBFM66M/ECuDmgFz2ZRthAAn
+ZqzwcEAJQpKtT5MNYQlRJNiS1QuUYbKHsu3/mjX/hVTK7URDrBs8FmtISgocQIgfksILAAX/8sgC
+SqSqqcyZlpwvWOB94b67B9xfBHJcMTTD7F8t4D1kkCLm0ey4Lt1ZrtmhN79UNdxzMk+MBB4zsslG
+8dhcyFVQyWi9qLo2CQIDAQABo2MwYTAPBgNVHRMBAf8EBTADAQH/MB0GA1UdDgQWBBR281Xh+qQ2
++/CfXGJx7Tz0RzgQKzAfBgNVHSMEGDAWgBR281Xh+qQ2+/CfXGJx7Tz0RzgQKzAOBgNVHQ8BAf8E
+BAMCAYYwDQYJKoZIhvcNAQEFBQADggIBAGbBxiPz2eAubl/oz66wsCVNK/g7WJtAJDday6sWSf+z
+dXkzoS9tcBc0kf5nfo/sm+VegqlVHy/c1FEHEv6sFj4sNcZj/NwQ6w2jqtB8zNHQL1EuxBRa3ugZ
+4T7GzKQp5y6EqgYweHZUcyiYWTjgAA1i00J9IZ+uPTqM1fp3DRgrFg5fNuH8KrUwJM/gYwx7WBr+
+mbpCErGR9Hxo4sjoryzqyX6uuyo9DRXcNJW2GHSoag/HtPQTxORb7QrSpJdMKu0vbBKJPfEncKpq
+A1Ihn0CoZ1Dy81of398j9tx4TuaYT1U6U+Pv8vSfx3zYWK8pIpe44L2RLrB27FcRz+8pRPPphXpg
+Y+RdM4kX2TGq2tbzGDVyz4crL2MjhF2EjD9XoIj8mZEoJmmZ1I+XRL6O1UixpCgp8RW04eWe3fiP
+pm8m1wk8OhwRDqZsN/etRIcsKMfYdIKz0G9KV7s1KSegi+ghp4dkNl3M2Basx7InQJJVOCiNUW7d
+FGdTbHFcJoRNdVq2fmBWqU2t+5sel/MN2dKXVHfaPRK34B7vCAas+YWH6aLcr34YEoP9VhdBLtUp
+gn2Z9DH2canPLAEnpQW5qrJITirvn5NSUZU8UnOOVkwXQMAJKOSLakhT2+zNVVXxxvjpoixMptEm
+X36vWkzaH6byHCx+rgIW0lbQL1dTR+iS
+-----END CERTIFICATE-----
+
+America Online Root Certification Authority 1
+=============================================
+-----BEGIN CERTIFICATE-----
+MIIDpDCCAoygAwIBAgIBATANBgkqhkiG9w0BAQUFADBjMQswCQYDVQQGEwJVUzEcMBoGA1UEChMT
+QW1lcmljYSBPbmxpbmUgSW5jLjE2MDQGA1UEAxMtQW1lcmljYSBPbmxpbmUgUm9vdCBDZXJ0aWZp
+Y2F0aW9uIEF1dGhvcml0eSAxMB4XDTAyMDUyODA2MDAwMFoXDTM3MTExOTIwNDMwMFowYzELMAkG
+A1UEBhMCVVMxHDAaBgNVBAoTE0FtZXJpY2EgT25saW5lIEluYy4xNjA0BgNVBAMTLUFtZXJpY2Eg
+T25saW5lIFJvb3QgQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkgMTCCASIwDQYJKoZIhvcNAQEBBQAD
+ggEPADCCAQoCggEBAKgv6KRpBgNHw+kqmP8ZonCaxlCyfqXfaE0bfA+2l2h9LaaLl+lkhsmj76CG
+v2BlnEtUiMJIxUo5vxTjWVXlGbR0yLQFOVwWpeKVBeASrlmLojNoWBym1BW32J/X3HGrfpq/m44z
+DyL9Hy7nBzbvYjnF3cu6JRQj3gzGPTzOggjmZj7aUTsWOqMFf6Dch9Wc/HKpoH145LcxVR5lu9Rh
+sCFg7RAycsWSJR74kEoYeEfffjA3PlAb2xzTa5qGUwew76wGePiEmf4hjUyAtgyC9mZweRrTT6PP
+8c9GsEsPPt2IYriMqQkoO3rHl+Ee5fSfwMCuJKDIodkP1nsmgmkyPacCAwEAAaNjMGEwDwYDVR0T
+AQH/BAUwAwEB/zAdBgNVHQ4EFgQUAK3Zo/Z59m50qX8zPYEX10zPM94wHwYDVR0jBBgwFoAUAK3Z
+o/Z59m50qX8zPYEX10zPM94wDgYDVR0PAQH/BAQDAgGGMA0GCSqGSIb3DQEBBQUAA4IBAQB8itEf
+GDeC4Liwo+1WlchiYZwFos3CYiZhzRAW18y0ZTTQEYqtqKkFZu90821fnZmv9ov761KyBZiibyrF
+VL0lvV+uyIbqRizBs73B6UlwGBaXCBOMIOAbLjpHyx7kADCVW/RFo8AasAFOq73AI25jP4BKxQft
+3OJvx8Fi8eNy1gTIdGcL+oiroQHIb/AUr9KZzVGTfu0uOMe9zkZQPXLjeSWdm4grECDdpbgyn43g
+Kd8hdIaC2y+CMMbHNYaz+ZZfRtsMRf3zUMNvxsNIrUam4SdHCh0Om7bCd39j8uB9Gr784N/Xx6ds
+sPmuujz9dLQR6FgNgLzTqIA6me11zEZ7
+-----END CERTIFICATE-----
+
+America Online Root Certification Authority 2
+=============================================
+-----BEGIN CERTIFICATE-----
+MIIFpDCCA4ygAwIBAgIBATANBgkqhkiG9w0BAQUFADBjMQswCQYDVQQGEwJVUzEcMBoGA1UEChMT
+QW1lcmljYSBPbmxpbmUgSW5jLjE2MDQGA1UEAxMtQW1lcmljYSBPbmxpbmUgUm9vdCBDZXJ0aWZp
+Y2F0aW9uIEF1dGhvcml0eSAyMB4XDTAyMDUyODA2MDAwMFoXDTM3MDkyOTE0MDgwMFowYzELMAkG
+A1UEBhMCVVMxHDAaBgNVBAoTE0FtZXJpY2EgT25saW5lIEluYy4xNjA0BgNVBAMTLUFtZXJpY2Eg
+T25saW5lIFJvb3QgQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkgMjCCAiIwDQYJKoZIhvcNAQEBBQAD
+ggIPADCCAgoCggIBAMxBRR3pPU0Q9oyxQcngXssNt79Hc9PwVU3dxgz6sWYFas14tNwC206B89en
+fHG8dWOgXeMHDEjsJcQDIPT/DjsS/5uN4cbVG7RtIuOx238hZK+GvFciKtZHgVdEglZTvYYUAQv8
+f3SkWq7xuhG1m1hagLQ3eAkzfDJHA1zEpYNI9FdWboE2JxhP7JsowtS013wMPgwr38oE18aO6lhO
+qKSlGBxsRZijQdEt0sdtjRnxrXm3gT+9BoInLRBYBbV4Bbkv2wxrkJB+FFk4u5QkE+XRnRTf04JN
+RvCAOVIyD+OEsnpD8l7eXz8d3eOyG6ChKiMDbi4BFYdcpnV1x5dhvt6G3NRI270qv0pV2uh9UPu0
+gBe4lL8BPeraunzgWGcXuVjgiIZGZ2ydEEdYMtA1fHkqkKJaEBEjNa0vzORKW6fIJ/KD3l67Xnfn
+6KVuY8INXWHQjNJsWiEOyiijzirplcdIz5ZvHZIlyMbGwcEMBawmxNJ10uEqZ8A9W6Wa6897Gqid
+FEXlD6CaZd4vKL3Ob5Rmg0gp2OpljK+T2WSfVVcmv2/LNzGZo2C7HK2JNDJiuEMhBnIMoVxtRsX6
+Kc8w3onccVvdtjc+31D1uAclJuW8tf48ArO3+L5DwYcRlJ4jbBeKuIonDFRH8KmzwICMoCfrHRnj
+B453cMor9H124HhnAgMBAAGjYzBhMA8GA1UdEwEB/wQFMAMBAf8wHQYDVR0OBBYEFE1FwWg4u3Op
+aaEg5+31IqEjFNeeMB8GA1UdIwQYMBaAFE1FwWg4u3OpaaEg5+31IqEjFNeeMA4GA1UdDwEB/wQE
+AwIBhjANBgkqhkiG9w0BAQUFAAOCAgEAZ2sGuV9FOypLM7PmG2tZTiLMubekJcmnxPBUlgtk87FY
+T15R/LKXeydlwuXK5w0MJXti4/qftIe3RUavg6WXSIylvfEWK5t2LHo1YGwRgJfMqZJS5ivmae2p
++DYtLHe/YUjRYwu5W1LtGLBDQiKmsXeu3mnFzcccobGlHBD7GL4acN3Bkku+KVqdPzW+5X1R+FXg
+JXUjhx5c3LqdsKyzadsXg8n33gy8CNyRnqjQ1xU3c6U1uPx+xURABsPr+CKAXEfOAuMRn0T//Zoy
+zH1kUQ7rVyZ2OuMeIjzCpjbdGe+n/BLzJsBZMYVMnNjP36TMzCmT/5RtdlwTCJfy7aULTd3oyWgO
+ZtMADjMSW7yV5TKQqLPGbIOtd+6Lfn6xqavT4fG2wLHqiMDn05DpKJKUe2h7lyoKZy2FAjgQ5ANh
+1NolNscIWC2hp1GvMApJ9aZphwctREZ2jirlmjvXGKL8nDgQzMY70rUXOm/9riW99XJZZLF0Kjhf
+GEzfz3EEWjbUvy+ZnOjZurGV5gJLIaFb1cFPj65pbVPbAZO1XB4Y3WRayhgoPmMEEf0cjQAPuDff
+Z4qdZqkCapH/E8ovXYO8h5Ns3CRRFgQlZvqz2cK6Kb6aSDiCmfS/O0oxGfm/jiEzFMpPVF/7zvuP
+cX/9XhmgD0uRuMRUvAawRY8mkaKO/qk=
+-----END CERTIFICATE-----
+
+Visa eCommerce Root
+===================
+-----BEGIN CERTIFICATE-----
+MIIDojCCAoqgAwIBAgIQE4Y1TR0/BvLB+WUF1ZAcYjANBgkqhkiG9w0BAQUFADBrMQswCQYDVQQG
+EwJVUzENMAsGA1UEChMEVklTQTEvMC0GA1UECxMmVmlzYSBJbnRlcm5hdGlvbmFsIFNlcnZpY2Ug
+QXNzb2NpYXRpb24xHDAaBgNVBAMTE1Zpc2EgZUNvbW1lcmNlIFJvb3QwHhcNMDIwNjI2MDIxODM2
+WhcNMjIwNjI0MDAxNjEyWjBrMQswCQYDVQQGEwJVUzENMAsGA1UEChMEVklTQTEvMC0GA1UECxMm
+VmlzYSBJbnRlcm5hdGlvbmFsIFNlcnZpY2UgQXNzb2NpYXRpb24xHDAaBgNVBAMTE1Zpc2EgZUNv
+bW1lcmNlIFJvb3QwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCvV95WHm6h2mCxlCfL
+F9sHP4CFT8icttD0b0/Pmdjh28JIXDqsOTPHH2qLJj0rNfVIsZHBAk4ElpF7sDPwsRROEW+1QK8b
+RaVK7362rPKgH1g/EkZgPI2h4H3PVz4zHvtH8aoVlwdVZqW1LS7YgFmypw23RuwhY/81q6UCzyr0
+TP579ZRdhE2o8mCP2w4lPJ9zcc+U30rq299yOIzzlr3xF7zSujtFWsan9sYXiwGd/BmoKoMWuDpI
+/k4+oKsGGelT84ATB+0tvz8KPFUgOSwsAGl0lUq8ILKpeeUYiZGo3BxN77t+Nwtd/jmliFKMAGzs
+GHxBvfaLdXe6YJ2E5/4tAgMBAAGjQjBAMA8GA1UdEwEB/wQFMAMBAf8wDgYDVR0PAQH/BAQDAgEG
+MB0GA1UdDgQWBBQVOIMPPyw/cDMezUb+B4wg4NfDtzANBgkqhkiG9w0BAQUFAAOCAQEAX/FBfXxc
+CLkr4NWSR/pnXKUTwwMhmytMiUbPWU3J/qVAtmPN3XEolWcRzCSs00Rsca4BIGsDoo8Ytyk6feUW
+YFN4PMCvFYP3j1IzJL1kk5fui/fbGKhtcbP3LBfQdCVp9/5rPJS+TUtBjE7ic9DjkCJzQ83z7+pz
+zkWKsKZJ/0x9nXGIxHYdkFsd7v3M9+79YKWxehZx0RbQfBI8bGmX265fOZpwLwU8GUYEmSA20GBu
+YQa7FkKMcPcw++DbZqMAAb3mLNqRX6BGi01qnD093QVG/na/oAo85ADmJ7f/hC3euiInlhBx6yLt
+398znM/jra6O1I7mT1GvFpLgXPYHDw==
+-----END CERTIFICATE-----
+
+Certum Root CA
+==============
+-----BEGIN CERTIFICATE-----
+MIIDDDCCAfSgAwIBAgIDAQAgMA0GCSqGSIb3DQEBBQUAMD4xCzAJBgNVBAYTAlBMMRswGQYDVQQK
+ExJVbml6ZXRvIFNwLiB6IG8uby4xEjAQBgNVBAMTCUNlcnR1bSBDQTAeFw0wMjA2MTExMDQ2Mzla
+Fw0yNzA2MTExMDQ2MzlaMD4xCzAJBgNVBAYTAlBMMRswGQYDVQQKExJVbml6ZXRvIFNwLiB6IG8u
+by4xEjAQBgNVBAMTCUNlcnR1bSBDQTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAM6x
+wS7TT3zNJc4YPk/EjG+AanPIW1H4m9LcuwBcsaD8dQPugfCI7iNS6eYVM42sLQnFdvkrOYCJ5JdL
+kKWoePhzQ3ukYbDYWMzhbGZ+nPMJXlVjhNWo7/OxLjBos8Q82KxujZlakE403Daaj4GIULdtlkIJ
+89eVgw1BS7Bqa/j8D35in2fE7SZfECYPCE/wpFcozo+47UX2bu4lXapuOb7kky/ZR6By6/qmW6/K
+Uz/iDsaWVhFu9+lmqSbYf5VT7QqFiLpPKaVCjF62/IUgAKpoC6EahQGcxEZjgoi2IrHu/qpGWX7P
+NSzVttpd90gzFFS269lvzs2I1qsb2pY7HVkCAwEAAaMTMBEwDwYDVR0TAQH/BAUwAwEB/zANBgkq
+hkiG9w0BAQUFAAOCAQEAuI3O7+cUus/usESSbLQ5PqKEbq24IXfS1HeCh+YgQYHu4vgRt2PRFze+
+GXYkHAQaTOs9qmdvLdTN/mUxcMUbpgIKumB7bVjCmkn+YzILa+M6wKyrO7Do0wlRjBCDxjTgxSvg
+GrZgFCdsMneMvLJymM/NzD+5yCRCFNZX/OYmQ6kd5YCQzgNUKD73P9P4Te1qCjqTE5s7FCMTY5w/
+0YcneeVMUeMBrYVdGjux1XMQpNPyvG5k9VpWkKjHDkx0Dy5xO/fIR/RpbxXyEV6DHpx8Uq79AtoS
+qFlnGNu8cN2bsWntgM6JQEhqDjXKKWYVIZQs6GAqm4VKQPNriiTsBhYscw==
+-----END CERTIFICATE-----
+
+Comodo AAA Services root
+========================
+-----BEGIN CERTIFICATE-----
+MIIEMjCCAxqgAwIBAgIBATANBgkqhkiG9w0BAQUFADB7MQswCQYDVQQGEwJHQjEbMBkGA1UECAwS
+R3JlYXRlciBNYW5jaGVzdGVyMRAwDgYDVQQHDAdTYWxmb3JkMRowGAYDVQQKDBFDb21vZG8gQ0Eg
+TGltaXRlZDEhMB8GA1UEAwwYQUFBIENlcnRpZmljYXRlIFNlcnZpY2VzMB4XDTA0MDEwMTAwMDAw
+MFoXDTI4MTIzMTIzNTk1OVowezELMAkGA1UEBhMCR0IxGzAZBgNVBAgMEkdyZWF0ZXIgTWFuY2hl
+c3RlcjEQMA4GA1UEBwwHU2FsZm9yZDEaMBgGA1UECgwRQ29tb2RvIENBIExpbWl0ZWQxITAfBgNV
+BAMMGEFBQSBDZXJ0aWZpY2F0ZSBTZXJ2aWNlczCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoC
+ggEBAL5AnfRu4ep2hxxNRUSOvkbIgwadwSr+GB+O5AL686tdUIoWMQuaBtDFcCLNSS1UY8y2bmhG
+C1Pqy0wkwLxyTurxFa70VJoSCsN6sjNg4tqJVfMiWPPe3M/vg4aijJRPn2jymJBGhCfHdr/jzDUs
+i14HZGWCwEiwqJH5YZ92IFCokcdmtet4YgNW8IoaE+oxox6gmf049vYnMlhvB/VruPsUK6+3qszW
+Y19zjNoFmag4qMsXeDZRrOme9Hg6jc8P2ULimAyrL58OAd7vn5lJ8S3frHRNG5i1R8XlKdH5kBjH
+Ypy+g8cmez6KJcfA3Z3mNWgQIJ2P2N7Sw4ScDV7oL8kCAwEAAaOBwDCBvTAdBgNVHQ4EFgQUoBEK
+Iz6W8Qfs4q8p74Klf9AwpLQwDgYDVR0PAQH/BAQDAgEGMA8GA1UdEwEB/wQFMAMBAf8wewYDVR0f
+BHQwcjA4oDagNIYyaHR0cDovL2NybC5jb21vZG9jYS5jb20vQUFBQ2VydGlmaWNhdGVTZXJ2aWNl
+cy5jcmwwNqA0oDKGMGh0dHA6Ly9jcmwuY29tb2RvLm5ldC9BQUFDZXJ0aWZpY2F0ZVNlcnZpY2Vz
+LmNybDANBgkqhkiG9w0BAQUFAAOCAQEACFb8AvCb6P+k+tZ7xkSAzk/ExfYAWMymtrwUSWgEdujm
+7l3sAg9g1o1QGE8mTgHj5rCl7r+8dFRBv/38ErjHT1r0iWAFf2C3BUrz9vHCv8S5dIa2LX1rzNLz
+Rt0vxuBqw8M0Ayx9lt1awg6nCpnBBYurDC/zXDrPbDdVCYfeU0BsWO/8tqtlbgT2G9w84FoVxp7Z
+8VlIMCFlA2zs6SFz7JsDoeA3raAVGI/6ugLOpyypEBMs1OUIJqsil2D4kF501KKaU73yqWjgom7C
+12yxow+ev+to51byrvLjKzg6CYG1a4XXvi3tPxq3smPi9WIsgtRqAEFQ8TmDn5XpNpaYbg==
+-----END CERTIFICATE-----
+
+Comodo Secure Services root
+===========================
+-----BEGIN CERTIFICATE-----
+MIIEPzCCAyegAwIBAgIBATANBgkqhkiG9w0BAQUFADB+MQswCQYDVQQGEwJHQjEbMBkGA1UECAwS
+R3JlYXRlciBNYW5jaGVzdGVyMRAwDgYDVQQHDAdTYWxmb3JkMRowGAYDVQQKDBFDb21vZG8gQ0Eg
+TGltaXRlZDEkMCIGA1UEAwwbU2VjdXJlIENlcnRpZmljYXRlIFNlcnZpY2VzMB4XDTA0MDEwMTAw
+MDAwMFoXDTI4MTIzMTIzNTk1OVowfjELMAkGA1UEBhMCR0IxGzAZBgNVBAgMEkdyZWF0ZXIgTWFu
+Y2hlc3RlcjEQMA4GA1UEBwwHU2FsZm9yZDEaMBgGA1UECgwRQ29tb2RvIENBIExpbWl0ZWQxJDAi
+BgNVBAMMG1NlY3VyZSBDZXJ0aWZpY2F0ZSBTZXJ2aWNlczCCASIwDQYJKoZIhvcNAQEBBQADggEP
+ADCCAQoCggEBAMBxM4KK0HDrc4eCQNUd5MvJDkKQ+d40uaG6EfQlhfPMcm3ye5drswfxdySRXyWP
+9nQ95IDC+DwN879A6vfIUtFyb+/Iq0G4bi4XKpVpDM3SHpR7LZQdqnXXs5jLrLxkU0C8j6ysNstc
+rbvd4JQX7NFc0L/vpZXJkMWwrPsbQ996CF23uPJAGysnnlDOXmWCiIxe004MeuoIkbY2qitC++rC
+oznl2yY4rYsK7hljxxwk3wN42ubqwUcaCwtGCd0C/N7Lh1/XMGNooa7cMqG6vv5Eq2i2pRcV/b3V
+p6ea5EQz6YiO/O1R65NxTq0B50SOqy3LqP4BSUjwwN3HaNiS/j0CAwEAAaOBxzCBxDAdBgNVHQ4E
+FgQUPNiTiMLAggnMAZkGkyDpnnAJY08wDgYDVR0PAQH/BAQDAgEGMA8GA1UdEwEB/wQFMAMBAf8w
+gYEGA1UdHwR6MHgwO6A5oDeGNWh0dHA6Ly9jcmwuY29tb2RvY2EuY29tL1NlY3VyZUNlcnRpZmlj
+YXRlU2VydmljZXMuY3JsMDmgN6A1hjNodHRwOi8vY3JsLmNvbW9kby5uZXQvU2VjdXJlQ2VydGlm
+aWNhdGVTZXJ2aWNlcy5jcmwwDQYJKoZIhvcNAQEFBQADggEBAIcBbSMdflsXfcFhMs+P5/OKlFlm
+4J4oqF7Tt/Q05qo5spcWxYJvMqTpjOev/e/C6LlLqqP05tqNZSH7uoDrJiiFGv45jN5bBAS0VPmj
+Z55B+glSzAVIqMk/IQQezkhr/IXownuvf7fM+F86/TXGDe+X3EyrEeFryzHRbPtIgKvcnDe4IRRL
+DXE97IMzbtFuMhbsmMcWi1mmNKsFVy2T96oTy9IT4rcuO81rUBcJaD61JlfutuC23bkpgHl9j6Pw
+pCikFcSF9CfUa7/lXORlAnZUtOM3ZiTTGWHIUhDlizeauan5Hb/qmZJhlv8BzaFfDbxxvA6sCx1H
+RR3B7Hzs/Sk=
+-----END CERTIFICATE-----
+
+Comodo Trusted Services root
+============================
+-----BEGIN CERTIFICATE-----
+MIIEQzCCAyugAwIBAgIBATANBgkqhkiG9w0BAQUFADB/MQswCQYDVQQGEwJHQjEbMBkGA1UECAwS
+R3JlYXRlciBNYW5jaGVzdGVyMRAwDgYDVQQHDAdTYWxmb3JkMRowGAYDVQQKDBFDb21vZG8gQ0Eg
+TGltaXRlZDElMCMGA1UEAwwcVHJ1c3RlZCBDZXJ0aWZpY2F0ZSBTZXJ2aWNlczAeFw0wNDAxMDEw
+MDAwMDBaFw0yODEyMzEyMzU5NTlaMH8xCzAJBgNVBAYTAkdCMRswGQYDVQQIDBJHcmVhdGVyIE1h
+bmNoZXN0ZXIxEDAOBgNVBAcMB1NhbGZvcmQxGjAYBgNVBAoMEUNvbW9kbyBDQSBMaW1pdGVkMSUw
+IwYDVQQDDBxUcnVzdGVkIENlcnRpZmljYXRlIFNlcnZpY2VzMIIBIjANBgkqhkiG9w0BAQEFAAOC
+AQ8AMIIBCgKCAQEA33FvNlhTWvI2VFeAxHQIIO0Yfyod5jWaHiWsnOWWfnJSoBVC21ndZHoa0Lh7
+3TkVvFVIxO06AOoxEbrycXQaZ7jPM8yoMa+j49d/vzMtTGo87IvDktJTdyR0nAducPy9C1t2ul/y
+/9c3S0pgePfw+spwtOpZqqPOSC+pw7ILfhdyFgymBwwbOM/JYrc/oJOlh0Hyt3BAd9i+FHzjqMB6
+juljatEPmsbS9Is6FARW1O24zG71++IsWL1/T2sr92AkWCTOJu80kTrV44HQsvAEAtdbtz6SrGsS
+ivnkBbA7kUlcsutT6vifR4buv5XAwAaf0lteERv0xwQ1KdJVXOTt6wIDAQABo4HJMIHGMB0GA1Ud
+DgQWBBTFe1i97doladL3WRaoszLAeydb9DAOBgNVHQ8BAf8EBAMCAQYwDwYDVR0TAQH/BAUwAwEB
+/zCBgwYDVR0fBHwwejA8oDqgOIY2aHR0cDovL2NybC5jb21vZG9jYS5jb20vVHJ1c3RlZENlcnRp
+ZmljYXRlU2VydmljZXMuY3JsMDqgOKA2hjRodHRwOi8vY3JsLmNvbW9kby5uZXQvVHJ1c3RlZENl
+cnRpZmljYXRlU2VydmljZXMuY3JsMA0GCSqGSIb3DQEBBQUAA4IBAQDIk4E7ibSvuIQSTI3S8Ntw
+uleGFTQQuS9/HrCoiWChisJ3DFBKmwCL2Iv0QeLQg4pKHBQGsKNoBXAxMKdTmw7pSqBYaWcOrp32
+pSxBvzwGa+RZzG0Q8ZZvH9/0BAKkn0U+yNj6NkZEUD+Cl5EfKNsYEYwq5GWDVxISjBc/lDb+XbDA
+BHcTuPQV1T84zJQ6VdCsmPW6AF/ghhmBeC8owH7TzEIK9a5QoNE+xqFx7D+gIIxmOom0jtTYsU0l
+R+4viMi14QVFwL4Ucd56/Y57fU0IlqUSc/AtyjcndBInTMu2l+nZrghtWjlA3QVHdWpaIbOjGM9O
+9y5Xt5hwXsjEeLBi
+-----END CERTIFICATE-----
+
+QuoVadis Root CA
+================
+-----BEGIN CERTIFICATE-----
+MIIF0DCCBLigAwIBAgIEOrZQizANBgkqhkiG9w0BAQUFADB/MQswCQYDVQQGEwJCTTEZMBcGA1UE
+ChMQUXVvVmFkaXMgTGltaXRlZDElMCMGA1UECxMcUm9vdCBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0
+eTEuMCwGA1UEAxMlUXVvVmFkaXMgUm9vdCBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eTAeFw0wMTAz
+MTkxODMzMzNaFw0yMTAzMTcxODMzMzNaMH8xCzAJBgNVBAYTAkJNMRkwFwYDVQQKExBRdW9WYWRp
+cyBMaW1pdGVkMSUwIwYDVQQLExxSb290IENlcnRpZmljYXRpb24gQXV0aG9yaXR5MS4wLAYDVQQD
+EyVRdW9WYWRpcyBSb290IENlcnRpZmljYXRpb24gQXV0aG9yaXR5MIIBIjANBgkqhkiG9w0BAQEF
+AAOCAQ8AMIIBCgKCAQEAv2G1lVO6V/z68mcLOhrfEYBklbTRvM16z/Ypli4kVEAkOPcahdxYTMuk
+J0KX0J+DisPkBgNbAKVRHnAEdOLB1Dqr1607BxgFjv2DrOpm2RgbaIr1VxqYuvXtdj182d6UajtL
+F8HVj71lODqV0D1VNk7feVcxKh7YWWVJWCCYfqtffp/p1k3sg3Spx2zY7ilKhSoGFPlU5tPaZQeL
+YzcS19Dsw3sgQUSj7cugF+FxZc4dZjH3dgEZyH0DWLaVSR2mEiboxgx24ONmy+pdpibu5cxfvWen
+AScOospUxbF6lR1xHkopigPcakXBpBlebzbNw6Kwt/5cOOJSvPhEQ+aQuwIDAQABo4ICUjCCAk4w
+PQYIKwYBBQUHAQEEMTAvMC0GCCsGAQUFBzABhiFodHRwczovL29jc3AucXVvdmFkaXNvZmZzaG9y
+ZS5jb20wDwYDVR0TAQH/BAUwAwEB/zCCARoGA1UdIASCAREwggENMIIBCQYJKwYBBAG+WAABMIH7
+MIHUBggrBgEFBQcCAjCBxxqBxFJlbGlhbmNlIG9uIHRoZSBRdW9WYWRpcyBSb290IENlcnRpZmlj
+YXRlIGJ5IGFueSBwYXJ0eSBhc3N1bWVzIGFjY2VwdGFuY2Ugb2YgdGhlIHRoZW4gYXBwbGljYWJs
+ZSBzdGFuZGFyZCB0ZXJtcyBhbmQgY29uZGl0aW9ucyBvZiB1c2UsIGNlcnRpZmljYXRpb24gcHJh
+Y3RpY2VzLCBhbmQgdGhlIFF1b1ZhZGlzIENlcnRpZmljYXRlIFBvbGljeS4wIgYIKwYBBQUHAgEW
+Fmh0dHA6Ly93d3cucXVvdmFkaXMuYm0wHQYDVR0OBBYEFItLbe3TKbkGGew5Oanwl4Rqy+/fMIGu
+BgNVHSMEgaYwgaOAFItLbe3TKbkGGew5Oanwl4Rqy+/foYGEpIGBMH8xCzAJBgNVBAYTAkJNMRkw
+FwYDVQQKExBRdW9WYWRpcyBMaW1pdGVkMSUwIwYDVQQLExxSb290IENlcnRpZmljYXRpb24gQXV0
+aG9yaXR5MS4wLAYDVQQDEyVRdW9WYWRpcyBSb290IENlcnRpZmljYXRpb24gQXV0aG9yaXR5ggQ6
+tlCLMA4GA1UdDwEB/wQEAwIBBjANBgkqhkiG9w0BAQUFAAOCAQEAitQUtf70mpKnGdSkfnIYj9lo
+fFIk3WdvOXrEql494liwTXCYhGHoG+NpGA7O+0dQoE7/8CQfvbLO9Sf87C9TqnN7Az10buYWnuul
+LsS/VidQK2K6vkscPFVcQR0kvoIgR13VRH56FmjffU1RcHhXHTMe/QKZnAzNCgVPx7uOpHX6Sm2x
+gI4JVrmcGmD+XcHXetwReNDWXcG31a0ymQM6isxUJTkxgXsTIlG6Rmyhu576BGxJJnSP0nPrzDCi
+5upZIof4l/UO/erMkqQWxFIY6iHOsfHmhIHluqmGKPJDWl0Snawe2ajlCmqnf6CHKc/yiU3U7MXi
+5nrQNiOKSnQ2+Q==
+-----END CERTIFICATE-----
+
+QuoVadis Root CA 2
+==================
+-----BEGIN CERTIFICATE-----
+MIIFtzCCA5+gAwIBAgICBQkwDQYJKoZIhvcNAQEFBQAwRTELMAkGA1UEBhMCQk0xGTAXBgNVBAoT
+EFF1b1ZhZGlzIExpbWl0ZWQxGzAZBgNVBAMTElF1b1ZhZGlzIFJvb3QgQ0EgMjAeFw0wNjExMjQx
+ODI3MDBaFw0zMTExMjQxODIzMzNaMEUxCzAJBgNVBAYTAkJNMRkwFwYDVQQKExBRdW9WYWRpcyBM
+aW1pdGVkMRswGQYDVQQDExJRdW9WYWRpcyBSb290IENBIDIwggIiMA0GCSqGSIb3DQEBAQUAA4IC
+DwAwggIKAoICAQCaGMpLlA0ALa8DKYrwD4HIrkwZhR0In6spRIXzL4GtMh6QRr+jhiYaHv5+HBg6
+XJxgFyo6dIMzMH1hVBHL7avg5tKifvVrbxi3Cgst/ek+7wrGsxDp3MJGF/hd/aTa/55JWpzmM+Yk
+lvc/ulsrHHo1wtZn/qtmUIttKGAr79dgw8eTvI02kfN/+NsRE8Scd3bBrrcCaoF6qUWD4gXmuVbB
+lDePSHFjIuwXZQeVikvfj8ZaCuWw419eaxGrDPmF60Tp+ARz8un+XJiM9XOva7R+zdRcAitMOeGy
+lZUtQofX1bOQQ7dsE/He3fbE+Ik/0XX1ksOR1YqI0JDs3G3eicJlcZaLDQP9nL9bFqyS2+r+eXyt
+66/3FsvbzSUr5R/7mp/iUcw6UwxI5g69ybR2BlLmEROFcmMDBOAENisgGQLodKcftslWZvB1Jdxn
+wQ5hYIizPtGo/KPaHbDRsSNU30R2be1B2MGyIrZTHN81Hdyhdyox5C315eXbyOD/5YDXC2Og/zOh
+D7osFRXql7PSorW+8oyWHhqPHWykYTe5hnMz15eWniN9gqRMgeKh0bpnX5UHoycR7hYQe7xFSkyy
+BNKr79X9DFHOUGoIMfmR2gyPZFwDwzqLID9ujWc9Otb+fVuIyV77zGHcizN300QyNQliBJIWENie
+J0f7OyHj+OsdWwIDAQABo4GwMIGtMA8GA1UdEwEB/wQFMAMBAf8wCwYDVR0PBAQDAgEGMB0GA1Ud
+DgQWBBQahGK8SEwzJQTU7tD2A8QZRtGUazBuBgNVHSMEZzBlgBQahGK8SEwzJQTU7tD2A8QZRtGU
+a6FJpEcwRTELMAkGA1UEBhMCQk0xGTAXBgNVBAoTEFF1b1ZhZGlzIExpbWl0ZWQxGzAZBgNVBAMT
+ElF1b1ZhZGlzIFJvb3QgQ0EgMoICBQkwDQYJKoZIhvcNAQEFBQADggIBAD4KFk2fBluornFdLwUv
+Z+YTRYPENvbzwCYMDbVHZF34tHLJRqUDGCdViXh9duqWNIAXINzng/iN/Ae42l9NLmeyhP3ZRPx3
+UIHmfLTJDQtyU/h2BwdBR5YM++CCJpNVjP4iH2BlfF/nJrP3MpCYUNQ3cVX2kiF495V5+vgtJodm
+VjB3pjd4M1IQWK4/YY7yarHvGH5KWWPKjaJW1acvvFYfzznB4vsKqBUsfU16Y8Zsl0Q80m/DShcK
++JDSV6IZUaUtl0HaB0+pUNqQjZRG4T7wlP0QADj1O+hA4bRuVhogzG9Yje0uRY/W6ZM/57Es3zrW
+IozchLsib9D45MY56QSIPMO661V6bYCZJPVsAfv4l7CUW+v90m/xd2gNNWQjrLhVoQPRTUIZ3Ph1
+WVaj+ahJefivDrkRoHy3au000LYmYjgahwz46P0u05B/B5EqHdZ+XIWDmbA4CD/pXvk1B+TJYm5X
+f6dQlfe6yJvmjqIBxdZmv3lh8zwc4bmCXF2gw+nYSL0ZohEUGW6yhhtoPkg3Goi3XZZenMfvJ2II
+4pEZXNLxId26F0KCl3GBUzGpn/Z9Yr9y4aOTHcyKJloJONDO1w2AFrR4pTqHTI2KpdVGl/IsELm8
+VCLAAVBpQ570su9t+Oza8eOx79+Rj1QqCyXBJhnEUhAFZdWCEOrCMc0u
+-----END CERTIFICATE-----
+
+QuoVadis Root CA 3
+==================
+-----BEGIN CERTIFICATE-----
+MIIGnTCCBIWgAwIBAgICBcYwDQYJKoZIhvcNAQEFBQAwRTELMAkGA1UEBhMCQk0xGTAXBgNVBAoT
+EFF1b1ZhZGlzIExpbWl0ZWQxGzAZBgNVBAMTElF1b1ZhZGlzIFJvb3QgQ0EgMzAeFw0wNjExMjQx
+OTExMjNaFw0zMTExMjQxOTA2NDRaMEUxCzAJBgNVBAYTAkJNMRkwFwYDVQQKExBRdW9WYWRpcyBM
+aW1pdGVkMRswGQYDVQQDExJRdW9WYWRpcyBSb290IENBIDMwggIiMA0GCSqGSIb3DQEBAQUAA4IC
+DwAwggIKAoICAQDMV0IWVJzmmNPTTe7+7cefQzlKZbPoFog02w1ZkXTPkrgEQK0CSzGrvI2RaNgg
+DhoB4hp7Thdd4oq3P5kazethq8Jlph+3t723j/z9cI8LoGe+AaJZz3HmDyl2/7FWeUUrH556VOij
+KTVopAFPD6QuN+8bv+OPEKhyq1hX51SGyMnzW9os2l2ObjyjPtr7guXd8lyyBTNvijbO0BNO/79K
+DDRMpsMhvVAEVeuxu537RR5kFd5VAYwCdrXLoT9CabwvvWhDFlaJKjdhkf2mrk7AyxRllDdLkgbv
+BNDInIjbC3uBr7E9KsRlOni27tyAsdLTmZw67mtaa7ONt9XOnMK+pUsvFrGeaDsGb659n/je7Mwp
+p5ijJUMv7/FfJuGITfhebtfZFG4ZM2mnO4SJk8RTVROhUXhA+LjJou57ulJCg54U7QVSWllWp5f8
+nT8KKdjcT5EOE7zelaTfi5m+rJsziO+1ga8bxiJTyPbH7pcUsMV8eFLI8M5ud2CEpukqdiDtWAEX
+MJPpGovgc2PZapKUSU60rUqFxKMiMPwJ7Wgic6aIDFUhWMXhOp8q3crhkODZc6tsgLjoC2SToJyM
+Gf+z0gzskSaHirOi4XCPLArlzW1oUevaPwV/izLmE1xr/l9A4iLItLRkT9a6fUg+qGkM17uGcclz
+uD87nSVL2v9A6wIDAQABo4IBlTCCAZEwDwYDVR0TAQH/BAUwAwEB/zCB4QYDVR0gBIHZMIHWMIHT
+BgkrBgEEAb5YAAMwgcUwgZMGCCsGAQUFBwICMIGGGoGDQW55IHVzZSBvZiB0aGlzIENlcnRpZmlj
+YXRlIGNvbnN0aXR1dGVzIGFjY2VwdGFuY2Ugb2YgdGhlIFF1b1ZhZGlzIFJvb3QgQ0EgMyBDZXJ0
+aWZpY2F0ZSBQb2xpY3kgLyBDZXJ0aWZpY2F0aW9uIFByYWN0aWNlIFN0YXRlbWVudC4wLQYIKwYB
+BQUHAgEWIWh0dHA6Ly93d3cucXVvdmFkaXNnbG9iYWwuY29tL2NwczALBgNVHQ8EBAMCAQYwHQYD
+VR0OBBYEFPLAE+CCQz777i9nMpY1XNu4ywLQMG4GA1UdIwRnMGWAFPLAE+CCQz777i9nMpY1XNu4
+ywLQoUmkRzBFMQswCQYDVQQGEwJCTTEZMBcGA1UEChMQUXVvVmFkaXMgTGltaXRlZDEbMBkGA1UE
+AxMSUXVvVmFkaXMgUm9vdCBDQSAzggIFxjANBgkqhkiG9w0BAQUFAAOCAgEAT62gLEz6wPJv92ZV
+qyM07ucp2sNbtrCD2dDQ4iH782CnO11gUyeim/YIIirnv6By5ZwkajGxkHon24QRiSemd1o417+s
+hvzuXYO8BsbRd2sPbSQvS3pspweWyuOEn62Iix2rFo1bZhfZFvSLgNLd+LJ2w/w4E6oM3kJpK27z
+POuAJ9v1pkQNn1pVWQvVDVJIxa6f8i+AxeoyUDUSly7B4f/xI4hROJ/yZlZ25w9Rl6VSDE1JUZU2
+Pb+iSwwQHYaZTKrzchGT5Or2m9qoXadNt54CrnMAyNojA+j56hl0YgCUyyIgvpSnWbWCar6ZeXqp
+8kokUvd0/bpO5qgdAm6xDYBEwa7TIzdfu4V8K5Iu6H6li92Z4b8nby1dqnuH/grdS/yO9SbkbnBC
+bjPsMZ57k8HkyWkaPcBrTiJt7qtYTcbQQcEr6k8Sh17rRdhs9ZgC06DYVYoGmRmioHfRMJ6szHXu
+g/WwYjnPbFfiTNKRCw51KBuav/0aQ/HKd/s7j2G4aSgWQgRecCocIdiP4b0jWy10QJLZYxkNc91p
+vGJHvOB0K7Lrfb5BG7XARsWhIstfTsEokt4YutUqKLsRixeTmJlglFwjz1onl14LBQaTNx47aTbr
+qZ5hHY8y2o4M1nQ+ewkk2gF3R8Q7zTSMmfXK4SVhM7JZG+Ju1zdXtg2pEto=
+-----END CERTIFICATE-----
+
+Security Communication Root CA
+==============================
+-----BEGIN CERTIFICATE-----
+MIIDWjCCAkKgAwIBAgIBADANBgkqhkiG9w0BAQUFADBQMQswCQYDVQQGEwJKUDEYMBYGA1UEChMP
+U0VDT00gVHJ1c3QubmV0MScwJQYDVQQLEx5TZWN1cml0eSBDb21tdW5pY2F0aW9uIFJvb3RDQTEw
+HhcNMDMwOTMwMDQyMDQ5WhcNMjMwOTMwMDQyMDQ5WjBQMQswCQYDVQQGEwJKUDEYMBYGA1UEChMP
+U0VDT00gVHJ1c3QubmV0MScwJQYDVQQLEx5TZWN1cml0eSBDb21tdW5pY2F0aW9uIFJvb3RDQTEw
+ggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCzs/5/022x7xZ8V6UMbXaKL0u/ZPtM7orw
+8yl89f/uKuDp6bpbZCKamm8sOiZpUQWZJtzVHGpxxpp9Hp3dfGzGjGdnSj74cbAZJ6kJDKaVv0uM
+DPpVmDvY6CKhS3E4eayXkmmziX7qIWgGmBSWh9JhNrxtJ1aeV+7AwFb9Ms+k2Y7CI9eNqPPYJayX
+5HA49LY6tJ07lyZDo6G8SVlyTCMwhwFY9k6+HGhWZq/NQV3Is00qVUarH9oe4kA92819uZKAnDfd
+DJZkndwi92SL32HeFZRSFaB9UslLqCHJxrHty8OVYNEP8Ktw+N/LTX7s1vqr2b1/VPKl6Xn62dZ2
+JChzAgMBAAGjPzA9MB0GA1UdDgQWBBSgc0mZaNyFW2XjmygvV5+9M7wHSDALBgNVHQ8EBAMCAQYw
+DwYDVR0TAQH/BAUwAwEB/zANBgkqhkiG9w0BAQUFAAOCAQEAaECpqLvkT115swW1F7NgE+vGkl3g
+0dNq/vu+m22/xwVtWSDEHPC32oRYAmP6SBbvT6UL90qY8j+eG61Ha2POCEfrUj94nK9NrvjVT8+a
+mCoQQTlSxN3Zmw7vkwGusi7KaEIkQmywszo+zenaSMQVy+n5Bw+SUEmK3TGXX8npN6o7WWWXlDLJ
+s58+OmJYxUmtYg5xpTKqL8aJdkNAExNnPaJUJRDL8Try2frbSVa7pv6nQTXD4IhhyYjH3zYQIphZ
+6rBK+1YWc26sTfcioU+tHXotRSflMMFe8toTyyVCUZVHA4xsIcx0Qu1T/zOLjw9XARYvz6buyXAi
+FL39vmwLAw==
+-----END CERTIFICATE-----
+
+Sonera Class 2 Root CA
+======================
+-----BEGIN CERTIFICATE-----
+MIIDIDCCAgigAwIBAgIBHTANBgkqhkiG9w0BAQUFADA5MQswCQYDVQQGEwJGSTEPMA0GA1UEChMG
+U29uZXJhMRkwFwYDVQQDExBTb25lcmEgQ2xhc3MyIENBMB4XDTAxMDQwNjA3Mjk0MFoXDTIxMDQw
+NjA3Mjk0MFowOTELMAkGA1UEBhMCRkkxDzANBgNVBAoTBlNvbmVyYTEZMBcGA1UEAxMQU29uZXJh
+IENsYXNzMiBDQTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAJAXSjWdyvANlsdE+hY3
+/Ei9vX+ALTU74W+oZ6m/AxxNjG8yR9VBaKQTBME1DJqEQ/xcHf+Js+gXGM2RX/uJ4+q/Tl18GybT
+dXnt5oTjV+WtKcT0OijnpXuENmmz/V52vaMtmdOQTiMofRhj8VQ7Jp12W5dCsv+u8E7s3TmVToMG
+f+dJQMjFAbJUWmYdPfz56TwKnoG4cPABi+QjVHzIrviQHgCWctRUz2EjvOr7nQKV0ba5cTppCD8P
+tOFCx4j1P5iop7oc4HFx71hXgVB6XGt0Rg6DA5jDjqhu8nYybieDwnPz3BjotJPqdURrBGAgcVeH
+nfO+oJAjPYok4doh28MCAwEAAaMzMDEwDwYDVR0TAQH/BAUwAwEB/zARBgNVHQ4ECgQISqCqWITT
+XjwwCwYDVR0PBAQDAgEGMA0GCSqGSIb3DQEBBQUAA4IBAQBazof5FnIVV0sd2ZvnoiYw7JNn39Yt
+0jSv9zilzqsWuasvfDXLrNAPtEwr/IDva4yRXzZ299uzGxnq9LIR/WFxRL8oszodv7ND6J+/3DEI
+cbCdjdY0RzKQxmUk96BKfARzjzlvF4xytb1LyHr4e4PDKE6cCepnP7JnBBvDFNr450kkkdAdavph
+Oe9r5yF1BgfYErQhIHBCcYHaPJo2vqZbDWpsmh+Re/n570K6Tk6ezAyNlNzZRZxe7EJQY670XcSx
+EtzKO6gunRRaBXW37Ndj4ro1tgQIkejanZz2ZrUYrAqmVCY0M9IbwdR/GjqOC6oybtv8TyWf2TLH
+llpwrN9M
+-----END CERTIFICATE-----
+
+Staat der Nederlanden Root CA
+=============================
+-----BEGIN CERTIFICATE-----
+MIIDujCCAqKgAwIBAgIEAJiWijANBgkqhkiG9w0BAQUFADBVMQswCQYDVQQGEwJOTDEeMBwGA1UE
+ChMVU3RhYXQgZGVyIE5lZGVybGFuZGVuMSYwJAYDVQQDEx1TdGFhdCBkZXIgTmVkZXJsYW5kZW4g
+Um9vdCBDQTAeFw0wMjEyMTcwOTIzNDlaFw0xNTEyMTYwOTE1MzhaMFUxCzAJBgNVBAYTAk5MMR4w
+HAYDVQQKExVTdGFhdCBkZXIgTmVkZXJsYW5kZW4xJjAkBgNVBAMTHVN0YWF0IGRlciBOZWRlcmxh
+bmRlbiBSb290IENBMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAmNK1URF6gaYUmHFt
+vsznExvWJw56s2oYHLZhWtVhCb/ekBPHZ+7d89rFDBKeNVU+LCeIQGv33N0iYfXCxw719tV2U02P
+jLwYdjeFnejKScfST5gTCaI+Ioicf9byEGW07l8Y1Rfj+MX94p2i71MOhXeiD+EwR+4A5zN9RGca
+C1Hoi6CeUJhoNFIfLm0B8mBF8jHrqTFoKbt6QZ7GGX+UtFE5A3+y3qcym7RHjm+0Sq7lr7HcsBth
+vJly3uSJt3omXdozSVtSnA71iq3DuD3oBmrC1SoLbHuEvVYFy4ZlkuxEK7COudxwC0barbxjiDn6
+22r+I/q85Ej0ZytqERAhSQIDAQABo4GRMIGOMAwGA1UdEwQFMAMBAf8wTwYDVR0gBEgwRjBEBgRV
+HSAAMDwwOgYIKwYBBQUHAgEWLmh0dHA6Ly93d3cucGtpb3ZlcmhlaWQubmwvcG9saWNpZXMvcm9v
+dC1wb2xpY3kwDgYDVR0PAQH/BAQDAgEGMB0GA1UdDgQWBBSofeu8Y6R0E3QA7Jbg0zTBLL9s+DAN
+BgkqhkiG9w0BAQUFAAOCAQEABYSHVXQ2YcG70dTGFagTtJ+k/rvuFbQvBgwp8qiSpGEN/KtcCFtR
+EytNwiphyPgJWPwtArI5fZlmgb9uXJVFIGzmeafR2Bwp/MIgJ1HI8XxdNGdphREwxgDS1/PTfLbw
+MVcoEoJz6TMvplW0C5GUR5z6u3pCMuiufi3IvKwUv9kP2Vv8wfl6leF9fpb8cbDCTMjfRTTJzg3y
+nGQI0DvDKcWy7ZAEwbEpkcUwb8GpcjPM/l0WFywRaed+/sWDCN+83CI6LiBpIzlWYGeQiy52OfsR
+iJf2fL1LuCAWZwWN4jvBcj+UlTfHXbme2JOhF4//DGYVwSR8MnwDHTuhWEUykw==
+-----END CERTIFICATE-----
+
+TDC Internet Root CA
+====================
+-----BEGIN CERTIFICATE-----
+MIIEKzCCAxOgAwIBAgIEOsylTDANBgkqhkiG9w0BAQUFADBDMQswCQYDVQQGEwJESzEVMBMGA1UE
+ChMMVERDIEludGVybmV0MR0wGwYDVQQLExRUREMgSW50ZXJuZXQgUm9vdCBDQTAeFw0wMTA0MDUx
+NjMzMTdaFw0yMTA0MDUxNzAzMTdaMEMxCzAJBgNVBAYTAkRLMRUwEwYDVQQKEwxUREMgSW50ZXJu
+ZXQxHTAbBgNVBAsTFFREQyBJbnRlcm5ldCBSb290IENBMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8A
+MIIBCgKCAQEAxLhAvJHVYx/XmaCLDEAedLdInUaMArLgJF/wGROnN4NrXceO+YQwzho7+vvOi20j
+xsNuZp+Jpd/gQlBn+h9sHvTQBda/ytZO5GhgbEaqHF1j4QeGDmUApy6mcca8uYGoOn0a0vnRrEvL
+znWv3Hv6gXPU/Lq9QYjUdLP5Xjg6PEOo0pVOd20TDJ2PeAG3WiAfAzc14izbSysseLlJ28TQx5yc
+5IogCSEWVmb/Bexb4/DPqyQkXsN/cHoSxNK1EKC2IeGNeGlVRGn1ypYcNIUXJXfi9i8nmHj9eQY6
+otZaQ8H/7AQ77hPv01ha/5Lr7K7a8jcDR0G2l8ktCkEiu7vmpwIDAQABo4IBJTCCASEwEQYJYIZI
+AYb4QgEBBAQDAgAHMGUGA1UdHwReMFwwWqBYoFakVDBSMQswCQYDVQQGEwJESzEVMBMGA1UEChMM
+VERDIEludGVybmV0MR0wGwYDVQQLExRUREMgSW50ZXJuZXQgUm9vdCBDQTENMAsGA1UEAxMEQ1JM
+MTArBgNVHRAEJDAigA8yMDAxMDQwNTE2MzMxN1qBDzIwMjEwNDA1MTcwMzE3WjALBgNVHQ8EBAMC
+AQYwHwYDVR0jBBgwFoAUbGQBx/2FbazI2p5QCIUItTxWqFAwHQYDVR0OBBYEFGxkAcf9hW2syNqe
+UAiFCLU8VqhQMAwGA1UdEwQFMAMBAf8wHQYJKoZIhvZ9B0EABBAwDhsIVjUuMDo0LjADAgSQMA0G
+CSqGSIb3DQEBBQUAA4IBAQBOQ8zR3R0QGwZ/t6T609lN+yOfI1Rb5osvBCiLtSdtiaHsmGnc540m
+gwV5dOy0uaOXwTUA/RXaOYE6lTGQ3pfphqiZdwzlWqCE/xIWrG64jcN7ksKsLtB9KOy282A4aW8+
+2ARVPp7MVdK6/rtHBNcK2RYKNCn1WBPVT8+PVkuzHu7TmHnaCB4Mb7j4Fifvwm899qNLPg7kbWzb
+O0ESm70NRyN/PErQr8Cv9u8btRXE64PECV90i9kR+8JWsTz4cMo0jUNAE4z9mQNUecYu6oah9jrU
+Cbz0vGbMPVjQV0kK7iXiQe4T+Zs4NNEA9X7nlB38aQNiuJkFBT1reBK9sG9l
+-----END CERTIFICATE-----
+
+TDC OCES Root CA
+================
+-----BEGIN CERTIFICATE-----
+MIIFGTCCBAGgAwIBAgIEPki9xDANBgkqhkiG9w0BAQUFADAxMQswCQYDVQQGEwJESzEMMAoGA1UE
+ChMDVERDMRQwEgYDVQQDEwtUREMgT0NFUyBDQTAeFw0wMzAyMTEwODM5MzBaFw0zNzAyMTEwOTA5
+MzBaMDExCzAJBgNVBAYTAkRLMQwwCgYDVQQKEwNUREMxFDASBgNVBAMTC1REQyBPQ0VTIENBMIIB
+IjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEArGL2YSCyz8DGhdfjeebM7fI5kqSXLmSjhFuH
+nEz9pPPEXyG9VhDr2y5h7JNp46PMvZnDBfwGuMo2HP6QjklMxFaaL1a8z3sM8W9Hpg1DTeLpHTk0
+zY0s2RKY+ePhwUp8hjjEqcRhiNJerxomTdXkoCJHhNlktxmW/OwZ5LKXJk5KTMuPJItUGBxIYXvV
+iGjaXbXqzRowwYCDdlCqT9HU3Tjw7xb04QxQBr/q+3pJoSgrHPb8FTKjdGqPqcNiKXEx5TukYBde
+dObaE+3pHx8b0bJoc8YQNHVGEBDjkAB2QMuLt0MJIf+rTpPGWOmlgtt3xDqZsXKVSQTwtyv6e1mO
+3QIDAQABo4ICNzCCAjMwDwYDVR0TAQH/BAUwAwEB/zAOBgNVHQ8BAf8EBAMCAQYwgewGA1UdIASB
+5DCB4TCB3gYIKoFQgSkBAQEwgdEwLwYIKwYBBQUHAgEWI2h0dHA6Ly93d3cuY2VydGlmaWthdC5k
+ay9yZXBvc2l0b3J5MIGdBggrBgEFBQcCAjCBkDAKFgNUREMwAwIBARqBgUNlcnRpZmlrYXRlciBm
+cmEgZGVubmUgQ0EgdWRzdGVkZXMgdW5kZXIgT0lEIDEuMi4yMDguMTY5LjEuMS4xLiBDZXJ0aWZp
+Y2F0ZXMgZnJvbSB0aGlzIENBIGFyZSBpc3N1ZWQgdW5kZXIgT0lEIDEuMi4yMDguMTY5LjEuMS4x
+LjARBglghkgBhvhCAQEEBAMCAAcwgYEGA1UdHwR6MHgwSKBGoESkQjBAMQswCQYDVQQGEwJESzEM
+MAoGA1UEChMDVERDMRQwEgYDVQQDEwtUREMgT0NFUyBDQTENMAsGA1UEAxMEQ1JMMTAsoCqgKIYm
+aHR0cDovL2NybC5vY2VzLmNlcnRpZmlrYXQuZGsvb2Nlcy5jcmwwKwYDVR0QBCQwIoAPMjAwMzAy
+MTEwODM5MzBagQ8yMDM3MDIxMTA5MDkzMFowHwYDVR0jBBgwFoAUYLWF7FZkfhIZJ2cdUBVLc647
++RIwHQYDVR0OBBYEFGC1hexWZH4SGSdnHVAVS3OuO/kSMB0GCSqGSIb2fQdBAAQQMA4bCFY2LjA6
+NC4wAwIEkDANBgkqhkiG9w0BAQUFAAOCAQEACromJkbTc6gJ82sLMJn9iuFXehHTuJTXCRBuo7E4
+A9G28kNBKWKnctj7fAXmMXAnVBhOinxO5dHKjHiIzxvTkIvmI/gLDjNDfZziChmPyQE+dF10yYsc
+A+UYyAFMP8uXBV2YcaaYb7Z8vTd/vuGTJW1v8AqtFxjhA7wHKcitJuj4YfD9IQl+mo6paH1IYnK9
+AOoBmbgGglGBTvH1tJFUuSN6AJqfXY3gPGS5GhKSKseCRHI53OI8xthV9RVOyAUO28bQYqbsFbS1
+AoLbrIyigfCbmTH1ICCoiGEKB5+U/NDXG8wuF/MEJ3Zn61SD/aSQfgY9BKNDLdr8C2LqL19iUw==
+-----END CERTIFICATE-----
+
+UTN DATACorp SGC Root CA
+========================
+-----BEGIN CERTIFICATE-----
+MIIEXjCCA0agAwIBAgIQRL4Mi1AAIbQR0ypoBqmtaTANBgkqhkiG9w0BAQUFADCBkzELMAkGA1UE
+BhMCVVMxCzAJBgNVBAgTAlVUMRcwFQYDVQQHEw5TYWx0IExha2UgQ2l0eTEeMBwGA1UEChMVVGhl
+IFVTRVJUUlVTVCBOZXR3b3JrMSEwHwYDVQQLExhodHRwOi8vd3d3LnVzZXJ0cnVzdC5jb20xGzAZ
+BgNVBAMTElVUTiAtIERBVEFDb3JwIFNHQzAeFw05OTA2MjQxODU3MjFaFw0xOTA2MjQxOTA2MzBa
+MIGTMQswCQYDVQQGEwJVUzELMAkGA1UECBMCVVQxFzAVBgNVBAcTDlNhbHQgTGFrZSBDaXR5MR4w
+HAYDVQQKExVUaGUgVVNFUlRSVVNUIE5ldHdvcmsxITAfBgNVBAsTGGh0dHA6Ly93d3cudXNlcnRy
+dXN0LmNvbTEbMBkGA1UEAxMSVVROIC0gREFUQUNvcnAgU0dDMIIBIjANBgkqhkiG9w0BAQEFAAOC
+AQ8AMIIBCgKCAQEA3+5YEKIrblXEjr8uRgnn4AgPLit6E5Qbvfa2gI5lBZMAHryv4g+OGQ0SR+ys
+raP6LnD43m77VkIVni5c7yPeIbkFdicZD0/Ww5y0vpQZY/KmEQrrU0icvvIpOxboGqBMpsn0GFlo
+wHDyUwDAXlCCpVZvNvlK4ESGoE1O1kduSUrLZ9emxAW5jh70/P/N5zbgnAVssjMiFdC04MwXwLLA
+9P4yPykqlXvY8qdOD1R8oQ2AswkDwf9c3V6aPryuvEeKaq5xyh+xKrhfQgUL7EYw0XILyulWbfXv
+33i+Ybqypa4ETLyorGkVl73v67SMvzX41MPRKA5cOp9wGDMgd8SirwIDAQABo4GrMIGoMAsGA1Ud
+DwQEAwIBxjAPBgNVHRMBAf8EBTADAQH/MB0GA1UdDgQWBBRTMtGzz3/64PGgXYVOktKeRR20TzA9
+BgNVHR8ENjA0MDKgMKAuhixodHRwOi8vY3JsLnVzZXJ0cnVzdC5jb20vVVROLURBVEFDb3JwU0dD
+LmNybDAqBgNVHSUEIzAhBggrBgEFBQcDAQYKKwYBBAGCNwoDAwYJYIZIAYb4QgQBMA0GCSqGSIb3
+DQEBBQUAA4IBAQAnNZcAiosovcYzMB4p/OL31ZjUQLtgyr+rFywJNn9Q+kHcrpY6CiM+iVnJowft
+Gzet/Hy+UUla3joKVAgWRcKZsYfNjGjgaQPpxE6YsjuMFrMOoAyYUJuTqXAJyCyjj98C5OBxOvG0
+I3KgqgHf35g+FFCgMSa9KOlaMCZ1+XtgHI3zzVAmbQQnmt/VDUVHKWss5nbZqSl9Mt3JNjy9rjXx
+EZ4du5A/EkdOjtd+D2JzHVImOBwYSf0wdJrE5SIv2MCN7ZF6TACPcn9d2t0bi0Vr591pl6jFVkwP
+DPafepE39peC4N1xaf92P2BNPM/3mfnGV/TJVTl4uix5yaaIK/QI
+-----END CERTIFICATE-----
+
+UTN USERFirst Hardware Root CA
+==============================
+-----BEGIN CERTIFICATE-----
+MIIEdDCCA1ygAwIBAgIQRL4Mi1AAJLQR0zYq/mUK/TANBgkqhkiG9w0BAQUFADCBlzELMAkGA1UE
+BhMCVVMxCzAJBgNVBAgTAlVUMRcwFQYDVQQHEw5TYWx0IExha2UgQ2l0eTEeMBwGA1UEChMVVGhl
+IFVTRVJUUlVTVCBOZXR3b3JrMSEwHwYDVQQLExhodHRwOi8vd3d3LnVzZXJ0cnVzdC5jb20xHzAd
+BgNVBAMTFlVUTi1VU0VSRmlyc3QtSGFyZHdhcmUwHhcNOTkwNzA5MTgxMDQyWhcNMTkwNzA5MTgx
+OTIyWjCBlzELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAlVUMRcwFQYDVQQHEw5TYWx0IExha2UgQ2l0
+eTEeMBwGA1UEChMVVGhlIFVTRVJUUlVTVCBOZXR3b3JrMSEwHwYDVQQLExhodHRwOi8vd3d3LnVz
+ZXJ0cnVzdC5jb20xHzAdBgNVBAMTFlVUTi1VU0VSRmlyc3QtSGFyZHdhcmUwggEiMA0GCSqGSIb3
+DQEBAQUAA4IBDwAwggEKAoIBAQCx98M4P7Sof885glFn0G2f0v9Y8+efK+wNiVSZuTiZFvfgIXlI
+wrthdBKWHTxqctU8EGc6Oe0rE81m65UJM6Rsl7HoxuzBdXmcRl6Nq9Bq/bkqVRcQVLMZ8Jr28bFd
+tqdt++BxF2uiiPsA3/4aMXcMmgF6sTLjKwEHOG7DpV4jvEWbe1DByTCP2+UretNb+zNAHqDVmBe8
+i4fDidNdoI6yqqr2jmmIBsX6iSHzCJ1pLgkzmykNRg+MzEk0sGlRvfkGzWitZky8PqxhvQqIDsjf
+Pe58BEydCl5rkdbux+0ojatNh4lz0G6k0B4WixThdkQDf2Os5M1JnMWS9KsyoUhbAgMBAAGjgbkw
+gbYwCwYDVR0PBAQDAgHGMA8GA1UdEwEB/wQFMAMBAf8wHQYDVR0OBBYEFKFyXyYbKJhDlV0HN9WF
+lp1L0sNFMEQGA1UdHwQ9MDswOaA3oDWGM2h0dHA6Ly9jcmwudXNlcnRydXN0LmNvbS9VVE4tVVNF
+UkZpcnN0LUhhcmR3YXJlLmNybDAxBgNVHSUEKjAoBggrBgEFBQcDAQYIKwYBBQUHAwUGCCsGAQUF
+BwMGBggrBgEFBQcDBzANBgkqhkiG9w0BAQUFAAOCAQEARxkP3nTGmZev/K0oXnWO6y1n7k57K9cM
+//bey1WiCuFMVGWTYGufEpytXoMs61quwOQt9ABjHbjAbPLPSbtNk28GpgoiskliCE7/yMgUsogW
+XecB5BKV5UU0s4tpvc+0hY91UZ59Ojg6FEgSxvunOxqNDYJAB+gECJChicsZUN/KHAG8HQQZexB2
+lzvukJDKxA4fFm517zP4029bHpbj4HR3dHuKom4t3XbWOTCC8KucUvIqx69JXn7HaOWCgchqJ/kn
+iCrVWFCVH/A7HFe7fRQ5YiuayZSSKqMiDP+JJn1fIytH1xUdqWqeUQ0qUZ6B+dQ7XnASfxAynB67
+nfhmqA==
+-----END CERTIFICATE-----
+
+Camerfirma Chambers of Commerce Root
+====================================
+-----BEGIN CERTIFICATE-----
+MIIEvTCCA6WgAwIBAgIBADANBgkqhkiG9w0BAQUFADB/MQswCQYDVQQGEwJFVTEnMCUGA1UEChMe
+QUMgQ2FtZXJmaXJtYSBTQSBDSUYgQTgyNzQzMjg3MSMwIQYDVQQLExpodHRwOi8vd3d3LmNoYW1i
+ZXJzaWduLm9yZzEiMCAGA1UEAxMZQ2hhbWJlcnMgb2YgQ29tbWVyY2UgUm9vdDAeFw0wMzA5MzAx
+NjEzNDNaFw0zNzA5MzAxNjEzNDRaMH8xCzAJBgNVBAYTAkVVMScwJQYDVQQKEx5BQyBDYW1lcmZp
+cm1hIFNBIENJRiBBODI3NDMyODcxIzAhBgNVBAsTGmh0dHA6Ly93d3cuY2hhbWJlcnNpZ24ub3Jn
+MSIwIAYDVQQDExlDaGFtYmVycyBvZiBDb21tZXJjZSBSb290MIIBIDANBgkqhkiG9w0BAQEFAAOC
+AQ0AMIIBCAKCAQEAtzZV5aVdGDDg2olUkfzIx1L4L1DZ77F1c2VHfRtbunXF/KGIJPov7coISjlU
+xFF6tdpg6jg8gbLL8bvZkSM/SAFwdakFKq0fcfPJVD0dBmpAPrMMhe5cG3nCYsS4No41XQEMIwRH
+NaqbYE6gZj3LJgqcQKH0XZi/caulAGgq7YN6D6IUtdQis4CwPAxaUWktWBiP7Zme8a7ileb2R6jW
+DA+wWFjbw2Y3npuRVDM30pQcakjJyfKl2qUMI/cjDpwyVV5xnIQFUZot/eZOKjRa3spAN2cMVCFV
+d9oKDMyXroDclDZK9D7ONhMeU+SsTjoF7Nuucpw4i9A5O4kKPnf+dQIBA6OCAUQwggFAMBIGA1Ud
+EwEB/wQIMAYBAf8CAQwwPAYDVR0fBDUwMzAxoC+gLYYraHR0cDovL2NybC5jaGFtYmVyc2lnbi5v
+cmcvY2hhbWJlcnNyb290LmNybDAdBgNVHQ4EFgQU45T1sU3p26EpW1eLTXYGduHRooowDgYDVR0P
+AQH/BAQDAgEGMBEGCWCGSAGG+EIBAQQEAwIABzAnBgNVHREEIDAegRxjaGFtYmVyc3Jvb3RAY2hh
+bWJlcnNpZ24ub3JnMCcGA1UdEgQgMB6BHGNoYW1iZXJzcm9vdEBjaGFtYmVyc2lnbi5vcmcwWAYD
+VR0gBFEwTzBNBgsrBgEEAYGHLgoDATA+MDwGCCsGAQUFBwIBFjBodHRwOi8vY3BzLmNoYW1iZXJz
+aWduLm9yZy9jcHMvY2hhbWJlcnNyb290Lmh0bWwwDQYJKoZIhvcNAQEFBQADggEBAAxBl8IahsAi
+fJ/7kPMa0QOx7xP5IV8EnNrJpY0nbJaHkb5BkAFyk+cefV/2icZdp0AJPaxJRUXcLo0waLIJuvvD
+L8y6C98/d3tGfToSJI6WjzwFCm/SlCgdbQzALogi1djPHRPH8EjX1wWnz8dHnjs8NMiAT9QUu/wN
+UPf6s+xCX6ndbcj0dc97wXImsQEcXCz9ek60AcUFV7nnPKoF2YjpB0ZBzu9Bga5Y34OirsrXdx/n
+ADydb47kMgkdTXg0eDQ8lJsm7U9xxhl6vSAiSFr+S30Dt+dYvsYyTnQeaN2oaFuzPu5ifdmA6Ap1
+erfutGWaIZDgqtCYvDi1czyL+Nw=
+-----END CERTIFICATE-----
+
+Camerfirma Global Chambersign Root
+==================================
+-----BEGIN CERTIFICATE-----
+MIIExTCCA62gAwIBAgIBADANBgkqhkiG9w0BAQUFADB9MQswCQYDVQQGEwJFVTEnMCUGA1UEChMe
+QUMgQ2FtZXJmaXJtYSBTQSBDSUYgQTgyNzQzMjg3MSMwIQYDVQQLExpodHRwOi8vd3d3LmNoYW1i
+ZXJzaWduLm9yZzEgMB4GA1UEAxMXR2xvYmFsIENoYW1iZXJzaWduIFJvb3QwHhcNMDMwOTMwMTYx
+NDE4WhcNMzcwOTMwMTYxNDE4WjB9MQswCQYDVQQGEwJFVTEnMCUGA1UEChMeQUMgQ2FtZXJmaXJt
+YSBTQSBDSUYgQTgyNzQzMjg3MSMwIQYDVQQLExpodHRwOi8vd3d3LmNoYW1iZXJzaWduLm9yZzEg
+MB4GA1UEAxMXR2xvYmFsIENoYW1iZXJzaWduIFJvb3QwggEgMA0GCSqGSIb3DQEBAQUAA4IBDQAw
+ggEIAoIBAQCicKLQn0KuWxfH2H3PFIP8T8mhtxOviteePgQKkotgVvq0Mi+ITaFgCPS3CU6gSS9J
+1tPfnZdan5QEcOw/Wdm3zGaLmFIoCQLfxS+EjXqXd7/sQJ0lcqu1PzKY+7e3/HKE5TWH+VX6ox8O
+by4o3Wmg2UIQxvi1RMLQQ3/bvOSiPGpVeAp3qdjqGTK3L/5cPxvusZjsyq16aUXjlg9V9ubtdepl
+6DJWk0aJqCWKZQbua795B9Dxt6/tLE2Su8CoX6dnfQTyFQhwrJLWfQTSM/tMtgsL+xrJxI0DqX5c
+8lCrEqWhz0hQpe/SyBoT+rB/sYIcd2oPX9wLlY/vQ37mRQklAgEDo4IBUDCCAUwwEgYDVR0TAQH/
+BAgwBgEB/wIBDDA/BgNVHR8EODA2MDSgMqAwhi5odHRwOi8vY3JsLmNoYW1iZXJzaWduLm9yZy9j
+aGFtYmVyc2lnbnJvb3QuY3JsMB0GA1UdDgQWBBRDnDafsJ4wTcbOX60Qq+UDpfqpFDAOBgNVHQ8B
+Af8EBAMCAQYwEQYJYIZIAYb4QgEBBAQDAgAHMCoGA1UdEQQjMCGBH2NoYW1iZXJzaWducm9vdEBj
+aGFtYmVyc2lnbi5vcmcwKgYDVR0SBCMwIYEfY2hhbWJlcnNpZ25yb290QGNoYW1iZXJzaWduLm9y
+ZzBbBgNVHSAEVDBSMFAGCysGAQQBgYcuCgEBMEEwPwYIKwYBBQUHAgEWM2h0dHA6Ly9jcHMuY2hh
+bWJlcnNpZ24ub3JnL2Nwcy9jaGFtYmVyc2lnbnJvb3QuaHRtbDANBgkqhkiG9w0BAQUFAAOCAQEA
+PDtwkfkEVCeR4e3t/mh/YV3lQWVPMvEYBZRqHN4fcNs+ezICNLUMbKGKfKX0j//U2K0X1S0E0T9Y
+gOKBWYi+wONGkyT+kL0mojAt6JcmVzWJdJYY9hXiryQZVgICsroPFOrGimbBhkVVi76SvpykBMdJ
+PJ7oKXqJ1/6v/2j1pReQvayZzKWGVwlnRtvWFsJG8eSpUPWP0ZIV018+xgBJOm5YstHRJw0lyDL4
+IBHNfTIzSJRUTN3cecQwn+uOuFW114hcxWokPbLTBQNRxgfvzBRydD1ucs4YKIxKoHflCStFREes
+t2d/AYoFWpO+ocH/+OcOZ6RHSXZddZAa9SaP8A==
+-----END CERTIFICATE-----
+
+NetLock Notary (Class A) Root
+=============================
+-----BEGIN CERTIFICATE-----
+MIIGfTCCBWWgAwIBAgICAQMwDQYJKoZIhvcNAQEEBQAwga8xCzAJBgNVBAYTAkhVMRAwDgYDVQQI
+EwdIdW5nYXJ5MREwDwYDVQQHEwhCdWRhcGVzdDEnMCUGA1UEChMeTmV0TG9jayBIYWxvemF0Yml6
+dG9uc2FnaSBLZnQuMRowGAYDVQQLExFUYW51c2l0dmFueWtpYWRvazE2MDQGA1UEAxMtTmV0TG9j
+ayBLb3pqZWd5em9pIChDbGFzcyBBKSBUYW51c2l0dmFueWtpYWRvMB4XDTk5MDIyNDIzMTQ0N1oX
+DTE5MDIxOTIzMTQ0N1owga8xCzAJBgNVBAYTAkhVMRAwDgYDVQQIEwdIdW5nYXJ5MREwDwYDVQQH
+EwhCdWRhcGVzdDEnMCUGA1UEChMeTmV0TG9jayBIYWxvemF0Yml6dG9uc2FnaSBLZnQuMRowGAYD
+VQQLExFUYW51c2l0dmFueWtpYWRvazE2MDQGA1UEAxMtTmV0TG9jayBLb3pqZWd5em9pIChDbGFz
+cyBBKSBUYW51c2l0dmFueWtpYWRvMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAvHSM
+D7tM9DceqQWC2ObhbHDqeLVu0ThEDaiDzl3S1tWBxdRL51uUcCbbO51qTGL3cfNk1mE7PetzozfZ
+z+qMkjvN9wfcZnSX9EUi3fRc4L9t875lM+QVOr/bmJBVOMTtplVjC7B4BPTjbsE/jvxReB+SnoPC
+/tmwqcm8WgD/qaiYdPv2LD4VOQ22BFWoDpggQrOxJa1+mm9dU7GrDPzr4PN6s6iz/0b2Y6LYOph7
+tqyF/7AlT3Rj5xMHpQqPBffAZG9+pyeAlt7ULoZgx2srXnN7F+eRP2QM2EsiNCubMvJIH5+hCoR6
+4sKtlz2O1cH5VqNQ6ca0+pii7pXmKgOM3wIDAQABo4ICnzCCApswDgYDVR0PAQH/BAQDAgAGMBIG
+A1UdEwEB/wQIMAYBAf8CAQQwEQYJYIZIAYb4QgEBBAQDAgAHMIICYAYJYIZIAYb4QgENBIICURaC
+Ak1GSUdZRUxFTSEgRXplbiB0YW51c2l0dmFueSBhIE5ldExvY2sgS2Z0LiBBbHRhbGFub3MgU3pv
+bGdhbHRhdGFzaSBGZWx0ZXRlbGVpYmVuIGxlaXJ0IGVsamFyYXNvayBhbGFwamFuIGtlc3p1bHQu
+IEEgaGl0ZWxlc2l0ZXMgZm9seWFtYXRhdCBhIE5ldExvY2sgS2Z0LiB0ZXJtZWtmZWxlbG9zc2Vn
+LWJpenRvc2l0YXNhIHZlZGkuIEEgZGlnaXRhbGlzIGFsYWlyYXMgZWxmb2dhZGFzYW5hayBmZWx0
+ZXRlbGUgYXogZWxvaXJ0IGVsbGVub3J6ZXNpIGVsamFyYXMgbWVndGV0ZWxlLiBBeiBlbGphcmFz
+IGxlaXJhc2EgbWVndGFsYWxoYXRvIGEgTmV0TG9jayBLZnQuIEludGVybmV0IGhvbmxhcGphbiBh
+IGh0dHBzOi8vd3d3Lm5ldGxvY2submV0L2RvY3MgY2ltZW4gdmFneSBrZXJoZXRvIGF6IGVsbGVu
+b3J6ZXNAbmV0bG9jay5uZXQgZS1tYWlsIGNpbWVuLiBJTVBPUlRBTlQhIFRoZSBpc3N1YW5jZSBh
+bmQgdGhlIHVzZSBvZiB0aGlzIGNlcnRpZmljYXRlIGlzIHN1YmplY3QgdG8gdGhlIE5ldExvY2sg
+Q1BTIGF2YWlsYWJsZSBhdCBodHRwczovL3d3dy5uZXRsb2NrLm5ldC9kb2NzIG9yIGJ5IGUtbWFp
+bCBhdCBjcHNAbmV0bG9jay5uZXQuMA0GCSqGSIb3DQEBBAUAA4IBAQBIJEb3ulZv+sgoA0BO5TE5
+ayZrU3/b39/zcT0mwBQOxmd7I6gMc90Bu8bKbjc5VdXHjFYgDigKDtIqpLBJUsY4B/6+CgmM0ZjP
+ytoUMaFP0jn8DxEsQ8Pdq5PHVT5HfBgaANzze9jyf1JsIPQLX2lS9O74silg6+NJMSEN1rUQQeJB
+CWziGppWS3cC9qCbmieH6FUpccKQn0V4GuEVZD3QDtigdp+uxdAu6tYPVuxkf1qbFFgBJ34TUMdr
+KuZoPL9coAob4Q566eKAw+np9v1sEZ7Q5SgnK1QyQhSCdeZK8CtmdWOMovsEPoMOmzbwGOQmIMOM
+8CgHrTwXZoi1/baI
+-----END CERTIFICATE-----
+
+NetLock Business (Class B) Root
+===============================
+-----BEGIN CERTIFICATE-----
+MIIFSzCCBLSgAwIBAgIBaTANBgkqhkiG9w0BAQQFADCBmTELMAkGA1UEBhMCSFUxETAPBgNVBAcT
+CEJ1ZGFwZXN0MScwJQYDVQQKEx5OZXRMb2NrIEhhbG96YXRiaXp0b25zYWdpIEtmdC4xGjAYBgNV
+BAsTEVRhbnVzaXR2YW55a2lhZG9rMTIwMAYDVQQDEylOZXRMb2NrIFV6bGV0aSAoQ2xhc3MgQikg
+VGFudXNpdHZhbnlraWFkbzAeFw05OTAyMjUxNDEwMjJaFw0xOTAyMjAxNDEwMjJaMIGZMQswCQYD
+VQQGEwJIVTERMA8GA1UEBxMIQnVkYXBlc3QxJzAlBgNVBAoTHk5ldExvY2sgSGFsb3phdGJpenRv
+bnNhZ2kgS2Z0LjEaMBgGA1UECxMRVGFudXNpdHZhbnlraWFkb2sxMjAwBgNVBAMTKU5ldExvY2sg
+VXpsZXRpIChDbGFzcyBCKSBUYW51c2l0dmFueWtpYWRvMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCB
+iQKBgQCx6gTsIKAjwo84YM/HRrPVG/77uZmeBNwcf4xKgZjupNTKihe5In+DCnVMm8Bp2GQ5o+2S
+o/1bXHQawEfKOml2mrriRBf8TKPV/riXiK+IA4kfpPIEPsgHC+b5sy96YhQJRhTKZPWLgLViqNhr
+1nGTLbO/CVRY7QbrqHvcQ7GhaQIDAQABo4ICnzCCApswEgYDVR0TAQH/BAgwBgEB/wIBBDAOBgNV
+HQ8BAf8EBAMCAAYwEQYJYIZIAYb4QgEBBAQDAgAHMIICYAYJYIZIAYb4QgENBIICURaCAk1GSUdZ
+RUxFTSEgRXplbiB0YW51c2l0dmFueSBhIE5ldExvY2sgS2Z0LiBBbHRhbGFub3MgU3pvbGdhbHRh
+dGFzaSBGZWx0ZXRlbGVpYmVuIGxlaXJ0IGVsamFyYXNvayBhbGFwamFuIGtlc3p1bHQuIEEgaGl0
+ZWxlc2l0ZXMgZm9seWFtYXRhdCBhIE5ldExvY2sgS2Z0LiB0ZXJtZWtmZWxlbG9zc2VnLWJpenRv
+c2l0YXNhIHZlZGkuIEEgZGlnaXRhbGlzIGFsYWlyYXMgZWxmb2dhZGFzYW5hayBmZWx0ZXRlbGUg
+YXogZWxvaXJ0IGVsbGVub3J6ZXNpIGVsamFyYXMgbWVndGV0ZWxlLiBBeiBlbGphcmFzIGxlaXJh
+c2EgbWVndGFsYWxoYXRvIGEgTmV0TG9jayBLZnQuIEludGVybmV0IGhvbmxhcGphbiBhIGh0dHBz
+Oi8vd3d3Lm5ldGxvY2submV0L2RvY3MgY2ltZW4gdmFneSBrZXJoZXRvIGF6IGVsbGVub3J6ZXNA
+bmV0bG9jay5uZXQgZS1tYWlsIGNpbWVuLiBJTVBPUlRBTlQhIFRoZSBpc3N1YW5jZSBhbmQgdGhl
+IHVzZSBvZiB0aGlzIGNlcnRpZmljYXRlIGlzIHN1YmplY3QgdG8gdGhlIE5ldExvY2sgQ1BTIGF2
+YWlsYWJsZSBhdCBodHRwczovL3d3dy5uZXRsb2NrLm5ldC9kb2NzIG9yIGJ5IGUtbWFpbCBhdCBj
+cHNAbmV0bG9jay5uZXQuMA0GCSqGSIb3DQEBBAUAA4GBAATbrowXr/gOkDFOzT4JwG06sPgzTEdM
+43WIEJessDgVkcYplswhwG08pXTP2IKlOcNl40JwuyKQ433bNXbhoLXan3BukxowOR0w2y7jfLKR
+stE3Kfq51hdcR0/jHTjrn9V7lagonhVK0dHQKwCXoOKSNitjrFgBazMpUIaD8QFI
+-----END CERTIFICATE-----
+
+NetLock Express (Class C) Root
+==============================
+-----BEGIN CERTIFICATE-----
+MIIFTzCCBLigAwIBAgIBaDANBgkqhkiG9w0BAQQFADCBmzELMAkGA1UEBhMCSFUxETAPBgNVBAcT
+CEJ1ZGFwZXN0MScwJQYDVQQKEx5OZXRMb2NrIEhhbG96YXRiaXp0b25zYWdpIEtmdC4xGjAYBgNV
+BAsTEVRhbnVzaXR2YW55a2lhZG9rMTQwMgYDVQQDEytOZXRMb2NrIEV4cHJlc3N6IChDbGFzcyBD
+KSBUYW51c2l0dmFueWtpYWRvMB4XDTk5MDIyNTE0MDgxMVoXDTE5MDIyMDE0MDgxMVowgZsxCzAJ
+BgNVBAYTAkhVMREwDwYDVQQHEwhCdWRhcGVzdDEnMCUGA1UEChMeTmV0TG9jayBIYWxvemF0Yml6
+dG9uc2FnaSBLZnQuMRowGAYDVQQLExFUYW51c2l0dmFueWtpYWRvazE0MDIGA1UEAxMrTmV0TG9j
+ayBFeHByZXNzeiAoQ2xhc3MgQykgVGFudXNpdHZhbnlraWFkbzCBnzANBgkqhkiG9w0BAQEFAAOB
+jQAwgYkCgYEA6+ywbGGKIyWvYCDj2Z/8kwvbXY2wobNAOoLO/XXgeDIDhlqGlZHtU/qdQPzm6N3Z
+W3oDvV3zOwzDUXmbrVWg6dADEK8KuhRC2VImESLH0iDMgqSaqf64gXadarfSNnU+sYYJ9m5tfk63
+euyucYT2BDMIJTLrdKwWRMbkQJMdf60CAwEAAaOCAp8wggKbMBIGA1UdEwEB/wQIMAYBAf8CAQQw
+DgYDVR0PAQH/BAQDAgAGMBEGCWCGSAGG+EIBAQQEAwIABzCCAmAGCWCGSAGG+EIBDQSCAlEWggJN
+RklHWUVMRU0hIEV6ZW4gdGFudXNpdHZhbnkgYSBOZXRMb2NrIEtmdC4gQWx0YWxhbm9zIFN6b2xn
+YWx0YXRhc2kgRmVsdGV0ZWxlaWJlbiBsZWlydCBlbGphcmFzb2sgYWxhcGphbiBrZXN6dWx0LiBB
+IGhpdGVsZXNpdGVzIGZvbHlhbWF0YXQgYSBOZXRMb2NrIEtmdC4gdGVybWVrZmVsZWxvc3NlZy1i
+aXp0b3NpdGFzYSB2ZWRpLiBBIGRpZ2l0YWxpcyBhbGFpcmFzIGVsZm9nYWRhc2FuYWsgZmVsdGV0
+ZWxlIGF6IGVsb2lydCBlbGxlbm9yemVzaSBlbGphcmFzIG1lZ3RldGVsZS4gQXogZWxqYXJhcyBs
+ZWlyYXNhIG1lZ3RhbGFsaGF0byBhIE5ldExvY2sgS2Z0LiBJbnRlcm5ldCBob25sYXBqYW4gYSBo
+dHRwczovL3d3dy5uZXRsb2NrLm5ldC9kb2NzIGNpbWVuIHZhZ3kga2VyaGV0byBheiBlbGxlbm9y
+emVzQG5ldGxvY2submV0IGUtbWFpbCBjaW1lbi4gSU1QT1JUQU5UISBUaGUgaXNzdWFuY2UgYW5k
+IHRoZSB1c2Ugb2YgdGhpcyBjZXJ0aWZpY2F0ZSBpcyBzdWJqZWN0IHRvIHRoZSBOZXRMb2NrIENQ
+UyBhdmFpbGFibGUgYXQgaHR0cHM6Ly93d3cubmV0bG9jay5uZXQvZG9jcyBvciBieSBlLW1haWwg
+YXQgY3BzQG5ldGxvY2submV0LjANBgkqhkiG9w0BAQQFAAOBgQAQrX/XDDKACtiG8XmYta3UzbM2
+xJZIwVzNmtkFLp++UOv0JhQQLdRmF/iewSf98e3ke0ugbLWrmldwpu2gpO0u9f38vf5NNwgMvOOW
+gyL1SRt/Syu0VMGAfJlOHdCM7tCs5ZL6dVb+ZKATj7i4Fp1hBWeAyNDYpQcCNJgEjTME1A==
+-----END CERTIFICATE-----
+
+XRamp Global CA Root
+====================
+-----BEGIN CERTIFICATE-----
+MIIEMDCCAxigAwIBAgIQUJRs7Bjq1ZxN1ZfvdY+grTANBgkqhkiG9w0BAQUFADCBgjELMAkGA1UE
+BhMCVVMxHjAcBgNVBAsTFXd3dy54cmFtcHNlY3VyaXR5LmNvbTEkMCIGA1UEChMbWFJhbXAgU2Vj
+dXJpdHkgU2VydmljZXMgSW5jMS0wKwYDVQQDEyRYUmFtcCBHbG9iYWwgQ2VydGlmaWNhdGlvbiBB
+dXRob3JpdHkwHhcNMDQxMTAxMTcxNDA0WhcNMzUwMTAxMDUzNzE5WjCBgjELMAkGA1UEBhMCVVMx
+HjAcBgNVBAsTFXd3dy54cmFtcHNlY3VyaXR5LmNvbTEkMCIGA1UEChMbWFJhbXAgU2VjdXJpdHkg
+U2VydmljZXMgSW5jMS0wKwYDVQQDEyRYUmFtcCBHbG9iYWwgQ2VydGlmaWNhdGlvbiBBdXRob3Jp
+dHkwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCYJB69FbS638eMpSe2OAtp87ZOqCwu
+IR1cRN8hXX4jdP5efrRKt6atH67gBhbim1vZZ3RrXYCPKZ2GG9mcDZhtdhAoWORlsH9KmHmf4MMx
+foArtYzAQDsRhtDLooY2YKTVMIJt2W7QDxIEM5dfT2Fa8OT5kavnHTu86M/0ay00fOJIYRyO82FE
+zG+gSqmUsE3a56k0enI4qEHMPJQRfevIpoy3hsvKMzvZPTeL+3o+hiznc9cKV6xkmxnr9A8ECIqs
+AxcZZPRaJSKNNCyy9mgdEm3Tih4U2sSPpuIjhdV6Db1q4Ons7Be7QhtnqiXtRYMh/MHJfNViPvry
+xS3T/dRlAgMBAAGjgZ8wgZwwEwYJKwYBBAGCNxQCBAYeBABDAEEwCwYDVR0PBAQDAgGGMA8GA1Ud
+EwEB/wQFMAMBAf8wHQYDVR0OBBYEFMZPoj0GY4QJnM5i5ASsjVy16bYbMDYGA1UdHwQvMC0wK6Ap
+oCeGJWh0dHA6Ly9jcmwueHJhbXBzZWN1cml0eS5jb20vWEdDQS5jcmwwEAYJKwYBBAGCNxUBBAMC
+AQEwDQYJKoZIhvcNAQEFBQADggEBAJEVOQMBG2f7Shz5CmBbodpNl2L5JFMn14JkTpAuw0kbK5rc
+/Kh4ZzXxHfARvbdI4xD2Dd8/0sm2qlWkSLoC295ZLhVbO50WfUfXN+pfTXYSNrsf16GBBEYgoyxt
+qZ4Bfj8pzgCT3/3JknOJiWSe5yvkHJEs0rnOfc5vMZnT5r7SHpDwCRR5XCOrTdLaIR9NmXmd4c8n
+nxCbHIgNsIpkQTG4DmyQJKSbXHGPurt+HBvbaoAPIbzp26a3QPSyi6mx5O+aGtA9aZnuqCij4Tyz
+8LIRnM98QObd50N9otg6tamN8jSZxNQQ4Qb9CYQQO+7ETPTsJ3xCwnR8gooJybQDJbw=
+-----END CERTIFICATE-----
+
+Go Daddy Class 2 CA
+===================
+-----BEGIN CERTIFICATE-----
+MIIEADCCAuigAwIBAgIBADANBgkqhkiG9w0BAQUFADBjMQswCQYDVQQGEwJVUzEhMB8GA1UEChMY
+VGhlIEdvIERhZGR5IEdyb3VwLCBJbmMuMTEwLwYDVQQLEyhHbyBEYWRkeSBDbGFzcyAyIENlcnRp
+ZmljYXRpb24gQXV0aG9yaXR5MB4XDTA0MDYyOTE3MDYyMFoXDTM0MDYyOTE3MDYyMFowYzELMAkG
+A1UEBhMCVVMxITAfBgNVBAoTGFRoZSBHbyBEYWRkeSBHcm91cCwgSW5jLjExMC8GA1UECxMoR28g
+RGFkZHkgQ2xhc3MgMiBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eTCCASAwDQYJKoZIhvcNAQEBBQAD
+ggENADCCAQgCggEBAN6d1+pXGEmhW+vXX0iG6r7d/+TvZxz0ZWizV3GgXne77ZtJ6XCAPVYYYwhv
+2vLM0D9/AlQiVBDYsoHUwHU9S3/Hd8M+eKsaA7Ugay9qK7HFiH7Eux6wwdhFJ2+qN1j3hybX2C32
+qRe3H3I2TqYXP2WYktsqbl2i/ojgC95/5Y0V4evLOtXiEqITLdiOr18SPaAIBQi2XKVlOARFmR6j
+YGB0xUGlcmIbYsUfb18aQr4CUWWoriMYavx4A6lNf4DD+qta/KFApMoZFv6yyO9ecw3ud72a9nmY
+vLEHZ6IVDd2gWMZEewo+YihfukEHU1jPEX44dMX4/7VpkI+EdOqXG68CAQOjgcAwgb0wHQYDVR0O
+BBYEFNLEsNKR1EwRcbNhyz2h/t2oatTjMIGNBgNVHSMEgYUwgYKAFNLEsNKR1EwRcbNhyz2h/t2o
+atTjoWekZTBjMQswCQYDVQQGEwJVUzEhMB8GA1UEChMYVGhlIEdvIERhZGR5IEdyb3VwLCBJbmMu
+MTEwLwYDVQQLEyhHbyBEYWRkeSBDbGFzcyAyIENlcnRpZmljYXRpb24gQXV0aG9yaXR5ggEAMAwG
+A1UdEwQFMAMBAf8wDQYJKoZIhvcNAQEFBQADggEBADJL87LKPpH8EsahB4yOd6AzBhRckB4Y9wim
+PQoZ+YeAEW5p5JYXMP80kWNyOO7MHAGjHZQopDH2esRU1/blMVgDoszOYtuURXO1v0XJJLXVggKt
+I3lpjbi2Tc7PTMozI+gciKqdi0FuFskg5YmezTvacPd+mSYgFFQlq25zheabIZ0KbIIOqPjCDPoQ
+HmyW74cNxA9hi63ugyuV+I6ShHI56yDqg+2DzZduCLzrTia2cyvk0/ZM/iZx4mERdEr/VxqHD3VI
+Ls9RaRegAhJhldXRQLIQTO7ErBBDpqWeCtWVYpoNz4iCxTIM5CufReYNnyicsbkqWletNw+vHX/b
+vZ8=
+-----END CERTIFICATE-----
+
+Starfield Class 2 CA
+====================
+-----BEGIN CERTIFICATE-----
+MIIEDzCCAvegAwIBAgIBADANBgkqhkiG9w0BAQUFADBoMQswCQYDVQQGEwJVUzElMCMGA1UEChMc
+U3RhcmZpZWxkIFRlY2hub2xvZ2llcywgSW5jLjEyMDAGA1UECxMpU3RhcmZpZWxkIENsYXNzIDIg
+Q2VydGlmaWNhdGlvbiBBdXRob3JpdHkwHhcNMDQwNjI5MTczOTE2WhcNMzQwNjI5MTczOTE2WjBo
+MQswCQYDVQQGEwJVUzElMCMGA1UEChMcU3RhcmZpZWxkIFRlY2hub2xvZ2llcywgSW5jLjEyMDAG
+A1UECxMpU3RhcmZpZWxkIENsYXNzIDIgQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkwggEgMA0GCSqG
+SIb3DQEBAQUAA4IBDQAwggEIAoIBAQC3Msj+6XGmBIWtDBFk385N78gDGIc/oav7PKaf8MOh2tTY
+bitTkPskpD6E8J7oX+zlJ0T1KKY/e97gKvDIr1MvnsoFAZMej2YcOadN+lq2cwQlZut3f+dZxkqZ
+JRRU6ybH838Z1TBwj6+wRir/resp7defqgSHo9T5iaU0X9tDkYI22WY8sbi5gv2cOj4QyDvvBmVm
+epsZGD3/cVE8MC5fvj13c7JdBmzDI1aaK4UmkhynArPkPw2vCHmCuDY96pzTNbO8acr1zJ3o/WSN
+F4Azbl5KXZnJHoe0nRrA1W4TNSNe35tfPe/W93bC6j67eA0cQmdrBNj41tpvi/JEoAGrAgEDo4HF
+MIHCMB0GA1UdDgQWBBS/X7fRzt0fhvRbVazc1xDCDqmI5zCBkgYDVR0jBIGKMIGHgBS/X7fRzt0f
+hvRbVazc1xDCDqmI56FspGowaDELMAkGA1UEBhMCVVMxJTAjBgNVBAoTHFN0YXJmaWVsZCBUZWNo
+bm9sb2dpZXMsIEluYy4xMjAwBgNVBAsTKVN0YXJmaWVsZCBDbGFzcyAyIENlcnRpZmljYXRpb24g
+QXV0aG9yaXR5ggEAMAwGA1UdEwQFMAMBAf8wDQYJKoZIhvcNAQEFBQADggEBAAWdP4id0ckaVaGs
+afPzWdqbAYcaT1epoXkJKtv3L7IezMdeatiDh6GX70k1PncGQVhiv45YuApnP+yz3SFmH8lU+nLM
+PUxA2IGvd56Deruix/U0F47ZEUD0/CwqTRV/p2JdLiXTAAsgGh1o+Re49L2L7ShZ3U0WixeDyLJl
+xy16paq8U4Zt3VekyvggQQto8PT7dL5WXXp59fkdheMtlb71cZBDzI0fmgAKhynpVSJYACPq4xJD
+KVtHCN2MQWplBqjlIapBtJUhlbl90TSrE9atvNziPTnNvT51cKEYWQPJIrSPnNVeKtelttQKbfi3
+QBFGmh95DmK/D5fs4C8fF5Q=
+-----END CERTIFICATE-----
+
+StartCom Certification Authority
+================================
+-----BEGIN CERTIFICATE-----
+MIIHyTCCBbGgAwIBAgIBATANBgkqhkiG9w0BAQUFADB9MQswCQYDVQQGEwJJTDEWMBQGA1UEChMN
+U3RhcnRDb20gTHRkLjErMCkGA1UECxMiU2VjdXJlIERpZ2l0YWwgQ2VydGlmaWNhdGUgU2lnbmlu
+ZzEpMCcGA1UEAxMgU3RhcnRDb20gQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkwHhcNMDYwOTE3MTk0
+NjM2WhcNMzYwOTE3MTk0NjM2WjB9MQswCQYDVQQGEwJJTDEWMBQGA1UEChMNU3RhcnRDb20gTHRk
+LjErMCkGA1UECxMiU2VjdXJlIERpZ2l0YWwgQ2VydGlmaWNhdGUgU2lnbmluZzEpMCcGA1UEAxMg
+U3RhcnRDb20gQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkwggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAw
+ggIKAoICAQDBiNsJvGxGfHiflXu1M5DycmLWwTYgIiRezul38kMKogZkpMyONvg45iPwbm2xPN1y
+o4UcodM9tDMr0y+v/uqwQVlntsQGfQqedIXWeUyAN3rfOQVSWff0G0ZDpNKFhdLDcfN1YjS6LIp/
+Ho/u7TTQEceWzVI9ujPW3U3eCztKS5/CJi/6tRYccjV3yjxd5srhJosaNnZcAdt0FCX+7bWgiA/d
+eMotHweXMAEtcnn6RtYTKqi5pquDSR3l8u/d5AGOGAqPY1MWhWKpDhk6zLVmpsJrdAfkK+F2PrRt
+2PZE4XNiHzvEvqBTViVsUQn3qqvKv3b9bZvzndu/PWa8DFaqr5hIlTpL36dYUNk4dalb6kMMAv+Z
+6+hsTXBbKWWc3apdzK8BMewM69KN6Oqce+Zu9ydmDBpI125C4z/eIT574Q1w+2OqqGwaVLRcJXrJ
+osmLFqa7LH4XXgVNWG4SHQHuEhANxjJ/GP/89PrNbpHoNkm+Gkhpi8KWTRoSsmkXwQqQ1vp5Iki/
+untp+HDH+no32NgN0nZPV/+Qt+OR0t3vwmC3Zzrd/qqc8NSLf3Iizsafl7b4r4qgEKjZ+xjGtrVc
+UjyJthkqcwEKDwOzEmDyei+B26Nu/yYwl/WL3YlXtq09s68rxbd2AvCl1iuahhQqcvbjM4xdCUsT
+37uMdBNSSwIDAQABo4ICUjCCAk4wDAYDVR0TBAUwAwEB/zALBgNVHQ8EBAMCAa4wHQYDVR0OBBYE
+FE4L7xqkQFulF2mHMMo0aEPQQa7yMGQGA1UdHwRdMFswLKAqoCiGJmh0dHA6Ly9jZXJ0LnN0YXJ0
+Y29tLm9yZy9zZnNjYS1jcmwuY3JsMCugKaAnhiVodHRwOi8vY3JsLnN0YXJ0Y29tLm9yZy9zZnNj
+YS1jcmwuY3JsMIIBXQYDVR0gBIIBVDCCAVAwggFMBgsrBgEEAYG1NwEBATCCATswLwYIKwYBBQUH
+AgEWI2h0dHA6Ly9jZXJ0LnN0YXJ0Y29tLm9yZy9wb2xpY3kucGRmMDUGCCsGAQUFBwIBFilodHRw
+Oi8vY2VydC5zdGFydGNvbS5vcmcvaW50ZXJtZWRpYXRlLnBkZjCB0AYIKwYBBQUHAgIwgcMwJxYg
+U3RhcnQgQ29tbWVyY2lhbCAoU3RhcnRDb20pIEx0ZC4wAwIBARqBl0xpbWl0ZWQgTGlhYmlsaXR5
+LCByZWFkIHRoZSBzZWN0aW9uICpMZWdhbCBMaW1pdGF0aW9ucyogb2YgdGhlIFN0YXJ0Q29tIENl
+cnRpZmljYXRpb24gQXV0aG9yaXR5IFBvbGljeSBhdmFpbGFibGUgYXQgaHR0cDovL2NlcnQuc3Rh
+cnRjb20ub3JnL3BvbGljeS5wZGYwEQYJYIZIAYb4QgEBBAQDAgAHMDgGCWCGSAGG+EIBDQQrFilT
+dGFydENvbSBGcmVlIFNTTCBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eTANBgkqhkiG9w0BAQUFAAOC
+AgEAFmyZ9GYMNPXQhV59CuzaEE44HF7fpiUFS5Eyweg78T3dRAlbB0mKKctmArexmvclmAk8jhvh
+3TaHK0u7aNM5Zj2gJsfyOZEdUauCe37Vzlrk4gNXcGmXCPleWKYK34wGmkUWFjgKXlf2Ysd6AgXm
+vB618p70qSmD+LIU424oh0TDkBreOKk8rENNZEXO3SipXPJzewT4F+irsfMuXGRuczE6Eri8sxHk
+fY+BUZo7jYn0TZNmezwD7dOaHZrzZVD1oNB1ny+v8OqCQ5j4aZyJecRDjkZy42Q2Eq/3JR44iZB3
+fsNrarnDy0RLrHiQi+fHLB5LEUTINFInzQpdn4XBidUaePKVEFMy3YCEZnXZtWgo+2EuvoSoOMCZ
+EoalHmdkrQYuL6lwhceWD3yJZfWOQ1QOq92lgDmUYMA0yZZwLKMS9R9Ie70cfmu3nZD0Ijuu+Pwq
+yvqCUqDvr0tVk+vBtfAii6w0TiYiBKGHLHVKt+V9E9e4DGTANtLJL4YSjCMJwRuCO3NJo2pXh5Tl
+1njFmUNj403gdy3hZZlyaQQaRwnmDwFWJPsfvw55qVguucQJAX6Vum0ABj6y6koQOdjQK/W/7HW/
+lwLFCRsI3FU34oH7N4RDYiDK51ZLZer+bMEkkyShNOsF/5oirpt9P/FlUQqmMGqz9IgcgA38coro
+g14=
+-----END CERTIFICATE-----
+
+Taiwan GRCA
+===========
+-----BEGIN CERTIFICATE-----
+MIIFcjCCA1qgAwIBAgIQH51ZWtcvwgZEpYAIaeNe9jANBgkqhkiG9w0BAQUFADA/MQswCQYDVQQG
+EwJUVzEwMC4GA1UECgwnR292ZXJubWVudCBSb290IENlcnRpZmljYXRpb24gQXV0aG9yaXR5MB4X
+DTAyMTIwNTEzMjMzM1oXDTMyMTIwNTEzMjMzM1owPzELMAkGA1UEBhMCVFcxMDAuBgNVBAoMJ0dv
+dmVybm1lbnQgUm9vdCBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eTCCAiIwDQYJKoZIhvcNAQEBBQAD
+ggIPADCCAgoCggIBAJoluOzMonWoe/fOW1mKydGGEghU7Jzy50b2iPN86aXfTEc2pBsBHH8eV4qN
+w8XRIePaJD9IK/ufLqGU5ywck9G/GwGHU5nOp/UKIXZ3/6m3xnOUT0b3EEk3+qhZSV1qgQdW8or5
+BtD3cCJNtLdBuTK4sfCxw5w/cP1T3YGq2GN49thTbqGsaoQkclSGxtKyyhwOeYHWtXBiCAEuTk8O
+1RGvqa/lmr/czIdtJuTJV6L7lvnM4T9TjGxMfptTCAtsF/tnyMKtsc2AtJfcdgEWFelq16TheEfO
+htX7MfP6Mb40qij7cEwdScevLJ1tZqa2jWR+tSBqnTuBto9AAGdLiYa4zGX+FVPpBMHWXx1E1wov
+J5pGfaENda1UhhXcSTvxls4Pm6Dso3pdvtUqdULle96ltqqvKKyskKw4t9VoNSZ63Pc78/1Fm9G7
+Q3hub/FCVGqY8A2tl+lSXunVanLeavcbYBT0peS2cWeqH+riTcFCQP5nRhc4L0c/cZyu5SHKYS1t
+B6iEfC3uUSXxY5Ce/eFXiGvviiNtsea9P63RPZYLhY3Naye7twWb7LuRqQoHEgKXTiCQ8P8NHuJB
+O9NAOueNXdpm5AKwB1KYXA6OM5zCppX7VRluTI6uSw+9wThNXo+EHWbNxWCWtFJaBYmOlXqYwZE8
+lSOyDvR5tMl8wUohAgMBAAGjajBoMB0GA1UdDgQWBBTMzO/MKWCkO7GStjz6MmKPrCUVOzAMBgNV
+HRMEBTADAQH/MDkGBGcqBwAEMTAvMC0CAQAwCQYFKw4DAhoFADAHBgVnKgMAAAQUA5vwIhP/lSg2
+09yewDL7MTqKUWUwDQYJKoZIhvcNAQEFBQADggIBAECASvomyc5eMN1PhnR2WPWus4MzeKR6dBcZ
+TulStbngCnRiqmjKeKBMmo4sIy7VahIkv9Ro04rQ2JyftB8M3jh+Vzj8jeJPXgyfqzvS/3WXy6Tj
+Zwj/5cAWtUgBfen5Cv8b5Wppv3ghqMKnI6mGq3ZW6A4M9hPdKmaKZEk9GhiHkASfQlK3T8v+R0F2
+Ne//AHY2RTKbxkaFXeIksB7jSJaYV0eUVXoPQbFEJPPB/hprv4j9wabak2BegUqZIJxIZhm1AHlU
+D7gsL0u8qV1bYH+Mh6XgUmMqvtg7hUAV/h62ZT/FS9p+tXo1KaMuephgIqP0fSdOLeq0dDzpD6Qz
+DxARvBMB1uUO07+1EqLhRSPAzAhuYbeJq4PjJB7mXQfnHyA+z2fI56wwbSdLaG5LKlwCCDTb+Hbk
+Z6MmnD+iMsJKxYEYMRBWqoTvLQr/uB930r+lWKBi5NdLkXWNiYCYfm3LU05er/ayl4WXudpVBrkk
+7tfGOB5jGxI7leFYrPLfhNVfmS8NVVvmONsuP3LpSIXLuykTjx44VbnzssQwmSNOXfJIoRIM3BKQ
+CZBUkQM8R+XVyWXgt0t97EfTsws+rZ7QdAAO671RrcDeLMDDav7v3Aun+kbfYNucpllQdSNpc5Oy
++fwC00fmcc4QAu4njIT/rEUNE1yDMuAlpYYsfPQS
+-----END CERTIFICATE-----
+
+Firmaprofesional Root CA
+========================
+-----BEGIN CERTIFICATE-----
+MIIEVzCCAz+gAwIBAgIBATANBgkqhkiG9w0BAQUFADCBnTELMAkGA1UEBhMCRVMxIjAgBgNVBAcT
+GUMvIE11bnRhbmVyIDI0NCBCYXJjZWxvbmExQjBABgNVBAMTOUF1dG9yaWRhZCBkZSBDZXJ0aWZp
+Y2FjaW9uIEZpcm1hcHJvZmVzaW9uYWwgQ0lGIEE2MjYzNDA2ODEmMCQGCSqGSIb3DQEJARYXY2FA
+ZmlybWFwcm9mZXNpb25hbC5jb20wHhcNMDExMDI0MjIwMDAwWhcNMTMxMDI0MjIwMDAwWjCBnTEL
+MAkGA1UEBhMCRVMxIjAgBgNVBAcTGUMvIE11bnRhbmVyIDI0NCBCYXJjZWxvbmExQjBABgNVBAMT
+OUF1dG9yaWRhZCBkZSBDZXJ0aWZpY2FjaW9uIEZpcm1hcHJvZmVzaW9uYWwgQ0lGIEE2MjYzNDA2
+ODEmMCQGCSqGSIb3DQEJARYXY2FAZmlybWFwcm9mZXNpb25hbC5jb20wggEiMA0GCSqGSIb3DQEB
+AQUAA4IBDwAwggEKAoIBAQDnIwNvbyOlXnjOlSztlB5uCp4Bx+ow0Syd3Tfom5h5VtP8c9/Qit5V
+j1H5WuretXDE7aTt/6MNbg9kUDGvASdYrv5sp0ovFy3Tc9UTHI9ZpTQsHVQERc1ouKDAA6XPhUJH
+lShbz++AbOCQl4oBPB3zhxAwJkh91/zpnZFx/0GaqUC1N5wpIE8fUuOgfRNtVLcK3ulqTgesrBlf
+3H5idPayBQC6haD9HThuy1q7hryUZzM1gywfI834yJFxzJeL764P3CkDG8A563DtwW4O2GcLiam8
+NeTvtjS0pbbELaW+0MOUJEjb35bTALVmGotmBQ/dPz/LP6pemkr4tErvlTcbAgMBAAGjgZ8wgZww
+KgYDVR0RBCMwIYYfaHR0cDovL3d3dy5maXJtYXByb2Zlc2lvbmFsLmNvbTASBgNVHRMBAf8ECDAG
+AQH/AgEBMCsGA1UdEAQkMCKADzIwMDExMDI0MjIwMDAwWoEPMjAxMzEwMjQyMjAwMDBaMA4GA1Ud
+DwEB/wQEAwIBBjAdBgNVHQ4EFgQUMwugZtHq2s7eYpMEKFK1FH84aLcwDQYJKoZIhvcNAQEFBQAD
+ggEBAEdz/o0nVPD11HecJ3lXV7cVVuzH2Fi3AQL0M+2TUIiefEaxvT8Ub/GzR0iLjJcG1+p+o1wq
+u00vR+L4OQbJnC4xGgN49Lw4xiKLMzHwFgQEffl25EvXwOaD7FnMP97/T2u3Z36mhoEyIwOdyPdf
+wUpgpZKpsaSgYMN4h7Mi8yrrW6ntBas3D7Hi05V2Y1Z0jFhyGzflZKG+TQyTmAyX9odtsz/ny4Cm
+7YjHX1BiAuiZdBbQ5rQ58SfLyEDW44YQqSMSkuBpQWOnryULwMWSyx6Yo1q6xTMPoJcB3X/ge9YG
+VM+h4k0460tQtcsm9MracEpqoeJ5quGnM/b9Sh/22WA=
+-----END CERTIFICATE-----
+
+Wells Fargo Root CA
+===================
+-----BEGIN CERTIFICATE-----
+MIID5TCCAs2gAwIBAgIEOeSXnjANBgkqhkiG9w0BAQUFADCBgjELMAkGA1UEBhMCVVMxFDASBgNV
+BAoTC1dlbGxzIEZhcmdvMSwwKgYDVQQLEyNXZWxscyBGYXJnbyBDZXJ0aWZpY2F0aW9uIEF1dGhv
+cml0eTEvMC0GA1UEAxMmV2VsbHMgRmFyZ28gUm9vdCBDZXJ0aWZpY2F0ZSBBdXRob3JpdHkwHhcN
+MDAxMDExMTY0MTI4WhcNMjEwMTE0MTY0MTI4WjCBgjELMAkGA1UEBhMCVVMxFDASBgNVBAoTC1dl
+bGxzIEZhcmdvMSwwKgYDVQQLEyNXZWxscyBGYXJnbyBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eTEv
+MC0GA1UEAxMmV2VsbHMgRmFyZ28gUm9vdCBDZXJ0aWZpY2F0ZSBBdXRob3JpdHkwggEiMA0GCSqG
+SIb3DQEBAQUAA4IBDwAwggEKAoIBAQDVqDM7Jvk0/82bfuUER84A4n135zHCLielTWi5MbqNQ1mX
+x3Oqfz1cQJ4F5aHiidlMuD+b+Qy0yGIZLEWukR5zcUHESxP9cMIlrCL1dQu3U+SlK93OvRw6esP3
+E48mVJwWa2uv+9iWsWCaSOAlIiR5NM4OJgALTqv9i86C1y8IcGjBqAr5dE8Hq6T54oN+J3N0Prj5
+OEL8pahbSCOz6+MlsoCultQKnMJ4msZoGK43YjdeUXWoWGPAUe5AeH6orxqg4bB4nVCMe+ez/I4j
+sNtlAHCEAQgAFG5Uhpq6zPk3EPbg3oQtnaSFN9OH4xXQwReQfhkhahKpdv0SAulPIV4XAgMBAAGj
+YTBfMA8GA1UdEwEB/wQFMAMBAf8wTAYDVR0gBEUwQzBBBgtghkgBhvt7hwcBCzAyMDAGCCsGAQUF
+BwIBFiRodHRwOi8vd3d3LndlbGxzZmFyZ28uY29tL2NlcnRwb2xpY3kwDQYJKoZIhvcNAQEFBQAD
+ggEBANIn3ZwKdyu7IvICtUpKkfnRLb7kuxpo7w6kAOnu5+/u9vnldKTC2FJYxHT7zmu1Oyl5GFrv
+m+0fazbuSCUlFLZWohDo7qd/0D+j0MNdJu4HzMPBJCGHHt8qElNvQRbn7a6U+oxy+hNH8Dx+rn0R
+OhPs7fpvcmR7nX1/Jv16+yWt6j4pf0zjAFcysLPp7VMX2YuyFA4w6OXVE8Zkr8QA1dhYJPz1j+zx
+x32l2w8n0cbyQIjmH/ZhqPRCyLk306m+LFZ4wnKbWV01QIroTmMatukgalHizqSQ33ZwmVxwQ023
+tqcZZE6St8WRPH9IFmV7Fv3L/PvZ1dZPIWU7Sn9Ho/s=
+-----END CERTIFICATE-----
+
+Swisscom Root CA 1
+==================
+-----BEGIN CERTIFICATE-----
+MIIF2TCCA8GgAwIBAgIQXAuFXAvnWUHfV8w/f52oNjANBgkqhkiG9w0BAQUFADBkMQswCQYDVQQG
+EwJjaDERMA8GA1UEChMIU3dpc3Njb20xJTAjBgNVBAsTHERpZ2l0YWwgQ2VydGlmaWNhdGUgU2Vy
+dmljZXMxGzAZBgNVBAMTElN3aXNzY29tIFJvb3QgQ0EgMTAeFw0wNTA4MTgxMjA2MjBaFw0yNTA4
+MTgyMjA2MjBaMGQxCzAJBgNVBAYTAmNoMREwDwYDVQQKEwhTd2lzc2NvbTElMCMGA1UECxMcRGln
+aXRhbCBDZXJ0aWZpY2F0ZSBTZXJ2aWNlczEbMBkGA1UEAxMSU3dpc3Njb20gUm9vdCBDQSAxMIIC
+IjANBgkqhkiG9w0BAQEFAAOCAg8AMIICCgKCAgEA0LmwqAzZuz8h+BvVM5OAFmUgdbI9m2BtRsiM
+MW8Xw/qabFbtPMWRV8PNq5ZJkCoZSx6jbVfd8StiKHVFXqrWW/oLJdihFvkcxC7mlSpnzNApbjyF
+NDhhSbEAn9Y6cV9Nbc5fuankiX9qUvrKm/LcqfmdmUc/TilftKaNXXsLmREDA/7n29uj/x2lzZAe
+AR81sH8A25Bvxn570e56eqeqDFdvpG3FEzuwpdntMhy0XmeLVNxzh+XTF3xmUHJd1BpYwdnP2IkC
+b6dJtDZd0KTeByy2dbcokdaXvij1mB7qWybJvbCXc9qukSbraMH5ORXWZ0sKbU/Lz7DkQnGMU3nn
+7uHbHaBuHYwadzVcFh4rUx80i9Fs/PJnB3r1re3WmquhsUvhzDdf/X/NTa64H5xD+SpYVUNFvJbN
+cA78yeNmuk6NO4HLFWR7uZToXTNShXEuT46iBhFRyePLoW4xCGQMwtI89Tbo19AOeCMgkckkKmUp
+WyL3Ic6DXqTz3kvTaI9GdVyDCW4pa8RwjPWd1yAv/0bSKzjCL3UcPX7ape8eYIVpQtPM+GP+HkM5
+haa2Y0EQs3MevNP6yn0WR+Kn1dCjigoIlmJWbjTb2QK5MHXjBNLnj8KwEUAKrNVxAmKLMb7dxiNY
+MUJDLXT5xp6mig/p/r+D5kNXJLrvRjSq1xIBOO0CAwEAAaOBhjCBgzAOBgNVHQ8BAf8EBAMCAYYw
+HQYDVR0hBBYwFDASBgdghXQBUwABBgdghXQBUwABMBIGA1UdEwEB/wQIMAYBAf8CAQcwHwYDVR0j
+BBgwFoAUAyUv3m+CATpcLNwroWm1Z9SM0/0wHQYDVR0OBBYEFAMlL95vggE6XCzcK6FptWfUjNP9
+MA0GCSqGSIb3DQEBBQUAA4ICAQA1EMvspgQNDQ/NwNurqPKIlwzfky9NfEBWMXrrpA9gzXrzvsMn
+jgM+pN0S734edAY8PzHyHHuRMSG08NBsl9Tpl7IkVh5WwzW9iAUPWxAaZOHHgjD5Mq2eUCzneAXQ
+MbFamIp1TpBcahQq4FJHgmDmHtqBsfsUC1rxn9KVuj7QG9YVHaO+htXbD8BJZLsuUBlL0iT43R4H
+VtA4oJVwIHaM190e3p9xxCPvgxNcoyQVTSlAPGrEqdi3pkSlDfTgnXceQHAm/NrZNuR55LU/vJtl
+vrsRls/bxig5OgjOR1tTWsWZ/l2p3e9M1MalrQLmjAcSHm8D0W+go/MpvRLHUKKwf4ipmXeascCl
+OS5cfGniLLDqN2qk4Vrh9VDlg++luyqI54zb/W1elxmofmZ1a3Hqv7HHb6D0jqTsNFFbjCYDcKF3
+1QESVwA12yPeDooomf2xEG9L/zgtYE4snOtnta1J7ksfrK/7DZBaZmBwXarNeNQk7shBoJMBkpxq
+nvy5JMWzFYJ+vq6VK+uxwNrjAWALXmmshFZhvnEX/h0TD/7Gh0Xp/jKgGg0TpJRVcaUWi7rKibCy
+x/yP2FS1k2Kdzs9Z+z0YzirLNRWCXf9UIltxUvu3yf5gmwBBZPCqKuy2QkPOiWaByIufOVQDJdMW
+NY6E0F/6MBr1mmz0DlP5OlvRHA==
+-----END CERTIFICATE-----
+
+DigiCert Assured ID Root CA
+===========================
+-----BEGIN CERTIFICATE-----
+MIIDtzCCAp+gAwIBAgIQDOfg5RfYRv6P5WD8G/AwOTANBgkqhkiG9w0BAQUFADBlMQswCQYDVQQG
+EwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3d3cuZGlnaWNlcnQuY29tMSQw
+IgYDVQQDExtEaWdpQ2VydCBBc3N1cmVkIElEIFJvb3QgQ0EwHhcNMDYxMTEwMDAwMDAwWhcNMzEx
+MTEwMDAwMDAwWjBlMQswCQYDVQQGEwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQL
+ExB3d3cuZGlnaWNlcnQuY29tMSQwIgYDVQQDExtEaWdpQ2VydCBBc3N1cmVkIElEIFJvb3QgQ0Ew
+ggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCtDhXO5EOAXLGH87dg+XESpa7cJpSIqvTO
+9SA5KFhgDPiA2qkVlTJhPLWxKISKityfCgyDF3qPkKyK53lTXDGEKvYPmDI2dsze3Tyoou9q+yHy
+UmHfnyDXH+Kx2f4YZNISW1/5WBg1vEfNoTb5a3/UsDg+wRvDjDPZ2C8Y/igPs6eD1sNuRMBhNZYW
+/lmci3Zt1/GiSw0r/wty2p5g0I6QNcZ4VYcgoc/lbQrISXwxmDNsIumH0DJaoroTghHtORedmTpy
+oeb6pNnVFzF1roV9Iq4/AUaG9ih5yLHa5FcXxH4cDrC0kqZWs72yl+2qp/C3xag/lRbQ/6GW6whf
+GHdPAgMBAAGjYzBhMA4GA1UdDwEB/wQEAwIBhjAPBgNVHRMBAf8EBTADAQH/MB0GA1UdDgQWBBRF
+66Kv9JLLgjEtUYunpyGd823IDzAfBgNVHSMEGDAWgBRF66Kv9JLLgjEtUYunpyGd823IDzANBgkq
+hkiG9w0BAQUFAAOCAQEAog683+Lt8ONyc3pklL/3cmbYMuRCdWKuh+vy1dneVrOfzM4UKLkNl2Bc
+EkxY5NM9g0lFWJc1aRqoR+pWxnmrEthngYTffwk8lOa4JiwgvT2zKIn3X/8i4peEH+ll74fg38Fn
+SbNd67IJKusm7Xi+fT8r87cmNW1fiQG2SVufAQWbqz0lwcy2f8Lxb4bG+mRo64EtlOtCt/qMHt1i
+8b5QZ7dsvfPxH2sMNgcWfzd8qVttevESRmCD1ycEvkvOl77DZypoEd+A5wwzZr8TDRRu838fYxAe
++o0bJW1sj6W3YQGx0qMmoRBxna3iw/nDmVG3KwcIzi7mULKn+gpFL6Lw8g==
+-----END CERTIFICATE-----
+
+DigiCert Global Root CA
+=======================
+-----BEGIN CERTIFICATE-----
+MIIDrzCCApegAwIBAgIQCDvgVpBCRrGhdWrJWZHHSjANBgkqhkiG9w0BAQUFADBhMQswCQYDVQQG
+EwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3d3cuZGlnaWNlcnQuY29tMSAw
+HgYDVQQDExdEaWdpQ2VydCBHbG9iYWwgUm9vdCBDQTAeFw0wNjExMTAwMDAwMDBaFw0zMTExMTAw
+MDAwMDBaMGExCzAJBgNVBAYTAlVTMRUwEwYDVQQKEwxEaWdpQ2VydCBJbmMxGTAXBgNVBAsTEHd3
+dy5kaWdpY2VydC5jb20xIDAeBgNVBAMTF0RpZ2lDZXJ0IEdsb2JhbCBSb290IENBMIIBIjANBgkq
+hkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA4jvhEXLeqKTTo1eqUKKPC3eQyaKl7hLOllsBCSDMAZOn
+TjC3U/dDxGkAV53ijSLdhwZAAIEJzs4bg7/fzTtxRuLWZscFs3YnFo97nh6Vfe63SKMI2tavegw5
+BmV/Sl0fvBf4q77uKNd0f3p4mVmFaG5cIzJLv07A6Fpt43C/dxC//AH2hdmoRBBYMql1GNXRor5H
+4idq9Joz+EkIYIvUX7Q6hL+hqkpMfT7PT19sdl6gSzeRntwi5m3OFBqOasv+zbMUZBfHWymeMr/y
+7vrTC0LUq7dBMtoM1O/4gdW7jVg/tRvoSSiicNoxBN33shbyTApOB6jtSj1etX+jkMOvJwIDAQAB
+o2MwYTAOBgNVHQ8BAf8EBAMCAYYwDwYDVR0TAQH/BAUwAwEB/zAdBgNVHQ4EFgQUA95QNVbRTLtm
+8KPiGxvDl7I90VUwHwYDVR0jBBgwFoAUA95QNVbRTLtm8KPiGxvDl7I90VUwDQYJKoZIhvcNAQEF
+BQADggEBAMucN6pIExIK+t1EnE9SsPTfrgT1eXkIoyQY/EsrhMAtudXH/vTBH1jLuG2cenTnmCmr
+EbXjcKChzUyImZOMkXDiqw8cvpOp/2PV5Adg06O/nVsJ8dWO41P0jmP6P6fbtGbfYmbW0W5BjfIt
+tep3Sp+dWOIrWcBAI+0tKIJFPnlUkiaY4IBIqDfv8NZ5YBberOgOzW6sRBc4L0na4UU+Krk2U886
+UAb3LujEV0lsYSEY1QSteDwsOoBrp+uvFRTp2InBuThs4pFsiv9kuXclVzDAGySj4dzp30d8tbQk
+CAUw7C29C79Fv1C5qfPrmAESrciIxpg0X40KPMbp1ZWVbd4=
+-----END CERTIFICATE-----
+
+DigiCert High Assurance EV Root CA
+==================================
+-----BEGIN CERTIFICATE-----
+MIIDxTCCAq2gAwIBAgIQAqxcJmoLQJuPC3nyrkYldzANBgkqhkiG9w0BAQUFADBsMQswCQYDVQQG
+EwJVUzEVMBMGA1UEChMMRGlnaUNlcnQgSW5jMRkwFwYDVQQLExB3d3cuZGlnaWNlcnQuY29tMSsw
+KQYDVQQDEyJEaWdpQ2VydCBIaWdoIEFzc3VyYW5jZSBFViBSb290IENBMB4XDTA2MTExMDAwMDAw
+MFoXDTMxMTExMDAwMDAwMFowbDELMAkGA1UEBhMCVVMxFTATBgNVBAoTDERpZ2lDZXJ0IEluYzEZ
+MBcGA1UECxMQd3d3LmRpZ2ljZXJ0LmNvbTErMCkGA1UEAxMiRGlnaUNlcnQgSGlnaCBBc3N1cmFu
+Y2UgRVYgUm9vdCBDQTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMbM5XPm+9S75S0t
+Mqbf5YE/yc0lSbZxKsPVlDRnogocsF9ppkCxxLeyj9CYpKlBWTrT3JTWPNt0OKRKzE0lgvdKpVMS
+OO7zSW1xkX5jtqumX8OkhPhPYlG++MXs2ziS4wblCJEMxChBVfvLWokVfnHoNb9Ncgk9vjo4UFt3
+MRuNs8ckRZqnrG0AFFoEt7oT61EKmEFBIk5lYYeBQVCmeVyJ3hlKV9Uu5l0cUyx+mM0aBhakaHPQ
+NAQTXKFx01p8VdteZOE3hzBWBOURtCmAEvF5OYiiAhF8J2a3iLd48soKqDirCmTCv2ZdlYTBoSUe
+h10aUAsgEsxBu24LUTi4S8sCAwEAAaNjMGEwDgYDVR0PAQH/BAQDAgGGMA8GA1UdEwEB/wQFMAMB
+Af8wHQYDVR0OBBYEFLE+w2kD+L9HAdSYJhoIAu9jZCvDMB8GA1UdIwQYMBaAFLE+w2kD+L9HAdSY
+JhoIAu9jZCvDMA0GCSqGSIb3DQEBBQUAA4IBAQAcGgaX3NecnzyIZgYIVyHbIUf4KmeqvxgydkAQ
+V8GK83rZEWWONfqe/EW1ntlMMUu4kehDLI6zeM7b41N5cdblIZQB2lWHmiRk9opmzN6cN82oNLFp
+myPInngiK3BD41VHMWEZ71jFhS9OMPagMRYjyOfiZRYzy78aG6A9+MpeizGLYAiJLQwGXFK3xPkK
+mNEVX58Svnw2Yzi9RKR/5CYrCsSXaQ3pjOLAEFe4yHYSkVXySGnYvCoCWw9E1CAx2/S6cCZdkGCe
+vEsXCS+0yx5DaMkHJ8HSXPfqIbloEpw8nL+e/IBcm2PN7EeqJSdnoDfzAIJ9VNep+OkuE6N36B9K
+-----END CERTIFICATE-----
+
+Certplus Class 2 Primary CA
+===========================
+-----BEGIN CERTIFICATE-----
+MIIDkjCCAnqgAwIBAgIRAIW9S/PY2uNp9pTXX8OlRCMwDQYJKoZIhvcNAQEFBQAwPTELMAkGA1UE
+BhMCRlIxETAPBgNVBAoTCENlcnRwbHVzMRswGQYDVQQDExJDbGFzcyAyIFByaW1hcnkgQ0EwHhcN
+OTkwNzA3MTcwNTAwWhcNMTkwNzA2MjM1OTU5WjA9MQswCQYDVQQGEwJGUjERMA8GA1UEChMIQ2Vy
+dHBsdXMxGzAZBgNVBAMTEkNsYXNzIDIgUHJpbWFyeSBDQTCCASIwDQYJKoZIhvcNAQEBBQADggEP
+ADCCAQoCggEBANxQltAS+DXSCHh6tlJw/W/uz7kRy1134ezpfgSN1sxvc0NXYKwzCkTsA18cgCSR
+5aiRVhKC9+Ar9NuuYS6JEI1rbLqzAr3VNsVINyPi8Fo3UjMXEuLRYE2+L0ER4/YXJQyLkcAbmXuZ
+Vg2v7tK8R1fjeUl7NIknJITesezpWE7+Tt9avkGtrAjFGA7v0lPubNCdEgETjdyAYveVqUSISnFO
+YFWe2yMZeVYHDD9jC1yw4r5+FfyUM1hBOHTE4Y+L3yasH7WLO7dDWWuwJKZtkIvEcupdM5i3y95e
+e++U8Rs+yskhwcWYAqqi9lt3m/V+llU0HGdpwPFC40es/CgcZlUCAwEAAaOBjDCBiTAPBgNVHRME
+CDAGAQH/AgEKMAsGA1UdDwQEAwIBBjAdBgNVHQ4EFgQU43Mt38sOKAze3bOkynm4jrvoMIkwEQYJ
+YIZIAYb4QgEBBAQDAgEGMDcGA1UdHwQwMC4wLKAqoCiGJmh0dHA6Ly93d3cuY2VydHBsdXMuY29t
+L0NSTC9jbGFzczIuY3JsMA0GCSqGSIb3DQEBBQUAA4IBAQCnVM+IRBnL39R/AN9WM2K191EBkOvD
+P9GIROkkXe/nFL0gt5o8AP5tn9uQ3Nf0YtaLcF3n5QRIqWh8yfFC82x/xXp8HVGIutIKPidd3i1R
+TtMTZGnkLuPT55sJmabglZvOGtd/vjzOUrMRFcEPF80Du5wlFbqidon8BvEY0JNLDnyCt6X09l/+
+7UCmnYR0ObncHoUW2ikbhiMAybuJfm6AiB4vFLQDJKgybwOaRywwvlbGp0ICcBvqQNi6BQNwB6SW
+//1IMwrh3KWBkJtN3X3n57LNXMhqlfil9o3EXXgIvnsG1knPGTZQIy4I5p4FTUcY1Rbpsda2ENW7
+l7+ijrRU
+-----END CERTIFICATE-----
+
+DST Root CA X3
+==============
+-----BEGIN CERTIFICATE-----
+MIIDSjCCAjKgAwIBAgIQRK+wgNajJ7qJMDmGLvhAazANBgkqhkiG9w0BAQUFADA/MSQwIgYDVQQK
+ExtEaWdpdGFsIFNpZ25hdHVyZSBUcnVzdCBDby4xFzAVBgNVBAMTDkRTVCBSb290IENBIFgzMB4X
+DTAwMDkzMDIxMTIxOVoXDTIxMDkzMDE0MDExNVowPzEkMCIGA1UEChMbRGlnaXRhbCBTaWduYXR1
+cmUgVHJ1c3QgQ28uMRcwFQYDVQQDEw5EU1QgUm9vdCBDQSBYMzCCASIwDQYJKoZIhvcNAQEBBQAD
+ggEPADCCAQoCggEBAN+v6ZdQCINXtMxiZfaQguzH0yxrMMpb7NnDfcdAwRgUi+DoM3ZJKuM/IUmT
+rE4Orz5Iy2Xu/NMhD2XSKtkyj4zl93ewEnu1lcCJo6m67XMuegwGMoOifooUMM0RoOEqOLl5CjH9
+UL2AZd+3UWODyOKIYepLYYHsUmu5ouJLGiifSKOeDNoJjj4XLh7dIN9bxiqKqy69cK3FCxolkHRy
+xXtqqzTWMIn/5WgTe1QLyNau7Fqckh49ZLOMxt+/yUFw7BZy1SbsOFU5Q9D8/RhcQPGX69Wam40d
+utolucbY38EVAjqr2m7xPi71XAicPNaDaeQQmxkqtilX4+U9m5/wAl0CAwEAAaNCMEAwDwYDVR0T
+AQH/BAUwAwEB/zAOBgNVHQ8BAf8EBAMCAQYwHQYDVR0OBBYEFMSnsaR7LHH62+FLkHX/xBVghYkQ
+MA0GCSqGSIb3DQEBBQUAA4IBAQCjGiybFwBcqR7uKGY3Or+Dxz9LwwmglSBd49lZRNI+DT69ikug
+dB/OEIKcdBodfpga3csTS7MgROSR6cz8faXbauX+5v3gTt23ADq1cEmv8uXrAvHRAosZy5Q6XkjE
+GB5YGV8eAlrwDPGxrancWYaLbumR9YbK+rlmM6pZW87ipxZzR8srzJmwN0jP41ZL9c8PDHIyh8bw
+RLtTcm1D9SZImlJnt1ir/md2cXjbDaJWFBM5JDGFoqgCWjBH4d1QB7wCCZAA62RjYJsWvIjJEubS
+fZGL+T0yjWW06XyxV3bqxbYoOb8VZRzI9neWagqNdwvYkQsEjgfbKbYK7p2CNTUQ
+-----END CERTIFICATE-----
+
+DST ACES CA X6
+==============
+-----BEGIN CERTIFICATE-----
+MIIECTCCAvGgAwIBAgIQDV6ZCtadt3js2AdWO4YV2TANBgkqhkiG9w0BAQUFADBbMQswCQYDVQQG
+EwJVUzEgMB4GA1UEChMXRGlnaXRhbCBTaWduYXR1cmUgVHJ1c3QxETAPBgNVBAsTCERTVCBBQ0VT
+MRcwFQYDVQQDEw5EU1QgQUNFUyBDQSBYNjAeFw0wMzExMjAyMTE5NThaFw0xNzExMjAyMTE5NTha
+MFsxCzAJBgNVBAYTAlVTMSAwHgYDVQQKExdEaWdpdGFsIFNpZ25hdHVyZSBUcnVzdDERMA8GA1UE
+CxMIRFNUIEFDRVMxFzAVBgNVBAMTDkRTVCBBQ0VTIENBIFg2MIIBIjANBgkqhkiG9w0BAQEFAAOC
+AQ8AMIIBCgKCAQEAuT31LMmU3HWKlV1j6IR3dma5WZFcRt2SPp/5DgO0PWGSvSMmtWPuktKe1jzI
+DZBfZIGxqAgNTNj50wUoUrQBJcWVHAx+PhCEdc/BGZFjz+iokYi5Q1K7gLFViYsx+tC3dr5BPTCa
+pCIlF3PoHuLTrCq9Wzgh1SpL11V94zpVvddtawJXa+ZHfAjIgrrep4c9oW24MFbCswKBXy314pow
+GCi4ZtPLAZZv6opFVdbgnf9nKxcCpk4aahELfrd755jWjHZvwTvbUJN+5dCOHze4vbrGn2zpfDPy
+MjwmR/onJALJfh1biEITajV8fTXpLmaRcpPVMibEdPVTo7NdmvYJywIDAQABo4HIMIHFMA8GA1Ud
+EwEB/wQFMAMBAf8wDgYDVR0PAQH/BAQDAgHGMB8GA1UdEQQYMBaBFHBraS1vcHNAdHJ1c3Rkc3Qu
+Y29tMGIGA1UdIARbMFkwVwYKYIZIAWUDAgEBATBJMEcGCCsGAQUFBwIBFjtodHRwOi8vd3d3LnRy
+dXN0ZHN0LmNvbS9jZXJ0aWZpY2F0ZXMvcG9saWN5L0FDRVMtaW5kZXguaHRtbDAdBgNVHQ4EFgQU
+CXIGThhDD+XWzMNqizF7eI+og7gwDQYJKoZIhvcNAQEFBQADggEBAKPYjtay284F5zLNAdMEA+V2
+5FYrnJmQ6AgwbN99Pe7lv7UkQIRJ4dEorsTCOlMwiPH1d25Ryvr/ma8kXxug/fKshMrfqfBfBC6t
+Fr8hlxCBPeP/h40y3JTlR4peahPJlJU90u7INJXQgNStMgiAVDzgvVJT11J8smk/f3rPanTK+gQq
+nExaBqXpIK1FZg9p8d2/6eMyi/rgwYZNcjwu2JN4Cir42NInPRmJX1p7ijvMDNpRrscL9yuwNwXs
+vFcj4jjSm2jzVhKIT0J8uDHEtdvkyCE06UgRNe76x5JXxZ805Mf29w4LTJxoeHtxMcfrHuBnQfO3
+oKfN5XozNmr6mis=
+-----END CERTIFICATE-----
+
+TURKTRUST Certificate Services Provider Root 1
+==============================================
+-----BEGIN CERTIFICATE-----
+MIID+zCCAuOgAwIBAgIBATANBgkqhkiG9w0BAQUFADCBtzE/MD0GA1UEAww2VMOcUktUUlVTVCBF
+bGVrdHJvbmlrIFNlcnRpZmlrYSBIaXptZXQgU2HEn2xhecSxY8Sxc8SxMQswCQYDVQQGDAJUUjEP
+MA0GA1UEBwwGQU5LQVJBMVYwVAYDVQQKDE0oYykgMjAwNSBUw5xSS1RSVVNUIEJpbGdpIMSwbGV0
+acWfaW0gdmUgQmlsacWfaW0gR8O8dmVubGnEn2kgSGl6bWV0bGVyaSBBLsWeLjAeFw0wNTA1MTMx
+MDI3MTdaFw0xNTAzMjIxMDI3MTdaMIG3MT8wPQYDVQQDDDZUw5xSS1RSVVNUIEVsZWt0cm9uaWsg
+U2VydGlmaWthIEhpem1ldCBTYcSfbGF5xLFjxLFzxLExCzAJBgNVBAYMAlRSMQ8wDQYDVQQHDAZB
+TktBUkExVjBUBgNVBAoMTShjKSAyMDA1IFTDnFJLVFJVU1QgQmlsZ2kgxLBsZXRpxZ9pbSB2ZSBC
+aWxpxZ9pbSBHw7x2ZW5sacSfaSBIaXptZXRsZXJpIEEuxZ4uMIIBIjANBgkqhkiG9w0BAQEFAAOC
+AQ8AMIIBCgKCAQEAylIF1mMD2Bxf3dJ7XfIMYGFbazt0K3gNfUW9InTojAPBxhEqPZW8qZSwu5GX
+yGl8hMW0kWxsE2qkVa2kheiVfrMArwDCBRj1cJ02i67L5BuBf5OI+2pVu32Fks66WJ/bMsW9Xe8i
+Si9BB35JYbOG7E6mQW6EvAPs9TscyB/C7qju6hJKjRTP8wrgUDn5CDX4EVmt5yLqS8oUBt5CurKZ
+8y1UiBAG6uEaPj1nH/vO+3yC6BFdSsG5FOpU2WabfIl9BJpiyelSPJ6c79L1JuTm5Rh8i27fbMx4
+W09ysstcP4wFjdFMjK2Sx+F4f2VsSQZQLJ4ywtdKxnWKWU51b0dewQIDAQABoxAwDjAMBgNVHRME
+BTADAQH/MA0GCSqGSIb3DQEBBQUAA4IBAQAV9VX/N5aAWSGk/KEVTCD21F/aAyT8z5Aa9CEKmu46
+sWrv7/hg0Uw2ZkUd82YCdAR7kjCo3gp2D++Vbr3JN+YaDayJSFvMgzbC9UZcWYJWtNX+I7TYVBxE
+q8Sn5RTOPEFhfEPmzcSBCYsk+1Ql1haolgxnB2+zUEfjHCQo3SqYpGH+2+oSN7wBGjSFvW5P55Fy
+B0SFHljKVETd96y5y4khctuPwGkplyqjrhgjlxxBKot8KsF8kOipKMDTkcatKIdAaLX/7KfS0zgY
+nNN9aV3wxqUeJBujR/xpB2jn5Jq07Q+hh4cCzofSSE7hvP/L8XKSRGQDJereW26fyfJOrN3H
+-----END CERTIFICATE-----
+
+TURKTRUST Certificate Services Provider Root 2
+==============================================
+-----BEGIN CERTIFICATE-----
+MIIEPDCCAySgAwIBAgIBATANBgkqhkiG9w0BAQUFADCBvjE/MD0GA1UEAww2VMOcUktUUlVTVCBF
+bGVrdHJvbmlrIFNlcnRpZmlrYSBIaXptZXQgU2HEn2xhecSxY8Sxc8SxMQswCQYDVQQGEwJUUjEP
+MA0GA1UEBwwGQW5rYXJhMV0wWwYDVQQKDFRUw5xSS1RSVVNUIEJpbGdpIMSwbGV0acWfaW0gdmUg
+QmlsacWfaW0gR8O8dmVubGnEn2kgSGl6bWV0bGVyaSBBLsWeLiAoYykgS2FzxLFtIDIwMDUwHhcN
+MDUxMTA3MTAwNzU3WhcNMTUwOTE2MTAwNzU3WjCBvjE/MD0GA1UEAww2VMOcUktUUlVTVCBFbGVr
+dHJvbmlrIFNlcnRpZmlrYSBIaXptZXQgU2HEn2xhecSxY8Sxc8SxMQswCQYDVQQGEwJUUjEPMA0G
+A1UEBwwGQW5rYXJhMV0wWwYDVQQKDFRUw5xSS1RSVVNUIEJpbGdpIMSwbGV0acWfaW0gdmUgQmls
+acWfaW0gR8O8dmVubGnEn2kgSGl6bWV0bGVyaSBBLsWeLiAoYykgS2FzxLFtIDIwMDUwggEiMA0G
+CSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCpNn7DkUNMwxmYCMjHWHtPFoylzkkBH3MOrHUTpvqe
+LCDe2JAOCtFp0if7qnefJ1Il4std2NiDUBd9irWCPwSOtNXwSadktx4uXyCcUHVPr+G1QRT0mJKI
+x+XlZEdhR3n9wFHxwZnn3M5q+6+1ATDcRhzviuyV79z/rxAc653YsKpqhRgNF8k+v/Gb0AmJQv2g
+QrSdiVFVKc8bcLyEVK3BEx+Y9C52YItdP5qtygy/p1Zbj3e41Z55SZI/4PGXJHpsmxcPbe9TmJEr
+5A++WXkHeLuXlfSfadRYhwqp48y2WBmfJiGxxFmNskF1wK1pzpwACPI2/z7woQ8arBT9pmAPAgMB
+AAGjQzBBMB0GA1UdDgQWBBTZN7NOBf3Zz58SFq62iS/rJTqIHDAPBgNVHQ8BAf8EBQMDBwYAMA8G
+A1UdEwEB/wQFMAMBAf8wDQYJKoZIhvcNAQEFBQADggEBAHJglrfJ3NgpXiOFX7KzLXb7iNcX/ntt
+Rbj2hWyfIvwqECLsqrkw9qtY1jkQMZkpAL2JZkH7dN6RwRgLn7Vhy506vvWolKMiVW4XSf/SKfE4
+Jl3vpao6+XF75tpYHdN0wgH6PmlYX63LaL4ULptswLbcoCb6dxriJNoaN+BnrdFzgw2lGh1uEpJ+
+hGIAF728JRhX8tepb1mIvDS3LoV4nZbcFMMsilKbloxSZj2GFotHuFEJjOp9zYhys2AzsfAKRO8P
+9Qk3iCQOLGsgOqL6EfJANZxEaGM7rDNvY7wsu/LSy3Z9fYjYHcgFHW68lKlmjHdxx/qR+i9Rnuk5
+UrbnBEI=
+-----END CERTIFICATE-----
+
+SwissSign Gold CA - G2
+======================
+-----BEGIN CERTIFICATE-----
+MIIFujCCA6KgAwIBAgIJALtAHEP1Xk+wMA0GCSqGSIb3DQEBBQUAMEUxCzAJBgNVBAYTAkNIMRUw
+EwYDVQQKEwxTd2lzc1NpZ24gQUcxHzAdBgNVBAMTFlN3aXNzU2lnbiBHb2xkIENBIC0gRzIwHhcN
+MDYxMDI1MDgzMDM1WhcNMzYxMDI1MDgzMDM1WjBFMQswCQYDVQQGEwJDSDEVMBMGA1UEChMMU3dp
+c3NTaWduIEFHMR8wHQYDVQQDExZTd2lzc1NpZ24gR29sZCBDQSAtIEcyMIICIjANBgkqhkiG9w0B
+AQEFAAOCAg8AMIICCgKCAgEAr+TufoskDhJuqVAtFkQ7kpJcyrhdhJJCEyq8ZVeCQD5XJM1QiyUq
+t2/876LQwB8CJEoTlo8jE+YoWACjR8cGp4QjK7u9lit/VcyLwVcfDmJlD909Vopz2q5+bbqBHH5C
+jCA12UNNhPqE21Is8w4ndwtrvxEvcnifLtg+5hg3Wipy+dpikJKVyh+c6bM8K8vzARO/Ws/BtQpg
+vd21mWRTuKCWs2/iJneRjOBiEAKfNA+k1ZIzUd6+jbqEemA8atufK+ze3gE/bk3lUIbLtK/tREDF
+ylqM2tIrfKjuvqblCqoOpd8FUrdVxyJdMmqXl2MT28nbeTZ7hTpKxVKJ+STnnXepgv9VHKVxaSvR
+AiTysybUa9oEVeXBCsdtMDeQKuSeFDNeFhdVxVu1yzSJkvGdJo+hB9TGsnhQ2wwMC3wLjEHXuend
+jIj3o02yMszYF9rNt85mndT9Xv+9lz4pded+p2JYryU0pUHHPbwNUMoDAw8IWh+Vc3hiv69yFGkO
+peUDDniOJihC8AcLYiAQZzlG+qkDzAQ4embvIIO1jEpWjpEA/I5cgt6IoMPiaG59je883WX0XaxR
+7ySArqpWl2/5rX3aYT+YdzylkbYcjCbaZaIJbcHiVOO5ykxMgI93e2CaHt+28kgeDrpOVG2Y4OGi
+GqJ3UM/EY5LsRxmd6+ZrzsECAwEAAaOBrDCBqTAOBgNVHQ8BAf8EBAMCAQYwDwYDVR0TAQH/BAUw
+AwEB/zAdBgNVHQ4EFgQUWyV7lqRlUX64OfPAeGZe6Drn8O4wHwYDVR0jBBgwFoAUWyV7lqRlUX64
+OfPAeGZe6Drn8O4wRgYDVR0gBD8wPTA7BglghXQBWQECAQEwLjAsBggrBgEFBQcCARYgaHR0cDov
+L3JlcG9zaXRvcnkuc3dpc3NzaWduLmNvbS8wDQYJKoZIhvcNAQEFBQADggIBACe645R88a7A3hfm
+5djV9VSwg/S7zV4Fe0+fdWavPOhWfvxyeDgD2StiGwC5+OlgzczOUYrHUDFu4Up+GC9pWbY9ZIEr
+44OE5iKHjn3g7gKZYbge9LgriBIWhMIxkziWMaa5O1M/wySTVltpkuzFwbs4AOPsF6m43Md8AYOf
+Mke6UiI0HTJ6CVanfCU2qT1L2sCCbwq7EsiHSycR+R4tx5M/nttfJmtS2S6K8RTGRI0Vqbe/vd6m
+Gu6uLftIdxf+u+yvGPUqUfA5hJeVbG4bwyvEdGB5JbAKJ9/fXtI5z0V9QkvfsywexcZdylU6oJxp
+mo/a77KwPJ+HbBIrZXAVUjEaJM9vMSNQH4xPjyPDdEFjHFWoFN0+4FFQz/EbMFYOkrCChdiDyyJk
+vC24JdVUorgG6q2SpCSgwYa1ShNqR88uC1aVVMvOmttqtKay20EIhid392qgQmwLOM7XdVAyksLf
+KzAiSNDVQTglXaTpXZ/GlHXQRf0wl0OPkKsKx4ZzYEppLd6leNcG2mqeSz53OiATIgHQv2ieY2Br
+NU0LbbqhPcCT4H8js1WtciVORvnSFu+wZMEBnunKoGqYDs/YYPIvSbjkQuE4NRb0yG5P94FW6Lqj
+viOvrv1vA+ACOzB2+httQc8Bsem4yWb02ybzOqR08kkkW8mw0FfB+j564ZfJ
+-----END CERTIFICATE-----
+
+SwissSign Silver CA - G2
+========================
+-----BEGIN CERTIFICATE-----
+MIIFvTCCA6WgAwIBAgIITxvUL1S7L0swDQYJKoZIhvcNAQEFBQAwRzELMAkGA1UEBhMCQ0gxFTAT
+BgNVBAoTDFN3aXNzU2lnbiBBRzEhMB8GA1UEAxMYU3dpc3NTaWduIFNpbHZlciBDQSAtIEcyMB4X
+DTA2MTAyNTA4MzI0NloXDTM2MTAyNTA4MzI0NlowRzELMAkGA1UEBhMCQ0gxFTATBgNVBAoTDFN3
+aXNzU2lnbiBBRzEhMB8GA1UEAxMYU3dpc3NTaWduIFNpbHZlciBDQSAtIEcyMIICIjANBgkqhkiG
+9w0BAQEFAAOCAg8AMIICCgKCAgEAxPGHf9N4Mfc4yfjDmUO8x/e8N+dOcbpLj6VzHVxumK4DV644
+N0MvFz0fyM5oEMF4rhkDKxD6LHmD9ui5aLlV8gREpzn5/ASLHvGiTSf5YXu6t+WiE7brYT7QbNHm
++/pe7R20nqA1W6GSy/BJkv6FCgU+5tkL4k+73JU3/JHpMjUi0R86TieFnbAVlDLaYQ1HTWBCrpJH
+6INaUFjpiou5XaHc3ZlKHzZnu0jkg7Y360g6rw9njxcH6ATK72oxh9TAtvmUcXtnZLi2kUpCe2Uu
+MGoM9ZDulebyzYLs2aFK7PayS+VFheZteJMELpyCbTapxDFkH4aDCyr0NQp4yVXPQbBH6TCfmb5h
+qAaEuSh6XzjZG6k4sIN/c8HDO0gqgg8hm7jMqDXDhBuDsz6+pJVpATqJAHgE2cn0mRmrVn5bi4Y5
+FZGkECwJMoBgs5PAKrYYC51+jUnyEEp/+dVGLxmSo5mnJqy7jDzmDrxHB9xzUfFwZC8I+bRHHTBs
+ROopN4WSaGa8gzj+ezku01DwH/teYLappvonQfGbGHLy9YR0SslnxFSuSGTfjNFusB3hB48IHpmc
+celM2KX3RxIfdNFRnobzwqIjQAtz20um53MGjMGg6cFZrEb65i/4z3GcRm25xBWNOHkDRUjvxF3X
+CO6HOSKGsg0PWEP3calILv3q1h8CAwEAAaOBrDCBqTAOBgNVHQ8BAf8EBAMCAQYwDwYDVR0TAQH/
+BAUwAwEB/zAdBgNVHQ4EFgQUF6DNweRBtjpbO8tFnb0cwpj6hlgwHwYDVR0jBBgwFoAUF6DNweRB
+tjpbO8tFnb0cwpj6hlgwRgYDVR0gBD8wPTA7BglghXQBWQEDAQEwLjAsBggrBgEFBQcCARYgaHR0
+cDovL3JlcG9zaXRvcnkuc3dpc3NzaWduLmNvbS8wDQYJKoZIhvcNAQEFBQADggIBAHPGgeAn0i0P
+4JUw4ppBf1AsX19iYamGamkYDHRJ1l2E6kFSGG9YrVBWIGrGvShpWJHckRE1qTodvBqlYJ7YH39F
+kWnZfrt4csEGDyrOj4VwYaygzQu4OSlWhDJOhrs9xCrZ1x9y7v5RoSJBsXECYxqCsGKrXlcSH9/L
+3XWgwF15kIwb4FDm3jH+mHtwX6WQ2K34ArZv02DdQEsixT2tOnqfGhpHkXkzuoLcMmkDlm4fS/Bx
+/uNncqCxv1yL5PqZIseEuRuNI5c/7SXgz2W79WEE790eslpBIlqhn10s6FvJbakMDHiqYMZWjwFa
+DGi8aRl5xB9+lwW/xekkUV7U1UtT7dkjWjYDZaPBA61BMPNGG4WQr2W11bHkFlt4dR2Xem1ZqSqP
+e97Dh4kQmUlzeMg9vVE1dCrV8X5pGyq7O70luJpaPXJhkGaH7gzWTdQRdAtq/gsD/KNVV4n+Ssuu
+WxcFyPKNIzFTONItaj+CuY0IavdeQXRuwxF+B6wpYJE/OMpXEA29MC/HpeZBoNquBYeaoKRlbEwJ
+DIm6uNO5wJOKMPqN5ZprFQFOZ6raYlY+hAhm0sQ2fac+EPyI4NSA5QC9qvNOBqN6avlicuMJT+ub
+DgEj8Z+7fNzcbBGXJbLytGMU0gYqZ4yD9c7qB9iaah7s5Aq7KkzrCWA5zspi2C5u
+-----END CERTIFICATE-----
+
+GeoTrust Primary Certification Authority
+========================================
+-----BEGIN CERTIFICATE-----
+MIIDfDCCAmSgAwIBAgIQGKy1av1pthU6Y2yv2vrEoTANBgkqhkiG9w0BAQUFADBYMQswCQYDVQQG
+EwJVUzEWMBQGA1UEChMNR2VvVHJ1c3QgSW5jLjExMC8GA1UEAxMoR2VvVHJ1c3QgUHJpbWFyeSBD
+ZXJ0aWZpY2F0aW9uIEF1dGhvcml0eTAeFw0wNjExMjcwMDAwMDBaFw0zNjA3MTYyMzU5NTlaMFgx
+CzAJBgNVBAYTAlVTMRYwFAYDVQQKEw1HZW9UcnVzdCBJbmMuMTEwLwYDVQQDEyhHZW9UcnVzdCBQ
+cmltYXJ5IENlcnRpZmljYXRpb24gQXV0aG9yaXR5MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIB
+CgKCAQEAvrgVe//UfH1nrYNke8hCUy3f9oQIIGHWAVlqnEQRr+92/ZV+zmEwu3qDXwK9AWbK7hWN
+b6EwnL2hhZ6UOvNWiAAxz9juapYC2e0DjPt1befquFUWBRaa9OBesYjAZIVcFU2Ix7e64HXprQU9
+nceJSOC7KMgD4TCTZF5SwFlwIjVXiIrxlQqD17wxcwE07e9GceBrAqg1cmuXm2bgyxx5X9gaBGge
+RwLmnWDiNpcB3841kt++Z8dtd1k7j53WkBWUvEI0EME5+bEnPn7WinXFsq+W06Lem+SYvn3h6YGt
+tm/81w7a4DSwDRp35+MImO9Y+pyEtzavwt+s0vQQBnBxNQIDAQABo0IwQDAPBgNVHRMBAf8EBTAD
+AQH/MA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQULNVQQZcVi/CPNmFbSvtr2ZnJM5IwDQYJKoZI
+hvcNAQEFBQADggEBAFpwfyzdtzRP9YZRqSa+S7iq8XEN3GHHoOo0Hnp3DwQ16CePbJC/kRYkRj5K
+Ts4rFtULUh38H2eiAkUxT87z+gOneZ1TatnaYzr4gNfTmeGl4b7UVXGYNTq+k+qurUKykG/g/CFN
+NWMziUnWm07Kx+dOCQD32sfvmWKZd7aVIl6KoKv0uHiYyjgZmclynnjNS6yvGaBzEi38wkG6gZHa
+Floxt/m0cYASSJlyc1pZU8FjUjPtp8nSOQJw+uCxQmYpqptR7TBUIhRf2asdweSU8Pj1K/fqynhG
+1riR/aYNKxoUAT6A8EKglQdebc3MS6RFjasS6LPeWuWgfOgPIh1a6Vk=
+-----END CERTIFICATE-----
+
+thawte Primary Root CA
+======================
+-----BEGIN CERTIFICATE-----
+MIIEIDCCAwigAwIBAgIQNE7VVyDV7exJ9C/ON9srbTANBgkqhkiG9w0BAQUFADCBqTELMAkGA1UE
+BhMCVVMxFTATBgNVBAoTDHRoYXd0ZSwgSW5jLjEoMCYGA1UECxMfQ2VydGlmaWNhdGlvbiBTZXJ2
+aWNlcyBEaXZpc2lvbjE4MDYGA1UECxMvKGMpIDIwMDYgdGhhd3RlLCBJbmMuIC0gRm9yIGF1dGhv
+cml6ZWQgdXNlIG9ubHkxHzAdBgNVBAMTFnRoYXd0ZSBQcmltYXJ5IFJvb3QgQ0EwHhcNMDYxMTE3
+MDAwMDAwWhcNMzYwNzE2MjM1OTU5WjCBqTELMAkGA1UEBhMCVVMxFTATBgNVBAoTDHRoYXd0ZSwg
+SW5jLjEoMCYGA1UECxMfQ2VydGlmaWNhdGlvbiBTZXJ2aWNlcyBEaXZpc2lvbjE4MDYGA1UECxMv
+KGMpIDIwMDYgdGhhd3RlLCBJbmMuIC0gRm9yIGF1dGhvcml6ZWQgdXNlIG9ubHkxHzAdBgNVBAMT
+FnRoYXd0ZSBQcmltYXJ5IFJvb3QgQ0EwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCs
+oPD7gFnUnMekz52hWXMJEEUMDSxuaPFsW0hoSVk3/AszGcJ3f8wQLZU0HObrTQmnHNK4yZc2AreJ
+1CRfBsDMRJSUjQJib+ta3RGNKJpchJAQeg29dGYvajig4tVUROsdB58Hum/u6f1OCyn1PoSgAfGc
+q/gcfomk6KHYcWUNo1F77rzSImANuVud37r8UVsLr5iy6S7pBOhih94ryNdOwUxkHt3Ph1i6Sk/K
+aAcdHJ1KxtUvkcx8cXIcxcBn6zL9yZJclNqFwJu/U30rCfSMnZEfl2pSy94JNqR32HuHUETVPm4p
+afs5SSYeCaWAe0At6+gnhcn+Yf1+5nyXHdWdAgMBAAGjQjBAMA8GA1UdEwEB/wQFMAMBAf8wDgYD
+VR0PAQH/BAQDAgEGMB0GA1UdDgQWBBR7W0XPr87Lev0xkhpqtvNG61dIUDANBgkqhkiG9w0BAQUF
+AAOCAQEAeRHAS7ORtvzw6WfUDW5FvlXok9LOAz/t2iWwHVfLHjp2oEzsUHboZHIMpKnxuIvW1oeE
+uzLlQRHAd9mzYJ3rG9XRbkREqaYB7FViHXe4XI5ISXycO1cRrK1zN44veFyQaEfZYGDm/Ac9IiAX
+xPcW6cTYcvnIc3zfFi8VqT79aie2oetaupgf1eNNZAqdE8hhuvU5HIe6uL17In/2/qxAeeWsEG89
+jxt5dovEN7MhGITlNgDrYyCZuen+MwS7QcjBAvlEYyCegc5C09Y/LHbTY5xZ3Y+m4Q6gLkH3LpVH
+z7z9M/P2C2F+fpErgUfCJzDupxBdN49cOSvkBPB7jVaMaA==
+-----END CERTIFICATE-----
+
+VeriSign Class 3 Public Primary Certification Authority - G5
+============================================================
+-----BEGIN CERTIFICATE-----
+MIIE0zCCA7ugAwIBAgIQGNrRniZ96LtKIVjNzGs7SjANBgkqhkiG9w0BAQUFADCByjELMAkGA1UE
+BhMCVVMxFzAVBgNVBAoTDlZlcmlTaWduLCBJbmMuMR8wHQYDVQQLExZWZXJpU2lnbiBUcnVzdCBO
+ZXR3b3JrMTowOAYDVQQLEzEoYykgMjAwNiBWZXJpU2lnbiwgSW5jLiAtIEZvciBhdXRob3JpemVk
+IHVzZSBvbmx5MUUwQwYDVQQDEzxWZXJpU2lnbiBDbGFzcyAzIFB1YmxpYyBQcmltYXJ5IENlcnRp
+ZmljYXRpb24gQXV0aG9yaXR5IC0gRzUwHhcNMDYxMTA4MDAwMDAwWhcNMzYwNzE2MjM1OTU5WjCB
+yjELMAkGA1UEBhMCVVMxFzAVBgNVBAoTDlZlcmlTaWduLCBJbmMuMR8wHQYDVQQLExZWZXJpU2ln
+biBUcnVzdCBOZXR3b3JrMTowOAYDVQQLEzEoYykgMjAwNiBWZXJpU2lnbiwgSW5jLiAtIEZvciBh
+dXRob3JpemVkIHVzZSBvbmx5MUUwQwYDVQQDEzxWZXJpU2lnbiBDbGFzcyAzIFB1YmxpYyBQcmlt
+YXJ5IENlcnRpZmljYXRpb24gQXV0aG9yaXR5IC0gRzUwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAw
+ggEKAoIBAQCvJAgIKXo1nmAMqudLO07cfLw8RRy7K+D+KQL5VwijZIUVJ/XxrcgxiV0i6CqqpkKz
+j/i5Vbext0uz/o9+B1fs70PbZmIVYc9gDaTY3vjgw2IIPVQT60nKWVSFJuUrjxuf6/WhkcIzSdhD
+Y2pSS9KP6HBRTdGJaXvHcPaz3BJ023tdS1bTlr8Vd6Gw9KIl8q8ckmcY5fQGBO+QueQA5N06tRn/
+Arr0PO7gi+s3i+z016zy9vA9r911kTMZHRxAy3QkGSGT2RT+rCpSx4/VBEnkjWNHiDxpg8v+R70r
+fk/Fla4OndTRQ8Bnc+MUCH7lP59zuDMKz10/NIeWiu5T6CUVAgMBAAGjgbIwga8wDwYDVR0TAQH/
+BAUwAwEB/zAOBgNVHQ8BAf8EBAMCAQYwbQYIKwYBBQUHAQwEYTBfoV2gWzBZMFcwVRYJaW1hZ2Uv
+Z2lmMCEwHzAHBgUrDgMCGgQUj+XTGoasjY5rw8+AatRIGCx7GS4wJRYjaHR0cDovL2xvZ28udmVy
+aXNpZ24uY29tL3ZzbG9nby5naWYwHQYDVR0OBBYEFH/TZafC3ey78DAJ80M5+gKvMzEzMA0GCSqG
+SIb3DQEBBQUAA4IBAQCTJEowX2LP2BqYLz3q3JktvXf2pXkiOOzEp6B4Eq1iDkVwZMXnl2YtmAl+
+X6/WzChl8gGqCBpH3vn5fJJaCGkgDdk+bW48DW7Y5gaRQBi5+MHt39tBquCWIMnNZBU4gcmU7qKE
+KQsTb47bDN0lAtukixlE0kF6BWlKWE9gyn6CagsCqiUXObXbf+eEZSqVir2G3l6BFoMtEMze/aiC
+Km0oHw0LxOXnGiYZ4fQRbxC1lfznQgUy286dUV4otp6F01vvpX1FQHKOtw5rDgb7MzVIcbidJ4vE
+ZV8NhnacRHr2lVz2XTIIM6RUthg/aFzyQkqFOFSDX9HoLPKsEdao7WNq
+-----END CERTIFICATE-----
+
+SecureTrust CA
+==============
+-----BEGIN CERTIFICATE-----
+MIIDuDCCAqCgAwIBAgIQDPCOXAgWpa1Cf/DrJxhZ0DANBgkqhkiG9w0BAQUFADBIMQswCQYDVQQG
+EwJVUzEgMB4GA1UEChMXU2VjdXJlVHJ1c3QgQ29ycG9yYXRpb24xFzAVBgNVBAMTDlNlY3VyZVRy
+dXN0IENBMB4XDTA2MTEwNzE5MzExOFoXDTI5MTIzMTE5NDA1NVowSDELMAkGA1UEBhMCVVMxIDAe
+BgNVBAoTF1NlY3VyZVRydXN0IENvcnBvcmF0aW9uMRcwFQYDVQQDEw5TZWN1cmVUcnVzdCBDQTCC
+ASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAKukgeWVzfX2FI7CT8rU4niVWJxB4Q2ZQCQX
+OZEzZum+4YOvYlyJ0fwkW2Gz4BERQRwdbvC4u/jep4G6pkjGnx29vo6pQT64lO0pGtSO0gMdA+9t
+DWccV9cGrcrI9f4Or2YlSASWC12juhbDCE/RRvgUXPLIXgGZbf2IzIaowW8xQmxSPmjL8xk037uH
+GFaAJsTQ3MBv396gwpEWoGQRS0S8Hvbn+mPeZqx2pHGj7DaUaHp3pLHnDi+BeuK1cobvomuL8A/b
+01k/unK8RCSc43Oz969XL0Imnal0ugBS8kvNU3xHCzaFDmapCJcWNFfBZveA4+1wVMeT4C4oFVmH
+ursCAwEAAaOBnTCBmjATBgkrBgEEAYI3FAIEBh4EAEMAQTALBgNVHQ8EBAMCAYYwDwYDVR0TAQH/
+BAUwAwEB/zAdBgNVHQ4EFgQUQjK2FvoE/f5dS3rD/fdMQB1aQ68wNAYDVR0fBC0wKzApoCegJYYj
+aHR0cDovL2NybC5zZWN1cmV0cnVzdC5jb20vU1RDQS5jcmwwEAYJKwYBBAGCNxUBBAMCAQAwDQYJ
+KoZIhvcNAQEFBQADggEBADDtT0rhWDpSclu1pqNlGKa7UTt36Z3q059c4EVlew3KW+JwULKUBRSu
+SceNQQcSc5R+DCMh/bwQf2AQWnL1mA6s7Ll/3XpvXdMc9P+IBWlCqQVxyLesJugutIxq/3HcuLHf
+mbx8IVQr5Fiiu1cprp6poxkmD5kuCLDv/WnPmRoJjeOnnyvJNjR7JLN4TJUXpAYmHrZkUjZfYGfZ
+nMUFdAvnZyPSCPyI6a6Lf+Ew9Dd+/cYy2i2eRDAwbO4H3tI0/NL/QPZL9GZGBlSm8jIKYyYwa5vR
+3ItHuuG51WLQoqD0ZwV4KWMabwTW+MZMo5qxN7SN5ShLHZ4swrhovO0C7jE=
+-----END CERTIFICATE-----
+
+Secure Global CA
+================
+-----BEGIN CERTIFICATE-----
+MIIDvDCCAqSgAwIBAgIQB1YipOjUiolN9BPI8PjqpTANBgkqhkiG9w0BAQUFADBKMQswCQYDVQQG
+EwJVUzEgMB4GA1UEChMXU2VjdXJlVHJ1c3QgQ29ycG9yYXRpb24xGTAXBgNVBAMTEFNlY3VyZSBH
+bG9iYWwgQ0EwHhcNMDYxMTA3MTk0MjI4WhcNMjkxMjMxMTk1MjA2WjBKMQswCQYDVQQGEwJVUzEg
+MB4GA1UEChMXU2VjdXJlVHJ1c3QgQ29ycG9yYXRpb24xGTAXBgNVBAMTEFNlY3VyZSBHbG9iYWwg
+Q0EwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCvNS7YrGxVaQZx5RNoJLNP2MwhR/jx
+YDiJiQPpvepeRlMJ3Fz1Wuj3RSoC6zFh1ykzTM7HfAo3fg+6MpjhHZevj8fcyTiW89sa/FHtaMbQ
+bqR8JNGuQsiWUGMu4P51/pinX0kuleM5M2SOHqRfkNJnPLLZ/kG5VacJjnIFHovdRIWCQtBJwB1g
+8NEXLJXr9qXBkqPFwqcIYA1gBBCWeZ4WNOaptvolRTnIHmX5k/Wq8VLcmZg9pYYaDDUz+kulBAYV
+HDGA76oYa8J719rO+TMg1fW9ajMtgQT7sFzUnKPiXB3jqUJ1XnvUd+85VLrJChgbEplJL4hL/VBi
+0XPnj3pDAgMBAAGjgZ0wgZowEwYJKwYBBAGCNxQCBAYeBABDAEEwCwYDVR0PBAQDAgGGMA8GA1Ud
+EwEB/wQFMAMBAf8wHQYDVR0OBBYEFK9EBMJBfkiD2045AuzshHrmzsmkMDQGA1UdHwQtMCswKaAn
+oCWGI2h0dHA6Ly9jcmwuc2VjdXJldHJ1c3QuY29tL1NHQ0EuY3JsMBAGCSsGAQQBgjcVAQQDAgEA
+MA0GCSqGSIb3DQEBBQUAA4IBAQBjGghAfaReUw132HquHw0LURYD7xh8yOOvaliTFGCRsoTciE6+
+OYo68+aCiV0BN7OrJKQVDpI1WkpEXk5X+nXOH0jOZvQ8QCaSmGwb7iRGDBezUqXbpZGRzzfTb+cn
+CDpOGR86p1hcF895P4vkp9MmI50mD1hp/Ed+stCNi5O/KU9DaXR2Z0vPB4zmAve14bRDtUstFJ/5
+3CYNv6ZHdAbYiNE6KTCEztI5gGIbqMdXSbxqVVFnFUq+NQfk1XWYN3kwFNspnWzFacxHVaIw98xc
+f8LDmBxrThaA63p4ZUWiABqvDA1VZDRIuJK58bRQKfJPIx/abKwfROHdI3hRW8cW
+-----END CERTIFICATE-----
+
+COMODO Certification Authority
+==============================
+-----BEGIN CERTIFICATE-----
+MIIEHTCCAwWgAwIBAgIQToEtioJl4AsC7j41AkblPTANBgkqhkiG9w0BAQUFADCBgTELMAkGA1UE
+BhMCR0IxGzAZBgNVBAgTEkdyZWF0ZXIgTWFuY2hlc3RlcjEQMA4GA1UEBxMHU2FsZm9yZDEaMBgG
+A1UEChMRQ09NT0RPIENBIExpbWl0ZWQxJzAlBgNVBAMTHkNPTU9ETyBDZXJ0aWZpY2F0aW9uIEF1
+dGhvcml0eTAeFw0wNjEyMDEwMDAwMDBaFw0yOTEyMzEyMzU5NTlaMIGBMQswCQYDVQQGEwJHQjEb
+MBkGA1UECBMSR3JlYXRlciBNYW5jaGVzdGVyMRAwDgYDVQQHEwdTYWxmb3JkMRowGAYDVQQKExFD
+T01PRE8gQ0EgTGltaXRlZDEnMCUGA1UEAxMeQ09NT0RPIENlcnRpZmljYXRpb24gQXV0aG9yaXR5
+MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA0ECLi3LjkRv3UcEbVASY06m/weaKXTuH
++7uIzg3jLz8GlvCiKVCZrts7oVewdFFxze1CkU1B/qnI2GqGd0S7WWaXUF601CxwRM/aN5VCaTww
+xHGzUvAhTaHYujl8HJ6jJJ3ygxaYqhZ8Q5sVW7euNJH+1GImGEaaP+vB+fGQV+useg2L23IwambV
+4EajcNxo2f8ESIl33rXp+2dtQem8Ob0y2WIC8bGoPW43nOIv4tOiJovGuFVDiOEjPqXSJDlqR6sA
+1KGzqSX+DT+nHbrTUcELpNqsOO9VUCQFZUaTNE8tja3G1CEZ0o7KBWFxB3NH5YoZEr0ETc5OnKVI
+rLsm9wIDAQABo4GOMIGLMB0GA1UdDgQWBBQLWOWLxkwVN6RAqTCpIb5HNlpW/zAOBgNVHQ8BAf8E
+BAMCAQYwDwYDVR0TAQH/BAUwAwEB/zBJBgNVHR8EQjBAMD6gPKA6hjhodHRwOi8vY3JsLmNvbW9k
+b2NhLmNvbS9DT01PRE9DZXJ0aWZpY2F0aW9uQXV0aG9yaXR5LmNybDANBgkqhkiG9w0BAQUFAAOC
+AQEAPpiem/Yb6dc5t3iuHXIYSdOH5EOC6z/JqvWote9VfCFSZfnVDeFs9D6Mk3ORLgLETgdxb8CP
+OGEIqB6BCsAvIC9Bi5HcSEW88cbeunZrM8gALTFGTO3nnc+IlP8zwFboJIYmuNg4ON8qa90SzMc/
+RxdMosIGlgnW2/4/PEZB31jiVg88O8EckzXZOFKs7sjsLjBOlDW0JB9LeGna8gI4zJVSk/BwJVmc
+IGfE7vmLV2H0knZ9P4SNVbfo5azV8fUZVqZa+5Acr5Pr5RzUZ5ddBA6+C4OmF4O5MBKgxTMVBbkN
++8cFduPYSo38NBejxiEovjBFMR7HeL5YYTisO+IBZQ==
+-----END CERTIFICATE-----
+
+Network Solutions Certificate Authority
+=======================================
+-----BEGIN CERTIFICATE-----
+MIID5jCCAs6gAwIBAgIQV8szb8JcFuZHFhfjkDFo4DANBgkqhkiG9w0BAQUFADBiMQswCQYDVQQG
+EwJVUzEhMB8GA1UEChMYTmV0d29yayBTb2x1dGlvbnMgTC5MLkMuMTAwLgYDVQQDEydOZXR3b3Jr
+IFNvbHV0aW9ucyBDZXJ0aWZpY2F0ZSBBdXRob3JpdHkwHhcNMDYxMjAxMDAwMDAwWhcNMjkxMjMx
+MjM1OTU5WjBiMQswCQYDVQQGEwJVUzEhMB8GA1UEChMYTmV0d29yayBTb2x1dGlvbnMgTC5MLkMu
+MTAwLgYDVQQDEydOZXR3b3JrIFNvbHV0aW9ucyBDZXJ0aWZpY2F0ZSBBdXRob3JpdHkwggEiMA0G
+CSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDkvH6SMG3G2I4rC7xGzuAnlt7e+foS0zwzc7MEL7xx
+jOWftiJgPl9dzgn/ggwbmlFQGiaJ3dVhXRncEg8tCqJDXRfQNJIg6nPPOCwGJgl6cvf6UDL4wpPT
+aaIjzkGxzOTVHzbRijr4jGPiFFlp7Q3Tf2vouAPlT2rlmGNpSAW+Lv8ztumXWWn4Zxmuk2GWRBXT
+crA/vGp97Eh/jcOrqnErU2lBUzS1sLnFBgrEsEX1QV1uiUV7PTsmjHTC5dLRfbIR1PtYMiKagMnc
+/Qzpf14Dl847ABSHJ3A4qY5usyd2mFHgBeMhqxrVhSI8KbWaFsWAqPS7azCPL0YCorEMIuDTAgMB
+AAGjgZcwgZQwHQYDVR0OBBYEFCEwyfsA106Y2oeqKtCnLrFAMadMMA4GA1UdDwEB/wQEAwIBBjAP
+BgNVHRMBAf8EBTADAQH/MFIGA1UdHwRLMEkwR6BFoEOGQWh0dHA6Ly9jcmwubmV0c29sc3NsLmNv
+bS9OZXR3b3JrU29sdXRpb25zQ2VydGlmaWNhdGVBdXRob3JpdHkuY3JsMA0GCSqGSIb3DQEBBQUA
+A4IBAQC7rkvnt1frf6ott3NHhWrB5KUd5Oc86fRZZXe1eltajSU24HqXLjjAV2CDmAaDn7l2em5Q
+4LqILPxFzBiwmZVRDuwduIj/h1AcgsLj4DKAv6ALR8jDMe+ZZzKATxcheQxpXN5eNK4CtSbqUN9/
+GGUsyfJj4akH/nxxH2szJGoeBfcFaMBqEssuXmHLrijTfsK0ZpEmXzwuJF/LWA/rKOyvEZbz3Htv
+wKeI8lN3s2Berq4o2jUsbzRF0ybh3uxbTydrFny9RAQYgrOJeRcQcT16ohZO9QHNpGxlaKFJdlxD
+ydi8NmdspZS11My5vWo1ViHe2MPr+8ukYEywVaCge1ey
+-----END CERTIFICATE-----
+
+WellsSecure Public Root Certificate Authority
+=============================================
+-----BEGIN CERTIFICATE-----
+MIIEvTCCA6WgAwIBAgIBATANBgkqhkiG9w0BAQUFADCBhTELMAkGA1UEBhMCVVMxIDAeBgNVBAoM
+F1dlbGxzIEZhcmdvIFdlbGxzU2VjdXJlMRwwGgYDVQQLDBNXZWxscyBGYXJnbyBCYW5rIE5BMTYw
+NAYDVQQDDC1XZWxsc1NlY3VyZSBQdWJsaWMgUm9vdCBDZXJ0aWZpY2F0ZSBBdXRob3JpdHkwHhcN
+MDcxMjEzMTcwNzU0WhcNMjIxMjE0MDAwNzU0WjCBhTELMAkGA1UEBhMCVVMxIDAeBgNVBAoMF1dl
+bGxzIEZhcmdvIFdlbGxzU2VjdXJlMRwwGgYDVQQLDBNXZWxscyBGYXJnbyBCYW5rIE5BMTYwNAYD
+VQQDDC1XZWxsc1NlY3VyZSBQdWJsaWMgUm9vdCBDZXJ0aWZpY2F0ZSBBdXRob3JpdHkwggEiMA0G
+CSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDub7S9eeKPCCGeOARBJe+rWxxTkqxtnt3CxC5FlAM1
+iGd0V+PfjLindo8796jE2yljDpFoNoqXjopxaAkH5OjUDk/41itMpBb570OYj7OeUt9tkTmPOL13
+i0Nj67eT/DBMHAGTthP796EfvyXhdDcsHqRePGj4S78NuR4uNuip5Kf4D8uCdXw1LSLWwr8L87T8
+bJVhHlfXBIEyg1J55oNjz7fLY4sR4r1e6/aN7ZVyKLSsEmLpSjPmgzKuBXWVvYSV2ypcm44uDLiB
+K0HmOFafSZtsdvqKXfcBeYF8wYNABf5x/Qw/zE5gCQ5lRxAvAcAFP4/4s0HvWkJ+We/SlwxlAgMB
+AAGjggE0MIIBMDAPBgNVHRMBAf8EBTADAQH/MDkGA1UdHwQyMDAwLqAsoCqGKGh0dHA6Ly9jcmwu
+cGtpLndlbGxzZmFyZ28uY29tL3dzcHJjYS5jcmwwDgYDVR0PAQH/BAQDAgHGMB0GA1UdDgQWBBQm
+lRkQ2eihl5H/3BnZtQQ+0nMKajCBsgYDVR0jBIGqMIGngBQmlRkQ2eihl5H/3BnZtQQ+0nMKaqGB
+i6SBiDCBhTELMAkGA1UEBhMCVVMxIDAeBgNVBAoMF1dlbGxzIEZhcmdvIFdlbGxzU2VjdXJlMRww
+GgYDVQQLDBNXZWxscyBGYXJnbyBCYW5rIE5BMTYwNAYDVQQDDC1XZWxsc1NlY3VyZSBQdWJsaWMg
+Um9vdCBDZXJ0aWZpY2F0ZSBBdXRob3JpdHmCAQEwDQYJKoZIhvcNAQEFBQADggEBALkVsUSRzCPI
+K0134/iaeycNzXK7mQDKfGYZUMbVmO2rvwNa5U3lHshPcZeG1eMd/ZDJPHV3V3p9+N701NX3leZ0
+bh08rnyd2wIDBSxxSyU+B+NemvVmFymIGjifz6pBA4SXa5M4esowRBskRDPQ5NHcKDj0E0M1NSlj
+qHyita04pO2t/caaH/+Xc/77szWnk4bGdpEA5qxRFsQnMlzbc9qlk1eOPm01JghZ1edE13YgY+es
+E2fDbbFwRnzVlhE9iW9dqKHrjQrawx0zbKPqZxmamX9LPYNRKh3KL4YMon4QLSvUFpULB6ouFJJJ
+tylv2G0xffX8oRAHh84vWdw+WNs=
+-----END CERTIFICATE-----
+
+COMODO ECC Certification Authority
+==================================
+-----BEGIN CERTIFICATE-----
+MIICiTCCAg+gAwIBAgIQH0evqmIAcFBUTAGem2OZKjAKBggqhkjOPQQDAzCBhTELMAkGA1UEBhMC
+R0IxGzAZBgNVBAgTEkdyZWF0ZXIgTWFuY2hlc3RlcjEQMA4GA1UEBxMHU2FsZm9yZDEaMBgGA1UE
+ChMRQ09NT0RPIENBIExpbWl0ZWQxKzApBgNVBAMTIkNPTU9ETyBFQ0MgQ2VydGlmaWNhdGlvbiBB
+dXRob3JpdHkwHhcNMDgwMzA2MDAwMDAwWhcNMzgwMTE4MjM1OTU5WjCBhTELMAkGA1UEBhMCR0Ix
+GzAZBgNVBAgTEkdyZWF0ZXIgTWFuY2hlc3RlcjEQMA4GA1UEBxMHU2FsZm9yZDEaMBgGA1UEChMR
+Q09NT0RPIENBIExpbWl0ZWQxKzApBgNVBAMTIkNPTU9ETyBFQ0MgQ2VydGlmaWNhdGlvbiBBdXRo
+b3JpdHkwdjAQBgcqhkjOPQIBBgUrgQQAIgNiAAQDR3svdcmCFYX7deSRFtSrYpn1PlILBs5BAH+X
+4QokPB0BBO490o0JlwzgdeT6+3eKKvUDYEs2ixYjFq0JcfRK9ChQtP6IHG4/bC8vCVlbpVsLM5ni
+wz2J+Wos77LTBumjQjBAMB0GA1UdDgQWBBR1cacZSBm8nZ3qQUfflMRId5nTeTAOBgNVHQ8BAf8E
+BAMCAQYwDwYDVR0TAQH/BAUwAwEB/zAKBggqhkjOPQQDAwNoADBlAjEA7wNbeqy3eApyt4jf/7VG
+FAkK+qDmfQjGGoe9GKhzvSbKYAydzpmfz1wPMOG+FDHqAjAU9JM8SaczepBGR7NjfRObTrdvGDeA
+U/7dIOA1mjbRxwG55tzd8/8dLDoWV9mSOdY=
+-----END CERTIFICATE-----
+
+IGC/A
+=====
+-----BEGIN CERTIFICATE-----
+MIIEAjCCAuqgAwIBAgIFORFFEJQwDQYJKoZIhvcNAQEFBQAwgYUxCzAJBgNVBAYTAkZSMQ8wDQYD
+VQQIEwZGcmFuY2UxDjAMBgNVBAcTBVBhcmlzMRAwDgYDVQQKEwdQTS9TR0ROMQ4wDAYDVQQLEwVE
+Q1NTSTEOMAwGA1UEAxMFSUdDL0ExIzAhBgkqhkiG9w0BCQEWFGlnY2FAc2dkbi5wbS5nb3V2LmZy
+MB4XDTAyMTIxMzE0MjkyM1oXDTIwMTAxNzE0MjkyMlowgYUxCzAJBgNVBAYTAkZSMQ8wDQYDVQQI
+EwZGcmFuY2UxDjAMBgNVBAcTBVBhcmlzMRAwDgYDVQQKEwdQTS9TR0ROMQ4wDAYDVQQLEwVEQ1NT
+STEOMAwGA1UEAxMFSUdDL0ExIzAhBgkqhkiG9w0BCQEWFGlnY2FAc2dkbi5wbS5nb3V2LmZyMIIB
+IjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAsh/R0GLFMzvABIaIs9z4iPf930Pfeo2aSVz2
+TqrMHLmh6yeJ8kbpO0px1R2OLc/mratjUMdUC24SyZA2xtgv2pGqaMVy/hcKshd+ebUyiHDKcMCW
+So7kVc0dJ5S/znIq7Fz5cyD+vfcuiWe4u0dzEvfRNWk68gq5rv9GQkaiv6GFGvm/5P9JhfejcIYy
+HF2fYPepraX/z9E0+X1bF8bc1g4oa8Ld8fUzaJ1O/Id8NhLWo4DoQw1VYZTqZDdH6nfK0LJYBcNd
+frGoRpAxVs5wKpayMLh35nnAvSk7/ZR3TL0gzUEl4C7HG7vupARB0l2tEmqKm0f7yd1GQOGdPDPQ
+tQIDAQABo3cwdTAPBgNVHRMBAf8EBTADAQH/MAsGA1UdDwQEAwIBRjAVBgNVHSAEDjAMMAoGCCqB
+egF5AQEBMB0GA1UdDgQWBBSjBS8YYFDCiQrdKyFP/45OqDAxNjAfBgNVHSMEGDAWgBSjBS8YYFDC
+iQrdKyFP/45OqDAxNjANBgkqhkiG9w0BAQUFAAOCAQEABdwm2Pp3FURo/C9mOnTgXeQp/wYHE4RK
+q89toB9RlPhJy3Q2FLwV3duJL92PoF189RLrn544pEfMs5bZvpwlqwN+Mw+VgQ39FuCIvjfwbF3Q
+MZsyK10XZZOYYLxuj7GoPB7ZHPOpJkL5ZB3C55L29B5aqhlSXa/oovdgoPaN8In1buAKBQGVyYsg
+Crpa/JosPL3Dt8ldeCUFP1YUmwza+zpI/pdpXsoQhvdOlgQITeywvl3cO45Pwf2aNjSaTFR+FwNI
+lQgRHAdvhQh+XU3Endv7rs6y0bO4g2wdsrN58dhwmX7wEwLOXt1R0982gaEbeC9xs/FZTEYYKKuF
+0mBWWg==
+-----END CERTIFICATE-----
+
+Security Communication EV RootCA1
+=================================
+-----BEGIN CERTIFICATE-----
+MIIDfTCCAmWgAwIBAgIBADANBgkqhkiG9w0BAQUFADBgMQswCQYDVQQGEwJKUDElMCMGA1UEChMc
+U0VDT00gVHJ1c3QgU3lzdGVtcyBDTy4sTFRELjEqMCgGA1UECxMhU2VjdXJpdHkgQ29tbXVuaWNh
+dGlvbiBFViBSb290Q0ExMB4XDTA3MDYwNjAyMTIzMloXDTM3MDYwNjAyMTIzMlowYDELMAkGA1UE
+BhMCSlAxJTAjBgNVBAoTHFNFQ09NIFRydXN0IFN5c3RlbXMgQ08uLExURC4xKjAoBgNVBAsTIVNl
+Y3VyaXR5IENvbW11bmljYXRpb24gRVYgUm9vdENBMTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCC
+AQoCggEBALx/7FebJOD+nLpCeamIivqA4PUHKUPqjgo0No0c+qe1OXj/l3X3L+SqawSERMqm4miO
+/VVQYg+kcQ7OBzgtQoVQrTyWb4vVog7P3kmJPdZkLjjlHmy1V4qe70gOzXppFodEtZDkBp2uoQSX
+WHnvIEqCa4wiv+wfD+mEce3xDuS4GBPMVjZd0ZoeUWs5bmB2iDQL87PRsJ3KYeJkHcFGB7hj3R4z
+ZbOOCVVSPbW9/wfrrWFVGCypaZhKqkDFMxRldAD5kd6vA0jFQFTcD4SQaCDFkpbcLuUCRarAX1T4
+bepJz11sS6/vmsJWXMY1VkJqMF/Cq/biPT+zyRGPMUzXn0kCAwEAAaNCMEAwHQYDVR0OBBYEFDVK
+9U2vP9eCOKyrcWUXdYydVZPmMA4GA1UdDwEB/wQEAwIBBjAPBgNVHRMBAf8EBTADAQH/MA0GCSqG
+SIb3DQEBBQUAA4IBAQCoh+ns+EBnXcPBZsdAS5f8hxOQWsTvoMpfi7ent/HWtWS3irO4G8za+6xm
+iEHO6Pzk2x6Ipu0nUBsCMCRGef4Eh3CXQHPRwMFXGZpppSeZq51ihPZRwSzJIxXYKLerJRO1RuGG
+Av8mjMSIkh1W/hln8lXkgKNrnKt34VFxDSDbEJrbvXZ5B3eZKK2aXtqxT0QsNY6llsf9g/BYxnnW
+mHyojf6GPgcWkuF75x3sM3Z+Qi5KhfmRiWiEA4Glm5q+4zfFVKtWOxgtQaQM+ELbmaDgcm+7XeEW
+T1MKZPlO9L9OVL14bIjqv5wTJMJwaaJ/D8g8rQjJsJhAoyrniIPtd490
+-----END CERTIFICATE-----
+
+OISTE WISeKey Global Root GA CA
+===============================
+-----BEGIN CERTIFICATE-----
+MIID8TCCAtmgAwIBAgIQQT1yx/RrH4FDffHSKFTfmjANBgkqhkiG9w0BAQUFADCBijELMAkGA1UE
+BhMCQ0gxEDAOBgNVBAoTB1dJU2VLZXkxGzAZBgNVBAsTEkNvcHlyaWdodCAoYykgMjAwNTEiMCAG
+A1UECxMZT0lTVEUgRm91bmRhdGlvbiBFbmRvcnNlZDEoMCYGA1UEAxMfT0lTVEUgV0lTZUtleSBH
+bG9iYWwgUm9vdCBHQSBDQTAeFw0wNTEyMTExNjAzNDRaFw0zNzEyMTExNjA5NTFaMIGKMQswCQYD
+VQQGEwJDSDEQMA4GA1UEChMHV0lTZUtleTEbMBkGA1UECxMSQ29weXJpZ2h0IChjKSAyMDA1MSIw
+IAYDVQQLExlPSVNURSBGb3VuZGF0aW9uIEVuZG9yc2VkMSgwJgYDVQQDEx9PSVNURSBXSVNlS2V5
+IEdsb2JhbCBSb290IEdBIENBMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAy0+zAJs9
+Nt350UlqaxBJH+zYK7LG+DKBKUOVTJoZIyEVRd7jyBxRVVuuk+g3/ytr6dTqvirdqFEr12bDYVxg
+Asj1znJ7O7jyTmUIms2kahnBAbtzptf2w93NvKSLtZlhuAGio9RN1AU9ka34tAhxZK9w8RxrfvbD
+d50kc3vkDIzh2TbhmYsFmQvtRTEJysIA2/dyoJaqlYfQjse2YXMNdmaM3Bu0Y6Kff5MTMPGhJ9vZ
+/yxViJGg4E8HsChWjBgbl0SOid3gF27nKu+POQoxhILYQBRJLnpB5Kf+42TMwVlxSywhp1t94B3R
+LoGbw9ho972WG6xwsRYUC9tguSYBBQIDAQABo1EwTzALBgNVHQ8EBAMCAYYwDwYDVR0TAQH/BAUw
+AwEB/zAdBgNVHQ4EFgQUswN+rja8sHnR3JQmthG+IbJphpQwEAYJKwYBBAGCNxUBBAMCAQAwDQYJ
+KoZIhvcNAQEFBQADggEBAEuh/wuHbrP5wUOxSPMowB0uyQlB+pQAHKSkq0lPjz0e701vvbyk9vIm
+MMkQyh2I+3QZH4VFvbBsUfk2ftv1TDI6QU9bR8/oCy22xBmddMVHxjtqD6wU2zz0c5ypBd8A3HR4
++vg1YFkCExh8vPtNsCBtQ7tgMHpnM1zFmdH4LTlSc/uMqpclXHLZCB6rTjzjgTGfA6b7wP4piFXa
+hNVQA7bihKOmNqoROgHhGEvWRGizPflTdISzRpFGlgC3gCy24eMQ4tui5yiPAZZiFj4A4xylNoEY
+okxSdsARo27mHbrjWr42U8U+dY+GaSlYU7Wcu2+fXMUY7N0v4ZjJ/L7fCg0=
+-----END CERTIFICATE-----
+
+Microsec e-Szigno Root CA
+=========================
+-----BEGIN CERTIFICATE-----
+MIIHqDCCBpCgAwIBAgIRAMy4579OKRr9otxmpRwsDxEwDQYJKoZIhvcNAQEFBQAwcjELMAkGA1UE
+BhMCSFUxETAPBgNVBAcTCEJ1ZGFwZXN0MRYwFAYDVQQKEw1NaWNyb3NlYyBMdGQuMRQwEgYDVQQL
+EwtlLVN6aWdubyBDQTEiMCAGA1UEAxMZTWljcm9zZWMgZS1Temlnbm8gUm9vdCBDQTAeFw0wNTA0
+MDYxMjI4NDRaFw0xNzA0MDYxMjI4NDRaMHIxCzAJBgNVBAYTAkhVMREwDwYDVQQHEwhCdWRhcGVz
+dDEWMBQGA1UEChMNTWljcm9zZWMgTHRkLjEUMBIGA1UECxMLZS1Temlnbm8gQ0ExIjAgBgNVBAMT
+GU1pY3Jvc2VjIGUtU3ppZ25vIFJvb3QgQ0EwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIB
+AQDtyADVgXvNOABHzNuEwSFpLHSQDCHZU4ftPkNEU6+r+ICbPHiN1I2uuO/TEdyB5s87lozWbxXG
+d36hL+BfkrYn13aaHUM86tnsL+4582pnS4uCzyL4ZVX+LMsvfUh6PXX5qqAnu3jCBspRwn5mS6/N
+oqdNAoI/gqyFxuEPkEeZlApxcpMqyabAvjxWTHOSJ/FrtfX9/DAFYJLG65Z+AZHCabEeHXtTRbjc
+QR/Ji3HWVBTji1R4P770Yjtb9aPs1ZJ04nQw7wHb4dSrmZsqa/i9phyGI0Jf7Enemotb9HI6QMVJ
+PqW+jqpx62z69Rrkav17fVVA71hu5tnVvCSrwe+3AgMBAAGjggQ3MIIEMzBnBggrBgEFBQcBAQRb
+MFkwKAYIKwYBBQUHMAGGHGh0dHBzOi8vcmNhLmUtc3ppZ25vLmh1L29jc3AwLQYIKwYBBQUHMAKG
+IWh0dHA6Ly93d3cuZS1zemlnbm8uaHUvUm9vdENBLmNydDAPBgNVHRMBAf8EBTADAQH/MIIBcwYD
+VR0gBIIBajCCAWYwggFiBgwrBgEEAYGoGAIBAQEwggFQMCgGCCsGAQUFBwIBFhxodHRwOi8vd3d3
+LmUtc3ppZ25vLmh1L1NaU1ovMIIBIgYIKwYBBQUHAgIwggEUHoIBEABBACAAdABhAG4A+gBzAO0A
+dAB2AOEAbgB5ACAA6QByAHQAZQBsAG0AZQB6AOkAcwDpAGgAZQB6ACAA6QBzACAAZQBsAGYAbwBn
+AGEAZADhAHMA4QBoAG8AegAgAGEAIABTAHoAbwBsAGcA4QBsAHQAYQB0APMAIABTAHoAbwBsAGcA
+4QBsAHQAYQB0AOEAcwBpACAAUwB6AGEAYgDhAGwAeQB6AGEAdABhACAAcwB6AGUAcgBpAG4AdAAg
+AGsAZQBsAGwAIABlAGwAagDhAHIAbgBpADoAIABoAHQAdABwADoALwAvAHcAdwB3AC4AZQAtAHMA
+egBpAGcAbgBvAC4AaAB1AC8AUwBaAFMAWgAvMIHIBgNVHR8EgcAwgb0wgbqggbeggbSGIWh0dHA6
+Ly93d3cuZS1zemlnbm8uaHUvUm9vdENBLmNybIaBjmxkYXA6Ly9sZGFwLmUtc3ppZ25vLmh1L0NO
+PU1pY3Jvc2VjJTIwZS1Temlnbm8lMjBSb290JTIwQ0EsT1U9ZS1Temlnbm8lMjBDQSxPPU1pY3Jv
+c2VjJTIwTHRkLixMPUJ1ZGFwZXN0LEM9SFU/Y2VydGlmaWNhdGVSZXZvY2F0aW9uTGlzdDtiaW5h
+cnkwDgYDVR0PAQH/BAQDAgEGMIGWBgNVHREEgY4wgYuBEGluZm9AZS1zemlnbm8uaHWkdzB1MSMw
+IQYDVQQDDBpNaWNyb3NlYyBlLVN6aWduw7MgUm9vdCBDQTEWMBQGA1UECwwNZS1TemlnbsOzIEhT
+WjEWMBQGA1UEChMNTWljcm9zZWMgS2Z0LjERMA8GA1UEBxMIQnVkYXBlc3QxCzAJBgNVBAYTAkhV
+MIGsBgNVHSMEgaQwgaGAFMegSXUWYYTbMUuE0vE3QJDvTtz3oXakdDByMQswCQYDVQQGEwJIVTER
+MA8GA1UEBxMIQnVkYXBlc3QxFjAUBgNVBAoTDU1pY3Jvc2VjIEx0ZC4xFDASBgNVBAsTC2UtU3pp
+Z25vIENBMSIwIAYDVQQDExlNaWNyb3NlYyBlLVN6aWdubyBSb290IENBghEAzLjnv04pGv2i3Gal
+HCwPETAdBgNVHQ4EFgQUx6BJdRZhhNsxS4TS8TdAkO9O3PcwDQYJKoZIhvcNAQEFBQADggEBANMT
+nGZjWS7KXHAM/IO8VbH0jgdsZifOwTsgqRy7RlRw7lrMoHfqaEQn6/Ip3Xep1fvj1KcExJW4C+FE
+aGAHQzAxQmHl7tnlJNUb3+FKG6qfx1/4ehHqE5MAyopYse7tDk2016g2JnzgOsHVV4Lxdbb9iV/a
+86g4nzUGCM4ilb7N1fy+W955a9x6qWVmvrElWl/tftOsRm1M9DKHtCAE4Gx4sHfRhUZLphK3dehK
+yVZs15KrnfVJONJPU+NVkBHbmJbGSfI+9J8b4PeI3CVimUTYc78/MPMMNz7UwiiAc7EBt51alhQB
+S6kRnSlqLtBdgcDPsiBDxwPgN05dCtxZICU=
+-----END CERTIFICATE-----
+
+Certigna
+========
+-----BEGIN CERTIFICATE-----
+MIIDqDCCApCgAwIBAgIJAP7c4wEPyUj/MA0GCSqGSIb3DQEBBQUAMDQxCzAJBgNVBAYTAkZSMRIw
+EAYDVQQKDAlEaGlteW90aXMxETAPBgNVBAMMCENlcnRpZ25hMB4XDTA3MDYyOTE1MTMwNVoXDTI3
+MDYyOTE1MTMwNVowNDELMAkGA1UEBhMCRlIxEjAQBgNVBAoMCURoaW15b3RpczERMA8GA1UEAwwI
+Q2VydGlnbmEwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDIaPHJ1tazNHUmgh7stL7q
+XOEm7RFHYeGifBZ4QCHkYJ5ayGPhxLGWkv8YbWkj4Sti993iNi+RB7lIzw7sebYs5zRLcAglozyH
+GxnygQcPOJAZ0xH+hrTy0V4eHpbNgGzOOzGTtvKg0KmVEn2lmsxryIRWijOp5yIVUxbwzBfsV1/p
+ogqYCd7jX5xv3EjjhQsVWqa6n6xI4wmy9/Qy3l40vhx4XUJbzg4ij02Q130yGLMLLGq/jj8UEYkg
+DncUtT2UCIf3JR7VsmAA7G8qKCVuKj4YYxclPz5EIBb2JsglrgVKtOdjLPOMFlN+XPsRGgjBRmKf
+Irjxwo1p3Po6WAbfAgMBAAGjgbwwgbkwDwYDVR0TAQH/BAUwAwEB/zAdBgNVHQ4EFgQUGu3+QTmQ
+tCRZvgHyUtVF9lo53BEwZAYDVR0jBF0wW4AUGu3+QTmQtCRZvgHyUtVF9lo53BGhOKQ2MDQxCzAJ
+BgNVBAYTAkZSMRIwEAYDVQQKDAlEaGlteW90aXMxETAPBgNVBAMMCENlcnRpZ25hggkA/tzjAQ/J
+SP8wDgYDVR0PAQH/BAQDAgEGMBEGCWCGSAGG+EIBAQQEAwIABzANBgkqhkiG9w0BAQUFAAOCAQEA
+hQMeknH2Qq/ho2Ge6/PAD/Kl1NqV5ta+aDY9fm4fTIrv0Q8hbV6lUmPOEvjvKtpv6zf+EwLHyzs+
+ImvaYS5/1HI93TDhHkxAGYwP15zRgzB7mFncfca5DClMoTOi62c6ZYTTluLtdkVwj7Ur3vkj1klu
+PBS1xp81HlDQwY9qcEQCYsuuHWhBp6pX6FOqB9IG9tUUBguRA3UsbHK1YZWaDYu5Def131TN3ubY
+1gkIl2PlwS6wt0QmwCbAr1UwnjvVNioZBPRcHv/PLLf/0P2HQBHVESO7SMAhqaQoLf0V+LBOK/Qw
+WyH8EZE0vkHve52Xdf+XlcCWWC/qu0bXu+TZLg==
+-----END CERTIFICATE-----
+
+AC Ra\xC3\xADz Certic\xC3\xA1mara S.A.
+======================================
+-----BEGIN CERTIFICATE-----
+MIIGZjCCBE6gAwIBAgIPB35Sk3vgFeNX8GmMy+wMMA0GCSqGSIb3DQEBBQUAMHsxCzAJBgNVBAYT
+AkNPMUcwRQYDVQQKDD5Tb2NpZWRhZCBDYW1lcmFsIGRlIENlcnRpZmljYWNpw7NuIERpZ2l0YWwg
+LSBDZXJ0aWPDoW1hcmEgUy5BLjEjMCEGA1UEAwwaQUMgUmHDrXogQ2VydGljw6FtYXJhIFMuQS4w
+HhcNMDYxMTI3MjA0NjI5WhcNMzAwNDAyMjE0MjAyWjB7MQswCQYDVQQGEwJDTzFHMEUGA1UECgw+
+U29jaWVkYWQgQ2FtZXJhbCBkZSBDZXJ0aWZpY2FjacOzbiBEaWdpdGFsIC0gQ2VydGljw6FtYXJh
+IFMuQS4xIzAhBgNVBAMMGkFDIFJhw616IENlcnRpY8OhbWFyYSBTLkEuMIICIjANBgkqhkiG9w0B
+AQEFAAOCAg8AMIICCgKCAgEAq2uJo1PMSCMI+8PPUZYILrgIem08kBeGqentLhM0R7LQcNzJPNCN
+yu5LF6vQhbCnIwTLqKL85XXbQMpiiY9QngE9JlsYhBzLfDe3fezTf3MZsGqy2IiKLUV0qPezuMDU
+2s0iiXRNWhU5cxh0T7XrmafBHoi0wpOQY5fzp6cSsgkiBzPZkc0OnB8OIMfuuzONj8LSWKdf/WU3
+4ojC2I+GdV75LaeHM/J4Ny+LvB2GNzmxlPLYvEqcgxhaBvzz1NS6jBUJJfD5to0EfhcSM2tXSExP
+2yYe68yQ54v5aHxwD6Mq0Do43zeX4lvegGHTgNiRg0JaTASJaBE8rF9ogEHMYELODVoqDA+bMMCm
+8Ibbq0nXl21Ii/kDwFJnmxL3wvIumGVC2daa49AZMQyth9VXAnow6IYm+48jilSH5L887uvDdUhf
+HjlvgWJsxS3EF1QZtzeNnDeRyPYL1epjb4OsOMLzP96a++EjYfDIJss2yKHzMI+ko6Kh3VOz3vCa
+Mh+DkXkwwakfU5tTohVTP92dsxA7SH2JD/ztA/X7JWR1DhcZDY8AFmd5ekD8LVkH2ZD6mq093ICK
+5lw1omdMEWux+IBkAC1vImHFrEsm5VoQgpukg3s0956JkSCXjrdCx2bD0Omk1vUgjcTDlaxECp1b
+czwmPS9KvqfJpxAe+59QafMCAwEAAaOB5jCB4zAPBgNVHRMBAf8EBTADAQH/MA4GA1UdDwEB/wQE
+AwIBBjAdBgNVHQ4EFgQU0QnQ6dfOeXRU+Tows/RtLAMDG2gwgaAGA1UdIASBmDCBlTCBkgYEVR0g
+ADCBiTArBggrBgEFBQcCARYfaHR0cDovL3d3dy5jZXJ0aWNhbWFyYS5jb20vZHBjLzBaBggrBgEF
+BQcCAjBOGkxMaW1pdGFjaW9uZXMgZGUgZ2FyYW507WFzIGRlIGVzdGUgY2VydGlmaWNhZG8gc2Ug
+cHVlZGVuIGVuY29udHJhciBlbiBsYSBEUEMuMA0GCSqGSIb3DQEBBQUAA4ICAQBclLW4RZFNjmEf
+AygPU3zmpFmps4p6xbD/CHwso3EcIRNnoZUSQDWDg4902zNc8El2CoFS3UnUmjIz75uny3XlesuX
+EpBcunvFm9+7OSPI/5jOCk0iAUgHforA1SBClETvv3eiiWdIG0ADBaGJ7M9i4z0ldma/Jre7Ir5v
+/zlXdLp6yQGVwZVR6Kss+LGGIOk/yzVb0hfpKv6DExdA7ohiZVvVO2Dpezy4ydV/NgIlqmjCMRW3
+MGXrfx1IebHPOeJCgBbT9ZMj/EyXyVo3bHwi2ErN0o42gzmRkBDI8ck1fj+404HGIGQatlDCIaR4
+3NAvO2STdPCWkPHv+wlaNECW8DYSwaN0jJN+Qd53i+yG2dIPPy3RzECiiWZIHiCznCNZc6lEc7wk
+eZBWN7PGKX6jD/EpOe9+XCgycDWs2rjIdWb8m0w5R44bb5tNAlQiM+9hup4phO9OSzNHdpdqy35f
+/RWmnkJDW2ZaiogN9xa5P1FlK2Zqi9E4UqLWRhH6/JocdJ6PlwsCT2TG9WjTSy3/pDceiz+/RL5h
+RqGEPQgnTIEgd4kI6mdAXmwIUV80WoyWaM3X94nCHNMyAK9Sy9NgWyo6R35rMDOhYil/SrnhLecU
+Iw4OGEfhefwVVdCx/CVxY3UzHCMrr1zZ7Ud3YA47Dx7SwNxkBYn8eNZcLCZDqQ==
+-----END CERTIFICATE-----
+
+TC TrustCenter Class 2 CA II
+============================
+-----BEGIN CERTIFICATE-----
+MIIEqjCCA5KgAwIBAgIOLmoAAQACH9dSISwRXDswDQYJKoZIhvcNAQEFBQAwdjELMAkGA1UEBhMC
+REUxHDAaBgNVBAoTE1RDIFRydXN0Q2VudGVyIEdtYkgxIjAgBgNVBAsTGVRDIFRydXN0Q2VudGVy
+IENsYXNzIDIgQ0ExJTAjBgNVBAMTHFRDIFRydXN0Q2VudGVyIENsYXNzIDIgQ0EgSUkwHhcNMDYw
+MTEyMTQzODQzWhcNMjUxMjMxMjI1OTU5WjB2MQswCQYDVQQGEwJERTEcMBoGA1UEChMTVEMgVHJ1
+c3RDZW50ZXIgR21iSDEiMCAGA1UECxMZVEMgVHJ1c3RDZW50ZXIgQ2xhc3MgMiBDQTElMCMGA1UE
+AxMcVEMgVHJ1c3RDZW50ZXIgQ2xhc3MgMiBDQSBJSTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCC
+AQoCggEBAKuAh5uO8MN8h9foJIIRszzdQ2Lu+MNF2ujhoF/RKrLqk2jftMjWQ+nEdVl//OEd+DFw
+IxuInie5e/060smp6RQvkL4DUsFJzfb95AhmC1eKokKguNV/aVyQMrKXDcpK3EY+AlWJU+MaWss2
+xgdW94zPEfRMuzBwBJWl9jmM/XOBCH2JXjIeIqkiRUuwZi4wzJ9l/fzLganx4Duvo4bRierERXlQ
+Xa7pIXSSTYtZgo+U4+lK8edJsBTj9WLL1XK9H7nSn6DNqPoByNkN39r8R52zyFTfSUrxIan+GE7u
+SNQZu+995OKdy1u2bv/jzVrndIIFuoAlOMvkaZ6vQaoahPUCAwEAAaOCATQwggEwMA8GA1UdEwEB
+/wQFMAMBAf8wDgYDVR0PAQH/BAQDAgEGMB0GA1UdDgQWBBTjq1RMgKHbVkO3kUrL84J6E1wIqzCB
+7QYDVR0fBIHlMIHiMIHfoIHcoIHZhjVodHRwOi8vd3d3LnRydXN0Y2VudGVyLmRlL2NybC92Mi90
+Y19jbGFzc18yX2NhX0lJLmNybIaBn2xkYXA6Ly93d3cudHJ1c3RjZW50ZXIuZGUvQ049VEMlMjBU
+cnVzdENlbnRlciUyMENsYXNzJTIwMiUyMENBJTIwSUksTz1UQyUyMFRydXN0Q2VudGVyJTIwR21i
+SCxPVT1yb290Y2VydHMsREM9dHJ1c3RjZW50ZXIsREM9ZGU/Y2VydGlmaWNhdGVSZXZvY2F0aW9u
+TGlzdD9iYXNlPzANBgkqhkiG9w0BAQUFAAOCAQEAjNfffu4bgBCzg/XbEeprS6iSGNn3Bzn1LL4G
+dXpoUxUc6krtXvwjshOg0wn/9vYua0Fxec3ibf2uWWuFHbhOIprtZjluS5TmVfwLG4t3wVMTZonZ
+KNaL80VKY7f9ewthXbhtvsPcW3nS7Yblok2+XnR8au0WOB9/WIFaGusyiC2y8zl3gK9etmF1Kdsj
+TYjKUCjLhdLTEKJZbtOTVAB6okaVhgWcqRmY5TFyDADiZ9lA4CQze28suVyrZZ0srHbqNZn1l7kP
+JOzHdiEoZa5X6AeIdUpWoNIFOqTmjZKILPPy4cHGYdtBxceb9w4aUUXCYWvcZCcXjFq32nQozZfk
+vQ==
+-----END CERTIFICATE-----
+
+TC TrustCenter Class 3 CA II
+============================
+-----BEGIN CERTIFICATE-----
+MIIEqjCCA5KgAwIBAgIOSkcAAQAC5aBd1j8AUb8wDQYJKoZIhvcNAQEFBQAwdjELMAkGA1UEBhMC
+REUxHDAaBgNVBAoTE1RDIFRydXN0Q2VudGVyIEdtYkgxIjAgBgNVBAsTGVRDIFRydXN0Q2VudGVy
+IENsYXNzIDMgQ0ExJTAjBgNVBAMTHFRDIFRydXN0Q2VudGVyIENsYXNzIDMgQ0EgSUkwHhcNMDYw
+MTEyMTQ0MTU3WhcNMjUxMjMxMjI1OTU5WjB2MQswCQYDVQQGEwJERTEcMBoGA1UEChMTVEMgVHJ1
+c3RDZW50ZXIgR21iSDEiMCAGA1UECxMZVEMgVHJ1c3RDZW50ZXIgQ2xhc3MgMyBDQTElMCMGA1UE
+AxMcVEMgVHJ1c3RDZW50ZXIgQ2xhc3MgMyBDQSBJSTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCC
+AQoCggEBALTgu1G7OVyLBMVMeRwjhjEQY0NVJz/GRcekPewJDRoeIMJWHt4bNwcwIi9v8Qbxq63W
+yKthoy9DxLCyLfzDlml7forkzMA5EpBCYMnMNWju2l+QVl/NHE1bWEnrDgFPZPosPIlY2C8u4rBo
+6SI7dYnWRBpl8huXJh0obazovVkdKyT21oQDZogkAHhg8fir/gKya/si+zXmFtGt9i4S5Po1auUZ
+uV3bOx4a+9P/FRQI2AlqukWdFHlgfa9Aigdzs5OW03Q0jTo3Kd5c7PXuLjHCINy+8U9/I1LZW+Jk
+2ZyqBwi1Rb3R0DHBq1SfqdLDYmAD8bs5SpJKPQq5ncWg/jcCAwEAAaOCATQwggEwMA8GA1UdEwEB
+/wQFMAMBAf8wDgYDVR0PAQH/BAQDAgEGMB0GA1UdDgQWBBTUovyfs8PYA9NXXAek0CSnwPIA1DCB
+7QYDVR0fBIHlMIHiMIHfoIHcoIHZhjVodHRwOi8vd3d3LnRydXN0Y2VudGVyLmRlL2NybC92Mi90
+Y19jbGFzc18zX2NhX0lJLmNybIaBn2xkYXA6Ly93d3cudHJ1c3RjZW50ZXIuZGUvQ049VEMlMjBU
+cnVzdENlbnRlciUyMENsYXNzJTIwMyUyMENBJTIwSUksTz1UQyUyMFRydXN0Q2VudGVyJTIwR21i
+SCxPVT1yb290Y2VydHMsREM9dHJ1c3RjZW50ZXIsREM9ZGU/Y2VydGlmaWNhdGVSZXZvY2F0aW9u
+TGlzdD9iYXNlPzANBgkqhkiG9w0BAQUFAAOCAQEANmDkcPcGIEPZIxpC8vijsrlNirTzwppVMXzE
+O2eatN9NDoqTSheLG43KieHPOh6sHfGcMrSOWXaiQYUlN6AT0PV8TtXqluJucsG7Kv5sbviRmEb8
+yRtXW+rIGjs/sFGYPAfaLFkB2otE6OF0/ado3VS6g0bsyEa1+K+XwDsJHI/OcpY9M1ZwvJbL2NV9
+IJqDnxrcOfHFcqMRA/07QlIp2+gB95tejNaNhk4Z+rwcvsUhpYeeeC422wlxo3I0+GzjBgnyXlal
+092Y+tTmBvTwtiBjS+opvaqCZh77gaqnN60TGOaSw4HBM7uIHqHn4rS9MWwOUT1v+5ZWgOI2F9Hc
+5A==
+-----END CERTIFICATE-----
+
+TC TrustCenter Universal CA I
+=============================
+-----BEGIN CERTIFICATE-----
+MIID3TCCAsWgAwIBAgIOHaIAAQAC7LdggHiNtgYwDQYJKoZIhvcNAQEFBQAweTELMAkGA1UEBhMC
+REUxHDAaBgNVBAoTE1RDIFRydXN0Q2VudGVyIEdtYkgxJDAiBgNVBAsTG1RDIFRydXN0Q2VudGVy
+IFVuaXZlcnNhbCBDQTEmMCQGA1UEAxMdVEMgVHJ1c3RDZW50ZXIgVW5pdmVyc2FsIENBIEkwHhcN
+MDYwMzIyMTU1NDI4WhcNMjUxMjMxMjI1OTU5WjB5MQswCQYDVQQGEwJERTEcMBoGA1UEChMTVEMg
+VHJ1c3RDZW50ZXIgR21iSDEkMCIGA1UECxMbVEMgVHJ1c3RDZW50ZXIgVW5pdmVyc2FsIENBMSYw
+JAYDVQQDEx1UQyBUcnVzdENlbnRlciBVbml2ZXJzYWwgQ0EgSTCCASIwDQYJKoZIhvcNAQEBBQAD
+ggEPADCCAQoCggEBAKR3I5ZEr5D0MacQ9CaHnPM42Q9e3s9B6DGtxnSRJJZ4Hgmgm5qVSkr1YnwC
+qMqs+1oEdjneX/H5s7/zA1hV0qq34wQi0fiU2iIIAI3TfCZdzHd55yx4Oagmcw6iXSVphU9VDprv
+xrlE4Vc93x9UIuVvZaozhDrzznq+VZeujRIPFDPiUHDDSYcTvFHe15gSWu86gzOSBnWLknwSaHtw
+ag+1m7Z3W0hZneTvWq3zwZ7U10VOylY0Ibw+F1tvdwxIAUMpsN0/lm7mlaoMwCC2/T42J5zjXM9O
+gdwZu5GQfezmlwQek8wiSdeXhrYTCjxDI3d+8NzmzSQfO4ObNDqDNOMCAwEAAaNjMGEwHwYDVR0j
+BBgwFoAUkqR1LKSevoFE63n8isWVpesQdXMwDwYDVR0TAQH/BAUwAwEB/zAOBgNVHQ8BAf8EBAMC
+AYYwHQYDVR0OBBYEFJKkdSyknr6BROt5/IrFlaXrEHVzMA0GCSqGSIb3DQEBBQUAA4IBAQAo0uCG
+1eb4e/CX3CJrO5UUVg8RMKWaTzqwOuAGy2X17caXJ/4l8lfmXpWMPmRgFVp/Lw0BxbFg/UU1z/Cy
+vwbZ71q+s2IhtNerNXxTPqYn8aEt2hojnczd7Dwtnic0XQ/CNnm8yUpiLe1r2X1BQ3y2qsrtYbE3
+ghUJGooWMNjsydZHcnhLEEYUjl8Or+zHL6sQ17bxbuyGssLoDZJz3KL0Dzq/YSMQiZxIQG5wALPT
+ujdEWBF6AmqI8Dc08BnprNRlc/ZpjGSUOnmFKbAWKwyCPwacx/0QK54PLLae4xW/2TYcuiUaUj0a
+7CIMHOCkoj3w6DnPgcB77V0fb8XQC9eY
+-----END CERTIFICATE-----
+
+Deutsche Telekom Root CA 2
+==========================
+-----BEGIN CERTIFICATE-----
+MIIDnzCCAoegAwIBAgIBJjANBgkqhkiG9w0BAQUFADBxMQswCQYDVQQGEwJERTEcMBoGA1UEChMT
+RGV1dHNjaGUgVGVsZWtvbSBBRzEfMB0GA1UECxMWVC1UZWxlU2VjIFRydXN0IENlbnRlcjEjMCEG
+A1UEAxMaRGV1dHNjaGUgVGVsZWtvbSBSb290IENBIDIwHhcNOTkwNzA5MTIxMTAwWhcNMTkwNzA5
+MjM1OTAwWjBxMQswCQYDVQQGEwJERTEcMBoGA1UEChMTRGV1dHNjaGUgVGVsZWtvbSBBRzEfMB0G
+A1UECxMWVC1UZWxlU2VjIFRydXN0IENlbnRlcjEjMCEGA1UEAxMaRGV1dHNjaGUgVGVsZWtvbSBS
+b290IENBIDIwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCrC6M14IspFLEUha88EOQ5
+bzVdSq7d6mGNlUn0b2SjGmBmpKlAIoTZ1KXleJMOaAGtuU1cOs7TuKhCQN/Po7qCWWqSG6wcmtoI
+KyUn+WkjR/Hg6yx6m/UTAtB+NHzCnjwAWav12gz1MjwrrFDa1sPeg5TKqAyZMg4ISFZbavva4VhY
+AUlfckE8FQYBjl2tqriTtM2e66foai1SNNs671x1Udrb8zH57nGYMsRUFUQM+ZtV7a3fGAigo4aK
+Se5TBY8ZTNXeWHmb0mocQqvF1afPaA+W5OFhmHZhyJF81j4A4pFQh+GdCuatl9Idxjp9y7zaAzTV
+jlsB9WoHtxa2bkp/AgMBAAGjQjBAMB0GA1UdDgQWBBQxw3kbuvVT1xfgiXotF2wKsyudMzAPBgNV
+HRMECDAGAQH/AgEFMA4GA1UdDwEB/wQEAwIBBjANBgkqhkiG9w0BAQUFAAOCAQEAlGRZrTlk5ynr
+E/5aw4sTV8gEJPB0d8Bg42f76Ymmg7+Wgnxu1MM9756AbrsptJh6sTtU6zkXR34ajgv8HzFZMQSy
+zhfzLMdiNlXiItiJVbSYSKpk+tYcNthEeFpaIzpXl/V6ME+un2pMSyuOoAPjPuCp1NJ70rOo4nI8
+rZ7/gFnkm0W09juwzTkZmDLl6iFhkOQxIY40sfcvNUqFENrnijchvllj4PKFiDFT1FQUhXB59C4G
+dyd1Lx+4ivn+xbrYNuSD7Odlt79jWvNGr4GUN9RBjNYj1h7P9WgbRGOiWrqnNVmh5XAFmw4jV5mU
+Cm26OWMohpLzGITY+9HPBVZkVw==
+-----END CERTIFICATE-----
+
+ComSign Secured CA
+==================
+-----BEGIN CERTIFICATE-----
+MIIDqzCCApOgAwIBAgIRAMcoRwmzuGxFjB36JPU2TukwDQYJKoZIhvcNAQEFBQAwPDEbMBkGA1UE
+AxMSQ29tU2lnbiBTZWN1cmVkIENBMRAwDgYDVQQKEwdDb21TaWduMQswCQYDVQQGEwJJTDAeFw0w
+NDAzMjQxMTM3MjBaFw0yOTAzMTYxNTA0NTZaMDwxGzAZBgNVBAMTEkNvbVNpZ24gU2VjdXJlZCBD
+QTEQMA4GA1UEChMHQ29tU2lnbjELMAkGA1UEBhMCSUwwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAw
+ggEKAoIBAQDGtWhfHZQVw6QIVS3joFd67+l0Kru5fFdJGhFeTymHDEjWaueP1H5XJLkGieQcPOqs
+49ohgHMhCu95mGwfCP+hUH3ymBvJVG8+pSjsIQQPRbsHPaHA+iqYHU4Gk/v1iDurX8sWv+bznkqH
+7Rnqwp9D5PGBpX8QTz7RSmKtUxvLg/8HZaWSLWapW7ha9B20IZFKF3ueMv5WJDmyVIRD9YTC2LxB
+kMyd1mja6YJQqTtoz7VdApRgFrFD2UNd3V2Hbuq7s8lr9gOUCXDeFhF6K+h2j0kQmHe5Y1yLM5d1
+9guMsqtb3nQgJT/j8xH5h2iGNXHDHYwt6+UarA9z1YJZQIDTAgMBAAGjgacwgaQwDAYDVR0TBAUw
+AwEB/zBEBgNVHR8EPTA7MDmgN6A1hjNodHRwOi8vZmVkaXIuY29tc2lnbi5jby5pbC9jcmwvQ29t
+U2lnblNlY3VyZWRDQS5jcmwwDgYDVR0PAQH/BAQDAgGGMB8GA1UdIwQYMBaAFMFL7XC29z58ADsA
+j8c+DkWfHl3sMB0GA1UdDgQWBBTBS+1wtvc+fAA7AI/HPg5Fnx5d7DANBgkqhkiG9w0BAQUFAAOC
+AQEAFs/ukhNQq3sUnjO2QiBq1BW9Cav8cujvR3qQrFHBZE7piL1DRYHjZiM/EoZNGeQFsOY3wo3a
+BijJD4mkU6l1P7CW+6tMM1X5eCZGbxs2mPtCdsGCuY7e+0X5YxtiOzkGynd6qDwJz2w2PQ8KRUtp
+FhpFfTMDZflScZAmlaxMDPWLkz/MdXSFmLr/YnpNH4n+rr2UAJm/EaXc4HnFFgt9AmEd6oX5AhVP
+51qJThRv4zdLhfXBPGHg/QVBspJ/wx2g0K5SZGBrGMYmnNj1ZOQ2GmKfig8+/21OGVZOIJFsnzQz
+OjRXUDpvgV4GxvU+fE6OK85lBi5d0ipTdF7Tbieejw==
+-----END CERTIFICATE-----
+
+Cybertrust Global Root
+======================
+-----BEGIN CERTIFICATE-----
+MIIDoTCCAomgAwIBAgILBAAAAAABD4WqLUgwDQYJKoZIhvcNAQEFBQAwOzEYMBYGA1UEChMPQ3li
+ZXJ0cnVzdCwgSW5jMR8wHQYDVQQDExZDeWJlcnRydXN0IEdsb2JhbCBSb290MB4XDTA2MTIxNTA4
+MDAwMFoXDTIxMTIxNTA4MDAwMFowOzEYMBYGA1UEChMPQ3liZXJ0cnVzdCwgSW5jMR8wHQYDVQQD
+ExZDeWJlcnRydXN0IEdsb2JhbCBSb290MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA
++Mi8vRRQZhP/8NN57CPytxrHjoXxEnOmGaoQ25yiZXRadz5RfVb23CO21O1fWLE3TdVJDm71aofW
+0ozSJ8bi/zafmGWgE07GKmSb1ZASzxQG9Dvj1Ci+6A74q05IlG2OlTEQXO2iLb3VOm2yHLtgwEZL
+AfVJrn5GitB0jaEMAs7u/OePuGtm839EAL9mJRQr3RAwHQeWP032a7iPt3sMpTjr3kfb1V05/Iin
+89cqdPHoWqI7n1C6poxFNcJQZZXcY4Lv3b93TZxiyWNzFtApD0mpSPCzqrdsxacwOUBdrsTiXSZT
+8M4cIwhhqJQZugRiQOwfOHB3EgZxpzAYXSUnpQIDAQABo4GlMIGiMA4GA1UdDwEB/wQEAwIBBjAP
+BgNVHRMBAf8EBTADAQH/MB0GA1UdDgQWBBS2CHsNesysIEyGVjJez6tuhS1wVzA/BgNVHR8EODA2
+MDSgMqAwhi5odHRwOi8vd3d3Mi5wdWJsaWMtdHJ1c3QuY29tL2NybC9jdC9jdHJvb3QuY3JsMB8G
+A1UdIwQYMBaAFLYIew16zKwgTIZWMl7Pq26FLXBXMA0GCSqGSIb3DQEBBQUAA4IBAQBW7wojoFRO
+lZfJ+InaRcHUowAl9B8Tq7ejhVhpwjCt2BWKLePJzYFa+HMjWqd8BfP9IjsO0QbE2zZMcwSO5bAi
+5MXzLqXZI+O4Tkogp24CJJ8iYGd7ix1yCcUxXOl5n4BHPa2hCwcUPUf/A2kaDAtE52Mlp3+yybh2
+hO0j9n0Hq0V+09+zv+mKts2oomcrUtW3ZfA5TGOgkXmTUg9U3YO7n9GPp1Nzw8v/MOx8BLjYRB+T
+X3EJIrduPuocA06dGiBh+4E37F78CkWr1+cXVdCg6mCbpvbjjFspwgZgFJ0tl0ypkxWdYcQBX0jW
+WL1WMRJOEcgh4LMRkWXbtKaIOM5V
+-----END CERTIFICATE-----
+
+ePKI Root Certification Authority
+=================================
+-----BEGIN CERTIFICATE-----
+MIIFsDCCA5igAwIBAgIQFci9ZUdcr7iXAF7kBtK8nTANBgkqhkiG9w0BAQUFADBeMQswCQYDVQQG
+EwJUVzEjMCEGA1UECgwaQ2h1bmdod2EgVGVsZWNvbSBDby4sIEx0ZC4xKjAoBgNVBAsMIWVQS0kg
+Um9vdCBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eTAeFw0wNDEyMjAwMjMxMjdaFw0zNDEyMjAwMjMx
+MjdaMF4xCzAJBgNVBAYTAlRXMSMwIQYDVQQKDBpDaHVuZ2h3YSBUZWxlY29tIENvLiwgTHRkLjEq
+MCgGA1UECwwhZVBLSSBSb290IENlcnRpZmljYXRpb24gQXV0aG9yaXR5MIICIjANBgkqhkiG9w0B
+AQEFAAOCAg8AMIICCgKCAgEA4SUP7o3biDN1Z82tH306Tm2d0y8U82N0ywEhajfqhFAHSyZbCUNs
+IZ5qyNUD9WBpj8zwIuQf5/dqIjG3LBXy4P4AakP/h2XGtRrBp0xtInAhijHyl3SJCRImHJ7K2RKi
+lTza6We/CKBk49ZCt0Xvl/T29de1ShUCWH2YWEtgvM3XDZoTM1PRYfl61dd4s5oz9wCGzh1NlDiv
+qOx4UXCKXBCDUSH3ET00hl7lSM2XgYI1TBnsZfZrxQWh7kcT1rMhJ5QQCtkkO7q+RBNGMD+XPNjX
+12ruOzjjK9SXDrkb5wdJfzcq+Xd4z1TtW0ado4AOkUPB1ltfFLqfpo0kR0BZv3I4sjZsN/+Z0V0O
+WQqraffAsgRFelQArr5T9rXn4fg8ozHSqf4hUmTFpmfwdQcGlBSBVcYn5AGPF8Fqcde+S/uUWH1+
+ETOxQvdibBjWzwloPn9s9h6PYq2lY9sJpx8iQkEeb5mKPtf5P0B6ebClAZLSnT0IFaUQAS2zMnao
+lQ2zepr7BxB4EW/hj8e6DyUadCrlHJhBmd8hh+iVBmoKs2pHdmX2Os+PYhcZewoozRrSgx4hxyy/
+vv9haLdnG7t4TY3OZ+XkwY63I2binZB1NJipNiuKmpS5nezMirH4JYlcWrYvjB9teSSnUmjDhDXi
+Zo1jDiVN1Rmy5nk3pyKdVDECAwEAAaNqMGgwHQYDVR0OBBYEFB4M97Zn8uGSJglFwFU5Lnc/Qkqi
+MAwGA1UdEwQFMAMBAf8wOQYEZyoHAAQxMC8wLQIBADAJBgUrDgMCGgUAMAcGBWcqAwAABBRFsMLH
+ClZ87lt4DJX5GFPBphzYEDANBgkqhkiG9w0BAQUFAAOCAgEACbODU1kBPpVJufGBuvl2ICO1J2B0
+1GqZNF5sAFPZn/KmsSQHRGoqxqWOeBLoR9lYGxMqXnmbnwoqZ6YlPwZpVnPDimZI+ymBV3QGypzq
+KOg4ZyYr8dW1P2WT+DZdjo2NQCCHGervJ8A9tDkPJXtoUHRVnAxZfVo9QZQlUgjgRywVMRnVvwdV
+xrsStZf0X4OFunHB2WyBEXYKCrC/gpf36j36+uwtqSiUO1bd0lEursC9CBWMd1I0ltabrNMdjmEP
+NXubrjlpC2JgQCA2j6/7Nu4tCEoduL+bXPjqpRugc6bY+G7gMwRfaKonh+3ZwZCc7b3jajWvY9+r
+GNm65ulK6lCKD2GTHuItGeIwlDWSXQ62B68ZgI9HkFFLLk3dheLSClIKF5r8GrBQAuUBo2M3IUxE
+xJtRmREOc5wGj1QupyheRDmHVi03vYVElOEMSyycw5KFNGHLD7ibSkNS/jQ6fbjpKdx2qcgw+BRx
+gMYeNkh0IkFch4LoGHGLQYlE535YW6i4jRPpp2zDR+2zGp1iro2C6pSe3VkQw63d4k3jMdXH7Ojy
+sP6SHhYKGvzZ8/gntsm+HbRsZJB/9OTEW9c3rkIO3aQab3yIVMUWbuF6aC74Or8NpDyJO3inTmOD
+BCEIZ43ygknQW/2xzQ+DhNQ+IIX3Sj0rnP0qCglN6oH4EZw=
+-----END CERTIFICATE-----
+
+T\xc3\x9c\x42\xC4\xB0TAK UEKAE K\xC3\xB6k Sertifika Hizmet Sa\xC4\x9Flay\xc4\xb1\x63\xc4\xb1s\xc4\xb1 - S\xC3\xBCr\xC3\xBCm 3
+=============================================================================================================================
+-----BEGIN CERTIFICATE-----
+MIIFFzCCA/+gAwIBAgIBETANBgkqhkiG9w0BAQUFADCCASsxCzAJBgNVBAYTAlRSMRgwFgYDVQQH
+DA9HZWJ6ZSAtIEtvY2FlbGkxRzBFBgNVBAoMPlTDvHJraXllIEJpbGltc2VsIHZlIFRla25vbG9q
+aWsgQXJhxZ90xLFybWEgS3VydW11IC0gVMOcQsSwVEFLMUgwRgYDVQQLDD9VbHVzYWwgRWxla3Ry
+b25payB2ZSBLcmlwdG9sb2ppIEFyYcWfdMSxcm1hIEVuc3RpdMO8c8O8IC0gVUVLQUUxIzAhBgNV
+BAsMGkthbXUgU2VydGlmaWthc3lvbiBNZXJrZXppMUowSAYDVQQDDEFUw5xCxLBUQUsgVUVLQUUg
+S8O2ayBTZXJ0aWZpa2EgSGl6bWV0IFNhxJ9sYXnEsWPEsXPEsSAtIFPDvHLDvG0gMzAeFw0wNzA4
+MjQxMTM3MDdaFw0xNzA4MjExMTM3MDdaMIIBKzELMAkGA1UEBhMCVFIxGDAWBgNVBAcMD0dlYnpl
+IC0gS29jYWVsaTFHMEUGA1UECgw+VMO8cmtpeWUgQmlsaW1zZWwgdmUgVGVrbm9sb2ppayBBcmHF
+n3TEsXJtYSBLdXJ1bXUgLSBUw5xCxLBUQUsxSDBGBgNVBAsMP1VsdXNhbCBFbGVrdHJvbmlrIHZl
+IEtyaXB0b2xvamkgQXJhxZ90xLFybWEgRW5zdGl0w7xzw7wgLSBVRUtBRTEjMCEGA1UECwwaS2Ft
+dSBTZXJ0aWZpa2FzeW9uIE1lcmtlemkxSjBIBgNVBAMMQVTDnELEsFRBSyBVRUtBRSBLw7ZrIFNl
+cnRpZmlrYSBIaXptZXQgU2HEn2xhecSxY8Sxc8SxIC0gU8O8csO8bSAzMIIBIjANBgkqhkiG9w0B
+AQEFAAOCAQ8AMIIBCgKCAQEAim1L/xCIOsP2fpTo6iBkcK4hgb46ezzb8R1Sf1n68yJMlaCQvEhO
+Eav7t7WNeoMojCZG2E6VQIdhn8WebYGHV2yKO7Rm6sxA/OOqbLLLAdsyv9Lrhc+hDVXDWzhXcLh1
+xnnRFDDtG1hba+818qEhTsXOfJlfbLm4IpNQp81McGq+agV/E5wrHur+R84EpW+sky58K5+eeROR
+6Oqeyjh1jmKwlZMq5d/pXpduIF9fhHpEORlAHLpVK/swsoHvhOPc7Jg4OQOFCKlUAwUp8MmPi+oL
+hmUZEdPpCSPeaJMDyTYcIW7OjGbxmTDY17PDHfiBLqi9ggtm/oLL4eAagsNAgQIDAQABo0IwQDAd
+BgNVHQ4EFgQUvYiHyY/2pAoLquvF/pEjnatKijIwDgYDVR0PAQH/BAQDAgEGMA8GA1UdEwEB/wQF
+MAMBAf8wDQYJKoZIhvcNAQEFBQADggEBAB18+kmPNOm3JpIWmgV050vQbTlswyb2zrgxvMTfvCr4
+N5EY3ATIZJkrGG2AA1nJrvhY0D7twyOfaTyGOBye79oneNGEN3GKPEs5z35FBtYt2IpNeBLWrcLT
+y9LQQfMmNkqblWwM7uXRQydmwYj3erMgbOqwaSvHIOgMA8RBBZniP+Rr+KCGgceExh/VS4ESshYh
+LBOhgLJeDEoTniDYYkCrkOpkSi+sDQESeUWoL4cZaMjihccwsnX5OD+ywJO0a+IDRM5noN+J1q2M
+dqMTw5RhK2vZbMEHCiIHhWyFJEapvj+LeISCfiQMnf2BN+MlqO02TpUsyZyQ2uypQjyttgI=
+-----END CERTIFICATE-----
+
+Buypass Class 2 CA 1
+====================
+-----BEGIN CERTIFICATE-----
+MIIDUzCCAjugAwIBAgIBATANBgkqhkiG9w0BAQUFADBLMQswCQYDVQQGEwJOTzEdMBsGA1UECgwU
+QnV5cGFzcyBBUy05ODMxNjMzMjcxHTAbBgNVBAMMFEJ1eXBhc3MgQ2xhc3MgMiBDQSAxMB4XDTA2
+MTAxMzEwMjUwOVoXDTE2MTAxMzEwMjUwOVowSzELMAkGA1UEBhMCTk8xHTAbBgNVBAoMFEJ1eXBh
+c3MgQVMtOTgzMTYzMzI3MR0wGwYDVQQDDBRCdXlwYXNzIENsYXNzIDIgQ0EgMTCCASIwDQYJKoZI
+hvcNAQEBBQADggEPADCCAQoCggEBAIs8B0XY9t/mx8q6jUPFR42wWsE425KEHK8T1A9vNkYgxC7M
+cXA0ojTTNy7Y3Tp3L8DrKehc0rWpkTSHIln+zNvnma+WwajHQN2lFYxuyHyXA8vmIPLXl18xoS83
+0r7uvqmtqEyeIWZDO6i88wmjONVZJMHCR3axiFyCO7srpgTXjAePzdVBHfCuuCkslFJgNJQ72uA4
+0Z0zPhX0kzLFANq1KWYOOngPIVJfAuWSeyXTkh4vFZ2B5J2O6O+JzhRMVB0cgRJNcKi+EAUXfh/R
+uFdV7c27UsKwHnjCTTZoy1YmwVLBvXb3WNVyfh9EdrsAiR0WnVE1703CVu9r4Iw7DekCAwEAAaNC
+MEAwDwYDVR0TAQH/BAUwAwEB/zAdBgNVHQ4EFgQUP42aWYv8e3uco684sDntkHGA1sgwDgYDVR0P
+AQH/BAQDAgEGMA0GCSqGSIb3DQEBBQUAA4IBAQAVGn4TirnoB6NLJzKyQJHyIdFkhb5jatLPgcIV
+1Xp+DCmsNx4cfHZSldq1fyOhKXdlyTKdqC5Wq2B2zha0jX94wNWZUYN/Xtm+DKhQ7SLHrQVMdvvt
+7h5HZPb3J31cKA9FxVxiXqaakZG3Uxcu3K1gnZZkOb1naLKuBctN518fV4bVIJwo+28TOPX2EZL2
+fZleHwzoq0QkKXJAPTZSr4xYkHPB7GEseaHsh7U/2k3ZIQAw3pDaDtMaSKk+hQsUi4y8QZ5q9w5w
+wDX3OaJdZtB7WZ+oRxKaJyOkLY4ng5IgodcVf/EuGO70SH8vf/GhGLWhC5SgYiAynB321O+/TIho
+-----END CERTIFICATE-----
+
+Buypass Class 3 CA 1
+====================
+-----BEGIN CERTIFICATE-----
+MIIDUzCCAjugAwIBAgIBAjANBgkqhkiG9w0BAQUFADBLMQswCQYDVQQGEwJOTzEdMBsGA1UECgwU
+QnV5cGFzcyBBUy05ODMxNjMzMjcxHTAbBgNVBAMMFEJ1eXBhc3MgQ2xhc3MgMyBDQSAxMB4XDTA1
+MDUwOTE0MTMwM1oXDTE1MDUwOTE0MTMwM1owSzELMAkGA1UEBhMCTk8xHTAbBgNVBAoMFEJ1eXBh
+c3MgQVMtOTgzMTYzMzI3MR0wGwYDVQQDDBRCdXlwYXNzIENsYXNzIDMgQ0EgMTCCASIwDQYJKoZI
+hvcNAQEBBQADggEPADCCAQoCggEBAKSO13TZKWTeXx+HgJHqTjnmGcZEC4DVC69TB4sSveZn8AKx
+ifZgisRbsELRwCGoy+Gb72RRtqfPFfV0gGgEkKBYouZ0plNTVUhjP5JW3SROjvi6K//zNIqeKNc0
+n6wv1g/xpC+9UrJJhW05NfBEMJNGJPO251P7vGGvqaMU+8IXF4Rs4HyI+MkcVyzwPX6UvCWThOia
+AJpFBUJXgPROztmuOfbIUxAMZTpHe2DC1vqRycZxbL2RhzyRhkmr8w+gbCZ2Xhysm3HljbybIR6c
+1jh+JIAVMYKWsUnTYjdbiAwKYjT+p0h+mbEwi5A3lRyoH6UsjfRVyNvdWQrCrXig9IsCAwEAAaNC
+MEAwDwYDVR0TAQH/BAUwAwEB/zAdBgNVHQ4EFgQUOBTmyPCppAP0Tj4io1vy1uCtQHQwDgYDVR0P
+AQH/BAQDAgEGMA0GCSqGSIb3DQEBBQUAA4IBAQABZ6OMySU9E2NdFm/soT4JXJEVKirZgCFPBdy7
+pYmrEzMqnji3jG8CcmPHc3ceCQa6Oyh7pEfJYWsICCD8igWKH7y6xsL+z27sEzNxZy5p+qksP2bA
+EllNC1QCkoS72xLvg3BweMhT+t/Gxv/ciC8HwEmdMldg0/L2mSlf56oBzKwzqBwKu5HEA6BvtjT5
+htOzdlSY9EqBs1OdTUDs5XcTRa9bqh/YL0yCe/4qxFi7T/ye/QNlGioOw6UgFpRreaaiErS7GqQj
+el/wroQk5PMr+4okoyeYZdowdXb8GZHo2+ubPzK/QJcHJrrM85SFSnonk8+QQtS4Wxam58tAA915
+-----END CERTIFICATE-----
+
+EBG Elektronik Sertifika Hizmet Sa\xC4\x9Flay\xc4\xb1\x63\xc4\xb1s\xc4\xb1
+==========================================================================
+-----BEGIN CERTIFICATE-----
+MIIF5zCCA8+gAwIBAgIITK9zQhyOdAIwDQYJKoZIhvcNAQEFBQAwgYAxODA2BgNVBAMML0VCRyBF
+bGVrdHJvbmlrIFNlcnRpZmlrYSBIaXptZXQgU2HEn2xhecSxY8Sxc8SxMTcwNQYDVQQKDC5FQkcg
+QmlsacWfaW0gVGVrbm9sb2ppbGVyaSB2ZSBIaXptZXRsZXJpIEEuxZ4uMQswCQYDVQQGEwJUUjAe
+Fw0wNjA4MTcwMDIxMDlaFw0xNjA4MTQwMDMxMDlaMIGAMTgwNgYDVQQDDC9FQkcgRWxla3Ryb25p
+ayBTZXJ0aWZpa2EgSGl6bWV0IFNhxJ9sYXnEsWPEsXPEsTE3MDUGA1UECgwuRUJHIEJpbGnFn2lt
+IFRla25vbG9qaWxlcmkgdmUgSGl6bWV0bGVyaSBBLsWeLjELMAkGA1UEBhMCVFIwggIiMA0GCSqG
+SIb3DQEBAQUAA4ICDwAwggIKAoICAQDuoIRh0DpqZhAy2DE4f6en5f2h4fuXd7hxlugTlkaDT7by
+X3JWbhNgpQGR4lvFzVcfd2NR/y8927k/qqk153nQ9dAktiHq6yOU/im/+4mRDGSaBUorzAzu8T2b
+gmmkTPiab+ci2hC6X5L8GCcKqKpE+i4stPtGmggDg3KriORqcsnlZR9uKg+ds+g75AxuetpX/dfr
+eYteIAbTdgtsApWjluTLdlHRKJ2hGvxEok3MenaoDT2/F08iiFD9rrbskFBKW5+VQarKD7JK/oCZ
+TqNGFav4c0JqwmZ2sQomFd2TkuzbqV9UIlKRcF0T6kjsbgNs2d1s/OsNA/+mgxKb8amTD8UmTDGy
+Y5lhcucqZJnSuOl14nypqZoaqsNW2xCaPINStnuWt6yHd6i58mcLlEOzrz5z+kI2sSXFCjEmN1Zn
+uqMLfdb3ic1nobc6HmZP9qBVFCVMLDMNpkGMvQQxahByCp0OLna9XvNRiYuoP1Vzv9s6xiQFlpJI
+qkuNKgPlV5EQ9GooFW5Hd4RcUXSfGenmHmMWOeMRFeNYGkS9y8RsZteEBt8w9DeiQyJ50hBs37vm
+ExH8nYQKE3vwO9D8owrXieqWfo1IhR5kX9tUoqzVegJ5a9KK8GfaZXINFHDk6Y54jzJ0fFfy1tb0
+Nokb+Clsi7n2l9GkLqq+CxnCRelwXQIDAJ3Zo2MwYTAPBgNVHRMBAf8EBTADAQH/MA4GA1UdDwEB
+/wQEAwIBBjAdBgNVHQ4EFgQU587GT/wWZ5b6SqMHwQSny2re2kcwHwYDVR0jBBgwFoAU587GT/wW
+Z5b6SqMHwQSny2re2kcwDQYJKoZIhvcNAQEFBQADggIBAJuYml2+8ygjdsZs93/mQJ7ANtyVDR2t
+FcU22NU57/IeIl6zgrRdu0waypIN30ckHrMk2pGI6YNw3ZPX6bqz3xZaPt7gyPvT/Wwp+BVGoGgm
+zJNSroIBk5DKd8pNSe/iWtkqvTDOTLKBtjDOWU/aWR1qeqRFsIImgYZ29fUQALjuswnoT4cCB64k
+XPBfrAowzIpAoHMEwfuJJPaaHFy3PApnNgUIMbOv2AFoKuB4j3TeuFGkjGwgPaL7s9QJ/XvCgKqT
+bCmYIai7FvOpEl90tYeY8pUm3zTvilORiF0alKM/fCL414i6poyWqD1SNGKfAB5UVUJnxk1Gj7sU
+RT0KlhaOEKGXmdXTMIXM3rRyt7yKPBgpaP3ccQfuJDlq+u2lrDgv+R4QDgZxGhBM/nV+/x5XOULK
+1+EVoVZVWRvRo68R2E7DpSvvkL/A7IITW43WciyTTo9qKd+FPNMN4KIYEsxVL0e3p5sC/kH2iExt
+2qkBR4NkJ2IQgtYSe14DHzSpyZH+r11thie3I6p1GMog57AP14kOpmciY/SDQSsGS7tY1dHXt7kQ
+Y9iJSrSq3RZj9W6+YKH47ejWkE8axsWgKdOnIaj1Wjz3x0miIZpKlVIglnKaZsv30oZDfCK+lvm9
+AahH3eU7QPl1K5srRmSGjR70j/sHd9DqSaIcjVIUpgqT
+-----END CERTIFICATE-----
+
+certSIGN ROOT CA
+================
+-----BEGIN CERTIFICATE-----
+MIIDODCCAiCgAwIBAgIGIAYFFnACMA0GCSqGSIb3DQEBBQUAMDsxCzAJBgNVBAYTAlJPMREwDwYD
+VQQKEwhjZXJ0U0lHTjEZMBcGA1UECxMQY2VydFNJR04gUk9PVCBDQTAeFw0wNjA3MDQxNzIwMDRa
+Fw0zMTA3MDQxNzIwMDRaMDsxCzAJBgNVBAYTAlJPMREwDwYDVQQKEwhjZXJ0U0lHTjEZMBcGA1UE
+CxMQY2VydFNJR04gUk9PVCBDQTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBALczuX7I
+JUqOtdu0KBuqV5Do0SLTZLrTk+jUrIZhQGpgV2hUhE28alQCBf/fm5oqrl0Hj0rDKH/v+yv6efHH
+rfAQUySQi2bJqIirr1qjAOm+ukbuW3N7LBeCgV5iLKECZbO9xSsAfsT8AzNXDe3i+s5dRdY4zTW2
+ssHQnIFKquSyAVwdj1+ZxLGt24gh65AIgoDzMKND5pCCrlUoSe1b16kQOA7+j0xbm0bqQfWwCHTD
+0IgztnzXdN/chNFDDnU5oSVAKOp4yw4sLjmdjItuFhwvJoIQ4uNllAoEwF73XVv4EOLQunpL+943
+AAAaWyjj0pxzPjKHmKHJUS/X3qwzs08CAwEAAaNCMEAwDwYDVR0TAQH/BAUwAwEB/zAOBgNVHQ8B
+Af8EBAMCAcYwHQYDVR0OBBYEFOCMm9slSbPxfIbWskKHC9BroNnkMA0GCSqGSIb3DQEBBQUAA4IB
+AQA+0hyJLjX8+HXd5n9liPRyTMks1zJO890ZeUe9jjtbkw9QSSQTaxQGcu8J06Gh40CEyecYMnQ8
+SG4Pn0vU9x7Tk4ZkVJdjclDVVc/6IJMCopvDI5NOFlV2oHB5bc0hH88vLbwZ44gx+FkagQnIl6Z0
+x2DEW8xXjrJ1/RsCCdtZb3KTafcxQdaIOL+Hsr0Wefmq5L6IJd1hJyMctTEHBDa0GpC9oHRxUIlt
+vBTjD4au8as+x6AJzKNI0eDbZOeStc+vckNwi/nDhDwTqn6Sm1dTk/pwwpEOMfmbZ13pljheX7Nz
+TogVZ96edhBiIL5VaZVDADlN9u6wWk5JRFRYX0KD
+-----END CERTIFICATE-----
+
+CNNIC ROOT
+==========
+-----BEGIN CERTIFICATE-----
+MIIDVTCCAj2gAwIBAgIESTMAATANBgkqhkiG9w0BAQUFADAyMQswCQYDVQQGEwJDTjEOMAwGA1UE
+ChMFQ05OSUMxEzARBgNVBAMTCkNOTklDIFJPT1QwHhcNMDcwNDE2MDcwOTE0WhcNMjcwNDE2MDcw
+OTE0WjAyMQswCQYDVQQGEwJDTjEOMAwGA1UEChMFQ05OSUMxEzARBgNVBAMTCkNOTklDIFJPT1Qw
+ggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDTNfc/c3et6FtzF8LRb+1VvG7q6KR5smzD
+o+/hn7E7SIX1mlwhIhAsxYLO2uOabjfhhyzcuQxauohV3/2q2x8x6gHx3zkBwRP9SFIhxFXf2tiz
+VHa6dLG3fdfA6PZZxU3Iva0fFNrfWEQlMhkqx35+jq44sDB7R3IJMfAw28Mbdim7aXZOV/kbZKKT
+VrdvmW7bCgScEeOAH8tjlBAKqeFkgjH5jCftppkA9nCTGPihNIaj3XrCGHn2emU1z5DrvTOTn1Or
+czvmmzQgLx3vqR1jGqCA2wMv+SYahtKNu6m+UjqHZ0gNv7Sg2Ca+I19zN38m5pIEo3/PIKe38zrK
+y5nLAgMBAAGjczBxMBEGCWCGSAGG+EIBAQQEAwIABzAfBgNVHSMEGDAWgBRl8jGtKvf33VKWCscC
+wQ7vptU7ETAPBgNVHRMBAf8EBTADAQH/MAsGA1UdDwQEAwIB/jAdBgNVHQ4EFgQUZfIxrSr3991S
+lgrHAsEO76bVOxEwDQYJKoZIhvcNAQEFBQADggEBAEs17szkrr/Dbq2flTtLP1se31cpolnKOOK5
+Gv+e5m4y3R6u6jW39ZORTtpC4cMXYFDy0VwmuYK36m3knITnA3kXr5g9lNvHugDnuL8BV8F3RTIM
+O/G0HAiw/VGgod2aHRM2mm23xzy54cXZF/qD1T0VoDy7HgviyJA/qIYM/PmLXoXLT1tLYhFHxUV8
+BS9BsZ4QaRuZluBVeftOhpm4lNqGOGqTo+fLbuXf6iFViZx9fX+Y9QCJ7uOEwFyWtcVG6kbghVW2
+G8kS1sHNzYDzAgE8yGnLRUhj2JTQ7IUOO04RZfSCjKY9ri4ilAnIXOo8gV0WKgOXFlUJ24pBgp5m
+mxE=
+-----END CERTIFICATE-----
+
+ApplicationCA - Japanese Government
+===================================
+-----BEGIN CERTIFICATE-----
+MIIDoDCCAoigAwIBAgIBMTANBgkqhkiG9w0BAQUFADBDMQswCQYDVQQGEwJKUDEcMBoGA1UEChMT
+SmFwYW5lc2UgR292ZXJubWVudDEWMBQGA1UECxMNQXBwbGljYXRpb25DQTAeFw0wNzEyMTIxNTAw
+MDBaFw0xNzEyMTIxNTAwMDBaMEMxCzAJBgNVBAYTAkpQMRwwGgYDVQQKExNKYXBhbmVzZSBHb3Zl
+cm5tZW50MRYwFAYDVQQLEw1BcHBsaWNhdGlvbkNBMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIB
+CgKCAQEAp23gdE6Hj6UG3mii24aZS2QNcfAKBZuOquHMLtJqO8F6tJdhjYq+xpqcBrSGUeQ3DnR4
+fl+Kf5Sk10cI/VBaVuRorChzoHvpfxiSQE8tnfWuREhzNgaeZCw7NCPbXCbkcXmP1G55IrmTwcrN
+wVbtiGrXoDkhBFcsovW8R0FPXjQilbUfKW1eSvNNcr5BViCH/OlQR9cwFO5cjFW6WY2H/CPek9AE
+jP3vbb3QesmlOmpyM8ZKDQUXKi17safY1vC+9D/qDihtQWEjdnjDuGWk81quzMKq2edY3rZ+nYVu
+nyoKb58DKTCXKB28t89UKU5RMfkntigm/qJj5kEW8DOYRwIDAQABo4GeMIGbMB0GA1UdDgQWBBRU
+WssmP3HMlEYNllPqa0jQk/5CdTAOBgNVHQ8BAf8EBAMCAQYwWQYDVR0RBFIwUKROMEwxCzAJBgNV
+BAYTAkpQMRgwFgYDVQQKDA/ml6XmnKzlm73mlL/lupwxIzAhBgNVBAsMGuOCouODl+ODquOCseOD
+vOOCt+ODp+ODs0NBMA8GA1UdEwEB/wQFMAMBAf8wDQYJKoZIhvcNAQEFBQADggEBADlqRHZ3ODrs
+o2dGD/mLBqj7apAxzn7s2tGJfHrrLgy9mTLnsCTWw//1sogJhyzjVOGjprIIC8CFqMjSnHH2HZ9g
+/DgzE+Ge3Atf2hZQKXsvcJEPmbo0NI2VdMV+eKlmXb3KIXdCEKxmJj3ekav9FfBv7WxfEPjzFvYD
+io+nEhEMy/0/ecGc/WLuo89UDNErXxc+4z6/wCs+CZv+iKZ+tJIX/COUgb1up8WMwusRRdv4QcmW
+dupwX3kSa+SjB1oF7ydJzyGfikwJcGapJsErEU4z0g781mzSDjJkaP+tBXhfAx2o45CsJOAPQKdL
+rosot4LKGAfmt1t06SAZf7IbiVQ=
+-----END CERTIFICATE-----
+
+GeoTrust Primary Certification Authority - G3
+=============================================
+-----BEGIN CERTIFICATE-----
+MIID/jCCAuagAwIBAgIQFaxulBmyeUtB9iepwxgPHzANBgkqhkiG9w0BAQsFADCBmDELMAkGA1UE
+BhMCVVMxFjAUBgNVBAoTDUdlb1RydXN0IEluYy4xOTA3BgNVBAsTMChjKSAyMDA4IEdlb1RydXN0
+IEluYy4gLSBGb3IgYXV0aG9yaXplZCB1c2Ugb25seTE2MDQGA1UEAxMtR2VvVHJ1c3QgUHJpbWFy
+eSBDZXJ0aWZpY2F0aW9uIEF1dGhvcml0eSAtIEczMB4XDTA4MDQwMjAwMDAwMFoXDTM3MTIwMTIz
+NTk1OVowgZgxCzAJBgNVBAYTAlVTMRYwFAYDVQQKEw1HZW9UcnVzdCBJbmMuMTkwNwYDVQQLEzAo
+YykgMjAwOCBHZW9UcnVzdCBJbmMuIC0gRm9yIGF1dGhvcml6ZWQgdXNlIG9ubHkxNjA0BgNVBAMT
+LUdlb1RydXN0IFByaW1hcnkgQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkgLSBHMzCCASIwDQYJKoZI
+hvcNAQEBBQADggEPADCCAQoCggEBANziXmJYHTNXOTIz+uvLh4yn1ErdBojqZI4xmKU4kB6Yzy5j
+K/BGvESyiaHAKAxJcCGVn2TAppMSAmUmhsalifD614SgcK9PGpc/BkTVyetyEH3kMSj7HGHmKAdE
+c5IiaacDiGydY8hS2pgn5whMcD60yRLBxWeDXTPzAxHsatBT4tG6NmCUgLthY2xbF37fQJQeqw3C
+IShwiP/WJmxsYAQlTlV+fe+/lEjetx3dcI0FX4ilm/LC7urRQEFtYjgdVgbFA0dRIBn8exALDmKu
+dlW/X3e+PkkBUz2YJQN2JFodtNuJ6nnltrM7P7pMKEF/BqxqjsHQ9gUdfeZChuOl1UcCAwEAAaNC
+MEAwDwYDVR0TAQH/BAUwAwEB/zAOBgNVHQ8BAf8EBAMCAQYwHQYDVR0OBBYEFMR5yo6hTgMdHNxr
+2zFblD4/MH8tMA0GCSqGSIb3DQEBCwUAA4IBAQAtxRPPVoB7eni9n64smefv2t+UXglpp+duaIy9
+cr5HqQ6XErhK8WTTOd8lNNTBzU6B8A8ExCSzNJbGpqow32hhc9f5joWJ7w5elShKKiePEI4ufIbE
+Ap7aDHdlDkQNkv39sxY2+hENHYwOB4lqKVb3cvTdFZx3NWZXqxNT2I7BQMXXExZacse3aQHEerGD
+AWh9jUGhlBjBJVz88P6DAod8DQ3PLghcSkANPuyBYeYk28rgDi0Hsj5W3I31QYUHSJsMC8tJP33s
+t/3LjWeJGqvtux6jAAgIFyqCXDFdRootD4abdNlF+9RAsXqqaC2Gspki4cErx5z481+oghLrGREt
+-----END CERTIFICATE-----
+
+thawte Primary Root CA - G2
+===========================
+-----BEGIN CERTIFICATE-----
+MIICiDCCAg2gAwIBAgIQNfwmXNmET8k9Jj1Xm67XVjAKBggqhkjOPQQDAzCBhDELMAkGA1UEBhMC
+VVMxFTATBgNVBAoTDHRoYXd0ZSwgSW5jLjE4MDYGA1UECxMvKGMpIDIwMDcgdGhhd3RlLCBJbmMu
+IC0gRm9yIGF1dGhvcml6ZWQgdXNlIG9ubHkxJDAiBgNVBAMTG3RoYXd0ZSBQcmltYXJ5IFJvb3Qg
+Q0EgLSBHMjAeFw0wNzExMDUwMDAwMDBaFw0zODAxMTgyMzU5NTlaMIGEMQswCQYDVQQGEwJVUzEV
+MBMGA1UEChMMdGhhd3RlLCBJbmMuMTgwNgYDVQQLEy8oYykgMjAwNyB0aGF3dGUsIEluYy4gLSBG
+b3IgYXV0aG9yaXplZCB1c2Ugb25seTEkMCIGA1UEAxMbdGhhd3RlIFByaW1hcnkgUm9vdCBDQSAt
+IEcyMHYwEAYHKoZIzj0CAQYFK4EEACIDYgAEotWcgnuVnfFSeIf+iha/BebfowJPDQfGAFG6DAJS
+LSKkQjnE/o/qycG+1E3/n3qe4rF8mq2nhglzh9HnmuN6papu+7qzcMBniKI11KOasf2twu8x+qi5
+8/sIxpHR+ymVo0IwQDAPBgNVHRMBAf8EBTADAQH/MA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQU
+mtgAMADna3+FGO6Lts6KDPgR4bswCgYIKoZIzj0EAwMDaQAwZgIxAN344FdHW6fmCsO99YCKlzUN
+G4k8VIZ3KMqh9HneteY4sPBlcIx/AlTCv//YoT7ZzwIxAMSNlPzcU9LcnXgWHxUzI1NS41oxXZ3K
+rr0TKUQNJ1uo52icEvdYPy5yAlejj6EULg==
+-----END CERTIFICATE-----
+
+thawte Primary Root CA - G3
+===========================
+-----BEGIN CERTIFICATE-----
+MIIEKjCCAxKgAwIBAgIQYAGXt0an6rS0mtZLL/eQ+zANBgkqhkiG9w0BAQsFADCBrjELMAkGA1UE
+BhMCVVMxFTATBgNVBAoTDHRoYXd0ZSwgSW5jLjEoMCYGA1UECxMfQ2VydGlmaWNhdGlvbiBTZXJ2
+aWNlcyBEaXZpc2lvbjE4MDYGA1UECxMvKGMpIDIwMDggdGhhd3RlLCBJbmMuIC0gRm9yIGF1dGhv
+cml6ZWQgdXNlIG9ubHkxJDAiBgNVBAMTG3RoYXd0ZSBQcmltYXJ5IFJvb3QgQ0EgLSBHMzAeFw0w
+ODA0MDIwMDAwMDBaFw0zNzEyMDEyMzU5NTlaMIGuMQswCQYDVQQGEwJVUzEVMBMGA1UEChMMdGhh
+d3RlLCBJbmMuMSgwJgYDVQQLEx9DZXJ0aWZpY2F0aW9uIFNlcnZpY2VzIERpdmlzaW9uMTgwNgYD
+VQQLEy8oYykgMjAwOCB0aGF3dGUsIEluYy4gLSBGb3IgYXV0aG9yaXplZCB1c2Ugb25seTEkMCIG
+A1UEAxMbdGhhd3RlIFByaW1hcnkgUm9vdCBDQSAtIEczMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8A
+MIIBCgKCAQEAsr8nLPvb2FvdeHsbnndmgcs+vHyu86YnmjSjaDFxODNi5PNxZnmxqWWjpYvVj2At
+P0LMqmsywCPLLEHd5N/8YZzic7IilRFDGF/Eth9XbAoFWCLINkw6fKXRz4aviKdEAhN0cXMKQlkC
++BsUa0Lfb1+6a4KinVvnSr0eAXLbS3ToO39/fR8EtCab4LRarEc9VbjXsCZSKAExQGbY2SS99irY
+7CFJXJv2eul/VTV+lmuNk5Mny5K76qxAwJ/C+IDPXfRa3M50hqY+bAtTyr2SzhkGcuYMXDhpxwTW
+vGzOW/b3aJzcJRVIiKHpqfiYnODz1TEoYRFsZ5aNOZnLwkUkOQIDAQABo0IwQDAPBgNVHRMBAf8E
+BTADAQH/MA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQUrWyqlGCc7eT/+j4KdCtjA/e2Wb8wDQYJ
+KoZIhvcNAQELBQADggEBABpA2JVlrAmSicY59BDlqQ5mU1143vokkbvnRFHfxhY0Cu9qRFHqKweK
+A3rD6z8KLFIWoCtDuSWQP3CpMyVtRRooOyfPqsMpQhvfO0zAMzRbQYi/aytlryjvsvXDqmbOe1bu
+t8jLZ8HJnBoYuMTDSQPxYA5QzUbF83d597YV4Djbxy8ooAw/dyZ02SUS2jHaGh7cKUGRIjxpp7sC
+8rZcJwOJ9Abqm+RyguOhCcHpABnTPtRwa7pxpqpYrvS76Wy274fMm7v/OeZWYdMKp8RcTGB7BXcm
+er/YB1IsYvdwY9k5vG8cwnncdimvzsUsZAReiDZuMdRAGmI0Nj81Aa6sY6A=
+-----END CERTIFICATE-----
+
+GeoTrust Primary Certification Authority - G2
+=============================================
+-----BEGIN CERTIFICATE-----
+MIICrjCCAjWgAwIBAgIQPLL0SAoA4v7rJDteYD7DazAKBggqhkjOPQQDAzCBmDELMAkGA1UEBhMC
+VVMxFjAUBgNVBAoTDUdlb1RydXN0IEluYy4xOTA3BgNVBAsTMChjKSAyMDA3IEdlb1RydXN0IElu
+Yy4gLSBGb3IgYXV0aG9yaXplZCB1c2Ugb25seTE2MDQGA1UEAxMtR2VvVHJ1c3QgUHJpbWFyeSBD
+ZXJ0aWZpY2F0aW9uIEF1dGhvcml0eSAtIEcyMB4XDTA3MTEwNTAwMDAwMFoXDTM4MDExODIzNTk1
+OVowgZgxCzAJBgNVBAYTAlVTMRYwFAYDVQQKEw1HZW9UcnVzdCBJbmMuMTkwNwYDVQQLEzAoYykg
+MjAwNyBHZW9UcnVzdCBJbmMuIC0gRm9yIGF1dGhvcml6ZWQgdXNlIG9ubHkxNjA0BgNVBAMTLUdl
+b1RydXN0IFByaW1hcnkgQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkgLSBHMjB2MBAGByqGSM49AgEG
+BSuBBAAiA2IABBWx6P0DFUPlrOuHNxFi79KDNlJ9RVcLSo17VDs6bl8VAsBQps8lL33KSLjHUGMc
+KiEIfJo22Av+0SbFWDEwKCXzXV2juLaltJLtbCyf691DiaI8S0iRHVDsJt/WYC69IaNCMEAwDwYD
+VR0TAQH/BAUwAwEB/zAOBgNVHQ8BAf8EBAMCAQYwHQYDVR0OBBYEFBVfNVdRVfslsq0DafwBo/q+
+EVXVMAoGCCqGSM49BAMDA2cAMGQCMGSWWaboCd6LuvpaiIjwH5HTRqjySkwCY/tsXzjbLkGTqQ7m
+ndwxHLKgpxgceeHHNgIwOlavmnRs9vuD4DPTCF+hnMJbn0bWtsuRBmOiBuczrD6ogRLQy7rQkgu2
+npaqBA+K
+-----END CERTIFICATE-----
+
+VeriSign Universal Root Certification Authority
+===============================================
+-----BEGIN CERTIFICATE-----
+MIIEuTCCA6GgAwIBAgIQQBrEZCGzEyEDDrvkEhrFHTANBgkqhkiG9w0BAQsFADCBvTELMAkGA1UE
+BhMCVVMxFzAVBgNVBAoTDlZlcmlTaWduLCBJbmMuMR8wHQYDVQQLExZWZXJpU2lnbiBUcnVzdCBO
+ZXR3b3JrMTowOAYDVQQLEzEoYykgMjAwOCBWZXJpU2lnbiwgSW5jLiAtIEZvciBhdXRob3JpemVk
+IHVzZSBvbmx5MTgwNgYDVQQDEy9WZXJpU2lnbiBVbml2ZXJzYWwgUm9vdCBDZXJ0aWZpY2F0aW9u
+IEF1dGhvcml0eTAeFw0wODA0MDIwMDAwMDBaFw0zNzEyMDEyMzU5NTlaMIG9MQswCQYDVQQGEwJV
+UzEXMBUGA1UEChMOVmVyaVNpZ24sIEluYy4xHzAdBgNVBAsTFlZlcmlTaWduIFRydXN0IE5ldHdv
+cmsxOjA4BgNVBAsTMShjKSAyMDA4IFZlcmlTaWduLCBJbmMuIC0gRm9yIGF1dGhvcml6ZWQgdXNl
+IG9ubHkxODA2BgNVBAMTL1ZlcmlTaWduIFVuaXZlcnNhbCBSb290IENlcnRpZmljYXRpb24gQXV0
+aG9yaXR5MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAx2E3XrEBNNti1xWb/1hajCMj
+1mCOkdeQmIN65lgZOIzF9uVkhbSicfvtvbnazU0AtMgtc6XHaXGVHzk8skQHnOgO+k1KxCHfKWGP
+MiJhgsWHH26MfF8WIFFE0XBPV+rjHOPMee5Y2A7Cs0WTwCznmhcrewA3ekEzeOEz4vMQGn+HLL72
+9fdC4uW/h2KJXwBL38Xd5HVEMkE6HnFuacsLdUYI0crSK5XQz/u5QGtkjFdN/BMReYTtXlT2NJ8I
+AfMQJQYXStrxHXpma5hgZqTZ79IugvHw7wnqRMkVauIDbjPTrJ9VAMf2CGqUuV/c4DPxhGD5WycR
+tPwW8rtWaoAljQIDAQABo4GyMIGvMA8GA1UdEwEB/wQFMAMBAf8wDgYDVR0PAQH/BAQDAgEGMG0G
+CCsGAQUFBwEMBGEwX6FdoFswWTBXMFUWCWltYWdlL2dpZjAhMB8wBwYFKw4DAhoEFI/l0xqGrI2O
+a8PPgGrUSBgsexkuMCUWI2h0dHA6Ly9sb2dvLnZlcmlzaWduLmNvbS92c2xvZ28uZ2lmMB0GA1Ud
+DgQWBBS2d/ppSEefUxLVwuoHMnYH0ZcHGTANBgkqhkiG9w0BAQsFAAOCAQEASvj4sAPmLGd75JR3
+Y8xuTPl9Dg3cyLk1uXBPY/ok+myDjEedO2Pzmvl2MpWRsXe8rJq+seQxIcaBlVZaDrHC1LGmWazx
+Y8u4TB1ZkErvkBYoH1quEPuBUDgMbMzxPcP1Y+Oz4yHJJDnp/RVmRvQbEdBNc6N9Rvk97ahfYtTx
+P/jgdFcrGJ2BtMQo2pSXpXDrrB2+BxHw1dvd5Yzw1TKwg+ZX4o+/vqGqvz0dtdQ46tewXDpPaj+P
+wGZsY6rp2aQW9IHRlRQOfc2VNNnSj3BzgXucfr2YYdhFh5iQxeuGMMY1v/D/w1WIg0vvBZIGcfK4
+mJO37M2CYfE45k+XmCpajQ==
+-----END CERTIFICATE-----
+
+VeriSign Class 3 Public Primary Certification Authority - G4
+============================================================
+-----BEGIN CERTIFICATE-----
+MIIDhDCCAwqgAwIBAgIQL4D+I4wOIg9IZxIokYesszAKBggqhkjOPQQDAzCByjELMAkGA1UEBhMC
+VVMxFzAVBgNVBAoTDlZlcmlTaWduLCBJbmMuMR8wHQYDVQQLExZWZXJpU2lnbiBUcnVzdCBOZXR3
+b3JrMTowOAYDVQQLEzEoYykgMjAwNyBWZXJpU2lnbiwgSW5jLiAtIEZvciBhdXRob3JpemVkIHVz
+ZSBvbmx5MUUwQwYDVQQDEzxWZXJpU2lnbiBDbGFzcyAzIFB1YmxpYyBQcmltYXJ5IENlcnRpZmlj
+YXRpb24gQXV0aG9yaXR5IC0gRzQwHhcNMDcxMTA1MDAwMDAwWhcNMzgwMTE4MjM1OTU5WjCByjEL
+MAkGA1UEBhMCVVMxFzAVBgNVBAoTDlZlcmlTaWduLCBJbmMuMR8wHQYDVQQLExZWZXJpU2lnbiBU
+cnVzdCBOZXR3b3JrMTowOAYDVQQLEzEoYykgMjAwNyBWZXJpU2lnbiwgSW5jLiAtIEZvciBhdXRo
+b3JpemVkIHVzZSBvbmx5MUUwQwYDVQQDEzxWZXJpU2lnbiBDbGFzcyAzIFB1YmxpYyBQcmltYXJ5
+IENlcnRpZmljYXRpb24gQXV0aG9yaXR5IC0gRzQwdjAQBgcqhkjOPQIBBgUrgQQAIgNiAASnVnp8
+Utpkmw4tXNherJI9/gHmGUo9FANL+mAnINmDiWn6VMaaGF5VKmTeBvaNSjutEDxlPZCIBIngMGGz
+rl0Bp3vefLK+ymVhAIau2o970ImtTR1ZmkGxvEeA3J5iw/mjgbIwga8wDwYDVR0TAQH/BAUwAwEB
+/zAOBgNVHQ8BAf8EBAMCAQYwbQYIKwYBBQUHAQwEYTBfoV2gWzBZMFcwVRYJaW1hZ2UvZ2lmMCEw
+HzAHBgUrDgMCGgQUj+XTGoasjY5rw8+AatRIGCx7GS4wJRYjaHR0cDovL2xvZ28udmVyaXNpZ24u
+Y29tL3ZzbG9nby5naWYwHQYDVR0OBBYEFLMWkf3upm7ktS5Jj4d4gYDs5bG1MAoGCCqGSM49BAMD
+A2gAMGUCMGYhDBgmYFo4e1ZC4Kf8NoRRkSAsdk1DPcQdhCPQrNZ8NQbOzWm9kA3bbEhCHQ6qQgIx
+AJw9SDkjOVgaFRJZap7v1VmyHVIsmXHNxynfGyphe3HR3vPA5Q06Sqotp9iGKt0uEA==
+-----END CERTIFICATE-----
+
+NetLock Arany (Class Gold) Főtanúsítvány
+============================================
+-----BEGIN CERTIFICATE-----
+MIIEFTCCAv2gAwIBAgIGSUEs5AAQMA0GCSqGSIb3DQEBCwUAMIGnMQswCQYDVQQGEwJIVTERMA8G
+A1UEBwwIQnVkYXBlc3QxFTATBgNVBAoMDE5ldExvY2sgS2Z0LjE3MDUGA1UECwwuVGFuw7pzw610
+dsOhbnlraWFkw7NrIChDZXJ0aWZpY2F0aW9uIFNlcnZpY2VzKTE1MDMGA1UEAwwsTmV0TG9jayBB
+cmFueSAoQ2xhc3MgR29sZCkgRsWRdGFuw7pzw610dsOhbnkwHhcNMDgxMjExMTUwODIxWhcNMjgx
+MjA2MTUwODIxWjCBpzELMAkGA1UEBhMCSFUxETAPBgNVBAcMCEJ1ZGFwZXN0MRUwEwYDVQQKDAxO
+ZXRMb2NrIEtmdC4xNzA1BgNVBAsMLlRhbsO6c8OtdHbDoW55a2lhZMOzayAoQ2VydGlmaWNhdGlv
+biBTZXJ2aWNlcykxNTAzBgNVBAMMLE5ldExvY2sgQXJhbnkgKENsYXNzIEdvbGQpIEbFkXRhbsO6
+c8OtdHbDoW55MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAxCRec75LbRTDofTjl5Bu
+0jBFHjzuZ9lk4BqKf8owyoPjIMHj9DrTlF8afFttvzBPhCf2nx9JvMaZCpDyD/V/Q4Q3Y1GLeqVw
+/HpYzY6b7cNGbIRwXdrzAZAj/E4wqX7hJ2Pn7WQ8oLjJM2P+FpD/sLj916jAwJRDC7bVWaaeVtAk
+H3B5r9s5VA1lddkVQZQBr17s9o3x/61k/iCa11zr/qYfCGSji3ZVrR47KGAuhyXoqq8fxmRGILdw
+fzzeSNuWU7c5d+Qa4scWhHaXWy+7GRWF+GmF9ZmnqfI0p6m2pgP8b4Y9VHx2BJtr+UBdADTHLpl1
+neWIA6pN+APSQnbAGwIDAKiLo0UwQzASBgNVHRMBAf8ECDAGAQH/AgEEMA4GA1UdDwEB/wQEAwIB
+BjAdBgNVHQ4EFgQUzPpnk/C2uNClwB7zU/2MU9+D15YwDQYJKoZIhvcNAQELBQADggEBAKt/7hwW
+qZw8UQCgwBEIBaeZ5m8BiFRhbvG5GK1Krf6BQCOUL/t1fC8oS2IkgYIL9WHxHG64YTjrgfpioTta
+YtOUZcTh5m2C+C8lcLIhJsFyUR+MLMOEkMNaj7rP9KdlpeuY0fsFskZ1FSNqb4VjMIDw1Z4fKRzC
+bLBQWV2QWzuoDTDPv31/zvGdg73JRm4gpvlhUbohL3u+pRVjodSVh/GeufOJ8z2FuLjbvrW5Kfna
+NwUASZQDhETnv0Mxz3WLJdH0pmT1kvarBes96aULNmLazAZfNou2XjG4Kvte9nHfRCaexOYNkbQu
+dZWAUWpLMKawYqGT8ZvYzsRjdT9ZR7E=
+-----END CERTIFICATE-----
+
+Staat der Nederlanden Root CA - G2
+==================================
+-----BEGIN CERTIFICATE-----
+MIIFyjCCA7KgAwIBAgIEAJiWjDANBgkqhkiG9w0BAQsFADBaMQswCQYDVQQGEwJOTDEeMBwGA1UE
+CgwVU3RhYXQgZGVyIE5lZGVybGFuZGVuMSswKQYDVQQDDCJTdGFhdCBkZXIgTmVkZXJsYW5kZW4g
+Um9vdCBDQSAtIEcyMB4XDTA4MDMyNjExMTgxN1oXDTIwMDMyNTExMDMxMFowWjELMAkGA1UEBhMC
+TkwxHjAcBgNVBAoMFVN0YWF0IGRlciBOZWRlcmxhbmRlbjErMCkGA1UEAwwiU3RhYXQgZGVyIE5l
+ZGVybGFuZGVuIFJvb3QgQ0EgLSBHMjCCAiIwDQYJKoZIhvcNAQEBBQADggIPADCCAgoCggIBAMVZ
+5291qj5LnLW4rJ4L5PnZyqtdj7U5EILXr1HgO+EASGrP2uEGQxGZqhQlEq0i6ABtQ8SpuOUfiUtn
+vWFI7/3S4GCI5bkYYCjDdyutsDeqN95kWSpGV+RLufg3fNU254DBtvPUZ5uW6M7XxgpT0GtJlvOj
+CwV3SPcl5XCsMBQgJeN/dVrlSPhOewMHBPqCYYdu8DvEpMfQ9XQ+pV0aCPKbJdL2rAQmPlU6Yiil
+e7Iwr/g3wtG61jj99O9JMDeZJiFIhQGp5Rbn3JBV3w/oOM2ZNyFPXfUib2rFEhZgF1XyZWampzCR
+OME4HYYEhLoaJXhena/MUGDWE4dS7WMfbWV9whUYdMrhfmQpjHLYFhN9C0lK8SgbIHRrxT3dsKpI
+CT0ugpTNGmXZK4iambwYfp/ufWZ8Pr2UuIHOzZgweMFvZ9C+X+Bo7d7iscksWXiSqt8rYGPy5V65
+48r6f1CGPqI0GAwJaCgRHOThuVw+R7oyPxjMW4T182t0xHJ04eOLoEq9jWYv6q012iDTiIJh8BIi
+trzQ1aTsr1SIJSQ8p22xcik/Plemf1WvbibG/ufMQFxRRIEKeN5KzlW/HdXZt1bv8Hb/C3m1r737
+qWmRRpdogBQ2HbN/uymYNqUg+oJgYjOk7Na6B6duxc8UpufWkjTYgfX8HV2qXB72o007uPc5AgMB
+AAGjgZcwgZQwDwYDVR0TAQH/BAUwAwEB/zBSBgNVHSAESzBJMEcGBFUdIAAwPzA9BggrBgEFBQcC
+ARYxaHR0cDovL3d3dy5wa2lvdmVyaGVpZC5ubC9wb2xpY2llcy9yb290LXBvbGljeS1HMjAOBgNV
+HQ8BAf8EBAMCAQYwHQYDVR0OBBYEFJFoMocVHYnitfGsNig0jQt8YojrMA0GCSqGSIb3DQEBCwUA
+A4ICAQCoQUpnKpKBglBu4dfYszk78wIVCVBR7y29JHuIhjv5tLySCZa59sCrI2AGeYwRTlHSeYAz
++51IvuxBQ4EffkdAHOV6CMqqi3WtFMTC6GY8ggen5ieCWxjmD27ZUD6KQhgpxrRW/FYQoAUXvQwj
+f/ST7ZwaUb7dRUG/kSS0H4zpX897IZmflZ85OkYcbPnNe5yQzSipx6lVu6xiNGI1E0sUOlWDuYaN
+kqbG9AclVMwWVxJKgnjIFNkXgiYtXSAfea7+1HAWFpWD2DU5/1JddRwWxRNVz0fMdWVSSt7wsKfk
+CpYL+63C4iWEst3kvX5ZbJvw8NjnyvLplzh+ib7M+zkXYT9y2zqR2GUBGR2tUKRXCnxLvJxxcypF
+URmFzI79R6d0lR2o0a9OF7FpJsKqeFdbxU2n5Z4FF5TKsl+gSRiNNOkmbEgeqmiSBeGCc1qb3Adb
+CG19ndeNIdn8FCCqwkXfP+cAslHkwvgFuXkajDTznlvkN1trSt8sV4pAWja63XVECDdCcAz+3F4h
+oKOKwJCcaNpQ5kUQR3i2TtJlycM33+FCY7BXN0Ute4qcvwXqZVUz9zkQxSgqIXobisQk+T8VyJoV
+IPVVYpbtbZNQvOSqeK3Zywplh6ZmwcSBo3c6WB4L7oOLnR7SUqTMHW+wmG2UMbX4cQrcufx9MmDm
+66+KAQ==
+-----END CERTIFICATE-----
+
+CA Disig
+========
+-----BEGIN CERTIFICATE-----
+MIIEDzCCAvegAwIBAgIBATANBgkqhkiG9w0BAQUFADBKMQswCQYDVQQGEwJTSzETMBEGA1UEBxMK
+QnJhdGlzbGF2YTETMBEGA1UEChMKRGlzaWcgYS5zLjERMA8GA1UEAxMIQ0EgRGlzaWcwHhcNMDYw
+MzIyMDEzOTM0WhcNMTYwMzIyMDEzOTM0WjBKMQswCQYDVQQGEwJTSzETMBEGA1UEBxMKQnJhdGlz
+bGF2YTETMBEGA1UEChMKRGlzaWcgYS5zLjERMA8GA1UEAxMIQ0EgRGlzaWcwggEiMA0GCSqGSIb3
+DQEBAQUAA4IBDwAwggEKAoIBAQCS9jHBfYj9mQGp2HvycXXxMcbzdWb6UShGhJd4NLxs/LxFWYgm
+GErENx+hSkS943EE9UQX4j/8SFhvXJ56CbpRNyIjZkMhsDxkovhqFQ4/61HhVKndBpnXmjxUizkD
+Pw/Fzsbrg3ICqB9x8y34dQjbYkzo+s7552oftms1grrijxaSfQUMbEYDXcDtab86wYqg6I7ZuUUo
+hwjstMoVvoLdtUSLLa2GDGhibYVW8qwUYzrG0ZmsNHhWS8+2rT+MitcE5eN4TPWGqvWP+j1scaMt
+ymfraHtuM6kMgiioTGohQBUgDCZbg8KpFhXAJIJdKxatymP2dACw30PEEGBWZ2NFAgMBAAGjgf8w
+gfwwDwYDVR0TAQH/BAUwAwEB/zAdBgNVHQ4EFgQUjbJJaJ1yCCW5wCf1UJNWSEZx+Y8wDgYDVR0P
+AQH/BAQDAgEGMDYGA1UdEQQvMC2BE2Nhb3BlcmF0b3JAZGlzaWcuc2uGFmh0dHA6Ly93d3cuZGlz
+aWcuc2svY2EwZgYDVR0fBF8wXTAtoCugKYYnaHR0cDovL3d3dy5kaXNpZy5zay9jYS9jcmwvY2Ff
+ZGlzaWcuY3JsMCygKqAohiZodHRwOi8vY2EuZGlzaWcuc2svY2EvY3JsL2NhX2Rpc2lnLmNybDAa
+BgNVHSAEEzARMA8GDSuBHpGT5goAAAABAQEwDQYJKoZIhvcNAQEFBQADggEBAF00dGFMrzvY/59t
+WDYcPQuBDRIrRhCA/ec8J9B6yKm2fnQwM6M6int0wHl5QpNt/7EpFIKrIYwvF/k/Ji/1WcbvgAa3
+mkkp7M5+cTxqEEHA9tOasnxakZzArFvITV734VP/Q3f8nktnbNfzg9Gg4H8l37iYC5oyOGwwoPP/
+CBUz91BKez6jPiCp3C9WgArtQVCwyfTssuMmRAAOb54GvCKWU3BlxFAKRmukLyeBEicTXxChds6K
+ezfqwzlhA5WYOudsiCUI/HloDYd9Yvi0X/vF2Ey9WLw/Q1vUHgFNPGO+I++MzVpQuGhU+QqZMxEA
+4Z7CRneC9VkGjCFMhwnN5ag=
+-----END CERTIFICATE-----
+
+Juur-SK
+=======
+-----BEGIN CERTIFICATE-----
+MIIE5jCCA86gAwIBAgIEO45L/DANBgkqhkiG9w0BAQUFADBdMRgwFgYJKoZIhvcNAQkBFglwa2lA
+c2suZWUxCzAJBgNVBAYTAkVFMSIwIAYDVQQKExlBUyBTZXJ0aWZpdHNlZXJpbWlza2Vza3VzMRAw
+DgYDVQQDEwdKdXVyLVNLMB4XDTAxMDgzMDE0MjMwMVoXDTE2MDgyNjE0MjMwMVowXTEYMBYGCSqG
+SIb3DQEJARYJcGtpQHNrLmVlMQswCQYDVQQGEwJFRTEiMCAGA1UEChMZQVMgU2VydGlmaXRzZWVy
+aW1pc2tlc2t1czEQMA4GA1UEAxMHSnV1ci1TSzCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoC
+ggEBAIFxNj4zB9bjMI0TfncyRsvPGbJgMUaXhvSYRqTCZUXP00B841oiqBB4M8yIsdOBSvZiF3tf
+TQou0M+LI+5PAk676w7KvRhj6IAcjeEcjT3g/1tf6mTll+g/mX8MCgkzABpTpyHhOEvWgxutr2TC
++Rx6jGZITWYfGAriPrsfB2WThbkasLnE+w0R9vXW+RvHLCu3GFH+4Hv2qEivbDtPL+/40UceJlfw
+UR0zlv/vWT3aTdEVNMfqPxZIe5EcgEMPPbgFPtGzlc3Yyg/CQ2fbt5PgIoIuvvVoKIO5wTtpeyDa
+Tpxt4brNj3pssAki14sL2xzVWiZbDcDq5WDQn/413z8CAwEAAaOCAawwggGoMA8GA1UdEwEB/wQF
+MAMBAf8wggEWBgNVHSAEggENMIIBCTCCAQUGCisGAQQBzh8BAQEwgfYwgdAGCCsGAQUFBwICMIHD
+HoHAAFMAZQBlACAAcwBlAHIAdABpAGYAaQBrAGEAYQB0ACAAbwBuACAAdgDkAGwAagBhAHMAdABh
+AHQAdQBkACAAQQBTAC0AaQBzACAAUwBlAHIAdABpAGYAaQB0AHMAZQBlAHIAaQBtAGkAcwBrAGUA
+cwBrAHUAcwAgAGEAbABhAG0ALQBTAEsAIABzAGUAcgB0AGkAZgBpAGsAYQBhAHQAaQBkAGUAIABr
+AGkAbgBuAGkAdABhAG0AaQBzAGUAawBzMCEGCCsGAQUFBwIBFhVodHRwOi8vd3d3LnNrLmVlL2Nw
+cy8wKwYDVR0fBCQwIjAgoB6gHIYaaHR0cDovL3d3dy5zay5lZS9qdXVyL2NybC8wHQYDVR0OBBYE
+FASqekej5ImvGs8KQKcYP2/v6X2+MB8GA1UdIwQYMBaAFASqekej5ImvGs8KQKcYP2/v6X2+MA4G
+A1UdDwEB/wQEAwIB5jANBgkqhkiG9w0BAQUFAAOCAQEAe8EYlFOiCfP+JmeaUOTDBS8rNXiRTHyo
+ERF5TElZrMj3hWVcRrs7EKACr81Ptcw2Kuxd/u+gkcm2k298gFTsxwhwDY77guwqYHhpNjbRxZyL
+abVAyJRld/JXIWY7zoVAtjNjGr95HvxcHdMdkxuLDF2FvZkwMhgJkVLpfKG6/2SSmuz+Ne6ML678
+IIbsSt4beDI3poHSna9aEhbKmVv8b20OxaAehsmR0FyYgl9jDIpaq9iVpszLita/ZEuOyoqysOkh
+Mp6qqIWYNIE5ITuoOlIyPfZrN4YGWhWY3PARZv40ILcD9EEQfTmEeZZyY7aWAuVrua0ZTbvGRNs2
+yyqcjg==
+-----END CERTIFICATE-----
+
+Hongkong Post Root CA 1
+=======================
+-----BEGIN CERTIFICATE-----
+MIIDMDCCAhigAwIBAgICA+gwDQYJKoZIhvcNAQEFBQAwRzELMAkGA1UEBhMCSEsxFjAUBgNVBAoT
+DUhvbmdrb25nIFBvc3QxIDAeBgNVBAMTF0hvbmdrb25nIFBvc3QgUm9vdCBDQSAxMB4XDTAzMDUx
+NTA1MTMxNFoXDTIzMDUxNTA0NTIyOVowRzELMAkGA1UEBhMCSEsxFjAUBgNVBAoTDUhvbmdrb25n
+IFBvc3QxIDAeBgNVBAMTF0hvbmdrb25nIFBvc3QgUm9vdCBDQSAxMIIBIjANBgkqhkiG9w0BAQEF
+AAOCAQ8AMIIBCgKCAQEArP84tulmAknjorThkPlAj3n54r15/gK97iSSHSL22oVyaf7XPwnU3ZG1
+ApzQjVrhVcNQhrkpJsLj2aDxaQMoIIBFIi1WpztUlVYiWR8o3x8gPW2iNr4joLFutbEnPzlTCeqr
+auh0ssJlXI6/fMN4hM2eFvz1Lk8gKgifd/PFHsSaUmYeSF7jEAaPIpjhZY4bXSNmO7ilMlHIhqqh
+qZ5/dpTCpmy3QfDVyAY45tQM4vM7TG1QjMSDJ8EThFk9nnV0ttgCXjqQesBCNnLsak3c78QA3xMY
+V18meMjWCnl3v/evt3a5pQuEF10Q6m/hq5URX208o1xNg1vysxmKgIsLhwIDAQABoyYwJDASBgNV
+HRMBAf8ECDAGAQH/AgEDMA4GA1UdDwEB/wQEAwIBxjANBgkqhkiG9w0BAQUFAAOCAQEADkbVPK7i
+h9legYsCmEEIjEy82tvuJxuC52pF7BaLT4Wg87JwvVqWuspube5Gi27nKi6Wsxkz67SfqLI37pio
+l7Yutmcn1KZJ/RyTZXaeQi/cImyaT/JaFTmxcdcrUehtHJjA2Sr0oYJ71clBoiMBdDhViw+5Lmei
+IAQ32pwL0xch4I+XeTRvhEgCIDMb5jREn5Fw9IBehEPCKdJsEhTkYY2sEJCehFC78JZvRZ+K88ps
+T/oROhUVRsPNH4NbLUES7VBnQRM9IauUiqpOfMGx+6fWtScvl6tu4B3i0RwsH0Ti/L6RoZz71ilT
+c4afU9hDDl3WY4JxHYB0yvbiAmvZWg==
+-----END CERTIFICATE-----
+
+SecureSign RootCA11
+===================
+-----BEGIN CERTIFICATE-----
+MIIDbTCCAlWgAwIBAgIBATANBgkqhkiG9w0BAQUFADBYMQswCQYDVQQGEwJKUDErMCkGA1UEChMi
+SmFwYW4gQ2VydGlmaWNhdGlvbiBTZXJ2aWNlcywgSW5jLjEcMBoGA1UEAxMTU2VjdXJlU2lnbiBS
+b290Q0ExMTAeFw0wOTA0MDgwNDU2NDdaFw0yOTA0MDgwNDU2NDdaMFgxCzAJBgNVBAYTAkpQMSsw
+KQYDVQQKEyJKYXBhbiBDZXJ0aWZpY2F0aW9uIFNlcnZpY2VzLCBJbmMuMRwwGgYDVQQDExNTZWN1
+cmVTaWduIFJvb3RDQTExMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA/XeqpRyQBTvL
+TJszi1oURaTnkBbR31fSIRCkF/3frNYfp+TbfPfs37gD2pRY/V1yfIw/XwFndBWW4wI8h9uuywGO
+wvNmxoVF9ALGOrVisq/6nL+k5tSAMJjzDbaTj6nU2DbysPyKyiyhFTOVMdrAG/LuYpmGYz+/3ZMq
+g6h2uRMft85OQoWPIucuGvKVCbIFtUROd6EgvanyTgp9UK31BQ1FT0Zx/Sg+U/sE2C3XZR1KG/rP
+O7AxmjVuyIsG0wCR8pQIZUyxNAYAeoni8McDWc/V1uinMrPmmECGxc0nEovMe863ETxiYAcjPitA
+bpSACW22s293bzUIUPsCh8U+iQIDAQABo0IwQDAdBgNVHQ4EFgQUW/hNT7KlhtQ60vFjmqC+CfZX
+t94wDgYDVR0PAQH/BAQDAgEGMA8GA1UdEwEB/wQFMAMBAf8wDQYJKoZIhvcNAQEFBQADggEBAKCh
+OBZmLqdWHyGcBvod7bkixTgm2E5P7KN/ed5GIaGHd48HCJqypMWvDzKYC3xmKbabfSVSSUOrTC4r
+bnpwrxYO4wJs+0LmGJ1F2FXI6Dvd5+H0LgscNFxsWEr7jIhQX5Ucv+2rIrVls4W6ng+4reV6G4pQ
+Oh29Dbx7VFALuUKvVaAYga1lme++5Jy/xIWrQbJUb9wlze144o4MjQlJ3WN7WmmWAiGovVJZ6X01
+y8hSyn+B/tlr0/cR7SXf+Of5pPpyl4RTDaXQMhhRdlkUbA/r7F+AjHVDg8OFmP9Mni0N5HeDk061
+lgeLKBObjBmNQSdJQO7e5iNEOdyhIta6A/I=
+-----END CERTIFICATE-----
+
+ACEDICOM Root
+=============
+-----BEGIN CERTIFICATE-----
+MIIFtTCCA52gAwIBAgIIYY3HhjsBggUwDQYJKoZIhvcNAQEFBQAwRDEWMBQGA1UEAwwNQUNFRElD
+T00gUm9vdDEMMAoGA1UECwwDUEtJMQ8wDQYDVQQKDAZFRElDT00xCzAJBgNVBAYTAkVTMB4XDTA4
+MDQxODE2MjQyMloXDTI4MDQxMzE2MjQyMlowRDEWMBQGA1UEAwwNQUNFRElDT00gUm9vdDEMMAoG
+A1UECwwDUEtJMQ8wDQYDVQQKDAZFRElDT00xCzAJBgNVBAYTAkVTMIICIjANBgkqhkiG9w0BAQEF
+AAOCAg8AMIICCgKCAgEA/5KV4WgGdrQsyFhIyv2AVClVYyT/kGWbEHV7w2rbYgIB8hiGtXxaOLHk
+WLn709gtn70yN78sFW2+tfQh0hOR2QetAQXW8713zl9CgQr5auODAKgrLlUTY4HKRxx7XBZXehuD
+YAQ6PmXDzQHe3qTWDLqO3tkE7hdWIpuPY/1NFgu3e3eM+SW10W2ZEi5PGrjm6gSSrj0RuVFCPYew
+MYWveVqc/udOXpJPQ/yrOq2lEiZmueIM15jO1FillUAKt0SdE3QrwqXrIhWYENiLxQSfHY9g5QYb
+m8+5eaA9oiM/Qj9r+hwDezCNzmzAv+YbX79nuIQZ1RXve8uQNjFiybwCq0Zfm/4aaJQ0PZCOrfbk
+HQl/Sog4P75n/TSW9R28MHTLOO7VbKvU/PQAtwBbhTIWdjPp2KOZnQUAqhbm84F9b32qhm2tFXTT
+xKJxqvQUfecyuB+81fFOvW8XAjnXDpVCOscAPukmYxHqC9FK/xidstd7LzrZlvvoHpKuE1XI2Sf2
+3EgbsCTBheN3nZqk8wwRHQ3ItBTutYJXCb8gWH8vIiPYcMt5bMlL8qkqyPyHK9caUPgn6C9D4zq9
+2Fdx/c6mUlv53U3t5fZvie27k5x2IXXwkkwp9y+cAS7+UEaeZAwUswdbxcJzbPEHXEUkFDWug/Fq
+TYl6+rPYLWbwNof1K1MCAwEAAaOBqjCBpzAPBgNVHRMBAf8EBTADAQH/MB8GA1UdIwQYMBaAFKaz
+4SsrSbbXc6GqlPUB53NlTKxQMA4GA1UdDwEB/wQEAwIBhjAdBgNVHQ4EFgQUprPhKytJttdzoaqU
+9QHnc2VMrFAwRAYDVR0gBD0wOzA5BgRVHSAAMDEwLwYIKwYBBQUHAgEWI2h0dHA6Ly9hY2VkaWNv
+bS5lZGljb21ncm91cC5jb20vZG9jMA0GCSqGSIb3DQEBBQUAA4ICAQDOLAtSUWImfQwng4/F9tqg
+aHtPkl7qpHMyEVNEskTLnewPeUKzEKbHDZ3Ltvo/Onzqv4hTGzz3gvoFNTPhNahXwOf9jU8/kzJP
+eGYDdwdY6ZXIfj7QeQCM8htRM5u8lOk6e25SLTKeI6RF+7YuE7CLGLHdztUdp0J/Vb77W7tH1Pwk
+zQSulgUV1qzOMPPKC8W64iLgpq0i5ALudBF/TP94HTXa5gI06xgSYXcGCRZj6hitoocf8seACQl1
+ThCojz2GuHURwCRiipZ7SkXp7FnFvmuD5uHorLUwHv4FB4D54SMNUI8FmP8sX+g7tq3PgbUhh8oI
+KiMnMCArz+2UW6yyetLHKKGKC5tNSixthT8Jcjxn4tncB7rrZXtaAWPWkFtPF2Y9fwsZo5NjEFIq
+nxQWWOLcpfShFosOkYuByptZ+thrkQdlVV9SH686+5DdaaVbnG0OLLb6zqylfDJKZ0DcMDQj3dcE
+I2bw/FWAp/tmGYI1Z2JwOV5vx+qQQEQIHriy1tvuWacNGHk0vFQYXlPKNFHtRQrmjseCNj6nOGOp
+MCwXEGCSn1WHElkQwg9naRHMTh5+Spqtr0CodaxWkHS4oJyleW/c6RrIaQXpuvoDs3zk4E7Czp3o
+tkYNbn5XOmeUwssfnHdKZ05phkOTOPu220+DkdRgfks+KzgHVZhepA==
+-----END CERTIFICATE-----
+
+Verisign Class 3 Public Primary Certification Authority
+=======================================================
+-----BEGIN CERTIFICATE-----
+MIICPDCCAaUCEDyRMcsf9tAbDpq40ES/Er4wDQYJKoZIhvcNAQEFBQAwXzELMAkGA1UEBhMCVVMx
+FzAVBgNVBAoTDlZlcmlTaWduLCBJbmMuMTcwNQYDVQQLEy5DbGFzcyAzIFB1YmxpYyBQcmltYXJ5
+IENlcnRpZmljYXRpb24gQXV0aG9yaXR5MB4XDTk2MDEyOTAwMDAwMFoXDTI4MDgwMjIzNTk1OVow
+XzELMAkGA1UEBhMCVVMxFzAVBgNVBAoTDlZlcmlTaWduLCBJbmMuMTcwNQYDVQQLEy5DbGFzcyAz
+IFB1YmxpYyBQcmltYXJ5IENlcnRpZmljYXRpb24gQXV0aG9yaXR5MIGfMA0GCSqGSIb3DQEBAQUA
+A4GNADCBiQKBgQDJXFme8huKARS0EN8EQNvjV69qRUCPhAwL0TPZ2RHP7gJYHyX3KqhEBarsAx94
+f56TuZoAqiN91qyFomNFx3InzPRMxnVx0jnvT0Lwdd8KkMaOIG+YD/isI19wKTakyYbnsZogy1Ol
+hec9vn2a/iRFM9x2Fe0PonFkTGUugWhFpwIDAQABMA0GCSqGSIb3DQEBBQUAA4GBABByUqkFFBky
+CEHwxWsKzH4PIRnN5GfcX6kb5sroc50i2JhucwNhkcV8sEVAbkSdjbCxlnRhLQ2pRdKkkirWmnWX
+bj9T/UWZYB2oK0z5XqcJ2HUw19JlYD1n1khVdWk/kfVIC0dpImmClr7JyDiGSnoscxlIaU5rfGW/
+D/xwzoiQ
+-----END CERTIFICATE-----
+
+Microsec e-Szigno Root CA 2009
+==============================
+-----BEGIN CERTIFICATE-----
+MIIECjCCAvKgAwIBAgIJAMJ+QwRORz8ZMA0GCSqGSIb3DQEBCwUAMIGCMQswCQYDVQQGEwJIVTER
+MA8GA1UEBwwIQnVkYXBlc3QxFjAUBgNVBAoMDU1pY3Jvc2VjIEx0ZC4xJzAlBgNVBAMMHk1pY3Jv
+c2VjIGUtU3ppZ25vIFJvb3QgQ0EgMjAwOTEfMB0GCSqGSIb3DQEJARYQaW5mb0BlLXN6aWduby5o
+dTAeFw0wOTA2MTYxMTMwMThaFw0yOTEyMzAxMTMwMThaMIGCMQswCQYDVQQGEwJIVTERMA8GA1UE
+BwwIQnVkYXBlc3QxFjAUBgNVBAoMDU1pY3Jvc2VjIEx0ZC4xJzAlBgNVBAMMHk1pY3Jvc2VjIGUt
+U3ppZ25vIFJvb3QgQ0EgMjAwOTEfMB0GCSqGSIb3DQEJARYQaW5mb0BlLXN6aWduby5odTCCASIw
+DQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAOn4j/NjrdqG2KfgQvvPkd6mJviZpWNwrZuuyjNA
+fW2WbqEORO7hE52UQlKavXWFdCyoDh2Tthi3jCyoz/tccbna7P7ofo/kLx2yqHWH2Leh5TvPmUpG
+0IMZfcChEhyVbUr02MelTTMuhTlAdX4UfIASmFDHQWe4oIBhVKZsTh/gnQ4H6cm6M+f+wFUoLAKA
+pxn1ntxVUwOXewdI/5n7N4okxFnMUBBjjqqpGrCEGob5X7uxUG6k0QrM1XF+H6cbfPVTbiJfyyvm
+1HxdrtbCxkzlBQHZ7Vf8wSN5/PrIJIOV87VqUQHQd9bpEqH5GoP7ghu5sJf0dgYzQ0mg/wu1+rUC
+AwEAAaOBgDB+MA8GA1UdEwEB/wQFMAMBAf8wDgYDVR0PAQH/BAQDAgEGMB0GA1UdDgQWBBTLD8bf
+QkPMPcu1SCOhGnqmKrs0aDAfBgNVHSMEGDAWgBTLD8bfQkPMPcu1SCOhGnqmKrs0aDAbBgNVHREE
+FDASgRBpbmZvQGUtc3ppZ25vLmh1MA0GCSqGSIb3DQEBCwUAA4IBAQDJ0Q5eLtXMs3w+y/w9/w0o
+lZMEyL/azXm4Q5DwpL7v8u8hmLzU1F0G9u5C7DBsoKqpyvGvivo/C3NqPuouQH4frlRheesuCDfX
+I/OMn74dseGkddug4lQUsbocKaQY9hK6ohQU4zE1yED/t+AFdlfBHFny+L/k7SViXITwfn4fs775
+tyERzAMBVnCnEJIeGzSBHq2cGsMEPO0CYdYeBvNfOofyK/FFh+U9rNHHV4S9a67c2Pm2G2JwCz02
+yULyMtd6YebS2z3PyKnJm9zbWETXbzivf3jTo60adbocwTZ8jx5tHMN1Rq41Bab2XD0h7lbwyYIi
+LXpUq3DDfSJlgnCW
+-----END CERTIFICATE-----
+
+E-Guven Kok Elektronik Sertifika Hizmet Saglayicisi
+===================================================
+-----BEGIN CERTIFICATE-----
+MIIDtjCCAp6gAwIBAgIQRJmNPMADJ72cdpW56tustTANBgkqhkiG9w0BAQUFADB1MQswCQYDVQQG
+EwJUUjEoMCYGA1UEChMfRWxla3Ryb25payBCaWxnaSBHdXZlbmxpZ2kgQS5TLjE8MDoGA1UEAxMz
+ZS1HdXZlbiBLb2sgRWxla3Ryb25payBTZXJ0aWZpa2EgSGl6bWV0IFNhZ2xheWljaXNpMB4XDTA3
+MDEwNDExMzI0OFoXDTE3MDEwNDExMzI0OFowdTELMAkGA1UEBhMCVFIxKDAmBgNVBAoTH0VsZWt0
+cm9uaWsgQmlsZ2kgR3V2ZW5saWdpIEEuUy4xPDA6BgNVBAMTM2UtR3V2ZW4gS29rIEVsZWt0cm9u
+aWsgU2VydGlmaWthIEhpem1ldCBTYWdsYXlpY2lzaTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCC
+AQoCggEBAMMSIJ6wXgBljU5Gu4Bc6SwGl9XzcslwuedLZYDBS75+PNdUMZTe1RK6UxYC6lhj71vY
+8+0qGqpxSKPcEC1fX+tcS5yWCEIlKBHMilpiAVDV6wlTL/jDj/6z/P2douNffb7tC+Bg62nsM+3Y
+jfsSSYMAyYuXjDtzKjKzEve5TfL0TW3H5tYmNwjy2f1rXKPlSFxYvEK+A1qBuhw1DADT9SN+cTAI
+JjjcJRFHLfO6IxClv7wC90Nex/6wN1CZew+TzuZDLMN+DfIcQ2Zgy2ExR4ejT669VmxMvLz4Bcpk
+9Ok0oSy1c+HCPujIyTQlCFzz7abHlJ+tiEMl1+E5YP6sOVkCAwEAAaNCMEAwDgYDVR0PAQH/BAQD
+AgEGMA8GA1UdEwEB/wQFMAMBAf8wHQYDVR0OBBYEFJ/uRLOU1fqRTy7ZVZoEVtstxNulMA0GCSqG
+SIb3DQEBBQUAA4IBAQB/X7lTW2M9dTLn+sR0GstG30ZpHFLPqk/CaOv/gKlR6D1id4k9CnU58W5d
+F4dvaAXBlGzZXd/aslnLpRCKysw5zZ/rTt5S/wzw9JKp8mxTq5vSR6AfdPebmvEvFZ96ZDAYBzwq
+D2fK/A+JYZ1lpTzlvBNbCNvj/+27BrtqBrF6T2XGgv0enIu1De5Iu7i9qgi0+6N8y5/NkHZchpZ4
+Vwpm+Vganf2XKWDeEaaQHBkc7gGWIjQ0LpH5t8Qn0Xvmv/uARFoW5evg1Ao4vOSR49XrXMGs3xtq
+fJ7lddK2l4fbzIcrQzqECK+rPNv3PGYxhrCdU3nt+CPeQuMtgvEP5fqX
+-----END CERTIFICATE-----
+
+GlobalSign Root CA - R3
+=======================
+-----BEGIN CERTIFICATE-----
+MIIDXzCCAkegAwIBAgILBAAAAAABIVhTCKIwDQYJKoZIhvcNAQELBQAwTDEgMB4GA1UECxMXR2xv
+YmFsU2lnbiBSb290IENBIC0gUjMxEzARBgNVBAoTCkdsb2JhbFNpZ24xEzARBgNVBAMTCkdsb2Jh
+bFNpZ24wHhcNMDkwMzE4MTAwMDAwWhcNMjkwMzE4MTAwMDAwWjBMMSAwHgYDVQQLExdHbG9iYWxT
+aWduIFJvb3QgQ0EgLSBSMzETMBEGA1UEChMKR2xvYmFsU2lnbjETMBEGA1UEAxMKR2xvYmFsU2ln
+bjCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAMwldpB5BngiFvXAg7aEyiie/QV2EcWt
+iHL8RgJDx7KKnQRfJMsuS+FggkbhUqsMgUdwbN1k0ev1LKMPgj0MK66X17YUhhB5uzsTgHeMCOFJ
+0mpiLx9e+pZo34knlTifBtc+ycsmWQ1z3rDI6SYOgxXG71uL0gRgykmmKPZpO/bLyCiR5Z2KYVc3
+rHQU3HTgOu5yLy6c+9C7v/U9AOEGM+iCK65TpjoWc4zdQQ4gOsC0p6Hpsk+QLjJg6VfLuQSSaGjl
+OCZgdbKfd/+RFO+uIEn8rUAVSNECMWEZXriX7613t2Saer9fwRPvm2L7DWzgVGkWqQPabumDk3F2
+xmmFghcCAwEAAaNCMEAwDgYDVR0PAQH/BAQDAgEGMA8GA1UdEwEB/wQFMAMBAf8wHQYDVR0OBBYE
+FI/wS3+oLkUkrk1Q+mOai97i3Ru8MA0GCSqGSIb3DQEBCwUAA4IBAQBLQNvAUKr+yAzv95ZURUm7
+lgAJQayzE4aGKAczymvmdLm6AC2upArT9fHxD4q/c2dKg8dEe3jgr25sbwMpjjM5RcOO5LlXbKr8
+EpbsU8Yt5CRsuZRj+9xTaGdWPoO4zzUhw8lo/s7awlOqzJCK6fBdRoyV3XpYKBovHd7NADdBj+1E
+bddTKJd+82cEHhXXipa0095MJ6RMG3NzdvQXmcIfeg7jLQitChws/zyrVQ4PkX4268NXSb7hLi18
+YIvDQVETI53O9zJrlAGomecsMx86OyXShkDOOyyGeMlhLxS67ttVb9+E7gUJTb0o2HLO02JQZR7r
+kpeDMdmztcpHWD9f
+-----END CERTIFICATE-----
+
+TC TrustCenter Universal CA III
+===============================
+-----BEGIN CERTIFICATE-----
+MIID4TCCAsmgAwIBAgIOYyUAAQACFI0zFQLkbPQwDQYJKoZIhvcNAQEFBQAwezELMAkGA1UEBhMC
+REUxHDAaBgNVBAoTE1RDIFRydXN0Q2VudGVyIEdtYkgxJDAiBgNVBAsTG1RDIFRydXN0Q2VudGVy
+IFVuaXZlcnNhbCBDQTEoMCYGA1UEAxMfVEMgVHJ1c3RDZW50ZXIgVW5pdmVyc2FsIENBIElJSTAe
+Fw0wOTA5MDkwODE1MjdaFw0yOTEyMzEyMzU5NTlaMHsxCzAJBgNVBAYTAkRFMRwwGgYDVQQKExNU
+QyBUcnVzdENlbnRlciBHbWJIMSQwIgYDVQQLExtUQyBUcnVzdENlbnRlciBVbml2ZXJzYWwgQ0Ex
+KDAmBgNVBAMTH1RDIFRydXN0Q2VudGVyIFVuaXZlcnNhbCBDQSBJSUkwggEiMA0GCSqGSIb3DQEB
+AQUAA4IBDwAwggEKAoIBAQDC2pxisLlxErALyBpXsq6DFJmzNEubkKLF5+cvAqBNLaT6hdqbJYUt
+QCggbergvbFIgyIpRJ9Og+41URNzdNW88jBmlFPAQDYvDIRlzg9uwliT6CwLOunBjvvya8o84pxO
+juT5fdMnnxvVZ3iHLX8LR7PH6MlIfK8vzArZQe+f/prhsq75U7Xl6UafYOPfjdN/+5Z+s7Vy+Eut
+CHnNaYlAJ/Uqwa1D7KRTyGG299J5KmcYdkhtWyUB0SbFt1dpIxVbYYqt8Bst2a9c8SaQaanVDED1
+M4BDj5yjdipFtK+/fz6HP3bFzSreIMUWWMv5G/UPyw0RUmS40nZid4PxWJ//AgMBAAGjYzBhMB8G
+A1UdIwQYMBaAFFbn4VslQ4Dg9ozhcbyO5YAvxEjiMA8GA1UdEwEB/wQFMAMBAf8wDgYDVR0PAQH/
+BAQDAgEGMB0GA1UdDgQWBBRW5+FbJUOA4PaM4XG8juWAL8RI4jANBgkqhkiG9w0BAQUFAAOCAQEA
+g8ev6n9NCjw5sWi+e22JLumzCecYV42FmhfzdkJQEw/HkG8zrcVJYCtsSVgZ1OK+t7+rSbyUyKu+
+KGwWaODIl0YgoGhnYIg5IFHYaAERzqf2EQf27OysGh+yZm5WZ2B6dF7AbZc2rrUNXWZzwCUyRdhK
+BgePxLcHsU0GDeGl6/R1yrqc0L2z0zIkTO5+4nYES0lT2PLpVDP85XEfPRRclkvxOvIAu2y0+pZV
+CIgJwcyRGSmwIC3/yzikQOEXvnlhgP8HA4ZMTnsGnxGGjYnuJ8Tb4rwZjgvDwxPHLQNjO9Po5KIq
+woIIlBZU8O8fJ5AluA0OKBtHd0e9HKgl8ZS0Zg==
+-----END CERTIFICATE-----
+
+Autoridad de Certificacion Firmaprofesional CIF A62634068
+=========================================================
+-----BEGIN CERTIFICATE-----
+MIIGFDCCA/ygAwIBAgIIU+w77vuySF8wDQYJKoZIhvcNAQEFBQAwUTELMAkGA1UEBhMCRVMxQjBA
+BgNVBAMMOUF1dG9yaWRhZCBkZSBDZXJ0aWZpY2FjaW9uIEZpcm1hcHJvZmVzaW9uYWwgQ0lGIEE2
+MjYzNDA2ODAeFw0wOTA1MjAwODM4MTVaFw0zMDEyMzEwODM4MTVaMFExCzAJBgNVBAYTAkVTMUIw
+QAYDVQQDDDlBdXRvcmlkYWQgZGUgQ2VydGlmaWNhY2lvbiBGaXJtYXByb2Zlc2lvbmFsIENJRiBB
+NjI2MzQwNjgwggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQDKlmuO6vj78aI14H9M2uDD
+Utd9thDIAl6zQyrET2qyyhxdKJp4ERppWVevtSBC5IsP5t9bpgOSL/UR5GLXMnE42QQMcas9UX4P
+B99jBVzpv5RvwSmCwLTaUbDBPLutN0pcyvFLNg4kq7/DhHf9qFD0sefGL9ItWY16Ck6WaVICqjaY
+7Pz6FIMMNx/Jkjd/14Et5cS54D40/mf0PmbR0/RAz15iNA9wBj4gGFrO93IbJWyTdBSTo3OxDqqH
+ECNZXyAFGUftaI6SEspd/NYrspI8IM/hX68gvqB2f3bl7BqGYTM+53u0P6APjqK5am+5hyZvQWyI
+plD9amML9ZMWGxmPsu2bm8mQ9QEM3xk9Dz44I8kvjwzRAv4bVdZO0I08r0+k8/6vKtMFnXkIoctX
+MbScyJCyZ/QYFpM6/EfY0XiWMR+6KwxfXZmtY4laJCB22N/9q06mIqqdXuYnin1oKaPnirjaEbsX
+LZmdEyRG98Xi2J+Of8ePdG1asuhy9azuJBCtLxTa/y2aRnFHvkLfuwHb9H/TKI8xWVvTyQKmtFLK
+bpf7Q8UIJm+K9Lv9nyiqDdVF8xM6HdjAeI9BZzwelGSuewvF6NkBiDkal4ZkQdU7hwxu+g/GvUgU
+vzlN1J5Bto+WHWOWk9mVBngxaJ43BjuAiUVhOSPHG0SjFeUc+JIwuwIDAQABo4HvMIHsMBIGA1Ud
+EwEB/wQIMAYBAf8CAQEwDgYDVR0PAQH/BAQDAgEGMB0GA1UdDgQWBBRlzeurNR4APn7VdMActHNH
+DhpkLzCBpgYDVR0gBIGeMIGbMIGYBgRVHSAAMIGPMC8GCCsGAQUFBwIBFiNodHRwOi8vd3d3LmZp
+cm1hcHJvZmVzaW9uYWwuY29tL2NwczBcBggrBgEFBQcCAjBQHk4AUABhAHMAZQBvACAAZABlACAA
+bABhACAAQgBvAG4AYQBuAG8AdgBhACAANAA3ACAAQgBhAHIAYwBlAGwAbwBuAGEAIAAwADgAMAAx
+ADcwDQYJKoZIhvcNAQEFBQADggIBABd9oPm03cXF661LJLWhAqvdpYhKsg9VSytXjDvlMd3+xDLx
+51tkljYyGOylMnfX40S2wBEqgLk9am58m9Ot/MPWo+ZkKXzR4Tgegiv/J2Wv+xYVxC5xhOW1//qk
+R71kMrv2JYSiJ0L1ILDCExARzRAVukKQKtJE4ZYm6zFIEv0q2skGz3QeqUvVhyj5eTSSPi5E6PaP
+T481PyWzOdxjKpBrIF/EUhJOlywqrJ2X3kjyo2bbwtKDlaZmp54lD+kLM5FlClrD2VQS3a/DTg4f
+Jl4N3LON7NWBcN7STyQF82xO9UxJZo3R/9ILJUFI/lGExkKvgATP0H5kSeTy36LssUzAKh3ntLFl
+osS88Zj0qnAHY7S42jtM+kAiMFsRpvAFDsYCA0irhpuF3dvd6qJ2gHN99ZwExEWN57kci57q13XR
+crHedUTnQn3iV2t93Jm8PYMo6oCTjcVMZcFwgbg4/EMxsvYDNEeyrPsiBsse3RdHHF9mudMaotoR
+saS8I8nkvof/uZS2+F0gStRf571oe2XyFR7SOqkt6dhrJKyXWERHrVkY8SFlcN7ONGCoQPHzPKTD
+KCOM/iczQ0CgFzzr6juwcqajuUpLXhZI9LK8yIySxZ2frHI2vDSANGupi5LAuBft7HZT9SQBjLMi
+6Et8Vcad+qMUu2WFbm5PEn4KPJ2V
+-----END CERTIFICATE-----
+
+Izenpe.com
+==========
+-----BEGIN CERTIFICATE-----
+MIIF8TCCA9mgAwIBAgIQALC3WhZIX7/hy/WL1xnmfTANBgkqhkiG9w0BAQsFADA4MQswCQYDVQQG
+EwJFUzEUMBIGA1UECgwLSVpFTlBFIFMuQS4xEzARBgNVBAMMCkl6ZW5wZS5jb20wHhcNMDcxMjEz
+MTMwODI4WhcNMzcxMjEzMDgyNzI1WjA4MQswCQYDVQQGEwJFUzEUMBIGA1UECgwLSVpFTlBFIFMu
+QS4xEzARBgNVBAMMCkl6ZW5wZS5jb20wggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoICAQDJ
+03rKDx6sp4boFmVqscIbRTJxldn+EFvMr+eleQGPicPK8lVx93e+d5TzcqQsRNiekpsUOqHnJJAK
+ClaOxdgmlOHZSOEtPtoKct2jmRXagaKH9HtuJneJWK3W6wyyQXpzbm3benhB6QiIEn6HLmYRY2xU
++zydcsC8Lv/Ct90NduM61/e0aL6i9eOBbsFGb12N4E3GVFWJGjMxCrFXuaOKmMPsOzTFlUFpfnXC
+PCDFYbpRR6AgkJOhkEvzTnyFRVSa0QUmQbC1TR0zvsQDyCV8wXDbO/QJLVQnSKwv4cSsPsjLkkxT
+OTcj7NMB+eAJRE1NZMDhDVqHIrytG6P+JrUV86f8hBnp7KGItERphIPzidF0BqnMC9bC3ieFUCbK
+F7jJeodWLBoBHmy+E60QrLUk9TiRodZL2vG70t5HtfG8gfZZa88ZU+mNFctKy6lvROUbQc/hhqfK
+0GqfvEyNBjNaooXlkDWgYlwWTvDjovoDGrQscbNYLN57C9saD+veIR8GdwYDsMnvmfzAuU8Lhij+
+0rnq49qlw0dpEuDb8PYZi+17cNcC1u2HGCgsBCRMd+RIihrGO5rUD8r6ddIBQFqNeb+Lz0vPqhbB
+leStTIo+F5HUsWLlguWABKQDfo2/2n+iD5dPDNMN+9fR5XJ+HMh3/1uaD7euBUbl8agW7EekFwID
+AQABo4H2MIHzMIGwBgNVHREEgagwgaWBD2luZm9AaXplbnBlLmNvbaSBkTCBjjFHMEUGA1UECgw+
+SVpFTlBFIFMuQS4gLSBDSUYgQTAxMzM3MjYwLVJNZXJjLlZpdG9yaWEtR2FzdGVpeiBUMTA1NSBG
+NjIgUzgxQzBBBgNVBAkMOkF2ZGEgZGVsIE1lZGl0ZXJyYW5lbyBFdG9yYmlkZWEgMTQgLSAwMTAx
+MCBWaXRvcmlhLUdhc3RlaXowDwYDVR0TAQH/BAUwAwEB/zAOBgNVHQ8BAf8EBAMCAQYwHQYDVR0O
+BBYEFB0cZQ6o8iV7tJHP5LGx5r1VdGwFMA0GCSqGSIb3DQEBCwUAA4ICAQB4pgwWSp9MiDrAyw6l
+Fn2fuUhfGI8NYjb2zRlrrKvV9pF9rnHzP7MOeIWblaQnIUdCSnxIOvVFfLMMjlF4rJUT3sb9fbga
+kEyrkgPH7UIBzg/YsfqikuFgba56awmqxinuaElnMIAkejEWOVt+8Rwu3WwJrfIxwYJOubv5vr8q
+hT/AQKM6WfxZSzwoJNu0FXWuDYi6LnPAvViH5ULy617uHjAimcs30cQhbIHsvm0m5hzkQiCeR7Cs
+g1lwLDXWrzY0tM07+DKo7+N4ifuNRSzanLh+QBxh5z6ikixL8s36mLYp//Pye6kfLqCTVyvehQP5
+aTfLnnhqBbTFMXiJ7HqnheG5ezzevh55hM6fcA5ZwjUukCox2eRFekGkLhObNA5me0mrZJfQRsN5
+nXJQY6aYWwa9SG3YOYNw6DXwBdGqvOPbyALqfP2C2sJbUjWumDqtujWTI6cfSN01RpiyEGjkpTHC
+ClguGYEQyVB1/OpaFs4R1+7vUIgtYf8/QnMFlEPVjjxOAToZpR9GTnfQXeWBIiGH/pR9hNiTrdZo
+Q0iy2+tzJOeRf1SktoA+naM8THLCV8Sg1Mw4J87VBp6iSNnpn86CcDaTmjvfliHjWbcM2pE38P1Z
+WrOZyGlsQyYBNWNgVYkDOnXYukrZVP/u3oDYLdE41V4tC5h9Pmzb/CaIxw==
+-----END CERTIFICATE-----
+
+Chambers of Commerce Root - 2008
+================================
+-----BEGIN CERTIFICATE-----
+MIIHTzCCBTegAwIBAgIJAKPaQn6ksa7aMA0GCSqGSIb3DQEBBQUAMIGuMQswCQYDVQQGEwJFVTFD
+MEEGA1UEBxM6TWFkcmlkIChzZWUgY3VycmVudCBhZGRyZXNzIGF0IHd3dy5jYW1lcmZpcm1hLmNv
+bS9hZGRyZXNzKTESMBAGA1UEBRMJQTgyNzQzMjg3MRswGQYDVQQKExJBQyBDYW1lcmZpcm1hIFMu
+QS4xKTAnBgNVBAMTIENoYW1iZXJzIG9mIENvbW1lcmNlIFJvb3QgLSAyMDA4MB4XDTA4MDgwMTEy
+Mjk1MFoXDTM4MDczMTEyMjk1MFowga4xCzAJBgNVBAYTAkVVMUMwQQYDVQQHEzpNYWRyaWQgKHNl
+ZSBjdXJyZW50IGFkZHJlc3MgYXQgd3d3LmNhbWVyZmlybWEuY29tL2FkZHJlc3MpMRIwEAYDVQQF
+EwlBODI3NDMyODcxGzAZBgNVBAoTEkFDIENhbWVyZmlybWEgUy5BLjEpMCcGA1UEAxMgQ2hhbWJl
+cnMgb2YgQ29tbWVyY2UgUm9vdCAtIDIwMDgwggIiMA0GCSqGSIb3DQEBAQUAA4ICDwAwggIKAoIC
+AQCvAMtwNyuAWko6bHiUfaN/Gh/2NdW928sNRHI+JrKQUrpjOyhYb6WzbZSm891kDFX29ufyIiKA
+XuFixrYp4YFs8r/lfTJqVKAyGVn+H4vXPWCGhSRv4xGzdz4gljUha7MI2XAuZPeEklPWDrCQiorj
+h40G072QDuKZoRuGDtqaCrsLYVAGUvGef3bsyw/QHg3PmTA9HMRFEFis1tPo1+XqxQEHd9ZR5gN/
+ikilTWh1uem8nk4ZcfUyS5xtYBkL+8ydddy/Js2Pk3g5eXNeJQ7KXOt3EgfLZEFHcpOrUMPrCXZk
+NNI5t3YRCQ12RcSprj1qr7V9ZS+UWBDsXHyvfuK2GNnQm05aSd+pZgvMPMZ4fKecHePOjlO+Bd5g
+D2vlGts/4+EhySnB8esHnFIbAURRPHsl18TlUlRdJQfKFiC4reRB7noI/plvg6aRArBsNlVq5331
+lubKgdaX8ZSD6e2wsWsSaR6s+12pxZjptFtYer49okQ6Y1nUCyXeG0+95QGezdIp1Z8XGQpvvwyQ
+0wlf2eOKNcx5Wk0ZN5K3xMGtr/R5JJqyAQuxr1yW84Ay+1w9mPGgP0revq+ULtlVmhduYJ1jbLhj
+ya6BXBg14JC7vjxPNyK5fuvPnnchpj04gftI2jE9K+OJ9dC1vX7gUMQSibMjmhAxhduub+84Mxh2
+EQIDAQABo4IBbDCCAWgwEgYDVR0TAQH/BAgwBgEB/wIBDDAdBgNVHQ4EFgQU+SSsD7K1+HnA+mCI
+G8TZTQKeFxkwgeMGA1UdIwSB2zCB2IAU+SSsD7K1+HnA+mCIG8TZTQKeFxmhgbSkgbEwga4xCzAJ
+BgNVBAYTAkVVMUMwQQYDVQQHEzpNYWRyaWQgKHNlZSBjdXJyZW50IGFkZHJlc3MgYXQgd3d3LmNh
+bWVyZmlybWEuY29tL2FkZHJlc3MpMRIwEAYDVQQFEwlBODI3NDMyODcxGzAZBgNVBAoTEkFDIENh
+bWVyZmlybWEgUy5BLjEpMCcGA1UEAxMgQ2hhbWJlcnMgb2YgQ29tbWVyY2UgUm9vdCAtIDIwMDiC
+CQCj2kJ+pLGu2jAOBgNVHQ8BAf8EBAMCAQYwPQYDVR0gBDYwNDAyBgRVHSAAMCowKAYIKwYBBQUH
+AgEWHGh0dHA6Ly9wb2xpY3kuY2FtZXJmaXJtYS5jb20wDQYJKoZIhvcNAQEFBQADggIBAJASryI1
+wqM58C7e6bXpeHxIvj99RZJe6dqxGfwWPJ+0W2aeaufDuV2I6A+tzyMP3iU6XsxPpcG1Lawk0lgH
+3qLPaYRgM+gQDROpI9CF5Y57pp49chNyM/WqfcZjHwj0/gF/JM8rLFQJ3uIrbZLGOU8W6jx+ekbU
+RWpGqOt1glanq6B8aBMz9p0w8G8nOSQjKpD9kCk18pPfNKXG9/jvjA9iSnyu0/VU+I22mlaHFoI6
+M6taIgj3grrqLuBHmrS1RaMFO9ncLkVAO+rcf+g769HsJtg1pDDFOqxXnrN2pSB7+R5KBWIBpih1
+YJeSDW4+TTdDDZIVnBgizVGZoCkaPF+KMjNbMMeJL0eYD6MDxvbxrN8y8NmBGuScvfaAFPDRLLmF
+9dijscilIeUcE5fuDr3fKanvNFNb0+RqE4QGtjICxFKuItLcsiFCGtpA8CnJ7AoMXOLQusxI0zcK
+zBIKinmwPQN/aUv0NCB9szTqjktk9T79syNnFQ0EuPAtwQlRPLJsFfClI9eDdOTlLsn+mCdCxqvG
+nrDQWzilm1DefhiYtUU79nm06PcaewaD+9CL2rvHvRirCG88gGtAPxkZumWK5r7VXNM21+9AUiRg
+OGcEMeyP84LG3rlV8zsxkVrctQgVrXYlCg17LofiDKYGvCYQbTed7N14jHyAxfDZd0jQ
+-----END CERTIFICATE-----
+
+Global Chambersign Root - 2008
+==============================
+-----BEGIN CERTIFICATE-----
+MIIHSTCCBTGgAwIBAgIJAMnN0+nVfSPOMA0GCSqGSIb3DQEBBQUAMIGsMQswCQYDVQQGEwJFVTFD
+MEEGA1UEBxM6TWFkcmlkIChzZWUgY3VycmVudCBhZGRyZXNzIGF0IHd3dy5jYW1lcmZpcm1hLmNv
+bS9hZGRyZXNzKTESMBAGA1UEBRMJQTgyNzQzMjg3MRswGQYDVQQKExJBQyBDYW1lcmZpcm1hIFMu
+QS4xJzAlBgNVBAMTHkdsb2JhbCBDaGFtYmVyc2lnbiBSb290IC0gMjAwODAeFw0wODA4MDExMjMx
+NDBaFw0zODA3MzExMjMxNDBaMIGsMQswCQYDVQQGEwJFVTFDMEEGA1UEBxM6TWFkcmlkIChzZWUg
+Y3VycmVudCBhZGRyZXNzIGF0IHd3dy5jYW1lcmZpcm1hLmNvbS9hZGRyZXNzKTESMBAGA1UEBRMJ
+QTgyNzQzMjg3MRswGQYDVQQKExJBQyBDYW1lcmZpcm1hIFMuQS4xJzAlBgNVBAMTHkdsb2JhbCBD
+aGFtYmVyc2lnbiBSb290IC0gMjAwODCCAiIwDQYJKoZIhvcNAQEBBQADggIPADCCAgoCggIBAMDf
+VtPkOpt2RbQT2//BthmLN0EYlVJH6xedKYiONWwGMi5HYvNJBL99RDaxccy9Wglz1dmFRP+RVyXf
+XjaOcNFccUMd2drvXNL7G706tcuto8xEpw2uIRU/uXpbknXYpBI4iRmKt4DS4jJvVpyR1ogQC7N0
+ZJJ0YPP2zxhPYLIj0Mc7zmFLmY/CDNBAspjcDahOo7kKrmCgrUVSY7pmvWjg+b4aqIG7HkF4ddPB
+/gBVsIdU6CeQNR1MM62X/JcumIS/LMmjv9GYERTtY/jKmIhYF5ntRQOXfjyGHoiMvvKRhI9lNNgA
+TH23MRdaKXoKGCQwoze1eqkBfSbW+Q6OWfH9GzO1KTsXO0G2Id3UwD2ln58fQ1DJu7xsepeY7s2M
+H/ucUa6LcL0nn3HAa6x9kGbo1106DbDVwo3VyJ2dwW3Q0L9R5OP4wzg2rtandeavhENdk5IMagfe
+Ox2YItaswTXbo6Al/3K1dh3ebeksZixShNBFks4c5eUzHdwHU1SjqoI7mjcv3N2gZOnm3b2u/GSF
+HTynyQbehP9r6GsaPMWis0L7iwk+XwhSx2LE1AVxv8Rk5Pihg+g+EpuoHtQ2TS9x9o0o9oOpE9Jh
+wZG7SMA0j0GMS0zbaRL/UJScIINZc+18ofLx/d33SdNDWKBWY8o9PeU1VlnpDsogzCtLkykPAgMB
+AAGjggFqMIIBZjASBgNVHRMBAf8ECDAGAQH/AgEMMB0GA1UdDgQWBBS5CcqcHtvTbDprru1U8VuT
+BjUuXjCB4QYDVR0jBIHZMIHWgBS5CcqcHtvTbDprru1U8VuTBjUuXqGBsqSBrzCBrDELMAkGA1UE
+BhMCRVUxQzBBBgNVBAcTOk1hZHJpZCAoc2VlIGN1cnJlbnQgYWRkcmVzcyBhdCB3d3cuY2FtZXJm
+aXJtYS5jb20vYWRkcmVzcykxEjAQBgNVBAUTCUE4Mjc0MzI4NzEbMBkGA1UEChMSQUMgQ2FtZXJm
+aXJtYSBTLkEuMScwJQYDVQQDEx5HbG9iYWwgQ2hhbWJlcnNpZ24gUm9vdCAtIDIwMDiCCQDJzdPp
+1X0jzjAOBgNVHQ8BAf8EBAMCAQYwPQYDVR0gBDYwNDAyBgRVHSAAMCowKAYIKwYBBQUHAgEWHGh0
+dHA6Ly9wb2xpY3kuY2FtZXJmaXJtYS5jb20wDQYJKoZIhvcNAQEFBQADggIBAICIf3DekijZBZRG
+/5BXqfEv3xoNa/p8DhxJJHkn2EaqbylZUohwEurdPfWbU1Rv4WCiqAm57OtZfMY18dwY6fFn5a+6
+ReAJ3spED8IXDneRRXozX1+WLGiLwUePmJs9wOzL9dWCkoQ10b42OFZyMVtHLaoXpGNR6woBrX/s
+dZ7LoR/xfxKxueRkf2fWIyr0uDldmOghp+G9PUIadJpwr2hsUF1Jz//7Dl3mLEfXgTpZALVza2Mg
+9jFFCDkO9HB+QHBaP9BrQql0PSgvAm11cpUJjUhjxsYjV5KTXjXBjfkK9yydYhz2rXzdpjEetrHH
+foUm+qRqtdpjMNHvkzeyZi99Bffnt0uYlDXA2TopwZ2yUDMdSqlapskD7+3056huirRXhOukP9Du
+qqqHW2Pok+JrqNS4cnhrG+055F3Lm6qH1U9OAP7Zap88MQ8oAgF9mOinsKJknnn4SPIVqczmyETr
+P3iZ8ntxPjzxmKfFGBI/5rsoM0LpRQp8bfKGeS/Fghl9CYl8slR2iK7ewfPM4W7bMdaTrpmg7yVq
+c5iJWzouE4gev8CSlDQb4ye3ix5vQv/n6TebUB0tovkC7stYWDpxvGjjqsGvHCgfotwjZT+B6q6Z
+09gwzxMNTxXJhLynSC34MCN32EZLeW32jO06f2ARePTpm67VVMB0gNELQp/B
+-----END CERTIFICATE-----
+
+Go Daddy Root Certificate Authority - G2
+========================================
+-----BEGIN CERTIFICATE-----
+MIIDxTCCAq2gAwIBAgIBADANBgkqhkiG9w0BAQsFADCBgzELMAkGA1UEBhMCVVMxEDAOBgNVBAgT
+B0FyaXpvbmExEzARBgNVBAcTClNjb3R0c2RhbGUxGjAYBgNVBAoTEUdvRGFkZHkuY29tLCBJbmMu
+MTEwLwYDVQQDEyhHbyBEYWRkeSBSb290IENlcnRpZmljYXRlIEF1dGhvcml0eSAtIEcyMB4XDTA5
+MDkwMTAwMDAwMFoXDTM3MTIzMTIzNTk1OVowgYMxCzAJBgNVBAYTAlVTMRAwDgYDVQQIEwdBcml6
+b25hMRMwEQYDVQQHEwpTY290dHNkYWxlMRowGAYDVQQKExFHb0RhZGR5LmNvbSwgSW5jLjExMC8G
+A1UEAxMoR28gRGFkZHkgUm9vdCBDZXJ0aWZpY2F0ZSBBdXRob3JpdHkgLSBHMjCCASIwDQYJKoZI
+hvcNAQEBBQADggEPADCCAQoCggEBAL9xYgjx+lk09xvJGKP3gElY6SKDE6bFIEMBO4Tx5oVJnyfq
+9oQbTqC023CYxzIBsQU+B07u9PpPL1kwIuerGVZr4oAH/PMWdYA5UXvl+TW2dE6pjYIT5LY/qQOD
++qK+ihVqf94Lw7YZFAXK6sOoBJQ7RnwyDfMAZiLIjWltNowRGLfTshxgtDj6AozO091GB94KPutd
+fMh8+7ArU6SSYmlRJQVhGkSBjCypQ5Yj36w6gZoOKcUcqeldHraenjAKOc7xiID7S13MMuyFYkMl
+NAJWJwGRtDtwKj9useiciAF9n9T521NtYJ2/LOdYq7hfRvzOxBsDPAnrSTFcaUaz4EcCAwEAAaNC
+MEAwDwYDVR0TAQH/BAUwAwEB/zAOBgNVHQ8BAf8EBAMCAQYwHQYDVR0OBBYEFDqahQcQZyi27/a9
+BUFuIMGU2g/eMA0GCSqGSIb3DQEBCwUAA4IBAQCZ21151fmXWWcDYfF+OwYxdS2hII5PZYe096ac
+vNjpL9DbWu7PdIxztDhC2gV7+AJ1uP2lsdeu9tfeE8tTEH6KRtGX+rcuKxGrkLAngPnon1rpN5+r
+5N9ss4UXnT3ZJE95kTXWXwTrgIOrmgIttRD02JDHBHNA7XIloKmf7J6raBKZV8aPEjoJpL1E/QYV
+N8Gb5DKj7Tjo2GTzLH4U/ALqn83/B2gX2yKQOC16jdFU8WnjXzPKej17CuPKf1855eJ1usV2GDPO
+LPAvTK33sefOT6jEm0pUBsV/fdUID+Ic/n4XuKxe9tQWskMJDE32p2u0mYRlynqI4uJEvlz36hz1
+-----END CERTIFICATE-----
+
+Starfield Root Certificate Authority - G2
+=========================================
+-----BEGIN CERTIFICATE-----
+MIID3TCCAsWgAwIBAgIBADANBgkqhkiG9w0BAQsFADCBjzELMAkGA1UEBhMCVVMxEDAOBgNVBAgT
+B0FyaXpvbmExEzARBgNVBAcTClNjb3R0c2RhbGUxJTAjBgNVBAoTHFN0YXJmaWVsZCBUZWNobm9s
+b2dpZXMsIEluYy4xMjAwBgNVBAMTKVN0YXJmaWVsZCBSb290IENlcnRpZmljYXRlIEF1dGhvcml0
+eSAtIEcyMB4XDTA5MDkwMTAwMDAwMFoXDTM3MTIzMTIzNTk1OVowgY8xCzAJBgNVBAYTAlVTMRAw
+DgYDVQQIEwdBcml6b25hMRMwEQYDVQQHEwpTY290dHNkYWxlMSUwIwYDVQQKExxTdGFyZmllbGQg
+VGVjaG5vbG9naWVzLCBJbmMuMTIwMAYDVQQDEylTdGFyZmllbGQgUm9vdCBDZXJ0aWZpY2F0ZSBB
+dXRob3JpdHkgLSBHMjCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEBAL3twQP89o/8ArFv
+W59I2Z154qK3A2FWGMNHttfKPTUuiUP3oWmb3ooa/RMgnLRJdzIpVv257IzdIvpy3Cdhl+72WoTs
+bhm5iSzchFvVdPtrX8WJpRBSiUZV9Lh1HOZ/5FSuS/hVclcCGfgXcVnrHigHdMWdSL5stPSksPNk
+N3mSwOxGXn/hbVNMYq/NHwtjuzqd+/x5AJhhdM8mgkBj87JyahkNmcrUDnXMN/uLicFZ8WJ/X7Nf
+ZTD4p7dNdloedl40wOiWVpmKs/B/pM293DIxfJHP4F8R+GuqSVzRmZTRouNjWwl2tVZi4Ut0HZbU
+JtQIBFnQmA4O5t78w+wfkPECAwEAAaNCMEAwDwYDVR0TAQH/BAUwAwEB/zAOBgNVHQ8BAf8EBAMC
+AQYwHQYDVR0OBBYEFHwMMh+n2TB/xH1oo2Kooc6rB1snMA0GCSqGSIb3DQEBCwUAA4IBAQARWfol
+TwNvlJk7mh+ChTnUdgWUXuEok21iXQnCoKjUsHU48TRqneSfioYmUeYs0cYtbpUgSpIB7LiKZ3sx
+4mcujJUDJi5DnUox9g61DLu34jd/IroAow57UvtruzvE03lRTs2Q9GcHGcg8RnoNAX3FWOdt5oUw
+F5okxBDgBPfg8n/Uqgr/Qh037ZTlZFkSIHc40zI+OIF1lnP6aI+xy84fxez6nH7PfrHxBy22/L/K
+pL/QlwVKvOoYKAKQvVR4CSFx09F9HdkWsKlhPdAKACL8x3vLCWRFCztAgfd9fDL1mMpYjn0q7pBZ
+c2T5NnReJaH1ZgUufzkVqSr7UIuOhWn0
+-----END CERTIFICATE-----
+
+Starfield Services Root Certificate Authority - G2
+==================================================
+-----BEGIN CERTIFICATE-----
+MIID7zCCAtegAwIBAgIBADANBgkqhkiG9w0BAQsFADCBmDELMAkGA1UEBhMCVVMxEDAOBgNVBAgT
+B0FyaXpvbmExEzARBgNVBAcTClNjb3R0c2RhbGUxJTAjBgNVBAoTHFN0YXJmaWVsZCBUZWNobm9s
+b2dpZXMsIEluYy4xOzA5BgNVBAMTMlN0YXJmaWVsZCBTZXJ2aWNlcyBSb290IENlcnRpZmljYXRl
+IEF1dGhvcml0eSAtIEcyMB4XDTA5MDkwMTAwMDAwMFoXDTM3MTIzMTIzNTk1OVowgZgxCzAJBgNV
+BAYTAlVTMRAwDgYDVQQIEwdBcml6b25hMRMwEQYDVQQHEwpTY290dHNkYWxlMSUwIwYDVQQKExxT
+dGFyZmllbGQgVGVjaG5vbG9naWVzLCBJbmMuMTswOQYDVQQDEzJTdGFyZmllbGQgU2VydmljZXMg
+Um9vdCBDZXJ0aWZpY2F0ZSBBdXRob3JpdHkgLSBHMjCCASIwDQYJKoZIhvcNAQEBBQADggEPADCC
+AQoCggEBANUMOsQq+U7i9b4Zl1+OiFOxHz/Lz58gE20pOsgPfTz3a3Y4Y9k2YKibXlwAgLIvWX/2
+h/klQ4bnaRtSmpDhcePYLQ1Ob/bISdm28xpWriu2dBTrz/sm4xq6HZYuajtYlIlHVv8loJNwU4Pa
+hHQUw2eeBGg6345AWh1KTs9DkTvnVtYAcMtS7nt9rjrnvDH5RfbCYM8TWQIrgMw0R9+53pBlbQLP
+LJGmpufehRhJfGZOozptqbXuNC66DQO4M99H67FrjSXZm86B0UVGMpZwh94CDklDhbZsc7tk6mFB
+rMnUVN+HL8cisibMn1lUaJ/8viovxFUcdUBgF4UCVTmLfwUCAwEAAaNCMEAwDwYDVR0TAQH/BAUw
+AwEB/zAOBgNVHQ8BAf8EBAMCAQYwHQYDVR0OBBYEFJxfAN+qAdcwKziIorhtSpzyEZGDMA0GCSqG
+SIb3DQEBCwUAA4IBAQBLNqaEd2ndOxmfZyMIbw5hyf2E3F/YNoHN2BtBLZ9g3ccaaNnRbobhiCPP
+E95Dz+I0swSdHynVv/heyNXBve6SbzJ08pGCL72CQnqtKrcgfU28elUSwhXqvfdqlS5sdJ/PHLTy
+xQGjhdByPq1zqwubdQxtRbeOlKyWN7Wg0I8VRw7j6IPdj/3vQQF3zCepYoUz8jcI73HPdwbeyBkd
+iEDPfUYd/x7H4c7/I9vG+o1VTqkC50cRRj70/b17KSa7qWFiNyi2LSr2EIZkyXCn0q23KXB56jza
+YyWf/Wi3MOxw+3WKt21gZ7IeyLnp2KhvAotnDU0mV3HaIPzBSlCNsSi6
+-----END CERTIFICATE-----
+
+AffirmTrust Commercial
+======================
+-----BEGIN CERTIFICATE-----
+MIIDTDCCAjSgAwIBAgIId3cGJyapsXwwDQYJKoZIhvcNAQELBQAwRDELMAkGA1UEBhMCVVMxFDAS
+BgNVBAoMC0FmZmlybVRydXN0MR8wHQYDVQQDDBZBZmZpcm1UcnVzdCBDb21tZXJjaWFsMB4XDTEw
+MDEyOTE0MDYwNloXDTMwMTIzMTE0MDYwNlowRDELMAkGA1UEBhMCVVMxFDASBgNVBAoMC0FmZmly
+bVRydXN0MR8wHQYDVQQDDBZBZmZpcm1UcnVzdCBDb21tZXJjaWFsMIIBIjANBgkqhkiG9w0BAQEF
+AAOCAQ8AMIIBCgKCAQEA9htPZwcroRX1BiLLHwGy43NFBkRJLLtJJRTWzsO3qyxPxkEylFf6Eqdb
+DuKPHx6GGaeqtS25Xw2Kwq+FNXkyLbscYjfysVtKPcrNcV/pQr6U6Mje+SJIZMblq8Yrba0F8PrV
+C8+a5fBQpIs7R6UjW3p6+DM/uO+Zl+MgwdYoic+U+7lF7eNAFxHUdPALMeIrJmqbTFeurCA+ukV6
+BfO9m2kVrn1OIGPENXY6BwLJN/3HR+7o8XYdcxXyl6S1yHp52UKqK39c/s4mT6NmgTWvRLpUHhww
+MmWd5jyTXlBOeuM61G7MGvv50jeuJCqrVwMiKA1JdX+3KNp1v47j3A55MQIDAQABo0IwQDAdBgNV
+HQ4EFgQUnZPGU4teyq8/nx4P5ZmVvCT2lI8wDwYDVR0TAQH/BAUwAwEB/zAOBgNVHQ8BAf8EBAMC
+AQYwDQYJKoZIhvcNAQELBQADggEBAFis9AQOzcAN/wr91LoWXym9e2iZWEnStB03TX8nfUYGXUPG
+hi4+c7ImfU+TqbbEKpqrIZcUsd6M06uJFdhrJNTxFq7YpFzUf1GO7RgBsZNjvbz4YYCanrHOQnDi
+qX0GJX0nof5v7LMeJNrjS1UaADs1tDvZ110w/YETifLCBivtZ8SOyUOyXGsViQK8YvxO8rUzqrJv
+0wqiUOP2O+guRMLbZjipM1ZI8W0bM40NjD9gN53Tym1+NH4Nn3J2ixufcv1SNUFFApYvHLKac0kh
+sUlHRUe072o0EclNmsxZt9YCnlpOZbWUrhvfKbAW8b8Angc6F2S1BLUjIZkKlTuXfO8=
+-----END CERTIFICATE-----
+
+AffirmTrust Networking
+======================
+-----BEGIN CERTIFICATE-----
+MIIDTDCCAjSgAwIBAgIIfE8EORzUmS0wDQYJKoZIhvcNAQEFBQAwRDELMAkGA1UEBhMCVVMxFDAS
+BgNVBAoMC0FmZmlybVRydXN0MR8wHQYDVQQDDBZBZmZpcm1UcnVzdCBOZXR3b3JraW5nMB4XDTEw
+MDEyOTE0MDgyNFoXDTMwMTIzMTE0MDgyNFowRDELMAkGA1UEBhMCVVMxFDASBgNVBAoMC0FmZmly
+bVRydXN0MR8wHQYDVQQDDBZBZmZpcm1UcnVzdCBOZXR3b3JraW5nMIIBIjANBgkqhkiG9w0BAQEF
+AAOCAQ8AMIIBCgKCAQEAtITMMxcua5Rsa2FSoOujz3mUTOWUgJnLVWREZY9nZOIG41w3SfYvm4SE
+Hi3yYJ0wTsyEheIszx6e/jarM3c1RNg1lho9Nuh6DtjVR6FqaYvZ/Ls6rnla1fTWcbuakCNrmreI
+dIcMHl+5ni36q1Mr3Lt2PpNMCAiMHqIjHNRqrSK6mQEubWXLviRmVSRLQESxG9fhwoXA3hA/Pe24
+/PHxI1Pcv2WXb9n5QHGNfb2V1M6+oF4nI979ptAmDgAp6zxG8D1gvz9Q0twmQVGeFDdCBKNwV6gb
+h+0t+nvujArjqWaJGctB+d1ENmHP4ndGyH329JKBNv3bNPFyfvMMFr20FQIDAQABo0IwQDAdBgNV
+HQ4EFgQUBx/S55zawm6iQLSwelAQUHTEyL0wDwYDVR0TAQH/BAUwAwEB/zAOBgNVHQ8BAf8EBAMC
+AQYwDQYJKoZIhvcNAQEFBQADggEBAIlXshZ6qML91tmbmzTCnLQyFE2npN/svqe++EPbkTfOtDIu
+UFUaNU52Q3Eg75N3ThVwLofDwR1t3Mu1J9QsVtFSUzpE0nPIxBsFZVpikpzuQY0x2+c06lkh1QF6
+12S4ZDnNye2v7UsDSKegmQGA3GWjNq5lWUhPgkvIZfFXHeVZLgo/bNjR9eUJtGxUAArgFU2HdW23
+WJZa3W3SAKD0m0i+wzekujbgfIeFlxoVot4uolu9rxj5kFDNcFn4J2dHy8egBzp90SxdbBk6ZrV9
+/ZFvgrG+CJPbFEfxojfHRZ48x3evZKiT3/Zpg4Jg8klCNO1aAFSFHBY2kgxc+qatv9s=
+-----END CERTIFICATE-----
+
+AffirmTrust Premium
+===================
+-----BEGIN CERTIFICATE-----
+MIIFRjCCAy6gAwIBAgIIbYwURrGmCu4wDQYJKoZIhvcNAQEMBQAwQTELMAkGA1UEBhMCVVMxFDAS
+BgNVBAoMC0FmZmlybVRydXN0MRwwGgYDVQQDDBNBZmZpcm1UcnVzdCBQcmVtaXVtMB4XDTEwMDEy
+OTE0MTAzNloXDTQwMTIzMTE0MTAzNlowQTELMAkGA1UEBhMCVVMxFDASBgNVBAoMC0FmZmlybVRy
+dXN0MRwwGgYDVQQDDBNBZmZpcm1UcnVzdCBQcmVtaXVtMIICIjANBgkqhkiG9w0BAQEFAAOCAg8A
+MIICCgKCAgEAxBLfqV/+Qd3d9Z+K4/as4Tx4mrzY8H96oDMq3I0gW64tb+eT2TZwamjPjlGjhVtn
+BKAQJG9dKILBl1fYSCkTtuG+kU3fhQxTGJoeJKJPj/CihQvL9Cl/0qRY7iZNyaqoe5rZ+jjeRFcV
+5fiMyNlI4g0WJx0eyIOFJbe6qlVBzAMiSy2RjYvmia9mx+n/K+k8rNrSs8PhaJyJ+HoAVt70VZVs
++7pk3WKL3wt3MutizCaam7uqYoNMtAZ6MMgpv+0GTZe5HMQxK9VfvFMSF5yZVylmd2EhMQcuJUmd
+GPLu8ytxjLW6OQdJd/zvLpKQBY0tL3d770O/Nbua2Plzpyzy0FfuKE4mX4+QaAkvuPjcBukumj5R
+p9EixAqnOEhss/n/fauGV+O61oV4d7pD6kh/9ti+I20ev9E2bFhc8e6kGVQa9QPSdubhjL08s9NI
+S+LI+H+SqHZGnEJlPqQewQcDWkYtuJfzt9WyVSHvutxMAJf7FJUnM7/oQ0dG0giZFmA7mn7S5u04
+6uwBHjxIVkkJx0w3AJ6IDsBz4W9m6XJHMD4Q5QsDyZpCAGzFlH5hxIrff4IaC1nEWTJ3s7xgaVY5
+/bQGeyzWZDbZvUjthB9+pSKPKrhC9IK31FOQeE4tGv2Bb0TXOwF0lkLgAOIua+rF7nKsu7/+6qqo
++Nz2snmKtmcCAwEAAaNCMEAwHQYDVR0OBBYEFJ3AZ6YMItkm9UWrpmVSESfYRaxjMA8GA1UdEwEB
+/wQFMAMBAf8wDgYDVR0PAQH/BAQDAgEGMA0GCSqGSIb3DQEBDAUAA4ICAQCzV00QYk465KzquByv
+MiPIs0laUZx2KI15qldGF9X1Uva3ROgIRL8YhNILgM3FEv0AVQVhh0HctSSePMTYyPtwni94loMg
+Nt58D2kTiKV1NpgIpsbfrM7jWNa3Pt668+s0QNiigfV4Py/VpfzZotReBA4Xrf5B8OWycvpEgjNC
+6C1Y91aMYj+6QrCcDFx+LmUmXFNPALJ4fqENmS2NuB2OosSw/WDQMKSOyARiqcTtNd56l+0OOF6S
+L5Nwpamcb6d9Ex1+xghIsV5n61EIJenmJWtSKZGc0jlzCFfemQa0W50QBuHCAKi4HEoCChTQwUHK
++4w1IX2COPKpVJEZNZOUbWo6xbLQu4mGk+ibyQ86p3q4ofB4Rvr8Ny/lioTz3/4E2aFooC8k4gmV
+BtWVyuEklut89pMFu+1z6S3RdTnX5yTb2E5fQ4+e0BQ5v1VwSJlXMbSc7kqYA5YwH2AG7hsj/oFg
+IxpHYoWlzBk0gG+zrBrjn/B7SK3VAdlntqlyk+otZrWyuOQ9PLLvTIzq6we/qzWaVYa8GKa1qF60
+g2xraUDTn9zxw2lrueFtCfTxqlB2Cnp9ehehVZZCmTEJ3WARjQUwfuaORtGdFNrHF+QFlozEJLUb
+zxQHskD4o55BhrwE0GuWyCqANP2/7waj3VjFhT0+j/6eKeC2uAloGRwYQw==
+-----END CERTIFICATE-----
+
+AffirmTrust Premium ECC
+=======================
+-----BEGIN CERTIFICATE-----
+MIIB/jCCAYWgAwIBAgIIdJclisc/elQwCgYIKoZIzj0EAwMwRTELMAkGA1UEBhMCVVMxFDASBgNV
+BAoMC0FmZmlybVRydXN0MSAwHgYDVQQDDBdBZmZpcm1UcnVzdCBQcmVtaXVtIEVDQzAeFw0xMDAx
+MjkxNDIwMjRaFw00MDEyMzExNDIwMjRaMEUxCzAJBgNVBAYTAlVTMRQwEgYDVQQKDAtBZmZpcm1U
+cnVzdDEgMB4GA1UEAwwXQWZmaXJtVHJ1c3QgUHJlbWl1bSBFQ0MwdjAQBgcqhkjOPQIBBgUrgQQA
+IgNiAAQNMF4bFZ0D0KF5Nbc6PJJ6yhUczWLznCZcBz3lVPqj1swS6vQUX+iOGasvLkjmrBhDeKzQ
+N8O9ss0s5kfiGuZjuD0uL3jET9v0D6RoTFVya5UdThhClXjMNzyR4ptlKymjQjBAMB0GA1UdDgQW
+BBSaryl6wBE1NSZRMADDav5A1a7WPDAPBgNVHRMBAf8EBTADAQH/MA4GA1UdDwEB/wQEAwIBBjAK
+BggqhkjOPQQDAwNnADBkAjAXCfOHiFBar8jAQr9HX/VsaobgxCd05DhT1wV/GzTjxi+zygk8N53X
+57hG8f2h4nECMEJZh0PUUd+60wkyWs6Iflc9nF9Ca/UHLbXwgpP5WW+uZPpY5Yse42O+tYHNbwKM
+eQ==
+-----END CERTIFICATE-----
+
+Certum Trusted Network CA
+=========================
+-----BEGIN CERTIFICATE-----
+MIIDuzCCAqOgAwIBAgIDBETAMA0GCSqGSIb3DQEBBQUAMH4xCzAJBgNVBAYTAlBMMSIwIAYDVQQK
+ExlVbml6ZXRvIFRlY2hub2xvZ2llcyBTLkEuMScwJQYDVQQLEx5DZXJ0dW0gQ2VydGlmaWNhdGlv
+biBBdXRob3JpdHkxIjAgBgNVBAMTGUNlcnR1bSBUcnVzdGVkIE5ldHdvcmsgQ0EwHhcNMDgxMDIy
+MTIwNzM3WhcNMjkxMjMxMTIwNzM3WjB+MQswCQYDVQQGEwJQTDEiMCAGA1UEChMZVW5pemV0byBU
+ZWNobm9sb2dpZXMgUy5BLjEnMCUGA1UECxMeQ2VydHVtIENlcnRpZmljYXRpb24gQXV0aG9yaXR5
+MSIwIAYDVQQDExlDZXJ0dW0gVHJ1c3RlZCBOZXR3b3JrIENBMIIBIjANBgkqhkiG9w0BAQEFAAOC
+AQ8AMIIBCgKCAQEA4/t9o3K6wvDJFIf1awFO4W5AB7ptJ11/91sts1rHUV+rpDKmYYe2bg+G0jAC
+l/jXaVehGDldamR5xgFZrDwxSjh80gTSSyjoIF87B6LMTXPb865Px1bVWqeWifrzq2jUI4ZZJ88J
+J7ysbnKDHDBy3+Ci6dLhdHUZvSqeexVUBBvXQzmtVSjF4hq79MDkrjhJM8x2hZ85RdKknvISjFH4
+fOQtf/WsX+sWn7Et0brMkUJ3TCXJkDhv2/DM+44el1k+1WBO5gUo7Ul5E0u6SNsv+XLTOcr+H9g0
+cvW0QM8xAcPs3hEtF10fuFDRXhmnad4HMyjKUJX5p1TLVIZQRan5SQIDAQABo0IwQDAPBgNVHRMB
+Af8EBTADAQH/MB0GA1UdDgQWBBQIds3LB/8k9sXN7buQvOKEN0Z19zAOBgNVHQ8BAf8EBAMCAQYw
+DQYJKoZIhvcNAQEFBQADggEBAKaorSLOAT2mo/9i0Eidi15ysHhE49wcrwn9I0j6vSrEuVUEtRCj
+jSfeC4Jj0O7eDDd5QVsisrCaQVymcODU0HfLI9MA4GxWL+FpDQ3Zqr8hgVDZBqWo/5U30Kr+4rP1
+mS1FhIrlQgnXdAIv94nYmem8J9RHjboNRhx3zxSkHLmkMcScKHQDNP8zGSal6Q10tz6XxnboJ5aj
+Zt3hrvJBW8qYVoNzcOSGGtIxQbovvi0TWnZvTuhOgQ4/WwMioBK+ZlgRSssDxLQqKi2WF+A5VLxI
+03YnnZotBqbJ7DnSq9ufmgsnAjUpsUCV5/nonFWIGUbWtzT1fs45mtk48VH3Tyw=
+-----END CERTIFICATE-----
+
+Certinomis - Autorité Racine
+=============================
+-----BEGIN CERTIFICATE-----
+MIIFnDCCA4SgAwIBAgIBATANBgkqhkiG9w0BAQUFADBjMQswCQYDVQQGEwJGUjETMBEGA1UEChMK
+Q2VydGlub21pczEXMBUGA1UECxMOMDAwMiA0MzM5OTg5MDMxJjAkBgNVBAMMHUNlcnRpbm9taXMg
+LSBBdXRvcml0w6kgUmFjaW5lMB4XDTA4MDkxNzA4Mjg1OVoXDTI4MDkxNzA4Mjg1OVowYzELMAkG
+A1UEBhMCRlIxEzARBgNVBAoTCkNlcnRpbm9taXMxFzAVBgNVBAsTDjAwMDIgNDMzOTk4OTAzMSYw
+JAYDVQQDDB1DZXJ0aW5vbWlzIC0gQXV0b3JpdMOpIFJhY2luZTCCAiIwDQYJKoZIhvcNAQEBBQAD
+ggIPADCCAgoCggIBAJ2Fn4bT46/HsmtuM+Cet0I0VZ35gb5j2CN2DpdUzZlMGvE5x4jYF1AMnmHa
+wE5V3udauHpOd4cN5bjr+p5eex7Ezyh0x5P1FMYiKAT5kcOrJ3NqDi5N8y4oH3DfVS9O7cdxbwly
+Lu3VMpfQ8Vh30WC8Tl7bmoT2R2FFK/ZQpn9qcSdIhDWerP5pqZ56XjUl+rSnSTV3lqc2W+HN3yNw
+2F1MpQiD8aYkOBOo7C+ooWfHpi2GR+6K/OybDnT0K0kCe5B1jPyZOQE51kqJ5Z52qz6WKDgmi92N
+jMD2AR5vpTESOH2VwnHu7XSu5DaiQ3XV8QCb4uTXzEIDS3h65X27uK4uIJPT5GHfceF2Z5c/tt9q
+c1pkIuVC28+BA5PY9OMQ4HL2AHCs8MF6DwV/zzRpRbWT5BnbUhYjBYkOjUjkJW+zeL9i9Qf6lSTC
+lrLooyPCXQP8w9PlfMl1I9f09bze5N/NgL+RiH2nE7Q5uiy6vdFrzPOlKO1Enn1So2+WLhl+HPNb
+xxaOu2B9d2ZHVIIAEWBsMsGoOBvrbpgT1u449fCfDu/+MYHB0iSVL1N6aaLwD4ZFjliCK0wi1F6g
+530mJ0jfJUaNSih8hp75mxpZuWW/Bd22Ql095gBIgl4g9xGC3srYn+Y3RyYe63j3YcNBZFgCQfna
+4NH4+ej9Uji29YnfAgMBAAGjWzBZMA8GA1UdEwEB/wQFMAMBAf8wDgYDVR0PAQH/BAQDAgEGMB0G
+A1UdDgQWBBQNjLZh2kS40RR9w759XkjwzspqsDAXBgNVHSAEEDAOMAwGCiqBegFWAgIAAQEwDQYJ
+KoZIhvcNAQEFBQADggIBACQ+YAZ+He86PtvqrxyaLAEL9MW12Ukx9F1BjYkMTv9sov3/4gbIOZ/x
+WqndIlgVqIrTseYyCYIDbNc/CMf4uboAbbnW/FIyXaR/pDGUu7ZMOH8oMDX/nyNTt7buFHAAQCva
+R6s0fl6nVjBhK4tDrP22iCj1a7Y+YEq6QpA0Z43q619FVDsXrIvkxmUP7tCMXWY5zjKn2BCXwH40
+nJ+U8/aGH88bc62UeYdocMMzpXDn2NU4lG9jeeu/Cg4I58UvD0KgKxRA/yHgBcUn4YQRE7rWhh1B
+CxMjidPJC+iKunqjo3M3NYB9Ergzd0A4wPpeMNLytqOx1qKVl4GbUu1pTP+A5FPbVFsDbVRfsbjv
+JL1vnxHDx2TCDyhihWZeGnuyt++uNckZM6i4J9szVb9o4XVIRFb7zdNIu0eJOqxp9YDG5ERQL1TE
+qkPFMTFYvZbF6nVsmnWxTfj3l/+WFvKXTej28xH5On2KOG4Ey+HTRRWqpdEdnV1j6CTmNhTih60b
+WfVEm/vXd3wfAXBioSAaosUaKPQhA+4u2cGA6rnZgtZbdsLLO7XSAPCjDuGtbkD326C00EauFddE
+wk01+dIL8hf2rGbVJLJP0RyZwG71fet0BLj5TXcJ17TPBzAJ8bgAVtkXFhYKK4bfjwEZGuW7gmP/
+vgt2Fl43N+bYdJeimUV5
+-----END CERTIFICATE-----
+
+Root CA Generalitat Valenciana
+==============================
+-----BEGIN CERTIFICATE-----
+MIIGizCCBXOgAwIBAgIEO0XlaDANBgkqhkiG9w0BAQUFADBoMQswCQYDVQQGEwJFUzEfMB0GA1UE
+ChMWR2VuZXJhbGl0YXQgVmFsZW5jaWFuYTEPMA0GA1UECxMGUEtJR1ZBMScwJQYDVQQDEx5Sb290
+IENBIEdlbmVyYWxpdGF0IFZhbGVuY2lhbmEwHhcNMDEwNzA2MTYyMjQ3WhcNMjEwNzAxMTUyMjQ3
+WjBoMQswCQYDVQQGEwJFUzEfMB0GA1UEChMWR2VuZXJhbGl0YXQgVmFsZW5jaWFuYTEPMA0GA1UE
+CxMGUEtJR1ZBMScwJQYDVQQDEx5Sb290IENBIEdlbmVyYWxpdGF0IFZhbGVuY2lhbmEwggEiMA0G
+CSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDGKqtXETcvIorKA3Qdyu0togu8M1JAJke+WmmmO3I2
+F0zo37i7L3bhQEZ0ZQKQUgi0/6iMweDHiVYQOTPvaLRfX9ptI6GJXiKjSgbwJ/BXufjpTjJ3Cj9B
+ZPPrZe52/lSqfR0grvPXdMIKX/UIKFIIzFVd0g/bmoGlu6GzwZTNVOAydTGRGmKy3nXiz0+J2ZGQ
+D0EbtFpKd71ng+CT516nDOeB0/RSrFOyA8dEJvt55cs0YFAQexvba9dHq198aMpunUEDEO5rmXte
+JajCq+TA81yc477OMUxkHl6AovWDfgzWyoxVjr7gvkkHD6MkQXpYHYTqWBLI4bft75PelAgxAgMB
+AAGjggM7MIIDNzAyBggrBgEFBQcBAQQmMCQwIgYIKwYBBQUHMAGGFmh0dHA6Ly9vY3NwLnBraS5n
+dmEuZXMwEgYDVR0TAQH/BAgwBgEB/wIBAjCCAjQGA1UdIASCAiswggInMIICIwYKKwYBBAG/VQIB
+ADCCAhMwggHoBggrBgEFBQcCAjCCAdoeggHWAEEAdQB0AG8AcgBpAGQAYQBkACAAZABlACAAQwBl
+AHIAdABpAGYAaQBjAGEAYwBpAPMAbgAgAFIAYQDtAHoAIABkAGUAIABsAGEAIABHAGUAbgBlAHIA
+YQBsAGkAdABhAHQAIABWAGEAbABlAG4AYwBpAGEAbgBhAC4ADQAKAEwAYQAgAEQAZQBjAGwAYQBy
+AGEAYwBpAPMAbgAgAGQAZQAgAFAAcgDhAGMAdABpAGMAYQBzACAAZABlACAAQwBlAHIAdABpAGYA
+aQBjAGEAYwBpAPMAbgAgAHEAdQBlACAAcgBpAGcAZQAgAGUAbAAgAGYAdQBuAGMAaQBvAG4AYQBt
+AGkAZQBuAHQAbwAgAGQAZQAgAGwAYQAgAHAAcgBlAHMAZQBuAHQAZQAgAEEAdQB0AG8AcgBpAGQA
+YQBkACAAZABlACAAQwBlAHIAdABpAGYAaQBjAGEAYwBpAPMAbgAgAHMAZQAgAGUAbgBjAHUAZQBu
+AHQAcgBhACAAZQBuACAAbABhACAAZABpAHIAZQBjAGMAaQDzAG4AIAB3AGUAYgAgAGgAdAB0AHAA
+OgAvAC8AdwB3AHcALgBwAGsAaQAuAGcAdgBhAC4AZQBzAC8AYwBwAHMwJQYIKwYBBQUHAgEWGWh0
+dHA6Ly93d3cucGtpLmd2YS5lcy9jcHMwHQYDVR0OBBYEFHs100DSHHgZZu90ECjcPk+yeAT8MIGV
+BgNVHSMEgY0wgYqAFHs100DSHHgZZu90ECjcPk+yeAT8oWykajBoMQswCQYDVQQGEwJFUzEfMB0G
+A1UEChMWR2VuZXJhbGl0YXQgVmFsZW5jaWFuYTEPMA0GA1UECxMGUEtJR1ZBMScwJQYDVQQDEx5S
+b290IENBIEdlbmVyYWxpdGF0IFZhbGVuY2lhbmGCBDtF5WgwDQYJKoZIhvcNAQEFBQADggEBACRh
+TvW1yEICKrNcda3FbcrnlD+laJWIwVTAEGmiEi8YPyVQqHxK6sYJ2fR1xkDar1CdPaUWu20xxsdz
+Ckj+IHLtb8zog2EWRpABlUt9jppSCS/2bxzkoXHPjCpaF3ODR00PNvsETUlR4hTJZGH71BTg9J63
+NI8KJr2XXPR5OkowGcytT6CYirQxlyric21+eLj4iIlPsSKRZEv1UN4D2+XFducTZnV+ZfsBn5OH
+iJ35Rld8TWCvmHMTI6QgkYH60GFmuH3Rr9ZvHmw96RH9qfmCIoaZM3Fa6hlXPZHNqcCjbgcTpsnt
++GijnsNacgmHKNHEc8RzGF9QdRYxn7fofMM=
+-----END CERTIFICATE-----
+
+A-Trust-nQual-03
+================
+-----BEGIN CERTIFICATE-----
+MIIDzzCCAregAwIBAgIDAWweMA0GCSqGSIb3DQEBBQUAMIGNMQswCQYDVQQGEwJBVDFIMEYGA1UE
+Cgw/QS1UcnVzdCBHZXMuIGYuIFNpY2hlcmhlaXRzc3lzdGVtZSBpbSBlbGVrdHIuIERhdGVudmVy
+a2VociBHbWJIMRkwFwYDVQQLDBBBLVRydXN0LW5RdWFsLTAzMRkwFwYDVQQDDBBBLVRydXN0LW5R
+dWFsLTAzMB4XDTA1MDgxNzIyMDAwMFoXDTE1MDgxNzIyMDAwMFowgY0xCzAJBgNVBAYTAkFUMUgw
+RgYDVQQKDD9BLVRydXN0IEdlcy4gZi4gU2ljaGVyaGVpdHNzeXN0ZW1lIGltIGVsZWt0ci4gRGF0
+ZW52ZXJrZWhyIEdtYkgxGTAXBgNVBAsMEEEtVHJ1c3QtblF1YWwtMDMxGTAXBgNVBAMMEEEtVHJ1
+c3QtblF1YWwtMDMwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQCtPWFuA/OQO8BBC4SA
+zewqo51ru27CQoT3URThoKgtUaNR8t4j8DRE/5TrzAUjlUC5B3ilJfYKvUWG6Nm9wASOhURh73+n
+yfrBJcyFLGM/BWBzSQXgYHiVEEvc+RFZznF/QJuKqiTfC0Li21a8StKlDJu3Qz7dg9MmEALP6iPE
+SU7l0+m0iKsMrmKS1GWH2WrX9IWf5DMiJaXlyDO6w8dB3F/GaswADm0yqLaHNgBid5seHzTLkDx4
+iHQF63n1k3Flyp3HaxgtPVxO59X4PzF9j4fsCiIvI+n+u33J4PTs63zEsMMtYrWacdaxaujs2e3V
+cuy+VwHOBVWf3tFgiBCzAgMBAAGjNjA0MA8GA1UdEwEB/wQFMAMBAf8wEQYDVR0OBAoECERqlWdV
+eRFPMA4GA1UdDwEB/wQEAwIBBjANBgkqhkiG9w0BAQUFAAOCAQEAVdRU0VlIXLOThaq/Yy/kgM40
+ozRiPvbY7meIMQQDbwvUB/tOdQ/TLtPAF8fGKOwGDREkDg6lXb+MshOWcdzUzg4NCmgybLlBMRmr
+sQd7TZjTXLDR8KdCoLXEjq/+8T/0709GAHbrAvv5ndJAlseIOrifEXnzgGWovR/TeIGgUUw3tKZd
+JXDRZslo+S4RFGjxVJgIrCaSD96JntT6s3kr0qN51OyLrIdTaEJMUVF0HhsnLuP1Hyl0Te2v9+GS
+mYHovjrHF1D2t8b8m7CKa9aIA5GPBnc6hQLdmNVDeD/GMBWsm2vLV7eJUYs66MmEDNuxUCAKGkq6
+ahq97BvIxYSazQ==
+-----END CERTIFICATE-----
+
+TWCA Root Certification Authority
+=================================
+-----BEGIN CERTIFICATE-----
+MIIDezCCAmOgAwIBAgIBATANBgkqhkiG9w0BAQUFADBfMQswCQYDVQQGEwJUVzESMBAGA1UECgwJ
+VEFJV0FOLUNBMRAwDgYDVQQLDAdSb290IENBMSowKAYDVQQDDCFUV0NBIFJvb3QgQ2VydGlmaWNh
+dGlvbiBBdXRob3JpdHkwHhcNMDgwODI4MDcyNDMzWhcNMzAxMjMxMTU1OTU5WjBfMQswCQYDVQQG
+EwJUVzESMBAGA1UECgwJVEFJV0FOLUNBMRAwDgYDVQQLDAdSb290IENBMSowKAYDVQQDDCFUV0NB
+IFJvb3QgQ2VydGlmaWNhdGlvbiBBdXRob3JpdHkwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEK
+AoIBAQCwfnK4pAOU5qfeCTiRShFAh6d8WWQUe7UREN3+v9XAu1bihSX0NXIP+FPQQeFEAcK0HMMx
+QhZHhTMidrIKbw/lJVBPhYa+v5guEGcevhEFhgWQxFnQfHgQsIBct+HHK3XLfJ+utdGdIzdjp9xC
+oi2SBBtQwXu4PhvJVgSLL1KbralW6cH/ralYhzC2gfeXRfwZVzsrb+RH9JlF/h3x+JejiB03HFyP
+4HYlmlD4oFT/RJB2I9IyxsOrBr/8+7/zrX2SYgJbKdM1o5OaQ2RgXbL6Mv87BK9NQGr5x+PvI/1r
+y+UPizgN7gr8/g+YnzAx3WxSZfmLgb4i4RxYA7qRG4kHAgMBAAGjQjBAMA4GA1UdDwEB/wQEAwIB
+BjAPBgNVHRMBAf8EBTADAQH/MB0GA1UdDgQWBBRqOFsmjd6LWvJPelSDGRjjCDWmujANBgkqhkiG
+9w0BAQUFAAOCAQEAPNV3PdrfibqHDAhUaiBQkr6wQT25JmSDCi/oQMCXKCeCMErJk/9q56YAf4lC
+mtYR5VPOL8zy2gXE/uJQxDqGfczafhAJO5I1KlOy/usrBdlsXebQ79NqZp4VKIV66IIArB6nCWlW
+QtNoURi+VJq/REG6Sb4gumlc7rh3zc5sH62Dlhh9DrUUOYTxKOkto557HnpyWoOzeW/vtPzQCqVY
+T0bf+215WfKEIlKuD8z7fDvnaspHYcN6+NOSBB+4IIThNlQWx0DeO4pz3N/GCUzf7Nr/1FNCocny
+Yh0igzyXxfkZYiesZSLX0zzG5Y6yU8xJzrww/nsOM5D77dIUkR8Hrw==
+-----END CERTIFICATE-----
+
+Security Communication RootCA2
+==============================
+-----BEGIN CERTIFICATE-----
+MIIDdzCCAl+gAwIBAgIBADANBgkqhkiG9w0BAQsFADBdMQswCQYDVQQGEwJKUDElMCMGA1UEChMc
+U0VDT00gVHJ1c3QgU3lzdGVtcyBDTy4sTFRELjEnMCUGA1UECxMeU2VjdXJpdHkgQ29tbXVuaWNh
+dGlvbiBSb290Q0EyMB4XDTA5MDUyOTA1MDAzOVoXDTI5MDUyOTA1MDAzOVowXTELMAkGA1UEBhMC
+SlAxJTAjBgNVBAoTHFNFQ09NIFRydXN0IFN5c3RlbXMgQ08uLExURC4xJzAlBgNVBAsTHlNlY3Vy
+aXR5IENvbW11bmljYXRpb24gUm9vdENBMjCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoCggEB
+ANAVOVKxUrO6xVmCxF1SrjpDZYBLx/KWvNs2l9amZIyoXvDjChz335c9S672XewhtUGrzbl+dp++
++T42NKA7wfYxEUV0kz1XgMX5iZnK5atq1LXaQZAQwdbWQonCv/Q4EpVMVAX3NuRFg3sUZdbcDE3R
+3n4MqzvEFb46VqZab3ZpUql6ucjrappdUtAtCms1FgkQhNBqyjoGADdH5H5XTz+L62e4iKrFvlNV
+spHEfbmwhRkGeC7bYRr6hfVKkaHnFtWOojnflLhwHyg/i/xAXmODPIMqGplrz95Zajv8bxbXH/1K
+EOtOghY6rCcMU/Gt1SSwawNQwS08Ft1ENCcadfsCAwEAAaNCMEAwHQYDVR0OBBYEFAqFqXdlBZh8
+QIH4D5csOPEK7DzPMA4GA1UdDwEB/wQEAwIBBjAPBgNVHRMBAf8EBTADAQH/MA0GCSqGSIb3DQEB
+CwUAA4IBAQBMOqNErLlFsceTfsgLCkLfZOoc7llsCLqJX2rKSpWeeo8HxdpFcoJxDjrSzG+ntKEj
+u/Ykn8sX/oymzsLS28yN/HH8AynBbF0zX2S2ZTuJbxh2ePXcokgfGT+Ok+vx+hfuzU7jBBJV1uXk
+3fs+BXziHV7Gp7yXT2g69ekuCkO2r1dcYmh8t/2jioSgrGK+KwmHNPBqAbubKVY8/gA3zyNs8U6q
+tnRGEmyR7jTV7JqR50S+kDFy1UkC9gLl9B/rfNmWVan/7Ir5mUf/NVoCqgTLiluHcSmRvaS0eg29
+mvVXIwAHIRc/SjnRBUkLp7Y3gaVdjKozXoEofKd9J+sAro03
+-----END CERTIFICATE-----
+
+EC-ACC
+======
+-----BEGIN CERTIFICATE-----
+MIIFVjCCBD6gAwIBAgIQ7is969Qh3hSoYqwE893EATANBgkqhkiG9w0BAQUFADCB8zELMAkGA1UE
+BhMCRVMxOzA5BgNVBAoTMkFnZW5jaWEgQ2F0YWxhbmEgZGUgQ2VydGlmaWNhY2lvIChOSUYgUS0w
+ODAxMTc2LUkpMSgwJgYDVQQLEx9TZXJ2ZWlzIFB1YmxpY3MgZGUgQ2VydGlmaWNhY2lvMTUwMwYD
+VQQLEyxWZWdldSBodHRwczovL3d3dy5jYXRjZXJ0Lm5ldC92ZXJhcnJlbCAoYykwMzE1MDMGA1UE
+CxMsSmVyYXJxdWlhIEVudGl0YXRzIGRlIENlcnRpZmljYWNpbyBDYXRhbGFuZXMxDzANBgNVBAMT
+BkVDLUFDQzAeFw0wMzAxMDcyMzAwMDBaFw0zMTAxMDcyMjU5NTlaMIHzMQswCQYDVQQGEwJFUzE7
+MDkGA1UEChMyQWdlbmNpYSBDYXRhbGFuYSBkZSBDZXJ0aWZpY2FjaW8gKE5JRiBRLTA4MDExNzYt
+SSkxKDAmBgNVBAsTH1NlcnZlaXMgUHVibGljcyBkZSBDZXJ0aWZpY2FjaW8xNTAzBgNVBAsTLFZl
+Z2V1IGh0dHBzOi8vd3d3LmNhdGNlcnQubmV0L3ZlcmFycmVsIChjKTAzMTUwMwYDVQQLEyxKZXJh
+cnF1aWEgRW50aXRhdHMgZGUgQ2VydGlmaWNhY2lvIENhdGFsYW5lczEPMA0GA1UEAxMGRUMtQUND
+MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAsyLHT+KXQpWIR4NA9h0X84NzJB5R85iK
+w5K4/0CQBXCHYMkAqbWUZRkiFRfCQ2xmRJoNBD45b6VLeqpjt4pEndljkYRm4CgPukLjbo73FCeT
+ae6RDqNfDrHrZqJyTxIThmV6PttPB/SnCWDaOkKZx7J/sxaVHMf5NLWUhdWZXqBIoH7nF2W4onW4
+HvPlQn2v7fOKSGRdghST2MDk/7NQcvJ29rNdQlB50JQ+awwAvthrDk4q7D7SzIKiGGUzE3eeml0a
+E9jD2z3Il3rucO2n5nzbcc8tlGLfbdb1OL4/pYUKGbio2Al1QnDE6u/LDsg0qBIimAy4E5S2S+zw
+0JDnJwIDAQABo4HjMIHgMB0GA1UdEQQWMBSBEmVjX2FjY0BjYXRjZXJ0Lm5ldDAPBgNVHRMBAf8E
+BTADAQH/MA4GA1UdDwEB/wQEAwIBBjAdBgNVHQ4EFgQUoMOLRKo3pUW/l4Ba0fF4opvpXY0wfwYD
+VR0gBHgwdjB0BgsrBgEEAfV4AQMBCjBlMCwGCCsGAQUFBwIBFiBodHRwczovL3d3dy5jYXRjZXJ0
+Lm5ldC92ZXJhcnJlbDA1BggrBgEFBQcCAjApGidWZWdldSBodHRwczovL3d3dy5jYXRjZXJ0Lm5l
+dC92ZXJhcnJlbCAwDQYJKoZIhvcNAQEFBQADggEBAKBIW4IB9k1IuDlVNZyAelOZ1Vr/sXE7zDkJ
+lF7W2u++AVtd0x7Y/X1PzaBB4DSTv8vihpw3kpBWHNzrKQXlxJ7HNd+KDM3FIUPpqojlNcAZQmNa
+Al6kSBg6hW/cnbw/nZzBh7h6YQjpdwt/cKt63dmXLGQehb+8dJahw3oS7AwaboMMPOhyRp/7SNVe
+l+axofjk70YllJyJ22k4vuxcDlbHZVHlUIiIv0LVKz3l+bqeLrPK9HOSAgu+TGbrIP65y7WZf+a2
+E/rKS03Z7lNGBjvGTq2TWoF+bCpLagVFjPIhpDGQh2xlnJ2lYJU6Un/10asIbvPuW/mIPX64b24D
+5EI=
+-----END CERTIFICATE-----
diff --git a/lib/rubygems/syck_hack.rb b/lib/rubygems/syck_hack.rb
new file mode 100644
index 0000000000..1971165452
--- /dev/null
+++ b/lib/rubygems/syck_hack.rb
@@ -0,0 +1,145 @@
+# :stopdoc:
+
+# Hack to handle syck's DefaultKey bug
+#
+# This file is always loaded AFTER either syck or psych are already
+# loaded. It then looks at what constants are available and creates
+# a consistent view on all rubys.
+#
+# All this is so that there is always a YAML::Syck::DefaultKey
+# class no matter if the full yaml library has loaded or not.
+#
+
+module YAML
+ # In newer 1.9.2, there is a Syck toplevel constant instead of it
+ # being underneith YAML. If so, reference it back under YAML as
+ # well.
+ if defined? ::Syck
+ # for tests that change YAML::ENGINE
+ # 1.8 does not support the second argument to const_defined?
+ remove_const :Syck rescue nil
+
+ Syck = ::Syck
+
+ # JRuby's "Syck" is called "Yecht"
+ elsif defined? YAML::Yecht
+ Syck = YAML::Yecht
+
+ # Otherwise, if there is no YAML::Syck, then we've got just psych
+ # loaded, so lets define a stub for DefaultKey.
+ elsif !defined? YAML::Syck
+ module Syck
+ class DefaultKey
+ end
+ end
+ end
+
+ # Now that we've got something that is always here, define #to_s
+ # so when code tries to use this, it at least just shows up like it
+ # should.
+ module Syck
+ class DefaultKey
+ remove_method :to_s rescue nil
+
+ def to_s
+ '='
+ end
+ end
+ end
+end
+
+# Sometime in the 1.9 dev cycle, the Syck constant was moved from under YAML
+# to be a toplevel constant. So gemspecs created under these versions of Syck
+# will have references to Syck::DefaultKey.
+#
+# So we need to be sure that we reference Syck at the toplevel too so that
+# we can always load these kind of gemspecs.
+#
+if !defined?(Syck)
+ Syck = YAML::Syck
+end
+
+# Now that we've got Syck setup in all the right places, store
+# a reference to the DefaultKey class inside Gem. We do this so that
+# if later on YAML, etc are redefined, we've still got a consistent
+# place to find the DefaultKey class for comparison.
+
+module Gem
+ # for tests that change YAML::ENGINE
+ remove_const :SyckDefaultKey if const_defined? :SyckDefaultKey
+
+ SyckDefaultKey = YAML::Syck::DefaultKey
+end
+
+# :startdoc:
+# :stopdoc:
+
+# Hack to handle syck's DefaultKey bug
+#
+# This file is always loaded AFTER either syck or psych are already
+# loaded. It then looks at what constants are available and creates
+# a consistent view on all rubys.
+#
+# All this is so that there is always a YAML::Syck::DefaultKey
+# class no matter if the full yaml library has loaded or not.
+#
+
+module YAML
+ # In newer 1.9.2, there is a Syck toplevel constant instead of it
+ # being underneith YAML. If so, reference it back under YAML as
+ # well.
+ if defined? ::Syck
+ # for tests that change YAML::ENGINE
+ remove_const :Syck if const_defined? :Syck, false
+
+ Syck = ::Syck
+
+ # JRuby's "Syck" is called "Yecht"
+ elsif defined? YAML::Yecht
+ Syck = YAML::Yecht
+
+ # Otherwise, if there is no YAML::Syck, then we've got just psych
+ # loaded, so lets define a stub for DefaultKey.
+ elsif !defined? YAML::Syck
+ module Syck
+ class DefaultKey
+ end
+ end
+ end
+
+ # Now that we've got something that is always here, define #to_s
+ # so when code tries to use this, it at least just shows up like it
+ # should.
+ module Syck
+ class DefaultKey
+ def to_s
+ '='
+ end
+ end
+ end
+end
+
+# Sometime in the 1.9 dev cycle, the Syck constant was moved from under YAML
+# to be a toplevel constant. So gemspecs created under these versions of Syck
+# will have references to Syck::DefaultKey.
+#
+# So we need to be sure that we reference Syck at the toplevel too so that
+# we can always load these kind of gemspecs.
+#
+if !defined?(Syck)
+ Syck = YAML::Syck
+end
+
+# Now that we've got Syck setup in all the right places, store
+# a reference to the DefaultKey class inside Gem. We do this so that
+# if later on YAML, etc are redefined, we've still got a consistent
+# place to find the DefaultKey class for comparison.
+
+module Gem
+ # for tests that change YAML::ENGINE
+ remove_const :SyckDefaultKey if const_defined? :SyckDefaultKey
+
+ SyckDefaultKey = YAML::Syck::DefaultKey
+end
+
+# :startdoc:
diff --git a/lib/rubygems/test_case.rb b/lib/rubygems/test_case.rb
new file mode 100644
index 0000000000..9fbdfca52e
--- /dev/null
+++ b/lib/rubygems/test_case.rb
@@ -0,0 +1,870 @@
+at_exit { $SAFE = 1 }
+
+if defined? Gem::QuickLoader
+ Gem::QuickLoader.load_full_rubygems_library
+else
+ require 'rubygems'
+end
+
+begin
+ gem 'minitest'
+rescue Gem::LoadError
+end
+
+require "rubygems/deprecate"
+require 'minitest/autorun'
+require 'fileutils'
+require 'tmpdir'
+require 'uri'
+require 'rubygems/package'
+require 'rubygems/test_utilities'
+require 'pp'
+require 'zlib'
+require 'pathname'
+Gem.load_yaml
+
+require 'rubygems/mock_gem_ui'
+
+module Gem
+
+ ##
+ # Allows setting the gem path searcher. This method is available when
+ # requiring 'rubygems/test_case'
+
+ def self.searcher=(searcher)
+ @searcher = searcher
+ end
+
+ ##
+ # Allows setting the default SourceIndex. This method is available when
+ # requiring 'rubygems/test_case'
+
+ def self.source_index=(si)
+ raise "This method is not supported"
+ Gem::Specification.reset if si # HACK
+ @@source_index = si
+ end
+
+ ##
+ # Allows toggling Windows behavior. This method is available when requiring
+ # 'rubygems/test_case'
+
+ def self.win_platform=(val)
+ @@win_platform = val
+ end
+
+ ##
+ # Allows setting path to ruby. This method is available when requiring
+ # 'rubygems/test_case'
+
+ def self.ruby= ruby
+ @ruby = ruby
+ end
+
+ ##
+ # When rubygems/test_case is required the default user interaction is a
+ # MockGemUi.
+
+ module DefaultUserInteraction
+ @ui = Gem::MockGemUi.new
+ end
+end
+
+##
+# RubyGemTestCase provides a variety of methods for testing rubygems and
+# gem-related behavior in a sandbox. Through RubyGemTestCase you can install
+# and uninstall gems, fetch remote gems through a stub fetcher and be assured
+# your normal set of gems is not affected.
+#
+# Tests are always run at a safe level of 1.
+
+class Gem::TestCase < MiniTest::Unit::TestCase
+
+ # TODO: move to minitest
+ def assert_path_exists path, msg = nil
+ msg = message(msg) { "Expected path '#{path}' to exist" }
+ assert File.exist?(path), msg
+ end
+
+ # TODO: move to minitest
+ def refute_path_exists path, msg = nil
+ msg = message(msg) { "Expected path '#{path}' to not exist" }
+ refute File.exist?(path), msg
+ end
+
+ include Gem::DefaultUserInteraction
+
+ undef_method :default_test if instance_methods.include? 'default_test' or
+ instance_methods.include? :default_test
+
+ @@project_dir = Dir.pwd unless defined?(@@project_dir)
+
+ ##
+ # #setup prepares a sandboxed location to install gems. All installs are
+ # directed to a temporary directory. All install plugins are removed.
+ #
+ # If the +RUBY+ environment variable is set the given path is used for
+ # Gem::ruby. The local platform is set to <tt>i386-mswin32</tt> for Windows
+ # or <tt>i686-darwin8.10.1</tt> otherwise.
+ #
+ # If the +KEEP_FILES+ environment variable is set the files will not be
+ # removed from <tt>/tmp/test_rubygems_#{$$}.#{Time.now.to_i}</tt>.
+
+ def setup
+ super
+
+ @orig_gem_home = ENV['GEM_HOME']
+ @orig_gem_path = ENV['GEM_PATH']
+
+ @current_dir = Dir.pwd
+ @ui = Gem::MockGemUi.new
+
+ tmpdir = nil
+ Dir.chdir Dir.tmpdir do tmpdir = Dir.pwd end # HACK OSX /private/tmp
+
+ if ENV['KEEP_FILES'] then
+ @tempdir = File.join(tmpdir, "test_rubygems_#{$$}.#{Time.now.to_i}")
+ else
+ @tempdir = File.join(tmpdir, "test_rubygems_#{$$}")
+ end
+ @tempdir.untaint
+ @gemhome = File.join @tempdir, 'gemhome'
+ @userhome = File.join @tempdir, 'userhome'
+
+ @orig_ruby = if ruby = ENV['RUBY'] then
+ Gem.class_eval { ruby, @ruby = @ruby, ruby }
+ ruby
+ end
+
+ Gem.ensure_gem_subdirectories @gemhome
+
+ @orig_LOAD_PATH = $LOAD_PATH.dup
+ $LOAD_PATH.map! { |s| File.expand_path s }
+
+ Dir.chdir @tempdir
+
+ @orig_ENV_HOME = ENV['HOME']
+ ENV['HOME'] = @userhome
+ Gem.instance_variable_set :@user_home, nil
+
+ FileUtils.mkdir_p @gemhome
+ FileUtils.mkdir_p @userhome
+
+ Gem.use_paths(@gemhome)
+
+ Gem.loaded_specs.clear
+ Gem.unresolved_deps.clear
+
+ Gem.configuration.verbose = true
+ Gem.configuration.update_sources = true
+
+ @gem_repo = "http://gems.example.com/"
+ @uri = URI.parse @gem_repo
+ Gem.sources.replace [@gem_repo]
+
+ Gem.searcher = nil
+ Gem::SpecFetcher.fetcher = nil
+
+ @orig_BASERUBY = Gem::ConfigMap[:BASERUBY]
+ Gem::ConfigMap[:BASERUBY] = Gem::ConfigMap[:ruby_install_name]
+
+ @orig_arch = Gem::ConfigMap[:arch]
+
+ if win_platform?
+ util_set_arch 'i386-mswin32'
+ else
+ util_set_arch 'i686-darwin8.10.1'
+ end
+
+ @marshal_version = "#{Marshal::MAJOR_VERSION}.#{Marshal::MINOR_VERSION}"
+
+ # TODO: move to installer test cases
+ Gem.post_build_hooks.clear
+ Gem.post_install_hooks.clear
+ Gem.post_uninstall_hooks.clear
+ Gem.pre_install_hooks.clear
+ Gem.pre_uninstall_hooks.clear
+
+ # TODO: move to installer test cases
+ Gem.post_build do |installer|
+ @post_build_hook_arg = installer
+ true
+ end
+
+ Gem.post_install do |installer|
+ @post_install_hook_arg = installer
+ end
+
+ Gem.post_uninstall do |uninstaller|
+ @post_uninstall_hook_arg = uninstaller
+ end
+
+ Gem.pre_install do |installer|
+ @pre_install_hook_arg = installer
+ true
+ end
+
+ Gem.pre_uninstall do |uninstaller|
+ @pre_uninstall_hook_arg = uninstaller
+ end
+ end
+
+ ##
+ # #teardown restores the process to its original state and removes the
+ # tempdir unless the +KEEP_FILES+ environment variable was set.
+
+ def teardown
+ $LOAD_PATH.replace @orig_LOAD_PATH
+
+ Gem::ConfigMap[:BASERUBY] = @orig_BASERUBY
+ Gem::ConfigMap[:arch] = @orig_arch
+
+ if defined? Gem::RemoteFetcher then
+ Gem::RemoteFetcher.fetcher = nil
+ end
+
+ Dir.chdir @current_dir
+
+ FileUtils.rm_rf @tempdir unless ENV['KEEP_FILES']
+
+ ENV['GEM_HOME'] = @orig_gem_home
+ ENV['GEM_PATH'] = @orig_gem_path
+
+ _ = @orig_ruby
+ Gem.class_eval { @ruby = _ } if _
+
+ if @orig_ENV_HOME then
+ ENV['HOME'] = @orig_ENV_HOME
+ else
+ ENV.delete 'HOME'
+ end
+ end
+
+ ##
+ # Builds and installs the Gem::Specification +spec+
+
+ def install_gem spec, options = {}
+ require 'rubygems/installer'
+
+ use_ui Gem::MockGemUi.new do
+ Dir.chdir @tempdir do
+ Gem::Builder.new(spec).build
+ end
+ end
+
+ gem = File.join(@tempdir, File.basename(spec.cache_file)).untaint
+
+ Gem::Installer.new(gem, options.merge({:wrappers => true})).install
+ end
+
+ ##
+ # Builds and installs the Gem::Specification +spec+ into the user dir
+
+ def install_gem_user spec
+ install_gem spec, :user_install => true
+ end
+
+ ##
+ # Uninstalls the Gem::Specification +spec+
+ def uninstall_gem spec
+ require 'rubygems/uninstaller'
+
+ Gem::Uninstaller.new(spec.name,
+ :executables => true, :user_install => true).uninstall
+ end
+
+ ##
+ # creates a temporary directory with hax
+
+ def create_tmpdir
+ tmpdir = nil
+ Dir.chdir Dir.tmpdir do tmpdir = Dir.pwd end # HACK OSX /private/tmp
+ tmpdir = File.join tmpdir, "test_rubygems_#{$$}"
+ FileUtils.mkdir_p tmpdir
+ return tmpdir
+ end
+
+ ##
+ # Enables pretty-print for all tests
+
+ def mu_pp(obj)
+ s = ''
+ s = PP.pp obj, s
+ s = s.force_encoding(Encoding.default_external) if defined? Encoding
+ s.chomp
+ end
+
+ ##
+ # Reads a Marshal file at +path+
+
+ def read_cache(path)
+ open path.dup.untaint, 'rb' do |io|
+ Marshal.load io.read
+ end
+ end
+
+ ##
+ # Reads a binary file at +path+
+
+ def read_binary(path)
+ Gem.read_binary path
+ end
+
+ ##
+ # Writes a binary file to +path+ which is relative to +@gemhome+
+
+ def write_file(path)
+ path = File.join @gemhome, path unless Pathname.new(path).absolute?
+ dir = File.dirname path
+ FileUtils.mkdir_p dir
+
+ open path, 'wb' do |io|
+ yield io if block_given?
+ end
+
+ path
+ end
+
+ def all_spec_names
+ Gem::Specification.map(&:full_name)
+ end
+
+ ##
+ # Creates a Gem::Specification with a minimum of extra work. +name+ and
+ # +version+ are the gem's name and version, platform, author, email,
+ # homepage, summary and description are defaulted. The specification is
+ # yielded for customization.
+ #
+ # The gem is added to the installed gems in +@gemhome+ and to the current
+ # source_index.
+ #
+ # Use this with #write_file to build an installed gem.
+
+ def quick_gem(name, version='2')
+ require 'rubygems/specification'
+
+ spec = Gem::Specification.new do |s|
+ s.platform = Gem::Platform::RUBY
+ s.name = name
+ s.version = version
+ s.author = 'A User'
+ s.email = 'example@example.com'
+ s.homepage = 'http://example.com'
+ s.summary = "this is a summary"
+ s.description = "This is a test description"
+
+ yield(s) if block_given?
+ end
+
+ Gem::Specification.map # HACK: force specs to (re-)load before we write
+
+ written_path = write_file spec.spec_file do |io|
+ io.write spec.to_ruby_for_cache
+ end
+
+ spec.loaded_from = spec.loaded_from = written_path
+
+ Gem::Specification.add_spec spec.for_cache
+
+ return spec
+ end
+
+ def quick_spec name, version = '2'
+ # TODO: deprecate
+ require 'rubygems/specification'
+
+ spec = Gem::Specification.new do |s|
+ s.platform = Gem::Platform::RUBY
+ s.name = name
+ s.version = version
+ s.author = 'A User'
+ s.email = 'example@example.com'
+ s.homepage = 'http://example.com'
+ s.summary = "this is a summary"
+ s.description = "This is a test description"
+
+ yield(s) if block_given?
+ end
+
+ spec.loaded_from = spec.spec_file
+
+ Gem::Specification.add_spec spec
+
+ return spec
+ end
+
+ ##
+ # Builds a gem from +spec+ and places it in <tt>File.join @gemhome,
+ # 'cache'</tt>. Automatically creates files based on +spec.files+
+
+ def util_build_gem(spec)
+ dir = spec.gem_dir
+ FileUtils.mkdir_p dir
+
+ Dir.chdir dir do
+ spec.files.each do |file|
+ next if File.exist? file
+ FileUtils.mkdir_p File.dirname(file)
+ File.open file, 'w' do |fp| fp.puts "# #{file}" end
+ end
+
+ use_ui Gem::MockGemUi.new do
+ Gem::Builder.new(spec).build
+ end
+
+ cache = spec.cache_file
+ FileUtils.mv File.basename(cache), cache
+ end
+ end
+
+ ##
+ # Removes all installed gems from +@gemhome+.
+
+ def util_clear_gems
+ FileUtils.rm_rf File.join(@gemhome, "gems") # TODO: use Gem::Dirs
+ FileUtils.rm_rf File.join(@gemhome, "specifications")
+ Gem::Specification.reset
+ end
+
+ ##
+ # Install the provided specs
+
+ def install_specs(*specs)
+ Gem::Specification.add_specs(*specs)
+ Gem.searcher = nil
+ end
+
+ ##
+ # Create a new spec (or gem if passed an array of files) and set it
+ # up properly. Use this instead of util_spec and util_gem.
+
+ def new_spec name, version, deps = nil, *files
+ require 'rubygems/specification'
+
+ spec = Gem::Specification.new do |s|
+ s.platform = Gem::Platform::RUBY
+ s.name = name
+ s.version = version
+ s.author = 'A User'
+ s.email = 'example@example.com'
+ s.homepage = 'http://example.com'
+ s.summary = "this is a summary"
+ s.description = "This is a test description"
+
+ Array(deps).each do |n, req|
+ s.add_dependency n, (req || '>= 0')
+ end
+
+ s.files.push(*files) unless files.empty?
+
+ yield s if block_given?
+ end
+
+ spec.loaded_from = spec.spec_file
+
+ unless files.empty? then
+ write_file spec.spec_file do |io|
+ io.write spec.to_ruby_for_cache
+ end
+
+ util_build_gem spec
+
+ cache_file = File.join @tempdir, 'gems', "#{spec.full_name}.gem"
+ FileUtils.mkdir_p File.dirname cache_file
+ FileUtils.mv spec.cache_file, cache_file
+ FileUtils.rm spec.spec_file
+ end
+
+ spec
+ end
+
+ ##
+ # Creates a spec with +name+, +version+ and +deps+.
+
+ def util_spec(name, version, deps = nil, &block)
+ # TODO: deprecate
+ raise "deps or block, not both" if deps and block
+
+ if deps then
+ block = proc do |s|
+ # Since Hash#each is unordered in 1.8, sort
+ # the keys and iterate that way so the tests are
+ # deteriminstic on all implementations.
+ deps.keys.sort.each do |n|
+ s.add_dependency n, (deps[n] || '>= 0')
+ end
+ end
+ end
+
+ quick_spec(name, version, &block)
+ end
+
+ ##
+ # Creates a gem with +name+, +version+ and +deps+. The specification will
+ # be yielded before gem creation for customization. The gem will be placed
+ # in <tt>File.join @tempdir, 'gems'</tt>. The specification and .gem file
+ # location are returned.
+
+ def util_gem(name, version, deps = nil, &block)
+ # TODO: deprecate
+ raise "deps or block, not both" if deps and block
+
+ if deps then
+ block = proc do |s|
+ # Since Hash#each is unordered in 1.8, sort
+ # the keys and iterate that way so the tests are
+ # deteriminstic on all implementations.
+ deps.keys.sort.each do |n|
+ s.add_dependency n, (deps[n] || '>= 0')
+ end
+ end
+ end
+
+ spec = quick_gem(name, version, &block)
+
+ util_build_gem spec
+
+ cache_file = File.join @tempdir, 'gems', "#{spec.original_name}.gem"
+ FileUtils.mkdir_p File.dirname cache_file
+ FileUtils.mv spec.cache_file, cache_file
+ FileUtils.rm spec.spec_file
+
+ spec.loaded_from = nil
+
+ [spec, cache_file]
+ end
+
+ ##
+ # Gzips +data+.
+
+ def util_gzip(data)
+ out = StringIO.new
+
+ Zlib::GzipWriter.wrap out do |io|
+ io.write data
+ end
+
+ out.string
+ end
+
+ ##
+ # Creates several default gems which all have a lib/code.rb file. The gems
+ # are not installed but are available in the cache dir.
+ #
+ # +@a1+:: gem a version 1, this is the best-described gem.
+ # +@a2+:: gem a version 2
+ # +@a3a:: gem a version 3.a
+ # +@a_evil9+:: gem a_evil version 9, use this to ensure similarly-named gems
+ # don't collide with a.
+ # +@b2+:: gem b version 2
+ # +@c1_2+:: gem c version 1.2
+ # +@pl1+:: gem pl version 1, this gem has a legacy platform of i386-linux.
+ #
+ # Additional +prerelease+ gems may also be created:
+ #
+ # +@a2_pre+:: gem a version 2.a
+ # TODO: nuke this and fix tests. this should speed up a lot
+
+ def util_make_gems(prerelease = false)
+ @a1 = quick_gem 'a', '1' do |s|
+ s.files = %w[lib/code.rb]
+ s.require_paths = %w[lib]
+ s.date = Gem::Specification::TODAY - 86400
+ s.homepage = 'http://a.example.com'
+ s.email = %w[example@example.com example2@example.com]
+ s.authors = %w[Example Example2]
+ s.description = <<-DESC
+This line is really, really long. So long, in fact, that it is more than eighty characters long! The purpose of this line is for testing wrapping behavior because sometimes people don't wrap their text to eighty characters. Without the wrapping, the text might not look good in the RSS feed.
+
+Also, a list:
+ * An entry that\'s actually kind of sort
+ * an entry that\'s really long, which will probably get wrapped funny. That's ok, somebody wasn't thinking straight when they made it more than eighty characters.
+ DESC
+ end
+
+ init = proc do |s|
+ s.files = %w[lib/code.rb]
+ s.require_paths = %w[lib]
+ end
+
+ @a2 = quick_gem('a', '2', &init)
+ @a3a = quick_gem('a', '3.a', &init)
+ @a_evil9 = quick_gem('a_evil', '9', &init)
+ @b2 = quick_gem('b', '2', &init)
+ @c1_2 = quick_gem('c', '1.2', &init)
+
+ @pl1 = quick_gem 'pl', '1' do |s| # l for legacy
+ s.files = %w[lib/code.rb]
+ s.require_paths = %w[lib]
+ s.platform = Gem::Platform.new 'i386-linux'
+ s.instance_variable_set :@original_platform, 'i386-linux'
+ end
+
+ if prerelease
+ @a2_pre = quick_gem('a', '2.a', &init)
+ write_file File.join(*%W[gems #{@a2_pre.original_name} lib code.rb])
+ util_build_gem @a2_pre
+ end
+
+ write_file File.join(*%W[gems #{@a1.original_name} lib code.rb])
+ write_file File.join(*%W[gems #{@a2.original_name} lib code.rb])
+ write_file File.join(*%W[gems #{@a3a.original_name} lib code.rb])
+ write_file File.join(*%W[gems #{@b2.original_name} lib code.rb])
+ write_file File.join(*%W[gems #{@c1_2.original_name} lib code.rb])
+ write_file File.join(*%W[gems #{@pl1.original_name} lib code.rb])
+
+ [@a1, @a2, @a3a, @a_evil9, @b2, @c1_2, @pl1].each do |spec|
+ util_build_gem spec
+ end
+
+ FileUtils.rm_r File.join(@gemhome, "gems", @pl1.original_name)
+ end
+
+ ##
+ # Set the platform to +arch+
+
+ def util_set_arch(arch)
+ Gem::ConfigMap[:arch] = arch
+ platform = Gem::Platform.new arch
+
+ Gem.instance_variable_set :@platforms, nil
+ Gem::Platform.instance_variable_set :@local, nil
+
+ platform
+ end
+
+ ##
+ # Sets up a fake fetcher using the gems from #util_make_gems. Optionally
+ # additional +prerelease+ gems may be included.
+ #
+ # Gems created by this method may be fetched using Gem::RemoteFetcher.
+
+ def util_setup_fake_fetcher(prerelease = false)
+ require 'zlib'
+ require 'socket'
+ require 'rubygems/remote_fetcher'
+
+ @fetcher = Gem::FakeFetcher.new
+
+ util_make_gems(prerelease)
+ Gem::Specification.reset
+
+ @all_gems = [@a1, @a2, @a3a, @a_evil9, @b2, @c1_2].sort
+ @all_gem_names = @all_gems.map { |gem| gem.full_name }
+
+ gem_names = [@a1.full_name, @a2.full_name, @a3a.full_name, @b2.full_name]
+ @gem_names = gem_names.sort.join("\n")
+
+ Gem::RemoteFetcher.fetcher = @fetcher
+ end
+
+ ##
+ # Sets up Gem::SpecFetcher to return information from the gems in +specs+.
+ # Best used with +@all_gems+ from #util_setup_fake_fetcher.
+
+ def util_setup_spec_fetcher(*specs)
+ specs -= Gem::Specification._all
+ Gem::Specification.add_specs(*specs)
+
+ spec_fetcher = Gem::SpecFetcher.fetcher
+
+ prerelease, _ = Gem::Specification.partition { |spec|
+ spec.version.prerelease?
+ }
+
+ spec_fetcher.specs[@uri] = []
+ Gem::Specification.each do |spec|
+ spec_tuple = [spec.name, spec.version, spec.original_platform]
+ spec_fetcher.specs[@uri] << spec_tuple
+ end
+
+ spec_fetcher.latest_specs[@uri] = []
+ Gem::Specification.latest_specs.each do |spec|
+ spec_tuple = [spec.name, spec.version, spec.original_platform]
+ spec_fetcher.latest_specs[@uri] << spec_tuple
+ end
+
+ spec_fetcher.prerelease_specs[@uri] = []
+ prerelease.each do |spec|
+ spec_tuple = [spec.name, spec.version, spec.original_platform]
+ spec_fetcher.prerelease_specs[@uri] << spec_tuple
+ end
+
+ v = Gem.marshal_version
+
+ Gem::Specification.each do |spec|
+ path = "#{@gem_repo}quick/Marshal.#{v}/#{spec.original_name}.gemspec.rz"
+ data = Marshal.dump spec
+ data_deflate = Zlib::Deflate.deflate data
+ @fetcher.data[path] = data_deflate
+ end unless Gem::RemoteFetcher === @fetcher # HACK for test_download_to_cache
+
+ nil # force errors
+ end
+
+ ##
+ # Deflates +data+
+
+ def util_zip(data)
+ Zlib::Deflate.deflate data
+ end
+
+ ##
+ # Is this test being run on a Windows platform?
+
+ def self.win_platform?
+ Gem.win_platform?
+ end
+
+ ##
+ # Is this test being run on a Windows platform?
+
+ def win_platform?
+ Gem.win_platform?
+ end
+
+ ##
+ # Returns whether or not we're on a version of Ruby built with VC++ (or
+ # Borland) versus Cygwin, Mingw, etc.
+
+ def self.vc_windows?
+ RUBY_PLATFORM.match('mswin')
+ end
+
+ ##
+ # Returns whether or not we're on a version of Ruby built with VC++ (or
+ # Borland) versus Cygwin, Mingw, etc.
+
+ def vc_windows?
+ RUBY_PLATFORM.match('mswin')
+ end
+
+ ##
+ # Returns the make command for the current platform. For versions of Ruby
+ # built on MS Windows with VC++ or Borland it will return 'nmake'. On all
+ # other platforms, including Cygwin, it will return 'make'.
+
+ def self.make_command
+ ENV["make"] || (vc_windows? ? 'nmake' : 'make')
+ end
+
+ ##
+ # Returns the make command for the current platform. For versions of Ruby
+ # built on MS Windows with VC++ or Borland it will return 'nmake'. On all
+ # other platforms, including Cygwin, it will return 'make'.
+
+ def make_command
+ ENV["make"] || (vc_windows? ? 'nmake' : 'make')
+ end
+
+ ##
+ # Returns whether or not the nmake command could be found.
+
+ def nmake_found?
+ system('nmake /? 1>NUL 2>&1')
+ end
+
+ ##
+ # Allows tests to use a random (but controlled) port number instead of
+ # a hardcoded one. This helps CI tools when running parallels builds on
+ # the same builder slave.
+
+ def self.process_based_port
+ @@process_based_port ||= 8000 + $$ % 1000
+ end
+
+ ##
+ # See ::process_based_port
+
+ def process_based_port
+ self.class.process_based_port
+ end
+
+ ##
+ # Allows the proper version of +rake+ to be used for the test.
+
+ def build_rake_in
+ gem_ruby = Gem.ruby
+ Gem.ruby = @@ruby
+ env_rake = ENV["rake"]
+ ENV["rake"] = @@rake
+ yield @@rake
+ ensure
+ Gem.ruby = gem_ruby
+ if env_rake
+ ENV["rake"] = env_rake
+ else
+ ENV.delete("rake")
+ end
+ end
+
+ ##
+ # Finds the path to the ruby executable
+
+ def self.rubybin
+ ruby = ENV["RUBY"]
+ return ruby if ruby
+ ruby = "ruby"
+ rubyexe = "#{ruby}.exe"
+
+ 3.times do
+ if File.exist? ruby and File.executable? ruby and !File.directory? ruby
+ return File.expand_path(ruby)
+ end
+ if File.exist? rubyexe and File.executable? rubyexe
+ return File.expand_path(rubyexe)
+ end
+ ruby = File.join("..", ruby)
+ end
+
+ begin
+ require "rbconfig"
+ File.join(RbConfig::CONFIG["bindir"],
+ RbConfig::CONFIG["ruby_install_name"] +
+ RbConfig::CONFIG["EXEEXT"])
+ rescue LoadError
+ "ruby"
+ end
+ end
+
+ @@ruby = rubybin
+ env_rake = ENV['rake']
+ ruby19_rake = File.expand_path("bin/rake", @@project_dir)
+ @@rake = if env_rake then
+ ENV["rake"]
+ elsif File.exist? ruby19_rake then
+ @@ruby + " " + ruby19_rake
+ else
+ 'rake'
+ end
+
+ ##
+ # Construct a new Gem::Dependency.
+
+ def dep name, *requirements
+ Gem::Dependency.new name, *requirements
+ end
+
+ ##
+ # Constructs a new Gem::Requirement.
+
+ def req *requirements
+ return requirements.first if Gem::Requirement === requirements.first
+ Gem::Requirement.create requirements
+ end
+
+ ##
+ # Constructs a new Gem::Specification.
+
+ def spec name, version, &block
+ Gem::Specification.new name, v(version), &block
+ end
+
+ ##
+ # Construct a new Gem::Version.
+
+ def v string
+ Gem::Version.create string
+ end
+
+end
diff --git a/lib/rubygems/test_utilities.rb b/lib/rubygems/test_utilities.rb
index 85541c9fc3..1a8fb5a0ad 100644
--- a/lib/rubygems/test_utilities.rb
+++ b/lib/rubygems/test_utilities.rb
@@ -23,6 +23,7 @@ require 'rubygems/remote_fetcher'
class Gem::FakeFetcher
attr_reader :data
+ attr_reader :last_request
attr_accessor :paths
def initialize
@@ -30,16 +31,20 @@ class Gem::FakeFetcher
@paths = []
end
- def fetch_path path, mtime = nil
+ def find_data(path)
path = path.to_s
@paths << path
- raise ArgumentError, 'need full URI' unless path =~ %r'^http://'
+ raise ArgumentError, 'need full URI' unless path =~ %r'^https?://'
unless @data.key? path then
raise Gem::RemoteFetcher::FetchError.new("no data for #{path}", path)
end
- data = @data[path]
+ @data[path]
+ end
+
+ def fetch_path path, mtime = nil
+ data = find_data(path)
if data.respond_to?(:call) then
data.call
@@ -52,6 +57,30 @@ class Gem::FakeFetcher
end
end
+ # Thanks, FakeWeb!
+ def open_uri_or_path(path)
+ data = find_data(path)
+ body, code, msg = data
+
+ response = Net::HTTPResponse.send(:response_class, code.to_s).new("1.0", code.to_s, msg)
+ response.instance_variable_set(:@body, body)
+ response.instance_variable_set(:@read, true)
+ response
+ end
+
+ def request(uri, request_class, last_modified = nil)
+ data = find_data(uri)
+ body, code, msg = data
+
+ @last_request = request_class.new uri.request_uri
+ yield @last_request if block_given?
+
+ response = Net::HTTPResponse.send(:response_class, code.to_s).new("1.0", code.to_s, msg)
+ response.instance_variable_set(:@body, body)
+ response.instance_variable_set(:@read, true)
+ response
+ end
+
def fetch_size(path)
path = path.to_s
@paths << path
@@ -68,8 +97,8 @@ class Gem::FakeFetcher
end
def download spec, source_uri, install_dir = Gem.dir
- name = "#{spec.full_name}.gem"
- path = File.join(install_dir, 'cache', name)
+ name = File.basename spec.cache_file
+ path = File.join install_dir, "cache", name
Gem.ensure_gem_subdirectories install_dir
@@ -84,6 +113,17 @@ class Gem::FakeFetcher
path
end
+ def download_to_cache dependency
+ found = Gem::SpecFetcher.fetcher.fetch dependency, true, true,
+ dependency.prerelease?
+
+ return if found.empty?
+
+ spec, source_uri = found.first
+
+ download spec, source_uri
+ end
+
end
# :stopdoc:
@@ -99,33 +139,22 @@ end
##
# A StringIO duck-typed class that uses Tempfile instead of String as the
# backing store.
+#
+# This is available when rubygems/test_utilities is required.
#--
# This class was added to flush out problems in Rubinius' IO implementation.
-class TempIO
-
- @@count = 0
-
+class TempIO < Tempfile
def initialize(string = '')
- @tempfile = Tempfile.new "TempIO-#{@@count += 1}"
- @tempfile.binmode
- @tempfile.write string
- @tempfile.rewind
- end
-
- def method_missing(meth, *args, &block)
- @tempfile.send(meth, *args, &block)
- end
-
- def respond_to?(meth)
- @tempfile.respond_to? meth
+ super "TempIO"
+ binmode
+ write string
+ rewind
end
def string
- @tempfile.flush
-
- Gem.read_binary @tempfile.path
+ flush
+ Gem.read_binary path
end
-
end
diff --git a/lib/rubygems/text.rb b/lib/rubygems/text.rb
new file mode 100644
index 0000000000..793cd953cb
--- /dev/null
+++ b/lib/rubygems/text.rb
@@ -0,0 +1,65 @@
+require 'rubygems'
+
+##
+# A collection of text-wrangling methods
+
+module Gem::Text
+
+ ##
+ # Wraps +text+ to +wrap+ characters and optionally indents by +indent+
+ # characters
+
+ def format_text(text, wrap, indent=0)
+ result = []
+ work = text.dup
+
+ while work.length > wrap do
+ if work =~ /^(.{0,#{wrap}})[ \n]/ then
+ result << $1.rstrip
+ work.slice!(0, $&.length)
+ else
+ result << work.slice!(0, wrap)
+ end
+ end
+
+ result << work if work.length.nonzero?
+ result.join("\n").gsub(/^/, " " * indent)
+ end
+
+ # This code is based directly on the Text gem implementation
+ # Returns a value representing the "cost" of transforming str1 into str2
+ def levenshtein_distance str1, str2
+ s = str1
+ t = str2
+ n = s.length
+ m = t.length
+ max = n/2
+
+ return m if (0 == n)
+ return n if (0 == m)
+ return n if (n - m).abs > max
+
+ d = (0..m).to_a
+ x = nil
+
+ n.times do |i|
+ e = i+1
+
+ m.times do |j|
+ cost = (s[i] == t[j]) ? 0 : 1
+ x = [
+ d[j+1] + 1, # insertion
+ e + 1, # deletion
+ d[j] + cost # substitution
+ ].min
+ d[j] = e
+ e = x
+ end
+
+ d[m] = x
+ end
+
+ return x
+ end
+end
+
diff --git a/lib/rubygems/timer.rb b/lib/rubygems/timer.rb
deleted file mode 100644
index 06250f26b5..0000000000
--- a/lib/rubygems/timer.rb
+++ /dev/null
@@ -1,25 +0,0 @@
-#
-# This file defines a $log variable for logging, and a time() method for recording timing
-# information.
-#
-#--
-# Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others.
-# All rights reserved.
-# See LICENSE.txt for permissions.
-#++
-
-
-$log = Object.new
-def $log.debug(str)
- STDERR.puts str
-end
-
-def time(msg, width=25)
- t = Time.now
- return_value = yield
- elapsed = Time.now.to_f - t.to_f
- elapsed = sprintf("%3.3f", elapsed)
- $log.debug "#{msg.ljust(width)}: #{elapsed}s"
- return_value
-end
-
diff --git a/lib/rubygems/uninstaller.rb b/lib/rubygems/uninstaller.rb
index 5f19da5e82..cc32ea48c4 100644
--- a/lib/rubygems/uninstaller.rb
+++ b/lib/rubygems/uninstaller.rb
@@ -12,6 +12,11 @@ require 'rubygems/user_interaction'
##
# An Uninstaller.
+#
+# The uninstaller fires pre and post uninstall hooks. Hooks can be added
+# either through a rubygems_plugin.rb file in an installed gem or via a
+# rubygems/defaults/#{RUBY_ENGINE}.rb or rubygems/defaults/operating_system.rb
+# file. See Gem.pre_uninstall and Gem.post_uninstall for details.
class Gem::Uninstaller
@@ -37,17 +42,24 @@ class Gem::Uninstaller
# Constructs an uninstaller that will uninstall +gem+
def initialize(gem, options = {})
- @gem = gem
- @version = options[:version] || Gem::Requirement.default
- gem_home = options[:install_dir] || Gem.dir
- @gem_home = File.expand_path gem_home
+ @gem = gem
+ @version = options[:version] || Gem::Requirement.default
+ @gem_home = File.expand_path(options[:install_dir] || Gem.dir)
@force_executables = options[:executables]
- @force_all = options[:all]
- @force_ignore = options[:ignore]
- @bin_dir = options[:bin_dir]
+ @force_all = options[:all]
+ @force_ignore = options[:ignore]
+ @bin_dir = options[:bin_dir]
+ @format_executable = options[:format_executable]
- spec_dir = File.join @gem_home, 'specifications'
- @source_index = Gem::SourceIndex.from_gems_in spec_dir
+ # only add user directory if install_dir is not set
+ @user_install = false
+ @user_install = options[:user_install] unless options[:install_dir]
+
+ if @user_install then
+ Gem.use_paths Gem.user_dir, @gem_home
+ else
+ Gem.use_paths @gem_home
+ end
end
##
@@ -55,44 +67,51 @@ class Gem::Uninstaller
# directory, and the cached .gem file.
def uninstall
- list = @source_index.find_name @gem, @version
+ list = Gem::Specification.find_all_by_name(@gem, @version)
if list.empty? then
- raise Gem::InstallError, "Unknown gem #{@gem} #{@version}"
+ raise Gem::InstallError, "gem #{@gem.inspect} is not installed"
elsif list.size > 1 and @force_all then
- remove_all list.dup
+ remove_all list
elsif list.size > 1 then
gem_names = list.collect {|gem| gem.full_name} + ["All versions"]
say
- gem_name, index = choose_from_list "Select gem to uninstall:", gem_names
+ _, index = choose_from_list "Select gem to uninstall:", gem_names
if index == list.size then
- remove_all list.dup
+ remove_all list
elsif index >= 0 && index < list.size then
- uninstall_gem list[index], list.dup
+ uninstall_gem list[index]
else
say "Error: must enter a number [1-#{list.size+1}]"
end
else
- uninstall_gem list.first, list.dup
+ uninstall_gem list.first
end
end
##
# Uninstalls gem +spec+
- def uninstall_gem(spec, specs)
+ def uninstall_gem(spec)
@spec = spec
+ unless dependencies_ok? spec
+ unless ask_if_ok(spec)
+ raise Gem::DependencyRemovalException,
+ "Uninstallation aborted due to dependent gem(s)"
+ end
+ end
+
Gem.pre_uninstall_hooks.each do |hook|
hook.call self
end
- specs.each { |s| remove_executables s }
- remove spec, specs
+ remove_executables @spec
+ remove @spec
Gem.post_uninstall_hooks.each do |hook|
hook.call self
@@ -105,44 +124,48 @@ class Gem::Uninstaller
# Removes installed executables and batch files (windows only) for
# +gemspec+.
- def remove_executables(gemspec)
- return if gemspec.nil?
-
- if gemspec.executables.size > 0 then
- bindir = @bin_dir ? @bin_dir : (Gem.bindir @gem_home)
+ def remove_executables(spec)
+ return if spec.nil? or spec.executables.empty?
- list = @source_index.find_name(gemspec.name).delete_if { |spec|
- spec.version == gemspec.version
- }
+ list = Gem::Specification.find_all { |s|
+ s.name == spec.name && s.version != spec.version
+ }
- executables = gemspec.executables.clone
+ executables = spec.executables.clone
- list.each do |spec|
- spec.executables.each do |exe_name|
- executables.delete(exe_name)
- end
+ list.each do |s|
+ s.executables.each do |exe_name|
+ executables.delete exe_name
end
+ end
- return if executables.size == 0
+ return if executables.empty?
- answer = if @force_executables.nil? then
- ask_yes_no("Remove executables:\n" \
- "\t#{gemspec.executables.join(", ")}\n\nin addition to the gem?",
- true) # " # appease ruby-mode - don't ask
- else
- @force_executables
- end
+ executables = executables.map { |exec| formatted_program_filename exec }
- unless answer then
- say "Executables and scripts will remain installed."
- else
- raise Gem::FilePermissionError, bindir unless File.writable? bindir
+ remove = if @force_executables.nil? then
+ ask_yes_no("Remove executables:\n" \
+ "\t#{executables.join ', '}\n\n" \
+ "in addition to the gem?",
+ true)
+ else
+ @force_executables
+ end
+
+ unless remove then
+ say "Executables and scripts will remain installed."
+ else
+ bin_dir = @bin_dir || Gem.bindir(spec.base_dir)
+
+ raise Gem::FilePermissionError, bin_dir unless File.writable? bin_dir
+
+ executables.each do |exe_name|
+ say "Removing #{exe_name}"
- gemspec.executables.each do |exe_name|
- say "Removing #{exe_name}"
- FileUtils.rm_f File.join(bindir, exe_name)
- FileUtils.rm_f File.join(bindir, "#{exe_name}.bat")
- end
+ exe_file = File.join bin_dir, exe_name
+
+ FileUtils.rm_f exe_file
+ FileUtils.rm_f "#{exe_file}.bat"
end
end
end
@@ -153,7 +176,7 @@ class Gem::Uninstaller
# NOTE: removes uninstalled gems from +list+.
def remove_all(list)
- list.dup.each { |spec| uninstall_gem spec, list }
+ list.each { |spec| uninstall_gem spec }
end
##
@@ -163,13 +186,9 @@ class Gem::Uninstaller
# Warning: this method modifies the +list+ parameter. Once it has
# uninstalled a gem, it is removed from that list.
- def remove(spec, list)
- unless dependencies_ok? spec then
- raise Gem::DependencyRemovalException,
- "Uninstallation aborted due to dependent gem(s)"
- end
-
- unless path_ok? spec then
+ def remove(spec)
+ unless path_ok?(@gem_home, spec) or
+ (@user_install and path_ok?(Gem.user_dir, spec)) then
e = Gem::GemNotInHomeException.new \
"Gem is not installed in directory #{@gem_home}"
e.spec = spec
@@ -177,29 +196,27 @@ class Gem::Uninstaller
raise e
end
- raise Gem::FilePermissionError, spec.installation_path unless
- File.writable?(spec.installation_path)
+ raise Gem::FilePermissionError, spec.base_dir unless
+ File.writable?(spec.base_dir)
FileUtils.rm_rf spec.full_gem_path
- original_platform_name = [
- spec.name, spec.version, spec.original_platform].join '-'
+ # TODO: should this be moved to spec?... I vote eww (also exists in docmgr)
+ old_platform_name = [spec.name,
+ spec.version,
+ spec.original_platform].join '-'
- spec_dir = File.join spec.installation_path, 'specifications'
- gemspec = File.join spec_dir, "#{spec.full_name}.gemspec"
+ gemspec = spec.spec_file
unless File.exist? gemspec then
- gemspec = File.join spec_dir, "#{original_platform_name}.gemspec"
+ gemspec = File.join(File.dirname(gemspec), "#{old_platform_name}.gemspec")
end
FileUtils.rm_rf gemspec
- cache_dir = File.join spec.installation_path, 'cache'
- gem = File.join cache_dir, "#{spec.full_name}.gem"
-
- unless File.exist? gem then
- gem = File.join cache_dir, "#{original_platform_name}.gem"
- end
+ gem = spec.cache_file
+ gem = File.join(spec.cache_dir, "#{old_platform_name}.gem") unless
+ File.exist? gem
FileUtils.rm_rf gem
@@ -207,12 +224,15 @@ class Gem::Uninstaller
say "Successfully uninstalled #{spec.full_name}"
- list.delete spec
+ Gem::Specification.remove_spec spec
end
- def path_ok?(spec)
- full_path = File.join @gem_home, 'gems', spec.full_name
- original_path = File.join @gem_home, 'gems', spec.original_name
+ ##
+ # Is +spec+ in +gem_dir+?
+
+ def path_ok?(gem_dir, spec)
+ full_path = File.join gem_dir, 'gems', spec.full_name
+ original_path = File.join gem_dir, 'gems', spec.original_name
full_path == spec.full_gem_path || original_path == spec.full_gem_path
end
@@ -220,23 +240,32 @@ class Gem::Uninstaller
def dependencies_ok?(spec)
return true if @force_ignore
- deplist = Gem::DependencyList.from_source_index @source_index
- deplist.ok_to_remove?(spec.full_name) || ask_if_ok(spec)
+ deplist = Gem::DependencyList.from_specs
+ deplist.ok_to_remove?(spec.full_name)
end
def ask_if_ok(spec)
msg = ['']
msg << 'You have requested to uninstall the gem:'
msg << "\t#{spec.full_name}"
- spec.dependent_gems.each do |gem,dep,satlist|
+
+ spec.dependent_gems.each do |dep_spec, dep, satlist|
msg <<
- ("#{gem.name}-#{gem.version} depends on " +
- "[#{dep.name} (#{dep.version_requirements})]")
+ ("#{dep_spec.name}-#{dep_spec.version} depends on " +
+ "[#{dep.name} (#{dep.requirement})]")
end
+
msg << 'If you remove this gems, one or more dependencies will not be met.'
msg << 'Continue with Uninstall?'
return ask_yes_no(msg.join("\n"), true)
end
+ def formatted_program_filename(filename)
+ if @format_executable then
+ require 'rubygems/installer'
+ Gem::Installer.exec_format % File.basename(filename)
+ else
+ filename
+ end
+ end
end
-
diff --git a/lib/rubygems/user_interaction.rb b/lib/rubygems/user_interaction.rb
index 30a728c597..8024d37287 100644
--- a/lib/rubygems/user_interaction.rb
+++ b/lib/rubygems/user_interaction.rb
@@ -4,357 +4,559 @@
# See LICENSE.txt for permissions.
#++
-module Gem
+##
+# Module that defines the default UserInteraction. Any class including this
+# module will have access to the +ui+ method that returns the default UI.
+
+module Gem::DefaultUserInteraction
##
- # Module that defines the default UserInteraction. Any class including this
- # module will have access to the +ui+ method that returns the default UI.
+ # The default UI is a class variable of the singleton class for this
+ # module.
- module DefaultUserInteraction
+ @ui = nil
- ##
- # The default UI is a class variable of the singleton class for this
- # module.
+ ##
+ # Return the default UI.
- @ui = nil
+ def self.ui
+ @ui ||= Gem::ConsoleUI.new
+ end
- ##
- # Return the default UI.
+ ##
+ # Set the default UI. If the default UI is never explicitly set, a simple
+ # console based UserInteraction will be used automatically.
- def self.ui
- @ui ||= Gem::ConsoleUI.new
- end
+ def self.ui=(new_ui)
+ @ui = new_ui
+ end
- ##
- # Set the default UI. If the default UI is never explicitly set, a simple
- # console based UserInteraction will be used automatically.
+ ##
+ # Use +new_ui+ for the duration of +block+.
+
+ def self.use_ui(new_ui)
+ old_ui = @ui
+ @ui = new_ui
+ yield
+ ensure
+ @ui = old_ui
+ end
- def self.ui=(new_ui)
- @ui = new_ui
- end
+ ##
+ # See DefaultUserInteraction::ui
- ##
- # Use +new_ui+ for the duration of +block+.
-
- def self.use_ui(new_ui)
- old_ui = @ui
- @ui = new_ui
- yield
- ensure
- @ui = old_ui
- end
+ def ui
+ Gem::DefaultUserInteraction.ui
+ end
- ##
- # See DefaultUserInteraction::ui
+ ##
+ # See DefaultUserInteraction::ui=
- def ui
- DefaultUserInteraction.ui
- end
+ def ui=(new_ui)
+ Gem::DefaultUserInteraction.ui = new_ui
+ end
- ##
- # See DefaultUserInteraction::ui=
+ ##
+ # See DefaultUserInteraction::use_ui
- def ui=(new_ui)
- DefaultUserInteraction.ui = new_ui
+ def use_ui(new_ui, &block)
+ Gem::DefaultUserInteraction.use_ui(new_ui, &block)
+ end
+
+end
+
+##
+# Make the default UI accessible without the "ui." prefix. Classes
+# including this module may use the interaction methods on the default UI
+# directly. Classes may also reference the ui and ui= methods.
+#
+# Example:
+#
+# class X
+# include Gem::UserInteraction
+#
+# def get_answer
+# n = ask("What is the meaning of life?")
+# end
+# end
+
+module Gem::UserInteraction
+
+ include Gem::DefaultUserInteraction
+
+ def alert(*args)
+ ui.alert(*args)
+ end
+
+ def alert_error(*args)
+ ui.alert_error(*args)
+ end
+
+ def alert_warning(*args)
+ ui.alert_warning(*args)
+ end
+
+ def ask(*args)
+ ui.ask(*args)
+ end
+
+ def ask_for_password(*args)
+ ui.ask_for_password(*args)
+ end
+
+ def ask_yes_no(*args)
+ ui.ask_yes_no(*args)
+ end
+
+ def choose_from_list(*args)
+ ui.choose_from_list(*args)
+ end
+
+ def say(*args)
+ ui.say(*args)
+ end
+
+ def terminate_interaction(*args)
+ ui.terminate_interaction(*args)
+ end
+end
+
+##
+# Gem::StreamUI implements a simple stream based user interface.
+
+class Gem::StreamUI
+
+ attr_reader :ins, :outs, :errs
+
+ def initialize(in_stream, out_stream, err_stream=STDERR, usetty=true)
+ @ins = in_stream
+ @outs = out_stream
+ @errs = err_stream
+ @usetty = usetty
+ end
+
+ def tty?
+ if RUBY_VERSION < '1.9.3' and RUBY_PLATFORM =~ /mingw|mswin/ then
+ @usetty
+ else
+ @usetty && @ins.tty?
end
+ end
- ##
- # See DefaultUserInteraction::use_ui
+ ##
+ # Choose from a list of options. +question+ is a prompt displayed above
+ # the list. +list+ is a list of option strings. Returns the pair
+ # [option_name, option_index].
- def use_ui(new_ui, &block)
- DefaultUserInteraction.use_ui(new_ui, &block)
+ def choose_from_list(question, list)
+ @outs.puts question
+
+ list.each_with_index do |item, index|
+ @outs.puts " #{index+1}. #{item}"
end
+ @outs.print "> "
+ @outs.flush
+
+ result = @ins.gets
+
+ return nil, nil unless result
+
+ result = result.strip.to_i - 1
+ return list[result], result
end
##
- # Make the default UI accessable without the "ui." prefix. Classes
- # including this module may use the interaction methods on the default UI
- # directly. Classes may also reference the ui and ui= methods.
- #
- # Example:
- #
- # class X
- # include Gem::UserInteraction
- #
- # def get_answer
- # n = ask("What is the meaning of life?")
- # end
- # end
-
- module UserInteraction
-
- include DefaultUserInteraction
-
- [:alert,
- :alert_error,
- :alert_warning,
- :ask,
- :ask_yes_no,
- :choose_from_list,
- :say,
- :terminate_interaction ].each do |methname|
- class_eval %{
- def #{methname}(*args)
- ui.#{methname}(*args)
- end
- }, __FILE__, __LINE__
+ # Ask a question. Returns a true for yes, false for no. If not connected
+ # to a tty, raises an exception if default is nil, otherwise returns
+ # default.
+
+ def ask_yes_no(question, default=nil)
+ unless tty? then
+ if default.nil? then
+ raise Gem::OperationNotSupportedError,
+ "Not connected to a tty and no default specified"
+ else
+ return default
+ end
end
+
+ default_answer = case default
+ when nil
+ 'yn'
+ when true
+ 'Yn'
+ else
+ 'yN'
+ end
+
+ result = nil
+
+ while result.nil? do
+ result = case ask "#{question} [#{default_answer}]"
+ when /^y/i then true
+ when /^n/i then false
+ when /^$/ then default
+ else nil
+ end
+ end
+
+ return result
end
##
- # StreamUI implements a simple stream based user interface.
+ # Ask a question. Returns an answer if connected to a tty, nil otherwise.
- class StreamUI
+ def ask(question)
+ return nil if not tty?
- attr_reader :ins, :outs, :errs
+ @outs.print(question + " ")
+ @outs.flush
- def initialize(in_stream, out_stream, err_stream=STDERR)
- @ins = in_stream
- @outs = out_stream
- @errs = err_stream
- end
+ result = @ins.gets
+ result.chomp! if result
+ result
+ end
+ if RUBY_VERSION > '1.9.2' then
##
- # Choose from a list of options. +question+ is a prompt displayed above
- # the list. +list+ is a list of option strings. Returns the pair
- # [option_name, option_index].
+ # Ask for a password. Does not echo response to terminal.
- def choose_from_list(question, list)
- @outs.puts question
+ def ask_for_password(question)
+ return nil if not tty?
- list.each_with_index do |item, index|
- @outs.puts " #{index+1}. #{item}"
- end
+ require 'io/console'
- @outs.print "> "
+ @outs.print(question + " ")
@outs.flush
- result = @ins.gets
+ password = @ins.noecho {@ins.gets}
+ password.chomp! if password
+ password
+ end
+ else
+ ##
+ # Ask for a password. Does not echo response to terminal.
+
+ def ask_for_password(question)
+ return nil if not tty?
- return nil, nil unless result
+ @outs.print(question + " ")
+ @outs.flush
- result = result.strip.to_i - 1
- return list[result], result
+ Gem.win_platform? ? ask_for_password_on_windows : ask_for_password_on_unix
end
##
- # Ask a question. Returns a true for yes, false for no. If not connected
- # to a tty, raises an exception if default is nil, otherwise returns
- # default.
-
- def ask_yes_no(question, default=nil)
- unless @ins.tty? then
- if default.nil? then
- raise Gem::OperationNotSupportedError,
- "Not connected to a tty and no default specified"
- else
- return default
- end
- end
+ # Asks for a password that works on windows. Ripped from the Heroku gem.
+
+ def ask_for_password_on_windows
+ return nil if not tty?
+
+ require "Win32API"
+ char = nil
+ password = ''
- qstr = case default
- when nil
- 'yn'
- when true
- 'Yn'
- else
- 'yN'
- end
-
- result = nil
-
- while result.nil?
- result = ask("#{question} [#{qstr}]")
- result = case result
- when /^[Yy].*/
- true
- when /^[Nn].*/
- false
- when /^$/
- default
+ while char = Win32API.new("crtdll", "_getch", [ ], "L").Call do
+ break if char == 10 || char == 13 # received carriage return or newline
+ if char == 127 || char == 8 # backspace and delete
+ password.slice!(-1, 1)
else
- nil
+ password << char.chr
end
end
- return result
+ puts
+ password
end
##
- # Ask a question. Returns an answer if connected to a tty, nil otherwise.
+ # Asks for a password that works on unix
- def ask(question)
- return nil if not @ins.tty?
+ def ask_for_password_on_unix
+ return nil if not tty?
- @outs.print(question + " ")
- @outs.flush
-
- result = @ins.gets
- result.chomp! if result
- result
+ system "stty -echo"
+ password = @ins.gets
+ password.chomp! if password
+ system "stty echo"
+ password
end
+ end
- ##
- # Display a statement.
+ ##
+ # Display a statement.
+
+ def say(statement="")
+ @outs.puts statement
+ end
+
+ ##
+ # Display an informational alert. Will ask +question+ if it is not nil.
- def say(statement="")
- @outs.puts statement
+ def alert(statement, question=nil)
+ @outs.puts "INFO: #{statement}"
+ ask(question) if question
+ end
+
+ ##
+ # Display a warning in a location expected to get error messages. Will
+ # ask +question+ if it is not nil.
+
+ def alert_warning(statement, question=nil)
+ @errs.puts "WARNING: #{statement}"
+ ask(question) if question
+ end
+
+ ##
+ # Display an error message in a location expected to get error messages.
+ # Will ask +question+ if it is not nil.
+
+ def alert_error(statement, question=nil)
+ @errs.puts "ERROR: #{statement}"
+ ask(question) if question
+ end
+
+ ##
+ # Display a debug message on the same location as error messages.
+
+ def debug(statement)
+ @errs.puts statement
+ end
+
+ ##
+ # Terminate the application with exit code +status+, running any exit
+ # handlers that might have been defined.
+
+ def terminate_interaction(status = 0)
+ raise Gem::SystemExitException, status
+ end
+
+ ##
+ # Return a progress reporter object chosen from the current verbosity.
+
+ def progress_reporter(*args)
+ if self.kind_of?(Gem::SilentUI)
+ return SilentProgressReporter.new(@outs, *args)
end
- ##
- # Display an informational alert. Will ask +question+ if it is not nil.
+ case Gem.configuration.verbose
+ when nil, false
+ SilentProgressReporter.new(@outs, *args)
+ when true
+ SimpleProgressReporter.new(@outs, *args)
+ else
+ VerboseProgressReporter.new(@outs, *args)
+ end
+ end
+
+ ##
+ # An absolutely silent progress reporter.
- def alert(statement, question=nil)
- @outs.puts "INFO: #{statement}"
- ask(question) if question
+ class SilentProgressReporter
+ attr_reader :count
+
+ def initialize(out_stream, size, initial_message, terminal_message = nil)
end
- ##
- # Display a warning in a location expected to get error messages. Will
- # ask +question+ if it is not nil.
+ def updated(message)
+ end
- def alert_warning(statement, question=nil)
- @errs.puts "WARNING: #{statement}"
- ask(question) if question
+ def done
end
+ end
- ##
- # Display an error message in a location expected to get error messages.
- # Will ask +question+ if it is not nil.
+ ##
+ # A basic dotted progress reporter.
+
+ class SimpleProgressReporter
+
+ include Gem::DefaultUserInteraction
- def alert_error(statement, question=nil)
- @errs.puts "ERROR: #{statement}"
- ask(question) if question
+ attr_reader :count
+
+ def initialize(out_stream, size, initial_message,
+ terminal_message = "complete")
+ @out = out_stream
+ @total = size
+ @count = 0
+ @terminal_message = terminal_message
+
+ @out.puts initial_message
end
##
- # Terminate the application with exit code +status+, running any exit
- # handlers that might have been defined.
+ # Prints out a dot and ignores +message+.
- def terminate_interaction(status = 0)
- raise Gem::SystemExitException, status
+ def updated(message)
+ @count += 1
+ @out.print "."
+ @out.flush
end
##
- # Return a progress reporter object chosen from the current verbosity.
-
- def progress_reporter(*args)
- case Gem.configuration.verbose
- when nil, false
- SilentProgressReporter.new(@outs, *args)
- when true
- SimpleProgressReporter.new(@outs, *args)
- else
- VerboseProgressReporter.new(@outs, *args)
- end
+ # Prints out the terminal message.
+
+ def done
+ @out.puts "\n#{@terminal_message}"
end
- ##
- # An absolutely silent progress reporter.
+ end
- class SilentProgressReporter
- attr_reader :count
+ ##
+ # A progress reporter that prints out messages about the current progress.
- def initialize(out_stream, size, initial_message, terminal_message = nil)
- end
+ class VerboseProgressReporter
- def updated(message)
- end
+ include Gem::DefaultUserInteraction
- def done
- end
+ attr_reader :count
+
+ def initialize(out_stream, size, initial_message,
+ terminal_message = 'complete')
+ @out = out_stream
+ @total = size
+ @count = 0
+ @terminal_message = terminal_message
+
+ @out.puts initial_message
end
##
- # A basic dotted progress reporter.
+ # Prints out the position relative to the total and the +message+.
- class SimpleProgressReporter
- include DefaultUserInteraction
+ def updated(message)
+ @count += 1
+ @out.puts "#{@count}/#{@total}: #{message}"
+ end
- attr_reader :count
+ ##
+ # Prints out the terminal message.
- def initialize(out_stream, size, initial_message,
- terminal_message = "complete")
- @out = out_stream
- @total = size
- @count = 0
- @terminal_message = terminal_message
+ def done
+ @out.puts @terminal_message
+ end
+ end
- @out.puts initial_message
- end
+ ##
+ # Return a download reporter object chosen from the current verbosity
- ##
- # Prints out a dot and ignores +message+.
+ def download_reporter(*args)
+ if self.kind_of?(Gem::SilentUI)
+ return SilentDownloadReporter.new(@outs, *args)
+ end
- def updated(message)
- @count += 1
- @out.print "."
- @out.flush
- end
+ case Gem.configuration.verbose
+ when nil, false
+ SilentDownloadReporter.new(@outs, *args)
+ else
+ VerboseDownloadReporter.new(@outs, *args)
+ end
+ end
- ##
- # Prints out the terminal message.
+ ##
+ # An absolutely silent download reporter.
- def done
- @out.puts "\n#{@terminal_message}"
- end
+ class SilentDownloadReporter
+ def initialize(out_stream, *args)
+ end
+ def fetch(filename, filesize)
end
- ##
- # A progress reporter that prints out messages about the current progress.
+ def update(current)
+ end
- class VerboseProgressReporter
- include DefaultUserInteraction
+ def done
+ end
+ end
- attr_reader :count
+ ##
+ # A progress reporter that prints out messages about the current progress.
- def initialize(out_stream, size, initial_message,
- terminal_message = 'complete')
- @out = out_stream
- @total = size
- @count = 0
- @terminal_message = terminal_message
+ class VerboseDownloadReporter
+ attr_reader :file_name, :total_bytes, :progress
- @out.puts initial_message
- end
+ def initialize(out_stream, *args)
+ @out = out_stream
+ @progress = 0
+ end
- ##
- # Prints out the position relative to the total and the +message+.
+ def fetch(file_name, total_bytes)
+ @file_name = file_name
+ @total_bytes = total_bytes.to_i
+ @units = @total_bytes.zero? ? 'B' : '%'
- def updated(message)
- @count += 1
- @out.puts "#{@count}/#{@total}: #{message}"
- end
+ update_display(false)
+ end
- ##
- # Prints out the terminal message.
+ def update(bytes)
+ new_progress = if @units == 'B' then
+ bytes
+ else
+ ((bytes.to_f * 100) / total_bytes.to_f).ceil
+ end
+
+ return if new_progress == @progress
+
+ @progress = new_progress
+ update_display
+ end
- def done
- @out.puts @terminal_message
+ def done
+ @progress = 100 if @units == '%'
+ update_display(true, true)
+ end
+
+ private
+
+ def update_display(show_progress = true, new_line = false)
+ return unless @out.tty?
+
+ if show_progress then
+ @out.print "\rFetching: %s (%3d%s)" % [@file_name, @progress, @units]
+ else
+ @out.print "Fetching: %s" % @file_name
end
+ @out.puts if new_line
end
end
+end
- ##
- # Subclass of StreamUI that instantiates the user interaction using STDIN,
- # STDOUT, and STDERR.
+##
+# Subclass of StreamUI that instantiates the user interaction using STDIN,
+# STDOUT, and STDERR.
- class ConsoleUI < StreamUI
- def initialize
- super(STDIN, STDOUT, STDERR)
- end
+class Gem::ConsoleUI < Gem::StreamUI
+ def initialize
+ super STDIN, STDOUT, STDERR, true
end
+end
- ##
- # SilentUI is a UI choice that is absolutely silent.
+##
+# SilentUI is a UI choice that is absolutely silent.
- class SilentUI
- def method_missing(sym, *args, &block)
- self
+class Gem::SilentUI < Gem::StreamUI
+ def initialize
+ reader, writer = nil, nil
+
+ begin
+ reader = File.open('/dev/null', 'r')
+ writer = File.open('/dev/null', 'w')
+ rescue Errno::ENOENT
+ reader = File.open('nul', 'r')
+ writer = File.open('nul', 'w')
end
+
+ super reader, writer, writer, false
end
+ def download_reporter(*args)
+ SilentDownloadReporter.new(@outs, *args)
+ end
+
+ def progress_reporter(*args)
+ SilentProgressReporter.new(@outs, *args)
+ end
end
diff --git a/lib/rubygems/validator.rb b/lib/rubygems/validator.rb
index 4dd12ad4df..ffeed88660 100644
--- a/lib/rubygems/validator.rb
+++ b/lib/rubygems/validator.rb
@@ -4,9 +4,6 @@
# See LICENSE.txt for permissions.
#++
-require 'find'
-
-require 'rubygems/digest/md5'
require 'rubygems/format'
require 'rubygems/installer'
@@ -17,6 +14,11 @@ class Gem::Validator
include Gem::UserInteraction
+ def initialize
+ require 'find'
+ require 'digest'
+ end
+
##
# Given a gem file's contents, validates against its own MD5 checksum
# gem_data:: [String] Contents of the gem file
@@ -33,7 +35,7 @@ class Gem::Validator
sum_data = gem_data.gsub(/MD5SUM = "([a-z0-9]+)"/,
"MD5SUM = \"#{"F" * 32}\"")
- unless Gem::MD5.hexdigest(sum_data) == $1.to_s then
+ unless Digest::MD5.hexdigest(sum_data) == $1.to_s then
raise Gem::VerificationError, 'invalid checksum for gem file'
end
end
@@ -48,7 +50,7 @@ class Gem::Validator
gem_data = file.read
verify_gem gem_data
end
- rescue Errno::ENOENT
+ rescue Errno::ENOENT, Errno::EINVAL
raise Gem::VerificationError, "missing gem file #{gem_path}"
end
@@ -56,13 +58,11 @@ class Gem::Validator
def find_files_for_gem(gem_directory)
installed_files = []
- Find.find(gem_directory) {|file_name|
- fn = file_name.slice((gem_directory.size)..(file_name.size-1)).sub(/^\//, "")
- if(!(fn =~ /CVS/ || File.directory?(fn) || fn == "")) then
- installed_files << fn
- end
-
- }
+ Find.find gem_directory do |file_name|
+ fn = file_name[gem_directory.size..file_name.size-1].sub(/^\//, "")
+ installed_files << fn unless
+ fn =~ /CVS/ || fn.empty? || File.directory?(file_name)
+ end
installed_files
end
@@ -81,126 +81,86 @@ class Gem::Validator
#
# returns a hash of ErrorData objects, keyed on the problem gem's name.
- def alien
- errors = {}
+ def alien(gems=[])
+ errors = Hash.new { |h,k| h[k] = {} }
Gem::SourceIndex.from_installed_gems.each do |gem_name, gem_spec|
- errors[gem_name] ||= []
+ next unless gems.include? gem_spec.name unless gems.empty?
- gem_path = File.join(Gem.dir, "cache", gem_spec.full_name) + ".gem"
- spec_path = File.join(Gem.dir, "specifications", gem_spec.full_name) + ".gemspec"
- gem_directory = File.join(Gem.dir, "gems", gem_spec.full_name)
+ install_dir = gem_spec.installation_path
+ gem_path = Gem.cache_gem(gem_spec.file_name, install_dir)
+ spec_path = File.join install_dir, "specifications", gem_spec.spec_name
+ gem_directory = gem_spec.full_gem_path
- installed_files = find_files_for_gem(gem_directory)
+ unless File.directory? gem_directory then
+ errors[gem_name][gem_spec.full_name] =
+ "Gem registered but doesn't exist at #{gem_directory}"
+ next
+ end
unless File.exist? spec_path then
- errors[gem_name] << ErrorData.new(spec_path, "Spec file doesn't exist for installed gem")
+ errors[gem_name][spec_path] = "Spec file missing for installed gem"
end
begin
verify_gem_file(gem_path)
+ good, gone, unreadable = nil, nil, nil, nil
+
open gem_path, Gem.binary_mode do |file|
format = Gem::Format.from_file_by_path(gem_path)
- format.file_entries.each do |entry, data|
- # Found this file. Delete it from list
- installed_files.delete remove_leading_dot_dir(entry['path'])
- next unless data # HACK `gem check -a mkrf`
+ good, gone = format.file_entries.partition { |entry, _|
+ File.exist? File.join(gem_directory, entry['path'])
+ }
- open File.join(gem_directory, entry['path']), Gem.binary_mode do |f|
- unless Gem::MD5.hexdigest(f.read).to_s ==
- Gem::MD5.hexdigest(data).to_s then
- errors[gem_name] << ErrorData.new(entry['path'], "installed file doesn't match original from gem")
- end
- end
+ gone.map! { |entry, _| entry['path'] }
+ gone.sort.each do |path|
+ errors[gem_name][path] = "Missing file"
end
- end
- rescue Gem::VerificationError => e
- errors[gem_name] << ErrorData.new(gem_path, e.message)
- end
- # Clean out directories that weren't explicitly included in the gemspec
- # FIXME: This still allows arbitrary incorrect directories.
- installed_files.delete_if {|potential_directory|
- File.directory?(File.join(gem_directory, potential_directory))
- }
- if(installed_files.size > 0) then
- errors[gem_name] << ErrorData.new(gem_path, "Unmanaged files in gem: #{installed_files.inspect}")
- end
- end
+ good, unreadable = good.partition { |entry, _|
+ File.readable? File.join(gem_directory, entry['path'])
+ }
- errors
- end
+ unreadable.map! { |entry, _| entry['path'] }
+ unreadable.sort.each do |path|
+ errors[gem_name][path] = "Unreadable file"
+ end
- if RUBY_VERSION < '1.9' then
- class TestRunner
- def initialize(suite, ui)
- @suite = suite
- @ui = ui
- end
+ good.each do |entry, data|
+ begin
+ next unless data # HACK `gem check -a mkrf`
- def self.run(suite, ui)
- require 'test/unit/ui/testrunnermediator'
- return new(suite, ui).start
- end
+ open File.join(gem_directory, entry['path']), Gem.binary_mode do |f|
+ unless Digest::MD5.hexdigest(f.read).to_s ==
+ Digest::MD5.hexdigest(data).to_s then
+ errors[gem_name][entry['path']] = "Modified from original"
+ end
+ end
+ end
+ end
+ end
- def start
- @mediator = Test::Unit::UI::TestRunnerMediator.new(@suite)
- @mediator.add_listener(Test::Unit::TestResult::FAULT, &method(:add_fault))
- return @mediator.run_suite
- end
+ installed_files = find_files_for_gem(gem_directory)
+ good.map! { |entry, _| entry['path'] }
+ extras = installed_files - good - unreadable
- def add_fault(fault)
- if Gem.configuration.verbose then
- @ui.say fault.long_display
+ extras.each do |extra|
+ errors[gem_name][extra] = "Extra file"
end
+ rescue Gem::VerificationError => e
+ errors[gem_name][gem_path] = e.message
end
end
- autoload :TestRunner, 'test/unit/ui/testrunnerutilities'
- end
-
- ##
- # Runs unit tests for a given gem specification
-
- def unit_test(gem_spec)
- start_dir = Dir.pwd
- Dir.chdir(gem_spec.full_gem_path)
- $: << File.join(Gem.dir, "gems", gem_spec.full_name)
- # XXX: why do we need this gem_spec when we've already got 'spec'?
- test_files = gem_spec.test_files
-
- if test_files.empty? then
- say "There are no unit tests to run for #{gem_spec.full_name}"
- return nil
+ errors.each do |name, subhash|
+ errors[name] = subhash.map { |path, msg| ErrorData.new(path, msg) }
end
- gem gem_spec.name, "= #{gem_spec.version.version}"
-
- test_files.each do |f| require f end
-
- if RUBY_VERSION < '1.9' then
- suite = Test::Unit::TestSuite.new("#{gem_spec.name}-#{gem_spec.version}")
-
- ObjectSpace.each_object(Class) do |klass|
- suite << klass.suite if (klass < Test::Unit::TestCase)
- end
-
- result = TestRunner.run suite, ui
-
- alert_error result.to_s unless result.passed?
- else
- result = MiniTest::Unit.new
- result.run
- end
-
- result
- ensure
- Dir.chdir(start_dir)
+ errors
end
- private
def remove_leading_dot_dir(path)
path.sub(/^\.\//, "")
end
diff --git a/lib/rubygems/version.rb b/lib/rubygems/version.rb
index 21ea9565b4..2ced9ccdfb 100644
--- a/lib/rubygems/version.rb
+++ b/lib/rubygems/version.rb
@@ -1,41 +1,175 @@
-#--
-# Copyright 2006 by Chad Fowler, Rich Kilmer, Jim Weirich and others.
-# All rights reserved.
-# See LICENSE.txt for permissions.
-#++
-
-require 'rubygems'
-
##
-# The Version class processes string versions into comparable values
+# The Version class processes string versions into comparable
+# values. A version string should normally be a series of numbers
+# separated by periods. Each part (digits separated by periods) is
+# considered its own number, and these are used for sorting. So for
+# instance, 3.10 sorts higher than 3.2 because ten is greater than
+# two.
+#
+# If any part contains letters (currently only a-z are supported) then
+# that version is considered prerelease. Versions with a prerelease
+# part in the Nth part sort less than versions with N-1
+# parts. Prerelease parts are sorted alphabetically using the normal
+# Ruby string sorting rules. If a prerelease part contains both
+# letters and numbers, it will be broken into multiple parts to
+# provide expected sort behavior (1.0.a10 becomes 1.0.a.10, and is
+# greater than 1.0.a9).
+#
+# Prereleases sort between real releases (newest to oldest):
+#
+# 1. 1.0
+# 2. 1.0.b1
+# 3. 1.0.a.2
+# 4. 0.9
+#
+# == How Software Changes
+#
+# Users expect to be able to specify a version constraint that gives them
+# some reasonable expectation that new versions of a library will work with
+# their software if the version constraint is true, and not work with their
+# software if the version constraint is false. In other words, the perfect
+# system will accept all compatible versions of the library and reject all
+# incompatible versions.
+#
+# Libraries change in 3 ways (well, more than 3, but stay focused here!).
+#
+# 1. The change may be an implementation detail only and have no effect on
+# the client software.
+# 2. The change may add new features, but do so in a way that client software
+# written to an earlier version is still compatible.
+# 3. The change may change the public interface of the library in such a way
+# that old software is no longer compatible.
+#
+# Some examples are appropriate at this point. Suppose I have a Stack class
+# that supports a <tt>push</tt> and a <tt>pop</tt> method.
+#
+# === Examples of Category 1 changes:
+#
+# * Switch from an array based implementation to a linked-list based
+# implementation.
+# * Provide an automatic (and transparent) backing store for large stacks.
+#
+# === Examples of Category 2 changes might be:
+#
+# * Add a <tt>depth</tt> method to return the current depth of the stack.
+# * Add a <tt>top</tt> method that returns the current top of stack (without
+# changing the stack).
+# * Change <tt>push</tt> so that it returns the item pushed (previously it
+# had no usable return value).
+#
+# === Examples of Category 3 changes might be:
+#
+# * Changes <tt>pop</tt> so that it no longer returns a value (you must use
+# <tt>top</tt> to get the top of the stack).
+# * Rename the methods to <tt>push_item</tt> and <tt>pop_item</tt>.
+#
+# == RubyGems Rational Versioning
+#
+# * Versions shall be represented by three non-negative integers, separated
+# by periods (e.g. 3.1.4). The first integers is the "major" version
+# number, the second integer is the "minor" version number, and the third
+# integer is the "build" number.
+#
+# * A category 1 change (implementation detail) will increment the build
+# number.
+#
+# * A category 2 change (backwards compatible) will increment the minor
+# version number and reset the build number.
+#
+# * A category 3 change (incompatible) will increment the major build number
+# and reset the minor and build numbers.
+#
+# * Any "public" release of a gem should have a different version. Normally
+# that means incrementing the build number. This means a developer can
+# generate builds all day long for himself, but as soon as he/she makes a
+# public release, the version must be updated.
+#
+# === Examples
+#
+# Let's work through a project lifecycle using our Stack example from above.
+#
+# Version 0.0.1:: The initial Stack class is release.
+# Version 0.0.2:: Switched to a linked=list implementation because it is
+# cooler.
+# Version 0.1.0:: Added a <tt>depth</tt> method.
+# Version 1.0.0:: Added <tt>top</tt> and made <tt>pop</tt> return nil
+# (<tt>pop</tt> used to return the old top item).
+# Version 1.1.0:: <tt>push</tt> now returns the value pushed (it used it
+# return nil).
+# Version 1.1.1:: Fixed a bug in the linked list implementation.
+# Version 1.1.2:: Fixed a bug introduced in the last fix.
+#
+# Client A needs a stack with basic push/pop capability. He writes to the
+# original interface (no <tt>top</tt>), so his version constraint looks
+# like:
+#
+# gem 'stack', '~> 0.0'
+#
+# Essentially, any version is OK with Client A. An incompatible change to
+# the library will cause him grief, but he is willing to take the chance (we
+# call Client A optimistic).
+#
+# Client B is just like Client A except for two things: (1) He uses the
+# <tt>depth</tt> method and (2) he is worried about future
+# incompatibilities, so he writes his version constraint like this:
+#
+# gem 'stack', '~> 0.1'
+#
+# The <tt>depth</tt> method was introduced in version 0.1.0, so that version
+# or anything later is fine, as long as the version stays below version 1.0
+# where incompatibilities are introduced. We call Client B pessimistic
+# because he is worried about incompatible future changes (it is OK to be
+# pessimistic!).
+#
+# == Preventing Version Catastrophe:
+#
+# From: http://blog.zenspider.com/2008/10/rubygems-howto-preventing-cata.html
+#
+# Let's say you're depending on the fnord gem version 2.y.z. If you
+# specify your dependency as ">= 2.0.0" then, you're good, right? What
+# happens if fnord 3.0 comes out and it isn't backwards compatible
+# with 2.y.z? Your stuff will break as a result of using ">=". The
+# better route is to specify your dependency with a "spermy" version
+# specifier. They're a tad confusing, so here is how the dependency
+# specifiers work:
+#
+# Specification From ... To (exclusive)
+# ">= 3.0" 3.0 ... &infin;
+# "~> 3.0" 3.0 ... 4.0
+# "~> 3.0.0" 3.0.0 ... 3.1
+# "~> 3.5" 3.5 ... 4.0
+# "~> 3.5.0" 3.5.0 ... 3.6
class Gem::Version
+ autoload :Requirement, 'rubygems/requirement'
include Comparable
- attr_reader :ints
+ VERSION_PATTERN = '[0-9]+(\.[0-9a-zA-Z]+)*' # :nodoc:
+ ANCHORED_VERSION_PATTERN = /\A\s*(#{VERSION_PATTERN})*\s*\z/ # :nodoc:
+
+ ##
+ # A string representation of this Version.
attr_reader :version
+ alias to_s version
##
- # Returns true if +version+ is a valid version string.
+ # True if the +version+ string matches RubyGems' requirements.
- def self.correct?(version)
- case version
- when Integer, /\A\s*(\d+(\.-?\d+)*)*\s*\z/ then true
- else false
- end
+ def self.correct? version
+ version.to_s =~ ANCHORED_VERSION_PATTERN
end
##
- # Factory method to create a Version object. Input may be a Version or a
- # String. Intended to simplify client code.
+ # Factory method to create a Version object. Input may be a Version
+ # or a String. Intended to simplify client code.
#
# ver1 = Version.create('1.3.17') # -> (Version object)
# ver2 = Version.create(ver1) # -> (ver1)
# ver3 = Version.create(nil) # -> nil
- def self.create(input)
+ def self.create input
if input.respond_to? :version then
input
elsif input.nil? then
@@ -47,121 +181,149 @@ class Gem::Version
##
# Constructs a Version from the +version+ string. A version string is a
- # series of digits separated by dots.
+ # series of digits or ASCII letters separated by dots.
- def initialize(version)
+ def initialize version
raise ArgumentError, "Malformed version number string #{version}" unless
self.class.correct?(version)
- self.version = version
+ @version = version.to_s
+ @version.strip!
end
- def inspect # :nodoc:
- "#<#{self.class} #{@version.inspect}>"
- end
+ ##
+ # Return a new version object where the next to the last revision
+ # number is one greater (e.g., 5.3.1 => 5.4).
+ #
+ # Pre-release (alpha) parts, e.g, 5.3.1.b.2 => 5.4, are ignored.
- # Dump only the raw version string, not the complete object
- def marshal_dump
- [@version]
- end
+ def bump
+ segments = self.segments.dup
+ segments.pop while segments.any? { |s| String === s }
+ segments.pop if segments.size > 1
- # Load custom marshal format
- def marshal_load(array)
- self.version = array[0]
+ segments[-1] = segments[-1].succ
+ self.class.new segments.join(".")
end
##
- # Strip ignored trailing zeros.
+ # A Version is only eql? to another version if it's specified to the
+ # same precision. Version "1.0" is not the same as version "1".
- def normalize
- @ints = build_array_from_version_string
+ def eql? other
+ self.class === other and @version == other.version
+ end
- return if @ints.length == 1
+ def hash # :nodoc:
+ @hash ||= segments.hash
+ end
- @ints.pop while @ints.last == 0
+ def init_with coder # :nodoc:
+ yaml_initialize coder.tag, coder.map
+ end
- @ints = [0] if @ints.empty?
+ def inspect # :nodoc:
+ "#<#{self.class} #{version.inspect}>"
end
##
- # Returns the text representation of the version
- #
- # return:: [String] version as string
- #
- def to_s
- @version
+ # Dump only the raw version string, not the complete object. It's a
+ # string for backwards (RubyGems 1.3.5 and earlier) compatibility.
+
+ def marshal_dump
+ [version]
end
##
- # Returns an integer array representation of this Version.
+ # Load custom marshal format. It's a string for backwards (RubyGems
+ # 1.3.5 and earlier) compatibility.
- def to_ints
- normalize unless @ints
- @ints
+ def marshal_load array
+ initialize array[0]
end
- def to_yaml_properties
- ['@version']
+ def yaml_initialize(tag, map)
+ @version = map['version']
+ @segments = nil
+ @hash = nil
end
- def version=(version)
- @version = version.to_s.strip
- normalize
+ ##
+ # A version is considered a prerelease if it contains a letter.
+
+ def prerelease?
+ @prerelease ||= @version =~ /[a-zA-Z]/
end
- def yaml_initialize(tag, values)
- self.version = values['version']
+ def pretty_print q # :nodoc:
+ q.text "Gem::Version.new(#{version.inspect})"
end
##
- # Compares this version with +other+ returning -1, 0, or 1 if the other
- # version is larger, the same, or smaller than this one.
+ # The release for this version (e.g. 1.2.0.a -> 1.2.0).
+ # Non-prerelease versions return themselves.
- def <=>(other)
- return nil unless self.class === other
- return 1 unless other
- @ints <=> other.ints
+ def release
+ return self unless prerelease?
+
+ segments = self.segments.dup
+ segments.pop while segments.any? { |s| String === s }
+ self.class.new segments.join('.')
end
- ##
- # A Version is only eql? to another version if it has the same version
- # string. "1.0" is not the same version as "1".
+ def segments # :nodoc:
- def eql?(other)
- self.class === other and @version == other.version
- end
+ # segments is lazy so it can pick up version values that come from
+ # old marshaled versions, which don't go through marshal_load.
- def hash # :nodoc:
- @version.hash
+ @segments ||= @version.scan(/[0-9]+|[a-z]+/i).map do |s|
+ /^\d+$/ =~ s ? s.to_i : s
+ end
end
- # Return a new version object where the next to the last revision
- # number is one greater. (e.g. 5.3.1 => 5.4)
- def bump
- ints = build_array_from_version_string
- ints.pop if ints.size > 1
- ints[-1] += 1
- self.class.new(ints.join("."))
- end
+ ##
+ # A recommended version for use with a ~> Requirement.
+
+ def spermy_recommendation
+ segments = self.segments.dup
- def build_array_from_version_string
- @version.to_s.scan(/\d+/).map { |s| s.to_i }
+ segments.pop while segments.any? { |s| String === s }
+ segments.pop while segments.size > 2
+ segments.push 0 while segments.size < 2
+
+ "~> #{segments.join(".")}"
end
- private :build_array_from_version_string
- #:stopdoc:
+ ##
+ # Compares this version with +other+ returning -1, 0, or 1 if the
+ # other version is larger, the same, or smaller than this
+ # one. Attempts to compare to something that's not a
+ # <tt>Gem::Version</tt> return +nil+.
- require 'rubygems/requirement'
+ def <=> other
+ return unless Gem::Version === other
+ return 0 if @version == other.version
- # Gem::Requirement's original definition is nested in Version.
- # Although an inappropriate place, current gems specs reference the nested
- # class name explicitly. To remain compatible with old software loading
- # gemspecs, we leave a copy of original definition in Version, but define an
- # alias Gem::Requirement for use everywhere else.
+ lhsegments = segments
+ rhsegments = other.segments
- Requirement = ::Gem::Requirement
+ lhsize = lhsegments.size
+ rhsize = rhsegments.size
+ limit = (lhsize > rhsize ? lhsize : rhsize) - 1
- # :startdoc:
+ i = 0
-end
+ while i <= limit
+ lhs, rhs = lhsegments[i] || 0, rhsegments[i] || 0
+ i += 1
+ next if lhs == rhs
+ return -1 if String === lhs && Numeric === rhs
+ return 1 if Numeric === lhs && String === rhs
+
+ return lhs <=> rhs
+ end
+
+ return 0
+ end
+end
diff --git a/lib/rubygems/version_option.rb b/lib/rubygems/version_option.rb
index 1374018913..a3de4dc9e7 100644
--- a/lib/rubygems/version_option.rb
+++ b/lib/rubygems/version_option.rb
@@ -6,10 +6,14 @@
require 'rubygems'
+##
# Mixin methods for --version and --platform Gem::Command options.
+
module Gem::VersionOption
+ ##
# Add the --platform option to the option parser.
+
def add_platform_option(task = command, *wrap)
OptionParser.accept Gem::Platform do |value|
if value == Gem::Platform::RUBY then
@@ -31,7 +35,19 @@ module Gem::VersionOption
end
end
+ ##
+ # Add the --prerelease option to the option parser.
+
+ def add_prerelease_option(*wrap)
+ add_option("--[no-]prerelease",
+ "Allow prerelease versions of a gem", *wrap) do |value, options|
+ options[:prerelease] = value
+ end
+ end
+
+ ##
# Add the --version option to the option parser.
+
def add_version_option(task = command, *wrap)
OptionParser.accept Gem::Requirement do |value|
Gem::Requirement.new value
@@ -41,6 +57,7 @@ module Gem::VersionOption
"Specify version of gem to #{task}", *wrap) do
|value, options|
options[:version] = value
+ options[:prerelease] = true if value.prerelease?
end
end
diff --git a/lib/scanf.rb b/lib/scanf.rb
index 386270b924..6d67627f39 100644
--- a/lib/scanf.rb
+++ b/lib/scanf.rb
@@ -1,305 +1,288 @@
# scanf for Ruby
#
+#--
# $Release Version: 1.1.2 $
# $Revision$
# $Id$
# $Author$
+#++
#
-# A product of the Austin Ruby Codefest (Austin, Texas, August 2002)
-
-=begin
-
-=scanf for Ruby
-
-==Description
-
-scanf for Ruby is an implementation of the C function scanf(3),
-modified as necessary for Ruby compatibility.
-
-The methods provided are String#scanf, IO#scanf, and
-Kernel#scanf. Kernel#scanf is a wrapper around STDIN.scanf. IO#scanf
-can be used on any IO stream, including file handles and sockets.
-scanf can be called either with or without a block.
-
-scanf for Ruby scans an input string or stream according to a
-<b>format</b>, as described below ("Conversions"), and returns an
-array of matches between the format and the input. The format is
-defined in a string, and is similar (though not identical) to the
-formats used in Kernel#printf and Kernel#sprintf.
-
-The format may contain <b>conversion specifiers</b>, which tell scanf
-what form (type) each particular matched substring should be converted
-to (e.g., decimal integer, floating point number, literal string,
-etc.) The matches and conversions take place from left to right, and
-the conversions themselves are returned as an array.
-
-The format string may also contain characters other than those in the
-conversion specifiers. White space (blanks, tabs, or newlines) in the
-format string matches any amount of white space, including none, in
-the input. Everything else matches only itself.
-
-Scanning stops, and scanf returns, when any input character fails to
-match the specifications in the format string, or when input is
-exhausted, or when everything in the format string has been
-matched. All matches found up to the stopping point are returned in
-the return array (or yielded to the block, if a block was given).
-
-
-==Basic usage
-
- require 'scanf.rb'
-
- # String#scanf and IO#scanf take a single argument (a format string)
- array = aString.scanf("%d%s")
- array = anIO.scanf("%d%s")
-
- # Kernel#scanf reads from STDIN
- array = scanf("%d%s")
-
-==Block usage
-
-When called with a block, scanf keeps scanning the input, cycling back
-to the beginning of the format string, and yields a new array of
-conversions to the block every time the format string is matched
-(including partial matches, but not including complete failures). The
-actual return value of scanf when called with a block is an array
-containing the results of all the executions of the block.
-
- str = "123 abc 456 def 789 ghi"
- str.scanf("%d%s") { |num,str| [ num * 2, str.upcase ] }
- # => [[246, "ABC"], [912, "DEF"], [1578, "GHI"]]
-
-==Conversions
-
-The single argument to scanf is a format string, which generally
-includes one or more conversion specifiers. Conversion specifiers
-begin with the percent character ('%') and include information about
-what scanf should next scan for (string, decimal number, single
-character, etc.).
-
-There may be an optional maximum field width, expressed as a decimal
-integer, between the % and the conversion. If no width is given, a
-default of `infinity' is used (with the exception of the %c specifier;
-see below). Otherwise, given a field width of <em>n</em> for a given
-conversion, at most <em>n</em> characters are scanned in processing
-that conversion. Before conversion begins, most conversions skip
-white space in the input string; this white space is not counted
-against the field width.
-
-The following conversions are available. (See the files EXAMPLES
-and <tt>tests/scanftests.rb</tt> for examples.)
-
-[%]
- Matches a literal `%'. That is, `%%' in the format string matches a
- single input `%' character. No conversion is done, and the resulting
- '%' is not included in the return array.
-
-[d]
- Matches an optionally signed decimal integer.
-
-[u]
- Same as d.
-
-[i]
- Matches an optionally signed integer. The integer is read in base
- 16 if it begins with `0x' or `0X', in base 8 if it begins with `0',
- and in base 10 other- wise. Only characters that correspond to the
- base are recognized.
-
-[o]
- Matches an optionally signed octal integer.
-
-[x,X]
- Matches an optionally signed hexadecimal integer,
-
-[f,g,e,E]
- Matches an optionally signed floating-point number.
-
-[s]
- Matches a sequence of non-white-space character. The input string stops at
- white space or at the maximum field width, whichever occurs first.
-
-[c]
- Matches a single character, or a sequence of <em>n</em> characters if a
- field width of <em>n</em> is specified. The usual skip of leading white
- space is suppressed. To skip white space first, use an explicit space in
- the format.
-
-[<tt>[</tt>]
- Matches a nonempty sequence of characters from the specified set
- of accepted characters. The usual skip of leading white space is
- suppressed. This bracketed sub-expression is interpreted exactly like a
- character class in a Ruby regular expression. (In fact, it is placed as-is
- in a regular expression.) The matching against the input string ends with
- the appearance of a character not in (or, with a circumflex, in) the set,
- or when the field width runs out, whichever comes first.
-
-===Assignment suppression
-
-To require that a particular match occur, but without including the result
-in the return array, place the <b>assignment suppression flag</b>, which is
-the star character ('*'), immediately after the leading '%' of a format
-specifier (just before the field width, if any).
-
-==Examples
-
-See the files <tt>EXAMPLES</tt> and <tt>tests/scanftests.rb</tt>.
-
-==scanf for Ruby compared with scanf in C
-
-scanf for Ruby is based on the C function scanf(3), but with modifications,
-dictated mainly by the underlying differences between the languages.
-
-===Unimplemented flags and specifiers
-
-* The only flag implemented in scanf for Ruby is '<tt>*</tt>' (ignore
- upcoming conversion). Many of the flags available in C versions of scanf(4)
- have to do with the type of upcoming pointer arguments, and are literally
- meaningless in Ruby.
-
-* The <tt>n</tt> specifier (store number of characters consumed so far in
- next pointer) is not implemented.
-
-* The <tt>p</tt> specifier (match a pointer value) is not implemented.
-
-===Altered specifiers
-
-[o,u,x,X]
- In scanf for Ruby, all of these specifiers scan for an optionally signed
- integer, rather than for an unsigned integer like their C counterparts.
-
-===Return values
-
-scanf for Ruby returns an array of successful conversions, whereas
-scanf(3) returns the number of conversions successfully
-completed. (See below for more details on scanf for Ruby's return
-values.)
-
-==Return values
-
-Without a block, scanf returns an array containing all the conversions
-it has found. If none are found, scanf will return an empty array. An
-unsuccesful match is never ignored, but rather always signals the end
-of the scanning operation. If the first unsuccessful match takes place
-after one or more successful matches have already taken place, the
-returned array will contain the results of those successful matches.
-
-With a block scanf returns a 'map'-like array of transformations from
-the block -- that is, an array reflecting what the block did with each
-yielded result from the iterative scanf operation. (See "Block
-usage", above.)
-
-==Test suite
-
-scanf for Ruby includes a suite of unit tests (requiring the
-<tt>TestUnit</tt> package), which can be run with the command <tt>ruby
-tests/scanftests.rb</tt> or the command <tt>make test</tt>.
-
-==Current limitations and bugs
-
-When using IO#scanf under Windows, make sure you open your files in
-binary mode:
-
- File.open("filename", "rb")
-
-so that scanf can keep track of characters correctly.
-
-Support for character classes is reasonably complete (since it
-essentially piggy-backs on Ruby's regular expression handling of
-character classes), but users are advised that character class testing
-has not been exhaustive, and that they should exercise some caution
-in using any of the more complex and/or arcane character class
-idioms.
-
-
-==Technical notes
-
-===Rationale behind scanf for Ruby
-
-The impetus for a scanf implementation in Ruby comes chiefly from the fact
-that existing pattern matching operations, such as Regexp#match and
-String#scan, return all results as strings, which have to be converted to
-integers or floats explicitly in cases where what's ultimately wanted are
-integer or float values.
-
-===Design of scanf for Ruby
-
-scanf for Ruby is essentially a <format string>-to-<regular
-expression> converter.
-
-When scanf is called, a FormatString object is generated from the
-format string ("%d%s...") argument. The FormatString object breaks the
-format string down into atoms ("%d", "%5f", "blah", etc.), and from
-each atom it creates a FormatSpecifier object, which it
-saves.
-
-Each FormatSpecifier has a regular expression fragment and a "handler"
-associated with it. For example, the regular expression fragment
-associated with the format "%d" is "([-+]?\d+)", and the handler
-associated with it is a wrapper around String#to_i. scanf itself calls
-FormatString#match, passing in the input string. FormatString#match
-iterates through its FormatSpecifiers; for each one, it matches the
-corresponding regular expression fragment against the string. If
-there's a match, it sends the matched string to the handler associated
-with the FormatSpecifier.
-
-Thus, to follow up the "%d" example: if "123" occurs in the input
-string when a FormatSpecifier consisting of "%d" is reached, the "123"
-will be matched against "([-+]?\d+)", and the matched string will be
-rendered into an integer by a call to to_i.
-
-The rendered match is then saved to an accumulator array, and the
-input string is reduced to the post-match substring. Thus the string
-is "eaten" from the left as the FormatSpecifiers are applied in
-sequence. (This is done to a duplicate string; the original string is
-not altered.)
-
-As soon as a regular expression fragment fails to match the string, or
-when the FormatString object runs out of FormatSpecifiers, scanning
-stops and results accumulated so far are returned in an array.
-
-==License and copyright
-
-Copyright:: (c) 2002-2003 David Alan Black
-License:: Distributed on the same licensing terms as Ruby itself
-
-==Warranty disclaimer
-
-This software is provided "as is" and without any express or implied
-warranties, including, without limitation, the implied warranties of
-merchantibility and fitness for a particular purpose.
-
-==Credits and acknowledgements
-
-scanf for Ruby was developed as the major activity of the Austin
-Ruby Codefest (Austin, Texas, August 2002).
-
-Principal author:: David Alan Black (mailto:dblack@superlink.net)
-Co-author:: Hal Fulton (mailto:hal9000@hypermetrics.com)
-Project contributors:: Nolan Darilek, Jason Johnston
-
-Thanks to Hal Fulton for hosting the Codefest.
-
-Thanks to Matz for suggestions about the class design.
-
-Thanks to Gavin Sinclair for some feedback on the documentation.
-
-The text for parts of this document, especially the Description and
-Conversions sections, above, were adapted from the Linux Programmer's
-Manual manpage for scanf(3), dated 1995-11-01.
-
-==Bugs and bug reports
-
-scanf for Ruby is based on something of an amalgam of C scanf
-implementations and documentation, rather than on a single canonical
-description. Suggestions for features and behaviors which appear in
-other scanfs, and would be meaningful in Ruby, are welcome, as are
-reports of suspicious behaviors and/or bugs. (Please see "Credits and
-acknowledgements", above, for email addresses.)
-
-=end
+# == Description
+#
+# scanf is an implementation of the C function scanf(3), modified as necessary
+# for ruby compatibility.
+#
+# the methods provided are String#scanf, IO#scanf, and
+# Kernel#scanf. Kernel#scanf is a wrapper around STDIN.scanf. IO#scanf
+# can be used on any IO stream, including file handles and sockets.
+# scanf can be called either with or without a block.
+#
+# Scanf scans an input string or stream according to a <b>format</b>, as
+# described below in Conversions, and returns an array of matches between
+# the format and the input. The format is defined in a string, and is
+# similar (though not identical) to the formats used in Kernel#printf and
+# Kernel#sprintf.
+#
+# The format may contain <b>conversion specifiers</b>, which tell scanf
+# what form (type) each particular matched substring should be converted
+# to (e.g., decimal integer, floating point number, literal string,
+# etc.) The matches and conversions take place from left to right, and
+# the conversions themselves are returned as an array.
+#
+# The format string may also contain characters other than those in the
+# conversion specifiers. White space (blanks, tabs, or newlines) in the
+# format string matches any amount of white space, including none, in
+# the input. Everything else matches only itself.
+#
+# Scanning stops, and scanf returns, when any input character fails to
+# match the specifications in the format string, or when input is
+# exhausted, or when everything in the format string has been
+# matched. All matches found up to the stopping point are returned in
+# the return array (or yielded to the block, if a block was given).
+#
+#
+# == Basic usage
+#
+# require 'scanf'
+#
+# # String#scanf and IO#scanf take a single argument, the format string
+# array = a_string.scanf("%d%s")
+# array = an_io.scanf("%d%s")
+#
+# # Kernel#scanf reads from STDIN
+# array = scanf("%d%s")
+#
+# == Block usage
+#
+# When called with a block, scanf keeps scanning the input, cycling back
+# to the beginning of the format string, and yields a new array of
+# conversions to the block every time the format string is matched
+# (including partial matches, but not including complete failures). The
+# actual return value of scanf when called with a block is an array
+# containing the results of all the executions of the block.
+#
+# str = "123 abc 456 def 789 ghi"
+# str.scanf("%d%s") { |num,str| [ num * 2, str.upcase ] }
+# # => [[246, "ABC"], [912, "DEF"], [1578, "GHI"]]
+#
+# == Conversions
+#
+# The single argument to scanf is a format string, which generally
+# includes one or more conversion specifiers. Conversion specifiers
+# begin with the percent character ('%') and include information about
+# what scanf should next scan for (string, decimal number, single
+# character, etc.).
+#
+# There may be an optional maximum field width, expressed as a decimal
+# integer, between the % and the conversion. If no width is given, a
+# default of `infinity' is used (with the exception of the %c specifier;
+# see below). Otherwise, given a field width of <em>n</em> for a given
+# conversion, at most <em>n</em> characters are scanned in processing
+# that conversion. Before conversion begins, most conversions skip
+# white space in the input string; this white space is not counted
+# against the field width.
+#
+# The following conversions are available.
+#
+# [%]
+# Matches a literal `%'. That is, `%%' in the format string matches a
+# single input `%' character. No conversion is done, and the resulting
+# '%' is not included in the return array.
+#
+# [d]
+# Matches an optionally signed decimal integer.
+#
+# [u]
+# Same as d.
+#
+# [i]
+# Matches an optionally signed integer. The integer is read in base
+# 16 if it begins with `0x' or `0X', in base 8 if it begins with `0',
+# and in base 10 other- wise. Only characters that correspond to the
+# base are recognized.
+#
+# [o]
+# Matches an optionally signed octal integer.
+#
+# [x, X]
+# Matches an optionally signed hexadecimal integer,
+#
+# [a, e, f, g, A, E, F, G]
+# Matches an optionally signed floating-point number.
+#
+# [s]
+# Matches a sequence of non-white-space character. The input string stops at
+# white space or at the maximum field width, whichever occurs first.
+#
+# [c]
+# Matches a single character, or a sequence of <em>n</em> characters if a
+# field width of <em>n</em> is specified. The usual skip of leading white
+# space is suppressed. To skip white space first, use an explicit space in
+# the format.
+#
+# [[]
+# Matches a nonempty sequence of characters from the specified set
+# of accepted characters. The usual skip of leading white space is
+# suppressed. This bracketed sub-expression is interpreted exactly like a
+# character class in a Ruby regular expression. (In fact, it is placed as-is
+# in a regular expression.) The matching against the input string ends with
+# the appearance of a character not in (or, with a circumflex, in) the set,
+# or when the field width runs out, whichever comes first.
+#
+# === Assignment suppression
+#
+# To require that a particular match occur, but without including the result
+# in the return array, place the <b>assignment suppression flag</b>, which is
+# the star character ('*'), immediately after the leading '%' of a format
+# specifier (just before the field width, if any).
+#
+# == scanf for Ruby compared with scanf in C
+#
+# scanf for Ruby is based on the C function scanf(3), but with modifications,
+# dictated mainly by the underlying differences between the languages.
+#
+# === Unimplemented flags and specifiers
+#
+# * The only flag implemented in scanf for Ruby is '<tt>*</tt>' (ignore
+# upcoming conversion). Many of the flags available in C versions of
+# scanf(3) have to do with the type of upcoming pointer arguments, and are
+# meaningless in Ruby.
+#
+# * The <tt>n</tt> specifier (store number of characters consumed so far in
+# next pointer) is not implemented.
+#
+# * The <tt>p</tt> specifier (match a pointer value) is not implemented.
+#
+# === Altered specifiers
+#
+# [o, u, x, X]
+# In scanf for Ruby, all of these specifiers scan for an optionally signed
+# integer, rather than for an unsigned integer like their C counterparts.
+#
+# === Return values
+#
+# scanf for Ruby returns an array of successful conversions, whereas
+# scanf(3) returns the number of conversions successfully
+# completed. (See below for more details on scanf for Ruby's return
+# values.)
+#
+# == Return values
+#
+# Without a block, scanf returns an array containing all the conversions
+# it has found. If none are found, scanf will return an empty array. An
+# unsuccessful match is never ignored, but rather always signals the end
+# of the scanning operation. If the first unsuccessful match takes place
+# after one or more successful matches have already taken place, the
+# returned array will contain the results of those successful matches.
+#
+# With a block scanf returns a 'map'-like array of transformations from
+# the block -- that is, an array reflecting what the block did with each
+# yielded result from the iterative scanf operation. (See "Block
+# usage", above.)
+#
+# == Current limitations and bugs
+#
+# When using IO#scanf under Windows, make sure you open your files in
+# binary mode:
+#
+# File.open("filename", "rb")
+#
+# so that scanf can keep track of characters correctly.
+#
+# Support for character classes is reasonably complete (since it
+# essentially piggy-backs on Ruby's regular expression handling of
+# character classes), but users are advised that character class testing
+# has not been exhaustive, and that they should exercise some caution
+# in using any of the more complex and/or arcane character class
+# idioms.
+#
+# == License and copyright
+#
+# Copyright:: (c) 2002-2003 David Alan Black
+# License:: Distributed on the same licensing terms as Ruby itself
+#
+# == Warranty disclaimer
+#
+# This software is provided "as is" and without any express or implied
+# warranties, including, without limitation, the implied warranties of
+# merchantability and fitness for a particular purpose.
+#
+# == Credits and acknowledgements
+#
+# scanf was developed as the major activity of the Austin Ruby Codefest
+# (Austin, Texas, August 2002).
+#
+# Principal author:: David Alan Black (mailto:dblack@superlink.net)
+# Co-author:: Hal Fulton (mailto:hal9000@hypermetrics.com)
+# Project contributors:: Nolan Darilek, Jason Johnston
+#
+# Thanks to Hal Fulton for hosting the Codefest.
+#
+# Thanks to Matz for suggestions about the class design.
+#
+# Thanks to Gavin Sinclair for some feedback on the documentation.
+#
+# The text for parts of this document, especially the Description and
+# Conversions sections, above, were adapted from the Linux Programmer's
+# Manual manpage for scanf(3), dated 1995-11-01.
+#
+# == Bugs and bug reports
+#
+# scanf for Ruby is based on something of an amalgam of C scanf
+# implementations and documentation, rather than on a single canonical
+# description. Suggestions for features and behaviors which appear in
+# other scanfs, and would be meaningful in Ruby, are welcome, as are
+# reports of suspicious behaviors and/or bugs. (Please see "Credits and
+# acknowledgements", above, for email addresses.)
module Scanf
+ # :stopdoc:
+
+ # ==Technical notes
+ #
+ # ===Rationale behind scanf for Ruby
+ #
+ # The impetus for a scanf implementation in Ruby comes chiefly from the fact
+ # that existing pattern matching operations, such as Regexp#match and
+ # String#scan, return all results as strings, which have to be converted to
+ # integers or floats explicitly in cases where what's ultimately wanted are
+ # integer or float values.
+ #
+ # ===Design of scanf for Ruby
+ #
+ # scanf for Ruby is essentially a <format string>-to-<regular
+ # expression> converter.
+ #
+ # When scanf is called, a FormatString object is generated from the
+ # format string ("%d%s...") argument. The FormatString object breaks the
+ # format string down into atoms ("%d", "%5f", "blah", etc.), and from
+ # each atom it creates a FormatSpecifier object, which it
+ # saves.
+ #
+ # Each FormatSpecifier has a regular expression fragment and a "handler"
+ # associated with it. For example, the regular expression fragment
+ # associated with the format "%d" is "([-+]?\d+)", and the handler
+ # associated with it is a wrapper around String#to_i. scanf itself calls
+ # FormatString#match, passing in the input string. FormatString#match
+ # iterates through its FormatSpecifiers; for each one, it matches the
+ # corresponding regular expression fragment against the string. If
+ # there's a match, it sends the matched string to the handler associated
+ # with the FormatSpecifier.
+ #
+ # Thus, to follow up the "%d" example: if "123" occurs in the input
+ # string when a FormatSpecifier consisting of "%d" is reached, the "123"
+ # will be matched against "([-+]?\d+)", and the matched string will be
+ # rendered into an integer by a call to to_i.
+ #
+ # The rendered match is then saved to an accumulator array, and the
+ # input string is reduced to the post-match substring. Thus the string
+ # is "eaten" from the left as the FormatSpecifiers are applied in
+ # sequence. (This is done to a duplicate string; the original string is
+ # not altered.)
+ #
+ # As soon as a regular expression fragment fails to match the string, or
+ # when the FormatString object runs out of FormatSpecifiers, scanning
+ # stops and results accumulated so far are returned in an array.
class FormatSpecifier
@@ -309,7 +292,24 @@ module Scanf
def skip; /^\s*%\*/.match(@spec_string); end
- def extract_float(s); s.to_f if s &&! skip; end
+ def extract_float(s)
+ return nil unless s &&! skip
+ if /\A(?<sign>[-+]?)0[xX](?<frac>\.\h+|\h+(?:\.\h*)?)[pP](?<exp>[-+]\d+)/ =~ s
+ f1, f2 = frac.split('.')
+ f = f1.hex
+ if f2
+ len = f2.length
+ if len > 0
+ f += f2.hex / (16.0 ** len)
+ end
+ end
+ (sign == ?- ? -1 : 1) * Math.ldexp(f, exp.to_i)
+ elsif /\A([-+]?\d+)\.([eE][-+]\d+)/ =~ s
+ ($1 << $2).to_f
+ else
+ s.to_f
+ end
+ end
def extract_decimal(s); s.to_i if s &&! skip; end
def extract_hex(s); s.hex if s &&! skip; end
def extract_octal(s); s.oct if s &&! skip; end
@@ -409,12 +409,13 @@ module Scanf
[ "([-+][0-7]{1,#{$1.to_i-1}}|[0-7]{1,#{$1}})", :extract_octal ]
# %f
- when /%\*?f/
- [ '([-+]?((\d+(?>(?=[^\d.]|$)))|(\d*(\.(\d*([eE][-+]?\d+)?)))))', :extract_float ]
+ when /%\*?[aefgAEFG]/
+ [ '([-+]?(?:0[xX](?:\.\h+|\h+(?:\.\h*)?)[pP][-+]\d+|\d+(?![\d.])|\d*\.\d*(?:[eE][-+]?\d+)?))', :extract_float ]
# %5f
- when /%\*?(\d+)f/
- [ "(\\S{1,#{$1}})", :extract_float ]
+ when /%\*?(\d+)[aefgAEFG]/
+ [ '(?=[-+]?(?:0[xX](?:\.\h+|\h+(?:\.\h*)?)[pP][-+]\d+|\d+(?![\d.])|\d*\.\d*(?:[eE][-+]?\d+)?))' +
+ "(\\S{1,#{$1}})", :extract_float ]
# %5s
when /%\*?(\d+)s/
@@ -490,7 +491,7 @@ module Scanf
attr_reader :string_left, :last_spec_tried,
:last_match_tried, :matched_count, :space
- SPECIFIERS = 'diuXxofeEgsc'
+ SPECIFIERS = 'diuXxofFeEgGscaA'
REGEX = /
# possible space, followed by...
(?:\s*
@@ -498,16 +499,16 @@ module Scanf
%
# another percent sign, or...
(?:%|
- # optional assignment suppression flag
- \*?
- # optional maximum field width
- \d*
- # named character class, ...
- (?:\[\[:\w+:\]\]|
- # traditional character class, or...
- \[[^\]]*\]|
- # specifier letter.
- [#{SPECIFIERS}])))|
+ # optional assignment suppression flag
+ \*?
+ # optional maximum field width
+ \d*
+ # named character class, ...
+ (?:\[\[:\w+:\]\]|
+ # traditional character class, or...
+ \[[^\]]*\]|
+ # specifier letter.
+ [#{SPECIFIERS}])))|
# or miscellaneous characters
[^%\s]+/ix
@@ -556,39 +557,61 @@ module Scanf
return accum.compact
end
end
+ # :startdoc:
end
class IO
-# The trick here is doing a match where you grab one *line*
-# of input at a time. The linebreak may or may not occur
-# at the boundary where the string matches a format specifier.
-# And if it does, some rule about whitespace may or may not
-# be in effect...
-#
-# That's why this is much more elaborate than the string
-# version.
-#
-# For each line:
-# Match succeeds (non-emptily)
-# and the last attempted spec/string sub-match succeeded:
-#
-# could the last spec keep matching?
-# yes: save interim results and continue (next line)
-#
-# The last attempted spec/string did not match:
-#
-# are we on the next-to-last spec in the string?
-# yes:
-# is fmt_string.string_left all spaces?
-# yes: does current spec care about input space?
-# yes: fatal failure
-# no: save interim results and continue
-# no: continue [this state could be analyzed further]
-#
-#
-
- def scanf(str,&b)
+ #:stopdoc:
+ # The trick here is doing a match where you grab one *line*
+ # of input at a time. The linebreak may or may not occur
+ # at the boundary where the string matches a format specifier.
+ # And if it does, some rule about whitespace may or may not
+ # be in effect...
+ #
+ # That's why this is much more elaborate than the string
+ # version.
+ #
+ # For each line:
+ #
+ # Match succeeds (non-emptily)
+ # and the last attempted spec/string sub-match succeeded:
+ #
+ # could the last spec keep matching?
+ # yes: save interim results and continue (next line)
+ #
+ # The last attempted spec/string did not match:
+ #
+ # are we on the next-to-last spec in the string?
+ # yes:
+ # is fmt_string.string_left all spaces?
+ # yes: does current spec care about input space?
+ # yes: fatal failure
+ # no: save interim results and continue
+ # no: continue [this state could be analyzed further]
+ #
+ #:startdoc:
+
+ # Scans the current string until the match is exhausted,
+ # yielding each match as it is encountered in the string.
+ # A block is not necessary though, as the results will simply
+ # be aggregated into the final array.
+ #
+ # "123 456".block_scanf("%d")
+ # # => [123, 456]
+ #
+ # If a block is given, the value from that is returned from
+ # the yield is added to an output array.
+ #
+ # "123 456".block_scanf("%d) do |digit,| # the ',' unpacks the Array
+ # digit + 100
+ # end
+ # # => [223, 556]
+ #
+ # See Scanf for details on creating a format string.
+ #
+ # You will need to require 'scanf' to use use IO#scanf.
+ def scanf(str,&b) #:yield: current_match
return block_scanf(str,&b) if b
return [] unless str.size > 0
@@ -668,7 +691,28 @@ end
class String
- def scanf(fstr,&b)
+ # :section: scanf
+ #
+ # You will need to require 'scanf' to use these methods
+
+ # Scans the current string. If a block is given, it
+ # functions exactly like block_scanf.
+ #
+ # arr = "123 456".scanf("%d%d")
+ # # => [123, 456]
+ #
+ # require 'pp'
+ #
+ # "this 123 read that 456 other".scanf("%s%d%s") {|m| pp m}
+ #
+ # # ["this", 123, "read"]
+ # # ["that", 456, "other"]
+ # # => [["this", 123, "read"], ["that", 456, "other"]]
+ #
+ # See Scanf for details on creating a format string.
+ #
+ # You will need to require 'scanf' to use String#scanf
+ def scanf(fstr,&b) #:yield: current_match
if b
block_scanf(fstr,&b)
else
@@ -682,7 +726,26 @@ class String
end
end
- def block_scanf(fstr,&b)
+ # Scans the current string until the match is exhausted
+ # yielding each match as it is encountered in the string.
+ # A block is not necessary as the results will simply
+ # be aggregated into the final array.
+ #
+ # "123 456".block_scanf("%d")
+ # # => [123, 456]
+ #
+ # If a block is given, the value from that is returned from
+ # the yield is added to an output array.
+ #
+ # "123 456".block_scanf("%d) do |digit,| # the ',' unpacks the Array
+ # digit + 100
+ # end
+ # # => [223, 556]
+ #
+ # See Scanf for details on creating a format string.
+ #
+ # You will need to require 'scanf' to use String#block_scanf
+ def block_scanf(fstr,&b) #:yield: current_match
fs = Scanf::FormatString.new(fstr)
str = self.dup
final = []
@@ -697,7 +760,12 @@ end
module Kernel
private
- def scanf(fs,&b)
- STDIN.scanf(fs,&b)
+ # Scans STDIN for data matching +format+. See IO#scanf for details.
+ #
+ # See Scanf for details on creating a format string.
+ #
+ # You will need to require 'scanf' to use Kernel#scanf.
+ def scanf(format, &b) #:doc:
+ STDIN.scanf(format ,&b)
end
end
diff --git a/lib/securerandom.rb b/lib/securerandom.rb
index 4a97ff8a78..04e8bc205e 100644
--- a/lib/securerandom.rb
+++ b/lib/securerandom.rb
@@ -41,9 +41,9 @@ end
module SecureRandom
# SecureRandom.random_bytes generates a random binary string.
#
- # The argument n specifies the length of the result string.
+ # The argument _n_ specifies the length of the result string.
#
- # If n is not specified, 16 is assumed.
+ # If _n_ is not specified, 16 is assumed.
# It may be larger in future.
#
# The result may contain any byte: "\x00" - "\xff".
@@ -57,6 +57,14 @@ module SecureRandom
n ||= 16
if defined? OpenSSL::Random
+ @pid = 0 if !defined?(@pid)
+ pid = $$
+ if @pid != pid
+ now = Time.now
+ ary = [now.to_i, now.nsec, @pid, pid]
+ OpenSSL::Random.seed(ary.to_s)
+ @pid = pid
+ end
return OpenSSL::Random.random_bytes(n)
end
@@ -64,7 +72,6 @@ module SecureRandom
flags = File::RDONLY
flags |= File::NONBLOCK if defined? File::NONBLOCK
flags |= File::NOCTTY if defined? File::NOCTTY
- flags |= File::NOFOLLOW if defined? File::NOFOLLOW
begin
File.open("/dev/urandom", flags) {|f|
unless f.stat.chardev?
@@ -104,7 +111,7 @@ module SecureRandom
end
end
if @has_win32
- bytes = " " * n
+ bytes = " ".force_encoding("ASCII-8BIT") * n
if @crypt_gen_random.call(@hProv, bytes.size, bytes) == 0
raise SystemCallError, "CryptGenRandom failed: #{lastWin32ErrorMessage}"
end
@@ -116,10 +123,10 @@ module SecureRandom
# SecureRandom.hex generates a random hex string.
#
- # The argument n specifies the length of the random length.
- # The length of the result string is twice of n.
+ # The argument _n_ specifies the length of the random length.
+ # The length of the result string is twice of _n_.
#
- # If n is not specified, 16 is assumed.
+ # If _n_ is not specified, 16 is assumed.
# It may be larger in future.
#
# The result may contain 0-9 and a-f.
@@ -135,10 +142,10 @@ module SecureRandom
# SecureRandom.base64 generates a random base64 string.
#
- # The argument n specifies the length of the random length.
- # The length of the result string is about 4/3 of n.
+ # The argument _n_ specifies the length of the random length.
+ # The length of the result string is about 4/3 of _n_.
#
- # If n is not specified, 16 is assumed.
+ # If _n_ is not specified, 16 is assumed.
# It may be larger in future.
#
# The result may contain A-Z, a-z, 0-9, "+", "/" and "=".
@@ -149,7 +156,7 @@ module SecureRandom
# If secure random number generator is not available,
# NotImplementedError is raised.
#
- # See RFC 3548 for base64.
+ # See RFC 3548 for the definition of base64.
def self.base64(n=nil)
[random_bytes(n)].pack("m*").delete("\n")
end
@@ -179,7 +186,7 @@ module SecureRandom
# If secure random number generator is not available,
# NotImplementedError is raised.
#
- # See RFC 3548 for URL-safe base64.
+ # See RFC 3548 for the definition of URL-safe base64.
def self.urlsafe_base64(n=nil, padding=false)
s = [random_bytes(n)].pack("m*")
s.delete!("\n")
@@ -190,7 +197,7 @@ module SecureRandom
# SecureRandom.random_number generates a random number.
#
- # If an positive integer is given as n,
+ # If a positive integer is given as _n_,
# SecureRandom.random_number returns an integer:
# 0 <= SecureRandom.random_number(n) < n.
#
@@ -198,7 +205,7 @@ module SecureRandom
# p SecureRandom.random_number(100) #=> 88
#
# If 0 is given or an argument is not given,
- # SecureRandom.random_number returns an float:
+ # SecureRandom.random_number returns a float:
# 0.0 <= SecureRandom.random_number() < 1.0.
#
# p SecureRandom.random_number #=> 0.596506046187744
@@ -228,6 +235,7 @@ module SecureRandom
# SecureRandom.uuid generates a v4 random UUID (Universally Unique IDentifier).
#
# p SecureRandom.uuid #=> "2d931510-d99f-494a-8c67-87feb05e1594"
+ # p SecureRandom.uuid #=> "bad85eb9-0713-4da7-8d36-07a8e4b00eab"
# p SecureRandom.uuid #=> "62936e70-1815-439b-bf89-8492855a7e6b"
#
# The version 4 UUID is purely random (except the version).
diff --git a/lib/set.rb b/lib/set.rb
index 8f2bef91ba..07031bf894 100644..100755
--- a/lib/set.rb
+++ b/lib/set.rb
@@ -70,30 +70,41 @@ class Set
enum.nil? and return
if block
- enum.each { |o| add(block[o]) }
+ do_with_enum(enum) { |o| add(block[o]) }
else
merge(enum)
end
end
+ def do_with_enum(enum, &block) # :nodoc:
+ if enum.respond_to?(:each_entry)
+ enum.each_entry(&block)
+ elsif enum.respond_to?(:each)
+ enum.each(&block)
+ else
+ raise ArgumentError, "value must be enumerable"
+ end
+ end
+ private :do_with_enum
+
# Copy internal hash.
def initialize_copy(orig)
@hash = orig.instance_eval{@hash}.dup
end
- def freeze # :nodoc:
+ def freeze # :nodoc:
super
@hash.freeze
self
end
- def taint # :nodoc:
+ def taint # :nodoc:
super
@hash.taint
self
end
- def untaint # :nodoc:
+ def untaint # :nodoc:
super
@hash.untaint
self
@@ -119,11 +130,11 @@ class Set
# Replaces the contents of the set with the contents of the given
# enumerable object and returns self.
def replace(enum)
- if enum.class == self.class
- @hash.replace(enum.instance_eval { @hash })
+ if enum.instance_of?(self.class)
+ @hash.replace(enum.instance_variable_get(:@hash))
else
clear
- enum.each { |o| add(o) }
+ merge(enum)
end
self
@@ -134,18 +145,18 @@ class Set
@hash.keys
end
- def flatten_merge(set, seen = Set.new)
+ def flatten_merge(set, seen = Set.new) # :nodoc:
set.each { |e|
if e.is_a?(Set)
- if seen.include?(e_id = e.object_id)
- raise ArgumentError, "tried to flatten recursive Set"
- end
+ if seen.include?(e_id = e.object_id)
+ raise ArgumentError, "tried to flatten recursive Set"
+ end
- seen.add(e_id)
- flatten_merge(e, seen)
- seen.delete(e_id)
+ seen.add(e_id)
+ flatten_merge(e, seen)
+ seen.delete(e_id)
else
- add(e)
+ add(e)
end
}
@@ -255,6 +266,14 @@ class Set
self
end
+ # Deletes every element of the set for which block evaluates to
+ # false, and returns self.
+ def keep_if
+ block_given? or return enum_for(__method__)
+ to_a.each { |o| @hash.delete(o) unless yield(o) }
+ self
+ end
+
# Replaces the elements with ones returned by collect().
def collect!
block_given? or return enum_for(__method__)
@@ -273,13 +292,22 @@ class Set
size == n ? nil : self
end
+ # Equivalent to Set#keep_if, but returns nil if no changes were
+ # made.
+ def select!
+ block_given? or return enum_for(__method__)
+ n = size
+ keep_if { |o| yield(o) }
+ size == n ? nil : self
+ end
+
# Merges the elements of the given enumerable object to the set and
# returns self.
def merge(enum)
if enum.instance_of?(self.class)
@hash.update(enum.instance_variable_get(:@hash))
else
- enum.each { |o| add(o) }
+ do_with_enum(enum) { |o| add(o) }
end
self
@@ -288,7 +316,7 @@ class Set
# Deletes every element that appears in the given enumerable object
# and returns self.
def subtract(enum)
- enum.each { |o| delete(o) }
+ do_with_enum(enum) { |o| delete(o) }
self
end
@@ -297,24 +325,24 @@ class Set
def |(enum)
dup.merge(enum)
end
- alias + | ##
- alias union | ##
+ alias + | ##
+ alias union | ##
# Returns a new set built by duplicating the set, removing every
# element that appears in the given enumerable object.
def -(enum)
dup.subtract(enum)
end
- alias difference - ##
+ alias difference - ##
# Returns a new set containing elements common to the set and the
# given enumerable object.
def &(enum)
n = self.class.new
- enum.each { |o| n.add(o) if include?(o) }
+ do_with_enum(enum) { |o| n.add(o) if include?(o) }
n
end
- alias intersection & ##
+ alias intersection & ##
# Returns a new set containing elements exclusive between the set
# and the given enumerable object. (set ^ enum) is equivalent to
@@ -327,20 +355,23 @@ class Set
# Returns true if two sets are equal. The equality of each couple
# of elements is defined according to Object#eql?.
- def ==(set)
- equal?(set) and return true
-
- set.is_a?(Set) && size == set.size or return false
-
- hash = @hash.dup
- set.all? { |o| hash.include?(o) }
+ def ==(other)
+ if self.equal?(other)
+ true
+ elsif other.instance_of?(self.class)
+ @hash == other.instance_variable_get(:@hash)
+ elsif other.is_a?(Set) && self.size == other.size
+ other.all? { |o| @hash.include?(o) }
+ else
+ false
+ end
end
- def hash # :nodoc:
+ def hash # :nodoc:
@hash.hash
end
- def eql?(o) # :nodoc:
+ def eql?(o) # :nodoc:
return false unless o.is_a?(Set)
@hash.eql?(o.instance_eval{@hash})
end
@@ -393,23 +424,23 @@ class Set
if func.arity == 2
require 'tsort'
- class << dig = {} # :nodoc:
- include TSort
+ class << dig = {} # :nodoc:
+ include TSort
- alias tsort_each_node each_key
- def tsort_each_child(node, &block)
- fetch(node).each(&block)
- end
+ alias tsort_each_node each_key
+ def tsort_each_child(node, &block)
+ fetch(node).each(&block)
+ end
end
each { |u|
- dig[u] = a = []
- each{ |v| func.call(u, v) and a << v }
+ dig[u] = a = []
+ each{ |v| func.call(u, v) and a << v }
}
set = Set.new()
dig.each_strongly_connected_component { |css|
- set.add(self.class.new(css))
+ set.add(self.class.new(css))
}
set
else
@@ -436,142 +467,153 @@ class Set
end
end
- def pretty_print(pp) # :nodoc:
+ def pretty_print(pp) # :nodoc:
pp.text sprintf('#<%s: {', self.class.name)
pp.nest(1) {
pp.seplist(self) { |o|
- pp.pp o
+ pp.pp o
}
}
pp.text "}>"
end
- def pretty_print_cycle(pp) # :nodoc:
+ def pretty_print_cycle(pp) # :nodoc:
pp.text sprintf('#<%s: {%s}>', self.class.name, empty? ? '' : '...')
end
end
-#
+#
# SortedSet implements a Set that guarantees that it's element are
# yielded in sorted order (according to the return values of their
# #<=> methods) when iterating over them.
-#
+#
# All elements that are added to a SortedSet must respond to the <=>
# method for comparison.
-#
+#
# Also, all elements must be <em>mutually comparable</em>: <tt>el1 <=>
# el2</tt> must not return <tt>nil</tt> for any elements <tt>el1</tt>
# and <tt>el2</tt>, else an ArgumentError will be raised when
# iterating over the SortedSet.
#
# == Example
-#
+#
# require "set"
-#
+#
# set = SortedSet.new([2, 1, 5, 6, 4, 5, 3, 3, 3])
# ary = []
-#
+#
# set.each do |obj|
# ary << obj
# end
-#
+#
# p ary # => [1, 2, 3, 4, 5, 6]
-#
+#
# set2 = SortedSet.new([1, 2, "3"])
# set2.each { |obj| } # => raises ArgumentError: comparison of Fixnum with String failed
-#
+#
class SortedSet < Set
@@setup = false
class << self
- def [](*ary) # :nodoc:
+ def [](*ary) # :nodoc:
new(ary)
end
- def setup # :nodoc:
+ def setup # :nodoc:
@@setup and return
module_eval {
# a hack to shut up warning
alias old_init initialize
- remove_method :old_init
}
begin
- require 'rbtree'
-
- module_eval %{
- def initialize(*args, &block)
- @hash = RBTree.new
- super
- end
-
- def add(o)
- o.respond_to?(:<=>) or raise ArgumentError, "value must repond to <=>"
- super
- end
- alias << add
- }
+ require 'rbtree'
+
+ module_eval %{
+ def initialize(*args, &block)
+ @hash = RBTree.new
+ super
+ end
+
+ def add(o)
+ o.respond_to?(:<=>) or raise ArgumentError, "value must respond to <=>"
+ super
+ end
+ alias << add
+ }
rescue LoadError
- module_eval %{
- def initialize(*args, &block)
- @keys = nil
- super
- end
-
- def clear
- @keys = nil
- super
- end
-
- def replace(enum)
- @keys = nil
- super
- end
-
- def add(o)
- o.respond_to?(:<=>) or raise ArgumentError, "value must respond to <=>"
- @keys = nil
- super
- end
- alias << add
-
- def delete(o)
- @keys = nil
- @hash.delete(o)
- self
- end
-
- def delete_if
+ module_eval %{
+ def initialize(*args, &block)
+ @keys = nil
+ super
+ end
+
+ def clear
+ @keys = nil
+ super
+ end
+
+ def replace(enum)
+ @keys = nil
+ super
+ end
+
+ def add(o)
+ o.respond_to?(:<=>) or raise ArgumentError, "value must respond to <=>"
+ @keys = nil
+ super
+ end
+ alias << add
+
+ def delete(o)
+ @keys = nil
+ @hash.delete(o)
+ self
+ end
+
+ def delete_if
block_given? or return enum_for(__method__)
- n = @hash.size
- super
- @keys = nil if @hash.size != n
- self
- end
-
- def merge(enum)
- @keys = nil
- super
- end
-
- def each
- block_given? or return enum_for(__method__)
- to_a.each { |o| yield(o) }
- self
- end
-
- def to_a
- (@keys = @hash.keys).sort! unless @keys
- @keys
- end
- }
+ n = @hash.size
+ super
+ @keys = nil if @hash.size != n
+ self
+ end
+
+ def keep_if
+ block_given? or return enum_for(__method__)
+ n = @hash.size
+ super
+ @keys = nil if @hash.size != n
+ self
+ end
+
+ def merge(enum)
+ @keys = nil
+ super
+ end
+
+ def each
+ block_given? or return enum_for(__method__)
+ to_a.each { |o| yield(o) }
+ self
+ end
+
+ def to_a
+ (@keys = @hash.keys).sort! unless @keys
+ @keys
+ end
+ }
end
+ module_eval {
+ # a hack to shut up warning
+ remove_method :old_init
+ }
@@setup = true
end
end
- def initialize(*args, &block) # :nodoc:
+ def initialize(*args, &block) # :nodoc:
SortedSet.setup
initialize(*args, &block)
end
@@ -618,52 +660,54 @@ end
#
# if @proc.arity == 2
# instance_eval %{
-# def add(o)
-# @hash[o] = true if @proc.call(self, o)
-# self
-# end
-# alias << add
+# def add(o)
+# @hash[o] = true if @proc.call(self, o)
+# self
+# end
+# alias << add
#
-# def add?(o)
-# if include?(o) || !@proc.call(self, o)
-# nil
-# else
-# @hash[o] = true
-# self
-# end
-# end
+# def add?(o)
+# if include?(o) || !@proc.call(self, o)
+# nil
+# else
+# @hash[o] = true
+# self
+# end
+# end
#
-# def replace(enum)
-# clear
-# enum.each { |o| add(o) }
+# def replace(enum)
+# enum.respond_to?(:each) or raise ArgumentError, "value must be enumerable"
+# clear
+# enum.each_entry { |o| add(o) }
#
-# self
-# end
+# self
+# end
#
-# def merge(enum)
-# enum.each { |o| add(o) }
+# def merge(enum)
+# enum.respond_to?(:each) or raise ArgumentError, "value must be enumerable"
+# enum.each_entry { |o| add(o) }
#
-# self
-# end
+# self
+# end
# }
# else
# instance_eval %{
-# def add(o)
+# def add(o)
# if @proc.call(o)
-# @hash[o] = true
+# @hash[o] = true
# end
-# self
-# end
-# alias << add
+# self
+# end
+# alias << add
#
-# def add?(o)
-# if include?(o) || !@proc.call(o)
-# nil
-# else
-# @hash[o] = true
-# self
-# end
-# end
+# def add?(o)
+# if include?(o) || !@proc.call(o)
+# nil
+# else
+# @hash[o] = true
+# self
+# end
+# end
# }
# end
#
@@ -708,10 +752,10 @@ class TC_Set < Test::Unit::TestCase
Set.new([1,2])
Set.new('a'..'c')
}
- assert_raises(NoMethodError) {
+ assert_raises(ArgumentError) {
Set.new(false)
}
- assert_raises(NoMethodError) {
+ assert_raises(ArgumentError) {
Set.new(1)
}
assert_raises(ArgumentError) {
@@ -794,12 +838,12 @@ class TC_Set < Test::Unit::TestCase
set1 = Set[
1,
Set[
- 5,
- Set[7,
- Set[0]
- ],
- Set[6,2],
- 1
+ 5,
+ Set[7,
+ Set[0]
+ ],
+ Set[6,2],
+ 1
],
3,
Set[3,4]
@@ -979,7 +1023,7 @@ class TC_Set < Test::Unit::TestCase
assert_nothing_raised {
set.each { |o|
- ary.delete(o) or raise "unexpected element: #{o}"
+ ary.delete(o) or raise "unexpected element: #{o}"
}
ary.empty? or raise "forgotten elements: #{ary.join(', ')}"
@@ -1044,11 +1088,11 @@ class TC_Set < Test::Unit::TestCase
ret = set.collect! { |i|
case i
when Numeric
- i * 2
+ i * 2
when String
- i.upcase
+ i.upcase
else
- nil
+ nil
end
}
@@ -1173,15 +1217,15 @@ class TC_Set < Test::Unit::TestCase
assert_equal(set, ret.flatten)
ret.each { |s|
if s.include?(0)
- assert_equal(Set[0,1], s)
+ assert_equal(Set[0,1], s)
elsif s.include?(3)
- assert_equal(Set[3,4,5], s)
+ assert_equal(Set[3,4,5], s)
elsif s.include?(7)
- assert_equal(Set[7], s)
+ assert_equal(Set[7], s)
elsif s.include?(9)
- assert_equal(Set[9,10,11], s)
+ assert_equal(Set[9,10,11], s)
else
- raise "unexpected group: #{s.inspect}"
+ raise "unexpected group: #{s.inspect}"
end
}
end
diff --git a/lib/shell.rb b/lib/shell.rb
index d2ce26d3b3..9e409a1004 100644
--- a/lib/shell.rb
+++ b/lib/shell.rb
@@ -1,8 +1,8 @@
#
# shell.rb -
-# $Release Version: 0.7 $
-# $Revision: 1.9 $
-# by Keiju ISHITSUKA(keiju@ruby-lang.org)
+# $Release Version: 0.7 $
+# $Revision: 1.9 $
+# by Keiju ISHITSUKA(keiju@ruby-lang.org)
#
# --
#
@@ -57,9 +57,9 @@ class Shell
def default_system_path
if @default_system_path
- @default_system_path
+ @default_system_path
else
- ENV["PATH"].split(":")
+ ENV["PATH"].split(":")
end
end
@@ -69,9 +69,9 @@ class Shell
def default_record_separator
if @default_record_separator
- @default_record_separator
+ @default_record_separator
else
- $/
+ $/
end
end
@@ -156,10 +156,10 @@ class Shell
notify("chdir(with block) #{path}") if verbose
cwd_old = @cwd
begin
- chdir(path, nil)
- yield
+ chdir(path, nil)
+ yield
ensure
- chdir(cwd_old, nil)
+ chdir(cwd_old, nil)
end
else
notify("chdir #{path}") if verbose
@@ -179,9 +179,9 @@ class Shell
notify("pushdir(with block) #{path}") if verbose
pushdir(path, nil)
begin
- yield
+ yield
ensure
- popdir
+ popdir
end
elsif path
notify("pushdir #{path}") if verbose
@@ -192,12 +192,12 @@ class Shell
else
notify("pushdir") if verbose
if pop = @dir_stack.pop
- @dir_stack.push @cwd
- chdir pop
- notify "dir stack: [#{@dir_stack.join ', '}]"
- self
+ @dir_stack.push @cwd
+ chdir pop
+ notify "dir stack: [#{@dir_stack.join ', '}]"
+ self
else
- Shell.Fail DirStackEmpty
+ Shell.Fail DirStackEmpty
end
end
Void.new(self)
@@ -265,32 +265,32 @@ class Shell
def self.notify(*opts, &block)
Shell::debug_output_synchronize do
if opts[-1].kind_of?(String)
- yorn = verbose?
+ yorn = verbose?
else
- yorn = opts.pop
+ yorn = opts.pop
end
return unless yorn
if @debug_display_thread_id
- if @debug_display_process_id
- prefix = "shell(##{Process.pid}:#{Thread.current.to_s.sub("Thread", "Th")}): "
- else
- prefix = "shell(#{Thread.current.to_s.sub("Thread", "Th")}): "
- end
+ if @debug_display_process_id
+ prefix = "shell(##{Process.pid}:#{Thread.current.to_s.sub("Thread", "Th")}): "
+ else
+ prefix = "shell(#{Thread.current.to_s.sub("Thread", "Th")}): "
+ end
else
- prefix = "shell: "
+ prefix = "shell: "
end
_head = true
STDERR.print opts.collect{|mes|
- mes = mes.dup
- yield mes if iterator?
- if _head
- _head = false
-# "shell" " + mes
- prefix + mes
- else
- " "* prefix.size + mes
- end
+ mes = mes.dup
+ yield mes if iterator?
+ if _head
+ _head = false
+# "shell" " + mes
+ prefix + mes
+ else
+ " "* prefix.size + mes
+ end
}.join("\n")+"\n"
end
end
diff --git a/lib/shell/builtin-command.rb b/lib/shell/builtin-command.rb
index e489da4eca..b1ca5c38f6 100644
--- a/lib/shell/builtin-command.rb
+++ b/lib/shell/builtin-command.rb
@@ -1,8 +1,8 @@
#
# shell/builtin-command.rb -
-# $Release Version: 0.7 $
-# $Revision$
-# by Keiju ISHITSUKA(keiju@ruby-lang.org)
+# $Release Version: 0.7 $
+# $Revision$
+# by Keiju ISHITSUKA(keiju@ruby-lang.org)
#
# --
#
@@ -40,7 +40,7 @@ class Shell
def each(rs = nil)
rs = @shell.record_separator unless rs
for str in @strings
- yield str + rs
+ yield str + rs
end
end
end
@@ -53,11 +53,11 @@ class Shell
def each(rs = nil)
if @cat_files.empty?
- super
+ super
else
- for src in @cat_files
- @shell.foreach(src, rs){|l| yield l}
- end
+ for src in @cat_files
+ @shell.foreach(src, rs){|l| yield l}
+ end
end
end
end
@@ -71,14 +71,14 @@ class Shell
def each(rs = nil)
if @pattern[0] == ?/
- @files = Dir[@pattern]
+ @files = Dir[@pattern]
else
- prefix = @shell.pwd+"/"
- @files = Dir[prefix+@pattern].collect{|p| p.sub(prefix, "")}
+ prefix = @shell.pwd+"/"
+ @files = Dir[prefix+@pattern].collect{|p| p.sub(prefix, "")}
end
rs = @shell.record_separator unless rs
for f in @files
- yield f+rs
+ yield f+rs
end
end
end
@@ -90,9 +90,9 @@ class Shell
#
# def each(rs = nil)
# ary = []
-# super{|l| ary.push l}
+# super{|l| ary.push l}
# for l in ary.sort!
-# yield l
+# yield l
# end
# end
# end
@@ -107,7 +107,7 @@ class Shell
def input=(filter)
@input.input=filter
for l in @input
- @io << l
+ @io << l
end
end
@@ -122,9 +122,9 @@ class Shell
def input=(filter)
begin
- super
+ super
ensure
- @io.close
+ @io.close
end
end
end
@@ -138,9 +138,9 @@ class Shell
def each(rs = nil)
to = @shell.open(@to_filename, "w")
begin
- super{|l| to << l; yield l}
+ super{|l| to << l; yield l}
ensure
- to.close
+ to.close
end
end
end
@@ -153,7 +153,7 @@ class Shell
def each(rs = nil)
while job = @jobs.shift
- job.each{|l| yield l}
+ job.each{|l| yield l}
end
end
end
diff --git a/lib/shell/command-processor.rb b/lib/shell/command-processor.rb
index e224d91368..ae157eba5c 100644
--- a/lib/shell/command-processor.rb
+++ b/lib/shell/command-processor.rb
@@ -1,8 +1,8 @@
#
# shell/command-controller.rb -
-# $Release Version: 0.7 $
-# $Revision$
-# by Keiju ISHITSUKA(keiju@ruby-lang.org)
+# $Release Version: 0.7 $
+# $Revision$
+# by Keiju ISHITSUKA(keiju@ruby-lang.org)
#
# --
#
@@ -35,13 +35,13 @@ class Shell
install_builtin_commands
- # define CommandProccessor#methods to Shell#methods and Filter#methods
+ # define CommandProcessor#methods to Shell#methods and Filter#methods
for m in CommandProcessor.instance_methods(false) - NoDelegateMethods
- add_delegate_command_to_shell(m)
+ add_delegate_command_to_shell(m)
end
def self.method_added(id)
- add_delegate_command_to_shell(id)
+ add_delegate_command_to_shell(id)
end
end
@@ -50,14 +50,14 @@ class Shell
#
def self.run_config
begin
- load File.expand_path("~/.rb_shell") if ENV.key?("HOME")
+ load File.expand_path("~/.rb_shell") if ENV.key?("HOME")
rescue LoadError, Errno::ENOENT
rescue
- print "load error: #{rc}\n"
- print $!.class, ": ", $!, "\n"
- for err in $@[0, $@.size - 2]
- print "\t", err, "\n"
- end
+ print "load error: #{rc}\n"
+ print $!.class, ": ", $!, "\n"
+ for err in $@[0, $@.size - 2]
+ print "\t", err, "\n"
+ end
end
end
@@ -68,9 +68,9 @@ class Shell
#
# CommandProcessor#expand_path(path)
- # path: String
- # return: String
- # returns the absolute path for <path>
+ # path: String
+ # return: String
+ # returns the absolute path for <path>
#
def expand_path(path)
@shell.expand_path(path)
@@ -86,68 +86,68 @@ class Shell
# -
#
# CommandProcessor#foreach(path, rs)
- # path: String
- # rs: String - record separator
- # iterator
- # Same as:
- # File#foreach (when path is file)
- # Dir#foreach (when path is directory)
- # path is relative to pwd
+ # path: String
+ # rs: String - record separator
+ # iterator
+ # Same as:
+ # File#foreach (when path is file)
+ # Dir#foreach (when path is directory)
+ # path is relative to pwd
#
def foreach(path = nil, *rs)
path = "." unless path
path = expand_path(path)
if File.directory?(path)
- Dir.foreach(path){|fn| yield fn}
+ Dir.foreach(path){|fn| yield fn}
else
- IO.foreach(path, *rs){|l| yield l}
+ IO.foreach(path, *rs){|l| yield l}
end
end
#
# CommandProcessor#open(path, mode)
- # path: String
- # mode: String
- # return: File or Dir
- # Same as:
- # File#open (when path is file)
- # Dir#open (when path is directory)
- # mode has an effect only when path is a file
+ # path: String
+ # mode: String
+ # return: File or Dir
+ # Same as:
+ # File#open (when path is file)
+ # Dir#open (when path is directory)
+ # mode has an effect only when path is a file
#
def open(path, mode = nil, perm = 0666, &b)
path = expand_path(path)
if File.directory?(path)
- Dir.open(path, &b)
+ Dir.open(path, &b)
else
- if @shell.umask
- f = File.open(path, mode, perm)
- File.chmod(perm & ~@shell.umask, path)
- if block_given?
- f.each(&b)
- end
- f
- else
- f = File.open(path, mode, perm, &b)
- end
+ if @shell.umask
+ f = File.open(path, mode, perm)
+ File.chmod(perm & ~@shell.umask, path)
+ if block_given?
+ f.each(&b)
+ end
+ f
+ else
+ f = File.open(path, mode, perm, &b)
+ end
end
end
# public :open
#
# CommandProcessor#unlink(path)
- # same as:
- # Dir#unlink (when path is directory)
- # File#unlink (when path is file)
+ # same as:
+ # Dir#unlink (when path is directory)
+ # File#unlink (when path is file)
#
def unlink(path)
@shell.check_point
path = expand_path(path)
if File.directory?(path)
- Dir.unlink(path)
+ Dir.unlink(path)
else
- IO.unlink(path)
+ IO.unlink(path)
end
Void.new(@shell)
end
@@ -155,19 +155,19 @@ class Shell
#
# CommandProcessor#test(command, file1, file2)
# CommandProcessor#[command, file1, file2]
- # command: char or String or Symbol
- # file1: String
- # file2: String(optional)
- # return: Boolean
- # same as:
- # test() (when command is char or length 1 string or symbol)
- # FileTest.command (others)
- # example:
- # sh[?e, "foo"]
- # sh[:e, "foo"]
- # sh["e", "foo"]
- # sh[:exists?, "foo"]
- # sh["exists?", "foo"]
+ # command: char or String or Symbol
+ # file1: String
+ # file2: String(optional)
+ # return: Boolean
+ # same as:
+ # test() (when command is char or length 1 string or symbol)
+ # FileTest.command (others)
+ # example:
+ # sh[?e, "foo"]
+ # sh[:e, "foo"]
+ # sh["e", "foo"]
+ # sh[:exists?, "foo"]
+ # sh["exists?", "foo"]
#
alias top_level_test test
def test(command, file1, file2=nil)
@@ -177,25 +177,25 @@ class Shell
case command
when Integer
- if file2
- top_level_test(command, file1, file2)
- else
- top_level_test(command, file1)
- end
+ if file2
+ top_level_test(command, file1, file2)
+ else
+ top_level_test(command, file1)
+ end
when String
- if command.size == 1
- if file2
- top_level_test(command, file1, file2)
- else
- top_level_test(command, file1)
- end
- else
- if file2
- FileTest.send(command, file1, file2)
- else
- FileTest.send(command, file1)
- end
- end
+ if command.size == 1
+ if file2
+ top_level_test(command, file1, file2)
+ else
+ top_level_test(command, file1)
+ end
+ else
+ if file2
+ FileTest.send(command, file1, file2)
+ else
+ FileTest.send(command, file1)
+ end
+ end
end
end
alias [] test
@@ -209,8 +209,8 @@ class Shell
#--
#
# CommandProcessor#mkdir(*path)
- # path: String
- # same as Dir.mkdir()
+ # path: String
+ # same as Dir.mkdir()
#
def mkdir(*path)
@shell.check_point
@@ -218,59 +218,59 @@ class Shell
perm = nil
if path.last.kind_of?(Integer)
- perm = path.pop
+ perm = path.pop
end
for dir in path
- d = expand_path(dir)
- if perm
- Dir.mkdir(d, perm)
- else
- Dir.mkdir(d)
- end
- File.chmod(d, 0666 & ~@shell.umask) if @shell.umask
+ d = expand_path(dir)
+ if perm
+ Dir.mkdir(d, perm)
+ else
+ Dir.mkdir(d)
+ end
+ File.chmod(d, 0666 & ~@shell.umask) if @shell.umask
end
Void.new(@shell)
end
#
# CommandProcessor#rmdir(*path)
- # path: String
- # same as Dir.rmdir()
+ # path: String
+ # same as Dir.rmdir()
#
def rmdir(*path)
@shell.check_point
notify("rmdir #{path.join(' ')}")
for dir in path
- Dir.rmdir(expand_path(dir))
+ Dir.rmdir(expand_path(dir))
end
Void.new(@shell)
end
#
# CommandProcessor#system(command, *opts)
- # command: String
- # opts: String
- # return: SystemCommand
- # Same as system() function
- # example:
- # print sh.system("ls", "-l")
- # sh.system("ls", "-l") | sh.head > STDOUT
+ # command: String
+ # opts: String
+ # return: SystemCommand
+ # Same as system() function
+ # example:
+ # print sh.system("ls", "-l")
+ # sh.system("ls", "-l") | sh.head > STDOUT
#
def system(command, *opts)
if opts.empty?
- if command =~ /\*|\?|\{|\}|\[|\]|<|>|\(|\)|~|&|\||\\|\$|;|'|`|"|\n/
- return SystemCommand.new(@shell, find_system_command("sh"), "-c", command)
- else
- command, *opts = command.split(/\s+/)
- end
+ if command =~ /\*|\?|\{|\}|\[|\]|<|>|\(|\)|~|&|\||\\|\$|;|'|`|"|\n/
+ return SystemCommand.new(@shell, find_system_command("sh"), "-c", command)
+ else
+ command, *opts = command.split(/\s+/)
+ end
end
SystemCommand.new(@shell, find_system_command(command), *opts)
end
#
# ProcessCommand#rehash
- # clear command hash table.
+ # clear command hash table.
#
def rehash
@system_commands = {}
@@ -286,9 +286,9 @@ class Shell
def transact(&block)
begin
- @shell.instance_eval(&block)
+ @shell.instance_eval(&block)
ensure
- check_point
+ check_point
end
end
@@ -318,11 +318,11 @@ class Shell
def append(to, filter)
case to
when String
- AppendFile.new(@shell, to, filter)
+ AppendFile.new(@shell, to, filter)
when IO
- AppendIO.new(@shell, to, filter)
+ AppendIO.new(@shell, to, filter)
else
- Shell.Fail Error::CantApplyMethod, "append", to.class
+ Shell.Fail Error::CantApplyMethod, "append", to.class
end
end
@@ -337,10 +337,10 @@ class Shell
# %pwd, %cwd -> @pwd
def notify(*opts, &block)
Shell.notify(*opts) {|mes|
- yield mes if iterator?
+ yield mes if iterator?
- mes.gsub!("%pwd", "#{@cwd}")
- mes.gsub!("%cwd", "#{@cwd}")
+ mes.gsub!("%pwd", "#{@cwd}")
+ mes.gsub!("%cwd", "#{@cwd}")
}
end
@@ -351,21 +351,21 @@ class Shell
return command if /^\// =~ command
case path = @system_commands[command]
when String
- if exists?(path)
- return path
- else
- Shell.Fail Error::CommandNotFound, command
- end
+ if exists?(path)
+ return path
+ else
+ Shell.Fail Error::CommandNotFound, command
+ end
when false
- Shell.Fail Error::CommandNotFound, command
+ Shell.Fail Error::CommandNotFound, command
end
for p in @shell.system_path
- path = join(p, command)
- if FileTest.exist?(path)
- @system_commands[command] = path
- return path
- end
+ path = join(p, command)
+ if FileTest.exist?(path)
+ @system_commands[command] = path
+ return path
+ end
end
@system_commands[command] = false
Shell.Fail Error::CommandNotFound, command
@@ -373,21 +373,21 @@ class Shell
#
# CommandProcessor.def_system_command(command, path)
- # command: String
- # path: String
- # define 'command()' method as method.
+ # command: String
+ # path: String
+ # define 'command()' method as method.
#
def self.def_system_command(command, path = command)
begin
- eval((d = %Q[def #{command}(*opts)
- SystemCommand.new(@shell, '#{path}', *opts)
+ eval((d = %Q[def #{command}(*opts)
+ SystemCommand.new(@shell, '#{path}', *opts)
end]), nil, __FILE__, __LINE__ - 1)
rescue SyntaxError
- Shell.notify "warn: Can't define #{command} path: #{path}."
+ Shell.notify "warn: Can't define #{command} path: #{path}."
end
Shell.notify "Define #{command} path: #{path}.", Shell.debug?
Shell.notify("Definition of #{command}: ", d,
- Shell.debug.kind_of?(Integer) && Shell.debug > 1)
+ Shell.debug.kind_of?(Integer) && Shell.debug > 1)
end
def self.undef_system_command(command)
@@ -411,28 +411,28 @@ class Shell
ali = ali.id2name if ali.kind_of?(Symbol)
command = command.id2name if command.kind_of?(Symbol)
begin
- if iterator?
- @alias_map[ali.intern] = proc
+ if iterator?
+ @alias_map[ali.intern] = proc
- eval((d = %Q[def #{ali}(*opts)
+ eval((d = %Q[def #{ali}(*opts)
@shell.__send__(:#{command},
*(CommandProcessor.alias_map[:#{ali}].call *opts))
- end]), nil, __FILE__, __LINE__ - 1)
+ end]), nil, __FILE__, __LINE__ - 1)
- else
+ else
args = opts.collect{|opt| '"' + opt + '"'}.join(",")
eval((d = %Q[def #{ali}(*opts)
@shell.__send__(:#{command}, #{args}, *opts)
end]), nil, __FILE__, __LINE__ - 1)
- end
+ end
rescue SyntaxError
- Shell.notify "warn: Can't alias #{ali} command: #{command}."
- Shell.notify("Definition of #{ali}: ", d)
- raise
+ Shell.notify "warn: Can't alias #{ali} command: #{command}."
+ Shell.notify("Definition of #{ali}: ", d)
+ raise
end
Shell.notify "Define #{ali} command: #{command}.", Shell.debug?
Shell.notify("Definition of #{ali}: ", d,
- Shell.debug.kind_of?(Integer) && Shell.debug > 1)
+ Shell.debug.kind_of?(Integer) && Shell.debug > 1)
self
end
@@ -444,43 +444,43 @@ class Shell
#
# CommandProcessor.def_builtin_commands(delegation_class, command_specs)
- # delegation_class: Class or Module
- # command_specs: [[command_name, [argument,...]],...]
- # command_name: String
- # arguments: String
- # FILENAME?? -> expand_path(filename??)
- # *FILENAME?? -> filename??.collect{|f|expand_path(f)}.join(", ")
- # define command_name(argument,...) as
- # delegation_class.command_name(argument,...)
+ # delegation_class: Class or Module
+ # command_specs: [[command_name, [argument,...]],...]
+ # command_name: String
+ # arguments: String
+ # FILENAME?? -> expand_path(filename??)
+ # *FILENAME?? -> filename??.collect{|f|expand_path(f)}.join(", ")
+ # define command_name(argument,...) as
+ # delegation_class.command_name(argument,...)
#
def self.def_builtin_commands(delegation_class, command_specs)
for meth, args in command_specs
- arg_str = args.collect{|arg| arg.downcase}.join(", ")
- call_arg_str = args.collect{
- |arg|
- case arg
- when /^(FILENAME.*)$/
- format("expand_path(%s)", $1.downcase)
- when /^(\*FILENAME.*)$/
- # \*FILENAME* -> filenames.collect{|fn| expand_path(fn)}.join(", ")
- $1.downcase + '.collect{|fn| expand_path(fn)}'
- else
- arg
- end
- }.join(", ")
- d = %Q[def #{meth}(#{arg_str})
- #{delegation_class}.#{meth}(#{call_arg_str})
- end]
- Shell.notify "Define #{meth}(#{arg_str})", Shell.debug?
- Shell.notify("Definition of #{meth}: ", d,
- Shell.debug.kind_of?(Integer) && Shell.debug > 1)
- eval d
+ arg_str = args.collect{|arg| arg.downcase}.join(", ")
+ call_arg_str = args.collect{
+ |arg|
+ case arg
+ when /^(FILENAME.*)$/
+ format("expand_path(%s)", $1.downcase)
+ when /^(\*FILENAME.*)$/
+ # \*FILENAME* -> filenames.collect{|fn| expand_path(fn)}.join(", ")
+ $1.downcase + '.collect{|fn| expand_path(fn)}'
+ else
+ arg
+ end
+ }.join(", ")
+ d = %Q[def #{meth}(#{arg_str})
+ #{delegation_class}.#{meth}(#{call_arg_str})
+ end]
+ Shell.notify "Define #{meth}(#{arg_str})", Shell.debug?
+ Shell.notify("Definition of #{meth}: ", d,
+ Shell.debug.kind_of?(Integer) && Shell.debug > 1)
+ eval d
end
end
#
# CommandProcessor.install_system_commands(pre)
- # pre: String - command name prefix
+ # pre: String - command name prefix
# defines every command which belongs in default_system_path via
# CommandProcessor.command(). It doesn't define already defined
# methods twice. By default, "pre_" is prefixes to each method
@@ -490,24 +490,24 @@ class Shell
def self.install_system_commands(pre = "sys_")
defined_meth = {}
for m in Shell.methods
- defined_meth[m] = true
+ defined_meth[m] = true
end
sh = Shell.new
for path in Shell.default_system_path
- next unless sh.directory? path
- sh.cd path
- sh.foreach do
- |cn|
- if !defined_meth[pre + cn] && sh.file?(cn) && sh.executable?(cn)
- command = (pre + cn).gsub(/\W/, "_").sub(/^([0-9])/, '_\1')
- begin
- def_system_command(command, sh.expand_path(cn))
- rescue
- Shell.notify "warn: Can't define #{command} path: #{cn}"
- end
- defined_meth[command] = command
- end
- end
+ next unless sh.directory? path
+ sh.cd path
+ sh.foreach do
+ |cn|
+ if !defined_meth[pre + cn] && sh.file?(cn) && sh.executable?(cn)
+ command = (pre + cn).gsub(/\W/, "_").sub(/^([0-9])/, '_\1')
+ begin
+ def_system_command(command, sh.expand_path(cn))
+ rescue
+ Shell.notify "warn: Can't define #{command} path: #{cn}"
+ end
+ defined_meth[command] = command
+ end
+ end
end
end
@@ -520,35 +520,35 @@ class Shell
id = id.intern if id.kind_of?(String)
name = id.id2name
if Shell.method_defined?(id)
- Shell.notify "warn: override definnition of Shell##{name}."
- Shell.notify "warn: alias Shell##{name} to Shell##{name}_org.\n"
- Shell.module_eval "alias #{name}_org #{name}"
+ Shell.notify "warn: override definition of Shell##{name}."
+ Shell.notify "warn: alias Shell##{name} to Shell##{name}_org.\n"
+ Shell.module_eval "alias #{name}_org #{name}"
end
Shell.notify "method added: Shell##{name}.", Shell.debug?
Shell.module_eval(%Q[def #{name}(*args, &block)
- begin
- @command_processor.__send__(:#{name}, *args, &block)
- rescue Exception
- $@.delete_if{|s| /:in `__getobj__'$/ =~ s} #`
- $@.delete_if{|s| /^\\(eval\\):/ =~ s}
- raise
- end
+ begin
+ @command_processor.__send__(:#{name}, *args, &block)
+ rescue Exception
+ $@.delete_if{|s| /:in `__getobj__'$/ =~ s} #`
+ $@.delete_if{|s| /^\\(eval\\):/ =~ s}
+ raise
+ end
end], __FILE__, __LINE__)
if Shell::Filter.method_defined?(id)
- Shell.notify "warn: override definnition of Shell::Filter##{name}."
- Shell.notify "warn: alias Shell##{name} to Shell::Filter##{name}_org."
- Filter.module_eval "alias #{name}_org #{name}"
+ Shell.notify "warn: override definition of Shell::Filter##{name}."
+ Shell.notify "warn: alias Shell##{name} to Shell::Filter##{name}_org."
+ Filter.module_eval "alias #{name}_org #{name}"
end
Shell.notify "method added: Shell::Filter##{name}.", Shell.debug?
Filter.module_eval(%Q[def #{name}(*args, &block)
- begin
- self | @shell.__send__(:#{name}, *args, &block)
- rescue Exception
- $@.delete_if{|s| /:in `__getobj__'$/ =~ s} #`
- $@.delete_if{|s| /^\\(eval\\):/ =~ s}
- raise
- end
+ begin
+ self | @shell.__send__(:#{name}, *args, &block)
+ rescue Exception
+ $@.delete_if{|s| /:in `__getobj__'$/ =~ s} #`
+ $@.delete_if{|s| /^\\(eval\\):/ =~ s}
+ raise
+ end
end], __FILE__, __LINE__)
end
@@ -557,35 +557,35 @@ class Shell
#
def self.install_builtin_commands
# method related File.
- # (exclude open/foreach/unlink)
+ # (exclude open/foreach/unlink)
normal_delegation_file_methods = [
- ["atime", ["FILENAME"]],
- ["basename", ["fn", "*opts"]],
- ["chmod", ["mode", "*FILENAMES"]],
- ["chown", ["owner", "group", "*FILENAME"]],
- ["ctime", ["FILENAMES"]],
- ["delete", ["*FILENAMES"]],
- ["dirname", ["FILENAME"]],
- ["ftype", ["FILENAME"]],
- ["join", ["*items"]],
- ["link", ["FILENAME_O", "FILENAME_N"]],
- ["lstat", ["FILENAME"]],
- ["mtime", ["FILENAME"]],
- ["readlink", ["FILENAME"]],
- ["rename", ["FILENAME_FROM", "FILENAME_TO"]],
- # ["size", ["FILENAME"]],
- ["split", ["pathname"]],
- ["stat", ["FILENAME"]],
- ["symlink", ["FILENAME_O", "FILENAME_N"]],
- ["truncate", ["FILENAME", "length"]],
- ["utime", ["atime", "mtime", "*FILENAMES"]]]
+ ["atime", ["FILENAME"]],
+ ["basename", ["fn", "*opts"]],
+ ["chmod", ["mode", "*FILENAMES"]],
+ ["chown", ["owner", "group", "*FILENAME"]],
+ ["ctime", ["FILENAMES"]],
+ ["delete", ["*FILENAMES"]],
+ ["dirname", ["FILENAME"]],
+ ["ftype", ["FILENAME"]],
+ ["join", ["*items"]],
+ ["link", ["FILENAME_O", "FILENAME_N"]],
+ ["lstat", ["FILENAME"]],
+ ["mtime", ["FILENAME"]],
+ ["readlink", ["FILENAME"]],
+ ["rename", ["FILENAME_FROM", "FILENAME_TO"]],
+ # ["size", ["FILENAME"]],
+ ["split", ["pathname"]],
+ ["stat", ["FILENAME"]],
+ ["symlink", ["FILENAME_O", "FILENAME_N"]],
+ ["truncate", ["FILENAME", "length"]],
+ ["utime", ["atime", "mtime", "*FILENAMES"]]]
def_builtin_commands(File, normal_delegation_file_methods)
alias_method :rm, :delete
# method related FileTest
def_builtin_commands(FileTest,
- FileTest.singleton_methods(false).collect{|m| [m, ["FILENAME"]]})
+ FileTest.singleton_methods(false).collect{|m| [m, ["FILENAME"]]})
end
diff --git a/lib/shell/error.rb b/lib/shell/error.rb
index dbb788a6fc..2701338b5a 100644
--- a/lib/shell/error.rb
+++ b/lib/shell/error.rb
@@ -1,8 +1,8 @@
#
# shell/error.rb -
-# $Release Version: 0.7 $
-# $Revision$
-# by Keiju ISHITSUKA(keiju@ruby-lang.org)
+# $Release Version: 0.7 $
+# $Revision$
+# by Keiju ISHITSUKA(keiju@ruby-lang.org)
#
# --
#
diff --git a/lib/shell/filter.rb b/lib/shell/filter.rb
index 3f88d0f5d2..df41b420ea 100644
--- a/lib/shell/filter.rb
+++ b/lib/shell/filter.rb
@@ -1,8 +1,8 @@
#
# shell/filter.rb -
-# $Release Version: 0.7 $
-# $Revision$
-# by Keiju ISHITSUKA(keiju@ruby-lang.org)
+# $Release Version: 0.7 $
+# $Revision$
+# by Keiju ISHITSUKA(keiju@ruby-lang.org)
#
# --
#
@@ -19,8 +19,8 @@ class Shell
include Enumerable
def initialize(sh)
- @shell = sh # parent shell
- @input = nil # input filter
+ @shell = sh # parent shell
+ @input = nil # input filter
end
attr_reader :input
@@ -32,52 +32,52 @@ class Shell
def each(rs = nil)
rs = @shell.record_separator unless rs
if @input
- @input.each(rs){|l| yield l}
+ @input.each(rs){|l| yield l}
end
end
def < (src)
case src
when String
- cat = Cat.new(@shell, src)
- cat | self
+ cat = Cat.new(@shell, src)
+ cat | self
when IO
- self.input = src
- self
+ self.input = src
+ self
else
- Shell.Fail Error::CantApplyMethod, "<", to.class
+ Shell.Fail Error::CantApplyMethod, "<", to.class
end
end
def > (to)
case to
when String
- dst = @shell.open(to, "w")
- begin
- each(){|l| dst << l}
- ensure
- dst.close
- end
+ dst = @shell.open(to, "w")
+ begin
+ each(){|l| dst << l}
+ ensure
+ dst.close
+ end
when IO
- each(){|l| to << l}
+ each(){|l| to << l}
else
- Shell.Fail Error::CantApplyMethod, ">", to.class
+ Shell.Fail Error::CantApplyMethod, ">", to.class
end
self
end
def >> (to)
begin
- Shell.cd(@shell.pwd).append(to, self)
+ Shell.cd(@shell.pwd).append(to, self)
rescue CantApplyMethod
- Shell.Fail Error::CantApplyMethod, ">>", to.class
+ Shell.Fail Error::CantApplyMethod, ">>", to.class
end
end
def | (filter)
filter.input = self
if active?
- @shell.process_controller.start_job filter
+ @shell.process_controller.start_job filter
end
filter
end
@@ -100,9 +100,9 @@ class Shell
def inspect
if @shell.debug.kind_of?(Integer) && @shell.debug > 2
- super
+ super
else
- to_s
+ to_s
end
end
end
diff --git a/lib/shell/process-controller.rb b/lib/shell/process-controller.rb
index 829ff7900a..30f2229d39 100644
--- a/lib/shell/process-controller.rb
+++ b/lib/shell/process-controller.rb
@@ -1,8 +1,8 @@
#
# shell/process-controller.rb -
-# $Release Version: 0.7 $
-# $Revision$
-# by Keiju ISHITSUKA(keiju@ruby-lang.org)
+# $Release Version: 0.7 $
+# $Revision$
+# by Keiju ISHITSUKA(keiju@ruby-lang.org)
#
# --
#
@@ -23,64 +23,64 @@ class Shell
@BlockOutputMonitor = Mutex.new
@BlockOutputCV = ConditionVariable.new
- class<<self
+ class << self
extend Forwardable
def_delegator("@ProcessControllersMonitor",
- "synchronize", "process_controllers_exclusive")
+ "synchronize", "process_controllers_exclusive")
def active_process_controllers
- process_controllers_exclusive do
- @ProcessControllers.dup
- end
+ process_controllers_exclusive do
+ @ProcessControllers.dup
+ end
end
def activate(pc)
- process_controllers_exclusive do
- @ProcessControllers[pc] ||= 0
- @ProcessControllers[pc] += 1
- end
+ process_controllers_exclusive do
+ @ProcessControllers[pc] ||= 0
+ @ProcessControllers[pc] += 1
+ end
end
def inactivate(pc)
- process_controllers_exclusive do
- if @ProcessControllers[pc]
- if (@ProcessControllers[pc] -= 1) == 0
- @ProcessControllers.delete(pc)
- @ProcessControllersCV.signal
- end
- end
- end
+ process_controllers_exclusive do
+ if @ProcessControllers[pc]
+ if (@ProcessControllers[pc] -= 1) == 0
+ @ProcessControllers.delete(pc)
+ @ProcessControllersCV.signal
+ end
+ end
+ end
end
def each_active_object
- process_controllers_exclusive do
- for ref in @ProcessControllers.keys
- yield ref
- end
- end
+ process_controllers_exclusive do
+ for ref in @ProcessControllers.keys
+ yield ref
+ end
+ end
end
def block_output_synchronize(&b)
- @BlockOutputMonitor.synchronize(&b)
+ @BlockOutputMonitor.synchronize(&b)
end
def wait_to_finish_all_process_controllers
- process_controllers_exclusive do
- while !@ProcessControllers.empty?
- Shell::notify("Process finishing, but active shell exists",
- "You can use Shell#transact or Shell#check_point for more safe execution.")
- if Shell.debug?
- for pc in @ProcessControllers.keys
- Shell::notify(" Not finished jobs in "+pc.shell.to_s)
- for com in pc.jobs
- com.notify(" Jobs: %id")
- end
- end
- end
- @ProcessControllersCV.wait(@ProcessControllersMonitor)
- end
- end
+ process_controllers_exclusive do
+ while !@ProcessControllers.empty?
+ Shell::notify("Process finishing, but active shell exists",
+ "You can use Shell#transact or Shell#check_point for more safe execution.")
+ if Shell.debug?
+ for pc in @ProcessControllers.keys
+ Shell::notify(" Not finished jobs in "+pc.shell.to_s)
+ for com in pc.jobs
+ com.notify(" Jobs: %id")
+ end
+ end
+ end
+ @ProcessControllersCV.wait(@ProcessControllersMonitor)
+ end
+ end
end
end
@@ -105,8 +105,8 @@ class Shell
def jobs
jobs = []
@jobs_sync.synchronize(:SH) do
- jobs.concat @waiting_jobs
- jobs.concat @active_jobs
+ jobs.concat @waiting_jobs
+ jobs.concat @active_jobs
end
jobs
end
@@ -121,115 +121,115 @@ class Shell
def jobs_exist?
@jobs_sync.synchronize(:SH) do
- @active_jobs.empty? or @waiting_jobs.empty?
+ @active_jobs.empty? or @waiting_jobs.empty?
end
end
def active_jobs_exist?
@jobs_sync.synchronize(:SH) do
- @active_jobs.empty?
+ @active_jobs.empty?
end
end
def waiting_jobs_exist?
@jobs_sync.synchronize(:SH) do
- @waiting_jobs.empty?
+ @waiting_jobs.empty?
end
end
# schedule a command
def add_schedule(command)
@jobs_sync.synchronize(:EX) do
- ProcessController.activate(self)
- if @active_jobs.empty?
- start_job command
- else
- @waiting_jobs.push(command)
- end
+ ProcessController.activate(self)
+ if @active_jobs.empty?
+ start_job command
+ else
+ @waiting_jobs.push(command)
+ end
end
end
# start a job
def start_job(command = nil)
@jobs_sync.synchronize(:EX) do
- if command
- return if command.active?
- @waiting_jobs.delete command
- else
- command = @waiting_jobs.shift
-# command.notify "job(%id) pre-start.", @shell.debug?
-
- return unless command
- end
- @active_jobs.push command
- command.start
-# command.notify "job(%id) post-start.", @shell.debug?
-
- # start all jobs that input from the job
- for job in @waiting_jobs.dup
- start_job(job) if job.input == command
- end
-# command.notify "job(%id) post2-start.", @shell.debug?
+ if command
+ return if command.active?
+ @waiting_jobs.delete command
+ else
+ command = @waiting_jobs.shift
+# command.notify "job(%id) pre-start.", @shell.debug?
+
+ return unless command
+ end
+ @active_jobs.push command
+ command.start
+# command.notify "job(%id) post-start.", @shell.debug?
+
+ # start all jobs that input from the job
+ for job in @waiting_jobs.dup
+ start_job(job) if job.input == command
+ end
+# command.notify "job(%id) post2-start.", @shell.debug?
end
end
def waiting_job?(job)
@jobs_sync.synchronize(:SH) do
- @waiting_jobs.include?(job)
+ @waiting_jobs.include?(job)
end
end
def active_job?(job)
@jobs_sync.synchronize(:SH) do
- @active_jobs.include?(job)
+ @active_jobs.include?(job)
end
end
# terminate a job
def terminate_job(command)
@jobs_sync.synchronize(:EX) do
- @active_jobs.delete command
- ProcessController.inactivate(self)
- if @active_jobs.empty?
- command.notify("start_jon in ierminate_jon(%id)", Shell::debug?)
- start_job
- end
+ @active_jobs.delete command
+ ProcessController.inactivate(self)
+ if @active_jobs.empty?
+ command.notify("start_job in terminate_job(%id)", Shell::debug?)
+ start_job
+ end
end
end
# kill a job
def kill_job(sig, command)
@jobs_sync.synchronize(:EX) do
- if @waiting_jobs.delete command
- ProcessController.inactivate(self)
- return
- elsif @active_jobs.include?(command)
- begin
- r = command.kill(sig)
- ProcessController.inactivate(self)
- rescue
- print "Shell: Warn: $!\n" if @shell.verbose?
- return nil
- end
- @active_jobs.delete command
- r
- end
+ if @waiting_jobs.delete command
+ ProcessController.inactivate(self)
+ return
+ elsif @active_jobs.include?(command)
+ begin
+ r = command.kill(sig)
+ ProcessController.inactivate(self)
+ rescue
+ print "Shell: Warn: $!\n" if @shell.verbose?
+ return nil
+ end
+ @active_jobs.delete command
+ r
+ end
end
end
# wait for all jobs to terminate
def wait_all_jobs_execution
@job_monitor.synchronize do
- begin
- while !jobs.empty?
- @job_condition.wait(@job_monitor)
- for job in jobs
- job.notify("waiting job(%id)", Shell::debug?)
- end
- end
- ensure
- redo unless jobs.empty?
- end
+ begin
+ while !jobs.empty?
+ @job_condition.wait(@job_monitor)
+ for job in jobs
+ job.notify("waiting job(%id)", Shell::debug?)
+ end
+ end
+ ensure
+ redo unless jobs.empty?
+ end
end
end
@@ -244,73 +244,73 @@ class Shell
pid_cv = ConditionVariable.new
Thread.start do
- ProcessController.block_output_synchronize do
- STDOUT.flush
- ProcessController.each_active_object do |pc|
- for jobs in pc.active_jobs
- jobs.flush
- end
- end
-
- pid = fork {
- Thread.list.each do |th|
-# th.kill unless [Thread.main, Thread.current].include?(th)
- th.kill unless Thread.current == th
- end
-
- STDIN.reopen(pipe_peer_in)
- STDOUT.reopen(pipe_peer_out)
-
- ObjectSpace.each_object(IO) do |io|
- if ![STDIN, STDOUT, STDERR].include?(io)
- io.close unless io.closed?
- end
- end
-
- yield
- }
- end
- pid_cv.signal
-
- pipe_peer_in.close
- pipe_peer_out.close
- command.notify "job(%name:##{pid}) start", @shell.debug?
-
- begin
- _pid = nil
- command.notify("job(%id) start to waiting finish.", @shell.debug?)
- _pid = Process.waitpid(pid, nil)
- rescue Errno::ECHILD
- command.notify "warn: job(%id) was done already waitipd."
- _pid = true
- # rescue
- # STDERR.puts $!
- ensure
- command.notify("Job(%id): Wait to finish when Process finished.", @shell.debug?)
- # when the process ends, wait until the command termintes
- if USING_AT_EXIT_WHEN_PROCESS_EXIT or _pid
- else
- command.notify("notice: Process finishing...",
- "wait for Job[%id] to finish.",
- "You can use Shell#transact or Shell#check_point for more safe execution.")
- redo
- end
-
-# command.notify "job(%id) pre-pre-finish.", @shell.debug?
- @job_monitor.synchronize do
-# command.notify "job(%id) pre-finish.", @shell.debug?
- terminate_job(command)
-# command.notify "job(%id) pre-finish2.", @shell.debug?
- @job_condition.signal
- command.notify "job(%id) finish.", @shell.debug?
- end
- end
+ ProcessController.block_output_synchronize do
+ STDOUT.flush
+ ProcessController.each_active_object do |pc|
+ for jobs in pc.active_jobs
+ jobs.flush
+ end
+ end
+
+ pid = fork {
+ Thread.list.each do |th|
+# th.kill unless [Thread.main, Thread.current].include?(th)
+ th.kill unless Thread.current == th
+ end
+
+ STDIN.reopen(pipe_peer_in)
+ STDOUT.reopen(pipe_peer_out)
+
+ ObjectSpace.each_object(IO) do |io|
+ if ![STDIN, STDOUT, STDERR].include?(io)
+ io.close unless io.closed?
+ end
+ end
+
+ yield
+ }
+ end
+ pid_cv.signal
+
+ pipe_peer_in.close
+ pipe_peer_out.close
+ command.notify "job(%name:##{pid}) start", @shell.debug?
+
+ begin
+ _pid = nil
+ command.notify("job(%id) start to waiting finish.", @shell.debug?)
+ _pid = Process.waitpid(pid, nil)
+ rescue Errno::ECHILD
+ command.notify "warn: job(%id) was done already waitpid."
+ _pid = true
+ # rescue
+ # STDERR.puts $!
+ ensure
+ command.notify("Job(%id): Wait to finish when Process finished.", @shell.debug?)
+ # when the process ends, wait until the command terminates
+ if USING_AT_EXIT_WHEN_PROCESS_EXIT or _pid
+ else
+ command.notify("notice: Process finishing...",
+ "wait for Job[%id] to finish.",
+ "You can use Shell#transact or Shell#check_point for more safe execution.")
+ redo
+ end
+
+# command.notify "job(%id) pre-pre-finish.", @shell.debug?
+ @job_monitor.synchronize do
+# command.notify "job(%id) pre-finish.", @shell.debug?
+ terminate_job(command)
+# command.notify "job(%id) pre-finish2.", @shell.debug?
+ @job_condition.signal
+ command.notify "job(%id) finish.", @shell.debug?
+ end
+ end
end
pid_mutex.synchronize do
- while !pid
- pid_cv.wait(pid_mutex)
- end
+ while !pid
+ pid_cv.wait(pid_mutex)
+ end
end
return pid, pipe_me_in, pipe_me_out
diff --git a/lib/shell/system-command.rb b/lib/shell/system-command.rb
index af9b0a8e37..50d994bb20 100644
--- a/lib/shell/system-command.rb
+++ b/lib/shell/system-command.rb
@@ -1,8 +1,8 @@
#
# shell/system-command.rb -
-# $Release Version: 0.7 $
-# $Revision$
-# by Keiju ISHITSUKA(keiju@ruby-lang.org)
+# $Release Version: 0.7 $
+# $Revision$
+# by Keiju ISHITSUKA(keiju@ruby-lang.org)
#
# --
#
@@ -15,7 +15,7 @@ class Shell
class SystemCommand < Filter
def initialize(sh, command, *opts)
if t = opts.find{|opt| !opt.kind_of?(String) && opt.class}
- Shell.Fail Error::TypeError, t.class, "String"
+ Shell.Fail Error::TypeError, t.class, "String"
end
super(sh)
@command = command
@@ -41,7 +41,7 @@ class Shell
def input=(inp)
super
if active?
- start_export
+ start_export
end
end
@@ -49,12 +49,12 @@ class Shell
notify([@command, *@opts].join(" "))
@pid, @pipe_in, @pipe_out = @shell.process_controller.sfork(self) {
- Dir.chdir @shell.pwd
- $0 = @command
- exec(@command, *@opts)
+ Dir.chdir @shell.pwd
+ $0 = @command
+ exec(@command, *@opts)
}
if @input
- start_export
+ start_export
end
start_import
end
@@ -65,18 +65,18 @@ class Shell
def terminate
begin
- @pipe_in.close
+ @pipe_in.close
rescue IOError
end
begin
- @pipe_out.close
+ @pipe_out.close
rescue IOError
end
end
def kill(sig)
if @pid
- Process.kill(sig, @pid)
+ Process.kill(sig, @pid)
end
end
@@ -84,75 +84,75 @@ class Shell
notify "Job(%id) start imp-pipe.", @shell.debug?
rs = @shell.record_separator unless rs
_eop = true
- th = Thread.start {
- begin
- while l = @pipe_in.gets
- @input_queue.push l
- end
- _eop = false
- rescue Errno::EPIPE
- _eop = false
- ensure
- if !ProcessController::USING_AT_EXIT_WHEN_PROCESS_EXIT and _eop
- notify("warn: Process finishing...",
- "wait for Job[%id] to finish pipe importing.",
- "You can use Shell#transact or Shell#check_point for more safe execution.")
- redo
- end
- notify "job(%id}) close imp-pipe.", @shell.debug?
- @input_queue.push :EOF
- @pipe_in.close
- end
+ Thread.start {
+ begin
+ while l = @pipe_in.gets
+ @input_queue.push l
+ end
+ _eop = false
+ rescue Errno::EPIPE
+ _eop = false
+ ensure
+ if !ProcessController::USING_AT_EXIT_WHEN_PROCESS_EXIT and _eop
+ notify("warn: Process finishing...",
+ "wait for Job[%id] to finish pipe importing.",
+ "You can use Shell#transact or Shell#check_point for more safe execution.")
+ redo
+ end
+ notify "job(%id}) close imp-pipe.", @shell.debug?
+ @input_queue.push :EOF
+ @pipe_in.close
+ end
}
end
def start_export
notify "job(%id) start exp-pipe.", @shell.debug?
_eop = true
- th = Thread.start{
- begin
- @input.each do |l|
- ProcessController::block_output_synchronize do
- @pipe_out.print l
- end
- end
- _eop = false
- rescue Errno::EPIPE, Errno::EIO
- _eop = false
- ensure
- if !ProcessController::USING_AT_EXIT_WHEN_PROCESS_EXIT and _eop
- notify("shell: warn: Process finishing...",
- "wait for Job(%id) to finish pipe exporting.",
- "You can use Shell#transact or Shell#check_point for more safe execution.")
- redo
- end
- notify "job(%id) close exp-pipe.", @shell.debug?
- @pipe_out.close
- end
+ Thread.start{
+ begin
+ @input.each do |l|
+ ProcessController::block_output_synchronize do
+ @pipe_out.print l
+ end
+ end
+ _eop = false
+ rescue Errno::EPIPE, Errno::EIO
+ _eop = false
+ ensure
+ if !ProcessController::USING_AT_EXIT_WHEN_PROCESS_EXIT and _eop
+ notify("shell: warn: Process finishing...",
+ "wait for Job(%id) to finish pipe exporting.",
+ "You can use Shell#transact or Shell#check_point for more safe execution.")
+ redo
+ end
+ notify "job(%id) close exp-pipe.", @shell.debug?
+ @pipe_out.close
+ end
}
end
alias super_each each
def each(rs = nil)
while (l = @input_queue.pop) != :EOF
- yield l
+ yield l
end
end
# ex)
# if you wish to output:
- # "shell: job(#{@command}:#{@pid}) close pipe-out."
- # then
- # mes: "job(%id) close pipe-out."
+ # "shell: job(#{@command}:#{@pid}) close pipe-out."
+ # then
+ # mes: "job(%id) close pipe-out."
# yorn: Boolean(@shell.debug? or @shell.verbose?)
def notify(*opts, &block)
@shell.notify(*opts) do |mes|
- yield mes if iterator?
+ yield mes if iterator?
- mes.gsub!("%id", "#{@command}:##{@pid}")
- mes.gsub!("%name", "#{@command}")
- mes.gsub!("%pid", "#{@pid}")
- mes
+ mes.gsub!("%id", "#{@command}:##{@pid}")
+ mes.gsub!("%name", "#{@command}")
+ mes.gsub!("%pid", "#{@pid}")
+ mes
end
end
end
diff --git a/lib/shell/version.rb b/lib/shell/version.rb
index 6e4c170351..cbdb0e5e96 100644
--- a/lib/shell/version.rb
+++ b/lib/shell/version.rb
@@ -1,8 +1,8 @@
#
# version.rb - shell version definition file
-# $Release Version: 0.7$
-# $Revision$
-# by Keiju ISHITSUKA(keiju@ruby-lang.org)
+# $Release Version: 0.7$
+# $Revision$
+# by Keiju ISHITSUKA(keiju@ruby-lang.org)
#
# --
#
diff --git a/lib/shellwords.rb b/lib/shellwords.rb
index f1300612bb..abc4e80ad4 100644
--- a/lib/shellwords.rb
+++ b/lib/shellwords.rb
@@ -17,25 +17,23 @@
# - Akinori MUSHA <knu@iDaemons.org> (current maintainer)
#
module Shellwords
- #
# Splits a string into an array of tokens in the same way the UNIX
# Bourne shell does.
#
# argv = Shellwords.split('here are "two words"')
# argv #=> ["here", "are", "two words"]
#
- # +String#shellsplit+ is a shorthand for this function.
+ # String#shellsplit is a shorthand for this function.
#
# argv = 'here are "two words"'.shellsplit
# argv #=> ["here", "are", "two words"]
- #
def shellsplit(line)
words = []
field = ''
line.scan(/\G\s*(?>([^\s\\\'\"]+)|'([^\']*)'|"((?:[^\"\\]|\\.)*)"|(\\.?)|(\S))(\s|\z)?/m) do
|word, sq, dq, esc, garbage, sep|
raise ArgumentError, "Unmatched double quote: #{line.inspect}" if garbage
- field << (word || sq || (dq || esc).gsub(/\\(?=.)/, ''))
+ field << (word || sq || (dq || esc).gsub(/\\(.)/, '\\1'))
if sep
words << field
field = ''
@@ -52,7 +50,6 @@ module Shellwords
alias split shellsplit
end
- #
# Escapes a string so that it can be safely used in a Bourne shell
# command line.
#
@@ -63,21 +60,26 @@ module Shellwords
# # ...
# }
#
- # +String#shellescape+ is a shorthand for this function.
+ # String#shellescape is a shorthand for this function.
#
# open("| grep #{pattern.shellescape} file") { |pipe|
# # ...
# }
#
+ # It is caller's responsibility to encode the string in the right
+ # encoding for the shell environment where this string is used.
+ # Multibyte characters are treated as multibyte characters, not
+ # bytes.
def shellescape(str)
# An empty argument will be skipped, so return empty quotes.
return "''" if str.empty?
str = str.dup
- # Process as a single byte sequence because not all shell
- # implementations are multibyte aware.
- str.gsub!(/([^A-Za-z0-9_\-.,:\/@\n])/n, "\\\\\\1")
+ # Treat multibyte characters as is. It is caller's responsibility
+ # to encode the string in the right encoding for the shell
+ # environment.
+ str.gsub!(/([^A-Za-z0-9_\-.,:\/@\n])/, "\\\\\\1")
# A LF cannot be escaped with a backslash because a backslash + LF
# combo is regarded as line continuation and simply ignored.
@@ -92,7 +94,6 @@ module Shellwords
alias escape shellescape
end
- #
# Builds a command line string from an argument list +array+ joining
# all elements escaped for Bourne shell and separated by a space.
#
@@ -100,7 +101,7 @@ module Shellwords
# # ...
# }
#
- # +Array#shelljoin+ is a shorthand for this function.
+ # Array#shelljoin is a shorthand for this function.
#
# open('|' + ['grep', pattern, *files].shelljoin) { |pipe|
# # ...
@@ -118,38 +119,32 @@ module Shellwords
end
class String
- #
# call-seq:
# str.shellsplit => array
#
# Splits +str+ into an array of tokens in the same way the UNIX
- # Bourne shell does. See +Shellwords::shellsplit+ for details.
- #
+ # Bourne shell does. See Shellwords::shellsplit for details.
def shellsplit
Shellwords.split(self)
end
- #
# call-seq:
# str.shellescape => string
#
# Escapes +str+ so that it can be safely used in a Bourne shell
- # command line. See +Shellwords::shellescape+ for details.
- #
+ # command line. See Shellwords::shellescape for details.
def shellescape
Shellwords.escape(self)
end
end
class Array
- #
# call-seq:
# array.shelljoin => string
#
# Builds a command line string from an argument list +array+ joining
# all elements escaped for Bourne shell and separated by a space.
- # See +Shellwords::shelljoin+ for details.
- #
+ # See Shellwords::shelljoin for details.
def shelljoin
Shellwords.join(self)
end
diff --git a/lib/singleton.rb b/lib/singleton.rb
index 3c81b2d3cb..be1f7ff6ca 100644
--- a/lib/singleton.rb
+++ b/lib/singleton.rb
@@ -1,108 +1,140 @@
+require 'thread'
+
# The Singleton module implements the Singleton pattern.
#
-# Usage:
+# == Usage
+#
+# To use Singleton, include the module in your class.
+#
# class Klass
# include Singleton
# # ...
# end
#
-# * this ensures that only one instance of Klass lets call it
-# ``the instance'' can be created.
+# This ensures that only one instance of Klass can be created.
#
# a,b = Klass.instance, Klass.instance
-# a == b # => true
-# Klass.new # NoMethodError - new is private ...
#
-# * ``The instance'' is created at instantiation time, in other
-# words the first call of Klass.instance(), thus
+# a == b
+# # => true
+#
+# Klass.new
+# # => NoMethodError - new is private ...
+#
+# The instance is created at upon the first call of Klass.instance().
#
# class OtherKlass
# include Singleton
# # ...
# end
-# ObjectSpace.each_object(OtherKlass){} # => 0.
#
-# * This behavior is preserved under inheritance and cloning.
+# ObjectSpace.each_object(OtherKlass){}
+# # => 0
#
+# OtherKlass.instance
+# ObjectSpace.each_object(OtherKlass){}
+# # => 1
#
#
-# This is achieved by marking
-# * Klass.new and Klass.allocate - as private
+# This behavior is preserved under inheritance and cloning.
#
-# Providing (or modifying) the class methods
-# * Klass.inherited(sub_klass) and Klass.clone() -
-# to ensure that the Singleton pattern is properly
-# inherited and cloned.
+# == Implementation
#
-# * Klass.instance() - returning ``the instance''. After a
-# successful self modifying (normally the first) call the
-# method body is a simple:
+# This above is achieved by:
#
-# def Klass.instance()
-# return @singleton__instance__
-# end
+# * Making Klass.new and Klass.allocate private.
#
-# * Klass._load(str) - calling Klass.instance()
+# * Overriding Klass.inherited(sub_klass) and Klass.clone() to ensure that the
+# Singleton properties are kept when inherited and cloned.
#
-# * Klass._instantiate?() - returning ``the instance'' or
-# nil. This hook method puts a second (or nth) thread calling
-# Klass.instance() on a waiting loop. The return value
-# signifies the successful completion or premature termination
-# of the first, or more generally, current "instantiation thread".
+# * Providing the Klass.instance() method that returns the same object each
+# time it is called.
#
+# * Overriding Klass._load(str) to call Klass.instance().
#
-# The instance method of Singleton are
-# * clone and dup - raising TypeErrors to prevent cloning or duping
+# * Overriding Klass#clone and Klass#dup to raise TypeErrors to prevent
+# cloning or duping.
+#
+# == Singleton and Marshal
+#
+# By default Singleton's #_dump(depth) returns the empty string. Marshalling by
+# default will strip state information, e.g. instance variables and taint
+# state, from the instance. Classes using Singleton can provide custom
+# _load(str) and _dump(depth) methods to retain some of the previous state of
+# the instance.
+#
+# require 'singleton'
+#
+# class Example
+# include Singleton
+# attr_accessor :keep, :strip
+# def _dump(depth)
+# # this strips the @strip information from the instance
+# Marshal.dump(@keep, depth)
+# end
+#
+# def self._load(str)
+# instance.keep = Marshal.load(str)
+# instance
+# end
+# end
+#
+# a = Example.instance
+# a.keep = "keep this"
+# a.strip = "get rid of this"
+# a.taint
+#
+# stored_state = Marshal.dump(a)
+#
+# a.keep = nil
+# a.strip = nil
+# b = Marshal.load(stored_state)
+# p a == b # => true
+# p a.keep # => "keep this"
+# p a.strip # => nil
#
-# * _dump(depth) - returning the empty string. Marshalling strips
-# by default all state information, e.g. instance variables and
-# taint state, from ``the instance''. Providing custom _load(str)
-# and _dump(depth) hooks allows the (partially) resurrections of
-# a previous state of ``the instance''.
-
-require 'thread'
-
module Singleton
- # disable build-in copying methods
+ # Raises a TypeError to prevent cloning.
def clone
raise TypeError, "can't clone instance of singleton #{self.class}"
end
+
+ # Raises a TypeError to prevent duping.
def dup
raise TypeError, "can't dup instance of singleton #{self.class}"
end
- # default marshalling strategy
+ # By default, do not retain any state when marshalling.
def _dump(depth = -1)
''
end
- module SingletonClassMethods
- # properly clone the Singleton pattern - did you know
- # that duping doesn't copy class methods?
- def clone
+ module SingletonClassMethods # :nodoc:
+
+ def clone # :nodoc:
Singleton.__init__(super)
end
+ # By default calls instance(). Override to retain singleton state.
def _load(str)
instance
end
private
- # ensure that the Singleton pattern is properly inherited
def inherited(sub_klass)
super
Singleton.__init__(sub_klass)
end
end
- class << Singleton
- def __init__(klass)
+ class << Singleton # :nodoc:
+ def __init__(klass) # :nodoc:
klass.instance_eval {
@singleton__instance__ = nil
@singleton__mutex__ = Mutex.new
}
- def klass.instance
+ def klass.instance # :nodoc:
return @singleton__instance__ if @singleton__instance__
@singleton__mutex__.synchronize {
return @singleton__instance__ if @singleton__instance__
@@ -115,7 +147,7 @@ module Singleton
private
- # extending an object with Singleton is a bad idea
+ # extending an object with Singleton is a bad idea
undef_method :extend_object
def append_features(mod)
@@ -128,186 +160,13 @@ module Singleton
def included(klass)
super
- klass.private_class_method :new, :allocate
+ klass.private_class_method :new, :allocate
klass.extend SingletonClassMethods
Singleton.__init__(klass)
end
end
-end
-
-
-if __FILE__ == $0
-
-def num_of_instances(klass)
- "#{ObjectSpace.each_object(klass){}} #{klass} instance(s)"
-end
-
-# The basic and most important example.
-
-class SomeSingletonClass
- include Singleton
-end
-puts "There are #{num_of_instances(SomeSingletonClass)}"
-
-a = SomeSingletonClass.instance
-b = SomeSingletonClass.instance # a and b are same object
-puts "basic test is #{a == b}"
-
-begin
- SomeSingletonClass.new
-rescue NoMethodError => mes
- puts mes
-end
-
-
-
-puts "\nThreaded example with exception and customized #_instantiate?() hook"; p
-Thread.abort_on_exception = false
-
-class Ups < SomeSingletonClass
- def initialize
- self.class.__sleep
- puts "initialize called by thread ##{Thread.current[:i]}"
- end
-end
-
-class << Ups
- def _instantiate?
- @enter.push Thread.current[:i]
- while false.equal?(@singleton__instance__)
- @singleton__mutex__.unlock
- sleep 0.08
- @singleton__mutex__.lock
- end
- @leave.push Thread.current[:i]
- @singleton__instance__
- end
-
- def __sleep
- sleep(rand(0.08))
- end
-
- def new
- begin
- __sleep
- raise "boom - thread ##{Thread.current[:i]} failed to create instance"
- ensure
- # simple flip-flop
- class << self
- remove_method :new
- end
- end
- end
-
- def instantiate_all
- @enter = []
- @leave = []
- 1.upto(9) {|i|
- Thread.new {
- begin
- Thread.current[:i] = i
- __sleep
- instance
- rescue RuntimeError => mes
- puts mes
- end
- }
- }
- puts "Before there were #{num_of_instances(self)}"
- sleep 3
- puts "Now there is #{num_of_instances(self)}"
- puts "#{@enter.join '; '} was the order of threads entering the waiting loop"
- puts "#{@leave.join '; '} was the order of threads leaving the waiting loop"
- end
-end
-
-
-Ups.instantiate_all
-# results in message like
-# Before there were 0 Ups instance(s)
-# boom - thread #6 failed to create instance
-# initialize called by thread #3
-# Now there is 1 Ups instance(s)
-# 3; 2; 1; 8; 4; 7; 5 was the order of threads entering the waiting loop
-# 3; 2; 1; 7; 4; 8; 5 was the order of threads leaving the waiting loop
-
-
-puts "\nLets see if class level cloning really works"
-Yup = Ups.clone
-def Yup.new
- begin
- __sleep
- raise "boom - thread ##{Thread.current[:i]} failed to create instance"
- ensure
- # simple flip-flop
- class << self
- remove_method :new
- end
- end
-end
-Yup.instantiate_all
-
-
-puts "\n\n","Customized marshalling"
-class A
- include Singleton
- attr_accessor :persist, :die
- def _dump(depth)
- # this strips the @die information from the instance
- Marshal.dump(@persist,depth)
- end
-end
-
-def A._load(str)
- instance.persist = Marshal.load(str)
- instance
-end
-
-a = A.instance
-a.persist = ["persist"]
-a.die = "die"
-a.taint
-
-stored_state = Marshal.dump(a)
-# change state
-a.persist = nil
-a.die = nil
-b = Marshal.load(stored_state)
-p a == b # => true
-p a.persist # => ["persist"]
-p a.die # => nil
-
-
-puts "\n\nSingleton with overridden default #inherited() hook"
-class Up
-end
-def Up.inherited(sub_klass)
- puts "#{sub_klass} subclasses #{self}"
-end
-
-
-class Middle < Up
- include Singleton
-end
-
-class Down < Middle; end
-
-puts "and basic \"Down test\" is #{Down.instance == Down.instance}\n
-Various exceptions"
-
-begin
- module AModule
- include Singleton
- end
-rescue TypeError => mes
- puts mes #=> Inclusion of the OO-Singleton module in module AModule
-end
-
-begin
- 'aString'.extend Singleton
-rescue NoMethodError => mes
- puts mes #=> undefined method `extend_object' for Singleton:Module
-end
-
+ ##
+ # :singleton-method: _load
+ # By default calls instance(). Override to retain singleton state.
end
diff --git a/lib/sync.rb b/lib/sync.rb
index 36c4c08d45..bae05a4a99 100644
--- a/lib/sync.rb
+++ b/lib/sync.rb
@@ -1,8 +1,8 @@
#
# sync.rb - 2 phase lock with counter
-# $Release Version: 1.0$
-# $Revision$
-# by Keiju ISHITSUKA(keiju@ishitsuka.com)
+# $Release Version: 1.0$
+# $Revision$
+# by Keiju ISHITSUKA(keiju@ishitsuka.com)
#
# --
# Sync_m, Synchronizer_m
@@ -10,8 +10,8 @@
# obj.extend(Sync_m)
# or
# class Foo
-# include Sync_m
-# :
+# include Sync_m
+# :
# end
#
# Sync_m#sync_mode
@@ -41,8 +41,11 @@ unless defined? Thread
raise "Thread not available for this ruby interpreter"
end
+##
+# A module that provides a two-phase lock with a counter.
+
module Sync_m
- RCS_ID='-$Header$-'
+ RCS_ID='-$Id$-'
# lock mode
UN = :UN
@@ -58,17 +61,17 @@ module Sync_m
class UnknownLocker < Err
Message = "Thread(%s) not locked."
def UnknownLocker.Fail(th)
- super(th.inspect)
+ super(th.inspect)
end
end
class LockModeFailer < Err
Message = "Unknown lock mode(%s)"
def LockModeFailer.Fail(mode)
- if mode.id2name
- mode = id2name
- end
- super(mode)
+ if mode.id2name
+ mode = id2name
+ end
+ super(mode)
end
end
end
@@ -100,13 +103,13 @@ module Sync_m
def sync_extend
unless (defined? locked? and
- defined? shared? and
- defined? exclusive? and
- defined? lock and
- defined? unlock and
- defined? try_lock and
- defined? synchronize)
- Sync_m.define_aliases(class<<self;self;end)
+ defined? shared? and
+ defined? exclusive? and
+ defined? lock and
+ defined? unlock and
+ defined? try_lock and
+ defined? synchronize)
+ Sync_m.define_aliases(singleton_class)
end
sync_initialize
end
@@ -128,9 +131,8 @@ module Sync_m
def sync_try_lock(mode = EX)
return unlock if mode == UN
@sync_mutex.synchronize do
- ret = sync_try_lock_sub(mode)
+ sync_try_lock_sub(mode)
end
- ret
end
def sync_lock(m = EX)
@@ -138,17 +140,17 @@ module Sync_m
while true
@sync_mutex.synchronize do
- if sync_try_lock_sub(m)
- return self
- else
- if sync_sh_locker[Thread.current]
- sync_upgrade_waiting.push [Thread.current, sync_sh_locker[Thread.current]]
- sync_sh_locker.delete(Thread.current)
- else
- sync_waiting.push Thread.current
- end
- @sync_mutex.sleep
- end
+ if sync_try_lock_sub(m)
+ return self
+ else
+ if sync_sh_locker[Thread.current]
+ sync_upgrade_waiting.push [Thread.current, sync_sh_locker[Thread.current]]
+ sync_sh_locker.delete(Thread.current)
+ else
+ sync_waiting.push Thread.current
+ end
+ @sync_mutex.sleep
+ end
end
end
self
@@ -158,7 +160,7 @@ module Sync_m
wakeup_threads = []
@sync_mutex.synchronize do
if sync_mode == UN
- Err::UnknownLocker.Fail(Thread.current)
+ Err::UnknownLocker.Fail(Thread.current)
end
m = sync_mode if m == EX and sync_mode == SH
@@ -166,51 +168,51 @@ module Sync_m
runnable = false
case m
when UN
- Err::UnknownLocker.Fail(Thread.current)
+ Err::UnknownLocker.Fail(Thread.current)
when EX
- if sync_ex_locker == Thread.current
- if (self.sync_ex_count = sync_ex_count - 1) == 0
- self.sync_ex_locker = nil
- if sync_sh_locker.include?(Thread.current)
- self.sync_mode = SH
- else
- self.sync_mode = UN
- end
- runnable = true
- end
- else
- Err::UnknownLocker.Fail(Thread.current)
- end
+ if sync_ex_locker == Thread.current
+ if (self.sync_ex_count = sync_ex_count - 1) == 0
+ self.sync_ex_locker = nil
+ if sync_sh_locker.include?(Thread.current)
+ self.sync_mode = SH
+ else
+ self.sync_mode = UN
+ end
+ runnable = true
+ end
+ else
+ Err::UnknownLocker.Fail(Thread.current)
+ end
when SH
- if (count = sync_sh_locker[Thread.current]).nil?
- Err::UnknownLocker.Fail(Thread.current)
- else
- if (sync_sh_locker[Thread.current] = count - 1) == 0
- sync_sh_locker.delete(Thread.current)
- if sync_sh_locker.empty? and sync_ex_count == 0
- self.sync_mode = UN
- runnable = true
- end
- end
- end
+ if (count = sync_sh_locker[Thread.current]).nil?
+ Err::UnknownLocker.Fail(Thread.current)
+ else
+ if (sync_sh_locker[Thread.current] = count - 1) == 0
+ sync_sh_locker.delete(Thread.current)
+ if sync_sh_locker.empty? and sync_ex_count == 0
+ self.sync_mode = UN
+ runnable = true
+ end
+ end
+ end
end
if runnable
- if sync_upgrade_waiting.size > 0
- th, count = sync_upgrade_waiting.shift
- sync_sh_locker[th] = count
- th.wakeup
- wakeup_threads.push th
- else
- wait = sync_waiting
- self.sync_waiting = []
- for th in wait
- th.wakeup
- wakeup_threads.push th
- end
- end
+ if sync_upgrade_waiting.size > 0
+ th, count = sync_upgrade_waiting.shift
+ sync_sh_locker[th] = count
+ th.wakeup
+ wakeup_threads.push th
+ else
+ wait = sync_waiting
+ self.sync_waiting = []
+ for th in wait
+ th.wakeup
+ wakeup_threads.push th
+ end
+ end
end
end
for th in wakeup_threads
@@ -264,34 +266,34 @@ module Sync_m
when SH
case sync_mode
when UN
- self.sync_mode = m
- sync_sh_locker[Thread.current] = 1
- ret = true
+ self.sync_mode = m
+ sync_sh_locker[Thread.current] = 1
+ ret = true
when SH
- count = 0 unless count = sync_sh_locker[Thread.current]
- sync_sh_locker[Thread.current] = count + 1
- ret = true
+ count = 0 unless count = sync_sh_locker[Thread.current]
+ sync_sh_locker[Thread.current] = count + 1
+ ret = true
when EX
- # in EX mode, lock will upgrade to EX lock
- if sync_ex_locker == Thread.current
- self.sync_ex_count = sync_ex_count + 1
- ret = true
- else
- ret = false
- end
+ # in EX mode, lock will upgrade to EX lock
+ if sync_ex_locker == Thread.current
+ self.sync_ex_count = sync_ex_count + 1
+ ret = true
+ else
+ ret = false
+ end
end
when EX
if sync_mode == UN or
- sync_mode == SH && sync_sh_locker.size == 1 && sync_sh_locker.include?(Thread.current)
- self.sync_mode = m
- self.sync_ex_locker = Thread.current
- self.sync_ex_count = 1
- ret = true
+ sync_mode == SH && sync_sh_locker.size == 1 && sync_sh_locker.include?(Thread.current)
+ self.sync_mode = m
+ self.sync_ex_locker = Thread.current
+ self.sync_ex_count = 1
+ ret = true
elsif sync_mode == EX && sync_ex_locker == Thread.current
- self.sync_ex_count = sync_ex_count + 1
- ret = true
+ self.sync_ex_count = sync_ex_count + 1
+ ret = true
else
- ret = false
+ ret = false
end
else
Err::LockModeFailer.Fail mode
@@ -299,9 +301,21 @@ module Sync_m
return ret
end
end
+
+##
+# An alias for Sync_m from sync.rb
+
Synchronizer_m = Sync_m
+##
+# A class that providesa two-phase lock with a counter. See Sync_m for
+# details.
+
class Sync
include Sync_m
end
+
+##
+# An alias for Sync from sync.rb. See Sync_m for details.
+
Synchronizer = Sync
diff --git a/lib/tempfile.rb b/lib/tempfile.rb
index 46803b20f2..b34251ebb6 100644
--- a/lib/tempfile.rb
+++ b/lib/tempfile.rb
@@ -8,108 +8,172 @@ require 'delegate'
require 'tmpdir'
require 'thread'
-# A class for managing temporary files. This library is written to be
-# thread safe.
+# A utility class for managing temporary files. When you create a Tempfile
+# object, it will create a temporary file with a unique filename. A Tempfile
+# objects behaves just like a File object, and you can perform all the usual
+# file operations on it: reading data, writing data, changing its permissions,
+# etc. So although this class does not explicitly document all instance methods
+# supported by File, you can in fact call any File instance method on a
+# Tempfile object.
+#
+# == Synopsis
+#
+# require 'tempfile'
+#
+# file = Tempfile.new('foo')
+# file.path # => A unique filename in the OS's temp directory,
+# # e.g.: "/tmp/foo.24722.0"
+# # This filename contains 'foo' in its basename.
+# file.write("hello world")
+# file.rewind
+# file.read # => "hello world"
+# file.close
+# file.unlink # deletes the temp file
+#
+# == Good practices
+#
+# === Explicit close
+#
+# When a Tempfile object is garbage collected, or when the Ruby interpreter
+# exits, its associated temporary file is automatically deleted. This means
+# that's it's unnecessary to explicitly delete a Tempfile after use, though
+# it's good practice to do so: not explicitly deleting unused Tempfiles can
+# potentially leave behind large amounts of tempfiles on the filesystem
+# until they're garbage collected. The existence of these temp files can make
+# it harder to determine a new Tempfile filename.
+#
+# Therefore, one should always call #unlink or close in an ensure block, like
+# this:
+#
+# file = Tempfile.new('foo')
+# begin
+# ...do something with file...
+# ensure
+# file.close
+# file.unlink # deletes the temp file
+# end
+#
+# === Unlink after creation
+#
+# On POSIX systems, it's possible to unlink a file right after creating it,
+# and before closing it. This removes the filesystem entry without closing
+# the file handle, so it ensures that only the processes that already had
+# the file handle open can access the file's contents. It's strongly
+# recommended that you do this if you do not want any other processes to
+# be able to read from or write to the Tempfile, and you do not need to
+# know the Tempfile's filename either.
+#
+# For example, a practical use case for unlink-after-creation would be this:
+# you need a large byte buffer that's too large to comfortably fit in RAM,
+# e.g. when you're writing a web server and you want to buffer the client's
+# file upload data.
+#
+# Please refer to #unlink for more information and a code example.
+#
+# == Minor notes
+#
+# Tempfile's filename picking method is both thread-safe and inter-process-safe:
+# it guarantees that no other threads or processes will pick the same filename.
+#
+# Tempfile itself however may not be entirely thread-safe. If you access the
+# same Tempfile object from multiple threads then you should protect it with a
+# mutex.
class Tempfile < DelegateClass(File)
- MAX_TRY = 10
- @@cleanlist = []
- @@lock = Mutex.new
-
- # Creates a temporary file of mode 0600 in the temporary directory,
- # opens it with mode "w+", and returns a Tempfile object which
- # represents the created temporary file. A Tempfile object can be
- # treated just like a normal File object.
- #
- # The basename parameter is used to determine the name of a
- # temporary file. If an Array is given, the first element is used
- # as prefix string and the second as suffix string, respectively.
- # Otherwise it is treated as prefix string.
- #
- # If tmpdir is omitted, the temporary directory is determined by
- # Dir::tmpdir provided by 'tmpdir.rb'.
- # When $SAFE > 0 and the given tmpdir is tainted, it uses
- # /tmp. (Note that ENV values are tainted by default)
- def initialize(basename, *rest)
- # I wish keyword argument settled soon.
- if opts = Hash.try_convert(rest[-1])
- rest.pop
- end
- tmpdir = rest[0] || Dir::tmpdir
- if $SAFE > 0 and tmpdir.tainted?
- tmpdir = '/tmp'
- end
+ MAX_TRY = 10 # :nodoc:
+ include Dir::Tmpname
- lock = tmpname = nil
- n = failure = 0
- @@lock.synchronize {
- begin
- begin
- tmpname = File.join(tmpdir, make_tmpname(basename, n))
- lock = tmpname + '.lock'
- n += 1
- end while @@cleanlist.include?(tmpname) or
- File.exist?(lock) or File.exist?(tmpname)
- Dir.mkdir(lock)
- rescue
- failure += 1
- retry if failure < MAX_TRY
- raise "cannot generate tempfile `%s'" % tmpname
- end
- }
-
- @data = [tmpname]
- @clean_proc = Tempfile.callback(@data)
+ # call-seq:
+ # new(basename, [tmpdir = Dir.tmpdir], [options])
+ #
+ # Creates a temporary file with permissions 0600 (= only readable and
+ # writable by the owner) and opens it with mode "w+".
+ #
+ # The +basename+ parameter is used to determine the name of the
+ # temporary file. You can either pass a String or an Array with
+ # 2 String elements. In the former form, the temporary file's base
+ # name will begin with the given string. In the latter form,
+ # the temporary file's base name will begin with the array's first
+ # element, and end with the second element. For example:
+ #
+ # file = Tempfile.new('hello')
+ # file.path # => something like: "/tmp/hello2843-8392-92849382--0"
+ #
+ # # Use the Array form to enforce an extension in the filename:
+ # file = Tempfile.new(['hello', '.jpg'])
+ # file.path # => something like: "/tmp/hello2843-8392-92849382--0.jpg"
+ #
+ # The temporary file will be placed in the directory as specified
+ # by the +tmpdir+ parameter. By default, this is +Dir.tmpdir+.
+ # When $SAFE > 0 and the given +tmpdir+ is tainted, it uses
+ # '/tmp' as the temporary directory. Please note that ENV values
+ # are tainted by default, and +Dir.tmpdir+'s return value might
+ # come from environment variables (e.g. <tt>$TMPDIR</tt>).
+ #
+ # file = Tempfile.new('hello', '/home/aisaka')
+ # file.path # => something like: "/home/aisaka/hello2843-8392-92849382--0"
+ #
+ # You can also pass an options hash. Under the hood, Tempfile creates
+ # the temporary file using +File.open+. These options will be passed to
+ # +File.open+. This is mostly useful for specifying encoding
+ # options, e.g.:
+ #
+ # Tempfile.new('hello', '/home/aisaka', :encoding => 'ascii-8bit')
+ #
+ # # You can also omit the 'tmpdir' parameter:
+ # Tempfile.new('hello', :encoding => 'ascii-8bit')
+ #
+ # === Exceptions
+ #
+ # If Tempfile.new cannot find a unique filename within a limited
+ # number of tries, then it will raise an exception.
+ def initialize(basename, *rest)
+ @data = []
+ @clean_proc = Remover.new(@data)
ObjectSpace.define_finalizer(self, @clean_proc)
- if opts.nil?
- opts = []
- else
- opts = [opts]
+ create(basename, *rest) do |tmpname, n, opts|
+ mode = File::RDWR|File::CREAT|File::EXCL
+ perm = 0600
+ if opts
+ mode |= opts.delete(:mode) || 0
+ opts[:perm] = perm
+ perm = nil
+ else
+ opts = perm
+ end
+ self.class.locking(tmpname) do
+ @data[1] = @tmpfile = File.open(tmpname, mode, opts)
+ @data[0] = @tmpname = tmpname
+ end
+ @mode = mode & ~(File::CREAT|File::EXCL)
+ perm or opts.freeze
+ @opts = opts
end
- @tmpfile = File.open(tmpname, File::RDWR|File::CREAT|File::EXCL, 0600, *opts)
- @tmpname = tmpname
- @@cleanlist << @tmpname
- @data[1] = @tmpfile
- @data[2] = @@cleanlist
super(@tmpfile)
-
- # Now we have all the File/IO methods defined, you must not
- # carelessly put bare puts(), etc. after this.
-
- Dir.rmdir(lock)
- end
-
- def make_tmpname(basename, n)
- case basename
- when Array
- prefix, suffix = *basename
- else
- prefix, suffix = basename, ''
- end
-
- t = Time.now.strftime("%Y%m%d")
- path = "#{prefix}#{t}-#{$$}-#{rand(0x100000000).to_s(36)}-#{n}#{suffix}"
end
- private :make_tmpname
# Opens or reopens the file with mode "r+".
def open
@tmpfile.close if @tmpfile
- @tmpfile = File.open(@tmpname, 'r+')
+ @tmpfile = File.open(@tmpname, @mode, @opts)
@data[1] = @tmpfile
__setobj__(@tmpfile)
end
- def _close # :nodoc:
- @tmpfile.close if @tmpfile
- @tmpfile = nil
- @data[1] = nil if @data
+ def _close # :nodoc:
+ begin
+ @tmpfile.close if @tmpfile
+ ensure
+ @tmpfile = nil
+ @data[1] = nil if @data
+ end
end
protected :_close
- #Closes the file. If the optional flag is true, unlinks the file
- # after closing.
+ # Closes the file. If +unlink_now+ is true, then the file will be unlinked
+ # (deleted) after closing. Of course, you can choose to later call #unlink
+ # if you do not unlink it now.
#
# If you don't explicitly unlink the temporary file, the removal
# will be delayed until the object is finalized.
@@ -121,35 +185,64 @@ class Tempfile < DelegateClass(File)
end
end
- # Closes and unlinks the file.
+ # Closes and unlinks (deletes) the file. Has the same effect as called
+ # <tt>close(true)</tt>.
def close!
_close
- @clean_proc.call
+ unlink
ObjectSpace.undefine_finalizer(self)
- @data = @tmpname = nil
end
- # Unlinks the file. On UNIX-like systems, it is often a good idea
- # to unlink a temporary file immediately after creating and opening
- # it, because it leaves other programs zero chance to access the
- # file.
+ # Unlinks (deletes) the file from the filesystem. One should always unlink
+ # the file after using it, as is explained in the "Explicit close" good
+ # practice section in the Tempfile overview:
+ #
+ # file = Tempfile.new('foo')
+ # begin
+ # ...do something with file...
+ # ensure
+ # file.close
+ # file.unlink # deletes the temp file
+ # end
+ #
+ # === Unlink-before-close
+ #
+ # On POSIX systems it's possible to unlink a file before closing it. This
+ # practice is explained in detail in the Tempfile overview (section
+ # "Unlink after creation"); please refer there for more information.
+ #
+ # However, unlink-before-close may not be supported on non-POSIX operating
+ # systems. Microsoft Windows is the most notable case: unlinking a non-closed
+ # file will result in an error, which this method will silently ignore. If
+ # you want to practice unlink-before-close whenever possible, then you should
+ # write code like this:
+ #
+ # file = Tempfile.new('foo')
+ # file.unlink # On Windows this silently fails.
+ # begin
+ # ... do something with file ...
+ # ensure
+ # file.close! # Closes the file handle. If the file wasn't unlinked
+ # # because #unlink failed, then this method will attempt
+ # # to do so again.
+ # end
def unlink
- # keep this order for thread safeness
+ return unless @tmpname
begin
- if File.exist?(@tmpname)
- closed? or close
- File.unlink(@tmpname)
- end
- @@cleanlist.delete(@tmpname)
- @data = @tmpname = nil
- ObjectSpace.undefine_finalizer(self)
+ File.unlink(@tmpname)
+ rescue Errno::ENOENT
rescue Errno::EACCES
# may not be able to unlink on Windows; just ignore
+ return
end
+ # remove tmpname from remover
+ @data[0] = @data[1] = nil
+ @tmpname = nil
end
alias delete unlink
# Returns the full path name of the temporary file.
+ # This will be nil if #unlink has been called.
def path
@tmpname
end
@@ -160,50 +253,98 @@ class Tempfile < DelegateClass(File)
if @tmpfile
@tmpfile.flush
@tmpfile.stat.size
+ elsif @tmpname
+ File.size(@tmpname)
else
0
end
end
alias length size
- class << self
- def callback(data) # :nodoc:
- pid = $$
- Proc.new {
- if pid == $$
- path, tmpfile, cleanlist = *data
+ # :stopdoc:
+ class Remover
+ def initialize(data)
+ @pid = $$
+ @data = data
+ end
- print "removing ", path, "..." if $DEBUG
+ def call(*args)
+ return if @pid != $$
- tmpfile.close if tmpfile
+ path, tmpfile = *@data
- # keep this order for thread safeness
- File.unlink(path) if File.exist?(path)
- cleanlist.delete(path) if cleanlist
+ STDERR.print "removing ", path, "..." if $DEBUG
- print "done\n" if $DEBUG
- end
- }
+ tmpfile.close if tmpfile
+
+ if path
+ begin
+ File.unlink(path)
+ rescue Errno::ENOENT
+ end
+ end
+
+ STDERR.print "done\n" if $DEBUG
end
+ end
+ # :startdoc:
- # If no block is given, this is a synonym for new().
+ class << self
+ # Creates a new Tempfile.
+ #
+ # If no block is given, this is a synonym for Tempfile.new.
+ #
+ # If a block is given, then a Tempfile object will be constructed,
+ # and the block is run with said object as argument. The Tempfile
+ # oject will be automatically closed after the block terminates.
+ # The call returns the value of the block.
+ #
+ # In any case, all arguments (+*args+) will be passed to Tempfile.new.
#
- # If a block is given, it will be passed tempfile as an argument,
- # and the tempfile will automatically be closed when the block
- # terminates. In this case, open() returns nil.
+ # Tempfile.open('foo', '/home/temp') do |f|
+ # ... do something with f ...
+ # end
+ #
+ # # Equivalent:
+ # f = Tempfile.open('foo', '/home/temp')
+ # begin
+ # ... do something with f ...
+ # ensure
+ # f.close
+ # end
def open(*args)
tempfile = new(*args)
if block_given?
- begin
- yield(tempfile)
- ensure
- tempfile.close
- end
+ begin
+ yield(tempfile)
+ ensure
+ tempfile.close
+ end
else
- tempfile
+ tempfile
end
end
+
+ # :stopdoc:
+
+ # yields with locking for +tmpname+ and returns the result of the
+ # block.
+ def locking(tmpname)
+ lock = tmpname + '.lock'
+ mkdir(lock)
+ yield
+ ensure
+ rmdir(lock) if lock
+ end
+
+ def mkdir(*args)
+ Dir.mkdir(*args)
+ end
+
+ def rmdir(*args)
+ Dir.rmdir(*args)
+ end
end
end
diff --git a/lib/test/unit.rb b/lib/test/unit.rb
index 3e2b388273..09708d14df 100644
--- a/lib/test/unit.rb
+++ b/lib/test/unit.rb
@@ -3,64 +3,638 @@
require 'minitest/unit'
require 'test/unit/assertions'
require 'test/unit/testcase'
+require 'optparse'
module Test
module Unit
TEST_UNIT_IMPLEMENTATION = 'test/unit compatibility layer using minitest'
- def self.setup_argv(original_argv=ARGV)
- minitest_argv = []
- files = []
- reject = []
- original_argv = original_argv.dup
- while arg = original_argv.shift
- case arg
- when '-v'
- minitest_argv << arg
- when /\A(-n)(.+)?/, /\A(--name)=?\b(.+)?/
- minitest_argv << $1
- minitest_argv << ($2 || original_argv.shift)
- when /\A-x(.+)?/
- reject << ($1 || original_argv.shift)
+ module RunCount
+ @@run_count = 0
+
+ def self.have_run?
+ @@run_count.nonzero?
+ end
+
+ def run(*)
+ @@run_count += 1
+ super
+ end
+
+ def run_once
+ return if have_run?
+ return if $! # don't run if there was an exception
+ yield
+ end
+ module_function :run_once
+ end
+
+ module Options
+ def initialize(*, &block)
+ @init_hook = block
+ @options = nil
+ super(&nil)
+ end
+
+ def option_parser
+ @option_parser ||= OptionParser.new
+ end
+
+ def process_args(args = [])
+ return @options if @options
+ orig_args = args.dup
+ options = {}
+ opts = option_parser
+ setup_options(opts, options)
+ opts.parse!(args)
+ orig_args -= args
+ args = @init_hook.call(args, options) if @init_hook
+ non_options(args, options)
+ @help = orig_args.map { |s| s =~ /[\s|&<>$()]/ ? s.inspect : s }.join " "
+ @options = options
+ if @options[:parallel]
+ @files = args
+ @args = orig_args
+ end
+ options
+ end
+
+ private
+ def setup_options(opts, options)
+ opts.separator 'minitest options:'
+ opts.version = MiniTest::Unit::VERSION
+
+ opts.on '-h', '--help', 'Display this help.' do
+ puts opts
+ exit
+ end
+
+ opts.on '-s', '--seed SEED', Integer, "Sets random seed" do |m|
+ options[:seed] = m
+ end
+
+ opts.on '-v', '--verbose', "Verbose. Show progress processing files." do
+ options[:verbose] = true
+ self.verbose = options[:verbose]
+ end
+
+ opts.on '-n', '--name PATTERN', "Filter test names on pattern." do |a|
+ options[:filter] = a
+ end
+
+ opts.on '--jobs-status [TYPE]', [:normal, :replace],
+ "Show status of jobs every file; Disabled when --jobs isn't specified." do |type|
+ options[:job_status] = type || :normal
+ end
+
+ opts.on '-j N', '--jobs N', "Allow run tests with N jobs at once" do |a|
+ if /^t/ =~ a
+ options[:testing] = true # For testing
+ options[:parallel] = a[1..-1].to_i
+ else
+ options[:parallel] = a.to_i
+ end
+ end
+
+ opts.on '--no-retry', "Don't retry running testcase when --jobs specified" do
+ options[:no_retry] = true
+ end
+
+ opts.on '--ruby VAL', "Path to ruby; It'll have used at -j option" do |a|
+ options[:ruby] = a.split(/ /).reject(&:empty?)
+ end
+
+ opts.on '-q', '--hide-skip', 'Hide skipped tests' do
+ options[:hide_skip] = true
+ end
+ end
+
+ def non_options(files, options)
+ begin
+ require "rbconfig"
+ rescue LoadError
+ warn "#{caller(1)[0]}: warning: Parallel running disabled because can't get path to ruby; run specify with --ruby argument"
+ options[:parallel] = nil
else
- files << arg
+ options[:ruby] ||= RbConfig.ruby
+ end
+
+ true
+ end
+ end
+
+ module GlobOption
+ include Options
+
+ @@testfile_prefix = "test"
+
+ def setup_options(parser, options)
+ super
+ parser.on '-b', '--basedir=DIR', 'Base directory of test suites.' do |dir|
+ options[:base_directory] = dir
+ end
+ parser.on '-x', '--exclude PATTERN', 'Exclude test files on pattern.' do |pattern|
+ (options[:reject] ||= []) << pattern
+ end
+ end
+
+ def non_options(files, options)
+ paths = [options.delete(:base_directory), nil].uniq
+ if reject = options.delete(:reject)
+ reject_pat = Regexp.union(reject.map {|r| /#{r}/ })
+ end
+ files.map! {|f|
+ f = f.tr(File::ALT_SEPARATOR, File::SEPARATOR) if File::ALT_SEPARATOR
+ ((paths if /\A\.\.?(?:\z|\/)/ !~ f) || [nil]).any? do |prefix|
+ if prefix
+ path = f.empty? ? prefix : "#{prefix}/#{f}"
+ else
+ next if f.empty?
+ path = f
+ end
+ if !(match = Dir["#{path}/**/#{@@testfile_prefix}_*.rb"]).empty?
+ if reject
+ match.reject! {|n|
+ n[(prefix.length+1)..-1] if prefix
+ reject_pat =~ n
+ }
+ end
+ break match
+ elsif !reject or reject_pat !~ f and File.exist? path
+ break path
+ end
+ end or
+ raise ArgumentError, "file not found: #{f}"
+ }
+ files.flatten!
+ super(files, options)
+ end
+ end
+
+ module LoadPathOption
+ include Options
+
+ def setup_options(parser, options)
+ super
+ parser.on '-Idirectory', 'Add library load path' do |dirs|
+ dirs.split(':').each { |d| $LOAD_PATH.unshift d }
+ end
+ end
+ end
+
+ module GCStressOption
+ def setup_options(parser, options)
+ super
+ parser.on '--[no-]gc-stress', 'Set GC.stress as true' do |flag|
+ options[:gc_stress] = flag
+ end
+ end
+
+ def non_options(files, options)
+ if options.delete(:gc_stress)
+ MiniTest::Unit::TestCase.class_eval do
+ oldrun = instance_method(:run)
+ define_method(:run) do |runner|
+ begin
+ gc_stress, GC.stress = GC.stress, true
+ oldrun.bind(self).call(runner)
+ ensure
+ GC.stress = gc_stress
+ end
+ end
+ end
+ end
+ super
+ end
+ end
+
+ module RequireFiles
+ def non_options(files, options)
+ return false if !super
+ result = false
+ files.each {|f|
+ d = File.dirname(path = File.expand_path(f))
+ unless $:.include? d
+ $: << d
+ end
+ begin
+ require path unless options[:parallel]
+ result = true
+ rescue LoadError
+ puts "#{f}: #{$!}"
+ end
+ }
+ result
+ end
+ end
+
+ class Runner < MiniTest::Unit
+ include Test::Unit::Options
+ include Test::Unit::GlobOption
+ include Test::Unit::LoadPathOption
+ include Test::Unit::GCStressOption
+ include Test::Unit::RunCount
+
+ class Worker
+ def self.launch(ruby,args=[])
+ io = IO.popen([*ruby,
+ "#{File.dirname(__FILE__)}/unit/parallel.rb",
+ *args], "rb+")
+ new(io, io.pid, :waiting)
+ end
+
+ def initialize(io, pid, status)
+ @io = io
+ @pid = pid
+ @status = status
+ @file = nil
+ @real_file = nil
+ @loadpath = []
+ @hooks = {}
+ end
+
+ def puts(*args)
+ @io.puts(*args)
+ end
+
+ def run(task,type)
+ @file = File.basename(task).gsub(/\.rb/,"")
+ @real_file = task
+ begin
+ puts "loadpath #{[Marshal.dump($:-@loadpath)].pack("m").gsub("\n","")}"
+ @loadpath = $:.dup
+ puts "run #{task} #{type}"
+ @status = :prepare
+ rescue Errno::EPIPE
+ died
+ rescue IOError
+ raise unless ["stream closed","closed stream"].include? $!.message
+ died
+ end
+ end
+
+ def hook(id,&block)
+ @hooks[id] ||= []
+ @hooks[id] << block
+ self
+ end
+
+ def read
+ res = (@status == :quit) ? @io.read : @io.gets
+ res && res.chomp
+ end
+
+ def close
+ @io.close
+ self
end
+
+ def died(*additional)
+ @status = :quit
+ @io.close
+
+ call_hook(:dead,*additional)
+ end
+
+ def to_s
+ if @file
+ "#{@pid}=#{@file}"
+ else
+ "#{@pid}:#{@status.to_s.ljust(7)}"
+ end
+ end
+
+ attr_reader :io, :pid
+ attr_accessor :status, :file, :real_file, :loadpath
+
+ private
+
+ def call_hook(id,*additional)
+ @hooks[id] ||= []
+ @hooks[id].each{|hook| hook[self,additional] }
+ self
+ end
+
+ end
+
+ class << self; undef autorun; end
+
+ @@stop_auto_run = false
+ def self.autorun
+ at_exit {
+ Test::Unit::RunCount.run_once {
+ exit(Test::Unit::Runner.new.run(ARGV) || true)
+ } unless @@stop_auto_run
+ } unless @@installed_at_exit
+ @@installed_at_exit = true
end
- if block_given?
- files = yield files
+ def after_worker_down(worker, e=nil, c=false)
+ return unless @options[:parallel]
+ return if @interrupt
+ if e
+ b = e.backtrace
+ warn "#{b.shift}: #{e.message} (#{e.class})"
+ STDERR.print b.map{|s| "\tfrom #{s}"}.join("\n")
+ end
+ @need_quit = true
+ warn ""
+ warn "Some worker was crashed. It seems ruby interpreter's bug"
+ warn "or, a bug of test/unit/parallel.rb. try again without -j"
+ warn "option."
+ warn ""
+ STDERR.flush
+ exit c
end
- files.map! {|f|
- f = f.gsub(Regexp.compile(Regexp.quote(File::ALT_SEPARATOR)), File::SEPARATOR) if File::ALT_SEPARATOR
- if File.directory? f
- Dir["#{f}/**/test_*.rb"]
- elsif File.file? f
- f
+ def jobs_status
+ return unless @options[:job_status]
+ puts "" unless @options[:verbose]
+ status_line = @workers.map(&:to_s).join(" ")
+ if @options[:job_status] == :replace and $stdout.tty?
+ @terminal_width ||=
+ begin
+ require 'io/console'
+ $stdout.winsize[1]
+ rescue LoadError, NoMethodError
+ ENV["COLUMNS"].to_i.nonzero? || 80
+ end
+ @jstr_size ||= 0
+ del_jobs_status
+ $stdout.flush
+ print status_line[0...@terminal_width]
+ $stdout.flush
+ @jstr_size = [status_line.size, @terminal_width].min
else
- raise ArgumentError, "file not found: #{f}"
+ puts status_line
end
- }
- files.flatten!
+ end
+
+ def del_jobs_status
+ return unless @options[:job_status] == :replace && @jstr_size.nonzero?
+ print "\r"+" "*@jstr_size+"\r"
+ end
- reject_pat = Regexp.union(reject.map {|r| /#{r}/ })
- files.reject! {|f| reject_pat =~ f }
+ def after_worker_quit(worker)
+ return unless @options[:parallel]
+ return if @interrupt
+ @workers.delete(worker)
+ @dead_workers << worker
+ @ios = @workers.map(&:io)
+ end
- files.each {|f|
- d = File.dirname(File.expand_path(f))
- unless $:.include? d
- $: << d
+ def _run_parallel suites, type, result
+ if @options[:parallel] < 1
+ warn "Error: parameter of -j option should be greater than 0."
+ return
end
+
begin
- require f
- rescue LoadError
- puts "#{f}: #{$!}"
+ # Require needed things for parallel running
+ require 'thread'
+ require 'timeout'
+ @tasks = @files.dup # Array of filenames.
+ @need_quit = false
+ @dead_workers = [] # Array of dead workers.
+ @warnings = []
+ shutting_down = false
+ rep = [] # FIXME: more good naming
+
+ # Array of workers.
+ @workers = @options[:parallel].times.map {
+ worker = Worker.launch(@options[:ruby],@args)
+ worker.hook(:dead) do |w,info|
+ after_worker_quit w
+ after_worker_down w, *info unless info.empty?
+ end
+ worker
+ }
+
+ # Thread: watchdog
+ watchdog = Thread.new do
+ while stat = Process.wait2
+ break if @interrupt # Break when interrupt
+ pid, stat = stat
+ w = (@workers + @dead_workers).find{|x| pid == x.pid }.dup
+ next unless w
+ unless w.status == :quit
+ # Worker down
+ w.died(nil, !stat.signaled? && stat.exitstatus)
+ end
+ end
+ end
+
+ @workers_hash = Hash[@workers.map {|w| [w.io,w] }] # out-IO => worker
+ @ios = @workers.map{|w| w.io } # Array of worker IOs
+
+ while _io = IO.select(@ios)[0]
+ break unless _io.each do |io|
+ break if @need_quit
+ worker = @workers_hash[io]
+ case worker.read
+ when /^okay$/
+ worker.status = :running
+ jobs_status
+ when /^ready$/
+ worker.status = :ready
+ if @tasks.empty?
+ break unless @workers.find{|x| x.status == :running }
+ else
+ worker.run(@tasks.shift, type)
+ end
+
+ jobs_status
+ when /^done (.+?)$/
+ r = Marshal.load($1.unpack("m")[0])
+ result << r[0..1] unless r[0..1] == [nil,nil]
+ rep << {file: worker.real_file,
+ report: r[2], result: r[3], testcase: r[5]}
+ $:.push(*r[4]).uniq!
+ when /^p (.+?)$/
+ del_jobs_status
+ print $1.unpack("m")[0]
+ jobs_status if @options[:job_status] == :replace
+ when /^after (.+?)$/
+ @warnings << Marshal.load($1.unpack("m")[0])
+ when /^bye (.+?)$/
+ after_worker_down worker, Marshal.load($1.unpack("m")[0])
+ when /^bye$/
+ if shutting_down
+ after_worker_quit worker
+ else
+ after_worker_down worker
+ end
+ end
+ break if @need_quit
+ end
+ end
+ rescue Interrupt => e
+ @interrupt = e
+ return result
+ ensure
+ shutting_down = true
+
+ watchdog.kill if watchdog
+ if @interrupt
+ @ios.select!{|x| @workers_hash[x].status == :running }
+ while !@ios.empty? && (__io = IO.select(@ios,[],[],10))
+ _io = __io[0]
+ _io.each do |io|
+ worker = @workers_hash[io]
+ case worker.read
+ when /^done (.+?)$/
+ r = Marshal.load($1.unpack("m")[0])
+ result << r[0..1] unless r[0..1] == [nil,nil]
+ rep << {file: worker.real_file,
+ report: r[2], result: r[3], testcase: r[5]}
+ $:.push(*r[4]).uniq!
+ @ios.delete(io)
+ end
+ end
+ end
+ end
+ @workers.each do |worker|
+ begin
+ timeout(1) do
+ worker.puts "quit"
+ end
+ rescue Errno::EPIPE
+ rescue Timeout::Error
+ end
+ worker.close
+ end
+ begin
+ timeout(0.2*@workers.size) do
+ Process.waitall
+ end
+ rescue Timeout::Error
+ @workers.each do |worker|
+ begin
+ Process.kill(:KILL,worker.pid)
+ rescue Errno::ESRCH; end
+ end
+ end
+
+ if @interrupt || @options[:no_retry] || @need_quit
+ rep.each do |r|
+ report.push(*r[:report])
+ end
+ @errors += rep.map{|x| x[:result][0] }.inject(:+)
+ @failures += rep.map{|x| x[:result][1] }.inject(:+)
+ @skips += rep.map{|x| x[:result][2] }.inject(:+)
+ else
+ puts ""
+ puts "Retrying..."
+ puts ""
+ rep.each do |r|
+ if r[:testcase] && r[:file] && !r[:report].empty?
+ require r[:file]
+ _run_suite(eval(r[:testcase]),type)
+ else
+ report.push(*r[:report])
+ @errors += r[:result][0]
+ @failures += r[:result][1]
+ @skips += r[:result][2]
+ end
+ end
+ end
+ if @warnings
+ warn ""
+ ary = []
+ @warnings.reject! do |w|
+ r = ary.include?(w[1].message)
+ ary << w[1].message
+ r
+ end
+ @warnings.each do |w|
+ warn "#{w[0]}: #{w[1].message} (#{w[1].class})"
+ end
+ warn ""
+ end
+ end
+ end
+
+ def _run_suites suites, type
+ @interrupt = nil
+ result = []
+ if @options[:parallel]
+ _run_parallel suites, type, result
+ else
+ suites.each {|suite|
+ begin
+ result << _run_suite(suite, type)
+ rescue Interrupt => e
+ @interrupt = e
+ break
+ end
+ }
+ end
+ report.reject!{|r| r.start_with? "Skipped:" } if @options[:hide_skip]
+ result
+ end
+
+ # Overriding of MiniTest::Unit#puke
+ def puke klass, meth, e
+ # TODO:
+ # this overriding is for minitest feature that skip messages are
+ # hidden when not verbose (-v), note this is temporally.
+ e = case e
+ when MiniTest::Skip then
+ @skips += 1
+ "Skipped:\n#{meth}(#{klass}) [#{location e}]:\n#{e.message}\n"
+ when MiniTest::Assertion then
+ @failures += 1
+ "Failure:\n#{meth}(#{klass}) [#{location e}]:\n#{e.message}\n"
+ else
+ @errors += 1
+ bt = MiniTest::filter_backtrace(e.backtrace).join "\n "
+ "Error:\n#{meth}(#{klass}):\n#{e.class}: #{e.message}\n #{bt}\n"
+ end
+ @report << e
+ e[0, 1]
+ end
+
+ def status(*args)
+ result = super
+ raise @interrupt if @interrupt
+ result
+ end
+ end
+
+ class AutoRunner
+ class Runner < Test::Unit::Runner
+ include Test::Unit::RequireFiles
+ end
+
+ attr_accessor :to_run, :options
+
+ def initialize(force_standalone = false, default_dir = nil, argv = ARGV)
+ @runner = Runner.new do |files, options|
+ options[:base_directory] ||= default_dir
+ files << default_dir if files.empty? and default_dir
+ @to_run = files
+ yield self if block_given?
+ files
end
- }
+ Runner.runner = @runner
+ @options = @runner.option_parser
+ @argv = argv
+ end
+
+ def process_args(*args)
+ @runner.process_args(*args)
+ !@to_run.empty?
+ end
+
+ def run
+ @runner.run(@argv) || true
+ end
- ARGV.replace minitest_argv
+ def self.run(*args)
+ new(*args).run
+ end
end
end
end
-MiniTest::Unit.autorun
+Test::Unit::Runner.autorun
diff --git a/lib/test/unit/assertions.rb b/lib/test/unit/assertions.rb
index 35348d87be..39a3c85600 100644
--- a/lib/test/unit/assertions.rb
+++ b/lib/test/unit/assertions.rb
@@ -6,14 +6,85 @@ module Test
module Assertions
include MiniTest::Assertions
- def mu_pp(obj)
+ def mu_pp(obj) #:nodoc:
obj.pretty_inspect.chomp
end
+ MINI_DIR = File.join(File.dirname(File.dirname(File.expand_path(__FILE__))), "minitest") #:nodoc:
+
+ UNASSIGNED = Object.new # :nodoc:
+
+ # :call-seq:
+ # assert( test, failure_message = UNASSIGNED )
+ #
+ #Tests if +test+ is true.
+ #
+ #+msg+ may be a String or a Proc. If +msg+ is a String, it will be used
+ #as the failure message. Otherwise, the result of calling +msg+ will be
+ #used as the message if the assertion fails.
+ #
+ #If no +msg+ is given, a default message will be used.
+ #
+ # assert(false, "This was expected to be true")
+ def assert(test, msg = UNASSIGNED)
+ case msg
+ when UNASSIGNED
+ msg = nil
+ when String, Proc
+ else
+ bt = caller.reject { |s| s.rindex(MINI_DIR, 0) }
+ raise ArgumentError, "assertion message must be String or Proc, but #{msg.class} was given.", bt
+ end
+ super
+ end
+
+ # :call-seq:
+ # assert_block( failure_message = nil )
+ #
+ #Tests the result of the given block. If the block does not return true,
+ #the assertion will fail. The optional +failure_message+ argument is the same as in
+ #Assertions#assert.
+ #
+ # assert_block do
+ # [1, 2, 3].any? { |num| num < 1 }
+ # end
+ def assert_block(*msgs)
+ assert yield, *msgs
+ end
+
+ # :call-seq:
+ # assert_raise( *args, &block )
+ #
+ #Tests if the given block raises an exception. Acceptable exception
+ #types maye be given as optional arguments. If the last argument is a
+ #String, it will be used as the error message.
+ #
+ # assert_raise do #Fails, no Exceptions are raised
+ # end
+ #
+ # assert_raise NameError do
+ # puts x #Raises NameError, so assertion succeeds
+ # end
def assert_raise(*args, &b)
assert_raises(*args, &b)
end
+ # :call-seq:
+ # assert_nothing_raised( *args, &block )
+ #
+ #If any exceptions are given as arguments, the assertion will
+ #fail if one of those exceptions are raised. Otherwise, the test fails
+ #if any exceptions are raised.
+ #
+ #The final argument may be a failure message.
+ #
+ # assert_nothing_raised RuntimeError do
+ # raise Exception #Assertion passes, Exception is not a RuntimeError
+ # end
+ #
+ # assert_nothing_raised do
+ # raise Exception #Assertion fails
+ # end
def assert_nothing_raised(*args)
self._assertions += 1
if Module === args.last
@@ -23,6 +94,8 @@ module Test
end
begin
line = __LINE__; yield
+ rescue MiniTest::Skip
+ raise
rescue Exception => e
bt = e.backtrace
as = e.instance_of?(MiniTest::Assertion)
@@ -41,6 +114,16 @@ module Test
nil
end
+ # :call-seq:
+ # assert_nothing_thrown( failure_message = nil, &block )
+ #
+ #Fails if the given block uses a call to Kernel#throw.
+ #
+ #An optional failure message may be provided as the final argument.
+ #
+ # assert_nothing_thrown "Something was thrown!" do
+ # throw :problem?
+ # end
def assert_nothing_thrown(msg=nil)
begin
yield
@@ -52,6 +135,12 @@ module Test
assert(true, "Expected nothing to be thrown")
end
+ # :call-seq:
+ # assert_equal( expected, actual, failure_message = nil )
+ #
+ #Tests if +expected+ is equal to +actual+.
+ #
+ #An optional failure message may be provided as the final argument.
def assert_equal(exp, act, msg = nil)
msg = message(msg) {
exp_str = mu_pp(exp)
@@ -67,8 +156,16 @@ module Test
exp_str = "%\#.#{Float::DIG+2}g" % exp
act_str = "%\#.#{Float::DIG+2}g" % act
elsif exp.is_a?(Time) && act.is_a?(Time)
- exp_comment = " (nsec=#{exp.nsec})"
- act_comment = " (nsec=#{act.nsec})"
+ if exp.subsec * 1000_000_000 == exp.nsec
+ exp_comment = " (#{exp.nsec}[ns])"
+ else
+ exp_comment = " (subsec=#{exp.subsec})"
+ end
+ if act.subsec * 1000_000_000 == act.nsec
+ act_comment = " (#{act.nsec}[ns])"
+ else
+ act_comment = " (subsec=#{act.subsec})"
+ end
elsif exp.class != act.class
# a subclass of Range, for example.
exp_comment = " (#{exp.class})"
@@ -90,16 +187,34 @@ module Test
assert(exp == act, msg)
end
+ # :call-seq:
+ # assert_not_nil( expression, failure_message = nil )
+ #
+ #Tests if +expression+ is not nil.
+ #
+ #An optional failure message may be provided as the final argument.
def assert_not_nil(exp, msg=nil)
msg = message(msg) { "<#{mu_pp(exp)}> expected to not be nil" }
assert(!exp.nil?, msg)
end
+ # :call-seq:
+ # assert_not_equal( expected, actual, failure_message = nil )
+ #
+ #Tests if +expected+ is not equal to +actual+.
+ #
+ #An optional failure message may be provided as the final argument.
def assert_not_equal(exp, act, msg=nil)
msg = message(msg) { "<#{mu_pp(exp)}> expected to be != to\n<#{mu_pp(act)}>" }
assert(exp != act, msg)
end
+ # :call-seq:
+ # assert_no_match( regexp, string, failure_message = nil )
+ #
+ #Tests if the given Regexp does not match a given String.
+ #
+ #An optional failure message may be provided as the final argument.
def assert_no_match(regexp, string, msg=nil)
assert_instance_of(Regexp, regexp, "The first argument to assert_no_match should be a Regexp.")
self._assertions -= 1
@@ -107,6 +222,15 @@ module Test
assert(regexp !~ string, msg)
end
+ # :call-seq:
+ # assert_not_same( expected, actual, failure_message = nil )
+ #
+ #Tests if +expected+ is not the same object as +actual+.
+ #This test uses Object#equal? to test equality.
+ #
+ #An optional failure message may be provided as the final argument.
+ #
+ # assert_not_same("x", "x") #Succeeds
def assert_not_same(expected, actual, message="")
msg = message(msg) { build_message(message, <<EOT, expected, expected.__id__, actual, actual.__id__) }
<?>
@@ -117,9 +241,70 @@ EOT
assert(!actual.equal?(expected), msg)
end
- # get rid of overcounting
+ # :call-seq:
+ # assert_respond_to( object, method, failure_message = nil )
+ #
+ #Tests if the given Object responds to +method+.
+ #
+ #An optional failure message may be provided as the final argument.
+ #
+ # assert_respond_to("hello", :reverse) #Succeeds
+ # assert_respond_to("hello", :does_not_exist) #Fails
def assert_respond_to obj, meth, msg = nil
- super if !caller[0].rindex(MiniTest::MINI_DIR, 0) || !obj.respond_to?(meth)
+ #get rid of overcounting
+ super if !caller[0].rindex(MINI_DIR, 0) || !obj.respond_to?(meth)
+ end
+
+ # :call-seq:
+ # assert_send( +send_array+, failure_message = nil )
+ #
+ # Passes if the method send returns a true value.
+ #
+ # +send_array+ is composed of:
+ # * A receiver
+ # * A method
+ # * Arguments to the method
+ #
+ # Example:
+ # assert_send([[1, 2], :member?, 1]) # -> pass
+ # assert_send([[1, 2], :member?, 4]) # -> fail
+ def assert_send send_ary, m = nil
+ recv, msg, *args = send_ary
+ m = message(m) {
+ if args.empty?
+ argsstr = ""
+ else
+ (argsstr = mu_pp(args)).sub!(/\A\[(.*)\]\z/m, '(\1)')
+ end
+ "Expected #{mu_pp(recv)}.#{msg}#{argsstr} to return true"
+ }
+ assert recv.__send__(msg, *args), m
+ end
+
+ # :call-seq:
+ # assert_not_send( +send_array+, failure_message = nil )
+ #
+ # Passes if the method send doesn't return a true value.
+ #
+ # +send_array+ is composed of:
+ # * A receiver
+ # * A method
+ # * Arguments to the method
+ #
+ # Example:
+ # assert_not_send([[1, 2], :member?, 1]) # -> fail
+ # assert_not_send([[1, 2], :member?, 4]) # -> pass
+ def assert_not_send send_ary, m = nil
+ recv, msg, *args = send_ary
+ m = message(m) {
+ if args.empty?
+ argsstr = ""
+ else
+ (argsstr = mu_pp(args)).sub!(/\A\[(.*)\]\z/m, '(\1)')
+ end
+ "Expected #{mu_pp(recv)}.#{msg}#{argsstr} to return false"
+ }
+ assert !recv.__send__(msg, *args), m
end
ms = instance_methods(true).map {|sym| sym.to_s }
@@ -127,10 +312,12 @@ EOT
mname = ('assert_not_' << m.to_s[/.*?_(.*)/, 1])
alias_method(mname, m) unless ms.include? mname
end
+ alias assert_include assert_includes
+ alias assert_not_include assert_not_includes
- def build_message(head, template=nil, *arguments)
+ def build_message(head, template=nil, *arguments) #:nodoc:
template &&= template.chomp
- template.gsub(/\?/) { mu_pp(arguments.shift) }
+ template.gsub(/\G((?:[^\\]|\\.)*?)(\\)?\?/) { $1 + ($2 ? "?" : mu_pp(arguments.shift)) }
end
end
end
diff --git a/lib/test/unit/parallel.rb b/lib/test/unit/parallel.rb
new file mode 100644
index 0000000000..7a7c73d4f2
--- /dev/null
+++ b/lib/test/unit/parallel.rb
@@ -0,0 +1,157 @@
+require 'test/unit'
+
+module Test
+ module Unit
+ class Worker < Runner
+ class << self
+ undef autorun
+ end
+
+ alias orig_run_suite _run_suite
+ undef _run_suite
+ undef _run_suites
+ undef run
+
+ def increment_io(orig)
+ *rest, io = 32.times.inject([orig.dup]){|ios, | ios << ios.last.dup }
+ rest.each(&:close)
+ io
+ end
+
+ def _run_suites(suites, type)
+ suites.map do |suite|
+ _run_suite(suite, type)
+ end
+ end
+
+ def _run_suite(suite, type)
+ r = report.dup
+ orig_testout = MiniTest::Unit.output
+ i,o = IO.pipe
+
+ MiniTest::Unit.output = o
+ orig_stdin, orig_stdout = $stdin, $stdout
+
+ th = Thread.new do
+ begin
+ while buf = (self.verbose ? i.gets : i.read(5))
+ @stdout.puts "p #{[buf].pack("m").gsub("\n","")}"
+ end
+ rescue IOError
+ rescue Errno::EPIPE
+ end
+ end
+
+ e, f, s = @errors, @failures, @skips
+
+ begin
+ result = orig_run_suite(suite, type)
+ rescue Interrupt
+ @need_exit = true
+ result = [nil,nil]
+ end
+
+ MiniTest::Unit.output = orig_testout
+ $stdin = orig_stdin
+ $stdout = orig_stdout
+
+ o.close
+ begin
+ th.join
+ rescue IOError
+ raise unless ["stream closed","closed stream"].include? $!.message
+ end
+ i.close
+
+ result << (report - r)
+ result << [@errors-e,@failures-f,@skips-s]
+ result << ($: - @old_loadpath)
+ result << suite.name
+
+ begin
+ @stdout.puts "done #{[Marshal.dump(result)].pack("m").gsub("\n","")}"
+ rescue Errno::EPIPE; end
+ return result
+ ensure
+ MiniTest::Unit.output = orig_stdout
+ $stdin = orig_stdin
+ $stdout = orig_stdout
+ o.close if o && !o.closed?
+ i.close if i && !i.closed?
+ end
+
+ def run(args = [])
+ process_args args
+ @@stop_auto_run = true
+ @opts = @options.dup
+ @need_exit = false
+
+ @old_loadpath = []
+ begin
+ @stdout = increment_io(STDOUT)
+ @stdin = increment_io(STDIN)
+ @stdout.sync = true
+ @stdout.puts "ready"
+ while buf = @stdin.gets
+ case buf.chomp
+ when /^loadpath (.+?)$/
+ @old_loadpath = $:.dup
+ $:.push(*Marshal.load($1.unpack("m")[0].force_encoding("ASCII-8BIT"))).uniq!
+ when /^run (.+?) (.+?)$/
+ @stdout.puts "okay"
+
+ @options = @opts.dup
+ suites = MiniTest::Unit::TestCase.test_suites
+
+ begin
+ require $1
+ rescue LoadError
+ @stdout.puts "after #{[Marshal.dump([$1, $!])].pack("m").gsub("\n","")}"
+ @stdout.puts "ready"
+ next
+ end
+ _run_suites MiniTest::Unit::TestCase.test_suites-suites, $2.to_sym
+
+ if @need_exit
+ begin
+ @stdout.puts "bye"
+ rescue Errno::EPIPE; end
+ exit
+ else
+ @stdout.puts "ready"
+ end
+ when /^quit$/
+ begin
+ @stdout.puts "bye"
+ rescue Errno::EPIPE; end
+ exit
+ end
+ end
+ rescue Errno::EPIPE
+ rescue Exception => e
+ begin
+ @stdout.puts "bye #{[Marshal.dump(e)].pack("m").gsub("\n","")}"
+ rescue Errno::EPIPE;end
+ exit
+ ensure
+ @stdin.close
+ @stdout.close
+ end
+ end
+ end
+ end
+end
+
+if $0 == __FILE__
+ module Test
+ module Unit
+ class TestCase < MiniTest::Unit::TestCase
+ def on_parallel_worker?
+ true
+ end
+ end
+ end
+ end
+
+ Test::Unit::Worker.new.run(ARGV)
+end
diff --git a/lib/test/unit/testcase.rb b/lib/test/unit/testcase.rb
index 89aa0f34c0..02f0f97987 100644
--- a/lib/test/unit/testcase.rb
+++ b/lib/test/unit/testcase.rb
@@ -2,8 +2,21 @@ require 'test/unit/assertions'
module Test
module Unit
+ # remove silly TestCase class
+ remove_const(:TestCase) if defined?(self::TestCase)
+
class TestCase < MiniTest::Unit::TestCase
include Assertions
+
+ def on_parallel_worker?
+ false
+ end
+
+ def run runner
+ @options = runner.options
+ super runner
+ end
+
def self.test_order
:sorted
end
diff --git a/lib/thread.rb b/lib/thread.rb
index cb6d8c62fc..58c4f6b9e6 100644
--- a/lib/thread.rb
+++ b/lib/thread.rb
@@ -1,6 +1,6 @@
#
-# thread.rb - thread support classes
-# by Yukihiro Matsumoto <matz@netlab.co.jp>
+# thread.rb - thread support classes
+# by Yukihiro Matsumoto <matz@netlab.co.jp>
#
# Copyright (C) 2001 Yukihiro Matsumoto
# Copyright (C) 2000 Network Applied Communication Laboratory, Inc.
@@ -59,14 +59,22 @@ class ConditionVariable
#
# Releases the lock held in +mutex+ and waits; reacquires the lock on wakeup.
#
- def wait(mutex)
+ # If +timeout+ is given, this method returns after +timeout+ seconds passed,
+ # even if no other thread doesn't signal.
+ #
+ def wait(mutex, timeout=nil)
begin
# TODO: mutex should not be used
@waiters_mutex.synchronize do
@waiters.push(Thread.current)
end
- mutex.sleep
+ mutex.sleep timeout
+ ensure
+ @waiters_mutex.synchronize do
+ @waiters.delete(Thread.current)
+ end
end
+ self
end
#
@@ -79,13 +87,14 @@ class ConditionVariable
rescue ThreadError
retry
end
+ self
end
#
# Wakes up all threads waiting for this lock.
#
def broadcast
- # TODO: imcomplete
+ # TODO: incomplete
waiters0 = nil
@waiters_mutex.synchronize do
waiters0 = @waiters.dup
@@ -93,10 +102,11 @@ class ConditionVariable
end
for t in waiters0
begin
- t.run
+ t.run
rescue ThreadError
end
end
+ self
end
end
@@ -134,7 +144,7 @@ class Queue
def initialize
@que = []
@waiting = []
- @que.taint # enable tainted comunication
+ @que.taint # enable tainted communication
@waiting.taint
self.taint
@mutex = Mutex.new
@@ -144,7 +154,6 @@ class Queue
# Pushes +obj+ to the queue.
#
def push(obj)
- t = nil
@mutex.synchronize{
@que.push obj
begin
@@ -154,10 +163,6 @@ class Queue
retry
end
}
- begin
- t.run if t
- rescue ThreadError
- end
end
#
@@ -176,8 +181,8 @@ class Queue
# thread isn't suspended, and an exception is raised.
#
def pop(non_block=false)
- while true
- @mutex.synchronize{
+ @mutex.synchronize{
+ while true
if @que.empty?
raise ThreadError, "queue empty" if non_block
@waiting.push Thread.current
@@ -185,8 +190,8 @@ class Queue
else
return @que.shift
end
- }
- end
+ end
+ }
end
#
@@ -247,7 +252,7 @@ class SizedQueue < Queue
raise ArgumentError, "queue size must be positive" unless max > 0
@max = max
@queue_wait = []
- @queue_wait.taint # enable tainted comunication
+ @queue_wait.taint # enable tainted comunication
super()
end
@@ -273,12 +278,12 @@ class SizedQueue < Queue
}
if diff
diff.times do
- begin
- t = @queue_wait.shift
- t.run if t
- rescue ThreadError
- retry
- end
+ begin
+ t = @queue_wait.shift
+ t.run if t
+ rescue ThreadError
+ retry
+ end
end
end
max
@@ -289,7 +294,6 @@ class SizedQueue < Queue
# until space becomes available.
#
def push(obj)
- t = nil
@mutex.synchronize{
while true
break if @que.length < @max
@@ -305,11 +309,6 @@ class SizedQueue < Queue
retry
end
}
-
- begin
- t.run if t
- rescue ThreadError
- end
end
#
@@ -327,7 +326,6 @@ class SizedQueue < Queue
#
def pop(*args)
retval = super
- t = nil
@mutex.synchronize {
if @que.length < @max
begin
@@ -338,10 +336,6 @@ class SizedQueue < Queue
end
end
}
- begin
- t.run if t
- rescue ThreadError
- end
retval
end
diff --git a/lib/thwait.rb b/lib/thwait.rb
index 09d99a6c5b..f5876236e4 100644
--- a/lib/thwait.rb
+++ b/lib/thwait.rb
@@ -1,39 +1,8 @@
#
# thwait.rb - thread synchronization class
-# $Release Version: 0.9 $
-# $Revision: 1.3 $
-# by Keiju ISHITSUKA(Nihpon Rational Software Co.,Ltd.)
-#
-# --
-# feature:
-# provides synchronization for multiple threads.
-#
-# class methods:
-# * ThreadsWait.all_waits(thread1,...)
-# waits until all of specified threads are terminated.
-# if a block is supplied for the method, evaluates it for
-# each thread termination.
-# * th = ThreadsWait.new(thread1,...)
-# creates synchronization object, specifying thread(s) to wait.
-#
-# methods:
-# * th.threads
-# list threads to be synchronized
-# * th.empty?
-# is there any thread to be synchronized.
-# * th.finished?
-# is there already terminated thread.
-# * th.join(thread1,...)
-# wait for specified thread(s).
-# * th.join_nowait(threa1,...)
-# specifies thread(s) to wait. non-blocking.
-# * th.next_wait
-# waits until any of specified threads is terminated.
-# * th.all_waits
-# waits until all of specified threads are terminated.
-# if a block is supplied for the method, evaluates it for
-# each thread termination.
-#
+# $Release Version: 0.9 $
+# $Revision: 1.3 $
+# by Keiju ISHITSUKA(Nihon Rational Software Co.,Ltd.)
require "thread.rb"
require "e2mmap.rb"
@@ -50,6 +19,11 @@ require "e2mmap.rb"
# STDERR.puts "Thread #{t} has terminated."
# end
#
+#
+# th = ThreadsWait.new(thread1,...)
+# th.next_wait # next one to be done
+#
+#
class ThreadsWait
RCS_ID='-$Id: thwait.rb,v 1.3 1998/06/26 03:19:34 keiju Exp keiju $-'
@@ -59,13 +33,13 @@ class ThreadsWait
#
# Waits until all specified threads have terminated. If a block is provided,
- # it is executed for each thread termination.
+ # it is executed for each thread as they terminate.
#
def ThreadsWait.all_waits(*threads) # :yield: thread
tw = ThreadsWait.new(*threads)
if block_given?
tw.all_waits do |th|
- yield th
+ yield th
end
else
tw.all_waits
@@ -82,25 +56,26 @@ class ThreadsWait
join_nowait(*threads) unless threads.empty?
end
- # Returns the array of threads in the wait queue.
+ # Returns the array of threads that have not terminated yet.
attr :threads
#
- # Returns +true+ if there are no threads to be synchronized.
+ # Returns +true+ if there are no threads in the pool still running.
#
def empty?
@threads.empty?
end
#
- # Returns +true+ if any thread has terminated.
+ # Returns +true+ if any thread has terminated and is ready to be collected.
#
def finished?
!@wait_queue.empty?
end
#
- # Waits for specified threads to terminate.
+ # Waits for specified threads to terminate, and returns when one of
+ # the threads terminated.
#
def join(*threads)
join_nowait(*threads)
@@ -116,11 +91,11 @@ class ThreadsWait
@threads.concat threads
for th in threads
Thread.start(th) do |t|
- begin
- t.join
- ensure
- @wait_queue.push t
- end
+ begin
+ t.join
+ ensure
+ @wait_queue.push t
+ end
end
end
end
@@ -156,13 +131,12 @@ class ThreadsWait
end
end
-ThWait = ThreadsWait
+##
+# An alias for ThreadsWait from thwait.rb
+ThWait = ThreadsWait
# Documentation comments:
# - Source of documentation is evenly split between Nutshell, existing
# comments, and my own rephrasing.
# - I'm not particularly confident that the comments are all exactly correct.
-# - The history, etc., up the top appears in the RDoc output. Perhaps it would
-# be better to direct that not to appear, and put something else there
-# instead.
diff --git a/lib/time.rb b/lib/time.rb
index 2e6ed324e3..1663af8e76 100644
--- a/lib/time.rb
+++ b/lib/time.rb
@@ -19,7 +19,7 @@
#
# === Doesn't depend on strftime
#
-# This library doesn't use +strftime+. Especially #rfc2822 doesn't depend
+# This library doesn't use +Time#strftime+. Especially #rfc2822 doesn't depend
# on +strftime+ because:
#
# * %a and %b are locale sensitive
@@ -35,8 +35,12 @@
# %z is required to generate zone in date-time of RFC 2822
# but it is not portable.
#
+# Note that +Time#strftime+ doesn't use +strftime()+ function in libc since Ruby 1.9.
+# This means +Time#strftime+ is locale-insensitive since Ruby 1.9.
+# The above statements are not valid now.
+#
-require 'date/format'
+require 'date'
#
# Implements the extensions to the Time class that are described in the
@@ -252,6 +256,10 @@ class Time
#
# A failure for Time.parse should be checked, though.
#
+ # time library should be required to use this method as follows.
+ #
+ # require 'time'
+ #
def parse(date, now=self.now)
comp = !block_given?
d = Date._parse(date, comp)
@@ -273,9 +281,13 @@ class Time
def strptime(date, format, now=self.now)
d = Date._strptime(date, format)
raise ArgumentError, "invalid strptime format - `#{format}'" unless d
- year = d[:year]
- year = yield(year) if year && block_given?
- make_time(year, d[:mon], d[:mday], d[:hour], d[:min], d[:sec], d[:sec_fraction], d[:zone], now)
+ if seconds = d[:seconds]
+ Time.at(seconds)
+ else
+ year = d[:year]
+ year = yield(year) if year && block_given?
+ make_time(year, d[:mon], d[:mday], d[:hour], d[:min], d[:sec], d[:sec_fraction], d[:zone], now)
+ end
end
MonthValue = {
@@ -293,6 +305,10 @@ class Time
#
# See #rfc2822 for more information on this format.
#
+ # time library should be required to use this method as follows.
+ #
+ # require 'time'
+ #
def rfc2822(date)
if /\A\s*
(?:(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun)\s*,\s*)?
@@ -342,6 +358,10 @@ class Time
#
# See #httpdate for more information on this format.
#
+ # time library should be required to use this method as follows.
+ #
+ # require 'time'
+ #
def httpdate(date)
if /\A\s*
(?:Mon|Tue|Wed|Thu|Fri|Sat|Sun),\x20
@@ -389,6 +409,10 @@ class Time
#
# See #xmlschema for more information on this format.
#
+ # time library should be required to use this method as follows.
+ #
+ # require 'time'
+ #
def xmlschema(date)
if /\A\s*
(-?\d+)-(\d\d)-(\d\d)
@@ -431,10 +455,14 @@ class Time
#
# If +self+ is a UTC time, -0000 is used as zone.
#
+ # time library should be required to use this method as follows.
+ #
+ # require 'time'
+ #
def rfc2822
- sprintf('%s, %02d %s %04d %02d:%02d:%02d ',
+ sprintf('%s, %02d %s %0*d %02d:%02d:%02d ',
RFC2822_DAY_NAME[wday],
- day, RFC2822_MONTH_NAME[mon-1], year,
+ day, RFC2822_MONTH_NAME[mon-1], year < 0 ? 5 : 4, year,
hour, min, sec) +
if utc?
'-0000'
@@ -462,11 +490,15 @@ class Time
#
# Note that the result is always UTC (GMT).
#
+ # time library should be required to use this method as follows.
+ #
+ # require 'time'
+ #
def httpdate
t = dup.utc
- sprintf('%s, %02d %s %04d %02d:%02d:%02d GMT',
+ sprintf('%s, %02d %s %0*d %02d:%02d:%02d GMT',
RFC2822_DAY_NAME[t.wday],
- t.day, RFC2822_MONTH_NAME[t.mon-1], t.year,
+ t.day, RFC2822_MONTH_NAME[t.mon-1], t.year < 0 ? 5 : 4, t.year,
t.hour, t.min, t.sec)
end
@@ -484,10 +516,14 @@ class Time
# +fractional_seconds+ specifies a number of digits of fractional seconds.
# Its default value is 0.
#
+ # time library should be required to use this method as follows.
+ #
+ # require 'time'
+ #
def xmlschema(fraction_digits=0)
- sprintf('%04d-%02d-%02dT%02d:%02d:%02d',
- year, mon, day, hour, min, sec) +
- if fraction_digits == 0
+ sprintf('%0*d-%02d-%02dT%02d:%02d:%02d',
+ year < 0 ? 5 : 4, year, mon, day, hour, min, sec) +
+ if fraction_digits <= 0
''
else
'.' + sprintf('%0*d', fraction_digits, (subsec * 10**fraction_digits).floor)
diff --git a/lib/timeout.rb b/lib/timeout.rb
index 893b5f8f58..91d120a113 100644
--- a/lib/timeout.rb
+++ b/lib/timeout.rb
@@ -1,23 +1,22 @@
-# = timeout.rb
+# Timeout long-running blocks
#
-# execution timeout
-#
-# = Synopsis
+# == Synopsis
#
# require 'timeout'
# status = Timeout::timeout(5) {
-# # Something that should be interrupted if it takes too much time...
+# # Something that should be interrupted if it takes more than 5 seconds...
# }
#
-# = Description
+# == Description
#
-# A way of performing a potentially long-running operation in a thread, and terminating
-# it's execution if it hasn't finished by a fixed amount of time.
+# Timeout provides a way to auto-terminate a potentially long-running
+# operation if it hasn't finished in a fixed amount of time.
#
-# Previous versions of timeout didn't provide use a module for namespace. This version
-# provides both Timeout.timeout, and a backwards-compatible #timeout.
+# Previous versions didn't use a module for namespacing, however
+# #timeout is provided for backwards compatibility. You
+# should prefer Timeout#timeout instead.
#
-# = Copyright
+# == Copyright
#
# Copyright:: (C) 2000 Network Applied Communication Laboratory, Inc.
# Copyright:: (C) 2000 Information-technology Promotion Agency, Japan
@@ -29,27 +28,50 @@ module Timeout
class ExitException < ::Exception # :nodoc:
end
+ # :stopdoc:
THIS_FILE = /\A#{Regexp.quote(__FILE__)}:/o
CALLER_OFFSET = ((c = caller[0]) && THIS_FILE =~ c) ? 1 : 0
+ # :startdoc:
- # Executes the method's block. If the block execution terminates before
- # +sec+ seconds has passed, it returns the result value of the block.
- # If not, it terminates the execution and raises +exception+ (which defaults
- # to Timeout::Error).
+ # Perform an operation in a block, timing it out if it takes longer
+ # than +sec+ seconds to complete.
+ #
+ # +sec+:: Number of seconds to wait for the block to terminate. Any number
+ # may be used, including Floats to specify fractional seconds.
+ # +klass+:: Exception Class to raise if the block fails to terminate
+ # in +sec+ seconds. Omitting will use the default, Timeout::Error
+ #
+ # The block will be executed on another thread and will be given one
+ # argument: +sec+.
+ #
+ # Returns the result of the block *if* the block completed before
+ # +sec+ seconds, otherwise throws an exception, based on the value of +klass+.
#
- # Note that this is both a method of module Timeout, so you can 'include Timeout'
- # into your classes so they have a #timeout method, as well as a module method,
- # so you can call it directly as Timeout.timeout().
+ # Note that this is both a method of module Timeout, so you can <tt>include
+ # Timeout</tt> into your classes so they have a #timeout method, as well as
+ # a module method, so you can call it directly as Timeout.timeout().
def timeout(sec, klass = nil) #:yield: +sec+
return yield(sec) if sec == nil or sec.zero?
exception = klass || Class.new(ExitException)
begin
- x = Thread.current
- y = Thread.start {
- sleep sec
- x.raise exception, "execution expired" if x.alive?
- }
- return yield(sec)
+ begin
+ x = Thread.current
+ y = Thread.start {
+ begin
+ sleep sec
+ rescue => e
+ x.raise e
+ else
+ x.raise exception, "execution expired"
+ end
+ }
+ return yield(sec)
+ ensure
+ if y
+ y.kill
+ y.join # make sure y is dead.
+ end
+ end
rescue exception => e
rej = /\A#{Regexp.quote(__FILE__)}:#{__LINE__-4}\z/o
(bt = e.backtrace).reject! {|m| rej =~ m}
@@ -61,11 +83,6 @@ module Timeout
raise if klass # if exception class is specified, it
# would be expected outside.
raise Error, e.message, e.backtrace
- ensure
- if y and y.alive?
- y.kill
- y.join # make sure y is dead.
- end
end
end
@@ -76,8 +93,8 @@ end
#
# Timeout::timeout(n, e, &block).
#
-# Defined for backwards compatibility with earlier versions of timeout.rb, see
-# Timeout#timeout.
+# This method is deprecated and provided only for backwards compatibility.
+# You should use Timeout#timeout instead.
def timeout(n, e = nil, &block)
Timeout::timeout(n, e, &block)
end
@@ -85,24 +102,3 @@ end
# Another name for Timeout::Error, defined for backwards compatibility with
# earlier versions of timeout.rb.
TimeoutError = Timeout::Error
-
-if __FILE__ == $0
- p timeout(5) {
- 45
- }
- p timeout(5, TimeoutError) {
- 45
- }
- p timeout(nil) {
- 54
- }
- p timeout(0) {
- 54
- }
- p timeout(5) {
- loop {
- p 10
- sleep 1
- }
- }
-end
diff --git a/lib/tmpdir.rb b/lib/tmpdir.rb
index 9fd36039d7..d7f68272e8 100644
--- a/lib/tmpdir.rb
+++ b/lib/tmpdir.rb
@@ -5,32 +5,14 @@
#
require 'fileutils'
+begin
+ require 'etc.so'
+rescue LoadError
+end
class Dir
- @@systmpdir = '/tmp'
-
- begin
- require 'Win32API'
- CSIDL_LOCAL_APPDATA = 0x001c
- max_pathlen = 260
- windir = "\0"*(max_pathlen+1)
- begin
- getdir = Win32API.new('shell32', 'SHGetFolderPath', 'LLLLP', 'L')
- raise RuntimeError if getdir.call(0, CSIDL_LOCAL_APPDATA, 0, 0, windir) != 0
- windir.rstrip!
- rescue RuntimeError
- begin
- getdir = Win32API.new('kernel32', 'GetSystemWindowsDirectory', 'PL', 'L')
- rescue RuntimeError
- getdir = Win32API.new('kernel32', 'GetWindowsDirectory', 'PL', 'L')
- end
- windir[getdir.call(windir, windir.size)..-1] = ""
- end
- temp = File.expand_path('temp', windir.untaint)
- @@systmpdir = temp if File.directory?(temp) and File.writable?(temp)
- rescue LoadError
- end
+ @@systmpdir ||= defined?(Etc.systmpdir) ? Etc.systmpdir : '/tmp'
##
# Returns the operating system's temporary file path.
@@ -41,10 +23,10 @@ class Dir
tmp = @@systmpdir
else
for dir in [ENV['TMPDIR'], ENV['TMP'], ENV['TEMP'], @@systmpdir, '/tmp']
- if dir and stat = File.stat(dir) and stat.directory? and stat.writable?
- tmp = dir
- break
- end rescue nil
+ if dir and stat = File.stat(dir) and stat.directory? and stat.writable?
+ tmp = dir
+ break
+ end rescue nil
end
File.expand_path(tmp)
end
@@ -94,41 +76,67 @@ class Dir
# FileUtils.remove_entry_secure dir
# end
#
- def Dir.mktmpdir(prefix_suffix=nil, tmpdir=nil)
- case prefix_suffix
- when nil
- prefix = "d"
- suffix = ""
- when String
- prefix = prefix_suffix
- suffix = ""
- when Array
- prefix = prefix_suffix[0]
- suffix = prefix_suffix[1]
+ def Dir.mktmpdir(prefix_suffix=nil, *rest)
+ path = Tmpname.create(prefix_suffix || "d", *rest) {|n| mkdir(n, 0700)}
+ if block_given?
+ begin
+ yield path
+ ensure
+ FileUtils.remove_entry_secure path
+ end
else
- raise ArgumentError, "unexpected prefix_suffix: #{prefix_suffix.inspect}"
+ path
end
- tmpdir ||= Dir.tmpdir
- t = Time.now.strftime("%Y%m%d")
- n = nil
- begin
- path = "#{tmpdir}/#{prefix}#{t}-#{$$}-#{rand(0x100000000).to_s(36)}"
+ end
+
+ module Tmpname # :nodoc:
+ module_function
+
+ def tmpdir
+ Dir.tmpdir
+ end
+
+ def make_tmpname(prefix_suffix, n)
+ case prefix_suffix
+ when String
+ prefix = prefix_suffix
+ suffix = ""
+ when Array
+ prefix = prefix_suffix[0]
+ suffix = prefix_suffix[1]
+ else
+ raise ArgumentError, "unexpected prefix_suffix: #{prefix_suffix.inspect}"
+ end
+ t = Time.now.strftime("%Y%m%d")
+ path = "#{prefix}#{t}-#{$$}-#{rand(0x100000000).to_s(36)}"
path << "-#{n}" if n
path << suffix
- Dir.mkdir(path, 0700)
- rescue Errno::EEXIST
- n ||= 0
- n += 1
- retry
end
- if block_given?
+ def create(basename, *rest)
+ if opts = Hash.try_convert(rest[-1])
+ opts = opts.dup if rest.pop.equal?(opts)
+ max_try = opts.delete(:max_try)
+ opts = [opts]
+ else
+ opts = []
+ end
+ tmpdir, = *rest
+ if $SAFE > 0 and tmpdir.tainted?
+ tmpdir = '/tmp'
+ else
+ tmpdir ||= tmpdir()
+ end
+ n = nil
begin
- yield path
- ensure
- FileUtils.remove_entry_secure path
+ path = File.expand_path(make_tmpname(basename, n), tmpdir)
+ yield(path, n, *opts)
+ rescue Errno::EEXIST
+ n ||= 0
+ n += 1
+ retry if !max_try or n < max_try
+ raise "cannot generate temporary name using `#{basename}' under `#{tmpdir}'"
end
- else
path
end
end
diff --git a/lib/tracer.rb b/lib/tracer.rb
index 8e6586d7c6..4b2429508d 100644
--- a/lib/tracer.rb
+++ b/lib/tracer.rb
@@ -1,39 +1,115 @@
+##
+# = Tracer
#
-# tracer.rb -
-# $Release Version: 0.2$
-# $Revision: 1.8 $
-# by Keiju ISHITSUKA(Nippon Rational Inc.)
+# Tracer outputs a source level execution trace of a Ruby program. It does
+# this by registering an event handler with <code>Kernel#set_trace_func</code>
+# for processing incoming events. It also provides methods for filtering
+# unwanted trace output (see Tracer.add_filter, Tracer.on, and Tracer.off).
#
-# --
+# == Example
#
+# Consider the following ruby script
#
+# class A
+# def square(a)
+# return a*a
+# end
+# end
#
+# a = A.new
+# a.square(5)
+#
+# Running the above script using <code>ruby -r tracer example.rb</code> will
+# output the following trace to STDOUT (Note you can also explicitly
+# <code>require 'tracer'</code>)
+#
+# #0:<internal:lib/rubygems/custom_require>:38:Kernel:<: -
+# #0:example.rb:3::-: class A
+# #0:example.rb:3::C: class A
+# #0:example.rb:4::-: def square(a)
+# #0:example.rb:7::E: end
+# #0:example.rb:9::-: a = A.new
+# #0:example.rb:10::-: a.square(5)
+# #0:example.rb:4:A:>: def square(a)
+# #0:example.rb:5:A:-: return a*a
+# #0:example.rb:6:A:<: end
+# | | | | |
+# | | | | ---------------------+ event
+# | | | ------------------------+ class
+# | | --------------------------+ line
+# | ------------------------------------+ filename
+# ---------------------------------------+ thread
+#
+# Symbol table used for displaying incoming events:
+#
+# <tt>}</tt>:: call a C-language routine
+# <tt>{</tt>:: return from a C-language routine
+# <tt>></tt>:: call a Ruby method
+# <tt>C</tt>:: start a class or module definition
+# <tt>E</tt>:: finish a class or module definition
+# <tt>-</tt>:: execute code on a new line
+# <tt>^</tt>:: raise an exception
+# <tt><</tt>:: return from a Ruby method
+#
+# == Copyright
+#
+# by Keiju ISHITSUKA(keiju@ishitsuka.com)
+#
+#--
+# $Release Version: 0.3$
+# $Revision: 1.12 $
+require "thread"
#
# tracer main class
#
class Tracer
- @RCS_ID='-$Id: tracer.rb,v 1.8 1998/05/19 03:42:49 keiju Exp keiju $-'
-
- @stdout = STDOUT
- @verbose = false
class << self
+ # display additional debug information (defaults to false)
attr_accessor :verbose
alias verbose? verbose
+
+ # output stream used to output trace (defaults to STDOUT)
attr_accessor :stdout
+
+ # mutex lock used by tracer for displaying trace output
+ attr_reader :stdout_mutex
+
+ # display process id in trace output (defaults to false)
+ attr_accessor :display_process_id
+ alias display_process_id? display_process_id
+
+ # display thread id in trace output (defaults to true)
+ attr_accessor :display_thread_id
+ alias display_thread_id? display_thread_id
+
+ # display C-routine calls in trace output (defaults to false)
+ attr_accessor :display_c_call
+ alias display_c_call? display_c_call
end
+ Tracer::stdout = STDOUT
+ Tracer::verbose = false
+ Tracer::display_process_id = false
+ Tracer::display_thread_id = true
+ Tracer::display_c_call = false
+
+ @stdout_mutex = Mutex.new
+
+ # Symbol table used for displaying trace information
EVENT_SYMBOL = {
"line" => "-",
"call" => ">",
"return" => "<",
"class" => "C",
"end" => "E",
- "c-call" => ">",
- "c-return" => "<",
+ "raise" => "^",
+ "c-call" => "}",
+ "c-return" => "{",
+ "unknown" => "?"
}
- def initialize
+ def initialize # :nodoc:
@threads = Hash.new
if defined? Thread.main
@threads[Thread.main.object_id] = 0
@@ -46,17 +122,17 @@ class Tracer
@filters = []
end
- def stdout
+ def stdout # :nodoc:
Tracer.stdout
end
- def on
+ def on # :nodoc:
if block_given?
on
begin
- yield
+ yield
ensure
- off
+ off
end
else
set_trace_func method(:trace_func).to_proc
@@ -64,34 +140,34 @@ class Tracer
end
end
- def off
+ def off # :nodoc:
set_trace_func nil
stdout.print "Trace off\n" if Tracer.verbose?
end
- def add_filter(p = proc)
+ def add_filter(p = proc) # :nodoc:
@filters.push p
end
- def set_get_line_procs(file, p = proc)
+ def set_get_line_procs(file, p = proc) # :nodoc:
@get_line_procs[file] = p
end
- def get_line(file, line)
+ def get_line(file, line) # :nodoc:
if p = @get_line_procs[file]
return p.call(line)
end
unless list = SCRIPT_LINES__[file]
begin
- f = open(file)
- begin
- SCRIPT_LINES__[file] = list = f.readlines
- ensure
- f.close
- end
+ f = File::open(file)
+ begin
+ SCRIPT_LINES__[file] = list = f.readlines
+ ensure
+ f.close
+ end
rescue
- SCRIPT_LINES__[file] = list = []
+ SCRIPT_LINES__[file] = list = []
end
end
@@ -102,7 +178,7 @@ class Tracer
end
end
- def get_thread_no
+ def get_thread_no # :nodoc:
if no = @threads[Thread.current.object_id]
no
else
@@ -110,26 +186,54 @@ class Tracer
end
end
- def trace_func(event, file, line, id, binding, klass, *)
+ def trace_func(event, file, line, id, binding, klass, *) # :nodoc:
return if file == __FILE__
for p in @filters
return unless p.call event, file, line, id, binding, klass
end
- # saved_crit = Thread.critical
- # Thread.critical = true
- stdout.printf("#%d:%s:%d:%s:%s: %s",
- get_thread_no,
- file,
- line,
- klass || '',
- EVENT_SYMBOL[event],
- get_line(file, line))
- # Thread.critical = saved_crit
+ return unless Tracer::display_c_call? or
+ event != "c-call" && event != "c-return"
+
+ Tracer::stdout_mutex.synchronize do
+ if EVENT_SYMBOL[event]
+ stdout.printf("<%d>", $$) if Tracer::display_process_id?
+ stdout.printf("#%d:", get_thread_no) if Tracer::display_thread_id?
+ if line == 0
+ source = "?\n"
+ else
+ source = get_line(file, line)
+ end
+ printf("%s:%d:%s:%s: %s",
+ file,
+ line,
+ klass || '',
+ EVENT_SYMBOL[event],
+ source)
+ end
+ end
+
end
+ # Reference to singleton instance of Tracer
Single = new
+
+ ##
+ # Start tracing
+ #
+ # === Example
+ #
+ # Tracer.on
+ # # code to trace here
+ # Tracer.off
+ #
+ # You can also pass a block:
+ #
+ # Tracer.on {
+ # # trace everything in this block
+ # }
+
def Tracer.on
if block_given?
Single.on{yield}
@@ -138,20 +242,42 @@ class Tracer
end
end
+ ##
+ # Disable tracing
+
def Tracer.off
Single.off
end
+ ##
+ # Register an event handler <code>p</code> which is called everytime a line
+ # in +file_name+ is executed.
+ #
+ # Example:
+ #
+ # Tracer.set_get_line_procs("example.rb", lambda { |line|
+ # puts "line number executed is #{line}"
+ # })
+
def Tracer.set_get_line_procs(file_name, p = proc)
Single.set_get_line_procs(file_name, p)
end
+ ##
+ # Used to filter unwanted trace output
+ #
+ # Example which only outputs lines of code executed within the Kernel class:
+ #
+ # Tracer.add_filter do |event, file, line, id, binding, klass, *rest|
+ # "Kernel" == klass.to_s
+ # end
+
def Tracer.add_filter(p = proc)
Single.add_filter(p)
end
-
end
+# :stopdoc:
SCRIPT_LINES__ = {} unless defined? SCRIPT_LINES__
if $0 == __FILE__
@@ -161,6 +287,12 @@ if $0 == __FILE__
ARGV.shift
Tracer.on
require $0
-elsif caller(0).size == 1
- Tracer.on
+else
+ # call Tracer.on only if required by -r command-line option
+ count = caller.count {|bt| /\/rubygems\/custom_require.rb:/ !~ bt}
+ if (defined?(Gem) and count == 0) or
+ (!defined?(Gem) and count <= 1)
+ Tracer.on
+ end
end
+# :startdoc:
diff --git a/lib/un.rb b/lib/un.rb
index 0ce88a5c37..0a2e37277a 100644
--- a/lib/un.rb
+++ b/lib/un.rb
@@ -21,6 +21,7 @@
# ruby -run -e touch -- [OPTION] FILE
# ruby -run -e wait_writable -- [OPTION] FILE
# ruby -run -e mkmf -- [OPTION] EXTNAME [OPTION]
+# ruby -run -e httpd -- [OPTION] DocumentRoot
# ruby -run -e help [COMMAND]
require "fileutils"
@@ -42,8 +43,12 @@ def setup(options = "", *long_options)
end
end
long_options.each do |s|
- opt_name = s[/\A(?:--)?([^\s=]+)/, 1].intern
- o.on(s.sub(/\A(?!--)/, '--')) do |val|
+ opt_name, arg_name = s.split(/(?=[\s=])/, 2)
+ opt_name.sub!(/\A--/, '')
+ s = "--#{opt_name.gsub(/([A-Z]+|[a-z])([A-Z])/, '\1-\2').downcase}#{arg_name}"
+ puts "#{opt_name}=>#{s}" if $DEBUG
+ opt_name = opt_name.intern
+ o.on(s) do |val|
opt_hash[opt_name] = val
end
end
@@ -64,9 +69,9 @@ end
#
# ruby -run -e cp -- [OPTION] SOURCE DEST
#
-# -p preserve file attributes if possible
-# -r copy recursively
-# -v verbose
+# -p preserve file attributes if possible
+# -r copy recursively
+# -v verbose
#
def cp
@@ -85,9 +90,9 @@ end
#
# ruby -run -e ln -- [OPTION] TARGET LINK_NAME
#
-# -s make symbolic links instead of hard links
-# -f remove existing destination files
-# -v verbose
+# -s make symbolic links instead of hard links
+# -f remove existing destination files
+# -v verbose
#
def ln
@@ -106,7 +111,7 @@ end
#
# ruby -run -e mv -- [OPTION] SOURCE DEST
#
-# -v verbose
+# -v verbose
#
def mv
@@ -122,9 +127,9 @@ end
#
# ruby -run -e rm -- [OPTION] FILE
#
-# -f ignore nonexistent files
-# -r remove the contents of directories recursively
-# -v verbose
+# -f ignore nonexistent files
+# -r remove the contents of directories recursively
+# -v verbose
#
def rm
@@ -141,8 +146,8 @@ end
#
# ruby -run -e mkdir -- [OPTION] DIR
#
-# -p no error if existing, make parent directories as needed
-# -v verbose
+# -p no error if existing, make parent directories as needed
+# -v verbose
#
def mkdir
@@ -158,8 +163,8 @@ end
#
# ruby -run -e rmdir -- [OPTION] DIR
#
-# -p remove DIRECTORY and its ancestors.
-# -v verbose
+# -p remove DIRECTORY and its ancestors.
+# -v verbose
#
def rmdir
@@ -174,10 +179,10 @@ end
#
# ruby -run -e install -- [OPTION] SOURCE DEST
#
-# -p apply access/modification times of SOURCE files to
-# corresponding destination files
-# -m set permission mode (as in chmod), instead of 0755
-# -v verbose
+# -p apply access/modification times of SOURCE files to
+# corresponding destination files
+# -m set permission mode (as in chmod), instead of 0755
+# -v verbose
#
def install
@@ -195,7 +200,7 @@ end
#
# ruby -run -e chmod -- [OPTION] OCTAL-MODE FILE
#
-# -v verbose
+# -v verbose
#
def chmod
@@ -210,7 +215,7 @@ end
#
# ruby -run -e touch -- [OPTION] FILE
#
-# -v verbose
+# -v verbose
#
def touch
@@ -224,9 +229,9 @@ end
#
# ruby -run -e wait_writable -- [OPTION] FILE
#
-# -n RETRY count to retry
-# -w SEC each wait time in seconds
-# -v verbose
+# -n RETRY count to retry
+# -w SEC each wait time in seconds
+# -v verbose
#
def wait_writable
@@ -255,15 +260,15 @@ end
#
# ruby -run -e mkmf -- [OPTION] EXTNAME [OPTION]
#
-# -d ARGS run dir_config
-# -h ARGS run have_header
-# -l ARGS run have_library
-# -f ARGS run have_func
-# -v ARGS run have_var
-# -t ARGS run have_type
-# -m ARGS run have_macro
-# -c ARGS run have_const
-# --vendor install to vendor_ruby
+# -d ARGS run dir_config
+# -h ARGS run have_header
+# -l ARGS run have_library
+# -f ARGS run have_func
+# -v ARGS run have_var
+# -t ARGS run have_type
+# -m ARGS run have_macro
+# -c ARGS run have_const
+# --vendor install to vendor_ruby
#
def mkmf
@@ -283,6 +288,45 @@ def mkmf
end
##
+# Run WEBrick HTTP server.
+#
+# ruby -run -e httpd -- [OPTION] DocumentRoot
+#
+# --bind-address=ADDR address to bind
+# --port=NUM listening port number
+# --max-clients=MAX max number of simultaneous clients
+# --temp-dir=DIR temporary directory
+# --do-not-reverse-lookup disable reverse lookup
+# --request-timeout=SECOND request timeout in seconds
+# --http-version=VERSION HTTP version
+# -v verbose
+#
+
+def httpd
+ setup("", "BindAddress=ADDR", "Port=PORT", "MaxClients=NUM", "TempDir=DIR",
+ "DoNotReverseLookup", "RequestTimeout=SECOND", "HTTPVersion=VERSION") do
+ |argv, options|
+ require 'webrick'
+ opt = options[:RequestTimeout] and options[:RequestTimeout] = opt.to_i
+ [:Port, :MaxClients].each do |name|
+ opt = options[name] and (options[name] = Integer(opt)) rescue nil
+ end
+ unless argv.empty?
+ options[:DocumentRoot] = argv.shift
+ end
+ s = WEBrick::HTTPServer.new(options)
+ shut = proc {s.shutdown}
+ Signal.trap("TERM", shut)
+ Signal.trap("QUIT", shut) if Signal.list.has_key?("QUIT")
+ if STDIN.tty?
+ Signal.trap("HUP", shut) if Signal.list.has_key?("HUP")
+ Signal.trap("INT", shut)
+ end
+ s.start
+ end
+end
+
+##
# Display help message.
#
# ruby -run -e help [COMMAND]
@@ -293,11 +337,11 @@ def help
all = argv.empty?
open(__FILE__) do |me|
while me.gets("##\n")
- if help = me.gets("\n\n")
- if all or argv.delete help[/-e \w+/].sub(/-e /, "")
- print help.gsub(/^# ?/, "")
- end
- end
+ if help = me.gets("\n\n")
+ if all or argv.delete help[/-e \w+/].sub(/-e /, "")
+ print help.gsub(/^# ?/, "")
+ end
+ end
end
end
end
diff --git a/lib/uri.rb b/lib/uri.rb
index 41bb09b467..2e136eb682 100644
--- a/lib/uri.rb
+++ b/lib/uri.rb
@@ -1,15 +1,97 @@
+# URI is a module providing classes to handle Uniform Resource Identifiers
+# (RFC2396[http://tools.ietf.org/html/rfc2396])
#
-# URI support for Ruby
+# == Features
+#
+# * Uniform handling of handling URIs
+# * Flexibility to introduce custom URI schemes
+# * Flexibility to have an alternate URI::Parser (or just different patterns
+# and regexp's)
+#
+# == Basic example
+#
+# require 'uri'
+#
+# uri = URI("http://foo.com/posts?id=30&limit=5#time=1305298413")
+# #=> #<URI::HTTP:0x00000000b14880
+# URL:http://foo.com/posts?id=30&limit=5#time=1305298413>
+# uri.scheme
+# #=> "http"
+# uri.host
+# #=> "foo.com"
+# uri.path
+# #=> "/posts"
+# uri.query
+# #=> "id=30&limit=5"
+# uri.fragment
+# #=> "time=1305298413"
+#
+# uri.to_s
+# #=> "http://foo.com/posts?id=30&limit=5#time=1305298413"
+#
+# == Adding custom URIs
+#
+# module URI
+# class RSYNC < Generic
+# DEFAULT_PORT = 873
+# end
+# @@schemes['RSYNC'] = RSYNC
+# end
+# #=> URI::RSYNC
+#
+# URI.scheme_list
+# #=> {"FTP"=>URI::FTP, "HTTP"=>URI::HTTP, "HTTPS"=>URI::HTTPS,
+# "LDAP"=>URI::LDAP, "LDAPS"=>URI::LDAPS, "MAILTO"=>URI::MailTo,
+# "RSYNC"=>URI::RSYNC}
+#
+# uri = URI("rsync://rsync.foo.com")
+# #=> #<URI::RSYNC:0x00000000f648c8 URL:rsync://rsync.foo.com>
+#
+# == RFC References
+#
+# A good place to view an RFC spec is http://www.ietf.org/rfc.html
+#
+# Here is a list of all related RFC's.
+# - RFC822[http://tools.ietf.org/html/rfc822]
+# - RFC1738[http://tools.ietf.org/html/rfc1738]
+# - RFC2255[http://tools.ietf.org/html/rfc2255]
+# - RFC2368[http://tools.ietf.org/html/rfc2368]
+# - RFC2373[http://tools.ietf.org/html/rfc2373]
+# - RFC2396[http://tools.ietf.org/html/rfc2396]
+# - RFC2732[http://tools.ietf.org/html/rfc2732]
+# - RFC3986[http://tools.ietf.org/html/rfc3986]
+#
+# == Class tree
+#
+# - URI::Generic (in uri/generic.rb)
+# - URI::FTP - (in uri/ftp.rb)
+# - URI::HTTP - (in uri/http.rb)
+# - URI::HTTPS - (in uri/https.rb)
+# - URI::LDAP - (in uri/ldap.rb)
+# - URI::LDAPS - (in uri/ldaps.rb)
+# - URI::MailTo - (in uri/mailto.rb)
+# - URI::Parser - (in uri/common.rb)
+# - URI::REGEXP - (in uri/common.rb)
+# - URI::REGEXP::PATTERN - (in uri/common.rb)
+# - URI::Util - (in uri/common.rb)
+# - URI::Escape - (in uri/common.rb)
+# - URI::Error - (in uri/common.rb)
+# - URI::InvalidURIError - (in uri/common.rb)
+# - URI::InvalidComponentError - (in uri/common.rb)
+# - URI::BadURIError - (in uri/common.rb)
+#
+# == Copyright Info
#
# Author:: Akira Yamada <akira@ruby-lang.org>
-# Documentation:: Akira Yamada <akira@ruby-lang.org>, Dmitry V. Sabanin <sdmitry@lrn.ru>
+# Documentation::
+# Akira Yamada <akira@ruby-lang.org>
+# Dmitry V. Sabanin <sdmitry@lrn.ru>
+# Vincent Batts <vbatts@hashbangbash.com>
# License::
# Copyright (c) 2001 akira yamada <akira@ruby-lang.org>
# You can redistribute it and/or modify it under the same term as Ruby.
# Revision:: $Id$
#
-# See URI for documentation
-#
module URI
# :stopdoc:
diff --git a/lib/uri/.document b/lib/uri/.document
deleted file mode 100644
index 214dd2e48f..0000000000
--- a/lib/uri/.document
+++ /dev/null
@@ -1,7 +0,0 @@
-common.rb
-ftp.rb
-generic.rb
-http.rb
-https.rb
-ldap.rb
-mailto.rb
diff --git a/lib/uri/common.rb b/lib/uri/common.rb
index 828b2b8a4a..288bbe191e 100644
--- a/lib/uri/common.rb
+++ b/lib/uri/common.rb
@@ -1,3 +1,4 @@
+#--
# = uri/common.rb
#
# Author:: Akira Yamada <akira@ruby-lang.org>
@@ -5,8 +6,13 @@
# License::
# You can redistribute it and/or modify it under the same term as Ruby.
#
+# See URI for general documentation
+#
module URI
+ #
+ # Includes URI::REGEXP::PATTERN
+ #
module REGEXP
#
# Patterns used to parse URI's
@@ -31,7 +37,7 @@ module URI
# mark = "-" | "_" | "." | "!" | "~" | "*" | "'" |
# "(" | ")"
# unreserved = alphanum | mark
- UNRESERVED = "-_.!~*'()#{ALNUM}"
+ UNRESERVED = "\\-_.!~*'()#{ALNUM}"
# reserved = ";" | "/" | "?" | ":" | "@" | "&" | "=" | "+" |
# "$" | ","
# reserved = ";" | "/" | "?" | ":" | "@" | "&" | "=" | "+" |
@@ -51,6 +57,10 @@ module URI
# :startdoc:
end # REGEXP
+ # class that Parses String's into URI's
+ #
+ # It contains a Hash set of patterns and Regexp's that match and validate.
+ #
class Parser
include REGEXP
@@ -68,15 +78,15 @@ module URI
#
# You can use the following keys:
#
- # * <tt>:ESCAPED</tt> (URI::PATTERN::ESCAPED in default)
- # * <tt>:UNRESERVED</tt> (URI::PATTERN::UNRESERVED in default)
- # * <tt>:DOMLABEL</tt> (URI::PATTERN::DOMLABEL in default)
- # * <tt>:TOPLABEL</tt> (URI::PATTERN::TOPLABEL in default)
- # * <tt>:HOSTNAME</tt> (URI::PATTERN::HOSTNAME in default)
+ # * :ESCAPED (URI::PATTERN::ESCAPED in default)
+ # * :UNRESERVED (URI::PATTERN::UNRESERVED in default)
+ # * :DOMLABEL (URI::PATTERN::DOMLABEL in default)
+ # * :TOPLABEL (URI::PATTERN::TOPLABEL in default)
+ # * :HOSTNAME (URI::PATTERN::HOSTNAME in default)
#
# == Examples
#
- # p = URI::Parser.new(:ESCPAED => "(?:%[a-fA-F0-9]{2}|%u[a-fA-F0-9]{4})"
+ # p = URI::Parser.new(:ESCAPED => "(?:%[a-fA-F0-9]{2}|%u[a-fA-F0-9]{4})")
# u = p.parse("http://example.jp/%uABCD") #=> #<URI::HTTP:0xb78cf4f8 URL:http://example.jp/%uABCD>
# URI.parse(u.to_s) #=> raises URI::InvalidURIError
#
@@ -95,122 +105,197 @@ module URI
@regexp.each_value {|v| v.freeze}
@regexp.freeze
end
- attr_reader :pattern, :regexp
+ # The Hash of patterns.
+ #
+ # see also URI::Parser.initialize_pattern
+ attr_reader :pattern
+
+ # The Hash of Regexp
+ #
+ # see also URI::Parser.initialize_regexp
+ attr_reader :regexp
+
+ # Returns a split URI against regexp[:ABS_URI]
def split(uri)
case uri
when ''
- # null uri
+ # null uri
when @regexp[:ABS_URI]
- scheme, opaque, userinfo, host, port,
- registry, path, query, fragment = $~[1..-1]
+ scheme, opaque, userinfo, host, port,
+ registry, path, query, fragment = $~[1..-1]
- # URI-reference = [ absoluteURI | relativeURI ] [ "#" fragment ]
+ # URI-reference = [ absoluteURI | relativeURI ] [ "#" fragment ]
- # absoluteURI = scheme ":" ( hier_part | opaque_part )
- # hier_part = ( net_path | abs_path ) [ "?" query ]
- # opaque_part = uric_no_slash *uric
+ # absoluteURI = scheme ":" ( hier_part | opaque_part )
+ # hier_part = ( net_path | abs_path ) [ "?" query ]
+ # opaque_part = uric_no_slash *uric
- # abs_path = "/" path_segments
- # net_path = "//" authority [ abs_path ]
+ # abs_path = "/" path_segments
+ # net_path = "//" authority [ abs_path ]
- # authority = server | reg_name
- # server = [ [ userinfo "@" ] hostport ]
+ # authority = server | reg_name
+ # server = [ [ userinfo "@" ] hostport ]
- if !scheme
- raise InvalidURIError,
- "bad URI(absolute but no scheme): #{uri}"
- end
- if !opaque && (!path && (!host && !registry))
- raise InvalidURIError,
- "bad URI(absolute but no path): #{uri}"
- end
+ if !scheme
+ raise InvalidURIError,
+ "bad URI(absolute but no scheme): #{uri}"
+ end
+ if !opaque && (!path && (!host && !registry))
+ raise InvalidURIError,
+ "bad URI(absolute but no path): #{uri}"
+ end
when @regexp[:REL_URI]
- scheme = nil
- opaque = nil
-
- userinfo, host, port, registry,
- rel_segment, abs_path, query, fragment = $~[1..-1]
- if rel_segment && abs_path
- path = rel_segment + abs_path
- elsif rel_segment
- path = rel_segment
- elsif abs_path
- path = abs_path
- end
+ scheme = nil
+ opaque = nil
+
+ userinfo, host, port, registry,
+ rel_segment, abs_path, query, fragment = $~[1..-1]
+ if rel_segment && abs_path
+ path = rel_segment + abs_path
+ elsif rel_segment
+ path = rel_segment
+ elsif abs_path
+ path = abs_path
+ end
- # URI-reference = [ absoluteURI | relativeURI ] [ "#" fragment ]
+ # URI-reference = [ absoluteURI | relativeURI ] [ "#" fragment ]
- # relativeURI = ( net_path | abs_path | rel_path ) [ "?" query ]
+ # relativeURI = ( net_path | abs_path | rel_path ) [ "?" query ]
- # net_path = "//" authority [ abs_path ]
- # abs_path = "/" path_segments
- # rel_path = rel_segment [ abs_path ]
+ # net_path = "//" authority [ abs_path ]
+ # abs_path = "/" path_segments
+ # rel_path = rel_segment [ abs_path ]
- # authority = server | reg_name
- # server = [ [ userinfo "@" ] hostport ]
+ # authority = server | reg_name
+ # server = [ [ userinfo "@" ] hostport ]
else
- raise InvalidURIError, "bad URI(is not URI?): #{uri}"
+ raise InvalidURIError, "bad URI(is not URI?): #{uri}"
end
path = '' if !path && !opaque # (see RFC2396 Section 5.2)
ret = [
- scheme,
- userinfo, host, port, # X
- registry, # X
- path, # Y
- opaque, # Y
- query,
- fragment
+ scheme,
+ userinfo, host, port, # X
+ registry, # X
+ path, # Y
+ opaque, # Y
+ query,
+ fragment
]
return ret
end
+ #
+ # == Args
+ #
+ # +uri+::
+ # String
+ #
+ # == Description
+ #
+ # parses +uri+ and constructs either matching URI scheme object
+ # (FTP, HTTP, HTTPS, LDAP, LDAPS, or MailTo) or URI::Generic
+ #
+ # == Usage
+ #
+ # p = URI::Parser.new
+ # p.parse("ldap://ldap.example.com/dc=example?user=john")
+ # #=> #<URI::LDAP:0x00000000b9e7e8 URL:ldap://ldap.example.com/dc=example?user=john>
+ #
def parse(uri)
scheme, userinfo, host, port,
- registry, path, opaque, query, fragment = self.split(uri)
+ registry, path, opaque, query, fragment = self.split(uri)
if scheme && URI.scheme_list.include?(scheme.upcase)
- URI.scheme_list[scheme.upcase].new(scheme, userinfo, host, port,
+ URI.scheme_list[scheme.upcase].new(scheme, userinfo, host, port,
registry, path, opaque, query,
fragment, self)
else
- Generic.new(scheme, userinfo, host, port,
- registry, path, opaque, query,
- fragment, self)
+ Generic.new(scheme, userinfo, host, port,
+ registry, path, opaque, query,
+ fragment, self)
end
end
- def join(*str)
- u = self.parse(str[0])
- str[1 .. -1].each do |x|
- u = u.merge(x)
- end
- u
+
+ #
+ # == Args
+ #
+ # +uris+::
+ # an Array of Strings
+ #
+ # == Description
+ #
+ # Attempts to parse and merge a set of URIs
+ #
+ def join(*uris)
+ uris[0] = convert_to_uri(uris[0])
+ uris.inject :merge
end
+ #
+ # :call-seq:
+ # extract( str )
+ # extract( str, schemes )
+ # extract( str, schemes ) {|item| block }
+ #
+ # == Args
+ #
+ # +str+::
+ # String to search
+ # +schemes+::
+ # Patterns to apply to +str+
+ #
+ # == Description
+ #
+ # Attempts to parse and merge a set of URIs
+ # If no +block+ given , then returns the result,
+ # else it calls +block+ for each element in result.
+ #
+ # see also URI::Parser.make_regexp
+ #
def extract(str, schemes = nil, &block)
if block_given?
- str.scan(make_regexp(schemes)) { yield $& }
- nil
+ str.scan(make_regexp(schemes)) { yield $& }
+ nil
else
- result = []
- str.scan(make_regexp(schemes)) { result.push $& }
- result
+ result = []
+ str.scan(make_regexp(schemes)) { result.push $& }
+ result
end
end
+ # returns Regexp that is default self.regexp[:ABS_URI_REF],
+ # unless +schemes+ is provided. Then it is a Regexp.union with self.pattern[:X_ABS_URI]
def make_regexp(schemes = nil)
unless schemes
- @regexp[:ABS_URI_REF]
+ @regexp[:ABS_URI_REF]
else
- /(?=#{Regexp.union(*schemes)}:)#{@pattern[:X_ABS_URI]}/x
+ /(?=#{Regexp.union(*schemes)}:)#{@pattern[:X_ABS_URI]}/x
end
end
+ #
+ # :call-seq:
+ # escape( str )
+ # escape( str, unsafe )
+ #
+ # == Args
+ #
+ # +str+::
+ # String to make safe
+ # +unsafe+::
+ # Regexp to apply. Defaults to self.regexp[:UNSAFE]
+ #
+ # == Description
+ #
+ # constructs a safe String from +str+, removing unsafe characters,
+ # replacing them with codes.
+ #
def escape(str, unsafe = @regexp[:UNSAFE])
unless unsafe.kind_of?(Regexp)
# perhaps unsafe is String object
@@ -226,6 +311,22 @@ module URI
end.force_encoding(Encoding::US_ASCII)
end
+ #
+ # :call-seq:
+ # unescape( str )
+ # unescape( str, unsafe )
+ #
+ # == Args
+ #
+ # +str+::
+ # String to remove escapes from
+ # +unsafe+::
+ # Regexp to apply. Defaults to self.regexp[:ESCAPED]
+ #
+ # == Description
+ #
+ # Removes escapes from +str+
+ #
def unescape(str, escaped = @regexp[:ESCAPED])
str.gsub(escaped) { [$&[1, 2].hex].pack('C') }.force_encoding(str.encoding)
end
@@ -237,13 +338,14 @@ module URI
private
+ # Constructs the default Hash of patterns
def initialize_pattern(opts = {})
ret = {}
ret[:ESCAPED] = escaped = (opts.delete(:ESCAPED) || PATTERN::ESCAPED)
ret[:UNRESERVED] = unreserved = opts.delete(:UNRESERVED) || PATTERN::UNRESERVED
ret[:RESERVED] = reserved = opts.delete(:RESERVED) || PATTERN::RESERVED
- ret[:DOMLABEL] = domlabel = opts.delete(:DOMLABEL) || PATTERN::DOMLABEL
- ret[:TOPLABEL] = toplabel = opts.delete(:TOPLABEL) || PATTERN::TOPLABEL
+ ret[:DOMLABEL] = opts.delete(:DOMLABEL) || PATTERN::DOMLABEL
+ ret[:TOPLABEL] = opts.delete(:TOPLABEL) || PATTERN::TOPLABEL
ret[:HOSTNAME] = hostname = opts.delete(:HOSTNAME)
# RFC 2396 (URI Generic Syntax)
@@ -261,8 +363,9 @@ module URI
ret[:FRAGMENT] = fragment = "#{uric}*"
# hostname = *( domainlabel "." ) toplabel [ "." ]
+ # reg-name = *( unreserved / pct-encoded / sub-delims ) # RFC3986
unless hostname
- ret[:HOSTNAME] = hostname = "(?:#{domlabel}\\.)*#{toplabel}\\.?"
+ ret[:HOSTNAME] = hostname = "(?:[a-zA-Z0-9\\-.]|%\\h\\h)+"
end
# RFC 2373, APPENDIX B:
@@ -329,7 +432,7 @@ module URI
ret[:REL_SEGMENT] = rel_segment = "(?:[#{unreserved};@&=+$,]|#{escaped})+"
# scheme = alpha *( alpha | digit | "+" | "-" | "." )
- ret[:SCHEME] = scheme = "[#{PATTERN::ALPHA}][-+.#{PATTERN::ALPHA}\\d]*"
+ ret[:SCHEME] = scheme = "[#{PATTERN::ALPHA}][\\-+.#{PATTERN::ALPHA}\\d]*"
# abs_path = "/" path_segments
ret[:ABS_PATH] = abs_path = "/#{path_segments}"
@@ -349,7 +452,7 @@ module URI
ret[:REL_URI] = rel_uri = "(?:#{net_path}|#{abs_path}|#{rel_path})(?:\\?#{query})?"
# URI-reference = [ absoluteURI | relativeURI ] [ "#" fragment ]
- ret[:URI_REF] = uri_ref = "(?:#{abs_uri}|#{rel_uri})?(?:##{fragment})?"
+ ret[:URI_REF] = "(?:#{abs_uri}|#{rel_uri})?(?:##{fragment})?"
ret[:X_ABS_URI] = "
(#{scheme}): (?# 1: scheme)
@@ -393,12 +496,13 @@ module URI
ret
end
+ # Constructs the default Hash of Regexp's
def initialize_regexp(pattern)
ret = {}
# for URI::split
- ret[:ABS_URI] = Regexp.new('^' + pattern[:X_ABS_URI] + '$', Regexp::EXTENDED)
- ret[:REL_URI] = Regexp.new('^' + pattern[:X_REL_URI] + '$', Regexp::EXTENDED)
+ ret[:ABS_URI] = Regexp.new('\A\s*' + pattern[:X_ABS_URI] + '\s*\z', Regexp::EXTENDED)
+ ret[:REL_URI] = Regexp.new('\A\s*' + pattern[:X_REL_URI] + '\s*\z', Regexp::EXTENDED)
# for URI::extract
ret[:URI_REF] = Regexp.new(pattern[:URI_REF])
@@ -410,21 +514,34 @@ module URI
ret[:UNSAFE] = Regexp.new("[^#{pattern[:UNRESERVED]}#{pattern[:RESERVED]}]")
# for Generic#initialize
- ret[:SCHEME] = Regexp.new("^#{pattern[:SCHEME]}$")
- ret[:USERINFO] = Regexp.new("^#{pattern[:USERINFO]}$")
- ret[:HOST] = Regexp.new("^#{pattern[:HOST]}$")
- ret[:PORT] = Regexp.new("^#{pattern[:PORT]}$")
- ret[:OPAQUE] = Regexp.new("^#{pattern[:OPAQUE_PART]}$")
- ret[:REGISTRY] = Regexp.new("^#{pattern[:REG_NAME]}$")
- ret[:ABS_PATH] = Regexp.new("^#{pattern[:ABS_PATH]}$")
- ret[:REL_PATH] = Regexp.new("^#{pattern[:REL_PATH]}$")
- ret[:QUERY] = Regexp.new("^#{pattern[:QUERY]}$")
- ret[:FRAGMENT] = Regexp.new("^#{pattern[:FRAGMENT]}$")
+ ret[:SCHEME] = Regexp.new("\\A#{pattern[:SCHEME]}\\z")
+ ret[:USERINFO] = Regexp.new("\\A#{pattern[:USERINFO]}\\z")
+ ret[:HOST] = Regexp.new("\\A#{pattern[:HOST]}\\z")
+ ret[:PORT] = Regexp.new("\\A#{pattern[:PORT]}\\z")
+ ret[:OPAQUE] = Regexp.new("\\A#{pattern[:OPAQUE_PART]}\\z")
+ ret[:REGISTRY] = Regexp.new("\\A#{pattern[:REG_NAME]}\\z")
+ ret[:ABS_PATH] = Regexp.new("\\A#{pattern[:ABS_PATH]}\\z")
+ ret[:REL_PATH] = Regexp.new("\\A#{pattern[:REL_PATH]}\\z")
+ ret[:QUERY] = Regexp.new("\\A#{pattern[:QUERY]}\\z")
+ ret[:FRAGMENT] = Regexp.new("\\A#{pattern[:FRAGMENT]}\\z")
ret
end
+
+ def convert_to_uri(uri)
+ if uri.is_a?(URI::Generic)
+ uri
+ elsif uri = String.try_convert(uri)
+ parse(uri)
+ else
+ raise ArgumentError,
+ "bad argument (expected URI object or URI string)"
+ end
+ end
+
end # class Parser
+ # URI::Parser.new
DEFAULT_PARSER = Parser.new
DEFAULT_PARSER.pattern.each_pair do |sym, str|
unless REGEXP::PATTERN.const_defined?(sym)
@@ -467,6 +584,7 @@ module URI
module_function :make_components_hash
end
+ # module for escaping unsafe characters with codes.
module Escape
#
# == Synopsis
@@ -501,6 +619,7 @@ module URI
# # => "@%3F@%21"
#
def escape(*arg)
+ warn "#{caller(1)[0]}: warning: URI.escape is obsolete" if $VERBOSE
DEFAULT_PARSER.escape(*arg)
end
alias encode escape
@@ -526,15 +645,17 @@ module URI
# # => "http://example.com/?a=\t\r"
#
def unescape(*arg)
+ warn "#{caller(1)[0]}: warning: URI.unescape is obsolete" if $VERBOSE
DEFAULT_PARSER.unescape(*arg)
end
alias decode unescape
- end
+ end # module Escape
extend Escape
include REGEXP
@@schemes = {}
+ # Returns a Hash of the defined schemes
def self.scheme_list
@@schemes
end
@@ -644,9 +765,22 @@ module URI
#
# require 'uri'
#
- # p URI.join("http://localhost/","main.rbx")
+ # p URI.join("http://example.com/","main.rbx")
# # => #<URI::HTTP:0x2022ac02 URL:http://localhost/main.rbx>
#
+ # p URI.join('http://example.com', 'foo')
+ # # => #<URI::HTTP:0x01ab80a0 URL:http://example.com/foo>
+ #
+ # p URI.join('http://example.com', '/foo', '/bar')
+ # # => #<URI::HTTP:0x01aaf0b0 URL:http://example.com/bar>
+ #
+ # p URI.join('http://example.com', '/foo', 'bar')
+ # # => #<URI::HTTP:0x801a92af0 URL:http://example.com/bar>
+ #
+ # p URI.join('http://example.com', '/foo/', 'bar')
+ # # => #<URI::HTTP:0x80135a3a0 URL:http://example.com/foo/bar>
+ #
+ #
def self.join(*str)
DEFAULT_PARSER.join(*str)
end
@@ -714,14 +848,154 @@ module URI
DEFAULT_PARSER.make_regexp(schemes)
end
-end
+ TBLENCWWWCOMP_ = {} # :nodoc:
+ 256.times do |i|
+ TBLENCWWWCOMP_[i.chr] = '%%%02X' % i
+ end
+ TBLENCWWWCOMP_[' '] = '+'
+ TBLENCWWWCOMP_.freeze
+ TBLDECWWWCOMP_ = {} # :nodoc:
+ 256.times do |i|
+ h, l = i>>4, i&15
+ TBLDECWWWCOMP_['%%%X%X' % [h, l]] = i.chr
+ TBLDECWWWCOMP_['%%%x%X' % [h, l]] = i.chr
+ TBLDECWWWCOMP_['%%%X%x' % [h, l]] = i.chr
+ TBLDECWWWCOMP_['%%%x%x' % [h, l]] = i.chr
+ end
+ TBLDECWWWCOMP_['+'] = ' '
+ TBLDECWWWCOMP_.freeze
+
+ HTML5ASCIIINCOMPAT = [Encoding::UTF_7, Encoding::UTF_16BE, Encoding::UTF_16LE,
+ Encoding::UTF_32BE, Encoding::UTF_32LE] # :nodoc:
+
+ # Encode given +str+ to URL-encoded form data.
+ #
+ # This method doesn't convert *, -, ., 0-9, A-Z, _, a-z, but does convert SP
+ # (ASCII space) to + and converts others to %XX.
+ #
+ # This is an implementation of
+ # http://www.w3.org/TR/html5/forms.html#url-encoded-form-data
+ #
+ # See URI.decode_www_form_component, URI.encode_www_form
+ def self.encode_www_form_component(str)
+ str = str.to_s
+ if HTML5ASCIIINCOMPAT.include?(str.encoding)
+ str = str.encode(Encoding::UTF_8)
+ else
+ str = str.dup
+ end
+ str.force_encoding(Encoding::ASCII_8BIT)
+ str.gsub!(/[^*\-.0-9A-Z_a-z]/, TBLENCWWWCOMP_)
+ str.force_encoding(Encoding::US_ASCII)
+ end
+
+ # Decode given +str+ of URL-encoded form data.
+ #
+ # This decods + to SP.
+ #
+ # See URI.encode_www_form_component, URI.decode_www_form
+ def self.decode_www_form_component(str, enc=Encoding::UTF_8)
+ raise ArgumentError, "invalid %-encoding (#{str})" unless /\A[^%]*(?:%\h\h[^%]*)*\z/ =~ str
+ str.gsub(/\+|%\h\h/, TBLDECWWWCOMP_).force_encoding(enc)
+ end
+
+ # Generate URL-encoded form data from given +enum+.
+ #
+ # This generates application/x-www-form-urlencoded data defined in HTML5
+ # from given an Enumerable object.
+ #
+ # This internally uses URI.encode_www_form_component(str).
+ #
+ # This method doesn't convert the encoding of given items, so convert them
+ # before call this method if you want to send data as other than original
+ # encoding or mixed encoding data. (Strings which are encoded in an HTML5
+ # ASCII incompatible encoding are converted to UTF-8.)
+ #
+ # This method doesn't handle files. When you send a file, use
+ # multipart/form-data.
+ #
+ # This is an implementation of
+ # http://www.w3.org/TR/html5/forms.html#url-encoded-form-data
+ #
+ # URI.encode_www_form([["q", "ruby"], ["lang", "en"]])
+ # #=> "q=ruby&lang=en"
+ # URI.encode_www_form("q" => "ruby", "lang" => "en")
+ # #=> "q=ruby&lang=en"
+ # URI.encode_www_form("q" => ["ruby", "perl"], "lang" => "en")
+ # #=> "q=ruby&q=perl&lang=en"
+ # URI.encode_www_form([["q", "ruby"], ["q", "perl"], ["lang", "en"]])
+ # #=> "q=ruby&q=perl&lang=en"
+ #
+ # See URI.encode_www_form_component, URI.decode_www_form
+ def self.encode_www_form(enum)
+ enum.map do |k,v|
+ if v.nil?
+ encode_www_form_component(k)
+ elsif v.respond_to?(:to_ary)
+ v.to_ary.map do |w|
+ str = encode_www_form_component(k)
+ unless w.nil?
+ str << '='
+ str << encode_www_form_component(w)
+ end
+ end.join('&')
+ else
+ str = encode_www_form_component(k)
+ str << '='
+ str << encode_www_form_component(v)
+ end
+ end.join('&')
+ end
+
+ WFKV_ = '(?:[^%#=;&]*(?:%\h\h[^%#=;&]*)*)' # :nodoc:
+
+ # Decode URL-encoded form data from given +str+.
+ #
+ # This decodes application/x-www-form-urlencoded data
+ # and returns array of key-value array.
+ # This internally uses URI.decode_www_form_component.
+ #
+ # _charset_ hack is not supported now because the mapping from given charset
+ # to Ruby's encoding is not clear yet.
+ # see also http://www.w3.org/TR/html5/syntax.html#character-encodings-0
+ #
+ # This refers http://www.w3.org/TR/html5/forms.html#url-encoded-form-data
+ #
+ # ary = URI.decode_www_form("a=1&a=2&b=3")
+ # p ary #=> [['a', '1'], ['a', '2'], ['b', '3']]
+ # p ary.assoc('a').last #=> '1'
+ # p ary.assoc('b').last #=> '3'
+ # p ary.rassoc('a').last #=> '2'
+ # p Hash[ary] # => {"a"=>"2", "b"=>"3"}
+ #
+ # See URI.decode_www_form_component, URI.encode_www_form
+ def self.decode_www_form(str, enc=Encoding::UTF_8)
+ return [] if str.empty?
+ unless /\A#{WFKV_}=#{WFKV_}(?:[;&]#{WFKV_}=#{WFKV_})*\z/o =~ str
+ raise ArgumentError, "invalid data of application/x-www-form-urlencoded (#{str})"
+ end
+ ary = []
+ $&.scan(/([^=;&]+)=([^;&]*)/) do
+ ary << [decode_www_form_component($1, enc), decode_www_form_component($2, enc)]
+ end
+ ary
+ end
+end # module URI
module Kernel
- # alias for URI.parse.
+
+ #
+ # Returns +uri+ converted to a URI object.
#
- # This method is introduced at 1.8.2.
- def URI(uri_str) # :doc:
- URI.parse(uri_str)
+ def URI(uri)
+ if uri.is_a?(URI::Generic)
+ uri
+ elsif uri = String.try_convert(uri)
+ URI.parse(uri)
+ else
+ raise ArgumentError,
+ "bad argument (expected URI object or URI string)"
+ end
end
module_function :URI
end
diff --git a/lib/uri/ftp.rb b/lib/uri/ftp.rb
index a40b958497..26e4bb8326 100644
--- a/lib/uri/ftp.rb
+++ b/lib/uri/ftp.rb
@@ -1,10 +1,11 @@
-#
# = uri/ftp.rb
#
# Author:: Akira Yamada <akira@ruby-lang.org>
# License:: You can redistribute it and/or modify it under the same term as Ruby.
# Revision:: $Id$
#
+# See URI for general documentation
+#
require 'uri/generic'
@@ -13,14 +14,24 @@ module URI
#
# FTP URI syntax is defined by RFC1738 section 3.2.
#
+ # This class will be redesigned because of difference of implementations;
+ # the structure of its path. draft-hoffman-ftp-uri-04 is a draft but it
+ # is a good summary about the de facto spec.
+ # http://tools.ietf.org/html/draft-hoffman-ftp-uri-04
+ #
class FTP < Generic
+ # A Default port of 21 for URI::FTP
DEFAULT_PORT = 21
+ #
+ # An Array of the available components for URI::FTP
+ #
COMPONENT = [
:scheme,
:userinfo, :host, :port,
:path, :typecode
].freeze
+
#
# Typecode is "a", "i" or "d".
#
@@ -29,8 +40,19 @@ module URI
# * "d" indicates the contents of a directory should be displayed
#
TYPECODE = ['a', 'i', 'd'].freeze
+
+ # Typecode prefix
+ # ';type='
TYPECODE_PREFIX = ';type='.freeze
+ # alternate initialization
+ # Creates a new URI::FTP object.
+ #
+ # Unlike build(), this method does not escape the path component as
+ # required by RFC1738; instead it is treated as per RFC2396.
+ #
+ # Arguments are user, password, host, port, path, typecode,
+ # and arg_check, in that order.
def self.new2(user, password, host, port, path,
typecode = nil, arg_check = true)
typecode = nil if typecode.size == 0
@@ -113,12 +135,13 @@ module URI
# +opaque+, +query+ and +fragment+, in that order.
#
def initialize(*arg)
+ arg[5] = arg[5].sub(/^\//,'').sub(/^%2F/,'/')
super(*arg)
@typecode = nil
tmp = @path.index(TYPECODE_PREFIX)
if tmp
typecode = @path[tmp + TYPECODE_PREFIX.size..-1]
- self.set_path(@path[0..tmp - 1])
+ @path = @path[0..tmp - 1]
if arg[-1]
self.typecode = typecode
@@ -127,8 +150,15 @@ module URI
end
end
end
+
+ # typecode accessor
+ #
+ # see URI::FTP::COMPONENT
attr_reader :typecode
+ # validates typecode +v+,
+ # returns a +true+ or +false+ boolean
+ #
def check_typecode(v)
if TYPECODE.include?(v)
return true
@@ -139,11 +169,39 @@ module URI
end
private :check_typecode
+ # private setter for the typecode +v+
+ #
+ # see also URI::FTP.typecode=
+ #
def set_typecode(v)
@typecode = v
end
protected :set_typecode
+ #
+ # == Args
+ #
+ # +v+::
+ # String
+ #
+ # == Description
+ #
+ # public setter for the typecode +v+.
+ # (with validation)
+ #
+ # see also URI::FTP.check_typecode
+ #
+ # == Usage
+ #
+ # require 'uri'
+ #
+ # uri = URI.parse("ftp://john@ftp.example.com/my_file.img")
+ # #=> #<URI::FTP:0x00000000923650 URL:ftp://john@ftp.example.com/my_file.img>
+ # uri.typecode = "i"
+ # # => "i"
+ # uri
+ # #=> #<URI::FTP:0x00000000923650 URL:ftp://john@ftp.example.com/my_file.img;type=i>
+ #
def typecode=(typecode)
check_typecode(typecode)
set_typecode(typecode)
@@ -180,6 +238,11 @@ module URI
return @path.sub(/^\//,'').sub(/^%2F/,'/')
end
+ def set_path(v)
+ super("/" + v.sub(/^\//, "%2F"))
+ end
+ protected :set_path
+
def to_s
save_path = nil
if @typecode
diff --git a/lib/uri/generic.rb b/lib/uri/generic.rb
index adc3805265..1056cfe3bc 100644
--- a/lib/uri/generic.rb
+++ b/lib/uri/generic.rb
@@ -1,10 +1,11 @@
-#
# = uri/generic.rb
#
# Author:: Akira Yamada <akira@ruby-lang.org>
# License:: You can redistribute it and/or modify it under the same term as Ruby.
# Revision:: $Id$
#
+# See URI for general documentation
+#
require 'uri/common'
@@ -17,6 +18,9 @@ module URI
class Generic
include URI
+ #
+ # A Default port of nil for URI::Generic
+ #
DEFAULT_PORT = nil
#
@@ -26,10 +30,16 @@ module URI
self::DEFAULT_PORT
end
+ #
+ # Returns default port
+ #
def default_port
self.class.default_port
end
+ #
+ # An Array of the available components for URI::Generic
+ #
COMPONENT = [
:scheme,
:userinfo, :host, :port, :registry,
@@ -45,10 +55,14 @@ module URI
self::COMPONENT
end
+ #
+ # Default to not use the registry for a URI::Generic
+ #
USE_REGISTRY = false
#
- # DOC: FIXME!
+ # Returns whether a registry of naming
+ # authorities are being used.
#
def self.use_registry
self::USE_REGISTRY
@@ -73,7 +87,7 @@ module URI
if args.kind_of?(Array)
return self.build(args.collect{|x|
if x
- @parser.escape(x)
+ parser.escape(x)
else
x
end
@@ -82,7 +96,7 @@ module URI
tmp = {}
args.each do |key, value|
tmp[key] = if value
- @parser.escape(value)
+ parser.escape(value)
else
value
end
@@ -121,7 +135,7 @@ module URI
"expected Array of or Hash of components of #{self.class} (#{self.class.component.join(', ')})"
end
- tmp << DEFAULT_PARSER
+ tmp << nil
tmp << true
return self.new(*tmp)
end
@@ -137,11 +151,11 @@ module URI
# +port+::
# Server port
# +registry+::
- # DOC: FIXME!
+ # Registry of naming authorities.
# +path+::
# Path on server
# +opaque+::
- # DOC: FIXME!
+ # Opaque part
# +query+::
# Query data
# +fragment+::
@@ -160,7 +174,7 @@ module URI
path, opaque,
query,
fragment,
- parser = DEFAULT_PARSER,
+ parser = DEFAULT_PARSER,
arg_check = false)
@scheme = nil
@user = nil
@@ -172,7 +186,7 @@ module URI
@opaque = nil
@registry = nil
@fragment = nil
- @parser = parser
+ @parser = parser == DEFAULT_PARSER ? nil : parser
if arg_check
self.scheme = scheme
@@ -204,15 +218,89 @@ module URI
self.set_path('') if !@path && !@opaque # (see RFC2396 Section 5.2)
self.set_port(self.default_port) if self.default_port && !@port
end
+
+ #
+ # returns the scheme component of the URI.
+ #
+ # URI("http://foo/bar/baz").scheme #=> "http"
+ #
attr_reader :scheme
+
+ # returns the host component of the URI.
+ #
+ # URI("http://foo/bar/baz").host #=> "foo"
+ #
+ # It returns nil if no host component.
+ #
+ # URI("mailto:foo@example.org").host #=> nil
+ #
+ # The component doesn't contains the port number.
+ #
+ # URI("http://foo:8080/bar/baz").host #=> "foo"
+ #
+ # Since IPv6 addresses are wrapped by brackets in URIs,
+ # this method returns IPv6 addresses wrapped by brackets.
+ # This form is not appropriate to pass socket methods such as TCPSocket.open.
+ # If unwrapped host names are required, use "hostname" method.
+ #
+ # URI("http://[::1]/bar/baz").host #=> "[::1]"
+ # URI("http://[::1]/bar/baz").hostname #=> "::1"
+ #
attr_reader :host
+
+ # returns the port component of the URI.
+ #
+ # URI("http://foo/bar/baz").port #=> "80"
+ #
+ # URI("http://foo:8080/bar/baz").port #=> "8080"
+ #
attr_reader :port
+
+ # returns the registry component of the URI.
+ #
+ # (see RFC2396 Section 3.2)
+ #
attr_reader :registry
+
+ # returns the path component of the URI.
+ #
+ # URI("http://foo/bar/baz").path #=> "/bar/baz"
+ #
attr_reader :path
+
+ # returns the query component of the URI.
+ #
+ # URI("http://foo/bar/baz?search=FooBar").query #=> "search=FooBar"
+ #
attr_reader :query
+
+ # returns the opaque part of the URI.
+ #
+ # URI("mailto:foo@example.org").opaque #=> "foo@example.org"
+ #
+ # Portion of the path that does make use of the slash '/'.
+ # The path typically refers to the absolute path and the opaque part.
+ # (see RFC2396 Section 3 and 5.2)
+ #
attr_reader :opaque
+
+ # returns the fragment component of the URI.
+ #
+ # URI("http://foo/bar/baz?search=FooBar#ponies").fragment #=> "ponies"
+ #
attr_reader :fragment
- attr_reader :parser
+
+ # returns the parser to be used.
+ #
+ # Unless a URI::Parser is defined, then DEFAULT_PARSER is used.
+ #
+ def parser
+ if !defined?(@parser) || !@parser
+ DEFAULT_PARSER
+ else
+ @parser || DEFAULT_PARSER
+ end
+ end
# replace self by other URI object
def replace!(oth)
@@ -226,12 +314,18 @@ module URI
end
private :replace!
+ #
+ # Components of the URI in the order.
+ #
def component
self.class.component
end
+ #
+ # check the scheme +v+ component against the URI::Parser Regexp for :SCHEME
+ #
def check_scheme(v)
- if v && @parser.regexp[:SCHEME] !~ v
+ if v && parser.regexp[:SCHEME] !~ v
raise InvalidComponentError,
"bad component(expected scheme component): #{v}"
end
@@ -240,17 +334,53 @@ module URI
end
private :check_scheme
+ # protected setter for the scheme component +v+
+ #
+ # see also URI::Generic.scheme=
+ #
def set_scheme(v)
@scheme = v
end
protected :set_scheme
+ #
+ # == Args
+ #
+ # +v+::
+ # String
+ #
+ # == Description
+ #
+ # public setter for the scheme component +v+.
+ # (with validation)
+ #
+ # see also URI::Generic.check_scheme
+ #
+ # == Usage
+ #
+ # require 'uri'
+ #
+ # uri = URI.parse("http://my.example.com")
+ # uri.scheme = "https"
+ # # => "https"
+ # uri
+ # #=> #<URI::HTTP:0x000000008e89e8 URL:https://my.example.com>
+ #
def scheme=(v)
check_scheme(v)
set_scheme(v)
v
end
+ #
+ # check the +user+ and +password+.
+ #
+ # If +password+ is not provided, then +user+ is
+ # split, using URI::Generic.split_userinfo, to
+ # pull +user+ and +password.
+ #
+ # see also URI::Generic.check_user, URI::Generic.check_password
+ #
def check_userinfo(user, password = nil)
if !password
user, password = split_userinfo(user)
@@ -262,6 +392,13 @@ module URI
end
private :check_userinfo
+ #
+ # check the user +v+ component for RFC2396 compliance
+ # and against the URI::Parser Regexp for :USERINFO
+ #
+ # Can not have a registry or opaque component defined,
+ # with a user component defined.
+ #
def check_user(v)
if @registry || @opaque
raise InvalidURIError,
@@ -270,7 +407,7 @@ module URI
return v unless v
- if @parser.regexp[:USERINFO] !~ v
+ if parser.regexp[:USERINFO] !~ v
raise InvalidComponentError,
"bad component(expected userinfo component or user component): #{v}"
end
@@ -279,6 +416,13 @@ module URI
end
private :check_user
+ #
+ # check the password +v+ component for RFC2396 compliance
+ # and against the URI::Parser Regexp for :USERINFO
+ #
+ # Can not have a registry or opaque component defined,
+ # with a user component defined.
+ #
def check_password(v, user = @user)
if @registry || @opaque
raise InvalidURIError,
@@ -291,7 +435,7 @@ module URI
"password component depends user component"
end
- if @parser.regexp[:USERINFO] !~ v
+ if parser.regexp[:USERINFO] !~ v
raise InvalidComponentError,
"bad component(expected user component): #{v}"
end
@@ -312,18 +456,69 @@ module URI
# returns userinfo
end
+ #
+ # == Args
+ #
+ # +v+::
+ # String
+ #
+ # == Description
+ #
+ # public setter for the +user+ component.
+ # (with validation)
+ #
+ # see also URI::Generic.check_user
+ #
+ # == Usage
+ #
+ # require 'uri'
+ #
+ # uri = URI.parse("http://john:S3nsit1ve@my.example.com")
+ # uri.user = "sam"
+ # # => "sam"
+ # uri
+ # #=> #<URI::HTTP:0x00000000881d90 URL:http://sam:V3ry_S3nsit1ve@my.example.com>
+ #
def user=(user)
check_user(user)
set_user(user)
# returns user
end
+ #
+ # == Args
+ #
+ # +v+::
+ # String
+ #
+ # == Description
+ #
+ # public setter for the +password+ component.
+ # (with validation)
+ #
+ # see also URI::Generic.check_password
+ #
+ # == Usage
+ #
+ # require 'uri'
+ #
+ # uri = URI.parse("http://john:S3nsit1ve@my.example.com")
+ # uri.password = "V3ry_S3nsit1ve"
+ # # => "V3ry_S3nsit1ve"
+ # uri
+ # #=> #<URI::HTTP:0x00000000881d90 URL:http://john:V3ry_S3nsit1ve@my.example.com>
+ #
def password=(password)
check_password(password)
set_password(password)
# returns password
end
+ # protect setter for the +user+ component, and +password+ if available.
+ # (with validation)
+ #
+ # see also URI::Generic.userinfo=
+ #
def set_userinfo(user, password = nil)
unless password
user, password = split_userinfo(user)
@@ -335,18 +530,28 @@ module URI
end
protected :set_userinfo
+ # protected setter for the user component +v+
+ #
+ # see also URI::Generic.user=
+ #
def set_user(v)
set_userinfo(v, @password)
v
end
protected :set_user
+ # protected setter for the password component +v+
+ #
+ # see also URI::Generic.password=
+ #
def set_password(v)
@password = v
# returns v
end
protected :set_password
+ # returns the userinfo +ui+ as user, password
+ # if properly formated as 'user:password'
def split_userinfo(ui)
return nil, nil unless ui
user, password = ui.split(/:/, 2)
@@ -355,11 +560,13 @@ module URI
end
private :split_userinfo
+ # escapes 'user:password' +v+ based on RFC 1738 section 3.1
def escape_userpass(v)
- v = @parser.escape(v, /[@:\/]/o) # RFC 1738 section 3.1 #/
+ v = parser.escape(v, /[@:\/]/o) # RFC 1738 section 3.1 #/
end
private :escape_userpass
+ # returns the userinfo, either as 'user' or 'user:password'
def userinfo
if @user.nil?
nil
@@ -370,21 +577,30 @@ module URI
end
end
+ # returns the user component
def user
@user
end
+ # returns the password component
def password
@password
end
+ #
+ # check the host +v+ component for RFC2396 compliance
+ # and against the URI::Parser Regexp for :HOST
+ #
+ # Can not have a registry or opaque component defined,
+ # with a host component defined.
+ #
def check_host(v)
return v unless v
if @registry || @opaque
raise InvalidURIError,
"can not set host with registry or opaque"
- elsif @parser.regexp[:HOST] !~ v
+ elsif parser.regexp[:HOST] !~ v
raise InvalidComponentError,
"bad component(expected host component): #{v}"
end
@@ -393,24 +609,90 @@ module URI
end
private :check_host
+ # protected setter for the host component +v+
+ #
+ # see also URI::Generic.host=
+ #
def set_host(v)
@host = v
end
protected :set_host
+ #
+ # == Args
+ #
+ # +v+::
+ # String
+ #
+ # == Description
+ #
+ # public setter for the host component +v+.
+ # (with validation)
+ #
+ # see also URI::Generic.check_host
+ #
+ # == Usage
+ #
+ # require 'uri'
+ #
+ # uri = URI.parse("http://my.example.com")
+ # uri.host = "foo.com"
+ # # => "foo.com"
+ # uri
+ # #=> #<URI::HTTP:0x000000008e89e8 URL:http://foo.com>
+ #
def host=(v)
check_host(v)
set_host(v)
v
end
+ # extract the host part of the URI and unwrap brackets for IPv6 addresses.
+ #
+ # This method is same as URI::Generic#host except
+ # brackets for IPv6 (andn future IP) addresses are removed.
+ #
+ # u = URI("http://[::1]/bar")
+ # p u.hostname #=> "::1"
+ # p u.host #=> "[::1]"
+ #
+ def hostname
+ v = self.host
+ /\A\[(.*)\]\z/ =~ v ? $1 : v
+ end
+
+ # set the host part of the URI as the argument with brackets for IPv6 addresses.
+ #
+ # This method is same as URI::Generic#host= except
+ # the argument can be bare IPv6 address.
+ #
+ # u = URI("http://foo/bar")
+ # p u.to_s #=> "http://foo/bar"
+ # u.hostname = "::1"
+ # p u.to_s #=> "http://[::1]/bar"
+ #
+ # If the arugument seems IPv6 address,
+ # it is wrapped by brackets.
+ #
+ def hostname=(v)
+ v = "[#{v}]" if /\A\[.*\]\z/ !~ v && /:/ =~ v
+ self.host = v
+ end
+
+ #
+ # check the port +v+ component for RFC2396 compliance
+ # and against the URI::Parser Regexp for :PORT
+ #
+ # Can not have a registry or opaque component defined,
+ # with a port component defined.
+ #
def check_port(v)
return v unless v
if @registry || @opaque
raise InvalidURIError,
"can not set port with registry or opaque"
- elsif !v.kind_of?(Fixnum) && @parser.regexp[:PORT] !~ v
+ elsif !v.kind_of?(Fixnum) && parser.regexp[:PORT] !~ v
raise InvalidComponentError,
"bad component(expected port component): #{v}"
end
@@ -419,6 +701,10 @@ module URI
end
private :check_port
+ # protected setter for the port component +v+
+ #
+ # see also URI::Generic.port=
+ #
def set_port(v)
unless !v || v.kind_of?(Fixnum)
if v.empty?
@@ -431,12 +717,42 @@ module URI
end
protected :set_port
+ #
+ # == Args
+ #
+ # +v+::
+ # String
+ #
+ # == Description
+ #
+ # public setter for the port component +v+.
+ # (with validation)
+ #
+ # see also URI::Generic.check_port
+ #
+ # == Usage
+ #
+ # require 'uri'
+ #
+ # uri = URI.parse("http://my.example.com")
+ # uri.port = 8080
+ # # => 8080
+ # uri
+ # #=> #<URI::HTTP:0x000000008e89e8 URL:http://my.example.com:8080>
+ #
def port=(v)
check_port(v)
set_port(v)
port
end
+ #
+ # check the registry +v+ component for RFC2396 compliance
+ # and against the URI::Parser Regexp for :REGISTRY
+ #
+ # Can not have a host, port or user component defined,
+ # with a registry component defined.
+ #
def check_registry(v)
return v unless v
@@ -446,7 +762,7 @@ module URI
if @host || @port || @user # userinfo = @user + ':' + @password
raise InvalidURIError,
"can not set registry with host, port, or userinfo"
- elsif v && @parser.regexp[:REGISTRY] !~ v
+ elsif v && parser.regexp[:REGISTRY] !~ v
raise InvalidComponentError,
"bad component(expected registry component): #{v}"
end
@@ -455,17 +771,42 @@ module URI
end
private :check_registry
+ # protected setter for the registry component +v+
+ #
+ # see also URI::Generic.registry=
+ #
def set_registry(v)
@registry = v
end
protected :set_registry
+ #
+ # == Args
+ #
+ # +v+::
+ # String
+ #
+ # == Description
+ #
+ # public setter for the registry component +v+.
+ # (with validation)
+ #
+ # see also URI::Generic.check_registry
+ #
def registry=(v)
check_registry(v)
set_registry(v)
v
end
+ #
+ # check the path +v+ component for RFC2396 compliance
+ # and against the URI::Parser Regexp
+ # for :ABS_PATH and :REL_PATH
+ #
+ # Can not have a opaque component defined,
+ # with a path component defined.
+ #
def check_path(v)
# raise if both hier and opaque are not nil, because:
# absoluteURI = scheme ":" ( hier_part | opaque_part )
@@ -475,13 +816,15 @@ module URI
"path conflicts with opaque"
end
- if @scheme
- if v && v != '' && @parser.regexp[:ABS_PATH] !~ v
+ # If scheme is ftp, path may be relative.
+ # See RFC 1738 section 3.2.2, and RFC 2396.
+ if @scheme && @scheme != "ftp"
+ if v && v != '' && parser.regexp[:ABS_PATH] !~ v
raise InvalidComponentError,
"bad component(expected absolute path component): #{v}"
end
else
- if v && v != '' && @parser.regexp[:ABS_PATH] !~ v && @parser.regexp[:REL_PATH] !~ v
+ if v && v != '' && parser.regexp[:ABS_PATH] !~ v && parser.regexp[:REL_PATH] !~ v
raise InvalidComponentError,
"bad component(expected relative path component): #{v}"
end
@@ -491,17 +834,51 @@ module URI
end
private :check_path
+ # protected setter for the path component +v+
+ #
+ # see also URI::Generic.path=
+ #
def set_path(v)
@path = v
end
protected :set_path
+ #
+ # == Args
+ #
+ # +v+::
+ # String
+ #
+ # == Description
+ #
+ # public setter for the path component +v+.
+ # (with validation)
+ #
+ # see also URI::Generic.check_path
+ #
+ # == Usage
+ #
+ # require 'uri'
+ #
+ # uri = URI.parse("http://my.example.com/pub/files")
+ # uri.path = "/faq/"
+ # # => "/faq/"
+ # uri
+ # #=> #<URI::HTTP:0x000000008e89e8 URL:http://my.example.com/faq/>
+ #
def path=(v)
check_path(v)
set_path(v)
v
end
+ #
+ # check the query +v+ component for RFC2396 compliance
+ # and against the URI::Parser Regexp for :QUERY
+ #
+ # Can not have a opaque component defined,
+ # with a query component defined.
+ #
def check_query(v)
return v unless v
@@ -513,7 +890,7 @@ module URI
"query conflicts with opaque"
end
- if v && v != '' && @parser.regexp[:QUERY] !~ v
+ if v && v != '' && parser.regexp[:QUERY] !~ v
raise InvalidComponentError,
"bad component(expected query component): #{v}"
end
@@ -522,17 +899,51 @@ module URI
end
private :check_query
+ # protected setter for the query component +v+
+ #
+ # see also URI::Generic.query=
+ #
def set_query(v)
@query = v
end
protected :set_query
+ #
+ # == Args
+ #
+ # +v+::
+ # String
+ #
+ # == Description
+ #
+ # public setter for the query component +v+.
+ # (with validation)
+ #
+ # see also URI::Generic.check_query
+ #
+ # == Usage
+ #
+ # require 'uri'
+ #
+ # uri = URI.parse("http://my.example.com/?id=25")
+ # uri.query = "id=1"
+ # # => "id=1"
+ # uri
+ # #=> #<URI::HTTP:0x000000008e89e8 URL:http://my.example.com/?id=1>
+ #
def query=(v)
check_query(v)
set_query(v)
v
end
+ #
+ # check the opaque +v+ component for RFC2396 compliance and
+ # against the URI::Parser Regexp for :OPAQUE
+ #
+ # Can not have a host, port, user or path component defined,
+ # with an opaque component defined.
+ #
def check_opaque(v)
return v unless v
@@ -542,7 +953,7 @@ module URI
if @host || @port || @user || @path # userinfo = @user + ':' + @password
raise InvalidURIError,
"can not set opaque with host, port, userinfo or path"
- elsif v && @parser.regexp[:OPAQUE] !~ v
+ elsif v && parser.regexp[:OPAQUE] !~ v
raise InvalidComponentError,
"bad component(expected opaque component): #{v}"
end
@@ -551,21 +962,41 @@ module URI
end
private :check_opaque
+ # protected setter for the opaque component +v+
+ #
+ # see also URI::Generic.opaque=
+ #
def set_opaque(v)
@opaque = v
end
protected :set_opaque
+ #
+ # == Args
+ #
+ # +v+::
+ # String
+ #
+ # == Description
+ #
+ # public setter for the opaque component +v+.
+ # (with validation)
+ #
+ # see also URI::Generic.check_opaque
+ #
def opaque=(v)
check_opaque(v)
set_opaque(v)
v
end
+ #
+ # check the fragment +v+ component against the URI::Parser Regexp for :FRAGMENT
+ #
def check_fragment(v)
return v unless v
- if v && v != '' && @parser.regexp[:FRAGMENT] !~ v
+ if v && v != '' && parser.regexp[:FRAGMENT] !~ v
raise InvalidComponentError,
"bad component(expected fragment component): #{v}"
end
@@ -574,11 +1005,38 @@ module URI
end
private :check_fragment
+ # protected setter for the fragment component +v+
+ #
+ # see also URI::Generic.fragment=
+ #
def set_fragment(v)
@fragment = v
end
protected :set_fragment
+ #
+ # == Args
+ #
+ # +v+::
+ # String
+ #
+ # == Description
+ #
+ # public setter for the fragment component +v+.
+ # (with validation)
+ #
+ # see also URI::Generic.check_fragment
+ #
+ # == Usage
+ #
+ # require 'uri'
+ #
+ # uri = URI.parse("http://my.example.com/?id=25#time=1305212049")
+ # uri.fragment = "time=1305212086"
+ # # => "time=1305212086"
+ # uri
+ # #=> #<URI::HTTP:0x000000007a81f8 URL:http://my.example.com/?id=25#time=1305212086>
+ #
def fragment=(v)
check_fragment(v)
set_fragment(v)
@@ -615,11 +1073,18 @@ module URI
!absolute?
end
+ #
+ # returns an Array of the path split on '/'
+ #
def split_path(path)
path.split(%r{/+}, -1)
end
private :split_path
+ #
+ # Merges a base path +base+, with relative path +rel+,
+ # returns a modified base path.
+ #
def merge_path(base, rel)
# RFC2396, Section 5.2, 5)
@@ -774,14 +1239,7 @@ module URI
# return base and rel.
# you can modify `base', but can not `rel'.
def merge0(oth)
- case oth
- when Generic
- when String
- oth = @parser.parse(oth)
- else
- raise ArgumentError,
- "bad argument(expected URI object or URI string)"
- end
+ oth = parser.send(:convert_to_uri, oth)
if self.relative? && oth.relative?
raise BadURIError,
@@ -803,31 +1261,28 @@ module URI
end
private :merge0
+ # :stopdoc:
def route_from_path(src, dst)
- # RFC2396, Section 4.2
- return '' if src == dst
-
- src_path = split_path(src)
- dst_path = split_path(dst)
-
- # hmm... dst has abnormal absolute path,
- # like "/./", "/../", "/x/../", ...
- if dst_path.include?('..') ||
- dst_path.include?('.')
+ case dst
+ when src
+ # RFC2396, Section 4.2
+ return ''
+ when %r{(?:\A|/)\.\.?(?:/|\z)}
+ # dst has abnormal absolute path,
+ # like "/./", "/../", "/x/../", ...
return dst.dup
end
- src_path.pop
+ src_path = src.scan(%r{(?:\A|[^/]+)/})
+ dst_path = dst.scan(%r{(?:\A|[^/]+)/?})
# discard same parts
- while dst_path.first == src_path.first
- break if dst_path.empty?
-
+ while !dst_path.empty? && dst_path.first == src_path.first
src_path.shift
dst_path.shift
end
- tmp = dst_path.join('/')
+ tmp = dst_path.join
# calculate
if src_path.empty?
@@ -843,17 +1298,11 @@ module URI
return '../' * src_path.size + tmp
end
private :route_from_path
+ # :startdoc:
+ # :stopdoc:
def route_from0(oth)
- case oth
- when Generic
- when String
- oth = @parser.parse(oth)
- else
- raise ArgumentError,
- "bad argument(expected URI object or URI string)"
- end
-
+ oth = parser.send(:convert_to_uri, oth)
if self.relative?
raise BadURIError,
"relative URI: #{self}"
@@ -869,14 +1318,16 @@ module URI
rel = URI::Generic.new(nil, # it is relative URI
self.userinfo, self.host, self.port,
self.registry, self.path, self.opaque,
- self.query, self.fragment, @parser)
+ self.query, self.fragment, parser)
if rel.userinfo != oth.userinfo ||
rel.host.to_s.downcase != oth.host.to_s.downcase ||
rel.port != oth.port
- if self.userinfo.nil? && self.host.nil?
- return self, self.dup
- end
+
+ if self.userinfo.nil? && self.host.nil?
+ return self, self.dup
+ end
+
rel.set_port(nil) if rel.port == oth.default_port
return rel, rel
end
@@ -898,6 +1349,8 @@ module URI
return oth, rel
end
private :route_from0
+ # :startdoc:
+
#
# == Args
#
@@ -957,16 +1410,7 @@ module URI
# #=> #<URI::Generic:0x2020c2f6 URL:/main.rbx?page=1>
#
def route_to(oth)
- case oth
- when Generic
- when String
- oth = @parser.parse(oth)
- else
- raise ArgumentError,
- "bad argument(expected URI object or URI string)"
- end
-
- oth.route_from(self)
+ parser.send(:convert_to_uri, oth).route_from(self)
end
#
@@ -985,11 +1429,15 @@ module URI
if path && path == ''
set_path('/')
end
+ if scheme && scheme != scheme.downcase
+ set_scheme(self.scheme.downcase)
+ end
if host && host != host.downcase
set_host(self.host.downcase)
end
end
+ # returns the assemble String with path and query components
def path_query
str = @path
if @query
@@ -1059,7 +1507,8 @@ module URI
end
def eql?(oth)
- @parser == oth.parser &&
+ self.class == oth.class &&
+ parser == oth.parser &&
self.component_ary.eql?(oth.component_ary)
end
@@ -1074,6 +1523,9 @@ module URI
=begin
=end
+
+
+ # returns an Array of the components defined from the COMPONENT Array
def component_ary
component.collect do |x|
self.send(x)
@@ -1114,10 +1566,29 @@ module URI
@@to_s.bind(self).call.sub!(/>\z/) {" URL:#{self}>"}
end
+ #
+ # == Args
+ #
+ # +v+::
+ # URI or String
+ #
+ # == Description
+ #
+ # attempt to parse other URI +oth+
+ # return [parsed_oth, self]
+ #
+ # == Usage
+ #
+ # require 'uri'
+ #
+ # uri = URI.parse("http://my.example.com")
+ # uri.coerce("http://foo.com")
+ # #=> [#<URI::HTTP:0x00000000bcb028 URL:http://foo.com/>, #<URI::HTTP:0x00000000d92178 URL:http://my.example.com>]
+ #
def coerce(oth)
case oth
when String
- oth = @parser.parse(oth)
+ oth = parser.parse(oth)
else
super
end
diff --git a/lib/uri/http.rb b/lib/uri/http.rb
index 69a7658918..3b03405765 100644
--- a/lib/uri/http.rb
+++ b/lib/uri/http.rb
@@ -1,10 +1,11 @@
-#
# = uri/http.rb
#
# Author:: Akira Yamada <akira@ruby-lang.org>
# License:: You can redistribute it and/or modify it under the same term as Ruby.
# Revision:: $Id$
#
+# See URI for general documentation
+#
require 'uri/generic'
@@ -19,8 +20,10 @@ module URI
# update. See <URL:http://support.microsoft.com/kb/834489>.
#
class HTTP < Generic
+ # A Default port of 80 for URI::HTTP
DEFAULT_PORT = 80
+ # An Array of the available components for URI::HTTP
COMPONENT = [
:scheme,
:userinfo, :host, :port,
@@ -71,8 +74,11 @@ module URI
#
# Example:
#
- # uri = URI::HTTP.new(['http', nil, "www.example.com", nil, "/path",
- # "query", 'fragment'])
+ # uri = URI::HTTP.new('http', nil, "www.example.com", nil, "/path",
+ # "query", 'fragment')
+ #
+ #
+ # See also URI::Generic.new
#
def initialize(*arg)
super(*arg)
@@ -88,7 +94,7 @@ module URI
#
def request_uri
r = path_query
- if r[0] != ?/
+ if r && r[0] != ?/
r = '/' + r
end
diff --git a/lib/uri/https.rb b/lib/uri/https.rb
index 9761636304..7d242e7e79 100644
--- a/lib/uri/https.rb
+++ b/lib/uri/https.rb
@@ -1,10 +1,11 @@
-#
# = uri/https.rb
#
# Author:: Akira Yamada <akira@ruby-lang.org>
# License:: You can redistribute it and/or modify it under the same term as Ruby.
# Revision:: $Id$
#
+# See URI for general documentation
+#
require 'uri/http'
@@ -14,6 +15,7 @@ module URI
# than 'http:'. Other than that, HTTPS URIs are identical to HTTP URIs;
# see URI::HTTP.
class HTTPS < HTTP
+ # A Default port of 443 for URI::HTTPS
DEFAULT_PORT = 443
end
@@schemes['HTTPS'] = HTTPS
diff --git a/lib/uri/ldap.rb b/lib/uri/ldap.rb
index 6739a018af..56d748e59e 100644
--- a/lib/uri/ldap.rb
+++ b/lib/uri/ldap.rb
@@ -1,4 +1,3 @@
-#
# = uri/ldap.rb
#
# Author::
@@ -9,6 +8,8 @@
# You can redistribute it and/or modify it under the same term as Ruby.
# Revision:: $Id$
#
+# See URI for general documentation
+#
require 'uri/generic'
@@ -20,8 +21,10 @@ module URI
#
class LDAP < Generic
+ # A Default port of 389 for URI::LDAP
DEFAULT_PORT = 389
+ # An Array of the available components for URI::LDAP
COMPONENT = [
:scheme,
:host, :port,
@@ -32,12 +35,41 @@ module URI
:extensions,
].freeze
+ # Scopes available for the starting point.
+ #
+ # * SCOPE_BASE - the Base DN
+ # * SCOPE_ONE - one level under the Base DN, not including the base DN and
+ # not including any entries under this.
+ # * SCOPE_SUB - subtress, all entries at all levels
+ #
SCOPE = [
SCOPE_ONE = 'one',
SCOPE_SUB = 'sub',
SCOPE_BASE = 'base',
].freeze
+ #
+ # == Description
+ #
+ # Create a new URI::LDAP object from components, with syntax checking.
+ #
+ # The components accepted are host, port, dn, attributes,
+ # scope, filter, and extensions.
+ #
+ # The components should be provided either as an Array, or as a Hash
+ # with keys formed by preceding the component names with a colon.
+ #
+ # If an Array is used, the components must be passed in the order
+ # [host, port, dn, attributes, scope, filter, extensions].
+ #
+ # Example:
+ #
+ # newuri = URI::LDAP.build({:host => 'ldap.example.com',
+ # :dn> => '/dc=example'})
+ #
+ # newuri = URI::LDAP.build(["ldap.example.com", nil,
+ # "/dc=example;dc=com", "query", nil, nil, nil])
+ #
def self.build(args)
tmp = Util::make_components_hash(self, args)
@@ -56,6 +88,23 @@ module URI
return super(tmp)
end
+ #
+ # == Description
+ #
+ # Create a new URI::LDAP object from generic URI components as per
+ # RFC 2396. No LDAP-specific syntax checking is performed.
+ #
+ # Arguments are +scheme+, +userinfo+, +host+, +port+, +registry+, +path+,
+ # +opaque+, +query+ and +fragment+, in that order.
+ #
+ # Example:
+ #
+ # uri = URI::LDAP.new("ldap", nil, "ldap.example.com", nil,
+ # "/dc=example;dc=com", "query", nil, nil, nil, nil)
+ #
+ #
+ # See also URI::Generic.new
+ #
def initialize(*arg)
super(*arg)
@@ -67,11 +116,14 @@ module URI
parse_query
end
+ # private method to cleanup +dn+ from using the +path+ component attribute
def parse_dn
@dn = @path[1..-1]
end
private :parse_dn
+ # private method to cleanup +attributes+, +scope+, +filter+ and +extensions+,
+ # from using the +query+ component attribute
def parse_query
@attributes = nil
@scope = nil
@@ -89,6 +141,7 @@ module URI
end
private :parse_query
+ # private method to assemble +query+ from +attributes+, +scope+, +filter+ and +extensions+.
def build_path_query
@path = '/' + @dn
@@ -101,10 +154,12 @@ module URI
end
private :build_path_query
+ # returns dn.
def dn
@dn
end
+ # private setter for dn +val+
def set_dn(val)
@dn = val
build_path_query
@@ -112,15 +167,18 @@ module URI
end
protected :set_dn
+ # setter for dn +val+
def dn=(val)
set_dn(val)
val
end
+ # returns attributes.
def attributes
@attributes
end
+ # private setter for attributes +val+
def set_attributes(val)
@attributes = val
build_path_query
@@ -128,15 +186,18 @@ module URI
end
protected :set_attributes
+ # setter for attributes +val+
def attributes=(val)
set_attributes(val)
val
end
+ # returns scope.
def scope
@scope
end
+ # private setter for scope +val+
def set_scope(val)
@scope = val
build_path_query
@@ -144,15 +205,18 @@ module URI
end
protected :set_scope
+ # setter for scope +val+
def scope=(val)
set_scope(val)
val
end
+ # returns filter.
def filter
@filter
end
+ # private setter for filter +val+
def set_filter(val)
@filter = val
build_path_query
@@ -160,15 +224,18 @@ module URI
end
protected :set_filter
+ # setter for filter +val+
def filter=(val)
set_filter(val)
val
end
+ # returns extensions.
def extensions
@extensions
end
+ # private setter for extensions +val+
def set_extensions(val)
@extensions = val
build_path_query
@@ -176,11 +243,14 @@ module URI
end
protected :set_extensions
+ # setter for extensions +val+
def extensions=(val)
set_extensions(val)
val
end
+ # Checks if URI has a path
+ # For URI::LDAP this will return +false+
def hierarchical?
false
end
diff --git a/lib/uri/ldaps.rb b/lib/uri/ldaps.rb
index 6da333150f..42bbfe86ba 100644
--- a/lib/uri/ldaps.rb
+++ b/lib/uri/ldaps.rb
@@ -1,3 +1,10 @@
+# = uri/ldap.rb
+#
+# License:: You can redistribute it and/or modify it under the same term as Ruby.
+#
+# See URI for general documentation
+#
+
require 'uri/ldap'
module URI
@@ -6,6 +13,7 @@ module URI
# than 'ldap:'. Other than that, LDAPS URIs are identical to LDAP URIs;
# see URI::LDAP.
class LDAPS < LDAP
+ # A Default port of 636 for URI::LDAPS
DEFAULT_PORT = 636
end
@@schemes['LDAPS'] = LDAPS
diff --git a/lib/uri/mailto.rb b/lib/uri/mailto.rb
index 4fab6e23a5..765528fb7f 100644
--- a/lib/uri/mailto.rb
+++ b/lib/uri/mailto.rb
@@ -1,10 +1,11 @@
-#
# = uri/mailto.rb
#
# Author:: Akira Yamada <akira@ruby-lang.org>
# License:: You can redistribute it and/or modify it under the same term as Ruby.
# Revision:: $Id$
#
+# See URI for general documentation
+#
require 'uri/generic'
@@ -16,8 +17,10 @@ module URI
class MailTo < Generic
include REGEXP
+ # A Default port of nil for URI::MailTo
DEFAULT_PORT = nil
+ # An Array of the available components for URI::MailTo
COMPONENT = [ :scheme, :to, :headers ].freeze
# :stopdoc:
@@ -38,7 +41,7 @@ module URI
# hvalue = *urlc
# header = hname "=" hvalue
HEADER_PATTERN = "(?:[^?=&]*=[^?=&]*)".freeze
- HEADER_REGEXP = Regexp.new(HEADER_PATTERN, 'N').freeze
+ HEADER_REGEXP = Regexp.new(HEADER_PATTERN).freeze
# headers = "?" header *( "&" header )
# to = #mailbox
# mailtoURL = "mailto:" [ to ] [ headers ]
@@ -155,11 +158,14 @@ module URI
# E-mail headers set by the URL, as an Array of Arrays
attr_reader :headers
+ # check the to +v+ component against either
+ # * URI::Parser Regexp for :OPAQUE
+ # * MAILBOX_PATTERN
def check_to(v)
return true unless v
return true if v.size == 0
- if @parser.regexp[:OPAQUE] !~ v || /\A#{MAILBOX_PATTERN}*\z/o !~ v
+ if parser.regexp[:OPAQUE] !~ v || /\A#{MAILBOX_PATTERN}*\z/o !~ v
raise InvalidComponentError,
"bad component(expected opaque component): #{v}"
end
@@ -168,22 +174,27 @@ module URI
end
private :check_to
+ # private setter for to +v+
def set_to(v)
@to = v
end
protected :set_to
+ # setter for to +v+
def to=(v)
check_to(v)
set_to(v)
v
end
+ # check the headers +v+ component against either
+ # * URI::Parser Regexp for :OPAQUE
+ # * HEADER_PATTERN
def check_headers(v)
return true unless v
return true if v.size == 0
- if @parser.regexp[:OPAQUE] !~ v ||
+ if parser.regexp[:OPAQUE] !~ v ||
/\A(#{HEADER_PATTERN}(?:\&#{HEADER_PATTERN})*)\z/o !~ v
raise InvalidComponentError,
"bad component(expected opaque component): #{v}"
@@ -193,6 +204,7 @@ module URI
end
private :check_headers
+ # private setter for headers +v+
def set_headers(v)
@headers = []
if v
@@ -203,12 +215,14 @@ module URI
end
protected :set_headers
+ # setter for headers +v+
def headers=(v)
check_headers(v)
set_headers(v)
v
end
+ # Constructs String from URI
def to_s
@scheme + ':' +
if @to
@@ -239,18 +253,18 @@ module URI
# # => "To: ruby-list@ruby-lang.org\nSubject: subscribe\nCc: myaddr\n\n\n"
#
def to_mailtext
- to = @parser.unescape(@to)
+ to = parser.unescape(@to)
head = ''
body = ''
@headers.each do |x|
case x[0]
when 'body'
- body = @parser.unescape(x[1])
+ body = parser.unescape(x[1])
when 'to'
- to << ', ' + @parser.unescape(x[1])
+ to << ', ' + parser.unescape(x[1])
else
- head << @parser.unescape(x[0]).capitalize + ': ' +
- @parser.unescape(x[1]) + "\n"
+ head << parser.unescape(x[0]).capitalize + ': ' +
+ parser.unescape(x[1]) + "\n"
end
end
diff --git a/lib/weakref.rb b/lib/weakref.rb
index ba39242445..ee5444a584 100644
--- a/lib/weakref.rb
+++ b/lib/weakref.rb
@@ -1,19 +1,26 @@
-# Weak Reference class that does not bother GCing.
+require "delegate"
+require 'thread'
+
+# Weak Reference class that allows a referenced object to be
+# garbage-collected. A WeakRef may be used exactly like the object it
+# references.
#
# Usage:
+#
# foo = Object.new
# foo = Object.new
-# p foo.to_s # original's class
+# p foo.to_s # original's class
# foo = WeakRef.new(foo)
-# p foo.to_s # should be same class
+# p foo.to_s # should be same class
# ObjectSpace.garbage_collect
-# p foo.to_s # should raise exception (recycled)
-
-require "delegate"
-require 'thread'
+# p foo.to_s # should raise exception (recycled)
class WeakRef < Delegator
+ ##
+ # RefError is raised when a referenced object has been recycled by the
+ # garbage collector
+
class RefError < StandardError
end
@@ -24,20 +31,23 @@ class WeakRef < Delegator
@@mutex.synchronize {
rids = @@id_map[id]
if rids
- for rid in rids
- @@id_rev_map.delete(rid)
- end
- @@id_map.delete(id)
+ for rid in rids
+ @@id_rev_map.delete(rid)
+ end
+ @@id_map.delete(id)
end
rid = @@id_rev_map[id]
if rid
- @@id_rev_map.delete(id)
- @@id_map[rid].delete(id)
- @@id_map.delete(rid) if @@id_map[rid].empty?
+ @@id_rev_map.delete(id)
+ @@id_map[rid].delete(id)
+ @@id_map.delete(rid) if @@id_map[rid].empty?
end
}
}
+ ##
+ # Creates a weak reference to +orig+
+
def initialize(orig)
@__id = orig.object_id
ObjectSpace.define_finalizer orig, @@final
@@ -50,7 +60,7 @@ class WeakRef < Delegator
super
end
- def __getobj__
+ def __getobj__ # :nodoc:
unless @@id_rev_map[self.object_id] == @__id
Kernel::raise RefError, "Invalid Reference - probably recycled", Kernel::caller(2)
end
@@ -60,9 +70,13 @@ class WeakRef < Delegator
Kernel::raise RefError, "Invalid Reference - probably recycled", Kernel::caller(2)
end
end
- def __setobj__(obj)
+
+ def __setobj__(obj) # :nodoc:
end
+ ##
+ # Returns true if the referenced object is still alive.
+
def weakref_alive?
@@id_rev_map[self.object_id] == @__id
end
@@ -71,10 +85,10 @@ end
if __FILE__ == $0
# require 'thread'
foo = Object.new
- p foo.to_s # original's class
+ p foo.to_s # original's class
foo = WeakRef.new(foo)
- p foo.to_s # should be same class
+ p foo.to_s # should be same class
ObjectSpace.garbage_collect
ObjectSpace.garbage_collect
- p foo.to_s # should raise exception (recycled)
+ p foo.to_s # should raise exception (recycled)
end
diff --git a/lib/webrick.rb b/lib/webrick.rb
index 8fca81bafb..842bda21ef 100644
--- a/lib/webrick.rb
+++ b/lib/webrick.rb
@@ -1,13 +1,211 @@
+##
+# = WEB server toolkit.
#
-# WEBrick -- WEB server toolkit.
+# WEBrick is an HTTP server toolkit that can be configured as an HTTPS server,
+# a proxy server, and a virtual-host server. WEBrick features complete
+# logging of both server operations and HTTP access. WEBrick supports both
+# basic and digest authentication in addition to algorithms not in RFC 2617.
+#
+# A WEBrick servers can be composed of multiple WEBrick servers or servlets to
+# provide differing behavior on a per-host or per-path basis. WEBrick
+# includes servlets for handling CGI scripts, ERb pages, ruby blocks and
+# directory listings.
+#
+# WEBrick also includes tools for daemonizing a process and starting a process
+# at a higher privilege level and dropping permissions.
+#
+# == Starting an HTTP server
+#
+# To create a new WEBrick::HTTPServer that will listen to connections on port
+# 8000 and serve documents from the current user's public_html folder:
+#
+# require 'webrick'
+#
+# root = File.expand_path '~/public_html'
+# server = WEBrick::HTTPServer.new :Port => 8000, :DocumentRoot => root
+#
+# To run the server you will need to provide a suitable shutdown hook as
+# starting the server blocks the current thread:
+#
+# trap 'INT' do server.shutdown end
+#
+# server.start
+#
+# == Custom Behavior
+#
+# The easiest way to have a server perform custom operations is through
+# WEBrick::HTTPServer#mount_proc. The block given will be called with a
+# WEBrick::HTTPRequest with request info and a WEBrick::HTTPResponse which
+# must be filled in appropriately:
+#
+# server.mount_proc '/' do |req, res|
+# res.body = 'Hello, world!'
+# end
+#
+# Remember that <tt>server.mount_proc</tt> must <tt>server.start</tt>.
+#
+# == Servlets
+#
+# Advanced custom behavior can be obtained through mounting a subclass of
+# WEBrick::HTTPServlet::AbstractServlet. Servlets provide more modularity
+# when writing an HTTP server than mount_proc allows. Here is a simple
+# servlet:
+#
+# class Simple < WEBrick::HTTPServlet::AbstractServlet
+# def do_GET request, response
+# status, content_type, body = do_stuff_with request
+#
+# response.status = 200
+# response['Content-Type'] = 'text/plain'
+# response.body = 'Hello, World!'
+# end
+# end
+#
+# To initialize the servlet you mount it on the server:
+#
+# server.mount '/simple', Simple
+#
+# See WEBrick::HTTPServlet::AbstractServlet for more details.
+#
+# == Virtual Hosts
+#
+# A server can act as a virtual host for multiple host names. After creating
+# the listening host, additional hosts that do not listen can be created and
+# attached as virtual hosts:
+#
+# server = WEBrick::HTTPServer.new # ...
+#
+# vhost = WEBrick::HTTPServer.new :ServerName => 'vhost.example',
+# :DoNotListen => true, # ...
+# vhost.mount '/', ...
+#
+# server.virtual_host vhost
+#
+# If no +:DocumentRoot+ is provided and no servlets or procs are mounted on the
+# main server it will return 404 for all URLs.
+#
+# == HTTPS
+#
+# To create an HTTPS server you only need to enable SSL and provide an SSL
+# certificate name:
+#
+# require 'webrick'
+# require 'webrick/https'
+#
+# cert_name = [
+# %w[CN localhost],
+# ]
+#
+# server = WEBrick::HTTPServer.new(:Port => 8000,
+# :SSLEnable => true,
+# :SSLCertName => cert_name)
+#
+# This will start the server with a self-generated self-signed certificate.
+# The certificate will be changed every time the server is restarted.
+#
+# To create a server with a pre-determined key and certificate you can provide
+# them:
+#
+# require 'webrick'
+# require 'webrick/https'
+# require 'openssl'
+#
+# cert = OpenSSL::X509::Certificate.new File.read '/path/to/cert.pem'
+# pkey = OpenSSL::PKey::RSA.new File.read '/path/to/pkey.pem'
+#
+# server = WEBrick::HTTPServer.new(:Port => 8000,
+# :SSLEnable => true,
+# :SSLCertificate => cert,
+# :SSLPrivateKey => pkey)
+#
+# == Proxy Server
+#
+# WEBrick can act as a proxy server:
+#
+# require 'webrick'
+# require 'webrick/httpproxy'
+#
+# proxy = WEBrick::HTTPProxyServer.new :Port => 8000
+#
+# trap 'INT' do proxy.shutdown end
+#
+# Proxies may modifier the content of the response through the
+# +:ProxyContentHandler+ callback which will be invoked with the request and
+# respone after the remote content has been fetched.
+#
+# == Basic and Digest authentication
+#
+# WEBrick provides both Basic and Digest authentication for regular and proxy
+# servers. See WEBrick::HTTPAuth, WEBrick::HTTPAuth::BasicAuth and
+# WEBrick::HTTPAuth::DigestAuth.
+#
+# == WEBrick as a Production Web Server
+#
+# WEBrick can be run as a production server for small loads.
+#
+# === Daemonizing
+#
+# To start a WEBrick server as a daemon simple run WEBrick::Daemon.start
+# before starting the server.
+#
+# === Dropping Permissions
+#
+# WEBrick can be started as one user to gain permission to bind to port 80 or
+# 443 for serving HTTP or HTTPS traffic then can drop these permissions for
+# regular operation. To listen on all interfaces for HTTP traffic:
+#
+# sockets = WEBrick::Utils.create_listeners nil, 80
+#
+# Then drop privileges:
+#
+# WEBrick::Utils.su 'www'
+#
+# Then create a server that does not listen by default:
+#
+# server = WEBrick::HTTPServer.new :DoNotListen => true, # ...
+#
+# Then overwrite the listening sockets with the port 80 sockets:
+#
+# server.listeners.replace sockets
+#
+# === Logging
+#
+# WEBrick can separately log server operations and end-user access. For
+# server operations:
+#
+# log_file = File.open '/var/log/webrick.log', 'a+'
+# log = WEBrick::Log.new log_file
+#
+# For user access logging:
+#
+# access_log = [
+# [log_file, WEBrick::AccessLog::COMBINED_LOG_FORMAT],
+# ]
+#
+# server = WEBrick::HTTPServer.new :Logger => log, :AccessLog => access_log
+#
+# See WEBrick::AccessLog for further log formats.
+#
+# === Log Rotation
+#
+# To rotate logs in WEBrick on a HUP signal (like syslogd can send), open the
+# log file in 'a+' mode (as above) and trap 'HUP' to reopen the log file:
+#
+# trap 'HUP' do log_file.reopen '/path/to/webrick.log', 'a+'
+#
+# == Copyright
#
# Author: IPR -- Internet Programming with Ruby -- writers
+#
# Copyright (c) 2000 TAKAHASHI Masayoshi, GOTOU YUUZOU
# Copyright (c) 2002 Internet Programming with Ruby writers. All rights
# reserved.
-#
+#--
# $IPR: webrick.rb,v 1.12 2002/10/01 17:16:31 gotoyuzo Exp $
+module WEBrick
+end
+
require 'webrick/compat.rb'
require 'webrick/version.rb'
diff --git a/lib/webrick/accesslog.rb b/lib/webrick/accesslog.rb
index f97769545e..029b5a4902 100644
--- a/lib/webrick/accesslog.rb
+++ b/lib/webrick/accesslog.rb
@@ -1,4 +1,4 @@
-#
+#--
# accesslog.rb -- Access log handling utilities
#
# Author: IPR -- Internet Programming with Ruby -- writers
@@ -8,20 +8,89 @@
# $IPR: accesslog.rb,v 1.1 2002/10/01 17:16:32 gotoyuzo Exp $
module WEBrick
+
+ ##
+ # AccessLog provides logging to various files in various formats.
+ #
+ # Multiple logs may be written to at the same time:
+ #
+ # access_log = [
+ # [$stderr, WEBrick::AccessLog::COMMON_LOG_FORMAT],
+ # [$stderr, WEBrick::AccessLog::REFERER_LOG_FORMAT],
+ # ]
+ #
+ # server = WEBrick::HTTPServer.new :AccessLog => access_log
+ #
+ # Custom log formats may be defined. WEBrick::AccessLog provides a subset
+ # of the formatting from Apache's mod_log_config
+ # http://httpd.apache.org/docs/mod/mod_log_config.html#formats. See
+ # AccessLog::setup_params for a list of supported options
+
module AccessLog
+
+ ##
+ # Raised if a parameter such as %e, %i, %o or %n is used without fetching
+ # a specific field.
+
class AccessLogError < StandardError; end
+ ##
+ # The Common Log Format's time format
+
CLF_TIME_FORMAT = "[%d/%b/%Y:%H:%M:%S %Z]"
+
+ ##
+ # Common Log Format
+
COMMON_LOG_FORMAT = "%h %l %u %t \"%r\" %s %b"
+
+ ##
+ # Short alias for Common Log Format
+
CLF = COMMON_LOG_FORMAT
+
+ ##
+ # Referer Log Format
+
REFERER_LOG_FORMAT = "%{Referer}i -> %U"
+
+ ##
+ # User-Agent Log Format
+
AGENT_LOG_FORMAT = "%{User-Agent}i"
+
+ ##
+ # Combined Log Format
+
COMBINED_LOG_FORMAT = "#{CLF} \"%{Referer}i\" \"%{User-agent}i\""
module_function
- # This format specification is a subset of mod_log_config of Apache.
- # http://httpd.apache.org/docs/mod/mod_log_config.html#formats
+ # This format specification is a subset of mod_log_config of Apache:
+ #
+ # %a:: Remote IP address
+ # %b:: Total response size
+ # %e{variable}:: Given variable in ENV
+ # %f:: Response filename
+ # %h:: Remote host name
+ # %{header}i:: Given request header
+ # %l:: Remote logname, always "-"
+ # %m:: Request method
+ # %{attr}n:: Given request attribute from <tt>req.attributes</tt>
+ # %{header}o:: Given response header
+ # %p:: Server's request port
+ # %{format}p:: The canonical port of the server serving the request or the
+ # actual port or the client's actual port. Valid formats are
+ # canonical, local or remote.
+ # %q:: Request query string
+ # %r:: First line of the request
+ # %s:: Request status
+ # %t:: Time the request was recieved
+ # %T:: Time taken to process the request
+ # %u:: Remote user from auth
+ # %U:: Unparsed URI
+ # %%:: Literal %
+
def setup_params(config, req, res)
params = Hash.new("")
params["a"] = req.peeraddr[3]
@@ -53,15 +122,30 @@ module WEBrick
when ?e, ?i, ?n, ?o
raise AccessLogError,
"parameter is required for \"#{spec}\"" unless param
- params[spec][param] || "-"
+ (param = params[spec][param]) ? escape(param) : "-"
when ?t
params[spec].strftime(param || CLF_TIME_FORMAT)
+ when ?p
+ case param
+ when 'remote'
+ escape(params["i"].peeraddr[1].to_s)
+ else
+ escape(params["p"].to_s)
+ end
when ?%
"%"
else
- params[spec]
+ escape(params[spec].to_s)
end
}
end
+
+ def escape(data)
+ if data.tainted?
+ data.gsub(/[[:cntrl:]\\]+/) {$&.dump[1...-1]}.untaint
+ else
+ data
+ end
+ end
end
end
diff --git a/lib/webrick/cgi.rb b/lib/webrick/cgi.rb
index 7099d14689..806d050bc9 100644
--- a/lib/webrick/cgi.rb
+++ b/lib/webrick/cgi.rb
@@ -143,7 +143,7 @@ module WEBrick
setup_header
@header_part << CRLF
@header_part.rewind
- rescue Exception => ex
+ rescue Exception
raise CGIError, "invalid CGI environment"
end
end
diff --git a/lib/webrick/compat.rb b/lib/webrick/compat.rb
index ad7760b640..33521f0a76 100644
--- a/lib/webrick/compat.rb
+++ b/lib/webrick/compat.rb
@@ -8,8 +8,28 @@
#
# $IPR: compat.rb,v 1.6 2002/10/01 17:16:32 gotoyuzo Exp $
+##
+# System call error module used by webrick for cross platform compatability.
+#
+# EPROTO:: protocol error
+# ECONNRESET:: remote host reset the connection request
+# ECONNABORTED:: Client sent TCP reset (RST) before server has accepted the
+# connection requested by client.
+#
module Errno
+ ##
+ # Protocol error.
+
class EPROTO < SystemCallError; end
+
+ ##
+ # Remote host reset the connection request.
+
class ECONNRESET < SystemCallError; end
+
+ ##
+ # Client sent TCP reset (RST) before server has accepted the connection
+ # requested by client.
+
class ECONNABORTED < SystemCallError; end
end
diff --git a/lib/webrick/config.rb b/lib/webrick/config.rb
index 946312e915..8c6427020d 100644
--- a/lib/webrick/config.rb
+++ b/lib/webrick/config.rb
@@ -22,7 +22,7 @@ module WEBrick
General = {
:ServerName => Utils::getservername,
:BindAddress => nil, # "0.0.0.0" or "::" or nil
- :Port => nil, # users MUST specifiy this!!
+ :Port => nil, # users MUST specify this!!
:MaxClients => 100, # maximum number of the concurrent connections
:ServerType => nil, # default: WEBrick::SimpleServer
:Logger => nil, # default: WEBrick::Log.new
@@ -82,6 +82,27 @@ module WEBrick
:AutoReloadUserDB => true,
}
+ ##
+ # Default configuration for WEBrick::HTTPAuth::DigestAuth.
+ #
+ # :Algorithm:: MD5, MD5-sess (default), SHA1, SHA1-sess
+ # :Domain:: An Array of URIs that define the protected space
+ # :Qop:: 'auth' for authentication, 'auth-int' for integrity protection or
+ # both
+ # :UseOpaque:: Should the server send opaque values to the client? This
+ # helps prevent replay attacks.
+ # :CheckNc:: Should the server check the nonce count? This helps the
+ # server detect replay attacks.
+ # :UseAuthenticationInfoHeader:: Should the server send an
+ # AuthenticationInfo header?
+ # :AutoReloadUserDB:: Reload the user database provided by :UserDB
+ # automatically?
+ # :NonceExpirePeriod:: How long should we store used nonces? Default is
+ # 30 minutes.
+ # :NonceExpireDelta:: How long is a nonce valid? Default is 1 minute
+ # :InternetExplorerHack:: Hack which allows Internet Explorer to work.
+ # :OperaHack:: Hack which allows Opera to work.
+
DigestAuth = {
:Algorithm => 'MD5-sess', # or 'MD5'
:Domain => nil, # an array includes domain names.
diff --git a/lib/webrick/htmlutils.rb b/lib/webrick/htmlutils.rb
index cf8d542c09..ed901f1ce2 100644
--- a/lib/webrick/htmlutils.rb
+++ b/lib/webrick/htmlutils.rb
@@ -1,4 +1,4 @@
-#
+#--
# htmlutils.rb -- HTMLUtils Module
#
# Author: IPR -- Internet Programming with Ruby -- writers
@@ -11,6 +11,9 @@
module WEBrick
module HTMLUtils
+ ##
+ # Escapes &, ", > and < in +string+
+
def escape(string)
str = string ? string.dup : ""
str.gsub!(/&/n, '&amp;')
diff --git a/lib/webrick/httpauth.rb b/lib/webrick/httpauth.rb
index 147c04021c..96d479b2d7 100644
--- a/lib/webrick/httpauth.rb
+++ b/lib/webrick/httpauth.rb
@@ -15,10 +15,46 @@ require 'webrick/httpauth/htdigest'
require 'webrick/httpauth/htgroup'
module WEBrick
+
+ ##
+ # HTTPAuth provides both basic and digest authentication.
+ #
+ # To enable authentication for requests in WEBrick you will need a user
+ # database and an authenticator. To start, here's an Htpasswd database for
+ # use with a DigestAuth authenticator:
+ #
+ # config = { :Realm => 'DigestAuth example realm' }
+ #
+ # htpasswd = WEBrick::HTTPAuth::Htpasswd.new 'my_password_file'
+ # htpasswd.auth_type = WEBrick::HTTPAuth::DigestAuth
+ # htpasswd.set_passwd config[:Realm], 'username', 'password'
+ # htpasswd.flush
+ #
+ # The +:Realm+ is used to provide different access to different groups
+ # across several resources on a server. Typically you'll need only one
+ # realm for a server.
+ #
+ # This database can be used to create an authenticator:
+ #
+ # config[:UserDB] = htpasswd
+ #
+ # digest_auth = WEBrick::HTTPAuth::DigestAuth.new config
+ #
+ # To authenticate a request call #authenticate with a request and response
+ # object in a servlet:
+ #
+ # def do_GET req, res
+ # @authenticator.authenticate req, res
+ # end
+ #
+ # For digest authentication the authenticator must not be created every
+ # request, it must be passed in as an option via WEBrick::HTTPServer#mount.
+
module HTTPAuth
module_function
- def _basic_auth(req, res, realm, req_field, res_field, err_type, block)
+ def _basic_auth(req, res, realm, req_field, res_field, err_type,
+ block) # :nodoc:
user = pass = nil
if /^Basic\s+(.*)/o =~ req[req_field]
userpass = $1
@@ -32,12 +68,26 @@ module WEBrick
raise err_type
end
- def basic_auth(req, res, realm, &block)
+ ##
+ # Simple wrapper for providing basic authentication for a request. When
+ # called with a request +req+, response +res+, authentication +realm+ and
+ # +block+ the block will be called with a +username+ and +password+. If
+ # the block returns true the request is allowed to continue, otherwise an
+ # HTTPStatus::Unauthorized error is raised.
+
+ def basic_auth(req, res, realm, &block) # :yield: username, password
_basic_auth(req, res, realm, "Authorization", "WWW-Authenticate",
HTTPStatus::Unauthorized, block)
end
- def proxy_basic_auth(req, res, realm, &block)
+ ##
+ # Simple wrapper for providing basic authentication for a proxied request.
+ # When called with a request +req+, response +res+, authentication +realm+
+ # and +block+ the block will be called with a +username+ and +password+.
+ # If the block returns true the request is allowed to continue, otherwise
+ # an HTTPStatus::ProxyAuthenticationRequired error is raised.
+
+ def proxy_basic_auth(req, res, realm, &block) # :yield: username, password
_basic_auth(req, res, realm, "Proxy-Authorization", "Proxy-Authenticate",
HTTPStatus::ProxyAuthenticationRequired, block)
end
diff --git a/lib/webrick/httpauth/authenticator.rb b/lib/webrick/httpauth/authenticator.rb
index d93f12a97a..9b9beeceba 100644
--- a/lib/webrick/httpauth/authenticator.rb
+++ b/lib/webrick/httpauth/authenticator.rb
@@ -1,4 +1,4 @@
-#
+#--
# httpauth/authenticator.rb -- Authenticator mix-in module.
#
# Author: IPR -- Internet Programming with Ruby -- writers
@@ -9,17 +9,43 @@
module WEBrick
module HTTPAuth
+
+ ##
+ # Module providing generic support for both Digest and Basic
+ # authentication schemes.
+
module Authenticator
+
RequestField = "Authorization"
ResponseField = "WWW-Authenticate"
ResponseInfoField = "Authentication-Info"
AuthException = HTTPStatus::Unauthorized
- AuthScheme = nil # must override by the derived class
- attr_reader :realm, :userdb, :logger
+ ##
+ # Method of authentication, must be overridden by the including class
+
+ AuthScheme = nil
+
+ ##
+ # The realm this authenticator covers
+
+ attr_reader :realm
+
+ ##
+ # The user database for this authenticator
+
+ attr_reader :userdb
+
+ ##
+ # The logger for this authenticator
+
+ attr_reader :logger
private
+ ##
+ # Initializes the authenticator from +config+
+
def check_init(config)
[:UserDB, :Realm].each{|sym|
unless config[sym]
@@ -37,6 +63,9 @@ module WEBrick
@auth_scheme = self::class::AuthScheme
end
+ ##
+ # Ensures +req+ has credentials that can be authenticated.
+
def check_scheme(req)
unless credentials = req[@request_field]
error("no credentials in the request.")
@@ -69,6 +98,10 @@ module WEBrick
end
end
+ ##
+ # Module providing generic support for both Digest and Basic
+ # authentication schemes for proxies.
+
module ProxyAuthenticator
RequestField = "Proxy-Authorization"
ResponseField = "Proxy-Authenticate"
diff --git a/lib/webrick/httpauth/basicauth.rb b/lib/webrick/httpauth/basicauth.rb
index 210fb00bbe..4c51e53199 100644
--- a/lib/webrick/httpauth/basicauth.rb
+++ b/lib/webrick/httpauth/basicauth.rb
@@ -13,11 +13,32 @@ require 'webrick/httpauth/authenticator'
module WEBrick
module HTTPAuth
+
+ ##
+ # Basic Authentication for WEBrick
+ #
+ # Use this class to add basic authentication to a WEBrick servlet.
+ #
+ # Here is an example of how to set up a BasicAuth:
+ #
+ # config = { :Realm => 'BasicAuth example realm' }
+ #
+ # htpasswd = WEBrick::HTTPAuth::Htpasswd.new 'my_password_file'
+ # htpasswd.set_passwd config[:Realm], 'username', 'password'
+ # htpasswd.flush
+ #
+ # config[:UserDB] = htpasswd
+ #
+ # basic_auth = WEBrick::HTTPAuth::BasicAuth.new config
+
class BasicAuth
include Authenticator
AuthScheme = "Basic"
+ ##
+ # Used by UserDB to create a basic password entry
+
def self.make_passwd(realm, user, pass)
pass ||= ""
pass.crypt(Utils::random_string(2))
@@ -25,11 +46,26 @@ module WEBrick
attr_reader :realm, :userdb, :logger
+ ##
+ # Creates a new BasicAuth instance.
+ #
+ # See WEBrick::Config::BasicAuth for default configuration entries
+ #
+ # You must supply the following configuration entries:
+ #
+ # :Realm:: The name of the realm being protected.
+ # :UserDB:: A database of usernames and passwords.
+ # A WEBrick::HTTPAuth::Htpasswd instance should be used.
+
def initialize(config, default=Config::BasicAuth)
check_init(config)
@config = default.dup.update(config)
end
+ ##
+ # Authenticates a +req+ and returns a 401 Unauthorized using +res+ if
+ # the authentication was not correct.
+
def authenticate(req, res)
unless basic_credentials = check_scheme(req)
challenge(req, res)
@@ -52,12 +88,19 @@ module WEBrick
req.user = userid
end
+ ##
+ # Returns a challenge response which asks for for authentication
+ # information
+
def challenge(req, res)
res[@response_field] = "#{@auth_scheme} realm=\"#{@realm}\""
raise @auth_exception
end
end
+ ##
+ # Basic authentication for proxy servers. See BasicAuth for details.
+
class ProxyBasicAuth < BasicAuth
include ProxyAuthenticator
end
diff --git a/lib/webrick/httpauth/digestauth.rb b/lib/webrick/httpauth/digestauth.rb
index aac87a06df..4e47fe163f 100644
--- a/lib/webrick/httpauth/digestauth.rb
+++ b/lib/webrick/httpauth/digestauth.rb
@@ -19,6 +19,29 @@ require 'digest/sha1'
module WEBrick
module HTTPAuth
+
+ ##
+ # RFC 2617 Digest Access Authentication for WEBrick
+ #
+ # Use this class to add digest authentication to a WEBrick servlet.
+ #
+ # Here is an example of how to set up DigestAuth:
+ #
+ # config = { :Realm => 'DigestAuth example realm' }
+ #
+ # htdigest = WEBrick::HTTPAuth::Htdigest.new 'my_password_file'
+ # htdigest.set_passwd config[:Realm], 'username', 'password'
+ # htdigest.flush
+ #
+ # config[:UserDB] = htdigest
+ #
+ # digest_auth = WEBrick::HTTPAuth::DigestAuth.new config
+ #
+ # When using this as with a servlet be sure not to create a new DigestAuth
+ # object in the servlet's #initialize. By default WEBrick creates a new
+ # servlet instance for every request and the DigestAuth object must be
+ # used across requests.
+
class DigestAuth
include Authenticator
@@ -26,11 +49,27 @@ module WEBrick
OpaqueInfo = Struct.new(:time, :nonce, :nc)
attr_reader :algorithm, :qop
+ ##
+ # Used by UserDB to create a digest password entry
+
def self.make_passwd(realm, user, pass)
pass ||= ""
Digest::MD5::hexdigest([user, realm, pass].join(":"))
end
+ ##
+ # Creates a new DigestAuth instance. Be sure to use the same DigestAuth
+ # instance for multiple requests as it saves state between requests in
+ # order to perform authentication.
+ #
+ # See WEBrick::Config::DigestAuth for default configuration entries
+ #
+ # You must supply the following configuration entries:
+ #
+ # :Realm:: The name of the realm being protected.
+ # :UserDB:: A database of usernames and passwords.
+ # A WEBrick::HTTPAuth::Htdigest instance should be used.
+
def initialize(config, default=Config::DigestAuth)
check_init(config)
@config = default.dup.update(config)
@@ -44,7 +83,6 @@ module WEBrick
@nonce_expire_period = @config[:NonceExpirePeriod]
@nonce_expire_delta = @config[:NonceExpireDelta]
@internet_explorer_hack = @config[:InternetExplorerHack]
- @opera_hack = @config[:OperaHack]
case @algorithm
when 'MD5','MD5-sess'
@@ -62,6 +100,10 @@ module WEBrick
@mutex = Mutex.new
end
+ ##
+ # Authenticates a +req+ and returns a 401 Unauthorized using +res+ if
+ # the authentication was not correct.
+
def authenticate(req, res)
unless result = @mutex.synchronize{ _authenticate(req, res) }
challenge(req, res)
@@ -72,6 +114,10 @@ module WEBrick
return true
end
+ ##
+ # Returns a challenge response which asks for for authentication
+ # information
+
def challenge(req, res, stale=false)
nonce = generate_next_nonce(req)
if @use_opaque
@@ -128,8 +174,7 @@ module WEBrick
end
auth_req['algorithm'] ||= 'MD5'
- if auth_req['algorithm'] != @algorithm &&
- (@opera_hack && auth_req['algorithm'] != @algorithm.upcase)
+ if auth_req['algorithm'].upcase != @algorithm.upcase
error('%s: algorithm unmatch. "%s" for "%s"',
auth_req['username'], auth_req['algorithm'], @algorithm)
return false
@@ -165,8 +210,7 @@ module WEBrick
nonce_is_invalid = true
end
- if /-sess$/ =~ auth_req['algorithm'] ||
- (@opera_hack && /-SESS$/ =~ auth_req['algorithm'])
+ if /-sess$/i =~ auth_req['algorithm']
ha1 = hexdigest(password, auth_req['nonce'], auth_req['cnonce'])
else
ha1 = password
@@ -222,7 +266,7 @@ module WEBrick
end
}.join(', ')
end
- info('%s: authentication scceeded.', auth_req['username'])
+ info('%s: authentication succeeded.', auth_req['username'])
req.user = auth_req['username']
return true
end
@@ -333,9 +377,13 @@ module WEBrick
end
+ ##
+ # Digest authentication for proxy servers. See DigestAuth for details.
+
class ProxyDigestAuth < DigestAuth
include ProxyAuthenticator
+ private
def check_uri(req, auth_req)
return true
end
diff --git a/lib/webrick/httpauth/htdigest.rb b/lib/webrick/httpauth/htdigest.rb
index 3949756f2b..4b74588c77 100644
--- a/lib/webrick/httpauth/htdigest.rb
+++ b/lib/webrick/httpauth/htdigest.rb
@@ -13,9 +13,26 @@ require 'tempfile'
module WEBrick
module HTTPAuth
+
+ ##
+ # Htdigest accesses apache-compatible digest password files. Passwords are
+ # matched to a realm where they are valid. For security, the path for a
+ # digest password database should be stored outside of the paths available
+ # to the HTTP server.
+ #
+ # Htdigest is intended for use with WEBrick::HTTPAuth::DigestAuth and
+ # stores passwords using cryptographic hashes.
+ #
+ # htpasswd = WEBrick::HTTPAuth::Htdigest.new 'my_password_file'
+ # htpasswd.set_passwd 'my realm', 'username', 'password'
+ # htpasswd.flush
+
class Htdigest
include UserDB
+ ##
+ # Open a digest password database at +path+
+
def initialize(path)
@path = path
@mtime = Time.at(0)
@@ -26,6 +43,9 @@ module WEBrick
reload
end
+ ##
+ # Reloads passwords from the database
+
def reload
mtime = File::mtime(@path)
if mtime > @mtime
@@ -44,6 +64,10 @@ module WEBrick
end
end
+ ##
+ # Flush the password database. If +output+ is given the database will
+ # be written there instead of to the original path.
+
def flush(output=nil)
output ||= @path
tmp = Tempfile.new("htpasswd", File::dirname(output))
@@ -56,6 +80,10 @@ module WEBrick
end
end
+ ##
+ # Retrieves a password from the database for +user+ in +realm+. If
+ # +reload_db+ is true the database will be reloaded first.
+
def get_passwd(realm, user, reload_db)
reload() if reload_db
if hash = @digest[realm]
@@ -63,6 +91,9 @@ module WEBrick
end
end
+ ##
+ # Sets a password in the database for +user+ in +realm+ to +pass+.
+
def set_passwd(realm, user, pass)
@mutex.synchronize{
unless @digest[realm]
@@ -72,13 +103,19 @@ module WEBrick
}
end
+ ##
+ # Removes a password from the database for +user+ in +realm+.
+
def delete_passwd(realm, user)
if hash = @digest[realm]
hash.delete(user)
end
end
- def each
+ ##
+ # Iterate passwords in the database.
+
+ def each # :yields: [user, realm, password_hash]
@digest.keys.sort.each{|realm|
hash = @digest[realm]
hash.keys.sort.each{|user|
diff --git a/lib/webrick/httpauth/htgroup.rb b/lib/webrick/httpauth/htgroup.rb
index c9270c61cc..0ecabef820 100644
--- a/lib/webrick/httpauth/htgroup.rb
+++ b/lib/webrick/httpauth/htgroup.rb
@@ -11,7 +11,26 @@ require 'tempfile'
module WEBrick
module HTTPAuth
+
+ ##
+ # Htgroup accesses apache-compatible group files. Htgroup can be used to
+ # provide group-based authentication for users. Currently Htgroup is not
+ # directly integrated with any authenticators in WEBrick. For security,
+ # the path for a digest password database should be stored outside of the
+ # paths available to the HTTP server.
+ #
+ # Example:
+ #
+ # htgroup = WEBrick::HTTPAuth::Htgroup.new 'my_group_file'
+ # htgroup.add 'superheroes', %w[spiderman batman]
+ #
+ # htgroup.members('superheroes').include? 'magneto' # => false
+
class Htgroup
+
+ ##
+ # Open a group database at +path+
+
def initialize(path)
@path = path
@mtime = Time.at(0)
@@ -20,6 +39,9 @@ module WEBrick
reload
end
+ ##
+ # Reload groups from the database
+
def reload
if (mtime = File::mtime(@path)) > @mtime
@group.clear
@@ -34,6 +56,10 @@ module WEBrick
end
end
+ ##
+ # Flush the group database. If +output+ is given the database will be
+ # written there instead of to the original path.
+
def flush(output=nil)
output ||= @path
tmp = Tempfile.new("htgroup", File::dirname(output))
@@ -48,11 +74,17 @@ module WEBrick
end
end
+ ##
+ # Retrieve the list of members from +group+
+
def members(group)
reload
@group[group] || []
end
+ ##
+ # Add an Array of +members+ to +group+
+
def add(group, members)
@group[group] = members(group) | members
end
diff --git a/lib/webrick/httpauth/htpasswd.rb b/lib/webrick/httpauth/htpasswd.rb
index 8a058861d3..205a6db2f0 100644
--- a/lib/webrick/httpauth/htpasswd.rb
+++ b/lib/webrick/httpauth/htpasswd.rb
@@ -13,9 +13,27 @@ require 'tempfile'
module WEBrick
module HTTPAuth
+
+ ##
+ # Htpasswd accesses apache-compatible password files. Passwords are
+ # matched to a realm where they are valid. For security, the path for a
+ # password database should be stored outside of the paths available to the
+ # HTTP server.
+ #
+ # Htpasswd is intended for use with WEBrick::HTTPAuth::BasicAuth.
+ #
+ # To create an Htpasswd database with a single user:
+ #
+ # htpasswd = WEBrick::HTTPAuth::Htpasswd.new 'my_password_file'
+ # htpasswd.set_passwd 'my realm', 'username', 'password'
+ # htpasswd.flush
+
class Htpasswd
include UserDB
+ ##
+ # Open a password database at +path+
+
def initialize(path)
@path = path
@mtime = Time.at(0)
@@ -25,6 +43,9 @@ module WEBrick
reload
end
+ ##
+ # Reload passwords from the database
+
def reload
mtime = File::mtime(@path)
if mtime > @mtime
@@ -48,6 +69,10 @@ module WEBrick
end
end
+ ##
+ # Flush the password database. If +output+ is given the database will
+ # be written there instead of to the original path.
+
def flush(output=nil)
output ||= @path
tmp = Tempfile.new("htpasswd", File::dirname(output))
@@ -60,20 +85,33 @@ module WEBrick
end
end
+ ##
+ # Retrieves a password from the database for +user+ in +realm+. If
+ # +reload_db+ is true the database will be reloaded first.
+
def get_passwd(realm, user, reload_db)
reload() if reload_db
@passwd[user]
end
+ ##
+ # Sets a password in the database for +user+ in +realm+ to +pass+.
+
def set_passwd(realm, user, pass)
@passwd[user] = make_passwd(realm, user, pass)
end
+ ##
+ # Removes a password from the database for +user+ in +realm+.
+
def delete_passwd(realm, user)
@passwd.delete(user)
end
- def each
+ ##
+ # Iterate passwords in the database.
+
+ def each # :yields: [user, password]
@passwd.keys.sort.each{|user|
yield([user, @passwd[user]])
}
diff --git a/lib/webrick/httpauth/userdb.rb b/lib/webrick/httpauth/userdb.rb
index 0285f89352..005c18dfd0 100644
--- a/lib/webrick/httpauth/userdb.rb
+++ b/lib/webrick/httpauth/userdb.rb
@@ -1,4 +1,4 @@
-#
+#--
# httpauth/userdb.rb -- UserDB mix-in module.
#
# Author: IPR -- Internet Programming with Ruby -- writers
@@ -9,19 +9,42 @@
module WEBrick
module HTTPAuth
+
+ ##
+ # User database mixin for HTTPAuth. This mixin dispatches user record
+ # access to the underlying auth_type for this database.
+
module UserDB
- attr_accessor :auth_type # BasicAuth or DigestAuth
+
+ ##
+ # The authentication type.
+ #
+ # WEBrick::HTTPAuth::BasicAuth or WEBrick::HTTPAuth::DigestAuth are
+ # built-in.
+
+ attr_accessor :auth_type
+
+ ##
+ # Creates an obscured password in +realm+ with +user+ and +password+
+ # using the auth_type of this database.
def make_passwd(realm, user, pass)
@auth_type::make_passwd(realm, user, pass)
end
+ ##
+ # Sets a password in +realm+ with +user+ and +password+ for the
+ # auth_type of this database.
+
def set_passwd(realm, user, pass)
self[user] = pass
end
+ ##
+ # Retrieves a password in +realm+ for +user+ for the auth_type of this
+ # database. +reload_db+ is a dummy value.
+
def get_passwd(realm, user, reload_db=false)
- # reload_db is dummy
make_passwd(realm, user, self[user])
end
end
diff --git a/lib/webrick/httpproxy.rb b/lib/webrick/httpproxy.rb
index ce99c55d8f..33ce17b2d4 100644
--- a/lib/webrick/httpproxy.rb
+++ b/lib/webrick/httpproxy.rb
@@ -33,7 +33,24 @@ module WEBrick
end
end
+ ##
+ # An HTTP Proxy server which proxies GET, HEAD and POST requests.
+
class HTTPProxyServer < HTTPServer
+
+ ##
+ # Proxy server configurations. The proxy server handles the following
+ # configuration items in addition to those supported by HTTPServer:
+ #
+ # :ProxyAuthProc:: Called with a request and response to authorize a
+ # request
+ # :ProxyVia:: Appended to the via header
+ # :ProxyURI:: The proxy server's URI
+ # :ProxyContentHandler:: Called with a request and resopnse and allows
+ # modification of the response
+ # :ProxyTimeout:: Sets the proxy timeouts to 30 seconds for open and 60
+ # seconds for read operations
+
def initialize(config={}, default=Config::HTTP)
super(config, default)
c = @config
diff --git a/lib/webrick/httprequest.rb b/lib/webrick/httprequest.rb
index ff9b6d7849..050b5ed45b 100644
--- a/lib/webrick/httprequest.rb
+++ b/lib/webrick/httprequest.rb
@@ -15,23 +15,27 @@ require 'webrick/httputils'
require 'webrick/cookie'
module WEBrick
+
+ ##
+ # An HTTP request.
class HTTPRequest
+
BODY_CONTAINABLE_METHODS = [ "POST", "PUT" ]
- # Request line
+ # :section: Request line
attr_reader :request_line
attr_reader :request_method, :unparsed_uri, :http_version
- # Request-URI
+ # :section: Request-URI
attr_reader :request_uri, :path
attr_accessor :script_name, :path_info, :query_string
- # Header and entity body
+ # :section: Header and entity body
attr_reader :raw_header, :header, :cookies
attr_reader :accept, :accept_charset
attr_reader :accept_encoding, :accept_language
- # Misc
+ # :section:
attr_accessor :user
attr_reader :addr, :peeraddr
attr_reader :attributes
@@ -122,12 +126,24 @@ module WEBrick
end
end
+ # Generate HTTP/1.1 100 continue response if the client expects it,
+ # otherwise does nothing.
+ def continue
+ if self['expect'] == '100-continue' && @config[:HTTPVersion] >= "1.1"
+ @socket << "HTTP/#{@config[:HTTPVersion]} 100 continue#{CRLF}#{CRLF}"
+ @header.delete('expect')
+ end
+ end
+
def body(&block)
block ||= Proc.new{|chunk| @body << chunk }
read_body(@socket, block)
@body.empty? ? nil : @body
end
+ ##
+ # Request query as a Hash
+
def query
unless @query
parse_query()
@@ -135,14 +151,23 @@ module WEBrick
@query
end
+ ##
+ # The content-length header
+
def content_length
return Integer(self['content-length'])
end
+ ##
+ # The content-type header
+
def content_type
return self['content-type']
end
+ ##
+ # Retrieves +header_name+
+
def [](header_name)
if @header
value = @header[header_name.downcase]
@@ -150,38 +175,61 @@ module WEBrick
end
end
+ ##
+ # Iterates over the request headers
+
def each
- @header.each{|k, v|
- value = @header[k]
- yield(k, value.empty? ? nil : value.join(", "))
- }
+ if @header
+ @header.each{|k, v|
+ value = @header[k]
+ yield(k, value.empty? ? nil : value.join(", "))
+ }
+ end
end
+ ##
+ # The host this request is for
+
def host
return @forwarded_host || @host
end
+ ##
+ # The port this request is for
+
def port
return @forwarded_port || @port
end
+ ##
+ # The server name this request is for
+
def server_name
return @forwarded_server || @config[:ServerName]
end
+ ##
+ # The client's IP address
+
def remote_ip
return self["client-ip"] || @forwarded_for || @peeraddr[3]
end
+ ##
+ # Is this an SSL request?
+
def ssl?
return @request_uri.scheme == "https"
end
+ ##
+ # Should the connection this request was made on be kept alive?
+
def keep_alive?
@keep_alive
end
- def to_s
+ def to_s # :nodoc:
ret = @request_line.dup
@raw_header.each{|line| ret << line }
ret << CRLF
@@ -201,11 +249,11 @@ module WEBrick
end
end
- def meta_vars
- # This method provides the metavariables defined by the revision 3
- # of ``The WWW Common Gateway Interface Version 1.1''.
- # (http://Web.Golux.Com/coar/cgi/)
+ # This method provides the metavariables defined by the revision 3
+ # of "The WWW Common Gateway Interface Version 1.1"
+ # http://Web.Golux.Com/coar/cgi/
+ def meta_vars
meta = Hash.new
cl = self["Content-Length"]
@@ -242,9 +290,11 @@ module WEBrick
private
+ MAX_URI_LENGTH = 2083 # :nodoc:
+
def read_request_line(socket)
- @request_line = read_line(socket, 1024) if socket
- if @request_line.bytesize >= 1024 and @request_line[-1, 1] != LF
+ @request_line = read_line(socket, MAX_URI_LENGTH) if socket
+ if @request_line.bytesize >= MAX_URI_LENGTH and @request_line[-1, 1] != LF
raise HTTPStatus::RequestURITooLarge
end
@request_time = Time.now
@@ -266,17 +316,14 @@ module WEBrick
@raw_header << line
end
end
- begin
- @header = HTTPUtils::parse_header(@raw_header.join)
- rescue => ex
- raise HTTPStatus::BadRequest, ex.message
- end
+ @header = HTTPUtils::parse_header(@raw_header.join)
end
def parse_uri(str, scheme="http")
if @config[:Escape8bitURI]
str = HTTPUtils::escape8bit(str)
end
+ str.sub!(%r{\A/+}o, '/')
uri = URI::parse(str)
return uri if uri.absolute?
if @forwarded_host
@@ -389,10 +436,18 @@ module WEBrick
^(::ffff:)?(10|172\.(1[6-9]|2[0-9]|3[01])|192\.168)\.
/ixo
+ # It's said that all X-Forwarded-* headers will contain more than one
+ # (comma-separated) value if the original request already contained one of
+ # these headers. Since we could use these values as Host header, we choose
+ # the initial(first) value. (apr_table_mergen() adds new value after the
+ # existing value with ", " prefix)
def setup_forwarded_info
- @forwarded_server = self["x-forwarded-server"]
+ if @forwarded_server = self["x-forwarded-server"]
+ @forwarded_server = @forwarded_server.split(",", 2).first
+ end
@forwarded_proto = self["x-forwarded-proto"]
if host_port = self["x-forwarded-host"]
+ host_port = host_port.split(",", 2).first
@forwarded_host, tmp = host_port.split(":", 2)
@forwarded_port = (tmp || (@forwarded_proto == "https" ? 443 : 80)).to_i
end
diff --git a/lib/webrick/httpresponse.rb b/lib/webrick/httpresponse.rb
index 98c4a357fa..0d36c0747e 100644
--- a/lib/webrick/httpresponse.rb
+++ b/lib/webrick/httpresponse.rb
@@ -15,10 +15,17 @@ require 'webrick/httputils'
require 'webrick/httpstatus'
module WEBrick
+ ##
+ # An HTTP response.
+
class HTTPResponse
attr_reader :http_version, :status, :header
attr_reader :cookies
attr_accessor :reason_phrase
+
+ ##
+ # Body may be a String or IO subclass.
+
attr_accessor :body
attr_accessor :request_method, :request_uri, :request_http_version
@@ -26,6 +33,9 @@ module WEBrick
attr_accessor :keep_alive
attr_reader :config, :sent_size
+ ##
+ # Creates a new HTTP response object
+
def initialize(config)
@config = config
@buffer_size = config[:OutputBufferSize]
@@ -45,57 +55,96 @@ module WEBrick
@sent_size = 0
end
+ ##
+ # The response's HTTP status line
+
def status_line
"HTTP/#@http_version #@status #@reason_phrase #{CRLF}"
end
+ ##
+ # Sets the response's status to the +status+ code
+
def status=(status)
@status = status
@reason_phrase = HTTPStatus::reason_phrase(status)
end
+ ##
+ # Retrieves the response header +field+
+
def [](field)
@header[field.downcase]
end
+ ##
+ # Sets the response header +field+ to +value+
+
def []=(field, value)
@header[field.downcase] = value.to_s
end
+ ##
+ # The content-length header
+
def content_length
if len = self['content-length']
return Integer(len)
end
end
+ ##
+ # Sets the content-length header to +len+
+
def content_length=(len)
self['content-length'] = len.to_s
end
+ ##
+ # The content-type header
+
def content_type
self['content-type']
end
+ ##
+ # Sets the content-type header to +type+
+
def content_type=(type)
self['content-type'] = type
end
+ ##
+ # Iterates over each header in the resopnse
+
def each
- @header.each{|k, v| yield(k, v) }
+ @header.each{|field, value| yield(field, value) }
end
+ ##
+ # Will this response body be returned using chunked transfer-encoding?
+
def chunked?
@chunked
end
+ ##
+ # Enables chunked transfer encoding.
+
def chunked=(val)
@chunked = val ? true : false
end
+ ##
+ # Will this response's connection be kept alive?
+
def keep_alive?
@keep_alive
end
+ ##
+ # Sends the response on +socket+
+
def send_response(socket)
begin
setup_header()
@@ -110,6 +159,9 @@ module WEBrick
end
end
+ ##
+ # Sets up the headers for sending
+
def setup_header()
@reason_phrase ||= HTTPStatus::reason_phrase(@status)
@header['server'] ||= @config[:ServerSoftware]
@@ -152,6 +204,11 @@ module WEBrick
elsif keep_alive?
if chunked? || @header['content-length']
@header['connection'] = "Keep-Alive"
+ else
+ msg = "Could not determine content-length of response body. Set content-length of the response or set Response#chunked = true"
+ @logger.warn(msg)
+ @header['connection'] = "close"
+ @keep_alive = false
end
else
@header['connection'] = "close"
@@ -165,6 +222,9 @@ module WEBrick
end
end
+ ##
+ # Sends the headers on +socket+
+
def send_header(socket)
if @http_version.major > 0
data = status_line()
@@ -180,6 +240,9 @@ module WEBrick
end
end
+ ##
+ # Sends the body on +socket+
+
def send_body(socket)
case @body
when IO then send_body_io(socket)
@@ -187,18 +250,28 @@ module WEBrick
end
end
- def to_s
+ def to_s # :nodoc:
ret = ""
send_response(ret)
ret
end
+ ##
+ # Redirects to +url+ with a WEBrick::HTTPStatus::Redirect +status+.
+ #
+ # Example:
+ #
+ # res.set_redirect WEBrick::HTTPStatus::TemporaryRedirect
+
def set_redirect(status, url)
@body = "<HTML><A HREF=\"#{url.to_s}\">#{url.to_s}</A>.</HTML>\n"
@header['location'] = url.to_s
raise status
end
+ ##
+ # Creates an error page for exception +ex+ with an optional +backtrace+
+
def set_error(ex, backtrace=false)
case ex
when HTTPStatus::Status
@@ -208,7 +281,7 @@ module WEBrick
@keep_alive = false
self.status = HTTPStatus::RC_INTERNAL_SERVER_ERROR
end
- @header['content-type'] = "text/html"
+ @header['content-type'] = "text/html; charset=ISO-8859-1"
if respond_to?(:create_error_page)
create_error_page()
@@ -280,7 +353,7 @@ module WEBrick
if @request_method == "HEAD"
# do nothing
elsif chunked?
- remain = body ? @body.bytesize : 0
+ body ? @body.bytesize : 0
while buf = @body[@sent_size, @buffer_size]
break if buf.empty?
data = ""
diff --git a/lib/webrick/https.rb b/lib/webrick/https.rb
index 81b65ce803..abb428451f 100644
--- a/lib/webrick/https.rb
+++ b/lib/webrick/https.rb
@@ -33,17 +33,18 @@ module WEBrick
alias orig_parse_uri parse_uri
def parse_uri(str, scheme="https")
- if @server_cert
+ if server_cert
return orig_parse_uri(str, scheme)
end
return orig_parse_uri(str)
end
+ private :parse_uri
alias orig_meta_vars meta_vars
def meta_vars
meta = orig_meta_vars
- if @server_cert
+ if server_cert
meta["HTTPS"] = "on"
meta["SSL_SERVER_CERT"] = @server_cert.to_pem
meta["SSL_CLIENT_CERT"] = @client_cert ? @client_cert.to_pem : ""
diff --git a/lib/webrick/httpserver.rb b/lib/webrick/httpserver.rb
index 929d856a4a..ddf1ac7404 100644
--- a/lib/webrick/httpserver.rb
+++ b/lib/webrick/httpserver.rb
@@ -19,7 +19,28 @@ require 'webrick/accesslog'
module WEBrick
class HTTPServerError < ServerError; end
+ ##
+ # An HTTP Server
+
class HTTPServer < ::WEBrick::GenericServer
+ ##
+ # Creates a new HTTP server according to +config+
+ #
+ # An HTTP server uses the following attributes:
+ #
+ # :AccessLog:: An array of access logs. See WEBrick::AccessLog
+ # :BindAddress:: Local address for the server to bind to
+ # :DocumentRoot:: Root path to serve files from
+ # :DocumentRootOptions:: Options for the default HTTPServlet::FileHandler
+ # :HTTPVersion:: The HTTP version of this server
+ # :Port:: Port to listen on
+ # :RequestCallback:: Called with a request and response before each
+ # request is serviced.
+ # :RequestTimeout:: Maximum time to wait between requests
+ # :ServerAlias:: Array of alternate names for this server for virtual
+ # hosting
+ # :ServerName:: Name for this server for virtual hosting
+
def initialize(config={}, default=Config::HTTP)
super(config, default)
@http_version = HTTPVersion::convert(@config[:HTTPVersion])
@@ -40,6 +61,9 @@ module WEBrick
@virtual_hosts = Array.new
end
+ ##
+ # Processes requests on +sock+
+
def run(sock)
while true
res = HTTPResponse.new(@config)
@@ -93,6 +117,9 @@ module WEBrick
end
end
+ ##
+ # Services +req+ and fills in +res+
+
def service(req, res)
if req.unparsed_uri == "*"
if req.request_method == "OPTIONS"
@@ -115,23 +142,37 @@ module WEBrick
res["allow"] = "GET,HEAD,POST,OPTIONS"
end
+ ##
+ # Mounts +servlet+ on +dir+ passing +options+ to the servlet at creation
+ # time
+
def mount(dir, servlet, *options)
@logger.debug(sprintf("%s is mounted on %s.", servlet.inspect, dir))
@mount_tab[dir] = [ servlet, options ]
end
+ ##
+ # Mounts +proc+ or +block+ on +dir+ and calls it with a
+ # WEBrick::HTTPRequest and WEBrick::HTTPResponse
+
def mount_proc(dir, proc=nil, &block)
proc ||= block
raise HTTPServerError, "must pass a proc or block" unless proc
mount(dir, HTTPServlet::ProcHandler.new(proc))
end
+ ##
+ # Unmounts +dir+
+
def unmount(dir)
@logger.debug(sprintf("unmount %s.", dir))
@mount_tab.delete(dir)
end
alias umount unmount
+ ##
+ # Finds a servlet for +path+
+
def search_servlet(path)
script_name, path_info = @mount_tab.scan(path)
servlet, options = @mount_tab[script_name]
@@ -140,6 +181,9 @@ module WEBrick
end
end
+ ##
+ # Adds +server+ as a virtual host.
+
def virtual_host(server)
@virtual_hosts << server
@virtual_hosts = @virtual_hosts.sort_by{|s|
@@ -151,6 +195,9 @@ module WEBrick
}
end
+ ##
+ # Finds the appropriate virtual host to handle +req+
+
def lookup_server(req)
@virtual_hosts.find{|s|
(s[:BindAddress].nil? || req.addr[3] == s[:BindAddress]) &&
diff --git a/lib/webrick/httpservlet/abstract.rb b/lib/webrick/httpservlet/abstract.rb
index 2a0a4049f2..0d5c5ae48d 100644
--- a/lib/webrick/httpservlet/abstract.rb
+++ b/lib/webrick/httpservlet/abstract.rb
@@ -18,17 +18,88 @@ module WEBrick
module HTTPServlet
class HTTPServletError < StandardError; end
+ ##
+ # AbstractServlet allows HTTP server modules to be reused across multiple
+ # servers and allows encapsulation of functionality.
+ #
+ # By default a servlet will respond to GET, HEAD (through an alias to GET)
+ # and OPTIONS requests.
+ #
+ # By default a new servlet is initialized for every request. A servlet
+ # instance can be reused by overriding ::get_instance in the
+ # AbstractServlet subclass.
+ #
+ # == A Simple Servlet
+ #
+ # class Simple < WEBrick::HTTPServlet::AbstractServlet
+ # def do_GET request, response
+ # status, content_type, body = do_stuff_with request
+ #
+ # response.status = status
+ # response['Content-Type'] = content_type
+ # response.body = body
+ # end
+ #
+ # def do_stuff_with request
+ # return 200, 'text/plain', 'you got a page'
+ # end
+ # end
+ #
+ # This servlet can be mounted on a server at a given path:
+ #
+ # server.mount '/simple', Simple
+ #
+ # == Servlet Configuration
+ #
+ # Servlets can be configured via initialize. The first argument is the
+ # HTTP server the servlet is being initialized for.
+ #
+ # class Configureable < Simple
+ # def initialize server, color, size
+ # super server
+ # @color = color
+ # @size = size
+ # end
+ #
+ # def do_stuff_with request
+ # content = "<p " \
+ # %q{style="color: #{@color}; font-size: #{@size}"} \
+ # ">Hello, World!"
+ #
+ # return 200, "text/html", content
+ # end
+ # end
+ #
+ # This servlet must be provided two arguments at mount time:
+ #
+ # server.mount '/configurable', Configurable, 'red', '2em'
+
class AbstractServlet
- def self.get_instance(config, *options)
- self.new(config, *options)
+
+ ##
+ # Factory for servlet instances that will handle a request from +server+
+ # using +options+ from the mount point. By default a new servlet
+ # instance is created for every call.
+
+ def self.get_instance(server, *options)
+ self.new(server, *options)
end
+ ##
+ # Initializes a new servlet for +server+ using +options+ which are
+ # stored as-is in +@options+. +@logger+ is also provided.
+
def initialize(server, *options)
@server = @config = server
@logger = @server[:Logger]
@options = options
end
+ ##
+ # Dispatches to a +do_+ method based on +req+ if such a method is
+ # available. (+do_GET+ for a GET request). Raises a MethodNotAllowed
+ # exception if the method is not implemented.
+
def service(req, res)
method_name = "do_" + req.request_method.gsub(/-/, "_")
if respond_to?(method_name)
@@ -39,23 +110,34 @@ module WEBrick
end
end
+ ##
+ # Raises a NotFound exception
+
def do_GET(req, res)
raise HTTPStatus::NotFound, "not found."
end
+ ##
+ # Dispatches to do_GET
+
def do_HEAD(req, res)
do_GET(req, res)
end
+ ##
+ # Returns the allowed HTTP request methods
+
def do_OPTIONS(req, res)
- m = self.methods.grep(/^do_[A-Z]+$/)
- m.collect!{|i| i.sub(/do_/, "") }
+ m = self.methods.grep(/\Ado_([A-Z]+)\z/) {$1}
m.sort!
res["allow"] = m.join(",")
end
private
+ ##
+ # Redirects to a path ending in /
+
def redirect_to_directory_uri(req, res)
if req.path[-1] != ?/
location = WEBrick::HTTPUtils.escape_path(req.path + "/")
diff --git a/lib/webrick/httpservlet/cgi_runner.rb b/lib/webrick/httpservlet/cgi_runner.rb
index dd7325d25c..32ecb6fe00 100644
--- a/lib/webrick/httpservlet/cgi_runner.rb
+++ b/lib/webrick/httpservlet/cgi_runner.rb
@@ -20,7 +20,6 @@ end
STDIN.binmode
-buf = ""
len = sysread(STDIN, 8).to_i
out = sysread(STDIN, len)
STDOUT.reopen(open(out, "w"))
@@ -38,7 +37,7 @@ hash.each{|k, v| ENV[k] = v if v }
dir = File::dirname(ENV["SCRIPT_FILENAME"])
Dir::chdir dir
-if interpreter = ARGV[0]
+if ARGV[0]
argv = ARGV.dup
argv << ENV["SCRIPT_FILENAME"]
exec(*argv)
diff --git a/lib/webrick/httpservlet/cgihandler.rb b/lib/webrick/httpservlet/cgihandler.rb
index ab36b906f1..1976ae6948 100644
--- a/lib/webrick/httpservlet/cgihandler.rb
+++ b/lib/webrick/httpservlet/cgihandler.rb
@@ -17,9 +17,7 @@ module WEBrick
module HTTPServlet
class CGIHandler < AbstractServlet
- Ruby = File::join(RbConfig::CONFIG['bindir'],
- RbConfig::CONFIG['ruby_install_name'])
- Ruby << RbConfig::CONFIG['EXEEXT']
+ Ruby = RbConfig.ruby
CGIRunner = "\"#{Ruby}\" \"#{WEBrick::Config::LIBDIR}/httpservlet/cgi_runner.rb\""
def initialize(server, name)
@@ -34,9 +32,9 @@ module WEBrick
status = -1
cgi_in = IO::popen(@cgicmd, "wb")
- cgi_out = Tempfile.new("webrick.cgiout.", @tempdir)
+ cgi_out = Tempfile.new("webrick.cgiout.", @tempdir, mode: IO::BINARY)
cgi_out.set_encoding("ASCII-8BIT")
- cgi_err = Tempfile.new("webrick.cgierr.", @tempdir)
+ cgi_err = Tempfile.new("webrick.cgierr.", @tempdir, mode: IO::BINARY)
cgi_err.set_encoding("ASCII-8BIT")
begin
cgi_in.sync = true
diff --git a/lib/webrick/httpservlet/erbhandler.rb b/lib/webrick/httpservlet/erbhandler.rb
index 845db07169..34b4b9e68b 100644
--- a/lib/webrick/httpservlet/erbhandler.rb
+++ b/lib/webrick/httpservlet/erbhandler.rb
@@ -15,12 +15,37 @@ require 'erb'
module WEBrick
module HTTPServlet
+ ##
+ # ERBHandler evaluates an ERB file and returns the result. This handler
+ # is automatically used if there are .rhtml files in a directory served by
+ # the FileHandler.
+ #
+ # ERBHandler supports GET and POST methods.
+ #
+ # The ERB file is evaluated with the local variables +servlet_request+ and
+ # +servlet_response+ which are a WEBrick::HTTPRequest and
+ # WEBrick::HTTPResponse respectively.
+ #
+ # Example .rhtml file:
+ #
+ # Request to <%= servlet_request.request_uri %>
+ #
+ # Query params <%= servlet_request.query.inspect %>
+
class ERBHandler < AbstractServlet
+
+ ##
+ # Creates a new ERBHandler on +server+ that will evaluate and serve the
+ # ERB file +name+
+
def initialize(server, name)
super(server, name)
@script_filename = name
end
+ ##
+ # Handles GET requests
+
def do_GET(req, res)
unless defined?(ERB)
@logger.warn "#{self.class}: ERB not defined."
@@ -29,7 +54,7 @@ module WEBrick
begin
data = open(@script_filename){|io| io.read }
res.body = evaluate(ERB.new(data), req, res)
- res['content-type'] =
+ res['content-type'] ||=
HTTPUtils::mime_type(@script_filename, @config[:MimeTypes])
rescue StandardError => ex
raise
@@ -39,13 +64,21 @@ module WEBrick
end
end
+ ##
+ # Handles POST requests
+
alias do_POST do_GET
private
+
+ ##
+ # Evaluates +erb+ providing +servlet_request+ and +servlet_response+ as
+ # local variables.
+
def evaluate(erb, servlet_request, servlet_response)
Module.new.module_eval{
- meta_vars = servlet_request.meta_vars
- query = servlet_request.query
+ servlet_request.meta_vars
+ servlet_request.query
erb.result(binding)
}
end
diff --git a/lib/webrick/httpservlet/filehandler.rb b/lib/webrick/httpservlet/filehandler.rb
index 1cac0cabe3..8736f5773a 100644
--- a/lib/webrick/httpservlet/filehandler.rb
+++ b/lib/webrick/httpservlet/filehandler.rb
@@ -87,7 +87,7 @@ module WEBrick
content = io.read(last-first+1)
body << "--" << boundary << CRLF
body << "Content-Type: #{mtype}" << CRLF
- body << "Content-Range: #{first}-#{last}/#{filesize}" << CRLF
+ body << "Content-Range: bytes #{first}-#{last}/#{filesize}" << CRLF
body << CRLF
body << content
body << CRLF
@@ -107,7 +107,7 @@ module WEBrick
content = io.read(last-first+1)
end
res['content-type'] = mtype
- res['content-range'] = "#{first}-#{last}/#{filesize}"
+ res['content-range'] = "bytes #{first}-#{last}/#{filesize}"
res['content-length'] = last - first + 1
res.body = content
else
@@ -125,17 +125,48 @@ module WEBrick
end
end
+ ##
+ # Serves files from a directory
+
class FileHandler < AbstractServlet
HandlerTable = Hash.new
+ ##
+ # Allow custom handling of requests for files with +suffix+ by class
+ # +handler+
+
def self.add_handler(suffix, handler)
HandlerTable[suffix] = handler
end
+ ##
+ # Remove custom handling of requests for files with +suffix+
+
def self.remove_handler(suffix)
HandlerTable.delete(suffix)
end
+ ##
+ # Creates a FileHandler servlet on +server+ that serves files starting
+ # at directory +root+
+ #
+ # If +options+ is a Hash the following keys are allowed:
+ #
+ # :AcceptableLanguages:: Array of languages allowed for accept-language
+ # :DirectoryCallback:: Allows preprocessing of directory requests
+ # :FancyIndexing:: If true, show an index for directories
+ # :FileCallback:: Allows preprocessing of file requests
+ # :HandlerCallback:: Allows preprocessing of requests
+ # :HandlerTable:: Maps file suffixes to file handlers.
+ # DefaultFileHandler is used by default but any servlet
+ # can be used.
+ # :NondisclosureName:: Do not show files matching this array of globs
+ # :UserDir:: Directory inside ~user to serve content from for /~user
+ # requests. Only works if mounted on /
+ #
+ # If +options+ is true or false then +:FancyIndexing+ is enabled or
+ # disabled respectively.
+
def initialize(server, root, options={}, default=Config::FileHandler)
@config = server.config
@logger = @config[:Logger]
@@ -214,16 +245,20 @@ module WEBrick
# character in URI notation. So the value of path_info should be
# normalize before accessing to the filesystem.
+ # dirty hack for filesystem encoding; in nature, File.expand_path
+ # should not be used for path normalization. [Bug #3345]
+ path = req.path_info.dup.force_encoding(Encoding.find("filesystem"))
if trailing_pathsep?(req.path_info)
# File.expand_path removes the trailing path separator.
# Adding a character is a workaround to save it.
# File.expand_path("/aaa/") #=> "/aaa"
# File.expand_path("/aaa/" + "x") #=> "/aaa/x"
- expanded = File.expand_path(req.path_info + "x")
+ expanded = File.expand_path(path + "x")
expanded.chop! # remove trailing "x"
else
- expanded = File.expand_path(req.path_info)
+ expanded = File.expand_path(path)
end
+ expanded.force_encoding(req.path_info.encoding)
req.path_info = expanded
end
@@ -412,7 +447,7 @@ module WEBrick
else
dname = name
end
- s = " <A HREF=\"#{HTTPUtils::escape(name)}\">#{dname}</A>"
+ s = " <A HREF=\"#{HTTPUtils::escape(name)}\">#{HTMLUtils::escape(dname)}</A>"
s << " " * (30 - dname.bytesize)
s << (time ? time.strftime("%Y/%m/%d %H:%M ") : " " * 22)
s << (size >= 0 ? size.to_s : "-") << "\n"
diff --git a/lib/webrick/httpstatus.rb b/lib/webrick/httpstatus.rb
index d022ddb446..9eee38a40f 100644
--- a/lib/webrick/httpstatus.rb
+++ b/lib/webrick/httpstatus.rb
@@ -1,4 +1,4 @@
-#
+#--
# httpstatus.rb -- HTTPStatus Class
#
# Author: IPR -- Internet Programming with Ruby -- writers
@@ -10,19 +10,50 @@
module WEBrick
+ ##
+ # This module is used to manager HTTP status codes.
+ #
+ # See http://www.w3.org/Protocols/rfc2616/rfc2616-sec10.html for more
+ # information.
module HTTPStatus
- class Status < StandardError; end
+ ##
+ # Root of the HTTP status class hierarchy
+ class Status < StandardError
+ def initialize(*args) # :nodoc:
+ args[0] = AccessLog.escape(args[0]) unless args.empty?
+ super(*args)
+ end
+ class << self
+ attr_reader :code, :reason_phrase # :nodoc:
+ end
+
+ # Returns the HTTP status code
+ def code() self::class::code end
+
+ # Returns the HTTP status description
+ def reason_phrase() self::class::reason_phrase end
+
+ alias to_i code # :nodoc:
+ end
+
+ # Root of the HTTP info statuses
class Info < Status; end
+ # Root of the HTTP sucess statuses
class Success < Status; end
+ # Root of the HTTP redirect statuses
class Redirect < Status; end
+ # Root of the HTTP error statuses
class Error < Status; end
+ # Root of the HTTP client error statuses
class ClientError < Error; end
+ # Root of the HTTP server error statuses
class ServerError < Error; end
class EOFError < StandardError; end
- StatusMessage = {
+ # HTTP status codes and descriptions
+ StatusMessage = { # :nodoc:
100 => 'Continue',
101 => 'Switching Protocols',
200 => 'OK',
@@ -65,9 +96,13 @@ module WEBrick
505 => 'HTTP Version Not Supported'
}
- CodeToError = {}
+ # Maps a status code to the corresponding Status class
+ CodeToError = {} # :nodoc:
+ # Creates a status or error class for each status code and
+ # populates the CodeToError map.
StatusMessage.each{|code, message|
+ message.freeze
var_name = message.gsub(/[ \-]/,'_').upcase
err_name = message.gsub(/[ \-]/,'')
@@ -79,42 +114,65 @@ module WEBrick
when 500...600; parent = ServerError
end
- eval %-
- RC_#{var_name} = #{code}
- class #{err_name} < #{parent}
- def self.code() RC_#{var_name} end
- def self.reason_phrase() StatusMessage[code] end
- def code() self::class::code end
- def reason_phrase() self::class::reason_phrase end
- alias to_i code
- end
- -
-
- CodeToError[code] = const_get(err_name)
+ const_set("RC_#{var_name}", code)
+ err_class = Class.new(parent)
+ err_class.instance_variable_set(:@code, code)
+ err_class.instance_variable_set(:@reason_phrase, message)
+ const_set(err_name, err_class)
+ CodeToError[code] = err_class
}
+ ##
+ # Returns the description corresponding to the HTTP status +code+
+ #
+ # WEBrick::HTTPStatus.reason_phrase 404
+ # => "Not Found"
def reason_phrase(code)
StatusMessage[code.to_i]
end
+
+ ##
+ # Is +code+ an informational status?
def info?(code)
code.to_i >= 100 and code.to_i < 200
end
+
+ ##
+ # Is +code+ a successful status?
def success?(code)
code.to_i >= 200 and code.to_i < 300
end
+
+ ##
+ # Is +code+ a redirection status?
def redirect?(code)
code.to_i >= 300 and code.to_i < 400
end
+
+ ##
+ # Is +code+ an error status?
def error?(code)
code.to_i >= 400 and code.to_i < 600
end
+
+ ##
+ # Is +code+ a client error status?
def client_error?(code)
code.to_i >= 400 and code.to_i < 500
end
+
+ ##
+ # Is +code+ a server error status?
def server_error?(code)
code.to_i >= 500 and code.to_i < 600
end
+ ##
+ # Returns the status class corresponding to +code+
+ #
+ # WEBrick::HTTPStatus[302]
+ # => WEBrick::HTTPStatus::NotFound
+ #
def self.[](code)
CodeToError[code]
end
diff --git a/lib/webrick/httputils.rb b/lib/webrick/httputils.rb
index bed24e09dd..f029dacb56 100644
--- a/lib/webrick/httputils.rb
+++ b/lib/webrick/httputils.rb
@@ -129,11 +129,11 @@ module WEBrick
when /^\s+(.*?)\s*\z/om
value = $1
unless field
- raise "bad header '#{line.inspect}'."
+ raise HTTPStatus::BadRequest, "bad header '#{line}'."
end
header[field][-1] << " " << value
else
- raise "bad header '#{line.inspect}'."
+ raise HTTPStatus::BadRequest, "bad header '#{line}'."
end
}
header.each{|key, values|
@@ -305,7 +305,7 @@ module WEBrick
module_function :parse_query
def parse_form_data(io, boundary)
- boundary_regexp = /\A--#{boundary}(--)?#{CRLF}\z/
+ boundary_regexp = /\A--#{Regexp.quote(boundary)}(--)?#{CRLF}\z/
form_data = Hash.new
return form_data unless io
data = nil
diff --git a/lib/webrick/httpversion.rb b/lib/webrick/httpversion.rb
index 86907a26bd..5cf0ee400d 100644
--- a/lib/webrick/httpversion.rb
+++ b/lib/webrick/httpversion.rb
@@ -1,4 +1,4 @@
-#
+#--
# HTTPVersion.rb -- presentation of HTTP version
#
# Author: IPR -- Internet Programming with Ruby -- writers
diff --git a/lib/webrick/log.rb b/lib/webrick/log.rb
index 0ffa12dd96..546e52700b 100644
--- a/lib/webrick/log.rb
+++ b/lib/webrick/log.rb
@@ -1,4 +1,4 @@
-#
+#--
# log.rb -- Log Class
#
# Author: IPR -- Internet Programming with Ruby -- writers
@@ -9,12 +9,24 @@
# $IPR: log.rb,v 1.26 2002/10/06 17:06:10 gotoyuzo Exp $
module WEBrick
+
+ ##
+ # A generic logging class
+
class BasicLog
- # log-level constant
+ # log-level constants
FATAL, ERROR, WARN, INFO, DEBUG = 1, 2, 3, 4, 5
+ # log-level, messages above this level will be logged
attr_accessor :level
+ ##
+ # Initializes a new logger for +log_file+ that outputs messages at +level+
+ # or higher. +log_file+ can be a filename, an IO-like object that
+ # responds to #<< or nil which outputs to $stderr.
+ #
+ # If no level is given INFO is chosen by default
+
def initialize(log_file=nil, level=nil)
@level = level || INFO
case log_file
@@ -29,11 +41,17 @@ module WEBrick
end
end
+ ##
+ # Closes the logger (also closes the log device associated to the logger)
def close
@log.close if @opened
@log = nil
end
+ ##
+ # Logs +data+ at +level+ if the given level is above the current log
+ # level.
+
def log(level, data)
if @log && level <= @level
data += "\n" if /\n\Z/ !~ data
@@ -41,26 +59,45 @@ module WEBrick
end
end
+ ##
+ # Synonym for log(INFO, obj.to_s)
def <<(obj)
log(INFO, obj.to_s)
end
+ # Shortcut for logging a FATAL message
def fatal(msg) log(FATAL, "FATAL " << format(msg)); end
+ # Shortcut for logging an ERROR message
def error(msg) log(ERROR, "ERROR " << format(msg)); end
+ # Shortcut for logging a WARN message
def warn(msg) log(WARN, "WARN " << format(msg)); end
+ # Shortcut for logging an INFO message
def info(msg) log(INFO, "INFO " << format(msg)); end
+ # Shortcut for logging a DEBUG message
def debug(msg) log(DEBUG, "DEBUG " << format(msg)); end
+ # Will the logger output FATAL messages?
def fatal?; @level >= FATAL; end
+ # Will the logger output ERROR messages?
def error?; @level >= ERROR; end
+ # Will the logger output WARN messages?
def warn?; @level >= WARN; end
+ # Will the logger output INFO messages?
def info?; @level >= INFO; end
+ # Will the logger output DEBUG messages?
def debug?; @level >= DEBUG; end
private
+ ##
+ # Formats +arg+ for the logger
+ #
+ # * If +arg+ is an Exception, it will format the error message and
+ # the back trace.
+ # * If +arg+ responds to #to_str, it will return it.
+ # * Otherwise it will return +arg+.inspect.
def format(arg)
- str = if arg.is_a?(Exception)
+ if arg.is_a?(Exception)
"#{arg.class}: #{arg.message}\n\t" <<
arg.backtrace.join("\n\t") << "\n"
elsif arg.respond_to?(:to_str)
@@ -71,14 +108,25 @@ module WEBrick
end
end
+ ##
+ # A logging class that prepends a timestamp to each message.
+
class Log < BasicLog
+ # Format of the timestamp which is applied to each logged line. The
+ # default is <tt>"[%Y-%m-%d %H:%M:%S]"</tt>
attr_accessor :time_format
+ ##
+ # Same as BasicLog#initialize
+ #
+ # You can set the timestamp format through #time_format
def initialize(log_file=nil, level=nil)
super(log_file, level)
@time_format = "[%Y-%m-%d %H:%M:%S]"
end
+ ##
+ # Same as BasicLog#log
def log(level, data)
tmp = Time.now.strftime(@time_format)
tmp << " " << data
diff --git a/lib/webrick/server.rb b/lib/webrick/server.rb
index c4d23bd67b..30f4dc3143 100644
--- a/lib/webrick/server.rb
+++ b/lib/webrick/server.rb
@@ -23,7 +23,15 @@ module WEBrick
end
end
+ ##
+ # A generic module for daemonizing a process
+
class Daemon
+
+ ##
+ # Performs the standard operations for daemonizing a process. Runs a
+ # block, if given.
+
def Daemon.start
exit!(0) if fork
Process::setsid
diff --git a/lib/webrick/ssl.rb b/lib/webrick/ssl.rb
index 896206b483..b3cc7aaf01 100644
--- a/lib/webrick/ssl.rb
+++ b/lib/webrick/ssl.rb
@@ -50,8 +50,8 @@ module WEBrick
end
}
cert = OpenSSL::X509::Certificate.new
- cert.version = 3
- cert.serial = 0
+ cert.version = 2
+ cert.serial = 1
name = OpenSSL::X509::Name.new(cn)
cert.subject = name
cert.issuer = name
@@ -83,6 +83,7 @@ module WEBrick
@ssl_context ||= nil
end
+ undef listen
def listen(address, port)
listeners = Utils::create_listeners(address, port, @logger)
if @config[:SSLEnable]
diff --git a/lib/webrick/utils.rb b/lib/webrick/utils.rb
index dee9363441..983ac9f954 100644
--- a/lib/webrick/utils.rb
+++ b/lib/webrick/utils.rb
@@ -18,6 +18,8 @@ end
module WEBrick
module Utils
+ ##
+ # Sets IO operations on +io+ to be non-blocking
def set_non_blocking(io)
flag = File::NONBLOCK
if defined?(Fcntl::F_GETFL)
@@ -27,6 +29,8 @@ module WEBrick
end
module_function :set_non_blocking
+ ##
+ # Sets the close on exec flag for +io+
def set_close_on_exec(io)
if defined?(Fcntl::FD_CLOEXEC)
io.fcntl(Fcntl::FD_CLOEXEC, 1)
@@ -34,6 +38,8 @@ module WEBrick
end
module_function :set_close_on_exec
+ ##
+ # Changes the process's uid and gid to the ones of +user+
def su(user)
if defined?(Etc)
pw = Etc.getpwnam(user)
@@ -46,6 +52,8 @@ module WEBrick
end
module_function :su
+ ##
+ # The server hostname
def getservername
host = Socket::gethostname
begin
@@ -56,6 +64,10 @@ module WEBrick
end
module_function :getservername
+ ##
+ # Creates TCP server sockets bound to +address+:+port+ and returns them.
+ #
+ # It will create IPV4 and IPV6 sockets on all interfaces.
def create_listeners(address, port, logger=nil)
unless port
raise ArgumentError, "must specify port"
@@ -84,10 +96,14 @@ module WEBrick
end
module_function :create_listeners
+ ##
+ # Characters used to generate random strings
RAND_CHARS = "ABCDEFGHIJKLMNOPQRSTUVWXYZ" +
"0123456789" +
"abcdefghijklmnopqrstuvwxyz"
+ ##
+ # Generates a random string of length +len+
def random_string(len)
rand_max = RAND_CHARS.bytesize
ret = ""
@@ -102,16 +118,52 @@ module WEBrick
require "timeout"
require "singleton"
+ ##
+ # Class used to manage timeout handlers across multiple threads.
+ #
+ # Timeout handlers should be managed by using the class methods which are
+ # synchronized.
+ #
+ # id = TimeoutHandler.register(10, Timeout::Error)
+ # begin
+ # sleep 20
+ # puts 'foo'
+ # ensure
+ # TimeoutHandler.cancel(id)
+ # end
+ #
+ # will raise Timeout::Error
+ #
+ # id = TimeoutHandler.register(10, Timeout::Error)
+ # begin
+ # sleep 5
+ # puts 'foo'
+ # ensure
+ # TimeoutHandler.cancel(id)
+ # end
+ #
+ # will print 'foo'
+ #
class TimeoutHandler
include Singleton
- TimeoutMutex = Mutex.new
+ ##
+ # Mutex used to synchronize access across threads
+ TimeoutMutex = Mutex.new # :nodoc:
+
+ ##
+ # Registers a new timeout handler
+ #
+ # +time+:: Timeout in seconds
+ # +exception+:: Exception to raise when timeout elapsed
def TimeoutHandler.register(seconds, exception)
TimeoutMutex.synchronize{
instance.register(Thread.current, Time.now + seconds, exception)
}
end
+ ##
+ # Cancels the timeout handler +id+
def TimeoutHandler.cancel(id)
TimeoutMutex.synchronize{
instance.cancel(Thread.current, id)
@@ -134,6 +186,8 @@ module WEBrick
}
end
+ ##
+ # Interrupts the timeout handler +id+ and raises +exception+
def interrupt(thread, id, exception)
TimeoutMutex.synchronize{
if cancel(thread, id) && thread.alive?
@@ -142,12 +196,19 @@ module WEBrick
}
end
+ ##
+ # Registers a new timeout handler
+ #
+ # +time+:: Timeout in seconds
+ # +exception+:: Exception to raise when timeout elapsed
def register(thread, time, exception)
@timeout_info[thread] ||= Array.new
@timeout_info[thread] << [time, exception]
return @timeout_info[thread].last.object_id
end
+ ##
+ # Cancels the timeout handler +id+
def cancel(thread, id)
if ary = @timeout_info[thread]
ary.delete_if{|info| info.object_id == id }
@@ -160,6 +221,11 @@ module WEBrick
end
end
+ ##
+ # Executes the passed block and raises +exception+ if execution takes more
+ # than +seconds+.
+ #
+ # If +seconds+ is zero or nil, simply executes the block
def timeout(seconds, exception=Timeout::Error)
return yield if seconds.nil? or seconds.zero?
# raise ThreadError, "timeout within critical session" if Thread.critical
diff --git a/lib/webrick/version.rb b/lib/webrick/version.rb
index b2b9fd3b78..a49090828d 100644
--- a/lib/webrick/version.rb
+++ b/lib/webrick/version.rb
@@ -1,4 +1,4 @@
-#
+#--
# version.rb -- version and release date
#
# Author: IPR -- Internet Programming with Ruby -- writers
diff --git a/lib/xmlrpc/.document b/lib/xmlrpc/.document
deleted file mode 100644
index e475c53ed0..0000000000
--- a/lib/xmlrpc/.document
+++ /dev/null
@@ -1 +0,0 @@
-README.rdoc
diff --git a/lib/xmlrpc/README.rdoc b/lib/xmlrpc/README.rdoc
index 221d675219..2faed28cb9 100644
--- a/lib/xmlrpc/README.rdoc
+++ b/lib/xmlrpc/README.rdoc
@@ -59,7 +59,7 @@ use the client and implement a server.
* REXML (REXMLStreamParser)
* xml-scan (XMLScanStreamParser)
* Fastest parser is Expat's XMLStreamParser!
-
+
* General
* possible to choose between XMLParser module (Expat wrapper) and REXML/NQXML (pure Ruby) parsers
* Marshalling Ruby objects to Hashs and reconstruct them later from a Hash
@@ -70,7 +70,7 @@ use the client and implement a server.
=== Client
require "xmlrpc/client"
-
+
# Make an object to represent the XML-RPC server.
server = XMLRPC::Client.new( "xmlrpc-c.sourceforge.net", "/api/sample.php")
@@ -86,7 +86,7 @@ use the client and implement a server.
There are two possible ways, of handling a fault-structure:
-==== by catching a XMLRPC::FaultException exception
+==== by catching a XMLRPC::FaultException exception
require "xmlrpc/client"
@@ -107,7 +107,7 @@ There are two possible ways, of handling a fault-structure:
puts e.faultCode
puts e.faultString
end
-
+
==== by calling "call2" which returns a boolean
require "xmlrpc/client"
@@ -128,7 +128,7 @@ There are two possible ways, of handling a fault-structure:
puts result.faultCode
puts result.faultString
end
-
+
=== Client using Proxy
You can create a +Proxy+ object onto which you can call methods. This way it
@@ -137,7 +137,7 @@ looks nicer. Both forms, _call_ and _call2_ are supported through _proxy_ and
given to each XML-RPC call using that Proxy.
require "xmlrpc/client"
-
+
# Make an object to represent the XML-RPC server.
server = XMLRPC::Client.new( "xmlrpc-c.sourceforge.net", "/api/sample.php")
@@ -167,7 +167,7 @@ can be mixed:
s.add_handler("sample.sumAndDifference") do |a,b|
{ "sum" => a + b, "difference" => a - b }
end
-
+
s.serve
==== Java-like (handler classes)
@@ -181,8 +181,8 @@ can be mixed:
{ "sum" => a + b, "difference" => a - b }
end
end
-
- # NOTE: Security Hole (read below)!!!
+
+ # NOTE: Security Hole (read below)!!!
s.add_handler("sample", MyHandler.new)
s.serve
@@ -195,17 +195,17 @@ To return a fault-structure you have to raise an FaultException e.g.:
From Brian Candler:
- Above code sample has an extremely nasty security hole, in that you can now call
- any method of 'MyHandler' remotely, including methods inherited from Object
- and Kernel! For example, in the client code, you can use
-
- puts server.call("sample.send","`","ls")
-
- (backtick being the method name for running system processes). Needless to
- say, 'ls' can be replaced with something else.
-
- The version which binds proc objects (or the version presented below in the next section)
- doesn't have this problem, but people may be tempted to use the second version because it's
+ Above code sample has an extremely nasty security hole, in that you can now call
+ any method of 'MyHandler' remotely, including methods inherited from Object
+ and Kernel! For example, in the client code, you can use
+
+ puts server.call("sample.send","`","ls")
+
+ (backtick being the method name for running system processes). Needless to
+ say, 'ls' can be replaced with something else.
+
+ The version which binds proc objects (or the version presented below in the next section)
+ doesn't have this problem, but people may be tempted to use the second version because it's
so nice and 'Rubyesque'. I think it needs a big red disclaimer.
@@ -225,7 +225,7 @@ A solution is to undef insecure methods or to use (({XMLRPC::iPIMethods})) as sh
# ...
-This adds only public instance methods explicitly declared in class MyHandler
+This adds only public instance methods explicitly declared in class MyHandler
(and not those inherited from any other class).
==== With interface declarations
@@ -271,7 +271,7 @@ XML parser, then you have to call the <i>set_parser</i> method of
<tt>XMLRPC::BasicServer</tt> or by editing xmlrpc/config.rb.
Client Example:
-
+
# ...
server = XMLRPC::Client.new( "xmlrpc-c.sourceforge.net", "/api/sample.php")
server.set_parser(XMLRPC::XMLParser::XMLParser.new)
@@ -283,7 +283,7 @@ Server Example:
s = XMLRPC::CGIServer.new
s.set_parser(XMLRPC::XMLParser::XMLStreamParser.new)
# ...
-
+
or:
# ...
diff --git a/lib/xmlrpc/client.rb b/lib/xmlrpc/client.rb
index 65c9cd0c9c..968292b077 100644
--- a/lib/xmlrpc/client.rb
+++ b/lib/xmlrpc/client.rb
@@ -493,7 +493,7 @@ module XMLRPC
else
a = "#@user"
a << ":#@password" if @password != nil
- @auth = ("Basic " + [a].pack("m")).chomp
+ @auth = "Basic " + [a].pack("m0")
end
end
@@ -501,7 +501,7 @@ module XMLRPC
header = {
"User-Agent" => USER_AGENT,
"Content-Type" => "text/xml; charset=utf-8",
- "Content-Length" => request.size.to_s,
+ "Content-Length" => request.bytesize.to_s,
"Connection" => (async ? "close" : "keep-alive")
}
@@ -559,10 +559,10 @@ module XMLRPC
end
expected = resp["Content-Length"] || "<unknown>"
- if data.nil? or data.size == 0
- raise "Wrong size. Was #{data.size}, should be #{expected}"
- elsif expected != "<unknown>" and expected.to_i != data.size and resp["Transfer-Encoding"].nil?
- raise "Wrong size. Was #{data.size}, should be #{expected}"
+ if data.nil? or data.bytesize == 0
+ raise "Wrong size. Was #{data.bytesize}, should be #{expected}"
+ elsif expected != "<unknown>" and expected.to_i != data.bytesize and resp["Transfer-Encoding"].nil?
+ raise "Wrong size. Was #{data.bytesize}, should be #{expected}"
end
set_cookies = resp.get_fields("Set-Cookie")
diff --git a/lib/xmlrpc/create.rb b/lib/xmlrpc/create.rb
index 2d38a44b30..7aa0873590 100644
--- a/lib/xmlrpc/create.rb
+++ b/lib/xmlrpc/create.rb
@@ -178,10 +178,8 @@ module XMLRPC
def conv2value(param)
val = case param
- when Fixnum
- @writer.tag("i4", param.to_s)
-
- when Bignum
+ when Fixnum, Bignum
+ # XML-RPC's int is 32bit int, and Fixnum also may be beyond 32bit
if Config::ENABLE_BIGINT
@writer.tag("i4", param.to_s)
else
@@ -208,6 +206,7 @@ module XMLRPC
end
when Float
+ raise "Wrong value #{param}. Not allowed!" unless param.finite?
@writer.tag("double", param.to_s)
when Struct
diff --git a/lib/xmlrpc/httpserver.rb b/lib/xmlrpc/httpserver.rb
index 66d52139db..a9605efa7a 100644
--- a/lib/xmlrpc/httpserver.rb
+++ b/lib/xmlrpc/httpserver.rb
@@ -170,7 +170,7 @@ private
io << http_resp(response.status, response.status_message,
response.header, response.body)
- rescue Exception => e
+ rescue Exception
io << http_resp(500, "Internal Server Error")
end
diff --git a/lib/xmlrpc/parser.rb b/lib/xmlrpc/parser.rb
index d078de2f4b..eb3c9b3441 100644
--- a/lib/xmlrpc/parser.rb
+++ b/lib/xmlrpc/parser.rb
@@ -54,11 +54,10 @@ module XMLRPC
class FaultException < StandardError
attr_reader :faultCode, :faultString
- alias message faultString
-
def initialize(faultCode, faultString)
@faultCode = faultCode
@faultString = faultString
+ super(@faultString)
end
# returns a hash
@@ -133,7 +132,7 @@ module XMLRPC
hash.delete "___class___"
hash.each {|key, value|
- obj.instance_variable_set("@#{ key }", value) if key =~ /^([\w_][\w_0-9]*)$/
+ obj.instance_variable_set("@#{ key }", value) if key =~ /^([a-zA-Z_]\w*)$/
}
obj
rescue
@@ -714,7 +713,7 @@ module XMLRPC
end
def parse(str)
- parser = REXML::Document.parse_stream(str, self)
+ REXML::Document.parse_stream(str, self)
end
end
@@ -743,7 +742,7 @@ module XMLRPC
end
alias :on_stag :startElement
- alias :on_etag :endElement
+ alias :on_etag :endElement
def on_stag_end(name); end
diff --git a/lib/xmlrpc/server.rb b/lib/xmlrpc/server.rb
index 6b5c5d4253..b7215385ad 100644
--- a/lib/xmlrpc/server.rb
+++ b/lib/xmlrpc/server.rb
@@ -133,7 +133,7 @@ the same class.
begin
ret = obj.call(*args) # call the original service-method
# could convert the return value
- resuce
+ rescue
# rescue exceptions
end
}
@@ -456,7 +456,7 @@ class CGIServer < BasicServer
$stdin.binmode if $stdin.respond_to? :binmode
data = $stdin.read(length)
- http_error(400, "Bad Request") if data.nil? or data.size != length
+ http_error(400, "Bad Request") if data.nil? or data.bytesize != length
http_write(process(data), "Content-type" => "text/xml; charset=utf-8")
}
@@ -487,7 +487,7 @@ class CGIServer < BasicServer
h = {}
header.each {|key, value| h[key.to_s.capitalize] = value}
h['Status'] ||= "200 OK"
- h['Content-length'] ||= body.size.to_s
+ h['Content-length'] ||= body.bytesize.to_s
str = ""
h.each {|key, value| str << "#{key}: #{value}\r\n"}
@@ -531,7 +531,7 @@ class ModRubyServer < BasicServer
@ap.binmode
data = @ap.read(length)
- http_error(400, "Bad Request") if data.nil? or data.size != length
+ http_error(400, "Bad Request") if data.nil? or data.bytesize != length
http_write(process(data), 200, "Content-type" => "text/xml; charset=utf-8")
}
@@ -562,7 +562,7 @@ class ModRubyServer < BasicServer
h = {}
header.each {|key, value| h[key.to_s.capitalize] = value}
h['Status'] ||= "200 OK"
- h['Content-length'] ||= body.size.to_s
+ h['Content-length'] ||= body.bytesize.to_s
h.each {|key, value| @ap.headers_out[key] = value }
@ap.content_type = h["Content-type"]
@@ -751,17 +751,17 @@ class WEBrickServlet < BasicServer
data = request.body
- if data.nil? or data.size != length
+ if data.nil? or data.bytesize != length
raise WEBrick::HTTPStatus::BadRequest
end
resp = process(data)
- if resp.nil? or resp.size <= 0
+ if resp.nil? or resp.bytesize <= 0
raise WEBrick::HTTPStatus::InternalServerError
end
response.status = 200
- response['Content-Length'] = resp.size
+ response['Content-Length'] = resp.bytesize
response['Content-Type'] = "text/xml; charset=utf-8"
response.body = resp
end
diff --git a/lib/xmlrpc/utils.rb b/lib/xmlrpc/utils.rb
index 60d4ef5d99..b86509cb3a 100644
--- a/lib/xmlrpc/utils.rb
+++ b/lib/xmlrpc/utils.rb
@@ -112,7 +112,7 @@ module XMLRPC
def get_methods(obj, delim=".")
prefix = @prefix + delim
@methods.collect { |name, meth, sig, help|
- [prefix + name, obj.method(meth).to_proc, sig, help]
+ [prefix + name.to_s, obj.method(meth).to_proc, sig, help]
}
end
@@ -132,7 +132,7 @@ module XMLRPC
def get_methods(obj, delim=".")
prefix = @prefix + delim
obj.class.public_instance_methods(false).collect { |name|
- [prefix + name, obj.method(name).to_proc, nil, nil]
+ [prefix + name.to_s, obj.method(name).to_proc, nil, nil]
}
end
end
diff --git a/lib/yaml.rb b/lib/yaml.rb
index 0c95b7e82c..ff9e1a6344 100644
--- a/lib/yaml.rb
+++ b/lib/yaml.rb
@@ -1,440 +1,76 @@
-# -*- mode: ruby; ruby-indent-level: 4; tab-width: 4 -*- vim: sw=4 ts=4
-# $Id$
+##
+# The YAML module allows you to use one of the two YAML engines that ship with
+# ruby. By default Psych is used but the old and unmaintained Syck may be
+# chosen.
#
-# = yaml.rb: top-level module with methods for loading and parsing YAML documents
+# See Psych or Syck for usage and documentation.
#
-# Author:: why the lucky stiff
+# To set the YAML engine to syck:
#
-
-require 'stringio'
-require 'yaml/error'
-require 'yaml/syck'
-require 'yaml/tag'
-require 'yaml/stream'
-require 'yaml/constants'
-
-# == YAML
-#
-# YAML(tm) (rhymes with 'camel') is a
-# straightforward machine parsable data serialization format designed for
-# human readability and interaction with scripting languages such as Perl
-# and Python. YAML is optimized for data serialization, formatted
-# dumping, configuration files, log files, Internet messaging and
-# filtering. This specification describes the YAML information model and
-# serialization format. Together with the Unicode standard for characters, it
-# provides all the information necessary to understand YAML Version 1.0
-# and construct computer programs to process it.
-#
-# See http://yaml.org/ for more information. For a quick tutorial, please
-# visit YAML In Five Minutes (http://yaml.kwiki.org/?YamlInFiveMinutes).
-#
-# == About This Library
-#
-# The YAML 1.0 specification outlines four stages of YAML loading and dumping.
-# This library honors all four of those stages, although data is really only
-# available to you in three stages.
-#
-# The four stages are: native, representation, serialization, and presentation.
-#
-# The native stage refers to data which has been loaded completely into Ruby's
-# own types. (See +YAML::load+.)
-#
-# The representation stage means data which has been composed into
-# +YAML::BaseNode+ objects. In this stage, the document is available as a
-# tree of node objects. You can perform YPath queries and transformations
-# at this level. (See +YAML::parse+.)
-#
-# The serialization stage happens inside the parser. The YAML parser used in
-# Ruby is called Syck. Serialized nodes are available in the extension as
-# SyckNode structs.
-#
-# The presentation stage is the YAML document itself. This is accessible
-# to you as a string. (See +YAML::dump+.)
-#
-# For more information about the various information models, see Chapter
-# 3 of the YAML 1.0 Specification (http://yaml.org/spec/#id2491269).
-#
-# The YAML module provides quick access to the most common loading (YAML::load)
-# and dumping (YAML::dump) tasks. This module also provides an API for registering
-# global types (YAML::add_domain_type).
+# YAML::ENGINE.yamler = 'syck'
#
-# == Example
+# To set the YAML engine back to psych:
#
-# A simple round-trip (load and dump) of an object.
-#
-# require "yaml"
-#
-# test_obj = ["dogs", "cats", "badgers"]
-#
-# yaml_obj = YAML::dump( test_obj )
-# # -> ---
-# - dogs
-# - cats
-# - badgers
-# ruby_obj = YAML::load( yaml_obj )
-# # => ["dogs", "cats", "badgers"]
-# ruby_obj == test_obj
-# # => true
-#
-# To register your custom types with the global resolver, use +add_domain_type+.
-#
-# YAML::add_domain_type( "your-site.com,2004", "widget" ) do |type, val|
-# Widget.new( val )
-# end
-#
-module YAML
-
- Resolver = YAML::Syck::Resolver
- DefaultResolver = YAML::Syck::DefaultResolver
- DefaultResolver.use_types_at( @@tagged_classes )
- GenericResolver = YAML::Syck::GenericResolver
- Parser = YAML::Syck::Parser
- Emitter = YAML::Syck::Emitter
-
- # Returns a new default parser
- def YAML.parser; Parser.new.set_resolver( YAML.resolver ); end
- # Returns a new generic parser
- def YAML.generic_parser; Parser.new.set_resolver( GenericResolver ); end
- # Returns the default resolver
- def YAML.resolver; DefaultResolver; end
- # Returns a new default emitter
- def YAML.emitter; Emitter.new.set_resolver( YAML.resolver ); end
+# YAML::ENGINE.yamler = 'psych'
- #
- # Converts _obj_ to YAML and writes the YAML result to _io_.
- #
- # File.open( 'animals.yaml', 'w' ) do |out|
- # YAML.dump( ['badger', 'elephant', 'tiger'], out )
- # end
- #
- # If no _io_ is provided, a string containing the dumped YAML
- # is returned.
- #
- # YAML.dump( :locked )
- # #=> "--- :locked"
- #
- def YAML.dump( obj, io = nil )
- obj.to_yaml( io || io2 = StringIO.new )
- io || ( io2.rewind; io2.read )
- end
-
- #
- # Load a document from the current _io_ stream.
- #
- # File.open( 'animals.yaml' ) { |yf| YAML::load( yf ) }
- # #=> ['badger', 'elephant', 'tiger']
- #
- # Can also load from a string.
- #
- # YAML.load( "--- :locked" )
- # #=> :locked
- #
- def YAML.load( io )
- yp = parser.load( io )
- end
-
- #
- # Load a document from the file located at _filepath_.
- #
- # YAML.load_file( 'animals.yaml' )
- # #=> ['badger', 'elephant', 'tiger']
- #
- def YAML.load_file( filepath )
- File.open( filepath ) do |f|
- load( f )
- end
- end
-
- #
- # Parse the first document from the current _io_ stream
- #
- # File.open( 'animals.yaml' ) { |yf| YAML::load( yf ) }
- # #=> #<YAML::Syck::Node:0x82ccce0
- # @kind=:seq,
- # @value=
- # [#<YAML::Syck::Node:0x82ccd94
- # @kind=:scalar,
- # @type_id="str",
- # @value="badger">,
- # #<YAML::Syck::Node:0x82ccd58
- # @kind=:scalar,
- # @type_id="str",
- # @value="elephant">,
- # #<YAML::Syck::Node:0x82ccd1c
- # @kind=:scalar,
- # @type_id="str",
- # @value="tiger">]>
- #
- # Can also load from a string.
- #
- # YAML.parse( "--- :locked" )
- # #=> #<YAML::Syck::Node:0x82edddc
- # @type_id="tag:ruby.yaml.org,2002:sym",
- # @value=":locked", @kind=:scalar>
- #
- def YAML.parse( io )
- yp = generic_parser.load( io )
- end
-
- #
- # Parse a document from the file located at _filepath_.
- #
- # YAML.parse_file( 'animals.yaml' )
- # #=> #<YAML::Syck::Node:0x82ccce0
- # @kind=:seq,
- # @value=
- # [#<YAML::Syck::Node:0x82ccd94
- # @kind=:scalar,
- # @type_id="str",
- # @value="badger">,
- # #<YAML::Syck::Node:0x82ccd58
- # @kind=:scalar,
- # @type_id="str",
- # @value="elephant">,
- # #<YAML::Syck::Node:0x82ccd1c
- # @kind=:scalar,
- # @type_id="str",
- # @value="tiger">]>
- #
- def YAML.parse_file( filepath )
- File.open( filepath ) do |f|
- parse( f )
- end
- end
-
- #
- # Calls _block_ with each consecutive document in the YAML
- # stream contained in _io_.
- #
- # File.open( 'many-docs.yaml' ) do |yf|
- # YAML.each_document( yf ) do |ydoc|
- # ## ydoc contains the single object
- # ## from the YAML document
- # end
- # end
- #
- def YAML.each_document( io, &block )
- yp = parser.load_documents( io, &block )
- end
-
- #
- # Calls _block_ with each consecutive document in the YAML
- # stream contained in _io_.
- #
- # File.open( 'many-docs.yaml' ) do |yf|
- # YAML.load_documents( yf ) do |ydoc|
- # ## ydoc contains the single object
- # ## from the YAML document
- # end
- # end
- #
- def YAML.load_documents( io, &doc_proc )
- YAML.each_document( io, &doc_proc )
- end
-
- #
- # Calls _block_ with a tree of +YAML::BaseNodes+, one tree for
- # each consecutive document in the YAML stream contained in _io_.
- #
- # File.open( 'many-docs.yaml' ) do |yf|
- # YAML.each_node( yf ) do |ydoc|
- # ## ydoc contains a tree of nodes
- # ## from the YAML document
- # end
- # end
- #
- def YAML.each_node( io, &doc_proc )
- yp = generic_parser.load_documents( io, &doc_proc )
- end
-
- #
- # Calls _block_ with a tree of +YAML::BaseNodes+, one tree for
- # each consecutive document in the YAML stream contained in _io_.
- #
- # File.open( 'many-docs.yaml' ) do |yf|
- # YAML.parse_documents( yf ) do |ydoc|
- # ## ydoc contains a tree of nodes
- # ## from the YAML document
- # end
- # end
- #
- def YAML.parse_documents( io, &doc_proc )
- YAML.each_node( io, &doc_proc )
- end
-
- #
- # Loads all documents from the current _io_ stream,
- # returning a +YAML::Stream+ object containing all
- # loaded documents.
- #
- def YAML.load_stream( io )
- d = nil
- parser.load_documents( io ) do |doc|
- d = YAML::Stream.new if not d
- d.add( doc )
- end
- return d
- end
-
- #
- # Returns a YAML stream containing each of the items in +objs+,
- # each having their own document.
- #
- # YAML.dump_stream( 0, [], {} )
- # #=> --- 0
- # --- []
- # --- {}
- #
- def YAML.dump_stream( *objs )
- d = YAML::Stream.new
- objs.each do |doc|
- d.add( doc )
- end
- d.emit
- end
-
- #
- # Add a global handler for a YAML domain type.
- #
- def YAML.add_domain_type( domain, type_tag, &transfer_proc )
- resolver.add_type( "tag:#{ domain }:#{ type_tag }", transfer_proc )
- end
-
- #
- # Add a transfer method for a builtin type
- #
- def YAML.add_builtin_type( type_tag, &transfer_proc )
- resolver.add_type( "tag:yaml.org,2002:#{ type_tag }", transfer_proc )
- end
-
- #
- # Add a transfer method for a builtin type
- #
- def YAML.add_ruby_type( type_tag, &transfer_proc )
- resolver.add_type( "tag:ruby.yaml.org,2002:#{ type_tag }", transfer_proc )
- end
-
- #
- # Add a private document type
- #
- def YAML.add_private_type( type_re, &transfer_proc )
- resolver.add_type( "x-private:" + type_re, transfer_proc )
- end
+module YAML
+ class EngineManager # :nodoc:
+ attr_reader :yamler
- #
- # Detect typing of a string
- #
- def YAML.detect_implicit( val )
- resolver.detect_implicit( val )
+ def initialize
+ @yamler = nil
end
- #
- # Convert a type_id to a taguri
- #
- def YAML.tagurize( val )
- resolver.tagurize( val )
+ def syck?
+ 'syck' == @yamler
end
- #
- # Apply a transfer method to a Ruby object
- #
- def YAML.transfer( type_id, obj )
- resolver.transfer( YAML.tagurize( type_id ), obj )
- end
+ def yamler= engine
+ raise(ArgumentError, "bad engine") unless %w{syck psych}.include?(engine)
- #
- # Apply any implicit a node may qualify for
- #
- def YAML.try_implicit( obj )
- YAML.transfer( YAML.detect_implicit( obj ), obj )
- end
+ require engine unless (engine == 'syck' ? Syck : Psych).const_defined?(:VERSION)
- #
- # Method to extract colon-seperated type and class, returning
- # the type and the constant of the class
- #
- def YAML.read_type_class( type, obj_class )
- scheme, domain, type, tclass = type.split( ':', 4 )
- tclass.split( "::" ).each { |c| obj_class = obj_class.const_get( c ) } if tclass
- return [ type, obj_class ]
- end
+ Object.class_eval <<-eorb, __FILE__, __LINE__ + 1
+ remove_const 'YAML'
+ YAML = #{engine.capitalize}
+ remove_method :to_yaml
+ alias :to_yaml :#{engine}_to_yaml
+ eorb
- #
- # Allocate blank object
- #
- def YAML.object_maker( obj_class, val )
- if Hash === val
- o = obj_class.allocate
- val.each_pair { |k,v|
- o.instance_variable_set("@#{k}", v)
- }
- o
- else
- raise YAML::Error, "Invalid object explicitly tagged !ruby/Object: " + val.inspect
- end
+ @yamler = engine
+ engine
end
+ end
- #
- # Allocate an Emitter if needed
- #
- def YAML.quick_emit( oid, opts = {}, &e )
- out =
- if opts.is_a? YAML::Emitter
- opts
- else
- emitter.reset( opts )
- end
- oid =
- case oid when Fixnum, NilClass; oid
- else oid = "#{oid.object_id}-#{oid.hash}"
- end
- out.emit( oid, &e )
- end
+ ##
+ # Allows changing the current YAML engine. See YAML for details.
+ ENGINE = YAML::EngineManager.new
end
-require 'yaml/rubytypes'
-require 'yaml/types'
-
-module Kernel
- #
- # ryan:: You know how Kernel.p is a really convenient way to dump ruby
- # structures? The only downside is that it's not as legible as
- # YAML.
- #
- # _why:: (listening)
- #
- # ryan:: I know you don't want to urinate all over your users' namespaces.
- # But, on the other hand, convenience of dumping for debugging is,
- # IMO, a big YAML use case.
- #
- # _why:: Go nuts! Have a pony parade!
- #
- # ryan:: Either way, I certainly will have a pony parade.
- #
+if defined?(Psych)
+ engine = 'psych'
+elsif defined?(Syck)
+ engine = 'syck'
+else
+ begin
+ require 'psych'
+ engine = 'psych'
+ rescue LoadError
+ warn "#{caller[0]}:"
+ warn "It seems your ruby installation is missing psych (for YAML output)."
+ warn "To eliminate this warning, please install libyaml and reinstall your ruby."
+ require 'syck'
+ engine = 'syck'
+ end
+end
- # Prints any supplied _objects_ out in YAML. Intended as
- # a variation on +Kernel::p+.
- #
- # S = Struct.new(:name, :state)
- # s = S['dave', 'TX']
- # y s
- #
- # _produces:_
- #
- # --- !ruby/struct:S
- # name: dave
- # state: TX
- #
- def y( object, *objects )
- objects.unshift object
- puts( if objects.length == 1
- YAML::dump( *objects )
- else
- YAML::dump_stream( *objects )
- end )
- end
- private :y
+module Syck
+ ENGINE = YAML::ENGINE
end
+module Psych
+ ENGINE = YAML::ENGINE
+end
+YAML::ENGINE.yamler = engine
diff --git a/lib/yaml/dbm.rb b/lib/yaml/dbm.rb
index a28fd04f19..07441f53ad 100644
--- a/lib/yaml/dbm.rb
+++ b/lib/yaml/dbm.rb
@@ -1,23 +1,52 @@
require 'yaml'
require 'dbm'
-#
-# YAML + DBM = YDBM
-# - Same interface as DBM class
-#
+
module YAML
+# YAML + DBM = YDBM
+#
+# YAML::DBM provides the same interface as ::DBM.
+#
+# However, while DBM only allows strings for both keys and values,
+# this library allows one to use most Ruby objects for values
+# by first converting them to YAML. Keys must be strings.
+#
+# Conversion to and from YAML is performed automatically.
+#
+# See the documentation for ::DBM and ::YAML for more information.
class DBM < ::DBM
VERSION = "0.1"
+
+ # Return value associated with +key+ from database.
+ #
+ # Returns +nil+ if there is no such +key+.
def []( key )
fetch( key )
end
+
+ # :call-seq:
+ # []=( key, value )
+ #
+ # Set +key+ to +value+ in database.
+ #
+ # +value+ will be converted to YAML before storage.
def []=( key, val )
store( key, val )
end
+
+ # :call-seq:
+ # fetch( key, ifnone = nil )
+ # fetch( key, &block )
+ #
+ # Return value associated with +key+.
+ #
+ # If there is no value for +key+ and no block is given, returns +ifnone+.
+ #
+ # Otherwise, calls block passing in the given +key+.
def fetch( keystr, ifnone = nil )
begin
val = super( keystr )
- return YAML::load( val ) if String === val
+ return YAML.load( val ) if String === val
rescue IndexError
end
if block_given?
@@ -26,58 +55,110 @@ class DBM < ::DBM
ifnone
end
end
+
+ # Deprecated, used YAML::DBM#key instead.
def index( keystr )
super( keystr.to_yaml )
end
+
+ # Returns an array containing the values associated with the given keys.
def values_at( *keys )
keys.collect { |k| fetch( k ) }
end
+
+ # Deletes value from database associated with +key+.
+ #
+ # Returns value or +nil+.
def delete( key )
v = super( key )
if String === v
- v = YAML::load( v )
+ v = YAML.load( v )
end
v
end
- def delete_if
+
+ # Calls the given block once for each +key+, +value+ pair in the database.
+ # Deletes all entries for which the block returns true.
+ #
+ # Returns +self+.
+ def delete_if # :yields: [key, value]
del_keys = keys.dup
del_keys.delete_if { |k| yield( k, fetch( k ) ) == false }
del_keys.each { |k| delete( k ) }
self
end
+
+ # Converts the contents of the database to an in-memory Hash, then calls
+ # Hash#reject with the specified code block, returning a new Hash.
def reject
hsh = self.to_hash
hsh.reject { |k,v| yield k, v }
end
- def each_pair
+
+ # Calls the given block once for each +key+, +value+ pair in the database.
+ #
+ # Returns +self+.
+ def each_pair # :yields: [key, value]
keys.each { |k| yield k, fetch( k ) }
self
end
- def each_value
- super { |v| yield YAML::load( v ) }
+
+ # Calls the given block for each value in database.
+ #
+ # Returns +self+.
+ def each_value # :yields: value
+ super { |v| yield YAML.load( v ) }
self
end
+
+ # Returns an array of values from the database.
def values
- super.collect { |v| YAML::load( v ) }
+ super.collect { |v| YAML.load( v ) }
end
+
+ # Returns true if specified value is found in the database.
def has_value?( val )
each_value { |v| return true if v == val }
return false
end
+
+ # Returns a Hash (not a DBM database) created by using each value in the
+ # database as a key, with the corresponding key as its value.
+ #
+ # Note that all values in the hash will be Strings, but the keys will be
+ # actual objects.
def invert
h = {}
keys.each { |k| h[ self.fetch( k ) ] = k }
h
end
+
+ # Replaces the contents of the database with the contents of the specified
+ # object. Takes any object which implements the each_pair method, including
+ # Hash and DBM objects.
def replace( hsh )
clear
update( hsh )
end
+
+ # Removes a [key, value] pair from the database, and returns it.
+ # If the database is empty, returns +nil+.
+ #
+ # The order in which values are removed/returned is not guaranteed.
def shift
a = super
- a[1] = YAML::load( a[1] ) if a
+ a[1] = YAML.load( a[1] ) if a
a
end
+
+ # :call-seq:
+ # select( &block )
+ # select( *keys )
+ #
+ # If a block is provided, returns a new array containing [key, value] pairs
+ # for which the block returns true.
+ #
+ # Otherwise, same as #values_at
def select( *keys )
if block_given?
self.keys.collect { |k| v = self[k]; [k, v] if yield k, v }.compact
@@ -85,26 +166,48 @@ class DBM < ::DBM
values_at( *keys )
end
end
+
+ # :call-seq:
+ # store( key, value )
+ #
+ #Stores +value+ in database with +key+ as the index. +value+ is converted
+ #to YAML before being stored.
+ #
+ #Returns +value+
def store( key, val )
super( key, val.to_yaml )
val
end
+
+ # Updates the database with multiple values from the specified object.
+ # Takes any object which implements the each_pair method, including
+ # Hash and DBM objects.
+ #
+ # Returns +self+.
def update( hsh )
hsh.keys.each do |k|
self.store( k, hsh.fetch( k ) )
end
self
end
+
+ # Converts the contents of the database to an array of [key, value] arrays,
+ # and returns it.
def to_a
a = []
keys.each { |k| a.push [ k, self.fetch( k ) ] }
a
end
+
+
+ # Converts the contents of the database to an in-memory Hash object, and
+ # returns it.
def to_hash
h = {}
keys.each { |k| h[ k ] = self.fetch( k ) }
h
end
+
alias :each :each_pair
end
diff --git a/lib/yaml/store.rb b/lib/yaml/store.rb
index e3a8e9fcdd..82d6ee1aaa 100644
--- a/lib/yaml/store.rb
+++ b/lib/yaml/store.rb
@@ -4,9 +4,50 @@
require 'yaml'
require 'pstore'
+# YAML::Store provides the same functionality as PStore, except it uses YAML
+# to dump objects instead of Marshal.
+#
+# == Example
+#
+# require 'yaml/store'
+#
+# Person = Struct.new :first_name, :last_name
+#
+# people = [Person.new("Bob", "Smith"), Person.new("Mary", "Johnson")]
+#
+# store = YAML::Store.new "test.store"
+#
+# store.transaction do
+# store["people"] = people
+# store["greeting"] = { "hello" => "world" }
+# end
+#
+# After running the above code, the contents of "test.store" will be:
+#
+# ---
+# people:
+# - !ruby/struct:Person
+# first_name: Bob
+# last_name: Smith
+# - !ruby/struct:Person
+# first_name: Mary
+# last_name: Johnson
+# greeting:
+# hello: world
+
class YAML::Store < PStore
+
+ # :call-seq:
+ # initialize( file_name, yaml_opts = {} )
+ #
+ # Creates a new YAML::Store object, which will store data in +file_name+.
+ # If the file does not already exist, it will be created.
+ #
+ #
+ # Options passed in through +yaml_opts+ will be used when converting the
+ # store to YAML via Hash#to_yaml().
def initialize( *o )
- @opt = YAML::DEFAULTS.dup
+ @opt = {}
if String === o.first
super(o.shift)
end
@@ -15,12 +56,14 @@ class YAML::Store < PStore
end
end
+ # :stopdoc:
+
def dump(table)
@table.to_yaml(@opt)
end
def load(content)
- table = YAML::load(content)
+ table = YAML.load(content)
if table == false
{}
else
diff --git a/lib/yaml/syck.rb b/lib/yaml/syck.rb
deleted file mode 100644
index faf57e8036..0000000000
--- a/lib/yaml/syck.rb
+++ /dev/null
@@ -1,19 +0,0 @@
-#
-# YAML::Syck module
-# .. glues syck and yaml.rb together ..
-#
-require 'syck'
-require 'yaml/basenode'
-
-module YAML
- module Syck
-
- #
- # Mixin BaseNode functionality
- #
- class Node
- include YAML::BaseNode
- end
-
- end
-end
diff --git a/load.c b/load.c
index 5f9d4f2294..0ff4b60253 100644
--- a/load.c
+++ b/load.c
@@ -4,17 +4,18 @@
#include "ruby/ruby.h"
#include "ruby/util.h"
+#include "internal.h"
#include "dln.h"
#include "eval_intern.h"
VALUE ruby_dln_librefs;
-#define IS_RBEXT(e) (strcmp(e, ".rb") == 0)
-#define IS_SOEXT(e) (strcmp(e, ".so") == 0 || strcmp(e, ".o") == 0)
+#define IS_RBEXT(e) (strcmp((e), ".rb") == 0)
+#define IS_SOEXT(e) (strcmp((e), ".so") == 0 || strcmp((e), ".o") == 0)
#ifdef DLEXT2
-#define IS_DLEXT(e) (strcmp(e, DLEXT) == 0 || strcmp(e, DLEXT2) == 0)
+#define IS_DLEXT(e) (strcmp((e), DLEXT) == 0 || strcmp((e), DLEXT2) == 0)
#else
-#define IS_DLEXT(e) (strcmp(e, DLEXT) == 0)
+#define IS_DLEXT(e) (strcmp((e), DLEXT) == 0)
#endif
@@ -37,9 +38,10 @@ VALUE
rb_get_expanded_load_path(void)
{
VALUE load_path = rb_get_load_path();
- VALUE ary = rb_ary_new2(RARRAY_LEN(load_path));
+ VALUE ary;
long i;
+ ary = rb_ary_new2(RARRAY_LEN(load_path));
for (i = 0; i < RARRAY_LEN(load_path); ++i) {
VALUE path = rb_file_expand_path(RARRAY_PTR(load_path)[i], Qnil);
rb_str_freeze(path);
@@ -72,16 +74,27 @@ loaded_feature_path(const char *name, long vlen, const char *feature, long len,
int type, VALUE load_path)
{
long i;
-
+ long plen;
+ const char *e;
+
+ if(vlen < len) return 0;
+ if (!strncmp(name+(vlen-len),feature,len)){
+ plen = vlen - len - 1;
+ } else {
+ for (e = name + vlen; name != e && *e != '.' && *e != '/'; --e);
+ if (*e!='.' ||
+ e-name < len ||
+ strncmp(e-len,feature,len) )
+ return 0;
+ plen = e - name - len - 1;
+ }
for (i = 0; i < RARRAY_LEN(load_path); ++i) {
VALUE p = RARRAY_PTR(load_path)[i];
const char *s = StringValuePtr(p);
long n = RSTRING_LEN(p);
- if (vlen < n + len + 1) continue;
+ if (n != plen ) continue;
if (n && (strncmp(name, s, n) || name[n] != '/')) continue;
- if (strncmp(name + n + 1, feature, len)) continue;
- if (name[n+len+1] && name[n+len+1] != '.') continue;
switch (type) {
case 's':
if (IS_DLEXT(&name[n+len+1])) return p;
@@ -225,55 +238,50 @@ rb_feature_provided(const char *feature, const char **loading)
}
if (ext && !strchr(ext, '/')) {
if (IS_RBEXT(ext)) {
- if (rb_feature_p(feature, ext, Qtrue, Qfalse, loading)) return Qtrue;
- return Qfalse;
+ if (rb_feature_p(feature, ext, TRUE, FALSE, loading)) return TRUE;
+ return FALSE;
}
else if (IS_SOEXT(ext) || IS_DLEXT(ext)) {
- if (rb_feature_p(feature, ext, Qfalse, Qfalse, loading)) return Qtrue;
- return Qfalse;
+ if (rb_feature_p(feature, ext, FALSE, FALSE, loading)) return TRUE;
+ return FALSE;
}
}
- if (rb_feature_p(feature, feature + strlen(feature), Qtrue, Qfalse, loading))
- return Qtrue;
- return Qfalse;
+ if (rb_feature_p(feature, 0, TRUE, FALSE, loading))
+ return TRUE;
+ return FALSE;
}
static void
rb_provide_feature(VALUE feature)
{
+ if (OBJ_FROZEN(get_loaded_features())) {
+ rb_raise(rb_eRuntimeError,
+ "$LOADED_FEATURES is frozen; cannot append feature");
+ }
rb_ary_push(get_loaded_features(), feature);
}
void
rb_provide(const char *feature)
{
- rb_provide_feature(rb_str_new2(feature));
+ rb_provide_feature(rb_usascii_str_new2(feature));
}
NORETURN(static void load_failed(VALUE));
-void
-rb_load(VALUE fname, int wrap)
+static void
+rb_load_internal(VALUE fname, int wrap)
{
- VALUE tmp;
int state;
rb_thread_t *th = GET_THREAD();
volatile VALUE wrapper = th->top_wrapper;
volatile VALUE self = th->top_self;
- volatile int loaded = Qfalse;
+ volatile int loaded = FALSE;
volatile int mild_compile_error;
#ifndef __GNUC__
rb_thread_t *volatile th0 = th;
#endif
- FilePathValue(fname);
- fname = rb_str_new4(fname);
- tmp = rb_find_file(fname);
- if (!tmp) {
- load_failed(fname);
- }
- RB_GC_GUARD(fname) = rb_str_new4(tmp);
-
th->errinfo = Qnil; /* ensure */
if (!wrap) {
@@ -296,8 +304,8 @@ rb_load(VALUE fname, int wrap)
th->mild_compile_error++;
node = (NODE *)rb_load_file(RSTRING_PTR(fname));
- loaded = Qtrue;
- iseq = rb_iseq_new_top(node, rb_str_new2("<top (required)>"), fname, Qfalse);
+ loaded = TRUE;
+ iseq = rb_iseq_new_top(node, rb_str_new2("<top (required)>"), fname, rb_realpath_internal(Qnil, fname, 1), Qfalse);
th->mild_compile_error--;
rb_iseq_eval(iseq);
}
@@ -325,6 +333,14 @@ rb_load(VALUE fname, int wrap)
}
void
+rb_load(VALUE fname, int wrap)
+{
+ VALUE tmp = rb_find_file(FilePathValue(fname));
+ if (!tmp) load_failed(fname);
+ rb_load_internal(tmp, wrap);
+}
+
+void
rb_load_protect(VALUE fname, int wrap, int *state)
{
int status;
@@ -340,7 +356,7 @@ rb_load_protect(VALUE fname, int wrap, int *state)
/*
* call-seq:
- * load(filename, wrap=false) => true
+ * load(filename, wrap=false) -> true
*
* Loads and executes the Ruby
* program in the file _filename_. If the filename does not
@@ -355,10 +371,16 @@ rb_load_protect(VALUE fname, int wrap, int *state)
static VALUE
rb_f_load(int argc, VALUE *argv)
{
- VALUE fname, wrap;
+ VALUE fname, wrap, path;
rb_scan_args(argc, argv, "11", &fname, &wrap);
- rb_load(fname, RTEST(wrap));
+ path = rb_find_file(FilePathValue(fname));
+ if (!path) {
+ if (!rb_file_load_ok(RSTRING_PTR(fname)))
+ load_failed(fname);
+ path = fname;
+ }
+ rb_load_internal(path, RTEST(wrap));
return Qtrue;
}
@@ -379,7 +401,10 @@ load_lock(const char *ftptr)
st_insert(loading_tbl, (st_data_t)ftptr, data);
return (char *)ftptr;
}
- rb_warning("loading in progress, circular require considered harmful - %s", ftptr);
+ if (RTEST(ruby_verbose)) {
+ rb_warning("loading in progress, circular require considered harmful - %s", ftptr);
+ rb_backtrace();
+ }
return RTEST(rb_barrier_wait((VALUE)data)) ? (char *)ftptr : 0;
}
@@ -405,24 +430,33 @@ load_unlock(const char *ftptr, int done)
/*
* call-seq:
- * require(string) => true or false
+ * require(name) -> true or false
*
- * Ruby tries to load the library named _string_, returning
- * +true+ if successful. If the filename does not resolve to
- * an absolute path, it will be searched for in the directories listed
- * in <code>$:</code>. If the file has the extension ``.rb'', it is
- * loaded as a source file; if the extension is ``.so'', ``.o'', or
- * ``.dll'', or whatever the default shared library extension is on
- * the current platform, Ruby loads the shared library as a Ruby
- * extension. Otherwise, Ruby tries adding ``.rb'', ``.so'', and so on
- * to the name. The name of the loaded feature is added to the array in
- * <code>$"</code>. A feature will not be loaded if it's name already
- * appears in <code>$"</code>. However, the file name is not converted
- * to an absolute path, so that ``<code>require 'a';require
- * './a'</code>'' will load <code>a.rb</code> twice.
+ * Loads the given +name+, returning +true+ if successful and +false+ if the
+ * feature is already loaded.
*
- * require "my-library.rb"
- * require "db-driver"
+ * If the filename does not resolve to an absolute path, it will be searched
+ * for in the directories listed in <code>$LOAD_PATH</code> (<code>$:</code>).
+ *
+ * If the filename has the extension ".rb", it is loaded as a source file; if
+ * the extension is ".so", ".o", or ".dll", or the default shared library
+ * extension on the current platform, Ruby loads the shared library as a
+ * Ruby extension. Otherwise, Ruby tries adding ".rb", ".so", and so on
+ * to the name until found. If the file named cannot be found, a LoadError
+ * will be raised.
+ *
+ * For Ruby extensions the filename given may use any shared library
+ * extension. For example, on Linux the socket extension is "socket.so" and
+ * <code>require 'socket.dll'</code> will load the socket extension.
+ *
+ * The absolute path of the loaded file is added to
+ * <code>$LOADED_FEATURES</code> (<code>$"</code>). A file will not be
+ * loaded again if its path already appears in <code>$"</code>. For example,
+ * <code>require 'a'; require './a'</code> will not load <code>a.rb</code>
+ * again.
+ *
+ * require "my-library.rb"
+ * require "db-driver"
*/
VALUE
@@ -431,8 +465,27 @@ rb_f_require(VALUE obj, VALUE fname)
return rb_require_safe(fname, rb_safe_level());
}
+/*
+ * call-seq:
+ * require_relative(string) -> true or false
+ *
+ * Ruby tries to load the library named _string_ relative to the requiring
+ * file's path. If the file's path cannot be determined a LoadError is raised.
+ * If a file is loaded +true+ is returned and false otherwise.
+ */
+VALUE
+rb_f_require_relative(VALUE obj, VALUE fname)
+{
+ VALUE base = rb_current_realfilepath();
+ if (NIL_P(base)) {
+ rb_raise(rb_eLoadError, "cannot infer basepath");
+ }
+ base = rb_file_dirname(base);
+ return rb_require_safe(rb_file_absolute_path(fname, base), rb_safe_level());
+}
+
static int
-search_required(VALUE fname, volatile VALUE *path)
+search_required(VALUE fname, volatile VALUE *path, int safe_level)
{
VALUE tmp;
char *ext, *ftptr;
@@ -443,76 +496,75 @@ search_required(VALUE fname, volatile VALUE *path)
ext = strrchr(ftptr = RSTRING_PTR(fname), '.');
if (ext && !strchr(ext, '/')) {
if (IS_RBEXT(ext)) {
- if (rb_feature_p(ftptr, ext, Qtrue, Qfalse, &loading)) {
+ if (rb_feature_p(ftptr, ext, TRUE, FALSE, &loading)) {
if (loading) *path = rb_str_new2(loading);
return 'r';
}
- if ((tmp = rb_find_file(fname)) != 0) {
+ if ((tmp = rb_find_file_safe(fname, safe_level)) != 0) {
ext = strrchr(ftptr = RSTRING_PTR(tmp), '.');
- if (!rb_feature_p(ftptr, ext, Qtrue, Qtrue, &loading) || loading)
+ if (!rb_feature_p(ftptr, ext, TRUE, TRUE, &loading) || loading)
*path = tmp;
return 'r';
}
return 0;
}
else if (IS_SOEXT(ext)) {
- if (rb_feature_p(ftptr, ext, Qfalse, Qfalse, &loading)) {
+ if (rb_feature_p(ftptr, ext, FALSE, FALSE, &loading)) {
if (loading) *path = rb_str_new2(loading);
return 's';
}
tmp = rb_str_new(RSTRING_PTR(fname), ext - RSTRING_PTR(fname));
#ifdef DLEXT2
OBJ_FREEZE(tmp);
- if (rb_find_file_ext(&tmp, loadable_ext + 1)) {
+ if (rb_find_file_ext_safe(&tmp, loadable_ext + 1, safe_level)) {
ext = strrchr(ftptr = RSTRING_PTR(tmp), '.');
- if (!rb_feature_p(ftptr, ext, Qfalse, Qtrue, &loading) || loading)
+ if (!rb_feature_p(ftptr, ext, FALSE, TRUE, &loading) || loading)
*path = tmp;
return 's';
}
#else
rb_str_cat2(tmp, DLEXT);
OBJ_FREEZE(tmp);
- if ((tmp = rb_find_file(tmp)) != 0) {
+ if ((tmp = rb_find_file_safe(tmp, safe_level)) != 0) {
ext = strrchr(ftptr = RSTRING_PTR(tmp), '.');
- if (!rb_feature_p(ftptr, ext, Qfalse, Qtrue, &loading) || loading)
+ if (!rb_feature_p(ftptr, ext, FALSE, TRUE, &loading) || loading)
*path = tmp;
return 's';
}
#endif
}
else if (IS_DLEXT(ext)) {
- if (rb_feature_p(ftptr, ext, Qfalse, Qfalse, &loading)) {
+ if (rb_feature_p(ftptr, ext, FALSE, FALSE, &loading)) {
if (loading) *path = rb_str_new2(loading);
return 's';
}
- if ((tmp = rb_find_file(fname)) != 0) {
+ if ((tmp = rb_find_file_safe(fname, safe_level)) != 0) {
ext = strrchr(ftptr = RSTRING_PTR(tmp), '.');
- if (!rb_feature_p(ftptr, ext, Qfalse, Qtrue, &loading) || loading)
+ if (!rb_feature_p(ftptr, ext, FALSE, TRUE, &loading) || loading)
*path = tmp;
return 's';
}
}
}
- else if ((ft = rb_feature_p(ftptr, 0, Qfalse, Qfalse, &loading)) == 'r') {
+ else if ((ft = rb_feature_p(ftptr, 0, FALSE, FALSE, &loading)) == 'r') {
if (loading) *path = rb_str_new2(loading);
return 'r';
}
tmp = fname;
- type = rb_find_file_ext(&tmp, loadable_ext);
- tmp = rb_file_expand_path(tmp, Qnil);
+ type = rb_find_file_ext_safe(&tmp, loadable_ext, safe_level);
switch (type) {
case 0:
if (ft)
break;
ftptr = RSTRING_PTR(tmp);
- return rb_feature_p(ftptr, 0, Qfalse, Qtrue, 0);
+ return rb_feature_p(ftptr, 0, FALSE, TRUE, 0);
default:
if (ft)
break;
case 1:
ext = strrchr(ftptr = RSTRING_PTR(tmp), '.');
- if (rb_feature_p(ftptr, ext, !--type, Qtrue, &loading) && !loading)
+ if (rb_feature_p(ftptr, ext, !--type, TRUE, &loading) && !loading)
break;
*path = tmp;
}
@@ -522,30 +574,22 @@ search_required(VALUE fname, volatile VALUE *path)
static void
load_failed(VALUE fname)
{
- rb_raise(rb_eLoadError, "no such file to load -- %s",
- RSTRING_PTR(fname));
+ VALUE mesg = rb_str_buf_new_cstr("cannot load such file -- ");
+ rb_str_append(mesg, fname); /* should be ASCII compatible */
+ rb_exc_raise(rb_exc_new3(rb_eLoadError, mesg));
}
static VALUE
load_ext(VALUE path)
{
- VALUE result;
-
SCOPE_SET(NOEX_PUBLIC);
-#if defined DLN_NEEDS_ALT_SEPARATOR && DLN_NEEDS_ALT_SEPARATOR
- translit_char(RSTRING_PTR(path), '/', '\\');
-#endif
- result = (VALUE)dln_load(RSTRING_PTR(path));
-#if defined DLN_NEEDS_ALT_SEPARATOR && DLN_NEEDS_ALT_SEPARATOR
- translit_char(RSTRING_PTR(path), '\\', '/');
-#endif
- return result;
+ return (VALUE)dln_load(RSTRING_PTR(path));
}
VALUE
rb_require_safe(VALUE fname, int safe)
{
- VALUE result = Qnil;
+ volatile VALUE result = Qnil;
rb_thread_t *th = GET_THREAD();
volatile VALUE errinfo = th->errinfo;
int state;
@@ -563,21 +607,16 @@ rb_require_safe(VALUE fname, int safe)
rb_set_safe_level_force(safe);
FilePathValue(fname);
- RB_GC_GUARD(fname) = rb_str_new4(fname);
rb_set_safe_level_force(0);
- found = search_required(fname, &path);
+ found = search_required(fname, &path, safe);
if (found) {
if (!path || !(ftptr = load_lock(RSTRING_PTR(path)))) {
result = Qfalse;
}
else {
- if (safe > 0 && OBJ_TAINTED(path)) {
- rb_raise(rb_eSecurityError, "cannot load from insecure path - %s",
- RSTRING_PTR(path));
- }
switch (found) {
case 'r':
- rb_load(path, 0);
+ rb_load_internal(path, 0);
break;
case 's':
@@ -624,7 +663,7 @@ init_ext_call(VALUE arg)
return Qnil;
}
-void
+RUBY_FUNC_EXPORTED void
ruby_init_ext(const char *name, void (*init)(void))
{
if (load_lock(name)) {
@@ -637,7 +676,7 @@ ruby_init_ext(const char *name, void (*init)(void))
/*
* call-seq:
- * mod.autoload(name, filename) => nil
+ * mod.autoload(module, filename) -> nil
*
* Registers _filename_ to be loaded (using <code>Kernel::require</code>)
* the first time that _module_ (which may be a <code>String</code> or
@@ -654,13 +693,22 @@ rb_mod_autoload(VALUE mod, VALUE sym, VALUE file)
{
ID id = rb_to_id(sym);
- Check_SafeStr(file);
+ FilePathValue(file);
rb_autoload(mod, id, RSTRING_PTR(file));
return Qnil;
}
/*
- * MISSING: documentation
+ * call-seq:
+ * mod.autoload?(name) -> String or nil
+ *
+ * Returns _filename_ to be loaded if _name_ is registered as
+ * +autoload+ in the namespace of _mod_.
+ *
+ * module A
+ * end
+ * A.autoload(:B, "b")
+ * A.autoload?(:B) #=> "b"
*/
static VALUE
@@ -671,7 +719,7 @@ rb_mod_autoload_p(VALUE mod, VALUE sym)
/*
* call-seq:
- * autoload(module, filename) => nil
+ * autoload(module, filename) -> nil
*
* Registers _filename_ to be loaded (using <code>Kernel::require</code>)
* the first time that _module_ (which may be a <code>String</code> or
@@ -683,7 +731,7 @@ rb_mod_autoload_p(VALUE mod, VALUE sym)
static VALUE
rb_f_autoload(VALUE obj, VALUE sym, VALUE file)
{
- VALUE klass = rb_vm_cbase();
+ VALUE klass = rb_class_real(rb_vm_cbase());
if (NIL_P(klass)) {
rb_raise(rb_eTypeError, "Can not set autoload on singleton class");
}
@@ -691,7 +739,14 @@ rb_f_autoload(VALUE obj, VALUE sym, VALUE file)
}
/*
- * MISSING: documentation
+ * call-seq:
+ * autoload?(name) -> String or nil
+ *
+ * Returns _filename_ to be loaded if _name_ is registered as
+ * +autoload+.
+ *
+ * autoload(:B, "b")
+ * autoload?(:B) #=> "b"
*/
static VALUE
@@ -709,12 +764,12 @@ void
Init_load()
{
#undef rb_intern
-#define rb_intern(str) rb_intern2(str, strlen(str))
+#define rb_intern(str) rb_intern2((str), strlen(str))
rb_vm_t *vm = GET_VM();
static const char var_load_path[] = "$:";
ID id_load_path = rb_intern2(var_load_path, sizeof(var_load_path)-1);
- rb_define_hooked_variable(var_load_path, (VALUE*)vm, load_path_getter, 0);
+ rb_define_hooked_variable(var_load_path, (VALUE*)vm, load_path_getter, rb_gvar_readonly_setter);
rb_alias_variable(rb_intern("$-I"), id_load_path);
rb_alias_variable(rb_intern("$LOAD_PATH"), id_load_path);
vm->load_path = rb_ary_new();
@@ -725,6 +780,7 @@ Init_load()
rb_define_global_function("load", rb_f_load, -1);
rb_define_global_function("require", rb_f_require, 1);
+ rb_define_global_function("require_relative", rb_f_require_relative, 1);
rb_define_method(rb_cModule, "autoload", rb_mod_autoload, 2);
rb_define_method(rb_cModule, "autoload?", rb_mod_autoload_p, 1);
rb_define_global_function("autoload", rb_f_autoload, 2);
diff --git a/main.c b/main.c
index a782939ff3..e100cddba5 100644
--- a/main.c
+++ b/main.c
@@ -15,6 +15,9 @@
#ifdef HAVE_LOCALE_H
#include <locale.h>
#endif
+#ifdef RUBY_DEBUG_ENV
+#include <stdlib.h>
+#endif
RUBY_GLOBAL_SETUP
diff --git a/man/erb.1 b/man/erb.1
index 87a0a6fca4..29c21b8a88 100644
--- a/man/erb.1
+++ b/man/erb.1
@@ -18,14 +18,14 @@
.Pp
.Sh DESCRIPTION
.Nm
-is a command line front-end for
+is a command line front-end for
.Li "ERB"
library, which is an implementation of eRuby.
-
-eRuby provdes an easy to use but powerful templating system for Ruby.
+.Pp
+eRuby provides an easy to use but powerful templating system for Ruby.
Using eRuby, actual Ruby code can be added to any plain text document for the
purposes of generating document information details and/or flow control.
-
+.Pp
.Nm
is a part of
.Nm Ruby .
@@ -34,18 +34,18 @@ is a part of
.Bl -tag -width "1234567890123" -compact
.Pp
.It Fl -version
-Prints the version of
+Prints the version of
.Nm .
.Pp
.It Fl E Ar external Ns Op : Ns Ar internal
.It Fl -encoding Ar external Ns Op : Ns Ar internal
Specifies the default value(s) for external encodings and internal encoding. Values should be separated with colon (:).
-
-You can ommit the one for internal encodings, then the value
+.Pp
+You can omit the one for internal encodings, then the value
.Pf ( Li "Encoding.default_internal" ) will be nil.
.Pp
.It Fl P
-Evaluates lines starting with
+Evaluates lines starting with
.Li "%"
as Ruby code and removes the tailing EOLs.
.Pp
@@ -53,7 +53,7 @@ as Ruby code and removes the tailing EOLs.
Specifies the safe level in which eRuby script will run.
.Pp
.It Fl T Ar mode
-Specifies trim mode (default 0).
+Specifies trim mode (default 0).
.Ar mode
can be one of
.Bl -hang -offset indent
@@ -80,7 +80,7 @@ And leading whitespaces are removed if the erb directive starts with
.Pp
.It Fl U
can be one of
-Sets the defalut value for internal encodings
+Sets the default value for internal encodings
.Pf ( Li "Encoding.default_internal" ) to UTF-8.
.Pp
.It Fl d
@@ -91,15 +91,15 @@ will be set to true.
.Pp
.It Fl h
.It Fl -help
-Prints a summry of the options.
+Prints a summary of the options.
.Pp
.It Fl n
Used with
.Fl x .
-Prepends the line number to each line in the output.
+Prepends the line number to each line in the output.
.Pp
.It Fl v
-Enables verbose mode.
+Enables verbose mode.
.Li "$VERBOSE"
will be set to true.
.Pp
@@ -119,7 +119,7 @@ Here is an eRuby script
<library><%= Prime.each(10).to_a.join(", ") %></library>
</erb-example>
.Ed
-
+.Pp
Command
.Dl "% erb -T - example.erb"
prints
@@ -134,17 +134,16 @@ prints
.Pp
.Sh SEE ALSO
.Xr ruby 1 .
-
-And see
+.Pp
+And see
.Xr ri 1
-documentation for
+documentation for
.Li "ERB"
class.
-.El
.Pp
.Sh REPORTING BUGS
.Bl -bullet
-.Li Security vulnerabilities should be reported via an email to
+.Li Security vulnerabilities should be reported via an email to
.Aq security@ruby-lang.org Ns
.Li .
Reported problems will be published after fixed.
@@ -152,7 +151,7 @@ Reported problems will be published after fixed.
.Li And you can report other bugs and feature requests via the
Ruby Issue Tracking System (http://redmine.ruby-lang.org).
Do not report security vulnerabilities
-via the system because it publishes the vulnerabilities immedately.
+via the system because it publishes the vulnerabilities immediately.
.El
.Sh AUTHORS
Written by Masatoshi SEKI.
diff --git a/man/irb.1 b/man/irb.1
index 20e97e32f7..451b2d8d9b 100644
--- a/man/irb.1
+++ b/man/irb.1
@@ -40,8 +40,8 @@ Prints the version of
.It Fl -encoding Ar external Ns Op : Ns Ar internal
Same as `ruby -E' .
Specifies the default value(s) for external encodings and internal encoding. Values should be separated with colon (:).
-
-You can ommit the one for internal encodings, then the value
+.Pp
+You can omit the one for internal encodings, then the value
.Pf ( Li "Encoding.default_internal" ) will be nil.
.Pp
.It Fl I Ar path
@@ -52,7 +52,7 @@ directory
.Pp
.It Fl U
Same as `ruby -U' .
-Sets the defalut value for internal encodings
+Sets the default value for internal encodings
.Pf ( Li "Encoding.default_internal" ) to UTF-8.
.Pp
.It Fl d
@@ -62,7 +62,7 @@ Sets
to true.
.Pp
.It Fl f
-Suppresses read of
+Suppresses read of
.Pa ~/.irbrc .
.Pp
.It Fl h
@@ -93,9 +93,9 @@ Doesn't use Readline extension module.
Switch prompt mode. Pre-defined prompt modes are
`default', `simple', `xmp' and `inf-ruby'.
.Pp
-.It Fl -inf-ruby-mode
-Uses prompt appropriate for inf-ruby-mode on emacs.
-Suppresses --readline.
+.It Fl -inf-ruby-mode
+Uses prompt appropriate for inf-ruby-mode on emacs.
+Suppresses --readline.
.Pp
.It Fl -simple-prompt
Makes prompts simple.
@@ -111,7 +111,7 @@ Displays backtrace top
.Ar n
and tail
.Ar n Ns .
-The default value is 16.
+The default value is 16.
.Pp
.It Fl -irb_debug Ar n
Sets internal debug level to n (not for popular use)
@@ -152,14 +152,14 @@ Personal irb initialization.
.Dl :ok
.Dl => :ok
.Dl irb(main):009:0> Ic quit
-.Dl %
+.Dl %
.Pp
.Sh SEE ALSO
.Xr ruby 1 .
.Pp
.Sh REPORTING BUGS
.Bl -bullet
-.Li Security vulnerabilities should be reported via an email to
+.Li Security vulnerabilities should be reported via an email to
.Aq security@ruby-lang.org Ns
.Li .
Reported problems will be published after fixed.
@@ -167,7 +167,7 @@ Reported problems will be published after fixed.
.Li And you can report other bugs and feature requests via the
Ruby Issue Tracking System (http://redmine.ruby-lang.org).
Do not report security vulnerabilities
-via the system because it publishes the vulnerabilities immedately.
+via the system because it publishes the vulnerabilities immediately.
.El
.Sh AUTHORS
Written by Keiju ISHITSUKA.
diff --git a/man/rake.1 b/man/rake.1
index 3872026bf1..9f5126b839 100644
--- a/man/rake.1
+++ b/man/rake.1
@@ -22,26 +22,26 @@
.Ar target ...
.Sh DESCRIPTION
.Nm Rake
-is a simple
+is a simple
.Xr ruby 1
-build program with capabilities similar to the regular
+build program with capabilities similar to the regular
.Xr make 1
command.
-
+.Pp
.Nm Rake
has the following features:
.Bl -bullet
.It
-Rakefiles (Rake's version of Makefiles) are completely defined in standard Ruby syntax.
+Rakefiles (Rake's version of Makefiles) are completely defined in standard Ruby syntax.
No XML files to edit. No quirky Makefile syntax to worry about (is that a tab or a space?).
.It
Users can specify tasks with prerequisites.
.It
-Rake supports rule patterns to sythesize implicit tasks.
+Rake supports rule patterns to synthesize implicit tasks.
.It
Flexible FileLists that act like arrays but know about manipulating file names and paths.
.It
-A library of prepackaged tasks to make building rakefiles easier.
+A library of prepackaged tasks to make building rakefiles easier.
.El
.Pp
.Sh OPTIONS
@@ -56,7 +56,7 @@ Put Task and FileTask in the top level namespace
.Pp
.It Fl D Op Ar PATTERN
.It Fl -describe Op Ar PATTERN
-Describe the tasks (matching optional
+Describe the tasks (matching optional
.Ar PATTERN Ns
), then exit.
.Pp
@@ -71,7 +71,7 @@ Use standard project Rakefile search paths, ignore system wide rakefiles.
.Pp
.It Fl I Ar LIBDIR
.It Fl -libdir Ar LIBDIR
-Include
+Include
.Ar LIBDIR
in the search path for required modules.
.Pp
@@ -89,7 +89,7 @@ Display the tasks and dependencies, then exit.
.It Fl -rakelibdir Ar RAKELIBDIR
Auto-import any .rake files in
.Ar RAKELIBDIR .
-(default is
+(default is
.Pa rakelib
)
.Pp
@@ -113,7 +113,7 @@ Prints a summary of options.
.Pp
.It Fl g
.It Fl -system
-Using system wide (global) rakefiles (usually
+Using system wide (global) rakefiles (usually
.Pa ~/.rake/*.rake
).
.Pp
@@ -135,7 +135,7 @@ Require MODULE before executing rakefile.
.Pp
.It Fl s
.It Fl -silent
-Like
+Like
.Fl -quiet ,
but also suppresses the 'in directory' announcement.
.Pp
@@ -158,12 +158,12 @@ Trace the rules resolution.
.Pp
http://rake.rubyforge.org/
.Sh REPORTING BUGS
-Bugs, features requests and other issues can be logged at
+Bugs, features requests and other issues can be logged at
<\fBhttp://onestepback.org/redmine/projects/show/rake\fR>.
.Pp
You will need an account to before you can post issues. Register at <\fBhttp://onestepback.org/redmine/account/register\fR>.
Or you can send an email to the author.
.Sh AUTHOR
.Nm Rake
-is written by
+is written by
.An Jim Weirich Aq jim@weirichhouse.org
diff --git a/man/ri.1 b/man/ri.1
index f414adb559..ee3463a1a9 100644
--- a/man/ri.1
+++ b/man/ri.1
@@ -4,7 +4,7 @@
.Os UNIX
.Sh NAME
.Nm ri
-.Nd Ruby API reference front end
+.Nd Ruby API reference front end
.Sh SYNOPSIS
.Nm
.Op Fl Ti
@@ -12,19 +12,19 @@
.Op Fl f Ar format
.Op Fl -list-doc-dirs
.Op Fl -no-standard-docs
-.Op Fl - Ns Oo Cm no- Oc Ns Cm Bro Cm system Ns | Ns Cm site Ns | Ns Cm gems Ns | Ns Cm home Brc
+.Op Fl - Ns Oo Cm no- Oc Ns Bro Cm system Ns | Ns Cm site Ns | Ns Cm gems Ns | Ns Cm home Brc
.Op Fl - Ns Oo Cm no- Oc Ns Cm use-cache
.Op Fl -width Ns = Ns Ar width
.Op Ar target ...
.Sh DESCRIPTION
.Nm
-is a CUI front end for the Ruby API reference.
+is a CUI front end for the Ruby API reference.
You can search and read API reference for classes and methods with
.Nm .
-
+.Pp
.Nm
is a part of Ruby.
-
+.Pp
.Ar target
can be one of the following forms:
.Bl -diag -offset indent
@@ -39,10 +39,10 @@ for both class and instance methods
.It method
for both class and instance methods
.El
-
+.Pp
All class names may be abbreviated to their minimum unambiguous form. If a name
is ambiguous, all valid options will be listed.
-
+.Pp
For example:
.Bd -literal -offset indent
ri Fil
@@ -50,7 +50,7 @@ ri File
ri File.new
ri zip
.Ed
-
+.Pp
Note that shell quoting may be required for method names containing
punctuation:
.Bd -literal -offset indent
@@ -61,7 +61,7 @@ ri compact\!
.Bl -tag -width "1234567890123" -compact
.Pp
.It Fl -version
-Prints the version of
+Prints the version of
.Nm .
.Pp
.It Fl T
@@ -84,7 +84,7 @@ pager or tell the pager to allow control characters.
.Pp
.It Fl i
.It Fl -interactive
-This makes
+This makes
.Nm
go into interactive mode.
.Pp
@@ -103,8 +103,8 @@ Do not include documentation from the Ruby standard library,
.Pa site_lib ,
installed gems, or
.Pa ~/.rdoc .
-
-Equivalent to specifying the options
+.Pp
+Equivalent to specifying the options
.Fl -no-system , Fl -no-site , Fl -no-gems ,
and
.Fl -no-home .
@@ -122,7 +122,7 @@ Include documentation from RubyGems. Defaults to true.
Include documentation stored in ~/.rdoc. Defaults to true.
.Pp
.It Fl - Ns Oo Cm no- Oc Ns Cm use-cache
-Whether or not to use
+Whether or not to use
.Nm Ns
.Ns 's cache. True by default.
.Pp
@@ -165,7 +165,7 @@ Searches user-wide documents here.
.Pp
.Sh REPORTING BUGS
.Bl -bullet
-.Li Security vulnerabilities should be reported via an email to
+.Li Security vulnerabilities should be reported via an email to
.Aq security@ruby-lang.org Ns
.Li .
Reported problems will be published after fixed.
@@ -173,7 +173,7 @@ Reported problems will be published after fixed.
.Li And you can report other bugs and feature requests via the
Ruby Issue Tracking System (http://redmine.ruby-lang.org).
Do not report security vulnerabilities
-via the system because it publishes the vulnerabilities immedately.
+via the system because it publishes the vulnerabilities immediately.
.El
.Sh AUTHORS
Written by Dave Thomas
diff --git a/man/ruby.1 b/man/ruby.1
index e2d0abdefd..0f6f199725 100644
--- a/man/ruby.1
+++ b/man/ruby.1
@@ -37,7 +37,7 @@ straight-forward, and extensible.
.Pp
If you want a language for easy object-oriented programming, or you
don't like the Perl ugliness, or you do like the concept of LISP, but
-don't like too much parentheses, Ruby may be the language of your
+don't like too many parentheses, Ruby might be your language of
choice.
.Sh FEATURES
Ruby's features are as follows:
@@ -53,7 +53,7 @@ time check.
.Pp
.It Sy "No declaration needed"
You can use variables in your Ruby programs without any declarations.
-Variable names denote their scope, local, global, instance, etc.
+Variable names denote their scope - global, class, instance, or local.
.Pp
.It Sy "Simple syntax"
Ruby has a simple syntax influenced slightly from Eiffel.
@@ -64,11 +64,11 @@ from anywhere are automatically collected by the garbage collector
built into the interpreter.
.Pp
.It Sy "Everything is an object"
-Ruby is the purely object-oriented language, and was so since its
+Ruby is a purely object-oriented language, and was so since its
creation. Even such basic data as integers are seen as objects.
.Pp
.It Sy "Class, inheritance, and methods"
-Of course, as an object-oriented language, Ruby has such basic
+Being an object-oriented language, Ruby naturally has basic
features like classes, inheritance, and methods.
.Pp
.It Sy "Singleton methods"
@@ -81,7 +81,7 @@ to.
.It Sy "Mix-in by modules"
Ruby intentionally does not have the multiple inheritance as it is a
source of confusion. Instead, Ruby has the ability to share
-implementations across the inheritance tree. This is often called
+implementations across the inheritance tree. This is often called a
.Sq Mix-in .
.Pp
.It Sy "Iterators"
@@ -90,20 +90,20 @@ Ruby has iterators for loop abstraction.
.It Sy "Closures"
In Ruby, you can objectify the procedure.
.Pp
-.It Sy "Text processing and regular expression"
+.It Sy "Text processing and regular expressions"
Ruby has a bunch of text processing features like in Perl.
.Pp
.It Sy "M17N, character set independent"
Ruby supports multilingualized programming. Easy to process texts
-written in many different natural languages and encoded in many
+written in many different natural languages and encoded in many
different character encodings, without dependence on Unicode.
.Pp
.It Sy "Bignums"
With built-in bignums, you can for example calculate factorial(400).
.Pp
.It Sy "Reflection and domain specific languages"
-Class is also an instance of Class class. Definition of classes and methods
-is just an expression as 1+1 is. So your programs can even write and modify programs.
+Class is also an instance of the Class class. Definition of classes and methods
+is an expression just as 1+1 is. So your programs can even write and modify programs.
Thus you can write your application in your own programming language on top of Ruby.
.Pp
.It Sy "Exception handling"
@@ -122,7 +122,7 @@ on-the-fly.
.It Sy "Rich libraries"
Libraries called "builtin libraries" and "standard libraries" are bundled with Ruby.
And you can obtain more libraries via the package management system called `RubyGems'.
-
+.Pp
Moreover there are thousands of Ruby projects in Rubyforge
.Pf ( "http://www.rubyforge.org" ) and RAA
.Pf ( "http://raa.ruby-lang.org" ) Ns .
@@ -160,8 +160,8 @@ Causes Ruby to switch to the directory.
.It Fl E Ar external Ns Op : Ns Ar internal
.It Fl -encoding Ar external Ns Op : Ns Ar internal
Specifies the default value(s) for external encodings and internal encoding. Values should be separated with colon (:).
-
-You can ommit the one for internal encodings, then the value
+.Pp
+You can omit the one for internal encodings, then the value
.Pf ( Li "Encoding.default_internal" ) will be nil.
.Pp
.It Fl F Ar pattern
@@ -177,7 +177,7 @@ will be added to the load-path variable
Specifies KANJI (Japanese) encoding. The default value for script encodings
.Pf ( Li "__ENCODING__" ) and external encodings ( Li "Encoding.default_external" ) will be the specified one.
.Ar kcode
-can be one of
+can be one of
.Bl -hang -offset indent
.It Sy e
EUC-JP
@@ -205,15 +205,15 @@ on machines that don't support it, in the following manner:
exec /usr/local/bin/ruby -S $0 $*
.Ed
.Pp
-.It Fl T Ns Op Ar level
+.It Fl T Ns Op Ar level=1
Turns on taint checks at the specified level (default 1).
.Pp
.It Fl U
-Sets the defalut value for internal encodings
+Sets the default value for internal encodings
.Pf ( Li "Encoding.default_internal" ) to UTF-8.
.Pp
-.It Fl W Ns Op Ar level
-Turns on verbose mode at the specified level, without printing version
+.It Fl W Ns Op Ar level=2
+Turns on verbose mode at the specified level, without printing version
message at the beginning. The level can be;
.Bl -hang -offset indent
.It Sy 0
@@ -259,7 +259,7 @@ will be set to true.
.Pp
.It Fl e Ar command
Specifies script from command-line while telling Ruby not to search
-the rest of arguments for a script file name.
+the rest of the arguments for a script file name.
.Pp
.It Fl h
.It Fl -help
@@ -367,7 +367,7 @@ must be specified with either
.Li EOF ,
.Li "^D" ( Li "control-D" ) ,
.Li "^Z" ( Li "control-Z" ) ,
-or reserved word
+or the reserved word
.Li __END__ .
If the directory name is specified, Ruby will switch to that directory
before executing script.
@@ -375,7 +375,7 @@ before executing script.
.It Fl y
.It Fl -yydebug
DO NOT USE.
-
+.Pp
Turns on compiler debug mode. Ruby will print a bunch of internal
state messages during compiling scripts. You don't have to specify
this switch, unless you are going to debug the Ruby interpreter.
@@ -406,14 +406,14 @@ Disables (or enables) all features.
.El
.Pp
.It Fl -dump Ns = Ns Ar target
-DO NOT USE.
-
+DO NOT USE.
+.Pp
Prints the specified target.
.Ar target
can be one of;
.Bl -hang -offset indent
.It Sy insns
-disassembed instructions
+disassembled instructions
.Pp
.El
.Pp
@@ -474,7 +474,7 @@ environment variable on calling Kernel#system.
This variable is obsolete.
.El
.Pp
-And Ruby depends on some RubyGems related environment variables unless disabled RubyGems.
+And Ruby depends on some RubyGems related environment variables unless RubyGems is disabled.
See the help of
.Xr gem 1
as bellow.
@@ -494,18 +494,18 @@ Ruby Application Archive.
.Pp
.Sh REPORTING BUGS
.Bl -bullet
-.Li Security vulnerabilities should be reported via an email to
+.Li Security vulnerabilities should be reported via an email to
.Aq security@ruby-lang.org Ns
.Li .
-Reported problems will be published after fixed.
+Reported problems will be published after they've been fixed.
.Pp
.Li And you can report other bugs and feature requests via the
Ruby Issue Tracking System (http://redmine.ruby-lang.org).
Do not report security vulnerabilities
-via the system because it publishes the vulnerabilities immedately.
+via the system because it publishes the vulnerabilities immediately.
.El
.Sh AUTHORS
Ruby is designed and implemented by
.An Yukihiro Matsumoto Aq matz@netlab.jp .
-
+.Pp
See <\fBhttp://redmine.ruby-lang.org/wiki/ruby/Contributors\fR> for contributors to Ruby.
diff --git a/marshal.c b/marshal.c
index 0f9b4a89e8..9a43cdb4d1 100644
--- a/marshal.c
+++ b/marshal.c
@@ -14,6 +14,7 @@
#include "ruby/st.h"
#include "ruby/util.h"
#include "ruby/encoding.h"
+#include "internal.h"
#include <math.h>
#ifdef HAVE_FLOAT_H
@@ -25,12 +26,12 @@
#define BITSPERSHORT (2*CHAR_BIT)
#define SHORTMASK ((1<<BITSPERSHORT)-1)
-#define SHORTDN(x) RSHIFT(x,BITSPERSHORT)
+#define SHORTDN(x) RSHIFT((x),BITSPERSHORT)
#if SIZEOF_SHORT == SIZEOF_BDIGITS
#define SHORTLEN(x) (x)
#else
-static int
+static long
shortlen(long len, BDIGIT *ds)
{
BDIGIT num;
@@ -82,8 +83,6 @@ static ID s_dump, s_load, s_mdump, s_mload;
static ID s_dump_data, s_load_data, s_alloc, s_call;
static ID s_getbyte, s_read, s_write, s_binmode;
-ID rb_id_encoding(void);
-
typedef struct {
VALUE newclass;
VALUE oldclass;
@@ -131,16 +130,16 @@ rb_marshal_define_compat(VALUE newclass, VALUE oldclass, VALUE (*dumper)(VALUE),
st_insert(compat_allocator_tbl, (st_data_t)allocator, (st_data_t)compat);
}
+#define MARSHAL_INFECTION (FL_TAINT|FL_UNTRUSTED)
+typedef char ruby_check_marshal_viral_flags[MARSHAL_INFECTION == (int)MARSHAL_INFECTION ? 1 : -1];
+
struct dump_arg {
- VALUE obj;
VALUE str, dest;
st_table *symbols;
st_table *data;
- int taint;
- int untrust;
st_table *compat_tbl;
- VALUE wrapper;
st_table *encodings;
+ int infection;
};
struct dump_call_arg {
@@ -152,49 +151,82 @@ struct dump_call_arg {
static void
check_dump_arg(struct dump_arg *arg, ID sym)
{
- if (!DATA_PTR(arg->wrapper)) {
+ if (!arg->symbols) {
rb_raise(rb_eRuntimeError, "Marshal.dump reentered at %s",
rb_id2name(sym));
}
}
+static void clear_dump_arg(struct dump_arg *arg);
+
static void
mark_dump_arg(void *ptr)
{
struct dump_arg *p = ptr;
- if (!ptr)
+ if (!p->symbols)
return;
rb_mark_set(p->data);
rb_mark_hash(p->compat_tbl);
+ rb_gc_mark(p->str);
}
-static VALUE
-class2path(VALUE klass)
+static void
+free_dump_arg(void *ptr)
+{
+ clear_dump_arg(ptr);
+ xfree(ptr);
+}
+
+static size_t
+memsize_dump_arg(const void *ptr)
+{
+ return ptr ? sizeof(struct dump_arg) : 0;
+}
+
+static const rb_data_type_t dump_arg_data = {
+ "dump_arg",
+ {mark_dump_arg, free_dump_arg, memsize_dump_arg,},
+};
+
+static const char *
+must_not_be_anonymous(const char *type, VALUE path)
{
- VALUE path = rb_class_path(klass);
char *n = RSTRING_PTR(path);
+ if (!rb_enc_asciicompat(rb_enc_get(path))) {
+ /* cannot occur? */
+ rb_raise(rb_eTypeError, "can't dump non-ascii %s name", type);
+ }
if (n[0] == '#') {
- rb_raise(rb_eTypeError, "can't dump anonymous %s %s",
- (TYPE(klass) == T_CLASS ? "class" : "module"),
- n);
+ rb_raise(rb_eTypeError, "can't dump anonymous %s %.*s", type,
+ (int)RSTRING_LEN(path), n);
}
- if (rb_path2class(n) != rb_class_real(klass)) {
+ return n;
+}
+
+static VALUE
+class2path(VALUE klass)
+{
+ VALUE path = rb_class_path(klass);
+ const char *n;
+
+ n = must_not_be_anonymous((TYPE(klass) == T_CLASS ? "class" : "module"), path);
+ if (rb_path_to_class(path) != rb_class_real(klass)) {
rb_raise(rb_eTypeError, "%s can't be referred to", n);
}
return path;
}
static void w_long(long, struct dump_arg*);
+static void w_encoding(VALUE obj, long num, struct dump_call_arg *arg);
static void
-w_nbyte(const char *s, int n, struct dump_arg *arg)
+w_nbyte(const char *s, long n, struct dump_arg *arg)
{
VALUE buf = arg->str;
rb_str_buf_cat(buf, s, n);
+ RBASIC(buf)->flags |= arg->infection;
if (arg->dest && RSTRING_LEN(buf) >= BUFSIZ) {
- if (arg->taint) OBJ_TAINT(buf);
- if (arg->untrust) OBJ_UNTRUST(buf);
rb_io_write(arg->dest, buf);
rb_str_resize(buf, 0);
}
@@ -207,12 +239,14 @@ w_byte(char c, struct dump_arg *arg)
}
static void
-w_bytes(const char *s, int n, struct dump_arg *arg)
+w_bytes(const char *s, long n, struct dump_arg *arg)
{
w_long(n, arg);
w_nbyte(s, n, arg);
}
+#define w_cstr(s, arg) w_bytes((s), strlen(s), (arg))
+
static void
w_short(int x, struct dump_arg *arg)
{
@@ -245,7 +279,7 @@ w_long(long x, struct dump_arg *arg)
w_byte((char)((x - 5)&0xff), arg);
return;
}
- for (i=1;i<sizeof(long)+1;i++) {
+ for (i=1;i<(int)sizeof(long)+1;i++) {
buf[i] = (char)(x & 0xff);
x = RSHIFT(x,8);
if (x == 0) {
@@ -276,38 +310,10 @@ w_long(long x, struct dump_arg *arg)
#define MANT_BITS 8
#endif
-static int
-save_mantissa(double d, char *buf)
-{
- int e, i = 0;
- unsigned long m;
- double n;
-
- d = modf(ldexp(frexp(fabs(d), &e), DECIMAL_MANT), &d);
- if (d > 0) {
- buf[i++] = 0;
- do {
- d = modf(ldexp(d, MANT_BITS), &n);
- m = (unsigned long)n;
-#if MANT_BITS > 24
- buf[i++] = (char)(m >> 24);
-#endif
-#if MANT_BITS > 16
- buf[i++] = (char)(m >> 16);
-#endif
-#if MANT_BITS > 8
- buf[i++] = (char)(m >> 8);
-#endif
- buf[i++] = (char)m;
- } while (d > 0);
- while (!buf[i - 1]) --i;
- }
- return i;
-}
-
static double
-load_mantissa(double d, const char *buf, int len)
+load_mantissa(double d, const char *buf, long len)
{
+ if (!len) return d;
if (--len > 0 && !*buf++) { /* binary mantissa mark */
int e, s = d < 0, dig = 0;
unsigned long m;
@@ -337,7 +343,6 @@ load_mantissa(double d, const char *buf, int len)
}
#else
#define load_mantissa(d, buf, len) (d)
-#define save_mantissa(d, buf) 0
#endif
#ifdef DBL_DIG
@@ -349,59 +354,97 @@ load_mantissa(double d, const char *buf, int len)
static void
w_float(double d, struct dump_arg *arg)
{
+ char *ruby_dtoa(double d_, int mode, int ndigits, int *decpt, int *sign, char **rve);
char buf[FLOAT_DIG + (DECIMAL_MANT + 7) / 8 + 10];
if (isinf(d)) {
- if (d < 0) strcpy(buf, "-inf");
- else strcpy(buf, "inf");
+ if (d < 0) w_cstr("-inf", arg);
+ else w_cstr("inf", arg);
}
else if (isnan(d)) {
- strcpy(buf, "nan");
+ w_cstr("nan", arg);
}
else if (d == 0.0) {
- if (1.0/d < 0) strcpy(buf, "-0");
- else strcpy(buf, "0");
+ if (1.0/d < 0) w_cstr("-0", arg);
+ else w_cstr("0", arg);
}
else {
- int len;
-
- /* xxx: should not use system's sprintf(3) */
- snprintf(buf, sizeof(buf), "%.*g", FLOAT_DIG, d);
- len = strlen(buf);
- w_bytes(buf, len + save_mantissa(d, buf + len), arg);
- return;
+ int decpt, sign, digs, len = 0;
+ char *e, *p = ruby_dtoa(d, 0, 0, &decpt, &sign, &e);
+ if (sign) buf[len++] = '-';
+ digs = (int)(e - p);
+ if (decpt < -3 || decpt > digs) {
+ buf[len++] = p[0];
+ if (--digs > 0) buf[len++] = '.';
+ memcpy(buf + len, p + 1, digs);
+ len += digs;
+ len += snprintf(buf + len, sizeof(buf) - len, "e%d", decpt - 1);
+ }
+ else if (decpt > 0) {
+ memcpy(buf + len, p, decpt);
+ len += decpt;
+ if ((digs -= decpt) > 0) {
+ buf[len++] = '.';
+ memcpy(buf + len, p + decpt, digs);
+ len += digs;
+ }
+ }
+ else {
+ buf[len++] = '0';
+ buf[len++] = '.';
+ if (decpt) {
+ memset(buf + len, '0', -decpt);
+ len -= decpt;
+ }
+ memcpy(buf + len, p, digs);
+ len += digs;
+ }
+ xfree(p);
+ w_bytes(buf, len, arg);
}
- w_bytes(buf, strlen(buf), arg);
}
static void
w_symbol(ID id, struct dump_arg *arg)
{
- const char *sym;
+ VALUE sym;
st_data_t num;
+ int encidx = -1;
if (st_lookup(arg->symbols, id, &num)) {
w_byte(TYPE_SYMLINK, arg);
w_long((long)num, arg);
}
else {
- sym = rb_id2name(id);
+ sym = rb_id2str(id);
if (!sym) {
- rb_raise(rb_eTypeError, "can't dump anonymous ID %ld", id);
+ rb_raise(rb_eTypeError, "can't dump anonymous ID %"PRIdVALUE, id);
+ }
+ encidx = rb_enc_get_index(sym);
+ if (encidx == rb_usascii_encindex() ||
+ rb_enc_str_coderange(sym) == ENC_CODERANGE_7BIT) {
+ encidx = -1;
+ }
+ else {
+ w_byte(TYPE_IVAR, arg);
}
w_byte(TYPE_SYMBOL, arg);
- w_bytes(sym, strlen(sym), arg);
+ w_bytes(RSTRING_PTR(sym), RSTRING_LEN(sym), arg);
st_add_direct(arg->symbols, id, arg->symbols->num_entries);
+ if (encidx != -1) {
+ struct dump_call_arg c_arg;
+ c_arg.limit = 1;
+ c_arg.arg = arg;
+ w_encoding(sym, 0, &c_arg);
+ }
}
}
static void
-w_unique(const char *s, struct dump_arg *arg)
+w_unique(VALUE s, struct dump_arg *arg)
{
- if (s[0] == '#') {
- rb_raise(rb_eTypeError, "can't dump anonymous class %s", s);
- }
- w_symbol(rb_intern(s), arg);
+ must_not_be_anonymous("class", s);
+ w_symbol(rb_intern_str(s), arg);
}
static void w_object(VALUE,struct dump_arg*,int);
@@ -417,8 +460,6 @@ hash_each(VALUE key, VALUE value, struct dump_call_arg *arg)
static void
w_extended(VALUE klass, struct dump_arg *arg, int check)
{
- const char *path;
-
if (check && FL_TEST(klass, FL_SINGLETON)) {
if (RCLASS_M_TBL(klass)->num_entries ||
(RCLASS_IV_TBL(klass) && RCLASS_IV_TBL(klass)->num_entries > 1)) {
@@ -427,7 +468,7 @@ w_extended(VALUE klass, struct dump_arg *arg, int check)
klass = RCLASS_SUPER(klass);
}
while (BUILTIN_TYPE(klass) == T_ICLASS) {
- path = rb_class2name(RBASIC(klass)->klass);
+ VALUE path = rb_class_name(RBASIC(klass)->klass);
w_byte(TYPE_EXTENDED, arg);
w_unique(path, arg);
klass = RCLASS_SUPER(klass);
@@ -437,8 +478,7 @@ w_extended(VALUE klass, struct dump_arg *arg, int check)
static void
w_class(char type, VALUE obj, struct dump_arg *arg, int check)
{
- volatile VALUE p;
- char *path;
+ VALUE path;
st_data_t real_obj;
VALUE klass;
@@ -448,8 +488,7 @@ w_class(char type, VALUE obj, struct dump_arg *arg, int check)
klass = CLASS_OF(obj);
w_extended(klass, arg, check);
w_byte(type, arg);
- p = class2path(rb_class_real(klass));
- path = RSTRING_PTR(p);
+ path = class2path(rb_class_real(klass));
w_unique(path, arg);
}
@@ -458,11 +497,11 @@ w_uclass(VALUE obj, VALUE super, struct dump_arg *arg)
{
VALUE klass = CLASS_OF(obj);
- w_extended(klass, arg, Qtrue);
+ w_extended(klass, arg, TRUE);
klass = rb_class_real(klass);
if (klass != super) {
w_byte(TYPE_UCLASS, arg);
- w_unique(RSTRING_PTR(class2path(klass)), arg);
+ w_unique(class2path(klass), arg);
}
}
@@ -470,6 +509,7 @@ static int
w_obj_each(ID id, VALUE value, struct dump_call_arg *arg)
{
if (id == rb_id_encoding()) return ST_CONTINUE;
+ if (id == rb_intern("E")) return ST_CONTINUE;
w_symbol(id, arg->arg);
w_object(value, arg->arg, arg->limit);
return ST_CONTINUE;
@@ -487,6 +527,19 @@ w_encoding(VALUE obj, long num, struct dump_call_arg *arg)
return;
}
w_long(num + 1, arg->arg);
+
+ /* special treatment for US-ASCII and UTF-8 */
+ if (encidx == rb_usascii_encindex()) {
+ w_symbol(rb_intern("E"), arg->arg);
+ w_object(Qfalse, arg->arg, arg->limit + 1);
+ return;
+ }
+ else if (encidx == rb_utf8_encindex()) {
+ w_symbol(rb_intern("E"), arg->arg);
+ w_object(Qtrue, arg->arg, arg->limit + 1);
+ return;
+ }
+
w_symbol(rb_id_encoding(), arg->arg);
do {
if (!arg->arg->encodings)
@@ -496,7 +549,7 @@ w_encoding(VALUE obj, long num, struct dump_call_arg *arg)
name = (st_data_t)rb_str_new2(rb_enc_name(enc));
st_insert(arg->arg->encodings, (st_data_t)rb_enc_name(enc), name);
} while (0);
- w_object(name, arg->arg, arg->limit);
+ w_object(name, arg->arg, arg->limit + 1);
}
static void
@@ -536,7 +589,7 @@ w_object(VALUE obj, struct dump_arg *arg, int limit)
st_table *ivtbl = 0;
st_data_t num;
int hasiv = 0;
-#define has_ivars(obj, ivtbl) ((ivtbl = rb_generic_ivar_table(obj)) != 0 || \
+#define has_ivars(obj, ivtbl) (((ivtbl) = rb_generic_ivar_table(obj)) != 0 || \
(!SPECIAL_CONST_P(obj) && !ENCODING_IS_ASCII8BIT(obj)))
if (limit == 0) {
@@ -553,9 +606,6 @@ w_object(VALUE obj, struct dump_arg *arg, int limit)
return;
}
- if ((hasiv = has_ivars(obj, ivtbl)) != 0) {
- w_byte(TYPE_IVAR, arg);
- }
if (obj == Qnil) {
w_byte(TYPE_NIL, arg);
}
@@ -583,8 +633,7 @@ w_object(VALUE obj, struct dump_arg *arg, int limit)
w_symbol(SYM2ID(obj), arg);
}
else {
- if (OBJ_TAINTED(obj)) arg->taint = Qtrue;
- if (OBJ_UNTRUSTED(obj)) arg->untrust = Qtrue;
+ arg->infection |= (int)FL_TEST(obj, MARSHAL_INFECTION);
if (rb_respond_to(obj, s_mdump)) {
volatile VALUE v;
@@ -593,9 +642,11 @@ w_object(VALUE obj, struct dump_arg *arg, int limit)
v = rb_funcall(obj, s_mdump, 0, 0);
check_dump_arg(arg, s_mdump);
- w_class(TYPE_USRMARSHAL, obj, arg, Qfalse);
+ hasiv = has_ivars(obj, ivtbl);
+ if (hasiv) w_byte(TYPE_IVAR, arg);
+ w_class(TYPE_USRMARSHAL, obj, arg, FALSE);
w_object(v, arg, limit);
- if (hasiv) w_ivar(obj, 0, &c_arg);
+ if (hasiv) w_ivar(obj, ivtbl, &c_arg);
return;
}
if (rb_respond_to(obj, s_dump)) {
@@ -608,10 +659,12 @@ w_object(VALUE obj, struct dump_arg *arg, int limit)
if (TYPE(v) != T_STRING) {
rb_raise(rb_eTypeError, "_dump() must return string");
}
+ hasiv = has_ivars(obj, ivtbl);
+ if (hasiv) w_byte(TYPE_IVAR, arg);
if ((hasiv2 = has_ivars(v, ivtbl2)) != 0 && !hasiv) {
w_byte(TYPE_IVAR, arg);
}
- w_class(TYPE_USERDEF, obj, arg, Qfalse);
+ w_class(TYPE_USERDEF, obj, arg, FALSE);
w_bytes(RSTRING_PTR(v), RSTRING_LEN(v), arg);
if (hasiv2) {
w_ivar(v, ivtbl2, &c_arg);
@@ -625,6 +678,7 @@ w_object(VALUE obj, struct dump_arg *arg, int limit)
st_add_direct(arg->data, obj, arg->data->num_entries);
+ hasiv = has_ivars(obj, ivtbl);
{
st_data_t compat_data;
rb_alloc_func_t allocator = rb_get_alloc_func(RBASIC(obj)->klass);
@@ -635,8 +689,10 @@ w_object(VALUE obj, struct dump_arg *arg, int limit)
VALUE real_obj = obj;
obj = compat->dumper(real_obj);
st_insert(arg->compat_tbl, (st_data_t)obj, (st_data_t)real_obj);
+ if (obj != real_obj && !ivtbl) hasiv = 0;
}
}
+ if (hasiv) w_byte(TYPE_IVAR, arg);
switch (BUILTIN_TYPE(obj)) {
case T_CLASS:
@@ -724,7 +780,7 @@ w_object(VALUE obj, struct dump_arg *arg, int limit)
case T_HASH:
w_uclass(obj, rb_cHash, arg);
- if (NIL_P(RHASH(obj)->ifnone)) {
+ if (NIL_P(RHASH_IFNONE(obj))) {
w_byte(TYPE_HASH, arg);
}
else if (FL_TEST(obj, FL_USER2)) {
@@ -736,13 +792,13 @@ w_object(VALUE obj, struct dump_arg *arg, int limit)
}
w_long(RHASH_SIZE(obj), arg);
rb_hash_foreach(obj, hash_each, (st_data_t)&c_arg);
- if (!NIL_P(RHASH(obj)->ifnone)) {
- w_object(RHASH(obj)->ifnone, arg, limit);
+ if (!NIL_P(RHASH_IFNONE(obj))) {
+ w_object(RHASH_IFNONE(obj), arg, limit);
}
break;
case T_STRUCT:
- w_class(TYPE_STRUCT, obj, arg, Qtrue);
+ w_class(TYPE_STRUCT, obj, arg, TRUE);
{
long len = RSTRUCT_LEN(obj);
VALUE mem;
@@ -758,7 +814,7 @@ w_object(VALUE obj, struct dump_arg *arg, int limit)
break;
case T_OBJECT:
- w_class(TYPE_OBJECT, obj, arg, Qtrue);
+ w_class(TYPE_OBJECT, obj, arg, TRUE);
w_objivar(obj, &c_arg);
break;
@@ -768,12 +824,12 @@ w_object(VALUE obj, struct dump_arg *arg, int limit)
if (!rb_respond_to(obj, s_dump_data)) {
rb_raise(rb_eTypeError,
- "no marshal_dump is defined for class %s",
+ "no _dump_data is defined for class %s",
rb_obj_classname(obj));
}
v = rb_funcall(obj, s_dump_data, 0);
check_dump_arg(arg, s_dump_data);
- w_class(TYPE_DATA, obj, arg, Qtrue);
+ w_class(TYPE_DATA, obj, arg, TRUE);
w_object(v, arg, limit);
}
break;
@@ -789,41 +845,27 @@ w_object(VALUE obj, struct dump_arg *arg, int limit)
}
}
-static VALUE
-dump(struct dump_call_arg *arg)
-{
- w_object(arg->obj, arg->arg, arg->limit);
- if (arg->arg->dest) {
- rb_io_write(arg->arg->dest, arg->arg->str);
- rb_str_resize(arg->arg->str, 0);
- }
- return 0;
-}
-
-static VALUE
-dump_ensure(struct dump_arg *arg)
+static void
+clear_dump_arg(struct dump_arg *arg)
{
- if (!DATA_PTR(arg->wrapper)) return 0;
+ if (!arg->symbols) return;
st_free_table(arg->symbols);
+ arg->symbols = 0;
st_free_table(arg->data);
+ arg->data = 0;
st_free_table(arg->compat_tbl);
- if (arg->encodings) st_free_table(arg->encodings);
- DATA_PTR(arg->wrapper) = 0;
- arg->wrapper = 0;
- if (arg->taint) {
- OBJ_TAINT(arg->str);
- }
- if (arg->untrust) {
- OBJ_UNTRUST(arg->str);
+ arg->compat_tbl = 0;
+ if (arg->encodings) {
+ st_free_table(arg->encodings);
+ arg->encodings = 0;
}
- return 0;
}
/*
* call-seq:
- * dump( obj [, anIO] , limit=--1 ) => anIO
+ * dump( obj [, anIO] , limit=-1 ) -> anIO
*
- * Serializes obj and all descendent objects. If anIO is
+ * Serializes obj and all descendant objects. If anIO is
* specified, the serialized data will be written to it, otherwise the
* data will be returned as a String. If limit is specified, the
* traversal of subobjects will be limited to that depth. If limit is
@@ -833,7 +875,7 @@ dump_ensure(struct dump_arg *arg)
* def initialize(str)
* @str = str
* end
- * def sayHello
+ * def say_hello
* @str
* end
* end
@@ -843,15 +885,23 @@ dump_ensure(struct dump_arg *arg)
* o = Klass.new("hello\n")
* data = Marshal.dump(o)
* obj = Marshal.load(data)
- * obj.sayHello #=> "hello\n"
+ * obj.say_hello #=> "hello\n"
+ *
+ * Marshal can't dump following objects:
+ * * anonymous Class/Module.
+ * * objects which related to its system (ex: Dir, File::Stat, IO, File, Socket
+ * and so on)
+ * * an instance of MatchData, Data, Method, UnboundMethod, Proc, Thread,
+ * ThreadGroup, Continuation
+ * * objects which defines singleton methods
*/
static VALUE
marshal_dump(int argc, VALUE *argv)
{
VALUE obj, port, a1, a2;
int limit = -1;
- struct dump_arg arg;
- struct dump_call_arg c_arg;
+ struct dump_arg *arg;
+ volatile VALUE wrapper;
port = Qnil;
rb_scan_args(argc, argv, "12", &obj, &a1, &a2);
@@ -865,40 +915,39 @@ marshal_dump(int argc, VALUE *argv)
else if (NIL_P(a1)) goto type_error;
else port = a1;
}
- arg.dest = 0;
- arg.symbols = st_init_numtable();
- arg.data = st_init_numtable();
- arg.taint = Qfalse;
- arg.untrust = Qfalse;
- arg.compat_tbl = st_init_numtable();
- arg.encodings = 0;
- arg.str = rb_str_buf_new(0);
- RBASIC(arg.str)->klass = 0;
- arg.wrapper = Data_Wrap_Struct(rb_cData, mark_dump_arg, 0, &arg);
+ wrapper = TypedData_Make_Struct(rb_cData, struct dump_arg, &dump_arg_data, arg);
+ arg->dest = 0;
+ arg->symbols = st_init_numtable();
+ arg->data = st_init_numtable();
+ arg->infection = 0;
+ arg->compat_tbl = st_init_numtable();
+ arg->encodings = 0;
+ arg->str = rb_str_buf_new(0);
if (!NIL_P(port)) {
if (!rb_respond_to(port, s_write)) {
type_error:
rb_raise(rb_eTypeError, "instance of IO needed");
}
- arg.dest = port;
+ arg->dest = port;
if (rb_respond_to(port, s_binmode)) {
rb_funcall2(port, s_binmode, 0, 0);
- check_dump_arg(&arg, s_binmode);
+ check_dump_arg(arg, s_binmode);
}
}
else {
- port = arg.str;
+ port = arg->str;
}
- c_arg.obj = obj;
- c_arg.arg = &arg;
- c_arg.limit = limit;
-
- w_byte(MARSHAL_MAJOR, &arg);
- w_byte(MARSHAL_MINOR, &arg);
+ w_byte(MARSHAL_MAJOR, arg);
+ w_byte(MARSHAL_MINOR, arg);
- rb_ensure(dump, (VALUE)&c_arg, dump_ensure, (VALUE)&arg);
- RBASIC(arg.str)->klass = rb_cString;
+ w_object(obj, arg, limit);
+ if (arg->dest) {
+ rb_io_write(arg->dest, arg->str);
+ rb_str_resize(arg->str, 0);
+ }
+ clear_dump_arg(arg);
+ RB_GC_GUARD(wrapper);
return port;
}
@@ -909,34 +958,63 @@ struct load_arg {
st_table *symbols;
st_table *data;
VALUE proc;
- int taint;
- int untrust;
st_table *compat_tbl;
- VALUE wrapper;
+ int infection;
};
static void
check_load_arg(struct load_arg *arg, ID sym)
{
- if (!DATA_PTR(arg->wrapper)) {
+ if (!arg->symbols) {
rb_raise(rb_eRuntimeError, "Marshal.load reentered at %s",
rb_id2name(sym));
}
}
+static void clear_load_arg(struct load_arg *arg);
+
static void
mark_load_arg(void *ptr)
{
struct load_arg *p = ptr;
- if (!ptr)
+ if (!p->symbols)
return;
rb_mark_tbl(p->data);
rb_mark_hash(p->compat_tbl);
}
-static VALUE r_entry(VALUE v, struct load_arg *arg);
+static void
+free_load_arg(void *ptr)
+{
+ clear_load_arg(ptr);
+ xfree(ptr);
+}
+
+static size_t
+memsize_load_arg(const void *ptr)
+{
+ return ptr ? sizeof(struct load_arg) : 0;
+}
+
+static const rb_data_type_t load_arg_data = {
+ "load_arg",
+ {mark_load_arg, free_load_arg, memsize_load_arg,},
+};
+
+#define r_entry(v, arg) r_entry0((v), (arg)->data->num_entries, (arg))
+static VALUE r_entry0(VALUE v, st_index_t num, struct load_arg *arg);
static VALUE r_object(struct load_arg *arg);
-static VALUE path2class(const char *path);
+static ID r_symbol(struct load_arg *arg);
+static VALUE path2class(VALUE path);
+
+static st_index_t
+r_prepare(struct load_arg *arg)
+{
+ st_index_t idx = arg->data->num_entries;
+
+ st_insert(arg->data, (st_data_t)idx, (st_data_t)Qundef);
+ return idx;
+}
static int
r_byte(struct load_arg *arg)
@@ -988,7 +1066,7 @@ r_long(struct load_arg *arg)
if (4 < c && c < 128) {
return c - 5;
}
- if (c > sizeof(long)) long_toobig(c);
+ if (c > (int)sizeof(long)) long_toobig(c);
x = 0;
for (i=0;i<c;i++) {
x |= (long)r_byte(arg) << (8*i);
@@ -999,7 +1077,7 @@ r_long(struct load_arg *arg)
return c + 5;
}
c = -c;
- if (c > sizeof(long)) long_toobig(c);
+ if (c > (int)sizeof(long)) long_toobig(c);
x = -1;
for (i=0;i<c;i++) {
x &= ~((long)0xff << (8*i));
@@ -1035,31 +1113,58 @@ r_bytes0(long len, struct load_arg *arg)
if (NIL_P(str)) goto too_short;
StringValue(str);
if (RSTRING_LEN(str) != len) goto too_short;
- if (OBJ_TAINTED(str)) arg->taint = Qtrue;
- if (OBJ_UNTRUSTED(str)) arg->untrust = Qtrue;
+ arg->infection |= (int)FL_TEST(str, MARSHAL_INFECTION);
}
return str;
}
+static int
+id2encidx(ID id, VALUE val)
+{
+ if (id == rb_id_encoding()) {
+ int idx = rb_enc_find_index(StringValueCStr(val));
+ return idx;
+ }
+ else if (id == rb_intern("E")) {
+ if (val == Qfalse) return rb_usascii_encindex();
+ else if (val == Qtrue) return rb_utf8_encindex();
+ /* bogus ignore */
+ }
+ return -1;
+}
+
static ID
r_symlink(struct load_arg *arg)
{
- ID id;
+ st_data_t id;
long num = r_long(arg);
if (st_lookup(arg->symbols, num, &id)) {
- return id;
+ return (ID)id;
}
rb_raise(rb_eArgError, "bad symbol");
}
static ID
-r_symreal(struct load_arg *arg)
+r_symreal(struct load_arg *arg, int ivar)
{
volatile VALUE s = r_bytes(arg);
- ID id = rb_intern(RSTRING_PTR(s));
-
- st_insert(arg->symbols, arg->symbols->num_entries, id);
+ ID id;
+ int idx = -1;
+ st_index_t n = arg->symbols->num_entries;
+
+ st_insert(arg->symbols, (st_data_t)n, (st_data_t)0);
+ if (ivar) {
+ long num = r_long(arg);
+ while (num-- > 0) {
+ id = r_symbol(arg);
+ idx = id2encidx(id, r_object(arg));
+ }
+ }
+ if (idx < 0) idx = rb_usascii_encindex();
+ rb_enc_associate_index(s, idx);
+ id = rb_intern_str(s);
+ st_insert(arg->symbols, (st_data_t)n, (st_data_t)id);
return id;
}
@@ -1067,23 +1172,30 @@ r_symreal(struct load_arg *arg)
static ID
r_symbol(struct load_arg *arg)
{
- int type;
+ int type, ivar = 0;
+ again:
switch ((type = r_byte(arg))) {
+ case TYPE_IVAR:
+ ivar = 1;
+ goto again;
case TYPE_SYMBOL:
- return r_symreal(arg);
+ return r_symreal(arg, ivar);
case TYPE_SYMLINK:
+ if (ivar) {
+ rb_raise(rb_eArgError, "dump format error (symlink with encoding)");
+ }
return r_symlink(arg);
default:
- rb_raise(rb_eArgError, "dump format error(0x%x)", type);
+ rb_raise(rb_eArgError, "dump format error for symbol(0x%x)", type);
break;
}
}
-static const char*
+static VALUE
r_unique(struct load_arg *arg)
{
- return rb_id2name(r_symbol(arg));
+ return rb_id2str(r_symbol(arg));
}
static VALUE
@@ -1093,24 +1205,19 @@ r_string(struct load_arg *arg)
}
static VALUE
-r_entry(VALUE v, struct load_arg *arg)
+r_entry0(VALUE v, st_index_t num, struct load_arg *arg)
{
st_data_t real_obj = (VALUE)Qundef;
if (st_lookup(arg->compat_tbl, v, &real_obj)) {
- st_insert(arg->data, arg->data->num_entries, (st_data_t)real_obj);
+ st_insert(arg->data, num, (st_data_t)real_obj);
}
else {
- st_insert(arg->data, arg->data->num_entries, (st_data_t)v);
- }
- if (arg->taint) {
- OBJ_TAINT(v);
- if ((VALUE)real_obj != Qundef)
- OBJ_TAINT((VALUE)real_obj);
+ st_insert(arg->data, num, (st_data_t)v);
}
- if (arg->untrust) {
- OBJ_UNTRUST(v);
- if ((VALUE)real_obj != Qundef)
- OBJ_UNTRUST((VALUE)real_obj);
+ if (arg->infection) {
+ FL_SET(v, arg->infection);
+ if ((VALUE)real_obj != Qundef)
+ FL_SET((VALUE)real_obj, arg->infection);
}
return v;
}
@@ -1138,50 +1245,53 @@ r_leave(VALUE v, struct load_arg *arg)
}
static void
-r_ivar(VALUE obj, struct load_arg *arg)
+r_ivar(VALUE obj, int *has_encoding, struct load_arg *arg)
{
long len;
len = r_long(arg);
if (len > 0) {
- while (len--) {
+ do {
ID id = r_symbol(arg);
VALUE val = r_object(arg);
- if (id == rb_id_encoding()) {
- int idx = rb_enc_find_index(StringValueCStr(val));
- if (idx > 0) rb_enc_associate_index(obj, idx);
+ int idx = id2encidx(id, val);
+ if (idx >= 0) {
+ rb_enc_associate_index(obj, idx);
+ if (has_encoding) *has_encoding = TRUE;
}
else {
rb_ivar_set(obj, id, val);
}
- }
+ } while (--len > 0);
}
}
static VALUE
-path2class(const char *path)
+path2class(VALUE path)
{
- VALUE v = rb_path2class(path);
+ VALUE v = rb_path_to_class(path);
if (TYPE(v) != T_CLASS) {
- rb_raise(rb_eArgError, "%s does not refer to class", path);
+ rb_raise(rb_eArgError, "%.*s does not refer to class",
+ (int)RSTRING_LEN(path), RSTRING_PTR(path));
}
return v;
}
static VALUE
-path2module(const char *path)
+path2module(VALUE path)
{
- VALUE v = rb_path2class(path);
+ VALUE v = rb_path_to_class(path);
if (TYPE(v) != T_MODULE) {
- rb_raise(rb_eArgError, "%s does not refer to module", path);
+ rb_raise(rb_eArgError, "%.*s does not refer to module",
+ (int)RSTRING_LEN(path), RSTRING_PTR(path));
}
return v;
}
static VALUE
-obj_alloc_by_path(const char *path, struct load_arg *arg)
+obj_alloc_by_path(VALUE path, struct load_arg *arg)
{
VALUE klass;
st_data_t data;
@@ -1201,20 +1311,6 @@ obj_alloc_by_path(const char *path, struct load_arg *arg)
return rb_obj_alloc(klass);
}
-#if defined _MSC_VER && _MSC_VER >= 1300
-#pragma warning(push)
-#pragma warning(disable:4723)
-#endif
-static double
-div0(double x)
-{
- double t = 0.0;
- return x / t;
-}
-#if defined _MSC_VER && _MSC_VER >= 1300
-#pragma warning(pop)
-#endif
-
static VALUE
r_object0(struct load_arg *arg, int *ivp, VALUE extmod)
{
@@ -1238,10 +1334,10 @@ r_object0(struct load_arg *arg, int *ivp, VALUE extmod)
case TYPE_IVAR:
{
- int ivar = Qtrue;
+ int ivar = TRUE;
v = r_object0(arg, &ivar, extmod);
- if (ivar) r_ivar(v, arg);
+ if (ivar) r_ivar(v, NULL, arg);
}
break;
@@ -1311,13 +1407,13 @@ r_object0(struct load_arg *arg, int *ivp, VALUE extmod)
const char *ptr = RSTRING_PTR(str);
if (strcmp(ptr, "nan") == 0) {
- d = div0(0.0);
+ d = NAN;
}
else if (strcmp(ptr, "inf") == 0) {
- d = div0(+1.0);
+ d = INFINITY;
}
else if (strcmp(ptr, "-inf") == 0) {
- d = div0(-1.0);
+ d = -INFINITY;
}
else {
char *e;
@@ -1385,8 +1481,34 @@ r_object0(struct load_arg *arg, int *ivp, VALUE extmod)
{
volatile VALUE str = r_bytes(arg);
int options = r_byte(arg);
- v = r_entry(rb_reg_new_str(str, options), arg);
- v = r_leave(v, arg);
+ int has_encoding = FALSE;
+ st_index_t idx = r_prepare(arg);
+
+ if (ivp) {
+ r_ivar(str, &has_encoding, arg);
+ *ivp = FALSE;
+ }
+ if (!has_encoding) {
+ /* 1.8 compatibility; remove escapes undefined in 1.8 */
+ char *ptr = RSTRING_PTR(str), *dst = ptr, *src = ptr;
+ long len = RSTRING_LEN(str);
+ long bs = 0;
+ for (; len-- > 0; *dst++ = *src++) {
+ switch (*src) {
+ case '\\': bs++; break;
+ case 'g': case 'h': case 'i': case 'j': case 'k': case 'l':
+ case 'm': case 'o': case 'p': case 'q': case 'u': case 'y':
+ case 'E': case 'F': case 'H': case 'I': case 'J': case 'K':
+ case 'L': case 'N': case 'O': case 'P': case 'Q': case 'R':
+ case 'S': case 'T': case 'U': case 'V': case 'X': case 'Y':
+ if (bs & 1) --dst;
+ default: bs = 0; break;
+ }
+ }
+ rb_str_set_len(str, dst - ptr);
+ }
+ v = r_entry0(rb_reg_new_str(str, options), idx, arg);
+ v = r_leave(v, arg);
}
break;
@@ -1416,7 +1538,7 @@ r_object0(struct load_arg *arg, int *ivp, VALUE extmod)
rb_hash_aset(v, key, value);
}
if (type == TYPE_HASH_DEF) {
- RHASH(v)->ifnone = r_object(arg);
+ RHASH_IFNONE(v) = r_object(arg);
}
v = r_leave(v, arg);
}
@@ -1424,14 +1546,12 @@ r_object0(struct load_arg *arg, int *ivp, VALUE extmod)
case TYPE_STRUCT:
{
- VALUE klass, mem;
- VALUE values;
+ VALUE mem, values;
volatile long i; /* gcc 2.7.2.3 -O2 bug?? */
- long len;
ID slot;
-
- klass = path2class(r_unique(arg));
- len = r_long(arg);
+ st_index_t idx = r_prepare(arg);
+ VALUE klass = path2class(r_unique(arg));
+ long len = r_long(arg);
v = rb_obj_alloc(klass);
if (TYPE(v) != T_STRUCT) {
@@ -1443,7 +1563,7 @@ r_object0(struct load_arg *arg, int *ivp, VALUE extmod)
rb_class2name(klass));
}
- v = r_entry(v, arg);
+ v = r_entry0(v, idx, arg);
values = rb_ary_new2(len);
for (i=0; i<len; i++) {
slot = r_symbol(arg);
@@ -1472,8 +1592,8 @@ r_object0(struct load_arg *arg, int *ivp, VALUE extmod)
}
data = r_string(arg);
if (ivp) {
- r_ivar(data, arg);
- *ivp = Qfalse;
+ r_ivar(data, NULL, arg);
+ *ivp = FALSE;
}
v = rb_funcall(klass, s_load, 1, data);
check_load_arg(arg, s_load);
@@ -1508,12 +1628,13 @@ r_object0(struct load_arg *arg, int *ivp, VALUE extmod)
case TYPE_OBJECT:
{
+ st_index_t idx = r_prepare(arg);
v = obj_alloc_by_path(r_unique(arg), arg);
if (TYPE(v) != T_OBJECT) {
rb_raise(rb_eArgError, "dump format error");
}
- v = r_entry(v, arg);
- r_ivar(v, arg);
+ v = r_entry0(v, idx, arg);
+ r_ivar(v, NULL, arg);
v = r_leave(v, arg);
}
break;
@@ -1522,10 +1643,10 @@ r_object0(struct load_arg *arg, int *ivp, VALUE extmod)
{
VALUE klass = path2class(r_unique(arg));
if (rb_respond_to(klass, s_alloc)) {
- static int warn = Qtrue;
+ static int warn = TRUE;
if (warn) {
rb_warn("define `allocate' instead of `_alloc'");
- warn = Qfalse;
+ warn = FALSE;
}
v = rb_funcall(klass, s_alloc, 0);
check_load_arg(arg, s_alloc);
@@ -1552,7 +1673,7 @@ r_object0(struct load_arg *arg, int *ivp, VALUE extmod)
{
volatile VALUE str = r_bytes(arg);
- v = rb_path2class(RSTRING_PTR(str));
+ v = rb_path_to_class(str);
v = r_entry(v, arg);
v = r_leave(v, arg);
}
@@ -1562,7 +1683,7 @@ r_object0(struct load_arg *arg, int *ivp, VALUE extmod)
{
volatile VALUE str = r_bytes(arg);
- v = path2class(RSTRING_PTR(str));
+ v = path2class(str);
v = r_entry(v, arg);
v = r_leave(v, arg);
}
@@ -1572,14 +1693,20 @@ r_object0(struct load_arg *arg, int *ivp, VALUE extmod)
{
volatile VALUE str = r_bytes(arg);
- v = path2module(RSTRING_PTR(str));
+ v = path2module(str);
v = r_entry(v, arg);
v = r_leave(v, arg);
}
break;
case TYPE_SYMBOL:
- v = ID2SYM(r_symreal(arg));
+ if (ivp) {
+ v = ID2SYM(r_symreal(arg, *ivp));
+ *ivp = FALSE;
+ }
+ else {
+ v = ID2SYM(r_symreal(arg, 0));
+ }
v = r_leave(v, arg);
break;
@@ -1600,28 +1727,22 @@ r_object(struct load_arg *arg)
return r_object0(arg, 0, Qnil);
}
-static VALUE
-load(struct load_arg *arg)
-{
- return r_object(arg);
-}
-
-static VALUE
-load_ensure(struct load_arg *arg)
+static void
+clear_load_arg(struct load_arg *arg)
{
- if (!DATA_PTR(arg->wrapper)) return 0;
+ if (!arg->symbols) return;
st_free_table(arg->symbols);
+ arg->symbols = 0;
st_free_table(arg->data);
+ arg->data = 0;
st_free_table(arg->compat_tbl);
- DATA_PTR(arg->wrapper) = 0;
- arg->wrapper = 0;
- return 0;
+ arg->compat_tbl = 0;
}
/*
* call-seq:
- * load( source [, proc] ) => obj
- * restore( source [, proc] ) => obj
+ * load( source [, proc] ) -> obj
+ * restore( source [, proc] ) -> obj
*
* Returns the result of converting the serialized data in source into a
* Ruby object (possibly with associated subordinate objects). source
@@ -1633,37 +1754,39 @@ static VALUE
marshal_load(int argc, VALUE *argv)
{
VALUE port, proc;
- int major, minor;
+ int major, minor, infection = 0;
VALUE v;
- struct load_arg arg;
+ volatile VALUE wrapper;
+ struct load_arg *arg;
rb_scan_args(argc, argv, "11", &port, &proc);
v = rb_check_string_type(port);
if (!NIL_P(v)) {
- arg.taint = OBJ_TAINTED(port); /* original taintedness */
+ infection = (int)FL_TEST(port, MARSHAL_INFECTION); /* original taintedness */
port = v;
}
else if (rb_respond_to(port, s_getbyte) && rb_respond_to(port, s_read)) {
if (rb_respond_to(port, s_binmode)) {
rb_funcall2(port, s_binmode, 0, 0);
}
- arg.taint = Qtrue;
+ infection = (int)(FL_TAINT | FL_TEST(port, FL_UNTRUSTED));
}
else {
rb_raise(rb_eTypeError, "instance of IO needed");
}
- arg.untrust = OBJ_UNTRUSTED(port);
- arg.src = port;
- arg.offset = 0;
- arg.symbols = st_init_numtable();
- arg.data = st_init_numtable();
- arg.compat_tbl = st_init_numtable();
- arg.proc = 0;
- arg.wrapper = Data_Wrap_Struct(rb_cData, mark_load_arg, 0, &arg);
-
- major = r_byte(&arg);
- minor = r_byte(&arg);
+ wrapper = TypedData_Make_Struct(rb_cData, struct load_arg, &load_arg_data, arg);
+ arg->infection = infection;
+ arg->src = port;
+ arg->offset = 0;
+ arg->symbols = st_init_numtable();
+ arg->data = st_init_numtable();
+ arg->compat_tbl = st_init_numtable();
+ arg->proc = 0;
+
+ major = r_byte(arg);
+ minor = r_byte(arg);
if (major != MARSHAL_MAJOR || minor > MARSHAL_MINOR) {
+ clear_load_arg(arg);
rb_raise(rb_eTypeError, "incompatible marshal file format (can't be read)\n\
\tformat version %d.%d required; %d.%d given",
MARSHAL_MAJOR, MARSHAL_MINOR, major, minor);
@@ -1674,8 +1797,10 @@ marshal_load(int argc, VALUE *argv)
MARSHAL_MAJOR, MARSHAL_MINOR, major, minor);
}
- if (!NIL_P(proc)) arg.proc = proc;
- v = rb_ensure(load, (VALUE)&arg, load_ensure, (VALUE)&arg);
+ if (!NIL_P(proc)) arg->proc = proc;
+ v = r_object(arg);
+ clear_load_arg(arg);
+ RB_GC_GUARD(wrapper);
return v;
}
@@ -1685,6 +1810,7 @@ marshal_load(int argc, VALUE *argv)
* byte stream, allowing them to be stored outside the currently
* active script. This data may subsequently be read and the original
* objects reconstituted.
+ *
* Marshaled data has major and minor version numbers stored along
* with the object information. In normal use, marshaling can only
* load data written with the same major version number and an equal
@@ -1702,16 +1828,78 @@ marshal_load(int argc, VALUE *argv)
* Some objects cannot be dumped: if the objects to be dumped include
* bindings, procedure or method objects, instances of class IO, or
* singleton objects, a TypeError will be raised.
+ *
* If your class has special serialization needs (for example, if you
* want to serialize in some specific format), or if it contains
* objects that would otherwise not be serializable, you can implement
- * your own serialization strategy by defining two methods, _dump and
- * _load:
- * The instance method _dump should return a String object containing
- * all the information necessary to reconstitute objects of this class
- * and all referenced objects up to a maximum depth given as an integer
- * parameter (a value of -1 implies that you should disable depth checking).
- * The class method _load should take a String and return an object of this class.
+ * your own serialization strategy.
+ *
+ * There are two methods of doing this, your object can define either
+ * marshal_dump and marshal_load or _dump and _load. marshal_dump will take
+ * precedence over _dump if both are defined. marshal_dump may result in
+ * smaller Marshal strings.
+ *
+ * == marshal_dump and marshal_load
+ *
+ * When dumping an object the method marshal_dump will be called.
+ * marshal_dump must return a result containing the information necessary for
+ * marshal_load to reconstitute the object. The result can be any object.
+ *
+ * When loading an object dumped using marshal_dump the object is first
+ * allocated then marshal_load is called with the result from marshal_dump.
+ * marshal_load must recreate the object from the information in the result.
+ *
+ * Example:
+ *
+ * class MyObj
+ * def initialize name, version, data
+ * @name = name
+ * @version = version
+ * @data = data
+ * end
+ *
+ * def marshal_dump
+ * [@name, @version]
+ * end
+ *
+ * def marshal_load array
+ * @name, @version = array
+ * end
+ * end
+ *
+ * == _dump and _load
+ *
+ * Use _dump and _load when you need to allocate the object you're restoring
+ * yourself.
+ *
+ * When dumping an object the instance method _dump is called with an Integer
+ * which indicates the maximum depth of objects to dump (a value of -1 implies
+ * that you should disable depth checking). _dump must return a String
+ * containing the information necessary to reconstitute the object.
+ *
+ * The class method _load should take a String and use it to return an object
+ * of the same class.
+ *
+ * Example:
+ *
+ * class MyObj
+ * def initialize name, version, data
+ * @name = name
+ * @version = version
+ * @data = data
+ * end
+ *
+ * def _dump level
+ * [@name, @version].join ':'
+ * end
+ *
+ * def self._load args
+ * new(*args.split(':'))
+ * end
+ * end
+ *
+ * Since Marhsal.dump outputs a string you can have _dump return a Marshal
+ * string which is Marshal.loaded in _load for complex objects.
*/
void
Init_marshal(void)
diff --git a/math.c b/math.c
index 6273d60976..276b2cbc49 100644
--- a/math.c
+++ b/math.c
@@ -10,77 +10,74 @@
**********************************************************************/
#include "ruby/ruby.h"
+#include "internal.h"
#include <math.h>
#include <errno.h>
+#if defined(HAVE_SIGNBIT) && defined(__GNUC__) && defined(__sun__) && \
+ !defined(signbit)
+ extern int signbit(double);
+#endif
+
+#define numberof(array) (int)(sizeof(array) / sizeof((array)[0]))
+
VALUE rb_mMath;
+VALUE rb_eMathDomainError;
-extern VALUE rb_to_float(VALUE val);
#define Need_Float(x) do {if (TYPE(x) != T_FLOAT) {(x) = rb_to_float(x);}} while(0)
#define Need_Float2(x,y) do {\
Need_Float(x);\
Need_Float(y);\
} while (0)
-static void
-domain_check(double x, double y, const char *msg)
-{
- while(1) {
- if (errno) {
- rb_sys_fail(msg);
- }
- if (isnan(y)) {
- if (isnan(x)) break;
-#if defined(EDOM)
- errno = EDOM;
-#elif defined(ERANGE)
- errno = ERANGE;
-#endif
- continue;
- }
- break;
- }
-}
-
-static void
-infinity_check(VALUE arg, double res, const char *msg)
-{
- while(1) {
- if (errno) {
- rb_sys_fail(msg);
- }
- if (isinf(res) && !isinf(RFLOAT_VALUE(arg))) {
-#if defined(EDOM)
- errno = EDOM;
-#elif defined(ERANGE)
- errno = ERANGE;
-#endif
- continue;
- }
- break;
- }
-}
+#define domain_error(msg) \
+ rb_raise(rb_eMathDomainError, "Numerical argument is out of domain - " #msg);
/*
* call-seq:
- * Math.atan2(y, x) => float
+ * Math.atan2(y, x) -> float
*
* Computes the arc tangent given <i>y</i> and <i>x</i>. Returns
* -PI..PI.
*
+ * Math.atan2(-0.0, -1.0) #=> -3.141592653589793
+ * Math.atan2(-1.0, -1.0) #=> -2.356194490192345
+ * Math.atan2(-1.0, 0.0) #=> -1.5707963267948966
+ * Math.atan2(-1.0, 1.0) #=> -0.7853981633974483
+ * Math.atan2(-0.0, 1.0) #=> -0.0
+ * Math.atan2(0.0, 1.0) #=> 0.0
+ * Math.atan2(1.0, 1.0) #=> 0.7853981633974483
+ * Math.atan2(1.0, 0.0) #=> 1.5707963267948966
+ * Math.atan2(1.0, -1.0) #=> 2.356194490192345
+ * Math.atan2(0.0, -1.0) #=> 3.141592653589793
+ *
*/
static VALUE
math_atan2(VALUE obj, VALUE y, VALUE x)
{
+#ifndef M_PI
+# define M_PI 3.14159265358979323846
+#endif
+ double dx, dy;
Need_Float2(y, x);
- return DBL2NUM(atan2(RFLOAT_VALUE(y), RFLOAT_VALUE(x)));
+ dx = RFLOAT_VALUE(x);
+ dy = RFLOAT_VALUE(y);
+ if (dx == 0.0 && dy == 0.0) {
+ if (!signbit(dx))
+ return DBL2NUM(dy);
+ if (!signbit(dy))
+ return DBL2NUM(M_PI);
+ return DBL2NUM(-M_PI);
+ }
+ if (isinf(dx) && isinf(dy)) domain_error("atan2");
+ return DBL2NUM(atan2(dy, dx));
}
/*
* call-seq:
- * Math.cos(x) => float
+ * Math.cos(x) -> float
*
* Computes the cosine of <i>x</i> (expressed in radians). Returns
* -1..1.
@@ -95,7 +92,7 @@ math_cos(VALUE obj, VALUE x)
/*
* call-seq:
- * Math.sin(x) => float
+ * Math.sin(x) -> float
*
* Computes the sine of <i>x</i> (expressed in radians). Returns
* -1..1.
@@ -112,7 +109,7 @@ math_sin(VALUE obj, VALUE x)
/*
* call-seq:
- * Math.tan(x) => float
+ * Math.tan(x) -> float
*
* Returns the tangent of <i>x</i> (expressed in radians).
*/
@@ -127,7 +124,7 @@ math_tan(VALUE obj, VALUE x)
/*
* call-seq:
- * Math.acos(x) => float
+ * Math.acos(x) -> float
*
* Computes the arc cosine of <i>x</i>. Returns 0..PI.
*/
@@ -138,16 +135,16 @@ math_acos(VALUE obj, VALUE x)
double d0, d;
Need_Float(x);
- errno = 0;
d0 = RFLOAT_VALUE(x);
+ /* check for domain error */
+ if (d0 < -1.0 || 1.0 < d0) domain_error("acos");
d = acos(d0);
- domain_check(d0, d, "acos");
return DBL2NUM(d);
}
/*
* call-seq:
- * Math.asin(x) => float
+ * Math.asin(x) -> float
*
* Computes the arc sine of <i>x</i>. Returns -{PI/2} .. {PI/2}.
*/
@@ -158,16 +155,16 @@ math_asin(VALUE obj, VALUE x)
double d0, d;
Need_Float(x);
- errno = 0;
d0 = RFLOAT_VALUE(x);
+ /* check for domain error */
+ if (d0 < -1.0 || 1.0 < d0) domain_error("asin");
d = asin(d0);
- domain_check(d0, d, "asin");
return DBL2NUM(d);
}
/*
* call-seq:
- * Math.atan(x) => float
+ * Math.atan(x) -> float
*
* Computes the arc tangent of <i>x</i>. Returns -{PI/2} .. {PI/2}.
*/
@@ -189,7 +186,7 @@ cosh(double x)
/*
* call-seq:
- * Math.cosh(x) => float
+ * Math.cosh(x) -> float
*
* Computes the hyperbolic cosine of <i>x</i> (expressed in radians).
*/
@@ -212,7 +209,7 @@ sinh(double x)
/*
* call-seq:
- * Math.sinh(x) => float
+ * Math.sinh(x) -> float
*
* Computes the hyperbolic sine of <i>x</i> (expressed in
* radians).
@@ -235,7 +232,7 @@ tanh(double x)
/*
* call-seq:
- * Math.tanh() => float
+ * Math.tanh() -> float
*
* Computes the hyperbolic tangent of <i>x</i> (expressed in
* radians).
@@ -250,7 +247,7 @@ math_tanh(VALUE obj, VALUE x)
/*
* call-seq:
- * Math.acosh(x) => float
+ * Math.acosh(x) -> float
*
* Computes the inverse hyperbolic cosine of <i>x</i>.
*/
@@ -261,16 +258,16 @@ math_acosh(VALUE obj, VALUE x)
double d0, d;
Need_Float(x);
- errno = 0;
d0 = RFLOAT_VALUE(x);
+ /* check for domain error */
+ if (d0 < 1.0) domain_error("acosh");
d = acosh(d0);
- domain_check(d0, d, "acosh");
return DBL2NUM(d);
}
/*
* call-seq:
- * Math.asinh(x) => float
+ * Math.asinh(x) -> float
*
* Computes the inverse hyperbolic sine of <i>x</i>.
*/
@@ -284,7 +281,7 @@ math_asinh(VALUE obj, VALUE x)
/*
* call-seq:
- * Math.atanh(x) => float
+ * Math.atanh(x) -> float
*
* Computes the inverse hyperbolic tangent of <i>x</i>.
*/
@@ -295,17 +292,19 @@ math_atanh(VALUE obj, VALUE x)
double d0, d;
Need_Float(x);
- errno = 0;
d0 = RFLOAT_VALUE(x);
+ /* check for domain error */
+ if (d0 < -1.0 || +1.0 < d0) domain_error("atanh");
+ /* check for pole error */
+ if (d0 == -1.0) return DBL2NUM(-INFINITY);
+ if (d0 == +1.0) return DBL2NUM(+INFINITY);
d = atanh(d0);
- domain_check(d0, d, "atanh");
- infinity_check(x, d, "atanh");
return DBL2NUM(d);
}
/*
* call-seq:
- * Math.exp(x) => float
+ * Math.exp(x) -> float
*
* Returns e**x.
*
@@ -333,8 +332,8 @@ math_exp(VALUE obj, VALUE x)
/*
* call-seq:
- * Math.log(numeric) => float
- * Math.log(num,base) => float
+ * Math.log(numeric) -> float
+ * Math.log(num,base) -> float
*
* Returns the natural logarithm of <i>numeric</i>.
* If additional second argument is given, it will be the base
@@ -355,15 +354,16 @@ math_log(int argc, VALUE *argv)
rb_scan_args(argc, argv, "11", &x, &base);
Need_Float(x);
- errno = 0;
d0 = RFLOAT_VALUE(x);
+ /* check for domain error */
+ if (d0 < 0.0) domain_error("log");
+ /* check for pole error */
+ if (d0 == 0.0) return DBL2NUM(-INFINITY);
d = log(d0);
if (argc == 2) {
Need_Float(base);
d /= log(RFLOAT_VALUE(base));
}
- domain_check(d0, d, "log");
- infinity_check(x, d, "log");
return DBL2NUM(d);
}
@@ -381,7 +381,7 @@ extern double log2(double);
/*
* call-seq:
- * Math.log2(numeric) => float
+ * Math.log2(numeric) -> float
*
* Returns the base 2 logarithm of <i>numeric</i>.
*
@@ -398,17 +398,18 @@ math_log2(VALUE obj, VALUE x)
double d0, d;
Need_Float(x);
- errno = 0;
d0 = RFLOAT_VALUE(x);
+ /* check for domain error */
+ if (d0 < 0.0) domain_error("log2");
+ /* check for pole error */
+ if (d0 == 0.0) return DBL2NUM(-INFINITY);
d = log2(d0);
- domain_check(d0, d, "log2");
- infinity_check(x, d, "log2");
return DBL2NUM(d);
}
/*
* call-seq:
- * Math.log10(numeric) => float
+ * Math.log10(numeric) -> float
*
* Returns the base 10 logarithm of <i>numeric</i>.
*
@@ -424,17 +425,18 @@ math_log10(VALUE obj, VALUE x)
double d0, d;
Need_Float(x);
- errno = 0;
d0 = RFLOAT_VALUE(x);
+ /* check for domain error */
+ if (d0 < 0.0) domain_error("log10");
+ /* check for pole error */
+ if (d0 == 0.0) return DBL2NUM(-INFINITY);
d = log10(d0);
- domain_check(d0, d, "log10");
- infinity_check(x, d, "log10");
return DBL2NUM(d);
}
/*
* call-seq:
- * Math.sqrt(numeric) => float
+ * Math.sqrt(numeric) -> float
*
* Returns the non-negative square root of <i>numeric</i>.
*
@@ -462,16 +464,17 @@ math_sqrt(VALUE obj, VALUE x)
double d0, d;
Need_Float(x);
- errno = 0;
d0 = RFLOAT_VALUE(x);
+ /* check for domain error */
+ if (d0 < 0.0) domain_error("sqrt");
+ if (d0 == 0.0) return DBL2NUM(0.0);
d = sqrt(d0);
- domain_check(d0, d, "sqrt");
return DBL2NUM(d);
}
/*
* call-seq:
- * Math.cbrt(numeric) => float
+ * Math.cbrt(numeric) -> float
*
* Returns the cube root of <i>numeric</i>.
*
@@ -510,7 +513,7 @@ math_cbrt(VALUE obj, VALUE x)
/*
* call-seq:
- * Math.frexp(numeric) => [ fraction, exponent ]
+ * Math.frexp(numeric) -> [ fraction, exponent ]
*
* Returns a two-element array containing the normalized fraction (a
* <code>Float</code>) and exponent (a <code>Fixnum</code>) of
@@ -551,7 +554,7 @@ math_ldexp(VALUE obj, VALUE x, VALUE n)
/*
* call-seq:
- * Math.hypot(x, y) => float
+ * Math.hypot(x, y) -> float
*
* Returns sqrt(x**2 + y**2), the hypotenuse of a right-angled triangle
* with sides <i>x</i> and <i>y</i>.
@@ -568,7 +571,7 @@ math_hypot(VALUE obj, VALUE x, VALUE y)
/*
* call-seq:
- * Math.erf(x) => float
+ * Math.erf(x) -> float
*
* Calculates the error function of x.
*/
@@ -582,7 +585,7 @@ math_erf(VALUE obj, VALUE x)
/*
* call-seq:
- * Math.erfc(x) => float
+ * Math.erfc(x) -> float
*
* Calculates the complementary error function of x.
*/
@@ -596,12 +599,12 @@ math_erfc(VALUE obj, VALUE x)
/*
* call-seq:
- * Math.gamma(x) => float
+ * Math.gamma(x) -> float
*
* Calculates the gamma function of x.
*
* Note that gamma(n) is same as fact(n-1) for integer n > 0.
- * However gamma(n) returns float and possibly has error in calculation.
+ * However gamma(n) returns float and can be an approximation.
*
* def fact(n) (1..n).inject(1) {|r,i| r*i } end
* 1.upto(26) {|i| p [i, Math.gamma(i), fact(i-1)] }
@@ -637,7 +640,7 @@ math_erfc(VALUE obj, VALUE x)
static VALUE
math_gamma(VALUE obj, VALUE x)
{
- static double fact_table[] = {
+ static const double fact_table[] = {
/* fact(0) */ 1.0,
/* fact(1) */ 1.0,
/* fact(2) */ 2.0,
@@ -662,27 +665,30 @@ math_gamma(VALUE obj, VALUE x)
/* fact(21) */ 51090942171709440000.0,
/* fact(22) */ 1124000727777607680000.0,
/* fact(23)=25852016738884976640000 needs 56bit mantissa which is
- * impossible to represent exactly in IEEE 754 double. */
+ * impossible to represent exactly in IEEE 754 double which have
+ * 53bit mantissa. */
};
double d0, d;
double intpart, fracpart;
Need_Float(x);
d0 = RFLOAT_VALUE(x);
+ /* check for domain error */
+ if (isinf(d0) && signbit(d0)) domain_error("gamma");
fracpart = modf(d0, &intpart);
- if (fracpart == 0.0 &&
- 0 < intpart &&
- (size_t)intpart <= sizeof(fact_table)/sizeof(*fact_table)) {
- return DBL2NUM(fact_table[(int)intpart - 1]);
+ if (fracpart == 0.0) {
+ if (intpart < 0) domain_error("gamma");
+ if (0 < intpart &&
+ intpart - 1 < (double)numberof(fact_table)) {
+ return DBL2NUM(fact_table[(int)intpart - 1]);
+ }
}
- errno = 0;
d = tgamma(d0);
- domain_check(d0, d, "gamma");
return DBL2NUM(d);
}
/*
* call-seq:
- * Math.lgamma(x) => [float, -1 or 1]
+ * Math.lgamma(x) -> [float, -1 or 1]
*
* Calculates the logarithmic gamma of x and
* the sign of gamma of x.
@@ -696,13 +702,16 @@ static VALUE
math_lgamma(VALUE obj, VALUE x)
{
double d0, d;
- int sign;
+ int sign=1;
VALUE v;
Need_Float(x);
- errno = 0;
d0 = RFLOAT_VALUE(x);
+ /* check for domain error */
+ if (isinf(d0)) {
+ if (signbit(d0)) domain_error("lgamma");
+ return rb_assoc_new(DBL2NUM(INFINITY), INT2FIX(1));
+ }
d = lgamma_r(d0, &sign);
- domain_check(d0, d, "lgamma");
v = DBL2NUM(d);
return rb_assoc_new(v, INT2FIX(sign));
}
@@ -740,6 +749,24 @@ exp1(sqrt)
/*
+ * Document-class: Math::DomainError
+ *
+ * Raised when a mathematical function is evaluated outside of its
+ * domain of definition.
+ *
+ * For example, since +cos+ returns values in the range -1..1,
+ * its inverse function +acos+ is only defined on that interval:
+ *
+ * Math.acos(42)
+ *
+ * <em>produces:</em>
+ *
+ * Math::DomainError: Numerical argument is out of domain - "acos"
+ */
+
+/*
+ * Document-class: Math
+ *
* The <code>Math</code> module contains module functions for basic
* trigonometric and transcendental functions. See class
* <code>Float</code> for a list of constants that
@@ -751,6 +778,7 @@ void
Init_Math(void)
{
rb_mMath = rb_define_module("Math");
+ rb_eMathDomainError = rb_define_class_under(rb_mMath, "DomainError", rb_eStandardError);
#ifdef M_PI
rb_define_const(rb_mMath, "PI", DBL2NUM(M_PI));
diff --git a/method.h b/method.h
new file mode 100644
index 0000000000..9229896b6b
--- /dev/null
+++ b/method.h
@@ -0,0 +1,105 @@
+/**********************************************************************
+
+ method.h -
+
+ $Author$
+ created at: Wed Jul 15 20:02:33 2009
+
+ Copyright (C) 2009 Koichi Sasada
+
+**********************************************************************/
+#ifndef METHOD_H
+#define METHOD_H
+
+typedef enum {
+ NOEX_PUBLIC = 0x00,
+ NOEX_NOSUPER = 0x01,
+ NOEX_PRIVATE = 0x02,
+ NOEX_PROTECTED = 0x04,
+ NOEX_MASK = 0x06,
+ NOEX_BASIC = 0x08,
+ NOEX_UNDEF = NOEX_NOSUPER,
+ NOEX_MODFUNC = 0x12,
+ NOEX_SUPER = 0x20,
+ NOEX_VCALL = 0x40,
+ NOEX_RESPONDS = 0x80
+} rb_method_flag_t;
+
+#define NOEX_SAFE(n) ((int)((n) >> 8) & 0x0F)
+#define NOEX_WITH(n, s) (((s) << 8) | (n) | (ruby_running ? 0 : NOEX_BASIC))
+#define NOEX_WITH_SAFE(n) NOEX_WITH((n), rb_safe_level())
+
+/* method data type */
+
+typedef enum {
+ VM_METHOD_TYPE_ISEQ,
+ VM_METHOD_TYPE_CFUNC,
+ VM_METHOD_TYPE_ATTRSET,
+ VM_METHOD_TYPE_IVAR,
+ VM_METHOD_TYPE_BMETHOD,
+ VM_METHOD_TYPE_ZSUPER,
+ VM_METHOD_TYPE_UNDEF,
+ VM_METHOD_TYPE_NOTIMPLEMENTED,
+ VM_METHOD_TYPE_OPTIMIZED, /* Kernel#send, Proc#call, etc */
+ VM_METHOD_TYPE_MISSING /* wrapper for method_missing(id) */
+} rb_method_type_t;
+
+typedef struct rb_method_cfunc_struct {
+ VALUE (*func)(ANYARGS);
+ int argc;
+} rb_method_cfunc_t;
+
+typedef struct rb_method_attr_struct {
+ ID id;
+ VALUE location;
+} rb_method_attr_t;
+
+typedef struct rb_iseq_struct rb_iseq_t;
+
+typedef struct rb_method_definition_struct {
+ rb_method_type_t type; /* method type */
+ ID original_id;
+ union {
+ rb_iseq_t *iseq; /* should be mark */
+ rb_method_cfunc_t cfunc;
+ rb_method_attr_t attr;
+ VALUE proc; /* should be mark */
+ enum method_optimized_type {
+ OPTIMIZED_METHOD_TYPE_SEND,
+ OPTIMIZED_METHOD_TYPE_CALL
+ } optimize_type;
+ } body;
+ int alias_count;
+} rb_method_definition_t;
+
+typedef struct rb_method_entry_struct {
+ rb_method_flag_t flag;
+ char mark;
+ rb_method_definition_t *def;
+ ID called_id;
+ VALUE klass; /* should be mark */
+} rb_method_entry_t;
+
+struct unlinked_method_entry_list_entry {
+ struct unlinked_method_entry_list_entry *next;
+ rb_method_entry_t *me;
+};
+
+#define UNDEFINED_METHOD_ENTRY_P(me) (!(me) || !(me)->def || (me)->def->type == VM_METHOD_TYPE_UNDEF)
+
+void rb_add_method_cfunc(VALUE klass, ID mid, VALUE (*func)(ANYARGS), int argc, rb_method_flag_t noex);
+rb_method_entry_t *rb_add_method(VALUE klass, ID mid, rb_method_type_t type, void *option, rb_method_flag_t noex);
+rb_method_entry_t *rb_method_entry(VALUE klass, ID id);
+
+rb_method_entry_t *rb_method_entry_get_without_cache(VALUE klass, ID id);
+rb_method_entry_t *rb_method_entry_set(VALUE klass, ID mid, const rb_method_entry_t *, rb_method_flag_t noex);
+
+int rb_method_entry_arity(const rb_method_entry_t *me);
+int rb_method_entry_eq(const rb_method_entry_t *m1, const rb_method_entry_t *m2);
+
+void rb_mark_method_entry(const rb_method_entry_t *me);
+void rb_free_method_entry(rb_method_entry_t *me);
+void rb_sweep_method_entry(void *vm);
+void rb_free_m_table(st_table *tbl);
+
+#endif /* METHOD_H */
diff --git a/misc/README b/misc/README
index 12646ac819..93d1de90b2 100644
--- a/misc/README
+++ b/misc/README
@@ -1,6 +1,10 @@
README this file
inf-ruby.el program to run ruby under emacs
+rb_optparse.bash bash completion script
+rb_optparse.zsh zsh completion script
+rdoc-mode.el RDoc mode for emacs
ruby-mode.el ruby mode for emacs
+ruby-style.el Ruby's C/C++ mode style for emacs
rubydb2x.el ruby debugger support for emacs 19.2x or before
rubydb3x.el ruby debugger support for emacs 19.3x or later
ruby-electric.el emacs minor mode providing electric commands
diff --git a/misc/inf-ruby.el b/misc/inf-ruby.el
index 6b5d74c304..c27fb635de 100644
--- a/misc/inf-ruby.el
+++ b/misc/inf-ruby.el
@@ -10,7 +10,7 @@
;;;
;;; (0) check ruby-program-name variable that can run your environment.
;;;
-;;; (1) modify .emacs to use ruby-mode
+;;; (1) modify .emacs to use ruby-mode
;;; for example :
;;;
;;; (autoload 'ruby-mode "ruby-mode"
@@ -19,7 +19,7 @@
;;; (append '(("\\.rb$" . ruby-mode)) auto-mode-alist))
;;; (setq interpreter-mode-alist (append '(("ruby" . ruby-mode))
;;; interpreter-mode-alist))
-;;;
+;;;
;;; (2) set to load inf-ruby and set inf-ruby key definition in ruby-mode.
;;;
;;; (autoload 'run-ruby "inf-ruby"
@@ -49,47 +49,47 @@
;;; Revision 1.6 2002/09/07 14:35:46 nobu
;;; * misc/inf-ruby.el (inferior-ruby-error-regexp-alist): regexp
;;; alist for error message from ruby.
-;;;
+;;;
;;; * misc/inf-ruby.el (inferior-ruby-mode): fixed for Emacs.
-;;;
+;;;
;;; * misc/inf-ruby.el (ruby-send-region): compilation-parse-errors
;;; doesn't parse first line, so insert separators before each
;;; evaluations.
-;;;
+;;;
;;; Revision 1.5 2002/08/19 10:05:47 nobu
;;; * misc/inf-ruby.el (inf-ruby-keys): ruby-send-definition
;;; conflicted with ruby-insert-end.
-;;;
+;;;
;;; * misc/inf-ruby.el (inferior-ruby-mode): compilation-minor-mode.
-;;;
+;;;
;;; * misc/inf-ruby.el (ruby-send-region): send as here document to
;;; adjust source file/line. [ruby-talk:47113], [ruby-dev:17965]
-;;;
+;;;
;;; * misc/inf-ruby.el (ruby-send-terminator): added to make unique
;;; terminator.
-;;;
+;;;
;;; Revision 1.4 2002/01/29 07:16:09 matz
;;; * file.c (rb_stat_rdev_major): added. [new]
-;;;
+;;;
;;; * file.c (rb_stat_rdev_minor): added. [new]
-;;;
+;;;
;;; * file.c (rb_stat_inspect): print mode in octal.
-;;;
+;;;
;;; Revision 1.3 1999/12/01 09:24:18 matz
;;; 19991201
-;;;
+;;;
;;; Revision 1.2 1999/08/13 05:45:18 matz
;;; 1.4.0
-;;;
+;;;
;;; Revision 1.1.1.1.2.1 1999/07/15 07:59:59 matz
;;; 990715
-;;;
+;;;
;;; Revision 1.1.1.1 1999/01/20 04:59:36 matz
;;; ruby 1.3 cycle
-;;;
+;;;
;;; Revision 1.1.2.1 1998/12/16 07:30:36 matz
;;; first public release of 1.1d (pre1.2) series
-;;;
+;;;
;;; Revision 1.4 1998/05/20 02:45:58 senda
;;; default program to irb
;;;
@@ -196,7 +196,7 @@ For information on running multiple processes in multiple buffers, see
documentation for variable ruby-buffer.
Commands:
-Return after the end of the process' output sends the text from the
+Return after the end of the process' output sends the text from the
end of process to point.
Return before the end of the process' output copies the sexp ending at point
to the end of the process' output, and sends it.
@@ -358,14 +358,14 @@ Then switch to the process buffer."
(switch-to-ruby t))
(defun ruby-send-definition-and-go ()
- "Send the current definition to the inferior Ruby.
+ "Send the current definition to the inferior Ruby.
Then switch to the process buffer."
(interactive)
(ruby-send-definition)
(switch-to-ruby t))
(defun ruby-send-block-and-go ()
- "Send the current block to the inferior Ruby.
+ "Send the current block to the inferior Ruby.
Then switch to the process buffer."
(interactive)
(ruby-send-block)
@@ -380,13 +380,13 @@ Used by these commands to determine defaults.")
(defvar ruby-prev-l/c-dir/file nil
"Caches the last (directory . file) pair.
Caches the last pair used in the last ruby-load-file command.
-Used for determining the default in the
+Used for determining the default in the
next one.")
(defun ruby-load-file (file-name)
"Load a Ruby file into the inferior Ruby process."
(interactive (comint-get-source "Load Ruby file: " ruby-prev-l/c-dir/file
- ruby-source-modes t)) ; T because LOAD
+ ruby-source-modes t)) ; T because LOAD
; needs an exact name
(comint-check-source file-name) ; Check to see if buffer needs saved.
(setq ruby-prev-l/c-dir/file (cons (file-name-directory file-name)
@@ -408,7 +408,7 @@ next one.")
(defvar inf-ruby-load-hook nil
"This hook is run when inf-ruby is loaded in.
This is a good place to put keybindings.")
-
+
(run-hooks 'inf-ruby-load-hook)
(provide 'inf-ruby)
diff --git a/misc/rb_optparse.bash b/misc/rb_optparse.bash
new file mode 100644
index 0000000000..8a59ec2dda
--- /dev/null
+++ b/misc/rb_optparse.bash
@@ -0,0 +1,20 @@
+#! /bin/bash
+# Completion for bash:
+#
+# (1) install this file,
+#
+# (2) load the script, and
+# . ~/.profile.d/rb_optparse.bash
+#
+# (3) define completions in your .bashrc,
+# rb_optparse command_using_optparse_1
+# rb_optparse command_using_optparse_2
+
+_rb_optparse() {
+ COMPREPLY=($("${COMP_WORDS[0]}" "--*-completion-bash=${COMP_WORDS[COMP_CWORD]}"))
+ return 0
+}
+
+rb_optparse () {
+ [ $# = 0 ] || complete -o default -F _rb_optparse "$@"
+}
diff --git a/misc/rb_optparse.zsh b/misc/rb_optparse.zsh
new file mode 100755
index 0000000000..d53170c5f7
--- /dev/null
+++ b/misc/rb_optparse.zsh
@@ -0,0 +1,38 @@
+#!/bin/zsh
+# Completion for zsh:
+# (based on <http://d.hatena.ne.jp/rubikitch/20071002/zshcomplete>)
+#
+# (1) install this file.
+# mkdir -p ~/.zsh.d
+# cp rb_optparse.zsh ~/.zsh.d/rb_optparse.zsh
+#
+# (2) load the script, and add a directory to fpath before compinit.
+# echo '. ~/.zsh.d/rb_optparse.zsh' >> ~/.zshrc
+# echo 'fpath=(~/.zsh.d/Completion $fpath)' >> ~/.zshrc
+# echo 'autoload -U compinit; compinit' >> ~/.zshrc
+#
+# (3) restart zsh.
+#
+# (4) geneate completion files once.
+# generate-complete-function/ruby/optparse COMMAND1
+# generate-complete-function/ruby/optparse COMMAND2
+#
+
+generate-complete-function/ruby/optparse ()
+{
+ local cmpl="_${1:t}"
+ mkdir -p "${ZSH_COMPLETION_DIR-$HOME/.zsh.d/Completion}"
+ $1 "--*-completion-zsh=${1:t}" >! "${ZSH_COMPLETION_DIR-$HOME/.zsh.d/Completion}/$cmpl"
+ if [[ $(type -w "$cmpl") == "${cmpl}: function" ]]; then
+ unfunction "$cmpl"
+ autoload -U "$cmpl"
+ else
+ compinit "$cmpl"
+ fi
+}
+
+compdef _command generate-complete-function/ruby/optparse
+
+for cmd in "$@"; do
+ generate-complete-function/ruby/optparse "$cmd"
+done
diff --git a/misc/rdoc-mode.el b/misc/rdoc-mode.el
new file mode 100644
index 0000000000..ec715798ae
--- /dev/null
+++ b/misc/rdoc-mode.el
@@ -0,0 +1,130 @@
+;;
+;; rdoc-mode.el
+;; Major mode for RDoc editing
+;;
+
+;; Created: Fri Sep 18 09:04:49 JST 2009
+
+;; License: Ruby's
+
+(require 'derived)
+(define-derived-mode rdoc-mode text-mode "RDoc"
+ "Major mode for RD editing.
+\\{rdoc-mode-map}"
+ (make-local-variable 'paragraph-separate)
+ (setq paragraph-separate "^\\(=+\\|\\*+\\)[ \t\v\f]*\\|^\\s *$")
+ (make-local-variable 'paragraph-start)
+ (setq paragraph-start paragraph-separate)
+ (make-local-variable 'require-final-newline)
+ (setq require-final-newline t)
+ (make-local-variable 'font-lock-defaults)
+ (setq font-lock-defaults '((rdoc-font-lock-keywords) t nil))
+ (make-local-variable 'font-lock-keywords)
+ (setq font-lock-keywords rdoc-font-lock-keywords)
+ (make-local-variable 'outline-regexp)
+ (setq outline-regexp "^\\(=+\\)[ \t\v\f]*")
+ (outline-minor-mode t)
+ (setq show-trailing-whitespace t)
+ (rdoc-setup-keys)
+ (setq indent-tabs-mode nil)
+ (run-hooks 'rdoc-mode-hook)
+ )
+
+(defun rdoc-fill-paragraph (&rest args)
+ "Fills paragraph, except for cited region"
+ (interactive (progn
+ (barf-if-buffer-read-only)
+ (list (if current-prefix-arg 'full))))
+ (save-excursion
+ (beginning-of-line)
+ (unless (looking-at "^ +")
+ (apply 'fill-paragraph args))))
+
+(defun rdoc-setup-keys ()
+ (interactive)
+ (define-key rdoc-mode-map "\M-q" 'rdoc-fill-paragraph)
+ )
+
+(defvar rdoc-heading1-face 'font-lock-keywordoc-face)
+(defvar rdoc-heading2-face 'font-lock-type-face)
+(defvar rdoc-heading3-face 'font-lock-variable-name-face)
+(defvar rdoc-heading4-face 'font-lock-comment-face)
+(defvar rdoc-bold-face 'font-lock-function-name-face)
+(defvar rdoc-emphasis-face 'font-lock-function-name-face)
+(defvar rdoc-code-face 'font-lock-keyword-face)
+(defvar rdoc-description-face 'font-lock-constant-face)
+
+(defvar rdoc-font-lock-keywords
+ (list
+ (list "^=([^=\r\n].*)?$"
+ 0 rdoc-heading1-face)
+ (list "^==([^=\r\n].*)?$"
+ 0 rdoc-heading2-face)
+ (list "^===([^=\r\n].*)?$"
+ 0 rdoc-heading3-face)
+ (list "^====+.*$"
+ 0 rdoc-heading4-face)
+ (list "\\(^\\|[ \t\v\f]\\)\\(\\*\\(\\sw\\|[-_:]\\)+\\*\\)\\($\\|[ \t\v\f]\\)"
+ 2 rdoc-bold-face) ; *bold*
+ (list "\\(^\\|[ \t\v\f]\\)\\(_\\(\\sw\\|[-_:]\\)+_\\)\\($\\|[ \t\v\f]\\)"
+ 2 rdoc-emphasis-face) ; _emphasis_
+ (list "\\(^\\|[ \t\v\f]\\)\\(\\+\\(\\sw\\|[-_:]\\)+\\+\\)\\($\\|[ \t\v\f]\\)"
+ 2 rdoc-code-face) ; +code+
+ (list "<em>[^<>]*</em>" 0 rdoc-emphasis-face)
+ (list "<i>[^<>]*</i>" 0 rdoc-emphasis-face)
+ (list "<b>[^<>]*</b>" 0 rdoc-bold-face)
+ (list "<tt>[^<>]*</tt>" 0 rdoc-code-face)
+ (list "<code>[^<>]*</code>" 0 rdoc-code-face)
+ (list "^\\([-*]\\|[0-9]+\\.\\|[A-Za-z]\\.\\)\\s "
+ 1 rdoc-description-face) ; bullet | numbered | alphabetically numbered
+ (list "^\\[[^\]]*\\]\\|\\S .*::\\)\\([ \t\v\f]\\|$\\)"
+ 1 rdoc-description-face) ; labeled | node
+ ;(list "^[ \t\v\f]+\\(.*\\)" 1 rdoc-verbatim-face)
+ ))
+
+(defun rdoc-imenu-create-index ()
+ (let ((root '(nil . nil))
+ cur-alist
+ (cur-level 0)
+ (pattern (concat outline-regexp "\\(.*?\\)[ \t\v\f]*$"))
+ (empty-heading "-")
+ (self-heading ".")
+ pos level heading alist)
+ (save-excursion
+ (goto-char (point-min))
+ (while (re-search-forward pattern (point-max) t)
+ (setq heading (match-string-no-properties 2)
+ level (min 6 (length (match-string-no-properties 1)))
+ pos (match-beginning 1))
+ (if (= (length heading) 0)
+ (setq heading empty-heading))
+ (setq alist (list (cons heading pos)))
+ (cond
+ ((= cur-level level) ; new sibling
+ (setcdr cur-alist alist)
+ (setq cur-alist alist))
+ ((< cur-level level) ; first child
+ (dotimes (i (- level cur-level 1))
+ (setq alist (list (cons empty-heading alist))))
+ (if cur-alist
+ (let* ((parent (car cur-alist))
+ (self-pos (cdr parent)))
+ (setcdr parent (cons (cons self-heading self-pos) alist)))
+ (setcdr root alist)) ; primogenitor
+ (setq cur-alist alist
+ cur-level level))
+ (t ; new sibling of an ancestor
+ (let ((sibling-alist (last (cdr root))))
+ (dotimes (i (1- level))
+ (setq sibling-alist (last (cdar sibling-alist))))
+ (setcdr sibling-alist alist)
+ (setq cur-alist alist
+ cur-level level))))))
+ (cdr root)))
+
+(defun rdoc-set-imenu-create-index-function ()
+ (setq imenu-create-index-function 'rdoc-imenu-create-index))
+
+(add-hook 'rdoc-mode-hook 'rdoc-set-imenu-create-index-function)
+
+(provide 'rdoc-mode)
diff --git a/misc/ruby-electric.el b/misc/ruby-electric.el
index 174bd00fd9..6c1ad9a88a 100644
--- a/misc/ruby-electric.el
+++ b/misc/ruby-electric.el
@@ -85,7 +85,7 @@ inserted. The word 'all' will do all insertions."
(const :tag "Double quote" ?\" )
(const :tag "Back quote" ?\` )
(const :tag "Vertical bar" ?\| ))
- :group 'ruby-electric)
+ :group 'ruby-electric)
(defcustom ruby-electric-newline-before-closing-bracket nil
"*Controls whether a newline should be inserted before the
@@ -142,13 +142,13 @@ strings. Note that you must have Font Lock enabled."
(defun ruby-electric-is-last-command-char-expandable-punct-p()
(or (memq 'all ruby-electric-expand-delimiters-list)
- (memq last-command-char ruby-electric-expand-delimiters-list)))
+ (memq last-command-char ruby-electric-expand-delimiters-list)))
(defun ruby-electric-space-can-be-expanded-p()
(if (ruby-electric-code-at-point-p)
- (let* ((ruby-electric-keywords-re
+ (let* ((ruby-electric-keywords-re
(concat ruby-electric-simple-keywords-re "\\s-$"))
- (ruby-electric-single-keyword-in-line-re
+ (ruby-electric-single-keyword-in-line-re
(concat "\\s-*" ruby-electric-keywords-re)))
(save-excursion
(backward-word 1)
@@ -171,6 +171,11 @@ strings. Note that you must have Font Lock enabled."
(newline))
(insert "}")))
((ruby-electric-string-at-point-p)
+ (if (eq last-command-event ?{)
+ (save-excursion
+ (when (not (char-equal ?\# (preceding-char)))
+ (delete-backward-char)
+ (insert "#"))))
(save-excursion
(backward-char 1)
(when (char-equal ?\# (preceding-char))
@@ -183,7 +188,7 @@ strings. Note that you must have Font Lock enabled."
(and (ruby-electric-is-last-command-char-expandable-punct-p)
(ruby-electric-code-at-point-p)
(save-excursion
- (insert (cdr (assoc last-command-char
+ (insert (cdr (assoc last-command-char
ruby-electric-matching-delimeter-alist))))))
(defun ruby-electric-bar(arg)
@@ -193,7 +198,7 @@ strings. Note that you must have Font Lock enabled."
(ruby-electric-code-at-point-p)
(and (save-excursion (re-search-backward ruby-electric-expandable-bar nil t))
(= (point) (match-end 0))) ;looking-back is missing on XEmacs
- (save-excursion
+ (save-excursion
(insert "|"))))
diff --git a/misc/ruby-mode.el b/misc/ruby-mode.el
index 70acd7266b..4065f4258a 100644
--- a/misc/ruby-mode.el
+++ b/misc/ruby-mode.el
@@ -72,7 +72,7 @@
"Regexp to match")
(defconst ruby-indent-beg-re
- (concat "\\(\\s *" (regexp-opt '("class" "module" "def") t) "\\)"
+ (concat "\\(\\s *" (regexp-opt '("class" "module" "def") t) "\\)\\|"
(regexp-opt '("if" "unless" "case" "while" "until" "for" "begin")))
"Regexp to match where the indentation gets deeper.")
@@ -121,13 +121,15 @@
(match-string 6)))))
(defun ruby-here-doc-beg-match ()
- (let ((contents (regexp-quote (concat (match-string 2) (match-string 3)))))
+ (let ((contents (concat
+ (regexp-quote (concat (match-string 2) (match-string 3)))
+ (if (string= (match-string 3) "_") "\\B" "\\b"))))
(concat "<<"
(let ((match (match-string 1)))
(if (and match (> (length match) 0))
(concat "\\(?:-\\([\"']?\\)\\|\\([\"']\\)" (match-string 1) "\\)"
- contents "\\b\\(\\1\\|\\2\\)")
- (concat "-?\\([\"']\\|\\)" contents "\\b\\1"))))))
+ contents "\\(\\1\\|\\2\\)")
+ (concat "-?\\([\"']\\|\\)" contents "\\1"))))))
(defconst ruby-delimiter
(concat "[?$/%(){}#\"'`.:]\\|<<\\|\\[\\|\\]\\|\\<\\("
@@ -170,7 +172,8 @@
(define-key ruby-mode-map "\t" 'ruby-indent-command)
(define-key ruby-mode-map "\C-c\C-e" 'ruby-insert-end)
(define-key ruby-mode-map "\C-j" 'ruby-reindent-then-newline-and-indent)
- (define-key ruby-mode-map "\C-m" 'newline))
+ (define-key ruby-mode-map "\C-c{" 'ruby-toggle-block)
+ (define-key ruby-mode-map "\C-c\C-u" 'uncomment-region))
(defvar ruby-mode-syntax-table nil
"Syntax table in use in ruby-mode buffers.")
@@ -244,6 +247,8 @@ Also ignores spaces after parenthesis when 'space."
"*Use `ruby-encoding-map' to set encoding magic comment if this is non-nil."
:type 'boolean :group 'ruby)
+(defvar ruby-indent-point nil "internal variable")
+
(eval-when-compile (require 'cl))
(defun ruby-imenu-create-index-in-block (prefix beg end)
(let ((index-alist '()) (case-fold-search nil)
@@ -293,18 +298,19 @@ Also ignores spaces after parenthesis when 'space."
(defun ruby-mode-variables ()
(set-syntax-table ruby-mode-syntax-table)
+ (setq show-trailing-whitespace t)
(setq local-abbrev-table ruby-mode-abbrev-table)
(make-local-variable 'indent-line-function)
(setq indent-line-function 'ruby-indent-line)
(make-local-variable 'require-final-newline)
(setq require-final-newline t)
- (make-variable-buffer-local 'comment-start)
+ (make-local-variable 'comment-start)
(setq comment-start "# ")
- (make-variable-buffer-local 'comment-end)
+ (make-local-variable 'comment-end)
(setq comment-end "")
- (make-variable-buffer-local 'comment-column)
+ (make-local-variable 'comment-column)
(setq comment-column ruby-comment-column)
- (make-variable-buffer-local 'comment-start-skip)
+ (make-local-variable 'comment-start-skip)
(setq comment-start-skip "#+ *")
(setq indent-tabs-mode ruby-indent-tabs-mode)
(make-local-variable 'parse-sexp-ignore-comments)
@@ -338,7 +344,7 @@ Also ignores spaces after parenthesis when 'space."
(cdr (assq coding-system ruby-encoding-map)))
coding-system))
"ascii-8bit"))
- (if (looking-at "^#![^\n]*ruby") (beginning-of-line 2))
+ (if (looking-at "^#!") (beginning-of-line 2))
(cond ((looking-at "\\s *#.*-\*-\\s *\\(en\\)?coding\\s *:\\s *\\([-a-z0-9_]*\\)\\s *\\(;\\|-\*-\\)")
(unless (string= (match-string 2) coding-system)
(goto-char (match-beginning 2))
@@ -353,45 +359,6 @@ Also ignores spaces after parenthesis when 'space."
(t (insert "# -*- coding: " coding-system " -*-\n"))
)))))
-;;;###autoload
-(defun ruby-mode ()
- "Major mode for editing ruby scripts.
-\\[ruby-indent-command] properly indents subexpressions of multi-line
-class, module, def, if, while, for, do, and case statements, taking
-nesting into account.
-
-The variable ruby-indent-level controls the amount of indentation.
-\\{ruby-mode-map}"
- (interactive)
- (kill-all-local-variables)
- (use-local-map ruby-mode-map)
- (setq mode-name "Ruby")
- (setq major-mode 'ruby-mode)
- (ruby-mode-variables)
-
- (make-local-variable 'imenu-create-index-function)
- (setq imenu-create-index-function 'ruby-imenu-create-index)
-
- (make-local-variable 'add-log-current-defun-function)
- (setq add-log-current-defun-function 'ruby-add-log-current-method)
-
- (add-hook
- (cond ((boundp 'before-save-hook)
- (make-local-variable 'before-save-hook)
- 'before-save-hook)
- ((boundp 'write-contents-functions) 'write-contents-functions)
- ((boundp 'write-contents-hooks) 'write-contents-hooks))
- 'ruby-mode-set-encoding)
-
- (set (make-local-variable 'font-lock-defaults) '((ruby-font-lock-keywords) nil nil))
- (set (make-local-variable 'font-lock-keywords) ruby-font-lock-keywords)
- (set (make-local-variable 'font-lock-syntax-table) ruby-font-lock-syntax-table)
- (set (make-local-variable 'font-lock-syntactic-keywords) ruby-font-lock-syntactic-keywords)
-
- (if (fboundp 'run-mode-hooks)
- (run-mode-hooks 'ruby-mode-hook)
- (run-hooks 'ruby-mode-hook)))
-
(defun ruby-current-indentation ()
(save-excursion
(beginning-of-line)
@@ -434,6 +401,12 @@ The variable ruby-indent-level controls the amount of indentation.
((and (eq c ?:) (or (not b) (eq (char-syntax b) ? ))))
((eq c ?\\) (eq b ??)))))
+(defun ruby-singleton-class-p ()
+ (save-excursion
+ (forward-word -1)
+ (and (or (bolp) (not (eq (char-before (point)) ?_)))
+ (looking-at "class\\s *<<"))))
+
(defun ruby-expr-beg (&optional option)
(save-excursion
(store-match-data nil)
@@ -447,7 +420,8 @@ The variable ruby-indent-level controls the amount of indentation.
(or (eq (char-syntax (char-before (point))) ?w)
(ruby-special-char-p))))
nil)
- ((and (eq option 'heredoc) (< space 0)) t)
+ ((and (eq option 'heredoc) (< space 0))
+ (not (progn (goto-char start) (ruby-singleton-class-p))))
((or (looking-at ruby-operator-re)
(looking-at "[\\[({,;]")
(and (looking-at "[!?]")
@@ -463,7 +437,7 @@ The variable ruby-indent-level controls the amount of indentation.
ruby-block-mid-keywords)
'words))
(goto-char (match-end 0))
- (not (looking-at "\\s_")))
+ (not (looking-at "\\s_\\|[!?:]")))
((eq option 'expr-qstr)
(looking-at "[a-zA-Z][a-zA-z0-9_]* +%[^ \t]"))
((eq option 'expr-re)
@@ -520,7 +494,7 @@ The variable ruby-indent-level controls the amount of indentation.
(t
(setq in-string (point))
(goto-char end))))
- ((looking-at "/=")
+ ((looking-at "/=")
(goto-char pnt))
((looking-at "/")
(cond
@@ -635,6 +609,7 @@ The variable ruby-indent-level controls the amount of indentation.
(not (eq ?_ w))
(not (eq ?! w))
(not (eq ?? w))
+ (not (eq ?: w))
(skip-chars-forward " \t")
(goto-char (match-beginning 0))
(or (not (looking-at ruby-modifier-re))
@@ -689,10 +664,10 @@ The variable ruby-indent-level controls the amount of indentation.
(goto-char pnt))
((looking-at ruby-here-doc-beg-re)
(if (re-search-forward (ruby-here-doc-end-match)
- indent-point t)
+ ruby-indent-point t)
(forward-line 1)
(setq in-string (match-end 0))
- (goto-char indent-point)))
+ (goto-char ruby-indent-point)))
(t
(error (format "bad string %s"
(buffer-substring (point) pnt)
@@ -722,7 +697,7 @@ The variable ruby-indent-level controls the amount of indentation.
(defun ruby-calculate-indent (&optional parse-start)
(save-excursion
(beginning-of-line)
- (let ((indent-point (point))
+ (let ((ruby-indent-point (point))
(case-fold-search nil)
state bol eol begin op-end
(paren (progn (skip-syntax-forward " ")
@@ -734,7 +709,7 @@ The variable ruby-indent-level controls the amount of indentation.
(setq parse-start (point)))
(back-to-indentation)
(setq indent (current-column))
- (setq state (ruby-parse-region parse-start indent-point))
+ (setq state (ruby-parse-region parse-start ruby-indent-point))
(cond
((nth 0 state) ; within string
(setq indent nil)) ; do nothing
@@ -745,7 +720,7 @@ The variable ruby-indent-level controls the amount of indentation.
(cond ((and (eq deep t) (eq (car (nth 1 state)) paren))
(skip-syntax-backward " ")
(setq indent (1- (current-column))))
- ((let ((s (ruby-parse-region (point) indent-point)))
+ ((let ((s (ruby-parse-region (point) ruby-indent-point)))
(and (nth 2 s) (> (nth 2 s) 0)
(or (goto-char (cdr (nth 1 s))) t)))
(forward-word -1)
@@ -775,11 +750,11 @@ The variable ruby-indent-level controls the amount of indentation.
(setq indent (ruby-indent-size (current-column) (nth 2 state))))
(t
(setq indent (+ (current-column) ruby-indent-level)))))
-
+
((and (nth 2 state) (< (nth 2 state) 0)) ; in negative nest
(setq indent (ruby-indent-size (current-column) (nth 2 state)))))
(when indent
- (goto-char indent-point)
+ (goto-char ruby-indent-point)
(end-of-line)
(setq eol (point))
(beginning-of-line)
@@ -872,7 +847,7 @@ The variable ruby-indent-level controls the amount of indentation.
((car (nth 1 state)) indent)
(t
(+ indent ruby-indent-level))))))))
- (goto-char indent-point)
+ (goto-char ruby-indent-point)
(beginning-of-line)
(skip-syntax-forward " ")
(if (looking-at "\\.[^.]")
@@ -922,7 +897,7 @@ An end of a defun is found by moving forward from the beginning of one."
(forward-line 1))
(defun ruby-move-to-block (n)
- (let (start pos done down)
+ (let (start pos done down (orig (point)))
(setq start (ruby-calculate-indent))
(setq down (looking-at (if (< n 0) ruby-block-end-re
(concat "\\<\\(" ruby-block-beg-re "\\)\\>"))))
@@ -948,8 +923,18 @@ An end of a defun is found by moving forward from the beginning of one."
(save-excursion
(back-to-indentation)
(if (looking-at (concat "\\<\\(" ruby-block-mid-re "\\)\\>"))
- (setq done nil))))))
- (back-to-indentation))
+ (setq done nil)))))
+ (back-to-indentation)
+ (when (< n 0)
+ (let ((eol (point-at-eol)) state next)
+ (if (< orig eol) (setq eol orig))
+ (setq orig (point))
+ (while (and (setq next (apply 'ruby-parse-partial eol state))
+ (< (point) eol))
+ (setq state next))
+ (when (cdaadr state)
+ (goto-char (cdaadr state)))
+ (backward-word)))))
(defun-region-command ruby-beginning-of-block (&optional arg)
"Move backward to next beginning-of-block"
@@ -969,6 +954,7 @@ An end of a defun is found by moving forward from the beginning of one."
(condition-case nil
(while (> i 0)
(skip-syntax-forward " ")
+ (if (looking-at ",\\s *") (goto-char (match-end 0)))
(cond ((looking-at "\\?\\(\\\\[CM]-\\)*\\\\?\\S ")
(goto-char (match-end 0)))
((progn
@@ -1111,7 +1097,7 @@ balanced expression is found."
(concat "^[ \t]*\\(def\\|class\\|module\\)[ \t]+"
"\\("
;; \\. and :: for class method
- "\\([A-Za-z_]" ruby-symbol-re "*\\|\\.\\|::" "\\)"
+ "\\([A-Za-z_]" ruby-symbol-re "*\\|\\.\\|::" "\\)"
"+\\)")
nil t)
(progn
@@ -1162,12 +1148,62 @@ balanced expression is found."
(if mlist (concat mlist mname) mname)
mlist)))))
-(cond
- ((featurep 'font-lock)
+(defun ruby-brace-to-do-end ()
+ (when (looking-at "{")
+ (let ((orig (point)) (end (progn (ruby-forward-sexp) (point))))
+ (when (eq (char-before) ?\})
+ (delete-char -1)
+ (if (eq (char-syntax (char-before)) ?w)
+ (insert " "))
+ (insert "end")
+ (if (eq (char-syntax (char-after)) ?w)
+ (insert " "))
+ (goto-char orig)
+ (delete-char 1)
+ (if (eq (char-syntax (char-before)) ?w)
+ (insert " "))
+ (insert "do")
+ (when (looking-at "\\sw\\||")
+ (insert " ")
+ (backward-char))
+ t))))
+
+(defun ruby-do-end-to-brace ()
+ (when (and (or (bolp)
+ (not (memq (char-syntax (char-before)) '(?w ?_))))
+ (looking-at "\\<do\\(\\s \\|$\\)"))
+ (let ((orig (point)) (end (progn (ruby-forward-sexp) (point))))
+ (backward-char 3)
+ (when (looking-at ruby-block-end-re)
+ (delete-char 3)
+ (insert "}")
+ (goto-char orig)
+ (delete-char 2)
+ (insert "{")
+ (if (looking-at "\\s +|")
+ (delete-char (- (match-end 0) (match-beginning 0) 1)))
+ t))))
+
+(defun ruby-toggle-block ()
+ (interactive)
+ (or (ruby-brace-to-do-end)
+ (ruby-do-end-to-brace)))
+
+(eval-when-compile
+ (if (featurep 'font-lock)
+ (defmacro eval-when-font-lock-available (&rest args) (cons 'progn args))
+ (defmacro eval-when-font-lock-available (&rest args))))
+
+(eval-when-compile
+ (if (featurep 'hilit19)
+ (defmacro eval-when-hilit19-available (&rest args) (cons 'progn args))
+ (defmacro eval-when-hilit19-available (&rest args))))
+
+(eval-when-font-lock-available
(or (boundp 'font-lock-variable-name-face)
(setq font-lock-variable-name-face font-lock-type-face))
- (setq ruby-font-lock-syntactic-keywords
+ (defconst ruby-font-lock-syntactic-keywords
`(
;; #{ }, #$hoge, #@foo are not comments
("\\(#\\)[{$@]" 1 (1 . nil))
@@ -1180,7 +1216,7 @@ balanced expression is found."
;; ?' ?" ?` are ascii codes
("\\(^\\|[^\\\\]\\)\\(\\\\\\\\\\)*[?$]\\([#\"'`]\\)" 3 (1 . nil))
;; regexps
- ("\\(^\\|[=(,~?:;<>]\\|\\(^\\|\\s \\)\\(if\\|elsif\\|unless\\|while\\|until\\|when\\|and\\|or\\|&&\\|||\\)\\|g?sub!?\\|scan\\|split!?\\)\\s *\\(/\\)[^/\n\\\\]*\\(\\\\.[^/\n\\\\]*\\)*\\(/\\)"
+ ("\\(^\\|[[=(,~?:;<>]\\|\\(^\\|\\s \\)\\(if\\|elsif\\|unless\\|while\\|until\\|when\\|and\\|or\\|&&\\|||\\)\\|g?sub!?\\|scan\\|split!?\\)\\s *\\(/\\)[^/\n\\\\]*\\(\\\\.[^/\n\\\\]*\\)*\\(/\\)"
(4 (7 . ?/))
(6 (7 . ?/)))
("^\\(=\\)begin\\(\\s \\|$\\)" 1 (7 . nil))
@@ -1223,7 +1259,8 @@ balanced expression is found."
(let ((old-point (point)) (case-fold-search nil))
(beginning-of-line)
(catch 'found-beg
- (while (re-search-backward ruby-here-doc-beg-re nil t)
+ (while (and (re-search-backward ruby-here-doc-beg-re nil t)
+ (not (ruby-singleton-class-p)))
(if (not (or (ruby-in-ppss-context-p 'anything)
(ruby-here-doc-find-end old-point)))
(throw 'found-beg t)))))))
@@ -1276,7 +1313,7 @@ buffer position `limit' or the end of the buffer."
(not (re-search-forward ruby-here-doc-beg-re eol t))))
(string-to-syntax "|")))))))
- (if (featurep 'xemacs)
+ (eval-when-compile
(put 'ruby-mode 'font-lock-defaults
'((ruby-font-lock-keywords)
nil nil nil
@@ -1388,6 +1425,7 @@ buffer position `limit' or the end of the buffer."
;; symbols
'("\\(^\\|[^:]\\)\\(:\\([-+~]@?\\|[/%&|^`]\\|\\*\\*?\\|<\\(<\\|=>?\\)?\\|>[>=]?\\|===?\\|=~\\|![~=]?\\|\\[\\]=?\\|\\(\\w\\|_\\)+\\([!?=]\\|\\b_*\\)\\|#{[^}\n\\\\]*\\(\\\\.[^}\n\\\\]*\\)*}\\)\\)"
2 font-lock-reference-face)
+ '("\\(^\\s *\\|[\[\{\(,]\\s *\\|\\sw\\s +\\)\\(\\(\\sw\\|_\\)+\\):[^:]" 2 font-lock-reference-face)
;; expression expansion
'("#\\({[^}\n\\\\]*\\(\\\\.[^}\n\\\\]*\\)*}\\|\\(\\$\\|@\\|@@\\)\\(\\w\\|_\\)+\\)"
0 font-lock-variable-name-face t)
@@ -1397,7 +1435,7 @@ buffer position `limit' or the end of the buffer."
)
"*Additional expressions to highlight in ruby mode."))
- ((featurep 'hilit19)
+(eval-when-hilit19-available
(hilit-set-mode-patterns
'ruby-mode
'(("[^$\\?]\\(\"[^\\\"]*\\(\\\\\\(.\\|\n\\)[^\\\"]*\\)*\"\\)" 1 string)
@@ -1414,7 +1452,45 @@ buffer position `limit' or the end of the buffer."
("\\$\\(.\\|\\sw+\\)" nil type)
("[$@].[a-zA-Z_0-9]*" nil struct)
("^__END__" nil label))))
- )
+;;;###autoload
+(defun ruby-mode ()
+ "Major mode for editing ruby scripts.
+\\[ruby-indent-command] properly indents subexpressions of multi-line
+class, module, def, if, while, for, do, and case statements, taking
+nesting into account.
+
+The variable ruby-indent-level controls the amount of indentation.
+\\{ruby-mode-map}"
+ (interactive)
+ (kill-all-local-variables)
+ (use-local-map ruby-mode-map)
+ (setq mode-name "Ruby")
+ (setq major-mode 'ruby-mode)
+ (ruby-mode-variables)
+
+ (make-local-variable 'imenu-create-index-function)
+ (setq imenu-create-index-function 'ruby-imenu-create-index)
+
+ (make-local-variable 'add-log-current-defun-function)
+ (setq add-log-current-defun-function 'ruby-add-log-current-method)
+
+ (add-hook
+ (cond ((boundp 'before-save-hook)
+ (make-local-variable 'before-save-hook)
+ 'before-save-hook)
+ ((boundp 'write-contents-functions) 'write-contents-functions)
+ ((boundp 'write-contents-hooks) 'write-contents-hooks))
+ 'ruby-mode-set-encoding)
+
+ (set (make-local-variable 'font-lock-defaults) '((ruby-font-lock-keywords) nil nil))
+ (set (make-local-variable 'font-lock-keywords) ruby-font-lock-keywords)
+ (set (make-local-variable 'font-lock-syntax-table) ruby-font-lock-syntax-table)
+ (set (make-local-variable 'font-lock-syntactic-keywords) ruby-font-lock-syntactic-keywords)
+
+ (if (fboundp 'run-mode-hooks)
+ (run-mode-hooks 'ruby-mode-hook)
+ (run-hooks 'ruby-mode-hook)))
+
(provide 'ruby-mode)
diff --git a/misc/ruby-style.el b/misc/ruby-style.el
index 0fe4a83089..3ce55cd1ab 100644
--- a/misc/ruby-style.el
+++ b/misc/ruby-style.el
@@ -7,20 +7,21 @@
;;; $Author$
;;; created at: Thu Apr 26 13:54:01 JST 2007
;;;
-;;; sets ruby style if it seems like a source of ruby.
+;;; To switch to the "ruby" style automatically if it looks like a
+;;; source file of ruby, add ruby-style-c-mode to c-mode-hook:
;;;
;;; (require 'ruby-style)
;;; (add-hook 'c-mode-hook 'ruby-style-c-mode)
;;; (add-hook 'c++-mode-hook 'ruby-style-c-mode)
;;;
-;;; uses ruby style always.
-;;; (setq-default c-file-style "ruby")
+;;; Customize the c-default-style variable to set the default style
+;;; for each CC major mode.
(defconst ruby-style-revision "$Revision$"
"Ruby style revision string.")
(defconst ruby-style-version
- (progn
+ (and
(string-match "[0-9.]+" ruby-style-revision)
(substring ruby-style-revision (match-beginning 0) (match-end 0)))
"Ruby style version number.")
@@ -53,6 +54,7 @@
(c-basic-offset . 4)
(tab-width . 8)
(indent-tabs-mode . t)
+ (setq show-trailing-whitespace t)
(c-offsets-alist
(case-label . *)
(label . (ruby-style-label-indent *))
@@ -71,6 +73,6 @@
(case-fold-search nil))
(goto-char (point-min))
(re-search-forward "Copyright (C) .* Yukihiro Matsumoto" head t))))
- (setq c-file-style "ruby")))
+ (c-set-style "ruby")))
(provide 'ruby-style)
diff --git a/missing/alloca.c b/missing/alloca.c
index 620eef12e5..efc1a77dff 100644
--- a/missing/alloca.c
+++ b/missing/alloca.c
@@ -6,7 +6,7 @@
This implementation of the PWB library alloca() function,
which is used to allocate space off the run-time stack so
- that it is automatically reclaimed upon procedure exit,
+ that it is automatically reclaimed upon procedure exit,
was inspired by discussions with J. Q. Johnson of Cornell.
It should work under any C implementation that uses an
@@ -54,7 +54,7 @@ typedef char *pointer; /* generic pointer type */
#define NULL 0 /* null pointer constant */
-#ifdef RUBY_LIB
+#ifdef RUBY_LIB_PREFIX
#define xmalloc ruby_xmalloc
#define xfree ruby_xfree
#endif
diff --git a/missing/cbrt.c b/missing/cbrt.c
index 54db2703a0..1bcbc63392 100644
--- a/missing/cbrt.c
+++ b/missing/cbrt.c
@@ -1,3 +1,4 @@
+#include "ruby/missing.h"
#include <math.h>
double cbrt(double x)
diff --git a/missing/close.c b/missing/close.c
new file mode 100644
index 0000000000..831e75efe1
--- /dev/null
+++ b/missing/close.c
@@ -0,0 +1,72 @@
+/* Ignore ECONNRESET of FreeBSD */
+#include "ruby/missing.h"
+#include <errno.h>
+#include <unistd.h>
+#include <sys/types.h>
+#include <sys/socket.h>
+
+#undef getpeername
+int
+ruby_getpeername(int s, struct sockaddr * name,
+ socklen_t * namelen)
+{
+ int err = errno;
+ errno = 0;
+ s = getpeername(s, name, namelen);
+ if (errno == ECONNRESET) {
+ errno = 0;
+ s = 0;
+ }
+ else if (errno == 0)
+ errno = err;
+ return s;
+}
+
+#undef getsockname
+int
+ruby_getsockname(int s, struct sockaddr * name,
+ socklen_t * namelen)
+{
+ int err = errno;
+ errno = 0;
+ s = getsockname(s, name, namelen);
+ if (errno == ECONNRESET) {
+ errno = 0;
+ s = 0;
+ }
+ else if (errno == 0)
+ errno = err;
+ return s;
+}
+
+#undef shutdown
+int
+ruby_shutdown(int s, int how)
+{
+ int err = errno;
+ errno = 0;
+ s = shutdown(s, how);
+ if (errno == ECONNRESET) {
+ errno = 0;
+ s = 0;
+ }
+ else if (errno == 0)
+ errno = err;
+ return s;
+}
+
+#undef close
+int
+ruby_close(int s)
+{
+ int err = errno;
+ errno = 0;
+ s = close(s);
+ if (errno == ECONNRESET) {
+ errno = 0;
+ s = 0;
+ }
+ else if (errno == 0)
+ errno = err;
+ return s;
+}
diff --git a/missing/crypt.c b/missing/crypt.c
index d5a9281f77..68a4d2bf13 100644
--- a/missing/crypt.c
+++ b/missing/crypt.c
@@ -34,6 +34,7 @@
static char sccsid[] = "@(#)crypt.c 8.1 (Berkeley) 6/4/93";
#endif /* LIBC_SCCS and not lint */
+#include "ruby/missing.h"
#ifdef HAVE_UNISTD_H
#include <unistd.h>
#endif
@@ -257,21 +258,21 @@ typedef union {
*/
#define TO_SIX_BIT(rslt, src) { \
C_block cvt; \
- cvt.b[0] = (unsigned char)src; src >>= 6; \
- cvt.b[1] = (unsigned char)src; src >>= 6; \
- cvt.b[2] = (unsigned char)src; src >>= 6; \
- cvt.b[3] = (unsigned char)src; \
- rslt = (cvt.b32.i0 & 0x3f3f3f3fL) << 2; \
+ cvt.b[0] = (unsigned char)(src); (src) >>= 6; \
+ cvt.b[1] = (unsigned char)(src); (src) >>= 6; \
+ cvt.b[2] = (unsigned char)(src); (src) >>= 6; \
+ cvt.b[3] = (unsigned char)(src); \
+ (rslt) = (cvt.b32.i0 & 0x3f3f3f3fL) << 2; \
}
/*
* These macros may someday permit efficient use of 64-bit integers.
*/
-#define ZERO(d,d0,d1) d0 = 0, d1 = 0
-#define LOAD(d,d0,d1,bl) d0 = (bl).b32.i0, d1 = (bl).b32.i1
-#define LOADREG(d,d0,d1,s,s0,s1) d0 = s0, d1 = s1
-#define OR(d,d0,d1,bl) d0 |= (bl).b32.i0, d1 |= (bl).b32.i1
-#define STORE(s,s0,s1,bl) (bl).b32.i0 = s0, (bl).b32.i1 = s1
+#define ZERO(d,d0,d1) ((d0) = 0, (d1) = 0)
+#define LOAD(d,d0,d1,bl) ((d0) = (bl).b32.i0, (d1) = (bl).b32.i1)
+#define LOADREG(d,d0,d1,s,s0,s1) ((d0) = (s0), (d1) = (s1))
+#define OR(d,d0,d1,bl) ((d0) |= (bl).b32.i0, (d1) |= (bl).b32.i1)
+#define STORE(s,s0,s1,bl) ((bl).b32.i0 = (s0), (bl).b32.i1 = (s1))
#define DCL_BLOCK(d,d0,d1) long d0, d1
#if defined(LARGEDATA)
@@ -279,27 +280,27 @@ typedef union {
#define LGCHUNKBITS 3
#define CHUNKBITS (1<<LGCHUNKBITS)
#define PERM6464(d,d0,d1,cpp,p) \
- LOAD(d,d0,d1,(p)[(0<<CHUNKBITS)+(cpp)[0]]); \
- OR (d,d0,d1,(p)[(1<<CHUNKBITS)+(cpp)[1]]); \
- OR (d,d0,d1,(p)[(2<<CHUNKBITS)+(cpp)[2]]); \
- OR (d,d0,d1,(p)[(3<<CHUNKBITS)+(cpp)[3]]); \
- OR (d,d0,d1,(p)[(4<<CHUNKBITS)+(cpp)[4]]); \
- OR (d,d0,d1,(p)[(5<<CHUNKBITS)+(cpp)[5]]); \
- OR (d,d0,d1,(p)[(6<<CHUNKBITS)+(cpp)[6]]); \
- OR (d,d0,d1,(p)[(7<<CHUNKBITS)+(cpp)[7]]);
+ LOAD((d),(d0),(d1),(p)[(0<<CHUNKBITS)+(cpp)[0]]); \
+ OR ((d),(d0),(d1),(p)[(1<<CHUNKBITS)+(cpp)[1]]); \
+ OR ((d),(d0),(d1),(p)[(2<<CHUNKBITS)+(cpp)[2]]); \
+ OR ((d),(d0),(d1),(p)[(3<<CHUNKBITS)+(cpp)[3]]); \
+ OR (d),(d0),(d1),(p)[(4<<CHUNKBITS)+(cpp)[4]]); \
+ OR (d),(d0),(d1),(p)[(5<<CHUNKBITS)+(cpp)[5]]); \
+ OR (d),(d0),(d1),(p)[(6<<CHUNKBITS)+(cpp)[6]]); \
+ OR (d),(d0),(d1),(p)[(7<<CHUNKBITS)+(cpp)[7]]);
#define PERM3264(d,d0,d1,cpp,p) \
- LOAD(d,d0,d1,(p)[(0<<CHUNKBITS)+(cpp)[0]]); \
- OR (d,d0,d1,(p)[(1<<CHUNKBITS)+(cpp)[1]]); \
- OR (d,d0,d1,(p)[(2<<CHUNKBITS)+(cpp)[2]]); \
- OR (d,d0,d1,(p)[(3<<CHUNKBITS)+(cpp)[3]]);
+ LOAD((d),(d0),(d1),(p)[(0<<CHUNKBITS)+(cpp)[0]]); \
+ OR ((d),(d0),(d1),(p)[(1<<CHUNKBITS)+(cpp)[1]]); \
+ OR ((d),(d0),(d1),(p)[(2<<CHUNKBITS)+(cpp)[2]]); \
+ OR ((d),(d0),(d1),(p)[(3<<CHUNKBITS)+(cpp)[3]]);
#else
/* "small data" */
#define LGCHUNKBITS 2
#define CHUNKBITS (1<<LGCHUNKBITS)
#define PERM6464(d,d0,d1,cpp,p) \
- { C_block tblk; permute(cpp,&tblk,p,8); LOAD (d,d0,d1,tblk); }
+ { C_block tblk; permute((cpp),&tblk,(p),8); LOAD ((d),(d0),(d1),tblk); }
#define PERM3264(d,d0,d1,cpp,p) \
- { C_block tblk; permute(cpp,&tblk,p,4); LOAD (d,d0,d1,tblk); }
+ { C_block tblk; permute((cpp),&tblk,(p),4); LOAD ((d),(d0),(d1),tblk); }
STATIC void
permute(cp, out, p, chars_in)
@@ -693,34 +694,34 @@ des_cipher(in, out, salt, num_iter)
loop_count = 8;
do {
-#define SPTAB(t, i) (*(long *)((unsigned char *)t + i*(sizeof(long)/4)))
+#define SPTAB(t, i) (*(long *)((unsigned char *)(t) + (i)*(sizeof(long)/4)))
#if defined(gould)
/* use this if B.b[i] is evaluated just once ... */
-#define DOXOR(x,y,i) x^=SPTAB(SPE[0][i],B.b[i]); y^=SPTAB(SPE[1][i],B.b[i]);
+#define DOXOR(x,y,i) (x)^=SPTAB(SPE[0][(i)],B.b[(i)]); (y)^=SPTAB(SPE[1][(i)],B.b[(i)]);
#else
#if defined(pdp11)
/* use this if your "long" int indexing is slow */
-#define DOXOR(x,y,i) j=B.b[i]; x^=SPTAB(SPE[0][i],j); y^=SPTAB(SPE[1][i],j);
+#define DOXOR(x,y,i) j=B.b[(i)]; (x)^=SPTAB(SPE[0][(i)],j); (y)^=SPTAB(SPE[1][(i)],j);
#else
/* use this if "k" is allocated to a register ... */
-#define DOXOR(x,y,i) k=B.b[i]; x^=SPTAB(SPE[0][i],k); y^=SPTAB(SPE[1][i],k);
+#define DOXOR(x,y,i) k=B.b[(i)]; (x)^=SPTAB(SPE[0][(i)],k); (y)^=SPTAB(SPE[1][(i)],k);
#endif
#endif
#define CRUNCH(p0, p1, q0, q1) \
- k = (q0 ^ q1) & SALT; \
- B.b32.i0 = k ^ q0 ^ kp->b32.i0; \
- B.b32.i1 = k ^ q1 ^ kp->b32.i1; \
+ k = ((q0) ^ (q1)) & SALT; \
+ B.b32.i0 = k ^ (q0) ^ kp->b32.i0; \
+ B.b32.i1 = k ^ (q1) ^ kp->b32.i1; \
kp = (C_block *)((char *)kp+ks_inc); \
\
- DOXOR(p0, p1, 0); \
- DOXOR(p0, p1, 1); \
- DOXOR(p0, p1, 2); \
- DOXOR(p0, p1, 3); \
- DOXOR(p0, p1, 4); \
- DOXOR(p0, p1, 5); \
- DOXOR(p0, p1, 6); \
- DOXOR(p0, p1, 7);
+ DOXOR((p0), (p1), 0); \
+ DOXOR((p0), (p1), 1); \
+ DOXOR((p0), (p1), 2); \
+ DOXOR((p0), (p1), 3); \
+ DOXOR((p0), (p1), 4); \
+ DOXOR((p0), (p1), 5); \
+ DOXOR((p0), (p1), 6); \
+ DOXOR((p0), (p1), 7);
CRUNCH(L0, L1, R0, R1);
CRUNCH(R0, R1, L0, L1);
diff --git a/missing/erf.c b/missing/erf.c
index fe65b9a479..d72c4eaf4e 100644
--- a/missing/erf.c
+++ b/missing/erf.c
@@ -3,6 +3,7 @@
reference - Haruhiko Okumura: C-gengo niyoru saishin algorithm jiten
(New Algorithm handbook in C language) (Gijyutsu hyouron
sha, Tokyo, 1991) p.227 [in Japanese] */
+#include "ruby/missing.h"
#include <stdio.h>
#include <math.h>
diff --git a/missing/ffs.c b/missing/ffs.c
new file mode 100644
index 0000000000..bad99cf116
--- /dev/null
+++ b/missing/ffs.c
@@ -0,0 +1,49 @@
+/* ffs.c - find first set bit */
+/* ffs() is defined by Single Unix Specification. */
+
+#include "ruby.h"
+
+int ffs(int arg)
+{
+ unsigned int x = (unsigned int)arg;
+ int r;
+
+ if (x == 0)
+ return 0;
+
+ r = 1;
+
+#if 32 < SIZEOF_INT * CHAR_BIT
+ if ((x & 0xffffffff) == 0) {
+ x >>= 32;
+ r += 32;
+ }
+#endif
+
+ if ((x & 0xffff) == 0) {
+ x >>= 16;
+ r += 16;
+ }
+
+ if ((x & 0xff) == 0) {
+ x >>= 8;
+ r += 8;
+ }
+
+ if ((x & 0xf) == 0) {
+ x >>= 4;
+ r += 4;
+ }
+
+ if ((x & 0x3) == 0) {
+ x >>= 2;
+ r += 2;
+ }
+
+ if ((x & 0x1) == 0) {
+ x >>= 1;
+ r += 1;
+ }
+
+ return r;
+}
diff --git a/missing/finite.c b/missing/finite.c
index 8d0b7af262..ab7686317b 100644
--- a/missing/finite.c
+++ b/missing/finite.c
@@ -1,5 +1,7 @@
/* public domain rewrite of finite(3) */
+#include "ruby/missing.h"
+
int
finite(double n)
{
diff --git a/missing/flock.c b/missing/flock.c
index b02f8bf832..763c49d675 100644
--- a/missing/flock.c
+++ b/missing/flock.c
@@ -27,7 +27,7 @@ int
flock(int fd, int operation)
{
struct flock lock;
-
+
switch (operation & ~LOCK_NB) {
case LOCK_SH:
lock.l_type = F_RDLCK;
@@ -44,7 +44,7 @@ flock(int fd, int operation)
}
lock.l_whence = SEEK_SET;
lock.l_start = lock.l_len = 0L;
-
+
return fcntl(fd, (operation & LOCK_NB) ? F_SETLK : F_SETLKW, &lock);
}
diff --git a/missing/hypot.c b/missing/hypot.c
index 5a663553cf..765581bacb 100644
--- a/missing/hypot.c
+++ b/missing/hypot.c
@@ -1,5 +1,6 @@
/* public domain rewrite of hypot */
+#include "ruby/missing.h"
#include <math.h>
double hypot(double x, double y)
diff --git a/missing/isinf.c b/missing/isinf.c
index 4aef51b213..55187adc63 100644
--- a/missing/isinf.c
+++ b/missing/isinf.c
@@ -27,7 +27,7 @@ isinf(double n)
#include <ieeefp.h>
#endif
-/*
+/*
* isinf may be provided only as a macro.
* ex. HP-UX, Solaris 10
* http://www.gnu.org/software/automake/manual/autoconf/Function-Portability.html
diff --git a/missing/isnan.c b/missing/isnan.c
index a8733978ad..5846947f50 100644
--- a/missing/isnan.c
+++ b/missing/isnan.c
@@ -1,5 +1,7 @@
/* public domain rewrite of isnan(3) */
+#include "ruby/missing.h"
+
static int double_ne(double n1, double n2);
int
diff --git a/missing/langinfo.c b/missing/langinfo.c
index 6373afd0f5..9ba06b15f6 100644
--- a/missing/langinfo.c
+++ b/missing/langinfo.c
@@ -32,11 +32,12 @@
* http://www.cl.cam.ac.uk/~mgk25/ucs/langinfo.c
*/
+#include "ruby/missing.h"
#include <stdlib.h>
#include <string.h>
#if defined _WIN32 || defined __CYGWIN__
#include <windows.h>
-#if defined _WIN32
+#if defined _WIN32 && !defined strncasecmp
#define strncasecmp strnicmp
#endif
#endif
@@ -55,7 +56,7 @@
#endif
#define digit(x) ((x) >= '0' && (x) <= '9')
-#define strstart(s, n) (strncasecmp(s, n, strlen(n)) == 0)
+#define strstart(s, n) (strncasecmp((s), (n), strlen(n)) == 0)
static char buf[16];
@@ -64,7 +65,7 @@ nl_langinfo_codeset(void)
{
const char *l, *p;
int n;
-
+
if (((l = getenv("LC_ALL")) && *l) ||
((l = getenv("LC_CTYPE")) && *l) ||
((l = getenv("LANG")) && *l)) {
diff --git a/missing/lgamma_r.c b/missing/lgamma_r.c
index ba8535b18a..6d2f38f40c 100644
--- a/missing/lgamma_r.c
+++ b/missing/lgamma_r.c
@@ -8,6 +8,7 @@ reference - Haruhiko Okumura: C-gengo niyoru saishin algorithm jiten
http://oku.edu.mie-u.ac.jp/~okumura/algo/
*/
+#include "ruby/missing.h"
/***********************************************************
gamma.c -- Gamma function
***********************************************************/
@@ -46,6 +47,17 @@ loggamma(double x) /* the natural logarithm of the Gamma function. */
+ 0.5 * LOG_2PI - log(v) - x + (x - 0.5) * log(x);
}
+
+#ifdef __MINGW_ATTRIB_PURE
+/* get rid of bugs in math.h of mingw */
+#define modf(_X, _Y) __extension__ ({\
+ double intpart_modf_bug = intpart_modf_bug;\
+ double result_modf_bug = modf((_X), &intpart_modf_bug);\
+ *(_Y) = intpart_modf_bug;\
+ result_modf_bug;\
+})
+#endif
+
/* the natural logarithm of the absolute value of the Gamma function */
double
lgamma_r(double x, int *signp)
diff --git a/missing/memcmp.c b/missing/memcmp.c
index 5b3ad3817a..a81eec4244 100644
--- a/missing/memcmp.c
+++ b/missing/memcmp.c
@@ -1,5 +1,6 @@
/* public domain rewrite of memcmp(3) */
+#include "ruby/missing.h"
#include <stddef.h>
int
diff --git a/missing/memmove.c b/missing/memmove.c
index 19c5f18847..e8e17e87e7 100644
--- a/missing/memmove.c
+++ b/missing/memmove.c
@@ -1,5 +1,6 @@
/* public domain rewrite of memcmp(3) */
+#include "ruby/missing.h"
#include <stddef.h>
void *
diff --git a/missing/os2.c b/missing/os2.c
index 3448cdc281..27dc2f1964 100644
--- a/missing/os2.c
+++ b/missing/os2.c
@@ -94,14 +94,14 @@ char *cmd;
if (*s == '=')
goto doshell; */
for (s = cmd; *s; s++) {
- if (*sw == '-' && *s != ' ' &&
+ if (*sw == '-' && *s != ' ' &&
!isalpha(*s) && index("$&*(){}[]'\";\\|?<>~`\n",*s)) {
if (*s == '\n' && !s[1]) {
*s = '\0';
break;
}
goto doshell;
- } else if (*sw == '/' && *s != ' ' &&
+ } else if (*sw == '/' && *s != ' ' &&
!isalpha(*s) && index("^()<>|&\n",*s)) {
if (*s == '\n' && !s[1]) {
*s = '\0';
diff --git a/missing/setproctitle.c b/missing/setproctitle.c
new file mode 100644
index 0000000000..169ba8bcd2
--- /dev/null
+++ b/missing/setproctitle.c
@@ -0,0 +1,160 @@
+/* Based on setproctitle.c from openssh-5.6p1 */
+/* Based on conf.c from UCB sendmail 8.8.8 */
+
+/*
+ * Copyright 2003 Damien Miller
+ * Copyright (c) 1983, 1995-1997 Eric P. Allman
+ * Copyright (c) 1988, 1993
+ * The Regents of the University of California. All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ * 1. Redistributions of source code must retain the above copyright
+ * notice, this list of conditions and the following disclaimer.
+ * 2. Redistributions in binary form must reproduce the above copyright
+ * notice, this list of conditions and the following disclaimer in the
+ * documentation and/or other materials provided with the distribution.
+ * 3. Neither the name of the University nor the names of its contributors
+ * may be used to endorse or promote products derived from this software
+ * without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
+ * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
+ * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
+ * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
+ * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
+ * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
+ * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
+ * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
+ * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
+ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
+ * SUCH DAMAGE.
+ */
+
+#include "ruby.h"
+#include "ruby/util.h"
+#define compat_init_setproctitle ruby_init_setproctitle
+
+#ifndef HAVE_SETPROCTITLE
+
+#include <stdarg.h>
+#include <stdlib.h>
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>
+#endif
+#ifdef HAVE_SYS_PSTAT_H
+#include <sys/pstat.h>
+#endif
+#include <string.h>
+
+#define SPT_NONE 0 /* don't use it at all */
+#define SPT_PSTAT 1 /* use pstat(PSTAT_SETCMD, ...) */
+#define SPT_REUSEARGV 2 /* cover argv with title information */
+
+#ifndef SPT_TYPE
+# define SPT_TYPE SPT_NONE
+#endif
+
+#ifndef SPT_PADCHAR
+# define SPT_PADCHAR '\0'
+#endif
+
+#if SPT_TYPE == SPT_REUSEARGV
+static char *argv_start = NULL;
+static size_t argv_env_len = 0;
+static size_t argv_len = 0;
+#endif
+
+#endif /* HAVE_SETPROCTITLE */
+
+void
+compat_init_setproctitle(int argc, char *argv[])
+{
+#if defined(SPT_TYPE) && SPT_TYPE == SPT_REUSEARGV
+ extern char **environ;
+ char *lastargv = NULL;
+ char *lastenvp = NULL;
+ char **envp = environ;
+ int i;
+
+ /*
+ * NB: This assumes that argv has already been copied out of the
+ * way. This is true for sshd, but may not be true for other
+ * programs. Beware.
+ */
+
+ if (argc == 0 || argv[0] == NULL)
+ return;
+
+ /* Fail if we can't allocate room for the new environment */
+ for (i = 0; envp[i] != NULL; i++)
+ ;
+ if ((environ = calloc(i + 1, sizeof(*environ))) == NULL) {
+ environ = envp; /* put it back */
+ return;
+ }
+
+ /*
+ * Find the last argv string or environment variable within
+ * our process memory area.
+ */
+ for (i = 0; i < argc; i++) {
+ if (lastargv == NULL || lastargv + 1 == argv[i])
+ lastargv = argv[i] + strlen(argv[i]);
+ }
+ lastenvp = lastargv;
+ for (i = 0; envp[i] != NULL; i++) {
+ if (lastenvp + 1 == envp[i])
+ lastenvp = envp[i] + strlen(envp[i]);
+ }
+
+ argv[1] = NULL;
+ argv_start = argv[0];
+ argv_len = lastargv - argv[0];
+ argv_env_len = lastenvp - argv[0];
+
+ for (i = 0; envp[i] != NULL; i++)
+ environ[i] = ruby_strdup(envp[i]);
+ environ[i] = NULL;
+#endif /* SPT_REUSEARGV */
+}
+
+#ifndef HAVE_SETPROCTITLE
+void
+setproctitle(const char *fmt, ...)
+{
+#if SPT_TYPE != SPT_NONE
+ va_list ap;
+ char ptitle[1024];
+ size_t len;
+ size_t argvlen;
+#if SPT_TYPE == SPT_PSTAT
+ union pstun pst;
+#endif
+
+#if SPT_TYPE == SPT_REUSEARGV
+ if (argv_env_len <= 0)
+ return;
+#endif
+
+ va_start(ap, fmt);
+ if (fmt != NULL) {
+ vsnprintf(ptitle, sizeof(ptitle) , fmt, ap);
+ }
+ va_end(ap);
+
+#if SPT_TYPE == SPT_PSTAT
+ pst.pst_command = ptitle;
+ pstat(PSTAT_SETCMD, pst, strlen(ptitle), 0, 0);
+#elif SPT_TYPE == SPT_REUSEARGV
+ len = strlcpy(argv_start, ptitle, argv_env_len);
+ argvlen = len > argv_len ? argv_env_len : argv_len;
+ for(; len < argvlen; len++)
+ argv_start[len] = SPT_PADCHAR;
+#endif
+
+#endif /* SPT_NONE */
+}
+
+#endif /* HAVE_SETPROCTITLE */
diff --git a/missing/signbit.c b/missing/signbit.c
new file mode 100644
index 0000000000..2f7ce8c601
--- /dev/null
+++ b/missing/signbit.c
@@ -0,0 +1,19 @@
+#include <limits.h>
+#include "ruby.h"
+
+int
+signbit(double x)
+{
+ enum {double_per_long = sizeof(double) / sizeof(long)};
+ enum {long_msb = sizeof(long) * CHAR_BIT - 1};
+ union {double d; unsigned long i[double_per_long];} u;
+ unsigned long l;
+
+ u.d = x;
+#ifdef WORDS_BIGENDIAN
+ l = u.i[0];
+#else
+ l = u.i[double_per_long - 1];
+#endif
+ return (int)(l >> long_msb);
+}
diff --git a/missing/strchr.c b/missing/strchr.c
index bebd7ba578..465f07b61e 100644
--- a/missing/strchr.c
+++ b/missing/strchr.c
@@ -1,5 +1,9 @@
/* public domain rewrite of strchr(3) and strrchr(3) */
+#include "ruby/missing.h"
+
+size_t strlen(const char*);
+
char *
strchr(const char *s, int c)
{
diff --git a/missing/strerror.c b/missing/strerror.c
index 023935a1ff..907b5aee0d 100644
--- a/missing/strerror.c
+++ b/missing/strerror.c
@@ -1,5 +1,7 @@
/* public domain rewrite of strerror(3) */
+#include "ruby/missing.h"
+
extern int sys_nerr;
extern char *sys_errlist[];
diff --git a/missing/strlcat.c b/missing/strlcat.c
index b309648155..4e2d7cc85a 100644
--- a/missing/strlcat.c
+++ b/missing/strlcat.c
@@ -31,6 +31,7 @@
static char *rcsid = "$OpenBSD: strlcat.c,v 1.8 2001/05/13 15:40:15 deraadt Exp $";
#endif /* LIBC_SCCS and not lint */
+#include "ruby/missing.h"
#include <sys/types.h>
#include <string.h>
diff --git a/missing/strlcpy.c b/missing/strlcpy.c
index 5f586964b7..2ebc38f98f 100644
--- a/missing/strlcpy.c
+++ b/missing/strlcpy.c
@@ -31,6 +31,7 @@
static char *rcsid = "$OpenBSD: strlcpy.c,v 1.5 2001/05/13 15:40:16 deraadt Exp $";
#endif /* LIBC_SCCS and not lint */
+#include "ruby/missing.h"
#include <sys/types.h>
#include <string.h>
diff --git a/missing/strstr.c b/missing/strstr.c
index 2e9c282fb1..e6613c5d2f 100644
--- a/missing/strstr.c
+++ b/missing/strstr.c
@@ -1,5 +1,9 @@
/* public domain rewrite of strstr(3) */
+#include "ruby/missing.h"
+
+size_t strlen(const char*);
+
char *
strstr(const char *haystack, const char *needle)
{
diff --git a/missing/strtol.c b/missing/strtol.c
index da6636f316..87bd73124c 100644
--- a/missing/strtol.c
+++ b/missing/strtol.c
@@ -1,5 +1,6 @@
/* public domain rewrite of strtol(3) */
+#include "ruby/missing.h"
#include <ctype.h>
long
diff --git a/missing/x86_64-chkstk.s b/missing/x86_64-chkstk.s
new file mode 100644
index 0000000000..6d1227b6d2
--- /dev/null
+++ b/missing/x86_64-chkstk.s
@@ -0,0 +1,10 @@
+ .text
+.globl ___chkstk
+___chkstk:
+ pushq %rax
+ movq %rax, %rcx
+ movq %rsp, %rdx
+ call _ruby_alloca_chkstk
+ popq %rax
+ subq %rax, %rsp
+ ret
diff --git a/node.c b/node.c
new file mode 100644
index 0000000000..d1f1b70832
--- /dev/null
+++ b/node.c
@@ -0,0 +1,921 @@
+/**********************************************************************
+
+ node.c - ruby node tree
+
+ $Author: mame $
+ created at: 09/12/06 21:23:44 JST
+
+ Copyright (C) 2009 Yusuke Endoh
+
+**********************************************************************/
+
+#include "ruby/ruby.h"
+#include "vm_core.h"
+
+#define A(str) rb_str_cat2(buf, (str))
+#define AR(str) rb_str_concat(buf, (str))
+
+#define A_INDENT add_indent(buf, indent)
+#define A_ID(id) add_id(buf, (id))
+#define A_INT(val) rb_str_catf(buf, "%d", (val));
+#define A_LONG(val) rb_str_catf(buf, "%ld", (val));
+#define A_LIT(lit) AR(rb_inspect(lit))
+#define A_NODE_HEADER(node) \
+ rb_str_catf(buf, "@ %s (line: %d)", ruby_node_name(nd_type(node)), nd_line(node))
+#define A_FIELD_HEADER(name) \
+ rb_str_catf(buf, "+- %s:", (name))
+
+#define D_NULL_NODE A_INDENT; A("(null node)"); A("\n");
+#define D_NODE_HEADER(node) A_INDENT; A_NODE_HEADER(node); A("\n");
+
+#define COMPOUND_FIELD(name, name2, block) \
+ do { \
+ A_INDENT; A_FIELD_HEADER(comment ? (name2) : (name)); A("\n"); \
+ rb_str_cat2(indent, next_indent); \
+ block; \
+ rb_str_resize(indent, RSTRING_LEN(indent) - 4); \
+ } while (0)
+
+#define SIMPLE_FIELD(name, name2, block) \
+ do { \
+ A_INDENT; A_FIELD_HEADER(comment ? (name2) : (name)); A(" "); block; A("\n"); \
+ } while (0)
+
+#define F_CUSTOM1(name, ann, block) SIMPLE_FIELD(#name, #name " (" ann ")", block)
+#define F_ID(name, ann) SIMPLE_FIELD(#name, #name " (" ann ")", A_ID(node->name))
+#define F_GENTRY(name, ann) SIMPLE_FIELD(#name, #name " (" ann ")", A_ID((node->name)->id))
+#define F_INT(name, ann) SIMPLE_FIELD(#name, #name " (" ann ")", A_INT(node->name))
+#define F_LONG(name, ann) SIMPLE_FIELD(#name, #name " (" ann ")", A_LONG(node->name))
+#define F_LIT(name, ann) SIMPLE_FIELD(#name, #name " (" ann ")", A_LIT(node->name))
+#define F_MSG(name, ann, desc) SIMPLE_FIELD(#name, #name " (" ann ")", A(desc))
+
+#define F_CUSTOM2(name, ann, block) \
+ COMPOUND_FIELD(#name, #name " (" ann ")", block)
+
+#define F_NODE(name, ann) \
+ COMPOUND_FIELD(#name, #name " (" ann ")", dump_node(buf, indent, comment, node->name))
+
+#define ANN(ann) \
+ if (comment) { \
+ A_INDENT; A("| # "); A(ann); A("\n"); \
+ }
+
+#define LAST_NODE (next_indent = " ")
+
+static void
+add_indent(VALUE buf, VALUE indent)
+{
+ AR(indent);
+}
+
+static void
+add_id(VALUE buf, ID id)
+{
+ if (id == 0) {
+ A("(null)");
+ }
+ else {
+ VALUE str = rb_id2str(id);
+ if (str) {
+ A(":"); AR(str);
+ }
+ else {
+ A("(internal variable)");
+ }
+ }
+}
+
+static void
+dump_node(VALUE buf, VALUE indent, int comment, NODE *node)
+{
+ const char *next_indent = "| ";
+
+ if (!node) {
+ D_NULL_NODE;
+ return;
+ }
+
+ D_NODE_HEADER(node);
+
+ switch (nd_type(node)) {
+ case NODE_BLOCK:
+ ANN("statement sequence");
+ ANN("format: [nd_head]; [nd_next]");
+ ANN("example: foo; bar");
+ F_NODE(nd_head, "current statement");
+ LAST_NODE;
+ F_NODE(nd_next, "next block");
+ break;
+
+ case NODE_IF:
+ ANN("if statement");
+ ANN("format: if [nd_cond] then [nd_body] else [nd_else] end");
+ ANN("example: if x == 1 then foo else bar end");
+ F_NODE(nd_cond, "condition expr");
+ F_NODE(nd_body, "then clause");
+ LAST_NODE;
+ F_NODE(nd_else, "else clause");
+ break;
+
+ case NODE_CASE:
+ ANN("case statement");
+ ANN("format: case [nd_head]; [nd_body]; end");
+ ANN("example: case x; when 1; foo; when 2; bar; else baz; end");
+ F_NODE(nd_head, "case expr");
+ LAST_NODE;
+ F_NODE(nd_body, "when clauses");
+ break;
+
+ case NODE_WHEN:
+ ANN("if statement");
+ ANN("format: when [nd_head]; [nd_body]; (when or else) [nd_next]");
+ ANN("example: case x; when 1; foo; when 2; bar; else baz; end");
+ F_NODE(nd_head, "when value");
+ F_NODE(nd_body, "when clause");
+ LAST_NODE;
+ F_NODE(nd_next, "next when clause");
+ break;
+
+ case NODE_OPT_N:
+ ANN("wrapper for -n option");
+ ANN("format: ruby -ne '[nd_body]' (nd_cond is `gets')");
+ ANN("example: ruby -ne 'p $_'");
+ goto loop;
+ case NODE_WHILE:
+ ANN("while statement");
+ ANN("format: while [nd_cond]; [nd_body]; end");
+ ANN("example: while x == 1; foo; end");
+ goto loop;
+ case NODE_UNTIL:
+ ANN("until statement");
+ ANN("format: until [nd_cond]; [nd_body]; end");
+ ANN("example: until x == 1; foo; end");
+ loop:
+ F_CUSTOM1(nd_state, "begin-end-while?", {
+ A_INT((int)node->nd_state);
+ A((node->nd_state == 1) ? " (while-end)" : " (begin-end-while)");
+ });
+ F_NODE(nd_cond, "condition");
+ LAST_NODE;
+ F_NODE(nd_body, "body");
+ break;
+
+ case NODE_ITER:
+ ANN("method call with block");
+ ANN("format: [nd_iter] { [nd_body] }");
+ ANN("example: 3.times { foo }");
+ goto iter;
+ case NODE_FOR:
+ ANN("for statement");
+ ANN("format: for * in [nd_iter] do [nd_body] end");
+ ANN("example: for i in 1..3 do foo end");
+ iter:
+ F_NODE(nd_iter, "iteration receiver");
+ LAST_NODE;
+ F_NODE(nd_body, "body");
+ break;
+
+ case NODE_BREAK:
+ ANN("for statement");
+ ANN("format: break [nd_stts]");
+ ANN("example: break 1");
+ goto jump;
+ case NODE_NEXT:
+ ANN("next statement");
+ ANN("format: next [nd_stts]");
+ ANN("example: next 1");
+ goto jump;
+ case NODE_RETURN:
+ ANN("return statement");
+ ANN("format: return [nd_stts]");
+ ANN("example: return 1");
+ jump:
+ LAST_NODE;
+ F_NODE(nd_stts, "value");
+ break;
+
+ case NODE_REDO:
+ ANN("redo statement");
+ ANN("format: redo");
+ ANN("example: redo");
+ break;
+
+ case NODE_RETRY:
+ ANN("retry statement");
+ ANN("format: retry");
+ ANN("example: retry");
+ break;
+
+ case NODE_BEGIN:
+ ANN("begin statement");
+ ANN("format: begin; [nd_body]; end");
+ ANN("example: begin; 1; end");
+ LAST_NODE;
+ F_NODE(nd_body, "body");
+ break;
+
+ case NODE_RESCUE:
+ ANN("rescue clause");
+ ANN("format: begin; [nd_body]; (rescue) [nd_resq]; else [nd_else]; end");
+ ANN("example: begin; foo; rescue; bar; else; baz; end");
+ F_NODE(nd_head, "body");
+ F_NODE(nd_resq, "rescue clause list");
+ LAST_NODE;
+ F_NODE(nd_else, "rescue else clause");
+ break;
+
+ case NODE_RESBODY:
+ ANN("rescue clause (cont'd)");
+ ANN("format: rescue [nd_args]; [nd_body]; (rescue) [nd_head]");
+ ANN("example: begin; foo; rescue; bar; else; baz; end");
+ F_NODE(nd_args, "rescue exceptions");
+ F_NODE(nd_body, "rescue clause");
+ LAST_NODE;
+ F_NODE(nd_head, "next rescue clause");
+ break;
+
+ case NODE_ENSURE:
+ ANN("ensure clause");
+ ANN("format: begin; [nd_head]; ensure; [nd_ensr]; end");
+ ANN("example: begin; foo; ensure; bar; end");
+ F_NODE(nd_head, "body");
+ LAST_NODE;
+ F_NODE(nd_ensr, "ensure clause");
+ break;
+
+ case NODE_AND:
+ ANN("&& operator");
+ ANN("format: [nd_1st] && [nd_2nd]");
+ ANN("example: foo && bar");
+ goto andor;
+ case NODE_OR:
+ ANN("|| operator");
+ ANN("format: [nd_1st] || [nd_2nd]");
+ ANN("example: foo && bar");
+ andor:
+ F_NODE(nd_1st, "left expr");
+ LAST_NODE;
+ F_NODE(nd_2nd, "right expr");
+ break;
+
+ case NODE_MASGN:
+ ANN("multiple assignment");
+ ANN("format: [nd_head], [nd_args] = [nd_value]");
+ ANN("example: a, b = foo");
+ F_NODE(nd_value, "rhsn");
+ F_NODE(nd_head, "lhsn");
+ if ((VALUE)node->nd_args != (VALUE)-1) {
+ LAST_NODE;
+ F_NODE(nd_args, "splatn");
+ }
+ else {
+ F_MSG(nd_args, "splatn", "-1 (rest argument without name)");
+ }
+ break;
+
+ case NODE_LASGN:
+ ANN("local variable assignment");
+ ANN("format: [nd_vid](lvar) = [nd_value]");
+ ANN("example: x = foo");
+ goto asgn;
+ case NODE_DASGN:
+ ANN("dynamic variable assignment (out of current scope)");
+ ANN("format: [nd_vid](dvar) = [nd_value]");
+ ANN("example: x = nil; 1.times { x = foo }");
+ goto asgn;
+ case NODE_DASGN_CURR:
+ ANN("dynamic variable assignment (in current scope)");
+ ANN("format: [nd_vid](current dvar) = [nd_value]");
+ ANN("example: 1.times { x = foo }");
+ goto asgn;
+ case NODE_IASGN:
+ ANN("instance variable assignment");
+ ANN("format: [nd_vid](ivar) = [nd_value]");
+ ANN("example: @x = foo");
+ goto asgn;
+ case NODE_CVASGN:
+ ANN("class variable assignment");
+ ANN("format: [nd_vid](cvar) = [nd_value]");
+ ANN("example: @@x = foo");
+ asgn:
+ F_ID(nd_vid, "variable");
+ LAST_NODE;
+ F_NODE(nd_value, "rvalue");
+ break;
+
+ case NODE_GASGN:
+ ANN("global variable assignment");
+ ANN("format: [nd_entry](gvar) = [nd_value]");
+ ANN("example: $x = foo");
+ F_GENTRY(nd_entry, "global variable");
+ LAST_NODE;
+ F_NODE(nd_value, "rvalue");
+ break;
+
+ case NODE_CDECL:
+ ANN("constant declaration");
+ ANN("format: [nd_else]::[nd_vid](constant) = [nd_value]");
+ ANN("example: X = foo");
+ if (node->nd_vid) {
+ F_ID(nd_vid, "variable");
+ F_MSG(nd_else, "extension", "not used");
+ }
+ else {
+ F_MSG(nd_vid, "variable", "0 (see extension field)");
+ F_NODE(nd_else, "extension");
+ }
+ LAST_NODE;
+ F_NODE(nd_value, "rvalue");
+ break;
+
+ case NODE_OP_ASGN1:
+ ANN("array assignment with operator");
+ ANN("format: [nd_value] [ [nd_args->nd_body] ] [nd_vid]= [nd_args->nd_head]");
+ ANN("example: ary[1] += foo");
+ F_NODE(nd_recv, "receiver");
+ F_ID(nd_vid, "operator");
+ F_NODE(nd_args->nd_body, "index");
+ LAST_NODE;
+ F_NODE(nd_args->nd_head, "rvalue");
+ break;
+
+ case NODE_OP_ASGN2:
+ ANN("attr assignment with operator");
+ ANN("format: [nd_value].[attr] [nd_next->nd_mid]= [nd_value]");
+ ANN(" where [attr] reader: [nd_next->nd_vid]");
+ ANN(" [attr] writer: [nd_next->nd_aid]");
+ ANN("example: struct.field += foo");
+ F_NODE(nd_recv, "receiver");
+ F_ID(nd_next->nd_vid, "reader");
+ F_ID(nd_next->nd_aid, "writer");
+ F_CUSTOM1(nd_next->nd_mid, "operator", {
+ switch (node->nd_next->nd_mid) {
+ case 0: A("0 (||)"); break;
+ case 1: A("1 (&&)"); break;
+ default: A_ID(node->nd_next->nd_mid);
+ }
+ });
+ LAST_NODE;
+ F_NODE(nd_value, "rvalue");
+ break;
+
+ case NODE_OP_ASGN_AND:
+ ANN("assignment with && operator");
+ ANN("format: [nd_head] &&= [nd_value]");
+ ANN("example: foo &&= bar");
+ goto asgn_andor;
+ case NODE_OP_ASGN_OR:
+ ANN("assignment with || operator");
+ ANN("format: [nd_head] ||= [nd_value]");
+ ANN("example: foo ||= bar");
+ asgn_andor:
+ F_NODE(nd_head, "variable");
+ LAST_NODE;
+ F_NODE(nd_value, "rvalue");
+ break;
+
+ case NODE_CALL:
+ ANN("method invocation");
+ ANN("format: [nd_recv].[nd_mid]([nd_args])");
+ ANN("example: obj.foo(1)");
+ F_ID(nd_mid, "method id");
+ F_NODE(nd_recv, "receiver");
+ LAST_NODE;
+ F_NODE(nd_args, "arguments");
+ break;
+
+ case NODE_FCALL:
+ ANN("function call");
+ ANN("format: [nd_mid]([nd_args])");
+ ANN("example: foo(1)");
+ F_ID(nd_mid, "method id");
+ LAST_NODE;
+ F_NODE(nd_args, "arguments");
+ break;
+
+ case NODE_VCALL:
+ ANN("function call with no argument");
+ ANN("format: [nd_mid]");
+ ANN("example: foo");
+ F_ID(nd_mid, "method id");
+ break;
+
+ case NODE_SUPER:
+ ANN("super invocation");
+ ANN("format: super [nd_args]");
+ ANN("example: super 1");
+ LAST_NODE;
+ F_NODE(nd_args, "arguments");
+ break;
+
+ case NODE_ZSUPER:
+ ANN("super invocation with no argument");
+ ANN("format: super");
+ ANN("example: super");
+ break;
+
+ case NODE_ARRAY:
+ ANN("array constructor");
+ ANN("format: [ [nd_head], [nd_next].. ] (length: [nd_alen])");
+ ANN("example: [1, 2, 3]");
+ goto ary;
+ case NODE_VALUES:
+ ANN("return arguments");
+ ANN("format: [ [nd_head], [nd_next].. ] (length: [nd_alen])");
+ ANN("example: return 1, 2, 3");
+ ary:
+ F_LONG(nd_alen, "length");
+ F_NODE(nd_head, "element");
+ LAST_NODE;
+ F_NODE(nd_next, "next element");
+ break;
+
+ case NODE_ZARRAY:
+ ANN("empty array constructor");
+ ANN("format: []");
+ ANN("example: []");
+ break;
+
+ case NODE_HASH:
+ ANN("hash constructor");
+ ANN("format: { [nd_head] }");
+ ANN("example: { 1 => 2, 3 => 4 }");
+ LAST_NODE;
+ F_NODE(nd_head, "contents");
+ break;
+
+ case NODE_YIELD:
+ ANN("yield invocation");
+ ANN("format: yield [nd_head]");
+ ANN("example: yield 1");
+ LAST_NODE;
+ F_NODE(nd_head, "arguments");
+ break;
+
+ case NODE_LVAR:
+ ANN("local variable reference");
+ ANN("format: [nd_vid](lvar)");
+ ANN("example: x");
+ goto var;
+ case NODE_DVAR:
+ ANN("dynamic variable reference");
+ ANN("format: [nd_vid](dvar)");
+ ANN("example: 1.times { x = 1; x }");
+ goto var;
+ case NODE_IVAR:
+ ANN("instance variable reference");
+ ANN("format: [nd_vid](ivar)");
+ ANN("example: @x");
+ goto var;
+ case NODE_CONST:
+ ANN("constant reference");
+ ANN("format: [nd_vid](constant)");
+ ANN("example: X");
+ goto var;
+ case NODE_CVAR:
+ ANN("class variable reference");
+ ANN("format: [nd_vid](cvar)");
+ ANN("example: @@x");
+ var:
+ F_ID(nd_vid, "local variable");
+ break;
+
+ case NODE_GVAR:
+ ANN("global variable reference");
+ ANN("format: [nd_entry](gvar)");
+ ANN("example: $x");
+ F_GENTRY(nd_entry, "global variable");
+ break;
+
+ case NODE_NTH_REF:
+ ANN("nth special variable reference");
+ ANN("format: $[nd_nth]");
+ ANN("example: $1, $2, ..");
+ F_CUSTOM1(nd_nth, "variable", { A("$"); A_LONG(node->nd_nth); });
+ break;
+
+ case NODE_BACK_REF:
+ ANN("back special variable reference");
+ ANN("format: $[nd_nth]");
+ ANN("example: $&, $`, $', $+");
+ F_CUSTOM1(nd_nth, "variable", {
+ char name[3];
+ name[0] = '$';
+ name[1] = (char)node->nd_nth;
+ name[2] = '\0';
+ A(name);
+ });
+ break;
+
+ case NODE_MATCH:
+ ANN("match expression (against $_ implicitly)");
+ ANN("format: [nd_lit] (in condition)");
+ ANN("example: if /foo/; foo; end");
+ F_LIT(nd_lit, "regexp");
+ break;
+
+ case NODE_MATCH2:
+ ANN("match expression (regexp first)");
+ ANN("format: [nd_recv] =~ [nd_value]");
+ ANN("example: /foo/ =~ 'foo'");
+ F_NODE(nd_recv, "regexp (receiver)");
+ LAST_NODE;
+ F_NODE(nd_value, "string (argument)");
+ break;
+
+ case NODE_MATCH3:
+ ANN("match expression (regexp second)");
+ ANN("format: [nd_recv] =~ [nd_value]");
+ ANN("example: 'foo' =~ /foo/");
+ F_NODE(nd_recv, "string (receiver)");
+ LAST_NODE;
+ F_NODE(nd_value, "regexp (argument)");
+ break;
+
+ case NODE_LIT:
+ ANN("literal");
+ ANN("format: [nd_lit]");
+ ANN("example: 1, /foo/");
+ goto lit;
+ case NODE_STR:
+ ANN("string literal");
+ ANN("format: [nd_lit]");
+ ANN("example: 'foo'");
+ goto lit;
+ case NODE_XSTR:
+ ANN("xstring literal");
+ ANN("format: [nd_lit]");
+ ANN("example: `foo`");
+ lit:
+ F_LIT(nd_lit, "literal");
+ break;
+
+ case NODE_DSTR:
+ ANN("string literal with interpolation");
+ ANN("format: [nd_lit]");
+ ANN("example: \"foo#{ bar }baz\"");
+ goto dlit;
+ case NODE_DXSTR:
+ ANN("xstring literal with interpolation");
+ ANN("format: [nd_lit]");
+ ANN("example: `foo#{ bar }baz`");
+ goto dlit;
+ case NODE_DREGX:
+ ANN("regexp literal with interpolation");
+ ANN("format: [nd_lit]");
+ ANN("example: /foo#{ bar }baz/");
+ goto dlit;
+ case NODE_DREGX_ONCE:
+ ANN("regexp literal with interpolation and once flag");
+ ANN("format: [nd_lit]");
+ ANN("example: /foo#{ bar }baz/o");
+ goto dlit;
+ case NODE_DSYM:
+ ANN("symbol literal with interpolation");
+ ANN("format: [nd_lit]");
+ ANN("example: :\"foo#{ bar }baz\"");
+ dlit:
+ F_LIT(nd_lit, "literal");
+ F_NODE(nd_next->nd_head, "preceding string");
+ LAST_NODE;
+ F_NODE(nd_next->nd_next, "interpolation");
+ break;
+
+ case NODE_EVSTR:
+ ANN("interpolation expression");
+ ANN("format: \"..#{ [nd_lit] }..\"");
+ ANN("example: \"foo#{ bar }baz\"");
+ LAST_NODE;
+ F_NODE(nd_body, "body");
+ break;
+
+ case NODE_ARGSCAT:
+ ANN("splat argument following arguments");
+ ANN("format: ..(*[nd_head], [nd_body..])");
+ ANN("example: foo(*ary, post_arg1, post_arg2)");
+ F_NODE(nd_head, "preceding array");
+ LAST_NODE;
+ F_NODE(nd_body, "following array");
+ break;
+
+ case NODE_ARGSPUSH:
+ ANN("splat argument following one argument");
+ ANN("format: ..(*[nd_head], [nd_body])");
+ ANN("example: foo(*ary, post_arg)");
+ F_NODE(nd_head, "preceding array");
+ LAST_NODE;
+ F_NODE(nd_body, "following element");
+ break;
+
+ case NODE_SPLAT:
+ ANN("splat argument");
+ ANN("format: *[nd_head]");
+ ANN("example: foo(*ary)");
+ LAST_NODE;
+ F_NODE(nd_head, "splat'ed array");
+ break;
+
+ case NODE_BLOCK_PASS:
+ ANN("arguments with block argument");
+ ANN("format: ..([nd_head], &[nd_body])");
+ ANN("example: foo(x, &blk)");
+ F_NODE(nd_head, "other arguments");
+ LAST_NODE;
+ F_NODE(nd_body, "block argument");
+ break;
+
+ case NODE_DEFN:
+ ANN("method definition");
+ ANN("format: def [nd_mid] [nd_defn]; end");
+ ANN("example; def foo; bar; end");
+ F_ID(nd_mid, "method name");
+ LAST_NODE;
+ F_NODE(nd_defn, "method definition");
+ break;
+
+ case NODE_DEFS:
+ ANN("singleton method definition");
+ ANN("format: def [nd_recv].[nd_mid] [nd_defn]; end");
+ ANN("example; def obj.foo; bar; end");
+ F_NODE(nd_recv, "receiver");
+ F_ID(nd_mid, "method name");
+ LAST_NODE;
+ F_NODE(nd_defn, "method definition");
+ break;
+
+ case NODE_ALIAS:
+ ANN("method alias statement");
+ ANN("format: alias [u1.node] [u2.node]");
+ ANN("example: alias bar foo");
+ F_NODE(u1.node, "new name");
+ LAST_NODE;
+ F_NODE(u2.node, "old name");
+ break;
+
+ case NODE_VALIAS:
+ ANN("global variable alias statement");
+ ANN("format: alias [u1.id](gvar) [u2.id](gvar)");
+ ANN("example: alias $y $x");
+ F_ID(u1.id, "new name");
+ F_ID(u2.id, "old name");
+ break;
+
+ case NODE_UNDEF:
+ ANN("method alias statement");
+ ANN("format: undef [u2.node]");
+ ANN("example: undef foo");
+ LAST_NODE;
+ F_NODE(u2.node, "old name");
+ break;
+
+ case NODE_CLASS:
+ ANN("class definition");
+ ANN("format: class [nd_cpath] < [nd_super]; [nd_body]; end");
+ ANN("example: class C2 < C; ..; end");
+ F_NODE(nd_cpath, "class path");
+ F_NODE(nd_super, "superclass");
+ LAST_NODE;
+ F_NODE(nd_body, "class definition");
+ break;
+
+ case NODE_MODULE:
+ ANN("module definition");
+ ANN("format: module [nd_cpath]; [nd_body]; end");
+ ANN("example: module M; ..; end");
+ F_NODE(nd_cpath, "module path");
+ LAST_NODE;
+ F_NODE(nd_body, "module definition");
+ break;
+
+ case NODE_SCLASS:
+ ANN("singleton class definition");
+ ANN("format: class << [nd_recv]; [nd_body]; end");
+ ANN("example: class << obj; ..; end");
+ F_NODE(nd_recv, "receiver");
+ LAST_NODE;
+ F_NODE(nd_body, "singleton class definition");
+ break;
+
+ case NODE_COLON2:
+ ANN("scoped constant reference");
+ ANN("format: [nd_head]::[nd_mid]");
+ ANN("example: M::C");
+ F_ID(nd_mid, "constant name");
+ LAST_NODE;
+ F_NODE(nd_head, "receiver");
+ break;
+
+ case NODE_COLON3:
+ ANN("top-level constant reference");
+ ANN("format: ::[nd_mid]");
+ ANN("example: ::Object");
+ F_ID(nd_mid, "constant name");
+ break;
+
+ case NODE_DOT2:
+ ANN("range constructor (incl.)");
+ ANN("format: [nd_beg]..[nd_end]");
+ ANN("example: 1..5");
+ goto dot;
+ case NODE_DOT3:
+ ANN("range constructor (excl.)");
+ ANN("format: [nd_beg]...[nd_end]");
+ ANN("example: 1...5");
+ goto dot;
+ case NODE_FLIP2:
+ ANN("flip-flop condition (incl.)");
+ ANN("format: [nd_beg]..[nd_end]");
+ ANN("example: if (x==1)..(x==5); foo; end");
+ goto dot;
+ case NODE_FLIP3:
+ ANN("flip-flop condition (excl.)");
+ ANN("format: [nd_beg]...[nd_end]");
+ ANN("example: if (x==1)...(x==5); foo; end");
+ dot:
+ F_NODE(nd_beg, "begin");
+ LAST_NODE;
+ F_NODE(nd_end, "end");
+ break;
+
+ case NODE_SELF:
+ ANN("self");
+ ANN("format: self");
+ ANN("example: self");
+ break;
+
+ case NODE_NIL:
+ ANN("nil");
+ ANN("format: nil");
+ ANN("example: nil");
+ break;
+
+ case NODE_TRUE:
+ ANN("true");
+ ANN("format: true");
+ ANN("example: true");
+ break;
+
+ case NODE_FALSE:
+ ANN("false");
+ ANN("format: false");
+ ANN("example: false");
+ break;
+
+ case NODE_ERRINFO:
+ ANN("virtual reference to $!");
+ ANN("format: rescue => id");
+ ANN("example: rescue => id");
+ break;
+
+ case NODE_DEFINED:
+ ANN("defined? expression");
+ ANN("format: defined?([nd_head])");
+ ANN("example: defined?(foo)");
+ F_NODE(nd_head, "expr");
+ break;
+
+ case NODE_POSTEXE:
+ ANN("post-execution");
+ ANN("format: END { [nd_body] }");
+ ANN("example: END { foo }");
+ LAST_NODE;
+ F_NODE(nd_body, "END clause");
+ break;
+
+ case NODE_ATTRASGN:
+ ANN("attr assignment");
+ ANN("format: [nd_recv].[nd_mid] = [nd_args]");
+ ANN("example: struct.field = foo");
+ if (node->nd_recv == (NODE *) 1) {
+ F_MSG(nd_recv, "receiver", "1 (self)");
+ }
+ else {
+ F_NODE(nd_recv, "receiver");
+ }
+ F_ID(nd_mid, "method name");
+ LAST_NODE;
+ F_NODE(nd_args, "arguments");
+ break;
+
+ case NODE_PRELUDE:
+ ANN("pre-execution");
+ ANN("format: BEGIN { [nd_head] }; [nd_body]");
+ ANN("example: bar; BEGIN { foo }");
+ F_NODE(nd_head, "prelude");
+ LAST_NODE;
+ F_NODE(nd_body, "body");
+ break;
+
+ case NODE_LAMBDA:
+ ANN("lambda expression");
+ ANN("format: -> [nd_body]");
+ ANN("example: -> { foo }");
+ LAST_NODE;
+ F_NODE(nd_body, "lambda clause");
+ break;
+
+ case NODE_OPT_ARG:
+ ANN("optional arguments");
+ ANN("format: def method_name([nd_body=some], [nd_next..])");
+ ANN("example: def foo(a, b=1, c); end");
+ F_NODE(nd_body, "body");
+ LAST_NODE;
+ F_NODE(nd_next, "next");
+ break;
+
+ case NODE_POSTARG:
+ ANN("post arguments");
+ ANN("format: *[nd_1st], [nd_2nd..] = ..");
+ ANN("example: a, *rest, z = foo");
+ if ((VALUE)node->nd_1st != (VALUE)-1) {
+ F_NODE(nd_1st, "rest argument");
+ }
+ else {
+ F_MSG(nd_1st, "rest argument", "-1 (rest argument without name)");
+ }
+ LAST_NODE;
+ F_NODE(nd_2nd, "post arguments");
+ break;
+
+ case NODE_ARGS_AUX:
+ ANN("method parameters (cont'd)");
+ F_CUSTOM1(nd_rest, "rest argument", {
+ if (node->nd_rest == 1) A("nil (with last comma)");
+ else A_ID(node->nd_rest);
+ });
+ F_CUSTOM1(nd_body, "block argument", { A_ID((ID)node->nd_body); });
+ LAST_NODE;
+ F_CUSTOM2(nd_next, "aux info 2", {
+ node = node->nd_next;
+ next_indent = "| ";
+ if (!node) {
+ D_NULL_NODE;
+ }
+ else {
+ D_NODE_HEADER(node);
+ ANN("method parameters (cont'd)");
+ F_ID(nd_pid, "first post argument");
+ F_LONG(nd_plen, "post argument length");
+ LAST_NODE;
+ F_CUSTOM2(nd_next, "aux info 3", {
+ node = node->nd_next;
+ next_indent = "| ";
+ if (!node) {
+ D_NULL_NODE;
+ }
+ else {
+ D_NODE_HEADER(node);
+ ANN("method parameters (cont'd)");
+ F_NODE(nd_1st, "init arguments (m)");
+ LAST_NODE;
+ F_NODE(nd_2nd, "init arguments (p)");
+ }
+ });
+ }
+ });
+ break;
+
+ case NODE_ARGS:
+ ANN("method parameters");
+ ANN("format: def method_name(.., [nd_opt=some], *[nd_rest], [nd_pid], .., &[nd_body])");
+ ANN("example: def foo(a, b, opt1=1, opt2=2, *rest, y, z, &blk); end");
+ F_LONG(nd_frml, "argc");
+ F_NODE(nd_next, "aux info 1");
+ LAST_NODE;
+ F_NODE(nd_opt, "optional arguments");
+ break;
+
+ case NODE_SCOPE:
+ ANN("new scope");
+ ANN("format: [nd_tbl]: local table, [nd_args]: arguments, [nd_body]: body");
+ F_CUSTOM1(nd_tbl, "local table", {
+ ID *tbl = node->nd_tbl;
+ int i;
+ int size = tbl ? (int)*tbl++ : 0;
+ if (size == 0) A("(empty)");
+ for (i = 0; i < size; i++) {
+ A_ID(tbl[i]); if (i < size - 1) A(",");
+ }
+ });
+ F_NODE(nd_args, "arguments");
+ LAST_NODE;
+ F_NODE(nd_body, "body");
+ break;
+
+ default:
+ rb_bug("dump_node: unknown node: %s", ruby_node_name(nd_type(node)));
+ }
+}
+
+VALUE
+rb_parser_dump_tree(NODE *node, int comment)
+{
+ VALUE buf = rb_str_new_cstr(
+ "###########################################################\n"
+ "## Do NOT use this node dump for any purpose other than ##\n"
+ "## debug and research. Compatibility is not guaranteed. ##\n"
+ "###########################################################\n\n"
+ );
+ dump_node(buf, rb_str_new_cstr("# "), comment, node);
+ return buf;
+}
diff --git a/node.h b/node.h
index 58edbd4669..bb96107711 100644
--- a/node.h
+++ b/node.h
@@ -20,12 +20,6 @@ extern "C" {
#endif
enum node_type {
- NODE_METHOD,
-#define NODE_METHOD NODE_METHOD
- NODE_FBODY,
-#define NODE_FBODY NODE_FBODY
- NODE_CFUNC,
-#define NODE_CFUNC NODE_CFUNC
NODE_SCOPE,
#define NODE_SCOPE NODE_SCOPE
NODE_BLOCK,
@@ -202,8 +196,6 @@ enum node_type {
#define NODE_FLIP2 NODE_FLIP2
NODE_FLIP3,
#define NODE_FLIP3 NODE_FLIP3
- NODE_ATTRSET,
-#define NODE_ATTRSET NODE_ATTRSET
NODE_SELF,
#define NODE_SELF NODE_SELF
NODE_NIL,
@@ -241,8 +233,8 @@ enum node_type {
};
typedef struct RNode {
- unsigned long flags;
- char *nd_file;
+ VALUE flags;
+ VALUE nd_reserved; /* ex nd_file */
union {
struct RNode *node;
ID id;
@@ -260,7 +252,7 @@ typedef struct RNode {
struct RNode *node;
ID id;
long state;
- struct global_entry *entry;
+ struct rb_global_entry *entry;
long cnt;
VALUE value;
} u3;
@@ -270,17 +262,18 @@ typedef struct RNode {
/* 0..4:T_TYPES, 5:FL_MARK, 6:reserved, 7:NODE_FL_NEWLINE */
#define NODE_FL_NEWLINE (((VALUE)1)<<7)
+#define NODE_FL_CREF_PUSHED_BY_EVAL NODE_FL_NEWLINE
#define NODE_TYPESHIFT 8
#define NODE_TYPEMASK (((VALUE)0x7f)<<NODE_TYPESHIFT)
#define nd_type(n) ((int) (((RNODE(n))->flags & NODE_TYPEMASK)>>NODE_TYPESHIFT))
#define nd_set_type(n,t) \
- RNODE(n)->flags=((RNODE(n)->flags&~NODE_TYPEMASK)|(((t)<<NODE_TYPESHIFT)&NODE_TYPEMASK))
+ RNODE(n)->flags=((RNODE(n)->flags&~NODE_TYPEMASK)|((((unsigned long)(t))<<NODE_TYPESHIFT)&NODE_TYPEMASK))
#define NODE_LSHIFT (NODE_TYPESHIFT+7)
#define NODE_LMASK (((SIGNED_VALUE)1<<(sizeof(VALUE)*CHAR_BIT-NODE_LSHIFT))-1)
-#define nd_line(n) (RNODE(n)->flags>>NODE_LSHIFT)
+#define nd_line(n) (int)(RNODE(n)->flags>>NODE_LSHIFT)
#define nd_set_line(n,l) \
RNODE(n)->flags=((RNODE(n)->flags&~(-1<<NODE_LSHIFT))|(((l)&NODE_LMASK)<<NODE_LSHIFT))
@@ -354,13 +347,9 @@ typedef struct RNode {
#define nd_visi u2.argc
#define NEW_NODE(t,a0,a1,a2) rb_node_newnode((t),(VALUE)(a0),(VALUE)(a1),(VALUE)(a2))
-#define NEW_NODE_LONGLIFE(t,a0,a1,a2) rb_node_newnode_longlife((t),(VALUE)(a0),(VALUE)(a1),(VALUE)(a2))
-#define NEW_METHOD(n,x,v) NEW_NODE(NODE_METHOD,x,n,v)
-#define NEW_FBODY(n,i) NEW_NODE(NODE_FBODY,i,n,0)
#define NEW_DEFN(i,a,d,p) NEW_NODE(NODE_DEFN,0,i,NEW_SCOPE(a,d))
#define NEW_DEFS(r,i,a,d) NEW_NODE(NODE_DEFS,r,i,NEW_SCOPE(a,d))
-#define NEW_CFUNC(f,c) NEW_NODE(NODE_CFUNC,f,c,0)
#define NEW_IFUNC(f,c) NEW_NODE(NODE_IFUNC,f,c,0)
#define NEW_SCOPE(a,b) NEW_NODE(NODE_SCOPE,local_tbl(),b,a)
#define NEW_BLOCK(a) NEW_NODE(NODE_BLOCK,a,0,0)
@@ -446,7 +435,6 @@ typedef struct RNode {
#define NEW_COLON3(i) NEW_NODE(NODE_COLON3,0,i,0)
#define NEW_DOT2(b,e) NEW_NODE(NODE_DOT2,b,e,0)
#define NEW_DOT3(b,e) NEW_NODE(NODE_DOT3,b,e,0)
-#define NEW_ATTRSET(a) NEW_NODE(NODE_ATTRSET,a,0,0)
#define NEW_SELF() NEW_NODE(NODE_SELF,0,0,0)
#define NEW_NIL() NEW_NODE(NODE_NIL,0,0,0)
#define NEW_TRUE() NEW_NODE(NODE_TRUE,0,0,0)
@@ -460,33 +448,18 @@ typedef struct RNode {
#define NEW_PRELUDE(p,b) NEW_NODE(NODE_PRELUDE,p,b,0)
#define NEW_OPTBLOCK(a) NEW_NODE(NODE_OPTBLOCK,a,0,0)
-#define NOEX_PUBLIC 0x00
-#define NOEX_NOSUPER 0x01
-#define NOEX_PRIVATE 0x02
-#define NOEX_PROTECTED 0x04
-#define NOEX_MASK 0x06 /* 0110 */
-#define NOEX_BASIC 0x08
-
-#define NOEX_UNDEF NOEX_NOSUPER
-
-#define NOEX_MODFUNC 0x12
-#define NOEX_SUPER 0x20
-#define NOEX_VCALL 0x40
-
-#define NOEX_SAFE(n) ((int)((n) >> 8) & 0x0F)
-#define NOEX_WITH(n, s) ((s << 8) | (n) | (ruby_running ? 0 : NOEX_BASIC))
-#define NOEX_WITH_SAFE(n) NOEX_WITH(n, rb_safe_level())
-
-#define CALL_PUBLIC 0
-#define CALL_FCALL 1
-#define CALL_VCALL 2
-#define CALL_SUPER 3
-
-#define RUBY_VM_METHOD_NODE NODE_METHOD
+#if defined __GNUC__ && __GNUC__ >= 4
+#pragma GCC visibility push(default)
+#endif
VALUE rb_parser_new(void);
VALUE rb_parser_end_seen_p(VALUE);
VALUE rb_parser_encoding(VALUE);
+VALUE rb_parser_get_yydebug(VALUE);
+VALUE rb_parser_set_yydebug(VALUE, VALUE);
+VALUE rb_parser_dump_tree(NODE *node, int comment);
+NODE *rb_parser_append_print(VALUE, NODE *);
+NODE *rb_parser_while_loop(VALUE, NODE *, int, int);
NODE *rb_parser_compile_cstr(volatile VALUE, const char*, const char*, int, int);
NODE *rb_parser_compile_string(volatile VALUE, const char*, VALUE, int);
@@ -496,19 +469,29 @@ NODE *rb_compile_cstr(const char*, const char*, int, int);
NODE *rb_compile_string(const char*, VALUE, int);
NODE *rb_compile_file(const char*, VALUE, int);
-void rb_add_method(VALUE, ID, NODE *, int);
NODE *rb_node_newnode(enum node_type,VALUE,VALUE,VALUE);
NODE *rb_node_newnode_longlife(enum node_type,VALUE,VALUE,VALUE);
-NODE* rb_method_node(VALUE klass, ID id);
-int rb_node_arity(NODE* node);
+struct rb_global_entry {
+ struct rb_global_variable *var;
+ ID id;
+};
+
+struct rb_global_entry *rb_global_entry(ID);
+VALUE rb_gvar_get(struct rb_global_entry *);
+VALUE rb_gvar_set(struct rb_global_entry *, VALUE);
+VALUE rb_gvar_defined(struct rb_global_entry *);
+const struct kwtable *rb_reserved_word(const char *, unsigned int);
-int rb_notimplement_body_p(NODE*);
+struct parser_params;
+void *rb_parser_malloc(struct parser_params *, size_t);
+void *rb_parser_realloc(struct parser_params *, void *, size_t);
+void *rb_parser_calloc(struct parser_params *, size_t, size_t);
+void rb_parser_free(struct parser_params *, void *);
-struct global_entry *rb_global_entry(ID);
-VALUE rb_gvar_get(struct global_entry *);
-VALUE rb_gvar_set(struct global_entry *, VALUE);
-VALUE rb_gvar_defined(struct global_entry *);
+#if defined __GNUC__ && __GNUC__ >= 4
+#pragma GCC visibility pop
+#endif
#if defined(__cplusplus)
#if 0
diff --git a/numeric.c b/numeric.c
index 5b051f1452..497b93b85d 100644
--- a/numeric.c
+++ b/numeric.c
@@ -11,6 +11,8 @@
#include "ruby/ruby.h"
#include "ruby/encoding.h"
+#include "ruby/util.h"
+#include "internal.h"
#include <ctype.h>
#include <math.h>
#include <stdio.h>
@@ -62,6 +64,20 @@
#define DBL_EPSILON 2.2204460492503131e-16
#endif
+#ifdef HAVE_INFINITY
+#elif !defined(WORDS_BIGENDIAN) /* BYTE_ORDER == LITTLE_ENDIAN */
+const unsigned char rb_infinity[] = "\x00\x00\x80\x7f";
+#else
+const unsigned char rb_infinity[] = "\x7f\x80\x00\x00";
+#endif
+
+#ifdef HAVE_NAN
+#elif !defined(WORDS_BIGENDIAN) /* BYTE_ORDER == LITTLE_ENDIAN */
+const unsigned char rb_nan[] = "\x00\x00\xc0\x7f";
+#else
+const unsigned char rb_nan[] = "\x7f\xc0\x00\x00";
+#endif
+
#ifndef HAVE_ROUND
double
round(double x)
@@ -78,11 +94,12 @@ round(double x)
}
return x;
}
-#elif defined(__BEOS__)
-/* appears to be a bug in the BeOS headers */
-double round(double x);
#endif
+static VALUE fix_uminus(VALUE num);
+static VALUE fix_mul(VALUE x, VALUE y);
+static VALUE int_pow(long x, unsigned long y);
+
static ID id_coerce, id_to_i, id_eq;
VALUE rb_cNumeric;
@@ -99,10 +116,43 @@ rb_num_zerodiv(void)
rb_raise(rb_eZeroDivError, "divided by 0");
}
+/* experimental API */
+int
+rb_num_to_uint(VALUE val, unsigned int *ret)
+{
+#define NUMERR_TYPE 1
+#define NUMERR_NEGATIVE 2
+#define NUMERR_TOOLARGE 3
+ if (FIXNUM_P(val)) {
+ long v = FIX2LONG(val);
+#if SIZEOF_INT < SIZEOF_LONG
+ if (v > (long)UINT_MAX) return NUMERR_TOOLARGE;
+#endif
+ if (v < 0) return NUMERR_NEGATIVE;
+ *ret = (unsigned int)v;
+ return 0;
+ }
+
+ switch (TYPE(val)) {
+ case T_BIGNUM:
+ if (RBIGNUM_NEGATIVE_P(val)) return NUMERR_NEGATIVE;
+#if SIZEOF_INT < SIZEOF_LONG
+ /* long is 64bit */
+ return NUMERR_TOOLARGE;
+#else
+ /* long is 32bit */
+#define DIGSPERLONG (SIZEOF_LONG/SIZEOF_BDIGITS)
+ if (RBIGNUM_LEN(val) > DIGSPERLONG) return NUMERR_TOOLARGE;
+ *ret = (unsigned int)rb_big2ulong((VALUE)val);
+ return 0;
+#endif
+ }
+ return NUMERR_TYPE;
+}
/*
* call-seq:
- * num.coerce(numeric) => array
+ * num.coerce(numeric) -> array
*
* If <i>aNumeric</i> is the same type as <i>num</i>, returns an array
* containing <i>aNumeric</i> and <i>num</i>. Otherwise, returns an
@@ -158,25 +208,25 @@ do_coerce(VALUE *x, VALUE *y, int err)
if (err) {
rb_raise(rb_eTypeError, "coerce must return [x, y]");
}
- return Qfalse;
+ return FALSE;
}
*x = RARRAY_PTR(ary)[0];
*y = RARRAY_PTR(ary)[1];
- return Qtrue;
+ return TRUE;
}
VALUE
rb_num_coerce_bin(VALUE x, VALUE y, ID func)
{
- do_coerce(&x, &y, Qtrue);
+ do_coerce(&x, &y, TRUE);
return rb_funcall(x, func, 1, y);
}
VALUE
rb_num_coerce_cmp(VALUE x, VALUE y, ID func)
{
- if (do_coerce(&x, &y, Qfalse))
+ if (do_coerce(&x, &y, FALSE))
return rb_funcall(x, func, 1, y);
return Qnil;
}
@@ -186,7 +236,7 @@ rb_num_coerce_relop(VALUE x, VALUE y, ID func)
{
VALUE c, x0 = x, y0 = y;
- if (!do_coerce(&x, &y, Qfalse) ||
+ if (!do_coerce(&x, &y, FALSE) ||
NIL_P(c = rb_funcall(x, func, 1, y))) {
rb_cmperr(x0, y0);
return Qnil; /* not reached */
@@ -202,13 +252,13 @@ rb_num_coerce_relop(VALUE x, VALUE y, ID func)
static VALUE
num_sadded(VALUE x, VALUE name)
{
- const char *nstr = rb_id2name(rb_to_id(name));
+ ID mid = rb_to_id(name);
/* ruby_frame = ruby_frame->prev; */ /* pop frame for "singleton_method_added" */
/* Numerics should be values; singleton_methods should not be added to them */
- rb_remove_method(rb_singleton_class(x), nstr);
+ rb_remove_method_id(rb_singleton_class(x), mid);
rb_raise(rb_eTypeError,
"can't define singleton method \"%s\" for %s",
- nstr,
+ rb_id2name(mid),
rb_obj_classname(x));
return Qnil; /* not reached */
}
@@ -224,7 +274,7 @@ num_init_copy(VALUE x, VALUE y)
/*
* call-seq:
- * +num => num
+ * +num -> num
*
* Unary Plus---Returns the receiver's value.
*/
@@ -237,7 +287,22 @@ num_uplus(VALUE num)
/*
* call-seq:
- * -num => numeric
+ * num.i -> Complex(0,num)
+ *
+ * Returns the corresponding imaginary number.
+ * Not available for complex numbers.
+ */
+
+static VALUE
+num_imaginary(VALUE num)
+{
+ return rb_complex_new(INT2FIX(0), num);
+}
+
+
+/*
+ * call-seq:
+ * -num -> numeric
*
* Unary Minus---Returns the receiver's value, negated.
*/
@@ -248,14 +313,14 @@ num_uminus(VALUE num)
VALUE zero;
zero = INT2FIX(0);
- do_coerce(&zero, &num, Qtrue);
+ do_coerce(&zero, &num, TRUE);
return rb_funcall(zero, '-', 1, num);
}
/*
* call-seq:
- * num.quo(numeric) => result
+ * num.quo(numeric) -> real
*
* Returns most exact division (rational for integers, float for floats).
*/
@@ -269,7 +334,7 @@ num_quo(VALUE x, VALUE y)
/*
* call-seq:
- * num.fdiv(numeric) => float
+ * num.fdiv(numeric) -> float
*
* Returns float division.
*/
@@ -281,35 +346,82 @@ num_fdiv(VALUE x, VALUE y)
}
-static VALUE num_floor(VALUE num);
-
/*
* call-seq:
- * num.div(numeric) => integer
+ * num.div(numeric) -> integer
*
* Uses <code>/</code> to perform division, then converts the result to
- * an integer. <code>Numeric</code> does not define the <code>/</code>
+ * an integer. <code>numeric</code> does not define the <code>/</code>
* operator; this is left to subclasses.
+ *
+ * Equivalent to
+ * <i>num</i>.<code>divmod(</code><i>aNumeric</i><code>)[0]</code>.
+ *
+ * See <code>Numeric#divmod</code>.
*/
static VALUE
num_div(VALUE x, VALUE y)
{
if (rb_equal(INT2FIX(0), y)) rb_num_zerodiv();
- return num_floor(rb_funcall(x, '/', 1, y));
+ return rb_funcall(rb_funcall(x, '/', 1, y), rb_intern("floor"), 0);
+}
+
+
+/*
+ * call-seq:
+ * num.modulo(numeric) -> real
+ *
+ * x.modulo(y) means x-y*(x/y).floor
+ *
+ * Equivalent to
+ * <i>num</i>.<code>divmod(</code><i>aNumeric</i><code>)[1]</code>.
+ *
+ * See <code>Numeric#divmod</code>.
+ */
+
+static VALUE
+num_modulo(VALUE x, VALUE y)
+{
+ return rb_funcall(x, '-', 1,
+ rb_funcall(y, '*', 1,
+ rb_funcall(x, rb_intern("div"), 1, y)));
}
+/*
+ * call-seq:
+ * num.remainder(numeric) -> real
+ *
+ * x.remainder(y) means x-y*(x/y).truncate
+ *
+ * See <code>Numeric#divmod</code>.
+ */
+
+static VALUE
+num_remainder(VALUE x, VALUE y)
+{
+ VALUE z = rb_funcall(x, '%', 1, y);
+
+ if ((!rb_equal(z, INT2FIX(0))) &&
+ ((RTEST(rb_funcall(x, '<', 1, INT2FIX(0))) &&
+ RTEST(rb_funcall(y, '>', 1, INT2FIX(0)))) ||
+ (RTEST(rb_funcall(x, '>', 1, INT2FIX(0))) &&
+ RTEST(rb_funcall(y, '<', 1, INT2FIX(0)))))) {
+ return rb_funcall(z, '-', 1, y);
+ }
+ return z;
+}
/*
* call-seq:
- * num.divmod( aNumeric ) -> anArray
+ * num.divmod(numeric) -> array
*
* Returns an array containing the quotient and modulus obtained by
- * dividing <i>num</i> by <i>aNumeric</i>. If <code>q, r =
+ * dividing <i>num</i> by <i>numeric</i>. If <code>q, r =
* x.divmod(y)</code>, then
*
- * q = floor(float(x)/float(y))
- * x = q*y + r
+ * q = floor(x/y)
+ * x = q*y+r
*
* The quotient is rounded toward -infinity, as shown in the following table:
*
@@ -317,7 +429,7 @@ num_div(VALUE x, VALUE y)
* ------+-----+---------------+---------+-------------+---------------
* 13 | 4 | 3, 1 | 3 | 1 | 1
* ------+-----+---------------+---------+-------------+---------------
- * 13 | -4 | -4, -3 | -3 | -3 | 1
+ * 13 | -4 | -4, -3 | -4 | -3 | 1
* ------+-----+---------------+---------+-------------+---------------
* -13 | 4 | -4, 3 | -4 | 3 | -1
* ------+-----+---------------+---------+-------------+---------------
@@ -344,53 +456,12 @@ num_div(VALUE x, VALUE y)
static VALUE
num_divmod(VALUE x, VALUE y)
{
- return rb_assoc_new(num_div(x, y), rb_funcall(x, '%', 1, y));
-}
-
-/*
- * call-seq:
- * num.modulo(numeric) => result
- *
- * Equivalent to
- * <i>num</i>.<code>divmod(</code><i>aNumeric</i><code>)[1]</code>.
- */
-
-static VALUE
-num_modulo(VALUE x, VALUE y)
-{
- return rb_funcall(x, '%', 1, y);
+ return rb_assoc_new(num_div(x, y), num_modulo(x, y));
}
/*
* call-seq:
- * num.remainder(numeric) => result
- *
- * If <i>num</i> and <i>numeric</i> have different signs, returns
- * <em>mod</em>-<i>numeric</i>; otherwise, returns <em>mod</em>. In
- * both cases <em>mod</em> is the value
- * <i>num</i>.<code>modulo(</code><i>numeric</i><code>)</code>. The
- * differences between <code>remainder</code> and modulo
- * (<code>%</code>) are shown in the table under <code>Numeric#divmod</code>.
- */
-
-static VALUE
-num_remainder(VALUE x, VALUE y)
-{
- VALUE z = rb_funcall(x, '%', 1, y);
-
- if ((!rb_equal(z, INT2FIX(0))) &&
- ((RTEST(rb_funcall(x, '<', 1, INT2FIX(0))) &&
- RTEST(rb_funcall(y, '>', 1, INT2FIX(0)))) ||
- (RTEST(rb_funcall(x, '>', 1, INT2FIX(0))) &&
- RTEST(rb_funcall(y, '<', 1, INT2FIX(0)))))) {
- return rb_funcall(z, '-', 1, y);
- }
- return z;
-}
-
-/*
- * call-seq:
- * num.real? -> true or false
+ * num.real? -> true or false
*
* Returns <code>true</code> if <i>num</i> is a <code>Real</code>
* (i.e. non <code>Complex</code>).
@@ -404,7 +475,7 @@ num_real_p(VALUE num)
/*
* call-seq:
- * num.integer? -> true or false
+ * num.integer? -> true or false
*
* Returns <code>true</code> if <i>num</i> is an <code>Integer</code>
* (including <code>Fixnum</code> and <code>Bignum</code>).
@@ -418,7 +489,8 @@ num_int_p(VALUE num)
/*
* call-seq:
- * num.abs => num or numeric
+ * num.abs -> numeric
+ * num.magnitude -> numeric
*
* Returns the absolute value of <i>num</i>.
*
@@ -439,7 +511,7 @@ num_abs(VALUE num)
/*
* call-seq:
- * num.zero? => true or false
+ * num.zero? -> true or false
*
* Returns <code>true</code> if <i>num</i> has a zero value.
*/
@@ -456,9 +528,9 @@ num_zero_p(VALUE num)
/*
* call-seq:
- * num.nonzero? => num or nil
+ * num.nonzero? -> self or nil
*
- * Returns <i>num</i> if <i>num</i> is not zero, <code>nil</code>
+ * Returns +self+ if <i>num</i> is not zero, <code>nil</code>
* otherwise. This behavior is useful when chaining comparisons:
*
* a = %w( z Bb bB bb BB a aA Aa AA A )
@@ -477,7 +549,7 @@ num_nonzero_p(VALUE num)
/*
* call-seq:
- * num.to_int => integer
+ * num.to_int -> integer
*
* Invokes the child class's <code>to_i</code> method to convert
* <i>num</i> to an integer.
@@ -494,8 +566,16 @@ num_to_int(VALUE num)
*
* Document-class: Float
*
- * <code>Float</code> objects represent real numbers using the native
- * architecture's double-precision floating point representation.
+ * <code>Float</code> objects represent inexact real numbers using
+ * the native architecture's double-precision floating point
+ * representation.
+ *
+ * Floating point has a different arithmetic and is a inexact number.
+ * So you should know its esoteric system. see following:
+ *
+ * - http://docs.sun.com/source/806-3568/ncg_goldberg.html
+ * - http://wiki.github.com/rdp/ruby_tutorials_core/ruby-talk-faq#floats_imprecise
+ * - http://en.wikipedia.org/wiki/Floating_point#Accuracy_problems
*/
VALUE
@@ -510,7 +590,7 @@ rb_float_new(double d)
/*
* call-seq:
- * flt.to_s => string
+ * flt.to_s -> string
*
* Returns a string containing a representation of self. As well as a
* fixed or exponential form of the number, the call may return
@@ -521,39 +601,82 @@ rb_float_new(double d)
static VALUE
flo_to_s(VALUE flt)
{
+ char *ruby_dtoa(double d_, int mode, int ndigits, int *decpt, int *sign, char **rve);
enum {decimal_mant = DBL_MANT_DIG-DBL_DIG};
enum {float_dig = DBL_DIG+1};
char buf[float_dig + (decimal_mant + CHAR_BIT - 1) / CHAR_BIT + 10];
double value = RFLOAT_VALUE(flt);
+ VALUE s;
char *p, *e;
+ int sign, decpt, digs;
if (isinf(value))
return rb_usascii_str_new2(value < 0 ? "-Infinity" : "Infinity");
- else if(isnan(value))
+ else if (isnan(value))
return rb_usascii_str_new2("NaN");
-# define FLOFMT(buf, size, fmt, prec, val) snprintf(buf, size, fmt, prec, val), \
- (void)((atof(buf) == val) || snprintf(buf, size, fmt, (prec)+1, val))
-
- FLOFMT(buf, sizeof(buf), "%#.*g", float_dig, value); /* ensure to print decimal point */
- if (!(e = strchr(buf, 'e'))) {
- e = buf + strlen(buf);
+ p = ruby_dtoa(value, 0, 0, &decpt, &sign, &e);
+ s = sign ? rb_usascii_str_new_cstr("-") : rb_usascii_str_new(0, 0);
+ if ((digs = (int)(e - p)) >= (int)sizeof(buf)) digs = (int)sizeof(buf) - 1;
+ memcpy(buf, p, digs);
+ xfree(p);
+ if (decpt > 0) {
+ if (decpt < digs) {
+ memmove(buf + decpt + 1, buf + decpt, digs - decpt);
+ buf[decpt] = '.';
+ rb_str_cat(s, buf, digs + 1);
+ }
+ else if (decpt - digs < float_dig) {
+ long len;
+ char *ptr;
+ rb_str_cat(s, buf, digs);
+ rb_str_resize(s, (len = RSTRING_LEN(s)) + decpt - digs + 2);
+ ptr = RSTRING_PTR(s) + len;
+ if (decpt > digs) {
+ memset(ptr, '0', decpt - digs);
+ ptr += decpt - digs;
+ }
+ memcpy(ptr, ".0", 2);
+ }
+ else {
+ goto exp;
+ }
+ }
+ else if (decpt > -4) {
+ long len;
+ char *ptr;
+ rb_str_cat(s, "0.", 2);
+ rb_str_resize(s, (len = RSTRING_LEN(s)) - decpt + digs);
+ ptr = RSTRING_PTR(s);
+ memset(ptr += len, '0', -decpt);
+ memcpy(ptr -= decpt, buf, digs);
}
- if (!ISDIGIT(e[-1])) { /* reformat if ended with decimal point (ex 111111111111111.) */
- FLOFMT(buf, sizeof(buf), "%#.*e", float_dig - 1, value);
- if (!(e = strchr(buf, 'e'))) {
- e = buf + strlen(buf);
+ else {
+ exp:
+ if (digs > 1) {
+ memmove(buf + 2, buf + 1, digs - 1);
}
+ else {
+ buf[2] = '0';
+ digs++;
+ }
+ buf[1] = '.';
+ rb_str_cat(s, buf, digs + 1);
+ rb_str_catf(s, "e%+03d", decpt - 1);
}
- p = e;
- while (p[-1]=='0' && ISDIGIT(p[-2]))
- p--;
- memmove(p, e, strlen(e)+1);
- return rb_usascii_str_new2(buf);
+ return s;
}
/*
- * MISSING: documentation
+ * call-seq:
+ * flt.coerce(numeric) -> array
+ *
+ * Returns an array with both <i>aNumeric</i> and <i>flt</i> represented
+ * as <code>Float</code> objects.
+ * This is achieved by converting <i>aNumeric</i> to a <code>Float</code>.
+ *
+ * 1.2.coerce(3) #=> [3.0, 1.2]
+ * 2.5.coerce(1.1) #=> [1.1, 2.5]
*/
static VALUE
@@ -564,7 +687,7 @@ flo_coerce(VALUE x, VALUE y)
/*
* call-seq:
- * -float => float
+ * -float -> float
*
* Returns float, negated.
*/
@@ -577,7 +700,7 @@ flo_uminus(VALUE flt)
/*
* call-seq:
- * float + other => float
+ * float + other -> float
*
* Returns a new float which is the sum of <code>float</code>
* and <code>other</code>.
@@ -600,7 +723,7 @@ flo_plus(VALUE x, VALUE y)
/*
* call-seq:
- * float + other => float
+ * float - other -> float
*
* Returns a new float which is the difference of <code>float</code>
* and <code>other</code>.
@@ -623,7 +746,7 @@ flo_minus(VALUE x, VALUE y)
/*
* call-seq:
- * float * other => float
+ * float * other -> float
*
* Returns a new float which is the product of <code>float</code>
* and <code>other</code>.
@@ -646,7 +769,7 @@ flo_mul(VALUE x, VALUE y)
/*
* call-seq:
- * float / other => float
+ * float / other -> float
*
* Returns a new float which is the result of dividing
* <code>float</code> by <code>other</code>.
@@ -672,6 +795,13 @@ flo_div(VALUE x, VALUE y)
}
}
+/*
+ * call-seq:
+ * float.quo(numeric) -> float
+ *
+ * Returns float / numeric.
+ */
+
static VALUE
flo_quo(VALUE x, VALUE y)
{
@@ -687,7 +817,9 @@ flodivmod(double x, double y, double *divp, double *modp)
#ifdef HAVE_FMOD
mod = fmod(x, y);
#else
- {
+ if((x == 0.0) || (isinf(y) && !isinf(x)))
+ mod = x;
+ else {
double z;
modf(x/y, &z);
@@ -706,11 +838,22 @@ flodivmod(double x, double y, double *divp, double *modp)
if (divp) *divp = div;
}
+/*
+ * Returns the modulo of division of x by y.
+ * An error will be raised if y == 0.
+ */
+
+double ruby_float_mod(double x, double y) {
+ double mod;
+ flodivmod(x, y, 0, &mod);
+ return mod;
+}
+
/*
* call-seq:
- * flt % other => float
- * flt.modulo(other) => float
+ * flt % other -> float
+ * flt.modulo(other) -> float
*
* Return the modulo after division of <code>flt</code> by <code>other</code>.
*
@@ -721,7 +864,7 @@ flodivmod(double x, double y, double *divp, double *modp)
static VALUE
flo_mod(VALUE x, VALUE y)
{
- double fy, mod;
+ double fy;
switch (TYPE(y)) {
case T_FIXNUM:
@@ -736,29 +879,22 @@ flo_mod(VALUE x, VALUE y)
default:
return rb_num_coerce_bin(x, y, '%');
}
- flodivmod(RFLOAT_VALUE(x), fy, 0, &mod);
- return DBL2NUM(mod);
+ return DBL2NUM(ruby_float_mod(RFLOAT_VALUE(x), fy));
}
static VALUE
dbl2ival(double d)
{
+ d = round(d);
if (FIXABLE(d)) {
- d = round(d);
return LONG2FIX((long)d);
}
- else if (isnan(d) || isinf(d)) {
- /* special case: cannot return integer value */
- return rb_float_new(d);
- }
- else {
- return rb_dbl2big(d);
- }
+ return rb_dbl2big(d);
}
/*
* call-seq:
- * flt.divmod(numeric) => array
+ * flt.divmod(numeric) -> array
*
* See <code>Numeric#divmod</code>.
*/
@@ -791,9 +927,11 @@ flo_divmod(VALUE x, VALUE y)
/*
* call-seq:
*
- * flt ** other => float
+ * flt ** other -> float
*
* Raises <code>float</code> the <code>other</code> power.
+ *
+ * 2.0**3 #=> 8.0
*/
static VALUE
@@ -805,7 +943,13 @@ flo_pow(VALUE x, VALUE y)
case T_BIGNUM:
return DBL2NUM(pow(RFLOAT_VALUE(x), rb_big2dbl(y)));
case T_FLOAT:
- return DBL2NUM(pow(RFLOAT_VALUE(x), RFLOAT_VALUE(y)));
+ {
+ double dx = RFLOAT_VALUE(x);
+ double dy = RFLOAT_VALUE(y);
+ if (dx < 0 && dy != round(dy))
+ return rb_funcall(rb_complex_raw1(x), rb_intern("**"), 1, y);
+ return DBL2NUM(pow(dx, dy));
+ }
default:
return rb_num_coerce_bin(x, y, rb_intern("**"));
}
@@ -813,7 +957,7 @@ flo_pow(VALUE x, VALUE y)
/*
* call-seq:
- * num.eql?(numeric) => true or false
+ * num.eql?(numeric) -> true or false
*
* Returns <code>true</code> if <i>num</i> and <i>numeric</i> are the
* same type and have equal values.
@@ -833,7 +977,7 @@ num_eql(VALUE x, VALUE y)
/*
* call-seq:
- * num <=> other -> 0 or nil
+ * num <=> other -> 0 or nil
*
* Returns zero if <i>num</i> equals <i>other</i>, <code>nil</code>
* otherwise.
@@ -855,7 +999,7 @@ num_equal(VALUE x, VALUE y)
/*
* call-seq:
- * flt == obj => true or false
+ * flt == obj -> true or false
*
* Returns <code>true</code> only if <i>obj</i> has the same value
* as <i>flt</i>. Contrast this with <code>Float#eql?</code>, which
@@ -872,7 +1016,7 @@ flo_eq(VALUE x, VALUE y)
switch (TYPE(y)) {
case T_FIXNUM:
- b = FIX2LONG(y);
+ b = (double)FIX2LONG(y);
break;
case T_BIGNUM:
b = rb_big2dbl(y);
@@ -895,7 +1039,7 @@ flo_eq(VALUE x, VALUE y)
/*
* call-seq:
- * flt.hash => integer
+ * flt.hash -> integer
*
* Returns a hash code for this float.
*/
@@ -904,11 +1048,13 @@ static VALUE
flo_hash(VALUE num)
{
double d;
- int hash;
+ st_index_t hash;
d = RFLOAT_VALUE(num);
+ /* normalize -0.0 to 0.0 */
+ if (d == 0.0) d = 0.0;
hash = rb_memhash(&d, sizeof(d));
- return INT2FIX(hash);
+ return LONG2FIX(hash);
}
VALUE
@@ -923,25 +1069,31 @@ rb_dbl_cmp(double a, double b)
/*
* call-seq:
- * flt <=> numeric => -1, 0, +1
+ * flt <=> real -> -1, 0, +1 or nil
*
- * Returns -1, 0, or +1 depending on whether <i>flt</i> is less than,
- * equal to, or greater than <i>numeric</i>. This is the basis for the
- * tests in <code>Comparable</code>.
+ * Returns -1, 0, +1 or nil depending on whether <i>flt</i> is less
+ * than, equal to, or greater than <i>real</i>. This is the basis for
+ * the tests in <code>Comparable</code>.
*/
static VALUE
flo_cmp(VALUE x, VALUE y)
{
double a, b;
+ VALUE i;
a = RFLOAT_VALUE(x);
+ if (isnan(a)) return Qnil;
switch (TYPE(y)) {
case T_FIXNUM:
b = (double)FIX2LONG(y);
break;
case T_BIGNUM:
+ if (isinf(a)) {
+ if (a > 0.0) return INT2FIX(1);
+ else return INT2FIX(-1);
+ }
b = rb_big2dbl(y);
break;
@@ -950,6 +1102,15 @@ flo_cmp(VALUE x, VALUE y)
break;
default:
+ if (isinf(a) && (i = rb_check_funcall(y, rb_intern("infinite?"), 0, 0)) != Qundef) {
+ if (RTEST(i)) {
+ int j = rb_cmpint(i, x, y);
+ j = (a > 0.0) ? (j > 0 ? 0 : +1) : (j < 0 ? 0 : -1);
+ return INT2FIX(j);
+ }
+ if (a > 0.0) return INT2FIX(1);
+ return INT2FIX(-1);
+ }
return rb_num_coerce_cmp(x, y, rb_intern("<=>"));
}
return rb_dbl_cmp(a, b);
@@ -957,9 +1118,9 @@ flo_cmp(VALUE x, VALUE y)
/*
* call-seq:
- * flt > other => true or false
+ * flt > real -> true or false
*
- * <code>true</code> if <code>flt</code> is greater than <code>other</code>.
+ * <code>true</code> if <code>flt</code> is greater than <code>real</code>.
*/
static VALUE
@@ -995,10 +1156,10 @@ flo_gt(VALUE x, VALUE y)
/*
* call-seq:
- * flt >= other => true or false
+ * flt >= real -> true or false
*
* <code>true</code> if <code>flt</code> is greater than
- * or equal to <code>other</code>.
+ * or equal to <code>real</code>.
*/
static VALUE
@@ -1034,9 +1195,9 @@ flo_ge(VALUE x, VALUE y)
/*
* call-seq:
- * flt < other => true or false
+ * flt < real -> true or false
*
- * <code>true</code> if <code>flt</code> is less than <code>other</code>.
+ * <code>true</code> if <code>flt</code> is less than <code>real</code>.
*/
static VALUE
@@ -1072,10 +1233,10 @@ flo_lt(VALUE x, VALUE y)
/*
* call-seq:
- * flt <= other => true or false
+ * flt <= real -> true or false
*
* <code>true</code> if <code>flt</code> is less than
- * or equal to <code>other</code>.
+ * or equal to <code>real</code>.
*/
static VALUE
@@ -1111,7 +1272,7 @@ flo_le(VALUE x, VALUE y)
/*
* call-seq:
- * flt.eql?(obj) => true or false
+ * flt.eql?(obj) -> true or false
*
* Returns <code>true</code> only if <i>obj</i> is a
* <code>Float</code> with the same value as <i>flt</i>. Contrast this
@@ -1137,9 +1298,9 @@ flo_eql(VALUE x, VALUE y)
/*
* call-seq:
- * flt.to_f => flt
+ * flt.to_f -> self
*
- * As <code>flt</code> is already a float, returns <i>self</i>.
+ * As <code>flt</code> is already a float, returns +self+.
*/
static VALUE
@@ -1150,7 +1311,8 @@ flo_to_f(VALUE num)
/*
* call-seq:
- * flt.abs => float
+ * flt.abs -> float
+ * flt.magnitude -> float
*
* Returns the absolute value of <i>flt</i>.
*
@@ -1168,7 +1330,7 @@ flo_abs(VALUE flt)
/*
* call-seq:
- * flt.zero? -> true or false
+ * flt.zero? -> true or false
*
* Returns <code>true</code> if <i>flt</i> is 0.0.
*
@@ -1185,7 +1347,7 @@ flo_zero_p(VALUE num)
/*
* call-seq:
- * flt.nan? -> true or false
+ * flt.nan? -> true or false
*
* Returns <code>true</code> if <i>flt</i> is an invalid IEEE floating
* point number.
@@ -1206,7 +1368,7 @@ flo_is_nan_p(VALUE num)
/*
* call-seq:
- * flt.infinite? -> nil, -1, +1
+ * flt.infinite? -> nil, -1, +1
*
* Returns <code>nil</code>, -1, or +1 depending on whether <i>flt</i>
* is finite, -infinity, or +infinity.
@@ -1230,7 +1392,7 @@ flo_is_infinite_p(VALUE num)
/*
* call-seq:
- * flt.finite? -> true or false
+ * flt.finite? -> true or false
*
* Returns <code>true</code> if <i>flt</i> is a valid IEEE floating
* point number (it is not infinite, and <code>nan?</code> is
@@ -1256,7 +1418,7 @@ flo_is_finite_p(VALUE num)
/*
* call-seq:
- * flt.floor => integer
+ * flt.floor -> integer
*
* Returns the largest integer less than or equal to <i>flt</i>.
*
@@ -1281,7 +1443,7 @@ flo_floor(VALUE num)
/*
* call-seq:
- * flt.ceil => integer
+ * flt.ceil -> integer
*
* Returns the smallest <code>Integer</code> greater than or equal to
* <i>flt</i>.
@@ -1306,15 +1468,75 @@ flo_ceil(VALUE num)
}
/*
+ * Assumes num is an Integer, ndigits <= 0
+ */
+static VALUE
+int_round_0(VALUE num, int ndigits)
+{
+ VALUE n, f, h, r;
+ long bytes;
+ ID op;
+ /* If 10**N / 2 > num, then return 0 */
+ /* We have log_256(10) > 0.415241 and log_256(1/2) = -0.125, so */
+ bytes = FIXNUM_P(num) ? sizeof(long) : rb_funcall(num, rb_intern("size"), 0);
+ if (-0.415241 * ndigits - 0.125 > bytes ) {
+ return INT2FIX(0);
+ }
+
+ f = int_pow(10, -ndigits);
+ if (FIXNUM_P(num) && FIXNUM_P(f)) {
+ SIGNED_VALUE x = FIX2LONG(num), y = FIX2LONG(f);
+ int neg = x < 0;
+ if (neg) x = -x;
+ x = (x + y / 2) / y * y;
+ if (neg) x = -x;
+ return LONG2NUM(x);
+ }
+ if (TYPE(f) == T_FLOAT) {
+ /* then int_pow overflow */
+ return INT2FIX(0);
+ }
+ h = rb_funcall(f, '/', 1, INT2FIX(2));
+ r = rb_funcall(num, '%', 1, f);
+ n = rb_funcall(num, '-', 1, r);
+ op = RTEST(rb_funcall(num, '<', 1, INT2FIX(0))) ? rb_intern("<=") : '<';
+ if (!RTEST(rb_funcall(r, op, 1, h))) {
+ n = rb_funcall(n, '+', 1, f);
+ }
+ return n;
+}
+
+static VALUE
+flo_truncate(VALUE num);
+
+/*
* call-seq:
- * flt.round([ndigits]) => integer or float
+ * flt.round([ndigits]) -> integer or float
*
* Rounds <i>flt</i> to a given precision in decimal digits (default 0 digits).
- * Precision may be negative. Returns a a floating point number when ndigits
- * is more than one.
+ * Precision may be negative. Returns a floating point number when ndigits
+ * is more than zero.
*
+ * 1.4.round #=> 1
* 1.5.round #=> 2
+ * 1.6.round #=> 2
* (-1.5).round #=> -2
+ *
+ * 1.234567.round(2) #=> 1.23
+ * 1.234567.round(3) #=> 1.235
+ * 1.234567.round(4) #=> 1.2346
+ * 1.234567.round(5) #=> 1.23457
+ *
+ * 34567.89.round(-5) #=> 0
+ * 34567.89.round(-4) #=> 30000
+ * 34567.89.round(-3) #=> 35000
+ * 34567.89.round(-2) #=> 34600
+ * 34567.89.round(-1) #=> 34570
+ * 34567.89.round(0) #=> 34568
+ * 34567.89.round(1) #=> 34567.9
+ * 34567.89.round(2) #=> 34567.89
+ * 34567.89.round(3) #=> 34567.89
+ *
*/
static VALUE
@@ -1322,43 +1544,55 @@ flo_round(int argc, VALUE *argv, VALUE num)
{
VALUE nd;
double number, f;
- int ndigits = 0, i;
- long val;
+ int ndigits = 0;
+ int binexp;
+ enum {float_dig = DBL_DIG+2};
if (argc > 0 && rb_scan_args(argc, argv, "01", &nd) == 1) {
ndigits = NUM2INT(nd);
}
- number = RFLOAT_VALUE(num);
- f = 1.0;
- i = abs(ndigits);
- while (--i >= 0)
- f = f*10.0;
-
- if (isinf(f)) {
- if (ndigits < 0) number = 0;
+ if (ndigits < 0) {
+ return int_round_0(flo_truncate(num), ndigits);
}
- else {
- if (ndigits < 0) number /= f;
- else number *= f;
- number = round(number);
- if (ndigits < 0) number *= f;
- else number /= f;
+ number = RFLOAT_VALUE(num);
+ if (ndigits == 0) {
+ return dbl2ival(number);
+ }
+ frexp(number, &binexp);
+
+/* Let `exp` be such that `number` is written as:"0.#{digits}e#{exp}",
+ i.e. such that 10 ** (exp - 1) <= |number| < 10 ** exp
+ Recall that up to float_dig digits can be needed to represent a double,
+ so if ndigits + exp >= float_dig, the intermediate value (number * 10 ** ndigits)
+ will be an integer and thus the result is the original number.
+ If ndigits + exp <= 0, the result is 0 or "1e#{exp}", so
+ if ndigits + exp < 0, the result is 0.
+ We have:
+ 2 ** (binexp-1) <= |number| < 2 ** binexp
+ 10 ** ((binexp-1)/log_2(10)) <= |number| < 10 ** (binexp/log_2(10))
+ If binexp >= 0, and since log_2(10) = 3.322259:
+ 10 ** (binexp/4 - 1) < |number| < 10 ** (binexp/3)
+ floor(binexp/4) <= exp <= ceil(binexp/3)
+ If binexp <= 0, swap the /4 and the /3
+ So if ndigits + floor(binexp/(4 or 3)) >= float_dig, the result is number
+ If ndigits + ceil(binexp/(3 or 4)) < 0 the result is 0
+*/
+ if (isinf(number) || isnan(number) ||
+ (ndigits >= float_dig - (binexp > 0 ? binexp / 4 : binexp / 3 - 1))) {
+ return num;
}
-
- if (ndigits > 0) return DBL2NUM(number);
-
- if (!FIXABLE(number)) {
- return rb_dbl2big(number);
+ if (ndigits < - (binexp > 0 ? binexp / 3 + 1 : binexp / 4)) {
+ return DBL2NUM(0);
}
- val = (long)number;
- return LONG2FIX(val);
+ f = pow(10, ndigits);
+ return DBL2NUM(round(number * f) / f);
}
/*
* call-seq:
- * flt.to_i => integer
- * flt.to_int => integer
- * flt.truncate => integer
+ * flt.to_i -> integer
+ * flt.to_int -> integer
+ * flt.truncate -> integer
*
* Returns <i>flt</i> truncated to an <code>Integer</code>.
*/
@@ -1379,27 +1613,9 @@ flo_truncate(VALUE num)
return LONG2FIX(val);
}
-static VALUE
-flo_numerator(VALUE num)
-{
- double d = RFLOAT_VALUE(num);
- if (isinf(d) || isnan(d))
- return num;
- return rb_call_super(0, 0);
-}
-
-static VALUE
-flo_denominator(VALUE num)
-{
- double d = RFLOAT_VALUE(num);
- if (isinf(d) || isnan(d))
- return INT2FIX(1);
- return rb_call_super(0, 0);
-}
-
/*
* call-seq:
- * num.floor => integer
+ * num.floor -> integer
*
* Returns the largest integer less than or equal to <i>num</i>.
* <code>Numeric</code> implements this by converting <i>anInteger</i>
@@ -1418,7 +1634,7 @@ num_floor(VALUE num)
/*
* call-seq:
- * num.ceil => integer
+ * num.ceil -> integer
*
* Returns the smallest <code>Integer</code> greater than or equal to
* <i>num</i>. Class <code>Numeric</code> achieves this by converting
@@ -1439,11 +1655,11 @@ num_ceil(VALUE num)
/*
* call-seq:
- * num.round([ndigits]) => integer or float
+ * num.round([ndigits]) -> integer or float
*
* Rounds <i>num</i> to a given precision in decimal digits (default 0 digits).
- * Precision may be negative. Returns a a floating point number when ndigits
- * is more than one. <code>Numeric</code> implements this by converting itself
+ * Precision may be negative. Returns a floating point number when <i>ndigits</i>
+ * is more than zero. <code>Numeric</code> implements this by converting itself
* to a <code>Float</code> and invoking <code>Float#round</code>.
*/
@@ -1455,7 +1671,7 @@ num_round(int argc, VALUE* argv, VALUE num)
/*
* call-seq:
- * num.truncate => integer
+ * num.truncate -> integer
*
* Returns <i>num</i> truncated to an integer. <code>Numeric</code>
* implements this by converting its value to a float and invoking
@@ -1482,38 +1698,41 @@ ruby_float_step(VALUE from, VALUE to, VALUE step, int excl)
long i;
if (isinf(unit)) {
- if (unit > 0) rb_yield(DBL2NUM(beg));
+ if (unit > 0 ? beg <= end : beg >= end) rb_yield(DBL2NUM(beg));
}
else {
if (err>0.5) err=0.5;
n = floor(n + err);
- if (!excl) n++;
+ if (!excl || ((long)n)*unit+beg < end) n++;
for (i=0; i<n; i++) {
rb_yield(DBL2NUM(i*unit+beg));
}
}
- return Qtrue;
+ return TRUE;
}
- return Qfalse;
+ return FALSE;
}
/*
* call-seq:
- * num.step(limit, step ) {|i| block } => num
+ * num.step(limit[, step]) {|i| block } -> self
+ * num.step(limit[, step]) -> an_enumerator
*
* Invokes <em>block</em> with the sequence of numbers starting at
- * <i>num</i>, incremented by <i>step</i> on each call. The loop
- * finishes when the value to be passed to the block is greater than
- * <i>limit</i> (if <i>step</i> is positive) or less than
- * <i>limit</i> (if <i>step</i> is negative). If all the arguments are
- * integers, the loop operates using an integer counter. If any of the
- * arguments are floating point numbers, all are converted to floats,
- * and the loop is executed <i>floor(n + n*epsilon)+ 1</i> times,
- * where <i>n = (limit - num)/step</i>. Otherwise, the loop
- * starts at <i>num</i>, uses either the <code><</code> or
- * <code>></code> operator to compare the counter against
- * <i>limit</i>, and increments itself using the <code>+</code>
- * operator.
+ * <i>num</i>, incremented by <i>step</i> (default 1) on each
+ * call. The loop finishes when the value to be passed to the block
+ * is greater than <i>limit</i> (if <i>step</i> is positive) or less
+ * than <i>limit</i> (if <i>step</i> is negative). If all the
+ * arguments are integers, the loop operates using an integer
+ * counter. If any of the arguments are floating point numbers, all
+ * are converted to floats, and the loop is executed <i>floor(n +
+ * n*epsilon)+ 1</i> times, where <i>n = (limit -
+ * num)/step</i>. Otherwise, the loop starts at <i>num</i>, uses
+ * either the <code><</code> or <code>></code> operator to compare
+ * the counter against <i>limit</i>, and increments itself using the
+ * <code>+</code> operator.
+ *
+ * If no block is given, an enumerator is returned instead.
*
* 1.step(10, 2) { |i| print i, " " }
* Math::E.step(Math::PI, 0.2) { |f| print f, " " }
@@ -1540,7 +1759,7 @@ num_step(int argc, VALUE *argv, VALUE from)
step = argv[1];
}
else {
- rb_raise(rb_eArgError, "wrong number of arguments");
+ rb_raise(rb_eArgError, "wrong number of arguments (%d for 1..2)", argc);
}
if (rb_equal(step, INT2FIX(0))) {
rb_raise(rb_eArgError, "step can't be 0");
@@ -1567,7 +1786,7 @@ num_step(int argc, VALUE *argv, VALUE from)
}
}
}
- else if (!ruby_float_step(from, to, step, Qfalse)) {
+ else if (!ruby_float_step(from, to, step, FALSE)) {
VALUE i = from;
ID cmp;
@@ -1586,6 +1805,10 @@ num_step(int argc, VALUE *argv, VALUE from)
return from;
}
+#define LONG_MIN_MINUS_ONE ((double)LONG_MIN-1)
+#define LONG_MAX_PLUS_ONE (2*(double)(LONG_MAX/2+1))
+#define ULONG_MAX_PLUS_ONE (2*(double)(ULONG_MAX/2+1))
+
SIGNED_VALUE
rb_num2long(VALUE val)
{
@@ -1598,8 +1821,8 @@ rb_num2long(VALUE val)
switch (TYPE(val)) {
case T_FLOAT:
- if (RFLOAT_VALUE(val) <= (double)LONG_MAX
- && RFLOAT_VALUE(val) >= (double)LONG_MIN) {
+ if (RFLOAT_VALUE(val) < LONG_MAX_PLUS_ONE
+ && RFLOAT_VALUE(val) > LONG_MIN_MINUS_ONE) {
return (SIGNED_VALUE)(RFLOAT_VALUE(val));
}
else {
@@ -1623,28 +1846,51 @@ rb_num2long(VALUE val)
VALUE
rb_num2ulong(VALUE val)
{
- if (TYPE(val) == T_BIGNUM) {
+ again:
+ if (NIL_P(val)) {
+ rb_raise(rb_eTypeError, "no implicit conversion from nil to integer");
+ }
+
+ if (FIXNUM_P(val)) return FIX2LONG(val); /* this is FIX2LONG, inteneded */
+
+ switch (TYPE(val)) {
+ case T_FLOAT:
+ if (RFLOAT_VALUE(val) < ULONG_MAX_PLUS_ONE
+ && RFLOAT_VALUE(val) > LONG_MIN_MINUS_ONE) {
+ return (VALUE)RFLOAT_VALUE(val);
+ }
+ else {
+ char buf[24];
+ char *s;
+
+ snprintf(buf, sizeof(buf), "%-.10g", RFLOAT_VALUE(val));
+ if ((s = strchr(buf, ' ')) != 0) *s = '\0';
+ rb_raise(rb_eRangeError, "float %s out of range of integer", buf);
+ }
+
+ case T_BIGNUM:
return rb_big2ulong(val);
+
+ default:
+ val = rb_to_int(val);
+ goto again;
}
- return (VALUE)rb_num2long(val);
}
#if SIZEOF_INT < SIZEOF_VALUE
+void
+rb_out_of_int(SIGNED_VALUE num)
+{
+ rb_raise(rb_eRangeError, "integer %"PRIdVALUE " too %s to convert to `int'",
+ num, num < 0 ? "small" : "big");
+}
+
static void
check_int(SIGNED_VALUE num)
{
- const char *s;
-
- if (num < INT_MIN) {
- s = "small";
- }
- else if (num > INT_MAX) {
- s = "big";
+ if ((SIGNED_VALUE)(int)num != num) {
+ rb_out_of_int(num);
}
- else {
- return;
- }
- rb_raise(rb_eRangeError, "integer %"PRIdVALUE " too %s to convert to `int'", num, s);
}
static void
@@ -1655,7 +1901,8 @@ check_uint(VALUE num, VALUE sign)
if (RTEST(sign)) {
/* minus */
if ((num & mask) != mask || (num & ~mask) <= INT_MAX + 1UL)
- rb_raise(rb_eRangeError, "integer %"PRIdVALUE " too small to convert to `unsigned int'", num);
+#define VALUE_MSBMASK ((VALUE)1 << ((sizeof(VALUE) * CHAR_BIT) - 1))
+ rb_raise(rb_eRangeError, "integer %"PRIdVALUE " too small to convert to `unsigned int'", num|VALUE_MSBMASK);
}
else {
/* plus */
@@ -1685,10 +1932,10 @@ rb_fix2int(VALUE val)
unsigned long
rb_num2uint(VALUE val)
{
- unsigned long num = rb_num2ulong(val);
+ VALUE num = rb_num2ulong(val);
check_uint(num, rb_funcall(val, '<', 1, INT2FIX(0)));
- return num;
+ return (unsigned long)num;
}
unsigned long
@@ -1721,7 +1968,7 @@ rb_fix2int(VALUE val)
VALUE
rb_num2fix(VALUE val)
{
- long v;
+ SIGNED_VALUE v;
if (FIXNUM_P(val)) return val;
@@ -1733,6 +1980,13 @@ rb_num2fix(VALUE val)
#if HAVE_LONG_LONG
+#define LLONG_MIN_MINUS_ONE ((double)LLONG_MIN-1)
+#define LLONG_MAX_PLUS_ONE (2*(double)(LLONG_MAX/2+1))
+#define ULLONG_MAX_PLUS_ONE (2*(double)(ULLONG_MAX/2+1))
+#ifndef ULLONG_MAX
+#define ULLONG_MAX ((unsigned LONG_LONG)LLONG_MAX*2+1)
+#endif
+
LONG_LONG
rb_num2ll(VALUE val)
{
@@ -1744,8 +1998,8 @@ rb_num2ll(VALUE val)
switch (TYPE(val)) {
case T_FLOAT:
- if (RFLOAT_VALUE(val) <= (double)LLONG_MAX
- && RFLOAT_VALUE(val) >= (double)LLONG_MIN) {
+ if (RFLOAT_VALUE(val) < LLONG_MAX_PLUS_ONE
+ && RFLOAT_VALUE(val) > LLONG_MIN_MINUS_ONE) {
return (LONG_LONG)(RFLOAT_VALUE(val));
}
else {
@@ -1778,26 +2032,47 @@ rb_num2ll(VALUE val)
unsigned LONG_LONG
rb_num2ull(VALUE val)
{
- if (TYPE(val) == T_BIGNUM) {
+ switch (TYPE(val)) {
+ case T_NIL:
+ rb_raise(rb_eTypeError, "no implicit conversion from nil");
+
+ case T_FIXNUM:
+ return (LONG_LONG)FIX2LONG(val); /* this is FIX2LONG, inteneded */
+
+ case T_FLOAT:
+ if (RFLOAT_VALUE(val) < ULLONG_MAX_PLUS_ONE
+ && RFLOAT_VALUE(val) > 0) {
+ return (unsigned LONG_LONG)(RFLOAT_VALUE(val));
+ }
+ else {
+ char buf[24];
+ char *s;
+
+ snprintf(buf, sizeof(buf), "%-.10g", RFLOAT_VALUE(val));
+ if ((s = strchr(buf, ' ')) != 0) *s = '\0';
+ rb_raise(rb_eRangeError, "float %s out of range of unsgined long long", buf);
+ }
+
+ case T_BIGNUM:
return rb_big2ull(val);
- }
- return (unsigned LONG_LONG)rb_num2ll(val);
-}
-#endif /* HAVE_LONG_LONG */
+ case T_STRING:
+ rb_raise(rb_eTypeError, "no implicit conversion from string");
+ return Qnil; /* not reached */
-static VALUE
-num_numerator(VALUE num)
-{
- return rb_funcall(rb_Rational1(num), rb_intern("numerator"), 0);
-}
+ case T_TRUE:
+ case T_FALSE:
+ rb_raise(rb_eTypeError, "no implicit conversion from boolean");
+ return Qnil; /* not reached */
-static VALUE
-num_denominator(VALUE num)
-{
- return rb_funcall(rb_Rational1(num), rb_intern("denominator"), 0);
+ default:
+ val = rb_to_int(val);
+ return NUM2ULL(val);
+ }
}
+#endif /* HAVE_LONG_LONG */
+
/*
* Document-class: Integer
*
@@ -1806,15 +2081,13 @@ num_denominator(VALUE num)
*
*/
-
/*
* call-seq:
- * int.to_i => int
- * int.to_int => int
- * int.floor => int
- * int.ceil => int
- * int.round => int
- * int.truncate => int
+ * int.to_i -> integer
+ * int.to_int -> integer
+ * int.floor -> integer
+ * int.ceil -> integer
+ * int.truncate -> integer
*
* As <i>int</i> is already an <code>Integer</code>, all these
* methods simply return the receiver.
@@ -1828,7 +2101,7 @@ int_to_i(VALUE num)
/*
* call-seq:
- * int.integer? -> true
+ * int.integer? -> true
*
* Always returns <code>true</code>.
*/
@@ -1841,7 +2114,7 @@ int_int_p(VALUE num)
/*
* call-seq:
- * int.odd? -> true or false
+ * int.odd? -> true or false
*
* Returns <code>true</code> if <i>int</i> is an odd number.
*/
@@ -1857,7 +2130,7 @@ int_odd_p(VALUE num)
/*
* call-seq:
- * int.even? -> true or false
+ * int.even? -> true or false
*
* Returns <code>true</code> if <i>int</i> is an even number.
*/
@@ -1873,8 +2146,8 @@ int_even_p(VALUE num)
/*
* call-seq:
- * fixnum.next => integer
- * fixnum.succ => integer
+ * fixnum.next -> integer
+ * fixnum.succ -> integer
*
* Returns the <code>Integer</code> equal to <i>int</i> + 1.
*
@@ -1891,8 +2164,8 @@ fix_succ(VALUE num)
/*
* call-seq:
- * int.next => integer
- * int.succ => integer
+ * int.next -> integer
+ * int.succ -> integer
*
* Returns the <code>Integer</code> equal to <i>int</i> + 1.
*
@@ -1912,7 +2185,7 @@ int_succ(VALUE num)
/*
* call-seq:
- * int.pred => integer
+ * int.pred -> integer
*
* Returns the <code>Integer</code> equal to <i>int</i> - 1.
*
@@ -1930,9 +2203,31 @@ int_pred(VALUE num)
return rb_funcall(num, '-', 1, INT2FIX(1));
}
+VALUE
+rb_enc_uint_chr(unsigned int code, rb_encoding *enc)
+{
+ int n;
+ VALUE str;
+ switch (n = rb_enc_codelen(code, enc)) {
+ case ONIGERR_INVALID_CODE_POINT_VALUE:
+ rb_raise(rb_eRangeError, "invalid codepoint 0x%X in %s", code, rb_enc_name(enc));
+ break;
+ case ONIGERR_TOO_BIG_WIDE_CHAR_VALUE:
+ case 0:
+ rb_raise(rb_eRangeError, "%u out of char range", code);
+ break;
+ }
+ str = rb_enc_str_new(0, n, enc);
+ rb_enc_mbcput(code, RSTRING_PTR(str), enc);
+ if (rb_enc_precise_mbclen(RSTRING_PTR(str), RSTRING_END(str), enc) != n) {
+ rb_raise(rb_eRangeError, "invalid codepoint 0x%X in %s", code, rb_enc_name(enc));
+ }
+ return str;
+}
+
/*
* call-seq:
- * int.chr([encoding]) => string
+ * int.chr([encoding]) -> string
*
* Returns a string containing the character represented by the
* receiver's value according to +encoding+.
@@ -1946,16 +2241,26 @@ static VALUE
int_chr(int argc, VALUE *argv, VALUE num)
{
char c;
- int n;
- long i = NUM2LONG(num);
+ unsigned int i;
rb_encoding *enc;
- VALUE str;
+
+ if (rb_num_to_uint(num, &i) == 0) {
+ }
+ else if (FIXNUM_P(num)) {
+ rb_raise(rb_eRangeError, "%ld out of char range", FIX2LONG(num));
+ }
+ else {
+ rb_raise(rb_eRangeError, "bignum out of char range");
+ }
switch (argc) {
case 0:
- if (i < 0 || 0xff < i) {
- out_of_range:
- rb_raise(rb_eRangeError, "%"PRIdVALUE " out of char range", i);
+ if (0xff < i) {
+ enc = rb_default_internal_encoding();
+ if (!enc) {
+ rb_raise(rb_eRangeError, "%d out of char range", i);
+ }
+ goto decode;
}
c = (char)i;
if (i < 0x80) {
@@ -1967,23 +2272,18 @@ int_chr(int argc, VALUE *argv, VALUE num)
case 1:
break;
default:
- rb_raise(rb_eArgError, "wrong number of arguments (%d for 0 or 1)", argc);
+ rb_raise(rb_eArgError, "wrong number of arguments (%d for 0..1)", argc);
break;
}
enc = rb_to_encoding(argv[0]);
if (!enc) enc = rb_ascii8bit_encoding();
-#if SIZEOF_INT < SIZEOF_LONG
- if (i > INT_MAX) goto out_of_range;
-#endif
- if (i < 0 || (n = rb_enc_codelen((int)i, enc)) <= 0) goto out_of_range;
- str = rb_enc_str_new(0, n, enc);
- rb_enc_mbcput((int)i, RSTRING_PTR(str), enc);
- return str;
+ decode:
+ return rb_enc_uint_chr(i, enc);
}
/*
* call-seq:
- * int.ord => int
+ * int.ord -> self
*
* Returns the int itself.
*
@@ -1995,24 +2295,11 @@ int_chr(int argc, VALUE *argv, VALUE num)
*/
static VALUE
-int_ord(num)
- VALUE num;
-{
- return num;
-}
-
-static VALUE
-int_numerator(VALUE num)
+int_ord(VALUE num)
{
return num;
}
-static VALUE
-int_denominator(VALUE num)
-{
- return INT2FIX(1);
-}
-
/********************************************************************
*
* Document-class: Fixnum
@@ -2034,7 +2321,7 @@ int_denominator(VALUE num)
/*
* call-seq:
- * -fix => integer
+ * -fix -> integer
*
* Negates <code>fix</code> (which might return a Bignum).
*/
@@ -2076,7 +2363,7 @@ rb_fix2str(VALUE x, int base)
/*
* call-seq:
- * fix.to_s( base=10 ) -> aString
+ * fix.to_s(base=10) -> string
*
* Returns a string containing the representation of <i>fix</i> radix
* <i>base</i> (between 2 and 36).
@@ -2107,7 +2394,7 @@ fix_to_s(int argc, VALUE *argv, VALUE x)
/*
* call-seq:
- * fix + numeric => numeric_result
+ * fix + numeric -> numeric_result
*
* Performs addition: the class of the resulting object depends on
* the class of <code>numeric</code> and on the magnitude of the
@@ -2140,7 +2427,7 @@ fix_plus(VALUE x, VALUE y)
/*
* call-seq:
- * fix - numeric => numeric_result
+ * fix - numeric -> numeric_result
*
* Performs subtraction: the class of the resulting object depends on
* the class of <code>numeric</code> and on the magnitude of the
@@ -2178,7 +2465,7 @@ fix_minus(VALUE x, VALUE y)
/*
* call-seq:
- * fix * numeric => numeric_result
+ * fix * numeric -> numeric_result
*
* Performs multiplication: the class of the resulting object depends on
* the class of <code>numeric</code> and on the magnitude of the
@@ -2193,18 +2480,18 @@ fix_mul(VALUE x, VALUE y)
/* avoids an optimization bug of HP aC++/ANSI C B3910B A.06.05 [Jul 25 2005] */
volatile
#endif
- SIGNED_VALUE a, b;
-#if SIZEOF_VALUE * 2 <= SIZEOF_LONG_LONG
+ long a, b;
+#if SIZEOF_LONG * 2 <= SIZEOF_LONG_LONG
LONG_LONG d;
#else
- SIGNED_VALUE c;
+ volatile long c;
VALUE r;
#endif
a = FIX2LONG(x);
b = FIX2LONG(y);
-#if SIZEOF_VALUE * 2 <= SIZEOF_LONG_LONG
+#if SIZEOF_LONG * 2 <= SIZEOF_LONG_LONG
d = (LONG_LONG)a * b;
if (FIXABLE(d)) return LONG2FIX(d);
return rb_ll2inum(d);
@@ -2260,7 +2547,7 @@ fixdivmod(long x, long y, long *divp, long *modp)
/*
* call-seq:
- * fix.fdiv(numeric) => float
+ * fix.fdiv(numeric) -> float
*
* Returns the floating point result of dividing <i>fix</i> by
* <i>numeric</i>.
@@ -2278,7 +2565,7 @@ fix_fdiv(VALUE x, VALUE y)
}
switch (TYPE(y)) {
case T_BIGNUM:
- return DBL2NUM((double)FIX2LONG(x) / rb_big2dbl(y));
+ return rb_big_fdiv(rb_int2big(FIX2LONG(x)), y);
case T_FLOAT:
return DBL2NUM((double)FIX2LONG(x) / RFLOAT_VALUE(y));
default:
@@ -2313,6 +2600,10 @@ fix_divide(VALUE x, VALUE y, ID op)
return rb_dbl2big(floor(div));
}
}
+ case T_RATIONAL:
+ if (op == '/' && FIX2LONG(x) == 1)
+ return rb_rational_reciprocal(y);
+ /* fall through */
default:
return rb_num_coerce_bin(x, y, op);
}
@@ -2320,7 +2611,7 @@ fix_divide(VALUE x, VALUE y, ID op)
/*
* call-seq:
- * fix / numeric => numeric_result
+ * fix / numeric -> numeric_result
*
* Performs division: the class of the resulting object depends on
* the class of <code>numeric</code> and on the magnitude of the
@@ -2335,7 +2626,7 @@ fix_div(VALUE x, VALUE y)
/*
* call-seq:
- * fix.div(numeric) => numeric_result
+ * fix.div(numeric) -> integer
*
* Performs integer division: returns integer value.
*/
@@ -2348,11 +2639,11 @@ fix_idiv(VALUE x, VALUE y)
/*
* call-seq:
- * fix % other => Numeric
- * fix.modulo(other) => Numeric
+ * fix % other -> real
+ * fix.modulo(other) -> real
*
* Returns <code>fix</code> modulo <code>other</code>.
- * See <code>Numeric.divmod</code> for more information.
+ * See <code>numeric.divmod</code> for more information.
*/
static VALUE
@@ -2369,12 +2660,7 @@ fix_mod(VALUE x, VALUE y)
x = rb_int2big(FIX2LONG(x));
return rb_big_modulo(x, y);
case T_FLOAT:
- {
- double mod;
-
- flodivmod((double)FIX2LONG(x), RFLOAT_VALUE(y), 0, &mod);
- return DBL2NUM(mod);
- }
+ return DBL2NUM(ruby_float_mod((double)FIX2LONG(x), RFLOAT_VALUE(y)));
default:
return rb_num_coerce_bin(x, y, '%');
}
@@ -2382,7 +2668,7 @@ fix_mod(VALUE x, VALUE y)
/*
* call-seq:
- * fix.divmod(numeric) => array
+ * fix.divmod(numeric) -> array
*
* See <code>Numeric#divmod</code>.
*/
@@ -2440,7 +2726,7 @@ int_pow(long x, unsigned long y)
y >>= 1;
}
{
- long xz = x * z;
+ volatile long xz = x * z;
if (!POSFIXABLE(xz) || xz / x != z) {
goto bignum;
}
@@ -2451,25 +2737,11 @@ int_pow(long x, unsigned long y)
return LONG2NUM(z);
}
-#if defined _MSC_VER && _MSC_VER >= 1300
-#pragma warning(push)
-#pragma warning(disable:4723)
-#endif
-static inline double
-infinite_value(void)
-{
- static const double zero = 0.0;
- return 1.0 / zero;
-}
-#if defined _MSC_VER && _MSC_VER >= 1300
-#pragma warning(pop)
-#endif
-
/*
* call-seq:
- * fix ** other => Numeric
+ * fix ** numeric -> numeric_result
*
- * Raises <code>fix</code> to the <code>other</code> power, which may
+ * Raises <code>fix</code> to the <code>numeric</code> power, which may
* be negative or fractional.
*
* 2 ** 3 #=> 8
@@ -2492,7 +2764,7 @@ fix_pow(VALUE x, VALUE y)
if (b == 1) return x;
if (a == 0) {
if (b > 0) return INT2FIX(0);
- return DBL2NUM(infinite_value());
+ return DBL2NUM(INFINITY);
}
if (a == 1) return INT2FIX(1);
if (a == -1) {
@@ -2520,10 +2792,15 @@ fix_pow(VALUE x, VALUE y)
case T_FLOAT:
if (RFLOAT_VALUE(y) == 0.0) return DBL2NUM(1.0);
if (a == 0) {
- return DBL2NUM(RFLOAT_VALUE(y) < 0 ? infinite_value() : 0.0);
+ return DBL2NUM(RFLOAT_VALUE(y) < 0 ? INFINITY : 0.0);
}
if (a == 1) return DBL2NUM(1.0);
- return DBL2NUM(pow((double)a, RFLOAT_VALUE(y)));
+ {
+ double dy = RFLOAT_VALUE(y);
+ if (a < 0 && dy != round(dy))
+ return rb_funcall(rb_complex_raw1(x), rb_intern("**"), 1, y);
+ return DBL2NUM(pow((double)a, dy));
+ }
default:
return rb_num_coerce_bin(x, y, rb_intern("**"));
}
@@ -2531,7 +2808,7 @@ fix_pow(VALUE x, VALUE y)
/*
* call-seq:
- * fix == other
+ * fix == other -> true or false
*
* Return <code>true</code> if <code>fix</code> equals <code>other</code>
* numerically.
@@ -2557,11 +2834,12 @@ fix_equal(VALUE x, VALUE y)
/*
* call-seq:
- * fix <=> numeric => -1, 0, +1
+ * fix <=> numeric -> -1, 0, +1 or nil
*
- * Comparison---Returns -1, 0, or +1 depending on whether <i>fix</i> is
- * less than, equal to, or greater than <i>numeric</i>. This is the
- * basis for the tests in <code>Comparable</code>.
+ * Comparison---Returns -1, 0, +1 or nil depending on whether
+ * <i>fix</i> is less than, equal to, or greater than
+ * <i>numeric</i>. This is the basis for the tests in
+ * <code>Comparable</code>.
*/
static VALUE
@@ -2584,10 +2862,10 @@ fix_cmp(VALUE x, VALUE y)
/*
* call-seq:
- * fix > other => true or false
+ * fix > real -> true or false
*
* Returns <code>true</code> if the value of <code>fix</code> is
- * greater than that of <code>other</code>.
+ * greater than that of <code>real</code>.
*/
static VALUE
@@ -2609,10 +2887,10 @@ fix_gt(VALUE x, VALUE y)
/*
* call-seq:
- * fix >= other => true or false
+ * fix >= real -> true or false
*
* Returns <code>true</code> if the value of <code>fix</code> is
- * greater than or equal to that of <code>other</code>.
+ * greater than or equal to that of <code>real</code>.
*/
static VALUE
@@ -2634,10 +2912,10 @@ fix_ge(VALUE x, VALUE y)
/*
* call-seq:
- * fix < other => true or false
+ * fix < real -> true or false
*
* Returns <code>true</code> if the value of <code>fix</code> is
- * less than that of <code>other</code>.
+ * less than that of <code>real</code>.
*/
static VALUE
@@ -2659,10 +2937,10 @@ fix_lt(VALUE x, VALUE y)
/*
* call-seq:
- * fix <= other => true or false
+ * fix <= real -> true or false
*
* Returns <code>true</code> if the value of <code>fix</code> is
- * less than or equal to that of <code>other</code>.
+ * less than or equal to that of <code>real</code>.
*/
static VALUE
@@ -2684,7 +2962,7 @@ fix_le(VALUE x, VALUE y)
/*
* call-seq:
- * ~fix => integer
+ * ~fix -> integer
*
* One's complement: returns a number where each bit is flipped.
*/
@@ -2692,10 +2970,7 @@ fix_le(VALUE x, VALUE y)
static VALUE
fix_rev(VALUE num)
{
- long val = FIX2LONG(num);
-
- val = ~val;
- return LONG2NUM(val);
+ return ~num | FIXNUM_FLAG;
}
static VALUE
@@ -2712,7 +2987,7 @@ bit_coerce(VALUE x)
/*
* call-seq:
- * fix & other => integer
+ * fix & integer -> integer_result
*
* Bitwise AND.
*/
@@ -2731,7 +3006,7 @@ fix_and(VALUE x, VALUE y)
/*
* call-seq:
- * fix | other => integer
+ * fix | integer -> integer_result
*
* Bitwise OR.
*/
@@ -2750,7 +3025,7 @@ fix_or(VALUE x, VALUE y)
/*
* call-seq:
- * fix ^ other => integer
+ * fix ^ integer -> integer_result
*
* Bitwise EXCLUSIVE OR.
*/
@@ -2772,7 +3047,7 @@ static VALUE fix_rshift(long, unsigned long);
/*
* call-seq:
- * fix << count => integer
+ * fix << count -> integer
*
* Shifts _fix_ left _count_ positions (right if _count_ is negative).
*/
@@ -2804,7 +3079,7 @@ fix_lshift(long val, unsigned long width)
/*
* call-seq:
- * fix >> count => integer
+ * fix >> count -> integer
*
* Shifts _fix_ right _count_ positions (left if _count_ is negative).
*/
@@ -2837,7 +3112,7 @@ fix_rshift(long val, unsigned long i)
/*
* call-seq:
- * fix[n] => 0, 1
+ * fix[n] -> 0, 1
*
* Bit Reference---Returns the <em>n</em>th bit in the binary
* representation of <i>fix</i>, where <i>fix</i>[0] is the least
@@ -2880,7 +3155,7 @@ fix_aref(VALUE fix, VALUE idx)
/*
* call-seq:
- * fix.to_f -> float
+ * fix.to_f -> float
*
* Converts <i>fix</i> to a <code>Float</code>.
*
@@ -2898,7 +3173,8 @@ fix_to_f(VALUE num)
/*
* call-seq:
- * fix.abs -> aFixnum
+ * fix.abs -> integer
+ * fix.magnitude -> integer
*
* Returns the absolute value of <i>fix</i>.
*
@@ -2921,7 +3197,7 @@ fix_abs(VALUE fix)
/*
* call-seq:
- * fix.size -> fixnum
+ * fix.size -> fixnum
*
* Returns the number of <em>bytes</em> in the machine representation
* of a <code>Fixnum</code>.
@@ -2939,11 +3215,14 @@ fix_size(VALUE fix)
/*
* call-seq:
- * int.upto(limit) {|i| block } => int
+ * int.upto(limit) {|i| block } -> self
+ * int.upto(limit) -> an_enumerator
*
* Iterates <em>block</em>, passing in integer values from <i>int</i>
* up to and including <i>limit</i>.
*
+ * If no block is given, an enumerator is returned instead.
+ *
* 5.upto(10) { |i| print i, " " }
*
* <em>produces:</em>
@@ -2977,11 +3256,14 @@ int_upto(VALUE from, VALUE to)
/*
* call-seq:
- * int.downto(limit) {|i| block } => int
+ * int.downto(limit) {|i| block } -> self
+ * int.downto(limit) -> an_enumerator
*
* Iterates <em>block</em>, passing decreasing values from <i>int</i>
* down to and including <i>limit</i>.
*
+ * If no block is given, an enumerator is returned instead.
+ *
* 5.downto(1) { |n| print n, ".. " }
* print " Liftoff!\n"
*
@@ -3016,11 +3298,14 @@ int_downto(VALUE from, VALUE to)
/*
* call-seq:
- * int.times {|i| block } => int
+ * int.times {|i| block } -> self
+ * int.times -> an_enumerator
*
* Iterates block <i>int</i> times, passing in values from zero to
* <i>int</i> - 1.
*
+ * If no block is given, an enumerator is returned instead.
+ *
* 5.times do |i|
* print i, " "
* end
@@ -3055,10 +3340,23 @@ int_dotimes(VALUE num)
return num;
}
+/*
+ * call-seq:
+ * int.round([ndigits]) -> integer or float
+ *
+ * Rounds <i>flt</i> to a given precision in decimal digits (default 0 digits).
+ * Precision may be negative. Returns a floating point number when +ndigits+
+ * is positive, +self+ for zero, and round down for negative.
+ *
+ * 1.round #=> 1
+ * 1.round(2) #=> 1.0
+ * 15.round(-1) #=> 20
+ */
+
static VALUE
int_round(int argc, VALUE* argv, VALUE num)
{
- VALUE n, f, h, r;
+ VALUE n;
int ndigits;
if (argc == 0) return num;
@@ -3070,31 +3368,12 @@ int_round(int argc, VALUE* argv, VALUE num)
if (ndigits == 0) {
return num;
}
- ndigits = -ndigits;
- if (ndigits < 0) {
- rb_raise(rb_eArgError, "ndigits out of range");
- }
- f = int_pow(10, ndigits);
- if (FIXNUM_P(num) && FIXNUM_P(f)) {
- SIGNED_VALUE x = FIX2LONG(num), y = FIX2LONG(f);
- int neg = x < 0;
- if (neg) x = -x;
- x = (x + y / 2) / y * y;
- if (neg) x = -x;
- return LONG2NUM(x);
- }
- h = rb_funcall(f, '/', 1, INT2FIX(2));
- r = rb_funcall(num, '%', 1, f);
- n = rb_funcall(num, '-', 1, r);
- if (!RTEST(rb_funcall(r, '<', 1, h))) {
- n = rb_funcall(n, '+', 1, f);
- }
- return n;
+ return int_round_0(num, ndigits);
}
/*
* call-seq:
- * fix.zero? => true or false
+ * fix.zero? -> true or false
*
* Returns <code>true</code> if <i>fix</i> is zero.
*
@@ -3111,7 +3390,7 @@ fix_zero_p(VALUE num)
/*
* call-seq:
- * fix.odd? -> true or false
+ * fix.odd? -> true or false
*
* Returns <code>true</code> if <i>fix</i> is an odd number.
*/
@@ -3127,7 +3406,7 @@ fix_odd_p(VALUE num)
/*
* call-seq:
- * fix.even? -> true or false
+ * fix.even? -> true or false
*
* Returns <code>true</code> if <i>fix</i> is an even number.
*/
@@ -3141,6 +3420,38 @@ fix_even_p(VALUE num)
return Qtrue;
}
+/*
+ * Document-class: ZeroDivisionError
+ *
+ * Raised when attempting to divide an integer by 0.
+ *
+ * 42 / 0
+ *
+ * <em>raises the exception:</em>
+ *
+ * ZeroDivisionError: divided by 0
+ *
+ * Note that only division by an exact 0 will raise that exception:
+ *
+ * 42 / 0.0 #=> Float::INFINITY
+ * 42 / -0.0 #=> -Float::INFINITY
+ * 0 / 0.0 #=> NaN
+ */
+
+/*
+ * Document-class: FloatDomainError
+ *
+ * Raised when attempting to convert special float values
+ * (in particular infinite or NaN)
+ * to numerical classes which don't support them.
+ *
+ * Float::INFINITY.to_r
+ *
+ * <em>raises the exception:</em>
+ *
+ * FloatDomainError: Infinity
+ */
+
void
Init_Numeric(void)
{
@@ -3156,6 +3467,7 @@ Init_Numeric(void)
#elif defined(__BORLANDC__)
/* Turn off floating point exceptions for overflow, etc. */
_control87(MCW_EM, MCW_EM);
+ _control87(_control87(0,0),0x1FFF);
#endif
id_coerce = rb_intern("coerce");
id_to_i = rb_intern("to_i");
@@ -3170,6 +3482,7 @@ Init_Numeric(void)
rb_define_method(rb_cNumeric, "initialize_copy", num_init_copy, 1);
rb_define_method(rb_cNumeric, "coerce", num_coerce, 1);
+ rb_define_method(rb_cNumeric, "i", num_imaginary, 0);
rb_define_method(rb_cNumeric, "+@", num_uplus, 0);
rb_define_method(rb_cNumeric, "-@", num_uminus, 0);
rb_define_method(rb_cNumeric, "<=>", num_cmp, 1);
@@ -3178,6 +3491,7 @@ Init_Numeric(void)
rb_define_method(rb_cNumeric, "fdiv", num_fdiv, 1);
rb_define_method(rb_cNumeric, "div", num_div, 1);
rb_define_method(rb_cNumeric, "divmod", num_divmod, 1);
+ rb_define_method(rb_cNumeric, "%", num_modulo, 1);
rb_define_method(rb_cNumeric, "modulo", num_modulo, 1);
rb_define_method(rb_cNumeric, "remainder", num_remainder, 1);
rb_define_method(rb_cNumeric, "abs", num_abs, 0);
@@ -3195,9 +3509,6 @@ Init_Numeric(void)
rb_define_method(rb_cNumeric, "truncate", num_truncate, 0);
rb_define_method(rb_cNumeric, "step", num_step, -1);
- rb_define_method(rb_cNumeric, "numerator", num_numerator, 0);
- rb_define_method(rb_cNumeric, "denominator", num_denominator, 0);
-
rb_cInteger = rb_define_class("Integer", rb_cNumeric);
rb_undef_alloc_func(rb_cInteger);
rb_undef_method(CLASS_OF(rb_cInteger), "new");
@@ -3220,9 +3531,6 @@ Init_Numeric(void)
rb_define_method(rb_cInteger, "truncate", int_to_i, 0);
rb_define_method(rb_cInteger, "round", int_round, -1);
- rb_define_method(rb_cInteger, "numerator", int_numerator, 0);
- rb_define_method(rb_cInteger, "denominator", int_denominator, 0);
-
rb_cFixnum = rb_define_class("Fixnum", rb_cInteger);
rb_define_method(rb_cFixnum, "to_s", fix_to_s, -1);
@@ -3243,6 +3551,7 @@ Init_Numeric(void)
rb_define_method(rb_cFixnum, "magnitude", fix_abs, 0);
rb_define_method(rb_cFixnum, "==", fix_equal, 1);
+ rb_define_method(rb_cFixnum, "===", fix_equal, 1);
rb_define_method(rb_cFixnum, "<=>", fix_cmp, 1);
rb_define_method(rb_cFixnum, ">", fix_gt, 1);
rb_define_method(rb_cFixnum, ">=", fix_ge, 1);
@@ -3281,6 +3590,8 @@ Init_Numeric(void)
rb_define_const(rb_cFloat, "MIN", DBL2NUM(DBL_MIN));
rb_define_const(rb_cFloat, "MAX", DBL2NUM(DBL_MAX));
rb_define_const(rb_cFloat, "EPSILON", DBL2NUM(DBL_EPSILON));
+ rb_define_const(rb_cFloat, "INFINITY", DBL2NUM(INFINITY));
+ rb_define_const(rb_cFloat, "NAN", DBL2NUM(NAN));
rb_define_method(rb_cFloat, "to_s", flo_to_s, 0);
rb_define_method(rb_cFloat, "coerce", flo_coerce, 1);
@@ -3296,6 +3607,7 @@ Init_Numeric(void)
rb_define_method(rb_cFloat, "divmod", flo_divmod, 1);
rb_define_method(rb_cFloat, "**", flo_pow, 1);
rb_define_method(rb_cFloat, "==", flo_eq, 1);
+ rb_define_method(rb_cFloat, "===", flo_eq, 1);
rb_define_method(rb_cFloat, "<=>", flo_cmp, 1);
rb_define_method(rb_cFloat, ">", flo_gt, 1);
rb_define_method(rb_cFloat, ">=", flo_ge, 1);
@@ -3315,9 +3627,6 @@ Init_Numeric(void)
rb_define_method(rb_cFloat, "round", flo_round, -1);
rb_define_method(rb_cFloat, "truncate", flo_truncate, 0);
- rb_define_method(rb_cFloat, "numerator", flo_numerator, 0);
- rb_define_method(rb_cFloat, "denominator", flo_denominator, 0);
-
rb_define_method(rb_cFloat, "nan?", flo_is_nan_p, 0);
rb_define_method(rb_cFloat, "infinite?", flo_is_infinite_p, 0);
rb_define_method(rb_cFloat, "finite?", flo_is_finite_p, 0);
diff --git a/object.c b/object.c
index 8ebb86a7bc..f45e013a13 100644
--- a/object.c
+++ b/object.c
@@ -19,6 +19,8 @@
#include <ctype.h>
#include <math.h>
#include <float.h>
+#include "constant.h"
+#include "internal.h"
VALUE rb_cBasicObject;
VALUE rb_mKernel;
@@ -31,14 +33,15 @@ VALUE rb_cNilClass;
VALUE rb_cTrueClass;
VALUE rb_cFalseClass;
-static ID id_eq, id_eql, id_match, id_inspect, id_init_copy;
+static ID id_eq, id_eql, id_match, id_inspect;
+static ID id_init_copy, id_init_clone, id_init_dup;
/*
* call-seq:
- * obj === other => true or false
+ * obj === other -> true or false
*
* Case Equality---For class <code>Object</code>, effectively the same
- * as calling <code>#==</code>, but typically overridden by descendents
+ * as calling <code>#==</code>, but typically overridden by descendants
* to provide meaningful semantics in <code>case</code> statements.
*/
@@ -61,13 +64,13 @@ rb_eql(VALUE obj1, VALUE obj2)
/*
* call-seq:
- * obj == other => true or false
- * obj.equal?(other) => true or false
- * obj.eql?(other) => true or false
+ * obj == other -> true or false
+ * obj.equal?(other) -> true or false
+ * obj.eql?(other) -> true or false
*
* Equality---At the <code>Object</code> level, <code>==</code> returns
* <code>true</code> only if <i>obj</i> and <i>other</i> are the
- * same object. Typically, this method is overridden in descendent
+ * same object. Typically, this method is overridden in descendant
* classes to provide class-specific meaning.
*
* Unlike <code>==</code>, the <code>equal?</code> method should never be
@@ -95,17 +98,27 @@ rb_obj_equal(VALUE obj1, VALUE obj2)
return Qfalse;
}
+/*
+ * Generates a <code>Fixnum</code> hash value for this object.
+ * This function must have the property that a.eql?(b) implies
+ * a.hash <code>==</code> b.hash.
+ * The hash value is used by class <code>Hash</code>.
+ * Any hash value that exceeds the capacity of a <code>Fixnum</code> will be
+ * truncated before being used.
+ *
+ * "waffle".hash #=> -910576647
+ */
VALUE
rb_obj_hash(VALUE obj)
{
VALUE oid = rb_obj_id(obj);
- unsigned h = rb_hash_end(rb_hash_start(NUM2LONG(oid)));
- return LONG2NUM(h);
+ st_index_t h = rb_hash_end(rb_hash_start(NUM2LONG(oid)));
+ return LONG2FIX(h);
}
/*
* call-seq:
- * !obj => true or false
+ * !obj -> true or false
*
* Boolean negate.
*/
@@ -118,7 +131,7 @@ rb_obj_not(VALUE obj)
/*
* call-seq:
- * obj != other => true or false
+ * obj != other -> true or false
*
* Returns true if two objects are not-equal, otherwise false.
*/
@@ -143,11 +156,9 @@ rb_class_real(VALUE cl)
/*
* call-seq:
- * obj.class => class
+ * obj.class -> class
*
- * Returns the class of <i>obj</i>, now preferred over
- * <code>Object#type</code>, as an object's type in Ruby is only
- * loosely tied to that object's class. This method must always be
+ * Returns the class of <i>obj</i>. This method must always be
* called with an explicit receiver, as <code>class</code> is also a
* reserved word in Ruby.
*
@@ -161,6 +172,29 @@ rb_obj_class(VALUE obj)
return rb_class_real(CLASS_OF(obj));
}
+/*
+ * call-seq:
+ * obj.singleton_class -> class
+ *
+ * Returns the singleton class of <i>obj</i>. This method creates
+ * a new singleton class if <i>obj</i> does not have it.
+ *
+ * If <i>obj</i> is <code>nil</code>, <code>true</code>, or
+ * <code>false</code>, it returns NilClass, TrueClass, or FalseClass,
+ * respectively.
+ * If <i>obj</i> is a Fixnum or a Symbol, it raises a TypeError.
+ *
+ * Object.new.singleton_class #=> #<Class:#<Object:0xb7ce1e24>>
+ * String.singleton_class #=> #<Class:String>
+ * nil.singleton_class #=> NilClass
+ */
+
+static VALUE
+rb_obj_singleton_class(VALUE obj)
+{
+ return rb_singleton_class(obj);
+}
+
static void
init_copy(VALUE dest, VALUE obj)
{
@@ -199,12 +233,15 @@ init_copy(VALUE dest, VALUE obj)
st_free_table(RCLASS_IV_TBL(dest));
RCLASS_IV_TBL(dest) = 0;
}
+ if (RCLASS_CONST_TBL(dest)) {
+ rb_free_const_table(RCLASS_CONST_TBL(dest));
+ RCLASS_CONST_TBL(dest) = 0;
+ }
if (RCLASS_IV_TBL(obj)) {
RCLASS_IV_TBL(dest) = st_copy(RCLASS_IV_TBL(obj));
}
break;
}
- rb_funcall(dest, id_init_copy, 1, obj);
}
/*
@@ -241,8 +278,9 @@ rb_obj_clone(VALUE obj)
}
clone = rb_obj_alloc(rb_obj_class(obj));
RBASIC(clone)->klass = rb_singleton_class_clone(obj);
- RBASIC(clone)->flags = (RBASIC(obj)->flags | FL_TEST(clone, FL_TAINT) | FL_TEST(clone, FL_UNTRUSTED)) & ~(FL_FREEZE|FL_FINALIZE);
+ RBASIC(clone)->flags = (RBASIC(obj)->flags | FL_TEST(clone, FL_TAINT) | FL_TEST(clone, FL_UNTRUSTED)) & ~(FL_FREEZE|FL_FINALIZE|FL_MARK);
init_copy(clone, obj);
+ rb_funcall(clone, id_init_clone, 1, obj);
RBASIC(clone)->flags |= RBASIC(obj)->flags & FL_FREEZE;
return clone;
@@ -257,9 +295,9 @@ rb_obj_clone(VALUE obj)
* <code>dup</code> copies the tainted state of <i>obj</i>. See also
* the discussion under <code>Object#clone</code>. In general,
* <code>clone</code> and <code>dup</code> may have different semantics
- * in descendent classes. While <code>clone</code> is used to duplicate
+ * in descendant classes. While <code>clone</code> is used to duplicate
* an object, including its internal state, <code>dup</code> typically
- * uses the class of the descendent object to create the new instance.
+ * uses the class of the descendant object to create the new instance.
*
* This method may have class-specific behavior. If so, that
* behavior will be documented under the #+initialize_copy+ method of
@@ -276,6 +314,7 @@ rb_obj_dup(VALUE obj)
}
dup = rb_obj_alloc(rb_obj_class(obj));
init_copy(dup, obj);
+ rb_funcall(dup, id_init_dup, 1, obj);
return dup;
}
@@ -292,9 +331,17 @@ rb_obj_init_copy(VALUE obj, VALUE orig)
return obj;
}
+/* :nodoc: */
+VALUE
+rb_obj_init_dup_clone(VALUE obj, VALUE orig)
+{
+ rb_funcall(obj, id_init_copy, 1, orig);
+ return obj;
+}
+
/*
* call-seq:
- * obj.to_s => string
+ * obj.to_s -> string
*
* Returns a string representing <i>obj</i>. The default
* <code>to_s</code> prints the object's class and an encoding of the
@@ -364,22 +411,22 @@ inspect_obj(VALUE obj, VALUE str, int recur)
/*
* call-seq:
- * obj.inspect => string
+ * obj.inspect -> string
*
* Returns a string containing a human-readable representation of
- * <i>obj</i>. If not overridden, uses the <code>to_s</code> method to
+ * <i>obj</i>. If not overridden and no instance variables, uses the
+ * <code>to_s</code> method to generate the string.
+ * <i>obj</i>. If not overridden, uses the <code>to_s</code> method to
* generate the string.
*
* [ 1, 2, 3..4, 'five' ].inspect #=> "[1, 2, 3..4, \"five\"]"
* Time.new.inspect #=> "2008-03-08 19:43:39 +0900"
*/
-
static VALUE
rb_obj_inspect(VALUE obj)
{
-
- if (TYPE(obj) == T_OBJECT) {
+ if (TYPE(obj) == T_OBJECT && rb_obj_basic_to_s_p(obj)) {
int has_ivar = 0;
VALUE *ptr = ROBJECT_IVPTR(obj);
long len = ROBJECT_NUMIV(obj);
@@ -399,6 +446,7 @@ rb_obj_inspect(VALUE obj)
str = rb_sprintf("-<%s:%p", c, (void*)obj);
return rb_exec_recursive(inspect_obj, obj, str);
}
+ return rb_any_to_s(obj);
}
return rb_funcall(obj, rb_intern("to_s"), 0, 0);
}
@@ -406,10 +454,19 @@ rb_obj_inspect(VALUE obj)
/*
* call-seq:
- * obj.instance_of?(class) => true or false
+ * obj.instance_of?(class) -> true or false
*
* Returns <code>true</code> if <i>obj</i> is an instance of the given
* class. See also <code>Object#kind_of?</code>.
+ *
+ * class A; end
+ * class B < A; end
+ * class C < B; end
+ *
+ * b = B.new
+ * b.instance_of? A #=> false
+ * b.instance_of? B #=> true
+ * b.instance_of? C #=> false
*/
VALUE
@@ -431,8 +488,8 @@ rb_obj_is_instance_of(VALUE obj, VALUE c)
/*
* call-seq:
- * obj.is_a?(class) => true or false
- * obj.kind_of?(class) => true or false
+ * obj.is_a?(class) -> true or false
+ * obj.kind_of?(class) -> true or false
*
* Returns <code>true</code> if <i>class</i> is the class of
* <i>obj</i>, or if <i>class</i> is one of the superclasses of
@@ -444,11 +501,13 @@ rb_obj_is_instance_of(VALUE obj, VALUE c)
* end
* class B < A; end
* class C < B; end
+ *
* b = B.new
- * b.instance_of? A #=> false
- * b.instance_of? B #=> true
- * b.instance_of? C #=> false
- * b.instance_of? M #=> false
+ * b.is_a? A #=> true
+ * b.is_a? B #=> true
+ * b.is_a? C #=> false
+ * b.is_a? M #=> true
+ *
* b.kind_of? A #=> true
* b.kind_of? B #=> true
* b.kind_of? C #=> false
@@ -481,7 +540,7 @@ rb_obj_is_kind_of(VALUE obj, VALUE c)
/*
* call-seq:
- * obj.tap{|x|...} => obj
+ * obj.tap{|x|...} -> obj
*
* Yields <code>x</code> to the block, and then returns <code>x</code>.
* The primary purpose of this method is to "tap into" a method chain,
@@ -530,6 +589,54 @@ rb_obj_tap(VALUE obj)
* New subclass: Baz
*/
+/* Document-method: method_added
+ *
+ * call-seq:
+ * method_added(method_name)
+ *
+ * Invoked as a callback whenever an instance method is added to the
+ * receiver.
+ *
+ * module Chatty
+ * def self.method_added(method_name)
+ * puts "Adding #{method_name.inspect}"
+ * end
+ * def self.some_class_method() end
+ * def some_instance_method() end
+ * end
+ *
+ * produces:
+ *
+ * Adding :some_instance_method
+ *
+ */
+
+/* Document-method: method_removed
+ *
+ * call-seq:
+ * method_removed(method_name)
+ *
+ * Invoked as a callback whenever an instance method is removed from the
+ * receiver.
+ *
+ * module Chatty
+ * def self.method_removed(method_name)
+ * puts "Removing #{method_name.inspect}"
+ * end
+ * def self.some_class_method() end
+ * def some_instance_method() end
+ * class << self
+ * remove_method :some_class_method
+ * end
+ * remove_method :some_instance_method
+ * end
+ *
+ * produces:
+ *
+ * Removing :some_instance_method
+ *
+ */
+
/*
* Document-method: singleton_method_added
*
@@ -572,7 +679,7 @@ rb_obj_tap(VALUE obj)
* def self.one() end
* def two() end
* def Chatty.three() end
- * class <<self
+ * class << self
* remove_method :three
* remove_method :one
* end
@@ -630,6 +737,14 @@ rb_obj_tap(VALUE obj)
* end
*/
+/*
+ * Document-method: initialize
+ *
+ * call-seq:
+ * BasicObject.new
+ *
+ * Returns a new BasicObject.
+ */
/*
* Not documented
@@ -643,7 +758,7 @@ rb_obj_dummy(void)
/*
* call-seq:
- * obj.tainted? => true or false
+ * obj.tainted? -> true or false
*
* Returns <code>true</code> if the object is tainted.
*/
@@ -670,9 +785,7 @@ rb_obj_taint(VALUE obj)
{
rb_secure(4);
if (!OBJ_TAINTED(obj)) {
- if (OBJ_FROZEN(obj)) {
- rb_error_frozen("object");
- }
+ rb_check_frozen(obj);
OBJ_TAINT(obj);
}
return obj;
@@ -681,7 +794,7 @@ rb_obj_taint(VALUE obj)
/*
* call-seq:
- * obj.untaint => obj
+ * obj.untaint -> obj
*
* Removes the taint from <i>obj</i>.
*/
@@ -691,9 +804,7 @@ rb_obj_untaint(VALUE obj)
{
rb_secure(3);
if (OBJ_TAINTED(obj)) {
- if (OBJ_FROZEN(obj)) {
- rb_error_frozen("object");
- }
+ rb_check_frozen(obj);
FL_UNSET(obj, FL_TAINT);
}
return obj;
@@ -701,7 +812,7 @@ rb_obj_untaint(VALUE obj)
/*
* call-seq:
- * obj.untrusted? => true or false
+ * obj.untrusted? -> true or false
*
* Returns <code>true</code> if the object is untrusted.
*/
@@ -726,9 +837,7 @@ rb_obj_untrust(VALUE obj)
{
rb_secure(4);
if (!OBJ_UNTRUSTED(obj)) {
- if (OBJ_FROZEN(obj)) {
- rb_error_frozen("object");
- }
+ rb_check_frozen(obj);
OBJ_UNTRUST(obj);
}
return obj;
@@ -737,7 +846,7 @@ rb_obj_untrust(VALUE obj)
/*
* call-seq:
- * obj.trust => obj
+ * obj.trust -> obj
*
* Removes the untrusted mark from <i>obj</i>.
*/
@@ -747,9 +856,7 @@ rb_obj_trust(VALUE obj)
{
rb_secure(3);
if (OBJ_UNTRUSTED(obj)) {
- if (OBJ_FROZEN(obj)) {
- rb_error_frozen("object");
- }
+ rb_check_frozen(obj);
FL_UNSET(obj, FL_UNTRUSTED);
}
return obj;
@@ -765,13 +872,15 @@ static st_table *immediate_frozen_tbl = 0;
/*
* call-seq:
- * obj.freeze => obj
+ * obj.freeze -> obj
*
* Prevents further modifications to <i>obj</i>. A
* <code>RuntimeError</code> will be raised if modification is attempted.
* There is no way to unfreeze a frozen object. See also
* <code>Object#frozen?</code>.
*
+ * This method returns self.
+ *
* a = [ "a", "b", "c" ]
* a.freeze
* a << "z"
@@ -802,7 +911,7 @@ rb_obj_freeze(VALUE obj)
/*
* call-seq:
- * obj.frozen? => true or false
+ * obj.frozen? -> true or false
*
* Returns the freeze status of <i>obj</i>.
*
@@ -831,7 +940,7 @@ rb_obj_frozen_p(VALUE obj)
/*
* call-seq:
- * nil.to_i => 0
+ * nil.to_i -> 0
*
* Always returns zero.
*
@@ -847,7 +956,7 @@ nil_to_i(VALUE obj)
/*
* call-seq:
- * nil.to_f => 0.0
+ * nil.to_f -> 0.0
*
* Always returns zero.
*
@@ -862,7 +971,7 @@ nil_to_f(VALUE obj)
/*
* call-seq:
- * nil.to_s => ""
+ * nil.to_s -> ""
*
* Always returns the empty string.
*/
@@ -877,7 +986,7 @@ nil_to_s(VALUE obj)
* Document-method: to_a
*
* call-seq:
- * nil.to_a => []
+ * nil.to_a -> []
*
* Always returns an empty array.
*
@@ -892,7 +1001,7 @@ nil_to_a(VALUE obj)
/*
* call-seq:
- * nil.inspect => "nil"
+ * nil.inspect -> "nil"
*
* Always returns the string "nil".
*/
@@ -915,7 +1024,7 @@ nil_inspect(VALUE obj)
/*
* call-seq:
- * true.to_s => "true"
+ * true.to_s -> "true"
*
* The string representation of <code>true</code> is "true".
*/
@@ -929,7 +1038,7 @@ true_to_s(VALUE obj)
/*
* call-seq:
- * true & obj => true or false
+ * true & obj -> true or false
*
* And---Returns <code>false</code> if <i>obj</i> is
* <code>nil</code> or <code>false</code>, <code>true</code> otherwise.
@@ -943,7 +1052,7 @@ true_and(VALUE obj, VALUE obj2)
/*
* call-seq:
- * true | obj => true
+ * true | obj -> true
*
* Or---Returns <code>true</code>. As <i>anObject</i> is an argument to
* a method call, it is always evaluated; there is no short-circuit
@@ -966,7 +1075,7 @@ true_or(VALUE obj, VALUE obj2)
/*
* call-seq:
- * true ^ obj => !obj
+ * true ^ obj -> !obj
*
* Exclusive Or---Returns <code>true</code> if <i>obj</i> is
* <code>nil</code> or <code>false</code>, <code>false</code>
@@ -992,7 +1101,7 @@ true_xor(VALUE obj, VALUE obj2)
/*
* call-seq:
- * false.to_s => "false"
+ * false.to_s -> "false"
*
* 'nuf said...
*/
@@ -1005,8 +1114,8 @@ false_to_s(VALUE obj)
/*
* call-seq:
- * false & obj => false
- * nil & obj => false
+ * false & obj -> false
+ * nil & obj -> false
*
* And---Returns <code>false</code>. <i>obj</i> is always
* evaluated as it is the argument to a method call---there is no
@@ -1022,8 +1131,8 @@ false_and(VALUE obj, VALUE obj2)
/*
* call-seq:
- * false | obj => true or false
- * nil | obj => true or false
+ * false | obj -> true or false
+ * nil | obj -> true or false
*
* Or---Returns <code>false</code> if <i>obj</i> is
* <code>nil</code> or <code>false</code>; <code>true</code> otherwise.
@@ -1039,8 +1148,8 @@ false_or(VALUE obj, VALUE obj2)
/*
* call-seq:
- * false ^ obj => true or false
- * nil ^ obj => true or false
+ * false ^ obj -> true or false
+ * nil ^ obj -> true or false
*
* Exclusive Or---If <i>obj</i> is <code>nil</code> or
* <code>false</code>, returns <code>false</code>; otherwise, returns
@@ -1056,7 +1165,7 @@ false_xor(VALUE obj, VALUE obj2)
/*
* call_seq:
- * nil.nil? => true
+ * nil.nil? -> true
*
* Only the object <i>nil</i> responds <code>true</code> to <code>nil?</code>.
*/
@@ -1069,8 +1178,8 @@ rb_true(VALUE obj)
/*
* call_seq:
- * nil.nil? => true
- * <anything_else>.nil? => false
+ * nil.nil? -> true
+ * <anything_else>.nil? -> false
*
* Only the object <i>nil</i> responds <code>true</code> to <code>nil?</code>.
*/
@@ -1085,9 +1194,9 @@ rb_false(VALUE obj)
/*
* call-seq:
- * obj =~ other => nil
+ * obj =~ other -> nil
*
- * Pattern Match---Overridden by descendents (notably
+ * Pattern Match---Overridden by descendants (notably
* <code>Regexp</code> and <code>String</code>) to provide meaningful
* pattern-match semantics.
*/
@@ -1100,7 +1209,7 @@ rb_obj_match(VALUE obj1, VALUE obj2)
/*
* call-seq:
- * obj !~ other => true or false
+ * obj !~ other -> true or false
*
* Returns true if two objects do not match (using the <i>=~</i>
* method), otherwise false.
@@ -1114,6 +1223,20 @@ rb_obj_not_match(VALUE obj1, VALUE obj2)
}
+/*
+ * call-seq:
+ * obj <=> other -> 0 or nil
+ *
+ * Returns 0 if obj === other, otherwise nil.
+ */
+static VALUE
+rb_obj_cmp(VALUE obj1, VALUE obj2)
+{
+ if (obj1 == obj2 || rb_equal(obj1, obj2))
+ return INT2FIX(0);
+ return Qnil;
+}
+
/***********************************************************************
*
* Document-class: Module
@@ -1125,7 +1248,7 @@ rb_obj_not_match(VALUE obj1, VALUE obj2)
* called without creating an encapsulating object, while instance
* methods may not. (See <code>Module#module_function</code>)
*
- * In the descriptions that follow, the parameter <i>syml</i> refers
+ * In the descriptions that follow, the parameter <i>sym</i> refers
* to a symbol, which is either a quoted string or a
* <code>Symbol</code> (such as <code>:name</code>).
*
@@ -1144,7 +1267,7 @@ rb_obj_not_match(VALUE obj1, VALUE obj2)
/*
* call-seq:
- * mod.to_s => string
+ * mod.to_s -> string
*
* Return a string representing this module or class. For basic
* classes and modules, this is the name. For singletons, we
@@ -1176,9 +1299,11 @@ rb_mod_to_s(VALUE klass)
/*
* call-seq:
- * mod.freeze
+ * mod.freeze -> mod
*
* Prevents further modifications to <i>mod</i>.
+ *
+ * This method returns self.
*/
static VALUE
@@ -1190,10 +1315,10 @@ rb_mod_freeze(VALUE mod)
/*
* call-seq:
- * mod === obj => true or false
+ * mod === obj -> true or false
*
* Case Equality---Returns <code>true</code> if <i>anObject</i> is an
- * instance of <i>mod</i> or one of <i>mod</i>'s descendents. Of
+ * instance of <i>mod</i> or one of <i>mod</i>'s descendants. Of
* limited use for modules, but can be used in <code>case</code>
* statements to classify objects by class.
*/
@@ -1206,7 +1331,7 @@ rb_mod_eqq(VALUE mod, VALUE arg)
/*
* call-seq:
- * mod <= other => true, false, or nil
+ * mod <= other -> true, false, or nil
*
* Returns true if <i>mod</i> is a subclass of <i>other</i> or
* is the same as <i>other</i>. Returns
@@ -1245,7 +1370,7 @@ rb_class_inherited_p(VALUE mod, VALUE arg)
/*
* call-seq:
- * mod < other => true, false, or nil
+ * mod < other -> true, false, or nil
*
* Returns true if <i>mod</i> is a subclass of <i>other</i>. Returns
* <code>nil</code> if there's no relationship between the two.
@@ -1264,7 +1389,7 @@ rb_mod_lt(VALUE mod, VALUE arg)
/*
* call-seq:
- * mod >= other => true, false, or nil
+ * mod >= other -> true, false, or nil
*
* Returns true if <i>mod</i> is an ancestor of <i>other</i>, or the
* two modules are the same. Returns
@@ -1290,7 +1415,7 @@ rb_mod_ge(VALUE mod, VALUE arg)
/*
* call-seq:
- * mod > other => true, false, or nil
+ * mod > other -> true, false, or nil
*
* Returns true if <i>mod</i> is an ancestor of <i>other</i>. Returns
* <code>nil</code> if there's no relationship between the two.
@@ -1308,12 +1433,12 @@ rb_mod_gt(VALUE mod, VALUE arg)
/*
* call-seq:
- * mod <=> other_mod => -1, 0, +1, or nil
+ * mod <=> other_mod -> -1, 0, +1, or nil
*
* Comparison---Returns -1 if <i>mod</i> includes <i>other_mod</i>, 0 if
* <i>mod</i> is the same as <i>other_mod</i>, and +1 if <i>mod</i> is
- * included by <i>other_mod</i> or if <i>mod</i> has no relationship with
- * <i>other_mod</i>. Returns <code>nil</code> if <i>other_mod</i> is
+ * included by <i>other_mod</i>. Returns <code>nil</code> if <i>mod</i>
+ * has no relationship with <i>other_mod</i> or if <i>other_mod</i> is
* not a module.
*/
@@ -1356,14 +1481,14 @@ rb_class_s_alloc(VALUE klass)
/*
* call-seq:
- * Module.new => mod
- * Module.new {|mod| block } => mod
+ * Module.new -> mod
+ * Module.new {|mod| block } -> mod
*
* Creates a new anonymous module. If a block is given, it is passed
* the module object, and the block is evaluated in the context of this
* module using <code>module_eval</code>.
*
- * Fred = Module.new do
+ * fred = Module.new do
* def meth1
* "hello"
* end
@@ -1372,16 +1497,17 @@ rb_class_s_alloc(VALUE klass)
* end
* end
* a = "my string"
- * a.extend(Fred) #=> "my string"
+ * a.extend(fred) #=> "my string"
* a.meth1 #=> "hello"
* a.meth2 #=> "bye"
+ *
+ * Assign the module to a constant (name starting uppercase) if you
+ * want to treat it like a regular module.
*/
static VALUE
rb_mod_initialize(VALUE module)
{
- extern VALUE rb_mod_module_exec(int argc, VALUE *argv, VALUE mod);
-
if (rb_block_given_p()) {
rb_mod_module_exec(1, &module, module);
}
@@ -1390,12 +1516,32 @@ rb_mod_initialize(VALUE module)
/*
* call-seq:
- * Class.new(super_class=Object) => a_class
+ * Class.new(super_class=Object) -> a_class
+ * Class.new(super_class=Object) { |mod| ... } -> a_class
*
* Creates a new anonymous (unnamed) class with the given superclass
* (or <code>Object</code> if no parameter is given). You can give a
* class a name by assigning the class object to a constant.
*
+ * If a block is given, it is passed the class object, and the block
+ * is evaluated in the context of this class using
+ * <code>class_eval</code>.
+ *
+ * fred = Class.new do
+ * def meth1
+ * "hello"
+ * end
+ * def meth2
+ * "bye"
+ * end
+ * end
+ *
+ * a = fred.new #=> #<#<Class:0x100381890>:0x100376b98>
+ * a.meth1 #=> "hello"
+ * a.meth2 #=> "bye"
+ *
+ * Assign the class to a constant (name starting uppercase) if you
+ * want to treat it like a regular class.
*/
static VALUE
@@ -1403,7 +1549,7 @@ rb_class_initialize(int argc, VALUE *argv, VALUE klass)
{
VALUE super;
- if (RCLASS_SUPER(klass) != 0) {
+ if (RCLASS_SUPER(klass) != 0 || klass == rb_cBasicObject) {
rb_raise(rb_eTypeError, "already initialized class");
}
if (argc == 0) {
@@ -1423,7 +1569,7 @@ rb_class_initialize(int argc, VALUE *argv, VALUE klass)
/*
* call-seq:
- * class.allocate() => obj
+ * class.allocate() -> obj
*
* Allocates space for a new object of <i>class</i>'s class and does not
* call initialize on the new instance. The returned object must be an
@@ -1471,7 +1617,7 @@ rb_class_allocate_instance(VALUE klass)
/*
* call-seq:
- * class.new(args, ...) => obj
+ * class.new(args, ...) -> obj
*
* Calls <code>allocate</code> to create a new object of
* <i>class</i>'s class, then invokes that object's
@@ -1511,7 +1657,7 @@ rb_class_new_instance(int argc, VALUE *argv, VALUE klass)
*
*/
-static VALUE
+VALUE
rb_class_superclass(VALUE klass)
{
VALUE super = RCLASS_SUPER(klass);
@@ -1529,10 +1675,16 @@ rb_class_superclass(VALUE klass)
return super;
}
+VALUE
+rb_class_get_superclass(VALUE klass)
+{
+ return RCLASS_SUPER(klass);
+}
+
/*
* call-seq:
- * attr_reader(symbol, ...) => nil
- * attr(symbol, ...) => nil
+ * attr_reader(symbol, ...) -> nil
+ * attr(symbol, ...) -> nil
*
* Creates instance variables and corresponding methods that return the
* value of each instance variable. Equivalent to calling
@@ -1545,7 +1697,7 @@ rb_mod_attr_reader(int argc, VALUE *argv, VALUE klass)
int i;
for (i=0; i<argc; i++) {
- rb_attr(klass, rb_to_id(argv[i]), Qtrue, Qfalse, Qtrue);
+ rb_attr(klass, rb_to_id(argv[i]), TRUE, FALSE, TRUE);
}
return Qnil;
}
@@ -1555,7 +1707,7 @@ rb_mod_attr(int argc, VALUE *argv, VALUE klass)
{
if (argc == 2 && (argv[1] == Qtrue || argv[1] == Qfalse)) {
rb_warning("optional boolean argument is obsoleted");
- rb_attr(klass, rb_to_id(argv[0]), 1, RTEST(argv[1]), Qtrue);
+ rb_attr(klass, rb_to_id(argv[0]), 1, RTEST(argv[1]), TRUE);
return Qnil;
}
return rb_mod_attr_reader(argc, argv, klass);
@@ -1563,7 +1715,7 @@ rb_mod_attr(int argc, VALUE *argv, VALUE klass)
/*
* call-seq:
- * attr_writer(symbol, ...) => nil
+ * attr_writer(symbol, ...) -> nil
*
* Creates an accessor method to allow assignment to the attribute
* <i>aSymbol</i><code>.id2name</code>.
@@ -1575,14 +1727,14 @@ rb_mod_attr_writer(int argc, VALUE *argv, VALUE klass)
int i;
for (i=0; i<argc; i++) {
- rb_attr(klass, rb_to_id(argv[i]), Qfalse, Qtrue, Qtrue);
+ rb_attr(klass, rb_to_id(argv[i]), FALSE, TRUE, TRUE);
}
return Qnil;
}
/*
* call-seq:
- * attr_accessor(symbol, ...) => nil
+ * attr_accessor(symbol, ...) -> nil
*
* Defines a named attribute for this module, where the name is
* <i>symbol.</i><code>id2name</code>, creating an instance variable
@@ -1601,21 +1753,23 @@ rb_mod_attr_accessor(int argc, VALUE *argv, VALUE klass)
int i;
for (i=0; i<argc; i++) {
- rb_attr(klass, rb_to_id(argv[i]), Qtrue, Qtrue, Qtrue);
+ rb_attr(klass, rb_to_id(argv[i]), TRUE, TRUE, TRUE);
}
return Qnil;
}
/*
* call-seq:
- * mod.const_get(sym, inherit=true) => obj
+ * mod.const_get(sym, inherit=true) -> obj
*
- * Returns the value of the named constant in <i>mod</i>.
+ * Checks for a constant with the given name in <i>mod</i>
+ * If +inherit+ is set, the lookup will also search
+ * the ancestors (and +Object+ if <i>mod</i> is a +Module+.)
*
- * Math.const_get(:PI) #=> 3.14159265358979
+ * The value of the constant is returned if a definition is found,
+ * otherwise a +NameError+ is raised.
*
- * If the constant is not defined or is defined by the ancestors and
- * +inherit+ is false, +NameError+ will be raised.
+ * Math.const_get(:PI) #=> 3.14159265358979
*/
static VALUE
@@ -1640,7 +1794,7 @@ rb_mod_const_get(int argc, VALUE *argv, VALUE mod)
/*
* call-seq:
- * mod.const_set(sym, obj) => obj
+ * mod.const_set(sym, obj) -> obj
*
* Sets the named constant to the given object, returning that object.
* Creates a new constant if no constant with the given name previously
@@ -1664,14 +1818,17 @@ rb_mod_const_set(VALUE mod, VALUE name, VALUE value)
/*
* call-seq:
- * mod.const_defined?(sym, inherit=true) => true or false
+ * mod.const_defined?(sym, inherit=true) -> true or false
*
- * Returns <code>true</code> if a constant with the given name is
- * defined by <i>mod</i>, or its ancestors if +inherit+ is not false.
+ * Checks for a constant with the given name in <i>mod</i>
+ * If +inherit+ is set, the lookup will also search
+ * the ancestors (and +Object+ if <i>mod</i> is a +Module+.)
+ *
+ * Returns whether or not a definition is found:
*
* Math.const_defined? "PI" #=> true
- * IO.const_defined? "SYNC" #=> true
- * IO.const_defined? "SYNC", false #=> false
+ * IO.const_defined? :SYNC #=> true
+ * IO.const_defined? :SYNC, false #=> false
*/
static VALUE
@@ -1696,111 +1853,7 @@ rb_mod_const_defined(int argc, VALUE *argv, VALUE mod)
/*
* call-seq:
- * obj.methods => array
- *
- * Returns a list of the names of methods publicly accessible in
- * <i>obj</i>. This will include all the methods accessible in
- * <i>obj</i>'s ancestors.
- *
- * class Klass
- * def kMethod()
- * end
- * end
- * k = Klass.new
- * k.methods[0..9] #=> ["kMethod", "freeze", "nil?", "is_a?",
- * # "class", "instance_variable_set",
- * # "methods", "extend", "__send__", "instance_eval"]
- * k.methods.length #=> 42
- */
-
-static VALUE
-rb_obj_methods(int argc, VALUE *argv, VALUE obj)
-{
- retry:
- if (argc == 0) {
- VALUE args[1];
-
- args[0] = Qtrue;
- return rb_class_instance_methods(1, args, CLASS_OF(obj));
- }
- else {
- VALUE recur;
-
- rb_scan_args(argc, argv, "1", &recur);
- if (RTEST(recur)) {
- argc = 0;
- goto retry;
- }
- return rb_obj_singleton_methods(argc, argv, obj);
- }
-}
-
-/*
- * call-seq:
- * obj.protected_methods(all=true) => array
- *
- * Returns the list of protected methods accessible to <i>obj</i>. If
- * the <i>all</i> parameter is set to <code>false</code>, only those methods
- * in the receiver will be listed.
- */
-
-static VALUE
-rb_obj_protected_methods(int argc, VALUE *argv, VALUE obj)
-{
- if (argc == 0) { /* hack to stop warning */
- VALUE args[1];
-
- args[0] = Qtrue;
- return rb_class_protected_instance_methods(1, args, CLASS_OF(obj));
- }
- return rb_class_protected_instance_methods(argc, argv, CLASS_OF(obj));
-}
-
-/*
- * call-seq:
- * obj.private_methods(all=true) => array
- *
- * Returns the list of private methods accessible to <i>obj</i>. If
- * the <i>all</i> parameter is set to <code>false</code>, only those methods
- * in the receiver will be listed.
- */
-
-static VALUE
-rb_obj_private_methods(int argc, VALUE *argv, VALUE obj)
-{
- if (argc == 0) { /* hack to stop warning */
- VALUE args[1];
-
- args[0] = Qtrue;
- return rb_class_private_instance_methods(1, args, CLASS_OF(obj));
- }
- return rb_class_private_instance_methods(argc, argv, CLASS_OF(obj));
-}
-
-/*
- * call-seq:
- * obj.public_methods(all=true) => array
- *
- * Returns the list of public methods accessible to <i>obj</i>. If
- * the <i>all</i> parameter is set to <code>false</code>, only those methods
- * in the receiver will be listed.
- */
-
-static VALUE
-rb_obj_public_methods(int argc, VALUE *argv, VALUE obj)
-{
- if (argc == 0) { /* hack to stop warning */
- VALUE args[1];
-
- args[0] = Qtrue;
- return rb_class_public_instance_methods(1, args, CLASS_OF(obj));
- }
- return rb_class_public_instance_methods(argc, argv, CLASS_OF(obj));
-}
-
-/*
- * call-seq:
- * obj.instance_variable_get(symbol) => obj
+ * obj.instance_variable_get(symbol) -> obj
*
* Returns the value of the given instance variable, or nil if the
* instance variable is not set. The <code>@</code> part of the
@@ -1831,7 +1884,7 @@ rb_obj_ivar_get(VALUE obj, VALUE iv)
/*
* call-seq:
- * obj.instance_variable_set(symbol, obj) => obj
+ * obj.instance_variable_set(symbol, obj) -> obj
*
* Sets the instance variable names by <i>symbol</i> to
* <i>object</i>, thereby frustrating the efforts of the class's
@@ -1862,7 +1915,7 @@ rb_obj_ivar_set(VALUE obj, VALUE iv, VALUE val)
/*
* call-seq:
- * obj.instance_variable_defined?(symbol) => true or false
+ * obj.instance_variable_defined?(symbol) -> true or false
*
* Returns <code>true</code> if the given instance variable is
* defined in <i>obj</i>.
@@ -1891,7 +1944,7 @@ rb_obj_ivar_defined(VALUE obj, VALUE iv)
/*
* call-seq:
- * mod.class_variable_get(symbol) => obj
+ * mod.class_variable_get(symbol) -> obj
*
* Returns the value of the given class variable (or throws a
* <code>NameError</code> exception). The <code>@@</code> part of the
@@ -1916,7 +1969,7 @@ rb_mod_cvar_get(VALUE obj, VALUE iv)
/*
* call-seq:
- * obj.class_variable_set(symbol, obj) => obj
+ * obj.class_variable_set(symbol, obj) -> obj
*
* Sets the class variable names by <i>symbol</i> to
* <i>object</i>.
@@ -1945,7 +1998,7 @@ rb_mod_cvar_set(VALUE obj, VALUE iv, VALUE val)
/*
* call-seq:
- * obj.class_variable_defined?(symbol) => true or false
+ * obj.class_variable_defined?(symbol) -> true or false
*
* Returns <code>true</code> if the given class variable is defined
* in <i>obj</i>.
@@ -1989,6 +2042,7 @@ convert_type(VALUE val, const char *tname, const char *method, int raise)
{
ID m = 0;
int i;
+ VALUE r;
for (i=0; conv_method_names[i].method; i++) {
if (conv_method_names[i].method[0] == method[0] &&
@@ -1998,7 +2052,8 @@ convert_type(VALUE val, const char *tname, const char *method, int raise)
}
}
if (!m) m = rb_intern(method);
- if (!rb_respond_to(val, m)) {
+ r = rb_check_funcall(val, m, 0, 0);
+ if (r == Qundef) {
if (raise) {
rb_raise(rb_eTypeError, "can't convert %s into %s",
NIL_P(val) ? "nil" :
@@ -2007,11 +2062,9 @@ convert_type(VALUE val, const char *tname, const char *method, int raise)
rb_obj_classname(val),
tname);
}
- else {
- return Qnil;
- }
+ return Qnil;
}
- return rb_funcall(val, m, 0);
+ return r;
}
VALUE
@@ -2020,7 +2073,7 @@ rb_convert_type(VALUE val, int type, const char *tname, const char *method)
VALUE v;
if (TYPE(val) == type) return val;
- v = convert_type(val, tname, method, Qtrue);
+ v = convert_type(val, tname, method, TRUE);
if (TYPE(v) != type) {
const char *cname = rb_obj_classname(val);
rb_raise(rb_eTypeError, "can't convert %s to %s (%s#%s gives %s)",
@@ -2036,7 +2089,7 @@ rb_check_convert_type(VALUE val, int type, const char *tname, const char *method
/* always convert T_DATA */
if (TYPE(val) == type && type != T_DATA) return val;
- v = convert_type(val, tname, method, Qfalse);
+ v = convert_type(val, tname, method, FALSE);
if (NIL_P(v)) return Qnil;
if (TYPE(v) != type) {
const char *cname = rb_obj_classname(val);
@@ -2053,7 +2106,8 @@ rb_to_integer(VALUE val, const char *method)
VALUE v;
if (FIXNUM_P(val)) return val;
- v = convert_type(val, "Integer", method, Qtrue);
+ if (TYPE(val) == T_BIGNUM) return val;
+ v = convert_type(val, "Integer", method, TRUE);
if (!rb_obj_is_kind_of(v, rb_cInteger)) {
const char *cname = rb_obj_classname(val);
rb_raise(rb_eTypeError, "can't convert %s to Integer (%s#%s gives %s)",
@@ -2068,7 +2122,8 @@ rb_check_to_integer(VALUE val, const char *method)
VALUE v;
if (FIXNUM_P(val)) return val;
- v = convert_type(val, "Integer", method, Qfalse);
+ if (TYPE(val) == T_BIGNUM) return val;
+ v = convert_type(val, "Integer", method, FALSE);
if (!rb_obj_is_kind_of(v, rb_cInteger)) {
return Qnil;
}
@@ -2081,13 +2136,14 @@ rb_to_int(VALUE val)
return rb_to_integer(val, "to_int");
}
-VALUE
-rb_Integer(VALUE val)
+static VALUE
+rb_convert_to_integer(VALUE val, int base)
{
VALUE tmp;
switch (TYPE(val)) {
case T_FLOAT:
+ if (base != 0) goto arg_error;
if (RFLOAT_VALUE(val) <= (double)FIXNUM_MAX
&& RFLOAT_VALUE(val) >= (double)FIXNUM_MIN) {
break;
@@ -2096,46 +2152,80 @@ rb_Integer(VALUE val)
case T_FIXNUM:
case T_BIGNUM:
+ if (base != 0) goto arg_error;
return val;
case T_STRING:
- return rb_str_to_inum(val, 0, Qtrue);
+ string_conv:
+ return rb_str_to_inum(val, base, TRUE);
case T_NIL:
+ if (base != 0) goto arg_error;
rb_raise(rb_eTypeError, "can't convert nil into Integer");
break;
default:
break;
}
- tmp = convert_type(val, "Integer", "to_int", Qfalse);
+ if (base != 0) {
+ tmp = rb_check_string_type(val);
+ if (!NIL_P(tmp)) goto string_conv;
+ arg_error:
+ rb_raise(rb_eArgError, "base specified for non string value");
+ }
+ tmp = convert_type(val, "Integer", "to_int", FALSE);
if (NIL_P(tmp)) {
return rb_to_integer(val, "to_i");
}
return tmp;
+
+}
+
+VALUE
+rb_Integer(VALUE val)
+{
+ return rb_convert_to_integer(val, 0);
}
/*
* call-seq:
- * Integer(arg) => integer
+ * Integer(arg,base=0) -> integer
*
* Converts <i>arg</i> to a <code>Fixnum</code> or <code>Bignum</code>.
* Numeric types are converted directly (with floating point numbers
- * being truncated). If <i>arg</i> is a <code>String</code>, leading
- * radix indicators (<code>0</code>, <code>0b</code>, and
- * <code>0x</code>) are honored. Others are converted using
- * <code>to_int</code> and <code>to_i</code>. This behavior is
- * different from that of <code>String#to_i</code>.
+ * being truncated). <i>base</i> (0, or between 2 and 36) is a base for
+ * integer string representation. If <i>arg</i> is a <code>String</code>,
+ * when <i>base</i> is omitted or equals to zero, radix indicators
+ * (<code>0</code>, <code>0b</code>, and <code>0x</code>) are honored.
+ * In any case, strings should be strictly conformed to numeric
+ * representation. This behavior is different from that of
+ * <code>String#to_i</code>. Non string values will be converted using
+ * <code>to_int</code>, and <code>to_i</code>.
*
* Integer(123.999) #=> 123
* Integer("0x1a") #=> 26
* Integer(Time.new) #=> 1204973019
+ * Integer("0930", 10) #=> 930
+ * Integer("111", 2) #=> 7
*/
static VALUE
-rb_f_integer(VALUE obj, VALUE arg)
+rb_f_integer(int argc, VALUE *argv, VALUE obj)
{
- return rb_Integer(arg);
+ VALUE arg = Qnil;
+ int base = 0;
+
+ switch (argc) {
+ case 2:
+ base = NUM2INT(argv[1]);
+ case 1:
+ arg = argv[0];
+ break;
+ default:
+ /* should cause ArgumentError */
+ rb_scan_args(argc, argv, "11", NULL, NULL);
+ }
+ return rb_convert_to_integer(arg, base);
}
double
@@ -2146,11 +2236,19 @@ rb_cstr_to_dbl(const char *p, int badcheck)
double d;
const char *ellipsis = "";
int w;
-#define OutOfRange() (((w = end - p) > 20) ? (w = 20, ellipsis = "...") : (ellipsis = ""))
+ enum {max_width = 20};
+#define OutOfRange() ((end - p > max_width) ? \
+ (w = max_width, ellipsis = "...") : \
+ (w = (int)(end - p), ellipsis = ""))
if (!p) return 0.0;
q = p;
while (ISSPACE(*p)) p++;
+
+ if (!badcheck && p[0] == '0' && (p[1] == 'x' || p[1] == 'X')) {
+ return 0.0;
+ }
+
d = strtod(p, &end);
if (errno == ERANGE) {
OutOfRange();
@@ -2189,6 +2287,11 @@ rb_cstr_to_dbl(const char *p, int badcheck)
}
*n = '\0';
p = buf;
+
+ if (!badcheck && p[0] == '0' && (p[1] == 'x' || p[1] == 'X')) {
+ return 0.0;
+ }
+
d = strtod(p, &end);
if (errno == ERANGE) {
OutOfRange();
@@ -2214,23 +2317,27 @@ rb_str_to_dbl(VALUE str, int badcheck)
{
char *s;
long len;
+ double ret;
+ VALUE v = 0;
StringValue(str);
s = RSTRING_PTR(str);
len = RSTRING_LEN(str);
if (s) {
+ if (badcheck && memchr(s, '\0', len)) {
+ rb_raise(rb_eArgError, "string for Float contains null byte");
+ }
if (s[len]) { /* no sentinel somehow */
- char *p = ALLOCA_N(char, len+1);
-
+ char *p = ALLOCV(v, len);
MEMCPY(p, s, char, len);
p[len] = '\0';
s = p;
}
- if (badcheck && len != strlen(s)) {
- rb_raise(rb_eArgError, "string for Float contains null byte");
- }
}
- return rb_cstr_to_dbl(s, badcheck);
+ ret = rb_cstr_to_dbl(s, badcheck);
+ if (v)
+ ALLOCV_END(v);
+ return ret;
}
VALUE
@@ -2247,7 +2354,7 @@ rb_Float(VALUE val)
return DBL2NUM(rb_big2dbl(val));
case T_STRING:
- return DBL2NUM(rb_str_to_dbl(val, Qtrue));
+ return DBL2NUM(rb_str_to_dbl(val, TRUE));
case T_NIL:
rb_raise(rb_eTypeError, "can't convert nil into Float");
@@ -2260,7 +2367,7 @@ rb_Float(VALUE val)
/*
* call-seq:
- * Float(arg) => float
+ * Float(arg) -> float
*
* Returns <i>arg</i> converted to a float. Numeric types are converted
* directly, the rest are converted using <i>arg</i>.to_f. As of Ruby
@@ -2290,6 +2397,16 @@ rb_to_float(VALUE val)
return rb_convert_type(val, T_FLOAT, "Float", "to_f");
}
+VALUE
+rb_check_to_float(VALUE val)
+{
+ if (TYPE(val) == T_FLOAT) return val;
+ if (!rb_obj_is_kind_of(val, rb_cNumeric)) {
+ return Qnil;
+ }
+ return rb_check_convert_type(val, T_FLOAT, "Float", "to_f");
+}
+
double
rb_num2dbl(VALUE val)
{
@@ -2315,13 +2432,16 @@ rb_num2dbl(VALUE val)
VALUE
rb_String(VALUE val)
{
- return rb_convert_type(val, T_STRING, "String", "to_s");
+ VALUE tmp = rb_check_string_type(val);
+ if (NIL_P(tmp))
+ tmp = rb_convert_type(val, T_STRING, "String", "to_s");
+ return tmp;
}
/*
* call-seq:
- * String(arg) => string
+ * String(arg) -> string
*
* Converts <i>arg</i> to a <code>String</code> by calling its
* <code>to_s</code> method.
@@ -2353,7 +2473,7 @@ rb_Array(VALUE val)
/*
* call-seq:
- * Array(arg) => array
+ * Array(arg) -> array
*
* Returns <i>arg</i> as an <code>Array</code>. First tries to call
* <i>arg</i><code>.to_ary</code>, then <i>arg</i><code>.to_a</code>.
@@ -2367,25 +2487,6 @@ rb_f_array(VALUE obj, VALUE arg)
return rb_Array(arg);
}
-static VALUE
-boot_defclass(const char *name, VALUE super)
-{
- extern st_table *rb_class_tbl;
- VALUE obj = rb_class_boot(super);
- ID id = rb_intern(name);
-
- rb_name_class(obj, id);
- st_add_direct(rb_class_tbl, id, obj);
- rb_const_set((rb_cObject ? rb_cObject : obj), id, obj);
- return obj;
-}
-
-static void
-boot_defmetametaclass(VALUE klass, VALUE metametaclass)
-{
- RBASIC(RBASIC(klass)->klass)->klass = metametaclass;
-}
-
/*
* Document-class: Class
*
@@ -2423,46 +2524,111 @@ boot_defmetametaclass(VALUE klass, VALUE metametaclass)
* that follows, the vertical arrows represent inheritance, and the
* parentheses meta-classes. All metaclasses are instances
* of the class `Class'.
+ * +---------+ +-...
+ * | | |
+ * BasicObject-----|-->(BasicObject)-------|-...
+ * ^ | ^ |
+ * | | | |
+ * Object---------|----->(Object)---------|-...
+ * ^ | ^ |
+ * | | | |
+ * +-------+ | +--------+ |
+ * | | | | | |
+ * | Module-|---------|--->(Module)-|-...
+ * | ^ | | ^ |
+ * | | | | | |
+ * | Class-|---------|---->(Class)-|-...
+ * | ^ | | ^ |
+ * | +---+ | +----+
+ * | |
+ * obj--->OtherClass---------->(OtherClass)-----------...
*
- * +-----------------+
- * | |
- * BasicObject-->(BasicObject) |
- * ^ ^ |
- * | | |
- * Object---->(Object) |
- * ^ ^ ^ ^ |
- * | | | | |
- * | | +-----+ +---------+ |
- * | | | | |
- * | +-----------+ | |
- * | | | | |
- * +------+ | Module--->(Module) |
- * | | ^ ^ |
- * OtherClass-->(OtherClass) | | |
- * | | |
- * Class---->(Class) |
- * ^ |
- * | |
- * +----------------+
- */
-
-
-/*
- * <code>BasicObject</code> is the parent class of all classes in Ruby.
- * It's an explicit blank class. <code>Object</code>, the root of Ruby's
- * class hierarchy is a direct subclass of <code>BasicObject</code>. Its
- * methods are therefore available to all objects unless explicitly
- * overridden.
- *
- * <code>Object</code> mixes in the <code>Kernel</code> module, making
- * the built-in kernel functions globally accessible. Although the
- * instance methods of <code>Object</code> are defined by the
- * <code>Kernel</code> module, we have chosen to document them here for
- * clarity.
+ */
+
+
+/*!
+ * Initializes the world of objects and classes.
+ *
+ * At first, the function bootstraps the class hierarchy.
+ * It initializes the most fundamental classes and their metaclasses.
+ * - \c BasicObject
+ * - \c Object
+ * - \c Module
+ * - \c Class
+ * After the bootstrap step, the class hierarchy becomes as the following
+ * diagram.
+ *
+ * \image html boottime-classes.png
+ *
+ * Then, the function defines classes, modules and methods as usual.
+ * \ingroup class
+ */
+
+/* Document-class: BasicObject
+ *
+ * BasicObject is the parent class of all classes in Ruby. It's an explicit
+ * blank class.
+ *
+ * BasicObject can be used for creating object hierarchies independent of
+ * Ruby's object hierarchy, proxy objects like the Delegator class, or other
+ * uses where namespace pollution from Ruby's methods and classes must be
+ * avoided.
+ *
+ * To avoid polluting BasicObject for other users an appropriately named
+ * subclass of BasicObject should be created instead of directly modifying
+ * BasicObject:
+ *
+ * class MyObjectSystem < BasicObject
+ * end
+ *
+ * BasicObject does not include Kernel (for methods like +puts+) and
+ * BasicObject is outside of the namespace of the standard library so common
+ * classes will not be found without a using a full class path.
+ *
+ * A variety of strategies can be used to provide useful portions of the
+ * standard library to subclasses of BasicObject. A subclass could
+ * <code>include Kernel</code> to obtain +puts+, +exit+, etc. A custom
+ * Kernel-like module could be created and included or delegation can be used
+ * via #method_missing:
+ *
+ * class MyObjectSystem < BasicObject
+ * DELEGATE = [:puts, :p]
+ *
+ * def method_missing(name, *args, &block)
+ * super unless DELEGATE.include? name
+ * ::Kernel.send(name, *args, &block)
+ * end
+ *
+ * def respond_to_missing?(name, include_private = false)
+ * DELGATE.include?(name) or super
+ * end
+ * end
+ *
+ * Access to classes and modules from the Ruby standard library can be
+ * obtained in a BasicObject subclass by referencing the desired constant
+ * from the root like <code>::File</code> or <code>::Enumerator</code>.
+ * Like #method_missing, #const_missing can be used to delegate constant
+ * lookup to +Object+:
+ *
+ * class MyObjectSystem < BasicObject
+ * def self.const_missing(name)
+ * ::Object.const_get(name)
+ * end
+ * end
+ */
+
+/* Document-class: Object
+ *
+ * Object is the root of Ruby's class hierarchy. Its methods are available
+ * to all classes unless explicitly overridden.
+ *
+ * Object mixes in the Kernel module, making the built-in kernel functions
+ * globally accessible. Although the instance methods of Object are defined
+ * by the Kernel module, we have chosen to document them here for clarity.
*
* In the descriptions of Object's methods, the parameter <i>symbol</i> refers
- * to a symbol, which is either a quoted string or a
- * <code>Symbol</code> (such as <code>:name</code>).
+ * to a symbol, which is either a quoted string or a Symbol (such as
+ * <code>:name</code>).
*/
void
@@ -2470,23 +2636,18 @@ Init_Object(void)
{
int i;
-#undef rb_intern
-#define rb_intern(str) rb_intern_const(str)
+ Init_class_hierarchy();
- VALUE metaclass;
+#if 0
+ // teach RDoc about these classes
+ rb_cBasicObject = rb_define_class("BasicObject", Qnil);
+ rb_cObject = rb_define_class("Object", rb_cBasicObject);
+ rb_cModule = rb_define_class("Module", rb_cObject);
+ rb_cClass = rb_define_class("Class", rb_cModule);
+#endif
- rb_cBasicObject = boot_defclass("BasicObject", 0);
- rb_cObject = boot_defclass("Object", rb_cBasicObject);
- rb_cModule = boot_defclass("Module", rb_cObject);
- rb_cClass = boot_defclass("Class", rb_cModule);
-
- metaclass = rb_make_metaclass(rb_cBasicObject, rb_cClass);
- metaclass = rb_make_metaclass(rb_cObject, metaclass);
- metaclass = rb_make_metaclass(rb_cModule, metaclass);
- metaclass = rb_make_metaclass(rb_cClass, metaclass);
- boot_defmetametaclass(rb_cModule, metaclass);
- boot_defmetametaclass(rb_cObject, metaclass);
- boot_defmetametaclass(rb_cBasicObject, metaclass);
+#undef rb_intern
+#define rb_intern(str) rb_intern_const(str)
rb_define_private_method(rb_cBasicObject, "initialize", rb_obj_dummy, 0);
rb_define_alloc_func(rb_cBasicObject, rb_class_allocate_instance);
@@ -2514,11 +2675,15 @@ Init_Object(void)
rb_define_method(rb_mKernel, "!~", rb_obj_not_match, 1);
rb_define_method(rb_mKernel, "eql?", rb_obj_equal, 1);
rb_define_method(rb_mKernel, "hash", rb_obj_hash, 0);
+ rb_define_method(rb_mKernel, "<=>", rb_obj_cmp, 1);
rb_define_method(rb_mKernel, "class", rb_obj_class, 0);
+ rb_define_method(rb_mKernel, "singleton_class", rb_obj_singleton_class, 0);
rb_define_method(rb_mKernel, "clone", rb_obj_clone, 0);
rb_define_method(rb_mKernel, "dup", rb_obj_dup, 0);
rb_define_method(rb_mKernel, "initialize_copy", rb_obj_init_copy, 1);
+ rb_define_method(rb_mKernel, "initialize_dup", rb_obj_init_dup_clone, 1);
+ rb_define_method(rb_mKernel, "initialize_clone", rb_obj_init_dup_clone, 1);
rb_define_method(rb_mKernel, "taint", rb_obj_taint, 0);
rb_define_method(rb_mKernel, "tainted?", rb_obj_tainted, 0);
@@ -2551,7 +2716,7 @@ Init_Object(void)
rb_define_global_function("sprintf", rb_f_sprintf, -1); /* in sprintf.c */
rb_define_global_function("format", rb_f_sprintf, -1); /* in sprintf.c */
- rb_define_global_function("Integer", rb_f_integer, 1);
+ rb_define_global_function("Integer", rb_f_integer, -1);
rb_define_global_function("Float", rb_f_float, 1);
rb_define_global_function("String", rb_f_string, 1);
@@ -2570,6 +2735,9 @@ Init_Object(void)
rb_define_method(rb_cNilClass, "nil?", rb_true, 0);
rb_undef_alloc_func(rb_cNilClass);
rb_undef_method(CLASS_OF(rb_cNilClass), "new");
+ /*
+ * An alias of +nil+
+ */
rb_define_global_const("NIL", Qnil);
rb_define_method(rb_cModule, "freeze", rb_mod_freeze, 0);
@@ -2617,6 +2785,8 @@ Init_Object(void)
rb_define_method(rb_cModule, "class_variable_get", rb_mod_cvar_get, 1);
rb_define_method(rb_cModule, "class_variable_set", rb_mod_cvar_set, 2);
rb_define_method(rb_cModule, "class_variable_defined?", rb_mod_cvar_defined, 1);
+ rb_define_method(rb_cModule, "public_constant", rb_mod_public_constant, -1);
+ rb_define_method(rb_cModule, "private_constant", rb_mod_private_constant, -1);
rb_define_method(rb_cClass, "allocate", rb_obj_alloc, 0);
rb_define_method(rb_cClass, "new", rb_class_new_instance, -1);
@@ -2637,6 +2807,9 @@ Init_Object(void)
rb_define_method(rb_cTrueClass, "^", true_xor, 1);
rb_undef_alloc_func(rb_cTrueClass);
rb_undef_method(CLASS_OF(rb_cTrueClass), "new");
+ /*
+ * An alias of +true+
+ */
rb_define_global_const("TRUE", Qtrue);
rb_cFalseClass = rb_define_class("FalseClass", rb_cObject);
@@ -2646,6 +2819,9 @@ Init_Object(void)
rb_define_method(rb_cFalseClass, "^", false_xor, 1);
rb_undef_alloc_func(rb_cFalseClass);
rb_undef_method(CLASS_OF(rb_cFalseClass), "new");
+ /*
+ * An alias of +false+
+ */
rb_define_global_const("FALSE", Qfalse);
id_eq = rb_intern("==");
@@ -2653,6 +2829,8 @@ Init_Object(void)
id_match = rb_intern("=~");
id_inspect = rb_intern("inspect");
id_init_copy = rb_intern("initialize_copy");
+ id_init_clone = rb_intern("initialize_clone");
+ id_init_dup = rb_intern("initialize_dup");
for (i=0; conv_method_names[i].method; i++) {
conv_method_names[i].id = rb_intern(conv_method_names[i].method);
diff --git a/pack.c b/pack.c
index 172534404d..1616a8a638 100644
--- a/pack.c
+++ b/pack.c
@@ -15,40 +15,49 @@
#include <ctype.h>
#include <errno.h>
-#define SIZE16 2
-#define SIZE32 4
-
+#define GCC_VERSION_SINCE(major, minor, patchlevel) \
+ (defined(__GNUC__) && !defined(__INTEL_COMPILER) && \
+ ((__GNUC__ > (major)) || \
+ (__GNUC__ == (major) && __GNUC_MINOR__ > (minor)) || \
+ (__GNUC__ == (major) && __GNUC_MINOR__ == (minor) && __GNUC_PATCHLEVEL__ >= (patchlevel))))
#if SIZEOF_SHORT != 2 || SIZEOF_LONG != 4
# define NATINT_PACK
#endif
-#ifdef NATINT_PACK
-# define OFF16B(p) ((char*)(p) + (natint?0:(sizeof(short) - SIZE16)))
-# define OFF32B(p) ((char*)(p) + (natint?0:(sizeof(long) - SIZE32)))
-# define NATINT_LEN(type,len) (natint?sizeof(type):(len))
-# ifdef WORDS_BIGENDIAN
-# define OFF16(p) OFF16B(p)
-# define OFF32(p) OFF32B(p)
-# endif
-# define NATINT_HTOVS(x) (natint?htovs(x):htov16(x))
-# define NATINT_HTOVL(x) (natint?htovl(x):htov32(x))
-# define NATINT_HTONS(x) (natint?htons(x):hton16(x))
-# define NATINT_HTONL(x) (natint?htonl(x):hton32(x))
+#ifdef DYNAMIC_ENDIAN
+ /* for universal binary of NEXTSTEP and MacOS X */
+ /* useless since autoconf 2.63? */
+ static int
+ is_bigendian(void)
+ {
+ static int init = 0;
+ static int endian_value;
+ char *p;
+
+ if (init) return endian_value;
+ init = 1;
+ p = (char*)&init;
+ return endian_value = p[0]?0:1;
+ }
+# define BIGENDIAN_P() (is_bigendian())
+#elif defined(WORDS_BIGENDIAN)
+# define BIGENDIAN_P() 1
#else
-# define NATINT_LEN(type,len) sizeof(type)
-# define NATINT_HTOVS(x) htovs(x)
-# define NATINT_HTOVL(x) htovl(x)
-# define NATINT_HTONS(x) htons(x)
-# define NATINT_HTONL(x) htonl(x)
+# define BIGENDIAN_P() 0
#endif
-#ifndef OFF16
-# define OFF16(p) (char*)(p)
-# define OFF32(p) (char*)(p)
+#ifdef NATINT_PACK
+# define NATINT_LEN(type,len) (natint?(int)sizeof(type):(int)(len))
+#else
+# define NATINT_LEN(type,len) ((int)sizeof(type))
#endif
-#ifndef OFF16B
-# define OFF16B(p) (char*)(p)
-# define OFF32B(p) (char*)(p)
+
+#if SIZEOF_LONG == 8
+# define INT64toNUM(x) LONG2NUM(x)
+# define UINT64toNUM(x) ULONG2NUM(x)
+#elif defined(HAVE_LONG_LONG) && SIZEOF_LONG_LONG == 8
+# define INT64toNUM(x) LL2NUM(x)
+# define UINT64toNUM(x) ULL2NUM(x)
#endif
#define define_swapx(x, xtype) \
@@ -73,264 +82,161 @@ TOKEN_PASTE(swap,x)(xtype z) \
return r; \
}
-#ifndef swap16
-#define swap16(x) ((((x)&0xFF)<<8) | (((x)>>8)&0xFF))
-#endif
-#if SIZEOF_SHORT == 2
-#define swaps(x) swap16(x)
-#else
-#if SIZEOF_SHORT == 4
-#define swaps(x) ((((x)&0xFF)<<24) \
- |(((x)>>24)&0xFF) \
- |(((x)&0x0000FF00)<<8) \
- |(((x)&0x00FF0000)>>8) )
-#else
-define_swapx(s,short)
+#if GCC_VERSION_SINCE(4,3,0)
+# define swap32(x) __builtin_bswap32(x)
+# define swap64(x) __builtin_bswap64(x)
#endif
+
+#ifndef swap16
+# define swap16(x) ((((x)&0xFF)<<8) | (((x)>>8)&0xFF))
#endif
#ifndef swap32
-#define swap32(x) ((((x)&0xFF)<<24) \
+# define swap32(x) ((((x)&0xFF)<<24) \
|(((x)>>24)&0xFF) \
|(((x)&0x0000FF00)<<8) \
|(((x)&0x00FF0000)>>8) )
#endif
-#if SIZEOF_LONG == 4
-#define swapl(x) swap32(x)
-#else
-#if SIZEOF_LONG == 8
-#define swapl(x) ((((x)&0x00000000000000FF)<<56) \
- |(((x)&0xFF00000000000000)>>56) \
- |(((x)&0x000000000000FF00)<<40) \
- |(((x)&0x00FF000000000000)>>40) \
- |(((x)&0x0000000000FF0000)<<24) \
- |(((x)&0x0000FF0000000000)>>24) \
- |(((x)&0x00000000FF000000)<<8) \
- |(((x)&0x000000FF00000000)>>8))
-#else
-define_swapx(l,long)
-#endif
+
+#ifndef swap64
+# ifdef HAVE_INT64_T
+# define byte_in_64bit(n) ((uint64_t)0xff << (n))
+# define swap64(x) ((((x)&byte_in_64bit(0))<<56) \
+ |(((x)>>56)&0xFF) \
+ |(((x)&byte_in_64bit(8))<<40) \
+ |(((x)&byte_in_64bit(48))>>40) \
+ |(((x)&byte_in_64bit(16))<<24) \
+ |(((x)&byte_in_64bit(40))>>24) \
+ |(((x)&byte_in_64bit(24))<<8) \
+ |(((x)&byte_in_64bit(32))>>8))
+# endif
#endif
-#if SIZEOF_FLOAT == 4
-#if SIZEOF_LONG == 4 /* SIZEOF_FLOAT == 4 == SIZEOF_LONG */
-#define swapf(x) swapl(x)
-#define FLOAT_SWAPPER unsigned long
-#else
-#if SIZEOF_SHORT == 4 /* SIZEOF_FLOAT == 4 == SIZEOF_SHORT */
-#define swapf(x) swaps(x)
-#define FLOAT_SWAPPER unsigned short
-#else /* SIZEOF_FLOAT == 4 but undivide by known size of int */
-define_swapx(f,float)
-#endif /* #if SIZEOF_SHORT == 4 */
-#endif /* #if SIZEOF_LONG == 4 */
-#else /* SIZEOF_FLOAT != 4 */
-define_swapx(f,float)
-#endif /* #if SIZEOF_FLOAT == 4 */
-
-#if SIZEOF_DOUBLE == 8
-#if SIZEOF_LONG == 8 /* SIZEOF_DOUBLE == 8 == SIZEOF_LONG */
-#define swapd(x) swapl(x)
-#define DOUBLE_SWAPPER unsigned long
-#else
-#if SIZEOF_LONG == 4 /* SIZEOF_DOUBLE == 8 && 4 == SIZEOF_LONG */
-static double
-swapd(const double d)
-{
- double dtmp = d;
- unsigned long utmp[2];
- unsigned long utmp0;
-
- utmp[0] = 0; utmp[1] = 0;
- memcpy(utmp,&dtmp,sizeof(double));
- utmp0 = utmp[0];
- utmp[0] = swapl(utmp[1]);
- utmp[1] = swapl(utmp0);
- memcpy(&dtmp,utmp,sizeof(double));
- return dtmp;
-}
+#if SIZEOF_SHORT == 2
+# define swaps(x) swap16(x)
+#elif SIZEOF_SHORT == 4
+# define swaps(x) swap32(x)
#else
-#if SIZEOF_SHORT == 4 /* SIZEOF_DOUBLE == 8 && 4 == SIZEOF_SHORT */
-static double
-swapd(const double d)
-{
- double dtmp = d;
- unsigned short utmp[2];
- unsigned short utmp0;
-
- utmp[0] = 0; utmp[1] = 0;
- memcpy(utmp,&dtmp,sizeof(double));
- utmp0 = utmp[0];
- utmp[0] = swaps(utmp[1]);
- utmp[1] = swaps(utmp0);
- memcpy(&dtmp,utmp,sizeof(double));
- return dtmp;
-}
-#else /* SIZEOF_DOUBLE == 8 but undivied by known size of int */
-define_swapx(d, double)
-#endif /* #if SIZEOF_SHORT == 4 */
-#endif /* #if SIZEOF_LONG == 4 */
-#endif /* #if SIZEOF_LONG == 8 */
-#else /* SIZEOF_DOUBLE != 8 */
-define_swapx(d, double)
-#endif /* #if SIZEOF_DOUBLE == 8 */
-
-#undef define_swapx
+ define_swapx(s,short)
+#endif
-#ifdef DYNAMIC_ENDIAN
-#ifdef ntohs
-#undef ntohs
-#undef ntohl
-#undef htons
-#undef htonl
+#if SIZEOF_INT == 2
+# define swapi(x) swap16(x)
+#elif SIZEOF_INT == 4
+# define swapi(x) swap32(x)
+#else
+ define_swapx(i,int)
#endif
-static int
-endian(void)
-{
- static int init = 0;
- static int endian_value;
- char *p;
-
- if (init) return endian_value;
- init = 1;
- p = (char*)&init;
- return endian_value = p[0]?0:1;
-}
-#define ntohs(x) (endian()?(x):swaps(x))
-#define ntohl(x) (endian()?(x):swapl(x))
-#define ntohf(x) (endian()?(x):swapf(x))
-#define ntohd(x) (endian()?(x):swapd(x))
-#define htons(x) (endian()?(x):swaps(x))
-#define htonl(x) (endian()?(x):swapl(x))
-#define htonf(x) (endian()?(x):swapf(x))
-#define htond(x) (endian()?(x):swapd(x))
-#define htovs(x) (endian()?swaps(x):(x))
-#define htovl(x) (endian()?swapl(x):(x))
-#define htovf(x) (endian()?swapf(x):(x))
-#define htovd(x) (endian()?swapd(x):(x))
-#define vtohs(x) (endian()?swaps(x):(x))
-#define vtohl(x) (endian()?swapl(x):(x))
-#define vtohf(x) (endian()?swapf(x):(x))
-#define vtohd(x) (endian()?swapd(x):(x))
-# ifdef NATINT_PACK
-#define htov16(x) (endian()?swap16(x):(x))
-#define htov32(x) (endian()?swap32(x):(x))
-#define hton16(x) (endian()?(x):swap16(x))
-#define hton32(x) (endian()?(x):swap32(x))
-# endif
+#if SIZEOF_LONG == 4
+# define swapl(x) swap32(x)
+#elif SIZEOF_LONG == 8
+# define swapl(x) swap64(x)
#else
-#ifdef WORDS_BIGENDIAN
-#ifndef ntohs
-#define ntohs(x) (x)
-#define ntohl(x) (x)
-#define htons(x) (x)
-#define htonl(x) (x)
+ define_swapx(l,long)
#endif
-#define ntohf(x) (x)
-#define ntohd(x) (x)
-#define htonf(x) (x)
-#define htond(x) (x)
-#define htovs(x) swaps(x)
-#define htovl(x) swapl(x)
-#define htovf(x) swapf(x)
-#define htovd(x) swapd(x)
-#define vtohs(x) swaps(x)
-#define vtohl(x) swapl(x)
-#define vtohf(x) swapf(x)
-#define vtohd(x) swapd(x)
-# ifdef NATINT_PACK
-#define htov16(x) swap16(x)
-#define htov32(x) swap32(x)
-#define hton16(x) (x)
-#define hton32(x) (x)
+
+#ifdef HAVE_LONG_LONG
+# if SIZEOF_LONG_LONG == 8
+# define swapll(x) swap64(x)
+# else
+ define_swapx(ll,LONG_LONG)
# endif
-#else /* LITTLE ENDIAN */
-#ifdef ntohs
-#undef ntohs
-#undef ntohl
-#undef htons
-#undef htonl
#endif
-#define ntohs(x) swaps(x)
-#define ntohl(x) swapl(x)
-#define htons(x) swaps(x)
-#define htonl(x) swapl(x)
-#define ntohf(x) swapf(x)
-#define ntohd(x) swapd(x)
-#define htonf(x) swapf(x)
-#define htond(x) swapd(x)
-#define htovs(x) (x)
-#define htovl(x) (x)
-#define htovf(x) (x)
-#define htovd(x) (x)
-#define vtohs(x) (x)
-#define vtohl(x) (x)
-#define vtohf(x) (x)
-#define vtohd(x) (x)
-# ifdef NATINT_PACK
-#define htov16(x) (x)
-#define htov32(x) (x)
-#define hton16(x) swap16(x)
-#define hton32(x) swap32(x)
-# endif
+
+#if SIZEOF_FLOAT == 4 && defined(HAVE_INT32_T)
+# define swapf(x) swap32(x)
+# define FLOAT_SWAPPER uint32_t
+#else
+ define_swapx(f,float)
#endif
+
+#if SIZEOF_DOUBLE == 8 && defined(HAVE_INT64_T)
+# define swapd(x) swap64(x)
+# define DOUBLE_SWAPPER uint64_t
+#elif SIZEOF_DOUBLE == 8 && defined(HAVE_INT32_T)
+ static double
+ swapd(const double d)
+ {
+ double dtmp = d;
+ uint32_t utmp[2];
+ uint32_t utmp0;
+
+ utmp[0] = 0; utmp[1] = 0;
+ memcpy(utmp,&dtmp,sizeof(double));
+ utmp0 = utmp[0];
+ utmp[0] = swap32(utmp[1]);
+ utmp[1] = swap32(utmp0);
+ memcpy(&dtmp,utmp,sizeof(double));
+ return dtmp;
+ }
+#else
+ define_swapx(d, double)
#endif
+#undef define_swapx
+
+#define rb_ntohf(x) (BIGENDIAN_P()?(x):swapf(x))
+#define rb_ntohd(x) (BIGENDIAN_P()?(x):swapd(x))
+#define rb_htonf(x) (BIGENDIAN_P()?(x):swapf(x))
+#define rb_htond(x) (BIGENDIAN_P()?(x):swapd(x))
+#define rb_htovf(x) (BIGENDIAN_P()?swapf(x):(x))
+#define rb_htovd(x) (BIGENDIAN_P()?swapd(x):(x))
+#define rb_vtohf(x) (BIGENDIAN_P()?swapf(x):(x))
+#define rb_vtohd(x) (BIGENDIAN_P()?swapd(x):(x))
+
#ifdef FLOAT_SWAPPER
-#define FLOAT_CONVWITH(y) FLOAT_SWAPPER y;
-#define HTONF(x,y) (memcpy(&y,&x,sizeof(float)), \
- y = htonf((FLOAT_SWAPPER)y), \
- memcpy(&x,&y,sizeof(float)), \
- x)
-#define HTOVF(x,y) (memcpy(&y,&x,sizeof(float)), \
- y = htovf((FLOAT_SWAPPER)y), \
- memcpy(&x,&y,sizeof(float)), \
- x)
-#define NTOHF(x,y) (memcpy(&y,&x,sizeof(float)), \
- y = ntohf((FLOAT_SWAPPER)y), \
- memcpy(&x,&y,sizeof(float)), \
- x)
-#define VTOHF(x,y) (memcpy(&y,&x,sizeof(float)), \
- y = vtohf((FLOAT_SWAPPER)y), \
- memcpy(&x,&y,sizeof(float)), \
- x)
+# define FLOAT_CONVWITH(y) FLOAT_SWAPPER y;
+# define HTONF(x,y) (memcpy(&(y),&(x),sizeof(float)), \
+ (y) = rb_htonf((FLOAT_SWAPPER)(y)), \
+ memcpy(&(x),&(y),sizeof(float)), \
+ (x))
+# define HTOVF(x,y) (memcpy(&(y),&(x),sizeof(float)), \
+ (y) = rb_htovf((FLOAT_SWAPPER)(y)), \
+ memcpy(&(x),&(y),sizeof(float)), \
+ (x))
+# define NTOHF(x,y) (memcpy(&(y),&(x),sizeof(float)), \
+ (y) = rb_ntohf((FLOAT_SWAPPER)(y)), \
+ memcpy(&(x),&(y),sizeof(float)), \
+ (x))
+# define VTOHF(x,y) (memcpy(&(y),&(x),sizeof(float)), \
+ (y) = rb_vtohf((FLOAT_SWAPPER)(y)), \
+ memcpy(&(x),&(y),sizeof(float)), \
+ (x))
#else
-#define FLOAT_CONVWITH(y)
-#define HTONF(x,y) htonf(x)
-#define HTOVF(x,y) htovf(x)
-#define NTOHF(x,y) ntohf(x)
-#define VTOHF(x,y) vtohf(x)
+# define FLOAT_CONVWITH(y)
+# define HTONF(x,y) rb_htonf(x)
+# define HTOVF(x,y) rb_htovf(x)
+# define NTOHF(x,y) rb_ntohf(x)
+# define VTOHF(x,y) rb_vtohf(x)
#endif
#ifdef DOUBLE_SWAPPER
-#define DOUBLE_CONVWITH(y) DOUBLE_SWAPPER y;
-#define HTOND(x,y) (memcpy(&y,&x,sizeof(double)), \
- y = htond((DOUBLE_SWAPPER)y), \
- memcpy(&x,&y,sizeof(double)), \
- x)
-#define HTOVD(x,y) (memcpy(&y,&x,sizeof(double)), \
- y = htovd((DOUBLE_SWAPPER)y), \
- memcpy(&x,&y,sizeof(double)), \
- x)
-#define NTOHD(x,y) (memcpy(&y,&x,sizeof(double)), \
- y = ntohd((DOUBLE_SWAPPER)y), \
- memcpy(&x,&y,sizeof(double)), \
- x)
-#define VTOHD(x,y) (memcpy(&y,&x,sizeof(double)), \
- y = vtohd((DOUBLE_SWAPPER)y), \
- memcpy(&x,&y,sizeof(double)), \
- x)
+# define DOUBLE_CONVWITH(y) DOUBLE_SWAPPER y;
+# define HTOND(x,y) (memcpy(&(y),&(x),sizeof(double)), \
+ (y) = rb_htond((DOUBLE_SWAPPER)(y)), \
+ memcpy(&(x),&(y),sizeof(double)), \
+ (x))
+# define HTOVD(x,y) (memcpy(&(y),&(x),sizeof(double)), \
+ (y) = rb_htovd((DOUBLE_SWAPPER)(y)), \
+ memcpy(&(x),&(y),sizeof(double)), \
+ (x))
+# define NTOHD(x,y) (memcpy(&(y),&(x),sizeof(double)), \
+ (y) = rb_ntohd((DOUBLE_SWAPPER)(y)), \
+ memcpy(&(x),&(y),sizeof(double)), \
+ (x))
+# define VTOHD(x,y) (memcpy(&(y),&(x),sizeof(double)), \
+ (y) = rb_vtohd((DOUBLE_SWAPPER)(y)), \
+ memcpy(&(x),&(y),sizeof(double)), \
+ (x))
#else
-#define DOUBLE_CONVWITH(y)
-#define HTOND(x,y) htond(x)
-#define HTOVD(x,y) htovd(x)
-#define NTOHD(x,y) ntohd(x)
-#define VTOHD(x,y) vtohd(x)
+# define DOUBLE_CONVWITH(y)
+# define HTOND(x,y) rb_htond(x)
+# define HTOVD(x,y) rb_htovd(x)
+# define NTOHD(x,y) rb_ntohd(x)
+# define VTOHD(x,y) rb_vtohd(x)
#endif
-unsigned long rb_big2ulong_pack(VALUE x);
-
static unsigned long
num2i32(VALUE x)
{
@@ -344,23 +250,9 @@ num2i32(VALUE x)
return 0; /* not reached */
}
-#if SIZEOF_LONG == SIZE32
-# define EXTEND32(x)
-#else
-/* invariant in modulo 1<<31 */
-# define EXTEND32(x) do { if (!natint) {(x) = (((1L<<31)-1-(x))^~(~0L<<31));}} while(0)
-#endif
-#if SIZEOF_SHORT == SIZE16
-# define EXTEND16(x)
-#else
-# define EXTEND16(x) do { if (!natint) {(x) = (short)(((1<<15)-1-(x))^~(~0<<15));}} while(0)
-#endif
+#define MAX_INTEGER_PACK_SIZE 8
+/* #define FORCE_BIG_PACK */
-#ifdef HAVE_LONG_LONG
-# define QUAD_SIZE sizeof(LONG_LONG)
-#else
-# define QUAD_SIZE 8
-#endif
static const char toofew[] = "too few arguments";
static void encodes(VALUE,const char*,long,int,int);
@@ -380,7 +272,8 @@ static unsigned long utf8_to_uv(const char*,long*);
* elements to convert. If the count is an asterisk
* (``<code>*</code>''), all remaining array elements will be
* converted. Any of the directives ``<code>sSiIlL</code>'' may be
- * followed by an underscore (``<code>_</code>'') to use the underlying
+ * followed by an underscore (``<code>_</code>'') or
+ * exclamation mark (``<code>!</code>'') to use the underlying
* platform's native size for the specified type; otherwise, they use a
* platform-independent size. Spaces are ignored in the template
* string. See also <code>String#unpack</code>.
@@ -393,45 +286,82 @@ static unsigned long utf8_to_uv(const char*,long*);
*
* Directives for +pack+.
*
- * Directive Meaning
- * ---------------------------------------------------------------
- * @ | Moves to absolute position
- * A | arbitrary binary string (space padded, count is width)
- * a | arbitrary binary string (null padded, count is width)
- * B | Bit string (descending bit order)
- * b | Bit string (ascending bit order)
- * C | Unsigned byte (C unsigned char)
- * c | Byte (C char)
- * D, d | Double-precision float, native format
- * E | Double-precision float, little-endian byte order
- * e | Single-precision float, little-endian byte order
- * F, f | Single-precision float, native format
- * G | Double-precision float, network (big-endian) byte order
- * g | Single-precision float, network (big-endian) byte order
- * H | Hex string (high nibble first)
- * h | Hex string (low nibble first)
- * I | Unsigned integer
- * i | Integer
- * L | Unsigned long
- * l | Long
- * M | Quoted printable, MIME encoding (see RFC2045)
- * m | Base64 encoded string (see RFC 2045, count is width)
- * | (if count is 0, no line feed are added, see RFC 4648)
- * N | Long, network (big-endian) byte order
- * n | Short, network (big-endian) byte-order
- * P | Pointer to a structure (fixed-length string)
- * p | Pointer to a null-terminated string
- * Q, q | 64-bit number
- * S | Unsigned short
- * s | Short
- * U | UTF-8
- * u | UU-encoded string
- * V | Long, little-endian byte order
- * v | Short, little-endian byte order
- * w | BER-compressed integer\fnm
- * X | Back up a byte
- * x | Null byte
- * Z | Same as ``a'', except that null is added with *
+ * Integer | Array |
+ * Directive | Element | Meaning
+ * ---------------------------------------------------------------------------
+ * C | Integer | 8-bit unsigned (unsigned char)
+ * S | Integer | 16-bit unsigned, native endian (uint16_t)
+ * L | Integer | 32-bit unsigned, native endian (uint32_t)
+ * Q | Integer | 64-bit unsigned, native endian (uint64_t)
+ * | |
+ * c | Integer | 8-bit signed (signed char)
+ * s | Integer | 16-bit signed, native endian (int16_t)
+ * l | Integer | 32-bit signed, native endian (int32_t)
+ * q | Integer | 64-bit signed, native endian (int64_t)
+ * | |
+ * S_, S! | Integer | unsigned short, native endian
+ * I, I_, I! | Integer | unsigned int, native endian
+ * L_, L! | Integer | unsigned long, native endian
+ * | |
+ * s_, s! | Integer | signed short, native endian
+ * i, i_, i! | Integer | signed int, native endian
+ * l_, l! | Integer | signed long, native endian
+ * | |
+ * S> L> Q> | Integer | same as the directives without ">" except
+ * s> l> q> | | big endian
+ * S!> I!> | | (available since Ruby 1.9.3)
+ * L!> | | "S>" is same as "n"
+ * s!> i!> | | "L>" is same as "N"
+ * l!> | |
+ * | |
+ * S< L< Q< | Integer | same as the directives without "<" except
+ * s< l< q< | | little endian
+ * S!< I!< | | (available since Ruby 1.9.3)
+ * L!< | | "S<" is same as "v"
+ * s!< i!< | | "L<" is same as "V"
+ * l!< | |
+ * | |
+ * n | Integer | 16-bit unsigned, network (big-endian) byte order
+ * N | Integer | 32-bit unsigned, network (big-endian) byte order
+ * v | Integer | 16-bit unsigned, VAX (little-endian) byte order
+ * V | Integer | 32-bit unsigned, VAX (little-endian) byte order
+ * | |
+ * U | Integer | UTF-8 character
+ * w | Integer | BER-compressed integer
+ *
+ * Float | |
+ * Directive | | Meaning
+ * ---------------------------------------------------------------------------
+ * D, d | Float | double-precision, native format
+ * F, f | Float | single-precision, native format
+ * E | Float | double-precision, little-endian byte order
+ * e | Float | single-precision, little-endian byte order
+ * G | Float | double-precision, network (big-endian) byte order
+ * g | Float | single-precision, network (big-endian) byte order
+ *
+ * String | |
+ * Directive | | Meaning
+ * ---------------------------------------------------------------------------
+ * A | String | arbitrary binary string (space padded, count is width)
+ * a | String | arbitrary binary string (null padded, count is width)
+ * Z | String | same as ``a'', except that null is added with *
+ * B | String | bit string (MSB first)
+ * b | String | bit string (LSB first)
+ * H | String | hex string (high nibble first)
+ * h | String | hex string (low nibble first)
+ * u | String | UU-encoded string
+ * M | String | quoted printable, MIME encoding (see RFC2045)
+ * m | String | base64 encoded string (see RFC 2045, count is width)
+ * | | (if count is 0, no line feed are added, see RFC 4648)
+ * P | String | pointer to a structure (fixed-length string)
+ * p | String | pointer to a null-terminated string
+ *
+ * Misc. | |
+ * Directive | | Meaning
+ * ---------------------------------------------------------------------------
+ * @ | --- | moves to absolute position
+ * X | --- | back up a byte
+ * x | --- | null byte
*/
static VALUE
@@ -448,6 +378,7 @@ pack_pack(VALUE ary, VALUE fmt)
#ifdef NATINT_PACK
int natint; /* native integer */
#endif
+ int signed_p, integer_size, bigendian_p;
StringValue(fmt);
p = RSTRING_PTR(fmt);
@@ -462,6 +393,7 @@ pack_pack(VALUE ary, VALUE fmt)
#define NEXTFROM (items-- > 0 ? RARRAY_PTR(ary)[idx++] : TOO_FEW)
while (p < pend) {
+ int explicit_endian = 0;
if (RSTRING_PTR(fmt) + RSTRING_LEN(fmt) != pend) {
rb_raise(rb_eRuntimeError, "format string modified");
}
@@ -477,19 +409,39 @@ pack_pack(VALUE ary, VALUE fmt)
}
continue;
}
- if (*p == '_' || *p == '!') {
+
+ {
static const char natstr[] = "sSiIlL";
+ static const char endstr[] = "sSiIlLqQ";
- if (strchr(natstr, type)) {
+ modifiers:
+ switch (*p) {
+ case '_':
+ case '!':
+ if (strchr(natstr, type)) {
#ifdef NATINT_PACK
- natint = 1;
+ natint = 1;
#endif
- p++;
- }
- else {
- rb_raise(rb_eArgError, "'%c' allowed only after types %s", *p, natstr);
+ p++;
+ }
+ else {
+ rb_raise(rb_eArgError, "'%c' allowed only after types %s", *p, natstr);
+ }
+ goto modifiers;
+
+ case '<':
+ case '>':
+ if (!strchr(endstr, type)) {
+ rb_raise(rb_eArgError, "'%c' allowed only after types %s", *p, endstr);
+ }
+ if (explicit_endian) {
+ rb_raise(rb_eRangeError, "Can't use both '<' and '>'");
+ }
+ explicit_endian = *p++;
+ goto modifiers;
}
}
+
if (*p == '*') { /* set data length */
len = strchr("@Xxu", type) ? 0
: strchr("PMm", type) ? 1
@@ -696,90 +648,162 @@ pack_pack(VALUE ary, VALUE fmt)
break;
case 's': /* signed short */
- case 'S': /* unsigned short */
- while (len-- > 0) {
- short s;
+ signed_p = 1;
+ integer_size = NATINT_LEN(short, 2);
+ bigendian_p = BIGENDIAN_P();
+ goto pack_integer;
- from = NEXTFROM;
- s = (short)num2i32(from);
- rb_str_buf_cat(res, OFF16(&s), NATINT_LEN(short,2));
- }
- break;
+ case 'S': /* unsigned short */
+ signed_p = 0;
+ integer_size = NATINT_LEN(short, 2);
+ bigendian_p = BIGENDIAN_P();
+ goto pack_integer;
case 'i': /* signed int */
- case 'I': /* unsigned int */
- while (len-- > 0) {
- int i;
+ signed_p = 1;
+ integer_size = (int)sizeof(int);
+ bigendian_p = BIGENDIAN_P();
+ goto pack_integer;
- from = NEXTFROM;
- i = num2i32(from);
- rb_str_buf_cat(res, (char*)&i, sizeof(int));
- }
- break;
+ case 'I': /* unsigned int */
+ signed_p = 0;
+ integer_size = (int)sizeof(int);
+ bigendian_p = BIGENDIAN_P();
+ goto pack_integer;
case 'l': /* signed long */
- case 'L': /* unsigned long */
- while (len-- > 0) {
- long l;
+ signed_p = 1;
+ integer_size = NATINT_LEN(long, 4);
+ bigendian_p = BIGENDIAN_P();
+ goto pack_integer;
- from = NEXTFROM;
- l = num2i32(from);
- rb_str_buf_cat(res, OFF32(&l), NATINT_LEN(long,4));
- }
- break;
+ case 'L': /* unsigned long */
+ signed_p = 0;
+ integer_size = NATINT_LEN(long, 4);
+ bigendian_p = BIGENDIAN_P();
+ goto pack_integer;
case 'q': /* signed quad (64bit) int */
- case 'Q': /* unsigned quad (64bit) int */
- while (len-- > 0) {
- char tmp[QUAD_SIZE];
+ signed_p = 1;
+ integer_size = 8;
+ bigendian_p = BIGENDIAN_P();
+ goto pack_integer;
- from = NEXTFROM;
- rb_quad_pack(tmp, from);
- rb_str_buf_cat(res, (char*)&tmp, QUAD_SIZE);
- }
- break;
+ case 'Q': /* unsigned quad (64bit) int */
+ signed_p = 0;
+ integer_size = 8;
+ bigendian_p = BIGENDIAN_P();
+ goto pack_integer;
case 'n': /* unsigned short (network byte-order) */
- while (len-- > 0) {
- unsigned short s;
-
- from = NEXTFROM;
- s = (unsigned short)num2i32(from);
- s = NATINT_HTONS(s);
- rb_str_buf_cat(res, OFF16(&s), NATINT_LEN(short,2));
- }
- break;
+ signed_p = 0;
+ integer_size = 2;
+ bigendian_p = 1;
+ goto pack_integer;
case 'N': /* unsigned long (network byte-order) */
- while (len-- > 0) {
- unsigned long l;
-
- from = NEXTFROM;
- l = num2i32(from);
- l = NATINT_HTONL(l);
- rb_str_buf_cat(res, OFF32(&l), NATINT_LEN(long,4));
- }
- break;
+ signed_p = 0;
+ integer_size = 4;
+ bigendian_p = 1;
+ goto pack_integer;
case 'v': /* unsigned short (VAX byte-order) */
- while (len-- > 0) {
- unsigned short s;
-
- from = NEXTFROM;
- s = (unsigned short)num2i32(from);
- s = NATINT_HTOVS(s);
- rb_str_buf_cat(res, OFF16(&s), NATINT_LEN(short,2));
- }
- break;
+ signed_p = 0;
+ integer_size = 2;
+ bigendian_p = 0;
+ goto pack_integer;
case 'V': /* unsigned long (VAX byte-order) */
- while (len-- > 0) {
- unsigned long l;
+ signed_p = 0;
+ integer_size = 4;
+ bigendian_p = 0;
+ goto pack_integer;
+
+ pack_integer:
+ if (explicit_endian) {
+ bigendian_p = explicit_endian == '>';
+ }
+
+ switch (integer_size) {
+#if defined(HAVE_INT16_T) && !defined(FORCE_BIG_PACK)
+ case SIZEOF_INT16_T:
+ while (len-- > 0) {
+ union {
+ int16_t i;
+ char a[sizeof(int16_t)];
+ } v;
+
+ from = NEXTFROM;
+ v.i = (int16_t)num2i32(from);
+ if (bigendian_p != BIGENDIAN_P()) v.i = swap16(v.i);
+ rb_str_buf_cat(res, v.a, sizeof(int16_t));
+ }
+ break;
+#endif
- from = NEXTFROM;
- l = num2i32(from);
- l = NATINT_HTOVL(l);
- rb_str_buf_cat(res, OFF32(&l), NATINT_LEN(long,4));
+#if defined(HAVE_INT32_T) && !defined(FORCE_BIG_PACK)
+ case SIZEOF_INT32_T:
+ while (len-- > 0) {
+ union {
+ int32_t i;
+ char a[sizeof(int32_t)];
+ } v;
+
+ from = NEXTFROM;
+ v.i = (int32_t)num2i32(from);
+ if (bigendian_p != BIGENDIAN_P()) v.i = swap32(v.i);
+ rb_str_buf_cat(res, v.a, sizeof(int32_t));
+ }
+ break;
+#endif
+
+#if defined(HAVE_INT64_T) && SIZEOF_LONG == SIZEOF_INT64_T && !defined(FORCE_BIG_PACK)
+ case SIZEOF_INT64_T:
+ while (len-- > 0) {
+ union {
+ int64_t i;
+ char a[sizeof(int64_t)];
+ } v;
+
+ from = NEXTFROM;
+ v.i = num2i32(from); /* can return 64bit value if SIZEOF_LONG == SIZEOF_INT64_T */
+ if (bigendian_p != BIGENDIAN_P()) v.i = swap64(v.i);
+ rb_str_buf_cat(res, v.a, sizeof(int64_t));
+ }
+ break;
+#endif
+
+ default:
+ if (integer_size > MAX_INTEGER_PACK_SIZE)
+ rb_bug("unexpected intger size for pack: %d", integer_size);
+ while (len-- > 0) {
+ union {
+ unsigned long i[(MAX_INTEGER_PACK_SIZE+SIZEOF_LONG-1)/SIZEOF_LONG];
+ char a[(MAX_INTEGER_PACK_SIZE+SIZEOF_LONG-1)/SIZEOF_LONG*SIZEOF_LONG];
+ } v;
+ int num_longs = (integer_size+SIZEOF_LONG-1)/SIZEOF_LONG;
+ int i;
+
+ from = NEXTFROM;
+ rb_big_pack(from, v.i, num_longs);
+ if (bigendian_p) {
+ for (i = 0; i < num_longs/2; i++) {
+ unsigned long t = v.i[i];
+ v.i[i] = v.i[num_longs-1-i];
+ v.i[num_longs-1-i] = t;
+ }
+ }
+ if (bigendian_p != BIGENDIAN_P()) {
+ for (i = 0; i < num_longs; i++)
+ v.i[i] = swapl(v.i[i]);
+ }
+ rb_str_buf_cat(res,
+ bigendian_p ?
+ v.a + sizeof(long)*num_longs - integer_size :
+ v.a,
+ integer_size);
+ }
+ break;
}
break;
@@ -1161,26 +1185,19 @@ hex2num(char c)
}
#define PACK_LENGTH_ADJUST_SIZE(sz) do { \
- tmp = 0; \
- if (len > (long)((send-s)/sz)) { \
+ tmp_len = 0; \
+ if (len > (long)((send-s)/(sz))) { \
if (!star) { \
- tmp = len-(send-s)/sz; \
+ tmp_len = len-(send-s)/(sz); \
} \
- len = (send-s)/sz; \
+ len = (send-s)/(sz); \
} \
} while (0)
-#ifdef NATINT_PACK
-#define PACK_LENGTH_ADJUST(type,sz) do { \
- int t__len = NATINT_LEN(type,(sz)); \
- PACK_LENGTH_ADJUST_SIZE(t__len); \
+#define PACK_ITEM_ADJUST() do { \
+ if (tmp_len > 0 && !block_p) \
+ rb_ary_store(ary, RARRAY_LEN(ary)+tmp_len-1, Qnil); \
} while (0)
-#else
-#define PACK_LENGTH_ADJUST(type,sz) \
- PACK_LENGTH_ADJUST_SIZE(sizeof(type))
-#endif
-
-#define PACK_ITEM_ADJUST() while (tmp--) rb_ary_push(ary, Qnil)
static VALUE
infected_str_new(const char *ptr, long len, VALUE str)
@@ -1193,7 +1210,7 @@ infected_str_new(const char *ptr, long len, VALUE str)
/*
* call-seq:
- * str.unpack(format) => anArray
+ * str.unpack(format) -> anArray
*
* Decodes <i>str</i> (which may contain binary data) according to the
* format string, returning an array of each value extracted. The
@@ -1203,7 +1220,8 @@ infected_str_new(const char *ptr, long len, VALUE str)
* by a number, indicating the number of times to repeat with this
* directive. An asterisk (``<code>*</code>'') will use up all
* remaining elements. The directives <code>sSiIlL</code> may each be
- * followed by an underscore (``<code>_</code>'') to use the underlying
+ * followed by an underscore (``<code>_</code>'') or
+ * exclamation mark (``<code>!</code>'') to use the underlying
* platform's native size for the specified type; otherwise, it uses a
* platform-independent consistent size. Spaces are ignored in the
* format string. See also <code>Array#pack</code>.
@@ -1220,115 +1238,82 @@ infected_str_new(const char *ptr, long len, VALUE str)
* This table summarizes the various formats and the Ruby classes
* returned by each.
*
- * Format | Returns | Function
- * -------+---------+-----------------------------------------
- * A | String | arbitrary binary string with trailing
- * | | nulls and ASCII spaces removed
- * -------+---------+-----------------------------------------
- * a | String | arbitrary binary string
- * -------+---------+-----------------------------------------
- * B | String | extract bits from each character (msb first)
- * -------+---------+-----------------------------------------
- * b | String | extract bits from each character (lsb first)
- * -------+---------+-----------------------------------------
- * C | Fixnum | extract a byte (C char) as an unsigned integer
- * -------+---------+-----------------------------------------
- * c | Fixnum | extract a byte (C char) as an integer
- * -------+---------+-----------------------------------------
- * d,D | Float | treat sizeof(double) characters as
- * | | a native double
- * -------+---------+-----------------------------------------
- * E | Float | treat sizeof(double) characters as
- * | | a double in little-endian byte order
- * -------+---------+-----------------------------------------
- * e | Float | treat sizeof(float) characters as
- * | | a float in little-endian byte order
- * -------+---------+-----------------------------------------
- * f,F | Float | treat sizeof(float) characters as
- * | | a native float
- * -------+---------+-----------------------------------------
- * G | Float | treat sizeof(double) characters as
- * | | a double in network byte order
- * -------+---------+-----------------------------------------
- * g | Float | treat sizeof(float) characters as a
- * | | float in network byte order
- * -------+---------+-----------------------------------------
- * H | String | extract hex nibbles from each character
- * | | (most significant first)
- * -------+---------+-----------------------------------------
- * h | String | extract hex nibbles from each character
- * | | (least significant first)
- * -------+---------+-----------------------------------------
- * I | Integer | treat sizeof(int) (modified by _)
- * | | successive characters as an unsigned
- * | | native integer
- * -------+---------+-----------------------------------------
- * i | Integer | treat sizeof(int) (modified by _)
- * | | successive characters as a signed
- * | | native integer
- * -------+---------+-----------------------------------------
- * L | Integer | treat four (modified by _) successive
- * | | characters as an unsigned native
- * | | long integer
- * -------+---------+-----------------------------------------
- * l | Integer | treat four (modified by _) successive
- * | | characters as a signed native
- * | | long integer
- * -------+---------+-----------------------------------------
- * M | String | quoted-printable
- * -------+---------+-----------------------------------------
- * m | String | base64-encoded (RFC 2045) (default)
- * | | base64-encoded (RFC 4648) if followed by 0
- * -------+---------+-----------------------------------------
- * N | Integer | treat four characters as an unsigned
- * | | long in network byte order
- * -------+---------+-----------------------------------------
- * n | Fixnum | treat two characters as an unsigned
- * | | short in network byte order
- * -------+---------+-----------------------------------------
- * P | String | treat sizeof(char *) characters as a
- * | | pointer, and return \emph{len} characters
- * | | from the referenced location
- * -------+---------+-----------------------------------------
- * p | String | treat sizeof(char *) characters as a
- * | | pointer to a null-terminated string
- * -------+---------+-----------------------------------------
- * Q | Integer | treat 8 characters as an unsigned
- * | | quad word (64 bits)
- * -------+---------+-----------------------------------------
- * q | Integer | treat 8 characters as a signed
- * | | quad word (64 bits)
- * -------+---------+-----------------------------------------
- * S | Fixnum | treat two (different if _ used)
- * | | successive characters as an unsigned
- * | | short in native byte order
- * -------+---------+-----------------------------------------
- * s | Fixnum | Treat two (different if _ used)
- * | | successive characters as a signed short
- * | | in native byte order
- * -------+---------+-----------------------------------------
- * U | Integer | UTF-8 characters as unsigned integers
- * -------+---------+-----------------------------------------
- * u | String | UU-encoded
- * -------+---------+-----------------------------------------
- * V | Fixnum | treat four characters as an unsigned
- * | | long in little-endian byte order
- * -------+---------+-----------------------------------------
- * v | Fixnum | treat two characters as an unsigned
- * | | short in little-endian byte order
- * -------+---------+-----------------------------------------
- * w | Integer | BER-compressed integer (see Array.pack)
- * -------+---------+-----------------------------------------
- * X | --- | skip backward one character
- * -------+---------+-----------------------------------------
- * x | --- | skip forward one character
- * -------+---------+-----------------------------------------
- * Z | String | with trailing nulls removed
- * | | upto first null with *
- * -------+---------+-----------------------------------------
- * @ | --- | skip to the offset given by the
- * | | length argument
- * -------+---------+-----------------------------------------
+ * Integer | |
+ * Directive | Returns | Meaning
+ * -----------------------------------------------------------------
+ * C | Integer | 8-bit unsigned (unsigned char)
+ * S | Integer | 16-bit unsigned, native endian (uint16_t)
+ * L | Integer | 32-bit unsigned, native endian (uint32_t)
+ * Q | Integer | 64-bit unsigned, native endian (uint64_t)
+ * | |
+ * c | Integer | 8-bit signed (signed char)
+ * s | Integer | 16-bit signed, native endian (int16_t)
+ * l | Integer | 32-bit signed, native endian (int32_t)
+ * q | Integer | 64-bit signed, native endian (int64_t)
+ * | |
+ * S_, S! | Integer | unsigned short, native endian
+ * I, I_, I! | Integer | unsigned int, native endian
+ * L_, L! | Integer | unsigned long, native endian
+ * | |
+ * s_, s! | Integer | signed short, native endian
+ * i, i_, i! | Integer | signed int, native endian
+ * l_, l! | Integer | signed long, native endian
+ * | |
+ * S> L> Q> | Integer | same as the directives without ">" except
+ * s> l> q> | | big endian
+ * S!> I!> | | (available since Ruby 1.9.3)
+ * L!> Q!> | | "S>" is same as "n"
+ * s!> i!> | | "L>" is same as "N"
+ * l!> q!> | |
+ * | |
+ * S< L< Q< | Integer | same as the directives without "<" except
+ * s< l< q< | | little endian
+ * S!< I!< | | (available since Ruby 1.9.3)
+ * L!< Q!< | | "S<" is same as "v"
+ * s!< i!< | | "L<" is same as "V"
+ * l!< q!< | |
+ * | |
+ * n | Integer | 16-bit unsigned, network (big-endian) byte order
+ * N | Integer | 32-bit unsigned, network (big-endian) byte order
+ * v | Integer | 16-bit unsigned, VAX (little-endian) byte order
+ * V | Integer | 32-bit unsigned, VAX (little-endian) byte order
+ * | |
+ * U | Integer | UTF-8 character
+ * w | Integer | BER-compressed integer (see Array.pack)
+ *
+ * Float | |
+ * Directive | Returns | Meaning
+ * -----------------------------------------------------------------
+ * D, d | Float | double-precision, native format
+ * F, f | Float | single-precision, native format
+ * E | Float | double-precision, little-endian byte order
+ * e | Float | single-precision, little-endian byte order
+ * G | Float | double-precision, network (big-endian) byte order
+ * g | Float | single-precision, network (big-endian) byte order
+ *
+ * String | |
+ * Directive | Returns | Meaning
+ * -----------------------------------------------------------------
+ * A | String | arbitrary binary string (remove trailing nulls and ASCII spaces)
+ * a | String | arbitrary binary string
+ * Z | String | null-terminated string
+ * B | String | bit string (MSB first)
+ * b | String | bit string (LSB first)
+ * H | String | hex string (high nibble first)
+ * h | String | hex string (low nibble first)
+ * u | String | UU-encoded string
+ * M | String | quoted-printable, MIME encoding (see RFC2045)
+ * m | String | base64 encoded string (RFC 2045) (default)
+ * | | base64 encoded string (RFC 4648) if followed by 0
+ * P | String | pointer to a structure (fixed-length string)
+ * p | String | pointer to a null-terminated string
+ *
+ * Misc. | |
+ * Directive | Returns | Meaning
+ * -----------------------------------------------------------------
+ * @ | --- | skip to the offset given by the length argument
+ * X | --- | skip backward one byte
+ * x | --- | skip forward one byte
*/
static VALUE
@@ -1339,12 +1324,13 @@ pack_unpack(VALUE str, VALUE fmt)
char *p, *pend;
VALUE ary;
char type;
- long len;
- int tmp, star;
+ long len, tmp_len;
+ int star;
#ifdef NATINT_PACK
int natint; /* native integer */
#endif
int block_p = rb_block_given_p();
+ int signed_p, integer_size, bigendian_p;
#define UNPACK_PUSH(item) do {\
VALUE item_val = (item);\
if (block_p) {\
@@ -1364,6 +1350,7 @@ pack_unpack(VALUE str, VALUE fmt)
ary = block_p ? Qnil : rb_ary_new();
while (p < pend) {
+ int explicit_endian = 0;
type = *p++;
#ifdef NATINT_PACK
natint = 0;
@@ -1376,20 +1363,41 @@ pack_unpack(VALUE str, VALUE fmt)
}
continue;
}
+
star = 0;
- if (*p == '_' || *p == '!') {
+ {
static const char natstr[] = "sSiIlL";
+ static const char endstr[] = "sSiIlLqQ";
- if (strchr(natstr, type)) {
+ modifiers:
+ switch (*p) {
+ case '_':
+ case '!':
+
+ if (strchr(natstr, type)) {
#ifdef NATINT_PACK
- natint = 1;
+ natint = 1;
#endif
- p++;
- }
- else {
- rb_raise(rb_eArgError, "'%c' allowed only after types %s", *p, natstr);
+ p++;
+ }
+ else {
+ rb_raise(rb_eArgError, "'%c' allowed only after types %s", *p, natstr);
+ }
+ goto modifiers;
+
+ case '<':
+ case '>':
+ if (!strchr(endstr, type)) {
+ rb_raise(rb_eArgError, "'%c' allowed only after types %s", *p, endstr);
+ }
+ if (explicit_endian) {
+ rb_raise(rb_eRangeError, "Can't use both '<' and '>'");
+ }
+ explicit_endian = *p++;
+ goto modifiers;
}
}
+
if (p >= pend)
len = 1;
else if (*p == '*') {
@@ -1531,7 +1539,7 @@ pack_unpack(VALUE str, VALUE fmt)
break;
case 'c':
- PACK_LENGTH_ADJUST(char,sizeof(char));
+ PACK_LENGTH_ADJUST_SIZE(sizeof(char));
while (len-- > 0) {
int c = *s++;
if (c > (char)127) c-=256;
@@ -1541,7 +1549,7 @@ pack_unpack(VALUE str, VALUE fmt)
break;
case 'C':
- PACK_LENGTH_ADJUST(unsigned char,sizeof(unsigned char));
+ PACK_LENGTH_ADJUST_SIZE(sizeof(unsigned char));
while (len-- > 0) {
unsigned char c = *s++;
UNPACK_PUSH(INT2FIX(c));
@@ -1550,137 +1558,224 @@ pack_unpack(VALUE str, VALUE fmt)
break;
case 's':
- PACK_LENGTH_ADJUST(short,2);
- while (len-- > 0) {
- short tmp = 0;
- memcpy(OFF16(&tmp), s, NATINT_LEN(short,2));
- EXTEND16(tmp);
- s += NATINT_LEN(short,2);
- UNPACK_PUSH(INT2FIX(tmp));
- }
- PACK_ITEM_ADJUST();
- break;
+ signed_p = 1;
+ integer_size = NATINT_LEN(short, 2);
+ bigendian_p = BIGENDIAN_P();
+ goto unpack_integer;
case 'S':
- PACK_LENGTH_ADJUST(unsigned short,2);
- while (len-- > 0) {
- unsigned short tmp = 0;
- memcpy(OFF16(&tmp), s, NATINT_LEN(unsigned short,2));
- s += NATINT_LEN(unsigned short,2);
- UNPACK_PUSH(INT2FIX(tmp));
- }
- PACK_ITEM_ADJUST();
- break;
+ signed_p = 0;
+ integer_size = NATINT_LEN(short, 2);
+ bigendian_p = BIGENDIAN_P();
+ goto unpack_integer;
case 'i':
- PACK_LENGTH_ADJUST(int,sizeof(int));
- while (len-- > 0) {
- int tmp;
- memcpy(&tmp, s, sizeof(int));
- s += sizeof(int);
- UNPACK_PUSH(INT2NUM(tmp));
- }
- PACK_ITEM_ADJUST();
- break;
+ signed_p = 1;
+ integer_size = (int)sizeof(int);
+ bigendian_p = BIGENDIAN_P();
+ goto unpack_integer;
case 'I':
- PACK_LENGTH_ADJUST(unsigned int,sizeof(unsigned int));
- while (len-- > 0) {
- unsigned int tmp;
- memcpy(&tmp, s, sizeof(unsigned int));
- s += sizeof(unsigned int);
- UNPACK_PUSH(UINT2NUM(tmp));
- }
- PACK_ITEM_ADJUST();
- break;
+ signed_p = 0;
+ integer_size = (int)sizeof(int);
+ bigendian_p = BIGENDIAN_P();
+ goto unpack_integer;
case 'l':
- PACK_LENGTH_ADJUST(long,4);
- while (len-- > 0) {
- long tmp = 0;
- memcpy(OFF32(&tmp), s, NATINT_LEN(long,4));
- EXTEND32(tmp);
- s += NATINT_LEN(long,4);
- UNPACK_PUSH(LONG2NUM(tmp));
- }
- PACK_ITEM_ADJUST();
- break;
+ signed_p = 1;
+ integer_size = NATINT_LEN(long, 4);
+ bigendian_p = BIGENDIAN_P();
+ goto unpack_integer;
+
case 'L':
- PACK_LENGTH_ADJUST(unsigned long,4);
- while (len-- > 0) {
- unsigned long tmp = 0;
- memcpy(OFF32(&tmp), s, NATINT_LEN(unsigned long,4));
- s += NATINT_LEN(unsigned long,4);
- UNPACK_PUSH(ULONG2NUM(tmp));
- }
- PACK_ITEM_ADJUST();
- break;
+ signed_p = 0;
+ integer_size = NATINT_LEN(long, 4);
+ bigendian_p = BIGENDIAN_P();
+ goto unpack_integer;
case 'q':
- PACK_LENGTH_ADJUST_SIZE(QUAD_SIZE);
- while (len-- > 0) {
- char *tmp = (char*)s;
- s += QUAD_SIZE;
- UNPACK_PUSH(rb_quad_unpack(tmp, 1));
- }
- PACK_ITEM_ADJUST();
- break;
+ signed_p = 1;
+ integer_size = 8;
+ bigendian_p = BIGENDIAN_P();
+ goto unpack_integer;
+
case 'Q':
- PACK_LENGTH_ADJUST_SIZE(QUAD_SIZE);
- while (len-- > 0) {
- char *tmp = (char*)s;
- s += QUAD_SIZE;
- UNPACK_PUSH(rb_quad_unpack(tmp, 0));
- }
- break;
+ signed_p = 0;
+ integer_size = 8;
+ bigendian_p = BIGENDIAN_P();
+ goto unpack_integer;
case 'n':
- PACK_LENGTH_ADJUST(unsigned short,2);
- while (len-- > 0) {
- unsigned short tmp = 0;
- memcpy(OFF16B(&tmp), s, NATINT_LEN(unsigned short,2));
- s += NATINT_LEN(unsigned short,2);
- UNPACK_PUSH(UINT2NUM(ntohs(tmp)));
- }
- PACK_ITEM_ADJUST();
- break;
+ signed_p = 0;
+ integer_size = 2;
+ bigendian_p = 1;
+ goto unpack_integer;
case 'N':
- PACK_LENGTH_ADJUST(unsigned long,4);
- while (len-- > 0) {
- unsigned long tmp = 0;
- memcpy(OFF32B(&tmp), s, NATINT_LEN(unsigned long,4));
- s += NATINT_LEN(unsigned long,4);
- UNPACK_PUSH(ULONG2NUM(ntohl(tmp)));
- }
- PACK_ITEM_ADJUST();
- break;
+ signed_p = 0;
+ integer_size = 4;
+ bigendian_p = 1;
+ goto unpack_integer;
case 'v':
- PACK_LENGTH_ADJUST(unsigned short,2);
- while (len-- > 0) {
- unsigned short tmp = 0;
- memcpy(&tmp, s, NATINT_LEN(unsigned short,2));
- s += NATINT_LEN(unsigned short,2);
- UNPACK_PUSH(UINT2NUM(vtohs(tmp)));
- }
- PACK_ITEM_ADJUST();
- break;
+ signed_p = 0;
+ integer_size = 2;
+ bigendian_p = 0;
+ goto unpack_integer;
case 'V':
- PACK_LENGTH_ADJUST(unsigned long,4);
- while (len-- > 0) {
- unsigned long tmp = 0;
- memcpy(&tmp, s, NATINT_LEN(long,4));
- s += NATINT_LEN(long,4);
- UNPACK_PUSH(ULONG2NUM(vtohl(tmp)));
+ signed_p = 0;
+ integer_size = 4;
+ bigendian_p = 0;
+ goto unpack_integer;
+
+ unpack_integer:
+ if (explicit_endian) {
+ bigendian_p = explicit_endian == '>';
+ }
+
+ switch (integer_size) {
+#if defined(HAVE_INT16_T) && !defined(FORCE_BIG_PACK)
+ case SIZEOF_INT16_T:
+ if (signed_p) {
+ PACK_LENGTH_ADJUST_SIZE(sizeof(int16_t));
+ while (len-- > 0) {
+ union {
+ int16_t i;
+ char a[sizeof(int16_t)];
+ } v;
+ memcpy(v.a, s, sizeof(int16_t));
+ if (bigendian_p != BIGENDIAN_P()) v.i = swap16(v.i);
+ s += sizeof(int16_t);
+ UNPACK_PUSH(INT2FIX(v.i));
+ }
+ PACK_ITEM_ADJUST();
+ }
+ else {
+ PACK_LENGTH_ADJUST_SIZE(sizeof(uint16_t));
+ while (len-- > 0) {
+ union {
+ uint16_t i;
+ char a[sizeof(uint16_t)];
+ } v;
+ memcpy(v.a, s, sizeof(uint16_t));
+ if (bigendian_p != BIGENDIAN_P()) v.i = swap16(v.i);
+ s += sizeof(uint16_t);
+ UNPACK_PUSH(INT2FIX(v.i));
+ }
+ PACK_ITEM_ADJUST();
+ }
+ break;
+#endif
+
+#if defined(HAVE_INT32_T) && !defined(FORCE_BIG_PACK)
+ case SIZEOF_INT32_T:
+ if (signed_p) {
+ PACK_LENGTH_ADJUST_SIZE(sizeof(int32_t));
+ while (len-- > 0) {
+ union {
+ int32_t i;
+ char a[sizeof(int32_t)];
+ } v;
+ memcpy(v.a, s, sizeof(int32_t));
+ if (bigendian_p != BIGENDIAN_P()) v.i = swap32(v.i);
+ s += sizeof(int32_t);
+ UNPACK_PUSH(INT2NUM(v.i));
+ }
+ PACK_ITEM_ADJUST();
+ }
+ else {
+ PACK_LENGTH_ADJUST_SIZE(sizeof(uint32_t));
+ while (len-- > 0) {
+ union {
+ uint32_t i;
+ char a[sizeof(uint32_t)];
+ } v;
+ memcpy(v.a, s, sizeof(uint32_t));
+ if (bigendian_p != BIGENDIAN_P()) v.i = swap32(v.i);
+ s += sizeof(uint32_t);
+ UNPACK_PUSH(UINT2NUM(v.i));
+ }
+ PACK_ITEM_ADJUST();
+ }
+ break;
+#endif
+
+#if defined(HAVE_INT64_T) && !defined(FORCE_BIG_PACK)
+ case SIZEOF_INT64_T:
+ if (signed_p) {
+ PACK_LENGTH_ADJUST_SIZE(sizeof(int64_t));
+ while (len-- > 0) {
+ union {
+ int64_t i;
+ char a[sizeof(int64_t)];
+ } v;
+ memcpy(v.a, s, sizeof(int64_t));
+ if (bigendian_p != BIGENDIAN_P()) v.i = swap64(v.i);
+ s += sizeof(int64_t);
+ UNPACK_PUSH(INT64toNUM(v.i));
+ }
+ PACK_ITEM_ADJUST();
+ }
+ else {
+ PACK_LENGTH_ADJUST_SIZE(sizeof(uint64_t));
+ while (len-- > 0) {
+ union {
+ uint64_t i;
+ char a[sizeof(uint64_t)];
+ } v;
+ memcpy(v.a, s, sizeof(uint64_t));
+ if (bigendian_p != BIGENDIAN_P()) v.i = swap64(v.i);
+ s += sizeof(uint64_t);
+ UNPACK_PUSH(UINT64toNUM(v.i));
+ }
+ PACK_ITEM_ADJUST();
+ }
+ break;
+#endif
+
+ default:
+ if (integer_size > MAX_INTEGER_PACK_SIZE)
+ rb_bug("unexpected intger size for pack: %d", integer_size);
+ PACK_LENGTH_ADJUST_SIZE(integer_size);
+ while (len-- > 0) {
+ union {
+ unsigned long i[(MAX_INTEGER_PACK_SIZE+SIZEOF_LONG)/SIZEOF_LONG];
+ char a[(MAX_INTEGER_PACK_SIZE+SIZEOF_LONG)/SIZEOF_LONG*SIZEOF_LONG];
+ } v;
+ int num_longs = (integer_size+SIZEOF_LONG)/SIZEOF_LONG;
+ int i;
+
+ if (signed_p && (signed char)s[bigendian_p ? 0 : (integer_size-1)] < 0)
+ memset(v.a, 0xff, sizeof(long)*num_longs);
+ else
+ memset(v.a, 0, sizeof(long)*num_longs);
+ if (bigendian_p)
+ memcpy(v.a + sizeof(long)*num_longs - integer_size, s, integer_size);
+ else
+ memcpy(v.a, s, integer_size);
+ if (bigendian_p) {
+ for (i = 0; i < num_longs/2; i++) {
+ unsigned long t = v.i[i];
+ v.i[i] = v.i[num_longs-1-i];
+ v.i[num_longs-1-i] = t;
+ }
+ }
+ if (bigendian_p != BIGENDIAN_P()) {
+ for (i = 0; i < num_longs; i++)
+ v.i[i] = swapl(v.i[i]);
+ }
+ s += integer_size;
+ UNPACK_PUSH(rb_big_unpack(v.i, num_longs));
+ }
+ PACK_ITEM_ADJUST();
+ break;
}
- PACK_ITEM_ADJUST();
- break;
+ break;
case 'f':
case 'F':
- PACK_LENGTH_ADJUST(float,sizeof(float));
+ PACK_LENGTH_ADJUST_SIZE(sizeof(float));
while (len-- > 0) {
float tmp;
memcpy(&tmp, s, sizeof(float));
@@ -1691,7 +1786,7 @@ pack_unpack(VALUE str, VALUE fmt)
break;
case 'e':
- PACK_LENGTH_ADJUST(float,sizeof(float));
+ PACK_LENGTH_ADJUST_SIZE(sizeof(float));
while (len-- > 0) {
float tmp;
FLOAT_CONVWITH(ftmp);
@@ -1705,7 +1800,7 @@ pack_unpack(VALUE str, VALUE fmt)
break;
case 'E':
- PACK_LENGTH_ADJUST(double,sizeof(double));
+ PACK_LENGTH_ADJUST_SIZE(sizeof(double));
while (len-- > 0) {
double tmp;
DOUBLE_CONVWITH(dtmp);
@@ -1720,7 +1815,7 @@ pack_unpack(VALUE str, VALUE fmt)
case 'D':
case 'd':
- PACK_LENGTH_ADJUST(double,sizeof(double));
+ PACK_LENGTH_ADJUST_SIZE(sizeof(double));
while (len-- > 0) {
double tmp;
memcpy(&tmp, s, sizeof(double));
@@ -1731,10 +1826,10 @@ pack_unpack(VALUE str, VALUE fmt)
break;
case 'g':
- PACK_LENGTH_ADJUST(float,sizeof(float));
+ PACK_LENGTH_ADJUST_SIZE(sizeof(float));
while (len-- > 0) {
float tmp;
- FLOAT_CONVWITH(ftmp;)
+ FLOAT_CONVWITH(ftmp);
memcpy(&tmp, s, sizeof(float));
s += sizeof(float);
@@ -1745,7 +1840,7 @@ pack_unpack(VALUE str, VALUE fmt)
break;
case 'G':
- PACK_LENGTH_ADJUST(double,sizeof(double));
+ PACK_LENGTH_ADJUST_SIZE(sizeof(double));
while (len-- > 0) {
double tmp;
DOUBLE_CONVWITH(dtmp);
@@ -1929,7 +2024,7 @@ pack_unpack(VALUE str, VALUE fmt)
s++;
}
rb_str_set_len(buf, ptr - RSTRING_PTR(buf));
- ENCODING_CODERANGE_SET(buf, rb_usascii_encindex(), ENC_CODERANGE_7BIT);
+ ENCODING_CODERANGE_SET(buf, rb_ascii8bit_encindex(), ENC_CODERANGE_VALID);
UNPACK_PUSH(buf);
}
break;
@@ -1953,7 +2048,7 @@ pack_unpack(VALUE str, VALUE fmt)
break;
case 'P':
- if (sizeof(char *) <= send - s) {
+ if (sizeof(char *) <= (size_t)(send - s)) {
VALUE tmp = Qnil;
char *t;
@@ -1993,7 +2088,7 @@ pack_unpack(VALUE str, VALUE fmt)
if (len > (long)((send - s) / sizeof(char *)))
len = (send - s) / sizeof(char *);
while (len-- > 0) {
- if (send - s < sizeof(char *))
+ if ((size_t)(send - s) < sizeof(char *))
break;
else {
VALUE tmp = Qnil;
diff --git a/parse.y b/parse.y
index 8848145042..417ad0918c 100644
--- a/parse.y
+++ b/parse.y
@@ -18,6 +18,7 @@
#include "ruby/ruby.h"
#include "ruby/st.h"
#include "ruby/encoding.h"
+#include "internal.h"
#include "node.h"
#include "parse.h"
#include "id.h"
@@ -26,10 +27,12 @@
#include <errno.h>
#include <ctype.h>
-#define YYMALLOC(size) rb_parser_malloc(parser, size)
-#define YYREALLOC(ptr, size) rb_parser_realloc(parser, ptr, size)
-#define YYCALLOC(nelem, size) rb_parser_calloc(parser, nelem, size)
-#define YYFREE(ptr) rb_parser_free(parser, ptr)
+#define numberof(array) (int)(sizeof(array) / sizeof((array)[0]))
+
+#define YYMALLOC(size) rb_parser_malloc(parser, (size))
+#define YYREALLOC(ptr, size) rb_parser_realloc(parser, (ptr), (size))
+#define YYCALLOC(nelem, size) rb_parser_calloc(parser, (nelem), (size))
+#define YYFREE(ptr) rb_parser_free(parser, (ptr))
#define malloc YYMALLOC
#define realloc YYREALLOC
#define calloc YYCALLOC
@@ -37,7 +40,7 @@
#ifndef RIPPER
static ID register_symid(ID, const char *, long, rb_encoding *);
-#define REGISTER_SYMID(id, name) register_symid(id, name, strlen(name), enc)
+#define REGISTER_SYMID(id, name) register_symid((id), (name), strlen(name), enc)
#include "id.c"
#endif
@@ -59,28 +62,30 @@ enum lex_state_e {
EXPR_BEG, /* ignore newline, +/- is a sign. */
EXPR_END, /* newline significant, +/- is an operator. */
EXPR_ENDARG, /* ditto, and unbound braces. */
+ EXPR_ENDFN, /* ditto, and unbound braces. */
EXPR_ARG, /* newline significant, +/- is an operator. */
EXPR_CMDARG, /* newline significant, +/- is an operator. */
EXPR_MID, /* newline significant, +/- is an operator. */
EXPR_FNAME, /* ignore newline, no reserved words. */
EXPR_DOT, /* right after `.' or `::', no reserved words. */
EXPR_CLASS, /* immediate after `class', no here document. */
- EXPR_VALUE /* alike EXPR_BEG but label is disallowed. */
+ EXPR_VALUE, /* alike EXPR_BEG but label is disallowed. */
+ EXPR_MAX_STATE
};
typedef VALUE stack_type;
-# define BITSTACK_PUSH(stack, n) (stack = (stack<<1)|((n)&1))
-# define BITSTACK_POP(stack) (stack = stack >> 1)
-# define BITSTACK_LEXPOP(stack) (stack = (stack >> 1) | (stack & 1))
-# define BITSTACK_SET_P(stack) (stack&1)
+# define BITSTACK_PUSH(stack, n) ((stack) = ((stack)<<1)|((n)&1))
+# define BITSTACK_POP(stack) ((stack) = (stack) >> 1)
+# define BITSTACK_LEXPOP(stack) ((stack) = ((stack) >> 1) | ((stack) & 1))
+# define BITSTACK_SET_P(stack) ((stack)&1)
-#define COND_PUSH(n) BITSTACK_PUSH(cond_stack, n)
+#define COND_PUSH(n) BITSTACK_PUSH(cond_stack, (n))
#define COND_POP() BITSTACK_POP(cond_stack)
#define COND_LEXPOP() BITSTACK_LEXPOP(cond_stack)
#define COND_P() BITSTACK_SET_P(cond_stack)
-#define CMDARG_PUSH(n) BITSTACK_PUSH(cmdarg_stack, n)
+#define CMDARG_PUSH(n) BITSTACK_PUSH(cmdarg_stack, (n))
#define CMDARG_POP() BITSTACK_POP(cmdarg_stack)
#define CMDARG_LEXPOP() BITSTACK_LEXPOP(cmdarg_stack)
#define CMDARG_P() BITSTACK_SET_P(cmdarg_stack)
@@ -95,6 +100,7 @@ struct vtable {
struct local_vars {
struct vtable *args;
struct vtable *vars;
+ struct vtable *used;
struct local_vars *prev;
};
@@ -103,7 +109,6 @@ struct local_vars {
#define DVARS_SPECIAL_P(tbl) (!POINTER_P(tbl))
#define POINTER_P(val) ((VALUE)(val) & ~(VALUE)3)
-#ifndef RIPPER
static int
vtable_size(const struct vtable *tbl)
{
@@ -164,7 +169,7 @@ vtable_included(const struct vtable * tbl, ID id)
if (POINTER_P(tbl)) {
for (i = 0; i < tbl->pos; i++) {
if (tbl->tbl[i] == id) {
- return 1;
+ return i+1;
}
}
}
@@ -172,6 +177,7 @@ vtable_included(const struct vtable * tbl, ID id)
}
+#ifndef RIPPER
typedef struct token_info {
const char *token;
int linenum;
@@ -221,7 +227,7 @@ struct parser_params {
int parser_heredoc_end;
int parser_command_start;
NODE *parser_deferred_nodes;
- int parser_lex_gets_ptr;
+ long parser_lex_gets_ptr;
VALUE (*parser_lex_gets)(struct parser_params*,VALUE);
struct local_vars *parser_lvtbl;
int parser_ruby__end__seen;
@@ -242,6 +248,7 @@ struct parser_params {
VALUE coverage;
int nerr;
+ int parser_token_info_enabled;
token_info *parser_token_info;
#else
/* Ripper only */
@@ -267,15 +274,8 @@ struct parser_params {
#define ENC_SINGLE(cr) ((cr)==ENC_CODERANGE_7BIT)
#define TOK_INTERN(mb) rb_intern3(tok(), toklen(), parser->enc)
-#ifdef YYMALLOC
-void *rb_parser_malloc(struct parser_params *, size_t);
-void *rb_parser_realloc(struct parser_params *, void *, size_t);
-void *rb_parser_calloc(struct parser_params *, size_t, size_t);
-void rb_parser_free(struct parser_params *, void *);
-#endif
-
static int parser_yyerror(struct parser_params*, const char*);
-#define yyerror(msg) parser_yyerror(parser, msg)
+#define yyerror(msg) parser_yyerror(parser, (msg))
#define YYLEX_PARAM parser
@@ -309,6 +309,7 @@ static int parser_yyerror(struct parser_params*, const char*);
#define ruby__end__seen (parser->parser_ruby__end__seen)
#define ruby_sourceline (parser->parser_ruby_sourceline)
#define ruby_sourcefile (parser->parser_ruby_sourcefile)
+#define current_enc (parser->enc)
#define yydebug (parser->parser_yydebug)
#ifdef RIPPER
#else
@@ -324,12 +325,12 @@ static int yylex(void*, void*);
#define yyparse ruby_yyparse
static NODE* node_newnode(struct parser_params *, enum node_type, VALUE, VALUE, VALUE);
-#define rb_node_newnode(type, a1, a2, a3) node_newnode(parser, type, a1, a2, a3)
+#define rb_node_newnode(type, a1, a2, a3) node_newnode(parser, (type), (a1), (a2), (a3))
static NODE *cond_gen(struct parser_params*,NODE*);
-#define cond(node) cond_gen(parser, node)
+#define cond(node) cond_gen(parser, (node))
static NODE *logop_gen(struct parser_params*,enum node_type,NODE*,NODE*);
-#define logop(type,node1,node2) logop_gen(parser, type, node1, node2)
+#define logop(type,node1,node2) logop_gen(parser, (type), (node1), (node2))
static NODE *newline_node(NODE*);
static void fixpos(NODE*,NODE*);
@@ -341,114 +342,129 @@ static NODE *remove_begin(NODE*);
#define void_expr0(node) void_expr_gen(parser, (node))
#define void_expr(node) void_expr0((node) = remove_begin(node))
static void void_stmts_gen(struct parser_params*,NODE*);
-#define void_stmts(node) void_stmts_gen(parser, node)
+#define void_stmts(node) void_stmts_gen(parser, (node))
static void reduce_nodes_gen(struct parser_params*,NODE**);
-#define reduce_nodes(n) reduce_nodes_gen(parser,n)
+#define reduce_nodes(n) reduce_nodes_gen(parser,(n))
static void block_dup_check_gen(struct parser_params*,NODE*,NODE*);
-#define block_dup_check(n1,n2) block_dup_check_gen(parser,n1,n2)
+#define block_dup_check(n1,n2) block_dup_check_gen(parser,(n1),(n2))
static NODE *block_append_gen(struct parser_params*,NODE*,NODE*);
-#define block_append(h,t) block_append_gen(parser,h,t)
+#define block_append(h,t) block_append_gen(parser,(h),(t))
static NODE *list_append_gen(struct parser_params*,NODE*,NODE*);
-#define list_append(l,i) list_append_gen(parser,l,i)
+#define list_append(l,i) list_append_gen(parser,(l),(i))
static NODE *list_concat_gen(struct parser_params*,NODE*,NODE*);
-#define list_concat(h,t) list_concat_gen(parser,h,t)
+#define list_concat(h,t) list_concat_gen(parser,(h),(t))
static NODE *arg_append_gen(struct parser_params*,NODE*,NODE*);
-#define arg_append(h,t) arg_append_gen(parser,h,t)
+#define arg_append(h,t) arg_append_gen(parser,(h),(t))
static NODE *arg_concat_gen(struct parser_params*,NODE*,NODE*);
-#define arg_concat(h,t) arg_concat_gen(parser,h,t)
+#define arg_concat(h,t) arg_concat_gen(parser,(h),(t))
static NODE *literal_concat_gen(struct parser_params*,NODE*,NODE*);
-#define literal_concat(h,t) literal_concat_gen(parser,h,t)
+#define literal_concat(h,t) literal_concat_gen(parser,(h),(t))
+static int literal_concat0(struct parser_params *, VALUE, VALUE);
static NODE *new_evstr_gen(struct parser_params*,NODE*);
-#define new_evstr(n) new_evstr_gen(parser,n)
+#define new_evstr(n) new_evstr_gen(parser,(n))
static NODE *evstr2dstr_gen(struct parser_params*,NODE*);
-#define evstr2dstr(n) evstr2dstr_gen(parser,n)
+#define evstr2dstr(n) evstr2dstr_gen(parser,(n))
static NODE *splat_array(NODE*);
static NODE *call_bin_op_gen(struct parser_params*,NODE*,ID,NODE*);
-#define call_bin_op(recv,id,arg1) call_bin_op_gen(parser, recv,id,arg1)
+#define call_bin_op(recv,id,arg1) call_bin_op_gen(parser, (recv),(id),(arg1))
static NODE *call_uni_op_gen(struct parser_params*,NODE*,ID);
-#define call_uni_op(recv,id) call_uni_op_gen(parser, recv,id)
+#define call_uni_op(recv,id) call_uni_op_gen(parser, (recv),(id))
static NODE *new_args_gen(struct parser_params*,NODE*,NODE*,ID,NODE*,ID);
-#define new_args(f,o,r,p,b) new_args_gen(parser, f,o,r,p,b)
-static void shadowing_lvar_gen(struct parser_params*,ID);
-#define shadowing_lvar(name) shadowing_lvar_gen(parser, name)
+#define new_args(f,o,r,p,b) new_args_gen(parser, (f),(o),(r),(p),(b))
static NODE *negate_lit(NODE*);
static NODE *ret_args_gen(struct parser_params*,NODE*);
-#define ret_args(node) ret_args_gen(parser, node)
+#define ret_args(node) ret_args_gen(parser, (node))
static NODE *arg_blk_pass(NODE*,NODE*);
static NODE *new_yield_gen(struct parser_params*,NODE*);
-#define new_yield(node) new_yield_gen(parser, node)
+#define new_yield(node) new_yield_gen(parser, (node))
static NODE *gettable_gen(struct parser_params*,ID);
-#define gettable(id) gettable_gen(parser,id)
+#define gettable(id) gettable_gen(parser,(id))
static NODE *assignable_gen(struct parser_params*,ID,NODE*);
-#define assignable(id,node) assignable_gen(parser, id, node)
-static void new_bv_gen(struct parser_params*,ID);
-#define new_bv(id) new_bv_gen(parser, id)
+#define assignable(id,node) assignable_gen(parser, (id), (node))
+
static NODE *aryset_gen(struct parser_params*,NODE*,NODE*);
-#define aryset(node1,node2) aryset_gen(parser, node1, node2)
+#define aryset(node1,node2) aryset_gen(parser, (node1), (node2))
static NODE *attrset_gen(struct parser_params*,NODE*,ID);
-#define attrset(node,id) attrset_gen(parser, node, id)
+#define attrset(node,id) attrset_gen(parser, (node), (id))
static void rb_backref_error_gen(struct parser_params*,NODE*);
-#define rb_backref_error(n) rb_backref_error_gen(parser,n)
+#define rb_backref_error(n) rb_backref_error_gen(parser,(n))
static NODE *node_assign_gen(struct parser_params*,NODE*,NODE*);
-#define node_assign(node1, node2) node_assign_gen(parser, node1, node2)
+#define node_assign(node1, node2) node_assign_gen(parser, (node1), (node2))
static NODE *match_op_gen(struct parser_params*,NODE*,NODE*);
-#define match_op(node1,node2) match_op_gen(parser, node1, node2)
+#define match_op(node1,node2) match_op_gen(parser, (node1), (node2))
+
+static ID *local_tbl_gen(struct parser_params*);
+#define local_tbl() local_tbl_gen(parser)
+
+static void fixup_nodes(NODE **);
+
+static VALUE reg_compile_gen(struct parser_params*, VALUE, int);
+#define reg_compile(str,options) reg_compile_gen(parser, (str), (options))
+static void reg_fragment_setenc_gen(struct parser_params*, VALUE, int);
+#define reg_fragment_setenc(str,options) reg_fragment_setenc_gen(parser, (str), (options))
+static int reg_fragment_check_gen(struct parser_params*, VALUE, int);
+#define reg_fragment_check(str,options) reg_fragment_check_gen(parser, (str), (options))
+static NODE *reg_named_capture_assign_gen(struct parser_params* parser, VALUE regexp, NODE *match);
+#define reg_named_capture_assign(regexp,match) reg_named_capture_assign_gen(parser,(regexp),(match))
+
+#define get_id(id) (id)
+#define get_value(val) (val)
+#else
+#define remove_begin(node) (node)
+#define rb_dvar_defined(id) 0
+#define rb_local_defined(id) 0
+static ID ripper_get_id(VALUE);
+#define get_id(id) ripper_get_id(id)
+static VALUE ripper_get_value(VALUE);
+#define get_value(val) ripper_get_value(val)
+static VALUE assignable_gen(struct parser_params*,VALUE);
+#define assignable(lhs,node) assignable_gen(parser, (lhs))
+static int id_is_var_gen(struct parser_params *parser, ID id);
+#define id_is_var(id) id_is_var_gen(parser, (id))
+#endif /* !RIPPER */
+
+static ID formal_argument_gen(struct parser_params*, ID);
+#define formal_argument(id) formal_argument_gen(parser, (id))
+static ID shadowing_lvar_gen(struct parser_params*,ID);
+#define shadowing_lvar(name) shadowing_lvar_gen(parser, (name))
+static void new_bv_gen(struct parser_params*,ID);
+#define new_bv(id) new_bv_gen(parser, (id))
static void local_push_gen(struct parser_params*,int);
-#define local_push(top) local_push_gen(parser,top)
+#define local_push(top) local_push_gen(parser,(top))
static void local_pop_gen(struct parser_params*);
#define local_pop() local_pop_gen(parser)
static int local_var_gen(struct parser_params*, ID);
-#define local_var(id) local_var_gen(parser, id);
+#define local_var(id) local_var_gen(parser, (id));
static int arg_var_gen(struct parser_params*, ID);
-#define arg_var(id) arg_var_gen(parser, id)
+#define arg_var(id) arg_var_gen(parser, (id))
static int local_id_gen(struct parser_params*, ID);
-#define local_id(id) local_id_gen(parser, id)
-static ID *local_tbl_gen(struct parser_params*);
-#define local_tbl() local_tbl_gen(parser)
+#define local_id(id) local_id_gen(parser, (id))
static ID internal_id_gen(struct parser_params*);
#define internal_id() internal_id_gen(parser)
-static void dyna_push_gen(struct parser_params*);
+static const struct vtable *dyna_push_gen(struct parser_params *);
#define dyna_push() dyna_push_gen(parser)
-static void dyna_pop_gen(struct parser_params*);
-#define dyna_pop() dyna_pop_gen(parser)
+static void dyna_pop_gen(struct parser_params*, const struct vtable *);
+#define dyna_pop(node) dyna_pop_gen(parser, (node))
static int dyna_in_block_gen(struct parser_params*);
#define dyna_in_block() dyna_in_block_gen(parser)
#define dyna_var(id) local_var(id)
-static int dvar_defined_gen(struct parser_params*,ID);
-#define dvar_defined(id) dvar_defined_gen(parser, id)
+static int dvar_defined_gen(struct parser_params*,ID,int);
+#define dvar_defined(id) dvar_defined_gen(parser, (id), 0)
+#define dvar_defined_get(id) dvar_defined_gen(parser, (id), 1)
static int dvar_curr_gen(struct parser_params*,ID);
-#define dvar_curr(id) dvar_curr_gen(parser, id)
+#define dvar_curr(id) dvar_curr_gen(parser, (id))
-static void fixup_nodes(NODE **);
-
-extern int rb_dvar_defined(ID);
-extern int rb_local_defined(ID);
-extern int rb_parse_in_eval(void);
-extern int rb_parse_in_main(void);
-
-static VALUE reg_compile_gen(struct parser_params*, VALUE, int);
-#define reg_compile(str,options) reg_compile_gen(parser, str, options)
-static void reg_fragment_setenc_gen(struct parser_params*, VALUE, int);
-#define reg_fragment_setenc(str,options) reg_fragment_setenc_gen(parser, str, options)
-static void reg_fragment_check_gen(struct parser_params*, VALUE, int);
-#define reg_fragment_check(str,options) reg_fragment_check_gen(parser, str, options)
-static NODE *reg_named_capture_assign_gen(struct parser_params* parser, VALUE regexp, NODE *match);
-#define reg_named_capture_assign(regexp,match) reg_named_capture_assign_gen(parser,regexp,match)
-int rb_enc_symname2_p(const char *, int, rb_encoding *);
-#else
-#define remove_begin(node) (node)
-#endif /* !RIPPER */
static int lvar_defined_gen(struct parser_params*, ID);
-#define lvar_defined(id) lvar_defined_gen(parser, id)
+#define lvar_defined(id) lvar_defined_gen(parser, (id))
#define RE_OPTION_ONCE (1<<16)
#define RE_OPTION_ENCODING_SHIFT 8
@@ -487,15 +503,15 @@ static VALUE ripper_dispatch4(struct parser_params*,ID,VALUE,VALUE,VALUE,VALUE);
static VALUE ripper_dispatch5(struct parser_params*,ID,VALUE,VALUE,VALUE,VALUE,VALUE);
#define dispatch0(n) ripper_dispatch0(parser, TOKEN_PASTE(ripper_id_, n))
-#define dispatch1(n,a) ripper_dispatch1(parser, TOKEN_PASTE(ripper_id_, n), a)
-#define dispatch2(n,a,b) ripper_dispatch2(parser, TOKEN_PASTE(ripper_id_, n), a, b)
-#define dispatch3(n,a,b,c) ripper_dispatch3(parser, TOKEN_PASTE(ripper_id_, n), a, b, c)
-#define dispatch4(n,a,b,c,d) ripper_dispatch4(parser, TOKEN_PASTE(ripper_id_, n), a, b, c, d)
-#define dispatch5(n,a,b,c,d,e) ripper_dispatch5(parser, TOKEN_PASTE(ripper_id_, n), a, b, c, d, e)
+#define dispatch1(n,a) ripper_dispatch1(parser, TOKEN_PASTE(ripper_id_, n), (a))
+#define dispatch2(n,a,b) ripper_dispatch2(parser, TOKEN_PASTE(ripper_id_, n), (a), (b))
+#define dispatch3(n,a,b,c) ripper_dispatch3(parser, TOKEN_PASTE(ripper_id_, n), (a), (b), (c))
+#define dispatch4(n,a,b,c,d) ripper_dispatch4(parser, TOKEN_PASTE(ripper_id_, n), (a), (b), (c), (d))
+#define dispatch5(n,a,b,c,d,e) ripper_dispatch5(parser, TOKEN_PASTE(ripper_id_, n), (a), (b), (c), (d), (e))
#define yyparse ripper_yyparse
-static VALUE ripper_intern(const char*);
+#define ripper_intern(s) ID2SYM(rb_intern(s))
static VALUE ripper_id2sym(ID);
#ifdef __GNUC__
#define ripper_id2sym(id) ((id) < 256 && rb_ispunct(id) ? \
@@ -503,33 +519,32 @@ static VALUE ripper_id2sym(ID);
#endif
#define arg_new() dispatch0(args_new)
-#define arg_add(l,a) dispatch2(args_add, l, a)
-#define arg_prepend(l,a) dispatch2(args_prepend, l, a)
-#define arg_add_star(l,a) dispatch2(args_add_star, l, a)
-#define arg_add_block(l,b) dispatch2(args_add_block, l, b)
-#define arg_add_optblock(l,b) ((b)==Qundef? l : dispatch2(args_add_block, l, b))
-#define bare_assoc(v) dispatch1(bare_assoc_hash, v)
-#define arg_add_assocs(l,b) arg_add(l, bare_assoc(b))
-
-#define args2mrhs(a) dispatch1(mrhs_new_from_args, a)
+#define arg_add(l,a) dispatch2(args_add, (l), (a))
+#define arg_add_star(l,a) dispatch2(args_add_star, (l), (a))
+#define arg_add_block(l,b) dispatch2(args_add_block, (l), (b))
+#define arg_add_optblock(l,b) ((b)==Qundef? (l) : dispatch2(args_add_block, (l), (b)))
+#define bare_assoc(v) dispatch1(bare_assoc_hash, (v))
+#define arg_add_assocs(l,b) arg_add((l), bare_assoc(b))
+
+#define args2mrhs(a) dispatch1(mrhs_new_from_args, (a))
#define mrhs_new() dispatch0(mrhs_new)
-#define mrhs_add(l,a) dispatch2(mrhs_add, l, a)
-#define mrhs_add_star(l,a) dispatch2(mrhs_add_star, l, a)
+#define mrhs_add(l,a) dispatch2(mrhs_add, (l), (a))
+#define mrhs_add_star(l,a) dispatch2(mrhs_add_star, (l), (a))
#define mlhs_new() dispatch0(mlhs_new)
-#define mlhs_add(l,a) dispatch2(mlhs_add, l, a)
-#define mlhs_add_star(l,a) dispatch2(mlhs_add_star, l, a)
+#define mlhs_add(l,a) dispatch2(mlhs_add, (l), (a))
+#define mlhs_add_star(l,a) dispatch2(mlhs_add_star, (l), (a))
#define params_new(pars, opts, rest, pars2, blk) \
- dispatch5(params, pars, opts, rest, pars2, blk)
+ dispatch5(params, (pars), (opts), (rest), (pars2), (blk))
-#define blockvar_new(p,v) dispatch2(block_var, p, v)
-#define blockvar_add_star(l,a) dispatch2(block_var_add_star, l, a)
-#define blockvar_add_block(l,a) dispatch2(block_var_add_block, l, a)
+#define blockvar_new(p,v) dispatch2(block_var, (p), (v))
+#define blockvar_add_star(l,a) dispatch2(block_var_add_star, (l), (a))
+#define blockvar_add_block(l,a) dispatch2(block_var_add_block, (l), (a))
-#define method_optarg(m,a) ((a)==Qundef ? m : dispatch2(method_add_arg,m,a))
-#define method_arg(m,a) dispatch2(method_add_arg,m,a)
-#define method_add_block(m,b) dispatch2(method_add_block, m, b)
+#define method_optarg(m,a) ((a)==Qundef ? (m) : dispatch2(method_add_arg,(m),(a)))
+#define method_arg(m,a) dispatch2(method_add_arg,(m),(a))
+#define method_add_block(m,b) dispatch2(method_add_block, (m), (b))
#define escape_Qundef(x) ((x)==Qundef ? Qnil : (x))
@@ -538,23 +553,23 @@ static VALUE ripper_id2sym(ID);
#endif /* RIPPER */
#ifndef RIPPER
-# define ifndef_ripper(x) x
+# define ifndef_ripper(x) (x)
#else
# define ifndef_ripper(x)
#endif
#ifndef RIPPER
-# define rb_warn0(fmt) rb_compile_warn(ruby_sourcefile, ruby_sourceline, fmt)
-# define rb_warnI(fmt,a) rb_compile_warn(ruby_sourcefile, ruby_sourceline, fmt, a)
-# define rb_warnS(fmt,a) rb_compile_warn(ruby_sourcefile, ruby_sourceline, fmt, a)
-# define rb_warning0(fmt) rb_compile_warning(ruby_sourcefile, ruby_sourceline, fmt)
-# define rb_warningS(fmt,a) rb_compile_warning(ruby_sourcefile, ruby_sourceline, fmt, a)
+# define rb_warn0(fmt) rb_compile_warn(ruby_sourcefile, ruby_sourceline, (fmt))
+# define rb_warnI(fmt,a) rb_compile_warn(ruby_sourcefile, ruby_sourceline, (fmt), (a))
+# define rb_warnS(fmt,a) rb_compile_warn(ruby_sourcefile, ruby_sourceline, (fmt), (a))
+# define rb_warning0(fmt) rb_compile_warning(ruby_sourcefile, ruby_sourceline, (fmt))
+# define rb_warningS(fmt,a) rb_compile_warning(ruby_sourcefile, ruby_sourceline, (fmt), (a))
#else
-# define rb_warn0(fmt) ripper_warn0(parser, fmt)
-# define rb_warnI(fmt,a) ripper_warnI(parser, fmt, a)
-# define rb_warnS(fmt,a) ripper_warnS(parser, fmt, a)
-# define rb_warning0(fmt) ripper_warning0(parser, fmt)
-# define rb_warningS(fmt,a) ripper_warningS(parser, fmt, a)
+# define rb_warn0(fmt) ripper_warn0(parser, (fmt))
+# define rb_warnI(fmt,a) ripper_warnI(parser, (fmt), (a))
+# define rb_warnS(fmt,a) ripper_warnS(parser, (fmt), (a))
+# define rb_warning0(fmt) ripper_warning0(parser, (fmt))
+# define rb_warningS(fmt,a) ripper_warningS(parser, (fmt), (a))
static void ripper_warn0(struct parser_params*, const char*);
static void ripper_warnI(struct parser_params*, const char*, int);
#if 0
@@ -570,8 +585,9 @@ static void ripper_compile_error(struct parser_params*, const char *fmt, ...);
# define compile_error ripper_compile_error
# define PARSER_ARG parser,
#else
-# define compile_error parser->nerr++,rb_compile_error
-# define PARSER_ARG ruby_sourcefile, ruby_sourceline,
+# define rb_compile_error rb_compile_error_with_enc
+# define compile_error parser->nerr++,rb_compile_error_with_enc
+# define PARSER_ARG ruby_sourcefile, ruby_sourceline, current_enc,
#endif
/* Older versions of Yacc set YYMAXDEPTH to a very low value by default (150,
@@ -586,6 +602,11 @@ static void ripper_compile_error(struct parser_params*, const char *fmt, ...);
#ifndef RIPPER
static void token_info_push(struct parser_params*, const char *token);
static void token_info_pop(struct parser_params*, const char *token);
+#define token_info_push(token) (RTEST(ruby_verbose) ? token_info_push(parser, (token)) : (void)0)
+#define token_info_pop(token) (RTEST(ruby_verbose) ? token_info_pop(parser, (token)) : (void)0)
+#else
+#define token_info_push(token) /* nothing */
+#define token_info_pop(token) /* nothing */
#endif
%}
@@ -597,6 +618,7 @@ static void token_info_pop(struct parser_params*, const char *token);
NODE *node;
ID id;
int num;
+ const struct vtable *vars;
}
/*%%%*/
@@ -660,16 +682,17 @@ static void token_info_pop(struct parser_params*, const char *token);
%token <num> tREGEXP_END
%type <node> singleton strings string string1 xstring regexp
-%type <node> string_contents xstring_contents string_content
+%type <node> string_contents xstring_contents regexp_contents string_content
%type <node> words qwords word_list qword_list word
%type <node> literal numeric dsym cpath
+%type <node> top_compstmt top_stmts top_stmt
%type <node> bodystmt compstmt stmts stmt expr arg primary command command_call method_call
%type <node> expr_value arg_value primary_value
%type <node> if_tail opt_else case_body cases opt_rescue exc_list exc_var opt_ensure
%type <node> args call_args opt_call_args
%type <node> paren_args opt_paren_args
%type <node> command_args aref_args opt_block_arg block_arg var_ref var_lhs
-%type <node> mrhs superclass block_call block_command
+%type <node> command_asgn mrhs superclass block_call block_command
%type <node> f_block_optarg f_block_opt
%type <node> f_arglist f_args f_arg f_arg_item f_optarg f_marg f_marg_list f_margs
%type <node> assoc_list assocs assoc undef_list backref string_dvar for_var
@@ -678,7 +701,7 @@ static void token_info_pop(struct parser_params*, const char *token);
%type <node> lambda f_larglist lambda_body
%type <node> brace_block cmd_brace_block do_block lhs none fitem
%type <node> mlhs mlhs_head mlhs_basic mlhs_item mlhs_node mlhs_post mlhs_inner
-%type <id> fsym variable sym symbol operation operation2 operation3
+%type <id> fsym keyword_variable user_variable sym symbol operation operation2 operation3
%type <id> cname fname op f_rest_arg f_block_arg opt_f_block_arg f_norm_arg f_bad_arg
/*%%%*/
/*%
@@ -746,7 +769,6 @@ static void token_info_pop(struct parser_params*, const char *token);
%nonassoc idRespond_to
%nonassoc idIFUNC
%nonassoc idCFUNC
-%nonassoc idThrowState
%nonassoc id_core_set_method_alias
%nonassoc id_core_set_variable_alias
%nonassoc id_core_undef_method
@@ -760,15 +782,15 @@ static void token_info_pop(struct parser_params*, const char *token);
program : {
lex_state = EXPR_BEG;
/*%%%*/
- $<num>$ = compile_for_eval || rb_parse_in_main();
- local_push($<num>$);
+ local_push(compile_for_eval || rb_parse_in_main());
/*%
+ local_push(0);
%*/
}
- compstmt
+ top_compstmt
{
/*%%%*/
- if ($2 && !$<num>1) {
+ if ($2 && !compile_for_eval) {
/* last expression should not be void */
if (nd_type($2) != NODE_BLOCK) void_expr($2);
else {
@@ -780,11 +802,78 @@ program : {
}
}
ruby_eval_tree = NEW_SCOPE(0, block_append(ruby_eval_tree, $2));
- local_pop();
/*%
$$ = $2;
parser->result = dispatch1(program, $$);
%*/
+ local_pop();
+ }
+ ;
+
+top_compstmt : top_stmts opt_terms
+ {
+ /*%%%*/
+ void_stmts($1);
+ fixup_nodes(&deferred_nodes);
+ /*%
+ %*/
+ $$ = $1;
+ }
+ ;
+
+top_stmts : none
+ {
+ /*%%%*/
+ $$ = NEW_BEGIN(0);
+ /*%
+ $$ = dispatch2(stmts_add, dispatch0(stmts_new),
+ dispatch0(void_stmt));
+ %*/
+ }
+ | top_stmt
+ {
+ /*%%%*/
+ $$ = newline_node($1);
+ /*%
+ $$ = dispatch2(stmts_add, dispatch0(stmts_new), $1);
+ %*/
+ }
+ | top_stmts terms top_stmt
+ {
+ /*%%%*/
+ $$ = block_append($1, newline_node($3));
+ /*%
+ $$ = dispatch2(stmts_add, $1, $3);
+ %*/
+ }
+ | error top_stmt
+ {
+ $$ = remove_begin($2);
+ }
+ ;
+
+top_stmt : stmt
+ | keyword_BEGIN
+ {
+ if (in_def || in_single) {
+ yyerror("BEGIN in method");
+ }
+ /*%%%*/
+ /* local_push(0); */
+ /*%
+ %*/
+ }
+ '{' top_compstmt '}'
+ {
+ /*%%%*/
+ ruby_eval_tree_begin = block_append(ruby_eval_tree_begin,
+ $4);
+ /* NEW_PREEXE($4)); */
+ /* local_pop(); */
+ $$ = NEW_BEGIN(0);
+ /*%
+ $$ = dispatch1(BEGIN, $4);
+ %*/
}
;
@@ -812,7 +901,7 @@ bodystmt : compstmt
}
fixpos($$, $1);
/*%
- $$ = dispatch4(body_stmt,
+ $$ = dispatch4(bodystmt,
escape_Qundef($1),
escape_Qundef($2),
escape_Qundef($3),
@@ -958,29 +1047,7 @@ stmt : keyword_alias fitem {lex_state = EXPR_FNAME;} fitem
NODE *resq = NEW_RESBODY(0, remove_begin($3), 0);
$$ = NEW_RESCUE(remove_begin($1), resq, 0);
/*%
- $$ = dispatch2(rescue_mod, $3, $1);
- %*/
- }
- | keyword_BEGIN
- {
- if (in_def || in_single) {
- yyerror("BEGIN in method");
- }
- /*%%%*/
- /* local_push(0); */
- /*%
- %*/
- }
- '{' compstmt '}'
- {
- /*%%%*/
- ruby_eval_tree_begin = block_append(ruby_eval_tree_begin,
- $4);
- /* NEW_PREEXE($4)); */
- /* local_pop(); */
- $$ = NEW_BEGIN(0);
- /*%
- $$ = dispatch1(BEGIN, $4);
+ $$ = dispatch2(rescue_mod, $1, $3);
%*/
}
| keyword_END '{' compstmt '}'
@@ -995,15 +1062,7 @@ stmt : keyword_alias fitem {lex_state = EXPR_FNAME;} fitem
$$ = dispatch1(END, $3);
%*/
}
- | lhs '=' command_call
- {
- /*%%%*/
- value_expr($3);
- $$ = node_assign($1, $3);
- /*%
- $$ = dispatch2(assign, $1, $3);
- %*/
- }
+ | command_asgn
| mlhs '=' command_call
{
/*%%%*/
@@ -1050,7 +1109,7 @@ stmt : keyword_alias fitem {lex_state = EXPR_FNAME;} fitem
value_expr($6);
if (!$3) $3 = NEW_ZARRAY();
- args = arg_concat($6, $3);
+ args = arg_concat($3, $6);
if ($5 == tOROP) {
$5 = 0;
}
@@ -1100,8 +1159,14 @@ stmt : keyword_alias fitem {lex_state = EXPR_FNAME;} fitem
}
| primary_value tCOLON2 tCONSTANT tOP_ASGN command_call
{
+ /*%%%*/
yyerror("constant re-assignment");
$$ = 0;
+ /*%
+ $$ = dispatch2(const_path_field, $1, $3);
+ $$ = dispatch3(opassign, $$, $4, $5);
+ $$ = dispatch1(assign_error, $$);
+ %*/
}
| primary_value tCOLON2 tIDENTIFIER tOP_ASGN command_call
{
@@ -1160,6 +1225,27 @@ stmt : keyword_alias fitem {lex_state = EXPR_FNAME;} fitem
| expr
;
+command_asgn : lhs '=' command_call
+ {
+ /*%%%*/
+ value_expr($3);
+ $$ = node_assign($1, $3);
+ /*%
+ $$ = dispatch2(assign, $1, $3);
+ %*/
+ }
+ | lhs '=' command_asgn
+ {
+ /*%%%*/
+ value_expr($3);
+ $$ = node_assign($1, $3);
+ /*%
+ $$ = dispatch2(assign, $1, $3);
+ %*/
+ }
+ ;
+
+
expr : command_call
| expr keyword_and expr
{
@@ -1235,8 +1321,8 @@ block_command : block_call
cmd_brace_block : tLBRACE_ARG
{
+ $<vars>1 = dyna_push();
/*%%%*/
- dyna_push();
$<num>$ = ruby_sourceline;
/*%
%*/
@@ -1248,10 +1334,10 @@ cmd_brace_block : tLBRACE_ARG
/*%%%*/
$$ = NEW_ITER($3,$4);
nd_set_line($$, $<num>2);
- dyna_pop();
/*%
$$ = dispatch2(brace_block, escape_Qundef($3), $4);
%*/
+ dyna_pop($<vars>1);
}
;
@@ -1413,7 +1499,8 @@ mlhs_basic : mlhs_head
/*%%%*/
$$ = NEW_MASGN($1, NEW_POSTARG($3,$5));
/*%
- $$ = mlhs_add_star($1, $3);
+ $1 = mlhs_add_star($1, $3);
+ $$ = mlhs_add($1, $5);
%*/
}
| mlhs_head tSTAR
@@ -1429,7 +1516,8 @@ mlhs_basic : mlhs_head
/*%%%*/
$$ = NEW_MASGN($1, NEW_POSTARG(-1, $4));
/*%
- $$ = mlhs_add_star($1, Qnil);
+ $1 = mlhs_add_star($1, Qnil);
+ $$ = mlhs_add($1, $4);
%*/
}
| tSTAR mlhs_node
@@ -1445,7 +1533,8 @@ mlhs_basic : mlhs_head
/*%%%*/
$$ = NEW_MASGN(0, NEW_POSTARG($2,$4));
/*%
- $$ = mlhs_add_star(mlhs_new(), $2);
+ $2 = mlhs_add_star(mlhs_new(), $2);
+ $$ = mlhs_add($2, $4);
%*/
}
| tSTAR
@@ -1462,6 +1551,7 @@ mlhs_basic : mlhs_head
$$ = NEW_MASGN(0, NEW_POSTARG(-1, $3));
/*%
$$ = mlhs_add_star(mlhs_new(), Qnil);
+ $$ = mlhs_add($$, $3);
%*/
}
;
@@ -1513,13 +1603,13 @@ mlhs_post : mlhs_item
}
;
-mlhs_node : variable
+mlhs_node : user_variable
{
- /*%%%*/
$$ = assignable($1, 0);
- /*%
- $$ = $1;
- %*/
+ }
+ | keyword_variable
+ {
+ $$ = assignable($1, 0);
}
| primary_value '[' opt_call_args rbracket
{
@@ -1587,12 +1677,22 @@ mlhs_node : variable
}
;
-lhs : variable
+lhs : user_variable
{
+ $$ = assignable($1, 0);
/*%%%*/
- if (!($$ = assignable($1, 0))) $$ = NEW_BEGIN(0);
+ if (!$$) $$ = NEW_BEGIN(0);
/*%
- $$ = dispatch1(var_field, $1);
+ $$ = dispatch1(var_field, $$);
+ %*/
+ }
+ | keyword_variable
+ {
+ $$ = assignable($1, 0);
+ /*%%%*/
+ if (!$$) $$ = NEW_BEGIN(0);
+ /*%
+ $$ = dispatch1(var_field, $$);
%*/
}
| primary_value '[' opt_call_args rbracket
@@ -1706,21 +1806,15 @@ fname : tIDENTIFIER
| tFID
| op
{
- /*%%%*/
- lex_state = EXPR_END;
- $$ = $1;
- /*%
- lex_state = EXPR_END;
+ lex_state = EXPR_ENDFN;
$$ = $1;
- %*/
}
| reswords
{
+ lex_state = EXPR_ENDFN;
/*%%%*/
- lex_state = EXPR_END;
$$ = $<id>1;
/*%
- lex_state = EXPR_END;
$$ = $1;
%*/
}
@@ -1890,7 +1984,12 @@ arg : lhs '=' arg
value_expr($6);
if (!$3) $3 = NEW_ZARRAY();
- args = arg_concat($6, $3);
+ if (nd_type($3) == NODE_BLOCK_PASS) {
+ args = NEW_ARGSCAT($3, $6);
+ }
+ else {
+ args = arg_concat($3, $6);
+ }
if ($5 == tOROP) {
$5 = 0;
}
@@ -2330,6 +2429,26 @@ opt_paren_args : none
opt_call_args : none
| call_args
+ | args ','
+ {
+ $$ = $1;
+ }
+ | args ',' assocs ','
+ {
+ /*%%%*/
+ $$ = arg_append($1, NEW_HASH($3));
+ /*%
+ $$ = arg_add_assocs($1, $3);
+ %*/
+ }
+ | assocs ','
+ {
+ /*%%%*/
+ $$ = NEW_LIST(NEW_HASH($1));
+ /*%
+ $$ = arg_add_assocs(arg_new(), $1);
+ %*/
+ }
;
call_args : command
@@ -2403,10 +2522,6 @@ opt_block_arg : ',' block_arg
{
$$ = $2;
}
- | ','
- {
- $$ = 0;
- }
| none
{
$$ = 0;
@@ -2813,8 +2928,8 @@ primary : literal
{
if (in_def || in_single)
yyerror("class definition in method body");
- /*%%%*/
local_push(0);
+ /*%%%*/
$<num>$ = ruby_sourceline;
/*%
%*/
@@ -2825,10 +2940,10 @@ primary : literal
/*%%%*/
$$ = NEW_CLASS($2, $5, $3);
nd_set_line($$, $<num>4);
- local_pop();
/*%
$$ = dispatch3(class, $2, $3, $5);
%*/
+ local_pop();
}
| k_class tLSHFT expr
{
@@ -2839,10 +2954,7 @@ primary : literal
{
$<num>$ = in_single;
in_single = 0;
- /*%%%*/
local_push(0);
- /*%
- %*/
}
bodystmt
k_end
@@ -2850,10 +2962,10 @@ primary : literal
/*%%%*/
$$ = NEW_SCLASS($3, $7);
fixpos($$, $3);
- local_pop();
/*%
$$ = dispatch2(sclass, $3, $7);
%*/
+ local_pop();
in_def = $<num>4;
in_single = $<num>6;
}
@@ -2861,8 +2973,8 @@ primary : literal
{
if (in_def || in_single)
yyerror("module definition in method body");
- /*%%%*/
local_push(0);
+ /*%%%*/
$<num>$ = ruby_sourceline;
/*%
%*/
@@ -2873,20 +2985,17 @@ primary : literal
/*%%%*/
$$ = NEW_MODULE($2, $4);
nd_set_line($$, $<num>3);
- local_pop();
/*%
$$ = dispatch2(module, $2, $4);
%*/
+ local_pop();
}
| k_def fname
{
$<id>$ = cur_mid;
cur_mid = $2;
in_def++;
- /*%%%*/
local_push(0);
- /*%
- %*/
}
f_arglist
bodystmt
@@ -2896,23 +3005,19 @@ primary : literal
NODE *body = remove_begin($5);
reduce_nodes(&body);
$$ = NEW_DEFN($2, $4, body, NOEX_PRIVATE);
- fixpos($$, $4);
- fixpos($$->nd_defn, $4);
- local_pop();
+ nd_set_line($$, $<num>1);
/*%
$$ = dispatch3(def, $2, $4, $5);
%*/
+ local_pop();
in_def--;
cur_mid = $<id>3;
}
| k_def singleton dot_or_colon {lex_state = EXPR_FNAME;} fname
{
in_single++;
- lex_state = EXPR_END; /* force for args */
- /*%%%*/
+ lex_state = EXPR_ENDFN; /* force for args */
local_push(0);
- /*%
- %*/
}
f_arglist
bodystmt
@@ -2922,12 +3027,11 @@ primary : literal
NODE *body = remove_begin($8);
reduce_nodes(&body);
$$ = NEW_DEFS($2, $5, $7, body);
- fixpos($$, $2);
- fixpos($$->nd_defn, $2);
- local_pop();
+ nd_set_line($$, $<num>1);
/*%
$$ = dispatch5(defs, $2, $3, $5, $7, $8);
%*/
+ local_pop();
in_single--;
}
| keyword_break
@@ -2978,89 +3082,71 @@ primary_value : primary
k_begin : keyword_begin
{
-#ifndef RIPPER
- if (RTEST(ruby_verbose)) token_info_push(parser, "begin");
-#endif
+ token_info_push("begin");
}
;
k_if : keyword_if
{
-#ifndef RIPPER
- if (RTEST(ruby_verbose)) token_info_push(parser, "if");
-#endif
+ token_info_push("if");
}
;
k_unless : keyword_unless
{
-#ifndef RIPPER
- if (RTEST(ruby_verbose)) token_info_push(parser, "unless");
-#endif
+ token_info_push("unless");
}
;
k_while : keyword_while
{
-#ifndef RIPPER
- if (RTEST(ruby_verbose)) token_info_push(parser, "while");
-#endif
+ token_info_push("while");
}
;
k_until : keyword_until
{
-#ifndef RIPPER
- if (RTEST(ruby_verbose)) token_info_push(parser, "until");
-#endif
+ token_info_push("until");
}
;
k_case : keyword_case
{
-#ifndef RIPPER
- if (RTEST(ruby_verbose)) token_info_push(parser, "case");
-#endif
+ token_info_push("case");
}
;
k_for : keyword_for
{
-#ifndef RIPPER
- if (RTEST(ruby_verbose)) token_info_push(parser, "for");
-#endif
+ token_info_push("for");
}
;
k_class : keyword_class
{
-#ifndef RIPPER
- if (RTEST(ruby_verbose)) token_info_push(parser, "class");
-#endif
+ token_info_push("class");
}
;
k_module : keyword_module
{
-#ifndef RIPPER
- if (RTEST(ruby_verbose)) token_info_push(parser, "module");
-#endif
+ token_info_push("module");
}
;
k_def : keyword_def
{
-#ifndef RIPPER
- if (RTEST(ruby_verbose)) token_info_push(parser, "def");
-#endif
+ token_info_push("def");
+ /*%%%*/
+ $<num>$ = ruby_sourceline;
+ /*%
+ %*/
}
;
k_end : keyword_end
{
-#ifndef RIPPER
- if (RTEST(ruby_verbose)) token_info_pop(parser, "end"); /* POP */
-#endif
+ token_info_pop("end");
}
;
@@ -3116,10 +3202,10 @@ for_var : lhs
f_marg : f_norm_arg
{
- /*%%%*/
$$ = assignable($1, 0);
+ /*%%%*/
/*%
- $$ = dispatch1(mlhs_paren, $1);
+ $$ = dispatch1(mlhs_paren, $$);
%*/
}
| tLPAREN f_margs rparen
@@ -3160,18 +3246,20 @@ f_margs : f_marg_list
}
| f_marg_list ',' tSTAR f_norm_arg
{
+ $$ = assignable($4, 0);
/*%%%*/
- $$ = NEW_MASGN($1, assignable($4, 0));
+ $$ = NEW_MASGN($1, $$);
/*%
- $$ = mlhs_add_star($1, $4);
+ $$ = mlhs_add_star($1, $$);
%*/
}
| f_marg_list ',' tSTAR f_norm_arg ',' f_marg_list
{
+ $$ = assignable($4, 0);
/*%%%*/
- $$ = NEW_MASGN($1, NEW_POSTARG(assignable($4, 0), $6));
+ $$ = NEW_MASGN($1, NEW_POSTARG($$, $6));
/*%
- $$ = mlhs_add_star($1, $4);
+ $$ = mlhs_add_star($1, $$);
%*/
}
| f_marg_list ',' tSTAR
@@ -3192,21 +3280,23 @@ f_margs : f_marg_list
}
| tSTAR f_norm_arg
{
+ $$ = assignable($2, 0);
/*%%%*/
- $$ = NEW_MASGN(0, assignable($2, 0));
+ $$ = NEW_MASGN(0, $$);
/*%
- $$ = mlhs_add_star(mlhs_new(), $2);
+ $$ = mlhs_add_star(mlhs_new(), $$);
%*/
}
| tSTAR f_norm_arg ',' f_marg_list
{
+ $$ = assignable($2, 0);
/*%%%*/
- $$ = NEW_MASGN(0, NEW_POSTARG(assignable($2, 0), $4));
+ $$ = NEW_MASGN(0, NEW_POSTARG($$, $4));
/*%
#if 0
TODO: Check me
#endif
- $$ = mlhs_add_star($2, $4);
+ $$ = mlhs_add_star($$, $4);
%*/
}
| tSTAR
@@ -3353,7 +3443,7 @@ block_param : f_arg ',' f_block_optarg ',' f_rest_arg opt_f_block_arg
opt_block_param : none
| block_param_def
{
- command_start = Qtrue;
+ command_start = TRUE;
}
;
@@ -3401,7 +3491,7 @@ bv_decls : bvar
/*%c%*/
/*%c
{
- $$ = rb_ary_new2($1);
+ $$ = rb_ary_new3(1, $1);
}
%*/
| bv_decls ',' bvar
@@ -3415,10 +3505,10 @@ bv_decls : bvar
bvar : tIDENTIFIER
{
+ new_bv(get_id($1));
/*%%%*/
- new_bv($1);
/*%
- $$ = $1;
+ $$ = get_value($1);
%*/
}
| f_bad_arg
@@ -3428,24 +3518,23 @@ bvar : tIDENTIFIER
;
lambda : {
- /*%%%*/
- dyna_push();
- /*%
- %*/
+ $<vars>$ = dyna_push();
+ }
+ {
$<num>$ = lpar_beg;
lpar_beg = ++paren_nest;
}
f_larglist
lambda_body
{
- lpar_beg = $<num>1;
+ lpar_beg = $<num>2;
/*%%%*/
- $$ = $2;
- $$->nd_body = NEW_SCOPE($2->nd_head, $3);
- dyna_pop();
+ $$ = $3;
+ $$->nd_body = NEW_SCOPE($3->nd_head, $4);
/*%
- $$ = dispatch2(lambda, $2, $3);
+ $$ = dispatch2(lambda, $3, $4);
%*/
+ dyna_pop($<vars>1);
}
;
@@ -3479,8 +3568,8 @@ lambda_body : tLAMBEG compstmt '}'
do_block : keyword_do_block
{
+ $<vars>1 = dyna_push();
/*%%%*/
- dyna_push();
$<num>$ = ruby_sourceline;
/*% %*/
}
@@ -3491,10 +3580,10 @@ do_block : keyword_do_block
/*%%%*/
$$ = NEW_ITER($3,$4);
nd_set_line($$, $<num>2);
- dyna_pop();
/*%
$$ = dispatch2(do_block, escape_Qundef($3), $4);
%*/
+ dyna_pop($<vars>1);
}
;
@@ -3577,8 +3666,8 @@ method_call : operation paren_args
$$ = NEW_CALL($1, rb_intern("call"), $3);
fixpos($$, $1);
/*%
- $$ = dispatch3(call, dispatch1(paren, $1),
- ripper_id2sym('.'), rb_intern("call"));
+ $$ = dispatch3(call, $1, ripper_id2sym('.'),
+ ripper_intern("call"));
$$ = method_optarg($$, $3);
%*/
}
@@ -3588,8 +3677,8 @@ method_call : operation paren_args
$$ = NEW_CALL($1, rb_intern("call"), $3);
fixpos($$, $1);
/*%
- $$ = dispatch3(call, dispatch1(paren, $1),
- ripper_id2sym('.'), rb_intern("call"));
+ $$ = dispatch3(call, $1, ripper_intern("::"),
+ ripper_intern("call"));
$$ = method_optarg($$, $3);
%*/
}
@@ -3625,8 +3714,8 @@ method_call : operation paren_args
brace_block : '{'
{
+ $<vars>1 = dyna_push();
/*%%%*/
- dyna_push();
$<num>$ = ruby_sourceline;
/*%
%*/
@@ -3637,17 +3726,15 @@ brace_block : '{'
/*%%%*/
$$ = NEW_ITER($3,$4);
nd_set_line($$, $<num>2);
- nd_set_line($$->nd_body, $<num>2);
- nd_set_line($$->nd_body->nd_body, $<num>2);
- dyna_pop();
/*%
$$ = dispatch2(brace_block, escape_Qundef($3), $4);
%*/
+ dyna_pop($<vars>1);
}
| keyword_do
{
+ $<vars>1 = dyna_push();
/*%%%*/
- dyna_push();
$<num>$ = ruby_sourceline;
/*%
%*/
@@ -3658,10 +3745,10 @@ brace_block : '{'
/*%%%*/
$$ = NEW_ITER($3,$4);
nd_set_line($$, $<num>2);
- dyna_pop();
/*%
$$ = dispatch2(do_block, escape_Qundef($3), $4);
%*/
+ dyna_pop($<vars>1);
}
;
@@ -3807,7 +3894,7 @@ xstring : tXSTRING_BEG xstring_contents tSTRING_END
nd_set_type(node, NODE_DXSTR);
break;
default:
- node = NEW_NODE(NODE_DXSTR, STR_NEW0(), 1, NEW_LIST(node));
+ node = NEW_NODE(NODE_DXSTR, Qnil, 1, NEW_LIST(node));
break;
}
}
@@ -3818,12 +3905,12 @@ xstring : tXSTRING_BEG xstring_contents tSTRING_END
}
;
-regexp : tREGEXP_BEG xstring_contents tREGEXP_END
+regexp : tREGEXP_BEG regexp_contents tREGEXP_END
{
/*%%%*/
int options = $3;
NODE *node = $2;
- NODE *list;
+ NODE *list, *prev;
if (!node) {
node = NEW_LIT(reg_compile(STR_NEW0(), options));
}
@@ -3845,12 +3932,35 @@ regexp : tREGEXP_BEG xstring_contents tREGEXP_END
nd_set_type(node, NODE_DREGX);
}
node->nd_cflag = options & RE_OPTION_MASK;
- reg_fragment_check(node->nd_lit, options);
- for (list = node->nd_next; list; list = list->nd_next) {
- if (nd_type(list->nd_head) == NODE_STR) {
- reg_fragment_check(list->nd_head->nd_lit, options);
+ if (!NIL_P(node->nd_lit)) reg_fragment_check(node->nd_lit, options);
+ for (list = (prev = node)->nd_next; list; list = list->nd_next) {
+ if (nd_type(list->nd_head) == NODE_STR) {
+ VALUE tail = list->nd_head->nd_lit;
+ if (reg_fragment_check(tail, options) && prev && !NIL_P(prev->nd_lit)) {
+ VALUE lit = prev == node ? prev->nd_lit : prev->nd_head->nd_lit;
+ if (!literal_concat0(parser, lit, tail)) {
+ node = 0;
+ break;
+ }
+ rb_str_resize(tail, 0);
+ prev->nd_next = list->nd_next;
+ rb_gc_force_recycle((VALUE)list->nd_head);
+ rb_gc_force_recycle((VALUE)list);
+ list = prev;
+ }
+ else {
+ prev = list;
+ }
}
+ else {
+ prev = 0;
+ }
}
+ if (!node->nd_next) {
+ VALUE src = node->nd_lit;
+ nd_set_type(node, NODE_LIT);
+ node->nd_lit = reg_compile(src, options);
+ }
break;
}
$$ = node;
@@ -3866,11 +3976,16 @@ words : tWORDS_BEG ' ' tSTRING_END
$$ = NEW_ZARRAY();
/*%
$$ = dispatch0(words_new);
+ $$ = dispatch1(array, $$);
%*/
}
| tWORDS_BEG word_list tSTRING_END
{
+ /*%%%*/
$$ = $2;
+ /*%
+ $$ = dispatch1(array, $2);
+ %*/
}
;
@@ -3916,11 +4031,16 @@ qwords : tQWORDS_BEG ' ' tSTRING_END
$$ = NEW_ZARRAY();
/*%
$$ = dispatch0(qwords_new);
+ $$ = dispatch1(array, $$);
%*/
}
| tQWORDS_BEG qword_list tSTRING_END
{
+ /*%%%*/
$$ = $2;
+ /*%
+ $$ = dispatch1(array, $2);
+ %*/
}
;
@@ -3978,6 +4098,43 @@ xstring_contents: /* none */
}
;
+regexp_contents: /* none */
+ {
+ /*%%%*/
+ $$ = 0;
+ /*%
+ $$ = dispatch0(regexp_new);
+ %*/
+ }
+ | regexp_contents string_content
+ {
+ /*%%%*/
+ NODE *head = $1, *tail = $2;
+ if (!head) {
+ $$ = tail;
+ }
+ else if (!tail) {
+ $$ = head;
+ }
+ else {
+ switch (nd_type(head)) {
+ case NODE_STR:
+ nd_set_type(head, NODE_DSTR);
+ break;
+ case NODE_DSTR:
+ break;
+ default:
+ head = list_append(NEW_DSTR(Qnil), head);
+ break;
+ }
+ $$ = list_append(head, tail);
+ }
+ /*%
+ $$ = dispatch2(regexp_add, $1, $2);
+ %*/
+ }
+ ;
+
string_content : tSTRING_CONTENT
| tSTRING_DVAR
{
@@ -3997,22 +4154,26 @@ string_content : tSTRING_CONTENT
}
| tSTRING_DBEG
{
+ $<val>1 = cond_stack;
+ $<val>$ = cmdarg_stack;
+ cond_stack = 0;
+ cmdarg_stack = 0;
+ }
+ {
$<node>$ = lex_strterm;
lex_strterm = 0;
lex_state = EXPR_BEG;
- COND_PUSH(0);
- CMDARG_PUSH(0);
}
compstmt '}'
{
- lex_strterm = $<node>2;
- COND_LEXPOP();
- CMDARG_LEXPOP();
+ cond_stack = $<val>1;
+ cmdarg_stack = $<val>2;
+ lex_strterm = $<node>3;
/*%%%*/
- if ($3) $3->flags &= ~NODE_FL_NEWLINE;
- $$ = new_evstr($3);
+ if ($4) $4->flags &= ~NODE_FL_NEWLINE;
+ $$ = new_evstr($4);
/*%
- $$ = dispatch1(string_embexpr, $3);
+ $$ = dispatch1(string_embexpr, $4);
%*/
}
;
@@ -4046,11 +4207,10 @@ string_dvar : tGVAR
symbol : tSYMBEG sym
{
- /*%%%*/
lex_state = EXPR_END;
+ /*%%%*/
$$ = $2;
/*%
- lex_state = EXPR_END;
$$ = dispatch1(symbol, $2);
%*/
}
@@ -4064,8 +4224,8 @@ sym : fname
dsym : tSYMBEG xstring_contents tSTRING_END
{
- /*%%%*/
lex_state = EXPR_END;
+ /*%%%*/
if (!($$ = $2)) {
$$ = NEW_LIT(ID2SYM(rb_intern("")));
}
@@ -4082,12 +4242,11 @@ dsym : tSYMBEG xstring_contents tSTRING_END
nd_set_type($$, NODE_LIT);
break;
default:
- $$ = NEW_NODE(NODE_DSYM, STR_NEW0(), 1, NEW_LIST($$));
+ $$ = NEW_NODE(NODE_DSYM, Qnil, 1, NEW_LIST($$));
break;
}
}
/*%
- lex_state = EXPR_END;
$$ = dispatch1(dyna_symbol, $2);
%*/
}
@@ -4113,12 +4272,14 @@ numeric : tINTEGER
}
;
-variable : tIDENTIFIER
+user_variable : tIDENTIFIER
| tIVAR
| tGVAR
| tCONSTANT
| tCVAR
- | keyword_nil {ifndef_ripper($$ = keyword_nil);}
+ ;
+
+keyword_variable: keyword_nil {ifndef_ripper($$ = keyword_nil);}
| keyword_self {ifndef_ripper($$ = keyword_self);}
| keyword_true {ifndef_ripper($$ = keyword_true);}
| keyword_false {ifndef_ripper($$ = keyword_false);}
@@ -4127,7 +4288,20 @@ variable : tIDENTIFIER
| keyword__ENCODING__ {ifndef_ripper($$ = keyword__ENCODING__);}
;
-var_ref : variable
+var_ref : user_variable
+ {
+ /*%%%*/
+ if (!($$ = gettable($1))) $$ = NEW_BEGIN(0);
+ /*%
+ if (id_is_var(get_id($1))) {
+ $$ = dispatch1(var_ref, $1);
+ }
+ else {
+ $$ = dispatch1(vcall, $1);
+ }
+ %*/
+ }
+ | keyword_variable
{
/*%%%*/
if (!($$ = gettable($1))) $$ = NEW_BEGIN(0);
@@ -4137,12 +4311,20 @@ var_ref : variable
}
;
-var_lhs : variable
+var_lhs : user_variable
{
- /*%%%*/
$$ = assignable($1, 0);
+ /*%%%*/
/*%
- $$ = dispatch1(var_field, $1);
+ $$ = dispatch1(var_field, $$);
+ %*/
+ }
+ | keyword_variable
+ {
+ $$ = assignable($1, 0);
+ /*%%%*/
+ /*%
+ $$ = dispatch1(var_field, $$);
%*/
}
;
@@ -4183,13 +4365,11 @@ f_arglist : '(' f_args rparen
{
/*%%%*/
$$ = $2;
- lex_state = EXPR_BEG;
- command_start = Qtrue;
/*%
$$ = dispatch1(paren, $2);
- lex_state = EXPR_BEG;
- command_start = Qtrue;
%*/
+ lex_state = EXPR_BEG;
+ command_start = TRUE;
}
| f_args term
{
@@ -4360,29 +4540,25 @@ f_bad_arg : tCONSTANT
f_norm_arg : f_bad_arg
| tIDENTIFIER
{
- /*%%%*/
- if (!is_local_id($1))
- yyerror("formal argument must be local variable");
- shadowing_lvar($1);
- /*%
- %*/
+ formal_argument(get_id($1));
$$ = $1;
}
;
f_arg_item : f_norm_arg
{
+ arg_var(get_id($1));
/*%%%*/
- arg_var($1);
$$ = NEW_ARGS_AUX($1, 1);
/*%
+ $$ = get_value($1);
%*/
}
| tLPAREN f_margs rparen
{
- /*%%%*/
ID tid = internal_id();
arg_var(tid);
+ /*%%%*/
if (dyna_in_block()) {
$2->nd_value = NEW_DVAR(tid);
}
@@ -4419,28 +4595,24 @@ f_arg : f_arg_item
f_opt : tIDENTIFIER '=' arg_value
{
+ arg_var(formal_argument(get_id($1)));
+ $$ = assignable($1, $3);
/*%%%*/
- if (!is_local_id($1))
- yyerror("formal argument must be local variable");
- shadowing_lvar($1);
- arg_var($1);
- $$ = NEW_OPT_ARG(0, assignable($1, $3));
+ $$ = NEW_OPT_ARG(0, $$);
/*%
- $$ = rb_assoc_new($1, $3);
+ $$ = rb_assoc_new($$, $3);
%*/
}
;
f_block_opt : tIDENTIFIER '=' primary_value
{
+ arg_var(formal_argument(get_id($1)));
+ $$ = assignable($1, $3);
/*%%%*/
- if (!is_local_id($1))
- yyerror("formal argument must be local variable");
- shadowing_lvar($1);
- arg_var($1);
- $$ = NEW_OPT_ARG(0, assignable($1, $3));
+ $$ = NEW_OPT_ARG(0, $$);
/*%
- $$ = rb_assoc_new($1, $3);
+ $$ = rb_assoc_new($$, $3);
%*/
}
;
@@ -4502,8 +4674,9 @@ f_rest_arg : restarg_mark tIDENTIFIER
/*%%%*/
if (!is_local_id($2))
yyerror("rest argument must be local variable");
- shadowing_lvar($2);
- arg_var($2);
+ /*% %*/
+ arg_var(shadowing_lvar(get_id($2)));
+ /*%%%*/
$$ = $2;
/*%
$$ = dispatch1(rest_param, $2);
@@ -4531,8 +4704,9 @@ f_block_arg : blkarg_mark tIDENTIFIER
yyerror("block argument must be local variable");
else if (!dyna_in_block() && local_id($2))
yyerror("duplicated block argument name");
- shadowing_lvar($2);
- arg_var($2);
+ /*% %*/
+ arg_var(shadowing_lvar(get_id($2)));
+ /*%%%*/
$$ = $2;
/*%
$$ = dispatch1(blockarg, $2);
@@ -4717,57 +4891,81 @@ static int parser_here_document(struct parser_params*,NODE*);
# define nextc() parser_nextc(parser)
-# define pushback(c) parser_pushback(parser, c)
+# define pushback(c) parser_pushback(parser, (c))
# define newtok() parser_newtok(parser)
-# define tokspace(n) parser_tokspace(parser, n)
-# define tokadd(c) parser_tokadd(parser, c)
-# define tok_hex(numlen) parser_tok_hex(parser, numlen)
-# define read_escape(flags,e) parser_read_escape(parser, flags, e)
-# define tokadd_escape(e) parser_tokadd_escape(parser, e)
+# define tokspace(n) parser_tokspace(parser, (n))
+# define tokadd(c) parser_tokadd(parser, (c))
+# define tok_hex(numlen) parser_tok_hex(parser, (numlen))
+# define read_escape(flags,e) parser_read_escape(parser, (flags), (e))
+# define tokadd_escape(e) parser_tokadd_escape(parser, (e))
# define regx_options() parser_regx_options(parser)
-# define tokadd_string(f,t,p,n,e) parser_tokadd_string(parser,f,t,p,n,e)
-# define parse_string(n) parser_parse_string(parser,n)
-# define tokaddmbc(c, enc) parser_tokaddmbc(parser, c, enc)
-# define here_document(n) parser_here_document(parser,n)
+# define tokadd_string(f,t,p,n,e) parser_tokadd_string(parser,(f),(t),(p),(n),(e))
+# define parse_string(n) parser_parse_string(parser,(n))
+# define tokaddmbc(c, enc) parser_tokaddmbc(parser, (c), (enc))
+# define here_document(n) parser_here_document(parser,(n))
# define heredoc_identifier() parser_heredoc_identifier(parser)
-# define heredoc_restore(n) parser_heredoc_restore(parser,n)
-# define whole_match_p(e,l,i) parser_whole_match_p(parser,e,l,i)
-
-#ifdef RIPPER
-/* FIXME */
-# define local_id(x) 1
-# define dyna_in_block() 1
-#endif /* RIPPER */
+# define heredoc_restore(n) parser_heredoc_restore(parser,(n))
+# define whole_match_p(e,l,i) parser_whole_match_p(parser,(e),(l),(i))
#ifndef RIPPER
-# define set_yylval_str(x) yylval.node = NEW_STR(x)
-# define set_yylval_num(x) yylval.num = x
-# define set_yylval_id(x) yylval.id = x
-# define set_yylval_literal(x) yylval.node = NEW_LIT(x)
-# define set_yylval_node(x) yylval.node = x
-# define yylval_id() yylval.id
+# define set_yylval_str(x) (yylval.node = NEW_STR(x))
+# define set_yylval_num(x) (yylval.num = (x))
+# define set_yylval_id(x) (yylval.id = (x))
+# define set_yylval_name(x) (yylval.id = (x))
+# define set_yylval_literal(x) (yylval.node = NEW_LIT(x))
+# define set_yylval_node(x) (yylval.node = (x))
+# define yylval_id() (yylval.id)
#else
+static inline VALUE
+ripper_yylval_id(ID x)
+{
+ return (VALUE)NEW_LASGN(x, ID2SYM(x));
+}
# define set_yylval_str(x) (void)(x)
# define set_yylval_num(x) (void)(x)
-# define set_yylval_id(x) (void)(x)
+# define set_yylval_id(x) (void)(x)
+# define set_yylval_name(x) (void)(yylval.val = ripper_yylval_id(x))
# define set_yylval_literal(x) (void)(x)
# define set_yylval_node(x) (void)(x)
-# define yylval_id() SYM2ID(yylval.val)
+# define yylval_id() yylval.id
#endif
-#ifdef RIPPER
-#define ripper_flush(p) (p->tokp = p->parser_lex_p)
+#ifndef RIPPER
+#define ripper_flush(p) (void)(p)
+#else
+#define ripper_flush(p) ((p)->tokp = (p)->parser_lex_p)
-static void
-ripper_dispatch_scan_event(struct parser_params *parser, int t)
+#define yylval_rval (*(RB_TYPE_P(yylval.val, T_NODE) ? &yylval.node->nd_rval : &yylval.val))
+
+static int
+ripper_has_scan_event(struct parser_params *parser)
{
- VALUE str;
if (lex_p < parser->tokp) rb_raise(rb_eRuntimeError, "lex_p < tokp");
- if (lex_p == parser->tokp) return;
- str = STR_NEW(parser->tokp, lex_p - parser->tokp);
- yylval.val = ripper_dispatch1(parser, ripper_token2eventid(t), str);
+ return lex_p > parser->tokp;
+}
+
+static VALUE
+ripper_scan_event_val(struct parser_params *parser, int t)
+{
+ VALUE str = STR_NEW(parser->tokp, lex_p - parser->tokp);
+ VALUE rval = ripper_dispatch1(parser, ripper_token2eventid(t), str);
ripper_flush(parser);
+ return rval;
+}
+
+static void
+ripper_dispatch_scan_event(struct parser_params *parser, int t)
+{
+ if (!ripper_has_scan_event(parser)) return;
+ yylval_rval = ripper_scan_event_val(parser, t);
+}
+
+static void
+ripper_dispatch_ignored_scan_event(struct parser_params *parser, int t)
+{
+ if (!ripper_has_scan_event(parser)) return;
+ (void)ripper_scan_event_val(parser, t);
}
static void
@@ -4778,7 +4976,7 @@ ripper_dispatch_delayed_token(struct parser_params *parser, int t)
ruby_sourceline = parser->delayed_line;
parser->tokp = lex_pbeg + parser->delayed_col;
- yylval.val = ripper_dispatch1(parser, ripper_token2eventid(t), parser->delayed);
+ yylval_rval = ripper_dispatch1(parser, ripper_token2eventid(t), parser->delayed);
parser->delayed = Qnil;
ruby_sourceline = saved_line;
parser->tokp = saved_tokp;
@@ -4803,7 +5001,7 @@ ripper_dispatch_delayed_token(struct parser_params *parser, int t)
#define parser_encoding_name() (parser->enc->name)
#define parser_mbclen() mbclen((lex_p-1),lex_pend,parser->enc)
#define parser_precise_mbclen() rb_enc_precise_mbclen((lex_p-1),lex_pend,parser->enc)
-#define is_identchar(p,e,enc) (rb_enc_isalnum(*p,enc) || (*p) == '_' || !ISASCII(*p))
+#define is_identchar(p,e,enc) (rb_enc_isalnum(*(p),(enc)) || (*(p)) == '_' || !ISASCII(*(p)))
#define parser_is_identchar() (!parser->eofp && is_identchar((lex_p-1),lex_pend,parser->enc))
#define parser_isascii() ISASCII(*(lex_p-1))
@@ -4835,12 +5033,13 @@ token_info_has_nonspaces(struct parser_params *parser, const char *token)
return 0;
}
+#undef token_info_push
static void
token_info_push(struct parser_params *parser, const char *token)
{
token_info *ptinfo;
- if (compile_for_eval) return;
+ if (!parser->parser_token_info_enabled) return;
ptinfo = ALLOC(token_info);
ptinfo->token = token;
ptinfo->linenum = ruby_sourceline;
@@ -4851,6 +5050,7 @@ token_info_push(struct parser_params *parser, const char *token)
parser->parser_token_info = ptinfo;
}
+#undef token_info_pop
static void
token_info_pop(struct parser_params *parser, const char *token)
{
@@ -4869,9 +5069,11 @@ token_info_pop(struct parser_params *parser, const char *token)
if (token_info_has_nonspaces(parser, token) || ptinfo->nonspc) { /* SKIP */
goto finish;
}
- rb_compile_warning(ruby_sourcefile, linenum,
- "mismatched indentations at '%s' with '%s' at %d",
- token, ptinfo->token, ptinfo->linenum);
+ if (parser->parser_token_info_enabled) {
+ rb_compile_warn(ruby_sourcefile, linenum,
+ "mismatched indentations at '%s' with '%s' at %d",
+ token, ptinfo->token, ptinfo->linenum);
+ }
finish:
xfree(ptinfo);
@@ -4885,7 +5087,8 @@ parser_yyerror(struct parser_params *parser, const char *msg)
const int max_line_margin = 30;
const char *p, *pe;
char *buf;
- int len, i;
+ long len;
+ int i;
compile_error(PARSER_ARG "%s", msg);
p = lex_p;
@@ -4922,7 +5125,7 @@ parser_yyerror(struct parser_params *parser, const char *msg)
buf[len] = '\0';
rb_compile_error_append("%s%s%s", pre, buf, post);
- i = lex_p - p;
+ i = (int)(lex_p - p);
p2 = buf; pe = buf + len;
while (p2 < pe) {
@@ -4942,8 +5145,6 @@ parser_yyerror(struct parser_params *parser, const char *msg)
static void parser_prepare(struct parser_params *parser);
#ifndef RIPPER
-VALUE ruby_suppress_tracing(VALUE (*func)(VALUE, int), VALUE arg, int always);
-
static VALUE
debug_lines(const char *f)
{
@@ -4952,7 +5153,7 @@ debug_lines(const char *f)
if (rb_const_defined_at(rb_cObject, script_lines)) {
VALUE hash = rb_const_get_at(rb_cObject, script_lines);
if (TYPE(hash) == T_HASH) {
- VALUE fname = rb_str_new2(f);
+ VALUE fname = rb_external_str_new_with_enc(f, strlen(f), rb_filesystem_encoding());
VALUE lines = rb_ary_new();
rb_hash_aset(hash, fname, lines);
return lines;
@@ -4964,10 +5165,9 @@ debug_lines(const char *f)
static VALUE
coverage(const char *f, int n)
{
- extern VALUE rb_get_coverages(void);
VALUE coverages = rb_get_coverages();
if (RTEST(coverages) && RBASIC(coverages)->klass == 0) {
- VALUE fname = rb_str_new2(f);
+ VALUE fname = rb_external_str_new_with_enc(f, strlen(f), rb_filesystem_encoding());
VALUE lines = rb_ary_new2(n);
int i;
RBASIC(lines)->klass = 0;
@@ -4982,9 +5182,7 @@ coverage(const char *f, int n)
static int
e_option_supplied(struct parser_params *parser)
{
- if (strcmp(ruby_sourcefile, "-e") == 0)
- return Qtrue;
- return Qfalse;
+ return strcmp(ruby_sourcefile, "-e") == 0;
}
static VALUE
@@ -5011,6 +5209,9 @@ yycompile0(VALUE arg, int tracing)
parser_prepare(parser);
deferred_nodes = 0;
+#ifndef RIPPER
+ parser->parser_token_info_enabled = !compile_for_eval && RTEST(ruby_verbose);
+#endif
n = yyparse((void*)parser);
ruby_debug_lines = 0;
ruby_coverage = 0;
@@ -5037,14 +5238,25 @@ yycompile(struct parser_params *parser, const char *f, int line)
{
ruby_sourcefile = ruby_strdup(f);
ruby_sourceline = line - 1;
- return (NODE *)ruby_suppress_tracing(yycompile0, (VALUE)parser, Qtrue);
+ return (NODE *)ruby_suppress_tracing(yycompile0, (VALUE)parser, TRUE);
}
#endif /* !RIPPER */
+static rb_encoding *
+must_be_ascii_compatible(VALUE s)
+{
+ rb_encoding *enc = rb_enc_get(s);
+ if (!rb_enc_asciicompat(enc)) {
+ rb_raise(rb_eArgError, "invalid source encoding");
+ }
+ return enc;
+}
+
static VALUE
lex_get_str(struct parser_params *parser, VALUE s)
{
char *beg, *end, *pend;
+ rb_encoding *enc = must_be_ascii_compatible(s);
beg = RSTRING_PTR(s);
if (lex_gets_ptr) {
@@ -5057,41 +5269,40 @@ lex_get_str(struct parser_params *parser, VALUE s)
if (*end++ == '\n') break;
}
lex_gets_ptr = end - RSTRING_PTR(s);
- return rb_enc_str_new(beg, end - beg, rb_enc_get(s));
+ return rb_enc_str_new(beg, end - beg, enc);
}
static VALUE
lex_getline(struct parser_params *parser)
{
VALUE line = (*parser->parser_lex_gets)(parser, parser->parser_lex_input);
+ if (NIL_P(line)) return line;
+ must_be_ascii_compatible(line);
#ifndef RIPPER
- if (ruby_debug_lines && !NIL_P(line)) {
+ if (ruby_debug_lines) {
+ rb_enc_associate(line, parser->enc);
rb_ary_push(ruby_debug_lines, line);
}
- if (ruby_coverage && !NIL_P(line)) {
+ if (ruby_coverage) {
rb_ary_push(ruby_coverage, Qnil);
}
#endif
return line;
}
-#ifndef RIPPER
-NODE*
-rb_compile_string(const char *f, VALUE s, int line)
-{
- VALUE volatile vparser = rb_parser_new();
-
- return rb_parser_compile_string(vparser, f, s, line);
-}
+#ifdef RIPPER
+static rb_data_type_t parser_data_type;
+#else
+static const rb_data_type_t parser_data_type;
-NODE*
-rb_parser_compile_string(volatile VALUE vparser, const char *f, VALUE s, int line)
+static NODE*
+parser_compile_string(volatile VALUE vparser, const char *f, VALUE s, int line)
{
struct parser_params *parser;
NODE *node;
volatile VALUE tmp;
- Data_Get_Struct(vparser, struct parser_params, parser);
+ TypedData_Get_Struct(vparser, struct parser_params, &parser_data_type, parser);
lex_gets = lex_get_str;
lex_gets_ptr = 0;
lex_input = s;
@@ -5105,15 +5316,31 @@ rb_parser_compile_string(volatile VALUE vparser, const char *f, VALUE s, int lin
}
NODE*
+rb_compile_string(const char *f, VALUE s, int line)
+{
+ must_be_ascii_compatible(s);
+ return parser_compile_string(rb_parser_new(), f, s, line);
+}
+
+NODE*
+rb_parser_compile_string(volatile VALUE vparser, const char *f, VALUE s, int line)
+{
+ must_be_ascii_compatible(s);
+ return parser_compile_string(vparser, f, s, line);
+}
+
+NODE*
rb_compile_cstr(const char *f, const char *s, int len, int line)
{
- return rb_compile_string(f, rb_str_new(s, len), line);
+ VALUE str = rb_str_new(s, len);
+ return parser_compile_string(rb_parser_new(), f, str, line);
}
NODE*
rb_parser_compile_cstr(volatile VALUE vparser, const char *f, const char *s, int len, int line)
{
- return rb_parser_compile_string(vparser, f, rb_str_new(s, len), line);
+ VALUE str = rb_str_new(s, len);
+ return parser_compile_string(vparser, f, str, line);
}
static VALUE
@@ -5137,7 +5364,7 @@ rb_parser_compile_file(volatile VALUE vparser, const char *f, VALUE file, int st
volatile VALUE tmp;
NODE *node;
- Data_Get_Struct(vparser, struct parser_params, parser);
+ TypedData_Get_Struct(vparser, struct parser_params, &parser_data_type, parser);
lex_gets = lex_io_gets;
lex_input = file;
lex_pbeg = lex_p = lex_pend = 0;
@@ -5185,8 +5412,10 @@ parser_str_new(const char *p, long n, rb_encoding *enc, int func, rb_encoding *e
return str;
}
-#define lex_goto_eol(parser) (parser->parser_lex_p = parser->parser_lex_pend)
-#define peek(c) (lex_p < lex_pend && (c) == *lex_p)
+#define lex_goto_eol(parser) ((parser)->parser_lex_p = (parser)->parser_lex_pend)
+#define lex_eol_p() (lex_p >= lex_pend)
+#define peek(c) peek_n((c), 0)
+#define peek_n(c,n) (lex_p+(n) < lex_pend && (c) == (unsigned char)lex_p[n])
static inline int
parser_nextc(struct parser_params *parser)
@@ -5211,10 +5440,11 @@ parser_nextc(struct parser_params *parser)
if (parser->tokp < lex_pend) {
if (NIL_P(parser->delayed)) {
parser->delayed = rb_str_buf_new(1024);
+ rb_enc_associate(parser->delayed, parser->enc);
rb_str_buf_cat(parser->delayed,
parser->tokp, lex_pend - parser->tokp);
parser->delayed_line = ruby_sourceline;
- parser->delayed_col = parser->tokp - lex_pbeg;
+ parser->delayed_col = (int)(parser->tokp - lex_pbeg);
}
else {
rb_str_buf_cat(parser->delayed,
@@ -5230,9 +5460,7 @@ parser_nextc(struct parser_params *parser)
parser->line_count++;
lex_pbeg = lex_p = RSTRING_PTR(v);
lex_pend = lex_p + RSTRING_LEN(v);
-#ifdef RIPPER
ripper_flush(parser);
-#endif
lex_lastline = v;
}
}
@@ -5346,18 +5574,13 @@ parser_tokadd_utf8(struct parser_params *parser, rb_encoding **encp,
}
lex_p += numlen;
if (regexp_literal) {
- tokcopy(numlen);
+ tokcopy((int)numlen);
}
else if (codepoint >= 0x80) {
*encp = UTF8_ENC();
if (string_literal) tokaddmbc(codepoint, *encp);
}
else if (string_literal) {
- if (codepoint == 0 && symbol_literal) {
- yyerror("symbol cannot contain '\\u{0}'");
- return 0;
- }
-
tokadd(codepoint);
}
} while (string_literal && (peek(' ') || peek('\t')));
@@ -5385,11 +5608,6 @@ parser_tokadd_utf8(struct parser_params *parser, rb_encoding **encp,
if (string_literal) tokaddmbc(codepoint, *encp);
}
else if (string_literal) {
- if (codepoint == 0 && symbol_literal) {
- yyerror("symbol cannot contain '\\u0000'");
- return 0;
- }
-
tokadd(codepoint);
}
}
@@ -5434,14 +5652,12 @@ parser_read_escape(struct parser_params *parser, int flags,
case '0': case '1': case '2': case '3': /* octal constant */
case '4': case '5': case '6': case '7':
- if (flags & (ESCAPE_CONTROL|ESCAPE_META)) goto eof;
pushback(c);
c = scan_oct(lex_p, 3, &numlen);
lex_p += numlen;
return c;
case 'x': /* hex constant */
- if (flags & (ESCAPE_CONTROL|ESCAPE_META)) goto eof;
c = tok_hex(&numlen);
if (numlen == 0) return 0;
return c;
@@ -5459,6 +5675,7 @@ parser_read_escape(struct parser_params *parser, int flags,
goto eof;
}
if ((c = nextc()) == '\\') {
+ if (peek('u')) goto eof;
return read_escape(flags|ESCAPE_META, encp) | 0x80;
}
else if (c == -1 || !ISASCII(c)) goto eof;
@@ -5474,6 +5691,7 @@ parser_read_escape(struct parser_params *parser, int flags,
case 'c':
if (flags & ESCAPE_CONTROL) goto eof;
if ((c = nextc())== '\\') {
+ if (peek('u')) goto eof;
c = read_escape(flags|ESCAPE_CONTROL, encp);
}
else if (c == '?')
@@ -5503,6 +5721,7 @@ parser_tokadd_escape(struct parser_params *parser, rb_encoding **encp)
{
int c;
int flags = 0;
+ size_t numlen;
first:
switch (c = nextc()) {
@@ -5511,27 +5730,19 @@ parser_tokadd_escape(struct parser_params *parser, rb_encoding **encp)
case '0': case '1': case '2': case '3': /* octal constant */
case '4': case '5': case '6': case '7':
- if (flags & (ESCAPE_CONTROL|ESCAPE_META)) goto eof;
{
- size_t numlen;
- int oct;
-
- oct = scan_oct(--lex_p, 3, &numlen);
+ ruby_scan_oct(--lex_p, 3, &numlen);
if (numlen == 0) goto eof;
lex_p += numlen;
- tokcopy(numlen + 1);
+ tokcopy((int)numlen + 1);
}
return 0;
case 'x': /* hex constant */
- if (flags & (ESCAPE_CONTROL|ESCAPE_META)) goto eof;
{
- size_t numlen;
- int hex;
-
- hex = tok_hex(&numlen);
- if (numlen == 0) goto eof;
- tokcopy(numlen + 2);
+ tok_hex(&numlen);
+ if (numlen == 0) return -1;
+ tokcopy((int)numlen + 2);
}
return 0;
@@ -5578,12 +5789,11 @@ parser_tokadd_escape(struct parser_params *parser, rb_encoding **encp)
return 0;
}
-extern int rb_char_to_option_kcode(int c, int *option, int *kcode);
-
static int
parser_regx_options(struct parser_params *parser)
{
int kcode = 0;
+ int kopt = 0;
int options = 0;
int c, opt, kc;
@@ -5593,13 +5803,19 @@ parser_regx_options(struct parser_params *parser)
options |= RE_OPTION_ONCE;
}
else if (rb_char_to_option_kcode(c, &opt, &kc)) {
- options |= opt;
- if (kc >= 0) kcode = c;
+ if (kc >= 0) {
+ if (kc != rb_ascii8bit_encindex()) kcode = c;
+ kopt = opt;
+ }
+ else {
+ options |= opt;
+ }
}
else {
tokadd(c);
}
}
+ options |= kopt;
pushback(c);
if (toklen()) {
tokfix();
@@ -5632,7 +5848,7 @@ parser_tokadd_mbchar(struct parser_params *parser, int c)
return c;
}
-#define tokadd_mbchar(c) parser_tokadd_mbchar(parser, c)
+#define tokadd_mbchar(c) parser_tokadd_mbchar(parser, (c))
static int
parser_tokadd_string(struct parser_params *parser,
@@ -5646,7 +5862,7 @@ parser_tokadd_string(struct parser_params *parser,
static const char mixed_msg[] = "%s mixed within %s source";
#define mixed_error(enc1, enc2) if (!errbuf) { \
- int len = sizeof(mixed_msg) - 4; \
+ size_t len = sizeof(mixed_msg) - 4; \
len += strlen(rb_enc_name(enc1)); \
len += strlen(rb_enc_name(enc2)); \
errbuf = ALLOCA_N(char, len); \
@@ -5657,8 +5873,8 @@ parser_tokadd_string(struct parser_params *parser,
}
#define mixed_escape(beg, enc1, enc2) do { \
const char *pos = lex_p; \
- lex_p = beg; \
- mixed_error(enc1, enc2); \
+ lex_p = (beg); \
+ mixed_error((enc1), (enc2)); \
lex_p = pos; \
} while (0)
@@ -5708,6 +5924,11 @@ parser_tokadd_string(struct parser_params *parser,
continue;
default:
+ if (c == -1) return -1;
+ if (!ISASCII(c)) {
+ tokadd('\\');
+ goto non_ascii;
+ }
if (func & STR_FUNC_REGEXP) {
pushback(c);
if ((c = tokadd_escape(&enc)) < 0)
@@ -5727,10 +5948,13 @@ parser_tokadd_string(struct parser_params *parser,
}
else if (c != term && !(paren && c == paren)) {
tokadd('\\');
+ pushback(c);
+ continue;
}
}
}
else if (!parser_isascii()) {
+ non_ascii:
has_nonascii = 1;
if (enc != *encp) {
mixed_error(enc, *encp);
@@ -5743,11 +5967,6 @@ parser_tokadd_string(struct parser_params *parser,
pushback(c);
break;
}
- if (!c && (func & STR_FUNC_SYMBOL)) {
- func &= ~STR_FUNC_SYMBOL;
- compile_error(PARSER_ARG "symbol cannot contain '\\0'");
- continue;
- }
if (c & 0x80) {
has_nonascii = 1;
if (enc != *encp) {
@@ -5767,7 +5986,7 @@ parser_tokadd_string(struct parser_params *parser,
static int
parser_parse_string(struct parser_params *parser, NODE *quote)
{
- int func = quote->nd_func;
+ int func = (int)quote->nd_func;
int term = nd_term(quote);
int paren = nd_paren(quote);
int c, space = 0;
@@ -5822,13 +6041,26 @@ parser_parse_string(struct parser_params *parser, NODE *quote)
tokfix();
set_yylval_str(STR_NEW3(tok(), toklen(), enc, func));
+
+#ifdef RIPPER
+ if (!NIL_P(parser->delayed)) {
+ ptrdiff_t len = lex_p - parser->tokp;
+ if (len > 0) {
+ rb_enc_str_buf_cat(parser->delayed, parser->tokp, len, enc);
+ }
+ ripper_dispatch_delayed_token(parser, tSTRING_CONTENT);
+ parser->tokp = lex_p;
+ }
+#endif
+
return tSTRING_CONTENT;
}
static int
parser_heredoc_identifier(struct parser_params *parser)
{
- int c = nextc(), term, func = 0, len;
+ int c = nextc(), term, func = 0;
+ long len;
if (c == '-') {
c = nextc();
@@ -5883,9 +6115,7 @@ parser_heredoc_identifier(struct parser_params *parser)
len, /* nd_nth */
lex_lastline); /* nd_orig */
nd_set_line(lex_strterm, ruby_sourceline);
-#ifdef RIPPER
ripper_flush(parser);
-#endif
return term == '`' ? tXSTRING_BEG : tSTRING_BEG;
}
@@ -5894,12 +6124,6 @@ parser_heredoc_restore(struct parser_params *parser, NODE *here)
{
VALUE line;
-#ifdef RIPPER
- if (!NIL_P(parser->delayed))
- ripper_dispatch_delayed_token(parser, tSTRING_CONTENT);
- lex_goto_eol(parser);
- ripper_dispatch_scan_event(parser, tHEREDOC_END);
-#endif
line = here->nd_orig;
lex_lastline = line;
lex_pbeg = RSTRING_PTR(line);
@@ -5909,27 +6133,39 @@ parser_heredoc_restore(struct parser_params *parser, NODE *here)
ruby_sourceline = nd_line(here);
dispose_string(here->nd_lit);
rb_gc_force_recycle((VALUE)here);
-#ifdef RIPPER
ripper_flush(parser);
-#endif
}
static int
parser_whole_match_p(struct parser_params *parser,
- const char *eos, int len, int indent)
+ const char *eos, long len, int indent)
{
const char *p = lex_pbeg;
- int n;
+ long n;
if (indent) {
while (*p && ISSPACE(*p)) p++;
}
- n= lex_pend - (p + len);
- if (n < 0 || (n > 0 && p[len] != '\n' && p[len] != '\r')) return Qfalse;
- if (strncmp(eos, p, len) == 0) return Qtrue;
- return Qfalse;
+ n = lex_pend - (p + len);
+ if (n < 0 || (n > 0 && p[len] != '\n' && p[len] != '\r')) return FALSE;
+ return strncmp(eos, p, len) == 0;
}
+#ifdef RIPPER
+static void
+ripper_dispatch_heredoc_end(struct parser_params *parser)
+{
+ if (!NIL_P(parser->delayed))
+ ripper_dispatch_delayed_token(parser, tSTRING_CONTENT);
+ lex_goto_eol(parser);
+ ripper_dispatch_ignored_scan_event(parser, tHEREDOC_END);
+}
+
+#define dispatch_heredoc_end() ripper_dispatch_heredoc_end(parser)
+#else
+#define dispatch_heredoc_end() ((void)0)
+#endif
+
static int
parser_here_document(struct parser_params *parser, NODE *here)
{
@@ -5937,6 +6173,7 @@ parser_here_document(struct parser_params *parser, NODE *here)
const char *eos, *p, *pend;
long len;
VALUE str = 0;
+ rb_encoding *enc = parser->enc;
eos = RSTRING_PTR(here->nd_lit);
len = RSTRING_LEN(here->nd_lit) - 1;
@@ -5945,12 +6182,27 @@ parser_here_document(struct parser_params *parser, NODE *here)
if ((c = nextc()) == -1) {
error:
compile_error(PARSER_ARG "can't find string \"%s\" anywhere before EOF", eos);
+#ifdef RIPPER
+ if (NIL_P(parser->delayed)) {
+ ripper_dispatch_scan_event(parser, tSTRING_CONTENT);
+ }
+ else {
+ if (str ||
+ ((len = lex_p - parser->tokp) > 0 &&
+ (str = STR_NEW3(parser->tokp, len, enc, func), 1))) {
+ rb_str_append(parser->delayed, str);
+ }
+ ripper_dispatch_delayed_token(parser, tSTRING_CONTENT);
+ }
+ lex_goto_eol(parser);
+#endif
restore:
heredoc_restore(lex_strterm);
lex_strterm = 0;
return 0;
}
if (was_bol() && whole_match_p(eos, len, indent)) {
+ dispatch_heredoc_end();
heredoc_restore(lex_strterm);
return tSTRING_END;
}
@@ -5984,7 +6236,6 @@ parser_here_document(struct parser_params *parser, NODE *here)
}
else {
/* int mb = ENC_CODERANGE_7BIT, *mbp = &mb;*/
- rb_encoding *enc = parser->enc;
newtok();
if (c == '#') {
switch (c = nextc()) {
@@ -6013,6 +6264,7 @@ parser_here_document(struct parser_params *parser, NODE *here)
} while (!whole_match_p(eos, len, indent));
str = STR_NEW3(tok(), toklen(), enc, func);
}
+ dispatch_heredoc_end();
heredoc_restore(lex_strterm);
lex_strterm = NEW_STRTERM(-1, 0, 0);
set_yylval_str(str);
@@ -6021,45 +6273,50 @@ parser_here_document(struct parser_params *parser, NODE *here)
#include "lex.c"
-#ifndef RIPPER
static void
arg_ambiguous_gen(struct parser_params *parser)
{
+#ifndef RIPPER
rb_warning0("ambiguous first argument; put parentheses or even spaces");
-}
#else
-static void
-arg_ambiguous_gen(struct parser_params *parser)
-{
dispatch0(arg_ambiguous);
+#endif
}
+#define arg_ambiguous() (arg_ambiguous_gen(parser), 1)
+
+static ID
+formal_argument_gen(struct parser_params *parser, ID lhs)
+{
+#ifndef RIPPER
+ if (!is_local_id(lhs))
+ yyerror("formal argument must be local variable");
#endif
-#define arg_ambiguous() arg_ambiguous_gen(parser)
+ shadowing_lvar(lhs);
+ return lhs;
+}
static int
lvar_defined_gen(struct parser_params *parser, ID id)
{
-#ifndef RIPPER
- return (dyna_in_block() && dvar_defined(id)) || local_id(id);
-#else
- return 0;
-#endif
+ return (dyna_in_block() && dvar_defined_get(id)) || local_id(id);
}
/* emacsen -*- hack */
-static int
-parser_encode_length(struct parser_params *parser, const char *name, int len)
+static long
+parser_encode_length(struct parser_params *parser, const char *name, long len)
{
- int nlen;
+ long nlen;
if (len > 5 && name[nlen = len - 5] == '-') {
if (rb_memcicmp(name + nlen + 1, "unix", 4) == 0)
return nlen;
}
- if (len > 4 && name[nlen = len - 5] == '-') {
+ if (len > 4 && name[nlen = len - 4] == '-') {
if (rb_memcicmp(name + nlen + 1, "dos", 3) == 0)
return nlen;
- if (rb_memcicmp(name + nlen + 1, "mac", 3) == 0)
+ if (rb_memcicmp(name + nlen + 1, "mac", 3) == 0 &&
+ !(len == 8 && rb_memcicmp(name, "utf8-mac", len) == 0))
+ /* exclude UTF8-MAC because the encoding named "UTF8" doesn't exist in Ruby */
return nlen;
}
return len;
@@ -6070,15 +6327,31 @@ parser_set_encode(struct parser_params *parser, const char *name)
{
int idx = rb_enc_find_index(name);
rb_encoding *enc;
+ VALUE excargs[3];
if (idx < 0) {
- rb_raise(rb_eArgError, "unknown encoding name: %s", name);
+ excargs[1] = rb_sprintf("unknown encoding name: %s", name);
+ error:
+ excargs[0] = rb_eArgError;
+ excargs[2] = rb_make_backtrace();
+ rb_ary_unshift(excargs[2], rb_sprintf("%s:%d", ruby_sourcefile, ruby_sourceline));
+ rb_exc_raise(rb_make_exception(3, excargs));
}
enc = rb_enc_from_index(idx);
if (!rb_enc_asciicompat(enc)) {
- rb_raise(rb_eArgError, "%s is not ASCII compatible", rb_enc_name(enc));
+ excargs[1] = rb_sprintf("%s is not ASCII compatible", rb_enc_name(enc));
+ goto error;
}
parser->enc = enc;
+#ifndef RIPPER
+ if (ruby_debug_lines) {
+ long i, n = RARRAY_LEN(ruby_debug_lines);
+ const VALUE *p = RARRAY_PTR(ruby_debug_lines);
+ for (i = 0; i < n; ++i) {
+ rb_enc_associate_index(*p, idx);
+ }
+ }
+#endif
}
static int
@@ -6094,7 +6367,7 @@ comment_at_top(struct parser_params *parser)
}
#ifndef RIPPER
-typedef int (*rb_magic_comment_length_t)(struct parser_params *parser, const char *name, int len);
+typedef long (*rb_magic_comment_length_t)(struct parser_params *parser, const char *name, long len);
typedef void (*rb_magic_comment_setter_t)(struct parser_params *parser, const char *name, const char *val);
static void
@@ -6106,6 +6379,28 @@ magic_comment_encoding(struct parser_params *parser, const char *name, const cha
parser_set_encode(parser, val);
}
+static void
+parser_set_token_info(struct parser_params *parser, const char *name, const char *val)
+{
+ int *p = &parser->parser_token_info_enabled;
+
+ switch (*val) {
+ case 't': case 'T':
+ if (strcasecmp(val, "true") == 0) {
+ *p = TRUE;
+ return;
+ }
+ break;
+ case 'f': case 'F':
+ if (strcasecmp(val, "false") == 0) {
+ *p = FALSE;
+ return;
+ }
+ break;
+ }
+ rb_compile_warning(ruby_sourcefile, ruby_sourceline, "invalid value for %s: %s", name, val);
+}
+
struct magic_comment {
const char *name;
rb_magic_comment_setter_t func;
@@ -6115,13 +6410,14 @@ struct magic_comment {
static const struct magic_comment magic_comments[] = {
{"coding", magic_comment_encoding, parser_encode_length},
{"encoding", magic_comment_encoding, parser_encode_length},
+ {"warn_indent", parser_set_token_info},
};
#endif
static const char *
-magic_comment_marker(const char *str, int len)
+magic_comment_marker(const char *str, long len)
{
- int i = 2;
+ long i = 2;
while (i < len) {
switch (str[i]) {
@@ -6152,18 +6448,18 @@ magic_comment_marker(const char *str, int len)
}
static int
-parser_magic_comment(struct parser_params *parser, const char *str, int len)
+parser_magic_comment(struct parser_params *parser, const char *str, long len)
{
VALUE name = 0, val = 0;
const char *beg, *end, *vbeg, *vend;
#define str_copy(_s, _p, _n) ((_s) \
- ? (rb_str_resize((_s), (_n)), \
+ ? (void)(rb_str_resize((_s), (_n)), \
MEMCPY(RSTRING_PTR(_s), (_p), char, (_n)), (_s)) \
- : ((_s) = STR_NEW((_p), (_n))))
+ : (void)((_s) = STR_NEW((_p), (_n))))
- if (len <= 7) return Qfalse;
- if (!(beg = magic_comment_marker(str, len))) return Qfalse;
- if (!(end = magic_comment_marker(beg, str + len - beg))) return Qfalse;
+ if (len <= 7) return FALSE;
+ if (!(beg = magic_comment_marker(str, len))) return FALSE;
+ if (!(end = magic_comment_marker(beg, str + len - beg))) return FALSE;
str = beg;
len = end - beg - 3;
@@ -6173,7 +6469,8 @@ parser_magic_comment(struct parser_params *parser, const char *str, int len)
const struct magic_comment *p = magic_comments;
#endif
char *s;
- int i, n = 0;
+ int i;
+ long n = 0;
for (; len > 0 && *str; str++, --len) {
switch (*str) {
@@ -6221,7 +6518,7 @@ parser_magic_comment(struct parser_params *parser, const char *str, int len)
str_copy(name, beg, n);
s = RSTRING_PTR(name);
for (i = 0; i < n; ++i) {
- if (*s == '-') *s = '_';
+ if (s[i] == '-') s[i] = '_';
}
#ifndef RIPPER
do {
@@ -6234,13 +6531,13 @@ parser_magic_comment(struct parser_params *parser, const char *str, int len)
(*p->func)(parser, s, RSTRING_PTR(val));
break;
}
- } while (++p < magic_comments + sizeof(magic_comments) / sizeof(*p));
+ } while (++p < magic_comments + numberof(magic_comments));
#else
dispatch2(magic_comment, name, val);
#endif
}
- return Qtrue;
+ return TRUE;
}
static void
@@ -6312,7 +6609,25 @@ parser_prepare(struct parser_params *parser)
}
#define IS_ARG() (lex_state == EXPR_ARG || lex_state == EXPR_CMDARG)
+#define IS_END() (lex_state == EXPR_END || lex_state == EXPR_ENDARG || lex_state == EXPR_ENDFN)
#define IS_BEG() (lex_state == EXPR_BEG || lex_state == EXPR_MID || lex_state == EXPR_VALUE || lex_state == EXPR_CLASS)
+#define IS_SPCARG(c) (IS_ARG() && space_seen && !ISSPACE(c))
+#define IS_LABEL_POSSIBLE() ((lex_state == EXPR_BEG && !cmd_state) || IS_ARG())
+#define IS_LABEL_SUFFIX(n) (peek_n(':',(n)) && !peek_n(':', (n)+1))
+
+#ifndef RIPPER
+#define ambiguous_operator(op, syn) ( \
+ rb_warning0("`"op"' after local variable is interpreted as binary operator"), \
+ rb_warning0("even though it seems like "syn""))
+#else
+#define ambiguous_operator(op, syn) dispatch2(operator_ambiguous, ripper_intern(op), rb_str_new_cstr(syn))
+#endif
+#define warn_balanced(op, syn) ((void) \
+ (last_state != EXPR_CLASS && last_state != EXPR_DOT && \
+ last_state != EXPR_FNAME && last_state != EXPR_ENDFN && \
+ last_state != EXPR_ENDARG && \
+ space_seen && !ISSPACE(c) && \
+ (ambiguous_operator(op, syn), 0)))
static int
parser_yylex(struct parser_params *parser)
@@ -6324,7 +6639,7 @@ parser_yylex(struct parser_params *parser)
rb_encoding *enc;
int mb;
#ifdef RIPPER
- int fallthru = Qfalse;
+ int fallthru = FALSE;
#endif
if (lex_strterm) {
@@ -6347,8 +6662,9 @@ parser_yylex(struct parser_params *parser)
return token;
}
cmd_state = command_start;
- command_start = Qfalse;
+ command_start = FALSE;
retry:
+ last_state = lex_state;
switch (c = nextc()) {
case '\0': /* NUL */
case '\004': /* ^D */
@@ -6359,7 +6675,7 @@ parser_yylex(struct parser_params *parser)
/* white spaces */
case ' ': case '\t': case '\f': case '\r':
case '\13': /* '\v' */
- space_seen++;
+ space_seen = 1;
#ifdef RIPPER
while ((c = nextc())) {
switch (c) {
@@ -6386,7 +6702,7 @@ parser_yylex(struct parser_params *parser)
lex_p = lex_pend;
#ifdef RIPPER
ripper_dispatch_scan_event(parser, tCOMMENT);
- fallthru = Qtrue;
+ fallthru = TRUE;
#endif
/* fall through */
case '\n':
@@ -6400,7 +6716,7 @@ parser_yylex(struct parser_params *parser)
if (!fallthru) {
ripper_dispatch_scan_event(parser, tIGNORED_NL);
}
- fallthru = Qfalse;
+ fallthru = FALSE;
#endif
goto retry;
default:
@@ -6410,7 +6726,7 @@ parser_yylex(struct parser_params *parser)
switch (c) {
case ' ': case '\t': case '\f': case '\r':
case '\13': /* '\v' */
- space_seen++;
+ space_seen = 1;
break;
case '.': {
if ((c = nextc()) != '.') {
@@ -6433,7 +6749,7 @@ parser_yylex(struct parser_params *parser)
}
}
normal_newline:
- command_start = Qtrue;
+ command_start = TRUE;
lex_state = EXPR_BEG;
return '\n';
@@ -6454,7 +6770,7 @@ parser_yylex(struct parser_params *parser)
return tOP_ASGN;
}
pushback(c);
- if (IS_ARG() && space_seen && !ISSPACE(c)) {
+ if (IS_SPCARG(c)) {
rb_warning0("`*' interpreted as argument prefix");
c = tSTAR;
}
@@ -6462,6 +6778,7 @@ parser_yylex(struct parser_params *parser)
c = tSTAR;
}
else {
+ warn_balanced("*", "argument prefix");
c = '*';
}
}
@@ -6498,7 +6815,7 @@ parser_yylex(struct parser_params *parser)
/* skip embedded rd document */
if (strncmp(lex_p, "begin", 5) == 0 && ISSPACE(lex_p[5])) {
#ifdef RIPPER
- int first_p = Qtrue;
+ int first_p = TRUE;
lex_goto_eol(parser);
ripper_dispatch_scan_event(parser, tEMBDOC_BEG);
@@ -6509,7 +6826,7 @@ parser_yylex(struct parser_params *parser)
if (!first_p) {
ripper_dispatch_scan_event(parser, tEMBDOC);
}
- first_p = Qfalse;
+ first_p = FALSE;
#endif
c = nextc();
if (c == -1) {
@@ -6553,12 +6870,12 @@ parser_yylex(struct parser_params *parser)
return '=';
case '<':
+ last_state = lex_state;
c = nextc();
if (c == '<' &&
- lex_state != EXPR_END &&
lex_state != EXPR_DOT &&
- lex_state != EXPR_ENDARG &&
lex_state != EXPR_CLASS &&
+ !IS_END() &&
(!IS_ARG() || space_seen)) {
int token = heredoc_identifier();
if (token) return token;
@@ -6583,6 +6900,7 @@ parser_yylex(struct parser_params *parser)
return tOP_ASGN;
}
pushback(c);
+ warn_balanced("<<", "here document");
return tLSHFT;
}
pushback(c);
@@ -6616,7 +6934,7 @@ parser_yylex(struct parser_params *parser)
case '`':
if (lex_state == EXPR_FNAME) {
- lex_state = EXPR_END;
+ lex_state = EXPR_ENDFN;
return c;
}
if (lex_state == EXPR_DOT) {
@@ -6634,7 +6952,7 @@ parser_yylex(struct parser_params *parser)
return tSTRING_BEG;
case '?':
- if (lex_state == EXPR_END || lex_state == EXPR_ENDARG) {
+ if (IS_END()) {
lex_state = EXPR_VALUE;
return '?';
}
@@ -6695,6 +7013,11 @@ parser_yylex(struct parser_params *parser)
tokadd(c);
}
}
+ else if (!lex_eol_p() && !(c = *lex_p, ISASCII(c))) {
+ nextc();
+ tokadd('\\');
+ if (tokadd_mbchar(c) == -1) return 0;
+ }
else {
c = read_escape(0, &enc);
tokadd(c);
@@ -6725,7 +7048,7 @@ parser_yylex(struct parser_params *parser)
return tOP_ASGN;
}
pushback(c);
- if (IS_ARG() && space_seen && !ISSPACE(c)) {
+ if (IS_SPCARG(c)) {
rb_warning0("`&' interpreted as argument prefix");
c = tAMPER;
}
@@ -6733,6 +7056,7 @@ parser_yylex(struct parser_params *parser)
c = tAMPER;
}
else {
+ warn_balanced("&", "argument prefix");
c = '&';
}
switch (lex_state) {
@@ -6783,9 +7107,7 @@ parser_yylex(struct parser_params *parser)
lex_state = EXPR_BEG;
return tOP_ASGN;
}
- if (IS_BEG() ||
- (IS_ARG() && space_seen && !ISSPACE(c))) {
- if (IS_ARG()) arg_ambiguous();
+ if (IS_BEG() || (IS_SPCARG(c) && arg_ambiguous())) {
lex_state = EXPR_BEG;
pushback(c);
if (c != -1 && ISDIGIT(c)) {
@@ -6796,6 +7118,7 @@ parser_yylex(struct parser_params *parser)
}
lex_state = EXPR_BEG;
pushback(c);
+ warn_balanced("+", "unary operator");
return '+';
case '-':
@@ -6817,9 +7140,7 @@ parser_yylex(struct parser_params *parser)
lex_state = EXPR_ARG;
return tLAMBDA;
}
- if (IS_BEG() ||
- (IS_ARG() && space_seen && !ISSPACE(c))) {
- if (IS_ARG()) arg_ambiguous();
+ if (IS_BEG() || (IS_SPCARG(c) && arg_ambiguous())) {
lex_state = EXPR_BEG;
pushback(c);
if (c != -1 && ISDIGIT(c)) {
@@ -6829,6 +7150,7 @@ parser_yylex(struct parser_params *parser)
}
lex_state = EXPR_BEG;
pushback(c);
+ warn_balanced("-", "unary operator");
return '-';
case '.':
@@ -6861,6 +7183,7 @@ parser_yylex(struct parser_params *parser)
c = nextc();
}
if (c == '0') {
+#define no_digits() do {yyerror("numeric literal without digits"); return 0;} while (0)
int start = toklen();
c = nextc();
if (c == 'x' || c == 'X') {
@@ -6881,10 +7204,10 @@ parser_yylex(struct parser_params *parser)
pushback(c);
tokfix();
if (toklen() == start) {
- yyerror("numeric literal without digits");
+ no_digits();
}
else if (nondigit) goto trailing_uc;
- set_yylval_literal(rb_cstr_to_inum(tok(), 16, Qfalse));
+ set_yylval_literal(rb_cstr_to_inum(tok(), 16, FALSE));
return tINTEGER;
}
if (c == 'b' || c == 'B') {
@@ -6905,10 +7228,10 @@ parser_yylex(struct parser_params *parser)
pushback(c);
tokfix();
if (toklen() == start) {
- yyerror("numeric literal without digits");
+ no_digits();
}
else if (nondigit) goto trailing_uc;
- set_yylval_literal(rb_cstr_to_inum(tok(), 2, Qfalse));
+ set_yylval_literal(rb_cstr_to_inum(tok(), 2, FALSE));
return tINTEGER;
}
if (c == 'd' || c == 'D') {
@@ -6929,10 +7252,10 @@ parser_yylex(struct parser_params *parser)
pushback(c);
tokfix();
if (toklen() == start) {
- yyerror("numeric literal without digits");
+ no_digits();
}
else if (nondigit) goto trailing_uc;
- set_yylval_literal(rb_cstr_to_inum(tok(), 10, Qfalse));
+ set_yylval_literal(rb_cstr_to_inum(tok(), 10, FALSE));
return tINTEGER;
}
if (c == '_') {
@@ -6943,7 +7266,7 @@ parser_yylex(struct parser_params *parser)
/* prefixed octal */
c = nextc();
if (c == -1 || c == '_' || !ISDIGIT(c)) {
- yyerror("numeric literal without digits");
+ no_digits();
}
}
if (c >= '0' && c <= '7') {
@@ -6964,7 +7287,7 @@ parser_yylex(struct parser_params *parser)
pushback(c);
tokfix();
if (nondigit) goto trailing_uc;
- set_yylval_literal(rb_cstr_to_inum(tok(), 8, Qfalse));
+ set_yylval_literal(rb_cstr_to_inum(tok(), 8, FALSE));
return tINTEGER;
}
if (nondigit) {
@@ -7001,7 +7324,7 @@ parser_yylex(struct parser_params *parser)
}
else {
int c0 = nextc();
- if (c == -1 || !ISDIGIT(c0)) {
+ if (c0 == -1 || !ISDIGIT(c0)) {
pushback(c0);
goto decode_num;
}
@@ -7047,13 +7370,13 @@ parser_yylex(struct parser_params *parser)
decode_num:
pushback(c);
- tokfix();
if (nondigit) {
char tmp[30];
trailing_uc:
snprintf(tmp, sizeof(tmp), "trailing `%c' in number", nondigit);
yyerror(tmp);
}
+ tokfix();
if (is_float) {
double d = strtod(tok(), 0);
if (errno == ERANGE) {
@@ -7063,7 +7386,7 @@ parser_yylex(struct parser_params *parser)
set_yylval_literal(DBL2NUM(d));
return tFLOAT;
}
- set_yylval_literal(rb_cstr_to_inum(tok(), 10, Qfalse));
+ set_yylval_literal(rb_cstr_to_inum(tok(), 10, FALSE));
return tINTEGER;
}
@@ -7074,7 +7397,7 @@ parser_yylex(struct parser_params *parser)
COND_LEXPOP();
CMDARG_LEXPOP();
if (c == ')')
- lex_state = EXPR_END;
+ lex_state = EXPR_ENDFN;
else
lex_state = EXPR_ENDARG;
return c;
@@ -7082,16 +7405,16 @@ parser_yylex(struct parser_params *parser)
case ':':
c = nextc();
if (c == ':') {
- if (IS_BEG() ||
- lex_state == EXPR_CLASS || (IS_ARG() && space_seen)) {
+ if (IS_BEG() || lex_state == EXPR_CLASS || IS_SPCARG(-1)) {
lex_state = EXPR_BEG;
return tCOLON3;
}
lex_state = EXPR_DOT;
return tCOLON2;
}
- if (lex_state == EXPR_END || lex_state == EXPR_ENDARG || (c != -1 && ISSPACE(c))) {
+ if (IS_END() || ISSPACE(c)) {
pushback(c);
+ warn_balanced(":", "symbol literal");
lex_state = EXPR_BEG;
return ':';
}
@@ -7120,12 +7443,10 @@ parser_yylex(struct parser_params *parser)
return tOP_ASGN;
}
pushback(c);
- if (IS_ARG() && space_seen) {
- if (!ISSPACE(c)) {
- arg_ambiguous();
- lex_strterm = NEW_STRTERM(str_regexp, '/', 0);
- return tREGEXP_BEG;
- }
+ if (IS_SPCARG(c)) {
+ (void)arg_ambiguous();
+ lex_strterm = NEW_STRTERM(str_regexp, '/', 0);
+ return tREGEXP_BEG;
}
switch (lex_state) {
case EXPR_FNAME: case EXPR_DOT:
@@ -7133,6 +7454,7 @@ parser_yylex(struct parser_params *parser)
default:
lex_state = EXPR_BEG; break;
}
+ warn_balanced("/", "regexp literal");
return '/';
case '^':
@@ -7152,7 +7474,7 @@ parser_yylex(struct parser_params *parser)
case ';':
lex_state = EXPR_BEG;
- command_start = Qtrue;
+ command_start = TRUE;
return ';';
case ',':
@@ -7175,10 +7497,8 @@ parser_yylex(struct parser_params *parser)
if (IS_BEG()) {
c = tLPAREN;
}
- else if (space_seen) {
- if (IS_ARG()) {
- c = tLPAREN_ARG;
- }
+ else if (IS_SPCARG(-1)) {
+ c = tLPAREN_ARG;
}
paren_nest++;
COND_PUSH(0);
@@ -7216,9 +7536,11 @@ parser_yylex(struct parser_params *parser)
lex_state = EXPR_BEG;
lpar_beg = 0;
--paren_nest;
+ COND_PUSH(0);
+ CMDARG_PUSH(0);
return tLAMBEG;
}
- if (IS_ARG() || lex_state == EXPR_END)
+ if (IS_ARG() || lex_state == EXPR_END || lex_state == EXPR_ENDFN)
c = '{'; /* block (primary) */
else if (lex_state == EXPR_ENDARG)
c = tLBRACE_ARG; /* block (expr) */
@@ -7227,7 +7549,7 @@ parser_yylex(struct parser_params *parser)
COND_PUSH(0);
CMDARG_PUSH(0);
lex_state = EXPR_BEG;
- if (c != tLBRACE) command_start = Qtrue;
+ if (c != tLBRACE) command_start = TRUE;
return c;
case '\\':
@@ -7315,7 +7637,7 @@ parser_yylex(struct parser_params *parser)
lex_state = EXPR_BEG;
return tOP_ASGN;
}
- if (IS_ARG() && space_seen && !ISSPACE(c)) {
+ if (IS_SPCARG(c)) {
goto quotation;
}
switch (lex_state) {
@@ -7325,10 +7647,10 @@ parser_yylex(struct parser_params *parser)
lex_state = EXPR_BEG; break;
}
pushback(c);
+ warn_balanced("%%", "string literal");
return '%';
case '$':
- last_state = lex_state;
lex_state = EXPR_END;
newtok();
c = nextc();
@@ -7362,7 +7684,7 @@ parser_yylex(struct parser_params *parser)
tokadd('$');
tokadd(c);
tokfix();
- set_yylval_id(rb_intern(tok()));
+ set_yylval_name(rb_intern(tok()));
return tGVAR;
case '-':
@@ -7377,7 +7699,7 @@ parser_yylex(struct parser_params *parser)
}
gvar:
tokfix();
- set_yylval_id(rb_intern(tok()));
+ set_yylval_name(rb_intern(tok()));
return tGVAR;
case '&': /* $&: last match */
@@ -7508,7 +7830,7 @@ parser_yylex(struct parser_params *parser)
else {
if (lex_state == EXPR_FNAME) {
if ((c = nextc()) == '=' && !peek('~') && !peek('>') &&
- (!peek('=') || (lex_p + 1 < lex_pend && lex_p[1] == '>'))) {
+ (!peek('=') || (peek_n('>', 1)))) {
result = tIDENTIFIER;
tokadd(c);
tokfix();
@@ -7525,13 +7847,11 @@ parser_yylex(struct parser_params *parser)
}
}
- if ((lex_state == EXPR_BEG && !cmd_state) ||
- lex_state == EXPR_ARG ||
- lex_state == EXPR_CMDARG) {
- if (peek(':') && !(lex_p + 1 < lex_pend && lex_p[1] == ':')) {
+ if (IS_LABEL_POSSIBLE()) {
+ if (IS_LABEL_SUFFIX(0)) {
lex_state = EXPR_BEG;
nextc();
- set_yylval_id(TOK_INTERN(!ENC_SINGLE(mb)));
+ set_yylval_name(TOK_INTERN(!ENC_SINGLE(mb)));
return tLABEL;
}
}
@@ -7544,11 +7864,11 @@ parser_yylex(struct parser_params *parser)
enum lex_state_e state = lex_state;
lex_state = kw->state;
if (state == EXPR_FNAME) {
- set_yylval_id(rb_intern(kw->name));
+ set_yylval_name(rb_intern(kw->name));
return kw->id[0];
}
if (kw->id[0] == keyword_do) {
- command_start = Qtrue;
+ command_start = TRUE;
if (lpar_beg && lpar_beg == paren_nest) {
lpar_beg = 0;
--paren_nest;
@@ -7581,6 +7901,9 @@ parser_yylex(struct parser_params *parser)
lex_state = EXPR_ARG;
}
}
+ else if (lex_state == EXPR_FNAME) {
+ lex_state = EXPR_ENDFN;
+ }
else {
lex_state = EXPR_END;
}
@@ -7588,7 +7911,7 @@ parser_yylex(struct parser_params *parser)
{
ID ident = TOK_INTERN(!ENC_SINGLE(mb));
- set_yylval_id(ident);
+ set_yylval_name(ident);
if (last_state != EXPR_DOT && is_local_id(ident) && lvar_defined(ident)) {
lex_state = EXPR_END;
}
@@ -7669,14 +7992,14 @@ parser_warning(struct parser_params *parser, NODE *node, const char *mesg)
{
rb_compile_warning(ruby_sourcefile, nd_line(node), "%s", mesg);
}
-#define parser_warning(node, mesg) parser_warning(parser, node, mesg)
+#define parser_warning(node, mesg) parser_warning(parser, (node), (mesg))
static void
parser_warn(struct parser_params *parser, NODE *node, const char *mesg)
{
rb_compile_warn(ruby_sourcefile, nd_line(node), "%s", mesg);
}
-#define parser_warn(node, mesg) parser_warn(parser, node, mesg)
+#define parser_warn(node, mesg) parser_warn(parser, (node), (mesg))
static NODE*
block_append_gen(struct parser_params *parser, NODE *head, NODE *tail)
@@ -7779,6 +8102,7 @@ list_concat_gen(struct parser_params *parser, NODE *head, NODE *tail)
static int
literal_concat0(struct parser_params *parser, VALUE head, VALUE tail)
{
+ if (NIL_P(tail)) return 1;
if (!rb_enc_compatible(head, tail)) {
compile_error(PARSER_ARG "string literal encodings differ (%s / %s)",
rb_enc_name(rb_enc_get(head)),
@@ -7802,7 +8126,7 @@ literal_concat_gen(struct parser_params *parser, NODE *head, NODE *tail)
htype = nd_type(head);
if (htype == NODE_EVSTR) {
- NODE *node = NEW_DSTR(STR_NEW0());
+ NODE *node = NEW_DSTR(Qnil);
head = list_append(node, head);
}
switch (nd_type(tail)) {
@@ -7829,6 +8153,12 @@ literal_concat_gen(struct parser_params *parser, NODE *head, NODE *tail)
rb_gc_force_recycle((VALUE)head);
head = tail;
}
+ else if (NIL_P(tail->nd_lit)) {
+ head->nd_alen += tail->nd_alen - 1;
+ head->nd_next->nd_end->nd_next = tail->nd_next;
+ head->nd_next->nd_end = tail->nd_next->nd_end;
+ rb_gc_force_recycle((VALUE)tail);
+ }
else {
nd_set_type(tail, NODE_ARRAY);
tail->nd_head = NEW_STR(tail->nd_lit);
@@ -7851,7 +8181,7 @@ static NODE *
evstr2dstr_gen(struct parser_params *parser, NODE *node)
{
if (nd_type(node) == NODE_EVSTR) {
- node = list_append(NEW_DSTR(STR_NEW0()), node);
+ node = list_append(NEW_DSTR(Qnil), node);
}
return node;
}
@@ -7965,11 +8295,42 @@ gettable_gen(struct parser_params *parser, ID id)
compile_error(PARSER_ARG "identifier %s is not valid to get", rb_id2name(id));
return 0;
}
+#else /* !RIPPER */
+static int
+id_is_var_gen(struct parser_params *parser, ID id)
+{
+ if (is_notop_id(id)) {
+ switch (id & ID_SCOPE_MASK) {
+ case ID_GLOBAL: case ID_INSTANCE: case ID_CONST: case ID_CLASS:
+ return 1;
+ case ID_LOCAL:
+ if (dyna_in_block() && dvar_defined(id)) return 1;
+ if (local_id(id)) return 1;
+ /* method call without arguments */
+ return 0;
+ }
+ }
+ compile_error(PARSER_ARG "identifier %s is not valid to get", rb_id2name(id));
+ return 0;
+}
+#endif /* !RIPPER */
+#ifdef RIPPER
+static VALUE
+assignable_gen(struct parser_params *parser, VALUE lhs)
+#else
static NODE*
assignable_gen(struct parser_params *parser, ID id, NODE *val)
+#endif
{
- if (!id) return 0;
+#ifdef RIPPER
+ ID id = get_id(lhs);
+# define assignable_result(x) get_value(lhs)
+# define parser_yyerror(parser, x) dispatch1(assign_error, lhs)
+#else
+# define assignable_result(x) (x)
+#endif
+ if (!id) return assignable_result(0);
if (id == keyword_self) {
yyerror("Can't change the value of self");
}
@@ -7994,60 +8355,64 @@ assignable_gen(struct parser_params *parser, ID id, NODE *val)
else if (is_local_id(id)) {
if (dyna_in_block()) {
if (dvar_curr(id)) {
- return NEW_DASGN_CURR(id, val);
+ return assignable_result(NEW_DASGN_CURR(id, val));
}
else if (dvar_defined(id)) {
- return NEW_DASGN(id, val);
+ return assignable_result(NEW_DASGN(id, val));
}
else if (local_id(id)) {
- return NEW_LASGN(id, val);
+ return assignable_result(NEW_LASGN(id, val));
}
- else{
+ else {
dyna_var(id);
- return NEW_DASGN_CURR(id, val);
+ return assignable_result(NEW_DASGN_CURR(id, val));
}
}
else {
if (!local_id(id)) {
local_var(id);
}
- return NEW_LASGN(id, val);
+ return assignable_result(NEW_LASGN(id, val));
}
}
else if (is_global_id(id)) {
- return NEW_GASGN(id, val);
+ return assignable_result(NEW_GASGN(id, val));
}
else if (is_instance_id(id)) {
- return NEW_IASGN(id, val);
+ return assignable_result(NEW_IASGN(id, val));
}
else if (is_const_id(id)) {
- if (in_def || in_single)
- yyerror("dynamic constant assignment");
- return NEW_CDECL(id, val, 0);
+ if (!in_def && !in_single)
+ return assignable_result(NEW_CDECL(id, val, 0));
+ yyerror("dynamic constant assignment");
}
else if (is_class_id(id)) {
- return NEW_CVASGN(id, val);
+ return assignable_result(NEW_CVASGN(id, val));
}
else {
compile_error(PARSER_ARG "identifier %s is not valid to set", rb_id2name(id));
}
- return 0;
+ return assignable_result(0);
+#undef assignable_result
+#undef parser_yyerror
}
-static void
+#define LVAR_USED ((int)1 << (sizeof(int) * CHAR_BIT - 1))
+
+static ID
shadowing_lvar_gen(struct parser_params *parser, ID name)
{
- ID uscore;
-
- CONST_ID(uscore, "_");
- if (uscore == name) return;
+ if (idUScore == name) return name;
if (dyna_in_block()) {
if (dvar_curr(name)) {
yyerror("duplicated argument name");
}
- else if (dvar_defined(name) || local_id(name)) {
+ else if (dvar_defined_get(name) || local_id(name)) {
rb_warningS("shadowing outer local variable - %s", rb_id2name(name));
vtable_add(lvtbl->vars, name);
+ if (lvtbl->used) {
+ vtable_add(lvtbl->used, (ID)ruby_sourceline | LVAR_USED);
+ }
}
}
else {
@@ -8055,6 +8420,7 @@ shadowing_lvar_gen(struct parser_params *parser, ID name)
yyerror("duplicated argument name");
}
}
+ return name;
}
static void
@@ -8070,6 +8436,7 @@ new_bv_gen(struct parser_params *parser, ID name)
dyna_var(name);
}
+#ifndef RIPPER
static NODE *
aryset_gen(struct parser_params *parser, NODE *recv, NODE *idx)
{
@@ -8121,7 +8488,10 @@ arg_concat_gen(struct parser_params *parser, NODE *node1, NODE *node2)
if (!node2) return node1;
switch (nd_type(node1)) {
case NODE_BLOCK_PASS:
- node1->nd_iter = arg_concat(node1->nd_iter, node2);
+ if (node1->nd_head)
+ node1->nd_head = arg_concat(node1->nd_head, node2);
+ else
+ node1->nd_head = NEW_LIST(node2);
return node1;
case NODE_ARGSPUSH:
if (nd_type(node2) != NODE_ARRAY) break;
@@ -8207,7 +8577,7 @@ value_expr_gen(struct parser_params *parser, NODE *node)
case NODE_DEFN:
case NODE_DEFS:
parser_warning(node, "void value expression");
- return Qfalse;
+ return FALSE;
case NODE_RETURN:
case NODE_BREAK:
@@ -8216,7 +8586,7 @@ value_expr_gen(struct parser_params *parser, NODE *node)
case NODE_RETRY:
if (!cond) yyerror("void value expression");
/* or "control never reach"? */
- return Qfalse;
+ return FALSE;
case NODE_BLOCK:
while (node->nd_next) {
@@ -8238,7 +8608,7 @@ value_expr_gen(struct parser_params *parser, NODE *node)
node = node->nd_body;
break;
}
- if (!value_expr(node->nd_body)) return Qfalse;
+ if (!value_expr(node->nd_body)) return FALSE;
node = node->nd_else;
break;
@@ -8249,11 +8619,11 @@ value_expr_gen(struct parser_params *parser, NODE *node)
break;
default:
- return Qtrue;
+ return TRUE;
}
}
- return Qtrue;
+ return TRUE;
}
static void
@@ -8340,7 +8710,7 @@ void_expr_gen(struct parser_params *parser, NODE *node)
int line = ruby_sourceline;
ruby_sourceline = nd_line(node);
- rb_warnS("useless use of %s in void context", useless);
+ rb_warnS("possibly useless use of %s in void context", useless);
ruby_sourceline = line;
}
}
@@ -8384,6 +8754,7 @@ reduce_nodes_gen(struct parser_params *parser, NODE **body)
(reduce_nodes(&node->n1), body = &node->n2, 1))
while (node) {
+ int newline = (int)(node->flags & NODE_FL_NEWLINE);
switch (nd_type(node)) {
end:
case NODE_NIL:
@@ -8391,9 +8762,11 @@ reduce_nodes_gen(struct parser_params *parser, NODE **body)
return;
case NODE_RETURN:
*body = node = node->nd_stts;
+ if (newline && node) node->flags |= NODE_FL_NEWLINE;
continue;
case NODE_BEGIN:
*body = node = node->nd_body;
+ if (newline && node) node->flags |= NODE_FL_NEWLINE;
continue;
case NODE_BLOCK:
body = &node->nd_end->nd_head;
@@ -8411,12 +8784,17 @@ reduce_nodes_gen(struct parser_params *parser, NODE **body)
if (!subnodes(nd_head, nd_resq)) goto end;
break;
case NODE_RESCUE:
+ if (node->nd_else) {
+ body = &node->nd_resq;
+ break;
+ }
if (!subnodes(nd_head, nd_resq)) goto end;
break;
default:
return;
}
node = *body;
+ if (newline && node) node->flags |= NODE_FL_NEWLINE;
}
#undef subnodes
@@ -8432,6 +8810,7 @@ assign_in_cond(struct parser_params *parser, NODE *node)
case NODE_LASGN:
case NODE_DASGN:
+ case NODE_DASGN_CURR:
case NODE_GASGN:
case NODE_IASGN:
break;
@@ -8440,6 +8819,7 @@ assign_in_cond(struct parser_params *parser, NODE *node)
return 0;
}
+ if (!node->nd_value) return 1;
switch (nd_type(node->nd_value)) {
case NODE_LIT:
case NODE_STR:
@@ -8490,7 +8870,7 @@ fixup_nodes(NODE **rootnode)
case NODE_DOT2:
case NODE_DOT3:
val = rb_range_new(head->nd_beg->nd_lit, head->nd_end->nd_lit,
- type == NODE_DOT3 ? Qtrue : Qfalse);
+ type == NODE_DOT3);
rb_gc_force_recycle((VALUE)head->nd_beg);
rb_gc_force_recycle((VALUE)head->nd_end);
nd_set_type(head, NODE_LIT);
@@ -8609,9 +8989,9 @@ static NODE*
logop_gen(struct parser_params *parser, enum node_type type, NODE *left, NODE *right)
{
value_expr(left);
- if (left && nd_type(left) == type) {
+ if (left && (enum node_type)nd_type(left) == type) {
NODE *node = left, *second;
- while ((second = node->nd_2nd) != 0 && nd_type(second) == type) {
+ while ((second = node->nd_2nd) != 0 && (enum node_type)nd_type(second) == type) {
node = second;
}
node->nd_2nd = NEW_NODE(type, second, right, 0);
@@ -8715,6 +9095,27 @@ new_args_gen(struct parser_params *parser, NODE *m, NODE *o, ID r, NODE *p, ID b
ruby_sourceline = saved_line;
return node;
}
+#endif /* !RIPPER */
+
+static void
+warn_unused_var(struct parser_params *parser, struct local_vars *local)
+{
+ int i, cnt;
+ ID *v, *u;
+
+ if (!local->used) return;
+ v = local->vars->tbl;
+ u = local->used->tbl;
+ cnt = local->used->pos;
+ if (cnt != local->vars->pos) {
+ rb_bug("local->used->pos != local->vars->pos");
+ }
+ for (i = 0; i < cnt; ++i) {
+ if (!v[i] || (u[i] & LVAR_USED)) continue;
+ if (idUScore == v[i]) continue;
+ rb_compile_warn(ruby_sourcefile, (int)u[i], "assigned but unused variable - %s", rb_id2name(v[i]));
+ }
+}
static void
local_push_gen(struct parser_params *parser, int inherit_dvars)
@@ -8725,6 +9126,7 @@ local_push_gen(struct parser_params *parser, int inherit_dvars)
local->prev = lvtbl;
local->args = vtable_alloc(0);
local->vars = vtable_alloc(inherit_dvars ? DVARS_INHERIT : DVARS_TOPSCOPE);
+ local->used = !inherit_dvars && RTEST(ruby_verbose) ? vtable_alloc(0) : 0;
lvtbl = local;
}
@@ -8732,12 +9134,17 @@ static void
local_pop_gen(struct parser_params *parser)
{
struct local_vars *local = lvtbl->prev;
+ if (lvtbl->used) {
+ warn_unused_var(parser, lvtbl);
+ vtable_free(lvtbl->used);
+ }
vtable_free(lvtbl->args);
vtable_free(lvtbl->vars);
xfree(lvtbl);
lvtbl = local;
}
+#ifndef RIPPER
static ID*
vtable_tblcpy(ID *buf, const struct vtable *src)
{
@@ -8766,6 +9173,7 @@ local_tbl_gen(struct parser_params *parser)
buf[0] = cnt;
return buf;
}
+#endif
static int
arg_var_gen(struct parser_params *parser, ID id)
@@ -8778,43 +9186,61 @@ static int
local_var_gen(struct parser_params *parser, ID id)
{
vtable_add(lvtbl->vars, id);
+ if (lvtbl->used) {
+ vtable_add(lvtbl->used, (ID)ruby_sourceline);
+ }
return vtable_size(lvtbl->vars) - 1;
}
static int
local_id_gen(struct parser_params *parser, ID id)
{
- struct vtable *vars, *args;
+ struct vtable *vars, *args, *used;
vars = lvtbl->vars;
args = lvtbl->args;
+ used = lvtbl->used;
while (vars && POINTER_P(vars->prev)) {
vars = vars->prev;
args = args->prev;
+ if (used) used = used->prev;
}
if (vars && vars->prev == DVARS_INHERIT) {
return rb_local_defined(id);
}
+ else if (vtable_included(args, id)) {
+ return 1;
+ }
else {
- return (vtable_included(args, id) ||
- vtable_included(vars, id));
+ int i = vtable_included(vars, id);
+ if (i && used) used->tbl[i-1] |= LVAR_USED;
+ return i != 0;
}
}
-static void
+static const struct vtable *
dyna_push_gen(struct parser_params *parser)
{
lvtbl->args = vtable_alloc(lvtbl->args);
lvtbl->vars = vtable_alloc(lvtbl->vars);
+ if (lvtbl->used) {
+ lvtbl->used = vtable_alloc(lvtbl->used);
+ }
+ return lvtbl->args;
}
static void
-dyna_pop_gen(struct parser_params *parser)
+dyna_pop_1(struct parser_params *parser)
{
struct vtable *tmp;
+ if ((tmp = lvtbl->used) != 0) {
+ warn_unused_var(parser, lvtbl);
+ lvtbl->used = lvtbl->used->prev;
+ vtable_free(tmp);
+ }
tmp = lvtbl->args;
lvtbl->args = lvtbl->args->prev;
vtable_free(tmp);
@@ -8823,6 +9249,20 @@ dyna_pop_gen(struct parser_params *parser)
vtable_free(tmp);
}
+static void
+dyna_pop_gen(struct parser_params *parser, const struct vtable *lvargs)
+{
+ while (lvtbl->args != lvargs) {
+ dyna_pop_1(parser);
+ if (!lvtbl->args) {
+ struct local_vars *local = lvtbl->prev;
+ xfree(lvtbl);
+ lvtbl = local;
+ }
+ }
+ dyna_pop_1(parser);
+}
+
static int
dyna_in_block_gen(struct parser_params *parser)
{
@@ -8830,22 +9270,27 @@ dyna_in_block_gen(struct parser_params *parser)
}
static int
-dvar_defined_gen(struct parser_params *parser, ID id)
+dvar_defined_gen(struct parser_params *parser, ID id, int get)
{
- struct vtable *vars, *args;
+ struct vtable *vars, *args, *used;
+ int i;
args = lvtbl->args;
vars = lvtbl->vars;
+ used = lvtbl->used;
while (POINTER_P(vars)) {
if (vtable_included(args, id)) {
return 1;
}
- if (vtable_included(vars, id)) {
+ if ((i = vtable_included(vars, id)) != 0) {
+ if (used) used->tbl[i-1] |= LVAR_USED;
return 1;
}
args = args->prev;
vars = vars->prev;
+ if (get) used = 0;
+ if (used) used = used->prev;
}
if (vars == DVARS_INHERIT) {
@@ -8862,9 +9307,7 @@ dvar_curr_gen(struct parser_params *parser, ID id)
vtable_included(lvtbl->vars, id));
}
-VALUE rb_reg_compile(VALUE str, int options);
-VALUE rb_reg_check_preprocess(VALUE);
-
+#ifndef RIPPER
static void
reg_fragment_setenc_gen(struct parser_params* parser, VALUE str, int options)
{
@@ -8904,17 +9347,19 @@ reg_fragment_setenc_gen(struct parser_params* parser, VALUE str, int options)
c, rb_enc_name(rb_enc_get(str)));
}
-static void
+static int
reg_fragment_check_gen(struct parser_params* parser, VALUE str, int options)
{
VALUE err;
- reg_fragment_setenc_gen(parser, str, options);
+ reg_fragment_setenc(str, options);
err = rb_reg_check_preprocess(str);
if (err != Qnil) {
err = rb_obj_as_string(err);
compile_error(PARSER_ARG "%s", RSTRING_PTR(err));
RB_GC_GUARD(err);
+ return 0;
}
+ return 1;
}
typedef struct {
@@ -8932,7 +9377,7 @@ reg_named_capture_assign_iter(const OnigUChar *name, const OnigUChar *name_end,
reg_named_capture_assign_t *arg = (reg_named_capture_assign_t*)arg0;
struct parser_params* parser = arg->parser;
rb_encoding *enc = arg->enc;
- int len = name_end - name;
+ long len = name_end - name;
const char *s = (const char *)name;
ID var;
@@ -8944,7 +9389,8 @@ reg_named_capture_assign_iter(const OnigUChar *name, const OnigUChar *name_end,
}
if (!len || (*name != '_' && ISASCII(*name) && !rb_enc_islower(*name, enc)) ||
- rb_reserved_word(s, len) || !rb_enc_symname2_p(s, len, enc)) {
+ (len < MAX_WORD_LENGTH && rb_reserved_word(s, (int)len)) ||
+ !rb_enc_symname2_p(s, len, enc)) {
return ST_CONTINUE;
}
var = rb_intern3(s, len, enc);
@@ -9004,7 +9450,7 @@ reg_compile_gen(struct parser_params* parser, VALUE str, int options)
reg_fragment_setenc(str, options);
err = rb_errinfo();
- re = rb_reg_compile(str, options & RE_OPTION_MASK);
+ re = rb_reg_compile(str, options & RE_OPTION_MASK, ruby_sourcefile, ruby_sourceline);
if (NIL_P(re)) {
ID mesg = rb_intern("mesg");
VALUE m = rb_attr_get(rb_errinfo(), mesg);
@@ -9034,7 +9480,7 @@ rb_parser_append_print(VALUE vparser, NODE *node)
if (!node) return node;
- Data_Get_Struct(vparser, struct parser_params, parser);
+ TypedData_Get_Struct(vparser, struct parser_params, &parser_data_type, parser);
node = node->nd_body;
@@ -9066,7 +9512,7 @@ rb_parser_while_loop(VALUE vparser, NODE *node, int chop, int split)
if (!node) return node;
- Data_Get_Struct(vparser, struct parser_params, parser);
+ TypedData_Get_Struct(vparser, struct parser_params, &parser_data_type, parser);
node = node->nd_body;
@@ -9124,14 +9570,20 @@ static const struct {
{tCOLON2, "::"},
};
-#define op_tbl_count (sizeof(op_tbl) / sizeof(op_tbl[0]))
+#define op_tbl_count numberof(op_tbl)
+
+#ifndef ENABLE_SELECTOR_NAMESPACE
+#define ENABLE_SELECTOR_NAMESPACE 0
+#endif
static struct symbols {
ID last_id;
st_table *sym_id;
st_table *id_str;
+#if ENABLE_SELECTOR_NAMESPACE
st_table *ivar2_id;
st_table *id_ivar2;
+#endif
VALUE op_sym[tLAST_TOKEN];
} global_symbols = {tLAST_ID};
@@ -9140,6 +9592,7 @@ static const struct st_hash_type symhash = {
rb_str_hash,
};
+#if ENABLE_SELECTOR_NAMESPACE
struct ivar2_key {
ID id;
VALUE klass;
@@ -9164,14 +9617,17 @@ static const struct st_hash_type ivar2_hash_type = {
ivar2_cmp,
ivar2_hash,
};
+#endif
void
Init_sym(void)
{
global_symbols.sym_id = st_init_table_with_size(&symhash, 1000);
global_symbols.id_str = st_init_numtable_with_size(1000);
+#if ENABLE_SELECTOR_NAMESPACE
global_symbols.ivar2_id = st_init_table_with_size(&ivar2_hash_type, 1000);
global_symbols.id_ivar2 = st_init_numtable_with_size(1000);
+#endif
Init_id();
}
@@ -9183,6 +9639,7 @@ rb_gc_mark_symbols(void)
rb_gc_mark_locations(global_symbols.op_sym,
global_symbols.op_sym + tLAST_TOKEN);
}
+#endif /* !RIPPER */
static ID
internal_id_gen(struct parser_params *parser)
@@ -9192,6 +9649,7 @@ internal_id_gen(struct parser_params *parser)
return ID_INTERNAL | (id << ID_SCOPE_SHIFT);
}
+#ifndef RIPPER
static int
is_special_global_name(const char *m, const char *e, rb_encoding *enc)
{
@@ -9218,7 +9676,7 @@ is_special_global_name(const char *m, const char *e, rb_encoding *enc)
do {
if (!ISASCII(*m)) mb = 1;
++m;
- } while (rb_enc_isdigit(*m, enc));
+ } while (m < e && rb_enc_isdigit(*m, enc));
}
return m == e ? mb + 1 : 0;
}
@@ -9236,19 +9694,19 @@ rb_enc_symname_p(const char *name, rb_encoding *enc)
}
int
-rb_enc_symname2_p(const char *name, int len, rb_encoding *enc)
+rb_enc_symname2_p(const char *name, long len, rb_encoding *enc)
{
const char *m = name;
const char *e = m + len;
- int localid = Qfalse;
+ int localid = FALSE;
- if (!m) return Qfalse;
+ if (!m || len <= 0) return FALSE;
switch (*m) {
case '\0':
- return Qfalse;
+ return FALSE;
case '$':
- if (is_special_global_name(++m, e, enc)) return Qtrue;
+ if (is_special_global_name(++m, e, enc)) return TRUE;
goto id;
case '@':
@@ -9273,7 +9731,7 @@ rb_enc_symname2_p(const char *name, int len, rb_encoding *enc)
switch (*++m) {
case '~': ++m; break;
case '=': if (*++m == '=') ++m; break;
- default: return Qfalse;
+ default: return FALSE;
}
break;
@@ -9290,15 +9748,15 @@ rb_enc_symname2_p(const char *name, int len, rb_encoding *enc)
break;
case '[':
- if (*++m != ']') return Qfalse;
+ if (*++m != ']') return FALSE;
if (*++m == '=') ++m;
break;
case '!':
+ if (len == 1) return TRUE;
switch (*++m) {
- case '\0': return Qtrue;
case '=': case '~': ++m; break;
- default: return Qfalse;
+ default: return FALSE;
}
break;
@@ -9306,7 +9764,7 @@ rb_enc_symname2_p(const char *name, int len, rb_encoding *enc)
localid = !rb_enc_isupper(*m, enc);
id:
if (m >= e || (*m != '_' && !rb_enc_isalpha(*m, enc) && ISASCII(*m)))
- return Qfalse;
+ return FALSE;
while (m < e && is_identchar(m, e, enc)) m += rb_enc_mbclen(m, e, enc);
if (localid) {
switch (*m) {
@@ -9315,7 +9773,7 @@ rb_enc_symname2_p(const char *name, int len, rb_encoding *enc)
}
break;
}
- return *m ? Qfalse : Qtrue;
+ return m == e;
}
static ID
@@ -9336,19 +9794,25 @@ rb_intern3(const char *name, long len, rb_encoding *enc)
unsigned char c;
VALUE str;
ID id;
- int last;
+ long last;
int mb;
+ st_data_t data;
struct RString fake_str;
- fake_str.basic.flags = T_STRING|RSTRING_NOEMBED|FL_FREEZE;
+ fake_str.basic.flags = T_STRING|RSTRING_NOEMBED;
fake_str.basic.klass = rb_cString;
fake_str.as.heap.len = len;
fake_str.as.heap.ptr = (char *)name;
fake_str.as.heap.aux.capa = len;
str = (VALUE)&fake_str;
rb_enc_associate(str, enc);
+ OBJ_FREEZE(str);
- if (st_lookup(global_symbols.sym_id, str, (st_data_t *)&id))
- return id;
+ if (rb_enc_str_coderange(str) == ENC_CODERANGE_BROKEN) {
+ rb_raise(rb_eEncodingError, "invalid encoding symbol");
+ }
+
+ if (st_lookup(global_symbols.sym_id, str, &data))
+ return (ID)data;
if (rb_cString && !rb_enc_asciicompat(enc)) {
id = ID_JUNK;
@@ -9438,6 +9902,16 @@ rb_intern3(const char *name, long len, rb_encoding *enc)
mbstr:;
}
new_id:
+ if (global_symbols.last_id >= ~(ID)0 >> (ID_SCOPE_SHIFT+RUBY_SPECIAL_SHIFT)) {
+ if (len > 20) {
+ rb_raise(rb_eRuntimeError, "symbol table overflow (symbol %.20s...)",
+ name);
+ }
+ else {
+ rb_raise(rb_eRuntimeError, "symbol table overflow (symbol %.*s)",
+ (int)len, name);
+ }
+ }
id |= ++global_symbols.last_id << ID_SCOPE_SHIFT;
id_register:
return register_symid(id, name, len, enc);
@@ -9481,7 +9955,7 @@ rb_id2str(ID id)
if (id < tLAST_TOKEN) {
int i = 0;
- if (rb_ispunct(id)) {
+ if (id < INT_MAX && rb_ispunct((int)id)) {
VALUE str = global_symbols.op_sym[i = (int)id];
if (!str) {
char name[2];
@@ -9578,36 +10052,31 @@ rb_sym_all_symbols(void)
int
rb_is_const_id(ID id)
{
- if (is_const_id(id)) return Qtrue;
- return Qfalse;
+ return is_const_id(id);
}
int
rb_is_class_id(ID id)
{
- if (is_class_id(id)) return Qtrue;
- return Qfalse;
+ return is_class_id(id);
}
int
rb_is_instance_id(ID id)
{
- if (is_instance_id(id)) return Qtrue;
- return Qfalse;
+ return is_instance_id(id);
}
int
rb_is_local_id(ID id)
{
- if (is_local_id(id)) return Qtrue;
- return Qfalse;
+ return is_local_id(id);
}
int
rb_is_junk_id(ID id)
{
- if (is_junk_id(id)) return Qtrue;
- return Qfalse;
+ return is_junk_id(id);
}
#endif /* !RIPPER */
@@ -9632,7 +10101,7 @@ parser_initialize(struct parser_params *parser)
parser->parser_tokidx = 0;
parser->parser_toksiz = 0;
parser->parser_heredoc_end = 0;
- parser->parser_command_start = Qtrue;
+ parser->parser_command_start = TRUE;
parser->parser_deferred_nodes = 0;
parser->parser_lex_pbeg = 0;
parser->parser_lex_p = 0;
@@ -9651,7 +10120,7 @@ parser_initialize(struct parser_params *parser)
parser->result = Qnil;
parser->parsing_thread = Qnil;
- parser->toplevel_p = Qtrue;
+ parser->toplevel_p = TRUE;
#endif
#ifdef YYMALLOC
parser->heap = NULL;
@@ -9710,8 +10179,39 @@ parser_free(void *ptr)
xfree(p);
}
-VALUE rb_parser_get_yydebug(VALUE);
-VALUE rb_parser_set_yydebug(VALUE, VALUE);
+static size_t
+parser_memsize(const void *ptr)
+{
+ struct parser_params *p = (struct parser_params*)ptr;
+ struct local_vars *local;
+ size_t size = sizeof(*p);
+
+ if (!ptr) return 0;
+ size += p->parser_toksiz;
+ for (local = p->parser_lvtbl; local; local = local->prev) {
+ size += sizeof(*local);
+ if (local->vars) size += local->vars->capa * sizeof(ID);
+ }
+#ifndef RIPPER
+ if (p->parser_ruby_sourcefile) {
+ size += strlen(p->parser_ruby_sourcefile) + 1;
+ }
+#endif
+ return size;
+}
+
+static
+#ifndef RIPPER
+const
+#endif
+rb_data_type_t parser_data_type = {
+ "parser",
+ {
+ parser_mark,
+ parser_free,
+ parser_memsize,
+ },
+};
#ifndef RIPPER
#undef rb_reserved_word
@@ -9738,22 +10238,21 @@ rb_parser_new(void)
{
struct parser_params *p = parser_new();
- return Data_Wrap_Struct(0, parser_mark, parser_free, p);
+ return TypedData_Wrap_Struct(0, &parser_data_type, p);
}
/*
* call-seq:
* ripper#end_seen? -> Boolean
*
- * Return if parsed source ended by +\_\_END\_\_+.
- * This number starts from 1.
+ * Return true if parsed source ended by +\_\_END\_\_+.
*/
VALUE
rb_parser_end_seen_p(VALUE vparser)
{
struct parser_params *parser;
- Data_Get_Struct(vparser, struct parser_params, parser);
+ TypedData_Get_Struct(vparser, struct parser_params, &parser_data_type, parser);
return ruby__end__seen ? Qtrue : Qfalse;
}
@@ -9768,7 +10267,7 @@ rb_parser_encoding(VALUE vparser)
{
struct parser_params *parser;
- Data_Get_Struct(vparser, struct parser_params, parser);
+ TypedData_Get_Struct(vparser, struct parser_params, &parser_data_type, parser);
return rb_enc_from_encoding(parser->enc);
}
@@ -9783,7 +10282,7 @@ rb_parser_get_yydebug(VALUE self)
{
struct parser_params *parser;
- Data_Get_Struct(self, struct parser_params, parser);
+ TypedData_Get_Struct(self, struct parser_params, &parser_data_type, parser);
return yydebug ? Qtrue : Qfalse;
}
@@ -9798,7 +10297,7 @@ rb_parser_set_yydebug(VALUE self, VALUE flag)
{
struct parser_params *parser;
- Data_Get_Struct(self, struct parser_params, parser);
+ TypedData_Get_Struct(self, struct parser_params, &parser_data_type, parser);
yydebug = RTEST(flag);
return flag;
}
@@ -9892,7 +10391,10 @@ ripper_validate_object(VALUE self, VALUE x)
case T_FLOAT:
return x;
case T_NODE:
- rb_raise(rb_eArgError, "NODE given: %p", x);
+ if (nd_type(x) != NODE_LASGN) {
+ rb_raise(rb_eArgError, "NODE given: %p", x);
+ }
+ return ((NODE *)x)->nd_rval;
default:
rb_raise(rb_eArgError, "wrong type of ruby object: %p (%s)",
x, rb_obj_classname(x));
@@ -9901,7 +10403,7 @@ ripper_validate_object(VALUE self, VALUE x)
}
#endif
-#define validate(x)
+#define validate(x) ((x) = get_value(x))
static VALUE
ripper_dispatch0(struct parser_params *parser, ID mid)
@@ -10048,15 +10550,30 @@ ripper_id2sym(ID id)
if (!name) {
rb_bug("cannot convert ID to string: %ld", (unsigned long)id);
}
- break;
+ return ID2SYM(id);
}
return ID2SYM(rb_intern(name));
}
+static ID
+ripper_get_id(VALUE v)
+{
+ NODE *nd;
+ if (!RB_TYPE_P(v, T_NODE)) return 0;
+ nd = (NODE *)v;
+ if (nd_type(nd) != NODE_LASGN) return 0;
+ return nd->nd_vid;
+}
+
static VALUE
-ripper_intern(const char *s)
+ripper_get_value(VALUE v)
{
- return ID2SYM(rb_intern(s));
+ NODE *nd;
+ if (v == Qundef) return Qnil;
+ if (!RB_TYPE_P(v, T_NODE)) return v;
+ nd = (NODE *)v;
+ if (nd_type(nd) != NODE_LASGN) return Qnil;
+ return nd->nd_rval;
}
static void
@@ -10120,7 +10637,7 @@ ripper_s_allocate(VALUE klass)
p = ALLOC_N(struct parser_params, 1);
MEMZERO(p, struct parser_params, 1);
- self = Data_Wrap_Struct(klass, parser_mark, parser_free, p);
+ self = TypedData_Wrap_Struct(klass, &parser_data_type, p);
p->value = self;
return self;
}
@@ -10143,7 +10660,7 @@ ripper_initialize(int argc, VALUE *argv, VALUE self)
struct parser_params *parser;
VALUE src, fname, lineno;
- Data_Get_Struct(self, struct parser_params, parser);
+ TypedData_Get_Struct(self, struct parser_params, &parser_data_type, parser);
rb_scan_args(argc, argv, "12", &src, &fname, &lineno);
if (rb_obj_respond_to(src, ripper_id_gets, 0)) {
parser->parser_lex_gets = ripper_lex_get_generic;
@@ -10169,8 +10686,6 @@ ripper_initialize(int argc, VALUE *argv, VALUE self)
return Qnil;
}
-extern VALUE rb_thread_pass(void);
-
struct ripper_args {
struct parser_params *parser;
int argc;
@@ -10182,7 +10697,7 @@ ripper_parse0(VALUE parser_v)
{
struct parser_params *parser;
- Data_Get_Struct(parser_v, struct parser_params, parser);
+ TypedData_Get_Struct(parser_v, struct parser_params, &parser_data_type, parser);
parser_prepare(parser);
ripper_yyparse((void*)parser);
return parser->result;
@@ -10193,7 +10708,7 @@ ripper_ensure(VALUE parser_v)
{
struct parser_params *parser;
- Data_Get_Struct(parser_v, struct parser_params, parser);
+ TypedData_Get_Struct(parser_v, struct parser_params, &parser_data_type, parser);
parser->parsing_thread = Qnil;
return Qnil;
}
@@ -10209,7 +10724,7 @@ ripper_parse(VALUE self)
{
struct parser_params *parser;
- Data_Get_Struct(self, struct parser_params, parser);
+ TypedData_Get_Struct(self, struct parser_params, &parser_data_type, parser);
if (!ripper_initialized_p(parser)) {
rb_raise(rb_eArgError, "method called for uninitialized object");
}
@@ -10238,7 +10753,7 @@ ripper_column(VALUE self)
struct parser_params *parser;
long col;
- Data_Get_Struct(self, struct parser_params, parser);
+ TypedData_Get_Struct(self, struct parser_params, &parser_data_type, parser);
if (!ripper_initialized_p(parser)) {
rb_raise(rb_eArgError, "method called for uninitialized object");
}
@@ -10249,6 +10764,24 @@ ripper_column(VALUE self)
/*
* call-seq:
+ * ripper#filename -> String
+ *
+ * Return current parsing filename.
+ */
+static VALUE
+ripper_filename(VALUE self)
+{
+ struct parser_params *parser;
+
+ TypedData_Get_Struct(self, struct parser_params, &parser_data_type, parser);
+ if (!ripper_initialized_p(parser)) {
+ rb_raise(rb_eArgError, "method called for uninitialized object");
+ }
+ return parser->parser_ruby_sourcefile_string;
+}
+
+/*
+ * call-seq:
* ripper#lineno -> Integer
*
* Return line number of current parsing line.
@@ -10259,7 +10792,7 @@ ripper_lineno(VALUE self)
{
struct parser_params *parser;
- Data_Get_Struct(self, struct parser_params, parser);
+ TypedData_Get_Struct(self, struct parser_params, &parser_data_type, parser);
if (!ripper_initialized_p(parser)) {
rb_raise(rb_eArgError, "method called for uninitialized object");
}
@@ -10287,17 +10820,26 @@ ripper_value(VALUE self, VALUE obj)
}
#endif
+
+void
+InitVM_ripper(void)
+{
+ parser_data_type.parent = RTYPEDDATA_TYPE(rb_parser_new());
+}
+
void
Init_ripper(void)
{
VALUE Ripper;
+ InitVM(ripper);
Ripper = rb_define_class("Ripper", rb_cObject);
rb_define_const(Ripper, "Version", rb_usascii_str_new2(RIPPER_VERSION));
rb_define_alloc_func(Ripper, ripper_s_allocate);
rb_define_method(Ripper, "initialize", ripper_initialize, -1);
rb_define_method(Ripper, "parse", ripper_parse, 0);
rb_define_method(Ripper, "column", ripper_column, 0);
+ rb_define_method(Ripper, "filename", ripper_filename, 0);
rb_define_method(Ripper, "lineno", ripper_lineno, 0);
rb_define_method(Ripper, "end_seen?", rb_parser_end_seen_p, 0);
rb_define_method(Ripper, "encoding", rb_parser_encoding, 0);
@@ -10313,7 +10855,19 @@ Init_ripper(void)
ripper_init_eventids1(Ripper);
ripper_init_eventids2(Ripper);
/* ensure existing in symbol table */
- rb_intern("||");
- rb_intern("&&");
+ (void)rb_intern("||");
+ (void)rb_intern("&&");
+
+# if 0
+ /* Hack to let RDoc document SCRIPT_LINES__ */
+
+ /*
+ * When a Hash is assigned to +SCRIPT_LINES__+ the contents of files loaded
+ * after the assignment will be added as an Array of lines with the file
+ * name as the key.
+ */
+ rb_define_global_const("SCRIPT_LINES__", Qnil);
+#endif
+
}
#endif /* RIPPER */
diff --git a/prelude.rb b/prelude.rb
index fdf401b56a..4b6ab1a677 100644
--- a/prelude.rb
+++ b/prelude.rb
@@ -1,7 +1,9 @@
-
-# Mutex
-
class Mutex
+ # call-seq:
+ # mutex.synchronize { ... }
+ #
+ # Obtains a lock, runs the block, and releases the lock when the
+ # block completes. See the example under Mutex.
def synchronize
self.lock
begin
@@ -12,24 +14,18 @@ class Mutex
end
end
-# Thread
-
class Thread
- MUTEX_FOR_THREAD_EXCLUSIVE = Mutex.new
+ MUTEX_FOR_THREAD_EXCLUSIVE = Mutex.new # :nodoc:
+
+ # call-seq:
+ # Thread.exclusive { block } => obj
+ #
+ # Wraps a block in Thread.critical, restoring the original value
+ # upon exit from the critical section, and returns the value of the
+ # block.
def self.exclusive
MUTEX_FOR_THREAD_EXCLUSIVE.synchronize{
yield
}
end
end
-
-def require_relative(relative_feature)
- c = caller.first
- e = c.rindex(/:\d+:in /)
- file = $`
- if /\A\((.*)\)/ =~ file # eval, etc.
- raise LoadError, "require_relative is called in #{$1}"
- end
- absolute_feature = File.expand_path(File.join(File.dirname(file), relative_feature))
- require absolute_feature
-end
diff --git a/proc.c b/proc.c
index 5ee01f76b5..cb44b102a5 100644
--- a/proc.c
+++ b/proc.c
@@ -10,14 +10,16 @@
**********************************************************************/
#include "eval_intern.h"
+#include "internal.h"
#include "gc.h"
+#include "iseq.h"
struct METHOD {
- VALUE oclass; /* class that holds the method */
- VALUE rclass; /* class of the receiver */
VALUE recv;
- ID id, oid;
- NODE *body;
+ VALUE rclass;
+ ID id;
+ rb_method_entry_t *me;
+ struct unlinked_method_entry_list_entry *ume;
};
VALUE rb_cUnboundMethod;
@@ -25,15 +27,13 @@ VALUE rb_cMethod;
VALUE rb_cBinding;
VALUE rb_cProc;
-VALUE rb_iseq_parameters(const rb_iseq_t *iseq, int is_proc);
-
static VALUE bmcall(VALUE, VALUE);
static int method_arity(VALUE);
-static VALUE rb_obj_is_method(VALUE m);
-static rb_iseq_t *get_method_iseq(VALUE method);
/* Proc */
+#define IS_METHOD_PROC_NODE(node) (nd_type(node) == NODE_IFUNC && (node)->nd_cfnc == bmcall)
+
static void
proc_free(void *ptr)
{
@@ -62,21 +62,32 @@ proc_mark(void *ptr)
RUBY_MARK_LEAVE("proc");
}
+static size_t
+proc_memsize(const void *ptr)
+{
+ return ptr ? sizeof(rb_proc_t) : 0;
+}
+
+static const rb_data_type_t proc_data_type = {
+ "proc",
+ {
+ proc_mark,
+ proc_free,
+ proc_memsize,
+ },
+};
+
VALUE
rb_proc_alloc(VALUE klass)
{
- VALUE obj;
rb_proc_t *proc;
- obj = Data_Make_Struct(klass, rb_proc_t, proc_mark, proc_free, proc);
- MEMZERO(proc, rb_proc_t, 1);
- return obj;
+ return TypedData_Make_Struct(klass, rb_proc_t, &proc_data_type, proc);
}
VALUE
rb_obj_is_proc(VALUE proc)
{
- if (TYPE(proc) == T_DATA &&
- RDATA(proc)->dfree == (RUBY_DATA_FUNC) proc_free) {
+ if (rb_typeddata_is_kind_of(proc, &proc_data_type)) {
return Qtrue;
}
else {
@@ -84,6 +95,7 @@ rb_obj_is_proc(VALUE proc)
}
}
+/* :nodoc: */
static VALUE
proc_dup(VALUE self)
{
@@ -94,6 +106,7 @@ proc_dup(VALUE self)
dst->block = src->block;
dst->block.proc = procval;
+ dst->blockprocval = src->blockprocval;
dst->envval = src->envval;
dst->safe_level = src->safe_level;
dst->is_lambda = src->is_lambda;
@@ -101,6 +114,7 @@ proc_dup(VALUE self)
return procval;
}
+/* :nodoc: */
static VALUE
proc_clone(VALUE self)
{
@@ -111,108 +125,107 @@ proc_clone(VALUE self)
/*
* call-seq:
- * prc.lambda? => true or false
+ * prc.lambda? -> true or false
*
- * Returns true for a Proc object which argument handling is rigid.
- * Such procs are typically generated by lambda.
+ * Returns +true+ for a Proc object for which argument handling is rigid.
+ * Such procs are typically generated by +lambda+.
*
- * A Proc object generated by proc ignore extra arguments.
+ * A Proc object generated by +proc+ ignores extra arguments.
*
- * proc {|a,b| [a,b] }.call(1,2,3) => [1,2]
+ * proc {|a,b| [a,b] }.call(1,2,3) #=> [1,2]
*
- * It provides nil for lacked arguments.
+ * It provides +nil+ for missing arguments.
*
- * proc {|a,b| [a,b] }.call(1) => [1,nil]
+ * proc {|a,b| [a,b] }.call(1) #=> [1,nil]
*
- * It expand single-array argument.
+ * It expands a single array argument.
*
- * proc {|a,b| [a,b] }.call([1,2]) => [1,2]
+ * proc {|a,b| [a,b] }.call([1,2]) #=> [1,2]
*
- * A Proc object generated by lambda doesn't have such tricks.
+ * A Proc object generated by +lambda+ doesn't have such tricks.
*
- * lambda {|a,b| [a,b] }.call(1,2,3) => ArgumentError
- * lambda {|a,b| [a,b] }.call(1) => ArgumentError
- * lambda {|a,b| [a,b] }.call([1,2]) => ArgumentError
+ * lambda {|a,b| [a,b] }.call(1,2,3) #=> ArgumentError
+ * lambda {|a,b| [a,b] }.call(1) #=> ArgumentError
+ * lambda {|a,b| [a,b] }.call([1,2]) #=> ArgumentError
*
* Proc#lambda? is a predicate for the tricks.
- * It returns true if no tricks.
+ * It returns +true+ if no tricks apply.
*
- * lambda {}.lambda? => true
- * proc {}.lambda? => false
+ * lambda {}.lambda? #=> true
+ * proc {}.lambda? #=> false
*
- * Proc.new is same as proc.
+ * Proc.new is the same as +proc+.
*
- * Proc.new {}.lambda? => false
+ * Proc.new {}.lambda? #=> false
*
- * lambda, proc and Proc.new preserves the tricks of
- * a Proc object given by & argument.
+ * +lambda+, +proc+ and Proc.new preserve the tricks of
+ * a Proc object given by <code>&</code> argument.
*
- * lambda(&lambda {}).lambda? => true
- * proc(&lambda {}).lambda? => true
- * Proc.new(&lambda {}).lambda? => true
+ * lambda(&lambda {}).lambda? #=> true
+ * proc(&lambda {}).lambda? #=> true
+ * Proc.new(&lambda {}).lambda? #=> true
*
- * lambda(&proc {}).lambda? => false
- * proc(&proc {}).lambda? => false
- * Proc.new(&proc {}).lambda? => false
+ * lambda(&proc {}).lambda? #=> false
+ * proc(&proc {}).lambda? #=> false
+ * Proc.new(&proc {}).lambda? #=> false
*
- * A Proc object generated by & argument has the tricks
+ * A Proc object generated by <code>&</code> argument has the tricks
*
* def n(&b) b.lambda? end
- * n {} => false
+ * n {} #=> false
*
- * The & argument preserves the tricks if a Proc object is given
- * by & argument.
+ * The <code>&</code> argument preserves the tricks if a Proc object
+ * is given by <code>&</code> argument.
*
- * n(&lambda {}) => true
- * n(&proc {}) => false
- * n(&Proc.new {}) => false
+ * n(&lambda {}) #=> true
+ * n(&proc {}) #=> false
+ * n(&Proc.new {}) #=> false
*
* A Proc object converted from a method has no tricks.
*
* def m() end
- * method(:m).to_proc.lambda? => true
+ * method(:m).to_proc.lambda? #=> true
*
- * n(&method(:m)) => true
- * n(&method(:m).to_proc) => true
+ * n(&method(:m)) #=> true
+ * n(&method(:m).to_proc) #=> true
*
- * define_method is treated same as method definition.
+ * +define_method+ is treated the same as method definition.
* The defined method has no tricks.
*
* class C
* define_method(:d) {}
* end
- * C.new.e(1,2) => ArgumentError
- * C.new.method(:d).to_proc.lambda? => true
+ * C.new.d(1,2) #=> ArgumentError
+ * C.new.method(:d).to_proc.lambda? #=> true
*
- * define_method always defines a method without the tricks,
+ * +define_method+ always defines a method without the tricks,
* even if a non-lambda Proc object is given.
- * This is the only exception which the tricks are not preserved.
+ * This is the only exception for which the tricks are not preserved.
*
* class C
* define_method(:e, &proc {})
* end
- * C.new.e(1,2) => ArgumentError
- * C.new.method(:e).to_proc.lambda? => true
+ * C.new.e(1,2) #=> ArgumentError
+ * C.new.method(:e).to_proc.lambda? #=> true
*
- * This exception is for a wrapper of define_method.
- * It eases defining a method defining method which defines a usual method which has no tricks.
+ * This exception insures that methods never have tricks
+ * and makes it easy to have wrappers to define methods that behave as usual.
*
- * class << C
- * def def2(name, &body)
+ * class C
+ * def self.def2(name, &body)
* define_method(name, &body)
* end
- * end
- * class C
+ *
* def2(:f) {}
* end
- * C.new.f(1,2) => ArgumentError
+ * C.new.f(1,2) #=> ArgumentError
*
- * The wrapper, def2, defines a method which has no tricks.
+ * The wrapper <i>def2</i> defines a method which has no tricks.
*
*/
-static VALUE
-proc_lambda_p(VALUE procval)
+VALUE
+rb_proc_lambda_p(VALUE procval)
{
rb_proc_t *proc;
GetProcPtr(procval, proc);
@@ -242,19 +255,36 @@ binding_mark(void *ptr)
if (ptr) {
bind = ptr;
RUBY_MARK_UNLESS_NULL(bind->env);
+ RUBY_MARK_UNLESS_NULL(bind->filename);
}
RUBY_MARK_LEAVE("binding");
}
+static size_t
+binding_memsize(const void *ptr)
+{
+ return ptr ? sizeof(rb_binding_t) : 0;
+}
+
+static const rb_data_type_t binding_data_type = {
+ "binding",
+ {
+ binding_mark,
+ binding_free,
+ binding_memsize,
+ },
+};
+
static VALUE
binding_alloc(VALUE klass)
{
VALUE obj;
rb_binding_t *bind;
- obj = Data_Make_Struct(klass, rb_binding_t, binding_mark, binding_free, bind);
+ obj = TypedData_Make_Struct(klass, rb_binding_t, &binding_data_type, bind);
return obj;
}
+/* :nodoc: */
static VALUE
binding_dup(VALUE self)
{
@@ -263,9 +293,12 @@ binding_dup(VALUE self)
GetBindingPtr(self, src);
GetBindingPtr(bindval, dst);
dst->env = src->env;
+ dst->filename = src->filename;
+ dst->line_no = src->line_no;
return bindval;
}
+/* :nodoc: */
static VALUE
binding_clone(VALUE self)
{
@@ -288,6 +321,8 @@ rb_binding_new(void)
GetBindingPtr(bindval, bind);
bind->env = rb_vm_make_env_object(th, cfp);
+ bind->filename = cfp->iseq->filename;
+ bind->line_no = rb_vm_get_sourceline(cfp);
return bindval;
}
@@ -298,12 +333,12 @@ rb_binding_new(void)
* Returns a +Binding+ object, describing the variable and
* method bindings at the point of call. This object can be used when
* calling +eval+ to execute the evaluated command in this
- * environment. Also see the description of class +Binding+.
+ * environment. See also the description of class +Binding+.
*
- * def getBinding(param)
+ * def get_binding(param)
* return binding
* end
- * b = getBinding("hello")
+ * b = get_binding("hello")
* eval("param", b) #=> "hello"
*/
@@ -315,17 +350,17 @@ rb_f_binding(VALUE self)
/*
* call-seq:
- * binding.eval(string [, filename [,lineno]]) => obj
+ * binding.eval(string [, filename [,lineno]]) -> obj
*
* Evaluates the Ruby expression(s) in <em>string</em>, in the
* <em>binding</em>'s context. If the optional <em>filename</em> and
* <em>lineno</em> parameters are present, they will be used when
* reporting syntax errors.
*
- * def getBinding(param)
+ * def get_binding(param)
* return binding
* end
- * b = getBinding("hello")
+ * b = get_binding("hello")
* b.eval("param") #=> "hello"
*/
@@ -347,16 +382,14 @@ proc_new(VALUE klass, int is_lambda)
rb_control_frame_t *cfp = th->cfp;
rb_block_t *block;
- if ((GC_GUARDED_PTR_REF(cfp->lfp[0])) != 0 &&
- !RUBY_VM_CLASS_SPECIAL_P(cfp->lfp[0])) {
+ if ((GC_GUARDED_PTR_REF(cfp->lfp[0])) != 0) {
block = GC_GUARDED_PTR_REF(cfp->lfp[0]);
}
else {
cfp = RUBY_VM_PREVIOUS_CONTROL_FRAME(cfp);
- if ((GC_GUARDED_PTR_REF(cfp->lfp[0])) != 0 &&
- !RUBY_VM_CLASS_SPECIAL_P(cfp->lfp[0])) {
+ if ((GC_GUARDED_PTR_REF(cfp->lfp[0])) != 0) {
block = GC_GUARDED_PTR_REF(cfp->lfp[0]);
@@ -384,19 +417,20 @@ proc_new(VALUE klass, int is_lambda)
}
procval = rb_vm_make_proc(th, block, klass);
+ rb_vm_rewrite_dfp_in_errinfo(th, cfp);
if (is_lambda) {
rb_proc_t *proc;
GetProcPtr(procval, proc);
- proc->is_lambda = Qtrue;
+ proc->is_lambda = TRUE;
}
return procval;
}
/*
* call-seq:
- * Proc.new {|...| block } => a_proc
- * Proc.new => a_proc
+ * Proc.new {|...| block } -> a_proc
+ * Proc.new -> a_proc
*
* Creates a new <code>Proc</code> object, bound to the current
* context. <code>Proc::new</code> may be called without a block only
@@ -413,7 +447,7 @@ proc_new(VALUE klass, int is_lambda)
static VALUE
rb_proc_s_new(int argc, VALUE *argv, VALUE klass)
{
- VALUE block = proc_new(klass, Qfalse);
+ VALUE block = proc_new(klass, FALSE);
rb_obj_call_init(block, argc, argv);
return block;
@@ -421,7 +455,7 @@ rb_proc_s_new(int argc, VALUE *argv, VALUE klass)
/*
* call-seq:
- * proc { |...| block } => a_proc
+ * proc { |...| block } -> a_proc
*
* Equivalent to <code>Proc.new</code>.
*/
@@ -429,13 +463,13 @@ rb_proc_s_new(int argc, VALUE *argv, VALUE klass)
VALUE
rb_block_proc(void)
{
- return proc_new(rb_cProc, Qfalse);
+ return proc_new(rb_cProc, FALSE);
}
VALUE
rb_block_lambda(void)
{
- return proc_new(rb_cProc, Qtrue);
+ return proc_new(rb_cProc, TRUE);
}
VALUE
@@ -447,7 +481,7 @@ rb_f_lambda(void)
/*
* call-seq:
- * lambda { |...| block } => a_proc
+ * lambda { |...| block } -> a_proc
*
* Equivalent to <code>Proc.new</code>, except the resulting Proc objects
* check the number of parameters passed when called.
@@ -459,13 +493,23 @@ proc_lambda(void)
return rb_block_lambda();
}
+/* Document-method: ===
+ *
+ * call-seq:
+ * proc === obj -> result_of_proc
+ *
+ * Invokes the block with +obj+ as the proc's parameter like Proc#call. It
+ * is to allow a proc object to be a target of +when+ clause in a case
+ * statement.
+ */
+
/* CHECKME: are the argument checking semantics correct? */
/*
* call-seq:
- * prc.call(params,...) => obj
- * prc[params,...] => obj
- * prc.(params,...) => obj
+ * prc.call(params,...) -> obj
+ * prc[params,...] -> obj
+ * prc.(params,...) -> obj
*
* Invokes the block, setting the block's parameters to the values in
* <i>params</i> using something close to method calling semantics.
@@ -474,10 +518,10 @@ proc_lambda(void)
* to an array). Note that prc.() invokes prc.call() with the parameters
* given. It's a syntax sugar to hide "call".
*
- * For procs created using <code>Kernel.proc</code>, generates an
- * error if the wrong number of parameters
- * are passed to a proc with multiple parameters. For procs created using
- * <code>Proc.new</code>, extra parameters are silently discarded.
+ * For procs created using <code>lambda</code> or <code>->()</code> an error
+ * is generated if the wrong number of parameters are passed to a Proc with
+ * multiple parameters. For procs created using <code>Proc.new</code> or
+ * <code>Kernel.proc</code>, extra parameters are silently discarded.
*
* Returns the value of the last expression evaluated in the block. See
* also <code>Proc#yield</code>.
@@ -485,22 +529,15 @@ proc_lambda(void)
* a_proc = Proc.new {|a, *b| b.collect {|i| i*a }}
* a_proc.call(9, 1, 2, 3) #=> [9, 18, 27]
* a_proc[9, 1, 2, 3] #=> [9, 18, 27]
- * a_proc = Proc.new {|a,b| a}
+ * a_proc = lambda {|a,b| a}
* a_proc.call(1,2,3)
*
* <em>produces:</em>
*
- * prog.rb:5: wrong number of arguments (3 for 2) (ArgumentError)
- * from prog.rb:4:in `call'
- * from prog.rb:5
- */
-
-/*
- * call-seq:
- * prc === obj => obj
+ * prog.rb:4:in `block in <main>': wrong number of arguments (3 for 2) (ArgumentError)
+ * from prog.rb:5:in `call'
+ * from prog.rb:5:in `<main>'
*
- * Invokes the block, with <i>obj</i> as the block's parameter. It is
- * to allow a proc object to be a target of when clause in the case statement.
*/
static VALUE
@@ -509,16 +546,16 @@ proc_call(int argc, VALUE *argv, VALUE procval)
rb_proc_t *proc;
rb_block_t *blockptr = 0;
rb_iseq_t *iseq;
+ VALUE passed_procval;
GetProcPtr(procval, proc);
iseq = proc->block.iseq;
if (BUILTIN_TYPE(iseq) == T_NODE || iseq->arg_block != -1) {
if (rb_block_given_p()) {
- rb_proc_t *proc;
- VALUE procval;
- procval = rb_block_proc();
- GetProcPtr(procval, proc);
- blockptr = &proc->block;
+ rb_proc_t *passed_proc;
+ RB_GC_GUARD(passed_procval) = rb_block_proc();
+ GetProcPtr(passed_procval, passed_proc);
+ blockptr = &passed_proc->block;
}
}
@@ -612,7 +649,7 @@ rb_proc_arity(VALUE self)
}
else {
NODE *node = (NODE *)iseq;
- if (nd_type(node) == NODE_IFUNC && node->nd_cfnc == bmcall) {
+ if (IS_METHOD_PROC_NODE(node)) {
/* method(:foo).to_proc.arity */
return method_arity(node->nd_tval);
}
@@ -621,8 +658,10 @@ rb_proc_arity(VALUE self)
return -1;
}
-static rb_iseq_t *
-get_proc_iseq(VALUE self, int *is_proc)
+#define get_proc_iseq rb_proc_get_iseq
+
+rb_iseq_t *
+rb_proc_get_iseq(VALUE self, int *is_proc)
{
rb_proc_t *proc;
rb_iseq_t *iseq;
@@ -633,9 +672,9 @@ get_proc_iseq(VALUE self, int *is_proc)
if (!RUBY_VM_NORMAL_ISEQ_P(iseq)) {
NODE *node = (NODE *)iseq;
iseq = 0;
- if (nd_type(node) == NODE_IFUNC && node->nd_cfnc == bmcall) {
+ if (IS_METHOD_PROC_NODE(node)) {
/* method(:foo).to_proc */
- iseq = get_method_iseq(node->nd_tval);
+ iseq = rb_method_get_iseq(node->nd_tval);
if (is_proc) *is_proc = 0;
}
}
@@ -660,10 +699,10 @@ iseq_location(rb_iseq_t *iseq)
/*
* call-seq:
- * prc.source_location => [String, Fixnum]
+ * prc.source_location -> [String, Fixnum]
*
- * returns the ruby source filename and line number containing this proc
- * or nil if this proc was not defined in ruby (i.e. native)
+ * Returns the Ruby source filename and line number containing this proc
+ * or +nil+ if this proc was not defined in Ruby (i.e. native)
*/
VALUE
@@ -693,9 +732,12 @@ unnamed_parameters(int arity)
/*
* call-seq:
- * proc.parameters => array
+ * prc.parameters -> array
+ *
+ * Returns the parameter information of this proc.
*
- * returns the parameter information of this proc
+ * prc = lambda{|x, y=42, *other|}
+ * prc.parameters #=> [[:req, :x], [:opt, :y], [:rest, :other]]
*/
static VALUE
@@ -711,9 +753,9 @@ rb_proc_parameters(VALUE self)
/*
* call-seq:
- * prc == other_proc => true or false
+ * prc == other_proc -> true or false
*
- * Return <code>true</code> if <i>prc</i> is the same object as
+ * Returns <code>true</code> if <i>prc</i> is the same object as
* <i>other_proc</i>, or if they are both procs with the same body.
*/
@@ -724,8 +766,7 @@ proc_eq(VALUE self, VALUE other)
return Qtrue;
}
else {
- if (TYPE(other) == T_DATA &&
- RDATA(other)->dmark == proc_mark) {
+ if (rb_obj_is_proc(other)) {
rb_proc_t *p1, *p2;
GetProcPtr(self, p1);
GetProcPtr(other, p2);
@@ -743,28 +784,29 @@ proc_eq(VALUE self, VALUE other)
/*
* call-seq:
- * prc.hash => integer
+ * prc.hash -> integer
*
- * Return hash value corresponding to proc body.
+ * Returns a hash value corresponding to proc body.
*/
static VALUE
proc_hash(VALUE self)
{
- int hash;
+ st_index_t hash;
rb_proc_t *proc;
GetProcPtr(self, proc);
- hash = (long)proc->block.iseq;
- hash ^= (long)proc->envval;
- hash ^= (long)proc->block.lfp >> 16;
- return INT2FIX(hash);
+ hash = rb_hash_start((st_index_t)proc->block.iseq);
+ hash = rb_hash_uint(hash, (st_index_t)proc->envval);
+ hash = rb_hash_uint(hash, (st_index_t)proc->block.lfp >> 16);
+ hash = rb_hash_end(hash);
+ return LONG2FIX(hash);
}
/*
* call-seq:
- * prc.to_s => string
+ * prc.to_s -> string
*
- * Shows the unique identifier for this proc, along with
+ * Returns the unique identifier for this proc, along with
* an indication of where the proc was defined.
*/
@@ -818,70 +860,132 @@ proc_to_proc(VALUE self)
}
static void
-bm_mark(struct METHOD *data)
+bm_mark(void *ptr)
{
+ struct METHOD *data = ptr;
rb_gc_mark(data->rclass);
- rb_gc_mark(data->oclass);
rb_gc_mark(data->recv);
- rb_gc_mark((VALUE)data->body);
+ if (data->me) rb_mark_method_entry(data->me);
+}
+
+static void
+bm_free(void *ptr)
+{
+ struct METHOD *data = ptr;
+ struct unlinked_method_entry_list_entry *ume = data->ume;
+ ume->me = data->me;
+ ume->next = GET_VM()->unlinked_method_entry_list;
+ GET_VM()->unlinked_method_entry_list = ume;
+ xfree(ptr);
}
-NODE *
-rb_method_body(VALUE method)
+static size_t
+bm_memsize(const void *ptr)
{
- struct METHOD *data;
+ return ptr ? sizeof(struct METHOD) : 0;
+}
- if (TYPE(method) == T_DATA &&
- RDATA(method)->dmark == (RUBY_DATA_FUNC) bm_mark) {
- Data_Get_Struct(method, struct METHOD, data);
- return data->body;
+static const rb_data_type_t method_data_type = {
+ "method",
+ {
+ bm_mark,
+ bm_free,
+ bm_memsize,
+ },
+};
+
+VALUE
+rb_obj_is_method(VALUE m)
+{
+ if (rb_typeddata_is_kind_of(m, &method_data_type)) {
+ return Qtrue;
}
else {
- return 0;
+ return Qfalse;
}
}
-NODE *rb_get_method_body(VALUE klass, ID id, ID *idp);
-
static VALUE
mnew(VALUE klass, VALUE obj, ID id, VALUE mclass, int scope)
{
VALUE method;
- NODE *body;
- struct METHOD *data;
VALUE rclass = klass;
- ID oid = id;
+ ID rid = id;
+ struct METHOD *data;
+ rb_method_entry_t *me, meb;
+ rb_method_definition_t *def = 0;
+ rb_method_flag_t flag = NOEX_UNDEF;
again:
- if ((body = rb_get_method_body(klass, id, 0)) == 0) {
- rb_print_undef(rclass, oid, 0);
+ me = rb_method_entry(klass, id);
+ if (UNDEFINED_METHOD_ENTRY_P(me)) {
+ ID rmiss = rb_intern("respond_to_missing?");
+ VALUE sym = ID2SYM(id);
+
+ if (obj != Qundef && !rb_method_basic_definition_p(klass, rmiss)) {
+ if (RTEST(rb_funcall(obj, rmiss, 2, sym, scope ? Qfalse : Qtrue))) {
+ def = ALLOC(rb_method_definition_t);
+ def->type = VM_METHOD_TYPE_MISSING;
+ def->original_id = id;
+ def->alias_count = 0;
+
+ meb.flag = 0;
+ meb.mark = 0;
+ meb.called_id = id;
+ meb.klass = klass;
+ meb.def = def;
+ me = &meb;
+ def = 0;
+
+ goto gen_method;
+ }
+ }
+ rb_print_undef(klass, id, 0);
}
- if (scope && (body->nd_noex & NOEX_MASK) != NOEX_PUBLIC) {
- rb_print_undef(rclass, oid, (int)(body->nd_noex & NOEX_MASK));
+ def = me->def;
+ if (flag == NOEX_UNDEF) {
+ flag = me->flag;
+ if (scope && (flag & NOEX_MASK) != NOEX_PUBLIC) {
+ const char *v = "";
+ switch (flag & NOEX_MASK) {
+ case NOEX_PRIVATE: v = "private"; break;
+ case NOEX_PROTECTED: v = "protected"; break;
+ }
+ rb_name_error(id, "method `%s' for %s `%s' is %s",
+ rb_id2name(id),
+ (TYPE(klass) == T_MODULE) ? "module" : "class",
+ rb_class2name(klass),
+ v);
+ }
}
-
- klass = body->nd_clss;
- body = body->nd_body;
-
- if (nd_type(body) == NODE_ZSUPER) {
- klass = RCLASS_SUPER(klass);
+ if (def && def->type == VM_METHOD_TYPE_ZSUPER) {
+ klass = RCLASS_SUPER(me->klass);
+ id = def->original_id;
goto again;
}
+ klass = me->klass;
+
while (rclass != klass &&
(FL_TEST(rclass, FL_SINGLETON) || TYPE(rclass) == T_ICLASS)) {
rclass = RCLASS_SUPER(rclass);
}
- if (TYPE(klass) == T_ICLASS)
+
+ if (TYPE(klass) == T_ICLASS) {
klass = RBASIC(klass)->klass;
- method = Data_Make_Struct(mclass, struct METHOD, bm_mark, -1, data);
- data->oclass = klass;
- data->recv = obj;
+ }
+
+ gen_method:
+ method = TypedData_Make_Struct(mclass, struct METHOD, &method_data_type, data);
- data->id = id;
- data->body = body;
+ data->recv = obj;
data->rclass = rclass;
- data->oid = oid;
+ data->id = rid;
+ data->me = ALLOC(rb_method_entry_t);
+ *data->me = *me;
+ data->me->def->alias_count++;
+ data->ume = ALLOC(struct unlinked_method_entry_list_entry);
+
OBJ_INFECT(method, klass);
return method;
@@ -914,61 +1018,62 @@ mnew(VALUE klass, VALUE obj, ID id, VALUE mclass, int scope)
/*
* call-seq:
- * meth == other_meth => true or false
+ * meth == other_meth -> true or false
*
- * Two method objects are equal if that are bound to the same
- * object and contain the same body.
+ * Two method objects are equal if they are bound to the same
+ * object and refer to the same method definition.
*/
-
static VALUE
method_eq(VALUE method, VALUE other)
{
struct METHOD *m1, *m2;
- if (TYPE(other) != T_DATA
- || RDATA(other)->dmark != (RUBY_DATA_FUNC) bm_mark)
+ if (!rb_obj_is_method(other))
return Qfalse;
if (CLASS_OF(method) != CLASS_OF(other))
return Qfalse;
- Data_Get_Struct(method, struct METHOD, m1);
- Data_Get_Struct(other, struct METHOD, m2);
+ Check_TypedStruct(method, &method_data_type);
+ m1 = (struct METHOD *)DATA_PTR(method);
+ m2 = (struct METHOD *)DATA_PTR(other);
- if (m1->oclass != m2->oclass || m1->rclass != m2->rclass ||
- m1->recv != m2->recv || m1->body != m2->body)
+ if (!rb_method_entry_eq(m1->me, m2->me) ||
+ m1->rclass != m2->rclass ||
+ m1->recv != m2->recv) {
return Qfalse;
+ }
return Qtrue;
}
/*
* call-seq:
- * meth.hash => integer
+ * meth.hash -> integer
*
- * Return a hash value corresponding to the method object.
+ * Returns a hash value corresponding to the method object.
*/
static VALUE
method_hash(VALUE method)
{
struct METHOD *m;
- long hash;
+ st_index_t hash;
- Data_Get_Struct(method, struct METHOD, m);
- hash = (long)m->oclass;
- hash ^= (long)m->rclass;
- hash ^= (long)m->recv;
- hash ^= (long)m->body;
+ TypedData_Get_Struct(method, struct METHOD, &method_data_type, m);
+ hash = rb_hash_start((st_index_t)m->rclass);
+ hash = rb_hash_uint(hash, (st_index_t)m->recv);
+ hash = rb_hash_uint(hash, (st_index_t)m->me->def);
+ hash = rb_hash_end(hash);
return INT2FIX(hash);
}
/*
* call-seq:
- * meth.unbind => unbound_method
+ * meth.unbind -> unbound_method
*
- * Dissociates <i>meth</i> from it's current receiver. The resulting
+ * Dissociates <i>meth</i> from its current receiver. The resulting
* <code>UnboundMethod</code> can subsequently be bound to a new object
* of the same class (see <code>UnboundMethod</code>).
*/
@@ -979,15 +1084,16 @@ method_unbind(VALUE obj)
VALUE method;
struct METHOD *orig, *data;
- Data_Get_Struct(obj, struct METHOD, orig);
- method =
- Data_Make_Struct(rb_cUnboundMethod, struct METHOD, bm_mark, -1, data);
- data->oclass = orig->oclass;
+ TypedData_Get_Struct(obj, struct METHOD, &method_data_type, orig);
+ method = TypedData_Make_Struct(rb_cUnboundMethod, struct METHOD,
+ &method_data_type, data);
data->recv = Qundef;
data->id = orig->id;
- data->body = orig->body;
+ data->me = ALLOC(rb_method_entry_t);
+ *data->me = *orig->me;
+ if (orig->me->def) orig->me->def->alias_count++;
data->rclass = orig->rclass;
- data->oid = orig->oid;
+ data->ume = ALLOC(struct unlinked_method_entry_list_entry);
OBJ_INFECT(method, obj);
return method;
@@ -995,7 +1101,7 @@ method_unbind(VALUE obj)
/*
* call-seq:
- * meth.receiver => object
+ * meth.receiver -> object
*
* Returns the bound receiver of the method object.
*/
@@ -1005,13 +1111,13 @@ method_receiver(VALUE obj)
{
struct METHOD *data;
- Data_Get_Struct(obj, struct METHOD, data);
+ TypedData_Get_Struct(obj, struct METHOD, &method_data_type, data);
return data->recv;
}
/*
* call-seq:
- * meth.name => symbol
+ * meth.name -> symbol
*
* Returns the name of the method.
*/
@@ -1021,13 +1127,13 @@ method_name(VALUE obj)
{
struct METHOD *data;
- Data_Get_Struct(obj, struct METHOD, data);
+ TypedData_Get_Struct(obj, struct METHOD, &method_data_type, data);
return ID2SYM(data->id);
}
/*
* call-seq:
- * meth.owner => class_or_module
+ * meth.owner -> class_or_module
*
* Returns the class or module that defines the method.
*/
@@ -1037,13 +1143,13 @@ method_owner(VALUE obj)
{
struct METHOD *data;
- Data_Get_Struct(obj, struct METHOD, data);
- return data->oclass;
+ TypedData_Get_Struct(obj, struct METHOD, &method_data_type, data);
+ return data->me->klass;
}
/*
* call-seq:
- * obj.method(sym) => method
+ * obj.method(sym) -> method
*
* Looks up the named method as a receiver in <i>obj</i>, returning a
* <code>Method</code> object (or raising <code>NameError</code>). The
@@ -1072,18 +1178,25 @@ method_owner(VALUE obj)
VALUE
rb_obj_method(VALUE obj, VALUE vid)
{
- return mnew(CLASS_OF(obj), obj, rb_to_id(vid), rb_cMethod, Qfalse);
+ return mnew(CLASS_OF(obj), obj, rb_to_id(vid), rb_cMethod, FALSE);
}
+/*
+ * call-seq:
+ * obj.public_method(sym) -> method
+ *
+ * Similar to _method_, searches public method only.
+ */
+
VALUE
rb_obj_public_method(VALUE obj, VALUE vid)
{
- return mnew(CLASS_OF(obj), obj, rb_to_id(vid), rb_cMethod, Qtrue);
+ return mnew(CLASS_OF(obj), obj, rb_to_id(vid), rb_cMethod, TRUE);
}
/*
* call-seq:
- * mod.instance_method(symbol) => unbound_method
+ * mod.instance_method(symbol) -> unbound_method
*
* Returns an +UnboundMethod+ representing the given
* instance method in _mod_.
@@ -1094,17 +1207,16 @@ rb_obj_public_method(VALUE obj, VALUE vid)
* def do_e() print "!\n"; end
* def do_v() print "Dave"; end
* Dispatcher = {
- * ?a => instance_method(:do_a),
- * ?d => instance_method(:do_d),
- * ?e => instance_method(:do_e),
- * ?v => instance_method(:do_v)
+ * "a" => instance_method(:do_a),
+ * "d" => instance_method(:do_d),
+ * "e" => instance_method(:do_e),
+ * "v" => instance_method(:do_v)
* }
* def interpret(string)
- * string.each_byte {|b| Dispatcher[b].bind(self).call }
+ * string.each_char {|b| Dispatcher[b].bind(self).call }
* end
* end
*
- *
* interpreter = Interpreter.new
* interpreter.interpret('dave')
*
@@ -1116,22 +1228,29 @@ rb_obj_public_method(VALUE obj, VALUE vid)
static VALUE
rb_mod_instance_method(VALUE mod, VALUE vid)
{
- return mnew(mod, Qundef, rb_to_id(vid), rb_cUnboundMethod, Qfalse);
+ return mnew(mod, Qundef, rb_to_id(vid), rb_cUnboundMethod, FALSE);
}
+/*
+ * call-seq:
+ * mod.public_instance_method(symbol) -> unbound_method
+ *
+ * Similar to _instance_method_, searches public method only.
+ */
+
static VALUE
rb_mod_public_instance_method(VALUE mod, VALUE vid)
{
- return mnew(mod, Qundef, rb_to_id(vid), rb_cUnboundMethod, Qtrue);
+ return mnew(mod, Qundef, rb_to_id(vid), rb_cUnboundMethod, TRUE);
}
/*
* call-seq:
- * define_method(symbol, method) => new_method
- * define_method(symbol) { block } => proc
+ * define_method(symbol, method) -> new_method
+ * define_method(symbol) { block } -> proc
*
* Defines an instance method in the receiver. The _method_
- * parameter can be a +Proc+ or +Method+ object.
+ * parameter can be a +Proc+, a +Method+ or an +UnboundMethod+ object.
* If a block is specified, it is used as the method body. This block
* is evaluated using <code>instance_eval</code>, a point that is
* tricky to demonstrate because <code>define_method</code> is private.
@@ -1167,7 +1286,6 @@ rb_mod_define_method(int argc, VALUE *argv, VALUE mod)
{
ID id;
VALUE body;
- NODE *node;
int noex = NOEX_PUBLIC;
if (argc == 1) {
@@ -1187,21 +1305,21 @@ rb_mod_define_method(int argc, VALUE *argv, VALUE mod)
rb_raise(rb_eArgError, "wrong number of arguments (%d for 1)", argc);
}
- if (RDATA(body)->dmark == (RUBY_DATA_FUNC) bm_mark) {
+ if (rb_obj_is_method(body)) {
struct METHOD *method = (struct METHOD *)DATA_PTR(body);
VALUE rclass = method->rclass;
- if (rclass != mod) {
+ if (rclass != mod && !RTEST(rb_class_inherited_p(mod, rclass))) {
if (FL_TEST(rclass, FL_SINGLETON)) {
rb_raise(rb_eTypeError,
"can't bind singleton method to a different class");
}
- if (!RTEST(rb_class_inherited_p(mod, rclass))) {
+ else {
rb_raise(rb_eTypeError,
"bind argument must be a subclass of %s",
rb_class2name(rclass));
}
}
- node = method->body;
+ rb_method_entry_set(mod, id, method->me, noex);
}
else if (rb_obj_is_proc(body)) {
rb_proc_t *proc;
@@ -1210,22 +1328,45 @@ rb_mod_define_method(int argc, VALUE *argv, VALUE mod)
if (BUILTIN_TYPE(proc->block.iseq) != T_NODE) {
proc->block.iseq->defined_method_id = id;
proc->block.iseq->klass = mod;
- proc->is_lambda = Qtrue;
- proc->is_from_method = Qtrue;
+ proc->is_lambda = TRUE;
+ proc->is_from_method = TRUE;
}
- node = NEW_BMETHOD(body);
+ rb_add_method(mod, id, VM_METHOD_TYPE_BMETHOD, (void *)body, noex);
}
else {
/* type error */
rb_raise(rb_eTypeError, "wrong argument type (expected Proc/Method)");
}
- /* TODO: visibility */
-
- rb_add_method(mod, id, node, noex);
return body;
}
+/*
+ * call-seq:
+ * define_singleton_method(symbol, method) -> new_method
+ * define_singleton_method(symbol) { block } -> proc
+ *
+ * Defines a singleton method in the receiver. The _method_
+ * parameter can be a +Proc+, a +Method+ or an +UnboundMethod+ object.
+ * If a block is specified, it is used as the method body.
+ *
+ * class A
+ * class << self
+ * def class_name
+ * to_s
+ * end
+ * end
+ * end
+ * A.define_singleton_method(:who_am_i) do
+ * "I am: #{class_name}"
+ * end
+ * A.who_am_i # ==> "I am: A"
+ *
+ * guy = "Bob"
+ * guy.define_singleton_method(:hello) { "#{self}: Hello there!" }
+ * guy.hello #=> "Bob: Hello there!"
+ */
+
static VALUE
rb_obj_define_method(int argc, VALUE *argv, VALUE obj)
{
@@ -1245,18 +1386,22 @@ method_clone(VALUE self)
VALUE clone;
struct METHOD *orig, *data;
- Data_Get_Struct(self, struct METHOD, orig);
- clone = Data_Make_Struct(CLASS_OF(self), struct METHOD, bm_mark, -1, data);
+ TypedData_Get_Struct(self, struct METHOD, &method_data_type, orig);
+ clone = TypedData_Make_Struct(CLASS_OF(self), struct METHOD, &method_data_type, data);
CLONESETUP(clone, self);
*data = *orig;
+ data->me = ALLOC(rb_method_entry_t);
+ *data->me = *orig->me;
+ if (data->me->def) data->me->def->alias_count++;
+ data->ume = ALLOC(struct unlinked_method_entry_list_entry);
return clone;
}
/*
* call-seq:
- * meth.call(args, ...) => obj
- * meth[args, ...] => obj
+ * meth.call(args, ...) -> obj
+ * meth[args, ...] -> obj
*
* Invokes the <i>meth</i> with the specified arguments, returning the
* method's return value.
@@ -1274,7 +1419,7 @@ rb_method_call(int argc, VALUE *argv, VALUE method)
int state;
volatile int safe = -1;
- Data_Get_Struct(method, struct METHOD, data);
+ TypedData_Get_Struct(method, struct METHOD, &method_data_type, data);
if (data->recv == Qundef) {
rb_raise(rb_eTypeError, "can't call unbound method; bind first");
}
@@ -1287,12 +1432,9 @@ rb_method_call(int argc, VALUE *argv, VALUE method)
}
if ((state = EXEC_TAG()) == 0) {
rb_thread_t *th = GET_THREAD();
- VALUE rb_vm_call(rb_thread_t * th, VALUE klass, VALUE recv, VALUE id, ID oid,
- int argc, const VALUE *argv, const NODE *body, int nosuper);
PASS_PASSED_BLOCK_TH(th);
- result = rb_vm_call(th, data->oclass, data->recv, data->id, data->oid,
- argc, argv, data->body, 0);
+ result = rb_vm_call(th, data->recv, data->id, argc, argv, data->me);
}
POP_TAG();
if (safe >= 0)
@@ -1398,61 +1540,78 @@ umethod_bind(VALUE method, VALUE recv)
{
struct METHOD *data, *bound;
- Data_Get_Struct(method, struct METHOD, data);
- if (data->rclass != CLASS_OF(recv)) {
+ TypedData_Get_Struct(method, struct METHOD, &method_data_type, data);
+
+ if (data->rclass != CLASS_OF(recv) && !rb_obj_is_kind_of(recv, data->rclass)) {
if (FL_TEST(data->rclass, FL_SINGLETON)) {
rb_raise(rb_eTypeError,
"singleton method called for a different object");
}
- if (!rb_obj_is_kind_of(recv, data->rclass)) {
+ else {
rb_raise(rb_eTypeError, "bind argument must be an instance of %s",
rb_class2name(data->rclass));
}
}
- method = Data_Make_Struct(rb_cMethod, struct METHOD, bm_mark, -1, bound);
+ method = TypedData_Make_Struct(rb_cMethod, struct METHOD, &method_data_type, bound);
*bound = *data;
+ bound->me = ALLOC(rb_method_entry_t);
+ *bound->me = *data->me;
+ if (bound->me->def) bound->me->def->alias_count++;
bound->recv = recv;
bound->rclass = CLASS_OF(recv);
+ data->ume = ALLOC(struct unlinked_method_entry_list_entry);
return method;
}
int
-rb_node_arity(NODE* body)
+rb_method_entry_arity(const rb_method_entry_t *me)
{
- switch (nd_type(body)) {
- case NODE_CFUNC:
- if (body->nd_argc < 0)
+ const rb_method_definition_t *def = me->def;
+ if (!def) return 0;
+ switch (def->type) {
+ case VM_METHOD_TYPE_CFUNC:
+ if (def->body.cfunc.argc < 0)
return -1;
- return check_argc(body->nd_argc);
- case NODE_ZSUPER:
+ return check_argc(def->body.cfunc.argc);
+ case VM_METHOD_TYPE_ZSUPER:
return -1;
- case NODE_ATTRSET:
+ case VM_METHOD_TYPE_ATTRSET:
return 1;
- case NODE_IVAR:
+ case VM_METHOD_TYPE_IVAR:
return 0;
- case NODE_BMETHOD:
- return rb_proc_arity(body->nd_cval);
- case RUBY_VM_METHOD_NODE:
- {
- rb_iseq_t *iseq;
- GetISeqPtr((VALUE)body->nd_body, iseq);
- if (iseq->arg_rest == -1 && iseq->arg_opts == 0) {
- return iseq->argc;
- }
- else {
- return -(iseq->argc + 1 + iseq->arg_post_len);
- }
+ case VM_METHOD_TYPE_BMETHOD:
+ return rb_proc_arity(def->body.proc);
+ case VM_METHOD_TYPE_ISEQ: {
+ rb_iseq_t *iseq = def->body.iseq;
+ if (iseq->arg_rest == -1 && iseq->arg_opts == 0) {
+ return iseq->argc;
}
- default:
- rb_raise(rb_eArgError, "invalid node 0x%x", nd_type(body));
+ else {
+ return -(iseq->argc + 1 + iseq->arg_post_len);
+ }
+ }
+ case VM_METHOD_TYPE_UNDEF:
+ case VM_METHOD_TYPE_NOTIMPLEMENTED:
+ return 0;
+ case VM_METHOD_TYPE_MISSING:
+ return -1;
+ case VM_METHOD_TYPE_OPTIMIZED: {
+ switch (def->body.optimize_type) {
+ case OPTIMIZED_METHOD_TYPE_SEND:
+ return -1;
+ default:
+ break;
+ }
+ }
}
+ rb_bug("rb_method_entry_arity: invalid method entry type (%d)", def->type);
}
/*
* call-seq:
- * meth.arity => fixnum
+ * meth.arity -> fixnum
*
* Returns an indication of the number of arguments accepted by a
* method. Returns a nonnegative integer for methods that take a fixed
@@ -1495,15 +1654,15 @@ method_arity(VALUE method)
{
struct METHOD *data;
- Data_Get_Struct(method, struct METHOD, data);
- return rb_node_arity(data->body);
+ TypedData_Get_Struct(method, struct METHOD, &method_data_type, data);
+ return rb_method_entry_arity(data->me);
}
int
rb_mod_method_arity(VALUE mod, ID id)
{
- NODE *node = rb_method_node(mod, id);
- return rb_node_arity(node);
+ rb_method_entry_t *me = rb_method_entry(mod, id);
+ return rb_method_entry_arity(me);
}
int
@@ -1512,52 +1671,65 @@ rb_obj_method_arity(VALUE obj, ID id)
return rb_mod_method_arity(CLASS_OF(obj), id);
}
-static rb_iseq_t *
-get_method_iseq(VALUE method)
+static inline rb_method_definition_t *
+method_get_def(VALUE method)
{
struct METHOD *data;
- NODE *body;
- rb_iseq_t *iseq;
- Data_Get_Struct(method, struct METHOD, data);
- body = data->body;
- switch (nd_type(body)) {
- case NODE_BMETHOD:
- return get_proc_iseq(body->nd_cval, 0);
- case RUBY_VM_METHOD_NODE:
- GetISeqPtr((VALUE)body->nd_body, iseq);
- if (RUBY_VM_NORMAL_ISEQ_P(iseq)) break;
+ TypedData_Get_Struct(method, struct METHOD, &method_data_type, data);
+ return data->me->def;
+}
+
+static rb_iseq_t *
+method_get_iseq(rb_method_definition_t *def)
+{
+ switch (def->type) {
+ case VM_METHOD_TYPE_BMETHOD:
+ return get_proc_iseq(def->body.proc, 0);
+ case VM_METHOD_TYPE_ISEQ:
+ return def->body.iseq;
default:
return 0;
}
- return iseq;
+}
+
+rb_iseq_t *
+rb_method_get_iseq(VALUE method)
+{
+ return method_get_iseq(method_get_def(method));
}
/*
* call-seq:
- * meth.source_location => [String, Fixnum]
+ * meth.source_location -> [String, Fixnum]
*
- * returns the ruby source filename and line number containing this method
- * or nil if this method was not defined in ruby (i.e. native)
+ * Returns the Ruby source filename and line number containing this method
+ * or nil if this method was not defined in Ruby (i.e. native)
*/
VALUE
rb_method_location(VALUE method)
{
- return iseq_location(get_method_iseq(method));
+ rb_method_definition_t *def = method_get_def(method);
+ if (def->type == VM_METHOD_TYPE_ATTRSET || def->type == VM_METHOD_TYPE_IVAR) {
+ if (!def->body.attr.location)
+ return Qnil;
+ return rb_ary_dup(def->body.attr.location);
+ }
+ return iseq_location(method_get_iseq(def));
}
/*
* call-seq:
- * meth.parameters => array
+ * meth.parameters -> array
*
- * returns the parameter information of this method
+ * Returns the parameter information of this method.
*/
static VALUE
rb_method_parameters(VALUE method)
{
- rb_iseq_t *iseq = get_method_iseq(method);
+ rb_iseq_t *iseq = rb_method_get_iseq(method);
if (!iseq) {
return unnamed_parameters(method_arity(method));
}
@@ -1566,10 +1738,10 @@ rb_method_parameters(VALUE method)
/*
* call-seq:
- * meth.to_s => string
- * meth.inspect => string
+ * meth.to_s -> string
+ * meth.inspect -> string
*
- * Show the name of the underlying method.
+ * Returns the name of the underlying method.
*
* "cat".method(:count).inspect #=> "#<Method: String#count>"
*/
@@ -1582,17 +1754,17 @@ method_inspect(VALUE method)
const char *s;
const char *sharp = "#";
- Data_Get_Struct(method, struct METHOD, data);
+ TypedData_Get_Struct(method, struct METHOD, &method_data_type, data);
str = rb_str_buf_new2("#<");
s = rb_obj_classname(method);
rb_str_buf_cat2(str, s);
rb_str_buf_cat2(str, ": ");
- if (FL_TEST(data->oclass, FL_SINGLETON)) {
- VALUE v = rb_iv_get(data->oclass, "__attached__");
+ if (FL_TEST(data->me->klass, FL_SINGLETON)) {
+ VALUE v = rb_iv_get(data->me->klass, "__attached__");
if (data->recv == Qundef) {
- rb_str_buf_append(str, rb_inspect(data->oclass));
+ rb_str_buf_append(str, rb_inspect(data->me->klass));
}
else if (data->recv == v) {
rb_str_buf_append(str, rb_inspect(v));
@@ -1608,15 +1780,15 @@ method_inspect(VALUE method)
}
else {
rb_str_buf_cat2(str, rb_class2name(data->rclass));
- if (data->rclass != data->oclass) {
+ if (data->rclass != data->me->klass) {
rb_str_buf_cat2(str, "(");
- rb_str_buf_cat2(str, rb_class2name(data->oclass));
+ rb_str_buf_cat2(str, rb_class2name(data->me->klass));
rb_str_buf_cat2(str, ")");
}
}
rb_str_buf_cat2(str, sharp);
- rb_str_append(str, rb_id2str(data->oid));
- if (rb_notimplement_body_p(data->body)) {
+ rb_str_append(str, rb_id2str(data->me->def->original_id));
+ if (data->me->def->type == VM_METHOD_TYPE_NOTIMPLEMENTED) {
rb_str_buf_cat2(str, " (not-implemented)");
}
rb_str_buf_cat2(str, ">");
@@ -1666,7 +1838,7 @@ rb_proc_new(
/*
* call-seq:
- * meth.to_proc => prc
+ * meth.to_proc -> prc
*
* Returns a <code>Proc</code> object corresponding to this method.
*/
@@ -1691,18 +1863,9 @@ method_proc(VALUE method)
return procval;
}
-static VALUE
-rb_obj_is_method(VALUE m)
-{
- if (TYPE(m) == T_DATA && RDATA(m)->dmark == (RUBY_DATA_FUNC) bm_mark) {
- return Qtrue;
- }
- return Qfalse;
-}
-
/*
* call_seq:
- * local_jump_error.exit_value => obj
+ * local_jump_error.exit_value -> obj
*
* Returns the exit value associated with this +LocalJumpError+.
*/
@@ -1714,7 +1877,7 @@ localjump_xvalue(VALUE exc)
/*
* call-seq:
- * local_jump_error.reason => symbol
+ * local_jump_error.reason -> symbol
*
* The reason this block was terminated:
* :break, :redo, :retry, :next, :return, or :noreason.
@@ -1728,7 +1891,7 @@ localjump_reason(VALUE exc)
/*
* call-seq:
- * prc.binding => binding
+ * prc.binding -> binding
*
* Returns the binding associated with <i>prc</i>. Note that
* <code>Kernel#eval</code> accepts either a <code>Proc</code> or a
@@ -1745,17 +1908,27 @@ static VALUE
proc_binding(VALUE self)
{
rb_proc_t *proc;
- VALUE bindval = binding_alloc(rb_cBinding);
+ VALUE bindval;
rb_binding_t *bind;
GetProcPtr(self, proc);
- GetBindingPtr(bindval, bind);
-
if (TYPE(proc->block.iseq) == T_NODE) {
- rb_raise(rb_eArgError, "Can't create Binding from C level Proc");
+ if (!IS_METHOD_PROC_NODE((NODE *)proc->block.iseq)) {
+ rb_raise(rb_eArgError, "Can't create Binding from C level Proc");
+ }
}
+ bindval = binding_alloc(rb_cBinding);
+ GetBindingPtr(bindval, bind);
bind->env = proc->envval;
+ if (RUBY_VM_NORMAL_ISEQ_P(proc->block.iseq)) {
+ bind->filename = proc->block.iseq->filename;
+ bind->line_no = rb_iseq_first_lineno(proc->block.iseq);
+ }
+ else {
+ bind->filename = Qnil;
+ bind->line_no = 0;
+ }
return bindval;
}
@@ -1765,9 +1938,17 @@ static VALUE
make_curry_proc(VALUE proc, VALUE passed, VALUE arity)
{
VALUE args = rb_ary_new3(3, proc, passed, arity);
+ rb_proc_t *procp;
+ int is_lambda;
+
+ GetProcPtr(proc, procp);
+ is_lambda = procp->is_lambda;
rb_ary_freeze(passed);
rb_ary_freeze(args);
- return rb_proc_new(curry, args);
+ proc = rb_proc_new(curry, args);
+ GetProcPtr(proc, procp);
+ procp->is_lambda = is_lambda;
+ return proc;
}
static VALUE
@@ -1781,7 +1962,7 @@ curry(VALUE dummy, VALUE args, int argc, VALUE *argv, VALUE passed_proc)
passed = rb_ary_plus(passed, rb_ary_new4(argc, argv));
rb_ary_freeze(passed);
- if(RARRAY_LEN(passed) < FIX2INT(arity)) {
+ if (RARRAY_LEN(passed) < FIX2INT(arity)) {
if (!NIL_P(passed_proc)) {
rb_warn("given block not used");
}
@@ -1796,8 +1977,8 @@ curry(VALUE dummy, VALUE args, int argc, VALUE *argv, VALUE passed_proc)
/*
* call-seq:
- * prc.curry => a_proc
- * prc.curry(arity) => a_proc
+ * prc.curry -> a_proc
+ * prc.curry(arity) -> a_proc
*
* Returns a curried proc. If the optional <i>arity</i> argument is given,
* it determines the number of arguments.
@@ -1822,16 +2003,16 @@ curry(VALUE dummy, VALUE args, int argc, VALUE *argv, VALUE passed_proc)
*
* b = lambda {|x, y, z| (x||0) + (y||0) + (z||0) }
* p b.curry[1][2][3] #=> 6
- * p b.curry[1, 2][3, 4] #=> wrong number of arguments (4 or 3)
- * p b.curry(5) #=> wrong number of arguments (5 or 3)
- * p b.curry(1) #=> wrong number of arguments (1 or 3)
+ * p b.curry[1, 2][3, 4] #=> wrong number of arguments (4 for 3)
+ * p b.curry(5) #=> wrong number of arguments (5 for 3)
+ * p b.curry(1) #=> wrong number of arguments (1 for 3)
*
* b = lambda {|x, y, z, *w| (x||0) + (y||0) + (z||0) + w.inject(0, &:+) }
* p b.curry[1][2][3] #=> 6
* p b.curry[1, 2][3, 4] #=> 10
* p b.curry(5)[1][2][3][4][5] #=> 15
* p b.curry(5)[1, 2][3, 4][5] #=> 15
- * p b.curry(1) #=> wrong number of arguments (1 or 3)
+ * p b.curry(1) #=> wrong number of arguments (1 for 3)
*
* b = proc { :foo }
* p b.curry[] #=> :foo
@@ -1853,7 +2034,7 @@ proc_curry(int argc, VALUE *argv, VALUE self)
}
else {
sarity = FIX2INT(arity);
- if (proc_lambda_p(self) && (sarity < marity || (sarity > marity && !opt))) {
+ if (rb_proc_lambda_p(self) && (sarity < marity || (sarity > marity && !opt))) {
rb_raise(rb_eArgError, "wrong number of arguments (%d for %d)", sarity, marity);
}
}
@@ -1862,6 +2043,49 @@ proc_curry(int argc, VALUE *argv, VALUE self)
}
/*
+ * Document-class: LocalJumpError
+ *
+ * Raised when Ruby can't yield as requested.
+ *
+ * A typical scenario is attempting to yield when no block is given:
+ *
+ * def call_block
+ * yield 42
+ * end
+ * call_block
+ *
+ * <em>raises the exception:</em>
+ *
+ * LocalJumpError: no block given (yield)
+ *
+ * A more subtle example:
+ *
+ * def get_me_a_return
+ * Proc.new { return 42 }
+ * end
+ * get_me_a_return.call
+ *
+ * <em>raises the exception:</em>
+ *
+ * LocalJumpError: unexpected return
+ */
+
+/*
+ * Document-class: SystemStackError
+ *
+ * Raised in case of a stack overflow.
+ *
+ * def me_myself_and_i
+ * me_myself_and_i
+ * end
+ * me_myself_and_i
+ *
+ * <em>raises the exception:</em>
+ *
+ * SystemStackError: stack level too deep
+ */
+
+/*
* <code>Proc</code> objects are blocks of code that have been bound to
* a set of local variables. Once bound, the code may be called in
* different contexts and still access those variables.
@@ -1886,10 +2110,22 @@ Init_Proc(void)
rb_cProc = rb_define_class("Proc", rb_cObject);
rb_undef_alloc_func(rb_cProc);
rb_define_singleton_method(rb_cProc, "new", rb_proc_s_new, -1);
+
+#if 0 /* incomplete. */
+ rb_add_method(rb_cProc, rb_intern("call"), VM_METHOD_TYPE_OPTIMIZED,
+ (void *)OPTIMIZED_METHOD_TYPE_CALL, 0);
+ rb_add_method(rb_cProc, rb_intern("[]"), VM_METHOD_TYPE_OPTIMIZED,
+ (void *)OPTIMIZED_METHOD_TYPE_CALL, 0);
+ rb_add_method(rb_cProc, rb_intern("==="), VM_METHOD_TYPE_OPTIMIZED,
+ (void *)OPTIMIZED_METHOD_TYPE_CALL, 0);
+ rb_add_method(rb_cProc, rb_intern("yield"), VM_METHOD_TYPE_OPTIMIZED,
+ (void *)OPTIMIZED_METHOD_TYPE_CALL, 0);
+#else
rb_define_method(rb_cProc, "call", proc_call, -1);
rb_define_method(rb_cProc, "[]", proc_call, -1);
rb_define_method(rb_cProc, "===", proc_call, -1);
rb_define_method(rb_cProc, "yield", proc_call, -1);
+#endif
rb_define_method(rb_cProc, "to_proc", proc_to_proc, 0);
rb_define_method(rb_cProc, "arity", proc_arity, 0);
rb_define_method(rb_cProc, "clone", proc_clone, 0);
@@ -1898,7 +2134,7 @@ Init_Proc(void)
rb_define_method(rb_cProc, "eql?", proc_eq, 1);
rb_define_method(rb_cProc, "hash", proc_hash, 0);
rb_define_method(rb_cProc, "to_s", proc_to_s, 0);
- rb_define_method(rb_cProc, "lambda?", proc_lambda_p, 0);
+ rb_define_method(rb_cProc, "lambda?", rb_proc_lambda_p, 0);
rb_define_method(rb_cProc, "binding", proc_binding, 0);
rb_define_method(rb_cProc, "curry", proc_curry, -1);
rb_define_method(rb_cProc, "source_location", rb_proc_location, 0);
@@ -1913,7 +2149,6 @@ Init_Proc(void)
sysstack_error = rb_exc_new3(rb_eSysStackError,
rb_obj_freeze(rb_str_new2("stack level too deep")));
OBJ_TAINT(sysstack_error);
- OBJ_FREEZE(sysstack_error);
/* utility functions */
rb_define_global_function("proc", rb_block_proc, 0);
@@ -1985,15 +2220,15 @@ Init_Proc(void)
* def initialize(n)
* @secret = n
* end
- * def getBinding
+ * def get_binding
* return binding()
* end
* end
*
* k1 = Demo.new(99)
- * b1 = k1.getBinding
+ * b1 = k1.get_binding
* k2 = Demo.new(-3)
- * b2 = k2.getBinding
+ * b2 = k2.get_binding
*
* eval("@secret", b1) #=> 99
* eval("@secret", b2) #=> -3
diff --git a/process.c b/process.c
index c473fe41e7..99cfc69469 100644
--- a/process.c
+++ b/process.c
@@ -14,6 +14,7 @@
#include "ruby/ruby.h"
#include "ruby/io.h"
#include "ruby/util.h"
+#include "internal.h"
#include "vm_core.h"
#include <stdio.h>
@@ -28,6 +29,9 @@
#ifdef HAVE_FCNTL_H
#include <fcntl.h>
#endif
+#ifdef HAVE_PROCESS_H
+#include <process.h>
+#endif
#include <time.h>
#include <ctype.h>
@@ -39,8 +43,6 @@
#define EXIT_FAILURE 1
#endif
-struct timeval rb_time_interval(VALUE);
-
#ifdef HAVE_SYS_WAIT_H
# include <sys/wait.h>
#endif
@@ -108,9 +110,11 @@ static VALUE rb_cProcessTms;
#ifdef BROKEN_SETREUID
#define setreuid ruby_setreuid
+int setreuid(rb_uid_t ruid, rb_uid_t euid);
#endif
#ifdef BROKEN_SETREGID
#define setregid ruby_setregid
+int setregid(rb_gid_t rgid, rb_gid_t egid);
#endif
#if defined(HAVE_44BSD_SETUID) || defined(__MacOS_X__)
@@ -122,24 +126,13 @@ static VALUE rb_cProcessTms;
#endif
#endif
-#if SIZEOF_RLIM_T == SIZEOF_INT
-# define RLIM2NUM(v) UINT2NUM(v)
-# define NUM2RLIM(v) NUM2UINT(v)
-#elif SIZEOF_RLIM_T == SIZEOF_LONG
-# define RLIM2NUM(v) ULONG2NUM(v)
-# define NUM2RLIM(v) NUM2ULONG(v)
-#elif SIZEOF_RLIM_T == SIZEOF_LONG_LONG
-# define RLIM2NUM(v) ULL2NUM(v)
-# define NUM2RLIM(v) NUM2ULL(v)
-#endif
-
#define preserving_errno(stmts) \
do {int saved_errno = errno; stmts; errno = saved_errno;} while (0)
/*
* call-seq:
- * Process.pid => fixnum
+ * Process.pid -> fixnum
*
* Returns the process id of this process. Not available on all
* platforms.
@@ -157,7 +150,7 @@ get_pid(void)
/*
* call-seq:
- * Process.ppid => fixnum
+ * Process.ppid -> fixnum
*
* Returns the process id of the parent of this process. Returns
* untrustworthy value on Win32/64. Not available on all platforms.
@@ -234,8 +227,8 @@ rb_last_status_clear(void)
/*
* call-seq:
- * stat.to_i => fixnum
- * stat.to_int => fixnum
+ * stat.to_i -> fixnum
+ * stat.to_int -> fixnum
*
* Returns the bits in _stat_ as a <code>Fixnum</code>. Poking
* around in these bits is platform dependent.
@@ -255,7 +248,7 @@ pst_to_i(VALUE st)
/*
* call-seq:
- * stat.pid => fixnum
+ * stat.pid -> fixnum
*
* Returns the process ID that this status object represents.
*
@@ -307,9 +300,13 @@ pst_message(VALUE str, rb_pid_t pid, int status)
/*
* call-seq:
- * stat.to_s => string
+ * stat.to_s -> string
*
* Show pid and exit status as a string.
+ *
+ * system("false")
+ * p $?.to_s #=> "pid 12766 exit 1"
+ *
*/
static VALUE
@@ -330,9 +327,13 @@ pst_to_s(VALUE st)
/*
* call-seq:
- * stat.inspect => string
+ * stat.inspect -> string
*
* Override the inspection method.
+ *
+ * system("false")
+ * p $?.inspect #=> "#<Process::Status: pid 12861 exit 1>"
+ *
*/
static VALUE
@@ -358,7 +359,7 @@ pst_inspect(VALUE st)
/*
* call-seq:
- * stat == other => true or false
+ * stat == other -> true or false
*
* Returns +true+ if the integer value of _stat_
* equals <em>other</em>.
@@ -374,7 +375,7 @@ pst_equal(VALUE st1, VALUE st2)
/*
* call-seq:
- * stat & num => fixnum
+ * stat & num -> fixnum
*
* Logical AND of the bits in _stat_ with <em>num</em>.
*
@@ -395,7 +396,7 @@ pst_bitand(VALUE st1, VALUE st2)
/*
* call-seq:
- * stat >> num => fixnum
+ * stat >> num -> fixnum
*
* Shift the bits in _stat_ right <em>num</em> places.
*
@@ -416,7 +417,7 @@ pst_rshift(VALUE st1, VALUE st2)
/*
* call-seq:
- * stat.stopped? => true or false
+ * stat.stopped? -> true or false
*
* Returns +true+ if this process is stopped. This is only
* returned if the corresponding <code>wait</code> call had the
@@ -437,7 +438,7 @@ pst_wifstopped(VALUE st)
/*
* call-seq:
- * stat.stopsig => fixnum or nil
+ * stat.stopsig -> fixnum or nil
*
* Returns the number of the signal that caused _stat_ to stop
* (or +nil+ if self is not stopped).
@@ -456,7 +457,7 @@ pst_wstopsig(VALUE st)
/*
* call-seq:
- * stat.signaled? => true or false
+ * stat.signaled? -> true or false
*
* Returns +true+ if _stat_ terminated because of
* an uncaught signal.
@@ -476,7 +477,7 @@ pst_wifsignaled(VALUE st)
/*
* call-seq:
- * stat.termsig => fixnum or nil
+ * stat.termsig -> fixnum or nil
*
* Returns the number of the signal that caused _stat_ to
* terminate (or +nil+ if self was not terminated by an
@@ -496,7 +497,7 @@ pst_wtermsig(VALUE st)
/*
* call-seq:
- * stat.exited? => true or false
+ * stat.exited? -> true or false
*
* Returns +true+ if _stat_ exited normally (for
* example using an <code>exit()</code> call or finishing the
@@ -517,7 +518,7 @@ pst_wifexited(VALUE st)
/*
* call-seq:
- * stat.exitstatus => fixnum or nil
+ * stat.exitstatus -> fixnum or nil
*
* Returns the least significant eight bits of the return code of
* _stat_. Only available if <code>exited?</code> is
@@ -547,7 +548,7 @@ pst_wexitstatus(VALUE st)
/*
* call-seq:
- * stat.success? => true, false or nil
+ * stat.success? -> true, false or nil
*
* Returns +true+ if _stat_ is successful, +false+ if not.
* Returns +nil+ if <code>exited?</code> is not +true+.
@@ -566,7 +567,7 @@ pst_success_p(VALUE st)
/*
* call-seq:
- * stat.coredump? => true or false
+ * stat.coredump? -> true or false
*
* Returns +true+ if _stat_ generated a coredump
* when it terminated. Not available on all platforms.
@@ -725,9 +726,9 @@ rb_waitpid(rb_pid_t pid, int *st, int flags)
/*
* call-seq:
- * Process.wait() => fixnum
- * Process.wait(pid=-1, flags=0) => fixnum
- * Process.waitpid(pid=-1, flags=0) => fixnum
+ * Process.wait() -> fixnum
+ * Process.wait(pid=-1, flags=0) -> fixnum
+ * Process.waitpid(pid=-1, flags=0) -> fixnum
*
* Waits for a child process to exit, returns its process id, and
* sets <code>$?</code> to a <code>Process::Status</code> object
@@ -798,8 +799,8 @@ proc_wait(int argc, VALUE *argv)
/*
* call-seq:
- * Process.wait2(pid=-1, flags=0) => [pid, status]
- * Process.waitpid2(pid=-1, flags=0) => [pid, status]
+ * Process.wait2(pid=-1, flags=0) -> [pid, status]
+ * Process.waitpid2(pid=-1, flags=0) -> [pid, status]
*
* Waits for a child process to exit (see Process::waitpid for exact
* semantics) and returns an array containing the process id and the
@@ -824,7 +825,7 @@ proc_wait2(int argc, VALUE *argv)
/*
* call-seq:
- * Process.waitall => [ [pid1,status1], ...]
+ * Process.waitall -> [ [pid1,status1], ...]
*
* Waits for all children, returning an array of
* _pid_/_status_ pairs (where _status_ is a
@@ -837,9 +838,9 @@ proc_wait2(int argc, VALUE *argv)
*
* <em>produces</em>:
*
- * [[27434, #<Process::Status: pid=27434,exited(0)>],
- * [27433, #<Process::Status: pid=27433,exited(1)>],
- * [27432, #<Process::Status: pid=27432,exited(2)>]]
+ * [[30982, #<Process::Status: pid 30982 exit 0>],
+ * [30979, #<Process::Status: pid 30979 exit 1>],
+ * [30976, #<Process::Status: pid 30976 exit 2>]]
*/
static VALUE
@@ -922,7 +923,7 @@ rb_detach_process(rb_pid_t pid)
/*
* call-seq:
- * Process.detach(pid) => thread
+ * Process.detach(pid) -> thread
*
* Some operating systems retain the status of terminated child
* processes until the parent collects that status (normally using
@@ -978,16 +979,63 @@ proc_detach(VALUE obj, VALUE pid)
char *strtok();
#endif
-void rb_thread_stop_timer_thread(void);
-void rb_thread_start_timer_thread(void);
-void rb_thread_reset_timer_thread(void);
-
static int forked_child = 0;
-#define before_exec() \
- (rb_enable_interrupt(), (forked_child ? 0 : (rb_thread_stop_timer_thread(), 1)))
-#define after_exec() \
- (rb_thread_reset_timer_thread(), rb_thread_start_timer_thread(), forked_child = 0, rb_disable_interrupt())
+#ifdef SIGPIPE
+static RETSIGTYPE (*saved_sigpipe_handler)(int) = 0;
+#endif
+
+#if defined(POSIX_SIGNAL)
+# define signal(a,b) posix_signal((a),(b))
+#endif
+
+#ifdef SIGPIPE
+static RETSIGTYPE sig_do_nothing(int sig)
+{
+}
+#endif
+
+static void before_exec(void)
+{
+ /*
+ * signalmask is inherited across exec() and almost system commands don't
+ * work if signalmask is blocked.
+ */
+ rb_enable_interrupt();
+
+#ifdef SIGPIPE
+ /*
+ * Some OS commands don't initialize signal handler properly. Thus we have
+ * to reset signal handler before exec(). Otherwise, system() and similar
+ * child process interaction might fail. (e.g. ruby -e "system 'yes | ls'")
+ * [ruby-dev:12261]
+ */
+ saved_sigpipe_handler = signal(SIGPIPE, sig_do_nothing);
+#endif
+
+ if (!forked_child) {
+ /*
+ * On Mac OS X 10.5.x (Leopard) or earlier, exec() may return ENOTSUPP
+ * if the process have multiple threads. Therefore we have to kill
+ * internal threads temporary. [ruby-core: 10583]
+ */
+ rb_thread_stop_timer_thread(0);
+ }
+}
+
+static void after_exec(void)
+{
+ rb_thread_reset_timer_thread();
+ rb_thread_start_timer_thread();
+
+#ifdef SIGPIPE
+ signal(SIGPIPE, saved_sigpipe_handler);
+#endif
+
+ forked_child = 0;
+ rb_disable_interrupt();
+}
+
#define before_fork() before_exec()
#define after_fork() (GET_THREAD()->thrown_errinfo = 0, after_exec())
@@ -1003,10 +1051,32 @@ security(const char *str)
}
}
+#ifdef HAVE_FORK
+#define try_with_sh(prog, argv) ((saved_errno == ENOEXEC) ? exec_with_sh((prog), (argv)) : (void)0)
+static void
+exec_with_sh(const char *prog, char **argv)
+{
+ *argv = (char *)prog;
+ *--argv = (char *)"sh";
+ execv("/bin/sh", argv);
+}
+#define ARGV_COUNT(n) ((n)+1)
+#else
+#define try_with_sh(prog, argv) (void)0
+#define ARGV_COUNT(n) (n)
+#endif
+#define ARGV_SIZE(n) (sizeof(char*) * ARGV_COUNT(n))
+#define ALLOC_ARGV(n, v) ALLOCV_N(char*, (v), ARGV_COUNT(n))
+#define ALLOC_ARGV_WITH_STR(n, v, s, l) \
+ (char **)(((s) = ALLOCV_N(char, (v), ARGV_SIZE(n) + (l)) + ARGV_SIZE(n)) - ARGV_SIZE(n))
+
static int
proc_exec_v(char **argv, const char *prog)
{
char fbuf[MAXPATHLEN];
+#if defined(__EMX__) || defined(OS2)
+ char **new_argv = NULL;
+#endif
if (!prog)
prog = argv[0];
@@ -1022,16 +1092,15 @@ proc_exec_v(char **argv, const char *prog)
char *extension;
if ((extension = strrchr(prog, '.')) != NULL && STRCASECMP(extension, ".bat") == 0) {
- char **new_argv;
char *p;
int n;
for (n = 0; argv[n]; n++)
/* no-op */;
- new_argv = ALLOCA_N(char*, n + 2);
+ new_argv = ALLOC_N(char*, n + 2);
for (; n > 0; n--)
new_argv[n + 1] = argv[n];
- new_argv[1] = strcpy(ALLOCA_N(char, strlen(argv[0]) + 1), argv[0]);
+ new_argv[1] = strcpy(ALLOC_N(char, strlen(argv[0]) + 1), argv[0]);
for (p = new_argv[1]; *p != '\0'; p++)
if (*p == '/')
*p = '\\';
@@ -1047,7 +1116,13 @@ proc_exec_v(char **argv, const char *prog)
#endif /* __EMX__ */
before_exec();
execv(prog, argv);
- preserving_errno(after_exec());
+ preserving_errno(try_with_sh(prog, argv); after_exec());
+#if defined(__EMX__) || defined(OS2)
+ if (new_argv) {
+ xfree(new_argv[0]);
+ xfree(new_argv);
+ }
+#endif
return -1;
}
@@ -1056,15 +1131,18 @@ rb_proc_exec_n(int argc, VALUE *argv, const char *prog)
{
char **args;
int i;
+ int ret = -1;
+ VALUE v;
- args = ALLOCA_N(char*, argc+1);
+ args = ALLOC_ARGV(argc+1, v);
for (i=0; i<argc; i++) {
args[i] = RSTRING_PTR(argv[i]);
}
args[i] = 0;
if (args[0]) {
- return proc_exec_v(args, prog);
+ ret = proc_exec_v(args, prog);
}
+ ALLOCV_END(v);
return -1;
}
@@ -1075,6 +1153,8 @@ rb_proc_exec(const char *str)
const char *s = str;
char *ss, *t;
char **argv, **a;
+ VALUE v;
+ int ret = -1;
#endif
while (*str && ISSPACE(*str))
@@ -1084,6 +1164,7 @@ rb_proc_exec(const char *str)
before_exec();
rb_w32_spawn(P_OVERLAY, (char *)str, 0);
after_exec();
+ return -1;
#else
for (s=str; *s; s++) {
if (ISSPACE(*s)) {
@@ -1115,8 +1196,7 @@ rb_proc_exec(const char *str)
return -1;
}
}
- a = argv = ALLOCA_N(char*, (s-str)/2+2);
- ss = ALLOCA_N(char, s-str+1);
+ a = argv = ALLOC_ARGV_WITH_STR((s-str)/2+2, v, ss, s-str+1);
memcpy(ss, str, s-str);
ss[s-str] = '\0';
if ((*a++ = strtok(ss, " \t")) != 0) {
@@ -1126,20 +1206,47 @@ rb_proc_exec(const char *str)
*a = NULL;
}
if (argv[0]) {
- return proc_exec_v(argv, 0);
+ ret = proc_exec_v(argv, 0);
}
- errno = ENOENT;
+ else {
+ errno = ENOENT;
+ }
+ ALLOCV_END(v);
+ return ret;
#endif /* _WIN32 */
- return -1;
}
+enum {
+ EXEC_OPTION_PGROUP,
+ EXEC_OPTION_RLIMIT,
+ EXEC_OPTION_UNSETENV_OTHERS,
+ EXEC_OPTION_ENV,
+ EXEC_OPTION_CHDIR,
+ EXEC_OPTION_UMASK,
+ EXEC_OPTION_DUP2,
+ EXEC_OPTION_CLOSE,
+ EXEC_OPTION_OPEN,
+ EXEC_OPTION_DUP2_CHILD,
+ EXEC_OPTION_CLOSE_OTHERS,
+ EXEC_OPTION_NEW_PGROUP
+};
+
#if defined(_WIN32)
#define HAVE_SPAWNV 1
#endif
#if !defined(HAVE_FORK) && defined(HAVE_SPAWNV)
+# define USE_SPAWNV 1
+#else
+# define USE_SPAWNV 0
+#endif
+#ifndef P_NOWAIT
+# define P_NOWAIT _P_NOWAIT
+#endif
+
+#if USE_SPAWNV
#if defined(_WIN32)
-#define proc_spawn_v(argv, prog) rb_w32_aspawn(P_NOWAIT, prog, argv)
+#define proc_spawn_v(argv, prog) rb_w32_aspawn(P_NOWAIT, (prog), (argv))
#else
static rb_pid_t
proc_spawn_v(char **argv, char *prog)
@@ -1155,31 +1262,49 @@ proc_spawn_v(char **argv, char *prog)
return -1;
before_exec();
- status = spawnv(P_WAIT, prog, argv);
+ status = spawnv(P_NOWAIT, prog, (const char **)argv);
+ if (status == -1 && errno == ENOEXEC) {
+ *argv = (char *)prog;
+ *--argv = (char *)"sh";
+ status = spawnv(P_NOWAIT, "/bin/sh", (const char **)argv);
+ after_exec();
+ if (status == -1) errno = ENOEXEC;
+ }
rb_last_status_set(status == -1 ? 127 : status, 0);
- after_exec();
return status;
}
#endif
static rb_pid_t
-proc_spawn_n(int argc, VALUE *argv, VALUE prog)
+proc_spawn_n(int argc, VALUE *argv, VALUE prog, VALUE options)
{
char **args;
int i;
+ VALUE v;
+ rb_pid_t pid = -1;
- args = ALLOCA_N(char*, argc + 1);
+ args = ALLOC_ARGV(argc + 1, v);
for (i = 0; i < argc; i++) {
args[i] = RSTRING_PTR(argv[i]);
}
args[i] = (char*) 0;
- if (args[0])
- return proc_spawn_v(args, prog ? RSTRING_PTR(prog) : 0);
- return -1;
+ if (args[0]) {
+#if defined(_WIN32)
+ DWORD flags = 0;
+ if (RTEST(rb_ary_entry(options, EXEC_OPTION_NEW_PGROUP))) {
+ flags = CREATE_NEW_PROCESS_GROUP;
+ }
+ pid = rb_w32_aspawn_flags(P_NOWAIT, prog ? RSTRING_PTR(prog) : 0, args, flags);
+#else
+ pid = proc_spawn_v(args, prog ? RSTRING_PTR(prog) : 0);
+#endif
+ }
+ ALLOCV_END(v);
+ return pid;
}
#if defined(_WIN32)
-#define proc_spawn(str) rb_w32_spawn(P_NOWAIT, str, 0)
+#define proc_spawn(str) rb_w32_spawn(P_NOWAIT, (str), 0)
#else
static rb_pid_t
proc_spawn(char *str)
@@ -1188,26 +1313,28 @@ proc_spawn(char *str)
char *s, *t;
char **argv, **a;
rb_pid_t status;
+ VALUE v;
for (s = str; *s; s++) {
if (*s != ' ' && !ISALPHA(*s) && strchr("*?{}[]<>()~&|\\$;'`\"\n",*s)) {
char *shell = dln_find_exe_r("sh", 0, fbuf, sizeof(fbuf));
before_exec();
- status = shell?spawnl(P_WAIT,shell,"sh","-c",str,(char*)NULL):system(str);
+ status = spawnl(P_NOWAIT, (shell ? shell : "/bin/sh"), "sh", "-c", str, (char*)NULL);
rb_last_status_set(status == -1 ? 127 : status, 0);
after_exec();
return status;
}
}
- a = argv = ALLOCA_N(char*, (s - str) / 2 + 2);
- s = ALLOCA_N(char, s - str + 1);
+ a = argv = ALLOC_ARGV_WITH_STR((s - str) / 2 + 2, v, s, s - str + 1);
strcpy(s, str);
if (*a++ = strtok(s, " \t")) {
while (t = strtok(NULL, " \t"))
*a++ = t;
*a = NULL;
}
- return argv[0] ? proc_spawn_v(argv, 0) : -1;
+ status = argv[0] ? proc_spawn_v(argv, 0) : -1;
+ ALLOCV_END(v);
+ return status;
}
#endif
#endif
@@ -1219,22 +1346,8 @@ hide_obj(VALUE obj)
return obj;
}
-enum {
- EXEC_OPTION_PGROUP,
- EXEC_OPTION_RLIMIT,
- EXEC_OPTION_UNSETENV_OTHERS,
- EXEC_OPTION_ENV,
- EXEC_OPTION_CHDIR,
- EXEC_OPTION_UMASK,
- EXEC_OPTION_DUP2,
- EXEC_OPTION_CLOSE,
- EXEC_OPTION_OPEN,
- EXEC_OPTION_DUP2_CHILD,
- EXEC_OPTION_CLOSE_OTHERS
-};
-
static VALUE
-check_exec_redirect_fd(VALUE v)
+check_exec_redirect_fd(VALUE v, int iskey)
{
VALUE tmp;
int fd;
@@ -1266,6 +1379,11 @@ check_exec_redirect_fd(VALUE v)
wrong:
rb_raise(rb_eArgError, "negative file descriptor");
}
+#ifdef _WIN32
+ else if (fd >= 3 && iskey) {
+ rb_raise(rb_eArgError, "wrong file descriptor (%d)", fd);
+ }
+#endif
return INT2FIX(fd);
}
@@ -1303,7 +1421,7 @@ check_exec_redirect(VALUE key, VALUE val, VALUE options)
break;
case T_FILE:
- val = check_exec_redirect_fd(val);
+ val = check_exec_redirect_fd(val, 0);
/* fall through */
case T_FIXNUM:
index = EXEC_OPTION_DUP2;
@@ -1315,7 +1433,7 @@ check_exec_redirect(VALUE key, VALUE val, VALUE options)
if (RARRAY_LEN(val) == 2 && SYMBOL_P(path) &&
SYM2ID(path) == rb_intern("child")) {
index = EXEC_OPTION_DUP2_CHILD;
- param = check_exec_redirect_fd(rb_ary_entry(val, 1));
+ param = check_exec_redirect_fd(rb_ary_entry(val, 1), 0);
}
else {
index = EXEC_OPTION_OPEN;
@@ -1339,7 +1457,7 @@ check_exec_redirect(VALUE key, VALUE val, VALUE options)
path = val;
FilePathValue(path);
if (TYPE(key) == T_FILE)
- key = check_exec_redirect_fd(key);
+ key = check_exec_redirect_fd(key, 1);
if (FIXNUM_P(key) && (FIX2INT(key) == 1 || FIX2INT(key) == 2))
flags = INT2NUM(O_WRONLY|O_CREAT|O_TRUNC);
else
@@ -1359,21 +1477,21 @@ check_exec_redirect(VALUE key, VALUE val, VALUE options)
rb_ary_store(options, index, ary);
}
if (TYPE(key) != T_ARRAY) {
- VALUE fd = check_exec_redirect_fd(key);
+ VALUE fd = check_exec_redirect_fd(key, !NIL_P(param));
rb_ary_push(ary, hide_obj(rb_assoc_new(fd, param)));
}
else {
int i, n=0;
for (i = 0 ; i < RARRAY_LEN(key); i++) {
VALUE v = RARRAY_PTR(key)[i];
- VALUE fd = check_exec_redirect_fd(v);
+ VALUE fd = check_exec_redirect_fd(v, !NIL_P(param));
rb_ary_push(ary, hide_obj(rb_assoc_new(fd, param)));
n++;
}
}
}
-#ifdef RLIM2NUM
+#if defined(HAVE_SETRLIMIT) && defined(NUM2RLIM)
static int rlimit_type_by_lname(const char *name);
#endif
@@ -1382,7 +1500,7 @@ rb_exec_arg_addopt(struct rb_exec_arg *e, VALUE key, VALUE val)
{
VALUE options = e->options;
ID id;
-#ifdef RLIM2NUM
+#if defined(HAVE_SETRLIMIT) && defined(NUM2RLIM)
int rtype;
#endif
@@ -1411,7 +1529,17 @@ rb_exec_arg_addopt(struct rb_exec_arg *e, VALUE key, VALUE val)
}
else
#endif
-#ifdef RLIM2NUM
+#ifdef _WIN32
+ if (id == rb_intern("new_pgroup")) {
+ if (!NIL_P(rb_ary_entry(options, EXEC_OPTION_NEW_PGROUP))) {
+ rb_raise(rb_eArgError, "new_pgroup option specified twice");
+ }
+ val = RTEST(val) ? Qtrue : Qfalse;
+ rb_ary_store(options, EXEC_OPTION_NEW_PGROUP, val);
+ }
+ else
+#endif
+#if defined(HAVE_SETRLIMIT) && defined(NUM2RLIM)
if (strncmp("rlimit_", rb_id2name(id), 7) == 0 &&
(rtype = rlimit_type_by_lname(rb_id2name(id)+7)) != -1) {
VALUE ary = rb_ary_entry(options, EXEC_OPTION_RLIMIT);
@@ -1456,7 +1584,7 @@ rb_exec_arg_addopt(struct rb_exec_arg *e, VALUE key, VALUE val)
hide_obj(rb_str_dup(val)));
}
else if (id == rb_intern("umask")) {
- mode_t cmask = NUM2LONG(val);
+ mode_t cmask = NUM2MODET(val);
if (!NIL_P(rb_ary_entry(options, EXEC_OPTION_UMASK))) {
rb_raise(rb_eArgError, "umask option specified twice");
}
@@ -1515,8 +1643,8 @@ check_exec_fds(VALUE options)
{
VALUE h = rb_hash_new();
VALUE ary;
- int index, i;
- int maxhint = -1;
+ int index, maxhint = -1;
+ long i;
for (index = EXEC_OPTION_DUP2; index <= EXEC_OPTION_DUP2_CHILD; index++) {
ary = rb_ary_entry(options, index);
@@ -1729,13 +1857,17 @@ rb_exec_arg_fixup(struct rb_exec_arg *e)
* Replaces the current process by running the given external _command_.
* _command..._ is one of following forms.
*
- * commandline : command line string which is passed to a shell
+ * commandline : command line string which is passed to the standard shell
* cmdname, arg1, ... : command name and one or more arguments (no shell)
* [cmdname, argv0], arg1, ... : command name, argv[0] and zero or more arguments (no shell)
*
* If single string is given as the command,
* it is taken as a command line that is subject to shell expansion before being executed.
*
+ * The standard shell means always <code>"/bin/sh"</code> on Unix-like systems,
+ * <code>ENV["RUBYSHELL"]</code> or <code>ENV["COMSPEC"]</code> on Windows NT series, and
+ * similar.
+ *
* If two or more +string+ given,
* the first is taken as a command name and
* the rest are passed as parameters to command with no shell expansion.
@@ -1769,7 +1901,7 @@ rb_f_exec(int argc, VALUE *argv)
#define CHILD_ERRMSG_BUFLEN 80
char errmsg[CHILD_ERRMSG_BUFLEN] = { '\0' };
- rb_exec_arg_init(argc, argv, Qtrue, &earg);
+ rb_exec_arg_init(argc, argv, TRUE, &earg);
if (NIL_P(rb_ary_entry(earg.options, EXEC_OPTION_CLOSE_OTHERS)))
rb_exec_arg_addopt(&earg, ID2SYM(rb_intern("close_others")), Qfalse);
rb_exec_arg_fixup(&earg);
@@ -1847,9 +1979,9 @@ redirect_open(const char *pathname, int flags, mode_t perm)
#else
#define redirect_dup(oldfd) dup(oldfd)
-#define redirect_dup2(oldfd, newfd) dup2(oldfd, newfd)
+#define redirect_dup2(oldfd, newfd) dup2((oldfd), (newfd))
#define redirect_close(fd) close(fd)
-#define redirect_open(pathname, flags, perm) open(pathname, flags, perm)
+#define redirect_open(pathname, flags, perm) open((pathname), (flags), (perm))
#endif
static int
@@ -1859,9 +1991,12 @@ save_redirect_fd(int fd, VALUE save, char *errmsg, size_t errmsg_buflen)
VALUE newary;
int save_fd = redirect_dup(fd);
if (save_fd == -1) {
+ if (errno == EBADF)
+ return 0;
ERRMSG("dup");
return -1;
}
+ rb_update_max_fd(save_fd);
newary = rb_ary_entry(save, EXEC_OPTION_DUP2);
if (NIL_P(newary)) {
newary = hide_obj(rb_ary_new());
@@ -1924,8 +2059,8 @@ run_exec_dup2(VALUE ary, VALUE save, char *errmsg, size_t errmsg_buflen)
struct fd_pair {
int oldfd;
int newfd;
- int older_index;
- int num_newer;
+ long older_index;
+ long num_newer;
} *pairs = 0;
n = RARRAY_LEN(ary);
@@ -1969,7 +2104,7 @@ run_exec_dup2(VALUE ary, VALUE save, char *errmsg, size_t errmsg_buflen)
/* non-cyclic redirection: O(n) */
for (i = 0; i < n; i++) {
- int j = i;
+ long j = i;
while (j != -1 && pairs[j].oldfd != -1 && pairs[j].num_newer == 0) {
if (save_redirect_fd(pairs[j].newfd, save, errmsg, errmsg_buflen) < 0)
goto fail;
@@ -1978,6 +2113,7 @@ run_exec_dup2(VALUE ary, VALUE save, char *errmsg, size_t errmsg_buflen)
ERRMSG("dup2");
goto fail;
}
+ rb_update_max_fd(pairs[j].newfd);
pairs[j].oldfd = -1;
j = pairs[j].older_index;
if (j != -1)
@@ -1987,7 +2123,7 @@ run_exec_dup2(VALUE ary, VALUE save, char *errmsg, size_t errmsg_buflen)
/* cyclic redirection: O(n) */
for (i = 0; i < n; i++) {
- int j;
+ long j;
if (pairs[i].oldfd == -1)
continue;
if (pairs[i].oldfd == pairs[i].newfd) { /* self cycle */
@@ -2016,6 +2152,7 @@ run_exec_dup2(VALUE ary, VALUE save, char *errmsg, size_t errmsg_buflen)
ERRMSG("dup");
goto fail;
}
+ rb_update_max_fd(extra_fd);
}
else {
ret = redirect_dup2(pairs[i].oldfd, extra_fd);
@@ -2023,6 +2160,7 @@ run_exec_dup2(VALUE ary, VALUE save, char *errmsg, size_t errmsg_buflen)
ERRMSG("dup2");
goto fail;
}
+ rb_update_max_fd(extra_fd);
}
pairs[i].oldfd = extra_fd;
j = pairs[i].older_index;
@@ -2033,6 +2171,7 @@ run_exec_dup2(VALUE ary, VALUE save, char *errmsg, size_t errmsg_buflen)
ERRMSG("dup2");
goto fail;
}
+ rb_update_max_fd(ret);
pairs[j].oldfd = -1;
j = pairs[j].older_index;
}
@@ -2056,7 +2195,8 @@ run_exec_dup2(VALUE ary, VALUE save, char *errmsg, size_t errmsg_buflen)
static int
run_exec_close(VALUE ary, char *errmsg, size_t errmsg_buflen)
{
- int i, ret;
+ long i;
+ int ret;
for (i = 0; i < RARRAY_LEN(ary); i++) {
VALUE elt = RARRAY_PTR(ary)[i];
@@ -2073,7 +2213,8 @@ run_exec_close(VALUE ary, char *errmsg, size_t errmsg_buflen)
static int
run_exec_open(VALUE ary, VALUE save, char *errmsg, size_t errmsg_buflen)
{
- int i, ret;
+ long i;
+ int ret;
for (i = 0; i < RARRAY_LEN(ary);) {
VALUE elt = RARRAY_PTR(ary)[i];
@@ -2088,6 +2229,7 @@ run_exec_open(VALUE ary, VALUE save, char *errmsg, size_t errmsg_buflen)
ERRMSG("open");
return -1;
}
+ rb_update_max_fd(fd2);
while (i < RARRAY_LEN(ary) &&
(elt = RARRAY_PTR(ary)[i], RARRAY_PTR(elt)[1] == param)) {
fd = FIX2INT(RARRAY_PTR(elt)[0]);
@@ -2102,6 +2244,7 @@ run_exec_open(VALUE ary, VALUE save, char *errmsg, size_t errmsg_buflen)
ERRMSG("dup2");
return -1;
}
+ rb_update_max_fd(fd);
}
i++;
}
@@ -2119,7 +2262,9 @@ run_exec_open(VALUE ary, VALUE save, char *errmsg, size_t errmsg_buflen)
static int
run_exec_dup2_child(VALUE ary, VALUE save, char *errmsg, size_t errmsg_buflen)
{
- int i, ret;
+ long i;
+ int ret;
+
for (i = 0; i < RARRAY_LEN(ary); i++) {
VALUE elt = RARRAY_PTR(ary)[i];
int newfd = FIX2INT(RARRAY_PTR(elt)[0]);
@@ -2132,6 +2277,7 @@ run_exec_dup2_child(VALUE ary, VALUE save, char *errmsg, size_t errmsg_buflen)
ERRMSG("dup2");
return -1;
}
+ rb_update_max_fd(newfd);
}
return 0;
}
@@ -2162,11 +2308,11 @@ run_exec_pgroup(VALUE obj, VALUE save, char *errmsg, size_t errmsg_buflen)
}
#endif
-#ifdef RLIM2NUM
+#if defined(HAVE_SETRLIMIT) && defined(RLIM2NUM)
static int
run_exec_rlimit(VALUE ary, VALUE save, char *errmsg, size_t errmsg_buflen)
{
- int i;
+ long i;
for (i = 0; i < RARRAY_LEN(ary); i++) {
VALUE elt = RARRAY_PTR(ary)[i];
int rtype = NUM2INT(RARRAY_PTR(elt)[0]);
@@ -2224,7 +2370,7 @@ rb_run_exec_options_err(const struct rb_exec_arg *e, struct rb_exec_arg *s, char
}
#endif
-#ifdef RLIM2NUM
+#if defined(HAVE_SETRLIMIT) && defined(RLIM2NUM)
obj = rb_ary_entry(options, EXEC_OPTION_RLIMIT);
if (!NIL_P(obj)) {
if (run_exec_rlimit(obj, soptions, errmsg, errmsg_buflen) == -1)
@@ -2240,7 +2386,7 @@ rb_run_exec_options_err(const struct rb_exec_arg *e, struct rb_exec_arg *s, char
obj = rb_ary_entry(options, EXEC_OPTION_ENV);
if (!NIL_P(obj)) {
- int i;
+ long i;
save_env(soptions);
for (i = 0; i < RARRAY_LEN(obj); i++) {
VALUE pair = RARRAY_PTR(obj)[i];
@@ -2269,10 +2415,10 @@ rb_run_exec_options_err(const struct rb_exec_arg *e, struct rb_exec_arg *s, char
obj = rb_ary_entry(options, EXEC_OPTION_UMASK);
if (!NIL_P(obj)) {
- mode_t mask = NUM2LONG(obj);
+ mode_t mask = NUM2MODET(obj);
mode_t oldmask = umask(mask); /* never fail */
if (!NIL_P(soptions))
- rb_ary_store(soptions, EXEC_OPTION_UMASK, LONG2NUM(oldmask));
+ rb_ary_store(soptions, EXEC_OPTION_UMASK, MODET2NUM(oldmask));
}
obj = rb_ary_entry(options, EXEC_OPTION_DUP2);
@@ -2398,6 +2544,7 @@ move_fds_to_avoid_crash(int *fdp, int n, VALUE fds)
ret = fcntl(fdp[i], F_DUPFD, min);
if (ret == -1)
return -1;
+ rb_update_max_fd(ret);
close(fdp[i]);
fdp[i] = ret;
}
@@ -2424,6 +2571,25 @@ pipe_nocrash(int filedes[2], VALUE fds)
return ret;
}
+struct chfunc_protect_t {
+ int (*chfunc)(void*, char *, size_t);
+ void *arg;
+ char *errmsg;
+ size_t buflen;
+};
+
+static VALUE
+chfunc_protect(VALUE arg)
+{
+ struct chfunc_protect_t *p = (struct chfunc_protect_t *)arg;
+
+ return (VALUE)(*p->chfunc)(p->arg, p->errmsg, p->buflen);
+}
+
+#ifndef O_BINARY
+#define O_BINARY 0
+#endif
+
/*
* Forks child process, and returns the process ID in the parent
* process.
@@ -2455,6 +2621,7 @@ rb_fork_err(int *status, int (*chfunc)(void*, char *, size_t), void *charg, VALU
int err, state = 0;
#ifdef FD_CLOEXEC
int ep[2];
+ VALUE io = Qnil;
#endif
#define prefork() ( \
@@ -2501,17 +2668,31 @@ rb_fork_err(int *status, int (*chfunc)(void*, char *, size_t), void *charg, VALU
if (!pid) {
forked_child = 1;
if (chfunc) {
+ struct chfunc_protect_t arg;
+ arg.chfunc = chfunc;
+ arg.arg = charg;
+ arg.errmsg = errmsg;
+ arg.buflen = errmsg_buflen;
#ifdef FD_CLOEXEC
close(ep[0]);
#endif
- if (!(*chfunc)(charg, errmsg, errmsg_buflen)) _exit(EXIT_SUCCESS);
+ if (!(int)rb_protect(chfunc_protect, (VALUE)&arg, &state)) _exit(EXIT_SUCCESS);
#ifdef FD_CLOEXEC
+ if (write(ep[1], &state, sizeof(state)) == sizeof(state) && state) {
+ VALUE errinfo = rb_errinfo();
+ io = rb_io_fdopen(ep[1], O_WRONLY|O_BINARY, NULL);
+ rb_marshal_dump(errinfo, io);
+ rb_io_flush(io);
+ }
err = errno;
- (void)write(ep[1], &err, sizeof(err));
+ if (write(ep[1], &err, sizeof(err)) < 0) err = errno;
if (errmsg && 0 < errmsg_buflen) {
errmsg[errmsg_buflen-1] = '\0';
- (void)write(ep[1], errmsg, strlen(errmsg));
+ errmsg_buflen = strlen(errmsg);
+ if (errmsg_buflen > 0 &&write(ep[1], errmsg, errmsg_buflen) < 0)
+ err = errno;
}
+ if (!NIL_P(io)) rb_io_close(io);
#endif
#if EXIT_SUCCESS == 127
_exit(EXIT_FAILURE);
@@ -2524,25 +2705,37 @@ rb_fork_err(int *status, int (*chfunc)(void*, char *, size_t), void *charg, VALU
#ifdef FD_CLOEXEC
if (pid && chfunc) {
ssize_t size;
+ VALUE exc = Qnil;
close(ep[1]);
- if ((size = read(ep[0], &err, sizeof(err))) < 0) {
+ if ((read(ep[0], &state, sizeof(state))) == sizeof(state) && state) {
+ io = rb_io_fdopen(ep[0], O_RDONLY|O_BINARY, NULL);
+ exc = rb_marshal_load(io);
+ rb_set_errinfo(exc);
+ }
+#define READ_FROM_CHILD(ptr, len) \
+ (NIL_P(io) ? read(ep[0], (ptr), (len)) : rb_io_bufread(io, (ptr), (len)))
+ if ((size = READ_FROM_CHILD(&err, sizeof(err))) < 0) {
err = errno;
}
if (size == sizeof(err) &&
errmsg && 0 < errmsg_buflen) {
- ssize_t ret;
- ret = read(ep[0], errmsg, errmsg_buflen-1);
+ ssize_t ret = READ_FROM_CHILD(errmsg, errmsg_buflen-1);
if (0 <= ret) {
errmsg[ret] = '\0';
}
}
- close(ep[0]);
- if (size) {
+ if (NIL_P(io))
+ close(ep[0]);
+ else
+ rb_io_close(io);
+ if (state || size) {
if (status) {
+ *status = state;
rb_protect(proc_syswait, (VALUE)pid, status);
}
else {
rb_syswait(pid);
+ if (state) rb_exc_raise(exc);
}
errno = err;
return -1;
@@ -2584,8 +2777,8 @@ rb_fork(int *status, int (*chfunc)(void*), void *charg, VALUE fds)
#if defined(HAVE_FORK) && !defined(CANNOT_FORK_WITH_PTHREAD)
/*
* call-seq:
- * Kernel.fork [{ block }] => fixnum or nil
- * Process.fork [{ block }] => fixnum or nil
+ * Kernel.fork [{ block }] -> fixnum or nil
+ * Process.fork [{ block }] -> fixnum or nil
*
* Creates a subprocess. If a block is specified, that block is run
* in the subprocess, and the subprocess terminates with a status of
@@ -2601,6 +2794,8 @@ rb_fork(int *status, int (*chfunc)(void*), void *charg, VALUE fds)
*
* The thread calling fork is the only thread in the created child process.
* fork doesn't copy other threads.
+ *
+ * If fork is not usable, Process.respond_to?(:fork) returns false.
*/
static VALUE
@@ -2612,9 +2807,6 @@ rb_f_fork(VALUE obj)
switch (pid = rb_fork(0, 0, 0, Qnil)) {
case 0:
-#ifdef linux
- after_exec();
-#endif
rb_thread_atfork();
if (rb_block_given_p()) {
int status;
@@ -2638,13 +2830,13 @@ rb_f_fork(VALUE obj)
/*
* call-seq:
- * Process.exit!(fixnum=-1)
+ * Process.exit!(status=false)
*
* Exits the process immediately. No exit handlers are
- * run. <em>fixnum</em> is returned to the underlying system as the
+ * run. <em>status</em> is returned to the underlying system as the
* exit status.
*
- * Process.exit!(0)
+ * Process.exit!(true)
*/
static VALUE
@@ -2692,14 +2884,17 @@ rb_exit(int status)
/*
* call-seq:
- * exit(integer=0)
- * Kernel::exit(integer=0)
- * Process::exit(integer=0)
+ * exit(status=true)
+ * Kernel::exit(status=true)
+ * Process::exit(status=true)
*
* Initiates the termination of the Ruby script by raising the
* <code>SystemExit</code> exception. This exception may be caught. The
* optional parameter is used to return a status code to the invoking
* environment.
+ * +true+ and +FALSE+ of _status_ means success and failure
+ * respectively. The interpretation of other integer values are
+ * system dependent.
*
* begin
* exit
@@ -2763,19 +2958,17 @@ rb_f_exit(int argc, VALUE *argv)
/*
* call-seq:
* abort
- * Kernel::abort
- * Process::abort
+ * Kernel::abort([msg])
+ * Process::abort([msg])
*
* Terminate execution immediately, effectively by calling
- * <code>Kernel.exit(1)</code>. If _msg_ is given, it is written
+ * <code>Kernel.exit(false)</code>. If _msg_ is given, it is written
* to STDERR prior to terminating.
*/
VALUE
rb_f_abort(int argc, VALUE *argv)
{
- extern void ruby_error_print(void);
-
rb_secure(4);
if (argc == 0) {
if (!NIL_P(GET_THREAD()->errinfo)) {
@@ -2795,11 +2988,6 @@ rb_f_abort(int argc, VALUE *argv)
return Qnil; /* not reached */
}
-
-#if defined(POSIX_SIGNAL)
-# define signal(a,b) posix_signal(a,b)
-#endif
-
void
rb_syswait(rb_pid_t pid)
{
@@ -2812,7 +3000,7 @@ rb_syswait(rb_pid_t pid)
#endif
RETSIGTYPE (*ifunc)(int) = 0;
int status;
- int i, hooked = Qfalse;
+ int i, hooked = FALSE;
if (!overriding) {
#ifdef SIGHUP
@@ -2822,8 +3010,8 @@ rb_syswait(rb_pid_t pid)
qfunc = signal(SIGQUIT, SIG_IGN);
#endif
ifunc = signal(SIGINT, SIG_IGN);
- overriding = Qtrue;
- hooked = Qtrue;
+ overriding = TRUE;
+ hooked = TRUE;
}
do {
@@ -2838,48 +3026,51 @@ rb_syswait(rb_pid_t pid)
signal(SIGQUIT, qfunc);
#endif
signal(SIGINT, ifunc);
- overriding = Qfalse;
+ overriding = FALSE;
+ }
+}
+
+static VALUE
+rb_exec_arg_prepare(struct rb_exec_arg *earg, int argc, VALUE *argv, int default_close_others)
+{
+ VALUE prog = rb_exec_arg_init(argc, argv, TRUE, earg);
+ if (NIL_P(rb_ary_entry(earg->options, EXEC_OPTION_CLOSE_OTHERS))) {
+ VALUE v = default_close_others ? Qtrue : Qfalse;
+ rb_exec_arg_addopt(earg, ID2SYM(rb_intern("close_others")), v);
}
+ rb_exec_arg_fixup(earg);
+ return prog;
}
static rb_pid_t
-rb_spawn_internal(int argc, VALUE *argv, int default_close_others,
- char *errmsg, size_t errmsg_buflen)
+rb_spawn_process(struct rb_exec_arg *earg, VALUE prog, char *errmsg, size_t errmsg_buflen)
{
rb_pid_t pid;
-#if defined HAVE_FORK || !defined HAVE_SPAWNV
+#if !USE_SPAWNV
int status;
#endif
- VALUE prog;
- struct rb_exec_arg earg;
-#if !defined HAVE_FORK
+#if !defined HAVE_FORK || USE_SPAWNV
struct rb_exec_arg sarg;
+ int argc;
+ VALUE *argv;
#endif
- prog = rb_exec_arg_init(argc, argv, Qtrue, &earg);
- if (NIL_P(rb_ary_entry(earg.options, EXEC_OPTION_CLOSE_OTHERS))) {
- VALUE v = default_close_others ? Qtrue : Qfalse;
- rb_exec_arg_addopt(&earg, ID2SYM(rb_intern("close_others")), v);
- }
- rb_exec_arg_fixup(&earg);
-
-#if defined HAVE_FORK
- pid = rb_fork_err(&status, rb_exec_atfork, &earg, earg.redirect_fds, errmsg, errmsg_buflen);
- if (prog && earg.argc) earg.argv[0] = prog;
+#if defined HAVE_FORK && !USE_SPAWNV
+ pid = rb_fork_err(&status, rb_exec_atfork, earg, earg->redirect_fds, errmsg, errmsg_buflen);
#else
- if (rb_run_exec_options_err(&earg, &sarg, errmsg, errmsg_buflen) < 0) {
+ if (rb_run_exec_options_err(earg, &sarg, errmsg, errmsg_buflen) < 0) {
return -1;
}
- argc = earg.argc;
- argv = earg.argv;
+ argc = earg->argc;
+ argv = earg->argv;
if (prog && argc) argv[0] = prog;
# if defined HAVE_SPAWNV
if (!argc) {
pid = proc_spawn(RSTRING_PTR(prog));
}
else {
- pid = proc_spawn_n(argc, argv, prog);
+ pid = proc_spawn_n(argc, argv, prog, earg->options);
}
# if defined(_WIN32)
if (pid == -1)
@@ -2896,26 +3087,35 @@ rb_spawn_internal(int argc, VALUE *argv, int default_close_others,
return pid;
}
+static rb_pid_t
+rb_spawn_internal(int argc, VALUE *argv, int default_close_others,
+ char *errmsg, size_t errmsg_buflen)
+{
+ struct rb_exec_arg earg;
+ VALUE prog = rb_exec_arg_prepare(&earg, argc, argv, default_close_others);
+ return rb_spawn_process(&earg, prog, errmsg, errmsg_buflen);
+}
+
rb_pid_t
rb_spawn_err(int argc, VALUE *argv, char *errmsg, size_t errmsg_buflen)
{
- return rb_spawn_internal(argc, argv, Qtrue, errmsg, errmsg_buflen);
+ return rb_spawn_internal(argc, argv, TRUE, errmsg, errmsg_buflen);
}
rb_pid_t
rb_spawn(int argc, VALUE *argv)
{
- return rb_spawn_internal(argc, argv, Qtrue, NULL, 0);
+ return rb_spawn_internal(argc, argv, TRUE, NULL, 0);
}
/*
* call-seq:
- * system([env,] command... [,options]) => true, false or nil
+ * system([env,] command... [,options]) -> true, false or nil
*
* Executes _command..._ in a subshell.
* _command..._ is one of following forms.
*
- * commandline : command line string which is passed to a shell
+ * commandline : command line string which is passed to the standard shell
* cmdname, arg1, ... : command name and one or more arguments (no shell)
* [cmdname, argv0], arg1, ... : command name, argv[0] and zero or more arguments (no shell)
*
@@ -2937,6 +3137,8 @@ rb_spawn(int argc, VALUE *argv)
*
* config.h main.rb
* *
+ *
+ * See <code>Kernel.exec</code> for the standard shell.
*/
static VALUE
@@ -2954,7 +3156,7 @@ rb_f_system(int argc, VALUE *argv)
chfunc = signal(SIGCHLD, SIG_DFL);
#endif
- pid = rb_spawn_internal(argc, argv, Qfalse, NULL, 0);
+ pid = rb_spawn_internal(argc, argv, FALSE, NULL, 0);
#if defined(HAVE_FORK) || defined(HAVE_SPAWNV)
if (pid > 0) {
rb_syswait(pid);
@@ -2973,11 +3175,18 @@ rb_f_system(int argc, VALUE *argv)
/*
* call-seq:
- * spawn([env,] command... [,options]) => pid
- * Process.spawn([env,] command... [,options]) => pid
+ * spawn([env,] command... [,options]) -> pid
+ * Process.spawn([env,] command... [,options]) -> pid
*
* spawn executes specified command and return its pid.
- * It doesn't wait for end of the command.
+ *
+ * This method doesn't wait for end of the command.
+ * The parent process should
+ * use <code>Process.wait</code> to collect
+ * the termination status of its child or
+ * use <code>Process.detach</code> to register
+ * disinterest in their status;
+ * otherwise, the operating system may accumulate zombie processes.
*
* spawn has bunch of options to specify process attributes:
*
@@ -2985,7 +3194,7 @@ rb_f_system(int argc, VALUE *argv)
* name => val : set the environment variable
* name => nil : unset the environment variable
* command...:
- * commandline : command line string which is passed to a shell
+ * commandline : command line string which is passed to the standard shell
* cmdname, arg1, ... : command name and one or more arguments (no shell)
* [cmdname, argv0], arg1, ... : command name, argv[0] and zero or more arguments (no shell)
* options: hash
@@ -2996,6 +3205,9 @@ rb_f_system(int argc, VALUE *argv)
* :pgroup => true or 0 : make a new process group
* :pgroup => pgid : join to specified process group
* :pgroup => nil : don't change the process group (default)
+ * create new process group: Windows only
+ * :new_pgroup => true : the new process is the root process of a new process group
+ * :new_pgroup => false : don't create a new process group (default)
* resource limit: resourcename is core, cpu, data, etc. See Process.setrlimit.
* :rlimit_resourcename => limit
* :rlimit_resourcename => [cur_limit, max_limit]
@@ -3035,6 +3247,7 @@ rb_f_system(int argc, VALUE *argv)
* If a hash is given as +options+,
* it specifies
* process group,
+ * create new process group,
* resource limit,
* current directory,
* umask and
@@ -3056,6 +3269,17 @@ rb_f_system(int argc, VALUE *argv)
* pid = spawn(command, :pgroup=>true) # process leader
* pid = spawn(command, :pgroup=>10) # belongs to the process group 10
*
+ * The <code>:new_pgroup</code> key in +options+ specifies to pass
+ * +CREATE_NEW_PROCESS_GROUP+ flag to <code>CreateProcessW()</code> that is
+ * Windows API. This option is only for Windows.
+ * true means the new process is the root process of the new process group.
+ * The new process has CTRL+C disabled. This flag is necessary for
+ * <code>Process.kill(:SIGINT, pid)</code> on the subprocess.
+ * :new_pgroup is false by default.
+ *
+ * pid = spawn(command, :new_pgroup=>true) # new process group
+ * pid = spawn(command, :new_pgroup=>false) # same process group
+ *
* The <code>:rlimit_</code><em>foo</em> key specifies a resource limit.
* <em>foo</em> should be one of resource types such as <code>core</code>.
* The corresponding value should be an integer or an array which have one or
@@ -3193,6 +3417,7 @@ rb_f_system(int argc, VALUE *argv)
* Internally, +spawn+ uses an extra file descriptor to resolve such cyclic
* file descriptor mapping.
*
+ * See <code>Kernel.exec</code> for the standard shell.
*/
static VALUE
@@ -3200,12 +3425,15 @@ rb_f_spawn(int argc, VALUE *argv)
{
rb_pid_t pid;
char errmsg[CHILD_ERRMSG_BUFLEN] = { '\0' };
+ struct rb_exec_arg earg;
- pid = rb_spawn_err(argc, argv, errmsg, sizeof(errmsg));
+ pid = rb_spawn_process(&earg, rb_exec_arg_prepare(&earg, argc, argv, TRUE), errmsg, sizeof(errmsg));
if (pid == -1) {
- if (errmsg[0] == '\0')
- rb_sys_fail(RSTRING_PTR(argv[0]));
- rb_sys_fail(errmsg);
+ const char *prog = errmsg;
+ if (!prog[0] && !(prog = earg.prog) && earg.argc) {
+ prog = RSTRING_PTR(earg.argv[0]);
+ }
+ rb_sys_fail(prog);
}
#if defined(HAVE_FORK) || defined(HAVE_SPAWNV)
return PIDT2NUM(pid);
@@ -3216,7 +3444,7 @@ rb_f_spawn(int argc, VALUE *argv)
/*
* call-seq:
- * sleep([duration]) => fixnum
+ * sleep([duration]) -> fixnum
*
* Suspends the current thread for _duration_ seconds (which may be any number,
* including a +Float+ with fractional seconds). Returns the actual number of
@@ -3244,7 +3472,7 @@ rb_f_sleep(int argc, VALUE *argv)
rb_thread_wait_for(rb_time_interval(argv[0]));
}
else {
- rb_raise(rb_eArgError, "wrong number of arguments");
+ rb_raise(rb_eArgError, "wrong number of arguments (%d for 0..1)", argc);
}
end = time(0) - beg;
@@ -3256,7 +3484,7 @@ rb_f_sleep(int argc, VALUE *argv)
#if (defined(HAVE_GETPGRP) && defined(GETPGRP_VOID)) || defined(HAVE_GETPGID)
/*
* call-seq:
- * Process.getpgrp => integer
+ * Process.getpgrp -> integer
*
* Returns the process group ID for this process. Not available on
* all platforms.
@@ -3289,7 +3517,7 @@ proc_getpgrp(void)
#if defined(HAVE_SETPGID) || (defined(HAVE_SETPGRP) && defined(SETPGRP_VOID))
/*
* call-seq:
- * Process.setpgrp => 0
+ * Process.setpgrp -> 0
*
* Equivalent to <code>setpgid(0,0)</code>. Not available on all
* platforms.
@@ -3315,10 +3543,10 @@ proc_setpgrp(void)
#endif
-#if defined(HAVE_GETPGID) && !defined(__CHECKER__)
+#if defined(HAVE_GETPGID)
/*
* call-seq:
- * Process.getpgid(pid) => integer
+ * Process.getpgid(pid) -> integer
*
* Returns the process group ID for the given process id. Not
* available on all platforms.
@@ -3344,7 +3572,7 @@ proc_getpgid(VALUE obj, VALUE pid)
#ifdef HAVE_SETPGID
/*
* call-seq:
- * Process.setpgid(pid, integer) => 0
+ * Process.setpgid(pid, integer) -> 0
*
* Sets the process group ID of _pid_ (0 indicates this
* process) to <em>integer</em>. Not available on all platforms.
@@ -3368,9 +3596,13 @@ proc_setpgid(VALUE obj, VALUE pid, VALUE pgrp)
#if defined(HAVE_SETSID) || (defined(HAVE_SETPGRP) && defined(TIOCNOTTY))
+#if !defined(HAVE_SETSID)
+static rb_pid_t ruby_setsid(void);
+#define setsid() ruby_setsid()
+#endif
/*
* call-seq:
- * Process.setsid => fixnum
+ * Process.setsid -> fixnum
*
* Establishes this process as a new session and process group
* leader, with no controlling tty. Returns the session id. Not
@@ -3382,18 +3614,22 @@ proc_setpgid(VALUE obj, VALUE pid, VALUE pgrp)
static VALUE
proc_setsid(void)
{
-#if defined(HAVE_SETSID)
rb_pid_t pid;
rb_secure(2);
pid = setsid();
if (pid < 0) rb_sys_fail(0);
return PIDT2NUM(pid);
-#elif defined(HAVE_SETPGRP) && defined(TIOCNOTTY)
+}
+
+#if !defined(HAVE_SETSID)
+#define HAVE_SETSID 1
+static rb_pid_t
+ruby_setsid(void)
+{
rb_pid_t pid;
int ret;
- rb_secure(2);
pid = getpid();
#if defined(SETPGRP_VOID)
ret = setpgrp();
@@ -3403,15 +3639,16 @@ proc_setsid(void)
#else
ret = setpgrp(0, pid);
#endif
- if (ret == -1) rb_sys_fail(0);
+ if (ret == -1) return -1;
if ((fd = open("/dev/tty", O_RDWR)) >= 0) {
+ rb_update_max_fd(fd);
ioctl(fd, TIOCNOTTY, NULL);
close(fd);
}
- return PIDT2NUM(pid);
-#endif
+ return pid;
}
+#endif
#else
#define proc_setsid rb_f_notimplement
#endif
@@ -3420,7 +3657,7 @@ proc_setsid(void)
#ifdef HAVE_GETPRIORITY
/*
* call-seq:
- * Process.getpriority(kind, integer) => fixnum
+ * Process.getpriority(kind, integer) -> fixnum
*
* Gets the scheduling priority for specified process, process group,
* or user. <em>kind</em> indicates the kind of entity to find: one
@@ -3457,7 +3694,7 @@ proc_getpriority(VALUE obj, VALUE which, VALUE who)
#ifdef HAVE_GETPRIORITY
/*
* call-seq:
- * Process.setpriority(kind, integer, priority) => 0
+ * Process.setpriority(kind, integer, priority) -> 0
*
* See <code>Process#getpriority</code>.
*
@@ -3485,83 +3722,114 @@ proc_setpriority(VALUE obj, VALUE which, VALUE who, VALUE prio)
#define proc_setpriority rb_f_notimplement
#endif
-#if defined(RLIM2NUM)
+#if defined(HAVE_SETRLIMIT) && defined(NUM2RLIM)
static int
rlimit_resource_name2int(const char *name, int casetype)
{
- size_t len = strlen(name);
- if (16 < len) return -1;
- if (casetype == 1) {
- size_t i;
- char *name2 = ALLOCA_N(char, len+1);
- for (i = 0; i < len; i++) {
- if (!ISLOWER(name[i]))
- return -1;
- name2[i] = TOUPPER(name[i]);
- }
- name2[len] = '\0';
- name = name2;
- }
-
- switch (*name) {
+ int resource;
+ const char *p;
+#define RESCHECK(r) \
+ do { \
+ if (STRCASECMP(name, #r) == 0) { \
+ resource = RLIMIT_##r; \
+ goto found; \
+ } \
+ } while (0)
+
+ switch (TOUPPER(*name)) {
case 'A':
#ifdef RLIMIT_AS
- if (strcmp(name, "AS") == 0) return RLIMIT_AS;
+ RESCHECK(AS);
#endif
break;
case 'C':
#ifdef RLIMIT_CORE
- if (strcmp(name, "CORE") == 0) return RLIMIT_CORE;
+ RESCHECK(CORE);
#endif
#ifdef RLIMIT_CPU
- if (strcmp(name, "CPU") == 0) return RLIMIT_CPU;
+ RESCHECK(CPU);
#endif
break;
case 'D':
#ifdef RLIMIT_DATA
- if (strcmp(name, "DATA") == 0) return RLIMIT_DATA;
+ RESCHECK(DATA);
#endif
break;
case 'F':
#ifdef RLIMIT_FSIZE
- if (strcmp(name, "FSIZE") == 0) return RLIMIT_FSIZE;
+ RESCHECK(FSIZE);
#endif
break;
case 'M':
#ifdef RLIMIT_MEMLOCK
- if (strcmp(name, "MEMLOCK") == 0) return RLIMIT_MEMLOCK;
+ RESCHECK(MEMLOCK);
+#endif
+#ifdef RLIMIT_MSGQUEUE
+ RESCHECK(MSGQUEUE);
#endif
break;
case 'N':
#ifdef RLIMIT_NOFILE
- if (strcmp(name, "NOFILE") == 0) return RLIMIT_NOFILE;
+ RESCHECK(NOFILE);
#endif
#ifdef RLIMIT_NPROC
- if (strcmp(name, "NPROC") == 0) return RLIMIT_NPROC;
+ RESCHECK(NPROC);
+#endif
+#ifdef RLIMIT_NICE
+ RESCHECK(NICE);
#endif
break;
case 'R':
#ifdef RLIMIT_RSS
- if (strcmp(name, "RSS") == 0) return RLIMIT_RSS;
+ RESCHECK(RSS);
+#endif
+#ifdef RLIMIT_RTPRIO
+ RESCHECK(RTPRIO);
+#endif
+#ifdef RLIMIT_RTTIME
+ RESCHECK(RTTIME);
#endif
break;
case 'S':
#ifdef RLIMIT_STACK
- if (strcmp(name, "STACK") == 0) return RLIMIT_STACK;
+ RESCHECK(STACK);
#endif
#ifdef RLIMIT_SBSIZE
- if (strcmp(name, "SBSIZE") == 0) return RLIMIT_SBSIZE;
+ RESCHECK(SBSIZE);
+#endif
+#ifdef RLIMIT_SIGPENDING
+ RESCHECK(SIGPENDING);
#endif
break;
}
return -1;
+
+ found:
+ switch (casetype) {
+ case 0:
+ for (p = name; *p; p++)
+ if (!ISUPPER(*p))
+ return -1;
+ break;
+
+ case 1:
+ for (p = name; *p; p++)
+ if (!ISLOWER(*p))
+ return -1;
+ break;
+
+ default:
+ rb_bug("unexpected casetype");
+ }
+ return resource;
+#undef RESCHECK
}
static int
@@ -3652,7 +3920,7 @@ rlimit_resource_value(VALUE rval)
#if defined(HAVE_GETRLIMIT) && defined(RLIM2NUM)
/*
* call-seq:
- * Process.getrlimit(resource) => [cur_limit, max_limit]
+ * Process.getrlimit(resource) -> [cur_limit, max_limit]
*
* Gets the resource limit of the process.
* _cur_limit_ means current (soft) limit and
@@ -3689,8 +3957,8 @@ proc_getrlimit(VALUE obj, VALUE resource)
#if defined(HAVE_SETRLIMIT) && defined(NUM2RLIM)
/*
* call-seq:
- * Process.setrlimit(resource, cur_limit, max_limit) => nil
- * Process.setrlimit(resource, cur_limit) => nil
+ * Process.setrlimit(resource, cur_limit, max_limit) -> nil
+ * Process.setrlimit(resource, cur_limit) -> nil
*
* Sets the resource limit of the process.
* _cur_limit_ means current (soft) limit and
@@ -3705,17 +3973,22 @@ proc_getrlimit(VALUE obj, VALUE resource)
* The available resources are OS dependent.
* Ruby may support following resources.
*
+ * [AS] total available memory (bytes) (SUSv3, NetBSD, FreeBSD, OpenBSD but 4.4BSD-Lite)
* [CORE] core size (bytes) (SUSv3)
* [CPU] CPU time (seconds) (SUSv3)
* [DATA] data segment (bytes) (SUSv3)
* [FSIZE] file size (bytes) (SUSv3)
- * [NOFILE] file descriptors (number) (SUSv3)
- * [STACK] stack size (bytes) (SUSv3)
- * [AS] total available memory (bytes) (SUSv3, NetBSD, FreeBSD, OpenBSD but 4.4BSD-Lite)
* [MEMLOCK] total size for mlock(2) (bytes) (4.4BSD, GNU/Linux)
+ * [MSGQUEUE] allocation for POSIX message queues (bytes) (GNU/Linux)
+ * [NICE] ceiling on process's nice(2) value (number) (GNU/Linux)
+ * [NOFILE] file descriptors (number) (SUSv3)
* [NPROC] number of processes for the user (number) (4.4BSD, GNU/Linux)
* [RSS] resident memory size (bytes) (4.2BSD, GNU/Linux)
+ * [RTPRIO] ceiling on the process's real-time priority (number) (GNU/Linux)
+ * [RTTIME] CPU time for real-time process (us) (GNU/Linux)
* [SBSIZE] all socket buffers (bytes) (NetBSD, FreeBSD)
+ * [SIGPENDING] number of queued signals allowed (signals) (GNU/Linux)
+ * [STACK] stack size (bytes) (SUSv3)
*
* _cur_limit_ and _max_limit_ may be
* <code>:INFINITY</code>, <code>"INFINITY"</code> or
@@ -3726,7 +3999,7 @@ proc_getrlimit(VALUE obj, VALUE resource)
* corresponding symbols and strings too.
* See system setrlimit(2) manual for details.
*
- * The following example raise the soft limit of core size to
+ * The following example raises the soft limit of core size to
* the hard limit to try to make core dump possible.
*
* Process.setrlimit(:CORE, Process.getrlimit(:CORE)[1])
@@ -3792,7 +4065,7 @@ check_gid_switch(void)
#if defined HAVE_SETUID
/*
* call-seq:
- * Process::Sys.setuid(integer) => nil
+ * Process::Sys.setuid(integer) -> nil
*
* Set the user ID of the current process to _integer_. Not
* available on all platforms.
@@ -3814,7 +4087,7 @@ p_sys_setuid(VALUE obj, VALUE id)
#if defined HAVE_SETRUID
/*
* call-seq:
- * Process::Sys.setruid(integer) => nil
+ * Process::Sys.setruid(integer) -> nil
*
* Set the real user ID of the calling process to _integer_.
* Not available on all platforms.
@@ -3836,7 +4109,7 @@ p_sys_setruid(VALUE obj, VALUE id)
#if defined HAVE_SETEUID
/*
* call-seq:
- * Process::Sys.seteuid(integer) => nil
+ * Process::Sys.seteuid(integer) -> nil
*
* Set the effective user ID of the calling process to
* _integer_. Not available on all platforms.
@@ -3858,7 +4131,7 @@ p_sys_seteuid(VALUE obj, VALUE id)
#if defined HAVE_SETREUID
/*
* call-seq:
- * Process::Sys.setreuid(rid, eid) => nil
+ * Process::Sys.setreuid(rid, eid) -> nil
*
* Sets the (integer) real and/or effective user IDs of the current
* process to _rid_ and _eid_, respectively. A value of
@@ -3882,7 +4155,7 @@ p_sys_setreuid(VALUE obj, VALUE rid, VALUE eid)
#if defined HAVE_SETRESUID
/*
* call-seq:
- * Process::Sys.setresuid(rid, eid, sid) => nil
+ * Process::Sys.setresuid(rid, eid, sid) -> nil
*
* Sets the (integer) real, effective, and saved user IDs of the
* current process to _rid_, _eid_, and _sid_ respectively. A
@@ -3905,9 +4178,9 @@ p_sys_setresuid(VALUE obj, VALUE rid, VALUE eid, VALUE sid)
/*
* call-seq:
- * Process.uid => fixnum
- * Process::UID.rid => fixnum
- * Process::Sys.getuid => fixnum
+ * Process.uid -> fixnum
+ * Process::UID.rid -> fixnum
+ * Process::Sys.getuid -> fixnum
*
* Returns the (real) user ID of this process.
*
@@ -3925,7 +4198,7 @@ proc_getuid(VALUE obj)
#if defined(HAVE_SETRESUID) || defined(HAVE_SETREUID) || defined(HAVE_SETRUID) || defined(HAVE_SETUID)
/*
* call-seq:
- * Process.uid= integer => numeric
+ * Process.uid= integer -> numeric
*
* Sets the (integer) user ID for this process. Not available on all
* platforms.
@@ -3939,7 +4212,7 @@ proc_setuid(VALUE obj, VALUE id)
check_uid_switch();
uid = NUM2UIDT(id);
-#if defined(HAVE_SETRESUID) && !defined(__CHECKER__)
+#if defined(HAVE_SETRESUID)
if (setresuid(uid, -1, -1) < 0) rb_sys_fail(0);
#elif defined HAVE_SETREUID
if (setreuid(uid, -1) < 0) rb_sys_fail(0);
@@ -3978,11 +4251,11 @@ static rb_uid_t SAVED_USER_ID = -1;
int
setreuid(rb_uid_t ruid, rb_uid_t euid)
{
- if (ruid != -1 && ruid != getuid()) {
- if (euid == -1) euid = geteuid();
+ if (ruid != (rb_uid_t)-1 && ruid != getuid()) {
+ if (euid == (rb_uid_t)-1) euid = geteuid();
if (setuid(ruid) < 0) return -1;
}
- if (euid != -1 && euid != geteuid()) {
+ if (euid != (rb_uid_t)-1 && euid != geteuid()) {
if (seteuid(euid) < 0) return -1;
}
return 0;
@@ -3991,7 +4264,7 @@ setreuid(rb_uid_t ruid, rb_uid_t euid)
/*
* call-seq:
- * Process::UID.change_privilege(integer) => fixnum
+ * Process::UID.change_privilege(integer) -> fixnum
*
* Change the current process's real and effective user ID to that
* specified by _integer_. Returns the new user ID. Not
@@ -4067,16 +4340,18 @@ p_uid_change_privilege(VALUE obj, VALUE id)
#endif
} else { /* unprivileged user */
#if defined(HAVE_SETRESUID)
- if (setresuid((getuid() == uid)? -1: uid,
- (geteuid() == uid)? -1: uid,
- (SAVED_USER_ID == uid)? -1: uid) < 0) rb_sys_fail(0);
+ if (setresuid((getuid() == uid)? (rb_uid_t)-1: uid,
+ (geteuid() == uid)? (rb_uid_t)-1: uid,
+ (SAVED_USER_ID == uid)? (rb_uid_t)-1: uid) < 0) rb_sys_fail(0);
SAVED_USER_ID = uid;
#elif defined(HAVE_SETREUID) && !defined(OBSOLETE_SETREUID)
if (SAVED_USER_ID == uid) {
- if (setreuid((getuid() == uid)? -1: uid,
- (geteuid() == uid)? -1: uid) < 0) rb_sys_fail(0);
+ if (setreuid((getuid() == uid)? (rb_uid_t)-1: uid,
+ (geteuid() == uid)? (rb_uid_t)-1: uid) < 0)
+ rb_sys_fail(0);
} else if (getuid() != uid) {
- if (setreuid(uid, (geteuid() == uid)? -1: uid) < 0) rb_sys_fail(0);
+ if (setreuid(uid, (geteuid() == uid)? (rb_uid_t)-1: uid) < 0)
+ rb_sys_fail(0);
SAVED_USER_ID = uid;
} else if (/* getuid() == uid && */ geteuid() != uid) {
if (setreuid(geteuid(), uid) < 0) rb_sys_fail(0);
@@ -4145,7 +4420,7 @@ p_uid_change_privilege(VALUE obj, VALUE id)
#if defined HAVE_SETGID
/*
* call-seq:
- * Process::Sys.setgid(integer) => nil
+ * Process::Sys.setgid(integer) -> nil
*
* Set the group ID of the current process to _integer_. Not
* available on all platforms.
@@ -4167,7 +4442,7 @@ p_sys_setgid(VALUE obj, VALUE id)
#if defined HAVE_SETRGID
/*
* call-seq:
- * Process::Sys.setrgid(integer) => nil
+ * Process::Sys.setrgid(integer) -> nil
*
* Set the real group ID of the calling process to _integer_.
* Not available on all platforms.
@@ -4189,7 +4464,7 @@ p_sys_setrgid(VALUE obj, VALUE id)
#if defined HAVE_SETEGID
/*
* call-seq:
- * Process::Sys.setegid(integer) => nil
+ * Process::Sys.setegid(integer) -> nil
*
* Set the effective group ID of the calling process to
* _integer_. Not available on all platforms.
@@ -4211,7 +4486,7 @@ p_sys_setegid(VALUE obj, VALUE id)
#if defined HAVE_SETREGID
/*
* call-seq:
- * Process::Sys.setregid(rid, eid) => nil
+ * Process::Sys.setregid(rid, eid) -> nil
*
* Sets the (integer) real and/or effective group IDs of the current
* process to <em>rid</em> and <em>eid</em>, respectively. A value of
@@ -4234,7 +4509,7 @@ p_sys_setregid(VALUE obj, VALUE rid, VALUE eid)
#if defined HAVE_SETRESGID
/*
* call-seq:
- * Process::Sys.setresgid(rid, eid, sid) => nil
+ * Process::Sys.setresgid(rid, eid, sid) -> nil
*
* Sets the (integer) real, effective, and saved user IDs of the
* current process to <em>rid</em>, <em>eid</em>, and <em>sid</em>
@@ -4258,7 +4533,7 @@ p_sys_setresgid(VALUE obj, VALUE rid, VALUE eid, VALUE sid)
#if defined HAVE_ISSETUGID
/*
* call-seq:
- * Process::Sys.issetugid => true or false
+ * Process::Sys.issetugid -> true or false
*
* Returns +true+ if the process was created as a result
* of an execve(2) system call which had either of the setuid or
@@ -4285,9 +4560,9 @@ p_sys_issetugid(VALUE obj)
/*
* call-seq:
- * Process.gid => fixnum
- * Process::GID.rid => fixnum
- * Process::Sys.getgid => fixnum
+ * Process.gid -> fixnum
+ * Process::GID.rid -> fixnum
+ * Process::Sys.getgid -> fixnum
*
* Returns the (real) group ID for this process.
*
@@ -4305,7 +4580,7 @@ proc_getgid(VALUE obj)
#if defined(HAVE_SETRESGID) || defined(HAVE_SETREGID) || defined(HAVE_SETRGID) || defined(HAVE_SETGID)
/*
* call-seq:
- * Process.gid= fixnum => fixnum
+ * Process.gid= fixnum -> fixnum
*
* Sets the group ID for this process.
*/
@@ -4318,7 +4593,7 @@ proc_setgid(VALUE obj, VALUE id)
check_gid_switch();
gid = NUM2GIDT(id);
-#if defined(HAVE_SETRESGID) && !defined(__CHECKER__)
+#if defined(HAVE_SETRESGID)
if (setresgid(gid, -1, -1) < 0) rb_sys_fail(0);
#elif defined HAVE_SETREGID
if (setregid(gid, -1) < 0) rb_sys_fail(0);
@@ -4341,13 +4616,57 @@ proc_setgid(VALUE obj, VALUE id)
#endif
-static size_t maxgroups = 32;
+#if defined(HAVE_SETGROUPS) || defined(HAVE_GETGROUPS)
+/*
+ * Maximum supplementary groups are platform dependent.
+ * FWIW, 65536 is enough big for our supported OSs.
+ *
+ * OS Name max groups
+ * -----------------------------------------------
+ * Linux Kernel >= 2.6.3 65536
+ * Linux Kernel < 2.6.3 32
+ * IBM AIX 5.2 64
+ * IBM AIX 5.3 ... 6.1 128
+ * IBM AIX 7.1 128 (can be configured to be up to 2048)
+ * OpenBSD, NetBSD 16
+ * FreeBSD < 8.0 16
+ * FreeBSD >=8.0 1023
+ * Darwin (Mac OS X) 16
+ * Sun Solaris 7,8,9,10 16
+ * Sun Solaris 11 / OpenSolaris 1024
+ * HP-UX 20
+ * Windows 1015
+ */
+#define RB_MAX_GROUPS (65536)
+static int _maxgroups = -1;
+static int get_sc_ngroups_max(void)
+{
+#ifdef _SC_NGROUPS_MAX
+ return (int)sysconf(_SC_NGROUPS_MAX);
+#elif defined(NGROUPS_MAX)
+ return (int)NGROUPS_MAX;
+#else
+ return -1;
+#endif
+}
+static int maxgroups(void)
+{
+ if (_maxgroups < 0) {
+ _maxgroups = get_sc_ngroups_max();
+ if (_maxgroups < 0)
+ _maxgroups = RB_MAX_GROUPS;
+ }
+
+ return _maxgroups;
+}
+#endif
+
#ifdef HAVE_GETGROUPS
/*
* call-seq:
- * Process.groups => array
+ * Process.groups -> array
*
* Get an <code>Array</code> of the gids of groups in the
* supplemental group access list for this process.
@@ -4360,13 +4679,17 @@ static VALUE
proc_getgroups(VALUE obj)
{
VALUE ary;
- size_t i, ngroups;
+ int i, ngroups;
rb_gid_t *groups;
- groups = ALLOCA_N(rb_gid_t, maxgroups);
+ ngroups = getgroups(0, NULL);
+ if (ngroups == -1)
+ rb_sys_fail(0);
+
+ groups = ALLOCA_N(rb_gid_t, ngroups);
- ngroups = getgroups(maxgroups, groups);
- if (ngroups == (size_t)-1)
+ ngroups = getgroups(ngroups, groups);
+ if (ngroups == -1)
rb_sys_fail(0);
ary = rb_ary_new();
@@ -4383,7 +4706,7 @@ proc_getgroups(VALUE obj)
#ifdef HAVE_SETGROUPS
/*
* call-seq:
- * Process.groups= array => array
+ * Process.groups= array -> array
*
* Set the supplemental group access list to the given
* <code>Array</code> of group IDs.
@@ -4397,19 +4720,26 @@ proc_getgroups(VALUE obj)
static VALUE
proc_setgroups(VALUE obj, VALUE ary)
{
- size_t ngroups, i;
+ int ngroups, i;
rb_gid_t *groups;
- struct group *gr;
+#ifdef HAVE_GETGRNAM_R
+ long getgr_buf_len = sysconf(_SC_GETGR_R_SIZE_MAX);
+ char* getgr_buf;
+
+ if (getgr_buf_len < 0)
+ getgr_buf_len = 4096;
+ getgr_buf = ALLOCA_N(char, getgr_buf_len);
+#endif
Check_Type(ary, T_ARRAY);
- ngroups = RARRAY_LEN(ary);
- if (ngroups > maxgroups)
- rb_raise(rb_eArgError, "too many groups, %lu max", (unsigned long)maxgroups);
+ ngroups = RARRAY_LENINT(ary);
+ if (ngroups > maxgroups())
+ rb_raise(rb_eArgError, "too many groups, %d max", maxgroups());
groups = ALLOCA_N(rb_gid_t, ngroups);
- for (i = 0; i < ngroups && i < (size_t)RARRAY_LEN(ary); i++) {
+ for (i = 0; i < ngroups; i++) {
VALUE g = RARRAY_PTR(ary)[i];
if (FIXNUM_P(g)) {
@@ -4417,21 +4747,33 @@ proc_setgroups(VALUE obj, VALUE ary)
}
else {
VALUE tmp = rb_check_string_type(g);
+ struct group grp;
+ struct group *p;
+ int ret;
if (NIL_P(tmp)) {
groups[i] = NUM2GIDT(g);
}
else {
- gr = getgrnam(RSTRING_PTR(tmp));
- if (gr == NULL)
+ const char *grpname = StringValueCStr(tmp);
+
+#ifdef HAVE_GETGRNAM_R
+ ret = getgrnam_r(grpname, &grp, getgr_buf, getgr_buf_len, &p);
+ if (ret)
+ rb_sys_fail("getgrnam_r");
+#else
+ p = getgrnam(grpname);
+#endif
+ if (p == NULL) {
rb_raise(rb_eArgError,
"can't find group for %s", RSTRING_PTR(tmp));
- groups[i] = gr->gr_gid;
+ }
+ groups[i] = p->gr_gid;
}
}
}
- if (setgroups(ngroups, groups) == -1)
+ if (setgroups(ngroups, groups) == -1) /* ngroups <= maxgroups */
rb_sys_fail(0);
return proc_getgroups(obj);
@@ -4444,7 +4786,7 @@ proc_setgroups(VALUE obj, VALUE ary)
#ifdef HAVE_INITGROUPS
/*
* call-seq:
- * Process.initgroups(username, gid) => array
+ * Process.initgroups(username, gid) -> array
*
* Initializes the supplemental group access list by reading the
* system group database and using all groups of which the given user
@@ -4471,10 +4813,10 @@ proc_initgroups(VALUE obj, VALUE uname, VALUE base_grp)
#define proc_initgroups rb_f_notimplement
#endif
-
+#if defined(_SC_NGROUPS_MAX) || defined(NGROUPS_MAX)
/*
* call-seq:
- * Process.maxgroups => fixnum
+ * Process.maxgroups -> fixnum
*
* Returns the maximum number of gids allowed in the supplemental
* group access list.
@@ -4485,13 +4827,16 @@ proc_initgroups(VALUE obj, VALUE uname, VALUE base_grp)
static VALUE
proc_getmaxgroups(VALUE obj)
{
- return INT2FIX(maxgroups);
+ return INT2FIX(maxgroups());
}
+#else
+#define proc_getmaxgroups rb_f_notimplement
+#endif
-
+#ifdef HAVE_SETGROUPS
/*
* call-seq:
- * Process.maxgroups= fixnum => fixnum
+ * Process.maxgroups= fixnum -> fixnum
*
* Sets the maximum number of gids allowed in the supplemental group
* access list.
@@ -4500,21 +4845,33 @@ proc_getmaxgroups(VALUE obj)
static VALUE
proc_setmaxgroups(VALUE obj, VALUE val)
{
- size_t ngroups = FIX2INT(val);
+ int ngroups = FIX2INT(val);
+ int ngroups_max = get_sc_ngroups_max();
- if (ngroups > 4096)
- ngroups = 4096;
+ if (ngroups <= 0)
+ rb_raise(rb_eArgError, "maxgroups %d shold be positive", ngroups);
- maxgroups = ngroups;
+ if (ngroups > RB_MAX_GROUPS)
+ ngroups = RB_MAX_GROUPS;
- return INT2FIX(maxgroups);
+ if (ngroups_max > 0 && ngroups > ngroups_max)
+ ngroups = ngroups_max;
+
+ _maxgroups = ngroups;
+
+ return INT2FIX(_maxgroups);
}
+#else
+#define proc_setmaxgroups rb_f_notimplement
+#endif
+
+#if defined(HAVE_DAEMON) || (defined(HAVE_FORK) && defined(HAVE_SETSID))
+static int rb_daemon(int nochdir, int noclose);
-#if defined(HAVE_DAEMON) || defined(HAVE_FORK)
/*
* call-seq:
- * Process.daemon() => fixnum
- * Process.daemon(nochdir=nil,noclose=nil) => fixnum
+ * Process.daemon() -> 0
+ * Process.daemon(nochdir=nil,noclose=nil) -> 0
*
* Detach the process from controlling terminal and run in
* the background as system daemon. Unless the argument
@@ -4522,6 +4879,7 @@ proc_setmaxgroups(VALUE obj, VALUE val)
* working directory to the root ("/"). Unless the argument
* noclose is true, daemon() will redirect standard input,
* standard output and standard error to /dev/null.
+ * Return zero on success, or raise one of Errno::*.
*/
static VALUE
@@ -4533,21 +4891,30 @@ proc_daemon(int argc, VALUE *argv)
rb_secure(2);
rb_scan_args(argc, argv, "02", &nochdir, &noclose);
-#if defined(HAVE_DAEMON)
prefork();
- before_fork();
- n = daemon(RTEST(nochdir), RTEST(noclose));
- after_fork();
+ n = rb_daemon(RTEST(nochdir), RTEST(noclose));
if (n < 0) rb_sys_fail("daemon");
return INT2FIX(n);
-#elif defined(HAVE_FORK)
+}
+
+static int
+rb_daemon(int nochdir, int noclose)
+{
+ int err = 0;
+#ifdef HAVE_DAEMON
+ before_fork();
+ err = daemon(nochdir, noclose);
+ after_fork();
+#else
+ int n;
+
switch (rb_fork(0, 0, 0, Qnil)) {
case -1:
- return INT2FIX(-1);
+ rb_sys_fail("daemon");
case 0:
break;
default:
- _exit(0);
+ _exit(EXIT_SUCCESS);
}
proc_setsid();
@@ -4555,25 +4922,26 @@ proc_daemon(int argc, VALUE *argv)
/* must not be process-leader */
switch (rb_fork(0, 0, 0, Qnil)) {
case -1:
- return INT2FIX(-1);
+ return -1;
case 0:
break;
default:
- _exit(0);
+ _exit(EXIT_SUCCESS);
}
- if (!RTEST(nochdir))
- (void)chdir("/");
+ if (!nochdir)
+ err = chdir("/");
- if (!RTEST(noclose) && (n = open("/dev/null", O_RDWR, 0)) != -1) {
+ if (!noclose && (n = open("/dev/null", O_RDWR, 0)) != -1) {
+ rb_update_max_fd(n);
(void)dup2(n, 0);
(void)dup2(n, 1);
(void)dup2(n, 2);
if (n > 2)
(void)close (n);
}
- return INT2FIX(0);
#endif
+ return err;
}
#else
#define proc_daemon rb_f_notimplement
@@ -4595,11 +4963,11 @@ static rb_gid_t SAVED_GROUP_ID = -1;
int
setregid(rb_gid_t rgid, rb_gid_t egid)
{
- if (rgid != -1 && rgid != getgid()) {
- if (egid == -1) egid = getegid();
+ if (rgid != (rb_gid_t)-1 && rgid != getgid()) {
+ if (egid == (rb_gid_t)-1) egid = getegid();
if (setgid(rgid) < 0) return -1;
}
- if (egid != -1 && egid != getegid()) {
+ if (egid != (rb_gid_t)-1 && egid != getegid()) {
if (setegid(egid) < 0) return -1;
}
return 0;
@@ -4608,7 +4976,7 @@ setregid(rb_gid_t rgid, rb_gid_t egid)
/*
* call-seq:
- * Process::GID.change_privilege(integer) => fixnum
+ * Process::GID.change_privilege(integer) -> fixnum
*
* Change the current process's real and effective group ID to that
* specified by _integer_. Returns the new group ID. Not
@@ -4685,16 +5053,18 @@ p_gid_change_privilege(VALUE obj, VALUE id)
#endif
} else { /* unprivileged user */
#if defined(HAVE_SETRESGID)
- if (setresgid((getgid() == gid)? -1: gid,
- (getegid() == gid)? -1: gid,
- (SAVED_GROUP_ID == gid)? -1: gid) < 0) rb_sys_fail(0);
+ if (setresgid((getgid() == gid)? (rb_gid_t)-1: gid,
+ (getegid() == gid)? (rb_gid_t)-1: gid,
+ (SAVED_GROUP_ID == gid)? (rb_gid_t)-1: gid) < 0) rb_sys_fail(0);
SAVED_GROUP_ID = gid;
#elif defined(HAVE_SETREGID) && !defined(OBSOLETE_SETREGID)
if (SAVED_GROUP_ID == gid) {
- if (setregid((getgid() == gid)? -1: gid,
- (getegid() == gid)? -1: gid) < 0) rb_sys_fail(0);
+ if (setregid((getgid() == gid)? (rb_uid_t)-1: gid,
+ (getegid() == gid)? (rb_uid_t)-1: gid) < 0)
+ rb_sys_fail(0);
} else if (getgid() != gid) {
- if (setregid(gid, (getegid() == gid)? -1: gid) < 0) rb_sys_fail(0);
+ if (setregid(gid, (getegid() == gid)? (rb_uid_t)-1: gid) < 0)
+ rb_sys_fail(0);
SAVED_GROUP_ID = gid;
} else if (/* getgid() == gid && */ getegid() != gid) {
if (setregid(getegid(), gid) < 0) rb_sys_fail(0);
@@ -4761,9 +5131,9 @@ p_gid_change_privilege(VALUE obj, VALUE id)
/*
* call-seq:
- * Process.euid => fixnum
- * Process::UID.eid => fixnum
- * Process::Sys.geteuid => fixnum
+ * Process.euid -> fixnum
+ * Process::UID.eid -> fixnum
+ * Process::Sys.geteuid -> fixnum
*
* Returns the effective user ID for this process.
*
@@ -4794,7 +5164,7 @@ proc_seteuid(VALUE obj, VALUE euid)
check_uid_switch();
uid = NUM2UIDT(euid);
-#if defined(HAVE_SETRESUID) && !defined(__CHECKER__)
+#if defined(HAVE_SETRESUID)
if (setresuid(-1, uid, -1) < 0) rb_sys_fail(0);
#elif defined HAVE_SETREUID
if (setreuid(-1, uid) < 0) rb_sys_fail(0);
@@ -4829,7 +5199,7 @@ rb_seteuid_core(rb_uid_t euid)
uid = getuid();
-#if defined(HAVE_SETRESUID) && !defined(__CHECKER__)
+#if defined(HAVE_SETRESUID)
if (uid != euid) {
if (setresuid(-1,euid,euid) < 0) rb_sys_fail(0);
SAVED_USER_ID = euid;
@@ -4857,8 +5227,8 @@ rb_seteuid_core(rb_uid_t euid)
/*
* call-seq:
- * Process::UID.grant_privilege(integer) => fixnum
- * Process::UID.eid= integer => fixnum
+ * Process::UID.grant_privilege(integer) -> fixnum
+ * Process::UID.eid= integer -> fixnum
*
* Set the effective user ID, and if possible, the saved user ID of
* the process to the given _integer_. Returns the new
@@ -4879,9 +5249,9 @@ p_uid_grant_privilege(VALUE obj, VALUE id)
/*
* call-seq:
- * Process.egid => fixnum
- * Process::GID.eid => fixnum
- * Process::Sys.geteid => fixnum
+ * Process.egid -> fixnum
+ * Process::GID.eid -> fixnum
+ * Process::Sys.geteid -> fixnum
*
* Returns the effective group ID for this process. Not available on
* all platforms.
@@ -4900,7 +5270,7 @@ proc_getegid(VALUE obj)
#if defined(HAVE_SETRESGID) || defined(HAVE_SETREGID) || defined(HAVE_SETEGID) || defined(HAVE_SETGID) || defined(_POSIX_SAVED_IDS)
/*
* call-seq:
- * Process.egid = fixnum => fixnum
+ * Process.egid = fixnum -> fixnum
*
* Sets the effective group ID for this process. Not available on all
* platforms.
@@ -4914,7 +5284,7 @@ proc_setegid(VALUE obj, VALUE egid)
check_gid_switch();
gid = NUM2GIDT(egid);
-#if defined(HAVE_SETRESGID) && !defined(__CHECKER__)
+#if defined(HAVE_SETRESGID)
if (setresgid(-1, gid, -1) < 0) rb_sys_fail(0);
#elif defined HAVE_SETREGID
if (setregid(-1, gid) < 0) rb_sys_fail(0);
@@ -4949,7 +5319,7 @@ rb_setegid_core(rb_gid_t egid)
gid = getgid();
-#if defined(HAVE_SETRESGID) && !defined(__CHECKER__)
+#if defined(HAVE_SETRESGID)
if (gid != egid) {
if (setresgid(-1,egid,egid) < 0) rb_sys_fail(0);
SAVED_GROUP_ID = egid;
@@ -4977,8 +5347,8 @@ rb_setegid_core(rb_gid_t egid)
/*
* call-seq:
- * Process::GID.grant_privilege(integer) => fixnum
- * Process::GID.eid = integer => fixnum
+ * Process::GID.grant_privilege(integer) -> fixnum
+ * Process::GID.eid = integer -> fixnum
*
* Set the effective group ID, and if possible, the saved group ID of
* the process to the given _integer_. Returns the new
@@ -4999,7 +5369,7 @@ p_gid_grant_privilege(VALUE obj, VALUE id)
/*
* call-seq:
- * Process::UID.re_exchangeable? => true or false
+ * Process::UID.re_exchangeable? -> true or false
*
* Returns +true+ if the real and effective user IDs of a
* process may be exchanged on the current platform.
@@ -5009,7 +5379,7 @@ p_gid_grant_privilege(VALUE obj, VALUE id)
static VALUE
p_uid_exchangeable(void)
{
-#if defined(HAVE_SETRESUID) && !defined(__CHECKER__)
+#if defined(HAVE_SETRESUID)
return Qtrue;
#elif defined(HAVE_SETREUID) && !defined(OBSOLETE_SETREUID)
return Qtrue;
@@ -5021,7 +5391,7 @@ p_uid_exchangeable(void)
/*
* call-seq:
- * Process::UID.re_exchange => fixnum
+ * Process::UID.re_exchange -> fixnum
*
* Exchange real and effective user IDs and return the new effective
* user ID. Not available on all platforms.
@@ -5041,7 +5411,7 @@ p_uid_exchange(VALUE obj)
uid = getuid();
euid = geteuid();
-#if defined(HAVE_SETRESUID) && !defined(__CHECKER__)
+#if defined(HAVE_SETRESUID)
if (setresuid(euid, uid, uid) < 0) rb_sys_fail(0);
SAVED_USER_ID = uid;
#elif defined(HAVE_SETREUID) && !defined(OBSOLETE_SETREUID)
@@ -5056,7 +5426,7 @@ p_uid_exchange(VALUE obj)
/*
* call-seq:
- * Process::GID.re_exchangeable? => true or false
+ * Process::GID.re_exchangeable? -> true or false
*
* Returns +true+ if the real and effective group IDs of a
* process may be exchanged on the current platform.
@@ -5066,7 +5436,7 @@ p_uid_exchange(VALUE obj)
static VALUE
p_gid_exchangeable(void)
{
-#if defined(HAVE_SETRESGID) && !defined(__CHECKER__)
+#if defined(HAVE_SETRESGID)
return Qtrue;
#elif defined(HAVE_SETREGID) && !defined(OBSOLETE_SETREGID)
return Qtrue;
@@ -5078,7 +5448,7 @@ p_gid_exchangeable(void)
/*
* call-seq:
- * Process::GID.re_exchange => fixnum
+ * Process::GID.re_exchange -> fixnum
*
* Exchange real and effective group IDs and return the new effective
* group ID. Not available on all platforms.
@@ -5098,7 +5468,7 @@ p_gid_exchange(VALUE obj)
gid = getgid();
egid = getegid();
-#if defined(HAVE_SETRESGID) && !defined(__CHECKER__)
+#if defined(HAVE_SETRESGID)
if (setresgid(egid, gid, gid) < 0) rb_sys_fail(0);
SAVED_GROUP_ID = gid;
#elif defined(HAVE_SETREGID) && !defined(OBSOLETE_SETREGID)
@@ -5114,7 +5484,7 @@ p_gid_exchange(VALUE obj)
/*
* call-seq:
- * Process::UID.sid_available? => true or false
+ * Process::UID.sid_available? -> true or false
*
* Returns +true+ if the current platform has saved user
* ID functionality.
@@ -5144,8 +5514,8 @@ p_uid_sw_ensure(rb_uid_t id)
/*
* call-seq:
- * Process::UID.switch => fixnum
- * Process::UID.switch {|| block} => object
+ * Process::UID.switch -> fixnum
+ * Process::UID.switch {|| block} -> object
*
* Switch the effective and real user IDs of the current process. If
* a <em>block</em> is given, the user IDs will be switched back
@@ -5223,7 +5593,7 @@ p_uid_switch(VALUE obj)
/*
* call-seq:
- * Process::GID.sid_available? => true or false
+ * Process::GID.sid_available? -> true or false
*
* Returns +true+ if the current platform has saved group
* ID functionality.
@@ -5252,8 +5622,8 @@ p_gid_sw_ensure(rb_gid_t id)
/*
* call-seq:
- * Process::GID.switch => fixnum
- * Process::GID.switch {|| block} => object
+ * Process::GID.switch -> fixnum
+ * Process::GID.switch {|| block} -> object
*
* Switch the effective and real group IDs of the current process. If
* a <em>block</em> is given, the group IDs will be switched back
@@ -5329,17 +5699,17 @@ p_gid_switch(VALUE obj)
#endif
-#if defined(HAVE_TIMES) && !defined(__CHECKER__)
+#if defined(HAVE_TIMES)
/*
* call-seq:
- * Process.times => aStructTms
+ * Process.times -> aStructTms
*
- * Returns a <code>Tms</code> structure (see <code>Struct::Tms</code>
- * on page 388) that contains user and system CPU times for this
- * process.
+ * Returns a <code>Tms</code> structure (see <code>Struct::Tms</code>)
+ * that contains user and system CPU times for this process,
+ * and also for children processes.
*
* t = Process.times
- * [ t.utime, t.stime ] #=> [0.0, 0.02]
+ * [ t.utime, t.stime, t.cutime, t.cstime ] #=> [0.0, 0.02, 0.00, 0.00]
*/
VALUE
@@ -5400,13 +5770,17 @@ Init_process(void)
rb_mProcess = rb_define_module("Process");
#ifdef WNOHANG
+ /* see Process.wait */
rb_define_const(rb_mProcess, "WNOHANG", INT2FIX(WNOHANG));
#else
+ /* see Process.wait */
rb_define_const(rb_mProcess, "WNOHANG", INT2FIX(0));
#endif
#ifdef WUNTRACED
+ /* see Process.wait */
rb_define_const(rb_mProcess, "WUNTRACED", INT2FIX(WUNTRACED));
#else
+ /* see Process.wait */
rb_define_const(rb_mProcess, "WUNTRACED", INT2FIX(0));
#endif
@@ -5460,63 +5834,151 @@ Init_process(void)
rb_define_module_function(rb_mProcess, "setpriority", proc_setpriority, 3);
#ifdef HAVE_GETPRIORITY
+ /* see Process.setpriority */
rb_define_const(rb_mProcess, "PRIO_PROCESS", INT2FIX(PRIO_PROCESS));
+ /* see Process.setpriority */
rb_define_const(rb_mProcess, "PRIO_PGRP", INT2FIX(PRIO_PGRP));
+ /* see Process.setpriority */
rb_define_const(rb_mProcess, "PRIO_USER", INT2FIX(PRIO_USER));
#endif
rb_define_module_function(rb_mProcess, "getrlimit", proc_getrlimit, 1);
rb_define_module_function(rb_mProcess, "setrlimit", proc_setrlimit, -1);
-#ifdef RLIM2NUM
+#if defined(RLIM2NUM) && defined(RLIM_INFINITY)
{
VALUE inf = RLIM2NUM(RLIM_INFINITY);
#ifdef RLIM_SAVED_MAX
{
VALUE v = RLIM_INFINITY == RLIM_SAVED_MAX ? inf : RLIM2NUM(RLIM_SAVED_MAX);
+ /* see Process.setrlimit */
rb_define_const(rb_mProcess, "RLIM_SAVED_MAX", v);
}
#endif
+ /* see Process.setrlimit */
rb_define_const(rb_mProcess, "RLIM_INFINITY", inf);
#ifdef RLIM_SAVED_CUR
{
VALUE v = RLIM_INFINITY == RLIM_SAVED_CUR ? inf : RLIM2NUM(RLIM_SAVED_CUR);
+ /* see Process.setrlimit */
rb_define_const(rb_mProcess, "RLIM_SAVED_CUR", v);
}
#endif
}
+#ifdef RLIMIT_AS
+ /* Maximum size of the process's virtual memory (address space) in bytes.
+ *
+ * see the system getrlimit(2) manual for details.
+ */
+ rb_define_const(rb_mProcess, "RLIMIT_AS", INT2FIX(RLIMIT_AS));
+#endif
#ifdef RLIMIT_CORE
+ /* Maximum size of the core file.
+ *
+ * see the system getrlimit(2) manual for details.
+ */
rb_define_const(rb_mProcess, "RLIMIT_CORE", INT2FIX(RLIMIT_CORE));
#endif
#ifdef RLIMIT_CPU
+ /* CPU time limit in seconds.
+ *
+ * see the system getrlimit(2) manual for details.
+ */
rb_define_const(rb_mProcess, "RLIMIT_CPU", INT2FIX(RLIMIT_CPU));
#endif
#ifdef RLIMIT_DATA
+ /* Maximum size of the process's data segment.
+ *
+ * see the system getrlimit(2) manual for details.
+ */
rb_define_const(rb_mProcess, "RLIMIT_DATA", INT2FIX(RLIMIT_DATA));
#endif
#ifdef RLIMIT_FSIZE
+ /* Maximum size of files that the process may create.
+ *
+ * see the system getrlimit(2) manual for details.
+ */
rb_define_const(rb_mProcess, "RLIMIT_FSIZE", INT2FIX(RLIMIT_FSIZE));
#endif
-#ifdef RLIMIT_NOFILE
- rb_define_const(rb_mProcess, "RLIMIT_NOFILE", INT2FIX(RLIMIT_NOFILE));
+#ifdef RLIMIT_MEMLOCK
+ /* Maximum number of bytes of memory that may be locked into RAM.
+ *
+ * see the system getrlimit(2) manual for details.
+ */
+ rb_define_const(rb_mProcess, "RLIMIT_MEMLOCK", INT2FIX(RLIMIT_MEMLOCK));
#endif
-#ifdef RLIMIT_STACK
- rb_define_const(rb_mProcess, "RLIMIT_STACK", INT2FIX(RLIMIT_STACK));
+#ifdef RLIMIT_MSGQUEUE
+ /* Specifies the limit on the number of bytes that can be allocated
+ * for POSIX message queues for the real user ID of the calling process.
+ *
+ * see the system getrlimit(2) manual for details.
+ */
+ rb_define_const(rb_mProcess, "RLIMIT_MSGQUEUE", INT2FIX(RLIMIT_MSGQUEUE));
#endif
-#ifdef RLIMIT_AS
- rb_define_const(rb_mProcess, "RLIMIT_AS", INT2FIX(RLIMIT_AS));
+#ifdef RLIMIT_NICE
+ /* Specifies a ceiling to which the process's nice value can be raised.
+ *
+ * see the system getrlimit(2) manual for details.
+ */
+ rb_define_const(rb_mProcess, "RLIMIT_NICE", INT2FIX(RLIMIT_NICE));
#endif
-#ifdef RLIMIT_MEMLOCK
- rb_define_const(rb_mProcess, "RLIMIT_MEMLOCK", INT2FIX(RLIMIT_MEMLOCK));
+#ifdef RLIMIT_NOFILE
+ /* Specifies a value one greater than the maximum file descriptor
+ * number that can be opened by this process.
+ *
+ * see the system getrlimit(2) manual for details.
+ */
+ rb_define_const(rb_mProcess, "RLIMIT_NOFILE", INT2FIX(RLIMIT_NOFILE));
#endif
#ifdef RLIMIT_NPROC
+ /* The maximum number of processes that can be created for the
+ * real user ID of the calling process.
+ *
+ * see the system getrlimit(2) manual for details.
+ */
rb_define_const(rb_mProcess, "RLIMIT_NPROC", INT2FIX(RLIMIT_NPROC));
#endif
#ifdef RLIMIT_RSS
+ /* Specifies the limit (in pages) of the process's resident set.
+ *
+ * see the system getrlimit(2) manual for details.
+ */
rb_define_const(rb_mProcess, "RLIMIT_RSS", INT2FIX(RLIMIT_RSS));
#endif
+#ifdef RLIMIT_RTPRIO
+ /* Specifies a ceiling on the real-time priority that may be set for this process.
+ *
+ * see the system getrlimit(2) manual for details.
+ */
+ rb_define_const(rb_mProcess, "RLIMIT_RTPRIO", INT2FIX(RLIMIT_RTPRIO));
+#endif
+#ifdef RLIMIT_RTTIME
+ /* Specifies limit on CPU time this process scheduled under a real-time
+ * scheduling policy can consume.
+ *
+ * see the system getrlimit(2) manual for details.
+ */
+ rb_define_const(rb_mProcess, "RLIMIT_RTTIME", INT2FIX(RLIMIT_RTTIME));
+#endif
#ifdef RLIMIT_SBSIZE
+ /* Maximum size of the socket buffer.
+ */
rb_define_const(rb_mProcess, "RLIMIT_SBSIZE", INT2FIX(RLIMIT_SBSIZE));
#endif
+#ifdef RLIMIT_SIGPENDING
+ /* Specifies a limit on the number of signals that may be queued for
+ * the real user ID of the calling process.
+ *
+ * see the system getrlimit(2) manual for details.
+ */
+ rb_define_const(rb_mProcess, "RLIMIT_SIGPENDING", INT2FIX(RLIMIT_SIGPENDING));
+#endif
+#ifdef RLIMIT_STACK
+ /* Maximum size of the stack, in bytes.
+ *
+ * see the system getrlimit(2) manual for details.
+ */
+ rb_define_const(rb_mProcess, "RLIMIT_STACK", INT2FIX(RLIMIT_STACK));
+#endif
#endif
rb_define_module_function(rb_mProcess, "uid", proc_getuid, 0);
diff --git a/random.c b/random.c
index be720a0fe5..192110a850 100644
--- a/random.c
+++ b/random.c
@@ -59,18 +59,47 @@ The original copyright notice follows.
email: matumoto@math.keio.ac.jp
*/
+#include "ruby/ruby.h"
+
+#include <limits.h>
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>
+#endif
+#include <time.h>
+#include <sys/types.h>
+#include <sys/stat.h>
+#ifdef HAVE_FCNTL_H
+#include <fcntl.h>
+#endif
+#include <math.h>
+#include <errno.h>
+
+#ifdef _WIN32
+# if !defined(_WIN32_WINNT) || _WIN32_WINNT < 0x0400
+# undef _WIN32_WINNT
+# define _WIN32_WINNT 0x400
+# undef __WINCRYPT_H__
+# endif
+#include <wincrypt.h>
+#endif
+
+typedef int int_must_be_32bit_at_least[sizeof(int) * CHAR_BIT < 32 ? -1 : 1];
+
/* Period parameters */
#define N 624
#define M 397
-#define MATRIX_A 0x9908b0dfUL /* constant vector a */
-#define UMASK 0x80000000UL /* most significant w-r bits */
-#define LMASK 0x7fffffffUL /* least significant r bits */
+#define MATRIX_A 0x9908b0dfU /* constant vector a */
+#define UMASK 0x80000000U /* most significant w-r bits */
+#define LMASK 0x7fffffffU /* least significant r bits */
#define MIXBITS(u,v) ( ((u) & UMASK) | ((v) & LMASK) )
-#define TWIST(u,v) ((MIXBITS(u,v) >> 1) ^ ((v)&1UL ? MATRIX_A : 0UL))
+#define TWIST(u,v) ((MIXBITS((u),(v)) >> 1) ^ ((v)&1U ? MATRIX_A : 0U))
+
+enum {MT_MAX_STATE = N};
struct MT {
- unsigned long state[N]; /* the array for the state vector */
- unsigned long *next;
+ /* assume int is enough to store 32bits */
+ unsigned int state[N]; /* the array for the state vector */
+ unsigned int *next;
int left;
};
@@ -79,20 +108,20 @@ struct MT {
/* initializes state[N] with a seed */
static void
-init_genrand(struct MT *mt, unsigned long s)
+init_genrand(struct MT *mt, unsigned int s)
{
int j;
- mt->state[0] = s & 0xffffffffUL;
+ mt->state[0] = s & 0xffffffffU;
for (j=1; j<N; j++) {
- mt->state[j] = (1812433253UL * (mt->state[j-1] ^ (mt->state[j-1] >> 30)) + j);
+ mt->state[j] = (1812433253U * (mt->state[j-1] ^ (mt->state[j-1] >> 30)) + j);
/* See Knuth TAOCP Vol2. 3rd Ed. P.106 for multiplier. */
/* In the previous versions, MSBs of the seed affect */
- /* only MSBs of the array state[]. */
+ /* only MSBs of the array state[]. */
/* 2002/01/09 modified by Makoto Matsumoto */
- mt->state[j] &= 0xffffffffUL; /* for >32 bit machines */
+ mt->state[j] &= 0xffffffff; /* for >32 bit machines */
}
mt->left = 1;
- mt->next = mt->state + N - 1;
+ mt->next = mt->state + N;
}
/* initialize by an array with array-length */
@@ -100,41 +129,37 @@ init_genrand(struct MT *mt, unsigned long s)
/* key_length is its length */
/* slight change for C++, 2004/2/26 */
static void
-init_by_array(struct MT *mt, unsigned long init_key[], int key_length)
+init_by_array(struct MT *mt, unsigned int init_key[], int key_length)
{
int i, j, k;
- init_genrand(mt, 19650218UL);
+ init_genrand(mt, 19650218U);
i=1; j=0;
k = (N>key_length ? N : key_length);
for (; k; k--) {
- mt->state[i] = (mt->state[i] ^ ((mt->state[i-1] ^ (mt->state[i-1] >> 30)) * 1664525UL))
+ mt->state[i] = (mt->state[i] ^ ((mt->state[i-1] ^ (mt->state[i-1] >> 30)) * 1664525U))
+ init_key[j] + j; /* non linear */
- mt->state[i] &= 0xffffffffUL; /* for WORDSIZE > 32 machines */
+ mt->state[i] &= 0xffffffffU; /* for WORDSIZE > 32 machines */
i++; j++;
if (i>=N) { mt->state[0] = mt->state[N-1]; i=1; }
if (j>=key_length) j=0;
}
for (k=N-1; k; k--) {
- mt->state[i] = (mt->state[i] ^ ((mt->state[i-1] ^ (mt->state[i-1] >> 30)) * 1566083941UL))
+ mt->state[i] = (mt->state[i] ^ ((mt->state[i-1] ^ (mt->state[i-1] >> 30)) * 1566083941U))
- i; /* non linear */
- mt->state[i] &= 0xffffffffUL; /* for WORDSIZE > 32 machines */
+ mt->state[i] &= 0xffffffffU; /* for WORDSIZE > 32 machines */
i++;
if (i>=N) { mt->state[0] = mt->state[N-1]; i=1; }
}
- mt->state[0] = 0x80000000UL; /* MSB is 1; assuring non-zero initial array */
+ mt->state[0] = 0x80000000U; /* MSB is 1; assuring non-zero initial array */
}
static void
next_state(struct MT *mt)
{
- unsigned long *p = mt->state;
+ unsigned int *p = mt->state;
int j;
- /* if init_genrand() has not been called, */
- /* a default initial seed is used */
- if (!genrand_initialized(mt)) init_genrand(mt, 5489UL);
-
mt->left = N;
mt->next = mt->state;
@@ -148,18 +173,19 @@ next_state(struct MT *mt)
}
/* generates a random number on [0,0xffffffff]-interval */
-static unsigned long
+static unsigned int
genrand_int32(struct MT *mt)
{
- unsigned long y;
+ /* mt must be initialized */
+ unsigned int y;
if (--mt->left <= 0) next_state(mt);
y = *mt->next++;
/* Tempering */
y ^= (y >> 11);
- y ^= (y << 7) & 0x9d2c5680UL;
- y ^= (y << 15) & 0xefc60000UL;
+ y ^= (y << 7) & 0x9d2c5680;
+ y ^= (y << 15) & 0xefc60000;
y ^= (y >> 18);
return y;
@@ -169,9 +195,21 @@ genrand_int32(struct MT *mt)
static double
genrand_real(struct MT *mt)
{
- unsigned long a=genrand_int32(mt)>>5, b=genrand_int32(mt)>>6;
+ /* mt must be initialized */
+ unsigned int a = genrand_int32(mt)>>5, b = genrand_int32(mt)>>6;
return(a*67108864.0+b)*(1.0/9007199254740992.0);
}
+
+/* generates a random number on [0,1] with 53-bit resolution*/
+static double int_pair_to_real_inclusive(unsigned int a, unsigned int b);
+static double
+genrand_real2(struct MT *mt)
+{
+ /* mt must be initialized */
+ unsigned int a = genrand_int32(mt), b = genrand_int32(mt);
+ return int_pair_to_real_inclusive(a, b);
+}
+
/* These real versions are due to Isaku Wada, 2002/01/09 added */
#undef N
@@ -179,86 +217,225 @@ genrand_real(struct MT *mt)
/* These real versions are due to Isaku Wada, 2002/01/09 added */
-#include "ruby/ruby.h"
-
-#ifdef HAVE_UNISTD_H
-#include <unistd.h>
-#endif
-#include <time.h>
-#include <sys/types.h>
-#include <sys/stat.h>
-#ifdef HAVE_FCNTL_H
-#include <fcntl.h>
-#endif
+typedef struct {
+ VALUE seed;
+ struct MT mt;
+} rb_random_t;
#define DEFAULT_SEED_CNT 4
-struct RandSeed {
- VALUE value;
- unsigned long initial[DEFAULT_SEED_CNT];
-};
+static rb_random_t default_rand;
-struct Random {
- struct MT mt;
- struct RandSeed seed;
-};
+static VALUE rand_init(struct MT *mt, VALUE vseed);
+static VALUE random_seed(void);
-static struct Random default_mt;
+static rb_random_t *
+rand_start(rb_random_t *r)
+{
+ struct MT *mt = &r->mt;
+ if (!genrand_initialized(mt)) {
+ r->seed = rand_init(mt, random_seed());
+ }
+ return r;
+}
-unsigned long
+static struct MT *
+default_mt(void)
+{
+ return &rand_start(&default_rand)->mt;
+}
+
+unsigned int
rb_genrand_int32(void)
{
- return genrand_int32(&default_mt.mt);
+ struct MT *mt = default_mt();
+ return genrand_int32(mt);
}
double
rb_genrand_real(void)
{
- return genrand_real(&default_mt.mt);
+ struct MT *mt = default_mt();
+ return genrand_real(mt);
+}
+
+#define BDIGITS(x) (RBIGNUM_DIGITS(x))
+#define BITSPERDIG (SIZEOF_BDIGITS*CHAR_BIT)
+#define BIGRAD ((BDIGIT_DBL)1 << BITSPERDIG)
+#define DIGSPERINT (SIZEOF_INT/SIZEOF_BDIGITS)
+#define BIGUP(x) ((BDIGIT_DBL)(x) << BITSPERDIG)
+#define BIGDN(x) RSHIFT((x),BITSPERDIG)
+#define BIGLO(x) ((BDIGIT)((x) & (BIGRAD-1)))
+#define BDIGMAX ((BDIGIT)-1)
+
+#define roomof(n, m) (int)(((n)+(m)-1) / (m))
+#define numberof(array) (int)(sizeof(array) / sizeof((array)[0]))
+#define SIZEOF_INT32 (31/CHAR_BIT + 1)
+
+static double
+int_pair_to_real_inclusive(unsigned int a, unsigned int b)
+{
+ VALUE x = rb_big_new(roomof(64, BITSPERDIG), 1);
+ VALUE m = rb_big_new(roomof(53, BITSPERDIG), 1);
+ BDIGIT *xd = BDIGITS(x);
+ int i = 0;
+ double r;
+
+ xd[i++] = (BDIGIT)b;
+#if BITSPERDIG < 32
+ xd[i++] = (BDIGIT)(b >> BITSPERDIG);
+#endif
+ xd[i++] = (BDIGIT)a;
+#if BITSPERDIG < 32
+ xd[i++] = (BDIGIT)(a >> BITSPERDIG);
+#endif
+ xd = BDIGITS(m);
+#if BITSPERDIG < 53
+ MEMZERO(xd, BDIGIT, roomof(53, BITSPERDIG) - 1);
+#endif
+ xd[53 / BITSPERDIG] = 1 << 53 % BITSPERDIG;
+ xd[0] |= 1;
+ x = rb_big_mul(x, m);
+ if (FIXNUM_P(x)) {
+#if CHAR_BIT * SIZEOF_LONG > 64
+ r = (double)(FIX2ULONG(x) >> 64);
+#else
+ return 0.0;
+#endif
+ }
+ else {
+#if 64 % BITSPERDIG == 0
+ long len = RBIGNUM_LEN(x);
+ xd = BDIGITS(x);
+ MEMMOVE(xd, xd + 64 / BITSPERDIG, BDIGIT, len - 64 / BITSPERDIG);
+ MEMZERO(xd + len - 64 / BITSPERDIG, BDIGIT, 64 / BITSPERDIG);
+ r = rb_big2dbl(x);
+#else
+ x = rb_big_rshift(x, INT2FIX(64));
+ if (FIXNUM_P(x)) {
+ r = (double)FIX2ULONG(x);
+ }
+ else {
+ r = rb_big2dbl(x);
+ }
+#endif
+ }
+ return ldexp(r, -53);
+}
+
+VALUE rb_cRandom;
+static VALUE rb_Random_DEFAULT;
+#define id_minus '-'
+#define id_plus '+'
+static ID id_rand, id_bytes;
+
+/* :nodoc: */
+static void
+random_mark(void *ptr)
+{
+ rb_gc_mark(((rb_random_t *)ptr)->seed);
+}
+
+static void
+random_free(void *ptr)
+{
+ if (ptr != &default_rand)
+ xfree(ptr);
+}
+
+static size_t
+random_memsize(const void *ptr)
+{
+ return ptr ? sizeof(rb_random_t) : 0;
+}
+
+static const rb_data_type_t random_data_type = {
+ "random",
+ {
+ random_mark,
+ random_free,
+ random_memsize,
+ },
+};
+
+static rb_random_t *
+get_rnd(VALUE obj)
+{
+ rb_random_t *ptr;
+ TypedData_Get_Struct(obj, rb_random_t, &random_data_type, ptr);
+ return ptr;
+}
+
+static rb_random_t *
+try_get_rnd(VALUE obj)
+{
+ if (obj == rb_cRandom) {
+ return rand_start(&default_rand);
+ }
+ if (!rb_typeddata_is_kind_of(obj, &random_data_type)) return NULL;
+ return DATA_PTR(obj);
+}
+
+/* :nodoc: */
+static VALUE
+random_alloc(VALUE klass)
+{
+ rb_random_t *rnd;
+ VALUE obj = TypedData_Make_Struct(klass, rb_random_t, &random_data_type, rnd);
+ rnd->seed = INT2FIX(0);
+ return obj;
}
static VALUE
rand_init(struct MT *mt, VALUE vseed)
{
volatile VALUE seed;
- long len;
- unsigned long *buf;
+ long blen = 0;
+ long fixnum_seed;
+ int i, j, len;
+ unsigned int buf0[SIZEOF_LONG / SIZEOF_INT32 * 4], *buf = buf0;
seed = rb_to_int(vseed);
switch (TYPE(seed)) {
case T_FIXNUM:
- len = sizeof(VALUE);
- break;
- case T_BIGNUM:
- len = RBIGNUM_LEN(seed) * SIZEOF_BDIGITS;
- if (len == 0)
- len = 4;
- break;
- default:
- rb_raise(rb_eTypeError, "failed to convert %s into Integer",
- rb_obj_classname(vseed));
- }
- len = (len + 3) / 4; /* number of 32bit words */
- buf = ALLOC_N(unsigned long, len); /* allocate longs for init_by_array */
- memset(buf, 0, len * sizeof(long));
- if (FIXNUM_P(seed)) {
- buf[0] = FIX2ULONG(seed) & 0xffffffff;
-#if SIZEOF_LONG > 4
- buf[1] = FIX2ULONG(seed) >> 32;
+ len = 1;
+ fixnum_seed = FIX2LONG(seed);
+ if (fixnum_seed < 0)
+ fixnum_seed = -fixnum_seed;
+ buf[0] = (unsigned int)(fixnum_seed & 0xffffffff);
+#if SIZEOF_LONG > SIZEOF_INT32
+ if ((long)(int32_t)fixnum_seed != fixnum_seed) {
+ if ((buf[1] = (unsigned int)(fixnum_seed >> 32)) != 0) ++len;
+ }
#endif
- }
- else {
- int i, j;
- for (i = RBIGNUM_LEN(seed)-1; 0 <= i; i--) {
- j = i * SIZEOF_BDIGITS / 4;
-#if SIZEOF_BDIGITS < 4
- buf[j] <<= SIZEOF_BDIGITS * 8;
+ break;
+ case T_BIGNUM:
+ blen = RBIGNUM_LEN(seed);
+ if (blen == 0) {
+ len = 1;
+ }
+ else {
+ if (blen > MT_MAX_STATE * SIZEOF_INT32 / SIZEOF_BDIGITS)
+ blen = MT_MAX_STATE * SIZEOF_INT32 / SIZEOF_BDIGITS;
+ len = roomof((int)blen * SIZEOF_BDIGITS, SIZEOF_INT32);
+ }
+ /* allocate ints for init_by_array */
+ if (len > numberof(buf0)) buf = ALLOC_N(unsigned int, len);
+ memset(buf, 0, len * sizeof(*buf));
+ len = 0;
+ for (i = (int)(blen-1); 0 <= i; i--) {
+ j = i * SIZEOF_BDIGITS / SIZEOF_INT32;
+#if SIZEOF_BDIGITS < SIZEOF_INT32
+ buf[j] <<= BITSPERDIG;
#endif
- buf[j] |= RBIGNUM_DIGITS(seed)[i];
- }
- }
- while (1 < len && buf[len-1] == 0) {
- len--;
+ buf[j] |= RBIGNUM_DIGITS(seed)[i];
+ if (!len && buf[j]) len = j;
+ }
+ ++len;
+ break;
+ default:
+ rb_raise(rb_eTypeError, "failed to convert %s into Integer",
+ rb_obj_classname(vseed));
}
if (len <= 1) {
init_genrand(mt, buf[0]);
@@ -268,25 +445,65 @@ rand_init(struct MT *mt, VALUE vseed)
len--;
init_by_array(mt, buf, len);
}
- xfree(buf);
+ if (buf != buf0) xfree(buf);
return seed;
}
-#define DEFAULT_SEED_LEN (DEFAULT_SEED_CNT * sizeof(long))
+/*
+ * call-seq: Random.new([seed]) -> prng
+ *
+ * Creates new Mersenne Twister based pseudorandom number generator with
+ * seed. When the argument seed is omitted, the generator is initialized
+ * with Random.new_seed.
+ *
+ * The argument seed is used to ensure repeatable sequences of random numbers
+ * between different runs of the program.
+ *
+ * prng = Random.new(1234)
+ * [ prng.rand, prng.rand ] #=> [0.191519450378892, 0.622108771039832]
+ * [ prng.integer(10), prng.integer(1000) ] #=> [4, 664]
+ * prng = Random.new(1234)
+ * [ prng.rand, prng.rand ] #=> [0.191519450378892, 0.622108771039832]
+ */
+static VALUE
+random_init(int argc, VALUE *argv, VALUE obj)
+{
+ VALUE vseed;
+ rb_random_t *rnd = get_rnd(obj);
+
+ if (argc == 0) {
+ vseed = random_seed();
+ }
+ else {
+ rb_scan_args(argc, argv, "01", &vseed);
+ }
+ rnd->seed = rand_init(&rnd->mt, vseed);
+ return obj;
+}
+
+#define DEFAULT_SEED_LEN (DEFAULT_SEED_CNT * (int)sizeof(int))
+
+#if defined(S_ISCHR) && !defined(DOSISH)
+# define USE_DEV_URANDOM 1
+#else
+# define USE_DEV_URANDOM 0
+#endif
static void
-fill_random_seed(unsigned long seed[DEFAULT_SEED_CNT])
+fill_random_seed(unsigned int seed[DEFAULT_SEED_CNT])
{
static int n = 0;
struct timeval tv;
-#ifdef S_ISCHR
+#if USE_DEV_URANDOM
int fd;
struct stat statbuf;
+#elif defined(_WIN32)
+ HCRYPTPROV prov;
#endif
memset(seed, 0, DEFAULT_SEED_LEN);
-#ifdef S_ISCHR
+#if USE_DEV_URANDOM
if ((fd = open("/dev/urandom", O_RDONLY
#ifdef O_NONBLOCK
|O_NONBLOCK
@@ -294,58 +511,259 @@ fill_random_seed(unsigned long seed[DEFAULT_SEED_CNT])
#ifdef O_NOCTTY
|O_NOCTTY
#endif
-#ifdef O_NOFOLLOW
- |O_NOFOLLOW
-#endif
)) >= 0) {
+ rb_update_max_fd(fd);
if (fstat(fd, &statbuf) == 0 && S_ISCHR(statbuf.st_mode)) {
- (void)read(fd, seed, DEFAULT_SEED_LEN);
+ if (read(fd, seed, DEFAULT_SEED_LEN) < DEFAULT_SEED_LEN) {
+ /* abandon */;
+ }
}
close(fd);
}
+#elif defined(_WIN32)
+ if (CryptAcquireContext(&prov, NULL, NULL, PROV_RSA_FULL, CRYPT_VERIFYCONTEXT)) {
+ CryptGenRandom(prov, DEFAULT_SEED_LEN, (void *)seed);
+ CryptReleaseContext(prov, 0);
+ }
#endif
gettimeofday(&tv, 0);
seed[0] ^= tv.tv_usec;
- seed[1] ^= tv.tv_sec;
+ seed[1] ^= (unsigned int)tv.tv_sec;
+#if SIZEOF_TIME_T > SIZEOF_INT
+ seed[0] ^= (unsigned int)((time_t)tv.tv_sec >> SIZEOF_INT * CHAR_BIT);
+#endif
seed[2] ^= getpid() ^ (n++ << 16);
- seed[3] ^= (unsigned long)&seed;
+ seed[3] ^= (unsigned int)(VALUE)&seed;
+#if SIZEOF_VOIDP > SIZEOF_INT
+ seed[2] ^= (unsigned int)((VALUE)&seed >> SIZEOF_INT * CHAR_BIT);
+#endif
}
static VALUE
make_seed_value(const void *ptr)
{
+ const long len = DEFAULT_SEED_LEN/SIZEOF_BDIGITS;
BDIGIT *digits;
NEWOBJ(big, struct RBignum);
OBJSETUP(big, rb_cBignum, T_BIGNUM);
RBIGNUM_SET_SIGN(big, 1);
- rb_big_resize((VALUE)big, DEFAULT_SEED_LEN / SIZEOF_BDIGITS + 1);
+ rb_big_resize((VALUE)big, len + 1);
digits = RBIGNUM_DIGITS(big);
- MEMCPY((char *)RBIGNUM_DIGITS(big), ptr, char, DEFAULT_SEED_LEN);
+ MEMCPY(digits, ptr, char, DEFAULT_SEED_LEN);
/* set leading-zero-guard if need. */
- digits[RBIGNUM_LEN(big)-1] = digits[RBIGNUM_LEN(big)-2] <= 1 ? 1 : 0;
+ digits[len] =
+#if SIZEOF_INT32 / SIZEOF_BDIGITS > 1
+ digits[len-2] <= 1 && digits[len-1] == 0
+#else
+ digits[len-1] <= 1
+#endif
+ ? 1 : 0;
return rb_big_norm((VALUE)big);
}
+/*
+ * call-seq: Random.new_seed -> integer
+ *
+ * Returns arbitrary value for seed.
+ */
static VALUE
random_seed(void)
{
- unsigned long buf[DEFAULT_SEED_CNT];
+ unsigned int buf[DEFAULT_SEED_CNT];
fill_random_seed(buf);
return make_seed_value(buf);
}
/*
+ * call-seq: prng.seed -> integer
+ *
+ * Returns the seed of the generator.
+ */
+static VALUE
+random_get_seed(VALUE obj)
+{
+ return get_rnd(obj)->seed;
+}
+
+/* :nodoc: */
+static VALUE
+random_copy(VALUE obj, VALUE orig)
+{
+ rb_random_t *rnd1 = get_rnd(obj);
+ rb_random_t *rnd2 = get_rnd(orig);
+ struct MT *mt = &rnd1->mt;
+
+ *rnd1 = *rnd2;
+ mt->next = mt->state + numberof(mt->state) - mt->left + 1;
+ return obj;
+}
+
+static VALUE
+mt_state(const struct MT *mt)
+{
+ VALUE bigo = rb_big_new(sizeof(mt->state) / sizeof(BDIGIT), 1);
+ BDIGIT *d = RBIGNUM_DIGITS(bigo);
+ int i;
+
+ for (i = 0; i < numberof(mt->state); ++i) {
+ unsigned int x = mt->state[i];
+#if SIZEOF_BDIGITS < SIZEOF_INT32
+ int j;
+ for (j = 0; j < SIZEOF_INT32 / SIZEOF_BDIGITS; ++j) {
+ *d++ = BIGLO(x);
+ x = BIGDN(x);
+ }
+#else
+ *d++ = (BDIGIT)x;
+#endif
+ }
+ return rb_big_norm(bigo);
+}
+
+/* :nodoc: */
+static VALUE
+random_state(VALUE obj)
+{
+ rb_random_t *rnd = get_rnd(obj);
+ return mt_state(&rnd->mt);
+}
+
+/* :nodoc: */
+static VALUE
+random_s_state(VALUE klass)
+{
+ return mt_state(&default_rand.mt);
+}
+
+/* :nodoc: */
+static VALUE
+random_left(VALUE obj)
+{
+ rb_random_t *rnd = get_rnd(obj);
+ return INT2FIX(rnd->mt.left);
+}
+
+/* :nodoc: */
+static VALUE
+random_s_left(VALUE klass)
+{
+ return INT2FIX(default_rand.mt.left);
+}
+
+/* :nodoc: */
+static VALUE
+random_dump(VALUE obj)
+{
+ rb_random_t *rnd = get_rnd(obj);
+ VALUE dump = rb_ary_new2(3);
+
+ rb_ary_push(dump, mt_state(&rnd->mt));
+ rb_ary_push(dump, INT2FIX(rnd->mt.left));
+ rb_ary_push(dump, rnd->seed);
+
+ return dump;
+}
+
+/* :nodoc: */
+static VALUE
+random_load(VALUE obj, VALUE dump)
+{
+ rb_random_t *rnd = get_rnd(obj);
+ struct MT *mt = &rnd->mt;
+ VALUE state, left = INT2FIX(1), seed = INT2FIX(0);
+ VALUE *ary;
+ unsigned long x;
+
+ Check_Type(dump, T_ARRAY);
+ ary = RARRAY_PTR(dump);
+ switch (RARRAY_LEN(dump)) {
+ case 3:
+ seed = ary[2];
+ case 2:
+ left = ary[1];
+ case 1:
+ state = ary[0];
+ break;
+ default:
+ rb_raise(rb_eArgError, "wrong dump data");
+ }
+ memset(mt->state, 0, sizeof(mt->state));
+ if (FIXNUM_P(state)) {
+ x = FIX2ULONG(state);
+ mt->state[0] = (unsigned int)x;
+#if SIZEOF_LONG / SIZEOF_INT >= 2
+ mt->state[1] = (unsigned int)(x >> BITSPERDIG);
+#endif
+#if SIZEOF_LONG / SIZEOF_INT >= 3
+ mt->state[2] = (unsigned int)(x >> 2 * BITSPERDIG);
+#endif
+#if SIZEOF_LONG / SIZEOF_INT >= 4
+ mt->state[3] = (unsigned int)(x >> 3 * BITSPERDIG);
+#endif
+ }
+ else {
+ BDIGIT *d;
+ long len;
+ Check_Type(state, T_BIGNUM);
+ len = RBIGNUM_LEN(state);
+ if (len > roomof(sizeof(mt->state), SIZEOF_BDIGITS)) {
+ len = roomof(sizeof(mt->state), SIZEOF_BDIGITS);
+ }
+#if SIZEOF_BDIGITS < SIZEOF_INT
+ else if (len % DIGSPERINT) {
+ d = RBIGNUM_DIGITS(state) + len;
+# if DIGSPERINT == 2
+ --len;
+ x = *--d;
+# else
+ x = 0;
+ do {
+ x = (x << BITSPERDIG) | *--d;
+ } while (--len % DIGSPERINT);
+# endif
+ mt->state[len / DIGSPERINT] = (unsigned int)x;
+ }
+#endif
+ if (len > 0) {
+ d = BDIGITS(state) + len;
+ do {
+ --len;
+ x = *--d;
+# if DIGSPERINT == 2
+ --len;
+ x = (x << BITSPERDIG) | *--d;
+# elif SIZEOF_BDIGITS < SIZEOF_INT
+ do {
+ x = (x << BITSPERDIG) | *--d;
+ } while (--len % DIGSPERINT);
+# endif
+ mt->state[len / DIGSPERINT] = (unsigned int)x;
+ } while (len > 0);
+ }
+ }
+ x = NUM2ULONG(left);
+ if (x > numberof(mt->state)) {
+ rb_raise(rb_eArgError, "wrong value");
+ }
+ mt->left = (unsigned int)x;
+ mt->next = mt->state + numberof(mt->state) - x + 1;
+ rnd->seed = rb_to_int(seed);
+
+ return obj;
+}
+
+/*
* call-seq:
- * srand(number=0) => old_seed
+ * srand(number=0) -> old_seed
*
* Seeds the pseudorandom number generator to the value of
- * <i>number</i>. If <i>number</i> is omitted
- * or zero, seeds the generator using a combination of the time, the
+ * <i>number</i>. If <i>number</i> is omitted,
+ * seeds the generator using a combination of the time, the
* process id, and a sequence number. (This is also the behavior if
* <code>Kernel::rand</code> is called without previously calling
* <code>srand</code>, but without the sequence.) By setting the seed
@@ -357,6 +775,7 @@ static VALUE
rb_f_srand(int argc, VALUE *argv, VALUE obj)
{
VALUE seed, old;
+ rb_random_t *r = &default_rand;
rb_secure(4);
if (argc == 0) {
@@ -365,8 +784,8 @@ rb_f_srand(int argc, VALUE *argv, VALUE obj)
else {
rb_scan_args(argc, argv, "01", &seed);
}
- old = default_mt.seed.value;
- default_mt.seed.value = rand_init(&default_mt.mt, seed);
+ old = r->seed;
+ r->seed = rand_init(&r->mt, seed);
return old;
}
@@ -388,15 +807,17 @@ make_mask(unsigned long x)
static unsigned long
limited_rand(struct MT *mt, unsigned long limit)
{
- unsigned long mask = make_mask(limit);
+ /* mt must be initialized */
int i;
- unsigned long val;
+ unsigned long val, mask;
+ if (!limit) return 0;
+ mask = make_mask(limit);
retry:
val = 0;
- for (i = SIZEOF_LONG/4-1; 0 <= i; i--) {
- if (mask >> (i * 32)) {
- val |= genrand_int32(mt) << (i * 32);
+ for (i = SIZEOF_LONG/SIZEOF_INT32-1; 0 <= i; i--) {
+ if ((mask >> (i * 32)) & 0xffffffff) {
+ val |= (unsigned long)genrand_int32(mt) << (i * 32);
val &= mask;
if (limit < val)
goto retry;
@@ -408,9 +829,11 @@ limited_rand(struct MT *mt, unsigned long limit)
static VALUE
limited_big_rand(struct MT *mt, struct RBignum *limit)
{
+ /* mt must be initialized */
unsigned long mask, lim, rnd;
struct RBignum *val;
- int i, len, boundary;
+ long i, len;
+ int boundary;
len = (RBIGNUM_LEN(limit) * SIZEOF_BDIGITS + 3) / 4;
val = (struct RBignum *)rb_big_clone((VALUE)limit);
@@ -428,8 +851,8 @@ limited_big_rand(struct MT *mt, struct RBignum *limit)
0))
#else
/* SIZEOF_BDIGITS == 4 */
-# define BIG_GET32(big,i) (RBIGNUM_DIGITS(big)[i])
-# define BIG_SET32(big,i,d) (RBIGNUM_DIGITS(big)[i] = (d))
+# define BIG_GET32(big,i) (RBIGNUM_DIGITS(big)[(i)])
+# define BIG_SET32(big,i,d) (RBIGNUM_DIGITS(big)[(i)] = (d))
#endif
retry:
mask = 0;
@@ -449,33 +872,349 @@ limited_big_rand(struct MT *mt, struct RBignum *limit)
else {
rnd = 0;
}
- BIG_SET32(val, i, rnd);
+ BIG_SET32(val, i, (BDIGIT)rnd);
}
return rb_big_norm((VALUE)val);
}
+/*
+ * Returns random unsigned long value in [0, _limit_].
+ *
+ * Note that _limit_ is included, and the range of the argument and the
+ * return value depends on environments.
+ */
unsigned long
-rb_rand_internal(unsigned long i)
+rb_genrand_ulong_limited(unsigned long limit)
{
- struct MT *mt = &default_mt.mt;
- if (!genrand_initialized(mt)) {
- rand_init(mt, random_seed());
+ return limited_rand(default_mt(), limit);
+}
+
+unsigned int
+rb_random_int32(VALUE obj)
+{
+ rb_random_t *rnd = try_get_rnd(obj);
+ if (!rnd) {
+#if SIZEOF_LONG * CHAR_BIT > 32
+ VALUE lim = ULONG2NUM(0x100000000);
+#elif defined HAVE_LONG_LONG
+ VALUE lim = ULL2NUM((LONG_LONG)0xffffffff+1);
+#else
+ VALUE lim = rb_big_plus(ULONG2NUM(0xffffffff), INT2FIX(1));
+#endif
+ return (unsigned int)NUM2ULONG(rb_funcall2(obj, id_rand, 1, &lim));
+ }
+ return genrand_int32(&rnd->mt);
+}
+
+double
+rb_random_real(VALUE obj)
+{
+ rb_random_t *rnd = try_get_rnd(obj);
+ if (!rnd) {
+ VALUE v = rb_funcall2(obj, id_rand, 0, 0);
+ double d = NUM2DBL(v);
+ if (d < 0.0 || d >= 1.0) {
+ rb_raise(rb_eRangeError, "random number too big %g", d);
+ }
+ return d;
+ }
+ return genrand_real(&rnd->mt);
+}
+
+/*
+ * call-seq: prng.bytes(size) -> a_string
+ *
+ * Returns a random binary string. The argument size specified the length of
+ * the result string.
+ */
+static VALUE
+random_bytes(VALUE obj, VALUE len)
+{
+ return rb_random_bytes(obj, NUM2LONG(rb_to_int(len)));
+}
+
+VALUE
+rb_random_bytes(VALUE obj, long n)
+{
+ rb_random_t *rnd = try_get_rnd(obj);
+ VALUE bytes;
+ char *ptr;
+ unsigned int r, i;
+
+ if (!rnd) {
+ VALUE len = LONG2NUM(n);
+ return rb_funcall2(obj, id_bytes, 1, &len);
+ }
+ bytes = rb_str_new(0, n);
+ ptr = RSTRING_PTR(bytes);
+ for (; n >= SIZEOF_INT32; n -= SIZEOF_INT32) {
+ r = genrand_int32(&rnd->mt);
+ i = SIZEOF_INT32;
+ do {
+ *ptr++ = (char)r;
+ r >>= CHAR_BIT;
+ } while (--i);
+ }
+ if (n > 0) {
+ r = genrand_int32(&rnd->mt);
+ do {
+ *ptr++ = (char)r;
+ r >>= CHAR_BIT;
+ } while (--n);
+ }
+ return bytes;
+}
+
+static VALUE
+range_values(VALUE vmax, VALUE *begp, VALUE *endp, int *exclp)
+{
+ VALUE end, r;
+
+ if (!rb_range_values(vmax, begp, &end, exclp)) return Qfalse;
+ if (endp) *endp = end;
+ if (!rb_respond_to(end, id_minus)) return Qfalse;
+ r = rb_funcall2(end, id_minus, 1, begp);
+ if (NIL_P(r)) return Qfalse;
+ return r;
+}
+
+static VALUE
+rand_int(struct MT *mt, VALUE vmax, int restrictive)
+{
+ /* mt must be initialized */
+ long max;
+ unsigned long r;
+
+ if (FIXNUM_P(vmax)) {
+ max = FIX2LONG(vmax);
+ if (!max) return Qnil;
+ if (max < 0) {
+ if (restrictive) return Qnil;
+ max = -max;
+ }
+ r = limited_rand(mt, (unsigned long)max - 1);
+ return ULONG2NUM(r);
+ }
+ else {
+ VALUE ret;
+ if (rb_bigzero_p(vmax)) return Qnil;
+ if (!RBIGNUM_SIGN(vmax)) {
+ if (restrictive) return Qnil;
+ vmax = rb_big_clone(vmax);
+ RBIGNUM_SET_SIGN(vmax, 1);
+ }
+ vmax = rb_big_minus(vmax, INT2FIX(1));
+ if (FIXNUM_P(vmax)) {
+ max = FIX2LONG(vmax);
+ if (max == -1) return Qnil;
+ r = limited_rand(mt, max);
+ return LONG2NUM(r);
+ }
+ ret = limited_big_rand(mt, RBIGNUM(vmax));
+ RB_GC_GUARD(vmax);
+ return ret;
+ }
+}
+
+static inline double
+float_value(VALUE v)
+{
+ double x = RFLOAT_VALUE(v);
+ if (isinf(x) || isnan(x)) {
+ VALUE error = INT2FIX(EDOM);
+ rb_exc_raise(rb_class_new_instance(1, &error, rb_eSystemCallError));
+ }
+ return x;
+}
+
+static inline VALUE
+rand_range(struct MT* mt, VALUE range)
+{
+ VALUE beg = Qundef, end = Qundef, vmax, v;
+ int excl = 0;
+
+ if ((v = vmax = range_values(range, &beg, &end, &excl)) == Qfalse)
+ return Qfalse;
+ if (TYPE(vmax) != T_FLOAT && (v = rb_check_to_integer(vmax, "to_int"), !NIL_P(v))) {
+ long max;
+ vmax = v;
+ v = Qnil;
+ if (FIXNUM_P(vmax)) {
+ fixnum:
+ if ((max = FIX2LONG(vmax) - excl) >= 0) {
+ unsigned long r = limited_rand(mt, (unsigned long)max);
+ v = ULONG2NUM(r);
+ }
+ }
+ else if (BUILTIN_TYPE(vmax) == T_BIGNUM && RBIGNUM_SIGN(vmax) && !rb_bigzero_p(vmax)) {
+ vmax = excl ? rb_big_minus(vmax, INT2FIX(1)) : rb_big_norm(vmax);
+ if (FIXNUM_P(vmax)) {
+ excl = 0;
+ goto fixnum;
+ }
+ v = limited_big_rand(mt, RBIGNUM(vmax));
+ }
}
- return limited_rand(mt, i);
+ else if (v = rb_check_to_float(vmax), !NIL_P(v)) {
+ int scale = 1;
+ double max = RFLOAT_VALUE(v), mid = 0.5, r;
+ if (isinf(max)) {
+ double min = float_value(rb_to_float(beg)) / 2.0;
+ max = float_value(rb_to_float(end)) / 2.0;
+ scale = 2;
+ mid = max + min;
+ max -= min;
+ }
+ else {
+ float_value(v);
+ }
+ v = Qnil;
+ if (max > 0.0) {
+ if (excl) {
+ r = genrand_real(mt);
+ }
+ else {
+ r = genrand_real2(mt);
+ }
+ if (scale > 1) {
+ return rb_float_new(+(+(+(r - 0.5) * max) * scale) + mid);
+ }
+ v = rb_float_new(r * max);
+ }
+ else if (max == 0.0 && !excl) {
+ v = rb_float_new(0.0);
+ }
+ }
+
+ if (FIXNUM_P(beg) && FIXNUM_P(v)) {
+ long x = FIX2LONG(beg) + FIX2LONG(v);
+ return LONG2NUM(x);
+ }
+ switch (TYPE(v)) {
+ case T_NIL:
+ break;
+ case T_BIGNUM:
+ return rb_big_plus(v, beg);
+ case T_FLOAT: {
+ VALUE f = rb_check_to_float(beg);
+ if (!NIL_P(f)) {
+ RFLOAT_VALUE(v) += RFLOAT_VALUE(f);
+ return v;
+ }
+ }
+ default:
+ return rb_funcall2(beg, id_plus, 1, &v);
+ }
+
+ return v;
+}
+
+/*
+ * call-seq:
+ * prng.rand -> float
+ * prng.rand(limit) -> number
+ *
+ * When the argument is an +Integer+ or a +Bignum+, it returns a
+ * random integer greater than or equal to zero and less than the
+ * argument. Unlike Random.rand, when the argument is a negative
+ * integer or zero, it raises an ArgumentError.
+ *
+ * When the argument is a +Float+, it returns a random floating point
+ * number between 0.0 and _max_, including 0.0 and excluding _max_.
+ *
+ * When the argument _limit_ is a +Range+, it returns a random
+ * number where range.member?(number) == true.
+ * prng.rand(5..9) #=> one of [5, 6, 7, 8, 9]
+ * prng.rand(5...9) #=> one of [5, 6, 7, 8]
+ * prng.rand(5.0..9.0) #=> between 5.0 and 9.0, including 9.0
+ * prng.rand(5.0...9.0) #=> between 5.0 and 9.0, excluding 9.0
+ *
+ * +begin+/+end+ of the range have to have subtract and add methods.
+ *
+ * Otherwise, it raises an ArgumentError.
+ */
+static VALUE
+random_rand(int argc, VALUE *argv, VALUE obj)
+{
+ rb_random_t *rnd = get_rnd(obj);
+ VALUE vmax, v;
+
+ if (argc == 0) {
+ return rb_float_new(genrand_real(&rnd->mt));
+ }
+ else if (argc != 1) {
+ rb_raise(rb_eArgError, "wrong number of arguments (%d for 0..1)", argc);
+ }
+ vmax = argv[0];
+ if (NIL_P(vmax)) {
+ v = Qnil;
+ }
+ else if (TYPE(vmax) != T_FLOAT && (v = rb_check_to_integer(vmax, "to_int"), !NIL_P(v))) {
+ v = rand_int(&rnd->mt, v, 1);
+ }
+ else if (v = rb_check_to_float(vmax), !NIL_P(v)) {
+ double max = float_value(v);
+ if (max > 0.0)
+ v = rb_float_new(max * genrand_real(&rnd->mt));
+ else
+ v = Qnil;
+ }
+ else if ((v = rand_range(&rnd->mt, vmax)) != Qfalse) {
+ /* nothing to do */
+ }
+ else {
+ v = Qnil;
+ (void)NUM2LONG(vmax);
+ }
+ if (NIL_P(v)) {
+ VALUE mesg = rb_str_new_cstr("invalid argument - ");
+ rb_str_append(mesg, rb_obj_as_string(argv[0]));
+ rb_exc_raise(rb_exc_new3(rb_eArgError, mesg));
+ }
+
+ return v;
+}
+
+/*
+ * call-seq:
+ * prng1 == prng2 -> true or false
+ *
+ * Returns true if the generators' states equal.
+ */
+static VALUE
+random_equal(VALUE self, VALUE other)
+{
+ rb_random_t *r1, *r2;
+ if (rb_obj_class(self) != rb_obj_class(other)) return Qfalse;
+ r1 = get_rnd(self);
+ r2 = get_rnd(other);
+ if (!RTEST(rb_funcall2(r1->seed, rb_intern("=="), 1, &r2->seed))) return Qfalse;
+ if (memcmp(r1->mt.state, r2->mt.state, sizeof(r1->mt.state))) return Qfalse;
+ if ((r1->mt.next - r1->mt.state) != (r2->mt.next - r2->mt.state)) return Qfalse;
+ if (r1->mt.left != r2->mt.left) return Qfalse;
+ return Qtrue;
}
/*
* call-seq:
- * rand(max=0) => number
+ * rand(max=0) -> number
+ *
+ *
+ * If <i>max</i> is +Range+, returns a pseudorandom number where
+ * range.member(number) == true.
+ *
+ * Or else converts _max_ to an integer using max1 =
+ * max<code>.to_i.abs</code>.
*
- * Converts <i>max</i> to an integer using max1 =
- * max<code>.to_i.abs</code>. If the result is zero, returns a
- * pseudorandom floating point number greater than or equal to 0.0 and
- * less than 1.0. Otherwise, returns a pseudorandom integer greater
- * than or equal to zero and less than max1. <code>Kernel::srand</code>
- * may be used to ensure repeatable sequences of random numbers between
- * different runs of the program. Ruby currently uses a modified
- * Mersenne Twister with a period of 2**19937-1.
+ * Then if _max_ is +nil+ the result is zero, returns a pseudorandom floating
+ * point number greater than or equal to 0.0 and less than 1.0.
+ *
+ * Otherwise, returns a pseudorandom integer greater than or equal to zero and
+ * less than max1.
+ *
+ * <code>Kernel::srand</code> may be used to ensure repeatable sequences of
+ * random numbers between different runs of the program. Ruby currently uses
+ * a modified Mersenne Twister with a period of 2**19937-1.
*
* srand 1234 #=> 0
* [ rand, rand ] #=> [0.191519450163469, 0.49766366626136]
@@ -487,61 +1226,99 @@ rb_rand_internal(unsigned long i)
static VALUE
rb_f_rand(int argc, VALUE *argv, VALUE obj)
{
- VALUE vmax;
- long val, max;
- struct MT *mt = &default_mt.mt;
+ VALUE v, vmax, r;
+ struct MT *mt = default_mt();
- if (!genrand_initialized(mt)) {
- rand_init(mt, random_seed());
- }
if (argc == 0) goto zero_arg;
rb_scan_args(argc, argv, "01", &vmax);
if (NIL_P(vmax)) goto zero_arg;
- vmax = rb_to_int(vmax);
- if (TYPE(vmax) == T_BIGNUM) {
- struct RBignum *limit = (struct RBignum *)vmax;
- if (!RBIGNUM_SIGN(limit)) {
- limit = (struct RBignum *)rb_big_clone(vmax);
- RBIGNUM_SET_SIGN(limit, 1);
- }
- limit = (struct RBignum *)rb_big_minus((VALUE)limit, INT2FIX(1));
- if (FIXNUM_P((VALUE)limit)) {
- if (FIX2LONG((VALUE)limit) == -1)
- return DBL2NUM(genrand_real(mt));
- return LONG2NUM(limited_rand(mt, FIX2LONG((VALUE)limit)));
- }
- return limited_big_rand(mt, limit);
+ if ((v = rand_range(mt, vmax)) != Qfalse) {
+ return v;
}
- max = NUM2LONG(vmax);
-
- if (max == 0) {
+ vmax = rb_to_int(vmax);
+ if (vmax == INT2FIX(0) || NIL_P(r = rand_int(mt, vmax, 0))) {
zero_arg:
return DBL2NUM(genrand_real(mt));
}
- if (max < 0) max = -max;
- val = limited_rand(mt, max-1);
- return LONG2NUM(val);
+ return r;
+}
+
+/*
+ * call-seq:
+ * Random.rand -> float
+ * Random.rand(limit) -> number
+ *
+ * Alias of _Random::DEFAULT.rand_.
+ *
+ */
+
+static VALUE
+random_s_rand(int argc, VALUE *argv, VALUE obj)
+{
+ return random_rand(argc, argv, rb_Random_DEFAULT);
+}
+
+static st_index_t hashseed;
+
+static VALUE
+init_randomseed(struct MT *mt, unsigned int initial[DEFAULT_SEED_CNT])
+{
+ VALUE seed;
+ fill_random_seed(initial);
+ init_by_array(mt, initial, DEFAULT_SEED_CNT);
+ seed = make_seed_value(initial);
+ memset(initial, 0, DEFAULT_SEED_LEN);
+ return seed;
}
void
Init_RandomSeed(void)
{
- fill_random_seed(default_mt.seed.initial);
- init_by_array(&default_mt.mt, default_mt.seed.initial, DEFAULT_SEED_CNT);
+ rb_random_t *r = &default_rand;
+ unsigned int initial[DEFAULT_SEED_CNT];
+ struct MT *mt = &r->mt;
+ VALUE seed = init_randomseed(mt, initial);
+
+ hashseed = genrand_int32(mt);
+#if SIZEOF_ST_INDEX_T*CHAR_BIT > 4*8
+ hashseed <<= 32;
+ hashseed |= genrand_int32(mt);
+#endif
+#if SIZEOF_ST_INDEX_T*CHAR_BIT > 8*8
+ hashseed <<= 32;
+ hashseed |= genrand_int32(mt);
+#endif
+#if SIZEOF_ST_INDEX_T*CHAR_BIT > 12*8
+ hashseed <<= 32;
+ hashseed |= genrand_int32(mt);
+#endif
+
+ rb_global_variable(&r->seed);
+ r->seed = seed;
+}
+
+st_index_t
+rb_hash_start(st_index_t h)
+{
+ return st_hash_start(hashseed + h);
}
static void
Init_RandomSeed2(void)
{
- default_mt.seed.value = make_seed_value(default_mt.seed.initial);
- memset(default_mt.seed.initial, 0, DEFAULT_SEED_LEN);
+ VALUE seed = default_rand.seed;
+
+ if (RB_TYPE_P(seed, T_BIGNUM)) {
+ RBASIC(seed)->klass = rb_cBignum;
+ }
}
void
rb_reset_random_seed(void)
{
- uninit_genrand(&default_mt.mt);
- default_mt.seed.value = INT2FIX(0);
+ rb_random_t *r = &default_rand;
+ uninit_genrand(&r->mt);
+ r->seed = INT2FIX(0);
}
void
@@ -550,5 +1327,30 @@ Init_Random(void)
Init_RandomSeed2();
rb_define_global_function("srand", rb_f_srand, -1);
rb_define_global_function("rand", rb_f_rand, -1);
- rb_global_variable(&default_mt.seed.value);
+
+ rb_cRandom = rb_define_class("Random", rb_cObject);
+ rb_define_alloc_func(rb_cRandom, random_alloc);
+ rb_define_method(rb_cRandom, "initialize", random_init, -1);
+ rb_define_method(rb_cRandom, "rand", random_rand, -1);
+ rb_define_method(rb_cRandom, "bytes", random_bytes, 1);
+ rb_define_method(rb_cRandom, "seed", random_get_seed, 0);
+ rb_define_method(rb_cRandom, "initialize_copy", random_copy, 1);
+ rb_define_method(rb_cRandom, "marshal_dump", random_dump, 0);
+ rb_define_method(rb_cRandom, "marshal_load", random_load, 1);
+ rb_define_private_method(rb_cRandom, "state", random_state, 0);
+ rb_define_private_method(rb_cRandom, "left", random_left, 0);
+ rb_define_method(rb_cRandom, "==", random_equal, 1);
+
+ rb_Random_DEFAULT = TypedData_Wrap_Struct(rb_cRandom, &random_data_type, &default_rand);
+ rb_global_variable(&rb_Random_DEFAULT);
+ rb_define_const(rb_cRandom, "DEFAULT", rb_Random_DEFAULT);
+
+ rb_define_singleton_method(rb_cRandom, "srand", rb_f_srand, -1);
+ rb_define_singleton_method(rb_cRandom, "rand", random_s_rand, -1);
+ rb_define_singleton_method(rb_cRandom, "new_seed", random_seed, 0);
+ rb_define_private_method(CLASS_OF(rb_cRandom), "state", random_s_state, 0);
+ rb_define_private_method(CLASS_OF(rb_cRandom), "left", random_s_left, 0);
+
+ id_rand = rb_intern("rand");
+ id_bytes = rb_intern("bytes");
}
diff --git a/range.c b/range.c
index 3ffbb750fc..b7ae19118e 100644
--- a/range.c
+++ b/range.c
@@ -11,12 +11,11 @@
#include "ruby/ruby.h"
#include "ruby/encoding.h"
+#include "internal.h"
VALUE rb_cRange;
static ID id_cmp, id_succ, id_beg, id_end, id_excl;
-extern VALUE rb_struct_init_copy(VALUE copy, VALUE s);
-
#define RANGE_BEG(r) (RSTRUCT(r)->as.ary[0])
#define RANGE_END(r) (RSTRUCT(r)->as.ary[1])
#define RANGE_EXCL(r) (RSTRUCT(r)->as.ary[2])
@@ -69,7 +68,7 @@ rb_range_new(VALUE beg, VALUE end, int exclude_end)
/*
* call-seq:
- * Range.new(start, end, exclusive=false) => range
+ * Range.new(start, end, exclusive=false) -> range
*
* Constructs a range using the given <i>start</i> and <i>end</i>. If the third
* parameter is omitted or is <code>false</code>, the <i>range</i> will include
@@ -94,7 +93,7 @@ range_initialize(int argc, VALUE *argv, VALUE range)
/*
* call-seq:
- * rng.exclude_end? => true or false
+ * rng.exclude_end? -> true or false
*
* Returns <code>true</code> if <i>rng</i> excludes its end value.
*/
@@ -105,14 +104,28 @@ range_exclude_end_p(VALUE range)
return EXCL(range) ? Qtrue : Qfalse;
}
+static VALUE
+recursive_equal(VALUE range, VALUE obj, int recur)
+{
+ if (recur) return Qtrue; /* Subtle! */
+ if (!rb_equal(RANGE_BEG(range), RANGE_BEG(obj)))
+ return Qfalse;
+ if (!rb_equal(RANGE_END(range), RANGE_END(obj)))
+ return Qfalse;
+
+ if (EXCL(range) != EXCL(obj))
+ return Qfalse;
+ return Qtrue;
+}
+
/*
* call-seq:
- * rng == obj => true or false
+ * rng == obj -> true or false
*
* Returns <code>true</code> only if <i>obj</i> is a Range, has equivalent
* beginning and end items (by comparing them with <code>==</code>), and has
- * the same #exclude_end? setting as <i>rng</t>.
+ * the same <code>exclude_end?</code> setting as <i>rng</i>.
*
* (0..2) == (0..2) #=> true
* (0..2) == Range.new(0,2) #=> true
@@ -125,18 +138,10 @@ range_eq(VALUE range, VALUE obj)
{
if (range == obj)
return Qtrue;
- if (!rb_obj_is_instance_of(obj, rb_obj_class(range)))
+ if (!rb_obj_is_kind_of(obj, rb_cRange))
return Qfalse;
- if (!rb_equal(RANGE_BEG(range), RANGE_BEG(obj)))
- return Qfalse;
- if (!rb_equal(RANGE_END(range), RANGE_END(obj)))
- return Qfalse;
-
- if (EXCL(range) != EXCL(obj))
- return Qfalse;
-
- return Qtrue;
+ return rb_exec_recursive_paired(recursive_equal, range, obj, obj);
}
static int
@@ -145,10 +150,10 @@ r_lt(VALUE a, VALUE b)
VALUE r = rb_funcall(a, id_cmp, 1, b);
if (NIL_P(r))
- return Qfalse;
+ return (int)Qfalse;
if (rb_cmpint(r, a, b) < 0)
- return Qtrue;
- return Qfalse;
+ return (int)Qtrue;
+ return (int)Qfalse;
}
static int
@@ -158,19 +163,33 @@ r_le(VALUE a, VALUE b)
VALUE r = rb_funcall(a, id_cmp, 1, b);
if (NIL_P(r))
- return Qfalse;
+ return (int)Qfalse;
c = rb_cmpint(r, a, b);
if (c == 0)
return (int)INT2FIX(0);
if (c < 0)
- return Qtrue;
- return Qfalse;
+ return (int)Qtrue;
+ return (int)Qfalse;
}
+static VALUE
+recursive_eql(VALUE range, VALUE obj, int recur)
+{
+ if (recur) return Qtrue; /* Subtle! */
+ if (!rb_eql(RANGE_BEG(range), RANGE_BEG(obj)))
+ return Qfalse;
+ if (!rb_eql(RANGE_END(range), RANGE_END(obj)))
+ return Qfalse;
+
+ if (EXCL(range) != EXCL(obj))
+ return Qfalse;
+ return Qtrue;
+}
+
/*
* call-seq:
- * rng.eql?(obj) => true or false
+ * rng.eql?(obj) -> true or false
*
* Returns <code>true</code> only if <i>obj</i> is a Range, has equivalent
* beginning and end items (by comparing them with #eql?), and has the same
@@ -187,23 +206,33 @@ range_eql(VALUE range, VALUE obj)
{
if (range == obj)
return Qtrue;
- if (!rb_obj_is_instance_of(obj, rb_obj_class(range)))
+ if (!rb_obj_is_kind_of(obj, rb_cRange))
return Qfalse;
+ return rb_exec_recursive_paired(recursive_eql, range, obj, obj);
+}
- if (!rb_eql(RANGE_BEG(range), RANGE_BEG(obj)))
- return Qfalse;
- if (!rb_eql(RANGE_END(range), RANGE_END(obj)))
- return Qfalse;
+static VALUE
+recursive_hash(VALUE range, VALUE dummy, int recur)
+{
+ st_index_t hash = EXCL(range);
+ VALUE v;
- if (EXCL(range) != EXCL(obj))
- return Qfalse;
+ hash = rb_hash_start(hash);
+ if (!recur) {
+ v = rb_hash(RANGE_BEG(range));
+ hash = rb_hash_uint(hash, NUM2LONG(v));
+ v = rb_hash(RANGE_END(range));
+ hash = rb_hash_uint(hash, NUM2LONG(v));
+ }
+ hash = rb_hash_uint(hash, EXCL(range) << 24);
+ hash = rb_hash_end(hash);
- return Qtrue;
+ return LONG2FIX(hash);
}
/*
* call-seq:
- * rng.hash => fixnum
+ * rng.hash -> fixnum
*
* Generate a hash value such that two ranges with the same start and
* end points, and the same value for the "exclude end" flag, generate
@@ -213,18 +242,7 @@ range_eql(VALUE range, VALUE obj)
static VALUE
range_hash(VALUE range)
{
- unsigned long hash = EXCL(range);
- VALUE v;
-
- hash = rb_hash_start(hash);
- v = rb_hash(RANGE_BEG(range));
- hash = rb_hash_uint(hash, NUM2LONG(v));
- v = rb_hash(RANGE_END(range));
- hash = rb_hash_uint(hash, NUM2LONG(v));
- hash = rb_hash_uint(hash, EXCL(range) << 24);
- hash = rb_hash_end(hash);
-
- return LONG2FIX(hash);
+ return rb_exec_recursive_outer(recursive_hash, range, 0);
}
static void
@@ -252,6 +270,24 @@ range_each_func(VALUE range, VALUE (*func) (VALUE, void *), void *arg)
}
static VALUE
+sym_step_i(VALUE i, void *arg)
+{
+ VALUE *iter = arg;
+
+ if (FIXNUM_P(iter[0])) {
+ iter[0] -= INT2FIX(1) & ~FIXNUM_FLAG;
+ }
+ else {
+ iter[0] = rb_funcall(iter[0], '-', 1, INT2FIX(1));
+ }
+ if (iter[0] == INT2FIX(0)) {
+ rb_yield(rb_str_intern(i));
+ iter[0] = iter[1];
+ }
+ return Qnil;
+}
+
+static VALUE
step_i(VALUE i, void *arg)
{
VALUE *iter = arg;
@@ -269,11 +305,18 @@ step_i(VALUE i, void *arg)
return Qnil;
}
-extern int ruby_float_step(VALUE from, VALUE to, VALUE step, int excl);
+static int
+discrete_object_p(VALUE obj)
+{
+ if (rb_obj_is_kind_of(obj, rb_cTime)) return FALSE; /* until Time#succ removed */
+ return rb_respond_to(obj, id_succ);
+}
+
/*
* call-seq:
- * rng.step(n=1) {| obj | block } => rng
+ * rng.step(n=1) {| obj | block } -> rng
+ * rng.step(n=1) -> an_enumerator
*
* Iterates over <i>rng</i>, passing each <i>n</i>th element to the block. If
* the range contains numbers, <i>n</i> is added for each iteration. Otherwise
@@ -281,6 +324,8 @@ extern int ruby_float_step(VALUE from, VALUE to, VALUE step, int excl);
* elements. The following code uses class <code>Xs</code>, which is defined
* in the class-level documentation.
*
+ * If no block is given, an enumerator is returned instead.
+ *
* range = Xs.new(1)..Xs.new(10)
* range.step(2) {|x| puts x}
* range.step(3) {|x| puts x}
@@ -338,6 +383,15 @@ range_step(int argc, VALUE *argv, VALUE range)
}
}
+ else if (SYMBOL_P(b) && SYMBOL_P(e)) { /* symbols are special */
+ VALUE args[2], iter[2];
+
+ args[0] = rb_sym_to_s(e);
+ args[1] = EXCL(range) ? Qtrue : Qfalse;
+ iter[0] = INT2FIX(1);
+ iter[1] = step;
+ rb_block_call(rb_sym_to_s(b), rb_intern("upto"), 2, args, sym_step_i, (VALUE)iter);
+ }
else if (ruby_float_step(b, e, step, EXCL(range))) {
/* done */
}
@@ -370,7 +424,7 @@ range_step(int argc, VALUE *argv, VALUE range)
else {
VALUE args[2];
- if (!rb_respond_to(b, id_succ)) {
+ if (!discrete_object_p(b)) {
rb_raise(rb_eTypeError, "can't iterate from %s",
rb_obj_classname(b));
}
@@ -389,15 +443,25 @@ each_i(VALUE v, void *arg)
return Qnil;
}
+static VALUE
+sym_each_i(VALUE v, void *arg)
+{
+ rb_yield(rb_str_intern(v));
+ return Qnil;
+}
+
/*
* call-seq:
- * rng.each {| i | block } => rng
+ * rng.each {| i | block } -> rng
+ * rng.each -> an_enumerator
*
* Iterates over the elements <i>rng</i>, passing each in turn to the
* block. You can only iterate if the start object of the range
* supports the +succ+ method (which means that you can't iterate over
* ranges of +Float+ objects).
*
+ * If no block is given, an enumerator is returned instead.
+ *
* (10..15).each do |n|
* print n, ' '
* end
@@ -427,26 +491,37 @@ range_each(VALUE range)
rb_yield(LONG2FIX(i));
}
}
- else if (TYPE(beg) == T_STRING) {
+ else if (SYMBOL_P(beg) && SYMBOL_P(end)) { /* symbols are special */
VALUE args[2];
- args[0] = end;
+ args[0] = rb_sym_to_s(end);
args[1] = EXCL(range) ? Qtrue : Qfalse;
- rb_block_call(beg, rb_intern("upto"), 2, args, rb_yield, 0);
+ rb_block_call(rb_sym_to_s(beg), rb_intern("upto"), 2, args, sym_each_i, 0);
}
else {
- if (!rb_respond_to(beg, id_succ)) {
- rb_raise(rb_eTypeError, "can't iterate from %s",
- rb_obj_classname(beg));
+ VALUE tmp = rb_check_string_type(beg);
+
+ if (!NIL_P(tmp)) {
+ VALUE args[2];
+
+ args[0] = end;
+ args[1] = EXCL(range) ? Qtrue : Qfalse;
+ rb_block_call(tmp, rb_intern("upto"), 2, args, rb_yield, 0);
+ }
+ else {
+ if (!discrete_object_p(beg)) {
+ rb_raise(rb_eTypeError, "can't iterate from %s",
+ rb_obj_classname(beg));
+ }
+ range_each_func(range, each_i, NULL);
}
- range_each_func(range, each_i, NULL);
}
return range;
}
/*
* call-seq:
- * rng.begin => obj
+ * rng.begin -> obj
*
* Returns the first object in <i>rng</i>.
*/
@@ -460,7 +535,7 @@ range_begin(VALUE range)
/*
* call-seq:
- * rng.end => obj
+ * rng.end -> obj
*
* Returns the object that defines the end of <i>rng</i>.
*
@@ -492,8 +567,8 @@ first_i(VALUE i, VALUE *ary)
/*
* call-seq:
- * rng.first => obj
- * rng.first(n) => an_array
+ * rng.first -> obj
+ * rng.first(n) -> an_array
*
* Returns the first object in <i>rng</i>, or the first +n+ elements.
*/
@@ -516,8 +591,8 @@ range_first(int argc, VALUE *argv, VALUE range)
/*
* call-seq:
- * rng.last => obj
- * rng.last(n) => an_array
+ * rng.last -> obj
+ * rng.last(n) -> an_array
*
* Returns the last object in <i>rng</i>, or the last +n+ elements.
*/
@@ -525,8 +600,6 @@ range_first(int argc, VALUE *argv, VALUE range)
static VALUE
range_last(int argc, VALUE *argv, VALUE range)
{
- VALUE rb_ary_last(int, VALUE *, VALUE);
-
if (argc == 0) return RANGE_END(range);
return rb_ary_last(argc, argv, rb_Array(range));
}
@@ -534,8 +607,8 @@ range_last(int argc, VALUE *argv, VALUE range)
/*
* call-seq:
- * rng.min => obj
- * rng.min {| a,b | block } => obj
+ * rng.min -> obj
+ * rng.min {| a,b | block } -> obj
*
* Returns the minimum value in <i>rng</i>. The second uses
* the block to compare values. Returns nil if the first
@@ -563,8 +636,8 @@ range_min(VALUE range)
/*
* call-seq:
- * rng.max => obj
- * rng.max {| a,b | block } => obj
+ * rng.max -> obj
+ * rng.max {| a,b | block } -> obj
*
* Returns the maximum value in <i>rng</i>. The second uses
* the block to compare values. Returns nil if the first
@@ -592,6 +665,9 @@ range_max(VALUE range)
rb_raise(rb_eTypeError, "cannot exclude non Integer end value");
}
if (c == 0) return Qnil;
+ if (!FIXNUM_P(b) && !rb_obj_is_kind_of(b,rb_cInteger)) {
+ rb_raise(rb_eTypeError, "cannot exclude end value with non Integer begin value");
+ }
if (FIXNUM_P(e)) {
return LONG2NUM(FIX2LONG(e) - 1);
}
@@ -601,12 +677,11 @@ range_max(VALUE range)
}
}
-
-VALUE
-rb_range_beg_len(VALUE range, long *begp, long *lenp, long len, int err)
+int
+rb_range_values(VALUE range, VALUE *begp, VALUE *endp, int *exclp)
{
VALUE b, e;
- long beg, end, excl;
+ int excl;
if (rb_obj_is_kind_of(range, rb_cRange)) {
b = RANGE_BEG(range);
@@ -614,15 +689,31 @@ rb_range_beg_len(VALUE range, long *begp, long *lenp, long len, int err)
excl = EXCL(range);
}
else {
- if (!rb_respond_to(range, id_beg)) return Qfalse;
- if (!rb_respond_to(range, id_end)) return Qfalse;
+ if (!rb_respond_to(range, id_beg)) return (int)Qfalse;
+ if (!rb_respond_to(range, id_end)) return (int)Qfalse;
b = rb_funcall(range, id_beg, 0);
e = rb_funcall(range, id_end, 0);
excl = RTEST(rb_funcall(range, rb_intern("exclude_end?"), 0));
}
+ *begp = b;
+ *endp = e;
+ *exclp = excl;
+ return (int)Qtrue;
+}
+
+VALUE
+rb_range_beg_len(VALUE range, long *begp, long *lenp, long len, int err)
+{
+ long beg, end, origbeg, origend;
+ VALUE b, e;
+ int excl;
+
+ if (!rb_range_values(range, &b, &e, &excl))
+ return Qfalse;
beg = NUM2LONG(b);
end = NUM2LONG(e);
-
+ origbeg = beg;
+ origend = end;
if (beg < 0) {
beg += len;
if (beg < 0)
@@ -649,14 +740,14 @@ rb_range_beg_len(VALUE range, long *begp, long *lenp, long len, int err)
out_of_range:
if (err) {
rb_raise(rb_eRangeError, "%ld..%s%ld out of range",
- NUM2LONG(b), excl ? "." : "", NUM2LONG(e));
+ origbeg, excl ? "." : "", origend);
}
return Qnil;
}
/*
* call-seq:
- * rng.to_s => string
+ * rng.to_s -> string
*
* Convert this range object to a printable form.
*/
@@ -696,7 +787,7 @@ inspect_range(VALUE range, VALUE dummy, int recur)
/*
* call-seq:
- * rng.inspect => string
+ * rng.inspect -> string
*
* Convert this range object to a printable form (using
* <code>inspect</code> to convert the start and end
@@ -712,7 +803,7 @@ range_inspect(VALUE range)
/*
* call-seq:
- * rng === obj => true or false
+ * rng === obj -> true or false
*
* Returns <code>true</code> if <i>obj</i> is an element of
* <i>rng</i>, <code>false</code> otherwise. Conveniently,
@@ -739,15 +830,15 @@ range_eqq(VALUE range, VALUE val)
/*
* call-seq:
- * rng.member?(val) => true or false
- * rng.include?(val) => true or false
+ * rng.member?(val) -> true or false
+ * rng.include?(val) -> true or false
*
* Returns <code>true</code> if <i>obj</i> is an element of
* <i>rng</i>, <code>false</code> otherwise. If beg and end are
* numeric, comparison is done according magnitude of values.
*
- * ("a".."z").include?("g") # => true
- * ("a".."z").include?("A") # => false
+ * ("a".."z").include?("g") # -> true
+ * ("a".."z").include?("A") # -> false
*/
static VALUE
@@ -800,7 +891,7 @@ range_include(VALUE range, VALUE val)
/*
* call-seq:
- * rng.cover?(val) => true or false
+ * rng.cover?(val) -> true or false
*
* Returns <code>true</code> if <i>obj</i> is between beg and end,
* i.e <code>beg <= obj <= end</code> (or <i>end</i> exclusive when
diff --git a/rational.c b/rational.c
index 9a2c23bfa0..8aced2aee8 100644
--- a/rational.c
+++ b/rational.c
@@ -1,11 +1,12 @@
/*
- rational.c: Coded by Tadayoshi Funaba 2008
+ rational.c: Coded by Tadayoshi Funaba 2008-2011
This implementation is based on Keiju Ishitsuka's Rational library
which is written in ruby.
*/
#include "ruby.h"
+#include "internal.h"
#include <math.h>
#include <float.h>
@@ -16,18 +17,14 @@
#define NDEBUG
#include <assert.h>
-#ifndef RATIONAL_NAME
-#define RATIONAL_NAME "Rational"
-#endif
-
#define ZERO INT2FIX(0)
#define ONE INT2FIX(1)
#define TWO INT2FIX(2)
VALUE rb_cRational;
-static ID id_abs, id_cmp, id_convert, id_equal_p, id_expt, id_floor,
- id_idiv, id_inspect, id_integer_p, id_negate, id_to_f,
+static ID id_abs, id_cmp, id_convert, id_eqeq_p, id_expt, id_fdiv,
+ id_floor, id_idiv, id_inspect, id_integer_p, id_negate, id_to_f,
id_to_i, id_to_s, id_truncate;
#define f_boolcast(x) ((x) ? Qtrue : Qfalse)
@@ -36,7 +33,7 @@ static ID id_abs, id_cmp, id_convert, id_equal_p, id_expt, id_floor,
inline static VALUE \
f_##n(VALUE x, VALUE y)\
{\
- return rb_funcall(x, op, 1, y);\
+ return rb_funcall(x, (op), 1, y);\
}
#define fun1(n) \
@@ -140,22 +137,39 @@ fun1(floor)
fun1(inspect)
fun1(integer_p)
fun1(negate)
-fun1(to_f)
-fun1(to_i)
+
+inline static VALUE
+f_to_i(VALUE x)
+{
+ if (TYPE(x) == T_STRING)
+ return rb_str_to_inum(x, 10, 0);
+ return rb_funcall(x, id_to_i, 0);
+}
+inline static VALUE
+f_to_f(VALUE x)
+{
+ if (TYPE(x) == T_STRING)
+ return DBL2NUM(rb_str_to_dbl(x, 0));
+ return rb_funcall(x, id_to_f, 0);
+}
+
fun1(to_s)
fun1(truncate)
inline static VALUE
-f_equal_p(VALUE x, VALUE y)
+f_eqeq_p(VALUE x, VALUE y)
{
if (FIXNUM_P(x) && FIXNUM_P(y))
return f_boolcast(FIX2LONG(x) == FIX2LONG(y));
- return rb_funcall(x, id_equal_p, 1, y);
+ return rb_funcall(x, id_eqeq_p, 1, y);
}
fun2(expt)
+fun2(fdiv)
fun2(idiv)
+#define f_expt10(x) f_expt(INT2FIX(10), x)
+
inline static VALUE
f_negative_p(VALUE x)
{
@@ -169,9 +183,19 @@ f_negative_p(VALUE x)
inline static VALUE
f_zero_p(VALUE x)
{
- if (FIXNUM_P(x))
+ switch (TYPE(x)) {
+ case T_FIXNUM:
return f_boolcast(FIX2LONG(x) == 0);
- return rb_funcall(x, id_equal_p, 1, ZERO);
+ case T_BIGNUM:
+ return Qfalse;
+ case T_RATIONAL:
+ {
+ VALUE num = RRATIONAL(x)->num;
+
+ return f_boolcast(FIXNUM_P(num) && FIX2LONG(num) == 0);
+ }
+ }
+ return rb_funcall(x, id_eqeq_p, 1, ZERO);
}
#define f_nonzero_p(x) (!f_zero_p(x))
@@ -179,9 +203,21 @@ f_zero_p(VALUE x)
inline static VALUE
f_one_p(VALUE x)
{
- if (FIXNUM_P(x))
+ switch (TYPE(x)) {
+ case T_FIXNUM:
return f_boolcast(FIX2LONG(x) == 1);
- return rb_funcall(x, id_equal_p, 1, ONE);
+ case T_BIGNUM:
+ return Qfalse;
+ case T_RATIONAL:
+ {
+ VALUE num = RRATIONAL(x)->num;
+ VALUE den = RRATIONAL(x)->den;
+
+ return f_boolcast(FIXNUM_P(num) && FIX2LONG(num) == 1 &&
+ FIXNUM_P(den) && FIX2LONG(den) == 1);
+ }
+ }
+ return rb_funcall(x, id_eqeq_p, 1, ONE);
}
inline static VALUE
@@ -217,6 +253,9 @@ k_rational_p(VALUE x)
#define k_exact_p(x) (!k_float_p(x))
#define k_inexact_p(x) k_float_p(x)
+#define k_exact_zero_p(x) (k_exact_p(x) && f_zero_p(x))
+#define k_exact_one_p(x) (k_exact_p(x) && f_one_p(x))
+
#ifndef NDEBUG
#define f_gcd f_gcd_orig
#endif
@@ -324,7 +363,7 @@ nurat_s_alloc(VALUE klass)
return nurat_s_new_internal(klass, ZERO, ONE);
}
-#define rb_raise_zerodiv() rb_raise(rb_eZeroDivError, "divided by zero")
+#define rb_raise_zerodiv() rb_raise(rb_eZeroDivError, "divided by 0")
#if 0
static VALUE
@@ -381,7 +420,7 @@ f_rational_new_bang2(VALUE klass, VALUE x, VALUE y)
#ifdef CANON
static int canonicalization = 0;
-void
+RUBY_FUNC_EXPORTED void
nurat_canonicalization(int f)
{
canonicalization = f;
@@ -397,7 +436,7 @@ nurat_int_check(VALUE num)
break;
default:
if (!k_numeric_p(num) || !f_integer_p(num))
- rb_raise(rb_eArgError, "not an integer");
+ rb_raise(rb_eTypeError, "not an integer");
}
}
@@ -505,12 +544,31 @@ f_rational_new_no_reduce2(VALUE klass, VALUE x, VALUE y)
return nurat_s_canonicalize_internal_no_reduce(klass, x, y);
}
+/*
+ * call-seq:
+ * Rational(x[, y]) -> numeric
+ *
+ * Returns x/y;
+ */
static VALUE
nurat_f_rational(int argc, VALUE *argv, VALUE klass)
{
return rb_funcall2(rb_cRational, id_convert, argc, argv);
}
+/*
+ * call-seq:
+ * rat.numerator -> integer
+ *
+ * Returns the numerator.
+ *
+ * For example:
+ *
+ * Rational(7).numerator #=> 7
+ * Rational(7, 1).numerator #=> 7
+ * Rational(9, -4).numerator #=> -9
+ * Rational(-2, -10).numerator #=> 1
+ */
static VALUE
nurat_numerator(VALUE self)
{
@@ -518,6 +576,20 @@ nurat_numerator(VALUE self)
return dat->num;
}
+/*
+ * call-seq:
+ * rat.denominator -> integer
+ *
+ * Returns the denominator (always positive).
+ *
+ * For example:
+ *
+ * Rational(7).denominator #=> 1
+ * Rational(7, 1).denominator #=> 1
+ * Rational(9, -4).denominator #=> 4
+ * Rational(-2, -10).denominator #=> 5
+ * rat.numerator.gcd(rat.denominator) #=> 1
+ */
static VALUE
nurat_denominator(VALUE self)
{
@@ -533,7 +605,7 @@ inline static VALUE
f_imul(long a, long b)
{
VALUE r;
- long c;
+ volatile long c;
if (a == 0 || b == 0)
return ZERO;
@@ -556,7 +628,7 @@ inline static VALUE
f_imul(long x, long y)
{
VALUE r = f_imul_orig(x, y);
- assert(f_equal_p(r, f_mul(LONG2NUM(x), LONG2NUM(y))));
+ assert(f_eqeq_p(r, f_mul(LONG2NUM(x), LONG2NUM(y))));
return r;
}
#endif
@@ -610,6 +682,20 @@ f_addsub(VALUE self, VALUE anum, VALUE aden, VALUE bnum, VALUE bden, int k)
return f_rational_new_no_reduce2(CLASS_OF(self), num, den);
}
+/*
+ * call-seq:
+ * rat + numeric -> numeric
+ *
+ * Performs addition.
+ *
+ * For example:
+ *
+ * Rational(2, 3) + Rational(2, 3) #=> (4/3)
+ * Rational(900) + Rational(1) #=> (900/1)
+ * Rational(-2, 9) + Rational(-9, 2) #=> (-85/18)
+ * Rational(9, 8) + 4 #=> (41/8)
+ * Rational(20, 9) + 9.8 #=> 12.022222222222222
+ */
static VALUE
nurat_add(VALUE self, VALUE other)
{
@@ -638,6 +724,20 @@ nurat_add(VALUE self, VALUE other)
}
}
+/*
+ * call-seq:
+ * rat - numeric -> numeric
+ *
+ * Performs subtraction.
+ *
+ * For example:
+ *
+ * Rational(2, 3) - Rational(2, 3) #=> (0/1)
+ * Rational(900) - Rational(1) #=> (899/1)
+ * Rational(-2, 9) - Rational(-9, 2) #=> (77/18)
+ * Rational(9, 8) - 4 #=> (23/8)
+ * Rational(20, 9) - 9.8 #=> -7.577777777777778
+ */
static VALUE
nurat_sub(VALUE self, VALUE other)
{
@@ -705,6 +805,20 @@ f_muldiv(VALUE self, VALUE anum, VALUE aden, VALUE bnum, VALUE bden, int k)
return f_rational_new_no_reduce2(CLASS_OF(self), num, den);
}
+/*
+ * call-seq:
+ * rat * numeric -> numeric
+ *
+ * Performs multiplication.
+ *
+ * For example:
+ *
+ * Rational(2, 3) * Rational(2, 3) #=> (4/9)
+ * Rational(900) * Rational(1) #=> (900/1)
+ * Rational(-2, 9) * Rational(-9, 2) #=> (1/1)
+ * Rational(9, 8) * 4 #=> (9/2)
+ * Rational(20, 9) * 9.8 #=> 21.77777777777778
+ */
static VALUE
nurat_mul(VALUE self, VALUE other)
{
@@ -733,6 +847,21 @@ nurat_mul(VALUE self, VALUE other)
}
}
+/*
+ * call-seq:
+ * rat / numeric -> numeric
+ * rat.quo(numeric) -> numeric
+ *
+ * Performs division.
+ *
+ * For example:
+ *
+ * Rational(2, 3) / Rational(2, 3) #=> (1/1)
+ * Rational(900) / Rational(1) #=> (900/1)
+ * Rational(-2, 9) / Rational(-9, 2) #=> (4/81)
+ * Rational(9, 8) / 4 #=> (9/32)
+ * Rational(20, 9) / 9.8 #=> 0.22675736961451246
+ */
static VALUE
nurat_div(VALUE self, VALUE other)
{
@@ -749,6 +878,16 @@ nurat_div(VALUE self, VALUE other)
other, ONE, '/');
}
case T_FLOAT:
+ {
+ double x = RFLOAT_VALUE(other), den;
+ get_dat1(self);
+
+ if (isnan(x)) return DBL2NUM(NAN);
+ if (isinf(x)) return INT2FIX(0);
+ if (x != 0.0 && modf(x, &den) == 0.0) {
+ return rb_rational_raw2(dat->num, f_mul(rb_dbl2big(den), dat->den));
+ }
+ }
return rb_funcall(f_to_f(self), '/', 1, other);
case T_RATIONAL:
if (f_zero_p(other))
@@ -756,6 +895,10 @@ nurat_div(VALUE self, VALUE other)
{
get_dat2(self, other);
+ if (f_one_p(self))
+ return f_rational_new_no_reduce2(CLASS_OF(self),
+ bdat->den, bdat->num);
+
return f_muldiv(self,
adat->num, adat->den,
bdat->num, bdat->den, '/');
@@ -765,28 +908,56 @@ nurat_div(VALUE self, VALUE other)
}
}
+/*
+ * call-seq:
+ * rat.fdiv(numeric) -> float
+ *
+ * Performs division and returns the value as a float.
+ *
+ * For example:
+ *
+ * Rational(2, 3).fdiv(1) #=> 0.6666666666666666
+ * Rational(2, 3).fdiv(0.5) #=> 1.3333333333333333
+ * Rational(2).fdiv(3) #=> 0.6666666666666666
+ */
static VALUE
nurat_fdiv(VALUE self, VALUE other)
{
- return f_div(f_to_f(self), other);
+ if (f_zero_p(other))
+ return f_div(self, f_to_f(other));
+ return f_to_f(f_div(self, other));
}
+/*
+ * call-seq:
+ * rat ** numeric -> numeric
+ *
+ * Performs exponentiation.
+ *
+ * For example:
+ *
+ * Rational(2) ** Rational(3) #=> (8/1)
+ * Rational(10) ** -2 #=> (1/100)
+ * Rational(10) ** -2.0 #=> 0.01
+ * Rational(-4) ** Rational(1,2) #=> (1.2246063538223773e-16+2.0i)
+ * Rational(1, 2) ** 0 #=> (1/1)
+ * Rational(1, 2) ** 0.0 #=> 1.0
+ */
static VALUE
nurat_expt(VALUE self, VALUE other)
{
- if (k_exact_p(other) && f_zero_p(other))
+ if (k_numeric_p(other) && k_exact_zero_p(other))
return f_rational_new_bang1(CLASS_OF(self), ONE);
if (k_rational_p(other)) {
get_dat1(other);
if (f_one_p(dat->den))
- other = dat->num; /* good? */
+ other = dat->num; /* c14n */
}
switch (TYPE(other)) {
case T_FIXNUM:
- case T_BIGNUM:
{
VALUE num, den;
@@ -808,6 +979,9 @@ nurat_expt(VALUE self, VALUE other)
}
return f_rational_new2(CLASS_OF(self), num, den);
}
+ case T_BIGNUM:
+ rb_warn("in a**b, b may be too big");
+ /* fall through */
case T_FLOAT:
case T_RATIONAL:
return f_expt(f_to_f(self), other);
@@ -816,6 +990,20 @@ nurat_expt(VALUE self, VALUE other)
}
}
+/*
+ * call-seq:
+ * rat <=> numeric -> -1, 0, +1 or nil
+ *
+ * Performs comparison and returns -1, 0, or +1.
+ *
+ * For example:
+ *
+ * Rational(2, 3) <=> Rational(2, 3) #=> 0
+ * Rational(5) <=> 5 #=> 0
+ * Rational(2,3) <=> Rational(1,3) #=> 1
+ * Rational(1,3) <=> 1 #=> -1
+ * Rational(1,3) <=> 0.3 #=> 1
+ */
static VALUE
nurat_cmp(VALUE self, VALUE other)
{
@@ -826,7 +1014,7 @@ nurat_cmp(VALUE self, VALUE other)
get_dat1(self);
if (FIXNUM_P(dat->den) && FIX2LONG(dat->den) == 1)
- return f_cmp(dat->num, other);
+ return f_cmp(dat->num, other); /* c14n */
return f_cmp(self, f_rational_new_bang1(CLASS_OF(self), other));
}
case T_FLOAT:
@@ -849,12 +1037,26 @@ nurat_cmp(VALUE self, VALUE other)
return f_cmp(f_sub(num1, num2), ZERO);
}
default:
- return rb_num_coerce_bin(self, other, id_cmp);
+ return rb_num_coerce_cmp(self, other, id_cmp);
}
}
+/*
+ * call-seq:
+ * rat == object -> true or false
+ *
+ * Returns true if rat equals object numerically.
+ *
+ * For example:
+ *
+ * Rational(2, 3) == Rational(2, 3) #=> true
+ * Rational(5) == 5 #=> true
+ * Rational(0) == 0.0 #=> true
+ * Rational('1/3') == 0.33 #=> false
+ * Rational('1/2') == '1/2' #=> false
+ */
static VALUE
-nurat_equal_p(VALUE self, VALUE other)
+nurat_eqeq_p(VALUE self, VALUE other)
{
switch (TYPE(other)) {
case T_FIXNUM:
@@ -869,12 +1071,12 @@ nurat_equal_p(VALUE self, VALUE other)
return Qfalse;
if (FIX2LONG(dat->den) != 1)
return Qfalse;
- if (f_equal_p(dat->num, other))
+ if (f_eqeq_p(dat->num, other))
return Qtrue;
return Qfalse;
}
case T_FLOAT:
- return f_equal_p(f_to_f(self), other);
+ return f_eqeq_p(f_to_f(self), other);
case T_RATIONAL:
{
get_dat2(self, other);
@@ -882,14 +1084,15 @@ nurat_equal_p(VALUE self, VALUE other)
if (f_zero_p(adat->num) && f_zero_p(bdat->num))
return Qtrue;
- return f_boolcast(f_equal_p(adat->num, bdat->num) &&
- f_equal_p(adat->den, bdat->den));
+ return f_boolcast(f_eqeq_p(adat->num, bdat->num) &&
+ f_eqeq_p(adat->den, bdat->den));
}
default:
- return f_equal_p(other, self);
+ return f_eqeq_p(other, self);
}
}
+/* :nodoc: */
static VALUE
nurat_coerce(VALUE self, VALUE other)
{
@@ -899,6 +1102,14 @@ nurat_coerce(VALUE self, VALUE other)
return rb_assoc_new(f_rational_new_bang1(CLASS_OF(self), other), self);
case T_FLOAT:
return rb_assoc_new(other, f_to_f(self));
+ case T_RATIONAL:
+ return rb_assoc_new(other, self);
+ case T_COMPLEX:
+ if (k_exact_zero_p(RCOMPLEX(other)->imag))
+ return rb_assoc_new(f_rational_new_bang1
+ (CLASS_OF(self), RCOMPLEX(other)->real), self);
+ else
+ return rb_assoc_new(other, rb_Complex(self, INT2FIX(0)));
}
rb_raise(rb_eTypeError, "%s can't be coerced into %s",
@@ -906,42 +1117,22 @@ nurat_coerce(VALUE self, VALUE other)
return Qnil;
}
+#if 0
+/* :nodoc: */
static VALUE
nurat_idiv(VALUE self, VALUE other)
{
- return f_floor(f_div(self, other));
-}
-
-static VALUE
-nurat_mod(VALUE self, VALUE other)
-{
- VALUE val = f_floor(f_div(self, other));
- return f_sub(self, f_mul(other, val));
-}
-
-static VALUE
-nurat_divmod(VALUE self, VALUE other)
-{
- VALUE val = f_floor(f_div(self, other));
- return rb_assoc_new(val, f_sub(self, f_mul(other, val)));
+ return f_idiv(self, other);
}
-#if 0
+/* :nodoc: */
static VALUE
nurat_quot(VALUE self, VALUE other)
{
return f_truncate(f_div(self, other));
}
-#endif
-
-static VALUE
-nurat_rem(VALUE self, VALUE other)
-{
- VALUE val = f_truncate(f_div(self, other));
- return f_sub(self, f_mul(other, val));
-}
-#if 0
+/* :nodoc: */
static VALUE
nurat_quotrem(VALUE self, VALUE other)
{
@@ -950,15 +1141,8 @@ nurat_quotrem(VALUE self, VALUE other)
}
#endif
-static VALUE
-nurat_abs(VALUE self)
-{
- if (f_positive_p(self))
- return self;
- return f_negate(self);
-}
-
#if 0
+/* :nodoc: */
static VALUE
nurat_true(VALUE self)
{
@@ -980,6 +1164,23 @@ nurat_ceil(VALUE self)
return f_negate(f_idiv(f_negate(dat->num), dat->den));
}
+/*
+ * call-seq:
+ * rat.to_i -> integer
+ *
+ * Returns the truncated value as an integer.
+ *
+ * Equivalent to
+ * rat.truncate.
+ *
+ * For example:
+ *
+ * Rational(2, 3).to_i #=> 0
+ * Rational(3).to_i #=> 3
+ * Rational(300.6).to_i #=> 300
+ * Rational(98,71).to_i #=> 1
+ * Rational(-30,2).to_i #=> -15
+ */
static VALUE
nurat_truncate(VALUE self)
{
@@ -1014,8 +1215,7 @@ nurat_round(VALUE self)
}
static VALUE
-nurat_round_common(int argc, VALUE *argv, VALUE self,
- VALUE (*func)(VALUE))
+f_round_common(int argc, VALUE *argv, VALUE self, VALUE (*func)(VALUE))
{
VALUE n, b, s;
@@ -1027,7 +1227,7 @@ nurat_round_common(int argc, VALUE *argv, VALUE self,
if (!k_integer_p(n))
rb_raise(rb_eTypeError, "not an integer");
- b = f_expt(INT2FIX(10), n);
+ b = f_expt10(n);
s = f_mul(self, b);
s = (*func)(s);
@@ -1040,139 +1240,301 @@ nurat_round_common(int argc, VALUE *argv, VALUE self,
return s;
}
+/*
+ * call-seq:
+ * rat.floor -> integer
+ * rat.floor(precision=0) -> rational
+ *
+ * Returns the truncated value (toward negative infinity).
+ *
+ * For example:
+ *
+ * Rational(3).floor #=> 3
+ * Rational(2, 3).floor #=> 0
+ * Rational(-3, 2).floor #=> -1
+ *
+ * decimal - 1 2 3 . 4 5 6
+ * ^ ^ ^ ^ ^ ^
+ * precision -3 -2 -1 0 +1 +2
+ *
+ * '%f' % Rational('-123.456').floor(+1) #=> "-123.500000"
+ * '%f' % Rational('-123.456').floor(-1) #=> "-130.000000"
+ */
static VALUE
nurat_floor_n(int argc, VALUE *argv, VALUE self)
{
- return nurat_round_common(argc, argv, self, nurat_floor);
+ return f_round_common(argc, argv, self, nurat_floor);
}
+/*
+ * call-seq:
+ * rat.ceil -> integer
+ * rat.ceil(precision=0) -> rational
+ *
+ * Returns the truncated value (toward positive infinity).
+ *
+ * For example:
+ *
+ * Rational(3).ceil #=> 3
+ * Rational(2, 3).ceil #=> 1
+ * Rational(-3, 2).ceil #=> -1
+ *
+ * decimal - 1 2 3 . 4 5 6
+ * ^ ^ ^ ^ ^ ^
+ * precision -3 -2 -1 0 +1 +2
+ *
+ * '%f' % Rational('-123.456').ceil(+1) #=> "-123.400000"
+ * '%f' % Rational('-123.456').ceil(-1) #=> "-120.000000"
+ */
static VALUE
nurat_ceil_n(int argc, VALUE *argv, VALUE self)
{
- return nurat_round_common(argc, argv, self, nurat_ceil);
+ return f_round_common(argc, argv, self, nurat_ceil);
}
+/*
+ * call-seq:
+ * rat.truncate -> integer
+ * rat.truncate(precision=0) -> rational
+ *
+ * Returns the truncated value (toward zero).
+ *
+ * For example:
+ *
+ * Rational(3).truncate #=> 3
+ * Rational(2, 3).truncate #=> 0
+ * Rational(-3, 2).truncate #=> -1
+ *
+ * decimal - 1 2 3 . 4 5 6
+ * ^ ^ ^ ^ ^ ^
+ * precision -3 -2 -1 0 +1 +2
+ *
+ * '%f' % Rational('-123.456').truncate(+1) #=> "-123.400000"
+ * '%f' % Rational('-123.456').truncate(-1) #=> "-120.000000"
+ */
static VALUE
nurat_truncate_n(int argc, VALUE *argv, VALUE self)
{
- return nurat_round_common(argc, argv, self, nurat_truncate);
+ return f_round_common(argc, argv, self, nurat_truncate);
}
+/*
+ * call-seq:
+ * rat.round -> integer
+ * rat.round(precision=0) -> rational
+ *
+ * Returns the truncated value (toward the nearest integer;
+ * 0.5 => 1; -0.5 => -1).
+ *
+ * For example:
+ *
+ * Rational(3).round #=> 3
+ * Rational(2, 3).round #=> 1
+ * Rational(-3, 2).round #=> -2
+ *
+ * decimal - 1 2 3 . 4 5 6
+ * ^ ^ ^ ^ ^ ^
+ * precision -3 -2 -1 0 +1 +2
+ *
+ * '%f' % Rational('-123.456').round(+1) #=> "-123.500000"
+ * '%f' % Rational('-123.456').round(-1) #=> "-120.000000"
+ */
static VALUE
nurat_round_n(int argc, VALUE *argv, VALUE self)
{
- return nurat_round_common(argc, argv, self, nurat_round);
+ return f_round_common(argc, argv, self, nurat_round);
}
-#define f_size(x) rb_funcall(x, rb_intern("size"), 0)
-#define f_rshift(x,y) rb_funcall(x, rb_intern(">>"), 1, y)
-
-inline static long
-i_ilog2(VALUE x)
+/*
+ * call-seq:
+ * rat.to_f -> float
+ *
+ * Return the value as a float.
+ *
+ * For example:
+ *
+ * Rational(2).to_f #=> 2.0
+ * Rational(9, 4).to_f #=> 2.25
+ * Rational(-3, 4).to_f #=> -0.75
+ * Rational(20, 3).to_f #=> 6.666666666666667
+ */
+static VALUE
+nurat_to_f(VALUE self)
{
- long q, r, fx;
-
- assert(!f_lt_p(x, ONE));
-
- q = (NUM2LONG(f_size(x)) - sizeof(long)) * 8 + 1;
-
- if (q > 0)
- x = f_rshift(x, LONG2NUM(q));
-
- fx = NUM2LONG(x);
-
- r = -1;
- while (fx) {
- fx >>= 1;
- r += 1;
- }
-
- return q + r;
+ get_dat1(self);
+ return f_fdiv(dat->num, dat->den);
}
-static long ml;
-
+/*
+ * call-seq:
+ * rat.to_r -> self
+ *
+ * Returns self.
+ *
+ * For example:
+ *
+ * Rational(2).to_r #=> (2/1)
+ * Rational(-8, 6).to_r #=> (-4/3)
+ */
static VALUE
-nurat_to_f(VALUE self)
+nurat_to_r(VALUE self)
{
- VALUE num, den;
- int minus = 0;
- long nl, dl, ne, de;
- int e;
- double f;
+ return self;
+}
- {
- get_dat1(self);
+#define id_ceil rb_intern("ceil")
+#define f_ceil(x) rb_funcall((x), id_ceil, 0)
- if (f_zero_p(dat->num))
- return rb_float_new(0.0);
+#define id_quo rb_intern("quo")
+#define f_quo(x,y) rb_funcall((x), id_quo, 1, (y))
- num = dat->num;
- den = dat->den;
- }
+#define f_reciprocal(x) f_quo(ONE, (x))
- if (f_negative_p(num)) {
- num = f_negate(num);
- minus = 1;
- }
+/*
+ The algorithm here is the method described in CLISP. Bruno Haible has
+ graciously given permission to use this algorithm. He says, "You can use
+ it, if you present the following explanation of the algorithm."
+
+ Algorithm (recursively presented):
+ If x is a rational number, return x.
+ If x = 0.0, return 0.
+ If x < 0.0, return (- (rationalize (- x))).
+ If x > 0.0:
+ Call (integer-decode-float x). It returns a m,e,s=1 (mantissa,
+ exponent, sign).
+ If m = 0 or e >= 0: return x = m*2^e.
+ Search a rational number between a = (m-1/2)*2^e and b = (m+1/2)*2^e
+ with smallest possible numerator and denominator.
+ Note 1: If m is a power of 2, we ought to take a = (m-1/4)*2^e.
+ But in this case the result will be x itself anyway, regardless of
+ the choice of a. Therefore we can simply ignore this case.
+ Note 2: At first, we need to consider the closed interval [a,b].
+ but since a and b have the denominator 2^(|e|+1) whereas x itself
+ has a denominator <= 2^|e|, we can restrict the search to the open
+ interval (a,b).
+ So, for given a and b (0 < a < b) we are searching a rational number
+ y with a <= y <= b.
+ Recursive algorithm fraction_between(a,b):
+ c := (ceiling a)
+ if c < b
+ then return c ; because a <= c < b, c integer
+ else
+ ; a is not integer (otherwise we would have had c = a < b)
+ k := c-1 ; k = floor(a), k < a < b <= k+1
+ return y = k + 1/fraction_between(1/(b-k), 1/(a-k))
+ ; note 1 <= 1/(b-k) < 1/(a-k)
+
+ You can see that we are actually computing a continued fraction expansion.
+
+ Algorithm (iterative):
+ If x is rational, return x.
+ Call (integer-decode-float x). It returns a m,e,s (mantissa,
+ exponent, sign).
+ If m = 0 or e >= 0, return m*2^e*s. (This includes the case x = 0.0.)
+ Create rational numbers a := (2*m-1)*2^(e-1) and b := (2*m+1)*2^(e-1)
+ (positive and already in lowest terms because the denominator is a
+ power of two and the numerator is odd).
+ Start a continued fraction expansion
+ p[-1] := 0, p[0] := 1, q[-1] := 1, q[0] := 0, i := 0.
+ Loop
+ c := (ceiling a)
+ if c >= b
+ then k := c-1, partial_quotient(k), (a,b) := (1/(b-k),1/(a-k)),
+ goto Loop
+ finally partial_quotient(c).
+ Here partial_quotient(c) denotes the iteration
+ i := i+1, p[i] := c*p[i-1]+p[i-2], q[i] := c*q[i-1]+q[i-2].
+ At the end, return s * (p[i]/q[i]).
+ This rational number is already in lowest terms because
+ p[i]*q[i-1]-p[i-1]*q[i] = (-1)^i.
+*/
- nl = i_ilog2(num);
- dl = i_ilog2(den);
+static void
+nurat_rationalize_internal(VALUE a, VALUE b, VALUE *p, VALUE *q)
+{
+ VALUE c, k, t, p0, p1, p2, q0, q1, q2;
- ne = 0;
- if (nl > ml) {
- ne = nl - ml;
- num = f_rshift(num, LONG2NUM(ne));
- }
+ p0 = ZERO;
+ p1 = ONE;
+ q0 = ONE;
+ q1 = ZERO;
- de = 0;
- if (dl > ml) {
- de = dl - ml;
- den = f_rshift(den, LONG2NUM(de));
+ while (1) {
+ c = f_ceil(a);
+ if (f_lt_p(c, b))
+ break;
+ k = f_sub(c, ONE);
+ p2 = f_add(f_mul(k, p1), p0);
+ q2 = f_add(f_mul(k, q1), q0);
+ t = f_reciprocal(f_sub(b, k));
+ b = f_reciprocal(f_sub(a, k));
+ a = t;
+ p0 = p1;
+ q0 = q1;
+ p1 = p2;
+ q1 = q2;
}
+ *p = f_add(f_mul(c, p1), p0);
+ *q = f_add(f_mul(c, q1), q0);
+}
- e = (int)(ne - de);
+/*
+ * call-seq:
+ * rat.rationalize -> self
+ * rat.rationalize(eps) -> rational
+ *
+ * Returns a simpler approximation of the value if an optional
+ * argument eps is given (rat-|eps| <= result <= rat+|eps|), self
+ * otherwise.
+ *
+ * For example:
+ *
+ * r = Rational(5033165, 16777216)
+ * r.rationalize #=> (5033165/16777216)
+ * r.rationalize(Rational('0.01')) #=> (3/10)
+ * r.rationalize(Rational('0.1')) #=> (1/3)
+ */
+static VALUE
+nurat_rationalize(int argc, VALUE *argv, VALUE self)
+{
+ VALUE e, a, b, p, q;
- if ((e > DBL_MAX_EXP) || (e < DBL_MIN_EXP)) {
- rb_warning("%s out of Float range", rb_obj_classname(self));
- return rb_float_new(e > 0 ? HUGE_VAL : 0.0);
- }
+ if (argc == 0)
+ return self;
- f = NUM2DBL(num) / NUM2DBL(den);
- if (minus)
- f = -f;
- f = ldexp(f, e);
+ if (f_negative_p(self))
+ return f_negate(nurat_rationalize(argc, argv, f_abs(self)));
- if (isinf(f) || isnan(f))
- rb_warning("%s out of Float range", rb_obj_classname(self));
+ rb_scan_args(argc, argv, "01", &e);
+ e = f_abs(e);
+ a = f_sub(self, e);
+ b = f_add(self, e);
- return rb_float_new(f);
-}
+ if (f_eqeq_p(a, b))
+ return self;
-static VALUE
-nurat_to_r(VALUE self)
-{
- return self;
+ nurat_rationalize_internal(a, b, &p, &q);
+ return f_rational_new2(CLASS_OF(self), p, q);
}
+/* :nodoc: */
static VALUE
nurat_hash(VALUE self)
{
- long v, h[3];
+ st_index_t v, h[2];
VALUE n;
get_dat1(self);
- h[0] = rb_hash(rb_obj_class(self));
n = rb_hash(dat->num);
- h[1] = NUM2LONG(n);
+ h[0] = NUM2LONG(n);
n = rb_hash(dat->den);
- h[2] = NUM2LONG(n);
+ h[1] = NUM2LONG(n);
v = rb_memhash(h, sizeof(h));
return LONG2FIX(v);
}
static VALUE
-nurat_format(VALUE self, VALUE (*func)(VALUE))
+f_format(VALUE self, VALUE (*func)(VALUE))
{
VALUE s;
get_dat1(self);
@@ -1184,24 +1546,49 @@ nurat_format(VALUE self, VALUE (*func)(VALUE))
return s;
}
+/*
+ * call-seq:
+ * rat.to_s -> string
+ *
+ * Returns the value as a string.
+ *
+ * For example:
+ *
+ * Rational(2).to_s #=> "2/1"
+ * Rational(-8, 6).to_s #=> "-4/3"
+ * Rational('0.5').to_s #=> "1/2"
+ */
static VALUE
nurat_to_s(VALUE self)
{
- return nurat_format(self, f_to_s);
+ return f_format(self, f_to_s);
}
+/*
+ * call-seq:
+ * rat.inspect -> string
+ *
+ * Returns the value as a string for inspection.
+ *
+ * For example:
+ *
+ * Rational(2).inspect #=> "(2/1)"
+ * Rational(-8, 6).inspect #=> "(-4/3)"
+ * Rational('0.5').inspect #=> "(1/2)"
+ */
static VALUE
nurat_inspect(VALUE self)
{
VALUE s;
s = rb_usascii_str_new2("(");
- rb_str_concat(s, nurat_format(self, f_inspect));
+ rb_str_concat(s, f_format(self, f_inspect));
rb_str_cat2(s, ")");
return s;
}
+/* :nodoc: */
static VALUE
nurat_marshal_dump(VALUE self)
{
@@ -1213,10 +1600,14 @@ nurat_marshal_dump(VALUE self)
return a;
}
+/* :nodoc: */
static VALUE
nurat_marshal_load(VALUE self, VALUE a)
{
get_dat1(self);
+ Check_Type(a, T_ARRAY);
+ if (RARRAY_LEN(a) != 2)
+ rb_raise(rb_eArgError, "marshaled rational must have an array whose length is 2 but %ld", RARRAY_LEN(a));
dat->num = RARRAY_PTR(a)[0];
dat->den = RARRAY_PTR(a)[1];
rb_copy_generic_ivar(self, a);
@@ -1230,12 +1621,45 @@ nurat_marshal_load(VALUE self, VALUE a)
/* --- */
VALUE
+rb_rational_reciprocal(VALUE x)
+{
+ get_dat1(x);
+ return f_rational_new_no_reduce2(CLASS_OF(x), dat->den, dat->num);
+}
+
+/*
+ * call-seq:
+ * int.gcd(int2) -> integer
+ *
+ * Returns the greatest common divisor (always positive). 0.gcd(x)
+ * and x.gcd(0) return abs(x).
+ *
+ * For example:
+ *
+ * 2.gcd(2) #=> 2
+ * 3.gcd(-7) #=> 1
+ * ((1<<31)-1).gcd((1<<61)-1) #=> 1
+ */
+VALUE
rb_gcd(VALUE self, VALUE other)
{
other = nurat_int_value(other);
return f_gcd(self, other);
}
+/*
+ * call-seq:
+ * int.lcm(int2) -> integer
+ *
+ * Returns the least common multiple (always positive). 0.lcm(x) and
+ * x.lcm(0) return zero.
+ *
+ * For example:
+ *
+ * 2.lcm(2) #=> 2
+ * 3.lcm(-7) #=> 21
+ * ((1<<31)-1).lcm((1<<61)-1) #=> 4951760154835678088235319297
+ */
VALUE
rb_lcm(VALUE self, VALUE other)
{
@@ -1243,6 +1667,18 @@ rb_lcm(VALUE self, VALUE other)
return f_lcm(self, other);
}
+/*
+ * call-seq:
+ * int.gcdlcm(int2) -> array
+ *
+ * Returns an array; [int.gcd(int2), int.lcm(int2)].
+ *
+ * For example:
+ *
+ * 2.gcdlcm(2) #=> [2, 2]
+ * 3.gcdlcm(-7) #=> [1, 21]
+ * ((1<<31)-1).gcdlcm((1<<61)-1) #=> [1, 4951760154835678088235319297]
+ */
VALUE
rb_gcdlcm(VALUE self, VALUE other)
{
@@ -1273,18 +1709,159 @@ rb_Rational(VALUE x, VALUE y)
return nurat_s_convert(2, a, rb_cRational);
}
+#define id_numerator rb_intern("numerator")
+#define f_numerator(x) rb_funcall((x), id_numerator, 0)
+
+#define id_denominator rb_intern("denominator")
+#define f_denominator(x) rb_funcall((x), id_denominator, 0)
+
+#define id_to_r rb_intern("to_r")
+#define f_to_r(x) rb_funcall((x), id_to_r, 0)
+
+/*
+ * call-seq:
+ * num.numerator -> integer
+ *
+ * Returns the numerator.
+ */
+static VALUE
+numeric_numerator(VALUE self)
+{
+ return f_numerator(f_to_r(self));
+}
+
+/*
+ * call-seq:
+ * num.denominator -> integer
+ *
+ * Returns the denominator (always positive).
+ */
+static VALUE
+numeric_denominator(VALUE self)
+{
+ return f_denominator(f_to_r(self));
+}
+
+/*
+ * call-seq:
+ * int.numerator -> self
+ *
+ * Returns self.
+ */
+static VALUE
+integer_numerator(VALUE self)
+{
+ return self;
+}
+
+/*
+ * call-seq:
+ * int.denominator -> 1
+ *
+ * Returns 1.
+ */
+static VALUE
+integer_denominator(VALUE self)
+{
+ return INT2FIX(1);
+}
+
+/*
+ * call-seq:
+ * flo.numerator -> integer
+ *
+ * Returns the numerator. The result is machine dependent.
+ *
+ * For example:
+ *
+ * n = 0.3.numerator #=> 5404319552844595
+ * d = 0.3.denominator #=> 18014398509481984
+ * n.fdiv(d) #=> 0.3
+ */
+static VALUE
+float_numerator(VALUE self)
+{
+ double d = RFLOAT_VALUE(self);
+ if (isinf(d) || isnan(d))
+ return self;
+ return rb_call_super(0, 0);
+}
+
+/*
+ * call-seq:
+ * flo.denominator -> integer
+ *
+ * Returns the denominator (always positive). The result is machine
+ * dependent.
+ *
+ * See numerator.
+ */
+static VALUE
+float_denominator(VALUE self)
+{
+ double d = RFLOAT_VALUE(self);
+ if (isinf(d) || isnan(d))
+ return INT2FIX(1);
+ return rb_call_super(0, 0);
+}
+
+/*
+ * call-seq:
+ * nil.to_r -> (0/1)
+ *
+ * Returns zero as a rational.
+ */
static VALUE
nilclass_to_r(VALUE self)
{
return rb_rational_new1(INT2FIX(0));
}
+/*
+ * call-seq:
+ * nil.rationalize([eps]) -> (0/1)
+ *
+ * Returns zero as a rational. An optional argument eps is always
+ * ignored.
+ */
+static VALUE
+nilclass_rationalize(int argc, VALUE *argv, VALUE self)
+{
+ rb_scan_args(argc, argv, "01", NULL);
+ return nilclass_to_r(self);
+}
+
+/*
+ * call-seq:
+ * int.to_r -> rational
+ *
+ * Returns the value as a rational.
+ *
+ * For example:
+ *
+ * 1.to_r #=> (1/1)
+ * (1<<64).to_r #=> (18446744073709551616/1)
+ */
static VALUE
integer_to_r(VALUE self)
{
return rb_rational_new1(self);
}
+/*
+ * call-seq:
+ * int.rationalize([eps]) -> rational
+ *
+ * Returns the value as a rational. An optional argument eps is
+ * always ignored.
+ */
+static VALUE
+integer_rationalize(int argc, VALUE *argv, VALUE self)
+{
+ rb_scan_args(argc, argv, "01", NULL);
+ return integer_to_r(self);
+}
+
static void
float_decode_internal(VALUE self, VALUE *rf, VALUE *rn)
{
@@ -1309,19 +1886,109 @@ float_decode(VALUE self)
}
#endif
+#define id_lshift rb_intern("<<")
+#define f_lshift(x,n) rb_funcall((x), id_lshift, 1, (n))
+
+/*
+ * call-seq:
+ * flt.to_r -> rational
+ *
+ * Returns the value as a rational.
+ *
+ * NOTE: 0.3.to_r isn't the same as '0.3'.to_r. The latter is
+ * equivalent to '3/10'.to_r, but the former isn't so.
+ *
+ * For example:
+ *
+ * 2.0.to_r #=> (2/1)
+ * 2.5.to_r #=> (5/2)
+ * -0.75.to_r #=> (-3/4)
+ * 0.0.to_r #=> (0/1)
+ */
static VALUE
float_to_r(VALUE self)
{
VALUE f, n;
float_decode_internal(self, &f, &n);
- return f_mul(f, f_expt(INT2FIX(FLT_RADIX), n));
+#if FLT_RADIX == 2
+ {
+ long ln = FIX2LONG(n);
+
+ if (ln == 0)
+ return f_to_r(f);
+ if (ln > 0)
+ return f_to_r(f_lshift(f, n));
+ ln = -ln;
+ return rb_rational_new2(f, f_lshift(ONE, INT2FIX(ln)));
+ }
+#else
+ return f_to_r(f_mul(f, f_expt(INT2FIX(FLT_RADIX), n)));
+#endif
+}
+
+/*
+ * call-seq:
+ * flt.rationalize([eps]) -> rational
+ *
+ * Returns a simpler approximation of the value (flt-|eps| <= result
+ * <= flt+|eps|). if eps is not given, it will be chosen
+ * automatically.
+ *
+ * For example:
+ *
+ * 0.3.rationalize #=> (3/10)
+ * 1.333.rationalize #=> (1333/1000)
+ * 1.333.rationalize(0.01) #=> (4/3)
+ */
+static VALUE
+float_rationalize(int argc, VALUE *argv, VALUE self)
+{
+ VALUE e, a, b, p, q;
+
+ if (f_negative_p(self))
+ return f_negate(float_rationalize(argc, argv, f_abs(self)));
+
+ rb_scan_args(argc, argv, "01", &e);
+
+ if (argc != 0) {
+ e = f_abs(e);
+ a = f_sub(self, e);
+ b = f_add(self, e);
+ }
+ else {
+ VALUE f, n;
+
+ float_decode_internal(self, &f, &n);
+ if (f_zero_p(f) || f_positive_p(n))
+ return rb_rational_new1(f_lshift(f, n));
+
+#if FLT_RADIX == 2
+ a = rb_rational_new2(f_sub(f_mul(TWO, f), ONE),
+ f_lshift(ONE, f_sub(ONE, n)));
+ b = rb_rational_new2(f_add(f_mul(TWO, f), ONE),
+ f_lshift(ONE, f_sub(ONE, n)));
+#else
+ a = rb_rational_new2(f_sub(f_mul(INT2FIX(FLT_RADIX), f),
+ INT2FIX(FLT_RADIX - 1)),
+ f_expt(INT2FIX(FLT_RADIX), f_sub(ONE, n)));
+ b = rb_rational_new2(f_add(f_mul(INT2FIX(FLT_RADIX), f),
+ INT2FIX(FLT_RADIX - 1)),
+ f_expt(INT2FIX(FLT_RADIX), f_sub(ONE, n)));
+#endif
+ }
+
+ if (f_eqeq_p(a, b))
+ return f_to_r(self);
+
+ nurat_rationalize_internal(a, b, &p, &q);
+ return rb_rational_new2(p, q);
}
static VALUE rat_pat, an_e_pat, a_dot_pat, underscores_pat, an_underscore;
#define WS "\\s*"
-#define DIGITS "(?:\\d(?:_\\d|\\d)*)"
+#define DIGITS "(?:[0-9](?:_[0-9]|[0-9])*)"
#define NUMERATOR "(?:" DIGITS "?\\.)?" DIGITS "(?:[eE][-+]?" DIGITS ")?"
#define DENOMINATOR DIGITS
#define PATTERN "\\A" WS "([-+])?(" NUMERATOR ")(?:\\/(" DENOMINATOR "))?" WS
@@ -1354,16 +2021,10 @@ make_patterns(void)
}
#define id_match rb_intern("match")
-#define f_match(x,y) rb_funcall(x, id_match, 1, y)
-
-#define id_aref rb_intern("[]")
-#define f_aref(x,y) rb_funcall(x, id_aref, 1, y)
-
-#define id_post_match rb_intern("post_match")
-#define f_post_match(x) rb_funcall(x, id_post_match, 0)
+#define f_match(x,y) rb_funcall((x), id_match, 1, (y))
#define id_split rb_intern("split")
-#define f_split(x,y) rb_funcall(x, id_split, 1, y)
+#define f_split(x,y) rb_funcall((x), id_split, 1, (y))
#include <ctype.h>
@@ -1381,33 +2042,45 @@ string_to_r_internal(VALUE self)
if (!NIL_P(m)) {
VALUE v, ifp, exp, ip, fp;
- VALUE si = f_aref(m, INT2FIX(1));
- VALUE nu = f_aref(m, INT2FIX(2));
- VALUE de = f_aref(m, INT2FIX(3));
- VALUE re = f_post_match(m);
+ VALUE si = rb_reg_nth_match(1, m);
+ VALUE nu = rb_reg_nth_match(2, m);
+ VALUE de = rb_reg_nth_match(3, m);
+ VALUE re = rb_reg_match_post(m);
{
VALUE a;
- a = f_split(nu, an_e_pat);
- ifp = RARRAY_PTR(a)[0];
- if (RARRAY_LEN(a) != 2)
+ if (!strpbrk(RSTRING_PTR(nu), "eE")) {
+ ifp = nu; /* not a copy */
exp = Qnil;
- else
- exp = RARRAY_PTR(a)[1];
+ }
+ else {
+ a = f_split(nu, an_e_pat);
+ ifp = RARRAY_PTR(a)[0];
+ if (RARRAY_LEN(a) != 2)
+ exp = Qnil;
+ else
+ exp = RARRAY_PTR(a)[1];
+ }
- a = f_split(ifp, a_dot_pat);
- ip = RARRAY_PTR(a)[0];
- if (RARRAY_LEN(a) != 2)
+ if (!strchr(RSTRING_PTR(ifp), '.')) {
+ ip = ifp; /* not a copy */
fp = Qnil;
- else
- fp = RARRAY_PTR(a)[1];
+ }
+ else {
+ a = f_split(ifp, a_dot_pat);
+ ip = RARRAY_PTR(a)[0];
+ if (RARRAY_LEN(a) != 2)
+ fp = Qnil;
+ else
+ fp = RARRAY_PTR(a)[1];
+ }
}
v = rb_rational_new1(f_to_i(ip));
if (!NIL_P(fp)) {
- char *p = StringValuePtr(fp);
+ char *p = RSTRING_PTR(fp);
long count = 0;
VALUE l;
@@ -1416,16 +2089,15 @@ string_to_r_internal(VALUE self)
count++;
p++;
}
-
- l = f_expt(INT2FIX(10), LONG2NUM(count));
+ l = f_expt10(LONG2NUM(count));
v = f_mul(v, l);
v = f_add(v, f_to_i(fp));
v = f_div(v, l);
}
- if (!NIL_P(si) && *StringValuePtr(si) == '-')
+ if (!NIL_P(si) && *RSTRING_PTR(si) == '-')
v = f_negate(v);
if (!NIL_P(exp))
- v = f_mul(v, f_expt(INT2FIX(10), f_to_i(exp)));
+ v = f_mul(v, f_expt10(f_to_i(exp)));
#if 0
if (!NIL_P(de) && (!NIL_P(fp) || !NIL_P(exp)))
return rb_assoc_new(v, rb_usascii_str_new2("dummy"));
@@ -1451,12 +2123,35 @@ string_to_r_strict(VALUE self)
}
#define id_gsub rb_intern("gsub")
-#define f_gsub(x,y,z) rb_funcall(x, id_gsub, 2, y, z)
+#define f_gsub(x,y,z) rb_funcall((x), id_gsub, 2, (y), (z))
+/*
+ * call-seq:
+ * str.to_r -> rational
+ *
+ * Returns a rational which denotes the string form. The parser
+ * ignores leading whitespaces and trailing garbage. Any digit
+ * sequences can be separated by an underscore. Returns zero for null
+ * or garbage string.
+ *
+ * NOTE: '0.3'.to_r isn't the same as 0.3.to_r. The former is
+ * equivalent to '3/10'.to_r, but the latter isn't so.
+ *
+ * For example:
+ *
+ * ' 2 '.to_r #=> (2/1)
+ * '300/2'.to_r #=> (150/1)
+ * '-9.2'.to_r #=> (-46/5)
+ * '-9.2e2'.to_r #=> (-920/1)
+ * '1_234_567'.to_r #=> (1234567/1)
+ * '21 june 09'.to_r #=> (21/1)
+ * '21/06/09'.to_r #=> (7/2)
+ * 'bwv 1079'.to_r #=> (0/1)
+ */
static VALUE
string_to_r(VALUE self)
{
- VALUE s, a, backref;
+ VALUE s, a, a1, backref;
backref = rb_backref_get();
rb_match_busy(backref);
@@ -1466,13 +2161,17 @@ string_to_r(VALUE self)
rb_backref_set(backref);
- if (!NIL_P(RARRAY_PTR(a)[0]))
- return RARRAY_PTR(a)[0];
+ a1 = RARRAY_PTR(a)[0];
+ if (!NIL_P(a1)) {
+ if (TYPE(a1) == T_FLOAT)
+ rb_raise(rb_eFloatDomainError, "Infinity");
+ return a1;
+ }
return rb_rational_new1(INT2FIX(0));
}
#define id_to_r rb_intern("to_r")
-#define f_to_r(x) rb_funcall(x, id_to_r, 0)
+#define f_to_r(x) rb_funcall((x), id_to_r, 0)
static VALUE
nurat_s_convert(int argc, VALUE *argv, VALUE klass)
@@ -1481,15 +2180,18 @@ nurat_s_convert(int argc, VALUE *argv, VALUE klass)
rb_scan_args(argc, argv, "11", &a1, &a2);
+ if (NIL_P(a1) || (argc == 2 && NIL_P(a2)))
+ rb_raise(rb_eTypeError, "can't convert nil into Rational");
+
switch (TYPE(a1)) {
case T_COMPLEX:
- if (k_exact_p(RCOMPLEX(a1)->imag) && f_zero_p(RCOMPLEX(a1)->imag))
+ if (k_exact_zero_p(RCOMPLEX(a1)->imag))
a1 = RCOMPLEX(a1)->real;
}
switch (TYPE(a2)) {
case T_COMPLEX:
- if (k_exact_p(RCOMPLEX(a2)->imag) && f_zero_p(RCOMPLEX(a2)->imag))
+ if (k_exact_zero_p(RCOMPLEX(a2)->imag))
a2 = RCOMPLEX(a2)->real;
}
@@ -1524,13 +2226,13 @@ nurat_s_convert(int argc, VALUE *argv, VALUE klass)
switch (TYPE(a1)) {
case T_RATIONAL:
- if (argc == 1 || (k_exact_p(a2) && f_one_p(a2)))
+ if (argc == 1 || (k_exact_one_p(a2)))
return a1;
}
if (argc == 1) {
- if (k_numeric_p(a1) && !f_integer_p(a1))
- return a1;
+ if (!(k_numeric_p(a1) && k_integer_p(a1)))
+ return rb_convert_type(a1, T_RATIONAL, "Rational", "to_r");
}
else {
if ((k_numeric_p(a1) && k_numeric_p(a2)) &&
@@ -1546,6 +2248,46 @@ nurat_s_convert(int argc, VALUE *argv, VALUE klass)
}
}
+/*
+ * A rational number can be represented as a paired integer number;
+ * a/b (b>0). Where a is numerator and b is denominator. Integer a
+ * equals rational a/1 mathematically.
+ *
+ * In ruby, you can create rational object with Rational, to_r or
+ * rationalize method. The return values will be irreducible.
+ *
+ * Rational(1) #=> (1/1)
+ * Rational(2, 3) #=> (2/3)
+ * Rational(4, -6) #=> (-2/3)
+ * 3.to_r #=> (3/1)
+ *
+ * You can also create rational object from floating-point numbers or
+ * strings.
+ *
+ * Rational(0.3) #=> (5404319552844595/18014398509481984)
+ * Rational('0.3') #=> (3/10)
+ * Rational('2/3') #=> (2/3)
+ *
+ * 0.3.to_r #=> (5404319552844595/18014398509481984)
+ * '0.3'.to_r #=> (3/10)
+ * '2/3'.to_r #=> (2/3)
+ * 0.3.rationalize #=> (3/10)
+ *
+ * A rational object is an exact number, which helps you to write
+ * program without any rounding errors.
+ *
+ * 10.times.inject(0){|t,| t + 0.1} #=> 0.9999999999999999
+ * 10.times.inject(0){|t,| t + Rational('0.1')} #=> (1/1)
+ *
+ * However, when an expression has inexact factor (numerical value or
+ * operation), will produce an inexact result.
+ *
+ * Rational(10) / 3 #=> (10/3)
+ * Rational(10) / 3.0 #=> 3.3333333333333335
+ *
+ * Rational(-8) ** Rational(1, 3)
+ * #=> (1.0000000000000002+1.7320508075688772i)
+ */
void
Init_Rational(void)
{
@@ -1557,8 +2299,9 @@ Init_Rational(void)
id_abs = rb_intern("abs");
id_cmp = rb_intern("<=>");
id_convert = rb_intern("convert");
- id_equal_p = rb_intern("==");
+ id_eqeq_p = rb_intern("==");
id_expt = rb_intern("**");
+ id_fdiv = rb_intern("fdiv");
id_floor = rb_intern("floor");
id_idiv = rb_intern("div");
id_inspect = rb_intern("inspect");
@@ -1569,9 +2312,7 @@ Init_Rational(void)
id_to_s = rb_intern("to_s");
id_truncate = rb_intern("truncate");
- ml = (long)(log(DBL_MAX) / log(2.0) - 1);
-
- rb_cRational = rb_define_class(RATIONAL_NAME, rb_cNumeric);
+ rb_cRational = rb_define_class("Rational", rb_cNumeric);
rb_define_alloc_func(rb_cRational, nurat_s_alloc);
rb_undef_method(CLASS_OF(rb_cRational), "allocate");
@@ -1583,7 +2324,7 @@ Init_Rational(void)
rb_undef_method(CLASS_OF(rb_cRational), "new");
#endif
- rb_define_global_function(RATIONAL_NAME, nurat_f_rational, -1);
+ rb_define_global_function("Rational", nurat_f_rational, -1);
rb_define_method(rb_cRational, "numerator", nurat_numerator, 0);
rb_define_method(rb_cRational, "denominator", nurat_denominator, 0);
@@ -1597,29 +2338,18 @@ Init_Rational(void)
rb_define_method(rb_cRational, "**", nurat_expt, 1);
rb_define_method(rb_cRational, "<=>", nurat_cmp, 1);
- rb_define_method(rb_cRational, "==", nurat_equal_p, 1);
+ rb_define_method(rb_cRational, "==", nurat_eqeq_p, 1);
rb_define_method(rb_cRational, "coerce", nurat_coerce, 1);
- rb_define_method(rb_cRational, "div", nurat_idiv, 1);
-
#if 0 /* NUBY */
rb_define_method(rb_cRational, "//", nurat_idiv, 1);
#endif
- rb_define_method(rb_cRational, "modulo", nurat_mod, 1);
- rb_define_method(rb_cRational, "%", nurat_mod, 1);
- rb_define_method(rb_cRational, "divmod", nurat_divmod, 1);
-
#if 0
rb_define_method(rb_cRational, "quot", nurat_quot, 1);
-#endif
- rb_define_method(rb_cRational, "remainder", nurat_rem, 1);
-#if 0
rb_define_method(rb_cRational, "quotrem", nurat_quotrem, 1);
#endif
- rb_define_method(rb_cRational, "abs", nurat_abs, 0);
-
#if 0
rb_define_method(rb_cRational, "rational?", nurat_true, 0);
rb_define_method(rb_cRational, "exact?", nurat_true, 0);
@@ -1633,6 +2363,7 @@ Init_Rational(void)
rb_define_method(rb_cRational, "to_i", nurat_truncate, 0);
rb_define_method(rb_cRational, "to_f", nurat_to_f, 0);
rb_define_method(rb_cRational, "to_r", nurat_to_r, 0);
+ rb_define_method(rb_cRational, "rationalize", nurat_rationalize, -1);
rb_define_method(rb_cRational, "hash", nurat_hash, 0);
@@ -1648,9 +2379,21 @@ Init_Rational(void)
rb_define_method(rb_cInteger, "lcm", rb_lcm, 1);
rb_define_method(rb_cInteger, "gcdlcm", rb_gcdlcm, 1);
+ rb_define_method(rb_cNumeric, "numerator", numeric_numerator, 0);
+ rb_define_method(rb_cNumeric, "denominator", numeric_denominator, 0);
+
+ rb_define_method(rb_cInteger, "numerator", integer_numerator, 0);
+ rb_define_method(rb_cInteger, "denominator", integer_denominator, 0);
+
+ rb_define_method(rb_cFloat, "numerator", float_numerator, 0);
+ rb_define_method(rb_cFloat, "denominator", float_denominator, 0);
+
rb_define_method(rb_cNilClass, "to_r", nilclass_to_r, 0);
+ rb_define_method(rb_cNilClass, "rationalize", nilclass_rationalize, -1);
rb_define_method(rb_cInteger, "to_r", integer_to_r, 0);
+ rb_define_method(rb_cInteger, "rationalize", integer_rationalize, -1);
rb_define_method(rb_cFloat, "to_r", float_to_r, 0);
+ rb_define_method(rb_cFloat, "rationalize", float_rationalize, -1);
make_patterns();
diff --git a/re.c b/re.c
index b05d78bb39..9fdbf547aa 100644
--- a/re.c
+++ b/re.c
@@ -13,6 +13,7 @@
#include "ruby/re.h"
#include "ruby/encoding.h"
#include "ruby/util.h"
+#include "internal.h"
#include "regint.h"
#include <ctype.h>
@@ -21,8 +22,8 @@ VALUE rb_eRegexpError;
typedef char onig_errmsg_buffer[ONIG_MAX_ERROR_MESSAGE_LEN];
#define errcpy(err, msg) strlcpy((err), (msg), ONIG_MAX_ERROR_MESSAGE_LEN)
-#define BEG(no) regs->beg[no]
-#define END(no) regs->end[no]
+#define BEG(no) (regs->beg[(no)])
+#define END(no) (regs->end[(no)])
#if 'a' == 97 /* it's ascii */
static const char casetable[] = {
@@ -113,7 +114,7 @@ rb_memsearch_ss(const unsigned char *xs, long m, const unsigned char *ys, long n
if (m > SIZEOF_VALUE)
rb_bug("!!too long pattern string!!");
- /* Prepare hash value */
+ /* Prepare hash value */
for (hx = *x++, hy = *y++; x < xe; ++x, ++y) {
hx <<= CHAR_BIT;
hy <<= CHAR_BIT;
@@ -287,7 +288,7 @@ rb_char_to_option_kcode(int c, int *option, int *kcode)
switch (c) {
case 'n':
- *kcode = -1;
+ *kcode = rb_ascii8bit_encindex();
return (*option = ARG_ENCODING_NONE);
case 'e':
*kcode = rb_enc_find_index("EUC-JP");
@@ -296,7 +297,7 @@ rb_char_to_option_kcode(int c, int *option, int *kcode)
*kcode = rb_enc_find_index("Windows-31J");
break;
case 'u':
- *kcode = rb_enc_find_index("UTF-8");
+ *kcode = rb_utf8_encindex();
break;
default:
*kcode = -1;
@@ -315,31 +316,47 @@ rb_reg_check(VALUE re)
}
static void
-rb_reg_expr_str(VALUE str, const char *s, long len)
+rb_reg_expr_str(VALUE str, const char *s, long len,
+ rb_encoding *enc, rb_encoding *resenc)
{
- rb_encoding *enc = rb_enc_get(str);
const char *p, *pend;
+ int cr = ENC_CODERANGE_UNKNOWN;
int need_escape = 0;
int c, clen;
p = s; pend = p + len;
- while (p<pend) {
- c = rb_enc_ascget(p, pend, &clen, enc);
- if (c == -1) {
- p += mbclen(p, pend, enc);
- }
- else if (c != '/' && rb_enc_isprint(c, enc)) {
- p += clen;
- }
- else {
- need_escape = 1;
- break;
- }
+ rb_str_coderange_scan_restartable(p, pend, enc, &cr);
+ if (rb_enc_asciicompat(enc) &&
+ (cr == ENC_CODERANGE_VALID || cr == ENC_CODERANGE_7BIT)) {
+ while (p < pend) {
+ c = rb_enc_ascget(p, pend, &clen, enc);
+ if (c == -1) {
+ if (enc == resenc) {
+ p += mbclen(p, pend, enc);
+ }
+ else {
+ need_escape = 1;
+ break;
+ }
+ }
+ else if (c != '/' && rb_enc_isprint(c, enc)) {
+ p += clen;
+ }
+ else {
+ need_escape = 1;
+ break;
+ }
+ }
}
+ else {
+ need_escape = 1;
+ }
+
if (!need_escape) {
rb_str_buf_cat(str, s, len);
}
else {
+ int unicode_p = rb_enc_unicode_p(enc);
p = s;
while (p<pend) {
c = rb_enc_ascget(p, pend, &clen, enc);
@@ -355,10 +372,20 @@ rb_reg_expr_str(VALUE str, const char *s, long len)
rb_str_buf_cat(str, p, clen);
}
else if (c == -1) {
- int l = mbclen(p, pend, enc);
- rb_str_buf_cat(str, p, l);
- p += l;
- continue;
+ clen = rb_enc_precise_mbclen(p, pend, enc);
+ if (!MBCLEN_CHARFOUND_P(clen)) {
+ c = (unsigned char)*p;
+ clen = 1;
+ goto hex;
+ }
+ if (resenc) {
+ unsigned int c = rb_enc_mbc_to_codepoint(p, pend, enc);
+ rb_str_buf_cat_escaped_char(str, c, unicode_p);
+ }
+ else {
+ clen = MBCLEN_CHARFOUND_LEN(clen);
+ rb_str_buf_cat(str, p, clen);
+ }
}
else if (rb_enc_isprint(c, enc)) {
rb_str_buf_cat(str, p, clen);
@@ -366,6 +393,7 @@ rb_reg_expr_str(VALUE str, const char *s, long len)
else if (!rb_enc_isspace(c, enc)) {
char b[8];
+ hex:
snprintf(b, sizeof(b), "\\x%02X", c);
rb_str_buf_cat(str, b, 4);
}
@@ -380,20 +408,26 @@ rb_reg_expr_str(VALUE str, const char *s, long len)
static VALUE
rb_reg_desc(const char *s, long len, VALUE re)
{
+ rb_encoding *enc = rb_enc_get(re);
VALUE str = rb_str_buf_new2("/");
- if (re && rb_enc_asciicompat(rb_enc_get(re))) {
+ rb_encoding *resenc = rb_default_internal_encoding();
+ if (resenc == NULL) resenc = rb_default_external_encoding();
+
+ if (re && rb_enc_asciicompat(enc)) {
rb_enc_copy(str, re);
}
else {
rb_enc_associate(str, rb_usascii_encoding());
}
- rb_reg_expr_str(str, s, len);
+ rb_reg_expr_str(str, s, len, enc, resenc);
rb_str_buf_cat2(str, "/");
if (re) {
char opts[4];
rb_reg_check(re);
if (*option_to_str(opts, RREGEXP(re)->ptr->options))
rb_str_buf_cat2(str, opts);
+ if (RBASIC(re)->flags & REG_ENCODING_NONE)
+ rb_str_buf_cat2(str, "n");
}
OBJ_INFECT(str, re);
return str;
@@ -402,7 +436,7 @@ rb_reg_desc(const char *s, long len, VALUE re)
/*
* call-seq:
- * rxp.source => str
+ * rxp.source -> str
*
* Returns the original string of the pattern.
*
@@ -427,7 +461,7 @@ rb_reg_source(VALUE re)
/*
* call-seq:
- * rxp.inspect => string
+ * rxp.inspect -> string
*
* Produce a nicely formatted string-version of _rxp_. Perhaps surprisingly,
* <code>#inspect</code> actually produces the more natural version of
@@ -449,7 +483,7 @@ rb_reg_inspect(VALUE re)
/*
* call-seq:
- * rxp.to_s => str
+ * rxp.to_s -> str
*
* Returns a string containing the regular expression and its options (using the
* <code>(?opts:source)</code> notation. This string can be fed back in to
@@ -476,6 +510,7 @@ rb_reg_to_s(VALUE re)
const UChar* ptr;
VALUE str = rb_str_buf_new2("(?");
char optbuf[5];
+ rb_encoding *enc = rb_enc_get(re);
rb_reg_check(re);
@@ -519,17 +554,12 @@ rb_reg_to_s(VALUE re)
goto again;
}
if (*ptr == ':' && ptr[len-1] == ')') {
- int r;
Regexp *rp;
- r = onig_alloc_init(&rp, ONIG_OPTION_DEFAULT,
- ONIGENC_CASE_FOLD_DEFAULT,
- rb_enc_get(re),
- OnigDefaultSyntax);
- if (r == 0) {
- ++ptr;
- len -= 2;
- err = (onig_compile(rp, ptr, ptr + len, NULL) != 0);
- }
+
+ ++ptr;
+ len -= 2;
+ err = onig_new(&rp, ptr, ptr + len, ONIG_OPTION_DEFAULT,
+ enc, OnigDefaultSyntax, NULL);
onig_free(rp);
}
if (err) {
@@ -548,7 +578,7 @@ rb_reg_to_s(VALUE re)
}
rb_str_buf_cat2(str, ":");
- rb_reg_expr_str(str, (char*)ptr, len);
+ rb_reg_expr_str(str, (char*)ptr, len, enc, NULL);
rb_str_buf_cat2(str, ")");
rb_enc_copy(str, re);
@@ -559,7 +589,7 @@ rb_reg_to_s(VALUE re)
static void
rb_reg_raise(const char *s, long len, const char *err, VALUE re)
{
- VALUE desc = rb_reg_desc(s, len, re);
+ volatile VALUE desc = rb_reg_desc(s, len, re);
rb_raise(rb_eRegexpError, "%s: %s", err, RSTRING_PTR(desc));
}
@@ -569,10 +599,12 @@ rb_enc_reg_error_desc(const char *s, long len, rb_encoding *enc, int options, co
{
char opts[6];
VALUE desc = rb_str_buf_new2(err);
+ rb_encoding *resenc = rb_default_internal_encoding();
+ if (resenc == NULL) resenc = rb_default_external_encoding();
rb_enc_associate(desc, enc);
rb_str_buf_cat2(desc, ": /");
- rb_reg_expr_str(desc, s, len);
+ rb_reg_expr_str(desc, s, len, enc, resenc);
opts[0] = '/';
option_to_str(opts + 1, options);
rb_str_buf_cat2(desc, opts);
@@ -601,7 +633,7 @@ rb_reg_raise_str(VALUE str, int options, const char *err)
/*
* call-seq:
- * rxp.casefold? => true or false
+ * rxp.casefold? -> true or false
*
* Returns the value of the case-insensitive flag.
*
@@ -621,7 +653,7 @@ rb_reg_casefold_p(VALUE re)
/*
* call-seq:
- * rxp.options => fixnum
+ * rxp.options -> fixnum
*
* Returns the set of bits corresponding to the options used when creating this
* Regexp (see <code>Regexp::new</code> for details. Note that additional bits
@@ -660,7 +692,7 @@ reg_names_iter(const OnigUChar *name, const OnigUChar *name_end,
/*
* call-seq:
- * rxp.names => [name1, name2, ...]
+ * rxp.names -> [name1, name2, ...]
*
* Returns a list of names of captures as an array of strings.
*
@@ -701,7 +733,7 @@ reg_named_captures_iter(const OnigUChar *name, const OnigUChar *name_end,
/*
* call-seq:
- * rxp.named_captures => hash
+ * rxp.named_captures -> hash
*
* Returns a hash representing information about named captures of <i>rxp</i>.
*
@@ -730,8 +762,31 @@ rb_reg_named_captures(VALUE re)
return hash;
}
+static int
+onig_new_with_source(regex_t** reg, const UChar* pattern, const UChar* pattern_end,
+ OnigOptionType option, OnigEncoding enc, const OnigSyntaxType* syntax,
+ OnigErrorInfo* einfo, const char *sourcefile, int sourceline)
+{
+ int r;
+
+ *reg = (regex_t* )xmalloc(sizeof(regex_t));
+ if (IS_NULL(*reg)) return ONIGERR_MEMORY;
+
+ r = onig_reg_init(*reg, option, ONIGENC_CASE_FOLD_DEFAULT, enc, syntax);
+ if (r) goto err;
+
+ r = onig_compile(*reg, pattern, pattern_end, einfo, sourcefile, sourceline);
+ if (r) {
+ err:
+ onig_free(*reg);
+ *reg = NULL;
+ }
+ return r;
+}
+
static Regexp*
-make_regexp(const char *s, long len, rb_encoding *enc, int flags, onig_errmsg_buffer err)
+make_regexp(const char *s, long len, rb_encoding *enc, int flags, onig_errmsg_buffer err,
+ const char *sourcefile, int sourceline)
{
Regexp *rp;
int r;
@@ -744,18 +799,10 @@ make_regexp(const char *s, long len, rb_encoding *enc, int flags, onig_errmsg_bu
from that.
*/
- r = onig_alloc_init(&rp, flags, ONIGENC_CASE_FOLD_DEFAULT,
- enc, OnigDefaultSyntax);
+ r = onig_new_with_source(&rp, (UChar*)s, (UChar*)(s + len), flags,
+ enc, OnigDefaultSyntax, &einfo, sourcefile, sourceline);
if (r) {
- onig_error_code_to_str((UChar*)err, r);
- return 0;
- }
-
- r = onig_compile(rp, (UChar*)s, (UChar*)(s + len), &einfo);
-
- if (r != 0) {
- onig_free(rp);
- (void )onig_error_code_to_str((UChar*)err, r, &einfo);
+ onig_error_code_to_str((UChar*)err, r, &einfo);
return 0;
}
return rp;
@@ -792,14 +839,19 @@ match_alloc(VALUE klass)
}
typedef struct {
- int byte_pos;
- int char_pos;
+ long byte_pos;
+ long char_pos;
} pair_t;
static int
pair_byte_cmp(const void *pair1, const void *pair2)
{
- return ((pair_t*)pair1)->byte_pos - ((pair_t*)pair2)->byte_pos;
+ long diff = ((pair_t*)pair1)->byte_pos - ((pair_t*)pair2)->byte_pos;
+#if SIZEOF_LONG > SIZEOF_INT
+ return diff ? diff > 0 ? 1 : -1 : 0;
+#else
+ return (int)diff;
+#endif
}
static void
@@ -807,9 +859,9 @@ update_char_offset(VALUE match)
{
struct rmatch *rm = RMATCH(match)->rmatch;
struct re_registers *regs;
- int num_regs;
- int i, num_pos, c;
- char *s, *p, *q, *e;
+ int i, num_regs, num_pos;
+ long c;
+ char *s, *p, *q;
rb_encoding *enc;
pair_t *pairs;
@@ -845,7 +897,6 @@ update_char_offset(VALUE match)
qsort(pairs, num_pos, sizeof(pair_t), pair_byte_cmp);
s = p = RSTRING_PTR(RMATCH(match)->str);
- e = s + RSTRING_LEN(RMATCH(match)->str);
c = 0;
for (i = 0; i < num_pos; i++) {
q = s + pairs[i].byte_pos;
@@ -918,7 +969,7 @@ match_init_copy(VALUE obj, VALUE orig)
/*
* call-seq:
- * mtch.regexp => regexp
+ * mtch.regexp -> regexp
*
* Returns the regexp.
*
@@ -935,7 +986,7 @@ match_regexp(VALUE match)
/*
* call-seq:
- * mtch.names => [name1, name2, ...]
+ * mtch.names -> [name1, name2, ...]
*
* Returns a list of names of captures as an array of strings.
* It is same as mtch.regexp.names.
@@ -956,8 +1007,8 @@ match_names(VALUE match)
/*
* call-seq:
- * mtch.length => integer
- * mtch.size => integer
+ * mtch.length -> integer
+ * mtch.size -> integer
*
* Returns the number of elements in the match array.
*
@@ -1016,7 +1067,7 @@ rb_reg_backref_number(VALUE match, VALUE backref)
/*
* call-seq:
- * mtch.offset(n) => array
+ * mtch.offset(n) -> array
*
* Returns a two-element array containing the beginning and ending offsets of
* the <em>n</em>th match.
@@ -1053,7 +1104,7 @@ match_offset(VALUE match, VALUE n)
/*
* call-seq:
- * mtch.begin(n) => integer
+ * mtch.begin(n) -> integer
*
* Returns the offset of the start of the <em>n</em>th element of the match
* array in the string.
@@ -1088,7 +1139,7 @@ match_begin(VALUE match, VALUE n)
/*
* call-seq:
- * mtch.end(n) => integer
+ * mtch.end(n) -> integer
*
* Returns the offset of the character immediately following the end of the
* <em>n</em>th element of the match array in the string.
@@ -1130,7 +1181,7 @@ rb_match_busy(VALUE match)
/*
* call-seq:
- * rxp.fixed_encoding? => true or false
+ * rxp.fixed_encoding? -> true or false
*
* Returns false if rxp is applicable to
* a string with any ASCII compatible encoding.
@@ -1176,7 +1227,7 @@ reg_enc_error(VALUE re, VALUE str)
{
rb_raise(rb_eEncCompatError,
"incompatible encoding regexp match (%s regexp with %s string)",
- rb_enc_name(RREGEXP(re)->ptr->enc),
+ rb_enc_name(rb_enc_get(re)),
rb_enc_name(rb_enc_get(str)));
}
@@ -1254,10 +1305,10 @@ rb_reg_prepare_re(VALUE re, VALUE str)
return reg;
}
-int
-rb_reg_adjust_startpos(VALUE re, VALUE str, int pos, int reverse)
+long
+rb_reg_adjust_startpos(VALUE re, VALUE str, long pos, int reverse)
{
- int range;
+ long range;
rb_encoding *enc;
UChar *p, *string;
@@ -1285,10 +1336,10 @@ rb_reg_adjust_startpos(VALUE re, VALUE str, int pos, int reverse)
return pos;
}
-int
-rb_reg_search(VALUE re, VALUE str, int pos, int reverse)
+long
+rb_reg_search(VALUE re, VALUE str, long pos, int reverse)
{
- int result;
+ long result;
VALUE match;
struct re_registers regi, *regs = &regi;
char *range = RSTRING_PTR(str);
@@ -1344,8 +1395,8 @@ rb_reg_search(VALUE re, VALUE str, int pos, int reverse)
}
else {
onig_errmsg_buffer err = "";
- onig_error_code_to_str((UChar*)err, result);
- rb_reg_raise(RREGEXP_SRC_PTR(re), RREGEXP_SRC_LEN(re), err, 0);
+ onig_error_code_to_str((UChar*)err, (int)result);
+ rb_reg_raise(RREGEXP_SRC_PTR(re), RREGEXP_SRC_LEN(re), err, re);
}
}
@@ -1425,7 +1476,7 @@ rb_reg_last_match(VALUE match)
/*
* call-seq:
- * mtch.pre_match => str
+ * mtch.pre_match -> str
*
* Returns the portion of the original string before the current match.
* Equivalent to the special variable <code>$`</code>.
@@ -1452,7 +1503,7 @@ rb_reg_match_pre(VALUE match)
/*
* call-seq:
- * mtch.post_match => str
+ * mtch.post_match -> str
*
* Returns the portion of the original string after the current match.
* Equivalent to the special variable <code>$'</code>.
@@ -1554,7 +1605,7 @@ match_array(VALUE match, int start)
/*
* call-seq:
- * mtch.to_a => anArray
+ * mtch.to_a -> anArray
*
* Returns the array of matches.
*
@@ -1583,7 +1634,7 @@ match_to_a(VALUE match)
/*
* call-seq:
- * mtch.captures => array
+ * mtch.captures -> array
*
* Returns the array of captures; equivalent to <code>mtch.to_a[1..-1]</code>.
*
@@ -1618,10 +1669,10 @@ name_to_backref_number(struct re_registers *regs, VALUE regexp, const char* name
/*
* call-seq:
- * mtch[i] => str or nil
- * mtch[start, length] => array
- * mtch[range] => array
- * mtch[name] => str or nil
+ * mtch[i] -> str or nil
+ * mtch[start, length] -> array
+ * mtch[range] -> array
+ * mtch[name] -> str or nil
*
* Match Reference---<code>MatchData</code> acts as an array, and may be
* accessed using the normal array indexing techniques. <i>mtch</i>[0] is
@@ -1651,33 +1702,33 @@ match_aref(int argc, VALUE *argv, VALUE match)
rb_scan_args(argc, argv, "11", &idx, &rest);
if (NIL_P(rest)) {
- if (FIXNUM_P(idx)) {
- if (FIX2INT(idx) >= 0) {
- return rb_reg_nth_match(FIX2INT(idx), match);
- }
- }
- else {
- const char *p;
- int num;
-
- switch (TYPE(idx)) {
- case T_SYMBOL:
- p = rb_id2name(SYM2ID(idx));
- goto name_to_backref;
- break;
- case T_STRING:
- p = StringValuePtr(idx);
-
- name_to_backref:
- num = name_to_backref_number(RMATCH_REGS(match),
- RMATCH(match)->regexp, p, p + strlen(p));
- return rb_reg_nth_match(num, match);
- break;
-
- default:
- break;
- }
- }
+ if (FIXNUM_P(idx)) {
+ if (FIX2INT(idx) >= 0) {
+ return rb_reg_nth_match(FIX2INT(idx), match);
+ }
+ }
+ else {
+ const char *p;
+ int num;
+
+ switch (TYPE(idx)) {
+ case T_SYMBOL:
+ p = rb_id2name(SYM2ID(idx));
+ goto name_to_backref;
+ break;
+ case T_STRING:
+ p = StringValuePtr(idx);
+
+ name_to_backref:
+ num = name_to_backref_number(RMATCH_REGS(match),
+ RMATCH(match)->regexp, p, p + strlen(p));
+ return rb_reg_nth_match(num, match);
+ break;
+
+ default:
+ break;
+ }
+ }
}
return rb_ary_aref(argc, argv, match_to_a(match));
@@ -1686,14 +1737,15 @@ match_aref(int argc, VALUE *argv, VALUE match)
static VALUE
match_entry(VALUE match, long n)
{
- return rb_reg_nth_match(n, match);
+ /* n should not exceed num_regs */
+ return rb_reg_nth_match((int)n, match);
}
/*
* call-seq:
*
- * mtch.values_at([index]*) => array
+ * mtch.values_at([index]*) -> array
*
* Uses each <i>index</i> to access the matching values, returning an array of
* the corresponding matches.
@@ -1716,7 +1768,7 @@ match_values_at(int argc, VALUE *argv, VALUE match)
/*
* call-seq:
- * mtch.to_s => str
+ * mtch.to_s -> str
*
* Returns the entire matched string.
*
@@ -1739,7 +1791,7 @@ match_to_s(VALUE match)
/*
* call-seq:
- * mtch.string => str
+ * mtch.string -> str
*
* Returns a frozen copy of the string passed in to <code>match</code>.
*
@@ -1775,7 +1827,7 @@ match_inspect_name_iter(const OnigUChar *name, const OnigUChar *name_end,
/*
* call-seq:
- * mtch.inspect => str
+ * mtch.inspect -> str
*
* Returns a printable version of <i>mtch</i>.
*
@@ -1848,9 +1900,7 @@ read_escaped_byte(const char **pp, const char *end, onig_errmsg_buffer err)
int code;
int meta_prefix = 0, ctrl_prefix = 0;
size_t len;
- int retbyte;
- retbyte = -1;
if (p == end || *p++ != '\\') {
errcpy(err, "too short escaped multibyte character");
return -1;
@@ -1875,12 +1925,12 @@ again:
case '0': case '1': case '2': case '3':
case '4': case '5': case '6': case '7':
p--;
- code = ruby_scan_oct(p, end < p+3 ? end-p : 3, &len);
+ code = scan_oct(p, end < p+3 ? end-p : 3, &len);
p += len;
break;
case 'x': /* \xHH */
- code = ruby_scan_hex(p, end < p+2 ? end-p : 2, &len);
+ code = scan_hex(p, end < p+2 ? end-p : 2, &len);
if (len < 1) {
errcpy(err, "invalid hex escape");
return -1;
@@ -2181,6 +2231,7 @@ unescape_nonascii(const char *p, const char *end, rb_encoding *enc,
}
case 'p': /* \p{Hiragana} */
+ case 'P':
if (!*encp) {
*has_property = 1;
}
@@ -2258,13 +2309,14 @@ rb_reg_check_preprocess(VALUE str)
}
static VALUE
-rb_reg_preprocess_dregexp(VALUE ary)
+rb_reg_preprocess_dregexp(VALUE ary, int options)
{
rb_encoding *fixed_enc = 0;
rb_encoding *regexp_enc = 0;
onig_errmsg_buffer err = "";
int i;
VALUE result = 0;
+ rb_encoding *ascii8bit = rb_ascii8bit_encoding();
if (RARRAY_LEN(ary) == 0) {
rb_raise(rb_eArgError, "no arguments given");
@@ -2276,10 +2328,18 @@ rb_reg_preprocess_dregexp(VALUE ary)
char *p, *end;
rb_encoding *src_enc;
+ src_enc = rb_enc_get(str);
+ if (options & ARG_ENCODING_NONE &&
+ src_enc != ascii8bit) {
+ if (rb_enc_str_coderange(str) != ENC_CODERANGE_7BIT)
+ rb_raise(rb_eRegexpError, "/.../n has a non escaped non ASCII character in non ASCII-8BIT script");
+ else
+ src_enc = ascii8bit;
+ }
+
StringValue(str);
p = RSTRING_PTR(str);
end = p + RSTRING_LEN(str);
- src_enc = rb_enc_get(str);
buf = rb_reg_preprocess(p, end, src_enc, &fixed_enc, err);
@@ -2288,7 +2348,7 @@ rb_reg_preprocess_dregexp(VALUE ary)
if (fixed_enc != 0) {
if (regexp_enc != 0 && regexp_enc != fixed_enc) {
- rb_raise(rb_eArgError, "encoding mismatch in dynamic regexp : %s and %s",
+ rb_raise(rb_eRegexpError, "encoding mismatch in dynamic regexp : %s and %s",
rb_enc_name(regexp_enc), rb_enc_name(fixed_enc));
}
regexp_enc = fixed_enc;
@@ -2307,8 +2367,9 @@ rb_reg_preprocess_dregexp(VALUE ary)
}
static int
-rb_reg_initialize(VALUE obj, const char *s, int len, rb_encoding *enc,
- int options, onig_errmsg_buffer err)
+rb_reg_initialize(VALUE obj, const char *s, long len, rb_encoding *enc,
+ int options, onig_errmsg_buffer err,
+ const char *sourcefile, int sourceline)
{
struct RRegexp *re = RREGEXP(obj);
VALUE unescaped;
@@ -2357,7 +2418,8 @@ rb_reg_initialize(VALUE obj, const char *s, int len, rb_encoding *enc,
}
re->ptr = make_regexp(RSTRING_PTR(unescaped), RSTRING_LEN(unescaped), enc,
- options & ARG_REG_OPTION_MASK, err);
+ options & ARG_REG_OPTION_MASK, err,
+ sourcefile, sourceline);
if (!re->ptr) return -1;
re->src = rb_enc_str_new(s, len, enc);
OBJ_FREEZE(re->src);
@@ -2366,7 +2428,8 @@ rb_reg_initialize(VALUE obj, const char *s, int len, rb_encoding *enc,
}
static int
-rb_reg_initialize_str(VALUE obj, VALUE str, int options, onig_errmsg_buffer err)
+rb_reg_initialize_str(VALUE obj, VALUE str, int options, onig_errmsg_buffer err,
+ const char *sourcefile, int sourceline)
{
int ret;
rb_encoding *enc = rb_enc_get(str);
@@ -2381,7 +2444,8 @@ rb_reg_initialize_str(VALUE obj, VALUE str, int options, onig_errmsg_buffer err)
}
}
ret = rb_reg_initialize(obj, RSTRING_PTR(str), RSTRING_LEN(str), enc,
- options, err);
+ options, err, sourcefile, sourceline);
+ OBJ_INFECT(obj, str);
RB_GC_GUARD(str);
return ret;
}
@@ -2400,12 +2464,23 @@ rb_reg_s_alloc(VALUE klass)
}
VALUE
+rb_reg_alloc(void)
+{
+ return rb_reg_s_alloc(rb_cRegexp);
+}
+
+VALUE
rb_reg_new_str(VALUE s, int options)
{
- VALUE re = rb_reg_s_alloc(rb_cRegexp);
+ return rb_reg_init_str(rb_reg_alloc(), s, options);
+}
+
+VALUE
+rb_reg_init_str(VALUE re, VALUE s, int options)
+{
onig_errmsg_buffer err = "";
- if (rb_reg_initialize_str(re, s, options, err) != 0) {
+ if (rb_reg_initialize_str(re, s, options, err, NULL, 0) != 0) {
rb_reg_raise_str(s, options, err);
}
@@ -2415,16 +2490,16 @@ rb_reg_new_str(VALUE s, int options)
VALUE
rb_reg_new_ary(VALUE ary, int opt)
{
- return rb_reg_new_str(rb_reg_preprocess_dregexp(ary), opt);
+ return rb_reg_new_str(rb_reg_preprocess_dregexp(ary, opt), opt);
}
VALUE
rb_enc_reg_new(const char *s, long len, rb_encoding *enc, int options)
{
- VALUE re = rb_reg_s_alloc(rb_cRegexp);
+ VALUE re = rb_reg_alloc();
onig_errmsg_buffer err = "";
- if (rb_reg_initialize(re, s, len, enc, options, err) != 0) {
+ if (rb_reg_initialize(re, s, len, enc, options, err, NULL, 0) != 0) {
rb_enc_reg_raise(s, len, enc, options, err);
}
@@ -2438,13 +2513,13 @@ rb_reg_new(const char *s, long len, int options)
}
VALUE
-rb_reg_compile(VALUE str, int options)
+rb_reg_compile(VALUE str, int options, const char *sourcefile, int sourceline)
{
- VALUE re = rb_reg_s_alloc(rb_cRegexp);
+ VALUE re = rb_reg_alloc();
onig_errmsg_buffer err = "";
if (!str) str = rb_str_new(0,0);
- if (rb_reg_initialize_str(re, str, options, err) != 0) {
+ if (rb_reg_initialize_str(re, str, options, err, sourcefile, sourceline) != 0) {
rb_set_errinfo(rb_reg_error_desc(str, options, err));
return Qnil;
}
@@ -2466,9 +2541,10 @@ rb_reg_regcomp(VALUE str)
return reg_cache = rb_reg_new_str(save_str, 0);
}
+static st_index_t reg_hash(VALUE re);
/*
* call-seq:
- * rxp.hash => fixnum
+ * rxp.hash -> fixnum
*
* Produce a hash based on the text and options of this regular expression.
*/
@@ -2476,26 +2552,26 @@ rb_reg_regcomp(VALUE str)
static VALUE
rb_reg_hash(VALUE re)
{
- int hashval, len;
- char *p;
+ st_index_t hashval = reg_hash(re);
+ return LONG2FIX(hashval);
+}
+
+static st_index_t
+reg_hash(VALUE re)
+{
+ st_index_t hashval;
rb_reg_check(re);
hashval = RREGEXP(re)->ptr->options;
- len = RREGEXP_SRC_LEN(re);
- p = RREGEXP_SRC_PTR(re);
- while (len--) {
- hashval = hashval * 33 + *p++;
- }
- hashval = hashval + (hashval>>5);
-
- return INT2FIX(hashval);
+ hashval = rb_hash_uint(hashval, rb_memhash(RREGEXP_SRC_PTR(re), RREGEXP_SRC_LEN(re)));
+ return rb_hash_end(hashval);
}
/*
* call-seq:
- * rxp == other_rxp => true or false
- * rxp.eql?(other_rxp) => true or false
+ * rxp == other_rxp -> true or false
+ * rxp.eql?(other_rxp) -> true or false
*
* Equality---Two regexps are equal if their patterns are identical, they have
* the same character set code, and their <code>casefold?</code> values are the
@@ -2523,6 +2599,53 @@ rb_reg_equal(VALUE re1, VALUE re2)
return Qfalse;
}
+/*
+ * call-seq:
+ * mtch.hash -> integer
+ *
+ * Produce a hash based on the target string, regexp and matched
+ * positions of this matchdata.
+ */
+
+static VALUE
+match_hash(VALUE match)
+{
+ const struct re_registers *regs;
+ st_index_t hashval = rb_hash_start(rb_str_hash(RMATCH(match)->str));
+
+ rb_hash_uint(hashval, reg_hash(RMATCH(match)->regexp));
+ regs = RMATCH_REGS(match);
+ hashval = rb_hash_uint(hashval, regs->num_regs);
+ hashval = rb_hash_uint(hashval, rb_memhash(regs->beg, regs->num_regs * sizeof(*regs->beg)));
+ hashval = rb_hash_uint(hashval, rb_memhash(regs->end, regs->num_regs * sizeof(*regs->end)));
+ hashval = rb_hash_end(hashval);
+ return LONG2FIX(hashval);
+}
+
+/*
+ * call-seq:
+ * mtch == mtch2 -> true or false
+ *
+ * Equality---Two matchdata are equal if their target strings,
+ * patterns, and matched positions are identical.
+ */
+
+static VALUE
+match_equal(VALUE match1, VALUE match2)
+{
+ const struct re_registers *regs1, *regs2;
+ if (match1 == match2) return Qtrue;
+ if (TYPE(match2) != T_MATCH) return Qfalse;
+ if (!rb_str_equal(RMATCH(match1)->str, RMATCH(match2)->str)) return Qfalse;
+ if (!rb_reg_equal(RMATCH(match1)->regexp, RMATCH(match2)->regexp)) return Qfalse;
+ regs1 = RMATCH_REGS(match1);
+ regs2 = RMATCH_REGS(match2);
+ if (regs1->num_regs != regs2->num_regs) return Qfalse;
+ if (memcmp(regs1->beg, regs2->beg, regs1->num_regs * sizeof(*regs1->beg))) return Qfalse;
+ if (memcmp(regs1->end, regs2->end, regs1->num_regs * sizeof(*regs1->end))) return Qfalse;
+ return Qtrue;
+}
+
static VALUE
reg_operand(VALUE s, int check)
{
@@ -2548,7 +2671,7 @@ reg_match_pos(VALUE re, VALUE *strp, long pos)
rb_backref_set(Qnil);
return -1;
}
- *strp = str = reg_operand(str, Qtrue);
+ *strp = str = reg_operand(str, TRUE);
if (pos != 0) {
if (pos < 0) {
VALUE l = rb_str_length(str);
@@ -2557,14 +2680,14 @@ reg_match_pos(VALUE re, VALUE *strp, long pos)
return pos;
}
}
- pos = rb_reg_adjust_startpos(re, str, pos, 0);
+ pos = rb_str_offset(str, pos);
}
return rb_reg_search(re, str, pos, 0);
}
/*
* call-seq:
- * rxp =~ str => integer or nil
+ * rxp =~ str -> integer or nil
*
* Match---Matches <i>rxp</i> against <i>str</i>.
*
@@ -2589,7 +2712,7 @@ reg_match_pos(VALUE re, VALUE *strp, long pos)
* The parser detects 'regexp-literal =~ expression' for the assignment.
* The regexp must be a literal without interpolation and placed at left hand side.
*
- * The assignment is not occur if the regexp is not a literal.
+ * The assignment does not occur if the regexp is not a literal.
*
* re = /(?<lhs>\w+)\s*=\s*(?<rhs>\w+)/
* re =~ " x = y "
@@ -2603,7 +2726,7 @@ reg_match_pos(VALUE re, VALUE *strp, long pos)
* /(?<lhs>\w+)\s*=\s*#{rhs_pat}/ =~ "x = y"
* p lhs # undefined local variable
*
- * The assignment is not occur if the regexp is placed at right hand side.
+ * The assignment does not occur if the regexp is placed at the right hand side.
*
* " x = y " =~ /(?<lhs>\w+)\s*=\s*(?<rhs>\w+)/
* p lhs, rhs # undefined local variable
@@ -2621,7 +2744,7 @@ rb_reg_match(VALUE re, VALUE str)
/*
* call-seq:
- * rxp === str => true or false
+ * rxp === str -> true or false
*
* Case Equality---Synonym for <code>Regexp#=~</code> used in case statements.
*
@@ -2642,7 +2765,7 @@ rb_reg_eqq(VALUE re, VALUE str)
{
long start;
- str = reg_operand(str, Qfalse);
+ str = reg_operand(str, FALSE);
if (NIL_P(str)) {
rb_backref_set(Qnil);
return Qfalse;
@@ -2657,7 +2780,7 @@ rb_reg_eqq(VALUE re, VALUE str)
/*
* call-seq:
- * ~ rxp => integer or nil
+ * ~ rxp -> integer or nil
*
* Match---Matches <i>rxp</i> against the contents of <code>$_</code>.
* Equivalent to <code><i>rxp</i> =~ $_</code>.
@@ -2688,8 +2811,8 @@ rb_reg_match2(VALUE re)
/*
* call-seq:
- * rxp.match(str) => matchdata or nil
- * rxp.match(str,pos) => matchdata or nil
+ * rxp.match(str) -> matchdata or nil
+ * rxp.match(str,pos) -> matchdata or nil
*
* Returns a <code>MatchData</code> object describing the match, or
* <code>nil</code> if there was no match. This is equivalent to retrieving the
@@ -2749,10 +2872,10 @@ rb_reg_match_m(int argc, VALUE *argv, VALUE re)
/*
* call-seq:
- * Regexp.new(string [, options]) => regexp
- * Regexp.new(regexp) => regexp
- * Regexp.compile(string [, options]) => regexp
- * Regexp.compile(regexp) => regexp
+ * Regexp.new(string, [options [, lang]]) -> regexp
+ * Regexp.new(regexp) -> regexp
+ * Regexp.compile(string, [options [, lang]]) -> regexp
+ * Regexp.compile(regexp) -> regexp
*
* Constructs a new regular expression from <i>pattern</i>, which can be either
* a <code>String</code> or a <code>Regexp</code> (in which case that regexp's
@@ -2762,6 +2885,7 @@ rb_reg_match_m(int argc, VALUE *argv, VALUE re)
* <code>Regexp::IGNORECASE</code>, and <code>Regexp::MULTILINE</code>,
* <em>or</em>-ed together. Otherwise, if <i>options</i> is not
* <code>nil</code>, the regexp will be case insensitive.
+ * When the <i>lang</i> parameter is `n' or `N' sets the regexp no encoding.
*
* r1 = Regexp.new('^a-z+:\\s+\w+') #=> /^a-z+:\s+\w+/
* r2 = Regexp.new('cat', true) #=> /cat/i
@@ -2780,7 +2904,7 @@ rb_reg_initialize_m(int argc, VALUE *argv, VALUE self)
long len;
if (argc == 0 || argc > 3) {
- rb_raise(rb_eArgError, "wrong number of arguments");
+ rb_raise(rb_eArgError, "wrong number of arguments (%d for 1..3)", argc);
}
if (TYPE(argv[0]) == T_REGEXP) {
VALUE re = argv[0];
@@ -2793,7 +2917,7 @@ rb_reg_initialize_m(int argc, VALUE *argv, VALUE self)
ptr = RREGEXP_SRC_PTR(re);
len = RREGEXP_SRC_LEN(re);
enc = rb_enc_get(re);
- if (rb_reg_initialize(self, ptr, len, enc, flags, err)) {
+ if (rb_reg_initialize(self, ptr, len, enc, flags, err, NULL, 0)) {
str = rb_enc_str_new(ptr, len, enc);
rb_reg_raise_str(str, flags, err);
}
@@ -2806,7 +2930,7 @@ rb_reg_initialize_m(int argc, VALUE *argv, VALUE self)
enc = 0;
if (argc == 3 && !NIL_P(argv[2])) {
char *kcode = StringValuePtr(argv[2]);
- if (kcode[0] == 'n' || kcode[1] == 'N') {
+ if (kcode[0] == 'n' || kcode[0] == 'N') {
enc = rb_ascii8bit_encoding();
flags |= ARG_ENCODING_NONE;
}
@@ -2817,8 +2941,8 @@ rb_reg_initialize_m(int argc, VALUE *argv, VALUE self)
str = argv[0];
ptr = StringValuePtr(str);
if (enc
- ? rb_reg_initialize(self, ptr, RSTRING_LEN(str), enc, flags, err)
- : rb_reg_initialize_str(self, str, flags, err)) {
+ ? rb_reg_initialize(self, ptr, RSTRING_LEN(str), enc, flags, err, NULL, 0)
+ : rb_reg_initialize_str(self, str, flags, err, NULL, 0)) {
rb_reg_raise_str(str, flags, err);
}
}
@@ -2925,8 +3049,8 @@ rb_reg_quote(VALUE str)
/*
* call-seq:
- * Regexp.escape(str) => string
- * Regexp.quote(str) => string
+ * Regexp.escape(str) -> string
+ * Regexp.quote(str) -> string
*
* Escapes any characters that would have special meaning in a regular
* expression. Returns a new escaped string, or self if no characters are
@@ -2940,7 +3064,7 @@ rb_reg_quote(VALUE str)
static VALUE
rb_reg_s_quote(VALUE c, VALUE str)
{
- return rb_reg_quote(reg_operand(str, Qtrue));
+ return rb_reg_quote(reg_operand(str, TRUE));
}
int
@@ -3100,13 +3224,14 @@ rb_reg_s_union(VALUE self, VALUE args0)
/*
* call-seq:
- * Regexp.union(pat1, pat2, ...) => new_regexp
- * Regexp.union(pats_ary) => new_regexp
+ * Regexp.union(pat1, pat2, ...) -> new_regexp
+ * Regexp.union(pats_ary) -> new_regexp
*
* Return a <code>Regexp</code> object that is the union of the given
* <em>pattern</em>s, i.e., will match any of its parts. The <em>pattern</em>s
* can be Regexp objects, in which case their options will be preserved, or
* Strings. If no patterns are given, returns <code>/(?!)/</code>.
+ * The behavior is unspecified if any given <em>pattern</em> contains capture.
*
* Regexp.union #=> /(?!)/
* Regexp.union("penzance") #=> /penzance/
@@ -3143,7 +3268,8 @@ rb_reg_init_copy(VALUE copy, VALUE re)
rb_reg_check(re);
s = RREGEXP_SRC_PTR(re);
len = RREGEXP_SRC_LEN(re);
- if (rb_reg_initialize(copy, s, len, rb_enc_get(re), rb_reg_options(re), err) != 0) {
+ if (rb_reg_initialize(copy, s, len, rb_enc_get(re), rb_reg_options(re),
+ err, NULL, 0) != 0) {
rb_reg_raise(s, len, err, re);
}
return copy;
@@ -3158,7 +3284,7 @@ rb_reg_regsub(VALUE str, VALUE src, struct re_registers *regs, VALUE regexp)
rb_encoding *str_enc = rb_enc_get(str);
rb_encoding *src_enc = rb_enc_get(src);
int acompat = rb_enc_asciicompat(str_enc);
-#define ASCGET(s,e,cl) (acompat ? (*cl=1,ISASCII(s[0])?s[0]:-1) : rb_enc_ascget(s, e, cl, str_enc))
+#define ASCGET(s,e,cl) (acompat ? (*(cl)=1,ISASCII((s)[0])?(s)[0]:-1) : rb_enc_ascget((s), (e), (cl), str_enc))
p = s = RSTRING_PTR(str);
e = s + RSTRING_LEN(str);
@@ -3315,8 +3441,8 @@ match_setter(VALUE val)
/*
* call-seq:
- * Regexp.last_match => matchdata
- * Regexp.last_match(n) => str
+ * Regexp.last_match -> matchdata
+ * Regexp.last_match(n) -> str
*
* The first form returns the <code>MatchData</code> object generated by the
* last successful pattern match. Equivalent to reading the global variable
@@ -3324,6 +3450,9 @@ match_setter(VALUE val)
* <code>MatchData</code> object.
* <em>n</em> can be a string or symbol to reference a named capture.
*
+ * Note that the <code>last_match</code> is local to the thread and method scope
+ * of the method that did the pattern match.
+ *
* /c(.)t/ =~ 'cat' #=> 0
* Regexp.last_match #=> #<MatchData "cat" 1:"a">
* Regexp.last_match(0) #=> "cat"
@@ -3358,6 +3487,18 @@ re_warn(const char *s)
}
/*
+ * Document-class: RegexpError
+ *
+ * Raised when given an invalid regexp expression.
+ *
+ * Regexp.new("?")
+ *
+ * <em>raises the exception:</em>
+ *
+ * RegexpError: target of repeat operator is not specified: /?/
+ */
+
+/*
* Document-class: Regexp
*
* A <code>Regexp</code> holds a regular expression, used to match a pattern
@@ -3365,6 +3506,7 @@ re_warn(const char *s)
* <code>%r{...}</code> literals, and by the <code>Regexp::new</code>
* constructor.
*
+ * :include: doc/re.rdoc
*/
void
@@ -3415,10 +3557,16 @@ Init_Regexp(void)
rb_define_method(rb_cRegexp, "names", rb_reg_names, 0);
rb_define_method(rb_cRegexp, "named_captures", rb_reg_named_captures, 0);
+ /* see Regexp.options and Regexp.new */
rb_define_const(rb_cRegexp, "IGNORECASE", INT2FIX(ONIG_OPTION_IGNORECASE));
+ /* see Regexp.options and Regexp.new */
rb_define_const(rb_cRegexp, "EXTENDED", INT2FIX(ONIG_OPTION_EXTEND));
+ /* see Regexp.options and Regexp.new */
rb_define_const(rb_cRegexp, "MULTILINE", INT2FIX(ONIG_OPTION_MULTILINE));
+ /* see Regexp.options and Regexp.new */
rb_define_const(rb_cRegexp, "FIXEDENCODING", INT2FIX(ARG_ENCODING_FIXED));
+ /* see Regexp.options and Regexp.new */
+ rb_define_const(rb_cRegexp, "NOENCODING", INT2FIX(ARG_ENCODING_NONE));
rb_global_variable(&reg_cache);
@@ -3443,4 +3591,7 @@ Init_Regexp(void)
rb_define_method(rb_cMatch, "to_s", match_to_s, 0);
rb_define_method(rb_cMatch, "inspect", match_inspect, 0);
rb_define_method(rb_cMatch, "string", match_string, 0);
+ rb_define_method(rb_cMatch, "hash", match_hash, 0);
+ rb_define_method(rb_cMatch, "eql?", match_equal, 1);
+ rb_define_method(rb_cMatch, "==", match_equal, 1);
}
diff --git a/regcomp.c b/regcomp.c
index f24c0c46e3..7c29fb5203 100644
--- a/regcomp.c
+++ b/regcomp.c
@@ -2,7 +2,7 @@
regcomp.c - Oniguruma (regular expression library)
**********************************************************************/
/*-
- * Copyright (c) 2002-2007 K.Kosako <sndgk393 AT ybb DOT ne DOT jp>
+ * Copyright (c) 2002-2008 K.Kosako <sndgk393 AT ybb DOT ne DOT jp>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -44,7 +44,6 @@ onig_set_default_case_fold_flag(OnigCaseFoldType case_fold_flag)
return 0;
}
-
#ifndef PLATFORM_UNALIGNED_WORD_ACCESS
static unsigned char PadBuf[WORD_ALIGNMENT_SIZE];
#endif
@@ -52,7 +51,7 @@ static unsigned char PadBuf[WORD_ALIGNMENT_SIZE];
static UChar*
str_dup(UChar* s, UChar* end)
{
- int len = end - s;
+ ptrdiff_t len = end - s;
if (len > 0) {
UChar* r = (UChar* )xmalloc(len + 1);
@@ -73,7 +72,7 @@ swap_node(Node* a, Node* b)
if (NTYPE(a) == NT_STR) {
StrNode* sn = NSTR(a);
if (sn->capa == 0) {
- int len = sn->end - sn->s;
+ size_t len = sn->end - sn->s;
sn->s = sn->buf;
sn->end = sn->s + len;
}
@@ -82,7 +81,7 @@ swap_node(Node* a, Node* b)
if (NTYPE(b) == NT_STR) {
StrNode* sn = NSTR(b);
if (sn->capa == 0) {
- int len = sn->end - sn->s;
+ size_t len = sn->end - sn->s;
sn->s = sn->buf;
sn->end = sn->s + len;
}
@@ -123,6 +122,12 @@ bitset_is_empty(BitSetRef bs)
#ifdef ONIG_DEBUG
static int
+onig_is_prelude(void)
+{
+ return !rb_const_defined(rb_cThread, rb_intern_const("MUTEX_FOR_THREAD_EXCLUSIVE"));
+}
+
+static int
bitset_on_num(BitSetRef bs)
{
int i, n;
@@ -136,7 +141,7 @@ bitset_on_num(BitSetRef bs)
#endif
extern int
-onig_bbuf_init(BBuf* buf, int size)
+onig_bbuf_init(BBuf* buf, OnigDistance size)
{
if (size <= 0) {
size = 0;
@@ -147,7 +152,7 @@ onig_bbuf_init(BBuf* buf, int size)
if (IS_NULL(buf->p)) return(ONIGERR_MEMORY);
}
- buf->alloc = size;
+ buf->alloc = (unsigned int)size;
buf->used = 0;
return 0;
}
@@ -234,7 +239,7 @@ add_abs_addr(regex_t* reg, int addr)
}
static int
-add_length(regex_t* reg, int len)
+add_length(regex_t* reg, OnigDistance len)
{
LengthType l = (LengthType )len;
@@ -279,7 +284,7 @@ add_opcode_rel_addr(regex_t* reg, int opcode, int addr)
}
static int
-add_bytes(regex_t* reg, UChar* bytes, int len)
+add_bytes(regex_t* reg, UChar* bytes, OnigDistance len)
{
BBUF_ADD(reg, bytes, len);
return 0;
@@ -312,7 +317,7 @@ static int compile_tree(Node* node, regex_t* reg);
(op) == OP_EXACTMB3N || (op) == OP_EXACTMBN || (op) == OP_EXACTN_IC)
static int
-select_str_opcode(int mb_len, int str_len, int ignore_case)
+select_str_opcode(int mb_len, OnigDistance str_len, int ignore_case)
{
int op;
@@ -416,7 +421,7 @@ compile_tree_n_times(Node* node, int n, regex_t* reg)
}
static int
-add_compile_string_length(UChar* s ARG_UNUSED, int mb_len, int str_len,
+add_compile_string_length(UChar* s ARG_UNUSED, int mb_len, OnigDistance str_len,
regex_t* reg ARG_UNUSED, int ignore_case)
{
int len;
@@ -433,7 +438,7 @@ add_compile_string_length(UChar* s ARG_UNUSED, int mb_len, int str_len,
}
static int
-add_compile_string(UChar* s, int mb_len, int str_len,
+add_compile_string(UChar* s, int mb_len, OnigDistance str_len,
regex_t* reg, int ignore_case)
{
int op = select_str_opcode(mb_len, str_len, ignore_case);
@@ -1794,6 +1799,20 @@ noname_disable_map(Node** plink, GroupNumRemap* map, int* counter)
}
break;
+ case NT_ANCHOR:
+ {
+ AnchorNode* an = NANCHOR(node);
+ switch (an->type) {
+ case ANCHOR_PREC_READ:
+ case ANCHOR_PREC_READ_NOT:
+ case ANCHOR_LOOK_BEHIND:
+ case ANCHOR_LOOK_BEHIND_NOT:
+ r = noname_disable_map(&(an->target), map, counter);
+ break;
+ }
+ }
+ break;
+
default:
break;
}
@@ -1852,6 +1871,20 @@ renumber_by_map(Node* node, GroupNumRemap* map)
r = renumber_node_backref(node, map);
break;
+ case NT_ANCHOR:
+ {
+ AnchorNode* an = NANCHOR(node);
+ switch (an->type) {
+ case ANCHOR_PREC_READ:
+ case ANCHOR_PREC_READ_NOT:
+ case ANCHOR_LOOK_BEHIND:
+ case ANCHOR_LOOK_BEHIND_NOT:
+ r = renumber_by_map(an->target, map);
+ break;
+ }
+ }
+ break;
+
default:
break;
}
@@ -2277,7 +2310,7 @@ get_char_length_tree1(Node* node, regex_t* reg, int* len, int level)
do {
r = get_char_length_tree1(NCAR(node), reg, &tlen, level);
if (r == 0)
- *len = distance_add(*len, tlen);
+ *len = (int)distance_add(*len, tlen);
} while (r == 0 && IS_NOT_NULL(node = NCDR(node)));
break;
@@ -2324,7 +2357,7 @@ get_char_length_tree1(Node* node, regex_t* reg, int* len, int level)
if (qn->lower == qn->upper) {
r = get_char_length_tree1(qn->target, reg, &tlen, level);
if (r == 0)
- *len = distance_multiply(tlen, qn->lower);
+ *len = (int)distance_multiply(tlen, qn->lower);
}
else
r = GET_CHAR_LEN_VARLEN;
@@ -2397,7 +2430,8 @@ get_char_length_tree(Node* node, regex_t* reg, int* len)
static int
is_not_included(Node* x, Node* y, regex_t* reg)
{
- int i, len;
+ int i;
+ OnigDistance len;
OnigCodePoint code;
UChar *p, c;
int ytype;
@@ -2549,7 +2583,7 @@ is_not_included(Node* x, Node* y, regex_t* reg)
return 0;
}
else {
- for (i = 0, p = ys->s, q = xs->s; i < len; i++, p++, q++) {
+ for (i = 0, p = ys->s, q = xs->s; (OnigDistance)i < len; i++, p++, q++) {
if (*p != *q) return 1;
}
}
@@ -3191,7 +3225,8 @@ update_string_node_case_fold(regex_t* reg, Node *node)
{
UChar *p, *q, *end, buf[ONIGENC_MBC_CASE_FOLD_MAXLEN];
UChar *sbuf, *ebuf, *sp;
- int r, i, len, sbuf_size;
+ int r, i, len;
+ OnigDistance sbuf_size;
StrNode* sn = NSTR(node);
end = sn->end;
@@ -3658,6 +3693,7 @@ setup_tree(Node* node, regex_t* reg, int state, ScanEnv* env)
int type;
int r = 0;
+restart:
type = NTYPE(node);
switch (type) {
case NT_LIST:
@@ -3765,7 +3801,7 @@ setup_tree(Node* node, regex_t* reg, int state, ScanEnv* env)
if (NTYPE(target) == NT_STR) {
if (!IS_REPEAT_INFINITE(qn->lower) && qn->lower == qn->upper &&
qn->lower > 1 && qn->lower <= EXPAND_STRING_MAX_LENGTH) {
- int len = NSTRING_LEN(target);
+ OnigDistance len = NSTRING_LEN(target);
StrNode* sn = NSTR(target);
if (len * qn->lower <= EXPAND_STRING_MAX_LENGTH) {
@@ -3872,6 +3908,7 @@ setup_tree(Node* node, regex_t* reg, int state, ScanEnv* env)
if (r > 0) return ONIGERR_INVALID_LOOK_BEHIND_PATTERN;
r = setup_look_behind(node, reg, env);
if (r != 0) return r;
+ if (NTYPE(node) != NT_ANCHOR) goto restart;
r = setup_tree(an->target, reg, state, env);
}
break;
@@ -3884,6 +3921,7 @@ setup_tree(Node* node, regex_t* reg, int state, ScanEnv* env)
if (r > 0) return ONIGERR_INVALID_LOOK_BEHIND_PATTERN;
r = setup_look_behind(node, reg, env);
if (r != 0) return r;
+ if (NTYPE(node) != NT_ANCHOR) goto restart;
r = setup_tree(an->target, reg, (state | IN_NOT), env);
}
break;
@@ -3903,7 +3941,7 @@ static int
set_bm_skip(UChar* s, UChar* end, OnigEncoding enc ARG_UNUSED,
UChar skip[], int** int_skip)
{
- int i, len;
+ OnigDistance i, len;
len = end - s;
if (len < ONIG_CHAR_TABLE_SIZE) {
@@ -3917,10 +3955,10 @@ set_bm_skip(UChar* s, UChar* end, OnigEncoding enc ARG_UNUSED,
*int_skip = (int* )xmalloc(sizeof(int) * ONIG_CHAR_TABLE_SIZE);
if (IS_NULL(*int_skip)) return ONIGERR_MEMORY;
}
- for (i = 0; i < ONIG_CHAR_TABLE_SIZE; i++) (*int_skip)[i] = len;
+ for (i = 0; i < ONIG_CHAR_TABLE_SIZE; i++) (*int_skip)[i] = (int)len;
for (i = 0; i < len - 1; i++)
- (*int_skip)[s[i]] = len - 1 - i;
+ (*int_skip)[s[i]] = (int)(len - 1 - i);
}
return 0;
}
@@ -4016,12 +4054,12 @@ distance_value(MinMaxLen* mm)
11, 11, 11, 11, 11, 10, 10, 10, 10, 10
};
- int d;
+ OnigDistance d;
if (mm->max == ONIG_INFINITE_DISTANCE) return 0;
d = mm->max - mm->min;
- if (d < (int )(sizeof(dist_vals)/sizeof(dist_vals[0])))
+ if (d < sizeof(dist_vals)/sizeof(dist_vals[0]))
/* return dist_vals[d] * 16 / (mm->min + 12); */
return (int )dist_vals[d];
else
@@ -4503,7 +4541,7 @@ concat_left_node_opt_info(OnigEncoding enc, NodeOptInfo* to, NodeOptInfo* add)
if (to->expr.len > 0) {
if (add->len.max > 0) {
if (to->expr.len > (int )add->len.max)
- to->expr.len = add->len.max;
+ to->expr.len = (int)add->len.max;
if (to->expr.mmd.max == 0)
select_opt_exact_info(enc, &to->exb, &to->expr);
@@ -4581,7 +4619,7 @@ optimize_node_left(Node* node, NodeOptInfo* opt, OptEnv* env)
case NT_STR:
{
StrNode* sn = NSTR(node);
- int slen = sn->end - sn->s;
+ OnigDistance slen = sn->end - sn->s;
int is_raw = NSTRING_IS_RAW(node);
if (! NSTRING_IS_AMBIG(node)) {
@@ -4593,7 +4631,7 @@ optimize_node_left(Node* node, NodeOptInfo* opt, OptEnv* env)
set_mml(&opt->len, slen, slen);
}
else {
- int max;
+ OnigDistance max;
if (NSTRING_IS_DONT_GET_OPT_INFO(node)) {
int n = onigenc_strlen(env->enc, sn->s, sn->end);
@@ -4616,7 +4654,7 @@ optimize_node_left(Node* node, NodeOptInfo* opt, OptEnv* env)
set_mml(&opt->len, slen, max);
}
- if (opt->exb.len == slen)
+ if ((OnigDistance)opt->exb.len == slen)
opt->exb.reach_end = 1;
}
break;
@@ -4792,7 +4830,7 @@ optimize_node_left(Node* node, NodeOptInfo* opt, OptEnv* env)
copy_node_opt_info(opt, &nopt);
if (nopt.exb.len > 0) {
if (nopt.exb.reach_end) {
- for (i = 2; i < qn->lower &&
+ for (i = 2; i <= qn->lower &&
! is_full_opt_exact_info(&opt->exb); i++) {
concat_opt_exact_info(&opt->exb, &nopt.exb, env->enc);
}
@@ -4869,7 +4907,7 @@ optimize_node_left(Node* node, NodeOptInfo* opt, OptEnv* env)
default:
#ifdef ONIG_DEBUG
- fprintf(stderr, "optimize_node_left: undefined node type %d\n",
+ if (!onig_is_prelude()) fprintf(stderr, "optimize_node_left: undefined node type %d\n",
NTYPE(node));
#endif
r = ONIGERR_TYPE_BUG;
@@ -4920,7 +4958,7 @@ set_optimize_exact_info(regex_t* reg, OptExactInfo* e)
reg->dmax = e->mmd.max;
if (reg->dmin != ONIG_INFINITE_DISTANCE) {
- reg->threshold_len = reg->dmin + (reg->exact_end - reg->exact);
+ reg->threshold_len = (int)(reg->dmin + (reg->exact_end - reg->exact));
}
return 0;
@@ -4939,7 +4977,7 @@ set_optimize_map_info(regex_t* reg, OptMapInfo* m)
reg->dmax = m->mmd.max;
if (reg->dmin != ONIG_INFINITE_DISTANCE) {
- reg->threshold_len = reg->dmin + 1;
+ reg->threshold_len = (int)(reg->dmin + 1);
}
}
@@ -5004,7 +5042,7 @@ set_optimize_info_from_tree(Node* node, regex_t* reg, ScanEnv* scan_env)
}
#if defined(ONIG_DEBUG_COMPILE) || defined(ONIG_DEBUG_MATCH)
- print_optimize_info(stderr, reg);
+ if (!onig_is_prelude()) print_optimize_info(stderr, reg);
#endif
return r;
}
@@ -5046,7 +5084,7 @@ static void print_enc_string(FILE* fp, OnigEncoding enc,
fputc((int )code, fp);
}
- p += enclen(enc, p);
+ p += enclen(enc, p, end);
}
}
else {
@@ -5056,7 +5094,7 @@ static void print_enc_string(FILE* fp, OnigEncoding enc,
}
}
- fprintf(fp, "/\n");
+ fprintf(fp, "/ (%s)\n", enc->name);
}
static void
@@ -5065,14 +5103,14 @@ print_distance_range(FILE* f, OnigDistance a, OnigDistance b)
if (a == ONIG_INFINITE_DISTANCE)
fputs("inf", f);
else
- fprintf(f, "(%u)", a);
+ fprintf(f, "(%"PRIuSIZE")", a);
fputs("-", f);
if (b == ONIG_INFINITE_DISTANCE)
fputs("inf", f);
else
- fprintf(f, "(%u)", b);
+ fprintf(f, "(%"PRIuSIZE")", b);
}
static void
@@ -5148,7 +5186,7 @@ print_optimize_info(FILE* f, regex_t* reg)
for (p = reg->exact; p < reg->exact_end; p++) {
fputc(*p, f);
}
- fprintf(f, "]: length: %d\n", (reg->exact_end - reg->exact));
+ fprintf(f, "]: length: %ld\n", (reg->exact_end - reg->exact));
}
else if (reg->optimize & ONIG_OPTIMIZE_MAP) {
int c, i, n = 0;
@@ -5178,19 +5216,21 @@ print_optimize_info(FILE* f, regex_t* reg)
#endif /* ONIG_DEBUG */
-static void
+extern void
onig_free_body(regex_t* reg)
{
- if (IS_NOT_NULL(reg->p)) xfree(reg->p);
- if (IS_NOT_NULL(reg->exact)) xfree(reg->exact);
- if (IS_NOT_NULL(reg->int_map)) xfree(reg->int_map);
- if (IS_NOT_NULL(reg->int_map_backward)) xfree(reg->int_map_backward);
- if (IS_NOT_NULL(reg->repeat_range)) xfree(reg->repeat_range);
- if (IS_NOT_NULL(reg->chain)) onig_free(reg->chain);
+ if (IS_NOT_NULL(reg)) {
+ if (IS_NOT_NULL(reg->p)) xfree(reg->p);
+ if (IS_NOT_NULL(reg->exact)) xfree(reg->exact);
+ if (IS_NOT_NULL(reg->int_map)) xfree(reg->int_map);
+ if (IS_NOT_NULL(reg->int_map_backward)) xfree(reg->int_map_backward);
+ if (IS_NOT_NULL(reg->repeat_range)) xfree(reg->repeat_range);
+ if (IS_NOT_NULL(reg->chain)) onig_free(reg->chain);
#ifdef USE_NAMED_GROUP
- onig_names_free(reg);
+ onig_names_free(reg);
#endif
+ }
}
extern void
@@ -5202,6 +5242,20 @@ onig_free(regex_t* reg)
}
}
+size_t
+onig_memsize(const regex_t *reg)
+{
+ size_t size = sizeof(regex_t);
+ if (IS_NOT_NULL(reg->p)) size += reg->alloc;
+ if (IS_NOT_NULL(reg->exact)) size += reg->exact_end - reg->exact;
+ if (IS_NOT_NULL(reg->int_map)) size += sizeof(int) * ONIG_CHAR_TABLE_SIZE;
+ if (IS_NOT_NULL(reg->int_map_backward)) size += sizeof(int) * ONIG_CHAR_TABLE_SIZE;
+ if (IS_NOT_NULL(reg->repeat_range)) size += reg->repeat_range_alloc * sizeof(OnigRepeatRange);
+ if (IS_NOT_NULL(reg->chain)) size += onig_memsize(reg->chain);
+
+ return size;
+}
+
#define REGEX_TRANSFER(to,from) do {\
(to)->state = ONIG_STATE_MODIFY;\
onig_free_body(to);\
@@ -5250,84 +5304,6 @@ onig_chain_reduce(regex_t* reg)
}
}
-#if 0
-extern int
-onig_clone(regex_t** to, regex_t* from)
-{
- int r, size;
- regex_t* reg;
-
-#ifdef USE_MULTI_THREAD_SYSTEM
- if (ONIG_STATE(from) >= ONIG_STATE_NORMAL) {
- ONIG_STATE_INC(from);
- if (IS_NOT_NULL(from->chain) && ONIG_STATE(reg) == ONIG_STATE_NORMAL) {
- onig_chain_reduce(from);
- ONIG_STATE_INC(from);
- }
- }
- else {
- int n = 0;
- while (ONIG_STATE(from) < ONIG_STATE_NORMAL) {
- if (++n > THREAD_PASS_LIMIT_COUNT)
- return ONIGERR_OVER_THREAD_PASS_LIMIT_COUNT;
- THREAD_PASS;
- }
- ONIG_STATE_INC(from);
- }
-#endif /* USE_MULTI_THREAD_SYSTEM */
-
- r = onig_alloc_init(&reg, ONIG_OPTION_NONE, ONIGENC_CASE_FOLD_DEFAULT,
- from->enc, ONIG_SYNTAX_DEFAULT);
- if (r != 0) {
- ONIG_STATE_DEC(from);
- return r;
- }
-
- xmemcpy(reg, from, sizeof(onig_t));
- reg->chain = (regex_t* )NULL;
- reg->state = ONIG_STATE_NORMAL;
-
- if (from->p) {
- reg->p = (UChar* )xmalloc(reg->alloc);
- if (IS_NULL(reg->p)) goto mem_error;
- xmemcpy(reg->p, from->p, reg->alloc);
- }
-
- if (from->exact) {
- reg->exact = (UChar* )xmalloc(from->exact_end - from->exact);
- if (IS_NULL(reg->exact)) goto mem_error;
- reg->exact_end = reg->exact + (from->exact_end - from->exact);
- xmemcpy(reg->exact, from->exact, reg->exact_end - reg->exact);
- }
-
- if (from->int_map) {
- size = sizeof(int) * ONIG_CHAR_TABLE_SIZE;
- reg->int_map = (int* )xmalloc(size);
- if (IS_NULL(reg->int_map)) goto mem_error;
- xmemcpy(reg->int_map, from->int_map, size);
- }
-
- if (from->int_map_backward) {
- size = sizeof(int) * ONIG_CHAR_TABLE_SIZE;
- reg->int_map_backward = (int* )xmalloc(size);
- if (IS_NULL(reg->int_map_backward)) goto mem_error;
- xmemcpy(reg->int_map_backward, from->int_map_backward, size);
- }
-
-#ifdef USE_NAMED_GROUP
- reg->name_table = names_clone(from); /* names_clone is not implemented */
-#endif
-
- ONIG_STATE_DEC(from);
- *to = reg;
- return 0;
-
- mem_error:
- ONIG_STATE_DEC(from);
- return ONIGERR_MEMORY;
-}
-#endif
-
#ifdef ONIG_DEBUG
static void print_compiled_byte_code_list P_((FILE* f, regex_t* reg));
#endif
@@ -5337,21 +5313,26 @@ static void print_tree P_((FILE* f, Node* node));
extern int
onig_compile(regex_t* reg, const UChar* pattern, const UChar* pattern_end,
- OnigErrorInfo* einfo)
+ OnigErrorInfo* einfo, const char *sourcefile, int sourceline)
{
#define COMPILE_INIT_SIZE 20
- int r, init_size;
+ int r;
+ OnigDistance init_size;
Node* root;
- ScanEnv scan_env;
+ ScanEnv scan_env = {0};
#ifdef USE_SUBEXP_CALL
UnsetAddrList uslist;
#endif
+ if (IS_NOT_NULL(einfo)) einfo->par = (UChar* )NULL;
+
+ scan_env.sourcefile = sourcefile;
+ scan_env.sourceline = sourceline;
reg->state = ONIG_STATE_COMPILING;
#ifdef ONIG_DEBUG
- print_enc_string(stderr, reg->enc, pattern, pattern_end);
+ if (!onig_is_prelude()) print_enc_string(stderr, reg->enc, pattern, pattern_end);
#endif
if (reg->alloc == 0) {
@@ -5375,6 +5356,15 @@ onig_compile(regex_t* reg, const UChar* pattern, const UChar* pattern_end,
r = onig_parse_make_tree(&root, pattern, pattern_end, reg, &scan_env);
if (r != 0) goto err;
+#ifdef ONIG_DEBUG_PARSE_TREE
+# if 0
+ fprintf(stderr, "ORIGINAL PARSE TREE:\n");
+ if (!onig_is_prelude()) {
+ print_tree(stderr, root);
+ }
+# endif
+#endif
+
#ifdef USE_NAMED_GROUP
/* mixed use named group and no-named group */
if (scan_env.num_named > 0 &&
@@ -5411,7 +5401,7 @@ onig_compile(regex_t* reg, const UChar* pattern, const UChar* pattern_end,
if (r != 0) goto err_unset;
#ifdef ONIG_DEBUG_PARSE_TREE
- print_tree(stderr, root);
+ if (!onig_is_prelude()) print_tree(stderr, root);
#endif
reg->capture_history = scan_env.capture_history;
@@ -5491,9 +5481,9 @@ onig_compile(regex_t* reg, const UChar* pattern, const UChar* pattern_end,
#ifdef ONIG_DEBUG_COMPILE
#ifdef USE_NAMED_GROUP
- onig_print_names(stderr, reg);
+ if (!onig_is_prelude()) onig_print_names(stderr, reg);
#endif
- print_compiled_byte_code_list(stderr, reg);
+ if (!onig_is_prelude()) print_compiled_byte_code_list(stderr, reg);
#endif
end:
@@ -5545,13 +5535,16 @@ onig_recompile(regex_t* reg, const UChar* pattern, const UChar* pattern_end,
static int onig_inited = 0;
extern int
-onig_alloc_init(regex_t** reg, OnigOptionType option,
- OnigCaseFoldType case_fold_flag,
- OnigEncoding enc, const OnigSyntaxType* syntax)
+onig_reg_init(regex_t* reg, OnigOptionType option,
+ OnigCaseFoldType case_fold_flag,
+ OnigEncoding enc, const OnigSyntaxType* syntax)
{
if (! onig_inited)
onig_init();
+ if (IS_NULL(reg))
+ return ONIGERR_INVALID_ARGUMENT;
+
if (ONIGENC_IS_UNDEF(enc))
return ONIGERR_DEFAULT_ENCODING_IS_NOT_SETTED;
@@ -5560,9 +5553,7 @@ onig_alloc_init(regex_t** reg, OnigOptionType option,
return ONIGERR_INVALID_COMBINATION_OF_OPTIONS;
}
- *reg = (regex_t* )xmalloc(sizeof(regex_t));
- if (IS_NULL(*reg)) return ONIGERR_MEMORY;
- (*reg)->state = ONIG_STATE_MODIFY;
+ (reg)->state = ONIG_STATE_MODIFY;
if ((option & ONIG_OPTION_NEGATE_SINGLELINE) != 0) {
option |= syntax->options;
@@ -5571,45 +5562,61 @@ onig_alloc_init(regex_t** reg, OnigOptionType option,
else
option |= syntax->options;
- (*reg)->enc = enc;
- (*reg)->options = option;
- (*reg)->syntax = syntax;
- (*reg)->optimize = 0;
- (*reg)->exact = (UChar* )NULL;
- (*reg)->int_map = (int* )NULL;
- (*reg)->int_map_backward = (int* )NULL;
- (*reg)->chain = (regex_t* )NULL;
-
- (*reg)->p = (UChar* )NULL;
- (*reg)->alloc = 0;
- (*reg)->used = 0;
- (*reg)->name_table = (void* )NULL;
-
- (*reg)->case_fold_flag = case_fold_flag;
+ (reg)->enc = enc;
+ (reg)->options = option;
+ (reg)->syntax = syntax;
+ (reg)->optimize = 0;
+ (reg)->exact = (UChar* )NULL;
+ (reg)->int_map = (int* )NULL;
+ (reg)->int_map_backward = (int* )NULL;
+ (reg)->chain = (regex_t* )NULL;
+
+ (reg)->p = (UChar* )NULL;
+ (reg)->alloc = 0;
+ (reg)->used = 0;
+ (reg)->name_table = (void* )NULL;
+
+ (reg)->case_fold_flag = case_fold_flag;
return 0;
}
extern int
+onig_new_without_alloc(regex_t* reg, const UChar* pattern,
+ const UChar* pattern_end, OnigOptionType option, OnigEncoding enc,
+ OnigSyntaxType* syntax, OnigErrorInfo* einfo)
+{
+ int r;
+
+ r = onig_reg_init(reg, option, ONIGENC_CASE_FOLD_DEFAULT, enc, syntax);
+ if (r) return r;
+
+ r = onig_compile(reg, pattern, pattern_end, einfo, NULL, 0);
+ return r;
+}
+
+extern int
onig_new(regex_t** reg, const UChar* pattern, const UChar* pattern_end,
OnigOptionType option, OnigEncoding enc, const OnigSyntaxType* syntax,
OnigErrorInfo* einfo)
{
int r;
- if (IS_NOT_NULL(einfo)) einfo->par = (UChar* )NULL;
+ *reg = (regex_t* )xmalloc(sizeof(regex_t));
+ if (IS_NULL(*reg)) return ONIGERR_MEMORY;
- r = onig_alloc_init(reg, option, ONIGENC_CASE_FOLD_DEFAULT,
- enc, syntax);
- if (r) return r;
+ r = onig_reg_init(*reg, option, ONIGENC_CASE_FOLD_DEFAULT, enc, syntax);
+ if (r) goto err;
- r = onig_compile(*reg, pattern, pattern_end, einfo);
+ r = onig_compile(*reg, pattern, pattern_end, einfo, NULL, 0);
if (r) {
+ err:
onig_free(*reg);
*reg = NULL;
}
return r;
}
+
extern int
onig_init(void)
{
@@ -5639,7 +5646,7 @@ onig_end(void)
THREAD_ATOMIC_START;
#ifdef ONIG_DEBUG_STATISTICS
- onig_print_statistics(stderr);
+ if (!onig_is_prelude()) onig_print_statistics(stderr);
#endif
#ifdef USE_SHARED_CCLASS_TABLE
@@ -5821,7 +5828,7 @@ OnigOpInfoType OnigOpInfo[] = {
{ -1, "", ARG_NON }
};
-static char*
+static const char*
op2name(int opcode)
{
int i;
@@ -5869,7 +5876,7 @@ p_len_string(FILE* f, LengthType len, int mb_len, UChar* s)
}
extern void
-onig_print_compiled_byte_code(FILE* f, UChar* bp, UChar** nextp,
+onig_print_compiled_byte_code(FILE* f, UChar* bp, UChar* bpend, UChar** nextp,
OnigEncoding enc)
{
int i, n, arg_type;
@@ -5968,7 +5975,7 @@ onig_print_compiled_byte_code(FILE* f, UChar* bp, UChar** nextp,
break;
case OP_EXACT1_IC:
- len = enclen(enc, bp);
+ len = enclen(enc, bp, bpend);
p_string(f, len, bp);
bp += len;
break;
@@ -6022,7 +6029,7 @@ onig_print_compiled_byte_code(FILE* f, UChar* bp, UChar** nextp,
GET_POINTER_INC(cc, bp);
n = bitset_on_num(cc->bs);
- fprintf(f, ":%u:%d", (unsigned int )cc, n);
+ fprintf(f, ":%"PRIuPTR":%d", (uintptr_t)cc, n);
}
break;
@@ -6121,16 +6128,16 @@ print_compiled_byte_code_list(FILE* f, regex_t* reg)
fprintf(f, "code length: %d\n", reg->used);
- ncode = 0;
+ ncode = -1;
while (bp < end) {
ncode++;
if (bp > reg->p) {
if (ncode % 5 == 0)
- fprintf(f, "\n");
+ fprintf(f, "\n%ld:", bp-reg->p);
else
- fputs(" ", f);
+ fprintf(f, " %ld:", bp-reg->p);
}
- onig_print_compiled_byte_code(f, bp, &bp, reg->enc);
+ onig_print_compiled_byte_code(f, bp, end, &bp, reg->enc);
}
fprintf(f, "\n");
@@ -6139,7 +6146,7 @@ print_compiled_byte_code_list(FILE* f, regex_t* reg)
static void
print_indent_tree(FILE* f, Node* node, int indent)
{
- int i, type;
+ int i, type, container_p = 0;
int add = 3;
UChar* p;
@@ -6154,9 +6161,9 @@ print_indent_tree(FILE* f, Node* node, int indent)
case NT_LIST:
case NT_ALT:
if (NTYPE(node) == NT_LIST)
- fprintf(f, "<list:%x>\n", (int )node);
+ fprintf(f, "<list:%"PRIxPTR">\n", (intptr_t)node);
else
- fprintf(f, "<alt:%x>\n", (int )node);
+ fprintf(f, "<alt:%"PRIxPTR">\n", (intptr_t)node);
print_indent_tree(f, NCAR(node), indent + add);
while (IS_NOT_NULL(node = NCDR(node))) {
@@ -6169,8 +6176,8 @@ print_indent_tree(FILE* f, Node* node, int indent)
break;
case NT_STR:
- fprintf(f, "<string%s:%x>",
- (NSTRING_IS_RAW(node) ? "-raw" : ""), (int )node);
+ fprintf(f, "<string%s:%"PRIxPTR">",
+ (NSTRING_IS_RAW(node) ? "-raw" : ""), (intptr_t)node);
for (p = NSTR(node)->s; p < NSTR(node)->end; p++) {
if (*p >= 0x20 && *p < 0x7f)
fputc(*p, f);
@@ -6181,11 +6188,11 @@ print_indent_tree(FILE* f, Node* node, int indent)
break;
case NT_CCLASS:
- fprintf(f, "<cclass:%x>", (int )node);
+ fprintf(f, "<cclass:%"PRIxPTR">", (intptr_t)node);
if (IS_NCCLASS_NOT(NCCLASS(node))) fputs(" not", f);
if (NCCLASS(node)->mbuf) {
BBuf* bbuf = NCCLASS(node)->mbuf;
- for (i = 0; i < bbuf->used; i++) {
+ for (i = 0; i < (int)bbuf->used; i++) {
if (i > 0) fprintf(f, ",");
fprintf(f, "%0x", bbuf->p[i]);
}
@@ -6193,7 +6200,7 @@ print_indent_tree(FILE* f, Node* node, int indent)
break;
case NT_CTYPE:
- fprintf(f, "<ctype:%x> ", (int )node);
+ fprintf(f, "<ctype:%"PRIxPTR"> ", (intptr_t)node);
switch (NCTYPE(node)->ctype) {
case ONIGENC_CTYPE_WORD:
if (NCTYPE(node)->not != 0)
@@ -6209,11 +6216,11 @@ print_indent_tree(FILE* f, Node* node, int indent)
break;
case NT_CANY:
- fprintf(f, "<anychar:%x>", (int )node);
+ fprintf(f, "<anychar:%"PRIxPTR">", (intptr_t)node);
break;
case NT_ANCHOR:
- fprintf(f, "<anchor:%x> ", (int )node);
+ fprintf(f, "<anchor:%"PRIxPTR"> ", (intptr_t)node);
switch (NANCHOR(node)->type) {
case ANCHOR_BEGIN_BUF: fputs("begin buf", f); break;
case ANCHOR_END_BUF: fputs("end buf", f); break;
@@ -6228,10 +6235,10 @@ print_indent_tree(FILE* f, Node* node, int indent)
case ANCHOR_WORD_BEGIN: fputs("word begin", f); break;
case ANCHOR_WORD_END: fputs("word end", f); break;
#endif
- case ANCHOR_PREC_READ: fputs("prec read", f); break;
- case ANCHOR_PREC_READ_NOT: fputs("prec read not", f); break;
- case ANCHOR_LOOK_BEHIND: fputs("look_behind", f); break;
- case ANCHOR_LOOK_BEHIND_NOT: fputs("look_behind_not",f); break;
+ case ANCHOR_PREC_READ: fputs("prec read", f); container_p = TRUE; break;
+ case ANCHOR_PREC_READ_NOT: fputs("prec read not", f); container_p = TRUE; break;
+ case ANCHOR_LOOK_BEHIND: fputs("look_behind", f); container_p = TRUE; break;
+ case ANCHOR_LOOK_BEHIND_NOT: fputs("look_behind_not",f); container_p = TRUE; break;
default:
fprintf(f, "ERROR: undefined anchor type.\n");
@@ -6244,7 +6251,7 @@ print_indent_tree(FILE* f, Node* node, int indent)
int* p;
BRefNode* br = NBREF(node);
p = BACKREFS_P(br);
- fprintf(f, "<backref:%x>", (int )node);
+ fprintf(f, "<backref:%"PRIxPTR">", (intptr_t)node);
for (i = 0; i < br->back_num; i++) {
if (i > 0) fputs(", ", f);
fprintf(f, "%d", p[i]);
@@ -6256,21 +6263,21 @@ print_indent_tree(FILE* f, Node* node, int indent)
case NT_CALL:
{
CallNode* cn = NCALL(node);
- fprintf(f, "<call:%x>", (int )node);
+ fprintf(f, "<call:%"PRIxPTR">", (intptr_t)node);
p_string(f, cn->name_end - cn->name, cn->name);
}
break;
#endif
case NT_QTFR:
- fprintf(f, "<quantifier:%x>{%d,%d}%s\n", (int )node,
+ fprintf(f, "<quantifier:%"PRIxPTR">{%d,%d}%s\n", (intptr_t)node,
NQTFR(node)->lower, NQTFR(node)->upper,
(NQTFR(node)->greedy ? "" : "?"));
print_indent_tree(f, NQTFR(node)->target, indent + add);
break;
case NT_ENCLOSE:
- fprintf(f, "<enclose:%x> ", (int )node);
+ fprintf(f, "<enclose:%"PRIxPTR"> ", (intptr_t)node);
switch (NENCLOSE(node)->type) {
case ENCLOSE_OPTION:
fprintf(f, "option:%d\n", NENCLOSE(node)->option);
@@ -6298,6 +6305,9 @@ print_indent_tree(FILE* f, Node* node, int indent)
if (type != NT_LIST && type != NT_ALT && type != NT_QTFR &&
type != NT_ENCLOSE)
fprintf(f, "\n");
+
+ if (container_p) print_indent_tree(f, NANCHOR(node)->target, indent + add);
+
fflush(f);
}
#endif /* ONIG_DEBUG */
diff --git a/regenc.c b/regenc.c
index b625e63048..70b56ef727 100644
--- a/regenc.c
+++ b/regenc.c
@@ -57,7 +57,7 @@ onigenc_mbclen_approximate(const OnigUChar* p,const OnigUChar* e, struct OnigEnc
if (ONIGENC_MBCLEN_CHARFOUND_P(ret))
return ONIGENC_MBCLEN_CHARFOUND_LEN(ret);
else if (ONIGENC_MBCLEN_NEEDMORE_P(ret))
- return e-p+ONIGENC_MBCLEN_NEEDMORE_LEN(ret);
+ return (int)(e-p)+ONIGENC_MBCLEN_NEEDMORE_LEN(ret);
return 1;
}
@@ -136,7 +136,7 @@ onigenc_strlen_null(OnigEncoding enc, const UChar* s)
{
int n = 0;
UChar* p = (UChar* )s;
- UChar* e = p + strlen((const char *)s);
+ UChar* e;
while (1) {
if (*p == '\0') {
@@ -152,6 +152,7 @@ onigenc_strlen_null(OnigEncoding enc, const UChar* s)
}
if (len == 1) return n;
}
+ e = p + ONIGENC_MBC_MAXLEN(enc);
p += ONIGENC_MBC_ENC_LEN(enc, p, e);
n++;
}
@@ -162,7 +163,7 @@ onigenc_str_bytelen_null(OnigEncoding enc, const UChar* s)
{
UChar* start = (UChar* )s;
UChar* p = (UChar* )s;
- UChar* e = p + strlen((const char *)s);
+ UChar* e;
while (1) {
if (*p == '\0') {
@@ -178,6 +179,7 @@ onigenc_str_bytelen_null(OnigEncoding enc, const UChar* s)
}
if (len == 1) return (int )(p - start);
}
+ e = p + ONIGENC_MBC_MAXLEN(enc);
p += ONIGENC_MBC_ENC_LEN(enc, p, e);
}
}
@@ -730,8 +732,9 @@ onigenc_mbn_is_mbc_ambiguous(OnigEncoding enc, OnigCaseFoldType flag,
extern int
onigenc_mb2_code_to_mbclen(OnigCodePoint code, OnigEncoding enc ARG_UNUSED)
{
- if ((code & 0xff00) != 0) return 2;
- else return 1;
+ if (code <= 0xff) return 1;
+ if (code <= 0xffff) return 2;
+ return ONIGERR_TOO_BIG_WIDE_CHAR_VALUE;
}
extern int
@@ -757,7 +760,7 @@ onigenc_mb2_code_to_mbc(OnigEncoding enc, OnigCodePoint code, UChar *buf)
if (enclen(enc, buf, p) != (p - buf))
return ONIGERR_INVALID_CODE_POINT_VALUE;
#endif
- return p - buf;
+ return (int)(p - buf);
}
extern int
@@ -780,37 +783,36 @@ onigenc_mb4_code_to_mbc(OnigEncoding enc, OnigCodePoint code, UChar *buf)
if (enclen(enc, buf, p) != (p - buf))
return ONIGERR_INVALID_CODE_POINT_VALUE;
#endif
- return p - buf;
+ return (int)(p - buf);
}
extern int
onigenc_minimum_property_name_to_ctype(OnigEncoding enc, UChar* p, UChar* end)
{
static const PosixBracketEntryType PBS[] = {
- { (UChar* )"Alnum", ONIGENC_CTYPE_ALNUM, 5 },
- { (UChar* )"Alpha", ONIGENC_CTYPE_ALPHA, 5 },
- { (UChar* )"Blank", ONIGENC_CTYPE_BLANK, 5 },
- { (UChar* )"Cntrl", ONIGENC_CTYPE_CNTRL, 5 },
- { (UChar* )"Digit", ONIGENC_CTYPE_DIGIT, 5 },
- { (UChar* )"Graph", ONIGENC_CTYPE_GRAPH, 5 },
- { (UChar* )"Lower", ONIGENC_CTYPE_LOWER, 5 },
- { (UChar* )"Print", ONIGENC_CTYPE_PRINT, 5 },
- { (UChar* )"Punct", ONIGENC_CTYPE_PUNCT, 5 },
- { (UChar* )"Space", ONIGENC_CTYPE_SPACE, 5 },
- { (UChar* )"Upper", ONIGENC_CTYPE_UPPER, 5 },
- { (UChar* )"XDigit", ONIGENC_CTYPE_XDIGIT, 6 },
- { (UChar* )"ASCII", ONIGENC_CTYPE_ASCII, 5 },
- { (UChar* )"Word", ONIGENC_CTYPE_WORD, 4 },
- { (UChar* )NULL, -1, 0 }
+ PosixBracketEntryInit("Alnum", ONIGENC_CTYPE_ALNUM),
+ PosixBracketEntryInit("Alpha", ONIGENC_CTYPE_ALPHA),
+ PosixBracketEntryInit("Blank", ONIGENC_CTYPE_BLANK),
+ PosixBracketEntryInit("Cntrl", ONIGENC_CTYPE_CNTRL),
+ PosixBracketEntryInit("Digit", ONIGENC_CTYPE_DIGIT),
+ PosixBracketEntryInit("Graph", ONIGENC_CTYPE_GRAPH),
+ PosixBracketEntryInit("Lower", ONIGENC_CTYPE_LOWER),
+ PosixBracketEntryInit("Print", ONIGENC_CTYPE_PRINT),
+ PosixBracketEntryInit("Punct", ONIGENC_CTYPE_PUNCT),
+ PosixBracketEntryInit("Space", ONIGENC_CTYPE_SPACE),
+ PosixBracketEntryInit("Upper", ONIGENC_CTYPE_UPPER),
+ PosixBracketEntryInit("XDigit", ONIGENC_CTYPE_XDIGIT),
+ PosixBracketEntryInit("ASCII", ONIGENC_CTYPE_ASCII),
+ PosixBracketEntryInit("Word", ONIGENC_CTYPE_WORD),
};
- const PosixBracketEntryType *pb;
+ const PosixBracketEntryType *pb, *pbe;
int len;
len = onigenc_strlen(enc, p, end);
- for (pb = PBS; IS_NOT_NULL(pb->name); pb++) {
+ for (pbe = (pb = PBS) + sizeof(PBS)/sizeof(PBS[0]); pb < pbe; ++pb) {
if (len == pb->len &&
- onigenc_with_ascii_strncmp(enc, p, end, pb->name, pb->len) == 0)
+ STRNCASECMP((char *)p, (char *)pb->name, len) == 0)
return pb->ctype;
}
@@ -870,7 +872,7 @@ onigenc_with_ascii_strncmp(OnigEncoding enc, const UChar* p, const UChar* end,
static int
resize_property_list(int new_size, const OnigCodePoint*** plist, int* psize)
{
- int size;
+ size_t size;
const OnigCodePoint **list = *plist;
size = sizeof(OnigCodePoint*) * new_size;
diff --git a/regenc.h b/regenc.h
index c1d705b01a..16fe9db813 100644
--- a/regenc.h
+++ b/regenc.h
@@ -4,7 +4,7 @@
regenc.h - Oniguruma (regular expression library)
**********************************************************************/
/*-
- * Copyright (c) 2002-2007 K.Kosako <sndgk393 AT ybb DOT ne DOT jp>
+ * Copyright (c) 2002-2008 K.Kosako <sndgk393 AT ybb DOT ne DOT jp>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -39,6 +39,10 @@
#endif
#include "ruby/oniguruma.h"
+#if defined __GNUC__ && __GNUC__ >= 4
+#pragma GCC visibility push(default)
+#endif
+
typedef struct {
OnigCodePoint from;
OnigCodePoint to;
@@ -96,11 +100,12 @@ typedef struct {
typedef struct {
- UChar *name;
+ const UChar *name;
int ctype;
short int len;
} PosixBracketEntryType;
+#define PosixBracketEntryInit(name, ctype) {(const UChar *)name, ctype, (short int)(sizeof(name) - 1)}
/* #define USE_CRNL_AS_LINE_TERMINATOR */
#define USE_UNICODE_PROPERTIES
@@ -152,6 +157,9 @@ ONIG_EXTERN int onigenc_unicode_mbc_case_fold P_((OnigEncoding enc, OnigCaseFold
ONIG_EXTERN int onigenc_unicode_apply_all_case_fold P_((OnigCaseFoldType flag, OnigApplyAllCaseFoldFunc f, void* arg, OnigEncoding enc));
+#define UTF16_IS_SURROGATE_FIRST(c) (((c) & 0xfc) == 0xd8)
+#define UTF16_IS_SURROGATE_SECOND(c) (((c) & 0xfc) == 0xdc)
+
#define ONIGENC_ISO_8859_1_TO_LOWER_CASE(c) \
OnigEncISO_8859_1_ToLowerCaseTable[c]
#define ONIGENC_ISO_8859_1_TO_UPPER_CASE(c) \
@@ -204,4 +212,8 @@ extern int ONIG_ENC_REGISTER(const char *, OnigEncodingType*);
#define ENC_ALIAS(name, orig)
#define ENC_DUMMY(name)
+#if defined __GNUC__ && __GNUC__ >= 4
+#pragma GCC visibility pop
+#endif
+
#endif /* ONIGURUMA_REGENC_H */
diff --git a/regerror.c b/regerror.c
index 0a92c67b5d..3c8b7371c2 100644
--- a/regerror.c
+++ b/regerror.c
@@ -205,17 +205,17 @@ static int to_ascii(OnigEncoding enc, UChar *s, UChar *end,
while (p < end) {
code = ONIGENC_MBC_TO_CODE(enc, p, end);
if (code >= 0x80) {
- if (code > 0xffff && len + 10 <= buf_size) {
- sprint_byte_with_x((char*)(&(buf[len])), (unsigned int)(code >> 24));
- sprint_byte((char*)(&(buf[len+4])), (unsigned int)(code >> 16));
- sprint_byte((char*)(&(buf[len+6])), (unsigned int)(code >> 8));
- sprint_byte((char*)(&(buf[len+8])), (unsigned int)code);
- len += 10;
- }
- else if (len + 6 <= buf_size) {
- sprint_byte_with_x((char*)(&(buf[len])), (unsigned int)(code >> 8));
- sprint_byte((char*)(&(buf[len+4])), (unsigned int)code);
- len += 6;
+ if (code > 0xffff && len + 10 <= buf_size) {
+ sprint_byte_with_x((char*)(&(buf[len])), (unsigned int)(code >> 24));
+ sprint_byte((char*)(&(buf[len+4])), (unsigned int)(code >> 16));
+ sprint_byte((char*)(&(buf[len+6])), (unsigned int)(code >> 8));
+ sprint_byte((char*)(&(buf[len+8])), (unsigned int)code);
+ len += 10;
+ }
+ else if (len + 6 <= buf_size) {
+ sprint_byte_with_x((char*)(&(buf[len])), (unsigned int)(code >> 8));
+ sprint_byte((char*)(&(buf[len+4])), (unsigned int)code);
+ len += 6;
}
else {
break;
@@ -232,7 +232,7 @@ static int to_ascii(OnigEncoding enc, UChar *s, UChar *end,
*is_over = ((p < end) ? 1 : 0);
}
else {
- len = MIN((end - s), buf_size);
+ len = (int)MIN((end - s), buf_size);
xmemcpy(buf, s, (size_t )len);
*is_over = ((buf_size < (end - s)) ? 1 : 0);
}
@@ -256,7 +256,8 @@ onig_error_code_to_str(s, code, va_alist)
{
UChar *p, *q;
OnigErrorInfo* einfo;
- int len, is_over;
+ size_t len;
+ int is_over;
UChar parbuf[MAX_ERROR_PAR_LEN];
va_list vargs;
@@ -308,37 +309,23 @@ onig_error_code_to_str(s, code, va_alist)
}
va_end(vargs);
- return len;
+ return (int)len;
}
-
void
-#ifdef HAVE_STDARG_PROTOTYPES
-onig_snprintf_with_pattern(UChar buf[], int bufsize, OnigEncoding enc,
- UChar* pat, UChar* pat_end, const UChar *fmt, ...)
-#else
-onig_snprintf_with_pattern(buf, bufsize, enc, pat, pat_end, fmt, va_alist)
- UChar buf[];
- int bufsize;
- OnigEncoding enc;
- UChar* pat;
- UChar* pat_end;
- const UChar *fmt;
- va_dcl
-#endif
+onig_vsnprintf_with_pattern(UChar buf[], int bufsize, OnigEncoding enc,
+ UChar* pat, UChar* pat_end, const UChar *fmt, va_list args)
{
- int n, need, len;
+ size_t need;
+ int n, len;
UChar *p, *s, *bp;
UChar bs[6];
- va_list args;
- va_init_list(args, fmt);
n = xvsnprintf((char* )buf, bufsize, (const char* )fmt, args);
- va_end(args);
need = (pat_end - pat) * 4 + 4;
- if (n + need < bufsize) {
+ if (n + need < (size_t)bufsize) {
strcat((char* )buf, ": /");
s = buf + onigenc_str_bytelen_null(ONIG_ENCODING_ASCII, buf);
@@ -385,3 +372,26 @@ onig_snprintf_with_pattern(buf, bufsize, enc, pat, pat_end, fmt, va_alist)
*s = '\0';
}
}
+
+void
+#ifdef HAVE_STDARG_PROTOTYPES
+onig_snprintf_with_pattern(UChar buf[], int bufsize, OnigEncoding enc,
+ UChar* pat, UChar* pat_end, const UChar *fmt, ...)
+#else
+onig_snprintf_with_pattern(buf, bufsize, enc, pat, pat_end, fmt, va_alist)
+ UChar buf[];
+ int bufsize;
+ OnigEncoding enc;
+ UChar* pat;
+ UChar* pat_end;
+ const UChar *fmt;
+ va_dcl
+#endif
+{
+ va_list args;
+ va_init_list(args, fmt);
+ onig_vsnprintf_with_pattern(buf, bufsize, enc,
+ pat, pat_end, fmt, args);
+ va_end(args);
+}
+
diff --git a/regexec.c b/regexec.c
index 946e47be60..ee0a5fa2af 100644
--- a/regexec.c
+++ b/regexec.c
@@ -2,7 +2,7 @@
regexec.c - Oniguruma (regular expression library)
**********************************************************************/
/*-
- * Copyright (c) 2002-2007 K.Kosako <sndgk393 AT ybb DOT ne DOT jp>
+ * Copyright (c) 2002-2008 K.Kosako <sndgk393 AT ybb DOT ne DOT jp>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -413,7 +413,7 @@ onig_region_copy(OnigRegion* to, OnigRegion* from)
#define STACK_SAVE do{\
if (stk_base != stk_alloc) {\
msa->stack_p = stk_base;\
- msa->stack_n = stk_end - stk_base;\
+ msa->stack_n = stk_end - stk_base; /* TODO: check overflow */\
};\
} while(0)
@@ -436,7 +436,7 @@ static int
stack_double(OnigStackType** arg_stk_base, OnigStackType** arg_stk_end,
OnigStackType** arg_stk, OnigStackType* stk_alloc, OnigMatchArg* msa)
{
- unsigned int n;
+ size_t n;
OnigStackType *x, *stk_base, *stk_end, *stk;
stk_base = *arg_stk_base;
@@ -879,7 +879,7 @@ stack_double(OnigStackType** arg_stk_base, OnigStackType** arg_stk_end,
}\
k++;\
}\
- break;\
+ break;\
}\
}\
}\
@@ -920,7 +920,7 @@ stack_double(OnigStackType** arg_stk_base, OnigStackType** arg_stk_end,
}\
k++;\
}\
- break;\
+ break;\
}\
}\
else {\
@@ -1240,9 +1240,12 @@ typedef struct {
regoff_t rm_eo;
} posix_regmatch_t;
+void onig_print_compiled_byte_code(FILE* f, UChar* bp, UChar* bpend, UChar** nextp,
+ OnigEncoding enc);
+
/* match data(str - end) from position (sstart). */
/* if sstart == str then set sprev to NULL. */
-static int
+static long
match_at(regex_t* reg, const UChar* str, const UChar* end,
#ifdef USE_MATCH_RANGE_MUST_BE_INSIDE_OF_SPECIFIED_RANGE
const UChar* right_range,
@@ -1251,7 +1254,8 @@ match_at(regex_t* reg, const UChar* str, const UChar* end,
{
static const UChar FinishCode[] = { OP_FINISH };
- int i, n, num_mem, best_len, pop_level;
+ int i, num_mem, best_len, pop_level;
+ ptrdiff_t n;
LengthType tlen, tlen2;
MemNumType mem;
RelAddrType addr;
@@ -1289,8 +1293,8 @@ match_at(regex_t* reg, const UChar* str, const UChar* end,
}
#ifdef ONIG_DEBUG_MATCH
- fprintf(stderr, "match_at: str: %d, end: %d, start: %d, sprev: %d\n",
- (int )str, (int )end, (int )sstart, (int )sprev);
+ fprintf(stderr, "match_at: str: %"PRIdPTR", end: %"PRIdPTR", start: %"PRIdPTR", sprev: %"PRIdPTR"\n",
+ (intptr_t)str, (intptr_t)end, (intptr_t)sstart, (intptr_t)sprev);
fprintf(stderr, "size: %d, start offset: %d\n",
(int )(end - str), (int )(sstart - str));
#endif
@@ -1300,13 +1304,13 @@ match_at(regex_t* reg, const UChar* str, const UChar* end,
s = (UChar* )sstart;
while (1) {
#ifdef ONIG_DEBUG_MATCH
- {
+ if (s) {
UChar *q, *bp, buf[50];
int len;
fprintf(stderr, "%4d> \"", (int )(s - str));
bp = buf;
for (i = 0, q = s; i < 7 && q < end; i++) {
- len = enclen(encode, q);
+ len = enclen(encode, q, end);
while (len-- > 0) *bp++ = *q++;
}
if (q < end) { xmemcpy(bp, "...\"", 4); bp += 4; }
@@ -1314,7 +1318,7 @@ match_at(regex_t* reg, const UChar* str, const UChar* end,
*bp = 0;
fputs((char* )buf, stderr);
for (i = 0; i < 20 - (bp - buf); i++) fputc(' ', stderr);
- onig_print_compiled_byte_code(stderr, p, NULL, encode);
+ onig_print_compiled_byte_code(stderr, p, p + strlen((char *)p), NULL, encode);
fprintf(stderr, "\n");
}
#endif
@@ -1328,14 +1332,14 @@ match_at(regex_t* reg, const UChar* str, const UChar* end,
#ifdef USE_FIND_LONGEST_SEARCH_ALL_OF_RANGE
if (IS_FIND_LONGEST(option)) {
if (n > msa->best_len) {
- msa->best_len = n;
+ msa->best_len = (int)n;
msa->best_s = (UChar* )sstart;
}
else
goto end_best_len;
}
#endif
- best_len = n;
+ best_len = (int)n;
region = msa->region;
if (region) {
#ifdef USE_POSIX_API_REGION_OPTION
@@ -1362,18 +1366,16 @@ match_at(regex_t* reg, const UChar* str, const UChar* end,
}
else {
#endif /* USE_POSIX_API_REGION_OPTION */
- region->beg[0] = sstart - str;
- region->end[0] = s - str;
+ region->beg[0] = (int)(sstart - str);
+ region->end[0] = (int)(s - str);
for (i = 1; i <= num_mem; i++) {
if (mem_end_stk[i] != INVALID_STACK_INDEX) {
- if (BIT_STATUS_AT(reg->bt_mem_start, i))
- region->beg[i] = STACK_AT(mem_start_stk[i])->u.mem.pstr - str;
- else
- region->beg[i] = (UChar* )((void* )mem_start_stk[i]) - str;
-
- region->end[i] = (BIT_STATUS_AT(reg->bt_mem_end, i)
- ? STACK_AT(mem_end_stk[i])->u.mem.pstr
- : (UChar* )((void* )mem_end_stk[i])) - str;
+ region->beg[i] = (int)((BIT_STATUS_AT(reg->bt_mem_start, i))
+ ? STACK_AT(mem_start_stk[i])->u.mem.pstr - str
+ : (UChar* )((void* )mem_start_stk[i]) - str);
+ region->end[i] = (int)(BIT_STATUS_AT(reg->bt_mem_end, i)
+ ? STACK_AT(mem_end_stk[i])->u.mem.pstr - str
+ : (UChar* )((void* )mem_end_stk[i]) - str);
}
else {
region->beg[i] = region->end[i] = ONIG_REGION_NOTPOS;
@@ -1878,7 +1880,7 @@ match_at(regex_t* reg, const UChar* str, const UChar* end,
if (scv) goto fail;
STACK_PUSH_ALT_WITH_STATE_CHECK(p, s, sprev, mem);
- n = enclen(encode, s);
+ n = enclen(encode, s, end);
DATA_ENSURE(n);
if (ONIGENC_IS_MBC_NEWLINE(encode, s, end)) goto fail;
sprev = s;
@@ -1896,7 +1898,7 @@ match_at(regex_t* reg, const UChar* str, const UChar* end,
if (scv) goto fail;
STACK_PUSH_ALT_WITH_STATE_CHECK(p, s, sprev, mem);
- n = enclen(encode, s);
+ n = enclen(encode, s, end);
if (n > 1) {
DATA_ENSURE(n);
sprev = s;
@@ -2198,7 +2200,7 @@ match_at(regex_t* reg, const UChar* str, const UChar* end,
n = pend - pstart;
DATA_ENSURE(n);
sprev = s;
- STRING_CMP_IC(case_fold_flag, pstart, &s, n, end);
+ STRING_CMP_IC(case_fold_flag, pstart, &s, (int)n, end);
while (sprev + (len = enclen(encode, sprev, end)) < s)
sprev += len;
@@ -2270,7 +2272,7 @@ match_at(regex_t* reg, const UChar* str, const UChar* end,
DATA_ENSURE(n);
sprev = s;
swork = s;
- STRING_CMP_VALUE_IC(case_fold_flag, pstart, &swork, n, end, is_fail);
+ STRING_CMP_VALUE_IC(case_fold_flag, pstart, &swork, (int)n, end, is_fail);
if (is_fail) continue;
s = swork;
while (sprev + (len = enclen(encode, sprev, end)) < s)
@@ -2345,8 +2347,8 @@ match_at(regex_t* reg, const UChar* str, const UChar* end,
STACK_NULL_CHECK(isnull, mem, s);
if (isnull) {
#ifdef ONIG_DEBUG_MATCH
- fprintf(stderr, "NULL_CHECK_END: skip id:%d, s:%d\n",
- (int )mem, (int )s);
+ fprintf(stderr, "NULL_CHECK_END: skip id:%d, s:%"PRIdPTR"\n",
+ (int )mem, (intptr_t )s);
#endif
null_check_found:
/* empty loop founded, skip next instruction */
@@ -2380,8 +2382,8 @@ match_at(regex_t* reg, const UChar* str, const UChar* end,
STACK_NULL_CHECK_MEMST(isnull, mem, s, reg);
if (isnull) {
#ifdef ONIG_DEBUG_MATCH
- fprintf(stderr, "NULL_CHECK_END_MEMST: skip id:%d, s:%d\n",
- (int )mem, (int )s);
+ fprintf(stderr, "NULL_CHECK_END_MEMST: skip id:%d, s:%"PRIdPTR"\n",
+ (int )mem, (intptr_t )s);
#endif
if (isnull == -1) goto fail;
goto null_check_found;
@@ -2406,8 +2408,8 @@ match_at(regex_t* reg, const UChar* str, const UChar* end,
#endif
if (isnull) {
#ifdef ONIG_DEBUG_MATCH
- fprintf(stderr, "NULL_CHECK_END_MEMST_PUSH: skip id:%d, s:%d\n",
- (int )mem, (int )s);
+ fprintf(stderr, "NULL_CHECK_END_MEMST_PUSH: skip id:%d, s:%"PRIdPTR"\n",
+ (int )mem, (intptr_t )s);
#endif
if (isnull == -1) goto fail;
goto null_check_found;
@@ -2895,11 +2897,11 @@ bm_search_notrev(regex_t* reg, const UChar* target, const UChar* target_end,
{
const UChar *s, *se, *t, *p, *end;
const UChar *tail;
- int skip, tlen1;
+ ptrdiff_t skip, tlen1;
#ifdef ONIG_DEBUG_SEARCH
- fprintf(stderr, "bm_search_notrev: text: %d, text_end: %d, text_range: %d\n",
- (int )text, (int )text_end, (int )text_range);
+ fprintf(stderr, "bm_search_notrev: text: %"PRIuPTR", text_end: %"PRIuPTR", text_range: %"PRIuPTR"\n",
+ text, text_end, text_range);
#endif
tail = target_end - 1;
@@ -2914,11 +2916,10 @@ bm_search_notrev(regex_t* reg, const UChar* target, const UChar* target_end,
while (s < end) {
p = se = s + tlen1;
t = tail;
- while (t >= target && *p == *t) {
- p--; t--;
+ while (*p == *t) {
+ if (t == target) return (UChar* )s;
+ p--; t--;
}
- if (t < target) return (UChar* )s;
-
skip = reg->map[*se];
t = s;
do {
@@ -2930,11 +2931,10 @@ bm_search_notrev(regex_t* reg, const UChar* target, const UChar* target_end,
while (s < end) {
p = se = s + tlen1;
t = tail;
- while (t >= target && *p == *t) {
- p--; t--;
+ while (*p == *t) {
+ if (t == target) return (UChar* )s;
+ p--; t--;
}
- if (t < target) return (UChar* )s;
-
skip = reg->int_map[*se];
t = s;
do {
@@ -2953,6 +2953,11 @@ bm_search(regex_t* reg, const UChar* target, const UChar* target_end,
const UChar *s, *t, *p, *end;
const UChar *tail;
+#ifdef ONIG_DEBUG_SEARCH
+ fprintf(stderr, "bm_search: text: %"PRIuPTR", text_end: %"PRIuPTR", text_range: %"PRIuPTR"\n",
+ text, text_end, text_range);
+#endif
+
end = text_range + (target_end - target) - 1;
if (end > text_end)
end = text_end;
@@ -2963,10 +2968,14 @@ bm_search(regex_t* reg, const UChar* target, const UChar* target_end,
while (s < end) {
p = s;
t = tail;
- while (t >= target && *p == *t) {
+#ifdef ONIG_DEBUG_SEARCH
+ fprintf(stderr, "bm_search_loop: pos: %d %s\n",
+ (int)(s - text), s);
+#endif
+ while (*p == *t) {
+ if (t == target) return (UChar* )p;
p--; t--;
}
- if (t < target) return (UChar* )(p + 1);
s += reg->map[*s];
}
}
@@ -2974,10 +2983,10 @@ bm_search(regex_t* reg, const UChar* target, const UChar* target_end,
while (s < end) {
p = s;
t = tail;
- while (t >= target && *p == *t) {
+ while (*p == *t) {
+ if (t == target) return (UChar* )p;
p--; t--;
}
- if (t < target) return (UChar* )(p + 1);
s += reg->int_map[*s];
}
}
@@ -2996,7 +3005,7 @@ set_bm_backward_skip(UChar* s, UChar* end, OnigEncoding enc ARG_UNUSED,
if (IS_NULL(*skip)) return ONIGERR_MEMORY;
}
- len = end - s;
+ len = (int)(end - s);
for (i = 0; i < ONIG_CHAR_TABLE_SIZE; i++)
(*skip)[i] = len;
@@ -3064,11 +3073,11 @@ map_search_backward(OnigEncoding enc, UChar map[],
return (UChar* )NULL;
}
-extern int
+extern long
onig_match(regex_t* reg, const UChar* str, const UChar* end, const UChar* at, OnigRegion* region,
OnigOptionType option)
{
- int r;
+ long r;
UChar *prev;
OnigMatchArg msa;
@@ -3136,8 +3145,8 @@ forward_search_range(regex_t* reg, const UChar* str, const UChar* end, UChar* s,
UChar *p, *pprev = (UChar* )NULL;
#ifdef ONIG_DEBUG_SEARCH
- fprintf(stderr, "forward_search_range: str: %d, end: %d, s: %d, range: %d\n",
- (int )str, (int )end, (int )s, (int )range);
+ fprintf(stderr, "forward_search_range: str: %"PRIuPTR", end: %"PRIuPTR", s: %"PRIuPTR", range: %"PRIuPTR"\n",
+ str, end, s, range);
#endif
p = s;
@@ -3260,7 +3269,7 @@ static int set_bm_backward_skip P_((UChar* s, UChar* end, OnigEncoding enc,
#define BM_BACKWARD_SEARCH_LENGTH_THRESHOLD 100
-static int
+static long
backward_search_range(regex_t* reg, const UChar* str, const UChar* end,
UChar* s, const UChar* range, UChar* adjrange,
UChar** low, UChar** high)
@@ -3365,11 +3374,11 @@ backward_search_range(regex_t* reg, const UChar* str, const UChar* end,
}
-extern int
+extern long
onig_search(regex_t* reg, const UChar* str, const UChar* end,
const UChar* start, const UChar* range, OnigRegion* region, OnigOptionType option)
{
- int r;
+ long r;
UChar *s, *prev;
OnigMatchArg msa;
const UChar *orig_start = start;
@@ -3404,8 +3413,8 @@ onig_search(regex_t* reg, const UChar* str, const UChar* end,
#ifdef ONIG_DEBUG_SEARCH
fprintf(stderr,
- "onig_search (entry point): str: %d, end: %d, start: %d, range: %d\n",
- (int )str, (int )(end - str), (int )(start - str), (int )(range - str));
+ "onig_search (entry point): str: %"PRIuPTR", end: %"PRIuPTR", start: %"PRIuPTR", range: %"PRIuPTR"\n",
+ str, end - str, start - str, range - str);
#endif
if (region
@@ -3638,11 +3647,6 @@ onig_search(regex_t* reg, const UChar* str, const UChar* end,
MATCH_AND_RETURN_CHECK(orig_range);
prev = s;
s += enclen(reg->enc, s, end);
-
- while (!ONIGENC_IS_MBC_NEWLINE(reg->enc, prev, end) && s < range) {
- prev = s;
- s += enclen(reg->enc, s, end);
- }
} while (s < range);
goto mismatch;
}
diff --git a/regint.h b/regint.h
index fc37f65680..cd3c2a1035 100644
--- a/regint.h
+++ b/regint.h
@@ -4,7 +4,7 @@
regint.h - Oniguruma (regular expression library)
**********************************************************************/
/*-
- * Copyright (c) 2002-2007 K.Kosako <sndgk393 AT ybb DOT ne DOT jp>
+ * Copyright (c) 2002-2008 K.Kosako <sndgk393 AT ybb DOT ne DOT jp>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -48,7 +48,6 @@
#endif
#if defined(__i386) || defined(__i386__) || defined(_M_IX86) || \
- (defined(__ppc__) && defined(__APPLE__)) || \
defined(__x86_64) || defined(__x86_64__) || defined(_M_AMD86) || \
defined(__mc68020__)
#define PLATFORM_UNALIGNED_WORD_ACCESS
@@ -225,6 +224,10 @@
#include "regenc.h"
+#if defined __GNUC__ && __GNUC__ >= 4
+#pragma GCC visibility push(default)
+#endif
+
#ifdef MIN
#undef MIN
#endif
@@ -352,7 +355,7 @@ typedef unsigned char Bits;
typedef Bits BitSet[BITSET_SIZE];
typedef Bits* BitSetRef;
-#define SIZE_BITSET sizeof(BitSet)
+#define SIZE_BITSET (int)sizeof(BitSet)
#define BITSET_CLEAR(bs) do {\
int i;\
@@ -399,7 +402,7 @@ typedef struct _BBuf {
} while (0)
#define BBUF_WRITE(buf,pos,bytes,n) do{\
- int used = (pos) + (n);\
+ int used = (pos) + (int)(n);\
if ((buf)->alloc < (unsigned int )used) BBUF_EXPAND((buf),used);\
xmemcpy((buf)->p + (pos), (bytes), (n));\
if ((buf)->used < (unsigned int )used) (buf)->used = used;\
@@ -582,15 +585,15 @@ typedef short int StateCheckNumType;
typedef void* PointerType;
#define SIZE_OPCODE 1
-#define SIZE_RELADDR sizeof(RelAddrType)
-#define SIZE_ABSADDR sizeof(AbsAddrType)
-#define SIZE_LENGTH sizeof(LengthType)
-#define SIZE_MEMNUM sizeof(MemNumType)
-#define SIZE_STATE_CHECK_NUM sizeof(StateCheckNumType)
-#define SIZE_REPEATNUM sizeof(RepeatNumType)
-#define SIZE_OPTION sizeof(OnigOptionType)
-#define SIZE_CODE_POINT sizeof(OnigCodePoint)
-#define SIZE_POINTER sizeof(PointerType)
+#define SIZE_RELADDR (int)sizeof(RelAddrType)
+#define SIZE_ABSADDR (int)sizeof(AbsAddrType)
+#define SIZE_LENGTH (int)sizeof(LengthType)
+#define SIZE_MEMNUM (int)sizeof(MemNumType)
+#define SIZE_STATE_CHECK_NUM (int)sizeof(StateCheckNumType)
+#define SIZE_REPEATNUM (int)sizeof(RepeatNumType)
+#define SIZE_OPTION (int)sizeof(OnigOptionType)
+#define SIZE_CODE_POINT (int)sizeof(OnigCodePoint)
+#define SIZE_POINTER (int)sizeof(PointerType)
#define GET_RELADDR_INC(addr,p) PLATFORM_GET_INC(addr, p, RelAddrType)
@@ -716,7 +719,7 @@ typedef struct {
BBuf* mbuf; /* multi-byte info or NULL */
} CClassNode;
-typedef long OnigStackIndex;
+typedef intptr_t OnigStackIndex;
typedef struct _OnigStackType {
unsigned int type;
@@ -760,7 +763,7 @@ typedef struct _OnigStackType {
typedef struct {
void* stack_p;
- int stack_n;
+ size_t stack_n;
OnigOptionType options;
OnigRegion* region;
const UChar* start; /* search start position (for \G: BEGIN_POSITION) */
@@ -782,13 +785,13 @@ typedef struct {
typedef struct {
short int opcode;
- char* name;
+ const char* name;
short int arg_type;
} OnigOpInfoType;
extern OnigOpInfoType OnigOpInfo[];
-extern void onig_print_compiled_byte_code P_((FILE* f, UChar* bp, UChar** nextp, OnigEncoding enc));
+/* extern void onig_print_compiled_byte_code P_((FILE* f, UChar* bp, UChar* bpend, UChar** nextp, OnigEncoding enc)); */
#ifdef ONIG_DEBUG_STATISTICS
extern void onig_statistics_init P_((void));
@@ -798,9 +801,8 @@ extern void onig_print_statistics P_((FILE* f));
extern UChar* onig_error_code_to_format P_((int code));
extern void onig_snprintf_with_pattern PV_((UChar buf[], int bufsize, OnigEncoding enc, UChar* pat, UChar* pat_end, const UChar *fmt, ...));
-extern int onig_bbuf_init P_((BBuf* buf, int size));
-extern int onig_alloc_init P_((regex_t** reg, OnigOptionType option, OnigCaseFoldType case_fold_flag, OnigEncoding enc, const OnigSyntaxType* syntax));
-extern int onig_compile P_((regex_t* reg, const UChar* pattern, const UChar* pattern_end, OnigErrorInfo* einfo));
+extern int onig_bbuf_init P_((BBuf* buf, OnigDistance size));
+extern int onig_compile P_((regex_t* reg, const UChar* pattern, const UChar* pattern_end, OnigErrorInfo* einfo, const char *sourcefile, int sourceline));
extern void onig_chain_reduce P_((regex_t* reg));
extern void onig_chain_link_add P_((regex_t* to, regex_t* add));
extern void onig_transfer P_((regex_t* to, regex_t* from));
@@ -816,7 +818,7 @@ typedef st_data_t hash_data_type;
typedef unsigned long hash_data_type;
#endif
-extern hash_table_type* onig_st_init_strend_table_with_size P_((int size));
+extern hash_table_type* onig_st_init_strend_table_with_size P_((st_index_t size));
extern int onig_st_lookup_strend P_((hash_table_type* table, const UChar* str_key, const UChar* end_key, hash_data_type *value));
extern int onig_st_insert_strend P_((hash_table_type* table, const UChar* str_key, const UChar* end_key, hash_data_type value));
@@ -839,4 +841,10 @@ typedef int (*ONIGENC_INIT_PROPERTY_LIST_FUNC_TYPE)(void);
extern int onigenc_property_list_init P_((ONIGENC_INIT_PROPERTY_LIST_FUNC_TYPE));
+extern size_t onig_memsize P_((const regex_t *reg));
+
+#if defined __GNUC__ && __GNUC__ >= 4
+#pragma GCC visibility pop
+#endif
+
#endif /* ONIGURUMA_REGINT_H */
diff --git a/regparse.c b/regparse.c
index 039e2d4f9d..1489f0e58d 100644
--- a/regparse.c
+++ b/regparse.c
@@ -1,8 +1,9 @@
+/* -*- mode:c; c-file-style:"gnu" -*- */
/**********************************************************************
regparse.c - Oniguruma (regular expression library)
**********************************************************************/
/*-
- * Copyright (c) 2002-2007 K.Kosako <sndgk393 AT ybb DOT ne DOT jp>
+ * Copyright (c) 2002-2008 K.Kosako <sndgk393 AT ybb DOT ne DOT jp>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -57,6 +58,7 @@ const OnigSyntaxType OnigSyntaxRuby = {
ONIG_SYN_ALLOW_MULTIPLEX_DEFINITION_NAME |
ONIG_SYN_FIXED_INTERVAL_IS_GREEDY_ONLY |
ONIG_SYN_WARN_CC_OP_NOT_ESCAPED |
+ ONIG_SYN_WARN_CC_DUP |
ONIG_SYN_WARN_REDUNDANT_NESTED_REPEAT )
, ONIG_OPTION_NONE
,
@@ -96,6 +98,8 @@ extern void onig_set_verb_warn_func(OnigWarnFunc f)
onig_verb_warn = f;
}
+static void CC_DUP_WARN(ScanEnv *env);
+
static void
bbuf_free(BBuf* bbuf)
{
@@ -129,7 +133,7 @@ bbuf_clone(BBuf** rto, BBuf* from)
(OnigCodePoint )(ONIGENC_MBC_MINLEN(enc) > 1 ? 0 : 0x80)
#define SET_ALL_MULTI_BYTE_RANGE(enc, pbuf) \
- add_code_range_to_buf(pbuf, MBCODE_START_POS(enc), ~((OnigCodePoint )0))
+ add_code_range_to_buf(pbuf, env, MBCODE_START_POS(enc), ~((OnigCodePoint )0))
#define ADD_ALL_MULTI_BYTE_RANGE(enc, mbuf) do {\
if (! ONIGENC_IS_SINGLEBYTE(enc)) {\
@@ -139,6 +143,11 @@ bbuf_clone(BBuf** rto, BBuf* from)
} while (0)
+#define BITSET_SET_BIT_CHKDUP(bs, pos) do { \
+ if (BITSET_AT(bs, pos)) CC_DUP_WARN(env); \
+ BS_ROOM(bs, pos) |= BS_BIT(pos); \
+} while (0)
+
#define BITSET_IS_EMPTY(bs,empty) do {\
int i;\
empty = 1;\
@@ -150,11 +159,11 @@ bbuf_clone(BBuf** rto, BBuf* from)
} while (0)
static void
-bitset_set_range(BitSetRef bs, int from, int to)
+bitset_set_range(ScanEnv *env, BitSetRef bs, int from, int to)
{
int i;
for (i = from; i <= to && i < SINGLE_BYTE_SIZE; i++) {
- BITSET_SET_BIT(bs, i);
+ BITSET_SET_BIT_CHKDUP(bs, i);
}
}
@@ -217,7 +226,7 @@ onig_strncmp(const UChar* s1, const UChar* s2, int n)
extern void
onig_strcpy(UChar* dest, const UChar* src, const UChar* end)
{
- int len = end - src;
+ ptrdiff_t len = end - src;
if (len > 0) {
xmemcpy(dest, src, len);
dest[len] = (UChar )0;
@@ -228,7 +237,8 @@ onig_strcpy(UChar* dest, const UChar* src, const UChar* end)
static UChar*
strdup_with_null(OnigEncoding enc, UChar* s, UChar* end)
{
- int slen, term_len, i;
+ ptrdiff_t slen;
+ int term_len, i;
UChar *r;
slen = end - s;
@@ -266,7 +276,7 @@ strdup_with_null(OnigEncoding enc, UChar* s, UChar* end)
static UChar*
strcat_capa(UChar* dest, UChar* dest_end, const UChar* src, const UChar* src_end,
- int capa)
+ size_t capa)
{
UChar* r;
@@ -283,7 +293,7 @@ strcat_capa(UChar* dest, UChar* dest_end, const UChar* src, const UChar* src_end
/* dest on static area */
static UChar*
strcat_capa_from_static(UChar* dest, UChar* dest_end,
- const UChar* src, const UChar* src_end, int capa)
+ const UChar* src, const UChar* src_end, size_t capa)
{
UChar* r;
@@ -300,16 +310,19 @@ strcat_capa_from_static(UChar* dest, UChar* dest_end,
#include "ruby/st.h"
typedef struct {
- UChar* s;
- UChar* end;
+ const UChar* s;
+ const UChar* end;
} st_str_end_key;
static int
-str_end_cmp(st_str_end_key* x, st_str_end_key* y)
+str_end_cmp(st_data_t xp, st_data_t yp)
{
- UChar *p, *q;
+ const st_str_end_key *x, *y;
+ const UChar *p, *q;
int c;
+ x = (const st_str_end_key *)xp;
+ y = (const st_str_end_key *)yp;
if ((x->end - x->s) != (y->end - y->s))
return 1;
@@ -325,11 +338,12 @@ str_end_cmp(st_str_end_key* x, st_str_end_key* y)
return 0;
}
-static int
-str_end_hash(st_str_end_key* x)
+static st_index_t
+str_end_hash(st_data_t xp)
{
- UChar *p;
- int val = 0;
+ const st_str_end_key *x = (const st_str_end_key *)xp;
+ const UChar *p;
+ st_index_t val = 0;
p = x->s;
while (p < x->end) {
@@ -340,7 +354,7 @@ str_end_hash(st_str_end_key* x)
}
extern hash_table_type*
-onig_st_init_strend_table_with_size(int size)
+onig_st_init_strend_table_with_size(st_index_t size)
{
static const struct st_hash_type hashType = {
str_end_cmp,
@@ -389,7 +403,7 @@ onig_st_insert_strend(hash_table_type* table, const UChar* str_key,
typedef struct {
UChar* name;
- int name_len; /* byte length */
+ size_t name_len; /* byte length */
int back_num; /* number of backrefs */
int back_alloc;
int back_ref1;
@@ -780,6 +794,7 @@ name_add(regex_t* reg, UChar* name, UChar* name_end, int backref, ScanEnv* env)
e = &(t->e[t->num]);
t->num++;
e->name = strdup_with_null(reg->enc, name, name_end);
+ if (IS_NULL(e->name)) return ONIGERR_MEMORY;
e->name_len = name_end - name;
#endif
}
@@ -942,6 +957,7 @@ scan_env_clear(ScanEnv* env)
env->curr_max_regnum = 0;
env->has_recursion = 0;
#endif
+ env->warnings_flag = 0;
}
static int
@@ -1413,14 +1429,14 @@ node_new_option(OnigOptionType option)
extern int
onig_node_str_cat(Node* node, const UChar* s, const UChar* end)
{
- int addlen = end - s;
+ ptrdiff_t addlen = end - s;
if (addlen > 0) {
- int len = NSTR(node)->end - NSTR(node)->s;
+ ptrdiff_t len = NSTR(node)->end - NSTR(node)->s;
if (NSTR(node)->capa > 0 || (len + addlen > NODE_STR_BUF_SIZE - 1)) {
UChar* p;
- int capa = len + addlen + NODE_STR_MARGIN;
+ ptrdiff_t capa = len + addlen + NODE_STR_MARGIN;
if (capa <= NSTR(node)->capa) {
onig_strcpy(NSTR(node)->s + len, s, end);
@@ -1434,7 +1450,7 @@ onig_node_str_cat(Node* node, const UChar* s, const UChar* end)
CHECK_NULL_RETURN_MEMERR(p);
NSTR(node)->s = p;
- NSTR(node)->capa = capa;
+ NSTR(node)->capa = (int)capa;
}
}
else {
@@ -1688,7 +1704,8 @@ new_code_range(BBuf** pbuf)
}
static int
-add_code_range_to_buf(BBuf** pbuf, OnigCodePoint from, OnigCodePoint to)
+add_code_range_to_buf0(BBuf** pbuf, ScanEnv* env, OnigCodePoint from, OnigCodePoint to,
+ int checkdup)
{
int r, inc_n, pos;
int low, high, bound, x;
@@ -1727,12 +1744,18 @@ add_code_range_to_buf(BBuf** pbuf, OnigCodePoint from, OnigCodePoint to)
else
bound = x;
}
+ /* data[(low-1)*2+1] << from <= data[low*2]
+ * data[(high-1)*2+1] <= to << data[high*2]
+ */
inc_n = low + 1 - high;
if (n + inc_n > ONIG_MAX_MULTI_BYTE_RANGES_NUM)
return ONIGERR_TOO_MANY_MULTI_BYTE_RANGES;
if (inc_n != 1) {
+ if (checkdup && from <= data[low*2+1]
+ && (data[low*2] <= from || data[low*2+1] <= to))
+ CC_DUP_WARN(env);
if (from > data[low*2])
from = data[low*2];
if (to < data[(high - 1)*2 + 1])
@@ -1763,7 +1786,13 @@ add_code_range_to_buf(BBuf** pbuf, OnigCodePoint from, OnigCodePoint to)
}
static int
-add_code_range(BBuf** pbuf, ScanEnv* env, OnigCodePoint from, OnigCodePoint to)
+add_code_range_to_buf(BBuf** pbuf, ScanEnv* env, OnigCodePoint from, OnigCodePoint to)
+{
+ return add_code_range_to_buf0(pbuf, env, from, to, 1);
+}
+
+static int
+add_code_range0(BBuf** pbuf, ScanEnv* env, OnigCodePoint from, OnigCodePoint to, int checkdup)
{
if (from > to) {
if (IS_SYNTAX_BV(env->syntax, ONIG_SYN_ALLOW_EMPTY_RANGE_IN_CC))
@@ -1772,11 +1801,17 @@ add_code_range(BBuf** pbuf, ScanEnv* env, OnigCodePoint from, OnigCodePoint to)
return ONIGERR_EMPTY_RANGE_IN_CHAR_CLASS;
}
- return add_code_range_to_buf(pbuf, from, to);
+ return add_code_range_to_buf0(pbuf, env, from, to, checkdup);
}
static int
-not_code_range_buf(OnigEncoding enc, BBuf* bbuf, BBuf** pbuf)
+add_code_range(BBuf** pbuf, ScanEnv* env, OnigCodePoint from, OnigCodePoint to)
+{
+ return add_code_range0(pbuf, env, from, to, 1);
+}
+
+static int
+not_code_range_buf(OnigEncoding enc, BBuf* bbuf, BBuf** pbuf, ScanEnv* env)
{
int r, i, n;
OnigCodePoint pre, from, *data, to = 0;
@@ -1798,14 +1833,14 @@ not_code_range_buf(OnigEncoding enc, BBuf* bbuf, BBuf** pbuf)
from = data[i*2];
to = data[i*2+1];
if (pre <= from - 1) {
- r = add_code_range_to_buf(pbuf, pre, from - 1);
+ r = add_code_range_to_buf(pbuf, env, pre, from - 1);
if (r != 0) return r;
}
if (to == ~((OnigCodePoint )0)) break;
pre = to + 1;
}
if (to < ~((OnigCodePoint )0)) {
- r = add_code_range_to_buf(pbuf, to + 1, ~((OnigCodePoint )0));
+ r = add_code_range_to_buf(pbuf, env, to + 1, ~((OnigCodePoint )0));
}
return r;
}
@@ -1819,7 +1854,7 @@ not_code_range_buf(OnigEncoding enc, BBuf* bbuf, BBuf** pbuf)
static int
or_code_range_buf(OnigEncoding enc, BBuf* bbuf1, int not1,
- BBuf* bbuf2, int not2, BBuf** pbuf)
+ BBuf* bbuf2, int not2, BBuf** pbuf, ScanEnv* env)
{
int r;
OnigCodePoint i, n1, *data1;
@@ -1845,7 +1880,7 @@ or_code_range_buf(OnigEncoding enc, BBuf* bbuf1, int not1,
return bbuf_clone(pbuf, bbuf2);
}
else {
- return not_code_range_buf(enc, bbuf2, pbuf);
+ return not_code_range_buf(enc, bbuf2, pbuf, env);
}
}
}
@@ -1861,21 +1896,21 @@ or_code_range_buf(OnigEncoding enc, BBuf* bbuf1, int not1,
r = bbuf_clone(pbuf, bbuf2);
}
else if (not1 == 0) { /* 1 OR (not 2) */
- r = not_code_range_buf(enc, bbuf2, pbuf);
+ r = not_code_range_buf(enc, bbuf2, pbuf, env);
}
if (r != 0) return r;
for (i = 0; i < n1; i++) {
from = data1[i*2];
to = data1[i*2+1];
- r = add_code_range_to_buf(pbuf, from, to);
+ r = add_code_range_to_buf(pbuf, env, from, to);
if (r != 0) return r;
}
return 0;
}
static int
-and_code_range1(BBuf** pbuf, OnigCodePoint from1, OnigCodePoint to1,
+and_code_range1(BBuf** pbuf, ScanEnv* env, OnigCodePoint from1, OnigCodePoint to1,
OnigCodePoint* data, int n)
{
int i, r;
@@ -1893,7 +1928,7 @@ and_code_range1(BBuf** pbuf, OnigCodePoint from1, OnigCodePoint to1,
else if (from2 <= to1) {
if (to2 < to1) {
if (from1 <= from2 - 1) {
- r = add_code_range_to_buf(pbuf, from1, from2-1);
+ r = add_code_range_to_buf(pbuf, env, from1, from2-1);
if (r != 0) return r;
}
from1 = to2 + 1;
@@ -1908,14 +1943,14 @@ and_code_range1(BBuf** pbuf, OnigCodePoint from1, OnigCodePoint to1,
if (from1 > to1) break;
}
if (from1 <= to1) {
- r = add_code_range_to_buf(pbuf, from1, to1);
+ r = add_code_range_to_buf(pbuf, env, from1, to1);
if (r != 0) return r;
}
return 0;
}
static int
-and_code_range_buf(BBuf* bbuf1, int not1, BBuf* bbuf2, int not2, BBuf** pbuf)
+and_code_range_buf(BBuf* bbuf1, int not1, BBuf* bbuf2, int not2, BBuf** pbuf, ScanEnv* env)
{
int r;
OnigCodePoint i, j, n1, n2, *data1, *data2;
@@ -1954,7 +1989,7 @@ and_code_range_buf(BBuf* bbuf1, int not1, BBuf* bbuf2, int not2, BBuf** pbuf)
if (to2 < from1) continue;
from = MAX(from1, from2);
to = MIN(to1, to2);
- r = add_code_range_to_buf(pbuf, from, to);
+ r = add_code_range_to_buf(pbuf, env, from, to);
if (r != 0) return r;
}
}
@@ -1963,7 +1998,7 @@ and_code_range_buf(BBuf* bbuf1, int not1, BBuf* bbuf2, int not2, BBuf** pbuf)
for (i = 0; i < n1; i++) {
from1 = data1[i*2];
to1 = data1[i*2+1];
- r = and_code_range1(pbuf, from1, to1, data2, n2);
+ r = and_code_range1(pbuf, env, from1, to1, data2, n2);
if (r != 0) return r;
}
}
@@ -1972,10 +2007,11 @@ and_code_range_buf(BBuf* bbuf1, int not1, BBuf* bbuf2, int not2, BBuf** pbuf)
}
static int
-and_cclass(CClassNode* dest, CClassNode* cc, OnigEncoding enc)
+and_cclass(CClassNode* dest, CClassNode* cc, ScanEnv* env)
{
+ OnigEncoding enc = env->enc;
int r, not1, not2;
- BBuf *buf1, *buf2, *pbuf;
+ BBuf *buf1, *buf2, *pbuf = 0;
BitSetRef bsr1, bsr2;
BitSet bs1, bs2;
@@ -2005,22 +2041,21 @@ and_cclass(CClassNode* dest, CClassNode* cc, OnigEncoding enc)
if (! ONIGENC_IS_SINGLEBYTE(enc)) {
if (not1 != 0 && not2 != 0) {
- r = or_code_range_buf(enc, buf1, 0, buf2, 0, &pbuf);
+ r = or_code_range_buf(enc, buf1, 0, buf2, 0, &pbuf, env);
}
else {
- r = and_code_range_buf(buf1, not1, buf2, not2, &pbuf);
+ r = and_code_range_buf(buf1, not1, buf2, not2, &pbuf, env);
if (r == 0 && not1 != 0) {
- BBuf *tbuf;
- r = not_code_range_buf(enc, pbuf, &tbuf);
- if (r != 0) {
- bbuf_free(pbuf);
- return r;
- }
+ BBuf *tbuf = 0;
+ r = not_code_range_buf(enc, pbuf, &tbuf, env);
bbuf_free(pbuf);
pbuf = tbuf;
}
}
- if (r != 0) return r;
+ if (r != 0) {
+ bbuf_free(pbuf);
+ return r;
+ }
dest->mbuf = pbuf;
bbuf_free(buf1);
@@ -2030,10 +2065,11 @@ and_cclass(CClassNode* dest, CClassNode* cc, OnigEncoding enc)
}
static int
-or_cclass(CClassNode* dest, CClassNode* cc, OnigEncoding enc)
+or_cclass(CClassNode* dest, CClassNode* cc, ScanEnv* env)
{
+ OnigEncoding enc = env->enc;
int r, not1, not2;
- BBuf *buf1, *buf2, *pbuf;
+ BBuf *buf1, *buf2, *pbuf = 0;
BitSetRef bsr1, bsr2;
BitSet bs1, bs2;
@@ -2063,22 +2099,21 @@ or_cclass(CClassNode* dest, CClassNode* cc, OnigEncoding enc)
if (! ONIGENC_IS_SINGLEBYTE(enc)) {
if (not1 != 0 && not2 != 0) {
- r = and_code_range_buf(buf1, 0, buf2, 0, &pbuf);
+ r = and_code_range_buf(buf1, 0, buf2, 0, &pbuf, env);
}
else {
- r = or_code_range_buf(enc, buf1, not1, buf2, not2, &pbuf);
+ r = or_code_range_buf(enc, buf1, not1, buf2, not2, &pbuf, env);
if (r == 0 && not1 != 0) {
- BBuf *tbuf;
- r = not_code_range_buf(enc, pbuf, &tbuf);
- if (r != 0) {
- bbuf_free(pbuf);
- return r;
- }
+ BBuf *tbuf = 0;
+ r = not_code_range_buf(enc, pbuf, &tbuf, env);
bbuf_free(pbuf);
pbuf = tbuf;
}
}
- if (r != 0) return r;
+ if (r != 0) {
+ bbuf_free(pbuf);
+ return r;
+ }
dest->mbuf = pbuf;
bbuf_free(buf1);
@@ -2088,6 +2123,8 @@ or_cclass(CClassNode* dest, CClassNode* cc, OnigEncoding enc)
return 0;
}
+static void UNKNOWN_ESC_WARN(ScanEnv *env, int c);
+
static int
conv_backslash_value(int c, ScanEnv* env)
{
@@ -2106,6 +2143,8 @@ conv_backslash_value(int c, ScanEnv* env)
break;
default:
+ if (('a' <= c && c <= 'z') || ('A' <= c && c <= 'Z'))
+ UNKNOWN_ESC_WARN(env, c);
break;
}
}
@@ -2809,18 +2848,33 @@ fetch_name(OnigCodePoint start_code, UChar** src, UChar* end,
}
#endif /* USE_NAMED_GROUP */
+void onig_vsnprintf_with_pattern(UChar buf[], int bufsize, OnigEncoding enc,
+ UChar* pat, UChar* pat_end, const UChar *fmt, va_list args);
+
+static void
+onig_syntax_warn(ScanEnv *env, const char *fmt, ...)
+{
+ va_list args;
+ UChar buf[WARN_BUFSIZE];
+ va_start(args, fmt);
+ onig_vsnprintf_with_pattern(buf, WARN_BUFSIZE, env->enc,
+ env->pattern, env->pattern_end,
+ (const UChar *)fmt, args);
+ va_end(args);
+ if (env->sourcefile == NULL)
+ rb_warn("%s", (char *)buf);
+ else
+ rb_compile_warn(env->sourcefile, env->sourceline, "%s", (char *)buf);
+}
+
static void
-CC_ESC_WARN(ScanEnv* env, UChar *c)
+CC_ESC_WARN(ScanEnv *env, UChar *c)
{
if (onig_warn == onig_null_warn) return ;
if (IS_SYNTAX_BV(env->syntax, ONIG_SYN_WARN_CC_OP_NOT_ESCAPED) &&
IS_SYNTAX_BV(env->syntax, ONIG_SYN_BACKSLASH_ESCAPE_IN_CC)) {
- UChar buf[WARN_BUFSIZE];
- onig_snprintf_with_pattern(buf, WARN_BUFSIZE, env->enc,
- env->pattern, env->pattern_end,
- (UChar* )"character class has '%s' without escape", c);
- (*onig_warn)((char* )buf);
+ onig_syntax_warn(env, "character class has '%s' without escape", c);
}
}
@@ -2830,14 +2884,29 @@ CLOSE_BRACKET_WITHOUT_ESC_WARN(ScanEnv* env, UChar* c)
if (onig_warn == onig_null_warn) return ;
if (IS_SYNTAX_BV((env)->syntax, ONIG_SYN_WARN_CC_OP_NOT_ESCAPED)) {
- UChar buf[WARN_BUFSIZE];
- onig_snprintf_with_pattern(buf, WARN_BUFSIZE, (env)->enc,
- (env)->pattern, (env)->pattern_end,
- (UChar* )"regular expression has '%s' without escape", c);
- (*onig_warn)((char* )buf);
+ onig_syntax_warn(env, "regular expression has '%s' without escape", c);
+ }
+}
+
+static void
+CC_DUP_WARN(ScanEnv *env)
+{
+ if (onig_warn == onig_null_warn || !RTEST(ruby_verbose)) return ;
+
+ if (IS_SYNTAX_BV((env)->syntax, ONIG_SYN_WARN_CC_DUP) &&
+ !((env)->warnings_flag & ONIG_SYN_WARN_CC_DUP)) {
+ (env)->warnings_flag |= ONIG_SYN_WARN_CC_DUP;
+ onig_syntax_warn(env, "character class has duplicated range");
}
}
+static void
+UNKNOWN_ESC_WARN(ScanEnv *env, int c)
+{
+ if (onig_warn == onig_null_warn || !RTEST(ruby_verbose)) return ;
+ onig_syntax_warn(env, "Unknown escape \\%c is ignored", c);
+}
+
static UChar*
find_str_position(OnigCodePoint s[], int n, UChar* from, UChar* to,
UChar **next, OnigEncoding enc)
@@ -2945,32 +3014,32 @@ fetch_token_in_cc(OnigToken* tok, UChar** src, UChar* end, ScanEnv* env)
switch (c) {
case 'w':
tok->type = TK_CHAR_TYPE;
- tok->u.prop.ctype = ONIGENC_CTYPE_WORD;
+ tok->u.prop.ctype = ONIGENC_CTYPE_W;
tok->u.prop.not = 0;
break;
case 'W':
tok->type = TK_CHAR_TYPE;
- tok->u.prop.ctype = ONIGENC_CTYPE_WORD;
+ tok->u.prop.ctype = ONIGENC_CTYPE_W;
tok->u.prop.not = 1;
break;
case 'd':
tok->type = TK_CHAR_TYPE;
- tok->u.prop.ctype = ONIGENC_CTYPE_DIGIT;
+ tok->u.prop.ctype = ONIGENC_CTYPE_D;
tok->u.prop.not = 0;
break;
case 'D':
tok->type = TK_CHAR_TYPE;
- tok->u.prop.ctype = ONIGENC_CTYPE_DIGIT;
+ tok->u.prop.ctype = ONIGENC_CTYPE_D;
tok->u.prop.not = 1;
break;
case 's':
tok->type = TK_CHAR_TYPE;
- tok->u.prop.ctype = ONIGENC_CTYPE_SPACE;
+ tok->u.prop.ctype = ONIGENC_CTYPE_S;
tok->u.prop.not = 0;
break;
case 'S':
tok->type = TK_CHAR_TYPE;
- tok->u.prop.ctype = ONIGENC_CTYPE_SPACE;
+ tok->u.prop.ctype = ONIGENC_CTYPE_S;
tok->u.prop.not = 1;
break;
case 'h':
@@ -3004,6 +3073,9 @@ fetch_token_in_cc(OnigToken* tok, UChar** src, UChar* end, ScanEnv* env)
PUNFETCH;
}
}
+ else {
+ onig_syntax_warn(env, "invalid Unicode Property \\%c", c);
+ }
break;
case 'x':
@@ -3232,14 +3304,14 @@ fetch_token(OnigToken* tok, UChar** src, UChar* end, ScanEnv* env)
case 'w':
if (! IS_SYNTAX_OP(syn, ONIG_SYN_OP_ESC_W_WORD)) break;
tok->type = TK_CHAR_TYPE;
- tok->u.prop.ctype = ONIGENC_CTYPE_WORD;
+ tok->u.prop.ctype = ONIGENC_CTYPE_W;
tok->u.prop.not = 0;
break;
case 'W':
if (! IS_SYNTAX_OP(syn, ONIG_SYN_OP_ESC_W_WORD)) break;
tok->type = TK_CHAR_TYPE;
- tok->u.prop.ctype = ONIGENC_CTYPE_WORD;
+ tok->u.prop.ctype = ONIGENC_CTYPE_W;
tok->u.prop.not = 1;
break;
@@ -3272,28 +3344,28 @@ fetch_token(OnigToken* tok, UChar** src, UChar* end, ScanEnv* env)
case 's':
if (! IS_SYNTAX_OP(syn, ONIG_SYN_OP_ESC_S_WHITE_SPACE)) break;
tok->type = TK_CHAR_TYPE;
- tok->u.prop.ctype = ONIGENC_CTYPE_SPACE;
+ tok->u.prop.ctype = ONIGENC_CTYPE_S;
tok->u.prop.not = 0;
break;
case 'S':
if (! IS_SYNTAX_OP(syn, ONIG_SYN_OP_ESC_S_WHITE_SPACE)) break;
tok->type = TK_CHAR_TYPE;
- tok->u.prop.ctype = ONIGENC_CTYPE_SPACE;
+ tok->u.prop.ctype = ONIGENC_CTYPE_S;
tok->u.prop.not = 1;
break;
case 'd':
if (! IS_SYNTAX_OP(syn, ONIG_SYN_OP_ESC_D_DIGIT)) break;
tok->type = TK_CHAR_TYPE;
- tok->u.prop.ctype = ONIGENC_CTYPE_DIGIT;
+ tok->u.prop.ctype = ONIGENC_CTYPE_D;
tok->u.prop.not = 0;
break;
case 'D':
if (! IS_SYNTAX_OP(syn, ONIG_SYN_OP_ESC_D_DIGIT)) break;
tok->type = TK_CHAR_TYPE;
- tok->u.prop.ctype = ONIGENC_CTYPE_DIGIT;
+ tok->u.prop.ctype = ONIGENC_CTYPE_D;
tok->u.prop.not = 1;
break;
@@ -3517,8 +3589,10 @@ fetch_token(OnigToken* tok, UChar** src, UChar* end, ScanEnv* env)
}
}
}
- else
- PUNFETCH;
+ else {
+ PUNFETCH;
+ onig_syntax_warn(env, "invalid back reference");
+ }
}
break;
#endif
@@ -3540,8 +3614,10 @@ fetch_token(OnigToken* tok, UChar** src, UChar* end, ScanEnv* env)
tok->u.call.name_end = name_end;
tok->u.call.gnum = gnum;
}
- else
- PUNFETCH;
+ else {
+ onig_syntax_warn(env, "invalid subexp call");
+ PUNFETCH;
+ }
}
break;
#endif
@@ -3569,6 +3645,9 @@ fetch_token(OnigToken* tok, UChar** src, UChar* end, ScanEnv* env)
PUNFETCH;
}
}
+ else {
+ onig_syntax_warn(env, "invalid Unicode Property \\%c", c);
+ }
break;
default:
@@ -3755,7 +3834,7 @@ fetch_token(OnigToken* tok, UChar** src, UChar* end, ScanEnv* env)
static int
add_ctype_to_cc_by_range(CClassNode* cc, int ctype ARG_UNUSED, int not,
- OnigEncoding enc ARG_UNUSED,
+ ScanEnv* env,
OnigCodePoint sb_out, const OnigCodePoint mbr[])
{
int i, r;
@@ -3768,9 +3847,8 @@ add_ctype_to_cc_by_range(CClassNode* cc, int ctype ARG_UNUSED, int not,
for (j = ONIGENC_CODE_RANGE_FROM(mbr, i);
j <= ONIGENC_CODE_RANGE_TO(mbr, i); j++) {
if (j >= sb_out) {
- if (j == ONIGENC_CODE_RANGE_TO(mbr, i)) i++;
- else if (j > ONIGENC_CODE_RANGE_FROM(mbr, i)) {
- r = add_code_range_to_buf(&(cc->mbuf), j,
+ if (j > ONIGENC_CODE_RANGE_FROM(mbr, i)) {
+ r = add_code_range_to_buf(&(cc->mbuf), env, j,
ONIGENC_CODE_RANGE_TO(mbr, i));
if (r != 0) return r;
i++;
@@ -3778,13 +3856,13 @@ add_ctype_to_cc_by_range(CClassNode* cc, int ctype ARG_UNUSED, int not,
goto sb_end;
}
- BITSET_SET_BIT(cc->bs, j);
+ BITSET_SET_BIT_CHKDUP(cc->bs, j);
}
}
sb_end:
for ( ; i < n; i++) {
- r = add_code_range_to_buf(&(cc->mbuf),
+ r = add_code_range_to_buf(&(cc->mbuf), env,
ONIGENC_CODE_RANGE_FROM(mbr, i),
ONIGENC_CODE_RANGE_TO(mbr, i));
if (r != 0) return r;
@@ -3799,12 +3877,12 @@ add_ctype_to_cc_by_range(CClassNode* cc, int ctype ARG_UNUSED, int not,
if (j >= sb_out) {
goto sb_end2;
}
- BITSET_SET_BIT(cc->bs, j);
+ BITSET_SET_BIT_CHKDUP(cc->bs, j);
}
prev = ONIGENC_CODE_RANGE_TO(mbr, i) + 1;
}
for (j = prev; j < sb_out; j++) {
- BITSET_SET_BIT(cc->bs, j);
+ BITSET_SET_BIT_CHKDUP(cc->bs, j);
}
sb_end2:
@@ -3812,14 +3890,14 @@ add_ctype_to_cc_by_range(CClassNode* cc, int ctype ARG_UNUSED, int not,
for (i = 0; i < n; i++) {
if (prev < ONIGENC_CODE_RANGE_FROM(mbr, i)) {
- r = add_code_range_to_buf(&(cc->mbuf), prev,
+ r = add_code_range_to_buf(&(cc->mbuf), env, prev,
ONIGENC_CODE_RANGE_FROM(mbr, i) - 1);
if (r != 0) return r;
}
prev = ONIGENC_CODE_RANGE_TO(mbr, i) + 1;
}
if (prev < 0x7fffffff) {
- r = add_code_range_to_buf(&(cc->mbuf), prev, 0x7fffffff);
+ r = add_code_range_to_buf(&(cc->mbuf), env, prev, 0x7fffffff);
if (r != 0) return r;
}
}
@@ -3835,9 +3913,31 @@ add_ctype_to_cc(CClassNode* cc, int ctype, int not, ScanEnv* env)
OnigCodePoint sb_out;
OnigEncoding enc = env->enc;
+ switch (ctype) {
+ case ONIGENC_CTYPE_D:
+ case ONIGENC_CTYPE_S:
+ case ONIGENC_CTYPE_W:
+ ctype ^= ONIGENC_CTYPE_SPECIAL_MASK;
+ if (not != 0) {
+ for (c = 0; c < SINGLE_BYTE_SIZE; c++) {
+ if (! ONIGENC_IS_ASCII_CODE_CTYPE((OnigCodePoint )c, ctype))
+ BITSET_SET_BIT_CHKDUP(cc->bs, c);
+ }
+ ADD_ALL_MULTI_BYTE_RANGE(enc, cc->mbuf);
+ }
+ else {
+ for (c = 0; c < SINGLE_BYTE_SIZE; c++) {
+ if (ONIGENC_IS_ASCII_CODE_CTYPE((OnigCodePoint )c, ctype))
+ BITSET_SET_BIT_CHKDUP(cc->bs, c);
+ }
+ }
+ return 0;
+ break;
+ }
+
r = ONIGENC_GET_CTYPE_CODE_RANGE(enc, ctype, &sb_out, &ranges);
if (r == 0) {
- return add_ctype_to_cc_by_range(cc, ctype, not, env->enc, sb_out, ranges);
+ return add_ctype_to_cc_by_range(cc, ctype, not, env, sb_out, ranges);
}
else if (r != ONIG_NO_SUPPORT_CONFIG) {
return r;
@@ -3859,14 +3959,14 @@ add_ctype_to_cc(CClassNode* cc, int ctype, int not, ScanEnv* env)
if (not != 0) {
for (c = 0; c < SINGLE_BYTE_SIZE; c++) {
if (! ONIGENC_IS_CODE_CTYPE(enc, (OnigCodePoint )c, ctype))
- BITSET_SET_BIT(cc->bs, c);
+ BITSET_SET_BIT_CHKDUP(cc->bs, c);
}
ADD_ALL_MULTI_BYTE_RANGE(enc, cc->mbuf);
}
else {
for (c = 0; c < SINGLE_BYTE_SIZE; c++) {
if (ONIGENC_IS_CODE_CTYPE(enc, (OnigCodePoint )c, ctype))
- BITSET_SET_BIT(cc->bs, c);
+ BITSET_SET_BIT_CHKDUP(cc->bs, c);
}
}
break;
@@ -3876,13 +3976,13 @@ add_ctype_to_cc(CClassNode* cc, int ctype, int not, ScanEnv* env)
if (not != 0) {
for (c = 0; c < SINGLE_BYTE_SIZE; c++) {
if (! ONIGENC_IS_CODE_CTYPE(enc, (OnigCodePoint )c, ctype))
- BITSET_SET_BIT(cc->bs, c);
+ BITSET_SET_BIT_CHKDUP(cc->bs, c);
}
}
else {
for (c = 0; c < SINGLE_BYTE_SIZE; c++) {
if (ONIGENC_IS_CODE_CTYPE(enc, (OnigCodePoint )c, ctype))
- BITSET_SET_BIT(cc->bs, c);
+ BITSET_SET_BIT_CHKDUP(cc->bs, c);
}
ADD_ALL_MULTI_BYTE_RANGE(enc, cc->mbuf);
}
@@ -3891,7 +3991,7 @@ add_ctype_to_cc(CClassNode* cc, int ctype, int not, ScanEnv* env)
case ONIGENC_CTYPE_WORD:
if (not == 0) {
for (c = 0; c < SINGLE_BYTE_SIZE; c++) {
- if (IS_CODE_SB_WORD(enc, c)) BITSET_SET_BIT(cc->bs, c);
+ if (IS_CODE_SB_WORD(enc, c)) BITSET_SET_BIT_CHKDUP(cc->bs, c);
}
ADD_ALL_MULTI_BYTE_RANGE(enc, cc->mbuf);
}
@@ -3899,7 +3999,7 @@ add_ctype_to_cc(CClassNode* cc, int ctype, int not, ScanEnv* env)
for (c = 0; c < SINGLE_BYTE_SIZE; c++) {
if ((ONIGENC_CODE_TO_MBCLEN(enc, c) > 0) /* check invalid code point */
&& ! ONIGENC_IS_CODE_WORD(enc, c))
- BITSET_SET_BIT(cc->bs, c);
+ BITSET_SET_BIT_CHKDUP(cc->bs, c);
}
}
break;
@@ -4064,7 +4164,7 @@ next_state_class(CClassNode* cc, OnigCodePoint* vs, enum CCVALTYPE* type,
if (*state == CCS_VALUE && *type != CCV_CLASS) {
if (*type == CCV_SB)
- BITSET_SET_BIT(cc->bs, (int )(*vs));
+ BITSET_SET_BIT_CHKDUP(cc->bs, (int )(*vs));
else if (*type == CCV_CODE_POINT) {
r = add_code_range(&(cc->mbuf), env, *vs, *vs);
if (r < 0) return r;
@@ -4087,7 +4187,7 @@ next_state_val(CClassNode* cc, OnigCodePoint *vs, OnigCodePoint v,
switch (*state) {
case CCS_VALUE:
if (*type == CCV_SB)
- BITSET_SET_BIT(cc->bs, (int )(*vs));
+ BITSET_SET_BIT_CHKDUP(cc->bs, (int )(*vs));
else if (*type == CCV_CODE_POINT) {
r = add_code_range(&(cc->mbuf), env, *vs, *vs);
if (r < 0) return r;
@@ -4106,7 +4206,7 @@ next_state_val(CClassNode* cc, OnigCodePoint *vs, OnigCodePoint v,
else
return ONIGERR_EMPTY_RANGE_IN_CHAR_CLASS;
}
- bitset_set_range(cc->bs, (int )*vs, (int )v);
+ bitset_set_range(env, cc->bs, (int )*vs, (int )v);
}
else {
r = add_code_range(&(cc->mbuf), env, *vs, v);
@@ -4123,7 +4223,7 @@ next_state_val(CClassNode* cc, OnigCodePoint *vs, OnigCodePoint v,
else
return ONIGERR_EMPTY_RANGE_IN_CHAR_CLASS;
}
- bitset_set_range(cc->bs, (int )*vs, (int )(v < 0xff ? v : 0xff));
+ bitset_set_range(env, cc->bs, (int )*vs, (int )(v < 0xff ? v : 0xff));
r = add_code_range(&(cc->mbuf), env, (OnigCodePoint )*vs, v);
if (r < 0) return r;
#if 0
@@ -4404,12 +4504,11 @@ parse_char_class(Node** np, OnigToken* tok, UChar** src, UChar* end,
CClassNode* acc;
r = parse_char_class(&anode, tok, &p, end, env);
- if (r != 0) goto cc_open_err;
- acc = NCCLASS(anode);
- r = or_cclass(cc, acc, env->enc);
-
+ if (r == 0) {
+ acc = NCCLASS(anode);
+ r = or_cclass(cc, acc, env);
+ }
onig_node_free(anode);
- cc_open_err:
if (r != 0) goto err;
}
break;
@@ -4426,7 +4525,7 @@ parse_char_class(Node** np, OnigToken* tok, UChar** src, UChar* end,
state = CCS_START;
if (IS_NOT_NULL(prev_cc)) {
- r = and_cclass(prev_cc, cc, env->enc);
+ r = and_cclass(prev_cc, cc, env);
if (r != 0) goto err;
bbuf_free(cc->mbuf);
}
@@ -4463,7 +4562,7 @@ parse_char_class(Node** np, OnigToken* tok, UChar** src, UChar* end,
}
if (IS_NOT_NULL(prev_cc)) {
- r = and_cclass(prev_cc, cc, env->enc);
+ r = and_cclass(prev_cc, cc, env);
if (r != 0) goto err;
bbuf_free(cc->mbuf);
cc = prev_cc;
@@ -4486,7 +4585,7 @@ parse_char_class(Node** np, OnigToken* tok, UChar** src, UChar* end,
if (ONIGENC_IS_CODE_NEWLINE(env->enc, NEWLINE_CODE)) {
if (ONIGENC_CODE_TO_MBCLEN(env->enc, NEWLINE_CODE) == 1)
- BITSET_SET_BIT(cc->bs, NEWLINE_CODE);
+ BITSET_SET_BIT_CHKDUP(cc->bs, NEWLINE_CODE);
else
add_code_range(&(cc->mbuf), env, NEWLINE_CODE, NEWLINE_CODE);
}
@@ -4498,7 +4597,6 @@ parse_char_class(Node** np, OnigToken* tok, UChar** src, UChar* end,
err:
if (cc != NCCLASS(*np))
bbuf_free(cc->mbuf);
- onig_node_free(*np);
return r;
}
@@ -4732,7 +4830,10 @@ parse_enclose(Node** np, OnigToken* tok, int term, UChar** src, UChar* end,
r = fetch_token(tok, &p, end, env);
if (r < 0) return r;
r = parse_subexp(&target, tok, term, &p, end, env);
- if (r < 0) return r;
+ if (r < 0) {
+ onig_node_free(target);
+ return r;
+ }
if (NTYPE(*np) == NT_ANCHOR)
NANCHOR(*np)->target = target;
@@ -4868,7 +4969,7 @@ static int type_cclass_cmp(type_cclass_key* x, type_cclass_key* y)
return 0;
}
-static int type_cclass_hash(type_cclass_key* key)
+static st_index_t type_cclass_hash(type_cclass_key* key)
{
int i, val;
UChar *p;
@@ -4979,7 +5080,7 @@ i_apply_case_fold(OnigCodePoint from, OnigCodePoint to[],
if ((is_in != 0 && !IS_NCCLASS_NOT(cc)) ||
(is_in == 0 && IS_NCCLASS_NOT(cc))) {
if (ONIGENC_MBC_MINLEN(env->enc) > 1 || *to >= SINGLE_BYTE_SIZE) {
- add_code_range(&(cc->mbuf), env, *to, *to);
+ add_code_range0(&(cc->mbuf), env, *to, *to, 0);
}
else {
BITSET_SET_BIT(bs, *to);
@@ -4989,7 +5090,7 @@ i_apply_case_fold(OnigCodePoint from, OnigCodePoint to[],
if (is_in != 0) {
if (ONIGENC_MBC_MINLEN(env->enc) > 1 || *to >= SINGLE_BYTE_SIZE) {
if (IS_NCCLASS_NOT(cc)) clear_not_flag_cclass(cc, env->enc);
- add_code_range(&(cc->mbuf), env, *to, *to);
+ add_code_range0(&(cc->mbuf), env, *to, *to, 0);
}
else {
if (IS_NCCLASS_NOT(cc)) {
@@ -5055,9 +5156,8 @@ parse_exp(Node** np, OnigToken* tok, int term,
case TK_ALT:
case TK_EOT:
end_of_token:
- *np = node_new_empty();
- return tok->type;
- break;
+ *np = node_new_empty();
+ return tok->type;
case TK_SUBEXP_OPEN:
r = parse_enclose(np, tok, TK_SUBEXP_CLOSE, src, end, env);
@@ -5072,7 +5172,10 @@ parse_exp(Node** np, OnigToken* tok, int term,
if (r < 0) return r;
r = parse_subexp(&target, tok, term, src, end, env);
env->option = prev;
- if (r < 0) return r;
+ if (r < 0) {
+ onig_node_free(target);
+ return r;
+ }
NENCLOSE(*np)->target = target;
return tok->type;
}
@@ -5183,6 +5286,19 @@ parse_exp(Node** np, OnigToken* tok, int term,
case TK_CHAR_TYPE:
{
switch (tok->u.prop.ctype) {
+ case ONIGENC_CTYPE_D:
+ case ONIGENC_CTYPE_S:
+ case ONIGENC_CTYPE_W:
+ {
+ CClassNode* cc;
+ *np = node_new_cclass();
+ CHECK_NULL_RETURN_MEMERR(*np);
+ cc = NCCLASS(*np);
+ add_ctype_to_cc(cc, tok->u.prop.ctype, 0, env);
+ if (tok->u.prop.not != 0) NCCLASS_SET_NOT(cc);
+ }
+ break;
+
case ONIGENC_CTYPE_WORD:
*np = node_new_ctype(tok->u.prop.ctype, tok->u.prop.not);
CHECK_NULL_RETURN_MEMERR(*np);
@@ -5386,7 +5502,10 @@ parse_exp(Node** np, OnigToken* tok, int term,
CHECK_NULL_RETURN_MEMERR(qn);
NQTFR(qn)->greedy = tok->u.repeat.greedy;
r = set_quantifier(qn, *targetp, group, env);
- if (r < 0) return r;
+ if (r < 0) {
+ onig_node_free(qn);
+ return r;
+ }
if (tok->u.repeat.possessive != 0) {
Node* en;
@@ -5409,9 +5528,15 @@ parse_exp(Node** np, OnigToken* tok, int term,
Node *tmp;
*targetp = node_new_list(*targetp, NULL);
- CHECK_NULL_RETURN_MEMERR(*targetp);
+ if (IS_NULL(*targetp)) {
+ onig_node_free(qn);
+ return ONIGERR_MEMORY;
+ }
tmp = NCDR(*targetp) = node_new_list(qn, NULL);
- CHECK_NULL_RETURN_MEMERR(tmp);
+ if (IS_NULL(tmp)) {
+ onig_node_free(qn);
+ return ONIGERR_MEMORY;
+ }
targetp = &(NCAR(tmp));
}
goto re_entry;
@@ -5430,7 +5555,10 @@ parse_branch(Node** top, OnigToken* tok, int term,
*top = NULL;
r = parse_exp(&node, tok, term, src, end, env);
- if (r < 0) return r;
+ if (r < 0) {
+ onig_node_free(node);
+ return r;
+ }
if (r == TK_EOT || r == term || r == TK_ALT) {
*top = node;
@@ -5440,7 +5568,10 @@ parse_branch(Node** top, OnigToken* tok, int term,
headp = &(NCDR(*top));
while (r != TK_EOT && r != term && r != TK_ALT) {
r = parse_exp(&node, tok, term, src, end, env);
- if (r < 0) return r;
+ if (r < 0) {
+ onig_node_free(node);
+ return r;
+ }
if (NTYPE(node) == NT_LIST) {
*headp = node;
@@ -5482,7 +5613,10 @@ parse_subexp(Node** top, OnigToken* tok, int term,
r = fetch_token(tok, src, end, env);
if (r < 0) return r;
r = parse_branch(&node, tok, term, src, end, env);
- if (r < 0) return r;
+ if (r < 0) {
+ onig_node_free(node);
+ return r;
+ }
*headp = onig_node_new_alt(node, NULL);
headp = &(NCDR(*headp));
@@ -5492,6 +5626,7 @@ parse_subexp(Node** top, OnigToken* tok, int term,
goto err;
}
else {
+ onig_node_free(node);
err:
if (term == TK_SUBEXP_CLOSE)
return ONIGERR_END_PATTERN_WITH_UNMATCHED_PARENTHESIS;
diff --git a/regparse.h b/regparse.h
index b6783264f2..e1a00ddfda 100644
--- a/regparse.h
+++ b/regparse.h
@@ -31,6 +31,10 @@
#include "regint.h"
+#if defined __GNUC__ && __GNUC__ >= 4
+#pragma GCC visibility push(default)
+#endif
+
/* node type */
#define NT_STR 0
#define NT_CCLASS 1
@@ -96,7 +100,7 @@
#define NSTR_AMBIG (1<<1)
#define NSTR_DONT_GET_OPT_INFO (1<<2)
-#define NSTRING_LEN(node) ((node)->u.str.end - (node)->u.str.s)
+#define NSTRING_LEN(node) (OnigDistance)((node)->u.str.end - (node)->u.str.s)
#define NSTRING_SET_RAW(node) (node)->u.str.flag |= NSTR_RAW
#define NSTRING_CLEAR_RAW(node) (node)->u.str.flag &= ~NSTR_RAW
#define NSTRING_SET_AMBIG(node) (node)->u.str.flag |= NSTR_AMBIG
@@ -306,6 +310,9 @@ typedef struct {
int curr_max_regnum;
int has_recursion;
#endif
+ int warnings_flag;
+ const char* sourcefile;
+ int sourceline;
} ScanEnv;
@@ -348,4 +355,8 @@ extern int onig_print_names(FILE*, regex_t*);
#endif
#endif
+#if defined __GNUC__ && __GNUC__ >= 4
+#pragma GCC visibility pop
+#endif
+
#endif /* ONIGURUMA_REGPARSE_H */
diff --git a/ruby.c b/ruby.c
index 3188b7135b..3c97d01ddd 100644
--- a/ruby.c
+++ b/ruby.c
@@ -17,6 +17,7 @@
#endif
#include "ruby/ruby.h"
#include "ruby/encoding.h"
+#include "internal.h"
#include "eval_intern.h"
#include "dln.h"
#include <stdio.h>
@@ -51,12 +52,6 @@
char *getenv();
#endif
-VALUE rb_parser_get_yydebug(VALUE);
-VALUE rb_parser_set_yydebug(VALUE, VALUE);
-
-const char *ruby_get_inplace_mode(void);
-void ruby_set_inplace_mode(const char *);
-
#define DISABLE_BIT(bit) (1U << disable_##bit)
enum disable_flag_bits {
disable_gems,
@@ -71,6 +66,8 @@ enum dump_flag_bits {
dump_usage,
dump_yydebug,
dump_syntax,
+ dump_parsetree,
+ dump_parsetree_with_comment,
dump_insns,
dump_flag_count
};
@@ -109,19 +106,19 @@ cmdline_options_init(struct cmdline_options *opt)
opt->src.enc.index = src_encoding_index;
opt->ext.enc.index = -1;
opt->intern.enc.index = -1;
+#if defined DISABLE_RUBYGEMS && DISABLE_RUBYGEMS
+ opt->disable |= DISABLE_BIT(gems);
+#endif
return opt;
}
static NODE *load_file(VALUE, const char *, int, struct cmdline_options *);
static void forbid_setid(const char *, struct cmdline_options *);
-#define forbid_setid(s) forbid_setid(s, opt)
+#define forbid_setid(s) forbid_setid((s), opt)
static struct {
int argc;
char **argv;
-#if !defined(PSTAT_SETCMD) && !defined(HAVE_SETPROCTITLE)
- size_t len;
-#endif
} origarg;
static void
@@ -147,10 +144,10 @@ usage(const char *name)
"-rlibrary require the library, before executing your script",
"-s enable some switch parsing for switches after script name",
"-S look for the script using PATH environment variable",
- "-T[level] turn on tainting checks",
+ "-T[level=1] turn on tainting checks",
"-v print version number, then turn on verbose mode",
"-w turn warnings on for your script",
- "-W[level] set warning level; 0=silence, 1=medium, 2=verbose (default for level)",
+ "-W[level=2] set warning level; 0=silence, 1=medium, 2=verbose",
"-x[directory] strip off text before #!ruby line and perhaps cd to directory",
"--copyright print the copyright",
"--version print the version",
@@ -163,8 +160,6 @@ usage(const char *name)
printf(" %s\n", *p++);
}
-VALUE rb_get_load_path(void);
-
#ifdef MANGLED_PATH
static VALUE
rubylib_mangled_path(const char *s, unsigned int l)
@@ -253,7 +248,14 @@ push_include_cygwin(const char *path, VALUE (*filter)(VALUE))
p = strncpy(RSTRING_PTR(buf), p, len);
}
}
- if (cygwin_conv_to_posix_path(p, rubylib) == 0)
+#ifdef HAVE_CYGWIN_CONV_PATH
+#define CONV_TO_POSIX_PATH(p, lib) \
+ cygwin_conv_path(CCP_WIN_A_TO_POSIX|CCP_RELATIVE, (p), (lib), sizeof(lib))
+#else
+#define CONV_TO_POSIX_PATH(p, lib) \
+ cygwin_conv_to_posix_path((p), (lib))
+#endif
+ if (CONV_TO_POSIX_PATH(p, rubylib) == 0)
p = rubylib;
push_include(p, filter);
if (!*s) break;
@@ -337,10 +339,11 @@ void
ruby_init_loadpath_safe(int safe_level)
{
VALUE load_path;
+ ID id_initial_load_path_mark;
extern const char ruby_initial_load_paths[];
const char *paths = ruby_initial_load_paths;
#if defined LOAD_RELATIVE
-# if defined HAVE_DLADDR || (defined __CYGWIN__ && defined CCP_WIN_A_TO_POSIX)
+# if defined HAVE_DLADDR || defined HAVE_CYGWIN_CONV_PATH
# define VARIABLE_LIBPATH 1
# else
# define VARIABLE_LIBPATH 0
@@ -350,13 +353,13 @@ ruby_init_loadpath_safe(int safe_level)
VALUE sopath;
# else
char libpath[MAXPATHLEN + 1];
- size_t baselen;
# endif
+ size_t baselen;
char *p;
#if defined _WIN32 || defined __CYGWIN__
# if VARIABLE_LIBPATH
- sopath = rb_str_tmp_new(MAXPATHLEN);
+ sopath = rb_str_new(0, MAXPATHLEN);
libpath = RSTRING_PTR(sopath);
GetModuleFileName(libruby, libpath, MAXPATHLEN);
# else
@@ -366,12 +369,17 @@ ruby_init_loadpath_safe(int safe_level)
_execname(libpath, sizeof(libpath) - 1);
#elif defined(HAVE_DLADDR)
Dl_info dli;
- if (dladdr(expand_include_path, &dli)) {
- VALUE fname = rb_str_new_cstr(dli.dli_fname);
- sopath = rb_file_absolute_path(fname, Qnil);
- rb_str_resize(fname, 0);
- libpath = RSTRING_PTR(sopath);
+ if (dladdr((void *)(VALUE)expand_include_path, &dli)) {
+ char fbuf[MAXPATHLEN];
+ char *f = dln_find_file_r(dli.dli_fname, getenv(PATH_ENV), fbuf, sizeof(fbuf));
+ VALUE fname = rb_str_new_cstr(f ? f : dli.dli_fname);
+ rb_str_freeze(fname);
+ sopath = rb_realpath_internal(Qnil, fname, 1);
}
+ else {
+ sopath = rb_str_new(0, 0);
+ }
+ libpath = RSTRING_PTR(sopath);
#endif
#if !VARIABLE_LIBPATH
@@ -385,7 +393,7 @@ ruby_init_loadpath_safe(int safe_level)
const int win_to_posix = CCP_WIN_A_TO_POSIX | CCP_RELATIVE;
size_t newsize = cygwin_conv_path(win_to_posix, libpath, 0, 0);
if (newsize > 0) {
- VALUE rubylib = rb_str_tmp_new(newsize);
+ VALUE rubylib = rb_str_new(0, newsize);
p = RSTRING_PTR(rubylib);
if (cygwin_conv_path(win_to_posix, libpath, p, newsize) == 0) {
rb_str_resize(sopath, 0);
@@ -413,36 +421,42 @@ ruby_init_loadpath_safe(int safe_level)
strlcpy(libpath, ".", sizeof(libpath));
p = libpath + 1;
}
-
baselen = p - libpath;
-
-#define BASEPATH() rb_str_buf_cat(rb_str_buf_new(baselen+len), libpath, baselen)
+#define PREFIX_PATH() rb_str_new(libpath, baselen)
#else
- rb_str_set_len(sopath, p - libpath);
-
-#define BASEPATH() rb_str_dup(sopath)
+ baselen = p - libpath;
+ rb_str_resize(sopath, baselen);
+ libpath = RSTRING_PTR(sopath);
+#define PREFIX_PATH() sopath
#endif
-#define RUBY_RELATIVE(path, len) rb_str_buf_cat(BASEPATH(), path, len)
+#define BASEPATH() rb_str_buf_cat(rb_str_buf_new(baselen+len), libpath, baselen)
+
+#define RUBY_RELATIVE(path, len) rb_str_buf_cat(BASEPATH(), (path), (len))
#else
-#define RUBY_RELATIVE(path, len) rubylib_mangled_path(path, len)
+ static const char exec_prefix[] = RUBY_EXEC_PREFIX;
+#define RUBY_RELATIVE(path, len) rubylib_mangled_path((path), (len))
+#define PREFIX_PATH() RUBY_RELATIVE(exec_prefix, sizeof(exec_prefix)-1)
#endif
-#define incpush(path) rb_ary_push(load_path, (path))
load_path = GET_VM()->load_path;
if (safe_level == 0) {
+#ifdef MANGLED_PATH
+ rubylib_mangled_path("", 0);
+#endif
ruby_push_include(getenv("RUBYLIB"), identical_path);
}
+ id_initial_load_path_mark = rb_intern_const("@gem_prelude_index");
while (*paths) {
size_t len = strlen(paths);
- incpush(RUBY_RELATIVE(paths, len));
+ VALUE path = RUBY_RELATIVE(paths, len);
+ rb_ivar_set(path, id_initial_load_path_mark, path);
+ rb_ary_push(load_path, path);
paths += len + 1;
}
- if (safe_level == 0) {
- rb_ary_push(load_path, rb_str_new_cstr("."));
- }
+ rb_const_set(rb_cObject, rb_intern_const("TMP_RUBY_PREFIX"), rb_obj_freeze(PREFIX_PATH()));
}
@@ -458,13 +472,11 @@ add_modules(VALUE *req_list, const char *mod)
rb_ary_push(list, rb_obj_freeze(rb_str_new2(mod)));
}
-extern void Init_ext(void);
-extern VALUE rb_vm_top_self(void);
-
static void
require_libraries(VALUE *req_list)
{
VALUE list = *req_list;
+ VALUE self = rb_vm_top_self();
ID require;
rb_thread_t *th = GET_THREAD();
rb_block_t *prev_base_block = th->base_block;
@@ -476,7 +488,7 @@ require_libraries(VALUE *req_list)
CONST_ID(require, "require");
while (list && RARRAY_LEN(list) > 0) {
VALUE feature = rb_ary_shift(list);
- rb_funcall2(rb_vm_top_self(), require, 1, &feature);
+ rb_funcall2(self, require, 1, &feature);
}
*req_list = 0;
@@ -498,7 +510,7 @@ process_sflag(int *sflag)
VALUE v = *args++;
char *s = StringValuePtr(v);
char *p;
- int hyphen = Qfalse;
+ int hyphen = FALSE;
if (s[0] != '-')
break;
@@ -515,7 +527,7 @@ process_sflag(int *sflag)
break;
}
if (*p == '-') {
- hyphen = Qtrue;
+ hyphen = TRUE;
}
else if (*p != '_' && !ISALNUM(*p)) {
VALUE name_error[2];
@@ -548,8 +560,6 @@ process_sflag(int *sflag)
}
}
-NODE *rb_parser_append_print(VALUE, NODE *);
-NODE *rb_parser_while_loop(VALUE, NODE *, int, int);
static long proc_options(long argc, char **argv, struct cmdline_options *opt, int envopt);
static void
@@ -600,16 +610,16 @@ moreswitches(const char *s, struct cmdline_options *opt, int envopt)
}
#define NAME_MATCH_P(name, str, len) \
- ((len) < (int)sizeof(name) && strncmp((str), name, (len)) == 0)
+ ((len) < (int)sizeof(name) && strncmp((str), (name), (len)) == 0)
#define UNSET_WHEN(name, bit, str, len) \
- if (NAME_MATCH_P(name, str, len)) { \
+ if (NAME_MATCH_P((name), (str), (len))) { \
*(unsigned int *)arg &= ~(bit); \
return; \
}
#define SET_WHEN(name, bit, str, len) \
- if (NAME_MATCH_P(name, str, len)) { \
+ if (NAME_MATCH_P((name), (str), (len))) { \
*(unsigned int *)arg |= (bit); \
return; \
}
@@ -649,9 +659,11 @@ dump_option(const char *str, int len, void *arg)
SET_WHEN_DUMP(usage);
SET_WHEN_DUMP(yydebug);
SET_WHEN_DUMP(syntax);
+ SET_WHEN_DUMP(parsetree);
+ SET_WHEN_DUMP(parsetree_with_comment);
SET_WHEN_DUMP(insns);
rb_warn("don't know how to dump `%.*s',", len, str);
- rb_warn("but only [version, copyright, usage, yydebug, syntax, insns].");
+ rb_warn("but only [version, copyright, usage, yydebug, syntax, parsetree, parsetree_with_comment, insns].");
}
static void
@@ -671,11 +683,11 @@ set_option_encoding_once(const char *type, VALUE *name, const char *e, long elen
}
#define set_internal_encoding_once(opt, e, elen) \
- set_option_encoding_once("default_intenal", &opt->intern.enc.name, e, elen)
+ set_option_encoding_once("default_internal", &(opt)->intern.enc.name, (e), (elen))
#define set_external_encoding_once(opt, e, elen) \
- set_option_encoding_once("default_extenal", &opt->ext.enc.name, e, elen)
+ set_option_encoding_once("default_external", &(opt)->ext.enc.name, (e), (elen))
#define set_source_encoding_once(opt, e, elen) \
- set_option_encoding_once("source", &opt->src.enc.name, e, elen)
+ set_option_encoding_once("source", &(opt)->src.enc.name, (e), (elen))
static long
proc_options(long argc, char **argv, struct cmdline_options *opt, int envopt)
@@ -696,17 +708,17 @@ proc_options(long argc, char **argv, struct cmdline_options *opt, int envopt)
switch (*s) {
case 'a':
if (envopt) goto noenvopt;
- opt->do_split = Qtrue;
+ opt->do_split = TRUE;
s++;
goto reswitch;
case 'p':
if (envopt) goto noenvopt;
- opt->do_print = Qtrue;
+ opt->do_print = TRUE;
/* through */
case 'n':
if (envopt) goto noenvopt;
- opt->do_loop = Qtrue;
+ opt->do_loop = TRUE;
s++;
goto reswitch;
@@ -779,7 +791,7 @@ proc_options(long argc, char **argv, struct cmdline_options *opt, int envopt)
case 'l':
if (envopt) goto noenvopt;
- opt->do_line = Qtrue;
+ opt->do_line = TRUE;
rb_output_rs = rb_rs;
s++;
goto reswitch;
@@ -787,7 +799,7 @@ proc_options(long argc, char **argv, struct cmdline_options *opt, int envopt)
case 'S':
if (envopt) goto noenvopt;
forbid_setid("-S");
- opt->do_search = Qtrue;
+ opt->do_search = TRUE;
s++;
goto reswitch;
@@ -829,7 +841,7 @@ proc_options(long argc, char **argv, struct cmdline_options *opt, int envopt)
case 'x':
if (envopt) goto noenvopt;
- opt->xflag = Qtrue;
+ opt->xflag = TRUE;
s++;
if (*s && chdir(s) < 0) {
rb_fatal("Can't chdir to %s", s);
@@ -950,17 +962,17 @@ proc_options(long argc, char **argv, struct cmdline_options *opt, int envopt)
s++;
# define is_option_end(c, allow_hyphen) \
- (!(c) || (allow_hyphen && (c) == '-') || (c) == '=')
+ (!(c) || ((allow_hyphen) && (c) == '-') || (c) == '=')
# define check_envopt(name, allow_envopt) \
- ((allow_envopt || !envopt) ? (void)0 : \
+ (((allow_envopt) || !envopt) ? (void)0 : \
rb_raise(rb_eRuntimeError, "invalid switch in RUBYOPT: --" name))
# define need_argument(name, s) \
- ((*s++ ? !*s : (!--argc || !(s = *++argv))) ? \
+ ((*(s)++ ? !*(s) : (!--argc || !((s) = *++argv))) ? \
rb_raise(rb_eRuntimeError, "missing argument for --" name) \
: (void)0)
# define is_option_with_arg(name, allow_hyphen, allow_envopt) \
- (strncmp(name, s, n = sizeof(name) - 1) == 0 && is_option_end(s[n], allow_hyphen) ? \
- (check_envopt(name, allow_envopt), s += n, need_argument(name, s), 1) : 0)
+ (strncmp((name), s, n = sizeof(name) - 1) == 0 && is_option_end(s[n], (allow_hyphen)) ? \
+ (check_envopt(name, (allow_envopt)), s += n, need_argument(name, s), 1) : 0)
if (strcmp("copyright", s) == 0) {
if (envopt) goto noenvopt_long;
@@ -992,7 +1004,7 @@ proc_options(long argc, char **argv, struct cmdline_options *opt, int envopt)
if (!*(s = ++p)) break;
set_encoding_part(internal);
if (!*(s = ++p)) break;
-#if ALLOW_DEFAULT_SOURCE_ENCODING
+#if defined ALLOW_DEFAULT_SOURCE_ENCODING && ALLOW_DEFAULT_SOURCE_ENCODING
set_encoding_part(source);
if (!*(s = ++p)) break;
#endif
@@ -1007,7 +1019,7 @@ proc_options(long argc, char **argv, struct cmdline_options *opt, int envopt)
else if (is_option_with_arg("external-encoding", Qfalse, Qtrue)) {
set_external_encoding_once(opt, s, 0);
}
-#if ALLOW_DEFAULT_SOURCE_ENCODING
+#if defined ALLOW_DEFAULT_SOURCE_ENCODING && ALLOW_DEFAULT_SOURCE_ENCODING
else if (is_option_with_arg("source-encoding", Qfalse, Qtrue)) {
set_source_encoding_once(opt, s, 0);
}
@@ -1079,13 +1091,11 @@ proc_options(long argc, char **argv, struct cmdline_options *opt, int envopt)
return argc0 - argc;
}
-void Init_prelude(void);
-
static void
-ruby_init_gems(int enable)
+ruby_init_prelude(void)
{
- if (enable) rb_define_module("Gem");
Init_prelude();
+ rb_const_remove(rb_cObject, rb_intern_const("TMP_RUBY_PREFIX"));
}
static int
@@ -1136,8 +1146,8 @@ uscore_get(void)
/*
* call-seq:
- * sub(pattern, replacement) => $_
- * sub(pattern) { block } => $_
+ * sub(pattern, replacement) -> $_
+ * sub(pattern) { block } -> $_
*
* Equivalent to <code>$_.sub(<i>args</i>)</code>, except that
* <code>$_</code> will be updated if substitution occurs.
@@ -1156,8 +1166,8 @@ rb_f_sub(argc, argv)
/*
* call-seq:
- * gsub(pattern, replacement) => string
- * gsub(pattern) {|...| block } => string
+ * gsub(pattern, replacement) -> string
+ * gsub(pattern) {|...| block } -> string
*
* Equivalent to <code>$_.gsub...</code>, except that <code>$_</code>
* receives the modified result.
@@ -1177,7 +1187,7 @@ rb_f_gsub(argc, argv)
/*
* call-seq:
- * chop => string
+ * chop -> string
*
* Equivalent to <code>($_.dup).chop!</code>, except <code>nil</code>
* is never returned. See <code>String#chop!</code>.
@@ -1196,8 +1206,8 @@ rb_f_chop(void)
/*
* call-seq:
- * chomp => $_
- * chomp(string) => $_
+ * chomp -> $_
+ * chomp(string) -> $_
*
* Equivalent to <code>$_ = $_.chomp(<em>string</em>)</code>. See
* <code>String#chomp</code>.
@@ -1224,7 +1234,7 @@ process_options(int argc, char **argv, struct cmdline_options *opt)
rb_encoding *enc, *lenc;
const char *s;
char fbuf[MAXPATHLEN];
- long i = proc_options(argc, argv, opt, 0);
+ int i = (int)proc_options(argc, argv, opt, 0);
rb_thread_t *th = GET_THREAD();
rb_env_t *env = 0;
@@ -1299,12 +1309,12 @@ process_options(int argc, char **argv, struct cmdline_options *opt)
#if defined DOSISH || defined __CYGWIN__
translit_char(RSTRING_PTR(opt->script_name), '\\', '/');
#endif
- rb_obj_freeze(opt->script_name);
ruby_init_loadpath_safe(opt->safe_level);
rb_enc_find_index("encdb");
lenc = rb_locale_encoding();
rb_enc_associate(rb_progname, lenc);
+ rb_obj_freeze(rb_progname);
parser = rb_parser_new();
if (opt->dump & DUMP_BIT(yydebug)) {
rb_parser_set_yydebug(parser, Qtrue);
@@ -1332,6 +1342,7 @@ process_options(int argc, char **argv, struct cmdline_options *opt)
opt->intern.enc.index = -1;
}
rb_enc_associate(opt->script_name, lenc);
+ rb_obj_freeze(opt->script_name);
{
long i;
VALUE load_path = GET_VM()->load_path;
@@ -1339,7 +1350,14 @@ process_options(int argc, char **argv, struct cmdline_options *opt)
rb_enc_associate(RARRAY_PTR(load_path)[i], lenc);
}
}
- ruby_init_gems(!(opt->disable & DISABLE_BIT(gems)));
+ if (!(opt->disable & DISABLE_BIT(gems))) {
+#if defined DISABLE_RUBYGEMS && DISABLE_RUBYGEMS
+ rb_require("rubygems");
+#else
+ rb_define_module("Gem");
+#endif
+ }
+ ruby_init_prelude();
ruby_set_argv(argc, argv);
process_sflag(&opt->sflag);
@@ -1361,6 +1379,7 @@ process_options(int argc, char **argv, struct cmdline_options *opt)
} while (0)
if (opt->e_script) {
+ VALUE progname = rb_progname;
rb_encoding *eenc;
if (opt->src.enc.index >= 0) {
eenc = rb_enc_from_index(opt->src.enc.index);
@@ -1369,7 +1388,9 @@ process_options(int argc, char **argv, struct cmdline_options *opt)
eenc = lenc;
}
rb_enc_associate(opt->e_script, eenc);
+ rb_vm_set_progname(rb_progname = opt->script_name);
require_libraries(&opt->req_list);
+ rb_vm_set_progname(rb_progname = progname);
PREPARE_PARSE_MAIN({
tree = rb_parser_compile_string(parser, opt->script, opt->e_script, 1);
@@ -1384,6 +1405,8 @@ process_options(int argc, char **argv, struct cmdline_options *opt)
tree = load_file(parser, opt->script, 1, opt);
});
}
+ rb_progname = opt->script_name;
+ rb_vm_set_progname(rb_progname);
if (opt->dump & DUMP_BIT(yydebug)) return Qtrue;
if (opt->ext.enc.index >= 0) {
@@ -1401,6 +1424,7 @@ process_options(int argc, char **argv, struct cmdline_options *opt)
else if (!rb_default_internal_encoding())
/* Freeze default_internal */
rb_enc_set_default_internal(Qnil);
+ rb_stdio_set_default_encoding();
if (!tree) return Qfalse;
@@ -1432,8 +1456,17 @@ process_options(int argc, char **argv, struct cmdline_options *opt)
rb_define_global_function("chomp", rb_f_chomp, -1);
}
+ if (opt->dump & DUMP_BIT(parsetree) || opt->dump & DUMP_BIT(parsetree_with_comment)) {
+ rb_io_write(rb_stdout, rb_parser_dump_tree(tree, opt->dump & DUMP_BIT(parsetree_with_comment)));
+ rb_io_flush(rb_stdout);
+ return Qtrue;
+ }
+
PREPARE_PARSE_MAIN({
- iseq = rb_iseq_new_main(tree, opt->script_name);
+ VALUE path = Qnil;
+ if (!opt->e_script && strcmp(opt->script, "-"))
+ path = rb_realpath_internal(Qnil, opt->script_name, 1);
+ iseq = rb_iseq_new_main(tree, opt->script_name, path);
});
if (opt->dump & DUMP_BIT(insns)) {
@@ -1447,7 +1480,7 @@ process_options(int argc, char **argv, struct cmdline_options *opt)
rb_define_readonly_boolean("$-a", opt->do_split);
rb_set_safe_level(opt->safe_level);
- rb_progname = opt->script_name;
+ rb_gc_set_params();
return iseq;
}
@@ -1473,6 +1506,7 @@ load_file_internal(VALUE arg)
NODE *tree = 0;
rb_encoding *enc;
ID set_encoding;
+ int xflag = 0;
if (!fname)
rb_load_fail(fname);
@@ -1484,13 +1518,16 @@ load_file_internal(VALUE arg)
#if defined DOSISH || defined __CYGWIN__
{
const char *ext = strrchr(fname, '.');
- if (ext && STRCASECMP(ext, ".exe") == 0)
+ if (ext && STRCASECMP(ext, ".exe") == 0) {
mode |= O_BINARY;
+ xflag = 1;
+ }
}
#endif
if ((fd = open(fname, mode)) < 0) {
rb_load_fail(fname);
}
+ rb_update_max_fd(fd);
f = rb_io_fdopen(fd, mode, fname);
}
@@ -1507,9 +1544,11 @@ load_file_internal(VALUE arg)
enc = rb_ascii8bit_encoding();
rb_funcall(f, set_encoding, 1, rb_enc_from_encoding(enc));
- if (opt->xflag) {
+ if (xflag || opt->xflag) {
+ line_start--;
+ search_shebang:
forbid_setid("-x");
- opt->xflag = Qfalse;
+ opt->xflag = FALSE;
while (!NIL_P(line = rb_io_gets(f))) {
line_start++;
if (RSTRING_LEN(line) > 2
@@ -1532,37 +1571,8 @@ load_file_internal(VALUE arg)
return 0;
if ((p = strstr(RSTRING_PTR(line), "ruby")) == 0) {
- void rb_thread_stop_timer_thread(void);
- /* not ruby script, kick the program */
- char **argv;
- char *path;
- char *pend = RSTRING_PTR(line) + RSTRING_LEN(line);
-
- p = RSTRING_PTR(line); /* skip `#!' */
- if (pend[-1] == '\n')
- pend--; /* chomp line */
- if (pend[-1] == '\r')
- pend--;
- *pend = '\0';
- while (p < pend && ISSPACE(*p))
- p++;
- path = p; /* interpreter path */
- while (p < pend && !ISSPACE(*p))
- p++;
- *p++ = '\0';
- if (p < pend) {
- argv = ALLOCA_N(char *, origarg.argc + 3);
- argv[1] = p;
- MEMCPY(argv + 2, origarg.argv + 1, char *, origarg.argc);
- }
- else {
- argv = origarg.argv;
- }
- argv[0] = path;
- rb_thread_stop_timer_thread();
- execv(path, argv);
-
- rb_fatal("Can't exec %s", path);
+ /* not ruby script, assume -x flag */
+ goto search_shebang;
}
start_read:
@@ -1595,6 +1605,11 @@ load_file_internal(VALUE arg)
else if (!NIL_P(c)) {
rb_io_ungetbyte(f, c);
}
+ else {
+ if (f != rb_stdin) rb_io_close(f);
+ f = Qnil;
+ }
+ rb_vm_set_progname(rb_progname = opt->script_name);
require_libraries(&opt->req_list); /* Why here? unnatural */
}
if (opt->src.enc.index >= 0) {
@@ -1606,18 +1621,32 @@ load_file_internal(VALUE arg)
else {
enc = rb_usascii_encoding();
}
+ if (NIL_P(f)) {
+ f = rb_str_new(0, 0);
+ rb_enc_associate(f, enc);
+ return (VALUE)rb_parser_compile_string(parser, fname, f, line_start);
+ }
rb_funcall(f, set_encoding, 2, rb_enc_from_encoding(enc), rb_str_new_cstr("-"));
tree = rb_parser_compile_file(parser, fname, f, line_start);
rb_funcall(f, set_encoding, 1, rb_parser_encoding(parser));
- if (script && rb_parser_end_seen_p(parser)) {
+ if (script && tree && rb_parser_end_seen_p(parser)) {
+ /*
+ * DATA is a File that contains the data section of the executed file.
+ * To create a data section use <tt>__END__</tt>:
+ *
+ * $ cat t.rb
+ * puts DATA.gets
+ * __END__
+ * hello world!
+ *
+ * $ ruby t.rb
+ * hello world!
+ */
rb_define_global_const("DATA", f);
}
else if (f != rb_stdin) {
rb_io_close(f);
}
- else {
- rb_io_ungetbyte(f, Qnil);
- }
return (VALUE)tree;
}
@@ -1646,49 +1675,6 @@ rb_load_file(const char *fname)
return load_file(rb_parser_new(), fname, 0, cmdline_options_init(&opt));
}
-#if !defined(PSTAT_SETCMD) && !defined(HAVE_SETPROCTITLE)
-#if !defined(_WIN32) && !(defined(HAVE_SETENV) && defined(HAVE_UNSETENV))
-#define USE_ENVSPACE_FOR_ARG0
-#endif
-
-#ifdef USE_ENVSPACE_FOR_ARG0
-extern char **environ;
-#endif
-
-static size_t
-get_arglen(int argc, char **argv)
-{
- char *s = argv[0];
- int i;
-
- if (!argc) return 0;
- s += strlen(s);
- /* See if all the arguments are contiguous in memory */
- for (i = 1; i < argc; i++) {
- if (argv[i] == s + 1) {
- s++;
- s += strlen(s); /* this one is ok too */
- }
- else {
- break;
- }
- }
-#if defined(USE_ENVSPACE_FOR_ARG0)
- if (environ && (s == environ[0])) {
- s += strlen(s);
- for (i = 1; environ[i]; i++) {
- if (environ[i] == s + 1) {
- s++;
- s += strlen(s); /* this one is ok too */
- }
- }
- ruby_setenv("", NULL); /* duplicate environ vars */
- }
-#endif
- return s - argv[0];
-}
-#endif
-
static void
set_arg0(VALUE val, ID id)
{
@@ -1700,42 +1686,9 @@ set_arg0(VALUE val, ID id)
StringValue(val);
s = RSTRING_PTR(val);
i = RSTRING_LEN(val);
-#if defined(PSTAT_SETCMD)
- if (i > PST_CLEN) {
- union pstun un;
- char buf[PST_CLEN + 1]; /* PST_CLEN is 64 (HP-UX 11.23) */
- strlcpy(buf, s, sizeof(buf));
- un.pst_command = buf;
- pstat(PSTAT_SETCMD, un, PST_CLEN, 0, 0);
- }
- else {
- union pstun un;
- un.pst_command = s;
- pstat(PSTAT_SETCMD, un, i, 0, 0);
- }
-#elif defined(HAVE_SETPROCTITLE)
- setproctitle("%.*s", (int)i, s);
-#else
-
- if ((size_t)i >= origarg.len) {
- i = (long)(origarg.len - 1);
- }
-
- memcpy(origarg.argv[0], s, i);
- {
- int j;
- char *t = origarg.argv[0] + i;
- *t = '\0';
+ setproctitle("%.*s", (int)i, s);
- if ((size_t)(i + 1) < origarg.len) {
- memset(t + 1, ' ', origarg.len - i - 1);
- }
- for (j = 1; j < origarg.argc; j++) {
- origarg.argv[j] = t;
- }
- }
-#endif
rb_progname = rb_obj_freeze(rb_external_str_new(s, i));
}
@@ -1743,7 +1696,7 @@ void
ruby_script(const char *name)
{
if (name) {
- rb_progname = rb_obj_freeze(rb_external_str_new(name, strlen(name)));
+ rb_progname = rb_external_str_new(name, strlen(name));
rb_vm_set_progname(rb_progname);
}
}
@@ -1803,13 +1756,20 @@ ruby_prog_init(void)
rb_define_hooked_variable("$VERBOSE", &ruby_verbose, 0, verbose_setter);
rb_define_hooked_variable("$-v", &ruby_verbose, 0, verbose_setter);
rb_define_hooked_variable("$-w", &ruby_verbose, 0, verbose_setter);
- rb_define_hooked_variable("$-W", &ruby_verbose, opt_W_getter, 0);
+ rb_define_hooked_variable("$-W", &ruby_verbose, opt_W_getter, rb_gvar_readonly_setter);
rb_define_variable("$DEBUG", &ruby_debug);
rb_define_variable("$-d", &ruby_debug);
rb_define_hooked_variable("$0", &rb_progname, 0, set_arg0);
rb_define_hooked_variable("$PROGRAM_NAME", &rb_progname, 0, set_arg0);
+ /*
+ * ARGV contains the command line arguments used to run ruby with the
+ * first value containing the name of the executable.
+ *
+ * A library like OptionParser can be used to process command-line
+ * arguments.
+ */
rb_define_global_const("ARGV", rb_argv);
}
@@ -1827,7 +1787,7 @@ ruby_set_argv(int argc, char **argv)
#endif
rb_ary_clear(av);
for (i = 0; i < argc; i++) {
- VALUE arg = rb_external_str_new(argv[i], strlen(argv[i]));
+ VALUE arg = rb_external_str_new_cstr(argv[i]);
OBJ_FREEZE(arg);
rb_ary_push(av, arg);
@@ -1844,9 +1804,47 @@ ruby_process_options(int argc, char **argv)
rb_argv0 = rb_str_new4(rb_progname);
rb_gc_register_mark_object(rb_argv0);
iseq = process_options(argc, argv, cmdline_options_init(&opt));
+
+#ifndef HAVE_SETPROCTITLE
+ {
+ extern void ruby_init_setproctitle(int argc, char *argv[]);
+ ruby_init_setproctitle(argc, argv);
+ }
+#endif
+
return (void*)(struct RData*)iseq;
}
+static void
+fill_standard_fds(void)
+{
+ int f0, f1, f2, fds[2];
+ struct stat buf;
+ f0 = fstat(0, &buf) == -1 && errno == EBADF;
+ f1 = fstat(1, &buf) == -1 && errno == EBADF;
+ f2 = fstat(2, &buf) == -1 && errno == EBADF;
+ if (f0) {
+ if (pipe(fds) == 0) {
+ close(fds[1]);
+ if (fds[0] != 0) {
+ dup2(fds[0], 0);
+ close(fds[0]);
+ }
+ }
+ }
+ if (f1 || f2) {
+ if (pipe(fds) == 0) {
+ close(fds[0]);
+ if (f1 && fds[1] != 1)
+ dup2(fds[1], 1);
+ if (f2 && fds[1] != 2)
+ dup2(fds[1], 2);
+ if (fds[1] != 1 && fds[1] != 2)
+ close(fds[1]);
+ }
+ }
+}
+
void
ruby_sysinit(int *argc, char ***argv)
{
@@ -1856,10 +1854,8 @@ ruby_sysinit(int *argc, char ***argv)
#endif
origarg.argc = *argc;
origarg.argv = *argv;
-#if !defined(PSTAT_SETCMD) && !defined(HAVE_SETPROCTITLE)
- origarg.len = get_arglen(origarg.argc, origarg.argv);
-#endif
#if defined(USE_DLN_A_OUT)
dln_argv0 = origarg.argv[0];
#endif
+ fill_standard_fds();
}
diff --git a/safe.c b/safe.c
index ebe62f4206..e2ed5979d2 100644
--- a/safe.c
+++ b/safe.c
@@ -1,6 +1,6 @@
/**********************************************************************
- eval.c -
+ safe.c -
$Author$
created at: Tue Sep 23 09:44:32 JST 2008
@@ -98,16 +98,22 @@ rb_secure_update(VALUE obj)
}
void
+rb_insecure_operation(void)
+{
+ if (rb_frame_callee()) {
+ rb_raise(rb_eSecurityError, "Insecure operation - %s",
+ rb_id2name(rb_frame_callee()));
+ }
+ else {
+ rb_raise(rb_eSecurityError, "Insecure operation: -r");
+ }
+}
+
+void
rb_check_safe_obj(VALUE x)
{
if (rb_safe_level() > 0 && OBJ_TAINTED(x)) {
- if (rb_frame_callee()) {
- rb_raise(rb_eSecurityError, "Insecure operation - %s",
- rb_id2name(rb_frame_callee()));
- }
- else {
- rb_raise(rb_eSecurityError, "Insecure operation: -r");
- }
+ rb_insecure_operation();
}
rb_secure(4);
}
diff --git a/sample/README b/sample/README
index 9187a9df2a..c1b9532203 100644
--- a/sample/README
+++ b/sample/README
@@ -3,10 +3,10 @@ biorhythm.rb biorhythm calculator
cal.rb cal(1) clone
cbreak.rb no echo done by ioctl
clnt.rb socket client
+coverage.rb simple test code coverage tool
dir.rb directory access
dualstack-fetch.rb IPv6 demo
dualstack-httpd.rb IPv6 demo
-dstore.rb object database on dbm
eval.rb simple evaluator
export.rb method access example
exyacc.rb extrace BNF from yacc file
@@ -19,8 +19,6 @@ fib.scm Fibonacci number (Scheme)
freq.rb count word occurrence
from.rb scan mail spool
fullpath.rb convert ls -lR to fullpath format
-io.rb io test
-irb.rb interactive ruby
less.rb front end for less
list.rb stupid object sample
list2.rb stupid object sample
@@ -37,11 +35,11 @@ pi.rb calculate PI
rcs.awk random character stereogram (AWK)
rcs.rb random character stereogram (Ruby)
rcs.dat data for random character stereogram
-rd2html.rb rd (Ruby Document) to HTML translator
sieve.rb sieve of Eratosthenes
svr.rb socket server
test.rb test suite used by `make test'
time.rb /usr/bin/time clone
+timeout.rb timeout test
trojan.rb simple tool to find file that may be trojan horse.
tsvr.rb socket server using thread
uumerge.rb merge files and uudecode them
diff --git a/sample/biorhythm.rb b/sample/biorhythm.rb
index 6465daa29f..bd7c39f5aa 100644
--- a/sample/biorhythm.rb
+++ b/sample/biorhythm.rb
@@ -1,13 +1,13 @@
#!/usr/local/bin/ruby
#
-# biorhythm.rb -
+# biorhythm.rb -
# $Release Version: $
# $Revision$
# by Yasuo OHBA(STAFS Development Room)
#
# --
#
-#
+#
#
# probably based on:
@@ -29,13 +29,13 @@ require "date.rb"
require "optparse"
require "optparse/date"
-def printHeader(y, m, d, p, w)
+def print_header(y, m, d, p, w)
print "\n>>> Biorhythm <<<\n"
printf "The birthday %04d.%02d.%02d is a %s\n", y, m, d, w
printf "Age in days: [%d]\n\n", p
end
-def getPosition(z)
+def get_position(z)
pi = Math::PI
z = Integer(z)
phys = (50.0 * (1.0 + sin((z / 23.0 - (z / 23)) * 360.0 * pi / 180.0))).to_i
@@ -89,25 +89,25 @@ ausgabeart = options[:graph] ? "g" : "v"
display_period = options[:days]
if ausgabeart == "v"
- printHeader(bd.year, bd.month, bd.day, dd - bd, bd.strftime("%a"))
+ print_header(bd.year, bd.month, bd.day, dd - bd, bd.strftime("%a"))
print "\n"
-
- phys, emot, geist = getPosition(dd - bd)
+
+ phys, emot, geist = get_position(dd - bd)
printf "Biorhythm: %04d.%02d.%02d\n", dd.year, dd.month, dd.day
printf "Physical: %d%%\n", phys
printf "Emotional: %d%%\n", emot
printf "Mental: %d%%\n", geist
print "\n"
else
- printHeader(bd.year, bd.month, bd.day, dd - bd, bd.strftime("%a"))
+ print_header(bd.year, bd.month, bd.day, dd - bd, bd.strftime("%a"))
print " P=physical, E=emotional, M=mental\n"
print " -------------------------+-------------------------\n"
print " Bad Condition | Good Condition\n"
print " -------------------------+-------------------------\n"
-
+
(dd - bd).step(dd - bd + display_period) do |z|
- phys, emot, geist = getPosition(z)
-
+ phys, emot, geist = get_position(z)
+
printf "%04d.%02d.%02d : ", dd.year, dd.month, dd.day
p = (phys / 2.0 + 0.5).to_i
e = (emot / 2.0 + 0.5).to_i
diff --git a/sample/coverage.rb b/sample/coverage.rb
index 3f45e9fc98..5e15f99716 100644
--- a/sample/coverage.rb
+++ b/sample/coverage.rb
@@ -8,6 +8,7 @@ accum = !accum || accum == "" || !(%w(f n 0).include?(accum[0]))
pwd = Dir.pwd
at_exit do
+ exit_exc = $!
Dir.chdir(pwd) do
Coverage.result.each do |sfile, covs|
cfile = sfile + ext
@@ -57,4 +58,5 @@ at_exit do
end
end
end
+ raise exit_exc if exit_exc
end
diff --git a/sample/drb/darray.rb b/sample/drb/darray.rb
index 95ee01ff03..d2ac39513f 100644
--- a/sample/drb/darray.rb
+++ b/sample/drb/darray.rb
@@ -1,6 +1,6 @@
=begin
distributed Ruby --- Array
- Copyright (c) 1999-2001 Masatoshi SEKI
+ Copyright (c) 1999-2001 Masatoshi SEKI
=end
require 'drb/drb'
diff --git a/sample/drb/darrayc.rb b/sample/drb/darrayc.rb
index b181d22699..579e11564e 100644
--- a/sample/drb/darrayc.rb
+++ b/sample/drb/darrayc.rb
@@ -1,6 +1,6 @@
=begin
distributed Ruby --- Array client
- Copyright (c) 1999-2001 Masatoshi SEKI
+ Copyright (c) 1999-2001 Masatoshi SEKI
=end
require 'drb/drb'
@@ -19,7 +19,7 @@ p a
puts "# find"
p ro.find { |x| x.kind_of? String }
-
+
puts "# each, break"
ro.each do |x|
next if x == "five"
diff --git a/sample/drb/dbiff.rb b/sample/drb/dbiff.rb
index 8faef50b07..b50edc0898 100644
--- a/sample/drb/dbiff.rb
+++ b/sample/drb/dbiff.rb
@@ -18,13 +18,13 @@ class Biff
def run
last = Time.now
while true
- begin
+ begin
sleep(@interval)
current = File::mtime(@filename)
if current > last
changed
begin
- notify_observers(@filename, current)
+ notify_observers(@filename, current)
rescue Error
end
last = current
diff --git a/sample/drb/dchatc.rb b/sample/drb/dchatc.rb
index b506f5bbba..2b8ddbf4cc 100644
--- a/sample/drb/dchatc.rb
+++ b/sample/drb/dchatc.rb
@@ -1,12 +1,12 @@
=begin
distributed Ruby --- chat client
- Copyright (c) 1999-2000 Masatoshi SEKI
+ Copyright (c) 1999-2000 Masatoshi SEKI
=end
require 'drb/drb'
class ChatClient
- include DRbUndumped
+ include DRbUndumped
def initialize(name)
@name = name
diff --git a/sample/drb/dchats.rb b/sample/drb/dchats.rb
index 012dfeeebe..ccb2c7c9c5 100644
--- a/sample/drb/dchats.rb
+++ b/sample/drb/dchats.rb
@@ -1,6 +1,6 @@
=begin
distributed Ruby --- chat server
- Copyright (c) 1999-2000 Masatoshi SEKI
+ Copyright (c) 1999-2000 Masatoshi SEKI
=end
require 'thread'
require 'drb/drb'
diff --git a/sample/drb/dhasen.rb b/sample/drb/dhasen.rb
index fb1724afa3..651b9c6c8a 100644
--- a/sample/drb/dhasen.rb
+++ b/sample/drb/dhasen.rb
@@ -1,13 +1,13 @@
=begin
distributed Ruby --- dRuby Sample Server --- chasen server
- Copyright (c) 1999-2001 Masatoshi SEKI
+ Copyright (c) 1999-2001 Masatoshi SEKI
=end
=begin
How to play.
Terminal 1
- | % ruby dhasen.rb
+ | % ruby dhasen.rb
| druby://yourhost:7640
Terminal 2
diff --git a/sample/drb/dhasenc.rb b/sample/drb/dhasenc.rb
index 2774feba5a..44e58ce096 100644
--- a/sample/drb/dhasenc.rb
+++ b/sample/drb/dhasenc.rb
@@ -1,7 +1,7 @@
# -*- encoding: euc-jp -*-
=begin
distributed Ruby --- dRuby Sample Client -- chasen client
- Copyright (c) 1999-2001 Masatoshi SEKI
+ Copyright (c) 1999-2001 Masatoshi SEKI
=end
require 'drb/drb'
diff --git a/sample/drb/dlogc.rb b/sample/drb/dlogc.rb
index c75bc7b520..3939a71827 100644
--- a/sample/drb/dlogc.rb
+++ b/sample/drb/dlogc.rb
@@ -1,6 +1,6 @@
=begin
distributed Ruby --- Log test
- Copyright (c) 1999-2001 Masatoshi SEKI
+ Copyright (c) 1999-2001 Masatoshi SEKI
=end
require 'drb/drb'
diff --git a/sample/drb/dlogd.rb b/sample/drb/dlogd.rb
index 9f9aa2fd56..fef7ca0f1d 100644
--- a/sample/drb/dlogd.rb
+++ b/sample/drb/dlogd.rb
@@ -1,6 +1,6 @@
=begin
distributed Ruby --- Log server
- Copyright (c) 1999-2000 Masatoshi SEKI
+ Copyright (c) 1999-2000 Masatoshi SEKI
=end
require 'drb/drb'
diff --git a/sample/drb/dqin.rb b/sample/drb/dqin.rb
index 3ba1caa80c..4751335fff 100644
--- a/sample/drb/dqin.rb
+++ b/sample/drb/dqin.rb
@@ -1,6 +1,6 @@
=begin
distributed Ruby --- store
- Copyright (c) 1999-2000 Masatoshi SEKI
+ Copyright (c) 1999-2000 Masatoshi SEKI
=end
require 'drb/drb'
diff --git a/sample/drb/dqout.rb b/sample/drb/dqout.rb
index 4700e55cf7..f2b0b4ac95 100644
--- a/sample/drb/dqout.rb
+++ b/sample/drb/dqout.rb
@@ -1,6 +1,6 @@
=begin
distributed Ruby --- fetch
- Copyright (c) 1999-2000 Masatoshi SEKI
+ Copyright (c) 1999-2000 Masatoshi SEKI
=end
require 'drb/drb'
diff --git a/sample/drb/dqueue.rb b/sample/drb/dqueue.rb
index a5a43655fd..1c8878c080 100644
--- a/sample/drb/dqueue.rb
+++ b/sample/drb/dqueue.rb
@@ -1,6 +1,6 @@
=begin
distributed Ruby --- Queue
- Copyright (c) 1999-2000 Masatoshi SEKI
+ Copyright (c) 1999-2000 Masatoshi SEKI
=end
require 'thread'
diff --git a/sample/drb/drbc.rb b/sample/drb/drbc.rb
index 00132b46c8..50a86c39e8 100644
--- a/sample/drb/drbc.rb
+++ b/sample/drb/drbc.rb
@@ -1,6 +1,6 @@
=begin
distributed Ruby --- dRuby Sample Client
- Copyright (c) 1999-2000 Masatoshi SEKI
+ Copyright (c) 1999-2000 Masatoshi SEKI
=end
require 'drb/drb'
diff --git a/sample/drb/drbch.rb b/sample/drb/drbch.rb
index 495ff1c346..07fdcd5fae 100644
--- a/sample/drb/drbch.rb
+++ b/sample/drb/drbch.rb
@@ -1,6 +1,6 @@
=begin
distributed Ruby --- dRuby Sample Client
- Copyright (c) 1999-2000 Masatoshi SEKI
+ Copyright (c) 1999-2000 Masatoshi SEKI
=end
require 'drb/drb'
diff --git a/sample/drb/drbm.rb b/sample/drb/drbm.rb
index 74a15a4696..3390608cd1 100644
--- a/sample/drb/drbm.rb
+++ b/sample/drb/drbm.rb
@@ -1,13 +1,13 @@
=begin
multiple DRbServer
- Copyright (c) 1999-2002 Masatoshi SEKI
+ Copyright (c) 1999-2002 Masatoshi SEKI
=end
=begin
How to play.
Terminal 1
- | % ruby drbm.rb
+ | % ruby drbm.rb
| druby://yourhost:7640 druby://yourhost:7641
Terminal 2
@@ -24,7 +24,7 @@ class Hoge
def initialize(s)
@str = s
end
-
+
def to_s
@str
end
diff --git a/sample/drb/drbmc.rb b/sample/drb/drbmc.rb
index c654fcea05..fd191401e6 100644
--- a/sample/drb/drbmc.rb
+++ b/sample/drb/drbmc.rb
@@ -1,6 +1,6 @@
=begin
multiple DRbServer client
- Copyright (c) 1999-2002 Masatoshi SEKI
+ Copyright (c) 1999-2002 Masatoshi SEKI
=end
require 'drb/drb'
diff --git a/sample/drb/drbs-acl.rb b/sample/drb/drbs-acl.rb
index 151dd945d8..71c4f7bf42 100644
--- a/sample/drb/drbs-acl.rb
+++ b/sample/drb/drbs-acl.rb
@@ -1,13 +1,13 @@
=begin
distributed Ruby --- dRuby Sample Server
- Copyright (c) 1999-2000 Masatoshi SEKI
+ Copyright (c) 1999-2000 Masatoshi SEKI
=end
=begin
How to play.
Terminal 1
- | % ruby drbs.rb
+ | % ruby drbs.rb
| druby://yourhost:7640
Terminal 2
@@ -41,7 +41,7 @@ if __FILE__ == $0
acl = ACL.new(%w(deny all
allow 192.168.1.*
allow localhost))
-
+
DRb.install_acl(acl)
DRb.start_service(nil, DRbEx.new)
diff --git a/sample/drb/drbs.rb b/sample/drb/drbs.rb
index b76e283c80..5a913d9918 100644
--- a/sample/drb/drbs.rb
+++ b/sample/drb/drbs.rb
@@ -1,13 +1,13 @@
=begin
distributed Ruby --- dRuby Sample Server
- Copyright (c) 1999-2000,2002 Masatoshi SEKI
+ Copyright (c) 1999-2000,2002 Masatoshi SEKI
=end
=begin
How to play.
Terminal 1
- | % ruby drbs.rb
+ | % ruby drbs.rb
| druby://yourhost:7640
Terminal 2
diff --git a/sample/drb/extserv_test.rb b/sample/drb/extserv_test.rb
index 83d871a6a2..2c4f485dc6 100644
--- a/sample/drb/extserv_test.rb
+++ b/sample/drb/extserv_test.rb
@@ -1,11 +1,11 @@
=begin
dRuby sample
- Copyright (c) 2000 Masatoshi SEKI
+ Copyright (c) 2000 Masatoshi SEKI
= How to play
* Terminal 1
-
+
% ruby -I. extserv_test.rb server
druby://yourhost:12345
@@ -26,11 +26,11 @@ end
class Foo
include DRbUndumped
-
+
def initialize(str)
@str = str
end
-
+
def hello(it)
"#{it}: #{self}"
end
@@ -55,7 +55,7 @@ when 'server'
DRb::ExtServManager.command['itest1'] = "ruby -I. #{$0} itest1"
DRb::ExtServManager.command['itest2'] = "ruby -I. #{$0} itest2"
-
+
s = DRb::ExtServManager.new
DRb.start_service(ARGV.shift, s)
puts DRb.uri
@@ -72,7 +72,7 @@ else
t2 = s.service('itest2').front
puts t2
puts t1.hello(t2)
- if (cmd == 'quit')
+ if (cmd == 'quit')
s.service('itest1').stop_service
s.service('itest2').stop_service
end
diff --git a/sample/drb/holderc.rb b/sample/drb/holderc.rb
index 8dd72ebd11..e627916d76 100644
--- a/sample/drb/holderc.rb
+++ b/sample/drb/holderc.rb
@@ -11,7 +11,7 @@ DRb.start_service()
ro = DRbObject.new(nil, there)
ary = []
-10.times do
+10.times do
ary.push(ro.gen)
end
diff --git a/sample/drb/holders.rb b/sample/drb/holders.rb
index 2d9974f3fc..293426faa5 100644
--- a/sample/drb/holders.rb
+++ b/sample/drb/holders.rb
@@ -14,7 +14,7 @@
% ruby holderc.rb druby://yourhost:1234
=end
-
+
require 'drb/drb'
@@ -36,11 +36,11 @@ end
class DRbEx4
include DRbUndumped
-
+
def initialize
@curr = 1
end
-
+
def gen
begin
@curr += 1
diff --git a/sample/drb/http0.rb b/sample/drb/http0.rb
index 7649925282..d4c9f6b7fb 100644
--- a/sample/drb/http0.rb
+++ b/sample/drb/http0.rb
@@ -46,14 +46,14 @@ module DRb
def close; end
def alive?; false; end
-
+
def send_request(ref, msg_id, *arg, &b)
stream = StrStream.new
@msg.send_request(stream, ref, msg_id, *arg, &b)
@reply_stream = StrStream.new
post(@uri, stream.buf)
end
-
+
def recv_reply
@msg.recv_reply(@reply_stream)
end
@@ -66,7 +66,7 @@ module DRb
http.post(path, data, {'Content-Type'=>'application/octetstream;'}) do |str|
sio.write(str)
if @config[:load_limit] < sio.buf.size
- raise TypeError, 'too large packet'
+ raise TypeError, 'too large packet'
end
end
@reply_stream = sio
diff --git a/sample/drb/http0serv.rb b/sample/drb/http0serv.rb
index 100d126b8f..8318123fa9 100644
--- a/sample/drb/http0serv.rb
+++ b/sample/drb/http0serv.rb
@@ -5,7 +5,7 @@ require 'thread'
module DRb
module HTTP0
-
+
def self.open_server(uri, config)
unless /^http:/ =~ uri
raise(DRbBadScheme, uri) unless uri =~ /^http:/
@@ -20,7 +20,7 @@ module DRb
@drb = drb
@queue = Queue.new
end
-
+
def do_POST(req, res)
@req = req
@res = res
@@ -28,7 +28,7 @@ module DRb
@res.body = @queue.pop
@res['content-type'] = 'application/octet-stream;'
end
-
+
def req_body
@req.body
end
@@ -36,7 +36,7 @@ module DRb
def reply(body)
@queue.push(body)
end
-
+
def close
@queue.push('')
end
@@ -78,7 +78,7 @@ module DRb
s.start
end
end
-
+
class ServerSide
def initialize(callback, config)
@callback = callback
@@ -86,7 +86,7 @@ module DRb
@msg = DRbMessage.new(@config)
@req_stream = StrStream.new(@callback.req_body)
end
-
+
def close
@callback.close if @callback
@callback = nil
diff --git a/sample/drb/name.rb b/sample/drb/name.rb
index 86b478fbec..9527d47764 100644
--- a/sample/drb/name.rb
+++ b/sample/drb/name.rb
@@ -1,12 +1,12 @@
=begin
distributed Ruby --- NamedObject Sample
- Copyright (c) 2000-2001 Masatoshi SEKI
+ Copyright (c) 2000-2001 Masatoshi SEKI
=end
=begin
How to play.
-* start server
+* start server
Terminal 1
| % ruby name.rb druby://yourhost:7640
| druby://yourhost:7640
@@ -28,9 +28,9 @@ How to play.
| druby://yourhost:7640
| [return] to exit
-* continue client
+* continue client
Terminal 2
- type [return]
+ type [return]
| 1
| 2
=end
@@ -44,7 +44,7 @@ module DRbNamedObject
def drb_name=(name)
@drb_name = name
- Thread.exclusive do
+ Thread.exclusive do
raise(IndexError, name) if DRbNAMEDICT[name]
DRbNAMEDICT[name] = self
end
@@ -62,7 +62,7 @@ class DRbNamedIdConv < DRb::DRbIdConv
def to_id(obj)
if obj.kind_of? DRbNamedObject
- return obj.drb_name
+ return obj.drb_name
else
return super
end
@@ -98,7 +98,7 @@ class Front
@name['seq'] = seq
@name['mutex'] = mutex
end
-
+
def [](k)
@name[k]
end
@@ -108,7 +108,7 @@ if __FILE__ == $0
uri = ARGV.shift
name_conv = DRbNamedIdConv.new
-
+
DRb.install_id_conv(name_conv)
DRb.start_service(uri, Front.new)
puts DRb.uri
diff --git a/sample/drb/namec.rb b/sample/drb/namec.rb
index f6db6f3022..98b9d0e532 100644
--- a/sample/drb/namec.rb
+++ b/sample/drb/namec.rb
@@ -1,6 +1,6 @@
=begin
distributed Ruby --- NamedObject Sample Client
- Copyright (c) 2000-2001 Masatoshi SEKI
+ Copyright (c) 2000-2001 Masatoshi SEKI
=end
require 'drb/drb'
diff --git a/sample/drb/old_tuplespace.rb b/sample/drb/old_tuplespace.rb
index 3e13b92ee1..0da9fa84c3 100644
--- a/sample/drb/old_tuplespace.rb
+++ b/sample/drb/old_tuplespace.rb
@@ -82,7 +82,7 @@ class TupleSpace
end
end
return nil unless found
-
+
@que[sz].delete_at(i)
return x
@@ -167,7 +167,7 @@ if __FILE__ == $0
def client(ts, n)
Thread.start {
ac = Object.new
- tuples = (1..10).collect { |i|
+ tuples = (1..10).collect { |i|
['req', ac, i * 10 + n]
}
ts.out(*tuples)
@@ -201,7 +201,7 @@ if __FILE__ == $0
clients.push(client(ts, n))
end
- (1..3).each do
+ (1..3).each do
watcher(ts)
end
diff --git a/sample/drb/ring_echo.rb b/sample/drb/ring_echo.rb
index 0633aa839a..3b743cab8e 100644
--- a/sample/drb/ring_echo.rb
+++ b/sample/drb/ring_echo.rb
@@ -8,7 +8,7 @@ class RingEcho
def initialize(name)
@name = name
end
-
+
def echo(str)
"#{@name}: #{str}"
end
diff --git a/sample/drb/simpletuple.rb b/sample/drb/simpletuple.rb
index 3ae9208c79..1b9b7a35a7 100644
--- a/sample/drb/simpletuple.rb
+++ b/sample/drb/simpletuple.rb
@@ -13,7 +13,7 @@ class SimpleTupleSpace
@waiting.taint
self.taint
end
-
+
def out(key, obj)
Thread.critical = true
@hash[key] ||= []
@@ -48,7 +48,7 @@ class SimpleTupleSpace
Thread.critical = false
end
end
-end
+end
if __FILE__ == $0
ts = SimpleTupleSpace.new
@@ -75,7 +75,7 @@ if __FILE__ == $0
}
end
- 3.times do
+ 3.times do
servers.push(server(ts))
end
diff --git a/sample/drb/speedc.rb b/sample/drb/speedc.rb
index 14d526d48d..64b8a65021 100644
--- a/sample/drb/speedc.rb
+++ b/sample/drb/speedc.rb
@@ -11,7 +11,7 @@ when /^tcpromp:/, /^unixromp:/
foo = client.resolve("foo")
when /^druby:/
require 'drb/drb'
-
+
DRb.start_service
foo = DRbObject.new(nil, uri)
end
diff --git a/sample/drb/speeds.rb b/sample/drb/speeds.rb
index 76b4b29dba..7984059423 100644
--- a/sample/drb/speeds.rb
+++ b/sample/drb/speeds.rb
@@ -3,7 +3,7 @@ class Foo
def initialize
@i = 0
end
-
+
def foo(i)
@i = i
i + i
@@ -24,7 +24,7 @@ when /^tcpromp:/, /^unixromp:/
when /^druby:/
require 'drb/drb'
-
+
DRb.start_service(uri, Foo.new)
end
diff --git a/sample/dualstack-httpd.rb b/sample/dualstack-httpd.rb
index 69e3181863..11c5201d74 100644
--- a/sample/dualstack-httpd.rb
+++ b/sample/dualstack-httpd.rb
@@ -12,7 +12,7 @@ names = []
threads = []
res.each do |i|
- s = TCPserver.new(i[3], i[1])
+ s = TCPServer.new(i[3], i[1])
n = Socket.getnameinfo(s.getsockname, Socket::NI_NUMERICHOST|Socket::NI_NUMERICSERV).join(" port ")
sockpool.push s
names.push n
diff --git a/sample/from.rb b/sample/from.rb
index aa93e6726a..918745e55f 100644
--- a/sample/from.rb
+++ b/sample/from.rb
@@ -36,7 +36,7 @@ def get_mailfile(user)
file = user
unless user
file = ENV['MAIL']
- user = ENV['USER'] || ENV['USERNAME'] || ENV['LOGNAME']
+ user = ENV['USER'] || ENV['USERNAME'] || ENV['LOGNAME']
end
if file == nil or !File.exist?(file)
diff --git a/sample/fullpath.rb b/sample/fullpath.rb
index 8472e5d8f4..112ca58081 100644
--- a/sample/fullpath.rb
+++ b/sample/fullpath.rb
@@ -3,7 +3,7 @@
if ARGV[0] =~ /-p/
ARGV.shift
- path = ARGV.shift
+ path = ARGV.shift
end
if path == nil
diff --git a/sample/list.rb b/sample/list.rb
index 221f7edb16..85899ce7ff 100644
--- a/sample/list.rb
+++ b/sample/list.rb
@@ -5,6 +5,7 @@ class MyElem
# @variables are instance variable, no declaration needed
@data = item
@succ = nil
+ @head = nil
end
def data
diff --git a/sample/list2.rb b/sample/list2.rb
index 914cb8996e..1d71affc1b 100644
--- a/sample/list2.rb
+++ b/sample/list2.rb
@@ -9,7 +9,7 @@ class Point
sprintf("%d@%d", @x, @y)
end
end
-
+
list1 = [10, 20, Point.new(2, 3), Point.new(4, 5)]
list2 = [20, Point.new(4, 5), list1]
print("list1:\n", list1.join("\n"), "\n")
diff --git a/sample/list3.rb b/sample/list3.rb
index 1d756fdff0..1d9f04b710 100644
--- a/sample/list3.rb
+++ b/sample/list3.rb
@@ -11,7 +11,7 @@ class Point
sprintf("%d@%d", @x, @y)
end
end
-
+
list1 = [10, 20, Point.new(2, 3), Point.new(4, 5)]
list2 = [20, Point.new(4, 5), list1]
print("list1: ", list1.inspect, "\n")
diff --git a/sample/mkproto.rb b/sample/mkproto.rb
index 754ca2dff2..6e7fc0f788 100644
--- a/sample/mkproto.rb
+++ b/sample/mkproto.rb
@@ -1,20 +1,20 @@
$/ = nil
while line = gets()
- if /^((void|VALUE|int|char *\*|ID|struct [\w_]+ *\*|st_table *\*) *)?\n([\w\d_]+)\(.*\)\n\s*((.+;\n)*)\{/ =~ line
+ if /^((void|VALUE|int|char *\*|ID|struct \w+ *\*|st_table *\*) *)?\n(\w+)\(.*\)\n\s*((.+;\n)*)\{/ =~ line
line = $'
printf "%s %s(", $2, $3
args = []
for arg in $4.split(/;\n\s*/)
arg.gsub!(/ +/, ' ')
if arg =~ /,/
- if arg =~ /(([^*]+) *\** *[\w\d_]+),/
+ if arg =~ /(([^*]+) *\** *\w+),/
type = $2.strip
args.push $1.strip
arg = $'
else
type = ""
end
- while arg.sub!(/(\** *[\w\d_]+)(,|$)/, "") && $~
+ while arg.sub!(/(\** *\w+)(,|$)/, "") && $~
args.push type + " " + $1.strip
end
else
diff --git a/sample/occur2.rb b/sample/occur2.rb
index 53885c0ba7..ca87d0ddef 100644
--- a/sample/occur2.rb
+++ b/sample/occur2.rb
@@ -1,13 +1,10 @@
# word occurrence listing
# usege: ruby occur2.rb file..
freq = {}
-while gets()
- for word in split(/\W+/)
- begin
- freq[word] += 1
- rescue NameError
- freq[word] = 1
- end
+ARGF.each_line do |line|
+ for word in line.split(/\W+/)
+ freq[word] ||= 0
+ freq[word] += 1
end
end
diff --git a/sample/openssl/certstore.rb b/sample/openssl/certstore.rb
index bbc637f668..c0bc21bcbb 100644
--- a/sample/openssl/certstore.rb
+++ b/sample/openssl/certstore.rb
@@ -48,7 +48,7 @@ class CertStore
case guess_cert_type(cert)
when CERT_TYPE_SELF_SIGNED
true
- when CERT_TYPE_OTHER
+ when CERT_TYPE_OTHER
true
else
false
diff --git a/sample/openssl/smime_write.rb b/sample/openssl/smime_write.rb
index 535b3d6685..5a5236c750 100644
--- a/sample/openssl/smime_write.rb
+++ b/sample/openssl/smime_write.rb
@@ -20,4 +20,4 @@ smime0 = PKCS7::write_smime(p7sig)
rcpt = X509::Certificate.new(File::read(rcpt_file))
p7enc = PKCS7::encrypt([rcpt], smime0)
-print PKCS7::write_smime(p7enc)
+print PKCS7::write_smime(p7enc)
diff --git a/sample/optparse/opttest.rb b/sample/optparse/opttest.rb
index e2c6d1e048..9247af494f 100644..100755
--- a/sample/optparse/opttest.rb
+++ b/sample/optparse/opttest.rb
@@ -13,7 +13,7 @@ ARGV.options do
|opts|
opts.banner << " argv..."
- # separater
+ # separator
opts.on_tail
opts.on_tail("common options:")
diff --git a/ext/pty/expect_sample.rb b/sample/pty/expect_sample.rb
index d3b072b83c..d3b072b83c 100644
--- a/ext/pty/expect_sample.rb
+++ b/sample/pty/expect_sample.rb
diff --git a/ext/pty/script.rb b/sample/pty/script.rb
index 903a6f75bd..903a6f75bd 100644
--- a/ext/pty/script.rb
+++ b/sample/pty/script.rb
diff --git a/ext/pty/shl.rb b/sample/pty/shl.rb
index cdaf8d7398..cdaf8d7398 100644
--- a/ext/pty/shl.rb
+++ b/sample/pty/shl.rb
diff --git a/sample/rss/re_read.rb b/sample/rss/re_read.rb
index ee54a18a88..c386ab20f6 100755
--- a/sample/rss/re_read.rb
+++ b/sample/rss/re_read.rb
@@ -24,7 +24,7 @@ ARGV.each do |fname|
File.open(fname) do |f|
source = f.read
end
-
+
rss = nil
read = false
begin
@@ -44,7 +44,7 @@ ARGV.each do |fname|
rescue RSS::Error
error($!) if verbose
end
-
+
if rss.nil?
puts "Invalid feed: #{fname}"
elsif !read
diff --git a/sample/svr.rb b/sample/svr.rb
index 11cfc5fbfe..eb49ccf170 100644
--- a/sample/svr.rb
+++ b/sample/svr.rb
@@ -6,7 +6,7 @@
require "socket"
-gs = TCPserver.open(0)
+gs = TCPServer.open(0)
addr = gs.addr
addr.shift
printf("server is on %s\n", addr.join(":"))
@@ -26,7 +26,7 @@ loop do
s.close
socks.delete(s)
# single thread gets may block whole service
- elsif str = s.gets
+ elsif str = s.gets
s.write(str)
end
end
diff --git a/sample/test.rb b/sample/test.rb
index b0475c89f6..4e934f1f84 100644
--- a/sample/test.rb
+++ b/sample/test.rb
@@ -21,7 +21,7 @@ def test_ok(cond,n=1)
else
STDERR.print "F"
printf "not ok %s %d -- %s\n", $what, $testnum, where
- $failed+=1
+ $failed+=1
end
STDOUT.flush
STDERR.flush
@@ -657,7 +657,7 @@ $string = "this must be handled no.3"
begin
begin
raise "exception in rescue clause"
- rescue
+ rescue
raise $string
end
test_ok(false)
@@ -671,7 +671,7 @@ end
begin
begin
raise "this must be handled no.4"
- ensure
+ ensure
raise "exception in ensure clause"
end
test_ok(false)
@@ -741,7 +741,7 @@ test_ok($x[1,3] == [1, 2, 3])
$x[0, 2] = 10
test_ok($x[0] == 10 && $x[1] == 2)
-
+
$x[0, 0] = -1
test_ok($x[0] == -1 && $x[1] == 10)
@@ -817,7 +817,7 @@ $x = {1=>2, 2=>4, 3=>6}
test_ok($x[1] == 2)
-test_ok(begin
+test_ok(begin
for k,v in $x
raise if k*2 != v
end
@@ -1164,7 +1164,7 @@ def proc_return4
end
test_ok(proc_return4() == 42)
-def ljump_test(state, proc, *args)
+def ljump_test(state, proc, *args)
x = state
begin
proc.call(*args)
@@ -1362,7 +1362,7 @@ class ITER_TEST4 < ITER_TEST3
end
end
-ITER_TEST4.new.foo(44){55}
+ITER_TEST4.new.foo(44){55}
class ITER_TEST5
def tt(aa)
@@ -1628,8 +1628,8 @@ test_ok(-265419172580680477752431643787347.to_s(36) == "-justanotherrubyhacker")
a = []
(0..255).each {|n|
- ch = [n].pack("C")
- a.push ch if /a#{Regexp.quote ch}b/x =~ "ab"
+ ch = [n].pack("C")
+ a.push ch if /a#{Regexp.quote ch}b/x =~ "ab"
}
test_ok(a.size == 0)
@@ -1921,33 +1921,6 @@ test_ok(done)
File.unlink "script_tmp" or `/bin/rm -f "script_tmp"`
File.unlink "script_tmp.bak" or `/bin/rm -f "script_tmp.bak"`
-$bad = false
-if (dir = File.dirname(File.dirname(__FILE__))) == '.'
- dir = ""
-else
- dir << "/"
-end
-
-def valid_syntax?(code, fname)
- p fname
- code.force_encoding("ascii-8bit")
- code = code.sub(/\A(?:\s*\#.*$)*(\n)?/n) {
- "#$&#{"\n" if $1 && !$2}BEGIN{throw tag, :ok}\n"
- }.force_encoding("us-ascii")
- catch {|tag| eval(code, binding, fname, 0)}
-rescue Exception
- STDERR.puts $!.message
- false
-end
-
-for script in Dir["#{dir}{lib,sample,ext,test}/**/*.rb"]
- unless valid_syntax? IO::read(script), script
- STDERR.puts script
- $bad = true
- end
-end
-test_ok(!$bad)
-
test_check "const"
TEST1 = 1
TEST2 = 2
@@ -1987,7 +1960,7 @@ end
test_ok(bar.test2 == "test2")
test_ok(bar.test == "test")
-test_ok(foo.test == "test")
+test_ok(foo.test == "test")
begin
foo.test2
@@ -2081,7 +2054,7 @@ class Gods
def self.ruler1 # <= per method definition style
@@rule
- end
+ end
class << self # <= multiple method definition style
def ruler2
@@rule
diff --git a/sample/timeout.rb b/sample/timeout.rb
new file mode 100644
index 0000000000..2870ddb239
--- /dev/null
+++ b/sample/timeout.rb
@@ -0,0 +1,42 @@
+require 'timeout'
+
+def progress(n = 5)
+ n.times {|i| print i; STDOUT.flush; sleep 1; i+= 1}
+ puts "never reach"
+end
+
+p timeout(5) {
+ 45
+}
+p timeout(5, TimeoutError) {
+ 45
+}
+p timeout(nil) {
+ 54
+}
+p timeout(0) {
+ 54
+}
+begin
+ timeout(5) {progress}
+rescue => e
+ puts e.message
+end
+begin
+ timeout(3) {
+ begin
+ timeout(5) {progress}
+ rescue => e
+ puts "never reach"
+ end
+ }
+rescue => e
+ puts e.message
+end
+class MyTimeout < StandardError
+end
+begin
+ timeout(2, MyTimeout) {progress}
+rescue MyTimeout => e
+ puts e.message
+end
diff --git a/sample/trojan.rb b/sample/trojan.rb
index 3a35ac21c2..2be9567b98 100644
--- a/sample/trojan.rb
+++ b/sample/trojan.rb
@@ -5,7 +5,7 @@ path = ENV['PATH'].split(File::PATH_SEPARATOR)
for dir in path
if File.directory?(dir)
for f in d = Dir.open(dir)
- fpath = File.join(dir, f)
+ fpath = File.join(dir, f)
if File.file?(fpath) && (File.stat(fpath).mode & 022) != 0
printf("file %s is writable from other users\n", fpath)
end
diff --git a/sample/tsvr.rb b/sample/tsvr.rb
index 52cdd32dce..2fa6c87ef9 100644
--- a/sample/tsvr.rb
+++ b/sample/tsvr.rb
@@ -3,7 +3,7 @@
require "socket"
-gs = TCPserver.open(0)
+gs = TCPServer.open(0)
addr = gs.addr
addr.shift
printf("server is on %s\n", addr.join(":"))
diff --git a/sample/webrick/httpproxy.rb b/sample/webrick/httpproxy.rb
index bca0cc4626..c84457ece7 100644
--- a/sample/webrick/httpproxy.rb
+++ b/sample/webrick/httpproxy.rb
@@ -1,10 +1,9 @@
require "webrick"
require "webrick/httpproxy"
-# :ProxyContentHandler will be invoked before sending
-# response to User-Agenge. You can inspect the pair of
-# request and response messages (or can edit the response
-# message if necessary).
+# The :ProxyContentHandler proc will be invoked before sending a response to
+# the User-Agent. You can inspect the pair of request and response messages
+# (or edit the response message if necessary).
pch = Proc.new{|req, res|
p [ req.request_line, res.status_line ]
diff --git a/signal.c b/signal.c
index 7c9dda465d..3b91616a7c 100644
--- a/signal.c
+++ b/signal.c
@@ -16,29 +16,23 @@
#include <signal.h>
#include <stdio.h>
#include <errno.h>
+#include "atomic.h"
-#ifdef _WIN32
-typedef LONG rb_atomic_t;
-
-# define ATOMIC_TEST(var) InterlockedExchange(&(var), 0)
-# define ATOMIC_SET(var, val) InterlockedExchange(&(var), (val))
-# define ATOMIC_INC(var) InterlockedIncrement(&(var))
-# define ATOMIC_DEC(var) InterlockedDecrement(&(var))
-
-#else
-typedef int rb_atomic_t;
-
-# define ATOMIC_TEST(var) ((var) ? ((var) = 0, 1) : 0)
-# define ATOMIC_SET(var, val) ((var) = (val))
-# define ATOMIC_INC(var) (++(var))
-# define ATOMIC_DEC(var) (--(var))
+#if !defined(_WIN32) && !defined(HAVE_GCC_ATOMIC_BUILTINS)
+rb_atomic_t
+ruby_atomic_exchange(rb_atomic_t *ptr, rb_atomic_t val)
+{
+ rb_atomic_t old = *ptr;
+ *ptr = val;
+ return old;
+}
#endif
-#ifdef __BEOS__
+#if defined(__BEOS__) || defined(__HAIKU__)
#undef SIGBUS
#endif
-#if defined HAVE_SIGPROCMASK || defined HAVE_SIGSETMASK
+#ifdef HAVE_PTHREAD_SIGMASK
#define USE_TRAP_MASK 1
#else
#define USE_TRAP_MASK 0
@@ -217,10 +211,11 @@ ruby_signal_name(int no)
/*
* call-seq:
- * SignalException.new(sig) => signal_exception
+ * SignalException.new(sig_name) -> signal_exception
+ * SignalException.new(sig_number [, name]) -> signal_exception
*
- * Construct a new SignalException object. +sig+ should be a known
- * signal name, or a signal number.
+ * Construct a new SignalException object. +sig_name+ should be a known
+ * signal name.
*/
static VALUE
@@ -275,7 +270,7 @@ esignal_init(int argc, VALUE *argv, VALUE self)
/*
* call-seq:
- * signal_exception.signo => num
+ * signal_exception.signo -> num
*
* Returns a signal number.
*/
@@ -286,6 +281,7 @@ esignal_signo(VALUE self)
return rb_iv_get(self, "signo");
}
+/* :nodoc: */
static VALUE
interrupt_init(int argc, VALUE *argv, VALUE self)
{
@@ -305,7 +301,7 @@ ruby_default_signal(int sig)
/*
* call-seq:
- * Process.kill(signal, pid, ...) => fixnum
+ * Process.kill(signal, pid, ...) -> fixnum
*
* Sends the given signal to the specified process id(s), or to the
* current process if _pid_ is zero. _signal_ may be an
@@ -325,22 +321,33 @@ ruby_default_signal(int sig)
* <em>produces:</em>
*
* Ouch!
+ *
+ * If _signal_ is an integer but wrong for signal,
+ * <code>Errno::EINVAL</code> or +RangeError+ will be raised.
+ * Otherwise unless _signal_ is a +String+ or a +Symbol+, and a known
+ * signal name, +ArgumentError+ will be raised.
+ *
+ * Also, <code>Errno::ESRCH</code> or +RangeError+ for invalid _pid_,
+ * <code>Errno::EPERM</code> when failed because of no privilege,
+ * will be raised. In these cases, signals may have been sent to
+ * preceding processes.
*/
VALUE
rb_f_kill(int argc, VALUE *argv)
{
#ifndef HAS_KILLPG
-#define killpg(pg, sig) kill(-(pg), sig)
+#define killpg(pg, sig) kill(-(pg), (sig))
#endif
int negative = 0;
int sig;
int i;
+ volatile VALUE str;
const char *s;
rb_secure(2);
if (argc < 2)
- rb_raise(rb_eArgError, "wrong number of arguments -- kill(sig, pid...)");
+ rb_raise(rb_eArgError, "wrong number of arguments (%d for at least 2)", argc);
switch (TYPE(argv[0])) {
case T_FIXNUM:
sig = FIX2INT(argv[0]);
@@ -353,11 +360,11 @@ rb_f_kill(int argc, VALUE *argv)
case T_STRING:
s = RSTRING_PTR(argv[0]);
+ str_signal:
if (s[0] == '-') {
negative++;
s++;
}
- str_signal:
if (strncmp("SIG", s, 3) == 0)
s += 3;
if((sig = signm2signo(s)) == 0)
@@ -368,17 +375,13 @@ rb_f_kill(int argc, VALUE *argv)
break;
default:
- {
- VALUE str;
-
- str = rb_check_string_type(argv[0]);
- if (!NIL_P(str)) {
- s = RSTRING_PTR(str);
- goto str_signal;
- }
- rb_raise(rb_eArgError, "bad signal type %s",
- rb_obj_classname(argv[0]));
+ str = rb_check_string_type(argv[0]);
+ if (!NIL_P(str)) {
+ s = RSTRING_PTR(str);
+ goto str_signal;
}
+ rb_raise(rb_eArgError, "bad signal type %s",
+ rb_obj_classname(argv[0]));
break;
}
@@ -409,7 +412,7 @@ static struct {
#endif
typedef RETSIGTYPE (*sighandler_t)(int);
-#if defined SA_SIGINFO && !defined __SYMBIAN32__
+#ifdef USE_SIGALTSTACK
typedef void ruby_sigaction_t(int, siginfo_t*, void*);
#define SIGINFO_ARG , siginfo_t *info, void *ctx
#else
@@ -418,35 +421,24 @@ typedef RETSIGTYPE ruby_sigaction_t(int);
#endif
#ifdef POSIX_SIGNAL
-#if defined(SIGSEGV) && defined(HAVE_SIGALTSTACK)
-#define USE_SIGALTSTACK
-#endif
#ifdef USE_SIGALTSTACK
-#ifdef SIGSTKSZ
-#define ALT_STACK_SIZE (SIGSTKSZ*2)
-#else
-#define ALT_STACK_SIZE (4*1024)
-#endif
/* alternate stack for SIGSEGV */
-static void
-register_sigaltstack(void)
+void
+rb_register_sigaltstack(rb_thread_t *th)
{
- static void *altstack = 0;
stack_t newSS, oldSS;
- if (altstack) return;
+ if (!th->altstack)
+ rb_bug("rb_register_sigaltstack: th->altstack not initialized\n");
- newSS.ss_sp = altstack = malloc(ALT_STACK_SIZE);
- if (newSS.ss_sp == NULL)
- /* should handle error */
- rb_bug("register_sigaltstack. malloc error\n");
+ newSS.ss_sp = th->altstack;
newSS.ss_size = ALT_STACK_SIZE;
newSS.ss_flags = 0;
sigaltstack(&newSS, &oldSS); /* ignore error. */
}
-#endif
+#endif /* USE_SIGALTSTACK */
static sighandler_t
ruby_signal(int signum, sighandler_t handler)
@@ -458,7 +450,7 @@ ruby_signal(int signum, sighandler_t handler)
#endif
sigemptyset(&sigact.sa_mask);
-#ifdef SA_SIGINFO
+#ifdef USE_SIGALTSTACK
sigact.sa_sigaction = (ruby_sigaction_t*)handler;
sigact.sa_flags = SA_SIGINFO;
#else
@@ -471,12 +463,12 @@ ruby_signal(int signum, sighandler_t handler)
sigact.sa_flags |= SA_NOCLDWAIT;
#endif
#if defined(SA_ONSTACK) && defined(USE_SIGALTSTACK)
- if (signum == SIGSEGV)
+ if (signum == SIGSEGV || signum == SIGBUS)
sigact.sa_flags |= SA_ONSTACK;
#endif
if (sigaction(signum, &sigact, &old) < 0) {
if (errno != 0 && errno != EINVAL) {
- rb_bug("sigaction error.\n");
+ rb_bug_errno("sigaction", errno);
}
}
return old.sa_handler;
@@ -489,7 +481,7 @@ posix_signal(int signum, sighandler_t handler)
}
#else /* !POSIX_SIGNAL */
-#define ruby_signal(sig,handler) (/* rb_trap_accept_nativethreads[sig] = 0,*/ signal((sig),(handler)))
+#define ruby_signal(sig,handler) (/* rb_trap_accept_nativethreads[(sig)] = 0,*/ signal((sig),(handler)))
#if 0 /* def HAVE_NATIVETHREAD */
static sighandler_t
ruby_nativethread_signal(int signum, sighandler_t handler)
@@ -508,6 +500,7 @@ sighandler(int sig)
{
ATOMIC_INC(signal_buff.cnt[sig]);
ATOMIC_INC(signal_buff.size);
+ rb_thread_wakeup_timer_thread();
#if !defined(BSD_SIGNAL) && !defined(POSIX_SIGNAL)
ruby_signal(sig, sighandler);
#endif
@@ -520,11 +513,7 @@ rb_signal_buff_size(void)
}
#if USE_TRAP_MASK
-# ifdef HAVE_SIGPROCMASK
static sigset_t trap_last_mask;
-# else
-static int trap_last_mask;
-# endif
#endif
#if HAVE_PTHREAD_H
@@ -558,16 +547,18 @@ rb_get_next_signal(void)
{
int i, sig = 0;
- for (i=1; i<RUBY_NSIG; i++) {
- if (signal_buff.cnt[i] > 0) {
- rb_disable_interrupt();
- {
- ATOMIC_DEC(signal_buff.cnt[i]);
- ATOMIC_DEC(signal_buff.size);
+ if (signal_buff.size != 0) {
+ for (i=1; i<RUBY_NSIG; i++) {
+ if (signal_buff.cnt[i] > 0) {
+ rb_disable_interrupt();
+ {
+ ATOMIC_DEC(signal_buff.cnt[i]);
+ ATOMIC_DEC(signal_buff.size);
+ }
+ rb_enable_interrupt();
+ sig = i;
+ break;
}
- rb_enable_interrupt();
- sig = i;
- break;
}
}
return sig;
@@ -575,8 +566,21 @@ rb_get_next_signal(void)
#ifdef SIGBUS
static RETSIGTYPE
-sigbus(int sig)
+sigbus(int sig SIGINFO_ARG)
{
+/*
+ * Mac OS X makes KERN_PROTECTION_FAILURE when thread touch guard page.
+ * and it's delivered as SIGBUS instaed of SIGSEGV to userland. It's crazy
+ * wrong IMHO. but anyway we have to care it. Sigh.
+ */
+#if defined __MACH__ && defined __APPLE__ && defined USE_SIGALTSTACK
+ int ruby_stack_overflowed_p(const rb_thread_t *, const void *);
+ NORETURN(void ruby_thread_stack_overflow(rb_thread_t *th));
+ rb_thread_t *th = GET_THREAD();
+ if (ruby_stack_overflowed_p(th, info->si_addr)) {
+ ruby_thread_stack_overflow(th);
+ }
+#endif
rb_bug("Bus Error");
}
#endif
@@ -595,8 +599,8 @@ sigsegv(int sig SIGINFO_ARG)
}
#endif
if (segv_received) {
- fprintf(stderr, "SEGV recieved in SEGV handler\n");
- exit(EXIT_FAILURE);
+ fprintf(stderr, "SEGV received in SEGV handler\n");
+ abort();
}
else {
extern int ruby_disable_gc_stress;
@@ -607,14 +611,6 @@ sigsegv(int sig SIGINFO_ARG)
}
#endif
-#ifdef SIGPIPE
-static RETSIGTYPE
-sigpipe(int sig)
-{
- /* do nothing */
-}
-#endif
-
static void
signal_exec(VALUE cmd, int safe, int sig)
{
@@ -664,12 +660,12 @@ rb_signal_exec(rb_thread_t *th, int sig)
#ifdef SIGUSR2
case SIGUSR2:
#endif
- rb_thread_signal_raise(th, sig);
+ rb_threadptr_signal_raise(th, sig);
break;
}
}
else if (cmd == Qundef) {
- rb_thread_signal_exit(th);
+ rb_threadptr_signal_exit(th);
}
else {
signal_exec(cmd, safe, sig);
@@ -678,11 +674,7 @@ rb_signal_exec(rb_thread_t *th, int sig)
struct trap_arg {
#if USE_TRAP_MASK
-# ifdef HAVE_SIGPROCMASK
sigset_t mask;
-# else
- int mask;
-# endif
#endif
int sig;
sighandler_t func;
@@ -717,20 +709,20 @@ default_handler(int sig)
break;
#ifdef SIGBUS
case SIGBUS:
- func = sigbus;
+ func = (sighandler_t)sigbus;
break;
#endif
#ifdef SIGSEGV
case SIGSEGV:
func = (sighandler_t)sigsegv;
# ifdef USE_SIGALTSTACK
- register_sigaltstack();
+ rb_register_sigaltstack(GET_THREAD());
# endif
break;
#endif
#ifdef SIGPIPE
case SIGPIPE:
- func = sigpipe;
+ func = SIG_IGN;
break;
#endif
default:
@@ -862,11 +854,7 @@ trap(struct trap_arg *arg)
vm->trap_list[sig].safe = rb_safe_level();
/* enable at least specified signal. */
#if USE_TRAP_MASK
-#ifdef HAVE_SIGPROCMASK
sigdelset(&arg->mask, sig);
-#else
- arg->mask &= ~sigmask(sig);
-#endif
#endif
return oldcmd;
}
@@ -876,11 +864,7 @@ static VALUE
trap_ensure(struct trap_arg *arg)
{
/* enable interrupt */
-#ifdef HAVE_SIGPROCMASK
- sigprocmask(SIG_SETMASK, &arg->mask, NULL);
-#else
- sigsetmask(arg->mask);
-#endif
+ pthread_sigmask(SIG_SETMASK, &arg->mask, NULL);
trap_last_mask = arg->mask;
return 0;
}
@@ -890,18 +874,14 @@ void
rb_trap_restore_mask(void)
{
#if USE_TRAP_MASK
-# ifdef HAVE_SIGPROCMASK
- sigprocmask(SIG_SETMASK, &trap_last_mask, NULL);
-# else
- sigsetmask(trap_last_mask);
-# endif
+ pthread_sigmask(SIG_SETMASK, &trap_last_mask, NULL);
#endif
}
/*
* call-seq:
- * Signal.trap( signal, command ) => obj
- * Signal.trap( signal ) {| | block } => obj
+ * Signal.trap( signal, command ) -> obj
+ * Signal.trap( signal ) {| | block } -> obj
*
* Specifies the handling of signals. The first parameter is a signal
* name (a string such as ``SIGALRM'', ``SIGUSR1'', and so on) or a
@@ -936,7 +916,7 @@ sig_trap(int argc, VALUE *argv)
rb_secure(2);
if (argc < 1 || argc > 2) {
- rb_raise(rb_eArgError, "wrong number of arguments -- trap(sig, cmd)/trap(sig){...}");
+ rb_raise(rb_eArgError, "wrong number of arguments (%d for 1..2)", argc);
}
arg.sig = trap_signm(argv[0]);
@@ -953,15 +933,15 @@ sig_trap(int argc, VALUE *argv)
rb_raise(rb_eSecurityError, "Insecure: tainted signal trap");
}
#if USE_TRAP_MASK
- /* disable interrupt */
-# ifdef HAVE_SIGPROCMASK
- sigfillset(&arg.mask);
- sigprocmask(SIG_BLOCK, &arg.mask, &arg.mask);
-# else
- arg.mask = sigblock(~0);
-# endif
+ {
+ sigset_t fullmask;
+
+ /* disable interrupt */
+ sigfillset(&fullmask);
+ pthread_sigmask(SIG_BLOCK, &fullmask, &arg.mask);
- return rb_ensure(trap, (VALUE)&arg, trap_ensure, (VALUE)&arg);
+ return rb_ensure(trap, (VALUE)&arg, trap_ensure, (VALUE)&arg);
+ }
#else
return trap(&arg);
#endif
@@ -969,7 +949,7 @@ sig_trap(int argc, VALUE *argv)
/*
* call-seq:
- * Signal.list => a_hash
+ * Signal.list -> a_hash
*
* Returns a list of signal names mapped to the corresponding
* underlying signal numbers.
@@ -1005,21 +985,12 @@ init_sigchld(int sig)
{
sighandler_t oldfunc;
#if USE_TRAP_MASK
-# ifdef HAVE_SIGPROCMASK
sigset_t mask;
-# else
- int mask;
-# endif
-#endif
+ sigset_t fullmask;
-#if USE_TRAP_MASK
/* disable interrupt */
-# ifdef HAVE_SIGPROCMASK
- sigfillset(&mask);
- sigprocmask(SIG_BLOCK, &mask, &mask);
-# else
- mask = sigblock(~0);
-# endif
+ sigfillset(&fullmask);
+ pthread_sigmask(SIG_BLOCK, &fullmask, &mask);
#endif
oldfunc = ruby_signal(sig, SIG_DFL);
@@ -1030,13 +1001,8 @@ init_sigchld(int sig)
}
#if USE_TRAP_MASK
-#ifdef HAVE_SIGPROCMASK
sigdelset(&mask, sig);
- sigprocmask(SIG_SETMASK, &mask, NULL);
-#else
- mask &= ~sigmask(sig);
- sigsetmask(mask);
-#endif
+ pthread_sigmask(SIG_SETMASK, &mask, NULL);
trap_last_mask = mask;
#endif
}
@@ -1054,8 +1020,9 @@ ruby_sig_finalize(void)
}
-#ifdef RUBY_DEBUG_ENV
int ruby_enable_coredump = 0;
+#ifndef RUBY_DEBUG_ENV
+#define ruby_enable_coredump 0
#endif
/*
@@ -1129,22 +1096,19 @@ Init_signal(void)
install_sighandler(SIGUSR2, sighandler);
#endif
-#ifdef RUBY_DEBUG_ENV
- if (!ruby_enable_coredump)
-#endif
- {
+ if (!ruby_enable_coredump) {
#ifdef SIGBUS
- install_sighandler(SIGBUS, sigbus);
+ install_sighandler(SIGBUS, (sighandler_t)sigbus);
#endif
#ifdef SIGSEGV
# ifdef USE_SIGALTSTACK
- register_sigaltstack();
+ rb_register_sigaltstack(GET_THREAD());
# endif
- install_sighandler(SIGSEGV, (sighandler_t)sigsegv);
+ install_sighandler(SIGSEGV, (sighandler_t)sigsegv);
#endif
}
#ifdef SIGPIPE
- install_sighandler(SIGPIPE, sigpipe);
+ install_sighandler(SIGPIPE, SIG_IGN);
#endif
#if defined(SIGCLD)
diff --git a/sparc.c b/sparc.c
new file mode 100644
index 0000000000..e5f7985e19
--- /dev/null
+++ b/sparc.c
@@ -0,0 +1,30 @@
+/********************************************************************
+ Flush register windows on sparc.
+
+ This function is in a separate file to prevent inlining. The "flushw"
+ assembler instruction used on sparcv9 flushes all register windows
+ except the current one, so if it is inlined, the current register
+ window of the process executing the instruction will not be flushed
+ correctly.
+
+ See http://bugs.ruby-lang.org/issues/5244 for discussion.
+*********************************************************************/
+void rb_sparc_flush_register_windows(void)
+{
+ asm
+#ifdef __GNUC__
+ __volatile__
+#endif
+
+/* This condition should be in sync with one in configure.in */
+#if defined(__sparcv9) || defined(__sparc_v9__) || defined(__arch64__)
+# ifdef __GNUC__
+ ("flushw" : : : "%o7")
+# else
+ ("flushw")
+# endif /* __GNUC__ */
+#else
+ ("ta 0x03")
+#endif
+ ;
+}
diff --git a/spec/README b/spec/README
index 3ba87445e9..9821404697 100644
--- a/spec/README
+++ b/spec/README
@@ -1,15 +1,16 @@
= RubySpec
-RubySpec (http://rubyspec.org) provides the Ruby langauge specification in an
-executable format. The make task `update-rubyspec' retrieves the specification
-and put it into this directory.
+RubySpec (http://rubyspec.org) provides the annotation of the Ruby
+implementation in an executable format. The make task
+`update-rubyspec' retrieves the specification and puts it into this
+directory.
== Directory structure
spec
+-- mspec driver library for executing the specification.
+-- rubyspec
- +-- core specification for core libraries
- | +-- array
+ +-- core specification for core libraries
+ | +-- array
| +-- bignum
| +-- ...
|
@@ -25,6 +26,6 @@ and put it into this directory.
$ make test-rubyspec
:mspec command
verifies the specified spec.
- $ mspec {language|core|language}
+ $ mspec {language|core|library}
or
$ mspec spec/path/to/some_spec.rb
diff --git a/spec/default.mspec b/spec/default.mspec
index cbe59b49fb..a23df2f25a 100644
--- a/spec/default.mspec
+++ b/spec/default.mspec
@@ -7,7 +7,7 @@ class MSpecScript
f.read[/^\s*srcdir\s*=\s*(.+)/i] and srcdir = $1
}
end
- config = proc{|name| `#{builddir}/miniruby -I#{srcdir} -rrbconfig -e 'print RbConfig::CONFIG["#{name}"]'`}
+ config = proc{|name| `#{builddir}/miniruby -I#{srcdir} -r#{builddir}/rbconfig -e 'print RbConfig::CONFIG["#{name}"]'`}
# The default implementation to run the specs.
set :target, File.join(builddir, "miniruby#{config['exeext']}")
@@ -16,7 +16,6 @@ class MSpecScript
-I#{srcdir}/lib
-I#{srcdir}/#{config['EXTOUT']}/common
-I#{srcdir}/-
- -r#{srcdir}/ext/purelib.rb
- #{srcdir}/runruby.rb --extout=#{config['EXTOUT']}
+ #{srcdir}/tool/runruby.rb --extout=#{config['EXTOUT']}
]
end
diff --git a/sprintf.c b/sprintf.c
index 6cb024fdd2..eb8cd73985 100644
--- a/sprintf.c
+++ b/sprintf.c
@@ -30,9 +30,7 @@ static void fmt_setup(char*,size_t,int,int,int,int);
static char*
remove_sign_bits(char *str, int base)
{
- char *s, *t;
-
- s = t = str;
+ char *t = str;
if (base == 16) {
while (*t == 'f') {
@@ -94,13 +92,13 @@ sign_bits(int base, const char *p)
#define PUSH(s, l) do { \
CHECK(l);\
- memcpy(&buf[blen], s, l);\
+ memcpy(&buf[blen], (s), (l));\
blen += (l);\
} while (0)
#define FILL(c, l) do { \
CHECK(l);\
- memset(&buf[blen], c, l);\
+ memset(&buf[blen], (c), (l));\
blen += (l);\
} while (0)
@@ -112,29 +110,29 @@ sign_bits(int base, const char *p)
(posarg = nextarg++, GETNTHARG(posarg)))
#define GETPOSARG(n) (posarg > 0 ? \
- (rb_raise(rb_eArgError, "numbered(%d) after unnumbered(%d)", n, posarg), 0) : \
+ (rb_raise(rb_eArgError, "numbered(%d) after unnumbered(%d)", (n), posarg), 0) : \
posarg == -2 ? \
- (rb_raise(rb_eArgError, "numbered(%d) after named", n), 0) : \
- ((n < 1) ? (rb_raise(rb_eArgError, "invalid index - %d$", n), 0) : \
+ (rb_raise(rb_eArgError, "numbered(%d) after named", (n)), 0) : \
+ (((n) < 1) ? (rb_raise(rb_eArgError, "invalid index - %d$", (n)), 0) : \
(posarg = -1, GETNTHARG(n))))
#define GETNTHARG(nth) \
- ((nth >= argc) ? (rb_raise(rb_eArgError, "too few arguments"), 0) : argv[nth])
+ (((nth) >= argc) ? (rb_raise(rb_eArgError, "too few arguments"), 0) : argv[(nth)])
#define GETNAMEARG(id, name, len) ( \
posarg > 0 ? \
(rb_raise(rb_eArgError, "named%.*s after unnumbered(%d)", (len), (name), posarg), 0) : \
posarg == -1 ? \
(rb_raise(rb_eArgError, "named%.*s after numbered", (len), (name)), 0) : \
- (posarg = -2, rb_hash_lookup2(get_hash(&hash, argc, argv), id, Qundef)))
+ (posarg = -2, rb_hash_lookup2(get_hash(&hash, argc, argv), (id), Qundef)))
#define GETNUM(n, val) \
for (; p < end && rb_enc_isdigit(*p, enc); p++) { \
- int next_n = 10 * n + (*p - '0'); \
- if (next_n / 10 != n) {\
+ int next_n = 10 * (n) + (*p - '0'); \
+ if (next_n / 10 != (n)) {\
rb_raise(rb_eArgError, #val " too big"); \
} \
- n = next_n; \
+ (n) = next_n; \
} \
if (p >= end) { \
rb_raise(rb_eArgError, "malformed format string - %%*[0-9]"); \
@@ -143,7 +141,7 @@ sign_bits(int base, const char *p)
#define GETASTER(val) do { \
t = p++; \
n = 0; \
- GETNUM(n, val); \
+ GETNUM(n, (val)); \
if (*p == '$') { \
tmp = GETPOSARG(n); \
} \
@@ -151,7 +149,7 @@ sign_bits(int base, const char *p)
tmp = GETARG(); \
p = t; \
} \
- val = NUM2INT(tmp); \
+ (val) = NUM2INT(tmp); \
} while (0)
static VALUE
@@ -172,8 +170,8 @@ get_hash(volatile VALUE *hash, int argc, const VALUE *argv)
/*
* call-seq:
- * format(format_string [, arguments...] ) => string
- * sprintf(format_string [, arguments...] ) => string
+ * format(format_string [, arguments...] ) -> string
+ * sprintf(format_string [, arguments...] ) -> string
*
* Returns the string resulting from applying <i>format_string</i> to
* any additional arguments. Within the format string, any characters
@@ -227,6 +225,10 @@ get_hash(volatile VALUE *hash, int argc, const VALUE *argv)
* | equal to the precision, or in dd.dddd form otherwise.
* | The precision specifies the number of significant digits.
* G | Equivalent to `g', but use an uppercase `E' in exponent form.
+ * a | Convert floating point argument as [-]0xh.hhhhp[+-]dd,
+ * | which is consisted from optional sign, "0x", fraction part
+ * | as hexadecimal, "p", and exponential part as decimal.
+ * A | Equivalent to `a', but use uppercase `X' and `P'.
*
* Field | Other Format
* ------+--------------------------------------------------------------
@@ -244,7 +246,7 @@ get_hash(volatile VALUE *hash, int argc, const VALUE *argv)
* Flag | Applies to | Meaning
* ---------+---------------+-----------------------------------------
* space | bBdiouxX | Leave a space at the start of
- * | eEfgG | non-negative numbers.
+ * | aAeEfgG | non-negative numbers.
* | (numeric fmt) | For `o', `x', `X', `b' and `B', use
* | | a minus sign with absolute value for
* | | negative values.
@@ -255,19 +257,19 @@ get_hash(volatile VALUE *hash, int argc, const VALUE *argv)
* | | sprintf string.
* ---------+---------------+-----------------------------------------
* # | bBoxX | Use an alternative format.
- * | eEfgG | For the conversions `o', increase the precision
+ * | aAeEfgG | For the conversions `o', increase the precision
* | | until the first digit will be `0' if
* | | it is not formatted as complements.
* | | For the conversions `x', `X', `b' and `B'
* | | on non-zero, prefix the result with ``0x'',
* | | ``0X'', ``0b'' and ``0B'', respectively.
- * | | For `e', `E', `f', `g', and 'G',
+ * | | For `a', `A', `e', `E', `f', `g', and 'G',
* | | force a decimal point to be added,
* | | even if no digits follow.
* | | For `g' and 'G', do not remove trailing zeros.
* ---------+---------------+-----------------------------------------
* + | bBdiouxX | Add a leading plus sign to non-negative
- * | eEfgG | numbers.
+ * | aAeEfgG | numbers.
* | (numeric fmt) | For `o', `x', `X', `b' and `B', use
* | | a minus sign with absolute value for
* | | negative values.
@@ -275,7 +277,7 @@ get_hash(volatile VALUE *hash, int argc, const VALUE *argv)
* - | all | Left-justify the result of this conversion.
* ---------+---------------+-----------------------------------------
* 0 (zero) | bBdiouxX | Pad with zeros, not spaces.
- * | eEfgG | For `o', `x', `X', `b' and `B', radix-1
+ * | aAeEfgG | For `o', `x', `X', `b' and `B', radix-1
* | (numeric fmt) | is used for negative numbers formatted as
* | | complements.
* ---------+---------------+-----------------------------------------
@@ -416,6 +418,15 @@ get_hash(volatile VALUE *hash, int argc, const VALUE *argv)
* sprintf("%1$*2$s %2$d", "hello", -8) #=> "hello -8"
* sprintf("%+g:% g:%-g", 1.23, 1.23, 1.23) #=> "+1.23: 1.23:1.23"
* sprintf("%u", -123) #=> "-123"
+ *
+ * For more complex formatting, Ruby supports a reference by name.
+ * %<name>s style uses format style, but %{name} style doesn't.
+ *
+ * Exapmles:
+ * sprintf("%<foo>d : %<bar>f", { :foo => 1, :bar => 2 })
+ * #=> 1 : 2.000000
+ * sprintf("%{foo}f", { :foo => 1 })
+ * # => "1f"
*/
VALUE
@@ -430,7 +441,7 @@ rb_str_format(int argc, const VALUE *argv, VALUE fmt)
rb_encoding *enc;
const char *p, *end;
char *buf;
- int blen, bsiz;
+ long blen, bsiz;
VALUE result;
long scanned = 0;
@@ -482,6 +493,10 @@ rb_str_format(int argc, const VALUE *argv, VALUE fmt)
for (t = p; t < end && *t != '%'; t++) ;
PUSH(p, t - p);
+ if (coderange != ENC_CODERANGE_BROKEN && scanned < blen) {
+ scanned += rb_str_coderange_scan_restartable(buf+scanned, buf+blen, enc, &coderange);
+ ENC_CODERANGE_SET(result, coderange);
+ }
if (t >= end) {
/* end of fmt string */
goto sprint_exit;
@@ -626,6 +641,7 @@ rb_str_format(int argc, const VALUE *argv, VALUE fmt)
rb_raise(rb_eArgError, "%%c requires a character");
}
c = rb_enc_codepoint_len(RSTRING_PTR(tmp), RSTRING_END(tmp), &n, enc);
+ RB_GC_GUARD(tmp);
}
else {
c = NUM2INT(val);
@@ -668,7 +684,7 @@ rb_str_format(int argc, const VALUE *argv, VALUE fmt)
rb_str_set_len(result, blen);
if (coderange != ENC_CODERANGE_BROKEN && scanned < blen) {
int cr = coderange;
- scanned = rb_str_coderange_scan_restartable(buf+scanned, buf+blen, enc, &cr);
+ scanned += rb_str_coderange_scan_restartable(buf+scanned, buf+blen, enc, &cr);
ENC_CODERANGE_SET(result,
(cr == ENC_CODERANGE_UNKNOWN ?
ENC_CODERANGE_BROKEN : (coderange = cr)));
@@ -687,7 +703,7 @@ rb_str_format(int argc, const VALUE *argv, VALUE fmt)
}
/* need to adjust multi-byte string pos */
if ((flags&FWIDTH) && (width > slen)) {
- width -= slen;
+ width -= (int)slen;
if (!(flags&FMINUS)) {
CHECK(width);
while (width--) {
@@ -696,6 +712,7 @@ rb_str_format(int argc, const VALUE *argv, VALUE fmt)
}
CHECK(len);
memcpy(&buf[blen], RSTRING_PTR(str), len);
+ RB_GC_GUARD(str);
blen += len;
if (flags&FMINUS) {
CHECK(width);
@@ -708,6 +725,7 @@ rb_str_format(int argc, const VALUE *argv, VALUE fmt)
}
}
PUSH(RSTRING_PTR(str), len);
+ RB_GC_GUARD(str);
rb_enc_associate(result, enc);
}
break;
@@ -721,7 +739,6 @@ rb_str_format(int argc, const VALUE *argv, VALUE fmt)
case 'B':
case 'u':
{
- volatile VALUE tmp1;
volatile VALUE val = GETARG();
char fbuf[32], nbuf[64], *s;
const char *prefix = 0;
@@ -729,7 +746,7 @@ rb_str_format(int argc, const VALUE *argv, VALUE fmt)
char sc = 0;
long v = 0;
int base, bignum = 0;
- int len, pos;
+ int len;
switch (*p) {
case 'd':
@@ -771,7 +788,7 @@ rb_str_format(int argc, const VALUE *argv, VALUE fmt)
bignum = 1;
break;
case T_STRING:
- val = rb_str_to_inum(val, 0, Qtrue);
+ val = rb_str_to_inum(val, 0, TRUE);
goto bin_retry;
case T_BIGNUM:
bignum = 1;
@@ -847,6 +864,7 @@ rb_str_format(int argc, const VALUE *argv, VALUE fmt)
}
}
}
+ len = (int)strlen(s);
}
else {
if (sign) {
@@ -871,7 +889,7 @@ rb_str_format(int argc, const VALUE *argv, VALUE fmt)
val = rb_big_clone(val);
rb_big_2comp(val);
}
- tmp1 = tmp = rb_big2str0(val, base, RBIGNUM_SIGN(val));
+ tmp = rb_big2str0(val, base, RBIGNUM_SIGN(val));
s = RSTRING_PTR(tmp);
if (*s == '-') {
dots = 1;
@@ -889,10 +907,9 @@ rb_str_format(int argc, const VALUE *argv, VALUE fmt)
}
}
}
+ len = rb_long2int(RSTRING_END(tmp) - s);
}
- pos = -1;
- len = strlen(s);
if (dots) {
prec -= 2;
width -= 2;
@@ -922,7 +939,7 @@ rb_str_format(int argc, const VALUE *argv, VALUE fmt)
prefix = 0;
}
if (prefix) {
- width -= strlen(prefix);
+ width -= (int)strlen(prefix);
}
if ((flags & (FZERO|FMINUS|FPREC)) == FZERO) {
prec = width;
@@ -943,7 +960,7 @@ rb_str_format(int argc, const VALUE *argv, VALUE fmt)
}
if (sc) PUSH(&sc, 1);
if (prefix) {
- int plen = strlen(prefix);
+ int plen = (int)strlen(prefix);
PUSH(prefix, plen);
}
CHECK(prec - len);
@@ -966,6 +983,7 @@ rb_str_format(int argc, const VALUE *argv, VALUE fmt)
}
}
PUSH(s, len);
+ RB_GC_GUARD(tmp);
CHECK(width);
while (width-- > 0) {
buf[blen++] = ' ';
@@ -978,6 +996,8 @@ rb_str_format(int argc, const VALUE *argv, VALUE fmt)
case 'G':
case 'e':
case 'E':
+ case 'a':
+ case 'A':
{
VALUE val = GETARG();
double fval;
@@ -994,7 +1014,7 @@ rb_str_format(int argc, const VALUE *argv, VALUE fmt)
else {
expr = "Inf";
}
- need = strlen(expr);
+ need = (int)strlen(expr);
if ((!isnan(fval) && fval < 0.0) || (flags & FPLUS))
need++;
if ((flags & FWIDTH) && need < width)
@@ -1048,6 +1068,7 @@ rb_str_format(int argc, const VALUE *argv, VALUE fmt)
}
sprint_exit:
+ RB_GC_GUARD(fmt);
/* XXX - We cannot validate the number of arguments if (digit)$ style used.
*/
if (posarg >= 0 && nextarg < argc) {
@@ -1055,10 +1076,6 @@ rb_str_format(int argc, const VALUE *argv, VALUE fmt)
if (RTEST(ruby_debug)) rb_raise(rb_eArgError, "%s", mesg);
if (RTEST(ruby_verbose)) rb_warn("%s", mesg);
}
- if (scanned < blen) {
- rb_str_coderange_scan_restartable(buf+scanned, buf+blen, enc, &coderange);
- ENC_CODERANGE_SET(result, coderange);
- }
rb_str_resize(result, blen);
if (tainted) OBJ_TAINT(result);
@@ -1105,11 +1122,15 @@ fmt_setup(char *buf, size_t size, int c, int flags, int width, int prec)
# define quad_t LONG_LONG
# define u_quad_t unsigned LONG_LONG
# endif
+#elif SIZEOF_LONG != SIZEOF_LONG_LONG && SIZEOF_LONG_LONG == 8
+# define _HAVE_SANE_QUAD_
+# define quad_t LONG_LONG
+# define u_quad_t unsigned LONG_LONG
#endif
-#undef snprintf
#define FLOATING_POINT 1
#define BSD__dtoa ruby_dtoa
-#include "missing/vsnprintf.c"
+#define BSD__hdtoa ruby_hdtoa
+#include "vsnprintf.c"
static int
ruby__sfvwrite(register rb_printf_buffer *fp, register struct __suio *uio)
diff --git a/st.c b/st.c
index 1401ba0180..fda5784f98 100644
--- a/st.c
+++ b/st.c
@@ -18,7 +18,7 @@
typedef struct st_table_entry st_table_entry;
struct st_table_entry {
- unsigned int hash;
+ st_index_t hash;
st_data_t key;
st_data_t record;
st_table_entry *next;
@@ -44,13 +44,13 @@ static const struct st_hash_type type_numhash = {
};
/* extern int strcmp(const char *, const char *); */
-static int strhash(const char *);
+static st_index_t strhash(st_data_t);
static const struct st_hash_type type_strhash = {
strcmp,
strhash,
};
-static int strcasehash(const char *);
+static st_index_t strcasehash(st_data_t);
static const struct st_hash_type type_strcasehash = {
st_strcasecmp,
strcasehash,
@@ -64,13 +64,16 @@ static void rehash(st_table *);
#define free(x) xfree(x)
#endif
+#define numberof(array) (int)(sizeof(array) / sizeof((array)[0]))
+
#define alloc(type) (type*)malloc((size_t)sizeof(type))
#define Calloc(n,s) (char*)calloc((n),(s))
-#define EQUAL(table,x,y) ((x)==(y) || (*table->type->compare)((x),(y)) == 0)
+#define EQUAL(table,x,y) ((x)==(y) || (*(table)->type->compare)((x),(y)) == 0)
-#define do_hash(key,table) (unsigned int)(*(table)->type->hash)((key))
-#define do_hash_bin(key,table) (do_hash(key, table)%(table)->num_bins)
+/* remove cast to unsigned int in the future */
+#define do_hash(key,table) (unsigned int)(st_index_t)(*(table)->type->hash)((key))
+#define do_hash_bin(key,table) (do_hash((key), (table))%(table)->num_bins)
/*
* MINSIZE is the minimum size of a dictionary.
@@ -81,7 +84,7 @@ static void rehash(st_table *);
/*
Table of prime numbers 2^n+a, 2<=n<=30.
*/
-static const long primes[] = {
+static const unsigned int primes[] = {
8 + 3,
16 + 3,
32 + 5,
@@ -113,8 +116,8 @@ static const long primes[] = {
0
};
-static int
-new_size(int size)
+static st_index_t
+new_size(st_index_t size)
{
int i;
@@ -124,12 +127,9 @@ new_size(int size)
}
return -1;
#else
- int newsize;
+ st_index_t newsize;
- for (i = 0, newsize = MINSIZE;
- i < (int )(sizeof(primes)/sizeof(primes[0]));
- i++, newsize <<= 1)
- {
+ for (i = 0, newsize = MINSIZE; i < numberof(primes); i++, newsize <<= 1) {
if (newsize > size) return primes[i];
}
/* Ran out of polynomials */
@@ -141,26 +141,40 @@ new_size(int size)
}
#ifdef HASH_LOG
-static int collision = 0;
+#ifdef HAVE_UNISTD_H
+#include <unistd.h>
+#endif
+static struct {
+ int all, total, num, str, strcase;
+} collision;
static int init_st = 0;
static void
stat_col(void)
{
- FILE *f = fopen("/tmp/col", "w");
- fprintf(f, "collision: %d\n", collision);
+ char fname[10+sizeof(long)*3];
+ FILE *f = fopen((snprintf(fname, sizeof(fname), "/tmp/col%ld", (long)getpid()), fname), "w");
+ fprintf(f, "collision: %d / %d (%6.2f)\n", collision.all, collision.total,
+ ((double)collision.all / (collision.total)) * 100);
+ fprintf(f, "num: %d, str: %d, strcase: %d\n", collision.num, collision.str, collision.strcase);
fclose(f);
}
#endif
-#define MAX_PACKED_NUMHASH 5
+#define MAX_PACKED_NUMHASH (ST_DEFAULT_INIT_TABLE_SIZE/2)
st_table*
-st_init_table_with_size(const struct st_hash_type *type, int size)
+st_init_table_with_size(const struct st_hash_type *type, st_index_t size)
{
st_table *tbl;
#ifdef HASH_LOG
+# if HASH_LOG+0 < 0
+ {
+ const char *e = getenv("ST_HASH_LOG");
+ if (!e || !*e) init_st = 1;
+ }
+# endif
if (init_st == 0) {
init_st = 1;
atexit(stat_col);
@@ -194,7 +208,7 @@ st_init_numtable(void)
}
st_table*
-st_init_numtable_with_size(int size)
+st_init_numtable_with_size(st_index_t size)
{
return st_init_table_with_size(&type_numhash, size);
}
@@ -206,7 +220,7 @@ st_init_strtable(void)
}
st_table*
-st_init_strtable_with_size(int size)
+st_init_strtable_with_size(st_index_t size)
{
return st_init_table_with_size(&type_strhash, size);
}
@@ -218,7 +232,7 @@ st_init_strcasetable(void)
}
st_table*
-st_init_strcasetable_with_size(int size)
+st_init_strcasetable_with_size(st_index_t size)
{
return st_init_table_with_size(&type_strcasehash, size);
}
@@ -256,31 +270,61 @@ st_free_table(st_table *table)
free(table);
}
+size_t
+st_memsize(const st_table *table)
+{
+ if (table->entries_packed) {
+ return table->num_bins * sizeof (void *) + sizeof(st_table);
+ }
+ else {
+ return table->num_entries * sizeof(struct st_table_entry) + table->num_bins * sizeof (void *) + sizeof(st_table);
+ }
+}
+
#define PTR_NOT_EQUAL(table, ptr, hash_val, key) \
-((ptr) != 0 && (ptr->hash != (hash_val) || !EQUAL((table), (key), (ptr)->key)))
+((ptr) != 0 && ((ptr)->hash != (hash_val) || !EQUAL((table), (key), (ptr)->key)))
#ifdef HASH_LOG
-#define COLLISION collision++
+static void
+count_collision(const struct st_hash_type *type)
+{
+ collision.all++;
+ if (type == &type_numhash) {
+ collision.num++;
+ }
+ else if (type == &type_strhash) {
+ collision.strcase++;
+ }
+ else if (type == &type_strcasehash) {
+ collision.str++;
+ }
+}
+#define COLLISION (collision_check ? count_collision(table->type) : (void)0)
+#define FOUND_ENTRY (collision_check ? collision.total++ : (void)0)
#else
#define COLLISION
+#define FOUND_ENTRY
#endif
#define FIND_ENTRY(table, ptr, hash_val, bin_pos) do {\
- bin_pos = hash_val%(table)->num_bins;\
- ptr = (table)->bins[bin_pos];\
- if (PTR_NOT_EQUAL(table, ptr, hash_val, key)) {\
+ (bin_pos) = (hash_val)%(table)->num_bins;\
+ (ptr) = (table)->bins[(bin_pos)];\
+ FOUND_ENTRY;\
+ if (PTR_NOT_EQUAL((table), (ptr), (hash_val), key)) {\
COLLISION;\
- while (PTR_NOT_EQUAL(table, ptr->next, hash_val, key)) {\
- ptr = ptr->next;\
+ while (PTR_NOT_EQUAL((table), (ptr)->next, (hash_val), key)) {\
+ (ptr) = (ptr)->next;\
}\
- ptr = ptr->next;\
+ (ptr) = (ptr)->next;\
}\
} while (0)
+#define collision_check 0
+
int
st_lookup(st_table *table, register st_data_t key, st_data_t *value)
{
- unsigned int hash_val, bin_pos;
+ st_index_t hash_val, bin_pos;
register st_table_entry *ptr;
if (table->entries_packed) {
@@ -309,7 +353,7 @@ st_lookup(st_table *table, register st_data_t key, st_data_t *value)
int
st_get_key(st_table *table, register st_data_t key, st_data_t *result)
{
- unsigned int hash_val, bin_pos;
+ st_index_t hash_val, bin_pos;
register st_table_entry *ptr;
if (table->entries_packed) {
@@ -335,53 +379,101 @@ st_get_key(st_table *table, register st_data_t key, st_data_t *result)
}
}
+#undef collision_check
+#define collision_check 1
+
+#define MORE_PACKABLE_P(table) \
+ ((st_index_t)((table)->num_entries+1) * 2 <= (table)->num_bins && \
+ (table)->num_entries+1 <= MAX_PACKED_NUMHASH)
+
#define ADD_DIRECT(table, key, value, hash_val, bin_pos)\
do {\
st_table_entry *entry;\
- if (table->num_entries/(table->num_bins) > ST_DEFAULT_MAX_DENSITY) {\
+ if ((table)->num_entries > ST_DEFAULT_MAX_DENSITY * (table)->num_bins) {\
rehash(table);\
- bin_pos = hash_val % table->num_bins;\
+ (bin_pos) = (hash_val) % (table)->num_bins;\
}\
\
entry = alloc(st_table_entry);\
\
- entry->hash = hash_val;\
- entry->key = key;\
- entry->record = value;\
- entry->next = table->bins[bin_pos];\
- if (table->head != 0) {\
+ entry->hash = (hash_val);\
+ entry->key = (key);\
+ entry->record = (value);\
+ entry->next = (table)->bins[(bin_pos)];\
+ if ((table)->head != 0) {\
entry->fore = 0;\
- (entry->back = table->tail)->fore = entry;\
- table->tail = entry;\
+ (entry->back = (table)->tail)->fore = entry;\
+ (table)->tail = entry;\
}\
else {\
- table->head = table->tail = entry;\
+ (table)->head = (table)->tail = entry;\
entry->fore = entry->back = 0;\
}\
- table->bins[bin_pos] = entry;\
- table->num_entries++;\
+ (table)->bins[(bin_pos)] = entry;\
+ (table)->num_entries++;\
} while (0)
static void
unpack_entries(register st_table *table)
{
- int i;
+ st_index_t i;
struct st_table_entry *packed_bins[MAX_PACKED_NUMHASH*2];
- int num_entries = table->num_entries;
-
- memcpy(packed_bins, table->bins, sizeof(struct st_table_entry *) * num_entries*2);
- table->entries_packed = 0;
- table->num_entries = 0;
- memset(table->bins, 0, sizeof(struct st_table_entry *) * table->num_bins);
- for (i = 0; i < num_entries; i++) {
- st_insert(table, (st_data_t)packed_bins[i*2], (st_data_t)packed_bins[i*2+1]);
+ st_table tmp_table = *table;
+
+ memcpy(packed_bins, table->bins, sizeof(struct st_table_entry *) * table->num_entries*2);
+ table->bins = packed_bins;
+ tmp_table.entries_packed = 0;
+ tmp_table.num_entries = 0;
+ memset(tmp_table.bins, 0, sizeof(struct st_table_entry *) * tmp_table.num_bins);
+ for (i = 0; i < table->num_entries; i++) {
+ st_insert(&tmp_table, (st_data_t)packed_bins[i*2], (st_data_t)packed_bins[i*2+1]);
}
+ *table = tmp_table;
}
int
st_insert(register st_table *table, register st_data_t key, st_data_t value)
{
- unsigned int hash_val, bin_pos;
+ st_index_t hash_val, bin_pos;
+ register st_table_entry *ptr;
+
+ if (table->entries_packed) {
+ st_index_t i;
+ for (i = 0; i < table->num_entries; i++) {
+ if ((st_data_t)table->bins[i*2] == key) {
+ table->bins[i*2+1] = (struct st_table_entry*)value;
+ return 1;
+ }
+ }
+ if (MORE_PACKABLE_P(table)) {
+ i = table->num_entries++;
+ table->bins[i*2] = (struct st_table_entry*)key;
+ table->bins[i*2+1] = (struct st_table_entry*)value;
+ return 0;
+ }
+ else {
+ unpack_entries(table);
+ }
+ }
+
+ hash_val = do_hash(key, table);
+ FIND_ENTRY(table, ptr, hash_val, bin_pos);
+
+ if (ptr == 0) {
+ ADD_DIRECT(table, key, value, hash_val, bin_pos);
+ return 0;
+ }
+ else {
+ ptr->record = value;
+ return 1;
+ }
+}
+
+int
+st_insert2(register st_table *table, register st_data_t key, st_data_t value,
+ st_data_t (*func)(st_data_t))
+{
+ st_index_t hash_val, bin_pos;
register st_table_entry *ptr;
if (table->entries_packed) {
@@ -392,7 +484,7 @@ st_insert(register st_table *table, register st_data_t key, st_data_t value)
return 1;
}
}
- if ((table->num_entries+1) * 2 <= table->num_bins && table->num_entries+1 <= MAX_PACKED_NUMHASH) {
+ if (MORE_PACKABLE_P(table)) {
i = table->num_entries++;
table->bins[i*2] = (struct st_table_entry*)key;
table->bins[i*2+1] = (struct st_table_entry*)value;
@@ -407,6 +499,7 @@ st_insert(register st_table *table, register st_data_t key, st_data_t value)
FIND_ENTRY(table, ptr, hash_val, bin_pos);
if (ptr == 0) {
+ key = (*func)(key);
ADD_DIRECT(table, key, value, hash_val, bin_pos);
return 0;
}
@@ -419,11 +512,11 @@ st_insert(register st_table *table, register st_data_t key, st_data_t value)
void
st_add_direct(st_table *table, st_data_t key, st_data_t value)
{
- unsigned int hash_val, bin_pos;
+ st_index_t hash_val, bin_pos;
if (table->entries_packed) {
int i;
- if ((table->num_entries+1) * 2 <= table->num_bins && table->num_entries+1 <= MAX_PACKED_NUMHASH) {
+ if (MORE_PACKABLE_P(table)) {
i = table->num_entries++;
table->bins[i*2] = (struct st_table_entry*)key;
table->bins[i*2+1] = (struct st_table_entry*)value;
@@ -443,8 +536,7 @@ static void
rehash(register st_table *table)
{
register st_table_entry *ptr, **new_bins;
- int i, new_num_bins;
- unsigned int hash_val;
+ st_index_t i, new_num_bins, hash_val;
new_num_bins = new_size(table->num_bins+1);
new_bins = (st_table_entry**)
@@ -467,8 +559,8 @@ st_copy(st_table *old_table)
{
st_table *new_table;
st_table_entry *ptr, *entry, *prev, **tail;
- int num_bins = old_table->num_bins;
- unsigned int hash_val;
+ st_index_t num_bins = old_table->num_bins;
+ st_index_t hash_val;
new_table = alloc(st_table);
if (new_table == 0) {
@@ -514,24 +606,24 @@ st_copy(st_table *old_table)
#define REMOVE_ENTRY(table, ptr) do \
{ \
- if (ptr->fore == 0 && ptr->back == 0) { \
- table->head = 0; \
- table->tail = 0; \
+ if ((ptr)->fore == 0 && (ptr)->back == 0) { \
+ (table)->head = 0; \
+ (table)->tail = 0; \
} \
else { \
- st_table_entry *fore = ptr->fore, *back = ptr->back; \
+ st_table_entry *fore = (ptr)->fore, *back = (ptr)->back; \
if (fore) fore->back = back; \
if (back) back->fore = fore; \
- if (ptr == table->head) table->head = fore; \
- if (ptr == table->tail) table->tail = back; \
+ if ((ptr) == (table)->head) (table)->head = fore; \
+ if ((ptr) == (table)->tail) (table)->tail = back; \
} \
- table->num_entries--; \
+ (table)->num_entries--; \
} while (0)
int
st_delete(register st_table *table, register st_data_t *key, st_data_t *value)
{
- unsigned int hash_val;
+ st_index_t hash_val;
st_table_entry **prev;
register st_table_entry *ptr;
@@ -570,9 +662,22 @@ st_delete(register st_table *table, register st_data_t *key, st_data_t *value)
int
st_delete_safe(register st_table *table, register st_data_t *key, st_data_t *value, st_data_t never)
{
- unsigned int hash_val;
+ st_index_t hash_val;
register st_table_entry *ptr;
+ if (table->entries_packed) {
+ st_index_t i;
+ for (i = 0; i < table->num_entries; i++) {
+ if ((st_data_t)table->bins[i*2] == *key) {
+ if (value != 0) *value = (st_data_t)table->bins[i*2+1];
+ table->bins[i*2] = (void *)never;
+ return 1;
+ }
+ }
+ if (value != 0) *value = 0;
+ return 0;
+ }
+
hash_val = do_hash_bin(*key, table);
ptr = table->bins[hash_val];
@@ -596,6 +701,21 @@ st_cleanup_safe(st_table *table, st_data_t never)
st_table_entry *ptr, **last, *tmp;
st_index_t i;
+ if (table->entries_packed) {
+ st_index_t i = 0, j = 0;
+ while ((st_data_t)table->bins[i*2] != never) {
+ if (i++ == table->num_entries) return;
+ }
+ for (j = i; ++i < table->num_entries;) {
+ if ((st_data_t)table->bins[i*2] == never) continue;
+ table->bins[j*2] = table->bins[i*2];
+ table->bins[j*2+1] = table->bins[i*2+1];
+ j++;
+ }
+ table->num_entries = j;
+ return;
+ }
+
for (i = 0; i < table->num_bins; i++) {
ptr = *(last = &table->bins[i]);
while (ptr != 0) {
@@ -625,6 +745,14 @@ st_foreach(st_table *table, int (*func)(ANYARGS), st_data_t arg)
key = (st_data_t)table->bins[i*2];
val = (st_data_t)table->bins[i*2+1];
retval = (*func)(key, val, arg);
+ if (!table->entries_packed) {
+ FIND_ENTRY(table, ptr, key, i);
+ if (retval == ST_CHECK) {
+ if (!ptr) goto deleted;
+ goto unpacked_continue;
+ }
+ goto unpacked;
+ }
switch (retval) {
case ST_CHECK: /* check if hash is modified during iteration */
for (j = 0; j < table->num_entries; j++) {
@@ -632,9 +760,7 @@ st_foreach(st_table *table, int (*func)(ANYARGS), st_data_t arg)
break;
}
if (j == table->num_entries) {
- /* call func with error notice */
- retval = (*func)(0, 0, arg, 1);
- return 1;
+ goto deleted;
}
/* fall through */
case ST_CONTINUE:
@@ -651,15 +777,20 @@ st_foreach(st_table *table, int (*func)(ANYARGS), st_data_t arg)
}
return 0;
}
+ else {
+ ptr = table->head;
+ }
- if ((ptr = table->head) != 0) {
+ if (ptr != 0) {
do {
+ i = ptr->hash % table->num_bins;
retval = (*func)(ptr->key, ptr->record, arg);
+ unpacked:
switch (retval) {
case ST_CHECK: /* check if hash is modified during iteration */
- i = ptr->hash % table->num_bins;
for (tmp = table->bins[i]; tmp != ptr; tmp = tmp->next) {
if (!tmp) {
+ deleted:
/* call func with error notice */
retval = (*func)(0, 0, arg, 1);
return 1;
@@ -667,6 +798,7 @@ st_foreach(st_table *table, int (*func)(ANYARGS), st_data_t arg)
}
/* fall through */
case ST_CONTINUE:
+ unpacked_continue:
ptr = ptr->fore;
break;
case ST_STOP:
@@ -848,10 +980,12 @@ st_reverse_foreach(st_table *table, int (*func)(ANYARGS), st_data_t arg)
*/
#define FNV_32_PRIME 0x01000193
-static int
-strhash(register const char *string)
+#ifdef ST_USE_FNV1
+static st_index_t
+strhash(st_data_t arg)
{
- register unsigned int hval = FNV1_32A_INIT;
+ register const char *string = (const char *)arg;
+ register st_index_t hval = FNV1_32A_INIT;
/*
* FNV-1a hash each octet in the buffer
@@ -865,6 +999,263 @@ strhash(register const char *string)
}
return hval;
}
+#else
+
+#ifndef UNALIGNED_WORD_ACCESS
+# if defined(__i386) || defined(__i386__) || defined(_M_IX86) || \
+ defined(__x86_64) || defined(__x86_64__) || defined(_M_AMD86) || \
+ defined(__mc68020__)
+# define UNALIGNED_WORD_ACCESS 1
+# endif
+#endif
+#ifndef UNALIGNED_WORD_ACCESS
+# define UNALIGNED_WORD_ACCESS 0
+#endif
+
+/* MurmurHash described in http://murmurhash.googlepages.com/ */
+#ifndef MURMUR
+#define MURMUR 2
+#endif
+
+#define MurmurMagic_1 (st_index_t)0xc6a4a793
+#define MurmurMagic_2 (st_index_t)0x5bd1e995
+#if MURMUR == 1
+#define MurmurMagic MurmurMagic_1
+#elif MURMUR == 2
+#if SIZEOF_ST_INDEX_T > 4
+#define MurmurMagic ((MurmurMagic_1 << 32) | MurmurMagic_2)
+#else
+#define MurmurMagic MurmurMagic_2
+#endif
+#endif
+
+static inline st_index_t
+murmur(st_index_t h, st_index_t k, int r)
+{
+ const st_index_t m = MurmurMagic;
+#if MURMUR == 1
+ h += k;
+ h *= m;
+ h ^= h >> r;
+#elif MURMUR == 2
+ k *= m;
+ k ^= k >> r;
+ k *= m;
+
+ h *= m;
+ h ^= k;
+#endif
+ return h;
+}
+
+static inline st_index_t
+murmur_finish(st_index_t h)
+{
+#if MURMUR == 1
+ h = murmur(h, 0, 10);
+ h = murmur(h, 0, 17);
+#elif MURMUR == 2
+ h ^= h >> 13;
+ h *= MurmurMagic;
+ h ^= h >> 15;
+#endif
+ return h;
+}
+
+#define murmur_step(h, k) murmur((h), (k), 16)
+
+#if MURMUR == 1
+#define murmur1(h) murmur_step((h), 16)
+#else
+#define murmur1(h) murmur_step((h), 24)
+#endif
+
+st_index_t
+st_hash(const void *ptr, size_t len, st_index_t h)
+{
+ const char *data = ptr;
+ st_index_t t = 0;
+
+ h += 0xdeadbeef;
+
+#define data_at(n) (st_index_t)((unsigned char)data[(n)])
+#define UNALIGNED_ADD_4 UNALIGNED_ADD(2); UNALIGNED_ADD(1); UNALIGNED_ADD(0)
+#if SIZEOF_ST_INDEX_T > 4
+#define UNALIGNED_ADD_8 UNALIGNED_ADD(6); UNALIGNED_ADD(5); UNALIGNED_ADD(4); UNALIGNED_ADD(3); UNALIGNED_ADD_4
+#if SIZEOF_ST_INDEX_T > 8
+#define UNALIGNED_ADD_16 UNALIGNED_ADD(14); UNALIGNED_ADD(13); UNALIGNED_ADD(12); UNALIGNED_ADD(11); \
+ UNALIGNED_ADD(10); UNALIGNED_ADD(9); UNALIGNED_ADD(8); UNALIGNED_ADD(7); UNALIGNED_ADD_8
+#define UNALIGNED_ADD_ALL UNALIGNED_ADD_16
+#endif
+#define UNALIGNED_ADD_ALL UNALIGNED_ADD_8
+#else
+#define UNALIGNED_ADD_ALL UNALIGNED_ADD_4
+#endif
+ if (len >= sizeof(st_index_t)) {
+#if !UNALIGNED_WORD_ACCESS
+ int align = (int)((st_data_t)data % sizeof(st_index_t));
+ if (align) {
+ st_index_t d = 0;
+ int sl, sr, pack;
+
+ switch (align) {
+#ifdef WORDS_BIGENDIAN
+# define UNALIGNED_ADD(n) case SIZEOF_ST_INDEX_T - (n) - 1: \
+ t |= data_at(n) << CHAR_BIT*(SIZEOF_ST_INDEX_T - (n) - 2)
+#else
+# define UNALIGNED_ADD(n) case SIZEOF_ST_INDEX_T - (n) - 1: \
+ t |= data_at(n) << CHAR_BIT*(n)
+#endif
+ UNALIGNED_ADD_ALL;
+#undef UNALIGNED_ADD
+ }
+
+#ifdef WORDS_BIGENDIAN
+ t >>= (CHAR_BIT * align) - CHAR_BIT;
+#else
+ t <<= (CHAR_BIT * align);
+#endif
+
+ data += sizeof(st_index_t)-align;
+ len -= sizeof(st_index_t)-align;
+
+ sl = CHAR_BIT * (SIZEOF_ST_INDEX_T-align);
+ sr = CHAR_BIT * align;
+
+ while (len >= sizeof(st_index_t)) {
+ d = *(st_index_t *)data;
+#ifdef WORDS_BIGENDIAN
+ t = (t << sr) | (d >> sl);
+#else
+ t = (t >> sr) | (d << sl);
+#endif
+ h = murmur_step(h, t);
+ t = d;
+ data += sizeof(st_index_t);
+ len -= sizeof(st_index_t);
+ }
+
+ pack = len < (size_t)align ? (int)len : align;
+ d = 0;
+ switch (pack) {
+#ifdef WORDS_BIGENDIAN
+# define UNALIGNED_ADD(n) case (n) + 1: \
+ d |= data_at(n) << CHAR_BIT*(SIZEOF_ST_INDEX_T - (n) - 1)
+#else
+# define UNALIGNED_ADD(n) case (n) + 1: \
+ d |= data_at(n) << CHAR_BIT*(n)
+#endif
+ UNALIGNED_ADD_ALL;
+#undef UNALIGNED_ADD
+ }
+#ifdef WORDS_BIGENDIAN
+ t = (t << sr) | (d >> sl);
+#else
+ t = (t >> sr) | (d << sl);
+#endif
+
+#if MURMUR == 2
+ if (len < (size_t)align) goto skip_tail;
+#endif
+ h = murmur_step(h, t);
+ data += pack;
+ len -= pack;
+ }
+ else
+#endif
+ {
+ do {
+ h = murmur_step(h, *(st_index_t *)data);
+ data += sizeof(st_index_t);
+ len -= sizeof(st_index_t);
+ } while (len >= sizeof(st_index_t));
+ }
+ }
+
+ t = 0;
+ switch (len) {
+#ifdef WORDS_BIGENDIAN
+# define UNALIGNED_ADD(n) case (n) + 1: \
+ t |= data_at(n) << CHAR_BIT*(SIZEOF_ST_INDEX_T - (n) - 1)
+#else
+# define UNALIGNED_ADD(n) case (n) + 1: \
+ t |= data_at(n) << CHAR_BIT*(n)
+#endif
+ UNALIGNED_ADD_ALL;
+#undef UNALIGNED_ADD
+#if MURMUR == 1
+ h = murmur_step(h, t);
+#elif MURMUR == 2
+# if !UNALIGNED_WORD_ACCESS
+ skip_tail:
+# endif
+ h ^= t;
+ h *= MurmurMagic;
+#endif
+ }
+
+ return murmur_finish(h);
+}
+
+st_index_t
+st_hash_uint32(st_index_t h, uint32_t i)
+{
+ return murmur_step(h + i, 16);
+}
+
+st_index_t
+st_hash_uint(st_index_t h, st_index_t i)
+{
+ st_index_t v = 0;
+ h += i;
+#ifdef WORDS_BIGENDIAN
+#if SIZEOF_ST_INDEX_T*CHAR_BIT > 12*8
+ v = murmur1(v + (h >> 12*8));
+#endif
+#if SIZEOF_ST_INDEX_T*CHAR_BIT > 8*8
+ v = murmur1(v + (h >> 8*8));
+#endif
+#if SIZEOF_ST_INDEX_T*CHAR_BIT > 4*8
+ v = murmur1(v + (h >> 4*8));
+#endif
+#endif
+ v = murmur1(v + h);
+#ifndef WORDS_BIGENDIAN
+#if SIZEOF_ST_INDEX_T*CHAR_BIT > 4*8
+ v = murmur1(v + (h >> 4*8));
+#endif
+#if SIZEOF_ST_INDEX_T*CHAR_BIT > 8*8
+ v = murmur1(v + (h >> 8*8));
+#endif
+#if SIZEOF_ST_INDEX_T*CHAR_BIT > 12*8
+ v = murmur1(v + (h >> 12*8));
+#endif
+#endif
+ return v;
+}
+
+st_index_t
+st_hash_end(st_index_t h)
+{
+ h = murmur_step(h, 10);
+ h = murmur_step(h, 17);
+ return h;
+}
+
+#undef st_hash_start
+st_index_t
+st_hash_start(st_index_t h)
+{
+ return h;
+}
+
+static st_index_t
+strhash(st_data_t arg)
+{
+ register const char *string = (const char *)arg;
+ return st_hash(string, strlen(string), FNV1_32A_INIT);
+}
+#endif
int
st_strcasecmp(const char *s1, const char *s2)
@@ -915,10 +1306,11 @@ st_strncasecmp(const char *s1, const char *s2, size_t n)
return 0;
}
-static int
-strcasehash(register const char *string)
+static st_index_t
+strcasehash(st_data_t arg)
{
- register unsigned int hval = FNV1_32A_INIT;
+ register const char *string = (const char *)arg;
+ register st_index_t hval = FNV1_32A_INIT;
/*
* FNV-1a hash each octet in the buffer
@@ -940,8 +1332,8 @@ st_numcmp(st_data_t x, st_data_t y)
return x != y;
}
-int
+st_index_t
st_numhash(st_data_t n)
{
- return (int)n;
+ return (st_index_t)n;
}
diff --git a/strftime.c b/strftime.c
index 076822742b..1164db01d1 100644
--- a/strftime.c
+++ b/strftime.c
@@ -73,9 +73,6 @@
#define VMS_EXT 1 /* include %v for VMS date format */
#define MAILHEADER_EXT 1 /* add %z for HHMM format */
#define ISO_DATE_EXT 1 /* %G and %g for year of ISO week */
-#ifndef GAWK
-#define POSIX_SEMANTICS 1 /* call tzset() if TZ changes */
-#endif
#if defined(ISO_DATE_EXT)
#if ! defined(POSIX2_DATE)
@@ -123,26 +120,7 @@ extern char *getenv();
extern char *strchr();
#endif
-#define range(low, item, hi) max(low, min(item, hi))
-
-#if defined __WIN32__ || defined _WIN32
-#define DLL_IMPORT __declspec(dllimport)
-#endif
-#ifndef DLL_IMPORT
-#define DLL_IMPORT
-#endif
-#if !defined(OS2) && defined(HAVE_TZNAME)
-extern DLL_IMPORT char *tzname[2];
-#ifdef HAVE_DAYLIGHT
-extern DLL_IMPORT int daylight;
-#endif
-#ifdef HAVE_VAR_TIMEZONE
-extern DLL_IMPORT TYPEOF_VAR_TIMEZONE timezone;
-#endif
-#ifdef HAVE_VAR_ALTZONE
-extern DLL_IMPORT TYPEOF_VAR_ALTZONE altzone;
-#endif
-#endif
+#define range(low, item, hi) max((low), min((item), (hi)))
#undef min /* just in case */
@@ -189,32 +167,18 @@ max(int a, int b)
/* strftime --- produce formatted time */
-size_t
-rb_strftime(char *s, size_t maxsize, const char *format, const struct vtm *vtm, VALUE timev, int gmt)
+static size_t
+rb_strftime_with_timespec(char *s, size_t maxsize, const char *format, const struct vtm *vtm, VALUE timev, struct timespec *ts, int gmt)
{
- char *endp = s + maxsize;
- char *start = s;
+ const char *const endp = s + maxsize;
+ const char *const start = s;
const char *sp, *tp;
auto char tbuf[100];
long off;
- int i, w;
+ ptrdiff_t i;
+ int w;
long y;
- static short first = 1;
-#ifdef POSIX_SEMANTICS
- static char *savetz = NULL;
- static size_t savetzlen = 0;
- char *tz;
-#endif /* POSIX_SEMANTICS */
-#ifndef HAVE_TM_ZONE
-#ifndef HAVE_TM_NAME
-#if ((defined(MAILHEADER_EXT) && !HAVE_VAR_TIMEZONE && HAVE_GETTIMEOFDAY) || \
- (!HAVE_TZNAME && HAVE_TIMEZONE))
- struct timeval tv;
- struct timezone zone;
-#endif
-#endif /* HAVE_TM_NAME */
-#endif /* HAVE_TM_ZONE */
- int precision, flags;
+ int precision, flags, colons;
char padding;
enum {LEFT, CHCASE, LOWER, UPPER, LOCALE_O, LOCALE_E};
#define BIT_OF(n) (1U<<(n))
@@ -241,52 +205,17 @@ rb_strftime(char *s, size_t maxsize, const char *format, const struct vtm *vtm,
return 0;
}
-#ifndef POSIX_SEMANTICS
- if (first) {
- tzset();
- first = 0;
- }
-#else /* POSIX_SEMANTICS */
- tz = getenv("TZ");
- if (first) {
- if (tz != NULL) {
- size_t tzlen = strlen(tz);
-
- savetz = (char *) malloc(tzlen + 1);
- if (savetz != NULL) {
- savetzlen = tzlen + 1;
- memcpy(savetz, tz, savetzlen);
- }
- }
- tzset();
- first = 0;
- }
- /* if we have a saved TZ, and it is different, recapture and reset */
- if (tz && savetz && (tz[0] != savetz[0] || strcmp(tz, savetz) != 0)) {
- size_t i = strlen(tz) + 1;
- if (i > savetzlen) {
- savetz = (char *) realloc(savetz, i);
- if (savetz) {
- savetzlen = i;
- memcpy(savetz, tz, i);
- }
- } else
- memcpy(savetz, tz, i);
- tzset();
- }
-#endif /* POSIX_SEMANTICS */
-
for (; *format && s < endp - 1; format++) {
#define FLAG_FOUND() do { \
if (precision > 0 || flags & (BIT_OF(LOCALE_E)|BIT_OF(LOCALE_O))) \
goto unknown; \
} while (0)
-#define NEEDS(n) do if (s + (n) >= endp - 1) goto err; while (0)
+#define NEEDS(n) do if (s >= endp || (n) >= endp - s - 1) goto err; while (0)
#define FILL_PADDING(i) do { \
- if (!(flags & BIT_OF(LEFT)) && precision > i) { \
+ if (!(flags & BIT_OF(LEFT)) && precision > (i)) { \
NEEDS(precision); \
- memset(s, padding ? padding : ' ', precision - i); \
- s += precision - i; \
+ memset(s, padding ? padding : ' ', precision - (i)); \
+ s += precision - (i); \
} \
else { \
NEEDS(i); \
@@ -298,16 +227,17 @@ rb_strftime(char *s, size_t maxsize, const char *format, const struct vtm *vtm,
if (precision <= 0) precision = (def_prec); \
if (flags & BIT_OF(LEFT)) precision = 1; \
l = snprintf(s, endp - s, \
- ((padding == '0' || (!padding && def_pad == '0')) ? "%0*"fmt : "%*"fmt), \
- precision, val); \
+ ((padding == '0' || (!padding && (def_pad) == '0')) ? "%0*"fmt : "%*"fmt), \
+ precision, (val)); \
if (l < 0) goto err; \
s += l; \
} while (0)
#define STRFTIME(fmt) \
do { \
- i = rb_strftime(s, endp - s, fmt, vtm, timev, gmt); \
+ i = rb_strftime_with_timespec(s, endp - s, (fmt), vtm, timev, ts, gmt); \
if (!i) return 0; \
if (precision > i) {\
+ NEEDS(precision); \
memmove(s + precision - i, s, i);\
memset(s, padding ? padding : ' ', precision - i); \
s += precision; \
@@ -326,8 +256,8 @@ rb_strftime(char *s, size_t maxsize, const char *format, const struct vtm *vtm,
if (precision <= 0) precision = (def_prec); \
if (flags & BIT_OF(LEFT)) precision = 1; \
args[0] = INT2FIX(precision); \
- args[1] = val; \
- if (padding == '0' || (!padding && def_pad == '0')) \
+ args[1] = (val); \
+ if (padding == '0' || (!padding && (def_pad) == '0')) \
result = rb_str_format(2, args, rb_str_new2("%0*"fmt)); \
else \
result = rb_str_format(2, args, rb_str_new2("%*"fmt)); \
@@ -347,6 +277,7 @@ rb_strftime(char *s, size_t maxsize, const char *format, const struct vtm *vtm,
precision = -1;
flags = 0;
padding = 0;
+ colons = 0;
again:
switch (*++format) {
case '\0':
@@ -411,12 +342,12 @@ rb_strftime(char *s, size_t maxsize, const char *format, const struct vtm *vtm,
case 'd': /* day of the month, 01 - 31 */
i = range(1, vtm->mday, 31);
- FMT('0', 2, "d", i);
+ FMT('0', 2, "d", (int)i);
continue;
case 'H': /* hour, 24-hour clock, 00 - 23 */
i = range(0, vtm->hour, 23);
- FMT('0', 2, "d", i);
+ FMT('0', 2, "d", (int)i);
continue;
case 'I': /* hour, 12-hour clock, 01 - 12 */
@@ -425,7 +356,7 @@ rb_strftime(char *s, size_t maxsize, const char *format, const struct vtm *vtm,
i = 12;
else if (i > 12)
i -= 12;
- FMT('0', 2, "d", i);
+ FMT('0', 2, "d", (int)i);
continue;
case 'j': /* day of the year, 001 - 366 */
@@ -434,12 +365,12 @@ rb_strftime(char *s, size_t maxsize, const char *format, const struct vtm *vtm,
case 'm': /* month, 01 - 12 */
i = range(1, vtm->mon, 12);
- FMT('0', 2, "d", i);
+ FMT('0', 2, "d", (int)i);
continue;
case 'M': /* minute, 00 - 59 */
i = range(0, vtm->min, 59);
- FMT('0', 2, "d", i);
+ FMT('0', 2, "d", (int)i);
continue;
case 'p': /* AM or PM based on 12-hour clock */
@@ -458,15 +389,22 @@ rb_strftime(char *s, size_t maxsize, const char *format, const struct vtm *vtm,
break;
case 's':
- {
+ if (ts) {
+ time_t sec = ts->tv_sec;
+ if (~(time_t)0 <= 0)
+ FMT('0', 1, PRI_TIMET_PREFIX"d", sec);
+ else
+ FMT('0', 1, PRI_TIMET_PREFIX"u", sec);
+ }
+ else {
VALUE sec = div(timev, INT2FIX(1));
FMTV('0', 1, "d", sec);
- continue;
}
+ continue;
case 'S': /* second, 00 - 60 */
i = range(0, vtm->sec, 60);
- FMT('0', 2, "d", i);
+ FMT('0', 2, "d", (int)i);
continue;
case 'U': /* week of year, Sunday is first day of week */
@@ -475,7 +413,7 @@ rb_strftime(char *s, size_t maxsize, const char *format, const struct vtm *vtm,
case 'w': /* weekday, Sunday == 0, 0 - 6 */
i = range(0, vtm->wday, 6);
- FMT('0', 1, "d", i);
+ FMT('0', 1, "d", (int)i);
continue;
case 'W': /* week of year, Monday is first day of week */
@@ -492,76 +430,46 @@ rb_strftime(char *s, size_t maxsize, const char *format, const struct vtm *vtm,
case 'y': /* year without a century, 00 - 99 */
i = NUM2INT(mod(vtm->year, INT2FIX(100)));
- FMT('0', 2, "d", i);
+ FMT('0', 2, "d", (int)i);
continue;
case 'Y': /* year with century */
- FMTV('0', 1, "d", vtm->year);
+ if (FIXNUM_P(vtm->year)) {
+ long y = FIX2LONG(vtm->year);
+ FMT('0', 0 <= y ? 4 : 5, "ld", y);
+ }
+ else {
+ FMTV('0', 4, "d", vtm->year);
+ }
continue;
#ifdef MAILHEADER_EXT
- /*
- * From: Chip Rosenthal <chip@chinacat.unicom.com>
- * Date: Sun, 19 Mar 1995 00:33:29 -0600 (CST)
- *
- * Warning: the %z [code] is implemented by inspecting the
- * timezone name conditional compile settings, and
- * inferring a method to get timezone offsets. I've tried
- * this code on a couple of machines, but I don't doubt
- * there is some system out there that won't like it.
- * Maybe the easiest thing to do would be to bracket this
- * with an #ifdef that can turn it off. The %z feature
- * would be an admittedly obscure one that most folks can
- * live without, but it would be a great help to those of
- * us that muck around with various message processors.
- */
- case 'z': /* time zone offset east of GMT e.g. -0600 */
- if (precision < 4) precision = 4;
- NEEDS(precision + 1);
+ case 'z': /* time zone offset east of GMT e.g. -0600 */
+ switch (colons) {
+ case 0: /* %z -> +hhmm */
+ precision = precision <= 5 ? 2 : precision-3;
+ NEEDS(precision + 3);
+ break;
+
+ case 1: /* %:z -> +hh:mm */
+ precision = precision <= 6 ? 2 : precision-4;
+ NEEDS(precision + 4);
+ break;
+
+ case 2: /* %::z -> +hh:mm:ss */
+ precision = precision <= 9 ? 2 : precision-7;
+ NEEDS(precision + 7);
+ break;
+
+ default:
+ format--;
+ goto unknown;
+ }
if (gmt) {
off = 0;
}
else {
- off = NUM2LONG(rb_funcall(quo(vtm->utc_offset, INT2FIX(60)), rb_intern("round"), 0));
-#if 0
-#ifdef HAVE_TM_NAME
- /*
- * Systems with tm_name probably have tm_tzadj as
- * secs west of GMT. Convert to mins east of GMT.
- */
- off = -timeptr->tm_tzadj / 60;
-#else /* !HAVE_TM_NAME */
-#ifdef HAVE_TM_ZONE
- /*
- * Systems with tm_zone probably have tm_gmtoff as
- * secs east of GMT. Convert to mins east of GMT.
- */
- off = timeptr->tm_gmtoff / 60;
-#else /* !HAVE_TM_ZONE */
-#if HAVE_VAR_TIMEZONE
-#if HAVE_VAR_ALTZONE
- off = -(daylight ? timezone : altzone) / 60;
-#else
- off = -timezone / 60;
-#endif
-#else /* !HAVE_VAR_TIMEZONE */
-#ifdef HAVE_GETTIMEOFDAY
- gettimeofday(&tv, &zone);
- off = -zone.tz_minuteswest;
-#else
- /* no timezone info, then calc by myself */
- {
- struct tm utc;
- time_t now;
- time(&now);
- utc = *gmtime(&now);
- off = (long)((now - mktime(&utc)) / 60);
- }
-#endif
-#endif /* !HAVE_VAR_TIMEZONE */
-#endif /* !HAVE_TM_ZONE */
-#endif /* !HAVE_TM_NAME */
-#endif /* 0 */
+ off = NUM2LONG(rb_funcall(vtm->utc_offset, rb_intern("round"), 0));
}
if (off < 0) {
off = -off;
@@ -569,15 +477,26 @@ rb_strftime(char *s, size_t maxsize, const char *format, const struct vtm *vtm,
} else {
*s++ = '+';
}
- off = off/60*100 + off%60;
- i = snprintf(s, endp - s, (padding == ' ' ? "%*ld" : "%.*ld"),
- precision - (precision > 4), off);
+ i = snprintf(s, endp - s, (padding == ' ' ? "%*ld" : "%.*ld"), precision, off / 3600);
+ if (i < 0) goto err;
+ s += i;
+ off = off % 3600;
+ if (1 <= colons)
+ *s++ = ':';
+ i = snprintf(s, endp - s, "%02d", (int)(off / 60));
if (i < 0) goto err;
s += i;
+ off = off % 60;
+ if (2 <= colons) {
+ *s++ = ':';
+ i = snprintf(s, endp - s, "%02d", (int)off);
+ if (i < 0) goto err;
+ s += i;
+ }
continue;
#endif /* MAILHEADER_EXT */
- case 'Z': /* time zone name or abbrevation */
+ case 'Z': /* time zone name or abbreviation */
if (flags & BIT_OF(CHCASE)) {
flags &= ~(BIT_OF(UPPER)|BIT_OF(CHCASE));
flags |= BIT_OF(LOWER);
@@ -587,29 +506,6 @@ rb_strftime(char *s, size_t maxsize, const char *format, const struct vtm *vtm,
tp = "UTC";
break;
}
-#if 0
-#ifdef HAVE_TZNAME
- i = (daylight && timeptr->tm_isdst > 0); /* 0 or 1 */
- tp = tzname[i];
-#else
-#ifdef HAVE_TM_ZONE
- tp = timeptr->tm_zone;
-#else
-#ifdef HAVE_TM_NAME
- tp = timeptr->tm_name;
-#else
-#ifdef HAVE_TIMEZONE
- gettimeofday(& tv, & zone);
-#ifdef TIMEZONE_VOID
- tp = timezone();
-#else
- tp = timezone(zone.tz_minuteswest, timeptr->tm_isdst > 0);
-#endif /* TIMEZONE_VOID */
-#endif /* HAVE_TIMEZONE */
-#endif /* HAVE_TM_NAME */
-#endif /* HAVE_TM_ZONE */
-#endif /* HAVE_TZNAME */
-#endif /* 0 */
if (vtm->zone == NULL)
tp = "";
else
@@ -652,7 +548,7 @@ rb_strftime(char *s, size_t maxsize, const char *format, const struct vtm *vtm,
#ifdef SUNOS_EXT
case 'k': /* hour, 24-hour clock, blank pad */
i = range(0, vtm->hour, 23);
- FMT(' ', 2, "d", i);
+ FMT(' ', 2, "d", (int)i);
continue;
case 'l': /* hour, 12-hour clock, 1 - 12, blank pad */
@@ -661,7 +557,7 @@ rb_strftime(char *s, size_t maxsize, const char *format, const struct vtm *vtm,
i = 12;
else if (i > 12)
i -= 12;
- FMT(' ', 2, "d", i);
+ FMT(' ', 2, "d", (int)i);
continue;
#endif
@@ -718,7 +614,13 @@ rb_strftime(char *s, size_t maxsize, const char *format, const struct vtm *vtm,
yv = sub(yv, INT2FIX(1));
if (*format == 'G') {
- FMTV('0', 1, "d", yv);
+ if (FIXNUM_P(yv)) {
+ const long y = FIX2LONG(yv);
+ FMT('0', 0 <= y ? 4 : 5, "ld", y);
+ }
+ else {
+ FMTV('0', 4, "d", yv);
+ }
}
else {
yv = mod(yv, INT2FIX(100));
@@ -746,16 +648,31 @@ rb_strftime(char *s, size_t maxsize, const char *format, const struct vtm *vtm,
*/
w = 9;
subsec:
- {
+ if (precision <= 0) {
+ precision = w;
+ }
+ NEEDS(precision);
+
+ if (ts) {
+ long subsec = ts->tv_nsec;
+ if (9 < precision) {
+ snprintf(s, endp - s, "%09ld", subsec);
+ memset(s+9, '0', precision-9);
+ s += precision;
+ }
+ else {
+ int i;
+ for (i = 0; i < 9-precision; i++)
+ subsec /= 10;
+ snprintf(s, endp - s, "%0*ld", precision, subsec);
+ s += precision;
+ }
+ }
+ else {
VALUE subsec = mod(timev, INT2FIX(1));
int ww;
long n;
- if (precision <= 0) {
- precision = w;
- }
- NEEDS(precision);
-
ww = precision;
while (9 <= ww) {
subsec = mul(subsec, INT2FIX(1000000000));
@@ -769,17 +686,15 @@ rb_strftime(char *s, size_t maxsize, const char *format, const struct vtm *vtm,
subsec = div(subsec, INT2FIX(1));
if (FIXNUM_P(subsec)) {
- int l;
- l = snprintf(s, endp - s, "%0*ld", precision, FIX2LONG(subsec));
+ (void)snprintf(s, endp - s, "%0*ld", precision, FIX2LONG(subsec));
s += precision;
}
else {
VALUE args[2], result;
- size_t l;
args[0] = INT2FIX(precision);
args[1] = subsec;
result = rb_str_format(2, args, rb_str_new2("%0*d"));
- l = strlcpy(s, StringValueCStr(result), endp-s);
+ (void)strlcpy(s, StringValueCStr(result), endp-s);
s += precision;
}
}
@@ -810,6 +725,11 @@ rb_strftime(char *s, size_t maxsize, const char *format, const struct vtm *vtm,
padding = ' ';
goto again;
+ case ':':
+ FLAG_FOUND();
+ colons++;
+ goto again;
+
case '0':
padding = '0';
case '1': case '2': case '3': case '4':
@@ -828,6 +748,7 @@ rb_strftime(char *s, size_t maxsize, const char *format, const struct vtm *vtm,
precision = -1;
flags = 0;
padding = 0;
+ colons = 0;
break;
}
if (i) {
@@ -860,6 +781,18 @@ rb_strftime(char *s, size_t maxsize, const char *format, const struct vtm *vtm,
return 0;
}
+size_t
+rb_strftime(char *s, size_t maxsize, const char *format, const struct vtm *vtm, VALUE timev, int gmt)
+{
+ return rb_strftime_with_timespec(s, maxsize, format, vtm, timev, NULL, gmt);
+}
+
+size_t
+rb_strftime_timespec(char *s, size_t maxsize, const char *format, const struct vtm *vtm, struct timespec *ts, int gmt)
+{
+ return rb_strftime_with_timespec(s, maxsize, format, vtm, Qnil, ts, gmt);
+}
+
/* isleap --- is a year a leap year? */
#ifndef __STDC__
@@ -943,7 +876,7 @@ iso8601wknum(const struct tm *timeptr)
* and that
* timeptr->tm_wday MOD 7 == timeptr->tm_wday
* from which it follows that. . .
- */
+ */
jan1day = timeptr->tm_wday - (timeptr->tm_yday % 7);
if (jan1day < 0)
jan1day += 7;
@@ -1158,7 +1091,7 @@ static char *array[] =
"(%%h) should be same as (%%b) %h",
"(%%j) day of the year (001..366) %j",
"(%%k) hour, 24-hour clock, blank pad ( 0..23) %k",
- "(%%l) hour, 12-hour clock, blank pad ( 0..12) %l",
+ "(%%l) hour, 12-hour clock, blank pad ( 1..12) %l",
"(%%m) month (01..12) %m",
"(%%p) locale's AM or PM based on 12-hour clock %p",
"(%%r) time, 12-hour (same as %%I:%%M:%%S %%p) %r",
diff --git a/string.c b/string.c
index 405500b1d2..134d65b822 100644
--- a/string.c
+++ b/string.c
@@ -14,9 +14,11 @@
#include "ruby/ruby.h"
#include "ruby/re.h"
#include "ruby/encoding.h"
+#include "internal.h"
+#include <assert.h>
-#define BEG(no) regs->beg[no]
-#define END(no) regs->end[no]
+#define BEG(no) (regs->beg[(no)])
+#define END(no) (regs->end[(no)])
#include <math.h>
#include <ctype.h>
@@ -25,6 +27,8 @@
#include <unistd.h>
#endif
+#define numberof(array) (int)(sizeof(array) / sizeof((array)[0]))
+
#undef rb_str_new_cstr
#undef rb_tainted_str_new_cstr
#undef rb_usascii_str_new_cstr
@@ -42,6 +46,8 @@
#undef rb_str_buf_cat2
#undef rb_str_cat2
+static VALUE rb_str_clear(VALUE str);
+
VALUE rb_cString;
VALUE rb_cSymbol;
@@ -50,21 +56,21 @@ VALUE rb_cSymbol;
#define STR_NOEMBED FL_USER1
#define STR_SHARED FL_USER2 /* = ELTS_SHARED */
#define STR_ASSOC FL_USER3
-#define STR_SHARED_P(s) FL_ALL(s, STR_NOEMBED|ELTS_SHARED)
-#define STR_ASSOC_P(s) FL_ALL(s, STR_NOEMBED|STR_ASSOC)
+#define STR_SHARED_P(s) FL_ALL((s), STR_NOEMBED|ELTS_SHARED)
+#define STR_ASSOC_P(s) FL_ALL((s), STR_NOEMBED|STR_ASSOC)
#define STR_NOCAPA (STR_NOEMBED|ELTS_SHARED|STR_ASSOC)
-#define STR_NOCAPA_P(s) (FL_TEST(s,STR_NOEMBED) && FL_ANY(s,ELTS_SHARED|STR_ASSOC))
+#define STR_NOCAPA_P(s) (FL_TEST((s),STR_NOEMBED) && FL_ANY((s),ELTS_SHARED|STR_ASSOC))
#define STR_UNSET_NOCAPA(s) do {\
- if (FL_TEST(s,STR_NOEMBED)) FL_UNSET(s,(ELTS_SHARED|STR_ASSOC));\
+ if (FL_TEST((s),STR_NOEMBED)) FL_UNSET((s),(ELTS_SHARED|STR_ASSOC));\
} while (0)
#define STR_SET_NOEMBED(str) do {\
- FL_SET(str, STR_NOEMBED);\
- STR_SET_EMBED_LEN(str, 0);\
+ FL_SET((str), STR_NOEMBED);\
+ STR_SET_EMBED_LEN((str), 0);\
} while (0)
-#define STR_SET_EMBED(str) FL_UNSET(str, STR_NOEMBED)
-#define STR_EMBED_P(str) (!FL_TEST(str, STR_NOEMBED))
+#define STR_SET_EMBED(str) FL_UNSET((str), STR_NOEMBED)
+#define STR_EMBED_P(str) (!FL_TEST((str), STR_NOEMBED))
#define STR_SET_EMBED_LEN(str, n) do { \
long tmp_n = (n);\
RBASIC(str)->flags &= ~RSTRING_EMBED_LEN_MASK;\
@@ -73,7 +79,7 @@ VALUE rb_cSymbol;
#define STR_SET_LEN(str, n) do { \
if (STR_EMBED_P(str)) {\
- STR_SET_EMBED_LEN(str, n);\
+ STR_SET_EMBED_LEN((str), (n));\
}\
else {\
RSTRING(str)->as.heap.len = (n);\
@@ -84,7 +90,7 @@ VALUE rb_cSymbol;
if (STR_EMBED_P(str)) {\
long n = RSTRING_LEN(str);\
n--;\
- STR_SET_EMBED_LEN(str, n);\
+ STR_SET_EMBED_LEN((str), n);\
}\
else {\
RSTRING(str)->as.heap.len--;\
@@ -94,7 +100,7 @@ VALUE rb_cSymbol;
#define RESIZE_CAPA(str,capacity) do {\
if (STR_EMBED_P(str)) {\
if ((capacity) > RSTRING_EMBED_LEN_MAX) {\
- char *tmp = ALLOC_N(char, capacity+1);\
+ char *tmp = ALLOC_N(char, (capacity)+1);\
memcpy(tmp, RSTRING_PTR(str), RSTRING_LEN(str));\
RSTRING(str)->as.heap.ptr = tmp;\
RSTRING(str)->as.heap.len = RSTRING_LEN(str);\
@@ -138,7 +144,7 @@ static inline const char *
search_nonascii(const char *p, const char *e)
{
#if SIZEOF_VALUE == 8
-# define NONASCII_MASK 0x8080808080808080LL
+# define NONASCII_MASK 0x8080808080808080ULL
#elif SIZEOF_VALUE == 4
# define NONASCII_MASK 0x80808080UL
#endif
@@ -333,10 +339,10 @@ rb_enc_str_asciionly_p(VALUE str)
rb_encoding *enc = STR_ENC_GET(str);
if (!rb_enc_asciicompat(enc))
- return Qfalse;
+ return FALSE;
else if (rb_enc_str_coderange(str) == ENC_CODERANGE_7BIT)
- return Qtrue;
- return Qfalse;
+ return TRUE;
+ return FALSE;
}
static inline void
@@ -347,14 +353,6 @@ str_mod_check(VALUE s, const char *p, long len)
}
}
-static inline void
-str_frozen_check(VALUE s)
-{
- if (OBJ_FROZEN(s)) {
- rb_raise(rb_eRuntimeError, "string frozen");
- }
-}
-
size_t
rb_str_capacity(VALUE str)
{
@@ -510,7 +508,7 @@ rb_str_conv_enc_opts(VALUE str, rb_encoding *from, rb_encoding *to, int ecflags,
switch (ret) {
case econv_destination_buffer_full:
/* destination buffer short */
- len *= 2;
+ len = len < 2 ? 2 : len * 2;
rb_str_resize(newstr, len);
goto retry;
@@ -572,6 +570,18 @@ rb_locale_str_new_cstr(const char *ptr)
}
VALUE
+rb_filesystem_str_new(const char *ptr, long len)
+{
+ return rb_external_str_new_with_enc(ptr, len, rb_filesystem_encoding());
+}
+
+VALUE
+rb_filesystem_str_new_cstr(const char *ptr)
+{
+ return rb_external_str_new_with_enc(ptr, strlen(ptr), rb_filesystem_encoding());
+}
+
+VALUE
rb_str_export(VALUE str)
{
return rb_str_conv_enc(str, STR_ENC_GET(str), rb_default_external_encoding());
@@ -598,6 +608,7 @@ str_replace_shared(VALUE str2, VALUE str)
STR_SET_EMBED_LEN(str2, RSTRING_LEN(str));
}
else {
+ str = rb_str_new_frozen(str);
FL_SET(str2, STR_NOEMBED);
RSTRING(str2)->as.heap.len = RSTRING_LEN(str);
RSTRING(str2)->as.heap.ptr = RSTRING_PTR(str);
@@ -643,8 +654,10 @@ str_new4(VALUE klass, VALUE str)
RSTRING(str2)->as.heap.len = RSTRING_LEN(str);
RSTRING(str2)->as.heap.ptr = RSTRING_PTR(str);
if (STR_SHARED_P(str)) {
+ VALUE shared = RSTRING(str)->as.heap.aux.shared;
+ assert(OBJ_FROZEN(shared));
FL_SET(str2, ELTS_SHARED);
- RSTRING(str2)->as.heap.aux.shared = RSTRING(str)->as.heap.aux.shared;
+ RSTRING(str2)->as.heap.aux.shared = shared;
}
else {
FL_SET(str, ELTS_SHARED);
@@ -664,15 +677,17 @@ rb_str_new_frozen(VALUE orig)
klass = rb_obj_class(orig);
if (STR_SHARED_P(orig) && (str = RSTRING(orig)->as.heap.aux.shared)) {
long ofs;
+ assert(OBJ_FROZEN(str));
ofs = RSTRING_LEN(str) - RSTRING_LEN(orig);
if ((ofs > 0) || (klass != RBASIC(str)->klass) ||
- (!OBJ_TAINTED(str) && OBJ_TAINTED(orig))) {
+ (!OBJ_TAINTED(str) && OBJ_TAINTED(orig)) ||
+ ENCODING_GET(str) != ENCODING_GET(orig)) {
str = str_new3(klass, str);
RSTRING(str)->as.heap.ptr += ofs;
RSTRING(str)->as.heap.len -= ofs;
+ rb_enc_cr_str_exact_copy(str, orig);
+ OBJ_INFECT(str, orig);
}
- rb_enc_cr_str_exact_copy(str, orig);
- OBJ_INFECT(str, orig);
}
else if (STR_EMBED_P(orig)) {
str = str_new(klass, RSTRING_PTR(orig), RSTRING_LEN(orig));
@@ -706,6 +721,15 @@ RUBY_ALIAS_FUNCTION(rb_str_new5(VALUE obj, const char *ptr, long len),
rb_str_new_with_class, (obj, ptr, len))
#define rb_str_new5 rb_str_new_with_class
+static VALUE
+str_new_empty(VALUE str)
+{
+ VALUE v = rb_str_new5(str, 0, 0);
+ rb_enc_copy(v, str);
+ OBJ_INFECT(v, str);
+ return v;
+}
+
#define STR_BUF_MIN_SIZE 128
VALUE
@@ -745,6 +769,22 @@ rb_str_tmp_new(long len)
return str_new(0, 0, len);
}
+void *
+rb_alloc_tmp_buffer(volatile VALUE *store, long len)
+{
+ VALUE s = rb_str_tmp_new(len);
+ *store = s;
+ return RSTRING_PTR(s);
+}
+
+void
+rb_free_tmp_buffer(volatile VALUE *store)
+{
+ VALUE s = *store;
+ *store = 0;
+ if (s) rb_str_clear(s);
+}
+
void
rb_str_free(VALUE str)
{
@@ -753,6 +793,17 @@ rb_str_free(VALUE str)
}
}
+RUBY_FUNC_EXPORTED size_t
+rb_str_memsize(VALUE str)
+{
+ if (!STR_EMBED_P(str) && !STR_SHARED_P(str)) {
+ return RSTRING(str)->as.heap.aux.capa;
+ }
+ else {
+ return 0;
+ }
+}
+
VALUE
rb_str_to_str(VALUE str)
{
@@ -815,10 +866,38 @@ rb_obj_as_string(VALUE obj)
}
static VALUE
+str_replace(VALUE str, VALUE str2)
+{
+ long len;
+
+ len = RSTRING_LEN(str2);
+ if (STR_ASSOC_P(str2)) {
+ str2 = rb_str_new4(str2);
+ }
+ if (STR_SHARED_P(str2)) {
+ VALUE shared = RSTRING(str2)->as.heap.aux.shared;
+ assert(OBJ_FROZEN(shared));
+ STR_SET_NOEMBED(str);
+ RSTRING(str)->as.heap.len = len;
+ RSTRING(str)->as.heap.ptr = RSTRING_PTR(str2);
+ FL_SET(str, ELTS_SHARED);
+ FL_UNSET(str, STR_ASSOC);
+ RSTRING(str)->as.heap.aux.shared = shared;
+ }
+ else {
+ str_replace_shared(str, str2);
+ }
+
+ OBJ_INFECT(str, str2);
+ rb_enc_cr_str_exact_copy(str, str2);
+ return str;
+}
+
+static VALUE
str_duplicate(VALUE klass, VALUE str)
{
VALUE dup = str_alloc(klass);
- rb_str_replace(dup, str);
+ str_replace(dup, str);
return dup;
}
@@ -831,12 +910,12 @@ rb_str_dup(VALUE str)
VALUE
rb_str_resurrect(VALUE str)
{
- return rb_str_replace(str_alloc(rb_cString), str);
+ return str_replace(str_alloc(rb_cString), str);
}
/*
* call-seq:
- * String.new(str="") => new_str
+ * String.new(str="") -> new_str
*
* Returns a new string object containing a copy of <i>str</i>.
*/
@@ -949,7 +1028,10 @@ rb_enc_strlen_cr(const char *p, const char *e, rb_encoding *enc, int *cr)
}
else {
*cr = ENC_CODERANGE_BROKEN;
- p++;
+ if (p + rb_enc_mbminlen(enc) <= e)
+ p += rb_enc_mbminlen(enc);
+ else
+ p = e;
}
}
if (!*cr) *cr = ENC_CODERANGE_7BIT;
@@ -958,13 +1040,30 @@ rb_enc_strlen_cr(const char *p, const char *e, rb_encoding *enc, int *cr)
#ifdef NONASCII_MASK
#define is_utf8_lead_byte(c) (((c)&0xC0) != 0x80)
+
+/*
+ * UTF-8 leading bytes have either 0xxxxxxx or 11xxxxxx
+ * bit represention. (see http://en.wikipedia.org/wiki/UTF-8)
+ * Therefore, following pseudo code can detect UTF-8 leading byte.
+ *
+ * if (!(byte & 0x80))
+ * byte |= 0x40; // turn on bit6
+ * return ((byte>>6) & 1); // bit6 represent it's leading byte or not.
+ *
+ * This function calculate every bytes in the argument word `s'
+ * using the above logic concurrently. and gather every bytes result.
+ */
static inline VALUE
count_utf8_lead_bytes_with_word(const VALUE *s)
{
VALUE d = *s;
+
+ /* Transform into bit0 represent UTF-8 leading or not. */
d |= ~(d>>1);
d >>= 6;
d &= NONASCII_MASK >> 7;
+
+ /* Gather every bytes. */
d += (d>>8);
d += (d>>16);
#if SIZEOF_VALUE == 8
@@ -1020,10 +1119,16 @@ str_strlen(VALUE str, rb_encoding *enc)
return n;
}
+long
+rb_str_strlen(VALUE str)
+{
+ return str_strlen(str, STR_ENC_GET(str));
+}
+
/*
* call-seq:
- * str.length => integer
- * str.size => integer
+ * str.length -> integer
+ * str.size -> integer
*
* Returns the character length of <i>str</i>.
*/
@@ -1039,7 +1144,7 @@ rb_str_length(VALUE str)
/*
* call-seq:
- * str.bytesize => integer
+ * str.bytesize -> integer
*
* Returns the length of <i>str</i> in bytes.
*/
@@ -1047,12 +1152,12 @@ rb_str_length(VALUE str)
static VALUE
rb_str_bytesize(VALUE str)
{
- return INT2NUM(RSTRING_LEN(str));
+ return LONG2NUM(RSTRING_LEN(str));
}
/*
* call-seq:
- * str.empty? => true or false
+ * str.empty? -> true or false
*
* Returns <code>true</code> if <i>str</i> has a length of zero.
*
@@ -1070,7 +1175,7 @@ rb_str_empty(VALUE str)
/*
* call-seq:
- * str + other_str => new_str
+ * str + other_str -> new_str
*
* Concatenation---Returns a new <code>String</code> containing
* <i>other_str</i> concatenated to <i>str</i>.
@@ -1101,7 +1206,7 @@ rb_str_plus(VALUE str1, VALUE str2)
/*
* call-seq:
- * str * integer => new_str
+ * str * integer -> new_str
*
* Copy---Returns a new <code>String</code> containing <i>integer</i> copies of
* the receiver.
@@ -1114,6 +1219,7 @@ rb_str_times(VALUE str, VALUE times)
{
VALUE str2;
long n, len;
+ char *ptr2;
len = NUM2LONG(times);
if (len < 0) {
@@ -1124,16 +1230,17 @@ rb_str_times(VALUE str, VALUE times)
}
str2 = rb_str_new5(str, 0, len *= RSTRING_LEN(str));
+ ptr2 = RSTRING_PTR(str2);
if (len) {
n = RSTRING_LEN(str);
- memcpy(RSTRING_PTR(str2), RSTRING_PTR(str), n);
+ memcpy(ptr2, RSTRING_PTR(str), n);
while (n <= len/2) {
- memcpy(RSTRING_PTR(str2) + n, RSTRING_PTR(str2), n);
+ memcpy(ptr2 + n, ptr2, n);
n *= 2;
}
- memcpy(RSTRING_PTR(str2) + n, RSTRING_PTR(str2), len-n);
+ memcpy(ptr2 + n, ptr2, len-n);
}
- RSTRING_PTR(str2)[RSTRING_LEN(str2)] = '\0';
+ ptr2[RSTRING_LEN(str2)] = '\0';
OBJ_INFECT(str2, str);
rb_enc_cr_str_copy_for_substr(str2, str);
@@ -1142,16 +1249,17 @@ rb_str_times(VALUE str, VALUE times)
/*
* call-seq:
- * str % arg => new_str
+ * str % arg -> new_str
*
* Format---Uses <i>str</i> as a format specification, and returns the result
* of applying it to <i>arg</i>. If the format specification contains more than
- * one substitution, then <i>arg</i> must be an <code>Array</code> containing
- * the values to be substituted. See <code>Kernel::sprintf</code> for details
- * of the format string.
+ * one substitution, then <i>arg</i> must be an <code>Array</code> or <code>Hash</code>
+ * containing the values to be substituted. See <code>Kernel::sprintf</code> for
+ * details of the format string.
*
* "%05d" % 123 #=> "00123"
* "%-5s: %08x" % [ "ID", self.object_id ] #=> "ID : 200e14d6"
+ * "foo = %{foo}" % { :foo => 'bar' } #=> "foo = bar"
*/
static VALUE
@@ -1160,7 +1268,7 @@ rb_str_format_m(VALUE str, VALUE arg)
volatile VALUE tmp = rb_check_array_type(arg);
if (!NIL_P(tmp)) {
- return rb_str_format(RARRAY_LEN(tmp), RARRAY_PTR(tmp), str);
+ return rb_str_format(RARRAY_LENINT(tmp), RARRAY_PTR(tmp), str);
}
return rb_str_format(1, &arg, str);
}
@@ -1171,7 +1279,7 @@ str_modifiable(VALUE str)
if (FL_TEST(str, STR_TMPLOCK)) {
rb_raise(rb_eRuntimeError, "can't modify string; temporarily locked");
}
- if (OBJ_FROZEN(str)) rb_error_frozen("string");
+ rb_check_frozen(str);
if (!OBJ_UNTRUSTED(str) && rb_safe_level() >= 4)
rb_raise(rb_eSecurityError, "Insecure: can't modify string");
}
@@ -1186,23 +1294,27 @@ str_independent(VALUE str)
}
static void
-str_make_independent(VALUE str)
+str_make_independent_expand(VALUE str, long expand)
{
char *ptr;
long len = RSTRING_LEN(str);
+ long capa = len + expand;
- ptr = ALLOC_N(char, len+1);
+ if (len > capa) len = capa;
+ ptr = ALLOC_N(char, capa + 1);
if (RSTRING_PTR(str)) {
memcpy(ptr, RSTRING_PTR(str), len);
}
STR_SET_NOEMBED(str);
+ STR_UNSET_NOCAPA(str);
ptr[len] = 0;
RSTRING(str)->as.heap.ptr = ptr;
RSTRING(str)->as.heap.len = len;
- RSTRING(str)->as.heap.aux.capa = len;
- STR_UNSET_NOCAPA(str);
+ RSTRING(str)->as.heap.aux.capa = capa;
}
+#define str_make_independent(str) str_make_independent_expand((str), 0L)
+
void
rb_str_modify(VALUE str)
{
@@ -1211,6 +1323,29 @@ rb_str_modify(VALUE str)
ENC_CODERANGE_CLEAR(str);
}
+void
+rb_str_modify_expand(VALUE str, long expand)
+{
+ if (expand < 0) {
+ rb_raise(rb_eArgError, "negative expanding string size");
+ }
+ if (!str_independent(str)) {
+ str_make_independent_expand(str, expand);
+ }
+ else if (expand > 0) {
+ long len = RSTRING_LEN(str);
+ long capa = len + expand;
+ if (!STR_EMBED_P(str)) {
+ REALLOC_N(RSTRING(str)->as.heap.ptr, char, capa+1);
+ RSTRING(str)->as.heap.aux.capa = capa;
+ }
+ else if (capa > RSTRING_EMBED_LEN_MAX) {
+ str_make_independent_expand(str, expand);
+ }
+ }
+ ENC_CODERANGE_CLEAR(str);
+}
+
/* As rb_str_modify(), but don't clear coderange */
static void
str_modify_keep_cr(VALUE str)
@@ -1237,7 +1372,7 @@ void
rb_str_associate(VALUE str, VALUE add)
{
/* sanity check */
- if (OBJ_FROZEN(str)) rb_error_frozen("string");
+ rb_check_frozen(str);
if (STR_ASSOC_P(str)) {
/* already associated */
rb_ary_concat(RSTRING(str)->as.heap.aux.shared, add);
@@ -1279,12 +1414,7 @@ rb_string_value(volatile VALUE *ptr)
{
VALUE s = *ptr;
if (TYPE(s) != T_STRING) {
- if (SYMBOL_P(s)) {
- s = rb_sym_to_s(s);
- }
- else {
- s = rb_str_to_str(s);
- }
+ s = rb_str_to_str(s);
*ptr = s;
}
return s;
@@ -1302,10 +1432,16 @@ rb_string_value_cstr(volatile VALUE *ptr)
{
VALUE str = rb_string_value(ptr);
char *s = RSTRING_PTR(str);
+ long len = RSTRING_LEN(str);
- if (!s || RSTRING_LEN(str) != (long)strlen(s)) {
+ if (!s || memchr(s, 0, len)) {
rb_raise(rb_eArgError, "string contains null byte");
}
+ if (s[len]) {
+ rb_str_modify(str);
+ s = RSTRING_PTR(str);
+ s[RSTRING_LEN(str)] = 0;
+ }
return s;
}
@@ -1321,11 +1457,11 @@ rb_check_string_type(VALUE str)
* String.try_convert(obj) -> string or nil
*
* Try to convert <i>obj</i> into a String, using to_str method.
- * Returns converted regexp or nil if <i>obj</i> cannot be converted
+ * Returns converted string or nil if <i>obj</i> cannot be converted
* for any reason.
*
- * String.try_convert("str") # => str
- * String.try_convert(/re/) # => nil
+ * String.try_convert("str") #=> "str"
+ * String.try_convert(/re/) #=> nil
*/
static VALUE
rb_str_s_try_convert(VALUE dummy, VALUE str)
@@ -1333,9 +1469,10 @@ rb_str_s_try_convert(VALUE dummy, VALUE str)
return rb_check_string_type(str);
}
-char*
-rb_enc_nth(const char *p, const char *e, long nth, rb_encoding *enc)
+static char*
+str_nth_len(const char *p, const char *e, long *nthp, rb_encoding *enc)
{
+ long nth = *nthp;
if (rb_enc_mbmaxlen(enc) == 1) {
p += nth;
}
@@ -1348,12 +1485,16 @@ rb_enc_nth(const char *p, const char *e, long nth, rb_encoding *enc)
while (p < e && 0 < nth) {
e2 = p + nth;
- if (e < e2)
+ if (e < e2) {
+ *nthp = nth;
return (char *)e;
+ }
if (ISASCII(*p)) {
p2 = search_nonascii(p, e2);
- if (!p2)
+ if (!p2) {
+ *nthp = nth;
return (char *)e2;
+ }
nth -= p2 - p;
p = p2;
}
@@ -1361,26 +1502,35 @@ rb_enc_nth(const char *p, const char *e, long nth, rb_encoding *enc)
p += n;
nth--;
}
- if (nth != 0)
+ *nthp = nth;
+ if (nth != 0) {
return (char *)e;
+ }
return (char *)p;
}
else {
- while (p<e && nth--) {
+ while (p < e && nth--) {
p += rb_enc_mbclen(p, e, enc);
}
}
if (p > e) p = e;
+ *nthp = nth;
return (char*)p;
}
+char*
+rb_enc_nth(const char *p, const char *e, long nth, rb_encoding *enc)
+{
+ return str_nth_len(p, e, &nth, enc);
+}
+
static char*
str_nth(const char *p, const char *e, long nth, rb_encoding *enc, int singlebyte)
{
if (singlebyte)
p += nth;
else {
- p = rb_enc_nth(p, e, nth, enc);
+ p = str_nth_len(p, e, &nth, enc);
}
if (!p) return 0;
if (p > e) p = e;
@@ -1396,11 +1546,19 @@ str_offset(const char *p, const char *e, long nth, rb_encoding *enc, int singleb
return pp - p;
}
+long
+rb_str_offset(VALUE str, long pos)
+{
+ return str_offset(RSTRING_PTR(str), RSTRING_END(str), pos,
+ STR_ENC_GET(str), single_byte_optimizable(str));
+}
+
#ifdef NONASCII_MASK
static char *
-str_utf8_nth(const char *p, const char *e, long nth)
+str_utf8_nth(const char *p, const char *e, long *nthp)
{
- if ((int)SIZEOF_VALUE * 2 < nth) {
+ long nth = *nthp;
+ if ((int)SIZEOF_VALUE * 2 < e - p && (int)SIZEOF_VALUE * 2 < nth) {
const VALUE *s, *t;
const VALUE lowbits = sizeof(VALUE) - 1;
s = (const VALUE*)(~lowbits & ((VALUE)p + lowbits));
@@ -1422,14 +1580,14 @@ str_utf8_nth(const char *p, const char *e, long nth)
}
p++;
}
+ *nthp = nth;
return (char *)p;
}
static long
str_utf8_offset(const char *p, const char *e, long nth)
{
- const char *pp = str_utf8_nth(p, e, nth);
- if (!pp) return e - p;
+ const char *pp = str_utf8_nth(p, e, &nth);
return pp - p;
}
#endif
@@ -1510,16 +1668,18 @@ rb_str_substr(VALUE str, long beg, long len)
if (beg < 0) return Qnil;
}
}
- else if (beg > 0 && beg > str_strlen(str, enc)) {
+ else if (beg > 0 && beg > RSTRING_LEN(str)) {
return Qnil;
}
if (len == 0) {
+ if (beg > str_strlen(str, enc)) return Qnil;
p = 0;
}
#ifdef NONASCII_MASK
else if (ENC_CODERANGE(str) == ENC_CODERANGE_VALID &&
enc == rb_utf8_encoding()) {
- p = str_utf8_nth(s, e, beg);
+ p = str_utf8_nth(s, e, &beg);
+ if (beg > 0) return Qnil;
len = str_utf8_offset(p, e, len);
}
#endif
@@ -1528,15 +1688,15 @@ rb_str_substr(VALUE str, long beg, long len)
p = s + beg * char_sz;
if (p > e) {
- p = e;
- len = 0;
+ return Qnil;
}
else if (len * char_sz > e - p)
len = e - p;
else
len *= char_sz;
}
- else if ((p = str_nth(s, e, beg, enc, 0)) == e) {
+ else if ((p = str_nth_len(s, e, &beg, enc)) == e) {
+ if (beg > 0) return Qnil;
len = 0;
}
else {
@@ -1594,6 +1754,15 @@ rb_str_unlocktmp(VALUE str)
void
rb_str_set_len(VALUE str, long len)
{
+ long capa;
+
+ str_modifiable(str);
+ if (STR_SHARED_P(str)) {
+ rb_raise(rb_eRuntimeError, "can't set length of shared string");
+ }
+ if (len > (capa = (long)rb_str_capacity(str))) {
+ rb_bug("probable buffer overflow: %ld for %ld", len, capa);
+ }
STR_SET_LEN(str, len);
RSTRING_PTR(str)[len] = '\0';
}
@@ -1602,35 +1771,38 @@ VALUE
rb_str_resize(VALUE str, long len)
{
long slen;
+ int independent;
if (len < 0) {
rb_raise(rb_eArgError, "negative string size (or size too big)");
}
- rb_str_modify(str);
+ independent = str_independent(str);
+ ENC_CODERANGE_CLEAR(str);
slen = RSTRING_LEN(str);
if (len != slen) {
if (STR_EMBED_P(str)) {
- char *ptr;
if (len <= RSTRING_EMBED_LEN_MAX) {
STR_SET_EMBED_LEN(str, len);
RSTRING(str)->as.ary[len] = '\0';
return str;
}
- ptr = ALLOC_N(char,len+1);
- MEMCPY(ptr, RSTRING(str)->as.ary, char, slen);
- RSTRING(str)->as.heap.ptr = ptr;
+ str_make_independent_expand(str, len - slen);
STR_SET_NOEMBED(str);
}
else if (len <= RSTRING_EMBED_LEN_MAX) {
char *ptr = RSTRING(str)->as.heap.ptr;
STR_SET_EMBED(str);
- if (slen > 0) MEMCPY(RSTRING(str)->as.ary, ptr, char, len);
+ if (slen > len) slen = len;
+ if (slen > 0) MEMCPY(RSTRING(str)->as.ary, ptr, char, slen);
RSTRING(str)->as.ary[len] = '\0';
STR_SET_EMBED_LEN(str, len);
- xfree(ptr);
+ if (independent) xfree(ptr);
return str;
}
+ else if (!independent) {
+ str_make_independent_expand(str, len - slen);
+ }
else if (slen < len || slen - len > 1024) {
REALLOC_N(RSTRING(str)->as.heap.ptr, char, len+1);
}
@@ -1687,6 +1859,8 @@ str_buf_cat(VALUE str, const char *ptr, long len)
return str;
}
+#define str_buf_cat2(str, ptr) str_buf_cat((str), (ptr), strlen(ptr))
+
VALUE
rb_str_buf_cat(VALUE str, const char *ptr, long len)
{
@@ -1710,12 +1884,12 @@ rb_str_cat(VALUE str, const char *ptr, long len)
rb_raise(rb_eArgError, "negative string size (or size too big)");
}
if (STR_ASSOC_P(str)) {
- rb_str_modify(str);
- if (STR_EMBED_P(str)) str_make_independent(str);
- REALLOC_N(RSTRING(str)->as.heap.ptr, char, RSTRING(str)->as.heap.len+len+1);
- memcpy(RSTRING(str)->as.heap.ptr + RSTRING(str)->as.heap.len, ptr, len);
- RSTRING(str)->as.heap.len += len;
- RSTRING(str)->as.heap.ptr[RSTRING(str)->as.heap.len] = '\0'; /* sentinel */
+ char *p;
+ rb_str_modify_expand(str, len);
+ p = RSTRING(str)->as.heap.ptr;
+ memcpy(p + RSTRING(str)->as.heap.len, ptr, len);
+ len = RSTRING(str)->as.heap.len += len;
+ p[len] = '\0'; /* sentinel */
return str;
}
@@ -1735,7 +1909,6 @@ rb_enc_cr_str_buf_cat(VALUE str, const char *ptr, long len,
int str_encindex = ENCODING_GET(str);
int res_encindex;
int str_cr, res_cr;
- int str_a8 = ENCODING_IS_ASCII8BIT(str);
int ptr_a8 = ptr_encindex == 0;
str_cr = ENC_CODERANGE(str);
@@ -1766,7 +1939,7 @@ rb_enc_cr_str_buf_cat(VALUE str, const char *ptr, long len,
ptr_cr = coderange_scan(ptr, len, ptr_enc);
}
if (str_cr == ENC_CODERANGE_UNKNOWN) {
- if (str_a8 || ptr_cr != ENC_CODERANGE_7BIT) {
+ if (ENCODING_IS_ASCII8BIT(str) || ptr_cr != ENC_CODERANGE_7BIT) {
str_cr = rb_enc_str_coderange(str);
}
}
@@ -1789,7 +1962,7 @@ rb_enc_cr_str_buf_cat(VALUE str, const char *ptr, long len,
}
else if (str_cr == ENC_CODERANGE_7BIT) {
if (ptr_cr == ENC_CODERANGE_7BIT) {
- res_encindex = !str_a8 ? str_encindex : ptr_encindex;
+ res_encindex = str_encindex;
res_cr = ENC_CODERANGE_7BIT;
}
else {
@@ -1799,7 +1972,10 @@ rb_enc_cr_str_buf_cat(VALUE str, const char *ptr, long len,
}
else if (str_cr == ENC_CODERANGE_VALID) {
res_encindex = str_encindex;
- res_cr = str_cr;
+ if (ptr_cr == ENC_CODERANGE_7BIT || ptr_cr == ENC_CODERANGE_VALID)
+ res_cr = str_cr;
+ else
+ res_cr = ptr_cr;
}
else { /* str_cr == ENC_CODERANGE_BROKEN */
res_encindex = str_encindex;
@@ -1867,17 +2043,17 @@ rb_str_append(VALUE str, VALUE str2)
{
rb_encoding *enc;
int cr, cr2;
+ long len2;
StringValue(str2);
- if (RSTRING_LEN(str2) > 0 && STR_ASSOC_P(str)) {
- long len = RSTRING_LEN(str)+RSTRING_LEN(str2);
+ if ((len2 = RSTRING_LEN(str2)) > 0 && STR_ASSOC_P(str)) {
+ long len = RSTRING_LEN(str) + len2;
enc = rb_enc_check(str, str2);
cr = ENC_CODERANGE(str);
if ((cr2 = ENC_CODERANGE(str2)) > cr) cr = cr2;
- rb_str_modify(str);
- REALLOC_N(RSTRING(str)->as.heap.ptr, char, len+1);
+ rb_str_modify_expand(str, len2);
memcpy(RSTRING(str)->as.heap.ptr + RSTRING(str)->as.heap.len,
- RSTRING_PTR(str2), RSTRING_LEN(str2)+1);
+ RSTRING_PTR(str2), len2+1);
RSTRING(str)->as.heap.len = len;
rb_enc_associate(str, enc);
ENC_CODERANGE_SET(str, cr);
@@ -1887,13 +2063,12 @@ rb_str_append(VALUE str, VALUE str2)
return rb_str_buf_append(str, str2);
}
-
/*
* call-seq:
- * str << integer => str
- * str.concat(integer) => str
- * str << obj => str
- * str.concat(obj) => str
+ * str << integer -> str
+ * str.concat(integer) -> str
+ * str << obj -> str
+ * str.concat(obj) -> str
*
* Append---Concatenates the given object to <i>str</i>. If the object is a
* <code>Integer</code>, it is considered as a codepoint, and is converted
@@ -1907,288 +2082,104 @@ rb_str_append(VALUE str, VALUE str2)
VALUE
rb_str_concat(VALUE str1, VALUE str2)
{
- if (FIXNUM_P(str2) || TYPE(str2) == T_BIGNUM) {
- rb_encoding *enc = STR_ENC_GET(str1);
- unsigned int c = NUM2UINT(str2);
- long pos = RSTRING_LEN(str1);
- int len = rb_enc_codelen(c, enc);
- int cr = ENC_CODERANGE(str1);
+ unsigned int code;
+ rb_encoding *enc = STR_ENC_GET(str1);
- rb_str_resize(str1, pos+len);
- rb_enc_mbcput(c, RSTRING_PTR(str1)+pos, enc);
- ENC_CODERANGE_SET(str1, cr);
- return str1;
+ if (FIXNUM_P(str2) || TYPE(str2) == T_BIGNUM) {
+ if (rb_num_to_uint(str2, &code) == 0) {
+ }
+ else if (FIXNUM_P(str2)) {
+ rb_raise(rb_eRangeError, "%ld out of char range", FIX2LONG(str2));
+ }
+ else {
+ rb_raise(rb_eRangeError, "bignum out of char range");
+ }
+ }
+ else {
+ return rb_str_append(str1, str2);
}
- return rb_str_append(str1, str2);
-}
-
-#ifndef UNALIGNED_WORD_ACCESS
-# if defined __i386__ || defined _M_IX86
-# define UNALIGNED_WORD_ACCESS 1
-# endif
-#endif
-#ifndef UNALIGNED_WORD_ACCESS
-# define UNALIGNED_WORD_ACCESS 0
-#endif
-
-/* MurmurHash described in http://murmurhash.googlepages.com/ */
-#ifndef MURMUR
-#define MURMUR 2
-#endif
-
-#define MurmurMagic 0x7fd652ad
-
-static inline unsigned long
-murmur(unsigned long h, unsigned long k, int r)
-{
- const unsigned int m = MurmurMagic;
-#if MURMUR == 1
- h += k;
- h *= m;
- h ^= h >> r;
-#elif MURMUR == 2
- k *= m;
- k ^= k >> r;
- k *= m;
-
- h *= m;
- h ^= k;
-#endif
- return h;
-}
-#define murmur16(h) murmur_step(h, 16)
-
-static inline unsigned long
-murmur_finish(unsigned long h)
-{
-#if MURMUR == 1
- h = murmur(h, 0, 10);
- h = murmur(h, 0, 17);
-#elif MURMUR == 2
- h ^= h >> 13;
- h *= MurmurMagic;
- h ^= h >> 15;
-#endif
- return h;
-}
-
-#define murmur_step(h, k) murmur(h, k, 16)
-
-static VALUE
-hash(const unsigned char * data, size_t len, VALUE h)
-{
- uint32_t t = 0;
-
- h += 0xdeadbeef;
-
-#ifdef WORDS_BIGENDIAN
-# define SHIFT_OFFSET(i) ((i)*CHAR_BIT)
-#else
-# define SHIFT_OFFSET(i) (32-(i)*CHAR_BIT)
-#endif
- if (len >= sizeof(uint32_t)) {
-#if !UNALIGNED_WORD_ACCESS
- int align = (int)((VALUE)data % sizeof(uint32_t));
- if (align) {
- uint32_t d = 0;
- int sl, sr, pack;
-
- switch (align) {
-#ifdef WORDS_BIGENDIAN
- case 1: t |= data[2];
- case 2: t |= data[1] << CHAR_BIT;
- case 3: t |= data[0] << CHAR_BIT*2;
-#else
- case 1: t |= data[2] << CHAR_BIT*2;
- case 2: t |= data[1] << CHAR_BIT;
- case 3: t |= data[0];
-#endif
- }
-
-#ifdef WORDS_BIGENDIAN
- t >>= (CHAR_BIT * align) - CHAR_BIT;
-#else
- t <<= (CHAR_BIT * align);
-#endif
-
- data += sizeof(uint32_t)-align;
- len -= sizeof(uint32_t)-align;
-
- sl = CHAR_BIT * ((int)sizeof(uint32_t)-align);
- sr = CHAR_BIT * align;
-
- while (len >= sizeof(uint32_t)) {
- d = *(uint32_t *)data;
-#ifdef WORDS_BIGENDIAN
- t = (t << sr) | (d >> sl);
-#else
- t = (t >> sr) | (d << sl);
-#endif
- h = murmur_step(h, t);
- t = d;
- data += sizeof(uint32_t);
- len -= sizeof(uint32_t);
- }
-
- pack = len < (size_t)align ? (int)len : align;
- d = 0;
- switch (pack) {
-#ifdef WORDS_BIGENDIAN
- case 3: d |= data[2] << CHAR_BIT;
- case 2: d |= data[1] << CHAR_BIT*2;
- case 1: d |= data[0] << CHAR_BIT*3;
-#else
- case 3: d |= data[2] << CHAR_BIT*2;
- case 2: d |= data[1] << CHAR_BIT;
- case 1: d |= data[0];
-#endif
- }
-#ifdef WORDS_BIGENDIAN
- t = (t << sr) | (d >> sl);
-#else
- t = (t >> sr) | (d << sl);
-#endif
-#if MURMUR == 2
- if (len < (size_t)align) goto skip_tail;
-#endif
- h = murmur_step(h, t);
- data += pack;
- len -= pack;
+ if (enc == rb_usascii_encoding()) {
+ /* US-ASCII automatically extended to ASCII-8BIT */
+ char buf[1] = {(char)code};
+ if (code > 0xFF) {
+ rb_raise(rb_eRangeError, "%u out of char range", code);
}
- else
-#endif
- {
- do {
- h = murmur_step(h, *(uint32_t *)data);
- data += sizeof(uint32_t);
- len -= sizeof(uint32_t);
- } while (len >= sizeof(uint32_t));
+ rb_str_cat(str1, buf, 1);
+ if (code > 127) {
+ rb_enc_associate(str1, rb_ascii8bit_encoding());
+ ENC_CODERANGE_SET(str1, ENC_CODERANGE_VALID);
}
}
+ else {
+ long pos = RSTRING_LEN(str1);
+ int cr = ENC_CODERANGE(str1);
+ int len;
+ char *buf;
- t = 0;
- switch (len) {
-#ifdef WORDS_BIGENDIAN
- case 3:
- t |= data[2] << CHAR_BIT;
- case 2:
- t |= data[1] << CHAR_BIT*2;
- case 1:
- t |= data[0] << CHAR_BIT*3;
-#else
- case 3:
- t |= data[2] << CHAR_BIT*2;
- case 2:
- t |= data[1] << CHAR_BIT;
- case 1:
- t |= data[0];
-#endif
-#if MURMUR == 1
- h = murmur_step(h, t);
-#elif MURMUR == 2
-# if !UNALIGNED_WORD_ACCESS
- skip_tail:
-# endif
- h ^= t;
- h *= MurmurMagic;
-#endif
+ switch (len = rb_enc_codelen(code, enc)) {
+ case ONIGERR_INVALID_CODE_POINT_VALUE:
+ rb_raise(rb_eRangeError, "invalid codepoint 0x%X in %s", code, rb_enc_name(enc));
+ break;
+ case ONIGERR_TOO_BIG_WIDE_CHAR_VALUE:
+ case 0:
+ rb_raise(rb_eRangeError, "%u out of char range", code);
+ break;
+ }
+ buf = ALLOCA_N(char, len + 1);
+ rb_enc_mbcput(code, buf, enc);
+ if (rb_enc_precise_mbclen(buf, buf + len + 1, enc) != len) {
+ rb_raise(rb_eRangeError, "invalid codepoint 0x%X in %s", code, rb_enc_name(enc));
+ }
+ rb_str_resize(str1, pos+len);
+ strncpy(RSTRING_PTR(str1) + pos, buf, len);
+ if (cr == ENC_CODERANGE_7BIT && code > 127)
+ cr = ENC_CODERANGE_VALID;
+ ENC_CODERANGE_SET(str1, cr);
}
-
- return murmur_finish(h);
-}
-
-VALUE
-rb_hash_uint32(VALUE h, unsigned int i)
-{
- return murmur_step(h + i, 16);
-}
-
-VALUE
-rb_hash_uint(VALUE h, VALUE i)
-{
- unsigned long v = 0;
- h += i;
-#ifdef WORDS_BIGENDIAN
-#if SIZEOF_VALUE*CHAR_BIT > 12*8
- v = murmur16(v + (h >> 12*8));
-#endif
-#if SIZEOF_VALUE*CHAR_BIT > 8*8
- v = murmur16(v + (h >> 8*8));
-#endif
-#if SIZEOF_VALUE*CHAR_BIT > 4*8
- v = murmur16(v + (h >> 4*8));
-#endif
-#endif
- v = murmur16(v + h);
-#ifndef WORDS_BIGENDIAN
-#if SIZEOF_VALUE*CHAR_BIT > 4*8
- v = murmur16(v + (h >> 4*8));
-#endif
-#if SIZEOF_VALUE*CHAR_BIT > 8*8
- v = murmur16(v + (h >> 8*8));
-#endif
-#if SIZEOF_VALUE*CHAR_BIT > 12*8
- v = murmur16(v + (h >> 12*8));
-#endif
-#endif
- return v;
+ return str1;
}
-VALUE
-rb_hash_end(VALUE h)
-{
- h = murmur_step(h, 10);
- h = murmur_step(h, 17);
- return h;
-}
+/*
+ * call-seq:
+ * str.prepend(other_str) -> str
+ *
+ * Prepend---Prepend the given string to <i>str</i>.
+ *
+ * a = "world"
+ * a.prepend("hello ") #=> "hello world"
+ * a #=> "hello world"
+ */
-VALUE
-rb_hash_start(VALUE h)
+static VALUE
+rb_str_prepend(VALUE str, VALUE str2)
{
- static int hashseed_init = 0;
- static VALUE hashseed;
-
- if (!hashseed_init) {
- hashseed = rb_genrand_int32();
-#if SIZEOF_VALUE*CHAR_BIT > 4*8
- hashseed <<= 4*8;
- hashseed |= rb_genrand_int32();
-#endif
-#if SIZEOF_VALUE*CHAR_BIT > 8*8
- hashseed <<= 8*8;
- hashseed |= rb_genrand_int32();
-#endif
-#if SIZEOF_VALUE*CHAR_BIT > 12*8
- hashseed <<= 12*8;
- hashseed |= rb_genrand_int32();
-#endif
- hashseed_init = 1;
- }
-
- return hashseed + h;
+ StringValue(str2);
+ StringValue(str);
+ rb_str_update(str, 0L, 0L, str2);
+ return str;
}
-int
+st_index_t
rb_memhash(const void *ptr, long len)
{
- return (int)hash(ptr, len, rb_hash_start(0));
+ return st_hash(ptr, len, rb_hash_start((st_index_t)len));
}
-int
+st_index_t
rb_str_hash(VALUE str)
{
int e = ENCODING_GET(str);
- if (e) {
- if (rb_enc_str_asciionly_p(str)) e = 0;
+ if (e && rb_enc_str_coderange(str) == ENC_CODERANGE_7BIT) {
+ e = 0;
}
- return (int)rb_memhash((const void *)RSTRING_PTR(str), RSTRING_LEN(str)) ^ e;
+ return rb_memhash((const void *)RSTRING_PTR(str), RSTRING_LEN(str)) ^ e;
}
int
rb_str_hash_cmp(VALUE str1, VALUE str2)
{
- int len;
+ long len;
if (!rb_str_comparable(str1, str2)) return 1;
if (RSTRING_LEN(str1) == (len = RSTRING_LEN(str2)) &&
@@ -2200,7 +2191,7 @@ rb_str_hash_cmp(VALUE str1, VALUE str2)
/*
* call-seq:
- * str.hash => fixnum
+ * str.hash -> fixnum
*
* Return a hash based on the string's length and content.
*/
@@ -2208,7 +2199,7 @@ rb_str_hash_cmp(VALUE str1, VALUE str2)
static VALUE
rb_str_hash_m(VALUE str)
{
- int hval = rb_str_hash(str);
+ st_index_t hval = rb_str_hash(str);
return INT2FIX(hval);
}
@@ -2220,35 +2211,37 @@ rb_str_comparable(VALUE str1, VALUE str2)
int idx1, idx2;
int rc1, rc2;
- if (RSTRING_LEN(str1) == 0) return Qtrue;
- if (RSTRING_LEN(str2) == 0) return Qtrue;
+ if (RSTRING_LEN(str1) == 0) return TRUE;
+ if (RSTRING_LEN(str2) == 0) return TRUE;
idx1 = ENCODING_GET(str1);
idx2 = ENCODING_GET(str2);
- if (idx1 == idx2) return Qtrue;
+ if (idx1 == idx2) return TRUE;
rc1 = rb_enc_str_coderange(str1);
rc2 = rb_enc_str_coderange(str2);
if (rc1 == ENC_CODERANGE_7BIT) {
- if (rc2 == ENC_CODERANGE_7BIT) return Qtrue;
+ if (rc2 == ENC_CODERANGE_7BIT) return TRUE;
if (rb_enc_asciicompat(rb_enc_from_index(idx2)))
- return Qtrue;
+ return TRUE;
}
if (rc2 == ENC_CODERANGE_7BIT) {
if (rb_enc_asciicompat(rb_enc_from_index(idx1)))
- return Qtrue;
+ return TRUE;
}
- return Qfalse;
+ return FALSE;
}
int
rb_str_cmp(VALUE str1, VALUE str2)
{
- long len;
+ long len1, len2;
+ const char *ptr1, *ptr2;
int retval;
- len = lesser(RSTRING_LEN(str1), RSTRING_LEN(str2));
- retval = memcmp(RSTRING_PTR(str1), RSTRING_PTR(str2), len);
- if (retval == 0) {
- if (RSTRING_LEN(str1) == RSTRING_LEN(str2)) {
+ if (str1 == str2) return 0;
+ RSTRING_GETMEM(str1, ptr1, len1);
+ RSTRING_GETMEM(str2, ptr2, len2);
+ if (ptr1 == ptr2 || (retval = memcmp(ptr1, ptr2, lesser(len1, len2))) == 0) {
+ if (len1 == len2) {
if (!rb_str_comparable(str1, str2)) {
if (ENCODING_GET(str1) > ENCODING_GET(str2))
return 1;
@@ -2256,7 +2249,7 @@ rb_str_cmp(VALUE str1, VALUE str2)
}
return 0;
}
- if (RSTRING_LEN(str1) > RSTRING_LEN(str2)) return 1;
+ if (len1 > len2) return 1;
return -1;
}
if (retval > 0) return 1;
@@ -2268,16 +2261,19 @@ static VALUE
str_eql(const VALUE str1, const VALUE str2)
{
const long len = RSTRING_LEN(str1);
+ const char *ptr1, *ptr2;
if (len != RSTRING_LEN(str2)) return Qfalse;
if (!rb_str_comparable(str1, str2)) return Qfalse;
- if (memcmp(RSTRING_PTR(str1), RSTRING_PTR(str2), len) == 0)
+ if ((ptr1 = RSTRING_PTR(str1)) == (ptr2 = RSTRING_PTR(str2)))
+ return Qtrue;
+ if (memcmp(ptr1, ptr2, len) == 0)
return Qtrue;
return Qfalse;
}
/*
* call-seq:
- * str == obj => true or false
+ * str == obj -> true or false
*
* Equality---If <i>obj</i> is not a <code>String</code>, returns
* <code>false</code>. Otherwise, returns <code>true</code> if <i>str</i>
@@ -2299,21 +2295,22 @@ rb_str_equal(VALUE str1, VALUE str2)
/*
* call-seq:
- * str.eql?(other) => true or false
+ * str.eql?(other) -> true or false
*
- * Two strings are equal if the have the same length and content.
+ * Two strings are equal if they have the same length and content.
*/
static VALUE
rb_str_eql(VALUE str1, VALUE str2)
{
+ if (str1 == str2) return Qtrue;
if (TYPE(str2) != T_STRING) return Qfalse;
return str_eql(str1, str2);
}
/*
* call-seq:
- * str <=> other_str => -1, 0, +1
+ * str <=> other_str -> -1, 0, +1 or nil
*
* Comparison---Returns -1 if <i>other_str</i> is greater than, 0 if
* <i>other_str</i> is equal to, and +1 if <i>other_str</i> is less than
@@ -2364,7 +2361,7 @@ rb_str_cmp_m(VALUE str1, VALUE str2)
/*
* call-seq:
- * str.casecmp(other_str) => -1, 0, +1
+ * str.casecmp(other_str) -> -1, 0, +1 or nil
*
* Case-insensitive version of <code>String#<=></code>.
*
@@ -2478,8 +2475,8 @@ rb_str_index(VALUE str, VALUE sub, long offset)
/*
* call-seq:
- * str.index(substring [, offset]) => fixnum or nil
- * str.index(regexp [, offset]) => fixnum or nil
+ * str.index(substring [, offset]) -> fixnum or nil
+ * str.index(regexp [, offset]) -> fixnum or nil
*
* Returns the index of the first occurrence of the given <i>substring</i> or
* pattern (<i>regexp</i>) in <i>str</i>. Returns <code>nil</code> if not
@@ -2518,10 +2515,11 @@ rb_str_index_m(int argc, VALUE *argv, VALUE str)
switch (TYPE(sub)) {
case T_REGEXP:
+ if (pos > str_strlen(str, STR_ENC_GET(str)))
+ return Qnil;
pos = str_offset(RSTRING_PTR(str), RSTRING_END(str), pos,
- rb_enc_check(str, sub), single_byte_optimizable(str));
+ rb_enc_check(str, sub), single_byte_optimizable(str));
- pos = rb_reg_adjust_startpos(sub, str, pos, 0);
pos = rb_reg_search(sub, str, pos, 0);
pos = rb_str_sublen(str, pos);
break;
@@ -2573,14 +2571,14 @@ rb_str_rindex(VALUE str, VALUE sub, long pos)
e = RSTRING_END(str);
t = RSTRING_PTR(sub);
slen = RSTRING_LEN(sub);
- for (;;) {
- s = str_nth(sbeg, e, pos, enc, singlebyte);
- if (!s) return -1;
+ s = str_nth(sbeg, e, pos, enc, singlebyte);
+ while (s) {
if (memcmp(s, t, slen) == 0) {
return pos;
}
if (pos == 0) break;
pos--;
+ s = rb_enc_prev_char(sbeg, s, e, enc);
}
return -1;
}
@@ -2588,8 +2586,8 @@ rb_str_rindex(VALUE str, VALUE sub, long pos)
/*
* call-seq:
- * str.rindex(substring [, fixnum]) => fixnum or nil
- * str.rindex(regexp [, fixnum]) => fixnum or nil
+ * str.rindex(substring [, fixnum]) -> fixnum or nil
+ * str.rindex(regexp [, fixnum]) -> fixnum or nil
*
* Returns the index of the last occurrence of the given <i>substring</i> or
* pattern (<i>regexp</i>) in <i>str</i>. Returns <code>nil</code> if not
@@ -2636,7 +2634,6 @@ rb_str_rindex_m(int argc, VALUE *argv, VALUE str)
STR_ENC_GET(str), single_byte_optimizable(str));
if (!RREGEXP(sub)->ptr || RREGEXP_SRC_LEN(sub)) {
- pos = rb_reg_adjust_startpos(sub, str, pos, 1);
pos = rb_reg_search(sub, str, pos, 1);
pos = rb_str_sublen(str, pos);
}
@@ -2664,13 +2661,13 @@ rb_str_rindex_m(int argc, VALUE *argv, VALUE str)
/*
* call-seq:
- * str =~ obj => fixnum or nil
+ * str =~ obj -> fixnum or nil
*
* Match---If <i>obj</i> is a <code>Regexp</code>, use it as a pattern to match
* against <i>str</i>,and returns the position the match starts, or
* <code>nil</code> if there is no match. Otherwise, invokes
* <i>obj.=~</i>, passing <i>str</i> as an argument. The default
- * <code>=~</code> in <code>Object</code> returns <code>false</code>.
+ * <code>=~</code> in <code>Object</code> returns <code>nil</code>.
*
* "cat o' 9 tails" =~ /\d/ #=> 7
* "cat o' 9 tails" =~ 9 #=> nil
@@ -2697,7 +2694,8 @@ static VALUE get_pat(VALUE, int);
/*
* call-seq:
- * str.match(pattern) => matchdata or nil
+ * str.match(pattern) -> matchdata or nil
+ * str.match(pattern, pos) -> matchdata or nil
*
* Converts <i>pattern</i> to a <code>Regexp</code> (if it isn't already one),
* then invokes its <code>match</code> method on <i>str</i>. If the second
@@ -2728,7 +2726,7 @@ rb_str_match_m(int argc, VALUE *argv, VALUE str)
{
VALUE re, result;
if (argc < 1)
- rb_raise(rb_eArgError, "wrong number of arguments (%d for 1)", argc);
+ rb_raise(rb_eArgError, "wrong number of arguments (%d for 1..2)", argc);
re = argv[0];
argv[0] = str;
result = rb_funcall2(get_pat(re, 0), rb_intern("match"), argc, argv);
@@ -2745,9 +2743,10 @@ enum neighbor_char {
};
static enum neighbor_char
-enc_succ_char(char *p, int len, rb_encoding *enc)
+enc_succ_char(char *p, long len, rb_encoding *enc)
{
- int i, l;
+ long i;
+ int l;
while (1) {
for (i = len-1; 0 <= i && (unsigned char)p[i] == 0xff; i--)
p[i] = '\0';
@@ -2765,7 +2764,8 @@ enc_succ_char(char *p, int len, rb_encoding *enc)
}
}
if (MBCLEN_INVALID_P(l) && i < len-1) {
- int len2, l2;
+ long len2;
+ int l2;
for (len2 = len-1; 0 < len2; len2--) {
l2 = rb_enc_precise_mbclen(p, p+len2, enc);
if (!MBCLEN_INVALID_P(l2))
@@ -2777,9 +2777,10 @@ enc_succ_char(char *p, int len, rb_encoding *enc)
}
static enum neighbor_char
-enc_pred_char(char *p, int len, rb_encoding *enc)
+enc_pred_char(char *p, long len, rb_encoding *enc)
{
- int i, l;
+ long i;
+ int l;
while (1) {
for (i = len-1; 0 <= i && (unsigned char)p[i] == 0; i--)
p[i] = '\xff';
@@ -2797,7 +2798,8 @@ enc_pred_char(char *p, int len, rb_encoding *enc)
}
}
if (MBCLEN_INVALID_P(l) && i < len-1) {
- int len2, l2;
+ long len2;
+ int l2;
for (len2 = len-1; 0 < len2; len2--) {
l2 = rb_enc_precise_mbclen(p, p+len2, enc);
if (!MBCLEN_INVALID_P(l2))
@@ -2818,7 +2820,7 @@ enc_pred_char(char *p, int len, rb_encoding *enc)
character.
*/
static enum neighbor_char
-enc_succ_alnum_char(char *p, int len, rb_encoding *enc, char *carry)
+enc_succ_alnum_char(char *p, long len, rb_encoding *enc, char *carry)
{
enum neighbor_char ret;
unsigned int c;
@@ -2876,8 +2878,8 @@ enc_succ_alnum_char(char *p, int len, rb_encoding *enc, char *carry)
/*
* call-seq:
- * str.succ => new_str
- * str.next => new_str
+ * str.succ -> new_str
+ * str.next -> new_str
*
* Returns the successor to <i>str</i>. The successor is calculated by
* incrementing characters starting from the rightmost alphanumeric (or
@@ -2908,7 +2910,7 @@ rb_str_succ(VALUE orig)
int c = -1;
long l;
char carry[ONIGENC_CODE_TO_MBC_MAXLEN] = "\1";
- int carry_pos = 0, carry_len = 1;
+ long carry_pos = 0, carry_len = 1;
enum neighbor_char neighbor = NEIGHBOR_FOUND;
str = rb_str_new5(orig, RSTRING_PTR(orig), RSTRING_LEN(orig));
@@ -2975,8 +2977,8 @@ rb_str_succ(VALUE orig)
/*
* call-seq:
- * str.succ! => str
- * str.next! => str
+ * str.succ! -> str
+ * str.next! -> str
*
* Equivalent to <code>String#succ</code>, but modifies the receiver in
* place.
@@ -2993,14 +2995,17 @@ rb_str_succ_bang(VALUE str)
/*
* call-seq:
- * str.upto(other_str, exclusive=false) {|s| block } => str
+ * str.upto(other_str, exclusive=false) {|s| block } -> str
+ * str.upto(other_str, exclusive=false) -> an_enumerator
*
* Iterates through successive values, starting at <i>str</i> and
* ending at <i>other_str</i> inclusive, passing each value in turn to
* the block. The <code>String#succ</code> method is used to generate
- * each value. If optional second argument exclusive is omitted or is <code>false</code>,
+ * each value. If optional second argument exclusive is omitted or is false,
* the last value will be included; otherwise it will be excluded.
*
+ * If no block is given, an enumerator is returned instead.
+ *
* "a8".upto("b6") {|s| print s, ' ' }
* for s in "a8".."b6"
* print s, ' '
@@ -3010,6 +3015,14 @@ rb_str_succ_bang(VALUE str)
*
* a8 a9 b0 b1 b2 b3 b4 b5 b6
* a8 a9 b0 b1 b2 b3 b4 b5 b6
+ *
+ * If <i>str</i> and <i>other_str</i> contains only ascii numeric characters,
+ * both are recognized as decimal numbers. In addition, the width of
+ * string (e.g. leading zeros) is handled appropriately.
+ *
+ * "9".upto("11").to_a #=> ["9", "10", "11"]
+ * "25".upto("5").to_a #=> []
+ * "07".upto("11").to_a #=> ["07", "08", "09", "10", "11"]
*/
static VALUE
@@ -3018,7 +3031,7 @@ rb_str_upto(int argc, VALUE *argv, VALUE beg)
VALUE end, exclusive;
VALUE current, after_end;
ID succ;
- int n, excl;
+ int n, excl, ascii;
rb_encoding *enc;
rb_scan_args(argc, argv, "11", &end, &exclusive);
@@ -3027,8 +3040,9 @@ rb_str_upto(int argc, VALUE *argv, VALUE beg)
CONST_ID(succ, "succ");
StringValue(end);
enc = rb_enc_check(beg, end);
- if (RSTRING_LEN(beg) == 1 && RSTRING_LEN(end) == 1 &&
- is_ascii_string(beg) && is_ascii_string(end)) {
+ ascii = (is_ascii_string(beg) && is_ascii_string(end));
+ /* single character */
+ if (RSTRING_LEN(beg) == 1 && RSTRING_LEN(end) == 1 && ascii) {
char c = RSTRING_PTR(beg)[0];
char e = RSTRING_PTR(end)[0];
@@ -3041,15 +3055,63 @@ rb_str_upto(int argc, VALUE *argv, VALUE beg)
}
return beg;
}
+ /* both edges are all digits */
+ if (ascii && ISDIGIT(RSTRING_PTR(beg)[0]) && ISDIGIT(RSTRING_PTR(end)[0])) {
+ char *s, *send;
+ VALUE b, e;
+ int width;
+
+ s = RSTRING_PTR(beg); send = RSTRING_END(beg);
+ width = rb_long2int(send - s);
+ while (s < send) {
+ if (!ISDIGIT(*s)) goto no_digits;
+ s++;
+ }
+ s = RSTRING_PTR(end); send = RSTRING_END(end);
+ while (s < send) {
+ if (!ISDIGIT(*s)) goto no_digits;
+ s++;
+ }
+ b = rb_str_to_inum(beg, 10, FALSE);
+ e = rb_str_to_inum(end, 10, FALSE);
+ if (FIXNUM_P(b) && FIXNUM_P(e)) {
+ long bi = FIX2LONG(b);
+ long ei = FIX2LONG(e);
+ rb_encoding *usascii = rb_usascii_encoding();
+
+ while (bi <= ei) {
+ if (excl && bi == ei) break;
+ rb_yield(rb_enc_sprintf(usascii, "%.*ld", width, bi));
+ bi++;
+ }
+ }
+ else {
+ ID op = excl ? '<' : rb_intern("<=");
+ VALUE args[2], fmt = rb_obj_freeze(rb_usascii_str_new_cstr("%.*d"));
+
+ args[0] = INT2FIX(width);
+ while (rb_funcall(b, op, 1, e)) {
+ args[1] = b;
+ rb_yield(rb_str_format(numberof(args), args, fmt));
+ b = rb_funcall(b, succ, 0, 0);
+ }
+ }
+ return beg;
+ }
+ /* normal case */
+ no_digits:
n = rb_str_cmp(beg, end);
if (n > 0 || (excl && n == 0)) return beg;
after_end = rb_funcall(end, succ, 0, 0);
- current = beg;
+ current = rb_str_dup(beg);
while (!rb_str_equal(current, after_end)) {
+ VALUE next = Qnil;
+ if (excl || !rb_str_equal(current, end))
+ next = rb_funcall(current, succ, 0, 0);
rb_yield(current);
- if (!excl && rb_str_equal(current, end)) break;
- current = rb_funcall(current, succ, 0, 0);
+ if (NIL_P(next)) break;
+ current = next;
StringValue(current);
if (excl && rb_str_equal(current, end)) break;
if (RSTRING_LEN(current) > RSTRING_LEN(end) || RSTRING_LEN(current) == 0)
@@ -3118,28 +3180,28 @@ rb_str_aref(VALUE str, VALUE indx)
/*
* call-seq:
- * str[fixnum] => new_str or nil
- * str[fixnum, fixnum] => new_str or nil
- * str[range] => new_str or nil
- * str[regexp] => new_str or nil
- * str[regexp, fixnum] => new_str or nil
- * str[other_str] => new_str or nil
- * str.slice(fixnum) => new_str or nil
- * str.slice(fixnum, fixnum) => new_str or nil
- * str.slice(range) => new_str or nil
- * str.slice(regexp) => new_str or nil
- * str.slice(regexp, fixnum) => new_str or nil
- * str.slice(regexp, capname) => new_str or nil
- * str.slice(other_str) => new_str or nil
+ * str[fixnum] -> new_str or nil
+ * str[fixnum, fixnum] -> new_str or nil
+ * str[range] -> new_str or nil
+ * str[regexp] -> new_str or nil
+ * str[regexp, fixnum] -> new_str or nil
+ * str[other_str] -> new_str or nil
+ * str.slice(fixnum) -> new_str or nil
+ * str.slice(fixnum, fixnum) -> new_str or nil
+ * str.slice(range) -> new_str or nil
+ * str.slice(regexp) -> new_str or nil
+ * str.slice(regexp, fixnum) -> new_str or nil
+ * str.slice(regexp, capname) -> new_str or nil
+ * str.slice(other_str) -> new_str or nil
*
* Element Reference---If passed a single <code>Fixnum</code>, returns a
* substring of one character at that position. If passed two <code>Fixnum</code>
* objects, returns a substring starting at the offset given by the first, and
- * a length given by the second. If given a range, a substring containing
- * characters at offsets given by the range is returned. In all three cases, if
- * an offset is negative, it is counted from the end of <i>str</i>. Returns
- * <code>nil</code> if the initial offset falls outside the string, the length
- * is negative, or the beginning of the range is greater than the end.
+ * with a length given by the second. If passed a range, its beginning and end
+ * are interpreted as offsets delimiting the substring to be returned. In all
+ * three cases, if an offset is negative, it is counted from the end of <i>str</i>.
+ * Returns <code>nil</code> if the initial offset falls outside the string or
+ * the length is negative.
*
* If a <code>Regexp</code> is supplied, the matching portion of <i>str</i> is
* returned. If a numeric or name parameter follows the regular expression, that
@@ -3150,12 +3212,13 @@ rb_str_aref(VALUE str, VALUE indx)
*
* a = "hello there"
* a[1] #=> "e"
- * a[1,3] #=> "ell"
- * a[1..3] #=> "ell"
- * a[-3,2] #=> "er"
+ * a[2, 3] #=> "llo"
+ * a[2..3] #=> "ll"
+ * a[-3, 2] #=> "er"
+ * a[7..-2] #=> "her"
* a[-4..-2] #=> "her"
- * a[12..-1] #=> nil
* a[-2..-4] #=> ""
+ * a[12..-1] #=> nil
* a[/[aeiou](.)\1/] #=> "ell"
* a[/[aeiou](.)\1/, 0] #=> "ell"
* a[/[aeiou](.)\1/, 1] #=> "l"
@@ -3174,7 +3237,7 @@ rb_str_aref_m(int argc, VALUE *argv, VALUE str)
return rb_str_substr(str, NUM2LONG(argv[0]), NUM2LONG(argv[1]));
}
if (argc != 1) {
- rb_raise(rb_eArgError, "wrong number of arguments (%d for 1)", argc);
+ rb_raise(rb_eArgError, "wrong number of arguments (%d for 1..2)", argc);
}
return rb_str_aref(str, argv[0]);
}
@@ -3190,7 +3253,7 @@ rb_str_drop_bytes(VALUE str, long len)
nlen = olen - len;
if (nlen <= RSTRING_EMBED_LEN_MAX) {
char *oldptr = ptr;
- int fl = (RBASIC(str)->flags & (STR_NOEMBED|ELTS_SHARED));
+ int fl = (int)(RBASIC(str)->flags & (STR_NOEMBED|ELTS_SHARED));
STR_SET_EMBED(str);
STR_SET_EMBED_LEN(str, nlen);
ptr = RSTRING(str)->as.ary;
@@ -3404,14 +3467,14 @@ rb_str_aset_m(int argc, VALUE *argv, VALUE str)
return argv[2];
}
if (argc != 2) {
- rb_raise(rb_eArgError, "wrong number of arguments (%d for 2)", argc);
+ rb_raise(rb_eArgError, "wrong number of arguments (%d for 2..3)", argc);
}
return rb_str_aset(str, argv[0], argv[1]);
}
/*
* call-seq:
- * str.insert(index, other_str) => str
+ * str.insert(index, other_str) -> str
*
* Inserts <i>other_str</i> before the character at the given
* <i>index</i>, modifying <i>str</i>. Negative indices count from the
@@ -3444,11 +3507,11 @@ rb_str_insert(VALUE str, VALUE idx, VALUE str2)
/*
* call-seq:
- * str.slice!(fixnum) => fixnum or nil
- * str.slice!(fixnum, fixnum) => new_str or nil
- * str.slice!(range) => new_str or nil
- * str.slice!(regexp) => new_str or nil
- * str.slice!(other_str) => new_str or nil
+ * str.slice!(fixnum) -> fixnum or nil
+ * str.slice!(fixnum, fixnum) -> new_str or nil
+ * str.slice!(range) -> new_str or nil
+ * str.slice!(regexp) -> new_str or nil
+ * str.slice!(other_str) -> new_str or nil
*
* Deletes the specified portion from <i>str</i>, and returns the portion
* deleted.
@@ -3469,15 +3532,15 @@ rb_str_slice_bang(int argc, VALUE *argv, VALUE str)
int i;
if (argc < 1 || 2 < argc) {
- rb_raise(rb_eArgError, "wrong number of arguments (%d for 1)", argc);
+ rb_raise(rb_eArgError, "wrong number of arguments (%d for 1..2)", argc);
}
for (i=0; i<argc; i++) {
buf[i] = argv[i];
}
str_modify_keep_cr(str);
- buf[i] = rb_str_new(0,0);
result = rb_str_aref_m(argc, buf, str);
if (!NIL_P(result)) {
+ buf[i] = rb_str_new(0,0);
rb_str_aset_m(argc+1, buf, str);
}
return result;
@@ -3513,8 +3576,8 @@ get_pat(VALUE pat, int quote)
/*
* call-seq:
- * str.sub!(pattern, replacement) => str or nil
- * str.sub!(pattern) {|match| block } => str or nil
+ * str.sub!(pattern, replacement) -> str or nil
+ * str.sub!(pattern) {|match| block } -> str or nil
*
* Performs the substitutions of <code>String#sub</code> in place,
* returning <i>str</i>, or <code>nil</code> if no substitutions were
@@ -3543,10 +3606,11 @@ rb_str_sub_bang(int argc, VALUE *argv, VALUE str)
if (OBJ_UNTRUSTED(repl)) untrusted = 1;
}
else {
- rb_raise(rb_eArgError, "wrong number of arguments (%d for 2)", argc);
+ rb_raise(rb_eArgError, "wrong number of arguments (%d for 1..2)", argc);
}
pat = get_pat(argv[0], 1);
+ str_modifiable(str);
if (rb_reg_search(pat, str, 0, 0) >= 0) {
rb_encoding *enc;
int cr = ENC_CODERANGE(str);
@@ -3554,9 +3618,11 @@ rb_str_sub_bang(int argc, VALUE *argv, VALUE str)
struct re_registers *regs = RMATCH_REGS(match);
long beg0 = BEG(0);
long end0 = END(0);
+ char *p, *rp;
+ long len, rlen;
if (iter || !NIL_P(hash)) {
- char *p = RSTRING_PTR(str); long len = RSTRING_LEN(str);
+ p = RSTRING_PTR(str); len = RSTRING_LEN(str);
if (iter) {
repl = rb_obj_as_string(rb_yield(rb_reg_nth_match(0, match)));
@@ -3566,7 +3632,7 @@ rb_str_sub_bang(int argc, VALUE *argv, VALUE str)
repl = rb_obj_as_string(repl);
}
str_mod_check(str, p, len);
- str_frozen_check(str);
+ rb_check_frozen(str);
}
else {
repl = rb_reg_regsub(repl, str, regs, pat);
@@ -3574,9 +3640,9 @@ rb_str_sub_bang(int argc, VALUE *argv, VALUE str)
enc = rb_enc_compatible(str, repl);
if (!enc) {
rb_encoding *str_enc = STR_ENC_GET(str);
- if (coderange_scan(RSTRING_PTR(str), beg0, str_enc) != ENC_CODERANGE_7BIT ||
- coderange_scan(RSTRING_PTR(str)+end0,
- RSTRING_LEN(str)-end0, str_enc) != ENC_CODERANGE_7BIT) {
+ p = RSTRING_PTR(str); len = RSTRING_LEN(str);
+ if (coderange_scan(p, beg0, str_enc) != ENC_CODERANGE_7BIT ||
+ coderange_scan(p+end0, len-end0, str_enc) != ENC_CODERANGE_7BIT) {
rb_raise(rb_eEncCompatError, "incompatible character encodings: %s and %s",
rb_enc_name(str_enc),
rb_enc_name(STR_ENC_GET(repl)));
@@ -3596,18 +3662,19 @@ rb_str_sub_bang(int argc, VALUE *argv, VALUE str)
cr = cr2;
}
plen = end0 - beg0;
- if (RSTRING_LEN(repl) > plen) {
- RESIZE_CAPA(str, RSTRING_LEN(str) + RSTRING_LEN(repl) - plen);
+ rp = RSTRING_PTR(repl); rlen = RSTRING_LEN(repl);
+ len = RSTRING_LEN(str);
+ if (rlen > plen) {
+ RESIZE_CAPA(str, len + rlen - plen);
}
- if (RSTRING_LEN(repl) != plen) {
- memmove(RSTRING_PTR(str) + beg0 + RSTRING_LEN(repl),
- RSTRING_PTR(str) + beg0 + plen,
- RSTRING_LEN(str) - beg0 - plen);
+ p = RSTRING_PTR(str);
+ if (rlen != plen) {
+ memmove(p + beg0 + rlen, p + beg0 + plen, len - beg0 - plen);
}
- memcpy(RSTRING_PTR(str) + beg0,
- RSTRING_PTR(repl), RSTRING_LEN(repl));
- STR_SET_LEN(str, RSTRING_LEN(str) + RSTRING_LEN(repl) - plen);
- RSTRING_PTR(str)[RSTRING_LEN(str)] = '\0';
+ memcpy(p + beg0, rp, rlen);
+ len += rlen - plen;
+ STR_SET_LEN(str, len);
+ RSTRING_PTR(str)[len] = '\0';
ENC_CODERANGE_SET(str, cr);
if (tainted) OBJ_TAINT(str);
if (untrusted) OBJ_UNTRUST(str);
@@ -3620,23 +3687,30 @@ rb_str_sub_bang(int argc, VALUE *argv, VALUE str)
/*
* call-seq:
- * str.sub(pattern, replacement) => new_str
- * str.sub(pattern) {|match| block } => new_str
+ * str.sub(pattern, replacement) -> new_str
+ * str.sub(pattern, hash) -> new_str
+ * str.sub(pattern) {|match| block } -> new_str
*
* Returns a copy of <i>str</i> with the <em>first</em> occurrence of
- * <i>pattern</i> replaced with either <i>replacement</i> or the value of the
- * block. The <i>pattern</i> will typically be a <code>Regexp</code>; if it is
- * a <code>String</code> then no regular expression metacharacters will be
- * interpreted (that is <code>/\d/</code> will match a digit, but
- * <code>'\d'</code> will match a backslash followed by a 'd').
- *
- * If the method call specifies <i>replacement</i>, special variables such as
- * <code>$&</code> will not be useful, as substitution into the string occurs
- * before the pattern match starts. However, the sequences <code>\1</code>,
- * <code>\2</code>, <code>\k<group_name></code>, etc., may be used.
- *
- * In the block form, the current match string is passed in as a parameter, and
- * variables such as <code>$1</code>, <code>$2</code>, <code>$`</code>,
+ * <i>pattern</i> substituted for the second argument. The <i>pattern</i> is
+ * typically a <code>Regexp</code>; if given as a <code>String</code>, any
+ * regular expression metacharacters it contains will be interpreted
+ * literally, e.g. <code>'\\\d'</code> will match a backlash followed by 'd',
+ * instead of a digit.
+ *
+ * If <i>replacement</i> is a <code>String</code> it will be substituted for
+ * the matched text. It may contain back-references to the pattern's capture
+ * groups of the form <code>\\\d</code>, where <i>d</i> is a group number, or
+ * <code>\\\k<n></code>, where <i>n</i> is a group name. If it is a
+ * double-quoted string, both back-references must be preceded by an
+ * additional backslash. However, within <i>replacement</i> the special match
+ * variables, such as <code>&$</code>, will not refer to the current match.
+ *
+ * If the second argument is a <code>Hash</code>, and the matched text is one
+ * of its keys, the corresponding value is the replacement string.
+ *
+ * In the block form, the current match string is passed in as a parameter,
+ * and variables such as <code>$1</code>, <code>$2</code>, <code>$`</code>,
* <code>$&</code>, and <code>$'</code> will be set appropriately. The value
* returned by the block will be substituted for the match on each call.
*
@@ -3645,8 +3719,10 @@ rb_str_sub_bang(int argc, VALUE *argv, VALUE str)
*
* "hello".sub(/[aeiou]/, '*') #=> "h*llo"
* "hello".sub(/([aeiou])/, '<\1>') #=> "h<e>llo"
- * "hello".sub(/./) {|s| s[0].ord.to_s + ' ' } #=> "104 ello"
+ * "hello".sub(/./) {|s| s.ord.to_s + ' ' } #=> "104 ello"
* "hello".sub(/(?<foo>[aeiou])/, '*\k<foo>*') #=> "h*e*llo"
+ * 'Is SHELL your preferred shell?'.sub(/[[:upper:]]{2,}/, ENV)
+ * #=> "Is /bin/bash your preferred shell?"
*/
static VALUE
@@ -3684,7 +3760,7 @@ str_gsub(int argc, VALUE *argv, VALUE str, int bang)
if (OBJ_TAINTED(repl)) tainted = 1;
break;
default:
- rb_raise(rb_eArgError, "wrong number of arguments (%d for 2)", argc);
+ rb_raise(rb_eArgError, "wrong number of arguments (%d for 1..2)", argc);
}
pat = get_pat(argv[0], 1);
@@ -3702,6 +3778,8 @@ str_gsub(int argc, VALUE *argv, VALUE str, int bang)
slen = RSTRING_LEN(str);
cp = sp;
str_enc = STR_ENC_GET(str);
+ rb_enc_associate(dest, str_enc);
+ ENC_CODERANGE_SET(dest, rb_enc_asciicompat(str_enc) ? ENC_CODERANGE_7BIT : ENC_CODERANGE_VALID);
do {
n++;
@@ -3718,7 +3796,6 @@ str_gsub(int argc, VALUE *argv, VALUE str, int bang)
val = rb_obj_as_string(val);
}
str_mod_check(str, sp, slen);
- if (bang) str_frozen_check(str);
if (val == dest) { /* paranoid check [ruby-dev:24827] */
rb_raise(rb_eRuntimeError, "block should not cheat");
}
@@ -3772,51 +3849,64 @@ str_gsub(int argc, VALUE *argv, VALUE str, int bang)
/*
* call-seq:
- * str.gsub!(pattern, replacement) => str or nil
- * str.gsub!(pattern) {|match| block } => str or nil
+ * str.gsub!(pattern, replacement) -> str or nil
+ * str.gsub!(pattern) {|match| block } -> str or nil
+ * str.gsub!(pattern) -> an_enumerator
*
* Performs the substitutions of <code>String#gsub</code> in place, returning
* <i>str</i>, or <code>nil</code> if no substitutions were performed.
+ * If no block and no <i>replacement</i> is given, an enumerator is returned instead.
*/
static VALUE
rb_str_gsub_bang(int argc, VALUE *argv, VALUE str)
{
+ str_modify_keep_cr(str);
return str_gsub(argc, argv, str, 1);
}
/*
* call-seq:
- * str.gsub(pattern, replacement) => new_str
- * str.gsub(pattern) {|match| block } => new_str
- *
- * Returns a copy of <i>str</i> with <em>all</em> occurrences of <i>pattern</i>
- * replaced with either <i>replacement</i> or the value of the block. The
- * <i>pattern</i> will typically be a <code>Regexp</code>; if it is a
- * <code>String</code> then no regular expression metacharacters will be
- * interpreted (that is <code>/\d/</code> will match a digit, but
- * <code>'\d'</code> will match a backslash followed by a 'd').
- *
- * If a string is used as the replacement, special variables from the match
- * (such as <code>$&</code> and <code>$1</code>) cannot be substituted into it,
- * as substitution into the string occurs before the pattern match
- * starts. However, the sequences <code>\1</code>, <code>\2</code>,
- * <code>\k<group_name></code>, and so on may be used to interpolate
- * successive groups in the match.
- *
- * In the block form, the current match string is passed in as a parameter, and
- * variables such as <code>$1</code>, <code>$2</code>, <code>$`</code>,
+ * str.gsub(pattern, replacement) -> new_str
+ * str.gsub(pattern, hash) -> new_str
+ * str.gsub(pattern) {|match| block } -> new_str
+ * str.gsub(pattern) -> enumerator
+ *
+ * Returns a copy of <i>str</i> with the <em>all</em> occurrences of
+ * <i>pattern</i> substituted for the second argument. The <i>pattern</i> is
+ * typically a <code>Regexp</code>; if given as a <code>String</code>, any
+ * regular expression metacharacters it contains will be interpreted
+ * literally, e.g. <code>'\\\d'</code> will match a backlash followed by 'd',
+ * instead of a digit.
+ *
+ * If <i>replacement</i> is a <code>String</code> it will be substituted for
+ * the matched text. It may contain back-references to the pattern's capture
+ * groups of the form <code>\\\d</code>, where <i>d</i> is a group number, or
+ * <code>\\\k<n></code>, where <i>n</i> is a group name. If it is a
+ * double-quoted string, both back-references must be preceded by an
+ * additional backslash. However, within <i>replacement</i> the special match
+ * variables, such as <code>&$</code>, will not refer to the current match.
+ *
+ * If the second argument is a <code>Hash</code>, and the matched text is one
+ * of its keys, the corresponding value is the replacement string.
+ *
+ * In the block form, the current match string is passed in as a parameter,
+ * and variables such as <code>$1</code>, <code>$2</code>, <code>$`</code>,
* <code>$&</code>, and <code>$'</code> will be set appropriately. The value
* returned by the block will be substituted for the match on each call.
*
* The result inherits any tainting in the original string or any supplied
* replacement string.
*
+ * When neither a block nor a second argument is supplied, an
+ * <code>Enumerator</code> is returned.
+ *
* "hello".gsub(/[aeiou]/, '*') #=> "h*ll*"
* "hello".gsub(/([aeiou])/, '<\1>') #=> "h<e>ll<o>"
- * "hello".gsub(/./) {|s| s[0].ord.to_s + ' '} #=> "104 101 108 108 111 "
+ * "hello".gsub(/./) {|s| s.ord.to_s + ' '} #=> "104 101 108 108 111 "
* "hello".gsub(/(?<foo>[aeiou])/, '{\k<foo>}') #=> "h{e}ll{o}"
+ * 'hello'.gsub(/[eo]/, 'e' => 3, 'o' => '*') #=> "h3ll*"
*/
static VALUE
@@ -3828,7 +3918,7 @@ rb_str_gsub(int argc, VALUE *argv, VALUE str)
/*
* call-seq:
- * str.replace(other_str) => str
+ * str.replace(other_str) -> str
*
* Replaces the contents and taintedness of <i>str</i> with the corresponding
* values in <i>other_str</i>.
@@ -3840,30 +3930,12 @@ rb_str_gsub(int argc, VALUE *argv, VALUE str)
VALUE
rb_str_replace(VALUE str, VALUE str2)
{
- long len;
+ str_modifiable(str);
if (str == str2) return str;
StringValue(str2);
- len = RSTRING_LEN(str2);
- if (STR_ASSOC_P(str2)) {
- str2 = rb_str_new4(str2);
- }
str_discard(str);
- if (STR_SHARED_P(str2)) {
- STR_SET_NOEMBED(str);
- RSTRING(str)->as.heap.len = len;
- RSTRING(str)->as.heap.ptr = RSTRING_PTR(str2);
- FL_SET(str, ELTS_SHARED);
- FL_UNSET(str, STR_ASSOC);
- RSTRING(str)->as.heap.aux.shared = RSTRING(str2)->as.heap.aux.shared;
- }
- else {
- str_replace_shared(str, rb_str_new4(str2));
- }
-
- OBJ_INFECT(str, str2);
- rb_enc_cr_str_exact_copy(str, str2);
- return str;
+ return str_replace(str, str2);
}
/*
@@ -3908,7 +3980,7 @@ rb_str_chr(VALUE str)
/*
* call-seq:
- * str.getbyte(index) => 0 .. 255
+ * str.getbyte(index) -> 0 .. 255
*
* returns the <i>index</i>th byte as an integer.
*/
@@ -3927,7 +3999,7 @@ rb_str_getbyte(VALUE str, VALUE index)
/*
* call-seq:
- * str.setbyte(index, int) => int
+ * str.setbyte(index, int) -> int
*
* modifies the <i>index</i>th byte as <i>int</i>.
*/
@@ -3949,9 +4021,113 @@ rb_str_setbyte(VALUE str, VALUE index, VALUE value)
return value;
}
+static VALUE
+str_byte_substr(VALUE str, long beg, long len)
+{
+ char *p, *s = RSTRING_PTR(str);
+ long n = RSTRING_LEN(str);
+ VALUE str2;
+
+ if (beg > n || len < 0) return Qnil;
+ if (beg < 0) {
+ beg += n;
+ if (beg < 0) return Qnil;
+ }
+ if (beg + len > n)
+ len = n - beg;
+ if (len <= 0) {
+ len = 0;
+ p = 0;
+ }
+ else
+ p = s + beg;
+
+ if (len > RSTRING_EMBED_LEN_MAX && beg + len == n) {
+ str2 = rb_str_new4(str);
+ str2 = str_new3(rb_obj_class(str2), str2);
+ RSTRING(str2)->as.heap.ptr += RSTRING(str2)->as.heap.len - len;
+ RSTRING(str2)->as.heap.len = len;
+ }
+ else {
+ str2 = rb_str_new5(str, p, len);
+ rb_enc_cr_str_copy_for_substr(str2, str);
+ OBJ_INFECT(str2, str);
+ }
+
+ return str2;
+}
+
+static VALUE
+str_byte_aref(VALUE str, VALUE indx)
+{
+ long idx;
+ switch (TYPE(indx)) {
+ case T_FIXNUM:
+ idx = FIX2LONG(indx);
+
+ num_index:
+ str = str_byte_substr(str, idx, 1);
+ if (NIL_P(str) || RSTRING_LEN(str) == 0) return Qnil;
+ return str;
+
+ default:
+ /* check if indx is Range */
+ {
+ long beg, len = RSTRING_LEN(str);
+
+ switch (rb_range_beg_len(indx, &beg, &len, len, 0)) {
+ case Qfalse:
+ break;
+ case Qnil:
+ return Qnil;
+ default:
+ return str_byte_substr(str, beg, len);
+ }
+ }
+ idx = NUM2LONG(indx);
+ goto num_index;
+ }
+ return Qnil; /* not reached */
+}
+
+/*
+ * call-seq:
+ * str.byteslice(fixnum) -> new_str or nil
+ * str.byteslice(fixnum, fixnum) -> new_str or nil
+ * str.byteslice(range) -> new_str or nil
+ *
+ * Byte Reference---If passed a single <code>Fixnum</code>, returns a
+ * substring of one byte at that position. If passed two <code>Fixnum</code>
+ * objects, returns a substring starting at the offset given by the first, and
+ * a length given by the second. If given a <code>Range</code>, a substring containing
+ * bytes at offsets given by the range is returned. In all three cases, if
+ * an offset is negative, it is counted from the end of <i>str</i>. Returns
+ * <code>nil</code> if the initial offset falls outside the string, the length
+ * is negative, or the beginning of the range is greater than the end.
+ * The encoding of the resulted string keeps original encoding.
+ *
+ * "hello".byteslice(1) #=> "e"
+ * "hello".byteslice(-1) #=> "o"
+ * "hello".byteslice(1, 2) #=> "el"
+ * "\x80\u3042".byteslice(1, 3) #=> "\u3042"
+ * "\x03\u3042\xff".byteslice(1..3) #=> "\u3942"
+ */
+
+static VALUE
+rb_str_byteslice(int argc, VALUE *argv, VALUE str)
+{
+ if (argc == 2) {
+ return str_byte_substr(str, NUM2LONG(argv[0]), NUM2LONG(argv[1]));
+ }
+ if (argc != 1) {
+ rb_raise(rb_eArgError, "wrong number of arguments (%d for 1..2)", argc);
+ }
+ return str_byte_aref(str, argv[0]);
+}
+
/*
* call-seq:
- * str.reverse => new_str
+ * str.reverse -> new_str
*
* Returns a new string with the characters from <i>str</i> in reverse order.
*
@@ -4017,7 +4193,7 @@ rb_str_reverse(VALUE str)
/*
* call-seq:
- * str.reverse! => str
+ * str.reverse! -> str
*
* Reverses <i>str</i> in place.
*/
@@ -4035,20 +4211,23 @@ rb_str_reverse_bang(VALUE str)
while (s < e) {
c = *s;
*s++ = *e;
- *e-- = c;
+ *e-- = c;
}
}
else {
rb_str_shared_replace(str, rb_str_reverse(str));
}
}
+ else {
+ str_modify_keep_cr(str);
+ }
return str;
}
/*
* call-seq:
- * str.include? other_str => true or false
+ * str.include? other_str -> true or false
*
* Returns <code>true</code> if <i>str</i> contains the given string or
* character.
@@ -4073,13 +4252,13 @@ rb_str_include(VALUE str, VALUE arg)
/*
* call-seq:
- * str.to_i(base=10) => integer
+ * str.to_i(base=10) -> integer
*
* Returns the result of interpreting leading characters in <i>str</i> as an
* integer base <i>base</i> (between 2 and 36). Extraneous characters past the
* end of a valid number are ignored. If there is not a valid number at the
* start of <i>str</i>, <code>0</code> is returned. This method never raises an
- * exception.
+ * exception when <i>base</i> is valid.
*
* "12345".to_i #=> 12345
* "99 red balloons".to_i #=> 99
@@ -4107,13 +4286,13 @@ rb_str_to_i(int argc, VALUE *argv, VALUE str)
if (base < 0) {
rb_raise(rb_eArgError, "invalid radix %d", base);
}
- return rb_str_to_inum(str, base, Qfalse);
+ return rb_str_to_inum(str, base, FALSE);
}
/*
* call-seq:
- * str.to_f => float
+ * str.to_f -> float
*
* Returns the result of interpreting leading characters in <i>str</i> as a
* floating point number. Extraneous characters past the end of a valid number
@@ -4128,14 +4307,14 @@ rb_str_to_i(int argc, VALUE *argv, VALUE str)
static VALUE
rb_str_to_f(VALUE str)
{
- return DBL2NUM(rb_str_to_dbl(str, Qfalse));
+ return DBL2NUM(rb_str_to_dbl(str, FALSE));
}
/*
* call-seq:
- * str.to_s => str
- * str.to_str => str
+ * str.to_s -> str
+ * str.to_str -> str
*
* Returns the receiver.
*/
@@ -4149,6 +4328,7 @@ rb_str_to_s(VALUE str)
return str;
}
+#if 0
static void
str_cat_char(VALUE str, unsigned int c, rb_encoding *enc)
{
@@ -4158,17 +4338,46 @@ str_cat_char(VALUE str, unsigned int c, rb_encoding *enc)
rb_enc_mbcput(c, s, enc);
rb_enc_str_buf_cat(str, s, n, enc);
}
+#endif
-static void
-prefix_escape(VALUE str, unsigned int c, rb_encoding *enc)
+#define CHAR_ESC_LEN 13 /* sizeof(\x{ hex of 32bit unsigned int } \0) */
+
+int
+rb_str_buf_cat_escaped_char(VALUE result, unsigned int c, int unicode_p)
{
- str_cat_char(str, '\\', enc);
- str_cat_char(str, c, enc);
+ char buf[CHAR_ESC_LEN + 1];
+ int l;
+
+#if SIZEOF_INT > 4
+ c &= 0xffffffff;
+#endif
+ if (unicode_p) {
+ if (c < 0x7F && ISPRINT(c)) {
+ snprintf(buf, CHAR_ESC_LEN, "%c", c);
+ }
+ else if (c < 0x10000) {
+ snprintf(buf, CHAR_ESC_LEN, "\\u%04X", c);
+ }
+ else {
+ snprintf(buf, CHAR_ESC_LEN, "\\u{%X}", c);
+ }
+ }
+ else {
+ if (c < 0x100) {
+ snprintf(buf, CHAR_ESC_LEN, "\\x%02X", c);
+ }
+ else {
+ snprintf(buf, CHAR_ESC_LEN, "\\x{%X}", c);
+ }
+ }
+ l = (int)strlen(buf); /* CHAR_ESC_LEN cannot exceed INT_MAX */
+ rb_str_buf_cat(result, buf, l);
+ return l;
}
/*
* call-seq:
- * str.inspect => string
+ * str.inspect -> string
*
* Returns a printable version of _str_, surrounded by quote marks,
* with special characters escaped.
@@ -4182,78 +4391,107 @@ VALUE
rb_str_inspect(VALUE str)
{
rb_encoding *enc = STR_ENC_GET(str);
- char *p, *pend;
+ const char *p, *pend, *prev;
+ char buf[CHAR_ESC_LEN + 1];
VALUE result = rb_str_buf_new(0);
+ rb_encoding *resenc = rb_default_internal_encoding();
+ int unicode_p = rb_enc_unicode_p(enc);
+ int asciicompat = rb_enc_asciicompat(enc);
+ static rb_encoding *utf16, *utf32;
+
+ if (!utf16) utf16 = rb_enc_find("UTF-16");
+ if (!utf32) utf32 = rb_enc_find("UTF-32");
+ if (resenc == NULL) resenc = rb_default_external_encoding();
+ if (!rb_enc_asciicompat(resenc)) resenc = rb_usascii_encoding();
+ rb_enc_associate(result, resenc);
+ str_buf_cat2(result, "\"");
- if (!rb_enc_asciicompat(enc)) enc = rb_usascii_encoding();
- rb_enc_associate(result, enc);
- str_cat_char(result, '"', enc);
p = RSTRING_PTR(str); pend = RSTRING_END(str);
+ prev = p;
+ if (enc == utf16) {
+ const unsigned char *q = (const unsigned char *)p;
+ if (q[0] == 0xFE && q[1] == 0xFF)
+ enc = rb_enc_find("UTF-16BE");
+ else if (q[0] == 0xFF && q[1] == 0xFE)
+ enc = rb_enc_find("UTF-16LE");
+ else
+ unicode_p = 0;
+ }
+ else if (enc == utf32) {
+ const unsigned char *q = (const unsigned char *)p;
+ if (q[0] == 0 && q[1] == 0 && q[2] == 0xFE && q[3] == 0xFF)
+ enc = rb_enc_find("UTF-32BE");
+ else if (q[3] == 0 && q[2] == 0 && q[1] == 0xFE && q[0] == 0xFF)
+ enc = rb_enc_find("UTF-32LE");
+ else
+ unicode_p = 0;
+ }
while (p < pend) {
unsigned int c, cc;
int n;
n = rb_enc_precise_mbclen(p, pend, enc);
if (!MBCLEN_CHARFOUND_P(n)) {
- p++;
- n = 1;
- goto escape_codepoint;
- }
+ if (p > prev) str_buf_cat(result, prev, p - prev);
+ n = rb_enc_mbminlen(enc);
+ if (pend < p + n)
+ n = (int)(pend - p);
+ while (n--) {
+ snprintf(buf, CHAR_ESC_LEN, "\\x%02X", *p & 0377);
+ str_buf_cat(result, buf, strlen(buf));
+ prev = ++p;
+ }
+ continue;
+ }
n = MBCLEN_CHARFOUND_LEN(n);
-
- c = rb_enc_codepoint_len(p, pend, &n, enc);
+ c = rb_enc_mbc_to_codepoint(p, pend, enc);
p += n;
- if (c == '"'|| c == '\\' ||
+ if ((asciicompat || unicode_p) &&
+ (c == '"'|| c == '\\' ||
(c == '#' &&
p < pend &&
MBCLEN_CHARFOUND_P(rb_enc_precise_mbclen(p,pend,enc)) &&
(cc = rb_enc_codepoint(p,pend,enc),
- (cc == '$' || cc == '@' || cc == '{')))) {
- prefix_escape(result, c, enc);
- }
- else if (c == '\n') {
- prefix_escape(result, 'n', enc);
- }
- else if (c == '\r') {
- prefix_escape(result, 'r', enc);
- }
- else if (c == '\t') {
- prefix_escape(result, 't', enc);
- }
- else if (c == '\f') {
- prefix_escape(result, 'f', enc);
- }
- else if (c == '\013') {
- prefix_escape(result, 'v', enc);
- }
- else if (c == '\010') {
- prefix_escape(result, 'b', enc);
- }
- else if (c == '\007') {
- prefix_escape(result, 'a', enc);
+ (cc == '$' || cc == '@' || cc == '{'))))) {
+ if (p - n > prev) str_buf_cat(result, prev, p - n - prev);
+ str_buf_cat2(result, "\\");
+ if (asciicompat || enc == resenc) {
+ prev = p - n;
+ continue;
+ }
}
- else if (c == 033) {
- prefix_escape(result, 'e', enc);
+ switch (c) {
+ case '\n': cc = 'n'; break;
+ case '\r': cc = 'r'; break;
+ case '\t': cc = 't'; break;
+ case '\f': cc = 'f'; break;
+ case '\013': cc = 'v'; break;
+ case '\010': cc = 'b'; break;
+ case '\007': cc = 'a'; break;
+ case 033: cc = 'e'; break;
+ default: cc = 0; break;
+ }
+ if (cc) {
+ if (p - n > prev) str_buf_cat(result, prev, p - n - prev);
+ buf[0] = '\\';
+ buf[1] = (char)cc;
+ str_buf_cat(result, buf, 2);
+ prev = p;
+ continue;
}
- else if (rb_enc_isprint(c, enc)) {
- rb_enc_str_buf_cat(result, p-n, n, enc);
+ if ((enc == resenc && rb_enc_isprint(c, enc)) ||
+ (asciicompat && rb_enc_isascii(c, enc) && ISPRINT(c))) {
+ continue;
}
else {
- char buf[5];
- char *s;
- char *q;
-
- escape_codepoint:
- for (q = p-n; q < p; q++) {
- s = buf;
- sprintf(buf, "\\x%02X", *q & 0377);
- while (*s) {
- str_cat_char(result, *s++, enc);
- }
- }
+ if (p - n > prev) str_buf_cat(result, prev, p - n - prev);
+ rb_str_buf_cat_escaped_char(result, c, unicode_p);
+ prev = p;
+ continue;
}
}
- str_cat_char(result, '"', enc);
+ if (p > prev) str_buf_cat(result, prev, p - prev);
+ str_buf_cat2(result, "\"");
OBJ_INFECT(result, str);
return result;
@@ -4263,7 +4501,7 @@ rb_str_inspect(VALUE str)
/*
* call-seq:
- * str.dump => new_str
+ * str.dump -> new_str
*
* Produces a version of <i>str</i> with all nonprinting characters replaced by
* <code>\nnn</code> notation and all special characters escaped.
@@ -4301,12 +4539,11 @@ rb_str_dump(VALUE str)
}
else {
if (u8) { /* \u{NN} */
- char buf[32];
int n = rb_enc_precise_mbclen(p-1, pend, enc);
- if (MBCLEN_CHARFOUND_P(n)) {
- int cc = rb_enc_mbc_to_codepoint(p-1, pend, enc);
- sprintf(buf, "%x", cc);
- len += strlen(buf)+4;
+ if (MBCLEN_CHARFOUND_P(n-1)) {
+ unsigned int cc = rb_enc_mbc_to_codepoint(p-1, pend, enc);
+ while (cc >>= 4) len++;
+ len += 5;
p += MBCLEN_CHARFOUND_LEN(n)-1;
break;
}
@@ -4413,7 +4650,7 @@ rb_str_check_dummy_enc(rb_encoding *enc)
/*
* call-seq:
- * str.upcase! => str or nil
+ * str.upcase! -> str or nil
*
* Upcases the contents of <i>str</i>, returning <code>nil</code> if no changes
* were made.
@@ -4475,7 +4712,7 @@ rb_str_upcase_bang(VALUE str)
/*
* call-seq:
- * str.upcase => new_str
+ * str.upcase -> new_str
*
* Returns a copy of <i>str</i> with all lowercase letters replaced with their
* uppercase counterparts. The operation is locale insensitive---only
@@ -4496,7 +4733,7 @@ rb_str_upcase(VALUE str)
/*
* call-seq:
- * str.downcase! => str or nil
+ * str.downcase! -> str or nil
*
* Downcases the contents of <i>str</i>, returning <code>nil</code> if no
* changes were made.
@@ -4558,7 +4795,7 @@ rb_str_downcase_bang(VALUE str)
/*
* call-seq:
- * str.downcase => new_str
+ * str.downcase -> new_str
*
* Returns a copy of <i>str</i> with all uppercase letters replaced with their
* lowercase counterparts. The operation is locale insensitive---only
@@ -4579,7 +4816,7 @@ rb_str_downcase(VALUE str)
/*
* call-seq:
- * str.capitalize! => str or nil
+ * str.capitalize! -> str or nil
*
* Modifies <i>str</i> by converting the first character to uppercase and the
* remainder to lowercase. Returns <code>nil</code> if no changes are made.
@@ -4628,7 +4865,7 @@ rb_str_capitalize_bang(VALUE str)
/*
* call-seq:
- * str.capitalize => new_str
+ * str.capitalize -> new_str
*
* Returns a copy of <i>str</i> with the first character converted to uppercase
* and the remainder to lowercase.
@@ -4650,7 +4887,7 @@ rb_str_capitalize(VALUE str)
/*
* call-seq:
-* str.swapcase! => str or nil
+ * str.swapcase! -> str or nil
*
* Equivalent to <code>String#swapcase</code>, but modifies the receiver in
* place, returning <i>str</i>, or <code>nil</code> if no changes were made.
@@ -4692,7 +4929,7 @@ rb_str_swapcase_bang(VALUE str)
/*
* call-seq:
- * str.swapcase => new_str
+ * str.swapcase -> new_str
*
* Returns a copy of <i>str</i> with uppercase alphabetic characters converted
* to lowercase and lowercase characters converted to uppercase.
@@ -4736,7 +4973,17 @@ trnext(struct tr *t, rb_encoding *enc)
if (t->p < t->pend) {
unsigned int c = rb_enc_codepoint_len(t->p, t->pend, &n, enc);
t->p += n;
- if (t->now > c) continue;
+ if (t->now > c) {
+ if (t->now < 0x80 && c < 0x80) {
+ rb_raise(rb_eArgError,
+ "invalid range \"%c-%c\" in string transliteration",
+ t->now, c);
+ }
+ else {
+ rb_raise(rb_eArgError, "invalid range in string transliteration");
+ }
+ continue; /* not reached */
+ }
t->gen = 1;
t->max = c;
}
@@ -4763,8 +5010,8 @@ tr_trans(VALUE str, VALUE src, VALUE repl, int sflag)
rb_encoding *enc, *e1, *e2;
struct tr trsrc, trrepl;
int cflag = 0;
- unsigned int c, c0;
- int last = 0, modify = 0, i, l;
+ unsigned int c, c0, last = 0;
+ int modify = 0, i, l;
char *s, *send;
VALUE hash = 0;
int singlebyte = single_byte_optimizable(str);
@@ -4836,7 +5083,7 @@ tr_trans(VALUE str, VALUE src, VALUE repl, int sflag)
if (r == errc) r = trrepl.now;
if (c < 256) {
trans[c] = r;
- if (r > 255) singlebyte = 0;
+ if (rb_enc_codelen(r, enc) != 1) singlebyte = 0;
}
else {
if (!hash) hash = rb_hash_new();
@@ -4850,7 +5097,8 @@ tr_trans(VALUE str, VALUE src, VALUE repl, int sflag)
str_modify_keep_cr(str);
s = RSTRING_PTR(str); send = RSTRING_END(str);
if (sflag) {
- int offset, clen, tlen, max = RSTRING_LEN(str);
+ int clen, tlen;
+ long offset, max = RSTRING_LEN(str);
unsigned int save = -1;
char *buf = ALLOC_N(char, max), *t = buf;
@@ -4903,6 +5151,9 @@ tr_trans(VALUE str, VALUE src, VALUE repl, int sflag)
CHECK_IF_ASCII(c);
t += tlen;
}
+ if (!STR_EMBED_P(str)) {
+ xfree(RSTRING(str)->as.heap.ptr);
+ }
*t = '\0';
RSTRING(str)->as.heap.ptr = buf;
RSTRING(str)->as.heap.len = t - buf;
@@ -4929,7 +5180,7 @@ tr_trans(VALUE str, VALUE src, VALUE repl, int sflag)
}
else {
int clen, tlen, max = (int)(RSTRING_LEN(str) * 1.2);
- int offset;
+ long offset;
char *buf = ALLOC_N(char, max), *t = buf;
while (s < send) {
@@ -4950,7 +5201,7 @@ tr_trans(VALUE str, VALUE src, VALUE repl, int sflag)
else c = NUM2INT(tmp);
}
else {
- c = errc;
+ c = cflag ? last : errc;
}
if (c != errc) {
tlen = rb_enc_codelen(c, enc);
@@ -4998,7 +5249,7 @@ tr_trans(VALUE str, VALUE src, VALUE repl, int sflag)
/*
* call-seq:
- * str.tr!(from_str, to_str) => str or nil
+ * str.tr!(from_str, to_str) -> str or nil
*
* Translates <i>str</i> in place, using the same rules as
* <code>String#tr</code>. Returns <i>str</i>, or <code>nil</code> if no
@@ -5016,17 +5267,20 @@ rb_str_tr_bang(VALUE str, VALUE src, VALUE repl)
* call-seq:
* str.tr(from_str, to_str) => new_str
*
- * Returns a copy of <i>str</i> with the characters in <i>from_str</i> replaced
- * by the corresponding characters in <i>to_str</i>. If <i>to_str</i> is
- * shorter than <i>from_str</i>, it is padded with its last character. Both
- * strings may use the c1--c2 notation to denote ranges of characters, and
- * <i>from_str</i> may start with a <code>^</code>, which denotes all
- * characters except those listed.
+ * Returns a copy of <i>str</i> with the characters in <i>from_str</i>
+ * replaced by the corresponding characters in <i>to_str</i>. If
+ * <i>to_str</i> is shorter than <i>from_str</i>, it is padded with its last
+ * character in order to maintain the correspondence.
*
- * "hello".tr('aeiou', '*') #=> "h*ll*"
- * "hello".tr('^aeiou', '*') #=> "*e**o"
* "hello".tr('el', 'ip') #=> "hippo"
+ * "hello".tr('aeiou', '*') #=> "h*ll*"
+ *
+ * Both strings may use the c1-c2 notation to denote ranges of characters,
+ * and <i>from_str</i> may start with a <code>^</code>, which denotes all
+ * characters except those listed.
+ *
* "hello".tr('a-y', 'b-z') #=> "ifmmp"
+ * "hello".tr('^aeiou', '*') #=> "*e**o"
*/
static VALUE
@@ -5037,8 +5291,9 @@ rb_str_tr(VALUE str, VALUE src, VALUE repl)
return str;
}
+#define TR_TABLE_SIZE 257
static void
-tr_setup_table(VALUE str, char stable[256], int first,
+tr_setup_table(VALUE str, char stable[TR_TABLE_SIZE], int first,
VALUE *tablep, VALUE *ctablep, rb_encoding *enc)
{
const unsigned int errc = -1;
@@ -5059,6 +5314,10 @@ tr_setup_table(VALUE str, char stable[256], int first,
for (i=0; i<256; i++) {
stable[i] = 1;
}
+ stable[256] = cflag;
+ }
+ else if (stable[256] && !cflag) {
+ stable[256] = 0;
}
for (i=0; i<256; i++) {
buf[i] = cflag;
@@ -5094,26 +5353,30 @@ tr_setup_table(VALUE str, char stable[256], int first,
static int
-tr_find(unsigned int c, char table[256], VALUE del, VALUE nodel)
+tr_find(unsigned int c, char table[TR_TABLE_SIZE], VALUE del, VALUE nodel)
{
if (c < 256) {
- return table[c] ? Qtrue : Qfalse;
+ return table[c] != 0;
}
else {
VALUE v = UINT2NUM(c);
- if (del && !NIL_P(rb_hash_lookup(del, v))) {
- if (!nodel || NIL_P(rb_hash_lookup(nodel, v))) {
- return Qtrue;
+ if (del) {
+ if (!NIL_P(rb_hash_lookup(del, v)) &&
+ (!nodel || NIL_P(rb_hash_lookup(nodel, v)))) {
+ return TRUE;
}
}
- return Qfalse;
+ else if (nodel && !NIL_P(rb_hash_lookup(nodel, v))) {
+ return FALSE;
+ }
+ return table[256] ? TRUE : FALSE;
}
}
/*
* call-seq:
- * str.delete!([other_str]+) => str or nil
+ * str.delete!([other_str]+) -> str or nil
*
* Performs a <code>delete</code> operation in place, returning <i>str</i>, or
* <code>nil</code> if <i>str</i> was not modified.
@@ -5122,7 +5385,7 @@ tr_find(unsigned int c, char table[256], VALUE del, VALUE nodel)
static VALUE
rb_str_delete_bang(int argc, VALUE *argv, VALUE str)
{
- char squeez[256];
+ char squeez[TR_TABLE_SIZE];
rb_encoding *enc = 0;
char *s, *send, *t;
VALUE del = 0, nodel = 0;
@@ -5131,7 +5394,7 @@ rb_str_delete_bang(int argc, VALUE *argv, VALUE str)
if (RSTRING_LEN(str) == 0 || !RSTRING_PTR(str)) return Qnil;
if (argc < 1) {
- rb_raise(rb_eArgError, "wrong number of arguments");
+ rb_raise(rb_eArgError, "wrong number of arguments (at least 1)");
}
for (i=0; i<argc; i++) {
VALUE s = argv[i];
@@ -5185,7 +5448,7 @@ rb_str_delete_bang(int argc, VALUE *argv, VALUE str)
/*
* call-seq:
- * str.delete([other_str]+) => new_str
+ * str.delete([other_str]+) -> new_str
*
* Returns a copy of <i>str</i> with all characters in the intersection of its
* arguments deleted. Uses the same rules for building the set of characters as
@@ -5208,7 +5471,7 @@ rb_str_delete(int argc, VALUE *argv, VALUE str)
/*
* call-seq:
- * str.squeeze!([other_str]*) => str or nil
+ * str.squeeze!([other_str]*) -> str or nil
*
* Squeezes <i>str</i> in place, returning either <i>str</i>, or
* <code>nil</code> if no changes were made.
@@ -5217,7 +5480,7 @@ rb_str_delete(int argc, VALUE *argv, VALUE str)
static VALUE
rb_str_squeeze_bang(int argc, VALUE *argv, VALUE str)
{
- char squeez[256];
+ char squeez[TR_TABLE_SIZE];
rb_encoding *enc = 0;
VALUE del = 0, nodel = 0;
char *s, *send, *t;
@@ -5291,7 +5554,7 @@ rb_str_squeeze_bang(int argc, VALUE *argv, VALUE str)
/*
* call-seq:
- * str.squeeze([other_str]*) => new_str
+ * str.squeeze([other_str]*) -> new_str
*
* Builds a set of characters from the <i>other_str</i> parameter(s) using the
* procedure described for <code>String#count</code>. Returns a new string
@@ -5315,7 +5578,7 @@ rb_str_squeeze(int argc, VALUE *argv, VALUE str)
/*
* call-seq:
- * str.tr_s!(from_str, to_str) => str or nil
+ * str.tr_s!(from_str, to_str) -> str or nil
*
* Performs <code>String#tr_s</code> processing on <i>str</i> in place,
* returning <i>str</i>, or <code>nil</code> if no changes were made.
@@ -5330,7 +5593,7 @@ rb_str_tr_s_bang(VALUE str, VALUE src, VALUE repl)
/*
* call-seq:
- * str.tr_s(from_str, to_str) => new_str
+ * str.tr_s(from_str, to_str) -> new_str
*
* Processes a copy of <i>str</i> as described under <code>String#tr</code>,
* then removes duplicate characters in regions that were affected by the
@@ -5352,7 +5615,7 @@ rb_str_tr_s(VALUE str, VALUE src, VALUE repl)
/*
* call-seq:
- * str.count([other_str]+) => fixnum
+ * str.count([other_str]+) -> fixnum
*
* Each <i>other_str</i> parameter defines a set of characters to count. The
* intersection of these sets defines the characters to count in
@@ -5369,7 +5632,7 @@ rb_str_tr_s(VALUE str, VALUE src, VALUE repl)
static VALUE
rb_str_count(int argc, VALUE *argv, VALUE str)
{
- char table[256];
+ char table[TR_TABLE_SIZE];
rb_encoding *enc = 0;
VALUE del = 0, nodel = 0;
char *s, *send;
@@ -5377,34 +5640,45 @@ rb_str_count(int argc, VALUE *argv, VALUE str)
int ascompat;
if (argc < 1) {
- rb_raise(rb_eArgError, "wrong number of arguments");
+ rb_raise(rb_eArgError, "wrong number of arguments (at least 1)");
}
for (i=0; i<argc; i++) {
- VALUE s = argv[i];
+ VALUE tstr = argv[i];
+ unsigned char c;
- StringValue(s);
- enc = rb_enc_check(str, s);
- tr_setup_table(s, table, i==0, &del, &nodel, enc);
+ StringValue(tstr);
+ enc = rb_enc_check(str, tstr);
+ if (argc == 1 && RSTRING_LEN(tstr) == 1 && rb_enc_asciicompat(enc) &&
+ (c = RSTRING_PTR(tstr)[0]) < 0x80 && !is_broken_string(str)) {
+ int n = 0;
+
+ s = RSTRING_PTR(str);
+ if (!s || RSTRING_LEN(str) == 0) return INT2FIX(0);
+ send = RSTRING_END(str);
+ while (s < send) {
+ if (*(unsigned char*)s++ == c) n++;
+ }
+ return INT2NUM(n);
+ }
+ tr_setup_table(tstr, table, i==0, &del, &nodel, enc);
}
s = RSTRING_PTR(str);
if (!s || RSTRING_LEN(str) == 0) return INT2FIX(0);
send = RSTRING_END(str);
- i = 0;
ascompat = rb_enc_asciicompat(enc);
-
+ i = 0;
while (s < send) {
unsigned int c;
- int clen;
if (ascompat && (c = *(unsigned char*)s) < 0x80) {
- clen = 1;
if (table[c]) {
i++;
}
s++;
}
else {
+ int clen;
c = rb_enc_codepoint_len(s, send, &clen, enc);
if (tr_find(c, table, del, nodel)) {
i++;
@@ -5439,7 +5713,7 @@ static const char isspacetable[256] = {
/*
* call-seq:
- * str.split(pattern=$;, [limit]) => anArray
+ * str.split(pattern=$;, [limit]) -> anArray
*
* Divides <i>str</i> into substrings based on a delimiter, returning an array
* of these substrings.
@@ -5580,7 +5854,7 @@ rb_str_split_m(int argc, VALUE *argv, VALUE str)
c = rb_enc_codepoint_len(ptr, eptr, &n, enc);
ptr += n;
if (skip) {
- if (rb_enc_isspace(c, enc)) {
+ if (rb_isspace(c)) {
beg = ptr - bptr;
}
else {
@@ -5589,7 +5863,7 @@ rb_str_split_m(int argc, VALUE *argv, VALUE str)
if (!NIL_P(limit) && lim <= i) break;
}
}
- else if (rb_enc_isspace(c, enc)) {
+ else if (rb_isspace(c)) {
rb_ary_push(result, rb_str_subseq(str, beg, end-beg));
skip = 1;
beg = ptr - bptr;
@@ -5603,9 +5877,10 @@ rb_str_split_m(int argc, VALUE *argv, VALUE str)
}
else if (split_type == string) {
char *ptr = RSTRING_PTR(str);
+ char *temp = ptr;
char *eptr = RSTRING_END(str);
char *sptr = RSTRING_PTR(spat);
- int slen = RSTRING_LEN(spat);
+ long slen = RSTRING_LEN(spat);
if (is_broken_string(str)) {
rb_raise(rb_eArgError, "invalid byte sequence in %s", rb_enc_name(STR_ENC_GET(str)));
@@ -5622,13 +5897,15 @@ rb_str_split_m(int argc, VALUE *argv, VALUE str)
ptr = t;
continue;
}
- rb_ary_push(result, rb_str_subseq(str, ptr - RSTRING_PTR(str), end));
+ rb_ary_push(result, rb_str_subseq(str, ptr - temp, end));
ptr += end + slen;
if (!NIL_P(limit) && lim <= ++i) break;
}
- beg = ptr - RSTRING_PTR(str);
+ beg = ptr - temp;
}
else {
+ char *ptr = RSTRING_PTR(str);
+ long len = RSTRING_LEN(str);
long start = beg;
long idx;
int last_null = 0;
@@ -5637,22 +5914,22 @@ rb_str_split_m(int argc, VALUE *argv, VALUE str)
while ((end = rb_reg_search(spat, str, start, 0)) >= 0) {
regs = RMATCH_REGS(rb_backref_get());
if (start == end && BEG(0) == END(0)) {
- if (!RSTRING_PTR(str)) {
- rb_ary_push(result, rb_str_new("", 0));
+ if (!ptr) {
+ rb_ary_push(result, str_new_empty(str));
break;
}
else if (last_null == 1) {
rb_ary_push(result, rb_str_subseq(str, beg,
- rb_enc_fast_mbclen(RSTRING_PTR(str)+beg,
- RSTRING_END(str),
+ rb_enc_fast_mbclen(ptr+beg,
+ ptr+len,
enc)));
beg = start;
}
else {
- if (RSTRING_PTR(str)+start == RSTRING_END(str))
+ if (ptr+start == ptr+len)
start++;
else
- start += rb_enc_fast_mbclen(RSTRING_PTR(str)+start,RSTRING_END(str),enc);
+ start += rb_enc_fast_mbclen(ptr+start,ptr+len,enc);
last_null = 1;
continue;
}
@@ -5666,7 +5943,7 @@ rb_str_split_m(int argc, VALUE *argv, VALUE str)
for (idx=1; idx < regs->num_regs; idx++) {
if (BEG(idx) == -1) continue;
if (BEG(idx) == END(idx))
- tmp = rb_str_new5(str, 0, 0);
+ tmp = str_new_empty(str);
else
tmp = rb_str_subseq(str, BEG(idx), END(idx)-BEG(idx));
rb_ary_push(result, tmp);
@@ -5676,7 +5953,7 @@ rb_str_split_m(int argc, VALUE *argv, VALUE str)
}
if (RSTRING_LEN(str) > 0 && (!NIL_P(limit) || RSTRING_LEN(str) > beg || lim < 0)) {
if (RSTRING_LEN(str) == beg)
- tmp = rb_str_new5(str, 0, 0);
+ tmp = str_new_empty(str);
else
tmp = rb_str_subseq(str, beg, RSTRING_LEN(str)-beg);
rb_ary_push(result, tmp);
@@ -5703,34 +5980,26 @@ rb_str_split(VALUE str, const char *sep0)
/*
- * Document-method: lines
* call-seq:
- * str.lines(separator=$/) => anEnumerator
- * str.lines(separator=$/) {|substr| block } => str
+ * str.each_line(separator=$/) {|substr| block } -> str
+ * str.each_line(separator=$/) -> an_enumerator
*
- * Returns an enumerator that gives each line in the string. If a block is
- * given, it iterates over each line in the string.
- *
- * "foo\nbar\n".lines.to_a #=> ["foo\n", "bar\n"]
- * "foo\nb ar".lines.sort #=> ["b ar", "foo\n"]
- */
-
-/*
- * Document-method: each_line
- * call-seq:
- * str.each_line(separator=$/) {|substr| block } => str
+ * str.lines(separator=$/) {|substr| block } -> str
+ * str.lines(separator=$/) -> an_enumerator
*
* Splits <i>str</i> using the supplied parameter as the record separator
* (<code>$/</code> by default), passing each substring in turn to the supplied
* block. If a zero-length record separator is supplied, the string is split
* into paragraphs delimited by multiple successive newlines.
*
+ * If no block is given, an enumerator is returned instead.
+ *
* print "Example one\n"
- * "hello\nworld".each {|s| p s}
+ * "hello\nworld".each_line {|s| p s}
* print "Example two\n"
- * "hello\nworld".each('l') {|s| p s}
+ * "hello\nworld".each_line('l') {|s| p s}
* print "Example three\n"
- * "hello\n\n\nworld".each('') {|s| p s}
+ * "hello\n\n\nworld".each_line('') {|s| p s}
*
* <em>produces:</em>
*
@@ -5822,7 +6091,8 @@ rb_str_each_line(int argc, VALUE *argv, VALUE str)
p -= n;
}
if (c == newline &&
- (rslen <= 1 || memcmp(RSTRING_PTR(rs), p, rslen) == 0)) {
+ (rslen <= 1 ||
+ (pend - p >= rslen && memcmp(RSTRING_PTR(rs), p, rslen) == 0))) {
line = rb_str_new5(str, s, p - s + (rslen ? rslen : n));
OBJ_INFECT(line, str);
rb_enc_cr_str_copy_for_substr(line, str);
@@ -5846,23 +6116,15 @@ rb_str_each_line(int argc, VALUE *argv, VALUE str)
/*
- * Document-method: bytes
* call-seq:
- * str.bytes => anEnumerator
- * str.bytes {|fixnum| block } => str
+ * str.bytes {|fixnum| block } -> str
+ * str.bytes -> an_enumerator
*
- * Returns an enumerator that gives each byte in the string. If a block is
- * given, it iterates over each byte in the string.
+ * str.each_byte {|fixnum| block } -> str
+ * str.each_byte -> an_enumerator
*
- * "hello".bytes.to_a #=> [104, 101, 108, 108, 111]
- */
-
-/*
- * Document-method: each_byte
- * call-seq:
- * str.each_byte {|fixnum| block } => str
- *
- * Passes each byte in <i>str</i> to the given block.
+ * Passes each byte in <i>str</i> to the given block, or returns
+ * an enumerator if no block is given.
*
* "hello".each_byte {|c| print c, ' ' }
*
@@ -5885,23 +6147,15 @@ rb_str_each_byte(VALUE str)
/*
- * Document-method: chars
* call-seq:
- * str.chars => anEnumerator
- * str.chars {|substr| block } => str
- *
- * Returns an enumerator that gives each character in the string.
- * If a block is given, it iterates over each character in the string.
+ * str.chars {|cstr| block } -> str
+ * str.chars -> an_enumerator
*
- * "foo".chars.to_a #=> ["f","o","o"]
- */
-
-/*
- * Document-method: each_char
- * call-seq:
- * str.each_char {|cstr| block } => str
+ * str.each_char {|cstr| block } -> str
+ * str.each_char -> an_enumerator
*
- * Passes each character in <i>str</i> to the given block.
+ * Passes each character in <i>str</i> to the given block, or returns
+ * an enumerator if no block is given.
*
* "hello".each_char {|c| print c, ' ' }
*
@@ -5913,7 +6167,8 @@ rb_str_each_byte(VALUE str)
static VALUE
rb_str_each_char(VALUE str)
{
- int i, len, n;
+ VALUE orig = str;
+ long i, len, n;
const char *ptr;
rb_encoding *enc;
@@ -5936,32 +6191,23 @@ rb_str_each_char(VALUE str)
rb_yield(rb_str_subseq(str, i, n));
}
}
- return str;
+ return orig;
}
/*
- * Document-method: codepoints
* call-seq:
- * str.codepoints => anEnumerator
- * str.codepoints {|fixnum| block } => str
+ * str.codepoints {|integer| block } -> str
+ * str.codepoints -> an_enumerator
*
- * Returns an enumerator that gives the <code>Integer</code> ordinal
- * of each character in the string, also known as a <i>codepoint</i>
- * when applied to Unicode strings. If a block is given, it iterates
- * over each character in the string.
- *
- * "foo\u0635".codepoints.to_a #=> [102, 111, 111, 1589]
- */
-
-/*
- * Document-method: each_codepoint
- * call-seq:
- * str.each_codepoint {|integer| block } => str
+ * str.each_codepoint {|integer| block } -> str
+ * str.each_codepoint -> an_enumerator
*
* Passes the <code>Integer</code> ordinal of each character in <i>str</i>,
* also known as a <i>codepoint</i> when applied to Unicode strings to the
* given block.
*
+ * If no block is given, an enumerator is returned instead.
+ *
* "hello\u0639".each_codepoint {|c| print c, ' ' }
*
* <em>produces:</em>
@@ -5972,15 +6218,16 @@ rb_str_each_char(VALUE str)
static VALUE
rb_str_each_codepoint(VALUE str)
{
- int len, n;
+ VALUE orig = str;
+ int n;
unsigned int c;
const char *ptr, *end;
rb_encoding *enc;
if (single_byte_optimizable(str)) return rb_str_each_byte(str);
RETURN_ENUMERATOR(str, 0, 0);
+ str = rb_str_new4(str);
ptr = RSTRING_PTR(str);
- len = RSTRING_LEN(str);
end = RSTRING_END(str);
enc = STR_ENC_GET(str);
while (ptr < end) {
@@ -5988,7 +6235,7 @@ rb_str_each_codepoint(VALUE str)
rb_yield(UINT2NUM(c));
ptr += n;
}
- return str;
+ return orig;
}
static long
@@ -6002,16 +6249,16 @@ chopped_length(VALUE str)
if (beg > end) return 0;
p = rb_enc_prev_char(beg, end, end, enc);
if (!p) return 0;
- if (p > beg && rb_enc_codepoint(p, end, enc) == '\n') {
+ if (p > beg && rb_enc_ascget(p, end, 0, enc) == '\n') {
p2 = rb_enc_prev_char(beg, p, end, enc);
- if (p2 && rb_enc_codepoint(p2, end, enc) == '\r') p = p2;
+ if (p2 && rb_enc_ascget(p2, end, 0, enc) == '\r') p = p2;
}
return p - beg;
}
/*
* call-seq:
- * str.chop! => str or nil
+ * str.chop! -> str or nil
*
* Processes <i>str</i> as for <code>String#chop</code>, returning <i>str</i>,
* or <code>nil</code> if <i>str</i> is the empty string. See also
@@ -6021,12 +6268,15 @@ chopped_length(VALUE str)
static VALUE
rb_str_chop_bang(VALUE str)
{
+ str_modify_keep_cr(str);
if (RSTRING_LEN(str) > 0) {
long len;
- rb_str_modify(str);
len = chopped_length(str);
STR_SET_LEN(str, len);
RSTRING_PTR(str)[len] = '\0';
+ if (ENC_CODERANGE(str) != ENC_CODERANGE_7BIT) {
+ ENC_CODERANGE_CLEAR(str);
+ }
return str;
}
return Qnil;
@@ -6035,7 +6285,7 @@ rb_str_chop_bang(VALUE str)
/*
* call-seq:
- * str.chop => new_str
+ * str.chop -> new_str
*
* Returns a new <code>String</code> with the last character removed. If the
* string ends with <code>\r\n</code>, both characters are removed. Applying
@@ -6062,7 +6312,7 @@ rb_str_chop(VALUE str)
/*
* call-seq:
- * str.chomp!(separator=$/) => str or nil
+ * str.chomp!(separator=$/) -> str or nil
*
* Modifies <i>str</i> in place as described for <code>String#chomp</code>,
* returning <i>str</i>, or <code>nil</code> if no modifications were made.
@@ -6077,6 +6327,7 @@ rb_str_chomp_bang(int argc, VALUE *argv, VALUE str)
char *p, *pp, *e;
long len, rslen;
+ str_modify_keep_cr(str);
len = RSTRING_LEN(str);
if (len == 0) return Qnil;
p = RSTRING_PTR(str);
@@ -6085,7 +6336,6 @@ rb_str_chomp_bang(int argc, VALUE *argv, VALUE str)
rs = rb_rs;
if (rs == rb_default_rs) {
smart_chomp:
- str_modify_keep_cr(str);
enc = rb_enc_get(str);
if (rb_enc_mbminlen(enc) > 1) {
pp = rb_enc_left_char_head(p, e-rb_enc_mbminlen(enc), e, enc);
@@ -6137,7 +6387,6 @@ rb_str_chomp_bang(int argc, VALUE *argv, VALUE str)
len--;
}
if (len < RSTRING_LEN(str)) {
- str_modify_keep_cr(str);
STR_SET_LEN(str, len);
RSTRING_PTR(str)[len] = '\0';
return str;
@@ -6159,7 +6408,6 @@ rb_str_chomp_bang(int argc, VALUE *argv, VALUE str)
memcmp(RSTRING_PTR(rs), pp, rslen) == 0)) {
if (rb_enc_left_char_head(p, pp, e, enc) != pp)
return Qnil;
- str_modify_keep_cr(str);
if (ENC_CODERANGE(str) != ENC_CODERANGE_7BIT) {
ENC_CODERANGE_CLEAR(str);
}
@@ -6173,7 +6421,7 @@ rb_str_chomp_bang(int argc, VALUE *argv, VALUE str)
/*
* call-seq:
- * str.chomp(separator=$/) => new_str
+ * str.chomp(separator=$/) -> new_str
*
* Returns a new <code>String</code> with the given record separator removed
* from the end of <i>str</i> (if present). If <code>$/</code> has not been
@@ -6200,7 +6448,7 @@ rb_str_chomp(int argc, VALUE *argv, VALUE str)
/*
* call-seq:
- * str.lstrip! => self or nil
+ * str.lstrip! -> self or nil
*
* Removes leading whitespace from <i>str</i>, returning <code>nil</code> if no
* change was made. See also <code>String#rstrip!</code> and
@@ -6226,7 +6474,7 @@ rb_str_lstrip_bang(VALUE str)
int n;
unsigned int cc = rb_enc_codepoint_len(s, e, &n, enc);
- if (!rb_enc_isspace(cc, enc)) break;
+ if (!rb_isspace(cc)) break;
s += n;
}
@@ -6242,7 +6490,7 @@ rb_str_lstrip_bang(VALUE str)
/*
* call-seq:
- * str.lstrip => new_str
+ * str.lstrip -> new_str
*
* Returns a copy of <i>str</i> with leading whitespace removed. See also
* <code>String#rstrip</code> and <code>String#strip</code>.
@@ -6262,7 +6510,7 @@ rb_str_lstrip(VALUE str)
/*
* call-seq:
- * str.rstrip! => self or nil
+ * str.rstrip! -> self or nil
*
* Removes trailing whitespace from <i>str</i>, returning <code>nil</code> if
* no change was made. See also <code>String#lstrip!</code> and
@@ -6278,6 +6526,7 @@ rb_str_rstrip_bang(VALUE str)
rb_encoding *enc;
char *s, *t, *e;
+ str_modify_keep_cr(str);
enc = STR_ENC_GET(str);
rb_str_check_dummy_enc(enc);
s = RSTRING_PTR(str);
@@ -6287,21 +6536,20 @@ rb_str_rstrip_bang(VALUE str)
/* remove trailing spaces or '\0's */
if (single_byte_optimizable(str)) {
unsigned char c;
- while (s < t && ((c = *(t-1)) == '\0' || rb_enc_isspace(c, enc))) t--;
+ while (s < t && ((c = *(t-1)) == '\0' || ascii_isspace(c))) t--;
}
else {
char *tp;
while ((tp = rb_enc_prev_char(s, t, e, enc)) != NULL) {
unsigned int c = rb_enc_codepoint(tp, e, enc);
- if (c && !rb_enc_isspace(c, enc)) break;
+ if (c && !rb_isspace(c)) break;
t = tp;
}
}
if (t < e) {
- int len = t-RSTRING_PTR(str);
+ long len = t-RSTRING_PTR(str);
- str_modify_keep_cr(str);
STR_SET_LEN(str, len);
RSTRING_PTR(str)[len] = '\0';
return str;
@@ -6312,7 +6560,7 @@ rb_str_rstrip_bang(VALUE str)
/*
* call-seq:
- * str.rstrip => new_str
+ * str.rstrip -> new_str
*
* Returns a copy of <i>str</i> with trailing whitespace removed. See also
* <code>String#lstrip</code> and <code>String#strip</code>.
@@ -6332,7 +6580,7 @@ rb_str_rstrip(VALUE str)
/*
* call-seq:
- * str.strip! => str or nil
+ * str.strip! -> str or nil
*
* Removes leading and trailing whitespace from <i>str</i>. Returns
* <code>nil</code> if <i>str</i> was not altered.
@@ -6351,7 +6599,7 @@ rb_str_strip_bang(VALUE str)
/*
* call-seq:
- * str.strip => new_str
+ * str.strip -> new_str
*
* Returns a copy of <i>str</i> with leading and trailing whitespace removed.
*
@@ -6372,7 +6620,7 @@ scan_once(VALUE str, VALUE pat, long *start)
{
VALUE result, match;
struct re_registers *regs;
- long i;
+ int i;
if (rb_reg_search(pat, str, *start, 0) >= 0) {
match = rb_backref_get();
@@ -6407,8 +6655,8 @@ scan_once(VALUE str, VALUE pat, long *start)
/*
* call-seq:
- * str.scan(pattern) => array
- * str.scan(pattern) {|match, ...| block } => str
+ * str.scan(pattern) -> array
+ * str.scan(pattern) {|match, ...| block } -> str
*
* Both forms iterate through <i>str</i>, matching the pattern (which may be a
* <code>Regexp</code> or a <code>String</code>). For each match, a result is
@@ -6470,7 +6718,7 @@ rb_str_scan(VALUE str, VALUE pat)
/*
* call-seq:
- * str.hex => integer
+ * str.hex -> integer
*
* Treats leading characters from <i>str</i> as a string of hexadecimal digits
* (with an optional sign and an optional <code>0x</code>) and returns the
@@ -6490,13 +6738,13 @@ rb_str_hex(VALUE str)
if (!rb_enc_asciicompat(enc)) {
rb_raise(rb_eEncCompatError, "ASCII incompatible encoding: %s", rb_enc_name(enc));
}
- return rb_str_to_inum(str, 16, Qfalse);
+ return rb_str_to_inum(str, 16, FALSE);
}
/*
* call-seq:
- * str.oct => integer
+ * str.oct -> integer
*
* Treats leading characters of <i>str</i> as a string of octal digits (with an
* optional sign) and returns the corresponding number. Returns 0 if the
@@ -6516,13 +6764,13 @@ rb_str_oct(VALUE str)
if (!rb_enc_asciicompat(enc)) {
rb_raise(rb_eEncCompatError, "ASCII incompatible encoding: %s", rb_enc_name(enc));
}
- return rb_str_to_inum(str, -8, Qfalse);
+ return rb_str_to_inum(str, -8, FALSE);
}
/*
* call-seq:
- * str.crypt(other_str) => new_str
+ * str.crypt(other_str) -> new_str
*
* Applies a one-way cryptographic hash to <i>str</i> by invoking the standard
* library function <code>crypt</code>. The argument is the salt string, which
@@ -6564,8 +6812,8 @@ rb_str_crypt(VALUE str, VALUE salt)
/*
* call-seq:
- * str.intern => symbol
- * str.to_sym => symbol
+ * str.intern -> symbol
+ * str.to_sym -> symbol
*
* Returns the <code>Symbol</code> corresponding to <i>str</i>, creating the
* symbol if it did not previously exist. See <code>Symbol#id2name</code>.
@@ -6586,31 +6834,16 @@ VALUE
rb_str_intern(VALUE s)
{
VALUE str = RB_GC_GUARD(s);
- VALUE sym;
- ID id, id2;
+ ID id;
id = rb_intern_str(str);
- sym = ID2SYM(id);
- id2 = SYM2ID(sym);
- if (id != id2) {
- const char *name = rb_id2name(id2);
-
- if (name) {
- rb_raise(rb_eRuntimeError, "symbol table overflow (%s given for %s)",
- name, RSTRING_PTR(str));
- }
- else {
- rb_raise(rb_eRuntimeError, "symbol table overflow (symbol %s)",
- RSTRING_PTR(str));
- }
- }
- return sym;
+ return ID2SYM(id);
}
/*
* call-seq:
- * str.ord => integer
+ * str.ord -> integer
*
* Return the <code>Integer</code> ordinal of a one-character string.
*
@@ -6627,12 +6860,12 @@ rb_str_ord(VALUE s)
}
/*
* call-seq:
- * str.sum(n=16) => integer
+ * str.sum(n=16) -> integer
*
* Returns a basic <em>n</em>-bit checksum of the characters in <i>str</i>,
* where <em>n</em> is the optional <code>Fixnum</code> parameter, defaulting
* to 16. The result is simply the sum of the binary value of each character in
- * <i>str</i> modulo <code>2n - 1</code>. This is not a particularly good
+ * <i>str</i> modulo <code>2**n - 1</code>. This is not a particularly good
* checksum.
*/
@@ -6643,6 +6876,8 @@ rb_str_sum(int argc, VALUE *argv, VALUE str)
int bits;
char *ptr, *p, *pend;
long len;
+ VALUE sum = INT2FIX(0);
+ unsigned long sum0 = 0;
if (argc == 0) {
bits = 16;
@@ -6654,36 +6889,42 @@ rb_str_sum(int argc, VALUE *argv, VALUE str)
ptr = p = RSTRING_PTR(str);
len = RSTRING_LEN(str);
pend = p + len;
- if (bits >= (int)sizeof(long)*CHAR_BIT) {
- VALUE sum = INT2FIX(0);
- while (p < pend) {
- str_mod_check(str, ptr, len);
- sum = rb_funcall(sum, '+', 1, INT2FIX((unsigned char)*p));
- p++;
- }
- if (bits != 0) {
- VALUE mod;
+ while (p < pend) {
+ if (FIXNUM_MAX - UCHAR_MAX < sum0) {
+ sum = rb_funcall(sum, '+', 1, LONG2FIX(sum0));
+ str_mod_check(str, ptr, len);
+ sum0 = 0;
+ }
+ sum0 += (unsigned char)*p;
+ p++;
+ }
- mod = rb_funcall(INT2FIX(1), rb_intern("<<"), 1, INT2FIX(bits));
- mod = rb_funcall(mod, '-', 1, INT2FIX(1));
- sum = rb_funcall(sum, '&', 1, mod);
- }
- return sum;
+ if (bits == 0) {
+ if (sum0) {
+ sum = rb_funcall(sum, '+', 1, LONG2FIX(sum0));
+ }
}
else {
- unsigned long sum = 0;
+ if (sum == INT2FIX(0)) {
+ if (bits < (int)sizeof(long)*CHAR_BIT) {
+ sum0 &= (((unsigned long)1)<<bits)-1;
+ }
+ sum = LONG2FIX(sum0);
+ }
+ else {
+ VALUE mod;
- while (p < pend) {
- str_mod_check(str, ptr, len);
- sum += (unsigned char)*p;
- p++;
- }
- if (bits != 0) {
- sum &= (((unsigned long)1)<<bits)-1;
- }
- return rb_int2inum(sum);
+ if (sum0) {
+ sum = rb_funcall(sum, '+', 1, LONG2FIX(sum0));
+ }
+
+ mod = rb_funcall(INT2FIX(1), rb_intern("<<"), 1, INT2FIX(bits));
+ mod = rb_funcall(mod, '-', 1, INT2FIX(1));
+ sum = rb_funcall(sum, '&', 1, mod);
+ }
}
+ return sum;
}
static VALUE
@@ -6695,7 +6936,7 @@ rb_str_justify(int argc, VALUE *argv, VALUE str, char jflag)
VALUE res;
char *p;
const char *f = " ";
- long n, llen, rlen;
+ long n, size, llen, rlen, llen2 = 0, rlen2 = 0;
volatile VALUE pad;
int singlebyte = 1, cr;
@@ -6719,44 +6960,49 @@ rb_str_justify(int argc, VALUE *argv, VALUE str, char jflag)
llen = (jflag == 'l') ? 0 : ((jflag == 'r') ? n : n/2);
rlen = n - llen;
cr = ENC_CODERANGE(str);
- res = rb_str_new5(str, 0, RSTRING_LEN(str)+n*flen/fclen+2);
+ if (flen > 1) {
+ llen2 = str_offset(f, f + flen, llen % fclen, enc, singlebyte);
+ rlen2 = str_offset(f, f + flen, rlen % fclen, enc, singlebyte);
+ }
+ size = RSTRING_LEN(str);
+ if ((len = llen / fclen + rlen / fclen) >= LONG_MAX / flen ||
+ (len *= flen) >= LONG_MAX - llen2 - rlen2 ||
+ (len += llen2 + rlen2) >= LONG_MAX - size) {
+ rb_raise(rb_eArgError, "argument too big");
+ }
+ len += size;
+ res = rb_str_new5(str, 0, len);
p = RSTRING_PTR(res);
- while (llen) {
- if (flen <= 1) {
- *p++ = *f;
- llen--;
- }
- else if (llen > fclen) {
+ if (flen <= 1) {
+ memset(p, *f, llen);
+ p += llen;
+ }
+ else {
+ while (llen >= fclen) {
memcpy(p,f,flen);
p += flen;
llen -= fclen;
}
- else {
- char *fp = str_nth(f, f+flen, llen, enc, singlebyte);
- n = fp - f;
- memcpy(p,f,n);
- p+=n;
- break;
+ if (llen > 0) {
+ memcpy(p, f, llen2);
+ p += llen2;
}
}
- memcpy(p, RSTRING_PTR(str), RSTRING_LEN(str));
- p+=RSTRING_LEN(str);
- while (rlen) {
- if (flen <= 1) {
- *p++ = *f;
- rlen--;
- }
- else if (rlen > fclen) {
+ memcpy(p, RSTRING_PTR(str), size);
+ p += size;
+ if (flen <= 1) {
+ memset(p, *f, rlen);
+ p += rlen;
+ }
+ else {
+ while (rlen >= fclen) {
memcpy(p,f,flen);
p += flen;
rlen -= fclen;
}
- else {
- char *fp = str_nth(f, f+flen, rlen, enc, singlebyte);
- n = fp - f;
- memcpy(p,f,n);
- p+=n;
- break;
+ if (rlen > 0) {
+ memcpy(p, f, rlen2);
+ p += rlen2;
}
}
*p = '\0';
@@ -6774,7 +7020,7 @@ rb_str_justify(int argc, VALUE *argv, VALUE str, char jflag)
/*
* call-seq:
- * str.ljust(integer, padstr=' ') => new_str
+ * str.ljust(integer, padstr=' ') -> new_str
*
* If <i>integer</i> is greater than the length of <i>str</i>, returns a new
* <code>String</code> of length <i>integer</i> with <i>str</i> left justified
@@ -6794,7 +7040,7 @@ rb_str_ljust(int argc, VALUE *argv, VALUE str)
/*
* call-seq:
- * str.rjust(integer, padstr=' ') => new_str
+ * str.rjust(integer, padstr=' ') -> new_str
*
* If <i>integer</i> is greater than the length of <i>str</i>, returns a new
* <code>String</code> of length <i>integer</i> with <i>str</i> right justified
@@ -6814,7 +7060,7 @@ rb_str_rjust(int argc, VALUE *argv, VALUE str)
/*
* call-seq:
- * str.center(integer, padstr) => new_str
+ * str.center(integer, padstr) -> new_str
*
* If <i>integer</i> is greater than the length of <i>str</i>, returns a new
* <code>String</code> of length <i>integer</i> with <i>str</i> centered and
@@ -6833,25 +7079,28 @@ rb_str_center(int argc, VALUE *argv, VALUE str)
/*
* call-seq:
- * str.partition(sep) => [head, sep, tail]
+ * str.partition(sep) -> [head, sep, tail]
+ * str.partition(regexp) -> [head, match, tail]
*
- * Searches the string for <i>sep</i> and returns the part before
- * it, the <i>sep</i>, and the part after it. If <i>sep</i> is not found,
- * returns <i>str</i> and two empty strings.
+ * Searches <i>sep</i> or pattern (<i>regexp</i>) in the string
+ * and returns the part before it, the match, and the part
+ * after it.
+ * If it is not found, returns two empty strings and <i>str</i>.
*
* "hello".partition("l") #=> ["he", "l", "lo"]
* "hello".partition("x") #=> ["hello", "", ""]
+ * "hello".partition(/.l/) #=> ["h", "el", "lo"]
*/
static VALUE
rb_str_partition(VALUE str, VALUE sep)
{
long pos;
- int regex = Qfalse;
+ int regex = FALSE;
if (TYPE(sep) == T_REGEXP) {
pos = rb_reg_search(sep, str, 0, 0);
- regex = Qtrue;
+ regex = TRUE;
}
else {
VALUE tmp;
@@ -6861,11 +7110,12 @@ rb_str_partition(VALUE str, VALUE sep)
rb_raise(rb_eTypeError, "type mismatch: %s given",
rb_obj_classname(sep));
}
+ sep = tmp;
pos = rb_str_index(str, sep, 0);
}
if (pos < 0) {
failed:
- return rb_ary_new3(3, str, rb_str_new(0,0),rb_str_new(0,0));
+ return rb_ary_new3(3, str, str_new_empty(str), str_new_empty(str));
}
if (regex) {
sep = rb_str_subpat(str, sep, INT2FIX(0));
@@ -6879,26 +7129,28 @@ rb_str_partition(VALUE str, VALUE sep)
/*
* call-seq:
- * str.rpartition(sep) => [head, sep, tail]
+ * str.rpartition(sep) -> [head, sep, tail]
+ * str.rpartition(regexp) -> [head, match, tail]
*
- * Searches <i>sep</i> in the string from the end of the string, and
- * returns the part before it, the <i>sep</i>, and the part after it.
- * If <i>sep</i> is not found, returns two empty strings and
- * <i>str</i>.
+ * Searches <i>sep</i> or pattern (<i>regexp</i>) in the string from the end
+ * of the string, and returns the part before it, the match, and the part
+ * after it.
+ * If it is not found, returns two empty strings and <i>str</i>.
*
* "hello".rpartition("l") #=> ["hel", "l", "o"]
* "hello".rpartition("x") #=> ["", "", "hello"]
+ * "hello".rpartition(/.l/) #=> ["he", "ll", "o"]
*/
static VALUE
rb_str_rpartition(VALUE str, VALUE sep)
{
long pos = RSTRING_LEN(str);
- int regex = Qfalse;
+ int regex = FALSE;
if (TYPE(sep) == T_REGEXP) {
pos = rb_reg_search(sep, str, pos, 1);
- regex = Qtrue;
+ regex = TRUE;
}
else {
VALUE tmp;
@@ -6908,11 +7160,12 @@ rb_str_rpartition(VALUE str, VALUE sep)
rb_raise(rb_eTypeError, "type mismatch: %s given",
rb_obj_classname(sep));
}
+ sep = tmp;
pos = rb_str_sublen(str, pos);
pos = rb_str_rindex(str, sep, pos);
}
if (pos < 0) {
- return rb_ary_new3(3, rb_str_new(0,0),rb_str_new(0,0), str);
+ return rb_ary_new3(3, str_new_empty(str), str_new_empty(str), str);
}
if (regex) {
sep = rb_reg_nth_match(0, rb_backref_get());
@@ -6924,15 +7177,15 @@ rb_str_rpartition(VALUE str, VALUE sep)
/*
* call-seq:
- * str.start_with?([prefix]+) => true or false
+ * str.start_with?([prefix]+) -> true or false
*
- * Returns true if <i>str</i> starts with a prefix given.
+ * Returns true if <i>str</i> starts with one of the prefixes given.
*
* p "hello".start_with?("hell") #=> true
*
- * # returns true if one of prefix matches.
+ * # returns true if one of the prefixes matches.
* p "hello".start_with?("heaven", "hell") #=> true
- * p "hello".start_with?("heaven", "paradice") #=> false
+ * p "hello".start_with?("heaven", "paradise") #=> false
*
*
*
@@ -6956,9 +7209,9 @@ rb_str_start_with(int argc, VALUE *argv, VALUE str)
/*
* call-seq:
- * str.end_with?([suffix]+) => true or false
+ * str.end_with?([suffix]+) -> true or false
*
- * Returns true if <i>str</i> ends with a suffix given.
+ * Returns true if <i>str</i> ends with one of the suffixes given.
*/
static VALUE
@@ -6996,7 +7249,7 @@ rb_str_setter(VALUE val, ID id, VALUE *var)
/*
* call-seq:
- * str.force_encoding(encoding) => str
+ * str.force_encoding(encoding) -> str
*
* Changes the encoding to +encoding+ and returns self.
*/
@@ -7012,13 +7265,13 @@ rb_str_force_encoding(VALUE str, VALUE enc)
/*
* call-seq:
- * str.valid_encoding? => true or false
+ * str.valid_encoding? -> true or false
*
* Returns true for a string which encoded correctly.
*
- * "\xc2\xa1".force_encoding("UTF-8").valid_encoding? => true
- * "\xc2".force_encoding("UTF-8").valid_encoding? => false
- * "\x80".force_encoding("UTF-8").valid_encoding? => false
+ * "\xc2\xa1".force_encoding("UTF-8").valid_encoding? #=> true
+ * "\xc2".force_encoding("UTF-8").valid_encoding? #=> false
+ * "\x80".force_encoding("UTF-8").valid_encoding? #=> false
*/
static VALUE
@@ -7031,12 +7284,12 @@ rb_str_valid_encoding_p(VALUE str)
/*
* call-seq:
- * str.ascii_only? => true or false
+ * str.ascii_only? -> true or false
*
* Returns true for a string which has only ASCII characters.
*
- * "abc".force_encoding("UTF-8").ascii_only? => true
- * "abc\u{6666}".force_encoding("UTF-8").ascii_only? => false
+ * "abc".force_encoding("UTF-8").ascii_only? #=> true
+ * "abc\u{6666}".force_encoding("UTF-8").ascii_only? #=> false
*/
static VALUE
@@ -7047,6 +7300,57 @@ rb_str_is_ascii_only_p(VALUE str)
return cr == ENC_CODERANGE_7BIT ? Qtrue : Qfalse;
}
+/**
+ * Shortens _str_ and adds three dots, an ellipsis, if it is longer
+ * than _len_ characters.
+ *
+ * \param str the string to ellipsize.
+ * \param len the maximum string length.
+ * \return the ellipsized string.
+ * \pre _len_ must not be negative.
+ * \post the length of the returned string in characters is less than or equal to _len_.
+ * \post If the length of _str_ is less than or equal _len_, returns _str_ itself.
+ * \post the encoded of returned string is equal to the encoded of _str_.
+ * \post the class of returned string is equal to the class of _str_.
+ * \note the length is counted in characters.
+ */
+VALUE
+rb_str_ellipsize(VALUE str, long len)
+{
+ static const char ellipsis[] = "...";
+ const long ellipsislen = sizeof(ellipsis) - 1;
+ rb_encoding *const enc = rb_enc_get(str);
+ const long blen = RSTRING_LEN(str);
+ const char *const p = RSTRING_PTR(str), *e = p + blen;
+ VALUE estr, ret = 0;
+
+ if (len < 0) rb_raise(rb_eIndexError, "negative length %ld", len);
+ if (len * rb_enc_mbminlen(enc) >= blen ||
+ (e = rb_enc_nth(p, e, len, enc)) - p == blen) {
+ ret = str;
+ }
+ else if (len <= ellipsislen ||
+ !(e = rb_enc_step_back(p, e, e, len = ellipsislen, enc))) {
+ if (rb_enc_asciicompat(enc)) {
+ ret = rb_str_new_with_class(str, ellipsis, len);
+ rb_enc_associate(ret, enc);
+ }
+ else {
+ estr = rb_usascii_str_new(ellipsis, len);
+ ret = rb_str_encode(estr, rb_enc_from_encoding(enc), 0, Qnil);
+ }
+ }
+ else if (ret = rb_str_subseq(str, 0, e - p), rb_enc_asciicompat(enc)) {
+ rb_str_cat(ret, ellipsis, ellipsislen);
+ }
+ else {
+ estr = rb_str_encode(rb_usascii_str_new(ellipsis, ellipsislen),
+ rb_enc_from_encoding(enc), 0, Qnil);
+ rb_str_append(ret, estr);
+ }
+ return ret;
+}
+
/**********************************************************************
* Document-class: Symbol
*
@@ -7083,7 +7387,7 @@ rb_str_is_ascii_only_p(VALUE str)
/*
* call-seq:
- * sym == obj => true or false
+ * sym == obj -> true or false
*
* Equality---If <i>sym</i> and <i>obj</i> are exactly the same
* symbol, returns <code>true</code>.
@@ -7104,15 +7408,15 @@ sym_printable(const char *s, const char *send, rb_encoding *enc)
int n;
int c = rb_enc_codepoint_len(s, send, &n, enc);
- if (!rb_enc_isprint(c, enc)) return Qfalse;
+ if (!rb_enc_isprint(c, enc)) return FALSE;
s += n;
}
- return Qtrue;
+ return TRUE;
}
/*
* call-seq:
- * sym.inspect => string
+ * sym.inspect -> string
*
* Returns the representation of <i>sym</i> as a symbol literal.
*
@@ -7125,17 +7429,31 @@ sym_inspect(VALUE sym)
VALUE str;
ID id = SYM2ID(sym);
rb_encoding *enc;
+ const char *ptr;
+ long len;
+ char *dest;
+ rb_encoding *resenc = rb_default_internal_encoding();
+ if (resenc == NULL) resenc = rb_default_external_encoding();
sym = rb_id2str(id);
enc = STR_ENC_GET(sym);
- str = rb_enc_str_new(0, RSTRING_LEN(sym)+1, enc);
- RSTRING_PTR(str)[0] = ':';
- memcpy(RSTRING_PTR(str)+1, RSTRING_PTR(sym), RSTRING_LEN(sym));
- if (RSTRING_LEN(sym) != (long)strlen(RSTRING_PTR(sym)) ||
- !rb_enc_symname_p(RSTRING_PTR(sym), enc) ||
- !sym_printable(RSTRING_PTR(sym), RSTRING_END(sym), enc)) {
- str = rb_str_inspect(str);
- memcpy(RSTRING_PTR(str), ":\"", 2);
+ ptr = RSTRING_PTR(sym);
+ len = RSTRING_LEN(sym);
+ if ((resenc != enc && !rb_str_is_ascii_only_p(sym)) || len != (long)strlen(ptr) ||
+ !rb_enc_symname_p(ptr, enc) || !sym_printable(ptr, ptr + len, enc)) {
+ str = rb_str_inspect(sym);
+ len = RSTRING_LEN(str);
+ rb_str_resize(str, len + 1);
+ dest = RSTRING_PTR(str);
+ memmove(dest + 1, dest, len);
+ dest[0] = ':';
+ }
+ else {
+ char *dest;
+ str = rb_enc_str_new(0, len + 1, enc);
+ dest = RSTRING_PTR(str);
+ dest[0] = ':';
+ memcpy(dest + 1, ptr, len);
}
return str;
}
@@ -7143,8 +7461,8 @@ sym_inspect(VALUE sym)
/*
* call-seq:
- * sym.id2name => string
- * sym.to_s => string
+ * sym.id2name -> string
+ * sym.to_s -> string
*
* Returns the name or string corresponding to <i>sym</i>.
*
@@ -7163,8 +7481,8 @@ rb_sym_to_s(VALUE sym)
/*
* call-seq:
- * sym.to_sym => sym
- * sym.intern => sym
+ * sym.to_sym -> sym
+ * sym.intern -> sym
*
* In general, <code>to_sym</code> returns the <code>Symbol</code> corresponding
* to an object. As <i>sym</i> is already a symbol, <code>self</code> is returned
@@ -7186,7 +7504,7 @@ sym_call(VALUE args, VALUE sym, int argc, VALUE *argv)
rb_raise(rb_eArgError, "no receiver given");
}
obj = argv[0];
- return rb_funcall3(obj, (ID)sym, argc - 1, argv + 1);
+ return rb_funcall_passing_block(obj, (ID)sym, argc - 1, argv + 1);
}
/*
@@ -7228,12 +7546,28 @@ sym_to_proc(VALUE sym)
}
}
+/*
+ * call-seq:
+ *
+ * sym.succ
+ *
+ * Same as <code>sym.to_s.succ.intern</code>.
+ */
+
static VALUE
sym_succ(VALUE sym)
{
return rb_str_intern(rb_str_succ(rb_sym_to_s(sym)));
}
+/*
+ * call-seq:
+ *
+ * str <=> other -> -1, 0, +1 or nil
+ *
+ * Compares _sym_ with _other_ in string form.
+ */
+
static VALUE
sym_cmp(VALUE sym, VALUE other)
{
@@ -7243,6 +7577,14 @@ sym_cmp(VALUE sym, VALUE other)
return rb_str_cmp_m(rb_sym_to_s(sym), rb_sym_to_s(other));
}
+/*
+ * call-seq:
+ *
+ * sym.casecmp(other) -> -1, 0, +1 or nil
+ *
+ * Case-insensitive version of <code>Symbol#<=></code>.
+ */
+
static VALUE
sym_casecmp(VALUE sym, VALUE other)
{
@@ -7252,54 +7594,118 @@ sym_casecmp(VALUE sym, VALUE other)
return rb_str_casecmp(rb_sym_to_s(sym), rb_sym_to_s(other));
}
+/*
+ * call-seq:
+ * sym =~ obj -> fixnum or nil
+ *
+ * Returns <code>sym.to_s =~ obj</code>.
+ */
+
static VALUE
sym_match(VALUE sym, VALUE other)
{
return rb_str_match(rb_sym_to_s(sym), other);
}
+/*
+ * call-seq:
+ * sym[idx] -> char
+ * sym[b, n] -> char
+ *
+ * Returns <code>sym.to_s[]</code>.
+ */
+
static VALUE
sym_aref(int argc, VALUE *argv, VALUE sym)
{
return rb_str_aref_m(argc, argv, rb_sym_to_s(sym));
}
+/*
+ * call-seq:
+ * sym.length -> integer
+ *
+ * Same as <code>sym.to_s.length</code>.
+ */
+
static VALUE
sym_length(VALUE sym)
{
return rb_str_length(rb_id2str(SYM2ID(sym)));
}
+/*
+ * call-seq:
+ * sym.empty? -> true or false
+ *
+ * Returns that _sym_ is :"" or not.
+ */
+
static VALUE
sym_empty(VALUE sym)
{
return rb_str_empty(rb_id2str(SYM2ID(sym)));
}
+/*
+ * call-seq:
+ * sym.upcase -> symbol
+ *
+ * Same as <code>sym.to_s.upcase.intern</code>.
+ */
+
static VALUE
sym_upcase(VALUE sym)
{
return rb_str_intern(rb_str_upcase(rb_id2str(SYM2ID(sym))));
}
+/*
+ * call-seq:
+ * sym.downcase -> symbol
+ *
+ * Same as <code>sym.to_s.downcase.intern</code>.
+ */
+
static VALUE
sym_downcase(VALUE sym)
{
return rb_str_intern(rb_str_downcase(rb_id2str(SYM2ID(sym))));
}
+/*
+ * call-seq:
+ * sym.capitalize -> symbol
+ *
+ * Same as <code>sym.to_s.capitalize.intern</code>.
+ */
+
static VALUE
sym_capitalize(VALUE sym)
{
return rb_str_intern(rb_str_capitalize(rb_id2str(SYM2ID(sym))));
}
+/*
+ * call-seq:
+ * sym.swapcase -> symbol
+ *
+ * Same as <code>sym.to_s.swapcase.intern</code>.
+ */
+
static VALUE
sym_swapcase(VALUE sym)
{
return rb_str_intern(rb_str_swapcase(rb_id2str(SYM2ID(sym))));
}
+/*
+ * call-seq:
+ * sym.encoding -> encoding
+ *
+ * Returns the Encoding object that represents the encoding of _sym_.
+ */
+
static VALUE
sym_encoding(VALUE sym)
{
@@ -7310,7 +7716,6 @@ ID
rb_to_id(VALUE name)
{
VALUE tmp;
- ID id;
switch (TYPE(name)) {
default:
@@ -7328,7 +7733,7 @@ rb_to_id(VALUE name)
case T_SYMBOL:
return SYM2ID(name);
}
- return id;
+ return Qnil; /* not reached */
}
/*
@@ -7358,6 +7763,7 @@ Init_String(void)
rb_define_method(rb_cString, "initialize_copy", rb_str_replace, 1);
rb_define_method(rb_cString, "<=>", rb_str_cmp_m, 1);
rb_define_method(rb_cString, "==", rb_str_equal, 1);
+ rb_define_method(rb_cString, "===", rb_str_equal, 1);
rb_define_method(rb_cString, "eql?", rb_str_eql, 1);
rb_define_method(rb_cString, "hash", rb_str_hash_m, 0);
rb_define_method(rb_cString, "casecmp", rb_str_casecmp, 1);
@@ -7385,6 +7791,7 @@ Init_String(void)
rb_define_method(rb_cString, "chr", rb_str_chr, 0);
rb_define_method(rb_cString, "getbyte", rb_str_getbyte, 1);
rb_define_method(rb_cString, "setbyte", rb_str_setbyte, 2);
+ rb_define_method(rb_cString, "byteslice", rb_str_byteslice, -1);
rb_define_method(rb_cString, "to_i", rb_str_to_i, -1);
rb_define_method(rb_cString, "to_f", rb_str_to_f, 0);
@@ -7414,6 +7821,7 @@ Init_String(void)
rb_define_method(rb_cString, "reverse!", rb_str_reverse_bang, 0);
rb_define_method(rb_cString, "concat", rb_str_concat, 1);
rb_define_method(rb_cString, "<<", rb_str_concat, 1);
+ rb_define_method(rb_cString, "prepend", rb_str_prepend, 1);
rb_define_method(rb_cString, "crypt", rb_str_crypt, 1);
rb_define_method(rb_cString, "intern", rb_str_intern, 0);
rb_define_method(rb_cString, "to_sym", rb_str_intern, 0);
@@ -7487,6 +7895,7 @@ Init_String(void)
rb_define_singleton_method(rb_cSymbol, "all_symbols", rb_sym_all_symbols, 0); /* in parse.y */
rb_define_method(rb_cSymbol, "==", sym_equal, 1);
+ rb_define_method(rb_cSymbol, "===", sym_equal, 1);
rb_define_method(rb_cSymbol, "inspect", sym_inspect, 0);
rb_define_method(rb_cSymbol, "to_s", rb_sym_to_s, 0);
rb_define_method(rb_cSymbol, "id2name", rb_sym_to_s, 0);
diff --git a/struct.c b/struct.c
index c1d9c42484..136ba0acee 100644
--- a/struct.c
+++ b/struct.c
@@ -10,6 +10,7 @@
**********************************************************************/
#include "ruby/ruby.h"
+#include "internal.h"
VALUE rb_cStruct;
static ID id_members;
@@ -79,7 +80,7 @@ rb_struct_s_members_m(VALUE klass)
/*
* call-seq:
- * struct.members => array
+ * struct.members -> array
*
* Returns an array of strings representing the names of the instance
* variables.
@@ -98,14 +99,17 @@ rb_struct_members_m(VALUE obj)
VALUE
rb_struct_getmember(VALUE obj, ID id)
{
- VALUE members, slot;
- long i;
+ VALUE members, slot, *ptr, *ptr_members;
+ long i, len;
+ ptr = RSTRUCT_PTR(obj);
members = rb_struct_members(obj);
+ ptr_members = RARRAY_PTR(members);
slot = ID2SYM(id);
- for (i=0; i<RARRAY_LEN(members); i++) {
- if (RARRAY_PTR(members)[i] == slot) {
- return RSTRUCT_PTR(obj)[i];
+ len = RARRAY_LEN(members);
+ for (i=0; i<len; i++) {
+ if (ptr_members[i] == slot) {
+ return ptr[i];
}
}
rb_name_error(id, "%s is not struct member", rb_id2name(id));
@@ -129,7 +133,8 @@ static VALUE rb_struct_ref7(VALUE obj) {return RSTRUCT_PTR(obj)[7];}
static VALUE rb_struct_ref8(VALUE obj) {return RSTRUCT_PTR(obj)[8];}
static VALUE rb_struct_ref9(VALUE obj) {return RSTRUCT_PTR(obj)[9];}
-#define N_REF_FUNC (sizeof(ref_func) / sizeof(ref_func[0]))
+#define numberof(array) (int)(sizeof(array) / sizeof((array)[0]))
+#define N_REF_FUNC numberof(ref_func)
static VALUE (*const ref_func[])(VALUE) = {
rb_struct_ref0,
@@ -147,7 +152,7 @@ static VALUE (*const ref_func[])(VALUE) = {
static void
rb_struct_modify(VALUE s)
{
- if (OBJ_FROZEN(s)) rb_error_frozen("Struct");
+ rb_check_frozen(s);
if (!OBJ_UNTRUSTED(s) && rb_safe_level() >= 4)
rb_raise(rb_eSecurityError, "Insecure: can't modify Struct");
}
@@ -155,15 +160,18 @@ rb_struct_modify(VALUE s)
static VALUE
rb_struct_set(VALUE obj, VALUE val)
{
- VALUE members, slot;
- long i;
+ VALUE members, slot, *ptr, *ptr_members;
+ long i, len;
members = rb_struct_members(obj);
+ ptr_members = RARRAY_PTR(members);
+ len = RARRAY_LEN(members);
rb_struct_modify(obj);
- for (i=0; i<RARRAY_LEN(members); i++) {
- slot = RARRAY_PTR(members)[i];
+ ptr = RSTRUCT_PTR(obj);
+ for (i=0; i<len; i++) {
+ slot = ptr_members[i];
if (rb_id_attrset(SYM2ID(slot)) == rb_frame_this_func()) {
- return RSTRUCT_PTR(obj)[i] = val;
+ return ptr[i] = val;
}
}
rb_name_error(rb_frame_this_func(), "`%s' is not a struct member",
@@ -174,9 +182,9 @@ rb_struct_set(VALUE obj, VALUE val)
static VALUE
make_struct(VALUE name, VALUE members, VALUE klass)
{
- VALUE nstr;
+ VALUE nstr, *ptr_members;
ID id;
- long i;
+ long i, len;
OBJ_FREEZE(members);
if (NIL_P(name)) {
@@ -195,7 +203,7 @@ make_struct(VALUE name, VALUE members, VALUE klass)
rb_warn("redefining constant Struct::%s", StringValuePtr(name));
rb_mod_remove_const(klass, ID2SYM(id));
}
- nstr = rb_define_class_under(klass, rb_id2name(id), klass);
+ nstr = rb_define_class_id_under(klass, id, klass);
}
rb_ivar_set(nstr, id_members, members);
@@ -203,8 +211,10 @@ make_struct(VALUE name, VALUE members, VALUE klass)
rb_define_singleton_method(nstr, "new", rb_class_new_instance, -1);
rb_define_singleton_method(nstr, "[]", rb_class_new_instance, -1);
rb_define_singleton_method(nstr, "members", rb_struct_s_members_m, 0);
- for (i=0; i< RARRAY_LEN(members); i++) {
- ID id = SYM2ID(RARRAY_PTR(members)[i]);
+ ptr_members = RARRAY_PTR(members);
+ len = RARRAY_LEN(members);
+ for (i=0; i< len; i++) {
+ ID id = SYM2ID(ptr_members[i]);
if (rb_is_local_id(id) || rb_is_const_id(id)) {
if (i < N_REF_FUNC) {
rb_define_method_id(nstr, id, ref_func[i], 0);
@@ -231,12 +241,10 @@ rb_struct_define_without_accessor(const char *class_name, VALUE super, rb_alloc_
VALUE klass;
va_list ar;
VALUE members;
- long i;
char *name;
members = rb_ary_new2(0);
va_start(ar, alloc);
- i = 0;
while ((name = va_arg(ar, char*)) != NULL) {
rb_ary_push(members, ID2SYM(rb_intern(name)));
}
@@ -285,9 +293,9 @@ rb_struct_define(const char *name, ...)
/*
* call-seq:
- * Struct.new( [aString] [, aSym]+> ) => StructClass
- * StructClass.new(arg, ...) => obj
- * StructClass[arg, ...] => obj
+ * Struct.new( [aString] [, aSym]+> ) -> StructClass
+ * StructClass.new(arg, ...) -> obj
+ * StructClass[arg, ...] -> obj
*
* Creates a new class, named by <i>aString</i>, containing accessor
* methods for the given symbols. If the name <i>aString</i> is
@@ -302,8 +310,8 @@ rb_struct_define(const char *name, ...)
* which can then be used to create specific instances of the new
* structure. The number of actual parameters must be
* less than or equal to the number of attributes defined for this
- * class; unset parameters default to \nil{}. Passing too many
- * parameters will raise an \E{ArgumentError}.
+ * class; unset parameters default to <code>nil</code>. Passing too many
+ * parameters will raise an <code>ArgumentError</code>.
*
* The remaining methods listed in this section (class and instance)
* are defined for this generated class.
@@ -342,7 +350,7 @@ rb_struct_s_def(int argc, VALUE *argv, VALUE klass)
return st;
}
-static size_t
+static long
num_members(VALUE klass)
{
VALUE members;
@@ -377,7 +385,7 @@ rb_struct_initialize_m(int argc, VALUE *argv, VALUE self)
VALUE
rb_struct_initialize(VALUE self, VALUE values)
{
- return rb_struct_initialize_m(RARRAY_LEN(values), RARRAY_PTR(values), self);
+ return rb_struct_initialize_m(RARRAY_LENINT(values), RARRAY_PTR(values), self);
}
static VALUE
@@ -406,18 +414,21 @@ struct_alloc(VALUE klass)
VALUE
rb_struct_alloc(VALUE klass, VALUE values)
{
- return rb_class_new_instance(RARRAY_LEN(values), RARRAY_PTR(values), klass);
+ return rb_class_new_instance(RARRAY_LENINT(values), RARRAY_PTR(values), klass);
}
VALUE
rb_struct_new(VALUE klass, ...)
{
- VALUE *mem;
- long size, i;
+ VALUE tmpargs[N_REF_FUNC], *mem = tmpargs;
+ int size, i;
va_list args;
- size = num_members(klass);
- mem = ALLOCA_N(VALUE, size);
+ size = rb_long2int(num_members(klass));
+ if (size > numberof(tmpargs)) {
+ tmpargs[0] = rb_ary_tmp_new(size);
+ mem = RARRAY_PTR(tmpargs[0]);
+ }
va_start(args, klass);
for (i=0; i<size; i++) {
mem[i] = va_arg(args, VALUE);
@@ -429,11 +440,14 @@ rb_struct_new(VALUE klass, ...)
/*
* call-seq:
- * struct.each {|obj| block } => struct
+ * struct.each {|obj| block } -> struct
+ * struct.each -> an_enumerator
*
* Calls <i>block</i> once for each instance variable, passing the
* value as a parameter.
*
+ * If no block is given, an enumerator is returned instead.
+ *
* Customer = Struct.new(:name, :address, :zip)
* joe = Customer.new("Joe Smith", "123 Maple, Anytown NC", 12345)
* joe.each {|x| puts(x) }
@@ -459,11 +473,14 @@ rb_struct_each(VALUE s)
/*
* call-seq:
- * struct.each_pair {|sym, obj| block } => struct
+ * struct.each_pair {|sym, obj| block } -> struct
+ * struct.each_pair -> an_enumerator
*
* Calls <i>block</i> once for each instance variable, passing the name
* (as a symbol) and the value as parameters.
*
+ * If no block is given, an enumerator is returned instead.
+ *
* Customer = Struct.new(:name, :address, :zip)
* joe = Customer.new("Joe Smith", "123 Maple, Anytown NC", 12345)
* joe.each_pair {|name, value| puts("#{name} => #{value}") }
@@ -492,29 +509,34 @@ rb_struct_each_pair(VALUE s)
static VALUE
inspect_struct(VALUE s, VALUE dummy, int recur)
{
- const char *cname = rb_class2name(rb_obj_class(s));
- VALUE str, members;
- long i;
+ VALUE cname = rb_class_name(rb_obj_class(s));
+ VALUE members, str = rb_str_new2("#<struct ");
+ VALUE *ptr, *ptr_members;
+ long i, len;
+ char first = RSTRING_PTR(cname)[0];
+ if (recur || first != '#') {
+ rb_str_append(str, cname);
+ }
if (recur) {
- return rb_sprintf("#<struct %s:...>", cname);
+ return rb_str_cat2(str, ":...>");
}
members = rb_struct_members(s);
- if (cname[0] == '#') {
- str = rb_str_new2("#<struct ");
- }
- else {
- str = rb_sprintf("#<struct %s ", cname);
- }
- for (i=0; i<RSTRUCT_LEN(s); i++) {
+ ptr_members = RARRAY_PTR(members);
+ ptr = RSTRUCT_PTR(s);
+ len = RSTRUCT_LEN(s);
+ for (i=0; i<len; i++) {
VALUE slot;
ID id;
if (i > 0) {
rb_str_cat2(str, ", ");
}
- slot = RARRAY_PTR(members)[i];
+ else if (first != '#') {
+ rb_str_cat2(str, " ");
+ }
+ slot = ptr_members[i];
id = SYM2ID(slot);
if (rb_is_local_id(id) || rb_is_const_id(id)) {
rb_str_append(str, rb_id2str(id));
@@ -523,7 +545,7 @@ inspect_struct(VALUE s, VALUE dummy, int recur)
rb_str_append(str, rb_inspect(slot));
}
rb_str_cat2(str, "=");
- rb_str_append(str, rb_inspect(RSTRUCT_PTR(s)[i]));
+ rb_str_append(str, rb_inspect(ptr[i]));
}
rb_str_cat2(str, ">");
OBJ_INFECT(str, s);
@@ -533,8 +555,8 @@ inspect_struct(VALUE s, VALUE dummy, int recur)
/*
* call-seq:
- * struct.to_s => string
- * struct.inspect => string
+ * struct.to_s -> string
+ * struct.inspect -> string
*
* Describe the contents of this struct in a string.
*/
@@ -547,8 +569,8 @@ rb_struct_inspect(VALUE s)
/*
* call-seq:
- * struct.to_a => array
- * struct.values => array
+ * struct.to_a -> array
+ * struct.values -> array
*
* Returns the values for this instance as an array.
*
@@ -583,14 +605,16 @@ rb_struct_init_copy(VALUE copy, VALUE s)
static VALUE
rb_struct_aref_id(VALUE s, ID id)
{
- VALUE members;
+ VALUE *ptr, members, *ptr_members;
long i, len;
+ ptr = RSTRUCT_PTR(s);
members = rb_struct_members(s);
+ ptr_members = RARRAY_PTR(members);
len = RARRAY_LEN(members);
for (i=0; i<len; i++) {
- if (SYM2ID(RARRAY_PTR(members)[i]) == id) {
- return RSTRUCT_PTR(s)[i];
+ if (SYM2ID(ptr_members[i]) == id) {
+ return ptr[i];
}
}
rb_name_error(id, "no member '%s' in struct", rb_id2name(id));
@@ -599,8 +623,8 @@ rb_struct_aref_id(VALUE s, ID id)
/*
* call-seq:
- * struct[symbol] => anObject
- * struct[fixnum] => anObject
+ * struct[symbol] -> anObject
+ * struct[fixnum] -> anObject
*
* Attribute Reference---Returns the value of the instance variable
* named by <i>symbol</i>, or indexed (0..length-1) by
@@ -639,19 +663,21 @@ rb_struct_aref(VALUE s, VALUE idx)
static VALUE
rb_struct_aset_id(VALUE s, ID id, VALUE val)
{
- VALUE members;
+ VALUE members, *ptr, *ptr_members;
long i, len;
members = rb_struct_members(s);
- rb_struct_modify(s);
len = RARRAY_LEN(members);
- if (RSTRUCT_LEN(s) != RARRAY_LEN(members)) {
+ rb_struct_modify(s);
+ if (RSTRUCT_LEN(s) != len) {
rb_raise(rb_eTypeError, "struct size differs (%ld required %ld given)",
- RARRAY_LEN(members), RSTRUCT_LEN(s));
+ len, RSTRUCT_LEN(s));
}
+ ptr = RSTRUCT_PTR(s);
+ ptr_members = RARRAY_PTR(members);
for (i=0; i<len; i++) {
- if (SYM2ID(RARRAY_PTR(members)[i]) == id) {
- RSTRUCT_PTR(s)[i] = val;
+ if (SYM2ID(ptr_members[i]) == id) {
+ ptr[i] = val;
return val;
}
}
@@ -660,8 +686,8 @@ rb_struct_aset_id(VALUE s, ID id, VALUE val)
/*
* call-seq:
- * struct[symbol] = obj => obj
- * struct[fixnum] = obj => obj
+ * struct[symbol] = obj -> obj
+ * struct[fixnum] = obj -> obj
*
* Attribute Assignment---Assigns to the instance variable named by
* <i>symbol</i> or <i>fixnum</i> the value <i>obj</i> and
@@ -710,10 +736,10 @@ struct_entry(VALUE s, long n)
/*
* call-seq:
- * struct.values_at(selector,... ) => an_array
+ * struct.values_at(selector,... ) -> an_array
*
* Returns an array containing the elements in
- * _self_ corresponding to the given selector(s). The selectors
+ * +self+ corresponding to the given selector(s). The selectors
* may be either integer indices or ranges.
* See also </code>.select<code>.
*
@@ -732,7 +758,8 @@ rb_struct_values_at(int argc, VALUE *argv, VALUE s)
/*
* call-seq:
- * struct.select {|i| block } => array
+ * struct.select {|i| block } -> array
+ * struct.select -> an_enumerator
*
* Invokes the block passing in successive elements from
* <i>struct</i>, returning an array containing those elements
@@ -753,6 +780,7 @@ rb_struct_select(int argc, VALUE *argv, VALUE s)
if (argc > 0) {
rb_raise(rb_eArgError, "wrong number of arguments (%d for 0)", argc);
}
+ RETURN_ENUMERATOR(s, 0, 0);
result = rb_ary_new();
for (i = 0; i < RSTRUCT_LEN(s); i++) {
if (RTEST(rb_yield(RSTRUCT_PTR(s)[i]))) {
@@ -763,9 +791,25 @@ rb_struct_select(int argc, VALUE *argv, VALUE s)
return result;
}
+static VALUE
+recursive_equal(VALUE s, VALUE s2, int recur)
+{
+ VALUE *ptr, *ptr2;
+ long i, len;
+
+ if (recur) return Qtrue; /* Subtle! */
+ ptr = RSTRUCT_PTR(s);
+ ptr2 = RSTRUCT_PTR(s2);
+ len = RSTRUCT_LEN(s);
+ for (i=0; i<len; i++) {
+ if (!rb_equal(ptr[i], ptr2[i])) return Qfalse;
+ }
+ return Qtrue;
+}
+
/*
* call-seq:
- * struct == other_struct => true or false
+ * struct == other_struct -> true or false
*
* Equality---Returns <code>true</code> if <i>other_struct</i> is
* equal to this one: they must be of the same class as generated by
@@ -783,8 +827,6 @@ rb_struct_select(int argc, VALUE *argv, VALUE s)
static VALUE
rb_struct_equal(VALUE s, VALUE s2)
{
- long i;
-
if (s == s2) return Qtrue;
if (TYPE(s2) != T_STRUCT) return Qfalse;
if (rb_obj_class(s) != rb_obj_class(s2)) return Qfalse;
@@ -792,15 +834,32 @@ rb_struct_equal(VALUE s, VALUE s2)
rb_bug("inconsistent struct"); /* should never happen */
}
- for (i=0; i<RSTRUCT_LEN(s); i++) {
- if (!rb_equal(RSTRUCT_PTR(s)[i], RSTRUCT_PTR(s2)[i])) return Qfalse;
+ return rb_exec_recursive_paired(recursive_equal, s, s2, s2);
+}
+
+static VALUE
+recursive_hash(VALUE s, VALUE dummy, int recur)
+{
+ long i, len;
+ st_index_t h;
+ VALUE n, *ptr;
+
+ h = rb_hash_start(rb_hash(rb_obj_class(s)));
+ if (!recur) {
+ ptr = RSTRUCT_PTR(s);
+ len = RSTRUCT_LEN(s);
+ for (i = 0; i < len; i++) {
+ n = rb_hash(ptr[i]);
+ h = rb_hash_uint(h, NUM2LONG(n));
+ }
}
- return Qtrue;
+ h = rb_hash_end(h);
+ return INT2FIX(h);
}
/*
* call-seq:
- * struct.hash => fixnum
+ * struct.hash -> fixnum
*
* Return a hash value based on this struct's contents.
*/
@@ -808,22 +867,28 @@ rb_struct_equal(VALUE s, VALUE s2)
static VALUE
rb_struct_hash(VALUE s)
{
- long i;
- unsigned h;
- VALUE n;
+ return rb_exec_recursive_outer(recursive_hash, s, 0);
+}
- h = rb_hash_start(rb_hash(rb_obj_class(s)));
- for (i = 0; i < RSTRUCT_LEN(s); i++) {
- n = rb_hash(RSTRUCT_PTR(s)[i]);
- h = rb_hash_uint(h, NUM2LONG(n));
+static VALUE
+recursive_eql(VALUE s, VALUE s2, int recur)
+{
+ VALUE *ptr, *ptr2;
+ long i, len;
+
+ if (recur) return Qtrue; /* Subtle! */
+ ptr = RSTRUCT_PTR(s);
+ ptr2 = RSTRUCT_PTR(s2);
+ len = RSTRUCT_LEN(s);
+ for (i=0; i<len; i++) {
+ if (!rb_eql(ptr[i], ptr2[i])) return Qfalse;
}
- h = rb_hash_end(h);
- return INT2FIX(h);
+ return Qtrue;
}
/*
* code-seq:
- * struct.eql?(other) => true or false
+ * struct.eql?(other) -> true or false
*
* Two structures are equal if they are the same object, or if all their
* fields are equal (using <code>eql?</code>).
@@ -832,8 +897,6 @@ rb_struct_hash(VALUE s)
static VALUE
rb_struct_eql(VALUE s, VALUE s2)
{
- long i;
-
if (s == s2) return Qtrue;
if (TYPE(s2) != T_STRUCT) return Qfalse;
if (rb_obj_class(s) != rb_obj_class(s2)) return Qfalse;
@@ -841,16 +904,13 @@ rb_struct_eql(VALUE s, VALUE s2)
rb_bug("inconsistent struct"); /* should never happen */
}
- for (i=0; i<RSTRUCT_LEN(s); i++) {
- if (!rb_eql(RSTRUCT_PTR(s)[i], RSTRUCT_PTR(s2)[i])) return Qfalse;
- }
- return Qtrue;
+ return rb_exec_recursive_paired(recursive_eql, s, s2, s2);
}
/*
* call-seq:
- * struct.length => fixnum
- * struct.size => fixnum
+ * struct.length -> fixnum
+ * struct.size -> fixnum
*
* Returns the number of instance variables.
*
@@ -896,8 +956,8 @@ Init_Struct(void)
rb_define_method(rb_cStruct, "eql?", rb_struct_eql, 1);
rb_define_method(rb_cStruct, "hash", rb_struct_hash, 0);
- rb_define_method(rb_cStruct, "to_s", rb_struct_inspect, 0);
rb_define_method(rb_cStruct, "inspect", rb_struct_inspect, 0);
+ rb_define_alias(rb_cStruct, "to_s", "inspect");
rb_define_method(rb_cStruct, "to_a", rb_struct_to_a, 0);
rb_define_method(rb_cStruct, "values", rb_struct_to_a, 0);
rb_define_method(rb_cStruct, "size", rb_struct_size, 0);
diff --git a/symbian/README.SYMBIAN b/symbian/README.SYMBIAN
index 03c1f0b234..5b500e3234 100644
--- a/symbian/README.SYMBIAN
+++ b/symbian/README.SYMBIAN
@@ -4,72 +4,62 @@
== Requirement
-(1) Nokia S60 SDK version 3.1 or later from http://www.forum.nokia.com/Resources_and_Information/Tools/Platforms/S60_Platform_SDKs/ with OpenC plugin installed.
+(1) Nokia S60 SDK version 3.2 or later from http://www.forum.nokia.com/Resources_and_Information/Tools/Platforms/S60_Platform_SDKs/ with the latest OpenC plugin installed.
Note: if you want to build dynamic extensions support you need to install the latest version of GCC compiler from http://www.codesourcery.com/gnu_toolchains/arm/portal/release643. After that you need to apply a patch below to a header file (SDK_ROOT)\epoc32\include\gcce\gcce.h
-11c11
-<
----
-> @released
-18a19
->
-21a23
->
-24a27,29
-> #define IMPORT_D __declspec(dllimport)
-> #define EXPORT_D __declspec(dllexport)
->
-81,82c86,87
-< #define __NAKED__ __asm
-< #define ____ONLY_USE_NAKED_IN_CIA____ __asm
----
-> #define __NAKED__ __declspec(naked)
-> #define ____ONLY_USE_NAKED_IN_CIA____ __declspec(naked)
-92,96c97,98
-< namespace std {
-< extern "C" {
-< #endif /* __cplusplus */
-<
-< typedef struct __va_list { void *__ap; } va_list;
----
-> namespace std { extern "C" {
-> #endif
-97a100,104
-> #if __GNUC__ < 4
-> typedef struct __va_list { void *__ap; } va_list;
-> #else
-> typedef __builtin_va_list va_list;
-> #endif
-100,102c107
-< } /* extern "C" */
-< } /* namespace std */
-<
----
-> } }
-105a111
-> #if __GNUC__ < 4
-107,109c113,119
-< #define va_arg(ap, type) __builtin_va_arg(ap.__ap, type)
-< #define va_end(ap) __builtin_va_end(ap.__ap)
-<
----
-> #define va_arg(ap, type) __builtin_va_arg(ap.__ap, type)
-> #define va_end(ap) __builtin_va_end(ap.__ap)
-> #else
-> #define va_start(ap, parmN) __builtin_va_start(ap, parmN)
-> #define va_arg(ap, type) __builtin_va_arg(ap, type)
-> #define va_end(ap) __builtin_va_end(ap)
-> #endif
-140,141c150,152
-< // Deal with operator new issues here
-< #include "../symcpp.h"
----
-> #ifndef __SYMBIAN_STDCPP_SUPPORT__
-> #include "../symcpp.h"
-> #endif
-151a163
->
+===================================================================
+--- Epoc32/include/gcce/gcce.h
++++ Epoc32/include/gcce/gcce.h
+@@ -22,4 +22,6 @@
+ #define IMPORT_C __declspec(dllimport)
+ #define EXPORT_C __declspec(dllexport)
++#define IMPORT_D __declspec(dllimport)
++#define EXPORT_D __declspec(dllexport)
+
+
+@@ -79,6 +81,6 @@
+
+ // __NAKED__ from cpudefs.h
+-#define __NAKED__ __asm
+-#define ____ONLY_USE_NAKED_IN_CIA____ __asm
++#define __NAKED__ __declspec(naked)
++#define ____ONLY_USE_NAKED_IN_CIA____ __declspec(naked)
+
+ // Int64 and Uint64 from nkern\nklib.h
+@@ -94,5 +96,9 @@
+ #endif /* __cplusplus */
+
++#if __GNUC__ < 4
+ typedef struct __va_list { void *__ap; } va_list;
++#else
++typedef __builtin_va_list va_list;
++#endif
+
+
+@@ -104,7 +110,13 @@
+ #endif
+
++#if __GNUC__ < 4
+ #define va_start(ap, parmN) __builtin_va_start(ap.__ap, parmN)
+ #define va_arg(ap, type) __builtin_va_arg(ap.__ap, type)
+ #define va_end(ap) __builtin_va_end(ap.__ap)
++#else
++#define va_start(ap, parmN) __builtin_va_start(ap, parmN)
++#define va_arg(ap, type) __builtin_va_arg(ap, type)
++#define va_end(ap) __builtin_va_end(ap)
++#endif
+
+
+@@ -139,5 +151,7 @@
+
+ // Deal with operator new issues here
++#ifndef __SYMBIAN_STDCPP_SUPPORT__
+ #include "..\symcpp.h"
++#endif
+
+ #ifdef __cplusplus
+===================================================================
(2) If you want to build from SVN source, following command line binaries are required that are not a part of Symbain SDK.
@@ -88,13 +78,16 @@
'abld freeze gcce ruby'
'abld build gcce urel'
-(3) Run `makesis ruby.pkg' from symbian\sis directory
+(3) Run 'makesis ruby.pkg' from symbian\sis directory
This command will create unsigned installation file ruby.sis. To sign it follow the guidlines from www.symbiansigned.com
+(4) In case dynamic extensions support was enabled repeat (3) for ruby_core_ext.pkg
+
== Known problems
Currently gems are not supported.
-Currently signals are not supported.
+Currently signals are supported with reduced functionality (see OpenC release notes.)
+Dynamic extensions could be installed only on internal drive "C".
=end
diff --git a/symbian/configure.bat b/symbian/configure.bat
index 22b03acee3..58a83a35fc 100644
--- a/symbian/configure.bat
+++ b/symbian/configure.bat
@@ -65,11 +65,12 @@ echo>> ~ver~.mak CPP = $(CC) -E
if "%srcdir%" == "" echo>> ~ver~.mak srcdir=..
echo>> ~ver~.mak all:
echo>> ~ver~.mak ^ @echo^> ~tmp~.c #define RUBY_REVISION 0
+echo>> ~ver~.mak ^ @echo^>^> ~tmp~.c #define RUBY_LIB_VERSION_STYLE 3
echo>> ~ver~.mak ^ @echo^>^> ~tmp~.c #include "version.h"
-echo>> ~ver~.mak ^ @echo^>^> ~tmp~.c MAJOR = RUBY_VERSION_MAJOR
-echo>> ~ver~.mak ^ @echo^>^> ~tmp~.c MINOR = RUBY_VERSION_MINOR
-echo>> ~ver~.mak ^ @echo^>^> ~tmp~.c TEENY = RUBY_VERSION_TEENY
-echo>> ~ver~.mak ^ @$(CPP) -I$(srcdir) ~tmp~.c ^| find "=" ^>^>~tmp~.mak
+echo>> ~ver~.mak ^ @echo^>^> ~tmp~.c MAJOR = RUBY_API_VERSION_MAJOR
+echo>> ~ver~.mak ^ @echo^>^> ~tmp~.c MINOR = RUBY_API_VERSION_MINOR
+echo>> ~ver~.mak ^ @echo^>^> ~tmp~.c TEENY = RUBY_API_VERSION_TEENY
+echo>> ~ver~.mak ^ @$(CPP) -I$(srcdir) -I$(srcdir)\include ~tmp~.c ^| find "=" ^>^>~tmp~.mak
echo>> ~ver~.mak ^ @del /Q ~tmp~.c
make -f ~ver~.mak
@@ -104,9 +105,10 @@ echo>> ~tmp~.mak endif
echo>> ~tmp~.mak ^ @if not exist sis\nul md sis
echo>> ~tmp~.mak ^ $(call ruby_pkg,sis\ruby.pkg)
echo>> ~tmp~.mak ifndef EXTSTATIC
-echo>> ~tmp~.mak ^ $(call ext_bigdecimal,sis\ruby.pkg)
-echo>> ~tmp~.mak ^ $(call ext_pkg,sis\ruby.pkg,stringio)
-echo>> ~tmp~.mak ^ $(call ext_pkg,sis\ruby.pkg,zlib)
+echo>> ~tmp~.mak ^ $(call core_ext_pkg,sis\ruby_core_ext.pkg)
+echo>> ~tmp~.mak ^ $(call ext_bigdecimal,sis\ruby_core_ext.pkg)
+echo>> ~tmp~.mak ^ $(call ext_pkg,sis\ruby_core_ext.pkg,stringio)
+echo>> ~tmp~.mak ^ $(call ext_pkg,sis\ruby_core_ext.pkg,zlib)
echo>> ~tmp~.mak ^ @if not exist eabi\nul md eabi
echo>> ~tmp~.mak ^ $(call ext_def,eabi\,stringio)
echo>> ~tmp~.mak ^ $(call ext_def,eabi\,bigdecimal)
diff --git a/symbian/missing-pips.c b/symbian/missing-pips.c
index ed0d90de8b..c5649fb45a 100644
--- a/symbian/missing-pips.c
+++ b/symbian/missing-pips.c
@@ -8,41 +8,12 @@ char **environ = 0;
typedef void (*sighandler_t)(int);
sighandler_t signal(int signum, sighandler_t handler);
-int sigfillset(sigset_t *set);
-int sigdelset(sigset_t *set, int signum);
-int sigprocmask(int how, const sigset_t *set, sigset_t *oldset);
-int raise(int sig);
int kill(pid_t pid, int sig);
int pthread_sigmask(int how, const sigset_t *set, sigset_t *oset);
int execl(const char *path, const char *arg0, ... /*, (char *)0 */);
int execv(const char *path, char *const argv[]);
int pthread_kill(pthread_t thread, int sig);
-sighandler_t signal(int signum, sighandler_t handler)
-{
- return (sighandler_t)0;
-}
-
-int sigfillset(sigset_t *set)
-{
- return 0;
-}
-
-int sigdelset(sigset_t *set, int signum)
-{
- return 0;
-}
-
-int sigprocmask(int how, const sigset_t *set, sigset_t *oldset)
-{
- return 0;
-}
-
-int raise(int sig)
-{
- return 0;
-}
-
int kill(pid_t pid, int sig)
{
return 0;
@@ -69,18 +40,6 @@ int pthread_kill(pthread_t thread, int sig)
}
-int sigmask(int signum) {
- return -1;
-}
-
-int sigblock(int mask) {
- return -1;
-}
-
-int sigsetmask(int mask) {
- return -1;
-}
-
sighandler_t posix_signal(int signum, sighandler_t handler)
{
return signal((signum),(handler));
diff --git a/symbian/pre-build b/symbian/pre-build
index 16a2248a5a..e118f793e0 100644
--- a/symbian/pre-build
+++ b/symbian/pre-build
@@ -36,6 +36,9 @@ vmtc.inc: $(srcdir)/template/vmtc.inc.tmpl
vm.inc: $(srcdir)/template/vm.inc.tmpl
+$(srcdir)/id.h: parse.h $(srcdir)/tool/generic_erb.rb $(srcdir)/template/id.h.tmpl
+ $(BASERUBY) $(srcdir)/tool/generic_erb.rb --output=$@ $(srcdir)/template/id.h.tmpl parse.h
+
node_name.inc: $(srcdir)/node.h
$(BASERUBY) -n $(srcdir)/tool/node_name.rb $? > $@
@@ -61,6 +64,8 @@ $(srcdir)/revision.h: $(srcdir)/version.h $(srcdir)/ChangeLog
incs: $(srcdir)/revision.h $(INSNS) node_name.inc known_errors.inc
+ids: $(srcdir)/id.h
+
srcs: parse.c newline.c lex.c miniprelude.c
lex.c: $(srcdir)\lex.c.blt
@@ -68,11 +73,11 @@ lex.c: $(srcdir)\lex.c.blt
socket_const: $(srcdir)/ext/socket/constants.h
-MAKMAKE: incs srcs socket_const
+MAKMAKE: incs srcs ids socket_const
CLEAN :
del $(INSNS) node_name.inc known_errors.inc
- $(RM) parse.c parse.h newline.c lex.c miniprelude.c
+ $(RM) parse.c parse.h newline.c lex.c miniprelude.c $(srcdir)\revision.h $(srcdir)\id.h
BLD LIB CLEANLIB RESOURCE FREEZE SAVESPACE RELEASABLES FINAL :
diff --git a/symbian/setup b/symbian/setup
index 52738ef76a..74ff21c16a 100644
--- a/symbian/setup
+++ b/symbian/setup
@@ -75,10 +75,23 @@ define config_h
@echo>>$(1) #define HAVE_ST_BLOCKS 1
@echo>>$(1) #define HAVE_STRUCT_STAT_ST_RDEV 1
@echo>>$(1) #define HAVE_ST_RDEV 1
+@echo>>$(1) #define HAVE_INT8_T 1
+@echo>>$(1) #define HAVE_UINT8_T 1
+@echo>>$(1) #define SIZEOF_INT8_T 1
+@echo>>$(1) #define HAVE_INT16_T 1
+@echo>>$(1) #define HAVE_UINT16_T 1
+@echo>>$(1) #define SIZEOF_INT16_T 2
+@echo>>$(1) #define HAVE_INT32_T 1
+@echo>>$(1) #define HAVE_UINT32_T 1
+@echo>>$(1) #define SIZEOF_INT32_T 4
+@echo>>$(1) #define HAVE_INT64_T 1
+@echo>>$(1) #define HAVE_UINT64_T 1
+@echo>>$(1) #define SIZEOF_INT64_T 8
@echo>>$(1) #define HAVE_STRUCT_STAT_ST_ATIMESPEC 1
@echo>>$(1) #define HAVE_STRUCT_STAT_ST_MTIMESPEC 1
@echo>>$(1) #define HAVE_STRUCT_STAT_ST_CTIMESPEC 1
@echo>>$(1) #define HAVE_STRUCT_TIMESPEC 1
+@echo>>$(1) #define HAVE_STRUCT_TIMEZONE 1
@echo>>$(1) #define HAVE_RB_FD_INIT 1
@echo>>$(1) #define GETGROUPS_T gid_t
@echo>>$(1) #define RETSIGTYPE void
@@ -143,6 +156,7 @@ define config_h
@echo>>$(1) #define HAVE_SETGID 1
@echo>>$(1) #define HAVE_SETENV 1
@echo>>$(1) #define HAVE_UNSETENV 1
+@echo>>$(1) #define VOID_UNSETENV 1
@echo>>$(1) #define HAVE_MKTIME 1
@echo>>$(1) #define HAVE_CLOCK_GETTIME 1
@echo>>$(1) #define HAVE_GETTIMEOFDAY 1
@@ -164,20 +178,20 @@ define config_h
@echo>>$(1) #define _THREAD_SAFE 1
@echo>>$(1) #define HAVE_LIBPTHREAD 1
@echo>>$(1) #define HAVE_NANOSLEEP 1
+@echo>>$(1) #define HAVE_LABS 1
+@echo>>$(1) #define HAVE_LLABS 1
@echo>>$(1) #define USE_ELF 1
@echo>>$(1) #define MANGLED_PATH 1
@echo>>$(1) #define DLEXT_MAXLEN 4
@echo>>$(1) #define DLEXT ".dll"
-@echo>>$(1) #define DLN_NEEDS_ALT_SEPARATOR 1
-@echo>>$(1) #define RUBY_LIB "C:/Data/Ruby/lib/$(MAJOR).$(MINOR).$(TEENY)"
+@echo>>$(1) #define EXECUTABLE_EXTS ".exe",".com",".cmd",".bat"
+@echo>>$(1) #define RUBY_EXEC_PREFIX ""
+@echo>>$(1) #define DLN_NEEDS_ALT_SEPARATOR '\\'
+@echo>>$(1) #define RUBY_LIB_VERSION_STYLE 3
+@echo>>$(1) #define RUBY_LIB_PREFIX "C:/Data/Ruby/lib"
@echo>>$(1) #define RUBY_SITE_LIB "E:/Data/Ruby/lib"
-@echo>>$(1) #define RUBY_SITE_LIB2 "E:/Data/Ruby/lib/$(MAJOR).$(MINOR).$(TEENY)"
-@echo>>$(1) #define RUBY_VENDOR_LIB "C:/Data/Ruby/lib"
-@echo>>$(1) #define RUBY_VENDOR_LIB2 "C:/Data/Ruby/lib/$(MAJOR).$(MINOR).$(TEENY)"
+@echo>>$(1) #define RUBY_VENDOR_LIB "F:/Data/Ruby/lib"
@echo>>$(1) #define RUBY_PLATFORM "$(arch)"
-@echo>>$(1) #define RUBY_ARCHLIB "C:/Data/Ruby/$(MAJOR).$(MINOR).$(TEENY)/$(arch)"
-@echo>>$(1) #define RUBY_SITE_ARCHLIB "E:/Data/Ruby/lib/$(MAJOR).$(MINOR).$(TEENY)/$(arch)"
-@echo>>$(1) #define RUBY_VENDOR_ARCHLIB "C:/Data/Ruby/lib/$(MAJOR).$(MINOR).$(TEENY)/$(arch)"
endef
define pre_build_mk
@@ -211,6 +225,8 @@ define ruby_mmp
@echo>>$(1) SECUREID $(RUBY_UID)
@echo>>$(1) CAPABILITY LocalServices NetworkServices ReadUserData UserEnvironment WriteUserData
+@echo>>$(1) MACRO RUBY_EXPORT
+
@echo>>$(1) USERINCLUDE ..\$(subst /,\,$(arch_hdrdir))
@echo>>$(1) USERINCLUDE ..
@@ -232,7 +248,6 @@ define ruby_mmp
@echo>>$(1) SOURCEPATH ..\$(subst /,\,$(srcdir))
@echo>>$(1) SOURCE array.c
@echo>>$(1) SOURCE bignum.c
-@echo>>$(1) SOURCE blockinlining.c
@echo>>$(1) SOURCE class.c
@echo>>$(1) SOURCE compar.c
@echo>>$(1) SOURCE compile.c
@@ -240,6 +255,7 @@ define ruby_mmp
@echo>>$(1) SOURCE debug.c
@echo>>$(1) SOURCE dir.c
@echo>>$(1) SOURCE $(DLN).c
+@echo>>$(1) SOURCE dln_find.c
@echo>>$(1) SOURCE dmyext.c
@echo>>$(1) SOURCE encoding.c
@echo>>$(1) SOURCE enum.c
@@ -256,6 +272,7 @@ define ruby_mmp
@echo>>$(1) SOURCE main.c
@echo>>$(1) SOURCE marshal.c
@echo>>$(1) SOURCE math.c
+@echo>>$(1) SOURCE node.c
@echo>>$(1) SOURCE numeric.c
@echo>>$(1) SOURCE object.c
@echo>>$(1) SOURCE pack.c
@@ -326,6 +343,7 @@ endef
define ext_mmp
@echo>$(1)$(2).mmp TARGET $(2).dll
@echo>>$(1)$(2).mmp TARGETTYPE DLL
+@echo>>$(1)$(2).mmp EPOCALLOWDLLDATA
@echo>>$(1)$(2).mmp UID 0x10004262 $(3)
@echo>>$(1)$(2).mmp VENDORID 0
@echo>>$(1)$(2).mmp SECUREID $(3)
@@ -344,6 +362,7 @@ define ext_mmp
@echo>>$(1)$(2).mmp SYSTEMINCLUDE ..\$(subst /,\,$(srcdir))\missing
@echo>>$(1)$(2).mmp SYSTEMINCLUDE \epoc32\include\stdapis
+@echo>>$(1)$(2).mmp SYSTEMINCLUDE \epoc32\include
@echo>>$(1)$(2).mmp SOURCEPATH ..\$(subst /,\,$(srcdir))\ext\$(2)
@echo>>$(1)$(2).mmp SOURCE $(2).c $(4)
@@ -369,17 +388,30 @@ define ruby_pkg
@echo>>$(1) :"Symbian Research"
-@echo>>$(1) (0x20013851), 1, 3, 0, {"Symbian OS PIPS"}
+@echo>>$(1) (0x20013851), 1, 6, 0, {"Symbian OS PIPS"}
@echo>>$(1) [0x101F7961], 0, 0, 0, {"S60ProductID"}
@echo>>$(1) "$(EPOCROOT)epoc32\release\gcce\urel\Ruby.exe"-"!:\sys\bin\Ruby.exe"
endef
+define core_ext_pkg
+@echo>$(1) ^&EN
+
+@echo>>$(1) #{"Ruby Core Extensions"},($(STRINGIO_UID)),$(MAJOR),$(MINOR),$(TEENY)
+
+@echo>>$(1) %%{"Symbian Research"}
+
+@echo>>$(1) :"Symbian Research"
+
+@echo>>$(1) ($(RUBY_UID)), $(MAJOR),$(MINOR),$(TEENY), {"Symbian Ruby"}
+
+@echo>>$(1) [0x101F7961], 0, 0, 0, {"S60ProductID"}
+endef
define ext_pkg
@echo>>$(1) "$(EPOCROOT)epoc32\release\gcce\urel\$(2).dll"-"!:\sys\bin\$(2).dll"
-@echo>>$(1) "$(EPOCROOT)epoc32\release\gcce\urel\$(2).dll"-"!:\Data\Ruby\$(MAJOR).$(MINOR).$(TEENY)\$(arch)\$(2).dll"
+@echo>>$(1) "$(EPOCROOT)epoc32\release\gcce\urel\$(2).dll"-"!:\Data\Ruby\lib\$(MAJOR).$(MINOR).$(TEENY)\$(arch)\$(2).dll"
endef
define ext_bigdecimal
diff --git a/template/Doxyfile.tmpl b/template/Doxyfile.tmpl
index fd9fcc4d7f..2abf112863 100644
--- a/template/Doxyfile.tmpl
+++ b/template/Doxyfile.tmpl
@@ -7,16 +7,261 @@ opt = OptionParser.new do |o|
o.order!(ARGV)
end
srcdir ||= File.dirname(File.dirname(__FILE__))
+load 'rbconfig.rb'
unless miniruby
- load 'rbconfig.rb'
- miniruby = './miniruby$(EXEEXT) -I$(srcdir)/lib -I$(EXTOUT)/common -I./- -r$(srcdir)/ext/purelib.rb'
+ miniruby = './miniruby$(EXEEXT) -I$(srcdir)/lib -I$(EXTOUT)/common -I./-'
RbConfig.expand(miniruby, RbConfig::CONFIG.merge("srcdir"=>srcdir))
end
+dot = RbConfig::CONFIG['DOT'] || ""
+have_dot = dot.empty? ? "NO" : "YES"
%>
-@INCLUDE_PATH = <%=srcdir%>
-@INCLUDE = Doxyfile.in
-PROJECT_NUMBER = <%=RUBY_VERSION%>
+#---------------------------------------------------------------------------
+# Project related configuration options
+#---------------------------------------------------------------------------
+PROJECT_NAME = Ruby
+PROJECT_NUMBER = <%=RUBY_VERSION%><%= RUBY_PATCHLEVEL < 0 ? 'dev' : "p#{RUBY_PATCHLEVEL}" %> (<%=RUBY_RELEASE_DATE%> revision <%=RUBY_REVISION%>)
STRIP_FROM_PATH = <%=srcdir%>
FILE_VERSION_FILTER = "<%=miniruby%> <%=srcdir%>/tool/file2lastrev.rb -q"
-INPUT = <%=srcdir%>
+INPUT = <%=srcdir%> .
INPUT_FILTER = "<%=miniruby%> <%=srcdir%>/tool/strip-rdoc.rb"
+
+DOXYFILE_ENCODING = UTF-8
+OUTPUT_DIRECTORY = doc/capi
+CREATE_SUBDIRS = YES
+OUTPUT_LANGUAGE = English
+BRIEF_MEMBER_DESC = YES
+REPEAT_BRIEF = YES
+ABBREVIATE_BRIEF =
+ALWAYS_DETAILED_SEC = YES
+INLINE_INHERITED_MEMB = NO
+FULL_PATH_NAMES = YES
+STRIP_FROM_INC_PATH =
+SHORT_NAMES = NO
+JAVADOC_AUTOBRIEF = YES
+QT_AUTOBRIEF = YES
+MULTILINE_CPP_IS_BRIEF = NO
+INHERIT_DOCS = YES
+SEPARATE_MEMBER_PAGES = NO
+TAB_SIZE = 8
+ALIASES =
+OPTIMIZE_OUTPUT_FOR_C = YES
+OPTIMIZE_OUTPUT_JAVA = NO
+OPTIMIZE_FOR_FORTRAN = NO
+OPTIMIZE_OUTPUT_VHDL = NO
+BUILTIN_STL_SUPPORT = NO
+CPP_CLI_SUPPORT = NO
+SIP_SUPPORT = NO
+IDL_PROPERTY_SUPPORT = NO
+DISTRIBUTE_GROUP_DOC = NO
+SUBGROUPING = YES
+TYPEDEF_HIDES_STRUCT = NO
+SYMBOL_CACHE_SIZE = 0
+#---------------------------------------------------------------------------
+# Build related configuration options
+#---------------------------------------------------------------------------
+EXTRACT_ALL = YES
+EXTRACT_PRIVATE = NO
+EXTRACT_STATIC = YES
+EXTRACT_LOCAL_CLASSES = YES
+EXTRACT_LOCAL_METHODS = NO
+EXTRACT_ANON_NSPACES = NO
+HIDE_UNDOC_MEMBERS = NO
+HIDE_UNDOC_CLASSES = NO
+HIDE_FRIEND_COMPOUNDS = NO
+HIDE_IN_BODY_DOCS = YES
+INTERNAL_DOCS = YES
+CASE_SENSE_NAMES = NO
+HIDE_SCOPE_NAMES = NO
+SHOW_INCLUDE_FILES = YES
+INLINE_INFO = YES
+SORT_MEMBER_DOCS = YES
+SORT_BRIEF_DOCS = NO
+SORT_GROUP_NAMES = NO
+SORT_BY_SCOPE_NAME = NO
+GENERATE_TODOLIST = YES
+GENERATE_TESTLIST = YES
+GENERATE_BUGLIST = YES
+GENERATE_DEPRECATEDLIST= YES
+ENABLED_SECTIONS =
+MAX_INITIALIZER_LINES = 30
+SHOW_USED_FILES = YES
+SHOW_DIRECTORIES = NO
+SHOW_FILES = YES
+SHOW_NAMESPACES = YES
+LAYOUT_FILE =
+#---------------------------------------------------------------------------
+# configuration options related to warning and progress messages
+#---------------------------------------------------------------------------
+QUIET = NO
+WARNINGS = YES
+WARN_IF_UNDOCUMENTED = YES
+WARN_IF_DOC_ERROR = YES
+WARN_NO_PARAMDOC = NO
+WARN_FORMAT = "$file:$line: $text"
+WARN_LOGFILE =
+#---------------------------------------------------------------------------
+# configuration options related to the input files
+#---------------------------------------------------------------------------
+INPUT_ENCODING = UTF-8
+FILE_PATTERNS = *.c *.h *.y *.inc
+RECURSIVE = YES
+EXCLUDE =
+EXCLUDE_SYMLINKS = YES
+EXCLUDE_PATTERNS = *.src doc build tmp test yarvtest lib bootstraptest spec .ext .git .svn
+EXCLUDE_SYMBOLS =
+EXAMPLE_PATH =
+EXAMPLE_PATTERNS =
+EXAMPLE_RECURSIVE = NO
+IMAGE_PATH = <%= "#{srcdir}/doc/images" %>
+FILTER_PATTERNS =
+FILTER_SOURCE_FILES = YES
+#---------------------------------------------------------------------------
+# configuration options related to source browsing
+#---------------------------------------------------------------------------
+SOURCE_BROWSER = YES
+INLINE_SOURCES = NO
+STRIP_CODE_COMMENTS = YES
+REFERENCED_BY_RELATION = YES
+REFERENCES_RELATION = YES
+REFERENCES_LINK_SOURCE = YES
+USE_HTAGS = NO
+VERBATIM_HEADERS = YES
+#---------------------------------------------------------------------------
+# configuration options related to the alphabetical class index
+#---------------------------------------------------------------------------
+COLS_IN_ALPHA_INDEX = 5
+IGNORE_PREFIX =
+#---------------------------------------------------------------------------
+# configuration options related to the HTML output
+#---------------------------------------------------------------------------
+GENERATE_HTML = YES
+HTML_OUTPUT = html
+HTML_FILE_EXTENSION = .html
+HTML_HEADER =
+HTML_FOOTER =
+HTML_STYLESHEET =
+HTML_ALIGN_MEMBERS = YES
+HTML_DYNAMIC_SECTIONS = NO
+GENERATE_DOCSET = NO
+DOCSET_FEEDNAME = "Doxygen generated docs"
+DOCSET_BUNDLE_ID = org.doxygen.Project
+GENERATE_HTMLHELP = NO
+CHM_FILE =
+HHC_LOCATION =
+GENERATE_CHI = NO
+CHM_INDEX_ENCODING =
+BINARY_TOC = NO
+TOC_EXPAND = NO
+GENERATE_QHP = NO
+QCH_FILE =
+QHP_NAMESPACE = org.doxygen.Project
+QHP_VIRTUAL_FOLDER = doc
+QHG_LOCATION =
+DISABLE_INDEX = NO
+ENUM_VALUES_PER_LINE = 4
+GENERATE_TREEVIEW = NO
+TREEVIEW_WIDTH = 250
+FORMULA_FONTSIZE = 10
+#---------------------------------------------------------------------------
+# configuration options related to the LaTeX output
+#---------------------------------------------------------------------------
+GENERATE_LATEX = NO
+LATEX_OUTPUT = latex
+LATEX_CMD_NAME = latex
+MAKEINDEX_CMD_NAME = makeindex
+COMPACT_LATEX = NO
+PAPER_TYPE = a4wide
+EXTRA_PACKAGES =
+LATEX_HEADER =
+PDF_HYPERLINKS = YES
+USE_PDFLATEX = YES
+LATEX_BATCHMODE = NO
+LATEX_HIDE_INDICES = NO
+#---------------------------------------------------------------------------
+# configuration options related to the RTF output
+#---------------------------------------------------------------------------
+GENERATE_RTF = NO
+RTF_OUTPUT = rtf
+COMPACT_RTF = NO
+RTF_HYPERLINKS = NO
+RTF_STYLESHEET_FILE =
+RTF_EXTENSIONS_FILE =
+#---------------------------------------------------------------------------
+# configuration options related to the man page output
+#---------------------------------------------------------------------------
+GENERATE_MAN = NO
+MAN_OUTPUT = man
+MAN_EXTENSION = .3
+MAN_LINKS = NO
+#---------------------------------------------------------------------------
+# configuration options related to the XML output
+#---------------------------------------------------------------------------
+GENERATE_XML = NO
+XML_OUTPUT = xml
+XML_SCHEMA =
+XML_DTD =
+XML_PROGRAMLISTING = YES
+#---------------------------------------------------------------------------
+# configuration options for the AutoGen Definitions output
+#---------------------------------------------------------------------------
+GENERATE_AUTOGEN_DEF = NO
+#---------------------------------------------------------------------------
+# configuration options related to the Perl module output
+#---------------------------------------------------------------------------
+GENERATE_PERLMOD = NO
+PERLMOD_LATEX = NO
+PERLMOD_PRETTY = YES
+PERLMOD_MAKEVAR_PREFIX =
+#---------------------------------------------------------------------------
+# Configuration options related to the preprocessor
+#---------------------------------------------------------------------------
+ENABLE_PREPROCESSING = YES
+MACRO_EXPANSION = NO
+EXPAND_ONLY_PREDEF = NO
+SEARCH_INCLUDES = YES
+INCLUDE_PATH =
+INCLUDE_FILE_PATTERNS =
+PREDEFINED =
+EXPAND_AS_DEFINED =
+SKIP_FUNCTION_MACROS = YES
+#---------------------------------------------------------------------------
+# Configuration::additions related to external references
+#---------------------------------------------------------------------------
+TAGFILES =
+GENERATE_TAGFILE =
+ALLEXTERNALS = NO
+EXTERNAL_GROUPS = YES
+PERL_PATH = /usr/bin/perl
+#---------------------------------------------------------------------------
+# Configuration options related to the dot tool
+#---------------------------------------------------------------------------
+CLASS_DIAGRAMS = NO
+MSCGEN_PATH =
+HIDE_UNDOC_RELATIONS = YES
+HAVE_DOT = <%= have_dot %>
+DOT_FONTNAME = FreeSans
+DOT_FONTPATH =
+CLASS_GRAPH = NO
+COLLABORATION_GRAPH = NO
+GROUP_GRAPHS = YES
+UML_LOOK = NO
+TEMPLATE_RELATIONS = NO
+INCLUDE_GRAPH = YES
+INCLUDED_BY_GRAPH = YES
+CALL_GRAPH = NO
+CALLER_GRAPH = NO
+GRAPHICAL_HIERARCHY = NO
+DIRECTORY_GRAPH = NO
+DOT_IMAGE_FORMAT = png
+DOT_PATH =
+DOTFILE_DIRS =
+DOT_GRAPH_MAX_NODES = 50
+MAX_DOT_GRAPH_DEPTH = 0
+DOT_TRANSPARENT = NO
+DOT_MULTI_TARGETS = NO
+GENERATE_LEGEND = YES
+DOT_CLEANUP = YES
+#---------------------------------------------------------------------------
+# Configuration::additions related to the search engine
+#---------------------------------------------------------------------------
+SEARCHENGINE = NO
diff --git a/template/encdb.h.tmpl b/template/encdb.h.tmpl
index e65b651050..4275a4c2f0 100644
--- a/template/encdb.h.tmpl
+++ b/template/encdb.h.tmpl
@@ -34,11 +34,15 @@ encdirs.each do |encdir|
next if files[fn]
files[fn] = true
open(File.join(encdir,fn)) do |f|
- orig = nil
name = nil
f.each_line do |line|
if (/^OnigEncodingDefine/ =~ line)..(/"(.*?)"/ =~ line)
if $1
+ if name
+ lines << %[ENC_SET_BASE("#$1", "#{name}");]
+ else
+ name = $1
+ end
check_duplication(defs, $1, fn, $.)
encodings << $1
count += 1
diff --git a/template/fake.rb.in b/template/fake.rb.in
index ed9416a16f..7bfa0aef01 100644..100755
--- a/template/fake.rb.in
+++ b/template/fake.rb.in
@@ -1,11 +1,19 @@
+baseruby="@BASERUBY@"
+ruby="${RUBY-$baseruby}"
+"eval" "{" \
+"`expr \"$ruby\" : echo > /dev/null || echo exec`" \
+"$ruby" '-r"`expr \"$0\" : / > /dev/null || pwd`/${0#/}" "$@";' \
+"}" || "exit" "$?"
+ruby=ruby
class Object
+ remove_const :CROSS_COMPILING if defined?(CROSS_COMPILING)
CROSS_COMPILING = RUBY_PLATFORM
remove_const :RUBY_PLATFORM
remove_const :RUBY_VERSION
remove_const :RUBY_DESCRIPTION if defined?(RUBY_DESCRIPTION)
RUBY_PLATFORM = "@arch@"
- RUBY_VERSION = "@MAJOR@.@MINOR@.@TEENY@"
- RUBY_DESCRIPTION = "ruby #{RUBY_VERSION} (#{Time.now.strftime("%Y-%m-%d")}) [#{RUBY_PLATFORM}]"
+ RUBY_VERSION = "@RUBY_PROGRAM_VERSION@"
+ RUBY_DESCRIPTION = "ruby #{RUBY_VERSION} (@RUBY_RELEASE_DATE@) [#{RUBY_PLATFORM}]"
end
if RUBY_PLATFORM =~ /mswin|bccwin|mingw/
class File
@@ -13,3 +21,27 @@ if RUBY_PLATFORM =~ /mswin|bccwin|mingw/
ALT_SEPARATOR = "\\"
end
end
+
+$:.unshift(File.expand_path("..", __FILE__))
+posthook = proc do
+ mkconfig = RbConfig::MAKEFILE_CONFIG
+ extout = File.expand_path(mkconfig["EXTOUT"], mkconfig["builddir"])
+ $arch_hdrdir = "#{extout}/include/$(arch)"
+ $ruby = baseruby
+ untrace_var(:$ruby, posthook)
+end
+prehook = proc do |extmk|
+ unless extmk
+ config = RbConfig::CONFIG
+ mkconfig = RbConfig::MAKEFILE_CONFIG
+ builddir = File.expand_path(File.dirname(__FILE__))
+ mkconfig["top_srcdir"] = $top_srcdir = File.expand_path("@top_srcdir@", builddir)
+ mkconfig["rubyhdrdir"] = "$(top_srcdir)/include"
+ mkconfig["builddir"] = config["builddir"] = builddir
+ config["rubyhdrdir"] = File.join(mkconfig["top_srcdir"], "include")
+ mkconfig["libdir"] = config["libdir"] = mkconfig["topdir"]
+ trace_var(:$ruby, posthook)
+ end
+ untrace_var(:$extmk, prehook)
+end
+trace_var(:$extmk, prehook)
diff --git a/template/id.h.tmpl b/template/id.h.tmpl
index dd0afab27d..5ad91452ec 100644
--- a/template/id.h.tmpl
+++ b/template/id.h.tmpl
@@ -50,6 +50,8 @@ end
#include "parse.h"
#endif
+#include "vm_opts.h" /* for SUPPORT_JOKE */
+
#define symIFUNC ID2SYM(idIFUNC)
#define symCFUNC ID2SYM(idCFUNC)
@@ -63,6 +65,12 @@ enum ruby_method_ids {
<%=token%> = <%=value%>,
% end
#endif
+ idDot2 = tDOT2,
+ idDot3 = tDOT3,
+ idUPlus = tUPLUS,
+ idUMinus = tUMINUS,
+ idPow = tPOW,
+ idCmp = tCMP,
idPLUS = '+',
idMINUS = '-',
idMULT = '*',
@@ -79,12 +87,14 @@ enum ruby_method_ids {
idNot = '!',
idBackquote = '`',
idEqTilde = tMATCH,
+ idNeqTilde = tNMATCH,
idAREF = tAREF,
idASET = tASET,
idLAST_TOKEN = tLAST_TOKEN >> ID_SCOPE_SHIFT,
tIntern,
tMethodMissing,
tLength,
+ tSize,
tGets,
tSucc,
tEach,
@@ -92,6 +102,7 @@ enum ruby_method_ids {
tSend,
t__send__,
tInitialize,
+ tUScore,
#if SUPPORT_JOKE
tBitblt,
tAnswer,
@@ -105,19 +116,22 @@ enum ruby_method_ids {
TOKEN2ID(Intern),
TOKEN2ID(MethodMissing),
TOKEN2ID(Length),
+ TOKEN2ID(Size),
TOKEN2ID(Gets),
TOKEN2ID(Succ),
TOKEN2ID(Each),
TOKEN2ID(Lambda),
TOKEN2ID(Send),
TOKEN2ID(__send__),
- TOKEN2ID(Initialize)
+ TOKEN2ID(Initialize),
+ TOKEN2ID(UScore),
+ TOKEN2ID(LAST_ID)
};
#ifdef tLAST_TOKEN
struct ruby_method_ids_check {
#define ruby_method_id_check_for(name, value) \
- int checking_for_##name[name == value ? 1 : -1]
+ int checking_for_##name[name == (value) ? 1 : -1]
% tokens.map do |token, value|
ruby_method_id_check_for(<%=token%>, <%=value%>);
% end
diff --git a/template/insns_info.inc.tmpl b/template/insns_info.inc.tmpl
index d901c68257..99e4b7b5b3 100644
--- a/template/insns_info.inc.tmpl
+++ b/template/insns_info.inc.tmpl
@@ -45,29 +45,29 @@ insn_stack_increase(int depth, int insn, VALUE *opes)
/* some utilities */
static int
-insn_len(int insn)
+insn_len(VALUE insn)
{
- return insn_len_info[insn];
+ return insn_len_info[(int)insn];
}
static const char *
-insn_name(int insn)
+insn_name(VALUE insn)
{
- return insn_name_info[insn];
+ return insn_name_info[(int)insn];
}
static const char *
-insn_op_types(int insn)
+insn_op_types(VALUE insn)
{
- return insn_operand_info[insn];
+ return insn_operand_info[(int)insn];
}
static int
-insn_op_type(int insn, int pos)
+insn_op_type(VALUE insn, long pos)
{
int len = insn_len(insn) - 1;
if(pos < len){
- return insn_operand_info[insn][pos];
+ return insn_operand_info[(int)insn][pos];
}
else{
return 0;
@@ -76,8 +76,8 @@ insn_op_type(int insn, int pos)
#ifdef USE_INSN_RET_NUM
static int
-insn_ret_num(int insn)
+insn_ret_num(VALUE insn)
{
- return insn_stack_push_num_info[insn];
+ return insn_stack_push_num_info[(int)insn];
}
#endif
diff --git a/template/known_errors.inc.tmpl b/template/known_errors.inc.tmpl
index c62114464f..deb54e44d7 100644
--- a/template/known_errors.inc.tmpl
+++ b/template/known_errors.inc.tmpl
@@ -7,8 +7,8 @@
% error_names = ARGF.read.split(/\s+/)
% error_names.each do |name|
#ifdef <%=name%>
- set_syserr(<%=name%>, "<%=name%>");
+ defined_error("<%=name%>", <%=name%>)
#else
- set_syserr(0, "<%=name%>");
+ undefined_error("<%=name%>")
#endif
% end
diff --git a/template/ruby.pc.in b/template/ruby.pc.in
new file mode 100644
index 0000000000..2189667c5e
--- /dev/null
+++ b/template/ruby.pc.in
@@ -0,0 +1,37 @@
+arch=@arch@
+sitearch=@sitearch@
+prefix=@prefix@
+exec_prefix=@exec_prefix@
+bindir=@bindir@
+libdir=@libdir@
+includedir=@includedir@
+MAJOR=@MAJOR@
+MINOR=@MINOR@
+TEENY=@TEENY@
+ruby_version=@ruby_version@
+RUBY_PROGRAM_VERSION=@RUBY_PROGRAM_VERSION@
+RUBY_BASE_NAME=@RUBY_BASE_NAME@
+RUBY_SO_NAME=@RUBY_SO_NAME@
+RUBY_INSTALL_NAME=@RUBY_INSTALL_NAME@
+DEFFILE=@DEFFILE@
+LIBPATH=@LIBPATH@
+LIBRUBY_A=@LIBRUBY_A@
+LIBRUBY_SO=@LIBRUBY_SO@
+LIBRUBY=@LIBRUBY@
+LIBRUBYARG_SHARED=@LIBRUBYARG_SHARED@
+LIBRUBYARG_STATIC=@LIBRUBYARG_STATIC@
+LIBRUBYARG=@LIBRUBYARG@
+LIBS=@LIBS@
+DLDFLAGS=@DLDFLAGS@
+ruby=${bindir}/${RUBY_INSTALL_NAME}@EXEEXT@
+rubyhdrdir=@rubyhdrdir@
+vendorhdrdir=@vendorhdrdir@
+sitehdrdir=@sitehdrdir@
+
+Name: Ruby
+Description: Object Oriented Script Language
+Version: ${ruby_version}
+URL: http://www.ruby-lang.org
+Cflags: -I${rubyhdrdir}/${arch} -I${rubyhdrdir}
+Libs: ${DLDFLAGS} ${LIBRUBYARG_SHARED} ${LIBS}
+Requires:
diff --git a/test/-ext-/array/test_resize.rb b/test/-ext-/array/test_resize.rb
new file mode 100644
index 0000000000..8e526b5a0c
--- /dev/null
+++ b/test/-ext-/array/test_resize.rb
@@ -0,0 +1,29 @@
+require 'test/unit'
+require '-test-/array/resize'
+
+class TestArray < Test::Unit::TestCase
+ class TestResize < Test::Unit::TestCase
+ def test_expand
+ feature = '[ruby-dev:42912]'
+ ary = [*1..10]
+ ary.__resize__(10)
+ assert_equal(10, ary.size, feature)
+ assert_equal([*1..10], ary, feature)
+ ary.__resize__(100)
+ assert_equal(100, ary.size, feature)
+ assert_equal([*1..10]+[nil]*90, ary, feature)
+ ary.__resize__(20)
+ assert_equal(20, ary.size, feature)
+ assert_equal([*1..10]+[nil]*10, ary, feature)
+ ary.__resize__(2)
+ assert_equal(2, ary.size, feature)
+ assert_equal([1,2], ary, feature)
+ ary.__resize__(3)
+ assert_equal(3, ary.size, feature)
+ assert_equal([1,2,nil], ary, feature)
+ ary.__resize__(10)
+ assert_equal(10, ary.size, feature)
+ assert_equal([1,2]+[nil]*8, ary, feature)
+ end
+ end
+end
diff --git a/test/-ext-/funcall/test_passing_block.rb b/test/-ext-/funcall/test_passing_block.rb
new file mode 100644
index 0000000000..87aed2212c
--- /dev/null
+++ b/test/-ext-/funcall/test_passing_block.rb
@@ -0,0 +1,22 @@
+require 'test/unit'
+
+class TestFuncall < Test::Unit::TestCase
+ module Relay
+ def self.target(*args, &block)
+ yield(*args) if block
+ end
+ end
+ require '-test-/funcall/funcall'
+
+ def test_with_funcall2
+ ok = nil
+ Relay.with_funcall2("feature#4504") {|arg| ok = arg || true}
+ assert_nil(ok)
+ end
+
+ def test_with_funcall_passing_block
+ ok = nil
+ Relay.with_funcall_passing_block("feature#4504") {|arg| ok = arg || true}
+ assert_equal("feature#4504", ok)
+ end
+end
diff --git a/test/-ext-/load/test_dot_dot.rb b/test/-ext-/load/test_dot_dot.rb
new file mode 100644
index 0000000000..82aa10a95f
--- /dev/null
+++ b/test/-ext-/load/test_dot_dot.rb
@@ -0,0 +1,10 @@
+require 'test/unit'
+
+class Test_DotDot < Test::Unit::TestCase
+ def test_load_dot_dot
+ feature = '[ruby-dev:41774]'
+ assert_nothing_raised(LoadError, feature) {
+ require '-test-/load/dot.dot/dot.dot'
+ }
+ end
+end
diff --git a/test/-ext-/old_thread_select/test_old_thread_select.rb b/test/-ext-/old_thread_select/test_old_thread_select.rb
new file mode 100644
index 0000000000..5653dbc021
--- /dev/null
+++ b/test/-ext-/old_thread_select/test_old_thread_select.rb
@@ -0,0 +1,99 @@
+require 'test/unit'
+
+class TestOldThreadSelect < Test::Unit::TestCase
+ require '-test-/old_thread_select/old_thread_select'
+
+ ANCIENT_LINUX = RUBY_PLATFORM =~ /linux/ && `uname -r`.chomp < '2.6.32'
+
+ def with_pipe
+ r, w = IO.pipe
+ begin
+ yield r, w
+ ensure
+ r.close unless r.closed?
+ w.close unless w.closed?
+ end
+ end
+
+ def test_old_select_read_timeout
+ with_pipe do |r, w|
+ t0 = Time.now
+ rc = IO.old_thread_select([r.fileno], nil, nil, 0.001)
+ diff = Time.now - t0
+ assert_equal 0, rc
+ assert_operator diff, :>=, 0.001, "returned too early: diff=#{diff}"
+ end
+ end unless ANCIENT_LINUX
+
+ def test_old_select_error_timeout
+ bug5299 = '[ruby-core:39380]'
+ with_pipe do |r, w|
+ t0 = Time.now
+ rc = IO.old_thread_select(nil, nil, [r.fileno], 0.001)
+ diff = Time.now - t0
+ assert_equal 0, rc, bug5299
+ assert_operator diff, :>=, 0.001, "returned too early: diff=#{diff}"
+ end
+ end unless ANCIENT_LINUX
+
+ def test_old_select_false_positive
+ bug5306 = '[ruby-core:39435]'
+ with_pipe do |r2, w2|
+ with_pipe do |r, w|
+ t0 = Time.now
+ w.syswrite '.'
+ rfds = [ r.fileno, r2.fileno ]
+ rc = IO.old_thread_select(rfds, nil, nil, nil)
+ assert_equal [ r.fileno ], rfds, bug5306
+ assert_equal 1, rc, bug5306
+ end
+ end
+ end
+
+ def test_old_select_read_write_check
+ with_pipe do |r, w|
+ w.syswrite('.')
+ rc = IO.old_thread_select([r.fileno], nil, nil, nil)
+ assert_equal 1, rc
+
+ rc = IO.old_thread_select([r.fileno], [w.fileno], nil, nil)
+ assert_equal 2, rc
+
+ assert_equal '.', r.read(1)
+
+ rc = IO.old_thread_select([r.fileno], [w.fileno], nil, nil)
+ assert_equal 1, rc
+ end
+ end
+
+ def test_old_select_signal_safe
+ return unless Process.respond_to?(:kill)
+ received = false
+ trap(:INT) { received = true }
+ main = Thread.current
+ thr = Thread.new do
+ Thread.pass until main.stop?
+ Process.kill(:INT, $$)
+ true
+ end
+
+ rc = nil
+ diff = nil
+ with_pipe do |r,w|
+ assert_nothing_raised do
+ t0 = Time.now
+ rc = IO.old_thread_select([r.fileno], nil, nil, 1)
+ diff = Time.now - t0
+ end
+ end
+
+ unless ANCIENT_LINUX
+ assert_operator diff, :>=, 1, "interrupted or short wait: diff=#{diff}"
+ end
+ assert_equal 0, rc
+ assert_equal true, thr.value
+ assert_not_equal false, received, "SIGINT not received"
+ ensure
+ trap(:INT, "DEFAULT")
+ end
+end
diff --git a/test/-ext-/st/test_numhash.rb b/test/-ext-/st/test_numhash.rb
new file mode 100644
index 0000000000..9ec072e1a5
--- /dev/null
+++ b/test/-ext-/st/test_numhash.rb
@@ -0,0 +1,21 @@
+require 'test/unit'
+require "-test-/st/numhash"
+
+class Bug::StNumHash
+ class Test_NumHash < Test::Unit::TestCase
+ def setup
+ @tbl = Bug::StNumHash.new
+ 5.times {|i| @tbl[i] = i}
+ end
+
+ def test_check
+ keys = []
+ @tbl.each do |k, v, t|
+ keys << k
+ t[5] = 5 if k == 3
+ true
+ end
+ assert_equal([*0..5], keys)
+ end
+ end
+end
diff --git a/test/-ext-/string/test_cstr.rb b/test/-ext-/string/test_cstr.rb
new file mode 100644
index 0000000000..8c0bb136ad
--- /dev/null
+++ b/test/-ext-/string/test_cstr.rb
@@ -0,0 +1,17 @@
+require 'test/unit'
+require "-test-/string/string"
+
+class Test_StringCStr < Test::Unit::TestCase
+ Bug4319 = '[ruby-dev:43094]'
+
+ def test_embed
+ s = Bug::String.new("abcdef")
+ s.set_len(3)
+ assert_equal(0, s.cstr_term, Bug4319)
+ end
+
+ def test_long
+ s = Bug::String.new("abcdef")*100000
+ assert_equal(0, s.cstr_term, Bug4319)
+ end
+end
diff --git a/test/-ext-/string/test_ellipsize.rb b/test/-ext-/string/test_ellipsize.rb
new file mode 100644
index 0000000000..6ef7d0a1a3
--- /dev/null
+++ b/test/-ext-/string/test_ellipsize.rb
@@ -0,0 +1,46 @@
+require 'test/unit'
+require "-test-/string/string"
+
+class Test_StringEllipsize < Test::Unit::TestCase
+ def setup
+ @foobar = Bug::String.new("foobar")
+ end
+
+ def assert_equal_with_class(expected, result, *rest)
+ assert_equal(expected.encoding, result.encoding, *rest)
+ assert_equal(expected, result, result.encoding.name)
+ assert_instance_of(Bug::String, result, *rest)
+ end
+
+ def test_longer
+ assert_equal_with_class("", @foobar.ellipsize(0))
+ assert_equal_with_class(".", @foobar.ellipsize(1))
+ assert_equal_with_class("..", @foobar.ellipsize(2))
+ assert_equal_with_class("...", @foobar.ellipsize(3))
+ assert_equal_with_class("f...", @foobar.ellipsize(4))
+ assert_equal_with_class("fo...", @foobar.ellipsize(5))
+ end
+
+ def test_shorter
+ assert_same(@foobar, @foobar.ellipsize(6))
+ assert_same(@foobar, @foobar.ellipsize(7))
+ end
+
+ def test_negative_length
+ assert_raise(IndexError) {@foobar.ellipsize(-1)}
+ end
+
+ def test_nonascii
+ a = "\u3042"
+ encs = Encoding.list.each do |enc|
+ next if enc.dummy?
+ begin
+ s = a.encode(enc)
+ e = "...".encode(enc)
+ rescue
+ else
+ assert_equal_with_class(s*12+e, Bug::String.new(s*20).ellipsize(15))
+ end
+ end
+ end
+end
diff --git a/test/-ext-/string/test_enc_associate.rb b/test/-ext-/string/test_enc_associate.rb
new file mode 100644
index 0000000000..edddfb4316
--- /dev/null
+++ b/test/-ext-/string/test_enc_associate.rb
@@ -0,0 +1,12 @@
+require 'test/unit'
+require "-test-/string/string"
+
+class Test_StrEncAssociate < Test::Unit::TestCase
+ def test_frozen
+ s = Bug::String.new("abc")
+ s.force_encoding(Encoding::US_ASCII)
+ s.freeze
+ assert_raise(RuntimeError) {s.associate_encoding!(Encoding::US_ASCII)}
+ assert_raise(RuntimeError) {s.associate_encoding!(Encoding::UTF_8)}
+ end
+end
diff --git a/test/-ext-/string/test_modify_expand.rb b/test/-ext-/string/test_modify_expand.rb
new file mode 100644
index 0000000000..5fee7b3580
--- /dev/null
+++ b/test/-ext-/string/test_modify_expand.rb
@@ -0,0 +1,29 @@
+require 'test/unit'
+require "-test-/string/string"
+require_relative '../../ruby/envutil'
+
+class Test_StringModifyExpand < Test::Unit::TestCase
+ def test_modify_expand_memory_leak
+ before = after = nil
+ args = [
+ "--disable=gems", "-r-test-/string/string",
+ "-I"+File.expand_path("../../..", __FILE__),
+ "-rruby/memory_status",
+ "-e", <<-CMD
+ s=Bug::String.new
+ size=Memory::Status.new.size
+ puts size
+ 10.times{s.modify_expand!(size)}
+ s.replace("")
+ puts Memory::Status.new.size
+ CMD
+ ]
+ status = EnvUtil.invoke_ruby(args, "", true) do |in_p, out_p, err_p, pid|
+ before, after = out_p.readlines.map(&:to_i)
+ Process.wait(pid)
+ $?
+ end
+ assert_equal(true, status.success?)
+ assert_operator after.fdiv(before), :<, 2
+ end
+end
diff --git a/test/-ext-/string/test_set_len.rb b/test/-ext-/string/test_set_len.rb
new file mode 100644
index 0000000000..e257cacb83
--- /dev/null
+++ b/test/-ext-/string/test_set_len.rb
@@ -0,0 +1,25 @@
+require 'test/unit'
+require "-test-/string/string"
+
+class Test_StrSetLen < Test::Unit::TestCase
+ def setup
+ @s0 = [*"a".."z"].join("").freeze
+ @s1 = Bug::String.new(@s0)
+ end
+
+ def teardown
+ orig = [*"a".."z"].join("")
+ assert_equal(orig, @s0)
+ end
+
+ def test_non_shared
+ @s1.modify!
+ assert_equal("abc", @s1.set_len(3))
+ end
+
+ def test_shared
+ assert_raise(RuntimeError) {
+ assert_equal("abc", @s1.set_len(3))
+ }
+ end
+end
diff --git a/test/-ext-/test_add_suffix.rb b/test/-ext-/test_add_suffix.rb
new file mode 100644
index 0000000000..0520baef8c
--- /dev/null
+++ b/test/-ext-/test_add_suffix.rb
@@ -0,0 +1,47 @@
+require 'test/unit'
+require_relative '../ruby/envutil'
+require "-test-/add_suffix/bug"
+
+class Test_AddSuffix < Test::Unit::TestCase
+ Dir = "/dev/null/".freeze
+ Style_1 = (Dir+"foo").freeze
+
+ def test_style_0
+ assert_equal("a.x.y", Bug.add_suffix("a.x", ".y"))
+ end
+
+ def test_style_1
+ assert_equal(Style_1+".y", Bug.add_suffix(Style_1+".c", ".y"))
+ suffix = ".bak".freeze
+ assert_equal(Style_1+suffix, Bug.add_suffix(Style_1.dup, suffix))
+ assert_equal(Style_1+suffix, Bug.add_suffix(Style_1+".bar", suffix))
+ assert_equal(Style_1+".$$$", Bug.add_suffix(Style_1+suffix, suffix))
+ assert_equal(Style_1+suffix, Bug.add_suffix(Style_1+".$$$", suffix))
+ assert_equal(Style_1+".~~~", Bug.add_suffix(Style_1+".$$$", ".$$$"))
+ assert_equal(Dir+"makefile"+suffix, Bug.add_suffix(Dir+"makefile", suffix))
+ end
+
+ def test_style_2
+ suffix = "~"
+ assert_equal(Style_1+"~", Bug.add_suffix(Style_1.dup, suffix))
+ assert_equal(Style_1+".c~", Bug.add_suffix(Style_1+".c", suffix))
+ assert_equal(Style_1+".c~~", Bug.add_suffix(Style_1+".c~", suffix))
+ assert_equal(Style_1+"~.c~~", Bug.add_suffix(Style_1+".c~~", suffix))
+ assert_equal(Style_1+"~~.c~~", Bug.add_suffix(Style_1+"~.c~~", suffix))
+ assert_equal(Style_1+"~~~~~.cc~", Bug.add_suffix(Style_1+"~~~~~.ccc", suffix))
+ assert_equal(Style_1+"~~~~~.$$$", Bug.add_suffix(Style_1+"~~~~~.c~~", suffix))
+ assert_equal(Dir+"foo~.pas", Bug.add_suffix(Dir+"foo.pas", suffix))
+ assert_equal(Dir+"makefile.~", Bug.add_suffix(Dir+"makefile", suffix))
+ assert_equal(Dir+"longname.fi~", Bug.add_suffix(Dir+"longname.fil", suffix))
+ assert_equal(Dir+"longnam~.fi~", Bug.add_suffix(Dir+"longname.fi~", suffix))
+ assert_equal(Dir+"longnam~.$$$", Bug.add_suffix(Dir+"longnam~.fi~", suffix))
+ end
+
+ def test_style_3
+ base = "a"*1000
+ suffix = "-"+"b"*1000
+ assert_equal(base+".~~~", Bug.add_suffix(base, suffix))
+ assert_equal(base+".~~~", Bug.add_suffix(base+".$$$", suffix))
+ assert_equal(base+".$$$", Bug.add_suffix(base+".~~~", suffix))
+ end
+end
diff --git a/test/-ext-/test_bug-3571.rb b/test/-ext-/test_bug-3571.rb
new file mode 100644
index 0000000000..cd43d0330d
--- /dev/null
+++ b/test/-ext-/test_bug-3571.rb
@@ -0,0 +1,21 @@
+require 'test/unit'
+require_relative '../ruby/envutil'
+
+class Test_BUG_3571 < Test::Unit::TestCase
+ def test_block_call_id
+ bug3571 = '[ruby-dev:41852]'
+ src = <<SRC
+begin
+ Bug.start
+rescue NotImplementedError => e
+ STDERR.puts e.message, e.backtrace[$0.size..-1]
+end
+SRC
+ out = [
+ "start() function is unimplemented on this machine",
+ "-:2:in `start'",
+ "-:2:in `<main>'",
+ ]
+ assert_in_out_err(%w"-r-test-/bug-3571/bug", src, [], out, bug3571)
+ end
+end
diff --git a/test/-ext-/test_bug-3662.rb b/test/-ext-/test_bug-3662.rb
new file mode 100644
index 0000000000..73c0697241
--- /dev/null
+++ b/test/-ext-/test_bug-3662.rb
@@ -0,0 +1,10 @@
+require '-test-/bug-3662/bug'
+
+class Test_BUG_3662 < Test::Unit::TestCase
+ def test_funcall_notimplement
+ bug3662 = '[ruby-dev:41953]'
+ assert_raise(NotImplementedError, bug3662) {
+ Bug.funcall(:notimplement)
+ }
+ end
+end
diff --git a/test/-ext-/wait_for_single_fd/test_wait_for_single_fd.rb b/test/-ext-/wait_for_single_fd/test_wait_for_single_fd.rb
new file mode 100644
index 0000000000..c7dd0909f0
--- /dev/null
+++ b/test/-ext-/wait_for_single_fd/test_wait_for_single_fd.rb
@@ -0,0 +1,42 @@
+require 'test/unit'
+
+class TestWaitForSingleFD < Test::Unit::TestCase
+ require '-test-/wait_for_single_fd/wait_for_single_fd'
+
+ def with_pipe
+ r, w = IO.pipe
+ begin
+ yield r, w
+ ensure
+ r.close unless r.closed?
+ w.close unless w.closed?
+ end
+ end
+
+ def test_wait_for_valid_fd
+ with_pipe do |r,w|
+ rc = IO.wait_for_single_fd(w.fileno, RB_WAITFD_OUT, nil)
+ assert_equal RB_WAITFD_OUT, rc
+ end
+ end
+
+ def test_wait_for_invalid_fd
+ with_pipe do |r,w|
+ wfd = w.fileno
+ w.close
+ assert_raises(Errno::EBADF) do
+ IO.wait_for_single_fd(wfd, RB_WAITFD_OUT, nil)
+ end
+ end
+ end
+
+ def test_wait_for_closed_pipe
+ with_pipe do |r,w|
+ w.close
+ rc = IO.wait_for_single_fd(r.fileno, RB_WAITFD_IN, nil)
+ assert_equal RB_WAITFD_IN, rc
+ end
+ end
+
+
+end
diff --git a/test/-ext-/win32/test_dln.rb b/test/-ext-/win32/test_dln.rb
new file mode 100644
index 0000000000..7c5fe61f59
--- /dev/null
+++ b/test/-ext-/win32/test_dln.rb
@@ -0,0 +1,13 @@
+require 'test/unit'
+require_relative '../../ruby/envutil'
+
+module Bug
+ module Win32
+ class TestDln < Test::Unit::TestCase
+ def test_check_imported
+ bug = '[Bug #6303]'
+ assert_in_out_err(['-r-test-/win32/dln', '-eexit'], '', [], [], bug, timeout: 10)
+ end
+ end
+ end
+end if /mswin|mingw/ =~ RUBY_PLATFORM
diff --git a/test/benchmark/test_benchmark.rb b/test/benchmark/test_benchmark.rb
new file mode 100644
index 0000000000..801da47dae
--- /dev/null
+++ b/test/benchmark/test_benchmark.rb
@@ -0,0 +1,163 @@
+require 'minitest/spec'
+require 'benchmark'
+
+MiniTest::Unit.autorun
+
+describe Benchmark do
+ BENCH_FOR_TIMES_UPTO = lambda do |x|
+ n = 1000
+ tf = x.report("for:") { for _ in 1..n; '1'; end }
+ tt = x.report("times:") { n.times do ; '1'; end }
+ tu = x.report("upto:") { 1.upto(n) do ; '1'; end }
+ [tf+tt+tu, (tf+tt+tu)/3]
+ end
+
+ BENCH_FOR_TIMES_UPTO_NO_LABEL = lambda do |x|
+ n = 1000
+ x.report { for _ in 1..n; '1'; end }
+ x.report { n.times do ; '1'; end }
+ x.report { 1.upto(n) do ; '1'; end }
+ end
+
+ LABELS = %w[first second third]
+
+ def bench(type = :bm, *args, &block)
+ if block
+ Benchmark.send(type, *args, &block)
+ else
+ Benchmark.send(type, *args) do |x|
+ LABELS.each { |label|
+ x.report(label) {}
+ }
+ end
+ end
+ end
+
+ def capture_output
+ capture_io { yield }.first.gsub(/[ \-]\d\.\d{6}/, ' --time--')
+ end
+
+ def capture_bench_output(type, *args, &block)
+ capture_output { bench(type, *args, &block) }
+ end
+
+ describe 'Tms' do
+ it 'outputs nicely' do
+ Benchmark::Tms.new.to_s.must_equal " 0.000000 0.000000 0.000000 ( 0.000000)\n"
+ Benchmark::Tms.new(1,2,3,4,5).to_s.must_equal " 1.000000 2.000000 10.000000 ( 5.000000)\n"
+ Benchmark::Tms.new(1,2,3,4,5,'label').format('%u %y %U %Y %t %r %n').must_equal \
+ "1.000000 2.000000 3.000000 4.000000 10.000000 (5.000000) label"
+ Benchmark::Tms.new(1).format('%u %.3f', 2).must_equal "1.000000 2.000"
+ Benchmark::Tms.new(100, 150, 0, 0, 200).to_s.must_equal \
+ "100.000000 150.000000 250.000000 (200.000000)\n"
+ end
+
+ it 'wont modify the format String given' do
+ format = "format %u"
+ Benchmark::Tms.new.format(format)
+ format.must_equal "format %u"
+ end
+ end
+
+ describe 'benchmark' do
+ it 'makes extra calcultations with an Array at the end of the benchmark and show the result' do
+ capture_bench_output(:benchmark,
+ Benchmark::CAPTION, 7,
+ Benchmark::FORMAT, ">total:", ">avg:",
+ &BENCH_FOR_TIMES_UPTO).must_equal BENCHMARK_OUTPUT_WITH_TOTAL_AVG
+ end
+ end
+
+ describe 'bm' do
+ it "returns an Array of the times with the labels" do
+ [:bm, :bmbm].each do |meth|
+ capture_io do
+ results = bench(meth)
+ results.must_be_instance_of Array
+ results.size.must_equal LABELS.size
+ results.zip(LABELS).each { |tms, label|
+ tms.must_be_instance_of Benchmark::Tms
+ tms.label.must_equal label
+ }
+ end
+ end
+ end
+
+ it 'correctly output when the label width is given' do
+ capture_bench_output(:bm, 6).must_equal BM_OUTPUT
+ end
+
+ it 'correctly output when no label is given' do
+ capture_bench_output(:bm, &BENCH_FOR_TIMES_UPTO_NO_LABEL).must_equal BM_OUTPUT_NO_LABEL
+ end
+
+ it 'can make extra calcultations with an array at the end of the benchmark' do
+ capture_bench_output(:bm, 7, ">total:", ">avg:",
+ &BENCH_FOR_TIMES_UPTO).must_equal BENCHMARK_OUTPUT_WITH_TOTAL_AVG
+ end
+ end
+
+ describe 'bmbm' do
+ it 'correctly guess the label width even when not given' do
+ capture_bench_output(:bmbm).must_equal BMBM_OUTPUT
+ end
+
+ it 'correctly output when the label width is given (bmbm ignore it, but it is a frequent mistake)' do
+ capture_bench_output(:bmbm, 6).must_equal BMBM_OUTPUT
+ end
+ end
+
+ describe 'Report' do
+ describe '#item' do
+ it 'shows the title, even if not a string' do
+ capture_bench_output(:bm) { |x| x.report(:title) {} }.must_include 'title'
+ capture_bench_output(:bmbm) { |x| x.report(:title) {} }.must_include 'title'
+ end
+ end
+ end
+
+ describe 'Bugs' do
+ it '[ruby-dev:40906] can add in-place the time of execution of the block given' do
+ t = Benchmark::Tms.new
+ t.real.must_equal 0
+ t.add! { sleep 0.1 }
+ t.real.wont_equal 0
+ end
+ end
+end
+
+BM_OUTPUT = <<BENCH
+ user system total real
+first --time-- --time-- --time-- ( --time--)
+second --time-- --time-- --time-- ( --time--)
+third --time-- --time-- --time-- ( --time--)
+BENCH
+
+BM_OUTPUT_NO_LABEL = <<BENCH
+ user system total real
+ --time-- --time-- --time-- ( --time--)
+ --time-- --time-- --time-- ( --time--)
+ --time-- --time-- --time-- ( --time--)
+BENCH
+
+BMBM_OUTPUT = <<BENCH
+Rehearsal ------------------------------------------
+first --time-- --time-- --time-- ( --time--)
+second --time-- --time-- --time-- ( --time--)
+third --time-- --time-- --time-- ( --time--)
+--------------------------------- total: --time--sec
+
+ user system total real
+first --time-- --time-- --time-- ( --time--)
+second --time-- --time-- --time-- ( --time--)
+third --time-- --time-- --time-- ( --time--)
+BENCH
+
+BENCHMARK_OUTPUT_WITH_TOTAL_AVG = <<BENCH
+ user system total real
+for: --time-- --time-- --time-- ( --time--)
+times: --time-- --time-- --time-- ( --time--)
+upto: --time-- --time-- --time-- ( --time--)
+>total: --time-- --time-- --time-- ( --time--)
+>avg: --time-- --time-- --time-- ( --time--)
+BENCH
diff --git a/test/bigdecimal/test_bigdecimal.rb b/test/bigdecimal/test_bigdecimal.rb
index 7eecc1ade1..bd0739c31d 100644
--- a/test/bigdecimal/test_bigdecimal.rb
+++ b/test/bigdecimal/test_bigdecimal.rb
@@ -1,17 +1,47 @@
-require "test/unit"
-require "bigdecimal"
+require_relative "testbase"
+require_relative "../ruby/envutil"
+
+require 'thread'
class TestBigDecimal < Test::Unit::TestCase
- def setup
- BigDecimal.mode(BigDecimal::EXCEPTION_ALL, true)
- BigDecimal.mode(BigDecimal::EXCEPTION_UNDERFLOW, true)
- BigDecimal.mode(BigDecimal::EXCEPTION_OVERFLOW, true)
- BigDecimal.mode(BigDecimal::ROUND_MODE, BigDecimal::ROUND_HALF_UP)
- BigDecimal.limit(0)
+ include TestBigDecimalBase
+
+ ROUNDING_MODE_MAP = [
+ [ BigDecimal::ROUND_UP, :up],
+ [ BigDecimal::ROUND_DOWN, :down],
+ [ BigDecimal::ROUND_DOWN, :truncate],
+ [ BigDecimal::ROUND_HALF_UP, :half_up],
+ [ BigDecimal::ROUND_HALF_UP, :default],
+ [ BigDecimal::ROUND_HALF_DOWN, :half_down],
+ [ BigDecimal::ROUND_HALF_EVEN, :half_even],
+ [ BigDecimal::ROUND_HALF_EVEN, :banker],
+ [ BigDecimal::ROUND_CEILING, :ceiling],
+ [ BigDecimal::ROUND_CEILING, :ceil],
+ [ BigDecimal::ROUND_FLOOR, :floor],
+ ]
+
+ def assert_nan(x)
+ assert(x.nan?, "Expected #{x.inspect} to be NaN")
end
- def test_version
- assert_equal("1.0.1", BigDecimal.ver)
+ def assert_positive_infinite(x)
+ assert(x.infinite?, "Expected #{x.inspect} to be positive infinite")
+ assert_operator(x, :>, 0)
+ end
+
+ def assert_negative_infinite(x)
+ assert(x.infinite?, "Expected #{x.inspect} to be negative infinite")
+ assert_operator(x, :<, 0)
+ end
+
+ def assert_positive_zero(x)
+ assert_equal(BigDecimal::SIGN_POSITIVE_ZERO, x.sign,
+ "Expected #{x.inspect} to be positive zero")
+ end
+
+ def assert_negative_zero(x)
+ assert_equal(BigDecimal::SIGN_NEGATIVE_ZERO, x.sign,
+ "Expected #{x.inspect} to be negative zero")
end
def test_global_new
@@ -20,18 +50,88 @@ class TestBigDecimal < Test::Unit::TestCase
assert_raise(ArgumentError) { BigDecimal("1", -1) }
end
+ def test_global_new_with_integer
+ assert_equal(BigDecimal("1"), BigDecimal(1))
+ assert_equal(BigDecimal("-1"), BigDecimal(-1))
+ assert_equal(BigDecimal((2**100).to_s), BigDecimal(2**100))
+ assert_equal(BigDecimal((-2**100).to_s), BigDecimal(-2**100))
+ end
+
+ def test_global_new_with_rational
+ assert_equal(BigDecimal("0.333333333333333333333"), BigDecimal(1.quo(3), 21))
+ assert_equal(BigDecimal("-0.333333333333333333333"), BigDecimal(-1.quo(3), 21))
+ assert_raise(ArgumentError) { BigDecimal(1.quo(3)) }
+ end
+
+ def test_global_new_with_float
+ assert_equal(BigDecimal("0.1235"), BigDecimal(0.1234567, 4))
+ assert_equal(BigDecimal("-0.1235"), BigDecimal(-0.1234567, 4))
+ assert_raise(ArgumentError) { BigDecimal(0.1) }
+ assert_raise(ArgumentError) { BigDecimal(0.1, Float::DIG + 2) }
+ assert_nothing_raised { BigDecimal(0.1, Float::DIG + 1) }
+ end
+
+ def test_global_new_with_big_decimal
+ assert_equal(BigDecimal(1), BigDecimal(BigDecimal(1)))
+ assert_equal(BigDecimal('+0'), BigDecimal(BigDecimal('+0')))
+ assert_equal(BigDecimal('-0'), BigDecimal(BigDecimal('-0')))
+ BigDecimal.save_exception_mode do
+ BigDecimal.mode(BigDecimal::EXCEPTION_OVERFLOW, false)
+ BigDecimal.mode(BigDecimal::EXCEPTION_NaN, false)
+ assert_positive_infinite(BigDecimal(BigDecimal('Infinity')))
+ assert_negative_infinite(BigDecimal(BigDecimal('-Infinity')))
+ assert_nan(BigDecimal(BigDecimal('NaN')))
+ end
+ end
+
def test_new
assert_equal(1, BigDecimal.new("1"))
assert_equal(1, BigDecimal.new("1", 1))
assert_equal(1, BigDecimal.new(" 1 "))
assert_equal(111, BigDecimal.new("1_1_1_"))
assert_equal(0, BigDecimal.new("_1_1_1"))
+ assert_equal(10**(-1), BigDecimal.new("1E-1"), '#4825')
BigDecimal.mode(BigDecimal::EXCEPTION_OVERFLOW, false)
BigDecimal.mode(BigDecimal::EXCEPTION_NaN, false)
assert_equal( 1, BigDecimal.new("Infinity").infinite?)
assert_equal(-1, BigDecimal.new("-Infinity").infinite?)
assert_equal(true, BigDecimal.new("NaN").nan?)
+ assert_equal( 1, BigDecimal.new("1E1111111111111111111").infinite?)
+ end
+
+ def test_new_with_integer
+ assert_equal(BigDecimal("1"), BigDecimal.new(1))
+ assert_equal(BigDecimal("-1"), BigDecimal.new(-1))
+ assert_equal(BigDecimal((2**100).to_s), BigDecimal.new(2**100))
+ assert_equal(BigDecimal((-2**100).to_s), BigDecimal.new(-2**100))
+ end
+
+ def test_new_with_rational
+ assert_equal(BigDecimal("0.333333333333333333333"), BigDecimal.new(1.quo(3), 21))
+ assert_equal(BigDecimal("-0.333333333333333333333"), BigDecimal.new(-1.quo(3), 21))
+ assert_raise(ArgumentError) { BigDecimal.new(1.quo(3)) }
+ end
+
+ def test_new_with_float
+ assert_equal(BigDecimal("0.1235"), BigDecimal(0.1234567, 4))
+ assert_equal(BigDecimal("-0.1235"), BigDecimal(-0.1234567, 4))
+ assert_raise(ArgumentError) { BigDecimal.new(0.1) }
+ assert_raise(ArgumentError) { BigDecimal.new(0.1, Float::DIG + 2) }
+ assert_nothing_raised { BigDecimal.new(0.1, Float::DIG + 1) }
+ end
+
+ def test_new_with_big_decimal
+ assert_equal(BigDecimal(1), BigDecimal.new(BigDecimal(1)))
+ assert_equal(BigDecimal('+0'), BigDecimal.new(BigDecimal('+0')))
+ assert_equal(BigDecimal('-0'), BigDecimal.new(BigDecimal('-0')))
+ BigDecimal.save_exception_mode do
+ BigDecimal.mode(BigDecimal::EXCEPTION_OVERFLOW, false)
+ BigDecimal.mode(BigDecimal::EXCEPTION_NaN, false)
+ assert_positive_infinite(BigDecimal.new(BigDecimal('Infinity')))
+ assert_negative_infinite(BigDecimal.new(BigDecimal('-Infinity')))
+ assert_nan(BigDecimal(BigDecimal.new('NaN')))
+ end
end
def _test_mode(type)
@@ -43,9 +143,92 @@ class TestBigDecimal < Test::Unit::TestCase
end
def test_mode
- assert_raise(TypeError) { BigDecimal.mode(BigDecimal::EXCEPTION_ALL, 1) }
- assert_raise(TypeError) { BigDecimal.mode(BigDecimal::ROUND_MODE, 256) }
+ assert_raise(ArgumentError) { BigDecimal.mode(BigDecimal::EXCEPTION_ALL, 1) }
+ assert_raise(ArgumentError) { BigDecimal.mode(BigDecimal::ROUND_MODE, 256) }
+ assert_raise(ArgumentError) { BigDecimal.mode(BigDecimal::ROUND_MODE, :xyzzy) }
assert_raise(TypeError) { BigDecimal.mode(0xf000, true) }
+
+ begin
+ saved_mode = BigDecimal.mode(BigDecimal::ROUND_MODE)
+
+ [ BigDecimal::ROUND_UP,
+ BigDecimal::ROUND_DOWN,
+ BigDecimal::ROUND_HALF_UP,
+ BigDecimal::ROUND_HALF_DOWN,
+ BigDecimal::ROUND_CEILING,
+ BigDecimal::ROUND_FLOOR,
+ BigDecimal::ROUND_HALF_EVEN,
+ ].each do |mode|
+ BigDecimal.mode(BigDecimal::ROUND_MODE, mode)
+ assert_equal(mode, BigDecimal.mode(BigDecimal::ROUND_MODE))
+ end
+ ensure
+ BigDecimal.mode(BigDecimal::ROUND_MODE, saved_mode)
+ end
+
+ BigDecimal.save_rounding_mode do
+ ROUNDING_MODE_MAP.each do |const, sym|
+ BigDecimal.mode(BigDecimal::ROUND_MODE, sym)
+ assert_equal(const, BigDecimal.mode(BigDecimal::ROUND_MODE))
+ end
+ end
+ end
+
+ def test_thread_local_mode
+ begin
+ saved_mode = BigDecimal.mode(BigDecimal::ROUND_MODE)
+
+ BigDecimal.mode(BigDecimal::ROUND_MODE, BigDecimal::ROUND_UP)
+ Thread.start {
+ BigDecimal.mode(BigDecimal::ROUND_MODE, BigDecimal::ROUND_HALF_EVEN)
+ assert_equal(BigDecimal::ROUND_HALF_EVEN, BigDecimal.mode(BigDecimal::ROUND_MODE))
+ }.join
+ assert_equal(BigDecimal::ROUND_UP, BigDecimal.mode(BigDecimal::ROUND_MODE))
+ ensure
+ BigDecimal.mode(BigDecimal::ROUND_MODE, saved_mode)
+ end
+ end
+
+ def test_save_exception_mode
+ BigDecimal.mode(BigDecimal::EXCEPTION_OVERFLOW, false)
+ mode = BigDecimal.mode(BigDecimal::EXCEPTION_OVERFLOW)
+ BigDecimal.save_exception_mode do
+ BigDecimal.mode(BigDecimal::EXCEPTION_OVERFLOW, true)
+ end
+ assert_equal(mode, BigDecimal.mode(BigDecimal::EXCEPTION_OVERFLOW))
+
+ BigDecimal.mode(BigDecimal::ROUND_MODE, BigDecimal::ROUND_FLOOR)
+ BigDecimal.save_exception_mode do
+ BigDecimal.mode(BigDecimal::ROUND_MODE, BigDecimal::ROUND_HALF_EVEN)
+ end
+ assert_equal(BigDecimal::ROUND_HALF_EVEN, BigDecimal.mode(BigDecimal::ROUND_MODE))
+
+ assert_equal(42, BigDecimal.save_exception_mode { 42 })
+ end
+
+ def test_save_rounding_mode
+ BigDecimal.mode(BigDecimal::ROUND_MODE, BigDecimal::ROUND_FLOOR)
+ BigDecimal.save_rounding_mode do
+ BigDecimal.mode(BigDecimal::ROUND_MODE, BigDecimal::ROUND_HALF_EVEN)
+ end
+ assert_equal(BigDecimal::ROUND_FLOOR, BigDecimal.mode(BigDecimal::ROUND_MODE))
+
+ assert_equal(42, BigDecimal.save_rounding_mode { 42 })
+ end
+
+ def test_save_limit
+ begin
+ old = BigDecimal.limit
+ BigDecimal.limit(100)
+ BigDecimal.save_limit do
+ BigDecimal.limit(200)
+ end
+ assert_equal(100, BigDecimal.limit);
+ ensure
+ BigDecimal.limit(old)
+ end
+
+ assert_equal(42, BigDecimal.save_limit { 42 })
end
def test_exception_nan
@@ -61,7 +244,6 @@ class TestBigDecimal < Test::Unit::TestCase
x = BigDecimal.new("0.1")
100.times do
x *= x
- break if x == false
end
end
end
@@ -71,7 +253,6 @@ class TestBigDecimal < Test::Unit::TestCase
x = BigDecimal.new("10")
100.times do
x *= x
- break if x == false
end
end
end
@@ -179,6 +360,7 @@ class TestBigDecimal < Test::Unit::TestCase
def test_zero_p
assert_equal(true, BigDecimal.new("0").zero?)
assert_equal(false, BigDecimal.new("1").zero?)
+ assert_equal(true, BigDecimal.new("0E200000000000000").zero?)
end
def test_nonzero_p
@@ -217,9 +399,25 @@ class TestBigDecimal < Test::Unit::TestCase
inf = BigDecimal.new("Infinity")
assert_operator(inf, :>, 1)
assert_operator(1, :<, inf)
+
+ assert_operator(BigDecimal("1E-1"), :==, 10**(-1), '#4825')
+ assert_equal(0, BigDecimal("1E-1") <=> 10**(-1), '#4825')
+ end
+
+ def test_cmp_nan
+ n1 = BigDecimal.new("1")
+ BigDecimal.mode(BigDecimal::EXCEPTION_NaN, false)
+ assert_equal(nil, BigDecimal.new("NaN") <=> n1)
+ assert_equal(false, BigDecimal.new("NaN") > n1)
+ end
+
+ def test_cmp_failing_coercion
+ n1 = BigDecimal.new("1")
+ assert_equal(nil, n1 <=> nil)
+ assert_raise(ArgumentError){n1 > nil}
end
- def test_cmp_corece
+ def test_cmp_coerce
n1 = BigDecimal.new("1")
n2 = BigDecimal.new("2")
o1 = Object.new; def o1.coerce(x); [x, BigDecimal.new("1")]; end
@@ -337,12 +535,29 @@ class TestBigDecimal < Test::Unit::TestCase
BigDecimal.mode(BigDecimal::EXCEPTION_OVERFLOW, false)
assert_kind_of(Float, x .to_f)
assert_kind_of(Float, (-x).to_f)
+
+ BigDecimal.mode(BigDecimal::EXCEPTION_UNDERFLOW, true)
+ assert_raise(FloatDomainError) {
+ BigDecimal("1e#{Float::MIN_10_EXP - 2*Float::DIG}").to_f }
+ assert_raise(FloatDomainError) {
+ BigDecimal("-1e#{Float::MIN_10_EXP - 2*Float::DIG}").to_f }
+
+ BigDecimal.mode(BigDecimal::EXCEPTION_UNDERFLOW, false)
+ assert_equal( 0.0, BigDecimal("1e#{Float::MIN_10_EXP - 2*Float::DIG}").to_f)
+ assert_equal(-0.0, BigDecimal("-1e#{Float::MIN_10_EXP - 2*Float::DIG}").to_f)
end
def test_coerce
a, b = BigDecimal.new("1").coerce(1.0)
assert_instance_of(Float, a)
assert_instance_of(Float, b)
+ assert_equal(2, 1 + BigDecimal.new("1"), '[ruby-core:25697]')
+
+ a, b = BigDecimal("1").coerce(1.quo(10))
+ assert_equal(BigDecimal("0.1"), a, '[ruby-core:34318]')
+
+ a, b = BigDecimal("0.11111").coerce(1.quo(3))
+ assert_equal(BigDecimal("0." + "3"*a.precs[0]), a)
end
def test_uplus
@@ -523,7 +738,24 @@ class TestBigDecimal < Test::Unit::TestCase
assert_equal(2, x.round(0, BigDecimal::ROUND_HALF_EVEN))
assert_equal(3, x.round(0, BigDecimal::ROUND_CEILING))
assert_equal(2, x.round(0, BigDecimal::ROUND_FLOOR))
- assert_raise(TypeError) { x.round(0, 256) }
+ assert_raise(ArgumentError) { x.round(0, 256) }
+
+ ROUNDING_MODE_MAP.each do |const, sym|
+ assert_equal(x.round(0, const), x.round(0, sym))
+ end
+
+ bug3803 = '[ruby-core:32136]'
+ 15.times do |n|
+ x = BigDecimal.new("5#{'0'*n}1")
+ assert_equal(10**(n+2), x.round(-(n+2), BigDecimal::ROUND_HALF_DOWN), bug3803)
+ assert_equal(10**(n+2), x.round(-(n+2), BigDecimal::ROUND_HALF_EVEN), bug3803)
+ x = BigDecimal.new("0.5#{'0'*n}1")
+ assert_equal(1, x.round(0, BigDecimal::ROUND_HALF_DOWN), bug3803)
+ assert_equal(1, x.round(0, BigDecimal::ROUND_HALF_EVEN), bug3803)
+ x = BigDecimal.new("-0.5#{'0'*n}1")
+ assert_equal(-1, x.round(0, BigDecimal::ROUND_HALF_DOWN), bug3803)
+ assert_equal(-1, x.round(0, BigDecimal::ROUND_HALF_EVEN), bug3803)
+ end
end
def test_truncate
@@ -579,31 +811,194 @@ class TestBigDecimal < Test::Unit::TestCase
assert_match(/^#<BigDecimal:[0-9a-f]+,'0.12345678E4',#{prec}\(#{maxprec}\)>$/, x.inspect)
end
- def test_power
- x = BigDecimal.new("3")
- assert_equal(81, x ** 4)
- assert_equal(1.0/81, x ** -4)
+ def test_power_with_nil
+ assert_raise(TypeError) do
+ BigDecimal(3) ** nil
+ end
+ end
+
+ def test_power_of_nan
+ BigDecimal.save_exception_mode do
+ BigDecimal.mode(BigDecimal::EXCEPTION_NaN, false)
+ assert_nan(BigDecimal::NAN ** 0)
+ assert_nan(BigDecimal::NAN ** 1)
+ assert_nan(BigDecimal::NAN ** 42)
+ assert_nan(BigDecimal::NAN ** -42)
+ assert_nan(BigDecimal::NAN ** 42.0)
+ assert_nan(BigDecimal::NAN ** -42.0)
+ assert_nan(BigDecimal::NAN ** BigDecimal(42))
+ assert_nan(BigDecimal::NAN ** BigDecimal(-42))
+ assert_nan(BigDecimal::NAN ** BigDecimal::INFINITY)
+ BigDecimal.save_exception_mode do
+ BigDecimal.mode(BigDecimal::EXCEPTION_INFINITY, false)
+ assert_nan(BigDecimal::NAN ** (-BigDecimal::INFINITY))
+ end
+ end
+ end
+
+ def test_power_with_Bignum
+ BigDecimal.save_exception_mode do
+ BigDecimal.mode(BigDecimal::EXCEPTION_INFINITY, false)
+ assert_equal(0, BigDecimal(0) ** (2**100))
+
+ assert_positive_infinite(BigDecimal(0) ** -(2**100))
+ assert_positive_infinite((-BigDecimal(0)) ** -(2**100))
+ assert_negative_infinite((-BigDecimal(0)) ** -(2**100 + 1))
+
+ assert_equal(1, BigDecimal(1) ** (2**100))
+
+ assert_positive_infinite(BigDecimal(3) ** (2**100))
+ assert_positive_zero(BigDecimal(3) ** (-2**100))
+
+ assert_negative_infinite(BigDecimal(-3) ** (2**100))
+ assert_positive_infinite(BigDecimal(-3) ** (2**100 + 1))
+ assert_negative_zero(BigDecimal(-3) ** (-2**100))
+ assert_positive_zero(BigDecimal(-3) ** (-2**100 - 1))
+
+ assert_positive_zero(BigDecimal(0.5, Float::DIG) ** (2**100))
+ assert_positive_infinite(BigDecimal(0.5, Float::DIG) ** (-2**100))
+
+ assert_negative_zero(BigDecimal(-0.5, Float::DIG) ** (2**100))
+ assert_positive_zero(BigDecimal(-0.5, Float::DIG) ** (2**100 - 1))
+ assert_negative_infinite(BigDecimal(-0.5, Float::DIG) ** (-2**100))
+ assert_positive_infinite(BigDecimal(-0.5, Float::DIG) ** (-2**100 - 1))
+ end
+ end
+
+ def test_power_with_BigDecimal
+ assert_nothing_raised do
+ assert_in_delta(3 ** 3, BigDecimal(3) ** BigDecimal(3))
+ end
+ end
+
+ def test_power_of_finite_with_zero
+ x = BigDecimal(1)
assert_equal(1, x ** 0)
- assert_raise(TypeError) { x ** x }
- assert_equal(0, BigDecimal.new("0") ** 4)
- assert_equal(1, BigDecimal.new("0") ** 0)
- BigDecimal.mode(BigDecimal::EXCEPTION_OVERFLOW, false)
- assert_equal(BigDecimal.new("Infinity"), BigDecimal.new("0") ** -1)
- assert_equal(BigDecimal.new("-Infinity"), BigDecimal.new("-0") ** -1)
- BigDecimal.mode(BigDecimal::EXCEPTION_NaN, false)
- assert_equal(true, (BigDecimal.new("NaN") ** 1).nan?)
+ assert_equal(1, x ** 0.quo(1))
+ assert_equal(1, x ** 0.0)
+ assert_equal(1, x ** BigDecimal(0))
+
+ x = BigDecimal(42)
+ assert_equal(1, x ** 0)
+ assert_equal(1, x ** 0.quo(1))
+ assert_equal(1, x ** 0.0)
+ assert_equal(1, x ** BigDecimal(0))
+
+ x = BigDecimal(-42)
+ assert_equal(1, x ** 0)
+ assert_equal(1, x ** 0.quo(1))
+ assert_equal(1, x ** 0.0)
+ assert_equal(1, x ** BigDecimal(0))
+ end
- assert_equal(BigDecimal::SIGN_POSITIVE_INFINITE, (BigDecimal.new("Infinity") ** 2).sign)
- assert_equal(BigDecimal::SIGN_POSITIVE_INFINITE, (BigDecimal.new("Infinity") ** 1).sign)
- assert_equal(1, BigDecimal.new("Infinity") ** 0)
- assert_equal(BigDecimal::SIGN_POSITIVE_ZERO, (BigDecimal.new("Infinity") ** -1).sign)
- assert_equal(BigDecimal::SIGN_POSITIVE_ZERO, (BigDecimal.new("Infinity") ** -2).sign)
+ def test_power_of_three
+ x = BigDecimal(3)
+ assert_equal(81, x ** 4)
+ assert_equal(1.quo(81), x ** -4)
+ assert_in_delta(1.0/81, x ** -4)
+ end
+
+ def test_power_of_zero
+ zero = BigDecimal(0)
+ assert_equal(0, zero ** 4)
+ assert_equal(0, zero ** 4.quo(1))
+ assert_equal(0, zero ** 4.0)
+ assert_equal(0, zero ** BigDecimal(4))
+ assert_equal(1, zero ** 0)
+ assert_equal(1, zero ** 0.quo(1))
+ assert_equal(1, zero ** 0.0)
+ assert_equal(1, zero ** BigDecimal(0))
+ BigDecimal.save_exception_mode do
+ BigDecimal.mode(BigDecimal::EXCEPTION_INFINITY, false)
+ BigDecimal.mode(BigDecimal::EXCEPTION_OVERFLOW, false)
+ assert_positive_infinite(zero ** -1)
+ assert_positive_infinite(zero ** -1.quo(1))
+ assert_positive_infinite(zero ** -1.0)
+ assert_positive_infinite(zero ** BigDecimal(-1))
+
+ m_zero = BigDecimal("-0")
+ assert_negative_infinite(m_zero ** -1)
+ assert_negative_infinite(m_zero ** -1.quo(1))
+ assert_negative_infinite(m_zero ** -1.0)
+ assert_negative_infinite(m_zero ** BigDecimal(-1))
+ assert_positive_infinite(m_zero ** -2)
+ assert_positive_infinite(m_zero ** -2.quo(1))
+ assert_positive_infinite(m_zero ** -2.0)
+ assert_positive_infinite(m_zero ** BigDecimal(-2))
+ end
+ end
+
+ def test_power_of_positive_infinity
+ BigDecimal.save_exception_mode do
+ BigDecimal.mode(BigDecimal::EXCEPTION_OVERFLOW, false)
+ assert_positive_infinite(BigDecimal::INFINITY ** 3)
+ assert_positive_infinite(BigDecimal::INFINITY ** 3.quo(1))
+ assert_positive_infinite(BigDecimal::INFINITY ** 3.0)
+ assert_positive_infinite(BigDecimal::INFINITY ** BigDecimal(3))
+ assert_positive_infinite(BigDecimal::INFINITY ** 2)
+ assert_positive_infinite(BigDecimal::INFINITY ** 2.quo(1))
+ assert_positive_infinite(BigDecimal::INFINITY ** 2.0)
+ assert_positive_infinite(BigDecimal::INFINITY ** BigDecimal(2))
+ assert_positive_infinite(BigDecimal::INFINITY ** 1)
+ assert_positive_infinite(BigDecimal::INFINITY ** 1.quo(1))
+ assert_positive_infinite(BigDecimal::INFINITY ** 1.0)
+ assert_positive_infinite(BigDecimal::INFINITY ** BigDecimal(1))
+ assert_equal(1, BigDecimal::INFINITY ** 0)
+ assert_equal(1, BigDecimal::INFINITY ** 0.quo(1))
+ assert_equal(1, BigDecimal::INFINITY ** 0.0)
+ assert_equal(1, BigDecimal::INFINITY ** BigDecimal(0))
+ assert_positive_zero(BigDecimal::INFINITY ** -1)
+ assert_positive_zero(BigDecimal::INFINITY ** -1.quo(1))
+ assert_positive_zero(BigDecimal::INFINITY ** -1.0)
+ assert_positive_zero(BigDecimal::INFINITY ** BigDecimal(-1))
+ assert_positive_zero(BigDecimal::INFINITY ** -2)
+ assert_positive_zero(BigDecimal::INFINITY ** -2.0)
+ assert_positive_zero(BigDecimal::INFINITY ** BigDecimal(-2))
+ end
+ end
+
+ def test_power_of_negative_infinity
+ BigDecimal.save_exception_mode do
+ BigDecimal.mode(BigDecimal::EXCEPTION_OVERFLOW, false)
+ assert_negative_infinite((-BigDecimal::INFINITY) ** 3)
+ assert_negative_infinite((-BigDecimal::INFINITY) ** 3.quo(1))
+ assert_negative_infinite((-BigDecimal::INFINITY) ** 3.0)
+ assert_negative_infinite((-BigDecimal::INFINITY) ** BigDecimal(3))
+ assert_positive_infinite((-BigDecimal::INFINITY) ** 2)
+ assert_positive_infinite((-BigDecimal::INFINITY) ** 2.quo(1))
+ assert_positive_infinite((-BigDecimal::INFINITY) ** 2.0)
+ assert_positive_infinite((-BigDecimal::INFINITY) ** BigDecimal(2))
+ assert_negative_infinite((-BigDecimal::INFINITY) ** 1)
+ assert_negative_infinite((-BigDecimal::INFINITY) ** 1.quo(1))
+ assert_negative_infinite((-BigDecimal::INFINITY) ** 1.0)
+ assert_negative_infinite((-BigDecimal::INFINITY) ** BigDecimal(1))
+ assert_equal(1, (-BigDecimal::INFINITY) ** 0)
+ assert_equal(1, (-BigDecimal::INFINITY) ** 0.quo(1))
+ assert_equal(1, (-BigDecimal::INFINITY) ** 0.0)
+ assert_equal(1, (-BigDecimal::INFINITY) ** BigDecimal(0))
+ assert_negative_zero((-BigDecimal::INFINITY) ** -1)
+ assert_negative_zero((-BigDecimal::INFINITY) ** -1.quo(1))
+ assert_negative_zero((-BigDecimal::INFINITY) ** -1.0)
+ assert_negative_zero((-BigDecimal::INFINITY) ** BigDecimal(-1))
+ assert_positive_zero((-BigDecimal::INFINITY) ** -2)
+ assert_positive_zero((-BigDecimal::INFINITY) ** -2.quo(1))
+ assert_positive_zero((-BigDecimal::INFINITY) ** -2.0)
+ assert_positive_zero((-BigDecimal::INFINITY) ** BigDecimal(-2))
+ end
+ end
- assert_equal(BigDecimal::SIGN_POSITIVE_INFINITE, (BigDecimal.new("-Infinity") ** 2).sign)
- assert_equal(BigDecimal::SIGN_NEGATIVE_INFINITE, (BigDecimal.new("-Infinity") ** 1).sign)
- assert_equal(1, BigDecimal.new("-Infinity") ** 0)
- assert_equal(BigDecimal::SIGN_NEGATIVE_ZERO, (BigDecimal.new("-Infinity") ** -1).sign)
- assert_equal(BigDecimal::SIGN_POSITIVE_ZERO, (BigDecimal.new("-Infinity") ** -2).sign)
+ def test_power_without_prec
+ pi = BigDecimal("3.14159265358979323846264338327950288419716939937511")
+ e = BigDecimal("2.71828182845904523536028747135266249775724709369996")
+ pow = BigDecimal("22.4591577183610454734271522045437350275893151339967843873233068")
+ assert_equal(pow, pi.power(e))
+ end
+
+ def test_power_with_prec
+ pi = BigDecimal("3.14159265358979323846264338327950288419716939937511")
+ e = BigDecimal("2.71828182845904523536028747135266249775724709369996")
+ pow = BigDecimal("22.459157718361045473")
+ assert_equal(pow, pi.power(e, 20))
end
def test_limit
@@ -691,4 +1086,215 @@ class TestBigDecimal < Test::Unit::TestCase
assert_equal(BigDecimal::SIGN_POSITIVE_ZERO, BigDecimal.new("1E-1" + "0" * 10000).sign)
assert_equal(BigDecimal::SIGN_NEGATIVE_ZERO, BigDecimal.new("-1E-1" + "0" * 10000).sign)
end
+
+ def test_split_under_gc_stress
+ bug3258 = '[ruby-dev:41213]'
+ stress, GC.stress = GC.stress, true
+ 10.upto(20) do |i|
+ b = BigDecimal.new("1"+"0"*i)
+ assert_equal([1, "1", 10, i+1], b.split, bug3258)
+ end
+ ensure
+ GC.stress = stress
+ end
+
+ def test_coerce_under_gc_stress
+ expect = ":too_long_to_embed_as_string can't be coerced into BigDecimal"
+ under_gc_stress do
+ b = BigDecimal.new("1")
+ 10.times do
+ begin
+ b.coerce(:too_long_to_embed_as_string)
+ rescue => e
+ assert_instance_of TypeError, e
+ assert_equal expect, e.message
+ end
+ end
+ end
+ end
+
+ def test_INFINITY
+ assert(BigDecimal::INFINITY.infinite?, "BigDecimal::INFINITY is not a infinity")
+ end
+
+ def test_NAN
+ assert(BigDecimal::NAN.nan?, "BigDecimal::NAN is not NaN")
+ end
+
+ def test_exp_with_zerp_precision
+ assert_raise(ArgumentError) do
+ BigMath.exp(1, 0)
+ end
+ end
+
+ def test_exp_with_negative_precision
+ assert_raise(ArgumentError) do
+ BigMath.exp(1, -42)
+ end
+ end
+
+ def test_exp_with_complex
+ assert_raise(ArgumentError) do
+ BigMath.exp(Complex(1, 2), 20)
+ end
+ end
+
+ def test_exp_with_negative_infinite
+ BigDecimal.save_exception_mode do
+ BigDecimal.mode(BigDecimal::EXCEPTION_INFINITY, false)
+ assert_equal(0, BigMath.exp(-BigDecimal::INFINITY, 20))
+ end
+ end
+
+ def test_exp_with_positive_infinite
+ BigDecimal.save_exception_mode do
+ BigDecimal.mode(BigDecimal::EXCEPTION_INFINITY, false)
+ assert(BigMath.exp(BigDecimal::INFINITY, 20) > 0)
+ assert(BigMath.exp(BigDecimal::INFINITY, 20).infinite?)
+ end
+ end
+
+ def test_exp_with_nan
+ BigDecimal.save_exception_mode do
+ BigDecimal.mode(BigDecimal::EXCEPTION_NaN, false)
+ assert(BigMath.exp(BigDecimal::NAN, 20).nan?)
+ end
+ end
+
+ def test_exp_with_1
+ assert_in_epsilon(Math::E, BigMath.exp(1, 20))
+ end
+
+ def test_BigMath_exp
+ n = 20
+ assert_in_epsilon(Math.exp(n), BigMath.exp(BigDecimal("20"), n))
+ assert_in_epsilon(Math.exp(40), BigMath.exp(BigDecimal("40"), n))
+ assert_in_epsilon(Math.exp(-n), BigMath.exp(BigDecimal("-20"), n))
+ assert_in_epsilon(Math.exp(-40), BigMath.exp(BigDecimal("-40"), n))
+ end
+
+ def test_BigMath_exp_under_gc_stress
+ expect = ":too_long_to_embed_as_string can't be coerced into BigDecimal"
+ under_gc_stress do
+ 10.times do
+ begin
+ BigMath.exp(:too_long_to_embed_as_string, 6)
+ rescue => e
+ assert_instance_of ArgumentError, e
+ assert_equal expect, e.message
+ end
+ end
+ end
+ end
+
+ def test_BigMath_log_with_nil
+ assert_raise(ArgumentError) do
+ BigMath.log(nil, 20)
+ end
+ end
+
+ def test_BigMath_log_with_nil_precision
+ assert_raise(ArgumentError) do
+ BigMath.log(1, nil)
+ end
+ end
+
+ def test_BigMath_log_with_complex
+ assert_raise(Math::DomainError) do
+ BigMath.log(Complex(1, 2), 20)
+ end
+ end
+
+ def test_BigMath_log_with_zerp_precision
+ assert_raise(ArgumentError) do
+ BigMath.log(1, 0)
+ end
+ end
+
+ def test_BigMath_log_with_negative_precision
+ assert_raise(ArgumentError) do
+ BigMath.log(1, -42)
+ end
+ end
+
+ def test_BigMath_log_with_negative_infinite
+ BigDecimal.save_exception_mode do
+ BigDecimal.mode(BigDecimal::EXCEPTION_INFINITY, false)
+ assert_raise(Math::DomainError) do
+ BigMath.log(-BigDecimal::INFINITY, 20)
+ end
+ end
+ end
+
+ def test_BigMath_log_with_positive_infinite
+ BigDecimal.save_exception_mode do
+ BigDecimal.mode(BigDecimal::EXCEPTION_INFINITY, false)
+ assert(BigMath.log(BigDecimal::INFINITY, 20) > 0)
+ assert(BigMath.log(BigDecimal::INFINITY, 20).infinite?)
+ end
+ end
+
+ def test_BigMath_log_with_nan
+ BigDecimal.save_exception_mode do
+ BigDecimal.mode(BigDecimal::EXCEPTION_NaN, false)
+ assert(BigMath.log(BigDecimal::NAN, 20).nan?)
+ end
+ end
+
+ def test_BigMath_log_with_1
+ assert_in_delta(0.0, BigMath.log(1, 20))
+ assert_in_delta(0.0, BigMath.log(1.0, 20))
+ assert_in_delta(0.0, BigMath.log(BigDecimal(1), 20))
+ end
+
+ def test_BigMath_log_with_exp_1
+ assert_in_delta(1.0, BigMath.log(BigMath.exp(1, 20), 20))
+ end
+
+ def test_BigMath_log_with_2
+ assert_in_delta(Math.log(2), BigMath.log(2, 20))
+ assert_in_delta(Math.log(2), BigMath.log(2.0, 20))
+ assert_in_delta(Math.log(2), BigMath.log(BigDecimal(2), 20))
+ end
+
+ def test_BigMath_log_with_square_of_exp_2
+ assert_in_delta(2, BigMath.log(BigMath.exp(1, 20)**2, 20))
+ end
+
+ def test_BigMath_log_with_42
+ assert_in_delta(Math.log(42), BigMath.log(42, 20))
+ assert_in_delta(Math.log(42), BigMath.log(42.0, 20))
+ assert_in_delta(Math.log(42), BigMath.log(BigDecimal(42), 20))
+ end
+
+ def test_BigMath_log_with_reciprocal_of_42
+ assert_in_delta(Math.log(1e-42), BigMath.log(1e-42, 20))
+ assert_in_delta(Math.log(1e-42), BigMath.log(BigDecimal("1e-42"), 20))
+ end
+
+ def test_BigMath_log_under_gc_stress
+ expect = ":too_long_to_embed_as_string can't be coerced into BigDecimal"
+ under_gc_stress do
+ 10.times do
+ begin
+ BigMath.log(:too_long_to_embed_as_string, 6)
+ rescue => e
+ assert_instance_of ArgumentError, e
+ assert_equal expect, e.message
+ end
+ end
+ end
+ end
+
+ def test_to_d
+ bug6093 = '[ruby-core:42969]'
+ code = "exit(BigDecimal.new('10.0') == 10.0.to_d)"
+ assert_ruby_status(%w[-rbigdecimal -rbigdecimal/util -rmathn -], code, bug6093)
+ end
+
+ def test_to_d
+ bug6093 = '[ruby-core:42969]'
+ code = "exit(BigDecimal.new('10.0') == 10.0.to_d)"
+ assert_ruby_status(%w[-rbigdecimal -rbigdecimal/util -rmathn -], code, bug6093)
+ end
end
diff --git a/test/bigdecimal/test_bigdecimal_util.rb b/test/bigdecimal/test_bigdecimal_util.rb
new file mode 100644
index 0000000000..301c85e417
--- /dev/null
+++ b/test/bigdecimal/test_bigdecimal_util.rb
@@ -0,0 +1,43 @@
+require_relative "testbase"
+
+require 'bigdecimal/util'
+
+class TestBigDecimalUtil < Test::Unit::TestCase
+ def test_BigDecimal_to_d
+ x = BigDecimal(1)
+ assert_same(x, x.to_d)
+ end
+
+ def test_Integer_to_d
+ assert_equal(BigDecimal(1), 1.to_d)
+ assert_equal(BigDecimal(2<<100), (2<<100).to_d)
+ end
+
+ def test_Float_to_d_without_precision
+ delta = 1.0/10**(Float::DIG + 1)
+ assert_in_delta(BigDecimal(0.5, Float::DIG+1), 0.5.to_d, delta)
+ assert_in_delta(BigDecimal(355.0/113.0, Float::DIG+1), (355.0/113.0).to_d, delta)
+ end
+
+ def test_Float_to_d_with_precision
+ digits = 5
+ delta = 1.0/10**(digits)
+ assert_in_delta(BigDecimal(0.5, 5), 0.5.to_d(digits), delta)
+ assert_in_delta(BigDecimal(355.0/113.0, 5), (355.0/113.0).to_d(digits), delta)
+ end
+
+ def test_Rational_to_d
+ digits = 100
+ delta = 1.0/10**(digits)
+ assert_in_delta(BigDecimal(1.quo(2), digits), 1.quo(2).to_d(digits), delta)
+ assert_in_delta(BigDecimal(355.quo(113), digits), 355.quo(113).to_d(digits), delta)
+ end
+
+ def test_Rational_to_d_with_zero_precision
+ assert_equal(355.quo(113).to_d, 355.quo(113).to_d(BigDecimal.double_fig*2+1))
+ end
+
+ def test_Rational_to_d_with_negative_precision
+ assert_raise(ArgumentError) { 355.quo(113).to_d(-42) }
+ end
+end
diff --git a/test/bigdecimal/test_bigmath.rb b/test/bigdecimal/test_bigmath.rb
new file mode 100644
index 0000000000..2ccdb510f9
--- /dev/null
+++ b/test/bigdecimal/test_bigmath.rb
@@ -0,0 +1,63 @@
+require_relative "testbase"
+require "bigdecimal/math"
+
+class TestBigMath < Test::Unit::TestCase
+ include TestBigDecimalBase
+ include BigMath
+ N = 20
+ PINF = BigDecimal("+Infinity")
+ MINF = BigDecimal("-Infinity")
+ NAN = BigDecimal("NaN")
+
+ def test_const
+ assert_in_delta(Math::PI, PI(N))
+ assert_in_delta(Math::E, E(N))
+ end
+
+ def test_sqrt
+ assert_in_delta(2**0.5, sqrt(BigDecimal("2"), N))
+ assert_equal(10, sqrt(BigDecimal("100"), N))
+ assert_equal(0.0, sqrt(BigDecimal("0"), N))
+ assert_equal(0.0, sqrt(BigDecimal("-0"), N))
+ assert_raise(FloatDomainError) {sqrt(BigDecimal("-1.0"), N)}
+ assert_raise(FloatDomainError) {sqrt(NAN, N)}
+ assert_raise(FloatDomainError) {sqrt(PINF, N)}
+ end
+
+ def test_sin
+ assert_in_delta(0.0, sin(BigDecimal("0.0"), N))
+ assert_in_delta(Math.sqrt(2.0) / 2, sin(PI(N) / 4, N))
+ assert_in_delta(1.0, sin(PI(N) / 2, N))
+ assert_in_delta(0.0, sin(PI(N) * 2, N))
+ assert_in_delta(0.0, sin(PI(N), N))
+ assert_in_delta(-1.0, sin(PI(N) / -2, N))
+ assert_in_delta(0.0, sin(PI(N) * -2, N))
+ assert_in_delta(0.0, sin(-PI(N), N))
+ assert_in_delta(0.0, sin(PI(N) * 21, N))
+ assert_in_delta(0.0, sin(PI(N) * 30, N))
+ assert_in_delta(-1.0, sin(PI(N) * BigDecimal("301.5"), N))
+ end
+
+ def test_cos
+ assert_in_delta(1.0, cos(BigDecimal("0.0"), N))
+ assert_in_delta(Math.sqrt(2.0) / 2, cos(PI(N) / 4, N))
+ assert_in_delta(0.0, cos(PI(N) / 2, N))
+ assert_in_delta(1.0, cos(PI(N) * 2, N))
+ assert_in_delta(-1.0, cos(PI(N), N))
+ assert_in_delta(0.0, cos(PI(N) / -2, N))
+ assert_in_delta(1.0, cos(PI(N) * -2, N))
+ assert_in_delta(-1.0, cos(-PI(N), N))
+ assert_in_delta(-1.0, cos(PI(N) * 21, N))
+ assert_in_delta(1.0, cos(PI(N) * 30, N))
+ assert_in_delta(0.0, cos(PI(N) * BigDecimal("301.5"), N))
+ end
+
+ def test_atan
+ assert_equal(0.0, atan(BigDecimal("0.0"), N))
+ assert_in_delta(Math::PI/4, atan(BigDecimal("1.0"), N))
+ assert_in_delta(Math::PI/6, atan(sqrt(BigDecimal("3.0"), N) / 3, N))
+ assert_in_delta(Math::PI/2, atan(PINF, N))
+ assert_equal(BigDecimal("0.823840753418636291769355073102514088959345624027952954058347023122539489"),
+ atan(BigDecimal("1.08"), 72).round(72), '[ruby-dev:41257]')
+ end
+end
diff --git a/test/bigdecimal/testbase.rb b/test/bigdecimal/testbase.rb
new file mode 100644
index 0000000000..c014e61e92
--- /dev/null
+++ b/test/bigdecimal/testbase.rb
@@ -0,0 +1,27 @@
+require "test/unit"
+require "bigdecimal"
+
+module TestBigDecimalBase
+ def setup
+ @mode = BigDecimal.mode(BigDecimal::EXCEPTION_ALL)
+ BigDecimal.mode(BigDecimal::EXCEPTION_ALL, true)
+ BigDecimal.mode(BigDecimal::EXCEPTION_UNDERFLOW, true)
+ BigDecimal.mode(BigDecimal::EXCEPTION_OVERFLOW, true)
+ BigDecimal.mode(BigDecimal::ROUND_MODE, BigDecimal::ROUND_HALF_UP)
+ BigDecimal.limit(0)
+ end
+
+ def teardown
+ [BigDecimal::EXCEPTION_INFINITY, BigDecimal::EXCEPTION_NaN,
+ BigDecimal::EXCEPTION_UNDERFLOW, BigDecimal::EXCEPTION_OVERFLOW].each do |mode|
+ BigDecimal.mode(mode, !(@mode & mode).zero?)
+ end
+ end
+
+ def under_gc_stress
+ stress, GC.stress = GC.stress, true
+ yield
+ ensure
+ GC.stress = stress
+ end
+end
diff --git a/test/cgi/test_cgi_cookie.rb b/test/cgi/test_cgi_cookie.rb
index f9950d1fb1..c1c6a30e70 100644
--- a/test/cgi/test_cgi_cookie.rb
+++ b/test/cgi/test_cgi_cookie.rb
@@ -8,6 +8,8 @@ class CGICookieTest < Test::Unit::TestCase
def setup
ENV['REQUEST_METHOD'] = 'GET'
+ @str1="\xE3\x82\x86\xE3\x82\x93\xE3\x82\x86\xE3\x82\x93"
+ @str1.force_encoding("UTF-8") if defined?(::Encoding)
end
def teardown
@@ -18,20 +20,21 @@ class CGICookieTest < Test::Unit::TestCase
def test_cgi_cookie_new_simple
- cookie = CGI::Cookie.new('name1', 'val1', '&<>"', "\245\340\245\271\245\253")
+ cookie = CGI::Cookie.new('name1', 'val1', '&<>"', @str1)
assert_equal('name1', cookie.name)
- assert_equal(['val1', '&<>"', "\245\340\245\271\245\253"], cookie.value)
+ assert_equal(['val1', '&<>"', @str1], cookie.value)
assert_nil(cookie.domain)
assert_nil(cookie.expires)
assert_equal('', cookie.path)
assert_equal(false, cookie.secure)
- assert_equal("name1=val1&%26%3C%3E%22&%A5%E0%A5%B9%A5%AB; path=", cookie.to_s)
+ assert_equal("name1=val1&%26%3C%3E%22&%E3%82%86%E3%82%93%E3%82%86%E3%82%93; path=", cookie.to_s)
end
def test_cgi_cookie_new_complex
t = Time.gm(2030, 12, 31, 23, 59, 59)
- value = ['val1', '&<>"', "\245\340\245\271\245\253"]
+ value = ['val1', '&<>"', "\xA5\xE0\xA5\xB9\xA5\xAB"]
+ value[2].force_encoding("EUC-JP") if defined?(::Encoding)
cookie = CGI::Cookie.new('name'=>'name1',
'value'=>value,
'path'=>'/cgi-bin/myapp/',
@@ -65,11 +68,11 @@ class CGICookieTest < Test::Unit::TestCase
def test_cgi_cookie_parse
## ';' separator
- cookie_str = 'name1=val1&val2; name2=val2&%26%3C%3E%22;_session_id=12345'
+ cookie_str = 'name1=val1&val2; name2=val2&%26%3C%3E%22&%E3%82%86%E3%82%93%E3%82%86%E3%82%93;_session_id=12345'
cookies = CGI::Cookie.parse(cookie_str)
list = [
['name1', ['val1', 'val2']],
- ['name2', ['val2', '&<>"']],
+ ['name2', ['val2', '&<>"',@str1]],
['_session_id', ['12345']],
]
list.each do |name, value|
@@ -78,7 +81,7 @@ class CGICookieTest < Test::Unit::TestCase
assert_equal(value, cookie.value)
end
## ',' separator
- cookie_str = 'name1=val1&val2, name2=val2&%26%3C%3E%22,_session_id=12345'
+ cookie_str = 'name1=val1&val2, name2=val2&%26%3C%3E%22&%E3%82%86%E3%82%93%E3%82%86%E3%82%93,_session_id=12345'
cookies = CGI::Cookie.parse(cookie_str)
list.each do |name, value|
cookie = cookies[name]
diff --git a/test/cgi/test_cgi_core.rb b/test/cgi/test_cgi_core.rb
index 3f75b04fd4..23b8891576 100644
--- a/test/cgi/test_cgi_core.rb
+++ b/test/cgi/test_cgi_core.rb
@@ -124,7 +124,7 @@ class CGICoreTest < Test::Unit::TestCase
$stdin = StringIO.new
$stdin << query_str
$stdin.rewind
- if RUBY_VERSION>="1.9.0"
+ if defined?(::Encoding)
hash={}
cgi = CGI.new(:accept_charset=>"UTF-8"){|key,val|hash[key]=val}
## cgi[]
@@ -251,7 +251,7 @@ class CGICoreTest < Test::Unit::TestCase
"Content-Length: 22\r\n" +
"\r\n" +
euc_str
- if RUBY_VERSION>="1.9"
+ if defined?(::Encoding)
actual.force_encoding("ASCII-8BIT")
expected.force_encoding("ASCII-8BIT")
end
diff --git a/test/cgi/test_cgi_header.rb b/test/cgi/test_cgi_header.rb
index 58f82ba3bc..c9d939bd49 100644
--- a/test/cgi/test_cgi_header.rb
+++ b/test/cgi/test_cgi_header.rb
@@ -1,5 +1,6 @@
require 'test/unit'
require 'cgi'
+require 'time'
class CGIHeaderTest < Test::Unit::TestCase
@@ -130,6 +131,7 @@ class CGIHeaderTest < Test::Unit::TestCase
def test_cgi_header_nph
+ time_start = Time.now.to_i
cgi = CGI.new
## 'nph' is true
ENV['SERVER_SOFTWARE'] = 'Apache 2.2.0'
@@ -142,10 +144,16 @@ class CGIHeaderTest < Test::Unit::TestCase
ENV['SERVER_SOFTWARE'] = 'IIS/5.0'
actual4 = cgi.header
actual5 = cgi.header('status'=>'REDIRECT', 'location'=>'http://www.example.com/')
+ time_end = Time.now.to_i
+ date = /^Date: ([A-Z][a-z]{2}, \d{2} [A-Z][a-z]{2} \d{4} \d\d:\d\d:\d\d GMT)\r\n/
+ [actual1, actual2, actual3].each do |actual|
+ assert_match(date, actual)
+ assert_includes(time_start..time_end, date =~ actual && Time.parse($1).to_i)
+ actual.sub!(date, "Date: DATE_IS_REMOVED\r\n")
+ end
## assertion
- now = Time.now
expected = "HTTP/1.1 200 OK\r\n"
- expected << "Date: #{CGI.rfc1123_date(now)}\r\n"
+ expected << "Date: DATE_IS_REMOVED\r\n"
expected << "Server: Apache 2.2.0\r\n"
expected << "Connection: close\r\n"
expected << "Content-Type: text/html\r\n"
diff --git a/test/cgi/test_cgi_multipart.rb b/test/cgi/test_cgi_multipart.rb
index 47a41f6488..b51bb7fe2c 100644
--- a/test/cgi/test_cgi_multipart.rb
+++ b/test/cgi/test_cgi_multipart.rb
@@ -32,7 +32,7 @@ class MultiPart
def initialize(boundary=nil)
@boundary = boundary || create_boundary()
@buf = ''
- @buf.force_encoding("ascii-8bit") if RUBY_VERSION>="1.9"
+ @buf.force_encoding(::Encoding::ASCII_8BIT) if defined?(::Encoding)
end
attr_reader :boundary
@@ -44,11 +44,8 @@ class MultiPart
buf << "Content-Disposition: form-data: name=\"#{name}\"#{s}\r\n"
buf << "Content-Type: #{content_type}\r\n" if content_type
buf << "\r\n"
- if RUBY_VERSION>="1.9"
- buf << value.dup.force_encoding("ASCII-8BIT")
- else
- buf << value
- end
+ value = value.dup.force_encoding(::Encoding::ASCII_8BIT) if defined?(::Encoding)
+ buf << value
buf << "\r\n"
return self
end
@@ -135,11 +132,8 @@ class CGIMultipartTest < Test::Unit::TestCase
ENV['CONTENT_LENGTH'] = input.length.to_s
ENV['REQUEST_METHOD'] = 'POST'
## set $stdin
- tmpfile = if RUBY_VERSION >="1.9"
- Tempfile.new(self.name, :binmode => true)
- else
- Tempfile.new(self.name)
- end
+ tmpfile = Tempfile.new('test_cgi_multipart')
+ tmpfile.binmode
tmpfile << input
tmpfile.rewind()
$stdin = tmpfile
@@ -179,11 +173,7 @@ class CGIMultipartTest < Test::Unit::TestCase
def _read(basename)
filename = File.join(File.dirname(__FILE__), 'testdata', basename)
- if RUBY_VERSION>="1.9"
- s = File.open(filename, 'r:ascii-8bit') {|f| f.read() }
- else
- s = File.open(filename, 'rb') {|f| f.read() }
- end
+ s = File.open(filename, 'rb') {|f| f.read() }
return s
end
@@ -199,7 +189,7 @@ class CGIMultipartTest < Test::Unit::TestCase
{:name=>'image1', :value=>_read('small.png'),
:filename=>'small.png', :content_type=>'image/png'}, # small image
]
- @data[1][:value].force_encoding("UTF-8") if RUBY_VERSION>="1.9"
+ @data[1][:value].force_encoding(::Encoding::UTF_8) if defined?(::Encoding)
@expected_class = StringIO
_test_multipart()
end
@@ -215,7 +205,7 @@ class CGIMultipartTest < Test::Unit::TestCase
{:name=>'image1', :value=>_read('large.png'),
:filename=>'large.png', :content_type=>'image/png'}, # large image
]
- @data[1][:value].force_encoding("UTF-8") if RUBY_VERSION>="1.9"
+ @data[1][:value].force_encoding(::Encoding::UTF_8) if defined?(::Encoding)
@expected_class = Tempfile
_test_multipart()
end
@@ -282,7 +272,7 @@ class CGIMultipartTest < Test::Unit::TestCase
ex = assert_raise(EOFError) do
cgi = RUBY_VERSION>="1.9" ? CGI.new(:accept_charset=>"UTF-8") : CGI.new
end
- assert_equal("bad boundary end of body part", ex.message)
+ assert_equal("bad content body", ex.message)
#
_prepare(@data) do |input|
input2 = input.sub(/--(\r\n)?\z/, "")
@@ -313,6 +303,19 @@ class CGIMultipartTest < Test::Unit::TestCase
assert_equal('file1.html', cgi['file1'].original_filename)
end
+ def test_cgi_multipart_boundary_10240 # [Bug #3866]
+ @boundary = 'AaB03x'
+ @data = [
+ {:name=>'file', :value=>"b"*10134,
+ :filename=>'file.txt', :content_type=>'text/plain'},
+ {:name=>'foo', :value=>"bar"},
+ ]
+ _prepare(@data)
+ cgi = RUBY_VERSION>="1.9" ? CGI.new(:accept_charset=>"UTF-8") : CGI.new
+ assert_equal(cgi['foo'], 'bar')
+ assert_equal(cgi['file'].read, 'b'*10134)
+ end
+
###
self.instance_methods.each do |method|
diff --git a/test/cgi/test_cgi_session.rb b/test/cgi/test_cgi_session.rb
index 6cccb22240..f3b8e60865 100644
--- a/test/cgi/test_cgi_session.rb
+++ b/test/cgi/test_cgi_session.rb
@@ -7,14 +7,14 @@ require 'tmpdir'
class CGISessionTest < Test::Unit::TestCase
def setup
- @session_dir = File.join(Dir.mktmpdir('__test_dir__'), 'session_dir')
+ @session_dir = File.join(File.dirname(__FILE__), 'session_dir')
FileUtils.mkdir_p @session_dir
end
def teardown
@environ.each do |key, val| ENV.delete(key) end
$stdout = STDOUT
- FileUtils.rm_rf(File.dirname(@session_dir))
+ FileUtils.rm_rf(@session_dir)
end
def test_cgi_session_filestore
@@ -27,7 +27,7 @@ class CGISessionTest < Test::Unit::TestCase
}
value1="value1"
value2="\x8F\xBC\x8D]"
- value2.force_encoding("SJIS") if RUBY_VERSION>="1.9"
+ value2.force_encoding("SJIS") if defined?(::Encoding)
ENV.update(@environ)
cgi = CGI.new
session = CGI::Session.new(cgi,"tmpdir"=>@session_dir)
@@ -65,7 +65,7 @@ class CGISessionTest < Test::Unit::TestCase
}
value1="value1"
value2="\x8F\xBC\x8D]"
- value2.force_encoding("SJIS") if RUBY_VERSION>="1.9"
+ value2.force_encoding("SJIS") if defined?(::Encoding)
ENV.update(@environ)
cgi = CGI.new
session = CGI::Session.new(cgi,"tmpdir"=>@session_dir,"database_manager"=>CGI::Session::PStore)
@@ -102,7 +102,7 @@ class CGISessionTest < Test::Unit::TestCase
}
value1="value1"
value2="\x8F\xBC\x8D]"
- value2.force_encoding("SJIS") if RUBY_VERSION>="1.9"
+ value2.force_encoding("SJIS") if defined?(::Encoding)
ENV.update(@environ)
cgi = CGI.new
session = CGI::Session.new(cgi,"tmpdir"=>@session_dir,"session_id"=>"foo")
@@ -142,7 +142,7 @@ class CGISessionTest < Test::Unit::TestCase
}
value1="value1"
value2="\x8F\xBC\x8D]"
- value2.force_encoding("SJIS") if RUBY_VERSION>="1.9"
+ value2.force_encoding("SJIS") if defined?(::Encoding)
ENV.update(@environ)
cgi = CGI.new
session = CGI::Session.new(cgi,"tmpdir"=>@session_dir,"session_key"=>"bar")
diff --git a/test/cgi/test_cgi_util.rb b/test/cgi/test_cgi_util.rb
new file mode 100644
index 0000000000..71e8beac3d
--- /dev/null
+++ b/test/cgi/test_cgi_util.rb
@@ -0,0 +1,38 @@
+require 'test/unit'
+require 'cgi'
+require 'stringio'
+
+
+class CGIUtilTest < Test::Unit::TestCase
+
+
+ def setup
+ ENV['REQUEST_METHOD'] = 'GET'
+ @str1="&<>\" \xE3\x82\x86\xE3\x82\x93\xE3\x82\x86\xE3\x82\x93"
+ @str1.force_encoding("UTF-8") if defined?(::Encoding)
+ end
+
+ def teardown
+ %W[REQUEST_METHOD SCRIPT_NAME].each do |name|
+ ENV.delete(name)
+ end
+ end
+
+
+ def test_cgi_escape
+ assert_equal('%26%3C%3E%22+%E3%82%86%E3%82%93%E3%82%86%E3%82%93', CGI::escape(@str1))
+ assert_equal('%26%3C%3E%22+%E3%82%86%E3%82%93%E3%82%86%E3%82%93'.ascii_only?, CGI::escape(@str1).ascii_only?) if defined?(::Encoding)
+ end
+
+ def test_cgi_unescape
+ assert_equal(@str1, CGI::unescape('%26%3C%3E%22+%E3%82%86%E3%82%93%E3%82%86%E3%82%93'))
+ assert_equal(@str1.encoding, CGI::unescape('%26%3C%3E%22+%E3%82%86%E3%82%93%E3%82%86%E3%82%93').encoding) if defined?(::Encoding)
+ assert_equal("\u{30E1 30E2 30EA 691C 7D22}", CGI.unescape("\u{30E1 30E2 30EA}%E6%A4%9C%E7%B4%A2"))
+ end
+
+ def test_cgi_pretty
+ assert_equal("<HTML>\n <BODY>\n </BODY>\n</HTML>\n",CGI::pretty("<HTML><BODY></BODY></HTML>"))
+ assert_equal("<HTML>\n\t<BODY>\n\t</BODY>\n</HTML>\n",CGI::pretty("<HTML><BODY></BODY></HTML>","\t"))
+ end
+
+end
diff --git a/test/coverage/test_coverage.rb b/test/coverage/test_coverage.rb
new file mode 100644
index 0000000000..4d785c3c0e
--- /dev/null
+++ b/test/coverage/test_coverage.rb
@@ -0,0 +1,64 @@
+require "test/unit"
+require "coverage"
+require "tmpdir"
+
+class TestCoverage < Test::Unit::TestCase
+ def test_result_without_start
+ assert_raise(RuntimeError) {Coverage.result}
+ end
+ def test_result_with_nothing
+ Coverage.start
+ result = Coverage.result
+ assert_kind_of(Hash, result)
+ result.each do |key, val|
+ assert_kind_of(String, key)
+ assert_kind_of(Array, val)
+ end
+ end
+
+ def test_restarting_coverage
+ loaded_features = $".dup
+
+ Dir.mktmpdir {|tmp|
+ Dir.chdir(tmp) {
+ File.open("test.rb", "w") do |f|
+ f.puts <<-EOS
+ def coverage_test_method
+ :ok
+ end
+ EOS
+ end
+
+ Coverage.start
+ require tmp + '/test.rb'
+ assert_equal 3, Coverage.result[tmp + '/test.rb'].size
+ Coverage.start
+ coverage_test_method
+ assert_equal 0, Coverage.result[tmp + '/test.rb'].size
+ }
+ }
+ ensure
+ $".replace loaded_features
+ end
+
+ def test_big_code
+ loaded_features = $".dup
+
+ Dir.mktmpdir {|tmp|
+ Dir.chdir(tmp) {
+ File.open("test.rb", "w") do |f|
+ f.puts "p\n" * 10000
+ f.puts "def ignore(x); end"
+ f.puts "ignore([1"
+ f.puts "])"
+ end
+
+ Coverage.start
+ require tmp + '/test.rb'
+ assert_equal 10003, Coverage.result[tmp + '/test.rb'].size
+ }
+ }
+ ensure
+ $".replace loaded_features
+ end
+end
diff --git a/test/csv/base.rb b/test/csv/base.rb
new file mode 100644
index 0000000000..42f4fa26ea
--- /dev/null
+++ b/test/csv/base.rb
@@ -0,0 +1,8 @@
+require "test/unit"
+
+require "csv"
+
+require_relative "../with_different_ofs.rb"
+
+class TestCSV < Test::Unit::TestCase
+end
diff --git a/test/csv/test_csv_parsing.rb b/test/csv/test_csv_parsing.rb
index a9e6cd400c..319f3f392f 100644..100755
--- a/test/csv/test_csv_parsing.rb
+++ b/test/csv/test_csv_parsing.rb
@@ -7,10 +7,9 @@
# Copyright 2005 James Edward Gray II. You can redistribute or modify this code
# under the terms of Ruby's license.
-require "test/unit"
require "timeout"
-require "csv"
+require_relative "base"
#
# Following tests are my interpretation of the
@@ -18,7 +17,9 @@ require "csv"
# document in one place (intentionally) and that is to make the default row
# separator <tt>$/</tt>.
#
-class TestCSVParsing < Test::Unit::TestCase
+class TestCSV::Parsing < TestCSV
+ extend DifferentOFS
+
BIG_DATA = "123456789\n" * 1024
def test_mastering_regex_example
@@ -115,6 +116,34 @@ class TestCSVParsing < Test::Unit::TestCase
assert_equal(Array.new, CSV.parse_line("\n1,2,3\n"))
end
+ def test_rob_edge_cases
+ [ [%Q{"a\nb"}, ["a\nb"]],
+ [%Q{"\n\n\n"}, ["\n\n\n"]],
+ [%Q{a,"b\n\nc"}, ['a', "b\n\nc"]],
+ [%Q{,"\r\n"}, [nil,"\r\n"]],
+ [%Q{,"\r\n."}, [nil,"\r\n."]],
+ [%Q{"a\na","one newline"}, ["a\na", 'one newline']],
+ [%Q{"a\n\na","two newlines"}, ["a\n\na", 'two newlines']],
+ [%Q{"a\r\na","one CRLF"}, ["a\r\na", 'one CRLF']],
+ [%Q{"a\r\n\r\na","two CRLFs"}, ["a\r\n\r\na", 'two CRLFs']],
+ [%Q{with blank,"start\n\nfinish"\n}, ['with blank', "start\n\nfinish"]],
+ ].each do |edge_case|
+ assert_equal(edge_case.last, CSV.parse_line(edge_case.first))
+ end
+ end
+
+ def test_non_regex_edge_cases
+ # An early version of the non-regex parser fails this test
+ [ [ "foo,\"foo,bar,baz,foo\",\"foo\"",
+ ["foo", "foo,bar,baz,foo", "foo"] ] ].each do |edge_case|
+ assert_equal(edge_case.last, CSV.parse_line(edge_case.first))
+ end
+
+ assert_raise(CSV::MalformedCSVError) do
+ CSV.parse_line("1,\"23\"4\"5\", 6")
+ end
+ end
+
def test_malformed_csv
assert_raise(CSV::MalformedCSVError) do
CSV.parse_line("1,2\r,3", row_sep: "\n")
@@ -162,7 +191,7 @@ class TestCSVParsing < Test::Unit::TestCase
assert_send([csv.lineno, :<, 4])
end
rescue CSV::MalformedCSVError
- assert_equal("Illegal quoting on line 4.", $!.message)
+ assert_equal("Illegal quoting in line 4.", $!.message)
end
end
diff --git a/test/csv/test_csv_writing.rb b/test/csv/test_csv_writing.rb
index eacba49613..704c1d7ddc 100644..100755
--- a/test/csv/test_csv_writing.rb
+++ b/test/csv/test_csv_writing.rb
@@ -7,11 +7,11 @@
# Copyright 2005 James Edward Gray II. You can redistribute or modify this code
# under the terms of Ruby's license.
-require "test/unit"
+require_relative "base"
-require "csv"
+class TestCSV::Writing < TestCSV
+ extend DifferentOFS
-class TestCSVWriting < Test::Unit::TestCase
def test_writing
[ ["\t", ["\t"]],
["foo,\"\"\"\"\"\",baz", ["foo", "\"\"", "baz"]],
diff --git a/test/csv/test_data_converters.rb b/test/csv/test_data_converters.rb
index 1ad5093424..3351620e10 100644..100755
--- a/test/csv/test_data_converters.rb
+++ b/test/csv/test_data_converters.rb
@@ -7,12 +7,13 @@
# Copyright 2005 James Edward Gray II. You can redistribute or modify this code
# under the terms of Ruby's license.
-require "test/unit"
+require_relative "base"
-require "csv"
+class TestCSV::DataConverters < TestCSV
+ extend DifferentOFS
-class TestDataConverters < Test::Unit::TestCase
def setup
+ super
@data = "Numbers,:integer,1,:float,3.015"
@parser = CSV.new(@data)
@@ -65,24 +66,25 @@ class TestDataConverters < Test::Unit::TestCase
assert_instance_of(String, CSV::Converters[:date_time]["junk"])
end
- def test_convert_with_builtin
+ def test_convert_with_builtin_integer
# setup parser...
assert(@parser.respond_to?(:convert))
assert_nothing_raised(Exception) { @parser.convert(:integer) }
# and use
assert_equal(["Numbers", ":integer", 1, ":float", "3.015"], @parser.shift)
+ end
- setup # reset
-
+ def test_convert_with_builtin_float
# setup parser...
+ assert(@parser.respond_to?(:convert))
assert_nothing_raised(Exception) { @parser.convert(:float) }
# and use
assert_equal(["Numbers", ":integer", 1.0, ":float", 3.015], @parser.shift)
end
- def test_convert_order
+ def test_convert_order_float_integer
# floats first, then integers...
assert_nothing_raised(Exception) do
@parser.convert(:float)
@@ -92,9 +94,9 @@ class TestDataConverters < Test::Unit::TestCase
# gets us nothing but floats
assert_equal( [String, String, Float, String, Float],
@parser.shift.map { |field| field.class } )
+ end
- setup # reset
-
+ def test_convert_order_integer_float
# integers have precendance...
assert_nothing_raised(Exception) do
@parser.convert(:integer)
@@ -134,9 +136,9 @@ class TestDataConverters < Test::Unit::TestCase
# and use
assert_equal(["Numbers", :integer, "1", :float, "3.015"], @parser.shift)
+ end
- setup # reset
-
+ def test_convert_with_custom_code_mix
# mix built-in and custom...
assert_nothing_raised(Exception) { @parser.convert(:numeric) }
assert_nothing_raised(Exception) { @parser.convert(&@custom) }
diff --git a/test/csv/test_encodings.rb b/test/csv/test_encodings.rb
index 63f7207c29..5ff6d33821 100644..100755
--- a/test/csv/test_encodings.rb
+++ b/test/csv/test_encodings.rb
@@ -7,17 +7,22 @@
# Copyright 2008 James Edward Gray II. You can redistribute or modify this code
# under the terms of Ruby's license.
-require "test/unit"
+require_relative "base"
-require "csv"
+class TestCSV::Encodings < TestCSV
+ extend DifferentOFS
-class TestEncodings < Test::Unit::TestCase
def setup
- @temp_csv_path = File.join(File.dirname(__FILE__), "temp.csv")
+ super
+ require 'tempfile'
+ @temp_csv_file = Tempfile.new(%w"test_csv. .csv")
+ @temp_csv_path = @temp_csv_file.path
+ @temp_csv_file.close
end
def teardown
- File.unlink(@temp_csv_path) if File.exist? @temp_csv_path
+ @temp_csv_file.close!
+ super
end
########################################
@@ -74,6 +79,25 @@ class TestEncodings < Test::Unit::TestCase
end
end
+ def test_read_with_default_encoding
+ data = "abc"
+ default_external = Encoding.default_external
+ each_encoding do |encoding|
+ File.open(@temp_csv_path, "wb", encoding: encoding) {|f| f << data}
+ begin
+ no_warnings do
+ Encoding.default_external = encoding
+ end
+ result = CSV.read(@temp_csv_path)[0][0]
+ ensure
+ no_warnings do
+ Encoding.default_external = default_external
+ end
+ end
+ assert_equal(encoding, result.encoding)
+ end
+ end
+
#######################################################################
### Stress Test ASCII Compatible and Non-ASCII Compatible Encodings ###
#######################################################################
@@ -153,10 +177,9 @@ class TestEncodings < Test::Unit::TestCase
def test_foreach_allows_you_to_set_encodings
encode_for_tests([%w[abc def]]) do |data|
# read and write in encoding
- File.open(@temp_csv_path, "wb:#{data.encoding.name}") { |f| f << data }
- CSV.foreach(@temp_csv_path, encoding: data.encoding.name) do |row|
- assert( row.all? { |f| f.encoding == data.encoding },
- "Wrong data encoding." )
+ File.open(@temp_csv_path, "wb", encoding: data.encoding) { |f| f << data }
+ CSV.foreach(@temp_csv_path, encoding: data.encoding) do |row|
+ row.each {|f| assert_equal(f.encoding, data.encoding)}
end
# read and write with transcoding
@@ -197,8 +220,12 @@ class TestEncodings < Test::Unit::TestCase
def test_can_write_csv_in_any_encoding
each_encoding do |encoding|
# test generate_line with encoding hint
- csv = %w[abc d|ef].map { |f| f.encode(encoding) }.
- to_csv(col_sep: "|", encoding: encoding.name)
+ begin
+ csv = %w[abc d|ef].map { |f| f.encode(encoding) }.
+ to_csv(col_sep: "|", encoding: encoding.name)
+ rescue Encoding::ConverterNotFoundError
+ next
+ end
assert_equal(encoding, csv.encoding)
# test generate_line with encoding guessing from fields
@@ -214,16 +241,65 @@ class TestEncodings < Test::Unit::TestCase
end
end
+ def test_encoding_is_upgraded_during_writing_as_needed
+ data = ["foo".force_encoding("US-ASCII"), "\u3042"]
+ assert_equal("US-ASCII", data.first.encoding.name)
+ assert_equal("UTF-8", data.last.encoding.name)
+ assert_equal("UTF-8", data.join('').encoding.name)
+ assert_equal("UTF-8", data.to_csv.encoding.name)
+ end
+
+ def test_encoding_is_upgraded_for_ascii_content_during_writing_as_needed
+ data = ["foo".force_encoding("ISO-8859-1"), "\u3042"]
+ assert_equal("ISO-8859-1", data.first.encoding.name)
+ assert_equal("UTF-8", data.last.encoding.name)
+ assert_equal("UTF-8", data.join('').encoding.name)
+ assert_equal("UTF-8", data.to_csv.encoding.name)
+ end
+
private
def assert_parses(fields, encoding, options = { })
encoding = Encoding.find(encoding) unless encoding.is_a? Encoding
+ orig_fields = fields
fields = encode_ary(fields, encoding)
- parsed = CSV.parse(ary_to_data(fields, options), options)
+ data = ary_to_data(fields, options)
+ parsed = CSV.parse(data, options)
assert_equal(fields, parsed)
parsed.flatten.each_with_index do |field, i|
assert_equal(encoding, field.encoding, "Field[#{i + 1}] was transcoded.")
end
+ File.open(@temp_csv_path, "wb") {|f| f.print(data)}
+ CSV.open(@temp_csv_path, "rb:#{encoding}", options) do |csv|
+ csv.each_with_index do |row, i|
+ assert_equal(fields[i], row)
+ end
+ end
+ begin
+ CSV.open(@temp_csv_path, "rb:#{encoding}:#{__ENCODING__}", options) do |csv|
+ csv.each_with_index do |row, i|
+ assert_equal(orig_fields[i], row)
+ end
+ end unless encoding == __ENCODING__
+ rescue Encoding::ConverterNotFoundError
+ end
+ options[:encoding] = encoding.name
+ CSV.open(@temp_csv_path, options) do |csv|
+ csv.each_with_index do |row, i|
+ assert_equal(fields[i], row)
+ end
+ end
+ options.delete(:encoding)
+ options[:external_encoding] = encoding.name
+ options[:internal_encoding] = __ENCODING__.name
+ begin
+ CSV.open(@temp_csv_path, options) do |csv|
+ csv.each_with_index do |row, i|
+ assert_equal(orig_fields[i], row)
+ end
+ end unless encoding == __ENCODING__
+ rescue Encoding::ConverterNotFoundError
+ end
end
def encode_ary(ary, encoding)
@@ -237,9 +313,9 @@ class TestEncodings < Test::Unit::TestCase
row_sep = (options[:row_sep] || "\n").encode(encoding)
ary.map { |row|
row.map { |field|
- [quote_char, field.encode(encoding), quote_char].join
+ [quote_char, field.encode(encoding), quote_char].join('')
}.join(col_sep) + row_sep
- }.join.encode(encoding)
+ }.join('').encode(encoding)
end
def encode_for_tests(data, options = { })
@@ -253,4 +329,11 @@ class TestEncodings < Test::Unit::TestCase
yield encoding
end
end
+
+ def no_warnings
+ old_verbose, $VERBOSE = $VERBOSE, nil
+ yield
+ ensure
+ $VERBOSE = old_verbose
+ end
end
diff --git a/test/csv/test_features.rb b/test/csv/test_features.rb
index 58efd1c9b3..0da557e6e1 100644..100755
--- a/test/csv/test_features.rb
+++ b/test/csv/test_features.rb
@@ -7,12 +7,13 @@
# Copyright 2005 James Edward Gray II. You can redistribute or modify this code
# under the terms of Ruby's license.
-require "test/unit"
require "zlib"
-require "csv"
+require_relative "base"
+
+class TestCSV::Features < TestCSV
+ extend DifferentOFS
-class TestCSVFeatures < Test::Unit::TestCase
TEST_CASES = [ [%Q{a,b}, ["a", "b"]],
[%Q{a,"""b"""}, ["a", "\"b\""]],
[%Q{a,"""b"}, ["a", "\"b"]],
@@ -32,6 +33,7 @@ class TestCSVFeatures < Test::Unit::TestCase
[%Q{"\r\n,",}, ["\r\n,", nil]] ]
def setup
+ super
@sample_data = <<-END_DATA.gsub(/^ +/, "")
line,1,abc
line,2,"def\nghi"
diff --git a/test/csv/test_headers.rb b/test/csv/test_headers.rb
index 6e56ffc27c..00ae82af06 100644..100755
--- a/test/csv/test_headers.rb
+++ b/test/csv/test_headers.rb
@@ -7,12 +7,13 @@
# Copyright 2005 James Edward Gray II. You can redistribute or modify this code
# under the terms of Ruby's license.
-require "test/unit"
+require_relative "base"
-require "csv"
+class TestCSV::Headers < TestCSV
+ extend DifferentOFS
-class TestCSVHeaders < Test::Unit::TestCase
def setup
+ super
@data = <<-END_CSV.gsub(/^\s+/, "")
first,second,third
A,B,C
diff --git a/test/csv/test_interface.rb b/test/csv/test_interface.rb
index 5aedbbb075..9cdbcec451 100644..100755
--- a/test/csv/test_interface.rb
+++ b/test/csv/test_interface.rb
@@ -7,12 +7,13 @@
# Copyright 2005 James Edward Gray II. You can redistribute or modify this code
# under the terms of Ruby's license.
-require "test/unit"
+require_relative "base"
-require "csv"
+class TestCSV::Interface < TestCSV
+ extend DifferentOFS
-class TestCSVInterface < Test::Unit::TestCase
def setup
+ super
@path = File.join(File.dirname(__FILE__), "temp_test_data.csv")
File.open(@path, "wb") do |file|
@@ -25,6 +26,7 @@ class TestCSVInterface < Test::Unit::TestCase
def teardown
File.unlink(@path)
+ super
end
### Test Read Interface ###
@@ -75,6 +77,11 @@ class TestCSVInterface < Test::Unit::TestCase
assert_equal(%w{1 2 3}, row)
end
+ def test_parse_line_with_empty_lines
+ assert_equal(nil, CSV.parse_line("")) # to signal eof
+ assert_equal(Array.new, CSV.parse_line("\n1,2,3"))
+ end
+
def test_read_and_readlines
assert_equal( @expected,
CSV.read(@path, col_sep: "\t", row_sep: "\r\n") )
@@ -105,6 +112,14 @@ class TestCSVInterface < Test::Unit::TestCase
assert_equal(nil, csv.shift)
end
end
+
+ def test_enumerators_are_supported
+ CSV.open(@path, col_sep: "\t", row_sep: "\r\n") do |csv|
+ enum = csv.each
+ assert_instance_of(Enumerator, enum)
+ assert_equal(@expected.shift, enum.next)
+ end
+ end
### Test Write Interface ###
@@ -162,14 +177,14 @@ class TestCSVInterface < Test::Unit::TestCase
File.unlink(@path)
lines = [{a: 1, b: 2, c: 3}, {a: 4, b: 5, c: 6}]
- CSV.open( @path, "w", headers: true,
- header_converters: :symbol ) do |csv|
+ CSV.open( @path, "wb", headers: true,
+ header_converters: :symbol ) do |csv|
csv << lines.first.keys
lines.each { |line| csv << line }
end
- CSV.open( @path, "w", headers: true,
- converters: :all,
- header_converters: :symbol ) do |csv|
+ CSV.open( @path, "rb", headers: true,
+ converters: :all,
+ header_converters: :symbol ) do |csv|
csv.each { |line| assert_equal(lines.shift, line.to_hash) }
end
end
@@ -301,4 +316,19 @@ class TestCSVInterface < Test::Unit::TestCase
assert_equal(STDOUT, CSV.instance.instance_eval { @io })
assert_equal(STDOUT, CSV { |new_csv| new_csv.instance_eval { @io } })
end
+
+ def test_options_are_not_modified
+ opt = {}.freeze
+ assert_nothing_raised { CSV.foreach(@path, opt) }
+ assert_nothing_raised { CSV.open(@path, opt){} }
+ assert_nothing_raised { CSV.parse("", opt) }
+ assert_nothing_raised { CSV.parse_line("", opt) }
+ assert_nothing_raised { CSV.read(@path, opt) }
+ assert_nothing_raised { CSV.readlines(@path, opt) }
+ assert_nothing_raised { CSV.table(@path, opt) }
+ assert_nothing_raised { CSV.generate(opt){} }
+ assert_nothing_raised { CSV.generate_line([], opt) }
+ assert_nothing_raised { CSV.filter("", "", opt){} }
+ assert_nothing_raised { CSV.instance("", opt) }
+ end
end
diff --git a/test/csv/test_row.rb b/test/csv/test_row.rb
index f9aa959701..345b7a2342 100644..100755
--- a/test/csv/test_row.rb
+++ b/test/csv/test_row.rb
@@ -7,12 +7,13 @@
# Copyright 2005 James Edward Gray II. You can redistribute or modify this code
# under the terms of Ruby's license.
-require "test/unit"
+require_relative "base"
-require "csv"
+class TestCSV::Row < TestCSV
+ extend DifferentOFS
-class TestCSVRow < Test::Unit::TestCase
def setup
+ super
@row = CSV::Row.new(%w{A B C A A}, [1, 2, 3, 4])
end
diff --git a/test/csv/test_serialization.rb b/test/csv/test_serialization.rb
index 5f0201ed90..ba19b7a391 100644..100755
--- a/test/csv/test_serialization.rb
+++ b/test/csv/test_serialization.rb
@@ -7,9 +7,7 @@
# Copyright 2005 James Edward Gray II. You can redistribute or modify this code
# under the terms of Ruby's license.
-require "test/unit"
-
-require "csv"
+require_relative "base"
# An example of how to provide custom CSV serialization.
class Hash
@@ -26,7 +24,8 @@ class Hash
end
end
-class TestSerialization < Test::Unit::TestCase
+class TestCSV::Serialization < TestCSV
+ extend DifferentOFS
### Classes Used to Test Serialization ###
@@ -71,7 +70,7 @@ class TestSerialization < Test::Unit::TestCase
@data = CSV.dump(@names)
end
assert_equal(<<-END_CLASS_DUMP.gsub(/^\s*/, ""), @data)
- class,TestSerialization::ReadOnlyName
+ class,TestCSV::Serialization::ReadOnlyName
@first,@last
James,Gray
Dana,Gray
@@ -90,7 +89,7 @@ class TestSerialization < Test::Unit::TestCase
@data = CSV.dump(@names)
end
assert_equal(<<-END_STRUCT_DUMP.gsub(/^\s*/, ""), @data)
- class,TestSerialization::Name
+ class,TestCSV::Serialization::Name
first=,last=
James,Gray
Dana,Gray
@@ -109,7 +108,7 @@ class TestSerialization < Test::Unit::TestCase
@data = CSV.dump(@names)
end
assert_equal(<<-END_STRUCT_DUMP.gsub(/^\s*/, ""), @data)
- class,TestSerialization::FullName
+ class,TestCSV::Serialization::FullName
@suffix,first=,last=
II,James,Gray
,Dana,Gray
@@ -132,12 +131,12 @@ class TestSerialization < Test::Unit::TestCase
def test_io
test_class_dump
- data_file = File.join(File.dirname(__FILE__), "temp_test_data.csv")
+ data_file = File.join(File.dirname(__FILE__), "serialization_test_data.csv")
CSV.dump(@names, File.open(data_file, "wb"))
assert(File.exist?(data_file))
assert_equal(<<-END_IO_DUMP.gsub(/^\s*/, ""), File.read(data_file))
- class,TestSerialization::ReadOnlyName
+ class,TestCSV::Serialization::ReadOnlyName
@first,@last
James,Gray
Dana,Gray
diff --git a/test/csv/test_table.rb b/test/csv/test_table.rb
index e87f1b2545..318825f2b1 100644..100755
--- a/test/csv/test_table.rb
+++ b/test/csv/test_table.rb
@@ -7,12 +7,13 @@
# Copyright 2005 James Edward Gray II. You can redistribute or modify this code
# under the terms of Ruby's license.
-require "test/unit"
+require_relative "base"
-require "csv"
+class TestCSV::Table < TestCSV
+ extend DifferentOFS
-class TestCSVTable < Test::Unit::TestCase
def setup
+ super
@rows = [ CSV::Row.new(%w{A B C}, [1, 2, 3]),
CSV::Row.new(%w{A B C}, [4, 5, 6]),
CSV::Row.new(%w{A B C}, [7, 8, 9]) ]
@@ -253,6 +254,8 @@ class TestCSVTable < Test::Unit::TestCase
# with options
assert_equal( csv.gsub(",", "|").gsub("\n", "\r\n"),
@table.to_csv(col_sep: "|", row_sep: "\r\n") )
+ assert_equal( csv.lines.to_a[1..-1].join(''),
+ @table.to_csv(:write_headers => false) )
# with headers
assert_equal(csv, @header_table.to_csv)
@@ -270,7 +273,7 @@ class TestCSVTable < Test::Unit::TestCase
assert_equal(CSV::Row.new(%w[A B C], [13, 14, 15]), @table[-1])
end
- def test_delete
+ def test_delete_mixed
##################
### Mixed Mode ###
##################
@@ -286,11 +289,12 @@ class TestCSVTable < Test::Unit::TestCase
2,3
8,9
END_RESULT
+ end
+ def test_delete_column
###################
### Column Mode ###
###################
- setup
@table.by_col!
assert_equal(@rows.map { |row| row[0] }, @table.delete(0))
@@ -303,11 +307,12 @@ class TestCSVTable < Test::Unit::TestCase
5
8
END_RESULT
+ end
+ def test_delete_row
################
### Row Mode ###
################
- setup
@table.by_row!
assert_equal(@rows[1], @table.delete(1))
@@ -321,7 +326,13 @@ class TestCSVTable < Test::Unit::TestCase
END_RESULT
end
- def test_delete_if
+ def test_delete_with_blank_rows
+ data = "col1,col2\nra1,ra2\n\nrb1,rb2"
+ table = CSV.parse(data, :headers => true)
+ assert_equal(["ra2", nil, "rb2"], table.delete("col2"))
+ end
+
+ def test_delete_if_row
######################
### Mixed/Row Mode ###
######################
@@ -333,11 +344,12 @@ class TestCSVTable < Test::Unit::TestCase
A,B,C
4,5,6
END_RESULT
+ end
+ def test_delete_if_column
###################
### Column Mode ###
###################
- setup
@table.by_col!
assert_equal(@table, @table.delete_if { |h, v| h > "A" })
diff --git a/test/date/test_date.rb b/test/date/test_date.rb
index f2be9e24c4..86790e4cde 100644
--- a/test/date/test_date.rb
+++ b/test/date/test_date.rb
@@ -41,9 +41,9 @@ class TestDate < Test::Unit::TestCase
assert_instance_of(DateSub, DateSub.today)
assert_instance_of(DateTimeSub, DateTimeSub.now)
- assert_equal('#<DateSub: -4712-01-01 (-1/2,0,2299161)>', d.inspect)
+# assert_equal('#<DateSub: -4712-01-01 (-1/2,0,2299161)>', d.inspect)
assert_equal('-4712-01-01', d.to_s)
- assert_equal('#<DateTimeSub: -4712-01-01T00:00:00+00:00 (-1/2,0,2299161)>', dt.inspect)
+# assert_equal('#<DateTimeSub: -4712-01-01T00:00:00+00:00 (-1/2,0,2299161)>', dt.inspect)
assert_equal('-4712-01-01T00:00:00+00:00', dt.to_s)
d2 = d + 1
diff --git a/test/date/test_date_attr.rb b/test/date/test_date_attr.rb
index 5187d5d3e5..88a54d7461 100644
--- a/test/date/test_date_attr.rb
+++ b/test/date/test_date_attr.rb
@@ -8,6 +8,7 @@ class TestDateAttr < Test::Unit::TestCase
datetime = DateTime.new(1965, 5, 23, 22, 31, 59)
[date, datetime].each_with_index do |d, i|
+=begin
if i == 0
assert_match(/\#<Date\d?: 1965-05-23 \(4877807\/2,0,2299161\)>/,
d.inspect)
@@ -15,6 +16,7 @@ class TestDateAttr < Test::Unit::TestCase
assert_match(/\#<DateTime\d?: 1965-05-23T22:31:59\+00:00 \(210721343519\/86400,0,2299161\)>/,
d.inspect)
end
+=end
if i == 0
assert_equal('1965-05-23', d.to_s)
@@ -94,6 +96,7 @@ class TestDateAttr < Test::Unit::TestCase
end
def test_nth_kday
+ skip unless Date.new.respond_to?(:nth_kday?, true)
assert_equal(false, Date.new(2001,1,14).__send__(:nth_kday?, 1,0))
assert_equal(true, Date.new(2001,1,14).__send__(:nth_kday?, 2,0))
assert_equal(false, Date.new(2001,1,14).__send__(:nth_kday?, 3,0))
diff --git a/test/date/test_date_base.rb b/test/date/test_date_base.rb
index a8dc2ee6b2..1f3d8c0a55 100644
--- a/test/date/test_date_base.rb
+++ b/test/date/test_date_base.rb
@@ -53,9 +53,7 @@ class TestDateBase < Test::Unit::TestCase
end
def test_ordinal__julian
- unless defined?(Calendar)
- return
- end
+ skip unless defined?(Calendar)
for j in @from..@to
m, d, y = julian_from_absolute(absolute_from_julian_day_number(j))
j0 = julian_day_number_from_absolute(absolute_from_julian(12, 31, y - 1))
@@ -70,9 +68,7 @@ class TestDateBase < Test::Unit::TestCase
end
def test_ordinal__gregorian
- unless defined?(Calendar)
- return
- end
+ skip unless defined?(Calendar)
for j in @from..@to
m, d, y = gregorian_from_absolute(absolute_from_julian_day_number(j))
j0 =
@@ -88,9 +84,7 @@ class TestDateBase < Test::Unit::TestCase
end
def test_civil__julian
- unless defined?(Calendar)
- return
- end
+ skip unless defined?(Calendar)
for j in @from..@to
m, d, y = julian_from_absolute(absolute_from_julian_day_number(j))
j2 = julian_day_number_from_absolute(absolute_from_julian(m, d, y))
@@ -105,9 +99,7 @@ class TestDateBase < Test::Unit::TestCase
end
def test_civil__gregorian
- unless defined?(Calendar)
- return
- end
+ skip unless defined?(Calendar)
for j in @from..@to
m, d, y = gregorian_from_absolute(absolute_from_julian_day_number(j))
j2 = julian_day_number_from_absolute(absolute_from_gregorian(m, d, y))
@@ -122,9 +114,7 @@ class TestDateBase < Test::Unit::TestCase
end
def test_commercial__gregorian
- unless defined?(Calendar)
- return
- end
+ skip unless defined?(Calendar)
for j in @from..@to
w, d, y = iso_from_absolute(absolute_from_julian_day_number(j))
j2 = julian_day_number_from_absolute(absolute_from_iso(w, d, y))
@@ -139,9 +129,7 @@ class TestDateBase < Test::Unit::TestCase
end
def test_weeknum
- unless defined?(Calendar)
- return
- end
+ skip unless defined?(Calendar)
for j in @from..@to
for k in 0..1
wy, ww, wd = Date.__send__(:jd_to_weeknum, j, k, Date::GREGORIAN)
@@ -152,9 +140,7 @@ class TestDateBase < Test::Unit::TestCase
end
def test_weeknum__2
- unless defined?(Calendar)
- return
- end
+ skip unless defined?(Calendar)
for j in @from4t..@to4t
d = Date.jd(j)
t = Time.mktime(d.year, d.mon, d.mday)
@@ -172,9 +158,9 @@ class TestDateBase < Test::Unit::TestCase
end
def test_nth_kday
- unless defined?(Calendar)
- return
- end
+ skip unless defined?(Calendar)
+ skip unless (Date.respond_to?(:nth_kday_to_jd, true) &&
+ Date.respond_to?(:jd_to_nth_kday, true))
for y in 1601..2401
for m in 1..12
for n in -5..5
@@ -193,19 +179,26 @@ class TestDateBase < Test::Unit::TestCase
end
end
+ def test_jd
+ assert_equal(1 << 33, Date.jd(1 << 33).jd)
+ end
+
def test_mjd
+ skip unless Date.respond_to?(:mjd_to_jd, true)
jd = Date.__send__(:mjd_to_jd, 51321)
mjd = Date.__send__(:jd_to_mjd, jd)
assert_equal(51321, mjd)
end
def test_ld
+ skip unless Date.respond_to?(:ld_to_jd, true)
jd = Date.__send__(:ld_to_jd, 152162)
ld = Date.__send__(:jd_to_ld, jd)
assert_equal(152162, ld)
end
def test_wday
+ skip unless Date.respond_to?(:jd_to_wday, true)
assert_equal(4, Date.__send__(:jd_to_wday, 3))
assert_equal(3, Date.__send__(:jd_to_wday, 2))
assert_equal(2, Date.__send__(:jd_to_wday, 1))
@@ -231,6 +224,7 @@ class TestDateBase < Test::Unit::TestCase
def test_valid_jd
valid_jd_p = :_valid_jd?
+ skip unless Date.respond_to?(valid_jd_p, true)
assert_equal(-1, Date.__send__(valid_jd_p, -1))
assert_equal(0, Date.__send__(valid_jd_p, 0))
assert_equal(1, Date.__send__(valid_jd_p, 1))
@@ -239,6 +233,7 @@ class TestDateBase < Test::Unit::TestCase
def test_valid_ordinal
valid_ordinal_p = :_valid_ordinal?
+ skip unless Date.respond_to?(valid_ordinal_p, true)
assert_nil(Date.__send__(valid_ordinal_p, 1999,366))
assert_equal(2451910, Date.__send__(valid_ordinal_p, 2000,366))
assert_nil(Date.__send__(valid_ordinal_p, 1999,-366))
@@ -253,6 +248,7 @@ class TestDateBase < Test::Unit::TestCase
def test_valid_ordinal__edge
valid_ordinal_p = :_valid_ordinal?
+ skip unless Date.respond_to?(valid_ordinal_p, true)
(1601..2400).each do |y|
d = if Date.leap?(y) then 366 else 365 end
assert_not_nil(Date.__send__(valid_ordinal_p, y,d))
@@ -278,6 +274,7 @@ class TestDateBase < Test::Unit::TestCase
def test_valid_ordinal__italy
valid_ordinal_p = :_valid_ordinal?
+ skip unless Date.respond_to?(valid_ordinal_p, true)
(1..355).each do |d|
assert_not_nil(Date.__send__(valid_ordinal_p, 1582,d,Date::ITALY))
end
@@ -294,6 +291,7 @@ class TestDateBase < Test::Unit::TestCase
def test_valid_ordinal__england
valid_ordinal_p = :_valid_ordinal?
+ skip unless Date.respond_to?(valid_ordinal_p, true)
(1..355).each do |d|
assert_not_nil(Date.__send__(valid_ordinal_p, 1752,d,Date::ENGLAND))
end
@@ -304,6 +302,7 @@ class TestDateBase < Test::Unit::TestCase
def test_valid_civil
valid_civil_p = :_valid_civil?
+ skip unless Date.respond_to?(valid_civil_p, true)
assert_nil(Date.__send__(valid_civil_p, 1999,2,29))
assert_equal(2451604, Date.__send__(valid_civil_p, 2000,2,29))
assert_nil(Date.__send__(valid_civil_p, 1999,2,-29))
@@ -314,10 +313,12 @@ class TestDateBase < Test::Unit::TestCase
Date.__send__(valid_civil_p, 2001,1,-31))
assert_nil(Date.__send__(valid_civil_p, 2001,1,-32))
assert_equal(2452348, Date.__send__(valid_civil_p, 2002,3,14))
+ assert_nil(Date.__send__(valid_civil_p, 2010,-13,-1))
end
def test_valid_civil__edge
valid_civil_p = :_valid_civil?
+ skip unless Date.respond_to?(valid_civil_p, true)
(1601..2400).each do |y|
d = if Date.leap?(y) then 29 else 28 end
assert_not_nil(Date.__send__(valid_civil_p, y,2,d))
@@ -336,6 +337,7 @@ class TestDateBase < Test::Unit::TestCase
def test_valid_civil__italy
valid_civil_p = :_valid_civil?
+ skip unless Date.respond_to?(valid_civil_p, true)
(1..4).each do |d|
assert_not_nil(Date.__send__(valid_civil_p, 1582,10,d,Date::ITALY))
end
@@ -364,6 +366,7 @@ class TestDateBase < Test::Unit::TestCase
def test_valid_civil__england
valid_civil_p = :_valid_civil?
+ skip unless Date.respond_to?(valid_civil_p, true)
(1..2).each do |d|
assert_not_nil(Date.__send__(valid_civil_p, 1752,9,d,Date::ENGLAND))
end
@@ -386,6 +389,7 @@ class TestDateBase < Test::Unit::TestCase
def test_valid_commercial
valid_commercial_p = :_valid_commercial?
+ skip unless Date.respond_to?(valid_commercial_p, true)
assert_nil(Date.__send__(valid_commercial_p, 1999,53,1))
assert_equal(2453367, Date.__send__(valid_commercial_p, 2004,53,1))
assert_nil(Date.__send__(valid_commercial_p, 1999,-53,-1))
@@ -395,6 +399,7 @@ class TestDateBase < Test::Unit::TestCase
def test_valid_weeknum
valid_weeknum_p = :_valid_weeknum?
+ skip unless Date.respond_to?(valid_weeknum_p, true)
assert_nil(Date.__send__(valid_weeknum_p, 1999,53,0, 0))
assert_equal(2454101, Date.__send__(valid_weeknum_p, 2006,53,0, 0))
assert_nil(Date.__send__(valid_weeknum_p, 1999,-53,-1, 0))
@@ -409,6 +414,7 @@ class TestDateBase < Test::Unit::TestCase
def test_valid_nth_kday
valid_nth_kday_p = :_valid_nth_kday?
+ skip unless Date.respond_to?(valid_nth_kday_p, true)
assert_nil(Date.__send__(valid_nth_kday_p, 1992,2, 5,0))
assert_equal(2448682, Date.__send__(valid_nth_kday_p, 1992,2, 5,6))
assert_equal(2448682, Date.__send__(valid_nth_kday_p, 1992,2, 5,-1))
@@ -418,6 +424,7 @@ class TestDateBase < Test::Unit::TestCase
def test_valid_time
valid_time_p = :_valid_time?
+ skip unless Date.respond_to?(valid_time_p, true)
assert_equal(Rational(0), DateTime.__send__(valid_time_p, 0,0,0))
assert_nil(DateTime.__send__(valid_time_p, 25,59,59))
assert_nil(DateTime.__send__(valid_time_p, 23,60,59))
diff --git a/test/date/test_date_new.rb b/test/date/test_date_new.rb
index 14ff247294..0bbbfee44b 100644
--- a/test/date/test_date_new.rb
+++ b/test/date/test_date_new.rb
@@ -68,9 +68,6 @@ class TestDateNew < Test::Unit::TestCase
def test_ordinal__ex
assert_raise(ArgumentError) do
- Date.ordinal(2001,1.1)
- end
- assert_raise(ArgumentError) do
Date.ordinal(2001,366)
end
assert_raise(ArgumentError) do
@@ -130,9 +127,6 @@ class TestDateNew < Test::Unit::TestCase
def test_civil__ex
assert_raise(ArgumentError) do
- Date.civil(2001,2,1.1)
- end
- assert_raise(ArgumentError) do
Date.civil(2001,2,29)
end
assert_raise(ArgumentError) do
@@ -200,9 +194,6 @@ class TestDateNew < Test::Unit::TestCase
def test_commercial__ex
assert_raise(ArgumentError) do
- Date.commercial(1997,1,1.1)
- end
- assert_raise(ArgumentError) do
Date.commercial(1997,53,1)
end
assert_raise(ArgumentError) do
@@ -211,6 +202,7 @@ class TestDateNew < Test::Unit::TestCase
end
def test_weeknum
+ skip unless Date.respond_to?(:weeknum, true)
d = Date.__send__(:weeknum)
dt = DateTime.__send__(:weeknum)
assert_equal([-4712, 1, 1], [d.year, d.mon, d.mday])
@@ -233,6 +225,7 @@ class TestDateNew < Test::Unit::TestCase
end
def test_nth_kday
+ skip unless Date.respond_to?(:nth_kday, true)
d = Date.__send__(:nth_kday)
dt = DateTime.__send__(:nth_kday)
assert_equal([-4712, 1, 1], [d.year, d.mon, d.mday])
diff --git a/test/date/test_date_parse.rb b/test/date/test_date_parse.rb
index 959a6e5d95..1504473938 100644
--- a/test/date/test_date_parse.rb
+++ b/test/date/test_date_parse.rb
@@ -639,11 +639,26 @@ class TestDateParse < Test::Unit::TestCase
assert_equal(d, DateTime.parse(d.to_s))
end
+ def test_parse_utf8
+ h = DateTime._parse("Sun\u{3000}Aug 16 01:02:03 \u{65e5}\u{672c} 2009")
+ assert_equal(2009, h[:year])
+ assert_equal(8, h[:mon])
+ assert_equal(16, h[:mday])
+ assert_equal(0, h[:wday])
+ assert_equal(1, h[:hour])
+ assert_equal(2, h[:min])
+ assert_equal(3, h[:sec])
+ assert_equal("\u{65e5}\u{672c}", h[:zone])
+ end
+
def test_parse__ex
assert_raise(ArgumentError) do
Date.parse('')
end
assert_raise(ArgumentError) do
+ DateTime.parse('')
+ end
+ assert_raise(ArgumentError) do
Date.parse('2001-02-29')
end
assert_raise(ArgumentError) do
@@ -655,14 +670,17 @@ class TestDateParse < Test::Unit::TestCase
end
def test__iso8601
- h = Date._iso8601('01-02-03')
- assert_equal([2001, 2, 3, nil, nil, nil, nil],
+ h = Date._iso8601('01-02-03T04:05:06Z')
+ assert_equal([2001, 2, 3, 4, 5, 6, 0],
h.values_at(:year, :mon, :mday, :hour, :min, :sec, :offset))
- h = Date._iso8601('2001-02-03')
- assert_equal([2001, 2, 3, nil, nil, nil, nil],
+ h = Date._iso8601('2001-02-03T04:05:06Z')
+ assert_equal([2001, 2, 3, 4, 5, 6, 0],
+ h.values_at(:year, :mon, :mday, :hour, :min, :sec, :offset))
+ h = Date._iso8601('--02-03T04:05:06Z')
+ assert_equal([nil, 2, 3, 4, 5, 6, 0],
h.values_at(:year, :mon, :mday, :hour, :min, :sec, :offset))
- h = Date._iso8601('--02-03')
- assert_equal([nil, 2, 3, nil, nil, nil, nil],
+ h = Date._iso8601('---03T04:05:06Z')
+ assert_equal([nil, nil, 3, 4, 5, 6, 0],
h.values_at(:year, :mon, :mday, :hour, :min, :sec, :offset))
h = Date._iso8601('2001-02-03T04:05')
@@ -681,14 +699,17 @@ class TestDateParse < Test::Unit::TestCase
assert_equal([2001, 2, 3, 4, 5, 6, 3600],
h.values_at(:year, :mon, :mday, :hour, :min, :sec, :offset))
- h = Date._iso8601('010203')
- assert_equal([2001, 2, 3, nil, nil, nil, nil],
+ h = Date._iso8601('010203T040506Z')
+ assert_equal([2001, 2, 3, 4, 5, 6, 0],
h.values_at(:year, :mon, :mday, :hour, :min, :sec, :offset))
- h = Date._iso8601('20010203')
- assert_equal([2001, 2, 3, nil, nil, nil, nil],
+ h = Date._iso8601('20010203T040506Z')
+ assert_equal([2001, 2, 3, 4, 5, 6, 0],
+ h.values_at(:year, :mon, :mday, :hour, :min, :sec, :offset))
+ h = Date._iso8601('--0203T040506Z')
+ assert_equal([nil, 2, 3, 4, 5, 6, 0],
h.values_at(:year, :mon, :mday, :hour, :min, :sec, :offset))
- h = Date._iso8601('--0203')
- assert_equal([nil, 2, 3, nil, nil, nil, nil],
+ h = Date._iso8601('---03T040506Z')
+ assert_equal([nil, nil, 3, 4, 5, 6, 0],
h.values_at(:year, :mon, :mday, :hour, :min, :sec, :offset))
h = Date._iso8601('010203T0405')
@@ -726,16 +747,52 @@ class TestDateParse < Test::Unit::TestCase
assert_equal([2001, 2, 3, 4, 5, 6, 3600],
h.values_at(:year, :mon, :mday, :hour, :min, :sec, :offset))
- h = Date._iso8601('01-023')
- assert_equal([2001, 23, nil, nil, nil, nil],
+ h = Date._iso8601('01-023T04:05:06Z')
+ assert_equal([2001, 23, 4, 5, 6, 0],
h.values_at(:year, :yday, :hour, :min, :sec, :offset))
- h = Date._iso8601('2001-023')
- assert_equal([2001, 23, nil, nil, nil, nil],
+ h = Date._iso8601('2001-023T04:05:06Z')
+ assert_equal([2001, 23, 4, 5, 6, 0],
h.values_at(:year, :yday, :hour, :min, :sec, :offset))
- h = Date._iso8601('-023')
- assert_equal([nil, 23, nil, nil, nil, nil],
+ h = Date._iso8601('-023T04:05:06Z')
+ assert_equal([nil, 23, 4, 5, 6, 0],
h.values_at(:year, :yday, :hour, :min, :sec, :offset))
+ h = Date._iso8601('01023T040506Z')
+ assert_equal([2001, 23, 4, 5, 6, 0],
+ h.values_at(:year, :yday, :hour, :min, :sec, :offset))
+ h = Date._iso8601('2001023T040506Z')
+ assert_equal([2001, 23, 4, 5, 6, 0],
+ h.values_at(:year, :yday, :hour, :min, :sec, :offset))
+ h = Date._iso8601('-023T040506Z')
+ assert_equal([nil, 23, 4, 5, 6, 0],
+ h.values_at(:year, :yday, :hour, :min, :sec, :offset))
+
+ h = Date._iso8601('01-w02-3T04:05:06Z')
+ assert_equal([2001, 2, 3, 4, 5, 6, 0],
+ h.values_at(:cwyear, :cweek, :cwday, :hour, :min, :sec, :offset))
+ h = Date._iso8601('2001-w02-3T04:05:06Z')
+ assert_equal([2001, 2, 3, 4, 5, 6, 0],
+ h.values_at(:cwyear, :cweek, :cwday, :hour, :min, :sec, :offset))
+ h = Date._iso8601('-w02-3T04:05:06Z')
+ assert_equal([nil, 2, 3, 4, 5, 6, 0],
+ h.values_at(:cwyear, :cweek, :cwday, :hour, :min, :sec, :offset))
+ h = Date._iso8601('-w-3T04:05:06Z')
+ assert_equal([nil, nil, 3, 4, 5, 6, 0],
+ h.values_at(:cwyear, :cweek, :cwday, :hour, :min, :sec, :offset))
+
+ h = Date._iso8601('01w023T040506Z')
+ assert_equal([2001, 2, 3, 4, 5, 6, 0],
+ h.values_at(:cwyear, :cweek, :cwday, :hour, :min, :sec, :offset))
+ h = Date._iso8601('2001w023T040506Z')
+ assert_equal([2001, 2, 3, 4, 5, 6, 0],
+ h.values_at(:cwyear, :cweek, :cwday, :hour, :min, :sec, :offset))
+ h = Date._iso8601('-w023T040506Z')
+ assert_equal([nil, 2, 3, 4, 5, 6, 0],
+ h.values_at(:cwyear, :cweek, :cwday, :hour, :min, :sec, :offset))
+ h = Date._iso8601('-w-3T040506Z')
+ assert_equal([nil, nil, 3, 4, 5, 6, 0],
+ h.values_at(:cwyear, :cweek, :cwday, :hour, :min, :sec, :offset))
+
h = Date._iso8601('04:05')
assert_equal([nil, nil, nil, 4, 5, nil, nil],
h.values_at(:year, :mon, :mday, :hour, :min, :sec, :offset))
@@ -759,21 +816,6 @@ class TestDateParse < Test::Unit::TestCase
assert_equal([nil, nil, nil, 4, 5, 6, 3600],
h.values_at(:year, :mon, :mday, :hour, :min, :sec, :offset))
- h = Date._iso8601('01-w02-3')
- assert_equal([2001, 2, 3, nil, nil, nil, nil],
- h.values_at(:cwyear, :cweek, :cwday, :hour, :min, :sec, :offset))
- h = Date._iso8601('2001-w02-3')
- assert_equal([2001, 2, 3, nil, nil, nil, nil],
- h.values_at(:cwyear, :cweek, :cwday, :hour, :min, :sec, :offset))
- h = Date._iso8601('2001w023')
- assert_equal([2001, 2, 3, nil, nil, nil, nil],
- h.values_at(:cwyear, :cweek, :cwday, :hour, :min, :sec, :offset))
- h = Date._iso8601('-w02-3')
- assert_equal([nil, 2, 3, nil, nil, nil, nil],
- h.values_at(:cwyear, :cweek, :cwday, :hour, :min, :sec, :offset))
- h = Date._iso8601('-w-3')
- assert_equal([nil, nil, 3, nil, nil, nil, nil],
- h.values_at(:cwyear, :cweek, :cwday, :hour, :min, :sec, :offset))
end
def test__rfc3339
@@ -941,16 +983,40 @@ class TestDateParse < Test::Unit::TestCase
def test_iso8601
assert_instance_of(Date, Date.iso8601)
assert_instance_of(DateTime, DateTime.iso8601)
+
+ d = Date.iso8601('2001-02-03', Date::ITALY + 10)
+ assert_equal(Date.new(2001,2,3), d)
+ assert_equal(Date::ITALY + 10, d.start)
+
+ d = DateTime.iso8601('2001-02-03T04:05:06+07:00', Date::ITALY + 10)
+ assert_equal(DateTime.new(2001,2,3,4,5,6,'+07:00'), d)
+ assert_equal(Date::ITALY + 10, d.start)
end
def test_rfc3339
assert_instance_of(Date, Date.rfc3339)
assert_instance_of(DateTime, DateTime.rfc3339)
+
+ d = Date.rfc3339('2001-02-03T04:05:06+07:00', Date::ITALY + 10)
+ assert_equal(Date.new(2001,2,3), d)
+ assert_equal(Date::ITALY + 10, d.start)
+
+ d = DateTime.rfc3339('2001-02-03T04:05:06+07:00', Date::ITALY + 10)
+ assert_equal(DateTime.new(2001,2,3,4,5,6,'+07:00'), d)
+ assert_equal(Date::ITALY + 10, d.start)
end
def test_xmlschema
assert_instance_of(Date, Date.xmlschema)
assert_instance_of(DateTime, DateTime.xmlschema)
+
+ d = Date.xmlschema('2001-02-03', Date::ITALY + 10)
+ assert_equal(Date.new(2001,2,3), d)
+ assert_equal(Date::ITALY + 10, d.start)
+
+ d = DateTime.xmlschema('2001-02-03T04:05:06+07:00', Date::ITALY + 10)
+ assert_equal(DateTime.new(2001,2,3,4,5,6,'+07:00'), d)
+ assert_equal(Date::ITALY + 10, d.start)
end
def test_rfc2822
@@ -958,16 +1024,74 @@ class TestDateParse < Test::Unit::TestCase
assert_instance_of(DateTime, DateTime.rfc2822)
assert_instance_of(Date, Date.rfc822)
assert_instance_of(DateTime, DateTime.rfc822)
+
+ d = Date.rfc2822('Sat, 3 Feb 2001 04:05:06 +0700', Date::ITALY + 10)
+ assert_equal(Date.new(2001,2,3), d)
+ assert_equal(Date::ITALY + 10, d.start)
+
+ d = DateTime.rfc2822('Sat, 3 Feb 2001 04:05:06 +0700', Date::ITALY + 10)
+ assert_equal(DateTime.new(2001,2,3,4,5,6,'+07:00'), d)
+ assert_equal(Date::ITALY + 10, d.start)
end
def test_httpdate
assert_instance_of(Date, Date.httpdate)
assert_instance_of(DateTime, DateTime.httpdate)
+
+ d = Date.httpdate('Sat, 03 Feb 2001 04:05:06 GMT', Date::ITALY + 10)
+ assert_equal(Date.new(2001,2,3), d)
+ assert_equal(Date::ITALY + 10, d.start)
+
+ d = DateTime.httpdate('Sat, 03 Feb 2001 04:05:06 GMT', Date::ITALY + 10)
+ assert_equal(DateTime.new(2001,2,3,4,5,6,'+00:00'), d)
+ assert_equal(Date::ITALY + 10, d.start)
end
def test_jisx0301
assert_instance_of(Date, Date.jisx0301)
assert_instance_of(DateTime, DateTime.jisx0301)
+
+ d = Date.jisx0301('H13.02.03', Date::ITALY + 10)
+ assert_equal(Date.new(2001,2,3), d)
+ assert_equal(Date::ITALY + 10, d.start)
+
+ d = DateTime.jisx0301('H13.02.03T04:05:06+07:00', Date::ITALY + 10)
+ assert_equal(DateTime.new(2001,2,3,4,5,6,'+07:00'), d)
+ assert_equal(Date::ITALY + 10, d.start)
+ end
+
+ def test_given_string
+ s = '2001-02-03T04:05:06Z'
+ s0 = s.dup
+
+ assert_not_equal({}, Date._parse(s))
+ assert_equal(s0, s)
+
+ assert_not_equal({}, Date._iso8601(s))
+ assert_equal(s0, s)
+
+ assert_not_equal({}, Date._rfc3339(s))
+ assert_equal(s0, s)
+
+ assert_not_equal({}, Date._xmlschema(s))
+ assert_equal(s0, s)
+
+ s = 'Sat, 3 Feb 2001 04:05:06 UT'
+ s0 = s.dup
+ assert_not_equal({}, Date._rfc2822(s))
+ assert_equal(s0, s)
+ assert_not_equal({}, Date._rfc822(s))
+ assert_equal(s0, s)
+
+ s = 'Sat, 03 Feb 2001 04:05:06 GMT'
+ s0 = s.dup
+ assert_not_equal({}, Date._httpdate(s))
+ assert_equal(s0, s)
+
+ s = 'H13.02.03T04:05:06,07Z'
+ s0 = s.dup
+ assert_not_equal({}, Date._jisx0301(s))
+ assert_equal(s0, s)
end
end
diff --git a/test/date/test_date_strftime.rb b/test/date/test_date_strftime.rb
index 117517256c..8b96f16049 100644
--- a/test/date/test_date_strftime.rb
+++ b/test/date/test_date_strftime.rb
@@ -124,9 +124,7 @@ class TestDateStrftime < Test::Unit::TestCase
def test_strftime__3_2
s = Time.now.strftime('%G')
- if s.empty? || s == '%G'
- return
- end
+ skip if s.empty? || s == '%G'
(Date.new(1970,1,1)..Date.new(2037,12,31)).each do |d|
t = Time.utc(d.year,d.mon,d.mday)
assert_equal(t.strftime('%G'), d.strftime('%G'))
@@ -186,12 +184,25 @@ class TestDateStrftime < Test::Unit::TestCase
s = '2006-08-08T23:15:33'
(-24..24).collect{|x| '%+.2d' % x}.each do |hh|
%w(00 30).each do |mm|
+ r = hh + mm
+ if r[-4,4] == '2430'
+ r = '+0000'
+ end
d = DateTime.parse(s + hh + mm)
- assert_equal(hh + mm, d.strftime('%z'))
+ assert_equal(r, d.strftime('%z'))
end
end
end
+ def test_strftime_milli
+ s = '1970-01-01T00:00:00.123456789'
+ d = DateTime.parse(s)
+ assert_equal('123', d.strftime('%Q'))
+ s = '1970-01-02T02:03:04.123456789'
+ d = DateTime.parse(s)
+ assert_equal('93784123', d.strftime('%Q'))
+ end
+
def test_strftime__minus
d = DateTime.new(1969, 12, 31, 23, 59, 59)
assert_equal('-1', d.strftime('%s'))
@@ -332,8 +343,8 @@ class TestDateStrftime < Test::Unit::TestCase
assert_equal(d.ctime, d.asctime)
assert_equal('2001-02-03', d.iso8601)
- assert_equal(d.rfc3339, d.iso8601)
assert_equal(d.xmlschema, d.iso8601)
+ assert_equal('2001-02-03T00:00:00+00:00', d.rfc3339)
assert_equal('Sat, 3 Feb 2001 00:00:00 +0000', d.rfc2822)
assert_equal(d.rfc822, d.rfc2822)
assert_equal('Sat, 03 Feb 2001 00:00:00 GMT', d.httpdate)
@@ -360,6 +371,8 @@ class TestDateStrftime < Test::Unit::TestCase
assert_equal('2001-02-03T04:05:06.123456000+00:00', d2.rfc3339(9))
assert_equal('H13.02.03T04:05:06.123456000+00:00', d2.jisx0301(9))
+ assert_equal('1800-01-01T00:00:00+00:00', DateTime.new(1800).jisx0301)
+
assert_equal('1868-01-25', Date.parse('1868-01-25').jisx0301)
assert_equal('1872-12-31', Date.parse('1872-12-31').jisx0301)
diff --git a/test/date/test_date_strptime.rb b/test/date/test_date_strptime.rb
index 572d1ea42a..ceb649031f 100644
--- a/test/date/test_date_strptime.rb
+++ b/test/date/test_date_strptime.rb
@@ -442,7 +442,7 @@ class TestDateStrptime < Test::Unit::TestCase
assert_equal([n.year, 11, 6, 0, 0, 0],
[d.year, d.strftime('%W').to_i, d.wday, d.hour, d.min, d.sec])
d = DateTime.strptime('2004-11', '%Y-%W')
- assert_equal([2004, 11, 0, 0, 0, 0],
+ assert_equal([2004, 11, 1, 0, 0, 0],
[d.year, d.strftime('%W').to_i, d.wday, d.hour, d.min, d.sec])
end
@@ -456,6 +456,12 @@ class TestDateStrptime < Test::Unit::TestCase
def test_strptime__ex
assert_raise(ArgumentError) do
+ Date.strptime('')
+ end
+ assert_raise(ArgumentError) do
+ DateTime.strptime('')
+ end
+ assert_raise(ArgumentError) do
Date.strptime('2001-02-29', '%F')
end
assert_raise(ArgumentError) do
@@ -464,6 +470,17 @@ class TestDateStrptime < Test::Unit::TestCase
assert_raise(ArgumentError) do
Date.strptime('23:55', '%H:%M')
end
+ assert_raise(ArgumentError) do
+ Date.strptime('01-31-2011', '%m/%d/%Y')
+ end
+ end
+
+ def test_given_string
+ s = '2001-02-03T04:05:06Z'
+ s0 = s.dup
+
+ assert_not_equal({}, Date._strptime(s, '%FT%T%Z'))
+ assert_equal(s0, s)
end
end
diff --git a/test/date/test_switch_hitter.rb b/test/date/test_switch_hitter.rb
new file mode 100644
index 0000000000..8431d40a29
--- /dev/null
+++ b/test/date/test_switch_hitter.rb
@@ -0,0 +1,577 @@
+require 'test/unit'
+require 'date'
+
+class TestSH < Test::Unit::TestCase
+
+ def test_new
+ [Date.new,
+ Date.civil,
+ DateTime.new,
+ DateTime.civil
+ ].each do |d|
+ assert_equal([-4712, 1, 1], [d.year, d.mon, d.mday])
+ end
+
+ [Date.new(2001),
+ Date.civil(2001),
+ DateTime.new(2001),
+ DateTime.civil(2001)
+ ].each do |d|
+ assert_equal([2001, 1, 1], [d.year, d.mon, d.mday])
+ end
+
+ d = Date.new(2001, 2, 3)
+ assert_equal([2001, 2, 3], [d.year, d.mon, d.mday])
+ d = Date.new(2001, 2, Rational('3.5'))
+ assert_equal([2001, 2, 3], [d.year, d.mon, d.mday])
+ d = Date.new(2001,2, 3, Date::JULIAN)
+ assert_equal([2001, 2, 3], [d.year, d.mon, d.mday])
+ d = Date.new(2001,2, 3, Date::GREGORIAN)
+ assert_equal([2001, 2, 3], [d.year, d.mon, d.mday])
+
+ d = Date.new(2001,-12, -31)
+ assert_equal([2001, 1, 1], [d.year, d.mon, d.mday])
+ d = Date.new(2001,-12, -31, Date::JULIAN)
+ assert_equal([2001, 1, 1], [d.year, d.mon, d.mday])
+ d = Date.new(2001,-12, -31, Date::GREGORIAN)
+ assert_equal([2001, 1, 1], [d.year, d.mon, d.mday])
+
+ d = DateTime.new(2001, 2, 3, 4, 5, 6)
+ assert_equal([2001, 2, 3, 4, 5, 6, 0],
+ [d.year, d.mon, d.mday, d.hour, d.min, d.sec, d.offset])
+ d = DateTime.new(2001, 2, 3, 4, 5, 6, 0)
+ assert_equal([2001, 2, 3, 4, 5, 6, 0],
+ [d.year, d.mon, d.mday, d.hour, d.min, d.sec, d.offset])
+ d = DateTime.new(2001, 2, 3, 4, 5, 6, Rational(9,24))
+ assert_equal([2001, 2, 3, 4, 5, 6, Rational(9,24)],
+ [d.year, d.mon, d.mday, d.hour, d.min, d.sec, d.offset])
+ d = DateTime.new(2001, 2, 3, 4, 5, 6, 0.375)
+ assert_equal([2001, 2, 3, 4, 5, 6, Rational(9,24)],
+ [d.year, d.mon, d.mday, d.hour, d.min, d.sec, d.offset])
+ d = DateTime.new(2001, 2, 3, 4, 5, 6, '+09:00')
+ assert_equal([2001, 2, 3, 4, 5, 6, Rational(9,24)],
+ [d.year, d.mon, d.mday, d.hour, d.min, d.sec, d.offset])
+ d = DateTime.new(2001, 2, 3, 4, 5, 6, '-09:00')
+ assert_equal([2001, 2, 3, 4, 5, 6, Rational(-9,24)],
+ [d.year, d.mon, d.mday, d.hour, d.min, d.sec, d.offset])
+ d = DateTime.new(2001, -12, -31, -4, -5, -6, '-09:00')
+ assert_equal([2001, 1, 1, 20, 55, 54, Rational(-9,24)],
+ [d.year, d.mon, d.mday, d.hour, d.min, d.sec, d.offset])
+ d = DateTime.new(2001, -12, -31, -4, -5, -6, '-09:00', Date::JULIAN)
+ assert_equal([2001, 1, 1, 20, 55, 54, Rational(-9,24)],
+ [d.year, d.mon, d.mday, d.hour, d.min, d.sec, d.offset])
+ d = DateTime.new(2001, -12, -31, -4, -5, -6, '-09:00', Date::GREGORIAN)
+ assert_equal([2001, 1, 1, 20, 55, 54, Rational(-9,24)],
+ [d.year, d.mon, d.mday, d.hour, d.min, d.sec, d.offset])
+ end
+
+ def test_jd
+ d = Date.jd
+ assert_equal([-4712, 1, 1], [d.year, d.mon, d.mday])
+ d = Date.jd(0)
+ assert_equal([-4712, 1, 1], [d.year, d.mon, d.mday])
+ d = Date.jd(2451944)
+ assert_equal([2001, 2, 3], [d.year, d.mon, d.mday])
+
+ d = DateTime.jd
+ assert_equal([-4712, 1, 1, 0, 0, 0, 0],
+ [d.year, d.mon, d.mday, d.hour, d.min, d.sec, d.offset])
+ d = DateTime.jd(0)
+ assert_equal([-4712, 1, 1, 0, 0, 0, 0],
+ [d.year, d.mon, d.mday, d.hour, d.min, d.sec, d.offset])
+ d = DateTime.jd(2451944)
+ assert_equal([2001, 2, 3, 0, 0, 0, 0],
+ [d.year, d.mon, d.mday, d.hour, d.min, d.sec, d.offset])
+ d = DateTime.jd(2451944, 4, 5, 6)
+ assert_equal([2001, 2, 3, 4, 5, 6, 0],
+ [d.year, d.mon, d.mday, d.hour, d.min, d.sec, d.offset])
+ d = DateTime.jd(2451944, 4, 5, 6, 0)
+ assert_equal([2001, 2, 3, 4, 5, 6, 0],
+ [d.year, d.mon, d.mday, d.hour, d.min, d.sec, d.offset])
+ d = DateTime.jd(2451944, 4, 5, 6, '+9:00')
+ assert_equal([2001, 2, 3, 4, 5, 6, Rational(9, 24)],
+ [d.year, d.mon, d.mday, d.hour, d.min, d.sec, d.offset])
+ d = DateTime.jd(2451944, -4, -5, -6, '-9:00')
+ assert_equal([2001, 2, 3, 20, 55, 54, Rational(-9, 24)],
+ [d.year, d.mon, d.mday, d.hour, d.min, d.sec, d.offset])
+ end
+
+ def test_ordinal
+ d = Date.ordinal
+ assert_equal([-4712, 1], [d.year, d.yday])
+ d = Date.ordinal(-4712, 1)
+ assert_equal([-4712, 1], [d.year, d.yday])
+
+ d = Date.ordinal(2001, 2)
+ assert_equal([2001, 2], [d.year, d.yday])
+ d = Date.ordinal(2001, 2, Date::JULIAN)
+ assert_equal([2001, 2], [d.year, d.yday])
+ d = Date.ordinal(2001, 2, Date::GREGORIAN)
+ assert_equal([2001, 2], [d.year, d.yday])
+
+ d = Date.ordinal(2001, -2, Date::JULIAN)
+ assert_equal([2001, 364], [d.year, d.yday])
+ d = Date.ordinal(2001, -2, Date::GREGORIAN)
+ assert_equal([2001, 364], [d.year, d.yday])
+
+ d = DateTime.ordinal
+ assert_equal([-4712, 1, 1, 0, 0, 0, 0],
+ [d.year, d.mon, d.mday, d.hour, d.min, d.sec, d.offset])
+ d = DateTime.ordinal(-4712, 1)
+ assert_equal([-4712, 1, 1, 0, 0, 0, 0],
+ [d.year, d.mon, d.mday, d.hour, d.min, d.sec, d.offset])
+ d = DateTime.ordinal(2001, 34)
+ assert_equal([2001, 2, 3, 0, 0, 0, 0],
+ [d.year, d.mon, d.mday, d.hour, d.min, d.sec, d.offset])
+ d = DateTime.ordinal(2001, 34, 4, 5, 6)
+ assert_equal([2001, 2, 3, 4, 5, 6, 0],
+ [d.year, d.mon, d.mday, d.hour, d.min, d.sec, d.offset])
+ d = DateTime.ordinal(2001, 34, 4, 5, 6, 0)
+ assert_equal([2001, 2, 3, 4, 5, 6, 0],
+ [d.year, d.mon, d.mday, d.hour, d.min, d.sec, d.offset])
+ d = DateTime.ordinal(2001, 34, 4, 5, 6, '+9:00')
+ assert_equal([2001, 2, 3, 4, 5, 6, Rational(9, 24)],
+ [d.year, d.mon, d.mday, d.hour, d.min, d.sec, d.offset])
+ d = DateTime.ordinal(2001, 34, -4, -5, -6, '-9:00')
+ assert_equal([2001, 2, 3, 20, 55, 54, Rational(-9, 24)],
+ [d.year, d.mon, d.mday, d.hour, d.min, d.sec, d.offset])
+ end
+
+ def test_commercial
+ d = Date.commercial
+ assert_equal([-4712, 1, 1], [d.cwyear, d.cweek, d.cwday])
+ d = Date.commercial(-4712, 1, 1)
+ assert_equal([-4712, 1, 1], [d.cwyear, d.cweek, d.cwday])
+
+ d = Date.commercial(2001, 2, 3)
+ assert_equal([2001, 2, 3], [d.cwyear, d.cweek, d.cwday])
+ d = Date.commercial(2001, 2, 3, Date::JULIAN)
+ assert_equal([2001, 2, 3], [d.cwyear, d.cweek, d.cwday])
+ d = Date.commercial(2001, 2, 3, Date::GREGORIAN)
+ assert_equal([2001, 2, 3], [d.cwyear, d.cweek, d.cwday])
+
+ d = Date.commercial(2001, -2, -3)
+ assert_equal([2001, 51, 5], [d.cwyear, d.cweek, d.cwday])
+ d = Date.commercial(2001, -2, -3, Date::JULIAN)
+ assert_equal([2001, 51, 5], [d.cwyear, d.cweek, d.cwday])
+ d = Date.commercial(2001, -2, -3, Date::GREGORIAN)
+ assert_equal([2001, 51, 5], [d.cwyear, d.cweek, d.cwday])
+
+ d = DateTime.commercial
+ assert_equal([-4712, 1, 1, 0, 0, 0, 0],
+ [d.year, d.mon, d.mday, d.hour, d.min, d.sec, d.offset])
+ d = DateTime.commercial(-4712, 1, 1)
+ assert_equal([-4712, 1, 1, 0, 0, 0, 0],
+ [d.year, d.mon, d.mday, d.hour, d.min, d.sec, d.offset])
+ d = DateTime.commercial(2001, 5, 6)
+ assert_equal([2001, 2, 3, 0, 0, 0, 0],
+ [d.year, d.mon, d.mday, d.hour, d.min, d.sec, d.offset])
+ d = DateTime.commercial(2001, 5, 6, 4, 5, 6)
+ assert_equal([2001, 2, 3, 4, 5, 6, 0],
+ [d.year, d.mon, d.mday, d.hour, d.min, d.sec, d.offset])
+ d = DateTime.commercial(2001, 5, 6, 4, 5, 6, 0)
+ assert_equal([2001, 2, 3, 4, 5, 6, 0],
+ [d.year, d.mon, d.mday, d.hour, d.min, d.sec, d.offset])
+ d = DateTime.commercial(2001, 5, 6, 4, 5, 6, '+9:00')
+ assert_equal([2001, 2, 3, 4, 5, 6, Rational(9, 24)],
+ [d.year, d.mon, d.mday, d.hour, d.min, d.sec, d.offset])
+ d = DateTime.commercial(2001, 5, 6, -4, -5, -6, '-9:00')
+ assert_equal([2001, 2, 3, 20, 55, 54, Rational(-9, 24)],
+ [d.year, d.mon, d.mday, d.hour, d.min, d.sec, d.offset])
+ end
+
+ def test_fractional
+ d = Date.jd(2451944.0)
+ assert_equal(2451944, d.jd)
+ d = Date.jd(Rational(2451944))
+ assert_equal(2451944, d.jd)
+ d = Date.jd(2451944.5)
+ assert_equal([2451944, 12], [d.jd, d.send('hour')])
+ d = Date.jd(Rational('2451944.5'))
+ assert_equal([2451944, 12], [d.jd, d.send('hour')])
+
+ d = Date.civil(2001, 2, 3.0)
+ assert_equal([2001, 2, 3], [d.year, d.mon, d.mday])
+ d = Date.civil(2001, 2, Rational(3))
+ assert_equal([2001, 2, 3], [d.year, d.mon, d.mday])
+ d = Date.civil(2001, 2, 3.5)
+ assert_equal([2001, 2, 3, 12], [d.year, d.mon, d.mday, d.send('hour')])
+ d = Date.civil(2001, 2, Rational('3.5'))
+ assert_equal([2001, 2, 3, 12], [d.year, d.mon, d.mday, d.send('hour')])
+
+ d = Date.ordinal(2001, 2.0)
+ assert_equal([2001, 2], [d.year, d.yday])
+ d = Date.ordinal(2001, Rational(2))
+ assert_equal([2001, 2], [d.year, d.yday])
+
+ d = Date.commercial(2001, 2, 3.0)
+ assert_equal([2001, 2, 3], [d.cwyear, d.cweek, d.cwday])
+ d = Date.commercial(2001, 2, Rational(3))
+ assert_equal([2001, 2, 3], [d.cwyear, d.cweek, d.cwday])
+
+ d = DateTime.jd(2451944.0)
+ assert_equal(2451944, d.jd)
+ d = DateTime.jd(Rational(2451944))
+ assert_equal(2451944, d.jd)
+ d = DateTime.jd(2451944.5)
+ assert_equal([2451944, 12], [d.jd, d.hour])
+ d = DateTime.jd(Rational('2451944.5'))
+ assert_equal([2451944, 12], [d.jd, d.hour])
+
+ d = DateTime.civil(2001, 2, 3.0)
+ assert_equal([2001, 2, 3], [d.year, d.mon, d.mday])
+ d = DateTime.civil(2001, 2, Rational(3))
+ assert_equal([2001, 2, 3], [d.year, d.mon, d.mday])
+ d = DateTime.civil(2001, 2, 3.5)
+ assert_equal([2001, 2, 3, 12], [d.year, d.mon, d.mday, d.hour])
+ d = DateTime.civil(2001, 2, Rational('3.5'))
+ assert_equal([2001, 2, 3, 12], [d.year, d.mon, d.mday, d.hour])
+ d = DateTime.civil(2001, 2, 3, 4.5)
+ assert_equal([2001, 2, 3, 4, 30], [d.year, d.mon, d.mday, d.hour, d.min])
+ d = DateTime.civil(2001, 2, 3, Rational('4.5'))
+ assert_equal([2001, 2, 3, 4, 30], [d.year, d.mon, d.mday, d.hour, d.min])
+ d = DateTime.civil(2001, 2, 3, 4, 5.5)
+ assert_equal([2001, 2, 3, 4, 5, 30],
+ [d.year, d.mon, d.mday, d.hour, d.min, d.sec])
+ d = DateTime.civil(2001, 2, 3, 4, Rational('5.5'))
+ assert_equal([2001, 2, 3, 4, 5, 30],
+ [d.year, d.mon, d.mday, d.hour, d.min, d.sec])
+
+ d = DateTime.ordinal(2001, 2.0)
+ assert_equal([2001, 2], [d.year, d.yday])
+ d = DateTime.ordinal(2001, Rational(2))
+ assert_equal([2001, 2], [d.year, d.yday])
+
+ d = DateTime.commercial(2001, 2, 3.0)
+ assert_equal([2001, 2, 3], [d.cwyear, d.cweek, d.cwday])
+ d = DateTime.commercial(2001, 2, Rational(3))
+ assert_equal([2001, 2, 3], [d.cwyear, d.cweek, d.cwday])
+
+ end
+
+ def test_canon24oc
+ d = DateTime.jd(2451943,24)
+ assert_equal([2001, 2, 3, 0, 0, 0, 0],
+ [d.year, d.mon, d.mday, d.hour, d.min, d.sec, d.offset])
+ d = DateTime.ordinal(2001,33,24)
+ assert_equal([2001, 2, 3, 0, 0, 0, 0],
+ [d.year, d.mon, d.mday, d.hour, d.min, d.sec, d.offset])
+ d = DateTime.new(2001,2,2,24)
+ assert_equal([2001, 2, 3, 0, 0, 0, 0],
+ [d.year, d.mon, d.mday, d.hour, d.min, d.sec, d.offset])
+ d = DateTime.commercial(2001,5,5,24)
+ assert_equal([2001, 2, 3, 0, 0, 0, 0],
+ [d.year, d.mon, d.mday, d.hour, d.min, d.sec, d.offset])
+ end
+
+ def test_zone
+ d = Date.new(2001, 2, 3)
+ assert_equal(Encoding::US_ASCII, d.send(:zone).encoding)
+ d = DateTime.new(2001, 2, 3)
+ assert_equal(Encoding::US_ASCII, d.send(:zone).encoding)
+ end
+
+ def test_to_s
+ d = Date.new(2001, 2, 3)
+ assert_equal(Encoding::US_ASCII, d.to_s.encoding)
+ assert_equal(Encoding::US_ASCII, d.strftime.encoding)
+ d = DateTime.new(2001, 2, 3)
+ assert_equal(Encoding::US_ASCII, d.to_s.encoding)
+ assert_equal(Encoding::US_ASCII, d.strftime.encoding)
+ end
+
+ def test_inspect
+ d = Date.new(2001, 2, 3)
+ assert_equal(Encoding::US_ASCII, d.inspect.encoding)
+ d = DateTime.new(2001, 2, 3)
+ assert_equal(Encoding::US_ASCII, d.inspect.encoding)
+ end
+
+ def test_strftime
+ assert_raise(Errno::ERANGE) do
+ Date.today.strftime('%100000z')
+ end
+ assert_raise(Errno::ERANGE) do
+ Date.new(1 << 10000).strftime('%Y')
+ end
+ end
+
+ def test_cmp
+ assert_equal(-1, Date.new(2001,2,3) <=> Date.new(2001,2,4))
+ assert_equal(0, Date.new(2001,2,3) <=> Date.new(2001,2,3))
+ assert_equal(1, Date.new(2001,2,3) <=> Date.new(2001,2,2))
+
+ assert_equal(-1, Date.new(2001,2,3) <=> 2451944.0)
+ assert_equal(-1, Date.new(2001,2,3) <=> 2451944)
+ assert_equal(0, Date.new(2001,2,3) <=> 2451943.5)
+ assert_equal(1, Date.new(2001,2,3) <=> 2451943.0)
+ assert_equal(1, Date.new(2001,2,3) <=> 2451943)
+
+ assert_equal(-1, Date.new(2001,2,3) <=> Rational('4903888/2'))
+ assert_equal(0, Date.new(2001,2,3) <=> Rational('4903887/2'))
+ assert_equal(1, Date.new(2001,2,3) <=> Rational('4903886/2'))
+ end
+
+ def test_eqeqeq
+ assert_equal(false, Date.new(2001,2,3) === Date.new(2001,2,4))
+ assert_equal(true, Date.new(2001,2,3) === Date.new(2001,2,3))
+ assert_equal(false, Date.new(2001,2,3) === Date.new(2001,2,2))
+
+ assert_equal(true, Date.new(2001,2,3) === 2451944.0)
+ assert_equal(true, Date.new(2001,2,3) === 2451944)
+ assert_equal(false, Date.new(2001,2,3) === 2451943.5)
+ assert_equal(false, Date.new(2001,2,3) === 2451943.0)
+ assert_equal(false, Date.new(2001,2,3) === 2451943)
+
+ assert_equal(true, Date.new(2001,2,3) === Rational('4903888/2'))
+ assert_equal(false, Date.new(2001,2,3) === Rational('4903887/2'))
+ assert_equal(false, Date.new(2001,2,3) === Rational('4903886/2'))
+ end
+
+ def test_period
+ # -5000
+ d = Date.new(-5000,1,1)
+ assert_equal([-5000, 1, 1, 5], [d.year, d.mon, d.mday, d.wday])
+ d2 = d.gregorian
+ assert_equal([-5001, 11, 22, 5], [d2.year, d2.mon, d2.mday, d.wday])
+
+ d = Date.new(-5000,1,1,Date::JULIAN)
+ assert_equal([-5000, 1, 1, 5], [d.year, d.mon, d.mday, d.wday])
+ d2 = d.gregorian
+ assert_equal([-5001, 11, 22, 5], [d2.year, d2.mon, d2.mday, d.wday])
+
+ d = Date.new(-5000,1,1,Date::GREGORIAN)
+ assert_equal([-5000, 1, 1, 3], [d.year, d.mon, d.mday, d.wday])
+ d2 = d.julian
+ assert_equal([-5000, 2, 10, 3], [d2.year, d2.mon, d2.mday, d.wday])
+
+ d = Date.jd(-105192)
+ assert_equal([-5000, 1, 1, 5], [d.year, d.mon, d.mday, d.wday])
+ d2 = d.gregorian
+ assert_equal([-5001, 11, 22, 5], [d2.year, d2.mon, d2.mday, d.wday])
+
+ d = Date.jd(-105192,Date::JULIAN)
+ assert_equal([-5000, 1, 1, 5], [d.year, d.mon, d.mday, d.wday])
+ d2 = d.gregorian
+ assert_equal([-5001, 11, 22, 5], [d2.year, d2.mon, d2.mday, d.wday])
+
+ d = Date.jd(-105152,Date::GREGORIAN)
+ assert_equal([-5000, 1, 1, 3], [d.year, d.mon, d.mday, d.wday])
+ d2 = d.julian
+ assert_equal([-5000, 2, 10, 3], [d2.year, d2.mon, d2.mday, d.wday])
+
+ # -5000000
+ d = Date.new(-5_000_000,1,1)
+ assert_equal([-5_000_000, 1, 1, 3], [d.year, d.mon, d.mday, d.wday])
+ d2 = d.gregorian
+ assert_equal([-5_000_103, 4, 28, 3], [d2.year, d2.mon, d2.mday, d.wday])
+
+ d = Date.new(-5_000_000,1,1,Date::JULIAN)
+ assert_equal([-5_000_000, 1, 1, 3], [d.year, d.mon, d.mday, d.wday])
+ d2 = d.gregorian
+ assert_equal([-5_000_103, 4, 28, 3], [d2.year, d2.mon, d2.mday, d.wday])
+
+ d = Date.new(-5_000_000,1,1,Date::GREGORIAN)
+ assert_equal([-5_000_000, 1, 1, 6], [d.year, d.mon, d.mday, d.wday])
+ d2 = d.julian
+ assert_equal([-4_999_898, 9, 4, 6], [d2.year, d2.mon, d2.mday, d.wday])
+
+ d = Date.jd(-1824528942)
+ assert_equal([-5_000_000, 1, 1, 3], [d.year, d.mon, d.mday, d.wday])
+ d2 = d.gregorian
+ assert_equal([-5_000_103, 4, 28, 3], [d2.year, d2.mon, d2.mday, d.wday])
+
+ d = Date.jd(-1824528942,Date::JULIAN)
+ assert_equal([-5_000_000, 1, 1, 3], [d.year, d.mon, d.mday, d.wday])
+ d2 = d.gregorian
+ assert_equal([-5_000_103, 4, 28, 3], [d2.year, d2.mon, d2.mday, d.wday])
+
+ d = Date.jd(-1824491440,Date::GREGORIAN)
+ assert_equal([-5_000_000, 1, 1, 6], [d.year, d.mon, d.mday, d.wday])
+ d2 = d.julian
+ assert_equal([-4_999_898, 9, 4, 6], [d2.year, d2.mon, d2.mday, d.wday])
+
+ # 5000000
+ d = Date.new(5_000_000,1,1)
+ assert_equal([5_000_000, 1, 1, 6], [d.year, d.mon, d.mday, d.wday])
+ d2 = d.julian
+ assert_equal([4_999_897, 5, 3, 6], [d2.year, d2.mon, d2.mday, d.wday])
+
+ d = Date.new(5_000_000,1,1,Date::JULIAN)
+ assert_equal([5_000_000, 1, 1, 5], [d.year, d.mon, d.mday, d.wday])
+ d2 = d.gregorian
+ assert_equal([5_000_102, 9, 1, 5], [d2.year, d2.mon, d2.mday, d.wday])
+
+ d = Date.new(5_000_000,1,1,Date::GREGORIAN)
+ assert_equal([5_000_000, 1, 1, 6], [d.year, d.mon, d.mday, d.wday])
+ d2 = d.julian
+ assert_equal([4_999_897, 5, 3, 6], [d2.year, d2.mon, d2.mday, d.wday])
+
+ d = Date.jd(1827933560)
+ assert_equal([5_000_000, 1, 1, 6], [d.year, d.mon, d.mday, d.wday])
+ d2 = d.julian
+ assert_equal([4_999_897, 5, 3, 6], [d2.year, d2.mon, d2.mday, d.wday])
+
+ d = Date.jd(1827971058,Date::JULIAN)
+ assert_equal([5_000_000, 1, 1, 5], [d.year, d.mon, d.mday, d.wday])
+ d2 = d.gregorian
+ assert_equal([5_000_102, 9, 1, 5], [d2.year, d2.mon, d2.mday, d.wday])
+
+ d = Date.jd(1827933560,Date::GREGORIAN)
+ assert_equal([5_000_000, 1, 1, 6], [d.year, d.mon, d.mday, d.wday])
+ d2 = d.julian
+ assert_equal([4_999_897, 5, 3, 6], [d2.year, d2.mon, d2.mday, d.wday])
+
+ # dt
+ d = DateTime.new(-123456789,2,3,4,5,6,0)
+ assert_equal([-123456789, 2, 3, 4, 5, 6, 1],
+ [d.year, d.mon, d.mday, d.hour, d.min, d.sec, d.wday])
+ d2 = d.gregorian
+ assert_equal([-123459325, 12, 27, 4, 5, 6, 1],
+ [d2.year, d2.mon, d2.mday, d2.hour, d2.min, d2.sec, d.wday])
+
+ d = DateTime.new(123456789,2,3,4,5,6,0)
+ assert_equal([123456789, 2, 3, 4, 5, 6, 5],
+ [d.year, d.mon, d.mday, d.hour, d.min, d.sec, d.wday])
+ d2 = d.julian
+ assert_equal([123454254, 1, 19, 4, 5, 6, 5],
+ [d2.year, d2.mon, d2.mday, d2.hour, d2.min, d2.sec, d.wday])
+ end
+
+ def period2_iter2(from, to, sg)
+ (from..to).each do |j|
+ d = Date.jd(j, sg)
+ d2 = Date.new(d.year, d.mon, d.mday, sg)
+ assert_equal(d2.jd, j)
+ assert_equal(d2.ajd, d.ajd)
+ assert_equal(d2.year, d.year)
+
+ d = DateTime.jd(j, 12,0,0, '+12:00', sg)
+ d2 = DateTime.new(d.year, d.mon, d.mday,
+ d.hour, d.min, d.sec, d.offset, sg)
+ assert_equal(d2.jd, j)
+ assert_equal(d2.ajd, d.ajd)
+ assert_equal(d2.year, d.year)
+ end
+ end
+
+ def period2_iter(from, to)
+ period2_iter2(from, to, Date::GREGORIAN)
+ period2_iter2(from, to, Date::ITALY)
+ period2_iter2(from, to, Date::ENGLAND)
+ period2_iter2(from, to, Date::JULIAN)
+ end
+
+ def test_period2
+ cm_period0 = 71149239
+ cm_period = 0xfffffff.div(cm_period0) * cm_period0
+ period2_iter(-cm_period * (1 << 64) - 3, -cm_period * (1 << 64) + 3)
+ period2_iter(-cm_period - 3, -cm_period + 3)
+ period2_iter(0 - 3, 0 + 3)
+ period2_iter(+cm_period - 3, +cm_period + 3)
+ period2_iter(+cm_period * (1 << 64) - 3, +cm_period * (1 << 64) + 3)
+ end
+
+ def test_marshal
+ s = "\x04\bU:\tDate[\bU:\rRational[\ai\x03\xCF\xD3Ji\ai\x00o:\x13Date::Infinity\x06:\a@di\xFA"
+ d = Marshal.load(s)
+ assert_equal(Rational(4903887,2), d.ajd)
+ assert_equal(Rational(0,24), d.send(:offset))
+ assert_equal(Date::GREGORIAN, d.start)
+
+ s = "\x04\bU:\rDateTime[\bU:\rRational[\al+\b\xC9\xB0\x81\xBD\x02\x00i\x02\xC0\x12U;\x06[\ai\bi\ro:\x13Date::Infinity\x06:\a@di\xFA"
+ d = Marshal.load(s)
+ assert_equal(Rational(11769327817,4800), d.ajd)
+ assert_equal(Rational(9,24), d.offset)
+ assert_equal(Date::GREGORIAN, d.start)
+ end
+
+ def test_taint
+ h = Date._strptime('15:43+09:00', '%R%z')
+ assert_equal(false, h[:zone].tainted?)
+ h = Date._strptime('15:43+09:00'.taint, '%R%z')
+ assert_equal(true, h[:zone].tainted?)
+
+ h = Date._strptime('1;1/0', '%d')
+ assert_equal(false, h[:leftover].tainted?)
+ h = Date._strptime('1;1/0'.taint, '%d')
+ assert_equal(true, h[:leftover].tainted?)
+
+ h = Date._parse('15:43+09:00')
+ assert_equal(false, h[:zone].tainted?)
+ h = Date._parse('15:43+09:00'.taint)
+ assert_equal(true, h[:zone].tainted?)
+
+ s = Date.today.strftime('new 105')
+ assert_equal(false, s.tainted?)
+ s = Date.today.strftime('new 105'.taint)
+ assert_equal(true, s.tainted?)
+ s = Date.today.strftime("new \000 105".taint)
+ assert_equal(true, s.tainted?)
+
+ s = DateTime.now.strftime('super $record')
+ assert_equal(false, s.tainted?)
+ s = DateTime.now.strftime('super $record'.taint)
+ assert_equal(true, s.tainted?)
+ end
+
+ def test_enc
+ Date::MONTHNAMES.each do |s|
+ assert_equal(Encoding::US_ASCII, s.encoding) if s
+ end
+ Date::DAYNAMES.each do |s|
+ assert_equal(Encoding::US_ASCII, s.encoding) if s
+ end
+ Date::ABBR_MONTHNAMES.each do |s|
+ assert_equal(Encoding::US_ASCII, s.encoding) if s
+ end
+ Date::ABBR_DAYNAMES.each do |s|
+ assert_equal(Encoding::US_ASCII, s.encoding) if s
+ end
+
+ h = Date._strptime('15:43+09:00'.force_encoding('euc-jp'), '%R%z')
+ assert_equal(Encoding::EUC_JP, h[:zone].encoding)
+ h = Date._strptime('15:43+09:00'.force_encoding('ascii-8bit'), '%R%z')
+ assert_equal(Encoding::ASCII_8BIT, h[:zone].encoding)
+
+ h = Date._strptime('1;1/0'.force_encoding('euc-jp'), '%d')
+ assert_equal(Encoding::EUC_JP, h[:leftover].encoding)
+ h = Date._strptime('1;1/0'.force_encoding('ascii-8bit'), '%d')
+ assert_equal(Encoding::ASCII_8BIT, h[:leftover].encoding)
+
+ h = Date._parse('15:43+09:00'.force_encoding('euc-jp'))
+ assert_equal(Encoding::EUC_JP, h[:zone].encoding)
+ h = Date._parse('15:43+09:00'.force_encoding('ascii-8bit'))
+ assert_equal(Encoding::ASCII_8BIT, h[:zone].encoding)
+
+ s = Date.today.strftime('new 105'.force_encoding('euc-jp'))
+ assert_equal(Encoding::EUC_JP, s.encoding)
+ s = Date.today.strftime('new 105'.force_encoding('ascii-8bit'))
+ assert_equal(Encoding::ASCII_8BIT, s.encoding)
+
+ s = DateTime.now.strftime('super $record'.force_encoding('euc-jp'))
+ assert_equal(Encoding::EUC_JP, s.encoding)
+ s = DateTime.now.strftime('super $record'.force_encoding('ascii-8bit'))
+ assert_equal(Encoding::ASCII_8BIT, s.encoding)
+ end
+
+ def test_dup
+ d = Date.new(2001,2,3)
+ d2 = d.dup
+ assert_not_equal(d.object_id, d2.object_id)
+ assert_kind_of(Date, d2)
+ assert_equal(d, d2)
+
+ d = DateTime.new(2001,2,3)
+ d2 = d.dup
+ assert_not_equal(d.object_id, d2.object_id)
+ assert_kind_of(DateTime, d2)
+ assert_equal(d, d2)
+ end
+
+ def test_base
+ skip unless defined?(Date.test_all)
+ assert_equal(true, Date.test_all)
+ end
+
+end
diff --git a/test/dbm/test_dbm.rb b/test/dbm/test_dbm.rb
index 14fd83899e..79c8ae2150 100644
--- a/test/dbm/test_dbm.rb
+++ b/test/dbm/test_dbm.rb
@@ -10,8 +10,8 @@ if defined? DBM
require 'tmpdir'
require 'fileutils'
- class TestDBM < Test::Unit::TestCase
- def TestDBM.uname_s
+ class TestDBM_RDONLY < Test::Unit::TestCase
+ def TestDBM_RDONLY.uname_s
require 'rbconfig'
case RbConfig::CONFIG['target_os']
when 'cygwin'
@@ -31,7 +31,6 @@ if defined? DBM
@tmpdir = Dir.mktmpdir("tmptest_dbm")
@prefix = "tmptest_dbm_#{$$}"
@path = "#{@tmpdir}/#{@prefix}_"
- assert_instance_of(DBM, @dbm = DBM.new(@path))
# prepare to make readonly DBM file
DBM.open("#{@tmpdir}/#{@prefix}_rdonly") {|dbm|
@@ -43,7 +42,6 @@ if defined? DBM
assert_instance_of(DBM, @dbm_rdonly = DBM.new("#{@tmpdir}/#{@prefix}_rdonly", nil))
end
def teardown
- assert_nil(@dbm.close)
assert_nil(@dbm_rdonly.close)
ObjectSpace.each_object(DBM) do |obj|
obj.close unless obj.closed?
@@ -51,6 +49,32 @@ if defined? DBM
FileUtils.remove_entry_secure @tmpdir
end
+ def test_delete_rdonly
+ if /^CYGWIN_9/ !~ SYSTEM
+ assert_raise(DBMError) {
+ @dbm_rdonly.delete("foo")
+ }
+
+ assert_nil(@dbm_rdonly.delete("bar"))
+ end
+ end
+ end
+
+ class TestDBM < Test::Unit::TestCase
+ def setup
+ @tmpdir = Dir.mktmpdir("tmptest_dbm")
+ @prefix = "tmptest_dbm_#{$$}"
+ @path = "#{@tmpdir}/#{@prefix}_"
+ assert_instance_of(DBM, @dbm = DBM.new(@path))
+ end
+ def teardown
+ assert_nil(@dbm.close)
+ ObjectSpace.each_object(DBM) do |obj|
+ obj.close unless obj.closed?
+ end
+ FileUtils.remove_entry_secure @tmpdir
+ end
+
def check_size(expect, dbm=@dbm)
assert_equal(expect, dbm.size)
n = 0
@@ -79,11 +103,14 @@ if defined? DBM
assert_equal(foo, true)
assert_nil(dbm.close)
end
+
def test_s_open_no_create
+ skip "dbm_open() is broken on libgdbm 1.8.0 or prior (#{DBM::VERSION})" if /GDBM version 1\.(?:[0-7]\b|8\.0)/ =~ DBM::VERSION
assert_nil(dbm = DBM.open("#{@tmpdir}/#{@prefix}", nil))
ensure
dbm.close if dbm
end
+
def test_s_open_with_block
assert_equal(DBM.open("#{@tmpdir}/#{@prefix}") { :foo }, :foo)
end
@@ -322,15 +349,8 @@ if defined? DBM
assert_equal(2, @dbm.size)
assert_nil(@dbm.delete(key))
-
- if /^CYGWIN_9/ !~ SYSTEM
- assert_raise(DBMError) {
- @dbm_rdonly.delete("foo")
- }
-
- assert_nil(@dbm_rdonly.delete("bar"))
- end
end
+
def test_delete_with_block
key = 'no called block'
@dbm[key] = 'foo'
@@ -509,6 +529,7 @@ if defined? DBM
end
def test_writer_open_notexist
+ skip "dbm_open() is broken on libgdbm 1.8.0 or prior (#{DBM::VERSION})" if /GDBM version 1\.(?:[0-7]\b|8\.0)/ =~ DBM::VERSION
assert_raise(Errno::ENOENT) {
DBM.open("#{@tmproot}/a", 0666, DBM::WRITER)
}
diff --git a/test/digest/test_digest.rb b/test/digest/test_digest.rb
index fa12086300..661129083a 100644..100755
--- a/test/digest/test_digest.rb
+++ b/test/digest/test_digest.rb
@@ -17,15 +17,29 @@ module TestDigest
Data1 = "abc"
Data2 = "abcdbcdecdefdefgefghfghighijhijkijkljklmklmnlmnomnopnopq"
+ def test_s_new
+ self.class::DATA.each do |str, hexdigest|
+ assert_raise(ArgumentError) { self.class::ALGO.new("") }
+ end
+ end
+
def test_s_hexdigest
- self.class::DATA.each do |str, digest|
- assert_equal(digest, self.class::ALGO.hexdigest(str))
+ self.class::DATA.each do |str, hexdigest|
+ assert_equal(hexdigest, self.class::ALGO.hexdigest(str))
+ end
+ end
+
+ def test_s_base64digest
+ self.class::DATA.each do |str, hexdigest|
+ digest = [hexdigest].pack("H*")
+ assert_equal([digest].pack("m0"), self.class::ALGO.base64digest(str))
end
end
def test_s_digest
- self.class::DATA.each do |str, digest|
- assert_equal([digest].pack("H*"), self.class::ALGO.digest(str))
+ self.class::DATA.each do |str, hexdigest|
+ digest = [hexdigest].pack("H*")
+ assert_equal(digest, self.class::ALGO.digest(str))
end
end
@@ -51,7 +65,7 @@ module TestDigest
md2 = self.class::ALGO.new
md2 << "A"
- assert(md1 != md2, self.class::ALGO)
+ assert_not_equal(md1, md2, self.class::ALGO)
md2 << "BC"
@@ -64,6 +78,15 @@ module TestDigest
}
end
+ def test_alignment
+ md = self.class::ALGO.new
+ assert_nothing_raised('#4320') {
+ md.update('a' * 97)
+ md.update('a' * 97)
+ md.hexdigest
+ }
+ end
+
class TestMD5 < Test::Unit::TestCase
include TestDigest
ALGO = Digest::MD5
@@ -117,4 +140,11 @@ module TestDigest
Data2 => "12a053384a9c0c88e405a06c27dcf49ada62eb2b",
}
end if defined?(Digest::RMD160)
+
+ class TestBase < Test::Unit::TestCase
+ def test_base
+ bug3810 = '[ruby-core:32231]'
+ assert_raise(NotImplementedError, bug3810) {Digest::Base.new}
+ end
+ end
end
diff --git a/test/digest/test_digest_extend.rb b/test/digest/test_digest_extend.rb
new file mode 100644
index 0000000000..577fd7a455
--- /dev/null
+++ b/test/digest/test_digest_extend.rb
@@ -0,0 +1,157 @@
+require 'test/unit'
+require 'digest'
+require_relative '../with_different_ofs.rb'
+
+class TestDigestExtend < Test::Unit::TestCase
+ extend DifferentOFS
+
+ class MyDigest < Digest::Class
+ def initialize(*arg)
+ super
+ @buf = []
+ end
+
+ def initialize_copy(org)
+ @buf = org.buf.dup
+ end
+
+ def update(arg)
+ @buf << arg
+ self
+ end
+
+ alias << update
+
+ def finish
+ (@buf.join('').length % 256).chr
+ end
+
+ def reset
+ @buf.clear
+ self
+ end
+
+ protected
+
+ def buf
+ @buf
+ end
+ end
+
+ def setup
+ @MyDigest = Class.new(MyDigest)
+ end
+
+ def test_digest_s_hexencode
+ assert_equal('', Digest.hexencode(''))
+ assert_equal('0102', Digest.hexencode("\1\2"))
+ assert_equal(
+ (0..0xff).to_a.map { |c| sprintf("%02x", c ) }.join(''),
+ Digest.hexencode((0..0xff).to_a.map { |c| c.chr }.join(''))
+ )
+ end
+
+ def test_class_reset
+ a = Digest::SHA1.new
+ base = a.to_s
+ assert_equal(base, a.reset.to_s)
+ b = a.new
+ assert_equal(base, b.to_s)
+ b.update('1')
+ assert_not_equal(base, b.to_s)
+ assert_equal(base, b.reset.to_s)
+ end
+
+ def test_digest
+ assert_equal("\3", MyDigest.digest("foo"))
+ end
+
+ def test_hexdigest
+ assert_equal("03", @MyDigest.hexdigest("foo"))
+ end
+
+ def test_context
+ digester = @MyDigest.new
+ digester.update("foo")
+ assert_equal("\3", digester.digest)
+ digester.update("foobar")
+ assert_equal("\t", digester.digest)
+ digester.update("foo")
+ assert_equal("\f", digester.digest)
+ end
+
+ def test_new
+ a = Digest::SHA1.new
+ b = a.new
+ obj = a.to_s
+ assert_equal(obj, a.to_s)
+ assert_equal(obj, b.to_s)
+ a.update('1')
+ assert_not_equal(obj, a.to_s)
+ assert_equal(obj, b.to_s)
+ end
+
+ def test_digest_hexdigest
+ [:digest, :hexdigest].each do |m|
+ exp_1st = "\3"; exp_1st = Digest.hexencode(exp_1st) if m == :hexdigest
+ exp_2nd = "\6"; exp_2nd = Digest.hexencode(exp_2nd) if m == :hexdigest
+ digester = @MyDigest.new
+ digester.update("foo")
+ obj = digester.send(m)
+ # digest w/o param does not reset the org digester.
+ assert_equal(exp_1st, obj)
+ digester.update("bar")
+ obj = digester.send(m)
+ assert_equal(exp_2nd, obj)
+ obj = digester.send(m, "baz")
+ # digest with param resets the org digester.
+ assert_equal(exp_1st, obj)
+ end
+ end
+
+ def test_digest_hexdigest_bang
+ [:digest!, :hexdigest!].each do |m|
+ exp_1st = "\3"; exp_1st = Digest.hexencode(exp_1st) if m == :hexdigest!
+ digester = @MyDigest.new
+ digester.update("foo")
+ obj = digester.send(m) # digest! always resets the org digester.
+ assert_equal(exp_1st, obj)
+ digester.update("bar")
+ obj = digester.send(m)
+ assert_equal(exp_1st, obj)
+ end
+ end
+
+ def test_to_s
+ digester = @MyDigest.new
+ digester.update("foo")
+ assert_equal("03", digester.to_s)
+ end
+
+ def test_length
+ @MyDigest.class_eval do
+ def digest_length
+ 2
+ end
+ end
+ digester = @MyDigest.new
+ assert_equal(2, digester.length)
+ assert_equal(2, digester.size)
+ end
+
+ def test_digest_length # breaks @MyDigest#digest_length
+ assert_equal(1, @MyDigest.new.digest_length)
+ @MyDigest.class_eval do
+ def digest_length
+ 2
+ end
+ end
+ assert_equal(2, @MyDigest.new.digest_length)
+ end
+
+ def test_block_length
+ assert_raises(RuntimeError) do
+ @MyDigest.new.block_length
+ end
+ end
+end
diff --git a/test/digest/test_digest_hmac.rb b/test/digest/test_digest_hmac.rb
index a0d5d2f244..3eb1567397 100644
--- a/test/digest/test_digest_hmac.rb
+++ b/test/digest/test_digest_hmac.rb
@@ -1,3 +1,2 @@
-require 'pathname'
-require Pathname.new(__FILE__).dirname.join('../inlinetest.rb')
+require_relative '../inlinetest.rb'
InlineTest.loadtest__END__part('digest/hmac.rb')
diff --git a/test/dl/test_base.rb b/test/dl/test_base.rb
index 7eddbf8226..0642f0ed89 100644
--- a/test/dl/test_base.rb
+++ b/test/dl/test_base.rb
@@ -25,13 +25,56 @@ when /linux/
libm_so = File.join(libdir, "libm.so.6")
when /mingw/, /mswin/
require "rbconfig"
- libc_so = libm_so = RbConfig::CONFIG["RUBY_SO_NAME"].split(/-/, 2)[0] + ".dll"
+ libc_so = libm_so = RbConfig::CONFIG["RUBY_SO_NAME"].split(/-/).find{|e| /^msvc/ =~ e} + ".dll"
when /darwin/
libc_so = "/usr/lib/libc.dylib"
libm_so = "/usr/lib/libm.dylib"
+when /kfreebsd/
+ libc_so = "/lib/libc.so.0.1"
+ libm_so = "/lib/libm.so.1"
when /bsd|dragonfly/
libc_so = "/usr/lib/libc.so"
libm_so = "/usr/lib/libm.so"
+when /solaris/
+ libdir = '/lib'
+ case [0].pack('L!').size
+ when 4
+ # 32-bit ruby
+ libdir = '/lib' if File.directory? '/lib'
+ when 8
+ # 64-bit ruby
+ libdir = '/lib/64' if File.directory? '/lib/64'
+ end
+ libc_so = File.join(libdir, "libc.so")
+ libm_so = File.join(libdir, "libm.so")
+when /aix/
+ pwd=Dir.pwd
+ libc_so = libm_so = "#{pwd}/libaixdltest.so"
+ unless File.exist? libc_so
+ cobjs=%w!strcpy.o!
+ mobjs=%w!floats.o sin.o!
+ funcs=%w!sin sinf strcpy strncpy!
+ expfile='dltest.exp'
+ require 'tmpdir'
+ Dir.mktmpdir do |dir|
+ begin
+ Dir.chdir dir
+ %x!/usr/bin/ar x /usr/lib/libc.a #{cobjs.join(' ')}!
+ %x!/usr/bin/ar x /usr/lib/libm.a #{mobjs.join(' ')}!
+ %x!echo "#{funcs.join("\n")}\n" > #{expfile}!
+ require 'rbconfig'
+ if RbConfig::CONFIG["GCC"] = 'yes'
+ lflag='-Wl,'
+ else
+ lflag=''
+ end
+ flags="#{lflag}-bE:#{expfile} #{lflag}-bnoentry -lm"
+ %x!#{RbConfig::CONFIG["LDSHARED"]} -o #{libc_so} #{(cobjs+mobjs).join(' ')} #{flags}!
+ ensure
+ Dir.chdir pwd
+ end
+ end
+ end
else
libc_so = ARGV[0] if ARGV[0] && ARGV[0][0] == ?/
libm_so = ARGV[1] if ARGV[1] && ARGV[1][0] == ?/
@@ -66,19 +109,19 @@ module DL
end
def assert_match(expected, actual, message="")
- assert(expected === actual, message)
+ assert_operator(expected, :===, actual, message)
end
def assert_positive(actual)
- assert(actual > 0)
+ assert_operator(actual, :>, 0)
end
def assert_zero(actual)
- assert(actual == 0)
+ assert_equal(0, actual)
end
def assert_negative(actual)
- assert(actual < 0)
+ assert_operator(actual, :<, 0)
end
def test_empty()
diff --git a/test/dl/test_callback.rb b/test/dl/test_callback.rb
new file mode 100644
index 0000000000..ed3be661e7
--- /dev/null
+++ b/test/dl/test_callback.rb
@@ -0,0 +1,69 @@
+require_relative 'test_base'
+require_relative '../ruby/envutil'
+require 'dl/callback'
+require 'dl/func'
+
+module DL
+ class TestCallback < TestBase
+ include DL
+
+ def test_remove_callback_failed
+ assert_equal(false, remove_callback(0, TYPE_VOIDP))
+ end
+
+ def test_remove_callback
+ addr = set_callback(TYPE_VOIDP, 1) do |str|
+ str
+ end
+ assert remove_callback(addr, TYPE_VOIDP), 'callback removed'
+ end
+
+ def test_callback_return_value
+ addr = set_callback(TYPE_VOIDP, 1) do |str|
+ str
+ end
+ func = CFunc.new(addr, TYPE_VOIDP, 'test')
+ f = Function.new(func, [TYPE_VOIDP])
+ ptr = CPtr['blah']
+ assert_equal ptr, f.call(ptr)
+ end
+
+ def test_callback_return_arbitrary
+ foo = 'foo'
+ addr = set_callback(TYPE_VOIDP, 1) do |ptr|
+ CPtr[foo].to_i
+ end
+ func = CFunc.new(addr, TYPE_VOIDP, 'test')
+ f = Function.new(func, [TYPE_VOIDP])
+
+ ptr = CPtr['foo']
+ assert_equal 'foo', f.call(ptr).to_s
+ end
+
+ def test_callback_with_string
+ called_with = nil
+ addr = set_callback(TYPE_VOID, 1) do |str|
+ called_with = dlunwrap(str)
+ end
+ func = CFunc.new(addr, TYPE_VOID, 'test')
+ f = Function.new(func, [TYPE_VOIDP])
+
+ f.call(dlwrap('foo'))
+ assert_equal 'foo', called_with
+ end
+
+ def test_call_callback
+ called = false
+
+ addr = set_callback(TYPE_VOID, 1) do |foo|
+ called = true
+ end
+
+ func = CFunc.new(addr, TYPE_VOID, 'test')
+ f = Function.new(func, [TYPE_VOIDP])
+ f.call(nil)
+
+ assert called, 'function should be called'
+ end
+ end
+end
diff --git a/test/dl/test_cfunc.rb b/test/dl/test_cfunc.rb
new file mode 100644
index 0000000000..c0bab45700
--- /dev/null
+++ b/test/dl/test_cfunc.rb
@@ -0,0 +1,80 @@
+require_relative 'test_base'
+require 'dl/func'
+
+module DL
+ class TestCFunc < TestBase
+ def setup
+ super
+ @name = 'strcpy'
+ @cf = CFunc.new(@libc[@name], TYPE_VOIDP, @name)
+ end
+
+ def test_ptr=
+ @cf.ptr = @libc['malloc']
+ assert_equal @cf.ptr, @libc['malloc']
+ end
+
+ def test_ptr
+ assert_equal @cf.ptr, @libc[@name]
+ end
+
+ def test_set_calltype
+ @cf.calltype = :foo
+ assert_equal :foo, @cf.calltype
+ end
+
+ def test_new_ptr_type_name
+ assert_equal @name, @cf.name
+ assert @cf.name.tainted?, 'name should be tainted'
+ assert_equal :cdecl, @cf.calltype
+ assert_equal TYPE_VOIDP, @cf.ctype
+ end
+
+ def test_new_ptr
+ cf = CFunc.new(@libc['strcpy'])
+ assert_nil cf.name
+ assert_equal :cdecl, cf.calltype
+ assert_equal TYPE_VOID, cf.ctype
+ end
+
+ def test_name_should_be_duped
+ assert_equal @name, @cf.name
+ assert @cf.name.tainted?, 'name should be tainted'
+
+ name = @name.dup
+ @name << 'foo'
+
+ assert_equal name, @cf.name
+ end
+
+ def test_to_s
+ s = @cf.to_s
+ assert s.tainted?, 'to_s should be tainted'
+ assert_match(/ptr=#{sprintf("0x0*%x", @cf.ptr)}/, s)
+ assert_match(/name='#{@cf.name}'/, s)
+ assert_match(/type=#{@cf.ctype}/, s)
+ end
+
+ def test_inspect
+ assert_equal @cf.inspect, @cf.to_s
+ end
+
+ def test_inspect_is_tainted
+ assert @cf.inspect.tainted?, 'inspect is tainted'
+ end
+
+ def test_to_i
+ assert_equal @cf.to_i, @cf.ptr
+ assert_equal @libc[@name], @cf.to_i
+ end
+
+ def test_last_error
+ Thread.new do
+ f = Function.new(@cf, [TYPE_VOIDP, TYPE_VOIDP])
+ assert_nil CFunc.last_error
+ str = f.call("000", "123")
+ assert_not_nil CFunc.last_error
+ end.join
+ end
+ end
+end
diff --git a/test/dl/test_cparser.rb b/test/dl/test_cparser.rb
new file mode 100644
index 0000000000..3be727a759
--- /dev/null
+++ b/test/dl/test_cparser.rb
@@ -0,0 +1,13 @@
+require_relative 'test_base'
+
+require 'dl/cparser'
+
+module DL
+ class TestCParser < TestBase
+ include DL::CParser
+
+ def test_uint_ctype
+ assert_equal(-DL::TYPE_INT, parse_ctype('uint'))
+ end
+ end
+end
diff --git a/test/dl/test_cptr.rb b/test/dl/test_cptr.rb
new file mode 100644
index 0000000000..c3793859d7
--- /dev/null
+++ b/test/dl/test_cptr.rb
@@ -0,0 +1,222 @@
+require_relative 'test_base'
+require_relative '../ruby/envutil'
+
+module DL
+ class TestCPtr < TestBase
+ def test_cptr_to_int
+ null = DL::NULL
+ assert_equal(null.to_i, null.to_int)
+ end
+
+ def test_malloc_free_func_int
+ free = CFunc.new(DL::RUBY_FREE, TYPE_VOID, 'free')
+
+ ptr = CPtr.malloc(10, free.to_i)
+ assert_equal 10, ptr.size
+ assert_equal free.to_i, ptr.free.to_i
+ end
+
+ def test_malloc_free_func
+ free = CFunc.new(DL::RUBY_FREE, TYPE_VOID, 'free')
+
+ ptr = CPtr.malloc(10, free)
+ assert_equal 10, ptr.size
+ assert_equal free.to_i, ptr.free.to_i
+ end
+
+ def test_to_str
+ str = "hello world"
+ ptr = CPtr[str]
+
+ assert_equal 3, ptr.to_str(3).length
+ assert_equal str, ptr.to_str
+
+ ptr[5] = 0
+ assert_equal "hello\0world", ptr.to_str
+ end
+
+ def test_to_s
+ str = "hello world"
+ ptr = CPtr[str]
+
+ assert_equal 3, ptr.to_s(3).length
+ assert_equal str, ptr.to_s
+
+ ptr[5] = 0
+ assert_equal 'hello', ptr.to_s
+ end
+
+ def test_minus
+ str = "hello world"
+ ptr = CPtr[str]
+ assert_equal ptr.to_s, (ptr + 3 - 3).to_s
+ end
+
+ # TODO: what if the pointer size is 0? raise an exception? do we care?
+ def test_plus
+ str = "hello world"
+ ptr = CPtr[str]
+ new_str = ptr + 3
+ assert_equal 'lo world', new_str.to_s
+ end
+
+ def test_inspect
+ ptr = CPtr.new(0)
+ inspect = ptr.inspect
+ assert_match(/size=#{ptr.size}/, inspect)
+ assert_match(/free=#{sprintf("%#x", ptr.free.to_i)}/, inspect)
+ assert_match(/ptr=#{sprintf("%#x", ptr.to_i)}/, inspect)
+ end
+
+ def test_to_ptr_string
+ str = "hello world"
+ ptr = CPtr[str]
+ assert ptr.tainted?, 'pointer should be tainted'
+ assert_equal str.length, ptr.size
+ assert_equal 'hello', ptr[0,5]
+ end
+
+ def test_to_ptr_io
+ buf = CPtr.malloc(10)
+ File.open(__FILE__, 'r') do |f|
+ ptr = CPtr.to_ptr f
+ fread = CFunc.new(@libc['fread'], TYPE_VOID, 'fread')
+ fread.call([buf.to_i, DL::SIZEOF_CHAR, buf.size - 1, ptr.to_i])
+ end
+
+ File.open(__FILE__, 'r') do |f|
+ assert_equal f.read(9), buf.to_s
+ end
+ end
+
+ def test_to_ptr_with_ptr
+ ptr = CPtr.new 0
+ ptr2 = CPtr.to_ptr Struct.new(:to_ptr).new(ptr)
+ assert_equal ptr, ptr2
+
+ assert_raises(DL::DLError) do
+ CPtr.to_ptr Struct.new(:to_ptr).new(nil)
+ end
+ end
+
+ def test_to_ptr_with_num
+ ptr = CPtr.new 0
+ assert_equal ptr, CPtr[0]
+ end
+
+ def test_equals
+ ptr = CPtr.new 0
+ ptr2 = CPtr.new 0
+ assert_equal ptr2, ptr
+ end
+
+ def test_not_equals
+ ptr = CPtr.new 0
+ assert_not_equal 10, ptr, '10 should not equal the pointer'
+ end
+
+ def test_cmp
+ ptr = CPtr.new 0
+ assert_nil(ptr <=> 10, '10 should not be comparable')
+ end
+
+ def test_ref_ptr
+ ary = [0,1,2,4,5]
+ addr = CPtr.new(dlwrap(ary))
+ assert_equal addr.to_i, addr.ref.ptr.to_i
+
+ assert_equal addr.to_i, (+ (- addr)).to_i
+ end
+
+ def test_to_value
+ ary = [0,1,2,4,5]
+ addr = CPtr.new(dlwrap(ary))
+ assert_equal ary, addr.to_value
+ end
+
+ def test_free
+ ptr = CPtr.malloc(4)
+ assert_nil ptr.free
+ end
+
+ def test_free=
+ assert_normal_exit(<<-"End", '[ruby-dev:39269]')
+ require 'dl'
+ DL::LIBC_SO = #{DL::LIBC_SO.dump}
+ DL::LIBM_SO = #{DL::LIBM_SO.dump}
+ include DL
+ @libc = dlopen(LIBC_SO)
+ @libm = dlopen(LIBM_SO)
+ free = CFunc.new(DL::RUBY_FREE, TYPE_VOID, 'free')
+ ptr = CPtr.malloc(4)
+ ptr.free = free
+ free.ptr
+ ptr.free.ptr
+ End
+
+ free = CFunc.new(DL::RUBY_FREE, TYPE_VOID, 'free')
+ ptr = CPtr.malloc(4)
+ ptr.free = free
+
+ assert_equal free.ptr, ptr.free.ptr
+ end
+
+ def test_null?
+ ptr = CPtr.new(0)
+ assert ptr.null?
+ end
+
+ def test_size
+ ptr = CPtr.malloc(4)
+ assert_equal 4, ptr.size
+ DL.free ptr.to_i
+ end
+
+ def test_size=
+ ptr = CPtr.malloc(4)
+ ptr.size = 10
+ assert_equal 10, ptr.size
+ DL.free ptr.to_i
+ end
+
+ def test_aref_aset
+ check = Proc.new{|str,ptr|
+ assert_equal(str.size(), ptr.size())
+ assert_equal(str, ptr.to_s())
+ assert_equal(str[0,2], ptr.to_s(2))
+ assert_equal(str[0,2], ptr[0,2])
+ assert_equal(str[1,2], ptr[1,2])
+ assert_equal(str[1,0], ptr[1,0])
+ assert_equal(str[0].ord, ptr[0])
+ assert_equal(str[1].ord, ptr[1])
+ }
+ str = 'abc'
+ ptr = CPtr[str]
+ check.call(str, ptr)
+
+ str[0] = "c"
+ assert_equal 'c'.ord, ptr[0] = "c".ord
+ check.call(str, ptr)
+
+ str[0,2] = "aa"
+ assert_equal 'aa', ptr[0,2] = "aa"
+ check.call(str, ptr)
+
+ ptr2 = CPtr['cdeeee']
+ str[0,2] = "cd"
+ assert_equal ptr2, ptr[0,2] = ptr2
+ check.call(str, ptr)
+
+ ptr3 = CPtr['vvvv']
+ str[0,2] = "vv"
+ assert_equal ptr3.to_i, ptr[0,2] = ptr3.to_i
+ check.call(str, ptr)
+ end
+
+ def test_null_pointer
+ nullpo = CPtr.new(0)
+ assert_raise(DLError) {nullpo[0]}
+ assert_raise(DLError) {nullpo[0] = 1}
+ end
+ end
+end
diff --git a/test/dl/test_dl2.rb b/test/dl/test_dl2.rb
index 3c854aea8f..1d6e39114f 100644
--- a/test/dl/test_dl2.rb
+++ b/test/dl/test_dl2.rb
@@ -1,8 +1,70 @@
-require 'test_base.rb'
+require_relative 'test_base.rb'
require 'dl/callback'
+require 'dl/func'
+require 'dl/pack'
module DL
class TestDL < TestBase
+ def ptr2num(*list)
+ list.pack("p*").unpack(PackInfo::PACK_MAP[TYPE_VOIDP] + "*")
+ end
+
+ # TODO: refactor test repetition
+
+ def test_free_secure
+ assert_raises(SecurityError) do
+ Thread.new do
+ $SAFE = 4
+ DL.free(0)
+ end.join
+ end
+ end
+
+ def test_realloc
+ str = "abc"
+ ptr_id = DL.realloc(0, 4)
+ ptr = CPtr.new(ptr_id, 4)
+
+ assert_equal ptr_id, ptr.to_i
+
+ cfunc = CFunc.new(@libc['strcpy'], TYPE_VOIDP, 'strcpy')
+ x = cfunc.call([ptr_id,str].pack("l!p").unpack("l!*"))
+ assert_equal("abc\0", ptr[0,4])
+ DL.free ptr_id
+ end
+
+ def test_realloc_secure
+ assert_raises(SecurityError) do
+ Thread.new do
+ $SAFE = 4
+ DL.realloc(0, 4)
+ end.join
+ end
+ end
+
+ def test_malloc
+ str = "abc"
+
+ ptr_id = DL.malloc(4)
+ ptr = CPtr.new(ptr_id, 4)
+
+ assert_equal ptr_id, ptr.to_i
+
+ cfunc = CFunc.new(@libc['strcpy'], TYPE_VOIDP, 'strcpy')
+ x = cfunc.call([ptr_id,str].pack("l!p").unpack("l!*"))
+ assert_equal("abc\0", ptr[0,4])
+ DL.free ptr_id
+ end
+
+ def test_malloc_security
+ assert_raises(SecurityError) do
+ Thread.new do
+ $SAFE = 4
+ DL.malloc(4)
+ end.join
+ end
+ end
+
def test_call_int()
cfunc = CFunc.new(@libc['atoi'], TYPE_INT, 'atoi')
x = cfunc.call(["100"].pack("p").unpack("l!*"))
@@ -25,21 +87,25 @@ class TestDL < TestBase
def test_call_double()
cfunc = CFunc.new(@libc['atof'], TYPE_DOUBLE, 'atof')
x = cfunc.call(["0.1"].pack("p").unpack("l!*"))
- assert_match(0.09..0.11, x)
+ assert_in_delta(0.1, x)
cfunc = CFunc.new(@libc['atof'], TYPE_DOUBLE, 'atof')
x = cfunc.call(["-0.1"].pack("p").unpack("l!*"))
- assert_match(-0.11 .. -0.09, x)
+ assert_in_delta(-0.1, x)
end
- def test_sin()
- cfunc = CFunc.new(@libm['sin'], TYPE_DOUBLE, 'sin')
- x = cfunc.call([3.14/2].pack("d").unpack("l!*"))
- assert_equal(x, Math.sin(3.14/2))
+ def test_sin
+ return if /x86_64/ =~ RUBY_PLATFORM
+ pi_2 = Math::PI/2
+ cfunc = Function.new(CFunc.new(@libm['sin'], TYPE_DOUBLE, 'sin'),
+ [TYPE_DOUBLE])
+ x = cfunc.call(pi_2)
+ assert_equal(Math.sin(pi_2), x)
- cfunc = CFunc.new(@libm['sin'], TYPE_DOUBLE, 'sin')
- x = cfunc.call([-3.14/2].pack("d").unpack("l!*"))
- assert_equal(Math.sin(-3.14/2), x)
+ cfunc = Function.new(CFunc.new(@libm['sin'], TYPE_DOUBLE, 'sin'),
+ [TYPE_DOUBLE])
+ x = cfunc.call(-pi_2)
+ assert_equal(Math.sin(-pi_2), x)
end
def test_strlen()
@@ -52,21 +118,21 @@ class TestDL < TestBase
buff = "xxxx"
str = "abc"
cfunc = CFunc.new(@libc['strcpy'], TYPE_VOIDP, 'strcpy')
- x = cfunc.call([buff,str].pack("pp").unpack("l!*"))
+ x = cfunc.call(ptr2num(buff,str))
assert_equal("abc\0", buff)
assert_equal("abc\0", CPtr.new(x).to_s(4))
buff = "xxxx"
str = "abc"
cfunc = CFunc.new(@libc['strncpy'], TYPE_VOIDP, 'strncpy')
- x = cfunc.call([buff,str,3].pack("ppL!").unpack("l!*"))
+ x = cfunc.call(ptr2num(buff,str) + [3])
assert_equal("abcx", buff)
assert_equal("abcx", CPtr.new(x).to_s(4))
ptr = CPtr.malloc(4)
str = "abc"
cfunc = CFunc.new(@libc['strcpy'], TYPE_VOIDP, 'strcpy')
- x = cfunc.call([ptr.to_i,str].pack("l!p").unpack("l!*"))
+ x = cfunc.call([ptr.to_i, *ptr2num(str)])
assert_equal("abc\0", ptr[0,4])
assert_equal("abc\0", CPtr.new(x).to_s(4))
end
@@ -75,7 +141,7 @@ class TestDL < TestBase
buff = "foobarbaz"
cb = set_callback(TYPE_INT,2){|x,y| CPtr.new(x)[0] <=> CPtr.new(y)[0]}
cfunc = CFunc.new(@libc['qsort'], TYPE_VOID, 'qsort')
- cfunc.call([buff, buff.size, 1, cb].pack("pL!L!L!").unpack("l!*"))
+ cfunc.call(ptr2num(buff) + [buff.size, 1, cb])
assert_equal('aabbfoorz', buff)
end
@@ -85,27 +151,5 @@ class TestDL < TestBase
ary2 = dlunwrap(addr)
assert_equal(ary, ary2)
end
-
- def test_cptr()
- check = Proc.new{|str,ptr|
- assert_equal(str.size(), ptr.size())
- assert_equal(str, ptr.to_s())
- assert_equal(str[0,2], ptr.to_s(2))
- assert_equal(str[0,2], ptr[0,2])
- assert_equal(str[1,2], ptr[1,2])
- assert_equal(str[1,0], ptr[1,0])
- assert_equal(str[0].ord, ptr[0])
- assert_equal(str[1].ord, ptr[1])
- }
- str = 'abc'
- ptr = CPtr[str]
- check.call(str, ptr)
- str[0] = "c"
- ptr[0] = "c".ord
- check.call(str, ptr)
- str[0,2] = "aa"
- ptr[0,2] = "aa"
- check.call(str, ptr)
- end
end
end # module DL
diff --git a/test/dl/test_func.rb b/test/dl/test_func.rb
index be937719df..761ae43143 100644
--- a/test/dl/test_func.rb
+++ b/test/dl/test_func.rb
@@ -1,8 +1,44 @@
-require 'test_base'
+require_relative 'test_base'
require 'dl/func'
module DL
class TestFunc < TestBase
+ def test_name
+ f = Function.new(CFunc.new(@libc['strcpy'], TYPE_VOIDP, 'strcpy'),
+ [TYPE_VOIDP, TYPE_VOIDP])
+ assert_equal 'strcpy', f.name
+ end
+
+ def test_to_i
+ cfunc = CFunc.new(@libc['strcpy'], TYPE_VOIDP, 'strcpy')
+ f = Function.new(cfunc, [TYPE_VOIDP, TYPE_VOIDP])
+ assert_equal cfunc.to_i, f.to_i
+ end
+
+ def test_random
+ f = Function.new(CFunc.new(@libc['srand'], TYPE_VOID, 'srand'),
+ [-TYPE_LONG])
+ assert_nil f.call(10)
+ end
+
+ def test_sinf
+ return if /x86_64/ =~ RUBY_PLATFORM
+ begin
+ f = Function.new(CFunc.new(@libm['sinf'], TYPE_FLOAT, 'sinf'),
+ [TYPE_FLOAT])
+ rescue DL::DLError
+ skip "libm may not have sinf()"
+ end
+ assert_in_delta 1.0, f.call(90 * Math::PI / 180), 0.0001
+ end
+
+ def test_sin
+ return if /x86_64/ =~ RUBY_PLATFORM
+ f = Function.new(CFunc.new(@libm['sin'], TYPE_DOUBLE, 'sin'),
+ [TYPE_DOUBLE])
+ assert_in_delta 1.0, f.call(90 * Math::PI / 180), 0.0001
+ end
+
def test_strcpy()
f = Function.new(CFunc.new(@libc['strcpy'], TYPE_VOIDP, 'strcpy'),
[TYPE_VOIDP, TYPE_VOIDP])
@@ -12,6 +48,18 @@ module DL
assert_equal("123", str.to_s)
end
+ def test_string()
+ stress, GC.stress = GC.stress, true
+ f = Function.new(CFunc.new(@libc['strcpy'], TYPE_VOIDP, 'strcpy'),
+ [TYPE_VOIDP, TYPE_VOIDP])
+ buff = "000"
+ str = f.call(buff, "123")
+ assert_equal("123", buff)
+ assert_equal("123", str.to_s)
+ ensure
+ GC.stress = stress
+ end
+
def test_isdigit()
f = Function.new(CFunc.new(@libc['isdigit'], TYPE_INT, 'isdigit'),
[TYPE_INT])
@@ -33,10 +81,10 @@ module DL
def test_strtod()
f = Function.new(CFunc.new(@libc['strtod'], TYPE_DOUBLE, 'strtod'),
[TYPE_VOIDP, TYPE_VOIDP])
- buff1 = "12.34"
- buff2 = " "
- r = f.call(buff1, buff2)
- assert_match(12.00..13.00, r)
+ buff1 = CPtr["12.34"]
+ buff2 = buff1 + 4
+ r = f.call(buff1, - buff2)
+ assert_in_delta(12.34, r, 0.001)
end
def test_qsort1()
@@ -47,6 +95,11 @@ module DL
buff = "9341"
qsort.call(buff, buff.size, 1, cb)
assert_equal("1349", buff)
+
+ bug4929 = '[ruby-core:37395]'
+ buff = "9341"
+ EnvUtil.under_gc_stress {qsort.call(buff, buff.size, 1, cb)}
+ assert_equal("1349", buff, bug4929)
end
def test_qsort2()
diff --git a/test/dl/test_handle.rb b/test/dl/test_handle.rb
new file mode 100644
index 0000000000..cc4df49c84
--- /dev/null
+++ b/test/dl/test_handle.rb
@@ -0,0 +1,184 @@
+require_relative 'test_base'
+
+module DL
+ class TestHandle < TestBase
+ def test_to_i
+ handle = DL::Handle.new(LIBC_SO)
+ assert_kind_of Integer, handle.to_i
+ end
+
+ def test_static_sym_secure
+ assert_raises(SecurityError) do
+ Thread.new do
+ $SAFE = 2
+ DL::Handle.sym('calloc')
+ end.join
+ end
+ end
+
+ def test_static_sym_unknown
+ assert_raises(DL::DLError) { DL::Handle.sym('fooo') }
+ assert_raises(DL::DLError) { DL::Handle['fooo'] }
+ end
+
+ def test_static_sym
+ skip "DL::Handle.sym is not supported" if /mswin|mingw/ =~ RUBY_PLATFORM
+ begin
+ # Linux / Darwin / FreeBSD
+ assert_not_nil DL::Handle.sym('dlopen')
+ assert_equal DL::Handle.sym('dlopen'), DL::Handle['dlopen']
+ rescue
+ # NetBSD
+ require 'objspace'
+ assert_not_nil DL::Handle.sym('Init_objspace')
+ assert_equal DL::Handle.sym('Init_objspace'), DL::Handle['Init_objspace']
+ end
+ end
+
+ def test_sym_closed_handle
+ handle = DL::Handle.new(LIBC_SO)
+ handle.close
+ assert_raises(DL::DLError) { handle.sym("calloc") }
+ assert_raises(DL::DLError) { handle["calloc"] }
+ end
+
+ def test_sym_unknown
+ handle = DL::Handle.new(LIBC_SO)
+ assert_raises(DL::DLError) { handle.sym('fooo') }
+ assert_raises(DL::DLError) { handle['fooo'] }
+ end
+
+ def test_sym_with_bad_args
+ handle = DL::Handle.new(LIBC_SO)
+ assert_raises(TypeError) { handle.sym(nil) }
+ assert_raises(TypeError) { handle[nil] }
+ end
+
+ def test_sym_secure
+ assert_raises(SecurityError) do
+ Thread.new do
+ $SAFE = 2
+ handle = DL::Handle.new(LIBC_SO)
+ handle.sym('calloc')
+ end.join
+ end
+ end
+
+ def test_sym
+ handle = DL::Handle.new(LIBC_SO)
+ assert_not_nil handle.sym('calloc')
+ assert_not_nil handle['calloc']
+ end
+
+ def test_handle_close
+ handle = DL::Handle.new(LIBC_SO)
+ assert_equal 0, handle.close
+ end
+
+ def test_handle_close_twice
+ handle = DL::Handle.new(LIBC_SO)
+ handle.close
+ assert_raises(DL::DLError) do
+ handle.close
+ end
+ end
+
+ def test_dlopen_returns_handle
+ assert_instance_of DL::Handle, dlopen(LIBC_SO)
+ end
+
+ def test_dlopen_safe
+ assert_raises(SecurityError) do
+ Thread.new do
+ $SAFE = 2
+ dlopen(LIBC_SO)
+ end.join
+ end
+ end
+
+ def test_initialize_safe
+ assert_raises(SecurityError) do
+ Thread.new do
+ $SAFE = 2
+ DL::Handle.new(LIBC_SO)
+ end.join
+ end
+ end
+
+ def test_initialize_noargs
+ handle = DL::Handle.new
+ assert_not_nil handle['rb_str_new']
+ end
+
+ def test_initialize_flags
+ handle = DL::Handle.new(LIBC_SO, DL::RTLD_LAZY | DL::RTLD_GLOBAL)
+ assert_not_nil handle['calloc']
+ end
+
+ def test_enable_close
+ handle = DL::Handle.new(LIBC_SO)
+ assert !handle.close_enabled?, 'close is enabled'
+
+ handle.enable_close
+ assert handle.close_enabled?, 'close is not enabled'
+ end
+
+ def test_disable_close
+ handle = DL::Handle.new(LIBC_SO)
+
+ handle.enable_close
+ assert handle.close_enabled?, 'close is enabled'
+ handle.disable_close
+ assert !handle.close_enabled?, 'close is enabled'
+ end
+
+ def test_NEXT
+ begin
+ # Linux / Darwin
+ #
+ # There are two special pseudo-handles, RTLD_DEFAULT and RTLD_NEXT. The former will find
+ # the first occurrence of the desired symbol using the default library search order. The
+ # latter will find the next occurrence of a function in the search order after the current
+ # library. This allows one to provide a wrapper around a function in another shared
+ # library.
+ # --- Ubuntu Linux 8.04 dlsym(3)
+ handle = DL::Handle::NEXT
+ assert_not_nil handle['malloc']
+ rescue
+ # BSD
+ #
+ # If dlsym() is called with the special handle RTLD_NEXT, then the search
+ # for the symbol is limited to the shared objects which were loaded after
+ # the one issuing the call to dlsym(). Thus, if the function is called
+ # from the main program, all the shared libraries are searched. If it is
+ # called from a shared library, all subsequent shared libraries are
+ # searched. RTLD_NEXT is useful for implementing wrappers around library
+ # functions. For example, a wrapper function getpid() could access the
+ # "real" getpid() with dlsym(RTLD_NEXT, "getpid"). (Actually, the dlfunc()
+ # interface, below, should be used, since getpid() is a function and not a
+ # data object.)
+ # --- FreeBSD 8.0 dlsym(3)
+ require 'objspace'
+ handle = DL::Handle::NEXT
+ assert_not_nil handle['Init_objspace']
+ end
+ end unless /mswin|mingw/ =~ RUBY_PLATFORM
+
+ def test_DEFAULT
+ skip "DL::Handle::DEFAULT is not supported" if /mswin|mingw/ =~ RUBY_PLATFORM
+ handle = DL::Handle::DEFAULT
+ assert_not_nil handle['malloc']
+ end unless /mswin|mingw/ =~ RUBY_PLATFORM
+
+ def test_dlerror
+ # FreeBSD (at least 7.2 to 7.2) calls nsdispatch(3) when it calls
+ # getaddrinfo(3). And nsdispatch(3) doesn't call dlerror(3) even if
+ # it calls _nss_cache_cycle_prevention_function with dlsym(3).
+ # So our DL::Handle#sym must call dlerror(3) before call dlsym.
+ # In general uses of dlerror(3) should call it before use it.
+ require 'socket'
+ Socket.gethostbyname("localhost")
+ DL.dlopen("/usr/lib/libc.so").sym('strcpy')
+ end if /freebsd/=~ RUBY_PLATFORM
+ end
+end
diff --git a/test/dl/test_import.rb b/test/dl/test_import.rb
index c70cb9a6d0..26b9f3c803 100644
--- a/test/dl/test_import.rb
+++ b/test/dl/test_import.rb
@@ -1,4 +1,4 @@
-require 'test_base'
+require_relative 'test_base'
require 'dl/import'
module DL
@@ -18,7 +18,7 @@ module DL
extern "int gettimeofday(timeval*, timezone*)" rescue nil
QsortCallback = bind("void *qsort_callback(void*, void*)", :temp)
- BoundQsortCallback = bind("void *qsort_callback(void*, void*)"){|ptr1,ptr2| ptr1[0] <=> ptr2[0]}
+ BoundQsortCallback = bind("void *bound_qsort_callback(void*, void*)"){|ptr1,ptr2| ptr1[0] <=> ptr2[0]}
Timeval = struct [
"long tv_sec",
"long tv_usec",
@@ -41,6 +41,16 @@ module DL
end
class TestImport < TestBase
+ def test_ensure_call_dlload
+ err = assert_raises(RuntimeError) do
+ Class.new do
+ extend DL::Importer
+ extern "void *strcpy(char*, char*)"
+ end
+ end
+ assert_match(/call dlload before/, err.message)
+ end
+
def test_malloc()
s1 = LIBC::Timeval.malloc()
s2 = LIBC::Timeval.malloc()
diff --git a/test/dl/test_win32.rb b/test/dl/test_win32.rb
index 32beb2703f..d0c4571bf8 100644
--- a/test/dl/test_win32.rb
+++ b/test/dl/test_win32.rb
@@ -1,4 +1,4 @@
-require 'test_base'
+require_relative 'test_base'
require 'dl/import'
require 'dl/types'
diff --git a/test/drb/drbtest.rb b/test/drb/drbtest.rb
index e1d3aeedf2..fe39a6e5b8 100644
--- a/test/drb/drbtest.rb
+++ b/test/drb/drbtest.rb
@@ -2,24 +2,19 @@ require 'test/unit'
require 'drb/drb'
require 'drb/extservm'
require 'timeout'
-begin
- loadpath = $:.dup
- $:.replace($: | [File.expand_path("../ruby", File.dirname(__FILE__))])
- require 'envutil'
-ensure
- $:.replace(loadpath)
-end
+require 'shellwords'
+require_relative '../ruby/envutil'
class DRbService
@@manager = DRb::ExtServManager.new
- @@ruby = EnvUtil.rubybin
+ @@ruby = Shellwords.escape(EnvUtil.rubybin)
@@ruby += " -d" if $DEBUG
def self.add_service_command(nm)
dir = File.dirname(File.expand_path(__FILE__))
- DRb::ExtServManager.command[nm] = "\"#{@@ruby}\" \"#{dir}/#{nm}\""
+ DRb::ExtServManager.command[nm] = "#{@@ruby} \"#{dir}/#{nm}\""
end
- %w(ut_drb.rb ut_array.rb ut_port.rb ut_large.rb ut_safe1.rb ut_eval.rb).each do |nm|
+ %w(ut_drb.rb ut_array.rb ut_port.rb ut_large.rb ut_safe1.rb ut_eval.rb ut_eq.rb).each do |nm|
add_service_command(nm)
end
@server = @@server = DRb::DRbServer.new('druby://localhost:0', @@manager, {})
@@ -140,7 +135,7 @@ module DRbCore
def test_03
assert_equal(8, @there.sum(1, 1, 1, 1, 1, 1, 1, 1))
- assert_raise(ArgumentError) do
+ assert_raise(DRb::DRbConnError) do
@there.sum(1, 1, 1, 1, 1, 1, 1, 1, 1)
end
assert_raise(DRb::DRbConnError) do
diff --git a/test/drb/test_drb.rb b/test/drb/test_drb.rb
index 0548dc7aa0..8ab00ec2a0 100644
--- a/test/drb/test_drb.rb
+++ b/test/drb/test_drb.rb
@@ -1,4 +1,4 @@
-require 'drbtest'
+require_relative 'drbtest'
class TestDRbCore < Test::Unit::TestCase
include DRbCore
@@ -283,7 +283,7 @@ class TestDRbLarge < Test::Unit::TestCase
end
def test_04_many_arg
- assert_raise(ArgumentError) {
+ assert_raise(DRb::DRbConnError) {
@there.arg_test(1, 2, 3, 4, 5, 6, 7, 8, 9, 0)
}
end
@@ -299,3 +299,19 @@ class TestDRbLarge < Test::Unit::TestCase
assert_kind_of(StandardError, exception)
end
end
+
+class TestBug4409 < Test::Unit::TestCase
+ def setup
+ @ext = DRbService.ext_service('ut_eq.rb')
+ @there = @ext.front
+ end
+
+ def teardown
+ @ext.stop_service if @ext
+ end
+
+ def test_bug4409
+ foo = @there.foo
+ assert(@there.foo?(foo))
+ end
+end
diff --git a/test/drb/test_drbssl.rb b/test/drb/test_drbssl.rb
index cfb3bc36a4..8f6c4f2341 100644
--- a/test/drb/test_drbssl.rb
+++ b/test/drb/test_drbssl.rb
@@ -1,4 +1,4 @@
-require 'drbtest'
+require_relative 'drbtest'
begin
require 'drb/ssl'
diff --git a/test/drb/test_drbunix.rb b/test/drb/test_drbunix.rb
index e1a17edd3d..5b93f52d2c 100644
--- a/test/drb/test_drbunix.rb
+++ b/test/drb/test_drbunix.rb
@@ -1,4 +1,4 @@
-require 'drbtest'
+require_relative 'drbtest'
begin
require 'drb/unix'
diff --git a/test/drb/ut_eq.rb b/test/drb/ut_eq.rb
new file mode 100644
index 0000000000..330af95289
--- /dev/null
+++ b/test/drb/ut_eq.rb
@@ -0,0 +1,30 @@
+require 'drb/drb'
+require 'drb/extserv'
+
+class Foo
+ include DRbUndumped
+end
+
+class Bar
+ include DRbUndumped
+ def initialize
+ @foo = Foo.new
+ end
+ attr_reader :foo
+
+ def foo?(foo)
+ @foo == foo
+ end
+end
+
+if __FILE__ == $0
+ def ARGV.shift
+ it = super()
+ raise "usage: #{$0} <uri> <name>" unless it
+ it
+ end
+
+ DRb.start_service('druby://:0', Bar.new)
+ es = DRb::ExtServ.new(ARGV.shift, ARGV.shift)
+ DRb.thread.join
+end
diff --git a/test/erb/test_erb_m17n.rb b/test/erb/test_erb_m17n.rb
index 640b1e6c51..ff49228c26 100644
--- a/test/erb/test_erb_m17n.rb
+++ b/test/erb/test_erb_m17n.rb
@@ -23,35 +23,35 @@ class TestERB < Test::Unit::TestCase
def test_generate_magic_comment
erb = ERB.new("hello")
- assert_match /#coding:UTF-8/, erb.src
+ assert_match(/#coding:UTF-8/, erb.src)
erb = ERB.new("hello".force_encoding("EUC-JP"))
- assert_match /#coding:EUC-JP/, erb.src
+ assert_match(/#coding:EUC-JP/, erb.src)
erb = ERB.new("hello".force_encoding("ISO-8859-9"))
- assert_match /#coding:ISO-8859-9/, erb.src
+ assert_match(/#coding:ISO-8859-9/, erb.src)
end
def test_literal_encoding
erb = ERB.new("literal encoding is <%= 'hello'.encoding %>")
- assert_match /literal encoding is UTF-8/, erb.result
+ assert_match(/literal encoding is UTF-8/, erb.result)
erb = ERB.new("literal encoding is <%= 'ã“ã‚“ã«ã¡ã¯'.encoding %>".encode("EUC-JP"))
- assert_match /literal encoding is EUC-JP/, erb.result
+ assert_match(/literal encoding is EUC-JP/, erb.result)
erb = ERB.new("literal encoding is <%= '\xC4\xE3\xBA\xC3'.encoding %>".force_encoding("EUC-CN"))
- assert_match /literal encoding is GB2312/, erb.result
+ assert_match(/literal encoding is GB2312/, erb.result)
end
def test___ENCODING__
erb = ERB.new("__ENCODING__ is <%= __ENCODING__ %>")
- assert_match /__ENCODING__ is UTF-8/, erb.result
+ assert_match(/__ENCODING__ is UTF-8/, erb.result)
erb = ERB.new("__ENCODING__ is <%= __ENCODING__ %>".force_encoding("EUC-JP"))
- assert_match /__ENCODING__ is EUC-JP/, erb.result
+ assert_match(/__ENCODING__ is EUC-JP/, erb.result)
erb = ERB.new("__ENCODING__ is <%= __ENCODING__ %>".force_encoding("Big5"))
- assert_match /__ENCODING__ is Big5/, erb.result
+ assert_match(/__ENCODING__ is Big5/, erb.result)
end
def test_recognize_magic_comment
@@ -59,35 +59,35 @@ class TestERB < Test::Unit::TestCase
<%# -*- coding: EUC-KR -*- %>
안녕하세요
EOS
- assert_match /#coding:EUC-KR/, erb.src
+ assert_match(/#coding:EUC-KR/, erb.src)
assert_equal Encoding::EUC_KR, erb.result.encoding
erb = ERB.new(<<-EOS.encode("EUC-KR").force_encoding("ASCII-8BIT"))
<%#-*- coding: EUC-KR -*-%>
안녕하세요
EOS
- assert_match /#coding:EUC-KR/, erb.src
+ assert_match(/#coding:EUC-KR/, erb.src)
assert_equal Encoding::EUC_KR, erb.result.encoding
erb = ERB.new(<<-EOS.encode("EUC-KR").force_encoding("ASCII-8BIT"))
<%# vim: tabsize=8 encoding=EUC-KR shiftwidth=2 expandtab %>
안녕하세요
EOS
- assert_match /#coding:EUC-KR/, erb.src
+ assert_match(/#coding:EUC-KR/, erb.src)
assert_equal Encoding::EUC_KR, erb.result.encoding
erb = ERB.new(<<-EOS.encode("EUC-KR").force_encoding("ASCII-8BIT"))
<%#coding:EUC-KR %>
안녕하세요
EOS
- assert_match /#coding:EUC-KR/, erb.src
+ assert_match(/#coding:EUC-KR/, erb.src)
assert_equal Encoding::EUC_KR, erb.result.encoding
erb = ERB.new(<<-EOS.encode("EUC-KR").force_encoding("EUC-JP"))
<%#coding:EUC-KR %>
안녕하세요
EOS
- assert_match /#coding:EUC-KR/, erb.src
+ assert_match(/#coding:EUC-KR/, erb.src)
assert_equal Encoding::EUC_KR, erb.result.encoding
end
@@ -105,8 +105,8 @@ __ENCODING__ is <%= __ENCODING__ %>
result = obj.m_from_magic_comment
assert_equal Encoding::EUC_JP, result.encoding
- assert_match /literal encoding is EUC-JP/, result
- assert_match /__ENCODING__ is EUC-JP/, result
+ assert_match(/literal encoding is EUC-JP/, result)
+ assert_match(/__ENCODING__ is EUC-JP/, result)
erb = ERB.new(<<-EOS.encode("EUC-KR"))
literal encoding is <%= '안녕하세요'.encoding %>
@@ -115,8 +115,8 @@ EOS
erb.def_method(M, :m_from_eval_encoding)
result = obj.m_from_eval_encoding
assert_equal Encoding::EUC_KR, result.encoding
- assert_match /literal encoding is EUC-KR/, result
- assert_match /__ENCODING__ is EUC-KR/, result
+ assert_match(/literal encoding is EUC-KR/, result)
+ assert_match(/__ENCODING__ is EUC-KR/, result)
end
end
diff --git a/test/etc/test_etc.rb b/test/etc/test_etc.rb
index 9196b139da..c4db71cdf4 100644
--- a/test/etc/test_etc.rb
+++ b/test/etc/test_etc.rb
@@ -24,7 +24,7 @@ class TestEtc < Test::Unit::TestCase
assert_kind_of(Integer, s.expire) if s.respond_to?(:expire)
end
- assert_raise(RuntimeError) { Etc.passwd { Etc.passwd { } } }
+ Etc.passwd { assert_raise(RuntimeError) { Etc.passwd { } }; break }
end
def test_getpwuid
@@ -38,7 +38,9 @@ class TestEtc < Test::Unit::TestCase
def test_getpwnam
passwd = {}
- Etc.passwd {|s| passwd[s.name] ||= s }
+ Etc.passwd do |s|
+ passwd[s.name] ||= s unless /\A\+/ =~ s.name
+ end
passwd.each_value do |s|
assert_equal(s, Etc.getpwnam(s.name))
end
@@ -63,7 +65,7 @@ class TestEtc < Test::Unit::TestCase
assert_kind_of(Integer, s.gid)
end
- assert_raise(RuntimeError) { Etc.group { Etc.group { } } }
+ Etc.group { assert_raise(RuntimeError) { Etc.group { } }; break }
end
def test_getgrgid
@@ -80,7 +82,7 @@ class TestEtc < Test::Unit::TestCase
def test_getgrnam
groups = {}
Etc.group do |s|
- groups[s.name] ||= s
+ groups[s.name] ||= s unless /\A\+/ =~ s.name
end
groups.each_value do |s|
assert_equal(s, Etc.getgrnam(s.name))
diff --git a/test/fiddle/helper.rb b/test/fiddle/helper.rb
new file mode 100644
index 0000000000..ad69f55e69
--- /dev/null
+++ b/test/fiddle/helper.rb
@@ -0,0 +1,111 @@
+require 'minitest/autorun'
+require 'dl'
+require 'fiddle'
+
+# FIXME: this is stolen from DL and needs to be refactored.
+require_relative '../ruby/envutil'
+
+libc_so = libm_so = nil
+
+case RUBY_PLATFORM
+when /cygwin/
+ libc_so = "cygwin1.dll"
+ libm_so = "cygwin1.dll"
+when /x86_64-linux/
+ libc_so = "/lib64/libc.so.6"
+ libm_so = "/lib64/libm.so.6"
+when /linux/
+ libdir = '/lib'
+ case [0].pack('L!').size
+ when 4
+ # 32-bit ruby
+ libdir = '/lib32' if File.directory? '/lib32'
+ when 8
+ # 64-bit ruby
+ libdir = '/lib64' if File.directory? '/lib64'
+ end
+ libc_so = File.join(libdir, "libc.so.6")
+ libm_so = File.join(libdir, "libm.so.6")
+when /mingw/, /mswin/
+ require "rbconfig"
+ libc_so = libm_so = RbConfig::CONFIG["RUBY_SO_NAME"].split(/-/).find{|e| /^msvc/ =~ e} + ".dll"
+when /darwin/
+ libc_so = "/usr/lib/libc.dylib"
+ libm_so = "/usr/lib/libm.dylib"
+when /kfreebsd/
+ libc_so = "/lib/libc.so.0.1"
+ libm_so = "/lib/libm.so.1"
+when /bsd|dragonfly/
+ libc_so = "/usr/lib/libc.so"
+ libm_so = "/usr/lib/libm.so"
+when /solaris/
+ libdir = '/lib'
+ case [0].pack('L!').size
+ when 4
+ # 32-bit ruby
+ libdir = '/lib' if File.directory? '/lib'
+ when 8
+ # 64-bit ruby
+ libdir = '/lib/64' if File.directory? '/lib/64'
+ end
+ libc_so = File.join(libdir, "libc.so")
+ libm_so = File.join(libdir, "libm.so")
+when /aix/
+ pwd=Dir.pwd
+ libc_so = libm_so = "#{pwd}/libaixdltest.so"
+ unless File.exist? libc_so
+ cobjs=%w!strcpy.o!
+ mobjs=%w!floats.o sin.o!
+ funcs=%w!sin sinf strcpy strncpy!
+ expfile='dltest.exp'
+ require 'tmpdir'
+ Dir.mktmpdir do |dir|
+ begin
+ Dir.chdir dir
+ %x!/usr/bin/ar x /usr/lib/libc.a #{cobjs.join(' ')}!
+ %x!/usr/bin/ar x /usr/lib/libm.a #{mobjs.join(' ')}!
+ %x!echo "#{funcs.join("\n")}\n" > #{expfile}!
+ require 'rbconfig'
+ if RbConfig::CONFIG["GCC"] = 'yes'
+ lflag='-Wl,'
+ else
+ lflag=''
+ end
+ flags="#{lflag}-bE:#{expfile} #{lflag}-bnoentry -lm"
+ %x!#{RbConfig::CONFIG["LDSHARED"]} -o #{libc_so} #{(cobjs+mobjs).join(' ')} #{flags}!
+ ensure
+ Dir.chdir pwd
+ end
+ end
+ end
+else
+ libc_so = ARGV[0] if ARGV[0] && ARGV[0][0] == ?/
+ libm_so = ARGV[1] if ARGV[1] && ARGV[1][0] == ?/
+ if( !(libc_so && libm_so) )
+ $stderr.puts("libc and libm not found: #{$0} <libc> <libm>")
+ end
+end
+
+libc_so = nil if !libc_so || (libc_so[0] == ?/ && !File.file?(libc_so))
+libm_so = nil if !libm_so || (libm_so[0] == ?/ && !File.file?(libm_so))
+
+if !libc_so || !libm_so
+ ruby = EnvUtil.rubybin
+ ldd = `ldd #{ruby}`
+ #puts ldd
+ libc_so = $& if !libc_so && %r{/\S*/libc\.so\S*} =~ ldd
+ libm_so = $& if !libm_so && %r{/\S*/libm\.so\S*} =~ ldd
+ #p [libc_so, libm_so]
+end
+
+Fiddle::LIBC_SO = libc_so
+Fiddle::LIBM_SO = libm_so
+
+module Fiddle
+ class TestCase < MiniTest::Unit::TestCase
+ def setup
+ @libc = DL.dlopen(LIBC_SO)
+ @libm = DL.dlopen(LIBM_SO)
+ end
+ end
+end
diff --git a/test/fiddle/test_closure.rb b/test/fiddle/test_closure.rb
new file mode 100644
index 0000000000..381b3f96c1
--- /dev/null
+++ b/test/fiddle/test_closure.rb
@@ -0,0 +1,84 @@
+begin
+ require_relative 'helper'
+rescue LoadError
+end
+
+module Fiddle
+ class TestClosure < Fiddle::TestCase
+ def test_argument_errors
+ assert_raises(TypeError) do
+ Closure.new(TYPE_INT, TYPE_INT)
+ end
+
+ assert_raises(TypeError) do
+ Closure.new('foo', [TYPE_INT])
+ end
+
+ assert_raises(TypeError) do
+ Closure.new(TYPE_INT, ['meow!'])
+ end
+ end
+
+ def test_call
+ closure = Class.new(Closure) {
+ def call
+ 10
+ end
+ }.new(TYPE_INT, [])
+
+ func = Function.new(closure, [], TYPE_INT)
+ assert_equal 10, func.call
+ end
+
+ def test_returner
+ closure = Class.new(Closure) {
+ def call thing
+ thing
+ end
+ }.new(TYPE_INT, [TYPE_INT])
+
+ func = Function.new(closure, [TYPE_INT], TYPE_INT)
+ assert_equal 10, func.call(10)
+ end
+
+ def test_block_caller
+ cb = Closure::BlockCaller.new(TYPE_INT, [TYPE_INT]) do |one|
+ one
+ end
+ func = Function.new(cb, [TYPE_INT], TYPE_INT)
+ assert_equal 11, func.call(11)
+ end
+
+ def test_memsize
+ require 'objspace'
+ bug = '[ruby-dev:42480]'
+ n = 10000
+ assert_equal(n, n.times {ObjectSpace.memsize_of(Closure.allocate)}, bug)
+ end
+
+ %w[INT SHORT CHAR LONG LONG_LONG].each do |name|
+ type = DL.const_get("TYPE_#{name}") rescue next
+ size = DL.const_get("SIZEOF_#{name}")
+ [[type, size-1, name], [-type, size, "unsigned_"+name]].each do |t, s, n|
+ define_method("test_conversion_#{n.downcase}") do
+ arg = nil
+
+ clos = Class.new(Closure) do
+ define_method(:call) {|x| arg = x}
+ end.new(t, [t])
+
+ v = ~(~0 << (8*s))
+
+ arg = nil
+ assert_equal(v, clos.call(v))
+ assert_equal(arg, v, n)
+
+ arg = nil
+ func = Function.new(clos, [t], t)
+ assert_equal(v, func.call(v))
+ assert_equal(arg, v, n)
+ end
+ end
+ end
+ end
+end if defined?(Fiddle)
diff --git a/test/fiddle/test_fiddle.rb b/test/fiddle/test_fiddle.rb
new file mode 100644
index 0000000000..21609933d2
--- /dev/null
+++ b/test/fiddle/test_fiddle.rb
@@ -0,0 +1,32 @@
+begin
+ require_relative 'helper'
+rescue LoadError
+end
+
+class TestFiddle < Fiddle::TestCase
+ def test_constants_match
+ [
+ :TYPE_VOID,
+ :TYPE_VOIDP,
+ :TYPE_CHAR,
+ :TYPE_SHORT,
+ :TYPE_INT,
+ :TYPE_LONG,
+ :TYPE_LONG_LONG,
+ :TYPE_FLOAT,
+ :TYPE_DOUBLE,
+ ].each do |name|
+ assert_equal(DL.const_get(name), Fiddle.const_get(name))
+ end
+ end
+
+ def test_windows_constant
+ require 'rbconfig'
+ if RbConfig::CONFIG['host_os'] =~ /mswin|mingw/
+ assert Fiddle::WINDOWS, "Fiddle::WINDOWS should be 'true' on Windows platforms"
+ else
+ refute Fiddle::WINDOWS, "Fiddle::WINDOWS should be 'false' on non-Windows platforms"
+ end
+ end
+
+end if defined?(Fiddle)
diff --git a/test/fiddle/test_function.rb b/test/fiddle/test_function.rb
new file mode 100644
index 0000000000..04c94fb5cb
--- /dev/null
+++ b/test/fiddle/test_function.rb
@@ -0,0 +1,69 @@
+begin
+ require_relative 'helper'
+rescue LoadError
+end
+
+module Fiddle
+ class TestFunction < Fiddle::TestCase
+ def setup
+ super
+ Fiddle.last_error = nil
+ end
+
+ def test_default_abi
+ func = Function.new(@libm['sin'], [TYPE_DOUBLE], TYPE_DOUBLE)
+ assert_equal Function::DEFAULT, func.abi
+ end
+
+ def test_argument_errors
+ assert_raises(TypeError) do
+ Function.new(@libm['sin'], TYPE_DOUBLE, TYPE_DOUBLE)
+ end
+
+ assert_raises(TypeError) do
+ Function.new(@libm['sin'], ['foo'], TYPE_DOUBLE)
+ end
+
+ assert_raises(TypeError) do
+ Function.new(@libm['sin'], [TYPE_DOUBLE], 'foo')
+ end
+ end
+
+ def test_call
+ func = Function.new(@libm['sin'], [TYPE_DOUBLE], TYPE_DOUBLE)
+ assert_in_delta 1.0, func.call(90 * Math::PI / 180), 0.0001
+ end
+
+ def test_argument_count
+ closure = Class.new(Closure) {
+ def call one
+ 10 + one
+ end
+ }.new(TYPE_INT, [TYPE_INT])
+ func = Function.new(closure, [TYPE_INT], TYPE_INT)
+
+ assert_raises(ArgumentError) do
+ func.call(1,2,3)
+ end
+ assert_raises(ArgumentError) do
+ func.call
+ end
+ end
+
+ def test_last_error
+ func = Function.new(@libc['strcpy'], [TYPE_VOIDP, TYPE_VOIDP], TYPE_VOIDP)
+
+ assert_nil Fiddle.last_error
+ str = func.call("000", "123")
+ refute_nil Fiddle.last_error
+ end
+
+ def test_strcpy
+ f = Function.new(@libc['strcpy'], [TYPE_VOIDP, TYPE_VOIDP], TYPE_VOIDP)
+ buff = "000"
+ str = f.call(buff, "123")
+ assert_equal("123", buff)
+ assert_equal("123", str.to_s)
+ end
+ end
+end if defined?(Fiddle)
diff --git a/test/fileutils/clobber.rb b/test/fileutils/clobber.rb
new file mode 100644
index 0000000000..9f946651bf
--- /dev/null
+++ b/test/fileutils/clobber.rb
@@ -0,0 +1,91 @@
+require 'fileutils'
+require 'test/unit'
+require 'tmpdir'
+require_relative 'fileasserts'
+
+class TestFileUtils < Test::Unit::TestCase
+end
+
+module TestFileUtils::Clobber
+ include Test::Unit::FileAssertions
+
+ def my_rm_rf(path)
+ if File.exist?('/bin/rm')
+ system %Q[/bin/rm -rf "#{path}"]
+ else
+ FileUtils.rm_rf path
+ end
+ end
+
+ SRC = 'data/src'
+ COPY = 'data/copy'
+
+ def setup
+ @prevdir = Dir.pwd
+ class << (@fileutils_output = "")
+ alias puts <<
+ end
+ tmproot = "#{Dir.tmpdir}/fileutils.rb.#{$$}"
+ Dir.mkdir tmproot unless File.directory?(tmproot)
+ Dir.chdir tmproot
+ my_rm_rf 'data'; Dir.mkdir 'data'
+ my_rm_rf 'tmp'; Dir.mkdir 'tmp'
+ File.open(SRC, 'w') {|f| f.puts 'dummy' }
+ File.open(COPY, 'w') {|f| f.puts 'dummy' }
+ end
+
+ def teardown
+ tmproot = Dir.pwd
+ Dir.chdir @prevdir
+ my_rm_rf tmproot
+ end
+
+ def test_cp
+ cp SRC, 'tmp/cp'
+ check 'tmp/cp'
+ end
+
+ def test_mv
+ mv SRC, 'tmp/mv'
+ check 'tmp/mv'
+ end
+
+ def check(dest, message=nil)
+ assert_file_not_exist dest, message
+ assert_file_exist SRC, message
+ assert_same_file SRC, COPY, message
+ end
+
+ def test_rm
+ rm SRC
+ assert_file_exist SRC
+ assert_same_file SRC, COPY
+ end
+
+ def test_rm_f
+ rm_f SRC
+ assert_file_exist SRC
+ assert_same_file SRC, COPY
+ end
+
+ def test_rm_rf
+ rm_rf SRC
+ assert_file_exist SRC
+ assert_same_file SRC, COPY
+ end
+
+ def test_mkdir
+ mkdir 'dir'
+ assert_file_not_exist 'dir'
+ end
+
+ def test_mkdir_p
+ mkdir 'dir/dir/dir'
+ assert_file_not_exist 'dir'
+ end
+
+ def test_copy_entry
+ copy_entry SRC, 'tmp/copy_entry'
+ check 'tmp/copy_entry', bug4331 = '[ruby-dev:43129]'
+ end
+end
diff --git a/test/fileutils/fileasserts.rb b/test/fileutils/fileasserts.rb
index bad87e9ce0..e8c5fa4369 100644
--- a/test/fileutils/fileasserts.rb
+++ b/test/fileutils/fileasserts.rb
@@ -2,57 +2,58 @@
module Test
module Unit
- module Assertions # redefine
+ module FileAssertions
def _wrap_assertion
yield
end
- def assert_same_file(from, to)
+ def assert_same_file(from, to, message=nil)
_wrap_assertion {
- assert_block("file #{from} != #{to}") {
+ assert_block("file #{from} != #{to}#{message&&': '}#{message||''}") {
File.read(from) == File.read(to)
}
}
end
- def assert_same_entry(from, to)
+ def assert_same_entry(from, to, message=nil)
a = File.stat(from)
b = File.stat(to)
- assert_equal a.mode, b.mode, "mode #{a.mode} != #{b.mode}"
+ msg = "#{message&&': '}#{message||''}"
+ assert_equal a.mode, b.mode, "mode #{a.mode} != #{b.mode}#{msg}"
#assert_equal a.atime, b.atime
- assert_equal_timestamp a.mtime, b.mtime, "mtime #{a.mtime} != #{b.mtime}"
- assert_equal a.uid, b.uid, "uid #{a.uid} != #{b.uid}"
- assert_equal a.gid, b.gid, "gid #{a.gid} != #{b.gid}"
+ assert_equal_timestamp a.mtime, b.mtime, "mtime #{a.mtime} != #{b.mtime}#{msg}"
+ assert_equal a.uid, b.uid, "uid #{a.uid} != #{b.uid}#{msg}"
+ assert_equal a.gid, b.gid, "gid #{a.gid} != #{b.gid}#{msg}"
end
- def assert_file_exist(path)
+ def assert_file_exist(path, message=nil)
_wrap_assertion {
- assert_block("file not exist: #{path}") {
+ assert_block("file not exist: #{path}#{message&&': '}#{message||''}") {
File.exist?(path)
}
}
end
- def assert_file_not_exist(path)
+ def assert_file_not_exist(path, message=nil)
_wrap_assertion {
- assert_block("file not exist: #{path}") {
+ assert_block("file not exist: #{path}#{message&&': '}#{message||''}") {
not File.exist?(path)
}
}
end
- def assert_directory(path)
+ def assert_directory(path, message=nil)
_wrap_assertion {
- assert_block("is not directory: #{path}") {
+ assert_block("is not directory: #{path}#{message&&': '}#{message||''}") {
File.directory?(path)
}
}
end
- def assert_symlink(path)
+ def assert_symlink(path, message=nil)
_wrap_assertion {
- assert_block("is not a symlink: #{path}") {
+ assert_block("is not a symlink: #{path}#{message&&': '}#{message||''}") {
File.symlink?(path)
}
}
@@ -60,7 +61,7 @@ module Test
def assert_not_symlink(path)
_wrap_assertion {
- assert_block("is a symlink: #{path}") {
+ assert_block("is a symlink: #{path}#{message&&': '}#{message||''}") {
not File.symlink?(path)
}
}
diff --git a/test/fileutils/test_dryrun.rb b/test/fileutils/test_dryrun.rb
index 2fdd65d2f6..85badbdb06 100644
--- a/test/fileutils/test_dryrun.rb
+++ b/test/fileutils/test_dryrun.rb
@@ -1,11 +1,13 @@
# $Id$
-require 'test/unit'
require 'fileutils'
+require 'test/unit'
+require_relative 'clobber'
class TestFileUtilsDryRun < Test::Unit::TestCase
include FileUtils::DryRun
+ include TestFileUtils::Clobber
def test_visibility
FileUtils::METHODS.each do |m|
@@ -15,7 +17,7 @@ class TestFileUtilsDryRun < Test::Unit::TestCase
"FileUtils::DryRun.#{m} not public"
end
FileUtils::METHODS.each do |m|
- assert_equal true, respond_to?(m, true)
+ assert_equal true, respond_to?(m, true),
"FileUtils::DryRun\##{m} is not defined"
assert_equal true, FileUtils::DryRun.private_method_defined?(m),
"FileUtils::DryRun\##{m} is not private"
diff --git a/test/fileutils/test_fileutils.rb b/test/fileutils/test_fileutils.rb
index 3117193385..d4068e5c86 100644
--- a/test/fileutils/test_fileutils.rb
+++ b/test/fileutils/test_fileutils.rb
@@ -1,13 +1,14 @@
# $Id$
require 'fileutils'
-require 'fileasserts'
+require_relative 'fileasserts'
require 'pathname'
require 'tmpdir'
require 'test/unit'
class TestFileUtils < Test::Unit::TestCase
TMPROOT = "#{Dir.tmpdir}/fileutils.rb.#{$$}"
+ include Test::Unit::FileAssertions
end
prevdir = Dir.pwd
@@ -77,7 +78,7 @@ class TestFileUtils
include FileUtils
def check_singleton(name)
- assert_equal true, ::FileUtils.public_methods.include?(name.to_sym)
+ assert_respond_to ::FileUtils, name
end
def my_rm_rf(path)
@@ -173,17 +174,11 @@ class TestFileUtils
assert_equal Dir.pwd, pwd()
cwd = Dir.pwd
-if have_drive_letter?
- cd('C:/') {
- assert_equal 'C:/', pwd()
+ root = have_drive_letter? ? 'C:/' : '/'
+ cd(root) {
+ assert_equal root, pwd()
}
assert_equal cwd, pwd()
-else
- cd('/') {
- assert_equal '/', pwd()
- }
- assert_equal cwd, pwd()
-end
end
def test_cmp
@@ -223,12 +218,30 @@ end
assert_same_entry srcpath, destpath
end
+ assert_raise(Errno::ENOENT) {
+ cp 'tmp/cptmp', 'tmp/cptmp_new'
+ }
+ assert_file_not_exist('tmp/cptmp_new')
+
# src==dest (1) same path
touch 'tmp/cptmp'
assert_raise(ArgumentError) {
cp 'tmp/cptmp', 'tmp/cptmp'
}
-if have_symlink?
+ end
+
+ def test_cp_preserve_permissions
+ bug4507 = '[ruby-core:35518]'
+ touch 'tmp/cptmp'
+ chmod 0755, 'tmp/cptmp'
+ cp 'tmp/cptmp', 'tmp/cptmp2'
+ assert_equal(File.stat('tmp/cptmp').mode,
+ File.stat('tmp/cptmp2').mode,
+ bug4507)
+ end
+
+ def test_cp_symlink
+ touch 'tmp/cptmp'
# src==dest (2) symlink and its target
File.symlink 'cptmp', 'tmp/cptmp_symlink'
assert_raise(ArgumentError) {
@@ -242,9 +255,11 @@ if have_symlink?
assert_raise(Errno::ELOOP) {
cp 'tmp/symlink', 'tmp/symlink'
}
-end
+ end if have_symlink?
+ def test_cp_pathname
# pathname
+ touch 'tmp/cptmp'
assert_nothing_raised {
cp 'tmp/cptmp', Pathname.new('tmp/tmpdest')
cp Pathname.new('tmp/cptmp'), 'tmp/tmpdest'
@@ -283,7 +298,17 @@ end
my_rm_rf 'tmp/cpr_src'
my_rm_rf 'tmp/cpr_dest'
-if have_symlink?
+ bug3588 = '[ruby-core:31360]'
+ assert_nothing_raised(ArgumentError, bug3588) do
+ cp_r 'tmp', 'tmp2'
+ end
+ assert_directory 'tmp2/tmp'
+ assert_raise(ArgumentError, bug3588) do
+ cp_r 'tmp2', 'tmp2/new_tmp2'
+ end
+ end
+
+ def test_cp_r_symlink
# symlink in a directory
mkdir 'tmp/cpr_src'
ln_s 'SLdest', 'tmp/cpr_src/symlink'
@@ -295,12 +320,12 @@ if have_symlink?
ln_s 'cpr_src', 'tmp/cpr_src2'
cp_r 'tmp/cpr_src2', 'tmp/cpr_dest2'
assert_directory 'tmp/cpr_dest2'
- #assert_not_symlink 'tmp/cpr_dest2'
- assert_symlink 'tmp/cpr_dest2' # 2005-05-26: feature change
+ assert_not_symlink 'tmp/cpr_dest2'
assert_symlink 'tmp/cpr_dest2/symlink'
assert_equal 'SLdest', File.readlink('tmp/cpr_dest2/symlink')
-end
+ end if have_symlink?
+ def test_cp_r_pathname
# pathname
touch 'tmp/cprtmp'
assert_nothing_raised {
@@ -341,7 +366,10 @@ end
assert_raise(ArgumentError) {
mv 'tmp/cptmp', 'tmp/cptmp'
}
-if have_symlink?
+ end
+
+ def test_mv_symlink
+ touch 'tmp/cptmp'
# src==dest (2) symlink and its target
File.symlink 'cptmp', 'tmp/cptmp_symlink'
assert_raise(ArgumentError) {
@@ -355,8 +383,9 @@ if have_symlink?
assert_raise(Errno::ELOOP) {
mv 'tmp/symlink', 'tmp/symlink'
}
-end
+ end if have_symlink?
+ def test_mv_pathname
# pathname
assert_nothing_raised {
touch 'tmp/mvtmpsrc'
@@ -398,14 +427,14 @@ end
rm_f 'tmp/rmsrc'
assert_file_not_exist 'tmp/rmsrc'
end
+ end
-if have_symlink?
+ def test_rm_symlink
File.open('tmp/lnf_symlink_src', 'w') {|f| f.puts 'dummy' }
File.symlink 'tmp/lnf_symlink_src', 'tmp/lnf_symlink_dest'
rm_f 'tmp/lnf_symlink_dest'
assert_file_not_exist 'tmp/lnf_symlink_dest'
assert_file_exist 'tmp/lnf_symlink_src'
-end
rm_f 'notexistdatafile'
rm_f 'tmp/notexistdatafile'
@@ -413,7 +442,9 @@ end
Dir.mkdir 'tmpdatadir'
# rm_f 'tmpdatadir'
Dir.rmdir 'tmpdatadir'
+ end if have_symlink?
+ def test_rm_f_2
Dir.mkdir 'tmp/tmpdir'
File.open('tmp/tmpdir/a', 'w') {|f| f.puts 'dummy' }
File.open('tmp/tmpdir/c', 'w') {|f| f.puts 'dummy' }
@@ -421,7 +452,9 @@ end
assert_file_not_exist 'tmp/tmpdir/a'
assert_file_not_exist 'tmp/tmpdir/c'
Dir.rmdir 'tmp/tmpdir'
+ end
+ def test_rm_pathname
# pathname
touch 'tmp/rmtmp1'
touch 'tmp/rmtmp2'
@@ -435,6 +468,11 @@ end
assert_file_not_exist 'tmp/rmtmp2'
assert_file_not_exist 'tmp/rmtmp3'
assert_file_exist 'tmp/rmtmp4'
+
+ # [ruby-dev:39345]
+ touch 'tmp/[rmtmp]'
+ FileUtils.rm_f 'tmp/[rmtmp]'
+ assert_file_not_exist 'tmp/[rmtmp]'
end
def test_rm_r
@@ -475,16 +513,18 @@ end
assert_file_not_exist 'tmp/tmpdir/a'
assert_file_not_exist 'tmp/tmpdir/c'
Dir.rmdir 'tmp/tmpdir'
+ end
-if have_symlink?
+ def test_rm_r_symlink
# [ruby-talk:94635] a symlink to the directory
Dir.mkdir 'tmp/tmpdir'
File.symlink '..', 'tmp/tmpdir/symlink_to_dir'
rm_r 'tmp/tmpdir'
assert_file_not_exist 'tmp/tmpdir'
assert_file_exist 'tmp'
-end
+ end if have_symlink?
+ def test_rm_r_pathname
# pathname
Dir.mkdir 'tmp/tmpdir1'; touch 'tmp/tmpdir1/tmp'
Dir.mkdir 'tmp/tmpdir2'; touch 'tmp/tmpdir2/tmp'
@@ -538,16 +578,18 @@ end
assert_file_not_exist 'tmp/tmpdir/a'
assert_file_not_exist 'tmp/tmpdir/c'
Dir.rmdir 'tmp/tmpdir'
+ end
-if have_symlink?
+ def test_remove_entry_secure_symlink
# [ruby-talk:94635] a symlink to the directory
Dir.mkdir 'tmp/tmpdir'
File.symlink '..', 'tmp/tmpdir/symlink_to_dir'
remove_entry_secure 'tmp/tmpdir'
assert_file_not_exist 'tmp/tmpdir'
assert_file_exist 'tmp'
-end
+ end if have_symlink?
+ def test_remove_entry_secure_pathname
# pathname
Dir.mkdir 'tmp/tmpdir1'; touch 'tmp/tmpdir1/tmp'
assert_nothing_raised {
@@ -571,7 +613,6 @@ end
assert_file_not_exist 'tmp/mvdest'
end
-if have_hardlink?
def test_ln
TARGETS.each do |fname|
ln fname, 'tmp/lndest'
@@ -592,7 +633,10 @@ if have_hardlink?
assert_raise(Errno::EEXIST) {
ln 'tmp/cptmp', 'tmp/cptmp'
}
-if have_symlink?
+ end if have_hardlink?
+
+ def test_ln_symlink
+ touch 'tmp/cptmp'
# src==dest (2) symlink and its target
File.symlink 'cptmp', 'tmp/symlink'
assert_raise(Errno::EEXIST) {
@@ -608,8 +652,9 @@ if have_symlink?
rescue => err
assert_kind_of SystemCallError, err
end
-end
+ end if have_symlink?
+ def test_ln_pathname
# pathname
touch 'tmp/lntmp'
assert_nothing_raised {
@@ -617,10 +662,8 @@ end
ln 'tmp/lntmp', Pathname.new('tmp/lndesttmp2')
ln Pathname.new('tmp/lntmp'), Pathname.new('tmp/lndesttmp3')
}
- end
-end
+ end if have_hardlink?
-if have_symlink?
def test_ln_s
check_singleton :ln_s
@@ -642,10 +685,8 @@ if have_symlink?
ln_s 'lnsdest', Pathname.new('tmp/symlink_tmp2')
ln_s Pathname.new('lnsdest'), Pathname.new('tmp/symlink_tmp3')
}
- end
-end
+ end if have_symlink?
-if have_symlink?
def test_ln_sf
check_singleton :ln_sf
@@ -667,8 +708,7 @@ if have_symlink?
ln_sf 'lns_dest', Pathname.new('tmp/symlink_tmp2')
ln_sf Pathname.new('lns_dest'), Pathname.new('tmp/symlink_tmp3')
}
- end
-end
+ end if have_symlink?
def test_mkdir
check_singleton :mkdir
@@ -690,20 +730,22 @@ end
assert_directory 'tmp/tmp'
assert_equal 0700, (File.stat('tmp/tmp').mode & 0777) if have_file_perm?
Dir.rmdir 'tmp/tmp'
+ end
-if have_file_perm?
+ def test_mkdir_file_perm
mkdir 'tmp/tmp', :mode => 07777
assert_directory 'tmp/tmp'
assert_equal 07777, (File.stat('tmp/tmp').mode & 07777)
Dir.rmdir 'tmp/tmp'
-end
+ end if have_file_perm?
-if lf_in_path_allowed?
+ def test_mkdir_lf_in_path
mkdir "tmp-first-line\ntmp-second-line"
assert_directory "tmp-first-line\ntmp-second-line"
Dir.rmdir "tmp-first-line\ntmp-second-line"
-end
+ end if lf_in_path_allowed?
+ def test_mkdir_pathname
# pathname
assert_nothing_raised {
mkdir Pathname.new('tmp/tmpdirtmp')
@@ -761,15 +803,17 @@ end
# (rm(1) try to chdir to parent directory, it fails to remove directory.)
Dir.rmdir 'tmp/tmp'
Dir.rmdir 'tmp'
+ end
-if have_file_perm?
+ def test_mkdir_p_file_perm
mkdir_p 'tmp/tmp/tmp', :mode => 07777
assert_directory 'tmp/tmp/tmp'
assert_equal 07777, (File.stat('tmp/tmp/tmp').mode & 07777)
Dir.rmdir 'tmp/tmp/tmp'
Dir.rmdir 'tmp/tmp'
-end
+ end if have_file_perm?
+ def test_mkdir_p_pathname
# pathname
assert_nothing_raised {
mkdir_p Pathname.new('tmp/tmp/tmp')
@@ -799,7 +843,10 @@ end
assert_raise(ArgumentError) {
install 'tmp/cptmp', 'tmp/cptmp'
}
-if have_symlink?
+ end
+
+ def test_install_symlink
+ touch 'tmp/cptmp'
# src==dest (2) symlink and its target
File.symlink 'cptmp', 'tmp/cptmp_symlink'
assert_raise(ArgumentError) {
@@ -814,8 +861,9 @@ if have_symlink?
# File#install invokes open(2), always ELOOP must be raised
install 'tmp/symlink', 'tmp/symlink'
}
-end
+ end if have_symlink?
+ def test_install_pathname
# pathname
assert_nothing_raised {
rm_f 'tmp/a'; touch 'tmp/a'
@@ -835,7 +883,6 @@ end
}
end
-if have_file_perm?
def test_chmod
check_singleton :chmod
@@ -844,7 +891,38 @@ if have_file_perm?
assert_equal 0700, File.stat('tmp/a').mode & 0777
chmod 0500, 'tmp/a'
assert_equal 0500, File.stat('tmp/a').mode & 0777
- end
+ end if have_file_perm?
+
+ def test_chmod_symbol_mode
+ check_singleton :chmod
+
+ touch 'tmp/a'
+ chmod "u=wrx,g=,o=", 'tmp/a'
+ assert_equal 0700, File.stat('tmp/a').mode & 0777
+ chmod "u=rx,go=", 'tmp/a'
+ assert_equal 0500, File.stat('tmp/a').mode & 0777
+ chmod "+wrx", 'tmp/a'
+ assert_equal 0777, File.stat('tmp/a').mode & 0777
+ chmod "u+s,o=s", 'tmp/a'
+ assert_equal 04770, File.stat('tmp/a').mode & 07777
+ chmod "u-w,go-wrx", 'tmp/a'
+ assert_equal 04500, File.stat('tmp/a').mode & 07777
+ chmod "+s", 'tmp/a'
+ assert_equal 06500, File.stat('tmp/a').mode & 07777
+
+ # FreeBSD ufs and tmpfs don't allow to change sticky bit against
+ # regular file. It's slightly strange. Anyway it's no effect bit.
+ # see /usr/src/sys/ufs/ufs/ufs_chmod()
+ # NetBSD and OpenBSD also denies it.
+ if /freebsd|netbsd|openbsd/ !~ RUBY_PLATFORM
+ chmod "u+t,o+t", 'tmp/a'
+ assert_equal 07500, File.stat('tmp/a').mode & 07777
+ chmod "a-t,a-s", 'tmp/a'
+ assert_equal 0500, File.stat('tmp/a').mode & 07777
+ end
+
+ end if have_file_perm?
+
def test_chmod_R
check_singleton :chmod_R
@@ -862,18 +940,35 @@ if have_file_perm?
assert_equal 0500, File.stat('tmp/dir/dir').mode & 0777
assert_equal 0500, File.stat('tmp/dir/dir/file').mode & 0777
chmod_R 0700, 'tmp/dir' # to remove
- end
+ end if have_file_perm?
+
+ def test_chmod_symbol_mode_R
+ check_singleton :chmod_R
+
+ mkdir_p 'tmp/dir/dir'
+ touch %w( tmp/dir/file tmp/dir/dir/file )
+ chmod_R "u=wrx,g=,o=", 'tmp/dir'
+ assert_equal 0700, File.stat('tmp/dir').mode & 0777
+ assert_equal 0700, File.stat('tmp/dir/file').mode & 0777
+ assert_equal 0700, File.stat('tmp/dir/dir').mode & 0777
+ assert_equal 0700, File.stat('tmp/dir/dir/file').mode & 0777
+ chmod_R "u=xr,g+X,o=", 'tmp/dir'
+ assert_equal 0510, File.stat('tmp/dir').mode & 0777
+ assert_equal 0500, File.stat('tmp/dir/file').mode & 0777
+ assert_equal 0510, File.stat('tmp/dir/dir').mode & 0777
+ assert_equal 0500, File.stat('tmp/dir/dir/file').mode & 0777
+ chmod_R 0700, 'tmp/dir' # to remove
+ end if have_file_perm?
# FIXME: How can I test this method?
def test_chown
check_singleton :chown
- end
+ end if have_file_perm?
# FIXME: How can I test this method?
def test_chown_R
check_singleton :chown_R
- end
-end
+ end if have_file_perm?
def test_copy_entry
check_singleton :copy_entry
@@ -883,7 +978,9 @@ end
assert_same_file srcpath, destpath
assert_equal File.stat(srcpath).ftype, File.stat(destpath).ftype
end
-if have_symlink?
+ end
+
+ def test_copy_entry_symlink
# root is a symlink
File.symlink 'somewhere', 'tmp/symsrc'
copy_entry 'tmp/symsrc', 'tmp/symdest'
@@ -898,8 +995,7 @@ if have_symlink?
assert_not_symlink 'tmp/dirdest'
assert_symlink 'tmp/dirdest/sym'
assert_equal 'somewhere', File.readlink('tmp/dirdest/sym')
-end
- end
+ end if have_symlink?
def test_copy_file
check_singleton :copy_file
@@ -914,20 +1010,21 @@ end
check_singleton :copy_stream
# IO
each_srcdest do |srcpath, destpath|
- File.open(srcpath) {|src|
- File.open(destpath, 'w') {|dest|
+ File.open(srcpath, 'rb') {|src|
+ File.open(destpath, 'wb') {|dest|
copy_stream src, dest
}
}
assert_same_file srcpath, destpath
end
+ end
+ def test_copy_stream_duck
+ check_singleton :copy_stream
# duck typing test [ruby-dev:25369]
- my_rm_rf 'tmp'
- Dir.mkdir 'tmp'
each_srcdest do |srcpath, destpath|
- File.open(srcpath) {|src|
- File.open(destpath, 'w') {|dest|
+ File.open(srcpath, 'rb') {|src|
+ File.open(destpath, 'wb') {|dest|
copy_stream Stream.new(src), Stream.new(dest)
}
}
@@ -940,13 +1037,14 @@ end
File.open('data/tmp', 'w') {|f| f.puts 'dummy' }
remove_file 'data/tmp'
assert_file_not_exist 'data/tmp'
-if have_file_perm?
+ end
+
+ def test_remove_file_file_perm
File.open('data/tmp', 'w') {|f| f.puts 'dummy' }
File.chmod 0, 'data/tmp'
remove_file 'data/tmp'
assert_file_not_exist 'data/tmp'
-end
- end
+ end if have_file_perm?
def test_remove_dir
check_singleton :remove_dir
@@ -954,13 +1052,14 @@ end
File.open('data/tmpdir/a', 'w') {|f| f.puts 'dummy' }
remove_dir 'data/tmpdir'
assert_file_not_exist 'data/tmpdir'
-if have_file_perm?
+ end
+
+ def test_remove_dir_file_perm
Dir.mkdir 'data/tmpdir'
File.chmod 0555, 'data/tmpdir'
remove_dir 'data/tmpdir'
assert_file_not_exist 'data/tmpdir'
-end
- end
+ end if have_file_perm?
def test_compare_file
check_singleton :compare_file
diff --git a/test/fileutils/test_nowrite.rb b/test/fileutils/test_nowrite.rb
index 369f8ca608..8ca9e89fa7 100644
--- a/test/fileutils/test_nowrite.rb
+++ b/test/fileutils/test_nowrite.rb
@@ -1,13 +1,13 @@
# $Id$
require 'fileutils'
-require 'fileasserts'
-require 'tmpdir'
require 'test/unit'
+require_relative 'clobber'
class TestFileUtilsNoWrite < Test::Unit::TestCase
include FileUtils::NoWrite
+ include TestFileUtils::Clobber
def test_visibility
FileUtils::METHODS.each do |m|
@@ -23,77 +23,4 @@ class TestFileUtilsNoWrite < Test::Unit::TestCase
"FileUtils::NoWrite\##{m} is not private"
end
end
-
- def my_rm_rf(path)
- if File.exist?('/bin/rm')
- system %Q[/bin/rm -rf "#{path}"]
- else
- FileUtils.rm_rf path
- end
- end
-
- SRC = 'data/src'
- COPY = 'data/copy'
-
- def setup
- @prevdir = Dir.pwd
- tmproot = "#{Dir.tmpdir}/fileutils.rb.#{$$}"
- Dir.mkdir tmproot unless File.directory?(tmproot)
- Dir.chdir tmproot
- my_rm_rf 'data'; Dir.mkdir 'data'
- my_rm_rf 'tmp'; Dir.mkdir 'tmp'
- File.open(SRC, 'w') {|f| f.puts 'dummy' }
- File.open(COPY, 'w') {|f| f.puts 'dummy' }
- end
-
- def teardown
- tmproot = Dir.pwd
- Dir.chdir @prevdir
- my_rm_rf tmproot
- end
-
- def test_cp
- cp SRC, 'tmp/cp'
- check 'tmp/cp'
- end
-
- def test_mv
- mv SRC, 'tmp/mv'
- check 'tmp/mv'
- end
-
- def check(dest)
- assert_file_not_exist dest
- assert_file_exist SRC
- assert_same_file SRC, COPY
- end
-
- def test_rm
- rm SRC
- assert_file_exist SRC
- assert_same_file SRC, COPY
- end
-
- def test_rm_f
- rm_f SRC
- assert_file_exist SRC
- assert_same_file SRC, COPY
- end
-
- def test_rm_rf
- rm_rf SRC
- assert_file_exist SRC
- assert_same_file SRC, COPY
- end
-
- def test_mkdir
- mkdir 'dir'
- assert_file_not_exist 'dir'
- end
-
- def test_mkdir_p
- mkdir 'dir/dir/dir'
- assert_file_not_exist 'dir'
- end
-
end
diff --git a/test/gdbm/test_gdbm.rb b/test/gdbm/test_gdbm.rb
index 03b5eb792b..621101c9b3 100644
--- a/test/gdbm/test_gdbm.rb
+++ b/test/gdbm/test_gdbm.rb
@@ -10,8 +10,8 @@ if defined? GDBM
require 'tmpdir'
require 'fileutils'
- class TestGDBM < Test::Unit::TestCase
- def TestGDBM.uname_s
+ class TestGDBM_RDONLY < Test::Unit::TestCase
+ def TestGDBM_RDONLY.uname_s
require 'rbconfig'
case RbConfig::CONFIG['target_os']
when 'cygwin'
@@ -31,7 +31,6 @@ if defined? GDBM
@tmpdir = Dir.mktmpdir("tmptest_gdbm")
@prefix = "tmptest_gdbm_#{$$}"
@path = "#{@tmpdir}/#{@prefix}_"
- assert_instance_of(GDBM, @gdbm = GDBM.new(@path))
# prepare to make readonly GDBM file
GDBM.open("#{@tmpdir}/#{@prefix}_rdonly", 0400) {|gdbm|
@@ -40,7 +39,6 @@ if defined? GDBM
assert_instance_of(GDBM, @gdbm_rdonly = GDBM.new("#{@tmpdir}/#{@prefix}_rdonly", nil))
end
def teardown
- assert_nil(@gdbm.close)
assert_nil(@gdbm_rdonly.close)
ObjectSpace.each_object(GDBM) do |obj|
obj.close unless obj.closed?
@@ -48,6 +46,34 @@ if defined? GDBM
FileUtils.remove_entry_secure @tmpdir
end
+ def test_delete_rdonly
+ if /^CYGWIN_9/ !~ SYSTEM
+ assert_raise(GDBMError) {
+ @gdbm_rdonly.delete("foo")
+ }
+
+ assert_nil(@gdbm_rdonly.delete("bar"))
+ end
+ end
+ end
+
+ class TestGDBM < Test::Unit::TestCase
+ SYSTEM = TestGDBM_RDONLY::SYSTEM
+
+ def setup
+ @tmpdir = Dir.mktmpdir("tmptest_gdbm")
+ @prefix = "tmptest_gdbm_#{$$}"
+ @path = "#{@tmpdir}/#{@prefix}_"
+ assert_instance_of(GDBM, @gdbm = GDBM.new(@path))
+ end
+ def teardown
+ assert_nil(@gdbm.close)
+ ObjectSpace.each_object(GDBM) do |obj|
+ obj.close unless obj.closed?
+ end
+ FileUtils.remove_entry_secure @tmpdir
+ end
+
def check_size(expect, gdbm=@gdbm)
assert_equal(expect, gdbm.size)
n = 0
@@ -83,7 +109,7 @@ if defined? GDBM
begin
assert_instance_of(GDBM, gdbm = GDBM.open("#{@tmpdir}/#{@prefix}"))
gdbm.close
- assert_equal(File.stat("#{@tmpdir}/#{@prefix}").mode & 0777, 0666)
+ assert_equal(File.stat("#{@tmpdir}/#{@prefix}").mode & 0777, 0666) unless /mswin|mingw/ =~ RUBY_PLATFORM
assert_instance_of(GDBM, gdbm = GDBM.open("#{@tmpdir}/#{@prefix}2", 0644))
gdbm.close
assert_equal(File.stat("#{@tmpdir}/#{@prefix}2").mode & 0777, 0644)
@@ -92,8 +118,8 @@ if defined? GDBM
end
end
def test_s_open_no_create
- assert_nil(gdbm = GDBM.open("#{@tmpdir}/#{@prefix}", nil),
- "this test is failed on libgdbm 1.8.0")
+ skip "gdbm_open(GDBM_WRITER) is broken on libgdbm 1.8.0" if /1\.8\.0/ =~ GDBM::VERSION
+ assert_nil(gdbm = GDBM.open("#{@tmpdir}/#{@prefix}", nil))
ensure
gdbm.close if gdbm
end
@@ -198,7 +224,7 @@ if defined? GDBM
def test_s_open_error
assert_instance_of(GDBM, gdbm = GDBM.open("#{@tmpdir}/#{@prefix}", 0))
- assert_raise(Errno::EACCES) {
+ assert_raise(Errno::EACCES, Errno::EWOULDBLOCK) {
GDBM.open("#{@tmpdir}/#{@prefix}", 0)
}
gdbm.close
@@ -438,15 +464,8 @@ if defined? GDBM
assert_equal(2, @gdbm.size)
assert_nil(@gdbm.delete(key))
-
- if /^CYGWIN_9/ !~ SYSTEM
- assert_raise(GDBMError) {
- @gdbm_rdonly.delete("foo")
- }
-
- assert_nil(@gdbm_rdonly.delete("bar"))
- end
end
+
def test_delete_with_block
key = 'no called block'
@gdbm[key] = 'foo'
@@ -667,6 +686,8 @@ if defined? GDBM
end
def test_writer_open_notexist
+ skip "gdbm_open(GDBM_WRITER) is broken on libgdbm 1.8.0" if /1\.8\.0/ =~ GDBM::VERSION
+
assert_raise(Errno::ENOENT) {
GDBM.open("#{@tmproot}/a", 0666, GDBM::WRITER)
}
diff --git a/test/iconv/test_basic.rb b/test/iconv/test_basic.rb
index 394d271bc1..2575b22eb9 100644
--- a/test/iconv/test_basic.rb
+++ b/test/iconv/test_basic.rb
@@ -1,4 +1,4 @@
-require File.join(File.dirname(__FILE__), "utils.rb")
+require File.expand_path("../utils.rb", __FILE__)
class TestIconv::Basic < TestIconv
def test_euc2sjis
@@ -52,5 +52,8 @@ class TestIconv::Basic < TestIconv
def test_unknown_encoding
assert_raise(Iconv::InvalidEncoding) { Iconv.iconv("utf-8", "X-UKNOWN", "heh") }
+ assert_raise(Iconv::InvalidEncoding, '[ruby-dev:39487]') {
+ Iconv.iconv("X-UNKNOWN-1", "X-UNKNOWN-2") {break}
+ }
end
end if defined?(TestIconv)
diff --git a/test/iconv/test_option.rb b/test/iconv/test_option.rb
index b899ba2db1..e81df9d850 100644
--- a/test/iconv/test_option.rb
+++ b/test/iconv/test_option.rb
@@ -1,4 +1,4 @@
-require File.join(File.dirname(__FILE__), "utils.rb")
+require File.expand_path("../utils.rb", __FILE__)
class TestIconv::Option < TestIconv
def test_ignore_option
diff --git a/test/iconv/test_partial.rb b/test/iconv/test_partial.rb
index aa4d0ba250..a98960b070 100644
--- a/test/iconv/test_partial.rb
+++ b/test/iconv/test_partial.rb
@@ -1,4 +1,4 @@
-require File.join(File.dirname(__FILE__), "utils.rb")
+require File.expand_path("../utils.rb", __FILE__)
class TestIconv::Partial < TestIconv
def test_partial_ascii
diff --git a/test/iconv/utils.rb b/test/iconv/utils.rb
index bc75deb173..5f72dd3aea 100644
--- a/test/iconv/utils.rb
+++ b/test/iconv/utils.rb
@@ -1,8 +1,11 @@
begin
+ verbose, $VERBOSE = $VERBOSE, nil
require 'iconv'
rescue LoadError
else
require 'test/unit'
+ensure
+ $VERBOSE = verbose
end
class TestIconv < ::Test::Unit::TestCase
diff --git a/test/io/console/test_io_console.rb b/test/io/console/test_io_console.rb
new file mode 100644
index 0000000000..cb2bbcc3a6
--- /dev/null
+++ b/test/io/console/test_io_console.rb
@@ -0,0 +1,243 @@
+begin
+ require 'io/console'
+ require 'test/unit'
+ require 'pty'
+rescue LoadError
+end
+require_relative '../../ruby/envutil'
+
+class TestIO_Console < Test::Unit::TestCase
+ Bug6116 = '[ruby-dev:45309]'
+
+ def test_raw
+ helper {|m, s|
+ s.print "abc\n"
+ assert_equal("abc\r\n", m.gets)
+ assert_send([s, :echo?])
+ s.raw {
+ assert_not_send([s, :echo?], Bug6116)
+ s.print "def\n"
+ assert_equal("def\n", m.gets)
+ }
+ assert_send([s, :echo?])
+ s.print "ghi\n"
+ assert_equal("ghi\r\n", m.gets)
+ }
+ end
+
+ def test_cooked
+ helper {|m, s|
+ assert_send([s, :echo?])
+ s.raw {
+ s.print "abc\n"
+ assert_equal("abc\n", m.gets)
+ assert_not_send([s, :echo?], Bug6116)
+ s.cooked {
+ assert_send([s, :echo?])
+ s.print "def\n"
+ assert_equal("def\r\n", m.gets)
+ }
+ assert_not_send([s, :echo?], Bug6116)
+ }
+ assert_send([s, :echo?])
+ s.print "ghi\n"
+ assert_equal("ghi\r\n", m.gets)
+ }
+ end
+
+ def test_echo
+ helper {|m, s|
+ assert_send([s, :echo?])
+ m.print "a"
+ assert_equal("a", m.readpartial(10))
+ }
+ end
+
+ def test_noecho
+ helper {|m, s|
+ s.noecho {
+ assert_not_send([s, :echo?])
+ m.print "a"
+ sleep 0.1
+ }
+ m.print "b"
+ assert_equal("b", m.readpartial(10))
+ }
+ end
+
+ def test_noecho2
+ helper {|m, s|
+ assert_send([s, :echo?])
+ m.print "a\n"
+ sleep 0.1
+ s.print "b\n"
+ sleep 0.1
+ assert_equal("a\r\nb\r\n", m.readpartial(10))
+ assert_equal("a\n", s.readpartial(10))
+ s.noecho {
+ assert_not_send([s, :echo?])
+ m.print "a\n"
+ s.print "b\n"
+ assert_equal("b\r\n", m.readpartial(10))
+ assert_equal("a\n", s.readpartial(10))
+ }
+ assert_send([s, :echo?])
+ m.print "a\n"
+ sleep 0.1
+ s.print "b\n"
+ sleep 0.1
+ assert_equal("a\r\nb\r\n", m.readpartial(10))
+ assert_equal("a\n", s.readpartial(10))
+ }
+ end
+
+ def test_setecho
+ helper {|m, s|
+ assert_send([s, :echo?])
+ s.echo = false
+ m.print "a"
+ sleep 0.1
+ s.echo = true
+ m.print "b"
+ assert_equal("b", m.readpartial(10))
+ }
+ end
+
+ def test_setecho2
+ helper {|m, s|
+ assert_send([s, :echo?])
+ m.print "a\n"
+ sleep 0.1
+ s.print "b\n"
+ sleep 0.1
+ assert_equal("a\r\nb\r\n", m.readpartial(10))
+ assert_equal("a\n", s.readpartial(10))
+ s.echo = false
+ assert_not_send([s, :echo?])
+ m.print "a\n"
+ s.print "b\n"
+ assert_equal("b\r\n", m.readpartial(10))
+ assert_equal("a\n", s.readpartial(10))
+ s.echo = true
+ assert_send([s, :echo?])
+ m.print "a\n"
+ sleep 0.1
+ s.print "b\n"
+ sleep 0.1
+ assert_equal("a\r\nb\r\n", m.readpartial(10))
+ assert_equal("a\n", s.readpartial(10))
+ }
+ end
+
+ def test_iflush
+ helper {|m, s|
+ m.print "a"
+ s.iflush
+ m.print "b\n"
+ assert_equal("b\n", s.readpartial(10))
+ }
+ end
+
+ def test_oflush
+ helper {|m, s|
+ s.print "a"
+ s.oflush # oflush may be issued after "a" is already sent.
+ s.print "b"
+ assert_include(["b", "ab"], m.readpartial(10))
+ }
+ end
+
+ def test_ioflush
+ helper {|m, s|
+ m.print "a"
+ s.ioflush
+ m.print "b\n"
+ assert_equal("b\n", s.readpartial(10))
+ }
+ end
+
+ def test_ioflush2
+ helper {|m, s|
+ s.print "a"
+ s.ioflush # ioflush may be issued after "a" is already sent.
+ s.print "b"
+ assert_include(["b", "ab"], m.readpartial(10))
+ }
+ end
+
+ def test_winsize
+ helper {|m, s|
+ begin
+ assert_equal([0, 0], s.winsize)
+ rescue Errno::EINVAL # OpenSolaris 2009.06 TIOCGWINSZ causes Errno::EINVAL before TIOCSWINSZ.
+ end
+ }
+ end
+
+ if IO.console
+ def test_sync
+ assert(IO.console.sync, "console should be unbuffered")
+ end
+ else
+ def test_sync
+ r, w, pid = PTY.spawn(EnvUtil.rubybin, "-rio/console", "-e", "p IO.console.class")
+ con = r.gets.chomp
+ Process.wait(pid)
+ assert_match("File", con)
+ end
+ end
+
+ private
+ def helper
+ m, s = PTY.open
+ rescue RuntimeError
+ skip $!
+ else
+ yield m, s
+ ensure
+ m.close if m
+ s.close if s
+ end
+end if defined?(PTY) and defined?(IO::console)
+
+class TestIO_Console < Test::Unit::TestCase
+ case
+ when Process.respond_to?(:daemon)
+ noctty = [EnvUtil.rubybin, "-e", "Process.daemon(true)"]
+ when !(rubyw = RbConfig::CONFIG["RUBYW_INSTALL_NAME"]).empty?
+ dir, base = File.split(EnvUtil.rubybin)
+ noctty = [File.join(dir, base.sub(/ruby/, rubyw))]
+ end
+
+ if noctty
+ require 'tempfile'
+ NOCTTY = noctty
+ def test_noctty
+ t = Tempfile.new("console")
+ t.close
+ t2 = Tempfile.new("console")
+ t2.close
+ cmd = NOCTTY + [
+ '--disable=gems',
+ '-rio/console',
+ '-e', 'open(ARGV[0], "w") {|f| f.puts IO.console.inspect}',
+ '-e', 'File.unlink(ARGV[1])',
+ '--', t.path, t2.path]
+ system(*cmd)
+ sleep 0.1 while File.exist?(t2.path)
+ t.open
+ assert_equal("nil", t.gets.chomp)
+ ensure
+ t.close! if t and !t.closed?
+ t2.close!
+ end
+ end
+end if defined?(IO.console)
+
+class TestIO_Console < Test::Unit::TestCase
+ def test_stringio_getch
+ assert_ruby_status(%w"--disable=gems -rstringio -rio/console", "exit(StringIO.method_defined?(:getch))")
+ assert_ruby_status(%w"--disable=gems -rio/console -rstringio", "exit(StringIO.method_defined?(:getch))")
+ assert_ruby_status(%w"--disable=gems -rstringio", "exit(!StringIO.method_defined?(:getch))")
+ end
+end
diff --git a/test/io/nonblock/test_flush.rb b/test/io/nonblock/test_flush.rb
index 2217dbcec9..b031c71bf8 100644
--- a/test/io/nonblock/test_flush.rb
+++ b/test/io/nonblock/test_flush.rb
@@ -7,8 +7,17 @@ end
class TestIONonblock < Test::Unit::TestCase
def test_flush
- r,w = IO.pipe
- w.nonblock = true
+ flush_test(*IO.pipe) or
+ (require 'socket'; flush_test(*Socket.pair(:INET, :STREAM))) or
+ skip "nonblocking IO did not work"
+ end
+
+ def flush_test(r, w)
+ begin
+ w.nonblock = true
+ rescue Errno::EBADF
+ return false
+ end
w.sync = false
w << "b"
w.flush
@@ -32,5 +41,6 @@ class TestIONonblock < Test::Unit::TestCase
assert_nothing_raised {t.join}
}
assert_equal(4097, result.size)
+ true
end
end if IO.method_defined?(:nonblock)
diff --git a/test/io/wait/test_io_wait.rb b/test/io/wait/test_io_wait.rb
new file mode 100644
index 0000000000..3cf967e467
--- /dev/null
+++ b/test/io/wait/test_io_wait.rb
@@ -0,0 +1,72 @@
+require 'test/unit'
+require 'timeout'
+require 'socket'
+begin
+ require 'io/wait'
+rescue LoadError
+end
+
+class TestIOWait < Test::Unit::TestCase
+
+ def setup
+ if /mswin|mingw/ =~ RUBY_PLATFORM
+ @r, @w = Socket.pair(Socket::AF_INET, Socket::SOCK_STREAM, 0)
+ else
+ @r, @w = IO.pipe
+ end
+ end
+
+ def teardown
+ @r.close unless @r.closed?
+ @w.close unless @w.closed?
+ end
+
+ def test_nread
+ assert_equal 0, @r.nread
+ @w.syswrite "."
+ sleep 0.1
+ assert_equal 1, @r.nread
+ end
+
+ def test_nread_buffered
+ @w.syswrite ".\n!"
+ assert_equal ".\n", @r.read(2)
+ assert_equal 1, @r.nread
+ end
+
+ def test_ready?
+ refute @r.ready?, "shouldn't ready, but ready"
+ @w.syswrite "."
+ sleep 0.1
+ assert @r.ready?, "should ready, but not"
+ end
+
+ def test_buffered_ready?
+ @w.syswrite ".\n!"
+ assert_equal ".\n", @r.gets
+ assert @r.ready?
+ end
+
+ def test_wait
+ assert_nil @r.wait(0)
+ @w.syswrite "."
+ sleep 0.1
+ assert_equal @r, @r.wait(0)
+ end
+
+ def test_wait_buffered
+ @w.syswrite ".\n!"
+ assert_equal ".\n", @r.gets
+ assert_equal true, @r.wait(0)
+ end
+
+ def test_wait_forever
+ Thread.new { sleep 0.01; @w.syswrite "." }
+ assert_equal @r, @r.wait
+ end
+
+ def test_wait_eof
+ Thread.new { sleep 0.01; @w.close }
+ assert_nil @r.wait
+ end
+end if IO.method_defined?(:wait)
diff --git a/test/irb/test_completion.rb b/test/irb/test_completion.rb
new file mode 100644
index 0000000000..e8baa0d8f5
--- /dev/null
+++ b/test/irb/test_completion.rb
@@ -0,0 +1,22 @@
+require 'test/unit'
+require_relative '../ruby/envutil'
+
+module TestIRB
+ class TestCompletion < Test::Unit::TestCase
+ def test_nonstring_module_name
+ begin
+ require "irb/completion"
+ bug5938 = '[ruby-core:42244]'
+ cmds = %W[-rirb -rirb/completion -e IRB.setup(__FILE__)
+ -e IRB.conf[:MAIN_CONTEXT]=IRB::Irb.new.context
+ -e module\sFoo;def\sself.name;//;end;end
+ -e IRB::InputCompletor::CompletionProc.call("[1].first.")
+ -- -f --]
+ status = assert_in_out_err(cmds, "", //, [], bug5938)
+ assert(status.success?, bug5938)
+ rescue LoadError
+ skip "cannot load irb/completion"
+ end
+ end
+ end
+end
diff --git a/test/irb/test_option.rb b/test/irb/test_option.rb
new file mode 100644
index 0000000000..5e29803bb6
--- /dev/null
+++ b/test/irb/test_option.rb
@@ -0,0 +1,12 @@
+require 'test/unit'
+require_relative '../ruby/envutil'
+
+module TestIRB
+ class TestOption < Test::Unit::TestCase
+ def test_end_of_option
+ bug4117 = '[ruby-core:33574]'
+ status = assert_in_out_err(%w[-rirb -e IRB.start(__FILE__) -- -f --], "", //, [], bug4117)
+ assert(status.success?, bug4117)
+ end
+ end
+end
diff --git a/test/json/setup_variant.rb b/test/json/setup_variant.rb
new file mode 100644
index 0000000000..2dab184bc4
--- /dev/null
+++ b/test/json/setup_variant.rb
@@ -0,0 +1,11 @@
+case ENV['JSON']
+when 'pure'
+ $:.unshift 'lib'
+ require 'json/pure'
+when 'ext'
+ $:.unshift 'ext', 'lib'
+ require 'json/ext'
+else
+ $:.unshift 'ext', 'lib'
+ require 'json'
+end
diff --git a/test/json/test_json.rb b/test/json/test_json.rb
index ae77f7b14f..eafd758bf7 100755
--- a/test/json/test_json.rb
+++ b/test/json/test_json.rb
@@ -2,9 +2,23 @@
# -*- coding: utf-8 -*-
require 'test/unit'
-require 'json'
+require File.join(File.dirname(__FILE__), 'setup_variant')
require 'stringio'
+unless Array.method_defined?(:permutation)
+ begin
+ require 'enumerator'
+ require 'permutation'
+ class Array
+ def permutation
+ Permutation.for(self).to_enum.map { |x| x.project }
+ end
+ end
+ rescue LoadError
+ warn "Skipping permutation tests."
+ end
+end
+
class TC_JSON < Test::Unit::TestCase
include JSON
@@ -26,7 +40,7 @@ class TC_JSON < Test::Unit::TestCase
'h' => 1000.0,
'i' => 0.001
}
- @json = '{"a":2,"b":3.141,"c":"c","d":[1,"b",3.14],"e":{"foo":"bar"},' +
+ @json = '{"a":2,"b":3.141,"c":"c","d":[1,"b",3.14],"e":{"foo":"bar"},'\
'"g":"\\"\\u0000\\u001f","h":1.0E3,"i":1.0E-3}'
end
@@ -49,10 +63,10 @@ class TC_JSON < Test::Unit::TestCase
assert_equal([23], parse('[23]'))
assert_equal([0.23], parse('[0.23]'))
assert_equal([0.0], parse('[0e0]'))
- assert_raise(JSON::ParserError) { parse('[+23.2]') }
- assert_raise(JSON::ParserError) { parse('[+23]') }
- assert_raise(JSON::ParserError) { parse('[.23]') }
- assert_raise(JSON::ParserError) { parse('[023]') }
+ assert_raises(JSON::ParserError) { parse('[+23.2]') }
+ assert_raises(JSON::ParserError) { parse('[+23]') }
+ assert_raises(JSON::ParserError) { parse('[.23]') }
+ assert_raises(JSON::ParserError) { parse('[023]') }
assert_equal_float [3.141], parse('[3.141]')
assert_equal_float [-3.141], parse('[-3.141]')
assert_equal_float [3.141], parse('[3141e-3]')
@@ -61,11 +75,11 @@ class TC_JSON < Test::Unit::TestCase
assert_equal_float [3.141], parse('[3141.0E-3]')
assert_equal_float [-3.141], parse('[-3141.0e-3]')
assert_equal_float [-3.141], parse('[-3141e-3]')
- assert_raise(ParserError) { parse('[NaN]') }
+ assert_raises(ParserError) { parse('[NaN]') }
assert parse('[NaN]', :allow_nan => true).first.nan?
- assert_raise(ParserError) { parse('[Infinity]') }
+ assert_raises(ParserError) { parse('[Infinity]') }
assert_equal [1.0/0], parse('[Infinity]', :allow_nan => true)
- assert_raise(ParserError) { parse('[-Infinity]') }
+ assert_raises(ParserError) { parse('[-Infinity]') }
assert_equal [-1.0/0], parse('[-Infinity]', :allow_nan => true)
assert_equal([""], parse('[""]'))
assert_equal(["foobar"], parse('["foobar"]'))
@@ -79,7 +93,7 @@ class TC_JSON < Test::Unit::TestCase
assert_equal({ "a" => nil }, parse('{"a":null}'))
assert_equal({ "a" => false }, parse('{ "a" : false } '))
assert_equal({ "a" => false }, parse('{"a":false}'))
- assert_raise(JSON::ParserError) { parse('{false}') }
+ assert_raises(JSON::ParserError) { parse('{false}') }
assert_equal({ "a" => true }, parse('{"a":true}'))
assert_equal({ "a" => true }, parse(' { "a" : true } '))
assert_equal({ "a" => -23 }, parse(' { "a" : -23 } '))
@@ -90,21 +104,59 @@ class TC_JSON < Test::Unit::TestCase
assert_equal({ "a" => 0.23 }, parse(' { "a" : 0.23 } '))
end
- def test_parse_more_complex_arrays
- a = [ nil, false, true, "foßbar", [ "n€st€d", true ], { "nested" => true, "n€ßt€ð2" => {} }]
- a.permutation do |orig_ary|
- json = pretty_generate(orig_ary)
- assert_equal orig_ary, parse(json)
- end
+ def test_parse_json_primitive_values
+ assert_raise(JSON::ParserError) { JSON.parse('') }
+ assert_raise(JSON::ParserError) { JSON.parse('', :quirks_mode => true) }
+ assert_raise(JSON::ParserError) { JSON.parse(' /* foo */ ') }
+ assert_raise(JSON::ParserError) { JSON.parse(' /* foo */ ', :quirks_mode => true) }
+ parser = JSON::Parser.new('null')
+ assert_equal false, parser.quirks_mode?
+ assert_raise(JSON::ParserError) { parser.parse }
+ assert_raise(JSON::ParserError) { JSON.parse('null') }
+ assert_equal nil, JSON.parse('null', :quirks_mode => true)
+ parser = JSON::Parser.new('null', :quirks_mode => true)
+ assert_equal true, parser.quirks_mode?
+ assert_equal nil, parser.parse
+ assert_raise(JSON::ParserError) { JSON.parse('false') }
+ assert_equal false, JSON.parse('false', :quirks_mode => true)
+ assert_raise(JSON::ParserError) { JSON.parse('true') }
+ assert_equal true, JSON.parse('true', :quirks_mode => true)
+ assert_raise(JSON::ParserError) { JSON.parse('23') }
+ assert_equal 23, JSON.parse('23', :quirks_mode => true)
+ assert_raise(JSON::ParserError) { JSON.parse('1') }
+ assert_equal 1, JSON.parse('1', :quirks_mode => true)
+ assert_raise(JSON::ParserError) { JSON.parse('3.141') }
+ assert_in_delta 3.141, JSON.parse('3.141', :quirks_mode => true), 1E-3
+ assert_raise(JSON::ParserError) { JSON.parse('18446744073709551616') }
+ assert_equal 2 ** 64, JSON.parse('18446744073709551616', :quirks_mode => true)
+ assert_raise(JSON::ParserError) { JSON.parse('"foo"') }
+ assert_equal 'foo', JSON.parse('"foo"', :quirks_mode => true)
+ assert_raise(JSON::ParserError) { JSON.parse('NaN', :allow_nan => true) }
+ assert JSON.parse('NaN', :quirks_mode => true, :allow_nan => true).nan?
+ assert_raise(JSON::ParserError) { JSON.parse('Infinity', :allow_nan => true) }
+ assert JSON.parse('Infinity', :quirks_mode => true, :allow_nan => true).infinite?
+ assert_raise(JSON::ParserError) { JSON.parse('-Infinity', :allow_nan => true) }
+ assert JSON.parse('-Infinity', :quirks_mode => true, :allow_nan => true).infinite?
+ assert_raise(JSON::ParserError) { JSON.parse('[ 1, ]', :quirks_mode => true) }
end
- def test_parse_complex_objects
- a = [ nil, false, true, "foßbar", [ "n€st€d", true ], { "nested" => true, "n€ßt€ð2" => {} }]
- a.permutation do |orig_ary|
- s = "a"
- orig_obj = orig_ary.inject({}) { |h, x| h[s.dup] = x; s = s.succ; h }
- json = pretty_generate(orig_obj)
- assert_equal orig_obj, parse(json)
+ if Array.method_defined?(:permutation)
+ def test_parse_more_complex_arrays
+ a = [ nil, false, true, "foßbar", [ "n€st€d", true ], { "nested" => true, "n€ßt€ð2" => {} }]
+ a.permutation.each do |perm|
+ json = pretty_generate(perm)
+ assert_equal perm, parse(json)
+ end
+ end
+
+ def test_parse_complex_objects
+ a = [ nil, false, true, "foßbar", [ "n€st€d", true ], { "nested" => true, "n€ßt€ð2" => {} }]
+ a.permutation.each do |perm|
+ s = "a"
+ orig_obj = perm.inject({}) { |h, x| h[s.dup] = x; s = s.succ; h }
+ json = pretty_generate(orig_obj)
+ assert_equal orig_obj, parse(json)
+ end
end
end
@@ -134,10 +186,42 @@ class TC_JSON < Test::Unit::TestCase
assert_equal(@ary,
parse('[[1],["foo"],[3.14],[47.11e+2],[2718.0E-3],[null],[[1,-2,3]]'\
',[false],[true]]'))
- assert_equal(@ary, parse(%Q{ [ [1] , ["foo"] , [3.14] \t , [47.11e+2]
+ assert_equal(@ary, parse(%Q{ [ [1] , ["foo"] , [3.14] \t , [47.11e+2]\s
, [2718.0E-3 ],\r[ null] , [[1, -2, 3 ]], [false ],[ true]\n ] }))
end
+ class SubArray < Array
+ def <<(v)
+ @shifted = true
+ super
+ end
+
+ def shifted?
+ @shifted
+ end
+ end
+
+ class SubArray2 < Array
+ def to_json(*a)
+ {
+ JSON.create_id => self.class.name,
+ 'ary' => to_a,
+ }.to_json(*a)
+ end
+
+ def self.json_create(o)
+ o.delete JSON.create_id
+ o['ary']
+ end
+ end
+
+ def test_parse_array_custom_class
+ res = parse('[1,2]', :array_class => SubArray)
+ assert_equal([1,2], res)
+ assert_equal(SubArray, res.class)
+ assert res.shifted?
+ end
+
def test_parse_object
assert_equal({}, parse('{}'))
assert_equal({}, parse(' { } '))
@@ -145,6 +229,63 @@ class TC_JSON < Test::Unit::TestCase
assert_equal({'foo'=>'bar'}, parse(' { "foo" : "bar" } '))
end
+ class SubHash < Hash
+ def []=(k, v)
+ @item_set = true
+ super
+ end
+
+ def item_set?
+ @item_set
+ end
+ end
+
+ class SubHash2 < Hash
+ def to_json(*a)
+ {
+ JSON.create_id => self.class.name,
+ }.merge(self).to_json(*a)
+ end
+
+ def self.json_create(o)
+ o.delete JSON.create_id
+ self[o]
+ end
+ end
+
+ def test_parse_object_custom_class
+ res = parse('{"foo":"bar"}', :object_class => SubHash)
+ assert_equal({"foo" => "bar"}, res)
+ assert_equal(SubHash, res.class)
+ assert res.item_set?
+ end
+
+ def test_generation_of_core_subclasses_with_new_to_json
+ obj = SubHash2["foo" => SubHash2["bar" => true]]
+ obj_json = JSON(obj)
+ obj_again = JSON(obj_json)
+ assert_kind_of SubHash2, obj_again
+ assert_kind_of SubHash2, obj_again['foo']
+ assert obj_again['foo']['bar']
+ assert_equal obj, obj_again
+ assert_equal ["foo"], JSON(JSON(SubArray2["foo"]))
+ end
+
+ def test_generation_of_core_subclasses_with_default_to_json
+ assert_equal '{"foo":"bar"}', JSON(SubHash["foo" => "bar"])
+ assert_equal '["foo"]', JSON(SubArray["foo"])
+ end
+
+ def test_generation_of_core_subclasses
+ obj = SubHash["foo" => SubHash["bar" => true]]
+ obj_json = JSON(obj)
+ obj_again = JSON(obj_json)
+ assert_kind_of Hash, obj_again
+ assert_kind_of Hash, obj_again['foo']
+ assert obj_again['foo']['bar']
+ assert_equal obj, obj_again
+ end
+
def test_parser_reset
parser = Parser.new(@json)
assert_equal(@hash, parser.parse)
@@ -173,7 +314,7 @@ EOT
* comment */
}
EOT
- assert_raise(ParserError) { parse(json) }
+ assert_raises(ParserError) { parse(json) }
json = <<EOT
{
"key1":"value1" /* multi line
@@ -182,7 +323,7 @@ EOT
and again, throw an Error */
}
EOT
- assert_raise(ParserError) { parse(json) }
+ assert_raises(ParserError) { parse(json) }
json = <<EOT
{
"key1":"value1" /*/*/
@@ -194,56 +335,56 @@ EOT
def test_backslash
data = [ '\\.(?i:gif|jpe?g|png)$' ]
json = '["\\\\.(?i:gif|jpe?g|png)$"]'
- assert_equal json, JSON.unparse(data)
+ assert_equal json, JSON.generate(data)
assert_equal data, JSON.parse(json)
#
data = [ '\\"' ]
json = '["\\\\\""]'
- assert_equal json, JSON.unparse(data)
+ assert_equal json, JSON.generate(data)
assert_equal data, JSON.parse(json)
#
- json = '["\/"]'
+ json = '["/"]'
data = JSON.parse(json)
assert_equal ['/'], data
- assert_equal json, JSON.unparse(data)
+ assert_equal json, JSON.generate(data)
#
json = '["\""]'
data = JSON.parse(json)
assert_equal ['"'], data
- assert_equal json, JSON.unparse(data)
+ assert_equal json, JSON.generate(data)
json = '["\\\'"]'
data = JSON.parse(json)
assert_equal ["'"], data
- assert_equal '["\'"]', JSON.unparse(data)
+ assert_equal '["\'"]', JSON.generate(data)
end
def test_wrong_inputs
- assert_raise(ParserError) { JSON.parse('"foo"') }
- assert_raise(ParserError) { JSON.parse('123') }
- assert_raise(ParserError) { JSON.parse('[] bla') }
- assert_raise(ParserError) { JSON.parse('[] 1') }
- assert_raise(ParserError) { JSON.parse('[] []') }
- assert_raise(ParserError) { JSON.parse('[] {}') }
- assert_raise(ParserError) { JSON.parse('{} []') }
- assert_raise(ParserError) { JSON.parse('{} {}') }
- assert_raise(ParserError) { JSON.parse('[NULL]') }
- assert_raise(ParserError) { JSON.parse('[FALSE]') }
- assert_raise(ParserError) { JSON.parse('[TRUE]') }
- assert_raise(ParserError) { JSON.parse('[07] ') }
- assert_raise(ParserError) { JSON.parse('[0a]') }
- assert_raise(ParserError) { JSON.parse('[1.]') }
- assert_raise(ParserError) { JSON.parse(' ') }
+ assert_raises(ParserError) { JSON.parse('"foo"') }
+ assert_raises(ParserError) { JSON.parse('123') }
+ assert_raises(ParserError) { JSON.parse('[] bla') }
+ assert_raises(ParserError) { JSON.parse('[] 1') }
+ assert_raises(ParserError) { JSON.parse('[] []') }
+ assert_raises(ParserError) { JSON.parse('[] {}') }
+ assert_raises(ParserError) { JSON.parse('{} []') }
+ assert_raises(ParserError) { JSON.parse('{} {}') }
+ assert_raises(ParserError) { JSON.parse('[NULL]') }
+ assert_raises(ParserError) { JSON.parse('[FALSE]') }
+ assert_raises(ParserError) { JSON.parse('[TRUE]') }
+ assert_raises(ParserError) { JSON.parse('[07] ') }
+ assert_raises(ParserError) { JSON.parse('[0a]') }
+ assert_raises(ParserError) { JSON.parse('[1.]') }
+ assert_raises(ParserError) { JSON.parse(' ') }
end
def test_nesting
- assert_raise(JSON::NestingError) { JSON.parse '[[]]', :max_nesting => 1 }
- assert_raise(JSON::NestingError) { JSON.parser.new('[[]]', :max_nesting => 1).parse }
+ assert_raises(JSON::NestingError) { JSON.parse '[[]]', :max_nesting => 1 }
+ assert_raises(JSON::NestingError) { JSON.parser.new('[[]]', :max_nesting => 1).parse }
assert_equal [[]], JSON.parse('[[]]', :max_nesting => 2)
too_deep = '[[[[[[[[[[[[[[[[[[[["Too deep"]]]]]]]]]]]]]]]]]]]]'
too_deep_ary = eval too_deep
- assert_raise(JSON::NestingError) { JSON.parse too_deep }
- assert_raise(JSON::NestingError) { JSON.parser.new(too_deep).parse }
- assert_raise(JSON::NestingError) { JSON.parse too_deep, :max_nesting => 19 }
+ assert_raises(JSON::NestingError) { JSON.parse too_deep }
+ assert_raises(JSON::NestingError) { JSON.parser.new(too_deep).parse }
+ assert_raises(JSON::NestingError) { JSON.parse too_deep, :max_nesting => 19 }
ok = JSON.parse too_deep, :max_nesting => 20
assert_equal too_deep_ary, ok
ok = JSON.parse too_deep, :max_nesting => nil
@@ -252,10 +393,10 @@ EOT
assert_equal too_deep_ary, ok
ok = JSON.parse too_deep, :max_nesting => 0
assert_equal too_deep_ary, ok
- assert_raise(JSON::NestingError) { JSON.generate [[]], :max_nesting => 1 }
+ assert_raises(JSON::NestingError) { JSON.generate [[]], :max_nesting => 1 }
assert_equal '[[]]', JSON.generate([[]], :max_nesting => 2)
- assert_raise(JSON::NestingError) { JSON.generate too_deep_ary }
- assert_raise(JSON::NestingError) { JSON.generate too_deep_ary, :max_nesting => 19 }
+ assert_raises(JSON::NestingError) { JSON.generate too_deep_ary }
+ assert_raises(JSON::NestingError) { JSON.generate too_deep_ary, :max_nesting => 19 }
ok = JSON.generate too_deep_ary, :max_nesting => 20
assert_equal too_deep, ok
ok = JSON.generate too_deep_ary, :max_nesting => nil
@@ -266,12 +407,19 @@ EOT
assert_equal too_deep, ok
end
+ def test_symbolize_names
+ assert_equal({ "foo" => "bar", "baz" => "quux" },
+ JSON.parse('{"foo":"bar", "baz":"quux"}'))
+ assert_equal({ :foo => "bar", :baz => "quux" },
+ JSON.parse('{"foo":"bar", "baz":"quux"}', :symbolize_names => true))
+ end
+
def test_load_dump
too_deep = '[[[[[[[[[[[[[[[[[[[[]]]]]]]]]]]]]]]]]]]]'
assert_equal too_deep, JSON.dump(eval(too_deep))
assert_kind_of String, Marshal.dump(eval(too_deep))
- assert_raise(ArgumentError) { JSON.dump(eval(too_deep), 19) }
- assert_raise(ArgumentError) { Marshal.dump(eval(too_deep), 19) }
+ assert_raises(ArgumentError) { JSON.dump(eval(too_deep), 19) }
+ assert_raises(ArgumentError) { Marshal.dump(eval(too_deep), 19) }
assert_equal too_deep, JSON.dump(eval(too_deep), 20)
assert_kind_of String, Marshal.dump(eval(too_deep), 20)
output = StringIO.new
@@ -281,4 +429,32 @@ EOT
JSON.dump(eval(too_deep), output, 20)
assert_equal too_deep, output.string
end
+
+ def test_big_integers
+ json1 = JSON([orig = (1 << 31) - 1])
+ assert_equal orig, JSON[json1][0]
+ json2 = JSON([orig = 1 << 31])
+ assert_equal orig, JSON[json2][0]
+ json3 = JSON([orig = (1 << 62) - 1])
+ assert_equal orig, JSON[json3][0]
+ json4 = JSON([orig = 1 << 62])
+ assert_equal orig, JSON[json4][0]
+ json5 = JSON([orig = 1 << 64])
+ assert_equal orig, JSON[json5][0]
+ end
+
+ if defined?(JSON::Ext::Parser)
+ def test_allocate
+ parser = JSON::Ext::Parser.new("{}")
+ assert_raise(TypeError, '[ruby-core:35079]') {parser.__send__(:initialize, "{}")}
+ parser = JSON::Ext::Parser.allocate
+ assert_raise(TypeError, '[ruby-core:35079]') {parser.source}
+ end
+ end
+
+ def test_argument_encoding
+ source = "{}".force_encoding("ascii-8bit")
+ JSON::Parser.new(source)
+ assert_equal Encoding::ASCII_8BIT, source.encoding
+ end if defined?(Encoding::ASCII_8BIT)
end
diff --git a/test/json/test_json_addition.rb b/test/json/test_json_addition.rb
index 2650db68f0..cc3820a073 100755
--- a/test/json/test_json_addition.rb
+++ b/test/json/test_json_addition.rb
@@ -1,7 +1,9 @@
#!/usr/bin/env ruby
+# -*- coding:utf-8 -*-
require 'test/unit'
-require 'json/add/core'
+require File.join(File.dirname(__FILE__), 'setup_variant')
+require 'json/add/core.rb'
require 'date'
class TC_JSONAddition < Test::Unit::TestCase
@@ -30,6 +32,15 @@ class TC_JSONAddition < Test::Unit::TestCase
end
end
+ class A2 < A
+ def to_json(*args)
+ {
+ 'json_class' => self.class.name,
+ 'args' => [ @a ],
+ }.to_json(*args)
+ end
+ end
+
class B
def self.json_creatable?
false
@@ -89,11 +100,12 @@ class TC_JSONAddition < Test::Unit::TestCase
c = C.new
assert !C.json_creatable?
json = generate(c)
- assert_raise(ArgumentError) { JSON.parse(json) }
+ assert_raises(ArgumentError, NameError) { JSON.parse(json) }
end
def test_raw_strings
raw = ''
+ raw.respond_to?(:encode!) and raw.encode!(Encoding::ASCII_8BIT)
raw_array = []
for i in 0..255
raw << i
@@ -103,11 +115,9 @@ class TC_JSONAddition < Test::Unit::TestCase
json_raw_object = raw.to_json_raw_object
hash = { 'json_class' => 'String', 'raw'=> raw_array }
assert_equal hash, json_raw_object
- json_raw = <<EOT.chomp
-{\"json_class\":\"String\",\"raw\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255]}
-EOT
-# "
- assert_equal json_raw, json
+ assert_match(/\A\{.*\}\Z/, json)
+ assert_match(/"json_class":"String"/, json)
+ assert_match(/"raw":\[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255\]/, json)
raw_again = JSON.parse(json)
assert_equal raw, raw_again
end
@@ -129,7 +139,7 @@ EOT
assert_equal s, JSON(JSON(s))
struct = Struct.new :foo, :bar
s = struct.new 4711, 'foot'
- assert_raise(JSONError) { JSON(s) }
+ assert_raises(JSONError) { JSON(s) }
begin
raise TypeError, "test me"
rescue TypeError => e
@@ -146,12 +156,12 @@ EOT
def test_utc_datetime
now = Time.now
d = DateTime.parse(now.to_s) # usual case
- assert d, JSON.parse(d.to_json)
+ assert_equal d, JSON.parse(d.to_json)
d = DateTime.parse(now.utc.to_s) # of = 0
- assert d, JSON.parse(d.to_json)
- d = DateTime.civil(2008, 6, 17, 11, 48, 32, 1) # of = 1 / 12 => 1/12
- assert d, JSON.parse(d.to_json)
- d = DateTime.civil(2008, 6, 17, 11, 48, 32, 12) # of = 12 / 12 => 12
- assert d, JSON.parse(d.to_json)
+ assert_equal d, JSON.parse(d.to_json)
+ d = DateTime.civil(2008, 6, 17, 11, 48, 32, Rational(1,24))
+ assert_equal d, JSON.parse(d.to_json)
+ d = DateTime.civil(2008, 6, 17, 11, 48, 32, Rational(12,24))
+ assert_equal d, JSON.parse(d.to_json)
end
end
diff --git a/test/json/test_json_encoding.rb b/test/json/test_json_encoding.rb
new file mode 100644
index 0000000000..7af5e63a73
--- /dev/null
+++ b/test/json/test_json_encoding.rb
@@ -0,0 +1,65 @@
+#!/usr/bin/env ruby
+# -*- coding: utf-8 -*-
+
+require 'test/unit'
+require File.join(File.dirname(__FILE__), 'setup_variant')
+
+class TC_JSONEncoding < Test::Unit::TestCase
+ include JSON
+
+ def setup
+ @utf_8 = '["© ≠ €!"]'
+ @parsed = [ "© ≠ €!" ]
+ @generated = '["\u00a9 \u2260 \u20ac!"]'
+ if String.method_defined?(:encode)
+ @utf_16_data = [@parsed.first.encode('utf-16be', 'utf-8')]
+ @utf_8_ascii_8bit = @utf_8.dup.force_encoding(Encoding::ASCII_8BIT)
+ @utf_16be = @utf_8.encode('utf-16be', 'utf-8')
+ @utf_16be_ascii_8bit = @utf_16be.dup.force_encoding(Encoding::ASCII_8BIT)
+ @utf_16le = @utf_8.encode('utf-16le', 'utf-8')
+ @utf_16le_ascii_8bit = @utf_16le.dup.force_encoding(Encoding::ASCII_8BIT)
+ @utf_32be = @utf_8.encode('utf-32be', 'utf-8')
+ @utf_32be_ascii_8bit = @utf_32be.dup.force_encoding(Encoding::ASCII_8BIT)
+ @utf_32le = @utf_8.encode('utf-32le', 'utf-8')
+ @utf_32le_ascii_8bit = @utf_32le.dup.force_encoding(Encoding::ASCII_8BIT)
+ else
+ require 'iconv'
+ @utf_16_data = Iconv.iconv('utf-16be', 'utf-8', @parsed.first)
+ @utf_8_ascii_8bit = @utf_8.dup
+ @utf_16be, = Iconv.iconv('utf-16be', 'utf-8', @utf_8)
+ @utf_16be_ascii_8bit = @utf_16be.dup
+ @utf_16le, = Iconv.iconv('utf-16le', 'utf-8', @utf_8)
+ @utf_16le_ascii_8bit = @utf_16le.dup
+ @utf_32be, = Iconv.iconv('utf-32be', 'utf-8', @utf_8)
+ @utf_32be_ascii_8bit = @utf_32be.dup
+ @utf_32le, = Iconv.iconv('utf-32le', 'utf-8', @utf_8)
+ @utf_32le_ascii_8bit = @utf_32le.dup
+ end
+ end
+
+ def test_parse
+ assert_equal @parsed, JSON.parse(@utf_8)
+ assert_equal @parsed, JSON.parse(@utf_16be)
+ assert_equal @parsed, JSON.parse(@utf_16le)
+ assert_equal @parsed, JSON.parse(@utf_32be)
+ assert_equal @parsed, JSON.parse(@utf_32le)
+ end
+
+ def test_parse_ascii_8bit
+ assert_equal @parsed, JSON.parse(@utf_8_ascii_8bit)
+ assert_equal @parsed, JSON.parse(@utf_16be_ascii_8bit)
+ assert_equal @parsed, JSON.parse(@utf_16le_ascii_8bit)
+ assert_equal @parsed, JSON.parse(@utf_32be_ascii_8bit)
+ assert_equal @parsed, JSON.parse(@utf_32le_ascii_8bit)
+ end
+
+ def test_generate
+ assert_equal @generated, JSON.generate(@parsed, :ascii_only => true)
+ if defined?(::Encoding)
+ assert_equal @generated, JSON.generate(@utf_16_data, :ascii_only => true)
+ else
+ # XXX checking of correct utf8 data is not as strict (yet?) without :ascii_only
+ assert_raises(JSON::GeneratorError) { JSON.generate(@utf_16_data, :ascii_only => true) }
+ end
+ end
+end
diff --git a/test/json/test_json_fixtures.rb b/test/json/test_json_fixtures.rb
index 6cc1bfc6fa..e9df8f5b1c 100755
--- a/test/json/test_json_fixtures.rb
+++ b/test/json/test_json_fixtures.rb
@@ -1,7 +1,8 @@
#!/usr/bin/env ruby
+# -*- coding: utf-8 -*-
require 'test/unit'
-require 'json'
+require File.join(File.dirname(__FILE__), 'setup_variant')
class TC_JSONFixtures < Test::Unit::TestCase
def setup
@@ -13,15 +14,20 @@ class TC_JSONFixtures < Test::Unit::TestCase
def test_passing
for name, source in @passed
- assert JSON.parse(source),
- "Did not pass for fixture '#{name}'"
+ begin
+ assert JSON.parse(source),
+ "Did not pass for fixture '#{name}': #{source.inspect}"
+ rescue => e
+ warn "\nCaught #{e.class}(#{e}) for fixture '#{name}': #{source.inspect}\n#{e.backtrace * "\n"}"
+ raise e
+ end
end
end
def test_failing
for name, source in @failed
- assert_raise(JSON::ParserError, JSON::NestingError,
- "Did not fail for fixture '#{name}'") do
+ assert_raises(JSON::ParserError, JSON::NestingError,
+ "Did not fail for fixture '#{name}': #{source.inspect}") do
JSON.parse(source)
end
end
diff --git a/test/json/test_json_generate.rb b/test/json/test_json_generate.rb
index 8c55a409cd..da96603d61 100644..100755
--- a/test/json/test_json_generate.rb
+++ b/test/json/test_json_generate.rb
@@ -1,5 +1,8 @@
+#!/usr/bin/env ruby
+# -*- coding: utf-8 -*-
+
require 'test/unit'
-require 'json'
+require File.join(File.dirname(__FILE__), 'setup_variant')
class TC_JSONGenerate < Test::Unit::TestCase
include JSON
@@ -37,8 +40,8 @@ class TC_JSONGenerate < Test::Unit::TestCase
EOT
end
- def test_unparse
- json = unparse(@hash)
+ def test_generate
+ json = generate(@hash)
assert_equal(JSON.parse(@json2), JSON.parse(json))
parsed_json = parse(json)
assert_equal(@hash, parsed_json)
@@ -46,10 +49,13 @@ EOT
assert_equal('{"1":2}', json)
parsed_json = parse(json)
assert_equal({"1"=>2}, parsed_json)
+ assert_raise(GeneratorError) { generate(666) }
+ assert_equal '666', generate(666, :quirks_mode => true)
end
- def test_unparse_pretty
- json = pretty_unparse(@hash)
+ def test_generate_pretty
+ json = pretty_generate(@hash)
+ # hashes aren't (insertion) ordered on every ruby implementation assert_equal(@json3, json)
assert_equal(JSON.parse(@json3), JSON.parse(json))
parsed_json = parse(json)
assert_equal(@hash, parsed_json)
@@ -61,39 +67,147 @@ EOT
EOT
parsed_json = parse(json)
assert_equal({"1"=>2}, parsed_json)
+ assert_raise(GeneratorError) { pretty_generate(666) }
+ assert_equal '666', pretty_generate(666, :quirks_mode => true)
+ end
+
+ def test_fast_generate
+ json = fast_generate(@hash)
+ assert_equal(JSON.parse(@json2), JSON.parse(json))
+ parsed_json = parse(json)
+ assert_equal(@hash, parsed_json)
+ json = fast_generate({1=>2})
+ assert_equal('{"1":2}', json)
+ parsed_json = parse(json)
+ assert_equal({"1"=>2}, parsed_json)
+ assert_raise(GeneratorError) { fast_generate(666) }
+ assert_equal '666', fast_generate(666, :quirks_mode => true)
+ end
+
+ def test_own_state
+ state = State.new
+ json = generate(@hash, state)
+ assert_equal(JSON.parse(@json2), JSON.parse(json))
+ parsed_json = parse(json)
+ assert_equal(@hash, parsed_json)
+ json = generate({1=>2}, state)
+ assert_equal('{"1":2}', json)
+ parsed_json = parse(json)
+ assert_equal({"1"=>2}, parsed_json)
+ assert_raise(GeneratorError) { generate(666, state) }
+ state.quirks_mode = true
+ assert state.quirks_mode?
+ assert_equal '666', generate(666, state)
end
def test_states
json = generate({1=>2}, nil)
assert_equal('{"1":2}', json)
- s = JSON.state.new(:check_circular => true)
- #assert s.check_circular
+ s = JSON.state.new
+ assert s.check_circular?
+ assert s[:check_circular?]
h = { 1=>2 }
h[3] = h
- assert_raise(JSON::CircularDatastructure) { generate(h) }
- assert_raise(JSON::CircularDatastructure) { generate(h, s) }
- s = JSON.state.new(:check_circular => true)
- #assert s.check_circular
+ assert_raises(JSON::NestingError) { generate(h) }
+ assert_raises(JSON::NestingError) { generate(h, s) }
+ s = JSON.state.new
a = [ 1, 2 ]
a << a
- assert_raise(JSON::CircularDatastructure) { generate(a, s) }
+ assert_raises(JSON::NestingError) { generate(a, s) }
+ assert s.check_circular?
+ assert s[:check_circular?]
+ end
+
+ def test_pretty_state
+ state = PRETTY_STATE_PROTOTYPE.dup
+ assert_equal({
+ :allow_nan => false,
+ :array_nl => "\n",
+ :ascii_only => false,
+ :quirks_mode => false,
+ :depth => 0,
+ :indent => " ",
+ :max_nesting => 19,
+ :object_nl => "\n",
+ :space => " ",
+ :space_before => "",
+ }.sort_by { |n,| n.to_s }, state.to_h.sort_by { |n,| n.to_s })
+ end
+
+ def test_safe_state
+ state = SAFE_STATE_PROTOTYPE.dup
+ assert_equal({
+ :allow_nan => false,
+ :array_nl => "",
+ :ascii_only => false,
+ :quirks_mode => false,
+ :depth => 0,
+ :indent => "",
+ :max_nesting => 19,
+ :object_nl => "",
+ :space => "",
+ :space_before => "",
+ }.sort_by { |n,| n.to_s }, state.to_h.sort_by { |n,| n.to_s })
+ end
+
+ def test_fast_state
+ state = FAST_STATE_PROTOTYPE.dup
+ assert_equal({
+ :allow_nan => false,
+ :array_nl => "",
+ :ascii_only => false,
+ :quirks_mode => false,
+ :depth => 0,
+ :indent => "",
+ :max_nesting => 0,
+ :object_nl => "",
+ :space => "",
+ :space_before => "",
+ }.sort_by { |n,| n.to_s }, state.to_h.sort_by { |n,| n.to_s })
end
def test_allow_nan
- assert_raise(GeneratorError) { generate([JSON::NaN]) }
+ assert_raises(GeneratorError) { generate([JSON::NaN]) }
assert_equal '[NaN]', generate([JSON::NaN], :allow_nan => true)
- assert_equal '[NaN]', fast_generate([JSON::NaN])
- assert_raise(GeneratorError) { pretty_generate([JSON::NaN]) }
+ assert_raises(GeneratorError) { fast_generate([JSON::NaN]) }
+ assert_raises(GeneratorError) { pretty_generate([JSON::NaN]) }
assert_equal "[\n NaN\n]", pretty_generate([JSON::NaN], :allow_nan => true)
- assert_raise(GeneratorError) { generate([JSON::Infinity]) }
+ assert_raises(GeneratorError) { generate([JSON::Infinity]) }
assert_equal '[Infinity]', generate([JSON::Infinity], :allow_nan => true)
- assert_equal '[Infinity]', fast_generate([JSON::Infinity])
- assert_raise(GeneratorError) { pretty_generate([JSON::Infinity]) }
+ assert_raises(GeneratorError) { fast_generate([JSON::Infinity]) }
+ assert_raises(GeneratorError) { pretty_generate([JSON::Infinity]) }
assert_equal "[\n Infinity\n]", pretty_generate([JSON::Infinity], :allow_nan => true)
- assert_raise(GeneratorError) { generate([JSON::MinusInfinity]) }
+ assert_raises(GeneratorError) { generate([JSON::MinusInfinity]) }
assert_equal '[-Infinity]', generate([JSON::MinusInfinity], :allow_nan => true)
- assert_equal '[-Infinity]', fast_generate([JSON::MinusInfinity])
- assert_raise(GeneratorError) { pretty_generate([JSON::MinusInfinity]) }
+ assert_raises(GeneratorError) { fast_generate([JSON::MinusInfinity]) }
+ assert_raises(GeneratorError) { pretty_generate([JSON::MinusInfinity]) }
assert_equal "[\n -Infinity\n]", pretty_generate([JSON::MinusInfinity], :allow_nan => true)
end
+
+ def test_depth
+ ary = []; ary << ary
+ assert_equal 0, JSON::SAFE_STATE_PROTOTYPE.depth
+ assert_raises(JSON::NestingError) { JSON.generate(ary) }
+ assert_equal 0, JSON::SAFE_STATE_PROTOTYPE.depth
+ assert_equal 0, JSON::PRETTY_STATE_PROTOTYPE.depth
+ assert_raises(JSON::NestingError) { JSON.pretty_generate(ary) }
+ assert_equal 0, JSON::PRETTY_STATE_PROTOTYPE.depth
+ s = JSON.state.new
+ assert_equal 0, s.depth
+ assert_raises(JSON::NestingError) { ary.to_json(s) }
+ assert_equal 19, s.depth
+ end
+
+ def test_gc
+ bignum_too_long_to_embed_as_string = 1234567890123456789012345
+ expect = bignum_too_long_to_embed_as_string.to_s
+ stress, GC.stress = GC.stress, true
+
+ 10.times do |i|
+ tmp = bignum_too_long_to_embed_as_string.to_json
+ assert_equal expect, tmp
+ end
+ ensure
+ GC.stress = stress
+ end if GC.respond_to?(:stress=)
end
diff --git a/test/json/test_json_rails.rb b/test/json/test_json_rails.rb
deleted file mode 100644
index 91eb9ee9ea..0000000000
--- a/test/json/test_json_rails.rb
+++ /dev/null
@@ -1,114 +0,0 @@
-#!/usr/bin/env ruby
-
-require 'test/unit'
-require 'json/add/rails'
-require 'date'
-
-class TC_JSONRails < Test::Unit::TestCase
- include JSON
-
- class A
- def initialize(a)
- @a = a
- end
-
- attr_reader :a
-
- def ==(other)
- a == other.a
- end
-
- def self.json_create(object)
- new(*object['args'])
- end
-
- def to_json(*args)
- {
- 'json_class' => self.class.name,
- 'args' => [ @a ],
- }.to_json(*args)
- end
- end
-
- class B
- def self.json_creatable?
- false
- end
-
- def to_json(*args)
- {
- 'json_class' => self.class.name,
- }.to_json(*args)
- end
- end
-
- class C
- def to_json(*args)
- {
- 'json_class' => 'TC_JSONRails::Nix',
- }.to_json(*args)
- end
- end
-
- def test_extended_json
- a = A.new(666)
- assert A.json_creatable?
- json = generate(a)
- a_again = JSON.parse(json)
- assert_kind_of a.class, a_again
- assert_equal a, a_again
- end
-
- def test_extended_json_disabled
- a = A.new(666)
- assert A.json_creatable?
- json = generate(a)
- a_again = JSON.parse(json, :create_additions => true)
- assert_kind_of a.class, a_again
- assert_equal a, a_again
- a_hash = JSON.parse(json, :create_additions => false)
- assert_kind_of Hash, a_hash
- assert_equal(
- {"args"=>[666], "json_class"=>"TC_JSONRails::A"}.sort_by { |k,| k },
- a_hash.sort_by { |k,| k }
- )
- end
-
- def test_extended_json_fail1
- b = B.new
- assert !B.json_creatable?
- json = generate(b)
- assert_equal({ 'json_class' => B.name }, JSON.parse(json))
- end
-
- def test_extended_json_fail2
- c = C.new # with rails addition all objects are theoretically creatable
- assert C.json_creatable?
- json = generate(c)
- assert_raise(ArgumentError) { JSON.parse(json) }
- end
-
- def test_raw_strings
- raw = ''
- raw_array = []
- for i in 0..255
- raw << i
- raw_array << i
- end
- json = raw.to_json_raw
- json_raw_object = raw.to_json_raw_object
- hash = { 'json_class' => 'String', 'raw'=> raw_array }
- assert_equal hash, json_raw_object
- json_raw = <<EOT.chomp
-{\"json_class\":\"String\",\"raw\":[0,1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51,52,53,54,55,56,57,58,59,60,61,62,63,64,65,66,67,68,69,70,71,72,73,74,75,76,77,78,79,80,81,82,83,84,85,86,87,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227,228,229,230,231,232,233,234,235,236,237,238,239,240,241,242,243,244,245,246,247,248,249,250,251,252,253,254,255]}
-EOT
-# "
- assert_equal json_raw, json
- raw_again = JSON.parse(json)
- assert_equal raw, raw_again
- end
-
- def test_symbol
- assert_equal '"foo"', JSON(:foo) # we don't want an object here
- end
-end
diff --git a/test/json/test_json_string_matching.rb b/test/json/test_json_string_matching.rb
new file mode 100644
index 0000000000..df26a68a4d
--- /dev/null
+++ b/test/json/test_json_string_matching.rb
@@ -0,0 +1,40 @@
+#!/usr/bin/env ruby
+# -*- coding: utf-8 -*-
+
+require 'test/unit'
+require File.join(File.dirname(__FILE__), 'setup_variant')
+require 'stringio'
+require 'time'
+
+class TestJsonStringMatching < Test::Unit::TestCase
+ include JSON
+
+ class TestTime < ::Time
+ def self.json_create(string)
+ Time.parse(string)
+ end
+
+ def to_json(*)
+ %{"#{strftime('%FT%T%z')}"}
+ end
+
+ def ==(other)
+ to_i == other.to_i
+ end
+ end
+
+ def test_match_date
+ t = TestTime.new
+ t_json = [ t ].to_json
+ assert_equal [ t ],
+ JSON.parse(t_json,
+ :match_string => { /\A\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}[+-]\d{4}\Z/ => TestTime })
+ assert_equal [ t.strftime('%FT%T%z') ],
+ JSON.parse(t_json,
+ :match_string => { /\A\d{3}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}[+-]\d{4}\Z/ => TestTime })
+ assert_equal [ t.strftime('%FT%T%z') ],
+ JSON.parse(t_json,
+ :match_string => { /\A\d{4}-\d{2}-\d{2}T\d{2}:\d{2}:\d{2}[+-]\d{4}\Z/ => TestTime },
+ :create_additions => false)
+ end
+end
diff --git a/test/json/test_json_unicode.rb b/test/json/test_json_unicode.rb
index b8a37c8b8d..ace56cae36 100755
--- a/test/json/test_json_unicode.rb
+++ b/test/json/test_json_unicode.rb
@@ -2,7 +2,7 @@
# -*- coding: utf-8 -*-
require 'test/unit'
-require 'json'
+require File.join(File.dirname(__FILE__), 'setup_variant')
class TC_JSONUnicode < Test::Unit::TestCase
include JSON
@@ -15,22 +15,36 @@ class TC_JSONUnicode < Test::Unit::TestCase
assert_equal '" "', ' '.to_json
assert_equal "\"#{0x7f.chr}\"", 0x7f.chr.to_json
utf8 = [ "© ≠ €! \01" ]
+ json = '["© ≠ €! \u0001"]'
+ assert_equal json, utf8.to_json(:ascii_only => false)
+ assert_equal utf8, parse(json)
json = '["\u00a9 \u2260 \u20ac! \u0001"]'
- assert_equal json, utf8.to_json
+ assert_equal json, utf8.to_json(:ascii_only => true)
+ assert_equal utf8, parse(json)
+ utf8 = ["\343\201\202\343\201\204\343\201\206\343\201\210\343\201\212"]
+ json = "[\"\343\201\202\343\201\204\343\201\206\343\201\210\343\201\212\"]"
assert_equal utf8, parse(json)
+ assert_equal json, utf8.to_json(:ascii_only => false)
utf8 = ["\343\201\202\343\201\204\343\201\206\343\201\210\343\201\212"]
+ assert_equal utf8, parse(json)
json = "[\"\\u3042\\u3044\\u3046\\u3048\\u304a\"]"
- assert_equal json, utf8.to_json
+ assert_equal json, utf8.to_json(:ascii_only => true)
assert_equal utf8, parse(json)
utf8 = ['სáƒáƒ¥áƒáƒ áƒ—ველáƒ']
+ json = '["სáƒáƒ¥áƒáƒ áƒ—ველáƒ"]'
+ assert_equal json, utf8.to_json(:ascii_only => false)
json = "[\"\\u10e1\\u10d0\\u10e5\\u10d0\\u10e0\\u10d7\\u10d5\\u10d4\\u10da\\u10dd\"]"
- assert_equal json, utf8.to_json
+ assert_equal json, utf8.to_json(:ascii_only => true)
assert_equal utf8, parse(json)
- assert_equal '["\\u00c3"]', JSON.generate(["Ã"])
+ assert_equal '["Ã"]', JSON.generate(["Ã"], :ascii_only => false)
+ assert_equal '["\\u00c3"]', JSON.generate(["Ã"], :ascii_only => true)
assert_equal ["€"], JSON.parse('["\u20ac"]')
utf8 = ["\xf0\xa0\x80\x81"]
+ json = "[\"\xf0\xa0\x80\x81\"]"
+ assert_equal json, JSON.generate(utf8, :ascii_only => false)
+ assert_equal utf8, JSON.parse(json)
json = '["\ud840\udc01"]'
- assert_equal json, JSON.generate(utf8)
+ assert_equal json, JSON.generate(utf8, :ascii_only => true)
assert_equal utf8, JSON.parse(json)
end
@@ -51,7 +65,7 @@ class TC_JSONUnicode < Test::Unit::TestCase
end
end
assert_raise(JSON::GeneratorError) do
- JSON.generate(["\x80"])
+ JSON.generate(["\x80"], :ascii_only => true)
end
assert_equal "\302\200", JSON.parse('["\u0080"]').first
end
diff --git a/test/logger/test_logger.rb b/test/logger/test_logger.rb
index a6c132d0f3..0736314b1a 100644
--- a/test/logger/test_logger.rb
+++ b/test/logger/test_logger.rb
@@ -6,9 +6,9 @@ require 'tempfile'
class TestLoggerSeverity < Test::Unit::TestCase
def test_enum
logger_levels = Logger.constants
- levels = [:WARN, :UNKNOWN, :INFO, :FATAL, :DEBUG, :ERROR]
+ levels = ["WARN", "UNKNOWN", "INFO", "FATAL", "DEBUG", "ERROR"]
Logger::Severity.constants.each do |level|
- assert(levels.include?(level))
+ assert(levels.include?(level.to_s))
assert(logger_levels.include?(level))
end
assert_equal(levels.size, Logger::Severity.constants.size)
@@ -21,16 +21,19 @@ class TestLogger < Test::Unit::TestCase
def setup
@logger = Logger.new(nil)
+ @filename = __FILE__ + ".#{$$}"
end
- def test_const_progname
- assert %r!\Alogger\.rb/\S+\z! === Logger::ProgName
+ def teardown
+ unless $DEBUG
+ File.unlink(@filename) if File.exist?(@filename)
+ end
end
class Log
attr_reader :label, :datetime, :pid, :severity, :progname, :msg
def initialize(line)
- /\A(\w+), \[([^#]*)#(\d+)\]\s+(\w+) -- (\w*): ([\x0-\xff]*)/n =~ line
+ /\A(\w+), \[([^#]*)#(\d+)\]\s+(\w+) -- (\w*): ([\x0-\xff]*)/ =~ line
@label, @datetime, @pid, @severity, @progname, @msg = $1, $2, $3, $4, $5, $6
end
end
@@ -262,27 +265,59 @@ class TestLogger < Test::Unit::TestCase
end
class TestLogDevice < Test::Unit::TestCase
- def d(log)
- Logger::LogDevice.new(log)
+ class LogExcnRaiser
+ def write(*arg)
+ raise 'disk is full'
+ end
+
+ def close
+ end
+
+ def stat
+ Object.new
+ end
+ end
+
+ def setup
+ @filename = __FILE__ + ".#{$$}"
+ end
+
+ def teardown
+ unless $DEBUG
+ File.unlink(@filename) if File.exist?(@filename)
+ end
+ end
+
+ def d(log, opt = {})
+ Logger::LogDevice.new(log, opt)
end
def test_initialize
logdev = d(STDERR)
assert_equal(STDERR, logdev.dev)
assert_nil(logdev.filename)
- assert_raise(TypeError) do
+ assert_raises(TypeError) do
d(nil)
end
#
- filename = __FILE__ + ".#{$$}"
+ logdev = d(@filename)
begin
- logdev = d(filename)
- assert(File.exist?(filename))
+ assert(File.exist?(@filename))
assert(logdev.dev.sync)
- assert_equal(filename, logdev.filename)
+ assert_equal(@filename, logdev.filename)
+ logdev.write('hello')
+ ensure
+ logdev.close
+ end
+ # create logfile whitch is already exist.
+ logdev = d(@filename)
+ begin
+ logdev.write('world')
+ logfile = File.read(@filename)
+ assert_equal(2, logfile.split(/\n/).size)
+ assert_match(/^helloworld$/, logfile)
ensure
logdev.close
- File.unlink(filename)
end
end
@@ -295,6 +330,21 @@ class TestLogDevice < Test::Unit::TestCase
msg = r.read
r.close
assert_equal("msg2\n\n", msg)
+ #
+ logdev = d(LogExcnRaiser.new)
+ class << (stderr = '')
+ alias write <<
+ end
+ $stderr, stderr = stderr, $stderr
+ begin
+ assert_nothing_raised do
+ logdev.write('hello')
+ end
+ ensure
+ logdev.close
+ $stderr, stderr = stderr, $stderr
+ end
+ assert_equal "log writing failed. disk is full\n", stderr
end
def test_close
@@ -377,4 +427,101 @@ class TestLogDevice < Test::Unit::TestCase
File.unlink(logfile1)
File.unlink(logfile2)
end
+
+ def test_shifting_age_variants
+ logger = Logger.new(@filename, 'daily')
+ logger.info('daily')
+ logger.close
+ logger = Logger.new(@filename, 'weekly')
+ logger.info('weekly')
+ logger.close
+ logger = Logger.new(@filename, 'monthly')
+ logger.info('monthly')
+ logger.close
+ end
+
+ def test_shifting_age
+ # shift_age other than 'daily', 'weekly', and 'monthly' means 'everytime'
+ yyyymmdd = Time.now.strftime("%Y%m%d")
+ filename1 = @filename + ".#{yyyymmdd}"
+ filename2 = @filename + ".#{yyyymmdd}.1"
+ filename3 = @filename + ".#{yyyymmdd}.2"
+ begin
+ logger = Logger.new(@filename, 'now')
+ assert(File.exist?(@filename))
+ assert(!File.exist?(filename1))
+ assert(!File.exist?(filename2))
+ assert(!File.exist?(filename3))
+ logger.info("0" * 15)
+ assert(File.exist?(@filename))
+ assert(File.exist?(filename1))
+ assert(!File.exist?(filename2))
+ assert(!File.exist?(filename3))
+ logger.warn("0" * 15)
+ assert(File.exist?(@filename))
+ assert(File.exist?(filename1))
+ assert(File.exist?(filename2))
+ assert(!File.exist?(filename3))
+ logger.error("0" * 15)
+ assert(File.exist?(@filename))
+ assert(File.exist?(filename1))
+ assert(File.exist?(filename2))
+ assert(File.exist?(filename3))
+ ensure
+ logger.close if logger
+ [filename1, filename2, filename3].each do |filename|
+ File.unlink(filename) if File.exist?(filename)
+ end
+ end
+ end
+end
+
+
+class TestLoggerApplication < Test::Unit::TestCase
+ def setup
+ @app = Logger::Application.new('appname')
+ @filename = __FILE__ + ".#{$$}"
+ end
+
+ def teardown
+ unless $DEBUG
+ File.unlink(@filename) if File.exist?(@filename)
+ end
+ end
+
+ def test_initialize
+ app = Logger::Application.new('appname')
+ assert_equal('appname', app.appname)
+ end
+
+ def test_start
+ @app.set_log(@filename)
+ begin
+ @app.level = Logger::UNKNOWN
+ @app.start # logs FATAL log
+ assert_equal(1, File.read(@filename).split(/\n/).size)
+ ensure
+ @app.logger.close
+ end
+ end
+
+ def test_logger
+ @app.level = Logger::WARN
+ @app.set_log(@filename)
+ begin
+ assert_equal(Logger::WARN, @app.logger.level)
+ ensure
+ @app.logger.close
+ end
+ @app.logger = logger = Logger.new(STDOUT)
+ assert_equal(logger, @app.logger)
+ assert_equal(Logger::WARN, @app.logger.level)
+ @app.log = @filename
+ begin
+ assert(logger != @app.logger)
+ assert_equal(Logger::WARN, @app.logger.level)
+ ensure
+ @app.logger.close
+ end
+ end
end
diff --git a/test/matrix/test_matrix.rb b/test/matrix/test_matrix.rb
index 0850117b86..26248e5746 100644
--- a/test/matrix/test_matrix.rb
+++ b/test/matrix/test_matrix.rb
@@ -10,6 +10,15 @@ class TestMatrix < Test::Unit::TestCase
@n1 = Matrix[[2,3,4], [5,6,7]]
end
+ def test_matrix
+ assert_equal(1, @m1[0, 0])
+ assert_equal(2, @m1[0, 1])
+ assert_equal(3, @m1[0, 2])
+ assert_equal(4, @m1[1, 0])
+ assert_equal(5, @m1[1, 1])
+ assert_equal(6, @m1[1, 2])
+ end
+
def test_identity
assert_same @m1, @m1
assert_not_same @m1, @m2
@@ -46,4 +55,372 @@ class TestMatrix < Test::Unit::TestCase
assert_equal @m1.hash, @m2.hash
assert_equal @m1.hash, @m3.hash
end
+
+ def test_rank
+ [
+ [[0]],
+ [[0], [0]],
+ [[0, 0], [0, 0]],
+ [[0, 0], [0, 0], [0, 0]],
+ [[0, 0, 0]],
+ [[0, 0, 0], [0, 0, 0]],
+ [[0, 0, 0], [0, 0, 0], [0, 0, 0]],
+ [[0, 0, 0], [0, 0, 0], [0, 0, 0], [0, 0, 0]],
+ ].each do |rows|
+ assert_equal 0, Matrix[*rows].rank
+ end
+
+ [
+ [[1], [0]],
+ [[1, 0], [0, 0]],
+ [[1, 0], [1, 0]],
+ [[0, 0], [1, 0]],
+ [[1, 0], [0, 0], [0, 0]],
+ [[0, 0], [1, 0], [0, 0]],
+ [[0, 0], [0, 0], [1, 0]],
+ [[1, 0], [1, 0], [0, 0]],
+ [[0, 0], [1, 0], [1, 0]],
+ [[1, 0], [1, 0], [1, 0]],
+ [[1, 0, 0]],
+ [[1, 0, 0], [0, 0, 0]],
+ [[0, 0, 0], [1, 0, 0]],
+ [[1, 0, 0], [1, 0, 0]],
+ [[1, 0, 0], [1, 0, 0]],
+ [[1, 0, 0], [0, 0, 0], [0, 0, 0]],
+ [[0, 0, 0], [1, 0, 0], [0, 0, 0]],
+ [[0, 0, 0], [0, 0, 0], [1, 0, 0]],
+ [[1, 0, 0], [1, 0, 0], [0, 0, 0]],
+ [[0, 0, 0], [1, 0, 0], [1, 0, 0]],
+ [[1, 0, 0], [0, 0, 0], [1, 0, 0]],
+ [[1, 0, 0], [1, 0, 0], [1, 0, 0]],
+ [[1, 0, 0], [0, 0, 0], [0, 0, 0], [0, 0, 0]],
+ [[1, 0, 0], [0, 0, 0], [0, 0, 0], [0, 0, 0]],
+ [[1, 0, 0], [1, 0, 0], [0, 0, 0], [0, 0, 0]],
+ [[1, 0, 0], [0, 0, 0], [1, 0, 0], [0, 0, 0]],
+ [[1, 0, 0], [0, 0, 0], [0, 0, 0], [1, 0, 0]],
+ [[1, 0, 0], [1, 0, 0], [1, 0, 0], [0, 0, 0]],
+ [[1, 0, 0], [0, 0, 0], [1, 0, 0], [1, 0, 0]],
+ [[1, 0, 0], [1, 0, 0], [0, 0, 0], [1, 0, 0]],
+ [[1, 0, 0], [1, 0, 0], [1, 0, 0], [1, 0, 0]],
+
+ [[1]],
+ [[1], [1]],
+ [[1, 1]],
+ [[1, 1], [1, 1]],
+ [[1, 1], [1, 1], [1, 1]],
+ [[1, 1, 1]],
+ [[1, 1, 1], [1, 1, 1]],
+ [[1, 1, 1], [1, 1, 1], [1, 1, 1]],
+ [[1, 1, 1], [1, 1, 1], [1, 1, 1], [1, 1, 1]],
+ ].each do |rows|
+ matrix = Matrix[*rows]
+ assert_equal 1, matrix.rank
+ assert_equal 1, matrix.transpose.rank
+ end
+
+ [
+ [[1, 0], [0, 1]],
+ [[1, 0], [0, 1], [0, 0]],
+ [[1, 0], [0, 1], [0, 1]],
+ [[1, 0], [0, 1], [1, 1]],
+ [[1, 0, 0], [0, 1, 0]],
+ [[1, 0, 0], [0, 0, 1]],
+ [[1, 0, 0], [0, 1, 0], [0, 0, 0]],
+ [[1, 0, 0], [0, 0, 1], [0, 0, 0]],
+
+ [[1, 0, 0], [0, 0, 0], [0, 1, 0]],
+ [[1, 0, 0], [0, 0, 0], [0, 0, 1]],
+
+ [[1, 0], [1, 1]],
+ [[1, 2], [1, 1]],
+ [[1, 2], [0, 1], [1, 1]],
+ ].each do |rows|
+ m = Matrix[*rows]
+ assert_equal 2, m.rank
+ assert_equal 2, m.transpose.rank
+ end
+
+ [
+ [[1, 0, 0], [0, 1, 0], [0, 0, 1]],
+ [[1, 1, 0], [0, 1, 1], [1, 0, 1]],
+ [[1, 1, 0], [0, 1, 1], [1, 0, 1]],
+ [[1, 1, 0], [0, 1, 1], [1, 0, 1], [0, 0, 0]],
+ [[1, 1, 0], [0, 1, 1], [1, 0, 1], [1, 1, 1]],
+ [[1, 1, 1], [1, 1, 2], [1, 3, 1], [4, 1, 1]],
+ ].each do |rows|
+ m = Matrix[*rows]
+ assert_equal 3, m.rank
+ assert_equal 3, m.transpose.rank
+ end
+ end
+
+ def test_inverse
+ assert_equal(Matrix[[-1, 1], [0, -1]], Matrix[[-1, -1], [0, -1]].inverse)
+ end
+
+ def test_determinant
+ assert_equal(45, Matrix[[7,6], [3,9]].determinant)
+ assert_equal(-18, Matrix[[2,0,1],[0,-2,2],[1,2,3]].determinant)
+ end
+
+ def test_new_matrix
+ assert_raise(TypeError) { Matrix[Object.new] }
+ o = Object.new
+ def o.to_ary; [1,2,3]; end
+ assert_equal(@m1, Matrix[o, [4,5,6]])
+ end
+
+ def test_rows
+ assert_equal(@m1, Matrix.rows([[1, 2, 3], [4, 5, 6]]))
+ end
+
+ def test_columns
+ assert_equal(@m1, Matrix.columns([[1, 4], [2, 5], [3, 6]]))
+ end
+
+ def test_diagonal
+ assert_equal(Matrix[[3,0,0],[0,2,0],[0,0,1]], Matrix.diagonal(3, 2, 1))
+ assert_equal(Matrix[[4,0,0,0],[0,3,0,0],[0,0,2,0],[0,0,0,1]], Matrix.diagonal(4, 3, 2, 1))
+ end
+
+ def test_scalar
+ assert_equal(Matrix[[2,0,0],[0,2,0],[0,0,2]], Matrix.scalar(3, 2))
+ assert_equal(Matrix[[2,0,0,0],[0,2,0,0],[0,0,2,0],[0,0,0,2]], Matrix.scalar(4, 2))
+ end
+
+ def test_identity2
+ assert_equal(Matrix[[1,0,0],[0,1,0],[0,0,1]], Matrix.identity(3))
+ assert_equal(Matrix[[1,0,0],[0,1,0],[0,0,1]], Matrix.unit(3))
+ assert_equal(Matrix[[1,0,0],[0,1,0],[0,0,1]], Matrix.I(3))
+ assert_equal(Matrix[[1,0,0,0],[0,1,0,0],[0,0,1,0],[0,0,0,1]], Matrix.identity(4))
+ end
+
+ def test_zero
+ assert_equal(Matrix[[0,0,0],[0,0,0],[0,0,0]], Matrix.zero(3))
+ assert_equal(Matrix[[0,0,0,0],[0,0,0,0],[0,0,0,0],[0,0,0,0]], Matrix.zero(4))
+ assert_equal(Matrix[[0]], Matrix.zero(1))
+ end
+
+ def test_row_vector
+ assert_equal(Matrix[[1,2,3,4]], Matrix.row_vector([1,2,3,4]))
+ end
+
+ def test_column_vector
+ assert_equal(Matrix[[1],[2],[3],[4]], Matrix.column_vector([1,2,3,4]))
+ end
+
+ def test_empty
+ m = Matrix.empty(2, 0)
+ assert_equal(Matrix[ [], [] ], m)
+ n = Matrix.empty(0, 3)
+ assert_equal(Matrix.columns([ [], [], [] ]), n)
+ assert_equal(Matrix[[0, 0, 0], [0, 0, 0]], m * n)
+ end
+
+ def test_row
+ assert_equal(Vector[1, 2, 3], @m1.row(0))
+ assert_equal(Vector[4, 5, 6], @m1.row(1))
+ a = []; @m1.row(0) {|x| a << x }
+ assert_equal([1, 2, 3], a)
+ end
+
+ def test_column
+ assert_equal(Vector[1, 4], @m1.column(0))
+ assert_equal(Vector[2, 5], @m1.column(1))
+ assert_equal(Vector[3, 6], @m1.column(2))
+ a = []; @m1.column(0) {|x| a << x }
+ assert_equal([1, 4], a)
+ end
+
+ def test_collect
+ assert_equal(Matrix[[1, 4, 9], [16, 25, 36]], @m1.collect {|x| x ** 2 })
+ end
+
+ def test_minor
+ assert_equal(Matrix[[1, 2], [4, 5]], @m1.minor(0..1, 0..1))
+ assert_equal(Matrix[[2], [5]], @m1.minor(0..1, 1..1))
+ assert_equal(Matrix[[4, 5]], @m1.minor(1..1, 0..1))
+ assert_equal(Matrix[[1, 2], [4, 5]], @m1.minor(0, 2, 0, 2))
+ assert_equal(Matrix[[4, 5]], @m1.minor(1, 1, 0, 2))
+ assert_equal(Matrix[[2], [5]], @m1.minor(0, 2, 1, 1))
+ assert_raise(ArgumentError) { @m1.minor(0) }
+ end
+
+ def test_regular?
+ assert(Matrix[[1, 0], [0, 1]].regular?)
+ assert(Matrix[[1, 0, 0], [0, 1, 0], [0, 0, 1]].regular?)
+ assert(!Matrix[[1, 0, 0], [0, 0, 1], [0, 0, 1]].regular?)
+ end
+
+ def test_singular?
+ assert(!Matrix[[1, 0], [0, 1]].singular?)
+ assert(!Matrix[[1, 0, 0], [0, 1, 0], [0, 0, 1]].singular?)
+ assert(Matrix[[1, 0, 0], [0, 0, 1], [0, 0, 1]].singular?)
+ end
+
+ def test_square?
+ assert(Matrix[[1, 0], [0, 1]].square?)
+ assert(Matrix[[1, 0, 0], [0, 1, 0], [0, 0, 1]].square?)
+ assert(Matrix[[1, 0, 0], [0, 0, 1], [0, 0, 1]].square?)
+ assert(!Matrix[[1, 0, 0], [0, 1, 0]].square?)
+ end
+
+ def test_mul
+ assert_equal(Matrix[[2,4],[6,8]], Matrix[[2,4],[6,8]] * Matrix.I(2))
+ assert_equal(Matrix[[4,8],[12,16]], Matrix[[2,4],[6,8]] * 2)
+ assert_equal(Matrix[[4,8],[12,16]], 2 * Matrix[[2,4],[6,8]])
+ assert_equal(Matrix[[14,32],[32,77]], @m1 * @m1.transpose)
+ assert_equal(Matrix[[17,22,27],[22,29,36],[27,36,45]], @m1.transpose * @m1)
+ assert_equal(Vector[14,32], @m1 * Vector[1,2,3])
+ o = Object.new
+ def o.coerce(m)
+ [m, m.transpose]
+ end
+ assert_equal(Matrix[[14,32],[32,77]], @m1 * o)
+ end
+
+ def test_add
+ assert_equal(Matrix[[6,0],[-4,12]], Matrix.scalar(2,5) + Matrix[[1,0],[-4,7]])
+ assert_equal(Matrix[[3,5,7],[9,11,13]], @m1 + @n1)
+ assert_equal(Matrix[[3,5,7],[9,11,13]], @n1 + @m1)
+ assert_equal(Matrix[[2],[4],[6]], Matrix[[1],[2],[3]] + Vector[1,2,3])
+ assert_raise(Matrix::ErrOperationNotDefined) { @m1 + 1 }
+ o = Object.new
+ def o.coerce(m)
+ [m, m]
+ end
+ assert_equal(Matrix[[2,4,6],[8,10,12]], @m1 + o)
+ end
+
+ def test_sub
+ assert_equal(Matrix[[4,0],[4,-2]], Matrix.scalar(2,5) - Matrix[[1,0],[-4,7]])
+ assert_equal(Matrix[[-1,-1,-1],[-1,-1,-1]], @m1 - @n1)
+ assert_equal(Matrix[[1,1,1],[1,1,1]], @n1 - @m1)
+ assert_equal(Matrix[[0],[0],[0]], Matrix[[1],[2],[3]] - Vector[1,2,3])
+ assert_raise(Matrix::ErrOperationNotDefined) { @m1 - 1 }
+ o = Object.new
+ def o.coerce(m)
+ [m, m]
+ end
+ assert_equal(Matrix[[0,0,0],[0,0,0]], @m1 - o)
+ end
+
+ def test_div
+ assert_equal(Matrix[[0,1,1],[2,2,3]], @m1 / 2)
+ assert_equal(Matrix[[1,1],[1,1]], Matrix[[2,2],[2,2]] / Matrix.scalar(2,2))
+ o = Object.new
+ def o.coerce(m)
+ [m, Matrix.scalar(2,2)]
+ end
+ assert_equal(Matrix[[1,1],[1,1]], Matrix[[2,2],[2,2]] / o)
+ end
+
+ def test_exp
+ assert_equal(Matrix[[67,96],[48,99]], Matrix[[7,6],[3,9]] ** 2)
+ assert_equal(Matrix.I(5), Matrix.I(5) ** -1)
+ assert_raise(Matrix::ErrOperationNotDefined) { Matrix.I(5) ** Object.new }
+ end
+
+ def test_det
+ assert_equal(45, Matrix[[7,6],[3,9]].det)
+ assert_equal(0, Matrix[[0,0],[0,0]].det)
+ assert_equal(-7, Matrix[[0,0,1],[0,7,6],[1,3,9]].det)
+ assert_equal(42, Matrix[[7,0,1,0,12],[8,1,1,9,1],[4,0,0,-7,17],[-1,0,0,-4,8],[10,1,1,8,6]].det)
+ end
+
+ def test_rank2
+ assert_equal(2, Matrix[[7,6],[3,9]].rank)
+ assert_equal(0, Matrix[[0,0],[0,0]].rank)
+ assert_equal(3, Matrix[[0,0,1],[0,7,6],[1,3,9]].rank)
+ assert_equal(1, Matrix[[0,1],[0,1],[0,1]].rank)
+ assert_equal(2, @m1.rank)
+ end
+
+ def test_trace
+ assert_equal(1+5+9, Matrix[[1,2,3],[4,5,6],[7,8,9]].trace)
+ end
+
+ def test_transpose
+ assert_equal(Matrix[[1,4],[2,5],[3,6]], @m1.transpose)
+ end
+
+ def test_row_vectors
+ assert_equal([Vector[1,2,3], Vector[4,5,6]], @m1.row_vectors)
+ end
+
+ def test_column_vectors
+ assert_equal([Vector[1,4], Vector[2,5], Vector[3,6]], @m1.column_vectors)
+ end
+
+ def test_to_s
+ assert_equal("Matrix[[1, 2, 3], [4, 5, 6]]", @m1.to_s)
+ assert_equal("Matrix.empty(0, 0)", Matrix[].to_s)
+ assert_equal("Matrix.empty(1, 0)", Matrix[[]].to_s)
+ end
+
+ def test_inspect
+ assert_equal("Matrix[[1, 2, 3], [4, 5, 6]]", @m1.inspect)
+ assert_equal("Matrix.empty(0, 0)", Matrix[].inspect)
+ assert_equal("Matrix.empty(1, 0)", Matrix[[]].inspect)
+ end
+
+ def test_scalar_add
+ s1 = @m1.coerce(1).first
+ assert_equal(Matrix[[1]], (s1 + 0) * Matrix[[1]])
+ assert_raise(Matrix::ErrOperationNotDefined) { s1 + Vector[0] }
+ assert_raise(Matrix::ErrOperationNotDefined) { s1 + Matrix[[0]] }
+ o = Object.new
+ def o.coerce(x)
+ [1, 1]
+ end
+ assert_equal(2, s1 + o)
+ end
+
+ def test_scalar_sub
+ s1 = @m1.coerce(1).first
+ assert_equal(Matrix[[1]], (s1 - 0) * Matrix[[1]])
+ assert_raise(Matrix::ErrOperationNotDefined) { s1 - Vector[0] }
+ assert_raise(Matrix::ErrOperationNotDefined) { s1 - Matrix[[0]] }
+ o = Object.new
+ def o.coerce(x)
+ [1, 1]
+ end
+ assert_equal(0, s1 - o)
+ end
+
+ def test_scalar_mul
+ s1 = @m1.coerce(1).first
+ assert_equal(Matrix[[1]], (s1 * 1) * Matrix[[1]])
+ assert_equal(Vector[2], s1 * Vector[2])
+ assert_equal(Matrix[[2]], s1 * Matrix[[2]])
+ o = Object.new
+ def o.coerce(x)
+ [1, 1]
+ end
+ assert_equal(1, s1 * o)
+ end
+
+ def test_scalar_div
+ s1 = @m1.coerce(1).first
+ assert_equal(Matrix[[1]], (s1 / 1) * Matrix[[1]])
+ assert_raise(Matrix::ErrOperationNotDefined) { s1 / Vector[0] }
+ assert_equal(Matrix[[Rational(1,2)]], s1 / Matrix[[2]])
+ o = Object.new
+ def o.coerce(x)
+ [1, 1]
+ end
+ assert_equal(1, s1 / o)
+ end
+
+ def test_scalar_pow
+ s1 = @m1.coerce(1).first
+ assert_equal(Matrix[[1]], (s1 ** 1) * Matrix[[1]])
+ assert_raise(Matrix::ErrOperationNotDefined) { s1 ** Vector[0] }
+ assert_raise(Matrix::ErrOperationNotImplemented) { s1 ** Matrix[[1]] }
+ o = Object.new
+ def o.coerce(x)
+ [1, 1]
+ end
+ assert_equal(1, s1 ** o)
+ end
end
diff --git a/test/matrix/test_vector.rb b/test/matrix/test_vector.rb
index 95a39693fc..582509fd20 100644
--- a/test/matrix/test_vector.rb
+++ b/test/matrix/test_vector.rb
@@ -46,4 +46,89 @@ class TestVector < Test::Unit::TestCase
assert_equal @v1.hash, @v2.hash
assert_equal @v1.hash, @v3.hash
end
+
+ def test_aref
+ assert_equal(1, @v1[0])
+ assert_equal(2, @v1[1])
+ assert_equal(3, @v1[2])
+ assert_equal(3, @v1[-1])
+ assert_equal(nil, @v1[3])
+ end
+
+ def test_size
+ assert_equal(3, @v1.size)
+ end
+
+ def test_each2
+ a = []
+ @v1.each2(@v4) {|x, y| a << [x, y] }
+ assert_equal([[1,1.0],[2,2.0],[3,3.0]], a)
+ end
+
+ def test_collect
+ a = @v1.collect {|x| x + 1 }
+ assert_equal(Vector[2,3,4], a)
+ end
+
+ def test_collect2
+ a = @v1.collect2(@v4) {|x, y| x + y }
+ assert_equal([2.0,4.0,6.0], a)
+ end
+
+ def test_map2
+ a = @v1.map2(@v4) {|x, y| x + y }
+ assert_equal(Vector[2.0,4.0,6.0], a)
+ end
+
+ def test_mul
+ assert_equal(Vector[2,4,6], @v1 * 2)
+ assert_equal(Matrix[[1, 4, 9], [2, 8, 18], [3, 12, 27]], @v1 * Matrix[[1,4,9]])
+ assert_raise(Matrix::ErrOperationNotDefined) { @v1 * Vector[1,4,9] }
+ o = Object.new
+ def o.coerce(x)
+ [1, 1]
+ end
+ assert_equal(1, Vector[1, 2, 3] * o)
+ end
+
+ def test_add
+ assert_equal(Vector[2,4,6], @v1 + @v1)
+ assert_equal(Matrix[[2],[6],[12]], @v1 + Matrix[[1],[4],[9]])
+ o = Object.new
+ def o.coerce(x)
+ [1, 1]
+ end
+ assert_equal(2, Vector[1, 2, 3] + o)
+ end
+
+ def test_sub
+ assert_equal(Vector[0,0,0], @v1 - @v1)
+ assert_equal(Matrix[[0],[-2],[-6]], @v1 - Matrix[[1],[4],[9]])
+ o = Object.new
+ def o.coerce(x)
+ [1, 1]
+ end
+ assert_equal(0, Vector[1, 2, 3] - o)
+ end
+
+ def test_inner_product
+ assert_equal(1+4+9, @v1.inner_product(@v1))
+ end
+
+ def test_r
+ assert_equal(5, Vector[3, 4].r)
+ end
+
+ def test_covector
+ assert_equal(Matrix[[1,2,3]], @v1.covector)
+ end
+
+ def test_to_s
+ assert_equal("Vector[1, 2, 3]", @v1.to_s)
+ end
+
+ def test_inspect
+ assert_equal("Vector[1, 2, 3]", @v1.inspect)
+ end
+
end
diff --git a/test/minitest/test_mini_mock.rb b/test/minitest/test_mini_mock.rb
deleted file mode 100644
index 0f16ae930e..0000000000
--- a/test/minitest/test_mini_mock.rb
+++ /dev/null
@@ -1,83 +0,0 @@
-############################################################
-# This file is imported from a different project.
-# DO NOT make modifications in this repo.
-# File a patch instead and assign it to Ryan Davis
-############################################################
-
-require 'minitest/mock'
-require 'minitest/unit'
-
-MiniTest::Unit.autorun
-
-class TestMiniMock < MiniTest::Unit::TestCase
- def setup
- @mock = MiniTest::Mock.new.expect(:foo, nil)
- @mock.expect(:meaning_of_life, 42)
- end
-
- def test_should_create_stub_method
- assert_nil @mock.foo
- end
-
- def test_should_allow_return_value_specification
- assert_equal 42, @mock.meaning_of_life
- end
-
- def test_should_blow_up_if_not_called
- @mock.foo
-
- util_verify_bad
- end
-
- def test_should_not_blow_up_if_everything_called
- @mock.foo
- @mock.meaning_of_life
-
- assert @mock.verify
- end
-
- def test_should_allow_expectations_to_be_added_after_creation
- @mock.expect(:bar, true)
- assert @mock.bar
- end
-
- def test_should_not_verify_if_new_expected_method_is_not_called
- @mock.foo
- @mock.meaning_of_life
- @mock.expect(:bar, true)
-
- util_verify_bad
- end
-
- def test_should_not_verify_if_unexpected_method_is_called
- assert_raises NoMethodError do
- @mock.unexpected
- end
- end
-
- def test_should_blow_up_on_wrong_number_of_arguments
- @mock.foo
- @mock.meaning_of_life
- @mock.expect(:sum, 3, [1, 2])
-
- assert_raises ArgumentError do
- @mock.sum
- end
- end
-
- def test_should_blow_up_on_wrong_arguments
- @mock.foo
- @mock.meaning_of_life
- @mock.expect(:sum, 3, [1, 2])
-
- @mock.sum(2, 4)
-
- util_verify_bad
- end
-
- def util_verify_bad
- assert_raises MockExpectationError do
- @mock.verify
- end
- end
-end
diff --git a/test/minitest/test_mini_spec.rb b/test/minitest/test_mini_spec.rb
deleted file mode 100644
index 89c552308f..0000000000
--- a/test/minitest/test_mini_spec.rb
+++ /dev/null
@@ -1,169 +0,0 @@
-############################################################
-# This file is imported from a different project.
-# DO NOT make modifications in this repo.
-# File a patch instead and assign it to Ryan Davis
-############################################################
-
-require 'minitest/spec'
-
-MiniTest::Unit.autorun
-
-describe MiniTest::Spec do
- before do
- @assertion_count = 4
- end
-
- after do
- self._assertions.must_equal @assertion_count
- end
-
- it "needs to have all methods named well" do
- @assertion_count = 2
-
- methods = Object.public_instance_methods.find_all { |n| n =~ /^must|^wont/ }
- methods.map! { |m| m.to_s } if Symbol === methods.first
-
- musts, wonts = methods.sort.partition { |m| m =~ /^must/ }
-
- expected_musts = %w(must_be
- must_be_close_to
- must_be_empty
- must_be_instance_of
- must_be_kind_of
- must_be_nil
- must_be_same_as
- must_be_within_delta
- must_be_within_epsilon
- must_equal
- must_include
- must_match
- must_raise
- must_respond_to
- must_send
- must_throw)
-
- expected_wonts = expected_musts.map { |m| m.sub(/^must/, 'wont') }
- expected_wonts.reject! { |m| m =~ /wont_(not|raise|throw|send)/ }
-
- musts.must_equal expected_musts
- wonts.must_equal expected_wonts
- end
-
- it "needs to verify equality" do
- (6 * 7).must_equal(42).must_equal true
- proc { (6 * 9).must_equal(42) }.must_raise MiniTest::Assertion
- end
-
- it "needs to verify floats within a delta" do
- (6.0 * 7).must_be_close_to(42.0).must_equal true
- proc { 42.002.must_be_close_to 42.0 }.must_raise MiniTest::Assertion
- end
-
- it "needs to verify types of objects" do
- (6 * 7).must_be_instance_of(Fixnum).must_equal true
- proc { (6 * 7).must_be_instance_of String }.must_raise MiniTest::Assertion
- end
-
- it "needs to verify kinds of objects" do
- @assertion_count = 6
-
- (6 * 7).must_be_kind_of(Fixnum).must_equal true
- (6 * 7).must_be_kind_of(Numeric).must_equal true
- proc { (6 * 7).must_be_kind_of String }.must_raise MiniTest::Assertion
- end
-
- it "needs to verify regexp matches" do
- @assertion_count = 6
-
- "blah".must_match(/\w+/).must_equal true
- proc { "blah".must_match(/\d+/) }.must_raise MiniTest::Assertion
- end
-
- it "needs to verify nil" do
- nil.must_be_nil.must_equal true
- proc { 42.must_be_nil }.must_raise MiniTest::Assertion
- end
-
- it "needs to verify using any operator" do
- 41.must_be(:<, 42).must_equal true
- proc { 42.must_be(:<, 41) }.must_raise MiniTest::Assertion
- end
-
- it "needs to catch an expected exception" do
- @assertion_count = 2
-
- proc { raise "blah" }.must_raise RuntimeError
- proc { raise MiniTest::Assertion }.must_raise MiniTest::Assertion
- end
-
- it "needs to catch an unexpected exception" do
- @assertion_count = 2
-
- proc {
- proc { raise MiniTest::Assertion }.must_raise(RuntimeError)
- }.must_raise MiniTest::Assertion
- end
-
- it "needs raise if an expected exception is not raised" do
- @assertion_count = 2
-
- proc { proc { 42 }.must_raise(RuntimeError) }.must_raise MiniTest::Assertion
- end
-
- it "needs to be able to catch a MiniTest::Assertion exception" do
- @assertion_count = 2
-
- proc { 1.wont_equal 1 }.must_raise MiniTest::Assertion
- end
-
- it "needs to verify using respond_to" do
- 42.must_respond_to(:+).must_equal true
- proc { 42.must_respond_to(:clear) }.must_raise MiniTest::Assertion
- end
-
- it "needs to verify identity" do
- 1.must_be_same_as(1).must_equal true
- proc { 1.must_be_same_as 2 }.must_raise MiniTest::Assertion
- end
-
- it "needs to verify throw" do
- @assertion_count = 6
-
- proc { throw :blah }.must_throw(:blah).must_equal true
- proc { proc { }.must_throw(:blah) }.must_raise MiniTest::Assertion
- proc { proc { throw :xxx }.must_throw(:blah) }.must_raise MiniTest::Assertion
- end
-
- it "needs to verify inequality" do
- 42.wont_equal(6 * 9).must_equal false
- proc { 1.wont_equal 1 }.must_raise MiniTest::Assertion
- end
-
- it "needs to verify mismatch" do
- @assertion_count = 6
- "blah".wont_match(/\d+/).must_equal false
- proc { "blah".wont_match(/\w+/) }.must_raise MiniTest::Assertion
- end
-
- it "needs to verify non-nil" do
- 42.wont_be_nil.must_equal false
- proc { nil.wont_be_nil }.must_raise MiniTest::Assertion
- end
-
- it "needs to verify non-identity" do
- 1.wont_be_same_as(2).must_equal false
- proc { 1.wont_be_same_as 1 }.must_raise MiniTest::Assertion
- end
-
- it "needs to be sensible about must_include order" do
- @assertion_count = 6
- [1, 2, 3].must_include(2).must_equal true
- proc { [1, 2, 3].must_include 5 }.must_raise MiniTest::Assertion
- end
-
- it "needs to be sensible about wont_include order" do
- @assertion_count = 6
- [1, 2, 3].wont_include(5).must_equal false
- proc { [1, 2, 3].wont_include 2 }.must_raise MiniTest::Assertion
- end
-end
diff --git a/test/minitest/test_minitest_benchmark.rb b/test/minitest/test_minitest_benchmark.rb
new file mode 100644
index 0000000000..cdd7c3c640
--- /dev/null
+++ b/test/minitest/test_minitest_benchmark.rb
@@ -0,0 +1,119 @@
+######################################################################
+# This file is imported from the minitest project.
+# DO NOT make modifications in this repo. They _will_ be reverted!
+# File a patch instead and assign it to Ryan Davis.
+######################################################################
+
+require 'minitest/autorun'
+require 'minitest/benchmark'
+
+##
+# Used to verify data:
+# http://www.wolframalpha.com/examples/RegressionAnalysis.html
+
+class TestMiniTestBenchmark < MiniTest::Unit::TestCase
+ def test_cls_bench_exp
+ assert_equal [2, 4, 8, 16, 32], self.class.bench_exp(2, 32, 2)
+ end
+
+ def test_cls_bench_linear
+ assert_equal [2, 4, 6, 8, 10], self.class.bench_linear(2, 10, 2)
+ end
+
+ def test_cls_benchmark_methods
+ assert_equal [], self.class.benchmark_methods
+
+ c = Class.new(MiniTest::Unit::TestCase) do
+ def bench_blah
+ end
+ end
+
+ assert_equal ["bench_blah"], c.benchmark_methods
+ end
+
+ def test_cls_bench_range
+ assert_equal [1, 10, 100, 1_000, 10_000], self.class.bench_range
+ end
+
+ def test_fit_exponential_clean
+ x = [1.0, 2.0, 3.0, 4.0, 5.0]
+ y = x.map { |n| 1.1 * Math.exp(2.1 * n) }
+
+ assert_fit :exponential, x, y, 1.0, 1.1, 2.1
+ end
+
+ def test_fit_exponential_noisy
+ x = [1.0, 1.9, 2.6, 3.4, 5.0]
+ y = [12, 10, 8.2, 6.9, 5.9]
+
+ # verified with Numbers and R
+ assert_fit :exponential, x, y, 0.95, 13.81148, -0.1820
+ end
+
+ def test_fit_constant_clean
+ x = (1..5).to_a
+ y = [5.0, 5.0, 5.0, 5.0, 5.0]
+
+ assert_fit :linear, x, y, nil, 5.0, 0
+ end
+
+ def test_fit_constant_noisy
+ x = (1..5).to_a
+ y = [1.0, 1.2, 1.0, 0.8, 1.0]
+
+ # verified in numbers and R
+ assert_fit :linear, x, y, nil, 1.12, -0.04
+ end
+
+ def test_fit_linear_clean
+ # y = m * x + b where m = 2.2, b = 3.1
+ x = (1..5).to_a
+ y = x.map { |n| 2.2 * n + 3.1 }
+
+ assert_fit :linear, x, y, 1.0, 3.1, 2.2
+ end
+
+ def test_fit_linear_noisy
+ x = [ 60, 61, 62, 63, 65]
+ y = [3.1, 3.6, 3.8, 4.0, 4.1]
+
+ # verified in numbers and R
+ assert_fit :linear, x, y, 0.8315, -7.9635, 0.1878
+ end
+
+ def test_fit_power_clean
+ # y = A x ** B, where B = b and A = e ** a
+ # if, A = 1, B = 2, then
+
+ x = [1.0, 2.0, 3.0, 4.0, 5.0]
+ y = [1.0, 4.0, 9.0, 16.0, 25.0]
+
+ assert_fit :power, x, y, 1.0, 1.0, 2.0
+ end
+
+ def test_fit_power_noisy
+ # from www.engr.uidaho.edu/thompson/courses/ME330/lecture/least_squares.html
+ x = [10, 12, 15, 17, 20, 22, 25, 27, 30, 32, 35]
+ y = [95, 105, 125, 141, 173, 200, 253, 298, 385, 459, 602]
+
+ # verified in numbers
+ assert_fit :power, x, y, 0.90, 2.6217, 1.4556
+
+ # income to % of households below income amount
+ # http://library.wolfram.com/infocenter/Conferences/6461/PowerLaws.nb
+ x = [15000, 25000, 35000, 50000, 75000, 100000]
+ y = [0.154, 0.283, 0.402, 0.55, 0.733, 0.843]
+
+ # verified in numbers
+ assert_fit :power, x, y, 0.96, 3.119e-5, 0.8959
+ end
+
+ def assert_fit msg, x, y, fit, exp_a, exp_b
+ a, b, rr = send "fit_#{msg}", x, y
+
+ assert_operator rr, :>=, fit if fit
+ assert_in_delta exp_a, a
+ assert_in_delta exp_b, b
+ end
+end
+
diff --git a/test/minitest/test_minitest_mock.rb b/test/minitest/test_minitest_mock.rb
new file mode 100644
index 0000000000..b6e801c3aa
--- /dev/null
+++ b/test/minitest/test_minitest_mock.rb
@@ -0,0 +1,154 @@
+######################################################################
+# This file is imported from the minitest project.
+# DO NOT make modifications in this repo. They _will_ be reverted!
+# File a patch instead and assign it to Ryan Davis.
+######################################################################
+
+require 'minitest/mock'
+require 'minitest/unit'
+
+MiniTest::Unit.autorun
+
+class TestMiniTestMock < MiniTest::Unit::TestCase
+ def setup
+ @mock = MiniTest::Mock.new.expect(:foo, nil)
+ @mock.expect(:meaning_of_life, 42)
+ end
+
+ def test_create_stub_method
+ assert_nil @mock.foo
+ end
+
+ def test_allow_return_value_specification
+ assert_equal 42, @mock.meaning_of_life
+ end
+
+ def test_blow_up_if_not_called
+ @mock.foo
+
+ util_verify_bad
+ end
+
+ def test_not_blow_up_if_everything_called
+ @mock.foo
+ @mock.meaning_of_life
+
+ assert @mock.verify
+ end
+
+ def test_allow_expectations_to_be_added_after_creation
+ @mock.expect(:bar, true)
+ assert @mock.bar
+ end
+
+ def test_not_verify_if_new_expected_method_is_not_called
+ @mock.foo
+ @mock.meaning_of_life
+ @mock.expect(:bar, true)
+
+ util_verify_bad
+ end
+
+ def test_blow_up_on_wrong_number_of_arguments
+ @mock.foo
+ @mock.meaning_of_life
+ @mock.expect(:sum, 3, [1, 2])
+
+ e = assert_raises ArgumentError do
+ @mock.sum
+ end
+
+ assert_equal "mocked method :sum expects 2 arguments, got 0", e.message
+ end
+
+ def test_return_mock_does_not_raise
+ retval = MiniTest::Mock.new
+ mock = MiniTest::Mock.new
+ mock.expect(:foo, retval)
+ mock.foo
+
+ assert mock.verify
+ end
+
+ def test_mock_args_does_not_raise
+ arg = MiniTest::Mock.new
+ mock = MiniTest::Mock.new
+ mock.expect(:foo, nil, [arg])
+ mock.foo(arg)
+
+ assert mock.verify
+ end
+
+ def test_blow_up_on_wrong_arguments
+ @mock.foo
+ @mock.meaning_of_life
+ @mock.expect(:sum, 3, [1, 2])
+
+ @mock.sum(2, 4)
+
+ util_verify_bad
+ end
+
+ def test_respond_appropriately
+ assert @mock.respond_to?(:foo)
+ assert !@mock.respond_to?(:bar)
+ end
+
+ def test_no_method_error_on_unexpected_methods
+ e = assert_raises NoMethodError do
+ @mock.bar
+ end
+
+ expected = "unmocked method :bar, expected one of [:foo, :meaning_of_life]"
+
+ assert_equal expected, e.message
+ end
+
+ def test_assign_per_mock_return_values
+ a = MiniTest::Mock.new
+ b = MiniTest::Mock.new
+
+ a.expect(:foo, :a)
+ b.expect(:foo, :b)
+
+ assert_equal :a, a.foo
+ assert_equal :b, b.foo
+ end
+
+ def test_do_not_create_stub_method_on_new_mocks
+ a = MiniTest::Mock.new
+ a.expect(:foo, :a)
+
+ assert !MiniTest::Mock.new.respond_to?(:foo)
+ end
+
+ def test_mock_is_a_blank_slate
+ @mock.expect :kind_of?, true, [Fixnum]
+ @mock.expect :==, true, [1]
+
+ assert @mock.kind_of?(Fixnum), "didn't mock :kind_of\?"
+ assert @mock == 1, "didn't mock :=="
+ end
+
+ def test_verify_allows_called_args_to_be_loosely_specified
+ mock = MiniTest::Mock.new
+ mock.expect :loose_expectation, true, [Integer]
+ mock.loose_expectation 1
+
+ assert mock.verify
+ end
+
+ def test_verify_raises_with_strict_args
+ mock = MiniTest::Mock.new
+ mock.expect :strict_expectation, true, [2]
+ mock.strict_expectation 1
+
+ util_verify_bad
+ end
+
+ def util_verify_bad
+ assert_raises MockExpectationError do
+ @mock.verify
+ end
+ end
+end
diff --git a/test/minitest/test_minitest_spec.rb b/test/minitest/test_minitest_spec.rb
new file mode 100644
index 0000000000..d9f6368a80
--- /dev/null
+++ b/test/minitest/test_minitest_spec.rb
@@ -0,0 +1,397 @@
+######################################################################
+# This file is imported from the minitest project.
+# DO NOT make modifications in this repo. They _will_ be reverted!
+# File a patch instead and assign it to Ryan Davis.
+######################################################################
+
+require 'minitest/autorun'
+require 'stringio'
+
+class MiniSpecA < MiniTest::Spec; end
+class MiniSpecB < MiniTest::Spec; end
+class ExampleA; end
+class ExampleB < ExampleA; end
+
+describe MiniTest::Spec do
+ before do
+ @assertion_count = 4
+ end
+
+ after do
+ self._assertions.must_equal @assertion_count
+ end
+
+ # TODO: figure out how the hell to write a test for this
+ # it "will skip if there is no block"
+
+ it "needs to have all methods named well" do
+ @assertion_count = 2
+
+ methods = Object.public_instance_methods.find_all { |n| n =~ /^must|^wont/ }
+ methods.map! { |m| m.to_s } if Symbol === methods.first
+
+ musts, wonts = methods.sort.partition { |m| m =~ /^must/ }
+
+ expected_musts = %w(must_be
+ must_be_close_to
+ must_be_empty
+ must_be_instance_of
+ must_be_kind_of
+ must_be_nil
+ must_be_same_as
+ must_be_silent
+ must_be_within_delta
+ must_be_within_epsilon
+ must_equal
+ must_include
+ must_match
+ must_output
+ must_raise
+ must_respond_to
+ must_send
+ must_throw)
+
+ bad = %w[not raise throw send output be_silent]
+
+ expected_wonts = expected_musts.map { |m| m.sub(/^must/, 'wont') }
+ expected_wonts.reject! { |m| m =~ /wont_#{Regexp.union(*bad)}/ }
+
+ musts.must_equal expected_musts
+ wonts.must_equal expected_wonts
+ end
+
+ it "needs to verify equality" do
+ (6 * 7).must_equal(42).must_equal true
+ proc { (6 * 9).must_equal(42) }.must_raise MiniTest::Assertion
+ end
+
+ it "needs to verify floats within a delta" do
+ (6.0 * 7).must_be_close_to(42.0).must_equal true
+ proc { 42.002.must_be_close_to 42.0 }.must_raise MiniTest::Assertion
+ end
+
+ it "needs to verify types of objects" do
+ (6 * 7).must_be_instance_of(Fixnum).must_equal true
+ proc { (6 * 7).must_be_instance_of String }.must_raise MiniTest::Assertion
+ end
+
+ it "needs to verify kinds of objects" do
+ @assertion_count = 6
+
+ (6 * 7).must_be_kind_of(Fixnum).must_equal true
+ (6 * 7).must_be_kind_of(Numeric).must_equal true
+ proc { (6 * 7).must_be_kind_of String }.must_raise MiniTest::Assertion
+ end
+
+ it "needs to verify regexp matches" do
+ @assertion_count = 6
+
+ "blah".must_match(/\w+/).must_equal true
+ proc { "blah".must_match(/\d+/) }.must_raise MiniTest::Assertion
+ end
+
+ it "needs to verify nil" do
+ nil.must_be_nil.must_equal true
+ proc { 42.must_be_nil }.must_raise MiniTest::Assertion
+ end
+
+ it "needs to verify using any operator" do
+ 41.must_be(:<, 42).must_equal true
+ proc { 42.must_be(:<, 41) }.must_raise MiniTest::Assertion
+ end
+
+ it "needs to catch an expected exception" do
+ @assertion_count = 2
+
+ proc { raise "blah" }.must_raise RuntimeError
+ proc { raise MiniTest::Assertion }.must_raise MiniTest::Assertion
+ end
+
+ it "needs to catch an unexpected exception" do
+ @assertion_count = 2
+
+ proc {
+ proc { raise MiniTest::Assertion }.must_raise(RuntimeError)
+ }.must_raise MiniTest::Assertion
+ end
+
+ it "needs raise if an expected exception is not raised" do
+ @assertion_count = 2
+
+ proc { proc { 42 }.must_raise(RuntimeError) }.must_raise MiniTest::Assertion
+ end
+
+ it "needs to be able to catch a MiniTest::Assertion exception" do
+ @assertion_count = 2
+
+ proc { 1.wont_equal 1 }.must_raise MiniTest::Assertion
+ end
+
+ it "needs to verify using respond_to" do
+ 42.must_respond_to(:+).must_equal true
+ proc { 42.must_respond_to(:clear) }.must_raise MiniTest::Assertion
+ end
+
+ it "needs to verify identity" do
+ 1.must_be_same_as(1).must_equal true
+ proc { 1.must_be_same_as 2 }.must_raise MiniTest::Assertion
+ end
+
+ it "needs to verify throw" do
+ @assertion_count = 6
+
+ proc { throw :blah }.must_throw(:blah).must_equal true
+ proc { proc { }.must_throw(:blah) }.must_raise MiniTest::Assertion
+ proc { proc { throw :xxx }.must_throw(:blah) }.must_raise MiniTest::Assertion
+ end
+
+ it "needs to verify inequality" do
+ 42.wont_equal(6 * 9).must_equal false
+ proc { 1.wont_equal 1 }.must_raise MiniTest::Assertion
+ end
+
+ it "needs to verify mismatch" do
+ @assertion_count = 6
+ "blah".wont_match(/\d+/).must_equal false
+ proc { "blah".wont_match(/\w+/) }.must_raise MiniTest::Assertion
+ end
+
+ it "needs to verify non-nil" do
+ 42.wont_be_nil.must_equal false
+ proc { nil.wont_be_nil }.must_raise MiniTest::Assertion
+ end
+
+ it "needs to verify non-identity" do
+ 1.wont_be_same_as(2).must_equal false
+ proc { 1.wont_be_same_as 1 }.must_raise MiniTest::Assertion
+ end
+
+ it "needs to verify output in stdout" do
+ proc { print "blah" }.must_output("blah").must_equal true
+
+ proc {
+ proc { print "xxx" }.must_output("blah")
+ }.must_raise MiniTest::Assertion
+ end
+
+ it "needs to verify output in stderr" do
+ proc { $stderr.print "blah" }.must_output(nil, "blah").must_equal true
+
+ proc {
+ proc { $stderr.print "xxx" }.must_output(nil, "blah")
+ }.must_raise MiniTest::Assertion
+ end
+
+ it "needs to ensure silence" do
+ @assertion_count = 5
+
+ proc { }.must_be_silent.must_equal true
+
+ proc {
+ proc { print "xxx" }.must_be_silent
+ }.must_raise MiniTest::Assertion
+ end
+
+ it "needs to be sensible about must_include order" do
+ @assertion_count = 6
+ [1, 2, 3].must_include(2).must_equal true
+ proc { [1, 2, 3].must_include 5 }.must_raise MiniTest::Assertion
+ end
+
+ it "needs to be sensible about wont_include order" do
+ @assertion_count = 6
+ [1, 2, 3].wont_include(5).must_equal false
+ proc { [1, 2, 3].wont_include 2 }.must_raise MiniTest::Assertion
+ end
+end
+
+describe MiniTest::Spec, :let do
+ i_suck_and_my_tests_are_order_dependent!
+
+ def _count
+ $let_count ||= 0
+ end
+
+ let :count do
+ $let_count += 1
+ $let_count
+ end
+
+ it "is evaluated once per example" do
+ _count.must_equal 0
+
+ count.must_equal 1
+ count.must_equal 1
+
+ _count.must_equal 1
+ end
+
+ it "is REALLY evaluated once per example" do
+ _count.must_equal 1
+
+ count.must_equal 2
+ count.must_equal 2
+
+ _count.must_equal 2
+ end
+end
+
+describe MiniTest::Spec, :subject do
+ attr_reader :subject_evaluation_count
+
+ subject do
+ @subject_evaluation_count ||= 0
+ @subject_evaluation_count += 1
+ @subject_evaluation_count
+ end
+
+ it "is evaluated once per example" do
+ subject.must_equal 1
+ subject.must_equal 1
+ subject_evaluation_count.must_equal 1
+ end
+end
+
+class TestMeta < MiniTest::Unit::TestCase
+ def test_setup
+ srand 42
+ MiniTest::Unit::TestCase.reset
+ end
+
+ def util_structure
+ x = y = z = nil
+ before_list = []
+ after_list = []
+ x = describe "top-level thingy" do
+ before { before_list << 1 }
+ after { after_list << 1 }
+
+ it "top-level-it" do end
+
+ y = describe "inner thingy" do
+ before { before_list << 2 }
+ after { after_list << 2 }
+ it "inner-it" do end
+
+ z = describe "very inner thingy" do
+ before { before_list << 3 }
+ after { after_list << 3 }
+ it "inner-it" do end
+ end
+ end
+ end
+
+ return x, y, z, before_list, after_list
+ end
+
+ def test_register_spec_type
+ original_types = MiniTest::Spec::TYPES.dup
+
+ assert_equal [[//, MiniTest::Spec]], MiniTest::Spec::TYPES
+
+ MiniTest::Spec.register_spec_type(/woot/, TestMeta)
+
+ p = lambda do |x| true end
+ MiniTest::Spec.register_spec_type TestMeta, &p
+
+ keys = MiniTest::Spec::TYPES.map(&:first)
+
+ assert_includes keys, /woot/
+ assert_includes keys, p
+ ensure
+ MiniTest::Spec::TYPES.replace original_types
+ end
+
+ def test_spec_type
+ original_types = MiniTest::Spec::TYPES.dup
+
+ MiniTest::Spec.register_spec_type(/A$/, MiniSpecA)
+ MiniTest::Spec.register_spec_type MiniSpecB do |desc|
+ desc.superclass == ExampleA
+ end
+
+ assert_equal MiniSpecA, MiniTest::Spec.spec_type(ExampleA)
+ assert_equal MiniSpecB, MiniTest::Spec.spec_type(ExampleB)
+ ensure
+ MiniTest::Spec::TYPES.replace original_types
+ end
+
+ def test_structure
+ x, y, z, * = util_structure
+
+ assert_equal "top-level thingy", x.to_s
+ assert_equal "top-level thingy::inner thingy", y.to_s
+ assert_equal "top-level thingy::inner thingy::very inner thingy", z.to_s
+
+ assert_equal "top-level thingy", x.desc
+ assert_equal "inner thingy", y.desc
+ assert_equal "very inner thingy", z.desc
+
+ top_methods = %w(test_0001_top_level_it)
+ inner_methods = %w(test_0001_inner_it)
+
+ assert_equal top_methods, x.instance_methods(false).sort.map {|o| o.to_s }
+ assert_equal inner_methods, y.instance_methods(false).sort.map {|o| o.to_s }
+ assert_equal inner_methods, z.instance_methods(false).sort.map {|o| o.to_s }
+ end
+
+ def test_setup_teardown_behavior
+ _, _, z, before_list, after_list = util_structure
+
+ tc = z.new(nil)
+
+ tc.run_setup_hooks
+ tc.run_teardown_hooks
+
+ assert_equal [1, 2, 3], before_list
+ assert_equal [3, 2, 1], after_list
+ end
+
+ def test_children
+ MiniTest::Spec.children.clear
+
+ x = y = z = nil
+ x = describe "top-level thingy" do
+ y = describe "first thingy" do end
+
+ it "top-level-it" do end
+
+ z = describe "second thingy" do end
+ end
+
+ assert_equal [x], MiniTest::Spec.children
+ assert_equal [y, z], x.children
+ assert_equal [], y.children
+ assert_equal [], z.children
+ end
+
+ def test_describe_first_structure
+ x = y = z = nil
+ x = describe "top-level thingy" do
+ y = describe "first thingy" do end
+
+ it "top-level-it" do end
+
+ z = describe "second thingy" do end
+ end
+
+ assert_equal ['test_0001_top_level_it'],
+ x.instance_methods.grep(/^test/).map {|o| o.to_s}
+ assert_equal [], y.instance_methods.grep(/^test/)
+ assert_equal [], z.instance_methods.grep(/^test/)
+ end
+
+ def test_structure_subclasses
+ z = nil
+ x = Class.new MiniTest::Spec do
+ def xyz; end
+ end
+ y = Class.new x do
+ z = describe("inner") {}
+ end
+
+ assert_respond_to x.new(nil), "xyz"
+ assert_respond_to y.new(nil), "xyz"
+ assert_respond_to z.new(nil), "xyz"
+ end
+end
diff --git a/test/minitest/test_mini_test.rb b/test/minitest/test_minitest_unit.rb
index aa90dd6186..c921ca749e 100644
--- a/test/minitest/test_mini_test.rb
+++ b/test/minitest/test_minitest_unit.rb
@@ -1,8 +1,8 @@
-############################################################
-# This file is imported from a different project.
-# DO NOT make modifications in this repo.
-# File a patch instead and assign it to Ryan Davis
-############################################################
+######################################################################
+# This file is imported from the minitest project.
+# DO NOT make modifications in this repo. They _will_ be reverted!
+# File a patch instead and assign it to Ryan Davis.
+######################################################################
require 'stringio'
require 'pathname'
@@ -10,84 +10,50 @@ require 'minitest/unit'
MiniTest::Unit.autorun
-module M; end
-class E < StandardError; include M; end
-
-class TestMiniTest < MiniTest::Unit::TestCase
- def setup
- srand 42
- MiniTest::Unit::TestCase.reset
- @tu = MiniTest::Unit.new
- @output = StringIO.new("")
- MiniTest::Unit.output = @output
- assert_equal [0, 0], @tu.run_test_suites
- end
-
- def teardown
- MiniTest::Unit.output = $stdout
- Object.send :remove_const, :ATestCase if defined? ATestCase
- end
+module MyModule; end
+class AnError < StandardError; include MyModule; end
+class ImmutableString < String; def inspect; super.freeze; end; end
+class TestMiniTestUnit < MiniTest::Unit::TestCase
pwd = Pathname.new(File.expand_path(Dir.pwd))
basedir = Pathname.new(File.expand_path(MiniTest::MINI_DIR)) + 'mini'
basedir = basedir.relative_path_from(pwd).to_s
MINITEST_BASE_DIR = basedir[/\A\./] ? basedir : "./#{basedir}"
- BT_MIDDLE = ["#{MINITEST_BASE_DIR}/test.rb:165:in `run_test_suites'",
- "#{MINITEST_BASE_DIR}/test.rb:161:in `each'",
- "#{MINITEST_BASE_DIR}/test.rb:161:in `run_test_suites'",
+ BT_MIDDLE = ["#{MINITEST_BASE_DIR}/test.rb:161:in `each'",
"#{MINITEST_BASE_DIR}/test.rb:158:in `each'",
- "#{MINITEST_BASE_DIR}/test.rb:158:in `run_test_suites'",
"#{MINITEST_BASE_DIR}/test.rb:139:in `run'",
"#{MINITEST_BASE_DIR}/test.rb:106:in `run'"]
- def test_filter_backtrace
- # this is a semi-lame mix of relative paths.
- # I cheated by making the autotest parts not have ./
- bt = (["lib/autotest.rb:571:in `add_exception'",
- "test/test_autotest.rb:62:in `test_add_exception'",
- "#{MINITEST_BASE_DIR}/test.rb:165:in `__send__'"] +
- BT_MIDDLE +
- ["#{MINITEST_BASE_DIR}/test.rb:29",
- "test/test_autotest.rb:422"])
- bt = util_expand_bt bt
+ def assert_report expected = nil
+ expected ||= "Run options: --seed 42
- ex = ["lib/autotest.rb:571:in `add_exception'",
- "test/test_autotest.rb:62:in `test_add_exception'"]
- ex = util_expand_bt ex
+# Running tests:
- fu = MiniTest::filter_backtrace(bt)
+.
- assert_equal ex, fu
- end
+Finished tests in 0.00
- def util_expand_bt bt
- if RUBY_VERSION =~ /^1\.9/ then
- bt.map { |f| (f =~ /^\./) ? File.expand_path(f) : f }
- else
- bt
- end
+1 tests, 1 assertions, 0 failures, 0 errors, 0 skips
+"
+ output = @output.string.sub(/Finished tests in .*/, "Finished tests in 0.00")
+ output.sub!(/Loaded suite .*/, 'Loaded suite blah')
+ output.sub!(/^(\s+)(?:#{Regexp.union(__FILE__, File.expand_path(__FILE__))}):\d+:/o, '\1FILE:LINE:')
+ output.sub!(/\[(?:#{Regexp.union(__FILE__, File.expand_path(__FILE__))}):\d+\]/o, '[FILE:LINE]')
+ assert_equal(expected, output)
end
- def test_filter_backtrace_all_unit
- bt = (["#{MINITEST_BASE_DIR}/test.rb:165:in `__send__'"] +
- BT_MIDDLE +
- ["#{MINITEST_BASE_DIR}/test.rb:29"])
- ex = bt.clone
- fu = MiniTest::filter_backtrace(bt)
- assert_equal ex, fu
+ def setup
+ srand 42
+ MiniTest::Unit::TestCase.reset
+ @tu = MiniTest::Unit.new
+ @output = StringIO.new("")
+ MiniTest::Unit.runner = nil # protect the outer runner from the inner tests
+ MiniTest::Unit.output = @output
end
- def test_filter_backtrace_unit_starts
- bt = (["#{MINITEST_BASE_DIR}/test.rb:165:in `__send__'"] +
- BT_MIDDLE +
- ["#{MINITEST_BASE_DIR}/mini/test.rb:29",
- "-e:1"])
-
- bt = util_expand_bt bt
-
- ex = ["-e:1"]
- fu = MiniTest::filter_backtrace(bt)
- assert_equal ex, fu
+ def teardown
+ MiniTest::Unit.output = $stdout
+ Object.send :remove_const, :ATestCase if defined? ATestCase
end
def test_class_puke_with_assertion_failed
@@ -99,16 +65,6 @@ class TestMiniTest < MiniTest::Unit::TestCase
assert_match("method_name(SomeClass) [unhappy]", @tu.report.first)
end
- def test_class_puke_with_failure_and_flunk_in_backtrace
- exception = begin
- MiniTest::Unit::TestCase.new('fake tc').flunk
- rescue MiniTest::Assertion => failure
- failure
- end
- assert_equal 'F', @tu.puke('SomeClass', 'method_name', exception)
- refute @tu.report.any?{|line| line =~ /in .flunk/}
- end
-
def test_class_puke_with_assertion_failed_and_long_backtrace
bt = (["test/test_some_class.rb:615:in `method_name'",
"#{MINITEST_BASE_DIR}/unit.rb:140:in `assert_raises'",
@@ -152,6 +108,16 @@ class TestMiniTest < MiniTest::Unit::TestCase
assert_match("test_method_name(TestSomeClass) [#{ex_location}]", @tu.report.first)
end
+ def test_class_puke_with_failure_and_flunk_in_backtrace
+ exception = begin
+ MiniTest::Unit::TestCase.new('fake tc').flunk
+ rescue MiniTest::Assertion => failure
+ failure
+ end
+ assert_equal 'F', @tu.puke('SomeClass', 'method_name', exception)
+ refute @tu.report.any?{|line| line =~ /in .flunk/}
+ end
+
def test_class_puke_with_flunk_and_user_defined_assertions
bt = (["lib/test/my/util.rb:16:in `flunk'",
"#{MINITEST_BASE_DIR}/unit.rb:140:in `assert_raises'",
@@ -182,19 +148,115 @@ class TestMiniTest < MiniTest::Unit::TestCase
assert_match(/^Exception.*Oh no again!/m, @tu.report.first)
end
- def test_class_run_test_suites
+ def test_filter_backtrace
+ # this is a semi-lame mix of relative paths.
+ # I cheated by making the autotest parts not have ./
+ bt = (["lib/autotest.rb:571:in `add_exception'",
+ "test/test_autotest.rb:62:in `test_add_exception'",
+ "#{MINITEST_BASE_DIR}/test.rb:165:in `__send__'"] +
+ BT_MIDDLE +
+ ["#{MINITEST_BASE_DIR}/test.rb:29",
+ "test/test_autotest.rb:422"])
+ bt = util_expand_bt bt
+
+ ex = ["lib/autotest.rb:571:in `add_exception'",
+ "test/test_autotest.rb:62:in `test_add_exception'"]
+ ex = util_expand_bt ex
+
+ fu = MiniTest::filter_backtrace(bt)
+
+ assert_equal ex, fu
+ end
+
+ def test_filter_backtrace_all_unit
+ bt = (["#{MINITEST_BASE_DIR}/test.rb:165:in `__send__'"] +
+ BT_MIDDLE +
+ ["#{MINITEST_BASE_DIR}/test.rb:29"])
+ ex = bt.clone
+ fu = MiniTest::filter_backtrace(bt)
+ assert_equal ex, fu
+ end
+
+ def test_filter_backtrace_unit_starts
+ bt = (["#{MINITEST_BASE_DIR}/test.rb:165:in `__send__'"] +
+ BT_MIDDLE +
+ ["#{MINITEST_BASE_DIR}/mini/test.rb:29",
+ "-e:1"])
+
+ bt = util_expand_bt bt
+
+ ex = ["-e:1"]
+ fu = MiniTest::filter_backtrace(bt)
+ assert_equal ex, fu
+ end
+
+ def test_run_error
+ tc = Class.new(MiniTest::Unit::TestCase) do
+ def test_something
+ assert true
+ end
+
+ def test_error
+ raise "unhandled exception"
+ end
+ end
+
+ Object.const_set(:ATestCase, tc)
+
+ @tu.run %w[--seed 42]
+
+ expected = "Run options: --seed 42
+
+# Running tests:
+
+E.
+
+Finished tests in 0.00
+
+ 1) Error:
+test_error(ATestCase):
+RuntimeError: unhandled exception
+ FILE:LINE:in `test_error'
+
+2 tests, 1 assertions, 0 failures, 1 errors, 0 skips
+"
+ assert_report expected
+ end
+
+ def test_run_error_teardown
tc = Class.new(MiniTest::Unit::TestCase) do
def test_something
assert true
end
+
+ def teardown
+ raise "unhandled exception"
+ end
end
Object.const_set(:ATestCase, tc)
- assert_equal [1, 1], @tu.run_test_suites
+ @tu.run %w[--seed 42]
+
+ expected = "Run options: --seed 42
+
+# Running tests:
+
+E
+
+Finished tests in 0.00
+
+ 1) Error:
+test_something(ATestCase):
+RuntimeError: unhandled exception
+ FILE:LINE:in `teardown'
+
+1 tests, 1 assertions, 0 failures, 1 errors, 0 skips
+"
+ assert_report expected
end
- def test_run_failing # TODO: add error test
+ def test_run_failing
tc = Class.new(MiniTest::Unit::TestCase) do
def test_something
assert true
@@ -207,12 +269,15 @@ class TestMiniTest < MiniTest::Unit::TestCase
Object.const_set(:ATestCase, tc)
- @tu.run
+ @tu.run %w[--seed 42]
+
+ expected = "Run options: --seed 42
+
+# Running tests:
- expected = "Loaded suite blah
-Started
F.
-Finished in 0.00
+
+Finished tests in 0.00
1) Failure:
test_failure(ATestCase) [FILE:LINE]:
@@ -220,70 +285,80 @@ Failed assertion, no message given.
2 tests, 2 assertions, 1 failures, 0 errors, 0 skips
"
- util_assert_report expected
+ assert_report expected
end
- def test_run_error
+ def test_run_failing_filtered
tc = Class.new(MiniTest::Unit::TestCase) do
def test_something
assert true
end
- def test_error
- raise "unhandled exception"
+ def test_failure
+ assert false
end
end
Object.const_set(:ATestCase, tc)
- @tu.run
+ @tu.run %w[--name /some|thing/ --seed 42]
- expected = "Loaded suite blah
-Started
-E.
-Finished in 0.00
+ expected = "Run options: --name \"/some|thing/\" --seed 42
- 1) Error:
-test_error(ATestCase):
-RuntimeError: unhandled exception
- FILE:LINE:in `test_error'
+# Running tests:
-2 tests, 1 assertions, 0 failures, 1 errors, 0 skips
+.
+
+Finished tests in 0.00
+
+1 tests, 1 assertions, 0 failures, 0 errors, 0 skips
"
- util_assert_report expected
+ assert_report expected
end
- def test_run_error_teardown
+ def test_run_passing
tc = Class.new(MiniTest::Unit::TestCase) do
def test_something
assert true
end
+ end
- def teardown
- raise "unhandled exception"
+ Object.const_set(:ATestCase, tc)
+
+ @tu.run %w[--seed 42]
+
+ assert_report
+ end
+
+ def test_run_skip
+ tc = Class.new(MiniTest::Unit::TestCase) do
+ def test_something
+ assert true
+ end
+
+ def test_skip
+ skip "not yet"
end
end
Object.const_set(:ATestCase, tc)
- @tu.run
+ @tu.run %w[--seed 42]
- expected = "Loaded suite blah
-Started
-E
-Finished in 0.00
+ expected = "Run options: --seed 42
- 1) Error:
-test_something(ATestCase):
-RuntimeError: unhandled exception
- FILE:LINE:in `teardown'
+# Running tests:
-1 tests, 1 assertions, 0 failures, 1 errors, 0 skips
+S.
+
+Finished tests in 0.00
+
+2 tests, 1 assertions, 0 failures, 0 errors, 1 skips
"
- util_assert_report expected
+ assert_report expected
end
- def test_run_skip
+ def test_run_skip_verbose
tc = Class.new(MiniTest::Unit::TestCase) do
def test_something
assert true
@@ -296,12 +371,17 @@ RuntimeError: unhandled exception
Object.const_set(:ATestCase, tc)
- @tu.run
+ @tu.run %w[--seed 42 --verbose]
- expected = "Loaded suite blah
-Started
-S.
-Finished in 0.00
+ expected = "Run options: --seed 42 --verbose
+
+# Running tests:
+
+ATestCase#test_skip = 0.00 s = S
+ATestCase#test_something = 0.00 s = .
+
+
+Finished tests in 0.00
1) Skipped:
test_skip(ATestCase) [FILE:LINE]:
@@ -309,102 +389,225 @@ not yet
2 tests, 1 assertions, 0 failures, 0 errors, 1 skips
"
- util_assert_report expected
+ assert_report expected
end
- def util_assert_report expected = nil
- expected ||= "Loaded suite blah
-Started
-.
-Finished in 0.00
+ def test_default_runner_is_minitest_unit
+ assert_instance_of MiniTest::Unit, MiniTest::Unit.runner
+ end
+
+ def test_run_with_other_runner
+
+ runner = Class.new(MiniTest::Unit) do
+ # Run once before each suite
+ def _run_suite(suite, type)
+ begin
+ suite.before_suite
+ super(suite, type)
+ end
+ end
+ end
-1 tests, 1 assertions, 0 failures, 0 errors, 0 skips
-"
- output = @output.string.sub(/Finished in .*/, "Finished in 0.00")
- output.sub!(/Loaded suite .*/, 'Loaded suite blah')
- output.sub!(/^(\s+)(?:#{Regexp.union(__FILE__, File.expand_path(__FILE__))}):\d+:/o, '\1FILE:LINE:')
- output.sub!(/\[(?:#{Regexp.union(__FILE__, File.expand_path(__FILE__))}):\d+\]/o, '[FILE:LINE]')
- assert_equal(expected, output)
- end
- def test_run_failing_filtered
tc = Class.new(MiniTest::Unit::TestCase) do
+
+ def self.before_suite
+ MiniTest::Unit.output.puts "Running #{self.name} tests"
+ @@foo = 1
+ end
+
def test_something
- assert true
+ assert_equal 1, @@foo
end
- def test_failure
- assert false
+ def test_something_else
+ assert_equal 1, @@foo
end
end
Object.const_set(:ATestCase, tc)
+ MiniTest::Unit.runner = runner.new
+ @tu.run %w[--seed 42]
+
+ # We should only see 'running ATestCase tests' once
+ expected = "Run options: --seed 42
+
+# Running tests:
- @tu.run(%w(-n /something/))
+Running ATestCase tests
+..
- util_assert_report
+Finished tests in 0.00
+
+2 tests, 2 assertions, 0 failures, 0 errors, 0 skips
+"
+ assert_report expected
end
- def test_run_passing
- tc = Class.new(MiniTest::Unit::TestCase) do
- def test_something
- assert true
+ def with_overridden_include
+ Class.class_eval do
+ def inherited_with_hacks klass
+ throw :inherited_hook
end
+
+ alias inherited_without_hacks inherited
+ alias inherited inherited_with_hacks
+ alias IGNORE_ME! inherited # 1.8 bug. god I love venture bros
end
- Object.const_set(:ATestCase, tc)
+ yield
- @tu.run
+ ensure
+ Class.class_eval do
+ alias inherited inherited_without_hacks
- util_assert_report
- end
-end
+ undef_method :inherited_with_hacks
+ undef_method :inherited_without_hacks
+ end
-class TestMiniTestTestCase < MiniTest::Unit::TestCase
- def setup
- MiniTest::Unit::TestCase.reset
+ refute_respond_to Class, :inherited_with_hacks
+ refute_respond_to Class, :inherited_without_hacks
+ end
- @tc = MiniTest::Unit::TestCase.new 'fake tc'
- @zomg = "zomg ponies!"
- @assertion_count = 1
+ def test_inherited_hook_plays_nice_with_others
+ with_overridden_include do
+ assert_throws :inherited_hook do
+ Class.new MiniTest::Unit::TestCase
+ end
+ end
end
- def teardown
- assert_equal(@assertion_count, @tc._assertions,
- "expected #{@assertion_count} assertions to be fired during the test, not #{@tc._assertions}") if @tc._assertions
- Object.send :remove_const, :ATestCase if defined? ATestCase
+ def test_setup_hooks
+ call_order = []
+
+ tc = Class.new(MiniTest::Unit::TestCase) do
+ define_method :setup do
+ super()
+ call_order << :method
+ end
+
+ define_method :test2 do
+ call_order << :test2
+ end
+
+ define_method :test1 do
+ call_order << :test1
+ end
+ end
+
+ tc.add_setup_hook lambda { call_order << :proc }
+
+ argument = nil
+
+ tc.add_setup_hook do |arg|
+ argument = arg
+ call_order << :block
+ end
+
+ @tu.run %w[--seed 42]
+
+ assert_kind_of tc, argument
+
+ expected = [:method, :proc, :block, :test1,
+ :method, :proc, :block, :test2]
+
+ assert_equal expected, call_order
end
- def test_class_inherited
- @assertion_count = 0
+ def test_teardown_hooks
+ call_order = []
- Object.const_set(:ATestCase, Class.new(MiniTest::Unit::TestCase))
+ tc = Class.new(MiniTest::Unit::TestCase) do
+ define_method :teardown do
+ super()
+ call_order << :method
+ end
- assert_equal [ATestCase], MiniTest::Unit::TestCase.test_suites
+ define_method :test2 do
+ call_order << :test2
+ end
+
+ define_method :test1 do
+ call_order << :test1
+ end
+ end
+
+ tc.add_teardown_hook lambda { call_order << :proc }
+
+ argument = nil
+
+ tc.add_teardown_hook do |arg|
+ argument = arg
+ call_order << :block
+ end
+
+ @tu.run %w[--seed 42]
+
+ assert_kind_of tc, argument
+
+ expected = [:test1, :block, :proc, :method,
+ :test2, :block, :proc, :method]
+
+ assert_equal expected, call_order
end
- def test_class_test_suites
- @assertion_count = 0
+ def test_setup_and_teardown_hooks_survive_inheritance
+ call_order = []
- Object.const_set(:ATestCase, Class.new(MiniTest::Unit::TestCase))
+ parent = Class.new(MiniTest::Unit::TestCase) do
+ define_method :setup do
+ super()
+ call_order << :setup_method
+ end
- assert_equal 1, MiniTest::Unit::TestCase.test_suites.size
- assert_equal [ATestCase], MiniTest::Unit::TestCase.test_suites
+ define_method :teardown do
+ super()
+ call_order << :teardown_method
+ end
+
+ define_method :test_something do
+ call_order << :test
+ end
+ end
+
+ parent.add_setup_hook { call_order << :setup_hook }
+ parent.add_teardown_hook { call_order << :teardown_hook }
+
+ _ = Class.new parent
+
+ parent.add_setup_hook { call_order << :setup_after }
+ parent.add_teardown_hook { call_order << :teardown_after }
+
+ @tu.run %w[--seed 42]
+
+ # Once for the parent class, once for the child
+ expected = [:setup_method, :setup_hook, :setup_after, :test,
+ :teardown_after, :teardown_hook, :teardown_method] * 2
+
+ assert_equal expected, call_order
end
- def test_class_asserts_match_refutes
- @assertion_count = 0
+ def util_expand_bt bt
+ if RUBY_VERSION =~ /^1\.9/ then
+ bt.map { |f| (f =~ /^\./) ? File.expand_path(f) : f }
+ else
+ bt
+ end
+ end
+end
- methods = MiniTest::Assertions.public_instance_methods
- methods.map! { |m| m.to_s } if Symbol === methods.first
+class TestMiniTestUnitTestCase < MiniTest::Unit::TestCase
+ def setup
+ MiniTest::Unit::TestCase.reset
- ignores = %w(assert_block assert_no_match assert_not_equal assert_not_nil
- assert_not_same assert_nothing_thrown assert_raise
- assert_nothing_raised assert_raises assert_throws assert_send)
- asserts = methods.grep(/^assert/).sort - ignores
- refutes = methods.grep(/^refute/).sort - ignores
+ @tc = MiniTest::Unit::TestCase.new 'fake tc'
+ @zomg = "zomg ponies!"
+ @assertion_count = 1
+ end
- assert_empty refutes.map { |n| n.sub(/^refute/, 'assert') } - asserts
- assert_empty asserts.map { |n| n.sub(/^assert/, 'refute') } - refutes
+ def teardown
+ assert_equal(@assertion_count, @tc._assertions,
+ "expected #{@assertion_count} assertions to be fired during the test, not #{@tc._assertions}") if @tc._assertions
+ Object.send :remove_const, :ATestCase if defined? ATestCase
end
def test_assert
@@ -432,8 +635,8 @@ class TestMiniTestTestCase < MiniTest::Unit::TestCase
end
def test_assert_block_triggered
- util_assert_triggered 'Expected block to return true value.' do
- @tc.assert_block do
+ util_assert_triggered "blah.\nExpected block to return true value." do
+ @tc.assert_block "blah" do
false
end
end
@@ -457,21 +660,123 @@ class TestMiniTestTestCase < MiniTest::Unit::TestCase
@tc.assert_equal 1, 1
end
- def test_assert_equal_different
- util_assert_triggered "Expected 1, not 2." do
+ def test_assert_equal_different_diff_deactivated
+ without_diff do
+ util_assert_triggered util_msg("haha" * 10, "blah" * 10) do
+ o1 = "haha" * 10
+ o2 = "blah" * 10
+
+ @tc.assert_equal o1, o2
+ end
+ end
+ end
+
+ def test_assert_equal_different_hex
+ c = Class.new do
+ def initialize s; @name = s; end
+ end
+
+ o1 = c.new "a"
+ o2 = c.new "b"
+ msg = "--- expected
+ +++ actual
+ @@ -1 +1 @@
+ -#<#<Class:0xXXXXXX>:0xXXXXXX @name=\"a\">
+ +#<#<Class:0xXXXXXX>:0xXXXXXX @name=\"b\">
+ ".gsub(/^ +/, "")
+
+ util_assert_triggered msg do
+ @tc.assert_equal o1, o2
+ end
+ end
+
+ def test_assert_equal_different_hex_invisible
+ o1 = Object.new
+ o2 = Object.new
+
+ msg = "No visible difference.
+ You should look at your implementation of Object#==.
+ #<Object:0xXXXXXX>".gsub(/^ +/, "")
+
+ util_assert_triggered msg do
+ @tc.assert_equal o1, o2
+ end
+ end
+
+ def test_assert_equal_different_long
+ msg = "--- expected
+ +++ actual
+ @@ -1 +1 @@
+ -\"hahahahahahahahahahahahahahahahahahahaha\"
+ +\"blahblahblahblahblahblahblahblahblahblah\"
+ ".gsub(/^ +/, "")
+
+ util_assert_triggered msg do
+ o1 = "haha" * 10
+ o2 = "blah" * 10
+
+ @tc.assert_equal o1, o2
+ end
+ end
+
+ def test_assert_equal_different_long_invisible
+ msg = "No visible difference.
+ You should look at your implementation of String#==.
+ \"blahblahblahblahblahblahblahblahblahblah\"".gsub(/^ +/, "")
+
+ util_assert_triggered msg do
+ o1 = "blah" * 10
+ o2 = "blah" * 10
+ def o1.== o
+ false
+ end
+ @tc.assert_equal o1, o2
+ end
+ end
+
+ def test_assert_equal_different_long_msg
+ msg = "message.
+ --- expected
+ +++ actual
+ @@ -1 +1 @@
+ -\"hahahahahahahahahahahahahahahahahahahaha\"
+ +\"blahblahblahblahblahblahblahblahblahblah\"
+ ".gsub(/^ +/, "")
+
+ util_assert_triggered msg do
+ o1 = "haha" * 10
+ o2 = "blah" * 10
+ @tc.assert_equal o1, o2, "message"
+ end
+ end
+
+ def test_assert_equal_different_short
+ util_assert_triggered util_msg(1, 2) do
@tc.assert_equal 1, 2
end
end
+ def test_assert_equal_different_short_msg
+ util_assert_triggered util_msg(1, 2, "message") do
+ @tc.assert_equal 1, 2, "message"
+ end
+ end
+
+ def test_assert_equal_different_short_multiline
+ msg = "--- expected\n+++ actual\n@@ -1,2 +1,2 @@\n \"a\n-b\"\n+c\"\n"
+ util_assert_triggered msg do
+ @tc.assert_equal "a\nb", "a\nc"
+ end
+ end
+
def test_assert_in_delta
@tc.assert_in_delta 0.0, 1.0 / 1000, 0.1
end
def test_assert_in_delta_triggered
- e = assert_raises(MiniTest::Assertion) do
+ util_assert_triggered 'Expected 0.0 - 0.001 (0.001) to be < 1.0e-06.' do
@tc.assert_in_delta 0.0, 1.0 / 1000, 0.000001
end
- assert_match /\AExpected 0\.0 - 0\.001 \(0\.001\) to be < (?:1\.0+\de-06|9\.9+\de-07).\z/, e.message
end
def test_assert_in_epsilon
@@ -489,10 +794,9 @@ class TestMiniTestTestCase < MiniTest::Unit::TestCase
end
def test_assert_in_epsilon_triggered
- e = assert_raises(MiniTest::Assertion) do
+ util_assert_triggered 'Expected 10000 - 9990 (10) to be < 9.99.' do
@tc.assert_in_epsilon 10000, 9990
- end
- assert_match(/\AExpected 10000 - 9990 \(10\) to be < 9\.99*\d*\.\z/, e.message)
+ end
end
def test_assert_includes
@@ -551,9 +855,9 @@ class TestMiniTestTestCase < MiniTest::Unit::TestCase
pattern = Object.new
def pattern.=~(other) false end
- def pattern.inspect; "<<Object>>" end
+ def pattern.inspect; "[Object]" end
- util_assert_triggered 'Expected <<Object>> to match 5.' do
+ util_assert_triggered 'Expected [Object] to match 5.' do
@tc.assert_match pattern, 5
end
end
@@ -585,15 +889,89 @@ class TestMiniTestTestCase < MiniTest::Unit::TestCase
end
end
+ def test_assert_output_both
+ @assertion_count = 2
+
+ @tc.assert_output "yay", "blah" do
+ print "yay"
+ $stderr.print "blah"
+ end
+ end
+
+ def test_assert_output_err
+ @tc.assert_output nil, "blah" do
+ $stderr.print "blah"
+ end
+ end
+
+ def test_assert_output_neither
+ @assertion_count = 0
+
+ @tc.assert_output do
+ # do nothing
+ end
+ end
+
+ def test_assert_output_out
+ @tc.assert_output "blah" do
+ print "blah"
+ end
+ end
+
+ def test_assert_output_triggered_both
+ util_assert_triggered util_msg("yay", "boo", "In stdout") do
+ @tc.assert_output "yay", "blah" do
+ print "boo"
+ $stderr.print "blah blah"
+ end
+ end
+ end
+
+ def test_assert_output_triggered_err
+ util_assert_triggered util_msg("blah", "blah blah", "In stderr") do
+ @tc.assert_output nil, "blah" do
+ $stderr.print "blah blah"
+ end
+ end
+ end
+
+ def test_assert_output_triggered_out
+ util_assert_triggered util_msg("blah", "blah blah", "In stdout") do
+ @tc.assert_output "blah" do
+ print "blah blah"
+ end
+ end
+ end
+
def test_assert_raises
@tc.assert_raises RuntimeError do
raise "blah"
end
end
+ ##
+ # *sigh* This is quite an odd scenario, but it is from real (albeit
+ # ugly) test code in ruby-core:
+ #
+ # http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=29259
+
+ def test_assert_raises_skip
+ @assertion_count = 0
+
+ util_assert_triggered "skipped", MiniTest::Skip do
+ @tc.assert_raises ArgumentError do
+ begin
+ raise "blah"
+ rescue
+ skip "skipped"
+ end
+ end
+ end
+ end
+
def test_assert_raises_module
- @tc.assert_raises M do
- raise E
+ @tc.assert_raises MyModule do
+ raise AnError
end
end
@@ -617,6 +995,27 @@ FILE:LINE:in `test_assert_raises_triggered_different'
assert_equal expected, actual
end
+ def test_assert_raises_triggered_different_msg
+ e = assert_raises MiniTest::Assertion do
+ @tc.assert_raises RuntimeError, "XXX" do
+ raise SyntaxError, "icky"
+ end
+ end
+
+ expected = "XXX
+[RuntimeError] exception expected, not
+Class: <SyntaxError>
+Message: <\"icky\">
+---Backtrace---
+FILE:LINE:in `test_assert_raises_triggered_different_msg'
+---------------"
+
+ actual = e.message.gsub(/^.+:\d+/, 'FILE:LINE')
+ actual.gsub!(/block \(\d+ levels\) in /, '') if RUBY_VERSION =~ /^1\.9/
+
+ assert_equal expected, actual
+ end
+
def test_assert_raises_triggered_none
e = assert_raises MiniTest::Assertion do
@tc.assert_raises MiniTest::Assertion do
@@ -629,16 +1028,28 @@ FILE:LINE:in `test_assert_raises_triggered_different'
assert_equal expected, e.message
end
+ def test_assert_raises_triggered_none_msg
+ e = assert_raises MiniTest::Assertion do
+ @tc.assert_raises MiniTest::Assertion, "XXX" do
+ # do nothing
+ end
+ end
+
+ expected = "XXX\nMiniTest::Assertion expected but nothing was raised."
+
+ assert_equal expected, e.message
+ end
+
def test_assert_raises_triggered_subclass
e = assert_raises MiniTest::Assertion do
@tc.assert_raises StandardError do
- raise E
+ raise AnError
end
end
expected = "[StandardError] exception expected, not
-Class: <E>
-Message: <\"E\">
+Class: <AnError>
+Message: <\"AnError\">
---Backtrace---
FILE:LINE:in `test_assert_raises_triggered_subclass'
---------------"
@@ -671,14 +1082,14 @@ FILE:LINE:in `test_assert_raises_triggered_subclass'
def test_assert_same_triggered
@assertion_count = 2
- util_assert_triggered 'Expected 2 (0xXXX) to be the same as 1 (0xXXX).' do
+ util_assert_triggered 'Expected 2 (oid=N) to be the same as 1 (oid=N).' do
@tc.assert_same 1, 2
end
s1 = "blah"
s2 = "blah"
- util_assert_triggered 'Expected "blah" (0xXXX) to be the same as "blah" (0xXXX).' do
+ util_assert_triggered 'Expected "blah" (oid=N) to be the same as "blah" (oid=N).' do
@tc.assert_same s1, s2
end
end
@@ -693,6 +1104,32 @@ FILE:LINE:in `test_assert_raises_triggered_subclass'
end
end
+ def test_assert_silent
+ @assertion_count = 2
+
+ @tc.assert_silent do
+ # do nothing
+ end
+ end
+
+ def test_assert_silent_triggered_err
+ @assertion_count = 2
+
+ util_assert_triggered util_msg("", "blah blah", "In stderr") do
+ @tc.assert_silent do
+ $stderr.print "blah blah"
+ end
+ end
+ end
+
+ def test_assert_silent_triggered_out
+ util_assert_triggered util_msg("", "blah blah", "In stdout") do
+ @tc.assert_silent do
+ print "blah blah"
+ end
+ end
+ end
+
def test_assert_throws
@tc.assert_throws(:blah) do
throw :blah
@@ -718,6 +1155,8 @@ FILE:LINE:in `test_assert_raises_triggered_subclass'
def test_capture_io
@assertion_count = 0
+ orig_verbose = $VERBOSE
+ $VERBOSE = false
out, err = capture_io do
puts 'hi'
warn 'bye!'
@@ -725,6 +1164,43 @@ FILE:LINE:in `test_assert_raises_triggered_subclass'
assert_equal "hi\n", out
assert_equal "bye!\n", err
+ ensure
+ $VERBOSE = orig_verbose
+ end
+
+ def test_class_asserts_match_refutes
+ @assertion_count = 0
+
+ methods = MiniTest::Assertions.public_instance_methods
+ methods.map! { |m| m.to_s } if Symbol === methods.first
+
+ ignores = %w(assert_block assert_no_match assert_not_equal
+ assert_not_nil assert_not_same assert_nothing_raised
+ assert_nothing_thrown assert_output assert_raise
+ assert_raises assert_send assert_silent assert_throws)
+
+ asserts = methods.grep(/^assert/).sort - ignores
+ refutes = methods.grep(/^refute/).sort - ignores
+
+ assert_empty refutes.map { |n| n.sub(/^refute/, 'assert') } - asserts
+ assert_empty asserts.map { |n| n.sub(/^assert/, 'refute') } - refutes
+ end
+
+ def test_class_inherited
+ @assertion_count = 0
+
+ Object.const_set(:ATestCase, Class.new(MiniTest::Unit::TestCase))
+
+ assert_equal [ATestCase], MiniTest::Unit::TestCase.test_suites
+ end
+
+ def test_class_test_suites
+ @assertion_count = 0
+
+ Object.const_set(:ATestCase, Class.new(MiniTest::Unit::TestCase))
+
+ assert_equal 1, MiniTest::Unit::TestCase.test_suites.size
+ assert_equal [ATestCase], MiniTest::Unit::TestCase.test_suites
end
def test_flunk
@@ -742,8 +1218,9 @@ FILE:LINE:in `test_assert_raises_triggered_subclass'
def test_message
@assertion_count = 0
- assert_equal "blah2.", @tc.message { "blah2" }.call
- assert_equal "blah2.", @tc.message("") { "blah2" }.call
+ assert_equal "blah2.", @tc.message { "blah2" }.call
+ assert_equal "blah2.", @tc.message("") { "blah2" }.call
+ assert_equal "blah1.\nblah2.", @tc.message(:blah1) { "blah2" }.call
assert_equal "blah1.\nblah2.", @tc.message("blah1") { "blah2" }.call
end
@@ -751,49 +1228,9 @@ FILE:LINE:in `test_assert_raises_triggered_subclass'
@tc.pass
end
- def test_test_methods_sorted
- @assertion_count = 0
-
- sample_test_case = Class.new(MiniTest::Unit::TestCase)
-
- class << sample_test_case
- def test_order; :sorted end
- end
-
- sample_test_case.instance_eval do
- define_method :test_test3 do assert "does not matter" end
- define_method :test_test2 do assert "does not matter" end
- define_method :test_test1 do assert "does not matter" end
- end
-
- expected = %w(test_test1 test_test2 test_test3)
- assert_equal expected, sample_test_case.test_methods
- end
-
- def test_test_methods_random
- @assertion_count = 0
-
- sample_test_case = Class.new(MiniTest::Unit::TestCase)
-
- class << sample_test_case
- def test_order; :random end
- end
-
- sample_test_case.instance_eval do
- define_method :test_test1 do assert "does not matter" end
- define_method :test_test2 do assert "does not matter" end
- define_method :test_test3 do assert "does not matter" end
- end
-
- srand 42
- expected = %w(test_test1 test_test2 test_test3)
- max = expected.size
- expected = expected.sort_by { rand(max) }
-
- srand 42
- result = sample_test_case.test_methods
-
- assert_equal expected, result
+ def test_prints
+ printer = Class.new { extend MiniTest::Assertions }
+ @tc.assert_equal '"test"', printer.mu_pp(ImmutableString.new 'test')
end
def test_refute
@@ -831,10 +1268,9 @@ FILE:LINE:in `test_assert_raises_triggered_subclass'
end
def test_refute_in_delta_triggered
- e = assert_raises(MiniTest::Assertion) do
+ util_assert_triggered 'Expected 0.0 - 0.001 (0.001) to not be < 0.1.' do
@tc.refute_in_delta 0.0, 1.0 / 1000, 0.1
end
- assert_match /\AExpected 0\.0 - 0\.001 \(0\.001\) to not be < 0\.10*\d*\.\z/, e.message
end
def test_refute_in_epsilon
@@ -895,26 +1331,14 @@ FILE:LINE:in `test_assert_raises_triggered_subclass'
@tc.refute_match Object.new, 5 # default #=~ returns false
end
- def test_assert_object_triggered
- @assertion_count = 2
-
- pattern = Object.new
- def pattern.=~(other) false end
- def pattern.inspect; "<<Object>>" end
-
- util_assert_triggered 'Expected <<Object>> to match 5.' do
- @tc.assert_match pattern, 5
- end
- end
-
def test_refute_match_object_triggered
@assertion_count = 2
pattern = Object.new
def pattern.=~(other) true end
- def pattern.inspect; "<<Object>>" end
+ def pattern.inspect; "[Object]" end
- util_assert_triggered 'Expected <<Object>> to not match 5.' do
+ util_assert_triggered 'Expected [Object] to not match 5.' do
@tc.refute_match pattern, 5
end
end
@@ -960,9 +1384,8 @@ FILE:LINE:in `test_assert_raises_triggered_subclass'
@tc.refute_same 1, 2
end
- # TODO: "with id <id>" crap from assertions.rb
def test_refute_same_triggered
- util_assert_triggered 'Expected 1 to not be the same as 1.' do
+ util_assert_triggered 'Expected 1 (oid=N) to not be the same as 1 (oid=N).' do
@tc.refute_same 1, 1
end
end
@@ -975,19 +1398,57 @@ FILE:LINE:in `test_assert_raises_triggered_subclass'
end
end
+ def test_test_methods_random
+ @assertion_count = 0
+
+ sample_test_case = Class.new(MiniTest::Unit::TestCase) do
+ def test_test1; assert "does not matter" end
+ def test_test2; assert "does not matter" end
+ def test_test3; assert "does not matter" end
+ end
+
+ srand 42
+ expected = %w(test_test2 test_test1 test_test3)
+ assert_equal expected, sample_test_case.test_methods
+ end
+
+ def test_test_methods_sorted
+ @assertion_count = 0
+
+ sample_test_case = Class.new(MiniTest::Unit::TestCase) do
+ def self.test_order; :sorted end
+ def test_test3; assert "does not matter" end
+ def test_test2; assert "does not matter" end
+ def test_test1; assert "does not matter" end
+ end
+
+ expected = %w(test_test1 test_test2 test_test3)
+ assert_equal expected, sample_test_case.test_methods
+ end
+
def util_assert_triggered expected, klass = MiniTest::Assertion
e = assert_raises(klass) do
yield
end
msg = e.message.sub(/(---Backtrace---).*/m, '\1')
- msg.gsub!(/\(0x[0-9a-f]+\)/, '(0xXXX)')
+ msg.gsub!(/\(oid=[-0-9]+\)/, '(oid=N)')
- begin
- assert_equal expected, msg
- rescue MiniTest::Assertion => e
- e.backtrace.shift(3)
- raise
- end
+ assert_equal expected, msg
+ end
+
+ def util_msg exp, act, msg = nil
+ s = "Expected: #{exp.inspect}\n Actual: #{act.inspect}"
+ s = "#{msg}.\n#{s}" if msg
+ s
+ end
+
+ def without_diff
+ old_diff = MiniTest::Assertions.diff
+ MiniTest::Assertions.diff = nil
+
+ yield
+ ensure
+ MiniTest::Assertions.diff = old_diff
end
end
diff --git a/test/misc/test_ruby_mode.rb b/test/misc/test_ruby_mode.rb
new file mode 100644
index 0000000000..e058294841
--- /dev/null
+++ b/test/misc/test_ruby_mode.rb
@@ -0,0 +1,142 @@
+require 'test/unit'
+require 'tempfile'
+
+class TestRubyMode < Test::Unit::TestCase
+ MISCDIR = File.expand_path("../../../misc", __FILE__)
+ e = ENV["EMACS"] || "emacs"
+ emacs = %W"#{e} -q --no-site-file --batch --load #{MISCDIR}/ruby-mode.el"
+ begin
+ raise if IO.popen([e, "--version", :err=>[:child, :out]]) {|f| f.read}[/[0-9]+/].to_i < 23
+ IO.popen([*emacs, :err=>[:child, :out]]) {|f| f.read}
+ rescue
+ EMACS = nil
+ else
+ EMACS = (emacs if $? and $?.success?)
+ end
+end
+
+class TestRubyMode
+ EVAL_OPT = "--eval"
+ EXPR_SAVE = "(save-buffer)"
+ EXPR_RUBYMODE = "(ruby-mode)"
+ EXPR_NOBACKUP = "(progn" \
+ " (set (make-local-variable \'backup-inhibited) t)" \
+ " (set-buffer-modified-p t)" \
+ ")"
+
+ def run_emacs(src, *exprs)
+ tmp = Tempfile.new(%w"ruby-mode.test. .rb")
+ tmp.puts(src)
+ tmp.close
+ exprs = exprs.map {|expr| [EVAL_OPT, expr]}.flatten
+ exprs.unshift(EVAL_OPT, EXPR_RUBYMODE)
+ exprs.unshift(EVAL_OPT, EXPR_NOBACKUP)
+ output = IO.popen([*EMACS, tmp.path, *exprs, err:[:child, :out]], "r") {|e| e.read}
+ tmp.open
+ result = tmp.read
+ tmp.close!
+ return result, output
+ end
+
+ class TestIndent < self
+ EXPR_INDENT = "(indent-region (point-min) (point-max))"
+
+ def assert_indent(expected, source, *message)
+ if space = expected[/\A\n?(\s*\|)/, 1]
+ space = /^#{Regexp.quote(space)}/m
+ expected.gsub!(space, '')
+ source.gsub!(space, '')
+ end
+ result, output = run_emacs(source, EXPR_INDENT, EXPR_SAVE)
+ assert_match(/^Wrote /, output)
+ assert_equal(expected, result, *message)
+ end
+
+ def test_simple
+ assert_indent('
+ |if foo
+ | bar
+ |end
+ |zot
+ |', '
+ |if foo
+ |bar
+ | end
+ | zot
+ |')
+ end
+
+ def test_keyword_label
+ assert_indent('
+ |bar(class: XXX) do
+ | foo
+ |end
+ |bar
+ |', '
+ |bar(class: XXX) do
+ | foo
+ | end
+ | bar
+ |')
+ end
+
+ def test_method_with_question_mark
+ assert_indent('
+ |if x.is_a?(XXX)
+ | foo
+ |end
+ |', '
+ |if x.is_a?(XXX)
+ | foo
+ | end
+ |')
+ end
+
+ def test_expr_in_regexp
+ assert_indent('
+ |if /#{foo}/ =~ s
+ | x = 1
+ |end
+ |', '
+ |if /#{foo}/ =~ s
+ | x = 1
+ | end
+ |')
+ end
+
+ def test_singleton_class
+ skip("pending")
+ assert_indent('
+ |class<<bar
+ | foo
+ |end
+ |', '
+ |class<<bar
+ |foo
+ | end
+ |')
+ end
+
+ def test_array_literal
+ skip
+ assert_indent('
+ |foo = [
+ | bar
+ |]
+ |', '
+ |foo = [
+ | bar
+ | ]
+ |')
+ assert_indent('
+ |foo do
+ | [bar]
+ |end
+ |', '
+ |foo do
+ |[bar]
+ | end
+ |')
+ end
+ end
+end if TestRubyMode::EMACS
diff --git a/test/mkmf/base.rb b/test/mkmf/base.rb
new file mode 100644
index 0000000000..a9d3aec338
--- /dev/null
+++ b/test/mkmf/base.rb
@@ -0,0 +1,129 @@
+require 'test/unit'
+require 'mkmf'
+require 'tmpdir'
+
+$extout = '$(topdir)/'+RbConfig::CONFIG["EXTOUT"]
+RbConfig::CONFIG['topdir'] = CONFIG['topdir'] = File.expand_path(CONFIG['topdir'])
+RbConfig::CONFIG["extout"] = CONFIG["extout"] = $extout
+$INCFLAGS << " -I."
+$extout_prefix = "$(extout)$(target_prefix)/"
+
+class TestMkmf < Test::Unit::TestCase
+ MKMFLOG = proc {File.read("mkmf.log") rescue ""}
+ class << MKMFLOG
+ alias to_s call
+ end
+
+ class Capture
+ def initialize
+ @buffer = ""
+ @filter = nil
+ @out = true
+ end
+ def clear
+ @buffer.clear
+ end
+ def flush
+ STDOUT.print @filter ? @filter.call(@buffer) : @buffer
+ clear
+ end
+ def reopen(io)
+ case io
+ when Capture
+ initialize_copy(io)
+ when File
+ @out = false
+ when IO
+ @out = true
+ else
+ @out = false
+ end
+ end
+ def filter(&block)
+ @filter = block
+ end
+ def write(s)
+ @buffer << s if @out
+ end
+ end
+
+ attr_reader :stdout
+
+ def mkmflog(msg)
+ log = proc {MKMFLOG[] << msg}
+ class << log
+ alias to_s call
+ end
+ log
+ end
+
+ def setup
+ @rbconfig = rbconfig0 = RbConfig::CONFIG
+ @mkconfig = mkconfig0 = RbConfig::MAKEFILE_CONFIG
+ rbconfig = {
+ "hdrdir" => $hdrdir,
+ "srcdir" => $srcdir,
+ "topdir" => $topdir,
+ }
+ mkconfig = {
+ "hdrdir" => "$(top_srcdir)/include",
+ "srcdir" => "$(top_srcdir)/ext/#{$mdir}",
+ "topdir" => $topdir,
+ }
+ rbconfig0.each_pair {|key, val| rbconfig[key] ||= val.dup}
+ mkconfig0.each_pair {|key, val| mkconfig[key] ||= val.dup}
+ RbConfig.module_eval {
+ remove_const(:CONFIG)
+ const_set(:CONFIG, rbconfig)
+ remove_const(:MAKEFILE_CONFIG)
+ const_set(:MAKEFILE_CONFIG, mkconfig)
+ }
+ Object.class_eval {
+ remove_const(:CONFIG)
+ const_set(:CONFIG, mkconfig)
+ }
+ @tmpdir = Dir.mktmpdir
+ @curdir = Dir.pwd
+ @mkmfobj = Object.new
+ @stdout = Capture.new
+ Dir.chdir(@tmpdir)
+ @quiet, Logging.quiet = Logging.quiet, true
+ init_mkmf
+ $INCFLAGS[0, 0] = "-I. "
+ end
+
+ def teardown
+ rbconfig0 = @rbconfig
+ mkconfig0 = @mkconfig
+ RbConfig.module_eval {
+ remove_const(:CONFIG)
+ const_set(:CONFIG, rbconfig0)
+ remove_const(:MAKEFILE_CONFIG)
+ const_set(:MAKEFILE_CONFIG, mkconfig0)
+ }
+ Object.class_eval {
+ remove_const(:CONFIG)
+ const_set(:CONFIG, mkconfig0)
+ }
+ Logging.quiet = @quiet
+ Logging.log_close
+ Dir.chdir(@curdir)
+ FileUtils.rm_rf(@tmpdir)
+ end
+
+ def mkmf(*args, &block)
+ @stdout.clear
+ stdout, $stdout = $stdout, @stdout
+ @mkmfobj.instance_eval(*args, &block)
+ ensure
+ $stdout = stdout
+ end
+
+ def config_value(name)
+ create_tmpsrc("---config-value=#{name}")
+ xpopen(cpp_command('')) do |f|
+ f.grep(/^---config-value=(.*)/) {return $1}
+ end
+ nil
+ end
+end
diff --git a/test/mkmf/test_convertible.rb b/test/mkmf/test_convertible.rb
new file mode 100644
index 0000000000..3ad36b3c6b
--- /dev/null
+++ b/test/mkmf/test_convertible.rb
@@ -0,0 +1,32 @@
+require_relative 'base'
+
+class TestMkmf
+ class TestConvertible < TestMkmf
+ def test_typeof_builtin
+ ["", ["signed ", ""], "unsigned "].each do |signed, prefix|
+ %w[short int long].each do |type|
+ assert_equal((prefix || signed)+type,
+ mkmf {convertible_int(signed+type)}, MKMFLOG)
+ end
+ end
+ end
+
+ def test_typeof_typedef
+ ["", ["signed ", ""], "unsigned "].each do |signed, prefix|
+ %w[short int long].each do |type|
+ open("confdefs.h", "w") {|f|
+ f.puts "typedef #{signed}#{type} test1_t;"
+ }
+ $defs.clear
+ assert_equal((prefix || signed)+type,
+ mkmf {convertible_int("test1_t", "confdefs.h")}, MKMFLOG)
+ (u = signed[/^u/]) and u.upcase!
+ assert_include($defs, "-DTYPEOF_TEST1_T="+"#{prefix||signed}#{type}".quote)
+ assert_include($defs, "-DPRI_TEST1T_PREFIX=PRI_#{type.upcase}_PREFIX")
+ assert_include($defs, "-DTEST1T2NUM=#{u}#{type.upcase}2NUM")
+ assert_include($defs, "-DNUM2TEST1T=NUM2#{u}#{type.upcase}")
+ end
+ end
+ end
+ end
+end
diff --git a/test/mkmf/test_find_executable.rb b/test/mkmf/test_find_executable.rb
new file mode 100644
index 0000000000..fe45ef2d1c
--- /dev/null
+++ b/test/mkmf/test_find_executable.rb
@@ -0,0 +1,50 @@
+require_relative 'base'
+
+class TestMkmf
+ class TestFindExecutable < TestMkmf
+ def setup
+ super
+ @path, ENV["PATH"] = ENV["PATH"], @tmpdir
+ end
+
+ def teardown
+ ENV["PATH"] = @path
+ super
+ end
+
+ def test_find_executable
+ bug2669 = '[ruby-core:27912]'
+ name = "foobar#{$$}#{rand(1000)}"
+ exts = mkmf {self.class::CONFIG['EXECUTABLE_EXTS']}.split
+ stdout.filter {|s| s.sub(name, "<executable>")}
+ exts[0] ||= ""
+ exts.each do |ext|
+ full = name+ext
+ begin
+ open(full, "w") {|ff| ff.chmod(0755)}
+ result = mkmf {find_executable(name)}
+ ensure
+ File.unlink(full)
+ end
+ assert_equal("#{@tmpdir}/#{name}#{ext}", result, bug2669)
+ end
+ end
+
+ def test_find_executable_dir
+ name = "foobar#{$$}#{rand(1000)}"
+ exts = mkmf {self.class::CONFIG['EXECUTABLE_EXTS']}.split
+ stdout.filter {|s| s.sub(name, "<executable>")}
+ exts[0] ||= ""
+ exts.each do |ext|
+ full = name+ext
+ begin
+ Dir.mkdir(full)
+ result = mkmf {find_executable(name)}
+ ensure
+ Dir.rmdir(full)
+ end
+ assert_nil(result)
+ end
+ end
+ end
+end
diff --git a/test/mkmf/test_flags.rb b/test/mkmf/test_flags.rb
new file mode 100644
index 0000000000..3bb278071a
--- /dev/null
+++ b/test/mkmf/test_flags.rb
@@ -0,0 +1,35 @@
+require_relative 'base'
+
+class TestMkmf
+ class TestFlags < TestMkmf
+ def test_valid_warnflags
+ val = $extmk
+ warnflags = $warnflags
+ makefile = mkmf do
+ $extmk = false
+ self.class::CONFIG['warnflags'] = %w"-Wextra
+ -Wno-unused-parameter -Wno-parentheses -Wno-long-long
+ -Wno-missing-field-initializers -Werror=pointer-arith
+ -Werror=write-strings -Werror=declaration-after-statement
+ -Werror=shorten-64-to-32
+ -Werror-implicit-function-declaration
+ ".join(' ')
+ self.class::CONFIG['GCC'] = 'yes'
+ init_mkmf(self.class::CONFIG)
+ configuration '.'
+ end
+ generated_flags = makefile.grep(/warnflags/).first[/^warnflags = (.*)$/, 1].split
+
+ assert_equal %w"
+ -Wextra -Wno-unused-parameter -Wno-parentheses
+ -Wno-long-long -Wno-missing-field-initializers -Wpointer-arith
+ -Wwrite-strings -Wdeclaration-after-statement
+ -Wshorten-64-to-32 -Wimplicit-function-declaration
+ ", generated_flags
+
+ ensure
+ $warnflags = warnflags
+ $extmk = val
+ end
+ end
+end
diff --git a/test/mkmf/test_signedness.rb b/test/mkmf/test_signedness.rb
new file mode 100644
index 0000000000..ad0495a2b5
--- /dev/null
+++ b/test/mkmf/test_signedness.rb
@@ -0,0 +1,27 @@
+require_relative 'base'
+
+class TestMkmf
+ class TestSignedness < TestMkmf
+ def test_typeof_builtin
+ bug4144 = '[ruby-dev:42731]'
+ [["", "-1"], ["signed ", "-1"], ["unsigned ", "+1"]].each do |signed, expect|
+ %w[short int long].each do |type|
+ assert_equal(expect.to_i, mkmf {check_signedness(signed+type)}, mkmflog(bug4144))
+ end
+ end
+ end
+
+ def test_typeof_typedef
+ [["", "-1"], ["signed ", "-1"], ["unsigned ", "+1"]].each do |signed, expect|
+ %w[short int long].each do |type|
+ open("confdefs.h", "w") {|f|
+ f.puts "typedef #{signed}#{type} test1_t;"
+ }
+ $defs.clear
+ assert_equal(expect.to_i, mkmf {check_signedness("test1_t", "confdefs.h")}, MKMFLOG)
+ assert_include($defs, "-DSIGNEDNESS_OF_TEST1_T=#{expect}")
+ end
+ end
+ end
+ end
+end
diff --git a/test/mkmf/test_sizeof.rb b/test/mkmf/test_sizeof.rb
new file mode 100644
index 0000000000..30f6fd5400
--- /dev/null
+++ b/test/mkmf/test_sizeof.rb
@@ -0,0 +1,45 @@
+require_relative 'base'
+
+class TestMkmf
+ class TestSizeof < TestMkmf
+ def setup
+ super
+ @sizeof_short = config_value("SIZEOF_SHORT").to_i
+ @sizeof_int = config_value("SIZEOF_INT").to_i
+ @sizeof_long = config_value("SIZEOF_LONG").to_i
+ @sizeof_long_long = config_value("SIZEOF_LONG_LONG").to_i
+ @sizeof___int64 = config_value("SIZEOF___INT64").to_i
+ end
+
+ def test_sizeof_builtin
+ %w[char short int long float double void*].each do |type|
+ assert_kind_of(Integer, mkmf {check_sizeof(type)}, MKMFLOG)
+ end
+ assert_operator(@sizeof_short, :<=, @sizeof_int)
+ assert_operator(@sizeof_int, :<=, @sizeof_long)
+ assert_operator(@sizeof_long, :<=, @sizeof_long_long) unless @sizeof_long_long.zero?
+ assert_equal(8, @sizeof___int64) unless @sizeof___int64.zero?
+ end
+
+ def test_sizeof_struct
+ open("confdefs.h", "w") {|f|
+ f.puts "typedef struct {char x;} test1_t;"
+ }
+ assert_equal(1, mkmf {check_sizeof("test1_t", "confdefs.h")}, MKMFLOG)
+
+ open("confdefs.h", "w") {|f|
+ f.puts "typedef struct {char x, y;} test1_t;"
+ }
+ assert_equal(2, mkmf {check_sizeof("test1_t", "confdefs.h")}, MKMFLOG)
+
+ open("confdefs.h", "w") {|f|
+ f.puts "typedef struct {int x;} test1_t;"
+ }
+ assert_equal(@sizeof_int, mkmf {check_sizeof("test1_t", "confdefs.h")}, MKMFLOG)
+ open("confdefs.h", "w") {|f|
+ f.puts "typedef struct {int x, y;} test1_t;"
+ }
+ assert_equal(2 * @sizeof_int, mkmf {check_sizeof("test1_t", "confdefs.h")}, MKMFLOG)
+ end
+ end
+end
diff --git a/test/monitor/test_monitor.rb b/test/monitor/test_monitor.rb
index 064471eecb..8591570b70 100644
--- a/test/monitor/test_monitor.rb
+++ b/test/monitor/test_monitor.rb
@@ -54,6 +54,32 @@ class TestMonitor < Test::Unit::TestCase
assert_equal((1..10).to_a, ary)
end
+ def test_killed_thread_in_synchronize
+ ary = []
+ queue = Queue.new
+ t1 = Thread.start {
+ queue.pop
+ @monitor.synchronize {
+ ary << :t1
+ }
+ }
+ t2 = Thread.start {
+ queue.pop
+ @monitor.synchronize {
+ ary << :t2
+ }
+ }
+ @monitor.synchronize do
+ queue.enq(nil)
+ queue.enq(nil)
+ assert_equal([], ary)
+ t1.kill
+ t2.kill
+ ary << :main
+ end
+ assert_equal([:main], ary)
+ end
+
def test_try_enter
queue1 = Queue.new
queue2 = Queue.new
@@ -96,7 +122,8 @@ class TestMonitor < Test::Unit::TestCase
end
end
- def _test_timedwait
+ def test_timedwait
+ cond = @monitor.new_cond
b = "foo"
queue2 = Queue.new
Thread.start do
@@ -126,7 +153,7 @@ class TestMonitor < Test::Unit::TestCase
@monitor.synchronize do
assert_equal("foo", c)
result3 = cond.wait(0.1)
- assert_equal(false, result3)
+ assert_equal(true, result3) # wait always returns true in Ruby 1.9
assert_equal("foo", c)
queue3.enq(nil)
result4 = cond.wait
diff --git a/test/net/http/test_buffered_io.rb b/test/net/http/test_buffered_io.rb
new file mode 100644
index 0000000000..e24e7c1ed9
--- /dev/null
+++ b/test/net/http/test_buffered_io.rb
@@ -0,0 +1,17 @@
+require 'test/unit'
+require 'net/http'
+require 'stringio'
+
+require_relative 'utils'
+
+module Net
+ class TestBufferedIO < Test::Unit::TestCase
+ def test_eof?
+ s = StringIO.new
+ assert s.eof?
+ bio = BufferedIO.new(s)
+ assert_equal s, bio.io
+ assert_equal s.eof?, bio.eof?
+ end
+ end
+end
diff --git a/test/net/http/test_http.rb b/test/net/http/test_http.rb
index 271c50e802..660c0ffa7c 100644
--- a/test/net/http/test_http.rb
+++ b/test/net/http/test_http.rb
@@ -3,7 +3,7 @@
require 'test/unit'
require 'net/http'
require 'stringio'
-require File.expand_path("utils", File.dirname(__FILE__))
+require_relative 'utils'
module TestNetHTTP_version_1_1_methods
@@ -17,7 +17,9 @@ module TestNetHTTP_version_1_1_methods
res = http.head('/')
assert_kind_of Net::HTTPResponse, res
assert_equal $test_net_http_data_type, res['Content-Type']
- assert_equal $test_net_http_data.size, res['Content-Length'].to_i
+ unless self.is_a?(TestNetHTTP_v1_2_chunked)
+ assert_equal $test_net_http_data.size, res['Content-Length'].to_i
+ end
}
end
@@ -30,27 +32,31 @@ module TestNetHTTP_version_1_1_methods
end
def _test_get__get(http)
- res, body = http.get('/')
+ res = http.get('/')
assert_kind_of Net::HTTPResponse, res
assert_kind_of String, res.body
- assert_kind_of String, body
- assert_not_nil res['content-length']
- assert_equal $test_net_http_data.size, res['content-length'].to_i
+ unless self.is_a?(TestNetHTTP_v1_2_chunked)
+ assert_not_nil res['content-length']
+ assert_equal $test_net_http_data.size, res['content-length'].to_i
+ end
assert_equal $test_net_http_data_type, res['Content-Type']
- assert_equal $test_net_http_data.size, body.size
- assert_equal $test_net_http_data, body
assert_equal $test_net_http_data.size, res.body.size
assert_equal $test_net_http_data, res.body
+
+ assert_nothing_raised {
+ res, body = http.get('/', { 'User-Agent' => 'test' }.freeze)
+ }
end
def _test_get__iter(http)
buf = ''
- res, body = http.get('/') {|s| buf << s }
+ res = http.get('/') {|s| buf << s }
assert_kind_of Net::HTTPResponse, res
# assert_kind_of String, res.body
- # assert_kind_of String, body
- assert_not_nil res['content-length']
- assert_equal $test_net_http_data.size, res['content-length'].to_i
+ unless self.is_a?(TestNetHTTP_v1_2_chunked)
+ assert_not_nil res['content-length']
+ assert_equal $test_net_http_data.size, res['content-length'].to_i
+ end
assert_equal $test_net_http_data_type, res['Content-Type']
assert_equal $test_net_http_data.size, buf.size
assert_equal $test_net_http_data, buf
@@ -60,12 +66,13 @@ module TestNetHTTP_version_1_1_methods
def _test_get__chunked(http)
buf = ''
- res, body = http.get('/') {|s| buf << s }
+ res = http.get('/') {|s| buf << s }
assert_kind_of Net::HTTPResponse, res
# assert_kind_of String, res.body
- # assert_kind_of String, body
- assert_not_nil res['content-length']
- assert_equal $test_net_http_data.size, res['content-length'].to_i
+ unless self.is_a?(TestNetHTTP_v1_2_chunked)
+ assert_not_nil res['content-length']
+ assert_equal $test_net_http_data.size, res['content-length'].to_i
+ end
assert_equal $test_net_http_data_type, res['Content-Type']
assert_equal $test_net_http_data.size, buf.size
assert_equal $test_net_http_data, buf
@@ -85,11 +92,12 @@ module TestNetHTTP_version_1_1_methods
end
def test_get__implicit_start
- res, body = new().get('/')
+ res = new().get('/')
assert_kind_of Net::HTTPResponse, res
- assert_kind_of String, body
assert_kind_of String, res.body
- assert_not_nil res['content-length']
+ unless self.is_a?(TestNetHTTP_v1_2_chunked)
+ assert_not_nil res['content-length']
+ end
assert_equal $test_net_http_data_type, res['Content-Type']
assert_equal $test_net_http_data.size, res.body.size
assert_equal $test_net_http_data, res.body
@@ -100,7 +108,9 @@ module TestNetHTTP_version_1_1_methods
http.get2('/') {|res|
assert_kind_of Net::HTTPResponse, res
assert_kind_of Net::HTTPResponse, res.header
- assert_not_nil res['content-length']
+ unless self.is_a?(TestNetHTTP_v1_2_chunked)
+ assert_not_nil res['content-length']
+ end
assert_equal $test_net_http_data_type, res['Content-Type']
assert_kind_of String, res.body
assert_kind_of String, res.entity
@@ -122,11 +132,9 @@ module TestNetHTTP_version_1_1_methods
uheader = {}
uheader['Accept'] = 'application/octet-stream'
data = 'post data'
- res, body = http.post('/', data)
+ res = http.post('/', data)
assert_kind_of Net::HTTPResponse, res
- assert_kind_of String, body
assert_kind_of String, res.body
- assert_equal data, body
assert_equal data, res.body
assert_equal data, res.entity
end
@@ -139,24 +147,68 @@ module TestNetHTTP_version_1_1_methods
end
def test_s_post_form
+ url = "http://#{config('host')}:#{config('port')}/"
res = Net::HTTP.post_form(
- URI.parse("http://#{config('host')}:#{config('port')}/"),
+ URI.parse(url),
"a" => "x")
assert_equal ["a=x"], res.body.split(/[;&]/).sort
res = Net::HTTP.post_form(
- URI.parse("http://#{config('host')}:#{config('port')}/"),
+ URI.parse(url),
"a" => "x",
"b" => "y")
assert_equal ["a=x", "b=y"], res.body.split(/[;&]/).sort
res = Net::HTTP.post_form(
- URI.parse("http://#{config('host')}:#{config('port')}/"),
+ URI.parse(url),
"a" => ["x1", "x2"],
"b" => "y")
+ assert_equal url, res['X-request-uri']
assert_equal ["a=x1", "a=x2", "b=y"], res.body.split(/[;&]/).sort
+
+ res = Net::HTTP.post_form(
+ URI.parse(url + '?a=x'),
+ "b" => "y")
+ assert_equal url + '?a=x', res['X-request-uri']
+ assert_equal ["b=y"], res.body.split(/[;&]/).sort
+ end
+
+ def test_patch
+ start {|http|
+ _test_patch__base http
+ }
+ end
+
+ def _test_patch__base(http)
+ uheader = {}
+ uheader['Accept'] = 'application/octet-stream'
+ data = 'patch data'
+ res = http.patch('/', data)
+ assert_kind_of Net::HTTPResponse, res
+ assert_kind_of String, res.body
+ assert_equal data, res.body
+ assert_equal data, res.entity
end
+ def test_timeout_during_HTTP_session
+ bug4246 = "expected the HTTP session to have timed out but have not. c.f. [ruby-core:34203]"
+
+ # listen for connections... but deliberately do not complete SSL handshake
+ TCPServer.open(0) {|server|
+ port = server.addr[1]
+
+ conn = Net::HTTP.new('localhost', port)
+ conn.read_timeout = 1
+ conn.open_timeout = 1
+
+ th = Thread.new do
+ assert_raise(Timeout::Error) {
+ conn.get('/')
+ }
+ end
+ assert th.join(10), bug4246
+ }
+ end
end
@@ -178,8 +230,10 @@ module TestNetHTTP_version_1_2_methods
http.request(req) {|res|
assert_kind_of Net::HTTPResponse, res
assert_kind_of String, res.body
- assert_not_nil res['content-length']
- assert_equal $test_net_http_data.size, res['content-length'].to_i
+ unless self.is_a?(TestNetHTTP_v1_2_chunked)
+ assert_not_nil res['content-length']
+ assert_equal $test_net_http_data.size, res['content-length'].to_i
+ end
assert_equal $test_net_http_data.size, res.body.size
assert_equal $test_net_http_data, res.body
}
@@ -189,8 +243,10 @@ module TestNetHTTP_version_1_2_methods
req = Net::HTTP::Get.new('/')
http.request(req) {|res|
assert_kind_of Net::HTTPResponse, res
- assert_not_nil res['content-length']
- assert_equal $test_net_http_data.size, res['content-length'].to_i
+ unless self.is_a?(TestNetHTTP_v1_2_chunked)
+ assert_not_nil res['content-length']
+ assert_equal $test_net_http_data.size, res['content-length'].to_i
+ end
f = StringIO.new("".force_encoding("ASCII-8BIT"))
res.read_body f
assert_equal $test_net_http_data.bytesize, f.string.bytesize
@@ -209,8 +265,10 @@ module TestNetHTTP_version_1_2_methods
req = Net::HTTP::Head.new('/')
http.request(req) {|res|
assert_kind_of Net::HTTPResponse, res
- assert_not_nil res['content-length']
- assert_equal $test_net_http_data.size, res['content-length'].to_i
+ unless self.is_a?(TestNetHTTP_v1_2_chunked)
+ assert_not_nil res['content-length']
+ assert_equal $test_net_http_data.size, res['content-length'].to_i
+ end
assert_nil res.body
}
end
@@ -221,7 +279,9 @@ module TestNetHTTP_version_1_2_methods
req['Accept'] = $test_net_http_data_type
http.request(req, data) {|res|
assert_kind_of Net::HTTPResponse, res
- assert_equal data.size, res['content-length'].to_i
+ unless self.is_a?(TestNetHTTP_v1_2_chunked)
+ assert_equal data.size, res['content-length'].to_i
+ end
assert_kind_of String, res.body
assert_equal data, res.body
}
@@ -249,7 +309,9 @@ module TestNetHTTP_version_1_2_methods
def _test_send_request__GET(http)
res = http.send_request('GET', '/')
assert_kind_of Net::HTTPResponse, res
- assert_equal $test_net_http_data.size, res['content-length'].to_i
+ unless self.is_a?(TestNetHTTP_v1_2_chunked)
+ assert_equal $test_net_http_data.size, res['content-length'].to_i
+ end
assert_kind_of String, res.body
assert_equal $test_net_http_data, res.body
end
@@ -262,9 +324,106 @@ module TestNetHTTP_version_1_2_methods
assert_equal data.size, res.body.size
assert_equal data, res.body
end
+
+ def test_set_form
+ require 'tempfile'
+ file = Tempfile.new('ruby-test')
+ file << "\u{30c7}\u{30fc}\u{30bf}"
+ data = [
+ ['name', 'Gonbei Nanashi'],
+ ['name', "\u{540d}\u{7121}\u{3057}\u{306e}\u{6a29}\u{5175}\u{885b}"],
+ ['s"i\o', StringIO.new("\u{3042 3044 4e9c 925b}")],
+ ["file", file, filename: "ruby-test"]
+ ]
+ expected = <<"__EOM__".gsub(/\n/, "\r\n")
+--<boundary>
+Content-Disposition: form-data; name="name"
+
+Gonbei Nanashi
+--<boundary>
+Content-Disposition: form-data; name="name"
+
+\xE5\x90\x8D\xE7\x84\xA1\xE3\x81\x97\xE3\x81\xAE\xE6\xA8\xA9\xE5\x85\xB5\xE8\xA1\x9B
+--<boundary>
+Content-Disposition: form-data; name="s\\"i\\\\o"
+
+\xE3\x81\x82\xE3\x81\x84\xE4\xBA\x9C\xE9\x89\x9B
+--<boundary>
+Content-Disposition: form-data; name="file"; filename="ruby-test"
+Content-Type: application/octet-stream
+
+\xE3\x83\x87\xE3\x83\xBC\xE3\x82\xBF
+--<boundary>--
+__EOM__
+ start {|http|
+ _test_set_form_urlencoded(http, data.reject{|k,v|!v.is_a?(String)})
+ _test_set_form_multipart(http, false, data, expected)
+ _test_set_form_multipart(http, true, data, expected)
+ }
+ end
+
+ def _test_set_form_urlencoded(http, data)
+ req = Net::HTTP::Post.new('/')
+ req.set_form(data)
+ res = http.request req
+ assert_equal "name=Gonbei+Nanashi&name=%E5%90%8D%E7%84%A1%E3%81%97%E3%81%AE%E6%A8%A9%E5%85%B5%E8%A1%9B", res.body
+ end
+
+ def _test_set_form_multipart(http, chunked_p, data, expected)
+ data.each{|k,v|v.rewind rescue nil}
+ req = Net::HTTP::Post.new('/')
+ req.set_form(data, 'multipart/form-data')
+ req['Transfer-Encoding'] = 'chunked' if chunked_p
+ res = http.request req
+ body = res.body
+ assert_match(/\A--(?<boundary>\S+)/, body)
+ /\A--(?<boundary>\S+)/ =~ body
+ expected = expected.gsub(/<boundary>/, boundary)
+ assert_equal(expected, body)
+ end
+
+ def test_set_form_with_file
+ require 'tempfile'
+ file = Tempfile.new('ruby-test')
+ file.binmode
+ file << $test_net_http_data
+ filename = File.basename(file.to_path)
+ data = [['file', file]]
+ expected = <<"__EOM__".gsub(/\n/, "\r\n")
+--<boundary>
+Content-Disposition: form-data; name="file"; filename="<filename>"
+Content-Type: application/octet-stream
+
+<data>
+--<boundary>--
+__EOM__
+ expected.sub!(/<filename>/, filename)
+ expected.sub!(/<data>/, $test_net_http_data)
+ start {|http|
+ data.each{|k,v|v.rewind rescue nil}
+ req = Net::HTTP::Post.new('/')
+ req.set_form(data, 'multipart/form-data')
+ res = http.request req
+ body = res.body
+ header, _ = body.split(/\r\n\r\n/, 2)
+ assert_match(/\A--(?<boundary>\S+)/, body)
+ /\A--(?<boundary>\S+)/ =~ body
+ expected = expected.gsub(/<boundary>/, boundary)
+ assert_match(/^--(?<boundary>\S+)\r\n/, header)
+ assert_match(
+ /^Content-Disposition: form-data; name="file"; filename="#{filename}"\r\n/,
+ header)
+ assert_equal(expected, body)
+
+ data.each{|k,v|v.rewind rescue nil}
+ req['Transfer-Encoding'] = 'chunked'
+ res = http.request req
+ #assert_equal(expected, res.body)
+ }
+ end
end
-class TestNetHTTP_version_1_1 < Test::Unit::TestCase
+class TestNetHTTP_v1_2 < Test::Unit::TestCase
CONFIG = {
'host' => '127.0.0.1',
'port' => 10081,
@@ -274,19 +433,21 @@ class TestNetHTTP_version_1_1 < Test::Unit::TestCase
include TestNetHTTPUtils
include TestNetHTTP_version_1_1_methods
+ include TestNetHTTP_version_1_2_methods
def new
- Net::HTTP.version_1_1
+ Net::HTTP.version_1_2
super
end
end
-class TestNetHTTP_v1_2 < Test::Unit::TestCase
+class TestNetHTTP_v1_2_chunked < Test::Unit::TestCase
CONFIG = {
'host' => '127.0.0.1',
'port' => 10081,
'proxy_host' => nil,
'proxy_port' => nil,
+ 'chunked' => true,
}
include TestNetHTTPUtils
@@ -297,24 +458,98 @@ class TestNetHTTP_v1_2 < Test::Unit::TestCase
Net::HTTP.version_1_2
super
end
+
+ def test_chunked_break
+ i = 0
+ assert_nothing_raised("[ruby-core:29229]") {
+ start {|http|
+ http.request_get('/') {|res|
+ res.read_body {|chunk|
+ break
+ }
+ }
+ }
+ }
+ end
end
-=begin
-class TestNetHTTP_proxy < Test::Unit::TestCase
+class TestNetHTTPContinue < Test::Unit::TestCase
CONFIG = {
'host' => '127.0.0.1',
'port' => 10081,
- 'proxy_host' => '127.0.0.1',
- 'proxy_port' => 10082,
+ 'proxy_host' => nil,
+ 'proxy_port' => nil,
+ 'chunked' => true,
}
include TestNetHTTPUtils
- include TestNetHTTP_version_1_1_methods
- include TestNetHTTP_version_1_2_methods
- def new
- Net::HTTP.version_1_2
- super
+ def logfile
+ @debug = StringIO.new('')
+ end
+
+ def mount_proc(&block)
+ @server.mount('/continue', WEBrick::HTTPServlet::ProcHandler.new(block.to_proc))
+ end
+
+ def test_expect_continue
+ mount_proc {|req, res|
+ req.continue
+ res.body = req.query['body']
+ }
+ start {|http|
+ http.continue_timeout = 0.2
+ http.request_post('/continue', 'body=BODY', 'expect' => '100-continue') {|res|
+ assert_equal('BODY', res.read_body)
+ }
+ }
+ assert_match(/Expect: 100-continue/, @debug.string)
+ assert_match(/HTTP\/1.1 100 continue/, @debug.string)
+ end
+
+ def test_expect_continue_timeout
+ mount_proc {|req, res|
+ sleep 0.2
+ req.continue # just ignored because it's '100'
+ res.body = req.query['body']
+ }
+ start {|http|
+ http.continue_timeout = 0
+ http.request_post('/continue', 'body=BODY', 'expect' => '100-continue') {|res|
+ assert_equal('BODY', res.read_body)
+ }
+ }
+ assert_match(/Expect: 100-continue/, @debug.string)
+ assert_match(/HTTP\/1.1 100 continue/, @debug.string)
+ end
+
+ def test_expect_continue_error
+ mount_proc {|req, res|
+ res.status = 501
+ res.body = req.query['body']
+ }
+ start {|http|
+ http.continue_timeout = 0
+ http.request_post('/continue', 'body=ERROR', 'expect' => '100-continue') {|res|
+ assert_equal('ERROR', res.read_body)
+ }
+ }
+ assert_match(/Expect: 100-continue/, @debug.string)
+ assert_not_match(/HTTP\/1.1 100 continue/, @debug.string)
+ end
+
+ def test_expect_continue_error_while_waiting
+ mount_proc {|req, res|
+ res.status = 501
+ res.body = req.query['body']
+ }
+ start {|http|
+ http.continue_timeout = 0.5
+ http.request_post('/continue', 'body=ERROR', 'expect' => '100-continue') {|res|
+ assert_equal('ERROR', res.read_body)
+ }
+ }
+ assert_match(/Expect: 100-continue/, @debug.string)
+ assert_not_match(/HTTP\/1.1 100 continue/, @debug.string)
end
end
-=end
diff --git a/test/net/http/test_httpresponse.rb b/test/net/http/test_httpresponse.rb
new file mode 100644
index 0000000000..ab6fdd0ea9
--- /dev/null
+++ b/test/net/http/test_httpresponse.rb
@@ -0,0 +1,40 @@
+require 'net/http'
+require 'test/unit'
+require 'stringio'
+
+class HTTPResponseTest < Test::Unit::TestCase
+ def test_singleline_header
+ io = dummy_io(<<EOS.gsub(/\n/, "\r\n"))
+HTTP/1.1 200 OK
+Content-Length: 5
+Connection: close
+
+hello
+EOS
+ res = Net::HTTPResponse.read_new(io)
+ assert_equal('5', res.header['content-length'])
+ assert_equal('close', res.header['connection'])
+ end
+
+ def test_multiline_header
+ io = dummy_io(<<EOS.gsub(/\n/, "\r\n"))
+HTTP/1.1 200 OK
+X-Foo: XXX
+ YYY
+X-Bar:
+ XXX
+\tYYY
+
+hello
+EOS
+ res = Net::HTTPResponse.read_new(io)
+ assert_equal('XXX YYY', res.header['x-foo'])
+ assert_equal('XXX YYY', res.header['x-bar'])
+ end
+
+private
+
+ def dummy_io(str)
+ Net::BufferedIO.new(StringIO.new(str))
+ end
+end
diff --git a/test/net/http/test_https.rb b/test/net/http/test_https.rb
index adb50c58fb..983ba7f456 100644
--- a/test/net/http/test_https.rb
+++ b/test/net/http/test_https.rb
@@ -2,6 +2,7 @@ require "test/unit"
begin
require 'net/https'
require 'stringio'
+ require 'timeout'
require File.expand_path("../../openssl/utils", File.dirname(__FILE__))
require File.expand_path("utils", File.dirname(__FILE__))
rescue LoadError
@@ -23,7 +24,7 @@ class TestNetHTTPS < Test::Unit::TestCase
CONFIG = {
'host' => '127.0.0.1',
- 'port' => 10081,
+ 'port' => 10082, # different from test_http.rb
'proxy_host' => nil,
'proxy_port' => nil,
'ssl_enable' => true,
@@ -40,6 +41,8 @@ class TestNetHTTPS < Test::Unit::TestCase
http.request_get("/") {|res|
assert_equal($test_net_http_data, res.body)
}
+ rescue SystemCallError
+ skip $!
end
def test_post
@@ -52,6 +55,8 @@ class TestNetHTTPS < Test::Unit::TestCase
http.request_post("/", data) {|res|
assert_equal(data, res.body)
}
+ rescue SystemCallError
+ skip $!
end
if ENV["RUBY_OPENSSL_TEST_ALL"]
@@ -72,13 +77,19 @@ class TestNetHTTPS < Test::Unit::TestCase
http.request_get("/") {|res|
assert_equal($test_net_http_data, res.body)
}
+ rescue SystemCallError
+ skip $!
end
def test_certificate_verify_failure
http = Net::HTTP.new("localhost", config("port"))
http.use_ssl = true
ex = assert_raise(OpenSSL::SSL::SSLError){
- http.request_get("/") {|res| }
+ begin
+ http.request_get("/") {|res| }
+ rescue SystemCallError
+ skip $!
+ end
}
assert_match(/certificate verify failed/, ex.message)
end
@@ -92,6 +103,27 @@ class TestNetHTTPS < Test::Unit::TestCase
ex = assert_raise(OpenSSL::SSL::SSLError){
http.request_get("/") {|res| }
}
- assert_match(/hostname was not match/, ex.message)
+ assert_match(/hostname does not match/, ex.message)
+ end
+
+ def test_timeout_during_SSL_handshake
+ bug4246 = "expected the SSL connection to have timed out but have not. [ruby-core:34203]"
+
+ # listen for connections... but deliberately do not complete SSL handshake
+ TCPServer.open(0) {|server|
+ port = server.addr[1]
+
+ conn = Net::HTTP.new('localhost', port)
+ conn.use_ssl = true
+ conn.read_timeout = 1
+ conn.open_timeout = 1
+
+ th = Thread.new do
+ assert_raise(Timeout::Error) {
+ conn.get('/')
+ }
+ end
+ assert th.join(10), bug4246
+ }
end
end if defined?(OpenSSL)
diff --git a/test/net/http/utils.rb b/test/net/http/utils.rb
index e685a8ff61..50f616f29f 100644
--- a/test/net/http/utils.rb
+++ b/test/net/http/utils.rb
@@ -31,9 +31,11 @@ module TestNetHTTPUtils
end
def teardown
- @server.shutdown
- until @server.status == :Stop
- sleep 0.1
+ if @server
+ @server.shutdown
+ until @server.status == :Stop
+ sleep 0.1
+ end
end
# resume global state
Net::HTTP.version_1_2
@@ -48,6 +50,7 @@ module TestNetHTTPUtils
:ShutdownSocketWithoutClose => true,
:ServerType => Thread,
}
+ server_config[:OutputBufferSize] = 4 if config('chunked')
if defined?(OpenSSL) and config('ssl_enable')
server_config.update({
:SSLEnable => true,
@@ -56,7 +59,7 @@ module TestNetHTTPUtils
})
end
@server = WEBrick::HTTPServer.new(server_config)
- @server.mount('/', Servlet)
+ @server.mount('/', Servlet, config('chunked'))
@server.start
n_try_max = 5
begin
@@ -75,15 +78,28 @@ module TestNetHTTPUtils
$test_net_http_data_type = 'application/octet-stream'
class Servlet < WEBrick::HTTPServlet::AbstractServlet
+ def initialize(this, chunked = false)
+ @chunked = chunked
+ end
+
def do_GET(req, res)
res['Content-Type'] = $test_net_http_data_type
res.body = $test_net_http_data
+ res.chunked = @chunked
end
# echo server
def do_POST(req, res)
res['Content-Type'] = req['Content-Type']
+ res['X-request-uri'] = req.request_uri.to_s
+ res.body = req.body
+ res.chunked = @chunked
+ end
+
+ def do_PATCH(req, res)
+ res['Content-Type'] = req['Content-Type']
res.body = req.body
+ res.chunked = @chunked
end
end
diff --git a/test/net/imap/cacert.pem b/test/net/imap/cacert.pem
index 8a48e07a90..bd7e68ac95 100644
--- a/test/net/imap/cacert.pem
+++ b/test/net/imap/cacert.pem
@@ -2,61 +2,59 @@ Certificate:
Data:
Version: 3 (0x2)
Serial Number:
- d2:9c:5c:81:a3:b0:3b:ec
+ 9f:dc:f7:94:98:05:43:4c
Signature Algorithm: sha1WithRSAEncryption
- Issuer: C=JP, ST=Shimane, O=Ruby Core Team, CN=Ruby Test CA
+ Issuer: C=JP, ST=Shimane, L=Matz-e city, O=Ruby Core Team, CN=Ruby Test CA/emailAddress=security@ruby-lang.org
Validity
- Not Before: Dec 22 08:35:19 2007 GMT
- Not After : Dec 21 08:35:19 2010 GMT
- Subject: C=JP, ST=Shimane, O=Ruby Core Team, CN=Ruby Test CA
+ Not Before: Dec 23 10:21:33 2010 GMT
+ Not After : Jan 1 10:21:33 2014 GMT
+ Subject: C=JP, ST=Shimane, L=Matz-e city, O=Ruby Core Team, CN=Ruby Test CA/emailAddress=security@ruby-lang.org
Subject Public Key Info:
Public Key Algorithm: rsaEncryption
- RSA Public Key: (1024 bit)
- Modulus (1024 bit):
- 00:ee:b1:1a:06:25:1f:29:80:a1:59:ef:0f:0d:8b:
- 5a:88:40:73:56:95:d9:db:b4:71:3c:36:7f:b4:fc:
- 68:51:54:8b:8d:9e:41:27:fb:31:d1:7a:6c:5c:21:
- 30:3d:22:f6:7a:92:c3:fa:b3:85:36:44:76:22:6c:
- 08:82:78:89:7d:c3:19:d4:ec:7d:05:5b:75:cd:38:
- 1c:89:03:ef:02:aa:7e:6d:5b:36:ea:ad:e2:0b:ec:
- 4b:e2:36:bf:c0:49:44:93:a6:cc:da:40:be:5f:c0:
- 75:3b:be:c0:28:db:42:57:90:3b:83:af:2d:60:9a:
- c6:b1:bc:5c:68:12:2d:70:25
+ Public-Key: (1024 bit)
+ Modulus:
+ 00:ce:be:2c:9f:47:ba:db:9c:9c:5b:f0:38:3b:f3:
+ 74:20:37:76:23:9f:84:1c:81:90:b4:3e:00:20:34:
+ 98:7e:81:69:50:a1:c3:65:96:ea:fa:00:da:8c:cc:
+ 53:3f:ba:3c:d0:50:7a:5a:b4:6b:ac:d3:2e:18:ca:
+ 2a:69:b3:6a:6f:38:c2:32:a8:06:b6:0a:30:a9:ee:
+ 03:38:e9:05:a5:19:23:54:a8:3c:b9:08:ad:2b:72:
+ 23:df:93:22:c4:46:a8:ea:f1:a6:e9:30:4a:3f:83:
+ 39:e9:62:8e:8b:a3:5e:67:89:1d:7c:75:de:05:aa:
+ 58:b1:b7:79:7c:10:80:6d:87
Exponent: 65537 (0x10001)
X509v3 extensions:
X509v3 Subject Key Identifier:
- AE:F5:39:FE:D2:35:A2:2C:1E:CB:0E:08:4C:0E:5A:DC:44:99:E2:9C
+ 41:C9:49:37:B1:FA:61:E3:BA:D7:19:3D:D9:DA:8C:B9:82:C9:B4:6A
X509v3 Authority Key Identifier:
- keyid:AE:F5:39:FE:D2:35:A2:2C:1E:CB:0E:08:4C:0E:5A:DC:44:99:E2:9C
- DirName:/C=JP/ST=Shimane/O=Ruby Core Team/CN=Ruby Test CA
- serial:D2:9C:5C:81:A3:B0:3B:EC
+ keyid:41:C9:49:37:B1:FA:61:E3:BA:D7:19:3D:D9:DA:8C:B9:82:C9:B4:6A
X509v3 Basic Constraints:
CA:TRUE
Signature Algorithm: sha1WithRSAEncryption
- 9e:28:89:81:83:55:1b:38:cb:85:86:ec:ee:cc:f4:cf:f0:47:
- 61:72:07:f2:2e:ca:67:f7:c8:29:b5:3c:34:d2:cf:c2:f7:9c:
- 4d:ce:8d:37:24:57:85:c1:0e:27:86:81:15:99:ec:af:05:ae:
- 09:96:f6:f7:5a:c0:d2:a4:82:ed:d6:d3:26:e9:3d:50:50:0c:
- 71:c2:6e:9a:50:30:73:8a:94:0d:c1:9c:1a:da:76:80:b8:8b:
- 46:ec:10:93:6c:8d:cb:ab:eb:12:5d:e0:6f:1a:5a:ac:5c:34:
- 12:df:7b:a7:dc:b6:0f:d6:3e:ac:2f:69:db:11:aa:1d:c4:90:
- f6:fa
+ 86:00:33:b9:dd:ff:5f:83:59:5f:c3:29:3c:d7:11:db:10:b3:
+ d7:d1:70:fb:0a:c6:74:85:c6:ea:e1:15:c4:92:f8:0e:11:cc:
+ ff:a6:3c:31:c2:2c:66:d8:fe:63:93:9f:b0:97:e6:f5:bc:5c:
+ 80:68:96:5d:eb:77:b9:23:dd:68:a7:49:03:ff:22:48:55:f1:
+ 39:7c:20:21:ff:64:52:e1:f6:cf:3c:b3:4d:2c:5c:03:62:ea:
+ c5:49:99:07:fa:8d:ff:7b:c2:75:0c:ca:24:b5:0b:f5:b7:57:
+ 3a:10:f0:8a:bb:9a:e8:92:4d:d5:6f:c2:a2:29:36:61:78:a4:
+ dc:7b
-----BEGIN CERTIFICATE-----
-MIICzjCCAjegAwIBAgIJANKcXIGjsDvsMA0GCSqGSIb3DQEBBQUAME8xCzAJBgNV
-BAYTAkpQMRAwDgYDVQQIEwdTaGltYW5lMRcwFQYDVQQKEw5SdWJ5IENvcmUgVGVh
-bTEVMBMGA1UEAxMMUnVieSBUZXN0IENBMB4XDTA3MTIyMjA4MzUxOVoXDTEwMTIy
-MTA4MzUxOVowTzELMAkGA1UEBhMCSlAxEDAOBgNVBAgTB1NoaW1hbmUxFzAVBgNV
-BAoTDlJ1YnkgQ29yZSBUZWFtMRUwEwYDVQQDEwxSdWJ5IFRlc3QgQ0EwgZ8wDQYJ
-KoZIhvcNAQEBBQADgY0AMIGJAoGBAO6xGgYlHymAoVnvDw2LWohAc1aV2du0cTw2
-f7T8aFFUi42eQSf7MdF6bFwhMD0i9nqSw/qzhTZEdiJsCIJ4iX3DGdTsfQVbdc04
-HIkD7wKqfm1bNuqt4gvsS+I2v8BJRJOmzNpAvl/AdTu+wCjbQleQO4OvLWCaxrG8
-XGgSLXAlAgMBAAGjgbEwga4wHQYDVR0OBBYEFK71Of7SNaIsHssOCEwOWtxEmeKc
-MH8GA1UdIwR4MHaAFK71Of7SNaIsHssOCEwOWtxEmeKcoVOkUTBPMQswCQYDVQQG
-EwJKUDEQMA4GA1UECBMHU2hpbWFuZTEXMBUGA1UEChMOUnVieSBDb3JlIFRlYW0x
-FTATBgNVBAMTDFJ1YnkgVGVzdCBDQYIJANKcXIGjsDvsMAwGA1UdEwQFMAMBAf8w
-DQYJKoZIhvcNAQEFBQADgYEAniiJgYNVGzjLhYbs7sz0z/BHYXIH8i7KZ/fIKbU8
-NNLPwvecTc6NNyRXhcEOJ4aBFZnsrwWuCZb291rA0qSC7dbTJuk9UFAMccJumlAw
-c4qUDcGcGtp2gLiLRuwQk2yNy6vrEl3gbxparFw0Et97p9y2D9Y+rC9p2xGqHcSQ
-9vo=
+MIIC6DCCAlGgAwIBAgIJAJ/c95SYBUNMMA0GCSqGSIb3DQEBBQUAMIGMMQswCQYD
+VQQGEwJKUDEQMA4GA1UECAwHU2hpbWFuZTEUMBIGA1UEBwwLTWF0ei1lIGNpdHkx
+FzAVBgNVBAoMDlJ1YnkgQ29yZSBUZWFtMRUwEwYDVQQDDAxSdWJ5IFRlc3QgQ0Ex
+JTAjBgkqhkiG9w0BCQEWFnNlY3VyaXR5QHJ1YnktbGFuZy5vcmcwHhcNMTAxMjIz
+MTAyMTMzWhcNMTQwMTAxMTAyMTMzWjCBjDELMAkGA1UEBhMCSlAxEDAOBgNVBAgM
+B1NoaW1hbmUxFDASBgNVBAcMC01hdHotZSBjaXR5MRcwFQYDVQQKDA5SdWJ5IENv
+cmUgVGVhbTEVMBMGA1UEAwwMUnVieSBUZXN0IENBMSUwIwYJKoZIhvcNAQkBFhZz
+ZWN1cml0eUBydWJ5LWxhbmcub3JnMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKB
+gQDOviyfR7rbnJxb8Dg783QgN3Yjn4QcgZC0PgAgNJh+gWlQocNllur6ANqMzFM/
+ujzQUHpatGus0y4Yyipps2pvOMIyqAa2CjCp7gM46QWlGSNUqDy5CK0rciPfkyLE
+Rqjq8abpMEo/gznpYo6Lo15niR18dd4Fqlixt3l8EIBthwIDAQABo1AwTjAdBgNV
+HQ4EFgQUQclJN7H6YeO61xk92dqMuYLJtGowHwYDVR0jBBgwFoAUQclJN7H6YeO6
+1xk92dqMuYLJtGowDAYDVR0TBAUwAwEB/zANBgkqhkiG9w0BAQUFAAOBgQCGADO5
+3f9fg1lfwyk81xHbELPX0XD7CsZ0hcbq4RXEkvgOEcz/pjwxwixm2P5jk5+wl+b1
+vFyAaJZd63e5I91op0kD/yJIVfE5fCAh/2RS4fbPPLNNLFwDYurFSZkH+o3/e8J1
+DMoktQv1t1c6EPCKu5rokk3Vb8KiKTZheKTcew==
-----END CERTIFICATE-----
diff --git a/test/net/imap/server.crt b/test/net/imap/server.crt
index 77803ee385..d848b26ab0 100644
--- a/test/net/imap/server.crt
+++ b/test/net/imap/server.crt
@@ -1,12 +1,61 @@
+Certificate:
+ Data:
+ Version: 3 (0x2)
+ Serial Number: 0 (0x0)
+ Signature Algorithm: sha1WithRSAEncryption
+ Issuer: C=JP, ST=Shimane, L=Matz-e city, O=Ruby Core Team, CN=Ruby Test CA/emailAddress=security@ruby-lang.org
+ Validity
+ Not Before: Dec 23 10:23:52 2010 GMT
+ Not After : Jan 1 10:23:52 2014 GMT
+ Subject: C=JP, ST=Shimane, O=Ruby Core Team, OU=Ruby Test, CN=localhost
+ Subject Public Key Info:
+ Public Key Algorithm: rsaEncryption
+ Public-Key: (1024 bit)
+ Modulus:
+ 00:db:75:d0:45:de:b1:df:bf:71:a0:0e:b0:a5:e6:
+ bc:f4:1c:9d:e5:25:67:64:c5:7b:cb:f1:af:c6:be:
+ 9a:aa:ea:7e:0f:cc:05:af:ef:40:69:06:b2:c9:13:
+ 9d:7e:eb:a2:06:e2:ea:7d:07:c7:c7:99:c7:fb:d5:
+ b8:eb:63:77:62:2b:18:12:c3:53:58:d0:f5:c7:40:
+ 0c:01:d1:26:82:34:16:09:e3:dc:65:f4:dc:bb:5d:
+ a5:41:60:e7:a9:74:ba:d7:4c:b6:a3:9c:c5:8c:89:
+ af:cb:e8:9f:05:fe:ea:fe:64:24:bf:e7:ed:e3:f6:
+ d0:fc:d6:eb:fc:06:82:10:fb
+ Exponent: 65537 (0x10001)
+ X509v3 extensions:
+ X509v3 Basic Constraints:
+ CA:FALSE
+ Netscape Comment:
+ OpenSSL Generated Certificate
+ X509v3 Subject Key Identifier:
+ E8:7E:58:AC:13:7B:03:22:8D:9E:AF:32:0B:84:89:80:80:0C:1E:C2
+ X509v3 Authority Key Identifier:
+ keyid:41:C9:49:37:B1:FA:61:E3:BA:D7:19:3D:D9:DA:8C:B9:82:C9:B4:6A
+
+ Signature Algorithm: sha1WithRSAEncryption
+ ae:ee:cd:fe:c9:af:48:0b:50:37:ac:6a:f6:68:90:9b:67:df:
+ 6f:2d:17:c9:3c:a5:da:ad:39:dc:2a:5b:07:88:26:38:19:30:
+ d6:95:cf:10:69:c7:92:14:83:be:f1:b5:8e:6f:d9:91:51:c5:
+ 63:ae:1c:89:ac:27:bf:4f:2a:8f:4e:0c:57:42:0a:c9:8e:0c:
+ f4:f3:02:f7:ea:44:b6:e4:47:05:af:4e:74:e4:87:87:d9:c8:
+ 76:ed:ab:32:7c:f0:31:34:10:14:bc:a6:37:cd:d7:dc:33:da:
+ 82:d3:d4:9b:e9:d5:cd:38:cc:fa:81:5f:4e:fd:5f:53:05:5d:
+ 76:f9
-----BEGIN CERTIFICATE-----
-MIIB0jCCATsCAQIwDQYJKoZIhvcNAQEFBQAwTzELMAkGA1UEBhMCSlAxEDAOBgNV
-BAgTB1NoaW1hbmUxFzAVBgNVBAoTDlJ1YnkgQ29yZSBUZWFtMRUwEwYDVQQDEwxS
-dWJ5IFRlc3QgQ0EwHhcNMDcxMjIyMDg0MDA1WhcNMTcxMjE5MDg0MDA1WjAUMRIw
-EAYDVQQDEwlsb2NhbGhvc3QwgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBANt1
-0EXesd+/caAOsKXmvPQcneUlZ2TFe8vxr8a+mqrqfg/MBa/vQGkGsskTnX7rogbi
-6n0Hx8eZx/vVuOtjd2IrGBLDU1jQ9cdADAHRJoI0Fgnj3GX03LtdpUFg56l0utdM
-tqOcxYyJr8vonwX+6v5kJL/n7eP20PzW6/wGghD7AgMBAAEwDQYJKoZIhvcNAQEF
-BQADgYEA2zl2U40/ogkC3k1ccoO4n/szaGW/wfxFREjn9BCvSB8iGRYNCGO/MdZ6
-maaSuAPdIw6RdFncL6dC3xf5IrriCyOmdZM/O8hgC/sNOnWtRAA/+XJqs0UnZ/A2
-f06bSqE1BTSiUU5wY4UraN2aDgnbFonCrY5RipZgLYaWyEbRtF8=
+MIIC3jCCAkegAwIBAgIBADANBgkqhkiG9w0BAQUFADCBjDELMAkGA1UEBhMCSlAx
+EDAOBgNVBAgMB1NoaW1hbmUxFDASBgNVBAcMC01hdHotZSBjaXR5MRcwFQYDVQQK
+DA5SdWJ5IENvcmUgVGVhbTEVMBMGA1UEAwwMUnVieSBUZXN0IENBMSUwIwYJKoZI
+hvcNAQkBFhZzZWN1cml0eUBydWJ5LWxhbmcub3JnMB4XDTEwMTIyMzEwMjM1MloX
+DTE0MDEwMTEwMjM1MlowYDELMAkGA1UEBhMCSlAxEDAOBgNVBAgMB1NoaW1hbmUx
+FzAVBgNVBAoMDlJ1YnkgQ29yZSBUZWFtMRIwEAYDVQQLDAlSdWJ5IFRlc3QxEjAQ
+BgNVBAMMCWxvY2FsaG9zdDCBnzANBgkqhkiG9w0BAQEFAAOBjQAwgYkCgYEA23XQ
+Rd6x379xoA6wpea89Byd5SVnZMV7y/Gvxr6aqup+D8wFr+9AaQayyROdfuuiBuLq
+fQfHx5nH+9W462N3YisYEsNTWND1x0AMAdEmgjQWCePcZfTcu12lQWDnqXS610y2
+o5zFjImvy+ifBf7q/mQkv+ft4/bQ/Nbr/AaCEPsCAwEAAaN7MHkwCQYDVR0TBAIw
+ADAsBglghkgBhvhCAQ0EHxYdT3BlblNTTCBHZW5lcmF0ZWQgQ2VydGlmaWNhdGUw
+HQYDVR0OBBYEFOh+WKwTewMijZ6vMguEiYCADB7CMB8GA1UdIwQYMBaAFEHJSTex
++mHjutcZPdnajLmCybRqMA0GCSqGSIb3DQEBBQUAA4GBAK7uzf7Jr0gLUDesavZo
+kJtn328tF8k8pdqtOdwqWweIJjgZMNaVzxBpx5IUg77xtY5v2ZFRxWOuHImsJ79P
+Ko9ODFdCCsmODPTzAvfqRLbkRwWvTnTkh4fZyHbtqzJ88DE0EBS8pjfN19wz2oLT
+1Jvp1c04zPqBX079X1MFXXb5
-----END CERTIFICATE-----
diff --git a/test/net/imap/test_imap.rb b/test/net/imap/test_imap.rb
index cff09d3cbc..c67886fed4 100644
--- a/test/net/imap/test_imap.rb
+++ b/test/net/imap/test_imap.rb
@@ -6,10 +6,25 @@ class IMAPTest < Test::Unit::TestCase
SERVER_KEY = File.expand_path("server.key", File.dirname(__FILE__))
SERVER_CERT = File.expand_path("server.crt", File.dirname(__FILE__))
+ SERVER_ADDR = "127.0.0.1"
+
+ def setup
+ @do_not_reverse_lookup = Socket.do_not_reverse_lookup
+ Socket.do_not_reverse_lookup = true
+ end
+
+ def teardown
+ Socket.do_not_reverse_lookup = @do_not_reverse_lookup
+ end
+
def test_encode_utf7
utf8 = "\357\274\241\357\274\242\357\274\243".force_encoding("UTF-8")
s = Net::IMAP.encode_utf7(utf8)
assert_equal("&,yH,Iv8j-".force_encoding("UTF-8"), s)
+
+ utf8 = "\343\201\202&".force_encoding("UTF-8")
+ s = Net::IMAP.encode_utf7(utf8)
+ assert_equal("&MEI-&-".force_encoding("UTF-8"), s)
end
def test_decode_utf7
@@ -18,13 +33,29 @@ class IMAPTest < Test::Unit::TestCase
assert_equal(utf8, s)
end
+ def test_format_date
+ time = Time.mktime(2009, 7, 24)
+ s = Net::IMAP.format_date(time)
+ assert_equal("24-Jul-2009", s)
+ end
+
+ def test_format_datetime
+ time = Time.mktime(2009, 7, 24, 1, 23, 45)
+ s = Net::IMAP.format_datetime(time)
+ assert_match(/\A24-Jul-2009 01:23 [+\-]\d{4}\z/, s)
+ end
+
def test_imaps_unknown_ca
if defined?(OpenSSL)
assert_raise(OpenSSL::SSL::SSLError) do
imaps_test do |port|
- Net::IMAP.new("localhost",
- :port => port,
- :ssl => true)
+ begin
+ Net::IMAP.new("localhost",
+ :port => port,
+ :ssl => true)
+ rescue SystemCallError
+ skip $!
+ end
end
end
end
@@ -34,9 +65,13 @@ class IMAPTest < Test::Unit::TestCase
if defined?(OpenSSL)
assert_nothing_raised do
imaps_test do |port|
- Net::IMAP.new("localhost",
- :port => port,
- :ssl => { :ca_file => CA_FILE })
+ begin
+ Net::IMAP.new("localhost",
+ :port => port,
+ :ssl => { :ca_file => CA_FILE })
+ rescue SystemCallError
+ skip $!
+ end
end
end
end
@@ -46,7 +81,7 @@ class IMAPTest < Test::Unit::TestCase
if defined?(OpenSSL)
assert_nothing_raised do
imaps_test do |port|
- Net::IMAP.new("localhost",
+ Net::IMAP.new(SERVER_ADDR,
:port => port,
:ssl => { :verify_mode => OpenSSL::SSL::VERIFY_NONE })
end
@@ -58,7 +93,9 @@ class IMAPTest < Test::Unit::TestCase
if defined?(OpenSSL)
assert_raise(OpenSSL::SSL::SSLError) do
imaps_test do |port|
- Net::IMAP.new("127.0.0.1",
+ # SERVER_ADDR is different from the hostname in the certificate,
+ # so the following code should raise a SSLError.
+ Net::IMAP.new(SERVER_ADDR,
:port => port,
:ssl => { :ca_file => CA_FILE })
end
@@ -75,6 +112,8 @@ class IMAPTest < Test::Unit::TestCase
imap
end
end
+ rescue SystemCallError
+ skip $!
ensure
if imap && !imap.disconnected?
imap.disconnect
@@ -82,7 +121,7 @@ class IMAPTest < Test::Unit::TestCase
end
def test_unexpected_eof
- server = TCPServer.new(0)
+ server = create_tcp_server
port = server.addr[1]
Thread.start do
begin
@@ -100,7 +139,7 @@ class IMAPTest < Test::Unit::TestCase
end
begin
begin
- imap = Net::IMAP.new("localhost", :port => port)
+ imap = Net::IMAP.new(SERVER_ADDR, :port => port)
assert_raise(EOFError) do
imap.logout
end
@@ -112,10 +151,277 @@ class IMAPTest < Test::Unit::TestCase
end
end
+ def test_idle
+ server = create_tcp_server
+ port = server.addr[1]
+ requests = []
+ Thread.start do
+ begin
+ sock = server.accept
+ begin
+ sock.print("* OK test server\r\n")
+ requests.push(sock.gets)
+ sock.print("+ idling\r\n")
+ sock.print("* 3 EXISTS\r\n")
+ sock.print("* 2 EXPUNGE\r\n")
+ requests.push(sock.gets)
+ sock.print("RUBY0001 OK IDLE terminated\r\n")
+ sock.gets
+ sock.print("* BYE terminating connection\r\n")
+ sock.print("RUBY0002 OK LOGOUT completed\r\n")
+ ensure
+ sock.close
+ end
+ rescue
+ end
+ end
+ begin
+ begin
+ imap = Net::IMAP.new(SERVER_ADDR, :port => port)
+ responses = []
+ imap.idle do |res|
+ responses.push(res)
+ if res.name == "EXPUNGE"
+ imap.idle_done
+ end
+ end
+ assert_equal(3, responses.length)
+ assert_instance_of(Net::IMAP::ContinuationRequest, responses[0])
+ assert_equal("EXISTS", responses[1].name)
+ assert_equal(3, responses[1].data)
+ assert_equal("EXPUNGE", responses[2].name)
+ assert_equal(2, responses[2].data)
+ assert_equal(2, requests.length)
+ assert_equal("RUBY0001 IDLE\r\n", requests[0])
+ assert_equal("DONE\r\n", requests[1])
+ imap.logout
+ ensure
+ imap.disconnect if imap
+ end
+ ensure
+ server.close
+ end
+ end
+
+ def test_exception_during_idle
+ server = create_tcp_server
+ port = server.addr[1]
+ requests = []
+ Thread.start do
+ begin
+ sock = server.accept
+ begin
+ sock.print("* OK test server\r\n")
+ requests.push(sock.gets)
+ sock.print("+ idling\r\n")
+ sock.print("* 3 EXISTS\r\n")
+ sock.print("* 2 EXPUNGE\r\n")
+ requests.push(sock.gets)
+ sock.print("RUBY0001 OK IDLE terminated\r\n")
+ sock.gets
+ sock.print("* BYE terminating connection\r\n")
+ sock.print("RUBY0002 OK LOGOUT completed\r\n")
+ ensure
+ sock.close
+ end
+ rescue
+ end
+ end
+ begin
+ begin
+ imap = Net::IMAP.new(SERVER_ADDR, :port => port)
+ begin
+ th = Thread.current
+ m = Monitor.new
+ in_idle = false
+ exception_raised = false
+ c = m.new_cond
+ Thread.start do
+ m.synchronize do
+ until in_idle
+ c.wait(0.1)
+ end
+ end
+ th.raise(Interrupt)
+ exception_raised = true
+ end
+ imap.idle do |res|
+ m.synchronize do
+ in_idle = true
+ c.signal
+ until exception_raised
+ c.wait(0.1)
+ end
+ end
+ end
+ rescue Interrupt
+ end
+ assert_equal(2, requests.length)
+ assert_equal("RUBY0001 IDLE\r\n", requests[0])
+ assert_equal("DONE\r\n", requests[1])
+ imap.logout
+ ensure
+ imap.disconnect if imap
+ end
+ ensure
+ server.close
+ end
+ end
+
+ def test_idle_done_not_during_idle
+ server = create_tcp_server
+ port = server.addr[1]
+ requests = []
+ Thread.start do
+ begin
+ sock = server.accept
+ begin
+ sock.print("* OK test server\r\n")
+ ensure
+ sock.close
+ end
+ rescue
+ end
+ end
+ begin
+ begin
+ imap = Net::IMAP.new(SERVER_ADDR, :port => port)
+ assert_raise(Net::IMAP::Error) do
+ imap.idle_done
+ end
+ ensure
+ imap.disconnect if imap
+ end
+ ensure
+ server.close
+ end
+ end
+
+ def test_unexpected_bye
+ server = create_tcp_server
+ port = server.addr[1]
+ Thread.start do
+ begin
+ sock = server.accept
+ begin
+ sock.print("* OK Gimap ready for requests from 75.101.246.151 33if2752585qyk.26\r\n")
+ sock.gets
+ sock.print("* BYE System Error 33if2752585qyk.26\r\n")
+ ensure
+ sock.close
+ end
+ rescue
+ end
+ end
+ begin
+ begin
+ imap = Net::IMAP.new(SERVER_ADDR, :port => port)
+ assert_raise(Net::IMAP::ByeResponseError) do
+ imap.login("user", "password")
+ end
+ end
+ ensure
+ server.close
+ end
+ end
+
+ def test_exception_during_shutdown
+ server = create_tcp_server
+ port = server.addr[1]
+ Thread.start do
+ begin
+ sock = server.accept
+ begin
+ sock.print("* OK test server\r\n")
+ sock.gets
+ sock.print("* BYE terminating connection\r\n")
+ sock.print("RUBY0001 OK LOGOUT completed\r\n")
+ ensure
+ sock.close
+ end
+ rescue
+ end
+ end
+ begin
+ begin
+ imap = Net::IMAP.new(SERVER_ADDR, :port => port)
+ imap.instance_eval do
+ def @sock.shutdown(*args)
+ super
+ ensure
+ raise "error"
+ end
+ end
+ imap.logout
+ ensure
+ assert_raise(RuntimeError) do
+ imap.disconnect
+ end
+ end
+ ensure
+ server.close
+ end
+ end
+
+ def test_connection_closed_during_idle
+ server = create_tcp_server
+ port = server.addr[1]
+ requests = []
+ sock = nil
+ Thread.start do
+ begin
+ sock = server.accept
+ sock.print("* OK test server\r\n")
+ requests.push(sock.gets)
+ sock.print("+ idling\r\n")
+ rescue
+ end
+ end
+ begin
+ imap = Net::IMAP.new(SERVER_ADDR, :port => port)
+ begin
+ th = Thread.current
+ m = Monitor.new
+ in_idle = false
+ exception_raised = false
+ c = m.new_cond
+ Thread.start do
+ m.synchronize do
+ until in_idle
+ c.wait(0.1)
+ end
+ end
+ sock.close
+ exception_raised = true
+ end
+ assert_raise(Net::IMAP::Error) do
+ imap.idle do |res|
+ m.synchronize do
+ in_idle = true
+ c.signal
+ until exception_raised
+ c.wait(0.1)
+ end
+ end
+ end
+ end
+ assert_equal(1, requests.length)
+ assert_equal("RUBY0001 IDLE\r\n", requests[0])
+ ensure
+ imap.disconnect if imap
+ end
+ ensure
+ server.close
+ if sock && !sock.closed?
+ sock.close
+ end
+ end
+ end
+
private
def imaps_test
- server = TCPServer.new(0)
+ server = create_tcp_server
port = server.addr[1]
ctx = OpenSSL::SSL::SSLContext.new
ctx.ca_file = CA_FILE
@@ -153,7 +459,7 @@ class IMAPTest < Test::Unit::TestCase
end
def starttls_test
- server = TCPServer.new(0)
+ server = create_tcp_server
port = server.addr[1]
Thread.start do
begin
@@ -184,12 +490,16 @@ class IMAPTest < Test::Unit::TestCase
begin
begin
imap = yield(port)
- imap.logout
+ imap.logout if !imap.disconnected?
ensure
- imap.disconnect if imap
+ imap.disconnect if imap && !imap.disconnected?
end
ensure
server.close
end
end
+
+ def create_tcp_server
+ return TCPServer.new(SERVER_ADDR, 0)
+ end
end
diff --git a/test/net/imap/test_imap_response_parser.rb b/test/net/imap/test_imap_response_parser.rb
new file mode 100644
index 0000000000..6a5a117408
--- /dev/null
+++ b/test/net/imap/test_imap_response_parser.rb
@@ -0,0 +1,119 @@
+require "net/imap"
+require "test/unit"
+
+class IMAPResponseParserTest < Test::Unit::TestCase
+ def setup
+ @do_not_reverse_lookup = Socket.do_not_reverse_lookup
+ Socket.do_not_reverse_lookup = true
+ if Net::IMAP.respond_to?(:max_flag_count)
+ @max_flag_count = Net::IMAP.max_flag_count
+ Net::IMAP.max_flag_count = 3
+ end
+ end
+
+ def teardown
+ Socket.do_not_reverse_lookup = @do_not_reverse_lookup
+ if Net::IMAP.respond_to?(:max_flag_count)
+ Net::IMAP.max_flag_count = @max_flag_count
+ end
+ end
+
+ def test_flag_list_safe
+ parser = Net::IMAP::ResponseParser.new
+ response = lambda {
+ $SAFE = 1
+ parser.parse(<<EOF.gsub(/\n/, "\r\n").taint)
+* LIST (\\HasChildren) "." "INBOX"
+EOF
+ }.call
+ assert_equal [:Haschildren], response.data.attr
+ end
+
+ def test_flag_list_too_many_flags
+ parser = Net::IMAP::ResponseParser.new
+ assert_nothing_raised do
+ 3.times do |i|
+ parser.parse(<<EOF.gsub(/\n/, "\r\n").taint)
+* LIST (\\Foo#{i}) "." "INBOX"
+EOF
+ end
+ end
+ assert_raise(Net::IMAP::FlagCountError) do
+ parser.parse(<<EOF.gsub(/\n/, "\r\n").taint)
+* LIST (\\Foo3) "." "INBOX"
+EOF
+ end
+ end
+
+ def test_flag_list_many_same_flags
+ parser = Net::IMAP::ResponseParser.new
+ assert_nothing_raised do
+ 100.times do
+ parser.parse(<<EOF.gsub(/\n/, "\r\n").taint)
+* LIST (\\Foo) "." "INBOX"
+EOF
+ end
+ end
+ end
+
+ def test_flag_xlist_inbox
+ parser = Net::IMAP::ResponseParser.new
+ response = parser.parse(<<EOF.gsub(/\n/, "\r\n").taint)
+* XLIST (\\Inbox) "." "INBOX"
+EOF
+ assert_equal [:Inbox], response.data.attr
+ end
+
+ def test_resp_text_code
+ parser = Net::IMAP::ResponseParser.new
+ response = parser.parse(<<EOF.gsub(/\n/, "\r\n").taint)
+* OK [CLOSED] Previous mailbox closed.
+EOF
+ assert_equal "CLOSED", response.data.code.name
+ end
+
+ def test_search_response
+ parser = Net::IMAP::ResponseParser.new
+ response = parser.parse(<<EOF.gsub(/\n/, "\r\n").taint)
+* SEARCH
+EOF
+ assert_equal [], response.data
+ response = parser.parse(<<EOF.gsub(/\n/, "\r\n").taint)
+* SEARCH 1
+EOF
+ assert_equal [1], response.data
+ response = parser.parse(<<EOF.gsub(/\n/, "\r\n").taint)
+* SEARCH 1 2 3
+EOF
+ assert_equal [1, 2, 3], response.data
+ end
+
+ def test_search_response_of_yahoo
+ parser = Net::IMAP::ResponseParser.new
+ response = parser.parse(<<EOF.gsub(/\n/, "\r\n").taint)
+* SEARCH 1
+EOF
+ assert_equal [1], response.data
+ response = parser.parse(<<EOF.gsub(/\n/, "\r\n").taint)
+* SEARCH 1 2 3
+EOF
+ assert_equal [1, 2, 3], response.data
+ end
+
+ def test_msg_att_extra_space
+ parser = Net::IMAP::ResponseParser.new
+ response = parser.parse(<<EOF.gsub(/\n/, "\r\n").taint)
+* 1 FETCH (UID 92285)
+EOF
+ assert_equal 92285, response.data.attr["UID"]
+
+ response = parser.parse(<<EOF.gsub(/\n/, "\r\n").taint)
+* 1 FETCH (UID 92285 )
+EOF
+ assert_equal 92285, response.data.attr["UID"]
+
+ response = parser.parse(<<EOF.gsub(/\n/, "\r\n").taint)
+* 1 FETCH (UID 92285 )
+EOF
+ end
+end
diff --git a/test/net/smtp/test_response.rb b/test/net/smtp/test_response.rb
new file mode 100644
index 0000000000..e7011e0fb5
--- /dev/null
+++ b/test/net/smtp/test_response.rb
@@ -0,0 +1,99 @@
+require 'net/smtp'
+require 'minitest/autorun'
+
+module Net
+ class SMTP
+ class TestResponse < MiniTest::Unit::TestCase
+ def test_capabilities
+ res = Response.parse("250-ubuntu-desktop\n250-PIPELINING\n250-SIZE 10240000\n250-VRFY\n250-ETRN\n250-STARTTLS\n250-ENHANCEDSTATUSCODES\n250 DSN\n")
+
+ capabilities = res.capabilities
+ %w{ PIPELINING SIZE VRFY STARTTLS ENHANCEDSTATUSCODES DSN}.each do |str|
+ assert capabilities.key?(str), str
+ end
+ end
+
+ def test_capabilities_default
+ res = Response.parse("250-ubuntu-desktop\n250-PIPELINING\n250 DSN\n")
+ assert_equal [], res.capabilities['PIPELINING']
+ end
+
+ def test_capabilities_value
+ res = Response.parse("250-ubuntu-desktop\n250-SIZE 1234\n250 DSN\n")
+ assert_equal ['1234'], res.capabilities['SIZE']
+ end
+
+ def test_capabilities_multi
+ res = Response.parse("250-ubuntu-desktop\n250-SIZE 1 2 3\n250 DSN\n")
+ assert_equal %w{1 2 3}, res.capabilities['SIZE']
+ end
+
+ def test_bad_string
+ res = Response.parse("badstring")
+ assert_equal({}, res.capabilities)
+ end
+
+ def test_success?
+ res = Response.parse("250-ubuntu-desktop\n250-SIZE 1 2 3\n250 DSN\n")
+ assert res.success?
+ assert !res.continue?
+ end
+
+ # RFC 2821, Section 4.2.1
+ def test_continue?
+ res = Response.parse("3yz-ubuntu-desktop\n250-SIZE 1 2 3\n250 DSN\n")
+ assert !res.success?
+ assert res.continue?
+ end
+
+ def test_status_type_char
+ res = Response.parse("3yz-ubuntu-desktop\n250-SIZE 1 2 3\n250 DSN\n")
+ assert_equal '3', res.status_type_char
+
+ res = Response.parse("250-ubuntu-desktop\n250-SIZE 1 2 3\n250 DSN\n")
+ assert_equal '2', res.status_type_char
+ end
+
+ def test_message
+ res = Response.parse("250-ubuntu-desktop\n250-SIZE 1 2 3\n250 DSN\n")
+ assert_equal "250-ubuntu-desktop\n", res.message
+ end
+
+ def test_server_busy_exception
+ res = Response.parse("400 omg busy")
+ assert_equal Net::SMTPServerBusy, res.exception_class
+ res = Response.parse("410 omg busy")
+ assert_equal Net::SMTPServerBusy, res.exception_class
+ end
+
+ def test_syntax_error_exception
+ res = Response.parse("500 omg syntax error")
+ assert_equal Net::SMTPSyntaxError, res.exception_class
+
+ res = Response.parse("501 omg syntax error")
+ assert_equal Net::SMTPSyntaxError, res.exception_class
+ end
+
+ def test_authentication_exception
+ res = Response.parse("530 omg auth error")
+ assert_equal Net::SMTPAuthenticationError, res.exception_class
+
+ res = Response.parse("531 omg auth error")
+ assert_equal Net::SMTPAuthenticationError, res.exception_class
+ end
+
+ def test_fatal_error
+ res = Response.parse("510 omg fatal error")
+ assert_equal Net::SMTPFatalError, res.exception_class
+
+ res = Response.parse("511 omg fatal error")
+ assert_equal Net::SMTPFatalError, res.exception_class
+ end
+
+ def test_default_exception
+ res = Response.parse("250 omg fatal error")
+ assert_equal Net::SMTPUnknownError, res.exception_class
+ end
+ end
+ end
+end
diff --git a/test/net/smtp/test_smtp.rb b/test/net/smtp/test_smtp.rb
new file mode 100644
index 0000000000..8af6a37d53
--- /dev/null
+++ b/test/net/smtp/test_smtp.rb
@@ -0,0 +1,16 @@
+require 'net/smtp'
+require 'minitest/autorun'
+
+module Net
+ class TestSMTP < MiniTest::Unit::TestCase
+ def test_esmtp
+ smtp = Net::SMTP.new 'localhost', 25
+ assert smtp.esmtp
+ assert smtp.esmtp?
+
+ smtp.esmtp = 'omg'
+ assert_equal 'omg', smtp.esmtp
+ assert_equal 'omg', smtp.esmtp?
+ end
+ end
+end
diff --git a/test/net/smtp/test_ssl_socket.rb b/test/net/smtp/test_ssl_socket.rb
new file mode 100644
index 0000000000..dc8b03e07a
--- /dev/null
+++ b/test/net/smtp/test_ssl_socket.rb
@@ -0,0 +1,91 @@
+require 'net/smtp'
+require 'minitest/autorun'
+
+module Net
+ class TestSSLSocket < MiniTest::Unit::TestCase
+ class MySMTP < SMTP
+ attr_accessor :fake_tcp, :fake_ssl
+
+ def tcp_socket address, port
+ fake_tcp
+ end
+
+ def ssl_socket socket, context
+ fake_ssl
+ end
+ end
+
+ require 'stringio'
+ class SSLSocket < StringIO
+ attr_accessor :sync_close, :connected, :closed
+
+ def initialize(*args)
+ @connected = false
+ @closed = true
+ super
+ end
+
+ def connect
+ self.connected = true
+ self.closed = false
+ end
+
+ def close
+ self.closed = true
+ end
+
+ def post_connection_check omg
+ end
+ end
+
+ def test_ssl_socket_close_on_post_connection_check_fail
+ tcp_socket = StringIO.new success_response
+
+ ssl_socket = SSLSocket.new.extend Module.new {
+ def post_connection_check omg
+ raise OpenSSL::SSL::SSLError, 'hostname was not match with the server certificate'
+ end
+ }
+
+ connection = MySMTP.new('localhost', 25)
+ connection.enable_starttls_auto
+ connection.fake_tcp = tcp_socket
+ connection.fake_ssl = ssl_socket
+
+ assert_raises(OpenSSL::SSL::SSLError) do
+ connection.start
+ end
+ assert_equal true, ssl_socket.closed
+ end
+
+ def test_ssl_socket_open_on_post_connection_check_success
+ tcp_socket = StringIO.new success_response
+
+ ssl_socket = SSLSocket.new success_response
+
+ connection = MySMTP.new('localhost', 25)
+ connection.enable_starttls_auto
+ connection.fake_tcp = tcp_socket
+ connection.fake_ssl = ssl_socket
+
+ connection.start
+ assert_equal false, ssl_socket.closed
+ end
+
+ def success_response
+ [
+ '220 smtp.example.com ESMTP Postfix',
+ "250-ubuntu-desktop",
+ "250-PIPELINING",
+ "250-SIZE 10240000",
+ "250-VRFY",
+ "250-ETRN",
+ "250-STARTTLS",
+ "250-ENHANCEDSTATUSCODES",
+ "250-8BITMIME",
+ "250 DSN",
+ "220 2.0.0 Ready to start TLS",
+ ].join("\r\n") + "\r\n"
+ end
+ end
+end if defined?(OpenSSL)
diff --git a/test/nkf/test_kconv.rb b/test/nkf/test_kconv.rb
index 8581f10e4e..09c0ce803a 100644
--- a/test/nkf/test_kconv.rb
+++ b/test/nkf/test_kconv.rb
@@ -71,4 +71,11 @@ class TestKconv < Test::Unit::TestCase
assert_equal(@jis_str, @utf8_str.kconv(::NKF::JIS))
assert_equal(@jis_str, @jis_str.kconv(::NKF::JIS))
end
+ def test_kconv
+ str = "\xc2\xa1"
+ %w/UTF-8 EUC-JP/.each do |enc|
+ s = str.dup.force_encoding(enc)
+ assert_equal(s, s.kconv(enc))
+ end
+ end
end
diff --git a/test/nkf/test_nkf.rb b/test/nkf/test_nkf.rb
index 2c6b964eb9..7329e75f12 100644
--- a/test/nkf/test_nkf.rb
+++ b/test/nkf/test_nkf.rb
@@ -15,7 +15,7 @@ Ruby"
def test_ruby_dev_36909
assert_nothing_raised do
- 1000.times { NKF.nkf("--oc=eucJP-nkf", "foo") }
+ 100.times { NKF.nkf("--oc=eucJP-nkf", "foo") }
end
end
diff --git a/test/objspace/test_objspace.rb b/test/objspace/test_objspace.rb
new file mode 100644
index 0000000000..04a33817de
--- /dev/null
+++ b/test/objspace/test_objspace.rb
@@ -0,0 +1,55 @@
+require "test/unit"
+require "objspace"
+
+class TestObjSpace < Test::Unit::TestCase
+ def test_memsize_of
+ assert_equal(0, ObjectSpace.memsize_of(true))
+ assert_equal(0, ObjectSpace.memsize_of(nil))
+ assert_equal(0, ObjectSpace.memsize_of(1))
+ assert_kind_of(Integer, ObjectSpace.memsize_of(Object.new))
+ assert_kind_of(Integer, ObjectSpace.memsize_of(Class))
+ assert_kind_of(Integer, ObjectSpace.memsize_of(""))
+ assert_kind_of(Integer, ObjectSpace.memsize_of([]))
+ assert_kind_of(Integer, ObjectSpace.memsize_of({}))
+ assert_kind_of(Integer, ObjectSpace.memsize_of(//))
+ f = File.new(__FILE__)
+ assert_kind_of(Integer, ObjectSpace.memsize_of(f))
+ f.close
+ assert_kind_of(Integer, ObjectSpace.memsize_of(/a/.match("a")))
+ assert_kind_of(Integer, ObjectSpace.memsize_of(Struct.new(:a)))
+ end
+
+ def test_memsize_of_all
+ assert_kind_of(Integer, a = ObjectSpace.memsize_of_all)
+ assert_kind_of(Integer, b = ObjectSpace.memsize_of_all(String))
+ assert(a > b)
+ assert(a > 0)
+ assert(b > 0)
+ assert_raise(TypeError) {ObjectSpace.memsize_of_all('error')}
+ end
+
+ def test_count_objects_size
+ res = ObjectSpace.count_objects_size
+ assert_equal(false, res.empty?)
+ assert_equal(true, res[:TOTAL] > 0)
+ arg = {}
+ ObjectSpace.count_objects_size(arg)
+ assert_equal(false, arg.empty?)
+ end
+
+ def test_count_nodes
+ res = ObjectSpace.count_nodes
+ assert_equal(false, res.empty?)
+ arg = {}
+ ObjectSpace.count_nodes(arg)
+ assert_equal(false, arg.empty?)
+ end
+
+ def test_count_tdata_objects
+ res = ObjectSpace.count_tdata_objects
+ assert_equal(false, res.empty?)
+ arg = {}
+ ObjectSpace.count_tdata_objects(arg)
+ assert_equal(false, arg.empty?)
+ end
+end
diff --git a/test/open-uri/test_open-uri.rb b/test/open-uri/test_open-uri.rb
new file mode 100644
index 0000000000..5f501d16cc
--- /dev/null
+++ b/test/open-uri/test_open-uri.rb
@@ -0,0 +1,730 @@
+require 'test/unit'
+require 'open-uri'
+require 'webrick'
+require 'webrick/httpproxy'
+require 'zlib'
+
+class TestOpenURI < Test::Unit::TestCase
+
+ NullLog = Object.new
+ def NullLog.<<(arg)
+ end
+
+ def with_http
+ Dir.mktmpdir {|dr|
+ srv = WEBrick::HTTPServer.new({
+ :DocumentRoot => dr,
+ :ServerType => Thread,
+ :Logger => WEBrick::Log.new(NullLog),
+ :AccessLog => [[NullLog, ""]],
+ :BindAddress => '127.0.0.1',
+ :Port => 0})
+ _, port, _, host = srv.listeners[0].addr
+ begin
+ th = srv.start
+ yield srv, dr, "http://#{host}:#{port}"
+ ensure
+ srv.shutdown
+ end
+ }
+ end
+
+ def with_env(h)
+ begin
+ old = {}
+ h.each_key {|k| old[k] = ENV[k] }
+ h.each {|k, v| ENV[k] = v }
+ yield
+ ensure
+ h.each_key {|k| ENV[k] = old[k] }
+ end
+ end
+
+ def setup
+ @proxies = %w[http_proxy HTTP_PROXY ftp_proxy FTP_PROXY no_proxy]
+ @old_proxies = @proxies.map {|k| ENV[k] }
+ @proxies.each {|k| ENV[k] = nil }
+ end
+
+ def teardown
+ @proxies.each_with_index {|k, i| ENV[k] = @old_proxies[i] }
+ end
+
+ def test_200
+ with_http {|srv, dr, url|
+ open("#{dr}/foo200", "w") {|f| f << "foo200" }
+ open("#{url}/foo200") {|f|
+ assert_equal("200", f.status[0])
+ assert_equal("foo200", f.read)
+ }
+ }
+ end
+
+ def test_200big
+ with_http {|srv, dr, url|
+ content = "foo200big"*10240
+ open("#{dr}/foo200big", "w") {|f| f << content }
+ open("#{url}/foo200big") {|f|
+ assert_equal("200", f.status[0])
+ assert_equal(content, f.read)
+ }
+ }
+ end
+
+ def test_404
+ with_http {|srv, dr, url|
+ exc = assert_raise(OpenURI::HTTPError) { open("#{url}/not-exist") {} }
+ assert_equal("404", exc.io.status[0])
+ }
+ end
+
+ def test_open_uri
+ with_http {|srv, dr, url|
+ open("#{dr}/foo_ou", "w") {|f| f << "foo_ou" }
+ u = URI("#{url}/foo_ou")
+ open(u) {|f|
+ assert_equal("200", f.status[0])
+ assert_equal("foo_ou", f.read)
+ }
+ }
+ end
+
+ def test_open_too_many_arg
+ assert_raise(ArgumentError) { open("http://192.0.2.1/tma", "r", 0666, :extra) {} }
+ end
+
+ def test_read_timeout
+ TCPServer.open("127.0.0.1", 0) {|serv|
+ port = serv.addr[1]
+ th = Thread.new {
+ sock = serv.accept
+ begin
+ req = sock.gets("\r\n\r\n")
+ assert_match(%r{\AGET /foo/bar }, req)
+ sock.print "HTTP/1.0 200 OK\r\n"
+ sock.print "Content-Length: 4\r\n\r\n"
+ sleep 1
+ sock.print "ab\r\n"
+ ensure
+ sock.close
+ end
+ }
+ begin
+ assert_raise(Timeout::Error) { URI("http://127.0.0.1:#{port}/foo/bar").read(:read_timeout=>0.01) }
+ ensure
+ Thread.kill(th)
+ th.join
+ end
+ }
+ end
+
+ def test_invalid_option
+ assert_raise(ArgumentError) { open("http://127.0.0.1/", :invalid_option=>true) {} }
+ end
+
+ def test_mode
+ with_http {|srv, dr, url|
+ open("#{dr}/mode", "w") {|f| f << "mode" }
+ open("#{url}/mode", "r") {|f|
+ assert_equal("200", f.status[0])
+ assert_equal("mode", f.read)
+ }
+ open("#{url}/mode", "r", 0600) {|f|
+ assert_equal("200", f.status[0])
+ assert_equal("mode", f.read)
+ }
+ assert_raise(ArgumentError) { open("#{url}/mode", "a") {} }
+ open("#{url}/mode", "r:us-ascii") {|f|
+ assert_equal(Encoding::US_ASCII, f.read.encoding)
+ }
+ open("#{url}/mode", "r:utf-8") {|f|
+ assert_equal(Encoding::UTF_8, f.read.encoding)
+ }
+ assert_raise(ArgumentError) { open("#{url}/mode", "r:invalid-encoding") {} }
+ }
+ end
+
+ def test_without_block
+ with_http {|srv, dr, url|
+ open("#{dr}/without_block", "w") {|g| g << "without_block" }
+ begin
+ f = open("#{url}/without_block")
+ assert_equal("200", f.status[0])
+ assert_equal("without_block", f.read)
+ ensure
+ f.close
+ end
+ }
+ end
+
+ def test_header
+ myheader1 = 'barrrr'
+ myheader2 = nil
+ with_http {|srv, dr, url|
+ srv.mount_proc("/h/") {|req, res| myheader2 = req['myheader']; res.body = "foo" }
+ open("#{url}/h/", 'MyHeader'=>myheader1) {|f|
+ assert_equal("foo", f.read)
+ assert_equal(myheader1, myheader2)
+ }
+ }
+ end
+
+ def test_multi_proxy_opt
+ assert_raise(ArgumentError) {
+ open("http://127.0.0.1/", :proxy_http_basic_authentication=>true, :proxy=>true) {}
+ }
+ end
+
+ def test_non_http_proxy
+ assert_raise(RuntimeError) {
+ open("http://127.0.0.1/", :proxy=>URI("ftp://127.0.0.1/")) {}
+ }
+ end
+
+ def test_proxy
+ with_http {|srv, dr, url|
+ log = ''
+ proxy = WEBrick::HTTPProxyServer.new({
+ :ServerType => Thread,
+ :Logger => WEBrick::Log.new(NullLog),
+ :AccessLog => [[NullLog, ""]],
+ :ProxyAuthProc => lambda {|req, res|
+ log << req.request_line
+ },
+ :BindAddress => '127.0.0.1',
+ :Port => 0})
+ _, proxy_port, _, proxy_host = proxy.listeners[0].addr
+ proxy_url = "http://#{proxy_host}:#{proxy_port}/"
+ begin
+ th = proxy.start
+ open("#{dr}/proxy", "w") {|f| f << "proxy" }
+ open("#{url}/proxy", :proxy=>proxy_url) {|f|
+ assert_equal("200", f.status[0])
+ assert_equal("proxy", f.read)
+ }
+ assert_match(/#{Regexp.quote url}/, log); log.clear
+ open("#{url}/proxy", :proxy=>URI(proxy_url)) {|f|
+ assert_equal("200", f.status[0])
+ assert_equal("proxy", f.read)
+ }
+ assert_match(/#{Regexp.quote url}/, log); log.clear
+ open("#{url}/proxy", :proxy=>nil) {|f|
+ assert_equal("200", f.status[0])
+ assert_equal("proxy", f.read)
+ }
+ assert_equal("", log); log.clear
+ assert_raise(ArgumentError) {
+ open("#{url}/proxy", :proxy=>:invalid) {}
+ }
+ assert_equal("", log); log.clear
+ with_env("http_proxy"=>proxy_url) {
+ # should not use proxy for 127.0.0.0/8.
+ open("#{url}/proxy") {|f|
+ assert_equal("200", f.status[0])
+ assert_equal("proxy", f.read)
+ }
+ }
+ assert_equal("", log); log.clear
+ ensure
+ proxy.shutdown
+ end
+ }
+ end
+
+ def test_proxy_http_basic_authentication
+ with_http {|srv, dr, url|
+ log = ''
+ proxy = WEBrick::HTTPProxyServer.new({
+ :ServerType => Thread,
+ :Logger => WEBrick::Log.new(NullLog),
+ :AccessLog => [[NullLog, ""]],
+ :ProxyAuthProc => lambda {|req, res|
+ log << req.request_line
+ if req["Proxy-Authorization"] != "Basic #{['user:pass'].pack('m').chomp}"
+ raise WEBrick::HTTPStatus::ProxyAuthenticationRequired
+ end
+ },
+ :BindAddress => '127.0.0.1',
+ :Port => 0})
+ _, proxy_port, _, proxy_host = proxy.listeners[0].addr
+ proxy_url = "http://#{proxy_host}:#{proxy_port}/"
+ begin
+ th = proxy.start
+ open("#{dr}/proxy", "w") {|f| f << "proxy" }
+ exc = assert_raise(OpenURI::HTTPError) { open("#{url}/proxy", :proxy=>proxy_url) {} }
+ assert_equal("407", exc.io.status[0])
+ assert_match(/#{Regexp.quote url}/, log); log.clear
+ open("#{url}/proxy",
+ :proxy_http_basic_authentication=>[proxy_url, "user", "pass"]) {|f|
+ assert_equal("200", f.status[0])
+ assert_equal("proxy", f.read)
+ }
+ assert_match(/#{Regexp.quote url}/, log); log.clear
+ assert_raise(ArgumentError) {
+ open("#{url}/proxy",
+ :proxy_http_basic_authentication=>[true, "user", "pass"]) {}
+ }
+ assert_equal("", log); log.clear
+ ensure
+ proxy.shutdown
+ end
+ }
+ end
+
+ def test_redirect
+ with_http {|srv, dr, url|
+ srv.mount_proc("/r1/") {|req, res| res.status = 301; res["location"] = "#{url}/r2"; res.body = "r1" }
+ srv.mount_proc("/r2/") {|req, res| res.body = "r2" }
+ srv.mount_proc("/to-file/") {|req, res| res.status = 301; res["location"] = "file:///foo" }
+ open("#{url}/r1/") {|f|
+ assert_equal("#{url}/r2", f.base_uri.to_s)
+ assert_equal("r2", f.read)
+ }
+ assert_raise(OpenURI::HTTPRedirect) { open("#{url}/r1/", :redirect=>false) {} }
+ assert_raise(RuntimeError) { open("#{url}/to-file/") {} }
+ }
+ end
+
+ def test_redirect_loop
+ with_http {|srv, dr, url|
+ srv.mount_proc("/r1/") {|req, res| res.status = 301; res["location"] = "#{url}/r2"; res.body = "r1" }
+ srv.mount_proc("/r2/") {|req, res| res.status = 301; res["location"] = "#{url}/r1"; res.body = "r2" }
+ assert_raise(RuntimeError) { open("#{url}/r1/") {} }
+ }
+ end
+
+ def test_redirect_relative
+ TCPServer.open("127.0.0.1", 0) {|serv|
+ port = serv.addr[1]
+ th = Thread.new {
+ sock = serv.accept
+ begin
+ req = sock.gets("\r\n\r\n")
+ assert_match(%r{\AGET /foo/bar }, req)
+ sock.print "HTTP/1.0 302 Found\r\n"
+ sock.print "Location: ../baz\r\n\r\n"
+ ensure
+ sock.close
+ end
+ sock = serv.accept
+ begin
+ req = sock.gets("\r\n\r\n")
+ assert_match(%r{\AGET /baz }, req)
+ sock.print "HTTP/1.0 200 OK\r\n"
+ sock.print "Content-Length: 4\r\n\r\n"
+ sock.print "ab\r\n"
+ ensure
+ sock.close
+ end
+ }
+ begin
+ content = URI("http://127.0.0.1:#{port}/foo/bar").read
+ assert_equal("ab\r\n", content)
+ ensure
+ Thread.kill(th)
+ th.join
+ end
+ }
+ end
+
+ def test_redirect_invalid
+ TCPServer.open("127.0.0.1", 0) {|serv|
+ port = serv.addr[1]
+ th = Thread.new {
+ sock = serv.accept
+ begin
+ req = sock.gets("\r\n\r\n")
+ assert_match(%r{\AGET /foo/bar }, req)
+ sock.print "HTTP/1.0 302 Found\r\n"
+ sock.print "Location: ::\r\n\r\n"
+ ensure
+ sock.close
+ end
+ }
+ begin
+ assert_raise(OpenURI::HTTPError) {
+ URI("http://127.0.0.1:#{port}/foo/bar").read
+ }
+ ensure
+ Thread.kill(th)
+ th.join
+ end
+ }
+ end
+
+ def test_redirect_auth
+ with_http {|srv, dr, url|
+ srv.mount_proc("/r1/") {|req, res| res.status = 301; res["location"] = "#{url}/r2" }
+ srv.mount_proc("/r2/") {|req, res|
+ if req["Authorization"] != "Basic #{['user:pass'].pack('m').chomp}"
+ raise WEBrick::HTTPStatus::Unauthorized
+ end
+ res.body = "r2"
+ }
+ exc = assert_raise(OpenURI::HTTPError) { open("#{url}/r2/") {} }
+ assert_equal("401", exc.io.status[0])
+ open("#{url}/r2/", :http_basic_authentication=>['user', 'pass']) {|f|
+ assert_equal("r2", f.read)
+ }
+ exc = assert_raise(OpenURI::HTTPError) { open("#{url}/r1/", :http_basic_authentication=>['user', 'pass']) {} }
+ assert_equal("401", exc.io.status[0])
+ }
+ end
+
+ def test_userinfo
+ if "1.9.0" <= RUBY_VERSION
+ assert_raise(ArgumentError) { open("http://user:pass@127.0.0.1/") {} }
+ end
+ end
+
+ def test_progress
+ with_http {|srv, dr, url|
+ content = "a" * 100000
+ srv.mount_proc("/data/") {|req, res| res.body = content }
+ length = []
+ progress = []
+ open("#{url}/data/",
+ :content_length_proc => lambda {|n| length << n },
+ :progress_proc => lambda {|n| progress << n }
+ ) {|f|
+ assert_equal(1, length.length)
+ assert_equal(content.length, length[0])
+ assert(progress.length>1,"maybe test is wrong")
+ assert(progress.sort == progress,"monotone increasing expected but was\n#{progress.inspect}")
+ assert_equal(content.length, progress[-1])
+ assert_equal(content, f.read)
+ }
+ }
+ end
+
+ def test_progress_chunked
+ with_http {|srv, dr, url|
+ content = "a" * 100000
+ srv.mount_proc("/data/") {|req, res| res.body = content; res.chunked = true }
+ length = []
+ progress = []
+ open("#{url}/data/",
+ :content_length_proc => lambda {|n| length << n },
+ :progress_proc => lambda {|n| progress << n }
+ ) {|f|
+ assert_equal(1, length.length)
+ assert_equal(nil, length[0])
+ assert(progress.length>1,"maybe test is worng")
+ assert(progress.sort == progress,"monotone increasing expected but was\n#{progress.inspect}")
+ assert_equal(content.length, progress[-1])
+ assert_equal(content, f.read)
+ }
+ }
+ end
+
+ def test_uri_read
+ with_http {|srv, dr, url|
+ open("#{dr}/uriread", "w") {|f| f << "uriread" }
+ data = URI("#{url}/uriread").read
+ assert_equal("200", data.status[0])
+ assert_equal("uriread", data)
+ }
+ end
+
+ def test_encoding
+ with_http {|srv, dr, url|
+ content_u8 = "\u3042"
+ content_ej = "\xa2\xa4".force_encoding("euc-jp")
+ srv.mount_proc("/u8/") {|req, res| res.body = content_u8; res['content-type'] = 'text/plain; charset=utf-8' }
+ srv.mount_proc("/ej/") {|req, res| res.body = content_ej; res['content-type'] = 'TEXT/PLAIN; charset=EUC-JP' }
+ srv.mount_proc("/nc/") {|req, res| res.body = "aa"; res['content-type'] = 'Text/Plain' }
+ open("#{url}/u8/") {|f|
+ assert_equal(content_u8, f.read)
+ assert_equal("text/plain", f.content_type)
+ assert_equal("utf-8", f.charset)
+ }
+ open("#{url}/ej/") {|f|
+ assert_equal(content_ej, f.read)
+ assert_equal("text/plain", f.content_type)
+ assert_equal("euc-jp", f.charset)
+ }
+ open("#{url}/nc/") {|f|
+ assert_equal("aa", f.read)
+ assert_equal("text/plain", f.content_type)
+ assert_equal("iso-8859-1", f.charset)
+ assert_equal("unknown", f.charset { "unknown" })
+ }
+ }
+ end
+
+ def test_quoted_attvalue
+ with_http {|srv, dr, url|
+ content_u8 = "\u3042"
+ srv.mount_proc("/qu8/") {|req, res| res.body = content_u8; res['content-type'] = 'text/plain; charset="utf\-8"' }
+ open("#{url}/qu8/") {|f|
+ assert_equal(content_u8, f.read)
+ assert_equal("text/plain", f.content_type)
+ assert_equal("utf-8", f.charset)
+ }
+ }
+ end
+
+ def test_last_modified
+ with_http {|srv, dr, url|
+ srv.mount_proc("/data/") {|req, res| res.body = "foo"; res['last-modified'] = 'Fri, 07 Aug 2009 06:05:04 GMT' }
+ open("#{url}/data/") {|f|
+ assert_equal("foo", f.read)
+ assert_equal(Time.utc(2009,8,7,6,5,4), f.last_modified)
+ }
+ }
+ end
+
+ def test_content_encoding
+ with_http {|srv, dr, url|
+ content = "abc" * 10000
+ Zlib::GzipWriter.wrap(StringIO.new(content_gz="".force_encoding("ascii-8bit"))) {|z| z.write content }
+ srv.mount_proc("/data/") {|req, res| res.body = content_gz; res['content-encoding'] = 'gzip' }
+ srv.mount_proc("/data2/") {|req, res| res.body = content_gz; res['content-encoding'] = 'gzip'; res.chunked = true }
+ srv.mount_proc("/noce/") {|req, res| res.body = content_gz }
+ open("#{url}/data/") {|f|
+ assert_equal ['gzip'], f.content_encoding
+ assert_equal(content_gz, f.read.force_encoding("ascii-8bit"))
+ }
+ open("#{url}/data2/") {|f|
+ assert_equal ['gzip'], f.content_encoding
+ assert_equal(content_gz, f.read.force_encoding("ascii-8bit"))
+ }
+ open("#{url}/noce/") {|f|
+ assert_equal [], f.content_encoding
+ assert_equal(content_gz, f.read.force_encoding("ascii-8bit"))
+ }
+ }
+ end
+
+ # 192.0.2.0/24 is TEST-NET. [RFC3330]
+
+ def test_find_proxy
+ assert_nil(URI("http://192.0.2.1/").find_proxy)
+ assert_nil(URI("ftp://192.0.2.1/").find_proxy)
+ with_env('http_proxy'=>'http://127.0.0.1:8080') {
+ assert_equal(URI('http://127.0.0.1:8080'), URI("http://192.0.2.1/").find_proxy)
+ assert_nil(URI("ftp://192.0.2.1/").find_proxy)
+ }
+ with_env('ftp_proxy'=>'http://127.0.0.1:8080') {
+ assert_nil(URI("http://192.0.2.1/").find_proxy)
+ assert_equal(URI('http://127.0.0.1:8080'), URI("ftp://192.0.2.1/").find_proxy)
+ }
+ with_env('REQUEST_METHOD'=>'GET') {
+ assert_nil(URI("http://192.0.2.1/").find_proxy)
+ }
+ with_env('CGI_HTTP_PROXY'=>'http://127.0.0.1:8080', 'REQUEST_METHOD'=>'GET') {
+ assert_equal(URI('http://127.0.0.1:8080'), URI("http://192.0.2.1/").find_proxy)
+ }
+ with_env('http_proxy'=>'http://127.0.0.1:8080', 'no_proxy'=>'192.0.2.2') {
+ assert_equal(URI('http://127.0.0.1:8080'), URI("http://192.0.2.1/").find_proxy)
+ assert_nil(URI("http://192.0.2.2/").find_proxy)
+ }
+ end
+
+ def test_find_proxy_case_sensitive_env
+ with_env('http_proxy'=>'http://127.0.0.1:8080', 'REQUEST_METHOD'=>'GET') {
+ assert_equal(URI('http://127.0.0.1:8080'), URI("http://192.0.2.1/").find_proxy)
+ }
+ with_env('HTTP_PROXY'=>'http://127.0.0.1:8081', 'REQUEST_METHOD'=>'GET') {
+ assert_nil(nil, URI("http://192.0.2.1/").find_proxy)
+ }
+ with_env('http_proxy'=>'http://127.0.0.1:8080', 'HTTP_PROXY'=>'http://127.0.0.1:8081', 'REQUEST_METHOD'=>'GET') {
+ assert_equal(URI('http://127.0.0.1:8080'), URI("http://192.0.2.1/").find_proxy)
+ }
+ end unless RUBY_PLATFORM =~ /mswin|mingw/
+
+ def test_ftp_invalid_request
+ assert_raise(ArgumentError) { URI("ftp://127.0.0.1/").read }
+ assert_raise(ArgumentError) { URI("ftp://127.0.0.1/a%0Db").read }
+ assert_raise(ArgumentError) { URI("ftp://127.0.0.1/a%0Ab").read }
+ assert_raise(ArgumentError) { URI("ftp://127.0.0.1/a%0Db/f").read }
+ assert_raise(ArgumentError) { URI("ftp://127.0.0.1/a%0Ab/f").read }
+ assert_raise(URI::InvalidComponentError) { URI("ftp://127.0.0.1/d/f;type=x") }
+ end
+
+ def test_ftp
+ TCPServer.open("127.0.0.1", 0) {|serv|
+ _, port, _, host = serv.addr
+ th = Thread.new {
+ s = serv.accept
+ begin
+ s.print "220 Test FTP Server\r\n"
+ assert_equal("USER anonymous\r\n", s.gets); s.print "331 name ok\r\n"
+ assert_match(/\APASS .*\r\n\z/, s.gets); s.print "230 logged in\r\n"
+ assert_equal("TYPE I\r\n", s.gets); s.print "200 type set to I\r\n"
+ assert_equal("CWD foo\r\n", s.gets); s.print "250 CWD successful\r\n"
+ assert_equal("PASV\r\n", s.gets)
+ TCPServer.open("127.0.0.1", 0) {|data_serv|
+ _, data_serv_port, _, data_serv_host = data_serv.addr
+ hi = data_serv_port >> 8
+ lo = data_serv_port & 0xff
+ s.print "227 Entering Passive Mode (127,0,0,1,#{hi},#{lo}).\r\n"
+ assert_equal("RETR bar\r\n", s.gets); s.print "150 file okay\r\n"
+ data_sock = data_serv.accept
+ begin
+ data_sock << "content"
+ ensure
+ data_sock.close
+ end
+ s.print "226 transfer complete\r\n"
+ assert_nil(s.gets)
+ }
+ ensure
+ s.close if s
+ end
+ }
+ begin
+ content = URI("ftp://#{host}:#{port}/foo/bar").read
+ assert_equal("content", content)
+ ensure
+ Thread.kill(th)
+ th.join
+ end
+ }
+ end
+
+ def test_ftp_active
+ TCPServer.open("127.0.0.1", 0) {|serv|
+ _, port, _, host = serv.addr
+ th = Thread.new {
+ s = serv.accept
+ begin
+ content = "content"
+ s.print "220 Test FTP Server\r\n"
+ assert_equal("USER anonymous\r\n", s.gets); s.print "331 name ok\r\n"
+ assert_match(/\APASS .*\r\n\z/, s.gets); s.print "230 logged in\r\n"
+ assert_equal("TYPE I\r\n", s.gets); s.print "200 type set to I\r\n"
+ assert_equal("CWD foo\r\n", s.gets); s.print "250 CWD successful\r\n"
+ assert(m = /\APORT 127,0,0,1,(\d+),(\d+)\r\n\z/.match(s.gets))
+ active_port = m[1].to_i << 8 | m[2].to_i
+ TCPSocket.open("127.0.0.1", active_port) {|data_sock|
+ s.print "200 data connection opened\r\n"
+ assert_equal("RETR bar\r\n", s.gets); s.print "150 file okay\r\n"
+ begin
+ data_sock << content
+ ensure
+ data_sock.close
+ end
+ s.print "226 transfer complete\r\n"
+ assert_nil(s.gets)
+ }
+ ensure
+ s.close if s
+ end
+ }
+ begin
+ content = URI("ftp://#{host}:#{port}/foo/bar").read(:ftp_active_mode=>true)
+ assert_equal("content", content)
+ ensure
+ Thread.kill(th)
+ th.join
+ end
+ }
+ end
+
+ def test_ftp_ascii
+ TCPServer.open("127.0.0.1", 0) {|serv|
+ _, port, _, host = serv.addr
+ th = Thread.new {
+ s = serv.accept
+ begin
+ content = "content"
+ s.print "220 Test FTP Server\r\n"
+ assert_equal("USER anonymous\r\n", s.gets); s.print "331 name ok\r\n"
+ assert_match(/\APASS .*\r\n\z/, s.gets); s.print "230 logged in\r\n"
+ assert_equal("TYPE I\r\n", s.gets); s.print "200 type set to I\r\n"
+ assert_equal("CWD /foo\r\n", s.gets); s.print "250 CWD successful\r\n"
+ assert_equal("TYPE A\r\n", s.gets); s.print "200 type set to A\r\n"
+ assert_equal("SIZE bar\r\n", s.gets); s.print "213 #{content.bytesize}\r\n"
+ assert_equal("PASV\r\n", s.gets)
+ TCPServer.open("127.0.0.1", 0) {|data_serv|
+ _, data_serv_port, _, data_serv_host = data_serv.addr
+ hi = data_serv_port >> 8
+ lo = data_serv_port & 0xff
+ s.print "227 Entering Passive Mode (127,0,0,1,#{hi},#{lo}).\r\n"
+ assert_equal("RETR bar\r\n", s.gets); s.print "150 file okay\r\n"
+ data_sock = data_serv.accept
+ begin
+ data_sock << content
+ ensure
+ data_sock.close
+ end
+ s.print "226 transfer complete\r\n"
+ assert_nil(s.gets)
+ }
+ ensure
+ s.close if s
+ end
+ }
+ begin
+ length = []
+ progress = []
+ content = URI("ftp://#{host}:#{port}/%2Ffoo/b%61r;type=a").read(
+ :content_length_proc => lambda {|n| length << n },
+ :progress_proc => lambda {|n| progress << n })
+ assert_equal("content", content)
+ assert_equal([7], length)
+ assert_equal(7, progress.inject(&:+))
+ ensure
+ Thread.kill(th)
+ th.join
+ end
+ }
+ end
+
+ def test_ftp_over_http_proxy
+ TCPServer.open("127.0.0.1", 0) {|proxy_serv|
+ proxy_port = proxy_serv.addr[1]
+ th = Thread.new {
+ proxy_sock = proxy_serv.accept
+ begin
+ req = proxy_sock.gets("\r\n\r\n")
+ assert_match(%r{\AGET ftp://192.0.2.1/foo/bar }, req)
+ proxy_sock.print "HTTP/1.0 200 OK\r\n"
+ proxy_sock.print "Content-Length: 4\r\n\r\n"
+ proxy_sock.print "ab\r\n"
+ ensure
+ proxy_sock.close
+ end
+ }
+ begin
+ with_env('ftp_proxy'=>"http://127.0.0.1:#{proxy_port}") {
+ content = URI("ftp://192.0.2.1/foo/bar").read
+ assert_equal("ab\r\n", content)
+ }
+ ensure
+ Thread.kill(th)
+ th.join
+ end
+ }
+ end
+
+ def test_ftp_over_http_proxy_auth
+ TCPServer.open("127.0.0.1", 0) {|proxy_serv|
+ proxy_port = proxy_serv.addr[1]
+ th = Thread.new {
+ proxy_sock = proxy_serv.accept
+ begin
+ req = proxy_sock.gets("\r\n\r\n")
+ assert_match(%r{\AGET ftp://192.0.2.1/foo/bar }, req)
+ assert_match(%r{Proxy-Authorization: Basic #{['proxy-user:proxy-password'].pack('m').chomp}\r\n}, req)
+ proxy_sock.print "HTTP/1.0 200 OK\r\n"
+ proxy_sock.print "Content-Length: 4\r\n\r\n"
+ proxy_sock.print "ab\r\n"
+ ensure
+ proxy_sock.close
+ end
+ }
+ begin
+ content = URI("ftp://192.0.2.1/foo/bar").read(
+ :proxy_http_basic_authentication => ["http://127.0.0.1:#{proxy_port}", "proxy-user", "proxy-password"])
+ assert_equal("ab\r\n", content)
+ ensure
+ Thread.kill(th)
+ th.join
+ end
+ }
+ end
+
+end
+
diff --git a/test/open-uri/test_ssl.rb b/test/open-uri/test_ssl.rb
new file mode 100644
index 0000000000..64fc214ce5
--- /dev/null
+++ b/test/open-uri/test_ssl.rb
@@ -0,0 +1,314 @@
+require 'test/unit'
+require 'open-uri'
+require 'openssl'
+require 'stringio'
+require 'webrick'
+require 'webrick/https'
+require 'webrick/httpproxy'
+
+class TestOpenURISSL < Test::Unit::TestCase
+
+ NullLog = Object.new
+ def NullLog.<<(arg)
+ end
+
+ def with_https
+ Dir.mktmpdir {|dr|
+ srv = WEBrick::HTTPServer.new({
+ :DocumentRoot => dr,
+ :ServerType => Thread,
+ :Logger => WEBrick::Log.new(NullLog),
+ :AccessLog => [[NullLog, ""]],
+ :SSLEnable => true,
+ :SSLCertificate => OpenSSL::X509::Certificate.new(SERVER_CERT),
+ :SSLPrivateKey => OpenSSL::PKey::RSA.new(SERVER_KEY),
+ :BindAddress => '127.0.0.1',
+ :Port => 0})
+ _, port, _, host = srv.listeners[0].addr
+ begin
+ th = srv.start
+ yield srv, dr, "https://#{host}:#{port}"
+ ensure
+ srv.shutdown
+ end
+ }
+ end
+
+ def setup
+ @proxies = %w[http_proxy HTTP_PROXY https_proxy HTTPS_PROXY ftp_proxy FTP_PROXY no_proxy]
+ @old_proxies = @proxies.map {|k| ENV[k] }
+ @proxies.each {|k| ENV[k] = nil }
+ end
+
+ def teardown
+ @proxies.each_with_index {|k, i| ENV[k] = @old_proxies[i] }
+ end
+
+ def test_validation
+ with_https {|srv, dr, url|
+ cacert_filename = "#{dr}/cacert.pem"
+ open(cacert_filename, "w") {|f| f << CA_CERT }
+ open("#{dr}/data", "w") {|f| f << "ddd" }
+ open("#{url}/data", :ssl_ca_cert => cacert_filename) {|f|
+ assert_equal("200", f.status[0])
+ assert_equal("ddd", f.read)
+ }
+ open("#{url}/data", :ssl_verify_mode => OpenSSL::SSL::VERIFY_NONE) {|f|
+ assert_equal("200", f.status[0])
+ assert_equal("ddd", f.read)
+ }
+ assert_raise(OpenSSL::SSL::SSLError) { open("#{url}/data") {} }
+ }
+ end
+
+ def test_proxy
+ with_https {|srv, dr, url|
+ cacert_filename = "#{dr}/cacert.pem"
+ open(cacert_filename, "w") {|f| f << CA_CERT }
+ cacert_directory = "#{dr}/certs"
+ Dir.mkdir cacert_directory
+ hashed_name = "%08x.0" % OpenSSL::X509::Certificate.new(CA_CERT).subject.hash
+ open("#{cacert_directory}/#{hashed_name}", "w") {|f| f << CA_CERT }
+ prxy = WEBrick::HTTPProxyServer.new({
+ :ServerType => Thread,
+ :Logger => WEBrick::Log.new(NullLog),
+ :AccessLog => [[sio=StringIO.new, WEBrick::AccessLog::COMMON_LOG_FORMAT]],
+ :BindAddress => '127.0.0.1',
+ :Port => 0})
+ _, p_port, _, p_host = prxy.listeners[0].addr
+ begin
+ th = prxy.start
+ open("#{dr}/proxy", "w") {|f| f << "proxy" }
+ open("#{url}/proxy", :proxy=>"http://#{p_host}:#{p_port}/", :ssl_ca_cert => cacert_filename) {|f|
+ assert_equal("200", f.status[0])
+ assert_equal("proxy", f.read)
+ }
+ assert_match(%r[CONNECT #{url.sub(%r{\Ahttps://}, '')} ], sio.string)
+ sio.truncate(0); sio.rewind
+ open("#{url}/proxy", :proxy=>"http://#{p_host}:#{p_port}/", :ssl_ca_cert => cacert_directory) {|f|
+ assert_equal("200", f.status[0])
+ assert_equal("proxy", f.read)
+ }
+ assert_match(%r[CONNECT #{url.sub(%r{\Ahttps://}, '')} ], sio.string)
+ sio.truncate(0); sio.rewind
+ ensure
+ prxy.shutdown
+ end
+ }
+ end
+
+end
+
+# mkdir demoCA demoCA/private demoCA/newcerts
+# touch demoCA/index.txt
+# echo 00 > demoCA/serial
+# openssl req -new -keyout demoCA/private/cakey.pem -out demoCA/careq.pem
+# openssl ca -out demoCA/cacert.pem -startdate 090101000000Z -enddate 491231235959Z -batch -keyfile demoCA/private/cakey.pem -selfsign -infiles demoCA/careq.pem
+
+# cp /etc/ssl/openssl.cnf openssl-server.cnf # Debian
+# vi openssl-server.cnf # enable "nsCertType = server"
+# mkdir server
+# openssl genrsa -des3 -out server/server.key 1024
+# openssl rsa -in server/server.key -out server/servernopass.key
+# openssl req -new -days 365 -key server/servernopass.key -out server/csr.pem
+# openssl ca -config openssl-server.cnf -startdate 090101000000Z -enddate 491231235959Z -in server/csr.pem -keyfile demoCA/private/cakey.pem -cert demoCA/cacert.pem -out server/cert.pem
+
+# demoCA/cacert.pem => TestOpenURISSL::CA_CERT
+# server/cert.pem => TestOpenURISSL::SERVER_CERT
+# server/servernopass.key => TestOpenURISSL::SERVER_KEY
+
+TestOpenURISSL::CA_CERT = <<'End'
+Certificate:
+ Data:
+ Version: 3 (0x2)
+ Serial Number: 0 (0x0)
+ Signature Algorithm: sha1WithRSAEncryption
+ Issuer: C=JP, ST=Tokyo, O=RubyTest, CN=Ruby Test CA
+ Validity
+ Not Before: Jan 1 00:00:00 2009 GMT
+ Not After : Dec 31 23:59:59 2049 GMT
+ Subject: C=JP, ST=Tokyo, O=RubyTest, CN=Ruby Test CA
+ Subject Public Key Info:
+ Public Key Algorithm: rsaEncryption
+ RSA Public Key: (1024 bit)
+ Modulus (1024 bit):
+ 00:9f:58:19:39:bc:ea:0c:b8:c3:5d:12:a7:d8:20:
+ 6c:53:ac:91:34:c8:b4:db:3f:56:f6:75:b6:6c:23:
+ 80:23:6a:5f:b3:f6:9a:3e:00:b4:16:19:1c:9c:2c:
+ 8d:e8:53:d5:0b:f1:52:3f:7b:60:93:86:ae:89:ab:
+ 20:82:9a:b6:72:14:3c:4d:a9:0b:6c:34:79:9e:d3:
+ 14:82:6d:c9:3b:90:d9:5e:68:6f:8c:b5:d8:09:f4:
+ 6f:3b:22:9f:5e:81:9c:37:df:cf:90:36:65:57:dc:
+ ad:31:ca:8b:48:92:a7:3c:1e:42:e9:1c:4e:1e:cb:
+ 36:c1:44:4e:ab:9a:b2:73:6d
+ Exponent: 65537 (0x10001)
+ X509v3 extensions:
+ X509v3 Basic Constraints:
+ CA:FALSE
+ Netscape Comment:
+ OpenSSL Generated Certificate
+ X509v3 Subject Key Identifier:
+ 24:6F:03:A3:EE:06:51:75:B2:BA:FC:3A:38:59:BF:ED:87:CD:E8:7F
+ X509v3 Authority Key Identifier:
+ keyid:24:6F:03:A3:EE:06:51:75:B2:BA:FC:3A:38:59:BF:ED:87:CD:E8:7F
+
+ Signature Algorithm: sha1WithRSAEncryption
+ 13:eb:db:ca:cd:90:f2:09:9e:d9:72:70:5e:42:5d:11:84:ce:
+ 00:1d:c4:2f:41:d2:3e:16:e5:d4:97:1f:43:a9:a7:9c:fa:60:
+ c4:35:96:f2:f6:0d:13:6d:0f:36:dd:59:03:08:ee:2e:a6:df:
+ 9e:d8:6d:ca:72:8f:02:c2:2b:53:7b:12:7f:55:81:6c:9e:7d:
+ e7:40:7e:f8:f5:75:0d:4b:a0:8d:ee:a4:d9:e8:5f:06:c9:86:
+ 66:71:70:6c:41:81:6a:dd:a4:4f:a3:c1:ac:70:d4:78:1b:23:
+ 30:2f:a5:ef:98:ee:d4:62:80:fd:bf:d4:7a:9b:8e:2d:18:e5:
+ 00:46
+-----BEGIN CERTIFICATE-----
+MIICfzCCAeigAwIBAgIBADANBgkqhkiG9w0BAQUFADBHMQswCQYDVQQGEwJKUDEO
+MAwGA1UECBMFVG9reW8xETAPBgNVBAoTCFJ1YnlUZXN0MRUwEwYDVQQDEwxSdWJ5
+IFRlc3QgQ0EwHhcNMDkwMTAxMDAwMDAwWhcNNDkxMjMxMjM1OTU5WjBHMQswCQYD
+VQQGEwJKUDEOMAwGA1UECBMFVG9reW8xETAPBgNVBAoTCFJ1YnlUZXN0MRUwEwYD
+VQQDEwxSdWJ5IFRlc3QgQ0EwgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBAJ9Y
+GTm86gy4w10Sp9ggbFOskTTItNs/VvZ1tmwjgCNqX7P2mj4AtBYZHJwsjehT1Qvx
+Uj97YJOGromrIIKatnIUPE2pC2w0eZ7TFIJtyTuQ2V5ob4y12An0bzsin16BnDff
+z5A2ZVfcrTHKi0iSpzweQukcTh7LNsFETquasnNtAgMBAAGjezB5MAkGA1UdEwQC
+MAAwLAYJYIZIAYb4QgENBB8WHU9wZW5TU0wgR2VuZXJhdGVkIENlcnRpZmljYXRl
+MB0GA1UdDgQWBBQkbwOj7gZRdbK6/Do4Wb/th83ofzAfBgNVHSMEGDAWgBQkbwOj
+7gZRdbK6/Do4Wb/th83ofzANBgkqhkiG9w0BAQUFAAOBgQAT69vKzZDyCZ7ZcnBe
+Ql0RhM4AHcQvQdI+FuXUlx9Dqaec+mDENZby9g0TbQ823VkDCO4upt+e2G3Kco8C
+witTexJ/VYFsnn3nQH749XUNS6CN7qTZ6F8GyYZmcXBsQYFq3aRPo8GscNR4GyMw
+L6XvmO7UYoD9v9R6m44tGOUARg==
+-----END CERTIFICATE-----
+End
+
+TestOpenURISSL::SERVER_CERT = <<'End'
+Certificate:
+ Data:
+ Version: 3 (0x2)
+ Serial Number: 1 (0x1)
+ Signature Algorithm: sha1WithRSAEncryption
+ Issuer: C=JP, ST=Tokyo, O=RubyTest, CN=Ruby Test CA
+ Validity
+ Not Before: Jan 1 00:00:00 2009 GMT
+ Not After : Dec 31 23:59:59 2049 GMT
+ Subject: C=JP, ST=Tokyo, O=RubyTest, CN=127.0.0.1
+ Subject Public Key Info:
+ Public Key Algorithm: rsaEncryption
+ RSA Public Key: (1024 bit)
+ Modulus (1024 bit):
+ 00:bb:bd:74:69:53:58:50:24:79:f2:eb:db:8b:97:
+ e4:69:a4:dd:48:0c:40:35:62:42:b3:35:8c:96:2a:
+ 62:76:98:b5:2a:e0:f8:78:33:b6:ff:f8:55:bf:44:
+ 69:21:d7:b5:0e:bd:8a:dd:31:1b:88:d5:b4:5e:7a:
+ 82:e0:ba:99:6c:04:76:e9:ff:e6:f8:f5:06:8e:7e:
+ a4:db:db:eb:43:44:12:a7:ca:ca:2b:aa:5f:83:10:
+ e2:9e:35:55:e8:e8:af:be:c8:7d:bb:c2:d4:aa:c1:
+ 1c:57:0b:c0:0c:3a:1d:6e:23:a9:03:26:7c:ea:8c:
+ f0:86:61:ce:f1:ff:42:c7:23
+ Exponent: 65537 (0x10001)
+ X509v3 extensions:
+ X509v3 Basic Constraints:
+ CA:FALSE
+ Netscape Cert Type:
+ SSL Server
+ Netscape Comment:
+ OpenSSL Generated Certificate
+ X509v3 Subject Key Identifier:
+ 7F:17:5A:58:88:96:E1:1F:44:EA:FF:AD:C6:2E:90:E2:95:32:DD:F0
+ X509v3 Authority Key Identifier:
+ keyid:24:6F:03:A3:EE:06:51:75:B2:BA:FC:3A:38:59:BF:ED:87:CD:E8:7F
+
+ Signature Algorithm: sha1WithRSAEncryption
+ 9a:34:99:ea:76:a2:ed:f0:f7:a7:75:3b:81:fb:75:57:93:c1:
+ 27:b6:1e:7a:38:67:95:be:58:42:9a:0a:dd:2b:23:fb:85:42:
+ 80:34:bf:b9:0e:9c:5e:5a:dc:2d:25:8c:68:02:a2:c7:7f:c0:
+ eb:f3:e0:61:e2:05:e5:7e:c1:e0:33:1c:76:65:23:2c:25:08:
+ f6:5a:11:b9:d4:f7:e3:80:bb:b0:ce:76:1a:56:22:af:e2:4a:
+ e1:7e:a4:60:f3:fd:9c:53:46:51:57:32:6b:05:53:80:5c:a5:
+ 61:93:87:ae:06:a8:a2:ba:4d:a1:b7:1b:0f:8f:82:0a:e8:b3:
+ ea:63
+-----BEGIN CERTIFICATE-----
+MIICkTCCAfqgAwIBAgIBATANBgkqhkiG9w0BAQUFADBHMQswCQYDVQQGEwJKUDEO
+MAwGA1UECBMFVG9reW8xETAPBgNVBAoTCFJ1YnlUZXN0MRUwEwYDVQQDEwxSdWJ5
+IFRlc3QgQ0EwHhcNMDkwMTAxMDAwMDAwWhcNNDkxMjMxMjM1OTU5WjBEMQswCQYD
+VQQGEwJKUDEOMAwGA1UECBMFVG9reW8xETAPBgNVBAoTCFJ1YnlUZXN0MRIwEAYD
+VQQDEwkxMjcuMC4wLjEwgZ8wDQYJKoZIhvcNAQEBBQADgY0AMIGJAoGBALu9dGlT
+WFAkefLr24uX5Gmk3UgMQDViQrM1jJYqYnaYtSrg+Hgztv/4Vb9EaSHXtQ69it0x
+G4jVtF56guC6mWwEdun/5vj1Bo5+pNvb60NEEqfKyiuqX4MQ4p41Vejor77IfbvC
+1KrBHFcLwAw6HW4jqQMmfOqM8IZhzvH/QscjAgMBAAGjgY8wgYwwCQYDVR0TBAIw
+ADARBglghkgBhvhCAQEEBAMCBkAwLAYJYIZIAYb4QgENBB8WHU9wZW5TU0wgR2Vu
+ZXJhdGVkIENlcnRpZmljYXRlMB0GA1UdDgQWBBR/F1pYiJbhH0Tq/63GLpDilTLd
+8DAfBgNVHSMEGDAWgBQkbwOj7gZRdbK6/Do4Wb/th83ofzANBgkqhkiG9w0BAQUF
+AAOBgQCaNJnqdqLt8PendTuB+3VXk8Enth56OGeVvlhCmgrdKyP7hUKANL+5Dpxe
+WtwtJYxoAqLHf8Dr8+Bh4gXlfsHgMxx2ZSMsJQj2WhG51PfjgLuwznYaViKv4krh
+fqRg8/2cU0ZRVzJrBVOAXKVhk4euBqiiuk2htxsPj4IK6LPqYw==
+-----END CERTIFICATE-----
+End
+
+TestOpenURISSL::SERVER_KEY = <<'End'
+Private-Key: (1024 bit)
+modulus:
+ 00:bb:bd:74:69:53:58:50:24:79:f2:eb:db:8b:97:
+ e4:69:a4:dd:48:0c:40:35:62:42:b3:35:8c:96:2a:
+ 62:76:98:b5:2a:e0:f8:78:33:b6:ff:f8:55:bf:44:
+ 69:21:d7:b5:0e:bd:8a:dd:31:1b:88:d5:b4:5e:7a:
+ 82:e0:ba:99:6c:04:76:e9:ff:e6:f8:f5:06:8e:7e:
+ a4:db:db:eb:43:44:12:a7:ca:ca:2b:aa:5f:83:10:
+ e2:9e:35:55:e8:e8:af:be:c8:7d:bb:c2:d4:aa:c1:
+ 1c:57:0b:c0:0c:3a:1d:6e:23:a9:03:26:7c:ea:8c:
+ f0:86:61:ce:f1:ff:42:c7:23
+publicExponent: 65537 (0x10001)
+privateExponent:
+ 00:af:3a:ec:17:0a:f5:d9:07:d2:d3:4c:15:c5:3b:
+ 66:b4:bc:6e:d5:ba:a9:8b:aa:45:3b:63:f5:ee:8b:
+ 6d:0f:e9:04:e0:1a:cf:8f:d2:25:32:d1:a5:a7:3a:
+ c1:2e:17:5a:25:82:00:c4:e7:fb:1d:42:ea:71:6c:
+ c4:0f:e1:db:23:ff:1e:d6:c8:d6:60:ca:2d:06:fc:
+ 54:3c:03:d4:09:96:bb:38:7a:22:a1:61:2c:f7:d0:
+ d0:90:6c:9f:61:ba:61:30:5a:aa:64:ad:43:3a:53:
+ 38:e8:ba:cc:8c:51:3e:68:3e:3a:6a:0f:5d:5d:e0:
+ d6:df:f2:54:93:d3:14:22:a1
+prime1:
+ 00:e8:ec:11:fe:e6:2b:23:21:29:d5:40:a6:11:ec:
+ 4c:ae:4d:08:2a:71:18:ac:d1:3e:40:2f:12:41:59:
+ 12:09:e2:f7:c2:d7:6b:0a:96:0a:06:e3:90:6a:4e:
+ b2:eb:25:b7:09:68:e9:13:ab:d0:5a:29:7a:e4:72:
+ 1a:ee:46:a0:8b
+prime2:
+ 00:ce:57:5e:31:e9:c9:a8:5b:1f:55:af:67:e2:49:
+ 2a:af:90:b6:02:c0:32:2f:ca:ae:1e:de:47:81:73:
+ a8:f8:37:53:70:93:24:62:77:d4:b8:80:30:9f:65:
+ 26:20:46:ae:5a:65:6e:6d:af:68:4c:8d:e8:3c:f3:
+ d1:d1:d9:6e:c9
+exponent1:
+ 03:f1:02:b8:f2:82:26:5d:08:4d:30:83:de:e7:c5:
+ c0:69:53:4b:0c:90:e3:53:c3:1e:e8:ed:01:28:15:
+ b3:0f:21:2c:2d:e3:04:d1:d7:27:98:b0:37:ec:4f:
+ 00:c5:a9:9c:42:27:37:8a:ff:c2:96:d3:1a:8c:87:
+ c2:22:75:d3
+exponent2:
+ 6f:17:32:ab:84:c7:01:51:2d:e9:9f:ea:3a:36:52:
+ 38:fb:9c:42:96:df:6e:43:9c:c3:19:c1:3d:bc:db:
+ 77:e7:b1:90:a6:67:ac:6b:ff:a6:e5:bd:47:d3:d9:
+ 56:ff:36:d7:8c:4c:8b:d9:28:3a:2f:1c:9d:d4:57:
+ 5e:b7:c5:a1
+coefficient:
+ 45:50:47:66:56:e9:21:d9:40:0e:af:3f:f2:05:77:
+ ab:e7:08:40:97:88:2a:51:b3:7e:86:b0:b2:03:2e:
+ 6d:36:3f:46:42:97:7d:5a:a2:93:6c:05:c2:8b:8b:
+ 2d:af:d5:7d:75:e9:70:f0:2d:21:e3:b9:cf:4d:9a:
+ c4:97:e2:79
+-----BEGIN RSA PRIVATE KEY-----
+MIICXAIBAAKBgQC7vXRpU1hQJHny69uLl+RppN1IDEA1YkKzNYyWKmJ2mLUq4Ph4
+M7b/+FW/RGkh17UOvYrdMRuI1bReeoLguplsBHbp/+b49QaOfqTb2+tDRBKnysor
+ql+DEOKeNVXo6K++yH27wtSqwRxXC8AMOh1uI6kDJnzqjPCGYc7x/0LHIwIDAQAB
+AoGBAK867BcK9dkH0tNMFcU7ZrS8btW6qYuqRTtj9e6LbQ/pBOAaz4/SJTLRpac6
+wS4XWiWCAMTn+x1C6nFsxA/h2yP/HtbI1mDKLQb8VDwD1AmWuzh6IqFhLPfQ0JBs
+n2G6YTBaqmStQzpTOOi6zIxRPmg+OmoPXV3g1t/yVJPTFCKhAkEA6OwR/uYrIyEp
+1UCmEexMrk0IKnEYrNE+QC8SQVkSCeL3wtdrCpYKBuOQak6y6yW3CWjpE6vQWil6
+5HIa7kagiwJBAM5XXjHpyahbH1WvZ+JJKq+QtgLAMi/Krh7eR4FzqPg3U3CTJGJ3
+1LiAMJ9lJiBGrlplbm2vaEyN6Dzz0dHZbskCQAPxArjygiZdCE0wg97nxcBpU0sM
+kONTwx7o7QEoFbMPISwt4wTR1yeYsDfsTwDFqZxCJzeK/8KW0xqMh8IiddMCQG8X
+MquExwFRLemf6jo2Ujj7nEKW325DnMMZwT2823fnsZCmZ6xr/6blvUfT2Vb/NteM
+TIvZKDovHJ3UV163xaECQEVQR2ZW6SHZQA6vP/IFd6vnCECXiCpRs36GsLIDLm02
+P0ZCl31aopNsBcKLiy2v1X116XDwLSHjuc9NmsSX4nk=
+-----END RSA PRIVATE KEY-----
+End
diff --git a/test/openssl/test_asn1.rb b/test/openssl/test_asn1.rb
index 86811a464c..09324761da 100644
--- a/test/openssl/test_asn1.rb
+++ b/test/openssl/test_asn1.rb
@@ -1,9 +1,4 @@
-begin
- require "openssl"
- require File.join(File.dirname(__FILE__), "utils.rb")
-rescue LoadError
-end
-require 'test/unit'
+require_relative 'utils'
class OpenSSL::TestASN1 < Test::Unit::TestCase
def test_decode
@@ -194,4 +189,401 @@ class OpenSSL::TestASN1 < Test::Unit::TestCase
cululated_sig = key.sign(OpenSSL::Digest::SHA1.new, tbs_cert.to_der)
assert_equal(cululated_sig, sig_val.value)
end
+
+ def test_encode_boolean
+ encode_decode_test(OpenSSL::ASN1::Boolean, [true, false])
+ end
+
+ def test_encode_integer
+ encode_decode_test(OpenSSL::ASN1::Integer, [72, -127, -128, 128, -1, 0, 1, -(2**12345), 2**12345])
+ end
+
+ def encode_decode_test(type, values)
+ values.each do |v|
+ assert_equal(v, OpenSSL::ASN1.decode(type.new(v).to_der).value)
+ end
+ end
+
+ def test_decode_pem #should fail gracefully (cf. [ruby-dev:44542])
+ pem = <<-_EOS_
+-----BEGIN CERTIFICATE-----
+MIIC8zCCAdugAwIBAgIBATANBgkqhkiG9w0BAQUFADA9MRMwEQYKCZImiZPyLGQB
+GRYDb3JnMRkwFwYKCZImiZPyLGQBGRYJcnVieS1sYW5nMQswCQYDVQQDDAJDQTAe
+Fw0xMTA5MjUxMzQ4MjZaFw0xMTA5MjUxNDQ4MjZaMD0xEzARBgoJkiaJk/IsZAEZ
+FgNvcmcxGTAXBgoJkiaJk/IsZAEZFglydWJ5LWxhbmcxCzAJBgNVBAMMAkNBMIIB
+IjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAuV9ht9J7k4NBs38jOXvvTKY9
+gW8nLICSno5EETR1cuF7i4pNs9I1QJGAFAX0BEO4KbzXmuOvfCpD3CU+Slp1enen
+fzq/t/e/1IRW0wkJUJUFQign4CtrkJL+P07yx18UjyPlBXb81ApEmAB5mrJVSrWm
+qbjs07JbuS4QQGGXLc+Su96DkYKmSNVjBiLxVVSpyZfAY3hD37d60uG+X8xdW5v6
+8JkRFIhdGlb6JL8fllf/A/blNwdJOhVr9mESHhwGjwfSeTDPfd8ZLE027E5lyAVX
+9KZYcU00mOX+fdxOSnGqS/8JDRh0EPHDL15RcJjV2J6vZjPb0rOYGDoMcH+94wID
+AQABMA0GCSqGSIb3DQEBBQUAA4IBAQAiAtrIr1pLX4GYN5klviWKb8HC9ICYuAFI
+NfE3FwqzErEVXotuMe3yPVyB3Bv6rjYY/x5EtS5+WPTbHlvHZTkfcsnTpizcn4mW
+dJ6dDRaFCHt1YKKjUxqBt9lvvrc3nReYZN/P+s1mrDhWzGf8iPZgf8sFUHgnaK7W
+CXRVXmPFgCDRNpDDVQ0MQkr509yYfTH+dujNzqTCwSvkyZFyQ7Oe8Yj0VR6kquG3
+rEzBQ0F9dUyqQ9gyRg8KHhDfv9HzT1d/rnUZMkoombwYBRIUChGCYV0GnJcan2Zm
+/93PnPG1IvPjYNd5VlV+sXSnaxQn974HRCsMv7jA8BD6IgSaX6WK
+-----END CERTIFICATE-----
+ _EOS_
+ assert_raise(OpenSSL::ASN1::ASN1Error) { OpenSSL::ASN1.decode(pem) }
+ assert_raise(OpenSSL::ASN1::ASN1Error) { OpenSSL::ASN1.decode_all(pem) }
+ end
+
+ def test_primitive_cannot_set_infinite_length
+ begin
+ prim = OpenSSL::ASN1::Integer.new(50)
+ assert_equal(false, prim.infinite_length)
+ prim.infinite_length = true
+ flunk('Could set infinite length on primitive value')
+ rescue NoMethodError => e
+ #ok
+ end
+ end
+
+ def test_decode_all
+ expected = %w{ 02 01 01 02 01 02 02 01 03 }
+ raw = [expected.join('')].pack('H*')
+ ary = OpenSSL::ASN1.decode_all(raw)
+ assert_equal(3, ary.size)
+ ary.each_with_index do |asn1, i|
+ assert_universal(OpenSSL::ASN1::INTEGER, asn1)
+ assert_equal(i + 1, asn1.value)
+ end
+ end
+
+ def test_create_inf_length_primitive
+ expected = %w{ 24 80 04 01 61 00 00 }
+ raw = [expected.join('')].pack('H*')
+ val = OpenSSL::ASN1::OctetString.new('a')
+ cons = OpenSSL::ASN1::Constructive.new([val,
+ OpenSSL::ASN1::EndOfContent.new],
+ OpenSSL::ASN1::OCTET_STRING,
+ nil,
+ :UNIVERSAL)
+ cons.infinite_length = true
+ assert_equal(nil, cons.tagging)
+ assert_equal(raw, cons.to_der)
+ asn1 = OpenSSL::ASN1.decode(raw)
+ assert(asn1.infinite_length)
+ assert_equal(raw, asn1.to_der)
+ end
+
+ def test_cons_without_inf_length_forbidden
+ assert_raise(OpenSSL::ASN1::ASN1Error) do
+ val = OpenSSL::ASN1::OctetString.new('a')
+ cons = OpenSSL::ASN1::Constructive.new([val],
+ OpenSSL::ASN1::OCTET_STRING,
+ nil,
+ :UNIVERSAL)
+ cons.to_der
+ end
+ end
+
+ def test_cons_without_array_forbidden
+ assert_raise(OpenSSL::ASN1::ASN1Error) do
+ val = OpenSSL::ASN1::OctetString.new('a')
+ cons = OpenSSL::ASN1::Constructive.new(val,
+ OpenSSL::ASN1::OCTET_STRING,
+ nil,
+ :UNIVERSAL)
+ cons.infinite_length = true
+ cons.to_der
+ end
+ end
+
+ def test_parse_empty_sequence
+ expected = %w{ A0 07 30 02 30 00 02 01 00 }
+ raw = [expected.join('')].pack('H*')
+ asn1 = OpenSSL::ASN1.decode(raw)
+ assert_equal(raw, asn1.to_der)
+ assert_equal(2, asn1.value.size)
+ seq = asn1.value[0]
+ assert_equal(1, seq.value.size)
+ inner_seq = seq.value[0]
+ assert_equal(0, inner_seq.value.size)
+ end
+
+ def test_parse_tagged_0_infinite
+ expected = %w{ 30 80 02 01 01 80 01 02 00 00 }
+ raw = [expected.join('')].pack('H*')
+ asn1 = OpenSSL::ASN1.decode(raw)
+ assert_equal(3, asn1.value.size)
+ int = asn1.value[0]
+ assert_universal(OpenSSL::ASN1::INTEGER, int)
+ tagged = asn1.value[1]
+ assert_equal(0, tagged.tag)
+ assert_universal(OpenSSL::ASN1::EOC, asn1.value[2])
+ assert_equal(raw, asn1.to_der)
+ end
+
+ def test_seq_infinite_length
+ begin
+ content = [ OpenSSL::ASN1::Null.new(nil),
+ OpenSSL::ASN1::EndOfContent.new ]
+ cons = OpenSSL::ASN1::Sequence.new(content)
+ cons.infinite_length = true
+ expected = %w{ 30 80 05 00 00 00 }
+ raw = [expected.join('')].pack('H*')
+ assert_equal(raw, cons.to_der)
+ assert_equal(raw, OpenSSL::ASN1.decode(raw).to_der)
+ end
+ end
+
+ def test_set_infinite_length
+ begin
+ content = [ OpenSSL::ASN1::Null.new(nil),
+ OpenSSL::ASN1::EndOfContent.new() ]
+ cons = OpenSSL::ASN1::Set.new(content)
+ cons.infinite_length = true
+ expected = %w{ 31 80 05 00 00 00 }
+ raw = [expected.join('')].pack('H*')
+ assert_equal(raw, cons.to_der)
+ assert_equal(raw, OpenSSL::ASN1.decode(raw).to_der)
+ end
+ end
+
+ def test_octet_string_infinite_length
+ begin
+ octets = [ OpenSSL::ASN1::OctetString.new('aaa'),
+ OpenSSL::ASN1::EndOfContent.new() ]
+ cons = OpenSSL::ASN1::Constructive.new(
+ octets,
+ OpenSSL::ASN1::OCTET_STRING,
+ nil,
+ :UNIVERSAL)
+ cons.infinite_length = true
+ expected = %w{ 24 80 04 03 61 61 61 00 00 }
+ raw = [expected.join('')].pack('H*')
+ assert_equal(raw, cons.to_der)
+ assert_equal(raw, OpenSSL::ASN1.decode(raw).to_der)
+ end
+ end
+
+ def test_prim_explicit_tagging
+ begin
+ oct_str = OpenSSL::ASN1::OctetString.new("a", 0, :EXPLICIT)
+ expected = %w{ A0 03 04 01 61 }
+ raw = [expected.join('')].pack('H*')
+ assert_equal(raw, oct_str.to_der)
+ assert_equal(raw, OpenSSL::ASN1.decode(raw).to_der)
+ end
+ end
+
+ def test_prim_explicit_tagging_tag_class
+ begin
+ oct_str = OpenSSL::ASN1::OctetString.new("a", 0, :EXPLICIT)
+ oct_str2 = OpenSSL::ASN1::OctetString.new(
+ "a",
+ 0,
+ :EXPLICIT,
+ :CONTEXT_SPECIFIC)
+ assert_equal(oct_str.to_der, oct_str2.to_der)
+ end
+ end
+
+ def test_prim_implicit_tagging
+ begin
+ int = OpenSSL::ASN1::Integer.new(1, 0, :IMPLICIT)
+ expected = %w{ 80 01 01 }
+ raw = [expected.join('')].pack('H*')
+ assert_equal(raw, int.to_der)
+ assert_equal(raw, OpenSSL::ASN1.decode(raw).to_der)
+ end
+ end
+
+ def test_prim_implicit_tagging_tag_class
+ begin
+ int = OpenSSL::ASN1::Integer.new(1, 0, :IMPLICIT)
+ int2 = OpenSSL::ASN1::Integer.new(1, 0, :IMPLICIT, :CONTEXT_SPECIFIC);
+ assert_equal(int.to_der, int2.to_der)
+ end
+ end
+
+ def test_cons_explicit_tagging
+ begin
+ content = [ OpenSSL::ASN1::PrintableString.new('abc') ]
+ seq = OpenSSL::ASN1::Sequence.new(content, 2, :EXPLICIT)
+ expected = %w{ A2 07 30 05 13 03 61 62 63 }
+ raw = [expected.join('')].pack('H*')
+ assert_equal(raw, seq.to_der)
+ assert_equal(raw, OpenSSL::ASN1.decode(raw).to_der)
+ end
+ end
+
+ def test_cons_explicit_tagging_inf_length
+ begin
+ content = [ OpenSSL::ASN1::PrintableString.new('abc') ,
+ OpenSSL::ASN1::EndOfContent.new() ]
+ seq = OpenSSL::ASN1::Sequence.new(content, 2, :EXPLICIT)
+ seq.infinite_length = true
+ expected = %w{ A2 80 30 80 13 03 61 62 63 00 00 00 00 }
+ raw = [expected.join('')].pack('H*')
+ assert_equal(raw, seq.to_der)
+ assert_equal(raw, OpenSSL::ASN1.decode(raw).to_der)
+ end
+ end
+
+ def test_cons_implicit_tagging
+ begin
+ content = [ OpenSSL::ASN1::Null.new(nil) ]
+ seq = OpenSSL::ASN1::Sequence.new(content, 1, :IMPLICIT)
+ expected = %w{ A1 02 05 00 }
+ raw = [expected.join('')].pack('H*')
+ assert_equal(raw, seq.to_der)
+ assert_equal(raw, OpenSSL::ASN1.decode(raw).to_der)
+ end
+ end
+
+ def test_cons_implicit_tagging_inf_length
+ begin
+ content = [ OpenSSL::ASN1::Null.new(nil),
+ OpenSSL::ASN1::EndOfContent.new() ]
+ seq = OpenSSL::ASN1::Sequence.new(content, 1, :IMPLICIT)
+ seq.infinite_length = true
+ expected = %w{ A1 80 05 00 00 00 }
+ raw = [expected.join('')].pack('H*')
+ assert_equal(raw, seq.to_der)
+ assert_equal(raw, OpenSSL::ASN1.decode(raw).to_der)
+ end
+ end
+
+ def test_octet_string_infinite_length_explicit_tagging
+ begin
+ octets = [ OpenSSL::ASN1::OctetString.new('aaa'),
+ OpenSSL::ASN1::EndOfContent.new() ]
+ cons = OpenSSL::ASN1::Constructive.new(
+ octets,
+ 1,
+ :EXPLICIT)
+ cons.infinite_length = true
+ expected = %w{ A1 80 24 80 04 03 61 61 61 00 00 00 00 }
+ raw = [expected.join('')].pack('H*')
+ assert_equal(raw, cons.to_der)
+ assert_equal(raw, OpenSSL::ASN1.decode(raw).to_der)
+ end
+ end
+
+ def test_octet_string_infinite_length_implicit_tagging
+ begin
+ octets = [ OpenSSL::ASN1::OctetString.new('aaa'),
+ OpenSSL::ASN1::EndOfContent.new() ]
+ cons = OpenSSL::ASN1::Constructive.new(
+ octets,
+ 0,
+ :IMPLICIT)
+ cons.infinite_length = true
+ expected = %w{ A0 80 04 03 61 61 61 00 00 }
+ raw = [expected.join('')].pack('H*')
+ assert_equal(raw, cons.to_der)
+ assert_equal(raw, OpenSSL::ASN1.decode(raw).to_der)
+ end
+ end
+
+ def test_recursive_octet_string_infinite_length
+ begin
+ octets_sub1 = [ OpenSSL::ASN1::OctetString.new("\x01"),
+ OpenSSL::ASN1::EndOfContent.new() ]
+ octets_sub2 = [ OpenSSL::ASN1::OctetString.new("\x02"),
+ OpenSSL::ASN1::EndOfContent.new() ]
+ container1 = OpenSSL::ASN1::Constructive.new(
+ octets_sub1,
+ OpenSSL::ASN1::OCTET_STRING,
+ nil,
+ :UNIVERSAL)
+ container1.infinite_length = true
+ container2 = OpenSSL::ASN1::Constructive.new(
+ octets_sub2,
+ OpenSSL::ASN1::OCTET_STRING,
+ nil,
+ :UNIVERSAL)
+ container2.infinite_length = true
+ octets3 = OpenSSL::ASN1::OctetString.new("\x03")
+
+ octets = [ container1, container2, octets3,
+ OpenSSL::ASN1::EndOfContent.new() ]
+ cons = OpenSSL::ASN1::Constructive.new(
+ octets,
+ OpenSSL::ASN1::OCTET_STRING,
+ nil,
+ :UNIVERSAL)
+ cons.infinite_length = true
+ expected = %w{ 24 80 24 80 04 01 01 00 00 24 80 04 01 02 00 00 04 01 03 00 00 }
+ raw = [expected.join('')].pack('H*')
+ assert_equal(raw, cons.to_der)
+ assert_equal(raw, OpenSSL::ASN1.decode(raw).to_der)
+ end
+ end
+
+ def test_bit_string_infinite_length
+ begin
+ content = [ OpenSSL::ASN1::BitString.new("\x01"),
+ OpenSSL::ASN1::EndOfContent.new() ]
+ cons = OpenSSL::ASN1::Constructive.new(
+ content,
+ OpenSSL::ASN1::BIT_STRING,
+ nil,
+ :UNIVERSAL)
+ cons.infinite_length = true
+ expected = %w{ 23 80 03 02 00 01 00 00 }
+ raw = [expected.join('')].pack('H*')
+ assert_equal(raw, cons.to_der)
+ assert_equal(raw, OpenSSL::ASN1.decode(raw).to_der)
+ end
+ end
+
+ def test_primitive_inf_length
+ assert_raises(OpenSSL::ASN1::ASN1Error) do
+ spec = %w{ 02 80 02 01 01 00 00 }
+ raw = [spec.join('')].pack('H*')
+ OpenSSL::ASN1.decode(raw)
+ OpenSSL::ASN1.decode_all(raw)
+ end
+ end
+
+ def test_recursive_octet_string_parse
+ test = %w{ 24 80 24 80 04 01 01 00 00 24 80 04 01 02 00 00 04 01 03 00 00 }
+ raw = [test.join('')].pack('H*')
+ asn1 = OpenSSL::ASN1.decode(raw)
+ assert_equal(OpenSSL::ASN1::Constructive, asn1.class)
+ assert_universal(OpenSSL::ASN1::OCTET_STRING, asn1)
+ assert_equal(true, asn1.infinite_length)
+ assert_equal(4, asn1.value.size)
+ nested1 = asn1.value[0]
+ assert_equal(OpenSSL::ASN1::Constructive, nested1.class)
+ assert_universal(OpenSSL::ASN1::OCTET_STRING, nested1)
+ assert_equal(true, nested1.infinite_length)
+ assert_equal(2, nested1.value.size)
+ oct1 = nested1.value[0]
+ assert_universal(OpenSSL::ASN1::OCTET_STRING, oct1)
+ assert_equal(false, oct1.infinite_length)
+ assert_universal(OpenSSL::ASN1::EOC, nested1.value[1])
+ assert_equal(false, nested1.value[1].infinite_length)
+ nested2 = asn1.value[1]
+ assert_equal(OpenSSL::ASN1::Constructive, nested2.class)
+ assert_universal(OpenSSL::ASN1::OCTET_STRING, nested2)
+ assert_equal(true, nested2.infinite_length)
+ assert_equal(2, nested2.value.size)
+ oct2 = nested2.value[0]
+ assert_universal(OpenSSL::ASN1::OCTET_STRING, oct2)
+ assert_equal(false, oct2.infinite_length)
+ assert_universal(OpenSSL::ASN1::EOC, nested2.value[1])
+ assert_equal(false, nested2.value[1].infinite_length)
+ oct3 = asn1.value[2]
+ assert_universal(OpenSSL::ASN1::OCTET_STRING, oct3)
+ assert_equal(false, oct3.infinite_length)
+ assert_universal(OpenSSL::ASN1::EOC, asn1.value[3])
+ assert_equal(false, asn1.value[3].infinite_length)
+ end
+
+ private
+
+ def assert_universal(tag, asn1)
+ assert_equal(tag, asn1.tag)
+ if asn1.respond_to?(:tagging)
+ assert_nil(asn1.tagging)
+ end
+ assert_equal(:UNIVERSAL, asn1.tag_class)
+ end
+
end if defined?(OpenSSL)
+
diff --git a/test/openssl/test_bn.rb b/test/openssl/test_bn.rb
new file mode 100644
index 0000000000..7136de9a27
--- /dev/null
+++ b/test/openssl/test_bn.rb
@@ -0,0 +1,23 @@
+require_relative 'utils'
+
+if defined?(OpenSSL)
+
+class OpenSSL::TestBN < Test::Unit::TestCase
+ def test_integer_to_bn
+ assert_equal(999.to_bn, OpenSSL::BN.new(999.to_s(16), 16))
+ assert_equal((2 ** 107 - 1).to_bn, OpenSSL::BN.new((2 ** 107 - 1).to_s(16), 16))
+ end
+
+ def test_prime_p
+ assert_equal(true, OpenSSL::BN.new((2 ** 107 - 1).to_s(16), 16).prime?)
+ assert_equal(true, OpenSSL::BN.new((2 ** 127 - 1).to_s(16), 16).prime?(1))
+ end
+
+ def test_cmp_nil
+ bn = OpenSSL::BN.new('1')
+ assert_equal(false, bn == nil)
+ assert_equal(true, bn != nil)
+ end
+end
+
+end
diff --git a/test/openssl/test_buffering.rb b/test/openssl/test_buffering.rb
new file mode 100644
index 0000000000..1e2197533a
--- /dev/null
+++ b/test/openssl/test_buffering.rb
@@ -0,0 +1,88 @@
+require_relative 'utils'
+require 'stringio'
+
+class OpenSSL::TestBuffering < Test::Unit::TestCase
+
+ class IO
+ include OpenSSL::Buffering
+
+ attr_accessor :sync
+
+ def initialize
+ @io = ""
+ def @io.sync
+ true
+ end
+
+ super
+
+ @sync = false
+ end
+
+ def string
+ @io
+ end
+
+ def sysread(size)
+ str = @io.slice!(0, size)
+ raise EOFError if str.empty?
+ str
+ end
+
+ def syswrite(str)
+ @io << str
+ str.size
+ end
+ end
+
+ def setup
+ @io = IO.new
+ end
+
+ def test_flush
+ @io.write 'a'
+
+ refute @io.sync
+ assert_empty @io.string
+
+ assert_equal @io, @io.flush
+
+ refute @io.sync
+ assert_equal 'a', @io.string
+ end
+
+ def test_flush_error
+ @io.write 'a'
+
+ refute @io.sync
+ assert_empty @io.string
+
+ def @io.syswrite *a
+ raise SystemCallError, 'fail'
+ end
+
+ assert_raises SystemCallError do
+ @io.flush
+ end
+
+ refute @io.sync, 'sync must not change'
+ end
+
+ def test_getc
+ @io.syswrite('abc')
+ res = []
+ assert_equal(?a, @io.getc)
+ assert_equal(?b, @io.getc)
+ assert_equal(?c, @io.getc)
+ end
+
+ def test_each_byte
+ @io.syswrite('abc')
+ res = []
+ @io.each_byte do |c|
+ res << c
+ end
+ assert_equal([97, 98, 99], res)
+ end
+
+end if defined?(OpenSSL)
diff --git a/test/openssl/test_cipher.rb b/test/openssl/test_cipher.rb
index cc21e818ed..eb2f4fec57 100644
--- a/test/openssl/test_cipher.rb
+++ b/test/openssl/test_cipher.rb
@@ -1,8 +1,4 @@
-begin
- require "openssl"
-rescue LoadError
-end
-require "test/unit"
+require_relative 'utils'
if defined?(OpenSSL)
@@ -68,6 +64,11 @@ class OpenSSL::TestCipher < Test::Unit::TestCase
assert_raise(ArgumentError){ @c1.update("") }
end
+ def test_initialize
+ assert_raise(RuntimeError) {@c1.__send__(:initialize, "DES-EDE3-CBC")}
+ assert_raise(RuntimeError) {OpenSSL::Cipher.allocate.final}
+ end
+
if OpenSSL::OPENSSL_VERSION_NUMBER > 0x00907000
def test_ciphers
OpenSSL::Cipher.ciphers.each{|name|
@@ -89,6 +90,15 @@ class OpenSSL::TestCipher < Test::Unit::TestCase
assert_equal(pt, c2.update(ct) + c2.final)
}
end
+
+ def test_AES_crush
+ 500.times do
+ assert_nothing_raised("[Bug #2768]") do
+ # it caused OpenSSL SEGV by uninitialized key
+ OpenSSL::Cipher::AES128.new("ECB").update "." * 17
+ end
+ end
+ end
end
end
diff --git a/test/openssl/test_config.rb b/test/openssl/test_config.rb
new file mode 100644
index 0000000000..77f89b2bd6
--- /dev/null
+++ b/test/openssl/test_config.rb
@@ -0,0 +1,288 @@
+require_relative 'utils'
+
+class OpenSSL::TestConfig < Test::Unit::TestCase
+ def setup
+ file = Tempfile.open("openssl.cnf")
+ file << <<__EOD__
+HOME = .
+[ ca ]
+default_ca = CA_default
+[ CA_default ]
+dir = ./demoCA
+certs = ./certs
+__EOD__
+ file.close
+ @it = OpenSSL::Config.new(file.path)
+ end
+
+ def test_constants
+ assert(defined?(OpenSSL::Config::DEFAULT_CONFIG_FILE))
+ assert_nothing_raised do
+ OpenSSL::Config.load(OpenSSL::Config::DEFAULT_CONFIG_FILE)
+ end
+ end
+
+ def test_s_parse
+ c = OpenSSL::Config.parse('')
+ assert_equal("[ default ]\n\n", c.to_s)
+ c = OpenSSL::Config.parse(@it.to_s)
+ assert_equal(['CA_default', 'ca', 'default'], c.sections.sort)
+ end
+
+ def test_s_parse_format
+ c = OpenSSL::Config.parse(<<__EOC__)
+ baz =qx\t # "baz = qx"
+
+foo::bar = baz # shortcut section::key format
+ default::bar = baz # ditto
+a=\t \t # "a = ": trailing spaces are ignored
+ =b # " = b": empty key
+ =c # " = c": empty key (override the above line)
+ d= # "c = ": trailing comment is ignored
+
+sq = 'foo''b\\'ar'
+ dq ="foo""''\\""
+ dq2 = foo""bar
+esc=a\\r\\n\\b\\tb
+foo\\bar = foo\\b\\\\ar
+foo\\bar::foo\\bar = baz
+[default1 default2]\t\t # space is allowed in section name
+ fo =b ar # space allowed in value
+[emptysection]
+ [doller ]
+foo=bar
+bar = $(foo)
+baz = 123$(default::bar)456${foo}798
+qux = ${baz}
+quxx = $qux.$qux
+__EOC__
+ assert_equal(['default', 'default1 default2', 'doller', 'emptysection', 'foo', 'foo\\bar'], c.sections.sort)
+ assert_equal(['', 'a', 'bar', 'baz', 'd', 'dq', 'dq2', 'esc', 'foo\\bar', 'sq'], c['default'].keys.sort)
+ assert_equal('c', c['default'][''])
+ assert_equal('', c['default']['a'])
+ assert_equal('qx', c['default']['baz'])
+ assert_equal('', c['default']['d'])
+ assert_equal('baz', c['default']['bar'])
+ assert_equal("foob'ar", c['default']['sq'])
+ assert_equal("foo''\"", c['default']['dq'])
+ assert_equal("foobar", c['default']['dq2'])
+ assert_equal("a\r\n\b\tb", c['default']['esc'])
+ assert_equal("foo\b\\ar", c['default']['foo\\bar'])
+ assert_equal('baz', c['foo']['bar'])
+ assert_equal('baz', c['foo\\bar']['foo\\bar'])
+ assert_equal('b ar', c['default1 default2']['fo'])
+
+ # dolloer
+ assert_equal('bar', c['doller']['foo'])
+ assert_equal('bar', c['doller']['bar'])
+ assert_equal('123baz456bar798', c['doller']['baz'])
+ assert_equal('123baz456bar798', c['doller']['qux'])
+ assert_equal('123baz456bar798.123baz456bar798', c['doller']['quxx'])
+
+ excn = assert_raise(OpenSSL::ConfigError) do
+ OpenSSL::Config.parse("foo = $bar")
+ end
+ assert_equal("error in line 1: variable has no value", excn.message)
+
+ excn = assert_raise(OpenSSL::ConfigError) do
+ OpenSSL::Config.parse("foo = $(bar")
+ end
+ assert_equal("error in line 1: no close brace", excn.message)
+
+ excn = assert_raise(OpenSSL::ConfigError) do
+ OpenSSL::Config.parse("f o =b ar # no space in key")
+ end
+ assert_equal("error in line 1: missing equal sign", excn.message)
+
+ excn = assert_raise(OpenSSL::ConfigError) do
+ OpenSSL::Config.parse(<<__EOC__)
+# comment 1 # comments
+
+#
+ # comment 2
+\t#comment 3
+ [second ]\t
+[third # section not terminated
+__EOC__
+ end
+ assert_equal("error in line 7: missing close square bracket", excn.message)
+ end
+
+ def test_s_load
+ # alias of new
+ c = OpenSSL::Config.load
+ assert_equal("", c.to_s)
+ assert_equal([], c.sections)
+ #
+ file = Tempfile.open("openssl.cnf")
+ file.close
+ c = OpenSSL::Config.load(file.path)
+ assert_equal("[ default ]\n\n", c.to_s)
+ assert_equal(['default'], c.sections)
+ end
+
+ def test_initialize
+ c = OpenSSL::Config.new
+ assert_equal("", c.to_s)
+ assert_equal([], c.sections)
+ end
+
+ def test_initialize_with_empty_file
+ file = Tempfile.open("openssl.cnf")
+ file.close
+ c = OpenSSL::Config.new(file.path)
+ assert_equal("[ default ]\n\n", c.to_s)
+ assert_equal(['default'], c.sections)
+ end
+
+ def test_initialize_with_example_file
+ assert_equal(['CA_default', 'ca', 'default'], @it.sections.sort)
+ end
+
+ def test_get_value
+ assert_equal('CA_default', @it.get_value('ca', 'default_ca'))
+ assert_equal(nil, @it.get_value('ca', 'no such key'))
+ assert_equal(nil, @it.get_value('no such section', 'no such key'))
+ assert_equal('.', @it.get_value('', 'HOME'))
+ assert_raise(TypeError) do
+ @it.get_value(nil, 'HOME') # not allowed unlike Config#value
+ end
+ # fallback to 'default' ugly...
+ assert_equal('.', @it.get_value('unknown', 'HOME'))
+ end
+
+ def test_get_value_ENV
+ key = ENV.keys.first
+ assert_not_nil(key) # make sure we have at least one ENV var.
+ assert_equal(ENV[key], @it.get_value('ENV', key))
+ end
+
+ def test_value
+ # supress deprecation warnings
+ OpenSSL::TestUtils.silent do
+ assert_equal('CA_default', @it.value('ca', 'default_ca'))
+ assert_equal(nil, @it.value('ca', 'no such key'))
+ assert_equal(nil, @it.value('no such section', 'no such key'))
+ assert_equal('.', @it.value('', 'HOME'))
+ assert_equal('.', @it.value(nil, 'HOME'))
+ assert_equal('.', @it.value('HOME'))
+ # fallback to 'default' ugly...
+ assert_equal('.', @it.value('unknown', 'HOME'))
+ end
+ end
+
+ def test_value_ENV
+ OpenSSL::TestUtils.silent do
+ key = ENV.keys.first
+ assert_not_nil(key) # make sure we have at least one ENV var.
+ assert_equal(ENV[key], @it.value('ENV', key))
+ end
+ end
+
+ def test_aref
+ assert_equal({'HOME' => '.'}, @it['default'])
+ assert_equal({'dir' => './demoCA', 'certs' => './certs'}, @it['CA_default'])
+ assert_equal({}, @it['no_such_section'])
+ assert_equal({}, @it[''])
+ end
+
+ def test_section
+ OpenSSL::TestUtils.silent do
+ assert_equal({'HOME' => '.'}, @it.section('default'))
+ assert_equal({'dir' => './demoCA', 'certs' => './certs'}, @it.section('CA_default'))
+ assert_equal({}, @it.section('no_such_section'))
+ assert_equal({}, @it.section(''))
+ end
+ end
+
+ def test_sections
+ assert_equal(['CA_default', 'ca', 'default'], @it.sections.sort)
+ @it['new_section'] = {'foo' => 'bar'}
+ assert_equal(['CA_default', 'ca', 'default', 'new_section'], @it.sections.sort)
+ @it['new_section'] = {}
+ assert_equal(['CA_default', 'ca', 'default', 'new_section'], @it.sections.sort)
+ end
+
+ def test_add_value
+ c = OpenSSL::Config.new
+ assert_equal("", c.to_s)
+ # add key
+ c.add_value('default', 'foo', 'bar')
+ assert_equal("[ default ]\nfoo=bar\n\n", c.to_s)
+ # add another key
+ c.add_value('default', 'baz', 'qux')
+ assert_equal('bar', c['default']['foo'])
+ assert_equal('qux', c['default']['baz'])
+ # update the value
+ c.add_value('default', 'baz', 'quxxx')
+ assert_equal('bar', c['default']['foo'])
+ assert_equal('quxxx', c['default']['baz'])
+ # add section and key
+ c.add_value('section', 'foo', 'bar')
+ assert_equal('bar', c['default']['foo'])
+ assert_equal('quxxx', c['default']['baz'])
+ assert_equal('bar', c['section']['foo'])
+ end
+
+ def test_aset
+ @it['foo'] = {'bar' => 'baz'}
+ assert_equal({'bar' => 'baz'}, @it['foo'])
+ @it['foo'] = {'bar' => 'qux', 'baz' => 'quxx'}
+ assert_equal({'bar' => 'qux', 'baz' => 'quxx'}, @it['foo'])
+
+ # OpenSSL::Config is add only for now.
+ @it['foo'] = {'foo' => 'foo'}
+ assert_equal({'foo' => 'foo', 'bar' => 'qux', 'baz' => 'quxx'}, @it['foo'])
+ # you cannot override or remove any section and key.
+ @it['foo'] = {}
+ assert_equal({'foo' => 'foo', 'bar' => 'qux', 'baz' => 'quxx'}, @it['foo'])
+ end
+
+ def test_each
+ # each returns [section, key, value] array.
+ ary = @it.map { |e| e }.sort { |a, b| a[0] <=> b[0] }
+ assert_equal(4, ary.size)
+ assert_equal('CA_default', ary[0][0])
+ assert_equal('CA_default', ary[1][0])
+ assert_equal(["ca", "default_ca", "CA_default"], ary[2])
+ assert_equal(["default", "HOME", "."], ary[3])
+ end
+
+ def test_to_s
+ c = OpenSSL::Config.parse("[empty]\n")
+ assert_equal("[ default ]\n\n[ empty ]\n\n", c.to_s)
+ end
+
+ def test_inspect
+ assert_match(/#<OpenSSL::Config sections=\[.*\]>/, @it.inspect)
+ end
+
+ def test_freeze
+ c = OpenSSL::Config.new
+ c['foo'] = [['key', 'value']]
+ c.freeze
+
+ bug = '[ruby-core:18377]'
+ # RuntimeError for 1.9, TypeError for 1.8
+ e = assert_raise(TypeError, bug) do
+ c['foo'] = [['key', 'wrong']]
+ end
+ assert_match(/can't modify/, e.message, bug)
+ end
+
+ def test_dup
+ assert(!@it.sections.empty?)
+ c = @it.dup
+ assert_equal(@it.sections.sort, c.sections.sort)
+ @it['newsection'] = {'a' => 'b'}
+ assert_not_equal(@it.sections.sort, c.sections.sort)
+ end
+
+ def test_clone
+ assert(!@it.sections.empty?)
+ c = @it.clone
+ assert_equal(@it.sections.sort, c.sections.sort)
+ @it['newsection'] = {'a' => 'b'}
+ assert_not_equal(@it.sections.sort, c.sections.sort)
+ end
+end if defined?(OpenSSL)
diff --git a/test/openssl/test_digest.rb b/test/openssl/test_digest.rb
index 8941588b97..81085d2c9c 100644
--- a/test/openssl/test_digest.rb
+++ b/test/openssl/test_digest.rb
@@ -1,9 +1,4 @@
-begin
- require "openssl"
-rescue LoadError
-end
-require "digest/md5"
-require "test/unit"
+require_relative 'utils'
if defined?(OpenSSL)
@@ -61,6 +56,23 @@ class OpenSSL::TestDigest < Test::Unit::TestCase
assert_equal(dig1, dig2, "reset")
end
+ def test_digest_constants
+ algs = %w(DSS1 MD4 MD5 RIPEMD160 SHA SHA1)
+ if OpenSSL::OPENSSL_VERSION_NUMBER > 0x00908000
+ algs += %w(SHA224 SHA256 SHA384 SHA512)
+ end
+ algs.each do |alg|
+ assert_not_nil(OpenSSL::Digest.new(alg))
+ klass = OpenSSL::Digest.const_get(alg)
+ assert_not_nil(klass.new)
+ end
+ end
+
+ def test_digest_by_oid_and_name
+ check_digest(OpenSSL::ASN1::ObjectId.new("MD5"))
+ check_digest(OpenSSL::ASN1::ObjectId.new("SHA1"))
+ end
+
if OpenSSL::OPENSSL_VERSION_NUMBER > 0x00908000
def encode16(str)
str.unpack("H*").first
@@ -82,6 +94,24 @@ class OpenSSL::TestDigest < Test::Unit::TestCase
assert_equal(sha384_a, encode16(OpenSSL::Digest::SHA384.digest("a")))
assert_equal(sha512_a, encode16(OpenSSL::Digest::SHA512.digest("a")))
end
+
+ def test_digest_by_oid_and_name_sha2
+ check_digest(OpenSSL::ASN1::ObjectId.new("SHA224"))
+ check_digest(OpenSSL::ASN1::ObjectId.new("SHA256"))
+ check_digest(OpenSSL::ASN1::ObjectId.new("SHA384"))
+ check_digest(OpenSSL::ASN1::ObjectId.new("SHA512"))
+ end
+ end
+
+ private
+
+ def check_digest(oid)
+ d = OpenSSL::Digest.new(oid.sn)
+ assert_not_nil(d)
+ d = OpenSSL::Digest.new(oid.ln)
+ assert_not_nil(d)
+ d = OpenSSL::Digest.new(oid.oid)
+ assert_not_nil(d)
end
end
diff --git a/test/openssl/test_ec.rb b/test/openssl/test_ec.rb
deleted file mode 100644
index 282bb67624..0000000000
--- a/test/openssl/test_ec.rb
+++ /dev/null
@@ -1,113 +0,0 @@
-begin
- require "openssl"
- require File.join(File.dirname(__FILE__), "utils.rb")
-rescue LoadError
-end
-require "test/unit"
-
-if defined?(OpenSSL::PKey::EC)
-
-class OpenSSL::TestEC < Test::Unit::TestCase
- def setup
- @data1 = 'foo'
- @data2 = 'bar' * 1000 # data too long for DSA sig
-
- @group1 = OpenSSL::PKey::EC::Group.new('secp112r1')
- @group2 = OpenSSL::PKey::EC::Group.new('sect163k1')
-
- @key1 = OpenSSL::PKey::EC.new
- @key1.group = @group1
- @key1.generate_key
-
- @key2 = OpenSSL::PKey::EC.new(@group2.curve_name)
- @key2.generate_key
-
- @groups = [@group1, @group2]
- @keys = [@key1, @key2]
- end
-
- def compare_keys(k1, k2)
- assert_equal(k1.to_pem, k2.to_pem)
- end
-
- def test_curve_names
- @groups.each_with_index do |group, idx|
- key = @keys[idx]
- assert_equal(group.curve_name, key.group.curve_name)
- end
- end
-
- def test_check_key
- for key in @keys
- assert_equal(key.check_key, true)
- assert_equal(key.private_key?, true)
- assert_equal(key.public_key?, true)
- end
- end
-
- def test_encoding
- for group in @groups
- for meth in [:to_der, :to_pem]
- txt = group.send(meth)
- gr = OpenSSL::PKey::EC::Group.new(txt)
- assert_equal(txt, gr.send(meth))
-
- assert_equal(group.generator.to_bn, gr.generator.to_bn)
- assert_equal(group.cofactor, gr.cofactor)
- assert_equal(group.order, gr.order)
- assert_equal(group.seed, gr.seed)
- assert_equal(group.degree, gr.degree)
- end
- end
-
- for key in @keys
- group = key.group
-
- for meth in [:to_der, :to_pem]
- txt = key.send(meth)
- assert_equal(txt, OpenSSL::PKey::EC.new(txt).send(meth))
- end
-
- bn = key.public_key.to_bn
- assert_equal(bn, OpenSSL::PKey::EC::Point.new(group, bn).to_bn)
- end
- end
-
- def test_set_keys
- for key in @keys
- k = OpenSSL::PKey::EC.new
- k.group = key.group
- k.private_key = key.private_key
- k.public_key = key.public_key
-
- compare_keys(key, k)
- end
- end
-
- def test_dsa_sign_verify
- for key in @keys
- sig = key.dsa_sign_asn1(@data1)
- assert_equal(key.dsa_verify_asn1(@data1, sig), true)
-
- assert_raise(OpenSSL::PKey::ECError) { key.dsa_sign_asn1(@data2) }
- end
- end
-
- def test_dh_compute_key
- for key in @keys
- k = OpenSSL::PKey::EC.new(key.group)
- k.generate_key
-
- puba = key.public_key
- pubb = k.public_key
- a = key.dh_compute_key(pubb)
- b = k.dh_compute_key(puba)
- assert_equal(a, b)
- end
- end
-
-# test Group: asn1_flag, point_conversion
-
-end
-
-end
diff --git a/test/openssl/test_engine.rb b/test/openssl/test_engine.rb
new file mode 100644
index 0000000000..6d90e34398
--- /dev/null
+++ b/test/openssl/test_engine.rb
@@ -0,0 +1,15 @@
+require_relative 'utils'
+
+if defined?(OpenSSL)
+
+class OpenSSL::TestEngine < Test::Unit::TestCase
+
+ def test_engines_free # [ruby-dev:44173]
+ OpenSSL::Engine.load
+ OpenSSL::Engine.engines
+ OpenSSL::Engine.engines
+ end
+
+end
+
+end
diff --git a/test/openssl/test_hmac.rb b/test/openssl/test_hmac.rb
index 2f8d6bba20..ba158d2b51 100644
--- a/test/openssl/test_hmac.rb
+++ b/test/openssl/test_hmac.rb
@@ -1,18 +1,12 @@
-begin
- require "openssl"
-rescue LoadError
-end
-require "test/unit"
-
-if defined?(OpenSSL)
+require_relative 'utils'
class OpenSSL::TestHMAC < Test::Unit::TestCase
def setup
- @digest = OpenSSL::Digest::MD5.new
+ @digest = OpenSSL::Digest::MD5
@key = "KEY"
@data = "DATA"
- @h1 = OpenSSL::HMAC.new(@key, @digest)
- @h2 = OpenSSL::HMAC.new(@key, @digest)
+ @h1 = OpenSSL::HMAC.new(@key, @digest.new)
+ @h2 = OpenSSL::HMAC.new(@key, "MD5")
end
def teardown
@@ -20,8 +14,14 @@ class OpenSSL::TestHMAC < Test::Unit::TestCase
def test_hmac
@h1.update(@data)
- assert_equal(OpenSSL::HMAC.digest(@digest, @key, @data), @h1.digest, "digest")
- assert_equal(OpenSSL::HMAC.hexdigest(@digest, @key, @data), @h1.hexdigest, "hexdigest")
+ @h2.update(@data)
+ assert_equal(@h1.digest, @h2.digest)
+
+ assert_equal(OpenSSL::HMAC.digest(@digest.new, @key, @data), @h1.digest, "digest")
+ assert_equal(OpenSSL::HMAC.hexdigest(@digest.new, @key, @data), @h1.hexdigest, "hexdigest")
+
+ assert_equal(OpenSSL::HMAC.digest("MD5", @key, @data), @h2.digest, "digest")
+ assert_equal(OpenSSL::HMAC.hexdigest("MD5", @key, @data), @h2.hexdigest, "hexdigest")
end
def test_dup
@@ -29,6 +29,4 @@ class OpenSSL::TestHMAC < Test::Unit::TestCase
h = @h1.dup
assert_equal(@h1.digest, h.digest, "dup digest")
end
-end
-
-end
+end if defined?(OpenSSL)
diff --git a/test/openssl/test_ns_spki.rb b/test/openssl/test_ns_spki.rb
index 3937132aa0..3bcf3e6fbe 100644
--- a/test/openssl/test_ns_spki.rb
+++ b/test/openssl/test_ns_spki.rb
@@ -1,13 +1,7 @@
-begin
- require "openssl"
- require File.join(File.dirname(__FILE__), "utils.rb")
-rescue LoadError
-end
-require "test/unit"
+require_relative 'utils'
if defined?(OpenSSL)
-
class OpenSSL::TestNSSPI < Test::Unit::TestCase
def setup
# This request data is adopt from the specification of
@@ -20,9 +14,6 @@ class OpenSSL::TestNSSPI < Test::Unit::TestCase
@b64 << "i0//rgBvmco="
end
- def teardown
- end
-
def test_build_data
key1 = OpenSSL::TestUtils::TEST_KEY_RSA1024
key2 = OpenSSL::TestUtils::TEST_KEY_RSA2048
diff --git a/test/openssl/test_ocsp.rb b/test/openssl/test_ocsp.rb
new file mode 100644
index 0000000000..b42b57d498
--- /dev/null
+++ b/test/openssl/test_ocsp.rb
@@ -0,0 +1,47 @@
+require_relative "utils"
+
+if defined?(OpenSSL)
+
+class OpenSSL::TestOCSP < Test::Unit::TestCase
+ def setup
+ ca_subj = OpenSSL::X509::Name.parse("/DC=org/DC=ruby-lang/CN=TestCA")
+ ca_key = OpenSSL::TestUtils::TEST_KEY_RSA1024
+ ca_serial = 0xabcabcabcabc
+
+ subj = OpenSSL::X509::Name.parse("/DC=org/DC=ruby-lang/CN=TestCert")
+ @key = OpenSSL::TestUtils::TEST_KEY_RSA1024
+ serial = 0xabcabcabcabd
+
+ now = Time.at(Time.now.to_i) # suppress usec
+ dgst = OpenSSL::Digest::SHA1.new
+
+ @ca_cert = OpenSSL::TestUtils.issue_cert(
+ ca_subj, ca_key, ca_serial, now, now+3600, [], nil, nil, dgst)
+ @cert = OpenSSL::TestUtils.issue_cert(
+ subj, @key, serial, now, now+3600, [], @ca_cert, nil, dgst)
+ end
+
+ def test_new_certificate_id
+ cid = OpenSSL::OCSP::CertificateId.new(@cert, @ca_cert)
+ assert_kind_of OpenSSL::OCSP::CertificateId, cid
+ assert_equal @cert.serial, cid.serial
+ end
+
+ def test_new_certificate_id_with_digest
+ cid = OpenSSL::OCSP::CertificateId.new(@cert, @ca_cert, OpenSSL::Digest::SHA256.new)
+ assert_kind_of OpenSSL::OCSP::CertificateId, cid
+ assert_equal @cert.serial, cid.serial
+ end if defined?(OpenSSL::Digest::SHA256)
+
+ def test_new_ocsp_request
+ request = OpenSSL::OCSP::Request.new
+ cid = OpenSSL::OCSP::CertificateId.new(@cert, @ca_cert, OpenSSL::Digest::SHA1.new)
+ request.add_certid(cid)
+ request.sign(@cert, @key, [@cert])
+ assert_kind_of OpenSSL::OCSP::Request, request
+ # in current implementation not same instance of certificate id, but should contain same data
+ assert_equal cid.serial, request.certid.first.serial
+ end
+end
+
+end
diff --git a/test/openssl/test_pair.rb b/test/openssl/test_pair.rb
index fb0662f501..940fa0c0db 100644
--- a/test/openssl/test_pair.rb
+++ b/test/openssl/test_pair.rb
@@ -1,23 +1,18 @@
-begin
- require "openssl"
-rescue LoadError
-end
-require 'test/unit'
+require_relative 'utils'
if defined?(OpenSSL)
require 'socket'
-dir = File.expand_path(__FILE__)
-2.times {dir = File.dirname(dir)}
-$:.replace([File.join(dir, "ruby")] | $:)
-require 'ut_eof'
+require_relative '../ruby/ut_eof'
module SSLPair
+ DHParam = OpenSSL::PKey::DH.new(128)
def server
host = "127.0.0.1"
port = 0
ctx = OpenSSL::SSL::SSLContext.new()
ctx.ciphers = "ADH"
+ ctx.tmp_dh_callback = proc { DHParam }
tcps = TCPServer.new(host, port)
ssls = OpenSSL::SSL::SSLServer.new(tcps, ctx)
return ssls
@@ -197,8 +192,8 @@ class OpenSSL::TestPair < Test::Unit::TestCase
port = 0
ctx = OpenSSL::SSL::SSLContext.new()
ctx.ciphers = "ADH"
+ ctx.tmp_dh_callback = proc { DHParam }
serv = TCPServer.new(host, port)
- ssls = OpenSSL::SSL::SSLServer.new(serv, ctx)
port = serv.connect_address.ip_port
@@ -243,6 +238,8 @@ class OpenSSL::TestPair < Test::Unit::TestCase
s1.print "a\ndef"
assert_equal("a\n", s2.gets)
ensure
+ s1.close if s1 && !s1.closed?
+ s2.close if s2 && !s2.closed?
serv.close if serv && !serv.closed?
sock1.close if sock1 && !sock1.closed?
sock2.close if sock2 && !sock2.closed?
diff --git a/test/openssl/test_pkcs12.rb b/test/openssl/test_pkcs12.rb
new file mode 100644
index 0000000000..64e7530700
--- /dev/null
+++ b/test/openssl/test_pkcs12.rb
@@ -0,0 +1,209 @@
+require_relative "utils"
+
+if defined?(OpenSSL)
+
+module OpenSSL
+ class TestPKCS12 < Test::Unit::TestCase
+ include OpenSSL::TestUtils
+
+ def setup
+ ca = OpenSSL::X509::Name.parse("/DC=org/DC=ruby-lang/CN=CA")
+
+ now = Time.now
+ ca_exts = [
+ ["basicConstraints","CA:TRUE",true],
+ ["keyUsage","keyCertSign, cRLSign",true],
+ ["subjectKeyIdentifier","hash",false],
+ ["authorityKeyIdentifier","keyid:always",false],
+ ]
+
+ @cacert = issue_cert(ca, TEST_KEY_RSA2048, 1, now, now+3600, ca_exts,
+ nil, nil, OpenSSL::Digest::SHA1.new)
+
+ inter_ca = OpenSSL::X509::Name.parse("/DC=org/DC=ruby-lang/CN=Intermediate CA")
+ inter_ca_key = OpenSSL::PKey.read <<-_EOS_
+-----BEGIN RSA PRIVATE KEY-----
+MIICXAIBAAKBgQDp7hIG0SFMG/VWv1dBUWziAPrNmkMXJgTCAoB7jffzRtyyN04K
+oq/89HAszTMStZoMigQURfokzKsjpUp8OYCAEsBtt9d5zPndWMz/gHN73GrXk3LT
+ZsxEn7Xv5Da+Y9F/Hx2QZUHarV5cdZixq2NbzWGwrToogOQMh2pxN3Z/0wIDAQAB
+AoGBAJysUyx3olpsGzv3OMRJeahASbmsSKTXVLZvoIefxOINosBFpCIhZccAG6UV
+5c/xCvS89xBw8aD15uUfziw3AuT8QPEtHCgfSjeT7aWzBfYswEgOW4XPuWr7EeI9
+iNHGD6z+hCN/IQr7FiEBgTp6A+i/hffcSdR83fHWKyb4M7TRAkEA+y4BNd668HmC
+G5MPRx25n6LixuBxrNp1umfjEI6UZgEFVpYOg4agNuimN6NqM253kcTR94QNTUs5
+Kj3EhG1YWwJBAO5rUjiOyCNVX2WUQrOMYK/c1lU7fvrkdygXkvIGkhsPoNRzLPeA
+HGJszKtrKD8bNihWpWNIyqKRHfKVD7yXT+kCQGCAhVCIGTRoypcDghwljHqLnysf
+ci0h5ZdPcIqc7ODfxYhFsJ/Rql5ONgYsT5Ig/+lOQAkjf+TRYM4c2xKx2/8CQBvG
+jv6dy70qDgIUgqzONtlmHeYyFzn9cdBO5sShdVYHvRHjFSMEXsosqK9zvW2UqvuK
+FJx7d3f29gkzynCLJDkCQGQZlEZJC4vWmWJGRKJ24P6MyQn3VsPfErSKOg4lvyM3
+Li8JsX5yIiuVYaBg/6ha3tOg4TCa5K/3r3tVliRZ2Es=
+-----END RSA PRIVATE KEY-----
+ _EOS_
+
+ @inter_cacert = issue_cert(inter_ca, inter_ca_key, 2, now, now+3600, ca_exts,
+ @ca_cert, TEST_KEY_RSA2048, OpenSSL::Digest::SHA1.new)
+
+ exts = [
+ ["keyUsage","digitalSignature",true],
+ ["subjectKeyIdentifier","hash",false],
+ ]
+ ee = OpenSSL::X509::Name.parse("/DC=org/DC=ruby-lang/CN=Ruby PKCS12 Test Certificate")
+ @mycert = issue_cert(ee, TEST_KEY_RSA1024, 3, now, now+3600, exts,
+ @inter_cacert, inter_ca_key, OpenSSL::Digest::SHA1.new)
+ end
+
+ def test_create
+ pkcs12 = OpenSSL::PKCS12.create(
+ "omg",
+ "hello",
+ TEST_KEY_RSA1024,
+ @mycert
+ )
+ assert_equal @mycert, pkcs12.certificate
+ assert_equal TEST_KEY_RSA1024, pkcs12.key
+ assert_nil pkcs12.ca_certs
+ end
+
+ def test_create_no_pass
+ pkcs12 = OpenSSL::PKCS12.create(
+ nil,
+ "hello",
+ TEST_KEY_RSA1024,
+ @mycert
+ )
+ assert_equal @mycert, pkcs12.certificate
+ assert_equal TEST_KEY_RSA1024, pkcs12.key
+ assert_nil pkcs12.ca_certs
+
+ decoded = OpenSSL::PKCS12.new(pkcs12.to_der)
+ assert_cert @mycert, decoded.certificate
+ end
+
+ def test_create_with_chain
+ chain = [@inter_cacert, @cacert]
+
+ pkcs12 = OpenSSL::PKCS12.create(
+ "omg",
+ "hello",
+ TEST_KEY_RSA1024,
+ @mycert,
+ chain
+ )
+ assert_equal chain, pkcs12.ca_certs
+ end
+
+ def test_create_with_chain_decode
+ chain = [@cacert, @inter_cacert]
+
+ passwd = "omg"
+
+ pkcs12 = OpenSSL::PKCS12.create(
+ passwd,
+ "hello",
+ TEST_KEY_RSA1024,
+ @mycert,
+ chain
+ )
+
+ decoded = OpenSSL::PKCS12.new(pkcs12.to_der, passwd)
+ assert_equal chain.size, decoded.ca_certs.size
+ assert_include_cert @cacert, decoded.ca_certs
+ assert_include_cert @inter_cacert, decoded.ca_certs
+ assert_cert @mycert, decoded.certificate
+ assert_equal TEST_KEY_RSA1024.to_der, decoded.key.to_der
+ end
+
+ def test_create_with_bad_nid
+ assert_raises(ArgumentError) do
+ OpenSSL::PKCS12.create(
+ "omg",
+ "hello",
+ TEST_KEY_RSA1024,
+ @mycert,
+ [],
+ "foo"
+ )
+ end
+ end
+
+ def test_create_with_itr
+ OpenSSL::PKCS12.create(
+ "omg",
+ "hello",
+ TEST_KEY_RSA1024,
+ @mycert,
+ [],
+ nil,
+ nil,
+ 2048
+ )
+
+ assert_raises(TypeError) do
+ OpenSSL::PKCS12.create(
+ "omg",
+ "hello",
+ TEST_KEY_RSA1024,
+ @mycert,
+ [],
+ nil,
+ nil,
+ "omg"
+ )
+ end
+ end
+
+ def test_create_with_mac_itr
+ OpenSSL::PKCS12.create(
+ "omg",
+ "hello",
+ TEST_KEY_RSA1024,
+ @mycert,
+ [],
+ nil,
+ nil,
+ nil,
+ 2048
+ )
+
+ assert_raises(TypeError) do
+ OpenSSL::PKCS12.create(
+ "omg",
+ "hello",
+ TEST_KEY_RSA1024,
+ @mycert,
+ [],
+ nil,
+ nil,
+ nil,
+ "omg"
+ )
+ end
+ end
+
+ private
+ def assert_cert expected, actual
+ [
+ :subject,
+ :issuer,
+ :serial,
+ :not_before,
+ :not_after,
+ ].each do |attribute|
+ assert_equal expected.send(attribute), actual.send(attribute)
+ end
+ assert_equal expected.to_der, actual.to_der
+ end
+
+ def assert_include_cert cert, ary
+ der = cert.to_der
+ ary.each do |candidate|
+ if candidate.to_der == der
+ return true
+ end
+ end
+ false
+ end
+
+ end
+end
+
+end
diff --git a/test/openssl/test_pkcs7.rb b/test/openssl/test_pkcs7.rb
index d86de36cc7..b17cbda0b2 100644
--- a/test/openssl/test_pkcs7.rb
+++ b/test/openssl/test_pkcs7.rb
@@ -1,9 +1,4 @@
-begin
- require "openssl"
- require File.join(File.dirname(__FILE__), "utils.rb")
-rescue LoadError
-end
-require "test/unit"
+require_relative 'utils'
if defined?(OpenSSL)
@@ -22,16 +17,16 @@ class OpenSSL::TestPKCS7 < Test::Unit::TestCase
["subjectKeyIdentifier","hash",false],
["authorityKeyIdentifier","keyid:always",false],
]
- @ca_cert = issue_cert(ca, @rsa2048, 1, Time.now, Time.now+3600, ca_exts,
+ @ca_cert = issue_cert(ca, @rsa2048, 1, now, now+3600, ca_exts,
nil, nil, OpenSSL::Digest::SHA1.new)
ee_exts = [
["keyUsage","Non Repudiation, Digital Signature, Key Encipherment",true],
["authorityKeyIdentifier","keyid:always",false],
["extendedKeyUsage","clientAuth, emailProtection, codeSigning",false],
]
- @ee1_cert = issue_cert(ee1, @rsa1024, 2, Time.now, Time.now+1800, ee_exts,
+ @ee1_cert = issue_cert(ee1, @rsa1024, 2, now, now+1800, ee_exts,
@ca_cert, @rsa2048, OpenSSL::Digest::SHA1.new)
- @ee2_cert = issue_cert(ee2, @rsa1024, 3, Time.now, Time.now+1800, ee_exts,
+ @ee2_cert = issue_cert(ee2, @rsa1024, 3, now, now+1800, ee_exts,
@ca_cert, @rsa2048, OpenSSL::Digest::SHA1.new)
end
@@ -109,7 +104,9 @@ class OpenSSL::TestPKCS7 < Test::Unit::TestCase
flag = OpenSSL::PKCS7::BINARY|OpenSSL::PKCS7::DETACHED
tmp = OpenSSL::PKCS7.sign(@ee1_cert, @rsa1024, data, ca_certs, flag)
p7 = OpenSSL::PKCS7.new(tmp.to_der)
- a1 = OpenSSL::ASN1.decode(p7)
+ assert_nothing_raised do
+ OpenSSL::ASN1.decode(p7)
+ end
certs = p7.certificates
signers = p7.signers
@@ -149,6 +146,11 @@ class OpenSSL::TestPKCS7 < Test::Unit::TestCase
assert_equal(3, recip[1].serial)
assert_equal(data, p7.decrypt(@rsa1024, @ee2_cert))
end
+
+ def test_graceful_parsing_failure #[ruby-core:43250]
+ contents = File.read(__FILE__)
+ assert_raise(ArgumentError) { OpenSSL::PKCS7.new(contents) }
+ end
end
end
diff --git a/test/openssl/test_pkey_dh.rb b/test/openssl/test_pkey_dh.rb
new file mode 100644
index 0000000000..bcba400efe
--- /dev/null
+++ b/test/openssl/test_pkey_dh.rb
@@ -0,0 +1,72 @@
+require_relative 'utils'
+
+if defined?(OpenSSL)
+
+class OpenSSL::TestPKeyDH < Test::Unit::TestCase
+ def test_new
+ dh = OpenSSL::PKey::DH.new(256)
+ assert_key(dh)
+ end
+
+ def test_to_der
+ dh = OpenSSL::PKey::DH.new(256)
+ der = dh.to_der
+ dh2 = OpenSSL::PKey::DH.new(der)
+ assert_equal_params(dh, dh2)
+ assert_no_key(dh2)
+ end
+
+ def test_to_pem
+ dh = OpenSSL::PKey::DH.new(256)
+ pem = dh.to_pem
+ dh2 = OpenSSL::PKey::DH.new(pem)
+ assert_equal_params(dh, dh2)
+ assert_no_key(dh2)
+ end
+
+ def test_public_key
+ dh = OpenSSL::PKey::DH.new(256)
+ public_key = dh.public_key
+ assert_no_key(public_key) #implies public_key.public? is false!
+ assert_equal(dh.to_der, public_key.to_der)
+ assert_equal(dh.to_pem, public_key.to_pem)
+ end
+
+ def test_generate_key
+ dh = OpenSSL::TestUtils::TEST_KEY_DH512.public_key # creates a copy
+ assert_no_key(dh)
+ dh.generate_key!
+ assert_key(dh)
+ end
+
+ def test_key_exchange
+ dh = OpenSSL::TestUtils::TEST_KEY_DH512
+ dh2 = dh.public_key
+ dh.generate_key!
+ dh2.generate_key!
+ assert_equal(dh.compute_key(dh2.pub_key), dh2.compute_key(dh.pub_key))
+ end
+
+ private
+
+ def assert_equal_params(dh1, dh2)
+ assert_equal(dh1.g, dh2.g)
+ assert_equal(dh1.p, dh2.p)
+ end
+
+ def assert_no_key(dh)
+ assert_equal(false, dh.public?)
+ assert_equal(false, dh.private?)
+ assert_equal(nil, dh.pub_key)
+ assert_equal(nil, dh.priv_key)
+ end
+
+ def assert_key(dh)
+ assert(dh.public?)
+ assert(dh.private?)
+ assert(dh.pub_key)
+ assert(dh.priv_key)
+ end
+end
+
+end
diff --git a/test/openssl/test_pkey_dsa.rb b/test/openssl/test_pkey_dsa.rb
new file mode 100644
index 0000000000..e498e3c03a
--- /dev/null
+++ b/test/openssl/test_pkey_dsa.rb
@@ -0,0 +1,224 @@
+require_relative 'utils'
+require 'base64'
+
+if defined?(OpenSSL)
+
+class OpenSSL::TestPKeyDSA < Test::Unit::TestCase
+ def test_private
+ key = OpenSSL::PKey::DSA.new(256)
+ assert(key.private?)
+ key2 = OpenSSL::PKey::DSA.new(key.to_der)
+ assert(key2.private?)
+ key3 = key.public_key
+ assert(!key3.private?)
+ key4 = OpenSSL::PKey::DSA.new(key3.to_der)
+ assert(!key4.private?)
+ end
+
+ def test_new
+ key = OpenSSL::PKey::DSA.new 256
+ pem = key.public_key.to_pem
+ OpenSSL::PKey::DSA.new pem
+ assert_equal([], OpenSSL.errors)
+ end
+
+ def test_sys_sign_verify
+ key = OpenSSL::TestUtils::TEST_KEY_DSA256
+ data = 'Sign me!'
+ digest = OpenSSL::Digest::SHA1.digest(data)
+ sig = key.syssign(digest)
+ assert(key.sysverify(digest, sig))
+ end
+
+ def test_sign_verify
+ check_sign_verify(OpenSSL::Digest::DSS1.new)
+ end
+
+if (OpenSSL::OPENSSL_VERSION_NUMBER > 0x10000000)
+ def test_sign_verify_sha1
+ check_sign_verify(OpenSSL::Digest::SHA1.new)
+ end
+
+ def test_sign_verify_sha256
+ check_sign_verify(OpenSSL::Digest::SHA256.new)
+ end
+end
+
+ def test_digest_state_irrelevant_verify
+ key = OpenSSL::TestUtils::TEST_KEY_DSA256
+ digest1 = OpenSSL::Digest::DSS1.new
+ digest2 = OpenSSL::Digest::DSS1.new
+ data = 'Sign me!'
+ sig = key.sign(digest1, data)
+ digest1.reset
+ digest1 << 'Change state of digest1'
+ assert(key.verify(digest1, sig, data))
+ assert(key.verify(digest2, sig, data))
+ end
+
+ def test_read_DSA_PUBKEY
+ p = 7188211954100152441468596248707152960171255279130004340103875772401008316444412091945435731597638374542374929457672178957081124632837356913990200866056699
+ q = 957032439192465935099784319494405376402293318491
+ g = 122928973717064636255205666162891733518376475981809749897454444301389338825906076467196186192907631719698166056821519884939865041993585844526937010746285
+ y = 1235756183583465414789073313502727057075641172514181938731172021825149551960029708596057102104063395063907739571546165975727369183495540798749742124846271
+ algo = OpenSSL::ASN1::ObjectId.new('DSA')
+ params = OpenSSL::ASN1::Sequence.new([OpenSSL::ASN1::Integer.new(p),
+ OpenSSL::ASN1::Integer.new(q),
+ OpenSSL::ASN1::Integer.new(g)])
+ algo_id = OpenSSL::ASN1::Sequence.new ([algo, params])
+ pub_key = OpenSSL::ASN1::Integer.new(y)
+ seq = OpenSSL::ASN1::Sequence.new([algo_id, OpenSSL::ASN1::BitString.new(pub_key.to_der)])
+ key = OpenSSL::PKey::DSA.new(seq.to_der)
+ assert(key.public?)
+ assert(!key.private?)
+ assert_equal(p, key.p)
+ assert_equal(q, key.q)
+ assert_equal(g, key.g)
+ assert_equal(y, key.pub_key)
+ assert_equal(nil, key.priv_key)
+ assert_equal([], OpenSSL.errors)
+ end
+
+ def test_read_DSAPublicKey_pem
+ p = 12260055936871293565827712385212529106400444521449663325576634579961635627321079536132296996623400607469624537382977152381984332395192110731059176842635699
+ q = 979494906553787301107832405790107343409973851677
+ g = 3731695366899846297271147240305742456317979984190506040697507048095553842519347835107669437969086119948785140453492839427038591924536131566350847469993845
+ y = 10505239074982761504240823422422813362721498896040719759460296306305851824586095328615844661273887569281276387605297130014564808567159023649684010036304695
+ pem = <<-EOF
+-----BEGIN DSA PUBLIC KEY-----
+MIHfAkEAyJSJ+g+P/knVcgDwwTzC7Pwg/pWs2EMd/r+lYlXhNfzg0biuXRul8VR4
+VUC/phySExY0PdcqItkR/xYAYNMbNwJBAOoV57X0FxKO/PrNa/MkoWzkCKV/hzhE
+p0zbFdsicw+hIjJ7S6Sd/FlDlo89HQZ2FuvWJ6wGLM1j00r39+F2qbMCFQCrkhIX
+SG+is37hz1IaBeEudjB2HQJAR0AloavBvtsng8obsjLb7EKnB+pSeHr/BdIQ3VH7
+fWLOqqkzFeRrYMDzUpl36XktY6Yq8EJYlW9pCMmBVNy/dQ==
+-----END DSA PUBLIC KEY-----
+ EOF
+ key = OpenSSL::PKey::DSA.new(pem)
+ assert(key.public?)
+ assert(!key.private?)
+ assert_equal(p, key.p)
+ assert_equal(q, key.q)
+ assert_equal(g, key.g)
+ assert_equal(y, key.pub_key)
+ assert_equal(nil, key.priv_key)
+ assert_equal([], OpenSSL.errors)
+ end
+
+ def test_read_DSA_PUBKEY_pem
+ p = 12260055936871293565827712385212529106400444521449663325576634579961635627321079536132296996623400607469624537382977152381984332395192110731059176842635699
+ q = 979494906553787301107832405790107343409973851677
+ g = 3731695366899846297271147240305742456317979984190506040697507048095553842519347835107669437969086119948785140453492839427038591924536131566350847469993845
+ y = 10505239074982761504240823422422813362721498896040719759460296306305851824586095328615844661273887569281276387605297130014564808567159023649684010036304695
+ pem = <<-EOF
+-----BEGIN PUBLIC KEY-----
+MIHxMIGoBgcqhkjOOAQBMIGcAkEA6hXntfQXEo78+s1r8yShbOQIpX+HOESnTNsV
+2yJzD6EiMntLpJ38WUOWjz0dBnYW69YnrAYszWPTSvf34XapswIVAKuSEhdIb6Kz
+fuHPUhoF4S52MHYdAkBHQCWhq8G+2yeDyhuyMtvsQqcH6lJ4ev8F0hDdUft9Ys6q
+qTMV5GtgwPNSmXfpeS1jpirwQliVb2kIyYFU3L91A0QAAkEAyJSJ+g+P/knVcgDw
+wTzC7Pwg/pWs2EMd/r+lYlXhNfzg0biuXRul8VR4VUC/phySExY0PdcqItkR/xYA
+YNMbNw==
+-----END PUBLIC KEY-----
+ EOF
+ key = OpenSSL::PKey::DSA.new(pem)
+ assert(key.public?)
+ assert(!key.private?)
+ assert_equal(p, key.p)
+ assert_equal(q, key.q)
+ assert_equal(g, key.g)
+ assert_equal(y, key.pub_key)
+ assert_equal(nil, key.priv_key)
+ assert_equal([], OpenSSL.errors)
+ end
+
+ def test_export_format_is_DSA_PUBKEY_pem
+ key = OpenSSL::TestUtils::TEST_KEY_DSA256
+ pem = key.public_key.to_pem
+ pem.gsub!(/^-+(\w|\s)+-+$/, "") # eliminate --------BEGIN...-------
+ asn1 = OpenSSL::ASN1.decode(Base64.decode64(pem))
+ assert_equal(OpenSSL::ASN1::SEQUENCE, asn1.tag)
+ assert_equal(2, asn1.value.size)
+ seq = asn1.value
+ assert_equal(OpenSSL::ASN1::SEQUENCE, seq[0].tag)
+ assert_equal(2, seq[0].value.size)
+ algo_id = seq[0].value
+ assert_equal(OpenSSL::ASN1::OBJECT, algo_id[0].tag)
+ assert_equal('DSA', algo_id[0].value)
+ assert_equal(OpenSSL::ASN1::SEQUENCE, algo_id[1].tag)
+ assert_equal(3, algo_id[1].value.size)
+ params = algo_id[1].value
+ assert_equal(OpenSSL::ASN1::INTEGER, params[0].tag)
+ assert_equal(key.p, params[0].value)
+ assert_equal(OpenSSL::ASN1::INTEGER, params[1].tag)
+ assert_equal(key.q, params[1].value)
+ assert_equal(OpenSSL::ASN1::INTEGER, params[2].tag)
+ assert_equal(key.g, params[2].value)
+ assert_equal(OpenSSL::ASN1::BIT_STRING, seq[1].tag)
+ assert_equal(0, seq[1].unused_bits)
+ pub_key = OpenSSL::ASN1.decode(seq[1].value)
+ assert_equal(OpenSSL::ASN1::INTEGER, pub_key.tag)
+ assert_equal(key.pub_key, pub_key.value)
+ assert_equal([], OpenSSL.errors)
+ end
+
+ def test_read_private_key_der
+ key = OpenSSL::TestUtils::TEST_KEY_DSA256
+ der = key.to_der
+ key2 = OpenSSL::PKey.read(der)
+ assert(key2.private?)
+ assert_equal(der, key2.to_der)
+ assert_equal([], OpenSSL.errors)
+ end
+
+ def test_read_private_key_pem
+ key = OpenSSL::TestUtils::TEST_KEY_DSA256
+ pem = key.to_pem
+ key2 = OpenSSL::PKey.read(pem)
+ assert(key2.private?)
+ assert_equal(pem, key2.to_pem)
+ assert_equal([], OpenSSL.errors)
+ end
+
+ def test_read_public_key_der
+ key = OpenSSL::TestUtils::TEST_KEY_DSA256.public_key
+ der = key.to_der
+ key2 = OpenSSL::PKey.read(der)
+ assert(!key2.private?)
+ assert_equal(der, key2.to_der)
+ assert_equal([], OpenSSL.errors)
+ end
+
+ def test_read_public_key_pem
+ key = OpenSSL::TestUtils::TEST_KEY_DSA256.public_key
+ pem = key.to_pem
+ key2 = OpenSSL::PKey.read(pem)
+ assert(!key2.private?)
+ assert_equal(pem, key2.to_pem)
+ assert_equal([], OpenSSL.errors)
+ end
+
+ def test_read_private_key_pem_pw
+ key = OpenSSL::TestUtils::TEST_KEY_DSA256
+ pem = key.to_pem(OpenSSL::Cipher.new('AES-128-CBC'), 'secret')
+ #callback form for password
+ key2 = OpenSSL::PKey.read(pem) do
+ 'secret'
+ end
+ assert(key2.private?)
+ # pass password directly
+ key2 = OpenSSL::PKey.read(pem, 'secret')
+ assert(key2.private?)
+ #omit pem equality check, will be different due to cipher iv
+ assert_equal([], OpenSSL.errors)
+ end
+
+ private
+
+ def check_sign_verify(digest)
+ key = OpenSSL::TestUtils::TEST_KEY_DSA256
+ data = 'Sign me!'
+ sig = key.sign(digest, data)
+ assert(key.verify(digest, sig, data))
+ end
+end
+
+end
diff --git a/test/openssl/test_pkey_ec.rb b/test/openssl/test_pkey_ec.rb
new file mode 100644
index 0000000000..e63f617140
--- /dev/null
+++ b/test/openssl/test_pkey_ec.rb
@@ -0,0 +1,182 @@
+require_relative 'utils'
+
+if defined?(OpenSSL::PKey::EC)
+
+class OpenSSL::TestEC < Test::Unit::TestCase
+ def setup
+ @data1 = 'foo'
+ @data2 = 'bar' * 1000 # data too long for DSA sig
+
+ @group1 = OpenSSL::PKey::EC::Group.new('secp112r1')
+ @group2 = OpenSSL::PKey::EC::Group.new('sect163k1')
+ @group3 = OpenSSL::PKey::EC::Group.new('prime256v1')
+
+ @key1 = OpenSSL::PKey::EC.new
+ @key1.group = @group1
+ @key1.generate_key
+
+ @key2 = OpenSSL::PKey::EC.new(@group2.curve_name)
+ @key2.generate_key
+
+ @key3 = OpenSSL::PKey::EC.new(@group3)
+ @key3.generate_key
+
+ @groups = [@group1, @group2, @group3]
+ @keys = [@key1, @key2, @key3]
+ end
+
+ def compare_keys(k1, k2)
+ assert_equal(k1.to_pem, k2.to_pem)
+ end
+
+ def test_curve_names
+ @groups.each_with_index do |group, idx|
+ key = @keys[idx]
+ assert_equal(group.curve_name, key.group.curve_name)
+ end
+ end
+
+ def test_check_key
+ for key in @keys
+ assert_equal(key.check_key, true)
+ assert_equal(key.private_key?, true)
+ assert_equal(key.public_key?, true)
+ end
+ end
+
+ def test_encoding
+ for group in @groups
+ for meth in [:to_der, :to_pem]
+ txt = group.send(meth)
+ gr = OpenSSL::PKey::EC::Group.new(txt)
+ assert_equal(txt, gr.send(meth))
+
+ assert_equal(group.generator.to_bn, gr.generator.to_bn)
+ assert_equal(group.cofactor, gr.cofactor)
+ assert_equal(group.order, gr.order)
+ assert_equal(group.seed, gr.seed)
+ assert_equal(group.degree, gr.degree)
+ end
+ end
+
+ for key in @keys
+ group = key.group
+
+ for meth in [:to_der, :to_pem]
+ txt = key.send(meth)
+ assert_equal(txt, OpenSSL::PKey::EC.new(txt).send(meth))
+ end
+
+ bn = key.public_key.to_bn
+ assert_equal(bn, OpenSSL::PKey::EC::Point.new(group, bn).to_bn)
+ end
+ end
+
+ def test_set_keys
+ for key in @keys
+ k = OpenSSL::PKey::EC.new
+ k.group = key.group
+ k.private_key = key.private_key
+ k.public_key = key.public_key
+
+ compare_keys(key, k)
+ end
+ end
+
+ def test_dsa_sign_verify
+ for key in @keys
+ sig = key.dsa_sign_asn1(@data1)
+ assert(key.dsa_verify_asn1(@data1, sig))
+ end
+ end
+
+ def test_dsa_sign_asn1_FIPS186_3
+ for key in @keys
+ size = key.group.order.num_bits / 8 + 1
+ dgst = (1..size).to_a.pack('C*')
+ begin
+ sig = key.dsa_sign_asn1(dgst)
+ # dgst is auto-truncated according to FIPS186-3 after openssl-0.9.8m
+ assert(key.dsa_verify_asn1(dgst + "garbage", sig))
+ rescue OpenSSL::PKey::ECError => e
+ # just an exception for longer dgst before openssl-0.9.8m
+ assert_equal('ECDSA_sign: data too large for key size', e.message)
+ # no need to do following tests
+ return
+ end
+ end
+ end
+
+ def test_dh_compute_key
+ for key in @keys
+ k = OpenSSL::PKey::EC.new(key.group)
+ k.generate_key
+
+ puba = key.public_key
+ pubb = k.public_key
+ a = key.dh_compute_key(pubb)
+ b = k.dh_compute_key(puba)
+ assert_equal(a, b)
+ end
+ end
+
+ def test_read_private_key_der
+ ec = OpenSSL::TestUtils::TEST_KEY_EC_P256V1
+ der = ec.to_der
+ ec2 = OpenSSL::PKey.read(der)
+ assert(ec2.private_key?)
+ assert_equal(der, ec2.to_der)
+ assert_equal([], OpenSSL.errors)
+ end
+
+ def test_read_private_key_pem
+ ec = OpenSSL::TestUtils::TEST_KEY_EC_P256V1
+ pem = ec.to_pem
+ ec2 = OpenSSL::PKey.read(pem)
+ assert(ec2.private_key?)
+ assert_equal(pem, ec2.to_pem)
+ assert_equal([], OpenSSL.errors)
+ end
+
+ def test_read_public_key_der
+ ec = OpenSSL::TestUtils::TEST_KEY_EC_P256V1
+ ec2 = OpenSSL::PKey::EC.new(ec.group)
+ ec2.public_key = ec.public_key
+ der = ec2.to_der
+ ec3 = OpenSSL::PKey.read(der)
+ assert(!ec3.private_key?)
+ assert_equal(der, ec3.to_der)
+ assert_equal([], OpenSSL.errors)
+ end
+
+ def test_read_public_key_pem
+ ec = OpenSSL::TestUtils::TEST_KEY_EC_P256V1
+ ec2 = OpenSSL::PKey::EC.new(ec.group)
+ ec2.public_key = ec.public_key
+ pem = ec2.to_pem
+ ec3 = OpenSSL::PKey.read(pem)
+ assert(!ec3.private_key?)
+ assert_equal(pem, ec3.to_pem)
+ assert_equal([], OpenSSL.errors)
+ end
+
+ def test_read_private_key_pem_pw
+ ec = OpenSSL::TestUtils::TEST_KEY_EC_P256V1
+ pem = ec.to_pem(OpenSSL::Cipher.new('AES-128-CBC'), 'secret')
+ #callback form for password
+ ec2 = OpenSSL::PKey.read(pem) do
+ 'secret'
+ end
+ assert(ec2.private_key?)
+ # pass password directly
+ ec2 = OpenSSL::PKey.read(pem, 'secret')
+ assert(ec2.private_key?)
+ #omit pem equality check, will be different due to cipher iv
+ assert_equal([], OpenSSL.errors)
+ end
+
+# test Group: asn1_flag, point_conversion
+
+end
+
+end
diff --git a/test/openssl/test_pkey_rsa.rb b/test/openssl/test_pkey_rsa.rb
index 401cb6c3e0..5ba14229af 100644
--- a/test/openssl/test_pkey_rsa.rb
+++ b/test/openssl/test_pkey_rsa.rb
@@ -1,9 +1,5 @@
-begin
- require "openssl"
- require File.join(File.dirname(__FILE__), "utils.rb")
-rescue LoadError
-end
-require 'test/unit'
+require_relative 'utils'
+require 'base64'
if defined?(OpenSSL)
@@ -44,6 +40,205 @@ class OpenSSL::TestPKeyRSA < Test::Unit::TestCase
key4 = OpenSSL::PKey::RSA.new(key3.to_der)
assert(!key4.private?)
end
+
+ def test_new
+ key = OpenSSL::PKey::RSA.new 512
+ pem = key.public_key.to_pem
+ OpenSSL::PKey::RSA.new pem
+ assert_equal([], OpenSSL.errors)
+ end
+
+ def test_sign_verify
+ key = OpenSSL::TestUtils::TEST_KEY_RSA1024
+ digest = OpenSSL::Digest::SHA1.new
+ data = 'Sign me!'
+ sig = key.sign(digest, data)
+ assert(key.verify(digest, sig, data))
+ end
+
+ def test_digest_state_irrelevant_sign
+ key = OpenSSL::TestUtils::TEST_KEY_RSA1024
+ digest1 = OpenSSL::Digest::SHA1.new
+ digest2 = OpenSSL::Digest::SHA1.new
+ data = 'Sign me!'
+ digest1 << 'Change state of digest1'
+ sig1 = key.sign(digest1, data)
+ sig2 = key.sign(digest2, data)
+ assert_equal(sig1, sig2)
+ end
+
+ def test_digest_state_irrelevant_verify
+ key = OpenSSL::TestUtils::TEST_KEY_RSA1024
+ digest1 = OpenSSL::Digest::SHA1.new
+ digest2 = OpenSSL::Digest::SHA1.new
+ data = 'Sign me!'
+ sig = key.sign(digest1, data)
+ digest1.reset
+ digest1 << 'Change state of digest1'
+ assert(key.verify(digest1, sig, data))
+ assert(key.verify(digest2, sig, data))
+ end
+
+ def test_read_RSAPublicKey
+ modulus = 10664264882656732240315063514678024569492171560814833397008094754351396057398262071307709191731289492697968568138092052265293364132872019762410446076526351
+ exponent = 65537
+ seq = OpenSSL::ASN1::Sequence.new([OpenSSL::ASN1::Integer.new(modulus), OpenSSL::ASN1::Integer.new(exponent)])
+ key = OpenSSL::PKey::RSA.new(seq.to_der)
+ assert(key.public?)
+ assert(!key.private?)
+ assert_equal(modulus, key.n)
+ assert_equal(exponent, key.e)
+ assert_equal(nil, key.d)
+ assert_equal(nil, key.p)
+ assert_equal(nil, key.q)
+ assert_equal([], OpenSSL.errors)
+ end
+
+ def test_read_RSA_PUBKEY
+ modulus = 10664264882656732240315063514678024569492171560814833397008094754351396057398262071307709191731289492697968568138092052265293364132872019762410446076526351
+ exponent = 65537
+ algo = OpenSSL::ASN1::ObjectId.new('rsaEncryption')
+ null_params = OpenSSL::ASN1::Null.new(nil)
+ algo_id = OpenSSL::ASN1::Sequence.new ([algo, null_params])
+ pub_key = OpenSSL::ASN1::Sequence.new([OpenSSL::ASN1::Integer.new(modulus), OpenSSL::ASN1::Integer.new(exponent)])
+ seq = OpenSSL::ASN1::Sequence.new([algo_id, OpenSSL::ASN1::BitString.new(pub_key.to_der)])
+ key = OpenSSL::PKey::RSA.new(seq.to_der)
+ assert(key.public?)
+ assert(!key.private?)
+ assert_equal(modulus, key.n)
+ assert_equal(exponent, key.e)
+ assert_equal(nil, key.d)
+ assert_equal(nil, key.p)
+ assert_equal(nil, key.q)
+ assert_equal([], OpenSSL.errors)
+ end
+
+ def test_read_RSAPublicKey_pem
+ modulus = 9416340886363418692990906464787534854462163316648195510702927337693641649864839352187127240942127674615733815606532506566068276485089353644309497938966061
+ exponent = 65537
+ pem = <<-EOF
+-----BEGIN RSA PUBLIC KEY-----
+MEgCQQCzyh2RIZK62E2PbTWqUljD+K23XR9AGBKNtXjal6WD2yRGcLqzPJLNCa60
+AudJR1JobbIbDJrQu6AXnWh5k/YtAgMBAAE=
+-----END RSA PUBLIC KEY-----
+ EOF
+ key = OpenSSL::PKey::RSA.new(pem)
+ assert(key.public?)
+ assert(!key.private?)
+ assert_equal(modulus, key.n)
+ assert_equal(exponent, key.e)
+ assert_equal(nil, key.d)
+ assert_equal(nil, key.p)
+ assert_equal(nil, key.q)
+ assert_equal([], OpenSSL.errors)
+ end
+
+ def test_read_RSA_PUBKEY_pem
+ modulus = 9416340886363418692990906464787534854462163316648195510702927337693641649864839352187127240942127674615733815606532506566068276485089353644309497938966061
+ exponent = 65537
+ pem = <<-EOF
+-----BEGIN PUBLIC KEY-----
+MFwwDQYJKoZIhvcNAQEBBQADSwAwSAJBALPKHZEhkrrYTY9tNapSWMP4rbdd
+H0AYEo21eNqXpYPbJEZwurM8ks0JrrQC50lHUmhtshsMmtC7oBedaHmT9i0C
+AwEAAQ==
+-----END PUBLIC KEY-----
+ EOF
+ key = OpenSSL::PKey::RSA.new(pem)
+ assert(key.public?)
+ assert(!key.private?)
+ assert_equal(modulus, key.n)
+ assert_equal(exponent, key.e)
+ assert_equal(nil, key.d)
+ assert_equal(nil, key.p)
+ assert_equal(nil, key.q)
+ assert_equal([], OpenSSL.errors)
+ end
+
+ def test_export_format_is_RSA_PUBKEY
+ key = OpenSSL::PKey::RSA.new(512)
+ asn1 = OpenSSL::ASN1.decode(key.public_key.to_der)
+ check_PUBKEY(asn1, key)
+ end
+
+ def test_export_format_is_RSA_PUBKEY_pem
+ key = OpenSSL::PKey::RSA.new(512)
+ pem = key.public_key.to_pem
+ pem.gsub!(/^-+(\w|\s)+-+$/, "") # eliminate --------BEGIN...-------
+ asn1 = OpenSSL::ASN1.decode(Base64.decode64(pem))
+ check_PUBKEY(asn1, key)
+ end
+
+ def test_read_private_key_der
+ der = OpenSSL::TestUtils::TEST_KEY_RSA1024.to_der
+ key = OpenSSL::PKey.read(der)
+ assert(key.private?)
+ assert_equal(der, key.to_der)
+ assert_equal([], OpenSSL.errors)
+ end
+
+ def test_read_private_key_pem
+ pem = OpenSSL::TestUtils::TEST_KEY_RSA1024.to_pem
+ key = OpenSSL::PKey.read(pem)
+ assert(key.private?)
+ assert_equal(pem, key.to_pem)
+ assert_equal([], OpenSSL.errors)
+ end
+
+ def test_read_public_key_der
+ der = OpenSSL::TestUtils::TEST_KEY_RSA1024.public_key.to_der
+ key = OpenSSL::PKey.read(der)
+ assert(!key.private?)
+ assert_equal(der, key.to_der)
+ assert_equal([], OpenSSL.errors)
+ end
+
+ def test_read_public_key_pem
+ pem = OpenSSL::TestUtils::TEST_KEY_RSA1024.public_key.to_pem
+ key = OpenSSL::PKey.read(pem)
+ assert(!key.private?)
+ assert_equal(pem, key.to_pem)
+ assert_equal([], OpenSSL.errors)
+ end
+
+ def test_read_private_key_pem_pw
+ pem = OpenSSL::TestUtils::TEST_KEY_RSA1024.to_pem(OpenSSL::Cipher.new('AES-128-CBC'), 'secret')
+ #callback form for password
+ key = OpenSSL::PKey.read(pem) do
+ 'secret'
+ end
+ assert(key.private?)
+ # pass password directly
+ key = OpenSSL::PKey.read(pem, 'secret')
+ assert(key.private?)
+ #omit pem equality check, will be different due to cipher iv
+ assert_equal([], OpenSSL.errors)
+ end
+
+ private
+
+ def check_PUBKEY(asn1, key)
+ assert_equal(OpenSSL::ASN1::SEQUENCE, asn1.tag)
+ assert_equal(2, asn1.value.size)
+ seq = asn1.value
+ assert_equal(OpenSSL::ASN1::SEQUENCE, seq[0].tag)
+ assert_equal(2, seq[0].value.size)
+ algo_id = seq[0].value
+ assert_equal(OpenSSL::ASN1::OBJECT, algo_id[0].tag)
+ assert_equal('rsaEncryption', algo_id[0].value)
+ assert_equal(OpenSSL::ASN1::NULL, algo_id[1].tag)
+ assert_equal(nil, algo_id[1].value)
+ assert_equal(OpenSSL::ASN1::BIT_STRING, seq[1].tag)
+ assert_equal(0, seq[1].unused_bits)
+ pub_key = OpenSSL::ASN1.decode(seq[1].value)
+ assert_equal(OpenSSL::ASN1::SEQUENCE, pub_key.tag)
+ assert_equal(2, pub_key.value.size)
+ assert_equal(OpenSSL::ASN1::INTEGER, pub_key.value[0].tag)
+ assert_equal(key.n, pub_key.value[0].value)
+ assert_equal(OpenSSL::ASN1::INTEGER, pub_key.value[1].tag)
+ assert_equal(key.e, pub_key.value[1].value)
+ assert_equal([], OpenSSL.errors)
+ end
+
end
end
diff --git a/test/openssl/test_ssl.rb b/test/openssl/test_ssl.rb
index 4688552cd3..5d40a5576b 100644
--- a/test/openssl/test_ssl.rb
+++ b/test/openssl/test_ssl.rb
@@ -1,169 +1,28 @@
-begin
- require "openssl"
- require File.join(File.dirname(__FILE__), "utils.rb")
-rescue LoadError
-end
-require "rbconfig"
-require "socket"
-require "test/unit"
-begin
- loadpath = $:.dup
- $:.replace($: | [File.expand_path("../ruby", File.dirname(__FILE__))])
- require 'envutil'
-ensure
- $:.replace(loadpath)
-end
+require_relative "utils"
if defined?(OpenSSL)
-class OpenSSL::TestSSL < Test::Unit::TestCase
- RUBY = EnvUtil.rubybin
- SSL_SERVER = File.join(File.dirname(__FILE__), "ssl_server.rb")
- PORT = 20443
- ITERATIONS = ($0 == __FILE__) ? 100 : 10
-
- def setup
- @ca_key = OpenSSL::TestUtils::TEST_KEY_RSA2048
- @svr_key = OpenSSL::TestUtils::TEST_KEY_RSA1024
- @cli_key = OpenSSL::TestUtils::TEST_KEY_DSA256
- @ca = OpenSSL::X509::Name.parse("/DC=org/DC=ruby-lang/CN=CA")
- @svr = OpenSSL::X509::Name.parse("/DC=org/DC=ruby-lang/CN=localhost")
- @cli = OpenSSL::X509::Name.parse("/DC=org/DC=ruby-lang/CN=localhost")
-
- now = Time.at(Time.now.to_i)
- ca_exts = [
- ["basicConstraints","CA:TRUE",true],
- ["keyUsage","cRLSign,keyCertSign",true],
- ]
- ee_exts = [
- ["keyUsage","keyEncipherment,digitalSignature",true],
- ]
- @ca_cert = issue_cert(@ca, @ca_key, 1, now, now+3600, ca_exts,
- nil, nil, OpenSSL::Digest::SHA1.new)
- @svr_cert = issue_cert(@svr, @svr_key, 2, now, now+1800, ee_exts,
- @ca_cert, @ca_key, OpenSSL::Digest::SHA1.new)
- @cli_cert = issue_cert(@cli, @cli_key, 3, now, now+1800, ee_exts,
- @ca_cert, @ca_key, OpenSSL::Digest::SHA1.new)
- @server = nil
- end
-
- def teardown
- end
-
- def issue_cert(*arg)
- OpenSSL::TestUtils.issue_cert(*arg)
- end
-
- def issue_crl(*arg)
- OpenSSL::TestUtils.issue_crl(*arg)
- end
-
- def readwrite_loop(ctx, ssl)
- while line = ssl.gets
- if line =~ /^STARTTLS$/
- ssl.accept
- next
- end
- ssl.write(line)
- end
- rescue OpenSSL::SSL::SSLError
- rescue IOError
- ensure
- ssl.close rescue nil
- end
-
- def server_loop(ctx, ssls, server_proc)
- loop do
- ssl = nil
- begin
- ssl = ssls.accept
- rescue OpenSSL::SSL::SSLError
- retry
- end
-
- Thread.start do
- Thread.current.abort_on_exception = true
- server_proc.call(ctx, ssl)
- end
- end
- rescue Errno::EBADF, IOError, Errno::EINVAL, Errno::ECONNABORTED
- end
-
- def start_server(port0, verify_mode, start_immediately, args = {}, &block)
- ctx_proc = args[:ctx_proc]
- server_proc = args[:server_proc]
- server_proc ||= method(:readwrite_loop)
-
- store = OpenSSL::X509::Store.new
- store.add_cert(@ca_cert)
- store.purpose = OpenSSL::X509::PURPOSE_SSL_CLIENT
+class OpenSSL::TestSSL < OpenSSL::SSLTestCase
+ def test_ctx_setup
ctx = OpenSSL::SSL::SSLContext.new
- ctx.cert_store = store
- #ctx.extra_chain_cert = [ ca_cert ]
- ctx.cert = @svr_cert
- ctx.key = @svr_key
- ctx.verify_mode = verify_mode
- ctx_proc.call(ctx) if ctx_proc
-
- Socket.do_not_reverse_lookup = true
- tcps = nil
- port = port0
- begin
- tcps = TCPServer.new("127.0.0.1", port)
- rescue Errno::EADDRINUSE
- port += 1
- retry
- end
-
- ssls = OpenSSL::SSL::SSLServer.new(tcps, ctx)
- ssls.start_immediately = start_immediately
-
- begin
- server = Thread.new do
- Thread.current.abort_on_exception = true
- server_loop(ctx, ssls, server_proc)
- end
-
- $stderr.printf("%s started: pid=%d port=%d\n", SSL_SERVER, pid, port) if $DEBUG
-
- block.call(server, port.to_i)
- ensure
- begin
- begin
- tcps.shutdown
- rescue Errno::ENOTCONN
- # when `Errno::ENOTCONN: Socket is not connected' on some platforms,
- # call #close instead of #shutdown.
- tcps.close
- tcps = nil
- end if (tcps)
- if (server)
- server.join(5)
- if server.alive?
- server.kill
- server.join
- flunk("TCPServer was closed and SSLServer is still alive") unless $!
- end
- end
- ensure
- tcps.close if (tcps)
- end
- end
- end
-
- def starttls(ssl)
- ssl.puts("STARTTLS")
-
- sleep 1 # When this line is eliminated, process on Cygwin blocks
- # forever at ssl.connect. But I don't know why it does.
-
- ssl.connect
+ assert_equal(ctx.setup, true)
+ assert_equal(ctx.setup, nil)
end
- def test_ctx_setup
+ def test_ctx_setup_no_compression
ctx = OpenSSL::SSL::SSLContext.new
+ ctx.options = OpenSSL::SSL::OP_ALL | OpenSSL::SSL::OP_NO_COMPRESSION
assert_equal(ctx.setup, true)
assert_equal(ctx.setup, nil)
+ assert_equal(OpenSSL::SSL::OP_NO_COMPRESSION,
+ ctx.options & OpenSSL::SSL::OP_NO_COMPRESSION)
+ end if defined?(OpenSSL::SSL::OP_NO_COMPRESSION)
+
+ def test_not_started_session
+ skip "non socket argument of SSLSocket.new is not supported on this platform" if /mswin|mingw/ =~ RUBY_PLATFORM
+ open(__FILE__) do |f|
+ assert_nil OpenSSL::SSL::SSLSocket.new(f).cert
+ end
end
def test_ssl_read_nonblock
@@ -251,7 +110,7 @@ class OpenSSL::TestSSL < Test::Unit::TestCase
def test_client_auth
vflag = OpenSSL::SSL::VERIFY_PEER|OpenSSL::SSL::VERIFY_FAIL_IF_NO_PEER_CERT
start_server(PORT, vflag, true){|server, port|
- assert_raise(OpenSSL::SSL::SSLError){
+ assert_raise(OpenSSL::SSL::SSLError, Errno::ECONNRESET){
sock = TCPSocket.new("127.0.0.1", port)
ssl = OpenSSL::SSL::SSLSocket.new(sock)
ssl.connect
@@ -285,6 +144,28 @@ class OpenSSL::TestSSL < Test::Unit::TestCase
}
end
+ def test_client_ca
+ ctx_proc = Proc.new do |ctx|
+ ctx.client_ca = [@ca_cert]
+ end
+
+ vflag = OpenSSL::SSL::VERIFY_PEER|OpenSSL::SSL::VERIFY_FAIL_IF_NO_PEER_CERT
+ start_server(PORT, vflag, true, :ctx_proc => ctx_proc){|server, port|
+ ctx = OpenSSL::SSL::SSLContext.new
+ client_ca_from_server = nil
+ ctx.client_cert_cb = Proc.new do |sslconn|
+ client_ca_from_server = sslconn.client_ca
+ [@cli_cert, @cli_key]
+ end
+ sock = TCPSocket.new("127.0.0.1", port)
+ ssl = OpenSSL::SSL::SSLSocket.new(sock, ctx)
+ ssl.sync_close = true
+ ssl.connect
+ assert_equal([@ca], client_ca_from_server)
+ ssl.close
+ }
+ end
+
def test_starttls
start_server(PORT, OpenSSL::SSL::VERIFY_NONE, false){|server, port|
sock = TCPSocket.new("127.0.0.1", port)
@@ -292,12 +173,13 @@ class OpenSSL::TestSSL < Test::Unit::TestCase
ssl.sync_close = true
str = "x" * 1000 + "\n"
- ITERATIONS.times{
- ssl.puts(str)
- assert_equal(str, ssl.gets)
- }
-
- starttls(ssl)
+ OpenSSL::TestUtils.silent do
+ ITERATIONS.times{
+ ssl.puts(str)
+ assert_equal(str, ssl.gets)
+ }
+ starttls(ssl)
+ end
ITERATIONS.times{
ssl.puts(str)
@@ -365,6 +247,26 @@ class OpenSSL::TestSSL < Test::Unit::TestCase
}
end
+ def test_exception_in_verify_callback_is_ignored
+ start_server(PORT, OpenSSL::SSL::VERIFY_NONE, true){|server, port|
+ sock = TCPSocket.new("127.0.0.1", port)
+ ctx = OpenSSL::SSL::SSLContext.new
+ ctx.set_params(
+ :verify_callback => Proc.new do |preverify_ok, store_ctx|
+ store_ctx.error = OpenSSL::X509::V_OK
+ raise RuntimeError
+ end
+ )
+ ssl = OpenSSL::SSL::SSLSocket.new(sock, ctx)
+ OpenSSL::TestUtils.silent do
+ # SSLError, not RuntimeError
+ assert_raise(OpenSSL::SSL::SSLError) { ssl.connect }
+ end
+ assert_equal(OpenSSL::X509::V_ERR_CERT_REJECTED, ssl.verify_result)
+ ssl.close
+ }
+ end
+
def test_sslctx_set_params
start_server(PORT, OpenSSL::SSL::VERIFY_NONE, true){|server, port|
sock = TCPSocket.new("127.0.0.1", port)
@@ -449,135 +351,13 @@ class OpenSSL::TestSSL < Test::Unit::TestCase
}
end
- def test_client_session
- last_session = nil
- start_server(PORT, OpenSSL::SSL::VERIFY_NONE, true) do |server, port|
- 2.times do
- sock = TCPSocket.new("127.0.0.1", port)
- # Debian's openssl 0.9.8g-13 failed at assert(ssl.session_reused?),
- # when use default SSLContext. [ruby-dev:36167]
- ctx = OpenSSL::SSL::SSLContext.new("TLSv1")
- ssl = OpenSSL::SSL::SSLSocket.new(sock, ctx)
- ssl.sync_close = true
- ssl.session = last_session if last_session
- ssl.connect
-
- session = ssl.session
- if last_session
- assert(ssl.session_reused?)
-
- if session.respond_to?(:id)
- assert_equal(session.id, last_session.id)
- end
- assert_equal(session.to_pem, last_session.to_pem)
- assert_equal(session.to_der, last_session.to_der)
- # Older version of OpenSSL may not be consistent. Look up which versions later.
- assert_equal(session.to_text, last_session.to_text)
- else
- assert(!ssl.session_reused?)
- end
- last_session = session
-
- str = "x" * 100 + "\n"
- ssl.puts(str)
- assert_equal(str, ssl.gets)
-
- ssl.close
- end
- end
- end
-
- def test_server_session
- connections = 0
- saved_session = nil
-
- ctx_proc = Proc.new do |ctx, ssl|
-# add test for session callbacks here
- end
-
- server_proc = Proc.new do |ctx, ssl|
- session = ssl.session
- stats = ctx.session_cache_stats
-
- case connections
- when 0
- assert_equal(stats[:cache_num], 1)
- assert_equal(stats[:cache_hits], 0)
- assert_equal(stats[:cache_misses], 0)
- assert(!ssl.session_reused?)
- when 1
- assert_equal(stats[:cache_num], 1)
- assert_equal(stats[:cache_hits], 1)
- assert_equal(stats[:cache_misses], 0)
- assert(ssl.session_reused?)
- ctx.session_remove(session)
- saved_session = session
- when 2
- assert_equal(stats[:cache_num], 1)
- assert_equal(stats[:cache_hits], 1)
- assert_equal(stats[:cache_misses], 1)
- assert(!ssl.session_reused?)
- ctx.session_add(saved_session)
- when 3
- assert_equal(stats[:cache_num], 2)
- assert_equal(stats[:cache_hits], 2)
- assert_equal(stats[:cache_misses], 1)
- assert(ssl.session_reused?)
- ctx.flush_sessions(Time.now + 5000)
- when 4
- assert_equal(stats[:cache_num], 1)
- assert_equal(stats[:cache_hits], 2)
- assert_equal(stats[:cache_misses], 2)
- assert(!ssl.session_reused?)
- ctx.session_add(saved_session)
- end
- connections += 1
-
- readwrite_loop(ctx, ssl)
- end
-
- first_session = nil
- start_server(PORT, OpenSSL::SSL::VERIFY_NONE, true, :ctx_proc => ctx_proc, :server_proc => server_proc) do |server, port|
- 10.times do |i|
- sock = TCPSocket.new("127.0.0.1", port)
- ctx = OpenSSL::SSL::SSLContext.new
- if defined?(OpenSSL::SSL::OP_NO_TICKET)
- # disable RFC4507 support
- ctx.options = OpenSSL::SSL::OP_NO_TICKET
- end
- ssl = OpenSSL::SSL::SSLSocket.new(sock, ctx)
- ssl.sync_close = true
- ssl.session = first_session if first_session
- ssl.connect
-
- session = ssl.session
- if first_session
- case i
- when 1; assert(ssl.session_reused?)
- when 2; assert(!ssl.session_reused?)
- when 3; assert(ssl.session_reused?)
- when 4; assert(!ssl.session_reused?)
- when 5..10; assert(ssl.session_reused?)
- end
- end
- first_session ||= session
-
- str = "x" * 100 + "\n"
- ssl.puts(str)
- assert_equal(str, ssl.gets)
-
- ssl.close
- end
- end
- end
-
def test_tlsext_hostname
return unless OpenSSL::SSL::SSLSocket.instance_methods.include?(:hostname)
ctx_proc = Proc.new do |ctx, ssl|
foo_ctx = ctx.dup
- ctx.servername_cb = Proc.new do |ssl, hostname|
+ ctx.servername_cb = Proc.new do |ssl2, hostname|
case hostname
when 'foo.example.com'
foo_ctx
@@ -614,6 +394,50 @@ class OpenSSL::TestSSL < Test::Unit::TestCase
end
end
end
+
+ def test_multibyte_read_write
+ #German a umlaut
+ auml = [%w{ C3 A4 }.join('')].pack('H*')
+ auml.force_encoding(Encoding::UTF_8)
+
+ [10, 1000, 100000].each {|i|
+ str = nil
+ num_written = nil
+ server_proc = Proc.new {|ctx, ssl|
+ cmp = ssl.read
+ raw_size = cmp.size
+ cmp.force_encoding(Encoding::UTF_8)
+ assert_equal(str, cmp)
+ assert_equal(num_written, raw_size)
+ ssl.close
+ }
+ start_server(PORT, OpenSSL::SSL::VERIFY_NONE, true, :server_proc => server_proc){|server, port|
+ sock = TCPSocket.new("127.0.0.1", port)
+ ssl = OpenSSL::SSL::SSLSocket.new(sock)
+ ssl.sync_close = true
+ ssl.connect
+ str = auml * i
+ num_written = ssl.write(str)
+ ssl.close
+ }
+ }
+ end
+
+ def test_unset_OP_ALL
+ ctx_proc = Proc.new { |ctx|
+ ctx.options = OpenSSL::SSL::OP_ALL & ~OpenSSL::SSL::OP_DONT_INSERT_EMPTY_FRAGMENTS
+ }
+ start_server(PORT, OpenSSL::SSL::VERIFY_NONE, true, :ctx_proc => ctx_proc){|server, port|
+ sock = TCPSocket.new("127.0.0.1", port)
+ ssl = OpenSSL::SSL::SSLSocket.new(sock)
+ ssl.sync_close = true
+ ssl.connect
+ ssl.puts('hello')
+ assert_equal("hello\n", ssl.gets)
+ ssl.close
+ }
+ end
+
end
end
diff --git a/test/openssl/test_ssl_session.rb b/test/openssl/test_ssl_session.rb
new file mode 100644
index 0000000000..12c6152f9b
--- /dev/null
+++ b/test/openssl/test_ssl_session.rb
@@ -0,0 +1,327 @@
+require_relative "utils"
+
+if defined?(OpenSSL)
+
+class OpenSSL::TestSSLSession < OpenSSL::SSLTestCase
+ def test_session
+ start_server(PORT, OpenSSL::SSL::VERIFY_NONE, true) do |server, port|
+ sock = TCPSocket.new("127.0.0.1", port)
+ ctx = OpenSSL::SSL::SSLContext.new("TLSv1")
+ ssl = OpenSSL::SSL::SSLSocket.new(sock, ctx)
+ ssl.sync_close = true
+ ssl.connect
+ session = ssl.session
+ assert(session == OpenSSL::SSL::Session.new(session.to_pem))
+ assert(session == OpenSSL::SSL::Session.new(ssl))
+ assert_equal(300, session.timeout)
+ session.timeout = 5
+ assert_equal(5, session.timeout)
+ assert_not_nil(session.time)
+ # SSL_SESSION_time keeps long value so we can't keep nsec fragment.
+ session.time = t1 = Time.now.to_i
+ assert_equal(Time.at(t1), session.time)
+ if session.respond_to?(:id)
+ assert_not_nil(session.id)
+ end
+ pem = session.to_pem
+ assert_match(/\A-----BEGIN SSL SESSION PARAMETERS-----/, pem)
+ assert_match(/-----END SSL SESSION PARAMETERS-----\Z/, pem)
+ pem.gsub!(/-----(BEGIN|END) SSL SESSION PARAMETERS-----/, '').gsub!(/[\r\n]+/m, '')
+ assert_equal(session.to_der, pem.unpack('m*')[0])
+ assert_not_nil(session.to_text)
+ ssl.close
+ end
+ end
+
+ DUMMY_SESSION = <<__EOS__
+-----BEGIN SSL SESSION PARAMETERS-----
+MIIDzQIBAQICAwEEAgA5BCAF219w9ZEV8dNA60cpEGOI34hJtIFbf3bkfzSgMyad
+MQQwyGLbkCxE4OiMLdKKem+pyh8V7ifoP7tCxhdmwoDlJxI1v6nVCjai+FGYuncy
+NNSWoQYCBE4DDWuiAwIBCqOCAo4wggKKMIIBcqADAgECAgECMA0GCSqGSIb3DQEB
+BQUAMD0xEzARBgoJkiaJk/IsZAEZFgNvcmcxGTAXBgoJkiaJk/IsZAEZFglydWJ5
+LWxhbmcxCzAJBgNVBAMMAkNBMB4XDTExMDYyMzA5NTQ1MVoXDTExMDYyMzEwMjQ1
+MVowRDETMBEGCgmSJomT8ixkARkWA29yZzEZMBcGCgmSJomT8ixkARkWCXJ1Ynkt
+bGFuZzESMBAGA1UEAwwJbG9jYWxob3N0MIGfMA0GCSqGSIb3DQEBAQUAA4GNADCB
+iQKBgQDLwsSw1ECnPtT+PkOgHhcGA71nwC2/nL85VBGnRqDxOqjVh7CxaKPERYHs
+k4BPCkE3brtThPWc9kjHEQQ7uf9Y1rbCz0layNqHyywQEVLFmp1cpIt/Q3geLv8Z
+D9pihowKJDyMDiN6ArYUmZczvW4976MU3+l54E6lF/JfFEU5hwIDAQABoxIwEDAO
+BgNVHQ8BAf8EBAMCBaAwDQYJKoZIhvcNAQEFBQADggEBACj5WhoZ/ODVeHpwgq1d
+8fW/13ICRYHYpv6dzlWihyqclGxbKMlMnaVCPz+4JaVtMz3QB748KJQgL3Llg3R1
+ek+f+n1MBCMfFFsQXJ2gtLB84zD6UCz8aaCWN5/czJCd7xMz7fRLy3TOIW5boXAU
+zIa8EODk+477K1uznHm286ab0Clv+9d304hwmBZgkzLg6+31Of6d6s0E0rwLGiS2
+sOWYg34Y3r4j8BS9Ak4jzpoLY6cJ0QAKCOJCgmjGr4XHpyXMLbicp3ga1uSbwtVO
+gF/gTfpLhJC+y0EQ5x3Ftl88Cq7ZJuLBDMo/TLIfReJMQu/HlrTT7+LwtneSWGmr
+KkSkAgQApQMCAROqgcMEgcAuDkAVfj6QAJMz9yqTzW5wPFyty7CxUEcwKjUqj5UP
+/Yvky1EkRuM/eQfN7ucY+MUvMqv+R8ZSkHPsnjkBN5ChvZXjrUSZKFVjR4eFVz2V
+jismLEJvIFhQh6pqTroRrOjMfTaM5Lwoytr2FTGobN9rnjIRsXeFQW1HLFbXn7Dh
+8uaQkMwIVVSGRB8T7t6z6WIdWruOjCZ6G5ASI5XoqAHwGezhLodZuvJEfsVyCF9y
+j+RBGfCFrrQbBdnkFI/ztgM=
+-----END SSL SESSION PARAMETERS-----
+__EOS__
+
+ DUMMY_SESSION_NO_EXT = <<-__EOS__
+-----BEGIN SSL SESSION PARAMETERS-----
+MIIDCAIBAQICAwAEAgA5BCDyAW7rcpzMjDSosH+Tv6sukymeqgq3xQVVMez628A+
+lAQw9TrKzrIqlHEh6ltuQaqv/Aq83AmaAlogYktZgXAjOGnhX7ifJDNLMuCfQq53
+hPAaoQYCBE4iDeeiBAICASyjggKOMIICijCCAXKgAwIBAgIBAjANBgkqhkiG9w0B
+AQUFADA9MRMwEQYKCZImiZPyLGQBGRYDb3JnMRkwFwYKCZImiZPyLGQBGRYJcnVi
+eS1sYW5nMQswCQYDVQQDDAJDQTAeFw0xMTA3MTYyMjE3MTFaFw0xMTA3MTYyMjQ3
+MTFaMEQxEzARBgoJkiaJk/IsZAEZFgNvcmcxGTAXBgoJkiaJk/IsZAEZFglydWJ5
+LWxhbmcxEjAQBgNVBAMMCWxvY2FsaG9zdDCBnzANBgkqhkiG9w0BAQEFAAOBjQAw
+gYkCgYEAy8LEsNRApz7U/j5DoB4XBgO9Z8Atv5y/OVQRp0ag8Tqo1YewsWijxEWB
+7JOATwpBN267U4T1nPZIxxEEO7n/WNa2ws9JWsjah8ssEBFSxZqdXKSLf0N4Hi7/
+GQ/aYoaMCiQ8jA4jegK2FJmXM71uPe+jFN/peeBOpRfyXxRFOYcCAwEAAaMSMBAw
+DgYDVR0PAQH/BAQDAgWgMA0GCSqGSIb3DQEBBQUAA4IBAQA3TRzABRG3kz8jEEYr
+tDQqXgsxwTsLhTT5d1yF0D8uFw+y15hJAJnh6GJHjqhWBrF4zNoTApFo+4iIL6g3
+q9C3mUsxIVAHx41DwZBh/FI7J4FqlAoGOguu7892CNVY3ZZjc3AXMTdKjcNoWPzz
+FCdj5fNT24JMMe+ZdGZK97ChahJsdn/6B3j6ze9NK9mfYEbiJhejGTPLOFVHJCGR
+KYYZ3ZcKhLDr9ql4d7cCo1gBtemrmFQGPui7GttNEqmXqUKvV8mYoa8farf5i7T4
+L6a/gp2cVZTaDIS1HjbJsA/Ag7AajZqiN6LfqShNUVsrMZ+5CoV8EkBDTZPJ9MSr
+a3EqpAIEAKUDAgET
+-----END SSL SESSION PARAMETERS-----
+__EOS__
+
+
+ def test_session_time
+ sess = OpenSSL::SSL::Session.new(DUMMY_SESSION_NO_EXT)
+ sess.time = (now = Time.now)
+ assert_equal(now.to_i, sess.time.to_i)
+ sess.time = 1
+ assert_equal(1, sess.time.to_i)
+ sess.time = 1.2345
+ assert_equal(1, sess.time.to_i)
+ # Can OpenSSL handle t>2038y correctly? Version?
+ sess.time = 2**31 - 1
+ assert_equal(2**31 - 1, sess.time.to_i)
+ end
+
+ def test_session_timeout
+ sess = OpenSSL::SSL::Session.new(DUMMY_SESSION_NO_EXT)
+ assert_raise(TypeError) do
+ sess.timeout = (now = Time.now)
+ end
+ sess.timeout = 1
+ assert_equal(1, sess.timeout.to_i)
+ sess.timeout = 1.2345
+ assert_equal(1, sess.timeout.to_i)
+ sess.timeout = 2**31 - 1
+ assert_equal(2**31 - 1, sess.timeout.to_i)
+ end
+
+ def test_session_exts_read
+ assert(OpenSSL::SSL::Session.new(DUMMY_SESSION))
+ end if OpenSSL::OPENSSL_VERSION_NUMBER >= 0x009080bf
+
+ def test_client_session
+ last_session = nil
+ start_server(PORT, OpenSSL::SSL::VERIFY_NONE, true) do |server, port|
+ 2.times do
+ sock = TCPSocket.new("127.0.0.1", port)
+ # Debian's openssl 0.9.8g-13 failed at assert(ssl.session_reused?),
+ # when use default SSLContext. [ruby-dev:36167]
+ ctx = OpenSSL::SSL::SSLContext.new("TLSv1")
+ ssl = OpenSSL::SSL::SSLSocket.new(sock, ctx)
+ ssl.sync_close = true
+ ssl.session = last_session if last_session
+ ssl.connect
+
+ session = ssl.session
+ if last_session
+ assert(ssl.session_reused?)
+
+ if session.respond_to?(:id)
+ assert_equal(session.id, last_session.id)
+ end
+ assert_equal(session.to_pem, last_session.to_pem)
+ assert_equal(session.to_der, last_session.to_der)
+ # Older version of OpenSSL may not be consistent. Look up which versions later.
+ assert_equal(session.to_text, last_session.to_text)
+ else
+ assert(!ssl.session_reused?)
+ end
+ last_session = session
+
+ str = "x" * 100 + "\n"
+ ssl.puts(str)
+ assert_equal(str, ssl.gets)
+
+ ssl.close
+ end
+ end
+ end
+
+ def test_server_session
+ connections = 0
+ saved_session = nil
+
+ ctx_proc = Proc.new do |ctx, ssl|
+# add test for session callbacks here
+ end
+
+ server_proc = Proc.new do |ctx, ssl|
+ session = ssl.session
+ stats = ctx.session_cache_stats
+
+ case connections
+ when 0
+ assert_equal(stats[:cache_num], 1)
+ assert_equal(stats[:cache_hits], 0)
+ assert_equal(stats[:cache_misses], 0)
+ assert(!ssl.session_reused?)
+ when 1
+ assert_equal(stats[:cache_num], 1)
+ assert_equal(stats[:cache_hits], 1)
+ assert_equal(stats[:cache_misses], 0)
+ assert(ssl.session_reused?)
+ ctx.session_remove(session)
+ saved_session = session
+ when 2
+ assert_equal(stats[:cache_num], 1)
+ assert_equal(stats[:cache_hits], 1)
+ assert_equal(stats[:cache_misses], 1)
+ assert(!ssl.session_reused?)
+ ctx.session_add(saved_session)
+ when 3
+ assert_equal(stats[:cache_num], 2)
+ assert_equal(stats[:cache_hits], 2)
+ assert_equal(stats[:cache_misses], 1)
+ assert(ssl.session_reused?)
+ ctx.flush_sessions(Time.now + 5000)
+ when 4
+ assert_equal(stats[:cache_num], 1)
+ assert_equal(stats[:cache_hits], 2)
+ assert_equal(stats[:cache_misses], 2)
+ assert(!ssl.session_reused?)
+ ctx.session_add(saved_session)
+ end
+ connections += 1
+
+ readwrite_loop(ctx, ssl)
+ end
+
+ first_session = nil
+ start_server(PORT, OpenSSL::SSL::VERIFY_NONE, true, :ctx_proc => ctx_proc, :server_proc => server_proc) do |server, port|
+ 10.times do |i|
+ sock = TCPSocket.new("127.0.0.1", port)
+ ctx = OpenSSL::SSL::SSLContext.new
+ if defined?(OpenSSL::SSL::OP_NO_TICKET)
+ # disable RFC4507 support
+ ctx.options = OpenSSL::SSL::OP_NO_TICKET
+ end
+ ssl = OpenSSL::SSL::SSLSocket.new(sock, ctx)
+ ssl.sync_close = true
+ ssl.session = first_session if first_session
+ ssl.connect
+
+ session = ssl.session
+ if first_session
+ case i
+ when 1; assert(ssl.session_reused?)
+ when 2; assert(!ssl.session_reused?)
+ when 3; assert(ssl.session_reused?)
+ when 4; assert(!ssl.session_reused?)
+ when 5..10; assert(ssl.session_reused?)
+ end
+ end
+ first_session ||= session
+
+ str = "x" * 100 + "\n"
+ ssl.puts(str)
+ assert_equal(str, ssl.gets)
+
+ ssl.close
+ end
+ end
+ end
+
+ def test_ctx_client_session_cb
+ called = {}
+ ctx = OpenSSL::SSL::SSLContext.new("SSLv3")
+ ctx.session_cache_mode = OpenSSL::SSL::SSLContext::SESSION_CACHE_CLIENT
+
+ ctx.session_new_cb = lambda { |ary|
+ sock, sess = ary
+ called[:new] = [sock, sess]
+ }
+
+ ctx.session_remove_cb = lambda { |ary|
+ ctx, sess = ary
+ called[:remove] = [ctx, sess]
+ # any resulting value is OK (ignored)
+ }
+
+ start_server(PORT, OpenSSL::SSL::VERIFY_NONE, true) do |server, port|
+ sock = TCPSocket.new("127.0.0.1", port)
+ ssl = OpenSSL::SSL::SSLSocket.new(sock, ctx)
+ ssl.sync_close = true
+ ssl.connect
+ assert_equal(1, ctx.session_cache_stats[:cache_num])
+ assert_equal(1, ctx.session_cache_stats[:connect_good])
+ assert_equal([ssl, ssl.session], called[:new])
+ assert(ctx.session_remove(ssl.session))
+ assert(!ctx.session_remove(ssl.session))
+ assert_equal([ctx, ssl.session], called[:remove])
+ ssl.close
+ end
+ end
+
+ def test_ctx_server_session_cb
+ called = {}
+
+ ctx_proc = Proc.new { |ctx, ssl|
+ ctx.session_cache_mode = OpenSSL::SSL::SSLContext::SESSION_CACHE_SERVER
+ last_server_session = nil
+
+ # get_cb is called whenever a client proposed to resume a session but
+ # the session could not be found in the internal session cache.
+ ctx.session_get_cb = lambda { |ary|
+ sess, data = ary
+ if last_server_session
+ called[:get2] = [sess, data]
+ last_server_session
+ else
+ called[:get1] = [sess, data]
+ last_server_session = sess
+ nil
+ end
+ }
+
+ ctx.session_new_cb = lambda { |ary|
+ sock, sess = ary
+ called[:new] = [sock, sess]
+ # SSL server doesn't cache sessions so get_cb is called next time.
+ ctx.session_remove(sess)
+ }
+
+ ctx.session_remove_cb = lambda { |ary|
+ ctx, sess = ary
+ called[:remove] = [ctx, sess]
+ }
+ }
+
+ server_proc = Proc.new { |c, ssl|
+ session = ssl.session
+ stats = c.session_cache_stats
+ readwrite_loop(c, ssl)
+ }
+ start_server(PORT, OpenSSL::SSL::VERIFY_NONE, true, :ctx_proc => ctx_proc, :server_proc => server_proc) do |server, port|
+ last_client_session = nil
+ 3.times do
+ sock = TCPSocket.new("127.0.0.1", port)
+ ssl = OpenSSL::SSL::SSLSocket.new(sock, OpenSSL::SSL::SSLContext.new("SSLv3"))
+ ssl.sync_close = true
+ ssl.session = last_client_session if last_client_session
+ ssl.connect
+ last_client_session = ssl.session
+ ssl.close
+ Thread.pass # try to ensure server calls callbacks
+ assert(called.delete(:new))
+ assert(called.delete(:remove))
+ end
+ end
+ assert(called[:get1])
+ assert(called[:get2])
+ end
+end
+
+end
diff --git a/test/openssl/test_x509cert.rb b/test/openssl/test_x509cert.rb
index 398ab2ff34..80c31f4d13 100644
--- a/test/openssl/test_x509cert.rb
+++ b/test/openssl/test_x509cert.rb
@@ -1,9 +1,4 @@
-begin
- require "openssl"
- require File.join(File.dirname(__FILE__), "utils.rb")
-rescue LoadError
-end
-require "test/unit"
+require_relative "utils"
if defined?(OpenSSL)
@@ -134,41 +129,89 @@ class OpenSSL::TestX509Certificate < Test::Unit::TestCase
nil, nil, OpenSSL::Digest::SHA1.new)
assert_equal(false, cert.verify(@rsa1024))
assert_equal(true, cert.verify(@rsa2048))
- assert_equal(false, cert.verify(@dsa256))
- assert_equal(false, cert.verify(@dsa512))
+ assert_equal(false, certificate_error_returns_false { cert.verify(@dsa256) })
+ assert_equal(false, certificate_error_returns_false { cert.verify(@dsa512) })
cert.serial = 2
assert_equal(false, cert.verify(@rsa2048))
cert = issue_cert(@ca, @rsa2048, 1, Time.now, Time.now+3600, [],
nil, nil, OpenSSL::Digest::MD5.new)
assert_equal(false, cert.verify(@rsa1024))
- assert_equal(true, cert.verify(@rsa2048))
- assert_equal(false, cert.verify(@dsa256))
- assert_equal(false, cert.verify(@dsa512))
+ assert_equal(true, cert.verify(@rsa2048))
+
+ assert_equal(false, certificate_error_returns_false { cert.verify(@dsa256) })
+ assert_equal(false, certificate_error_returns_false { cert.verify(@dsa512) })
cert.subject = @ee1
assert_equal(false, cert.verify(@rsa2048))
cert = issue_cert(@ca, @dsa512, 1, Time.now, Time.now+3600, [],
nil, nil, OpenSSL::Digest::DSS1.new)
- assert_equal(false, cert.verify(@rsa1024))
- assert_equal(false, cert.verify(@rsa2048))
+ assert_equal(false, certificate_error_returns_false { cert.verify(@rsa1024) })
+ assert_equal(false, certificate_error_returns_false { cert.verify(@rsa2048) })
assert_equal(false, cert.verify(@dsa256))
assert_equal(true, cert.verify(@dsa512))
cert.not_after = Time.now
assert_equal(false, cert.verify(@dsa512))
- assert_raise(OpenSSL::X509::CertificateError){
+ begin
cert = issue_cert(@ca, @rsa2048, 1, Time.now, Time.now+3600, [],
nil, nil, OpenSSL::Digest::DSS1.new)
- }
+ assert_equal(false, cert.verify(@rsa1024))
+ assert_equal(true, cert.verify(@rsa2048))
+ assert_equal(false, certificate_error_returns_false { cert.verify(@dsa256) })
+ assert_equal(false, certificate_error_returns_false { cert.verify(@dsa512) })
+ cert.subject = @ee1
+ assert_equal(false, cert.verify(@rsa2048))
+ rescue OpenSSL::X509::CertificateError
+ end
+
assert_raise(OpenSSL::X509::CertificateError){
cert = issue_cert(@ca, @dsa512, 1, Time.now, Time.now+3600, [],
nil, nil, OpenSSL::Digest::MD5.new)
}
- assert_raise(OpenSSL::X509::CertificateError){
+ end
+
+ def test_dsig_algorithm_mismatch
+ assert_raise(OpenSSL::X509::CertificateError) do
+ cert = issue_cert(@ca, @rsa2048, 1, Time.now, Time.now+3600, [],
+ nil, nil, OpenSSL::Digest::DSS1.new)
+ end if OpenSSL::OPENSSL_VERSION_NUMBER < 0x10001000 # [ruby-core:42949]
+
+ assert_raise(OpenSSL::X509::CertificateError) do
cert = issue_cert(@ca, @dsa512, 1, Time.now, Time.now+3600, [],
- nil, nil, OpenSSL::Digest::SHA1.new)
- }
+ nil, nil, OpenSSL::Digest::MD5.new)
+ end
+ end
+
+ def test_dsa_with_sha2
+ begin
+ cert = issue_cert(@ca, @dsa256, 1, Time.now, Time.now+3600, [],
+ nil, nil, OpenSSL::Digest::SHA256.new)
+ assert_equal("dsa_with_SHA256", cert.signature_algorithm)
+ rescue OpenSSL::X509::CertificateError
+ # dsa_with_sha2 not supported. skip following test.
+ return
+ end
+ # TODO: need more tests for dsa + sha2
+
+ # SHA1 is allowed from OpenSSL 1.0.0 (0.9.8 requires DSS1)
+ cert = issue_cert(@ca, @dsa256, 1, Time.now, Time.now+3600, [],
+ nil, nil, OpenSSL::Digest::SHA1.new)
+ assert_equal("dsaWithSHA1", cert.signature_algorithm)
+ end if defined?(OpenSSL::Digest::SHA256)
+
+ def test_check_private_key
+ cert = issue_cert(@ca, @rsa2048, 1, Time.now, Time.now+3600, [],
+ nil, nil, OpenSSL::Digest::SHA1.new)
+ assert_equal(true, cert.check_private_key(@rsa2048))
+ end
+
+ private
+
+ def certificate_error_returns_false
+ yield
+ rescue OpenSSL::X509::CertificateError
+ false
end
end
diff --git a/test/openssl/test_x509crl.rb b/test/openssl/test_x509crl.rb
index e1f4e009cd..56508e0a12 100644
--- a/test/openssl/test_x509crl.rb
+++ b/test/openssl/test_x509crl.rb
@@ -1,9 +1,4 @@
-begin
- require "openssl"
- require File.join(File.dirname(__FILE__), "utils.rb")
-rescue LoadError
-end
-require "test/unit"
+require_relative "utils"
if defined?(OpenSSL)
@@ -197,8 +192,8 @@ class OpenSSL::TestX509CRL < Test::Unit::TestCase
cert, @rsa2048, OpenSSL::Digest::SHA1.new)
assert_equal(false, crl.verify(@rsa1024))
assert_equal(true, crl.verify(@rsa2048))
- assert_equal(false, crl.verify(@dsa256))
- assert_equal(false, crl.verify(@dsa512))
+ assert_equal(false, crl_error_returns_false { crl.verify(@dsa256) })
+ assert_equal(false, crl_error_returns_false { crl.verify(@dsa512) })
crl.version = 0
assert_equal(false, crl.verify(@rsa2048))
@@ -206,13 +201,21 @@ class OpenSSL::TestX509CRL < Test::Unit::TestCase
nil, nil, OpenSSL::Digest::DSS1.new)
crl = issue_crl([], 1, Time.now, Time.now+1600, [],
cert, @dsa512, OpenSSL::Digest::DSS1.new)
- assert_equal(false, crl.verify(@rsa1024))
- assert_equal(false, crl.verify(@rsa2048))
+ assert_equal(false, crl_error_returns_false { crl.verify(@rsa1024) })
+ assert_equal(false, crl_error_returns_false { crl.verify(@rsa2048) })
assert_equal(false, crl.verify(@dsa256))
assert_equal(true, crl.verify(@dsa512))
crl.version = 0
assert_equal(false, crl.verify(@dsa512))
end
+
+ private
+
+ def crl_error_returns_false
+ yield
+ rescue OpenSSL::X509::CRLError
+ false
+ end
end
end
diff --git a/test/openssl/test_x509ext.rb b/test/openssl/test_x509ext.rb
index d43bbd6bd3..89b45c728f 100644
--- a/test/openssl/test_x509ext.rb
+++ b/test/openssl/test_x509ext.rb
@@ -1,9 +1,4 @@
-begin
- require "openssl"
- require File.join(File.dirname(__FILE__), "utils.rb")
-rescue LoadError
-end
-require "test/unit"
+require_relative 'utils'
if defined?(OpenSSL)
diff --git a/test/openssl/test_x509name.rb b/test/openssl/test_x509name.rb
index fb5a1ae4ff..90c09929ce 100644
--- a/test/openssl/test_x509name.rb
+++ b/test/openssl/test_x509name.rb
@@ -1,8 +1,4 @@
-begin
- require "openssl"
-rescue LoadError
-end
-require "test/unit"
+require_relative 'utils'
if defined?(OpenSSL)
@@ -104,6 +100,58 @@ class OpenSSL::TestX509Name < Test::Unit::TestCase
assert_equal(name_from_der.to_der, name.to_der)
end
+ def test_unrecognized_oid
+ dn = [ ["1.2.3.4.5.6.7.8.9.7.5.3.1", "Unknown OID 1"],
+ ["1.1.2.3.5.8.13.21.34", "Unknown OID 2"],
+ ["C", "US"],
+ ["postalCode", "60602"],
+ ["ST", "Illinois"],
+ ["L", "Chicago"],
+ #["street", "123 Fake St"],
+ ["O", "Some Company LLC"],
+ ["CN", "mydomain.com"] ]
+
+ name = OpenSSL::X509::Name.new(dn)
+ ary = name.to_a
+ #assert_equal("/1.2.3.4.5.6.7.8.9.7.5.3.1=Unknown OID 1/1.1.2.3.5.8.13.21.34=Unknown OID 2/C=US/postalCode=60602/ST=Illinois/L=Chicago/street=123 Fake St/O=Some Company LLC/CN=mydomain.com", name.to_s)
+ assert_equal("/1.2.3.4.5.6.7.8.9.7.5.3.1=Unknown OID 1/1.1.2.3.5.8.13.21.34=Unknown OID 2/C=US/postalCode=60602/ST=Illinois/L=Chicago/O=Some Company LLC/CN=mydomain.com", name.to_s)
+ assert_equal("1.2.3.4.5.6.7.8.9.7.5.3.1", ary[0][0])
+ assert_equal("1.1.2.3.5.8.13.21.34", ary[1][0])
+ assert_equal("C", ary[2][0])
+ assert_equal("postalCode", ary[3][0])
+ assert_equal("ST", ary[4][0])
+ assert_equal("L", ary[5][0])
+ #assert_equal("street", ary[6][0])
+ assert_equal("O", ary[6][0])
+ assert_equal("CN", ary[7][0])
+ assert_equal("Unknown OID 1", ary[0][1])
+ assert_equal("Unknown OID 2", ary[1][1])
+ assert_equal("US", ary[2][1])
+ assert_equal("60602", ary[3][1])
+ assert_equal("Illinois", ary[4][1])
+ assert_equal("Chicago", ary[5][1])
+ #assert_equal("123 Fake St", ary[6][1])
+ assert_equal("Some Company LLC", ary[6][1])
+ assert_equal("mydomain.com", ary[7][1])
+ end
+
+ def test_unrecognized_oid_parse_encode_equality
+ dn = [ ["1.2.3.4.5.6.7.8.9.7.5.3.2", "Unknown OID1"],
+ ["1.1.2.3.5.8.13.21.35", "Unknown OID2"],
+ ["C", "US"],
+ ["postalCode", "60602"],
+ ["ST", "Illinois"],
+ ["L", "Chicago"],
+ #["street", "123 Fake St"],
+ ["O", "Some Company LLC"],
+ ["CN", "mydomain.com"] ]
+
+ name1 = OpenSSL::X509::Name.new(dn)
+ name2 = OpenSSL::X509::Name.parse(name1.to_s)
+ assert_equal(name1.to_s, name2.to_s)
+ assert_equal(name1.to_a, name2.to_a)
+ end
+
def test_s_parse
dn = "/DC=org/DC=ruby-lang/CN=www.ruby-lang.org"
name = OpenSSL::X509::Name.parse(dn)
@@ -120,14 +168,14 @@ class OpenSSL::TestX509Name < Test::Unit::TestCase
assert_equal(OpenSSL::ASN1::UTF8STRING, ary[2][2])
dn2 = "DC=org, DC=ruby-lang, CN=www.ruby-lang.org"
- name = OpenSSL::X509::Name.parse(dn)
+ name = OpenSSL::X509::Name.parse(dn2)
ary = name.to_a
assert_equal(dn, name.to_s)
assert_equal("org", ary[0][1])
assert_equal("ruby-lang", ary[1][1])
assert_equal("www.ruby-lang.org", ary[2][1])
- name = OpenSSL::X509::Name.parse(dn, @obj_type_tmpl)
+ name = OpenSSL::X509::Name.parse(dn2, @obj_type_tmpl)
ary = name.to_a
assert_equal(OpenSSL::ASN1::IA5STRING, ary[0][2])
assert_equal(OpenSSL::ASN1::IA5STRING, ary[1][2])
@@ -261,6 +309,58 @@ class OpenSSL::TestX509Name < Test::Unit::TestCase
assert_equal(OpenSSL::ASN1::IA5STRING, ary[3][2])
assert_equal(OpenSSL::ASN1::PRINTABLESTRING, ary[4][2])
end
+
+ def test_add_entry_street
+ return if OpenSSL::OPENSSL_VERSION_NUMBER < 0x009080df # 0.9.8m
+ # openssl/crypto/objects/obj_mac.h 1.83
+ dn = [
+ ["DC", "org"],
+ ["DC", "ruby-lang"],
+ ["CN", "GOTOU Yuuzou"],
+ ["emailAddress", "gotoyuzo@ruby-lang.org"],
+ ["serialNumber", "123"],
+ ["street", "Namiki"],
+ ]
+ name = OpenSSL::X509::Name.new
+ dn.each{|attr| name.add_entry(*attr) }
+ ary = name.to_a
+ assert_equal("/DC=org/DC=ruby-lang/CN=GOTOU Yuuzou/emailAddress=gotoyuzo@ruby-lang.org/serialNumber=123/street=Namiki", name.to_s)
+ assert_equal("Namiki", ary[5][1])
+ end
+
+ def test_equals2
+ n1 = OpenSSL::X509::Name.parse 'CN=a'
+ n2 = OpenSSL::X509::Name.parse 'CN=a'
+
+ assert_equal n1, n2
+ end
+
+ def test_spaceship
+ n1 = OpenSSL::X509::Name.parse 'CN=a'
+ n2 = OpenSSL::X509::Name.parse 'CN=b'
+
+ assert_equal -1, n1 <=> n2
+ end
+
+ def name_hash(name)
+ # OpenSSL 1.0.0 uses SHA1 for canonical encoding (not just a der) of
+ # X509Name for X509_NAME_hash.
+ name.respond_to?(:hash_old) ? name.hash_old : name.hash
+ end
+
+ def test_hash
+ dn = "/DC=org/DC=ruby-lang/CN=www.ruby-lang.org"
+ name = OpenSSL::X509::Name.parse(dn)
+ d = Digest::MD5.digest(name.to_der)
+ expected = (d[0].ord & 0xff) | (d[1].ord & 0xff) << 8 | (d[2].ord & 0xff) << 16 | (d[3].ord & 0xff) << 24
+ assert_equal(expected, name_hash(name))
+ #
+ dn = "/DC=org/DC=ruby-lang/CN=baz.ruby-lang.org"
+ name = OpenSSL::X509::Name.parse(dn)
+ d = Digest::MD5.digest(name.to_der)
+ expected = (d[0].ord & 0xff) | (d[1].ord & 0xff) << 8 | (d[2].ord & 0xff) << 16 | (d[3].ord & 0xff) << 24
+ assert_equal(expected, name_hash(name))
+ end
end
end
diff --git a/test/openssl/test_x509req.rb b/test/openssl/test_x509req.rb
index a37ed5c5ef..882a1d7356 100644
--- a/test/openssl/test_x509req.rb
+++ b/test/openssl/test_x509req.rb
@@ -1,9 +1,4 @@
-begin
- require "openssl"
- require File.join(File.dirname(__FILE__), "utils.rb")
-rescue LoadError
-end
-require "test/unit"
+require_relative "utils"
if defined?(OpenSSL)
@@ -107,34 +102,49 @@ class OpenSSL::TestX509Request < Test::Unit::TestCase
req = issue_csr(0, @dn, @rsa1024, OpenSSL::Digest::SHA1.new)
assert_equal(true, req.verify(@rsa1024))
assert_equal(false, req.verify(@rsa2048))
- assert_equal(false, req.verify(@dsa256))
- assert_equal(false, req.verify(@dsa512))
+ assert_equal(false, request_error_returns_false { req.verify(@dsa256) })
+ assert_equal(false, request_error_returns_false { req.verify(@dsa512) })
req.version = 1
assert_equal(false, req.verify(@rsa1024))
req = issue_csr(0, @dn, @rsa2048, OpenSSL::Digest::MD5.new)
assert_equal(false, req.verify(@rsa1024))
assert_equal(true, req.verify(@rsa2048))
- assert_equal(false, req.verify(@dsa256))
- assert_equal(false, req.verify(@dsa512))
+ assert_equal(false, request_error_returns_false { req.verify(@dsa256) })
+ assert_equal(false, request_error_returns_false { req.verify(@dsa512) })
req.subject = OpenSSL::X509::Name.parse("/C=JP/CN=FooBar")
assert_equal(false, req.verify(@rsa2048))
req = issue_csr(0, @dn, @dsa512, OpenSSL::Digest::DSS1.new)
- assert_equal(false, req.verify(@rsa1024))
- assert_equal(false, req.verify(@rsa2048))
+ assert_equal(false, request_error_returns_false { req.verify(@rsa1024) })
+ assert_equal(false, request_error_returns_false { req.verify(@rsa2048) })
assert_equal(false, req.verify(@dsa256))
assert_equal(true, req.verify(@dsa512))
req.public_key = @rsa1024.public_key
assert_equal(false, req.verify(@dsa512))
- assert_raise(OpenSSL::X509::RequestError){
- issue_csr(0, @dn, @rsa1024, OpenSSL::Digest::DSS1.new) }
- assert_raise(OpenSSL::X509::RequestError){
- issue_csr(0, @dn, @dsa512, OpenSSL::Digest::SHA1.new) }
+ begin
+ req = issue_csr(0, @dn, @rsa1024, OpenSSL::Digest::DSS1.new)
+ assert_equal(true, req.verify(@rsa1024))
+ assert_equal(false, req.verify(@rsa2048))
+ assert_equal(false, request_error_returns_false { req.verify(@dsa256) })
+ assert_equal(false, request_error_returns_false { req.verify(@dsa512) })
+ req.version = 1
+ assert_equal(false, req.verify(@rsa1024))
+ rescue OpenSSL::X509::RequestError
+ end
+
assert_raise(OpenSSL::X509::RequestError){
issue_csr(0, @dn, @dsa512, OpenSSL::Digest::MD5.new) }
end
+
+ private
+
+ def request_error_returns_false
+ yield
+ rescue OpenSSL::X509::RequestError
+ false
+ end
end
end
diff --git a/test/openssl/test_x509store.rb b/test/openssl/test_x509store.rb
index fc7c35e3dd..ff820c1c58 100644
--- a/test/openssl/test_x509store.rb
+++ b/test/openssl/test_x509store.rb
@@ -1,9 +1,4 @@
-begin
- require "openssl"
- require File.join(File.dirname(__FILE__), "utils.rb")
-rescue LoadError
-end
-require "test/unit"
+require_relative "utils"
if defined?(OpenSSL)
@@ -22,6 +17,14 @@ class OpenSSL::TestX509Store < Test::Unit::TestCase
def teardown
end
+ def test_nosegv_on_cleanup
+ cert = OpenSSL::X509::Certificate.new
+ store = OpenSSL::X509::Store.new
+ ctx = OpenSSL::X509::StoreContext.new(store, cert, [])
+ ctx.cleanup
+ ctx.verify
+ end
+
def issue_cert(*args)
OpenSSL::TestUtils.issue_cert(*args)
end
@@ -65,15 +68,15 @@ class OpenSSL::TestX509Store < Test::Unit::TestCase
crl2_2 = issue_crl(revoke_info, 2, now-100, now-1, [],
ca2_cert, @rsa1024, OpenSSL::Digest::SHA1.new)
- assert(true, ca1_cert.verify(ca1_cert.public_key)) # self signed
- assert(true, ca2_cert.verify(ca1_cert.public_key)) # issued by ca1
- assert(true, ee1_cert.verify(ca2_cert.public_key)) # issued by ca2
- assert(true, ee2_cert.verify(ca2_cert.public_key)) # issued by ca2
- assert(true, ee3_cert.verify(ca2_cert.public_key)) # issued by ca2
- assert(true, crl1.verify(ca1_cert.public_key)) # issued by ca1
- assert(true, crl1_2.verify(ca1_cert.public_key)) # issued by ca1
- assert(true, crl2.verify(ca2_cert.public_key)) # issued by ca2
- assert(true, crl2_2.verify(ca2_cert.public_key)) # issued by ca2
+ assert_equal(true, ca1_cert.verify(ca1_cert.public_key)) # self signed
+ assert_equal(true, ca2_cert.verify(ca1_cert.public_key)) # issued by ca1
+ assert_equal(true, ee1_cert.verify(ca2_cert.public_key)) # issued by ca2
+ assert_equal(true, ee2_cert.verify(ca2_cert.public_key)) # issued by ca2
+ assert_equal(true, ee3_cert.verify(ca2_cert.public_key)) # issued by ca2
+ assert_equal(true, crl1.verify(ca1_cert.public_key)) # issued by ca1
+ assert_equal(true, crl1_2.verify(ca1_cert.public_key)) # issued by ca1
+ assert_equal(true, crl2.verify(ca2_cert.public_key)) # issued by ca2
+ assert_equal(true, crl2_2.verify(ca2_cert.public_key)) # issued by ca2
store = OpenSSL::X509::Store.new
assert_equal(false, store.verify(ca1_cert))
@@ -209,9 +212,17 @@ class OpenSSL::TestX509Store < Test::Unit::TestCase
crl2 = issue_crl(revoke_info, 2, now+1800, now+3600, [],
ca1_cert, @rsa2048, OpenSSL::Digest::SHA1.new)
store.add_crl(crl1)
- assert_raise(OpenSSL::X509::StoreError){
- store.add_crl(crl2) # add CRL issued by same CA twice.
- }
+ if /0\.9\.8.*-rhel/ =~ OpenSSL::OPENSSL_VERSION
+ # RedHat is distributing a patched version of OpenSSL that allows
+ # multiple CRL for a key (multi-crl.patch)
+ assert_nothing_raised do
+ store.add_crl(crl2) # add CRL issued by same CA twice.
+ end
+ else
+ assert_raise(OpenSSL::X509::StoreError){
+ store.add_crl(crl2) # add CRL issued by same CA twice.
+ }
+ end
end
end
diff --git a/test/openssl/utils.rb b/test/openssl/utils.rb
index 2edb7b0c99..c4c0a0c040 100644
--- a/test/openssl/utils.rb
+++ b/test/openssl/utils.rb
@@ -1,5 +1,13 @@
-require "openssl"
+begin
+ require "openssl"
+rescue LoadError
+end
require "test/unit"
+require "digest/md5"
+require 'tempfile'
+require "rbconfig"
+require "socket"
+require_relative '../ruby/envutil'
module OpenSSL::TestUtils
TEST_KEY_RSA1024 = OpenSSL::PKey::RSA.new <<-_end_of_pem_
@@ -72,6 +80,25 @@ Q1VB8qkJN7rA7/2HrCR3gTsWNb1YhAsnFsoeRscC+LxXoXi9OAIUBG98h4tilg6S
-----END DSA PRIVATE KEY-----
_end_of_pem_
+if defined?(OpenSSL::PKey::EC)
+
+ TEST_KEY_EC_P256V1 = OpenSSL::PKey::EC.new <<-_end_of_pem_
+-----BEGIN EC PRIVATE KEY-----
+MHcCAQEEIID49FDqcf1O1eO8saTgG70UbXQw9Fqwseliit2aWhH1oAoGCCqGSM49
+AwEHoUQDQgAEFglk2c+oVUIKQ64eZG9bhLNPWB7lSZ/ArK41eGy5wAzU/0G51Xtt
+CeBUl+MahZtn9fO1JKdF4qJmS39dXnpENg==
+-----END EC PRIVATE KEY-----
+ _end_of_pem_
+
+end
+
+ TEST_KEY_DH512 = OpenSSL::PKey::DH.new <<-_end_of_pem_
+-----BEGIN DH PARAMETERS-----
+MEYCQQDmWXGPqk76sKw/edIOdhAQD4XzjJ+AR/PTk2qzaGs+u4oND2yU5D2NN4wr
+aPgwHyJBiK1/ebK3tYcrSKrOoRyrAgEC
+-----END DH PARAMETERS-----
+ _end_of_pem_
+
module_function
def issue_cert(dn, key, serial, not_before, not_after, extensions,
@@ -132,4 +159,155 @@ Q1VB8qkJN7rA7/2HrCR3gTsWNb1YhAsnFsoeRscC+LxXoXi9OAIUBG98h4tilg6S
pkvalue = publickey.value
OpenSSL::Digest::SHA1.hexdigest(pkvalue).scan(/../).join(":").upcase
end
-end
+
+ def silent
+ begin
+ back, $VERBOSE = $VERBOSE, nil
+ yield
+ ensure
+ $VERBOSE = back
+ end
+ end
+
+ class OpenSSL::SSLTestCase < Test::Unit::TestCase
+ RUBY = EnvUtil.rubybin
+ SSL_SERVER = File.join(File.dirname(__FILE__), "ssl_server.rb")
+ PORT = 20443
+ ITERATIONS = ($0 == __FILE__) ? 100 : 10
+
+ def setup
+ @ca_key = OpenSSL::TestUtils::TEST_KEY_RSA2048
+ @svr_key = OpenSSL::TestUtils::TEST_KEY_RSA1024
+ @cli_key = OpenSSL::TestUtils::TEST_KEY_DSA256
+ @ca = OpenSSL::X509::Name.parse("/DC=org/DC=ruby-lang/CN=CA")
+ @svr = OpenSSL::X509::Name.parse("/DC=org/DC=ruby-lang/CN=localhost")
+ @cli = OpenSSL::X509::Name.parse("/DC=org/DC=ruby-lang/CN=localhost")
+ now = Time.at(Time.now.to_i)
+ ca_exts = [
+ ["basicConstraints","CA:TRUE",true],
+ ["keyUsage","cRLSign,keyCertSign",true],
+ ]
+ ee_exts = [
+ ["keyUsage","keyEncipherment,digitalSignature",true],
+ ]
+ @ca_cert = issue_cert(@ca, @ca_key, 1, now, now+3600, ca_exts, nil, nil, OpenSSL::Digest::SHA1.new)
+ @svr_cert = issue_cert(@svr, @svr_key, 2, now, now+1800, ee_exts, @ca_cert, @ca_key, OpenSSL::Digest::SHA1.new)
+ @cli_cert = issue_cert(@cli, @cli_key, 3, now, now+1800, ee_exts, @ca_cert, @ca_key, OpenSSL::Digest::SHA1.new)
+ @server = nil
+ end
+
+ def teardown
+ end
+
+ def issue_cert(*arg)
+ OpenSSL::TestUtils.issue_cert(*arg)
+ end
+
+ def issue_crl(*arg)
+ OpenSSL::TestUtils.issue_crl(*arg)
+ end
+
+ def readwrite_loop(ctx, ssl)
+ while line = ssl.gets
+ if line =~ /^STARTTLS$/
+ ssl.accept
+ next
+ end
+ ssl.write(line)
+ end
+ rescue OpenSSL::SSL::SSLError
+ rescue IOError
+ ensure
+ ssl.close rescue nil
+ end
+
+ def server_loop(ctx, ssls, server_proc)
+ loop do
+ ssl = nil
+ begin
+ ssl = ssls.accept
+ rescue OpenSSL::SSL::SSLError
+ retry
+ end
+
+ Thread.start do
+ Thread.current.abort_on_exception = true
+ server_proc.call(ctx, ssl)
+ end
+ end
+ rescue Errno::EBADF, IOError, Errno::EINVAL, Errno::ECONNABORTED, Errno::ENOTSOCK
+ end
+
+ DHParam = OpenSSL::PKey::DH.new(128)
+ def start_server(port0, verify_mode, start_immediately, args = {}, &block)
+ ctx_proc = args[:ctx_proc]
+ server_proc = args[:server_proc]
+ server_proc ||= method(:readwrite_loop)
+
+ store = OpenSSL::X509::Store.new
+ store.add_cert(@ca_cert)
+ store.purpose = OpenSSL::X509::PURPOSE_SSL_CLIENT
+ ctx = OpenSSL::SSL::SSLContext.new
+ ctx.cert_store = store
+ #ctx.extra_chain_cert = [ ca_cert ]
+ ctx.cert = @svr_cert
+ ctx.key = @svr_key
+ ctx.tmp_dh_callback = proc { DHParam }
+ ctx.verify_mode = verify_mode
+ ctx_proc.call(ctx) if ctx_proc
+
+ Socket.do_not_reverse_lookup = true
+ tcps = nil
+ port = port0
+ begin
+ tcps = TCPServer.new("127.0.0.1", port)
+ rescue Errno::EADDRINUSE
+ port += 1
+ retry
+ end
+
+ ssls = OpenSSL::SSL::SSLServer.new(tcps, ctx)
+ ssls.start_immediately = start_immediately
+
+ begin
+ server = Thread.new do
+ Thread.current.abort_on_exception = true
+ server_loop(ctx, ssls, server_proc)
+ end
+
+ $stderr.printf("%s started: pid=%d port=%d\n", SSL_SERVER, $$, port) if $DEBUG
+
+ block.call(server, port.to_i)
+ ensure
+ begin
+ begin
+ tcps.shutdown
+ rescue Errno::ENOTCONN
+ # when `Errno::ENOTCONN: Socket is not connected' on some platforms,
+ # call #close instead of #shutdown.
+ tcps.close
+ tcps = nil
+ end if (tcps)
+ if (server)
+ server.join(5)
+ if server.alive?
+ server.kill
+ server.join
+ flunk("TCPServer was closed and SSLServer is still alive") unless $!
+ end
+ end
+ ensure
+ tcps.close if (tcps)
+ end
+ end
+ end
+
+ def starttls(ssl)
+ ssl.puts("STARTTLS")
+ sleep 1 # When this line is eliminated, process on Cygwin blocks
+ # forever at ssl.connect. But I don't know why it does.
+ ssl.connect
+ end
+ end
+
+end if defined?(OpenSSL)
diff --git a/test/optparse/test_bash_completion.rb b/test/optparse/test_bash_completion.rb
new file mode 100644
index 0000000000..baeb6d9882
--- /dev/null
+++ b/test/optparse/test_bash_completion.rb
@@ -0,0 +1,42 @@
+require 'test/unit'
+require 'optparse'
+
+class TestOptionParser < Test::Unit::TestCase
+end
+class TestOptionParser::BashCompletion < Test::Unit::TestCase
+ def setup
+ @opt = OptionParser.new
+ @opt.define("-z", "zzz") {}
+ @opt.define("--foo") {}
+ @opt.define("--bar=BAR") {}
+ @opt.define("--for=TYPE", [:hello, :help, :zot]) {}
+ end
+
+ def test_empty
+ assert_equal([], @opt.candidate(""))
+ end
+
+ def test_one_hyphen
+ assert_equal(%w[-z --foo --bar= --for=], @opt.candidate("-"))
+ end
+
+ def test_two_hyphen
+ assert_equal(%w[--foo --bar= --for=], @opt.candidate("--"))
+ end
+
+ def test_long_f
+ assert_equal(%w[--foo --for=], @opt.candidate("--f"))
+ end
+
+ def test_long_for_option
+ assert_equal(%w[--for=], @opt.candidate("--for"))
+ end
+
+ def test_long_for_option_args
+ assert_equal(%w[hello help zot], @opt.candidate("--for="))
+ end
+
+ def test_long_for_option_complete
+ assert_equal(%w[hello help], @opt.candidate("--for=h"))
+ end
+end
diff --git a/test/optparse/test_getopts.rb b/test/optparse/test_getopts.rb
index fdefe5f3e5..ae22f68184 100644
--- a/test/optparse/test_getopts.rb
+++ b/test/optparse/test_getopts.rb
@@ -1,6 +1,9 @@
require 'test/unit'
+require 'optparse'
-class TestOptionParserGetopts < Test::Unit::TestCase
+class TestOptionParser < Test::Unit::TestCase
+end
+class TestOptionParser::Getopts < Test::Unit::TestCase
def setup
@opt = OptionParser.new
end
diff --git a/test/optparse/test_noarg.rb b/test/optparse/test_noarg.rb
index 329956a61a..3e6ed42f91 100644
--- a/test/optparse/test_noarg.rb
+++ b/test/optparse/test_noarg.rb
@@ -1,4 +1,4 @@
-require 'test_optparse'
+require_relative 'test_optparse'
module TestOptionParser::NoArg
class Def1 < TestOptionParser
diff --git a/test/optparse/test_optarg.rb b/test/optparse/test_optarg.rb
index 49cb1b93ec..3114b80fc5 100644
--- a/test/optparse/test_optarg.rb
+++ b/test/optparse/test_optarg.rb
@@ -1,10 +1,12 @@
-require 'test_optparse'
+require_relative 'test_optparse'
class TestOptionParser::OptArg < TestOptionParser
def setup
super
@opt.def_option("-x[VAL]") {|x| @flag = x}
@opt.def_option("--option[=VAL]") {|x| @flag = x}
+ @opt.def_option("--regexp[=REGEXP]", Regexp) {|x| @reopt = x}
+ @reopt = nil
end
def test_short
diff --git a/test/optparse/test_optparse.rb b/test/optparse/test_optparse.rb
index 6aa8fac757..76b8f7b183 100644
--- a/test/optparse/test_optparse.rb
+++ b/test/optparse/test_optparse.rb
@@ -6,10 +6,17 @@ class TestOptionParser < Test::Unit::TestCase
@opt = OptionParser.new
@flag = self.class # cannot set by option
end
+
+ class DummyOutput < String
+ alias write <<
+ end
def no_error(*args)
+ $stderr, stderr = DummyOutput.new, $stderr
assert_nothing_raised(*args) {return yield}
ensure
+ stderr, $stderr = $stderr, stderr
$!.backtrace.delete_if {|e| /\A#{Regexp.quote(__FILE__)}:#{__LINE__-2}/o =~ e} if $!
+ assert_empty(stderr)
end
def test_permute
@@ -45,4 +52,14 @@ class TestOptionParser < Test::Unit::TestCase
assert_equal(%w"foo -- --help bar", no_error {@opt.order!(%w"foo -- --help bar")})
assert_equal(self.class, @flag)
end
+
+ def test_regexp
+ return unless defined?(@reopt)
+ assert_equal(%w"", no_error {@opt.parse!(%w"--regexp=/foo/")})
+ assert_equal(/foo/, @reopt)
+ assert_equal(%w"", no_error {@opt.parse!(%w"--regexp=/foo/i")})
+ assert_equal(/foo/i, @reopt)
+ assert_equal(%w"", no_error {@opt.parse!(%w"--regexp=/foo/n")})
+ assert_equal(/foo/n, @reopt)
+ end
end
diff --git a/test/optparse/test_placearg.rb b/test/optparse/test_placearg.rb
index ea5810cbc5..0bbd1a007e 100644
--- a/test/optparse/test_placearg.rb
+++ b/test/optparse/test_placearg.rb
@@ -1,4 +1,4 @@
-require 'test_optparse'
+require_relative 'test_optparse'
class TestOptionParser::PlaceArg < TestOptionParser
def setup
@@ -6,7 +6,10 @@ class TestOptionParser::PlaceArg < TestOptionParser
@opt.def_option("-x [VAL]") {|x| @flag = x}
@opt.def_option("--option [VAL]") {|x| @flag = x}
@opt.def_option("-T [level]", /^[0-4]$/, Integer) {|x| @topt = x}
+ @topt = nil
@opt.def_option("-n") {}
+ @opt.def_option("--regexp [REGEXP]", Regexp) {|x| @reopt = x}
+ @reopt = nil
end
def test_short
diff --git a/test/optparse/test_reqarg.rb b/test/optparse/test_reqarg.rb
index 579794695a..397da4a593 100644
--- a/test/optparse/test_reqarg.rb
+++ b/test/optparse/test_reqarg.rb
@@ -1,4 +1,4 @@
-require 'test_optparse'
+require_relative 'test_optparse'
module TestOptionParser::ReqArg
class Def1 < TestOptionParser
@@ -7,6 +7,8 @@ module TestOptionParser::ReqArg
super
@opt.def_option("-xVAL") {|x| @flag = x}
@opt.def_option("--option=VAL") {|x| @flag = x}
+ @opt.def_option("--regexp=REGEXP", Regexp) {|x| @reopt = x}
+ @reopt = nil
end
end
class Def2 < TestOptionParser
diff --git a/test/optparse/test_summary.rb b/test/optparse/test_summary.rb
index 12744a8a7b..0c67d7f0f9 100644
--- a/test/optparse/test_summary.rb
+++ b/test/optparse/test_summary.rb
@@ -1,8 +1,6 @@
-require 'test/unit'
-require 'optparse'
+require_relative 'test_optparse'
-class TestOptionParser < Test::Unit::TestCase; end
-class TestOptionParser::SummaryTest < Test::Unit::TestCase
+class TestOptionParser::SummaryTest < TestOptionParser
def test_short_clash
r = nil
o = OptionParser.new do |opts|
diff --git a/test/optparse/test_zsh_completion.rb b/test/optparse/test_zsh_completion.rb
new file mode 100644
index 0000000000..7e5ba71384
--- /dev/null
+++ b/test/optparse/test_zsh_completion.rb
@@ -0,0 +1,22 @@
+require 'test/unit'
+require 'optparse'
+
+class TestOptionParser < Test::Unit::TestCase
+end
+class TestOptionParser::BashCompletion < Test::Unit::TestCase
+ def setup
+ @opt = OptionParser.new
+ @opt.define("-z", "zzz") {}
+ @opt.define("--foo") {}
+ @opt.define("--bar=BAR") {}
+ @opt.define("--for=TYPE", [:hello, :help, :zot]) {}
+ end
+
+ def test_compsys
+ compsys = @opt.compsys("", "zshcompsys")
+ assert_match(/\"-z\[zzz\]\"/, compsys)
+ assert_match(/\"--foo\[\]\"/, compsys)
+ assert_match(/\"--bar\[\]\"/, compsys)
+ assert_match(/\"--for\[\]\"/, compsys)
+ end
+end
diff --git a/test/ostruct/test_ostruct.rb b/test/ostruct/test_ostruct.rb
index d92092339a..dca2382b2b 100644
--- a/test/ostruct/test_ostruct.rb
+++ b/test/ostruct/test_ostruct.rb
@@ -48,4 +48,29 @@ class TC_OpenStruct < Test::Unit::TestCase
o.freeze
assert_raise(TypeError, '[ruby-core:22559]') {o.a = 1764}
end
+
+ def test_delete_field
+ bug = '[ruby-core:33010]'
+ o = OpenStruct.new
+ assert_not_respond_to(o, :a)
+ assert_not_respond_to(o, :a=)
+ o.a = 'a'
+ assert_respond_to(o, :a)
+ assert_respond_to(o, :a=)
+ a = o.delete_field :a
+ assert_not_respond_to(o, :a, bug)
+ assert_not_respond_to(o, :a=, bug)
+ assert_equal(a, 'a')
+ end
+
+ def test_method_missing_handles_square_bracket_equals
+ o = OpenStruct.new
+ assert_raise(NoMethodError) { o[:foo] = :bar }
+ end
+
+ def test_method_missing_handles_square_brackets
+ o = OpenStruct.new
+ assert_raise(NoMethodError) { o[:foo] }
+ end
+
end
diff --git a/test/pathname/test_pathname.rb b/test/pathname/test_pathname.rb
index a9f7149633..8a8c0d9844 100644
--- a/test/pathname/test_pathname.rb
+++ b/test/pathname/test_pathname.rb
@@ -7,17 +7,35 @@ require 'fileutils'
require 'tmpdir'
require 'enumerator'
+require_relative '../ruby/envutil'
+
class TestPathname < Test::Unit::TestCase
- def self.define_assertion(name, &block)
- @defassert_num ||= {}
- @defassert_num[name] ||= 0
- @defassert_num[name] += 1
- define_method("test_#{name}_#{@defassert_num[name]}", &block)
+ def self.define_assertion(name, linenum, &block)
+ name = "test_#{name}_#{linenum}"
+ define_method(name, &block)
+ end
+
+ def self.get_linenum
+ if /:(\d+):/ =~ caller[1]
+ $1.to_i
+ else
+ nil
+ end
end
def self.defassert(name, result, *args)
- define_assertion(name) {
- assert_equal(result, self.send(name, *args), "#{name}(#{args.map {|a| a.inspect }.join(', ')})")
+ define_assertion(name, get_linenum) {
+ mesg = "#{name}(#{args.map {|a| a.inspect }.join(', ')})"
+ assert_nothing_raised(mesg) {
+ assert_equal(result, self.send(name, *args), mesg)
+ }
+ }
+ end
+
+ def self.defassert_raise(name, exc, *args)
+ define_assertion(name, get_linenum) {
+ message = "#{name}(#{args.map {|a| a.inspect }.join(', ')})"
+ assert_raise(exc, message) { self.send(name, *args) }
}
end
@@ -173,6 +191,10 @@ class TestPathname < Test::Unit::TestCase
end
end
+ def test_plus
+ assert_kind_of(Pathname, Pathname("a") + Pathname("b"))
+ end
+
def plus(path1, path2) # -> path
(Pathname.new(path1) + Pathname.new(path2)).to_s
end
@@ -195,6 +217,34 @@ class TestPathname < Test::Unit::TestCase
defassert(:plus, 'a//b/d//e', 'a//b/c', '../d//e')
+ def test_parent
+ assert_equal(Pathname("."), Pathname("a").parent)
+ end
+
+ def parent(path) # -> path
+ Pathname.new(path).parent.to_s
+ end
+
+ defassert(:parent, '/', '/')
+ defassert(:parent, '/', '/a')
+ defassert(:parent, '/a', '/a/b')
+ defassert(:parent, '/a/b', '/a/b/c')
+ defassert(:parent, '.', 'a')
+ defassert(:parent, 'a', 'a/b')
+ defassert(:parent, 'a/b', 'a/b/c')
+ defassert(:parent, '..', '.')
+ defassert(:parent, '../..', '..')
+
+ def test_join
+ r = Pathname("a").join(Pathname("b"), Pathname("c"))
+ assert_equal(Pathname("a/b/c"), r)
+ end
+
+ def test_absolute
+ assert_equal(true, Pathname("/").absolute?)
+ assert_equal(false, Pathname("a").absolute?)
+ end
+
def relative?(path)
Pathname.new(path).relative?
end
@@ -257,13 +307,6 @@ class TestPathname < Test::Unit::TestCase
defassert(:relative_path_from, "a", "a", "b/..")
defassert(:relative_path_from, "b/c", "b/c", "b/..")
- def self.defassert_raise(name, exc, *args)
- define_assertion(name) {
- message = "#{name}(#{args.map {|a| a.inspect }.join(', ')})"
- assert_raise(exc, message) { self.send(name, *args) }
- }
- end
-
defassert_raise(:relative_path_from, ArgumentError, "/", ".")
defassert_raise(:relative_path_from, ArgumentError, ".", "/")
defassert_raise(:relative_path_from, ArgumentError, "a", "..")
@@ -288,8 +331,8 @@ class TestPathname < Test::Unit::TestCase
return true
end
- def realpath(path)
- Pathname.new(path).realpath.to_s
+ def realpath(path, basedir=nil)
+ Pathname.new(path).realpath(basedir).to_s
end
def test_realpath
@@ -301,6 +344,7 @@ class TestPathname < Test::Unit::TestCase
File.symlink("loop", "#{dir}/loop")
assert_raise(Errno::ELOOP) { realpath("#{dir}/loop") }
+ assert_raise(Errno::ELOOP) { realpath("#{dir}/loop", dir) }
File.symlink("../#{File.basename(dir)}/./not-exist-target", "#{dir}/not-exist2")
assert_raise(Errno::ENOENT) { realpath("#{dir}/not-exist2") }
@@ -314,6 +358,7 @@ class TestPathname < Test::Unit::TestCase
Dir.mkdir("exist")
assert_equal("#{dir}/exist", realpath("exist"))
+ assert_raise(Errno::ELOOP) { realpath("../loop", "#{dir}/exist") }
File.symlink("loop1/loop1", "loop1")
assert_raise(Errno::ELOOP) { realpath("#{dir}/loop1") }
@@ -470,6 +515,7 @@ class TestPathname < Test::Unit::TestCase
defassert(:pathsubext, 'lex.yy.o', 'lex.yy.c', '.o')
defassert(:pathsubext, 'fooaa.o', 'fooaa', '.o')
defassert(:pathsubext, 'd.e/aa.o', 'd.e/aa', '.o')
+ defassert(:pathsubext, 'long_enough.bug-3664', 'long_enough.not_to_be_embeded[ruby-core:31640]', '.bug-3664')
def test_sub_matchdata
result = Pathname("abc.gif").sub(/\..*/) {
@@ -490,6 +536,11 @@ class TestPathname < Test::Unit::TestCase
defassert(:root?, false, "")
defassert(:root?, false, "a")
+ def test_mountpoint?
+ r = Pathname("/").mountpoint?
+ assert_include([true, false], r)
+ end
+
def test_destructive_update
path = Pathname.new("a")
path.to_s.replace "b"
@@ -546,6 +597,20 @@ class TestPathname < Test::Unit::TestCase
assert_equal(false, Pathname.new("a".freeze).freeze.to_s.frozen?)
end
+ def test_freeze_and_taint
+ obj = Pathname.new("a")
+ obj.freeze
+ assert_equal(false, obj.tainted?)
+ assert_raise(RuntimeError) { obj.taint }
+
+ obj = Pathname.new("a")
+ obj.taint
+ assert_equal(true, obj.tainted?)
+ obj.freeze
+ assert_equal(true, obj.tainted?)
+ assert_nothing_raised { obj.taint }
+ end
+
def test_to_s
str = "a"
obj = Pathname.new(str)
@@ -576,6 +641,634 @@ class TestPathname < Test::Unit::TestCase
assert_equal(Pathname.new("a"), Pathname("a"))
end
+ def test_children
+ with_tmpchdir('rubytest-pathname') {|dir|
+ open("a", "w") {}
+ open("b", "w") {}
+ Dir.mkdir("d")
+ open("d/x", "w") {}
+ open("d/y", "w") {}
+ assert_equal([Pathname("a"), Pathname("b"), Pathname("d")], Pathname(".").children.sort)
+ assert_equal([Pathname("d/x"), Pathname("d/y")], Pathname("d").children.sort)
+ assert_equal([Pathname("x"), Pathname("y")], Pathname("d").children(false).sort)
+ }
+ end
+
+ def test_each_child
+ with_tmpchdir('rubytest-pathname') {|dir|
+ open("a", "w") {}
+ open("b", "w") {}
+ Dir.mkdir("d")
+ open("d/x", "w") {}
+ open("d/y", "w") {}
+ a = []; Pathname(".").each_child {|v| a << v }; a.sort!
+ assert_equal([Pathname("a"), Pathname("b"), Pathname("d")], a)
+ a = []; Pathname("d").each_child {|v| a << v }; a.sort!
+ assert_equal([Pathname("d/x"), Pathname("d/y")], a)
+ a = []; Pathname("d").each_child(false) {|v| a << v }; a.sort!
+ assert_equal([Pathname("x"), Pathname("y")], a)
+ }
+ end
+
+ def test_each_line
+ with_tmpchdir('rubytest-pathname') {|dir|
+ open("a", "w") {|f| f.puts 1, 2 }
+ a = []
+ Pathname("a").each_line {|line| a << line }
+ assert_equal(["1\n", "2\n"], a)
+
+ a = []
+ Pathname("a").each_line("2") {|line| a << line }
+ assert_equal(["1\n2", "\n"], a)
+
+ a = []
+ Pathname("a").each_line(1) {|line| a << line }
+ assert_equal(["1", "\n", "2", "\n"], a)
+
+ a = []
+ Pathname("a").each_line("2", 1) {|line| a << line }
+ assert_equal(["1", "\n", "2", "\n"], a)
+
+ a = []
+ enum = Pathname("a").each_line
+ enum.each {|line| a << line }
+ assert_equal(["1\n", "2\n"], a)
+ }
+ end
+
+ def test_readlines
+ with_tmpchdir('rubytest-pathname') {|dir|
+ open("a", "w") {|f| f.puts 1, 2 }
+ a = Pathname("a").readlines
+ assert_equal(["1\n", "2\n"], a)
+ }
+ end
+
+ def test_read
+ with_tmpchdir('rubytest-pathname') {|dir|
+ open("a", "w") {|f| f.puts 1, 2 }
+ assert_equal("1\n2\n", Pathname("a").read)
+ }
+ end
+
+ def test_binread
+ with_tmpchdir('rubytest-pathname') {|dir|
+ open("a", "w") {|f| f.write "abc" }
+ assert_equal("abc", Pathname("a").binread)
+ }
+ end
+
+ def test_sysopen
+ with_tmpchdir('rubytest-pathname') {|dir|
+ open("a", "w") {|f| f.write "abc" }
+ fd = Pathname("a").sysopen
+ io = IO.new(fd)
+ begin
+ assert_equal("abc", io.read)
+ ensure
+ io.close
+ end
+ }
+ end
+
+ def test_atime
+ assert_kind_of(Time, Pathname(__FILE__).atime)
+ end
+
+ def test_ctime
+ assert_kind_of(Time, Pathname(__FILE__).ctime)
+ end
+
+ def test_mtime
+ assert_kind_of(Time, Pathname(__FILE__).mtime)
+ end
+
+ def test_chmod
+ with_tmpchdir('rubytest-pathname') {|dir|
+ open("a", "w") {|f| f.write "abc" }
+ path = Pathname("a")
+ old = path.stat.mode
+ path.chmod(0444)
+ assert_equal(0444, path.stat.mode & 0777)
+ path.chmod(old)
+ }
+ end
+
+ def test_lchmod
+ return if !has_symlink?
+ with_tmpchdir('rubytest-pathname') {|dir|
+ open("a", "w") {|f| f.write "abc" }
+ File.symlink("a", "l")
+ path = Pathname("l")
+ old = path.lstat.mode
+ begin
+ path.lchmod(0444)
+ rescue NotImplementedError
+ next
+ end
+ assert_equal(0444, path.lstat.mode & 0777)
+ path.chmod(old)
+ }
+ end
+
+ def test_chown
+ with_tmpchdir('rubytest-pathname') {|dir|
+ open("a", "w") {|f| f.write "abc" }
+ path = Pathname("a")
+ old_uid = path.stat.uid
+ old_gid = path.stat.gid
+ begin
+ path.chown(0, 0)
+ rescue Errno::EPERM
+ next
+ end
+ assert_equal(0, path.stat.uid)
+ assert_equal(0, path.stat.gid)
+ path.chown(old_uid, old_gid)
+ }
+ end
+
+ def test_lchown
+ return if !has_symlink?
+ with_tmpchdir('rubytest-pathname') {|dir|
+ open("a", "w") {|f| f.write "abc" }
+ File.symlink("a", "l")
+ path = Pathname("l")
+ old_uid = path.stat.uid
+ old_gid = path.stat.gid
+ begin
+ path.lchown(0, 0)
+ rescue Errno::EPERM
+ next
+ end
+ assert_equal(0, path.stat.uid)
+ assert_equal(0, path.stat.gid)
+ path.lchown(old_uid, old_gid)
+ }
+ end
+
+ def test_fnmatch
+ path = Pathname("a")
+ assert_equal(true, path.fnmatch("*"))
+ assert_equal(false, path.fnmatch("*.*"))
+ assert_equal(false, Pathname(".foo").fnmatch("*"))
+ assert_equal(true, Pathname(".foo").fnmatch("*", File::FNM_DOTMATCH))
+ end
+
+ def test_fnmatch?
+ path = Pathname("a")
+ assert_equal(true, path.fnmatch?("*"))
+ assert_equal(false, path.fnmatch?("*.*"))
+ end
+
+ def test_ftype
+ with_tmpchdir('rubytest-pathname') {|dir|
+ open("f", "w") {|f| f.write "abc" }
+ assert_equal("file", Pathname("f").ftype)
+ Dir.mkdir("d")
+ assert_equal("directory", Pathname("d").ftype)
+ }
+ end
+
+ def test_make_link
+ with_tmpchdir('rubytest-pathname') {|dir|
+ open("a", "w") {|f| f.write "abc" }
+ Pathname("l").make_link(Pathname("a"))
+ assert_equal("abc", Pathname("l").read)
+ }
+ end
+
+ def test_open
+ with_tmpchdir('rubytest-pathname') {|dir|
+ open("a", "w") {|f| f.write "abc" }
+ path = Pathname("a")
+
+ path.open {|f|
+ assert_equal("abc", f.read)
+ }
+
+ path.open("r") {|f|
+ assert_equal("abc", f.read)
+ }
+
+ Pathname("b").open("w", 0444) {|f| f.write "def" }
+ assert_equal(0444, File.stat("b").mode & 0777)
+ assert_equal("def", File.read("b"))
+
+ Pathname("c").open("w", 0444, {}) {|f| f.write "ghi" }
+ assert_equal(0444, File.stat("c").mode & 0777)
+ assert_equal("ghi", File.read("c"))
+
+ g = path.open
+ assert_equal("abc", g.read)
+ g.close
+ }
+ end
+
+ def test_readlink
+ return if !has_symlink?
+ with_tmpchdir('rubytest-pathname') {|dir|
+ open("a", "w") {|f| f.write "abc" }
+ File.symlink("a", "l")
+ assert_equal(Pathname("a"), Pathname("l").readlink)
+ }
+ end
+
+ def test_rename
+ with_tmpchdir('rubytest-pathname') {|dir|
+ open("a", "w") {|f| f.write "abc" }
+ Pathname("a").rename(Pathname("b"))
+ assert_equal("abc", File.read("b"))
+ }
+ end
+
+ def test_stat
+ with_tmpchdir('rubytest-pathname') {|dir|
+ open("a", "w") {|f| f.write "abc" }
+ s = Pathname("a").stat
+ assert_equal(3, s.size)
+ }
+ end
+
+ def test_lstat
+ return if !has_symlink?
+ with_tmpchdir('rubytest-pathname') {|dir|
+ open("a", "w") {|f| f.write "abc" }
+ File.symlink("a", "l")
+ s = Pathname("l").lstat
+ assert_equal(true, s.symlink?)
+ s = Pathname("l").stat
+ assert_equal(false, s.symlink?)
+ assert_equal(3, s.size)
+ s = Pathname("a").lstat
+ assert_equal(false, s.symlink?)
+ assert_equal(3, s.size)
+ }
+ end
+
+ def test_make_symlink
+ return if !has_symlink?
+ with_tmpchdir('rubytest-pathname') {|dir|
+ open("a", "w") {|f| f.write "abc" }
+ Pathname("l").make_symlink(Pathname("a"))
+ s = Pathname("l").lstat
+ assert_equal(true, s.symlink?)
+ }
+ end
+
+ def test_truncate
+ with_tmpchdir('rubytest-pathname') {|dir|
+ open("a", "w") {|f| f.write "abc" }
+ Pathname("a").truncate(2)
+ assert_equal("ab", File.read("a"))
+ }
+ end
+
+ def test_utime
+ with_tmpchdir('rubytest-pathname') {|dir|
+ open("a", "w") {|f| f.write "abc" }
+ atime = Time.utc(2000)
+ mtime = Time.utc(1999)
+ Pathname("a").utime(atime, mtime)
+ s = File.stat("a")
+ assert_equal(atime, s.atime)
+ assert_equal(mtime, s.mtime)
+ }
+ end
+
+ def test_basename
+ assert_equal(Pathname("basename"), Pathname("dirname/basename").basename)
+ assert_equal(Pathname("bar"), Pathname("foo/bar.x").basename(".x"))
+ end
+
+ def test_dirname
+ assert_equal(Pathname("dirname"), Pathname("dirname/basename").dirname)
+ end
+
+ def test_extname
+ assert_equal(".ext", Pathname("basename.ext").extname)
+ end
+
+ def test_expand_path
+ drv = DOSISH_DRIVE_LETTER ? Dir.pwd.sub(%r(/.*), '') : ""
+ assert_equal(Pathname(drv + "/a"), Pathname("/a").expand_path)
+ assert_equal(Pathname(drv + "/a"), Pathname("a").expand_path("/"))
+ assert_equal(Pathname(drv + "/a"), Pathname("a").expand_path(Pathname("/")))
+ assert_equal(Pathname(drv + "/b"), Pathname("/b").expand_path(Pathname("/a")))
+ assert_equal(Pathname(drv + "/a/b"), Pathname("b").expand_path(Pathname("/a")))
+ end
+
+ def test_split
+ assert_equal([Pathname("dirname"), Pathname("basename")], Pathname("dirname/basename").split)
+ end
+
+ def test_blockdev?
+ with_tmpchdir('rubytest-pathname') {|dir|
+ open("f", "w") {|f| f.write "abc" }
+ assert_equal(false, Pathname("f").blockdev?)
+ }
+ end
+
+ def test_chardev?
+ with_tmpchdir('rubytest-pathname') {|dir|
+ open("f", "w") {|f| f.write "abc" }
+ assert_equal(false, Pathname("f").chardev?)
+ }
+ end
+
+ def test_executable?
+ with_tmpchdir('rubytest-pathname') {|dir|
+ open("f", "w") {|f| f.write "abc" }
+ assert_equal(false, Pathname("f").executable?)
+ }
+ end
+
+ def test_executable_real?
+ with_tmpchdir('rubytest-pathname') {|dir|
+ open("f", "w") {|f| f.write "abc" }
+ assert_equal(false, Pathname("f").executable_real?)
+ }
+ end
+
+ def test_exist?
+ with_tmpchdir('rubytest-pathname') {|dir|
+ open("f", "w") {|f| f.write "abc" }
+ assert_equal(true, Pathname("f").exist?)
+ }
+ end
+
+ def test_grpowned?
+ skip "Unix file owner test" if DOSISH
+ with_tmpchdir('rubytest-pathname') {|dir|
+ open("f", "w") {|f| f.write "abc" }
+ File.chown(-1, Process.gid, "f")
+ assert_equal(true, Pathname("f").grpowned?)
+ }
+ end
+
+ def test_directory?
+ with_tmpchdir('rubytest-pathname') {|dir|
+ open("f", "w") {|f| f.write "abc" }
+ assert_equal(false, Pathname("f").directory?)
+ Dir.mkdir("d")
+ assert_equal(true, Pathname("d").directory?)
+ }
+ end
+
+ def test_file?
+ with_tmpchdir('rubytest-pathname') {|dir|
+ open("f", "w") {|f| f.write "abc" }
+ assert_equal(true, Pathname("f").file?)
+ Dir.mkdir("d")
+ assert_equal(false, Pathname("d").file?)
+ }
+ end
+
+ def test_pipe?
+ with_tmpchdir('rubytest-pathname') {|dir|
+ open("f", "w") {|f| f.write "abc" }
+ assert_equal(false, Pathname("f").pipe?)
+ }
+ end
+
+ def test_socket?
+ with_tmpchdir('rubytest-pathname') {|dir|
+ open("f", "w") {|f| f.write "abc" }
+ assert_equal(false, Pathname("f").socket?)
+ }
+ end
+
+ def test_owned?
+ with_tmpchdir('rubytest-pathname') {|dir|
+ open("f", "w") {|f| f.write "abc" }
+ assert_equal(true, Pathname("f").owned?)
+ }
+ end
+
+ def test_readable?
+ with_tmpchdir('rubytest-pathname') {|dir|
+ open("f", "w") {|f| f.write "abc" }
+ assert_equal(true, Pathname("f").readable?)
+ }
+ end
+
+ def test_world_readable?
+ skip "Unix file mode bit test" if DOSISH
+ with_tmpchdir('rubytest-pathname') {|dir|
+ open("f", "w") {|f| f.write "abc" }
+ File.chmod(0400, "f")
+ assert_equal(nil, Pathname("f").world_readable?)
+ File.chmod(0444, "f")
+ assert_equal(0444, Pathname("f").world_readable?)
+ }
+ end
+
+ def test_readable_real?
+ with_tmpchdir('rubytest-pathname') {|dir|
+ open("f", "w") {|f| f.write "abc" }
+ assert_equal(true, Pathname("f").readable_real?)
+ }
+ end
+
+ def test_setuid?
+ with_tmpchdir('rubytest-pathname') {|dir|
+ open("f", "w") {|f| f.write "abc" }
+ assert_equal(false, Pathname("f").setuid?)
+ }
+ end
+
+ def test_setgid?
+ with_tmpchdir('rubytest-pathname') {|dir|
+ open("f", "w") {|f| f.write "abc" }
+ assert_equal(false, Pathname("f").setgid?)
+ }
+ end
+
+ def test_size
+ with_tmpchdir('rubytest-pathname') {|dir|
+ open("f", "w") {|f| f.write "abc" }
+ assert_equal(3, Pathname("f").size)
+ open("z", "w") {|f| }
+ assert_equal(0, Pathname("z").size)
+ assert_raise(Errno::ENOENT) { Pathname("not-exist").size }
+ }
+ end
+
+ def test_size?
+ with_tmpchdir('rubytest-pathname') {|dir|
+ open("f", "w") {|f| f.write "abc" }
+ assert_equal(3, Pathname("f").size?)
+ open("z", "w") {|f| }
+ assert_equal(nil, Pathname("z").size?)
+ assert_equal(nil, Pathname("not-exist").size?)
+ }
+ end
+
+ def test_sticky?
+ skip "Unix file mode bit test" if DOSISH
+ with_tmpchdir('rubytest-pathname') {|dir|
+ open("f", "w") {|f| f.write "abc" }
+ assert_equal(false, Pathname("f").sticky?)
+ }
+ end
+
+ def test_symlink?
+ with_tmpchdir('rubytest-pathname') {|dir|
+ open("f", "w") {|f| f.write "abc" }
+ assert_equal(false, Pathname("f").symlink?)
+ }
+ end
+
+ def test_writable?
+ with_tmpchdir('rubytest-pathname') {|dir|
+ open("f", "w") {|f| f.write "abc" }
+ assert_equal(true, Pathname("f").writable?)
+ }
+ end
+
+ def test_world_writable?
+ skip "Unix file mode bit test" if DOSISH
+ with_tmpchdir('rubytest-pathname') {|dir|
+ open("f", "w") {|f| f.write "abc" }
+ File.chmod(0600, "f")
+ assert_equal(nil, Pathname("f").world_writable?)
+ File.chmod(0666, "f")
+ assert_equal(0666, Pathname("f").world_writable?)
+ }
+ end
+
+ def test_writable_real?
+ with_tmpchdir('rubytest-pathname') {|dir|
+ open("f", "w") {|f| f.write "abc" }
+ assert_equal(true, Pathname("f").writable?)
+ }
+ end
+
+ def test_zero?
+ with_tmpchdir('rubytest-pathname') {|dir|
+ open("f", "w") {|f| f.write "abc" }
+ assert_equal(false, Pathname("f").zero?)
+ open("z", "w") {|f| }
+ assert_equal(true, Pathname("z").zero?)
+ assert_equal(false, Pathname("not-exist").zero?)
+ }
+ end
+
+ def test_s_glob
+ with_tmpchdir('rubytest-pathname') {|dir|
+ open("f", "w") {|f| f.write "abc" }
+ Dir.mkdir("d")
+ assert_equal([Pathname("d"), Pathname("f")], Pathname.glob("*").sort)
+ a = []
+ Pathname.glob("*") {|path| a << path }
+ a.sort!
+ assert_equal([Pathname("d"), Pathname("f")], a)
+ }
+ end
+
+ def test_s_getwd
+ wd = Pathname.getwd
+ assert_kind_of(Pathname, wd)
+ end
+
+ def test_s_pwd
+ wd = Pathname.pwd
+ assert_kind_of(Pathname, wd)
+ end
+
+ def test_entries
+ with_tmpchdir('rubytest-pathname') {|dir|
+ open("a", "w") {}
+ open("b", "w") {}
+ assert_equal([Pathname("."), Pathname(".."), Pathname("a"), Pathname("b")], Pathname(".").entries.sort)
+ }
+ end
+
+ def test_each_entry
+ with_tmpchdir('rubytest-pathname') {|dir|
+ open("a", "w") {}
+ open("b", "w") {}
+ a = []
+ Pathname(".").each_entry {|v| a << v }
+ assert_equal([Pathname("."), Pathname(".."), Pathname("a"), Pathname("b")], a.sort)
+ }
+ end
+
+ def test_mkdir
+ with_tmpchdir('rubytest-pathname') {|dir|
+ Pathname("d").mkdir
+ assert(File.directory?("d"))
+ Pathname("e").mkdir(0770)
+ assert(File.directory?("e"))
+ }
+ end
+
+ def test_rmdir
+ with_tmpchdir('rubytest-pathname') {|dir|
+ Pathname("d").mkdir
+ assert(File.directory?("d"))
+ Pathname("d").rmdir
+ assert(!File.exists?("d"))
+ }
+ end
+
+ def test_opendir
+ with_tmpchdir('rubytest-pathname') {|dir|
+ open("a", "w") {}
+ open("b", "w") {}
+ a = []
+ Pathname(".").opendir {|d|
+ d.each {|e| a << e }
+ }
+ assert_equal([".", "..", "a", "b"], a.sort)
+ }
+ end
+
+ def test_find
+ with_tmpchdir('rubytest-pathname') {|dir|
+ open("a", "w") {}
+ open("b", "w") {}
+ Dir.mkdir("d")
+ open("d/x", "w") {}
+ open("d/y", "w") {}
+ a = []; Pathname(".").find {|v| a << v }; a.sort!
+ assert_equal([Pathname("."), Pathname("a"), Pathname("b"), Pathname("d"), Pathname("d/x"), Pathname("d/y")], a)
+ a = []; Pathname("d").find {|v| a << v }; a.sort!
+ assert_equal([Pathname("d"), Pathname("d/x"), Pathname("d/y")], a)
+ }
+ end
+
+ def test_mkpath
+ with_tmpchdir('rubytest-pathname') {|dir|
+ Pathname("a/b/c/d").mkpath
+ assert(File.directory?("a/b/c/d"))
+ }
+ end
+
+ def test_rmtree
+ with_tmpchdir('rubytest-pathname') {|dir|
+ Pathname("a/b/c/d").mkpath
+ assert(File.exist?("a/b/c/d"))
+ Pathname("a").rmtree
+ assert(!File.exist?("a"))
+ }
+ end
+
+ def test_unlink
+ with_tmpchdir('rubytest-pathname') {|dir|
+ open("f", "w") {|f| f.write "abc" }
+ Pathname("f").unlink
+ assert(!File.exist?("f"))
+ Dir.mkdir("d")
+ Pathname("d").unlink
+ assert(!File.exist?("d"))
+ }
+ end
+
+ def test_matchop
+ assert_raise(NoMethodError) { Pathname("a") =~ /a/ }
+ end
+
def test_file_basename
assert_equal("bar", File.basename(Pathname.new("foo/bar")))
end
diff --git a/test/profile_test_all.rb b/test/profile_test_all.rb
new file mode 100644
index 0000000000..54e916b73b
--- /dev/null
+++ b/test/profile_test_all.rb
@@ -0,0 +1,52 @@
+require 'objspace'
+
+#
+# purpose:
+# Profile memory usage of each tests.
+#
+# usage:
+# RUBY_TEST_ALL_PROFILE=true make test-all
+#
+# output:
+# ./test_all_profile
+#
+# collected information:
+# - ObjectSpace.memsize_of_all
+# - GC.stat
+# - /proc/self/statm (if it exists)
+#
+
+class MiniTest::Unit::TestCase
+ alias orig_run run
+
+ $test_all_profile_out = open('test_all_profile', 'w')
+ $test_all_profile_gc_stat_hash = {}
+
+ if FileTest.exist?('/proc/self/statm')
+ # for Linux (only?)
+ $test_all_profile_out.puts "name\tmemsize_of_all\t" +
+ (GC.stat.keys +
+ %w(size resident share text lib data dt)).join("\t")
+
+ def memprofile_test_all_result_result
+ "#{self.class}\##{self.__name__}\t" \
+ "#{ObjectSpace.memsize_of_all}\t" \
+ "#{GC.stat($test_all_profile_gc_stat_hash).values.join("\t")}\t" \
+ "#{File.read('/proc/self/statm').split(/\s+/).join("\t")}"
+ end
+ else
+ $test_all_profile_out.puts "name\tmemsize_of_alls\t" + GC.stat.keys.join("\t")
+ def memprofile_test_all_result_result
+ "#{self.class}\##{self.__name__}\t" \
+ "#{ObjectSpace.memsize_of_all}\t" \
+ "#{GC.stat($test_all_profile_gc_stat_hash).values.join("\t")}"
+ end
+ end
+
+ def run runner
+ result = orig_run(runner)
+ $test_all_profile_out.puts memprofile_test_all_result_result
+ $test_all_profile_out.flush
+ result
+ end
+end
diff --git a/test/psych/helper.rb b/test/psych/helper.rb
new file mode 100644
index 0000000000..8108e993c1
--- /dev/null
+++ b/test/psych/helper.rb
@@ -0,0 +1,63 @@
+require 'minitest/autorun'
+require 'stringio'
+require 'tempfile'
+require 'date'
+
+module Psych
+ class TestCase < MiniTest::Unit::TestCase
+ #
+ # Convert between Psych and the object to verify correct parsing and
+ # emitting
+ #
+ def assert_to_yaml( obj, yaml )
+ assert_equal( obj, Psych::load( yaml ) )
+ assert_equal( obj, Psych::parse( yaml ).transform )
+ assert_equal( obj, Psych::load( obj.psych_to_yaml ) )
+ assert_equal( obj, Psych::parse( obj.psych_to_yaml ).transform )
+ assert_equal( obj, Psych::load(
+ obj.psych_to_yaml(
+ :UseVersion => true, :UseHeader => true, :SortKeys => true
+ )
+ ))
+ end
+
+ #
+ # Test parser only
+ #
+ def assert_parse_only( obj, yaml )
+ assert_equal( obj, Psych::load( yaml ) )
+ assert_equal( obj, Psych::parse( yaml ).transform )
+ end
+
+ def assert_cycle( obj )
+ v = Visitors::YAMLTree.new
+ v << obj
+ assert_equal(obj, Psych.load(v.tree.yaml))
+ assert_equal( obj, Psych::load(Psych.dump(obj)))
+ assert_equal( obj, Psych::load( obj.psych_to_yaml ) )
+ end
+
+ #
+ # Make a time with the time zone
+ #
+ def mktime( year, mon, day, hour, min, sec, usec, zone = "Z" )
+ usec = Rational(usec.to_s) * 1000000
+ val = Time::utc( year.to_i, mon.to_i, day.to_i, hour.to_i, min.to_i, sec.to_i, usec )
+ if zone != "Z"
+ hour = zone[0,3].to_i * 3600
+ min = zone[3,2].to_i * 60
+ ofs = (hour + min)
+ val = Time.at( val.tv_sec - ofs, val.tv_nsec / 1000.0 )
+ end
+ return val
+ end
+ end
+end
+
+require 'psych'
+
+# FIXME: remove this when syck is removed
+o = Object.new
+a = o.method(:psych_to_yaml)
+b = o.method(:to_yaml)
+raise "psych should define to_yaml" unless a == b
diff --git a/test/psych/json/test_stream.rb b/test/psych/json/test_stream.rb
new file mode 100644
index 0000000000..4690ad2f1e
--- /dev/null
+++ b/test/psych/json/test_stream.rb
@@ -0,0 +1,109 @@
+require 'psych/helper'
+
+module Psych
+ module JSON
+ class TestStream < TestCase
+ def setup
+ @io = StringIO.new
+ @stream = Psych::JSON::Stream.new(@io)
+ @stream.start
+ end
+
+ def test_explicit_documents
+ @io = StringIO.new
+ @stream = Psych::JSON::Stream.new(@io)
+ @stream.start
+
+ @stream.push({ 'foo' => 'bar' })
+
+ assert !@stream.finished?, 'stream not finished'
+ @stream.finish
+ assert @stream.finished?, 'stream finished'
+
+ assert_match(/^---/, @io.string)
+ assert_match(/\.\.\.$/, @io.string)
+ end
+
+ def test_null
+ @stream.push(nil)
+ assert_match(/^--- null/, @io.string)
+ end
+
+ def test_string
+ @stream.push "foo"
+ assert_match(/(["])foo\1/, @io.string)
+ end
+
+ def test_symbol
+ @stream.push :foo
+ assert_match(/(["])foo\1/, @io.string)
+ end
+
+ def test_int
+ @stream.push 10
+ assert_match(/^--- 10/, @io.string)
+ end
+
+ def test_float
+ @stream.push 1.2
+ assert_match(/^--- 1.2/, @io.string)
+ end
+
+ def test_hash
+ hash = { 'one' => 'two' }
+ @stream.push hash
+
+ json = @io.string
+ assert_match(/}$/, json)
+ assert_match(/^--- \{/, json)
+ assert_match(/["]one['"]/, json)
+ assert_match(/["]two['"]/, json)
+ end
+
+ def test_list_to_json
+ list = %w{ one two }
+ @stream.push list
+
+ json = @io.string
+ assert_match(/]$/, json)
+ assert_match(/^--- \[/, json)
+ assert_match(/["]one["]/, json)
+ assert_match(/["]two["]/, json)
+ end
+
+ class Foo; end
+
+ def test_json_dump_exclude_tag
+ @stream << Foo.new
+ json = @io.string
+ refute_match('Foo', json)
+ end
+
+ class Bar
+ def encode_with coder
+ coder.represent_seq 'omg', %w{ a b c }
+ end
+ end
+
+ def test_json_list_dump_exclude_tag
+ @stream << Bar.new
+ json = @io.string
+ refute_match('omg', json)
+ end
+
+ def test_time
+ time = Time.utc(2010, 10, 10)
+ @stream.push({'a' => time })
+ json = @io.string
+ assert_match "{\"a\": \"2010-10-10 00:00:00.000000000 Z\"}\n", json
+ end
+
+ def test_datetime
+ time = Time.new(2010, 10, 10).to_datetime
+ @stream.push({'a' => time })
+ json = @io.string
+ assert_match "{\"a\": \"#{time.strftime("%Y-%m-%d %H:%M:%S.%9N %:z")}\"}\n", json
+ end
+ end
+ end
+end
diff --git a/test/psych/nodes/test_enumerable.rb b/test/psych/nodes/test_enumerable.rb
new file mode 100644
index 0000000000..19cf94bd51
--- /dev/null
+++ b/test/psych/nodes/test_enumerable.rb
@@ -0,0 +1,43 @@
+require 'psych/helper'
+
+module Psych
+ module Nodes
+ class TestEnumerable < TestCase
+ def test_includes_enumerable
+ yaml = '--- hello'
+ assert_equal 3, Psych.parse_stream(yaml).to_a.length
+ end
+
+ def test_returns_enumerator
+ yaml = '--- hello'
+ assert_equal 3, Psych.parse_stream(yaml).each.map { |x| x }.length
+ end
+
+ def test_scalar
+ assert_equal 3, calls('--- hello').length
+ end
+
+ def test_sequence
+ assert_equal 4, calls("---\n- hello").length
+ end
+
+ def test_mapping
+ assert_equal 5, calls("---\nhello: world").length
+ end
+
+ def test_alias
+ assert_equal 5, calls("--- &yay\n- foo\n- *yay\n").length
+ end
+
+ private
+
+ def calls yaml
+ calls = []
+ Psych.parse_stream(yaml).each do |node|
+ calls << node
+ end
+ calls
+ end
+ end
+ end
+end
diff --git a/test/psych/test_alias_and_anchor.rb b/test/psych/test_alias_and_anchor.rb
new file mode 100644
index 0000000000..48771d6e25
--- /dev/null
+++ b/test/psych/test_alias_and_anchor.rb
@@ -0,0 +1,26 @@
+require 'psych/helper'
+
+module Psych
+ class TestAliasAndAnchor < TestCase
+ def test_mri_compatibility
+ yaml = <<EOYAML
+---
+- &id001 !ruby/object {}
+
+- *id001
+- *id001
+EOYAML
+ result = Psych.load yaml
+ result.each {|el| assert_same(result[0], el) }
+ end
+
+ def test_anchor_alias_round_trip
+ o = Object.new
+ original = [o,o,o]
+
+ yaml = Psych.dump original
+ result = Psych.load yaml
+ result.each {|el| assert_same(result[0], el) }
+ end
+ end
+end
diff --git a/test/psych/test_array.rb b/test/psych/test_array.rb
new file mode 100644
index 0000000000..9eedbb4fda
--- /dev/null
+++ b/test/psych/test_array.rb
@@ -0,0 +1,47 @@
+require 'psych/helper'
+
+module Psych
+ class TestArray < TestCase
+ class X < Array
+ end
+
+ class Y < Array
+ attr_accessor :val
+ end
+
+ def setup
+ super
+ @list = [{ :a => 'b' }, 'foo']
+ end
+
+ def test_subclass
+ yaml = Psych.dump X.new
+ assert_match X.name, yaml
+
+ list = X.new
+ list << 1
+ assert_equal X, list.class
+ assert_equal 1, list.first
+ end
+
+ def test_subclass_with_attributes
+ y = Psych.load Psych.dump Y.new.tap {|y| y.val = 1}
+ assert_equal Y, y.class
+ assert_equal 1, y.val
+ end
+
+ def test_backwards_with_syck
+ x = Psych.load "--- !seq:#{X.name} []\n\n"
+ assert_equal X, x.class
+ end
+
+ def test_self_referential
+ @list << @list
+ assert_cycle(@list)
+ end
+
+ def test_cycle
+ assert_cycle(@list)
+ end
+ end
+end
diff --git a/test/psych/test_boolean.rb b/test/psych/test_boolean.rb
new file mode 100644
index 0000000000..ebfa25e56a
--- /dev/null
+++ b/test/psych/test_boolean.rb
@@ -0,0 +1,36 @@
+require 'psych/helper'
+
+module Psych
+ ###
+ # Test booleans from YAML spec:
+ # http://yaml.org/type/bool.html
+ class TestBoolean < TestCase
+ %w{ yes Yes YES true True TRUE on On ON }.each do |truth|
+ define_method(:"test_#{truth}") do
+ assert_equal true, Psych.load("--- #{truth}")
+ end
+ end
+
+ %w{ no No NO false False FALSE off Off OFF }.each do |truth|
+ define_method(:"test_#{truth}") do
+ assert_equal false, Psych.load("--- #{truth}")
+ end
+ end
+
+ ###
+ # YAML spec says "y" and "Y" may be used as true, but Syck treats them
+ # as literal strings
+ def test_y
+ assert_equal "y", Psych.load("--- y")
+ assert_equal "Y", Psych.load("--- Y")
+ end
+
+ ###
+ # YAML spec says "n" and "N" may be used as false, but Syck treats them
+ # as literal strings
+ def test_n
+ assert_equal "n", Psych.load("--- n")
+ assert_equal "N", Psych.load("--- N")
+ end
+ end
+end
diff --git a/test/psych/test_class.rb b/test/psych/test_class.rb
new file mode 100644
index 0000000000..156f2fb0ad
--- /dev/null
+++ b/test/psych/test_class.rb
@@ -0,0 +1,36 @@
+require 'psych/helper'
+
+module Psych
+ class TestClass < TestCase
+ module Foo
+ end
+
+ def test_cycle_anonymous_class
+ assert_raises(::TypeError) do
+ assert_cycle(Class.new)
+ end
+ end
+
+ def test_cycle_anonymous_module
+ assert_raises(::TypeError) do
+ assert_cycle(Module.new)
+ end
+ end
+
+ def test_cycle
+ assert_cycle(TestClass)
+ end
+
+ def test_dump
+ Psych.dump TestClass
+ end
+
+ def test_cycle_module
+ assert_cycle(Foo)
+ end
+
+ def test_dump_module
+ Psych.dump Foo
+ end
+ end
+end
diff --git a/test/psych/test_coder.rb b/test/psych/test_coder.rb
new file mode 100644
index 0000000000..7539c7d408
--- /dev/null
+++ b/test/psych/test_coder.rb
@@ -0,0 +1,184 @@
+require 'psych/helper'
+
+module Psych
+ class TestCoder < TestCase
+ class InitApi
+ attr_accessor :implicit
+ attr_accessor :style
+ attr_accessor :tag
+ attr_accessor :a, :b, :c
+
+ def initialize
+ @a = 1
+ @b = 2
+ @c = 3
+ end
+
+ def init_with coder
+ @a = coder['aa']
+ @b = coder['bb']
+ @implicit = coder.implicit
+ @tag = coder.tag
+ @style = coder.style
+ end
+
+ def encode_with coder
+ coder['aa'] = @a
+ coder['bb'] = @b
+ end
+ end
+
+ class TaggingCoder < InitApi
+ def encode_with coder
+ super
+ coder.tag = coder.tag.sub(/!/, '!hello')
+ coder.implicit = false
+ coder.style = Psych::Nodes::Mapping::FLOW
+ end
+ end
+
+ class ScalarCoder
+ def encode_with coder
+ coder.scalar = "foo"
+ end
+ end
+
+ class Represent
+ yaml_tag 'foo'
+ def encode_with coder
+ coder.represent_scalar 'foo', 'bar'
+ end
+ end
+
+ class RepresentWithInit
+ yaml_tag name
+ attr_accessor :str
+
+ def init_with coder
+ @str = coder.scalar
+ end
+
+ def encode_with coder
+ coder.represent_scalar self.class.name, 'bar'
+ end
+ end
+
+ class RepresentWithSeq
+ yaml_tag name
+ attr_accessor :seq
+
+ def init_with coder
+ @seq = coder.seq
+ end
+
+ def encode_with coder
+ coder.represent_seq self.class.name, %w{ foo bar }
+ end
+ end
+
+ class RepresentWithMap
+ yaml_tag name
+ attr_accessor :map
+
+ def init_with coder
+ @map = coder.map
+ end
+
+ def encode_with coder
+ coder.represent_map self.class.name, { 'a' => 'b' }
+ end
+ end
+
+ class RepresentWithObject
+ def encode_with coder
+ coder.represent_object self.class.name, 20
+ end
+ end
+
+ def test_represent_with_object
+ thing = Psych.load(Psych.dump(RepresentWithObject.new))
+ assert_equal 20, thing
+ end
+
+ def test_json_dump_exclude_tag
+ refute_match('TestCoder::InitApi', Psych.to_json(InitApi.new))
+ end
+
+ def test_map_takes_block
+ coder = Psych::Coder.new 'foo'
+ tag = coder.tag
+ style = coder.style
+ coder.map { |map| map.add 'foo', 'bar' }
+ assert_equal 'bar', coder['foo']
+ assert_equal tag, coder.tag
+ assert_equal style, coder.style
+ end
+
+ def test_map_with_tag
+ coder = Psych::Coder.new 'foo'
+ coder.map('hello') { |map| map.add 'foo', 'bar' }
+ assert_equal 'bar', coder['foo']
+ assert_equal 'hello', coder.tag
+ end
+
+ def test_map_with_tag_and_style
+ coder = Psych::Coder.new 'foo'
+ coder.map('hello', 'world') { |map| map.add 'foo', 'bar' }
+ assert_equal 'bar', coder['foo']
+ assert_equal 'hello', coder.tag
+ assert_equal 'world', coder.style
+ end
+
+ def test_represent_map
+ thing = Psych.load(Psych.dump(RepresentWithMap.new))
+ assert_equal({ 'a' => 'b' }, thing.map)
+ end
+
+ def test_represent_sequence
+ thing = Psych.load(Psych.dump(RepresentWithSeq.new))
+ assert_equal %w{ foo bar }, thing.seq
+ end
+
+ def test_represent_with_init
+ thing = Psych.load(Psych.dump(RepresentWithInit.new))
+ assert_equal 'bar', thing.str
+ end
+
+ def test_represent!
+ assert_match(/foo/, Psych.dump(Represent.new))
+ assert_instance_of(Represent, Psych.load(Psych.dump(Represent.new)))
+ end
+
+ def test_scalar_coder
+ foo = Psych.load(Psych.dump(ScalarCoder.new))
+ assert_equal 'foo', foo
+ end
+
+ def test_load_dumped_tagging
+ foo = InitApi.new
+ bar = Psych.load(Psych.dump(foo))
+ assert_equal false, bar.implicit
+ assert_equal "!ruby/object:Psych::TestCoder::InitApi", bar.tag
+ assert_equal Psych::Nodes::Mapping::BLOCK, bar.style
+ end
+
+ def test_dump_with_tag
+ foo = TaggingCoder.new
+ assert_match(/hello/, Psych.dump(foo))
+ assert_match(/\{aa/, Psych.dump(foo))
+ end
+
+ def test_dump_encode_with
+ foo = InitApi.new
+ assert_match(/aa/, Psych.dump(foo))
+ end
+
+ def test_dump_init_with
+ foo = InitApi.new
+ bar = Psych.load(Psych.dump(foo))
+ assert_equal foo.a, bar.a
+ assert_equal foo.b, bar.b
+ assert_nil bar.c
+ end
+ end
+end
diff --git a/test/psych/test_date_time.rb b/test/psych/test_date_time.rb
new file mode 100644
index 0000000000..fb76cb3a00
--- /dev/null
+++ b/test/psych/test_date_time.rb
@@ -0,0 +1,17 @@
+require 'psych/helper'
+require 'date'
+
+module Psych
+ class TestDateTime < TestCase
+ def test_string_tag
+ dt = DateTime.now
+ yaml = Psych.dump dt
+ assert_match(/DateTime/, yaml)
+ end
+
+ def test_round_trip
+ dt = DateTime.now
+ assert_cycle dt
+ end
+ end
+end
diff --git a/test/psych/test_deprecated.rb b/test/psych/test_deprecated.rb
new file mode 100644
index 0000000000..cfce0825e9
--- /dev/null
+++ b/test/psych/test_deprecated.rb
@@ -0,0 +1,210 @@
+require 'psych/helper'
+
+module Psych
+ class TestDeprecated < TestCase
+ def teardown
+ Psych.domain_types.clear
+ end
+
+ class QuickEmitter
+ attr_reader :name
+ attr_reader :value
+
+ def initialize
+ @name = 'hello!!'
+ @value = 'Friday!'
+ end
+
+ def to_yaml opts = {}
+ Psych.quick_emit object_id, opts do |out|
+ out.map taguri, to_yaml_style do |map|
+ map.add 'name', @name
+ map.add 'value', nil
+ end
+ end
+ end
+ end
+
+ def setup
+ @qe = QuickEmitter.new
+ end
+
+ def test_quick_emit
+ qe2 = Psych.load @qe.to_yaml
+ assert_equal @qe.name, qe2.name
+ assert_instance_of QuickEmitter, qe2
+ assert_nil qe2.value
+ end
+
+ def test_recursive_quick_emit
+ hash = { :qe => @qe }
+ hash2 = Psych.load Psych.dump hash
+ qe = hash2[:qe]
+
+ assert_equal @qe.name, qe.name
+ assert_instance_of QuickEmitter, qe
+ assert_nil qe.value
+ end
+
+ class QuickEmitterEncodeWith
+ attr_reader :name
+ attr_reader :value
+
+ def initialize
+ @name = 'hello!!'
+ @value = 'Friday!'
+ end
+
+ def encode_with coder
+ coder.map do |map|
+ map.add 'name', @name
+ map.add 'value', nil
+ end
+ end
+
+ def to_yaml opts = {}
+ raise
+ end
+ end
+
+ ###
+ # An object that defines both to_yaml and encode_with should only call
+ # encode_with.
+ def test_recursive_quick_emit_encode_with
+ qeew = QuickEmitterEncodeWith.new
+ hash = { :qe => qeew }
+ hash2 = Psych.load Psych.dump hash
+ qe = hash2[:qe]
+
+ assert_equal qeew.name, qe.name
+ assert_instance_of QuickEmitterEncodeWith, qe
+ assert_nil qe.value
+ end
+
+ class YamlInit
+ attr_reader :name
+ attr_reader :value
+
+ def initialize
+ @name = 'hello!!'
+ @value = 'Friday!'
+ end
+
+ def yaml_initialize tag, vals
+ vals.each { |ivar, val| instance_variable_set "@#{ivar}", 'TGIF!' }
+ end
+ end
+
+ def test_yaml_initialize
+ hash = { :yi => YamlInit.new }
+ hash2 = Psych.load Psych.dump hash
+ yi = hash2[:yi]
+
+ assert_equal 'TGIF!', yi.name
+ assert_equal 'TGIF!', yi.value
+ assert_instance_of YamlInit, yi
+ end
+
+ class YamlInitAndInitWith
+ attr_reader :name
+ attr_reader :value
+
+ def initialize
+ @name = 'shaners'
+ @value = 'Friday!'
+ end
+
+ def init_with coder
+ coder.map.each { |ivar, val| instance_variable_set "@#{ivar}", 'TGIF!' }
+ end
+
+ def yaml_initialize tag, vals
+ raise
+ end
+ end
+
+ ###
+ # An object that implements both yaml_initialize and init_with should not
+ # receive the yaml_initialize call.
+ def test_yaml_initialize_and_init_with
+ hash = { :yi => YamlInitAndInitWith.new }
+ hash2 = Psych.load Psych.dump hash
+ yi = hash2[:yi]
+
+ assert_equal 'TGIF!', yi.name
+ assert_equal 'TGIF!', yi.value
+ assert_instance_of YamlInitAndInitWith, yi
+ end
+
+ def test_coder_scalar
+ coder = Psych::Coder.new 'foo'
+ coder.scalar('tag', 'some string', :plain)
+ assert_equal 'tag', coder.tag
+ assert_equal 'some string', coder.scalar
+ assert_equal :scalar, coder.type
+ end
+
+ class YamlAs
+ yaml_as 'helloworld'
+ end
+
+ def test_yaml_as
+ assert_match(/helloworld/, Psych.dump(YamlAs.new))
+ end
+
+ def test_ruby_type
+ types = []
+ appender = lambda { |*args| types << args }
+
+ Psych.add_ruby_type('foo', &appender)
+ Psych.load <<-eoyml
+- !ruby.yaml.org,2002/foo bar
+ eoyml
+
+ assert_equal [["tag:ruby.yaml.org,2002:foo", "bar"]], types
+ end
+
+ def test_detect_implicit
+ assert_equal '', Psych.detect_implicit(nil)
+ assert_equal '', Psych.detect_implicit(Object.new)
+ assert_equal '', Psych.detect_implicit(1.2)
+ assert_equal 'null', Psych.detect_implicit('')
+ assert_equal 'string', Psych.detect_implicit('foo')
+ end
+
+ def test_private_type
+ types = []
+ Psych.add_private_type('foo') { |*args| types << args }
+ Psych.load <<-eoyml
+- !x-private:foo bar
+ eoyml
+
+ assert_equal [["x-private:foo", "bar"]], types
+ end
+
+ def test_tagurize
+ assert_nil Psych.tagurize nil
+ assert_equal Psych, Psych.tagurize(Psych)
+ assert_equal 'tag:yaml.org,2002:foo', Psych.tagurize('foo')
+ end
+
+ def test_read_type_class
+ things = Psych.read_type_class 'tag:yaml.org,2002:int:Psych::TestDeprecated::QuickEmitter', Object
+ assert_equal 'int', things.first
+ assert_equal Psych::TestDeprecated::QuickEmitter, things.last
+ end
+
+ def test_read_type_class_no_class
+ things = Psych.read_type_class 'tag:yaml.org,2002:int', Object
+ assert_equal 'int', things.first
+ assert_equal Object, things.last
+ end
+
+ def test_object_maker
+ thing = Psych.object_maker(Object, { 'a' => 'b', 'c' => 'd' })
+ assert_instance_of(Object, thing)
+ assert_equal 'b', thing.instance_variable_get(:@a)
+ assert_equal 'd', thing.instance_variable_get(:@c)
+ end
+ end
+end
diff --git a/test/psych/test_document.rb b/test/psych/test_document.rb
new file mode 100644
index 0000000000..05d9bbfb87
--- /dev/null
+++ b/test/psych/test_document.rb
@@ -0,0 +1,46 @@
+require 'psych/helper'
+
+module Psych
+ class TestDocument < TestCase
+ def setup
+ super
+ @stream = Psych.parse_stream(<<-eoyml)
+%YAML 1.1
+%TAG ! tag:tenderlovemaking.com,2009:
+--- !fun
+ eoyml
+ @doc = @stream.children.first
+ end
+
+ def test_parse_tag
+ assert_equal([['!', 'tag:tenderlovemaking.com,2009:']],
+ @doc.tag_directives)
+ end
+
+ def test_emit_tag
+ assert_match('%TAG ! tag:tenderlovemaking.com,2009:', @stream.yaml)
+ end
+
+ def test_emit_multitag
+ @doc.tag_directives << ['!!', 'foo.com,2009:']
+ yaml = @stream.yaml
+ assert_match('%TAG ! tag:tenderlovemaking.com,2009:', yaml)
+ assert_match('%TAG !! foo.com,2009:', yaml)
+ end
+
+ def test_emit_bad_tag
+ assert_raises(RuntimeError) do
+ @doc.tag_directives = [['!']]
+ @stream.yaml
+ end
+ end
+
+ def test_parse_version
+ assert_equal([1,1], @doc.version)
+ end
+
+ def test_emit_version
+ assert_match('%YAML 1.1', @stream.yaml)
+ end
+ end
+end
diff --git a/test/psych/test_emitter.rb b/test/psych/test_emitter.rb
new file mode 100644
index 0000000000..dfd20e1507
--- /dev/null
+++ b/test/psych/test_emitter.rb
@@ -0,0 +1,94 @@
+# -*- coding: utf-8 -*-
+
+require 'psych/helper'
+
+module Psych
+ class TestEmitter < TestCase
+ def setup
+ super
+ @out = StringIO.new('')
+ @emitter = Psych::Emitter.new @out
+ end
+
+ def test_line_width
+ assert_equal 0, @emitter.line_width
+ assert_equal 10, @emitter.line_width = 10
+ assert_equal 10, @emitter.line_width
+ end
+
+ def test_set_canonical
+ @emitter.canonical = true
+ assert_equal true, @emitter.canonical
+
+ @emitter.canonical = false
+ assert_equal false, @emitter.canonical
+ end
+
+ def test_indentation_set
+ assert_equal 2, @emitter.indentation
+ @emitter.indentation = 5
+ assert_equal 5, @emitter.indentation
+ end
+
+ def test_emit_utf_8
+ @emitter.start_stream Psych::Nodes::Stream::UTF8
+ @emitter.start_document [], [], false
+ @emitter.scalar '日本語', nil, nil, false, true, 1
+ @emitter.end_document true
+ @emitter.end_stream
+ assert_match('日本語', @out.string)
+ end
+
+ def test_start_stream_arg_error
+ assert_raises(TypeError) do
+ @emitter.start_stream 'asdfasdf'
+ end
+ end
+
+ def test_start_doc_arg_error
+ @emitter.start_stream Psych::Nodes::Stream::UTF8
+
+ [
+ [nil, [], false],
+ [[nil, nil], [], false],
+ [[], 'foo', false],
+ [[], ['foo'], false],
+ [[], [nil,nil], false],
+ ].each do |args|
+ assert_raises(TypeError) do
+ @emitter.start_document(*args)
+ end
+ end
+ end
+
+ def test_scalar_arg_error
+ @emitter.start_stream Psych::Nodes::Stream::UTF8
+ @emitter.start_document [], [], false
+
+ [
+ [:foo, nil, nil, false, true, 1],
+ ['foo', Object.new, nil, false, true, 1],
+ ['foo', nil, Object.new, false, true, 1],
+ ['foo', nil, nil, false, true, :foo],
+ [nil, nil, nil, false, true, 1],
+ ].each do |args|
+ assert_raises(TypeError) do
+ @emitter.scalar(*args)
+ end
+ end
+ end
+
+ def test_start_sequence_arg_error
+ @emitter.start_stream Psych::Nodes::Stream::UTF8
+ @emitter.start_document [], [], false
+
+ assert_raises(TypeError) do
+ @emitter.start_sequence(nil, Object.new, true, 1)
+ end
+
+ assert_raises(TypeError) do
+ @emitter.start_sequence(nil, nil, true, :foo)
+ end
+ end
+ end
+end
diff --git a/test/psych/test_encoding.rb b/test/psych/test_encoding.rb
new file mode 100644
index 0000000000..1abee0df16
--- /dev/null
+++ b/test/psych/test_encoding.rb
@@ -0,0 +1,268 @@
+# -*- coding: utf-8 -*-
+
+require 'psych/helper'
+
+module Psych
+ class TestEncoding < TestCase
+ class EncodingCatcher < Handler
+ attr_reader :strings
+ def initialize
+ @strings = []
+ end
+
+ (Handler.instance_methods(true) -
+ Object.instance_methods).each do |m|
+ class_eval %{
+ def #{m} *args
+ @strings += args.flatten.find_all { |a|
+ String === a
+ }
+ end
+ }
+ end
+ end
+
+ def setup
+ super
+ @buffer = StringIO.new
+ @handler = EncodingCatcher.new
+ @parser = Psych::Parser.new @handler
+ @utf8 = Encoding.find('UTF-8')
+ @emitter = Psych::Emitter.new @buffer
+ end
+
+ def test_transcode_shiftjis
+ str = "ã“ã‚“ã«ã¡ã¯ï¼"
+ loaded = Psych.load("--- ã“ã‚“ã«ã¡ã¯ï¼".encode('SHIFT_JIS'))
+ assert_equal str, loaded
+ end
+
+ def test_transcode_utf16le
+ str = "ã“ã‚“ã«ã¡ã¯ï¼"
+ loaded = Psych.load("--- ã“ã‚“ã«ã¡ã¯ï¼".encode('UTF-16LE'))
+ assert_equal str, loaded
+ end
+
+ def test_transcode_utf16be
+ str = "ã“ã‚“ã«ã¡ã¯ï¼"
+ loaded = Psych.load("--- ã“ã‚“ã«ã¡ã¯ï¼".encode('UTF-16BE'))
+ assert_equal str, loaded
+ end
+
+ def test_io_shiftjis
+ t = Tempfile.new(['shiftjis', 'yml'], :encoding => 'SHIFT_JIS')
+ t.write '--- ã“ã‚“ã«ã¡ã¯ï¼'
+ t.close
+
+ # If the external encoding isn't utf8, utf16le, or utf16be, we cannot
+ # process the file.
+ File.open(t.path, 'r', :encoding => 'SHIFT_JIS') do |f|
+ assert_raises Psych::SyntaxError do
+ Psych.load(f)
+ end
+ end
+
+ t.close(true)
+ end
+
+ def test_io_utf16le
+ t = Tempfile.new(['utf16le', 'yml'])
+ t.binmode
+ t.write '--- ã“ã‚“ã«ã¡ã¯ï¼'.encode('UTF-16LE')
+ t.close
+
+ File.open(t.path, 'rb', :encoding => 'UTF-16LE') do |f|
+ assert_equal "ã“ã‚“ã«ã¡ã¯ï¼", Psych.load(f)
+ end
+
+ t.close(true)
+ end
+
+ def test_io_utf16be
+ t = Tempfile.new(['utf16be', 'yml'])
+ t.binmode
+ t.write '--- ã“ã‚“ã«ã¡ã¯ï¼'.encode('UTF-16BE')
+ t.close
+
+ File.open(t.path, 'rb', :encoding => 'UTF-16BE') do |f|
+ assert_equal "ã“ã‚“ã«ã¡ã¯ï¼", Psych.load(f)
+ end
+
+ t.close(true)
+ end
+
+ def test_io_utf8
+ t = Tempfile.new(['utf8', 'yml'])
+ t.binmode
+ t.write '--- ã“ã‚“ã«ã¡ã¯ï¼'.encode('UTF-8')
+ t.close
+
+ File.open(t.path, 'rb', :encoding => 'UTF-8') do |f|
+ assert_equal "ã“ã‚“ã«ã¡ã¯ï¼", Psych.load(f)
+ end
+
+ t.close(true)
+ end
+
+ def test_emit_alias
+ @emitter.start_stream Psych::Parser::UTF8
+ @emitter.start_document [], [], true
+ e = assert_raises(RuntimeError) do
+ @emitter.alias 'ドラãˆã‚‚ã‚“'.encode('EUC-JP')
+ end
+ assert_match(/alias value/, e.message)
+ end
+
+ def test_to_yaml_is_valid
+ ext_before = Encoding.default_external
+ int_before = Encoding.default_internal
+
+ Encoding.default_external = Encoding::US_ASCII
+ Encoding.default_internal = nil
+
+ s = "ã“ã‚“ã«ã¡ã¯ï¼"
+ # If no encoding is specified, use UTF-8
+ assert_equal Encoding::UTF_8, Psych.dump(s).encoding
+ assert_equal s, Psych.load(Psych.dump(s))
+ ensure
+ Encoding.default_external = ext_before
+ Encoding.default_internal = int_before
+ end
+
+ def test_start_mapping
+ foo = 'foo'
+ bar = 'ãƒãƒ¼'
+
+ @emitter.start_stream Psych::Parser::UTF8
+ @emitter.start_document [], [], true
+ @emitter.start_mapping(
+ foo.encode('Shift_JIS'),
+ bar.encode('UTF-16LE'),
+ false, Nodes::Sequence::ANY)
+ @emitter.end_mapping
+ @emitter.end_document false
+ @emitter.end_stream
+
+ @parser.parse @buffer.string
+ assert_encodings @utf8, @handler.strings
+ assert_equal [foo, bar], @handler.strings
+ end
+
+ def test_start_sequence
+ foo = 'foo'
+ bar = 'ãƒãƒ¼'
+
+ @emitter.start_stream Psych::Parser::UTF8
+ @emitter.start_document [], [], true
+ @emitter.start_sequence(
+ foo.encode('Shift_JIS'),
+ bar.encode('UTF-16LE'),
+ false, Nodes::Sequence::ANY)
+ @emitter.end_sequence
+ @emitter.end_document false
+ @emitter.end_stream
+
+ @parser.parse @buffer.string
+ assert_encodings @utf8, @handler.strings
+ assert_equal [foo, bar], @handler.strings
+ end
+
+ def test_doc_tag_encoding
+ key = 'éµ'
+ @emitter.start_stream Psych::Parser::UTF8
+ @emitter.start_document(
+ [1, 1],
+ [['!'.encode('EUC-JP'), key.encode('EUC-JP')]],
+ true
+ )
+ @emitter.scalar 'foo', nil, nil, true, false, Nodes::Scalar::ANY
+ @emitter.end_document false
+ @emitter.end_stream
+
+ @parser.parse @buffer.string
+ assert_encodings @utf8, @handler.strings
+ assert_equal key, @handler.strings[1]
+ end
+
+ def test_emitter_encoding
+ str = "å£ã«è€³ã‚りã€éšœå­ã«ç›®ã‚り"
+ thing = Psych.load Psych.dump str.encode('EUC-JP')
+ assert_equal str, thing
+ end
+
+ def test_default_internal
+ before = Encoding.default_internal
+
+ Encoding.default_internal = 'EUC-JP'
+
+ str = "å£ã«è€³ã‚りã€éšœå­ã«ç›®ã‚り"
+ yaml = "--- #{str}"
+ assert_equal @utf8, str.encoding
+
+ @parser.parse str
+ assert_encodings Encoding.find('EUC-JP'), @handler.strings
+ assert_equal str, @handler.strings.first.encode('UTF-8')
+ ensure
+ Encoding.default_internal = before
+ end
+
+ def test_scalar
+ @parser.parse("--- a")
+ assert_encodings @utf8, @handler.strings
+ end
+
+ def test_alias
+ @parser.parse(<<-eoyml)
+%YAML 1.1
+---
+!!seq [
+ !!str "Without properties",
+ &A !!str "Anchored",
+ !!str "Tagged",
+ *A,
+ !!str "",
+]
+ eoyml
+ assert_encodings @utf8, @handler.strings
+ end
+
+ def test_list_anchor
+ list = %w{ a b }
+ list << list
+ @parser.parse(Psych.dump(list))
+ assert_encodings @utf8, @handler.strings
+ end
+
+ def test_map_anchor
+ h = {}
+ h['a'] = h
+ @parser.parse(Psych.dump(h))
+ assert_encodings @utf8, @handler.strings
+ end
+
+ def test_map_tag
+ @parser.parse(<<-eoyml)
+%YAML 1.1
+---
+!!map { a : b }
+ eoyml
+ assert_encodings @utf8, @handler.strings
+ end
+
+ def test_doc_tag
+ @parser.parse(<<-eoyml)
+%YAML 1.1
+%TAG ! tag:tenderlovemaking.com,2009:
+--- !fun
+ eoyml
+ assert_encodings @utf8, @handler.strings
+ end
+
+ private
+ def assert_encodings encoding, strings
+ strings.each do |str|
+ assert_equal encoding, str.encoding, str
+ end
+ end
+ end
+end
diff --git a/test/psych/test_engine_manager.rb b/test/psych/test_engine_manager.rb
new file mode 100644
index 0000000000..b52fd0959b
--- /dev/null
+++ b/test/psych/test_engine_manager.rb
@@ -0,0 +1,57 @@
+require 'psych/helper'
+require 'yaml'
+
+module Psych
+ class TestEngineManager < TestCase
+ def teardown
+ YAML::ENGINE.yamler = 'syck'
+ end
+
+ def test_bad_engine
+ assert_raises(ArgumentError) do
+ YAML::ENGINE.yamler = 'foooo'
+ end
+ end
+
+ def test_set_psych
+ YAML::ENGINE.yamler = 'psych'
+ assert_equal Psych, YAML
+ assert_equal 'psych', YAML::ENGINE.yamler
+ end
+
+ def test_set_syck
+ YAML::ENGINE.yamler = 'syck'
+ assert_equal ::Syck, YAML
+ assert_equal 'syck', YAML::ENGINE.yamler
+ end
+
+ A = Struct.new(:name)
+
+ def test_dump_types
+ YAML::ENGINE.yamler = 'psych'
+
+ assert_to_yaml ::Object.new
+ assert_to_yaml Time.now
+ assert_to_yaml Date.today
+ assert_to_yaml('a' => 'b')
+ assert_to_yaml A.new('foo')
+ assert_to_yaml %w{a b}
+ assert_to_yaml Exception.new('foo')
+ assert_to_yaml "hello!"
+ assert_to_yaml :fooo
+ assert_to_yaml(1..10)
+ assert_to_yaml(/hello!~/)
+ assert_to_yaml 1
+ assert_to_yaml 1.2
+ assert_to_yaml Rational(1, 2)
+ assert_to_yaml Complex(1, 2)
+ assert_to_yaml true
+ assert_to_yaml false
+ assert_to_yaml nil
+ end
+
+ def assert_to_yaml obj
+ assert obj.to_yaml, "#{obj.class} to_yaml works"
+ end
+ end
+end
diff --git a/test/psych/test_exception.rb b/test/psych/test_exception.rb
new file mode 100644
index 0000000000..c6d98d7a99
--- /dev/null
+++ b/test/psych/test_exception.rb
@@ -0,0 +1,130 @@
+require 'psych/helper'
+
+module Psych
+ class TestException < TestCase
+ class Wups < Exception
+ attr_reader :foo, :bar
+ def initialize *args
+ super
+ @foo = 1
+ @bar = 2
+ end
+ end
+
+ def setup
+ super
+ @wups = Wups.new
+ end
+
+ def test_load_takes_file
+ ex = assert_raises(Psych::SyntaxError) do
+ Psych.load '--- `'
+ end
+ assert_nil ex.file
+
+ ex = assert_raises(Psych::SyntaxError) do
+ Psych.load '--- `', 'meow'
+ end
+ assert_equal 'meow', ex.file
+ end
+
+ def test_psych_parse_stream_takes_file
+ ex = assert_raises(Psych::SyntaxError) do
+ Psych.parse_stream '--- `'
+ end
+ assert_nil ex.file
+ assert_match '(<unknown>)', ex.message
+
+ ex = assert_raises(Psych::SyntaxError) do
+ Psych.parse_stream '--- `', 'omg!'
+ end
+ assert_equal 'omg!', ex.file
+ assert_match 'omg!', ex.message
+ end
+
+ def test_load_stream_takes_file
+ ex = assert_raises(Psych::SyntaxError) do
+ Psych.load_stream '--- `'
+ end
+ assert_nil ex.file
+ assert_match '(<unknown>)', ex.message
+
+ ex = assert_raises(Psych::SyntaxError) do
+ Psych.load_stream '--- `', 'omg!'
+ end
+ assert_equal 'omg!', ex.file
+ end
+
+ def test_parse_file_exception
+ t = Tempfile.new(['parsefile', 'yml'])
+ t.binmode
+ t.write '--- `'
+ t.close
+ ex = assert_raises(Psych::SyntaxError) do
+ Psych.parse_file t.path
+ end
+ assert_equal t.path, ex.file
+ t.close(true)
+ end
+
+ def test_load_file_exception
+ t = Tempfile.new(['loadfile', 'yml'])
+ t.binmode
+ t.write '--- `'
+ t.close
+ ex = assert_raises(Psych::SyntaxError) do
+ Psych.load_file t.path
+ end
+ assert_equal t.path, ex.file
+ t.close(true)
+ end
+
+ def test_psych_parse_takes_file
+ ex = assert_raises(Psych::SyntaxError) do
+ Psych.parse '--- `'
+ end
+ assert_match '(<unknown>)', ex.message
+ assert_nil ex.file
+
+ ex = assert_raises(Psych::SyntaxError) do
+ Psych.parse '--- `', 'omg!'
+ end
+ assert_match 'omg!', ex.message
+ end
+
+ def test_attributes
+ e = assert_raises(Psych::SyntaxError) {
+ Psych.load '--- `foo'
+ }
+
+ assert_nil e.file
+ assert_equal 1, e.line
+ assert_equal 5, e.column
+ # FIXME: offset isn't being set correctly by libyaml
+ # assert_equal 5, e.offset
+
+ assert e.problem
+ assert e.context
+ end
+
+ def test_convert
+ w = Psych.load(Psych.dump(@wups))
+ assert_equal @wups, w
+ assert_equal 1, w.foo
+ assert_equal 2, w.bar
+ end
+
+ def test_to_yaml_properties
+ class << @wups
+ def to_yaml_properties
+ [:@foo]
+ end
+ end
+
+ w = Psych.load(Psych.dump(@wups))
+ assert_equal @wups, w
+ assert_equal 1, w.foo
+ assert_nil w.bar
+ end
+ end
+end
diff --git a/test/psych/test_hash.rb b/test/psych/test_hash.rb
new file mode 100644
index 0000000000..4bd4edfc8c
--- /dev/null
+++ b/test/psych/test_hash.rb
@@ -0,0 +1,44 @@
+require 'psych/helper'
+
+module Psych
+ class TestHash < TestCase
+ class X < Hash
+ end
+
+ def setup
+ super
+ @hash = { :a => 'b' }
+ end
+
+ def test_empty_subclass
+ assert_match "!ruby/hash:#{X}", Psych.dump(X.new)
+ x = Psych.load Psych.dump X.new
+ assert_equal X, x.class
+ end
+
+ def test_map
+ x = Psych.load "--- !map:#{X} { }\n"
+ assert_equal X, x.class
+ end
+
+ def test_self_referential
+ @hash['self'] = @hash
+ assert_cycle(@hash)
+ end
+
+ def test_cycles
+ assert_cycle(@hash)
+ end
+
+ def test_ref_append
+ hash = Psych.load(<<-eoyml)
+---
+foo: &foo
+ hello: world
+bar:
+ <<: *foo
+eoyml
+ assert_equal({"foo"=>{"hello"=>"world"}, "bar"=>{"hello"=>"world"}}, hash)
+ end
+ end
+end
diff --git a/test/psych/test_json_tree.rb b/test/psych/test_json_tree.rb
new file mode 100644
index 0000000000..eed8cf36c4
--- /dev/null
+++ b/test/psych/test_json_tree.rb
@@ -0,0 +1,65 @@
+require 'psych/helper'
+
+module Psych
+ class TestJSONTree < TestCase
+ def test_string
+ assert_match(/"foo"/, Psych.to_json("foo"))
+ end
+
+ def test_symbol
+ assert_match(/"foo"/, Psych.to_json(:foo))
+ end
+
+ def test_nil
+ assert_match(/^null/, Psych.to_json(nil))
+ end
+
+ def test_int
+ assert_match(/^10/, Psych.to_json(10))
+ end
+
+ def test_float
+ assert_match(/^1.2/, Psych.to_json(1.2))
+ end
+
+ def test_hash
+ hash = { 'one' => 'two' }
+ json = Psych.to_json(hash)
+ assert_match(/}$/, json)
+ assert_match(/^\{/, json)
+ assert_match(/['"]one['"]/, json)
+ assert_match(/['"]two['"]/, json)
+ end
+
+ class Bar
+ def encode_with coder
+ coder.represent_seq 'omg', %w{ a b c }
+ end
+ end
+
+ def test_json_list_dump_exclude_tag
+ json = Psych.to_json Bar.new
+ refute_match('omg', json)
+ end
+
+ def test_list_to_json
+ list = %w{ one two }
+ json = Psych.to_json(list)
+ assert_match(/]$/, json)
+ assert_match(/^\[/, json)
+ assert_match(/"one"/, json)
+ assert_match(/"two"/, json)
+ end
+
+ def test_time
+ time = Time.utc(2010, 10, 10)
+ assert_equal "{\"a\": \"2010-10-10 00:00:00.000000000 Z\"}\n",
+Psych.to_json({'a' => time })
+ end
+
+ def test_datetime
+ time = Time.new(2010, 10, 10).to_datetime
+ assert_equal "{\"a\": \"#{time.strftime("%Y-%m-%d %H:%M:%S.%9N %:z")}\"}\n", Psych.to_json({'a' => time })
+ end
+ end
+end
diff --git a/test/psych/test_merge_keys.rb b/test/psych/test_merge_keys.rb
new file mode 100644
index 0000000000..bf5968ff86
--- /dev/null
+++ b/test/psych/test_merge_keys.rb
@@ -0,0 +1,81 @@
+require 'psych/helper'
+
+module Psych
+ class TestMergeKeys < TestCase
+ def test_missing_merge_key
+ yaml = <<-eoyml
+bar:
+ << : *foo
+ eoyml
+ exp = assert_raises(Psych::BadAlias) { Psych.load yaml }
+ assert_match 'foo', exp.message
+ end
+
+ # [ruby-core:34679]
+ def test_merge_key
+ yaml = <<-eoyml
+foo: &foo
+ hello: world
+bar:
+ << : *foo
+ baz: boo
+ eoyml
+
+ hash = {
+ "foo" => { "hello" => "world"},
+ "bar" => { "hello" => "world", "baz" => "boo" } }
+ assert_equal hash, Psych.load(yaml)
+ end
+
+ def test_multiple_maps
+ yaml = <<-eoyaml
+---
+- &CENTER { x: 1, y: 2 }
+- &LEFT { x: 0, y: 2 }
+- &BIG { r: 10 }
+- &SMALL { r: 1 }
+
+# All the following maps are equal:
+
+- # Merge multiple maps
+ << : [ *CENTER, *BIG ]
+ label: center/big
+ eoyaml
+
+ hash = {
+ 'x' => 1,
+ 'y' => 2,
+ 'r' => 10,
+ 'label' => 'center/big'
+ }
+
+ assert_equal hash, Psych.load(yaml)[4]
+ end
+
+ def test_override
+ yaml = <<-eoyaml
+---
+- &CENTER { x: 1, y: 2 }
+- &LEFT { x: 0, y: 2 }
+- &BIG { r: 10 }
+- &SMALL { r: 1 }
+
+# All the following maps are equal:
+
+- # Override
+ << : [ *BIG, *LEFT, *SMALL ]
+ x: 1
+ label: center/big
+ eoyaml
+
+ hash = {
+ 'x' => 1,
+ 'y' => 2,
+ 'r' => 10,
+ 'label' => 'center/big'
+ }
+
+ assert_equal hash, Psych.load(yaml)[4]
+ end
+ end
+end
diff --git a/test/psych/test_nil.rb b/test/psych/test_nil.rb
new file mode 100644
index 0000000000..4f32b7703b
--- /dev/null
+++ b/test/psych/test_nil.rb
@@ -0,0 +1,18 @@
+require 'psych/helper'
+
+module Psych
+ class TestNil < TestCase
+ def test_nil
+ yml = Psych.dump nil
+ assert_match(/--- \n(?:\.\.\.\n)?/, yml)
+ assert_nil Psych.load(yml)
+ end
+
+ def test_array_nil
+ yml = Psych.dump [nil]
+ assert_equal "---\n- \n", yml
+ assert_equal [nil], Psych.load(yml)
+ end
+
+ end
+end
diff --git a/test/psych/test_null.rb b/test/psych/test_null.rb
new file mode 100644
index 0000000000..0fee1d2464
--- /dev/null
+++ b/test/psych/test_null.rb
@@ -0,0 +1,19 @@
+require 'psych/helper'
+
+module Psych
+ ###
+ # Test null from YAML spec:
+ # http://yaml.org/type/null.html
+ class TestNull < TestCase
+ def test_null_list
+ assert_equal [nil] * 5, Psych.load(<<-eoyml)
+---
+- ~
+- null
+-
+- Null
+- NULL
+ eoyml
+ end
+ end
+end
diff --git a/test/psych/test_numeric.rb b/test/psych/test_numeric.rb
new file mode 100644
index 0000000000..bae723aca9
--- /dev/null
+++ b/test/psych/test_numeric.rb
@@ -0,0 +1,25 @@
+require 'psych/helper'
+require 'bigdecimal'
+
+module Psych
+ ###
+ # Test numerics from YAML spec:
+ # http://yaml.org/type/float.html
+ # http://yaml.org/type/int.html
+ class TestNumeric < TestCase
+ def test_non_float_with_0
+ str = Psych.load('--- 090')
+ assert_equal '090', str
+ end
+
+ def test_big_decimal_tag
+ decimal = BigDecimal("12.34")
+ assert_match "!ruby/object:BigDecimal", Psych.dump(decimal)
+ end
+
+ def test_big_decimal_round_trip
+ decimal = BigDecimal("12.34")
+ assert_cycle decimal
+ end
+ end
+end
diff --git a/test/psych/test_object.rb b/test/psych/test_object.rb
new file mode 100644
index 0000000000..6145bb6ada
--- /dev/null
+++ b/test/psych/test_object.rb
@@ -0,0 +1,44 @@
+require 'psych/helper'
+
+module Psych
+ class Tagged
+ yaml_tag '!foo'
+
+ attr_accessor :baz
+
+ def initialize
+ @baz = 'bar'
+ end
+ end
+
+ class Foo
+ attr_accessor :parent
+
+ def initialize parent
+ @parent = parent
+ end
+ end
+
+ class TestObject < TestCase
+ def test_dump_with_tag
+ tag = Tagged.new
+ assert_match('foo', Psych.dump(tag))
+ end
+
+ def test_tag_round_trip
+ tag = Tagged.new
+ tag2 = Psych.load(Psych.dump(tag))
+ assert_equal tag.baz, tag2.baz
+ assert_instance_of(Tagged, tag2)
+ end
+
+ def test_cyclic_references
+ foo = Foo.new(nil)
+ foo.parent = foo
+ loaded = Psych.load Psych.dump foo
+
+ assert_instance_of(Foo, loaded)
+ assert_equal loaded, loaded.parent
+ end
+ end
+end
diff --git a/test/psych/test_object_references.rb b/test/psych/test_object_references.rb
new file mode 100644
index 0000000000..77cc96e29d
--- /dev/null
+++ b/test/psych/test_object_references.rb
@@ -0,0 +1,67 @@
+require 'psych/helper'
+
+module Psych
+ class TestObjectReferences < TestCase
+ def test_range_has_references
+ assert_reference_trip 1..2
+ end
+
+ def test_module_has_references
+ assert_reference_trip Psych
+ end
+
+ def test_class_has_references
+ assert_reference_trip TestObjectReferences
+ end
+
+ def test_rational_has_references
+ assert_reference_trip Rational('1.2')
+ end
+
+ def test_complex_has_references
+ assert_reference_trip Complex(1, 2)
+ end
+
+ def test_datetime_has_references
+ assert_reference_trip DateTime.now
+ end
+
+ def assert_reference_trip obj
+ yml = Psych.dump([obj, obj])
+ assert_match(/\*\d+/, yml)
+ data = Psych.load yml
+ assert_equal data.first.object_id, data.last.object_id
+ end
+
+ def test_float_references
+ data = Psych.load <<-eoyml
+---
+- &name 1.2
+- *name
+ eoyml
+ assert_equal data.first, data.last
+ assert_equal data.first.object_id, data.last.object_id
+ end
+
+ def test_binary_references
+ data = Psych.load <<-eoyml
+---
+- &name !binary |-
+ aGVsbG8gd29ybGQh
+- *name
+ eoyml
+ assert_equal data.first, data.last
+ assert_equal data.first.object_id, data.last.object_id
+ end
+
+ def test_regexp_references
+ data = Psych.load <<-eoyml
+---
+- &name !ruby/regexp /pattern/i
+- *name
+ eoyml
+ assert_equal data.first, data.last
+ assert_equal data.first.object_id, data.last.object_id
+ end
+ end
+end
diff --git a/test/psych/test_omap.rb b/test/psych/test_omap.rb
new file mode 100644
index 0000000000..53f55f5aec
--- /dev/null
+++ b/test/psych/test_omap.rb
@@ -0,0 +1,68 @@
+require 'psych/helper'
+
+module Psych
+ class TestOmap < TestCase
+ def test_self_referential
+ map = Psych::Omap.new
+ map['foo'] = 'bar'
+ map['self'] = map
+ assert_equal(map, Psych.load(Psych.dump(map)))
+ end
+
+ def test_keys
+ map = Psych::Omap.new
+ map['foo'] = 'bar'
+ assert_equal 'bar', map['foo']
+ end
+
+ def test_order
+ map = Psych::Omap.new
+ map['a'] = 'b'
+ map['b'] = 'c'
+ assert_equal [%w{a b}, %w{b c}], map.to_a
+ end
+
+ def test_square
+ list = [["a", "b"], ["b", "c"]]
+ map = Psych::Omap[*list.flatten]
+ assert_equal list, map.to_a
+ assert_equal 'b', map['a']
+ assert_equal 'c', map['b']
+ end
+
+ def test_dump
+ map = Psych::Omap['a', 'b', 'c', 'd']
+ yaml = Psych.dump(map)
+ assert_match('!omap', yaml)
+ assert_match('- a: b', yaml)
+ assert_match('- c: d', yaml)
+ end
+
+ def test_round_trip
+ list = [["a", "b"], ["b", "c"]]
+ map = Psych::Omap[*list.flatten]
+ assert_cycle(map)
+ end
+
+ def test_load
+ list = [["a", "b"], ["c", "d"]]
+ map = Psych.load(<<-eoyml)
+--- !omap
+- a: b
+- c: d
+ eoyml
+ assert_equal list, map.to_a
+ end
+
+ # NOTE: This test will not work with Syck
+ def test_load_shorthand
+ list = [["a", "b"], ["c", "d"]]
+ map = Psych.load(<<-eoyml)
+--- !!omap
+- a: b
+- c: d
+ eoyml
+ assert_equal list, map.to_a
+ end
+ end
+end
diff --git a/test/psych/test_parser.rb b/test/psych/test_parser.rb
new file mode 100644
index 0000000000..d8c53f2d0d
--- /dev/null
+++ b/test/psych/test_parser.rb
@@ -0,0 +1,332 @@
+# coding: utf-8
+
+require 'psych/helper'
+
+module Psych
+ class TestParser < TestCase
+ class EventCatcher < Handler
+ attr_accessor :parser
+ attr_reader :calls, :marks
+ def initialize
+ @parser = nil
+ @calls = []
+ @marks = []
+ end
+
+ (Handler.instance_methods(true) -
+ Object.instance_methods).each do |m|
+ class_eval %{
+ def #{m} *args
+ super
+ @marks << @parser.mark if @parser
+ @calls << [:#{m}, args]
+ end
+ }
+ end
+ end
+
+ def setup
+ super
+ @handler = EventCatcher.new
+ @parser = Psych::Parser.new @handler
+ @handler.parser = @parser
+ end
+
+ def test_exception_memory_leak
+ yaml = <<-eoyaml
+%YAML 1.1
+%TAG ! tag:tenderlovemaking.com,2009:
+--- &ponies
+- first element
+- *ponies
+- foo: bar
+...
+ eoyaml
+
+ [:start_stream, :start_document, :end_document, :alias, :scalar,
+ :start_sequence, :end_sequence, :start_mapping, :end_mapping,
+ :end_stream].each do |method|
+
+ klass = Class.new(Psych::Handler) do
+ define_method(method) do |*args|
+ raise
+ end
+ end
+
+ parser = Psych::Parser.new klass.new
+ 2.times {
+ assert_raises(RuntimeError, method.to_s) do
+ parser.parse yaml
+ end
+ }
+ end
+ end
+
+ def test_multiparse
+ 3.times do
+ @parser.parse '--- foo'
+ end
+ end
+
+ def test_filename
+ ex = assert_raises(Psych::SyntaxError) do
+ @parser.parse '--- `', 'omg!'
+ end
+ assert_match 'omg!', ex.message
+ end
+
+ def test_line_numbers
+ assert_equal 0, @parser.mark.line
+ @parser.parse "---\n- hello\n- world"
+ line_calls = @handler.marks.map(&:line).zip(@handler.calls.map(&:first))
+ assert_equal [[0, :start_stream],
+ [0, :start_document],
+ [1, :start_sequence],
+ [2, :scalar],
+ [3, :scalar],
+ [3, :end_sequence],
+ [3, :end_document],
+ [3, :end_stream]], line_calls
+
+ assert_equal 3, @parser.mark.line
+ end
+
+ def test_column_numbers
+ assert_equal 0, @parser.mark.column
+ @parser.parse "---\n- hello\n- world"
+ col_calls = @handler.marks.map(&:column).zip(@handler.calls.map(&:first))
+ assert_equal [[0, :start_stream],
+ [3, :start_document],
+ [1, :start_sequence],
+ [0, :scalar],
+ [0, :scalar],
+ [0, :end_sequence],
+ [0, :end_document],
+ [0, :end_stream]], col_calls
+
+ assert_equal 0, @parser.mark.column
+ end
+
+ def test_index_numbers
+ assert_equal 0, @parser.mark.index
+ @parser.parse "---\n- hello\n- world"
+ idx_calls = @handler.marks.map(&:index).zip(@handler.calls.map(&:first))
+ assert_equal [[0, :start_stream],
+ [3, :start_document],
+ [5, :start_sequence],
+ [12, :scalar],
+ [19, :scalar],
+ [19, :end_sequence],
+ [19, :end_document],
+ [19, :end_stream]], idx_calls
+
+ assert_equal 19, @parser.mark.index
+ end
+
+ def test_bom
+ tadpole = 'ãŠãŸã¾ã˜ã‚ƒãã—'
+
+ # BOM + text
+ yml = "\uFEFF#{tadpole}".encode('UTF-16LE')
+ @parser.parse yml
+ assert_equal tadpole, @parser.handler.calls[2][1].first
+ end
+
+ def test_external_encoding
+ tadpole = 'ãŠãŸã¾ã˜ã‚ƒãã—'
+
+ @parser.external_encoding = Psych::Parser::UTF16LE
+ @parser.parse tadpole.encode 'UTF-16LE'
+ assert_equal tadpole, @parser.handler.calls[2][1].first
+ end
+
+ def test_bogus_io
+ o = Object.new
+ def o.external_encoding; nil end
+ def o.read len; self end
+
+ assert_raises(TypeError) do
+ @parser.parse o
+ end
+ end
+
+ def test_parse_io
+ @parser.parse StringIO.new("--- a")
+ assert_called :start_stream
+ assert_called :scalar
+ assert_called :end_stream
+ end
+
+ def test_syntax_error
+ assert_raises(Psych::SyntaxError) do
+ @parser.parse("---\n\"foo\"\n\"bar\"\n")
+ end
+ end
+
+ def test_syntax_error_twice
+ assert_raises(Psych::SyntaxError) do
+ @parser.parse("---\n\"foo\"\n\"bar\"\n")
+ end
+
+ assert_raises(Psych::SyntaxError) do
+ @parser.parse("---\n\"foo\"\n\"bar\"\n")
+ end
+ end
+
+ def test_syntax_error_has_path_for_string
+ e = assert_raises(Psych::SyntaxError) do
+ @parser.parse("---\n\"foo\"\n\"bar\"\n")
+ end
+ assert_match '(<unknown>):', e.message
+ end
+
+ def test_syntax_error_has_path_for_io
+ io = StringIO.new "---\n\"foo\"\n\"bar\"\n"
+ def io.path; "hello!"; end
+
+ e = assert_raises(Psych::SyntaxError) do
+ @parser.parse(io)
+ end
+ assert_match "(#{io.path}):", e.message
+ end
+
+ def test_mapping_end
+ @parser.parse("---\n!!map { key: value }")
+ assert_called :end_mapping
+ end
+
+ def test_mapping_tag
+ @parser.parse("---\n!!map { key: value }")
+ assert_called :start_mapping, ["tag:yaml.org,2002:map", false, Nodes::Mapping::FLOW]
+ end
+
+ def test_mapping_anchor
+ @parser.parse("---\n&A { key: value }")
+ assert_called :start_mapping, ['A', true, Nodes::Mapping::FLOW]
+ end
+
+ def test_mapping_block
+ @parser.parse("---\n key: value")
+ assert_called :start_mapping, [true, Nodes::Mapping::BLOCK]
+ end
+
+ def test_mapping_start
+ @parser.parse("---\n{ key: value }")
+ assert_called :start_mapping
+ assert_called :start_mapping, [true, Nodes::Mapping::FLOW]
+ end
+
+ def test_sequence_end
+ @parser.parse("---\n&A [1, 2]")
+ assert_called :end_sequence
+ end
+
+ def test_sequence_start_anchor
+ @parser.parse("---\n&A [1, 2]")
+ assert_called :start_sequence, ["A", true, Nodes::Sequence::FLOW]
+ end
+
+ def test_sequence_start_tag
+ @parser.parse("---\n!!seq [1, 2]")
+ assert_called :start_sequence, ["tag:yaml.org,2002:seq", false, Nodes::Sequence::FLOW]
+ end
+
+ def test_sequence_start_flow
+ @parser.parse("---\n[1, 2]")
+ assert_called :start_sequence, [true, Nodes::Sequence::FLOW]
+ end
+
+ def test_sequence_start_block
+ @parser.parse("---\n - 1\n - 2")
+ assert_called :start_sequence, [true, Nodes::Sequence::BLOCK]
+ end
+
+ def test_literal_scalar
+ @parser.parse(<<-eoyml)
+%YAML 1.1
+---
+"literal\n\
+ \ttext\n"
+ eoyml
+ assert_called :scalar, ['literal text ', false, true, Nodes::Scalar::DOUBLE_QUOTED]
+ end
+
+ def test_scalar
+ @parser.parse("--- foo\n")
+ assert_called :scalar, ['foo', true, false, Nodes::Scalar::PLAIN]
+ end
+
+ def test_scalar_with_tag
+ @parser.parse("---\n!!str foo\n")
+ assert_called :scalar, ['foo', 'tag:yaml.org,2002:str', false, false, Nodes::Scalar::PLAIN]
+ end
+
+ def test_scalar_with_anchor
+ @parser.parse("---\n&A foo\n")
+ assert_called :scalar, ['foo', 'A', true, false, Nodes::Scalar::PLAIN]
+ end
+
+ def test_scalar_plain_implicit
+ @parser.parse("---\n&A foo\n")
+ assert_called :scalar, ['foo', 'A', true, false, Nodes::Scalar::PLAIN]
+ end
+
+ def test_alias
+ @parser.parse(<<-eoyml)
+%YAML 1.1
+---
+!!seq [
+ !!str "Without properties",
+ &A !!str "Anchored",
+ !!str "Tagged",
+ *A,
+ !!str "",
+]
+ eoyml
+ assert_called :alias, ['A']
+ end
+
+ def test_end_stream
+ @parser.parse("--- foo\n")
+ assert_called :end_stream
+ end
+
+ def test_start_stream
+ @parser.parse("--- foo\n")
+ assert_called :start_stream
+ end
+
+ def test_end_document_implicit
+ @parser.parse("\"foo\"\n")
+ assert_called :end_document, [true]
+ end
+
+ def test_end_document_explicit
+ @parser.parse("\"foo\"\n...")
+ assert_called :end_document, [false]
+ end
+
+ def test_start_document_version
+ @parser.parse("%YAML 1.1\n---\n\"foo\"\n")
+ assert_called :start_document, [[1,1], [], false]
+ end
+
+ def test_start_document_tag
+ @parser.parse("%TAG !yaml! tag:yaml.org,2002\n---\n!yaml!str \"foo\"\n")
+ assert_called :start_document, [[], [['!yaml!', 'tag:yaml.org,2002']], false]
+ end
+
+ def assert_called call, with = nil, parser = @parser
+ if with
+ call = parser.handler.calls.find { |x|
+ x.first == call && x.last.compact == with
+ }
+ assert(call,
+ "#{[call,with].inspect} not in #{parser.handler.calls.inspect}"
+ )
+ else
+ assert parser.handler.calls.any? { |x| x.first == call }
+ end
+ end
+ end
+end
diff --git a/test/psych/test_psych.rb b/test/psych/test_psych.rb
new file mode 100644
index 0000000000..99866998e0
--- /dev/null
+++ b/test/psych/test_psych.rb
@@ -0,0 +1,168 @@
+require 'psych/helper'
+
+require 'stringio'
+require 'tempfile'
+
+class TestPsych < Psych::TestCase
+ def teardown
+ Psych.domain_types.clear
+ end
+
+ def test_line_width
+ yml = Psych.dump('123456 7', { :line_width => 5 })
+ assert_match(/^\s*7/, yml)
+ end
+
+ def test_indent
+ yml = Psych.dump({:a => {'b' => 'c'}}, {:indentation => 5})
+ assert_match(/^[ ]{5}b/, yml)
+ end
+
+ def test_canonical
+ yml = Psych.dump({:a => {'b' => 'c'}}, {:canonical => true})
+ assert_match(/\? ! "b/, yml)
+ end
+
+ def test_header
+ yml = Psych.dump({:a => {'b' => 'c'}}, {:header => true})
+ assert_match(/YAML/, yml)
+ end
+
+ def test_version_array
+ yml = Psych.dump({:a => {'b' => 'c'}}, {:version => [1,1]})
+ assert_match(/1.1/, yml)
+ end
+
+ def test_version_string
+ yml = Psych.dump({:a => {'b' => 'c'}}, {:version => '1.1'})
+ assert_match(/1.1/, yml)
+ end
+
+ def test_version_bool
+ yml = Psych.dump({:a => {'b' => 'c'}}, {:version => true})
+ assert_match(/1.1/, yml)
+ end
+
+ def test_load_argument_error
+ assert_raises(TypeError) do
+ Psych.load nil
+ end
+ end
+
+ def test_non_existing_class_on_deserialize
+ e = assert_raises(ArgumentError) do
+ Psych.load("--- !ruby/object:NonExistent\nfoo: 1")
+ end
+ assert_equal 'undefined class/module NonExistent', e.message
+ end
+
+ def test_dump_stream
+ things = [22, "foo \n", {}]
+ stream = Psych.dump_stream(*things)
+ assert_equal things, Psych.load_stream(stream)
+ end
+
+ def test_dump_file
+ hash = {'hello' => 'TGIF!'}
+ Tempfile.open('fun.yml') do |io|
+ assert_equal io, Psych.dump(hash, io)
+ io.rewind
+ assert_equal Psych.dump(hash), io.read
+ end
+ end
+
+ def test_dump_io
+ hash = {'hello' => 'TGIF!'}
+ stringio = StringIO.new ''
+ assert_equal stringio, Psych.dump(hash, stringio)
+ assert_equal Psych.dump(hash), stringio.string
+ end
+
+ def test_simple
+ assert_equal 'foo', Psych.load("--- foo\n")
+ end
+
+ def test_libyaml_version
+ assert Psych.libyaml_version
+ assert_equal Psych.libyaml_version.join('.'), Psych::LIBYAML_VERSION
+ end
+
+ def test_load_documents
+ docs = Psych.load_documents("--- foo\n...\n--- bar\n...")
+ assert_equal %w{ foo bar }, docs
+ end
+
+ def test_parse_stream
+ docs = Psych.parse_stream("--- foo\n...\n--- bar\n...")
+ assert_equal %w{ foo bar }, docs.children.map { |x| x.transform }
+ end
+
+ def test_add_builtin_type
+ got = nil
+ Psych.add_builtin_type 'omap' do |type, val|
+ got = val
+ end
+ Psych.load('--- !!omap hello')
+ assert_equal 'hello', got
+ ensure
+ Psych.remove_type 'omap'
+ end
+
+ def test_domain_types
+ got = nil
+ Psych.add_domain_type 'foo.bar,2002', 'foo' do |type, val|
+ got = val
+ end
+
+ Psych.load('--- !foo.bar,2002/foo hello')
+ assert_equal 'hello', got
+
+ Psych.load("--- !foo.bar,2002/foo\n- hello\n- world")
+ assert_equal %w{ hello world }, got
+
+ Psych.load("--- !foo.bar,2002/foo\nhello: world")
+ assert_equal({ 'hello' => 'world' }, got)
+ end
+
+ def test_load_file
+ t = Tempfile.new(['yikes', 'yml'])
+ t.binmode
+ t.write('--- hello world')
+ t.close
+ assert_equal 'hello world', Psych.load_file(t.path)
+ t.close(true)
+ end
+
+ def test_parse_file
+ t = Tempfile.new(['yikes', 'yml'])
+ t.binmode
+ t.write('--- hello world')
+ t.close
+ assert_equal 'hello world', Psych.parse_file(t.path).transform
+ t.close(true)
+ end
+
+ def test_degenerate_strings
+ assert_equal false, Psych.load(' ')
+ assert_equal false, Psych.parse(' ')
+ assert_equal false, Psych.load('')
+ assert_equal false, Psych.parse('')
+ end
+
+ def test_callbacks
+ types = []
+ appender = lambda { |*args| types << args }
+
+ Psych.add_builtin_type('foo', &appender)
+ Psych.add_domain_type('example.com,2002', 'foo', &appender)
+ Psych.load <<-eoyml
+- !tag:yaml.org,2002:foo bar
+- !tag:example.com,2002:foo bar
+ eoyml
+
+ assert_equal [
+ ["tag:yaml.org,2002:foo", "bar"],
+ ["tag:example.com,2002:foo", "bar"]
+ ], types
+ end
+end
diff --git a/test/psych/test_scalar.rb b/test/psych/test_scalar.rb
new file mode 100644
index 0000000000..3cf6b0938c
--- /dev/null
+++ b/test/psych/test_scalar.rb
@@ -0,0 +1,11 @@
+# -*- coding: utf-8 -*-
+
+require 'psych/helper'
+
+module Psych
+ class TestScalar < TestCase
+ def test_utf_8
+ assert_equal "日本語", Psych.load("--- 日本語")
+ end
+ end
+end
diff --git a/test/psych/test_scalar_scanner.rb b/test/psych/test_scalar_scanner.rb
new file mode 100644
index 0000000000..cf0dfff6aa
--- /dev/null
+++ b/test/psych/test_scalar_scanner.rb
@@ -0,0 +1,91 @@
+require 'psych/helper'
+require 'date'
+
+module Psych
+ class TestScalarScanner < TestCase
+ attr_reader :ss
+
+ def setup
+ super
+ @ss = Psych::ScalarScanner.new
+ end
+
+ def test_scan_time
+ { '2001-12-15T02:59:43.1Z' => Time.utc(2001, 12, 15, 02, 59, 43, 100000),
+ '2001-12-14t21:59:43.10-05:00' => Time.utc(2001, 12, 15, 02, 59, 43, 100000),
+ '2001-12-14 21:59:43.10 -5' => Time.utc(2001, 12, 15, 02, 59, 43, 100000),
+ '2001-12-15 2:59:43.10' => Time.utc(2001, 12, 15, 02, 59, 43, 100000),
+ '2011-02-24 11:17:06 -0800' => Time.utc(2011, 02, 24, 19, 17, 06)
+ }.each do |time_str, time|
+ assert_equal time, @ss.tokenize(time_str)
+ end
+ end
+
+ def test_scan_bad_dates
+ x = '2000-15-01'
+ assert_equal x, @ss.tokenize(x)
+
+ x = '2000-10-51'
+ assert_equal x, @ss.tokenize(x)
+
+ x = '2000-10-32'
+ assert_equal x, @ss.tokenize(x)
+ end
+
+ def test_scan_good_edge_date
+ x = '2000-1-31'
+ assert_equal Date.strptime(x, '%Y-%m-%d'), @ss.tokenize(x)
+ end
+
+ def test_scan_bad_edge_date
+ x = '2000-11-31'
+ assert_equal x, @ss.tokenize(x)
+ end
+
+ def test_scan_date
+ date = '1980-12-16'
+ token = @ss.tokenize date
+ assert_equal 1980, token.year
+ assert_equal 12, token.month
+ assert_equal 16, token.day
+ end
+
+ def test_scan_inf
+ assert_equal(1 / 0.0, ss.tokenize('.inf'))
+ end
+
+ def test_scan_minus_inf
+ assert_equal(-1 / 0.0, ss.tokenize('-.inf'))
+ end
+
+ def test_scan_nan
+ assert ss.tokenize('.nan').nan?
+ end
+
+ def test_scan_null
+ assert_equal nil, ss.tokenize('null')
+ assert_equal nil, ss.tokenize('~')
+ assert_equal nil, ss.tokenize('')
+ end
+
+ def test_scan_symbol
+ assert_equal :foo, ss.tokenize(':foo')
+ end
+
+ def test_scan_sexagesimal_float
+ assert_equal 685230.15, ss.tokenize('190:20:30.15')
+ end
+
+ def test_scan_sexagesimal_int
+ assert_equal 685230, ss.tokenize('190:20:30')
+ end
+
+ def test_scan_float
+ assert_equal 1.2, ss.tokenize('1.2')
+ end
+
+ def test_scan_true
+ assert_equal true, ss.tokenize('true')
+ end
+ end
+end
diff --git a/test/psych/test_serialize_subclasses.rb b/test/psych/test_serialize_subclasses.rb
new file mode 100644
index 0000000000..c8221928a1
--- /dev/null
+++ b/test/psych/test_serialize_subclasses.rb
@@ -0,0 +1,38 @@
+require 'psych/helper'
+
+module Psych
+ class TestSerializeSubclasses < TestCase
+ class SomeObject
+ def initialize one, two
+ @one = one
+ @two = two
+ end
+
+ def == other
+ @one == other.instance_eval { @one } &&
+ @two == other.instance_eval { @two }
+ end
+ end
+
+ def test_some_object
+ so = SomeObject.new('foo', [1,2,3])
+ assert_equal so, Psych.load(Psych.dump(so))
+ end
+
+ class StructSubclass < Struct.new(:foo)
+ def initialize foo, bar
+ super(foo)
+ @bar = bar
+ end
+
+ def == other
+ super(other) && @bar == other.instance_eval{ @bar }
+ end
+ end
+
+ def test_struct_subclass
+ so = StructSubclass.new('foo', [1,2,3])
+ assert_equal so, Psych.load(Psych.dump(so))
+ end
+ end
+end
diff --git a/test/psych/test_set.rb b/test/psych/test_set.rb
new file mode 100644
index 0000000000..bea67d95b6
--- /dev/null
+++ b/test/psych/test_set.rb
@@ -0,0 +1,49 @@
+require 'psych/helper'
+
+module Psych
+ class TestSet < TestCase
+ def setup
+ super
+ @set = Psych::Set.new
+ @set['foo'] = 'bar'
+ @set['bar'] = 'baz'
+ end
+
+ def test_dump
+ assert_match(/!set/, Psych.dump(@set))
+ end
+
+ def test_roundtrip
+ assert_cycle(@set)
+ end
+
+ ###
+ # FIXME: Syck should also support !!set as shorthand
+ def test_load_from_yaml
+ loaded = Psych.load(<<-eoyml)
+--- !set
+foo: bar
+bar: baz
+ eoyml
+ assert_equal(@set, loaded)
+ end
+
+ def test_loaded_class
+ assert_instance_of(Psych::Set, Psych.load(Psych.dump(@set)))
+ end
+
+ def test_set_shorthand
+ loaded = Psych.load(<<-eoyml)
+--- !!set
+foo: bar
+bar: baz
+ eoyml
+ assert_instance_of(Psych::Set, loaded)
+ end
+
+ def test_set_self_reference
+ @set['self'] = @set
+ assert_cycle(@set)
+ end
+ end
+end
diff --git a/test/psych/test_stream.rb b/test/psych/test_stream.rb
new file mode 100644
index 0000000000..beca365608
--- /dev/null
+++ b/test/psych/test_stream.rb
@@ -0,0 +1,93 @@
+require 'psych/helper'
+
+module Psych
+ class TestStream < TestCase
+ def test_parse_partial
+ rb = Psych.parse("--- foo\n...\n--- `").to_ruby
+ assert_equal 'foo', rb
+ end
+
+ def test_load_partial
+ rb = Psych.load("--- foo\n...\n--- `")
+ assert_equal 'foo', rb
+ end
+
+ def test_parse_stream_yields_documents
+ list = []
+ Psych.parse_stream("--- foo\n...\n--- bar") do |doc|
+ list << doc.to_ruby
+ end
+ assert_equal %w{ foo bar }, list
+ end
+
+ def test_parse_stream_break
+ list = []
+ Psych.parse_stream("--- foo\n...\n--- `") do |doc|
+ list << doc.to_ruby
+ break
+ end
+ assert_equal %w{ foo }, list
+ end
+
+ def test_load_stream_yields_documents
+ list = []
+ Psych.load_stream("--- foo\n...\n--- bar") do |ruby|
+ list << ruby
+ end
+ assert_equal %w{ foo bar }, list
+ end
+
+ def test_load_stream_break
+ list = []
+ Psych.load_stream("--- foo\n...\n--- `") do |ruby|
+ list << ruby
+ break
+ end
+ assert_equal %w{ foo }, list
+ end
+
+ def test_explicit_documents
+ io = StringIO.new
+ stream = Psych::Stream.new(io)
+ stream.start
+ stream.push({ 'foo' => 'bar' })
+
+ assert !stream.finished?, 'stream not finished'
+ stream.finish
+ assert stream.finished?, 'stream finished'
+
+ assert_match(/^---/, io.string)
+ assert_match(/\.\.\.$/, io.string)
+ end
+
+ def test_start_takes_block
+ io = StringIO.new
+ stream = Psych::Stream.new(io)
+ stream.start do |emitter|
+ emitter.push({ 'foo' => 'bar' })
+ end
+
+ assert stream.finished?, 'stream finished'
+ assert_match(/^---/, io.string)
+ assert_match(/\.\.\.$/, io.string)
+ end
+
+ def test_no_backreferences
+ io = StringIO.new
+ stream = Psych::Stream.new(io)
+ stream.start do |emitter|
+ x = { 'foo' => 'bar' }
+ emitter.push x
+ emitter.push x
+ end
+
+ assert stream.finished?, 'stream finished'
+ assert_match(/^---/, io.string)
+ assert_match(/\.\.\.$/, io.string)
+ assert_equal 2, io.string.scan('---').length
+ assert_equal 2, io.string.scan('...').length
+ assert_equal 2, io.string.scan('foo').length
+ assert_equal 2, io.string.scan('bar').length
+ end
+ end
+end
diff --git a/test/psych/test_string.rb b/test/psych/test_string.rb
new file mode 100644
index 0000000000..c7d5c60623
--- /dev/null
+++ b/test/psych/test_string.rb
@@ -0,0 +1,88 @@
+require 'psych/helper'
+
+module Psych
+ class TestString < TestCase
+ class X < String
+ end
+
+ class Y < String
+ attr_accessor :val
+ end
+
+ def test_backwards_with_syck
+ x = Psych.load "--- !str:#{X.name} foo\n\n"
+ assert_equal X, x.class
+ assert_equal 'foo', x
+ end
+
+ def test_empty_subclass
+ assert_match "!ruby/string:#{X}", Psych.dump(X.new)
+ x = Psych.load Psych.dump X.new
+ assert_equal X, x.class
+ end
+
+ def test_subclass_with_attributes
+ y = Psych.load Psych.dump Y.new.tap {|y| y.val = 1}
+ assert_equal Y, y.class
+ assert_equal 1, y.val
+ end
+
+ def test_string_with_base_60
+ yaml = Psych.dump '01:03:05'
+ assert_match "'01:03:05'", yaml
+ assert_equal '01:03:05', Psych.load(yaml)
+ end
+
+ def test_tagged_binary_should_be_dumped_as_binary
+ string = "hello world!"
+ string.force_encoding 'ascii-8bit'
+ yml = Psych.dump string
+ assert_match(/binary/, yml)
+ assert_equal string, Psych.load(yml)
+ end
+
+ def test_binary_string_null
+ string = "\x00"
+ yml = Psych.dump string
+ assert_match(/binary/, yml)
+ assert_equal string, Psych.load(yml)
+ end
+
+ def test_binary_string
+ string = binary_string
+ yml = Psych.dump string
+ assert_match(/binary/, yml)
+ assert_equal string, Psych.load(yml)
+ end
+
+ def test_non_binary_string
+ string = binary_string(0.29)
+ yml = Psych.dump string
+ refute_match(/binary/, yml)
+ assert_equal string, Psych.load(yml)
+ end
+
+ def test_string_with_ivars
+ food = "is delicious"
+ ivar = "on rock and roll"
+ food.instance_variable_set(:@we_built_this_city, ivar)
+
+ str = Psych.load Psych.dump food
+ assert_equal ivar, food.instance_variable_get(:@we_built_this_city)
+ end
+
+ def test_binary
+ string = [0, 123,22, 44, 9, 32, 34, 39].pack('C*')
+ assert_cycle string
+ end
+
+ def binary_string percentage = 0.31, length = 100
+ string = ''
+ (percentage * length).to_i.times do |i|
+ string << "\b"
+ end
+ string << 'a' * (length - string.length)
+ string
+ end
+ end
+end
diff --git a/test/psych/test_struct.rb b/test/psych/test_struct.rb
new file mode 100644
index 0000000000..39e38f7dfd
--- /dev/null
+++ b/test/psych/test_struct.rb
@@ -0,0 +1,51 @@
+require 'psych/helper'
+
+class PsychStructWithIvar < Struct.new(:foo)
+ attr_reader :bar
+ def initialize *args
+ super
+ @bar = 'hello'
+ end
+end
+
+module Psych
+ class TestStruct < TestCase
+ class StructSubclass < Struct.new(:foo)
+ def initialize foo, bar
+ super(foo)
+ @bar = bar
+ end
+ end
+
+ def test_self_referential_struct
+ ss = StructSubclass.new(nil, 'foo')
+ ss.foo = ss
+
+ loaded = Psych.load(Psych.dump(ss))
+ assert_instance_of(StructSubclass, loaded.foo)
+
+ # FIXME: This seems to cause an infinite loop. wtf. Must report a bug
+ # in ruby.
+ # assert_equal(ss, loaded)
+ end
+
+ def test_roundtrip
+ thing = PsychStructWithIvar.new('bar')
+ struct = Psych.load(Psych.dump(thing))
+
+ assert_equal 'hello', struct.bar
+ assert_equal 'bar', struct.foo
+ end
+
+ def test_load
+ obj = Psych.load(<<-eoyml)
+--- !ruby/struct:PsychStructWithIvar
+:foo: bar
+:@bar: hello
+ eoyml
+
+ assert_equal 'hello', obj.bar
+ assert_equal 'bar', obj.foo
+ end
+ end
+end
diff --git a/test/psych/test_symbol.rb b/test/psych/test_symbol.rb
new file mode 100644
index 0000000000..3226141d02
--- /dev/null
+++ b/test/psych/test_symbol.rb
@@ -0,0 +1,17 @@
+require 'psych/helper'
+
+module Psych
+ class TestSymbol < TestCase
+ def test_cycle
+ assert_cycle :a
+ end
+
+ def test_stringy
+ assert_cycle :"1"
+ end
+
+ def test_load_quoted
+ assert_equal :"1", Psych.load("--- :'1'\n")
+ end
+ end
+end
diff --git a/test/psych/test_tainted.rb b/test/psych/test_tainted.rb
new file mode 100644
index 0000000000..fdcced4cf3
--- /dev/null
+++ b/test/psych/test_tainted.rb
@@ -0,0 +1,130 @@
+require 'psych/helper'
+
+module Psych
+ class TestStringTainted < TestCase
+ class Tainted < Handler
+ attr_reader :tc
+
+ def initialize tc
+ @tc = tc
+ end
+
+ def start_document version, tags, implicit
+ tags.flatten.each do |tag|
+ assert_taintedness tag
+ end
+ end
+
+ def alias name
+ assert_taintedness name
+ end
+
+ def scalar value, anchor, tag, plain, quoted, style
+ assert_taintedness value
+ assert_taintedness tag if tag
+ assert_taintedness anchor if anchor
+ end
+
+ def start_sequence anchor, tag, implicit, style
+ assert_taintedness tag if tag
+ assert_taintedness anchor if anchor
+ end
+
+ def start_mapping anchor, tag, implicit, style
+ assert_taintedness tag if tag
+ assert_taintedness anchor if anchor
+ end
+
+ def assert_taintedness thing, message = "'#{thing}' should be tainted"
+ tc.assert thing.tainted?, message
+ end
+ end
+
+ class Untainted < Tainted
+ def assert_taintedness thing, message = "'#{thing}' should not be tainted"
+ tc.assert !thing.tainted?, message
+ end
+ end
+
+
+ def setup
+ handler = Tainted.new self
+ @parser = Psych::Parser.new handler
+ end
+
+ def test_tags_are_tainted
+ assert_taintedness "%TAG !yaml! tag:yaml.org,2002:\n---\n!yaml!str \"foo\""
+ end
+
+ def test_alias
+ assert_taintedness "--- &ponies\n- foo\n- *ponies"
+ end
+
+ def test_scalar
+ assert_taintedness "--- ponies"
+ end
+
+ def test_anchor
+ assert_taintedness "--- &hi ponies"
+ end
+
+ def test_scalar_tag
+ assert_taintedness "--- !str ponies"
+ end
+
+ def test_seq_start_tag
+ assert_taintedness "--- !!seq [ a ]"
+ end
+
+ def test_seq_start_anchor
+ assert_taintedness "--- &zomg [ a ]"
+ end
+
+ def test_seq_mapping_tag
+ assert_taintedness "--- !!map { a: b }"
+ end
+
+ def test_seq_mapping_anchor
+ assert_taintedness "--- &himom { a: b }"
+ end
+
+ def assert_taintedness string
+ @parser.parse string.taint
+ end
+ end
+
+ class TestStringUntainted < TestStringTainted
+ def setup
+ handler = Untainted.new self
+ @parser = Psych::Parser.new handler
+ end
+
+ def assert_taintedness string
+ @parser.parse string
+ end
+ end
+
+ class TestStringIOUntainted < TestStringTainted
+ def setup
+ handler = Untainted.new self
+ @parser = Psych::Parser.new handler
+ end
+
+ def assert_taintedness string
+ @parser.parse StringIO.new(string)
+ end
+ end
+
+ class TestIOTainted < TestStringTainted
+ def assert_taintedness string
+ t = Tempfile.new(['something', 'yml'])
+ t.binmode
+ t.write string
+ t.close
+ File.open(t.path, 'r:bom|utf-8') { |f|
+ @parser.parse f
+ }
+ t.close(true)
+ end
+ end
+end
diff --git a/test/psych/test_to_yaml_properties.rb b/test/psych/test_to_yaml_properties.rb
new file mode 100644
index 0000000000..2636becf00
--- /dev/null
+++ b/test/psych/test_to_yaml_properties.rb
@@ -0,0 +1,63 @@
+require 'psych/helper'
+
+module Psych
+ class TestToYamlProperties < MiniTest::Unit::TestCase
+ class Foo
+ attr_accessor :a, :b, :c
+ def initialize
+ @a = 1
+ @b = 2
+ @c = 3
+ end
+
+ def to_yaml_properties
+ [:@a, :@b]
+ end
+ end
+
+ def test_object_dump_yaml_properties
+ foo = Psych.load(Psych.dump(Foo.new))
+ assert_equal 1, foo.a
+ assert_equal 2, foo.b
+ assert_nil foo.c
+ end
+
+ class Bar < Struct.new(:foo, :bar)
+ attr_reader :baz
+ def initialize *args
+ super
+ @baz = 'hello'
+ end
+
+ def to_yaml_properties
+ []
+ end
+ end
+
+ def test_struct_dump_yaml_properties
+ bar = Psych.load(Psych.dump(Bar.new('a', 'b')))
+ assert_equal 'a', bar.foo
+ assert_equal 'b', bar.bar
+ assert_nil bar.baz
+ end
+
+ def test_string_dump
+ string = "okonomiyaki"
+ class << string
+ def to_yaml_properties
+ [:@tastes]
+ end
+ end
+
+ string.instance_variable_set(:@tastes, 'delicious')
+ v = Psych.load Psych.dump string
+ assert_equal 'delicious', v.instance_variable_get(:@tastes)
+ end
+
+ def test_string_load_syck
+ str = Psych.load("--- !str \nstr: okonomiyaki\n:@tastes: delicious\n")
+ assert_equal 'okonomiyaki', str
+ assert_equal 'delicious', str.instance_variable_get(:@tastes)
+ end
+ end
+end
diff --git a/test/psych/test_tree_builder.rb b/test/psych/test_tree_builder.rb
new file mode 100644
index 0000000000..9a134d5a2d
--- /dev/null
+++ b/test/psych/test_tree_builder.rb
@@ -0,0 +1,79 @@
+require 'psych/helper'
+
+module Psych
+ class TestTreeBuilder < TestCase
+ def setup
+ super
+ @parser = Psych::Parser.new TreeBuilder.new
+ @parser.parse(<<-eoyml)
+%YAML 1.1
+---
+- foo
+- {
+ bar : &A !!str baz,
+ boo : *A
+}
+- *A
+ eoyml
+ @tree = @parser.handler.root
+ end
+
+ def test_stream
+ assert_instance_of Nodes::Stream, @tree
+ end
+
+ def test_documents
+ assert_equal 1, @tree.children.length
+ assert_instance_of Nodes::Document, @tree.children.first
+ doc = @tree.children.first
+
+ assert_equal [1,1], doc.version
+ assert_equal [], doc.tag_directives
+ assert_equal false, doc.implicit
+ end
+
+ def test_sequence
+ doc = @tree.children.first
+ assert_equal 1, doc.children.length
+
+ seq = doc.children.first
+ assert_instance_of Nodes::Sequence, seq
+ assert_nil seq.anchor
+ assert_nil seq.tag
+ assert_equal true, seq.implicit
+ assert_equal Nodes::Sequence::BLOCK, seq.style
+ end
+
+ def test_scalar
+ doc = @tree.children.first
+ seq = doc.children.first
+
+ assert_equal 3, seq.children.length
+ scalar = seq.children.first
+ assert_instance_of Nodes::Scalar, scalar
+ assert_equal 'foo', scalar.value
+ assert_nil scalar.anchor
+ assert_nil scalar.tag
+ assert_equal true, scalar.plain
+ assert_equal false, scalar.quoted
+ assert_equal Nodes::Scalar::PLAIN, scalar.style
+ end
+
+ def test_mapping
+ doc = @tree.children.first
+ seq = doc.children.first
+ map = seq.children[1]
+
+ assert_instance_of Nodes::Mapping, map
+ end
+
+ def test_alias
+ doc = @tree.children.first
+ seq = doc.children.first
+ assert_equal 3, seq.children.length
+ al = seq.children[2]
+ assert_instance_of Nodes::Alias, al
+ assert_equal 'A', al.anchor
+ end
+ end
+end
diff --git a/test/psych/test_yaml.rb b/test/psych/test_yaml.rb
new file mode 100644
index 0000000000..807c058d2e
--- /dev/null
+++ b/test/psych/test_yaml.rb
@@ -0,0 +1,1269 @@
+# -*- mode: ruby; ruby-indent-level: 4; tab-width: 4 -*-
+# vim:sw=4:ts=4
+# $Id$
+#
+require 'psych/helper'
+require 'ostruct'
+
+# [ruby-core:01946]
+module Psych_Tests
+ StructTest = Struct::new( :c )
+end
+
+class Psych_Unit_Tests < Psych::TestCase
+ def teardown
+ Psych.domain_types.clear
+ end
+
+ def test_y_method
+ assert_raises(NoMethodError) do
+ OpenStruct.new.y 1
+ end
+ end
+
+ def test_syck_compat
+ time = Time.utc(2010, 10, 10)
+ yaml = Psych.dump time
+ assert_match "2010-10-10 00:00:00.000000000 Z", yaml
+ end
+
+ # [ruby-core:34969]
+ def test_regexp_with_n
+ assert_cycle(Regexp.new('',0,'n'))
+ end
+ #
+ # Tests modified from 00basic.t in Psych.pm
+ #
+ def test_basic_map
+ # Simple map
+ assert_parse_only(
+ { 'one' => 'foo', 'three' => 'baz', 'two' => 'bar' }, <<EOY
+one: foo
+two: bar
+three: baz
+EOY
+ )
+ end
+
+ def test_basic_strings
+ # Common string types
+ assert_cycle("x")
+ assert_cycle(":x")
+ assert_cycle(":")
+ assert_parse_only(
+ { 1 => 'simple string', 2 => 42, 3 => '1 Single Quoted String',
+ 4 => 'Psych\'s Double "Quoted" String', 5 => "A block\n with several\n lines.\n",
+ 6 => "A \"chomped\" block", 7 => "A folded\n string\n", 8 => ": started string" },
+ <<EOY
+1: simple string
+2: 42
+3: '1 Single Quoted String'
+4: "Psych's Double \\\"Quoted\\\" String"
+5: |
+ A block
+ with several
+ lines.
+6: |-
+ A "chomped" block
+7: >
+ A
+ folded
+ string
+8: ": started string"
+EOY
+ )
+ end
+
+ #
+ # Test the specification examples
+ # - Many examples have been changes because of whitespace problems that
+ # caused the two to be inequivalent, or keys to be sorted wrong
+ #
+
+ def test_spec_simple_implicit_sequence
+ # Simple implicit sequence
+ assert_to_yaml(
+ [ 'Mark McGwire', 'Sammy Sosa', 'Ken Griffey' ], <<EOY
+- Mark McGwire
+- Sammy Sosa
+- Ken Griffey
+EOY
+ )
+ end
+
+ def test_spec_simple_implicit_map
+ # Simple implicit map
+ assert_to_yaml(
+ { 'hr' => 65, 'avg' => 0.278, 'rbi' => 147 }, <<EOY
+avg: 0.278
+hr: 65
+rbi: 147
+EOY
+ )
+ end
+
+ def test_spec_simple_map_with_nested_sequences
+ # Simple mapping with nested sequences
+ assert_to_yaml(
+ { 'american' =>
+ [ 'Boston Red Sox', 'Detroit Tigers', 'New York Yankees' ],
+ 'national' =>
+ [ 'New York Mets', 'Chicago Cubs', 'Atlanta Braves' ] }, <<EOY
+american:
+ - Boston Red Sox
+ - Detroit Tigers
+ - New York Yankees
+national:
+ - New York Mets
+ - Chicago Cubs
+ - Atlanta Braves
+EOY
+ )
+ end
+
+ def test_spec_simple_sequence_with_nested_map
+ # Simple sequence with nested map
+ assert_to_yaml(
+ [
+ {'name' => 'Mark McGwire', 'hr' => 65, 'avg' => 0.278},
+ {'name' => 'Sammy Sosa', 'hr' => 63, 'avg' => 0.288}
+ ], <<EOY
+-
+ avg: 0.278
+ hr: 65
+ name: Mark McGwire
+-
+ avg: 0.288
+ hr: 63
+ name: Sammy Sosa
+EOY
+ )
+ end
+
+ def test_spec_sequence_of_sequences
+ # Simple sequence with inline sequences
+ assert_parse_only(
+ [
+ [ 'name', 'hr', 'avg' ],
+ [ 'Mark McGwire', 65, 0.278 ],
+ [ 'Sammy Sosa', 63, 0.288 ]
+ ], <<EOY
+- [ name , hr , avg ]
+- [ Mark McGwire , 65 , 0.278 ]
+- [ Sammy Sosa , 63 , 0.288 ]
+EOY
+ )
+ end
+
+ def test_spec_mapping_of_mappings
+ # Simple map with inline maps
+ assert_parse_only(
+ { 'Mark McGwire' =>
+ { 'hr' => 65, 'avg' => 0.278 },
+ 'Sammy Sosa' =>
+ { 'hr' => 63, 'avg' => 0.288 }
+ }, <<EOY
+Mark McGwire: {hr: 65, avg: 0.278}
+Sammy Sosa: {hr: 63,
+ avg: 0.288}
+EOY
+ )
+ end
+
+ def test_ambiguous_comments
+ # [ruby-talk:88012]
+ assert_to_yaml( "Call the method #dave", <<EOY )
+--- "Call the method #dave"
+EOY
+ end
+
+ def test_spec_nested_comments
+ # Map and sequences with comments
+ assert_parse_only(
+ { 'hr' => [ 'Mark McGwire', 'Sammy Sosa' ],
+ 'rbi' => [ 'Sammy Sosa', 'Ken Griffey' ] }, <<EOY
+hr: # 1998 hr ranking
+ - Mark McGwire
+ - Sammy Sosa
+rbi:
+ # 1998 rbi ranking
+ - Sammy Sosa
+ - Ken Griffey
+EOY
+ )
+ end
+
+ def test_spec_anchors_and_aliases
+ # Anchors and aliases
+ assert_parse_only(
+ { 'hr' =>
+ [ 'Mark McGwire', 'Sammy Sosa' ],
+ 'rbi' =>
+ [ 'Sammy Sosa', 'Ken Griffey' ] }, <<EOY
+hr:
+ - Mark McGwire
+ # Name "Sammy Sosa" scalar SS
+ - &SS Sammy Sosa
+rbi:
+ # So it can be referenced later.
+ - *SS
+ - Ken Griffey
+EOY
+ )
+
+ assert_to_yaml(
+ [{"arrival"=>"EDI", "departure"=>"LAX", "fareref"=>"DOGMA", "currency"=>"GBP"}, {"arrival"=>"MEL", "departure"=>"SYD", "fareref"=>"MADF", "currency"=>"AUD"}, {"arrival"=>"MCO", "departure"=>"JFK", "fareref"=>"DFSF", "currency"=>"USD"}], <<EOY
+ -
+ &F fareref: DOGMA
+ &C currency: GBP
+ &D departure: LAX
+ &A arrival: EDI
+ - { *F: MADF, *C: AUD, *D: SYD, *A: MEL }
+ - { *F: DFSF, *C: USD, *D: JFK, *A: MCO }
+EOY
+ )
+
+ assert_to_yaml(
+ {"ALIASES"=>["fareref", "currency", "departure", "arrival"], "FARES"=>[{"arrival"=>"EDI", "departure"=>"LAX", "fareref"=>"DOGMA", "currency"=>"GBP"}, {"arrival"=>"MEL", "departure"=>"SYD", "fareref"=>"MADF", "currency"=>"AUD"}, {"arrival"=>"MCO", "departure"=>"JFK", "fareref"=>"DFSF", "currency"=>"USD"}]}, <<EOY
+---
+ALIASES: [&f fareref, &c currency, &d departure, &a arrival]
+FARES:
+- *f: DOGMA
+ *c: GBP
+ *d: LAX
+ *a: EDI
+
+- *f: MADF
+ *c: AUD
+ *d: SYD
+ *a: MEL
+
+- *f: DFSF
+ *c: USD
+ *d: JFK
+ *a: MCO
+
+EOY
+ )
+
+ end
+
+ def test_spec_mapping_between_sequences
+ # Complex key #1
+ dj = Date.new( 2001, 7, 23 )
+ assert_parse_only(
+ { [ 'Detroit Tigers', 'Chicago Cubs' ] => [ Date.new( 2001, 7, 23 ) ],
+ [ 'New York Yankees', 'Atlanta Braves' ] => [ Date.new( 2001, 7, 2 ), Date.new( 2001, 8, 12 ), Date.new( 2001, 8, 14 ) ] }, <<EOY
+? # PLAY SCHEDULE
+ - Detroit Tigers
+ - Chicago Cubs
+:
+ - 2001-07-23
+
+? [ New York Yankees,
+ Atlanta Braves ]
+: [ 2001-07-02, 2001-08-12,
+ 2001-08-14 ]
+EOY
+ )
+
+ # Complex key #2
+ assert_parse_only(
+ { [ 'New York Yankees', 'Atlanta Braves' ] =>
+ [ Date.new( 2001, 7, 2 ), Date.new( 2001, 8, 12 ),
+ Date.new( 2001, 8, 14 ) ],
+ [ 'Detroit Tigers', 'Chicago Cubs' ] =>
+ [ Date.new( 2001, 7, 23 ) ]
+ }, <<EOY
+?
+ - New York Yankees
+ - Atlanta Braves
+:
+ - 2001-07-02
+ - 2001-08-12
+ - 2001-08-14
+?
+ - Detroit Tigers
+ - Chicago Cubs
+:
+ - 2001-07-23
+EOY
+ )
+ end
+
+ def test_spec_sequence_key_shortcut
+ # Shortcut sequence map
+ assert_parse_only(
+ { 'invoice' => 34843, 'date' => Date.new( 2001, 1, 23 ),
+ 'bill-to' => 'Chris Dumars', 'product' =>
+ [ { 'item' => 'Super Hoop', 'quantity' => 1 },
+ { 'item' => 'Basketball', 'quantity' => 4 },
+ { 'item' => 'Big Shoes', 'quantity' => 1 } ] }, <<EOY
+invoice: 34843
+date : 2001-01-23
+bill-to: Chris Dumars
+product:
+ - item : Super Hoop
+ quantity: 1
+ - item : Basketball
+ quantity: 4
+ - item : Big Shoes
+ quantity: 1
+EOY
+ )
+ end
+
+ def test_spec_sequence_in_sequence_shortcut
+ # Seq-in-seq
+ assert_parse_only( [ [ [ 'one', 'two', 'three' ] ] ], <<EOY )
+- - - one
+ - two
+ - three
+EOY
+ end
+
+ def test_spec_sequence_shortcuts
+ # Sequence shortcuts combined
+ assert_parse_only(
+[
+ [
+ [ [ 'one' ] ],
+ [ 'two', 'three' ],
+ { 'four' => nil },
+ [ { 'five' => [ 'six' ] } ],
+ [ 'seven' ]
+ ],
+ [ 'eight', 'nine' ]
+], <<EOY )
+- - - - one
+ - - two
+ - three
+ - four:
+ - - five:
+ - six
+ - - seven
+- - eight
+ - nine
+EOY
+ end
+
+ def test_spec_single_literal
+ # Literal scalar block
+ assert_parse_only( [ "\\/|\\/|\n/ | |_\n" ], <<EOY )
+- |
+ \\/|\\/|
+ / | |_
+EOY
+ end
+
+ def test_spec_single_folded
+ # Folded scalar block
+ assert_parse_only(
+ [ "Mark McGwire's year was crippled by a knee injury.\n" ], <<EOY
+- >
+ Mark McGwire\'s
+ year was crippled
+ by a knee injury.
+EOY
+ )
+ end
+
+ def test_spec_preserve_indent
+ # Preserve indented spaces
+ assert_parse_only(
+ "Sammy Sosa completed another fine season with great stats.\n\n 63 Home Runs\n 0.288 Batting Average\n\nWhat a year!\n", <<EOY
+--- >
+ Sammy Sosa completed another
+ fine season with great stats.
+
+ 63 Home Runs
+ 0.288 Batting Average
+
+ What a year!
+EOY
+ )
+ end
+
+ def test_spec_indentation_determines_scope
+ assert_parse_only(
+ { 'name' => 'Mark McGwire', 'accomplishment' => "Mark set a major league home run record in 1998.\n",
+ 'stats' => "65 Home Runs\n0.278 Batting Average\n" }, <<EOY
+name: Mark McGwire
+accomplishment: >
+ Mark set a major league
+ home run record in 1998.
+stats: |
+ 65 Home Runs
+ 0.278 Batting Average
+EOY
+ )
+ end
+
+ def test_spec_multiline_scalars
+ # Multiline flow scalars
+ assert_parse_only(
+ { 'plain' => 'This unquoted scalar spans many lines.',
+ 'quoted' => "So does this quoted scalar.\n" }, <<EOY
+plain: This unquoted
+ scalar spans
+ many lines.
+quoted: "\\
+ So does this quoted
+ scalar.\\n"
+EOY
+ )
+ end
+
+ def test_spec_type_int
+ assert_parse_only(
+ { 'canonical' => 12345, 'decimal' => 12345, 'octal' => '014'.oct, 'hexadecimal' => '0xC'.hex }, <<EOY
+canonical: 12345
+decimal: +12,345
+octal: 014
+hexadecimal: 0xC
+EOY
+ )
+ assert_parse_only(
+ { 'canonical' => 685230, 'decimal' => 685230, 'octal' => 02472256, 'hexadecimal' => 0x0A74AE, 'sexagesimal' => 685230 }, <<EOY)
+canonical: 685230
+decimal: +685,230
+octal: 02472256
+hexadecimal: 0x0A,74,AE
+sexagesimal: 190:20:30
+EOY
+ end
+
+ def test_spec_type_float
+ assert_parse_only(
+ { 'canonical' => 1230.15, 'exponential' => 1230.15, 'fixed' => 1230.15,
+ 'negative infinity' => -1.0/0.0 }, <<EOY)
+canonical: 1.23015e+3
+exponential: 12.3015e+02
+fixed: 1,230.15
+negative infinity: -.inf
+EOY
+ nan = Psych::load( <<EOY )
+not a number: .NaN
+EOY
+ assert( nan['not a number'].nan? )
+ end
+
+ def test_spec_type_misc
+ assert_parse_only(
+ { nil => nil, true => true, false => false, 'string' => '12345' }, <<EOY
+null: ~
+true: yes
+false: no
+string: '12345'
+EOY
+ )
+ end
+
+ def test_spec_complex_invoice
+ # Complex invoice type
+ id001 = { 'given' => 'Chris', 'family' => 'Dumars', 'address' =>
+ { 'lines' => "458 Walkman Dr.\nSuite #292\n", 'city' => 'Royal Oak',
+ 'state' => 'MI', 'postal' => 48046 } }
+ assert_parse_only(
+ { 'invoice' => 34843, 'date' => Date.new( 2001, 1, 23 ),
+ 'bill-to' => id001, 'ship-to' => id001, 'product' =>
+ [ { 'sku' => 'BL394D', 'quantity' => 4,
+ 'description' => 'Basketball', 'price' => 450.00 },
+ { 'sku' => 'BL4438H', 'quantity' => 1,
+ 'description' => 'Super Hoop', 'price' => 2392.00 } ],
+ 'tax' => 251.42, 'total' => 4443.52,
+ 'comments' => "Late afternoon is best. Backup contact is Nancy Billsmer @ 338-4338.\n" }, <<EOY
+invoice: 34843
+date : 2001-01-23
+bill-to: &id001
+ given : Chris
+ family : !str Dumars
+ address:
+ lines: |
+ 458 Walkman Dr.
+ Suite #292
+ city : Royal Oak
+ state : MI
+ postal : 48046
+ship-to: *id001
+product:
+ - !map
+ sku : BL394D
+ quantity : 4
+ description : Basketball
+ price : 450.00
+ - sku : BL4438H
+ quantity : 1
+ description : Super Hoop
+ price : 2392.00
+tax : 251.42
+total: 4443.52
+comments: >
+ Late afternoon is best.
+ Backup contact is Nancy
+ Billsmer @ 338-4338.
+EOY
+ )
+ end
+
+ def test_spec_log_file
+ doc_ct = 0
+ Psych::load_documents( <<EOY
+---
+Time: 2001-11-23 15:01:42 -05:00
+User: ed
+Warning: >
+ This is an error message
+ for the log file
+---
+Time: 2001-11-23 15:02:31 -05:00
+User: ed
+Warning: >
+ A slightly different error
+ message.
+---
+Date: 2001-11-23 15:03:17 -05:00
+User: ed
+Fatal: >
+ Unknown variable "bar"
+Stack:
+ - file: TopClass.py
+ line: 23
+ code: |
+ x = MoreObject("345\\n")
+ - file: MoreClass.py
+ line: 58
+ code: |-
+ foo = bar
+EOY
+ ) { |doc|
+ case doc_ct
+ when 0
+ assert_equal( doc, { 'Time' => mktime( 2001, 11, 23, 15, 01, 42, 00, "-05:00" ),
+ 'User' => 'ed', 'Warning' => "This is an error message for the log file\n" } )
+ when 1
+ assert_equal( doc, { 'Time' => mktime( 2001, 11, 23, 15, 02, 31, 00, "-05:00" ),
+ 'User' => 'ed', 'Warning' => "A slightly different error message.\n" } )
+ when 2
+ assert_equal( doc, { 'Date' => mktime( 2001, 11, 23, 15, 03, 17, 00, "-05:00" ),
+ 'User' => 'ed', 'Fatal' => "Unknown variable \"bar\"\n",
+ 'Stack' => [
+ { 'file' => 'TopClass.py', 'line' => 23, 'code' => "x = MoreObject(\"345\\n\")\n" },
+ { 'file' => 'MoreClass.py', 'line' => 58, 'code' => "foo = bar" } ] } )
+ end
+ doc_ct += 1
+ }
+ assert_equal( doc_ct, 3 )
+ end
+
+ def test_spec_root_fold
+ y = Psych::load( <<EOY
+---
+This Psych stream contains a single text value.
+The next stream is a log file - a sequence of
+log entries. Adding an entry to the log is a
+simple matter of appending it at the end.
+EOY
+ )
+ assert_equal( y, "This Psych stream contains a single text value. The next stream is a log file - a sequence of log entries. Adding an entry to the log is a simple matter of appending it at the end." )
+ end
+
+ def test_spec_root_mapping
+ y = Psych::load( <<EOY
+# This stream is an example of a top-level mapping.
+invoice : 34843
+date : 2001-01-23
+total : 4443.52
+EOY
+ )
+ assert_equal( y, { 'invoice' => 34843, 'date' => Date.new( 2001, 1, 23 ), 'total' => 4443.52 } )
+ end
+
+ def test_spec_oneline_docs
+ doc_ct = 0
+ Psych::load_documents( <<EOY
+# The following is a sequence of three documents.
+# The first contains an empty mapping, the second
+# an empty sequence, and the last an empty string.
+--- {}
+--- [ ]
+--- ''
+EOY
+ ) { |doc|
+ case doc_ct
+ when 0
+ assert_equal( doc, {} )
+ when 1
+ assert_equal( doc, [] )
+ when 2
+ assert_equal( doc, '' )
+ end
+ doc_ct += 1
+ }
+ assert_equal( doc_ct, 3 )
+ end
+
+ def test_spec_domain_prefix
+ customer_proc = proc { |type, val|
+ if Hash === val
+ scheme, domain, type = type.split( ':', 3 )
+ val['type'] = "domain #{type}"
+ val
+ else
+ raise ArgumentError, "Not a Hash in domain.tld,2002/invoice: " + val.inspect
+ end
+ }
+ Psych.add_domain_type( "domain.tld,2002", 'invoice', &customer_proc )
+ Psych.add_domain_type( "domain.tld,2002", 'customer', &customer_proc )
+ assert_parse_only( { "invoice"=> { "customers"=> [ { "given"=>"Chris", "type"=>"domain customer", "family"=>"Dumars" } ], "type"=>"domain invoice" } }, <<EOY
+# 'http://domain.tld,2002/invoice' is some type family.
+invoice: !domain.tld,2002/invoice
+ # 'seq' is shorthand for 'http://yaml.org/seq'.
+ # This does not effect '^customer' below
+ # because it is does not specify a prefix.
+ customers: !seq
+ # '^customer' is shorthand for the full
+ # notation 'http://domain.tld,2002/customer'.
+ - !customer
+ given : Chris
+ family : Dumars
+EOY
+ )
+ end
+
+ def test_spec_throwaway
+ assert_parse_only(
+ {"this"=>"contains three lines of text.\nThe third one starts with a\n# character. This isn't a comment.\n"}, <<EOY
+### These are four throwaway comment ###
+
+### lines (the second line is empty). ###
+this: | # Comments may trail lines.
+ contains three lines of text.
+ The third one starts with a
+ # character. This isn't a comment.
+
+# These are three throwaway comment
+# lines (the first line is empty).
+EOY
+ )
+ end
+
+ def test_spec_force_implicit
+ # Force implicit
+ assert_parse_only(
+ { 'integer' => 12, 'also int' => 12, 'string' => '12' }, <<EOY
+integer: 12
+also int: ! "12"
+string: !str 12
+EOY
+ )
+ end
+
+ ###
+ # Commenting out this test. This line:
+ #
+ # - !domain.tld,2002/type\\x30 value
+ #
+ # Is invalid according to the YAML spec:
+ #
+ # http://yaml.org/spec/1.1/#id896876
+ #
+# def test_spec_url_escaping
+# Psych.add_domain_type( "domain.tld,2002", "type0" ) { |type, val|
+# "ONE: #{val}"
+# }
+# Psych.add_domain_type( "domain.tld,2002", "type%30" ) { |type, val|
+# "TWO: #{val}"
+# }
+# assert_parse_only(
+# { 'same' => [ 'ONE: value', 'ONE: value' ], 'different' => [ 'TWO: value' ] }, <<EOY
+#same:
+# - !domain.tld,2002/type\\x30 value
+# - !domain.tld,2002/type0 value
+#different: # As far as the Psych parser is concerned
+# - !domain.tld,2002/type%30 value
+#EOY
+# )
+# end
+
+ def test_spec_override_anchor
+ # Override anchor
+ a001 = "The alias node below is a repeated use of this value.\n"
+ assert_parse_only(
+ { 'anchor' => 'This scalar has an anchor.', 'override' => a001, 'alias' => a001 }, <<EOY
+anchor : &A001 This scalar has an anchor.
+override : &A001 >
+ The alias node below is a
+ repeated use of this value.
+alias : *A001
+EOY
+ )
+ end
+
+ def test_spec_explicit_families
+ Psych.add_domain_type( "somewhere.com,2002", 'type' ) { |type, val|
+ "SOMEWHERE: #{val}"
+ }
+ assert_parse_only(
+ { 'not-date' => '2002-04-28', 'picture' => "GIF89a\f\000\f\000\204\000\000\377\377\367\365\365\356\351\351\345fff\000\000\000\347\347\347^^^\363\363\355\216\216\216\340\340\340\237\237\237\223\223\223\247\247\247\236\236\236i^\020' \202\n\001\000;", 'hmm' => "SOMEWHERE: family above is short for\nhttp://somewhere.com/type\n" }, <<EOY
+not-date: !str 2002-04-28
+picture: !binary |
+ R0lGODlhDAAMAIQAAP//9/X
+ 17unp5WZmZgAAAOfn515eXv
+ Pz7Y6OjuDg4J+fn5OTk6enp
+ 56enmleECcgggoBADs=
+
+hmm: !somewhere.com,2002/type |
+ family above is short for
+ http://somewhere.com/type
+EOY
+ )
+ end
+
+ def test_spec_application_family
+ # Testing the clarkevans.com graphs
+ Psych.add_domain_type( "clarkevans.com,2002", 'graph/shape' ) { |type, val|
+ if Array === val
+ val << "Shape Container"
+ val
+ else
+ raise ArgumentError, "Invalid graph of type #{val.class}: " + val.inspect
+ end
+ }
+ one_shape_proc = Proc.new { |type, val|
+ if Hash === val
+ type = type.split( /:/ )
+ val['TYPE'] = "Shape: #{type[2]}"
+ val
+ else
+ raise ArgumentError, "Invalid graph of type #{val.class}: " + val.inspect
+ end
+ }
+ Psych.add_domain_type( "clarkevans.com,2002", 'graph/circle', &one_shape_proc )
+ Psych.add_domain_type( "clarkevans.com,2002", 'graph/line', &one_shape_proc )
+ Psych.add_domain_type( "clarkevans.com,2002", 'graph/text', &one_shape_proc )
+ # MODIFIED to remove invalid Psych
+ assert_parse_only(
+ [[{"radius"=>7, "center"=>{"x"=>73, "y"=>129}, "TYPE"=>"Shape: graph/circle"}, {"finish"=>{"x"=>89, "y"=>102}, "TYPE"=>"Shape: graph/line", "start"=>{"x"=>73, "y"=>129}}, {"TYPE"=>"Shape: graph/text", "value"=>"Pretty vector drawing.", "start"=>{"x"=>73, "y"=>129}, "color"=>16772795}, "Shape Container"]], <<EOY
+- !clarkevans.com,2002/graph/shape
+ - !/graph/circle
+ center: &ORIGIN {x: 73, y: 129}
+ radius: 7
+ - !/graph/line # !clarkevans.com,2002/graph/line
+ start: *ORIGIN
+ finish: { x: 89, y: 102 }
+ - !/graph/text
+ start: *ORIGIN
+ color: 0xFFEEBB
+ value: Pretty vector drawing.
+EOY
+ )
+ end
+
+ def test_spec_float_explicit
+ assert_parse_only(
+ [ 10.0, 10.0, 10.0, 10.0 ], <<EOY
+# All entries in the sequence
+# have the same type and value.
+- 10.0
+- !float 10
+- !yaml.org,2002/float '10'
+- !yaml.org,2002/float "\\
+ 1\\
+ 0"
+EOY
+ )
+ end
+
+ def test_spec_builtin_seq
+ # Assortment of sequences
+ assert_parse_only(
+ { 'empty' => [], 'in-line' => [ 'one', 'two', 'three', 'four', 'five' ],
+ 'nested' => [ 'First item in top sequence', [ 'Subordinate sequence entry' ],
+ "A multi-line sequence entry\n", 'Sixth item in top sequence' ] }, <<EOY
+empty: []
+in-line: [ one, two, three # May span lines,
+ , four, # indentation is
+ five ] # mostly ignored.
+nested:
+ - First item in top sequence
+ -
+ - Subordinate sequence entry
+ - >
+ A multi-line
+ sequence entry
+ - Sixth item in top sequence
+EOY
+ )
+ end
+
+ def test_spec_builtin_map
+ # Assortment of mappings
+ assert_parse_only(
+ { 'empty' => {}, 'in-line' => { 'one' => 1, 'two' => 2 },
+ 'spanning' => { 'one' => 1, 'two' => 2 },
+ 'nested' => { 'first' => 'First entry', 'second' =>
+ { 'key' => 'Subordinate mapping' }, 'third' =>
+ [ 'Subordinate sequence', {}, 'Previous mapping is empty.',
+ { 'A key' => 'value pair in a sequence.', 'A second' => 'key:value pair.' },
+ 'The previous entry is equal to the following one.',
+ { 'A key' => 'value pair in a sequence.', 'A second' => 'key:value pair.' } ],
+ 12.0 => 'This key is a float.', "?\n" => 'This key had to be protected.',
+ "\a" => 'This key had to be escaped.',
+ "This is a multi-line folded key\n" => "Whose value is also multi-line.\n",
+ [ 'This key', 'is a sequence' ] => [ 'With a sequence value.' ] } }, <<EOY
+
+empty: {}
+in-line: { one: 1, two: 2 }
+spanning: { one: 1,
+ two: 2 }
+nested:
+ first : First entry
+ second:
+ key: Subordinate mapping
+ third:
+ - Subordinate sequence
+ - { }
+ - Previous mapping is empty.
+ - A key: value pair in a sequence.
+ A second: key:value pair.
+ - The previous entry is equal to the following one.
+ -
+ A key: value pair in a sequence.
+ A second: key:value pair.
+ !float 12 : This key is a float.
+ ? >
+ ?
+ : This key had to be protected.
+ "\\a" : This key had to be escaped.
+ ? >
+ This is a
+ multi-line
+ folded key
+ : >
+ Whose value is
+ also multi-line.
+ ?
+ - This key
+ - is a sequence
+ :
+ - With a sequence value.
+# The following parses correctly,
+# but Ruby 1.6.* fails the comparison!
+# ?
+# This: key
+# is a: mapping
+# :
+# with a: mapping value.
+EOY
+ )
+ end
+
+ def test_spec_builtin_literal_blocks
+ # Assortment of literal scalar blocks
+ assert_parse_only(
+ {"both are equal to"=>" This has no newline.", "is equal to"=>"The \\ ' \" characters may be\nfreely used. Leading white\n space is significant.\n\nLine breaks are significant.\nThus this value contains one\nempty line and ends with a\nsingle line break, but does\nnot start with one.\n", "also written as"=>" This has no newline.", "indented and chomped"=>" This has no newline.", "empty"=>"", "literal"=>"The \\ ' \" characters may be\nfreely used. Leading white\n space is significant.\n\nLine breaks are significant.\nThus this value contains one\nempty line and ends with a\nsingle line break, but does\nnot start with one.\n"}, <<EOY
+empty: |
+
+literal: |
+ The \\\ ' " characters may be
+ freely used. Leading white
+ space is significant.
+
+ Line breaks are significant.
+ Thus this value contains one
+ empty line and ends with a
+ single line break, but does
+ not start with one.
+
+is equal to: "The \\\\ ' \\" characters may \\
+ be\\nfreely used. Leading white\\n space \\
+ is significant.\\n\\nLine breaks are \\
+ significant.\\nThus this value contains \\
+ one\\nempty line and ends with a\\nsingle \\
+ line break, but does\\nnot start with one.\\n"
+
+# Comments may follow a nested
+# scalar value. They must be
+# less indented.
+
+# Modifiers may be combined in any order.
+indented and chomped: |2-
+ This has no newline.
+
+also written as: |-2
+ This has no newline.
+
+both are equal to: " This has no newline."
+EOY
+ )
+
+ str1 = "This has one newline.\n"
+ str2 = "This has no newline."
+ str3 = "This has two newlines.\n\n"
+ assert_parse_only(
+ { 'clipped' => str1, 'same as "clipped" above' => str1,
+ 'stripped' => str2, 'same as "stripped" above' => str2,
+ 'kept' => str3, 'same as "kept" above' => str3 }, <<EOY
+clipped: |
+ This has one newline.
+
+same as "clipped" above: "This has one newline.\\n"
+
+stripped: |-
+ This has no newline.
+
+same as "stripped" above: "This has no newline."
+
+kept: |+
+ This has two newlines.
+
+same as "kept" above: "This has two newlines.\\n\\n"
+
+EOY
+ )
+ end
+
+ def test_spec_span_single_quote
+ assert_parse_only( {"third"=>"a single quote ' must be escaped.", "second"=>"! : \\ etc. can be used freely.", "is same as"=>"this contains six spaces\nand one line break", "empty"=>"", "span"=>"this contains six spaces\nand one line break"}, <<EOY
+empty: ''
+second: '! : \\ etc. can be used freely.'
+third: 'a single quote '' must be escaped.'
+span: 'this contains
+ six spaces
+
+ and one
+ line break'
+is same as: "this contains six spaces\\nand one line break"
+EOY
+ )
+ end
+
+ def test_spec_span_double_quote
+ assert_parse_only( {"is equal to"=>"this contains four spaces", "third"=>"a \" or a \\ must be escaped.", "second"=>"! : etc. can be used freely.", "empty"=>"", "fourth"=>"this value ends with an LF.\n", "span"=>"this contains four spaces"}, <<EOY
+empty: ""
+second: "! : etc. can be used freely."
+third: "a \\\" or a \\\\ must be escaped."
+fourth: "this value ends with an LF.\\n"
+span: "this contains
+ four \\
+ spaces"
+is equal to: "this contains four spaces"
+EOY
+ )
+ end
+
+ def test_spec_builtin_time
+ # Time
+ assert_parse_only(
+ { "space separated" => mktime( 2001, 12, 14, 21, 59, 43, ".10", "-05:00" ),
+ "canonical" => mktime( 2001, 12, 15, 2, 59, 43, ".10" ),
+ "date (noon UTC)" => Date.new( 2002, 12, 14),
+ "valid iso8601" => mktime( 2001, 12, 14, 21, 59, 43, ".10", "-05:00" ) }, <<EOY
+canonical: 2001-12-15T02:59:43.1Z
+valid iso8601: 2001-12-14t21:59:43.10-05:00
+space separated: 2001-12-14 21:59:43.10 -05:00
+date (noon UTC): 2002-12-14
+EOY
+ )
+ end
+
+ def test_spec_builtin_binary
+ arrow_gif = "GIF89a\f\000\f\000\204\000\000\377\377\367\365\365\356\351\351\345fff\000\000\000\347\347\347^^^\363\363\355\216\216\216\340\340\340\237\237\237\223\223\223\247\247\247\236\236\236iiiccc\243\243\243\204\204\204\377\376\371\377\376\371\377\376\371\377\376\371\377\376\371\377\376\371\377\376\371\377\376\371\377\376\371\377\376\371\377\376\371\377\376\371\377\376\371\377\376\371!\376\016Made with GIMP\000,\000\000\000\000\f\000\f\000\000\005, \216\2010\236\343@\024\350i\020\304\321\212\010\034\317\200M$z\357\3770\205p\270\2601f\r\e\316\001\303\001\036\020' \202\n\001\000;"
+ assert_parse_only(
+ { 'canonical' => arrow_gif, 'base64' => arrow_gif,
+ 'description' => "The binary value above is a tiny arrow encoded as a gif image.\n" }, <<EOY
+canonical: !binary "\\
+ R0lGODlhDAAMAIQAAP//9/X17unp5WZmZgAAAOf\\
+ n515eXvPz7Y6OjuDg4J+fn5OTk6enp56enmlpaW\\
+ NjY6Ojo4SEhP/++f/++f/++f/++f/++f/++f/++\\
+ f/++f/++f/++f/++f/++f/++f/++SH+Dk1hZGUg\\
+ d2l0aCBHSU1QACwAAAAADAAMAAAFLCAgjoEwnuN\\
+ AFOhpEMTRiggcz4BNJHrv/zCFcLiwMWYNG84Bww\\
+ EeECcgggoBADs="
+base64: !binary |
+ R0lGODlhDAAMAIQAAP//9/X17unp5WZmZgAAAOf
+ n515eXvPz7Y6OjuDg4J+fn5OTk6enp56enmlpaW
+ NjY6Ojo4SEhP/++f/++f/++f/++f/++f/++f/++
+ f/++f/++f/++f/++f/++f/++f/++SH+Dk1hZGUg
+ d2l0aCBHSU1QACwAAAAADAAMAAAFLCAgjoEwnuN
+ AFOhpEMTRiggcz4BNJHrv/zCFcLiwMWYNG84Bww
+ EeECcgggoBADs=
+description: >
+ The binary value above is a tiny arrow
+ encoded as a gif image.
+EOY
+ )
+ end
+ def test_ruby_regexp
+ # Test Ruby regular expressions
+ assert_to_yaml(
+ { 'simple' => /a.b/, 'complex' => %r'\A"((?:[^"]|\")+)"',
+ 'case-insensitive' => /George McFly/i }, <<EOY
+case-insensitive: !ruby/regexp "/George McFly/i"
+complex: !ruby/regexp "/\\\\A\\"((?:[^\\"]|\\\\\\")+)\\"/"
+simple: !ruby/regexp "/a.b/"
+EOY
+ )
+ end
+
+ #
+ # Test of Ranges
+ #
+ def test_ranges
+
+ # Simple numeric
+ assert_to_yaml( 1..3, <<EOY )
+--- !ruby/range 1..3
+EOY
+
+ # Simple alphabetic
+ assert_to_yaml( 'a'..'z', <<EOY )
+--- !ruby/range a..z
+EOY
+
+ # Float
+ assert_to_yaml( 10.5...30.3, <<EOY )
+--- !ruby/range 10.5...30.3
+EOY
+
+ end
+
+ def test_ruby_struct
+ # Ruby structures
+ book_struct = Struct::new( "MyBookStruct", :author, :title, :year, :isbn )
+ assert_to_yaml(
+ [ book_struct.new( "Yukihiro Matsumoto", "Ruby in a Nutshell", 2002, "0-596-00214-9" ),
+ book_struct.new( [ 'Dave Thomas', 'Andy Hunt' ], "The Pickaxe", 2002,
+ book_struct.new( "This should be the ISBN", "but I have another struct here", 2002, "None" )
+ ) ], <<EOY
+- !ruby/struct:MyBookStruct
+ author: Yukihiro Matsumoto
+ title: Ruby in a Nutshell
+ year: 2002
+ isbn: 0-596-00214-9
+- !ruby/struct:MyBookStruct
+ author:
+ - Dave Thomas
+ - Andy Hunt
+ title: The Pickaxe
+ year: 2002
+ isbn: !ruby/struct:MyBookStruct
+ author: This should be the ISBN
+ title: but I have another struct here
+ year: 2002
+ isbn: None
+EOY
+ )
+
+ assert_to_yaml( Psych_Tests::StructTest.new( 123 ), <<EOY )
+--- !ruby/struct:Psych_Tests::StructTest
+c: 123
+EOY
+
+ end
+
+ def test_ruby_rational
+ assert_to_yaml( Rational(1, 2), <<EOY )
+--- !ruby/object:Rational
+numerator: 1
+denominator: 2
+EOY
+
+ # Read Psych dumped by the ruby 1.8.3.
+ assert_to_yaml( Rational(1, 2), "!ruby/object:Rational 1/2\n" )
+ assert_raises( ArgumentError ) { Psych.load("!ruby/object:Rational INVALID/RATIONAL\n") }
+ end
+
+ def test_ruby_complex
+ assert_to_yaml( Complex(3, 4), <<EOY )
+--- !ruby/object:Complex
+image: 4
+real: 3
+EOY
+
+ # Read Psych dumped by the ruby 1.8.3.
+ assert_to_yaml( Complex(3, 4), "!ruby/object:Complex 3+4i\n" )
+ assert_raises( ArgumentError ) { Psych.load("!ruby/object:Complex INVALID+COMPLEXi\n") }
+ end
+
+ def test_emitting_indicators
+ assert_to_yaml( "Hi, from Object 1. You passed: please, pretty please", <<EOY
+--- "Hi, from Object 1. You passed: please, pretty please"
+EOY
+ )
+ end
+
+ ##
+ ## Test the Psych::Stream class -- INACTIVE at the moment
+ ##
+ #def test_document
+ # y = Psych::Stream.new( :Indent => 2, :UseVersion => 0 )
+ # y.add(
+ # { 'hi' => 'hello', 'map' =>
+ # { 'good' => 'two' },
+ # 'time' => Time.now,
+ # 'try' => /^po(.*)$/,
+ # 'bye' => 'goodbye'
+ # }
+ # )
+ # y.add( { 'po' => 'nil', 'oper' => 90 } )
+ # y.add( { 'hi' => 'wow!', 'bye' => 'wow!' } )
+ # y.add( { [ 'Red Socks', 'Boston' ] => [ 'One', 'Two', 'Three' ] } )
+ # y.add( [ true, false, false ] )
+ #end
+
+ #
+ # Test YPath choices parsing
+ #
+ #def test_ypath_parsing
+ # assert_path_segments( "/*/((one|three)/name|place)|//place",
+ # [ ["*", "one", "name"],
+ # ["*", "three", "name"],
+ # ["*", "place"],
+ # ["/", "place"] ]
+ # )
+ #end
+
+ #
+ # Tests from Tanaka Akira on [ruby-core]
+ #
+ def test_akira
+
+ # Commas in plain scalars [ruby-core:1066]
+ assert_to_yaml(
+ {"A"=>"A,","B"=>"B"}, <<EOY
+A: "A,"
+B: B
+EOY
+ )
+
+ # Double-quoted keys [ruby-core:1069]
+ assert_to_yaml(
+ {"1"=>2, "2"=>3}, <<EOY
+'1': 2
+"2": 3
+EOY
+ )
+
+ # Anchored mapping [ruby-core:1071]
+ assert_to_yaml(
+ [{"a"=>"b"}] * 2, <<EOY
+- &id001
+ a: b
+- *id001
+EOY
+ )
+
+ # Stress test [ruby-core:1071]
+ # a = []; 1000.times { a << {"a"=>"b", "c"=>"d"} }
+ # Psych::load( a.to_yaml )
+
+ end
+
+ #
+ # Test Time.now cycle
+ #
+ def test_time_now_cycle
+ #
+ # From Minero Aoki [ruby-core:2305]
+ #
+ #require 'yaml'
+ t = Time.now
+ t = Time.at(t.tv_sec, t.tv_usec)
+ 5.times do
+ assert_cycle(t)
+ end
+ end
+
+ #
+ # Test Range cycle
+ #
+ def test_range_cycle
+ #
+ # From Minero Aoki [ruby-core:02306]
+ #
+ assert_cycle("a".."z")
+
+ #
+ # From Nobu Nakada [ruby-core:02311]
+ #
+ assert_cycle(0..1)
+ assert_cycle(1.0e20 .. 2.0e20)
+ assert_cycle("0".."1")
+ assert_cycle(".."..."...")
+ assert_cycle(".rb"..".pl")
+ assert_cycle(".rb"...".pl")
+ assert_cycle('"'...".")
+ assert_cycle("'"...".")
+ end
+
+ #
+ # Circular references
+ #
+ def test_circular_references
+ a = []; a[0] = a; a[1] = a
+ inspect_str = "[[...], [...]]"
+ assert_equal( inspect_str, Psych::load(Psych.dump(a)).inspect )
+ end
+
+ #
+ # Test Symbol cycle
+ #
+ def test_symbol_cycle
+ #
+ # From Aaron Schrab [ruby-Bugs:2535]
+ #
+ assert_cycle(:"^foo")
+ end
+
+ #
+ # Test Numeric cycle
+ #
+ class NumericTest < Numeric
+ def initialize(value)
+ @value = value
+ end
+ def ==(other)
+ @value == other.instance_eval{ @value }
+ end
+ end
+ def test_numeric_cycle
+ assert_cycle(1) # Fixnum
+ assert_cycle(111111111111111111111111111111111) # Bignum
+ assert_cycle(NumericTest.new(3)) # Subclass of Numeric
+ end
+
+ #
+ # Test empty map/seq in map cycle
+ #
+ def test_empty_map_key
+ #
+ # empty seq as key
+ #
+ assert_cycle({[]=>""})
+
+ #
+ # empty map as key
+ #
+ assert_cycle({{}=>""})
+ end
+
+ #
+ # contributed by riley lynch [ruby-Bugs-8548]
+ #
+ def test_object_id_collision
+ omap = Psych::Omap.new
+ 1000.times { |i| omap["key_#{i}"] = { "value" => i } }
+ raise "id collision in ordered map" if Psych.dump(omap) =~ /id\d+/
+ end
+
+ def test_date_out_of_range
+ Psych::load('1900-01-01T00:00:00+00:00')
+ end
+
+ def test_normal_exit
+ Psych.load("2000-01-01 00:00:00.#{"0"*1000} +00:00\n")
+ # '[ruby-core:13735]'
+ end
+end
diff --git a/test/psych/visitors/test_depth_first.rb b/test/psych/visitors/test_depth_first.rb
new file mode 100644
index 0000000000..837c8e8c11
--- /dev/null
+++ b/test/psych/visitors/test_depth_first.rb
@@ -0,0 +1,49 @@
+require 'psych/helper'
+
+module Psych
+ module Visitors
+ class TestDepthFirst < TestCase
+ class Collector < Struct.new(:calls)
+ def initialize(calls = [])
+ super
+ end
+
+ def call obj
+ calls << obj
+ end
+ end
+
+ def test_scalar
+ collector = Collector.new
+ visitor = Visitors::DepthFirst.new collector
+ visitor.accept Psych.parse_stream '--- hello'
+
+ assert_equal 3, collector.calls.length
+ end
+
+ def test_sequence
+ collector = Collector.new
+ visitor = Visitors::DepthFirst.new collector
+ visitor.accept Psych.parse_stream "---\n- hello"
+
+ assert_equal 4, collector.calls.length
+ end
+
+ def test_mapping
+ collector = Collector.new
+ visitor = Visitors::DepthFirst.new collector
+ visitor.accept Psych.parse_stream "---\nhello: world"
+
+ assert_equal 5, collector.calls.length
+ end
+
+ def test_alias
+ collector = Collector.new
+ visitor = Visitors::DepthFirst.new collector
+ visitor.accept Psych.parse_stream "--- &yay\n- foo\n- *yay\n"
+
+ assert_equal 5, collector.calls.length
+ end
+ end
+ end
+end
diff --git a/test/psych/visitors/test_emitter.rb b/test/psych/visitors/test_emitter.rb
new file mode 100644
index 0000000000..780c953693
--- /dev/null
+++ b/test/psych/visitors/test_emitter.rb
@@ -0,0 +1,144 @@
+require 'psych/helper'
+
+module Psych
+ module Visitors
+ class TestEmitter < TestCase
+ def setup
+ super
+ @io = StringIO.new
+ @visitor = Visitors::Emitter.new @io
+ end
+
+ def test_options
+ io = StringIO.new
+ visitor = Visitors::Emitter.new io, :indentation => 3
+
+ s = Nodes::Stream.new
+ doc = Nodes::Document.new
+ mapping = Nodes::Mapping.new
+ m2 = Nodes::Mapping.new
+ m2.children << Nodes::Scalar.new('a')
+ m2.children << Nodes::Scalar.new('b')
+
+ mapping.children << Nodes::Scalar.new('key')
+ mapping.children << m2
+ doc.children << mapping
+ s.children << doc
+
+ visitor.accept s
+ assert_match(/^[ ]{3}a/, io.string)
+ end
+
+ def test_stream
+ s = Nodes::Stream.new
+ @visitor.accept s
+ assert_equal '', @io.string
+ end
+
+ def test_document
+ s = Nodes::Stream.new
+ doc = Nodes::Document.new [1,1]
+ scalar = Nodes::Scalar.new 'hello world'
+
+ doc.children << scalar
+ s.children << doc
+
+ @visitor.accept s
+
+ assert_match(/1.1/, @io.string)
+ assert_equal @io.string, s.yaml
+ end
+
+ def test_document_implicit_end
+ s = Nodes::Stream.new
+ doc = Nodes::Document.new
+ mapping = Nodes::Mapping.new
+ mapping.children << Nodes::Scalar.new('key')
+ mapping.children << Nodes::Scalar.new('value')
+ doc.children << mapping
+ s.children << doc
+
+ @visitor.accept s
+
+ assert_match(/key: value/, @io.string)
+ assert_equal @io.string, s.yaml
+ assert(/\.\.\./ !~ s.yaml)
+ end
+
+ def test_scalar
+ s = Nodes::Stream.new
+ doc = Nodes::Document.new
+ scalar = Nodes::Scalar.new 'hello world'
+
+ doc.children << scalar
+ s.children << doc
+
+ @visitor.accept s
+
+ assert_match(/hello/, @io.string)
+ assert_equal @io.string, s.yaml
+ end
+
+ def test_scalar_with_tag
+ s = Nodes::Stream.new
+ doc = Nodes::Document.new
+ scalar = Nodes::Scalar.new 'hello world', nil, '!str', false, false, 5
+
+ doc.children << scalar
+ s.children << doc
+
+ @visitor.accept s
+
+ assert_match(/str/, @io.string)
+ assert_match(/hello/, @io.string)
+ assert_equal @io.string, s.yaml
+ end
+
+ def test_sequence
+ s = Nodes::Stream.new
+ doc = Nodes::Document.new
+ scalar = Nodes::Scalar.new 'hello world'
+ seq = Nodes::Sequence.new
+
+ seq.children << scalar
+ doc.children << seq
+ s.children << doc
+
+ @visitor.accept s
+
+ assert_match(/- hello/, @io.string)
+ assert_equal @io.string, s.yaml
+ end
+
+ def test_mapping
+ s = Nodes::Stream.new
+ doc = Nodes::Document.new
+ mapping = Nodes::Mapping.new
+ mapping.children << Nodes::Scalar.new('key')
+ mapping.children << Nodes::Scalar.new('value')
+ doc.children << mapping
+ s.children << doc
+
+ @visitor.accept s
+
+ assert_match(/key: value/, @io.string)
+ assert_equal @io.string, s.yaml
+ end
+
+ def test_alias
+ s = Nodes::Stream.new
+ doc = Nodes::Document.new
+ mapping = Nodes::Mapping.new
+ mapping.children << Nodes::Scalar.new('key', 'A')
+ mapping.children << Nodes::Alias.new('A')
+ doc.children << mapping
+ s.children << doc
+
+ @visitor.accept s
+
+ assert_match(/&A key: \*A/, @io.string)
+ assert_equal @io.string, s.yaml
+ end
+ end
+ end
+end
diff --git a/test/psych/visitors/test_to_ruby.rb b/test/psych/visitors/test_to_ruby.rb
new file mode 100644
index 0000000000..5b0702cf1a
--- /dev/null
+++ b/test/psych/visitors/test_to_ruby.rb
@@ -0,0 +1,325 @@
+require 'psych/helper'
+
+module Psych
+ module Visitors
+ class TestToRuby < TestCase
+ def setup
+ super
+ @visitor = ToRuby.new
+ end
+
+ def test_object
+ mapping = Nodes::Mapping.new nil, "!ruby/object"
+ mapping.children << Nodes::Scalar.new('foo')
+ mapping.children << Nodes::Scalar.new('bar')
+
+ o = mapping.to_ruby
+ assert_equal 'bar', o.instance_variable_get(:@foo)
+ end
+
+ def test_awesome
+ Psych.load('1900-01-01T00:00:00+00:00')
+ end
+
+ def test_legacy_struct
+ foo = Struct.new('AWESOME', :bar)
+ assert_equal foo.new('baz'), Psych.load(<<-eoyml)
+!ruby/struct:AWESOME
+ bar: baz
+ eoyml
+ end
+
+ def test_binary
+ gif = "GIF89a\f\x00\f\x00\x84\x00\x00\xFF\xFF\xF7\xF5\xF5\xEE\xE9\xE9\xE5fff\x00\x00\x00\xE7\xE7\xE7^^^\xF3\xF3\xED\x8E\x8E\x8E\xE0\xE0\xE0\x9F\x9F\x9F\x93\x93\x93\xA7\xA7\xA7\x9E\x9E\x9Eiiiccc\xA3\xA3\xA3\x84\x84\x84\xFF\xFE\xF9\xFF\xFE\xF9\xFF\xFE\xF9\xFF\xFE\xF9\xFF\xFE\xF9\xFF\xFE\xF9\xFF\xFE\xF9\xFF\xFE\xF9\xFF\xFE\xF9\xFF\xFE\xF9\xFF\xFE\xF9\xFF\xFE\xF9\xFF\xFE\xF9\xFF\xFE\xF9!\xFE\x0EMade with GIMP\x00,\x00\x00\x00\x00\f\x00\f\x00\x00\x05, \x8E\x810\x9E\xE3@\x14\xE8i\x10\xC4\xD1\x8A\b\x1C\xCF\x80M$z\xEF\xFF0\x85p\xB8\xB01f\r\e\xCE\x01\xC3\x01\x1E\x10' \x82\n\x01\x00;"
+
+ hash = Psych.load(<<-'eoyaml')
+canonical: !!binary "\
+ R0lGODlhDAAMAIQAAP//9/X17unp5WZmZgAAAOfn515eXvPz7Y6OjuDg4J+fn5\
+ OTk6enp56enmlpaWNjY6Ojo4SEhP/++f/++f/++f/++f/++f/++f/++f/++f/+\
+ +f/++f/++f/++f/++f/++SH+Dk1hZGUgd2l0aCBHSU1QACwAAAAADAAMAAAFLC\
+ AgjoEwnuNAFOhpEMTRiggcz4BNJHrv/zCFcLiwMWYNG84BwwEeECcgggoBADs="
+generic: !binary |
+ R0lGODlhDAAMAIQAAP//9/X17unp5WZmZgAAAOfn515eXvPz7Y6OjuDg4J+fn5
+ OTk6enp56enmlpaWNjY6Ojo4SEhP/++f/++f/++f/++f/++f/++f/++f/++f/+
+ +f/++f/++f/++f/++f/++SH+Dk1hZGUgd2l0aCBHSU1QACwAAAAADAAMAAAFLC
+ AgjoEwnuNAFOhpEMTRiggcz4BNJHrv/zCFcLiwMWYNG84BwwEeECcgggoBADs=
+description:
+ The binary value above is a tiny arrow encoded as a gif image.
+ eoyaml
+ assert_equal gif, hash['canonical']
+ assert_equal gif, hash['generic']
+ end
+
+ A = Struct.new(:foo)
+
+ def test_struct
+ s = A.new('bar')
+
+ mapping = Nodes::Mapping.new nil, "!ruby/struct:#{s.class}"
+ mapping.children << Nodes::Scalar.new('foo')
+ mapping.children << Nodes::Scalar.new('bar')
+
+ ruby = mapping.to_ruby
+
+ assert_equal s.class, ruby.class
+ assert_equal s.foo, ruby.foo
+ assert_equal s, ruby
+ end
+
+ def test_anon_struct_legacy
+ s = Struct.new(:foo).new('bar')
+
+ mapping = Nodes::Mapping.new nil, '!ruby/struct:'
+ mapping.children << Nodes::Scalar.new('foo')
+ mapping.children << Nodes::Scalar.new('bar')
+
+ assert_equal s.foo, mapping.to_ruby.foo
+ end
+
+ def test_anon_struct
+ s = Struct.new(:foo).new('bar')
+
+ mapping = Nodes::Mapping.new nil, '!ruby/struct'
+ mapping.children << Nodes::Scalar.new('foo')
+ mapping.children << Nodes::Scalar.new('bar')
+
+ assert_equal s.foo, mapping.to_ruby.foo
+ end
+
+ def test_exception
+ exc = Exception.new 'hello'
+
+ mapping = Nodes::Mapping.new nil, '!ruby/exception'
+ mapping.children << Nodes::Scalar.new('message')
+ mapping.children << Nodes::Scalar.new('hello')
+
+ ruby = mapping.to_ruby
+
+ assert_equal exc.class, ruby.class
+ assert_equal exc.message, ruby.message
+ end
+
+ def test_regexp
+ node = Nodes::Scalar.new('/foo/', nil, '!ruby/regexp')
+ assert_equal(/foo/, node.to_ruby)
+
+ node = Nodes::Scalar.new('/foo/m', nil, '!ruby/regexp')
+ assert_equal(/foo/m, node.to_ruby)
+
+ node = Nodes::Scalar.new('/foo/ix', nil, '!ruby/regexp')
+ assert_equal(/foo/ix, node.to_ruby)
+ end
+
+ def test_time
+ now = Time.now
+ zone = now.strftime('%z')
+ zone = " #{zone[0,3]}:#{zone[3,5]}"
+
+ formatted = now.strftime("%Y-%m-%d %H:%M:%S.%9N") + zone
+
+ assert_equal now, Nodes::Scalar.new(formatted).to_ruby
+ end
+
+ def test_time_utc
+ now = Time.now.utc
+ formatted = now.strftime("%Y-%m-%d %H:%M:%S") +
+ ".%09dZ" % [now.nsec]
+
+ assert_equal now, Nodes::Scalar.new(formatted).to_ruby
+ end
+
+ def test_time_utc_no_z
+ now = Time.now.utc
+ formatted = now.strftime("%Y-%m-%d %H:%M:%S") +
+ ".%09d" % [now.nsec]
+
+ assert_equal now, Nodes::Scalar.new(formatted).to_ruby
+ end
+
+ def test_date
+ d = '1980-12-16'
+ actual = Date.strptime(d, '%Y-%m-%d')
+
+ date = Nodes::Scalar.new(d, nil, 'tag:yaml.org,2002:timestamp', false)
+
+ assert_equal actual, date.to_ruby
+ end
+
+ def test_rational
+ mapping = Nodes::Mapping.new nil, '!ruby/object:Rational'
+ mapping.children << Nodes::Scalar.new('denominator')
+ mapping.children << Nodes::Scalar.new('2')
+ mapping.children << Nodes::Scalar.new('numerator')
+ mapping.children << Nodes::Scalar.new('1')
+
+ assert_equal Rational(1,2), mapping.to_ruby
+ end
+
+ def test_complex
+ mapping = Nodes::Mapping.new nil, '!ruby/object:Complex'
+ mapping.children << Nodes::Scalar.new('image')
+ mapping.children << Nodes::Scalar.new('2')
+ mapping.children << Nodes::Scalar.new('real')
+ mapping.children << Nodes::Scalar.new('1')
+
+ assert_equal Complex(1,2), mapping.to_ruby
+ end
+
+ if RUBY_VERSION >= '1.9'
+ def test_complex_string
+ node = Nodes::Scalar.new '3+4i', nil, "!ruby/object:Complex"
+ assert_equal Complex(3, 4), node.to_ruby
+ end
+
+ def test_rational_string
+ node = Nodes::Scalar.new '1/2', nil, "!ruby/object:Rational"
+ assert_equal Rational(1, 2), node.to_ruby
+ end
+ end
+
+ def test_range_string
+ node = Nodes::Scalar.new '1..2', nil, "!ruby/range"
+ assert_equal 1..2, node.to_ruby
+ end
+
+ def test_range_string_triple
+ node = Nodes::Scalar.new '1...3', nil, "!ruby/range"
+ assert_equal 1...3, node.to_ruby
+ end
+
+ def test_integer
+ i = Nodes::Scalar.new('1', nil, 'tag:yaml.org,2002:int')
+ assert_equal 1, i.to_ruby
+
+ assert_equal 1, Nodes::Scalar.new('1').to_ruby
+
+ i = Nodes::Scalar.new('-1', nil, 'tag:yaml.org,2002:int')
+ assert_equal(-1, i.to_ruby)
+
+ assert_equal(-1, Nodes::Scalar.new('-1').to_ruby)
+ assert_equal 1, Nodes::Scalar.new('+1').to_ruby
+ end
+
+ def test_int_ignore
+ ['1,000', '1_000'].each do |num|
+ i = Nodes::Scalar.new(num, nil, 'tag:yaml.org,2002:int')
+ assert_equal 1000, i.to_ruby
+
+ assert_equal 1000, Nodes::Scalar.new(num).to_ruby
+ end
+ end
+
+ def test_float_ignore
+ ['1,000.3', '1_000.3'].each do |num|
+ i = Nodes::Scalar.new(num, nil, 'tag:yaml.org,2002:float')
+ assert_equal 1000.3, i.to_ruby
+
+ i = Nodes::Scalar.new(num, nil, '!float')
+ assert_equal 1000.3, i.to_ruby
+
+ assert_equal 1000.3, Nodes::Scalar.new(num).to_ruby
+ end
+ end
+
+ # http://yaml.org/type/bool.html
+ def test_boolean_true
+ %w{ yes Yes YES true True TRUE on On ON }.each do |t|
+ i = Nodes::Scalar.new(t, nil, 'tag:yaml.org,2002:bool')
+ assert_equal true, i.to_ruby
+ assert_equal true, Nodes::Scalar.new(t).to_ruby
+ end
+ end
+
+ # http://yaml.org/type/bool.html
+ def test_boolean_false
+ %w{ no No NO false False FALSE off Off OFF }.each do |t|
+ i = Nodes::Scalar.new(t, nil, 'tag:yaml.org,2002:bool')
+ assert_equal false, i.to_ruby
+ assert_equal false, Nodes::Scalar.new(t).to_ruby
+ end
+ end
+
+ def test_float
+ i = Nodes::Scalar.new('12', nil, 'tag:yaml.org,2002:float')
+ assert_equal 12.0, i.to_ruby
+
+ i = Nodes::Scalar.new('1.2', nil, 'tag:yaml.org,2002:float')
+ assert_equal 1.2, i.to_ruby
+
+ i = Nodes::Scalar.new('1.2')
+ assert_equal 1.2, i.to_ruby
+
+ assert_equal 1, Nodes::Scalar.new('.Inf').to_ruby.infinite?
+ assert_equal 1, Nodes::Scalar.new('.inf').to_ruby.infinite?
+ assert_equal 1, Nodes::Scalar.new('.Inf', nil, 'tag:yaml.org,2002:float').to_ruby.infinite?
+
+ assert_equal(-1, Nodes::Scalar.new('-.inf').to_ruby.infinite?)
+ assert_equal(-1, Nodes::Scalar.new('-.Inf').to_ruby.infinite?)
+ assert_equal(-1, Nodes::Scalar.new('-.Inf', nil, 'tag:yaml.org,2002:float').to_ruby.infinite?)
+
+ assert Nodes::Scalar.new('.NaN').to_ruby.nan?
+ assert Nodes::Scalar.new('.NaN', nil, 'tag:yaml.org,2002:float').to_ruby.nan?
+ end
+
+ def test_exp_float
+ exp = 1.2e+30
+
+ i = Nodes::Scalar.new(exp.to_s, nil, 'tag:yaml.org,2002:float')
+ assert_equal exp, i.to_ruby
+
+ assert_equal exp, Nodes::Scalar.new(exp.to_s).to_ruby
+ end
+
+ def test_scalar
+ scalar = Nodes::Scalar.new('foo')
+ assert_equal 'foo', @visitor.accept(scalar)
+ assert_equal 'foo', scalar.to_ruby
+ end
+
+ def test_sequence
+ seq = Nodes::Sequence.new
+ seq.children << Nodes::Scalar.new('foo')
+ seq.children << Nodes::Scalar.new('bar')
+
+ assert_equal %w{ foo bar }, seq.to_ruby
+ end
+
+ def test_mapping
+ mapping = Nodes::Mapping.new
+ mapping.children << Nodes::Scalar.new('foo')
+ mapping.children << Nodes::Scalar.new('bar')
+ assert_equal({'foo' => 'bar'}, mapping.to_ruby)
+ end
+
+ def test_document
+ doc = Nodes::Document.new
+ doc.children << Nodes::Scalar.new('foo')
+ assert_equal 'foo', doc.to_ruby
+ end
+
+ def test_stream
+ a = Nodes::Document.new
+ a.children << Nodes::Scalar.new('foo')
+
+ b = Nodes::Document.new
+ b.children << Nodes::Scalar.new('bar')
+
+ stream = Nodes::Stream.new
+ stream.children << a
+ stream.children << b
+
+ assert_equal %w{ foo bar }, stream.to_ruby
+ end
+
+ def test_alias
+ seq = Nodes::Sequence.new
+ seq.children << Nodes::Scalar.new('foo', 'A')
+ seq.children << Nodes::Alias.new('A')
+
+ list = seq.to_ruby
+ assert_equal %w{ foo foo }, list
+ assert_equal list[0].object_id, list[1].object_id
+ end
+ end
+ end
+end
diff --git a/test/psych/visitors/test_yaml_tree.rb b/test/psych/visitors/test_yaml_tree.rb
new file mode 100644
index 0000000000..df775635bf
--- /dev/null
+++ b/test/psych/visitors/test_yaml_tree.rb
@@ -0,0 +1,155 @@
+require 'psych/helper'
+
+module Psych
+ module Visitors
+ class TestYAMLTree < TestCase
+ def setup
+ super
+ @v = Visitors::YAMLTree.new
+ end
+
+ def test_binary_formatting
+ gif = "GIF89a\f\x00\f\x00\x84\x00\x00\xFF\xFF\xF7\xF5\xF5\xEE\xE9\xE9\xE5fff\x00\x00\x00\xE7\xE7\xE7^^^\xF3\xF3\xED\x8E\x8E\x8E\xE0\xE0\xE0\x9F\x9F\x9F\x93\x93\x93\xA7\xA7\xA7\x9E\x9E\x9Eiiiccc\xA3\xA3\xA3\x84\x84\x84\xFF\xFE\xF9\xFF\xFE\xF9\xFF\xFE\xF9\xFF\xFE\xF9\xFF\xFE\xF9\xFF\xFE\xF9\xFF\xFE\xF9\xFF\xFE\xF9\xFF\xFE\xF9\xFF\xFE\xF9\xFF\xFE\xF9\xFF\xFE\xF9\xFF\xFE\xF9\xFF\xFE\xF9!\xFE\x0EMade with GIMP\x00,\x00\x00\x00\x00\f\x00\f\x00\x00\x05, \x8E\x810\x9E\xE3@\x14\xE8i\x10\xC4\xD1\x8A\b\x1C\xCF\x80M$z\xEF\xFF0\x85p\xB8\xB01f\r\e\xCE\x01\xC3\x01\x1E\x10' \x82\n\x01\x00;"
+ @v << gif
+ scalar = @v.tree.children.first.children.first
+ assert_equal Psych::Nodes::Scalar::LITERAL, scalar.style
+ end
+
+ def test_object_has_no_class
+ yaml = Psych.dump(Object.new)
+ assert(Psych.dump(Object.new) !~ /Object/, yaml)
+ end
+
+ def test_struct_const
+ foo = Struct.new("Foo", :bar)
+ assert_cycle foo.new('bar')
+ Struct.instance_eval { remove_const(:Foo) }
+ end
+
+ A = Struct.new(:foo)
+
+ def test_struct
+ assert_cycle A.new('bar')
+ end
+
+ def test_struct_anon
+ s = Struct.new(:foo).new('bar')
+ obj = Psych.load(Psych.dump(s))
+ assert_equal s.foo, obj.foo
+ end
+
+ def test_override_method
+ s = Struct.new(:method).new('override')
+ obj = Psych.load(Psych.dump(s))
+ assert_equal s.method, obj.method
+ end
+
+ def test_exception
+ ex = Exception.new 'foo'
+ loaded = Psych.load(Psych.dump(ex))
+
+ assert_equal ex.message, loaded.message
+ assert_equal ex.class, loaded.class
+ end
+
+ def test_regexp
+ assert_cycle(/foo/)
+ assert_cycle(/foo/i)
+ assert_cycle(/foo/mx)
+ end
+
+ def test_time
+ t = Time.now
+ assert_equal t, Psych.load(Psych.dump(t))
+ end
+
+ def test_date
+ date = Date.strptime('2002-12-14', '%Y-%m-%d')
+ assert_cycle date
+ end
+
+ def test_rational
+ assert_cycle Rational(1,2)
+ end
+
+ def test_complex
+ assert_cycle Complex(1,2)
+ end
+
+ def test_scalar
+ assert_cycle 'foo'
+ assert_cycle ':foo'
+ assert_cycle ''
+ assert_cycle ':'
+ end
+
+ def test_boolean
+ assert_cycle true
+ assert_cycle 'true'
+ assert_cycle false
+ assert_cycle 'false'
+ end
+
+ def test_range_inclusive
+ assert_cycle 1..2
+ end
+
+ def test_range_exclusive
+ assert_cycle 1...2
+ end
+
+ def test_anon_class
+ assert_raises(TypeError) do
+ @v.accept Class.new
+ end
+
+ assert_raises(TypeError) do
+ Psych.dump(Class.new)
+ end
+ end
+
+ def test_hash
+ assert_cycle('a' => 'b')
+ end
+
+ def test_list
+ assert_cycle(%w{ a b })
+ assert_cycle([1, 2.2])
+ end
+
+ def test_symbol
+ assert_cycle :foo
+ end
+
+ def test_int
+ assert_cycle 1
+ assert_cycle(-1)
+ assert_cycle '1'
+ assert_cycle '-1'
+ end
+
+ def test_float
+ assert_cycle 1.2
+ assert_cycle '1.2'
+
+ assert Psych.load(Psych.dump(0.0 / 0.0)).nan?
+ assert_equal 1, Psych.load(Psych.dump(1 / 0.0)).infinite?
+ assert_equal(-1, Psych.load(Psych.dump(-1 / 0.0)).infinite?)
+ end
+
+ # http://yaml.org/type/null.html
+ def test_nil
+ assert_cycle nil
+ assert_equal nil, Psych.load('null')
+ assert_equal nil, Psych.load('Null')
+ assert_equal nil, Psych.load('NULL')
+ assert_equal nil, Psych.load('~')
+ assert_equal({'foo' => nil}, Psych.load('foo: '))
+
+ assert_cycle 'null'
+ assert_cycle 'nUll'
+ assert_cycle '~'
+ end
+ end
+ end
+end
diff --git a/test/rake/file_creation.rb b/test/rake/file_creation.rb
new file mode 100644
index 0000000000..facc57a038
--- /dev/null
+++ b/test/rake/file_creation.rb
@@ -0,0 +1,34 @@
+module FileCreation
+ OLDFILE = "old"
+ NEWFILE = "new"
+
+ def create_timed_files(oldfile, *newfiles)
+ return if (File.exist?(oldfile) &&
+ newfiles.all? { |newfile|
+ File.exist?(newfile) && File.stat(newfile).mtime > File.stat(oldfile).mtime
+ })
+ now = Time.now
+
+ create_file(oldfile, now - 60)
+
+ newfiles.each do |newfile|
+ create_file(newfile, now)
+ end
+ end
+
+ def create_dir(dirname)
+ FileUtils.mkdir_p(dirname) unless File.exist?(dirname)
+ File.stat(dirname).mtime
+ end
+
+ def create_file(name, file_time=nil)
+ create_dir(File.dirname(name))
+ FileUtils.touch(name) unless File.exist?(name)
+ File.utime(file_time, file_time, name) unless file_time.nil?
+ File.stat(name).mtime
+ end
+
+ def delete_file(name)
+ File.delete(name) rescue nil
+ end
+end
diff --git a/test/rake/helper.rb b/test/rake/helper.rb
new file mode 100644
index 0000000000..65443fc111
--- /dev/null
+++ b/test/rake/helper.rb
@@ -0,0 +1,492 @@
+require 'rubygems'
+
+begin
+ gem 'minitest'
+rescue Gem::LoadError
+end
+
+require 'minitest/autorun'
+require 'rake'
+require 'tmpdir'
+require File.expand_path('../file_creation', __FILE__)
+
+begin
+ require 'test/ruby/envutil'
+rescue LoadError
+ # for ruby trunk
+end
+
+class Rake::TestCase < MiniTest::Unit::TestCase
+ include FileCreation
+
+ include Rake::DSL
+
+ class TaskManager
+ include Rake::TaskManager
+ end
+
+ RUBY = defined?(EnvUtil) ? EnvUtil.rubybin : Gem.ruby
+
+ def setup
+ ARGV.clear
+
+ @orig_PWD = Dir.pwd
+ @orig_APPDATA = ENV['APPDATA']
+ @orig_HOME = ENV['HOME']
+ @orig_HOMEDRIVE = ENV['HOMEDRIVE']
+ @orig_HOMEPATH = ENV['HOMEPATH']
+ @orig_RAKE_COLUMNS = ENV['RAKE_COLUMNS']
+ @orig_RAKE_SYSTEM = ENV['RAKE_SYSTEM']
+ @orig_RAKEOPT = ENV['RAKEOPT']
+ @orig_USERPROFILE = ENV['USERPROFILE']
+ ENV.delete 'RAKE_COLUMNS'
+ ENV.delete 'RAKE_SYSTEM'
+ ENV.delete 'RAKEOPT'
+
+ tmpdir = Dir.chdir Dir.tmpdir do Dir.pwd end
+ @tempdir = File.join tmpdir, "test_rake_#{$$}"
+
+ FileUtils.mkdir_p @tempdir
+
+ Dir.chdir @tempdir
+
+ Rake.application = Rake::Application.new
+ Rake::TaskManager.record_task_metadata = true
+ RakeFileUtils.verbose_flag = false
+ end
+
+ def teardown
+ Dir.chdir @orig_PWD
+ FileUtils.rm_rf @tempdir
+
+ if @orig_APPDATA then
+ ENV['APPDATA'] = @orig_APPDATA
+ else
+ ENV.delete 'APPDATA'
+ end
+
+ ENV['HOME'] = @orig_HOME
+ ENV['HOMEDRIVE'] = @orig_HOMEDRIVE
+ ENV['HOMEPATH'] = @orig_HOMEPATH
+ ENV['RAKE_COLUMNS'] = @orig_RAKE_COLUMNS
+ ENV['RAKE_SYSTEM'] = @orig_RAKE_SYSTEM
+ ENV['RAKEOPT'] = @orig_RAKEOPT
+ ENV['USERPROFILE'] = @orig_USERPROFILE
+ end
+
+ def ignore_deprecations
+ Rake.application.options.ignore_deprecate = true
+ yield
+ ensure
+ Rake.application.options.ignore_deprecate = false
+ end
+
+ def rake_system_dir
+ @system_dir = 'system'
+
+ FileUtils.mkdir_p @system_dir
+
+ open File.join(@system_dir, 'sys1.rake'), 'w' do |io|
+ io << <<-SYS
+task "sys1" do
+ puts "SYS1"
+end
+ SYS
+ end
+
+ ENV['RAKE_SYSTEM'] = @system_dir
+ end
+
+ def rakefile contents
+ open 'Rakefile', 'w' do |io|
+ io << contents
+ end
+ end
+
+ def rakefile_access
+ rakefile <<-ACCESS
+TOP_LEVEL_CONSTANT = 0
+
+def a_top_level_function
+end
+
+task :default => [:work, :obj, :const]
+
+task :work do
+ begin
+ a_top_level_function
+ puts "GOOD:M Top level methods can be called in tasks"
+ rescue NameError => ex
+ puts "BAD:M Top level methods can not be called in tasks"
+ end
+end
+
+# TODO: remove `disabled_' when DeprecatedObjectDSL removed
+task :obj
+task :disabled_obj do
+ begin
+ Object.new.instance_eval { task :xyzzy }
+ puts "BAD:D Rake DSL are polluting objects"
+ rescue StandardError => ex
+ puts "GOOD:D Rake DSL are not polluting objects"
+ end
+end
+
+task :const do
+ begin
+ TOP_LEVEL_CONSTANT
+ puts "GOOD:C Top level constants are available in tasks"
+ rescue StandardError => ex
+ puts "BAD:C Top level constants are NOT available in tasks"
+ end
+end
+ ACCESS
+ end
+
+ def rakefile_chains
+ rakefile <<-DEFAULT
+task :default => "play.app"
+
+file "play.scpt" => "base" do |t|
+ cp t.prerequisites.first, t.name
+end
+
+rule ".app" => ".scpt" do |t|
+ cp t.source, t.name
+end
+
+file 'base' do
+ touch 'base'
+end
+ DEFAULT
+ end
+
+ def rakefile_comments
+ rakefile <<-COMMENTS
+# comment for t1
+task :t1 do
+end
+
+# no comment or task because there's a blank line
+
+task :t2 do
+end
+
+desc "override comment for t3"
+# this is not the description
+multitask :t3 do
+end
+
+# this is not the description
+desc "override comment for t4"
+file :t4 do
+end
+ COMMENTS
+ end
+
+ def rakefile_default
+ rakefile <<-DEFAULT
+if ENV['TESTTOPSCOPE']
+ puts "TOPSCOPE"
+end
+
+task :default do
+ puts "DEFAULT"
+end
+
+task :other => [:default] do
+ puts "OTHER"
+end
+
+task :task_scope do
+ if ENV['TESTTASKSCOPE']
+ puts "TASKSCOPE"
+ end
+end
+ DEFAULT
+ end
+
+ def rakefile_dryrun
+ rakefile <<-DRYRUN
+task :default => ["temp_main"]
+
+file "temp_main" => [:all_apps] do touch "temp_main" end
+
+task :all_apps => [:one, :two]
+task :one => ["temp_one"]
+task :two => ["temp_two"]
+
+file "temp_one" do |t|
+ touch "temp_one"
+end
+file "temp_two" do |t|
+ touch "temp_two"
+end
+
+task :clean do
+ ["temp_one", "temp_two", "temp_main"].each do |file|
+ rm_f file
+ end
+end
+ DRYRUN
+
+ FileUtils.touch 'temp_main'
+ FileUtils.touch 'temp_two'
+ end
+
+ def rakefile_extra
+ rakefile 'task :default'
+
+ FileUtils.mkdir_p 'rakelib'
+
+ open File.join('rakelib', 'extra.rake'), 'w' do |io|
+ io << <<-EXTRA_RAKE
+# Added for testing
+
+namespace :extra do
+ desc "An Extra Task"
+ task :extra do
+ puts "Read all about it"
+ end
+end
+ EXTRA_RAKE
+ end
+ end
+
+ def rakefile_file_creation
+ rakefile <<-'FILE_CREATION'
+N = 2
+
+task :default => :run
+
+BUILD_DIR = 'build'
+task :clean do
+ rm_rf 'build'
+ rm_rf 'src'
+end
+
+task :run
+
+TARGET_DIR = 'build/copies'
+
+FileList['src/*'].each do |src|
+ directory TARGET_DIR
+ target = File.join TARGET_DIR, File.basename(src)
+ file target => [src, TARGET_DIR] do
+ cp src, target
+ # sleep 3 if src !~ /foo#{N-1}$/ # I'm commenting out this sleep, it doesn't seem to do anything.
+ end
+ task :run => target
+end
+
+task :prep => :clean do
+ mkdir_p 'src'
+ N.times do |n|
+ touch "src/foo#{n}"
+ end
+end
+ FILE_CREATION
+ end
+
+ def rakefile_imports
+ rakefile <<-IMPORTS
+require 'rake/loaders/makefile'
+
+task :default
+
+task :other do
+ puts "OTHER"
+end
+
+file "dynamic_deps" do |t|
+ open(t.name, "w") do |f| f.puts "puts 'DYNAMIC'" end
+end
+
+import "dynamic_deps"
+import "static_deps"
+import "static_deps"
+import "deps.mf"
+puts "FIRST"
+ IMPORTS
+
+ open 'deps.mf', 'w' do |io|
+ io << <<-DEPS
+default: other
+ DEPS
+ end
+
+ open "static_deps", "w" do |f|
+ f.puts 'puts "STATIC"'
+ end
+ end
+
+ def rakefile_multidesc
+ rakefile <<-MULTIDESC
+task :b
+
+desc "A"
+task :a
+
+desc "B"
+task :b
+
+desc "A2"
+task :a
+
+task :c
+
+desc "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
+task :d
+ MULTIDESC
+ end
+
+ def rakefile_namespace
+ rakefile <<-NAMESPACE
+desc "copy"
+task :copy do
+ puts "COPY"
+end
+
+namespace "nest" do
+ desc "nest copy"
+ task :copy do
+ puts "NEST COPY"
+ end
+ task :xx => :copy
+end
+
+anon_ns = namespace do
+ desc "anonymous copy task"
+ task :copy do
+ puts "ANON COPY"
+ end
+end
+
+desc "Top level task to run the anonymous version of copy"
+task :anon => anon_ns[:copy]
+
+namespace "very" do
+ namespace "nested" do
+ task "run" => "rake:copy"
+ end
+end
+
+namespace "a" do
+ desc "Run task in the 'a' namespace"
+ task "run" do
+ puts "IN A"
+ end
+end
+
+namespace "b" do
+ desc "Run task in the 'b' namespace"
+ task "run" => "a:run" do
+ puts "IN B"
+ end
+end
+
+namespace "file1" do
+ file "xyz.rb" do
+ puts "XYZ1"
+ end
+end
+
+namespace "file2" do
+ file "xyz.rb" do
+ puts "XYZ2"
+ end
+end
+
+namespace "scopedep" do
+ task :prepare do
+ touch "scopedep.rb"
+ puts "PREPARE"
+ end
+ file "scopedep.rb" => [:prepare] do
+ puts "SCOPEDEP"
+ end
+end
+ NAMESPACE
+ end
+
+ def rakefile_nosearch
+ FileUtils.touch 'dummy'
+ end
+
+ def rakefile_rakelib
+ FileUtils.mkdir_p 'rakelib'
+
+ Dir.chdir 'rakelib' do
+ open 'test1.rb', 'w' do |io|
+ io << <<-TEST1
+task :default do
+ puts "TEST1"
+end
+ TEST1
+ end
+
+ open 'test2.rake', 'w' do |io|
+ io << <<-TEST1
+task :default do
+ puts "TEST2"
+end
+ TEST1
+ end
+ end
+ end
+
+ def rakefile_rbext
+ open 'rakefile.rb', 'w' do |io|
+ io << 'task :default do puts "OK" end'
+ end
+ end
+
+ def rakefile_unittest
+ rakefile '# Empty Rakefile for Unit Test'
+
+ readme = File.join 'subdir', 'README'
+ FileUtils.mkdir_p File.dirname readme
+
+ FileUtils.touch readme
+ end
+
+ def rakefile_verbose
+ rakefile <<-VERBOSE
+task :standalone_verbose_true do
+ verbose true
+ sh "#{RUBY} -e '0'"
+end
+
+task :standalone_verbose_false do
+ verbose false
+ sh "#{RUBY} -e '0'"
+end
+
+task :inline_verbose_default do
+ sh "#{RUBY} -e '0'"
+end
+
+task :inline_verbose_false do
+ sh "#{RUBY} -e '0'", :verbose => false
+end
+
+task :inline_verbose_true do
+ sh "#{RUBY} -e '0'", :verbose => true
+end
+
+task :block_verbose_true do
+ verbose(true) do
+ sh "#{RUBY} -e '0'"
+ end
+end
+
+task :block_verbose_false do
+ verbose(false) do
+ sh "#{RUBY} -e '0'"
+ end
+end
+ VERBOSE
+ end
+
+end
+
diff --git a/test/rake/test_rake.rb b/test/rake/test_rake.rb
new file mode 100644
index 0000000000..b2a3928b26
--- /dev/null
+++ b/test/rake/test_rake.rb
@@ -0,0 +1,40 @@
+require File.expand_path('../helper', __FILE__)
+
+class TestRake < Rake::TestCase
+ def test_each_dir_parent
+ assert_equal ['a'], alldirs('a')
+ assert_equal ['a/b', 'a'], alldirs('a/b')
+ assert_equal ['/a/b', '/a', '/'], alldirs('/a/b')
+ if File.dirname("c:/foo") == "c:"
+ # Under Unix
+ assert_equal ['c:/a/b', 'c:/a', 'c:'], alldirs('c:/a/b')
+ assert_equal ['c:a/b', 'c:a'], alldirs('c:a/b')
+ else
+ # Under Windows
+ assert_equal ['c:/a/b', 'c:/a', 'c:/'], alldirs('c:/a/b')
+ assert_equal ['c:a/b', 'c:a'], alldirs('c:a/b')
+ end
+ end
+
+ def alldirs(fn)
+ result = []
+ Rake.each_dir_parent(fn) { |d| result << d }
+ result
+ end
+
+ def test_can_override_application
+ old_app = Rake.application
+ fake_app = Object.new
+ Rake.application = fake_app
+
+ assert_equal fake_app, Rake.application
+
+ ensure
+ Rake.application = old_app
+ end
+
+ def test_original_dir_reports_current_dir
+ assert_equal @tempdir, Rake.original_dir
+ end
+
+end
diff --git a/test/rake/test_rake_application.rb b/test/rake/test_rake_application.rb
new file mode 100644
index 0000000000..b5d8c652c4
--- /dev/null
+++ b/test/rake/test_rake_application.rb
@@ -0,0 +1,489 @@
+require File.expand_path('../helper', __FILE__)
+
+class TestRakeApplication < Rake::TestCase
+
+ def setup
+ super
+
+ @app = Rake.application
+ @app.options.rakelib = []
+ end
+
+ def test_constant_warning
+ _, err = capture_io do @app.instance_eval { const_warning("Task") } end
+ assert_match(/warning/i, err)
+ assert_match(/deprecated/i, err)
+ assert_match(/Task/i, err)
+ end
+
+ def test_display_tasks
+ @app.options.show_tasks = :tasks
+ @app.options.show_task_pattern = //
+ @app.last_description = "COMMENT"
+ @app.define_task(Rake::Task, "t")
+ out, = capture_io do @app.instance_eval { display_tasks_and_comments } end
+ assert_match(/^rake t/, out)
+ assert_match(/# COMMENT/, out)
+ end
+
+ def test_display_tasks_with_long_comments
+ @app.terminal_columns = 80
+ @app.options.show_tasks = :tasks
+ @app.options.show_task_pattern = //
+ @app.last_description = "1234567890" * 8
+ @app.define_task(Rake::Task, "t")
+
+ out, = capture_io do @app.instance_eval { display_tasks_and_comments } end
+
+ assert_match(/^rake t/, out)
+ assert_match(/# 12345678901234567890123456789012345678901234567890123456789012345\.\.\./, out)
+ end
+
+ def test_display_tasks_with_task_name_wider_than_tty_display
+ @app.terminal_columns = 80
+ @app.options.show_tasks = :tasks
+ @app.options.show_task_pattern = //
+ task_name = "task name" * 80
+ @app.last_description = "something short"
+ @app.define_task(Rake::Task, task_name )
+
+ out, = capture_io do @app.instance_eval { display_tasks_and_comments } end
+
+ # Ensure the entire task name is output and we end up showing no description
+ assert_match(/rake #{task_name} # .../, out)
+ end
+
+ def test_display_tasks_with_very_long_task_name_to_a_non_tty_shows_name_and_comment
+ @app.options.show_tasks = :tasks
+ @app.options.show_task_pattern = //
+ @app.tty_output = false
+ description = "something short"
+ task_name = "task name" * 80
+ @app.last_description = "something short"
+ @app.define_task(Rake::Task, task_name )
+
+ out, = capture_io do @app.instance_eval { display_tasks_and_comments } end
+
+ # Ensure the entire task name is output and we end up showing no description
+ assert_match(/rake #{task_name} # #{description}/, out)
+ end
+
+ def test_display_tasks_with_long_comments_to_a_non_tty_shows_entire_comment
+ @app.options.show_tasks = :tasks
+ @app.options.show_task_pattern = //
+ @app.tty_output = false
+ @app.last_description = "1234567890" * 8
+ @app.define_task(Rake::Task, "t")
+ out, = capture_io do @app.instance_eval { display_tasks_and_comments } end
+ assert_match(/^rake t/, out)
+ assert_match(/# #{@app.last_description}/, out)
+ end
+
+ def test_display_tasks_with_long_comments_to_a_non_tty_with_columns_set_truncates_comments
+ @app.terminal_columns = 80
+ @app.options.show_tasks = :tasks
+ @app.options.show_task_pattern = //
+ @app.tty_output = false
+ @app.last_description = "1234567890" * 8
+ @app.define_task(Rake::Task, "t")
+
+ out, = capture_io do @app.instance_eval { display_tasks_and_comments } end
+
+ assert_match(/^rake t/, out)
+ assert_match(/# 12345678901234567890123456789012345678901234567890123456789012345\.\.\./, out)
+ end
+
+ def test_describe_tasks
+ @app.options.show_tasks = :describe
+ @app.options.show_task_pattern = //
+ @app.last_description = "COMMENT"
+ @app.define_task(Rake::Task, "t")
+ out, = capture_io do @app.instance_eval { display_tasks_and_comments } end
+ assert_match(/^rake t$/, out)
+ assert_match(/^ {4}COMMENT$/, out)
+ end
+
+ def test_show_lines
+ @app.options.show_tasks = :lines
+ @app.options.show_task_pattern = //
+ @app.last_description = "COMMENT"
+ @app.define_task(Rake::Task, "t")
+ @app['t'].locations << "HERE:1"
+ out, = capture_io do @app.instance_eval { display_tasks_and_comments } end
+ assert_match(/^rake t +[^:]+:\d+ *$/, out)
+ end
+
+ def test_finding_rakefile
+ rakefile_default
+
+ assert_match(/Rakefile/i, @app.instance_eval { have_rakefile })
+ end
+
+ def test_not_finding_rakefile
+ @app.instance_eval { @rakefiles = ['NEVER_FOUND'] }
+ assert( ! @app.instance_eval do have_rakefile end )
+ assert_nil @app.rakefile
+ end
+
+ def test_load_rakefile
+ rakefile_unittest
+
+ @app.instance_eval do
+ handle_options
+ options.silent = true
+ load_rakefile
+ end
+
+ assert_equal "rakefile", @app.rakefile.downcase
+ assert_equal @tempdir, Dir.pwd
+ end
+
+ def test_load_rakefile_doesnt_print_rakefile_directory_from_same_dir
+ rakefile_unittest
+
+ _, err = capture_io do
+ @app.instance_eval do
+ # pretend we started from the unittest dir
+ @original_dir = File.expand_path(".")
+ raw_load_rakefile
+ end
+ end
+
+ assert_empty err
+ end
+
+ def test_load_rakefile_from_subdir
+ rakefile_unittest
+ Dir.chdir 'subdir'
+
+ @app.instance_eval do
+ handle_options
+ options.silent = true
+ load_rakefile
+ end
+
+ assert_equal "rakefile", @app.rakefile.downcase
+ assert_equal @tempdir, Dir.pwd
+ end
+
+ def test_load_rakefile_prints_rakefile_directory_from_subdir
+ rakefile_unittest
+ Dir.chdir 'subdir'
+
+ app = Rake::Application.new
+ app.options.rakelib = []
+
+ _, err = capture_io do
+ app.instance_eval do
+ raw_load_rakefile
+ end
+ end
+
+ assert_equal "(in #{@tempdir}\)\n", err
+ end
+
+ def test_load_rakefile_doesnt_print_rakefile_directory_from_subdir_if_silent
+ rakefile_unittest
+ Dir.chdir 'subdir'
+
+ _, err = capture_io do
+ @app.instance_eval do
+ handle_options
+ options.silent = true
+ raw_load_rakefile
+ end
+ end
+
+ assert_empty err
+ end
+
+ def test_load_rakefile_not_found
+ Dir.chdir @tempdir
+ ENV['RAKE_SYSTEM'] = 'not_exist'
+
+ @app.instance_eval do
+ handle_options
+ options.silent = true
+ end
+
+ ex = assert_raises(RuntimeError) do
+ @app.instance_eval do raw_load_rakefile end
+ end
+
+ assert_match(/no rakefile found/i, ex.message)
+ end
+
+ def test_load_from_system_rakefile
+ rake_system_dir
+
+ @app.instance_eval do
+ handle_options
+ options.silent = true
+ options.load_system = true
+ options.rakelib = []
+ load_rakefile
+ end
+
+ assert_equal @system_dir, @app.system_dir
+ assert_nil @app.rakefile
+ rescue SystemExit
+ flunk 'failed to load rakefile'
+ end
+
+ def test_load_from_calculated_system_rakefile
+ rakefile_default
+ def @app.standard_system_dir
+ "__STD_SYS_DIR__"
+ end
+
+ ENV['RAKE_SYSTEM'] = nil
+
+ @app.instance_eval do
+ handle_options
+ options.silent = true
+ options.load_system = true
+ options.rakelib = []
+ load_rakefile
+ end
+
+ assert_equal "__STD_SYS_DIR__", @app.system_dir
+ rescue SystemExit
+ flunk 'failed to find system rakefile'
+ end
+
+ def test_terminal_columns
+ old_RAKE_COLUMNS = ENV['RAKE_COLUMNS']
+
+ ENV['RAKE_COLUMNS'] = '42'
+
+ app = Rake::Application.new
+
+ assert_equal 42, app.terminal_columns
+ ensure
+ if old_RAKE_COLUMNS then
+ ENV['RAKE_COLUMNS'].delete
+ else
+ ENV['RAKE_COLUMNS'] = old_RAKE_COLUMNS
+ end
+ end
+
+ def test_windows
+ assert ! (@app.windows? && @app.unix?)
+ end
+
+ def test_loading_imports
+ loader = util_loader
+
+ @app.instance_eval do
+ add_loader("dummy", loader)
+ add_import("x.dummy")
+ load_imports
+ end
+
+ # HACK no assertions
+ end
+
+ def test_building_imported_files_on_demand
+ loader = util_loader
+
+ @app.instance_eval do
+ intern(Rake::Task, "x.dummy").enhance do loader.make_dummy end
+ add_loader("dummy", loader)
+ add_import("x.dummy")
+ load_imports
+ end
+
+ # HACK no assertions
+ end
+
+ def test_handle_options_should_strip_options_from_ARGV
+ assert !@app.options.trace
+
+ valid_option = '--trace'
+ ARGV.clear
+ ARGV << valid_option
+
+ @app.handle_options
+
+ assert !ARGV.include?(valid_option)
+ assert @app.options.trace
+ end
+
+ def test_good_run
+ ran = false
+
+ ARGV << '--rakelib=""'
+
+ @app.options.silent = true
+
+ @app.instance_eval do
+ intern(Rake::Task, "default").enhance { ran = true }
+ end
+
+ rakefile_default
+
+ out, err = capture_io do
+ @app.run
+ end
+
+ assert ran
+ assert_empty err
+ assert_equal "DEFAULT\n", out
+ end
+
+ def test_display_task_run
+ ran = false
+ ARGV.clear
+ ARGV << '-f' << '-s' << '--tasks' << '--rakelib=""'
+ @app.last_description = "COMMENT"
+ @app.define_task(Rake::Task, "default")
+ out, = capture_io { @app.run }
+ assert @app.options.show_tasks
+ assert ! ran
+ assert_match(/rake default/, out)
+ assert_match(/# COMMENT/, out)
+ end
+
+ def test_display_prereqs
+ ran = false
+ ARGV.clear
+ ARGV << '-f' << '-s' << '--prereqs' << '--rakelib=""'
+ @app.last_description = "COMMENT"
+ t = @app.define_task(Rake::Task, "default")
+ t.enhance([:a, :b])
+ @app.define_task(Rake::Task, "a")
+ @app.define_task(Rake::Task, "b")
+ out, = capture_io { @app.run }
+ assert @app.options.show_prereqs
+ assert ! ran
+ assert_match(/rake a$/, out)
+ assert_match(/rake b$/, out)
+ assert_match(/rake default\n( *(a|b)\n){2}/m, out)
+ end
+
+ def test_bad_run
+ @app.intern(Rake::Task, "default").enhance { fail }
+ ARGV.clear
+ ARGV << '-f' << '-s' << '--rakelib=""'
+ assert_raises(SystemExit) {
+ _, err = capture_io { @app.run }
+ assert_match(/see full trace/, err)
+ }
+ ensure
+ ARGV.clear
+ end
+
+ def test_bad_run_with_trace
+ @app.intern(Rake::Task, "default").enhance { fail }
+ ARGV.clear
+ ARGV << '-f' << '-s' << '-t'
+ assert_raises(SystemExit) {
+ _, err = capture_io { @app.run }
+ refute_match(/see full trace/, err)
+ }
+ ensure
+ ARGV.clear
+ end
+
+ def test_run_with_bad_options
+ @app.intern(Rake::Task, "default").enhance { fail }
+ ARGV.clear
+ ARGV << '-f' << '-s' << '--xyzzy'
+ assert_raises(SystemExit) {
+ capture_io { @app.run }
+ }
+ ensure
+ ARGV.clear
+ end
+
+ def test_deprecation_message
+ _, err = capture_io do
+ @app.deprecate("a", "b", "c")
+ end
+ assert_match(/'a' is deprecated/i, err)
+ assert_match(/use 'b' instead/i, err)
+ assert_match(/at c$/i, err)
+ end
+
+ def test_standard_exception_handling_invalid_option
+ out, err = capture_io do
+ e = assert_raises SystemExit do
+ @app.standard_exception_handling do
+ raise OptionParser::InvalidOption, 'blah'
+ end
+ end
+
+ assert_equal 1, e.status
+ end
+
+ assert_empty out
+ assert_equal "invalid option: blah\n", err
+ end
+
+ def test_standard_exception_handling_other
+ out, err = capture_io do
+ e = assert_raises SystemExit do
+ @app.standard_exception_handling do
+ raise 'blah'
+ end
+ end
+
+ assert_equal 1, e.status
+ end
+
+ assert_empty out
+ assert_match "rake aborted!\n", err
+ assert_match "blah\n", err
+ end
+
+ def test_standard_exception_handling_system_exit
+ out, err = capture_io do
+ e = assert_raises SystemExit do
+ @app.standard_exception_handling do
+ exit 0
+ end
+ end
+
+ assert_equal 0, e.status
+ end
+
+ assert_empty out
+ assert_empty err
+ end
+
+ def test_standard_exception_handling_system_exit_nonzero
+ out, err = capture_io do
+ e = assert_raises SystemExit do
+ @app.standard_exception_handling do
+ exit 5
+ end
+ end
+
+ assert_equal 5, e.status
+ end
+
+ assert_empty out
+ assert_empty err
+ end
+
+ def util_loader
+ loader = Object.new
+
+ loader.instance_variable_set :@load_called, false
+ def loader.load arg
+ raise 'called more than once' if @load_called
+ raise ArgumentError, arg unless arg == 'x.dummy'
+ @load_called = true
+ end
+
+ loader.instance_variable_set :@make_dummy_called, false
+ def loader.make_dummy
+ raise 'called more than once' if @make_dummy_called
+ @make_dummy_called = true
+ end
+
+ loader
+ end
+
+end
+
diff --git a/test/rake/test_rake_application_options.rb b/test/rake/test_rake_application_options.rb
new file mode 100644
index 0000000000..c1471f443e
--- /dev/null
+++ b/test/rake/test_rake_application_options.rb
@@ -0,0 +1,335 @@
+require File.expand_path('../helper', __FILE__)
+
+TESTING_REQUIRE = [ ]
+
+class TestRakeApplicationOptions < Rake::TestCase
+
+ def setup
+ super
+
+ clear_argv
+ Rake::FileUtilsExt.verbose_flag = false
+ Rake::FileUtilsExt.nowrite_flag = false
+ TESTING_REQUIRE.clear
+ end
+
+ def teardown
+ clear_argv
+ Rake::FileUtilsExt.verbose_flag = false
+ Rake::FileUtilsExt.nowrite_flag = false
+
+ super
+ end
+
+ def clear_argv
+ while ! ARGV.empty?
+ ARGV.pop
+ end
+ end
+
+ def test_default_options
+ opts = command_line
+ assert_nil opts.classic_namespace
+ assert_nil opts.dryrun
+ assert_nil opts.ignore_system
+ assert_nil opts.load_system
+ assert_nil opts.nosearch
+ assert_equal ['rakelib'], opts.rakelib
+ assert_nil opts.show_prereqs
+ assert_nil opts.show_task_pattern
+ assert_nil opts.show_tasks
+ assert_nil opts.silent
+ assert_nil opts.trace
+ assert_equal ['rakelib'], opts.rakelib
+ assert ! Rake::FileUtilsExt.verbose_flag
+ assert ! Rake::FileUtilsExt.nowrite_flag
+ end
+
+ def test_dry_run
+ flags('--dry-run', '-n') do |opts|
+ assert opts.dryrun
+ assert opts.trace
+ assert Rake::FileUtilsExt.verbose_flag
+ assert Rake::FileUtilsExt.nowrite_flag
+ end
+ end
+
+ def test_describe
+ flags('--describe') do |opts|
+ assert_equal :describe, opts.show_tasks
+ assert_equal(//.to_s, opts.show_task_pattern.to_s)
+ end
+ end
+
+ def test_describe_with_pattern
+ flags('--describe=X') do |opts|
+ assert_equal :describe, opts.show_tasks
+ assert_equal(/X/.to_s, opts.show_task_pattern.to_s)
+ end
+ end
+
+ def test_execute
+ $xyzzy = 0
+ flags('--execute=$xyzzy=1', '-e $xyzzy=1') do |opts|
+ assert_equal 1, $xyzzy
+ assert_equal :exit, @exit
+ $xyzzy = 0
+ end
+ end
+
+ def test_execute_and_continue
+ $xyzzy = 0
+ flags('--execute-continue=$xyzzy=1', '-E $xyzzy=1') do |opts|
+ assert_equal 1, $xyzzy
+ refute_equal :exit, @exit
+ $xyzzy = 0
+ end
+ end
+
+ def test_execute_and_print
+ $xyzzy = 0
+ out, = capture_io do
+ flags('--execute-print=$xyzzy="pugh"', '-p $xyzzy="pugh"') do |opts|
+ assert_equal 'pugh', $xyzzy
+ assert_equal :exit, @exit
+ $xyzzy = 0
+ end
+ end
+
+ assert_match(/^pugh$/, out)
+ end
+
+ def test_help
+ out, = capture_io do
+ flags '--help', '-H', '-h'
+ end
+
+ assert_match(/\Arake/, out)
+ assert_match(/\boptions\b/, out)
+ assert_match(/\btargets\b/, out)
+ assert_equal :exit, @exit
+ end
+
+ def test_libdir
+ flags(['--libdir', 'xx'], ['-I', 'xx'], ['-Ixx']) do |opts|
+ $:.include?('xx')
+ end
+ ensure
+ $:.delete('xx')
+ end
+
+ def test_rakefile
+ flags(['--rakefile', 'RF'], ['--rakefile=RF'], ['-f', 'RF'], ['-fRF']) do |opts|
+ assert_equal ['RF'], @app.instance_eval { @rakefiles }
+ end
+ end
+
+ def test_rakelib
+ flags(['--rakelibdir', 'A:B:C'], ['--rakelibdir=A:B:C'], ['-R', 'A:B:C'], ['-RA:B:C']) do |opts|
+ assert_equal ['A', 'B', 'C'], opts.rakelib
+ end
+ end
+
+ def test_require
+ $LOAD_PATH.unshift @tempdir
+
+ open 'reqfile.rb', 'w' do |io| io << 'TESTING_REQUIRE << 1' end
+ open 'reqfile2.rb', 'w' do |io| io << 'TESTING_REQUIRE << 2' end
+ open 'reqfile3.rake', 'w' do |io| io << 'TESTING_REQUIRE << 3' end
+
+ flags(['--require', 'reqfile'], '-rreqfile2', '-rreqfile3')
+
+ assert_includes TESTING_REQUIRE, 1
+ assert_includes TESTING_REQUIRE, 2
+ assert_includes TESTING_REQUIRE, 3
+
+ assert_equal 3, TESTING_REQUIRE.size
+ ensure
+ $LOAD_PATH.delete @tempdir
+ end
+
+ def test_missing_require
+ ex = assert_raises(LoadError) do
+ flags(['--require', 'test/missing']) do |opts|
+ end
+ end
+ assert_match(/such file/, ex.message)
+ assert_match(/test\/missing/, ex.message)
+ end
+
+ def test_prereqs
+ flags('--prereqs', '-P') do |opts|
+ assert opts.show_prereqs
+ end
+ end
+
+ def test_quiet
+ flags('--quiet', '-q') do |opts|
+ assert ! Rake::FileUtilsExt.verbose_flag
+ assert ! opts.silent
+ end
+ end
+
+ def test_no_search
+ flags('--nosearch', '--no-search', '-N') do |opts|
+ assert opts.nosearch
+ end
+ end
+
+ def test_silent
+ flags('--silent', '-s') do |opts|
+ assert ! Rake::FileUtilsExt.verbose_flag
+ assert opts.silent
+ end
+ end
+
+ def test_system
+ flags('--system', '-g') do |opts|
+ assert opts.load_system
+ end
+ end
+
+ def test_no_system
+ flags('--no-system', '-G') do |opts|
+ assert opts.ignore_system
+ end
+ end
+
+ def test_trace
+ flags('--trace', '-t') do |opts|
+ assert opts.trace
+ assert Rake::FileUtilsExt.verbose_flag
+ assert ! Rake::FileUtilsExt.nowrite_flag
+ end
+ end
+
+ def test_trace_rules
+ flags('--rules') do |opts|
+ assert opts.trace_rules
+ end
+ end
+
+ def test_tasks
+ flags('--tasks', '-T') do |opts|
+ assert_equal :tasks, opts.show_tasks
+ assert_equal(//.to_s, opts.show_task_pattern.to_s)
+ end
+ flags(['--tasks', 'xyz'], ['-Txyz']) do |opts|
+ assert_equal :tasks, opts.show_tasks
+ assert_equal(/xyz/.to_s, opts.show_task_pattern.to_s)
+ end
+ end
+
+ def test_where
+ flags('--where', '-W') do |opts|
+ assert_equal :lines, opts.show_tasks
+ assert_equal(//.to_s, opts.show_task_pattern.to_s)
+ end
+ flags(['--where', 'xyz'], ['-Wxyz']) do |opts|
+ assert_equal :lines, opts.show_tasks
+ assert_equal(/xyz/.to_s, opts.show_task_pattern.to_s)
+ end
+ end
+
+ def test_no_deprecated_messages
+ flags('--no-deprecation-warnings', '-X') do |opts|
+ assert opts.ignore_deprecate
+ end
+ end
+
+ def test_verbose
+ out, = capture_io do
+ flags('--verbose', '-V') do |opts|
+ assert Rake::FileUtilsExt.verbose_flag
+ assert ! opts.silent
+ end
+ end
+
+ assert_equal "rake, version #{Rake::VERSION}\n", out
+ end
+
+ def test_version
+ out, = capture_io do
+ flags '--version', '-V'
+ end
+
+ assert_match(/\bversion\b/, out)
+ assert_match(/\b#{RAKEVERSION}\b/, out)
+ assert_equal :exit, @exit
+ end
+
+ def test_classic_namespace
+ _, err = capture_io do
+ flags(['--classic-namespace'],
+ ['-C', '-T', '-P', '-n', '-s', '-t']) do |opts|
+ assert opts.classic_namespace
+ assert_equal opts.show_tasks, $show_tasks
+ assert_equal opts.show_prereqs, $show_prereqs
+ assert_equal opts.trace, $trace
+ assert_equal opts.dryrun, $dryrun
+ assert_equal opts.silent, $silent
+ end
+ end
+
+ assert_match(/deprecated/, err)
+ end
+
+ def test_bad_option
+ _, err = capture_io do
+ ex = assert_raises(OptionParser::InvalidOption) do
+ flags('--bad-option')
+ end
+
+ if ex.message =~ /^While/ # Ruby 1.9 error message
+ assert_match(/while parsing/i, ex.message)
+ else # Ruby 1.8 error message
+ assert_match(/(invalid|unrecognized) option/i, ex.message)
+ assert_match(/--bad-option/, ex.message)
+ end
+ end
+
+ assert_equal '', err
+ end
+
+ def test_task_collection
+ command_line("a", "b")
+ assert_equal ["a", "b"], @tasks.sort
+ end
+
+ def test_default_task_collection
+ command_line()
+ assert_equal ["default"], @tasks
+ end
+
+ def test_environment_definition
+ ENV.delete('TESTKEY')
+ command_line("a", "TESTKEY=12")
+ assert_equal ["a"], @tasks.sort
+ assert '12', ENV['TESTKEY']
+ end
+
+ def flags(*sets)
+ sets.each do |set|
+ ARGV.clear
+
+ @exit = catch(:system_exit) { command_line(*set) }
+
+ yield(@app.options) if block_given?
+ end
+ end
+
+ def command_line(*options)
+ options.each do |opt| ARGV << opt end
+ @app = Rake::Application.new
+ def @app.exit(*args)
+ throw :system_exit, :exit
+ end
+ @app.instance_eval do
+ handle_options
+ collect_tasks
+ end
+ @tasks = @app.top_level_tasks
+ @app.options
+ end
+end
+
diff --git a/test/rake/test_rake_clean.rb b/test/rake/test_rake_clean.rb
new file mode 100644
index 0000000000..1541c69359
--- /dev/null
+++ b/test/rake/test_rake_clean.rb
@@ -0,0 +1,14 @@
+require File.expand_path('../helper', __FILE__)
+require 'rake/clean'
+
+class TestRakeClean < Rake::TestCase
+ include Rake
+ def test_clean
+ load 'rake/clean.rb', true
+
+ assert Task['clean'], "Should define clean"
+ assert Task['clobber'], "Should define clobber"
+ assert Task['clobber'].prerequisites.include?("clean"),
+ "Clobber should require clean"
+ end
+end
diff --git a/test/rake/test_rake_definitions.rb b/test/rake/test_rake_definitions.rb
new file mode 100644
index 0000000000..839c40419e
--- /dev/null
+++ b/test/rake/test_rake_definitions.rb
@@ -0,0 +1,80 @@
+require File.expand_path('../helper', __FILE__)
+require 'fileutils'
+
+class TestRakeDefinitions < Rake::TestCase
+ include Rake
+
+ EXISTINGFILE = "existing"
+
+ def setup
+ super
+
+ Task.clear
+ end
+
+ def test_task
+ done = false
+ task :one => [:two] do done = true end
+ task :two
+ task :three => [:one, :two]
+ check_tasks(:one, :two, :three)
+ assert done, "Should be done"
+ end
+
+ def test_file_task
+ done = false
+ file "one" => "two" do done = true end
+ file "two"
+ file "three" => ["one", "two"]
+ check_tasks("one", "two", "three")
+ assert done, "Should be done"
+ end
+
+ def check_tasks(n1, n2, n3)
+ t = Task[n1]
+ assert Task === t, "Should be a Task"
+ assert_equal n1.to_s, t.name
+ assert_equal [n2.to_s], t.prerequisites.collect{|n| n.to_s}
+ t.invoke
+ t2 = Task[n2]
+ assert_equal FileList[], t2.prerequisites
+ t3 = Task[n3]
+ assert_equal [n1.to_s, n2.to_s], t3.prerequisites.collect{|n|n.to_s}
+ end
+
+ def test_incremental_definitions
+ runs = []
+ task :t1 => [:t2] do runs << "A"; 4321 end
+ task :t1 => [:t3] do runs << "B"; 1234 end
+ task :t1 => [:t3]
+ task :t2
+ task :t3
+ Task[:t1].invoke
+ assert_equal ["A", "B"], runs
+ assert_equal ["t2", "t3"], Task[:t1].prerequisites
+ end
+
+ def test_missing_dependencies
+ task :x => ["missing"]
+ assert_raises(RuntimeError) { Task[:x].invoke }
+ end
+
+ def test_implicit_file_dependencies
+ runs = []
+ create_existing_file
+ task :y => [EXISTINGFILE] do |t| runs << t.name end
+ Task[:y].invoke
+ assert_equal runs, ['y']
+ end
+
+ private # ----------------------------------------------------------
+
+ def create_existing_file
+ Dir.mkdir File.dirname(EXISTINGFILE) unless
+ File.exist?(File.dirname(EXISTINGFILE))
+ open(EXISTINGFILE, "w") do |f| f.puts "HI" end unless
+ File.exist?(EXISTINGFILE)
+ end
+
+end
+
diff --git a/test/rake/test_rake_directory_task.rb b/test/rake/test_rake_directory_task.rb
new file mode 100644
index 0000000000..631882c69d
--- /dev/null
+++ b/test/rake/test_rake_directory_task.rb
@@ -0,0 +1,46 @@
+require File.expand_path('../helper', __FILE__)
+require 'fileutils'
+
+class TestRakeDirectoryTask < Rake::TestCase
+ include Rake
+
+ def test_directory
+ desc "DESC"
+
+ directory "a/b/c"
+
+ assert_equal FileCreationTask, Task["a"].class
+ assert_equal FileCreationTask, Task["a/b"].class
+ assert_equal FileCreationTask, Task["a/b/c"].class
+
+ assert_nil Task["a"].comment
+ assert_nil Task["a/b"].comment
+ assert_equal "DESC", Task["a/b/c"].comment
+
+ verbose(false) {
+ Task['a/b'].invoke
+ }
+
+ assert File.exist?("a/b")
+ refute File.exist?("a/b/c")
+ end
+
+ if Rake::Win32.windows?
+ def test_directory_win32
+ desc "WIN32 DESC"
+ directory 'c:/a/b/c'
+ assert_equal FileTask, Task['c:'].class
+ assert_equal FileCreationTask, Task['c:/a'].class
+ assert_equal FileCreationTask, Task['c:/a/b'].class
+ assert_equal FileCreationTask, Task['c:/a/b/c'].class
+ assert_nil Task['c:/'].comment
+ assert_equal "WIN32 DESC", Task['c:/a/b/c'].comment
+ assert_nil Task['c:/a/b'].comment
+ verbose(false) {
+ Task['c:/a/b'].invoke
+ }
+ assert File.exist?('c:/a/b')
+ refute File.exist?('c:/a/b/c')
+ end
+ end
+end
diff --git a/test/rake/test_rake_dsl.rb b/test/rake/test_rake_dsl.rb
new file mode 100644
index 0000000000..de83b89ab4
--- /dev/null
+++ b/test/rake/test_rake_dsl.rb
@@ -0,0 +1,77 @@
+require File.expand_path('../helper', __FILE__)
+
+class TestRakeDsl < Rake::TestCase
+
+ def setup
+ super
+ Rake::Task.clear
+ end
+
+ def test_namespace_command
+ namespace "n" do
+ task "t"
+ end
+ refute_nil Rake::Task["n:t"]
+ end
+
+ def test_namespace_command_with_bad_name
+ ex = assert_raises(ArgumentError) do
+ namespace 1 do end
+ end
+ assert_match(/string/i, ex.message)
+ assert_match(/symbol/i, ex.message)
+ end
+
+ def test_namespace_command_with_a_string_like_object
+ name = Object.new
+ def name.to_str
+ "bob"
+ end
+ namespace name do
+ task "t"
+ end
+ refute_nil Rake::Task["bob:t"]
+ end
+
+ class Foo
+ def initialize
+ task :foo_deprecated_a => "foo_deprecated_b" do
+ print "a"
+ end
+ file "foo_deprecated_b" do
+ print "b"
+ end
+ end
+ end
+
+ def test_deprecated_object_dsl
+ out, err = capture_io do
+ Foo.new
+ Rake.application.invoke_task :foo_deprecated_a
+ end
+ assert_equal("ba", out)
+ assert_match(/deprecated/, err)
+ assert_match(/Foo\#task/, err)
+ assert_match(/Foo\#file/, err)
+ assert_match(/test_rake_dsl\.rb:\d+/, err)
+ end
+
+ def test_no_commands_constant
+ assert ! defined?(Commands), "should not define Commands"
+ end
+
+ def test_deprecated_object_dsl_with_suppressed_warnings
+ Rake.application.options.ignore_deprecate = true
+ out, err = capture_io do
+ Foo.new
+ Rake.application.invoke_task :foo_deprecated_a
+ end
+ assert_equal("ba", out)
+ refute_match(/deprecated/, err)
+ refute_match(/Foo\#task/, err)
+ refute_match(/Foo\#file/, err)
+ refute_match(/test_rake_dsl\.rb:\d+/, err)
+ ensure
+ Rake.application.options.ignore_deprecate = false
+ end
+end
diff --git a/test/rake/test_rake_early_time.rb b/test/rake/test_rake_early_time.rb
new file mode 100644
index 0000000000..18c4dad324
--- /dev/null
+++ b/test/rake/test_rake_early_time.rb
@@ -0,0 +1,31 @@
+require File.expand_path('../helper', __FILE__)
+
+class TestRakeEarlyTime < Rake::TestCase
+ def test_create
+ early = Rake::EarlyTime.instance
+ assert early <= Time.now
+ assert early < Time.now
+ assert early != Time.now
+ assert Time.now > early
+ assert Time.now >= early
+ assert Time.now != early
+ end
+
+ def test_equality
+ early = Rake::EarlyTime.instance
+ assert_equal early, early, "two early times should be equal"
+ end
+
+ def test_original_time_compare_is_not_messed_up
+ t1 = Time.mktime(1970, 1, 1, 0, 0, 0)
+ t2 = Time.now
+ assert t1 < t2
+ assert t2 > t1
+ assert t1 == t1
+ assert t2 == t2
+ end
+
+ def test_to_s
+ assert_equal "<EARLY TIME>", Rake::EARLY.to_s
+ end
+end
diff --git a/test/rake/test_rake_extension.rb b/test/rake/test_rake_extension.rb
new file mode 100644
index 0000000000..18d55f19f9
--- /dev/null
+++ b/test/rake/test_rake_extension.rb
@@ -0,0 +1,59 @@
+require File.expand_path('../helper', __FILE__)
+require 'stringio'
+
+class TestRakeExtension < Rake::TestCase
+
+ module Redirect
+ def error_redirect
+ old_err = $stderr
+ result = StringIO.new
+ $stderr = result
+ yield
+ result
+ ensure
+ $stderr = old_err
+ end
+ end
+
+ class Sample
+ extend Redirect
+
+ def duplicate_method
+ :original
+ end
+
+ OK_ERRS = error_redirect do
+ rake_extension("a") do
+ def ok_method
+ end
+ end
+ end
+
+
+ DUP_ERRS = error_redirect do
+ rake_extension("duplicate_method") do
+ def duplicate_method
+ :override
+ end
+ end
+ end
+ end
+
+ def test_methods_actually_exist
+ sample = Sample.new
+ sample.ok_method
+ sample.duplicate_method
+ end
+
+ def test_no_warning_when_defining_ok_method
+ assert_equal "", Sample::OK_ERRS.string
+ end
+
+ def test_extension_complains_when_a_method_that_is_present
+ assert_match(/warning:/i, Sample::DUP_ERRS.string)
+ assert_match(/already exists/i, Sample::DUP_ERRS.string)
+ assert_match(/duplicate_method/i, Sample::DUP_ERRS.string)
+ assert_equal :original, Sample.new.duplicate_method
+ end
+
+end
diff --git a/test/rake/test_rake_file_creation_task.rb b/test/rake/test_rake_file_creation_task.rb
new file mode 100644
index 0000000000..d486d2f0d4
--- /dev/null
+++ b/test/rake/test_rake_file_creation_task.rb
@@ -0,0 +1,56 @@
+require File.expand_path('../helper', __FILE__)
+require 'fileutils'
+
+######################################################################
+class TestRakeFileCreationTask < Rake::TestCase
+ include Rake
+ include Rake::DSL
+
+ DUMMY_DIR = 'dummy_dir'
+
+ def setup
+ super
+
+ Task.clear
+ end
+
+ def test_file_needed
+ create_dir DUMMY_DIR
+ fc_task = Task[DUMMY_DIR]
+ assert_equal DUMMY_DIR, fc_task.name
+ FileUtils.rm_rf fc_task.name
+ assert fc_task.needed?, "file should be needed"
+ FileUtils.mkdir fc_task.name
+ assert_equal nil, fc_task.prerequisites.collect{|n| Task[n].timestamp}.max
+ assert ! fc_task.needed?, "file should not be needed"
+ end
+
+ def test_directory
+ directory DUMMY_DIR
+ fc_task = Task[DUMMY_DIR]
+ assert_equal DUMMY_DIR, fc_task.name
+ assert FileCreationTask === fc_task
+ end
+
+ def test_no_retriggers_on_filecreate_task
+ create_timed_files(OLDFILE, NEWFILE)
+ t1 = Rake.application.intern(FileCreationTask, OLDFILE).enhance([NEWFILE])
+ t2 = Rake.application.intern(FileCreationTask, NEWFILE)
+ assert ! t2.needed?, "Should not need to build new file"
+ assert ! t1.needed?, "Should not need to rebuild old file because of new"
+ end
+
+ def test_no_retriggers_on_file_task
+ create_timed_files(OLDFILE, NEWFILE)
+ t1 = Rake.application.intern(FileCreationTask, OLDFILE).enhance([NEWFILE])
+ t2 = Rake.application.intern(FileCreationTask, NEWFILE)
+ assert ! t2.needed?, "Should not need to build new file"
+ assert ! t1.needed?, "Should not need to rebuild old file because of new"
+ end
+
+ def test_very_early_timestamp
+ t1 = Rake.application.intern(FileCreationTask, OLDFILE)
+ assert t1.timestamp < Time.now
+ assert t1.timestamp < Time.now - 1000000
+ end
+end
diff --git a/test/rake/test_rake_file_list.rb b/test/rake/test_rake_file_list.rb
new file mode 100644
index 0000000000..08939fb6ed
--- /dev/null
+++ b/test/rake/test_rake_file_list.rb
@@ -0,0 +1,628 @@
+require File.expand_path('../helper', __FILE__)
+
+class TestRakeFileList < Rake::TestCase
+ FileList = Rake::FileList
+
+ def setup
+ super
+
+ FileUtils.mkdir "CVS" rescue nil
+ FileUtils.mkdir ".svn" rescue nil
+ @cdir = "cfiles"
+ FileUtils.mkdir @cdir rescue nil
+ FileUtils.touch ".dummy"
+ FileUtils.touch "x.bak"
+ FileUtils.touch "x~"
+ FileUtils.touch "core"
+ FileUtils.touch "x.c"
+ FileUtils.touch "xyz.c"
+ FileUtils.touch "abc.c"
+ FileUtils.touch "abc.h"
+ FileUtils.touch "abc.x"
+ FileUtils.touch "existing"
+
+ open 'xyzzy.txt', 'w' do |io|
+ io.puts 'x'
+ io.puts 'XYZZY'
+ end
+
+ end
+
+ def test_delegating_methods_do_not_include_to_a_or_to_ary
+ assert ! FileList::DELEGATING_METHODS.include?("to_a"), "should not include to_a"
+ assert ! FileList::DELEGATING_METHODS.include?(:to_a), "should not include to_a"
+ assert ! FileList::DELEGATING_METHODS.include?("to_ary"), "should not include to_ary"
+ assert ! FileList::DELEGATING_METHODS.include?(:to_ary), "should not include to_ary"
+ end
+
+ def test_create
+ fl = FileList.new
+ assert_equal 0, fl.size
+ end
+
+ def test_create_with_args
+ fl = FileList.new("*.c", "x")
+ assert_equal ["abc.c", "x.c", "xyz.c", "x"].sort,
+ fl.sort
+ end
+
+ def test_create_with_block
+ fl = FileList.new { |f| f.include("x") }
+ assert_equal ["x"], fl.resolve
+ end
+
+ def test_create_with_brackets
+ fl = FileList["*.c", "x"]
+ assert_equal ["abc.c", "x.c", "xyz.c", "x"].sort,
+ fl.sort
+ end
+
+ def test_create_with_brackets_and_filelist
+ fl = FileList[FileList["*.c", "x"]]
+ assert_equal ["abc.c", "x.c", "xyz.c", "x"].sort,
+ fl.sort
+ end
+
+ def test_include_with_another_array
+ fl = FileList.new.include(["x", "y", "z"])
+ assert_equal ["x", "y", "z"].sort, fl.sort
+ end
+
+ def test_include_with_another_filelist
+ fl = FileList.new.include(FileList["*.c", "x"])
+ assert_equal ["abc.c", "x.c", "xyz.c", "x"].sort,
+ fl.sort
+ end
+
+ def test_append
+ fl = FileList.new
+ fl << "a.rb" << "b.rb"
+ assert_equal ['a.rb', 'b.rb'], fl
+ end
+
+ def test_add_many
+ fl = FileList.new
+ fl.include %w(a d c)
+ fl.include('x', 'y')
+ assert_equal ['a', 'd', 'c', 'x', 'y'], fl
+ assert_equal ['a', 'd', 'c', 'x', 'y'], fl.resolve
+ end
+
+ def test_add_return
+ f = FileList.new
+ g = f << "x"
+ assert_equal f.object_id, g.object_id
+ h = f.include("y")
+ assert_equal f.object_id, h.object_id
+ end
+
+ def test_match
+ fl = FileList.new
+ fl.include '*.c'
+
+ assert_equal %w[abc.c x.c xyz.c], fl.sort
+ end
+
+ def test_add_matching
+ fl = FileList.new
+ fl << "a.java"
+ fl.include '*.c'
+
+ assert_equal %w[a.java abc.c x.c xyz.c], fl.sort
+ end
+
+ def test_multiple_patterns
+ fl = FileList.new
+ fl.include('*.z', '*foo*')
+
+ assert_equal [], fl
+
+ fl.include('*.c', '*xist*')
+ assert_equal %w[x.c xyz.c abc.c existing].sort, fl.sort
+ end
+
+ def test_square_bracket_pattern
+ fl = FileList.new
+ fl.include("abc.[ch]")
+ assert fl.size == 2
+ assert fl.include?("abc.c")
+ assert fl.include?("abc.h")
+ end
+
+ def test_curly_bracket_pattern
+ fl = FileList.new
+ fl.include("abc.{c,h}")
+ assert fl.size == 2
+ assert fl.include?("abc.c")
+ assert fl.include?("abc.h")
+ end
+
+ def test_reject
+ fl = FileList.new
+ fl.include %w(x.c abc.c xyz.c existing)
+ fl.reject! { |fn| fn =~ /^x/ }
+ assert_equal %w[abc.c existing], fl
+ end
+
+ def test_exclude
+ fl = FileList['x.c', 'abc.c', 'xyz.c', 'existing']
+ fl.each { |fn| touch fn, :verbose => false }
+
+ x = fl.exclude(%r{^x.+\.})
+
+ assert_equal FileList, x.class
+ assert_equal %w(x.c abc.c existing), fl
+ assert_equal fl.object_id, x.object_id
+
+ fl.exclude('*.c')
+
+ assert_equal ['existing'], fl
+
+ fl.exclude('existing')
+
+ assert_equal [], fl
+ end
+
+ def test_excluding_via_block
+ fl = FileList['a.c', 'b.c', 'xyz.c']
+ fl.exclude { |fn| fn.pathmap('%n') == 'xyz' }
+ assert fl.exclude?("xyz.c"), "Should exclude xyz.c"
+ assert_equal ['a.c', 'b.c'], fl
+ end
+
+ def test_exclude_return_on_create
+ fl = FileList['*'].exclude(/.*\.[hcx]$/)
+ assert_equal %w[cfiles existing xyzzy.txt], fl.sort
+ assert_equal FileList, fl.class
+ end
+
+ def test_exclude_with_string_return_on_create
+ fl = FileList['*'].exclude('abc.c')
+ assert_equal %w[abc.h abc.x cfiles existing x.c xyz.c xyzzy.txt], fl.sort
+ assert_equal FileList, fl.class
+ end
+
+ def test_default_exclude
+ fl = FileList.new
+ fl.clear_exclude
+ fl.include("**/*~", "**/*.bak", "**/core")
+ assert fl.member?("core"), "Should include core"
+ assert fl.member?("x.bak"), "Should include .bak files"
+ end
+
+ def test_unique
+ fl = FileList.new
+ fl << "x.c" << "a.c" << "b.rb" << "a.c"
+ assert_equal ['x.c', 'a.c', 'b.rb', 'a.c'], fl
+ fl.uniq!
+ assert_equal ['x.c', 'a.c', 'b.rb'], fl
+ end
+
+ def test_to_string
+ fl = FileList.new
+ fl << "a.java" << "b.java"
+ assert_equal "a.java b.java", fl.to_s
+ assert_equal "a.java b.java", "#{fl}"
+ end
+
+ def test_to_array
+ fl = FileList['a.java', 'b.java']
+ assert_equal ['a.java', 'b.java'], fl.to_a
+ assert_equal Array, fl.to_a.class
+ assert_equal ['a.java', 'b.java'], fl.to_ary
+ assert_equal Array, fl.to_ary.class
+ end
+
+ def test_to_s_pending
+ fl = FileList['abc.*']
+ result = fl.to_s
+ assert_match(%r{abc\.c}, result)
+ assert_match(%r{abc\.h}, result)
+ assert_match(%r{abc\.x}, result)
+ assert_match(%r{(abc\..\b ?){2}}, result)
+ end
+
+ def test_inspect_pending
+ fl = FileList['abc.*']
+ result = fl.inspect
+ assert_match(%r{"abc\.c"}, result)
+ assert_match(%r{"abc\.h"}, result)
+ assert_match(%r{"abc\.x"}, result)
+ assert_match(%r|^\[("abc\..", ){2}"abc\.."\]$|, result)
+ end
+
+ def test_sub
+ fl = FileList["*.c"]
+ f2 = fl.sub(/\.c$/, ".o")
+ assert_equal FileList, f2.class
+ assert_equal ["abc.o", "x.o", "xyz.o"].sort,
+ f2.sort
+ f3 = fl.gsub(/\.c$/, ".o")
+ assert_equal FileList, f3.class
+ assert_equal ["abc.o", "x.o", "xyz.o"].sort,
+ f3.sort
+ end
+
+ def test_claim_to_be_a_kind_of_array
+ fl = FileList['*.c']
+ assert fl.is_a?(Array)
+ assert fl.kind_of?(Array)
+ end
+
+ def test_claim_to_be_a_kind_of_filelist
+ fl = FileList['*.c']
+ assert fl.is_a?(FileList)
+ assert fl.kind_of?(FileList)
+ end
+
+ def test_claim_to_be_a_filelist_instance
+ fl = FileList['*.c']
+ assert fl.instance_of?(FileList)
+ end
+
+ def test_dont_claim_to_be_an_array_instance
+ fl = FileList['*.c']
+ assert ! fl.instance_of?(Array)
+ end
+
+ def test_sub!
+ f = "x/a.c"
+ fl = FileList[f, "x/b.c"]
+ res = fl.sub!(/\.c$/, ".o")
+ assert_equal ["x/a.o", "x/b.o"].sort, fl.sort
+ assert_equal "x/a.c", f
+ assert_equal fl.object_id, res.object_id
+ end
+
+ def test_sub_with_block
+ fl = FileList["src/org/onestepback/a.java", "src/org/onestepback/b.java"]
+# The block version doesn't work the way I want it to ...
+# f2 = fl.sub(%r{^src/(.*)\.java$}) { |x| "classes/" + $1 + ".class" }
+ f2 = fl.sub(%r{^src/(.*)\.java$}, "classes/\\1.class")
+ assert_equal [
+ "classes/org/onestepback/a.class",
+ "classes/org/onestepback/b.class"
+ ].sort,
+ f2.sort
+ end
+
+ def test_string_ext
+ assert_equal "one.net", "one.two".ext("net")
+ assert_equal "one.net", "one.two".ext(".net")
+ assert_equal "one.net", "one".ext("net")
+ assert_equal "one.net", "one".ext(".net")
+ assert_equal "one.two.net", "one.two.c".ext(".net")
+ assert_equal "one/two.net", "one/two.c".ext(".net")
+ assert_equal "one.x/two.net", "one.x/two.c".ext(".net")
+ assert_equal "one.x/two.net", "one.x/two".ext(".net")
+ assert_equal ".onerc.net", ".onerc.dot".ext("net")
+ assert_equal ".onerc.net", ".onerc".ext("net")
+ assert_equal ".a/.onerc.net", ".a/.onerc".ext("net")
+ assert_equal "one", "one.two".ext('')
+ assert_equal "one", "one.two".ext
+ assert_equal ".one", ".one.two".ext
+ assert_equal ".one", ".one".ext
+ assert_equal ".", ".".ext("c")
+ assert_equal "..", "..".ext("c")
+ # These only need to work in windows
+ if Rake::Win32.windows?
+ assert_equal "one.x\\two.net", "one.x\\two.c".ext(".net")
+ assert_equal "one.x\\two.net", "one.x\\two".ext(".net")
+ end
+ end
+
+ def test_filelist_ext
+ assert_equal FileList['one.c', '.one.c'],
+ FileList['one.net', '.one'].ext('c')
+ end
+
+ def test_gsub
+ fl = FileList["*.c"]
+ f2 = fl.gsub(/a/, "A")
+ assert_equal ["Abc.c", "x.c", "xyz.c"].sort,
+ f2.sort
+ end
+
+ def test_gsub!
+ f = FileList["*.c"]
+ f.gsub!(/a/, "A")
+ assert_equal ["Abc.c", "x.c", "xyz.c"].sort,
+ f.sort
+ end
+
+ def test_egrep_returns_0_if_no_matches
+ files = FileList['test/lib/*_test.rb'].exclude("test/lib/filelist_test.rb")
+ assert_equal 0, files.egrep(/XYZZY/) { }
+ end
+
+ def test_egrep_with_output
+ files = FileList['*.txt']
+
+ out, = capture_io do
+ files.egrep(/XYZZY/)
+ end
+
+ assert_equal "xyzzy.txt:2:XYZZY\n", out
+ end
+
+ def test_egrep_with_block
+ files = FileList['*.txt']
+ found = nil
+
+ files.egrep(/XYZZY/) do |fn, ln, line|
+ found = [fn, ln, line]
+ end
+
+ assert_equal ["xyzzy.txt", 2, "XYZZY\n"], found
+ end
+
+ def test_egrep_with_error
+ files = FileList['*.txt']
+
+ _, err = capture_io do
+ files.egrep(/XYZZY/) do |fn, ln, line |
+ raise "_EGREP_FAILURE_"
+ end
+ end
+
+ assert_equal "Error while processing 'xyzzy.txt': _EGREP_FAILURE_\n", err
+ end
+
+ def test_existing
+ fl = FileList['abc.c', 'notthere.c']
+ assert_equal ["abc.c"], fl.existing
+ assert fl.existing.is_a?(FileList)
+ end
+
+ def test_existing!
+ fl = FileList['abc.c', 'notthere.c']
+ result = fl.existing!
+ assert_equal ["abc.c"], fl
+ assert_equal fl.object_id, result.object_id
+ end
+
+ def test_ignore_special
+ f = FileList['*']
+ assert ! f.include?("CVS"), "Should not contain CVS"
+ assert ! f.include?(".svn"), "Should not contain .svn"
+ assert ! f.include?(".dummy"), "Should not contain dot files"
+ assert ! f.include?("x.bak"), "Should not contain .bak files"
+ assert ! f.include?("x~"), "Should not contain ~ files"
+ assert ! f.include?("core"), "Should not contain core files"
+ end
+
+ def test_clear_ignore_patterns
+ f = FileList['*', '.svn']
+ f.clear_exclude
+ assert f.include?("abc.c")
+ assert f.include?("xyz.c")
+ assert f.include?("CVS")
+ assert f.include?(".svn")
+ assert f.include?("x.bak")
+ assert f.include?("x~")
+ end
+
+ def test_exclude_with_alternate_file_seps
+ fl = FileList.new
+ assert fl.exclude?("x/CVS/y")
+ assert fl.exclude?("x\\CVS\\y")
+ assert fl.exclude?("x/.svn/y")
+ assert fl.exclude?("x\\.svn\\y")
+ assert fl.exclude?("x/core")
+ assert fl.exclude?("x\\core")
+ end
+
+ def test_add_default_exclude_list
+ fl = FileList.new
+ fl.exclude(/~\d+$/)
+ assert fl.exclude?("x/CVS/y")
+ assert fl.exclude?("x\\CVS\\y")
+ assert fl.exclude?("x/.svn/y")
+ assert fl.exclude?("x\\.svn\\y")
+ assert fl.exclude?("x/core")
+ assert fl.exclude?("x\\core")
+ assert fl.exclude?("x/abc~1")
+ end
+
+ def test_basic_array_functions
+ f = FileList['b', 'c', 'a']
+ assert_equal 'b', f.first
+ assert_equal 'b', f[0]
+ assert_equal 'a', f.last
+ assert_equal 'a', f[2]
+ assert_equal 'a', f[-1]
+ assert_equal ['a', 'b', 'c'], f.sort
+ f.sort!
+ assert_equal ['a', 'b', 'c'], f
+ end
+
+ def test_flatten
+ assert_equal ['a', 'x.c', 'xyz.c', 'abc.c'].sort,
+ ['a', FileList['*.c']].flatten.sort
+ end
+
+ def test_clone_and_dup
+ a = FileList['a', 'b', 'c']
+ c = a.clone
+ d = a.dup
+ a << 'd'
+ assert_equal ['a', 'b', 'c', 'd'], a
+ assert_equal ['a', 'b', 'c'], c
+ assert_equal ['a', 'b', 'c'], d
+ end
+
+ def test_dup_and_clone_replicate_taint
+ a = FileList['a', 'b', 'c']
+ a.taint
+ c = a.clone
+ d = a.dup
+ assert c.tainted?, "Clone should be tainted"
+ assert d.tainted?, "Dup should be tainted"
+ end
+
+ def test_duped_items_will_thaw
+ a = FileList['a', 'b', 'c']
+ a.freeze
+ d = a.dup
+ d << 'more'
+ assert_equal ['a', 'b', 'c', 'more'], d
+ end
+
+ def test_cloned_items_stay_frozen
+ a = FileList['a', 'b', 'c']
+ a.freeze
+ c = a.clone
+ assert_raises(TypeError, RuntimeError) do
+ c << 'more'
+ end
+ end
+
+ def test_array_comparisons
+ fl = FileList['b', 'b']
+ a = ['b', 'a']
+ b = ['b', 'b']
+ c = ['b', 'c']
+ assert_equal( 1, fl <=> a )
+ assert_equal( 0, fl <=> b )
+ assert_equal( -1, fl <=> c )
+ assert_equal( -1, a <=> fl )
+ assert_equal( 0, b <=> fl )
+ assert_equal( 1, c <=> fl )
+ end
+
+ def test_array_equality
+ a = FileList['a', 'b']
+ b = ['a', 'b']
+ assert a == b
+ assert b == a
+# assert a.eql?(b)
+# assert b.eql?(a)
+ assert ! a.equal?(b)
+ assert ! b.equal?(a)
+ end
+
+ def test_enumeration_methods
+ a = FileList['a', 'b']
+ b = a.collect { |it| it.upcase }
+ assert_equal ['A', 'B'], b
+ assert_equal FileList, b.class
+
+ b = a.map { |it| it.upcase }
+ assert_equal ['A', 'B'], b
+ assert_equal FileList, b.class
+
+ b = a.sort
+ assert_equal ['a', 'b'], b
+ assert_equal FileList, b.class
+
+ b = a.sort_by { |it| it }
+ assert_equal ['a', 'b'], b
+ assert_equal FileList, b.class
+
+ b = a.find_all { |it| it == 'b'}
+ assert_equal ['b'], b
+ assert_equal FileList, b.class
+
+ b = a.select { |it| it.size == 1 }
+ assert_equal ['a', 'b'], b
+ assert_equal FileList, b.class
+
+ b = a.reject { |it| it == 'b' }
+ assert_equal ['a'], b
+ assert_equal FileList, b.class
+
+ b = a.grep(/./)
+ assert_equal ['a', 'b'], b
+ assert_equal FileList, b.class
+
+ b = a.partition { |it| it == 'b' }
+ assert_equal [['b'], ['a']], b
+ assert_equal Array, b.class
+ assert_equal FileList, b[0].class
+ assert_equal FileList, b[1].class
+
+ b = a.zip(['x', 'y']).to_a
+ assert_equal [['a', 'x'], ['b', 'y']], b
+ assert_equal Array, b.class
+ assert_equal Array, b[0].class
+ assert_equal Array, b[1].class
+ end
+
+ def test_array_operators
+ a = ['a', 'b']
+ b = ['c', 'd']
+ f = FileList['x', 'y']
+ g = FileList['w', 'z']
+
+ r = f + g
+ assert_equal ['x', 'y', 'w', 'z'], r
+ assert_equal FileList, r.class
+
+ r = a + g
+ assert_equal ['a', 'b', 'w', 'z'], r
+ assert_equal Array, r.class
+
+ r = f + b
+ assert_equal ['x', 'y', 'c', 'd'], r
+ assert_equal FileList, r.class
+
+ r = FileList['w', 'x', 'y', 'z'] - f
+ assert_equal ['w', 'z'], r
+ assert_equal FileList, r.class
+
+ r = FileList['w', 'x', 'y', 'z'] & f
+ assert_equal ['x', 'y'], r
+ assert_equal FileList, r.class
+
+ r = f * 2
+ assert_equal ['x', 'y', 'x', 'y'], r
+ assert_equal FileList, r.class
+
+ r = f * ','
+ assert_equal 'x,y', r
+ assert_equal String, r.class
+
+ r = f | ['a', 'x']
+ assert_equal ['a', 'x', 'y'].sort, r.sort
+ assert_equal FileList, r.class
+ end
+
+ def test_other_array_returning_methods
+ f = FileList['a', nil, 'b']
+ r = f.compact
+ assert_equal ['a', 'b'], r
+ assert_equal FileList, r.class
+
+ f = FileList['a', 'b']
+ r = f.concat(['x', 'y'])
+ assert_equal ['a', 'b', 'x', 'y'], r
+ assert_equal FileList, r.class
+
+ f = FileList['a', ['b', 'c'], FileList['d', 'e']]
+ r = f.flatten
+ assert_equal ['a', 'b', 'c', 'd', 'e'], r
+ assert_equal FileList, r.class
+
+ f = FileList['a', 'b', 'a']
+ r = f.uniq
+ assert_equal ['a', 'b'], r
+ assert_equal FileList, r.class
+
+ f = FileList['a', 'b', 'c', 'd']
+ r = f.values_at(1,3)
+ assert_equal ['b', 'd'], r
+ assert_equal FileList, r.class
+ end
+
+ def test_file_utils_can_use_filelists
+ cfiles = FileList['*.c']
+
+ cp cfiles, @cdir, :verbose => false
+
+ assert File.exist?(File.join(@cdir, 'abc.c'))
+ assert File.exist?(File.join(@cdir, 'xyz.c'))
+ assert File.exist?(File.join(@cdir, 'x.c'))
+ end
+
+end
+
diff --git a/test/rake/test_rake_file_list_path_map.rb b/test/rake/test_rake_file_list_path_map.rb
new file mode 100644
index 0000000000..5935dc2689
--- /dev/null
+++ b/test/rake/test_rake_file_list_path_map.rb
@@ -0,0 +1,8 @@
+require File.expand_path('../helper', __FILE__)
+
+class TestRakeFileListPathMap < Rake::TestCase
+ def test_file_list_supports_pathmap
+ assert_equal ['a', 'b'], FileList['dir/a.rb', 'dir/b.rb'].pathmap("%n")
+ end
+end
+
diff --git a/test/rake/test_rake_file_task.rb b/test/rake/test_rake_file_task.rb
new file mode 100644
index 0000000000..e586551237
--- /dev/null
+++ b/test/rake/test_rake_file_task.rb
@@ -0,0 +1,102 @@
+require File.expand_path('../helper', __FILE__)
+require 'fileutils'
+
+class TestRakeFileTask < Rake::TestCase
+ include Rake
+
+ def setup
+ super
+
+ Task.clear
+ @runs = Array.new
+ FileUtils.rm_f NEWFILE
+ FileUtils.rm_f OLDFILE
+ end
+
+ def test_file_need
+ name = "dummy"
+ file name
+
+ ftask = Task[name]
+
+ assert_equal name.to_s, ftask.name
+ File.delete(ftask.name) rescue nil
+
+ assert ftask.needed?, "file should be needed"
+
+ open(ftask.name, "w") { |f| f.puts "HI" }
+
+ assert_equal nil, ftask.prerequisites.collect{|n| Task[n].timestamp}.max
+ assert ! ftask.needed?, "file should not be needed"
+ ensure
+ File.delete(ftask.name) rescue nil
+ end
+
+ def test_file_times_new_depends_on_old
+ create_timed_files(OLDFILE, NEWFILE)
+
+ t1 = Rake.application.intern(FileTask, NEWFILE).enhance([OLDFILE])
+ t2 = Rake.application.intern(FileTask, OLDFILE)
+ assert ! t2.needed?, "Should not need to build old file"
+ assert ! t1.needed?, "Should not need to rebuild new file because of old"
+ end
+
+ def test_file_times_old_depends_on_new
+ create_timed_files(OLDFILE, NEWFILE)
+
+ t1 = Rake.application.intern(FileTask,OLDFILE).enhance([NEWFILE])
+ t2 = Rake.application.intern(FileTask, NEWFILE)
+ assert ! t2.needed?, "Should not need to build new file"
+ preq_stamp = t1.prerequisites.collect{|t| Task[t].timestamp}.max
+ assert_equal t2.timestamp, preq_stamp
+ assert t1.timestamp < preq_stamp, "T1 should be older"
+ assert t1.needed?, "Should need to rebuild old file because of new"
+ end
+
+ def test_file_depends_on_task_depend_on_file
+ create_timed_files(OLDFILE, NEWFILE)
+
+ file NEWFILE => [:obj] do |t| @runs << t.name end
+ task :obj => [OLDFILE] do |t| @runs << t.name end
+ file OLDFILE do |t| @runs << t.name end
+
+ Task[:obj].invoke
+ Task[NEWFILE].invoke
+ assert ! @runs.include?(NEWFILE)
+ end
+
+ def test_existing_file_depends_on_non_existing_file
+ @ran = false
+
+ create_file(OLDFILE)
+ delete_file(NEWFILE)
+ file NEWFILE do
+ @ran = true
+ end
+
+ file OLDFILE => NEWFILE
+
+ Task[OLDFILE].invoke
+
+ assert @ran
+ end
+
+ # I have currently disabled this test. I'm not convinced that
+ # deleting the file target on failure is always the proper thing to
+ # do. I'm willing to hear input on this topic.
+ def ztest_file_deletes_on_failure
+ task :obj
+ file NEWFILE => [:obj] do |t|
+ FileUtils.touch NEWFILE
+ fail "Ooops"
+ end
+ assert Task[NEWFILE]
+ begin
+ Task[NEWFILE].invoke
+ rescue Exception
+ end
+ assert( ! File.exist?(NEWFILE), "NEWFILE should be deleted")
+ end
+
+end
+
diff --git a/test/rake/test_rake_file_utils.rb b/test/rake/test_rake_file_utils.rb
new file mode 100644
index 0000000000..90565e3ebd
--- /dev/null
+++ b/test/rake/test_rake_file_utils.rb
@@ -0,0 +1,305 @@
+require File.expand_path('../helper', __FILE__)
+require 'fileutils'
+require 'stringio'
+
+class TestRakeFileUtils < Rake::TestCase
+
+ def teardown
+ FileUtils::LN_SUPPORTED[0] = true
+ RakeFileUtils.verbose_flag = Rake::FileUtilsExt::DEFAULT
+
+ super
+ end
+
+ def test_rm_one_file
+ create_file("a")
+ FileUtils.rm_rf "a"
+ refute File.exist?("a")
+ end
+
+ def test_rm_two_files
+ create_file("a")
+ create_file("b")
+ FileUtils.rm_rf ["a", "b"]
+ refute File.exist?("a")
+ refute File.exist?("b")
+ end
+
+ def test_rm_filelist
+ list = Rake::FileList.new << "a" << "b"
+ list.each { |fn| create_file(fn) }
+ FileUtils.rm_r list
+ refute File.exist?("a")
+ refute File.exist?("b")
+ end
+
+ def test_ln
+ open("a", "w") { |f| f.puts "TEST_LN" }
+
+ Rake::FileUtilsExt.safe_ln("a", "b", :verbose => false)
+
+ assert_equal "TEST_LN\n", File.read('b')
+ end
+
+ class BadLink
+ include Rake::FileUtilsExt
+ attr_reader :cp_args
+ def initialize(klass)
+ @failure_class = klass
+ end
+ def cp(*args)
+ @cp_args = args
+ end
+ def ln(*args)
+ fail @failure_class, "ln not supported"
+ end
+ public :safe_ln
+ end
+
+ def test_safe_ln_failover_to_cp_on_standard_error
+ FileUtils::LN_SUPPORTED[0] = true
+ c = BadLink.new(StandardError)
+ c.safe_ln "a", "b"
+ assert_equal ['a', 'b'], c.cp_args
+ c.safe_ln "x", "y"
+ assert_equal ['x', 'y'], c.cp_args
+ end
+
+ def test_safe_ln_failover_to_cp_on_not_implemented_error
+ FileUtils::LN_SUPPORTED[0] = true
+ c = BadLink.new(NotImplementedError)
+ c.safe_ln "a", "b"
+ assert_equal ['a', 'b'], c.cp_args
+ end
+
+ def test_safe_ln_fails_on_script_error
+ FileUtils::LN_SUPPORTED[0] = true
+ c = BadLink.new(ScriptError)
+ assert_raises(ScriptError) do c.safe_ln "a", "b" end
+ end
+
+ def test_verbose
+ verbose true
+ assert_equal true, verbose
+ verbose false
+ assert_equal false, verbose
+ verbose(true) {
+ assert_equal true, verbose
+ }
+ assert_equal false, verbose
+ end
+
+ def test_nowrite
+ nowrite true
+ assert_equal true, nowrite
+ nowrite false
+ assert_equal false, nowrite
+ nowrite(true){
+ assert_equal true, nowrite
+ }
+ assert_equal false, nowrite
+ end
+
+ def test_file_utils_methods_are_available_at_top_level
+ create_file("a")
+
+ capture_io do
+ rm_rf "a"
+ end
+
+ refute File.exist?("a")
+ end
+
+ def test_fileutils_methods_dont_leak
+ obj = Object.new
+ assert_raises(NoMethodError) { obj.copy } # from FileUtils
+ assert_raises(NoMethodError) { obj.ruby "-v" } # from RubyFileUtils
+ end
+
+ def test_sh
+ shellcommand
+
+ verbose(false) { sh %{#{Rake::TestCase::RUBY} shellcommand.rb} }
+ assert true, "should not fail"
+ end
+
+ def test_sh_with_a_single_string_argument
+ check_expansion
+
+ ENV['RAKE_TEST_SH'] = 'someval'
+ verbose(false) {
+ sh %{#{RUBY} check_expansion.rb #{env_var} someval}
+ }
+ end
+
+ def test_sh_with_multiple_arguments
+ check_no_expansion
+ ENV['RAKE_TEST_SH'] = 'someval'
+
+ verbose(false) {
+ sh RUBY, 'check_no_expansion.rb', env_var, 'someval'
+ }
+ end
+
+ def test_sh_failure
+ shellcommand
+
+ assert_raises(RuntimeError) {
+ verbose(false) { sh %{#{RUBY} shellcommand.rb 1} }
+ }
+ end
+
+ def test_sh_special_handling
+ shellcommand
+
+ count = 0
+ verbose(false) {
+ sh(%{#{RUBY} shellcommand.rb}) do |ok, res|
+ assert(ok)
+ assert_equal 0, res.exitstatus
+ count += 1
+ end
+ sh(%{#{RUBY} shellcommand.rb 1}) do |ok, res|
+ assert(!ok)
+ assert_equal 1, res.exitstatus
+ count += 1
+ end
+ }
+ assert_equal 2, count, "Block count should be 2"
+ end
+
+ def test_sh_noop
+ shellcommand
+
+ verbose(false) { sh %{shellcommand.rb 1}, :noop=>true }
+ assert true, "should not fail"
+ end
+
+ def test_sh_bad_option
+ shellcommand
+
+ ex = assert_raises(ArgumentError) {
+ verbose(false) { sh %{shellcommand.rb}, :bad_option=>true }
+ }
+ assert_match(/bad_option/, ex.message)
+ end
+
+ def test_sh_verbose
+ shellcommand
+
+ _, err = capture_io do
+ verbose(true) {
+ sh %{shellcommand.rb}, :noop=>true
+ }
+ end
+
+ assert_equal "shellcommand.rb\n", err
+ end
+
+ def test_sh_verbose_false
+ shellcommand
+
+ _, err = capture_io do
+ verbose(false) {
+ sh %{shellcommand.rb}, :noop=>true
+ }
+ end
+
+ assert_equal '', err
+ end
+
+ def test_sh_verbose_flag_nil
+ shellcommand
+
+ RakeFileUtils.verbose_flag = nil
+
+ assert_silent do
+ sh %{shellcommand.rb}, :noop=>true
+ end
+ end
+
+ def test_ruby_with_a_single_string_argument
+ check_expansion
+
+ ENV['RAKE_TEST_SH'] = 'someval'
+
+ verbose(false) {
+ replace_ruby {
+ ruby %{check_expansion.rb #{env_var} someval}
+ }
+ }
+ end
+
+ def test_ruby_with_multiple_arguments
+ check_no_expansion
+
+ ENV['RAKE_TEST_SH'] = 'someval'
+ verbose(false) {
+ replace_ruby {
+ ruby 'check_no_expansion.rb', env_var, 'someval'
+ }
+ }
+ end
+
+ def test_split_all
+ assert_equal ['a'], Rake::FileUtilsExt.split_all('a')
+ assert_equal ['..'], Rake::FileUtilsExt.split_all('..')
+ assert_equal ['/'], Rake::FileUtilsExt.split_all('/')
+ assert_equal ['a', 'b'], Rake::FileUtilsExt.split_all('a/b')
+ assert_equal ['/', 'a', 'b'], Rake::FileUtilsExt.split_all('/a/b')
+ assert_equal ['..', 'a', 'b'], Rake::FileUtilsExt.split_all('../a/b')
+ end
+
+ def command name, text
+ open name, 'w', 0750 do |io|
+ io << text
+ end
+ end
+
+ def check_no_expansion
+ command 'check_no_expansion.rb', <<-CHECK_EXPANSION
+if ARGV[0] != ARGV[1]
+ exit 0
+else
+ exit 1
+end
+ CHECK_EXPANSION
+ end
+
+ def check_expansion
+ command 'check_expansion.rb', <<-CHECK_EXPANSION
+if ARGV[0] != ARGV[1]
+ exit 1
+else
+ exit 0
+end
+ CHECK_EXPANSION
+ end
+
+ def replace_ruby
+ ruby = FileUtils::RUBY
+ FileUtils.send :remove_const, :RUBY
+ FileUtils.const_set :RUBY, RUBY
+ yield
+ ensure
+ FileUtils.send :remove_const, :RUBY
+ FileUtils.const_set:RUBY, ruby
+ end
+
+ def shellcommand
+ command 'shellcommand.rb', <<-SHELLCOMMAND
+#!/usr/bin/env ruby
+
+exit((ARGV[0] || "0").to_i)
+ SHELLCOMMAND
+ end
+
+ def env_var
+ windows? ? '%RAKE_TEST_SH%' : '$RAKE_TEST_SH'
+ end
+
+ def windows?
+ ! File::ALT_SEPARATOR.nil?
+ end
+
+end
diff --git a/test/rake/test_rake_ftp_file.rb b/test/rake/test_rake_ftp_file.rb
new file mode 100644
index 0000000000..7f41faf0dd
--- /dev/null
+++ b/test/rake/test_rake_ftp_file.rb
@@ -0,0 +1,59 @@
+require File.expand_path('../helper', __FILE__)
+require 'date'
+require 'time'
+require 'rake/contrib/ftptools'
+
+class FakeDate
+ def self.today
+ Date.new(2003,10,3)
+ end
+ def self.now
+ Time.local(2003,10,3,12,00,00)
+ end
+end
+
+class TestRakeFtpFile < Rake::TestCase
+
+ def setup
+ super
+
+ Rake::FtpFile.class_eval { @date_class = FakeDate; @time_class = FakeDate }
+ end
+
+ def test_general
+ file = Rake::FtpFile.new("here", "-rw-r--r-- 1 a279376 develop 121770 Mar 6 14:50 wiki.pl")
+ assert_equal "wiki.pl", file.name
+ assert_equal "here/wiki.pl", file.path
+ assert_equal "a279376", file.owner
+ assert_equal "develop", file.group
+ assert_equal 0644, file.mode
+ assert_equal 121770, file.size
+ assert_equal Time.mktime(2003,3,6,14,50,0,0), file.time
+ assert ! file.directory?
+ assert ! file.symlink?
+ end
+
+ def test_far_date
+ file = Rake::FtpFile.new(".", "drwxr-xr-x 3 a279376 develop 4096 Nov 26 2001 vss")
+ assert_equal Time.mktime(2001,11,26,0,0,0,0), file.time
+ end
+
+ def test_close_date
+ file = Rake::FtpFile.new(".", "drwxr-xr-x 3 a279376 develop 4096 Nov 26 15:35 vss")
+ assert_equal Time.mktime(2002,11,26,15,35,0,0), file.time
+ end
+
+ def test_directory
+ file = Rake::FtpFile.new(".", "drwxrwxr-x 9 a279376 develop 4096 Mar 13 14:32 working")
+ assert file.directory?
+ assert !file.symlink?
+ end
+
+ def test_symlink
+ file = Rake::FtpFile.new(".", "lrwxrwxrwx 1 a279376 develop 64 Mar 26 2002 xtrac -> /home/a279376/working/ics/development/java/com/fmr/fwp/ics/xtrac")
+ assert_equal 'xtrac', file.name
+ assert file.symlink?
+ assert !file.directory?
+ end
+end
+
diff --git a/test/rake/test_rake_functional.rb b/test/rake/test_rake_functional.rb
new file mode 100644
index 0000000000..3764709f38
--- /dev/null
+++ b/test/rake/test_rake_functional.rb
@@ -0,0 +1,450 @@
+require File.expand_path('../helper', __FILE__)
+require 'fileutils'
+require 'open3'
+
+class TestRakeFunctional < Rake::TestCase
+
+ def setup
+ @rake_path = File.expand_path("../../../bin/rake", __FILE__)
+ lib_path = File.expand_path("../../../lib", __FILE__)
+ @ruby_options = ["-I#{lib_path}", "-I."]
+ @verbose = ENV['VERBOSE']
+
+ if @verbose
+ puts
+ puts
+ puts '-' * 80
+ puts @__name__
+ puts '-' * 80
+ end
+
+ super
+ end
+
+ def test_rake_default
+ rakefile_default
+
+ rake
+
+ assert_match(/^DEFAULT$/, @out)
+ end
+
+ def test_rake_error_on_bad_task
+ rakefile_default
+
+ rake '-t', 'xyz'
+
+ assert_match(/rake aborted/, @err)
+ end
+
+ def test_env_available_at_top_scope
+ rakefile_default
+
+ rake "TESTTOPSCOPE=1"
+
+ assert_match(/^TOPSCOPE$/, @out)
+ end
+
+ def test_env_available_at_task_scope
+ rakefile_default
+
+ rake 'TESTTASKSCOPE=1', 'task_scope'
+
+ assert_match(/^TASKSCOPE$/, @out)
+ end
+
+ def test_multi_desc
+ ENV['RAKE_COLUMNS'] = '80'
+ rakefile_multidesc
+
+ rake "-T"
+
+ assert_match %r{^rake a *# A / A2 *$}, @out
+ assert_match %r{^rake b *# B *$}, @out
+ refute_match %r{^rake c}, @out
+ assert_match %r{^rake d *# x{65}\.\.\.$}, @out
+ end
+
+ def test_long_description
+ rakefile_multidesc
+
+ rake "--describe"
+
+ assert_match %r{^rake a\n *A / A2 *$}m, @out
+ assert_match %r{^rake b\n *B *$}m, @out
+ assert_match %r{^rake d\n *x{80}}m, @out
+ refute_match %r{^rake c\n}m, @out
+ end
+
+ def test_proper_namespace_access
+ rakefile_access
+
+ rake
+
+ refute_match %r{^BAD:}, @out
+ end
+
+ def test_rbext
+ rakefile_rbext
+
+ rake "-N"
+
+ assert_match %r{^OK$}, @out
+ end
+
+ def test_system
+ rake_system_dir
+
+ rake '-g', "sys1"
+
+ assert_match %r{^SYS1}, @out
+ end
+
+ def test_system_excludes_rakelib_files_too
+ rake_system_dir
+
+ rake '-g', "sys1", '-T', 'extra'
+
+ refute_match %r{extra:extra}, @out
+ end
+
+ def test_by_default_rakelib_files_are_included
+ rake_system_dir
+ rakefile_extra
+
+ rake '-T', 'extra', '--trace'
+
+ assert_match %r{extra:extra}, @out
+ end
+
+ def test_implicit_system
+ rake_system_dir
+ Dir.chdir @tempdir
+
+ rake "sys1", "--trace"
+
+ assert_match %r{^SYS1}, @out
+ end
+
+ def test_no_system
+ rake_system_dir
+ rakefile_extra
+
+ rake '-G', "sys1"
+
+ assert_match %r{^Don't know how to build task}, @err # emacs wart: '
+ end
+
+ def test_nosearch_with_rakefile_uses_local_rakefile
+ rakefile_default
+
+ rake "--nosearch"
+
+ assert_match %r{^DEFAULT}, @out
+ end
+
+ def test_nosearch_without_rakefile_finds_system
+ rakefile_nosearch
+ rake_system_dir
+
+ rake "--nosearch", "sys1"
+
+ assert_match %r{^SYS1}, @out
+ end
+
+ def test_nosearch_without_rakefile_and_no_system_fails
+ rakefile_nosearch
+ ENV['RAKE_SYSTEM'] = 'not_exist'
+
+ rake "--nosearch"
+
+ assert_match %r{^No Rakefile found}, @err
+ end
+
+ def test_invalid_command_line_options
+ rakefile_default
+
+ rake "--bad-options"
+
+ assert_match %r{invalid +option}i, @err
+ end
+
+ def test_inline_verbose_default_should_show_command
+ rakefile_verbose
+
+ rake "inline_verbose_default"
+
+ assert_match(/#{Regexp.quote(RUBY)} -e/, @err)
+ end
+
+ def test_inline_verbose_true_should_show_command
+ rakefile_verbose
+
+ rake "inline_verbose_true"
+
+ assert_match(/#{Regexp.quote(RUBY)} -e/, @err)
+ end
+
+ def test_inline_verbose_false_should_not_show_command
+ rakefile_verbose
+
+ rake "inline_verbose_false"
+
+ refute_match(/#{Regexp.quote(RUBY)} -e/, @err)
+ end
+
+ def test_block_verbose_false_should_not_show_command
+ rakefile_verbose
+
+ rake "block_verbose_false"
+
+ refute_match(/#{Regexp.quote(RUBY)} -e/, @err)
+ end
+
+ def test_block_verbose_true_should_show_command
+ rakefile_verbose
+
+ rake "block_verbose_true"
+
+ assert_match(/#{Regexp.quote(RUBY)} -e/, @err)
+ end
+
+ def test_standalone_verbose_true_should_show_command
+ rakefile_verbose
+
+ rake "standalone_verbose_true"
+
+ assert_match(/#{Regexp.quote(RUBY)} -e/, @err)
+ end
+
+ def test_standalone_verbose_false_should_not_show_command
+ rakefile_verbose
+
+ rake "standalone_verbose_false"
+
+ refute_match(/#{Regexp.quote(RUBY)} -e/, @err)
+ end
+
+ def test_dry_run
+ rakefile_default
+
+ rake "-n", "other"
+
+ assert_match %r{Execute \(dry run\) default}, @err
+ assert_match %r{Execute \(dry run\) other}, @err
+ refute_match %r{DEFAULT}, @out
+ refute_match %r{OTHER}, @out
+ end
+
+ # Test for the trace/dry_run bug found by Brian Chandler
+ def test_dry_run_bug
+ rakefile_dryrun
+
+ rake
+
+ FileUtils.rm_f 'temp_one'
+
+ rake "--dry-run"
+
+ refute_match(/No such file/, @out)
+ end
+
+ # Test for the trace/dry_run bug found by Brian Chandler
+ def test_trace_bug
+ rakefile_dryrun
+
+ rake
+
+ FileUtils.rm_f 'temp_one'
+
+ rake "--trace"
+
+ refute_match(/No such file/, @out)
+ end
+
+ def test_imports
+ rakefile_imports
+
+ rake
+
+ assert File.exist?(File.join(@tempdir, 'dynamic_deps')),
+ "'dynamic_deps' file should exist"
+ assert_match(/^FIRST$\s+^DYNAMIC$\s+^STATIC$\s+^OTHER$/, @out)
+ end
+
+ def test_rules_chaining_to_file_task
+ rakefile_chains
+
+ rake
+
+ assert File.exist?(File.join(@tempdir, 'play.app')),
+ "'play.app' file should exist"
+ end
+
+ def test_file_creation_task
+ rakefile_file_creation
+
+ rake "prep"
+ rake "run"
+ rake "run"
+
+ assert(@err !~ /^cp src/, "Should not recopy data")
+ end
+
+ def test_dash_f_with_no_arg_foils_rakefile_lookup
+ rakefile_rakelib
+
+ rake '-I', 'rakelib', '-rtest1', '-f'
+
+ assert_match(/^TEST1$/, @out)
+ end
+
+ def test_dot_rake_files_can_be_loaded_with_dash_r
+ rakefile_rakelib
+
+ rake '-I', 'rakelib', '-rtest2', '-f'
+
+ assert_empty @err
+ assert_match(/^TEST2$/, @out)
+ end
+
+ def test_can_invoke_task_in_toplevel_namespace
+ rakefile_namespace
+
+ rake "copy"
+
+ assert_match(/^COPY$/, @out)
+ end
+
+ def test_can_invoke_task_in_nested_namespace
+ rakefile_namespace
+
+ rake "nest:copy"
+
+ assert_match(/^NEST COPY$/, @out)
+ end
+
+ def test_tasks_can_reference_task_in_same_namespace
+ rakefile_namespace
+
+ rake "nest:xx"
+
+ assert_match(/^NEST COPY$/m, @out)
+ end
+
+ def test_tasks_can_reference_task_in_other_namespaces
+ rakefile_namespace
+
+ rake "b:run"
+
+ assert_match(/^IN A\nIN B$/m, @out)
+ end
+
+ def test_anonymous_tasks_can_be_invoked_indirectly
+ rakefile_namespace
+
+ rake "anon"
+
+ assert_match(/^ANON COPY$/m, @out)
+ end
+
+ def test_rake_namespace_refers_to_toplevel
+ rakefile_namespace
+
+ rake "very:nested:run"
+
+ assert_match(/^COPY$/m, @out)
+ end
+
+ def test_file_task_are_not_scoped_by_namespaces
+ rakefile_namespace
+
+ rake "xyz.rb"
+
+ assert_match(/^XYZ1\nXYZ2$/m, @out)
+ end
+
+ def test_file_task_dependencies_scoped_by_namespaces
+ rakefile_namespace
+
+ rake "scopedep.rb"
+
+ assert_match(/^PREPARE\nSCOPEDEP$/m, @out)
+ end
+
+ def test_comment_before_task_acts_like_desc
+ rakefile_comments
+
+ rake "-T"
+
+ refute_match(/comment for t1/, @out)
+ end
+
+ def test_comment_separated_from_task_by_blank_line_is_not_picked_up
+ rakefile_comments
+
+ rake "-T"
+
+ refute_match("t2", @out)
+ end
+
+ def test_comment_after_desc_is_ignored
+ rakefile_comments
+
+ rake "-T"
+
+ assert_match("override comment for t3", @out)
+ end
+
+ def test_comment_before_desc_is_ignored
+ rakefile_comments
+
+ rake "-T"
+
+ assert_match("override comment for t4", @out)
+ end
+
+ def test_correct_number_of_tasks_reported
+ rakefile_comments
+
+ rake "-T"
+
+ assert_equal(2, @out.split(/\n/).grep(/t\d/).size)
+ end
+
+ def test_file_list_is_requirable_separately
+ ruby '-rrake/file_list', '-e', 'puts Rake::FileList["a"].size'
+ assert_equal "1\n", @out
+ end
+
+ private
+
+ # Run a shell Ruby command with command line options (using the
+ # default test options). Output is captured in @out and @err
+ def ruby(*option_list)
+ run_ruby(@ruby_options + option_list)
+ end
+
+ # Run a command line rake with the give rake options. Default
+ # command line ruby options are included. Output is captured in
+ # @out and @err
+ def rake(*rake_options)
+ run_ruby @ruby_options + [@rake_path] + rake_options
+ end
+
+ # Low level ruby command runner ...
+ def run_ruby(option_list)
+ puts "COMMAND: [#{RUBY} #{option_list.join ' '}]" if @verbose
+
+ inn, out, err = Open3.popen3(Gem.ruby, *option_list)
+ inn.close
+
+ @out = out.read
+ @err = err.read
+
+ puts "OUTPUT: [#{@out}]" if @verbose
+ puts "ERROR: [#{@err}]" if @verbose
+ puts "PWD: [#{Dir.pwd}]" if @verbose
+ end
+
+end
diff --git a/test/rake/test_rake_invocation_chain.rb b/test/rake/test_rake_invocation_chain.rb
new file mode 100644
index 0000000000..1aab1eac81
--- /dev/null
+++ b/test/rake/test_rake_invocation_chain.rb
@@ -0,0 +1,52 @@
+require File.expand_path('../helper', __FILE__)
+
+class TestRakeInvocationChain < Rake::TestCase
+
+ def setup
+ super
+
+ @empty = Rake::InvocationChain::EMPTY
+
+ @first_member = "A"
+ @second_member = "B"
+ @one = @empty.append(@first_member)
+ @two = @one.append(@second_member)
+ end
+
+ def test_append
+ chain = @empty.append("A")
+
+ assert_equal 'TOP => A', chain.to_s # HACK
+ end
+
+ def test_append_one_circular
+ ex = assert_raises RuntimeError do
+ @one.append(@first_member)
+ end
+ assert_match(/circular +dependency/i, ex.message)
+ assert_match(/A.*=>.*A/, ex.message)
+ end
+
+ def test_append_two_circular
+ ex = assert_raises RuntimeError do
+ @two.append(@first_member)
+ end
+ assert_match(/A.*=>.*B.*=>.*A/, ex.message)
+ end
+
+ def test_member_eh_one
+ assert @one.member?(@first_member)
+ end
+
+ def test_member_eh_two
+ assert @two.member?(@first_member)
+ assert @two.member?(@second_member)
+ end
+
+ def test_to_s_empty
+ assert_equal "TOP", @empty.to_s
+ assert_equal "TOP => A", @one.to_s
+ end
+
+end
+
diff --git a/test/rake/test_rake_makefile_loader.rb b/test/rake/test_rake_makefile_loader.rb
new file mode 100644
index 0000000000..bd3c99ba71
--- /dev/null
+++ b/test/rake/test_rake_makefile_loader.rb
@@ -0,0 +1,44 @@
+require File.expand_path('../helper', __FILE__)
+require 'rake/loaders/makefile'
+
+class TestRakeMakefileLoader < Rake::TestCase
+ include Rake
+
+ def test_parse
+ Dir.chdir @tempdir
+
+ open 'sample.mf', 'w' do |io|
+ io << <<-'SAMPLE_MF'
+# Comments
+a: a1 a2 a3 a4
+b: b1 b2 b3 \
+ b4 b5 b6\
+# Mid: Comment
+b7
+
+ a : a5 a6 a7
+c: c1
+d: d1 d2 \
+
+e f : e1 f1
+
+g\ 0: g1 g\ 2 g\ 3 g4
+ SAMPLE_MF
+ end
+
+ Task.clear
+ loader = Rake::MakefileLoader.new
+ loader.load 'sample.mf'
+ %w(a b c d).each do |t|
+ assert Task.task_defined?(t), "#{t} should be a defined task"
+ end
+ assert_equal %w(a1 a2 a3 a4 a5 a6 a7).sort, Task['a'].prerequisites.sort
+ assert_equal %w(b1 b2 b3 b4 b5 b6 b7).sort, Task['b'].prerequisites.sort
+ assert_equal %w(c1).sort, Task['c'].prerequisites.sort
+ assert_equal %w(d1 d2).sort, Task['d'].prerequisites.sort
+ assert_equal %w(e1 f1).sort, Task['e'].prerequisites.sort
+ assert_equal %w(e1 f1).sort, Task['f'].prerequisites.sort
+ assert_equal ["g1", "g 2", "g 3", "g4"].sort, Task['g 0'].prerequisites.sort
+ assert_equal 7, Task.tasks.size
+ end
+end
diff --git a/test/rake/test_rake_multi_task.rb b/test/rake/test_rake_multi_task.rb
new file mode 100644
index 0000000000..cac235b9d3
--- /dev/null
+++ b/test/rake/test_rake_multi_task.rb
@@ -0,0 +1,51 @@
+require File.expand_path('../helper', __FILE__)
+require 'thread'
+
+class TestRakeMultiTask < Rake::TestCase
+ include Rake
+ include Rake::DSL
+
+ def setup
+ super
+
+ Task.clear
+ @runs = Array.new
+ @mutex = Mutex.new
+ end
+
+ def add_run(obj)
+ @mutex.synchronize do
+ @runs << obj
+ end
+ end
+
+ def test_running_multitasks
+ task :a do 3.times do |i| add_run("A#{i}"); sleep 0.01; end end
+ task :b do 3.times do |i| add_run("B#{i}"); sleep 0.01; end end
+ multitask :both => [:a, :b]
+ Task[:both].invoke
+ assert_equal 6, @runs.size
+ assert @runs.index("A0") < @runs.index("A1")
+ assert @runs.index("A1") < @runs.index("A2")
+ assert @runs.index("B0") < @runs.index("B1")
+ assert @runs.index("B1") < @runs.index("B2")
+ end
+
+ def test_all_multitasks_wait_on_slow_prerequisites
+ task :slow do 3.times do |i| add_run("S#{i}"); sleep 0.05 end end
+ task :a => [:slow] do 3.times do |i| add_run("A#{i}"); sleep 0.01 end end
+ task :b => [:slow] do 3.times do |i| add_run("B#{i}"); sleep 0.01 end end
+ multitask :both => [:a, :b]
+ Task[:both].invoke
+ assert_equal 9, @runs.size
+ assert @runs.index("S0") < @runs.index("S1")
+ assert @runs.index("S1") < @runs.index("S2")
+ assert @runs.index("S2") < @runs.index("A0")
+ assert @runs.index("S2") < @runs.index("B0")
+ assert @runs.index("A0") < @runs.index("A1")
+ assert @runs.index("A1") < @runs.index("A2")
+ assert @runs.index("B0") < @runs.index("B1")
+ assert @runs.index("B1") < @runs.index("B2")
+ end
+end
+
diff --git a/test/rake/test_rake_name_space.rb b/test/rake/test_rake_name_space.rb
new file mode 100644
index 0000000000..b1f2ed00b2
--- /dev/null
+++ b/test/rake/test_rake_name_space.rb
@@ -0,0 +1,43 @@
+require File.expand_path('../helper', __FILE__)
+
+class TestRakeNameSpace < Rake::TestCase
+
+ class TM
+ include Rake::TaskManager
+ end
+
+ def test_namespace_creation
+ mgr = TM.new
+ ns = Rake::NameSpace.new(mgr, [])
+ refute_nil ns
+ end
+
+ def test_namespace_lookup
+ mgr = TM.new
+ ns = mgr.in_namespace("n") do
+ mgr.define_task(Rake::Task, "t")
+ end
+
+ refute_nil ns["t"]
+ assert_equal mgr["n:t"], ns["t"]
+ end
+
+ def test_namespace_reports_tasks_it_owns
+ mgr = TM.new
+ nns = nil
+ ns = mgr.in_namespace("n") do
+ mgr.define_task(Rake::Task, :x)
+ mgr.define_task(Rake::Task, :y)
+ nns = mgr.in_namespace("nn") do
+ mgr.define_task(Rake::Task, :z)
+ end
+ end
+ mgr.in_namespace("m") do
+ mgr.define_task(Rake::Task, :x)
+ end
+
+ assert_equal ["n:nn:z", "n:x", "n:y"],
+ ns.tasks.map { |tsk| tsk.name }
+ assert_equal ["n:nn:z"], nns.tasks.map {|t| t.name}
+ end
+end
diff --git a/test/rake/test_rake_package_task.rb b/test/rake/test_rake_package_task.rb
new file mode 100644
index 0000000000..87cb57c105
--- /dev/null
+++ b/test/rake/test_rake_package_task.rb
@@ -0,0 +1,79 @@
+require File.expand_path('../helper', __FILE__)
+require 'rake/packagetask'
+
+class TestRakePackageTask < Rake::TestCase
+
+ def test_initialize
+ touch 'install.rb'
+ touch 'a.c'
+ touch 'b.c'
+ mkdir 'CVS'
+ touch 'a.rb~'
+
+ pkg = Rake::PackageTask.new("pkgr", "1.2.3") { |p|
+ p.package_files << "install.rb"
+ p.package_files.include '*.c'
+ p.package_files.exclude(/\bCVS\b/)
+ p.package_files.exclude(/~$/)
+ p.package_dir = 'pkg'
+ p.need_tar = true
+ p.need_tar_gz = true
+ p.need_tar_bz2 = true
+ p.need_zip = true
+ }
+
+ assert_equal "pkg", pkg.package_dir
+
+ assert_includes pkg.package_files, 'a.c'
+
+ assert_equal 'pkgr', pkg.name
+ assert_equal '1.2.3', pkg.version
+ assert Rake::Task[:package]
+ assert Rake::Task['pkg/pkgr-1.2.3.tgz']
+ assert Rake::Task['pkg/pkgr-1.2.3.tar.gz']
+ assert Rake::Task['pkg/pkgr-1.2.3.tar.bz2']
+ assert Rake::Task['pkg/pkgr-1.2.3.zip']
+ assert Rake::Task['pkg/pkgr-1.2.3']
+ assert Rake::Task[:clobber_package]
+ assert Rake::Task[:repackage]
+ end
+
+ def test_initialize_no_version
+ e = assert_raises RuntimeError do
+ Rake::PackageTask.new 'pkgr'
+ end
+
+ assert_equal 'Version required (or :noversion)', e.message
+ end
+
+ def test_initialize_noversion
+ pkg = Rake::PackageTask.new 'pkgr', :noversion
+
+ assert_equal 'pkg', pkg.package_dir
+ assert_equal 'pkgr', pkg.name
+ assert_equal nil, pkg.version
+ end
+
+ def test_clone
+ pkg = Rake::PackageTask.new("x", :noversion)
+ p2 = pkg.clone
+ pkg.package_files << "y"
+ p2.package_files << "x"
+ assert_equal ["y"], pkg.package_files
+ assert_equal ["x"], p2.package_files
+ end
+
+ def test_package_name
+ pkg = Rake::PackageTask.new 'a', '1'
+
+ assert_equal 'a-1', pkg.package_name
+ end
+
+ def test_package_name_noversion
+ pkg = Rake::PackageTask.new 'a', :noversion
+
+ assert_equal 'a', pkg.package_name
+ end
+
+end
+
diff --git a/test/rake/test_rake_path_map.rb b/test/rake/test_rake_path_map.rb
new file mode 100644
index 0000000000..32ffb854b1
--- /dev/null
+++ b/test/rake/test_rake_path_map.rb
@@ -0,0 +1,157 @@
+require File.expand_path('../helper', __FILE__)
+
+class TestRakePathMap < Rake::TestCase
+
+ def test_returns_self_with_no_args
+ assert_equal "abc.rb", "abc.rb".pathmap
+ end
+
+ def test_s_returns_file_separator
+ sep = File::ALT_SEPARATOR || File::SEPARATOR
+ assert_equal sep, "abc.rb".pathmap("%s")
+ assert_equal sep, "".pathmap("%s")
+ assert_equal "a#{sep}b", "a/b".pathmap("%d%s%f")
+ end
+
+ def test_f_returns_basename
+ assert_equal "abc.rb", "abc.rb".pathmap("%f")
+ assert_equal "abc.rb", "this/is/a/dir/abc.rb".pathmap("%f")
+ assert_equal "abc.rb", "/this/is/a/dir/abc.rb".pathmap("%f")
+ end
+
+ def test_n_returns_basename_without_extension
+ assert_equal "abc", "abc.rb".pathmap("%n")
+ assert_equal "abc", "abc".pathmap("%n")
+ assert_equal "abc", "this/is/a/dir/abc.rb".pathmap("%n")
+ assert_equal "abc", "/this/is/a/dir/abc.rb".pathmap("%n")
+ assert_equal "abc", "/this/is/a/dir/abc".pathmap("%n")
+ end
+
+ def test_d_returns_dirname
+ assert_equal ".", "abc.rb".pathmap("%d")
+ assert_equal "/", "/abc".pathmap("%d")
+ assert_equal "this/is/a/dir", "this/is/a/dir/abc.rb".pathmap("%d")
+ assert_equal "/this/is/a/dir", "/this/is/a/dir/abc.rb".pathmap("%d")
+ end
+
+ def test_9d_returns_partial_dirname
+ assert_equal "this/is", "this/is/a/dir/abc.rb".pathmap("%2d")
+ assert_equal "this", "this/is/a/dir/abc.rb".pathmap("%1d")
+ assert_equal ".", "this/is/a/dir/abc.rb".pathmap("%0d")
+ assert_equal "dir", "this/is/a/dir/abc.rb".pathmap("%-1d")
+ assert_equal "a/dir", "this/is/a/dir/abc.rb".pathmap("%-2d")
+ assert_equal "this/is/a/dir", "this/is/a/dir/abc.rb".pathmap("%100d")
+ assert_equal "this/is/a/dir", "this/is/a/dir/abc.rb".pathmap("%-100d")
+ end
+
+ def test_x_returns_extension
+ assert_equal "", "abc".pathmap("%x")
+ assert_equal ".rb", "abc.rb".pathmap("%x")
+ assert_equal ".rb", "abc.xyz.rb".pathmap("%x")
+ assert_equal "", ".depends".pathmap("%x")
+ assert_equal "", "dir/.depends".pathmap("%x")
+ end
+
+ def test_X_returns_everything_but_extension
+ assert_equal "abc", "abc".pathmap("%X")
+ assert_equal "abc", "abc.rb".pathmap("%X")
+ assert_equal "abc.xyz", "abc.xyz.rb".pathmap("%X")
+ assert_equal "ab.xyz", "ab.xyz.rb".pathmap("%X")
+ assert_equal "a.xyz", "a.xyz.rb".pathmap("%X")
+ assert_equal "abc", "abc.rb".pathmap("%X")
+ assert_equal "ab", "ab.rb".pathmap("%X")
+ assert_equal "a", "a.rb".pathmap("%X")
+ assert_equal ".depends", ".depends".pathmap("%X")
+ assert_equal "a/dir/.depends", "a/dir/.depends".pathmap("%X")
+ assert_equal "/.depends", "/.depends".pathmap("%X")
+ end
+
+ def test_p_returns_entire_pathname
+ assert_equal "abc.rb", "abc.rb".pathmap("%p")
+ assert_equal "this/is/a/dir/abc.rb", "this/is/a/dir/abc.rb".pathmap("%p")
+ assert_equal "/this/is/a/dir/abc.rb", "/this/is/a/dir/abc.rb".pathmap("%p")
+ end
+
+ def test_dash_returns_empty_string
+ assert_equal "", "abc.rb".pathmap("%-")
+ assert_equal "abc.rb", "abc.rb".pathmap("%X%-%x")
+ end
+
+ def test_percent_percent_returns_percent
+ assert_equal "a%b", "".pathmap("a%%b")
+ end
+
+ def test_undefined_percent_causes_error
+ assert_raises(ArgumentError) {
+ "dir/abc.rb".pathmap("%z")
+ }
+ end
+
+ def test_pattern_returns_substitutions
+ assert_equal "bin/org/osb",
+ "src/org/osb/Xyz.java".pathmap("%{src,bin}d")
+ end
+
+ def test_pattern_can_use_backreferences
+ assert_equal "dir/hi/is", "dir/this/is".pathmap("%{t(hi)s,\\1}p")
+ end
+
+ def test_pattern_with_star_replacement_string_uses_block
+ assert_equal "src/ORG/osb",
+ "src/org/osb/Xyz.java".pathmap("%{/org,*}d") { |d| d.upcase }
+ assert_equal "Xyz.java",
+ "src/org/osb/Xyz.java".pathmap("%{.*,*}f") { |f| f.capitalize }
+ end
+
+ def test_pattern_with_no_replacement_nor_block_substitutes_empty_string
+ assert_equal "bc.rb", "abc.rb".pathmap("%{a}f")
+ end
+
+ def test_pattern_works_with_certain_valid_operators
+ assert_equal "dir/xbc.rb", "dir/abc.rb".pathmap("%{a,x}p")
+ assert_equal "d1r", "dir/abc.rb".pathmap("%{i,1}d")
+ assert_equal "xbc.rb", "dir/abc.rb".pathmap("%{a,x}f")
+ assert_equal ".Rb", "dir/abc.rb".pathmap("%{r,R}x")
+ assert_equal "xbc", "dir/abc.rb".pathmap("%{a,x}n")
+ end
+
+ def test_multiple_patterns
+ assert_equal "this/is/b/directory/abc.rb",
+ "this/is/a/dir/abc.rb".pathmap("%{a,b;dir,\\0ectory}p")
+ end
+
+ def test_partial_directory_selection_works_with_patterns
+ assert_equal "this/is/a/long",
+ "this/is/a/really/long/path/ok.rb".pathmap("%{/really/,/}5d")
+ end
+
+ def test_pattern_with_invalid_operator
+ ex = assert_raises(ArgumentError) do
+ "abc.xyz".pathmap("%{src,bin}z")
+ end
+ assert_match(/unknown.*pathmap.*spec.*z/i, ex.message)
+ end
+
+ def test_works_with_windows_separators
+ if File::ALT_SEPARATOR
+ assert_equal "abc", 'dir\abc.rb'.pathmap("%n")
+ assert_equal 'this\is\a\dir',
+ 'this\is\a\dir\abc.rb'.pathmap("%d")
+ end
+ end
+
+ def test_complex_patterns
+ sep = "".pathmap("%s")
+ assert_equal "dir/abc.rb", "dir/abc.rb".pathmap("%d/%n%x")
+ assert_equal "./abc.rb", "abc.rb".pathmap("%d/%n%x")
+ assert_equal "Your file extension is '.rb'",
+ "dir/abc.rb".pathmap("Your file extension is '%x'")
+ assert_equal "bin/org/onstepback/proj/A.class",
+ "src/org/onstepback/proj/A.java".pathmap("%{src,bin}d/%n.class")
+ assert_equal "src_work/bin/org/onstepback/proj/A.class",
+ "src_work/src/org/onstepback/proj/A.java".pathmap('%{\bsrc\b,bin}X.class')
+ assert_equal ".depends.bak", ".depends".pathmap("%X.bak")
+ assert_equal "d#{sep}a/b/c#{sep}file.txt", "a/b/c/d/file.txt".pathmap("%-1d%s%3d%s%f")
+ end
+end
+
diff --git a/test/rake/test_rake_path_map_explode.rb b/test/rake/test_rake_path_map_explode.rb
new file mode 100644
index 0000000000..a79235ee74
--- /dev/null
+++ b/test/rake/test_rake_path_map_explode.rb
@@ -0,0 +1,34 @@
+require File.expand_path('../helper', __FILE__)
+
+class TestRakePathMapExplode < Rake::TestCase
+ def setup
+ super
+
+ String.class_eval { public :pathmap_explode }
+ end
+
+ def teardown
+ String.class_eval { protected :pathmap_explode }
+
+ super
+ end
+
+ def test_explode
+ assert_equal ['a'], 'a'.pathmap_explode
+ assert_equal ['a', 'b'], 'a/b'.pathmap_explode
+ assert_equal ['a', 'b', 'c'], 'a/b/c'.pathmap_explode
+ assert_equal ['/', 'a'], '/a'.pathmap_explode
+ assert_equal ['/', 'a', 'b'], '/a/b'.pathmap_explode
+ assert_equal ['/', 'a', 'b', 'c'], '/a/b/c'.pathmap_explode
+
+ if File::ALT_SEPARATOR
+ assert_equal ['c:.', 'a'], 'c:a'.pathmap_explode
+ assert_equal ['c:.', 'a', 'b'], 'c:a/b'.pathmap_explode
+ assert_equal ['c:.', 'a', 'b', 'c'], 'c:a/b/c'.pathmap_explode
+ assert_equal ['c:/', 'a'], 'c:/a'.pathmap_explode
+ assert_equal ['c:/', 'a', 'b'], 'c:/a/b'.pathmap_explode
+ assert_equal ['c:/', 'a', 'b', 'c'], 'c:/a/b/c'.pathmap_explode
+ end
+ end
+end
+
diff --git a/test/rake/test_rake_path_map_partial.rb b/test/rake/test_rake_path_map_partial.rb
new file mode 100644
index 0000000000..566e681bb1
--- /dev/null
+++ b/test/rake/test_rake_path_map_partial.rb
@@ -0,0 +1,18 @@
+require File.expand_path('../helper', __FILE__)
+
+class TestRakePathMapPartial < Rake::TestCase
+ def test_pathmap_partial
+ @path = "1/2/file"
+ def @path.call(n)
+ pathmap_partial(n)
+ end
+ assert_equal("1", @path.call(1))
+ assert_equal("1/2", @path.call(2))
+ assert_equal("1/2", @path.call(3))
+ assert_equal(".", @path.call(0))
+ assert_equal("2", @path.call(-1))
+ assert_equal("1/2", @path.call(-2))
+ assert_equal("1/2", @path.call(-3))
+ end
+end
+
diff --git a/test/rake/test_rake_pseudo_status.rb b/test/rake/test_rake_pseudo_status.rb
new file mode 100644
index 0000000000..51b3fef34e
--- /dev/null
+++ b/test/rake/test_rake_pseudo_status.rb
@@ -0,0 +1,21 @@
+require File.expand_path('../helper', __FILE__)
+
+class TestRakePseudoStatus < Rake::TestCase
+ def test_with_zero_exit_status
+ s = Rake::PseudoStatus.new
+ assert_equal 0, s.exitstatus
+ assert_equal 0, s.to_i
+ assert_equal 0, s >> 8
+ refute s.stopped?
+ assert s.exited?
+ end
+
+ def test_with_99_exit_status
+ s = Rake::PseudoStatus.new(99)
+ assert_equal 99, s.exitstatus
+ assert_equal 25344, s.to_i
+ assert_equal 99, s >> 8
+ refute s.stopped?
+ assert s.exited?
+ end
+end
diff --git a/test/rake/test_rake_rake_test_loader.rb b/test/rake/test_rake_rake_test_loader.rb
new file mode 100644
index 0000000000..be3c7da61f
--- /dev/null
+++ b/test/rake/test_rake_rake_test_loader.rb
@@ -0,0 +1,21 @@
+require File.expand_path('../helper', __FILE__)
+
+class TestRakeRakeTestLoader < Rake::TestCase
+
+ def test_pattern
+ orig_LOADED_FEATURES = $:.dup
+ FileUtils.touch 'foo.rb'
+ FileUtils.touch 'test_a.rb'
+ FileUtils.touch 'test_b.rb'
+
+ ARGV.replace %w[foo.rb test_*.rb -v]
+
+ load File.expand_path('../../../lib/rake/rake_test_loader.rb', __FILE__)
+
+ assert_equal %w[-v], ARGV
+ ensure
+ $:.replace orig_LOADED_FEATURES
+ end
+
+end
+
diff --git a/test/rake/test_rake_rdoc_task.rb b/test/rake/test_rake_rdoc_task.rb
new file mode 100644
index 0000000000..0d24ef04a3
--- /dev/null
+++ b/test/rake/test_rake_rdoc_task.rb
@@ -0,0 +1,83 @@
+require File.expand_path('../helper', __FILE__)
+begin
+ old_stderr = $stderr
+ dev_null = File.exist?('/dev/null') ? '/dev/null' : 'NUL'
+ $stderr = open dev_null, 'w'
+ require 'rake/rdoctask'
+ensure
+ $stderr.close
+ $stderr = old_stderr
+end
+
+class TestRakeRDocTask < Rake::TestCase
+ include Rake
+
+ def setup
+ super
+
+ Task.clear
+ end
+
+ def test_tasks_creation
+ Rake::RDocTask.new
+ assert Task[:rdoc]
+ assert Task[:clobber_rdoc]
+ assert Task[:rerdoc]
+ end
+
+ def test_tasks_creation_with_custom_name_symbol
+ rd = Rake::RDocTask.new(:rdoc_dev)
+ assert Task[:rdoc_dev]
+ assert Task[:clobber_rdoc_dev]
+ assert Task[:rerdoc_dev]
+ assert_equal :rdoc_dev, rd.name
+ end
+
+ def test_tasks_creation_with_custom_name_string
+ rd = Rake::RDocTask.new("rdoc_dev")
+ assert Task[:rdoc_dev]
+ assert Task[:clobber_rdoc_dev]
+ assert Task[:rerdoc_dev]
+ assert_equal "rdoc_dev", rd.name
+ end
+
+ def test_tasks_creation_with_custom_name_hash
+ options = { :rdoc => "rdoc", :clobber_rdoc => "rdoc:clean", :rerdoc => "rdoc:force" }
+ rd = Rake::RDocTask.new(options)
+ assert Task[:"rdoc"]
+ assert Task[:"rdoc:clean"]
+ assert Task[:"rdoc:force"]
+ assert_raises(RuntimeError) { Task[:clobber_rdoc] }
+ assert_equal options, rd.name
+ end
+
+ def test_tasks_creation_with_custom_name_hash_will_use_default_if_an_option_isnt_given
+ Rake::RDocTask.new(:clobber_rdoc => "rdoc:clean")
+ assert Task[:rdoc]
+ assert Task[:"rdoc:clean"]
+ assert Task[:rerdoc]
+ end
+
+ def test_tasks_creation_with_custom_name_hash_raises_exception_if_invalid_option_given
+ assert_raises(ArgumentError) do
+ Rake::RDocTask.new(:foo => "bar")
+ end
+
+ begin
+ Rake::RDocTask.new(:foo => "bar")
+ rescue ArgumentError => e
+ assert_match(/foo/, e.message)
+ end
+ end
+
+ def test_inline_source_option_is_only_appended_if_option_not_already_given
+ rd = Rake::RDocTask.new
+ rd.options << '--inline-source'
+ assert_equal 1, rd.option_list.grep('--inline-source').size
+
+ rd = Rake::RDocTask.new
+ rd.options << '-S'
+ assert_equal 1, rd.option_list.grep('-S').size
+ assert_equal 0, rd.option_list.grep('--inline-source').size
+ end
+end
diff --git a/test/rake/test_rake_require.rb b/test/rake/test_rake_require.rb
new file mode 100644
index 0000000000..d229edbc2b
--- /dev/null
+++ b/test/rake/test_rake_require.rb
@@ -0,0 +1,40 @@
+require File.expand_path('../helper', __FILE__)
+
+class TestRakeRequire < Rake::TestCase
+
+ def test_can_load_rake_library
+ rakefile_rakelib
+ app = Rake::Application.new
+
+ assert app.instance_eval {
+ rake_require("test2", ['rakelib'], [])
+ }
+ end
+
+ def test_wont_reload_rake_library
+ rakefile_rakelib
+ app = Rake::Application.new
+
+ paths = ['rakelib']
+ loaded_files = []
+ app.rake_require("test2", paths, loaded_files)
+
+ assert ! app.instance_eval {
+ rake_require("test2", paths, loaded_files)
+ }
+ end
+
+ def test_throws_error_if_library_not_found
+ rakefile_rakelib
+
+ app = Rake::Application.new
+ ex = assert_raises(LoadError) {
+ assert app.instance_eval {
+ rake_require("testx", ['rakelib'], [])
+ }
+ }
+ assert_match(/(can *not|can't)\s+find/i, ex.message)
+ assert_match(/testx/, ex.message)
+ end
+end
+
diff --git a/test/rake/test_rake_rules.rb b/test/rake/test_rake_rules.rb
new file mode 100644
index 0000000000..3f6e352322
--- /dev/null
+++ b/test/rake/test_rake_rules.rb
@@ -0,0 +1,327 @@
+require File.expand_path('../helper', __FILE__)
+require 'fileutils'
+
+class TestRakeRules < Rake::TestCase
+ include Rake
+
+ SRCFILE = "abc.c"
+ SRCFILE2 = "xyz.c"
+ FTNFILE = "abc.f"
+ OBJFILE = "abc.o"
+ FOOFILE = "foo"
+ DOTFOOFILE = ".foo"
+
+ def setup
+ super
+
+ Task.clear
+ @runs = []
+ end
+
+ def test_multiple_rules1
+ create_file(FTNFILE)
+ delete_file(SRCFILE)
+ delete_file(OBJFILE)
+ rule(/\.o$/ => ['.c']) do @runs << :C end
+ rule(/\.o$/ => ['.f']) do @runs << :F end
+ t = Task[OBJFILE]
+ t.invoke
+ Task[OBJFILE].invoke
+ assert_equal [:F], @runs
+ end
+
+ def test_multiple_rules2
+ create_file(FTNFILE)
+ delete_file(SRCFILE)
+ delete_file(OBJFILE)
+ rule(/\.o$/ => ['.f']) do @runs << :F end
+ rule(/\.o$/ => ['.c']) do @runs << :C end
+ Task[OBJFILE].invoke
+ assert_equal [:F], @runs
+ end
+
+ def test_create_with_source
+ create_file(SRCFILE)
+ rule(/\.o$/ => ['.c']) do |t|
+ @runs << t.name
+ assert_equal OBJFILE, t.name
+ assert_equal SRCFILE, t.source
+ end
+ Task[OBJFILE].invoke
+ assert_equal [OBJFILE], @runs
+ end
+
+ def test_single_dependent
+ create_file(SRCFILE)
+ rule(/\.o$/ => '.c') do |t|
+ @runs << t.name
+ end
+ Task[OBJFILE].invoke
+ assert_equal [OBJFILE], @runs
+ end
+
+ def test_rule_can_be_created_by_string
+ create_file(SRCFILE)
+ rule '.o' => ['.c'] do |t|
+ @runs << t.name
+ end
+ Task[OBJFILE].invoke
+ assert_equal [OBJFILE], @runs
+ end
+
+ def test_rule_prereqs_can_be_created_by_string
+ create_file(SRCFILE)
+ rule '.o' => '.c' do |t|
+ @runs << t.name
+ end
+ Task[OBJFILE].invoke
+ assert_equal [OBJFILE], @runs
+ end
+
+ def test_plain_strings_as_dependents_refer_to_files
+ create_file(SRCFILE)
+ rule '.o' => SRCFILE do |t|
+ @runs << t.name
+ end
+ Task[OBJFILE].invoke
+ assert_equal [OBJFILE], @runs
+ end
+
+ def test_file_names_beginning_with_dot_can_be_tricked_into_referring_to_file
+ verbose(false) do
+ create_file('.foo')
+ rule '.o' => "./.foo" do |t|
+ @runs << t.name
+ end
+ Task[OBJFILE].invoke
+ assert_equal [OBJFILE], @runs
+ end
+ end
+
+ def test_file_names_beginning_with_dot_can_be_wrapped_in_lambda
+ verbose(false) do
+
+ create_file(".foo")
+ rule '.o' => lambda{".foo"} do |t|
+ @runs << "#{t.name} - #{t.source}"
+ end
+ Task[OBJFILE].invoke
+ assert_equal ["#{OBJFILE} - .foo"], @runs
+ end
+ end
+
+ def test_file_names_containing_percent_can_be_wrapped_in_lambda
+ verbose(false) do
+ create_file("foo%x")
+ rule '.o' => lambda{"foo%x"} do |t|
+ @runs << "#{t.name} - #{t.source}"
+ end
+ Task[OBJFILE].invoke
+ assert_equal ["#{OBJFILE} - foo%x"], @runs
+ end
+ end
+
+ def test_non_extension_rule_name_refers_to_file
+ verbose(false) do
+ create_file("abc.c")
+ rule "abc" => '.c' do |t|
+ @runs << t.name
+ end
+ Task["abc"].invoke
+ assert_equal ["abc"], @runs
+ end
+ end
+
+ def test_pathmap_automatically_applies_to_name
+ verbose(false) do
+ create_file("zzabc.c")
+ rule ".o" => 'zz%{x,a}n.c' do |t|
+ @runs << "#{t.name} - #{t.source}"
+ end
+ Task["xbc.o"].invoke
+ assert_equal ["xbc.o - zzabc.c"], @runs
+ end
+ end
+
+ def test_plain_strings_are_just_filenames
+ verbose(false) do
+ create_file("plainname")
+ rule ".o" => 'plainname' do |t|
+ @runs << "#{t.name} - #{t.source}"
+ end
+ Task["xbc.o"].invoke
+ assert_equal ["xbc.o - plainname"], @runs
+ end
+ end
+
+ def test_rule_runs_when_explicit_task_has_no_actions
+ create_file(SRCFILE)
+ create_file(SRCFILE2)
+ delete_file(OBJFILE)
+ rule '.o' => '.c' do |t|
+ @runs << t.source
+ end
+ file OBJFILE => [SRCFILE2]
+ Task[OBJFILE].invoke
+ assert_equal [SRCFILE], @runs
+ end
+
+ def test_close_matches_on_name_do_not_trigger_rule
+ create_file("x.c")
+ rule '.o' => ['.c'] do |t|
+ @runs << t.name
+ end
+ assert_raises(RuntimeError) { Task['x.obj'].invoke }
+ assert_raises(RuntimeError) { Task['x.xyo'].invoke }
+ end
+
+ def test_rule_rebuilds_obj_when_source_is_newer
+ create_timed_files(OBJFILE, SRCFILE)
+ rule(/\.o$/ => ['.c']) do
+ @runs << :RULE
+ end
+ Task[OBJFILE].invoke
+ assert_equal [:RULE], @runs
+ end
+
+ def test_rule_with_two_sources_runs_if_both_sources_are_present
+ create_timed_files(OBJFILE, SRCFILE, SRCFILE2)
+ rule OBJFILE => [lambda{SRCFILE}, lambda{SRCFILE2}] do
+ @runs << :RULE
+ end
+ Task[OBJFILE].invoke
+ assert_equal [:RULE], @runs
+ end
+
+ def test_rule_with_two_sources_but_one_missing_does_not_run
+ create_timed_files(OBJFILE, SRCFILE)
+ delete_file(SRCFILE2)
+ rule OBJFILE => [lambda{SRCFILE}, lambda{SRCFILE2}] do
+ @runs << :RULE
+ end
+ Task[OBJFILE].invoke
+ assert_equal [], @runs
+ end
+
+ def test_rule_with_two_sources_builds_both_sources
+ task 'x.aa'
+ task 'x.bb'
+ rule '.a' => '.aa' do
+ @runs << "A"
+ end
+ rule '.b' => '.bb' do
+ @runs << "B"
+ end
+ rule ".c" => ['.a', '.b'] do
+ @runs << "C"
+ end
+ Task["x.c"].invoke
+ assert_equal ["A", "B", "C"], @runs.sort
+ end
+
+ def test_second_rule_runs_when_first_rule_doesnt
+ create_timed_files(OBJFILE, SRCFILE)
+ delete_file(SRCFILE2)
+ rule OBJFILE => [lambda{SRCFILE}, lambda{SRCFILE2}] do
+ @runs << :RULE1
+ end
+ rule OBJFILE => [lambda{SRCFILE}] do
+ @runs << :RULE2
+ end
+ Task[OBJFILE].invoke
+ assert_equal [:RULE2], @runs
+ end
+
+ def test_second_rule_doest_run_if_first_triggers
+ create_timed_files(OBJFILE, SRCFILE, SRCFILE2)
+ rule OBJFILE => [lambda{SRCFILE}, lambda{SRCFILE2}] do
+ @runs << :RULE1
+ end
+ rule OBJFILE => [lambda{SRCFILE}] do
+ @runs << :RULE2
+ end
+ Task[OBJFILE].invoke
+ assert_equal [:RULE1], @runs
+ end
+
+ def test_second_rule_doest_run_if_first_triggers_with_reversed_rules
+ create_timed_files(OBJFILE, SRCFILE, SRCFILE2)
+ rule OBJFILE => [lambda{SRCFILE}] do
+ @runs << :RULE1
+ end
+ rule OBJFILE => [lambda{SRCFILE}, lambda{SRCFILE2}] do
+ @runs << :RULE2
+ end
+ Task[OBJFILE].invoke
+ assert_equal [:RULE1], @runs
+ end
+
+ def test_rule_with_proc_dependent_will_trigger
+ mkdir_p("src/jw")
+ create_file("src/jw/X.java")
+ rule %r(classes/.*\.class) => [
+ proc { |fn| fn.pathmap("%{classes,src}d/%n.java") }
+ ] do |task|
+ assert_equal task.name, 'classes/jw/X.class'
+ assert_equal task.source, 'src/jw/X.java'
+ @runs << :RULE
+ end
+ Task['classes/jw/X.class'].invoke
+ assert_equal [:RULE], @runs
+ ensure
+ rm_r("src", :verbose=>false) rescue nil
+ end
+
+ def test_proc_returning_lists_are_flattened_into_prereqs
+ ran = false
+ mkdir_p("flatten")
+ create_file("flatten/a.txt")
+ task 'flatten/b.data' do |t|
+ ran = true
+ touch t.name, :verbose => false
+ end
+ rule '.html' =>
+ proc { |fn|
+ [
+ fn.ext("txt"),
+ "flatten/b.data"
+ ]
+ } do |task|
+ end
+ Task['flatten/a.html'].invoke
+ assert ran, "Should have triggered flattened dependency"
+ ensure
+ rm_r("flatten", :verbose=>false) rescue nil
+ end
+
+ def test_recursive_rules_will_work_as_long_as_they_terminate
+ actions = []
+ create_file("abc.xml")
+ rule '.y' => '.xml' do actions << 'y' end
+ rule '.c' => '.y' do actions << 'c'end
+ rule '.o' => '.c' do actions << 'o'end
+ rule '.exe' => '.o' do actions << 'exe'end
+ Task["abc.exe"].invoke
+ assert_equal ['y', 'c', 'o', 'exe'], actions
+ end
+
+ def test_recursive_rules_that_dont_terminate_will_overflow
+ create_file("a.a")
+ prev = 'a'
+ ('b'..'z').each do |letter|
+ rule ".#{letter}" => ".#{prev}" do |t| puts "#{t.name}" end
+ prev = letter
+ end
+ ex = assert_raises(Rake::RuleRecursionOverflowError) {
+ Task["a.z"].invoke
+ }
+ assert_match(/a\.z => a.y/, ex.message)
+ end
+
+ def test_rules_with_bad_dependents_will_fail
+ rule "a" => [ 1 ] do |t| puts t.name end
+ assert_raises(RuntimeError) do Task['a'].invoke end
+ end
+
+end
+
diff --git a/test/rake/test_rake_task.rb b/test/rake/test_rake_task.rb
new file mode 100644
index 0000000000..a5bc693237
--- /dev/null
+++ b/test/rake/test_rake_task.rb
@@ -0,0 +1,267 @@
+require File.expand_path('../helper', __FILE__)
+require 'fileutils'
+
+class TestRakeTask < Rake::TestCase
+ include Rake
+
+ def setup
+ super
+
+ Task.clear
+ Rake::TaskManager.record_task_metadata = true
+ end
+
+ def teardown
+ Rake::TaskManager.record_task_metadata = false
+
+ super
+ end
+
+ def test_create
+ arg = nil
+ t = task(:name) { |task| arg = task; 1234 }
+ assert_equal "name", t.name
+ assert_equal [], t.prerequisites
+ assert t.needed?
+ t.execute(0)
+ assert_equal t, arg
+ assert_nil t.source
+ assert_equal [], t.sources
+ assert_equal 1, t.locations.size
+ assert_match(/#{Regexp.quote(__FILE__)}/, t.locations.first)
+ end
+
+ def test_inspect
+# t = task(:foo, :needs => [:bar, :baz])
+ t = task(:foo => [:bar, :baz])
+ assert_equal "<Rake::Task foo => [bar, baz]>", t.inspect
+ end
+
+ def test_invoke
+ runlist = []
+ t1 = task(:t1 => [:t2, :t3]) { |t| runlist << t.name; 3321 }
+ t2 = task(:t2) { |t| runlist << t.name }
+ t3 = task(:t3) { |t| runlist << t.name }
+ assert_equal ["t2", "t3"], t1.prerequisites
+ t1.invoke
+ assert_equal ["t2", "t3", "t1"], runlist
+ end
+
+ def test_invoke_with_circular_dependencies
+ runlist = []
+ t1 = task(:t1 => [:t2]) { |t| runlist << t.name; 3321 }
+ t2 = task(:t2 => [:t1]) { |t| runlist << t.name }
+ assert_equal ["t2"], t1.prerequisites
+ assert_equal ["t1"], t2.prerequisites
+ ex = assert_raises RuntimeError do
+ t1.invoke
+ end
+ assert_match(/circular dependency/i, ex.message)
+ assert_match(/t1 => t2 => t1/, ex.message)
+ end
+
+ def test_dry_run_prevents_actions
+ Rake.application.options.dryrun = true
+ runlist = []
+ t1 = task(:t1) { |t| runlist << t.name; 3321 }
+ _, err = capture_io { t1.invoke }
+ assert_match(/execute .*t1/i, err)
+ assert_match(/dry run/i, err)
+ refute_match(/invoke/i, err)
+ assert_equal [], runlist
+ ensure
+ Rake.application.options.dryrun = false
+ end
+
+ def test_tasks_can_be_traced
+ Rake.application.options.trace = true
+ t1 = task(:t1)
+ _, err = capture_io {
+ t1.invoke
+ }
+ assert_match(/invoke t1/i, err)
+ assert_match(/execute t1/i, err)
+ ensure
+ Rake.application.options.trace = false
+ end
+
+ def test_no_double_invoke
+ runlist = []
+ t1 = task(:t1 => [:t2, :t3]) { |t| runlist << t.name; 3321 }
+ t2 = task(:t2 => [:t3]) { |t| runlist << t.name }
+ t3 = task(:t3) { |t| runlist << t.name }
+ t1.invoke
+ assert_equal ["t3", "t2", "t1"], runlist
+ end
+
+ def test_can_double_invoke_with_reenable
+ runlist = []
+ t1 = task(:t1) { |t| runlist << t.name }
+ t1.invoke
+ t1.reenable
+ t1.invoke
+ assert_equal ["t1", "t1"], runlist
+ end
+
+ def test_clear
+ t = task("t" => "a") { }
+ t.clear
+ assert t.prerequisites.empty?, "prerequisites should be empty"
+ assert t.actions.empty?, "actions should be empty"
+ end
+
+ def test_clear_prerequisites
+ t = task("t" => ["a", "b"])
+ assert_equal ['a', 'b'], t.prerequisites
+ t.clear_prerequisites
+ assert_equal [], t.prerequisites
+ end
+
+ def test_clear_actions
+ t = task("t") { }
+ t.clear_actions
+ assert t.actions.empty?, "actions should be empty"
+ end
+
+ def test_find
+ task :tfind
+ assert_equal "tfind", Task[:tfind].name
+ ex = assert_raises(RuntimeError) { Task[:leaves] }
+ assert_equal "Don't know how to build task 'leaves'", ex.message
+ end
+
+ def test_defined
+ assert ! Task.task_defined?(:a)
+ task :a
+ assert Task.task_defined?(:a)
+ end
+
+ def test_multi_invocations
+ runs = []
+ p = proc do |t| runs << t.name end
+ task({:t1=>[:t2,:t3]}, &p)
+ task({:t2=>[:t3]}, &p)
+ task(:t3, &p)
+ Task[:t1].invoke
+ assert_equal ["t1", "t2", "t3"], runs.sort
+ end
+
+ def test_task_list
+ task :t2
+ task :t1 => [:t2]
+ assert_equal ["t1", "t2"], Task.tasks.collect {|t| t.name}
+ end
+
+ def test_task_gives_name_on_to_s
+ task :abc
+ assert_equal "abc", Task[:abc].to_s
+ end
+
+ def test_symbols_can_be_prerequisites
+ task :a => :b
+ assert_equal ["b"], Task[:a].prerequisites
+ end
+
+ def test_strings_can_be_prerequisites
+ task :a => "b"
+ assert_equal ["b"], Task[:a].prerequisites
+ end
+
+ def test_arrays_can_be_prerequisites
+ task :a => ["b", "c"]
+ assert_equal ["b", "c"], Task[:a].prerequisites
+ end
+
+ def test_filelists_can_be_prerequisites
+ task :a => FileList.new.include("b", "c")
+ assert_equal ["b", "c"], Task[:a].prerequisites
+ end
+
+ def test_prerequiste_tasks_returns_tasks_not_strings
+ a = task :a => ["b", "c"]
+ b = task :b
+ c = task :c
+ assert_equal [b, c], a.prerequisite_tasks
+ end
+
+ def test_prerequiste_tasks_fails_if_prerequisites_are_undefined
+ a = task :a => ["b", "c"]
+ b = task :b
+ assert_raises(RuntimeError) do
+ a.prerequisite_tasks
+ end
+ end
+
+ def test_prerequiste_tasks_honors_namespaces
+ a = b = nil
+ namespace "X" do
+ a = task :a => ["b", "c"]
+ b = task :b
+ end
+ c = task :c
+
+ assert_equal [b, c], a.prerequisite_tasks
+ end
+
+ def test_timestamp_returns_now_if_all_prereqs_have_no_times
+ a = task :a => ["b", "c"]
+ b = task :b
+ c = task :c
+
+ assert_in_delta Time.now, a.timestamp, 0.1, 'computer too slow?'
+ end
+
+ def test_timestamp_returns_latest_prereq_timestamp
+ a = task :a => ["b", "c"]
+ b = task :b
+ c = task :c
+
+ now = Time.now
+ def b.timestamp() Time.now + 10 end
+ def c.timestamp() Time.now + 5 end
+
+ assert_in_delta now + 10, a.timestamp, 0.1, 'computer too slow?'
+ end
+
+ def test_investigation_output
+ t1 = task(:t1 => [:t2, :t3]) { |t| runlist << t.name; 3321 }
+ task(:t2)
+ task(:t3)
+ out = t1.investigation
+ assert_match(/class:\s*Rake::Task/, out)
+ assert_match(/needed:\s*true/, out)
+ assert_match(/pre-requisites:\s*--t[23]/, out)
+ end
+
+
+ def test_extended_comments
+ desc %{
+ This is a comment.
+
+ And this is the extended comment.
+ name -- Name of task to execute.
+ rev -- Software revision to use.
+ }
+ t = task(:t, :name, :rev)
+ assert_equal "[name,rev]", t.arg_description
+ assert_equal "This is a comment.", t.comment
+ assert_match(/^\s*name -- Name/, t.full_comment)
+ assert_match(/^\s*rev -- Software/, t.full_comment)
+ assert_match(/\A\s*This is a comment\.$/, t.full_comment)
+ end
+
+ def test_multiple_comments
+ desc "line one"
+ t = task(:t)
+ desc "line two"
+ task(:t)
+ assert_equal "line one / line two", t.comment
+ end
+
+ def test_settable_comments
+ t = task(:t)
+ t.comment = "HI"
+ assert_equal "HI", t.comment
+ end
+end
+
diff --git a/test/rake/test_rake_task_argument_parsing.rb b/test/rake/test_rake_task_argument_parsing.rb
new file mode 100644
index 0000000000..9b99991de9
--- /dev/null
+++ b/test/rake/test_rake_task_argument_parsing.rb
@@ -0,0 +1,103 @@
+require File.expand_path('../helper', __FILE__)
+
+class TestRakeTaskArgumentParsing < Rake::TestCase
+ def setup
+ super
+
+ @app = Rake::Application.new
+ end
+
+ def test_name_only
+ name, args = @app.parse_task_string("name")
+ assert_equal "name", name
+ assert_equal [], args
+ end
+
+ def test_empty_args
+ name, args = @app.parse_task_string("name[]")
+ assert_equal "name", name
+ assert_equal [], args
+ end
+
+ def test_one_argument
+ name, args = @app.parse_task_string("name[one]")
+ assert_equal "name", name
+ assert_equal ["one"], args
+ end
+
+ def test_two_arguments
+ name, args = @app.parse_task_string("name[one,two]")
+ assert_equal "name", name
+ assert_equal ["one", "two"], args
+ end
+
+ def test_can_handle_spaces_between_args
+ name, args = @app.parse_task_string("name[one, two,\tthree , \tfour]")
+ assert_equal "name", name
+ assert_equal ["one", "two", "three", "four"], args
+ end
+
+ def test_keeps_embedded_spaces
+ name, args = @app.parse_task_string("name[a one ana, two]")
+ assert_equal "name", name
+ assert_equal ["a one ana", "two"], args
+ end
+
+ def test_terminal_width_using_env
+ app = Rake::Application.new
+ app.terminal_columns = 1234
+
+ assert_equal 1234, app.terminal_width
+ end
+
+ def test_terminal_width_using_stty
+ def @app.unix?() true end
+ def @app.dynamic_width_stty() 1235 end
+ def @app.dynamic_width_tput() 0 end
+
+ assert_equal 1235, @app.terminal_width
+ end
+
+ def test_terminal_width_using_tput
+ def @app.unix?() true end
+ def @app.dynamic_width_stty() 0 end
+ def @app.dynamic_width_tput() 1236 end
+
+ assert_equal 1236, @app.terminal_width
+ end
+
+ def test_terminal_width_using_hardcoded_80
+ def @app.unix?() false end
+
+ assert_equal 80, @app.terminal_width
+ end
+
+ def test_terminal_width_with_failure
+ def @app.unix?() raise end
+
+ assert_equal 80, @app.terminal_width
+ end
+
+ def test_no_rakeopt
+ ARGV << '--trace'
+ app = Rake::Application.new
+ app.init
+ assert !app.options.silent
+ end
+
+ def test_rakeopt_with_blank_options
+ ARGV << '--trace'
+ app = Rake::Application.new
+ app.init
+ assert !app.options.silent
+ end
+
+ def test_rakeopt_with_silent_options
+ ENV['RAKEOPT'] = '-s'
+ app = Rake::Application.new
+
+ app.init
+
+ assert app.options.silent
+ end
+end
diff --git a/test/rake/test_rake_task_arguments.rb b/test/rake/test_rake_task_arguments.rb
new file mode 100644
index 0000000000..7001a4aeb2
--- /dev/null
+++ b/test/rake/test_rake_task_arguments.rb
@@ -0,0 +1,88 @@
+require File.expand_path('../helper', __FILE__)
+
+######################################################################
+class TestRakeTaskArguments < Rake::TestCase
+ def teardown
+ ENV.delete('rev')
+ ENV.delete('VER')
+
+ super
+ end
+
+ def test_empty_arg_list_is_empty
+ ta = Rake::TaskArguments.new([], [])
+ assert_equal({}, ta.to_hash)
+ end
+
+ def test_multiple_values_in_args
+ ta = Rake::TaskArguments.new([:a, :b, :c], [:one, :two, :three])
+ assert_equal({:a => :one, :b => :two, :c => :three}, ta.to_hash)
+ end
+
+ def test_to_s
+ ta = Rake::TaskArguments.new([:a, :b, :c], [1, 2, 3])
+ assert_equal ta.to_hash.inspect, ta.to_s
+ assert_equal ta.to_hash.inspect, ta.inspect
+ end
+
+ def test_enumerable_behavior
+ ta = Rake::TaskArguments.new([:a, :b, :c], [1, 2 ,3])
+ assert_equal [10, 20, 30], ta.collect { |k,v| v * 10 }.sort
+ end
+
+ def test_named_args
+ ta = Rake::TaskArguments.new(["aa", "bb"], [1, 2])
+ assert_equal 1, ta.aa
+ assert_equal 1, ta[:aa]
+ assert_equal 1, ta["aa"]
+ assert_equal 2, ta.bb
+ assert_nil ta.cc
+ end
+
+ def test_args_knows_its_names
+ ta = Rake::TaskArguments.new(["aa", "bb"], [1, 2])
+ assert_equal ["aa", "bb"], ta.names
+ end
+
+ def test_extra_names_are_nil
+ ta = Rake::TaskArguments.new(["aa", "bb", "cc"], [1, 2])
+ assert_nil ta.cc
+ end
+
+ def test_args_do_not_reference_env_values
+ ta = Rake::TaskArguments.new(["aa"], [1])
+ ENV['rev'] = "1.2"
+ ENV['VER'] = "2.3"
+ assert_nil ta.rev
+ assert_nil ta.ver
+ end
+
+ def test_creating_new_argument_scopes
+ parent = Rake::TaskArguments.new(['p'], [1])
+ child = parent.new_scope(['c', 'p'])
+ assert_equal({:p=>1}, child.to_hash)
+ assert_equal 1, child.p
+ assert_equal 1, child["p"]
+ assert_equal 1, child[:p]
+ assert_nil child.c
+ end
+
+ def test_child_hides_parent_arg_names
+ parent = Rake::TaskArguments.new(['aa'], [1])
+ child = Rake::TaskArguments.new(['aa'], [2], parent)
+ assert_equal 2, child.aa
+ end
+
+ def test_default_arguments_values_can_be_merged
+ ta = Rake::TaskArguments.new(["aa", "bb"], [nil, "original_val"])
+ ta.with_defaults({ :aa => 'default_val' })
+ assert_equal 'default_val', ta[:aa]
+ assert_equal 'original_val', ta[:bb]
+ end
+
+ def test_default_arguments_that_dont_match_names_are_ignored
+ ta = Rake::TaskArguments.new(["aa", "bb"], [nil, "original_val"])
+ ta.with_defaults({ "cc" => "default_val" })
+ assert_nil ta[:cc]
+ end
+end
diff --git a/test/rake/test_rake_task_lib.rb b/test/rake/test_rake_task_lib.rb
new file mode 100644
index 0000000000..9f3f7e9dae
--- /dev/null
+++ b/test/rake/test_rake_task_lib.rb
@@ -0,0 +1,9 @@
+require File.expand_path('../helper', __FILE__)
+require 'rake/tasklib'
+
+class TestRakeTaskLib < Rake::TestCase
+ def test_paste
+ tl = Rake::TaskLib.new
+ assert_equal :ab, tl.paste(:a, :b)
+ end
+end
diff --git a/test/rake/test_rake_task_manager.rb b/test/rake/test_rake_task_manager.rb
new file mode 100644
index 0000000000..110ce65d4c
--- /dev/null
+++ b/test/rake/test_rake_task_manager.rb
@@ -0,0 +1,157 @@
+require File.expand_path('../helper', __FILE__)
+
+class TestRakeTaskManager < Rake::TestCase
+
+ def setup
+ super
+
+ @tm = Rake::TestCase::TaskManager.new
+ end
+
+ def test_create_task_manager
+ refute_nil @tm
+ assert_equal [], @tm.tasks
+ end
+
+ def test_define_task
+ t = @tm.define_task(Rake::Task, :t)
+ assert_equal "t", t.name
+ assert_equal @tm, t.application
+ end
+
+ def test_index
+ e = assert_raises RuntimeError do
+ @tm['bad']
+ end
+
+ assert_equal "Don't know how to build task 'bad'", e.message
+ end
+
+ def test_name_lookup
+ t = @tm.define_task(Rake::Task, :t)
+ assert_equal t, @tm[:t]
+ end
+
+ def test_namespace_task_create
+ @tm.in_namespace("x") do
+ t = @tm.define_task(Rake::Task, :t)
+ assert_equal "x:t", t.name
+ end
+ assert_equal ["x:t"], @tm.tasks.collect { |t| t.name }
+ end
+
+ def test_anonymous_namespace
+ anon_ns = @tm.in_namespace(nil) do
+ t = @tm.define_task(Rake::Task, :t)
+ assert_equal "_anon_1:t", t.name
+ end
+ task = anon_ns[:t]
+ assert_equal "_anon_1:t", task.name
+ end
+
+ def test_create_filetask_in_namespace
+ @tm.in_namespace("x") do
+ t = @tm.define_task(Rake::FileTask, "fn")
+ assert_equal "fn", t.name
+ end
+
+ assert_equal ["fn"], @tm.tasks.collect { |t| t.name }
+ end
+
+ def test_namespace_yields_same_namespace_as_returned
+ yielded_namespace = nil
+ returned_namespace = @tm.in_namespace("x") do |ns|
+ yielded_namespace = ns
+ end
+ assert_equal returned_namespace, yielded_namespace
+ end
+
+ def test_name_lookup_with_implicit_file_tasks
+ FileUtils.touch 'README.rdoc'
+
+ t = @tm["README.rdoc"]
+
+ assert_equal "README.rdoc", t.name
+ assert Rake::FileTask === t
+ end
+
+ def test_name_lookup_with_nonexistent_task
+ assert_raises(RuntimeError) {
+ @tm["DOES NOT EXIST"]
+ }
+ end
+
+ def test_name_lookup_in_multiple_scopes
+ aa = nil
+ bb = nil
+ xx = @tm.define_task(Rake::Task, :xx)
+ top_z = @tm.define_task(Rake::Task, :z)
+ @tm.in_namespace("a") do
+ aa = @tm.define_task(Rake::Task, :aa)
+ mid_z = @tm.define_task(Rake::Task, :z)
+ @tm.in_namespace("b") do
+ bb = @tm.define_task(Rake::Task, :bb)
+ bot_z = @tm.define_task(Rake::Task, :z)
+
+ assert_equal ["a", "b"], @tm.current_scope
+
+ assert_equal bb, @tm["a:b:bb"]
+ assert_equal aa, @tm["a:aa"]
+ assert_equal xx, @tm["xx"]
+ assert_equal bot_z, @tm["z"]
+ assert_equal mid_z, @tm["^z"]
+ assert_equal top_z, @tm["^^z"]
+ assert_equal top_z, @tm["rake:z"]
+ end
+
+ assert_equal ["a"], @tm.current_scope
+
+ assert_equal bb, @tm["a:b:bb"]
+ assert_equal aa, @tm["a:aa"]
+ assert_equal xx, @tm["xx"]
+ assert_equal bb, @tm["b:bb"]
+ assert_equal aa, @tm["aa"]
+ assert_equal mid_z, @tm["z"]
+ assert_equal top_z, @tm["^z"]
+ assert_equal top_z, @tm["rake:z"]
+ end
+
+ assert_equal [], @tm.current_scope
+
+ assert_equal [], xx.scope
+ assert_equal ['a'], aa.scope
+ assert_equal ['a', 'b'], bb.scope
+ end
+
+ def test_lookup_with_explicit_scopes
+ t1, t2, t3, s = (0...4).collect { nil }
+ t1 = @tm.define_task(Rake::Task, :t)
+ @tm.in_namespace("a") do
+ t2 = @tm.define_task(Rake::Task, :t)
+ s = @tm.define_task(Rake::Task, :s)
+ @tm.in_namespace("b") do
+ t3 = @tm.define_task(Rake::Task, :t)
+ end
+ end
+ assert_equal t1, @tm[:t, []]
+ assert_equal t2, @tm[:t, ["a"]]
+ assert_equal t3, @tm[:t, ["a", "b"]]
+ assert_equal s, @tm[:s, ["a", "b"]]
+ assert_equal s, @tm[:s, ["a"]]
+ end
+
+ def test_correctly_scoped_prerequisites_are_invoked
+ values = []
+ @tm = Rake::Application.new
+ @tm.define_task(Rake::Task, :z) do values << "top z" end
+ @tm.in_namespace("a") do
+ @tm.define_task(Rake::Task, :z) do values << "next z" end
+ @tm.define_task(Rake::Task, :x => :z)
+ end
+
+ @tm["a:x"].invoke
+ assert_equal ["next z"], values
+ end
+
+end
+
diff --git a/test/rake/test_rake_task_manager_argument_resolution.rb b/test/rake/test_rake_task_manager_argument_resolution.rb
new file mode 100644
index 0000000000..35e0862ef7
--- /dev/null
+++ b/test/rake/test_rake_task_manager_argument_resolution.rb
@@ -0,0 +1,36 @@
+require File.expand_path('../helper', __FILE__)
+
+class TestRakeTaskManagerArgumentResolution < Rake::TestCase
+
+ def setup
+ super
+
+ Rake.application.options.ignore_deprecate = true
+ end
+
+ def teardown
+ Rake.application.options.ignore_deprecate = false
+
+ super
+ end
+
+ def test_good_arg_patterns
+ assert_equal [:t, [], []], task(:t)
+ assert_equal [:t, [], [:x]], task(:t => :x)
+ assert_equal [:t, [], [:x, :y]], task(:t => [:x, :y])
+
+ assert_equal [:t, [:a, :b], []], task(:t, :a, :b)
+ assert_equal [:t, [], [:x]], task(:t, :needs => :x)
+ assert_equal [:t, [:a, :b], [:x]], task(:t, :a, :b, :needs => :x)
+ assert_equal [:t, [:a, :b], [:x, :y]], task(:t, :a, :b, :needs => [:x, :y])
+
+ assert_equal [:t, [:a, :b], []], task(:t, [:a, :b])
+ assert_equal [:t, [:a, :b], [:x]], task(:t, [:a, :b] => :x)
+ assert_equal [:t, [:a, :b], [:x, :y]], task(:t, [:a, :b] => [:x, :y])
+ end
+
+ def task(*args)
+ tm = Rake::TestCase::TaskManager.new
+ tm.resolve_args(args)
+ end
+end
diff --git a/test/rake/test_rake_task_with_arguments.rb b/test/rake/test_rake_task_with_arguments.rb
new file mode 100644
index 0000000000..ce81a4c1a8
--- /dev/null
+++ b/test/rake/test_rake_task_with_arguments.rb
@@ -0,0 +1,173 @@
+require File.expand_path('../helper', __FILE__)
+
+class TestRakeTaskWithArguments < Rake::TestCase
+ include Rake
+
+ def setup
+ super
+
+ Task.clear
+ Rake::TaskManager.record_task_metadata = true
+ end
+
+ def teardown
+ Rake::TaskManager.record_task_metadata = false
+
+ super
+ end
+
+ def test_no_args_given
+ t = task :t
+ assert_equal [], t.arg_names
+ end
+
+ def test_args_given
+ t = task :t, :a, :b
+ assert_equal [:a, :b], t.arg_names
+ end
+
+ def test_name_and_needs
+ t = task(:t => [:pre])
+ assert_equal "t", t.name
+ assert_equal [], t.arg_names
+ assert_equal ["pre"], t.prerequisites
+ end
+
+ def test_name_args_and_explicit_needs
+ ignore_deprecations do
+ t = task(:t, :x, :y, :needs => [:pre])
+ assert_equal "t", t.name
+ assert_equal [:x, :y], t.arg_names
+ assert_equal ["pre"], t.prerequisites
+ end
+ end
+
+ def test_illegal_keys_in_task_name_hash
+ ignore_deprecations do
+ assert_raises RuntimeError do
+ t = task(:t, :x, :y => 1, :needs => [:pre])
+ end
+ end
+ end
+
+ def test_arg_list_is_empty_if_no_args_given
+ t = task(:t) { |tt, args| assert_equal({}, args.to_hash) }
+ t.invoke(1, 2, 3)
+ end
+
+ def test_tasks_can_access_arguments_as_hash
+ t = task :t, :a, :b, :c do |tt, args|
+ assert_equal({:a => 1, :b => 2, :c => 3}, args.to_hash)
+ assert_equal 1, args[:a]
+ assert_equal 2, args[:b]
+ assert_equal 3, args[:c]
+ assert_equal 1, args.a
+ assert_equal 2, args.b
+ assert_equal 3, args.c
+ end
+ t.invoke(1, 2, 3)
+ end
+
+ def test_actions_of_various_arity_are_ok_with_args
+ notes = []
+ t = task(:t, :x) do
+ notes << :a
+ end
+ t.enhance do | |
+ notes << :b
+ end
+ t.enhance do |task|
+ notes << :c
+ assert_kind_of Task, task
+ end
+ t.enhance do |t2, args|
+ notes << :d
+ assert_equal t, t2
+ assert_equal({:x => 1}, args.to_hash)
+ end
+ t.invoke(1)
+ assert_equal [:a, :b, :c, :d], notes
+ end
+
+ def test_arguments_are_passed_to_block
+ t = task(:t, :a, :b) { |tt, args|
+ assert_equal( { :a => 1, :b => 2 }, args.to_hash )
+ }
+ t.invoke(1, 2)
+ end
+
+ def test_extra_parameters_are_ignored
+ t = task(:t, :a) { |tt, args|
+ assert_equal 1, args.a
+ assert_nil args.b
+ }
+ t.invoke(1, 2)
+ end
+
+ def test_arguments_are_passed_to_all_blocks
+ counter = 0
+ t = task :t, :a
+ task :t do |tt, args|
+ assert_equal 1, args.a
+ counter += 1
+ end
+ task :t do |tt, args|
+ assert_equal 1, args.a
+ counter += 1
+ end
+ t.invoke(1)
+ assert_equal 2, counter
+ end
+
+ def test_block_with_no_parameters_is_ok
+ t = task(:t) { }
+ t.invoke(1, 2)
+ end
+
+ def test_name_with_args
+ desc "T"
+ t = task(:tt, :a, :b)
+ assert_equal "tt", t.name
+ assert_equal "T", t.comment
+ assert_equal "[a,b]", t.arg_description
+ assert_equal "tt[a,b]", t.name_with_args
+ assert_equal [:a, :b],t.arg_names
+ end
+
+ def test_named_args_are_passed_to_prereqs
+ value = nil
+ pre = task(:pre, :rev) { |t, args| value = args.rev }
+ t = task(:t, [:name, :rev] => [:pre])
+ t.invoke("bill", "1.2")
+ assert_equal "1.2", value
+ end
+
+ def test_args_not_passed_if_no_prereq_names
+ pre = task(:pre) { |t, args|
+ assert_equal({}, args.to_hash)
+ assert_equal "bill", args.name
+ }
+ t = task(:t, [:name, :rev] => [:pre])
+ t.invoke("bill", "1.2")
+ end
+
+ def test_args_not_passed_if_no_arg_names
+ pre = task(:pre, :rev) { |t, args|
+ assert_equal({}, args.to_hash)
+ }
+ t = task(:t => [:pre])
+ t.invoke("bill", "1.2")
+ end
+
+ def test_values_at
+ t = task(:pre, [:a, :b, :c]) { |task, args|
+ a, b, c = args.values_at(:a, :b, :c)
+ assert_equal %w[1 2 3], [a, b, c]
+ }
+
+ t.invoke(*%w[1 2 3])
+
+ # HACK no assertions
+ end
+end
+
diff --git a/test/rake/test_rake_test_task.rb b/test/rake/test_rake_test_task.rb
new file mode 100644
index 0000000000..1a6d23e425
--- /dev/null
+++ b/test/rake/test_rake_test_task.rb
@@ -0,0 +1,120 @@
+require File.expand_path('../helper', __FILE__)
+require 'rake/testtask'
+
+class TestRakeTestTask < Rake::TestCase
+ include Rake
+
+ def test_initialize
+ tt = Rake::TestTask.new do |t| end
+ refute_nil tt
+ assert_equal :test, tt.name
+ assert_equal ['lib'], tt.libs
+ assert_equal 'test/test*.rb', tt.pattern
+ assert_equal false, tt.verbose
+ assert Task.task_defined?(:test)
+ end
+
+ def test_initialize_override
+ tt = Rake::TestTask.new(:example) do |t|
+ t.libs = ['src', 'ext']
+ t.pattern = 'test/tc_*.rb'
+ t.verbose = true
+ end
+ refute_nil tt
+ assert_equal :example, tt.name
+ assert_equal ['src', 'ext'], tt.libs
+ assert_equal 'test/tc_*.rb', tt.pattern
+ assert_equal true, tt.verbose
+ assert Task.task_defined?(:example)
+ end
+
+ def test_file_list_ENV_TEST
+ ENV['TEST'] = 'testfile.rb'
+ tt = Rake::TestTask.new do |t|
+ t.pattern = '*'
+ end
+
+ assert_equal ["testfile.rb"], tt.file_list.to_a
+ ensure
+ ENV.delete 'TEST'
+ end
+
+ def test_libs_equals
+ test_task = Rake::TestTask.new do |t|
+ t.libs << ["A", "B"]
+ end
+
+ path = %w[lib A B].join File::PATH_SEPARATOR
+
+ assert_equal "-I\"#{path}\"", test_task.ruby_opts_string
+ end
+
+ def test_libs_equals_empty
+ test_task = Rake::TestTask.new do |t|
+ t.libs = []
+ end
+
+ assert_equal '', test_task.ruby_opts_string
+ end
+
+ def test_pattern_equals
+ tt = Rake::TestTask.new do |t|
+ t.pattern = '*.rb'
+ end
+ assert_equal ['*.rb'], tt.file_list.to_a
+ end
+
+ def test_pattern_equals_test_files_equals
+ tt = Rake::TestTask.new do |t|
+ t.test_files = FileList['a.rb', 'b.rb']
+ t.pattern = '*.rb'
+ end
+ assert_equal ['a.rb', 'b.rb', '*.rb'], tt.file_list.to_a
+ end
+
+ def test_run_code_direct
+ test_task = Rake::TestTask.new do |t|
+ t.loader = :direct
+ end
+
+ assert_equal '-e "ARGV.each{|f| require f}"', test_task.run_code
+ end
+
+ def test_run_code_rake
+ test_task = Rake::TestTask.new do |t|
+ t.loader = :rake
+ end
+
+ assert_match(/-I".*?" ".*?"/, test_task.run_code)
+ end
+
+ def test_run_code_testrb_ruby_1_8_2
+ test_task = Rake::TestTask.new do |t|
+ t.loader = :testrb
+ end
+
+ def test_task.ruby_version() '1.8.2' end
+
+ assert_match(/^-S testrb +".*"$/, test_task.run_code)
+ end
+
+ def test_run_code_testrb_ruby_1_8_6
+ test_task = Rake::TestTask.new do |t|
+ t.loader = :testrb
+ end
+
+ def test_task.ruby_version() '1.8.6' end
+
+ assert_match(/^-S testrb +$/, test_task.run_code)
+ end
+
+ def test_test_files_equals
+ tt = Rake::TestTask.new do |t|
+ t.test_files = FileList['a.rb', 'b.rb']
+ end
+
+ assert_equal ["a.rb", 'b.rb'], tt.file_list.to_a
+ end
+
+end
+
diff --git a/test/rake/test_rake_top_level_functions.rb b/test/rake/test_rake_top_level_functions.rb
new file mode 100644
index 0000000000..1ed1af02e3
--- /dev/null
+++ b/test/rake/test_rake_top_level_functions.rb
@@ -0,0 +1,111 @@
+require File.expand_path('../helper', __FILE__)
+
+class TestRakeTopLevelFunctions < Rake::TestCase
+
+ def setup
+ super
+
+ @app = Object.new
+
+ def @app.called
+ @called
+ end
+
+ def @app.method_missing(*a, &b)
+ @called ||= []
+ @called << [a, b]
+ nil
+ end
+
+ Rake.application = @app
+ end
+
+ def test_namespace
+ block = proc do end
+
+ namespace("xyz", &block)
+
+ expected = [
+ [[:in_namespace, 'xyz'], block]
+ ]
+
+ assert_equal expected, @app.called
+ end
+
+ def test_import
+ import('x', 'y', 'z')
+
+ expected = [
+ [[:add_import, 'x'], nil],
+ [[:add_import, 'y'], nil],
+ [[:add_import, 'z'], nil],
+ ]
+
+ assert_equal expected, @app.called
+ end
+
+ def test_when_writing
+ out, = capture_io do
+ when_writing("NOTWRITING") do
+ puts "WRITING"
+ end
+ end
+ assert_equal "WRITING\n", out
+ end
+
+ def test_when_not_writing
+ Rake::FileUtilsExt.nowrite_flag = true
+ _, err = capture_io do
+ when_writing("NOTWRITING") do
+ puts "WRITING"
+ end
+ end
+ assert_equal "DRYRUN: NOTWRITING\n", err
+ ensure
+ Rake::FileUtilsExt.nowrite_flag = false
+ end
+
+ def test_missing_constants_task
+ Object.const_missing(:Task)
+
+ expected = [
+ [[:const_warning, :Task], nil]
+ ]
+
+ assert_equal expected, @app.called
+ end
+
+ def test_missing_constants_file_task
+ Object.const_missing(:FileTask)
+
+ expected = [
+ [[:const_warning, :FileTask], nil]
+ ]
+
+ assert_equal expected, @app.called
+ end
+
+ def test_missing_constants_file_creation_task
+ Object.const_missing(:FileCreationTask)
+
+ expected = [
+ [[:const_warning, :FileCreationTask], nil]
+ ]
+
+ assert_equal expected, @app.called
+ end
+
+ def test_missing_constants_rake_app
+ Object.const_missing(:RakeApp)
+
+ expected = [
+ [[:const_warning, :RakeApp], nil]
+ ]
+
+ assert_equal expected, @app.called
+ end
+
+ def test_missing_other_constant
+ assert_raises(NameError) do Object.const_missing(:Xyz) end
+ end
+end
diff --git a/test/rake/test_rake_win32.rb b/test/rake/test_rake_win32.rb
new file mode 100644
index 0000000000..fc2746a0a1
--- /dev/null
+++ b/test/rake/test_rake_win32.rb
@@ -0,0 +1,72 @@
+require File.expand_path('../helper', __FILE__)
+
+class TestRakeWin32 < Rake::TestCase
+
+ Win32 = Rake::Win32
+
+ def test_win32_system_dir_uses_home_if_defined
+ ENV['HOME'] = 'C:\\HP'
+
+ assert_equal "C:/HP/Rake", Win32.win32_system_dir
+ end
+
+ def test_win32_system_dir_uses_homedrive_homepath_when_no_home_defined
+ ENV['HOME'] = nil
+ ENV['HOMEDRIVE'] = 'C:'
+ ENV['HOMEPATH'] = '\\HP'
+
+ assert_equal "C:/HP/Rake", Win32.win32_system_dir
+ end
+
+ def test_win32_system_dir_uses_appdata_when_no_home_or_home_combo
+ ENV['APPDATA'] = "C:\\Documents and Settings\\HP\\Application Data"
+ ENV['HOME'] = nil
+ ENV['HOMEDRIVE'] = nil
+ ENV['HOMEPATH'] = nil
+
+ assert_equal "C:/Documents and Settings/HP/Application Data/Rake",
+ Win32.win32_system_dir
+ end
+
+ def test_win32_system_dir_fallback_to_userprofile_otherwise
+ ENV['HOME'] = nil
+ ENV['HOMEDRIVE'] = nil
+ ENV['HOMEPATH'] = nil
+ ENV['APPDATA'] = nil
+ ENV['USERPROFILE'] = "C:\\Documents and Settings\\HP"
+
+ assert_equal "C:/Documents and Settings/HP/Rake", Win32.win32_system_dir
+ end
+
+ def test_win32_system_dir_nil_of_no_env_vars
+ ENV['APPDATA'] = nil
+ ENV['HOME'] = nil
+ ENV['HOMEDRIVE'] = nil
+ ENV['HOMEPATH'] = nil
+ ENV['RAKE_SYSTEM'] = nil
+ ENV['USERPROFILE'] = nil
+
+ assert_raises(Rake::Win32::Win32HomeError) do
+ Win32.win32_system_dir
+ end
+ end
+
+ def test_win32_backtrace_with_different_case
+ ex = nil
+ begin
+ raise 'test exception'
+ rescue => ex
+ end
+
+ ex.set_backtrace ['abc', 'rakefile']
+
+ rake = Rake::Application.new
+ rake.options.trace = true
+ rake.instance_variable_set(:@rakefile, 'Rakefile')
+
+ _, err = capture_io { rake.display_error_message(ex) }
+
+ assert_match(/rakefile/, err)
+ end
+
+end
diff --git a/test/rake/test_sys.rb b/test/rake/test_sys.rb
new file mode 100644
index 0000000000..21f7e2c708
--- /dev/null
+++ b/test/rake/test_sys.rb
@@ -0,0 +1,20 @@
+require File.expand_path('../helper', __FILE__)
+begin
+ old_verbose = $VERBOSE
+ $VERBOSE = nil
+ require 'rake/contrib/sys'
+ensure
+ $VERBOSE = old_verbose
+end
+
+class TestSys < Rake::TestCase
+
+ def test_split_all
+ assert_equal ['a'], Sys.split_all('a')
+ assert_equal ['..'], Sys.split_all('..')
+ assert_equal ['/'], Sys.split_all('/')
+ assert_equal ['a', 'b'], Sys.split_all('a/b')
+ assert_equal ['/', 'a', 'b'], Sys.split_all('/a/b')
+ assert_equal ['..', 'a', 'b'], Sys.split_all('../a/b')
+ end
+end
diff --git a/test/rdoc/README b/test/rdoc/README
new file mode 100644
index 0000000000..4ef17a77f7
--- /dev/null
+++ b/test/rdoc/README
@@ -0,0 +1 @@
+you don't have to
diff --git a/test/rdoc/hidden.zip.txt b/test/rdoc/hidden.zip.txt
new file mode 100644
index 0000000000..2400e38b7d
--- /dev/null
+++ b/test/rdoc/hidden.zip.txt
@@ -0,0 +1 @@
+PK
diff --git a/test/rdoc/rdoc_markup_to_html_crossref_reference.rb b/test/rdoc/rdoc_markup_to_html_crossref_reference.rb
deleted file mode 100644
index cbf6734b28..0000000000
--- a/test/rdoc/rdoc_markup_to_html_crossref_reference.rb
+++ /dev/null
@@ -1,31 +0,0 @@
-#
-# This file is parsed by test_rdoc_markup_to_html_crossref.rb
-# during its tests.
-#
-class Ref_Class1
-end
-
-class Ref_Class2
- class Ref_Class3
- def method
- end
-
- class Helper1
- def method?
- end
- end
- end
-end
-
-class Ref_Class3
- class Helper1
- end
-
- class Helper2
- end
-end
-
-class Ref_Class4
- class Ref_Class4
- end
-end
diff --git a/test/rdoc/test.ja.large.rdoc b/test/rdoc/test.ja.large.rdoc
new file mode 100644
index 0000000000..a9c6c4691c
--- /dev/null
+++ b/test/rdoc/test.ja.large.rdoc
@@ -0,0 +1,3 @@
+# -*- coding: utf-8 -*-
+ å¾è¼©ï¼ˆã‚ãŒã¯ã„)ã¯çŒ«ã§ã‚る。åå‰ã¯ã¾ã ç„¡ã„。
+ ã©ã“ã§ç”Ÿã‚ŒãŸã‹ã¨ã‚“ã¨è¦‹å½“(ã‘ã‚“ã¨ã†ï¼‰ãŒã¤ã‹ã¬ã€‚何ã§ã‚‚è–„æš—ã„ã˜ã‚ã˜ã‚ã—ãŸæ‰€ã§ãƒ‹ãƒ£ãƒ¼ãƒ‹ãƒ£ãƒ¼æ³£ã„ã¦ã„ãŸäº‹ã ã‘ã¯è¨˜æ†¶ã—ã¦ã„る。å¾è¼©ã¯ã“ã“ã§å§‹ã‚ã¦äººé–“ã¨ã„ã†ã‚‚ã®ã‚’見ãŸã€‚ã—ã‹ã‚‚ã‚ã¨ã§èžãã¨ãã‚Œã¯æ›¸ç”Ÿã¨ã„ã†äººé–“中ã§ä¸€ç•ªç°æ‚ªï¼ˆã©ã†ã‚ã)ãªç¨®æ—ã§ã‚ã£ãŸãã†ã ã€‚ã“ã®æ›¸ç”Ÿã¨ã„ã†ã®ã¯æ™‚々我々をæ•(ã¤ã‹ã¾ï¼‰ãˆã¦ç…®ï¼ˆã«ï¼‰ã¦é£Ÿã†ã¨ã„ã†è©±ã§ã‚る。ã—ã‹ã—ãã®å½“時ã¯ä½•ã¨ã„ã†è€ƒã‚‚ãªã‹ã£ãŸã‹ã‚‰åˆ¥æ®µæã—ã„ã¨ã‚‚æ€ã‚ãªã‹ã£ãŸã€‚ãŸã å½¼ã®æŽŒï¼ˆã¦ã®ã²ã‚‰ï¼‰ã«è¼‰ã›ã‚‰ã‚Œã¦ã‚¹ãƒ¼ã¨æŒã¡ä¸Šã’ã‚‰ã‚ŒãŸæ™‚何ã ã‹ãƒ•ワフワã—ãŸæ„Ÿã˜ãŒã‚ã£ãŸã°ã‹ã‚Šã§ã‚る。掌ã®ä¸Šã§å°‘ã—è½ã¡ã¤ã„ã¦æ›¸ç”Ÿã®é¡”を見ãŸã®ãŒã„ã‚ゆる人間ã¨ã„ã†ã‚‚ã®ã®è¦‹å§‹ï¼ˆã¿ã¯ã˜ã‚)ã§ã‚ã‚ã†ã€‚ã“ã®æ™‚妙ãªã‚‚ã®ã ã¨æ€ã£ãŸæ„Ÿã˜ãŒä»Šã§ã‚‚残ã£ã¦ã„る。第一毛をもã£ã¦è£…飾ã•れã¹ãã¯ãšã®é¡”ãŒã¤ã‚‹ã¤ã‚‹ã—ã¦ã¾ã‚‹ã§è–¬ç¼¶ï¼ˆã‚„ã‹ã‚“)ã ã€‚ãã®å¾Œï¼ˆã”)猫ã«ã‚‚ã ã„ã¶é€¢ï¼ˆã‚)ã£ãŸãŒã“ã‚“ãªç‰‡è¼ªï¼ˆã‹ãŸã‚)ã«ã¯ä¸€åº¦ã‚‚出会(ã§ã)ã‚ã—ãŸäº‹ãŒãªã„。ã®ã¿ãªã‚‰ãšé¡”ã®çœŸä¸­ãŒã‚ã¾ã‚Šã«çªèµ·ã—ã¦ã„る。ãã†ã—ã¦ãã®ç©´ã®ä¸­ã‹ã‚‰æ™‚々ã·ã†ã·ã†ã¨ç…™ï¼ˆã‘むり)をå¹ã。ã©ã†ã‚‚咽(む)ã›ã½ãã¦å®Ÿã«å¼±ã£ãŸã€‚ã“れãŒäººé–“ã®é£²ã‚€ç…™è‰ï¼ˆãŸã°ã“)ã¨ã„ã†ã‚‚ã®ã§ã‚る事ã¯ã‚ˆã†ã‚„ãã“ã®é ƒçŸ¥ã£ãŸã€‚
diff --git a/test/rdoc/test.ja.rdoc b/test/rdoc/test.ja.rdoc
new file mode 100644
index 0000000000..cd01cab37a
--- /dev/null
+++ b/test/rdoc/test.ja.rdoc
@@ -0,0 +1,10 @@
+# -*- coding: utf-8 -*-
+
+ã“ã‚“ã«ã¡ã¯ï¼
+
+åˆã‚ã¾ã—ã¦ã€‚アーロンã¨ç”³ã—ã¾ã™ã€‚
+
+ã©ã‚“ãªé£Ÿã¹ç‰©ãŒå¥½ãã§ã™ã‹ï¼Ÿç§ã¯ãƒ•ãƒ©ãƒ³ã‚¹ã®æ–™ç†ãŒå¤§å¥½ãã§ã™ã€‚
+æ—¥æœ¬ã®æ–™ç†ã‚‚大好ãã§ã™ã€‚
+
+食ã¹ç‰©ã‚’食ã¹ã‚‹ã®ãŒå¤§å¥½ãã ã‘ã©ã€ãŠçš¿ã‚’æ´—ã†ã®ãŒå¤§å«Œã„ã§ã™ã€‚
diff --git a/test/rdoc/test.ja.txt b/test/rdoc/test.ja.txt
new file mode 100644
index 0000000000..96e1db93d3
--- /dev/null
+++ b/test/rdoc/test.ja.txt
@@ -0,0 +1,8 @@
+ã“ã‚“ã«ã¡ã¯ï¼
+
+åˆã‚ã¾ã—ã¦ã€‚アーロンã¨ç”³ã—ã¾ã™ã€‚
+
+ã©ã‚“ãªé£Ÿã¹ç‰©ãŒå¥½ãã§ã™ã‹ï¼Ÿç§ã¯ãƒ•ãƒ©ãƒ³ã‚¹ã®æ–™ç†ãŒå¤§å¥½ãã§ã™ã€‚
+æ—¥æœ¬ã®æ–™ç†ã‚‚大好ãã§ã™ã€‚
+
+食ã¹ç‰©ã‚’食ã¹ã‚‹ã®ãŒå¤§å¥½ãã ã‘ã©ã€ãŠçš¿ã‚’æ´—ã†ã®ãŒå¤§å«Œã„ã§ã™ã€‚
diff --git a/test/rdoc/test.txt b/test/rdoc/test.txt
new file mode 100644
index 0000000000..16b14f5da9
--- /dev/null
+++ b/test/rdoc/test.txt
@@ -0,0 +1 @@
+test file
diff --git a/test/rdoc/test_attribute_manager.rb b/test/rdoc/test_attribute_manager.rb
index ee45c0596f..25e8ca5e04 100644
--- a/test/rdoc/test_attribute_manager.rb
+++ b/test/rdoc/test_attribute_manager.rb
@@ -1,37 +1,53 @@
require 'rubygems'
-require 'minitest/unit'
+require 'minitest/autorun'
+require 'rdoc'
+require 'rdoc/markup'
+require 'rdoc/markup/formatter'
require 'rdoc/markup/attribute_manager'
-class TestAttributeManager < MiniTest::Unit::TestCase
+class TestAttributeManager < MiniTest::Unit::TestCase # HACK fix test name
def setup
@am = RDoc::Markup::AttributeManager.new
@klass = RDoc::Markup::AttributeManager
+ @formatter = RDoc::Markup::Formatter.new
+ @formatter.add_tag :BOLD, '<B>', '</B>'
+ @formatter.add_tag :EM, '<EM>', '</EM>'
+ @formatter.add_tag :TT, '<TT>', '</TT>'
end
- def teardown
- silently do
- @klass.const_set(:MATCHING_WORD_PAIRS, {})
- @klass.const_set(:WORD_PAIR_MAP, {})
- @klass.const_set(:HTML_TAGS, {})
- end
+ def test_convert_attrs_ignores_code
+ assert_equal 'foo <TT>__send__</TT> bar', output('foo <code>__send__</code> bar')
+ end
+
+ def test_convert_attrs_ignores_tt
+ assert_equal 'foo <TT>__send__</TT> bar', output('foo <tt>__send__</tt> bar')
+ end
+
+ def test_convert_attrs_preserves_double
+ assert_equal 'foo.__send__ :bar', output('foo.__send__ :bar')
+ assert_equal 'use __FILE__ to', output('use __FILE__ to')
+ end
+
+ def test_convert_attrs_does_not_ignore_after_tt
+ assert_equal 'the <TT>IF:</TT><EM>key</EM> directive', output('the <tt>IF:</tt>_key_ directive')
end
def test_initial_word_pairs
- word_pairs = @klass::MATCHING_WORD_PAIRS
+ word_pairs = @am.matching_word_pairs
assert word_pairs.is_a?(Hash)
assert_equal(3, word_pairs.size)
end
def test_initial_html
- html_tags = @klass::HTML_TAGS
+ html_tags = @am.html_tags
assert html_tags.is_a?(Hash)
assert_equal(5, html_tags.size)
end
def test_add_matching_word_pair
@am.add_word_pair("x","x", :TEST)
- word_pairs = @klass::MATCHING_WORD_PAIRS
+ word_pairs = @am.matching_word_pairs
assert_equal(4,word_pairs.size)
assert(word_pairs.has_key?("x"))
end
@@ -44,33 +60,61 @@ class TestAttributeManager < MiniTest::Unit::TestCase
def test_add_word_pair_map
@am.add_word_pair("x", "y", :TEST)
- word_pair_map = @klass::WORD_PAIR_MAP
+ word_pair_map = @am.word_pair_map
assert_equal(1,word_pair_map.size)
assert_equal(word_pair_map. keys.first.source, "(x)(\\S+)(y)")
end
def test_add_html_tag
@am.add_html("Test", :TEST)
- tags = @klass::HTML_TAGS
+ tags = @am.html_tags
assert_equal(6, tags.size)
assert(tags.has_key?("test"))
end
def test_add_special
@am.add_special("WikiWord", :WIKIWORD)
- specials = @klass::SPECIAL
+ specials = @am.special
assert_equal(1,specials.size)
assert(specials.has_key?("WikiWord"))
end
- def silently(&block)
- warn_level = $VERBOSE
- $VERBOSE = nil
- result = block.call
- $VERBOSE = warn_level
- result
+ def test_escapes
+ assert_equal '<TT>text</TT>', output('<tt>text</tt>')
+ assert_equal '<tt>text</tt>', output('\\<tt>text</tt>')
+ assert_equal '<tt>', output('\\<tt>')
+ assert_equal '<TT><tt></TT>', output('<tt>\\<tt></tt>')
+ assert_equal '<TT>\\<tt></TT>', output('<tt>\\\\<tt></tt>')
+ assert_equal '<B>text</B>', output('*text*')
+ assert_equal '*text*', output('\\*text*')
+ assert_equal '\\', output('\\')
+ assert_equal '\\text', output('\\text')
+ assert_equal '\\\\text', output('\\\\text')
+ assert_equal 'text \\ text', output('text \\ text')
+
+ assert_equal 'and <TT>\\s</TT> matches space',
+ output('and <tt>\\s</tt> matches space')
+ assert_equal 'use <TT><tt>text</TT></tt> for code',
+ output('use <tt>\\<tt>text</tt></tt> for code')
+ assert_equal 'use <TT><tt>text</tt></TT> for code',
+ output('use <tt>\\<tt>text\\</tt></tt> for code')
+ assert_equal 'use <tt><tt>text</tt></tt> for code',
+ output('use \\<tt>\\<tt>text</tt></tt> for code')
+ assert_equal 'use <tt><TT>text</TT></tt> for code',
+ output('use \\<tt><tt>text</tt></tt> for code')
+ assert_equal 'use <TT>+text+</TT> for code',
+ output('use <tt>\\+text+</tt> for code')
+ assert_equal 'use <tt><TT>text</TT></tt> for code',
+ output('use \\<tt>+text+</tt> for code')
+ assert_equal 'illegal <tag>not</tag> changed',
+ output('illegal <tag>not</tag> changed')
+ assert_equal 'unhandled <p>tag</p> unchanged',
+ output('unhandled <p>tag</p> unchanged')
+ end
+
+ def output str
+ @formatter.convert_flow @am.flow str
end
end
-MiniTest::Unit.autorun
diff --git a/test/rdoc/test_rdoc_alias.rb b/test/rdoc/test_rdoc_alias.rb
new file mode 100644
index 0000000000..ff499af962
--- /dev/null
+++ b/test/rdoc/test_rdoc_alias.rb
@@ -0,0 +1,13 @@
+require File.expand_path '../xref_test_case', __FILE__
+
+class TestRDocAlias < XrefTestCase
+
+ def test_to_s
+ a = RDoc::Alias.new nil, 'a', 'b', ''
+ a.parent = @c2
+
+ assert_equal 'alias: b -> #a in: RDoc::NormalClass C2 < Object', a.to_s
+ end
+
+end
+
diff --git a/test/rdoc/test_rdoc_any_method.rb b/test/rdoc/test_rdoc_any_method.rb
new file mode 100644
index 0000000000..c0feccef95
--- /dev/null
+++ b/test/rdoc/test_rdoc_any_method.rb
@@ -0,0 +1,263 @@
+require File.expand_path '../xref_test_case', __FILE__
+require 'rdoc/code_objects'
+require 'rdoc/generator/markup'
+
+class RDocAnyMethodTest < XrefTestCase
+
+ def test_aref
+ m = RDoc::AnyMethod.new nil, 'method?'
+
+ assert_equal 'method-i-method-3F', m.aref
+
+ m.singleton = true
+
+ assert_equal 'method-c-method-3F', m.aref
+ end
+
+ def test_arglists
+ m = RDoc::AnyMethod.new nil, 'method'
+
+ assert_nil m.arglists
+
+ m.params = "(a, b)"
+ m.block_params = "c, d"
+
+ assert_equal "method(a, b) { |c, d| ... }", m.arglists
+
+ call_seq = <<-SEQ
+method(a) { |c| ... }
+method(a, b) { |c, d| ... }
+ SEQ
+
+ m.call_seq = call_seq.dup
+
+ assert_equal call_seq, m.arglists
+ end
+
+ def test_c_function
+ @c1_m.c_function = 'my_c1_m'
+
+ assert_equal 'my_c1_m', @c1_m.c_function
+ end
+
+ def test_full_name
+ assert_equal 'C1::m', @c1.method_list.first.full_name
+ end
+
+ def test_markup_code
+ tokens = [
+ RDoc::RubyToken::TkCONSTANT. new(0, 0, 0, 'CONSTANT'),
+ RDoc::RubyToken::TkDEF. new(0, 0, 0, 'KW'),
+ RDoc::RubyToken::TkIVAR. new(0, 0, 0, 'IVAR'),
+ RDoc::RubyToken::TkOp. new(0, 0, 0, 'Op'),
+ RDoc::RubyToken::TkId. new(0, 0, 0, 'Id'),
+ RDoc::RubyToken::TkNode. new(0, 0, 0, 'Node'),
+ RDoc::RubyToken::TkCOMMENT. new(0, 0, 0, 'COMMENT'),
+ RDoc::RubyToken::TkREGEXP. new(0, 0, 0, 'REGEXP'),
+ RDoc::RubyToken::TkSTRING. new(0, 0, 0, 'STRING'),
+ RDoc::RubyToken::TkVal. new(0, 0, 0, 'Val'),
+ RDoc::RubyToken::TkBACKSLASH.new(0, 0, 0, '\\'),
+ ]
+
+ @c2_a.collect_tokens
+ @c2_a.add_tokens(*tokens)
+
+ expected = [
+ '<span class="ruby-constant">CONSTANT</span>',
+ '<span class="ruby-keyword">KW</span>',
+ '<span class="ruby-ivar">IVAR</span>',
+ '<span class="ruby-operator">Op</span>',
+ '<span class="ruby-identifier">Id</span>',
+ '<span class="ruby-node">Node</span>',
+ '<span class="ruby-comment">COMMENT</span>',
+ '<span class="ruby-regexp">REGEXP</span>',
+ '<span class="ruby-string">STRING</span>',
+ '<span class="ruby-value">Val</span>',
+ '\\'
+ ].join
+
+ assert_equal expected, @c2_a.markup_code
+ end
+
+ def test_markup_code_empty
+ assert_equal '', @c2_a.markup_code
+ end
+
+ def test_marshal_dump
+ top_level = RDoc::TopLevel.new 'file.rb'
+ m = RDoc::AnyMethod.new nil, 'method'
+ m.block_params = 'some_block'
+ m.call_seq = 'call_seq'
+ m.comment = 'this is a comment'
+ m.params = 'param'
+ m.record_location top_level
+
+ cm = RDoc::ClassModule.new 'Klass'
+ cm.add_method m
+
+ al = RDoc::Alias.new nil, 'method', 'aliased', 'alias comment'
+ al_m = m.add_alias al, cm
+
+ loaded = Marshal.load Marshal.dump m
+
+ comment = RDoc::Markup::Document.new(
+ RDoc::Markup::Paragraph.new('this is a comment'))
+
+ assert_equal m, loaded
+
+ assert_equal [al_m], loaded.aliases
+ assert_equal 'some_block', loaded.block_params
+ assert_equal 'call_seq', loaded.call_seq
+ assert_equal comment, loaded.comment
+ assert_equal top_level, loaded.file
+ assert_equal 'Klass#method', loaded.full_name
+ assert_equal 'method', loaded.name
+ assert_equal 'param', loaded.params
+ assert_equal nil, loaded.singleton # defaults to nil
+ assert_equal :public, loaded.visibility
+ end
+
+ def test_marshal_load
+ instance_method = Marshal.load Marshal.dump(@c1.method_list.last)
+
+ assert_equal 'C1#m', instance_method.full_name
+ assert_equal 'C1', instance_method.parent_name
+ assert_equal '(foo)', instance_method.params
+
+ aliased_method = Marshal.load Marshal.dump(@c2.method_list.last)
+
+ assert_equal 'C2#a', aliased_method.full_name
+ assert_equal 'C2', aliased_method.parent_name
+ assert_equal '()', aliased_method.params
+
+ class_method = Marshal.load Marshal.dump(@c1.method_list.first)
+
+ assert_equal 'C1::m', class_method.full_name
+ assert_equal 'C1', class_method.parent_name
+ assert_equal '()', class_method.params
+ end
+
+ def test_marshal_load_version_0
+ m = RDoc::AnyMethod.new nil, 'method'
+ cm = RDoc::ClassModule.new 'Klass'
+ cm.add_method m
+ al = RDoc::Alias.new nil, 'method', 'aliased', 'alias comment'
+ al_m = m.add_alias al, cm
+
+ loaded = Marshal.load "\x04\bU:\x14RDoc::AnyMethod[\x0Fi\x00I" \
+ "\"\vmethod\x06:\x06EF\"\x11Klass#method0:\vpublic" \
+ "o:\eRDoc::Markup::Document\x06:\v@parts[\x06" \
+ "o:\x1CRDoc::Markup::Paragraph\x06;\t[\x06I" \
+ "\"\x16this is a comment\x06;\x06FI" \
+ "\"\rcall_seq\x06;\x06FI\"\x0Fsome_block\x06;\x06F" \
+ "[\x06[\aI\"\faliased\x06;\x06Fo;\b\x06;\t[\x06" \
+ "o;\n\x06;\t[\x06I\"\x12alias comment\x06;\x06FI" \
+ "\"\nparam\x06;\x06F"
+
+ comment = RDoc::Markup::Document.new(
+ RDoc::Markup::Paragraph.new('this is a comment'))
+
+ assert_equal m, loaded
+
+ assert_equal [al_m], loaded.aliases
+ assert_equal 'some_block', loaded.block_params
+ assert_equal 'call_seq', loaded.call_seq
+ assert_equal comment, loaded.comment
+ assert_equal 'Klass#method', loaded.full_name
+ assert_equal 'method', loaded.name
+ assert_equal 'param', loaded.params
+ assert_equal nil, loaded.singleton # defaults to nil
+ assert_equal :public, loaded.visibility
+ assert_equal nil, loaded.file
+ end
+
+ def test_name
+ m = RDoc::AnyMethod.new nil, nil
+
+ assert_nil m.name
+ end
+
+ def test_param_list_block_params
+ m = RDoc::AnyMethod.new nil, 'method'
+ m.parent = @c1
+
+ m.block_params = 'c, d'
+
+ assert_equal %w[c d], m.param_list
+ end
+
+ def test_param_list_call_seq
+ m = RDoc::AnyMethod.new nil, 'method'
+ m.parent = @c1
+
+ call_seq = <<-SEQ
+method(a) { |c| ... }
+method(a, b) { |c, d| ... }
+ SEQ
+
+ m.call_seq = call_seq
+
+ assert_equal %w[a b c d], m.param_list
+ end
+
+ def test_param_list_params
+ m = RDoc::AnyMethod.new nil, 'method'
+ m.parent = @c1
+
+ m.params = '(a, b)'
+
+ assert_equal %w[a b], m.param_list
+ end
+
+ def test_param_list_params_block_params
+ m = RDoc::AnyMethod.new nil, 'method'
+ m.parent = @c1
+
+ m.params = '(a, b)'
+ m.block_params = 'c, d'
+
+ assert_equal %w[a b c d], m.param_list
+ end
+
+ def test_param_seq
+ m = RDoc::AnyMethod.new nil, 'method'
+ m.parent = @c1
+ m.params = 'a'
+
+ assert_equal '(a)', m.param_seq
+
+ m.params = '(a)'
+
+ assert_equal '(a)', m.param_seq
+
+ m.params = "(a,\n b)"
+
+ assert_equal '(a, b)', m.param_seq
+
+ m.block_params = "c,\n d"
+
+ assert_equal '(a, b) { |c, d| ... }', m.param_seq
+ end
+
+ def test_param_seq_call_seq
+ m = RDoc::AnyMethod.new nil, 'method'
+ m.parent = @c1
+
+ call_seq = <<-SEQ
+method(a) { |c| ... }
+method(a, b) { |c, d| ... }
+ SEQ
+
+ m.call_seq = call_seq
+
+ assert_equal '(a, b) { |c, d| }', m.param_seq
+
+ end
+
+ def test_parent_name
+ assert_equal 'C1', @c1.method_list.first.parent_name
+ assert_equal 'C1', @c1.method_list.last.parent_name
+ end
+
+end
+
diff --git a/test/rdoc/test_rdoc_attr.rb b/test/rdoc/test_rdoc_attr.rb
new file mode 100644
index 0000000000..b69d8c6499
--- /dev/null
+++ b/test/rdoc/test_rdoc_attr.rb
@@ -0,0 +1,123 @@
+require 'rubygems'
+require 'minitest/autorun'
+require 'rdoc/rdoc'
+
+class TestRDocAttr < MiniTest::Unit::TestCase
+
+ def setup
+ @a = RDoc::Attr.new nil, 'attr', 'RW', ''
+ end
+
+ def test_aref
+ m = RDoc::Attr.new nil, 'attr', 'RW', nil
+
+ assert_equal 'attribute-i-attr', m.aref
+ end
+
+ def test_arglists
+ assert_nil @a.arglists
+ end
+
+ def test_block_params
+ assert_nil @a.block_params
+ end
+
+ def test_call_seq
+ assert_nil @a.call_seq
+ end
+
+ def test_definition
+ assert_equal 'attr_accessor', @a.definition
+
+ @a.rw = 'R'
+
+ assert_equal 'attr_reader', @a.definition
+
+ @a.rw = 'W'
+
+ assert_equal 'attr_writer', @a.definition
+ end
+
+ def test_full_name
+ assert_equal '(unknown)#attr', @a.full_name
+ end
+
+ def test_marshal_dump
+ tl = RDoc::TopLevel.new 'file.rb'
+
+ @a.comment = 'this is a comment'
+ @a.record_location tl
+
+ cm = RDoc::ClassModule.new 'Klass'
+ cm.add_attribute @a
+
+ loaded = Marshal.load Marshal.dump @a
+
+ assert_equal @a, loaded
+
+ comment = RDoc::Markup::Document.new(
+ RDoc::Markup::Paragraph.new('this is a comment'))
+
+ assert_equal comment, loaded.comment
+ assert_equal 'file.rb', loaded.file.relative_name
+ assert_equal 'Klass#attr', loaded.full_name
+ assert_equal 'attr', loaded.name
+ assert_equal 'RW', loaded.rw
+ assert_equal false, loaded.singleton
+ assert_equal :public, loaded.visibility
+
+ @a.rw = 'R'
+ @a.singleton = true
+ @a.visibility = :protected
+
+ loaded = Marshal.load Marshal.dump @a
+
+ assert_equal @a, loaded
+
+ assert_equal comment, loaded.comment
+ assert_equal 'Klass::attr', loaded.full_name
+ assert_equal 'attr', loaded.name
+ assert_equal 'R', loaded.rw
+ assert_equal true, loaded.singleton
+ assert_equal :protected, loaded.visibility
+ end
+
+ def test_marshal_load_version_1
+ data = "\x04\bU:\x0FRDoc::Attr[\fi\x06I\"\tattr\x06:\x06EF" \
+ "\"\x0FKlass#attrI\"\aRW\x06;\x06F:\vpublic" \
+ "o:\eRDoc::Markup::Document\x06:\v@parts[\x06" \
+ "o:\x1CRDoc::Markup::Paragraph\x06;\t[\x06I" \
+ "\"\x16this is a comment\x06;\x06FF"
+
+ loaded = Marshal.load data
+
+ comment = RDoc::Markup::Document.new(
+ RDoc::Markup::Paragraph.new('this is a comment'))
+
+ assert_equal comment, loaded.comment
+ assert_equal 'Klass#attr', loaded.full_name
+ assert_equal 'attr', loaded.name
+ assert_equal 'RW', loaded.rw
+ assert_equal false, loaded.singleton
+ assert_equal :public, loaded.visibility
+
+ assert_equal nil, loaded.file # version 2
+ end
+
+ def test_params
+ assert_nil @a.params
+ end
+
+ def test_singleton
+ refute @a.singleton
+ end
+
+ def test_type
+ assert_equal 'instance', @a.type
+
+ @a.singleton = true
+ assert_equal 'class', @a.type
+ end
+
+end
+
diff --git a/test/rdoc/test_rdoc_class_module.rb b/test/rdoc/test_rdoc_class_module.rb
new file mode 100644
index 0000000000..7d32a91580
--- /dev/null
+++ b/test/rdoc/test_rdoc_class_module.rb
@@ -0,0 +1,718 @@
+require 'pp'
+require File.expand_path '../xref_test_case', __FILE__
+
+class TestRDocClassModule < XrefTestCase
+
+ def setup
+ super
+
+ @RM = RDoc::Markup
+ end
+
+ def mu_pp obj
+ s = ''
+ s = PP.pp obj, s
+ s.force_encoding Encoding.default_external if defined? Encoding
+ s.chomp
+ end
+
+ def test_add_comment
+ tl1 = RDoc::TopLevel.new 'one.rb'
+ tl2 = RDoc::TopLevel.new 'two.rb'
+ tl3 = RDoc::TopLevel.new 'three.rb'
+
+ cm = RDoc::ClassModule.new 'Klass'
+ cm.add_comment '# comment 1', tl1
+
+ assert_equal [['comment 1', tl1]], cm.comment_location
+ assert_equal 'comment 1', cm.comment
+
+ cm.add_comment '# comment 2', tl2
+
+ assert_equal [['comment 1', tl1], ['comment 2', tl2]], cm.comment_location
+ assert_equal "comment 1\n---\ncomment 2", cm.comment
+
+ cm.add_comment "# * comment 3", tl3
+
+ assert_equal [['comment 1', tl1],
+ ['comment 2', tl2],
+ ['* comment 3', tl3]], cm.comment_location
+ assert_equal "comment 1\n---\ncomment 2\n---\n* comment 3", cm.comment
+ end
+
+ def test_add_comment_stopdoc
+ tl = RDoc::TopLevel.new 'file.rb'
+
+ cm = RDoc::ClassModule.new 'Klass'
+ cm.stop_doc
+
+ cm.add_comment '# comment 1', tl
+
+ assert_empty cm.comment
+ end
+
+ def test_ancestors
+ assert_equal [@parent], @child.ancestors
+ end
+
+ def test_comment_equals
+ cm = RDoc::ClassModule.new 'Klass'
+ cm.comment = '# comment 1'
+
+ assert_equal 'comment 1', cm.comment
+
+ cm.comment = '# comment 2'
+
+ assert_equal "comment 1\n---\ncomment 2", cm.comment
+
+ cm.comment = "# * comment 3"
+
+ assert_equal "comment 1\n---\ncomment 2\n---\n* comment 3", cm.comment
+ end
+
+ def test_each_ancestor
+ ancestors = []
+
+ @child.each_ancestor do |mod|
+ ancestors << mod
+ end
+
+ assert_equal [@parent], ancestors
+ end
+
+ # handle making a short module alias of yourself
+
+ def test_find_class_named
+ @c2.classes_hash['C2'] = @c2
+
+ assert_nil @c2.find_class_named('C1')
+ end
+
+ def test_from_module_comment
+ tl = RDoc::TopLevel.new 'file.rb'
+ klass = tl.add_class RDoc::NormalModule, 'Klass'
+ klass.add_comment 'really a class', tl
+
+ klass = RDoc::ClassModule.from_module RDoc::NormalClass, klass
+
+ assert_equal [['really a class', tl]], klass.comment_location
+ end
+
+ def test_marshal_dump
+ tl = RDoc::TopLevel.new 'file.rb'
+
+ ns = tl.add_module RDoc::NormalModule, 'Namespace'
+
+ cm = ns.add_class RDoc::NormalClass, 'Klass', 'Super'
+ cm.record_location tl
+
+ a1 = RDoc::Attr.new nil, 'a1', 'RW', ''
+ a1.record_location tl
+ a2 = RDoc::Attr.new nil, 'a2', 'RW', '', true
+ a2.record_location tl
+
+ m1 = RDoc::AnyMethod.new nil, 'm1'
+ m1.record_location tl
+
+ c1 = RDoc::Constant.new 'C1', nil, ''
+ c1.record_location tl
+
+ i1 = RDoc::Include.new 'I1', ''
+ i1.record_location tl
+
+ cm.add_attribute a1
+ cm.add_attribute a2
+ cm.add_method m1
+ cm.add_constant c1
+ cm.add_include i1
+ cm.add_comment 'this is a comment', tl
+
+ loaded = Marshal.load Marshal.dump cm
+
+ assert_equal cm, loaded
+
+ inner = RDoc::Markup::Document.new(
+ RDoc::Markup::Paragraph.new('this is a comment'))
+ inner.file = tl.absolute_name
+
+ comment = RDoc::Markup::Document.new inner
+
+ assert_equal [a2, a1], loaded.attributes.sort
+ assert_equal comment, loaded.comment
+ assert_equal [c1], loaded.constants
+ assert_equal 'Namespace::Klass', loaded.full_name
+ assert_equal [i1], loaded.includes
+ assert_equal [m1], loaded.method_list
+ assert_equal 'Klass', loaded.name
+ assert_equal 'Super', loaded.superclass
+
+ assert_equal tl, loaded.attributes.first.file
+
+ assert_equal tl, loaded.constants.first.file
+
+ assert_equal tl, loaded.includes.first.file
+
+ assert_equal tl, loaded.method_list.first.file
+ end
+
+ def test_marshal_load_version_0
+ tl = RDoc::TopLevel.new 'file.rb'
+ ns = tl.add_module RDoc::NormalModule, 'Namespace'
+ cm = ns.add_class RDoc::NormalClass, 'Klass', 'Super'
+
+ a = RDoc::Attr.new(nil, 'a1', 'RW', '')
+ m = RDoc::AnyMethod.new(nil, 'm1')
+ c = RDoc::Constant.new('C1', nil, '')
+ i = RDoc::Include.new('I1', '')
+
+ cm.add_attribute a
+ cm.add_method m
+ cm.add_constant c
+ cm.add_include i
+ cm.add_comment 'this is a comment', tl
+
+ loaded = Marshal.load "\x04\bU:\x16RDoc::NormalClass[\x0Ei\x00\"\nKlass" \
+ "\"\x15Namespace::KlassI\"\nSuper\x06:\x06EF" \
+ "o:\eRDoc::Markup::Document\x06:\v@parts[\x06" \
+ "o:\x1CRDoc::Markup::Paragraph\x06;\b[\x06I" \
+ "\"\x16this is a comment\x06;\x06F[\x06[\aI" \
+ "\"\aa1\x06;\x06FI\"\aRW\x06;\x06F[\x06[\aI" \
+ "\"\aC1\x06;\x06Fo;\a\x06;\b[\x00[\x06[\aI" \
+ "\"\aI1\x06;\x06Fo;\a\x06;\b[\x00[\a[\aI" \
+ "\"\nclass\x06;\x06F[\b[\a:\vpublic[\x00[\a" \
+ ":\x0Eprotected[\x00[\a:\fprivate[\x00[\aI" \
+ "\"\rinstance\x06;\x06F[\b[\a;\n[\x06I" \
+ "\"\am1\x06;\x06F[\a;\v[\x00[\a;\f[\x00"
+
+ assert_equal cm, loaded
+
+ comment = RDoc::Markup::Document.new(
+ RDoc::Markup::Paragraph.new('this is a comment'))
+
+ assert_equal [a], loaded.attributes
+ assert_equal comment, loaded.comment
+ assert_equal [c], loaded.constants
+ assert_equal 'Namespace::Klass', loaded.full_name
+ assert_equal [i], loaded.includes
+ assert_equal [m], loaded.method_list
+ assert_equal 'Klass', loaded.name
+ assert_equal 'Super', loaded.superclass
+ assert_equal nil, loaded.file
+ end
+
+ def test_merge_attributes
+ tl1 = RDoc::TopLevel.new 'one.rb'
+ tl2 = RDoc::TopLevel.new 'two.rb'
+
+ cm1 = RDoc::ClassModule.new 'Klass'
+
+ attr = cm1.add_attribute RDoc::Attr.new(nil, 'a1', 'RW', '')
+ attr.record_location tl1
+ attr = cm1.add_attribute RDoc::Attr.new(nil, 'a3', 'R', '')
+ attr.record_location tl1
+ attr = cm1.add_attribute RDoc::Attr.new(nil, 'a4', 'R', '')
+ attr.record_location tl1
+
+ cm2 = RDoc::ClassModule.new 'Klass'
+ # TODO allow merging when comment == ''
+ cm2.instance_variable_set :@comment, @RM::Document.new
+
+ attr = cm2.add_attribute RDoc::Attr.new(nil, 'a2', 'RW', '')
+ attr.record_location tl2
+ attr = cm2.add_attribute RDoc::Attr.new(nil, 'a3', 'W', '')
+ attr.record_location tl1
+ attr = cm2.add_attribute RDoc::Attr.new(nil, 'a4', 'W', '')
+ attr.record_location tl1
+
+ cm1.merge cm2
+
+ expected = [
+ RDoc::Attr.new(nil, 'a2', 'RW', ''),
+ RDoc::Attr.new(nil, 'a3', 'W', ''),
+ RDoc::Attr.new(nil, 'a4', 'W', ''),
+ ]
+
+ expected.each do |a| a.parent = cm1 end
+ assert_equal expected, cm1.attributes.sort
+ end
+
+ def test_merge_attributes_version_0
+ tl1 = RDoc::TopLevel.new 'one.rb'
+
+ cm1 = RDoc::ClassModule.new 'Klass'
+
+ attr = cm1.add_attribute RDoc::Attr.new(nil, 'a1', 'RW', '')
+ attr.record_location tl1
+ attr = cm1.add_attribute RDoc::Attr.new(nil, 'a3', 'R', '')
+ attr.record_location tl1
+ attr = cm1.add_attribute RDoc::Attr.new(nil, 'a4', 'R', '')
+ attr.record_location tl1
+
+ cm2 = RDoc::ClassModule.new 'Klass'
+ # TODO allow merging when comment == ''
+ cm2.instance_variable_set :@comment, @RM::Document.new
+
+ attr = cm2.add_attribute RDoc::Attr.new(nil, 'a2', 'RW', '')
+ attr = cm2.add_attribute RDoc::Attr.new(nil, 'a3', 'W', '')
+ attr = cm2.add_attribute RDoc::Attr.new(nil, 'a4', 'W', '')
+
+ cm1.merge cm2
+
+ expected = [
+ RDoc::Attr.new(nil, 'a1', 'RW', ''),
+ RDoc::Attr.new(nil, 'a2', 'RW', ''),
+ RDoc::Attr.new(nil, 'a3', 'RW', ''),
+ RDoc::Attr.new(nil, 'a4', 'RW', ''),
+ ]
+
+ expected.each do |a| a.parent = cm1 end
+ assert_equal expected, cm1.attributes.sort
+ end
+
+ def test_merge_collections_drop
+ tl = RDoc::TopLevel.new 'file'
+
+ cm1 = RDoc::ClassModule.new 'C'
+ cm1.record_location tl
+
+ const = cm1.add_constant RDoc::Constant.new('CONST', nil, nil)
+ const.record_location tl
+
+ cm2 = RDoc::ClassModule.new 'C'
+ cm2.record_location tl
+
+ added = []
+ removed = []
+
+ cm1.merge_collections cm1.constants, cm2.constants, cm2.in_files do |add, c|
+ if add then
+ added << c
+ else
+ removed << c
+ end
+ end
+
+ assert_empty added
+ assert_equal [const], removed
+ end
+
+ def test_merge_comment
+ tl1 = RDoc::TopLevel.new 'one.rb'
+ tl2 = RDoc::TopLevel.new 'two.rb'
+
+ cm1 = RDoc::ClassModule.new 'Klass'
+ cm1.add_comment 'klass 1', tl1
+
+ cm2 = RDoc::ClassModule.new 'Klass'
+ cm2.add_comment 'klass 2', tl2
+ cm2.add_comment 'klass 3', tl1
+
+ cm2 = Marshal.load Marshal.dump cm2
+
+ cm1.merge cm2
+
+ inner1 = @RM::Document.new @RM::Paragraph.new 'klass 3'
+ inner1.file = 'one.rb'
+ inner2 = @RM::Document.new @RM::Paragraph.new 'klass 2'
+ inner2.file = 'two.rb'
+
+ expected = @RM::Document.new inner2, inner1
+
+ assert_equal expected, cm1.comment
+ end
+
+ def test_merge_comment_version_0
+ tl = RDoc::TopLevel.new 'file.rb'
+
+ cm1 = RDoc::ClassModule.new 'Klass'
+ cm1.add_comment 'klass 1', tl
+
+ cm2 = RDoc::ClassModule.new 'Klass'
+
+ cm2.instance_variable_set(:@comment,
+ @RM::Document.new(
+ @RM::Paragraph.new('klass 2')))
+ cm2.instance_variable_set :@comment_location, @RM::Document.new(cm2.comment)
+
+ cm1.merge cm2
+
+ inner = @RM::Document.new @RM::Paragraph.new 'klass 1'
+ inner.file = 'file.rb'
+
+ expected = @RM::Document.new \
+ inner,
+ @RM::Document.new(@RM::Paragraph.new('klass 2'))
+
+ assert_equal expected, cm1.comment
+ end
+
+ def test_merge_constants
+ tl1 = RDoc::TopLevel.new 'one.rb'
+ tl2 = RDoc::TopLevel.new 'two.rb'
+
+ cm1 = RDoc::ClassModule.new 'Klass'
+
+ const = cm1.add_constant RDoc::Constant.new('C1', nil, 'one')
+ const.record_location tl1
+ const = cm1.add_constant RDoc::Constant.new('C3', nil, 'one')
+ const.record_location tl1
+
+ cm2 = RDoc::ClassModule.new 'Klass'
+ cm2.instance_variable_set :@comment, @RM::Document.new
+
+ const = cm2.add_constant RDoc::Constant.new('C2', nil, 'two')
+ const.record_location tl2
+ const = cm2.add_constant RDoc::Constant.new('C3', nil, 'one')
+ const.record_location tl1
+ const = cm2.add_constant RDoc::Constant.new('C4', nil, 'one')
+ const.record_location tl1
+
+ cm1.merge cm2
+
+ expected = [
+ RDoc::Constant.new('C2', nil, 'two'),
+ RDoc::Constant.new('C3', nil, 'one'),
+ RDoc::Constant.new('C4', nil, 'one'),
+ ]
+
+ expected.each do |a| a.parent = cm1 end
+
+ assert_equal expected, cm1.constants.sort
+ end
+
+ def test_merge_constants_version_0
+ tl1 = RDoc::TopLevel.new 'one.rb'
+
+ cm1 = RDoc::ClassModule.new 'Klass'
+
+ const = cm1.add_constant RDoc::Constant.new('C1', nil, 'one')
+ const.record_location tl1
+ const = cm1.add_constant RDoc::Constant.new('C3', nil, 'one')
+ const.record_location tl1
+
+ cm2 = RDoc::ClassModule.new 'Klass'
+ cm2.instance_variable_set :@comment, @RM::Document.new
+
+ const = cm2.add_constant RDoc::Constant.new('C2', nil, 'two')
+ const = cm2.add_constant RDoc::Constant.new('C3', nil, 'two')
+ const = cm2.add_constant RDoc::Constant.new('C4', nil, 'two')
+
+ cm1.merge cm2
+
+ expected = [
+ RDoc::Constant.new('C1', nil, 'one'),
+ RDoc::Constant.new('C2', nil, 'two'),
+ RDoc::Constant.new('C3', nil, 'one'),
+ RDoc::Constant.new('C4', nil, 'two'),
+ ]
+
+ expected.each do |a| a.parent = cm1 end
+
+ assert_equal expected, cm1.constants.sort
+ end
+
+ def test_merge_includes
+ tl1 = RDoc::TopLevel.new 'one.rb'
+ tl2 = RDoc::TopLevel.new 'two.rb'
+
+ cm1 = RDoc::ClassModule.new 'Klass'
+
+ incl = cm1.add_include RDoc::Include.new('I1', 'one')
+ incl.record_location tl1
+ incl = cm1.add_include RDoc::Include.new('I3', 'one')
+ incl.record_location tl1
+
+ cm2 = RDoc::ClassModule.new 'Klass'
+ cm2.instance_variable_set :@comment, @RM::Document.new
+
+ incl = cm2.add_include RDoc::Include.new('I2', 'two')
+ incl.record_location tl2
+ incl = cm2.add_include RDoc::Include.new('I3', 'one')
+ incl.record_location tl1
+ incl = cm2.add_include RDoc::Include.new('I4', 'one')
+ incl.record_location tl1
+
+ cm1.merge cm2
+
+ expected = [
+ RDoc::Include.new('I2', 'two'),
+ RDoc::Include.new('I3', 'one'),
+ RDoc::Include.new('I4', 'one'),
+ ]
+
+ expected.each do |a| a.parent = cm1 end
+
+ assert_equal expected, cm1.includes.sort
+ end
+
+ def test_merge_includes_version_0
+ tl1 = RDoc::TopLevel.new 'one.rb'
+
+ cm1 = RDoc::ClassModule.new 'Klass'
+
+ incl = cm1.add_include RDoc::Include.new('I1', 'one')
+ incl.record_location tl1
+ incl = cm1.add_include RDoc::Include.new('I3', 'one')
+ incl.record_location tl1
+
+ cm2 = RDoc::ClassModule.new 'Klass'
+ cm2.instance_variable_set :@comment, @RM::Document.new
+
+ incl = cm2.add_include RDoc::Include.new('I2', 'two')
+ incl = cm2.add_include RDoc::Include.new('I3', 'two')
+ incl = cm2.add_include RDoc::Include.new('I4', 'two')
+
+ cm1.merge cm2
+
+ expected = [
+ RDoc::Include.new('I1', 'one'),
+ RDoc::Include.new('I2', 'two'),
+ RDoc::Include.new('I3', 'one'),
+ RDoc::Include.new('I4', 'two'),
+ ]
+
+ expected.each do |a| a.parent = cm1 end
+
+ assert_equal expected, cm1.includes.sort
+ end
+
+ def test_merge_methods
+ tl1 = RDoc::TopLevel.new 'one.rb'
+ tl2 = RDoc::TopLevel.new 'two.rb'
+
+ cm1 = RDoc::ClassModule.new 'Klass'
+
+ meth = cm1.add_method RDoc::AnyMethod.new(nil, 'm1')
+ meth.record_location tl1
+ meth = cm1.add_method RDoc::AnyMethod.new(nil, 'm3')
+ meth.record_location tl1
+
+ cm2 = RDoc::ClassModule.new 'Klass'
+ cm2.instance_variable_set :@comment, @RM::Document.new
+
+ meth = cm2.add_method RDoc::AnyMethod.new(nil, 'm2')
+ meth.record_location tl2
+ meth = cm2.add_method RDoc::AnyMethod.new(nil, 'm3')
+ meth.record_location tl1
+ meth = cm2.add_method RDoc::AnyMethod.new(nil, 'm4')
+ meth.record_location tl1
+
+ cm1.merge cm2
+
+ expected = [
+ RDoc::AnyMethod.new(nil, 'm2'),
+ RDoc::AnyMethod.new(nil, 'm3'),
+ RDoc::AnyMethod.new(nil, 'm4'),
+ ]
+
+ expected.each do |a| a.parent = cm1 end
+
+ assert_equal expected, cm1.method_list.sort
+ end
+
+ def test_merge_methods_version_0
+ tl1 = RDoc::TopLevel.new 'one.rb'
+
+ cm1 = RDoc::ClassModule.new 'Klass'
+
+ meth = cm1.add_method RDoc::AnyMethod.new(nil, 'm1')
+ meth.record_location tl1
+ meth = cm1.add_method RDoc::AnyMethod.new(nil, 'm3')
+ meth.record_location tl1
+
+ cm2 = RDoc::ClassModule.new 'Klass'
+ cm2.instance_variable_set :@comment, @RM::Document.new
+
+ meth = cm2.add_method RDoc::AnyMethod.new(nil, 'm2')
+ meth = cm2.add_method RDoc::AnyMethod.new(nil, 'm3')
+ meth = cm2.add_method RDoc::AnyMethod.new(nil, 'm4')
+
+ cm1.merge cm2
+
+ expected = [
+ RDoc::AnyMethod.new(nil, 'm1'),
+ RDoc::AnyMethod.new(nil, 'm2'),
+ RDoc::AnyMethod.new(nil, 'm3'),
+ RDoc::AnyMethod.new(nil, 'm4'),
+ ]
+
+ expected.each do |a| a.parent = cm1 end
+
+ assert_equal expected, cm1.method_list.sort
+ end
+
+ def test_parse
+ tl1 = RDoc::TopLevel.new 'one.rb'
+ tl2 = RDoc::TopLevel.new 'two.rb'
+
+ cm = RDoc::ClassModule.new 'Klass'
+ cm.add_comment 'comment 1', tl1
+ cm.add_comment 'comment 2', tl2
+
+ doc1 = @RM::Document.new @RM::Paragraph.new 'comment 1'
+ doc1.file = tl1.absolute_name
+ doc2 = @RM::Document.new @RM::Paragraph.new 'comment 2'
+ doc2.file = tl2.absolute_name
+
+ expected = @RM::Document.new doc1, doc2
+
+ assert_equal expected, cm.parse(cm.comment_location)
+ end
+
+ def test_parse_comment_location
+ tl1 = RDoc::TopLevel.new 'one.rb'
+ tl2 = RDoc::TopLevel.new 'two.rb'
+
+ cm = RDoc::ClassModule.new 'Klass'
+ cm.add_comment 'comment 1', tl1
+ cm.add_comment 'comment 2', tl2
+
+ cm = Marshal.load Marshal.dump cm
+
+ doc1 = @RM::Document.new @RM::Paragraph.new 'comment 1'
+ doc1.file = tl1.absolute_name
+ doc2 = @RM::Document.new @RM::Paragraph.new 'comment 2'
+ doc2.file = tl2.absolute_name
+
+ assert_same cm.comment_location, cm.parse(cm.comment_location)
+ end
+
+ def test_remove_nodoc_children
+ parent = RDoc::ClassModule.new 'A'
+ parent.modules_hash.replace 'B' => true, 'C' => true
+ RDoc::TopLevel.all_modules_hash.replace 'A::B' => true
+
+ parent.classes_hash.replace 'D' => true, 'E' => true
+ RDoc::TopLevel.all_classes_hash.replace 'A::D' => true
+
+ parent.remove_nodoc_children
+
+ assert_equal %w[B], parent.modules_hash.keys
+ assert_equal %w[D], parent.classes_hash.keys
+ end
+
+ def test_superclass
+ assert_equal @c3_h1, @c3_h2.superclass
+ end
+
+ def test_update_aliases_class
+ n1 = @xref_data.add_module RDoc::NormalClass, 'N1'
+ n1_k2 = n1.add_module RDoc::NormalClass, 'N2'
+
+ n1.add_module_alias n1_k2, 'A1', @xref_data
+
+ n1_a1_c = n1.constants.find { |c| c.name == 'A1' }
+ refute_nil n1_a1_c
+ assert_equal n1_k2, n1_a1_c.is_alias_for, 'sanity check'
+
+ n1.update_aliases
+
+ n1_a1_k = @xref_data.find_class_or_module 'N1::A1'
+ refute_nil n1_a1_k
+ assert_equal n1_k2, n1_a1_k.is_alias_for
+ refute_equal n1_k2, n1_a1_k
+
+ assert_equal 1, n1_k2.aliases.length
+ assert_equal n1_a1_k, n1_k2.aliases.first
+
+ assert_equal 'N1::N2', n1_k2.full_name
+ assert_equal 'N1::A1', n1_a1_k.full_name
+ end
+
+ def test_update_aliases_module
+ n1 = @xref_data.add_module RDoc::NormalModule, 'N1'
+ n1_n2 = n1.add_module RDoc::NormalModule, 'N2'
+
+ n1.add_module_alias n1_n2, 'A1', @xref_data
+
+ n1_a1_c = n1.constants.find { |c| c.name == 'A1' }
+ refute_nil n1_a1_c
+ assert_equal n1_n2, n1_a1_c.is_alias_for, 'sanity check'
+
+ n1.update_aliases
+
+ n1_a1_m = @xref_data.find_class_or_module 'N1::A1'
+ refute_nil n1_a1_m
+ assert_equal n1_n2, n1_a1_m.is_alias_for
+ refute_equal n1_n2, n1_a1_m
+
+ assert_equal 1, n1_n2.aliases.length
+ assert_equal n1_a1_m, n1_n2.aliases.first
+
+ assert_equal 'N1::N2', n1_n2.full_name
+ assert_equal 'N1::A1', n1_a1_m.full_name
+ end
+
+ def test_update_aliases_reparent
+ l1 = @xref_data.add_module RDoc::NormalModule, 'L1'
+ l1_l2 = l1.add_module RDoc::NormalModule, 'L2'
+ o1 = @xref_data.add_module RDoc::NormalModule, 'O1'
+
+ o1.add_module_alias l1_l2, 'A1', @xref_data
+
+ o1_a1_c = o1.constants.find { |c| c.name == 'A1' }
+ refute_nil o1_a1_c
+ assert_equal l1_l2, o1_a1_c.is_alias_for
+ refute_equal l1_l2, o1_a1_c
+
+ o1.update_aliases
+
+ o1_a1_m = @xref_data.find_class_or_module 'O1::A1'
+ refute_nil o1_a1_m
+ assert_equal l1_l2, o1_a1_m.is_alias_for
+
+ assert_equal 1, l1_l2.aliases.length
+ assert_equal o1_a1_m, l1_l2.aliases[0]
+
+ assert_equal 'L1::L2', l1_l2.full_name
+ assert_equal 'O1::A1', o1_a1_m.full_name
+ end
+
+ def test_update_includes
+ a = RDoc::Include.new 'M1', nil
+ b = RDoc::Include.new 'M2', nil
+ c = RDoc::Include.new 'C', nil
+
+ @c1.add_include a
+ @c1.add_include b
+ @c1.add_include c
+ @c1.ancestors # cache included modules
+
+ @m1_m2.document_self = nil
+ assert @m1_m2.remove_from_documentation?
+
+ assert RDoc::TopLevel.all_modules_hash.key? @m1_m2.full_name
+ refute RDoc::TopLevel.all_modules_hash[@m1_m2.full_name].nil?
+ RDoc::TopLevel.remove_nodoc RDoc::TopLevel.all_modules_hash
+ refute RDoc::TopLevel.all_modules_hash.key? @m1_m2.full_name
+
+ @c1.update_includes
+
+ assert_equal [a, c], @c1.includes
+ end
+
+ def test_update_includes_with_colons
+ a = RDoc::Include.new 'M1', nil
+ b = RDoc::Include.new 'M1::M2', nil
+ c = RDoc::Include.new 'C', nil
+
+ @c1.add_include a
+ @c1.add_include b
+ @c1.add_include c
+ @c1.ancestors # cache included modules
+
+ @m1_m2.document_self = nil
+ assert @m1_m2.remove_from_documentation?
+
+ assert RDoc::TopLevel.all_modules_hash.key? @m1_m2.full_name
+ refute RDoc::TopLevel.all_modules_hash[@m1_m2.full_name].nil?
+ RDoc::TopLevel.remove_nodoc RDoc::TopLevel.all_modules_hash
+ refute RDoc::TopLevel.all_modules_hash.key? @m1_m2.full_name
+
+ @c1.update_includes
+
+ assert_equal [a, c], @c1.includes
+ end
+
+end
+
diff --git a/test/rdoc/test_rdoc_code_object.rb b/test/rdoc/test_rdoc_code_object.rb
new file mode 100644
index 0000000000..c7a37488cc
--- /dev/null
+++ b/test/rdoc/test_rdoc_code_object.rb
@@ -0,0 +1,290 @@
+# coding: US-ASCII
+
+require 'rubygems'
+require 'minitest/autorun'
+require File.expand_path '../xref_test_case', __FILE__
+require 'rdoc/code_object'
+
+class TestRDocCodeObject < XrefTestCase
+
+ def setup
+ super
+
+ @co = RDoc::CodeObject.new
+ end
+
+ def test_initialize
+ assert @co.document_self, 'document_self'
+ assert @co.document_children, 'document_children'
+ refute @co.force_documentation, 'force_documentation'
+ refute @co.done_documenting, 'done_documenting'
+ refute @co.received_nodoc, 'received_nodoc'
+ assert_equal '', @co.comment, 'comment is empty'
+ end
+
+ def test_comment_equals
+ @co.comment = ''
+
+ assert_equal '', @co.comment
+
+ @co.comment = 'I am a comment'
+
+ assert_equal 'I am a comment', @co.comment
+ end
+
+ def test_comment_equals_document
+ doc = RDoc::Markup::Document.new
+ @co.comment = doc
+
+ @co.comment = ''
+
+ assert_equal doc, @co.comment
+ end
+
+ def test_comment_equals_encoding
+ skip "Encoding not implemented" unless Object.const_defined? :Encoding
+
+ refute_equal Encoding::UTF_8, ''.encoding, 'Encoding sanity check'
+
+ input = 'text'
+ input.force_encoding Encoding::UTF_8
+
+ @co.comment = input
+
+ assert_equal 'text', @co.comment
+ assert_equal Encoding::UTF_8, @co.comment.encoding
+ end
+
+ def test_comment_equals_encoding_blank
+ skip "Encoding not implemented" unless Object.const_defined? :Encoding
+
+ refute_equal Encoding::UTF_8, ''.encoding, 'Encoding sanity check'
+
+ input = ''
+ input.force_encoding Encoding::UTF_8
+
+ @co.comment = input
+
+ assert_equal '', @co.comment
+ assert_equal Encoding::UTF_8, @co.comment.encoding
+ end
+
+ def test_display_eh_document_self
+ assert @co.display?
+
+ @co.document_self = false
+
+ refute @co.display?
+ end
+
+ def test_display_eh_ignore
+ assert @co.display?
+
+ @co.ignore
+
+ refute @co.display?
+
+ @co.stop_doc
+
+ refute @co.display?
+
+ @co.done_documenting = false
+
+ refute @co.display?
+ end
+
+ def test_document_children_equals
+ @co.document_children = false
+ refute @co.document_children
+
+ # TODO this is not true anymore:
+ # test all the nodoc stuff etc...
+ #@c2.document_children = false
+ #assert_empty @c2.classes
+ end
+
+ def test_document_self_equals
+ @co.document_self = false
+ refute @co.document_self
+
+ # TODO this is not true anymore:
+ # test all the nodoc stuff etc...
+ #@c1.document_self = false
+ #assert_empty @c1.method_list
+ end
+
+ def test_documented_eh
+ refute @co.documented?
+
+ @co.comment = 'hi'
+
+ assert @co.documented?
+
+ @co.comment.replace ''
+
+ refute @co.documented?
+
+ @co.document_self = nil # notify :nodoc:
+
+ assert @co.documented?
+ end
+
+ def test_done_documenting
+ # once done_documenting is set, other properties refuse to go to "true"
+ @co.done_documenting = true
+
+ @co.document_self = true
+ refute @co.document_self
+
+ @co.document_children = true
+ refute @co.document_children
+
+ @co.force_documentation = true
+ refute @co.force_documentation
+
+ @co.start_doc
+ refute @co.document_self
+ refute @co.document_children
+
+ # turning done_documenting on
+ # resets others to true
+
+ @co.done_documenting = false
+ assert @co.document_self
+ assert @co.document_children
+ end
+
+ def test_each_parent
+ parents = []
+
+ @parent_m.each_parent do |code_object|
+ parents << code_object
+ end
+
+ assert_equal [@parent, @xref_data], parents
+ end
+
+ def test_file_name
+ assert_equal nil, @co.file_name
+
+ @co.record_location RDoc::TopLevel.new 'lib/file.rb'
+
+ assert_equal 'lib/file.rb', @co.file_name
+ end
+
+ def test_full_name_equals
+ @co.full_name = 'hi'
+
+ assert_equal 'hi', @co.instance_variable_get(:@full_name)
+
+ @co.full_name = nil
+
+ assert_nil @co.instance_variable_get(:@full_name)
+ end
+
+ def test_ignore
+ @co.ignore
+
+ refute @co.document_self
+ refute @co.document_children
+ assert @co.ignored?
+ end
+
+ def test_ignore_eh
+ refute @co.ignored?
+
+ @co.ignore
+
+ assert @co.ignored?
+ end
+
+ def test_line
+ @c1_m.line = 5
+
+ assert_equal 5, @c1_m.line
+ end
+
+ def test_metadata
+ assert_empty @co.metadata
+
+ @co.metadata['markup'] = 'not_rdoc'
+
+ expected = { 'markup' => 'not_rdoc' }
+
+ assert_equal expected, @co.metadata
+
+ assert_equal 'not_rdoc', @co.metadata['markup']
+ end
+
+ def test_offset
+ @c1_m.offset = 5
+
+ assert_equal 5, @c1_m.offset
+ end
+
+ def test_parent_file_name
+ assert_equal '(unknown)', @co.parent_file_name
+ assert_equal 'xref_data.rb', @c1.parent_file_name
+ end
+
+ def test_parent_name
+ assert_equal '(unknown)', @co.parent_name
+ assert_equal 'xref_data.rb', @c1.parent_name
+ assert_equal 'C2', @c2_c3.parent_name
+ end
+
+ def test_received_ndoc
+ @co.document_self = false
+ refute @co.received_nodoc
+
+ @co.document_self = nil
+ assert @co.received_nodoc
+
+ @co.document_self = true
+ end
+
+ def test_record_location
+ @co.record_location @xref_data
+
+ assert_equal 'xref_data.rb', @co.file.relative_name
+ end
+
+ def test_record_location_ignored
+ @co.ignore
+ @co.record_location @xref_data
+
+ refute @co.ignored?
+ end
+
+ def test_start_doc
+ @co.document_self = false
+ @co.document_children = false
+
+ @co.start_doc
+
+ assert @co.document_self
+ assert @co.document_children
+ end
+
+ def test_start_doc_ignored
+ @co.ignore
+
+ @co.start_doc
+
+ assert @co.document_self
+ assert @co.document_children
+ refute @co.ignored?
+ end
+
+ def test_stop_doc
+ @co.document_self = true
+ @co.document_children = true
+
+ @co.stop_doc
+
+ refute @co.document_self
+ refute @co.document_children
+ end
+
+end
+
diff --git a/test/rdoc/test_rdoc_constant.rb b/test/rdoc/test_rdoc_constant.rb
new file mode 100644
index 0000000000..b915f5cc7a
--- /dev/null
+++ b/test/rdoc/test_rdoc_constant.rb
@@ -0,0 +1,15 @@
+require File.expand_path '../xref_test_case', __FILE__
+
+class TestRDocConstant < XrefTestCase
+
+ def setup
+ super
+
+ @const = @c1.constants.first
+ end
+
+ def test_path
+ assert_equal 'C1.html#CONST', @const.path
+ end
+
+end
diff --git a/test/rdoc/test_rdoc_context.rb b/test/rdoc/test_rdoc_context.rb
new file mode 100644
index 0000000000..2fb8ef7bb7
--- /dev/null
+++ b/test/rdoc/test_rdoc_context.rb
@@ -0,0 +1,695 @@
+require 'rubygems'
+require 'minitest/autorun'
+require File.expand_path '../xref_test_case', __FILE__
+
+class TestRDocContext < XrefTestCase
+
+ def setup
+ super
+
+ @context = RDoc::Context.new
+ end
+
+ def test_initialize
+ assert_empty @context.in_files
+ assert_equal 'unknown', @context.name
+ assert_equal '', @context.comment
+ assert_equal nil, @context.parent
+ assert_equal :public, @context.visibility
+ assert_equal 1, @context.sections.length
+ assert_equal nil, @context.temporary_section
+
+ assert_empty @context.classes_hash
+ assert_empty @context.modules_hash
+
+ assert_empty @context.method_list
+ assert_empty @context.attributes
+ assert_empty @context.aliases
+ assert_empty @context.requires
+ assert_empty @context.includes
+ assert_empty @context.constants
+ end
+
+ def test_add_alias
+ as = RDoc::Alias.new nil, 'old_name', 'new_name', 'comment'
+
+ @context.add_alias as
+
+ assert_equal [as], @context.external_aliases
+ assert_equal [as], @context.unmatched_alias_lists['#old_name']
+ end
+
+ def test_add_alias_method_attr
+ top_level = RDoc::TopLevel.new 'file.rb'
+
+ attr = RDoc::Attr.new nil, 'old_name', 'R', ''
+
+ as = RDoc::Alias.new nil, 'old_name', 'new_name', 'comment'
+ as.record_location top_level
+ as.parent = @context
+
+ @context.add_attribute attr
+ @context.add_alias as
+
+ assert_empty @context.aliases
+ assert_empty @context.unmatched_alias_lists
+ assert_equal %w[old_name new_name], @context.attributes.map { |m| m.name }
+
+ new = @context.attributes.last
+ assert_equal top_level, new.file
+ end
+
+ def test_add_alias_method
+ top_level = RDoc::TopLevel.new 'file.rb'
+
+ meth = RDoc::AnyMethod.new nil, 'old_name'
+ meth.singleton = false
+
+ as = RDoc::Alias.new nil, 'old_name', 'new_name', 'comment'
+ as.record_location top_level
+ as.parent = @context
+
+ @context.add_method meth
+ @context.add_alias as
+
+ assert_empty @context.aliases
+ assert_empty @context.unmatched_alias_lists
+ assert_equal %w[old_name new_name], @context.method_list.map { |m| m.name }
+
+ new = @context.method_list.last
+ assert_equal top_level, new.file
+ end
+
+ def test_add_alias_method_singleton
+ meth = RDoc::AnyMethod.new nil, 'old_name'
+ meth.singleton = true
+
+ as = RDoc::Alias.new nil, 'old_name', 'new_name', 'comment'
+ as.singleton = true
+
+ as.parent = @context
+
+ @context.add_method meth
+ @context.add_alias as
+
+ assert_empty @context.aliases
+ assert_empty @context.unmatched_alias_lists
+ assert_equal %w[old_name new_name], @context.method_list.map { |m| m.name }
+
+ assert @context.method_list.last.singleton
+ end
+
+ def test_add_class
+ @c1.add_class RDoc::NormalClass, 'Klass', 'Object'
+
+ assert_includes @c1.classes.map { |k| k.full_name }, 'C1::Klass'
+ assert_includes RDoc::TopLevel.classes.map { |k| k.full_name }, 'C1::Klass'
+ end
+
+ def test_add_class_basic_object
+ skip 'BasicObject is 1.9 only' unless defined?(BasicObject)
+
+ @xref_data.add_class RDoc::NormalClass, 'BasicObject'
+
+ basic = @xref_data.find_module_named 'BasicObject'
+
+ assert_nil basic.superclass
+
+ @c1.add_class RDoc::NormalClass, 'BasicObject'
+
+ basic = @c1.find_module_named 'BasicObject'
+
+ assert_equal 'Object', basic.superclass
+ end
+
+ def test_add_class_object
+ root_class = defined?(BasicObject) ? 'BasicObject' : nil
+
+ @xref_data.add_class RDoc::NormalClass, 'Object'
+
+ object = @xref_data.find_module_named 'Object'
+
+ assert_equal root_class, object.superclass
+
+ @c1.add_class RDoc::NormalClass, 'Object'
+
+ object = @c1.find_module_named 'Object'
+
+ assert_equal 'Object', object.superclass.full_name
+ end
+
+ def test_add_class_singleton
+ @c1.add_class RDoc::NormalClass, 'Klass', 'Object'
+
+ assert_includes @c1.classes.map { |k| k.full_name }, 'C1::Klass'
+ assert_includes RDoc::TopLevel.classes.map { |k| k.full_name }, 'C1::Klass'
+ end
+
+ def test_add_class_superclass
+ @c1.add_class RDoc::NormalClass, 'Klass', 'Object'
+ @c1.add_class RDoc::NormalClass, 'Klass', 'Other'
+ @c1.add_class RDoc::NormalClass, 'Klass', 'Object'
+
+ klass = @c1.find_module_named 'Klass'
+ assert_equal 'Other', klass.superclass
+ end
+
+ def test_add_class_upgrade
+ @c1.add_module RDoc::NormalModule, 'Klass'
+ @c1.add_class RDoc::NormalClass, 'Klass', nil
+
+ assert_includes @c1.classes.map { |k| k.full_name }, 'C1::Klass',
+ 'c1 classes'
+ refute_includes @c1.modules.map { |k| k.full_name }, 'C1::Klass',
+ 'c1 modules'
+
+ assert_includes RDoc::TopLevel.classes.map { |k| k.full_name }, 'C1::Klass',
+ 'TopLevel classes'
+ refute_includes RDoc::TopLevel.modules.map { |k| k.full_name }, 'C1::Klass',
+ 'TopLevel modules'
+ end
+
+ def test_add_constant
+ const = RDoc::Constant.new 'NAME', 'value', 'comment'
+ @context.add_constant const
+
+ assert_equal [const], @context.constants
+ end
+
+ def test_add_include
+ incl = RDoc::Include.new 'Name', 'comment'
+ @context.add_include incl
+
+ assert_equal [incl], @context.includes
+ end
+
+ def test_add_include_twice
+ incl1 = RDoc::Include.new 'Name', 'comment'
+ @context.add_include incl1
+
+ incl2 = RDoc::Include.new 'Name', 'comment'
+ @context.add_include incl2
+
+ assert_equal [incl1], @context.includes
+ end
+
+ def test_add_method
+ meth = RDoc::AnyMethod.new nil, 'old_name'
+ meth.visibility = nil
+
+ @context.add_method meth
+
+ assert_equal [meth], @context.method_list
+ assert_equal :public, meth.visibility
+ end
+
+ def test_add_method_alias
+ as = RDoc::Alias.new nil, 'old_name', 'new_name', 'comment'
+ meth = RDoc::AnyMethod.new nil, 'old_name'
+
+ @context.add_alias as
+ refute_empty @context.external_aliases
+
+ @context.add_method meth
+
+ assert_empty @context.external_aliases
+ assert_empty @context.unmatched_alias_lists
+ assert_equal %w[old_name new_name], @context.method_list.map { |m| m.name }
+ end
+
+ def test_add_module
+ @c1.add_module RDoc::NormalModule, 'Mod'
+
+ assert_includes @c1.modules.map { |m| m.full_name }, 'C1::Mod'
+ end
+
+ def test_add_module_alias
+ tl = RDoc::TopLevel.new 'file.rb'
+
+ c3_c4 = @c2.add_module_alias @c2_c3, 'C4', tl
+
+ c4 = @c2.find_module_named('C4')
+
+ alias_constant = @c2.constants.first
+
+ assert_equal c4, c3_c4
+ assert_equal tl, alias_constant.file
+ end
+
+ def test_add_module_class
+ k = @c1.add_class RDoc::NormalClass, 'Klass', nil
+ m = @c1.add_module RDoc::NormalModule, 'Klass'
+
+ assert_equal k, m, 'returns class'
+ assert_empty @c1.modules
+ end
+
+ def test_add_require
+ req = RDoc::Require.new 'require', 'comment'
+ @c1.add_require req
+
+ assert_empty @c1.requires
+ assert_includes @c1.top_level.requires, req
+ end
+
+ def test_add_section
+ default_section = @context.sections.first
+
+ @context.add_section nil, '# comment'
+
+ assert_equal 1, @context.sections.length
+ assert_equal '# comment', @context.sections.first.comment
+
+ @context.add_section nil, '# new comment'
+
+ assert_equal 1, @context.sections.length
+ assert_equal "# comment\n# ---\n# new comment",
+ @context.sections.first.comment
+
+ @context.add_section 'other', ''
+
+ assert_equal 2, @context.sections.length
+
+ new_section = @context.sections.find { |section| section.title == 'other' }
+ assert new_section
+ assert_equal default_section, @context.current_section
+ end
+
+ def test_add_to
+ incl = RDoc::Include.new 'Name', 'comment'
+ arr = []
+ @context.add_to arr, incl
+
+ assert_includes arr, incl
+ assert_equal @context, incl.parent
+ assert_equal @context.current_section, incl.section
+ end
+
+ def test_add_to_temporary_section
+ incl = RDoc::Include.new 'Name', 'comment'
+ arr = []
+ section = @context.add_section 'temporary', ''
+ @context.temporary_section = section
+
+ @context.add_to arr, incl
+
+ assert_includes arr, incl
+ assert_equal @context, incl.parent
+ assert_equal section, incl.section
+ end
+
+ def test_add_to_no_document_self
+ incl = RDoc::Include.new 'Name', 'comment'
+ arr = []
+ @context.document_self = false
+ @context.add_to arr, incl
+
+ refute_includes arr, incl
+ end
+
+ def test_add_to_done_documenting
+ incl = RDoc::Include.new 'Name', 'comment'
+ arr = []
+ @context.done_documenting = true
+ @context.add_to arr, incl
+
+ refute_includes arr, incl
+ end
+
+ def test_child_name
+ assert_equal 'C1::C1', @c1.child_name('C1')
+ end
+
+ def test_classes
+ assert_equal %w[C2::C3], @c2.classes.map { |k| k.full_name }
+ assert_equal %w[C3::H1 C3::H2], @c3.classes.map { |k| k.full_name }
+ end
+
+ def test_current_section
+ default_section = @context.current_section
+
+ new_section = @context.add_section 'other', ''
+ @context.temporary_section = new_section
+
+ assert_equal new_section, @context.current_section
+ assert_equal default_section, @context.current_section
+ end
+
+ def test_defined_in_eh
+ assert @c1.defined_in?(@c1.top_level)
+
+ refute @c1.defined_in?(RDoc::TopLevel.new('name.rb'))
+ end
+
+ def test_equals2
+ assert_equal @c3, @c3
+ refute_equal @c2, @c3
+ refute_equal @c2_c3, @c3
+ end
+
+ def test_each_section
+ sects = []
+ consts = []
+ attrs = []
+
+ @c1.each_section do |section, constants, attributes|
+ sects << section
+ consts << constants
+ attrs << attributes
+ end
+
+ assert_equal [nil, 'separate'], sects.map { |section| section.title }
+
+ expected_consts = [
+ [@c1.constants.first],
+ [],
+ ]
+
+ assert_equal expected_consts, consts
+
+ expected_attrs = [
+ [@c1.attributes[0], @c1.attributes[3]],
+ [@c1.attributes[1], @c1.attributes[2]],
+ ]
+
+ assert_equal expected_attrs, attrs
+ end
+
+ def test_find_attribute_named
+ assert_equal nil, @c1.find_attribute_named('none')
+ assert_equal 'R', @c1.find_attribute_named('attr').rw
+ assert_equal 'R', @c1.find_attribute_named('attr_reader').rw
+ assert_equal 'W', @c1.find_attribute_named('attr_writer').rw
+ assert_equal 'RW', @c1.find_attribute_named('attr_accessor').rw
+ end
+
+ def test_find_class_method_named
+ assert_equal nil, @c1.find_class_method_named('none')
+
+ m = @c1.find_class_method_named('m')
+ assert_instance_of RDoc::AnyMethod, m
+ assert m.singleton
+ end
+
+ def test_find_constant_named
+ assert_equal nil, @c1.find_constant_named('NONE')
+ assert_equal ':const', @c1.find_constant_named('CONST').value
+ end
+
+ def test_find_enclosing_module_named
+ assert_equal nil, @c2_c3.find_enclosing_module_named('NONE')
+ assert_equal @c1, @c2_c3.find_enclosing_module_named('C1')
+ assert_equal @c2, @c2_c3.find_enclosing_module_named('C2')
+ end
+
+ def test_find_file_named
+ assert_equal nil, @c1.find_file_named('nonexistent.rb')
+ assert_equal @xref_data, @c1.find_file_named(@file_name)
+ end
+
+ def test_find_instance_method_named
+ assert_equal nil, @c1.find_instance_method_named('none')
+
+ m = @c1.find_instance_method_named('m')
+ assert_instance_of RDoc::AnyMethod, m
+ refute m.singleton
+ end
+
+ def test_find_local_symbol
+ assert_equal true, @c1.find_local_symbol('m').singleton
+ assert_equal ':const', @c1.find_local_symbol('CONST').value
+ assert_equal 'R', @c1.find_local_symbol('attr').rw
+ assert_equal @xref_data, @c1.find_local_symbol(@file_name)
+ assert_equal @c2_c3, @c2.find_local_symbol('C3')
+ end
+
+ def test_find_method_named
+ assert_equal true, @c1.find_method_named('m').singleton
+ end
+
+ def test_find_module_named
+ assert_equal @c2_c3, @c2.find_module_named('C3')
+ assert_equal @c2, @c2.find_module_named('C2')
+ assert_equal @c1, @c2.find_module_named('C1')
+
+ assert_equal 'C2::C3', @c2.find_module_named('C3').full_name
+ end
+
+ def test_find_symbol
+ c3 = @xref_data.find_module_named('C3')
+ assert_equal c3, @xref_data.find_symbol('C3')
+ assert_equal c3, @c2.find_symbol('::C3')
+ assert_equal @c2_c3, @c2.find_symbol('C3')
+ end
+
+ def test_find_symbol_method
+ assert_equal @c1__m, @c1.find_symbol('m')
+ assert_equal @c1_m, @c1.find_symbol('#m')
+ assert_equal @c1__m, @c1.find_symbol('::m')
+ end
+
+ def test_fully_documented_eh
+ context = RDoc::Context.new
+
+ refute context.fully_documented?
+
+ context.comment = 'hi'
+
+ assert context.fully_documented?
+
+ m = @c1_m
+
+ context.add_method m
+
+ refute context.fully_documented?
+
+ m.comment = 'hi'
+
+ assert context.fully_documented?
+
+ c = RDoc::Constant.new 'C', '0', nil
+
+ context.add_constant c
+
+ refute context.fully_documented?
+
+ c.comment = 'hi'
+
+ assert context.fully_documented?
+
+ a = RDoc::Attr.new '', 'a', 'RW', nil
+
+ context.add_attribute a
+
+ refute context.fully_documented?
+
+ a.comment = 'hi'
+
+ assert context.fully_documented?
+ end
+
+ def test_spaceship
+ assert_equal(-1, @c2.<=>(@c3))
+ assert_equal 0, @c2.<=>(@c2)
+ assert_equal 1, @c3.<=>(@c2)
+
+ assert_equal 1, @c2_c3.<=>(@c2)
+ assert_equal(-1, @c2_c3.<=>(@c3))
+ end
+
+ def test_methods_by_type
+ expected = {
+ 'instance' => {
+ :private => [],
+ :protected => [],
+ :public => [@c1_m],
+ },
+ 'class' => {
+ :private => [],
+ :protected => [],
+ :public => [@c1__m],
+ },
+ }
+
+ assert_equal expected, @c1.methods_by_type
+ end
+
+ def test_methods_by_type_section
+ separate = @c1.sections_hash['separate']
+ @c1_m.section = separate
+
+ expected = {
+ 'instance' => {
+ :private => [],
+ :protected => [],
+ :public => [@c1_m],
+ },
+ 'class' => {
+ :private => [],
+ :protected => [],
+ :public => [],
+ },
+ }
+
+ assert_equal expected, @c1.methods_by_type(separate)
+ end
+
+ def test_methods_matching
+ methods = []
+
+ @parent.methods_matching 'm' do |m|
+ methods << m
+ end
+
+ assert_equal [@parent_m], methods
+ end
+
+ def test_methods_matching_singleton
+ methods = []
+
+ @parent.methods_matching 'm', true do |m|
+ methods << m
+ end
+
+ assert_equal [@parent__m], methods
+ end
+
+ def test_methods_matching_inherit
+ methods = []
+
+ @child.methods_matching 'm' do |m|
+ methods << m
+ end
+
+ assert_equal [@parent_m], methods
+ end
+
+ def test_remove_invisible_private
+ util_visibilities
+
+ @vis.remove_invisible :private
+
+ assert_equal [@pub, @prot, @priv], @vis.method_list
+ assert_equal [@apub, @aprot, @apriv], @vis.attributes
+ end
+
+ def test_remove_invisible_protected
+ util_visibilities
+
+ @vis.remove_invisible :protected
+
+ assert_equal [@pub, @prot], @vis.method_list
+ assert_equal [@apub, @aprot], @vis.attributes
+ end
+
+ def test_remove_invisible_public
+ util_visibilities
+
+ @vis.remove_invisible :public
+
+ assert_equal [@pub], @vis.method_list
+ assert_equal [@apub], @vis.attributes
+ end
+
+ def test_remove_invisible_public_force
+ util_visibilities
+
+ @priv.force_documentation = true
+ @prot.force_documentation = true
+ @apriv.force_documentation = true
+ @aprot.force_documentation = true
+
+ @vis.remove_invisible :public
+
+ assert_equal [@pub, @prot, @priv], @vis.method_list
+ assert_equal [@apub, @aprot, @apriv], @vis.attributes
+ end
+
+ def test_remove_invisible_in_protected
+ util_visibilities
+
+ methods = [@pub, @prot, @priv]
+
+ @c1.remove_invisible_in methods, :protected
+
+ assert_equal [@pub, @prot], methods
+ end
+
+ def test_remove_invisible_in_protected_force
+ util_visibilities
+
+ @priv.force_documentation = true
+
+ methods = [@pub, @prot, @priv]
+
+ @c1.remove_invisible_in methods, :protected
+
+ assert_equal [@pub, @prot, @priv], methods
+ end
+
+ def test_remove_invisible_in_public
+ util_visibilities
+
+ methods = [@pub, @prot, @priv]
+
+ @c1.remove_invisible_in methods, :public
+
+ assert_equal [@pub], methods
+ end
+
+ def test_remove_invisible_in_public_force
+ util_visibilities
+
+ @prot.force_documentation = true
+ @priv.force_documentation = true
+
+ methods = [@pub, @prot, @priv]
+
+ @c1.remove_invisible_in methods, :public
+
+ assert_equal [@pub, @prot, @priv], methods
+ end
+
+ def test_set_current_section
+ default_section = @context.sections.first
+
+ @context.set_current_section nil, ''
+
+ assert_equal default_section, @context.current_section
+
+ @context.set_current_section 'other', ''
+
+ new_section = @context.sections.find { |section|
+ section != default_section
+ }
+
+ assert_equal new_section, @context.current_section
+ end
+
+ def util_visibilities
+ @pub = RDoc::AnyMethod.new nil, 'pub'
+ @prot = RDoc::AnyMethod.new nil, 'prot'
+ @priv = RDoc::AnyMethod.new nil, 'priv'
+
+ @apub = RDoc::Attr.new nil, 'pub', 'RW', nil
+ @aprot = RDoc::Attr.new nil, 'prot', 'RW', nil
+ @apriv = RDoc::Attr.new nil, 'priv', 'RW', nil
+
+ @vis = RDoc::NormalClass.new 'Vis'
+ @vis.add_method @pub
+ @vis.add_method @prot
+ @vis.add_method @priv
+
+ @vis.add_attribute @apub
+ @vis.add_attribute @aprot
+ @vis.add_attribute @apriv
+
+ @prot.visibility = :protected
+ @priv.visibility = :private
+
+ @aprot.visibility = :protected
+ @apriv.visibility = :private
+ end
+
+end
+
diff --git a/test/rdoc/test_rdoc_context_section.rb b/test/rdoc/test_rdoc_context_section.rb
new file mode 100644
index 0000000000..d37a4d222e
--- /dev/null
+++ b/test/rdoc/test_rdoc_context_section.rb
@@ -0,0 +1,54 @@
+require 'rubygems'
+require 'cgi'
+require 'minitest/autorun'
+require 'rdoc'
+require 'rdoc/code_objects'
+
+class TestRDocContextSection < MiniTest::Unit::TestCase
+
+ def setup
+ @S = RDoc::Context::Section
+ @s = @S.new nil, 'section', '# comment'
+ end
+
+ def test_aref
+ assert_equal 'section', @s.aref
+
+ assert_equal '5Buntitled-5D', @S.new(nil, nil, nil).aref
+
+ assert_equal 'one+two', @S.new(nil, 'one two', nil).aref
+ end
+
+ def test_comment_equals
+ @s.comment = "# :section: section\n"
+
+ assert_equal "# comment", @s.comment
+
+ @s.comment = "# :section: section\n# other"
+
+ assert_equal "# comment\n# ---\n# other", @s.comment
+
+ s = @S.new nil, nil, nil
+
+ s.comment = "# :section:\n# other"
+
+ assert_equal "# other", s.comment
+ end
+
+ def test_extract_comment
+ assert_equal '', @s.extract_comment('')
+ assert_equal '', @s.extract_comment("# :section: b\n")
+ assert_equal '# c', @s.extract_comment("# :section: b\n# c")
+ assert_equal '# c', @s.extract_comment("# a\n# :section: b\n# c")
+ end
+
+ def test_sequence
+ _, err = capture_io do
+ assert_match(/\ASEC\d{5}\Z/, @s.sequence)
+ end
+
+ assert_equal "#{@S}#sequence is deprecated, use #aref\n", err
+ end
+
+end
+
diff --git a/test/rdoc/test_rdoc_cross_reference.rb b/test/rdoc/test_rdoc_cross_reference.rb
new file mode 100644
index 0000000000..06062ba125
--- /dev/null
+++ b/test/rdoc/test_rdoc_cross_reference.rb
@@ -0,0 +1,154 @@
+require 'rubygems'
+require 'minitest/autorun'
+require File.expand_path '../xref_test_case', __FILE__
+
+class TestRDocCrossReference < XrefTestCase
+
+ def setup
+ super
+
+ @xref = RDoc::CrossReference.new @c1
+ end
+
+ def assert_ref expected, name
+ assert_equal expected, @xref.resolve(name, 'fail')
+ end
+
+ def refute_ref name
+ assert_equal name, @xref.resolve(name, name)
+ end
+
+ def test_resolve_C2
+ @xref = RDoc::CrossReference.new @c2
+
+ refute_ref '#m'
+
+ assert_ref @c1__m, 'C1::m'
+ assert_ref @c2_c3, 'C2::C3'
+ assert_ref @c2_c3_m, 'C2::C3#m'
+ assert_ref @c2_c3_h1, 'C3::H1'
+ assert_ref @c4, 'C4'
+
+ assert_ref @c3_h2, 'C3::H2'
+ refute_ref 'H1'
+ end
+
+ def test_resolve_C2_C3
+ @xref = RDoc::CrossReference.new @c2_c3
+
+ assert_ref @c2_c3_m, '#m'
+
+ assert_ref @c2_c3, 'C3'
+ assert_ref @c2_c3_m, 'C3#m'
+
+ assert_ref @c2_c3_h1, 'H1'
+ assert_ref @c2_c3_h1, 'C3::H1'
+
+ assert_ref @c4, 'C4'
+
+ assert_ref @c3_h2, 'C3::H2'
+ end
+
+ def test_resolve_C3
+ @xref = RDoc::CrossReference.new @c3
+
+ assert_ref @c3, 'C3'
+
+ refute_ref '#m'
+ refute_ref 'C3#m'
+
+ assert_ref @c3_h1, 'H1'
+
+ assert_ref @c3_h1, 'C3::H1'
+ assert_ref @c3_h2, 'C3::H2'
+
+ assert_ref @c4, 'C4'
+ end
+
+ def test_resolve_C4
+ @xref = RDoc::CrossReference.new @c4
+
+ # C4 ref inside a C4 containing a C4 should resolve to the contained class
+ assert_ref @c4_c4, 'C4'
+ end
+
+ def test_resolve_C4_C4
+ @xref = RDoc::CrossReference.new @c4_c4
+
+ # A C4 reference inside a C4 class contained within a C4 class should
+ # resolve to the inner C4 class.
+ assert_ref @c4_c4, 'C4'
+ end
+
+ def test_resolve_class
+ assert_ref @c1, 'C1'
+ refute_ref 'H1'
+
+ assert_ref @c2, 'C2'
+ assert_ref @c2_c3, 'C2::C3'
+ assert_ref @c2_c3_h1, 'C2::C3::H1'
+
+ assert_ref @c3, '::C3'
+ assert_ref @c3_h1, '::C3::H1'
+
+ assert_ref @c4_c4, 'C4::C4'
+ end
+
+ def test_resolve_file
+ assert_ref @xref_data, 'xref_data.rb'
+ end
+
+ def test_resolve_method
+ assert_ref @c1__m, 'm'
+ assert_ref @c1_m, '#m'
+ assert_ref @c1__m, '::m'
+
+ assert_ref @c1_m, 'C1#m'
+ assert_ref @c1__m, 'C1.m'
+ assert_ref @c1__m, 'C1::m'
+
+ assert_ref @c1_m, 'C1#m'
+ assert_ref @c1_m, 'C1#m()'
+ assert_ref @c1_m, 'C1#m(*)'
+
+ assert_ref @c1__m, 'C1.m'
+ assert_ref @c1__m, 'C1.m()'
+ assert_ref @c1__m, 'C1.m(*)'
+
+ assert_ref @c1__m, 'C1::m'
+ assert_ref @c1__m, 'C1::m()'
+ assert_ref @c1__m, 'C1::m(*)'
+
+ assert_ref @c2_c3_m, 'C2::C3#m'
+
+ assert_ref @c2_c3_m, 'C2::C3.m'
+
+ # TODO stop escaping - HTML5 allows anything but space
+ assert_ref @c2_c3_h1_meh, 'C2::C3::H1#m?'
+
+ assert_ref @c2_c3_m, '::C2::C3#m'
+ assert_ref @c2_c3_m, '::C2::C3#m()'
+ assert_ref @c2_c3_m, '::C2::C3#m(*)'
+ end
+
+ def test_resolve_no_ref
+ assert_equal '', @xref.resolve('', '')
+
+ assert_equal "bogus", @xref.resolve("bogus", "bogus")
+ assert_equal "\\bogus", @xref.resolve("\\bogus", "\\bogus")
+ assert_equal "\\\\bogus", @xref.resolve("\\\\bogus", "\\\\bogus")
+
+ assert_equal "\\#n", @xref.resolve("\\#n", "fail")
+ assert_equal "\\#n()", @xref.resolve("\\#n()", "fail")
+ assert_equal "\\#n(*)", @xref.resolve("\\#n(*)", "fail")
+
+ assert_equal "C1", @xref.resolve("\\C1", "fail")
+ assert_equal "::C3", @xref.resolve("\\::C3", "fail")
+
+ assert_equal "succeed", @xref.resolve("::C3::H1#n", "succeed")
+ assert_equal "succeed", @xref.resolve("::C3::H1#n(*)", "succeed")
+ assert_equal "\\::C3::H1#n", @xref.resolve("\\::C3::H1#n", "fail")
+ end
+
+end
+
diff --git a/test/rdoc/test_rdoc_encoding.rb b/test/rdoc/test_rdoc_encoding.rb
new file mode 100644
index 0000000000..b5ffd7714c
--- /dev/null
+++ b/test/rdoc/test_rdoc_encoding.rb
@@ -0,0 +1,191 @@
+# coding: US-ASCII
+
+require 'rubygems'
+require 'minitest/autorun'
+require 'rdoc'
+require 'rdoc/encoding'
+
+require 'tempfile'
+
+class TestRDocEncoding < MiniTest::Unit::TestCase
+
+ def setup
+ @tempfile = Tempfile.new 'test_rdoc_encoding'
+ end
+
+ def test_class_read_file
+ @tempfile.write "hi everybody"
+ @tempfile.flush
+
+ assert_equal "hi everybody", RDoc::Encoding.read_file(@tempfile.path, nil)
+ end
+
+ def test_class_read_file_encoding
+ skip "Encoding not implemented" unless Object.const_defined? :Encoding
+
+ expected = "# coding: utf-8\nhi everybody"
+
+ @tempfile.write expected
+ @tempfile.flush
+
+ contents = RDoc::Encoding.read_file @tempfile.path, Encoding::UTF_8
+ assert_equal "hi everybody", contents
+ assert_equal Encoding::UTF_8, contents.encoding
+ end
+
+ def test_class_read_file_encoding_convert
+ skip "Encoding not implemented" unless Object.const_defined? :Encoding
+
+ content = ""
+ content.encode! 'ISO-8859-1'
+ content << "# coding: ISO-8859-1\nhi \xE9verybody"
+
+ @tempfile.write content
+ @tempfile.flush
+
+ contents = RDoc::Encoding.read_file @tempfile.path, Encoding::UTF_8
+ assert_equal Encoding::UTF_8, contents.encoding
+ assert_equal "hi \u00e9verybody", contents.sub("\r", '')
+ end
+
+ def test_class_read_file_encoding_fail
+ skip "Encoding not implemented" unless Object.const_defined? :Encoding
+
+ @tempfile.write "# coding: utf-8\n\317\200" # pi
+ @tempfile.flush
+
+ contents = :junk
+
+ _, err = capture_io do
+ contents = RDoc::Encoding.read_file @tempfile.path, Encoding::US_ASCII
+ end
+
+ assert_nil contents
+
+ assert_match %r%^unable to convert%, err
+ end
+
+ def test_class_read_file_encoding_fancy
+ skip "Encoding not implemented" unless Object.const_defined? :Encoding
+
+ expected = "# -*- coding: utf-8; fill-column: 74 -*-\nhi everybody"
+ expected.encode! Encoding::UTF_8
+
+ @tempfile.write expected
+ @tempfile.flush
+
+ contents = RDoc::Encoding.read_file @tempfile.path, Encoding::UTF_8
+ assert_equal "hi everybody", contents
+ assert_equal Encoding::UTF_8, contents.encoding
+ end
+
+ def test_class_read_file_encoding_force_transcode
+ skip "Encoding not implemented" unless Object.const_defined? :Encoding
+
+ @tempfile.write "# coding: utf-8\n\317\200" # pi
+ @tempfile.flush
+
+ contents = RDoc::Encoding.read_file @tempfile.path, Encoding::US_ASCII, true
+
+ assert_equal '?', contents
+ assert_equal Encoding::US_ASCII, contents.encoding
+ end
+
+ def test_class_read_file_encoding_guess
+ skip "Encoding not implemented" unless Object.const_defined? :Encoding
+
+ path = File.expand_path '../test.ja.txt', __FILE__
+ content = RDoc::Encoding.read_file path, Encoding::UTF_8
+
+ assert_equal Encoding::UTF_8, content.encoding
+ end
+
+ def test_class_read_file_encoding_with_signature
+ skip "Encoding not implemented" unless defined? ::Encoding
+
+ @tempfile.write "\xEF\xBB\xBFhi everybody"
+ @tempfile.flush
+
+ bug3360 = '[ruby-dev:41452]'
+ content = RDoc::Encoding.read_file @tempfile.path, Encoding::UTF_8
+ assert_equal Encoding::UTF_8, content.encoding, bug3360
+ assert_equal "hi everybody", content, bug3360
+ end
+
+ def test_class_set_encoding
+ s = "# coding: UTF-8\n"
+ RDoc::Encoding.set_encoding s
+
+ # sanity check for 1.8
+
+ skip "Encoding not implemented" unless Object.const_defined? :Encoding
+
+ assert_equal Encoding::UTF_8, s.encoding
+
+ s = "#!/bin/ruby\n# coding: UTF-8\n"
+ RDoc::Encoding.set_encoding s
+
+ assert_equal Encoding::UTF_8, s.encoding
+
+ s = "<?xml version='1.0' encoding='UTF-8'?>\n"
+ expected = s.encoding
+ RDoc::Encoding.set_encoding s
+
+ assert_equal Encoding::UTF_8, s.encoding
+
+ s = "<?xml version='1.0' encoding=\"UTF-8\"?>\n"
+ expected = s.encoding
+ RDoc::Encoding.set_encoding s
+
+ assert_equal Encoding::UTF_8, s.encoding
+ end
+
+ def test_class_set_encoding_strip
+ s = "# coding: UTF-8\n# more comments"
+
+ RDoc::Encoding.set_encoding s
+
+ assert_equal "# more comments", s
+
+ s = "#!/bin/ruby\n# coding: UTF-8\n# more comments"
+
+ RDoc::Encoding.set_encoding s
+
+ assert_equal "# more comments", s
+ end
+
+ def test_class_set_encoding_bad
+ skip "Encoding not implemented" unless Object.const_defined? :Encoding
+
+ s = ""
+ expected = s.encoding
+ RDoc::Encoding.set_encoding s
+
+ assert_equal expected, s.encoding
+
+ s = "# vim:set fileencoding=utf-8:\n"
+ expected = s.encoding
+ RDoc::Encoding.set_encoding s
+
+ assert_equal expected, s.encoding
+
+ s = "# vim:set fileencoding=utf-8:\n"
+ expected = s.encoding
+ RDoc::Encoding.set_encoding s
+
+ assert_equal expected, s.encoding
+
+ assert_raises ArgumentError do
+ RDoc::Encoding.set_encoding "# -*- encoding: undecided -*-\n"
+ end
+ end
+
+ def test_sanity
+ skip "Encoding not implemented" unless Object.const_defined? :Encoding
+
+ assert_equal Encoding::US_ASCII, ''.encoding,
+ 'If this file is not ASCII tests may incorrectly pass'
+ end
+
+end
+
diff --git a/test/rdoc/test_rdoc_generator_darkfish.rb b/test/rdoc/test_rdoc_generator_darkfish.rb
new file mode 100644
index 0000000000..faea1ae34a
--- /dev/null
+++ b/test/rdoc/test_rdoc_generator_darkfish.rb
@@ -0,0 +1,125 @@
+require 'minitest/autorun'
+require 'rdoc/rdoc'
+require 'rdoc/generator/darkfish'
+require 'tmpdir'
+require 'fileutils'
+
+class TestRDocGeneratorDarkfish < MiniTest::Unit::TestCase
+
+ def setup
+ @pwd = Dir.pwd
+ @lib_dir = "#{@pwd}/lib"
+ $LOAD_PATH.unshift @lib_dir # ensure we load from this RDoc
+ RDoc::TopLevel.reset
+
+ @options = RDoc::Options.new
+ @options.option_parser = OptionParser.new
+
+ @tmpdir = File.join Dir.tmpdir, "test_rdoc_generator_darkfish_#{$$}"
+ FileUtils.mkdir_p @tmpdir
+ Dir.chdir @tmpdir
+ @options.op_dir = @tmpdir
+ @options.generator = RDoc::Generator::Darkfish
+
+ $LOAD_PATH.each do |path|
+ darkfish_dir = File.join path, 'rdoc/generator/template/darkfish'
+ next unless File.directory? darkfish_dir
+ @options.template_dir = darkfish_dir
+ break
+ end
+
+ rd = RDoc::RDoc.new
+ rd.options = @options
+ RDoc::RDoc.current = rd
+
+ @g = @options.generator.new @options
+
+ rd.generator = @g
+
+ @top_level = RDoc::TopLevel.new 'file.rb'
+ @klass = @top_level.add_class RDoc::NormalClass, 'Object'
+
+ @meth = RDoc::AnyMethod.new nil, 'method'
+ @meth_bang = RDoc::AnyMethod.new nil, 'method!'
+ @attr = RDoc::Attr.new nil, 'attr', 'RW', ''
+
+ @klass.add_method @meth
+ @klass.add_method @meth_bang
+ @klass.add_attribute @attr
+
+ @ignored = @top_level.add_class RDoc::NormalClass, 'Ignored'
+ @ignored.ignore
+ end
+
+ def teardown
+ $LOAD_PATH.shift
+ Dir.chdir @pwd
+ FileUtils.rm_rf @tmpdir
+ end
+
+ def assert_file path
+ assert File.file?(path), "#{path} is not a file"
+ end
+
+ def refute_file path
+ refute File.exist?(path), "#{path} exists"
+ end
+
+ def test_generate
+ top_level = RDoc::TopLevel.new 'file.rb'
+ top_level.add_class @klass.class, @klass.name
+
+ @g.generate [top_level]
+
+ assert_file 'index.html'
+ assert_file 'Object.html'
+ assert_file 'file_rb.html'
+
+ encoding = if Object.const_defined? :Encoding then
+ Regexp.escape Encoding.default_external.name
+ else
+ Regexp.escape 'UTF-8'
+ end
+
+ assert_match(/<meta content="text\/html; charset=#{encoding}"/,
+ File.read('index.html'))
+ assert_match(/<meta content="text\/html; charset=#{encoding}"/,
+ File.read('Object.html'))
+ assert_match(/<meta content="text\/html; charset=#{encoding}"/,
+ File.read('file_rb.html'))
+
+ refute_match(/Ignored/, File.read('index.html'))
+ end
+
+ def test_generate_dry_run
+ @options.dry_run = true
+ top_level = RDoc::TopLevel.new 'file.rb'
+ top_level.add_class @klass.class, @klass.name
+
+ @g.generate [top_level]
+
+ refute_file 'index.html'
+ refute_file 'Object.html'
+ refute_file 'file_rb.html'
+ end
+
+ def test_template_for
+ classpage = Pathname.new @options.template_dir + '/classpage.rhtml'
+
+ template = @g.send(:template_for, classpage)
+ assert_kind_of RDoc::ERBIO, template
+
+ assert_same template, @g.send(:template_for, classpage)
+ end
+
+ def test_template_for_dry_run
+ classpage = Pathname.new @options.template_dir + '/classpage.rhtml'
+
+ template = @g.send(:template_for, classpage)
+ assert_kind_of ERB, template
+
+ assert_same template, @g.send(:template_for, classpage)
+ end
+
+end
+
diff --git a/test/rdoc/test_rdoc_generator_ri.rb b/test/rdoc/test_rdoc_generator_ri.rb
new file mode 100644
index 0000000000..2be006843c
--- /dev/null
+++ b/test/rdoc/test_rdoc_generator_ri.rb
@@ -0,0 +1,87 @@
+require 'rubygems'
+require 'minitest/autorun'
+require 'rdoc/rdoc'
+require 'rdoc/generator/ri'
+require 'tmpdir'
+require 'fileutils'
+
+class TestRDocGeneratorRI < MiniTest::Unit::TestCase
+
+ def setup
+ @options = RDoc::Options.new
+ @options.encoding = Encoding::UTF_8 if Object.const_defined? :Encoding
+
+ @pwd = Dir.pwd
+ RDoc::TopLevel.reset
+
+ @tmpdir = File.join Dir.tmpdir, "test_rdoc_generator_ri_#{$$}"
+ FileUtils.mkdir_p @tmpdir
+ Dir.chdir @tmpdir
+
+ @g = RDoc::Generator::RI.new @options
+
+ @top_level = RDoc::TopLevel.new 'file.rb'
+ @klass = @top_level.add_class RDoc::NormalClass, 'Object'
+
+ @meth = RDoc::AnyMethod.new nil, 'method'
+ @meth.record_location @top_level
+
+ @meth_bang = RDoc::AnyMethod.new nil, 'method!'
+ @meth_bang.record_location @top_level
+
+ @attr = RDoc::Attr.new nil, 'attr', 'RW', ''
+ @attr.record_location @top_level
+
+ @klass.add_method @meth
+ @klass.add_method @meth_bang
+ @klass.add_attribute @attr
+ end
+
+ def teardown
+ Dir.chdir @pwd
+ FileUtils.rm_rf @tmpdir
+ end
+
+ def assert_file path
+ assert File.file?(path), "#{path} is not a file"
+ end
+
+ def refute_file path
+ refute File.exist?(path), "#{path} exists"
+ end
+
+ def test_generate
+ @g.generate nil
+
+ assert_file File.join(@tmpdir, 'cache.ri')
+
+ assert_file File.join(@tmpdir, 'Object', 'cdesc-Object.ri')
+
+ assert_file File.join(@tmpdir, 'Object', 'attr-i.ri')
+ assert_file File.join(@tmpdir, 'Object', 'method-i.ri')
+ assert_file File.join(@tmpdir, 'Object', 'method%21-i.ri')
+
+ store = RDoc::RI::Store.new @tmpdir
+ store.load_cache
+
+ encoding = Object.const_defined?(:Encoding) ? Encoding::UTF_8 : nil
+
+ assert_equal encoding, store.encoding
+ end
+
+ def test_generate_dry_run
+ @options.dry_run = true
+ @g = RDoc::Generator::RI.new @options
+
+ top_level = RDoc::TopLevel.new 'file.rb'
+ top_level.add_class @klass.class, @klass.name
+
+ @g.generate nil
+
+ refute_file File.join(@tmpdir, 'cache.ri')
+
+ refute_file File.join(@tmpdir, 'Object')
+ end
+
+end
+
diff --git a/test/rdoc/test_rdoc_include.rb b/test/rdoc/test_rdoc_include.rb
new file mode 100644
index 0000000000..71eaf9abf8
--- /dev/null
+++ b/test/rdoc/test_rdoc_include.rb
@@ -0,0 +1,96 @@
+require File.expand_path '../xref_test_case', __FILE__
+
+class TestRDocInclude < XrefTestCase
+
+ def setup
+ super
+
+ @inc = RDoc::Include.new 'M1', 'comment'
+ @inc.parent = @m1
+ end
+
+ def test_module
+ assert_equal @m1, @inc.module
+ assert_equal 'Unknown', RDoc::Include.new('Unknown', 'comment').module
+ end
+
+ def test_module_extended
+ m1 = @xref_data.add_module RDoc::NormalModule, 'Mod1'
+ m1_m3 = m1.add_module RDoc::NormalModule, 'Mod3'
+ m1_m2 = m1.add_module RDoc::NormalModule, 'Mod2'
+ m1_m2_m3 = m1_m2.add_module RDoc::NormalModule, 'Mod3'
+ m1_m2_m3_m4 = m1_m2_m3.add_module RDoc::NormalModule, 'Mod4'
+ m1_m2_m4 = m1_m2.add_module RDoc::NormalModule, 'Mod4'
+ m1_m2_k0 = m1_m2.add_class RDoc::NormalClass, 'Klass0'
+ m1_m2_k0_m4 = m1_m2_k0.add_module RDoc::NormalModule, 'Mod4'
+ #m1_m2_k0_m4_m5 = m1_m2_k0_m4.add_module RDoc::NormalModule, 'Mod5'
+ m1_m2_k0_m4_m6 = m1_m2_k0_m4.add_module RDoc::NormalModule, 'Mod6'
+ m1_m2_k0_m5 = m1_m2_k0.add_module RDoc::NormalModule, 'Mod5'
+
+ i0_m4 = RDoc::Include.new 'Mod4', nil
+ i0_m5 = RDoc::Include.new 'Mod5', nil
+ i0_m6 = RDoc::Include.new 'Mod6', nil
+ i0_m1 = RDoc::Include.new 'Mod1', nil
+ i0_m2 = RDoc::Include.new 'Mod2', nil
+ i0_m3 = RDoc::Include.new 'Mod3', nil
+
+ m1_m2_k0.add_include i0_m4
+ m1_m2_k0.add_include i0_m5
+ m1_m2_k0.add_include i0_m6
+ m1_m2_k0.add_include i0_m1
+ m1_m2_k0.add_include i0_m2
+ m1_m2_k0.add_include i0_m3
+
+ assert_equal [i0_m4, i0_m5, i0_m6, i0_m1, i0_m2, i0_m3], m1_m2_k0.includes
+ assert_equal [m1_m2_m3, m1_m2, m1, m1_m2_k0_m4_m6, m1_m2_k0_m5,
+ m1_m2_k0_m4, 'Object'], m1_m2_k0.ancestors
+
+ m1_k1 = m1.add_class RDoc::NormalClass, 'Klass1'
+
+ i1_m1 = RDoc::Include.new 'Mod1', nil
+ i1_m2 = RDoc::Include.new 'Mod2', nil
+ i1_m3 = RDoc::Include.new 'Mod3', nil
+ i1_m4 = RDoc::Include.new 'Mod4', nil
+ i1_k0_m4 = RDoc::Include.new 'Klass0::Mod4', nil
+
+ m1_k1.add_include i1_m1
+ m1_k1.add_include i1_m2
+ m1_k1.add_include i1_m3
+ m1_k1.add_include i1_m4
+ m1_k1.add_include i1_k0_m4
+
+ assert_equal [i1_m1, i1_m2, i1_m3, i1_m4, i1_k0_m4], m1_k1.includes
+ assert_equal [m1_m2_k0_m4, m1_m2_m3_m4, m1_m2_m3, m1_m2, m1, 'Object'],
+ m1_k1.ancestors
+
+ m1_k2 = m1.add_class RDoc::NormalClass, 'Klass2'
+
+ i2_m1 = RDoc::Include.new 'Mod1', nil
+ i2_m2 = RDoc::Include.new 'Mod2', nil
+ i2_m3 = RDoc::Include.new 'Mod3', nil
+ i2_k0_m4 = RDoc::Include.new 'Klass0::Mod4', nil
+
+ m1_k2.add_include i2_m1
+ m1_k2.add_include i2_m3
+ m1_k2.add_include i2_m2
+ m1_k2.add_include i2_k0_m4
+
+ assert_equal [i2_m1, i2_m3, i2_m2, i2_k0_m4], m1_k2.includes
+ assert_equal [m1_m2_k0_m4, m1_m2, m1_m3, m1, 'Object'], m1_k2.ancestors
+
+ m1_k3 = m1.add_class RDoc::NormalClass, 'Klass3'
+
+ i3_m1 = RDoc::Include.new 'Mod1', nil
+ i3_m2 = RDoc::Include.new 'Mod2', nil
+ i3_m4 = RDoc::Include.new 'Mod4', nil
+
+ m1_k3.add_include i3_m1
+ m1_k3.add_include i3_m2
+ m1_k3.add_include i3_m4
+
+ assert_equal [i3_m1, i3_m2, i3_m4], m1_k3.includes
+ assert_equal [m1_m2_m4, m1_m2, m1, 'Object'], m1_k3.ancestors
+ end
+
+end
+
diff --git a/test/rdoc/test_rdoc_info_formatting.rb b/test/rdoc/test_rdoc_info_formatting.rb
deleted file mode 100644
index 110c84b2d1..0000000000
--- a/test/rdoc/test_rdoc_info_formatting.rb
+++ /dev/null
@@ -1,179 +0,0 @@
-require 'fileutils'
-require 'tmpdir'
-require 'rubygems'
-require 'minitest/unit'
-
-require 'rdoc/generator/texinfo'
-
-# From chapter 18 of the Pickaxe 3rd ed. and the TexInfo manual.
-class TestRDocInfoFormatting < MiniTest::Unit::TestCase
- def setup
- @output_dir = File.join Dir.mktmpdir("test_rdoc_"), "info_formatting"
- @output_file = File.join @output_dir, 'rdoc.texinfo'
-
- RDoc::RDoc.new.document(['--fmt=texinfo', '--quiet',
- File.expand_path(__FILE__),
- "--op=#{@output_dir}"])
- @text = File.read @output_file
-
- # File.open('rdoc.texinfo', 'w') { |f| f.puts @text }
- end
-
- def teardown
- FileUtils.rm_rf File.dirname(@output_dir)
- end
-
- # Make sure tags like *this* do not make HTML
- def test_descriptions_are_not_html
- refute_match Regexp.new("\<b\>this\<\/b\>"), @text,
- "We had some HTML; icky!"
- end
-
- # Ensure we get a reasonable amount
- #
- # of space in between paragraphs.
- def test_paragraphs_are_spaced
- assert_match(/amount\n\n\nof space/, @text)
- end
-
- # @ and {} should be at-sign-prefixed
- def test_escaping
- assert_match(/@@ and @\{@\} should be at-sign-prefixed/)
- end
-
- # This tests that *bold* and <b>bold me</b> become @strong{bolded}
- def test_bold
- # Seems like a limitation of the Info format: @strong{bold}
- # becomes *bold* when read in Info or M-x info. highly lame!
- assert_match(/@strong\{bold\}/)
- assert_match(/@strong\{bold me\}/)
- end
-
- # Test that _italics_ and <em>italicize me</em> becomes @emph{italicized}
- def test_italics
- assert_match(/@emph\{italics\}/)
- assert_match(/@emph\{italicize me\}/)
- end
-
- # And that typewriter +text+ and <tt>typewriter me</tt> becomes @code{typewriter}
- def test_tt
- assert_match(/@code\{text\}/)
- assert_match(/@code\{typewriter me\}/)
- end
-
- # Check that
- # anything indented is
- # verbatim @verb{|foo bar baz|}
- def test_literal_code
- assert_match("@verb{| anything indented is
- verbatim @@verb@{|foo bar baz|@}
-|}")
- end
-
- # = Huge heading should be a @majorheading
- # == There is also @chapheading
- # === Everything deeper becomes a regular @heading
- # ====== Regardless of its nesting level
- def test_headings
- assert_match(/@majorheading Huge heading should be a @@majorheading/)
- assert_match(/@chapheading There is also @@chapheading/)
- assert_match(/@heading Everything deeper becomes a regular @@heading/)
- assert_match(/@heading Regardless of its nesting level/)
- end
-
- # * list item
- # * list item2
- #
- # with a paragraph in between
- #
- # - hyphen lists
- # - are also allowed
- # and items may flow over lines
- def test_bullet_lists
- assert_match("@itemize @bullet
-@item
-list item
-@item
-list item2
-@end itemize")
- assert_match("@itemize @bullet
-@item
-hyphen lists
-@item
-are also allowed and items may flow over lines
-@end itemize")
- end
-
- # 2. numbered lists
- # 8. are made by
- # 9. a digit followed by a period
- def test_numbered_lists
- end
-
- # a. alpha lists
- # b. should be parsed too
- def test_alpha_lists
- end
-
- # [cat] small domestic animal
- # [+cat+] command to copy standard input
- # to standard output
- def test_labelled_lists
- end
-
- # * First item.
- # * Inner item.
- # * Second inner item.
- # * Second outer item.
- def test_nested_lists
- assert_match("@itemize @bullet
-@item
-First item.
-@itemize @bullet
-@item
-Inner item.
-@item
-Second inner item.
-@end itemize
-@item
-Second outer item.
-@end itemize")
- end
-
- def test_internal_hyperlinks
- # be sure to test multi-word hyperlinks as well.
- end
-
- def test_hyperlink_targets
- end
-
- def test_web_links
- # An example of the two-argument form: The official
- # @uref{ftp://ftp.gnu.org/gnu, GNU ftp site} holds programs and texts.
-
- # produces:
- # The official GNU ftp site (ftp://ftp.gnu.org/gnu)
- # holds programs and texts.
- # and the HTML output is this:
- # The official <a href="ftp://ftp.gnu.org/gnu">GNU ftp site</a>
- # holds programs and texts.
- end
-
- # three or more hyphens
- # ----
- # should produce a horizontal rule
- def test_horizontal_rule
- # gah; not sure texinfo supports horizontal rules
- end
-
- private
-
- # We don't want the whole string inspected if we pass our own
- # message in.
- def assert_match(regex, string = @text,
- message = "Didn't find #{regex.inspect} in #{string}.")
- assert string[regex] #, message
- end
-end
-
-MiniTest::Unit.autorun
diff --git a/test/rdoc/test_rdoc_info_sections.rb b/test/rdoc/test_rdoc_info_sections.rb
deleted file mode 100644
index 9571cd611e..0000000000
--- a/test/rdoc/test_rdoc_info_sections.rb
+++ /dev/null
@@ -1,139 +0,0 @@
-require 'fileutils'
-require 'tempfile'
-require 'rubygems'
-require 'minitest/unit'
-require 'tmpdir'
-
-require 'rdoc/generator/texinfo'
-
-# give us access to check this stuff before it's rendered
-class RDoc::Generator::TEXINFO; attr_reader :files, :classes; end
-class RDoc::RDoc; attr_reader :options; attr_reader :gen; end
-
-class TestRDocInfoSections < MiniTest::Unit::TestCase
-
- def setup
- @output_dir = File.join Dir.tmpdir, "test_rdoc_info_sections_#{$$}"
- @output_file = File.join @output_dir, 'rdoc.texinfo'
-
- @input_file = Tempfile.new 'my_file.rb'
-
- open @input_file.path, 'w' do |io|
- io.write TEST_DOC
- end
-
- RDoc::Parser.alias_extension '.rb', File.extname(@input_file.path)
-
- @rdoc = RDoc::RDoc.new
- @rdoc.document(['--fmt=texinfo', '--quiet', @input_file.path,
- "--op=#{@output_dir}"])
-
- @text = File.read @output_file
- end
-
- def teardown
- @input_file.close
- FileUtils.rm_rf @output_dir
- end
-
- def test_output_exists
- assert ! @text.empty?
- end
-
- def test_each_class_has_a_chapter
- assert_section "Class MyClass", '@chapter'
- end
-
- def test_class_descriptions_are_given
- assert_match(/Documentation for my class/, @text.gsub("\n", ' '))
- end
-
- def test_included_modules_are_given
- assert_match(/Includes.* MyModule/m, @text)
- end
-
- def test_class_methods_are_given
- assert_match(/my_class_method\(my_first_argument\)/, @text)
- end
-
- def test_classes_instance_methods_are_given
- assert_section 'Class MyClass#my_method'
- assert_match(/my_method\(my_first_argument\)/, @text)
- end
-
- def test_each_module_has_a_chapter
- assert_section 'MyModule', '@chapter'
- end
-
- def test_methods_are_shown_only_once
- methods = @rdoc.gen.classes.map do |c|
- c.methods.map do |m|
- c.name + '#' + m.name
- end
- end.flatten
-
- assert_equal methods, methods.uniq
- end
-
-# if system "makeinfo --version > /dev/null"
-# def test_compiles_to_info
-# makeinfo_output = `cd #{@output_dir} && makeinfo rdoc.texinfo`
-# assert(File.exist?(File.join(@output_dir, 'rdoc.info')),
-# "Info file was not compiled: #{makeinfo_output}")
-# end
-# end
-
-# def test_constants_are_documented_somehow
-# assert_section 'DEFAULT_FILENAME' # what kind of section?
-# assert_section 'DEFAULT_INFO_FILENAME'
-# end
-
-# def test_oh_yeah_dont_forget_files
-# end
-
- def assert_section(name, command = '@section')
- assert_match Regexp.new("^#{command}.*#{Regexp.escape name}"), @text, "Could not find a #{command} #{name}"
- end
-
- TEST_DOC = <<-DOC
-##
-# Documentation for my module
-
-module MyModule
-
- ##
- # Documentation for my included method
-
- def my_included_method() end
-
-end
-
-##
-# Documentation for my class
-
-class MyClass
-
- include MyModule
-
- ##
- # Documentation for my constant
-
- MY_CONSTANT = 'my value'
-
- ##
- # Documentation for my class method
-
- def self.my_class_method(my_first_argument) end
-
- ##
- # Documentation for my method
-
- def my_method(my_first_argument) end
-
-end
-
- DOC
-
-end
-
-MiniTest::Unit.autorun
diff --git a/test/rdoc/test_rdoc_markup.rb b/test/rdoc/test_rdoc_markup.rb
index 7004fe50ec..ae6c11e7da 100644
--- a/test/rdoc/test_rdoc_markup.rb
+++ b/test/rdoc/test_rdoc_markup.rb
@@ -1,615 +1,91 @@
require 'rubygems'
-require 'minitest/unit'
+require 'minitest/autorun'
require 'rdoc/markup'
require 'rdoc/markup/to_test'
class TestRDocMarkup < MiniTest::Unit::TestCase
- def basic_conv(str)
- sm = RDoc::Markup.new
- mock = RDoc::Markup::ToTest.new
- sm.convert(str, mock)
- sm.content
- end
-
- def line_groups(str, expected)
- m = RDoc::Markup.new
- mock = RDoc::Markup::ToTest.new
+ def test_convert
+ str = <<-STR
+now is
+the time
- block = m.convert(str, mock)
+ hello
+ dave
- if block != expected
- rows = (0...([expected.size, block.size].max)).collect{|i|
- [expected[i]||"nil", block[i]||"nil"]
- }
- printf "\n\n%35s %35s\n", "Expected", "Got"
- rows.each {|e,g| printf "%35s %35s\n", e.dump, g.dump }
- end
+1. l1
+2. l2
+ STR
- assert_equal(expected, block)
- end
-
- def line_types(str, expected)
m = RDoc::Markup.new
- mock = RDoc::Markup::ToTest.new
- m.convert(str, mock)
- assert_equal(expected, m.get_line_types.map{|type| type.to_s[0,1]}.join(''))
- end
-
- def test_groups
- str = "now is the time"
- line_groups(str, ["L0: Paragraph\nnow is the time"] )
-
- str = "now is the time\nfor all good men"
- line_groups(str, ["L0: Paragraph\nnow is the time for all good men"] )
-
- str = %{\
- now is the time
- code _line_ here
- for all good men}
-
- line_groups(str,
- [ "L0: Paragraph\nnow is the time",
- "L0: Verbatim\n code _line_ here\n",
- "L0: Paragraph\nfor all good men"
- ] )
-
- str = "now is the time\n code\n more code\nfor all good men"
- line_groups(str,
- [ "L0: Paragraph\nnow is the time",
- "L0: Verbatim\n code\n more code\n",
- "L0: Paragraph\nfor all good men"
- ] )
-
- str = %{\
- now is
- * l1
- * l2
- the time}
- line_groups(str,
- [ "L0: Paragraph\nnow is",
- "L1: ListStart\n",
- "L1: BULLET ListItem\nl1",
- "L1: BULLET ListItem\nl2",
- "L1: ListEnd\n",
- "L0: Paragraph\nthe time"
- ])
-
- str = %{\
- now is
- * l1
- l1+
- * l2
- the time}
- line_groups(str,
- [ "L0: Paragraph\nnow is",
- "L1: ListStart\n",
- "L1: BULLET ListItem\nl1 l1+",
- "L1: BULLET ListItem\nl2",
- "L1: ListEnd\n",
- "L0: Paragraph\nthe time"
- ])
-
- str = %{\
- now is
- * l1
- * l1.1
- * l2
- the time}
- line_groups(str,
- [ "L0: Paragraph\nnow is",
- "L1: ListStart\n",
- "L1: BULLET ListItem\nl1",
- "L2: ListStart\n",
- "L2: BULLET ListItem\nl1.1",
- "L2: ListEnd\n",
- "L1: BULLET ListItem\nl2",
- "L1: ListEnd\n",
- "L0: Paragraph\nthe time"
- ])
+ tt = RDoc::Markup::ToTest.new m
- str = %{\
- now is
- * l1
- * l1.1
- text
- code
- code
-
- text
- * l2
- the time}
- line_groups(str,
- [ "L0: Paragraph\nnow is",
- "L1: ListStart\n",
- "L1: BULLET ListItem\nl1",
- "L2: ListStart\n",
- "L2: BULLET ListItem\nl1.1 text",
- "L2: Verbatim\n code\n code\n",
- "L2: Paragraph\ntext",
- "L2: ListEnd\n",
- "L1: BULLET ListItem\nl2",
- "L1: ListEnd\n",
- "L0: Paragraph\nthe time"
- ])
-
-
- str = %{\
- now is
- 1. l1
- * l1.1
- 2. l2
- the time}
- line_groups(str,
- [ "L0: Paragraph\nnow is",
- "L1: ListStart\n",
- "L1: NUMBER ListItem\nl1",
- "L2: ListStart\n",
- "L2: BULLET ListItem\nl1.1",
- "L2: ListEnd\n",
- "L1: NUMBER ListItem\nl2",
- "L1: ListEnd\n",
- "L0: Paragraph\nthe time"
- ])
-
- str = %{\
- now is
- [cat] l1
- * l1.1
- [dog] l2
- the time}
- line_groups(str,
- [ "L0: Paragraph\nnow is",
- "L1: ListStart\n",
- "L1: LABELED ListItem\ncat: l1",
- "L2: ListStart\n",
- "L2: BULLET ListItem\nl1.1",
- "L2: ListEnd\n",
- "L1: LABELED ListItem\ndog: l2",
- "L1: ListEnd\n",
- "L0: Paragraph\nthe time"
- ])
-
- str = %{\
- now is
- [cat] l1
- continuation
- [dog] l2
- the time}
- line_groups(str,
- [ "L0: Paragraph\nnow is",
- "L1: ListStart\n",
- "L1: LABELED ListItem\ncat: l1 continuation",
- "L1: LABELED ListItem\ndog: l2",
- "L1: ListEnd\n",
- "L0: Paragraph\nthe time"
- ])
- end
-
- def test_headings
- str = "= heading one"
- line_groups(str,
- [ "L0: Heading\nheading one"
- ])
-
- str = "=== heading three"
- line_groups(str,
- [ "L0: Heading\nheading three"
- ])
-
- str = "text\n === heading three"
- line_groups(str,
- [ "L0: Paragraph\ntext",
- "L0: Verbatim\n === heading three\n"
- ])
-
- str = "text\n code\n === heading three"
- line_groups(str,
- [ "L0: Paragraph\ntext",
- "L0: Verbatim\n code\n === heading three\n"
- ])
-
- str = "text\n code\n=== heading three"
- line_groups(str,
- [ "L0: Paragraph\ntext",
- "L0: Verbatim\n code\n",
- "L0: Heading\nheading three"
- ])
-
- end
+ out = m.convert str, tt
- def test_list_alpha
- str = "a. alpha\nb. baker\nB. ALPHA\nA. BAKER"
-
- line_groups(str,
- [ "L1: ListStart\n",
- "L1: LOWERALPHA ListItem\nalpha",
- "L1: LOWERALPHA ListItem\nbaker",
- "L1: ListEnd\n",
- "L1: ListStart\n",
- "L1: UPPERALPHA ListItem\nALPHA",
- "L1: UPPERALPHA ListItem\nBAKER",
- "L1: ListEnd\n" ])
- end
-
- def test_list_bullet_dash
- str = "- one\n- two\n"
-
- line_groups(str,
- [ "L1: ListStart\n",
- "L1: BULLET ListItem\none",
- "L1: BULLET ListItem\ntwo",
- "L1: ListEnd\n" ])
- end
-
- def test_list_bullet_star
- str = "* one\n* two\n"
-
- line_groups(str,
- [ "L1: ListStart\n",
- "L1: BULLET ListItem\none",
- "L1: BULLET ListItem\ntwo",
- "L1: ListEnd\n" ])
- end
-
- def test_list_labeled_bracket
- str = "[one] item one\n[two] item two"
-
- line_groups(str,
- [ "L1: ListStart\n",
- "L1: LABELED ListItem\none: item one",
- "L1: LABELED ListItem\ntwo: item two",
- "L1: ListEnd\n" ])
- end
-
- def test_list_labeled_bracket_continued
- str = "[one]\n item one\n[two]\n item two"
-
- line_groups(str,
- [ "L1: ListStart\n",
- "L1: LABELED ListItem\none: item one",
- "L1: LABELED ListItem\ntwo: item two",
- "L1: ListEnd\n" ])
- end
-
- def test_list_labeled_colon
- str = "one:: item one\ntwo:: item two"
-
- line_groups(str,
- [ "L1: ListStart\n",
- "L1: NOTE ListItem\none:: item one",
- "L1: NOTE ListItem\ntwo:: item two",
- "L1: ListEnd\n" ])
- end
-
- def test_list_labeled_colon_continued
- str = "one::\n item one\ntwo::\n item two"
-
- line_groups(str,
- [ "L1: ListStart\n",
- "L1: NOTE ListItem\none:: item one",
- "L1: NOTE ListItem\ntwo:: item two",
- "L1: ListEnd\n" ])
- end
-
- def test_list_nested_bullet_bullet
- str = "* one\n* two\n * cat\n * dog"
-
- line_groups(str,
- [ "L1: ListStart\n",
- "L1: BULLET ListItem\none",
- "L1: BULLET ListItem\ntwo",
- "L2: ListStart\n",
- "L2: BULLET ListItem\ncat",
- "L2: BULLET ListItem\ndog",
- "L2: ListEnd\n",
- "L1: ListEnd\n" ])
- end
-
- def test_list_nested_labeled_bullet
- str = "[one]\n * cat\n * dog"
-
- line_groups(str,
- [ "L1: ListStart\n",
- "L1: LABELED ListItem\none: ",
- "L2: ListStart\n",
- "L2: BULLET ListItem\ncat",
- "L2: BULLET ListItem\ndog",
- "L2: ListEnd\n",
- "L1: ListEnd\n" ])
- end
-
- def test_list_nested_labeled_bullet_bullet
- str = "[one]\n * cat\n * dog"
-
- line_groups(str,
- [ "L1: ListStart\n",
- "L1: LABELED ListItem\none: ",
- "L2: ListStart\n",
- "L2: BULLET ListItem\ncat",
- "L3: ListStart\n",
- "L3: BULLET ListItem\ndog",
- "L3: ListEnd\n",
- "L2: ListEnd\n",
- "L1: ListEnd\n" ])
- end
-
- def test_list_nested_number_number
- str = "1. one\n1. two\n 1. cat\n 1. dog"
+ expected = [
+ "now is the time",
+ "\n",
+ " hello\n dave\n",
+ "1: ",
+ "l1",
+ "1: ",
+ "l2",
+ ]
- line_groups(str,
- [ "L1: ListStart\n",
- "L1: NUMBER ListItem\none",
- "L1: NUMBER ListItem\ntwo",
- "L2: ListStart\n",
- "L2: NUMBER ListItem\ncat",
- "L2: NUMBER ListItem\ndog",
- "L2: ListEnd\n",
- "L1: ListEnd\n" ])
+ assert_equal expected, out
end
- def test_list_number
- str = "1. one\n2. two\n1. three"
-
- line_groups(str,
- [ "L1: ListStart\n",
- "L1: NUMBER ListItem\none",
- "L1: NUMBER ListItem\ntwo",
- "L1: NUMBER ListItem\nthree",
- "L1: ListEnd\n" ])
- end
+ def test_convert_custom_markup
+ str = <<-STR
+{stricken}
+ STR
- def test_list_split
- str = %{\
- now is
- * l1
- 1. n1
- 2. n2
- * l2
- the time}
- line_groups(str,
- [ "L0: Paragraph\nnow is",
- "L1: ListStart\n",
- "L1: BULLET ListItem\nl1",
- "L1: ListEnd\n",
- "L1: ListStart\n",
- "L1: NUMBER ListItem\nn1",
- "L1: NUMBER ListItem\nn2",
- "L1: ListEnd\n",
- "L1: ListStart\n",
- "L1: BULLET ListItem\nl2",
- "L1: ListEnd\n",
- "L0: Paragraph\nthe time"
- ])
+ m = RDoc::Markup.new
+ m.add_word_pair '{', '}', :STRIKE
- end
+ tt = RDoc::Markup::ToTest.new m
+ tt.add_tag :STRIKE, 'STRIKE ', ' STRIKE'
- def test_paragraph
- str = "paragraph\n\n*bold* paragraph\n"
+ out = m.convert str, tt
- line_groups str, [
- "L0: Paragraph\nparagraph",
- "L0: BlankLine\n",
- "L0: Paragraph\n*bold* paragraph"
+ expected = [
+ "STRIKE stricken STRIKE",
]
- end
- def test_tabs
- str = "hello\n dave"
- assert_equal(str, basic_conv(str))
- str = "hello\n\tdave"
- assert_equal("hello\n dave", basic_conv(str))
- str = "hello\n \tdave"
- assert_equal("hello\n dave", basic_conv(str))
- str = "hello\n \tdave"
- assert_equal("hello\n dave", basic_conv(str))
- str = "hello\n \tdave"
- assert_equal("hello\n dave", basic_conv(str))
- str = "hello\n \tdave"
- assert_equal("hello\n dave", basic_conv(str))
- str = "hello\n \tdave"
- assert_equal("hello\n dave", basic_conv(str))
- str = "hello\n \tdave"
- assert_equal("hello\n dave", basic_conv(str))
- str = "hello\n \tdave"
- assert_equal("hello\n dave", basic_conv(str))
- str = "hello\n \tdave"
- assert_equal("hello\n dave", basic_conv(str))
- str = ".\t\t."
- assert_equal(". .", basic_conv(str))
+ assert_equal expected, out
end
- def test_types
- str = "now is the time"
- line_types(str, 'P')
-
- str = "now is the time\nfor all good men"
- line_types(str, 'PP')
-
- str = "now is the time\n code\nfor all good men"
- line_types(str, 'PVP')
-
- str = "now is the time\n code\n more code\nfor all good men"
- line_types(str, 'PVVP')
+ def test_convert_document
+ doc = RDoc::Markup::Parser.parse <<-STR
+now is
+the time
- str = "now is\n---\nthe time"
- line_types(str, 'PRP')
+ hello
+ dave
- str = %{\
- now is
- * l1
- * l2
- the time}
- line_types(str, 'PLLP')
+1. l1
+2. l2
+ STR
- str = %{\
- now is
- * l1
- l1+
- * l2
- the time}
- line_types(str, 'PLPLP')
-
- str = %{\
- now is
- * l1
- * l1.1
- * l2
- the time}
- line_types(str, 'PLLLP')
-
- str = %{\
- now is
- * l1
- * l1.1
- text
- code
- code
-
- text
- * l2
- the time}
- line_types(str, 'PLLPVVBPLP')
-
- str = %{\
- now is
- 1. l1
- * l1.1
- 2. l2
- the time}
- line_types(str, 'PLLLP')
-
- str = %{\
- now is
- [cat] l1
- * l1.1
- [dog] l2
- the time}
- line_types(str, 'PLLLP')
+ m = RDoc::Markup.new
- str = %{\
- now is
- [cat] l1
- continuation
- [dog] l2
- the time}
- line_types(str, 'PLPLP')
- end
+ tt = RDoc::Markup::ToTest.new m
- def test_verbatim
- str = "paragraph\n *bold* verbatim\n"
+ out = m.convert doc, tt
- line_groups str, [
- "L0: Paragraph\nparagraph",
- "L0: Verbatim\n *bold* verbatim\n"
+ expected = [
+ "now is the time",
+ "\n",
+ " hello\n dave\n",
+ "1: ",
+ "l1",
+ "1: ",
+ "l2",
]
- end
-
- def test_verbatim_merge
- str = %{\
- now is
- code
- the time}
-
- line_groups(str,
- [ "L0: Paragraph\nnow is",
- "L0: Verbatim\n code\n",
- "L0: Paragraph\nthe time"
- ])
-
-
- str = %{\
- now is
- code
- code1
- the time}
-
- line_groups(str,
- [ "L0: Paragraph\nnow is",
- "L0: Verbatim\n code\n code1\n",
- "L0: Paragraph\nthe time"
- ])
-
-
- str = %{\
- now is
- code
-
- code1
- the time}
-
- line_groups(str,
- [ "L0: Paragraph\nnow is",
- "L0: Verbatim\n code\n\n code1\n",
- "L0: Paragraph\nthe time"
- ])
-
-
- str = %{\
- now is
- code
-
- code1
-
- the time}
-
- line_groups(str,
- [ "L0: Paragraph\nnow is",
- "L0: Verbatim\n code\n\n code1\n",
- "L0: Paragraph\nthe time"
- ])
-
-
- str = %{\
- now is
- code
-
- code1
-
- code2
- the time}
-
- line_groups(str,
- [ "L0: Paragraph\nnow is",
- "L0: Verbatim\n code\n\n code1\n\n code2\n",
- "L0: Paragraph\nthe time"
- ])
-
-
- # Folds multiple blank lines
- str = %{\
- now is
- code
-
-
- code1
-
- the time}
-
- line_groups(str,
- [ "L0: Paragraph\nnow is",
- "L0: Verbatim\n code\n\n code1\n",
- "L0: Paragraph\nthe time"
- ])
-
-
- end
-
- def test_whitespace
- assert_equal("hello", basic_conv("hello"))
- assert_equal("hello", basic_conv(" hello "))
- assert_equal("hello", basic_conv(" \t \t hello\t\t"))
-
- assert_equal("1\n 2\n 3", basic_conv("1\n 2\n 3"))
- assert_equal("1\n 2\n 3", basic_conv(" 1\n 2\n 3"))
-
- assert_equal("1\n 2\n 3\n1\n 2", basic_conv("1\n 2\n 3\n1\n 2"))
- assert_equal("1\n 2\n 3\n1\n 2", basic_conv(" 1\n 2\n 3\n 1\n 2"))
- assert_equal("1\n 2\n\n 3", basic_conv(" 1\n 2\n\n 3"))
+ assert_equal expected, out
end
end
-MiniTest::Unit.autorun
diff --git a/test/rdoc/test_rdoc_markup_attribute_manager.rb b/test/rdoc/test_rdoc_markup_attribute_manager.rb
index 520470a8cc..b65457fc7e 100644
--- a/test/rdoc/test_rdoc_markup_attribute_manager.rb
+++ b/test/rdoc/test_rdoc_markup_attribute_manager.rb
@@ -1,14 +1,13 @@
-require "rubygems"
-require "minitest/unit"
-require "rdoc/markup/inline"
-require "rdoc/markup/to_html_crossref"
+require 'rubygems'
+require 'minitest/autorun'
+require 'rdoc'
+require 'rdoc/markup'
+require 'rdoc/markup/inline'
+require 'rdoc/markup/to_html_crossref'
class TestRDocMarkupAttributeManager < MiniTest::Unit::TestCase
def setup
- @orig_special = RDoc::Markup::AttributeManager::SPECIAL
- RDoc::Markup::AttributeManager::SPECIAL.replace Hash.new
-
@am = RDoc::Markup::AttributeManager.new
@bold_on = @am.changed_attribute_by_name([], [:BOLD])
@@ -32,10 +31,6 @@ class TestRDocMarkupAttributeManager < MiniTest::Unit::TestCase
@wombat_off = @am.changed_attribute_by_name([:WOMBAT], [])
end
- def teardown
- RDoc::Markup::AttributeManager::SPECIAL.replace @orig_special
- end
-
def crossref(text)
crossref_bitmap = RDoc::Markup::Attribute.bitmap_for(:_SPECIAL_) |
RDoc::Markup::Attribute.bitmap_for(:CROSSREF)
@@ -55,9 +50,9 @@ class TestRDocMarkupAttributeManager < MiniTest::Unit::TestCase
def test_add_word_pair
@am.add_word_pair '%', '&', 'percent and'
- assert RDoc::Markup::AttributeManager::WORD_PAIR_MAP.include?(/(%)(\S+)(&)/)
- assert RDoc::Markup::AttributeManager::PROTECTABLE.include?('%')
- assert !RDoc::Markup::AttributeManager::PROTECTABLE.include?('&')
+ assert @am.word_pair_map.include?(/(%)(\S+)(&)/)
+ assert @am.protectable.include?('%')
+ assert !@am.protectable.include?('&')
end
def test_add_word_pair_angle
@@ -71,8 +66,8 @@ class TestRDocMarkupAttributeManager < MiniTest::Unit::TestCase
def test_add_word_pair_matching
@am.add_word_pair '^', '^', 'caret'
- assert RDoc::Markup::AttributeManager::MATCHING_WORD_PAIRS.include?('^')
- assert RDoc::Markup::AttributeManager::PROTECTABLE.include?('^')
+ assert @am.matching_word_pairs.include?('^')
+ assert @am.protectable.include?('^')
end
def test_basic
@@ -124,6 +119,10 @@ class TestRDocMarkupAttributeManager < MiniTest::Unit::TestCase
@am.flow("*\\bold*")
end
+ def test_bold_html_escaped
+ assert_equal ['cat <b>dog</b>'], @am.flow('cat \<b>dog</b>')
+ end
+
def test_combined
assert_equal(["cat ", @em_on, "and", @em_off, " ", @bold_on, "dog", @bold_off],
@am.flow("cat _and_ *dog*"))
@@ -196,14 +195,17 @@ class TestRDocMarkupAttributeManager < MiniTest::Unit::TestCase
end
def test_protect
- assert_equal(['cat \\ dog'], @am.flow('cat \\ dog'))
+ assert_equal(['cat \\ dog'],
+ @am.flow('cat \\ dog'))
- assert_equal(["cat <tt>dog</Tt>"], @am.flow("cat \\<tt>dog</Tt>"))
+ assert_equal(["cat <tt>dog</Tt>"],
+ @am.flow("cat \\<tt>dog</Tt>"))
assert_equal(["cat ", @em_on, "and", @em_off, " <B>dog</b>"],
@am.flow("cat <i>and</i> \\<B>dog</b>"))
- assert_equal(["*word* or <b>text</b>"], @am.flow("\\*word* or \\<b>text</b>"))
+ assert_equal(["*word* or <b>text</b>"],
+ @am.flow("\\*word* or \\<b>text</b>"))
assert_equal(["_cat_", @em_on, "dog", @em_off],
@am.flow("\\_cat_<i>dog</i>"))
@@ -229,6 +231,10 @@ class TestRDocMarkupAttributeManager < MiniTest::Unit::TestCase
assert_equal(["cats' ", crossref("#fred")].flatten, @am.flow("cats' #fred"))
end
+ def test_tt_html
+ assert_equal [@tt_on, '"\n"', @tt_off],
+ @am.flow('<tt>"\n"</tt>')
+ end
+
end
-MiniTest::Unit.autorun
diff --git a/test/rdoc/test_rdoc_markup_document.rb b/test/rdoc/test_rdoc_markup_document.rb
new file mode 100644
index 0000000000..9eea019ae4
--- /dev/null
+++ b/test/rdoc/test_rdoc_markup_document.rb
@@ -0,0 +1,152 @@
+require 'pp'
+require 'rubygems'
+require 'minitest/autorun'
+require 'rdoc/markup'
+
+class TestRDocMarkupDocument < MiniTest::Unit::TestCase
+
+ def setup
+ @RM = RDoc::Markup
+ @d = @RM::Document.new
+ end
+
+ def mu_pp obj
+ s = ''
+ s = PP.pp obj, s
+ s.force_encoding Encoding.default_external if defined? Encoding
+ s.chomp
+ end
+
+ def test_append
+ @d << @RM::Paragraph.new('hi')
+
+ expected = @RM::Document.new @RM::Paragraph.new('hi')
+
+ assert_equal expected, @d
+ end
+
+ def test_append_document
+ @d << @RM::Document.new
+
+ assert_empty @d
+
+ @d << @RM::Document.new(@RM::Paragraph.new('hi'))
+
+ expected = @RM::Document.new @RM::Paragraph.new('hi'), @RM::BlankLine.new
+
+ assert_equal expected, @d
+ end
+
+ def test_append_string
+ @d << ''
+
+ assert_empty @d
+
+ assert_raises ArgumentError do
+ @d << 'hi'
+ end
+ end
+
+ def test_empty_eh
+ assert_empty @d
+
+ @d << @RM::BlankLine.new
+
+ refute_empty @d
+ end
+
+ def test_empty_eh_document
+ d = @RM::Document.new @d
+
+ assert_empty d
+ end
+
+ def test_equals2
+ d2 = @RM::Document.new
+
+ assert_equal @d, d2
+
+ d2 << @RM::BlankLine.new
+
+ refute_equal @d, d2
+ end
+
+ def test_equals2_file
+ d2 = @RM::Document.new
+ d2.file = 'file.rb'
+
+ refute_equal @d, d2
+
+ @d.file = 'file.rb'
+
+ assert_equal @d, d2
+ end
+
+ def test_lt2
+ @d << @RM::BlankLine.new
+
+ refute_empty @d
+ end
+
+ def test_merge
+ original = @RM::Document.new @RM::Paragraph.new 'original'
+ original.file = 'file.rb'
+ root = @RM::Document.new original
+
+ replace = @RM::Document.new @RM::Paragraph.new 'replace'
+ replace.file = 'file.rb'
+
+ other = @RM::Document.new replace
+
+ result = root.merge other
+
+ inner = @RM::Document.new @RM::Paragraph.new 'replace'
+ inner.file = 'file.rb'
+ expected = @RM::Document.new inner
+
+ assert_equal expected, result
+ end
+
+ def test_merge_add
+ original = @RM::Document.new @RM::Paragraph.new 'original'
+ original.file = 'file.rb'
+ root = @RM::Document.new original
+
+ addition = @RM::Document.new @RM::Paragraph.new 'addition'
+ addition.file = 'other.rb'
+
+ other = @RM::Document.new addition
+
+ result = root.merge other
+
+ expected = @RM::Document.new original, addition
+
+ assert_equal expected, result
+ end
+
+ def test_merge_empty
+ original = @RM::Document.new
+ root = @RM::Document.new original
+
+ replace = @RM::Document.new @RM::Paragraph.new 'replace'
+ replace.file = 'file.rb'
+
+ other = @RM::Document.new replace
+
+ result = root.merge other
+
+ inner = @RM::Document.new @RM::Paragraph.new 'replace'
+ inner.file = 'file.rb'
+ expected = @RM::Document.new inner
+
+ assert_equal expected, result
+ end
+
+ def test_push
+ @d.push @RM::BlankLine.new, @RM::BlankLine.new
+
+ refute_empty @d
+ end
+
+end
+
diff --git a/test/rdoc/test_rdoc_markup_formatter.rb b/test/rdoc/test_rdoc_markup_formatter.rb
new file mode 100644
index 0000000000..73e75e2aa1
--- /dev/null
+++ b/test/rdoc/test_rdoc_markup_formatter.rb
@@ -0,0 +1,57 @@
+require 'rubygems'
+require 'minitest/autorun'
+require 'rdoc'
+require 'rdoc/markup'
+require 'rdoc/markup/formatter'
+
+class TestRDocMarkupFormatter < MiniTest::Unit::TestCase
+
+ class ToTest < RDoc::Markup::Formatter
+
+ def initialize markup
+ super
+
+ add_tag :TT, '<tt>', '</tt>'
+ end
+
+ def accept_paragraph paragraph
+ @res << attributes(paragraph.text)
+ end
+
+ def attributes text
+ convert_flow @am.flow text.dup
+ end
+
+ def handle_special_CAPS special
+ "handled #{special.text}"
+ end
+
+ def start_accepting
+ @res = ""
+ end
+
+ def end_accepting
+ @res
+ end
+
+ end
+
+ def setup
+ @markup = RDoc::Markup.new
+ @markup.add_special(/[A-Z]+/, :CAPS)
+
+ @to = ToTest.new @markup
+
+ @caps = RDoc::Markup::Attribute.bitmap_for :CAPS
+ @special = RDoc::Markup::Attribute.bitmap_for :_SPECIAL_
+ @tt = RDoc::Markup::Attribute.bitmap_for :TT
+ end
+
+ def test_convert_tt_special
+ converted = @to.convert '<tt>AAA</tt>'
+
+ assert_equal '<tt>AAA</tt>', converted
+ end
+
+end
+
diff --git a/test/rdoc/test_rdoc_markup_indented_paragraph.rb b/test/rdoc/test_rdoc_markup_indented_paragraph.rb
new file mode 100644
index 0000000000..e3e2b630e1
--- /dev/null
+++ b/test/rdoc/test_rdoc_markup_indented_paragraph.rb
@@ -0,0 +1,40 @@
+require 'pp'
+require 'rubygems'
+require 'minitest/autorun'
+require 'rdoc/markup'
+
+class TestRDocMarkupIndentedParagraph < MiniTest::Unit::TestCase
+
+ def setup
+ @IP = RDoc::Markup::IndentedParagraph
+ end
+
+ def test_initialize
+ ip = @IP.new 2, 'a', 'b'
+
+ assert_equal 2, ip.indent
+ assert_equal %w[a b], ip.parts
+ end
+
+ def test_accept
+ visitor = Object.new
+ def visitor.accept_indented_paragraph(obj) @obj = obj end
+ def visitor.obj() @obj end
+
+ paragraph = @IP.new 0
+
+ paragraph.accept visitor
+
+ assert_equal paragraph, visitor.obj
+ end
+
+ def test_equals2
+ one = @IP.new 1
+ two = @IP.new 2
+
+ assert_equal one, one
+ refute_equal one, two
+ end
+
+end
+
diff --git a/test/rdoc/test_rdoc_markup_paragraph.rb b/test/rdoc/test_rdoc_markup_paragraph.rb
new file mode 100644
index 0000000000..6ae1ad9a84
--- /dev/null
+++ b/test/rdoc/test_rdoc_markup_paragraph.rb
@@ -0,0 +1,21 @@
+require 'pp'
+require 'rubygems'
+require 'minitest/autorun'
+require 'rdoc/markup'
+
+class TestRDocMarkupParagraph < MiniTest::Unit::TestCase
+
+ def test_accept
+ visitor = Object.new
+ def visitor.accept_paragraph(obj) @obj = obj end
+ def visitor.obj() @obj end
+
+ paragraph = RDoc::Markup::Paragraph.new
+
+ paragraph.accept visitor
+
+ assert_equal paragraph, visitor.obj
+ end
+
+end
+
diff --git a/test/rdoc/test_rdoc_markup_parser.rb b/test/rdoc/test_rdoc_markup_parser.rb
new file mode 100644
index 0000000000..e214c4defc
--- /dev/null
+++ b/test/rdoc/test_rdoc_markup_parser.rb
@@ -0,0 +1,1486 @@
+# coding: utf-8
+
+require 'pp'
+require 'rubygems'
+require 'minitest/autorun'
+require 'rdoc/markup'
+
+class TestRDocMarkupParser < MiniTest::Unit::TestCase
+
+ def setup
+ @RM = RDoc::Markup
+ @RMP = @RM::Parser
+ end
+
+ def mu_pp(obj)
+ s = ''
+ s = PP.pp obj, s
+ s = s.force_encoding(Encoding.default_external) if defined? Encoding
+ s.chomp
+ end
+
+ def test_build_heading
+ parser = @RMP.new
+
+ parser.tokens.replace [
+ [:TEXT, 'heading three', 4, 0],
+ [:NEWLINE, "\n", 17, 0],
+ ]
+
+ assert_equal @RM::Heading.new(3, 'heading three'), parser.build_heading(3)
+ end
+
+ def test_get
+ parser = util_parser
+
+ assert_equal [:HEADER, 1, 0, 0], parser.get
+
+ assert_equal 7, parser.tokens.length
+ end
+
+ def test_parse_bullet
+ str = <<-STR
+* l1
+* l2
+ STR
+
+ expected = [
+ @RM::List.new(:BULLET, *[
+ @RM::ListItem.new(nil,
+ @RM::Paragraph.new('l1')),
+ @RM::ListItem.new(nil,
+ @RM::Paragraph.new('l2'))])]
+
+ assert_equal expected, @RMP.parse(str).parts
+ end
+
+ def test_parse_bullet_utf_8
+ str = <<-STR
+* æ–°ã—ã„æ©Ÿèƒ½
+ STR
+
+ expected = [
+ @RM::List.new(:BULLET, *[
+ @RM::ListItem.new(nil,
+ @RM::Paragraph.new('æ–°ã—ã„æ©Ÿèƒ½'))])]
+
+ assert_equal expected, @RMP.parse(str).parts
+ end
+
+ def test_parse_bullet_verbatim_heading
+ str = <<-STR
+* l1
+ v
+
+= H
+ STR
+
+ expected = [
+ @RM::List.new(:BULLET, *[
+ @RM::ListItem.new(nil,
+ @RM::Paragraph.new('l1'),
+ @RM::Verbatim.new("v\n"))]),
+ @RM::Heading.new(1, 'H')]
+
+ assert_equal expected, @RMP.parse(str).parts
+ end
+
+ def test_parse_bullet_heading
+ str = <<-STR
+* = l1
+ STR
+
+ expected = [
+ @RM::List.new(:BULLET, *[
+ @RM::ListItem.new(nil,
+ @RM::Heading.new(1, 'l1'))])]
+
+ assert_equal expected, @RMP.parse(str).parts
+ end
+
+ def test_parse_bullet_indent
+ str = <<-STR
+* l1
+ * l1.1
+* l2
+ STR
+
+ expected = [
+ @RM::List.new(:BULLET, *[
+ @RM::ListItem.new(nil,
+ @RM::Paragraph.new('l1'),
+ @RM::List.new(:BULLET, *[
+ @RM::ListItem.new(nil,
+ @RM::Paragraph.new('l1.1'))])),
+ @RM::ListItem.new(nil,
+ @RM::Paragraph.new('l2'))])]
+
+ assert_equal expected, @RMP.parse(str).parts
+ end
+
+ def test_parse_bullet_paragraph
+ str = <<-STR
+now is
+* l1
+* l2
+the time
+ STR
+
+ expected = [
+ @RM::Paragraph.new('now is'),
+ @RM::List.new(:BULLET, *[
+ @RM::ListItem.new(nil,
+ @RM::Paragraph.new('l1')),
+ @RM::ListItem.new(nil,
+ @RM::Paragraph.new('l2')),
+ ]),
+ @RM::Paragraph.new('the time'),
+ ]
+
+ assert_equal expected, @RMP.parse(str).parts
+ end
+
+ def test_parse_bullet_multiline
+ str = <<-STR
+* l1
+ l1+
+* l2
+ STR
+
+ expected = [
+ @RM::List.new(:BULLET, *[
+ @RM::ListItem.new(nil,
+ @RM::Paragraph.new('l1', 'l1+')),
+ @RM::ListItem.new(nil,
+ @RM::Paragraph.new('l2')),
+ ]),
+ ]
+
+ assert_equal expected, @RMP.parse(str).parts
+ end
+
+ def test_parse_bullet_multiparagraph
+ str = <<-STR
+* l1
+
+ l1+
+ STR
+
+ expected = [
+ @RM::List.new(:BULLET, *[
+ @RM::ListItem.new(nil,
+ @RM::Paragraph.new('l1'),
+ @RM::BlankLine.new,
+ @RM::Paragraph.new('l1+')),
+ ]),
+ ]
+
+ assert_equal expected, @RMP.parse(str).parts
+ end
+
+ def test_parse_bullet_indent_verbatim
+ str = <<-STR
+* l1
+ * l1.1
+ text
+ code
+ code
+
+ text
+* l2
+ STR
+
+ expected = [
+ @RM::List.new(:BULLET, *[
+ @RM::ListItem.new(nil,
+ @RM::Paragraph.new('l1'),
+ @RM::List.new(:BULLET, *[
+ @RM::ListItem.new(nil,
+ @RM::Paragraph.new('l1.1', 'text'),
+ @RM::Verbatim.new("code\n", " code\n"),
+ @RM::Paragraph.new('text'))])),
+ @RM::ListItem.new(nil,
+ @RM::Paragraph.new('l2'))])]
+
+ assert_equal expected, @RMP.parse(str).parts
+ end
+
+ def test_parse_dash
+ str = <<-STR
+- one
+- two
+ STR
+
+ expected = [
+ @RM::List.new(:BULLET, *[
+ @RM::ListItem.new(nil,
+ @RM::Paragraph.new('one')),
+ @RM::ListItem.new(nil,
+ @RM::Paragraph.new('two'))])]
+
+ assert_equal expected, @RMP.parse(str).parts
+ end
+
+ def test_parse_heading
+ str = '= heading one'
+
+ expected = [
+ @RM::Heading.new(1, 'heading one')]
+
+ assert_equal expected, @RMP.parse(str).parts
+ end
+
+ def test_parse_heading_three
+ str = '=== heading three'
+
+ expected = [
+ @RM::Heading.new(3, 'heading three')]
+
+ assert_equal expected, @RMP.parse(str).parts
+ end
+
+ def test_parse_heading_bullet
+ str = '= * heading one'
+
+ expected = [
+ @RM::Heading.new(1, '* heading one')]
+
+ assert_equal expected, @RMP.parse(str).parts
+ end
+
+ def test_parse_heading_empty
+ str = <<-STR
+===
+* bullet
+ STR
+
+ expected = [
+ @RM::Heading.new(3, ''),
+ @RM::BlankLine.new,
+ @RM::List.new(:BULLET, *[
+ @RM::ListItem.new(nil,
+ @RM::Paragraph.new('bullet'))]),
+ ]
+
+ assert_equal expected, @RMP.parse(str).parts
+ end
+
+ def test_parse_heading_heading
+ str = '= ='
+
+ expected = [
+ @RM::Heading.new(1, '=')]
+
+ assert_equal expected, @RMP.parse(str).parts
+ end
+
+ def test_parse_heading_lalpha
+ str = '= b. heading one'
+
+ expected = [
+ @RM::Heading.new(1, 'b. heading one')]
+
+ assert_equal expected, @RMP.parse(str).parts
+ end
+
+ def test_parse_heading_label
+ str = '= [heading one]'
+
+ expected = [
+ @RM::Heading.new(1, '[heading one]')]
+
+ assert_equal expected, @RMP.parse(str).parts
+ end
+
+ def test_parse_heading_note
+ str = '= heading one::'
+
+ expected = [
+ @RM::Heading.new(1, 'heading one::')]
+
+ assert_equal expected, @RMP.parse(str).parts
+ end
+
+ def test_parse_heading_number
+ str = '= 5. heading one'
+
+ expected = [
+ @RM::Heading.new(1, '5. heading one')]
+
+ assert_equal expected, @RMP.parse(str).parts
+ end
+
+ def test_parse_heading_ualpha
+ str = '= B. heading one'
+
+ expected = [
+ @RM::Heading.new(1, 'B. heading one')]
+
+ assert_equal expected, @RMP.parse(str).parts
+ end
+
+ def test_parse_label
+ str = <<-STR
+[one] item one
+[two] item two
+ STR
+
+ expected = [
+ @RM::List.new(:LABEL, *[
+ @RM::ListItem.new('one',
+ @RM::Paragraph.new('item one')),
+ @RM::ListItem.new('two',
+ @RM::Paragraph.new('item two'))])]
+
+ assert_equal expected, @RMP.parse(str).parts
+ end
+
+ def test_parse_label_bullet
+ str = <<-STR
+[cat] l1
+ * l1.1
+[dog] l2
+ STR
+
+ expected = [
+ @RM::List.new(:LABEL, *[
+ @RM::ListItem.new('cat',
+ @RM::Paragraph.new('l1'),
+ @RM::List.new(:BULLET, *[
+ @RM::ListItem.new(nil,
+ @RM::Paragraph.new('l1.1'))])),
+ @RM::ListItem.new('dog',
+ @RM::Paragraph.new('l2'))])]
+
+ assert_equal expected, @RMP.parse(str).parts
+ end
+
+ def test_parse_label_multiline
+ str = <<-STR
+[cat] l1
+ continuation
+[dog] l2
+ STR
+
+ expected = [
+ @RM::List.new(:LABEL, *[
+ @RM::ListItem.new('cat',
+ @RM::Paragraph.new('l1', 'continuation')),
+ @RM::ListItem.new('dog',
+ @RM::Paragraph.new('l2'))])]
+
+ assert_equal expected, @RMP.parse(str).parts
+ end
+
+ def test_parse_label_newline
+ str = <<-STR
+[one]
+ item one
+[two]
+ item two
+ STR
+
+ expected = [
+ @RM::List.new(:LABEL, *[
+ @RM::ListItem.new('one',
+ @RM::Paragraph.new('item one')),
+ @RM::ListItem.new('two',
+ @RM::Paragraph.new('item two')),
+ ])]
+
+ assert_equal expected, @RMP.parse(str).parts
+ end
+
+ def test_parse_lalpha
+ str = <<-STR
+a. l1
+b. l2
+ STR
+
+ expected = [
+ @RM::List.new(:LALPHA, *[
+ @RM::ListItem.new(nil,
+ @RM::Paragraph.new('l1')),
+ @RM::ListItem.new(nil,
+ @RM::Paragraph.new('l2'))])]
+
+ assert_equal expected, @RMP.parse(str).parts
+ end
+
+ def test_parse_lalpha_ualpha
+ str = <<-STR
+a. l1
+b. l2
+A. l3
+A. l4
+ STR
+
+ expected = [
+ @RM::List.new(:LALPHA, *[
+ @RM::ListItem.new(nil,
+ @RM::Paragraph.new('l1')),
+ @RM::ListItem.new(nil,
+ @RM::Paragraph.new('l2'))]),
+ @RM::List.new(:UALPHA, *[
+ @RM::ListItem.new(nil,
+ @RM::Paragraph.new('l3')),
+ @RM::ListItem.new(nil,
+ @RM::Paragraph.new('l4'))])]
+
+ assert_equal expected, @RMP.parse(str).parts
+ end
+
+ def test_parse_lalpha_utf_8
+ str = <<-STR
+a. æ–°ã—ã„æ©Ÿèƒ½
+ STR
+
+ expected = [
+ @RM::List.new(:LALPHA, *[
+ @RM::ListItem.new(nil,
+ @RM::Paragraph.new('æ–°ã—ã„æ©Ÿèƒ½'))])]
+
+ assert_equal expected, @RMP.parse(str).parts
+ end
+
+ def test_parse_list_list_1
+ str = <<-STR
+10. para 1
+
+ [label 1]
+ para 1.1
+
+ code
+
+ para 1.2
+ STR
+
+ expected = [
+ @RM::List.new(:NUMBER, *[
+ @RM::ListItem.new(nil, *[
+ @RM::Paragraph.new('para 1'),
+ @RM::BlankLine.new,
+ @RM::List.new(:LABEL, *[
+ @RM::ListItem.new('label 1', *[
+ @RM::Paragraph.new('para 1.1'),
+ @RM::BlankLine.new,
+ @RM::Verbatim.new("code\n"),
+ @RM::Paragraph.new('para 1.2')])])])])]
+
+ assert_equal expected, @RMP.parse(str).parts
+ end
+
+ def test_parse_list_list_2
+ str = <<-STR
+6. para
+
+ label 1:: text 1
+ label 2:: text 2
+ STR
+
+ expected = [
+ @RM::List.new(:NUMBER, *[
+ @RM::ListItem.new(nil, *[
+ @RM::Paragraph.new('para'),
+ @RM::BlankLine.new,
+ @RM::List.new(:NOTE, *[
+ @RM::ListItem.new('label 1',
+ @RM::Paragraph.new('text 1')),
+ @RM::ListItem.new('label 2',
+ @RM::Paragraph.new('text 2'))])])])]
+
+ assert_equal expected, @RMP.parse(str).parts
+ end
+
+ def test_parse_list_verbatim
+ str = <<-STR
+* one
+ verb1
+ verb2
+* two
+ STR
+
+ expected = [
+ @RM::List.new(:BULLET, *[
+ @RM::ListItem.new(nil,
+ @RM::Paragraph.new('one'),
+ @RM::Verbatim.new("verb1\n", "verb2\n")),
+ @RM::ListItem.new(nil,
+ @RM::Paragraph.new('two'))])]
+
+ assert_equal expected, @RMP.parse(str).parts
+ end
+
+ def test_parse_lists
+ str = <<-STR
+now is
+* l1
+1. n1
+2. n2
+* l2
+the time
+ STR
+
+ expected = [
+ @RM::Paragraph.new('now is'),
+ @RM::List.new(:BULLET, *[
+ @RM::ListItem.new(nil,
+ @RM::Paragraph.new('l1'))]),
+ @RM::List.new(:NUMBER, *[
+ @RM::ListItem.new(nil,
+ @RM::Paragraph.new('n1')),
+ @RM::ListItem.new(nil,
+ @RM::Paragraph.new('n2'))]),
+ @RM::List.new(:BULLET, *[
+ @RM::ListItem.new(nil,
+ @RM::Paragraph.new('l2'))]),
+ @RM::Paragraph.new('the time')]
+
+ assert_equal expected, @RMP.parse(str).parts
+ end
+
+ def test_parse_note
+ str = <<-STR
+one:: item one
+two:: item two
+ STR
+
+ expected = [
+ @RM::List.new(:NOTE, *[
+ @RM::ListItem.new('one',
+ @RM::Paragraph.new('item one')),
+ @RM::ListItem.new('two',
+ @RM::Paragraph.new('item two'))])]
+
+ assert_equal expected, @RMP.parse(str).parts
+ end
+
+ def test_parse_note_empty
+ str = <<-STR
+one::
+two::
+ STR
+
+ expected = [
+ @RM::List.new(:NOTE, *[
+ @RM::ListItem.new('one',
+ @RM::BlankLine.new),
+ @RM::ListItem.new('two',
+ @RM::BlankLine.new)])]
+
+ assert_equal expected, @RMP.parse(str).parts
+ end
+
+ def test_parse_note_note
+ str = <<-STR
+one:: two::
+ STR
+
+ expected = [
+ @RM::List.new(:NOTE, *[
+ @RM::ListItem.new('one',
+ @RM::List.new(:NOTE, *[
+ @RM::ListItem.new('two',
+ @RM::BlankLine.new)]))])]
+
+ assert_equal expected, @RMP.parse(str).parts
+ end
+
+ def test_parse_number_bullet
+ str = <<-STR
+1. l1
+ * l1.1
+2. l2
+ STR
+
+ expected = [
+ @RM::List.new(:NUMBER, *[
+ @RM::ListItem.new(nil,
+ @RM::Paragraph.new('l1'),
+ @RM::List.new(:BULLET, *[
+ @RM::ListItem.new(nil,
+ @RM::Paragraph.new('l1.1'))])),
+ @RM::ListItem.new(nil,
+ @RM::Paragraph.new('l2'))])]
+
+ assert_equal expected, @RMP.parse(str).parts
+ end
+
+ def test_parse_paragraph
+ str = <<-STR
+now is the time
+
+for all good men
+ STR
+
+ expected = [
+ @RM::Paragraph.new('now is the time'),
+ @RM::BlankLine.new,
+ @RM::Paragraph.new('for all good men')]
+ assert_equal expected, @RMP.parse(str).parts
+ end
+
+ def test_parse_paragraph_multiline
+ str = "now is the time\nfor all good men"
+
+ expected = @RM::Paragraph.new 'now is the time for all good men'
+ assert_equal [expected], @RMP.parse(str).parts
+ end
+
+ def test_parse_paragraph_verbatim
+ str = <<-STR
+now is the time
+ code _line_ here
+for all good men
+ STR
+
+ expected = [
+ @RM::Paragraph.new('now is the time'),
+ @RM::Verbatim.new("code _line_ here\n"),
+ @RM::Paragraph.new('for all good men'),
+ ]
+ assert_equal expected, @RMP.parse(str).parts
+ end
+
+ def test_parse_rule
+ str = <<-STR
+now is the time
+
+---
+
+for all good men
+ STR
+
+ expected = [
+ @RM::Paragraph.new('now is the time'),
+ @RM::BlankLine.new,
+ @RM::Rule.new(1),
+ @RM::BlankLine.new,
+ @RM::Paragraph.new('for all good men')]
+
+ assert_equal expected, @RMP.parse(str).parts
+ end
+
+ def test_parse_ualpha
+ str = <<-STR
+A. l1
+B. l2
+ STR
+
+ expected = [
+ @RM::List.new(:UALPHA, *[
+ @RM::ListItem.new(nil,
+ @RM::Paragraph.new('l1')),
+ @RM::ListItem.new(nil,
+ @RM::Paragraph.new('l2'))])]
+
+ assert_equal expected, @RMP.parse(str).parts
+ end
+
+ def test_parse_trailing_cr
+ expected = [ @RM::Paragraph.new('Text') ]
+ # FIXME hangs the parser:
+ assert_equal expected, @RMP.parse("Text\r").parts
+ end
+
+ def test_parse_verbatim
+ str = <<-STR
+now is
+ code
+the time
+ STR
+
+ expected = [
+ @RM::Paragraph.new('now is'),
+ @RM::Verbatim.new("code\n"),
+ @RM::Paragraph.new('the time'),
+ ]
+
+ assert_equal expected, @RMP.parse(str).parts
+ end
+
+ def test_parse_verbatim_bullet
+ str = <<-STR
+ * blah
+ STR
+
+ expected = [
+ @RM::Verbatim.new("* blah\n")]
+
+ assert_equal expected, @RMP.parse(str).parts
+ end
+
+ def test_parse_verbatim_dash
+ str = <<-STR
+ - blah
+ STR
+
+ expected = [
+ @RM::Verbatim.new("- blah\n")]
+
+ assert_equal expected, @RMP.parse(str).parts
+ end
+
+ def test_parse_verbatim_fold
+ str = <<-STR
+now is
+ code
+
+
+ code1
+
+the time
+ STR
+
+ expected = [
+ @RM::Paragraph.new('now is'),
+ @RM::Verbatim.new("code\n", "\n", "code1\n"),
+ @RM::Paragraph.new('the time'),
+ ]
+
+ assert_equal expected, @RMP.parse(str).parts
+ end
+
+ def test_parse_verbatim_heading
+ str = <<-STR
+text
+ === heading three
+ STR
+
+ expected = [
+ @RM::Paragraph.new('text'),
+ @RM::Verbatim.new("=== heading three\n")]
+
+ assert_equal expected, @RMP.parse(str).parts
+ end
+
+ def test_parse_verbatim_heading2
+ str = "text\n code\n=== heading three"
+
+ expected = [
+ @RM::Paragraph.new('text'),
+ @RM::Verbatim.new("code\n"),
+ @RM::Heading.new(3, 'heading three')]
+
+ assert_equal expected, @RMP.parse(str).parts
+ end
+
+ def test_parse_verbatim_label
+ str = <<-STR
+ [blah] blah
+ STR
+
+ expected = [
+ @RM::Verbatim.new("[blah] blah\n")]
+
+ assert_equal expected, @RMP.parse(str).parts
+ end
+
+ def test_parse_verbatim_lalpha
+ str = <<-STR
+ b. blah
+ STR
+
+ expected = [
+ @RM::Verbatim.new("b. blah\n")]
+
+ assert_equal expected, @RMP.parse(str).parts
+ end
+
+ def test_parse_verbatim_markup_example
+ str = <<-STR
+text
+ code
+ === heading three
+ STR
+
+ expected = [
+ @RM::Paragraph.new('text'),
+ @RM::Verbatim.new("code\n", "=== heading three\n")]
+
+ assert_equal expected, @RMP.parse(str).parts
+ end
+
+ def test_parse_verbatim_merge
+ str = <<-STR
+now is
+ code
+
+ code1
+the time
+ STR
+
+ expected = [
+ @RM::Paragraph.new('now is'),
+ @RM::Verbatim.new("code\n", "\n", "code1\n"),
+ @RM::Paragraph.new('the time'),
+ ]
+
+ assert_equal expected, @RMP.parse(str).parts
+ end
+
+ def test_parse_verbatim_merge2
+ str = <<-STR
+now is
+ code
+
+ code1
+
+ code2
+the time
+ STR
+
+ expected = [
+ @RM::Paragraph.new('now is'),
+ @RM::Verbatim.new("code\n", "\n", "code1\n", "\n", "code2\n"),
+ @RM::Paragraph.new('the time'),
+ ]
+
+ assert_equal expected, @RMP.parse(str).parts
+ end
+
+ def test_parse_verbatim_multiline
+ str = <<-STR
+now is
+ code
+ code1
+the time
+ STR
+
+ expected = [
+ @RM::Paragraph.new('now is'),
+ @RM::Verbatim.new("code\n", "code1\n"),
+ @RM::Paragraph.new('the time'),
+ ]
+
+ assert_equal expected, @RMP.parse(str).parts
+ end
+
+ def test_parse_verbatim_multilevel
+ str = <<-STR
+now is the time
+ code
+ more code
+for all good men
+ STR
+
+ expected = [
+ @RM::Paragraph.new('now is the time'),
+ @RM::Verbatim.new(" code\n",
+ "more code\n"),
+ @RM::Paragraph.new('for all good men'),
+ ]
+
+ assert_equal expected, @RMP.parse(str).parts
+ end
+
+ def test_parse_verbatim_note
+ str = <<-STR
+ blah:: blah
+ STR
+
+ expected = [
+ @RM::Verbatim.new("blah:: blah\n")]
+
+ assert_equal expected, @RMP.parse(str).parts
+ end
+
+ def test_parse_verbatim_number
+ str = <<-STR
+ 2. blah
+ STR
+
+ expected = [
+ @RM::Verbatim.new("2. blah\n")]
+
+ assert_equal expected, @RMP.parse(str).parts
+ end
+
+ def test_parse_verbatim_rule
+ str = <<-STR
+text
+
+ --- lib/blah.rb.orig
+ +++ lib/blah.rb
+ STR
+
+ expected = [
+ @RM::Paragraph.new('text'),
+ @RM::BlankLine.new,
+ @RM::Verbatim.new("--- lib/blah.rb.orig\n",
+ "+++ lib/blah.rb\n")]
+
+ assert_equal expected, @RMP.parse(str).parts
+ end
+
+ def test_parse_verbatim_rule2
+ str = <<-STR.chomp
+text
+
+ ---
+ STR
+
+ expected = [
+ @RM::Paragraph.new('text'),
+ @RM::BlankLine.new,
+ @RM::Verbatim.new("---")]
+
+ assert_equal expected, @RMP.parse(str).parts
+ end
+
+ def test_parse_verbatim_trim
+ str = <<-STR
+now is
+ code
+
+ code1
+
+the time
+ STR
+
+ expected = [
+ @RM::Paragraph.new('now is'),
+ @RM::Verbatim.new("code\n",
+ "\n",
+ "code1\n"),
+ @RM::Paragraph.new('the time'),
+ ]
+
+ assert_equal expected, @RMP.parse(str).parts
+ end
+
+ def test_parse_verbatim_ualpha
+ str = <<-STR
+ B. blah
+ STR
+
+ expected = [
+ @RM::Verbatim.new("B. blah\n")]
+
+ assert_equal expected, @RMP.parse(str).parts
+ end
+
+ def test_parse_whitespace
+ expected = [
+ @RM::Paragraph.new('hello'),
+ ]
+
+ assert_equal expected, @RMP.parse('hello').parts
+
+ expected = [
+ @RM::Verbatim.new('hello '),
+ ]
+
+ assert_equal expected, @RMP.parse(' hello ').parts
+
+ expected = [
+ @RM::Verbatim.new('hello '),
+ ]
+
+ assert_equal expected, @RMP.parse(' hello ').parts
+
+ expected = [
+ @RM::Paragraph.new('1'),
+ @RM::Verbatim.new("2\n", ' 3'),
+ ]
+
+ assert_equal expected, @RMP.parse("1\n 2\n 3").parts
+
+ expected = [
+ @RM::Verbatim.new("1\n",
+ " 2\n",
+ " 3"),
+ ]
+
+ assert_equal expected, @RMP.parse(" 1\n 2\n 3").parts
+
+ expected = [
+ @RM::Paragraph.new('1'),
+ @RM::Verbatim.new("2\n",
+ " 3\n"),
+ @RM::Paragraph.new('1'),
+ @RM::Verbatim.new('2'),
+ ]
+
+ assert_equal expected, @RMP.parse("1\n 2\n 3\n1\n 2").parts
+
+ expected = [
+ @RM::Verbatim.new("1\n",
+ " 2\n",
+ " 3\n",
+ "1\n",
+ ' 2'),
+ ]
+
+ assert_equal expected, @RMP.parse(" 1\n 2\n 3\n 1\n 2").parts
+
+ expected = [
+ @RM::Verbatim.new("1\n",
+ " 2\n",
+ "\n",
+ ' 3'),
+ ]
+
+ assert_equal expected, @RMP.parse(" 1\n 2\n\n 3").parts
+ end
+
+ def test_peek_token
+ parser = util_parser
+
+ assert_equal [:HEADER, 1, 0, 0], parser.peek_token
+
+ assert_equal 8, parser.tokens.length
+ end
+
+ def test_skip
+ parser = util_parser
+
+ assert_equal [:HEADER, 1, 0, 0], parser.skip(:HEADER)
+
+ assert_equal [:TEXT, 'Heading', 2, 0], parser.get
+
+ assert_equal [:NEWLINE, "\n", 9, 0], parser.peek_token
+
+ assert_raises RDoc::Markup::Parser::ParseError do
+ parser.skip :NONE
+ end
+
+ assert_equal [:NEWLINE, "\n", 9, 0], parser.peek_token
+
+ assert_equal nil, parser.skip(:NONE, false)
+
+ assert_equal [:NEWLINE, "\n", 9, 0], parser.peek_token
+ end
+
+ def test_tokenize_bullet
+ str = <<-STR
+* l1
+ STR
+
+ expected = [
+ [:BULLET, '*', 0, 0],
+ [:TEXT, 'l1', 2, 0],
+ [:NEWLINE, "\n", 4, 0],
+ ]
+
+ assert_equal expected, @RMP.tokenize(str)
+ end
+
+ def test_tokenize_bullet_indent
+ str = <<-STR
+* l1
+ * l1.1
+ STR
+
+ expected = [
+ [:BULLET, '*', 0, 0],
+ [:TEXT, 'l1', 2, 0],
+ [:NEWLINE, "\n", 4, 0],
+ [:BULLET, '*', 2, 1],
+ [:TEXT, 'l1.1', 4, 1],
+ [:NEWLINE, "\n", 8, 1],
+ ]
+
+ assert_equal expected, @RMP.tokenize(str)
+ end
+
+ def test_tokenize_heading
+ str = <<-STR
+= Heading
+== Heading 2
+ STR
+
+ expected = [
+ [:HEADER, 1, 0, 0],
+ [:TEXT, 'Heading', 2, 0],
+ [:NEWLINE, "\n", 9, 0],
+ [:HEADER, 2, 0, 1],
+ [:TEXT, 'Heading 2', 3, 1],
+ [:NEWLINE, "\n", 12, 1],
+ ]
+
+ assert_equal expected, @RMP.tokenize(str)
+ end
+
+ def test_tokenize_heading_empty
+ str = <<-STR
+===
+* bullet
+ STR
+
+ expected = [
+ [:HEADER, 3, 0, 0],
+ [:NEWLINE, "\n", 3, 0],
+ [:BULLET, "*", 0, 1],
+ [:TEXT, "bullet", 2, 1],
+ [:NEWLINE, "\n", 8, 1],
+ ]
+
+ assert_equal expected, @RMP.tokenize(str)
+ end
+
+ def test_tokenize_heading_heading
+ str = <<-STR
+= =
+ STR
+
+ expected = [
+ [:HEADER, 1, 0, 0],
+ [:TEXT, '=', 2, 0],
+ [:NEWLINE, "\n", 3, 0],
+ ]
+
+ assert_equal expected, @RMP.tokenize(str)
+ end
+
+ def test_tokenize_heading_no_space
+ str = <<-STR
+=Heading
+==Heading 2
+ STR
+
+ expected = [
+ [:HEADER, 1, 0, 0],
+ [:TEXT, 'Heading', 1, 0],
+ [:NEWLINE, "\n", 8, 0],
+ [:HEADER, 2, 0, 1],
+ [:TEXT, 'Heading 2', 2, 1],
+ [:NEWLINE, "\n", 11, 1],
+ ]
+
+ assert_equal expected, @RMP.tokenize(str)
+ end
+
+ def test_tokenize_label
+ str = <<-STR
+[cat] l1
+[dog] l1.1
+ STR
+
+ expected = [
+ [:LABEL, 'cat', 0, 0],
+ [:TEXT, 'l1', 6, 0],
+ [:NEWLINE, "\n", 8, 0],
+ [:LABEL, 'dog', 0, 1],
+ [:TEXT, 'l1.1', 6, 1],
+ [:NEWLINE, "\n", 10, 1],
+ ]
+
+ assert_equal expected, @RMP.tokenize(str)
+ end
+
+ def test_tokenize_label_note
+ str = <<-STR
+[label]
+ note::
+ STR
+
+ expected = [
+ [:LABEL, 'label', 0, 0],
+ [:NEWLINE, "\n", 7, 0],
+ [:NOTE, 'note', 2, 1],
+ [:NEWLINE, "\n", 8, 1],
+ ]
+
+ assert_equal expected, @RMP.tokenize(str)
+ end
+
+ def test_tokenize_lalpha
+ str = <<-STR
+a. l1
+b. l1.1
+ STR
+
+ expected = [
+ [:LALPHA, 'a', 0, 0],
+ [:TEXT, 'l1', 3, 0],
+ [:NEWLINE, "\n", 5, 0],
+ [:LALPHA, 'b', 0, 1],
+ [:TEXT, 'l1.1', 3, 1],
+ [:NEWLINE, "\n", 7, 1],
+ ]
+
+ assert_equal expected, @RMP.tokenize(str)
+ end
+
+ def test_tokenize_note
+ str = <<-STR
+cat:: l1
+dog:: l1.1
+ STR
+
+ expected = [
+ [:NOTE, 'cat', 0, 0],
+ [:TEXT, 'l1', 6, 0],
+ [:NEWLINE, "\n", 8, 0],
+ [:NOTE, 'dog', 0, 1],
+ [:TEXT, 'l1.1', 6, 1],
+ [:NEWLINE, "\n", 10, 1],
+ ]
+
+ assert_equal expected, @RMP.tokenize(str)
+ end
+
+ def test_tokenize_note_empty
+ str = <<-STR
+cat::
+dog::
+ STR
+
+ expected = [
+ [:NOTE, 'cat', 0, 0],
+ [:NEWLINE, "\n", 5, 0],
+ [:NOTE, 'dog', 0, 1],
+ [:NEWLINE, "\n", 5, 1],
+ ]
+
+ assert_equal expected, @RMP.tokenize(str)
+ end
+
+ def test_tokenize_note_not
+ str = <<-STR
+Cat::Dog
+ STR
+
+ expected = [
+ [:TEXT, 'Cat::Dog', 0, 0],
+ [:NEWLINE, "\n", 8, 0],
+ ]
+
+ assert_equal expected, @RMP.tokenize(str)
+ end
+
+ def test_tokenize_number
+ str = <<-STR
+1. l1
+2. l1.1
+ STR
+
+ expected = [
+ [:NUMBER, '1', 0, 0],
+ [:TEXT, 'l1', 3, 0],
+ [:NEWLINE, "\n", 5, 0],
+ [:NUMBER, '2', 0, 1],
+ [:TEXT, 'l1.1', 3, 1],
+ [:NEWLINE, "\n", 7, 1],
+ ]
+
+ assert_equal expected, @RMP.tokenize(str)
+ end
+
+ def test_tokenize_number_period
+ str = <<-STR
+1. blah blah blah
+ l.
+2. blah blah blah blah
+ d.
+ STR
+
+ expected = [
+ [:NUMBER, "1", 0, 0],
+ [:TEXT, "blah blah blah", 3, 0],
+ [:NEWLINE, "\n", 17, 0],
+
+ [:TEXT, "l.", 3, 1],
+ [:NEWLINE, "\n", 5, 1],
+
+ [:NUMBER, "2", 0, 2],
+ [:TEXT, "blah blah blah blah", 3, 2],
+ [:NEWLINE, "\n", 22, 2],
+
+ [:TEXT, "d.", 3, 3],
+ [:NEWLINE, "\n", 5, 3]
+ ]
+
+ assert_equal expected, @RMP.tokenize(str)
+ end
+
+ def test_tokenize_number_period_continue
+ str = <<-STR
+1. blah blah blah
+ l. more stuff
+2. blah blah blah blah
+ d. other stuff
+ STR
+
+ expected = [
+ [:NUMBER, "1", 0, 0],
+ [:TEXT, "blah blah blah", 3, 0],
+ [:NEWLINE, "\n", 17, 0],
+
+ [:LALPHA, "l", 3, 1],
+ [:TEXT, "more stuff", 7, 1],
+ [:NEWLINE, "\n", 17, 1],
+
+ [:NUMBER, "2", 0, 2],
+ [:TEXT, "blah blah blah blah", 3, 2],
+ [:NEWLINE, "\n", 22, 2],
+
+ [:LALPHA, "d", 3, 3],
+ [:TEXT, "other stuff", 6, 3],
+ [:NEWLINE, "\n", 17, 3]
+ ]
+
+ assert_equal expected, @RMP.tokenize(str)
+ end
+
+ def test_tokenize_paragraphs
+ str = <<-STR
+now is
+the time
+
+for all
+ STR
+
+ expected = [
+ [:TEXT, 'now is', 0, 0],
+ [:NEWLINE, "\n", 6, 0],
+ [:TEXT, 'the time', 0, 1],
+ [:NEWLINE, "\n", 8, 1],
+ [:NEWLINE, "\n", 0, 2],
+ [:TEXT, 'for all', 0, 3],
+ [:NEWLINE, "\n", 7, 3],
+ ]
+
+ assert_equal expected, @RMP.tokenize(str)
+ end
+
+ def test_tokenize_rule
+ str = <<-STR
+---
+
+--- blah ---
+ STR
+
+ expected = [
+ [:RULE, 1, 0, 0],
+ [:NEWLINE, "\n", 3, 0],
+ [:NEWLINE, "\n", 0, 1],
+ [:TEXT, "--- blah ---", 0, 2],
+ [:NEWLINE, "\n", 12, 2],
+ ]
+
+ assert_equal expected, @RMP.tokenize(str)
+ end
+
+ def test_tokenize_ualpha
+ str = <<-STR
+A. l1
+B. l1.1
+ STR
+
+ expected = [
+ [:UALPHA, 'A', 0, 0],
+ [:TEXT, 'l1', 3, 0],
+ [:NEWLINE, "\n", 5, 0],
+ [:UALPHA, 'B', 0, 1],
+ [:TEXT, 'l1.1', 3, 1],
+ [:NEWLINE, "\n", 7, 1],
+ ]
+
+ assert_equal expected, @RMP.tokenize(str)
+ end
+
+ def test_tokenize_verbatim_heading
+ str = <<-STR
+Example heading:
+
+ === heading three
+ STR
+
+ expected = [
+ [:TEXT, 'Example heading:', 0, 0],
+ [:NEWLINE, "\n", 16, 0],
+ [:NEWLINE, "\n", 0, 1],
+ [:HEADER, 3, 3, 2],
+ [:TEXT, 'heading three', 7, 2],
+ [:NEWLINE, "\n", 20, 2],
+ ]
+
+ assert_equal expected, @RMP.tokenize(str)
+ end
+
+ def test_tokenize_verbatim_rule
+ str = <<-STR
+ Verbatim section here that is double-underlined
+ ===============================================
+ STR
+
+ expected = [
+ [:TEXT, 'Verbatim section here that is double-underlined', 2, 0],
+ [:NEWLINE, "\n", 49, 0],
+ [:HEADER, 47, 2, 1],
+ [:NEWLINE, "\n", 49, 1],
+ ]
+
+ assert_equal expected, @RMP.tokenize(str)
+ end
+
+ def test_tokenize_verbatim_rule_fancy
+ str = <<-STR
+ A
+ b
+ ===============================================
+ c
+ STR
+
+ expected = [
+ [:TEXT, 'A', 2, 0],
+ [:NEWLINE, "\n", 3, 0],
+ [:TEXT, 'b', 4, 1],
+ [:NEWLINE, "\n", 5, 1],
+ [:HEADER, 47, 2, 2],
+ [:NEWLINE, "\n", 49, 2],
+ [:TEXT, 'c', 4, 3],
+ [:NEWLINE, "\n", 5, 3],
+ ]
+
+ assert_equal expected, @RMP.tokenize(str)
+ end
+
+ # HACK move to Verbatim test case
+ def test_verbatim_normalize
+ v = @RM::Verbatim.new "foo\n", "\n", "\n", "bar\n"
+
+ v.normalize
+
+ assert_equal ["foo\n", "\n", "bar\n"], v.parts
+
+ v = @RM::Verbatim.new "foo\n", "\n"
+
+ v.normalize
+
+ assert_equal ["foo\n"], v.parts
+ end
+
+ def test_unget
+ parser = util_parser
+
+ parser.get
+
+ parser.unget
+
+ assert_equal [:HEADER, 1, 0, 0], parser.peek_token
+
+ assert_raises @RMP::Error do
+ parser.unget
+ end
+
+ assert_equal 8, parser.tokens.length
+ end
+
+ def util_parser
+ str = <<-STR
+= Heading
+
+Some text here
+some more text over here
+ STR
+
+ @parser = @RMP.new
+ @parser.tokenize str
+ @parser
+ end
+
+end
+
diff --git a/test/rdoc/test_rdoc_markup_pre_process.rb b/test/rdoc/test_rdoc_markup_pre_process.rb
new file mode 100644
index 0000000000..34867c8c6b
--- /dev/null
+++ b/test/rdoc/test_rdoc_markup_pre_process.rb
@@ -0,0 +1,410 @@
+# coding: utf-8
+
+require 'tempfile'
+require 'rubygems'
+require 'minitest/autorun'
+require 'rdoc/markup/pre_process'
+require 'rdoc/code_objects'
+require 'rdoc/options'
+
+class TestRDocMarkupPreProcess < MiniTest::Unit::TestCase
+
+ def setup
+ RDoc::Markup::PreProcess.registered.clear
+
+ @tempfile = Tempfile.new 'test_rdoc_markup_pre_process'
+ @file_name = File.basename @tempfile.path
+ @dir = File.dirname @tempfile.path
+
+ @pp = RDoc::Markup::PreProcess.new __FILE__, [@dir]
+ end
+
+ def teardown
+ RDoc::Markup::PreProcess.registered.clear
+
+ @tempfile.close
+ end
+
+ def test_include_file
+ @tempfile.write <<-INCLUDE
+# -*- mode: rdoc; coding: utf-8; fill-column: 74; -*-
+
+Regular expressions (<i>regexp</i>s) are patterns which describe the
+contents of a string.
+ INCLUDE
+
+ @tempfile.flush
+ @tempfile.rewind
+
+ content = @pp.include_file @file_name, '', nil
+
+ expected = <<-EXPECTED
+Regular expressions (<i>regexp</i>s) are patterns which describe the
+contents of a string.
+ EXPECTED
+
+ assert_equal expected, content
+ end
+
+ def test_include_file_encoding_incompatible
+ skip "Encoding not implemented" unless Object.const_defined? :Encoding
+
+ @tempfile.write <<-INCLUDE
+# -*- mode: rdoc; coding: utf-8; fill-column: 74; -*-
+
+Ï€
+ INCLUDE
+
+ @tempfile.flush
+ @tempfile.rewind
+
+ content = @pp.include_file @file_name, '', Encoding::US_ASCII
+
+ expected = "?\n"
+
+ assert_equal expected, content
+ end
+
+ def test_handle
+ text = "# :main: M\n"
+ out = @pp.handle text
+
+ assert_same out, text
+ assert_equal "#\n", text
+ end
+
+ def test_handle_unregistered
+ text = "# :x: y\n"
+ out = @pp.handle text
+
+ assert_same out, text
+ assert_equal "# :x: y\n", text
+ end
+
+ def test_handle_directive_blankline
+ result = @pp.handle_directive '#', 'arg', 'a, b'
+
+ assert_equal "#\n", result
+ end
+
+ def test_handle_directive_downcase
+ method = RDoc::AnyMethod.new nil, 'm'
+
+ @pp.handle_directive '', 'ARG', 'a, b', method
+
+ assert_equal 'a, b', method.params
+ end
+
+ def test_handle_directive_arg
+ method = RDoc::AnyMethod.new nil, 'm'
+
+ @pp.handle_directive '', 'arg', 'a, b', method
+
+ assert_equal 'a, b', method.params
+ end
+
+ def test_handle_directive_arg_no_context
+ result = @pp.handle_directive '', 'arg', 'a, b', nil
+
+ assert_equal "\n", result
+ end
+
+ def test_handle_directive_args
+ method = RDoc::AnyMethod.new nil, 'm'
+
+ @pp.handle_directive '', 'args', 'a, b', method
+
+ assert_equal 'a, b', method.params
+ end
+
+ def test_handle_directive_block
+ result = @pp.handle_directive '', 'x', 'y' do |directive, param|
+ ''
+ end
+
+ assert_empty result
+ end
+
+ def test_handle_directive_block_false
+ result = @pp.handle_directive '', 'x', 'y' do |directive, param|
+ false
+ end
+
+ assert_equal ":x: y\n", result
+ end
+
+ def test_handle_directive_block_nil
+ result = @pp.handle_directive '', 'x', 'y' do |directive, param|
+ nil
+ end
+
+ assert_equal ":x: y\n", result
+ end
+
+ def test_handle_directive_category
+ context = RDoc::Context.new
+ original_section = context.current_section
+
+ @pp.handle_directive '', 'category', 'other', context
+
+ refute_equal original_section, context.current_section
+ end
+
+ def test_handle_directive_doc
+ code_object = RDoc::CodeObject.new
+ code_object.document_self = false
+ code_object.force_documentation = false
+
+ @pp.handle_directive '', 'doc', nil, code_object
+
+ assert code_object.document_self
+ assert code_object.force_documentation
+ end
+
+ def test_handle_directive_doc_no_context
+ result = @pp.handle_directive '', 'doc', nil
+
+ assert_equal "\n", result
+ end
+
+ def test_handle_directive_enddoc
+ code_object = RDoc::CodeObject.new
+
+ @pp.handle_directive '', 'enddoc', nil, code_object
+
+ assert code_object.done_documenting
+ end
+
+ def test_handle_directive_include
+ @tempfile.write 'included'
+ @tempfile.flush
+
+ result = @pp.handle_directive '', 'include', @file_name
+
+ assert_equal 'included', result
+ end
+
+ def test_handle_directive_main
+ @pp.options = RDoc::Options.new
+
+ @pp.handle_directive '', 'main', 'M'
+
+ assert_equal 'M', @pp.options.main_page
+ end
+
+ def test_handle_directive_notnew
+ m = RDoc::AnyMethod.new nil, 'm'
+
+ @pp.handle_directive '', 'notnew', nil, m
+
+ assert m.dont_rename_initialize
+ end
+
+ def test_handle_directive_not_new
+ m = RDoc::AnyMethod.new nil, 'm'
+
+ @pp.handle_directive '', 'not_new', nil, m
+
+ assert m.dont_rename_initialize
+ end
+
+ def test_handle_directive_not_dash_new
+ m = RDoc::AnyMethod.new nil, 'm'
+
+ @pp.handle_directive '', 'not-new', nil, m
+
+ assert m.dont_rename_initialize
+ end
+
+ def test_handle_directive_nodoc
+ code_object = RDoc::CodeObject.new
+ code_object.document_self = true
+ code_object.document_children = true
+
+ @pp.handle_directive '', 'nodoc', nil, code_object
+
+ refute code_object.document_self
+ assert code_object.document_children
+ end
+
+ def test_handle_directive_nodoc_all
+ code_object = RDoc::CodeObject.new
+ code_object.document_self = true
+ code_object.document_children = true
+
+ @pp.handle_directive '', 'nodoc', 'all', code_object
+
+ refute code_object.document_self
+ refute code_object.document_children
+ end
+
+ def test_handle_directive_nodoc_no_context
+ result = @pp.handle_directive '', 'nodoc', nil
+
+ assert_equal "\n", result
+ end
+
+ def test_handle_directive_registered
+ RDoc::Markup::PreProcess.register 'x'
+
+ result = @pp.handle_directive '', 'x', 'y'
+
+ assert_nil result
+
+ result = @pp.handle_directive '', 'x', 'y' do |directive, param|
+ false
+ end
+
+ assert_equal ":x: y\n", result
+
+ result = @pp.handle_directive '', 'x', 'y' do |directive, param|
+ ''
+ end
+
+ assert_equal '', result
+ end
+
+ def test_handle_directive_registered_block
+ called = nil
+
+ RDoc::Markup::PreProcess.register 'x' do |directive, param|
+ called = [directive, param]
+ 'blah'
+ end
+
+ result = @pp.handle_directive '', 'x', 'y'
+
+ assert_equal 'blah', result
+ assert_equal %w[x y], called
+ end
+
+ def test_handle_directive_registered_code_object
+ RDoc::Markup::PreProcess.register 'x'
+ code_object = RDoc::CodeObject.new
+
+ @pp.handle_directive '', 'x', 'y', code_object
+
+ assert_equal 'y', code_object.metadata['x']
+
+ code_object.metadata.clear
+
+ result = @pp.handle_directive '', 'x', 'y' do |directive, param|
+ false
+ end
+
+ assert_equal ":x: y\n", result
+ assert_empty code_object.metadata
+
+ result = @pp.handle_directive '', 'x', 'y' do |directive, param|
+ ''
+ end
+
+ assert_equal '', result
+ assert_empty code_object.metadata
+ end
+
+ def test_handle_directive_startdoc
+ code_object = RDoc::CodeObject.new
+ code_object.stop_doc
+ code_object.force_documentation = false
+
+ @pp.handle_directive '', 'startdoc', nil, code_object
+
+ assert code_object.document_self
+ assert code_object.document_children
+ assert code_object.force_documentation
+ end
+
+ def test_handle_directive_stopdoc
+ code_object = RDoc::CodeObject.new
+
+ @pp.handle_directive '', 'stopdoc', nil, code_object
+
+ refute code_object.document_self
+ refute code_object.document_children
+ end
+
+ def test_handle_directive_title
+ @pp.options = RDoc::Options.new
+
+ @pp.handle_directive '', 'title', 'T'
+
+ assert_equal 'T', @pp.options.title
+ end
+
+ def test_handle_directive_unhandled
+ code_object = RDoc::CodeObject.new
+
+ @pp.handle_directive '', 'x', 'y', code_object
+
+ assert_equal 'y', code_object.metadata['x']
+
+ code_object.metadata.clear
+
+ @pp.handle_directive '', 'x', '', code_object
+
+ assert_includes code_object.metadata, 'x'
+ end
+
+ def test_handle_directive_unhandled_block
+ code_object = RDoc::CodeObject.new
+
+ @pp.handle_directive '', 'x', 'y', code_object do
+ false
+ end
+
+ assert_empty code_object.metadata
+
+ @pp.handle_directive '', 'x', 'y', code_object do
+ nil
+ end
+
+ assert_equal 'y', code_object.metadata['x']
+
+ code_object.metadata.clear
+
+ @pp.handle_directive '', 'x', 'y', code_object do
+ ''
+ end
+
+ assert_empty code_object.metadata
+ end
+
+ def test_handle_directive_yield
+ method = RDoc::AnyMethod.new nil, 'm'
+ method.params = 'index, &block'
+
+ @pp.handle_directive '', 'yield', 'item', method
+
+ assert_equal 'item', method.block_params
+ assert_equal 'index', method.params
+ end
+
+ def test_handle_directive_yield_block_param
+ method = RDoc::AnyMethod.new nil, 'm'
+ method.params = '&block'
+
+ @pp.handle_directive '', 'yield', 'item', method
+
+ assert_equal 'item', method.block_params
+ assert_empty method.params
+ end
+
+ def test_handle_directive_yield_no_context
+ method = RDoc::AnyMethod.new nil, 'm'
+
+ @pp.handle_directive '', 'yield', 'item', method
+
+ assert_equal 'item', method.block_params
+ end
+
+ def test_handle_directive_yields
+ method = RDoc::AnyMethod.new nil, 'm'
+
+ @pp.handle_directive '', 'yields', 'item', method
+
+ assert_equal 'item', method.block_params
+ end
+
+end
+
diff --git a/test/rdoc/test_rdoc_markup_raw.rb b/test/rdoc/test_rdoc_markup_raw.rb
new file mode 100644
index 0000000000..4e57b7df39
--- /dev/null
+++ b/test/rdoc/test_rdoc_markup_raw.rb
@@ -0,0 +1,27 @@
+require 'pp'
+require 'rubygems'
+require 'minitest/autorun'
+require 'rdoc/markup'
+
+class TestRDocMarkupRaw < MiniTest::Unit::TestCase
+
+ def setup
+ @RM = RDoc::Markup
+ @p = @RM::Raw.new
+ end
+
+ def mu_pp obj
+ s = ''
+ s = PP.pp obj, s
+ s.force_encoding Encoding.default_external if defined? Encoding
+ s.chomp
+ end
+
+ def test_push
+ @p.push 'hi', 'there'
+
+ assert_equal @RM::Raw.new('hi', 'there'), @p
+ end
+
+end
+
diff --git a/test/rdoc/test_rdoc_markup_to_ansi.rb b/test/rdoc/test_rdoc_markup_to_ansi.rb
new file mode 100644
index 0000000000..f60d1999c2
--- /dev/null
+++ b/test/rdoc/test_rdoc_markup_to_ansi.rb
@@ -0,0 +1,332 @@
+require 'rubygems'
+require 'rdoc/markup/text_formatter_test_case'
+require 'rdoc/markup/to_ansi'
+require 'minitest/autorun'
+
+class TestRDocMarkupToAnsi < RDoc::Markup::TextFormatterTestCase
+
+ add_visitor_tests
+ add_text_tests
+
+ def setup
+ super
+
+ @to = RDoc::Markup::ToAnsi.new
+ end
+
+ def accept_blank_line
+ assert_equal "\e[0m\n", @to.res.join
+ end
+
+ def accept_document
+ assert_equal "\e[0mhello\n", @to.res.join
+ end
+
+ def accept_heading
+ assert_equal "\e[0mHello\n", @to.res.join
+ end
+
+ def accept_list_end_bullet
+ assert_empty @to.list_index
+ assert_empty @to.list_type
+ assert_empty @to.list_width
+ end
+
+ def accept_list_end_label
+ assert_empty @to.list_index
+ assert_empty @to.list_type
+ assert_empty @to.list_width
+ end
+
+ def accept_list_end_lalpha
+ assert_empty @to.list_index
+ assert_empty @to.list_type
+ assert_empty @to.list_width
+ end
+
+ def accept_list_end_note
+ assert_empty @to.list_index
+ assert_empty @to.list_type
+ assert_empty @to.list_width
+ end
+
+ def accept_list_end_number
+ assert_empty @to.list_index
+ assert_empty @to.list_type
+ assert_empty @to.list_width
+ end
+
+ def accept_list_end_ualpha
+ assert_empty @to.list_index
+ assert_empty @to.list_type
+ assert_empty @to.list_width
+ end
+
+ def accept_list_item_end_bullet
+ assert_equal 0, @to.indent, 'indent'
+ end
+
+ def accept_list_item_end_label
+ assert_equal "\e[0m", @to.res.join
+ assert_equal 0, @to.indent, 'indent'
+ end
+
+ def accept_list_item_end_lalpha
+ assert_equal 0, @to.indent, 'indent'
+ assert_equal 'b', @to.list_index.last
+ end
+
+ def accept_list_item_end_note
+ assert_equal "\e[0m", @to.res.join
+ assert_equal 0, @to.indent, 'indent'
+ end
+
+ def accept_list_item_end_number
+ assert_equal 0, @to.indent, 'indent'
+ assert_equal 2, @to.list_index.last
+ end
+
+ def accept_list_item_end_ualpha
+ assert_equal 0, @to.indent, 'indent'
+ assert_equal 'B', @to.list_index.last
+ end
+
+ def accept_list_item_start_bullet
+ assert_equal %W"\e[0m", @to.res
+ assert_equal '* ', @to.prefix
+ end
+
+ def accept_list_item_start_label
+ assert_equal %W"\e[0m", @to.res
+ assert_equal "cat:\n ", @to.prefix
+
+ assert_equal 2, @to.indent
+ end
+
+ def accept_list_item_start_lalpha
+ assert_equal %W"\e[0m", @to.res
+ assert_equal 'a. ', @to.prefix
+
+ assert_equal 'a', @to.list_index.last
+ assert_equal 3, @to.indent
+ end
+
+ def accept_list_item_start_note
+ assert_equal %W"\e[0m", @to.res
+ assert_equal "cat:\n ", @to.prefix
+
+ assert_equal 2, @to.indent
+ end
+
+ def accept_list_item_start_number
+ assert_equal %W"\e[0m", @to.res
+ assert_equal '1. ', @to.prefix
+
+ assert_equal 1, @to.list_index.last
+ assert_equal 3, @to.indent
+ end
+
+ def accept_list_item_start_ualpha
+ assert_equal %W"\e[0m", @to.res
+ assert_equal 'A. ', @to.prefix
+
+ assert_equal 'A', @to.list_index.last
+ assert_equal 3, @to.indent
+ end
+
+ def accept_list_start_bullet
+ assert_equal "\e[0m", @to.res.join
+ assert_equal [nil], @to.list_index
+ assert_equal [:BULLET], @to.list_type
+ assert_equal [1], @to.list_width
+ end
+
+ def accept_list_start_label
+ assert_equal "\e[0m", @to.res.join
+ assert_equal [nil], @to.list_index
+ assert_equal [:LABEL], @to.list_type
+ assert_equal [2], @to.list_width
+ end
+
+ def accept_list_start_lalpha
+ assert_equal "\e[0m", @to.res.join
+ assert_equal ['a'], @to.list_index
+ assert_equal [:LALPHA], @to.list_type
+ assert_equal [1], @to.list_width
+ end
+
+ def accept_list_start_note
+ assert_equal "\e[0m", @to.res.join
+ assert_equal [nil], @to.list_index
+ assert_equal [:NOTE], @to.list_type
+ assert_equal [2], @to.list_width
+ end
+
+ def accept_list_start_number
+ assert_equal "\e[0m", @to.res.join
+ assert_equal [1], @to.list_index
+ assert_equal [:NUMBER], @to.list_type
+ assert_equal [1], @to.list_width
+ end
+
+ def accept_list_start_ualpha
+ assert_equal "\e[0m", @to.res.join
+ assert_equal ['A'], @to.list_index
+ assert_equal [:UALPHA], @to.list_type
+ assert_equal [1], @to.list_width
+ end
+
+ def accept_paragraph
+ assert_equal "\e[0mhi\n", @to.res.join
+ end
+
+ def accept_raw
+ raw = <<-RAW.rstrip
+\e[0m<table>
+<tr><th>Name<th>Count
+<tr><td>a<td>1
+<tr><td>b<td>2
+</table>
+ RAW
+
+ assert_equal raw, @to.res.join
+ end
+
+ def accept_rule
+ assert_equal "\e[0m#{'-' * 78}\n", @to.res.join
+ end
+
+ def accept_verbatim
+ assert_equal "\e[0m hi\n world\n\n", @to.res.join
+ end
+
+ def end_accepting
+ assert_equal "\e[0mhi", @to.end_accepting
+ end
+
+ def start_accepting
+ assert_equal 0, @to.indent
+ assert_equal %W"\e[0m", @to.res
+ assert_empty @to.list_index
+ assert_empty @to.list_type
+ assert_empty @to.list_width
+ end
+
+ def accept_heading_1
+ assert_equal "\e[0m\e[1;32mHello\e[m\n", @to.end_accepting
+ end
+
+ def accept_heading_2
+ assert_equal "\e[0m\e[4;32mHello\e[m\n", @to.end_accepting
+ end
+
+ def accept_heading_3
+ assert_equal "\e[0m\e[32mHello\e[m\n", @to.end_accepting
+ end
+
+ def accept_heading_4
+ assert_equal "\e[0mHello\n", @to.end_accepting
+ end
+
+ def accept_heading_indent
+ assert_equal "\e[0m \e[1;32mHello\e[m\n", @to.end_accepting
+ end
+
+ def accept_heading_b
+ assert_equal "\e[0m\e[1;32m\e[1mHello\e[m\e[m\n", @to.end_accepting
+ end
+
+ def accept_heading_suppressed_crossref
+ assert_equal "\e[0m\e[1;32mHello\e[m\n", @to.end_accepting
+ end
+
+ def accept_list_item_start_note_2
+ assert_equal "\e[0m\e[7mteletype\e[m:\n teletype description\n\n",
+ @to.res.join
+ end
+
+ def accept_paragraph_b
+ assert_equal "\e[0mreg \e[1mbold words\e[m reg\n", @to.end_accepting
+ end
+
+ def accept_paragraph_i
+ assert_equal "\e[0mreg \e[4mitalic words\e[m reg\n", @to.end_accepting
+ end
+
+ def accept_paragraph_indent
+ expected = <<-EXPECTED
+\e[0m words words words words words words words words words words words words
+ words words words words words words words words words words words words
+ words words words words words words
+ EXPECTED
+
+ assert_equal expected, @to.end_accepting
+ end
+
+ def accept_paragraph_plus
+ assert_equal "\e[0mreg \e[7mteletype\e[m reg\n", @to.end_accepting
+ end
+
+ def accept_paragraph_star
+ assert_equal "\e[0mreg \e[1mbold\e[m reg\n", @to.end_accepting
+ end
+
+ def accept_paragraph_underscore
+ assert_equal "\e[0mreg \e[4mitalic\e[m reg\n", @to.end_accepting
+ end
+
+ def accept_paragraph_wrap
+ expected = <<-EXPECTED
+\e[0mwords words words words words words words words words words words words words
+words words words words words words words words words words words words words
+words words words words
+ EXPECTED
+
+ assert_equal expected, @to.end_accepting
+ end
+
+ def accept_rule_indent
+ assert_equal "\e[0m #{'-' * 75}\n", @to.end_accepting
+ end
+
+ def accept_verbatim_indent
+ assert_equal "\e[0m hi\n world\n\n", @to.end_accepting
+ end
+
+ def accept_verbatim_big_indent
+ assert_equal "\e[0m hi\n world\n\n", @to.end_accepting
+ end
+
+ def list_nested
+ expected = <<-EXPECTED
+\e[0m* l1
+ * l1.1
+* l2
+ EXPECTED
+
+ assert_equal expected, @to.end_accepting
+ end
+
+ def list_verbatim
+ expected = <<-EXPECTED # HACK overblown
+\e[0m* list stuff
+
+ * list
+ with
+
+ second
+
+ 1. indented
+ 2. numbered
+
+ third
+
+ * second
+
+ EXPECTED
+
+ assert_equal expected, @to.end_accepting
+ end
+
+end
+
diff --git a/test/rdoc/test_rdoc_markup_to_bs.rb b/test/rdoc/test_rdoc_markup_to_bs.rb
new file mode 100644
index 0000000000..35a9266b5d
--- /dev/null
+++ b/test/rdoc/test_rdoc_markup_to_bs.rb
@@ -0,0 +1,345 @@
+require 'rubygems'
+require 'rdoc/markup/text_formatter_test_case'
+require 'rdoc/markup/to_bs'
+require 'minitest/autorun'
+
+class TestRDocMarkupToBs < RDoc::Markup::TextFormatterTestCase
+
+ add_visitor_tests
+ add_text_tests
+
+ def setup
+ super
+
+ @to = RDoc::Markup::ToBs.new
+ end
+
+ def accept_blank_line
+ assert_equal "\n", @to.res.join
+ end
+
+ def accept_document
+ assert_equal "hello\n", @to.res.join
+ end
+
+ def accept_heading
+ skip "No String#chars, upgrade your ruby" unless ''.respond_to? :chars
+ assert_equal "===== H\bHe\bel\bll\blo\bo\n", @to.res.join
+ end
+
+ def accept_list_end_bullet
+ assert_empty @to.list_index
+ assert_empty @to.list_type
+ assert_empty @to.list_width
+ end
+
+ def accept_list_end_label
+ assert_empty @to.list_index
+ assert_empty @to.list_type
+ assert_empty @to.list_width
+ end
+
+ def accept_list_end_lalpha
+ assert_empty @to.list_index
+ assert_empty @to.list_type
+ assert_empty @to.list_width
+ end
+
+ def accept_list_end_note
+ assert_empty @to.list_index
+ assert_empty @to.list_type
+ assert_empty @to.list_width
+ end
+
+ def accept_list_end_number
+ assert_empty @to.list_index
+ assert_empty @to.list_type
+ assert_empty @to.list_width
+ end
+
+ def accept_list_end_ualpha
+ assert_empty @to.list_index
+ assert_empty @to.list_type
+ assert_empty @to.list_width
+ end
+
+ def accept_list_item_end_bullet
+ assert_equal 0, @to.indent, 'indent'
+ end
+
+ def accept_list_item_end_label
+ assert_equal "\n", @to.res.join
+ assert_equal 0, @to.indent, 'indent'
+ end
+
+ def accept_list_item_end_lalpha
+ assert_equal 0, @to.indent, 'indent'
+ assert_equal 'b', @to.list_index.last
+ end
+
+ def accept_list_item_end_note
+ assert_equal "\n", @to.res.join
+ assert_equal 0, @to.indent, 'indent'
+ end
+
+ def accept_list_item_end_number
+ assert_equal 0, @to.indent, 'indent'
+ assert_equal 2, @to.list_index.last
+ end
+
+ def accept_list_item_end_ualpha
+ assert_equal 0, @to.indent, 'indent'
+ assert_equal 'B', @to.list_index.last
+ end
+
+ def accept_list_item_start_bullet
+ assert_equal [''], @to.res
+ assert_equal '* ', @to.prefix
+ end
+
+ def accept_list_item_start_label
+ assert_equal [''], @to.res
+ assert_equal "cat:\n ", @to.prefix
+
+ assert_equal 2, @to.indent
+ end
+
+ def accept_list_item_start_lalpha
+ assert_equal [''], @to.res
+ assert_equal 'a. ', @to.prefix
+
+ assert_equal 'a', @to.list_index.last
+ assert_equal 3, @to.indent
+ end
+
+ def accept_list_item_start_note
+ assert_equal [''], @to.res
+ assert_equal "cat:\n ", @to.prefix
+
+ assert_equal 2, @to.indent
+ end
+
+ def accept_list_item_start_number
+ assert_equal [''], @to.res
+ assert_equal '1. ', @to.prefix
+
+ assert_equal 1, @to.list_index.last
+ assert_equal 3, @to.indent
+ end
+
+ def accept_list_item_start_ualpha
+ assert_equal [''], @to.res
+ assert_equal 'A. ', @to.prefix
+
+ assert_equal 'A', @to.list_index.last
+ assert_equal 3, @to.indent
+ end
+
+ def accept_list_start_bullet
+ assert_equal "", @to.res.join
+ assert_equal [nil], @to.list_index
+ assert_equal [:BULLET], @to.list_type
+ assert_equal [1], @to.list_width
+ end
+
+ def accept_list_start_label
+ assert_equal "", @to.res.join
+ assert_equal [nil], @to.list_index
+ assert_equal [:LABEL], @to.list_type
+ assert_equal [2], @to.list_width
+ end
+
+ def accept_list_start_lalpha
+ assert_equal "", @to.res.join
+ assert_equal ['a'], @to.list_index
+ assert_equal [:LALPHA], @to.list_type
+ assert_equal [1], @to.list_width
+ end
+
+ def accept_list_start_note
+ assert_equal "", @to.res.join
+ assert_equal [nil], @to.list_index
+ assert_equal [:NOTE], @to.list_type
+ assert_equal [2], @to.list_width
+ end
+
+ def accept_list_start_number
+ assert_equal "", @to.res.join
+ assert_equal [1], @to.list_index
+ assert_equal [:NUMBER], @to.list_type
+ assert_equal [1], @to.list_width
+ end
+
+ def accept_list_start_ualpha
+ assert_equal "", @to.res.join
+ assert_equal ['A'], @to.list_index
+ assert_equal [:UALPHA], @to.list_type
+ assert_equal [1], @to.list_width
+ end
+
+ def accept_paragraph
+ assert_equal "hi\n", @to.res.join
+ end
+
+ def accept_raw
+ raw = <<-RAW.rstrip
+<table>
+<tr><th>Name<th>Count
+<tr><td>a<td>1
+<tr><td>b<td>2
+</table>
+ RAW
+
+ assert_equal raw, @to.res.join
+ end
+
+ def accept_rule
+ assert_equal "#{'-' * 78}\n", @to.res.join
+ end
+
+ def accept_verbatim
+ assert_equal " hi\n world\n\n", @to.res.join
+ end
+
+ def end_accepting
+ assert_equal "hi", @to.end_accepting
+ end
+
+ def start_accepting
+ assert_equal 0, @to.indent
+ assert_equal [''], @to.res
+ assert_empty @to.list_index
+ assert_empty @to.list_type
+ assert_empty @to.list_width
+ end
+
+ def accept_heading_1
+ skip "No String#chars, upgrade your ruby" unless ''.respond_to? :chars
+ assert_equal "= H\bHe\bel\bll\blo\bo\n", @to.end_accepting
+ end
+
+ def accept_heading_2
+ skip "No String#chars, upgrade your ruby" unless ''.respond_to? :chars
+ assert_equal "== H\bHe\bel\bll\blo\bo\n", @to.end_accepting
+ end
+
+ def accept_heading_3
+ skip "No String#chars, upgrade your ruby" unless ''.respond_to? :chars
+ assert_equal "=== H\bHe\bel\bll\blo\bo\n", @to.end_accepting
+ end
+
+ def accept_heading_4
+ skip "No String#chars, upgrade your ruby" unless ''.respond_to? :chars
+ assert_equal "==== H\bHe\bel\bll\blo\bo\n", @to.end_accepting
+ end
+
+ def accept_heading_indent
+ skip "No String#chars, upgrade your ruby" unless ''.respond_to? :chars
+ assert_equal " = H\bHe\bel\bll\blo\bo\n", @to.end_accepting
+ end
+
+ def accept_heading_b
+ skip "No String#chars, upgrade your ruby" unless ''.respond_to? :chars
+ assert_equal "= H\bHe\bel\bll\blo\bo\n", @to.end_accepting
+ end
+
+ def accept_heading_suppressed_crossref
+ skip "No String#chars, upgrade your ruby" unless ''.respond_to? :chars
+ assert_equal "= H\bHe\bel\bll\blo\bo\n", @to.end_accepting
+ end
+
+ def accept_list_item_start_note_2
+ assert_equal "teletype:\n teletype description\n\n", @to.res.join
+ end
+
+ def accept_paragraph_b
+ skip "No String#chars, upgrade your ruby" unless ''.respond_to? :chars
+ assert_equal "reg b\bbo\bol\bld\bd \b w\bwo\bor\brd\bds\bs reg\n",
+ @to.end_accepting
+ end
+
+ def accept_paragraph_i
+ skip "No String#chars, upgrade your ruby" unless ''.respond_to? :chars
+ assert_equal "reg _\bi_\bt_\ba_\bl_\bi_\bc_\b _\bw_\bo_\br_\bd_\bs reg\n",
+ @to.end_accepting
+ end
+
+ def accept_paragraph_indent
+ expected = <<-EXPECTED
+ words words words words words words words words words words words words
+ words words words words words words words words words words words words
+ words words words words words words
+ EXPECTED
+
+ assert_equal expected, @to.end_accepting
+ end
+
+ def accept_paragraph_plus
+ assert_equal "reg teletype reg\n", @to.end_accepting
+ end
+
+ def accept_paragraph_star
+ skip "No String#chars, upgrade your ruby" unless ''.respond_to? :chars
+ assert_equal "reg b\bbo\bol\bld\bd reg\n", @to.end_accepting
+ end
+
+ def accept_paragraph_underscore
+ skip "No String#chars, upgrade your ruby" unless ''.respond_to? :chars
+ assert_equal "reg _\bi_\bt_\ba_\bl_\bi_\bc reg\n", @to.end_accepting
+ end
+
+ def accept_paragraph_wrap
+ expected = <<-EXPECTED
+words words words words words words words words words words words words words
+words words words words words words words words words words words words words
+words words words words
+ EXPECTED
+
+ assert_equal expected, @to.end_accepting
+ end
+
+ def accept_rule_indent
+ assert_equal " #{'-' * 75}\n", @to.end_accepting
+ end
+
+ def accept_verbatim_indent
+ assert_equal " hi\n world\n\n", @to.end_accepting
+ end
+
+ def accept_verbatim_big_indent
+ assert_equal " hi\n world\n\n", @to.end_accepting
+ end
+
+ def list_nested
+ expected = <<-EXPECTED
+* l1
+ * l1.1
+* l2
+ EXPECTED
+
+ assert_equal expected, @to.end_accepting
+ end
+
+ def list_verbatim
+ expected = <<-EXPECTED # HACK overblown
+* list stuff
+
+ * list
+ with
+
+ second
+
+ 1. indented
+ 2. numbered
+
+ third
+
+ * second
+
+ EXPECTED
+
+ assert_equal expected, @to.end_accepting
+ end
+
+end
+
diff --git a/test/rdoc/test_rdoc_markup_to_html.rb b/test/rdoc/test_rdoc_markup_to_html.rb
index b611b768a3..2cb16e88ae 100644
--- a/test/rdoc/test_rdoc_markup_to_html.rb
+++ b/test/rdoc/test_rdoc_markup_to_html.rb
@@ -1,45 +1,355 @@
require 'rubygems'
-require 'minitest/unit'
-require 'rdoc/markup'
+require 'rdoc/markup/formatter_test_case'
require 'rdoc/markup/to_html'
+require 'minitest/autorun'
-class TestRDocMarkupToHtml < MiniTest::Unit::TestCase
+class TestRDocMarkupToHtml < RDoc::Markup::FormatterTestCase
+
+ add_visitor_tests
def setup
- @am = RDoc::Markup::AttributeManager.new
- @th = RDoc::Markup::ToHtml.new
+ super
+
+ @to = RDoc::Markup::ToHtml.new
+ end
+
+ def test_class_gen_relative_url
+ def gen(from, to)
+ RDoc::Markup::ToHtml.gen_relative_url from, to
+ end
+
+ assert_equal 'a.html', gen('a.html', 'a.html')
+ assert_equal 'b.html', gen('a.html', 'b.html')
+
+ assert_equal 'd.html', gen('a/c.html', 'a/d.html')
+ assert_equal '../a.html', gen('a/c.html', 'a.html')
+ assert_equal 'a/c.html', gen('a.html', 'a/c.html')
+ end
+
+ def accept_blank_line
+ assert_empty @to.res.join
+ end
+
+ def accept_document
+ assert_equal "\n<p>hello</p>\n", @to.res.join
+ end
+
+ def accept_heading
+ assert_equal "\n<h5>Hello</h5>\n", @to.res.join
+ end
+
+ def accept_heading_1
+ assert_equal "\n<h1>Hello</h1>\n", @to.res.join
+ end
+
+ def accept_heading_2
+ assert_equal "\n<h2>Hello</h2>\n", @to.res.join
+ end
+
+ def accept_heading_3
+ assert_equal "\n<h3>Hello</h3>\n", @to.res.join
+ end
+
+ def accept_heading_4
+ assert_equal "\n<h4>Hello</h4>\n", @to.res.join
+ end
+
+ def accept_heading_b
+ assert_equal "\n<h1><b>Hello</b></h1>\n", @to.res.join
+ end
+
+ def accept_heading_suppressed_crossref
+ assert_equal "\n<h1>Hello</h1>\n", @to.res.join
+ end
+
+ def accept_list_end_bullet
+ assert_equal [], @to.list
+ assert_equal [], @to.in_list_entry
+
+ assert_equal "<ul></ul>\n", @to.res.join
+ end
+
+ def accept_list_end_label
+ assert_equal [], @to.list
+ assert_equal [], @to.in_list_entry
+
+ assert_equal "<dl class=\"rdoc-list\"></dl>\n", @to.res.join
+ end
+
+ def accept_list_end_lalpha
+ assert_equal [], @to.list
+ assert_equal [], @to.in_list_entry
+
+ assert_equal "<ol style=\"display: lower-alpha\"></ol>\n", @to.res.join
+ end
+
+ def accept_list_end_number
+ assert_equal [], @to.list
+ assert_equal [], @to.in_list_entry
+
+ assert_equal "<ol></ol>\n", @to.res.join
+ end
+
+ def accept_list_end_note
+ assert_equal [], @to.list
+ assert_equal [], @to.in_list_entry
+
+ assert_equal "<table class=\"rdoc-list\"></table>\n", @to.res.join
+ end
+
+ def accept_list_end_ualpha
+ assert_equal [], @to.list
+ assert_equal [], @to.in_list_entry
+
+ assert_equal "<ol style=\"display: upper-alpha\"></ol>\n", @to.res.join
+ end
+
+ def accept_list_item_end_bullet
+ assert_equal %w[</li>], @to.in_list_entry
+ end
+
+ def accept_list_item_end_label
+ assert_equal %w[</dd>], @to.in_list_entry
+ end
+
+ def accept_list_item_end_lalpha
+ assert_equal %w[</li>], @to.in_list_entry
+ end
+
+ def accept_list_item_end_note
+ assert_equal %w[</td></tr>], @to.in_list_entry
+ end
+
+ def accept_list_item_end_number
+ assert_equal %w[</li>], @to.in_list_entry
+ end
+
+ def accept_list_item_end_ualpha
+ assert_equal %w[</li>], @to.in_list_entry
+ end
+
+ def accept_list_item_start_bullet
+ assert_equal "<ul><li>", @to.res.join
+ end
+
+ def accept_list_item_start_label
+ assert_equal "<dl class=\"rdoc-list\"><dt>cat</dt>\n<dd>", @to.res.join
+ end
+
+ def accept_list_item_start_lalpha
+ assert_equal "<ol style=\"display: lower-alpha\"><li>", @to.res.join
+ end
+
+ def accept_list_item_start_note
+ assert_equal "<table class=\"rdoc-list\"><tr><td class=\"rdoc-term\"><p>cat</p></td>\n<td>",
+ @to.res.join
+ end
+
+ def accept_list_item_start_note_2
+ expected = <<-EXPECTED
+<table class="rdoc-list"><tr><td class="rdoc-term"><p><tt>teletype</tt></p></td>
+<td>
+<p>teletype description</p>
+</td></tr></table>
+ EXPECTED
+
+ assert_equal expected, @to.res.join
+ end
+
+ def accept_list_item_start_number
+ assert_equal "<ol><li>", @to.res.join
end
- def test_tt_formatting
- assert_equal "<p>\n<tt>--</tt> &#8212; <tt>cats'</tt> cats&#8217;\n</p>\n",
- util_format("<tt>--</tt> -- <tt>cats'</tt> cats'")
- assert_equal "<p>\n<b>&#8212;</b>\n</p>\n", util_format("<b>--</b>")
+ def accept_list_item_start_ualpha
+ assert_equal "<ol style=\"display: upper-alpha\"><li>", @to.res.join
end
- def test_convert_string_fancy
- #
- # The HTML typesetting is broken in a number of ways, but I have fixed
- # the most glaring issues for single and double quotes. Note that
- # "strange" symbols (periods or dashes) need to be at the end of the
- # test case strings in order to suppress cross-references.
- #
- assert_equal "<p>\n&#8220;cats&#8221;.\n</p>\n", util_format("\"cats\".")
- assert_equal "<p>\n&#8216;cats&#8217;.\n</p>\n", util_format("\'cats\'.")
- assert_equal "<p>\ncat&#8217;s-\n</p>\n", util_format("cat\'s-")
+ def accept_list_start_bullet
+ assert_equal [:BULLET], @to.list
+ assert_equal [false], @to.in_list_entry
+
+ assert_equal "<ul>", @to.res.join
+ end
+
+ def accept_list_start_label
+ assert_equal [:LABEL], @to.list
+ assert_equal [false], @to.in_list_entry
+
+ assert_equal '<dl class="rdoc-list">', @to.res.join
+ end
+
+ def accept_list_start_lalpha
+ assert_equal [:LALPHA], @to.list
+ assert_equal [false], @to.in_list_entry
+
+ assert_equal "<ol style=\"display: lower-alpha\">", @to.res.join
+ end
+
+ def accept_list_start_note
+ assert_equal [:NOTE], @to.list
+ assert_equal [false], @to.in_list_entry
+
+ assert_equal "<table class=\"rdoc-list\">", @to.res.join
+ end
+
+ def accept_list_start_number
+ assert_equal [:NUMBER], @to.list
+ assert_equal [false], @to.in_list_entry
+
+ assert_equal "<ol>", @to.res.join
+ end
+
+ def accept_list_start_ualpha
+ assert_equal [:UALPHA], @to.list
+ assert_equal [false], @to.in_list_entry
+
+ assert_equal "<ol style=\"display: upper-alpha\">", @to.res.join
+ end
+
+ def accept_paragraph
+ assert_equal "\n<p>hi</p>\n", @to.res.join
+ end
+
+ def accept_paragraph_b
+ assert_equal "\n<p>reg <b>bold words</b> reg</p>\n", @to.res.join
+ end
+
+ def accept_paragraph_i
+ assert_equal "\n<p>reg <em>italic words</em> reg</p>\n", @to.res.join
+ end
+
+ def accept_paragraph_plus
+ assert_equal "\n<p>reg <tt>teletype</tt> reg</p>\n", @to.res.join
+ end
+
+ def accept_paragraph_star
+ assert_equal "\n<p>reg <b>bold</b> reg</p>\n", @to.res.join
+ end
+
+ def accept_paragraph_underscore
+ assert_equal "\n<p>reg <em>italic</em> reg</p>\n", @to.res.join
+ end
+
+ def accept_raw
+ raw = <<-RAW.rstrip
+<table>
+<tr><th>Name<th>Count
+<tr><td>a<td>1
+<tr><td>b<td>2
+</table>
+ RAW
+
+ assert_equal raw, @to.res.join
+ end
+
+ def accept_rule
+ assert_equal "<hr style=\"height: 4px\">\n", @to.res.join
+ end
+
+ def accept_verbatim
+ assert_equal "\n<pre>hi\n world</pre>\n", @to.res.join
+ end
+
+ def end_accepting
+ assert_equal 'hi', @to.end_accepting
+ end
+
+ def start_accepting
+ assert_equal [], @to.res
+ assert_equal [], @to.in_list_entry
+ assert_equal [], @to.list
+ end
+
+ def list_nested
+ expected = <<-EXPECTED
+<ul><li>
+<p>l1</p>
+<ul><li>
+<p>l1.1</p>
+</li></ul>
+</li><li>
+<p>l2</p>
+</li></ul>
+ EXPECTED
+
+ assert_equal expected, @to.res.join
+ end
+
+ def list_verbatim
+ expected = <<-EXPECTED
+<ul><li>
+<p>list stuff</p>
+
+<pre>* list
+ with
+
+ second
+
+ 1. indented
+ 2. numbered
+
+ third
+
+* second</pre>
+</li></ul>
+ EXPECTED
+
+ assert_equal expected, @to.end_accepting
+ end
+
+ def test_convert_string
+ assert_equal '&lt;&gt;', @to.convert_string('<>')
+ end
+
+ def test_gen_url
+ assert_equal '<a href="example">example</a>',
+ @to.gen_url('link:example', 'example')
+ end
+
+ def test_gem_url_image_url
+ assert_equal '<img src="http://example.com/image.png" />', @to.gen_url('http://example.com/image.png', 'ignored')
+ end
+
+ def test_gem_url_ssl_image_url
+ assert_equal '<img src="https://example.com/image.png" />', @to.gen_url('https://example.com/image.png', 'ignored')
+ end
+
+ def test_handle_special_HYPERLINK_link
+ special = RDoc::Markup::Special.new 0, 'link:README.txt'
+
+ link = @to.handle_special_HYPERLINK special
+
+ assert_equal '<a href="README.txt">README.txt</a>', link
+ end
+
+ def test_list_verbatim_2
+ str = "* one\n verb1\n verb2\n* two\n"
+
+ expected = <<-EXPECTED
+<ul><li>
+<p>one</p>
+
+<pre>verb1
+verb2</pre>
+</li><li>
+<p>two</p>
+</li></ul>
+ EXPECTED
+
+ assert_equal expected, @m.convert(str, @to)
end
- def util_fragment(text)
- RDoc::Markup::Fragment.new 0, nil, nil, text
+ def test_to_html
+ assert_equal "\n<p><tt>--</tt></p>\n", util_format("<tt>--</tt>")
end
- def util_format(text)
- fragment = util_fragment text
+ def util_format text
+ paragraph = RDoc::Markup::Paragraph.new text
- @th.start_accepting
- @th.accept_paragraph @am, fragment
- @th.end_accepting
+ @to.start_accepting
+ @to.accept_paragraph paragraph
+ @to.end_accepting
end
end
-MiniTest::Unit.autorun
diff --git a/test/rdoc/test_rdoc_markup_to_html_crossref.rb b/test/rdoc/test_rdoc_markup_to_html_crossref.rb
index f3a64f203b..4f122512ac 100644
--- a/test/rdoc/test_rdoc_markup_to_html_crossref.rb
+++ b/test/rdoc/test_rdoc_markup_to_html_crossref.rb
@@ -1,299 +1,110 @@
require 'rubygems'
-require 'minitest/unit'
-require 'rdoc/generator'
-require 'rdoc/stats'
+require 'minitest/autorun'
+require 'rdoc/rdoc'
require 'rdoc/code_objects'
require 'rdoc/markup/to_html_crossref'
-require 'rdoc/parser/ruby'
-
-require 'pathname'
-
-class TestRDocMarkupToHtmlCrossref < MiniTest::Unit::TestCase
-
- #
- # This method parses a source file and returns a Hash mapping
- # class names (Strings) to RDoc::Generator::Class instances
- # (classes), which can be used to create RDoc::Markup::ToHtmlCrossref
- # instances. The unit tests only test against classes starting with
- # Ref_, so this method only includes such classes in the Hash.
- #
- def create_class_hash
- # The relative gem would help here...
- # @source_file_name must be cleaned because rdoc does not deal
- # well with paths containing "." or "..".
- curr_file = Pathname.new(__FILE__)
- @source_file_name = curr_file.dirname + "rdoc_markup_to_html_crossref_reference.rb"
- @source_file_name = @source_file_name.cleanpath.to_s
-
- RDoc::TopLevel.reset
-
- # Reset RDoc::Generator::Method so that the method sequence number starts
- # at 1, making the method sequence numbers for the methods in the Ref_
- # predicable.
- RDoc::Generator::Method.reset
- top_level = RDoc::TopLevel.new @source_file_name
-
- options = RDoc::Options.new
- options.quiet = true
-
- # If this is false, then RDoc::Generator::Method will attempt to create
- # an HTML file containing the method source code when being instantiated,
- # which does not work in the context of this unit test.
- #
- # RDoc::Generator::Method needs to be refactored so that this does *not*
- # happen as part of instantiation.
- options.inline_source = true
-
- stats = RDoc::Stats.new 0
-
- parser = RDoc::Parser::Ruby.new(top_level,
- @source_file_name,
- IO.read(@source_file_name),
- options,
- stats)
- top_levels = []
- top_levels.push(parser.scan())
-
- files, classes = RDoc::Generator::Context.build_indices(top_levels, options)
-
- class_hash = {}
- classes.each do |klass|
- if(klass.name.include?("Ref_"))
- class_hash[klass.name] = klass
- end
- end
-
- return class_hash
+require File.expand_path '../xref_test_case', __FILE__
+
+class TestRDocMarkupToHtmlCrossref < XrefTestCase
+
+ def setup
+ super
+
+ @to = RDoc::Markup::ToHtmlCrossref.new 'index.html', @c1, true
end
- #
- # This method uses xref to cross-reference String reference and
- # asserts that xref.convert(reference) is equal
- # to String expected_result.
- #
- def verify_convert(xref, reference, expected_result)
- # Everything converted in the tests will be within paragraph markup, so
- # add paragraph markup to the expected result.
- actual_expected_result = "<p>\n#{expected_result}\n</p>\n"
-
- result = xref.convert(reference)
-
- # RDoc::Markup::ToHtml word-wraps lines. It is tricky to predict where
- # a line will be wrapped except that it will happen on a space, so replace
- # all newlines with spaces in order to not have to worry about this.
- actual_expected_result.gsub!(/\n/, " ")
- result.gsub!(/\n/, " ")
-
- begin
- assert_equal actual_expected_result, result
- rescue MiniTest::Assertion => e
- bt = caller(2)
- raise e, [e.message, *bt.grep(/\A#{Regexp.quote(__FILE__)}:/o)].join("\n"), bt
- end
+ def test_convert_CROSSREF
+ result = @to.convert 'C1'
+
+ assert_equal "\n<p><a href=\"C1.html\">C1</a></p>\n", result
end
- #
- # This method verifies that xref generates no cross-reference link for
- # String reference.
- #
- def verify_no_crossref(xref, reference)
- if(reference[0, 1] == "\\") # Remove the markup suppression character
- expected_result = reference[1, reference.length() - 1]
- else
- expected_result = reference
- end
-
- verify_convert(xref, reference, expected_result)
+ def test_convert_HYPERLINK_rdoc_ref
+ result = @to.convert 'rdoc-ref:C1'
+
+ assert_equal "\n<p><a href=\"C1.html\">C1</a></p>\n", result
end
- #
- # This method verifies that xref generates a cross-reference link to
- # class_name (String) for String reference.
- #
- def verify_class_crossref(xref, reference, class_name)
- class_file_name = class_name.gsub(/::/, "/")
+ def test_convert_TIDYLINK_rdoc_ref
+ result = @to.convert '{foo}[rdoc-ref:C1]'
+
+ assert_equal "\n<p><a href=\"C1.html\">foo</a></p>\n", result
+ end
- result = "<a href=\"../classes/#{class_file_name}.html\">#{reference}</a>"
+ def test_gen_url
+ assert_equal '<a href="C1.html">Some class</a>',
+ @to.gen_url('rdoc-ref:C1', 'Some class')
- verify_convert xref, reference, result
+ assert_equal '<a href="http://example">HTTP example</a>',
+ @to.gen_url('http://example', 'HTTP example')
end
- #
- # This method verifies that xref generates a cross-reference link to method
- # method_seq (String, e.g, "M000001") in class_name (String) for
- # String reference.
- #
- def verify_method_crossref(xref, reference, class_name, method_seq)
- class_file_name = class_name.gsub(/::/, "/")
+ def test_handle_special_CROSSREF
+ assert_equal "<a href=\"C2/C3.html\">C2::C3</a>", SPECIAL('C2::C3')
+ end
- result = "<a href=\"../classes/#{class_file_name}.html##{method_seq}\">#{reference}</a>"
+ def test_handle_special_CROSSREF_show_hash_false
+ @to.show_hash = false
- verify_convert xref, reference, result
+ assert_equal "<a href=\"C1.html#method-i-m\">m</a>",
+ SPECIAL('#m')
end
- #
- # This method verifies that xref generates a cross-reference link to
- # file_name (String) for String reference.
- #
- def verify_file_crossref(xref, reference, file_name)
- generated_document_path = Pathname.new("../files/#{file_name.gsub(/\./, '_')}.html").cleanpath.to_s
- result = "<a href=\"#{generated_document_path}\">#{reference}</a>"
+ def test_handle_special_HYPERLINK_rdoc
+ RDoc::TopLevel.new 'README.txt'
+ @to = RDoc::Markup::ToHtmlCrossref.new 'C2.html', @c2, true
- verify_convert xref, reference, result
+ link = @to.handle_special_HYPERLINK hyper 'C2::C3'
+
+ assert_equal '<a href="C2/C3.html">C2::C3</a>', link
+
+ link = @to.handle_special_HYPERLINK hyper 'C4'
+
+ assert_equal '<a href="C4.html">C4</a>', link
+
+ link = @to.handle_special_HYPERLINK hyper 'README.txt'
+
+ assert_equal '<a href="README_txt.html">README.txt</a>', link
end
- #
- # This method verifies that several invariant cross-references are
- # (or are not) generated.
- #
- def verify_invariant_crossrefs(xref)
- # bogus does not exist and so no cross-reference should be generated.
- verify_no_crossref xref, "bogus"
- verify_no_crossref xref, "\\bogus"
-
- # Ref_Class1 is in the top-level namespace, and so a cross-reference always
- # should be generated, unless markup is suppressed.
- verify_class_crossref xref, "Ref_Class1", "Ref_Class1"
- verify_no_crossref xref, "\\Ref_Class1"
-
- # Ref_Class2 is in the top-level namespace, and so a cross-reference always
- # should be generated for it and for its nested classes.
- verify_class_crossref xref, "Ref_Class2", "Ref_Class2"
- verify_class_crossref xref, "Ref_Class2::Ref_Class3", "Ref_Class2::Ref_Class3"
- verify_method_crossref xref, "Ref_Class2::Ref_Class3#method", "Ref_Class2::Ref_Class3", "M000001"
- verify_method_crossref xref, "Ref_Class2::Ref_Class3#method()", "Ref_Class2::Ref_Class3", "M000001"
- verify_method_crossref xref, "Ref_Class2::Ref_Class3.method()", "Ref_Class2::Ref_Class3", "M000001"
- verify_method_crossref xref, "Ref_Class2::Ref_Class3.method(*)", "Ref_Class2::Ref_Class3", "M000001"
- verify_class_crossref xref, "Ref_Class2::Ref_Class3::Helper1", "Ref_Class2::Ref_Class3::Helper1"
- verify_method_crossref xref, "Ref_Class2::Ref_Class3::Helper1#method?", "Ref_Class2::Ref_Class3::Helper1", "M000002"
-
- # The hyphen character is not a valid class/method separator character, so
- # rdoc just generates a class cross-reference (perhaps it should not
- # generate anything?).
- result = "<a href=\"../classes/Ref_Class2/Ref_Class3.html\">Ref_Class2::Ref_Class3</a>;method(*)"
- verify_convert xref, "Ref_Class2::Ref_Class3;method(*)", result
-
- # There is one Ref_Class3 nested in Ref_Class2 and one defined in the
- # top-level namespace; regardless, ::Ref_Class3 (Ref_Class3 relative
- # to the top-level namespace) always should generate a link to the
- # top-level Ref_Class3 (unless of course cross-references are suppressed).
- verify_class_crossref xref, "::Ref_Class3", "Ref_Class3"
- verify_no_crossref xref, "\\::Ref_Class3"
- verify_class_crossref xref, "::Ref_Class3::Helper1", "Ref_Class3::Helper1"
- verify_class_crossref xref, "::Ref_Class3::Helper2", "Ref_Class3::Helper2"
-
- #
- # Ref_Class3::Helper1 does not have method method.
- #
- verify_no_crossref xref, "::Ref_Class3::Helper1#method"
- verify_no_crossref xref, "\\::Ref_Class3::Helper1#method"
-
- # References to Ref_Class2 relative to the top-level namespace always should
- # generate links to Ref_Class2.
- verify_method_crossref xref, "::Ref_Class2::Ref_Class3#method", "Ref_Class2::Ref_Class3", "M000001"
- verify_method_crossref xref, "::Ref_Class2::Ref_Class3#method()", "Ref_Class2::Ref_Class3", "M000001"
- verify_method_crossref xref, "::Ref_Class2::Ref_Class3#method(*)", "Ref_Class2::Ref_Class3", "M000001"
- verify_class_crossref xref, "::Ref_Class2::Ref_Class3::Helper1", "Ref_Class2::Ref_Class3::Helper1"
- verify_no_crossref xref, "\\::Ref_Class2::Ref_Class3#method(*)"
-
- # Suppressing cross-references always should suppress the generation of
- # links.
- verify_no_crossref xref, "\\#method"
- verify_no_crossref xref, "\\#method()"
- verify_no_crossref xref, "\\#method(*)"
-
- # Links never should be generated for words solely consisting of lowercase
- # letters, because too many links would get generated by mistake (i.e., the
- # word "new" always would be a link).
- verify_no_crossref xref, "method"
-
- # A link always should be generated for a file name.
- verify_file_crossref xref, @source_file_name, @source_file_name
-
- # References should be generated correctly for a class scoped within
- # a class of the same name.
- verify_class_crossref xref, "Ref_Class4::Ref_Class4", "Ref_Class4::Ref_Class4"
+ def test_handle_special_TIDYLINK_rdoc
+ RDoc::TopLevel.new 'README.txt'
+ @to = RDoc::Markup::ToHtmlCrossref.new 'C2.html', @c2, true
+
+ link = @to.handle_special_TIDYLINK tidy 'C2::C3'
+
+ assert_equal '<a href="C2/C3.html">tidy</a>', link
+
+ link = @to.handle_special_TIDYLINK tidy 'C4'
+
+ assert_equal '<a href="C4.html">tidy</a>', link
+
+ link = @to.handle_special_TIDYLINK tidy 'README.txt'
+
+ assert_equal '<a href="README_txt.html">tidy</a>', link
+ end
+
+ def test_link
+ assert_equal 'n', @to.link('n', 'n')
+
+ assert_equal '<a href="C1.html#method-c-m">m</a>', @to.link('m', 'm')
end
- def test_handle_special_CROSSREF_no_underscore
- class_hash = create_class_hash
-
- # Note that we instruct the ToHtmlCrossref instance to show hashes so that
- # an exception won't have to be made for words starting with a '#'.
- # I'm also not convinced that the current behavior of the rdoc code
- # is correct since, without this, it strips the leading # from all
- # words, whether or not they end up as cross-references.
- #
- # After the behavior has been sorted out, this can be changed.
- #
- # Create a variety of RDoc::Markup::ToHtmlCrossref instances, for
- # different classes, and test the cross-references generated by
- # each.
- klass = class_hash["Ref_Class1"]
- xref = RDoc::Markup::ToHtmlCrossref.new 'from_path', klass, true
- verify_invariant_crossrefs xref
- verify_class_crossref xref, "Ref_Class3", "Ref_Class3"
- verify_no_crossref xref, "Ref_Class3#method"
- verify_no_crossref xref, "#method"
- verify_class_crossref xref, "Ref_Class3::Helper1", "Ref_Class3::Helper1"
- verify_class_crossref xref, "Ref_Class3::Helper2", "Ref_Class3::Helper2"
- verify_no_crossref xref, "Helper1"
- verify_class_crossref xref, "Ref_Class4", "Ref_Class4"
-
- klass = class_hash["Ref_Class2"]
- xref = RDoc::Markup::ToHtmlCrossref.new 'from_path', klass, true
- verify_invariant_crossrefs xref
- verify_class_crossref xref, "Ref_Class3", "Ref_Class2::Ref_Class3"
- verify_method_crossref xref, "Ref_Class3#method", "Ref_Class2::Ref_Class3", "M000001"
- verify_no_crossref xref, "#method"
- verify_class_crossref xref, "Ref_Class3::Helper1", "Ref_Class2::Ref_Class3::Helper1"
- verify_class_crossref xref, "Ref_Class4", "Ref_Class4"
-
- # This one possibly is an rdoc bug...
- # Ref_Class2 has a nested Ref_Class3, but
- # Ref_Class2::Ref_Class3::Helper2 does not exist.
- # On the other hand, there is a Ref_Class3::Helper2
- # in the top-level namespace... Should rdoc stop
- # looking if it finds one class match?
- verify_no_crossref xref, "Ref_Class3::Helper2"
- verify_no_crossref xref, "Helper1"
-
- klass = class_hash["Ref_Class2::Ref_Class3"]
- xref = RDoc::Markup::ToHtmlCrossref.new 'from_path', klass, true
- verify_invariant_crossrefs xref
- verify_class_crossref xref, "Ref_Class3", "Ref_Class2::Ref_Class3"
- verify_method_crossref xref, "Ref_Class3#method", "Ref_Class2::Ref_Class3", "M000001"
- verify_method_crossref xref, "#method", "Ref_Class2::Ref_Class3", "M000001"
- verify_class_crossref xref, "Ref_Class3::Helper1", "Ref_Class2::Ref_Class3::Helper1"
- verify_no_crossref xref, "Ref_Class3::Helper2"
- verify_class_crossref xref, "Helper1", "Ref_Class2::Ref_Class3::Helper1"
- verify_class_crossref xref, "Ref_Class4", "Ref_Class4"
-
- klass = class_hash["Ref_Class3"]
- xref = RDoc::Markup::ToHtmlCrossref.new 'from_path', klass, true
- verify_invariant_crossrefs xref
- verify_class_crossref xref, "Ref_Class3", "Ref_Class3"
- verify_no_crossref xref, "Ref_Class3#method"
- verify_no_crossref xref, "#method"
- verify_class_crossref xref, "Ref_Class3::Helper1", "Ref_Class3::Helper1"
- verify_class_crossref xref, "Ref_Class3::Helper2", "Ref_Class3::Helper2"
- verify_class_crossref xref, "Helper1", "Ref_Class3::Helper1"
- verify_class_crossref xref, "Ref_Class4", "Ref_Class4"
-
- klass = class_hash["Ref_Class4"]
- xref = RDoc::Markup::ToHtmlCrossref.new 'from_path', klass, true
- verify_invariant_crossrefs xref
- # A Ref_Class4 reference inside a Ref_Class4 class containing a
- # Ref_Class4 class should resolve to the contained class.
- verify_class_crossref xref, "Ref_Class4", "Ref_Class4::Ref_Class4"
-
- klass = class_hash["Ref_Class4::Ref_Class4"]
- xref = RDoc::Markup::ToHtmlCrossref.new 'from_path', klass, true
- verify_invariant_crossrefs xref
- # A Ref_Class4 reference inside a Ref_Class4 class contained within
- # a Ref_Class4 class should resolve to the inner Ref_Class4 class.
- verify_class_crossref xref, "Ref_Class4", "Ref_Class4::Ref_Class4"
+ def SPECIAL text
+ @to.handle_special_CROSSREF special text
end
+
+ def hyper reference
+ RDoc::Markup::Special.new 0, "rdoc-ref:#{reference}"
+ end
+
+ def special text
+ RDoc::Markup::Special.new 0, text
+ end
+
+ def tidy reference
+ RDoc::Markup::Special.new 0, "{tidy}[rdoc-ref:#{reference}]"
+ end
+
end
-MiniTest::Unit.autorun
diff --git a/test/rdoc/test_rdoc_markup_to_rdoc.rb b/test/rdoc/test_rdoc_markup_to_rdoc.rb
new file mode 100644
index 0000000000..06cae078c6
--- /dev/null
+++ b/test/rdoc/test_rdoc_markup_to_rdoc.rb
@@ -0,0 +1,341 @@
+require 'rubygems'
+require 'rdoc/markup/text_formatter_test_case'
+require 'rdoc/markup/to_rdoc'
+require 'minitest/autorun'
+
+class TestRDocMarkupToRDoc < RDoc::Markup::TextFormatterTestCase
+
+ add_visitor_tests
+ add_text_tests
+
+ def setup
+ super
+
+ @to = RDoc::Markup::ToRdoc.new
+ end
+
+ def accept_blank_line
+ assert_equal "\n", @to.res.join
+ end
+
+ def accept_document
+ assert_equal "hello\n", @to.res.join
+ end
+
+ def accept_heading
+ assert_equal "===== Hello\n", @to.res.join
+ end
+
+ def accept_list_end_bullet
+ assert_empty @to.list_index
+ assert_empty @to.list_type
+ assert_empty @to.list_width
+ end
+
+ def accept_list_end_label
+ assert_empty @to.list_index
+ assert_empty @to.list_type
+ assert_empty @to.list_width
+ end
+
+ def accept_list_end_lalpha
+ assert_empty @to.list_index
+ assert_empty @to.list_type
+ assert_empty @to.list_width
+ end
+
+ def accept_list_end_note
+ assert_empty @to.list_index
+ assert_empty @to.list_type
+ assert_empty @to.list_width
+ end
+
+ def accept_list_end_number
+ assert_empty @to.list_index
+ assert_empty @to.list_type
+ assert_empty @to.list_width
+ end
+
+ def accept_list_end_ualpha
+ assert_empty @to.list_index
+ assert_empty @to.list_type
+ assert_empty @to.list_width
+ end
+
+ def accept_list_item_end_bullet
+ assert_equal 0, @to.indent, 'indent'
+ end
+
+ def accept_list_item_end_label
+ assert_equal "\n", @to.res.join
+ assert_equal 0, @to.indent, 'indent'
+ end
+
+ def accept_list_item_end_lalpha
+ assert_equal 0, @to.indent, 'indent'
+ assert_equal 'b', @to.list_index.last
+ end
+
+ def accept_list_item_end_note
+ assert_equal "\n", @to.res.join
+ assert_equal 0, @to.indent, 'indent'
+ end
+
+ def accept_list_item_end_number
+ assert_equal 0, @to.indent, 'indent'
+ assert_equal 2, @to.list_index.last
+ end
+
+ def accept_list_item_end_ualpha
+ assert_equal 0, @to.indent, 'indent'
+ assert_equal 'B', @to.list_index.last
+ end
+
+ def accept_list_item_start_bullet
+ assert_equal [""], @to.res
+ assert_equal '* ', @to.prefix
+ end
+
+ def accept_list_item_start_label
+ assert_equal [""], @to.res
+ assert_equal "cat:\n ", @to.prefix
+
+ assert_equal 2, @to.indent
+ end
+
+ def accept_list_item_start_lalpha
+ assert_equal [""], @to.res
+ assert_equal 'a. ', @to.prefix
+
+ assert_equal 'a', @to.list_index.last
+ assert_equal 3, @to.indent
+ end
+
+ def accept_list_item_start_note
+ assert_equal [""], @to.res
+ assert_equal "cat:\n ", @to.prefix
+
+ assert_equal 2, @to.indent
+ end
+
+ def accept_list_item_start_number
+ assert_equal [""], @to.res
+ assert_equal '1. ', @to.prefix
+
+ assert_equal 1, @to.list_index.last
+ assert_equal 3, @to.indent
+ end
+
+ def accept_list_item_start_ualpha
+ assert_equal [""], @to.res
+ assert_equal 'A. ', @to.prefix
+
+ assert_equal 'A', @to.list_index.last
+ assert_equal 3, @to.indent
+ end
+
+ def accept_list_start_bullet
+ assert_equal "", @to.res.join
+ assert_equal [nil], @to.list_index
+ assert_equal [:BULLET], @to.list_type
+ assert_equal [1], @to.list_width
+ end
+
+ def accept_list_start_label
+ assert_equal "", @to.res.join
+ assert_equal [nil], @to.list_index
+ assert_equal [:LABEL], @to.list_type
+ assert_equal [2], @to.list_width
+ end
+
+ def accept_list_start_lalpha
+ assert_equal "", @to.res.join
+ assert_equal ['a'], @to.list_index
+ assert_equal [:LALPHA], @to.list_type
+ assert_equal [1], @to.list_width
+ end
+
+ def accept_list_start_note
+ assert_equal "", @to.res.join
+ assert_equal [nil], @to.list_index
+ assert_equal [:NOTE], @to.list_type
+ assert_equal [2], @to.list_width
+ end
+
+ def accept_list_start_number
+ assert_equal "", @to.res.join
+ assert_equal [1], @to.list_index
+ assert_equal [:NUMBER], @to.list_type
+ assert_equal [1], @to.list_width
+ end
+
+ def accept_list_start_ualpha
+ assert_equal "", @to.res.join
+ assert_equal ['A'], @to.list_index
+ assert_equal [:UALPHA], @to.list_type
+ assert_equal [1], @to.list_width
+ end
+
+ def accept_paragraph
+ assert_equal "hi\n", @to.res.join
+ end
+
+ def accept_raw
+ raw = <<-RAW.rstrip
+<table>
+<tr><th>Name<th>Count
+<tr><td>a<td>1
+<tr><td>b<td>2
+</table>
+ RAW
+
+ assert_equal raw, @to.res.join
+ end
+
+ def accept_rule
+ assert_equal "#{'-' * 78}\n", @to.res.join
+ end
+
+ def accept_verbatim
+ assert_equal " hi\n world\n\n", @to.res.join
+ end
+
+ def end_accepting
+ assert_equal "hi", @to.end_accepting
+ end
+
+ def start_accepting
+ assert_equal 0, @to.indent
+ assert_equal [""], @to.res
+ assert_empty @to.list_index
+ assert_empty @to.list_type
+ assert_empty @to.list_width
+ end
+
+ def accept_heading_1
+ assert_equal "= Hello\n", @to.end_accepting
+ end
+
+ def accept_heading_2
+ assert_equal "== Hello\n", @to.end_accepting
+ end
+
+ def accept_heading_3
+ assert_equal "=== Hello\n", @to.end_accepting
+ end
+
+ def accept_heading_4
+ assert_equal "==== Hello\n", @to.end_accepting
+ end
+
+ def accept_heading_indent
+ assert_equal " = Hello\n", @to.end_accepting
+ end
+
+ def accept_heading_b
+ assert_equal "= <b>Hello</b>\n", @to.end_accepting
+ end
+
+ def accept_heading_suppressed_crossref
+ assert_equal "= Hello\n", @to.end_accepting
+ end
+
+ def accept_list_item_start_note_2
+ assert_equal "<tt>teletype</tt>:\n teletype description\n\n", @to.res.join
+ end
+
+ def accept_paragraph_b
+ assert_equal "reg <b>bold words</b> reg\n", @to.end_accepting
+ end
+
+ def accept_paragraph_i
+ assert_equal "reg <em>italic words</em> reg\n", @to.end_accepting
+ end
+
+ def accept_paragraph_indent
+ expected = <<-EXPECTED
+ words words words words words words words words words words words words
+ words words words words words words words words words words words words
+ words words words words words words
+ EXPECTED
+
+ assert_equal expected, @to.end_accepting
+ end
+
+ def accept_paragraph_plus
+ assert_equal "reg <tt>teletype</tt> reg\n", @to.end_accepting
+ end
+
+ def accept_paragraph_star
+ assert_equal "reg <b>bold</b> reg\n", @to.end_accepting
+ end
+
+ def accept_paragraph_underscore
+ assert_equal "reg <em>italic</em> reg\n", @to.end_accepting
+ end
+
+ def accept_paragraph_wrap
+ expected = <<-EXPECTED
+words words words words words words words words words words words words words
+words words words words words words words words words words words words words
+words words words words
+ EXPECTED
+
+ assert_equal expected, @to.end_accepting
+ end
+
+ def accept_rule_indent
+ assert_equal " #{'-' * 75}\n", @to.end_accepting
+ end
+
+ def accept_verbatim_indent
+ assert_equal " hi\n world\n\n", @to.end_accepting
+ end
+
+ def accept_verbatim_big_indent
+ assert_equal " hi\n world\n\n", @to.end_accepting
+ end
+
+ def list_nested
+ expected = <<-EXPECTED
+* l1
+ * l1.1
+* l2
+ EXPECTED
+
+ assert_equal expected, @to.end_accepting
+ end
+
+ def list_verbatim
+ expected = <<-EXPECTED # HACK overblown
+* list stuff
+
+ * list
+ with
+
+ second
+
+ 1. indented
+ 2. numbered
+
+ third
+
+ * second
+
+ EXPECTED
+
+ assert_equal expected, @to.end_accepting
+ end
+
+ def test_accept_indented_paragraph
+ ip = RDoc::Markup::IndentedParagraph.new 2, 'cats are cool'
+
+ @to.start_accepting
+
+ @to.accept_indented_paragraph ip
+
+ assert_equal " cats are cool\n", @to.end_accepting
+ end
+
+end
+
diff --git a/test/rdoc/test_rdoc_markup_to_tt_only.rb b/test/rdoc/test_rdoc_markup_to_tt_only.rb
new file mode 100644
index 0000000000..f5bb662897
--- /dev/null
+++ b/test/rdoc/test_rdoc_markup_to_tt_only.rb
@@ -0,0 +1,229 @@
+require 'rubygems'
+require 'rdoc/markup/formatter_test_case'
+require 'rdoc/markup/to_tt_only'
+require 'minitest/autorun'
+
+class TestRDocMarkupToTtOnly < RDoc::Markup::FormatterTestCase
+
+ add_visitor_tests
+
+ def setup
+ super
+
+ @to = RDoc::Markup::ToTtOnly.new
+ end
+
+ def accept_blank_line
+ assert_empty @to.end_accepting
+ end
+
+ def accept_document
+ assert_equal [], @to.res
+ end
+
+ def accept_heading
+ assert_empty @to.end_accepting
+ end
+
+ def accept_list_end_bullet
+ assert_empty @to.res
+ end
+
+ def accept_list_end_label
+ assert_empty @to.res
+ end
+
+ def accept_list_end_lalpha
+ assert_empty @to.res
+ end
+
+ def accept_list_end_note
+ assert_empty @to.res
+ end
+
+ def accept_list_end_number
+ assert_empty @to.res
+ end
+
+ def accept_list_end_ualpha
+ assert_empty @to.res
+ end
+
+ def accept_list_item_end_bullet
+ assert_empty @to.res
+ end
+
+ def accept_list_item_end_label
+ assert_empty @to.res
+ end
+
+ def accept_list_item_end_lalpha
+ assert_empty @to.res
+ end
+
+ def accept_list_item_end_note
+ assert_empty @to.res
+ end
+
+ def accept_list_item_end_number
+ assert_empty @to.res
+ end
+
+ def accept_list_item_end_ualpha
+ assert_empty @to.res
+ end
+
+ def accept_list_item_start_bullet
+ assert_empty @to.res
+ end
+
+ def accept_list_item_start_label
+ assert_empty @to.res
+ end
+
+ def accept_list_item_start_lalpha
+ assert_empty @to.res
+ end
+
+ def accept_list_item_start_note
+ assert_empty @to.res
+ end
+
+ def accept_list_item_start_number
+ assert_empty @to.res
+ end
+
+ def accept_list_item_start_ualpha
+ assert_empty @to.res
+ end
+
+ def accept_list_start_bullet
+ assert_empty @to.res
+ end
+
+ def accept_list_start_label
+ assert_empty @to.res
+ end
+
+ def accept_list_start_lalpha
+ assert_empty @to.res
+ end
+
+ def accept_list_start_note
+ assert_empty @to.res
+ end
+
+ def accept_list_start_number
+ assert_empty @to.res
+ end
+
+ def accept_list_start_ualpha
+ assert_empty @to.res
+ end
+
+ def accept_paragraph
+ assert_empty @to.end_accepting
+ end
+
+ def accept_raw
+ assert_empty @to.end_accepting
+ end
+
+ def accept_rule
+ assert_empty @to.end_accepting
+ end
+
+ def accept_verbatim
+ assert_empty @to.end_accepting
+ end
+
+ def end_accepting
+ assert_equal %w[hi], @to.end_accepting
+ end
+
+ def start_accepting
+ assert_empty @to.end_accepting
+ end
+
+ def accept_heading_1
+ assert_empty @to.end_accepting
+ end
+
+ def accept_heading_2
+ assert_empty @to.end_accepting
+ end
+
+ def accept_heading_3
+ assert_empty @to.end_accepting
+ end
+
+ def accept_heading_4
+ assert_empty @to.end_accepting
+ end
+
+ def accept_heading_indent
+ assert_empty @to.end_accepting
+ end
+
+ def accept_heading_b
+ assert_empty @to.end_accepting
+ end
+
+ def accept_heading_suppressed_crossref
+ assert_empty @to.end_accepting
+ end
+
+ def accept_list_item_start_note_2
+ assert_equal [nil, 'teletype', nil], @to.res
+ end
+
+ def accept_paragraph_b
+ assert_empty @to.end_accepting
+ end
+
+ def accept_paragraph_i
+ assert_empty @to.end_accepting
+ end
+
+ def accept_paragraph_indent
+ assert_empty @to.end_accepting
+ end
+
+ def accept_paragraph_plus
+ assert_equal %w[teletype], @to.end_accepting
+ end
+
+ def accept_paragraph_star
+ assert_empty @to.end_accepting
+ end
+
+ def accept_paragraph_underscore
+ assert_empty @to.end_accepting
+ end
+
+ def accept_paragraph_wrap
+ assert_empty @to.end_accepting
+ end
+
+ def accept_rule_indent
+ assert_empty @to.end_accepting
+ end
+
+ def accept_verbatim_indent
+ assert_empty @to.end_accepting
+ end
+
+ def accept_verbatim_big_indent
+ assert_empty @to.end_accepting
+ end
+
+ def list_nested
+ assert_empty @to.end_accepting
+ end
+
+ def list_verbatim
+ assert_empty @to.end_accepting
+ end
+
+end
+
diff --git a/test/rdoc/test_rdoc_method_attr.rb b/test/rdoc/test_rdoc_method_attr.rb
new file mode 100644
index 0000000000..007a3f6b35
--- /dev/null
+++ b/test/rdoc/test_rdoc_method_attr.rb
@@ -0,0 +1,122 @@
+require File.expand_path '../xref_test_case', __FILE__
+
+class TestRDocMethodAttr < XrefTestCase
+
+ def test_block_params_equal
+
+ m = RDoc::MethodAttr.new(nil, 'foo')
+
+ m.block_params = ''
+ assert_equal '', m.block_params
+
+ m.block_params = 'a_var'
+ assert_equal 'a_var', m.block_params
+
+ m.block_params = '()'
+ assert_equal '', m.block_params
+
+ m.block_params = '(a_var, b_var)'
+ assert_equal 'a_var, b_var', m.block_params
+
+ m.block_params = '.to_s + "</#{element.upcase}>"'
+ assert_equal '', m.block_params
+
+ m.block_params = 'i.name'
+ assert_equal 'name', m.block_params
+
+ m.block_params = 'attr.expanded_name, attr.value'
+ assert_equal 'expanded_name, value', m.block_params
+
+ m.block_params = 'expanded_name, attr.value'
+ assert_equal 'expanded_name, value', m.block_params
+
+ m.block_params = 'attr.expanded_name, value'
+ assert_equal 'expanded_name, value', m.block_params
+
+ m.block_params = '(@base_notifier)'
+ assert_equal 'base_notifier', m.block_params
+
+ m.block_params = 'if @signal_status == :IN_LOAD'
+ assert_equal '', m.block_params
+
+ m.block_params = 'e if e.kind_of? Element'
+ assert_equal 'e', m.block_params
+
+ m.block_params = '(e, f) if e.kind_of? Element'
+ assert_equal 'e, f', m.block_params
+
+ m.block_params = 'back_path, back_name'
+ assert_equal 'back_path, back_name', m.block_params
+
+ m.block_params = '(*a[1..-1])'
+ assert_equal '*a', m.block_params
+
+ m.block_params = '@@context[:node] if defined? @@context[:node].namespace'
+ assert_equal 'context', m.block_params
+
+ m.block_params = '(result, klass.const_get(constant_name))'
+ assert_equal 'result, const', m.block_params
+
+ m.block_params = 'name.to_s if (bitmap & bit) != 0'
+ assert_equal 'name', m.block_params
+
+ m.block_params = 'line unless line.deleted'
+ assert_equal 'line', m.block_params
+
+ m.block_params = 'str + rs'
+ assert_equal 'str', m.block_params
+
+ m.block_params = 'f+rs'
+ assert_equal 'f', m.block_params
+
+ m.block_params = '[user, realm, hash[user]]'
+ assert_equal 'user, realm, hash', m.block_params
+
+ m.block_params = 'proc{|rc| rc == "rc" ? irbrc : irbrc+rc| ... }'
+ assert_equal 'proc', m.block_params
+
+ m.block_params = 'lambda { |x| x.to_i }'
+ assert_equal 'lambda', m.block_params
+
+ m.block_params = '$&'
+ assert_equal 'str', m.block_params
+
+ m.block_params = 'Inflections.instance'
+ assert_equal 'instance', m.block_params
+
+ m.block_params = 'self.class::STARTED'
+ assert_equal 'STARTED', m.block_params
+
+ m.block_params = 'Test::Unit::TestCase::STARTED'
+ assert_equal 'STARTED', m.block_params
+
+ m.block_params = 'ActiveSupport::OptionMerger.new(self, options)'
+ assert_equal 'option_merger', m.block_params
+
+ m.block_params = ', msg'
+ assert_equal '', m.block_params
+
+ m.block_params = '[size.to_s(16), term, chunk, term].join'
+ assert_equal '[size, term, chunk, term].join', m.block_params
+
+ m.block_params = 'YPath.new( path )'
+ assert_equal 'y_path', m.block_params
+
+ end
+
+ def test_find_method_or_attribute_recursive
+ inc = RDoc::Include.new 'M1', nil
+ @m1.add_include inc # M1 now includes itself
+
+ assert_nil @m1_m.find_method_or_attribute 'm'
+ end
+
+ def test_to_s
+ assert_equal 'RDoc::AnyMethod: C1#m', @c1_m.to_s
+ assert_equal 'RDoc::AnyMethod: C2#b', @c2_b.to_s
+ assert_equal 'RDoc::AnyMethod: C1::m', @c1__m.to_s
+ end
+
+
+end
+
diff --git a/test/rdoc/test_rdoc_normal_class.rb b/test/rdoc/test_rdoc_normal_class.rb
new file mode 100644
index 0000000000..bd0d67e19c
--- /dev/null
+++ b/test/rdoc/test_rdoc_normal_class.rb
@@ -0,0 +1,23 @@
+require File.expand_path '../xref_test_case', __FILE__
+
+class TestRDocNormalClass < XrefTestCase
+
+ def test_ancestors_class
+ top_level = RDoc::TopLevel.new 'file.rb'
+ klass = top_level.add_class RDoc::NormalClass, 'Klass'
+ incl = RDoc::Include.new 'Incl', ''
+
+ sub_klass = klass.add_class RDoc::NormalClass, 'SubClass', 'Klass'
+ sub_klass.add_include incl
+
+ assert_equal [incl.name, klass], sub_klass.ancestors
+ end
+
+ def test_definition
+ c = RDoc::NormalClass.new 'C'
+
+ assert_equal 'class C', c.definition
+ end
+
+end
+
diff --git a/test/rdoc/test_rdoc_normal_module.rb b/test/rdoc/test_rdoc_normal_module.rb
new file mode 100644
index 0000000000..975bf911fe
--- /dev/null
+++ b/test/rdoc/test_rdoc_normal_module.rb
@@ -0,0 +1,37 @@
+require File.expand_path '../xref_test_case', __FILE__
+
+class TestRDocNormalModule < XrefTestCase
+
+ def setup
+ super
+
+ @mod = RDoc::NormalModule.new 'Mod'
+ end
+
+ def test_ancestors_module
+ top_level = RDoc::TopLevel.new 'file.rb'
+ mod = top_level.add_module RDoc::NormalModule, 'Mod'
+ incl = RDoc::Include.new 'Incl', ''
+
+ mod.add_include incl
+
+ assert_equal [incl.name], mod.ancestors
+
+ mod2 = top_level.add_module RDoc::NormalModule, 'Inc2'
+ inc2 = RDoc::Include.new 'Inc2', ''
+ mod.add_include inc2
+ assert_equal [mod2, incl.name], mod.ancestors
+ end
+
+ def test_definition
+ m = RDoc::NormalModule.new 'M'
+
+ assert_equal 'module M', m.definition
+ end
+
+ def test_module_eh
+ assert @mod.module?
+ end
+
+end
+
diff --git a/test/rdoc/test_rdoc_options.rb b/test/rdoc/test_rdoc_options.rb
new file mode 100644
index 0000000000..763f50b5f0
--- /dev/null
+++ b/test/rdoc/test_rdoc_options.rb
@@ -0,0 +1,392 @@
+require 'rubygems'
+require 'minitest/autorun'
+require 'rdoc/options'
+
+require 'fileutils'
+require 'tmpdir'
+
+class TestRDocOptions < MiniTest::Unit::TestCase
+
+ def setup
+ @options = RDoc::Options.new
+ @generators = RDoc::RDoc::GENERATORS.dup
+ end
+
+ def teardown
+ RDoc::RDoc::GENERATORS.replace @generators
+ end
+
+ def test_check_files
+ skip "assumes UNIX permission model" if /mswin|mingw/ =~ RUBY_PLATFORM
+ out, err = capture_io do
+ Dir.mktmpdir do |dir|
+ Dir.chdir dir do
+ FileUtils.touch 'unreadable'
+ FileUtils.chmod 0, 'unreadable'
+
+ @options.files = %w[nonexistent unreadable]
+
+ @options.check_files
+ end
+ end
+ end
+
+ assert_empty @options.files
+
+ assert_equal '', out
+
+ expected = <<-EXPECTED
+file 'nonexistent' not found
+file 'unreadable' not readable
+ EXPECTED
+
+ assert_equal expected, err
+ end
+
+ def test_dry_run_default
+ refute @options.dry_run
+ end
+
+ def test_encoding_default
+ skip "Encoding not implemented" unless Object.const_defined? :Encoding
+
+ assert_equal Encoding.default_external, @options.encoding
+ end
+
+ def test_generator_descriptions
+ # HACK autotest/isolate should take care of this
+ RDoc::RDoc::GENERATORS.clear
+ RDoc::RDoc::GENERATORS['darkfish'] = RDoc::Generator::Darkfish
+ RDoc::RDoc::GENERATORS['ri'] = RDoc::Generator::RI
+
+ expected = <<-EXPECTED.chomp
+ darkfish - HTML generator, written by Michael Granger
+ ri - creates ri data files
+ EXPECTED
+
+ assert_equal expected, @options.generator_descriptions
+ end
+
+ def test_parse_coverage
+ @options.parse %w[--dcov]
+
+ assert @options.coverage_report
+ assert @options.force_update
+ end
+
+ def test_parse_coverage_no
+ @options.parse %w[--no-dcov]
+
+ refute @options.coverage_report
+ end
+
+ def test_parse_coverage_level_1
+ @options.parse %w[--dcov=1]
+
+ assert_equal 1, @options.coverage_report
+ end
+
+ def test_parse_dash_p
+ out, err = capture_io do
+ @options.parse %w[-p]
+ end
+
+ assert @options.pipe
+ refute_match %r%^Usage: %, err
+ refute_match %r%^invalid options%, err
+
+ assert_empty out
+ end
+
+ def test_parse_dash_p_files
+ out, err = capture_io do
+ @options.parse ['-p', File.expand_path(__FILE__)]
+ end
+
+ refute @options.pipe
+ refute_match %r%^Usage: %, err
+ assert_match %r%^invalid options: -p .with files.%, err
+
+ assert_empty out
+ end
+
+ def test_parse_default
+ @options.parse []
+
+ assert_equal RDoc::Generator::Darkfish, @options.generator
+ assert_equal 'darkfish', @options.template
+ assert_match %r%rdoc/generator/template/darkfish$%, @options.template_dir
+ end
+
+ def test_parse_deprecated
+ dep_hash = RDoc::Options::DEPRECATED
+ options = dep_hash.keys.sort
+
+ out, err = capture_io do
+ @options.parse options
+ end
+
+ dep_hash.each_pair do |opt, message|
+ assert_match %r%.*#{opt}.+#{message}%, err
+ end
+
+ assert_empty out
+ end
+
+ def test_parse_dry_run
+ @options.parse %w[--dry-run]
+
+ assert @options.dry_run
+ end
+
+ def test_parse_encoding
+ skip "Encoding not implemented" unless Object.const_defined? :Encoding
+
+ @options.parse %w[--encoding Big5]
+
+ assert_equal Encoding::Big5, @options.encoding
+ assert_equal 'Big5', @options.charset
+ end
+
+ def test_parse_encoding_invalid
+ skip "Encoding not implemented" unless Object.const_defined? :Encoding
+
+ out, err = capture_io do
+ @options.parse %w[--encoding invalid]
+ end
+
+ assert_match %r%^invalid options: --encoding invalid%, err
+
+ assert_empty out
+ end
+
+ def test_parse_formatter
+ e = assert_raises OptionParser::InvalidOption do
+ @options.parse %w[--format darkfish --format ri]
+ end
+
+ assert_equal 'invalid option: --format generator already set to darkfish',
+ e.message
+ end
+
+ def test_parse_formatter_ri
+ e = assert_raises OptionParser::InvalidOption do
+ @options.parse %w[--format darkfish --ri]
+ end
+
+ assert_equal 'invalid option: --ri generator already set to darkfish',
+ e.message
+
+ @options = RDoc::Options.new
+
+ e = assert_raises OptionParser::InvalidOption do
+ @options.parse %w[--format darkfish -r]
+ end
+
+ assert_equal 'invalid option: -r generator already set to darkfish',
+ e.message
+ end
+
+ def test_parse_formatter_ri_site
+ e = assert_raises OptionParser::InvalidOption do
+ @options.parse %w[--format darkfish --ri-site]
+ end
+
+ assert_equal 'invalid option: --ri-site generator already set to darkfish',
+ e.message
+
+ @options = RDoc::Options.new
+
+ e = assert_raises OptionParser::InvalidOption do
+ @options.parse %w[--format darkfish -R]
+ end
+
+ assert_equal 'invalid option: -R generator already set to darkfish',
+ e.message
+ end
+
+ def test_parse_help
+ out, = capture_io do
+ begin
+ @options.parse %w[--help]
+ rescue SystemExit
+ end
+ end
+
+ assert_equal 1, out.scan(/HTML generator options:/).length
+ assert_equal 1, out.scan(/ri generator options:/). length
+ end
+
+ def test_parse_help_extra_generator
+ RDoc::RDoc::GENERATORS['test'] = Class.new do
+ def self.setup_options options
+ op = options.option_parser
+
+ op.separator 'test generator options:'
+ end
+ end
+
+ out, = capture_io do
+ begin
+ @options.parse %w[--help]
+ rescue SystemExit
+ end
+ end
+
+ assert_equal 1, out.scan(/HTML generator options:/).length
+ assert_equal 1, out.scan(/ri generator options:/). length
+ assert_equal 1, out.scan(/test generator options:/).length
+ end
+
+ def test_parse_ignore_invalid
+ out, err = capture_io do
+ @options.parse %w[--ignore-invalid --bogus]
+ end
+
+ refute_match %r%^Usage: %, err
+ assert_match %r%^invalid options: --bogus%, err
+
+ assert_empty out
+ end
+
+ def test_parse_ignore_invalid_default
+ out, err = capture_io do
+ @options.parse %w[--bogus --main BLAH]
+ end
+
+ refute_match %r%^Usage: %, err
+ assert_match %r%^invalid options: --bogus%, err
+
+ assert_equal 'BLAH', @options.main_page
+
+ assert_empty out
+ end
+
+ def test_parse_ignore_invalid_no
+ out, err = capture_io do
+ assert_raises SystemExit do
+ @options.parse %w[--no-ignore-invalid --bogus=arg --bobogus --visibility=extended]
+ end
+ end
+
+ assert_match %r%^Usage: %, err
+ assert_match %r%^invalid options: --bogus=arg, --bobogus, --visibility=extended%, err
+
+ assert_empty out
+ end
+
+ def test_parse_main
+ out, err = capture_io do
+ @options.parse %w[--main MAIN]
+ end
+
+ assert_empty out
+ assert_empty err
+
+ assert_equal 'MAIN', @options.main_page
+ end
+
+ def test_parse_template
+ out, err = capture_io do
+ @options.parse %w[--template darkfish]
+ end
+
+ assert_empty out
+ assert_empty err
+
+ assert_equal 'darkfish', @options.template
+
+ assert_match %r%rdoc/generator/template/darkfish$%, @options.template_dir
+ end
+
+ def test_parse_template_nonexistent
+ out, err = capture_io do
+ @options.parse %w[--template NONEXISTENT]
+ end
+
+ assert_empty out
+ assert_equal "could not find template NONEXISTENT\n", err
+
+ assert_equal 'darkfish', @options.template
+ assert_match %r%rdoc/generator/template/darkfish$%, @options.template_dir
+ end
+
+ def test_parse_template_load_path
+ orig_LOAD_PATH = $LOAD_PATH.dup
+
+ template_dir = nil
+
+ Dir.mktmpdir do |dir|
+ $LOAD_PATH << dir
+
+ template_dir = File.join dir, 'rdoc', 'generator', 'template', 'load_path'
+
+ FileUtils.mkdir_p template_dir
+
+ out, err = capture_io do
+ @options.parse %w[--template load_path]
+ end
+
+ assert_empty out
+ assert_empty err
+ end
+
+ assert_equal 'load_path', @options.template
+ assert_equal template_dir, @options.template_dir
+ ensure
+ $LOAD_PATH.replace orig_LOAD_PATH
+ end
+
+ def test_setup_generator
+ test_generator = Class.new do
+ def self.setup_options op
+ @op = op
+ end
+
+ def self.op() @op end
+ end
+
+ RDoc::RDoc::GENERATORS['test'] = test_generator
+
+ @options.setup_generator 'test'
+
+ assert_equal test_generator, @options.generator
+ assert_equal [test_generator], @options.generator_options
+
+ assert_equal @options, test_generator.op
+ ensure
+ RDoc::RDoc::GENERATORS.delete 'test'
+ end
+
+ def test_setup_generator_no_option_parser
+ test_generator = Class.new do
+ def self.setup_options op
+ op.option_parser.separator nil
+ @op = op
+ end
+
+ def self.op() @op end
+ end
+
+ RDoc::RDoc::GENERATORS['test'] = test_generator
+
+ @options.setup_generator 'test'
+
+ assert_equal test_generator, @options.generator
+ assert_equal [test_generator], @options.generator_options
+
+ assert_equal @options, test_generator.op
+ ensure
+ RDoc::RDoc::GENERATORS.delete 'test'
+ end
+
+ def test_update_output_dir
+ assert @options.update_output_dir
+
+ @options.update_output_dir = false
+
+ refute @options.update_output_dir
+ end
+
+end
+
diff --git a/test/rdoc/test_rdoc_parser.rb b/test/rdoc/test_rdoc_parser.rb
index d6420d20f1..e0629e37b6 100644
--- a/test/rdoc/test_rdoc_parser.rb
+++ b/test/rdoc/test_rdoc_parser.rb
@@ -1,23 +1,83 @@
require 'rubygems'
-require 'minitest/unit'
+require 'minitest/autorun'
require 'rdoc/parser'
require 'rdoc/parser/ruby'
+require 'tmpdir'
class TestRDocParser < MiniTest::Unit::TestCase
- def test_can_parse
- assert_equal(RDoc::Parser.can_parse(__FILE__), RDoc::Parser::Ruby)
- readme_file_name = File.join(File.dirname(__FILE__), "..", "README.txt")
+ def setup
+ @RP = RDoc::Parser
+ @binary_dat = File.expand_path '../binary.dat', __FILE__
+ end
- unless File.exist? readme_file_name then # HACK for tests in trunk :/
- readme_file_name = File.join File.dirname(__FILE__), '..', '..', 'README'
+ def test_class_binary_eh_marshal
+ marshal = File.join Dir.tmpdir, "test_rdoc_parser_#{$$}.marshal"
+ open marshal, 'wb' do |io|
+ io.write Marshal.dump('')
+ io.write 'lots of text ' * 500
end
- assert_equal(RDoc::Parser.can_parse(readme_file_name), RDoc::Parser::Simple)
+ assert @RP.binary?(marshal)
+ ensure
+ File.unlink marshal
+ end
+
+ def test_class_binary_japanese_text
+ file_name = File.expand_path '../test.ja.txt', __FILE__
+ refute @RP.binary?(file_name)
+ end
+
+ def test_class_binary_large_japanese_rdoc
+ file_name = File.expand_path '../test.ja.large.rdoc', __FILE__
+ assert !@RP.binary?(file_name)
+ end
+
+ def test_class_binary_japanese_rdoc
+ skip "Encoding not implemented" unless Object.const_defined? :Encoding
- binary_file_name = File.join(File.dirname(__FILE__), "binary.dat")
- assert_equal(RDoc::Parser.can_parse(binary_file_name), nil)
+ file_name = File.expand_path '../test.ja.rdoc', __FILE__
+ refute @RP.binary?(file_name)
end
+
+ def test_class_can_parse
+ assert_equal @RP.can_parse(__FILE__), @RP::Ruby
+
+ readme_file_name = File.expand_path '../test.txt', __FILE__
+
+ assert_equal @RP::Simple, @RP.can_parse(readme_file_name)
+
+ assert_nil @RP.can_parse(@binary_dat)
+
+ jtest_file_name = File.expand_path '../test.ja.txt', __FILE__
+ assert_equal @RP::Simple, @RP.can_parse(jtest_file_name)
+
+ jtest_rdoc_file_name = File.expand_path '../test.ja.rdoc', __FILE__
+ assert_equal @RP::Simple, @RP.can_parse(jtest_rdoc_file_name)
+
+ readme_file_name = File.expand_path '../README', __FILE__
+ assert_equal @RP::Simple, @RP.can_parse(readme_file_name)
+ end
+
+ ##
+ # Selenium hides a .jar file using a .txt extension.
+
+ def test_class_can_parse_zip
+ hidden_zip = File.expand_path '../hidden.zip.txt', __FILE__
+ assert_nil @RP.can_parse(hidden_zip)
+ end
+
+ def test_class_for_binary
+ rp = @RP.dup
+
+ class << rp
+ alias old_can_parse can_parse
+ end
+
+ def rp.can_parse(*args) nil end
+
+ assert_nil @RP.for(nil, @binary_dat, nil, nil, nil)
+ end
+
end
-MiniTest::Unit.autorun
diff --git a/test/rdoc/test_rdoc_parser_c.rb b/test/rdoc/test_rdoc_parser_c.rb
index ebf96594c8..438eeee2ab 100644
--- a/test/rdoc/test_rdoc_parser_c.rb
+++ b/test/rdoc/test_rdoc_parser_c.rb
@@ -1,10 +1,50 @@
require 'stringio'
require 'tempfile'
require 'rubygems'
-require 'minitest/unit'
+require 'minitest/autorun'
require 'rdoc/options'
require 'rdoc/parser/c'
+=begin
+ TODO: test call-seq parsing
+
+/*
+ * call-seq:
+ * ARGF.readlines(sep=$/) -> array
+ * ARGF.readlines(limit) -> array
+ * ARGF.readlines(sep, limit) -> array
+ *
+ * ARGF.to_a(sep=$/) -> array
+ * ARGF.to_a(limit) -> array
+ * ARGF.to_a(sep, limit) -> array
+ *
+ * Reads +ARGF+'s current file in its entirety, returning an +Array+ of its
+ * lines, one line per element. Lines are assumed to be separated by _sep_.
+ *
+ * lines = ARGF.readlines
+ * lines[0] #=> "This is line one\n"
+ */
+
+assert call-seq did not stop at first empty line
+
+/*
+ * call-seq:
+ *
+ * flt ** other -> float
+ *
+ * Raises <code>float</code> the <code>other</code> power.
+ *
+ * 2.0**3 #=> 8.0
+ */
+
+assert call-seq correct (bug: was empty)
+
+/* call-seq: flt ** other -> float */
+
+assert call-seq correct
+
+=end
+
class RDoc::Parser::C
attr_accessor :classes
@@ -21,22 +61,198 @@ class TestRDocParserC < MiniTest::Unit::TestCase
@fn = filename
@options = RDoc::Options.new
@stats = RDoc::Stats.new 0
+
+ RDoc::Parser::C.reset
+ RDoc::TopLevel.reset
end
def teardown
@tempfile.close
end
+ def test_class_can_parse
+ c_parser = RDoc::Parser::C
+
+ assert_equal c_parser, c_parser.can_parse('file.C')
+ assert_equal c_parser, c_parser.can_parse('file.CC')
+ assert_equal c_parser, c_parser.can_parse('file.H')
+ assert_equal c_parser, c_parser.can_parse('file.HH')
+ assert_equal c_parser, c_parser.can_parse('file.c')
+ assert_equal c_parser, c_parser.can_parse('file.cc')
+ assert_equal c_parser, c_parser.can_parse('file.cpp')
+ assert_equal c_parser, c_parser.can_parse('file.cxx')
+ assert_equal c_parser, c_parser.can_parse('file.h')
+ assert_equal c_parser, c_parser.can_parse('file.hh')
+ assert_equal c_parser, c_parser.can_parse('file.y')
+ end
+
+ def test_do_attr_rb_attr
+ content = <<-EOF
+void Init_Blah(void) {
+ cBlah = rb_define_class("Blah", rb_cObject);
+
+ /*
+ * This is an accessor
+ */
+ rb_attr(cBlah, rb_intern("accessor"), 1, 1, Qfalse);
+
+ /*
+ * This is a reader
+ */
+ rb_attr(cBlah, rb_intern("reader"), 1, 0, Qfalse);
+
+ /*
+ * This is a writer
+ */
+ rb_attr(cBlah, rb_intern("writer"), 0, 1, Qfalse);
+}
+ EOF
+
+ klass = util_get_class content, 'cBlah'
+
+ attrs = klass.attributes
+ assert_equal 3, attrs.length, attrs.inspect
+
+ accessor = attrs.shift
+ assert_equal 'accessor', accessor.name
+ assert_equal 'RW', accessor.rw
+ assert_equal 'This is an accessor', accessor.comment
+ assert_equal @top_level, accessor.file
+
+ reader = attrs.shift
+ assert_equal 'reader', reader.name
+ assert_equal 'R', reader.rw
+ assert_equal 'This is a reader', reader.comment
+
+ writer = attrs.shift
+ assert_equal 'writer', writer.name
+ assert_equal 'W', writer.rw
+ assert_equal 'This is a writer', writer.comment
+ end
+
+ def test_do_attr_rb_define_attr
+ content = <<-EOF
+void Init_Blah(void) {
+ cBlah = rb_define_class("Blah", rb_cObject);
+
+ /*
+ * This is an accessor
+ */
+ rb_define_attr(cBlah, "accessor", 1, 1);
+}
+ EOF
+
+ klass = util_get_class content, 'cBlah'
+
+ attrs = klass.attributes
+ assert_equal 1, attrs.length, attrs.inspect
+
+ accessor = attrs.shift
+ assert_equal 'accessor', accessor.name
+ assert_equal 'RW', accessor.rw
+ assert_equal 'This is an accessor', accessor.comment
+ assert_equal @top_level, accessor.file
+ end
+
+ def test_do_aliases
+ content = <<-EOF
+/*
+ * This should show up as an alias with documentation
+ */
+VALUE blah(VALUE klass, VALUE year) {
+}
+
+void Init_Blah(void) {
+ cDate = rb_define_class("Date", rb_cObject);
+
+ rb_define_method(cDate, "blah", blah, 1);
+
+ rb_define_alias(cDate, "bleh", "blah");
+}
+ EOF
+
+ klass = util_get_class content, 'cDate'
+
+ methods = klass.method_list
+ assert_equal 2, methods.length
+ assert_equal 'bleh', methods.last.name
+ assert_equal 'blah', methods.last.is_alias_for.name
+
+ assert_equal @top_level, methods.last.is_alias_for.file
+ assert_equal @top_level, methods.last.file
+ end
+
+ def test_do_aliases_singleton
+ content = <<-EOF
+/*
+ * This should show up as a method with documentation
+ */
+VALUE blah(VALUE klass, VALUE year) {
+}
+
+void Init_Blah(void) {
+ cDate = rb_define_class("Date", rb_cObject);
+ sDate = rb_singleton_class(cDate);
+
+ rb_define_method(sDate, "blah", blah, 1);
+
+ /*
+ * This should show up as an alias
+ */
+ rb_define_alias(sDate, "bleh", "blah");
+}
+ EOF
+
+ klass = util_get_class content, 'cDate'
+
+ methods = klass.method_list
+
+ assert_equal 2, methods.length
+ assert_equal 'bleh', methods.last.name
+ assert methods.last.singleton
+ assert_equal 'blah', methods.last.is_alias_for.name
+ assert_equal 'This should show up as an alias', methods.last.comment
+ end
+
def test_do_classes_boot_class
content = <<-EOF
/* Document-class: Foo
* this is the Foo boot class
*/
+VALUE cFoo = boot_defclass("Foo", rb_cObject);
+ EOF
+
+ klass = util_get_class content, 'cFoo'
+ assert_equal "this is the Foo boot class", klass.comment
+ assert_equal 'Object', klass.superclass
+ end
+
+ def test_do_classes_boot_class_nil
+ content = <<-EOF
+/* Document-class: Foo
+ * this is the Foo boot class
+ */
VALUE cFoo = boot_defclass("Foo", 0);
EOF
klass = util_get_class content, 'cFoo'
- assert_equal " this is the Foo boot class\n ", klass.comment
+ assert_equal "this is the Foo boot class", klass.comment
+ assert_equal nil, klass.superclass
+ end
+
+ def test_do_aliases_missing_class
+ content = <<-EOF
+void Init_Blah(void) {
+ rb_define_alias(cDate, "b", "a");
+}
+ EOF
+
+ _, err = capture_io do
+ refute util_get_class(content, 'cDate')
+ end
+
+ assert_equal "Enclosing class/module \"cDate\" for alias b a not known\n",
+ err
end
def test_do_classes_class
@@ -48,7 +264,7 @@ VALUE cFoo = rb_define_class("Foo", rb_cObject);
EOF
klass = util_get_class content, 'cFoo'
- assert_equal " this is the Foo class\n ", klass.comment
+ assert_equal "this is the Foo class", klass.comment
end
def test_do_classes_class_under
@@ -60,7 +276,34 @@ VALUE cFoo = rb_define_class_under(rb_mKernel, "Foo", rb_cObject);
EOF
klass = util_get_class content, 'cFoo'
- assert_equal " this is the Foo class under Kernel\n ", klass.comment
+ assert_equal 'Kernel::Foo', klass.full_name
+ assert_equal "this is the Foo class under Kernel", klass.comment
+ end
+
+ def test_do_classes_class_under_rb_path2class
+ content = <<-EOF
+/* Document-class: Kernel::Foo
+ * this is Kernel::Foo < A::B
+ */
+VALUE cFoo = rb_define_class_under(rb_mKernel, "Foo", rb_path2class("A::B"));
+ EOF
+
+ klass = util_get_class content, 'cFoo'
+
+ assert_equal 'Kernel::Foo', klass.full_name
+ assert_equal 'A::B', klass.superclass
+ assert_equal 'this is Kernel::Foo < A::B', klass.comment
+ end
+
+ def test_do_classes_singleton
+ content = <<-EOF
+VALUE cFoo = rb_define_class("Foo", rb_cObject);
+VALUE cFooS = rb_singleton_class(cFoo);
+ EOF
+
+ util_get_class content, 'cFooS'
+
+ assert_equal 'Foo', @parser.singleton_classes['cFooS']
end
def test_do_classes_module
@@ -72,7 +315,7 @@ VALUE mFoo = rb_define_module("Foo");
EOF
klass = util_get_class content, 'mFoo'
- assert_equal " this is the Foo module\n ", klass.comment
+ assert_equal "this is the Foo module", klass.comment
end
def test_do_classes_module_under
@@ -84,7 +327,7 @@ VALUE mFoo = rb_define_module_under(rb_mKernel, "Foo");
EOF
klass = util_get_class content, 'mFoo'
- assert_equal " this is the Foo module under Kernel\n ", klass.comment
+ assert_equal "this is the Foo module under Kernel", klass.comment
end
def test_do_constants
@@ -100,7 +343,7 @@ void Init_foo(){
/* Huzzah!: What you cheer when you roll a perfect game */
rb_define_const(cFoo, "CHEER", rb_str_new2("Huzzah!"));
- /* TEST\:TEST: Checking to see if escaped semicolon works */
+ /* TEST\:TEST: Checking to see if escaped colon works */
rb_define_const(cFoo, "TEST", rb_str_new2("TEST:TEST"));
/* \\: The file separator on MS Windows */
@@ -137,64 +380,227 @@ void Init_foo(){
}
EOF
- parser = util_parser content
+ @parser = util_parser content
- parser.do_classes
- parser.do_constants
+ @parser.do_classes
+ @parser.do_constants
- klass = parser.classes['cFoo']
+ klass = @parser.classes['cFoo']
assert klass
constants = klass.constants
assert !klass.constants.empty?
+ assert_equal @top_level, constants.first.file
+
constants = constants.map { |c| [c.name, c.value, c.comment] }
- assert_equal ['PERFECT', '300',
- "\n The highest possible score in bowling \n "],
+ assert_equal ['PERFECT', '300', 'The highest possible score in bowling '],
constants.shift
assert_equal ['CHEER', 'Huzzah!',
- "\n What you cheer when you roll a perfect game \n "],
+ 'What you cheer when you roll a perfect game '],
constants.shift
assert_equal ['TEST', 'TEST:TEST',
- "\n Checking to see if escaped semicolon works \n "],
+ 'Checking to see if escaped colon works '],
constants.shift
assert_equal ['MSEPARATOR', '\\',
- "\n The file separator on MS Windows \n "],
+ 'The file separator on MS Windows '],
constants.shift
assert_equal ['SEPARATOR', '/',
- "\n The file separator on Unix \n "],
+ 'The file separator on Unix '],
constants.shift
assert_equal ['STUFF', 'C:\\Program Files\\Stuff',
- "\n A directory on MS Windows \n "],
+ 'A directory on MS Windows '],
constants.shift
assert_equal ['NOSEMI', 'INT2FIX(99)',
- "\n Default definition \n "],
+ 'Default definition '],
constants.shift
- assert_equal ['NOCOMMENT', 'rb_str_new2("No comment")', nil],
+ assert_equal ['NOCOMMENT', 'rb_str_new2("No comment")', ''],
constants.shift
comment = <<-EOF.chomp
+Multiline comment goes here because this comment spans multiple lines.
+Multiline comment goes here because this comment spans multiple lines.
+ EOF
+ assert_equal ['MULTILINE', 'INT2FIX(1)', comment], constants.shift
+ assert_equal ['MULTILINE_VALUE', '1', comment], constants.shift
+ assert_equal ['MULTILINE_NOT_EMPTY', 'INT2FIX(1)', comment], constants.shift
-
- Multiline comment goes here because this comment spans multiple lines.
- Multiline comment goes here because this comment spans multiple lines.
-
-
+ assert constants.empty?, constants.inspect
+ end
+
+ def test_do_constants_curses
+ content = <<-EOF
+void Init_curses(){
+ mCurses = rb_define_module("Curses");
+
+ /*
+ * Document-const: Curses::COLOR_BLACK
+ *
+ * Value of the color black
+ */
+ rb_curses_define_const(COLOR_BLACK);
+}
EOF
- assert_equal ['MULTILINE', 'INT2FIX(1)', comment], constants.shift
- assert_equal ['MULTILINE_VALUE', '1', comment], constants.shift
- comment = <<-EOF.chomp
+ @parser = util_parser content
+
+ @parser.do_classes
+ @parser.do_constants
+
+ klass = @parser.classes['mCurses']
- Multiline comment goes here because this comment spans multiple lines.
- Multiline comment goes here because this comment spans multiple lines.
-
-
+ constants = klass.constants
+ refute_empty klass.constants
+
+ assert_equal 'COLOR_BLACK', constants.first.name
+ assert_equal 'UINT2NUM(COLOR_BLACK)', constants.first.value
+ assert_equal 'Value of the color black', constants.first.comment
+ end
+
+ def test_do_includes
+ content = <<-EOF
+Init_foo() {
+ VALUE cFoo = rb_define_class("Foo", rb_cObject);
+ VALUE mInc = rb_define_module("Inc");
+
+ rb_include_module(cFoo, mInc);
+}
EOF
- assert_equal ['MULTILINE_NOT_EMPTY', 'INT2FIX(1)', comment], constants.shift
- assert constants.empty?, constants.inspect
+ klass = util_get_class content, 'cFoo'
+
+ incl = klass.includes.first
+ assert_equal 'Inc', incl.name
+ assert_equal '', incl.comment
+ assert_equal @top_level, incl.file
+ end
+
+ # HACK parsing warning instead of setting up in file
+ def test_do_methods_in_c
+ content = <<-EOF
+VALUE blah(VALUE klass, VALUE year) {
+}
+
+void Init_Blah(void) {
+ cDate = rb_define_class("Date", rb_cObject);
+
+ rb_define_method(cDate, "blah", blah, 1); /* in blah.c */
+}
+ EOF
+
+ klass = nil
+
+ _, err = capture_io do
+ klass = util_get_class content, 'cDate'
+ end
+
+ assert_match ' blah.c ', err
+ end
+
+ # HACK parsing warning instead of setting up in file
+ def test_do_methods_in_cpp
+ content = <<-EOF
+VALUE blah(VALUE klass, VALUE year) {
+}
+
+void Init_Blah(void) {
+ cDate = rb_define_class("Date", rb_cObject);
+
+ rb_define_method(cDate, "blah", blah, 1); /* in blah.cpp */
+}
+ EOF
+
+ klass = nil
+
+ _, err = capture_io do
+ klass = util_get_class content, 'cDate'
+ end
+
+ assert_match ' blah.cpp ', err
+ end
+
+ # HACK parsing warning instead of setting up in file
+ def test_do_methods_in_y
+ content = <<-EOF
+VALUE blah(VALUE klass, VALUE year) {
+}
+
+void Init_Blah(void) {
+ cDate = rb_define_class("Date", rb_cObject);
+
+ rb_define_method(cDate, "blah", blah, 1); /* in blah.y */
+}
+ EOF
+
+ klass = nil
+
+ _, err = capture_io do
+ klass = util_get_class content, 'cDate'
+ end
+
+ assert_match ' blah.y ', err
+ end
+
+ def test_do_methods_singleton_class
+ content = <<-EOF
+VALUE blah(VALUE klass, VALUE year) {
+}
+
+void Init_Blah(void) {
+ cDate = rb_define_class("Date", rb_cObject);
+ sDate = rb_singleton_class(cDate);
+
+ rb_define_method(sDate, "blah", blah, 1);
+}
+ EOF
+
+ klass = util_get_class content, 'cDate'
+
+ methods = klass.method_list
+ assert_equal 1, methods.length
+ assert_equal 'blah', methods.first.name
+ assert methods.first.singleton
+ end
+
+ def test_find_alias_comment
+ parser = util_parser ''
+
+ comment = parser.find_alias_comment 'C', '[]', 'index'
+
+ assert_equal '', comment
+
+ parser = util_parser <<-C
+/*
+ * comment
+ */
+
+rb_define_alias(C, "[]", "index");
+ C
+
+ comment = parser.find_alias_comment 'C', '[]', 'index'
+
+ assert_equal "/*\n * comment\n */\n\n", comment
+ end
+
+ def test_find_class_comment_include
+ @options.rdoc_include << File.dirname(__FILE__)
+
+ content = <<-EOF
+/*
+ * a comment for class Foo
+ *
+ * :include: test.txt
+ */
+void
+Init_Foo(void) {
+ VALUE foo = rb_define_class("Foo", rb_cObject);
+}
+ EOF
+
+ klass = util_get_class content, 'foo'
+
+ assert_equal "a comment for class Foo\n\ntest file", klass.comment
end
def test_find_class_comment_init
@@ -210,7 +616,7 @@ Init_Foo(void) {
klass = util_get_class content, 'foo'
- assert_equal " \n a comment for class Foo\n \n", klass.comment
+ assert_equal "a comment for class Foo", klass.comment
end
def test_find_class_comment_define_class
@@ -223,7 +629,7 @@ VALUE foo = rb_define_class("Foo", rb_cObject);
klass = util_get_class content, 'foo'
- assert_equal " \n a comment for class Foo\n ", klass.comment
+ assert_equal "a comment for class Foo", klass.comment
end
def test_find_class_comment_define_class_Init_Foo
@@ -242,7 +648,572 @@ Init_Foo(void) {
klass = util_get_class content, 'foo'
- assert_equal " \n a comment for class Foo on Init\n \n", klass.comment
+ assert_equal "a comment for class Foo on Init", klass.comment
+ end
+
+ def test_find_class_comment_define_class_Init_Foo_no_void
+ content = <<-EOF
+/*
+ * a comment for class Foo on Init
+ */
+void
+Init_Foo() {
+ /*
+ * a comment for class Foo on rb_define_class
+ */
+ VALUE foo = rb_define_class("Foo", rb_cObject);
+}
+ EOF
+
+ klass = util_get_class content, 'foo'
+
+ assert_equal "a comment for class Foo on Init", klass.comment
+ end
+
+ def test_find_class_comment_define_class_bogus_comment
+ content = <<-EOF
+/*
+ * a comment for other_function
+ */
+void
+other_function() {
+}
+
+void
+Init_Foo(void) {
+ VALUE foo = rb_define_class("Foo", rb_cObject);
+}
+ EOF
+
+ klass = util_get_class content, 'foo'
+
+ assert_equal '', klass.comment
+ end
+
+ def test_find_const_comment_rb_define
+ content = <<-EOF
+/*
+ * A comment
+ */
+rb_define_const(cFoo, "CONST", value);
+ EOF
+
+ parser = util_parser content
+
+ comment = parser.find_const_comment 'const', 'CONST'
+
+ assert_equal "/*\n * A comment\n */\n", comment
+ end
+
+ def test_find_const_comment_document_const
+ content = <<-EOF
+/*
+ * Document-const: CONST
+ *
+ * A comment
+ */
+ EOF
+
+ parser = util_parser content
+
+ comment = parser.find_const_comment nil, 'CONST'
+
+ assert_equal " *\n * A comment\n */", comment
+ end
+
+ def test_find_const_comment_document_const_full_name
+ content = <<-EOF
+/*
+ * Document-const: Foo::CONST
+ *
+ * A comment
+ */
+ EOF
+
+ parser = util_parser content
+
+ comment = parser.find_const_comment nil, 'CONST', 'Foo'
+
+ assert_equal " *\n * A comment\n */", comment
+ end
+
+ def test_find_body
+ content = <<-EOF
+/*
+ * a comment for other_function
+ */
+VALUE
+other_function() {
+}
+
+void
+Init_Foo(void) {
+ VALUE foo = rb_define_class("Foo", rb_cObject);
+
+ rb_define_method(foo, "my_method", other_function, 0);
+}
+ EOF
+
+ klass = util_get_class content, 'foo'
+ other_function = klass.method_list.first
+
+ assert_equal 'my_method', other_function.name
+ assert_equal "a comment for other_function",
+ other_function.comment
+ assert_equal '()', other_function.params
+
+ code = other_function.token_stream.first.text
+
+ assert_equal "VALUE\nother_function() {\n}", code
+ end
+
+ def test_find_body_2
+ content = <<-CONTENT
+/* Copyright (C) 2010 Sven Herzberg
+ *
+ * This file is free software; the author(s) gives unlimited
+ * permission to copy and/or distribute it, with or without
+ * modifications, as long as this notice is preserved.
+ */
+
+#include <ruby.h>
+
+static VALUE
+wrap_initialize (VALUE self)
+{
+ return self;
+}
+
+/* */
+static VALUE
+wrap_shift (VALUE self,
+ VALUE arg)
+{
+ return self;
+}
+
+void
+init_gi_repository (void)
+{
+ VALUE mTest = rb_define_module ("Test");
+ VALUE cTest = rb_define_class_under (mTest, "Test", rb_cObject);
+
+ rb_define_method (cTest, "initialize", wrap_initialize, 0);
+ rb_define_method (cTest, "shift", wrap_shift, 0);
+}
+ CONTENT
+
+ klass = util_get_class content, 'cTest'
+ assert_equal 2, klass.method_list.length
+ end
+
+ def test_find_body_define
+ content = <<-EOF
+#define something something_else
+
+#define other_function rb_other_function
+
+/*
+ * a comment for rb_other_function
+ */
+VALUE
+rb_other_function() {
+}
+
+void
+Init_Foo(void) {
+ VALUE foo = rb_define_class("Foo", rb_cObject);
+
+ rb_define_method(foo, "my_method", other_function, 0);
+}
+ EOF
+
+ klass = util_get_class content, 'foo'
+ other_function = klass.method_list.first
+
+ assert_equal 'my_method', other_function.name
+ assert_equal 'a comment for rb_other_function', other_function.comment
+ assert_equal '()', other_function.params
+ assert_equal 118, other_function.offset
+ assert_equal 8, other_function.line
+
+ code = other_function.token_stream.first.text
+
+ assert_equal "VALUE\nrb_other_function() {\n}", code
+ end
+
+ def test_find_body_define_comment
+ content = <<-EOF
+/*
+ * a comment for other_function
+ */
+#define other_function rb_other_function
+
+/* */
+VALUE
+rb_other_function() {
+}
+
+void
+Init_Foo(void) {
+ VALUE foo = rb_define_class("Foo", rb_cObject);
+
+ rb_define_method(foo, "my_method", other_function, 0);
+}
+ EOF
+
+ klass = util_get_class content, 'foo'
+ other_function = klass.method_list.first
+
+ assert_equal 'my_method', other_function.name
+ assert_equal 'a comment for other_function', other_function.comment
+ assert_equal '()', other_function.params
+ assert_equal 39, other_function.offset
+ assert_equal 4, other_function.line
+
+ code = other_function.token_stream.first.text
+
+ assert_equal "#define other_function rb_other_function", code
+ end
+
+ def test_find_body_document_method
+ content = <<-EOF
+/*
+ * Document-method: bar
+ * Document-method: baz
+ *
+ * a comment for bar
+ */
+VALUE
+bar() {
+}
+
+void
+Init_Foo(void) {
+ VALUE foo = rb_define_class("Foo", rb_cObject);
+
+ rb_define_method(foo, "bar", bar, 0);
+ rb_define_method(foo, "baz", bar, 0);
+}
+ EOF
+
+ klass = util_get_class content, 'foo'
+ assert_equal 2, klass.method_list.length
+
+ methods = klass.method_list.sort
+
+ bar = methods.first
+ assert_equal 'Foo#bar', bar.full_name
+ assert_equal "a comment for bar", bar.comment
+
+ baz = methods.last
+ assert_equal 'Foo#baz', baz.full_name
+ assert_equal "a comment for bar", baz.comment
+ end
+
+ def test_find_body_document_method_equals
+ content = <<-EOF
+/*
+ * Document-method: Zlib::GzipFile#mtime=
+ *
+ * A comment
+ */
+static VALUE
+rb_gzfile_set_mtime(VALUE obj, VALUE mtime)
+{
+
+void
+Init_zlib() {
+ mZlib = rb_define_module("Zlib");
+ cGzipFile = rb_define_class_under(mZlib, "GzipFile", rb_cObject);
+ cGzipWriter = rb_define_class_under(mZlib, "GzipWriter", cGzipFile);
+ rb_define_method(cGzipWriter, "mtime=", rb_gzfile_set_mtime, 1);
+}
+ EOF
+
+ klass = util_get_class content, 'cGzipWriter'
+ assert_equal 1, klass.method_list.length
+
+ methods = klass.method_list.sort
+
+ bar = methods.first
+ assert_equal 'Zlib::GzipWriter#mtime=', bar.full_name
+ assert_equal 'A comment', bar.comment
+ end
+
+ def test_find_body_document_method_same
+ content = <<-EOF
+VALUE
+s_bar() {
+}
+
+VALUE
+bar() {
+}
+
+/*
+ * Document-method: Foo::bar
+ *
+ * a comment for Foo::bar
+ */
+
+/*
+ * Document-method: Foo#bar
+ *
+ * a comment for Foo#bar
+ */
+
+void
+Init_Foo(void) {
+ VALUE foo = rb_define_class("Foo", rb_cObject);
+
+ rb_define_singleton_method(foo, "bar", s_bar, 0);
+ rb_define_method(foo, "bar", bar, 0);
+}
+ EOF
+
+ klass = util_get_class content, 'foo'
+ assert_equal 2, klass.method_list.length
+
+ methods = klass.method_list.sort
+
+ s_bar = methods.first
+ assert_equal 'Foo::bar', s_bar.full_name
+ assert_equal "a comment for Foo::bar", s_bar.comment
+
+ bar = methods.last
+ assert_equal 'Foo#bar', bar.full_name
+ assert_equal "a comment for Foo#bar", bar.comment
+ end
+
+ def test_find_modifiers_call_seq
+ comment = <<-COMMENT
+/* call-seq:
+ * commercial() -> Date <br />
+ * commercial(cwyear, cweek=41, cwday=5, sg=nil) -> Date [ruby 1.8] <br />
+ * commercial(cwyear, cweek=1, cwday=1, sg=nil) -> Date [ruby 1.9]
+ *
+ * If no arguments are given:
+ * * ruby 1.8: returns a +Date+ for 1582-10-15 (the Day of Calendar Reform in
+ * Italy)
+ * * ruby 1.9: returns a +Date+ for julian day 0
+ *
+ * Otherwise, returns a +Date+ for the commercial week year, commercial week,
+ * and commercial week day given. Ignores the 4th argument.
+ */
+
+ COMMENT
+
+ parser = util_parser ''
+ method_obj = RDoc::AnyMethod.new nil, 'blah'
+
+ parser.find_modifiers comment, method_obj
+
+ expected = <<-CALL_SEQ.chomp
+commercial() -> Date <br />
+commercial(cwyear, cweek=41, cwday=5, sg=nil) -> Date [ruby 1.8] <br />
+commercial(cwyear, cweek=1, cwday=1, sg=nil) -> Date [ruby 1.9]
+
+ CALL_SEQ
+
+ assert_equal expected, method_obj.call_seq
+ end
+
+ def test_find_modifiers_call_seq_no_blank
+ comment = <<-COMMENT
+/* call-seq:
+ * commercial() -> Date <br />
+ * commercial(cwyear, cweek=41, cwday=5, sg=nil) -> Date [ruby 1.8] <br />
+ * commercial(cwyear, cweek=1, cwday=1, sg=nil) -> Date [ruby 1.9]
+ */
+
+ COMMENT
+
+ parser = util_parser ''
+ method_obj = RDoc::AnyMethod.new nil, 'blah'
+
+ parser.find_modifiers comment, method_obj
+
+ expected = <<-CALL_SEQ.chomp
+commercial() -> Date <br />
+commercial(cwyear, cweek=41, cwday=5, sg=nil) -> Date [ruby 1.8] <br />
+commercial(cwyear, cweek=1, cwday=1, sg=nil) -> Date [ruby 1.9]
+
+ CALL_SEQ
+
+ assert_equal expected, method_obj.call_seq
+ end
+
+ def test_find_modifiers_nodoc
+ comment = <<-COMMENT
+/* :nodoc:
+ *
+ * Blah
+ */
+
+ COMMENT
+
+ parser = util_parser ''
+ method_obj = RDoc::AnyMethod.new nil, 'blah'
+
+ parser.find_modifiers comment, method_obj
+
+ assert_equal nil, method_obj.document_self
+ end
+
+ def test_find_modifiers_yields
+ comment = <<-COMMENT
+/* :yields: a, b
+ *
+ * Blah
+ */
+
+ COMMENT
+
+ parser = util_parser ''
+ method_obj = RDoc::AnyMethod.new nil, 'blah'
+
+ parser.find_modifiers comment, method_obj
+
+ assert_equal 'a, b', method_obj.block_params
+
+ expected = <<-EXPECTED
+/*
+ *
+ * Blah
+ */
+
+ EXPECTED
+
+ assert_equal expected, comment
+ end
+
+ def test_handle_method_args_minus_1
+ parser = util_parser "Document-method: Object#m\n blah */"
+
+ parser.content = <<-BODY
+VALUE
+rb_other(VALUE obj) {
+ rb_funcall(obj, rb_intern("other"), 0);
+ return rb_str_new2("blah, blah, blah");
+}
+
+VALUE
+rb_m(int argc, VALUE *argv, VALUE obj) {
+ VALUE o1, o2;
+ rb_scan_args(argc, argv, "1", &o1, &o2);
+}
+ BODY
+
+ parser.handle_method 'method', 'rb_cObject', 'm', 'rb_m', -1
+
+ m = @top_level.find_module_named('Object').method_list.first
+
+ assert_equal 'm', m.name
+ assert_equal @top_level, m.file
+ assert_equal 115, m.offset
+ assert_equal 7, m.line
+
+ assert_equal '(p1)', m.params
+ end
+
+ def test_handle_method_args_0
+ parser = util_parser "Document-method: BasicObject#==\n blah */"
+
+ parser.handle_method 'method', 'rb_cBasicObject', '==', 'rb_obj_equal', 0
+
+ bo = @top_level.find_module_named 'BasicObject'
+
+ assert_equal 1, bo.method_list.length
+
+ equals2 = bo.method_list.first
+
+ assert_equal '()', equals2.params
+ end
+
+ def test_handle_method_args_1
+ parser = util_parser "Document-method: BasicObject#==\n blah */"
+
+ parser.handle_method 'method', 'rb_cBasicObject', '==', 'rb_obj_equal', 1
+
+ bo = @top_level.find_module_named 'BasicObject'
+
+ assert_equal 1, bo.method_list.length
+
+ equals2 = bo.method_list.first
+
+ assert_equal '(p1)', equals2.params
+ end
+
+ def test_handle_method_args_2
+ parser = util_parser "Document-method: BasicObject#==\n blah */"
+
+ parser.handle_method 'method', 'rb_cBasicObject', '==', 'rb_obj_equal', 2
+
+ bo = @top_level.find_module_named 'BasicObject'
+
+ assert_equal 1, bo.method_list.length
+
+ equals2 = bo.method_list.first
+
+ assert_equal '(p1, p2)', equals2.params
+ end
+
+ # test_handle_args_minus_1 handled by test_handle_method
+
+ def test_handle_method_args_minus_2
+ parser = util_parser "Document-method: BasicObject#==\n blah */"
+
+ parser.handle_method 'method', 'rb_cBasicObject', '==', 'rb_obj_equal', -2
+
+ bo = @top_level.find_module_named 'BasicObject'
+
+ assert_equal 1, bo.method_list.length
+
+ equals2 = bo.method_list.first
+
+ assert_equal '(*args)', equals2.params
+ end
+
+ def test_handle_method_initialize
+ parser = util_parser "Document-method: BasicObject::new\n blah */"
+
+ parser.handle_method('private_method', 'rb_cBasicObject',
+ 'initialize', 'rb_obj_dummy', -1)
+
+ bo = @top_level.find_module_named 'BasicObject'
+
+ assert_equal 1, bo.method_list.length
+
+ new = bo.method_list.first
+
+ assert_equal 'new', new.name
+ assert_equal :public, new.visibility
+ end
+
+ def test_handle_singleton
+ parser = util_parser <<-SINGLE
+void Init_Blah(void) {
+ cDate = rb_define_class("Date", rb_cObject);
+ sDate = rb_singleton_class(cDate);
+}
+ SINGLE
+
+ parser.scan
+
+ assert_equal 'Date', parser.known_classes['sDate']
+ assert_equal 'Date', parser.singleton_classes['sDate']
+ end
+
+ def test_look_for_directives_in
+ parser = util_parser ''
+
+ comment = "# :markup: not_rdoc\n"
+
+ parser.look_for_directives_in @top_level, comment
+
+ assert_equal "# :markup: not_rdoc\n", comment
+ assert_equal 'not_rdoc', @top_level.metadata['markup']
end
def test_define_method
@@ -269,13 +1240,192 @@ Init_IO(void) {
klass = util_get_class content, 'rb_cIO'
read_method = klass.method_list.first
assert_equal "read", read_method.name
- assert_equal " Method Comment! \n", read_method.comment
+ assert_equal "Method Comment! ", read_method.comment
+ assert_equal "rb_io_s_read", read_method.c_function
+ assert read_method.singleton
+ end
+
+ def test_define_method_with_prototype
+ content = <<-EOF
+static VALUE rb_io_s_read(int, VALUE*, VALUE);
+
+/* Method Comment! */
+static VALUE
+rb_io_s_read(argc, argv, io)
+ int argc;
+ VALUE *argv;
+ VALUE io;
+{
+}
+
+void
+Init_IO(void) {
+ /*
+ * a comment for class Foo on rb_define_class
+ */
+ VALUE rb_cIO = rb_define_class("IO", rb_cObject);
+ rb_define_singleton_method(rb_cIO, "read", rb_io_s_read, -1);
+}
+ EOF
+
+ klass = util_get_class content, 'rb_cIO'
+ read_method = klass.method_list.first
+ assert_equal "read", read_method.name
+ assert_equal "Method Comment! ", read_method.comment
+ assert_equal "rb_io_s_read", read_method.c_function
+ assert read_method.singleton
+ end
+
+ def test_define_method_private
+ content = <<-EOF
+/*Method Comment! */
+static VALUE
+rb_io_s_read(argc, argv, io)
+ int argc;
+ VALUE *argv;
+ VALUE io;
+{
+}
+
+void
+Init_IO(void) {
+ /*
+ * a comment for class Foo on rb_define_class
+ */
+ VALUE rb_cIO = rb_define_class("IO", rb_cObject);
+ rb_define_private_method(rb_cIO, "read", rb_io_s_read, -1);
+}
+ EOF
+
+ klass = util_get_class content, 'rb_cIO'
+ read_method = klass.method_list.first
+ assert_equal 'IO#read', read_method.full_name
+ assert_equal :private, read_method.visibility
+ assert_equal "Method Comment! ", read_method.comment
+ end
+
+ def test_define_method_private_singleton
+ content = <<-EOF
+/*Method Comment! */
+static VALUE
+rb_io_s_read(argc, argv, io)
+ int argc;
+ VALUE *argv;
+ VALUE io;
+{
+}
+
+void
+Init_IO(void) {
+ /*
+ * a comment for class Foo on rb_define_class
+ */
+ VALUE rb_cIO = rb_define_class("IO", rb_cObject);
+ VALUE rb_cIO_s = rb_singleton_class(rb_cIO);
+ rb_define_private_method(rb_cIO_s, "read", rb_io_s_read, -1);
+}
+ EOF
+
+ klass = util_get_class content, 'rb_cIO'
+ read_method = klass.method_list.first
+ assert_equal "read", read_method.name
+ assert_equal "Method Comment! ", read_method.comment
+ assert_equal :private, read_method.visibility
+ assert read_method.singleton
+ end
+
+ def test_define_method_singleton
+ content = <<-EOF
+/*Method Comment! */
+static VALUE
+rb_io_s_read(argc, argv, io)
+ int argc;
+ VALUE *argv;
+ VALUE io;
+{
+}
+
+void
+Init_IO(void) {
+ /*
+ * a comment for class Foo on rb_define_class
+ */
+ VALUE rb_cIO = rb_define_class("IO", rb_cObject);
+ VALUE rb_cIO_s = rb_singleton_class(rb_cIO);
+ rb_define_method(rb_cIO_s, "read", rb_io_s_read, -1);
+}
+ EOF
+
+ klass = util_get_class content, 'rb_cIO'
+ read_method = klass.method_list.first
+ assert_equal "read", read_method.name
+ assert_equal "Method Comment! ", read_method.comment
+ assert read_method.singleton
+ end
+
+ def test_rb_scan_args
+ parser = util_parser ''
+
+ assert_equal '(p1)',
+ parser.rb_scan_args('rb_scan_args(a, b, "1",)')
+ assert_equal '(p1, p2)',
+ parser.rb_scan_args('rb_scan_args(a, b, "2",)')
+
+ assert_equal '(p1 = v1)',
+ parser.rb_scan_args('rb_scan_args(a, b, "01",)')
+ assert_equal '(p1 = v1, p2 = v2)',
+ parser.rb_scan_args('rb_scan_args(a, b, "02",)')
+
+ assert_equal '(p1, p2 = v2)',
+ parser.rb_scan_args('rb_scan_args(a, b, "11",)')
+
+ assert_equal '(p1, *args)',
+ parser.rb_scan_args('rb_scan_args(a, b, "1*",)')
+ assert_equal '(p1, p2 = {})',
+ parser.rb_scan_args('rb_scan_args(a, b, "1:",)')
+ assert_equal '(p1, &block)',
+ parser.rb_scan_args('rb_scan_args(a, b, "1&",)')
+
+ assert_equal '(p1, p2)',
+ parser.rb_scan_args('rb_scan_args(a, b, "101",)')
+
+ assert_equal '(p1, p2 = v2, p3)',
+ parser.rb_scan_args('rb_scan_args(a, b, "111",)')
+
+ assert_equal '(p1, *args, p3)',
+ parser.rb_scan_args('rb_scan_args(a, b, "1*1",)')
+
+ assert_equal '(p1, p2 = v2, *args)',
+ parser.rb_scan_args('rb_scan_args(a, b, "11*",)')
+ assert_equal '(p1, p2 = v2, p3 = {})',
+ parser.rb_scan_args('rb_scan_args(a, b, "11:",)')
+ assert_equal '(p1, p2 = v2, &block)',
+ parser.rb_scan_args('rb_scan_args(a, b, "11&",)')
+
+ assert_equal '(p1, p2 = v2, *args, p4, p5 = {}, &block)',
+ parser.rb_scan_args('rb_scan_args(a, b, "11*1:&",)')
+
+ # The following aren't valid according to spec but are according to the
+ # implementation.
+ assert_equal '(*args)',
+ parser.rb_scan_args('rb_scan_args(a, b, "*",)')
+ assert_equal '(p1 = {})',
+ parser.rb_scan_args('rb_scan_args(a, b, ":",)')
+ assert_equal '(&block)',
+ parser.rb_scan_args('rb_scan_args(a, b, "&",)')
+
+ assert_equal '(*args, p2 = {})',
+ parser.rb_scan_args('rb_scan_args(a, b, "*:",)')
+ assert_equal '(p1 = {}, &block)',
+ parser.rb_scan_args('rb_scan_args(a, b, ":&",)')
+ assert_equal '(*args, p2 = {}, &block)',
+ parser.rb_scan_args('rb_scan_args(a, b, "*:&",)')
end
def util_get_class(content, name)
- parser = util_parser content
- parser.scan
- parser.classes[name]
+ @parser = util_parser content
+ @parser.scan
+ @parser.classes[name]
end
def util_parser(content)
@@ -284,4 +1434,3 @@ Init_IO(void) {
end
-MiniTest::Unit.autorun
diff --git a/test/rdoc/test_rdoc_parser_perl.rb b/test/rdoc/test_rdoc_parser_perl.rb
deleted file mode 100644
index 165cadaa5d..0000000000
--- a/test/rdoc/test_rdoc_parser_perl.rb
+++ /dev/null
@@ -1,74 +0,0 @@
-require 'stringio'
-require 'tempfile'
-require 'rubygems'
-require 'minitest/unit'
-require 'rdoc/options'
-require 'rdoc/parser/perl'
-
-class TestRdocParserPerlPOD < MiniTest::Unit::TestCase
-
- def setup
- @tempfile = Tempfile.new self.class.name
- filename = @tempfile.path
-
- @top_level = RDoc::TopLevel.new filename
- @fn = filename
- @options = RDoc::Options.new
- @stats = RDoc::Stats.new 0
- end
-
- def teardown
- @tempfile.close
- end
-
- def test_uncommented_perl
- content = <<-EOF
-while (<>) {
- tr/a-z/A-Z;
- print
-}
- EOF
-
- comment = util_get_comment content
- assert_equal "", comment
- end
-
- def test_perl_without_pod
- content = <<-EOF
-#!/usr/local/bin/perl
-#
-#This is a pointless perl program because it does -p.
-#
-while(<>) {print;}:
- EOF
-
- comment = util_get_comment content
- assert_equal "", comment
- end
-
- def test_simple_pod_no_structure
- content = <<-EOF
-=begin pod
-
-This just contains plain old documentation
-
-=end
- EOF
- comment = util_get_comment content
- assert_equal "\nThis just contains plain old documentation\n\n", comment
- end
-
- # Get the comment of the @top_level when it has processed the input.
- def util_get_comment(content)
- parser = util_parser content
- parser.scan.comment
- end
-
- # create a new parser with the supplied content.
- def util_parser(content)
- RDoc::Parser::PerlPOD.new @top_level, @fn, content, @options, @stats
- end
-
-end
-
-MiniTest::Unit.autorun
diff --git a/test/rdoc/test_rdoc_parser_ruby.rb b/test/rdoc/test_rdoc_parser_ruby.rb
index 7fe626c302..6086b3ec13 100644
--- a/test/rdoc/test_rdoc_parser_ruby.rb
+++ b/test/rdoc/test_rdoc_parser_ruby.rb
@@ -1,7 +1,9 @@
+# coding: utf-8
+
require 'stringio'
require 'tempfile'
require 'rubygems'
-require 'minitest/unit'
+require 'minitest/autorun'
require 'rdoc/options'
require 'rdoc/parser/ruby'
@@ -17,9 +19,11 @@ class TestRDocParserRuby < MiniTest::Unit::TestCase
@tempfile2 = Tempfile.new self.class.name
@filename2 = @tempfile2.path
- util_toplevel
+ util_top_level
@options = RDoc::Options.new
@options.quiet = true
+ @options.option_parser = OptionParser.new
+
@stats = RDoc::Stats.new 0
end
@@ -28,78 +32,301 @@ class TestRDocParserRuby < MiniTest::Unit::TestCase
@tempfile2.close
end
- def test_look_for_directives_in_commented
- util_parser ""
+ def test_collect_first_comment
+ p = util_parser <<-CONTENT
+# first
- comment = "# how to make a section:\n# # :section: new section\n"
+# second
+class C; end
+ CONTENT
- @parser.look_for_directives_in @top_level, comment
+ comment = p.collect_first_comment
- section = @top_level.current_section
- assert_equal nil, section.title
- assert_equal nil, section.comment
+ assert_equal "# first\n", comment
+ end
- assert_equal "# how to make a section:\n# # :section: new section\n",
- comment
+ def test_collect_first_comment_encoding
+ skip "Encoding not implemented" unless Object.const_defined? :Encoding
+
+ @options.encoding = Encoding::CP852
+
+ p = util_parser <<-CONTENT
+# first
+
+# second
+class C; end
+ CONTENT
+
+ comment = p.collect_first_comment
+
+ assert_equal Encoding::CP852, comment.encoding
end
- def test_look_for_directives_in_enddoc
- util_parser ""
+ def test_extract_call_seq
+ m = RDoc::AnyMethod.new nil, 'm'
+ p = util_parser ''
- assert_throws :enddoc do
- @parser.look_for_directives_in @top_level, "# :enddoc:\n"
- end
+ comment = <<-COMMENT
+ # call-seq:
+ # bla => true or false
+ #
+ # moar comment
+ COMMENT
+
+ p.extract_call_seq comment, m
+
+ assert_equal "bla => true or false\n", m.call_seq
end
- def test_look_for_directives_in_main
- util_parser ""
+ def test_extract_call_seq_blank
+ m = RDoc::AnyMethod.new nil, 'm'
+ p = util_parser ''
- @parser.look_for_directives_in @top_level, "# :main: new main page\n"
+ comment = <<-COMMENT
+ # call-seq:
+ # bla => true or false
+ #
+ COMMENT
- assert_equal 'new main page', @options.main_page
+ p.extract_call_seq comment, m
+
+ assert_equal "bla => true or false\n", m.call_seq
end
- def test_look_for_directives_in_method
+ def test_extract_call_seq_no_blank
+ m = RDoc::AnyMethod.new nil, 'm'
+ p = util_parser ''
+
+ comment = <<-COMMENT
+ # call-seq:
+ # bla => true or false
+ COMMENT
+
+ p.extract_call_seq comment, m
+
+ assert_equal "bla => true or false\n", m.call_seq
+ end
+
+ def test_extract_call_seq_undent
+ m = RDoc::AnyMethod.new nil, 'm'
+ p = util_parser ''
+
+ comment = <<-COMMENT
+ # call-seq:
+ # bla => true or false
+ # moar comment
+ COMMENT
+
+ p.extract_call_seq comment, m
+
+ assert_equal "bla => true or false\nmoar comment\n", m.call_seq
+ end
+
+ def test_get_symbol_or_name
+ util_parser "* & | + 5 / 4"
+
+ assert_equal '*', @parser.get_symbol_or_name
+
+ @parser.skip_tkspace
+
+ assert_equal '&', @parser.get_symbol_or_name
+
+ @parser.skip_tkspace
+
+ assert_equal '|', @parser.get_symbol_or_name
+
+ @parser.skip_tkspace
+
+ assert_equal '+', @parser.get_symbol_or_name
+
+ @parser.skip_tkspace
+ @parser.get_tk
+ @parser.skip_tkspace
+
+ assert_equal '/', @parser.get_symbol_or_name
+ end
+
+ def test_look_for_directives_in_attr
util_parser ""
- comment = "# :method: my_method\n"
+ comment = "# :attr: my_attr\n"
@parser.look_for_directives_in @top_level, comment
- assert_equal "# :method: my_method\n", comment
+ assert_equal "# :attr: my_attr\n", comment
- comment = "# :singleton-method: my_method\n"
+ comment = "# :attr_reader: my_method\n"
@parser.look_for_directives_in @top_level, comment
- assert_equal "# :singleton-method: my_method\n", comment
+ assert_equal "# :attr_reader: my_method\n", comment
+
+ comment = "# :attr_writer: my_method\n"
+
+ @parser.look_for_directives_in @top_level, comment
+
+ assert_equal "# :attr_writer: my_method\n", comment
+ end
+
+ def test_remove_private_comments
+ util_parser ''
+
+ comment = <<-EOS
+# This is text
+#--
+# this is private
+ EOS
+
+ expected = <<-EOS
+# This is text
+ EOS
+
+ @parser.remove_private_comments(comment)
+
+ assert_equal expected, comment
+ end
+
+ def test_remove_private_comments_encoding
+ skip "Encoding not implemented" unless Object.const_defined? :Encoding
+
+ util_parser ''
+
+ comment = <<-EOS
+# This is text
+#--
+# this is private
+ EOS
+ comment.force_encoding Encoding::IBM437
+
+ @parser.remove_private_comments comment
+
+ assert_equal Encoding::IBM437, comment.encoding
+ end
+
+ def test_remove_private_comments_long
+ util_parser ''
+
+ comment = <<-EOS
+#-----
+#++
+# this is text
+#-----
+ EOS
+
+ expected = <<-EOS
+# this is text
+ EOS
+
+ @parser.remove_private_comments(comment)
+
+ assert_equal expected, comment
+ end
+
+ def test_remove_private_comments_rule
+ util_parser ''
+
+ comment = <<-EOS
+# This is text with a rule:
+# ---
+# this is also text
+ EOS
+
+ expected = comment.dup
+
+ @parser.remove_private_comments(comment)
+
+ assert_equal expected, comment
+ end
+
+ def test_remove_private_comments_toggle
+ util_parser ''
+
+ comment = <<-EOS
+# This is text
+#--
+# this is private
+#++
+# This is text again.
+ EOS
+
+ expected = <<-EOS
+# This is text
+# This is text again.
+ EOS
+
+ @parser.remove_private_comments(comment)
+
+ assert_equal expected, comment
+ end
+
+ def test_remove_private_comments_toggle_encoding
+ skip "Encoding not implemented" unless Object.const_defined? :Encoding
+
+ util_parser ''
+
+ comment = <<-EOS
+# This is text
+#--
+# this is private
+#++
+# This is text again.
+ EOS
+
+ comment.force_encoding Encoding::IBM437
+
+ @parser.remove_private_comments comment
+
+ assert_equal Encoding::IBM437, comment.encoding
+ end
+
+ def test_remove_private_comments_toggle_encoding_ruby_bug?
+ skip "Encoding not implemented" unless Object.const_defined? :Encoding
+
+ util_parser ''
+
+ comment = <<-EOS
+#--
+# this is private
+#++
+# This is text again.
+ EOS
+
+ comment.force_encoding Encoding::IBM437
+
+ @parser.remove_private_comments comment
+
+ assert_equal Encoding::IBM437, comment.encoding
end
- def test_look_for_directives_in_startdoc
+ def test_look_for_directives_in_commented
util_parser ""
- @top_level.stop_doc
- assert !@top_level.document_self
- assert !@top_level.document_children
- assert !@top_level.force_documentation
+ comment = "# how to make a section:\n# # :section: new section\n"
+
+ @parser.look_for_directives_in @top_level, comment
- @parser.look_for_directives_in @top_level, "# :startdoc:\n"
+ section = @top_level.current_section
+ assert_equal nil, section.title
+ assert_equal nil, section.comment
- assert @top_level.document_self
- assert @top_level.document_children
- assert @top_level.force_documentation
+ assert_equal "# how to make a section:\n# # :section: new section\n",
+ comment
end
- def test_look_for_directives_in_stopdoc
+ def test_look_for_directives_in_method
util_parser ""
- assert @top_level.document_self
- assert @top_level.document_children
+ comment = "# :method: my_method\n"
- @parser.look_for_directives_in @top_level, "# :stopdoc:\n"
+ @parser.look_for_directives_in @top_level, comment
+
+ assert_equal "# :method: my_method\n", comment
+
+ comment = "# :singleton-method: my_method\n"
+
+ @parser.look_for_directives_in @top_level, comment
- assert !@top_level.document_self
- assert !@top_level.document_children
+ assert_equal "# :singleton-method: my_method\n", comment
end
def test_look_for_directives_in_section
@@ -116,43 +343,468 @@ class TestRDocParserRuby < MiniTest::Unit::TestCase
assert_equal '', comment
end
- def test_look_for_directives_in_title
+ def test_look_for_directives_in_unhandled
util_parser ""
- @parser.look_for_directives_in @top_level, "# :title: new title\n"
+ @parser.look_for_directives_in @top_level, "# :unhandled: blah\n"
- assert_equal 'new title', @options.title
+ assert_equal 'blah', @top_level.metadata['unhandled']
end
- def test_look_for_directives_in_unhandled
- util_parser ""
+ def test_parse_alias
+ klass = RDoc::NormalClass.new 'Foo'
+ klass.parent = @top_level
- comment = "# :unhandled: \n# :title: hi\n"
+ util_parser "alias :next= :bar"
- @parser.look_for_directives_in @top_level, comment
+ tk = @parser.get_tk
+
+ alas = @parser.parse_alias klass, RDoc::Parser::Ruby::NORMAL, tk, 'comment'
+
+ assert_equal 'bar', alas.old_name
+ assert_equal 'next=', alas.new_name
+ assert_equal klass, alas.parent
+ assert_equal 'comment', alas.comment
+ assert_equal @top_level, alas.file
+ assert_equal 0, alas.offset
+ assert_equal 1, alas.line
+ end
+
+ def test_parse_alias_singleton
+ klass = RDoc::NormalClass.new 'Foo'
+ klass.parent = @top_level
+
+ util_parser "alias :next= :bar"
+
+ tk = @parser.get_tk
+
+ alas = @parser.parse_alias klass, RDoc::Parser::Ruby::SINGLE, tk, 'comment'
+
+ assert_equal 'bar', alas.old_name
+ assert_equal 'next=', alas.new_name
+ assert_equal klass, alas.parent
+ assert_equal 'comment', alas.comment
+ assert_equal @top_level, alas.file
+ assert alas.singleton
+ end
+
+ def test_parse_alias_stopdoc
+ klass = RDoc::NormalClass.new 'Foo'
+ klass.parent = @top_level
+ klass.stop_doc
+
+ util_parser "alias :next= :bar"
+
+ tk = @parser.get_tk
+
+ @parser.parse_alias klass, RDoc::Parser::Ruby::NORMAL, tk, 'comment'
+
+ assert_empty klass.aliases
+ assert_empty klass.unmatched_alias_lists
+ end
+
+ def test_parse_alias_meta
+ klass = RDoc::NormalClass.new 'Foo'
+ klass.parent = @top_level
+
+ util_parser "alias m.chop m"
+
+ tk = @parser.get_tk
+
+ alas = @parser.parse_alias klass, RDoc::Parser::Ruby::NORMAL, tk, 'comment'
+
+ assert_nil alas
+ end
+
+ def test_parse_attr
+ klass = RDoc::NormalClass.new 'Foo'
+ klass.parent = @top_level
+
+ comment = "##\n# my attr\n"
+
+ util_parser "attr :foo, :bar"
+
+ tk = @parser.get_tk
+
+ @parser.parse_attr klass, RDoc::Parser::Ruby::NORMAL, tk, comment
+
+ assert_equal 1, klass.attributes.length
+
+ foo = klass.attributes.first
+ assert_equal 'foo', foo.name
+ assert_equal 'my attr', foo.comment
+ assert_equal @top_level, foo.file
+ assert_equal 0, foo.offset
+ assert_equal 1, foo.line
+ end
+
+ def test_parse_attr_stopdoc
+ klass = RDoc::NormalClass.new 'Foo'
+ klass.parent = @top_level
+ klass.stop_doc
+
+ comment = "##\n# my attr\n"
+
+ util_parser "attr :foo, :bar"
+
+ tk = @parser.get_tk
+
+ @parser.parse_attr klass, RDoc::Parser::Ruby::NORMAL, tk, comment
+
+ assert_empty klass.attributes
+ end
+
+ def test_parse_attr_accessor
+ klass = RDoc::NormalClass.new 'Foo'
+ klass.parent = @top_level
+
+ comment = "##\n# my attr\n"
+
+ util_parser "attr_accessor :foo, :bar"
+
+ tk = @parser.get_tk
+
+ @parser.parse_attr_accessor klass, RDoc::Parser::Ruby::NORMAL, tk, comment
+
+ assert_equal 2, klass.attributes.length
+
+ foo = klass.attributes.first
+ assert_equal 'foo', foo.name
+ assert_equal 'RW', foo.rw
+ assert_equal 'my attr', foo.comment
+ assert_equal @top_level, foo.file
+ assert_equal 0, foo.offset
+ assert_equal 1, foo.line
+
+ bar = klass.attributes.last
+ assert_equal 'bar', bar.name
+ assert_equal 'RW', bar.rw
+ assert_equal 'my attr', bar.comment
+ end
+
+ def test_parse_attr_accessor_nodoc
+ klass = RDoc::NormalClass.new 'Foo'
+ klass.parent = @top_level
+
+ comment = "##\n# my attr\n"
+
+ util_parser "attr_accessor :foo, :bar # :nodoc:"
+
+ tk = @parser.get_tk
+
+ @parser.parse_attr_accessor klass, RDoc::Parser::Ruby::NORMAL, tk, comment
+
+ assert_equal 0, klass.attributes.length
+ end
+
+ def test_parse_attr_accessor_stopdoc
+ klass = RDoc::NormalClass.new 'Foo'
+ klass.parent = @top_level
+ klass.stop_doc
+
+ comment = "##\n# my attr\n"
+
+ util_parser "attr_accessor :foo, :bar"
+
+ tk = @parser.get_tk
+
+ @parser.parse_attr_accessor klass, RDoc::Parser::Ruby::NORMAL, tk, comment
+
+ assert_empty klass.attributes
+ end
+
+ def test_parse_attr_accessor_writer
+ klass = RDoc::NormalClass.new 'Foo'
+ klass.parent = @top_level
+
+ comment = "##\n# my attr\n"
+
+ util_parser "attr_writer :foo, :bar"
+
+ tk = @parser.get_tk
+
+ @parser.parse_attr_accessor klass, RDoc::Parser::Ruby::NORMAL, tk, comment
+
+ assert_equal 2, klass.attributes.length
+
+ foo = klass.attributes.first
+ assert_equal 'foo', foo.name
+ assert_equal 'W', foo.rw
+ assert_equal "my attr", foo.comment
+ assert_equal @top_level, foo.file
+
+ bar = klass.attributes.last
+ assert_equal 'bar', bar.name
+ assert_equal 'W', bar.rw
+ assert_equal "my attr", bar.comment
+ end
+
+ def test_parse_meta_attr
+ klass = RDoc::NormalClass.new 'Foo'
+ klass.parent = @top_level
+
+ comment = "##\n# :attr: \n# my method\n"
+
+ util_parser "add_my_method :foo, :bar"
+
+ tk = @parser.get_tk
+
+ @parser.parse_meta_attr klass, RDoc::Parser::Ruby::NORMAL, tk, comment
+
+ assert_equal 2, klass.attributes.length
+ foo = klass.attributes.first
+ assert_equal 'foo', foo.name
+ assert_equal 'RW', foo.rw
+ assert_equal "my method", foo.comment
+ assert_equal @top_level, foo.file
+ end
+
+ def test_parse_meta_attr_accessor
+ klass = RDoc::NormalClass.new 'Foo'
+ klass.parent = @top_level
+
+ comment = "##\n# :attr_accessor: \n# my method\n"
+
+ util_parser "add_my_method :foo, :bar"
+
+ tk = @parser.get_tk
+
+ @parser.parse_meta_attr klass, RDoc::Parser::Ruby::NORMAL, tk, comment
+
+ assert_equal 2, klass.attributes.length
+ foo = klass.attributes.first
+ assert_equal 'foo', foo.name
+ assert_equal 'RW', foo.rw
+ assert_equal 'my method', foo.comment
+ assert_equal @top_level, foo.file
+ end
+
+ def test_parse_meta_attr_named
+ klass = RDoc::NormalClass.new 'Foo'
+ klass.parent = @top_level
+
+ comment = "##\n# :attr: foo\n# my method\n"
+
+ util_parser "add_my_method :foo, :bar"
+
+ tk = @parser.get_tk
+
+ @parser.parse_meta_attr klass, RDoc::Parser::Ruby::NORMAL, tk, comment
+
+ assert_equal 1, klass.attributes.length
+ foo = klass.attributes.first
+ assert_equal 'foo', foo.name
+ assert_equal 'RW', foo.rw
+ assert_equal 'my method', foo.comment
+ assert_equal @top_level, foo.file
+ end
+
+ def test_parse_meta_attr_reader
+ klass = RDoc::NormalClass.new 'Foo'
+ klass.parent = @top_level
+
+ comment = "##\n# :attr_reader: \n# my method\n"
+
+ util_parser "add_my_method :foo, :bar"
+
+ tk = @parser.get_tk
+
+ @parser.parse_meta_attr klass, RDoc::Parser::Ruby::NORMAL, tk, comment
+
+ foo = klass.attributes.first
+ assert_equal 'foo', foo.name
+ assert_equal 'R', foo.rw
+ assert_equal 'my method', foo.comment
+ assert_equal @top_level, foo.file
+ end
+
+ def test_parse_meta_attr_stopdoc
+ klass = RDoc::NormalClass.new 'Foo'
+ klass.parent = @top_level
+ klass.stop_doc
+
+ comment = "##\n# :attr: \n# my method\n"
+
+ util_parser "add_my_method :foo, :bar"
- assert_equal "# :unhandled: \n", comment
+ tk = @parser.get_tk
+
+ @parser.parse_meta_attr klass, RDoc::Parser::Ruby::NORMAL, tk, comment
+
+ assert_empty klass.attributes
+ end
+
+ def test_parse_meta_attr_writer
+ klass = RDoc::NormalClass.new 'Foo'
+ klass.parent = @top_level
+
+ comment = "##\n# :attr_writer: \n# my method\n"
- assert_equal 'hi', @options.title
+ util_parser "add_my_method :foo, :bar"
+
+ tk = @parser.get_tk
+
+ @parser.parse_meta_attr klass, RDoc::Parser::Ruby::NORMAL, tk, comment
+
+ foo = klass.attributes.first
+ assert_equal 'foo', foo.name
+ assert_equal 'W', foo.rw
+ assert_equal "my method", foo.comment
+ assert_equal @top_level, foo.file
end
def test_parse_class
- comment = "##\n# my method\n"
+ comment = "##\n# my class\n"
+
+ util_parser "class Foo\nend"
+
+ tk = @parser.get_tk
+
+ @parser.parse_class @top_level, RDoc::Parser::Ruby::NORMAL, tk, comment
+
+ foo = @top_level.classes.first
+ assert_equal 'Foo', foo.full_name
+ assert_equal 'my class', foo.comment
+ assert_equal [@top_level], foo.in_files
+ assert_equal 0, foo.offset
+ assert_equal 1, foo.line
+ end
+
+ def test_parse_class_ghost_method
+ util_parser <<-CLASS
+class Foo
+ ##
+ # :method: blah
+ # my method
+end
+ CLASS
+
+ tk = @parser.get_tk
+
+ @parser.parse_class @top_level, RDoc::Parser::Ruby::NORMAL, tk, ''
+
+ foo = @top_level.classes.first
+ assert_equal 'Foo', foo.full_name
+
+ blah = foo.method_list.first
+ assert_equal 'Foo#blah', blah.full_name
+ assert_equal @top_level, blah.file
+ end
+
+ def test_parse_class_multi_ghost_methods
+ util_parser <<-'CLASS'
+class Foo
+ ##
+ # :method: one
+ #
+ # my method
+
+ ##
+ # :method: two
+ #
+ # my method
+
+ [:one, :two].each do |t|
+ eval("def #{t}; \"#{t}\"; end")
+ end
+end
+ CLASS
+
+ tk = @parser.get_tk
+
+ @parser.parse_class @top_level, RDoc::Parser::Ruby::NORMAL, tk, ''
+
+ foo = @top_level.classes.first
+ assert_equal 'Foo', foo.full_name
+
+ assert_equal 2, foo.method_list.length
+ end
+
+ def test_parse_class_nodoc
+ comment = "##\n# my class\n"
+
+ util_parser "class Foo # :nodoc:\nend"
+
+ tk = @parser.get_tk
+
+ @parser.parse_class @top_level, RDoc::Parser::Ruby::NORMAL, tk, comment
+
+ foo = @top_level.classes.first
+ assert_equal 'Foo', foo.full_name
+ assert_empty foo.comment
+ assert_equal [@top_level], foo.in_files
+ assert_equal 0, foo.offset
+ assert_equal 1, foo.line
+ end
+
+ def test_parse_class_stopdoc
+ @top_level.stop_doc
+
+ comment = "##\n# my class\n"
- util_parser 'class Foo; end'
+ util_parser "class Foo\nend"
tk = @parser.get_tk
@parser.parse_class @top_level, RDoc::Parser::Ruby::NORMAL, tk, comment
+ assert_empty @top_level.classes.first.comment
+ end
+
+ def test_parse_multi_ghost_methods
+ util_parser <<-'CLASS'
+class Foo
+ ##
+ # :method: one
+ #
+ # my method
+
+ ##
+ # :method: two
+ #
+ # my method
+
+ [:one, :two].each do |t|
+ eval("def #{t}; \"#{t}\"; end")
+ end
+end
+ CLASS
+
+ tk = @parser.get_tk
+
+ @parser.parse_class @top_level, RDoc::Parser::Ruby::NORMAL, tk, ''
+
foo = @top_level.classes.first
assert_equal 'Foo', foo.full_name
- assert_equal comment, foo.comment
+
+ assert_equal 2, foo.method_list.length
+ end
+
+ def test_parse_const_fail_w_meta
+ util_parser <<-CLASS
+class ConstFailMeta
+ ##
+ # :attr: one
+ #
+ # an attribute
+
+ OtherModule.define_attr(self, :one)
+end
+ CLASS
+
+ tk = @parser.get_tk
+
+ @parser.parse_class @top_level, RDoc::Parser::Ruby::NORMAL, tk, ''
+
+ const_fail_meta = @top_level.classes.first
+ assert_equal 'ConstFailMeta', const_fail_meta.full_name
+
+ assert_equal 1, const_fail_meta.attributes.length
end
def test_parse_class_nested_superclass
- foo = RDoc::NormalModule.new 'Foo'
- foo.parent = @top_level
+ util_top_level
+ foo = @top_level.add_module RDoc::NormalModule, 'Foo'
util_parser "class Bar < Super\nend"
@@ -167,7 +819,7 @@ class TestRDocParserRuby < MiniTest::Unit::TestCase
def test_parse_module
comment = "##\n# my module\n"
- util_parser 'module Foo; end'
+ util_parser "module Foo\nend"
tk = @parser.get_tk
@@ -175,16 +827,119 @@ class TestRDocParserRuby < MiniTest::Unit::TestCase
foo = @top_level.modules.first
assert_equal 'Foo', foo.full_name
- assert_equal comment, foo.comment
+ assert_equal 'my module', foo.comment
+ end
+
+ def test_parse_module_nodoc
+ @top_level.stop_doc
+
+ comment = "##\n# my module\n"
+
+ util_parser "module Foo # :nodoc:\nend"
+
+ tk = @parser.get_tk
+
+ @parser.parse_module @top_level, RDoc::Parser::Ruby::NORMAL, tk, comment
+
+ foo = @top_level.modules.first
+ assert_equal 'Foo', foo.full_name
+ assert_empty foo.comment
+ end
+
+ def test_parse_module_stopdoc
+ @top_level.stop_doc
+
+ comment = "##\n# my module\n"
+
+ util_parser "module Foo\nend"
+
+ tk = @parser.get_tk
+
+ @parser.parse_module @top_level, RDoc::Parser::Ruby::NORMAL, tk, comment
+
+ foo = @top_level.modules.first
+ assert_equal 'Foo', foo.full_name
+ assert_equal 'my module', foo.comment
+ end
+
+ def test_parse_class_colon3
+ code = <<-CODE
+class A
+ class ::B
+ end
+end
+ CODE
+
+ util_parser code
+
+ @parser.parse_class @top_level, false, @parser.get_tk, ''
+
+ assert_equal %w[A B], RDoc::TopLevel.classes.map { |c| c.full_name }
+ end
+
+ def test_parse_class_single
+ code = <<-CODE
+class A
+ class << B
+ end
+ class << d = Object.new
+ def foo; end
+ alias bar foo
+ end
+end
+ CODE
+
+ util_parser code
+
+ @parser.parse_class @top_level, false, @parser.get_tk, ''
+
+ assert_equal %w[A], RDoc::TopLevel.classes.map { |c| c.full_name }
+ assert_equal %w[A::B A::d], RDoc::TopLevel.modules.map { |c| c.full_name }
+
+ b = RDoc::TopLevel.modules.first
+ assert_equal 10, b.offset
+ assert_equal 2, b.line
+
+ # make sure method/alias was not added to enclosing class/module
+ a = RDoc::TopLevel.all_classes_hash['A']
+ assert_empty a.method_list
+
+ # make sure non-constant-named module will be removed from documentation
+ d = RDoc::TopLevel.all_modules_hash['A::d']
+ assert d.remove_from_documentation?
+
+ end
+
+ # TODO this is really a Context#add_class test
+ def test_parse_class_object
+ code = <<-CODE
+module A
+ class B
+ end
+ class Object
+ end
+ class C < Object
+ end
+end
+ CODE
+
+ util_parser code
+
+ @parser.parse_module @top_level, false, @parser.get_tk, ''
+
+ assert_equal %w[A], RDoc::TopLevel.modules.map { |c| c.full_name }
+ assert_equal %w[A::B A::C A::Object], RDoc::TopLevel.classes.map { |c| c.full_name }.sort
+ assert_equal 'Object', RDoc::TopLevel.classes_hash['A::B'].superclass
+ assert_equal 'Object', RDoc::TopLevel.classes_hash['A::Object'].superclass
+ assert_equal 'A::Object', RDoc::TopLevel.classes_hash['A::C'].superclass.full_name
end
def test_parse_class_mistaken_for_module
-#
-# The code below is not strictly legal Ruby (Foo must have been defined
-# before Foo::Bar is encountered), but RDoc might encounter Foo::Bar before
-# Foo if they live in different files.
-#
- code = <<-EOF
+ # The code below is not strictly legal Ruby (Foo must have been defined
+ # before Foo::Bar is encountered), but RDoc might encounter Foo::Bar
+ # before Foo if they live in different files.
+
+ code = <<-RUBY
class Foo::Bar
end
@@ -193,13 +948,15 @@ end
class Foo
end
-EOF
+ RUBY
util_parser code
- @parser.scan()
+ @parser.scan
+
+ assert_equal %w[Foo::Baz], RDoc::TopLevel.modules_hash.keys
+ assert_empty @top_level.modules
- assert(@top_level.modules.empty?)
foo = @top_level.classes.first
assert_equal 'Foo', foo.full_name
@@ -211,24 +968,25 @@ EOF
end
def test_parse_class_definition_encountered_after_class_reference
-#
-# The code below is not strictly legal Ruby (Foo must have been defined
-# before Foo.bar is encountered), but RDoc might encounter Foo.bar before
-# Foo if they live in different files.
-#
+ # The code below is not strictly legal Ruby (Foo must have been defined
+ # before Foo.bar is encountered), but RDoc might encounter Foo.bar before
+ # Foo if they live in different files.
+
code = <<-EOF
def Foo.bar
end
class Foo < IO
end
-EOF
+ EOF
util_parser code
- @parser.scan()
+ @parser.scan
- assert(@top_level.modules.empty?)
+ assert_empty RDoc::TopLevel.modules_hash
+ # HACK why does it fail?
+ #assert_empty @top_level.modules
foo = @top_level.classes.first
assert_equal 'Foo', foo.full_name
@@ -257,21 +1015,61 @@ EOF
foo = @top_level.modules.first
assert_equal 'Foo', foo.full_name
- assert_equal comment, foo.comment
+ assert_equal 'Weirdly named module', foo.comment
helper = foo.classes.first
assert_equal 'Foo::Helper', helper.full_name
end
- def test_parse_comment
- content = <<-EOF
-class Foo
- ##
- # :method: my_method
- # my method comment
+ def test_parse_comment_attr
+ klass = RDoc::NormalClass.new 'Foo'
+ klass.parent = @top_level
-end
- EOF
+ comment = "##\n# :attr: foo\n# my attr\n"
+
+ util_parser "\n"
+
+ tk = @parser.get_tk
+
+ @parser.parse_comment klass, tk, comment
+
+ foo = klass.attributes.first
+ assert_equal 'foo', foo.name
+ assert_equal 'RW', foo.rw
+ assert_equal 'my attr', foo.comment
+ assert_equal @top_level, foo.file
+ assert_equal 0, foo.offset
+ assert_equal 1, foo.line
+
+ assert_equal nil, foo.viewer
+ assert_equal true, foo.document_children
+ assert_equal true, foo.document_self
+ assert_equal false, foo.done_documenting
+ assert_equal false, foo.force_documentation
+ assert_equal klass, foo.parent
+ assert_equal :public, foo.visibility
+ assert_equal "\n", foo.text
+
+ assert_equal klass.current_section, foo.section
+ end
+
+ def test_parse_comment_attr_stopdoc
+ klass = RDoc::NormalClass.new 'Foo'
+ klass.parent = @top_level
+ klass.stop_doc
+
+ comment = "##\n# :attr: foo\n# my attr\n"
+
+ util_parser "\n"
+
+ tk = @parser.get_tk
+
+ @parser.parse_comment klass, tk, comment
+
+ assert_empty klass.attributes
+ end
+
+ def test_parse_comment_method
klass = RDoc::NormalClass.new 'Foo'
klass.parent = @top_level
@@ -284,8 +1082,11 @@ end
@parser.parse_comment klass, tk, comment
foo = klass.method_list.first
- assert_equal 'foo', foo.name
- assert_equal comment, foo.comment
+ assert_equal 'foo', foo.name
+ assert_equal 'my method', foo.comment
+ assert_equal @top_level, foo.file
+ assert_equal 0, foo.offset
+ assert_equal 1, foo.line
assert_equal [], foo.aliases
assert_equal nil, foo.block_params
@@ -305,14 +1106,128 @@ end
assert_equal klass.current_section, foo.section
stream = [
- tk(:COMMENT, 1, 1, nil, "# File #{@top_level.file_absolute_name}, line 1"),
+ tk(:COMMENT, 1, 1, nil, "# File #{@top_level.absolute_name}, line 1"),
RDoc::Parser::Ruby::NEWLINE_TOKEN,
- tk(:SPACE, 1, 1, nil, ''),
+ tk(:SPACE, 1, 1, nil, ''),
]
assert_equal stream, foo.token_stream
end
+ def test_parse_comment_method_stopdoc
+ klass = RDoc::NormalClass.new 'Foo'
+ klass.parent = @top_level
+ klass.stop_doc
+
+ comment = "##\n# :method: foo\n# my method\n"
+
+ util_parser "\n"
+
+ tk = @parser.get_tk
+
+ @parser.parse_comment klass, tk, comment
+
+ assert_empty klass.method_list
+ end
+
+ def test_parse_constant
+ util_top_level
+
+ klass = @top_level.add_class RDoc::NormalClass, 'Foo'
+
+ util_parser "A = v"
+
+ tk = @parser.get_tk
+
+ @parser.parse_constant klass, tk, ''
+
+ foo = klass.constants.first
+
+ assert_equal 'A', foo.name
+ assert_equal @top_level, foo.file
+ assert_equal 0, foo.offset
+ assert_equal 1, foo.line
+ end
+
+ def test_parse_constant_attrasgn
+ util_top_level
+
+ klass = @top_level.add_class RDoc::NormalClass, 'Foo'
+
+ util_parser "A[k] = v"
+
+ tk = @parser.get_tk
+
+ @parser.parse_constant klass, tk, ''
+
+ assert klass.constants.empty?
+ end
+
+ def test_parse_constant_alias
+ util_top_level
+ klass = @top_level.add_class RDoc::NormalClass, 'Foo'
+ cB = klass.add_class RDoc::NormalClass, 'B'
+
+ util_parser "A = B"
+
+ tk = @parser.get_tk
+
+ @parser.parse_constant klass, tk, ''
+
+ assert_equal cB, klass.find_module_named('A')
+ end
+
+ def test_parse_constant_alias_same_name
+ foo = @top_level.add_class RDoc::NormalClass, 'Foo'
+ top_bar = @top_level.add_class RDoc::NormalClass, 'Bar'
+ bar = foo.add_class RDoc::NormalClass, 'Bar'
+
+ assert RDoc::TopLevel.find_class_or_module('::Bar')
+
+ util_parser "A = ::Bar"
+
+ tk = @parser.get_tk
+
+ @parser.parse_constant foo, tk, ''
+
+ assert_equal top_bar, bar.find_module_named('A')
+ end
+
+ def test_parse_constant_stopdoc
+ util_top_level
+
+ klass = @top_level.add_class RDoc::NormalClass, 'Foo'
+ klass.stop_doc
+
+ util_parser "A = v"
+
+ tk = @parser.get_tk
+
+ @parser.parse_constant klass, tk, ''
+
+ assert_empty klass.constants
+ end
+
+ def test_parse_include
+ klass = RDoc::NormalClass.new 'C'
+ klass.parent = @top_level
+
+ comment = "# my include\n"
+
+ util_parser "include I"
+
+ @parser.get_tk # include
+
+ @parser.parse_include klass, comment
+
+ assert_equal 1, klass.includes.length
+
+ incl = klass.includes.first
+ assert_equal 'I', incl.name
+ assert_equal 'my include', incl.comment
+ assert_equal @top_level, incl.file
+ end
+
def test_parse_meta_method
klass = RDoc::NormalClass.new 'Foo'
klass.parent = @top_level
@@ -326,8 +1241,11 @@ end
@parser.parse_meta_method klass, RDoc::Parser::Ruby::NORMAL, tk, comment
foo = klass.method_list.first
- assert_equal 'foo', foo.name
- assert_equal comment, foo.comment
+ assert_equal 'foo', foo.name
+ assert_equal 'my method', foo.comment
+ assert_equal @top_level, foo.file
+ assert_equal 0, foo.offset
+ assert_equal 1, foo.line
assert_equal [], foo.aliases
assert_equal nil, foo.block_params
@@ -347,7 +1265,7 @@ end
assert_equal klass.current_section, foo.section
stream = [
- tk(:COMMENT, 1, 1, nil, "# File #{@top_level.file_absolute_name}, line 1"),
+ tk(:COMMENT, 1, 1, nil, "# File #{@top_level.absolute_name}, line 1"),
RDoc::Parser::Ruby::NEWLINE_TOKEN,
tk(:SPACE, 1, 1, nil, ''),
tk(:IDENTIFIER, 1, 0, 'add_my_method', 'add_my_method'),
@@ -362,6 +1280,27 @@ end
assert_equal stream, foo.token_stream
end
+ def test_parse_meta_method_block
+ klass = RDoc::NormalClass.new 'Foo'
+ klass.parent = @top_level
+
+ comment = "##\n# my method\n"
+
+ content = <<-CONTENT
+inline(:my_method) do |*args|
+ "this method causes z to disappear"
+end
+ CONTENT
+
+ util_parser content
+
+ tk = @parser.get_tk
+
+ @parser.parse_meta_method klass, RDoc::Parser::Ruby::NORMAL, tk, comment
+
+ assert_nil @parser.get_tk
+ end
+
def test_parse_meta_method_name
klass = RDoc::NormalClass.new 'Foo'
klass.parent = @top_level
@@ -375,8 +1314,9 @@ end
@parser.parse_meta_method klass, RDoc::Parser::Ruby::NORMAL, tk, comment
foo = klass.method_list.first
- assert_equal 'woo_hoo!', foo.name
- assert_equal "##\n# my method\n", foo.comment
+ assert_equal 'woo_hoo!', foo.name
+ assert_equal 'my method', foo.comment
+ assert_equal @top_level, foo.file
end
def test_parse_meta_method_singleton
@@ -394,7 +1334,8 @@ end
foo = klass.method_list.first
assert_equal 'foo', foo.name
assert_equal true, foo.singleton, 'singleton method'
- assert_equal "##\n# my method\n", foo.comment
+ assert_equal 'my method', foo.comment
+ assert_equal @top_level, foo.file
end
def test_parse_meta_method_singleton_name
@@ -412,7 +1353,8 @@ end
foo = klass.method_list.first
assert_equal 'woo_hoo!', foo.name
assert_equal true, foo.singleton, 'singleton method'
- assert_equal "##\n# my method\n", foo.comment
+ assert_equal 'my method', foo.comment
+ assert_equal @top_level, foo.file
end
def test_parse_meta_method_string_name
@@ -427,7 +1369,40 @@ end
foo = klass.method_list.first
assert_equal 'foo', foo.name
- assert_equal comment, foo.comment
+ assert_equal 'my method', foo.comment
+ assert_equal @top_level, foo.file
+ end
+
+ def test_parse_meta_method_stopdoc
+ klass = RDoc::NormalClass.new 'Foo'
+ klass.parent = @top_level
+ klass.stop_doc
+
+ comment = "##\n# my method\n"
+
+ util_parser "add_my_method :foo, :bar\nadd_my_method :baz"
+
+ tk = @parser.get_tk
+
+ @parser.parse_meta_method klass, RDoc::Parser::Ruby::NORMAL, tk, comment
+
+ assert_empty klass.method_list
+ end
+
+ def test_parse_meta_method_unknown
+ klass = RDoc::NormalClass.new 'Foo'
+ comment = "##\n# my method\n"
+
+ util_parser "add_my_method ('foo')"
+
+ tk = @parser.get_tk
+
+ @parser.parse_meta_method klass, RDoc::Parser::Ruby::NORMAL, tk, comment
+
+ foo = klass.method_list.first
+ assert_equal 'unknown', foo.name
+ assert_equal 'my method', foo.comment
+ assert_equal @top_level, foo.file
end
def test_parse_method
@@ -443,8 +1418,11 @@ end
@parser.parse_method klass, RDoc::Parser::Ruby::NORMAL, tk, comment
foo = klass.method_list.first
- assert_equal 'foo', foo.name
- assert_equal comment, foo.comment
+ assert_equal 'foo', foo.name
+ assert_equal 'my method', foo.comment
+ assert_equal @top_level, foo.file
+ assert_equal 0, foo.offset
+ assert_equal 1, foo.line
assert_equal [], foo.aliases
assert_equal nil, foo.block_params
@@ -464,7 +1442,7 @@ end
assert_equal klass.current_section, foo.section
stream = [
- tk(:COMMENT, 1, 1, nil, "# File #{@top_level.file_absolute_name}, line 1"),
+ tk(:COMMENT, 1, 1, nil, "# File #{@top_level.absolute_name}, line 1"),
RDoc::Parser::Ruby::NEWLINE_TOKEN,
tk(:SPACE, 1, 1, nil, ''),
tk(:DEF, 1, 0, 'def', 'def'),
@@ -482,6 +1460,251 @@ end
assert_equal stream, foo.token_stream
end
+ def test_parse_method_alias
+ klass = RDoc::NormalClass.new 'Foo'
+ klass.parent = @top_level
+
+ util_parser "def m() alias a b; end"
+
+ tk = @parser.get_tk
+
+ @parser.parse_method klass, RDoc::Parser::Ruby::NORMAL, tk, ''
+
+ assert klass.aliases.empty?
+ end
+
+ def test_parse_method_false
+ util_parser "def false.foo() :bar end"
+
+ tk = @parser.get_tk
+
+ @parser.parse_method @top_level, RDoc::Parser::Ruby::NORMAL, tk, ''
+
+ klass = RDoc::TopLevel.find_class_named 'FalseClass'
+
+ foo = klass.method_list.first
+ assert_equal 'foo', foo.name
+ end
+
+ def test_parse_method_funky
+ klass = RDoc::NormalClass.new 'Foo'
+ klass.parent = @top_level
+
+ util_parser "def (blah).foo() :bar end"
+
+ tk = @parser.get_tk
+
+ @parser.parse_method klass, RDoc::Parser::Ruby::NORMAL, tk, ''
+
+ assert klass.method_list.empty?
+ end
+
+ def test_parse_method_gvar
+ util_parser "def $stdout.foo() :bar end"
+
+ tk = @parser.get_tk
+
+ @parser.parse_method @top_level, RDoc::Parser::Ruby::NORMAL, tk, ''
+
+ assert @top_level.method_list.empty?
+ end
+
+ def test_parse_method_internal_gvar
+ klass = RDoc::NormalClass.new 'Foo'
+ klass.parent = @top_level
+
+ util_parser "def foo() def $blah.bar() end end"
+
+ tk = @parser.get_tk
+
+ @parser.parse_method klass, RDoc::Parser::Ruby::NORMAL, tk, ''
+
+ assert_equal 1, klass.method_list.length
+ end
+
+ def test_parse_method_internal_ivar
+ klass = RDoc::NormalClass.new 'Foo'
+ klass.parent = @top_level
+
+ util_parser "def foo() def @blah.bar() end end"
+
+ tk = @parser.get_tk
+
+ @parser.parse_method klass, RDoc::Parser::Ruby::NORMAL, tk, ''
+
+ assert_equal 1, klass.method_list.length
+ end
+
+ def test_parse_method_internal_lvar
+ klass = RDoc::NormalClass.new 'Foo'
+ klass.parent = @top_level
+
+ util_parser "def foo() def blah.bar() end end"
+
+ tk = @parser.get_tk
+
+ @parser.parse_method klass, RDoc::Parser::Ruby::NORMAL, tk, ''
+
+ assert_equal 1, klass.method_list.length
+ end
+
+ def test_parse_method_nil
+ util_parser "def nil.foo() :bar end"
+
+ tk = @parser.get_tk
+
+ @parser.parse_method @top_level, RDoc::Parser::Ruby::NORMAL, tk, ''
+
+ klass = RDoc::TopLevel.find_class_named 'NilClass'
+
+ foo = klass.method_list.first
+ assert_equal 'foo', foo.name
+ end
+
+ def test_parse_method_no_parens
+ klass = RDoc::NormalClass.new 'Foo'
+ klass.parent = @top_level
+
+ util_parser "def foo arg1, arg2 = {}\nend"
+
+ tk = @parser.get_tk
+
+ @parser.parse_method klass, RDoc::Parser::Ruby::NORMAL, tk, ''
+
+ foo = klass.method_list.first
+ assert_equal '(arg1, arg2 = {})', foo.params
+ assert_equal @top_level, foo.file
+ end
+
+ def test_parse_method_parameters_comment
+ klass = RDoc::NormalClass.new 'Foo'
+ klass.parent = @top_level
+
+ util_parser "def foo arg1, arg2 # some useful comment\nend"
+
+ tk = @parser.get_tk
+
+ @parser.parse_method klass, RDoc::Parser::Ruby::NORMAL, tk, ''
+
+ foo = klass.method_list.first
+ assert_equal '(arg1, arg2)', foo.params
+ end
+
+ def test_parse_method_parameters_comment_continue
+ klass = RDoc::NormalClass.new 'Foo'
+ klass.parent = @top_level
+
+ util_parser "def foo arg1, arg2, # some useful comment\narg3\nend"
+
+ tk = @parser.get_tk
+
+ @parser.parse_method klass, RDoc::Parser::Ruby::NORMAL, tk, ''
+
+ foo = klass.method_list.first
+ assert_equal '(arg1, arg2, arg3)', foo.params
+ end
+
+ def test_parse_method_stopdoc
+ klass = RDoc::NormalClass.new 'Foo'
+ klass.parent = @top_level
+ klass.stop_doc
+
+ comment = "##\n# my method\n"
+
+ util_parser "def foo() :bar end"
+
+ tk = @parser.get_tk
+
+ @parser.parse_method klass, RDoc::Parser::Ruby::NORMAL, tk, comment
+
+ assert_empty klass.method_list
+ end
+
+ def test_parse_method_toplevel
+ klass = @top_level
+
+ util_parser "def foo arg1, arg2\nend"
+
+ tk = @parser.get_tk
+
+ @parser.parse_method klass, RDoc::Parser::Ruby::NORMAL, tk, ''
+
+ object = RDoc::TopLevel.find_class_named 'Object'
+
+ foo = object.method_list.first
+ assert_equal 'Object#foo', foo.full_name
+ assert_equal @top_level, foo.file
+ end
+
+ def test_parse_method_toplevel_class
+ klass = @top_level
+
+ util_parser "def Object.foo arg1, arg2\nend"
+
+ tk = @parser.get_tk
+
+ @parser.parse_method klass, RDoc::Parser::Ruby::NORMAL, tk, ''
+
+ object = RDoc::TopLevel.find_class_named 'Object'
+
+ foo = object.method_list.first
+ assert_equal 'Object::foo', foo.full_name
+ end
+
+ def test_parse_method_true
+ util_parser "def true.foo() :bar end"
+
+ tk = @parser.get_tk
+
+ @parser.parse_method @top_level, RDoc::Parser::Ruby::NORMAL, tk, ''
+
+ klass = RDoc::TopLevel.find_class_named 'TrueClass'
+
+ foo = klass.method_list.first
+ assert_equal 'foo', foo.name
+ end
+
+ def test_parse_method_utf8
+ klass = RDoc::NormalClass.new 'Foo'
+ klass.parent = @top_level
+
+ method = "def ω() end"
+
+ assert_equal Encoding::UTF_8, method.encoding if
+ Object.const_defined? :Encoding
+
+ util_parser method
+
+ tk = @parser.get_tk
+
+ @parser.parse_method klass, RDoc::Parser::Ruby::NORMAL, tk, ''
+
+ omega = klass.method_list.first
+ assert_equal "def \317\211", omega.text
+ end
+
+ def test_parse_statements_class_if
+ util_parser <<-CODE
+module Foo
+ X = if TRUE then
+ ''
+ end
+
+ def blah
+ end
+end
+ CODE
+
+ @parser.parse_statements @top_level, RDoc::Parser::Ruby::NORMAL, nil, ''
+
+ foo = @top_level.modules.first
+ assert_equal 'Foo', foo.full_name, 'module Foo'
+
+ methods = foo.method_list
+ assert_equal 1, methods.length
+ assert_equal 'Foo#blah', methods.first.full_name
+ end
+
def test_parse_statements_class_nested
comment = "##\n# my method\n"
@@ -494,7 +1717,29 @@ end
bar = foo.classes.first
assert_equal 'Foo::Bar', bar.full_name, 'class Foo::Bar'
- assert_equal comment, bar.comment
+ assert_equal 'my method', bar.comment
+ end
+
+ def test_parse_statements_encoding
+ skip "Encoding not implemented" unless Object.const_defined? :Encoding
+ @options.encoding = Encoding::CP852
+
+ content = <<-EOF
+class Foo
+ ##
+ # this is my method
+ add_my_method :foo
+end
+ EOF
+
+ util_parser content
+
+ @parser.parse_statements @top_level
+
+ foo = @top_level.classes.first.method_list.first
+ assert_equal 'foo', foo.name
+ assert_equal 'this is my method', foo.comment
+ assert_equal Encoding::CP852, foo.comment.encoding
end
def test_parse_statements_identifier_meta_method
@@ -508,18 +1753,23 @@ end
util_parser content
- @parser.parse_statements @top_level, RDoc::Parser::Ruby::NORMAL, nil, ''
+ @parser.parse_statements @top_level
foo = @top_level.classes.first.method_list.first
assert_equal 'foo', foo.name
end
def test_parse_statements_identifier_alias_method
- content = "class Foo def foo() end; alias_method :foo2, :foo end"
+ content = <<-RUBY
+class Foo
+ def foo() end
+ alias_method :foo2, :foo
+end
+ RUBY
util_parser content
- @parser.parse_statements @top_level, RDoc::Parser::Ruby::NORMAL, nil, ''
+ @parser.parse_statements @top_level
foo = @top_level.classes.first.method_list[0]
assert_equal 'foo', foo.name
@@ -552,7 +1802,7 @@ EOF
util_parser content
- @parser.parse_statements @top_level, RDoc::Parser::Ruby::NORMAL, nil, ''
+ @parser.parse_statements @top_level
foo = @top_level.classes.first.method_list[0]
assert_equal 'foo', foo.name
@@ -569,10 +1819,25 @@ EOF
assert_equal 'foo4', foo4.name
assert_equal 'foo', foo4.is_alias_for.name
- assert_equal 'unknown', @top_level.classes.first.aliases[0].old_name
+ assert_equal 'unknown', @top_level.classes.first.external_aliases[0].old_name
end
def test_parse_statements_identifier_constant
+
+ sixth_constant = <<-EOF
+Class.new do
+ rule :file do
+ all(x, y, z) {
+ def value
+ find(:require).each {|r| require r.value }
+ find(:grammar).map {|g| g.value }
+ end
+ def min; end
+ }
+ end
+end
+ EOF
+
content = <<-EOF
class Foo
FIRST_CONSTANT = 5
@@ -594,42 +1859,63 @@ class Foo
end
FIFTH_CONSTANT = SECOND_CONSTANT.map { |element| element + 1 }
+
+ SIXTH_CONSTANT = #{sixth_constant}
+
+ SEVENTH_CONSTANT = proc { |i| begin i end }
end
EOF
util_parser content
- @parser.parse_statements @top_level, RDoc::Parser::Ruby::NORMAL, nil, ''
+ @parser.parse_statements @top_level
constants = @top_level.classes.first.constants
constant = constants[0]
assert_equal 'FIRST_CONSTANT', constant.name
assert_equal '5', constant.value
+ assert_equal @top_level, constant.file
constant = constants[1]
assert_equal 'SECOND_CONSTANT', constant.name
- assert_equal '[ 1, 2, 3 ]', constant.value
+ assert_equal "[\n1,\n2,\n3\n]", constant.value
+ assert_equal @top_level, constant.file
constant = constants[2]
assert_equal 'THIRD_CONSTANT', constant.name
- assert_equal "{ :foo => 'bar', :x => 'y' }", constant.value
+ assert_equal "{\n:foo => 'bar',\n:x => 'y'\n}", constant.value
+ assert_equal @top_level, constant.file
constant = constants[3]
assert_equal 'FOURTH_CONSTANT', constant.name
- assert_equal 'SECOND_CONSTANT.map do |element| element + 1 element + 2 end', constant.value
+ assert_equal "SECOND_CONSTANT.map do |element|\nelement + 1\nelement + 2\nend", constant.value
+ assert_equal @top_level, constant.file
- constant = constants.last
+ constant = constants[4]
assert_equal 'FIFTH_CONSTANT', constant.name
assert_equal 'SECOND_CONSTANT.map { |element| element + 1 }', constant.value
+ assert_equal @top_level, constant.file
+
+ # TODO: parse as class
+ constant = constants[5]
+ assert_equal 'SIXTH_CONSTANT', constant.name
+ assert_equal sixth_constant.lines.map(&:strip).join("\n"), constant.value
+ assert_equal @top_level, constant.file
+
+ # TODO: parse as method
+ constant = constants[6]
+ assert_equal 'SEVENTH_CONSTANT', constant.name
+ assert_equal "proc { |i| begin i end }", constant.value
+ assert_equal @top_level, constant.file
end
def test_parse_statements_identifier_attr
- content = "class Foo; attr :foo; end"
+ content = "class Foo\nattr :foo\nend"
util_parser content
- @parser.parse_statements @top_level, RDoc::Parser::Ruby::NORMAL, nil, ''
+ @parser.parse_statements @top_level
foo = @top_level.classes.first.attributes.first
assert_equal 'foo', foo.name
@@ -637,37 +1923,23 @@ EOF
end
def test_parse_statements_identifier_attr_accessor
- content = "class Foo; attr_accessor :foo; end"
+ content = "class Foo\nattr_accessor :foo\nend"
util_parser content
- @parser.parse_statements @top_level, RDoc::Parser::Ruby::NORMAL, nil, ''
+ @parser.parse_statements @top_level
foo = @top_level.classes.first.attributes.first
assert_equal 'foo', foo.name
assert_equal 'RW', foo.rw
end
- def test_parse_statements_identifier_extra_accessors
- @options.extra_accessors = /^my_accessor$/
-
- content = "class Foo; my_accessor :foo; end"
-
- util_parser content
-
- @parser.parse_statements @top_level, RDoc::Parser::Ruby::NORMAL, nil, ''
-
- foo = @top_level.classes.first.attributes.first
- assert_equal 'foo', foo.name
- assert_equal '?', foo.rw
- end
-
def test_parse_statements_identifier_include
- content = "class Foo; include Bar; end"
+ content = "class Foo\ninclude Bar\nend"
util_parser content
- @parser.parse_statements @top_level, RDoc::Parser::Ruby::NORMAL, nil, ''
+ @parser.parse_statements @top_level
foo = @top_level.classes.first
assert_equal 'Foo', foo.name
@@ -675,52 +1947,507 @@ EOF
end
def test_parse_statements_identifier_module_function
- content = "module Foo def foo() end; module_function :foo; end"
+ content = "module Foo\ndef foo() end\nmodule_function :foo\nend"
util_parser content
- @parser.parse_statements @top_level, RDoc::Parser::Ruby::NORMAL, nil, ''
+ @parser.parse_statements @top_level
foo, s_foo = @top_level.modules.first.method_list
- assert_equal 'foo', foo.name, 'instance method name'
+ assert_equal 'foo', foo.name, 'instance method name'
assert_equal :private, foo.visibility, 'instance method visibility'
- assert_equal false, foo.singleton, 'instance method singleton'
+ assert_equal false, foo.singleton, 'instance method singleton'
- assert_equal 'foo', s_foo.name, 'module function name'
+ assert_equal 'foo', s_foo.name, 'module function name'
assert_equal :public, s_foo.visibility, 'module function visibility'
- assert_equal true, s_foo.singleton, 'module function singleton'
+ assert_equal true, s_foo.singleton, 'module function singleton'
end
def test_parse_statements_identifier_private
- content = "class Foo private; def foo() end end"
+ content = "class Foo\nprivate\ndef foo() end\nend"
util_parser content
- @parser.parse_statements @top_level, RDoc::Parser::Ruby::NORMAL, nil, ''
+ @parser.parse_statements @top_level
foo = @top_level.classes.first.method_list.first
assert_equal 'foo', foo.name
assert_equal :private, foo.visibility
end
+ def test_parse_statements_identifier_public_class_method
+ content = <<-CONTENT
+class Date
+ def self.now; end
+ private_class_method :now
+end
+
+class DateTime < Date
+ public_class_method :now
+end
+ CONTENT
+
+ util_parser content
+
+ @parser.parse_statements @top_level
+
+ date, date_time = @top_level.classes
+
+ date_now = date.method_list.first
+ date_time_now = date_time.method_list.first
+
+ assert_equal :private, date_now.visibility
+ assert_equal :public, date_time_now.visibility
+ end
+
+ def test_parse_statements_identifier_private_class_method
+ content = <<-CONTENT
+class Date
+ def self.now; end
+ public_class_method :now
+end
+
+class DateTime < Date
+ private_class_method :now
+end
+ CONTENT
+
+ util_parser content
+
+ @parser.parse_statements @top_level
+
+ date, date_time = @top_level.classes
+
+ date_now = date.method_list.first
+ date_time_now = date_time.method_list.first
+
+ assert_equal :public, date_now.visibility, date_now.full_name
+ assert_equal :private, date_time_now.visibility, date_time_now.full_name
+ end
+
def test_parse_statements_identifier_require
content = "require 'bar'"
util_parser content
- @parser.parse_statements @top_level, RDoc::Parser::Ruby::NORMAL, nil, ''
+ @parser.parse_statements @top_level
assert_equal 1, @top_level.requires.length
end
+ def test_parse_statements_stopdoc_TkALIAS
+ util_top_level
+
+ klass = @top_level.add_class RDoc::NormalClass, 'Foo'
+
+ util_parser "\n# :stopdoc:\nalias old new"
+
+ @parser.parse_statements klass, RDoc::Parser::Ruby::NORMAL, nil
+
+ assert_empty klass.aliases
+ assert_empty klass.unmatched_alias_lists
+ end
+
+ def test_parse_statements_stopdoc_TkIDENTIFIER_alias_method
+ util_top_level
+
+ klass = @top_level.add_class RDoc::NormalClass, 'Foo'
+
+ util_parser "\n# :stopdoc:\nalias_method :old :new"
+
+ @parser.parse_statements klass, RDoc::Parser::Ruby::NORMAL, nil
+
+ assert_empty klass.aliases
+ assert_empty klass.unmatched_alias_lists
+ end
+
+ def test_parse_statements_stopdoc_TkIDENTIFIER_metaprogrammed
+ util_top_level
+
+ klass = @top_level.add_class RDoc::NormalClass, 'Foo'
+
+ util_parser "\n# :stopdoc:\n# attr :meta"
+
+ @parser.parse_statements klass, RDoc::Parser::Ruby::NORMAL, nil
+
+ assert_empty klass.method_list
+ assert_empty klass.attributes
+ end
+
+ def test_parse_statements_stopdoc_TkCONSTANT
+ util_top_level
+
+ klass = @top_level.add_class RDoc::NormalClass, 'Foo'
+
+ util_parser "\n# :stopdoc:\nA = v"
+
+ @parser.parse_statements klass, RDoc::Parser::Ruby::NORMAL, nil
+
+ assert_empty klass.constants
+ end
+
+ def test_parse_statements_stopdoc_TkDEF
+ util_top_level
+
+ klass = @top_level.add_class RDoc::NormalClass, 'Foo'
+
+ util_parser "\n# :stopdoc:\ndef m\n end"
+
+ @parser.parse_statements klass, RDoc::Parser::Ruby::NORMAL, nil
+
+ assert_empty klass.method_list
+ end
+
+ def test_parse_statements_while_begin
+ util_parser <<-RUBY
+class A
+ def a
+ while begin a; b end
+ end
+ end
+
+ def b
+ end
+end
+ RUBY
+
+ @parser.parse_statements @top_level
+
+ c_a = @top_level.classes.first
+ assert_equal 'A', c_a.full_name
+
+ assert_equal 1, @top_level.classes.length
+
+ m_a = c_a.method_list.first
+ m_b = c_a.method_list.last
+
+ assert_equal 'A#a', m_a.full_name
+ assert_equal 'A#b', m_b.full_name
+ end
+
+ def test_parse_symbol_in_arg
+ util_parser ':blah "blah" "#{blah}" blah'
+
+ assert_equal 'blah', @parser.parse_symbol_in_arg
+
+ @parser.skip_tkspace
+
+ assert_equal 'blah', @parser.parse_symbol_in_arg
+
+ @parser.skip_tkspace
+
+ assert_equal nil, @parser.parse_symbol_in_arg
+
+ @parser.skip_tkspace
+
+ assert_equal nil, @parser.parse_symbol_in_arg
+ end
+
+ def test_parse_statements_alias_method
+ content = <<-CONTENT
+class A
+ alias_method :a, :[] unless c
+end
+
+B = A
+
+class C
+end
+ CONTENT
+
+ util_parser content
+
+ @parser.parse_statements @top_level
+
+ # HACK where are the assertions?
+ end
+
+ def test_parse_top_level_statements_stopdoc
+ @top_level.stop_doc
+ content = "# this is the top-level comment"
+
+ util_parser content
+
+ @parser.parse_top_level_statements @top_level
+
+ assert_empty @top_level.comment
+ end
+
+ def test_parse_top_level_statements_stopdoc_integration
+ content = <<-CONTENT
+# :stopdoc:
+
+class Example
+ def method_name
+ end
+end
+ CONTENT
+
+ util_parser content
+
+ @parser.parse_top_level_statements @top_level
+
+ assert_equal 1, @top_level.classes.length
+ assert_empty @top_level.modules
+
+ assert @top_level.find_module_named('Example').ignored?
+ end
+
+ # This tests parse_comment
+ def test_parse_top_level_statements_constant_nodoc_integration
+ content = <<-CONTENT
+class A
+ C = A # :nodoc:
+end
+ CONTENT
+
+ util_parser content
+
+ @parser.parse_top_level_statements @top_level
+
+ klass = @top_level.find_module_named('A')
+
+ c = klass.constants.first
+
+ assert_nil c.document_self, 'C should not be documented'
+ end
+
+ def test_parse_yield_in_braces_with_parens
+ klass = RDoc::NormalClass.new 'Foo'
+ klass.parent = @top_level
+
+ util_parser "def foo\nn.times { |i| yield nth(i) }\nend"
+
+ tk = @parser.get_tk
+
+ @parser.parse_method klass, RDoc::Parser::Ruby::NORMAL, tk, ''
+
+ foo = klass.method_list.first
+ assert_equal 'nth(i)', foo.block_params
+ end
+
+ def test_sanity_integer
+ util_parser '1'
+ assert_equal '1', @parser.get_tk.text
+
+ util_parser '1.0'
+ assert_equal '1.0', @parser.get_tk.text
+ end
+
+ def test_sanity_interpolation
+ last_tk = nil
+ util_parser 'class A; B = "#{c}"; end'
+
+ while tk = @parser.get_tk do last_tk = tk end
+
+ assert_equal "\n", last_tk.text
+ end
+
+ # If you're writing code like this you're doing it wrong
+
+ def test_sanity_interpolation_crazy
+ util_parser '"#{"#{"a")}" if b}"'
+
+ assert_equal '"#{"#{"a")}" if b}"', @parser.get_tk.text
+ assert_equal RDoc::RubyToken::TkNL, @parser.get_tk.class
+ end
+
+ def test_sanity_interpolation_curly
+ util_parser '%{ #{} }'
+
+ assert_equal '%{ #{} }', @parser.get_tk.text
+ assert_equal RDoc::RubyToken::TkNL, @parser.get_tk.class
+ end
+
+ def test_sanity_interpolation_format
+ util_parser '"#{stftime("%m-%d")}"'
+
+ while @parser.get_tk do end
+ end
+
+ def test_sanity_symbol_interpolation
+ util_parser ':"#{bar}="'
+
+ while @parser.get_tk do end
+ end
+
+ def test_scan_cr
+ content = <<-CONTENT
+class C\r
+ def m\r
+ a=\\\r
+ 123\r
+ end\r
+end\r
+ CONTENT
+
+ util_parser content
+
+ @parser.scan
+
+ c = @top_level.classes.first
+
+ assert_equal 1, c.method_list.length
+ end
+
+ def test_scan_block_comment
+ content = <<-CONTENT
+=begin rdoc
+Foo comment
+=end
+
+class Foo
+
+=begin
+m comment
+=end
+
+ def m() end
+end
+ CONTENT
+
+ util_parser content
+
+ @parser.scan
+
+ foo = @top_level.classes.first
+
+ assert_equal 'Foo comment', foo.comment
+
+ m = foo.method_list.first
+
+ assert_equal 'm comment', m.comment
+ end
+
+ def test_scan_block_comment_nested # Issue #41
+ content = <<-CONTENT
+require 'something'
+=begin rdoc
+findmeindoc
+=end
+module Foo
+ class Bar
+ end
+end
+ CONTENT
+
+ util_parser content
+
+ @parser.scan
+
+ foo = @top_level.modules.first
+
+ assert_equal 'Foo', foo.full_name
+ assert_equal 'findmeindoc', foo.comment
+
+ bar = foo.classes.first
+
+ assert_equal 'Foo::Bar', bar.full_name
+ assert_equal '', bar.comment
+ end
+
+ def test_scan_block_comment_notflush
+ ##
+ #
+ # The previous test assumes that between the =begin/=end blocs that there is
+ # only one line, or minima formatting directives. This test tests for those
+ # who use the =begin bloc with longer / more advanced formatting within.
+ #
+ ##
+ content = <<-CONTENT
+=begin rdoc
+
+= DESCRIPTION
+
+This is a simple test class
+
+= RUMPUS
+
+Is a silly word
+
+=end
+class StevenSimpleClass
+ # A band on my iPhone as I wrote this test
+ FRUIT_BATS="Make nice music"
+
+=begin rdoc
+A nice girl
+=end
+
+ def lauren
+ puts "Summoning Lauren!"
+ end
+end
+ CONTENT
+ util_parser content
+
+ @parser.scan
+
+ foo = @top_level.classes.first
+
+ assert_equal "= DESCRIPTION\n\nThis is a simple test class\n\n= RUMPUS\n\nIs a silly word",
+ foo.comment
+
+ m = foo.method_list.first
+
+ assert_equal 'A nice girl', m.comment
+ end
+
+ def test_scan_meta_method_block
+ content = <<-CONTENT
+class C
+
+ ##
+ # my method
+
+ inline(:my_method) do |*args|
+ "this method used to cause z to disappear"
+ end
+
+ def z
+ end
+ CONTENT
+
+ util_parser content
+
+ @parser.scan
+
+ assert_equal 2, @top_level.classes.first.method_list.length
+ end
+
+ def test_stopdoc_after_comment
+ util_parser <<-EOS
+ module Bar
+ # hello
+ module Foo
+ # :stopdoc:
+ end
+ # there
+ class Baz
+ # :stopdoc:
+ end
+ end
+ EOS
+
+ @parser.parse_statements @top_level
+
+ foo = @top_level.modules.first.modules.first
+ assert_equal 'Foo', foo.name
+ assert_equal 'hello', foo.comment
+
+ baz = @top_level.modules.first.classes.first
+ assert_equal 'Baz', baz.name
+ assert_equal 'there', baz.comment
+ end
+
def tk(klass, line, char, name, text)
klass = RDoc::RubyToken.const_get "Tk#{klass.to_s.upcase}"
- token = if klass.instance_method(:initialize).arity == 2 then
+ token = if klass.instance_method(:initialize).arity == 3 then
raise ArgumentError, "name not used for #{klass}" unless name.nil?
- klass.new line, char
+ klass.new nil, line, char
else
- klass.new line, char, name
+ klass.new nil, line, char, name
end
token.set_text text
@@ -740,7 +2467,7 @@ EOF
second_file_content, @options, @stats
end
- def util_toplevel
+ def util_top_level
RDoc::TopLevel.reset
@top_level = RDoc::TopLevel.new @filename
@top_level2 = RDoc::TopLevel.new @filename2
@@ -748,4 +2475,3 @@ EOF
end
-MiniTest::Unit.autorun
diff --git a/test/rdoc/test_rdoc_parser_simple.rb b/test/rdoc/test_rdoc_parser_simple.rb
new file mode 100644
index 0000000000..8cedfaa2fc
--- /dev/null
+++ b/test/rdoc/test_rdoc_parser_simple.rb
@@ -0,0 +1,99 @@
+require 'tempfile'
+require 'rubygems'
+require 'minitest/autorun'
+require 'rdoc/options'
+require 'rdoc/parser'
+
+class TestRDocParserSimple < MiniTest::Unit::TestCase
+
+ def setup
+ @tempfile = Tempfile.new self.class.name
+ filename = @tempfile.path
+
+ @top_level = RDoc::TopLevel.new filename
+ @fn = filename
+ @options = RDoc::Options.new
+ @stats = RDoc::Stats.new 0
+
+ RDoc::TopLevel.reset
+ end
+
+ def teardown
+ @tempfile.close
+ end
+
+ def test_initialize_metadata
+ parser = util_parser ":unhandled: \n"
+
+ assert_includes @top_level.metadata, 'unhandled'
+
+ assert_equal ":unhandled: \n", parser.content
+ end
+
+ def test_remove_coding_comment
+ parser = util_parser <<-TEXT
+# -*- mode: rdoc; coding: utf-8; fill-column: 74; -*-
+
+Regular expressions (<i>regexp</i>s) are patterns which describe the
+contents of a string.
+ TEXT
+
+ parser.scan
+
+ expected = <<-TEXT.strip
+Regular expressions (<i>regexp</i>s) are patterns which describe the
+contents of a string.
+ TEXT
+
+ assert_equal expected, @top_level.comment
+ end
+
+ # RDoc stops processing comments if it finds a comment line CONTAINING
+ # '<tt>#--</tt>'. This can be used to separate external from internal
+ # comments, or to stop a comment being associated with a method,
+ # class, or module. Commenting CAN be turned back on with
+ # a line that STARTS '<tt>#++</tt>'.
+ #
+ # I've seen guys that comment their code like this:
+ # # This method....
+ # #-----------------
+ # def method
+ #
+ # => either we do it only in ruby code, or we require the leading #
+ # (to avoid conflict with rules).
+ #
+ # TODO: require the leading #, to provide the feature in simple text files.
+ # Note: in ruby & C code, we require '#--' & '#++' or '*--' & '*++',
+ # to allow rules:
+ #
+ # # this is a comment
+ # #---
+ # # private text
+ # #+++
+ # # this is a rule:
+ # # ---
+
+ def test_remove_private_comments
+ parser = util_parser ''
+ text = "foo\n\n--\nbar\n++\n\nbaz\n"
+
+ expected = "foo\n\n\n\nbaz\n"
+
+ assert_equal expected, parser.remove_private_comments(text)
+ end
+
+ def test_remove_private_comments_star
+ parser = util_parser ''
+
+ text = "* foo\n* bar\n"
+ expected = text.dup
+
+ assert_equal expected, parser.remove_private_comments(text)
+ end
+
+ def util_parser(content)
+ RDoc::Parser::Simple.new @top_level, @fn, content, @options, @stats
+ end
+
+end
+
diff --git a/test/rdoc/test_rdoc_rdoc.rb b/test/rdoc/test_rdoc_rdoc.rb
new file mode 100644
index 0000000000..aedccc9dbf
--- /dev/null
+++ b/test/rdoc/test_rdoc_rdoc.rb
@@ -0,0 +1,209 @@
+require 'rubygems'
+require 'minitest/autorun'
+require 'rdoc/rdoc'
+
+require 'fileutils'
+require 'tempfile'
+require 'tmpdir'
+
+class TestRDocRDoc < MiniTest::Unit::TestCase
+
+ def setup
+ RDoc::TopLevel.reset
+
+ @rdoc = RDoc::RDoc.new
+ @rdoc.options = RDoc::Options.new
+
+ @stats = RDoc::Stats.new 0, 0
+ @rdoc.instance_variable_set :@stats, @stats
+ end
+
+ def test_class_reset
+ tl = RDoc::TopLevel.new 'file.rb'
+ tl.add_class RDoc::NormalClass, 'C'
+ tl.add_class RDoc::NormalModule, 'M'
+
+ c = RDoc::Parser::C
+ enclosure_classes = c.send :class_variable_get, :@@enclosure_classes
+ enclosure_classes['A'] = 'B'
+ known_bodies = c.send :class_variable_get, :@@known_bodies
+ known_bodies['A'] = 'B'
+
+ RDoc::RDoc.reset
+
+ assert_empty RDoc::TopLevel.all_classes_hash
+ assert_empty RDoc::TopLevel.all_files_hash
+ assert_empty RDoc::TopLevel.all_modules_hash
+
+ assert_empty c.send :class_variable_get, :@@enclosure_classes
+ assert_empty c.send :class_variable_get, :@@known_bodies
+ end
+
+ def test_gather_files
+ file = File.expand_path __FILE__
+ assert_equal [file], @rdoc.gather_files([file, file])
+ end
+
+ def test_normalized_file_list
+ files = @rdoc.normalized_file_list [__FILE__]
+
+ files = files.map { |file| File.expand_path file }
+
+ assert_equal [File.expand_path(__FILE__)], files
+ end
+
+ def test_normalized_file_list_not_modified
+ files = [__FILE__]
+
+ @rdoc.last_modified[__FILE__] = File.stat(__FILE__).mtime
+
+ files = @rdoc.normalized_file_list [__FILE__]
+
+ assert_empty files
+ end
+
+ def test_parse_file_encoding
+ skip "Encoding not implemented" unless Object.const_defined? :Encoding
+ @rdoc.options.encoding = Encoding::ISO_8859_1
+
+ Tempfile.open 'test.txt' do |io|
+ io.write 'hi'
+ io.rewind
+
+ top_level = @rdoc.parse_file io.path
+
+ assert_equal Encoding::ISO_8859_1, top_level.absolute_name.encoding
+ end
+ end
+
+ def test_remove_unparseable
+ file_list = %w[
+ blah.class
+ blah.eps
+ blah.erb
+ blah.scpt.txt
+ blah.ttf
+ blah.yml
+ ]
+
+ assert_empty @rdoc.remove_unparseable file_list
+ end
+
+ def test_setup_output_dir
+ skip "No Dir::mktmpdir, upgrade your ruby" unless Dir.respond_to? :mktmpdir
+
+ Dir.mktmpdir {|d|
+ path = File.join d, 'testdir'
+
+ last = @rdoc.setup_output_dir path, false
+
+ assert_empty last
+
+ assert File.directory? path
+ assert File.exist? @rdoc.output_flag_file path
+ }
+ end
+
+ def test_setup_output_dir_dry_run
+ skip "No Dir::mktmpdir, upgrade your ruby" unless Dir.respond_to? :mktmpdir
+
+ @rdoc.options.dry_run = true
+
+ Dir.mktmpdir do |d|
+ path = File.join d, 'testdir'
+
+ @rdoc.setup_output_dir path, false
+
+ refute File.exist? path
+ end
+ end
+
+ def test_setup_output_dir_exists
+ skip "No Dir::mktmpdir, upgrade your ruby" unless Dir.respond_to? :mktmpdir
+
+ Dir.mktmpdir {|path|
+ open @rdoc.output_flag_file(path), 'w' do |io|
+ io.puts Time.at 0
+ io.puts "./lib/rdoc.rb\t#{Time.at 86400}"
+ end
+
+ last = @rdoc.setup_output_dir path, false
+
+ assert_equal 1, last.size
+ assert_equal Time.at(86400), last['./lib/rdoc.rb']
+ }
+ end
+
+ def test_setup_output_dir_exists_empty_created_rid
+ skip "No Dir::mktmpdir, upgrade your ruby" unless Dir.respond_to? :mktmpdir
+
+ Dir.mktmpdir {|path|
+ open @rdoc.output_flag_file(path), 'w' do end
+
+ e = assert_raises RDoc::Error do
+ @rdoc.setup_output_dir path, false
+ end
+
+ assert_match %r%Directory #{Regexp.escape path} already exists%, e.message
+ }
+ end
+
+ def test_setup_output_dir_exists_file
+ Tempfile.open 'test_rdoc_rdoc' do |tempfile|
+ path = tempfile.path
+
+ e = assert_raises RDoc::Error do
+ @rdoc.setup_output_dir path, false
+ end
+
+ assert_match(%r%#{Regexp.escape path} exists and is not a directory%,
+ e.message)
+ end
+ end
+
+ def test_setup_output_dir_exists_not_rdoc
+ skip "No Dir::mktmpdir, upgrade your ruby" unless Dir.respond_to? :mktmpdir
+
+ Dir.mktmpdir do |dir|
+ e = assert_raises RDoc::Error do
+ @rdoc.setup_output_dir dir, false
+ end
+
+ assert_match %r%Directory #{Regexp.escape dir} already exists%, e.message
+ end
+ end
+
+ def test_update_output_dir
+ skip "No Dir::mktmpdir, upgrade your ruby" unless Dir.respond_to? :mktmpdir
+
+ Dir.mktmpdir do |d|
+ @rdoc.update_output_dir d, Time.now, {}
+
+ assert File.exist? "#{d}/created.rid"
+ end
+ end
+
+ def test_update_output_dir_dont
+ skip "No Dir::mktmpdir, upgrade your ruby" unless Dir.respond_to? :mktmpdir
+
+ Dir.mktmpdir do |d|
+ @rdoc.options.update_output_dir = false
+ @rdoc.update_output_dir d, Time.now, {}
+
+ refute File.exist? "#{d}/created.rid"
+ end
+ end
+
+ def test_update_output_dir_dry_run
+ skip "No Dir::mktmpdir, upgrade your ruby" unless Dir.respond_to? :mktmpdir
+
+ Dir.mktmpdir do |d|
+ @rdoc.options.dry_run = true
+ @rdoc.update_output_dir d, Time.now, {}
+
+ refute File.exist? "#{d}/created.rid"
+ end
+ end
+
+end
+
diff --git a/test/rdoc/test_rdoc_require.rb b/test/rdoc/test_rdoc_require.rb
new file mode 100644
index 0000000000..b7995aff7b
--- /dev/null
+++ b/test/rdoc/test_rdoc_require.rb
@@ -0,0 +1,25 @@
+require File.expand_path '../xref_test_case', __FILE__
+
+class TestRDocRequire < XrefTestCase
+
+ def setup
+ super
+
+ @req = RDoc::Require.new 'foo', 'comment'
+ end
+
+ def test_initialize
+ assert_equal 'foo', @req.name
+
+ req = RDoc::Require.new '"foo"', ''
+ assert_equal 'foo', @req.name
+
+ req = RDoc::Require.new '\'foo\'', ''
+ assert_equal 'foo', @req.name
+
+ req = RDoc::Require.new '|foo|', ''
+ assert_equal 'foo', @req.name, 'for fortran?'
+ end
+
+end
+
diff --git a/test/rdoc/test_rdoc_ri_attribute_formatter.rb b/test/rdoc/test_rdoc_ri_attribute_formatter.rb
deleted file mode 100644
index a86312618b..0000000000
--- a/test/rdoc/test_rdoc_ri_attribute_formatter.rb
+++ /dev/null
@@ -1,44 +0,0 @@
-require 'stringio'
-require 'rubygems'
-require 'minitest/unit'
-require 'rdoc/ri/formatter'
-
-class TestRDocRIAttributeFormatter < MiniTest::Unit::TestCase
-
- def setup
- @output = StringIO.new
- @width = 78
- @indent = ' '
-
- @f = RDoc::RI::AttributeFormatter.new @output, @width, @indent
- end
-
- def test_wrap_empty
- @f.wrap ''
- assert_equal '', @output.string
- end
-
- def test_wrap_long
- @f.wrap 'a ' * (@width / 2)
- assert_equal " a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a \n a \n",
- @output.string
- end
-
- def test_wrap_markup
- @f.wrap 'a <tt>b</tt> c'
- assert_equal " a b c\n", @output.string
- end
-
- def test_wrap_nil
- @f.wrap nil
- assert_equal '', @output.string
- end
-
- def test_wrap_short
- @f.wrap 'a b c'
- assert_equal " a b c\n", @output.string
- end
-
-end
-
-MiniTest::Unit.autorun
diff --git a/test/rdoc/test_rdoc_ri_default_display.rb b/test/rdoc/test_rdoc_ri_default_display.rb
deleted file mode 100644
index 1182b046c3..0000000000
--- a/test/rdoc/test_rdoc_ri_default_display.rb
+++ /dev/null
@@ -1,301 +0,0 @@
-require 'stringio'
-require 'rubygems'
-require 'minitest/unit'
-require 'rdoc/ri/formatter'
-require 'rdoc/ri/display'
-require 'rdoc/ri/driver'
-
-class TestRDocRiDefaultDisplay < MiniTest::Unit::TestCase
-
- def setup
- @output = StringIO.new
- @width = 78
- @indent = ' '
-
- @dd = RDoc::RI::DefaultDisplay.new RDoc::RI::Formatter, @width, true,
- @output
-
- @some_method = h \
- 'aliases' => [{'name' => 'some_method_alias'}],
- 'block_params' => 'block_param',
- 'comment' => [RDoc::Markup::Flow::P.new('some comment')],
- 'full_name' => 'SomeClass#some_method',
- 'is_singleton' => false,
- 'name' => 'some_method',
- 'params' => '(arg1, arg2) {|block_param| ...}',
- 'source_path' => '/nonexistent',
- 'visibility' => 'public'
- end
-
- def test_display_class_info
- klass = h \
- 'attributes' => [
- { 'name' => 'attribute', 'rw' => 'RW',
- 'comment' => [RDoc::Markup::Flow::P.new('attribute comment')] },
- { 'name' => 'attribute_no_comment', 'rw' => 'RW',
- 'comment' => nil },
- ],
- 'class_methods' => [
- { 'name' => 'class_method' },
- ],
- 'class_method_extensions' => [
- { 'name' => 'class_method_extension' },
- ],
- 'comment' => [RDoc::Markup::Flow::P.new('SomeClass comment')],
- 'constants' => [
- { 'name' => 'CONSTANT', 'value' => '"value1"',
- 'comment' => [RDoc::Markup::Flow::P.new('CONSTANT value')] },
- { 'name' => 'CONSTANT_NOCOMMENT', 'value' => '"value2"',
- 'comment' => nil },
- ],
- 'display_name' => 'Class',
- 'full_name' => 'SomeClass',
- 'includes' => [],
- 'instance_methods' => [
- { 'name' => 'instance_method' },
- { 'name' => 'instance_method2' },
- ],
- 'instance_method_extensions' => [
- { 'name' => 'instance_method_extension' },
- ],
- 'superclass' => 'Object'
-
- @dd.display_class_info klass
-
- expected = <<-EOF
----------------------------------------------------- Class: SomeClass < Object
- SomeClass comment
-
-------------------------------------------------------------------------------
-
-
-Constants:
-----------
-
- CONSTANT = "value1"
- CONSTANT value
-
- CONSTANT_NOCOMMENT = "value2"
-
-
-Attributes:
------------
-
- attribute (RW):
- attribute comment
-
- attribute_no_comment (RW)
-
-
-Class methods:
---------------
-
- class_method
-
-
-Class method extensions:
-------------------------
-
- class_method_extension
-
-
-Instance methods:
------------------
-
- instance_method, instance_method2
-
-
-Instance method extensions:
----------------------------
-
- instance_method_extension
- EOF
-
- assert_equal expected, @output.string
- end
-
- def test_display_flow
- flow = [RDoc::Markup::Flow::P.new('flow')]
-
- @dd.display_flow flow
-
- assert_equal " flow\n\n", @output.string
- end
-
- def test_display_flow_empty
- @dd.display_flow []
-
- assert_equal " [no description]\n", @output.string
- end
-
- def test_display_flow_nil
- @dd.display_flow nil
-
- assert_equal " [no description]\n", @output.string
- end
-
- def test_display_method_info
- @dd.display_method_info @some_method
-
- expected = <<-EOF
--------------------------------------------------------- SomeClass#some_method
- some_method(arg1, arg2) {|block_param| ...}
-
- From /nonexistent
-------------------------------------------------------------------------------
- some comment
-
-
- (also known as some_method_alias)
- EOF
-
- assert_equal expected, @output.string
- end
-
- def test_display_method_info_singleton
- method = RDoc::RI::Driver::OpenStructHash.new.update \
- 'aliases' => [],
- 'block_params' => nil,
- 'comment' => nil,
- 'full_name' => 'SomeClass::some_method',
- 'is_singleton' => true,
- 'name' => 'some_method',
- 'params' => '(arg1, arg2)',
- 'visibility' => 'public'
-
- @dd.display_method_info method
-
- expected = <<-EOF
-------------------------------------------------------- SomeClass::some_method
- SomeClass::some_method(arg1, arg2)
-
- From
-------------------------------------------------------------------------------
- [no description]
- EOF
-
- assert_equal expected, @output.string
- end
-
- def test_display_method_list
- methods = [
- RDoc::RI::Driver::OpenStructHash.new.update(
- "aliases" => [],
- "block_params" => nil,
- "comment" => nil,
- "full_name" => "SomeClass#some_method",
- "is_singleton" => false,
- "name" => "some_method",
- "params" => "()",
- "visibility" => "public"
- ),
- RDoc::RI::Driver::OpenStructHash.new.update(
- "aliases" => [],
- "block_params" => nil,
- "comment" => nil,
- "full_name" => "SomeClass#some_other_method",
- "is_singleton" => false,
- "name" => "some_other_method",
- "params" => "()",
- "visibility" => "public"
- ),
- ]
-
- @dd.display_method_list methods
-
- expected = <<-EOF
- More than one method matched your request. You can refine your search by
- asking for information on one of:
-
-SomeClass#some_method []
-SomeClass#some_other_method []
- EOF
-
- assert_equal expected, @output.string
- end
-
- def test_display_params
- @dd.display_params @some_method
-
- expected = <<-EOF
- some_method(arg1, arg2) {|block_param| ...}
-
- From /nonexistent
- EOF
-
- assert_equal expected, @output.string
- end
-
- def test_display_params_multiple
- @some_method['params'] = <<-EOF
-some_method(index)
-some_method(start, length)
- EOF
-
- @dd.display_params @some_method
-
- expected = <<-EOF
- some_method(index)
- some_method(start, length)
-
- From /nonexistent
- EOF
-
- assert_equal expected, @output.string
- end
-
- def test_display_params_singleton
- @some_method['is_singleton'] = true
- @some_method['full_name'] = 'SomeClass::some_method'
-
- @dd.display_params @some_method
-
- expected = <<-EOF
- SomeClass::some_method(arg1, arg2) {|block_param| ...}
-
- From /nonexistent
- EOF
-
- assert_equal expected, @output.string
- end
-
- def test_list_known_classes
- klasses = %w[SomeClass SomeModule]
-
- @dd.list_known_classes klasses
-
- expected = <<-EOF
----------------------------------------------------- Known classes and modules
-
- SomeClass, SomeModule
- EOF
-
- assert_equal expected, @output.string
- end
-
- def test_list_known_classes_empty
- @dd.list_known_classes []
-
- expected = <<-EOF
-No ri data found
-
-If you've installed Ruby yourself, you need to generate documentation using:
-
- make install-doc
-
-from the same place you ran `make` to build ruby.
-
-If you installed Ruby from a packaging system, then you may need to
-install an additional package, or ask the packager to enable ri generation.
- EOF
-
- assert_equal expected, @output.string
- end
-
- def h(hash)
- RDoc::RI::Driver::OpenStructHash.convert hash
- end
-
-end
-
-MiniTest::Unit.autorun
diff --git a/test/rdoc/test_rdoc_ri_driver.rb b/test/rdoc/test_rdoc_ri_driver.rb
index f160492057..e219993e57 100644
--- a/test/rdoc/test_rdoc_ri_driver.rb
+++ b/test/rdoc/test_rdoc_ri_driver.rb
@@ -1,94 +1,1061 @@
+require 'pp'
require 'rubygems'
-require 'minitest/unit'
+require 'minitest/autorun'
require 'tmpdir'
+require 'fileutils'
+require 'stringio'
require 'rdoc/ri/driver'
+require 'rdoc/rdoc'
class TestRDocRIDriver < MiniTest::Unit::TestCase
def setup
+ @RM = RDoc::Markup
+
@tmpdir = File.join Dir.tmpdir, "test_rdoc_ri_driver_#{$$}"
@home_ri = File.join @tmpdir, 'dot_ri'
- @cache_dir = File.join @home_ri, 'cache'
- @class_cache = File.join @cache_dir, 'classes'
FileUtils.mkdir_p @tmpdir
FileUtils.mkdir_p @home_ri
- FileUtils.mkdir_p @cache_dir
- @driver = RDoc::RI::Driver.new(RDoc::RI::Driver.process_args([]))
- @driver.homepath = @home_ri
+ @orig_ri = ENV['RI']
+ @orig_home = ENV['HOME']
+ ENV['HOME'] = @tmpdir
+ ENV.delete 'RI'
+
+ @options = RDoc::RI::Driver.process_args []
+ @options[:home] = @tmpdir
+ @options[:use_stdout] = true
+ @options[:formatter] = @RM::ToRdoc
+ @driver = RDoc::RI::Driver.new @options
end
def teardown
+ ENV['HOME'] = @orig_home
+ ENV['RI'] = @orig_ri
FileUtils.rm_rf @tmpdir
end
- def test_lookup_method
- def @driver.load_cache_for(klassname)
- { 'Foo#bar' => :found }
+ DUMMY_PAGER = ":;\n"
+
+ def with_dummy_pager
+ pager_env, ENV['RI_PAGER'] = ENV['RI_PAGER'], DUMMY_PAGER
+ yield
+ ensure
+ ENV['RI_PAGER'] = pager_env
+ end
+
+ def mu_pp(obj)
+ s = ''
+ s = PP.pp obj, s
+ s = s.force_encoding(Encoding.default_external) if defined? Encoding
+ s.chomp
+ end
+
+ def test_self_dump
+ util_store
+
+ out, = capture_io do
+ RDoc::RI::Driver.dump @store.cache_path
end
- assert @driver.lookup_method('Foo#bar', 'Foo')
+ assert_match %r%:class_methods%, out
+ assert_match %r%:modules%, out
+ assert_match %r%:instance_methods%, out
+ assert_match %r%:ancestors%, out
+ end
+
+ def test_add_also_in_empty
+ out = @RM::Document.new
+
+ @driver.add_also_in out, []
+
+ assert_empty out
+ end
+
+ def test_add_also_in
+ util_multi_store
+ @store1.type = :system
+ @store2.type = :home
+
+ out = @RM::Document.new
+
+ @driver.add_also_in out, [@store1, @store2]
+
+ expected = @RM::Document.new(
+ @RM::Rule.new(1),
+ @RM::Paragraph.new('Also found in:'),
+ @RM::Verbatim.new("ruby core\n",
+ "~/.ri\n"))
+
+ assert_equal expected, out
+ end
+
+ def test_add_class
+ util_multi_store
+
+ out = @RM::Document.new
+
+ @driver.add_class out, 'Bar', [@cBar]
+
+ expected = @RM::Document.new(
+ @RM::Heading.new(1, 'Bar < Foo'),
+ @RM::BlankLine.new)
+
+ assert_equal expected, out
+ end
+
+ def test_add_from
+ util_store
+ @store.type = :system
+
+ out = @RM::Document.new
+
+ @driver.add_from out, @store
+
+ expected = @RM::Document.new @RM::Paragraph.new("(from ruby core)")
+
+ assert_equal expected, out
+ end
+
+ def test_add_includes_empty
+ out = @RM::Document.new
+
+ @driver.add_includes out, []
+
+ assert_empty out
+ end
+
+ def test_add_includes_many
+ util_store
+
+ out = @RM::Document.new
+
+ enum = RDoc::Include.new 'Enumerable', nil
+ @cFoo.add_include enum
+
+ @driver.add_includes out, [[[@cFooInc, enum], @store]]
+
+ expected = @RM::Document.new(
+ @RM::Rule.new(1),
+ @RM::Heading.new(1, "Includes:"),
+ @RM::Paragraph.new("(from #{@store.friendly_path})"),
+ @RM::BlankLine.new,
+ @RM::Paragraph.new("Inc"),
+ @RM::BlankLine.new,
+ @RM::Paragraph.new("Include thingy"),
+ @RM::BlankLine.new,
+ @RM::Verbatim.new("Enumerable\n"))
+
+ assert_equal expected, out
+ end
+
+ def test_add_includes_many_no_doc
+ util_store
+
+ out = @RM::Document.new
+
+ enum = RDoc::Include.new 'Enumerable', nil
+ @cFoo.add_include enum
+ @cFooInc.instance_variable_set :@comment, ''
+
+ @driver.add_includes out, [[[@cFooInc, enum], @store]]
+
+ expected = @RM::Document.new(
+ @RM::Rule.new(1),
+ @RM::Heading.new(1, "Includes:"),
+ @RM::Paragraph.new("(from #{@store.friendly_path})"),
+ @RM::Verbatim.new("Inc\n",
+ "Enumerable\n"))
+
+ assert_equal expected, out
+ end
+
+ def test_add_includes_one
+ util_store
+
+ out = @RM::Document.new
+
+ @driver.add_includes out, [[[@cFooInc], @store]]
+
+ expected = @RM::Document.new(
+ @RM::Rule.new(1),
+ @RM::Heading.new(1, "Includes:"),
+ @RM::Paragraph.new("Inc (from #{@store.friendly_path})"),
+ @RM::BlankLine.new,
+ @RM::Paragraph.new("Include thingy"),
+ @RM::BlankLine.new)
+
+ assert_equal expected, out
+ end
+
+ def test_add_method_list
+ out = @RM::Document.new
+
+ @driver.add_method_list out, %w[new parse], 'Class methods'
+
+ expected = @RM::Document.new(
+ @RM::Heading.new(1, 'Class methods:'),
+ @RM::BlankLine.new,
+ @RM::Verbatim.new('new'),
+ @RM::Verbatim.new('parse'),
+ @RM::BlankLine.new)
+
+ assert_equal expected, out
+ end
+
+ def test_add_method_list_interative
+ @options[:interactive] = true
+ driver = RDoc::RI::Driver.new @options
+
+ out = @RM::Document.new
+
+ driver.add_method_list out, %w[new parse], 'Class methods'
+
+ expected = @RM::Document.new(
+ @RM::Heading.new(1, 'Class methods:'),
+ @RM::BlankLine.new,
+ @RM::IndentedParagraph.new(2, 'new, parse'),
+ @RM::BlankLine.new)
+
+ assert_equal expected, out
+ end
+
+ def test_add_method_list_none
+ out = @RM::Document.new
+
+ @driver.add_method_list out, [], 'Class'
+
+ assert_equal @RM::Document.new, out
+ end
+
+ def test_ancestors_of
+ util_ancestors_store
+
+ assert_equal %w[X Mixin Object Foo], @driver.ancestors_of('Foo::Bar')
+ end
+
+ def test_classes
+ util_multi_store
+
+ expected = {
+ 'Ambiguous' => [@store1, @store2],
+ 'Bar' => [@store2],
+ 'Foo' => [@store1],
+ 'Foo::Bar' => [@store1],
+ 'Foo::Baz' => [@store1, @store2],
+ 'Inc' => [@store1],
+ }
+
+ assert_equal expected, @driver.classes
+ end
+
+ def test_class_document
+ util_store
+
+ tl1 = RDoc::TopLevel.new 'one.rb'
+ tl2 = RDoc::TopLevel.new 'two.rb'
+
+ @cFoo.add_comment 'one', tl1
+ @cFoo.add_comment 'two', tl2
+ @store.save_class @cFoo
+
+ found = [
+ [@store, @store.load_class(@cFoo.full_name)]
+ ]
+
+ out = @driver.class_document @cFoo.full_name, found, [], []
+
+ expected = @RM::Document.new
+ @driver.add_class expected, 'Foo', []
+ @driver.add_includes expected, []
+ @driver.add_from expected, @store
+ expected << @RM::Rule.new(1)
+
+ doc = @RM::Document.new(@RM::Paragraph.new('one'))
+ doc.file = 'one.rb'
+ expected.push doc
+ expected << @RM::BlankLine.new
+ doc = @RM::Document.new(@RM::Paragraph.new('two'))
+ doc.file = 'two.rb'
+ expected.push doc
+
+ expected << @RM::Rule.new(1)
+ expected << @RM::Heading.new(1, 'Instance methods:')
+ expected << @RM::BlankLine.new
+ expected << @RM::Verbatim.new('inherit')
+ expected << @RM::Verbatim.new('override')
+ expected << @RM::BlankLine.new
+
+ assert_equal expected, out
end
- def test_lookup_method_class_method
- def @driver.load_cache_for(klassname)
- { 'Foo::Bar' => :found }
+ def test_complete
+ store = RDoc::RI::Store.new @home_ri
+ store.cache[:ancestors] = {
+ 'Foo' => %w[Object],
+ 'Foo::Bar' => %w[Object],
+ }
+ store.cache[:class_methods] = {
+ 'Foo' => %w[bar]
+ }
+ store.cache[:instance_methods] = {
+ 'Foo' => %w[Bar]
+ }
+ store.cache[:modules] = %w[
+ Foo
+ Foo::Bar
+ ]
+
+ @driver.stores = [store]
+
+ assert_equal %w[Foo ], @driver.complete('F')
+ assert_equal %w[ Foo::Bar], @driver.complete('Foo::B')
+
+ assert_equal %w[Foo#Bar], @driver.complete('Foo#'), 'Foo#'
+ assert_equal %w[Foo#Bar Foo::bar], @driver.complete('Foo.'), 'Foo.'
+ assert_equal %w[Foo::Bar Foo::bar], @driver.complete('Foo::'), 'Foo::'
+
+ assert_equal %w[ Foo::bar], @driver.complete('Foo::b'), 'Foo::b'
+ end
+
+ def test_complete_ancestor
+ util_ancestors_store
+
+ assert_equal %w[Foo::Bar#i_method], @driver.complete('Foo::Bar#')
+
+ assert_equal %w[Foo::Bar#i_method Foo::Bar::c_method Foo::Bar::new],
+ @driver.complete('Foo::Bar.')
+ end
+
+ def test_complete_classes
+ util_store
+
+ assert_equal %w[ ], @driver.complete('[')
+ assert_equal %w[ ], @driver.complete('[::')
+ assert_equal %w[Foo ], @driver.complete('F')
+ assert_equal %w[Foo:: Foo::Bar Foo::Baz], @driver.complete('Foo::')
+ assert_equal %w[ Foo::Bar Foo::Baz], @driver.complete('Foo::B')
+ end
+
+ def test_complete_multistore
+ util_multi_store
+
+ assert_equal %w[Bar], @driver.complete('B')
+ assert_equal %w[Foo], @driver.complete('F')
+ assert_equal %w[Foo::Bar Foo::Baz], @driver.complete('Foo::B')
+ end
+
+ def test_display
+ doc = @RM::Document.new(
+ @RM::Paragraph.new('hi'))
+
+ out, = capture_io do
+ @driver.display doc
end
- assert @driver.lookup_method('Foo::Bar', 'Foo::Bar')
+ assert_equal "hi\n", out
end
- def test_lookup_method_class_missing
- def @driver.load_cache_for(klassname) end
+ def test_display_class
+ util_store
- assert_nil @driver.lookup_method('Foo#bar', 'Foo')
+ out, = capture_io do
+ @driver.display_class 'Foo::Bar'
+ end
+
+ assert_match %r%^= Foo::Bar%, out
+ assert_match %r%^\(from%, out
+
+ assert_match %r%^= Class methods:%, out
+ assert_match %r%^ new%, out
+ assert_match %r%^= Instance methods:%, out
+ assert_match %r%^ blah%, out
+ assert_match %r%^= Attributes:%, out
+ assert_match %r%^ attr_accessor attr%, out
+
+ assert_equal 1, out.scan(/-\n/).length
end
- def test_lookup_method_dot_instance
- def @driver.load_cache_for(klassname)
- { 'Foo#bar' => :instance, 'Foo::bar' => :klass }
+ def test_display_class_ambiguous
+ util_multi_store
+
+ out, = capture_io do
+ @driver.display_class 'Ambiguous'
end
- assert_equal :instance, @driver.lookup_method('Foo.bar', 'Foo')
+ assert_match %r%^= Ambiguous < Object$%, out
end
- def test_lookup_method_dot_class
- def @driver.load_cache_for(klassname)
- { 'Foo::bar' => :found }
+ def test_display_class_multi_no_doc
+ util_multi_store
+
+ out, = capture_io do
+ @driver.display_class 'Foo::Baz'
end
- assert @driver.lookup_method('Foo.bar', 'Foo')
+ assert_match %r%^= Foo::Baz%, out
+ assert_match %r%-\n%, out
+ assert_match %r%Also found in:%, out
+ assert_match %r%#{Regexp.escape @home_ri}%, out
+ assert_match %r%#{Regexp.escape @home_ri2}%, out
end
- def test_lookup_method_method_missing
- def @driver.load_cache_for(klassname) {} end
+ def test_display_class_superclass
+ util_multi_store
+
+ out, = capture_io do
+ @driver.display_class 'Bar'
+ end
- assert_nil @driver.lookup_method('Foo#bar', 'Foo')
+ assert_match %r%^= Bar < Foo%, out
end
- def test_parse_name
- klass, meth = @driver.parse_name 'Foo::Bar'
+ def test_display_class_module
+ util_store
- assert_equal 'Foo::Bar', klass, 'Foo::Bar class'
- assert_equal nil, meth, 'Foo::Bar method'
+ out, = capture_io do
+ @driver.display_class 'Inc'
+ end
- klass, meth = @driver.parse_name 'Foo#Bar'
+ assert_match %r%^= Inc$%, out
+ end
- assert_equal 'Foo', klass, 'Foo#Bar class'
- assert_equal 'Bar', meth, 'Foo#Bar method'
+ def test_display_method
+ util_store
- klass, meth = @driver.parse_name 'Foo.Bar'
+ out, = capture_io do
+ @driver.display_method 'Foo::Bar#blah'
+ end
+
+ assert_match %r%Foo::Bar#blah%, out
+ assert_match %r%blah.5%, out
+ assert_match %r%blah.6%, out
+ end
+
+ def test_display_method_attribute
+ util_store
+
+ out, = capture_io do
+ @driver.display_method 'Foo::Bar#attr'
+ end
+
+ assert_match %r%Foo::Bar#attr%, out
+ refute_match %r%Implementation from%, out
+ end
+
+ def test_display_method_inherited
+ util_multi_store
+
+ out, = capture_io do
+ @driver.display_method 'Bar#inherit'
+ end
+
+ assert_match %r%^= Bar#inherit%, out
+ assert_match %r%^=== Implementation from Foo%, out
+ end
+
+ def test_display_method_overriden
+ util_multi_store
+
+ out, = capture_io do
+ @driver.display_method 'Bar#override'
+ end
+
+ refute_match %r%must not be displayed%, out
+ end
+
+ def test_display_name_not_found_class
+ util_store
+
+ out, = capture_io do
+ assert_equal false, @driver.display_name('Foo::B')
+ end
+
+ expected = <<-EXPECTED
+Foo::B not found, maybe you meant:
+
+Foo::Bar
+Foo::Baz
+ EXPECTED
+
+ assert_equal expected, out
+ end
+
+ def test_display_name_not_found_method
+ util_store
+
+ out, = capture_io do
+ assert_equal false, @driver.display_name('Foo::Bar#b')
+ end
+
+ expected = <<-EXPECTED
+Foo::Bar#b not found, maybe you meant:
+
+Foo::Bar#blah
+Foo::Bar#bother
+ EXPECTED
+
+ assert_equal expected, out
+ end
+
+ def test_display_method_params
+ util_store
+
+ out, = capture_io do
+ @driver.display_method 'Foo::Bar#bother'
+ end
+
+ assert_match %r%things.*stuff%, out
+ end
+
+ def test_expand_class
+ util_store
+
+ assert_equal 'Foo', @driver.expand_class('F')
+ assert_equal 'Foo::Bar', @driver.expand_class('F::Bar')
+
+ assert_raises RDoc::RI::Driver::NotFoundError do
+ @driver.expand_class 'F::B'
+ end
+ end
+
+ def test_expand_name
+ util_store
+
+ assert_equal '.b', @driver.expand_name('b')
+ assert_equal 'Foo', @driver.expand_name('F')
+ assert_equal 'Foo::Bar#', @driver.expand_name('F::Bar#')
+
+ e = assert_raises RDoc::RI::Driver::NotFoundError do
+ @driver.expand_name 'Z'
+ end
+
+ assert_equal 'Z', e.name
+ end
+
+ def test_find_methods
+ util_store
+
+ items = []
+
+ @driver.find_methods 'Foo::Bar.' do |store, klass, ancestor, types, method|
+ items << [store, klass, ancestor, types, method]
+ end
+
+ expected = [
+ [@store, 'Foo::Bar', 'Foo::Bar', :both, nil],
+ ]
+
+ assert_equal expected, items
+ end
+
+ def test_find_methods_method
+ util_store
+
+ items = []
+
+ @driver.find_methods '.blah' do |store, klass, ancestor, types, method|
+ items << [store, klass, ancestor, types, method]
+ end
+
+ expected = [
+ [@store, 'Ambiguous', 'Ambiguous', :both, 'blah'],
+ [@store, 'Foo', 'Foo', :both, 'blah'],
+ [@store, 'Foo::Bar', 'Foo::Bar', :both, 'blah'],
+ [@store, 'Foo::Baz', 'Foo::Baz', :both, 'blah'],
+ [@store, 'Inc', 'Inc', :both, 'blah'],
+ ]
+
+ assert_equal expected, items
+ end
+
+ def test_filter_methods
+ util_multi_store
+
+ name = 'Bar#override'
+
+ found = @driver.load_methods_matching name
+
+ sorted = @driver.filter_methods found, name
+
+ expected = [[@store2, [@override]]]
+
+ assert_equal expected, sorted
+ end
+
+ def test_filter_methods_not_found
+ util_multi_store
+
+ name = 'Bar#inherit'
+
+ found = @driver.load_methods_matching name
+
+ sorted = @driver.filter_methods found, name
+
+ assert_equal found, sorted
+ end
+
+ def test_formatter
+ tty = Object.new
+ def tty.tty?() true; end
+
+ driver = RDoc::RI::Driver.new
+
+ assert_instance_of @RM::ToAnsi, driver.formatter(tty)
+
+ assert_instance_of @RM::ToBs, driver.formatter(StringIO.new)
+
+ driver.instance_variable_set :@paging, true
+
+ assert_instance_of @RM::ToBs, driver.formatter(StringIO.new)
+
+ driver.instance_variable_set :@formatter_klass, @RM::ToHtml
+
+ assert_instance_of @RM::ToHtml, driver.formatter(tty)
+ end
+
+ def test_in_path_eh
+ path = ENV['PATH']
+
+ refute @driver.in_path?('/nonexistent')
+
+ ENV['PATH'] = File.expand_path '..', __FILE__
+
+ assert @driver.in_path?(File.basename(__FILE__))
+ ensure
+ ENV['PATH'] = path
+ end
+
+ def test_method_type
+ assert_equal :both, @driver.method_type(nil)
+ assert_equal :both, @driver.method_type('.')
+ assert_equal :instance, @driver.method_type('#')
+ assert_equal :class, @driver.method_type('::')
+ end
+
+ def test_name_regexp
+ assert_equal %r%^RDoc::AnyMethod#new$%,
+ @driver.name_regexp('RDoc::AnyMethod#new')
+
+ assert_equal %r%^RDoc::AnyMethod::new$%,
+ @driver.name_regexp('RDoc::AnyMethod::new')
+
+ assert_equal %r%^RDoc::AnyMethod(#|::)new$%,
+ @driver.name_regexp('RDoc::AnyMethod.new')
+
+ assert_equal %r%^Hash(#|::)\[\]$%,
+ @driver.name_regexp('Hash.[]')
+
+ assert_equal %r%^Hash::\[\]$%,
+ @driver.name_regexp('Hash::[]')
+ end
+
+ def test_list_known_classes
+ util_store
+
+ out, = capture_io do
+ @driver.list_known_classes
+ end
+
+ assert_equal "Ambiguous\nFoo\nFoo::Bar\nFoo::Baz\nInc\n", out
+ end
+
+ def test_list_known_classes_name
+ util_store
+
+ out, = capture_io do
+ @driver.list_known_classes %w[F I]
+ end
+
+ assert_equal "Foo\nFoo::Bar\nFoo::Baz\nInc\n", out
+ end
+
+ def test_list_methods_matching
+ util_store
+
+ assert_equal %w[
+ Foo::Bar#attr
+ Foo::Bar#blah
+ Foo::Bar#bother
+ Foo::Bar::new
+ ],
+ @driver.list_methods_matching('Foo::Bar.').sort
+ end
+
+ def test_list_methods_matching_inherit
+ util_multi_store
+
+ assert_equal %w[
+ Bar#baz
+ Bar#inherit
+ Bar#override
+ ],
+ @driver.list_methods_matching('Bar.').sort
+ end
+
+ def test_list_methods_matching_regexp
+ util_store
+
+ index = RDoc::AnyMethod.new nil, '[]'
+ index.record_location @top_level
+ @cFoo.add_method index
+ @store.save_method @cFoo, index
+
+ c_index = RDoc::AnyMethod.new nil, '[]'
+ c_index.singleton = true
+ c_index.record_location @top_level
+ @cFoo.add_method c_index
+ @store.save_method @cFoo, c_index
+
+ @store.save_cache
+
+ assert_equal %w[Foo#[]], @driver.list_methods_matching('Foo#[]')
+ assert_equal %w[Foo::[]], @driver.list_methods_matching('Foo::[]')
+ end
+
+ def test_load_method
+ util_store
+
+ method = @driver.load_method(@store, :instance_methods, 'Foo', '#',
+ 'inherit')
+
+ assert_equal @inherit, method
+ end
+
+ def test_load_method_inherited
+ util_multi_store
+
+ method = @driver.load_method(@store2, :instance_methods, 'Bar', '#',
+ 'inherit')
+
+ assert_equal nil, method
+ end
+
+ def test_load_methods_matching
+ util_store
+
+ expected = [[@store, [@inherit]]]
+
+ assert_equal expected, @driver.load_methods_matching('Foo#inherit')
+
+ expected = [[@store, [@blah]]]
+
+ assert_equal expected, @driver.load_methods_matching('.blah')
+
+ assert_empty @driver.load_methods_matching('.b')
+ end
+
+ def test_load_methods_matching_inherited
+ util_multi_store
+
+ expected = [[@store1, [@inherit]]]
+
+ assert_equal expected, @driver.load_methods_matching('Bar#inherit')
+ end
+
+ def _test_page # this test doesn't do anything anymore :(
+ @driver.use_stdout = false
+
+ with_dummy_pager do
+ @driver.page do |io|
+ skip "couldn't find a standard pager" if io == $stdout
+
+ assert @driver.paging?
+ end
+ end
+
+ refute @driver.paging?
+ end
+
+ def test_page_stdout
+ @driver.use_stdout = true
+
+ @driver.page do |io|
+ assert_equal $stdout, io
+ end
+
+ refute @driver.paging?
+ end
+
+ def test_parse_name_method
+ klass, type, meth = @driver.parse_name 'foo'
+
+ assert_equal '', klass, 'foo class'
+ assert_equal '.', type, 'foo type'
+ assert_equal 'foo', meth, 'foo method'
+
+ klass, type, meth = @driver.parse_name '#foo'
+
+ assert_equal '', klass, '#foo class'
+ assert_equal '#', type, '#foo type'
+ assert_equal 'foo', meth, '#foo method'
+
+ klass, type, meth = @driver.parse_name '::foo'
+
+ assert_equal '', klass, '::foo class'
+ assert_equal '::', type, '::foo type'
+ assert_equal 'foo', meth, '::foo method'
+ end
+
+ def test_parse_name_single_class
+ klass, type, meth = @driver.parse_name 'Foo'
+
+ assert_equal 'Foo', klass, 'Foo class'
+ assert_equal nil, type, 'Foo type'
+ assert_equal nil, meth, 'Foo method'
+
+ klass, type, meth = @driver.parse_name 'Foo#'
+
+ assert_equal 'Foo', klass, 'Foo# class'
+ assert_equal '#', type, 'Foo# type'
+ assert_equal nil, meth, 'Foo# method'
+
+ klass, type, meth = @driver.parse_name 'Foo::'
+
+ assert_equal 'Foo', klass, 'Foo:: class'
+ assert_equal '::', type, 'Foo:: type'
+ assert_equal nil, meth, 'Foo:: method'
+
+ klass, type, meth = @driver.parse_name 'Foo.'
+
+ assert_equal 'Foo', klass, 'Foo. class'
+ assert_equal '.', type, 'Foo. type'
+ assert_equal nil, meth, 'Foo. method'
+
+ klass, type, meth = @driver.parse_name 'Foo#Bar'
assert_equal 'Foo', klass, 'Foo#Bar class'
+ assert_equal '#', type, 'Foo#Bar type'
assert_equal 'Bar', meth, 'Foo#Bar method'
- klass, meth = @driver.parse_name 'Foo::bar'
+ klass, type, meth = @driver.parse_name 'Foo.Bar'
+
+ assert_equal 'Foo', klass, 'Foo.Bar class'
+ assert_equal '.', type, 'Foo.Bar type'
+ assert_equal 'Bar', meth, 'Foo.Bar method'
+
+ klass, type, meth = @driver.parse_name 'Foo::bar'
assert_equal 'Foo', klass, 'Foo::bar class'
+ assert_equal '::', type, 'Foo::bar type'
assert_equal 'bar', meth, 'Foo::bar method'
end
+ def test_parse_name_namespace
+ klass, type, meth = @driver.parse_name 'Foo::Bar'
+
+ assert_equal 'Foo::Bar', klass, 'Foo::Bar class'
+ assert_equal nil, type, 'Foo::Bar type'
+ assert_equal nil, meth, 'Foo::Bar method'
+
+ klass, type, meth = @driver.parse_name 'Foo::Bar#'
+
+ assert_equal 'Foo::Bar', klass, 'Foo::Bar# class'
+ assert_equal '#', type, 'Foo::Bar# type'
+ assert_equal nil, meth, 'Foo::Bar# method'
+
+ klass, type, meth = @driver.parse_name 'Foo::Bar#baz'
+
+ assert_equal 'Foo::Bar', klass, 'Foo::Bar#baz class'
+ assert_equal '#', type, 'Foo::Bar#baz type'
+ assert_equal 'baz', meth, 'Foo::Bar#baz method'
+ end
+
+ def test_parse_name_special
+ specials = %w[
+ %
+ &
+ *
+ +
+ +@
+ -
+ -@
+ /
+ <
+ <<
+ <=
+ <=>
+ ==
+ ===
+ =>
+ =~
+ >
+ >>
+ []
+ []=
+ ^
+ `
+ |
+ ~
+ ~@
+ ]
+
+ specials.each do |special|
+ parsed = @driver.parse_name special
+
+ assert_equal ['', '.', special], parsed
+ end
+ end
+
+ def _test_setup_pager # this test doesn't do anything anymore :(
+ @driver.use_stdout = false
+
+ pager = with_dummy_pager do @driver.setup_pager end
+
+ skip "couldn't find a standard pager" unless pager
+
+ assert @driver.paging?
+ ensure
+ pager.close if pager
+ end
+
+ def util_ancestors_store
+ store1 = RDoc::RI::Store.new @home_ri
+ store1.cache[:ancestors] = {
+ 'Foo' => %w[Object],
+ 'Foo::Bar' => %w[Foo],
+ }
+ store1.cache[:class_methods] = {
+ 'Foo' => %w[c_method new],
+ 'Foo::Bar' => %w[new],
+ }
+ store1.cache[:instance_methods] = {
+ 'Foo' => %w[i_method],
+ }
+ store1.cache[:modules] = %w[
+ Foo
+ Foo::Bar
+ ]
+
+ store2 = RDoc::RI::Store.new @home_ri
+ store2.cache[:ancestors] = {
+ 'Foo' => %w[Mixin Object],
+ 'Mixin' => %w[],
+ 'Object' => %w[X Object],
+ 'X' => %w[Object],
+ }
+ store2.cache[:class_methods] = {
+ 'Foo' => %w[c_method new],
+ 'Mixin' => %w[],
+ 'X' => %w[],
+ 'Object' => %w[],
+ }
+ store2.cache[:instance_methods] = {
+ 'Foo' => %w[i_method],
+ 'Mixin' => %w[],
+ }
+ store2.cache[:modules] = %w[
+ Foo
+ Mixin
+ Object
+ X
+ ]
+
+ @driver.stores = store1, store2
+ end
+
+ def util_multi_store
+ util_store
+
+ @store1 = @store
+
+ @top_level = RDoc::TopLevel.new 'file.rb'
+
+ @home_ri2 = "#{@home_ri}2"
+ @store2 = RDoc::RI::Store.new @home_ri2
+
+ # as if seen in a namespace like class Ambiguous::Other
+ @mAmbiguous = @top_level.add_module RDoc::NormalModule, 'Ambiguous'
+
+ @cFoo = @top_level.add_class RDoc::NormalClass, 'Foo'
+
+ @cBar = @top_level.add_class RDoc::NormalClass, 'Bar', 'Foo'
+ @cFoo_Baz = @cFoo.add_class RDoc::NormalClass, 'Baz'
+
+ @baz = @cBar.add_method RDoc::AnyMethod.new(nil, 'baz')
+ @baz.record_location @top_level
+
+ @override = @cBar.add_method RDoc::AnyMethod.new(nil, 'override')
+ @override.comment = 'must be displayed'
+ @override.record_location @top_level
+
+ @store2.save_class @mAmbiguous
+ @store2.save_class @cBar
+ @store2.save_class @cFoo_Baz
+
+ @store2.save_method @cBar, @override
+ @store2.save_method @cBar, @baz
+
+ @store2.save_cache
+
+ @driver.stores = [@store1, @store2]
+
+ RDoc::RDoc.reset
+ end
+
+ def util_store
+ @store = RDoc::RI::Store.new @home_ri
+
+ @top_level = RDoc::TopLevel.new 'file.rb'
+
+ @cFoo = @top_level.add_class RDoc::NormalClass, 'Foo'
+ @mInc = @top_level.add_module RDoc::NormalModule, 'Inc'
+ @cAmbiguous = @top_level.add_class RDoc::NormalClass, 'Ambiguous'
+
+ doc = @RM::Document.new @RM::Paragraph.new('Include thingy')
+ @cFooInc = @cFoo.add_include RDoc::Include.new('Inc', doc)
+ @cFooInc.record_location @top_level
+
+ @cFoo_Bar = @cFoo.add_class RDoc::NormalClass, 'Bar'
+
+ @blah = @cFoo_Bar.add_method RDoc::AnyMethod.new(nil, 'blah')
+ @blah.call_seq = "blah(5) => 5\nblah(6) => 6\n"
+ @blah.record_location @top_level
+
+ @bother = @cFoo_Bar.add_method RDoc::AnyMethod.new(nil, 'bother')
+ @bother.block_params = "stuff"
+ @bother.params = "(things)"
+ @bother.record_location @top_level
+
+ @new = @cFoo_Bar.add_method RDoc::AnyMethod.new nil, 'new'
+ @new.record_location @top_level
+ @new.singleton = true
+
+ @attr = @cFoo_Bar.add_attribute RDoc::Attr.new nil, 'attr', 'RW', ''
+ @attr.record_location @top_level
+
+ @cFoo_Baz = @cFoo.add_class RDoc::NormalClass, 'Baz'
+ @cFoo_Baz.record_location @top_level
+
+ @inherit = @cFoo.add_method RDoc::AnyMethod.new(nil, 'inherit')
+ @inherit.record_location @top_level
+
+ # overriden by Bar in multi_store
+ @overriden = @cFoo.add_method RDoc::AnyMethod.new(nil, 'override')
+ @overriden.comment = 'must not be displayed'
+ @overriden.record_location @top_level
+
+ @store.save_class @cFoo
+ @store.save_class @cFoo_Bar
+ @store.save_class @cFoo_Baz
+ @store.save_class @mInc
+ @store.save_class @cAmbiguous
+
+ @store.save_method @cFoo_Bar, @blah
+ @store.save_method @cFoo_Bar, @bother
+ @store.save_method @cFoo_Bar, @new
+ @store.save_method @cFoo_Bar, @attr
+
+ @store.save_method @cFoo, @inherit
+ @store.save_method @cFoo, @overriden
+
+ @store.save_cache
+
+ @driver.stores = [@store]
+
+ RDoc::RDoc.reset
+ end
+
end
-MiniTest::Unit.autorun
diff --git a/test/rdoc/test_rdoc_ri_formatter.rb b/test/rdoc/test_rdoc_ri_formatter.rb
deleted file mode 100644
index a70f9dcba7..0000000000
--- a/test/rdoc/test_rdoc_ri_formatter.rb
+++ /dev/null
@@ -1,320 +0,0 @@
-require 'stringio'
-require 'rubygems'
-require 'minitest/unit'
-require 'rdoc/ri/formatter'
-require 'rdoc/markup/to_flow'
-
-class TestRDocRIFormatter < MiniTest::Unit::TestCase
-
- def setup
- @output = StringIO.new
- @width = 78
- @indent = ' '
-
- @f = RDoc::RI::Formatter.new @output, @width, @indent
- @markup = RDoc::Markup.new
- @flow = RDoc::Markup::ToFlow.new
- end
-
- def test_blankline
- @f.blankline
-
- assert_equal "\n", @output.string
- end
-
- def test_bold_print
- @f.bold_print 'a b c'
-
- assert_equal 'a b c', @output.string
- end
-
- def test_break_to_newline
- @f.break_to_newline
-
- assert_equal '', @output.string
- end
-
- def test_conv_html
- assert_equal '> < " &', @f.conv_html('&gt; &lt; &quot; &amp;')
- end
-
- def test_conv_markup
- text = '<tt>a</tt> <code>b</code> <b>c</b> <em>d</em>'
-
- expected = '+a+ +b+ *c* _d_'
-
- assert_equal expected, @f.conv_markup(text)
- end
-
- def test_display_flow
- flow = [
- RDoc::Markup::Flow::H.new(1, 'heading'),
- RDoc::Markup::Flow::P.new('paragraph'),
- ]
-
- @f.display_flow flow
-
- assert_equal "\nHEADING\n=======\n\n paragraph\n\n", @output.string
- end
-
- def test_display_flow_item_h
- item = RDoc::Markup::Flow::H.new 1, 'heading'
-
- @f.display_flow_item item
-
- assert_equal "\nHEADING\n=======\n\n", @output.string
- end
-
- def test_display_flow_item_li
- item = RDoc::Markup::Flow::LI.new nil, 'paragraph'
-
- @f.display_flow_item item
-
- assert_equal " paragraph\n\n", @output.string
- end
-
- def test_display_flow_item_list
- item = RDoc::Markup::Flow::LIST.new :NUMBER
-
- @f.display_flow_item item
-
- assert_equal "", @output.string
- end
-
- def test_display_flow_item_p
- item = RDoc::Markup::Flow::P.new 'paragraph'
-
- @f.display_flow_item item
-
- assert_equal " paragraph\n\n", @output.string
- end
-
- def test_display_flow_item_rule
- item = RDoc::Markup::Flow::RULE.new 1
-
- @f.display_flow_item item
-
- assert_equal "#{'-' * 78}\n", @output.string
- end
-
- def test_display_flow_item_unknown
- e = assert_raises RDoc::Error do
- @f.display_flow_item Object.new
- end
-
- assert_equal "Unknown flow element: Object", e.message
- end
-
- def test_display_flow_item_verb
- item = RDoc::Markup::Flow::VERB.new 'a b c'
-
- @f.display_flow_item item
-
- assert_equal " a b c\n\n", @output.string
- end
-
- def test_display_heading_1
- @f.display_heading 'heading', 1, ' '
-
- assert_equal "\nHEADING\n=======\n\n", @output.string
- end
-
- def test_display_heading_2
- @f.display_heading 'heading', 2, ' '
-
- assert_equal "\nheading\n-------\n\n", @output.string
- end
-
- def test_display_heading_3
- @f.display_heading 'heading', 3, ' '
-
- assert_equal " heading\n\n", @output.string
- end
-
- def test_display_list
- list = RDoc::Markup::Flow::LIST.new :NUMBER
- list << RDoc::Markup::Flow::LI.new(nil, 'a b c')
- list << RDoc::Markup::Flow::LI.new(nil, 'd e f')
-
- @f.display_list list
-
- assert_equal " 1. a b c\n\n 2. d e f\n\n", @output.string
- end
-
- def test_display_list_bullet
- list = RDoc::Markup::Flow::LIST.new :BULLET
- list << RDoc::Markup::Flow::LI.new(nil, 'a b c')
-
- @f.display_list list
-
- assert_equal " * a b c\n\n", @output.string
- end
-
- def test_display_list_labeled
- list = RDoc::Markup::Flow::LIST.new :LABELED
- list << RDoc::Markup::Flow::LI.new('label', 'a b c')
-
- @f.display_list list
-
- assert_equal " label a b c\n\n", @output.string
- end
-
- def test_display_list_lower_alpha
- list = RDoc::Markup::Flow::LIST.new :LOWERALPHA
- list << RDoc::Markup::Flow::LI.new(nil, 'a b c')
-
- @f.display_list list
-
- assert_equal " a. a b c\n\n", @output.string
- end
-
- def test_display_list_note
- list = RDoc::Markup::Flow::LIST.new :NOTE
- list << RDoc::Markup::Flow::LI.new('note:', 'a b c')
-
- @f.display_list list
-
- assert_equal " note: a b c\n\n", @output.string
- end
-
- def test_display_list_number
- list = RDoc::Markup::Flow::LIST.new :NUMBER
- list << RDoc::Markup::Flow::LI.new(nil, 'a b c')
-
- @f.display_list list
-
- assert_equal " 1. a b c\n\n", @output.string
- end
-
- def test_display_list_unknown
- list = RDoc::Markup::Flow::LIST.new :UNKNOWN
- list << RDoc::Markup::Flow::LI.new(nil, 'a b c')
-
- e = assert_raises ArgumentError do
- @f.display_list list
- end
-
- assert_equal 'unknown list type UNKNOWN', e.message
- end
-
- def test_display_list_upper_alpha
- list = RDoc::Markup::Flow::LIST.new :UPPERALPHA
- list << RDoc::Markup::Flow::LI.new(nil, 'a b c')
-
- @f.display_list list
-
- assert_equal " A. a b c\n\n", @output.string
- end
-
- def test_display_verbatim_flow_item
- verbatim = RDoc::Markup::Flow::VERB.new "a b c\nd e f"
-
- @f.display_verbatim_flow_item verbatim
-
- assert_equal " a b c\n d e f\n\n", @output.string
- end
-
- def test_display_verbatim_flow_item_bold
- verbatim = RDoc::Markup::Flow::VERB.new "*a* b c"
-
- @f.display_verbatim_flow_item verbatim
-
- assert_equal " *a* b c\n\n", @output.string
- end
-
- def test_draw_line
- @f.draw_line
-
- expected = '-' * @width + "\n"
- assert_equal expected, @output.string
- end
-
- def test_draw_line_label
- @f.draw_line 'label'
-
- expected = '-' * (@width - 6) + " label\n"
- assert_equal expected, @output.string
- end
-
- def test_draw_line_label_long
- @f.draw_line 'a' * @width
-
- expected = '-' * @width + "\n" + ('a' * @width) + "\n"
- assert_equal expected, @output.string
- end
-
- def test_raw_print_line
- @f.raw_print_line 'a b c'
-
- assert_equal "a b c", @output.string
- end
-
- def test_strip_attributes_b
- text = @f.strip_attributes 'hello <b>world</b>'
-
- expected = 'hello world'
-
- assert_equal expected, text
- end
-
- def test_strip_attributes_code
- text = @f.strip_attributes 'hello <code>world</code>'
-
- expected = 'hello world'
-
- assert_equal expected, text
- end
-
- def test_strip_attributes_em
- text = @f.strip_attributes 'hello <em>world</em>'
-
- expected = 'hello world'
-
- assert_equal expected, text
- end
-
- def test_strip_attributes_i
- text = @f.strip_attributes 'hello <i>world</i>'
-
- expected = 'hello world'
-
- assert_equal expected, text
- end
-
- def test_strip_attributes_tt
- text = @f.strip_attributes 'hello <tt>world</tt>'
-
- expected = 'hello world'
-
- assert_equal expected, text
- end
-
- def test_wrap_empty
- @f.wrap ''
- assert_equal '', @output.string
- end
-
- def test_wrap_long
- @f.wrap 'a ' * (@width / 2)
- assert_equal " a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a a\n a \n",
- @output.string
- end
-
- def test_wrap_markup
- @f.wrap 'a <tt>b</tt> c'
- assert_equal " a +b+ c\n", @output.string
- end
-
- def test_wrap_nil
- @f.wrap nil
- assert_equal '', @output.string
- end
-
- def test_wrap_short
- @f.wrap 'a b c'
- assert_equal " a b c\n", @output.string
- end
-
-end
-
-MiniTest::Unit.autorun
diff --git a/test/rdoc/test_rdoc_ri_overstrike_formatter.rb b/test/rdoc/test_rdoc_ri_overstrike_formatter.rb
deleted file mode 100644
index 38b95414dd..0000000000
--- a/test/rdoc/test_rdoc_ri_overstrike_formatter.rb
+++ /dev/null
@@ -1,71 +0,0 @@
-require 'stringio'
-require 'rubygems'
-require 'minitest/unit'
-require 'rdoc/ri/formatter'
-require 'rdoc/markup/fragments'
-require 'rdoc/markup/to_flow'
-
-class TestRDocRIOverstrikeFormatter < MiniTest::Unit::TestCase
-
- def setup
- @output = StringIO.new
- @width = 78
- @indent = ' '
-
- @f = RDoc::RI::OverstrikeFormatter.new @output, @width, @indent
- @markup = RDoc::Markup.new
- @flow = RDoc::Markup::ToFlow.new
-
- @af = RDoc::RI::AttributeFormatter
- end
-
- def test_display_verbatim_flow_item_bold
- verbatim = RDoc::Markup::Flow::VERB.new "*a* b c"
-
- @f.display_verbatim_flow_item verbatim
-
- assert_equal " *a* b c\n\n", @output.string
- end
-
- def test_write_attribute_text_bold
- line = [RDoc::RI::AttributeFormatter::AttrChar.new('b', @af::BOLD)]
-
- @f.write_attribute_text ' ', line
-
- assert_equal " b\bb\n", @output.string
- end
-
- def test_write_attribute_text_bold_italic
- attr = @af::BOLD | @af::ITALIC
- line = [RDoc::RI::AttributeFormatter::AttrChar.new('d', attr)]
-
- @f.write_attribute_text ' ', line
-
- assert_equal " _\bd\bd\n", @output.string
- end
-
- def test_write_attribute_text_code
- line = [RDoc::RI::AttributeFormatter::AttrChar.new('c', @af::CODE)]
-
- @f.write_attribute_text ' ', line
-
- assert_equal " _\bc\n", @output.string
- end
-
- def test_write_attribute_text_italic
- line = [RDoc::RI::AttributeFormatter::AttrChar.new('a', @af::ITALIC)]
-
- @f.write_attribute_text ' ', line
-
- assert_equal " _\ba\n", @output.string
- end
-
- def test_bold_print
- @f.bold_print 'a b c'
-
- assert_equal "a\ba \b b\bb \b c\bc", @output.string
- end
-
-end
-
-MiniTest::Unit.autorun
diff --git a/test/rdoc/test_rdoc_ri_paths.rb b/test/rdoc/test_rdoc_ri_paths.rb
new file mode 100644
index 0000000000..e6f33d7d5e
--- /dev/null
+++ b/test/rdoc/test_rdoc_ri_paths.rb
@@ -0,0 +1,43 @@
+require 'rubygems'
+require 'minitest/autorun'
+require 'tmpdir'
+require 'fileutils'
+require 'rdoc/ri/paths'
+
+class TestRDocRIPaths < MiniTest::Unit::TestCase
+
+ def setup
+ RDoc::RI::Paths.instance_variable_set :@gemdirs, %w[/nonexistent/gemdir]
+ end
+
+ def teardown
+ RDoc::RI::Paths.instance_variable_set :@gemdirs, nil
+ end
+
+ def test_class_path_nonexistent
+ path = RDoc::RI::Paths.path true, true, true, true, '/nonexistent'
+
+ refute_includes path, '/nonexistent'
+ end
+
+ def test_class_raw_path
+ path = RDoc::RI::Paths.raw_path true, true, true, true
+
+ assert_equal RDoc::RI::Paths::SYSDIR, path.shift
+ assert_equal RDoc::RI::Paths::SITEDIR, path.shift
+ assert_equal RDoc::RI::Paths::HOMEDIR, path.shift
+ assert_equal '/nonexistent/gemdir', path.shift
+ end
+
+ def test_class_raw_path_extra_dirs
+ path = RDoc::RI::Paths.raw_path true, true, true, true, '/nonexistent'
+
+ assert_equal '/nonexistent', path.shift
+ assert_equal RDoc::RI::Paths::SYSDIR, path.shift
+ assert_equal RDoc::RI::Paths::SITEDIR, path.shift
+ assert_equal RDoc::RI::Paths::HOMEDIR, path.shift
+ assert_equal '/nonexistent/gemdir', path.shift
+ end
+
+end
+
diff --git a/test/rdoc/test_rdoc_ri_store.rb b/test/rdoc/test_rdoc_ri_store.rb
new file mode 100644
index 0000000000..23e441b633
--- /dev/null
+++ b/test/rdoc/test_rdoc_ri_store.rb
@@ -0,0 +1,473 @@
+require 'rubygems'
+require 'minitest/autorun'
+require 'rdoc/rdoc'
+require 'rdoc/ri'
+require 'rdoc/markup'
+require 'tmpdir'
+require 'fileutils'
+require 'pp'
+
+class TestRDocRIStore < MiniTest::Unit::TestCase
+
+ OBJECT_ANCESTORS = defined?(::BasicObject) ? %w[BasicObject] : []
+
+ def setup
+ RDoc::TopLevel.reset
+
+ @tmpdir = File.join Dir.tmpdir, "test_rdoc_ri_store_#{$$}"
+ @s = RDoc::RI::Store.new @tmpdir
+
+ @top_level = RDoc::TopLevel.new 'file.rb'
+
+ @klass = @top_level.add_class RDoc::NormalClass, 'Object'
+ @klass.add_comment 'original', @top_level
+
+ @cmeth = RDoc::AnyMethod.new nil, 'cmethod'
+ @cmeth.singleton = true
+ @cmeth.record_location @top_level
+
+ @meth = RDoc::AnyMethod.new nil, 'method'
+ @meth.record_location @top_level
+
+ @meth_bang = RDoc::AnyMethod.new nil, 'method!'
+ @meth_bang.record_location @top_level
+
+ @attr = RDoc::Attr.new nil, 'attr', 'RW', ''
+ @attr.record_location @top_level
+
+ @klass.add_method @cmeth
+ @klass.add_method @meth
+ @klass.add_method @meth_bang
+ @klass.add_attribute @attr
+
+ @nest_klass = @klass.add_class RDoc::NormalClass, 'SubClass'
+ @nest_meth = RDoc::AnyMethod.new nil, 'method'
+ @nest_meth.record_location @top_level
+
+ @nest_incl = RDoc::Include.new 'Incl', ''
+ @nest_incl.record_location @top_level
+
+ @nest_klass.add_method @nest_meth
+ @nest_klass.add_include @nest_incl
+
+ @RM = RDoc::Markup
+ end
+
+ def teardown
+ FileUtils.rm_rf @tmpdir
+ end
+
+ def mu_pp obj
+ s = ''
+ s = PP.pp obj, s
+ s.force_encoding Encoding.default_external if defined? Encoding
+ s.chomp
+ end
+
+ def assert_cache imethods, cmethods, attrs, modules, ancestors = {}
+ imethods ||= { 'Object' => %w[method method!] }
+ cmethods ||= { 'Object' => %w[cmethod] }
+ attrs ||= { 'Object' => ['attr_accessor attr'] }
+
+ # this is sort-of a hack
+ @s.clean_cache_collection ancestors
+
+ expected = {
+ :ancestors => ancestors,
+ :attributes => attrs,
+ :class_methods => cmethods,
+ :encoding => nil,
+ :instance_methods => imethods,
+ :modules => modules,
+ }
+
+ @s.save_cache
+
+ assert_equal expected, @s.cache
+ end
+
+ def assert_directory path
+ assert File.directory?(path), "#{path} is not a directory"
+ end
+
+ def assert_file path
+ assert File.file?(path), "#{path} is not a file"
+ end
+
+ def refute_file path
+ refute File.exist?(path), "#{path} exists"
+ end
+
+ def test_attributes
+ @s.cache[:attributes]['Object'] = %w[attr]
+
+ expected = { 'Object' => %w[attr] }
+
+ assert_equal expected, @s.attributes
+ end
+
+ def test_class_file
+ assert_equal File.join(@tmpdir, 'Object', 'cdesc-Object.ri'),
+ @s.class_file('Object')
+ assert_equal File.join(@tmpdir, 'Object', 'SubClass', 'cdesc-SubClass.ri'),
+ @s.class_file('Object::SubClass')
+ end
+
+ def test_class_methods
+ @s.cache[:class_methods]['Object'] = %w[method]
+
+ expected = { 'Object' => %w[method] }
+
+ assert_equal expected, @s.class_methods
+ end
+
+ def test_class_path
+ assert_equal File.join(@tmpdir, 'Object'), @s.class_path('Object')
+ assert_equal File.join(@tmpdir, 'Object', 'SubClass'),
+ @s.class_path('Object::SubClass')
+ end
+
+ def test_dry_run
+ refute @s.dry_run
+
+ @s.dry_run = true
+
+ assert @s.dry_run
+ end
+
+ def test_friendly_path
+ @s.path = @tmpdir
+ @s.type = nil
+ assert_equal @s.path, @s.friendly_path
+
+ @s.type = :extra
+ assert_equal @s.path, @s.friendly_path
+
+ @s.type = :system
+ assert_equal "ruby core", @s.friendly_path
+
+ @s.type = :site
+ assert_equal "ruby site", @s.friendly_path
+
+ @s.type = :home
+ assert_equal "~/.ri", @s.friendly_path
+
+ @s.type = :gem
+ @s.path = "#{@tmpdir}/gem_repository/doc/gem_name-1.0/ri"
+ assert_equal "gem gem_name-1.0", @s.friendly_path
+ end
+
+ def test_instance_methods
+ @s.cache[:instance_methods]['Object'] = %w[method]
+
+ expected = { 'Object' => %w[method] }
+
+ assert_equal expected, @s.instance_methods
+ end
+
+ def test_load_cache
+ cache = {
+ :encoding => :encoding_value,
+ :methods => %w[Object#method],
+ :modules => %w[Object],
+ }
+
+ Dir.mkdir @tmpdir
+
+ open File.join(@tmpdir, 'cache.ri'), 'wb' do |io|
+ Marshal.dump cache, io
+ end
+
+ @s.load_cache
+
+ assert_equal cache, @s.cache
+
+ assert_equal :encoding_value, @s.encoding
+ end
+
+ def test_load_cache_encoding_differs
+ skip "Encoding not implemented" unless Object.const_defined? :Encoding
+
+ cache = {
+ :encoding => Encoding::ISO_8859_1,
+ :methods => %w[Object#method],
+ :modules => %w[Object],
+ }
+
+ Dir.mkdir @tmpdir
+
+ open File.join(@tmpdir, 'cache.ri'), 'wb' do |io|
+ Marshal.dump cache, io
+ end
+
+ @s.encoding = Encoding::UTF_8
+
+ @s.load_cache
+
+ assert_equal cache, @s.cache
+
+ assert_equal Encoding::UTF_8, @s.encoding
+ end
+
+ def test_load_cache_no_cache
+ cache = {
+ :ancestors => {},
+ :attributes => {},
+ :class_methods => {},
+ :encoding => nil,
+ :instance_methods => {},
+ :modules => [],
+ }
+
+ @s.load_cache
+
+ assert_equal cache, @s.cache
+ end
+
+ def test_load_class
+ @s.save_class @klass
+
+ assert_equal @klass, @s.load_class('Object')
+ end
+
+ def test_load_method_bang
+ @s.save_method @klass, @meth_bang
+
+ meth = @s.load_method('Object', '#method!')
+ assert_equal @meth_bang, meth
+ end
+
+ def test_method_file
+ assert_equal File.join(@tmpdir, 'Object', 'method-i.ri'),
+ @s.method_file('Object', 'Object#method')
+
+ assert_equal File.join(@tmpdir, 'Object', 'method%21-i.ri'),
+ @s.method_file('Object', 'Object#method!')
+
+ assert_equal File.join(@tmpdir, 'Object', 'SubClass', 'method%21-i.ri'),
+ @s.method_file('Object::SubClass', 'Object::SubClass#method!')
+
+ assert_equal File.join(@tmpdir, 'Object', 'method-c.ri'),
+ @s.method_file('Object', 'Object::method')
+ end
+
+ def test_save_cache
+ @s.save_class @klass
+ @s.save_method @klass, @meth
+ @s.save_method @klass, @cmeth
+ @s.save_class @nest_klass
+ @s.encoding = :encoding_value
+
+ @s.save_cache
+
+ assert_file File.join(@tmpdir, 'cache.ri')
+
+ expected = {
+ :attributes => { 'Object' => ['attr_accessor attr'] },
+ :class_methods => { 'Object' => %w[cmethod] },
+ :instance_methods => {
+ 'Object' => %w[method method!],
+ 'Object::SubClass' => %w[method],
+ },
+ :modules => %w[Object Object::SubClass],
+ :ancestors => {
+ 'Object::SubClass' => %w[Incl Object],
+ },
+ :encoding => :encoding_value,
+ }
+
+ expected[:ancestors]['Object'] = %w[BasicObject] if defined?(::BasicObject)
+
+ open File.join(@tmpdir, 'cache.ri'), 'rb' do |io|
+ cache = Marshal.load io.read
+
+ assert_equal expected, cache
+ end
+ end
+
+ def test_save_cache_dry_run
+ @s.dry_run = true
+
+ @s.save_class @klass
+ @s.save_method @klass, @meth
+ @s.save_method @klass, @cmeth
+ @s.save_class @nest_klass
+
+ @s.save_cache
+
+ refute_file File.join(@tmpdir, 'cache.ri')
+ end
+
+ def test_save_cache_duplicate_methods
+ @s.save_method @klass, @meth
+ @s.save_method @klass, @meth
+
+ @s.save_cache
+
+ assert_cache({ 'Object' => %w[method] }, {}, {}, [])
+ end
+
+ def test_save_class
+ @s.save_class @klass
+
+ assert_directory File.join(@tmpdir, 'Object')
+ assert_file File.join(@tmpdir, 'Object', 'cdesc-Object.ri')
+
+ assert_cache nil, nil, nil, %w[Object], 'Object' => OBJECT_ANCESTORS
+
+ assert_equal @klass, @s.load_class('Object')
+ end
+
+ def test_save_class_basic_object
+ @klass.instance_variable_set :@superclass, nil
+
+ @s.save_class @klass
+
+ assert_directory File.join(@tmpdir, 'Object')
+ assert_file File.join(@tmpdir, 'Object', 'cdesc-Object.ri')
+
+ assert_cache(nil, nil, nil, %w[Object])
+
+ assert_equal @klass, @s.load_class('Object')
+ end
+
+ def test_save_class_delete
+ # save original
+ @s.save_class @klass
+ @s.save_method @klass, @meth
+ @s.save_method @klass, @meth_bang
+ @s.save_method @klass, @cmeth
+ @s.save_cache
+
+ klass = RDoc::NormalClass.new 'Object'
+
+ meth = klass.add_method RDoc::AnyMethod.new(nil, 'replace')
+ meth.record_location @top_level
+
+ # load original, save newly updated class
+ @s = RDoc::RI::Store.new @tmpdir
+ @s.load_cache
+ @s.save_class klass
+ @s.save_cache
+
+ # load from disk again
+ @s = RDoc::RI::Store.new @tmpdir
+ @s.load_cache
+
+ @s.load_class 'Object'
+
+ assert_cache({ 'Object' => %w[replace] }, {},
+ { 'Object' => %w[attr_accessor\ attr] }, %w[Object],
+ 'Object' => OBJECT_ANCESTORS)
+
+ refute File.exist? @s.method_file(@klass.full_name, @meth.full_name)
+ refute File.exist? @s.method_file(@klass.full_name, @meth_bang.full_name)
+ refute File.exist? @s.method_file(@klass.full_name, @cmeth.full_name)
+ end
+
+ def test_save_class_dry_run
+ @s.dry_run = true
+
+ @s.save_class @klass
+
+ refute_file File.join(@tmpdir, 'Object')
+ refute_file File.join(@tmpdir, 'Object', 'cdesc-Object.ri')
+ end
+
+ def test_save_class_merge
+ @s.save_class @klass
+
+ klass = RDoc::NormalClass.new 'Object'
+ klass.add_comment 'new comment', @top_level
+
+ s = RDoc::RI::Store.new @tmpdir
+ s.save_class klass
+
+ s = RDoc::RI::Store.new @tmpdir
+
+ inner = @RM::Document.new @RM::Paragraph.new 'new comment'
+ inner.file = @top_level.absolute_name
+
+ document = @RM::Document.new inner
+
+ assert_equal document, s.load_class('Object').comment
+ end
+
+ # This is a functional test
+ def test_save_class_merge_constant
+ tl = RDoc::TopLevel.new 'file.rb'
+ klass = RDoc::NormalClass.new 'C'
+ klass.add_comment 'comment', tl
+
+ const = klass.add_constant RDoc::Constant.new('CONST', nil, nil)
+ const.record_location tl
+
+ @s.save_class klass
+
+ RDoc::RDoc.reset
+
+ klass2 = RDoc::NormalClass.new 'C'
+ klass2.record_location tl
+
+ s = RDoc::RI::Store.new @tmpdir
+ s.save_class klass2
+
+ s = RDoc::RI::Store.new @tmpdir
+
+ result = s.load_class 'C'
+
+ assert_empty result.constants
+ end
+
+ def test_save_class_methods
+ @s.save_class @klass
+
+ assert_directory File.join(@tmpdir, 'Object')
+ assert_file File.join(@tmpdir, 'Object', 'cdesc-Object.ri')
+
+ assert_cache nil, nil, nil, %w[Object], 'Object' => OBJECT_ANCESTORS
+
+ assert_equal @klass, @s.load_class('Object')
+ end
+
+ def test_save_class_nested
+ @s.save_class @nest_klass
+
+ assert_directory File.join(@tmpdir, 'Object', 'SubClass')
+ assert_file File.join(@tmpdir, 'Object', 'SubClass', 'cdesc-SubClass.ri')
+
+ assert_cache({ 'Object::SubClass' => %w[method] }, {}, {},
+ %w[Object::SubClass], 'Object::SubClass' => %w[Incl Object])
+ end
+
+ def test_save_method
+ @s.save_method @klass, @meth
+
+ assert_directory File.join(@tmpdir, 'Object')
+ assert_file File.join(@tmpdir, 'Object', 'method-i.ri')
+
+ assert_cache({ 'Object' => %w[method] }, {}, {}, [])
+
+ assert_equal @meth, @s.load_method('Object', '#method')
+ end
+
+ def test_save_method_dry_run
+ @s.dry_run = true
+
+ @s.save_method @klass, @meth
+
+ refute_file File.join(@tmpdir, 'Object')
+ refute_file File.join(@tmpdir, 'Object', 'method-i.ri')
+ end
+
+ def test_save_method_nested
+ @s.save_method @nest_klass, @nest_meth
+
+ assert_directory File.join(@tmpdir, 'Object', 'SubClass')
+ assert_file File.join(@tmpdir, 'Object', 'SubClass', 'method-i.ri')
+
+ assert_cache({ 'Object::SubClass' => %w[method] }, {}, {}, [])
+ end
+
+end
+
diff --git a/test/rdoc/test_rdoc_ruby_lex.rb b/test/rdoc/test_rdoc_ruby_lex.rb
new file mode 100644
index 0000000000..4398f4119f
--- /dev/null
+++ b/test/rdoc/test_rdoc_ruby_lex.rb
@@ -0,0 +1,23 @@
+require 'rubygems'
+require 'minitest/autorun'
+require 'rdoc/rdoc'
+require 'rdoc/ruby_lex'
+
+class TestRubyLex < MiniTest::Unit::TestCase
+ def test_unary_minus
+ ruby_lex = RDoc::RubyLex.new("-1", nil)
+ assert_equal("-1", ruby_lex.token.value)
+
+ ruby_lex = RDoc::RubyLex.new("a[-2]", nil)
+ 2.times { ruby_lex.token } # skip "a" and "["
+ assert_equal("-2", ruby_lex.token.value)
+
+ ruby_lex = RDoc::RubyLex.new("a[0..-12]", nil)
+ 4.times { ruby_lex.token } # skip "a", "[", "0", and ".."
+ assert_equal("-12", ruby_lex.token.value)
+
+ ruby_lex = RDoc::RubyLex.new("0+-0.1", nil)
+ 2.times { ruby_lex.token } # skip "0" and "+"
+ assert_equal("-0.1", ruby_lex.token.value)
+ end
+end
diff --git a/test/rdoc/test_rdoc_rubygems_hook.rb b/test/rdoc/test_rdoc_rubygems_hook.rb
new file mode 100644
index 0000000000..e8f8621820
--- /dev/null
+++ b/test/rdoc/test_rdoc_rubygems_hook.rb
@@ -0,0 +1,201 @@
+require 'rubygems/test_case'
+require 'rubygems'
+require 'rdoc/rubygems_hook'
+
+class TestRDocRubygemsHook < Gem::TestCase
+
+ def setup
+ super
+ skip 'requires RubyGems 1.9+' unless
+ Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.9')
+
+ @a = quick_spec 'a'
+
+ @rdoc = RDoc::RubygemsHook.new @a
+
+ begin
+ RDoc::RubygemsHook.load_rdoc
+ rescue Gem::DocumentError => e
+ skip e.message
+ end
+
+ Gem.configuration[:rdoc] = nil
+ end
+
+ def test_initialize
+ assert @rdoc.generate_rdoc
+ assert @rdoc.generate_ri
+
+ rdoc = RDoc::RubygemsHook.new @a, false, false
+
+ refute rdoc.generate_rdoc
+ refute rdoc.generate_ri
+ end
+
+ def test_delete_legacy_args
+ args = %w[
+ --inline-source
+ --one-file
+ --promiscuous
+ -p
+ ]
+
+ @rdoc.delete_legacy_args args
+
+ assert_empty args
+ end
+
+ def test_document
+ options = RDoc::Options.new
+ options.files = []
+
+ @rdoc.instance_variable_set :@rdoc, @rdoc.new_rdoc
+ @rdoc.instance_variable_set :@file_info, []
+
+ @rdoc.document 'darkfish', options, @a.doc_dir('rdoc')
+
+ assert @rdoc.rdoc_installed?
+ end
+
+ def test_generate
+ FileUtils.mkdir_p @a.doc_dir
+ FileUtils.mkdir_p File.join(@a.gem_dir, 'lib')
+
+ @rdoc.generate
+
+ assert @rdoc.rdoc_installed?
+ assert @rdoc.ri_installed?
+
+ rdoc = @rdoc.instance_variable_get :@rdoc
+
+ refute rdoc.options.hyperlink_all
+ end
+
+ def test_generate_configuration_rdoc_array
+ Gem.configuration[:rdoc] = %w[-A]
+
+ FileUtils.mkdir_p @a.doc_dir
+ FileUtils.mkdir_p File.join(@a.gem_dir, 'lib')
+
+ @rdoc.generate
+
+ rdoc = @rdoc.instance_variable_get :@rdoc
+
+ assert rdoc.options.hyperlink_all
+ end
+
+ def test_generate_configuration_rdoc_string
+ Gem.configuration[:rdoc] = '-A'
+
+ FileUtils.mkdir_p @a.doc_dir
+ FileUtils.mkdir_p File.join(@a.gem_dir, 'lib')
+
+ @rdoc.generate
+
+ rdoc = @rdoc.instance_variable_get :@rdoc
+
+ assert rdoc.options.hyperlink_all
+ end
+
+ def test_generate_disabled
+ @rdoc.generate_rdoc = false
+ @rdoc.generate_ri = false
+
+ @rdoc.generate
+
+ refute @rdoc.rdoc_installed?
+ refute @rdoc.ri_installed?
+ end
+
+ def test_generate_force
+ FileUtils.mkdir_p @a.doc_dir 'ri'
+ FileUtils.mkdir_p @a.doc_dir 'rdoc'
+ FileUtils.mkdir_p File.join(@a.gem_dir, 'lib')
+
+ @rdoc.force = true
+
+ @rdoc.generate
+
+ assert_path_exists File.join(@a.doc_dir('rdoc'), 'index.html')
+ assert_path_exists File.join(@a.doc_dir('ri'), 'cache.ri')
+ end
+
+ def test_generate_no_overwrite
+ FileUtils.mkdir_p @a.doc_dir 'ri'
+ FileUtils.mkdir_p @a.doc_dir 'rdoc'
+ FileUtils.mkdir_p File.join(@a.gem_dir, 'lib')
+
+ @rdoc.generate
+
+ refute_path_exists File.join(@a.doc_dir('rdoc'), 'index.html')
+ refute_path_exists File.join(@a.doc_dir('ri'), 'cache.ri')
+ end
+
+ def test_new_rdoc
+ assert_kind_of RDoc::RDoc, @rdoc.new_rdoc
+ end
+
+ def test_rdoc_installed?
+ refute @rdoc.rdoc_installed?
+
+ FileUtils.mkdir_p @a.doc_dir 'rdoc'
+
+ assert @rdoc.rdoc_installed?
+ end
+
+ def test_remove
+ FileUtils.mkdir_p @a.doc_dir 'rdoc'
+ FileUtils.mkdir_p @a.doc_dir 'ri'
+
+ @rdoc.remove
+
+ refute @rdoc.rdoc_installed?
+ refute @rdoc.ri_installed?
+
+ assert_path_exists @a.doc_dir
+ end
+
+ def test_remove_unwritable
+ skip 'chmod not supported' if Gem.win_platform?
+ FileUtils.mkdir_p @a.base_dir
+ FileUtils.chmod 0, @a.base_dir
+
+ e = assert_raises Gem::FilePermissionError do
+ @rdoc.remove
+ end
+
+ assert_equal @a.base_dir, e.directory
+ ensure
+ FileUtils.chmod 0755, @a.base_dir
+ end
+
+ def test_ri_installed?
+ refute @rdoc.ri_installed?
+
+ FileUtils.mkdir_p @a.doc_dir 'ri'
+
+ assert @rdoc.ri_installed?
+ end
+
+ def test_setup
+ @rdoc.setup
+
+ assert_path_exists @a.doc_dir
+ end
+
+ def test_setup_unwritable
+ skip 'chmod not supported' if Gem.win_platform?
+ FileUtils.mkdir_p @a.doc_dir
+ FileUtils.chmod 0, @a.doc_dir
+
+ e = assert_raises Gem::FilePermissionError do
+ @rdoc.setup
+ end
+
+ assert_equal @a.doc_dir, e.directory
+ ensure
+ FileUtils.chmod 0755, @a.doc_dir
+ end
+
+end
+
diff --git a/test/rdoc/test_rdoc_single_class.rb b/test/rdoc/test_rdoc_single_class.rb
new file mode 100644
index 0000000000..d0c71e9eeb
--- /dev/null
+++ b/test/rdoc/test_rdoc_single_class.rb
@@ -0,0 +1,12 @@
+require File.expand_path '../xref_test_case', __FILE__
+
+class TestRDocSingleClass < XrefTestCase
+
+ def test_definition
+ c = RDoc::SingleClass.new 'C'
+
+ assert_equal 'class << C', c.definition
+ end
+
+end
+
diff --git a/test/rdoc/test_rdoc_stats.rb b/test/rdoc/test_rdoc_stats.rb
new file mode 100644